(window.webpackJsonp=window.webpackJsonp||[]).push([[142],{"++4Y":function(g,b,t){var u=t("eRwv");g.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"/TZh":function(g,b,t){var u=t("11yv"),d=u("match");g.exports=function(h){var m=/./;try{"/./"[h](m)}catch(y){try{return m[d]=!1,"/./"[h](m)}catch(S){}}return!1}},"/pbl":function(g,b,t){var u=t("eE3R");g.exports=/web0s(?!.*chrome)/i.test(u)},"0B/8":function(g,b,t){"use strict";t.d(b,"a",function(){return N});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var u=function(C,D){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,_){P.__proto__=_}||function(P,_){for(var re in _)Object.prototype.hasOwnProperty.call(_,re)&&(P[re]=_[re])})(C,D)};function d(M,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function D(){this.constructor=M}u(M,C),M.prototype=C===null?Object.create(C):(D.prototype=C.prototype,new D)}function h(M){var C="";Array.isArray(M)||(M=[M]);for(var D=0;DM.phi1&&(M.phi2-=2*S),M.sweepFlag===1&&M.phi2P)return[];if(P===0)return[[M*D/(M*M+C*C),C*D/(M*M+C*C)]];var _=Math.sqrt(P);return[[(M*D+C*_)/(M*M+C*C),(C*D-M*_)/(M*M+C*C)],[(M*D-C*_)/(M*M+C*C),(C*D+M*_)/(M*M+C*C)]]}var j,w=Math.PI/180;function B(M,C,D){return(1-D)*M+D*C}function I(M,C,D,P){return M+Math.cos(P/180*S)*C+Math.sin(P/180*S)*D}function V(M,C,D,P){var _=1e-6,re=C-M,q=D-C,E=3*re+3*(P-D)-6*q,H=6*(q-re),O=3*re;return Math.abs(E)<_?[-O/H]:function(T,k,L){L===void 0&&(L=1e-6);var W=T*T/4-k;if(W<-L)return[];if(W<=L)return[-T/2];var J=Math.sqrt(W);return[-T/2-J,-T/2+J]}(H/E,O/E,_)}function G(M,C,D,P,_){var re=1-_;return M*(re*re*re)+C*(3*re*re*_)+D*(3*re*_*_)+P*(_*_*_)}!function(M){function C(){return _(function(E,H,O){return E.relative&&(E.x1!==void 0&&(E.x1+=H),E.y1!==void 0&&(E.y1+=O),E.x2!==void 0&&(E.x2+=H),E.y2!==void 0&&(E.y2+=O),E.x!==void 0&&(E.x+=H),E.y!==void 0&&(E.y+=O),E.relative=!1),E})}function D(){var E=NaN,H=NaN,O=NaN,T=NaN;return _(function(k,L,W){return k.type&N.SMOOTH_CURVE_TO&&(k.type=N.CURVE_TO,E=isNaN(E)?L:E,H=isNaN(H)?W:H,k.x1=k.relative?L-E:2*L-E,k.y1=k.relative?W-H:2*W-H),k.type&N.CURVE_TO?(E=k.relative?L+k.x2:k.x2,H=k.relative?W+k.y2:k.y2):(E=NaN,H=NaN),k.type&N.SMOOTH_QUAD_TO&&(k.type=N.QUAD_TO,O=isNaN(O)?L:O,T=isNaN(T)?W:T,k.x1=k.relative?L-O:2*L-O,k.y1=k.relative?W-T:2*W-T),k.type&N.QUAD_TO?(O=k.relative?L+k.x1:k.x1,T=k.relative?W+k.y1:k.y1):(O=NaN,T=NaN),k})}function P(){var E=NaN,H=NaN;return _(function(O,T,k){if(O.type&N.SMOOTH_QUAD_TO&&(O.type=N.QUAD_TO,E=isNaN(E)?T:E,H=isNaN(H)?k:H,O.x1=O.relative?T-E:2*T-E,O.y1=O.relative?k-H:2*k-H),O.type&N.QUAD_TO){E=O.relative?T+O.x1:O.x1,H=O.relative?k+O.y1:O.y1;var L=O.x1,W=O.y1;O.type=N.CURVE_TO,O.x1=((O.relative?0:T)+2*L)/3,O.y1=((O.relative?0:k)+2*W)/3,O.x2=(O.x+2*L)/3,O.y2=(O.y+2*W)/3}else E=NaN,H=NaN;return O})}function _(E){var H=0,O=0,T=NaN,k=NaN;return function(L){if(isNaN(T)&&!(L.type&N.MOVE_TO))throw new Error("path must start with moveto");var W=E(L,H,O,T,k);return L.type&N.CLOSE_PATH&&(H=T,O=k),L.x!==void 0&&(H=L.relative?H+L.x:L.x),L.y!==void 0&&(O=L.relative?O+L.y:L.y),L.type&N.MOVE_TO&&(T=H,k=O),W}}function re(E,H,O,T,k,L){return y(E,H,O,T,k,L),_(function(W,J,K,X){var Q=W.x1,ie=W.x2,ce=W.relative&&!isNaN(X),se=W.x!==void 0?W.x:ce?0:J,Ce=W.y!==void 0?W.y:ce?0:K;function ve(ze){return ze*ze}W.type&N.HORIZ_LINE_TO&&H!==0&&(W.type=N.LINE_TO,W.y=W.relative?0:K),W.type&N.VERT_LINE_TO&&O!==0&&(W.type=N.LINE_TO,W.x=W.relative?0:J),W.x!==void 0&&(W.x=W.x*E+Ce*O+(ce?0:k)),W.y!==void 0&&(W.y=se*H+W.y*T+(ce?0:L)),W.x1!==void 0&&(W.x1=W.x1*E+W.y1*O+(ce?0:k)),W.y1!==void 0&&(W.y1=Q*H+W.y1*T+(ce?0:L)),W.x2!==void 0&&(W.x2=W.x2*E+W.y2*O+(ce?0:k)),W.y2!==void 0&&(W.y2=ie*H+W.y2*T+(ce?0:L));var me=E*T-H*O;if(W.xRot!==void 0&&(E!==1||H!==0||O!==0||T!==1))if(me===0)delete W.rX,delete W.rY,delete W.xRot,delete W.lArcFlag,delete W.sweepFlag,W.type=N.LINE_TO;else{var Pe=W.xRot*Math.PI/180,Me=Math.sin(Pe),Ae=Math.cos(Pe),Re=1/ve(W.rX),je=1/ve(W.rY),Ie=ve(Ae)*Re+ve(Me)*je,we=2*Me*Ae*(Re-je),Ne=ve(Me)*Re+ve(Ae)*je,Be=Ie*T*T-we*H*T+Ne*H*H,Ue=we*(E*T+H*O)-2*(Ie*O*T+Ne*E*H),De=Ie*O*O-we*E*O+Ne*E*E,Te=(Math.atan2(Ue,Be-De)+Math.PI)%Math.PI/2,Se=Math.sin(Te),Oe=Math.cos(Te);W.rX=Math.abs(me)/Math.sqrt(Be*ve(Oe)+Ue*Se*Oe+De*ve(Se)),W.rY=Math.abs(me)/Math.sqrt(Be*ve(Se)-Ue*Se*Oe+De*ve(Oe)),W.xRot=180*Te/Math.PI}return W.sweepFlag!==void 0&&0>me&&(W.sweepFlag=+!W.sweepFlag),W})}function q(){return function(E){var H={};for(var O in E)H[O]=E[O];return H}}M.ROUND=function(E){function H(O){return Math.round(O*E)/E}return E===void 0&&(E=1e13),y(E),function(O){return O.x1!==void 0&&(O.x1=H(O.x1)),O.y1!==void 0&&(O.y1=H(O.y1)),O.x2!==void 0&&(O.x2=H(O.x2)),O.y2!==void 0&&(O.y2=H(O.y2)),O.x!==void 0&&(O.x=H(O.x)),O.y!==void 0&&(O.y=H(O.y)),O.rX!==void 0&&(O.rX=H(O.rX)),O.rY!==void 0&&(O.rY=H(O.rY)),O}},M.TO_ABS=C,M.TO_REL=function(){return _(function(E,H,O){return E.relative||(E.x1!==void 0&&(E.x1-=H),E.y1!==void 0&&(E.y1-=O),E.x2!==void 0&&(E.x2-=H),E.y2!==void 0&&(E.y2-=O),E.x!==void 0&&(E.x-=H),E.y!==void 0&&(E.y-=O),E.relative=!0),E})},M.NORMALIZE_HVZ=function(E,H,O){return E===void 0&&(E=!0),H===void 0&&(H=!0),O===void 0&&(O=!0),_(function(T,k,L,W,J){if(isNaN(W)&&!(T.type&N.MOVE_TO))throw new Error("path must start with moveto");return H&&T.type&N.HORIZ_LINE_TO&&(T.type=N.LINE_TO,T.y=T.relative?0:L),O&&T.type&N.VERT_LINE_TO&&(T.type=N.LINE_TO,T.x=T.relative?0:k),E&&T.type&N.CLOSE_PATH&&(T.type=N.LINE_TO,T.x=T.relative?W-k:W,T.y=T.relative?J-L:J),T.type&N.ARC&&(T.rX===0||T.rY===0)&&(T.type=N.LINE_TO,delete T.rX,delete T.rY,delete T.xRot,delete T.lArcFlag,delete T.sweepFlag),T})},M.NORMALIZE_ST=D,M.QT_TO_C=P,M.INFO=_,M.SANITIZE=function(E){E===void 0&&(E=0),y(E);var H=NaN,O=NaN,T=NaN,k=NaN;return _(function(L,W,J,K,X){var Q=Math.abs,ie=!1,ce=0,se=0;if(L.type&N.SMOOTH_CURVE_TO&&(ce=isNaN(H)?0:W-H,se=isNaN(O)?0:J-O),L.type&(N.CURVE_TO|N.SMOOTH_CURVE_TO)?(H=L.relative?W+L.x2:L.x2,O=L.relative?J+L.y2:L.y2):(H=NaN,O=NaN),L.type&N.SMOOTH_QUAD_TO?(T=isNaN(T)?W:2*W-T,k=isNaN(k)?J:2*J-k):L.type&N.QUAD_TO?(T=L.relative?W+L.x1:L.x1,k=L.relative?J+L.y1:L.y2):(T=NaN,k=NaN),L.type&N.LINE_COMMANDS||L.type&N.ARC&&(L.rX===0||L.rY===0||!L.lArcFlag)||L.type&N.CURVE_TO||L.type&N.SMOOTH_CURVE_TO||L.type&N.QUAD_TO||L.type&N.SMOOTH_QUAD_TO){var Ce=L.x===void 0?0:L.relative?L.x:L.x-W,ve=L.y===void 0?0:L.relative?L.y:L.y-J;ce=isNaN(T)?L.x1===void 0?ce:L.relative?L.x:L.x1-W:T-W,se=isNaN(k)?L.y1===void 0?se:L.relative?L.y:L.y1-J:k-J;var me=L.x2===void 0?0:L.relative?L.x:L.x2-W,Pe=L.y2===void 0?0:L.relative?L.y:L.y2-J;Q(Ce)<=E&&Q(ve)<=E&&Q(ce)<=E&&Q(se)<=E&&Q(me)<=E&&Q(Pe)<=E&&(ie=!0)}return L.type&N.CLOSE_PATH&&Q(W-K)<=E&&Q(J-X)<=E&&(ie=!0),ie?[]:L})},M.MATRIX=re,M.ROTATE=function(E,H,O){H===void 0&&(H=0),O===void 0&&(O=0),y(E,H,O);var T=Math.sin(E),k=Math.cos(E);return re(k,T,-T,k,H-H*k+O*T,O-H*T-O*k)},M.TRANSLATE=function(E,H){return H===void 0&&(H=0),y(E,H),re(1,0,0,1,E,H)},M.SCALE=function(E,H){return H===void 0&&(H=E),y(E,H),re(E,0,0,H,0,0)},M.SKEW_X=function(E){return y(E),re(1,0,Math.atan(E),1,0,0)},M.SKEW_Y=function(E){return y(E),re(1,Math.atan(E),0,1,0,0)},M.X_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),y(E),re(-1,0,0,1,E,0)},M.Y_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),y(E),re(1,0,0,-1,0,E)},M.A_TO_C=function(){return _(function(E,H,O){return N.ARC===E.type?function(T,k,L){var W,J,K,X;T.cX||R(T,k,L);for(var Q=Math.min(T.phi1,T.phi2),ie=Math.max(T.phi1,T.phi2)-Q,ce=Math.ceil(ie/90),se=new Array(ce),Ce=k,ve=L,me=0;mek.maxX&&(k.maxX=Se),Sek.maxY&&(k.maxY=Se),SeTe&&X(G(W,K.x1,K.x2,K.x,Te));for(var se=0,Ce=V(J,K.y1,K.y2,K.y);seTe&&Q(G(J,K.y1,K.y2,K.y,Te))}if(K.type&N.ARC){X(K.x),Q(K.y),R(K,W,J);for(var ve=K.xRot/180*Math.PI,me=Math.cos(ve)*K.rX,Pe=Math.sin(ve)*K.rX,Me=-Math.sin(ve)*K.rY,Ae=Math.cos(ve)*K.rY,Re=K.phi1K.phi2?[K.phi2+360,K.phi1+360]:[K.phi2,K.phi1],je=Re[0],Ie=Re[1],we=function(Oe){var ze=Oe[0],qe=Oe[1],Ge=180*Math.atan2(qe,ze)/Math.PI;return Geje&&Teje&&TeT)throw new SyntaxError('Expected positive number, got "'+T+'" at index "'+q+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+q+'"')}this.curArgs.push(T),this.curArgs.length===le[this.curCommandType]&&(N.HORIZ_LINE_TO===this.curCommandType?re({type:N.HORIZ_LINE_TO,relative:this.curCommandRelative,x:T}):N.VERT_LINE_TO===this.curCommandType?re({type:N.VERT_LINE_TO,relative:this.curCommandRelative,y:T}):this.curCommandType===N.MOVE_TO||this.curCommandType===N.LINE_TO||this.curCommandType===N.SMOOTH_QUAD_TO?(re({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),N.MOVE_TO===this.curCommandType&&(this.curCommandType=N.LINE_TO)):this.curCommandType===N.CURVE_TO?re({type:N.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===N.SMOOTH_CURVE_TO?re({type:N.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.QUAD_TO?re({type:N.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.ARC&&re({type:N.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Z(E))if(E===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(E!=="+"&&E!=="-"&&E!==".")if(O)this.curNumber=E,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+q+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+E+'" at index '+q+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,E!=="z"&&E!=="Z")if(E==="h"||E==="H")this.curCommandType=N.HORIZ_LINE_TO,this.curCommandRelative=E==="h";else if(E==="v"||E==="V")this.curCommandType=N.VERT_LINE_TO,this.curCommandRelative=E==="v";else if(E==="m"||E==="M")this.curCommandType=N.MOVE_TO,this.curCommandRelative=E==="m";else if(E==="l"||E==="L")this.curCommandType=N.LINE_TO,this.curCommandRelative=E==="l";else if(E==="c"||E==="C")this.curCommandType=N.CURVE_TO,this.curCommandRelative=E==="c";else if(E==="s"||E==="S")this.curCommandType=N.SMOOTH_CURVE_TO,this.curCommandRelative=E==="s";else if(E==="q"||E==="Q")this.curCommandType=N.QUAD_TO,this.curCommandRelative=E==="q";else if(E==="t"||E==="T")this.curCommandType=N.SMOOTH_QUAD_TO,this.curCommandRelative=E==="t";else{if(E!=="a"&&E!=="A")throw new SyntaxError('Unexpected character "'+E+'" at index '+q+".");this.curCommandType=N.ARC,this.curCommandRelative=E==="a"}else P.push({type:N.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=E,this.curNumberHasDecimal=E==="."}else this.curNumber+=E,this.curNumberHasDecimal=!0;else this.curNumber+=E;else this.curNumber+=E,this.curNumberHasExp=!0;else this.curNumber+=E,this.curNumberHasExpDigits=this.curNumberHasExp}return P},C.prototype.transform=function(D){return Object.create(this,{parse:{value:function(_,re){re===void 0&&(re=[]);for(var q=0,E=Object.getPrototypeOf(this).parse.call(this,_);q0&&arguments[0]!==void 0?arguments[0]:{},c=v.DOMParser,r={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:c,createCanvas:function(e,o){return new OffscreenCanvas(e,o)},createImage:function(e){return ve()(se.a.mark(function o(){var n,i,s;return se.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,fetch(e);case 2:return n=f.sent,f.next=5,n.blob();case 5:return i=f.sent,f.next=8,createImageBitmap(i);case 8:return s=f.sent,f.abrupt("return",s);case 10:case"end":return f.stop()}},o)}))()}};return(typeof DOMParser!="undefined"||typeof c=="undefined")&&Reflect.deleteProperty(r,"DOMParser"),r}function Be(v){var c=v.DOMParser,r=v.canvas,a=v.fetch;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:c,fetch:a,createCanvas:r.createCanvas,createImage:r.loadImage}}var Ue=Object.freeze({__proto__:null,offscreen:Ne,node:Be});function De(v){return v.replace(/(?!\u3000)\s+/gm," ")}function Te(v){return v.replace(/^[\n \t]+/,"")}function Se(v){return v.replace(/[\n \t]+$/,"")}function Oe(v){var c=(v||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return c.map(parseFloat)}var ze=/^[A-Z-]+$/;function qe(v){return ze.test(v)?v.toLowerCase():v}function Ge(v){var c=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(v)||[];return c[2]||c[3]||c[4]}function _e(v){if(!v.startsWith("rgb"))return v;var c=3,r=v.replace(/\d+(\.\d+)?/g,function(a,e){return c--&&e?String(Math.round(parseFloat(a))):a});return r}var it=/(\[[^\]]+\])/g,st=/(#[^\s+>~.[:]+)/g,ht=/(\.[^\s+>~.[:]+)/g,mt=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,at=/(:[\w-]+\([^)]*\))/gi,tt=/(:[^\s+>~.[:]+)/g,nt=/([^\s+>~.[:]+)/g;function Ye(v,c){var r=c.exec(v);return r?[v.replace(c," "),r.length]:[v,0]}function te(v){var c=[0,0,0],r=v.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,e=Ye(r,it),o=Object(ie.a)(e,2);r=o[0],a=o[1],c[1]+=a;var n=Ye(r,st),i=Object(ie.a)(n,2);r=i[0],a=i[1],c[0]+=a;var s=Ye(r,ht),l=Object(ie.a)(s,2);r=l[0],a=l[1],c[1]+=a;var f=Ye(r,mt),p=Object(ie.a)(f,2);r=p[0],a=p[1],c[2]+=a;var x=Ye(r,at),U=Object(ie.a)(x,2);r=U[0],a=U[1],c[1]+=a;var $=Ye(r,tt),ne=Object(ie.a)($,2);r=ne[0],a=ne[1],c[1]+=a,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," ");var oe=Ye(r,nt),ae=Object(ie.a)(oe,2);return r=ae[0],a=ae[1],c[2]+=a,c.join("")}var de=1e-8;function pe(v){return Math.sqrt(Math.pow(v[0],2)+Math.pow(v[1],2))}function ye(v,c){return(v[0]*c[0]+v[1]*c[1])/(pe(v)*pe(c))}function Ee(v,c){return(v[0]*c[1]0&&arguments[0]!==void 0?arguments[0]:" ",a=this.document,e=this.name;return De(this.getString()).trim().split(r).map(function(o){return new v(a,e,o)})}},{key:"hasValue",value:function(r){var a=this.value;return a!==null&&a!==""&&(r||a!==0)&&typeof a!="undefined"}},{key:"isString",value:function(r){var a=this.value,e=typeof a=="string";return!e||!r?e:r.test(a)}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var r=this.getString();switch(!0){case r.endsWith("px"):case/^[0-9]+$/.test(r):return!0;default:return!1}}},{key:"setValue",value:function(r){return this.value=r,this}},{key:"getValue",value:function(r){return typeof r=="undefined"||this.hasValue()?this.value:r}},{key:"getNumber",value:function(r){if(!this.hasValue())return typeof r=="undefined"?0:parseFloat(r);var a=this.value,e=parseFloat(a);return this.isString(/%$/)&&(e/=100),e}},{key:"getString",value:function(r){return typeof r=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(r)}},{key:"getColor",value:function(r){var a=this.getString(r);return this.isNormalizedColor||(this.isNormalizedColor=!0,a=_e(a),this.value=a),a}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9.-]/g,"")}},{key:"getPixels",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var e=typeof r=="boolean"?[void 0,r]:[r],o=Object(ie.a)(e,2),n=o[0],i=o[1],s=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(n);default:{var l=this.getNumber();return a&&l<1?l*s.computeSize(n):l}}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var r=this.getString(),a=/#([^)'"]+)/.exec(r);return a&&(a=a[1]),a||(a=r),this.document.definitions[a]}},{key:"getFillStyleDefinition",value:function(r,a){var e=this.getDefinition();if(!e)return null;if(typeof e.createGradient=="function")return e.createGradient(this.document.ctx,r,a);if(typeof e.createPattern=="function"){if(e.getHrefAttribute().hasValue()){var o=e.getAttribute("patternTransform");e=e.getHrefAttribute().getDefinition(),o.hasValue()&&e.getAttribute("patternTransform",!0).setValue(o.value)}return e.createPattern(this.document.ctx,r,a)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?v.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(r){for(var a=this.getColor(),e=a.length,o=0,n=0;n1&&arguments[1]!==void 0?arguments[1]:0,e=Oe(r),o=Object(ie.a)(e,2),n=o[0],i=n===void 0?a:n,s=o[1],l=s===void 0?a:s;return new v(i,l)}},{key:"parseScale",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,e=Oe(r),o=Object(ie.a)(e,2),n=o[0],i=n===void 0?a:n,s=o[1],l=s===void 0?i:s;return new v(i,l)}},{key:"parsePath",value:function(r){for(var a=Oe(r),e=a.length,o=[],n=0;n0}},{key:"runEvents",value:function(){if(!this.working)return;var r=this.screen,a=this.events,e=this.eventElements,o=r.ctx.canvas.style;o&&(o.cursor=""),a.forEach(function(n,i){for(var s=n.run,l=e[i];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}},{key:"checkPath",value:function(r,a){if(!this.working||!a)return;var e=this.events,o=this.eventElements;e.forEach(function(n,i){var s=n.x,l=n.y;!o[i]&&a.isPointInPath&&a.isPointInPath(s,l)&&(o[i]=r)})}},{key:"checkBoundingBox",value:function(r,a){if(!this.working||!a)return;var e=this.events,o=this.eventElements;e.forEach(function(n,i){var s=n.x,l=n.y;!o[i]&&a.isPointInBox(s,l)&&(o[i]=r)})}},{key:"mapXY",value:function(r,a){for(var e=this.screen,o=e.window,n=e.ctx,i=new We(r,a),s=n.canvas;s;)i.x-=s.offsetLeft,i.y-=s.offsetTop,s=s.offsetParent;return o.scrollX&&(i.x+=o.scrollX),o.scrollY&&(i.y+=o.scrollY),i}},{key:"onClick",value:function(r){var a=this.mapXY(r.clientX,r.clientY),e=a.x,o=a.y;this.events.push({type:"onclick",x:e,y:o,run:function(i){i.onClick&&i.onClick()}})}},{key:"onMouseMove",value:function(r){var a=this.mapXY(r.clientX,r.clientY),e=a.x,o=a.y;this.events.push({type:"onmousemove",x:e,y:o,run:function(i){i.onMouseMove&&i.onMouseMove()}})}}]),v}(),Ct=typeof window!="undefined"?window:null,Mt=typeof fetch!="undefined"?fetch.bind(void 0):null,He=function(){function v(c){Object(X.a)(this,v);var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.fetch,e=a===void 0?Mt:a,o=r.window,n=o===void 0?Ct:o;this.ctx=c,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new yt,this.mouse=new Ot(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=e}return Object(Q.a)(v,[{key:"wait",value:function(r){this.waits.push(r)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var r=this.waits.every(function(a){return a()});return r&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=r,r}},{key:"setDefaults",value:function(r){r.strokeStyle="rgba(0,0,0,0)",r.lineCap="butt",r.lineJoin="miter",r.miterLimit=4}},{key:"setViewBox",value:function(r){var a=r.document,e=r.ctx,o=r.aspectRatio,n=r.width,i=r.desiredWidth,s=r.height,l=r.desiredHeight,f=r.minX,p=f===void 0?0:f,x=r.minY,U=x===void 0?0:x,$=r.refX,ne=r.refY,oe=r.clip,ae=oe===void 0?!1:oe,be=r.clipX,fe=be===void 0?0:be,ue=r.clipY,ge=ue===void 0?0:ue,Le=De(o).replace(/^defer\s/,""),Ve=Le.split(" "),Ze=Object(ie.a)(Ve,2),dt=Ze[0],ft=Ze[1],ot=dt||"xMidYMid",rt=ft||"meet",ut=n/i,Et=s/l,et=Math.min(ut,Et),Pt=Math.max(ut,Et),Vt=i,Bt=l;rt==="meet"&&(Vt*=et,Bt*=et),rt==="slice"&&(Vt*=Pt,Bt*=Pt);var Bn=new he(a,"refX",$),Fn=new he(a,"refY",ne),Wn=Bn.hasValue()&&Fn.hasValue();if(Wn&&e.translate(-et*Bn.getPixels("x"),-et*Fn.getPixels("y")),ae){var Gn=et*fe,kn=et*ge;e.beginPath(),e.moveTo(Gn,kn),e.lineTo(n,kn),e.lineTo(n,s),e.lineTo(Gn,s),e.closePath(),e.clip()}if(!Wn){var zn=rt==="meet"&&et===Et,Hn=rt==="slice"&&Pt===Et,Kn=rt==="meet"&&et===ut,Yn=rt==="slice"&&Pt===ut;ot.startsWith("xMid")&&(zn||Hn)&&e.translate(n/2-Vt/2,0),ot.endsWith("YMid")&&(Kn||Yn)&&e.translate(0,s/2-Bt/2),ot.startsWith("xMax")&&(zn||Hn)&&e.translate(n-Vt,0),ot.endsWith("YMax")&&(Kn||Yn)&&e.translate(0,s-Bt)}switch(!0){case ot==="none":e.scale(ut,Et);break;case rt==="meet":e.scale(et,et);break;case rt==="slice":e.scale(Pt,Pt);break}e.translate(-p,-U)}},{key:"start",value:function(r){var a=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.enableRedraw,n=o===void 0?!1:o,i=e.ignoreMouse,s=i===void 0?!1:i,l=e.ignoreAnimation,f=l===void 0?!1:l,p=e.ignoreDimensions,x=p===void 0?!1:p,U=e.ignoreClear,$=U===void 0?!1:U,ne=e.forceRedraw,oe=e.scaleWidth,ae=e.scaleHeight,be=e.offsetX,fe=e.offsetY,ue=this.FRAMERATE,ge=this.mouse,Le=1e3/ue;if(this.frameDuration=Le,this.readyPromise=new Promise(function(ot){a.resolveReady=ot}),this.isReady()&&this.render(r,x,$,oe,ae,be,fe),!n)return;var Ve=Date.now(),Ze=Ve,dt=0,ft=function ot(){Ve=Date.now(),dt=Ve-Ze,dt>=Le&&(Ze=Ve-dt%Le,a.shouldUpdate(f,ne)&&(a.render(r,x,$,oe,ae,be,fe),ge.runEvents())),a.intervalId=Ae()(ot)};s||ge.start(),this.intervalId=Ae()(ft)}},{key:"stop",value:function(){this.intervalId&&(Ae.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(r,a){if(!r){var e=this.frameDuration,o=this.animations.reduce(function(n,i){return i.update(e)||n},!1);if(o)return!0}return typeof a=="function"&&a()||!this.isReadyLock&&this.isReady()?!0:!!this.mouse.hasEvents()}},{key:"render",value:function(r,a,e,o,n,i,s){var l=this.CLIENT_WIDTH,f=this.CLIENT_HEIGHT,p=this.viewPort,x=this.ctx,U=this.isFirstRender,$=x.canvas;p.clear(),$.width&&$.height?p.setCurrent($.width,$.height):p.setCurrent(l,f);var ne=r.getStyle("width"),oe=r.getStyle("height");!a&&(U||typeof o!="number"&&typeof n!="number")&&(ne.hasValue()&&($.width=ne.getPixels("x"),$.style&&($.style.width="".concat($.width,"px"))),oe.hasValue()&&($.height=oe.getPixels("y"),$.style&&($.style.height="".concat($.height,"px"))));var ae=$.clientWidth||$.width,be=$.clientHeight||$.height;if(a&&ne.hasValue()&&oe.hasValue()&&(ae=ne.getPixels("x"),be=oe.getPixels("y")),p.setCurrent(ae,be),typeof i=="number"&&r.getAttribute("x",!0).setValue(i),typeof s=="number"&&r.getAttribute("y",!0).setValue(s),typeof o=="number"||typeof n=="number"){var fe=Oe(r.getAttribute("viewBox").getString()),ue=0,ge=0;if(typeof o=="number"){var Le=r.getStyle("width");Le.hasValue()?ue=Le.getPixels("x")/o:isNaN(fe[2])||(ue=fe[2]/o)}if(typeof n=="number"){var Ve=r.getStyle("height");Ve.hasValue()?ge=Ve.getPixels("y")/n:isNaN(fe[3])||(ge=fe[3]/n)}ue||(ue=ge),ge||(ge=ue),r.getAttribute("width",!0).setValue(o),r.getAttribute("height",!0).setValue(n);var Ze=r.getStyle("transform",!0,!0);Ze.setValue("".concat(Ze.getString()," scale(").concat(1/ue,", ").concat(1/ge,")"))}e||x.clearRect(0,0,ae,be),r.render(x),U&&(this.isFirstRender=!1)}}]),v}();He.defaultWindow=Ct,He.defaultFetch=Mt;var $n=He.defaultFetch,Xn=typeof DOMParser!="undefined"?DOMParser:null,It=function(){function v(){Object(X.a)(this,v);var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=c.fetch,a=r===void 0?$n:r,e=c.DOMParser,o=e===void 0?Xn:e;this.fetch=a,this.DOMParser=o}return Object(Q.a)(v,[{key:"parse",value:function(r){var a=this;return ve()(se.a.mark(function e(){return se.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!r.startsWith("<")){n.next=2;break}return n.abrupt("return",a.parseFromString(r));case 2:return n.abrupt("return",a.load(r));case 3:case"end":return n.stop()}},e)}))()}},{key:"parseFromString",value:function(r){var a=new this.DOMParser;try{return this.checkDocument(a.parseFromString(r,"image/svg+xml"))}catch(e){return this.checkDocument(a.parseFromString(r,"text/xml"))}}},{key:"checkDocument",value:function(r){var a=r.getElementsByTagName("parsererror")[0];if(a)throw new Error(a.textContent);return r}},{key:"load",value:function(r){var a=this;return ve()(se.a.mark(function e(){var o,n;return se.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,a.fetch(r);case 2:return o=s.sent,s.next=5,o.text();case 5:return n=s.sent,s.abrupt("return",a.parseFromString(n));case 7:case"end":return s.stop()}},e)}))()}}]),v}(),Zt=function(){function v(c,r){Object(X.a)(this,v),this.type="translate",this.point=null,this.point=We.parse(r)}return Object(Q.a)(v,[{key:"apply",value:function(r){var a=this.point,e=a.x,o=a.y;r.translate(e||0,o||0)}},{key:"unapply",value:function(r){var a=this.point,e=a.x,o=a.y;r.translate(-1*e||0,-1*o||0)}},{key:"applyToPoint",value:function(r){var a=this.point,e=a.x,o=a.y;r.applyTransform([1,0,0,1,e||0,o||0])}}]),v}(),qt=function(){function v(c,r,a){Object(X.a)(this,v),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var e=Oe(r);this.angle=new he(c,"angle",e[0]),this.originX=a[0],this.originY=a[1],this.cx=e[1]||0,this.cy=e[2]||0}return Object(Q.a)(v,[{key:"apply",value:function(r){var a=this.cx,e=this.cy,o=this.originX,n=this.originY,i=this.angle,s=a+o.getPixels("x"),l=e+n.getPixels("y");r.translate(s,l),r.rotate(i.getRadians()),r.translate(-s,-l)}},{key:"unapply",value:function(r){var a=this.cx,e=this.cy,o=this.originX,n=this.originY,i=this.angle,s=a+o.getPixels("x"),l=e+n.getPixels("y");r.translate(s,l),r.rotate(-1*i.getRadians()),r.translate(-s,-l)}},{key:"applyToPoint",value:function(r){var a=this.cx,e=this.cy,o=this.angle,n=o.getRadians();r.applyTransform([1,0,0,1,a||0,e||0]),r.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),r.applyTransform([1,0,0,1,-a||0,-e||0])}}]),v}(),_t=function(){function v(c,r,a){Object(X.a)(this,v),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var e=We.parseScale(r);(e.x===0||e.y===0)&&(e.x=de,e.y=de),this.scale=e,this.originX=a[0],this.originY=a[1]}return Object(Q.a)(v,[{key:"apply",value:function(r){var a=this.scale,e=a.x,o=a.y,n=this.originX,i=this.originY,s=n.getPixels("x"),l=i.getPixels("y");r.translate(s,l),r.scale(e,o||e),r.translate(-s,-l)}},{key:"unapply",value:function(r){var a=this.scale,e=a.x,o=a.y,n=this.originX,i=this.originY,s=n.getPixels("x"),l=i.getPixels("y");r.translate(s,l),r.scale(1/e,1/o||e),r.translate(-s,-l)}},{key:"applyToPoint",value:function(r){var a=this.scale,e=a.x,o=a.y;r.applyTransform([e||0,0,0,o||0,0,0])}}]),v}(),Ft=function(){function v(c,r,a){Object(X.a)(this,v),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Oe(r),this.originX=a[0],this.originY=a[1]}return Object(Q.a)(v,[{key:"apply",value:function(r){var a=this.originX,e=this.originY,o=this.matrix,n=a.getPixels("x"),i=e.getPixels("y");r.translate(n,i),r.transform(o[0],o[1],o[2],o[3],o[4],o[5]),r.translate(-n,-i)}},{key:"unapply",value:function(r){var a=this.originX,e=this.originY,o=this.matrix,n=o[0],i=o[2],s=o[4],l=o[1],f=o[3],p=o[5],x=0,U=0,$=1,ne=1/(n*(f*$-p*U)-i*(l*$-p*x)+s*(l*U-f*x)),oe=a.getPixels("x"),ae=e.getPixels("y");r.translate(oe,ae),r.transform(ne*(f*$-p*U),ne*(p*x-l*$),ne*(s*U-i*$),ne*(n*$-s*x),ne*(i*p-s*f),ne*(s*l-n*p)),r.translate(-oe,-ae)}},{key:"applyToPoint",value:function(r){r.applyTransform(this.matrix)}}]),v}(),Wt=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=c.call(this,a,e,o),n.type="skew",n.angle=null,n.angle=new he(a,"angle",e),n}return Object(Q.a)(r)}(Ft),en=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=c.call(this,a,e,o),n.type="skewX",n.matrix=[1,0,Math.tan(n.angle.getRadians()),1,0,0],n}return Object(Q.a)(r)}(Wt),tn=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=c.call(this,a,e,o),n.type="skewY",n.matrix=[1,Math.tan(n.angle.getRadians()),0,1,0,0],n}return Object(Q.a)(r)}(Wt);function Qn(v){return De(v).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Jn(v){var c=v.split("("),r=Object(ie.a)(c,2),a=r[0],e=r[1];return[a.trim(),e.trim().replace(")","")]}var At=function(){function v(c,r,a){var e=this;Object(X.a)(this,v),this.document=c,this.transforms=[];var o=Qn(r);o.forEach(function(n){if(n==="none")return;var i=Jn(n),s=Object(ie.a)(i,2),l=s[0],f=s[1],p=v.transformTypes[l];typeof p!="undefined"&&e.transforms.push(new p(e.document,f,a))})}return Object(Q.a)(v,[{key:"apply",value:function(r){for(var a=this.transforms,e=a.length,o=0;o=0;o--)a[o].unapply(r)}},{key:"applyToPoint",value:function(r){for(var a=this.transforms,e=a.length,o=0;o2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=c,this.node=r,this.captureTextNodes=e,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!r||r.nodeType!==1)return;if(Array.from(r.attributes).forEach(function(s){var l=qe(s.nodeName);a.attributes[l]=new he(c,l,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var o=this.getAttribute("style").getString().split(";").map(function(s){return s.trim()});o.forEach(function(s){if(!s)return;var l=s.split(":").map(function(U){return U.trim()}),f=Object(ie.a)(l,2),p=f[0],x=f[1];a.styles[p]=new he(c,p,x)})}var n=c.definitions,i=this.getAttribute("id");i.hasValue()&&(n[i.getString()]||(n[i.getString()]=this)),Array.from(r.childNodes).forEach(function(s){if(s.nodeType===1)a.addChild(s);else if(e&&(s.nodeType===3||s.nodeType===4)){var l=c.createTextNode(s);l.getText().length>0&&a.addChild(l)}})}return Object(Q.a)(v,[{key:"getAttribute",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=this.attributes[r];if(!e&&a){var o=new he(this.document,r,"");return this.attributes[r]=o,o}return e||he.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var r in this.attributes)if(r==="href"||r.endsWith(":href"))return this.attributes[r];return he.empty(this.document)}},{key:"getStyle",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.styles[r];if(o)return o;var n=this.getAttribute(r);if(n!=null&&n.hasValue())return this.styles[r]=n,n;if(!e){var i=this.parent;if(i){var s=i.getStyle(r);if(s!=null&&s.hasValue())return s}}if(a){var l=new he(this.document,r,"");return this.styles[r]=l,l}return o||he.empty(this.document)}},{key:"render",value:function(r){if(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")return;if(r.save(),this.getStyle("mask").hasValue()){var a=this.getStyle("mask").getDefinition();a&&(this.applyEffects(r),a.apply(r,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var e=this.getStyle("filter").getDefinition();e&&(this.applyEffects(r),e.apply(r,this))}else this.setContext(r),this.renderChildren(r),this.clearContext(r);r.restore()}},{key:"setContext",value:function(r){}},{key:"applyEffects",value:function(r){var a=At.fromElement(this.document,this);a&&a.apply(r);var e=this.getStyle("clip-path",!1,!0);if(e.hasValue()){var o=e.getDefinition();o&&o.apply(r)}}},{key:"clearContext",value:function(r){}},{key:"renderChildren",value:function(r){this.children.forEach(function(a){a.render(r)})}},{key:"addChild",value:function(r){var a=r instanceof v?r:this.document.createElement(r);a.parent=this,v.ignoreChildTypes.includes(a.type)||this.children.push(a)}},{key:"matchesSelector",value:function(r){var a=this.node;if(typeof a.matches=="function")return a.matches(r);var e=a.getAttribute("class");return!e||e===""?!1:e.split(" ").some(function(o){return".".concat(o)===r})}},{key:"addStylesFromStyleDefinition",value:function(){var r=this.document,a=r.styles,e=r.stylesSpecificity;for(var o in a)if(!o.startsWith("@")&&this.matchesSelector(o)){var n=a[o],i=e[o];if(n)for(var s in n){var l=this.stylesSpecificity[s];typeof l=="undefined"&&(l="000"),i>=l&&(this.styles[s]=n[s],this.stylesSpecificity[s]=i)}}}},{key:"removeStyles",value:function(r,a){var e=a.reduce(function(o,n){var i=r.getStyle(n);if(!i.hasValue())return o;var s=i.getString();return i.setValue(""),[].concat(Object(W.a)(o),[[n,s]])},[]);return e}},{key:"restoreStyles",value:function(r,a){a.forEach(function(e){var o=Object(ie.a)(e,2),n=o[0],i=o[1];r.getStyle(n,!0).setValue(i)})}}]),v}();ke.ignoreChildTypes=["title"];var nn=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){return Object(X.a)(this,r),c.call(this,a,e,o)}return Object(Q.a)(r)}(ke);function Zn(v){var c=v.trim();return/^('|")/.test(c)?c:'"'.concat(c,'"')}function qn(v){return typeof u=="undefined"?v:v.trim().split(",").map(Zn).join(",")}function _n(v){if(!v)return"";var c=v.trim().toLowerCase();switch(c){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return c;default:return/^oblique\s+(-|)\d+deg$/.test(c)?c:""}}function er(v){if(!v)return"";var c=v.trim().toLowerCase();switch(c){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return c;default:return/^[\d.]+$/.test(c)?c:""}}var gt=function(){function v(c,r,a,e,o,n){Object(X.a)(this,v);var i=n?typeof n=="string"?v.parse(n):n:{};this.fontFamily=o||i.fontFamily,this.fontSize=e||i.fontSize,this.fontStyle=c||i.fontStyle,this.fontWeight=a||i.fontWeight,this.fontVariant=r||i.fontVariant}return Object(Q.a)(v,[{key:"toString",value:function(){return[_n(this.fontStyle),this.fontVariant,er(this.fontWeight),this.fontSize,qn(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,e="",o="",n="",i="",s="",l=De(r).trim().split(" "),f={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(function(p){switch(!0){case(!f.fontStyle&&v.styles.includes(p)):p!=="inherit"&&(e=p),f.fontStyle=!0;break;case(!f.fontVariant&&v.variants.includes(p)):p!=="inherit"&&(o=p),f.fontStyle=!0,f.fontVariant=!0;break;case(!f.fontWeight&&v.weights.includes(p)):p!=="inherit"&&(n=p),f.fontStyle=!0,f.fontVariant=!0,f.fontWeight=!0;break;case!f.fontSize:if(p!=="inherit"){var x=p.split("/"),U=Object(ie.a)(x,1);i=U[0]}f.fontStyle=!0,f.fontVariant=!0,f.fontWeight=!0,f.fontSize=!0;break;default:p!=="inherit"&&(s+=p)}}),new v(e,o,n,i,s,a)}}]),v}();gt.styles="normal|italic|oblique|inherit",gt.variants="normal|small-caps|inherit",gt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var ct=function(){function v(){Object(X.a)(this,v);var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=c,this.y1=r,this.x2=a,this.y2=e,this.addPoint(c,r),this.addPoint(a,e)}return Object(Q.a)(v,[{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}},{key:"addPoint",value:function(r,a){typeof r!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=r,this.x2=r),rthis.x2&&(this.x2=r)),typeof a!="undefined"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=a,this.y2=a),athis.y2&&(this.y2=a))}},{key:"addX",value:function(r){this.addPoint(r,null)}},{key:"addY",value:function(r){this.addPoint(null,r)}},{key:"addBoundingBox",value:function(r){if(!r)return;var a=r.x1,e=r.y1,o=r.x2,n=r.y2;this.addPoint(a,e),this.addPoint(o,n)}},{key:"sumCubic",value:function(r,a,e,o,n){return Math.pow(1-r,3)*a+3*Math.pow(1-r,2)*r*e+3*(1-r)*Math.pow(r,2)*o+Math.pow(r,3)*n}},{key:"bezierCurveAdd",value:function(r,a,e,o,n){var i=6*a-12*e+6*o,s=-3*a+9*e-9*o+3*n,l=3*e-3*a;if(s===0){if(i===0)return;var f=-l/i;0=o.length-1}},{key:"next",value:function(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}},{key:"getPoint",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",n=new We(this.command[e],this.command[o]);return this.makeAbsolute(n)}},{key:"getAsControlPoint",value:function(e,o){var n=this.getPoint(e,o);return this.control=n,n}},{key:"getAsCurrentPoint",value:function(e,o){var n=this.getPoint(e,o);return this.current=n,n}},{key:"getReflectedControlPoint",value:function(){var e=this.previousCommand.type;if(e!==Ie.a.CURVE_TO&&e!==Ie.a.SMOOTH_CURVE_TO&&e!==Ie.a.QUAD_TO&&e!==Ie.a.SMOOTH_QUAD_TO)return this.current;var o=this.current,n=o.x,i=o.y,s=this.control,l=s.x,f=s.y,p=new We(2*n-l,2*i-f);return p}},{key:"makeAbsolute",value:function(e){if(this.command.relative){var o=this.current,n=o.x,i=o.y;e.x+=n,e.y+=i}return e}},{key:"addMarker",value:function(e,o,n){var i=this.points,s=this.angles;n&&s.length>0&&!s[s.length-1]&&(s[s.length-1]=i[i.length-1].angleTo(n)),this.addMarkerAngle(e,o?o.angleTo(e):null)}},{key:"addMarkerAngle",value:function(e,o){this.points.push(e),this.angles.push(o)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var e=this.angles,o=e.length,n=0;n1&&arguments[1]!==void 0?arguments[1]:!1;if(!o){var n=this.getStyle("fill"),i=this.getStyle("fill-opacity"),s=this.getStyle("stroke"),l=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var f=n.getFillStyleDefinition(this,i);f&&(e.fillStyle=f)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var p=n.getColor();p!=="inherit"&&(e.fillStyle=p==="none"?"rgba(0,0,0,0)":p)}if(i.hasValue()){var x=new he(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=x}if(s.isUrlDefinition()){var U=s.getFillStyleDefinition(this,l);U&&(e.strokeStyle=U)}else if(s.hasValue()){s.getString()==="currentColor"&&s.setValue(this.getStyle("color").getColor());var $=s.getString();$!=="inherit"&&(e.strokeStyle=$==="none"?"rgba(0,0,0,0)":$)}if(l.hasValue()){var ne=new he(this.document,"stroke",e.strokeStyle).addOpacity(l).getString();e.strokeStyle=ne}var oe=this.getStyle("stroke-width");if(oe.hasValue()){var ae=oe.getPixels();e.lineWidth=ae||de}var be=this.getStyle("stroke-linecap"),fe=this.getStyle("stroke-linejoin"),ue=this.getStyle("stroke-miterlimit"),ge=this.getStyle("stroke-dasharray"),Le=this.getStyle("stroke-dashoffset");if(be.hasValue()&&(e.lineCap=be.getString()),fe.hasValue()&&(e.lineJoin=fe.getString()),ue.hasValue()&&(e.miterLimit=ue.getNumber()),ge.hasValue()&&ge.getString()!=="none"){var Ve=Oe(ge.getString());typeof e.setLineDash!="undefined"?e.setLineDash(Ve):typeof e.webkitLineDash!="undefined"?e.webkitLineDash=Ve:typeof e.mozDash!="undefined"&&!(Ve.length===1&&Ve[0]===0)&&(e.mozDash=Ve);var Ze=Le.getPixels();typeof e.lineDashOffset!="undefined"?e.lineDashOffset=Ze:typeof e.webkitLineDashOffset!="undefined"?e.webkitLineDashOffset=Ze:typeof e.mozDashOffset!="undefined"&&(e.mozDashOffset=Ze)}}if(this.modifiedEmSizeStack=!1,typeof e.font!="undefined"){var dt=this.getStyle("font"),ft=this.getStyle("font-style"),ot=this.getStyle("font-variant"),rt=this.getStyle("font-weight"),ut=this.getStyle("font-size"),Et=this.getStyle("font-family"),et=new gt(ft.getString(),ot.getString(),rt.getString(),ut.hasValue()?"".concat(ut.getPixels(!0),"px"):"",Et.getString(),gt.parse(dt.getString(),e.font));ft.setValue(et.fontStyle),ot.setValue(et.fontVariant),rt.setValue(et.fontWeight),ut.setValue(et.fontSize),Et.setValue(et.fontFamily),e.font=et.toString(),ut.isPixels()&&(this.document.emSize=ut.getPixels(),this.modifiedEmSizeStack=!0)}o||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(e){Object(k.a)(Object(L.a)(r.prototype),"clearContext",this).call(this,e),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),r}(ke),Qe=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=c.call(this,a,e,o),n.type="path",n.pathParser=null,n.pathParser=new xe(n.getAttribute("d").getString()),n}return Object(Q.a)(r,[{key:"path",value:function(e){var o=this.pathParser,n=new ct;for(o.reset(),e&&e.beginPath();!o.isEnd();)switch(o.next().type){case xe.MOVE_TO:this.pathM(e,n);break;case xe.LINE_TO:this.pathL(e,n);break;case xe.HORIZ_LINE_TO:this.pathH(e,n);break;case xe.VERT_LINE_TO:this.pathV(e,n);break;case xe.CURVE_TO:this.pathC(e,n);break;case xe.SMOOTH_CURVE_TO:this.pathS(e,n);break;case xe.QUAD_TO:this.pathQ(e,n);break;case xe.SMOOTH_QUAD_TO:this.pathT(e,n);break;case xe.ARC:this.pathA(e,n);break;case xe.CLOSE_PATH:this.pathZ(e,n);break}return n}},{key:"getBoundingBox",value:function(e){return this.path()}},{key:"getMarkers",value:function(){var e=this.pathParser,o=e.getMarkerPoints(),n=e.getMarkerAngles(),i=o.map(function(s,l){return[s,n[l]]});return i}},{key:"renderChildren",value:function(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var o=this.getStyle("fill-rule");e.fillStyle!==""&&(o.getString("inherit")!=="inherit"?e.fill(o.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var i=n.length-1,s=this.getStyle("marker-start"),l=this.getStyle("marker-mid"),f=this.getStyle("marker-end");if(s.isUrlDefinition()){var p=s.getDefinition(),x=Object(ie.a)(n[0],2),U=x[0],$=x[1];p.render(e,U,$)}if(l.isUrlDefinition())for(var ne=l.getDefinition(),oe=1;oef?l:f,ue=l>f?1:l/f,ge=l>f?f/l:1;e.translate(U.x,U.y),e.rotate(x),e.scale(ue,ge),e.arc(0,0,fe,$,$+ne,Boolean(1-p)),e.scale(1/ue,1/ge),e.rotate(-x),e.translate(-U.x,-U.y)}}},{key:"pathZ",value:function(e,o){r.pathZ(this.pathParser),e&&(o.x1!==o.x2&&o.y1!==o.y2&&e.closePath())}}],[{key:"pathM",value:function(e){var o=e.getAsCurrentPoint();return e.start=e.current,{point:o}}},{key:"pathL",value:function(e){var o=e.current,n=e.getAsCurrentPoint();return{current:o,point:n}}},{key:"pathH",value:function(e){var o=e.current,n=e.command,i=new We((n.relative?o.x:0)+n.x,o.y);return e.current=i,{current:o,point:i}}},{key:"pathV",value:function(e){var o=e.current,n=e.command,i=new We(o.x,(n.relative?o.y:0)+n.y);return e.current=i,{current:o,point:i}}},{key:"pathC",value:function(e){var o=e.current,n=e.getPoint("x1","y1"),i=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:o,point:n,controlPoint:i,currentPoint:s}}},{key:"pathS",value:function(e){var o=e.current,n=e.getReflectedControlPoint(),i=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:o,point:n,controlPoint:i,currentPoint:s}}},{key:"pathQ",value:function(e){var o=e.current,n=e.getAsControlPoint("x1","y1"),i=e.getAsCurrentPoint();return{current:o,controlPoint:n,currentPoint:i}}},{key:"pathT",value:function(e){var o=e.current,n=e.getReflectedControlPoint();e.control=n;var i=e.getAsCurrentPoint();return{current:o,controlPoint:n,currentPoint:i}}},{key:"pathA",value:function(e){var o=e.current,n=e.command,i=n.rX,s=n.rY,l=n.xRot,f=n.lArcFlag,p=n.sweepFlag,x=l*(Math.PI/180),U=e.getAsCurrentPoint(),$=new We(Math.cos(x)*(o.x-U.x)/2+Math.sin(x)*(o.y-U.y)/2,-Math.sin(x)*(o.x-U.x)/2+Math.cos(x)*(o.y-U.y)/2),ne=Math.pow($.x,2)/Math.pow(i,2)+Math.pow($.y,2)/Math.pow(s,2);ne>1&&(i*=Math.sqrt(ne),s*=Math.sqrt(ne));var oe=(f===p?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(s,2)-Math.pow(i,2)*Math.pow($.y,2)-Math.pow(s,2)*Math.pow($.x,2))/(Math.pow(i,2)*Math.pow($.y,2)+Math.pow(s,2)*Math.pow($.x,2)));isNaN(oe)&&(oe=0);var ae=new We(oe*i*$.y/s,oe*-s*$.x/i),be=new We((o.x+U.x)/2+Math.cos(x)*ae.x-Math.sin(x)*ae.y,(o.y+U.y)/2+Math.sin(x)*ae.x+Math.cos(x)*ae.y),fe=Ee([1,0],[($.x-ae.x)/i,($.y-ae.y)/s]),ue=[($.x-ae.x)/i,($.y-ae.y)/s],ge=[(-$.x-ae.x)/i,(-$.y-ae.y)/s],Le=Ee(ue,ge);return ye(ue,ge)<=-1&&(Le=Math.PI),ye(ue,ge)>=1&&(Le=0),{currentPoint:U,rX:i,rY:s,sweepFlag:p,xAxisRotation:x,centp:be,a1:fe,ad:Le}}},{key:"pathZ",value:function(e){e.current=e.start}}]),r}(xt),Gt=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=c.call(this,a,e,o),n.type="glyph",n.horizAdvX=n.getAttribute("horiz-adv-x").getNumber(),n.unicode=n.getAttribute("unicode").getString(),n.arabicForm=n.getAttribute("arabic-form").getString(),n}return Object(Q.a)(r)}(Qe),jt=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=c.call(this,a,e,new.target===r?!0:o),n.type="text",n.x=0,n.y=0,n.measureCache=-1,n}return Object(Q.a)(r,[{key:"setContext",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Object(k.a)(Object(L.a)(r.prototype),"setContext",this).call(this,e,o);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(e.textBaseline=n)}},{key:"initializeCoordinates",value:function(e){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var o=this.getAttribute("dx"),n=this.getAttribute("dy");o.hasValue()&&(this.x+=o.getPixels("x")),n.hasValue()&&(this.y+=n.getPixels("y")),this.x+=this.getAnchorDelta(e,this,0)}},{key:"getBoundingBox",value:function(e){var o=this;if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(e);var n=null;return this.children.forEach(function(i,s){var l=o.getChildBoundingBox(e,o,o,s);n?n.addBoundingBox(l):n=l}),n}},{key:"getFontSize",value:function(){var e=this.document,o=this.parent,n=gt.parse(e.ctx.font).fontSize,i=o.getStyle("font-size").getNumber(n);return i}},{key:"getTElementBoundingBox",value:function(e){var o=this.getFontSize();return new ct(this.x,this.y-o,this.x+this.measureText(e),this.y)}},{key:"getGlyph",value:function(e,o,n){var i=o[n],s=null;if(e.isArabic){var l=o.length,f=o[n-1],p=o[n+1],x="isolated";if((n===0||f===" ")&&n0&&f!==" "&&n0&&f!==" "&&(n===l-1||p===" ")&&(x="initial"),typeof e.glyphs[i]!="undefined"){var U=e.glyphs[i];s=U instanceof Gt?U:U[x]}}else s=e.glyphs[i];return s||(s=e.missingGlyph),s}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(e){var o=e||this.node,n=Array.from(o.parentNode.childNodes),i=n.indexOf(o),s=n.length-1,l=De(o.textContent||"");return i===0&&(l=Te(l)),i===s&&(l=Se(l)),l}},{key:"renderChildren",value:function(e){var o=this;if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(e),this.children.forEach(function(i,s){o.renderChild(e,o,o,s)});var n=this.document.screen.mouse;n.isWorking()&&n.checkBoundingBox(this,this.getBoundingBox(e))}},{key:"renderTElementChildren",value:function(e){var o=this.document,n=this.parent,i=this.getText(),s=n.getStyle("font-family").getDefinition();if(s){for(var l=s.fontFace.unitsPerEm,f=gt.parse(o.ctx.font),p=n.getStyle("font-size").getNumber(f.fontSize),x=n.getStyle("font-style").getString(f.fontStyle),U=p/l,$=s.isRTL?i.split("").reverse().join(""):i,ne=Oe(n.getAttribute("dx").getString()),oe=$.length,ae=0;aen&&f.getAttribute("x").hasValue()||f.getAttribute("text-anchor").hasValue());x++)p+=f.measureTextRecursive(e);return-1*(i==="end"?p:p/2)}return 0}},{key:"adjustChildCoordinates",value:function(e,o,n,i){var s=n.children[i];if(typeof s.measureText!="function")return s;e.save(),s.setContext(e,!0);var l=s.getAttribute("x"),f=s.getAttribute("y"),p=s.getAttribute("dx"),x=s.getAttribute("dy"),U=s.getAttribute("text-anchor").getString("start");if(i===0&&s.type!=="textNode"&&(l.hasValue()||l.setValue(o.getAttribute("x").getValue("0")),f.hasValue()||f.setValue(o.getAttribute("y").getValue("0")),p.hasValue()||p.setValue(o.getAttribute("dx").getValue("0")),x.hasValue()||x.setValue(o.getAttribute("dy").getValue("0"))),l.hasValue()){if(s.x=l.getPixels("x")+o.getAnchorDelta(e,n,i),U!=="start"){var $=s.measureTextRecursive(e);s.x+=-1*(U==="end"?$:$/2)}p.hasValue()&&(s.x+=p.getPixels("x"))}else{if(U!=="start"){var ne=s.measureTextRecursive(e);o.x+=-1*(U==="end"?ne:ne/2)}p.hasValue()&&(o.x+=p.getPixels("x")),s.x=o.x}return o.x=s.x+s.measureText(e),f.hasValue()?(s.y=f.getPixels("y"),x.hasValue()&&(s.y+=x.getPixels("y"))):(x.hasValue()&&(o.y+=x.getPixels("y")),s.y=o.y),o.y=s.y,s.clearContext(e),e.restore(),s}},{key:"getChildBoundingBox",value:function(e,o,n,i){var s=this.adjustChildCoordinates(e,o,n,i);if(typeof s.getBoundingBox!="function")return null;var l=s.getBoundingBox(e);return l?(s.children.forEach(function(f,p){var x=o.getChildBoundingBox(e,o,s,p);l.addBoundingBox(x)}),l):null}},{key:"renderChild",value:function(e,o,n,i){var s=this.adjustChildCoordinates(e,o,n,i);s.render(e),s.children.forEach(function(l,f){o.renderChild(e,o,s,f)})}},{key:"measureTextRecursive",value:function(e){var o=this.children.reduce(function(n,i){return n+i.measureTextRecursive(e)},this.measureText(e));return o}},{key:"measureText",value:function(e){var o=this.measureCache;if(~o)return o;var n=this.getText(),i=this.measureTargetText(e,n);return this.measureCache=i,i}},{key:"measureTargetText",value:function(e,o){if(!o.length)return 0;var n=this.parent,i=n.getStyle("font-family").getDefinition();if(i){for(var s=this.getFontSize(),l=i.isRTL?o.split("").reverse().join(""):o,f=Oe(n.getAttribute("dx").getString()),p=l.length,x=0,U=0;U0?"":n.getTextFromNode(),n}return Object(Q.a)(r,[{key:"getText",value:function(){return this.text}}]),r}(jt),tr=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=c.apply(this,arguments),a.type="textNode",a}return Object(Q.a)(r)}(kt),Tt=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=c.apply(this,arguments),a.type="svg",a.root=!1,a}return Object(Q.a)(r,[{key:"setContext",value:function(e){var o,n=this.document,i=n.screen,s=n.window,l=e.canvas;if(i.setDefaults(e),l.style&&typeof e.font!="undefined"&&s&&typeof s.getComputedStyle!="undefined"){e.font=s.getComputedStyle(l).getPropertyValue("font");var f=new he(n,"fontSize",gt.parse(e.font).fontSize);f.hasValue()&&(n.rootEmSize=f.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var p=i.viewPort,x=p.width,U=p.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var $=this.getAttribute("refX"),ne=this.getAttribute("refY"),oe=this.getAttribute("viewBox"),ae=oe.hasValue()?Oe(oe.getString()):null,be=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",fe=0,ue=0,ge=0,Le=0;ae&&(fe=ae[0],ue=ae[1]),this.root||(x=this.getStyle("width").getPixels("x"),U=this.getStyle("height").getPixels("y"),this.type==="marker"&&(ge=fe,Le=ue,fe=0,ue=0)),i.viewPort.setCurrent(x,U),this.node&&(!this.parent||((o=this.node.parentNode)===null||o===void 0?void 0:o.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Object(k.a)(Object(L.a)(r.prototype),"setContext",this).call(this,e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),ae&&(x=ae[2],U=ae[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:x,height:i.viewPort.height,desiredHeight:U,minX:fe,minY:ue,refX:$.getValue(),refY:ne.getValue(),clip:be,clipX:ge,clipY:Le}),ae&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(x,U))}},{key:"clearContext",value:function(e){Object(k.a)(Object(L.a)(r.prototype),"clearContext",this).call(this,e),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),s=this.getAttribute("height",!0),l=this.getAttribute("viewBox"),f=this.getAttribute("style"),p=i.getNumber(0),x=s.getNumber(0);if(n)if(typeof n=="string")this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var U=this.getAttribute("preserveAspectRatio");U.hasValue()&&U.setValue(U.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),s.setValue(o),l.hasValue()||l.setValue("0 0 ".concat(p||e," ").concat(x||o)),f.hasValue()){var $=this.getStyle("width"),ne=this.getStyle("height");$.hasValue()&&$.setValue("".concat(e,"px")),ne.hasValue()&&ne.setValue("".concat(o,"px"))}}}]),r}(xt),zt=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=c.apply(this,arguments),a.type="rect",a}return Object(Q.a)(r,[{key:"path",value:function(e){var o=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),s=this.getStyle("height",!1,!0).getPixels("y"),l=this.getAttribute("rx"),f=this.getAttribute("ry"),p=l.getPixels("x"),x=f.getPixels("y");if(l.hasValue()&&!f.hasValue()&&(x=p),f.hasValue()&&!l.hasValue()&&(p=x),p=Math.min(p,i/2),x=Math.min(x,s/2),e){var U=4*((Math.sqrt(2)-1)/3);e.beginPath(),s>0&&i>0&&(e.moveTo(o+p,n),e.lineTo(o+i-p,n),e.bezierCurveTo(o+i-p+U*p,n,o+i,n+x-U*x,o+i,n+x),e.lineTo(o+i,n+s-x),e.bezierCurveTo(o+i,n+s-x+U*x,o+i-p+U*p,n+s,o+i-p,n+s),e.lineTo(o+p,n+s),e.bezierCurveTo(o+p-U*p,n+s,o,n+s-x+U*x,o,n+s-x),e.lineTo(o,n+x),e.bezierCurveTo(o,n+x-U*x,o+p-U*p,n,o+p,n),e.closePath())}return new ct(o,n,o+i,n+s)}},{key:"getMarkers",value:function(){return null}}]),r}(Qe),rn=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=c.apply(this,arguments),a.type="circle",a}return Object(Q.a)(r,[{key:"path",value:function(e){var o=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(o,n,i,0,Math.PI*2,!1),e.closePath()),new ct(o-i,n-i,o+i,n+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Qe),an=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=c.apply(this,arguments),a.type="ellipse",a}return Object(Q.a)(r,[{key:"path",value:function(e){var o=4*((Math.sqrt(2)-1)/3),n=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),s=this.getAttribute("cx").getPixels("x"),l=this.getAttribute("cy").getPixels("y");return e&&n>0&&i>0&&(e.beginPath(),e.moveTo(s+n,l),e.bezierCurveTo(s+n,l+o*i,s+o*n,l+i,s,l+i),e.bezierCurveTo(s-o*n,l+i,s-n,l+o*i,s-n,l),e.bezierCurveTo(s-n,l-o*i,s-o*n,l-i,s,l-i),e.bezierCurveTo(s+o*n,l-i,s+n,l-o*i,s+n,l),e.closePath()),new ct(s-n,l-i,s+n,l+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Qe),on=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=c.apply(this,arguments),a.type="line",a}return Object(Q.a)(r,[{key:"getPoints",value:function(){return[new We(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new We(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(e){var o=this.getPoints(),n=Object(ie.a)(o,2),i=n[0],s=i.x,l=i.y,f=n[1],p=f.x,x=f.y;return e&&(e.beginPath(),e.moveTo(s,l),e.lineTo(p,x)),new ct(s,l,p,x)}},{key:"getMarkers",value:function(){var e=this.getPoints(),o=Object(ie.a)(e,2),n=o[0],i=o[1],s=n.angleTo(i);return[[n,s],[i,s]]}}]),r}(Qe),Ht=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=c.call(this,a,e,o),n.type="polyline",n.points=[],n.points=We.parsePath(n.getAttribute("points").getString()),n}return Object(Q.a)(r,[{key:"path",value:function(e){var o=this.points,n=Object(ie.a)(o,1),i=n[0],s=i.x,l=i.y,f=new ct(s,l);return e&&(e.beginPath(),e.moveTo(s,l)),o.forEach(function(p){var x=p.x,U=p.y;f.addPoint(x,U),e&&e.lineTo(x,U)}),f}},{key:"getMarkers",value:function(){var e=this.points,o=e.length-1,n=[];return e.forEach(function(i,s){if(s===o)return;n.push([i,i.angleTo(e[s+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}]),r}(Qe),sn=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=c.apply(this,arguments),a.type="polygon",a}return Object(Q.a)(r,[{key:"path",value:function(e){var o=Object(k.a)(Object(L.a)(r.prototype),"path",this).call(this,e),n=Object(ie.a)(this.points,1),i=n[0],s=i.x,l=i.y;return e&&(e.lineTo(s,l),e.closePath()),o}}]),r}(Ht),ln=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=c.apply(this,arguments),a.type="pattern",a}return Object(Q.a)(r,[{key:"createPattern",value:function(e,o,n){var i=this.getStyle("width").getPixels("x",!0),s=this.getStyle("height").getPixels("y",!0),l=new Tt(this.document,null);l.attributes.viewBox=new he(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.width=new he(this.document,"width","".concat(i,"px")),l.attributes.height=new he(this.document,"height","".concat(s,"px")),l.attributes.transform=new he(this.document,"transform",this.getAttribute("patternTransform").getValue()),l.children=this.children;var f=this.document.createCanvas(i,s),p=f.getContext("2d"),x=this.getAttribute("x"),U=this.getAttribute("y");x.hasValue()&&U.hasValue()&&p.translate(x.getPixels("x",!0),U.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var $=-1;$<=1;$++)for(var ne=-1;ne<=1;ne++)p.save(),l.attributes.x=new he(this.document,"x",$*f.width),l.attributes.y=new he(this.document,"y",ne*f.height),l.render(p),p.restore();var oe=e.createPattern(f,"repeat");return oe}}]),r}(ke),un=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=c.apply(this,arguments),a.type="marker",a}return Object(Q.a)(r,[{key:"render",value:function(e,o,n){if(!o)return;var i=o.x,s=o.y,l=this.getAttribute("orient").getString("auto"),f=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,s),l==="auto"&&e.rotate(n),f==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var p=new Tt(this.document,null);p.type=this.type,p.attributes.viewBox=new he(this.document,"viewBox",this.getAttribute("viewBox").getValue()),p.attributes.refX=new he(this.document,"refX",this.getAttribute("refX").getValue()),p.attributes.refY=new he(this.document,"refY",this.getAttribute("refY").getValue()),p.attributes.width=new he(this.document,"width",this.getAttribute("markerWidth").getValue()),p.attributes.height=new he(this.document,"height",this.getAttribute("markerHeight").getValue()),p.attributes.overflow=new he(this.document,"overflow",this.getAttribute("overflow").getValue()),p.attributes.fill=new he(this.document,"fill",this.getAttribute("fill").getColor("black")),p.attributes.stroke=new he(this.document,"stroke",this.getAttribute("stroke").getValue("none")),p.children=this.children,p.render(e),e.restore(),f==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),l==="auto"&&e.rotate(-n),e.translate(-i,-s)}}]),r}(ke),cn=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=c.apply(this,arguments),a.type="defs",a}return Object(Q.a)(r,[{key:"render",value:function(){}}]),r}(ke),Nt=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=c.apply(this,arguments),a.type="g",a}return Object(Q.a)(r,[{key:"getBoundingBox",value:function(e){var o=new ct;return this.children.forEach(function(n){o.addBoundingBox(n.getBoundingBox(e))}),o}}]),r}(xt),Kt=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=c.call(this,a,e,o),n.attributesToInherit=["gradientUnits"],n.stops=[];var i=Object(T.a)(n),s=i.stops,l=i.children;return l.forEach(function(f){f.type==="stop"&&s.push(f)}),n}return Object(Q.a)(r,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(e,o,n){var i=this,s=this;this.getHrefAttribute().hasValue()&&(s=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(s));var l=s,f=l.stops,p=this.getGradient(e,o);if(!p)return this.addParentOpacity(n,f[f.length-1].color);if(f.forEach(function(Ve){p.addColorStop(Ve.offset,i.addParentOpacity(n,Ve.color))}),this.getAttribute("gradientTransform").hasValue()){var x=this.document,U=x.screen,$=U.MAX_VIRTUAL_PIXELS,ne=U.viewPort,oe=Object(ie.a)(ne.viewPorts,1),ae=oe[0],be=new zt(x,null);be.attributes.x=new he(x,"x",-$/3),be.attributes.y=new he(x,"y",-$/3),be.attributes.width=new he(x,"width",$),be.attributes.height=new he(x,"height",$);var fe=new Nt(x,null);fe.attributes.transform=new he(x,"transform",this.getAttribute("gradientTransform").getValue()),fe.children=[be];var ue=new Tt(x,null);ue.attributes.x=new he(x,"x",0),ue.attributes.y=new he(x,"y",0),ue.attributes.width=new he(x,"width",ae.width),ue.attributes.height=new he(x,"height",ae.height),ue.children=[fe];var ge=x.createCanvas(ae.width,ae.height),Le=ge.getContext("2d");return Le.fillStyle=p,ue.render(Le),Le.createPattern(ge,"no-repeat")}return p}},{key:"inheritStopContainer",value:function(e){var o=this;this.attributesToInherit.forEach(function(n){!o.getAttribute(n).hasValue()&&e.getAttribute(n).hasValue()&&o.getAttribute(n,!0).setValue(e.getAttribute(n).getValue())})}},{key:"addParentOpacity",value:function(e,o){if(e.hasValue()){var n=new he(this.document,"color",o);return n.addOpacity(e).getColor()}return o}}]),r}(ke),dn=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=c.call(this,a,e,o),n.type="linearGradient",n.attributesToInherit.push("x1","y1","x2","y2"),n}return Object(Q.a)(r,[{key:"getGradient",value:function(e,o){var n=this.getGradientUnits()==="objectBoundingBox",i=n?o.getBoundingBox(e):null;if(n&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var s=n?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),l=n?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),f=n?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),p=n?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===f&&l===p?null:e.createLinearGradient(s,l,f,p)}}]),r}(Kt),fn=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=c.call(this,a,e,o),n.type="radialGradient",n.attributesToInherit.push("cx","cy","r","fx","fy","fr"),n}return Object(Q.a)(r,[{key:"getGradient",value:function(e,o){var n=this.getGradientUnits()==="objectBoundingBox",i=o.getBoundingBox(e);if(n&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var s=n?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),l=n?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),f=s,p=l;this.getAttribute("fx").hasValue()&&(f=n?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(p=n?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var x=n?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),U=this.getAttribute("fr").getPixels();return e.createRadialGradient(f,p,U,s,l,x)}}]),r}(Kt),hn=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=c.call(this,a,e,o),n.type="stop";var i=Math.max(0,Math.min(1,n.getAttribute("offset").getNumber())),s=n.getStyle("stop-opacity"),l=n.getStyle("stop-color",!0);return l.getString()===""&&l.setValue("#000"),s.hasValue()&&(l=l.addOpacity(s)),n.offset=i,n.color=l.getColor(),n}return Object(Q.a)(r)}(ke),Dt=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=c.call(this,a,e,o),n.type="animate",n.duration=0,n.initialValue=null,n.initialUnits="",n.removed=!1,n.frozen=!1,a.screen.animations.push(Object(T.a)(n)),n.begin=n.getAttribute("begin").getMilliseconds(),n.maxDuration=n.begin+n.getAttribute("dur").getMilliseconds(),n.from=n.getAttribute("from"),n.to=n.getAttribute("to"),n.values=new he(a,"values",null);var i=n.getAttribute("values");return i.hasValue()&&n.values.setValue(i.getString().split(";")),n}return Object(Q.a)(r,[{key:"getProperty",value:function(){var e=this.getAttribute("attributeType").getString(),o=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(o,!0):this.parent.getAttribute(o,!0)}},{key:"calcValue",value:function(){var e=this.initialUnits,o=this.getProgress(),n=o.progress,i=o.from,s=o.to,l=i.getNumber()+(s.getNumber()-i.getNumber())*n;return e==="%"&&(l*=100),"".concat(l).concat(e)}},{key:"update",value:function(e){var o=this.parent,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,o.animationFrozen=!0,o.animationFrozenValue=n.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,n.setValue(o.animationFrozen?o.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var s=!1;if(this.begin0&&Array.from(i).every(function(f){return f.nodeType===3});return n.hasText=l,n.text=l?n.getTextFromNode(s):"",n}return Object(Q.a)(r,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(e){if(this.hasText){Object(k.a)(Object(L.a)(r.prototype),"renderChildren",this).call(this,e);var o=this.document,n=this.x,i=this.y,s=o.screen.mouse,l=new he(o,"fontSize",gt.parse(o.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new ct(n,i-l.getPixels("y"),n+this.measureText(e),i))}else if(this.children.length>0){var f=new Nt(this.document,null);f.children=this.children,f.parent=this,f.render(e)}}},{key:"onClick",value:function(){var e=this.document.window;e&&e.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}]),r}(jt);function En(v,c){var r=Object.keys(v);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(v);c&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(v,e).enumerable})),r.push.apply(r,a)}return r}function wt(v){for(var c=1;cU?x:U,fe=x>U?1:x/U,ue=x>U?U/x:1;e&&(e.translate(f,p),e.rotate(oe),e.scale(fe,ue),e.arc(0,0,be,$,$+ne,Boolean(1-ae)),e.scale(1/fe,1/ue),e.rotate(-oe),e.translate(-f,-p));break}case xe.CLOSE_PATH:e&&e.closePath();break}})}},{key:"renderChildren",value:function(e){this.setTextData(e),e.save();var o=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),i=this.glyphInfo,s=e.fillStyle;o==="underline"&&e.beginPath(),i.forEach(function(l,f){var p=l.p0,x=l.p1,U=l.rotation,$=l.text;e.save(),e.translate(p.x,p.y),e.rotate(U),e.fillStyle&&e.fillText($,0,0),e.strokeStyle&&e.strokeText($,0,0),e.restore(),o==="underline"&&(f===0&&e.moveTo(p.x,p.y+n/8),e.lineTo(x.x,x.y+n/5))}),o==="underline"&&(e.lineWidth=n/20,e.strokeStyle=s,e.stroke(),e.closePath()),e.restore()}},{key:"getLetterSpacingAt",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}},{key:"findSegmentToFitChar",value:function(e,o,n,i,s,l,f,p,x){var U=l,$=this.measureText(e,p);p===" "&&o==="justify"&&n-1&&(U+=this.getLetterSpacingAt(x));var ne=this.textHeight/20,oe=this.getEquidistantPointOnPath(U,ne,0),ae=this.getEquidistantPointOnPath(U+$,ne,0),be={p0:oe,p1:ae},fe=oe&&ae?Math.atan2(ae.y-oe.y,ae.x-oe.x):0;if(f){var ue=Math.cos(Math.PI/2+fe)*f,ge=Math.cos(-fe)*f;be.p0=wt(wt({},oe),{},{x:oe.x+ue,y:oe.y+ge}),be.p1=wt(wt({},ae),{},{x:ae.x+ue,y:ae.y+ge})}return U+=$,{offset:U,segment:be,rotation:fe}}},{key:"measureText",value:function(e,o){var n=this.measuresCache,i=o||this.getText();if(n.has(i))return n.get(i);var s=this.measureTargetText(e,i);return n.set(i,s),s}},{key:"setTextData",value:function(e){var o=this;if(this.glyphInfo)return;var n=this.getText(),i=n.split(""),s=n.split(" ").length-1,l=this.parent.getAttribute("dx").split().map(function(Ze){return Ze.getPixels("x")}),f=this.parent.getAttribute("dy").getPixels("y"),p=this.parent.getStyle("text-anchor").getString("start"),x=this.getStyle("letter-spacing"),U=this.parent.getStyle("letter-spacing"),$=0;!x.hasValue()||x.getValue()==="inherit"?$=U.getPixels():x.hasValue()&&(x.getValue()!=="initial"&&x.getValue()!=="unset"&&($=x.getPixels()));var ne=[],oe=n.length;this.letterSpacingCache=ne;for(var ae=0;ae0&&(x-=2*Math.PI),s===1&&x<0&&(x+=2*Math.PI),[f.x,f.y,n,i,p,x,l,s]}},{key:"calcLength",value:function(e,o,n,i){var s=0,l=null,f=null,p=0;switch(n){case xe.LINE_TO:return this.getLineLength(e,o,i[0],i[1]);case xe.CURVE_TO:for(s=0,l=this.getPointOnCubicBezier(0,e,o,i[0],i[1],i[2],i[3],i[4],i[5]),p=.01;p<=1;p+=.01)f=this.getPointOnCubicBezier(p,e,o,i[0],i[1],i[2],i[3],i[4],i[5]),s+=this.getLineLength(l.x,l.y,f.x,f.y),l=f;return s;case xe.QUAD_TO:for(s=0,l=this.getPointOnQuadraticBezier(0,e,o,i[0],i[1],i[2],i[3]),p=.01;p<=1;p+=.01)f=this.getPointOnQuadraticBezier(p,e,o,i[0],i[1],i[2],i[3]),s+=this.getLineLength(l.x,l.y,f.x,f.y),l=f;return s;case xe.ARC:{s=0;var x=i[4],U=i[5],$=i[4]+U,ne=Math.PI/180;if(Math.abs(x-$)$;p-=ne)f=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],p,0),s+=this.getLineLength(l.x,l.y,f.x,f.y),l=f;else for(p=x+ne;p<$;p+=ne)f=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],p,0),s+=this.getLineLength(l.x,l.y,f.x,f.y),l=f;return f=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],$,0),s+=this.getLineLength(l.x,l.y,f.x,f.y),s}}return 0}},{key:"getPointOnLine",value:function(e,o,n,i,s){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:o,f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:n,p=(s-n)/(i-o+de),x=Math.sqrt(e*e/(1+p*p));io)return null;var s=this.dataArray,l=Object(O.a)(s),f;try{for(l.s();!(f=l.n()).done;){var p=f.value;if(p&&(p.pathLength<5e-5||n+p.pathLength+5e-5=0&&U>oe)break;i=this.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],U,p.points[6]);break}case xe.CURVE_TO:U=x/p.pathLength,U>1&&(U=1),i=this.getPointOnCubicBezier(U,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);break;case xe.QUAD_TO:U=x/p.pathLength,U>1&&(U=1),i=this.getPointOnQuadraticBezier(U,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3]);break}if(i)return i;break}}catch(ae){l.e(ae)}finally{l.f()}return null}},{key:"getLineLength",value:function(e,o,n,i){return Math.sqrt((n-e)*(n-e)+(i-o)*(i-o))}},{key:"getPathLength",value:function(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce(function(e,o){return o.pathLength>0?e+o.pathLength:e},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(e,o,n,i,s,l,f,p,x){var U=p*Fe(e)+l*Je(e)+i*$e(e)+o*Xe(e),$=x*Fe(e)+f*Je(e)+s*$e(e)+n*Xe(e);return{x:U,y:$}}},{key:"getPointOnQuadraticBezier",value:function(e,o,n,i,s,l,f){var p=l*vt(e)+i*lt(e)+o*pt(e),x=f*vt(e)+s*lt(e)+n*pt(e);return{x:p,y:x}}},{key:"getPointOnEllipticalArc",value:function(e,o,n,i,s,l){var f=Math.cos(l),p=Math.sin(l),x={x:n*Math.cos(s),y:i*Math.sin(s)};return{x:e+(x.x*f-x.y*p),y:o+(x.x*p+x.y*f)}}},{key:"buildEquidistantCache",value:function(e,o){var n=this.getPathLength(),i=o||.25,s=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==s||this.equidistantCache.precision!==i){this.equidistantCache={step:s,precision:i,points:[]};for(var l=0,f=0;f<=n;f+=i){var p=this.getPointOnPath(f),x=this.getPointOnPath(f+i);if(!p||!x)continue;l+=this.getLineLength(p.x,p.y,x.x,x.y),l>=s&&(this.equidistantCache.points.push({x:p.x,y:p.y,distance:f}),l-=s)}}}},{key:"getEquidistantPointOnPath",value:function(e,o,n){if(this.buildEquidistantCache(o,n),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}]),r}(jt),nr=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Cn=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=c.call(this,a,e,o),n.type="image",n.loaded=!1;var i=n.getHrefAttribute().getString();if(!i)return Object(H.a)(n);var s=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);return a.images.push(Object(T.a)(n)),s?void n.loadSvg(i):void n.loadImage(i),n.isSvg=s,n}return Object(Q.a)(r,[{key:"loadImage",value:function(e){var o=this;return ve()(se.a.mark(function n(){var i;return se.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,o.document.createImage(e);case 3:i=l.sent,o.image=i,l.next=10;break;case 7:l.prev=7,l.t0=l.catch(0),console.error('Error while loading image "'.concat(e,'":'),l.t0);case 10:o.loaded=!0;case 11:case"end":return l.stop()}},n,null,[[0,7]])}))()}},{key:"loadSvg",value:function(e){var o=this;return ve()(se.a.mark(function n(){var i,s,l,f;return se.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(i=nr.exec(e),!i){x.next=6;break}s=i[5],i[4]==="base64"?o.image=atob(s):o.image=decodeURIComponent(s),x.next=19;break;case 6:return x.prev=6,x.next=9,o.document.fetch(e);case 9:return l=x.sent,x.next=12,l.text();case 12:f=x.sent,o.image=f,x.next=19;break;case 16:x.prev=16,x.t0=x.catch(6),console.error('Error while loading image "'.concat(e,'":'),x.t0);case 19:o.loaded=!0;case 20:case"end":return x.stop()}},n,null,[[6,16]])}))()}},{key:"renderChildren",value:function(e){var o=this.document,n=this.image,i=this.loaded,s=this.getAttribute("x").getPixels("x"),l=this.getAttribute("y").getPixels("y"),f=this.getStyle("width").getPixels("x"),p=this.getStyle("height").getPixels("y");if(!i||!n||!f||!p)return;if(e.save(),e.translate(s,l),this.isSvg){var x=o.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:f,scaleHeight:p});x.document.documentElement.parent=this,void x.render()}else{var U=this.image;o.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:f,desiredWidth:U.width,height:p,desiredHeight:U.height}),this.loaded&&((typeof U.complete=="undefined"||U.complete)&&e.drawImage(U,0,0))}e.restore()}},{key:"getBoundingBox",value:function(){var e=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new ct(e,o,e+n,o+i)}}]),r}(xt),Sn=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=c.apply(this,arguments),a.type="symbol",a}return Object(Q.a)(r,[{key:"render",value:function(e){}}]),r}(xt),Mn=function(){function v(c){Object(X.a)(this,v),this.document=c,this.loaded=!1,c.fonts.push(this)}return Object(Q.a)(v,[{key:"load",value:function(r,a){var e=this;return ve()(se.a.mark(function o(){var n,i,s;return se.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.prev=0,n=e.document,f.next=4,n.canvg.parser.load(a);case 4:i=f.sent,s=i.getElementsByTagName("font"),Array.from(s).forEach(function(p){var x=n.createElement(p);n.definitions[r]=x}),f.next=12;break;case 9:f.prev=9,f.t0=f.catch(0),console.error('Error while loading font "'.concat(a,'":'),f.t0);case 12:e.loaded=!0;case 13:case"end":return f.stop()}},o,null,[[0,9]])}))()}}]),v}(),Yt=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=c.call(this,a,e,o),n.type="style";var i=De(Array.from(e.childNodes).map(function(l){return l.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),s=i.split("}");return s.forEach(function(l){var f=l.trim();if(!f)return;var p=f.split("{"),x=p[0].split(","),U=p[1].split(";");x.forEach(function($){var ne=$.trim();if(!ne)return;var oe=a.styles[ne]||{};if(U.forEach(function(fe){var ue=fe.indexOf(":"),ge=fe.substr(0,ue).trim(),Le=fe.substr(ue+1,fe.length-ue).trim();ge&&Le&&(oe[ge]=new he(a,ge,Le))}),a.styles[ne]=oe,a.stylesSpecificity[ne]=te(ne),ne==="@font-face"){var ae=oe["font-family"].getString().replace(/"|'/g,""),be=oe.src.getString().split(",");be.forEach(function(fe){if(fe.indexOf('format("svg")')>0){var ue=Ge(fe);ue&&void new Mn(a).load(ae,ue)}})}})}),n}return Object(Q.a)(r)}(ke);Yt.parseExternalUrl=Ge;var jn=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=c.apply(this,arguments),a.type="use",a}return Object(Q.a)(r,[{key:"setContext",value:function(e){Object(k.a)(Object(L.a)(r.prototype),"setContext",this).call(this,e);var o=this.getAttribute("x"),n=this.getAttribute("y");o.hasValue()&&e.translate(o.getPixels("x"),0),n.hasValue()&&e.translate(0,n.getPixels("y"))}},{key:"path",value:function(e){var o=this.element;o&&o.path(e)}},{key:"renderChildren",value:function(e){var o=this.document,n=this.element;if(n){var i=n;if(n.type==="symbol"&&(i=new Tt(o,null),i.attributes.viewBox=new he(o,"viewBox",n.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new he(o,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new he(o,"overflow",n.getAttribute("overflow").getString()),i.children=n.children,n.styles.opacity=new he(o,"opacity",this.calculateOpacity())),i.type==="svg"){var s=this.getStyle("width",!1,!0),l=this.getStyle("height",!1,!0);s.hasValue()&&(i.attributes.width=new he(o,"width",s.getString())),l.hasValue()&&(i.attributes.height=new he(o,"height",l.getString()))}var f=i.parent;i.parent=this,i.render(e),i.parent=f}}},{key:"getBoundingBox",value:function(e){var o=this.element;return o?o.getBoundingBox(e):null}},{key:"elementTransform",value:function(){var e=this.document,o=this.element;return At.fromElement(e,o)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),r}(xt);function Lt(v,c,r,a,e,o){return v[r*a*4+c*4+o]}function Ut(v,c,r,a,e,o,n){v[r*a*4+c*4+o]=n}function Ke(v,c,r){var a=v[c];return a*r}function bt(v,c,r,a){return c+Math.cos(v)*r+Math.sin(v)*a}var $t=function(v){Object(J.a)(r,v);var c=Object(K.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=c.call(this,a,e,o),n.type="feColorMatrix";var i=Oe(n.getAttribute("values").getString());switch(n.getAttribute("type").getString("matrix")){case"saturate":{var s=i[0];i=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var l=i[0]*Math.PI/180;i=[bt(l,.213,.787,-.213),bt(l,.715,-.715,-.715),bt(l,.072,-.072,.928),0,0,bt(l,.213,-.213,.143),bt(l,.715,.285,.14),bt(l,.072,-.072,-.283),0,0,bt(l,.213,-.213,-.787),bt(l,.715,-.715,.715),bt(l,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}return n.matrix=i,n.includeOpacity=n.getAttribute("includeOpacity").hasValue(),n}return Object(Q.a)(r,[{key:"apply",value:function(e,o,n,i,s){for(var l=this.includeOpacity,f=this.matrix,p=e.getImageData(0,0,i,s),x=0;x1&&e[1]!==void 0?e[1]:!1,a=document.createElement("img"),r&&(a.crossOrigin="Anonymous"),n.abrupt("return",new Promise(function(i,s){a.onload=function(){i(a)},a.onerror=function(l,f,p,x,U){s(U)},a.src=c}));case 4:case"end":return n.stop()}},v)})),Jt.apply(this,arguments)}var Rt=function(){function v(c){Object(X.a)(this,v);var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.rootEmSize,e=a===void 0?12:a,o=r.emSize,n=o===void 0?12:o,i=r.createCanvas,s=i===void 0?v.createCanvas:i,l=r.createImage,f=l===void 0?v.createImage:l,p=r.anonymousCrossOrigin;this.canvg=c,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=c.screen,this.rootEmSize=e,this.emSize=n,this.createCanvas=s,this.createImage=this.bindCreateImage(f,p),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(Q.a)(v,[{key:"bindCreateImage",value:function(r,a){return typeof a=="boolean"?function(e,o){return r(e,typeof o=="boolean"?o:a)}:r}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var r=this.emSizeStack;return r[r.length-1]},set:function(r){var a=this.emSizeStack;a.push(r)}},{key:"popEmSize",value:function(){var r=this.emSizeStack;r.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(r){return r.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(r){return r.loaded})}},{key:"createDocumentElement",value:function(r){var a=this.createElement(r.documentElement);return a.root=!0,a.addStylesFromStyleDefinition(),this.documentElement=a,a}},{key:"createElement",value:function(r){var a=r.nodeName.replace(/^[^:]+:/,""),e=v.elementTypes[a];return typeof e!="undefined"?new e(this,r):new nn(this,r)}},{key:"createTextNode",value:function(r){return new tr(this,r)}},{key:"setViewBox",value:function(r){this.screen.setViewBox(ar({document:this},r))}}]),v}();Rt.createCanvas=or,Rt.createImage=ir,Rt.elementTypes=rr;function Un(v,c){var r=Object.keys(v);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(v);c&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(v,e).enumerable})),r.push.apply(r,a)}return r}function St(v){for(var c=1;c2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new It(a),this.screen=new He(c,a),this.options=a;var e=new Rt(this,a),o=e.createDocumentElement(r);this.document=e,this.documentElement=o}return Object(Q.a)(v,[{key:"fork",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return v.from(r,a,St(St({},this.options),e))}},{key:"forkString",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return v.fromString(r,a,St(St({},this.options),e))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var r=arguments,a=this;return ve()(se.a.mark(function e(){var o;return se.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return o=r.length>0&&r[0]!==void 0?r[0]:{},a.start(St({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},o)),i.next=4,a.ready();case 4:a.stop();case 5:case"end":return i.stop()}},e)}))()}},{key:"start",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=this.documentElement,e=this.screen,o=this.options;e.start(a,St(St({enableRedraw:!0},o),r))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(r,a,e)}}],[{key:"from",value:function(r,a){var e=arguments;return ve()(se.a.mark(function o(){var n,i,s;return se.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return n=e.length>2&&e[2]!==void 0?e[2]:{},i=new It(n),f.next=4,i.parse(a);case 4:return s=f.sent,f.abrupt("return",new v(r,s,n));case 6:case"end":return f.stop()}},o)}))()}},{key:"fromString",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=new It(e),n=o.parseFromString(a);return new v(r,n,e)}}]),v}();b.default=Vn}.call(this,t("Q2Ig"))},Dk1u:function(g,b,t){var u=t("Ks5W"),d=t("4YbN"),h=t("IL+x"),m=u.TypeError;g.exports=function(y){if(d(y))return y;throw m(h(y)+" is not a constructor")}},ENhe:function(g,b){g.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},FjAG:function(g,b,t){var u=t("Ks5W"),d=t("8HiI"),h=t("721z"),m=t("p5Ma"),y=t("tMNq"),S=u.TypeError,R=function(A){return function(j,w,B,I){d(w);var V=h(j),G=m(V),z=y(V),Y=A?z-1:0,Z=A?-1:1;if(B<2)for(;;){if(Y in G){I=G[Y],Y+=Z;break}if(Y+=Z,A?Y<0:z<=Y)throw S("Reduce of empty array with no initial value")}for(;A?Y>=0:z>Y;Y+=Z)Y in G&&(I=w(I,G[Y],Y,V));return I}};g.exports={left:R(!1),right:R(!0)}},FkIU:function(g,b,t){var u=t("++4Y"),d=t("eRwv");g.exports=u&&d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},FlRv:function(g,b,t){var u=t("Ks5W"),d=t("++4Y"),h=t("pVCk"),m=t("FkIU"),y=t("WxoH"),S=t("GTqx"),R=u.TypeError,A=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w="enumerable",B="configurable",I="writable";b.f=d?m?function(G,z,Y){if(y(G),z=S(z),y(Y),typeof G=="function"&&z==="prototype"&&"value"in Y&&I in Y&&!Y[I]){var Z=j(G,z);Z&&Z[I]&&(G[z]=Y.value,Y={configurable:B in Y?Y[B]:Z[B],enumerable:w in Y?Y[w]:Z[w],writable:!1})}return A(G,z,Y)}:A:function(G,z,Y){if(y(G),z=S(z),y(Y),h)try{return A(G,z,Y)}catch(Z){}if("get"in Y||"set"in Y)throw R("Accessors not supported");return"value"in Y&&(G[z]=Y.value),G}},FqHY:function(g,b,t){var u=t("eE3R"),d=t("Ks5W");g.exports=/ipad|iphone|ipod/i.test(u)&&d.Pebble!==void 0},G5Kn:function(g,b,t){var u=t("11yv"),d=t("XFuk"),h=t("FlRv"),m=u("unscopables"),y=Array.prototype;y[m]==null&&h.f(y,m,{configurable:!0,value:d(null)}),g.exports=function(S){y[m][S]=!0}},GI0h:function(g,b,t){var u=t("me6S"),d=u("span").classList,h=d&&d.constructor&&d.constructor.prototype;g.exports=h===Object.prototype?void 0:h},GTqx:function(g,b,t){var u=t("ms20"),d=t("bT0D");g.exports=function(h){var m=u(h,"string");return d(m)?m:m+""}},GVkW:function(g,b,t){"use strict";var u=t("nCzB"),d=t("aLaa"),h=t("fKql").f,m=t("c3MK"),y=t("qzpy"),S=t("OU4x"),R=t("XaNE"),A=t("/TZh"),j=t("jybJ"),w=d("".endsWith),B=d("".slice),I=Math.min,V=A("endsWith"),G=!j&&!V&&!!function(){var z=h(String.prototype,"endsWith");return z&&!z.writable}();u({target:"String",proto:!0,forced:!G&&!V},{endsWith:function(Y){var Z=y(R(this));S(Y);var F=arguments.length>1?arguments[1]:void 0,ee=Z.length,N=F===void 0?ee:I(m(F),ee),le=y(Y);return w?w(Z,le,N):B(Z,N-le.length,N)===le}})},GgKt:function(g,b,t){var u=t("eE3R");g.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(u)},Gywb:function(g,b,t){var u=t("eRwv");g.exports=!u(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},"HTC/":function(g,b,t){"use strict";var u=t("WxoH");g.exports=function(){var d=u(this),h="";return d.global&&(h+="g"),d.ignoreCase&&(h+="i"),d.multiline&&(h+="m"),d.dotAll&&(h+="s"),d.unicode&&(h+="u"),d.sticky&&(h+="y"),h}},IGIO:function(g,b,t){var u=t("ba8b"),d=t("Ks5W");g.exports=u(d.process)=="process"},"IL+x":function(g,b,t){var u=t("Ks5W"),d=u.String;g.exports=function(h){try{return d(h)}catch(m){return"Object"}}},JHvW:function(g,b,t){var u=t("aLaa"),d=t("WxoH"),h=t("NIpK");g.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,y={},S;try{S=u(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),S(y,[]),m=y instanceof Array}catch(R){}return function(A,j){return d(A),h(j),m?S(A,j):A.__proto__=j,A}}():void 0)},JTf3:function(g,b){g.exports=function(t){return typeof t=="function"}},KKe4:function(g,b,t){"use strict";var u=t("m7zg"),d=t("WONN"),h=t("WxoH"),m=t("c3MK"),y=t("qzpy"),S=t("XaNE"),R=t("oK8H"),A=t("M/+V"),j=t("3fk+");d("match",function(w,B,I){return[function(G){var z=S(this),Y=G==null?void 0:R(G,w);return Y?u(Y,G,z):new RegExp(G)[w](y(z))},function(V){var G=h(this),z=y(V),Y=I(B,G,z);if(Y.done)return Y.value;if(!G.global)return j(G,z);var Z=G.unicode;G.lastIndex=0;for(var F=[],ee=0,N;(N=j(G,z))!==null;){var le=y(N[0]);F[ee]=le,le===""&&(G.lastIndex=A(z,m(G.lastIndex),Z)),ee++}return ee===0?null:F}]})},KLN8:function(g,b,t){"use strict";var u=t("nCzB"),d=t("aLaa"),h=t("fKql").f,m=t("c3MK"),y=t("qzpy"),S=t("OU4x"),R=t("XaNE"),A=t("/TZh"),j=t("jybJ"),w=d("".startsWith),B=d("".slice),I=Math.min,V=A("startsWith"),G=!j&&!V&&!!function(){var z=h(String.prototype,"startsWith");return z&&!z.writable}();u({target:"String",proto:!0,forced:!G&&!V},{startsWith:function(Y){var Z=y(R(this));S(Y);var F=m(I(arguments.length>1?arguments[1]:void 0,Z.length)),ee=y(Y);return w?w(Z,ee,F):B(Z,F,F+ee.length)===ee}})},Ks5W:function(g,b,t){(function(u){var d=function(h){return h&&h.Math==Math&&h};g.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof u=="object"&&u)||function(){return this}()||Function("return this")()}).call(this,t("yLpj"))},LOfi:function(g,b,t){var u=t("WrAw");g.exports=function(d,h,m){for(var y in h)u(d,y,h[y],m);return d}},Lltv:function(g,b,t){"use strict";var u=t("vkZI"),d=t("G5Kn"),h=t("AoAp"),m=t("UQ6y"),y=t("FlRv").f,S=t("jgt4"),R=t("jybJ"),A=t("++4Y"),j="Array Iterator",w=m.set,B=m.getterFor(j);g.exports=S(Array,"Array",function(V,G){w(this,{type:j,target:u(V),index:0,kind:G})},function(){var V=B(this),G=V.target,z=V.kind,Y=V.index++;return!G||Y>=G.length?(V.target=void 0,{value:void 0,done:!0}):z=="keys"?{value:Y,done:!1}:z=="values"?{value:G[Y],done:!1}:{value:[Y,G[Y]],done:!1}},"values");var I=h.Arguments=h.Array;if(d("keys"),d("values"),d("entries"),!R&&A&&I.name!=="values")try{y(I,"name",{value:"values"})}catch(V){}},"M/+V":function(g,b,t){"use strict";var u=t("ymN0").charAt;g.exports=function(d,h,m){return h+(m?u(d,h).length:1)}},MNKV:function(g,b,t){"use strict";var u=t("nCzB"),d=t("aLaa"),h=t("OU4x"),m=t("XaNE"),y=t("qzpy"),S=t("/TZh"),R=d("".indexOf);u({target:"String",proto:!0,forced:!S("includes")},{includes:function(j){return!!~R(y(m(this)),y(h(j)),arguments.length>1?arguments[1]:void 0)}})},MURR:function(g,b,t){var u=t("aLaa"),d=0,h=Math.random(),m=u(1 .toString);g.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+m(++d+h,36)}},N6FT:function(g,b,t){var u=t("++4Y"),d=t("YELS"),h=Function.prototype,m=u&&Object.getOwnPropertyDescriptor,y=d(h,"name"),S=y&&function(){}.name==="something",R=y&&(!u||u&&m(h,"name").configurable);g.exports={EXISTS:y,PROPER:S,CONFIGURABLE:R}},NCkV:function(g,b,t){"use strict";var u=t("1mOU"),d=t("m7zg"),h=t("aLaa"),m=t("WONN"),y=t("COGW"),S=t("WxoH"),R=t("XaNE"),A=t("NudO"),j=t("M/+V"),w=t("c3MK"),B=t("qzpy"),I=t("oK8H"),V=t("8Ys4"),G=t("3fk+"),z=t("WMbf"),Y=t("RhGR"),Z=t("eRwv"),F=Y.UNSUPPORTED_Y,ee=4294967295,N=Math.min,le=[].push,M=h(/./.exec),C=h(le),D=h("".slice),P=!Z(function(){var _=/(?:)/,re=_.exec;_.exec=function(){return re.apply(this,arguments)};var q="ab".split(_);return q.length!==2||q[0]!=="a"||q[1]!=="b"});m("split",function(_,re,q){var E;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?E=function(H,O){var T=B(R(this)),k=O===void 0?ee:O>>>0;if(k===0)return[];if(H===void 0)return[T];if(!y(H))return d(re,T,H,k);for(var L=[],W=(H.ignoreCase?"i":"")+(H.multiline?"m":"")+(H.unicode?"u":"")+(H.sticky?"y":""),J=0,K=new RegExp(H.source,W+"g"),X,Q,ie;(X=d(z,K,T))&&!(Q=K.lastIndex,Q>J&&(C(L,D(T,J,X.index)),X.length>1&&X.index=k));)K.lastIndex===X.index&&K.lastIndex++;return J===T.length?(ie||!M(K,""))&&C(L,""):C(L,D(T,J)),L.length>k?V(L,0,k):L}:"0".split(void 0,0).length?E=function(H,O){return H===void 0&&O===0?[]:d(re,this,H,O)}:E=re,[function(O,T){var k=R(this),L=O==null?void 0:I(O,_);return L?d(L,O,k,T):d(E,B(k),O,T)},function(H,O){var T=S(this),k=B(H),L=q(E,T,k,O,E!==re);if(L.done)return L.value;var W=A(T,RegExp),J=T.unicode,K=(T.ignoreCase?"i":"")+(T.multiline?"m":"")+(T.unicode?"u":"")+(F?"g":"y"),X=new W(F?"^(?:"+T.source+")":T,K),Q=O===void 0?ee:O>>>0;if(Q===0)return[];if(k.length===0)return G(X,k)===null?[k]:[];for(var ie=0,ce=0,se=[];ce]*>)/g,A=/\$([$&'`]|\d{1,2})/g;g.exports=function(j,w,B,I,V,G){var z=B+j.length,Y=I.length,Z=A;return V!==void 0&&(V=d(V),Z=R),y(G,Z,function(F,ee){var N;switch(m(ee,0)){case"$":return"$";case"&":return j;case"`":return S(w,0,B);case"'":return S(w,z);case"<":N=V[S(ee,1,-1)];break;default:var le=+ee;if(le===0)return F;if(le>Y){var M=h(le/10);return M===0?F:M<=Y?I[M-1]===void 0?m(ee,1):I[M-1]+m(ee,1):F}N=I[le-1]}return N===void 0?"":N})}},NudO:function(g,b,t){var u=t("WxoH"),d=t("Dk1u"),h=t("11yv"),m=h("species");g.exports=function(y,S){var R=u(y).constructor,A;return R===void 0||(A=u(R)[m])==null?S:d(A)}},Nybj:function(g,b,t){var u=t("vkZI"),d=t("n6S8"),h=t("tMNq"),m=function(y){return function(S,R,A){var j=u(S),w=h(j),B=d(A,w),I;if(y&&R!=R){for(;w>B;)if(I=j[B++],I!=I)return!0}else for(;w>B;B++)if((y||B in j)&&j[B]===R)return y||B||0;return!y&&-1}};g.exports={includes:m(!0),indexOf:m(!1)}},OU4x:function(g,b,t){var u=t("Ks5W"),d=t("COGW"),h=u.TypeError;g.exports=function(m){if(d(m))throw h("The method doesn't accept regular expressions");return m}},Ppro:function(g,b,t){"use strict";var u=t("nCzB"),d=t("WMbf");u({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},QELg:function(g,b,t){"use strict";var u=t("eRwv");g.exports=function(d,h){var m=[][d];return!!m&&u(function(){m.call(null,h||function(){return 1},1)})}},QrM1:function(g,b,t){var u=t("ZpKI"),d=t("Yzn+"),h=d.concat("length","prototype");b.f=Object.getOwnPropertyNames||function(y){return u(y,h)}},"RXj+":function(g,b,t){var u=t("aLaa"),d=t("XaNE"),h=t("qzpy"),m=t("noWC"),y=u("".replace),S="["+m+"]",R=RegExp("^"+S+S+"*"),A=RegExp(S+S+"*$"),j=function(w){return function(B){var I=h(d(B));return w&1&&(I=y(I,R,"")),w&2&&(I=y(I,A,"")),I}};g.exports={start:j(1),end:j(2),trim:j(3)}},RYfq:function(g,b,t){var u=t("Ks5W"),d=t("JTf3"),h=function(m){return d(m)?m:void 0};g.exports=function(m,y){return arguments.length<2?h(u[m]):u[m]&&u[m][y]}},RhGR:function(g,b,t){var u=t("eRwv"),d=t("Ks5W"),h=d.RegExp,m=u(function(){var R=h("a","y");return R.lastIndex=2,R.exec("abcd")!=null}),y=m||u(function(){return!h("a","y").sticky}),S=m||u(function(){var R=h("^r","gy");return R.lastIndex=2,R.exec("str")!=null});g.exports={BROKEN_CARET:S,MISSED_STICKY:y,UNSUPPORTED_Y:m}},S3az:function(g,b,t){var u=t("Ks5W"),d=t("JTf3"),h=t("sNJV"),m=u.WeakMap;g.exports=d(m)&&/native code/.test(h(m))},SN6V:function(g,b){var t=Math.ceil,u=Math.floor;g.exports=function(d){var h=+d;return h!==h||h===0?0:(h>0?u:t)(h)}},"ST+I":function(g,b,t){var u=t("aNr2"),d=t("MURR"),h=u("keys");g.exports=function(m){return h[m]||(h[m]=d(m))}},SkNP:function(g,b){g.exports={}},SwuV:function(g,b,t){var u=t("JTf3");g.exports=function(d){return typeof d=="object"?d!==null:u(d)}},TRzv:function(g,b,t){var u=t("WxoH"),d=t("SwuV"),h=t("zFjv");g.exports=function(m,y){if(u(m),d(y)&&y.constructor===m)return y;var S=h.f(m),R=S.resolve;return R(y),S.promise}},Ttl4:function(g,b,t){var u=t("YELS"),d=t("x1+7"),h=t("fKql"),m=t("FlRv");g.exports=function(y,S,R){for(var A=d(S),j=m.f,w=h.f,B=0;B0&&(!D.multiline||D.multiline&&G(_,D.lastIndex-1)!==` `)&&(X="(?: "+X+")",ie=" "+ie,Q++),E=new RegExp("^(?:"+X+")",K)),N&&(E=new RegExp("^"+X+"$(?!\\s)",K)),F&&(H=D.lastIndex),O=u(I,J?E:D,ie),J?O?(O.input=Z(O.input,Q),O[0]=Z(O[0],Q),O.index=D.lastIndex,D.lastIndex+=O[0].length):D.lastIndex=0:F&&O&&(D.lastIndex=D.global?O.index+O[0].length:H),N&&O&&O.length>1&&u(B,O[0],E,function(){for(T=1;T3&&(this.alpha=R[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var A=this.r.toString(16),j=this.g.toString(16),w=this.b.toString(16);return A.length==1&&(A="0"+A),j.length==1&&(j="0"+j),w.length==1&&(w="0"+w),"#"+A+j+w},this.getHelpXML=function(){for(var A=new Array,j=0;j "+z.toRGB()+" -> "+z.toHex());G.appendChild(Y),G.appendChild(Z),V.appendChild(G)}catch(ee){}return V}}},WONN:function(g,b,t){"use strict";t("Ppro");var u=t("aLaa"),d=t("WrAw"),h=t("WMbf"),m=t("eRwv"),y=t("11yv"),S=t("8ODz"),R=y("species"),A=RegExp.prototype;g.exports=function(j,w,B,I){var V=y(j),G=!m(function(){var F={};return F[V]=function(){return 7},""[j](F)!=7}),z=G&&!m(function(){var F=!1,ee=/a/;return j==="split"&&(ee={},ee.constructor={},ee.constructor[R]=function(){return ee},ee.flags="",ee[V]=/./[V]),ee.exec=function(){return F=!0,null},ee[V](""),!F});if(!G||!z||B){var Y=u(/./[V]),Z=w(V,""[j],function(F,ee,N,le,M){var C=u(F),D=ee.exec;return D===h||D===A.exec?G&&!M?{done:!0,value:Y(ee,N,le)}:{done:!0,value:C(N,ee,le)}:{done:!1}});d(String.prototype,j,Z[0]),d(A,V,Z[1])}I&&S(A[V],"sham",!0)}},WrAw:function(g,b,t){var u=t("Ks5W"),d=t("JTf3"),h=t("YELS"),m=t("8ODz"),y=t("nATg"),S=t("sNJV"),R=t("UQ6y"),A=t("N6FT").CONFIGURABLE,j=R.get,w=R.enforce,B=String(String).split("String");(g.exports=function(I,V,G,z){var Y=z?!!z.unsafe:!1,Z=z?!!z.enumerable:!1,F=z?!!z.noTargetGet:!1,ee=z&&z.name!==void 0?z.name:V,N;if(d(G)&&(String(ee).slice(0,7)==="Symbol("&&(ee="["+String(ee).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!h(G,"name")||A&&G.name!==ee)&&m(G,"name",ee),N=w(G),N.source||(N.source=B.join(typeof ee=="string"?ee:""))),I===u){Z?I[V]=G:y(V,G);return}else Y?!F&&I[V]&&(Z=!0):delete I[V];Z?I[V]=G:m(I,V,G)})(Function.prototype,"toString",function(){return d(this)&&j(this).source||S(this)})},WxoH:function(g,b,t){var u=t("Ks5W"),d=t("SwuV"),h=u.String,m=u.TypeError;g.exports=function(y){if(d(y))return y;throw m(h(y)+" is not an object")}},"X/EZ":function(g,b,t){var u=t("11yv"),d=u("iterator"),h=!1;try{var m=0,y={next:function(){return{done:!!m++}},return:function(){h=!0}};y[d]=function(){return this},Array.from(y,function(){throw 2})}catch(S){}g.exports=function(S,R){if(!R&&!h)return!1;var A=!1;try{var j={};j[d]=function(){return{next:function(){return{done:A=!0}}}},S(j)}catch(w){}return A}},XFuk:function(g,b,t){var u=t("WxoH"),d=t("oR5W"),h=t("Yzn+"),m=t("SkNP"),y=t("bUA4"),S=t("me6S"),R=t("ST+I"),A=">",j="<",w="prototype",B="script",I=R("IE_PROTO"),V=function(){},G=function(ee){return j+B+A+ee+j+"/"+B+A},z=function(ee){ee.write(G("")),ee.close();var N=ee.parentWindow.Object;return ee=null,N},Y=function(){var ee=S("iframe"),N="java"+B+":",le;return ee.style.display="none",y.appendChild(ee),ee.src=String(N),le=ee.contentWindow.document,le.open(),le.write(G("document.F=Object")),le.close(),le.F},Z,F=function(){try{Z=new ActiveXObject("htmlfile")}catch(N){}F=typeof document!="undefined"?document.domain&&Z?z(Z):Y():z(Z);for(var ee=h.length;ee--;)delete F[w][h[ee]];return F()};m[I]=!0,g.exports=Object.create||function(N,le){var M;return N!==null?(V[w]=u(N),M=new V,V[w]=null,M[I]=N):M=F(),le===void 0?M:d.f(M,le)}},XTcp:function(g,b,t){var u=t("Ks5W"),d=t("1mOU"),h=t("mcoe"),m=t("JTf3"),y=t("YELS"),S=t("eRwv"),R=t("bUA4"),A=t("0r2v"),j=t("me6S"),w=t("k2qh"),B=t("GgKt"),I=t("IGIO"),V=u.setImmediate,G=u.clearImmediate,z=u.process,Y=u.Dispatch,Z=u.Function,F=u.MessageChannel,ee=u.String,N=0,le={},M="onreadystatechange",C,D,P,_;try{C=u.location}catch(O){}var re=function(O){if(y(le,O)){var T=le[O];delete le[O],T()}},q=function(O){return function(){re(O)}},E=function(O){re(O.data)},H=function(O){u.postMessage(ee(O),C.protocol+"//"+C.host)};(!V||!G)&&(V=function(T){w(arguments.length,1);var k=m(T)?T:Z(T),L=A(arguments,1);return le[++N]=function(){d(k,void 0,L)},D(N),N},G=function(T){delete le[T]},I?D=function(O){z.nextTick(q(O))}:Y&&Y.now?D=function(O){Y.now(q(O))}:F&&!B?(P=new F,_=P.port2,P.port1.onmessage=E,D=h(_.postMessage,_)):u.addEventListener&&m(u.postMessage)&&!u.importScripts&&C&&C.protocol!=="file:"&&!S(H)?(D=H,u.addEventListener("message",E,!1)):M in j("script")?D=function(O){R.appendChild(j("script"))[M]=function(){R.removeChild(this),re(O)}}:D=function(O){setTimeout(q(O),0)}),g.exports={set:V,clear:G}},XaNE:function(g,b,t){var u=t("Ks5W"),d=u.TypeError;g.exports=function(h){if(h==null)throw d("Can't call method on "+h);return h}},Xp4B:function(g,b,t){"use strict";t.d(b,"a",function(){return R});function u(I){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(G){return typeof G}:u=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},u(I)}function d(I,V){if(!(I instanceof V))throw new TypeError("Cannot call a class as a function")}var h=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],m=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function y(I,V,G,z,Y,Z){if(typeof I=="string"&&(I=document.getElementById(I)),!I||!("naturalWidth"in I))return;var F=Y?"offset":"natural",ee=I[F+"Width"],N=I[F+"Height"];if(typeof V=="string"&&(V=document.getElementById(V)),!V||!("getContext"in V))return;Z||(V.style.width=ee+"px",V.style.height=N+"px"),V.width=ee,V.height=N;var le=V.getContext("2d");if(le.clearRect(0,0,ee,N),le.drawImage(I,0,0,I.naturalWidth,I.naturalHeight,0,0,ee,N),isNaN(G)||G<1)return;z?R(V,0,0,ee,N,G):j(V,0,0,ee,N,G)}function S(I,V,G,z,Y){if(typeof I=="string"&&(I=document.getElementById(I)),!I||u(I)!=="object"||!("getContext"in I))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var Z=I.getContext("2d");try{return Z.getImageData(V,G,z,Y)}catch(F){throw new Error("unable to access image data: "+F)}}function R(I,V,G,z,Y,Z){if(isNaN(Z)||Z<1)return;Z|=0;var F=S(I,V,G,z,Y);F=A(F,V,G,z,Y,Z),I.getContext("2d").putImageData(F,V,G)}function A(I,V,G,z,Y,Z){for(var F=I.data,ee=2*Z+1,N=z-1,le=Y-1,M=Z+1,C=M*(M+1)/2,D=new B,P=D,_,re=1;re>k;if(F[O+3]=ze,ze!==0){var qe=255/ze;F[O]=(Ae*T>>k)*qe,F[O+1]=(Re*T>>k)*qe,F[O+2]=(je*T>>k)*qe}else F[O]=F[O+1]=F[O+2]=0;Ae-=ve,Re-=me,je-=Pe,Ie-=Me,ve-=q.r,me-=q.g,Pe-=q.b,Me-=q.a;var Ge=Oe+Z+1;Ge=H+(Ge>k,te>0?(te=255/te,F[He]=(Fe*T>>k)*te,F[He+1]=(Je*T>>k)*te,F[He+2]=($e*T>>k)*te):F[He]=F[He+1]=F[He+2]=0,Fe-=de,Je-=pe,$e-=ye,Xe-=Ee,de-=q.r,pe-=q.g,ye-=q.b,Ee-=q.a,He=at+((He=Mt+M)>O,F[W+1]=ve*H>>O,F[W+2]=me*H>>O,Ce-=ie,ve-=ce,me-=se,ie-=q.r,ce-=q.g,se-=q.b,T=L+((T=Ie+Z+1)>O,F[T+1]=ze*H>>O,F[T+2]=qe*H>>O,Oe-=De,ze-=Te,qe-=Se,De-=q.r,Te-=q.g,Se-=q.b,T=we+((T=at+M)w;)d(j,I=A[w++])&&(~m(B,I)||S(B,I));return B}},a9Cf:function(g,b,t){var u=t("11yv"),d=u("toStringTag"),h={};h[d]="z",g.exports=String(h)==="[object z]"},aLaa:function(g,b,t){var u=t("66qH"),d=Function.prototype,h=d.bind,m=d.call,y=u&&h.bind(m,m);g.exports=u?function(S){return S&&y(S)}:function(S){return S&&function(){return m.apply(S,arguments)}}},aNIs:function(g,b,t){var u=t("Ks5W"),d=t("eE3R"),h=u.process,m=u.Deno,y=h&&h.versions||m&&m.version,S=y&&y.v8,R,A;S&&(R=S.split("."),A=R[0]>0&&R[0]<4?1:+(R[0]+R[1])),!A&&d&&(R=d.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=d.match(/Chrome\/(\d+)/),R&&(A=+R[1]))),g.exports=A},aNr2:function(g,b,t){var u=t("jybJ"),d=t("4gdG");(g.exports=function(h,m){return d[h]||(d[h]=m!==void 0?m:{})})("versions",[]).push({version:"3.21.1",mode:u?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},bT0D:function(g,b,t){var u=t("Ks5W"),d=t("RYfq"),h=t("JTf3"),m=t("3Xd8"),y=t("1Sr1"),S=u.Object;g.exports=y?function(R){return typeof R=="symbol"}:function(R){var A=d("Symbol");return h(A)&&m(A.prototype,S(R))}},bUA4:function(g,b,t){var u=t("RYfq");g.exports=u("document","documentElement")},ba8b:function(g,b,t){var u=t("aLaa"),d=u({}.toString),h=u("".slice);g.exports=function(m){return h(d(m),8,-1)}},c3MK:function(g,b,t){var u=t("SN6V"),d=Math.min;g.exports=function(h){return h>0?d(u(h),9007199254740991):0}},c55Z:function(g,b,t){var u=t("eRwv"),d=t("Ks5W"),h=d.RegExp;g.exports=u(function(){var m=h("(?b)","g");return m.exec("b").groups.a!=="b"||"b".replace(m,"$c")!=="bc"})},eE3R:function(g,b,t){var u=t("RYfq");g.exports=u("navigator","userAgent")||""},eRwv:function(g,b){g.exports=function(t){try{return!!t()}catch(u){return!0}}},fKql:function(g,b,t){var u=t("++4Y"),d=t("m7zg"),h=t("5r2E"),m=t("4uGi"),y=t("vkZI"),S=t("GTqx"),R=t("YELS"),A=t("pVCk"),j=Object.getOwnPropertyDescriptor;b.f=u?j:function(B,I){if(B=y(B),I=S(I),A)try{return j(B,I)}catch(V){}if(R(B,I))return m(!d(h.f,B,I),B[I])}},"g8+u":function(g,b,t){var u=t("Ks5W"),d=t("a9Cf"),h=t("JTf3"),m=t("ba8b"),y=t("11yv"),S=y("toStringTag"),R=u.Object,A=m(function(){return arguments}())=="Arguments",j=function(w,B){try{return w[B]}catch(I){}};g.exports=d?m:function(w){var B,I,V;return w===void 0?"Undefined":w===null?"Null":typeof(I=j(B=R(w),S))=="string"?I:A?m(B):(V=m(B))=="Object"&&h(B.callee)?"Arguments":V}},g9jQ:function(g,b,t){"use strict";var u=t("nCzB"),d=t("aLaa"),h=t("Nybj").indexOf,m=t("QELg"),y=d([].indexOf),S=!!y&&1/y([1],1,-0)<0,R=m("indexOf");u({target:"Array",proto:!0,forced:S||!R},{indexOf:function(j){var w=arguments.length>1?arguments[1]:void 0;return S?y(this,j,w)||0:h(this,j,w)}})},gzPo:function(g,b,t){var u=t("Ks5W"),d=t("mcoe"),h=t("fKql").f,m=t("XTcp").set,y=t("GgKt"),S=t("FqHY"),R=t("/pbl"),A=t("IGIO"),j=u.MutationObserver||u.WebKitMutationObserver,w=u.document,B=u.process,I=u.Promise,V=h(u,"queueMicrotask"),G=V&&V.value,z,Y,Z,F,ee,N,le,M;G||(z=function(){var C,D;for(A&&(C=B.domain)&&C.exit();Y;){D=Y.fn,Y=Y.next;try{D()}catch(P){throw Y?F():Z=void 0,P}}Z=void 0,C&&C.enter()},!y&&!A&&!R&&j&&w?(ee=!0,N=w.createTextNode(""),new j(z).observe(N,{characterData:!0}),F=function(){N.data=ee=!ee}):!S&&I&&I.resolve?(le=I.resolve(void 0),le.constructor=I,M=d(le.then,le),F=function(){M(z)}):A?F=function(){B.nextTick(z)}:(m=d(m,u),F=function(){m(z)})),g.exports=G||function(C){var D={fn:C,next:void 0};Z&&(Z.next=D),Y||(Y=D,F()),Z=D}},hIaP:function(g,b,t){var u=t("Ks5W"),d=t("m7zg"),h=t("8HiI"),m=t("WxoH"),y=t("IL+x"),S=t("ltkU"),R=u.TypeError;g.exports=function(A,j){var w=arguments.length<2?S(A):j;if(h(w))return m(d(w,A));throw R(y(A)+" is not iterable")}},"iBj/":function(g,b,t){var u=t("m7zg"),d=t("WxoH"),h=t("oK8H");g.exports=function(m,y,S){var R,A;d(m);try{if(R=h(m,"return"),!R){if(y==="throw")throw S;return S}R=u(R,m)}catch(j){A=!0,R=j}if(y==="throw")throw S;if(A)throw R;return d(R),S}},iWRt:function(g,b,t){"use strict";var u=t("nCzB"),d=t("aLaa"),h=t("uZ/K"),m=d([].reverse),y=[1,2];u({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return h(this)&&(this.length=this.length),m(this)}})},jgt4:function(g,b,t){"use strict";var u=t("nCzB"),d=t("m7zg"),h=t("jybJ"),m=t("N6FT"),y=t("JTf3"),S=t("3agc"),R=t("WLJ+"),A=t("JHvW"),j=t("ueY1"),w=t("8ODz"),B=t("WrAw"),I=t("11yv"),V=t("AoAp"),G=t("qjFr"),z=m.PROPER,Y=m.CONFIGURABLE,Z=G.IteratorPrototype,F=G.BUGGY_SAFARI_ITERATORS,ee=I("iterator"),N="keys",le="values",M="entries",C=function(){return this};g.exports=function(D,P,_,re,q,E,H){S(_,P,re);var O=function(ce){if(ce===q&&J)return J;if(!F&&ce in L)return L[ce];switch(ce){case N:return function(){return new _(this,ce)};case le:return function(){return new _(this,ce)};case M:return function(){return new _(this,ce)}}return function(){return new _(this)}},T=P+" Iterator",k=!1,L=D.prototype,W=L[ee]||L["@@iterator"]||q&&L[q],J=!F&&W||O(q),K=P=="Array"&&L.entries||W,X,Q,ie;if(K&&(X=R(K.call(new D)),X!==Object.prototype&&X.next&&(!h&&R(X)!==Z&&(A?A(X,Z):y(X[ee])||B(X,ee,C)),j(X,T,!0,!0),h&&(V[T]=C))),z&&q==le&&W&&W.name!==le&&(!h&&Y?w(L,"name",le):(k=!0,J=function(){return d(W,this)})),q)if(Q={values:O(le),keys:E?J:O(N),entries:O(M)},H)for(ie in Q)(F||k||!(ie in L))&&B(L,ie,Q[ie]);else u({target:P,proto:!0,forced:F||k},Q);return(!h||H)&&L[ee]!==J&&B(L,ee,J,{name:q}),V[P]=J,Q}},jybJ:function(g,b){g.exports=!1},k2qh:function(g,b,t){var u=t("Ks5W"),d=u.TypeError;g.exports=function(h,m){if(h79&&m<83;u({target:"Array",proto:!0,forced:!S||R},{reduce:function(j){var w=arguments.length;return d(this,j,w,w>1?arguments[1]:void 0)}})},me6S:function(g,b,t){var u=t("Ks5W"),d=t("SwuV"),h=u.document,m=d(h)&&d(h.createElement);g.exports=function(y){return m?h.createElement(y):{}}},ms20:function(g,b,t){var u=t("Ks5W"),d=t("m7zg"),h=t("SwuV"),m=t("bT0D"),y=t("oK8H"),S=t("2lHc"),R=t("11yv"),A=u.TypeError,j=R("toPrimitive");g.exports=function(w,B){if(!h(w)||m(w))return w;var I=y(w,j),V;if(I){if(B===void 0&&(B="default"),V=d(I,w,B),!h(V)||m(V))return V;throw A("Can't convert object to primitive value")}return B===void 0&&(B="number"),S(w,B)}},n6S8:function(g,b,t){var u=t("SN6V"),d=Math.max,h=Math.min;g.exports=function(m,y){var S=u(m);return S<0?d(S+y,0):h(S,y)}},nATg:function(g,b,t){var u=t("Ks5W"),d=Object.defineProperty;g.exports=function(h,m){try{d(u,h,{value:m,configurable:!0,writable:!0})}catch(y){u[h]=m}return m}},nCzB:function(g,b,t){var u=t("Ks5W"),d=t("fKql").f,h=t("8ODz"),m=t("WrAw"),y=t("nATg"),S=t("Ttl4"),R=t("mGb/");g.exports=function(A,j){var w=A.target,B=A.global,I=A.stat,V,G,z,Y,Z,F;if(B?G=u:I?G=u[w]||y(w,{}):G=(u[w]||{}).prototype,G)for(z in j){if(Z=j[z],A.noTargetGet?(F=d(G,z),Y=F&&F.value):Y=G[z],V=R(B?z:w+(I?".":"#")+z,A.forced),!V&&Y!==void 0){if(typeof Z==typeof Y)continue;S(Z,Y)}(A.sham||Y&&Y.sham)&&h(Z,"sham",!0),m(G,z,Z,A)}}},noWC:function(g,b){g.exports=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},nvEG:function(g,b,t){var u=t("Ks5W"),d=t("mcoe"),h=t("m7zg"),m=t("WxoH"),y=t("IL+x"),S=t("3n0U"),R=t("tMNq"),A=t("3Xd8"),j=t("hIaP"),w=t("ltkU"),B=t("iBj/"),I=u.TypeError,V=function(z,Y){this.stopped=z,this.result=Y},G=V.prototype;g.exports=function(z,Y,Z){var F=Z&&Z.that,ee=!!(Z&&Z.AS_ENTRIES),N=!!(Z&&Z.IS_ITERATOR),le=!!(Z&&Z.INTERRUPTED),M=d(Y,F),C,D,P,_,re,q,E,H=function(T){return C&&B(C,"normal",T),new V(!0,T)},O=function(T){return ee?(m(T),le?M(T[0],T[1],H):M(T[0],T[1])):le?M(T,H):M(T)};if(N)C=z;else{if(D=w(z),!D)throw I(y(z)+" is not iterable");if(S(D)){for(P=0,_=R(z);_>P;P++)if(re=O(z[P]),re&&A(G,re))return re;return new V(!1)}C=j(z,D)}for(q=C.next;!(E=h(q,C)).done;){try{re=O(E.value)}catch(T){B(C,"throw",T)}if(typeof re=="object"&&re&&A(G,re))return re}return new V(!1)}},oK8H:function(g,b,t){var u=t("8HiI");g.exports=function(d,h){var m=d[h];return m==null?void 0:u(m)}},oR5W:function(g,b,t){var u=t("++4Y"),d=t("FkIU"),h=t("FlRv"),m=t("WxoH"),y=t("vkZI"),S=t("Ai06");b.f=u&&!d?Object.defineProperties:function(A,j){m(A);for(var w=y(j),B=S(j),I=B.length,V=0,G;I>V;)h.f(A,G=B[V++],w[G]);return A}},oauk:function(g,b,t){"use strict";var u=t("GTqx"),d=t("FlRv"),h=t("4uGi");g.exports=function(m,y,S){var R=u(y);R in m?d.f(m,R,h(0,S)):m[R]=S}},p5Ma:function(g,b,t){var u=t("Ks5W"),d=t("aLaa"),h=t("eRwv"),m=t("ba8b"),y=u.Object,S=d("".split);g.exports=h(function(){return!y("z").propertyIsEnumerable(0)})?function(R){return m(R)=="String"?S(R,""):y(R)}:y},pVCk:function(g,b,t){var u=t("++4Y"),d=t("eRwv"),h=t("me6S");g.exports=!u&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!=7})},"plO+":function(g,b,t){var u=t("aNIs"),d=t("eRwv");g.exports=!!Object.getOwnPropertySymbols&&!d(function(){var h=Symbol();return!String(h)||!(Object(h)instanceof Symbol)||!Symbol.sham&&u&&u<41})},qJvV:function(g,b,t){var u=t("Ks5W"),d=t("ENhe"),h=t("GI0h"),m=t("Lltv"),y=t("8ODz"),S=t("11yv"),R=S("iterator"),A=S("toStringTag"),j=m.values,w=function(I,V){if(I){if(I[R]!==j)try{y(I,R,j)}catch(z){I[R]=j}if(I[A]||y(I,A,V),d[V]){for(var G in m)if(I[G]!==m[G])try{y(I,G,m[G])}catch(z){I[G]=m[G]}}}};for(var B in d)w(u[B]&&u[B].prototype,B);w(h,"DOMTokenList")},qjFr:function(g,b,t){"use strict";var u=t("eRwv"),d=t("JTf3"),h=t("XFuk"),m=t("WLJ+"),y=t("WrAw"),S=t("11yv"),R=t("jybJ"),A=S("iterator"),j=!1,w,B,I;[].keys&&(I=[].keys(),"next"in I?(B=m(m(I)),B!==Object.prototype&&(w=B)):j=!0);var V=w==null||u(function(){var G={};return w[A].call(G)!==G});V?w={}:R&&(w=h(w)),d(w[A])||y(w,A,function(){return this}),g.exports={IteratorPrototype:w,BUGGY_SAFARI_ITERATORS:j}},qzpy:function(g,b,t){var u=t("Ks5W"),d=t("g8+u"),h=u.String;g.exports=function(m){if(d(m)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return h(m)}},sNJV:function(g,b,t){var u=t("aLaa"),d=t("JTf3"),h=t("4gdG"),m=u(Function.toString);d(h.inspectSource)||(h.inspectSource=function(y){return m(y)}),g.exports=h.inspectSource},tMNq:function(g,b,t){var u=t("c3MK");g.exports=function(d){return u(d.length)}},"uZ/K":function(g,b,t){var u=t("ba8b");g.exports=Array.isArray||function(h){return u(h)=="Array"}},ueY1:function(g,b,t){var u=t("FlRv").f,d=t("YELS"),h=t("11yv"),m=h("toStringTag");g.exports=function(y,S,R){y&&!R&&(y=y.prototype),y&&!d(y,m)&&u(y,m,{configurable:!0,value:S})}},uoua:function(g,b,t){var u=t("Ks5W"),d=t("3Xd8"),h=u.TypeError;g.exports=function(m,y){if(d(y,m))return m;throw h("Incorrect invocation")}},vTDQ:function(g,b){g.exports=typeof window=="object"},vkZI:function(g,b,t){var u=t("p5Ma"),d=t("XaNE");g.exports=function(h){return u(d(h))}},vrKp:function(g,b,t){"use strict";var u=t("nCzB"),d=t("jybJ"),h=t("Ks5W"),m=t("RYfq"),y=t("m7zg"),S=t("BDtL"),R=t("WrAw"),A=t("LOfi"),j=t("JHvW"),w=t("ueY1"),B=t("9Bi7"),I=t("8HiI"),V=t("JTf3"),G=t("SwuV"),z=t("uoua"),Y=t("sNJV"),Z=t("nvEG"),F=t("X/EZ"),ee=t("NudO"),N=t("XTcp").set,le=t("gzPo"),M=t("TRzv"),C=t("lAFk"),D=t("zFjv"),P=t("8xe4"),_=t("zUnQ"),re=t("UQ6y"),q=t("mGb/"),E=t("11yv"),H=t("vTDQ"),O=t("IGIO"),T=t("aNIs"),k=E("species"),L="Promise",W=re.getterFor(L),J=re.set,K=re.getterFor(L),X=S&&S.prototype,Q=S,ie=X,ce=h.TypeError,se=h.document,Ce=h.process,ve=D.f,me=ve,Pe=!!(se&&se.createEvent&&h.dispatchEvent),Me=V(h.PromiseRejectionEvent),Ae="unhandledrejection",Re="rejectionhandled",je=0,Ie=1,we=2,Ne=1,Be=2,Ue=!1,De,Te,Se,Oe,ze=q(L,function(){var te=Y(Q),de=te!==String(Q);if(!de&&T===66)return!0;if(d&&!ie.finally)return!0;if(T>=51&&/native code/.test(te))return!1;var pe=new Q(function(Fe){Fe(1)}),ye=function(Fe){Fe(function(){},function(){})},Ee=pe.constructor={};return Ee[k]=ye,Ue=pe.then(function(){})instanceof ye,Ue?!de&&H&&!Me:!0}),qe=ze||!F(function(te){Q.all(te).catch(function(){})}),Ge=function(te){var de;return G(te)&&V(de=te.then)?de:!1},_e=function(te,de){var pe=de.value,ye=de.state==Ie,Ee=ye?te.ok:te.fail,Fe=te.resolve,Je=te.reject,$e=te.domain,Xe,vt,lt;try{Ee?(ye||(de.rejection===Be&&at(de),de.rejection=Ne),Ee===!0?Xe=pe:($e&&$e.enter(),Xe=Ee(pe),$e&&($e.exit(),lt=!0)),Xe===te.promise?Je(ce("Promise-chain cycle")):(vt=Ge(Xe))?y(vt,Xe,Fe,Je):Fe(Xe)):Je(pe)}catch(pt){$e&&!lt&&$e.exit(),Je(pt)}},it=function(te,de){if(te.notified)return;te.notified=!0,le(function(){for(var pe=te.reactions,ye;ye=pe.get();)_e(ye,te);te.notified=!1,de&&!te.rejection&&ht(te)})},st=function(te,de,pe){var ye,Ee;Pe?(ye=se.createEvent("Event"),ye.promise=de,ye.reason=pe,ye.initEvent(te,!1,!0),h.dispatchEvent(ye)):ye={promise:de,reason:pe},!Me&&(Ee=h["on"+te])?Ee(ye):te===Ae&&C("Unhandled promise rejection",pe)},ht=function(te){y(N,h,function(){var de=te.facade,pe=te.value,ye=mt(te),Ee;if(ye&&(Ee=P(function(){O?Ce.emit("unhandledRejection",pe,de):st(Ae,de,pe)}),te.rejection=O||mt(te)?Be:Ne,Ee.error))throw Ee.value})},mt=function(te){return te.rejection!==Ne&&!te.parent},at=function(te){y(N,h,function(){var de=te.facade;O?Ce.emit("rejectionHandled",de):st(Re,de,te.value)})},tt=function(te,de,pe){return function(ye){te(de,ye,pe)}},nt=function(te,de,pe){if(te.done)return;te.done=!0,pe&&(te=pe),te.value=de,te.state=we,it(te,!0)},Ye=function(te,de,pe){if(te.done)return;te.done=!0,pe&&(te=pe);try{if(te.facade===de)throw ce("Promise can't be resolved itself");var ye=Ge(de);ye?le(function(){var Ee={done:!1};try{y(ye,de,tt(Ye,Ee,te),tt(nt,Ee,te))}catch(Fe){nt(Ee,Fe,te)}}):(te.value=de,te.state=Ie,it(te,!1))}catch(Ee){nt({done:!1},Ee,te)}};if(ze&&(Q=function(de){z(this,ie),I(de),y(De,this);var pe=W(this);try{de(tt(Ye,pe),tt(nt,pe))}catch(ye){nt(pe,ye)}},ie=Q.prototype,De=function(de){J(this,{type:L,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:je,value:void 0})},De.prototype=A(ie,{then:function(de,pe){var ye=K(this),Ee=ve(ee(this,Q));return ye.parent=!0,Ee.ok=V(de)?de:!0,Ee.fail=V(pe)&&pe,Ee.domain=O?Ce.domain:void 0,ye.state==je?ye.reactions.add(Ee):le(function(){_e(Ee,ye)}),Ee.promise},catch:function(te){return this.then(void 0,te)}}),Te=function(){var te=new De,de=W(te);this.promise=te,this.resolve=tt(Ye,de),this.reject=tt(nt,de)},D.f=ve=function(te){return te===Q||te===Se?new Te(te):me(te)},!d&&V(S)&&X!==Object.prototype)){Oe=X.then,Ue||(R(X,"then",function(de,pe){var ye=this;return new Q(function(Ee,Fe){y(Oe,ye,Ee,Fe)}).then(de,pe)},{unsafe:!0}),R(X,"catch",ie.catch,{unsafe:!0}));try{delete X.constructor}catch(te){}j&&j(X,ie)}u({global:!0,wrap:!0,forced:ze},{Promise:Q}),w(Q,L,!1,!0),B(L),Se=m(L),u({target:L,stat:!0,forced:ze},{reject:function(de){var pe=ve(this);return y(pe.reject,void 0,de),pe.promise}}),u({target:L,stat:!0,forced:d||ze},{resolve:function(de){return M(d&&this===Se?Q:this,de)}}),u({target:L,stat:!0,forced:qe},{all:function(de){var pe=this,ye=ve(pe),Ee=ye.resolve,Fe=ye.reject,Je=P(function(){var $e=I(pe.resolve),Xe=[],vt=0,lt=1;Z(de,function(pt){var he=vt++,yt=!1;lt++,y($e,pe,pt).then(function(We){if(yt)return;yt=!0,Xe[he]=We,--lt||Ee(Xe)},Fe)}),--lt||Ee(Xe)});return Je.error&&Fe(Je.value),ye.promise},race:function(de){var pe=this,ye=ve(pe),Ee=ye.reject,Fe=P(function(){var Je=I(pe.resolve);Z(de,function($e){y(Je,pe,$e).then(ye.resolve,Ee)})});return Fe.error&&Ee(Fe.value),ye.promise}})},w4Tj:function(g,b,t){"use strict";t.d(b,"a",function(){return h});var u=t("oZsa");function d(m,y){for(;!Object.prototype.hasOwnProperty.call(m,y)&&!(m=Object(u.a)(m),m===null););return m}function h(m,y,S){return typeof Reflect!="undefined"&&Reflect.get?h=Reflect.get:h=function(A,j,w){var B=d(A,j);if(!B)return;var I=Object.getOwnPropertyDescriptor(B,j);return I.get?I.get.call(w):I.value},h(m,y,S||m)}},wOD2:function(g,b,t){"use strict";var u=t("nCzB"),d=t("RXj+").trim,h=t("5JCY");u({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})},"x1+7":function(g,b,t){var u=t("RYfq"),d=t("aLaa"),h=t("QrM1"),m=t("UCFi"),y=t("WxoH"),S=d([].concat);g.exports=u("Reflect","ownKeys")||function(A){var j=h.f(y(A)),w=m.f;return w?S(j,w(A)):j}},x8x8:function(g,b,t){"use strict";var u=t("1mOU"),d=t("m7zg"),h=t("aLaa"),m=t("WONN"),y=t("eRwv"),S=t("WxoH"),R=t("JTf3"),A=t("SN6V"),j=t("c3MK"),w=t("qzpy"),B=t("XaNE"),I=t("M/+V"),V=t("oK8H"),G=t("Ne/+"),z=t("3fk+"),Y=t("11yv"),Z=Y("replace"),F=Math.max,ee=Math.min,N=h([].concat),le=h([].push),M=h("".indexOf),C=h("".slice),D=function(q){return q===void 0?q:String(q)},P=function(){return"a".replace(/./,"$0")==="$0"}(),_=function(){return/./[Z]?/./[Z]("a","$0")==="":!1}(),re=!y(function(){var q=/./;return q.exec=function(){var E=[];return E.groups={a:"7"},E},"".replace(q,"$")!=="7"});m("replace",function(q,E,H){var O=_?"$":"$0";return[function(k,L){var W=B(this),J=k==null?void 0:V(k,Z);return J?d(J,k,W,L):d(E,w(W),k,L)},function(T,k){var L=S(this),W=w(T);if(typeof k=="string"&&M(k,O)===-1&&M(k,"$<")===-1){var J=H(E,L,W,k);if(J.done)return J.value}var K=R(k);K||(k=w(k));var X=L.global;if(X){var Q=L.unicode;L.lastIndex=0}for(var ie=[];;){var ce=z(L,W);if(ce===null)break;if(le(ie,ce),!X)break;var se=w(ce[0]);se===""&&(L.lastIndex=I(W,j(L.lastIndex),Q))}for(var Ce="",ve=0,me=0;me=ve&&(Ce+=C(W,ve,Me)+we,ve=Me+Pe.length)}return Ce+C(W,ve)}]},!re||!P||_)},yD9w:function(g,b,t){"use strict";var u=t("aLaa"),d=t("N6FT").PROPER,h=t("WrAw"),m=t("WxoH"),y=t("3Xd8"),S=t("qzpy"),R=t("eRwv"),A=t("HTC/"),j="toString",w=RegExp.prototype,B=w[j],I=u(A),V=R(function(){return B.call({source:"a",flags:"b"})!="/a/b"}),G=d&&B.name!=j;(V||G)&&h(RegExp.prototype,j,function(){var Y=m(this),Z=S(Y.source),F=Y.flags,ee=S(F===void 0&&y(w,Y)&&!("flags"in w)?I(Y):F);return"/"+Z+"/"+ee},{unsafe:!0})},yXPU:function(g,b){function t(d,h,m,y,S,R,A){try{var j=d[R](A),w=j.value}catch(B){m(B);return}j.done?h(w):Promise.resolve(w).then(y,S)}function u(d){return function(){var h=this,m=arguments;return new Promise(function(y,S){var R=d.apply(h,m);function A(w){t(R,y,S,A,j,"next",w)}function j(w){t(R,y,S,A,j,"throw",w)}A(void 0)})}}g.exports=u,g.exports.__esModule=!0,g.exports.default=g.exports},ymN0:function(g,b,t){var u=t("aLaa"),d=t("SN6V"),h=t("qzpy"),m=t("XaNE"),y=u("".charAt),S=u("".charCodeAt),R=u("".slice),A=function(j){return function(w,B){var I=h(m(w)),V=d(B),G=I.length,z,Y;return V<0||V>=G?j?"":void 0:(z=S(I,V),z<55296||z>56319||V+1===G||(Y=S(I,V+1))<56320||Y>57343?j?y(I,V):z:j?R(I,V,V+2):(z-55296<<10)+(Y-56320)+65536)}};g.exports={codeAt:A(!1),charAt:A(!0)}},zFjv:function(g,b,t){"use strict";var u=t("8HiI"),d=function(h){var m,y;this.promise=new h(function(S,R){if(m!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");m=S,y=R}),this.resolve=u(m),this.reject=u(y)};g.exports.f=function(h){return new d(h)}},zUnQ:function(g,b){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(u){var d={item:u,next:null};this.head?this.tail.next=d:this.head=d,this.tail=d},get:function(){var u=this.head;if(u)return this.head=u.next,this.tail===u&&(this.tail=null),u.item}},g.exports=t}}]);