(window.webpackJsonp=window.webpackJsonp||[]).push([[200],{"/GqU":function(m,E,e){var u=e("RK3t"),h=e("HYAF");m.exports=function(d){return u(h(d))}},"/OPJ":function(m,E,e){var u=e("0Dky"),h=e("2oRo"),d=h.RegExp;m.exports=u(function(){var p=d(".","s");return!(p.dotAll&&p.exec(` `)&&p.flags==="s")})},"/b8u":function(m,E,e){var u=e("STAE");m.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"/byt":function(m,E){m.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"/qmn":function(m,E,e){var u=e("2oRo");m.exports=u.Promise},"0B/8":function(m,E,e){"use strict";e.d(E,"a",function(){return L});/*! ***************************************************************************** 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(R,V){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,J){j.__proto__=J}||function(j,J){for(var tt in J)Object.prototype.hasOwnProperty.call(J,tt)&&(j[tt]=J[tt])})(R,V)};function h(M,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function V(){this.constructor=M}u(M,R),M.prototype=R===null?Object.create(R):(V.prototype=R.prototype,new V)}function d(M){var R="";Array.isArray(M)||(M=[M]);for(var V=0;VM.phi1&&(M.phi2-=2*A),M.sweepFlag===1&&M.phi2j)return[];if(j===0)return[[M*V/(M*M+R*R),R*V/(M*M+R*R)]];var J=Math.sqrt(j);return[[(M*V+R*J)/(M*M+R*R),(R*V-M*J)/(M*M+R*R)],[(M*V-R*J)/(M*M+R*R),(R*V+M*J)/(M*M+R*R)]]}var x,S=Math.PI/180;function C(M,R,V){return(1-V)*M+V*R}function I(M,R,V,j){return M+Math.cos(j/180*A)*R+Math.sin(j/180*A)*V}function W(M,R,V,j){var J=1e-6,tt=R-M,X=V-R,O=3*tt+3*(j-V)-6*X,H=6*(X-tt),P=3*tt;return Math.abs(O)gt&&(G.sweepFlag=+!G.sweepFlag),G})}function X(){return function(O){var H={};for(var P in O)H[P]=O[P];return H}}M.ROUND=function(O){function H(P){return Math.round(P*O)/O}return O===void 0&&(O=1e13),y(O),function(P){return P.x1!==void 0&&(P.x1=H(P.x1)),P.y1!==void 0&&(P.y1=H(P.y1)),P.x2!==void 0&&(P.x2=H(P.x2)),P.y2!==void 0&&(P.y2=H(P.y2)),P.x!==void 0&&(P.x=H(P.x)),P.y!==void 0&&(P.y=H(P.y)),P.rX!==void 0&&(P.rX=H(P.rX)),P.rY!==void 0&&(P.rY=H(P.rY)),P}},M.TO_ABS=R,M.TO_REL=function(){return J(function(O,H,P){return O.relative||(O.x1!==void 0&&(O.x1-=H),O.y1!==void 0&&(O.y1-=P),O.x2!==void 0&&(O.x2-=H),O.y2!==void 0&&(O.y2-=P),O.x!==void 0&&(O.x-=H),O.y!==void 0&&(O.y-=P),O.relative=!0),O})},M.NORMALIZE_HVZ=function(O,H,P){return O===void 0&&(O=!0),H===void 0&&(H=!0),P===void 0&&(P=!0),J(function(N,Y,F,G,at){if(isNaN(G)&&!(N.type&L.MOVE_TO))throw new Error("path must start with moveto");return H&&N.type&L.HORIZ_LINE_TO&&(N.type=L.LINE_TO,N.y=N.relative?0:F),P&&N.type&L.VERT_LINE_TO&&(N.type=L.LINE_TO,N.x=N.relative?0:Y),O&&N.type&L.CLOSE_PATH&&(N.type=L.LINE_TO,N.x=N.relative?G-Y:G,N.y=N.relative?at-F:at),N.type&L.ARC&&(N.rX===0||N.rY===0)&&(N.type=L.LINE_TO,delete N.rX,delete N.rY,delete N.xRot,delete N.lArcFlag,delete N.sweepFlag),N})},M.NORMALIZE_ST=V,M.QT_TO_C=j,M.INFO=J,M.SANITIZE=function(O){O===void 0&&(O=0),y(O);var H=NaN,P=NaN,N=NaN,Y=NaN;return J(function(F,G,at,q,it){var ot=Math.abs,dt=!1,lt=0,ft=0;if(F.type&L.SMOOTH_CURVE_TO&&(lt=isNaN(H)?0:G-H,ft=isNaN(P)?0:at-P),F.type&(L.CURVE_TO|L.SMOOTH_CURVE_TO)?(H=F.relative?G+F.x2:F.x2,P=F.relative?at+F.y2:F.y2):(H=NaN,P=NaN),F.type&L.SMOOTH_QUAD_TO?(N=isNaN(N)?G:2*G-N,Y=isNaN(Y)?at:2*at-Y):F.type&L.QUAD_TO?(N=F.relative?G+F.x1:F.x1,Y=F.relative?at+F.y1:F.y2):(N=NaN,Y=NaN),F.type&L.LINE_COMMANDS||F.type&L.ARC&&(F.rX===0||F.rY===0||!F.lArcFlag)||F.type&L.CURVE_TO||F.type&L.SMOOTH_CURVE_TO||F.type&L.QUAD_TO||F.type&L.SMOOTH_QUAD_TO){var Pt=F.x===void 0?0:F.relative?F.x:F.x-G,xt=F.y===void 0?0:F.relative?F.y:F.y-at;lt=isNaN(N)?F.x1===void 0?lt:F.relative?F.x:F.x1-G:N-G,ft=isNaN(Y)?F.y1===void 0?ft:F.relative?F.y:F.y1-at:Y-at;var gt=F.x2===void 0?0:F.relative?F.x:F.x2-G,Dt=F.y2===void 0?0:F.relative?F.y:F.y2-at;ot(Pt)<=O&&ot(xt)<=O&&ot(lt)<=O&&ot(ft)<=O&&ot(gt)<=O&&ot(Dt)<=O&&(dt=!0)}return F.type&L.CLOSE_PATH&&ot(G-q)<=O&&ot(at-it)<=O&&(dt=!0),dt?[]:F})},M.MATRIX=tt,M.ROTATE=function(O,H,P){H===void 0&&(H=0),P===void 0&&(P=0),y(O,H,P);var N=Math.sin(O),Y=Math.cos(O);return tt(Y,N,-N,Y,H-H*Y+P*N,P-H*N-P*Y)},M.TRANSLATE=function(O,H){return H===void 0&&(H=0),y(O,H),tt(1,0,0,1,O,H)},M.SCALE=function(O,H){return H===void 0&&(H=O),y(O,H),tt(O,0,0,H,0,0)},M.SKEW_X=function(O){return y(O),tt(1,0,Math.atan(O),1,0,0)},M.SKEW_Y=function(O){return y(O),tt(1,Math.atan(O),0,1,0,0)},M.X_AXIS_SYMMETRY=function(O){return O===void 0&&(O=0),y(O),tt(-1,0,0,1,O,0)},M.Y_AXIS_SYMMETRY=function(O){return O===void 0&&(O=0),y(O),tt(1,0,0,-1,0,O)},M.A_TO_C=function(){return J(function(O,H,P){return L.ARC===O.type?function(N,Y,F){var G,at,q,it;N.cX||D(N,Y,F);for(var ot=Math.min(N.phi1,N.phi2),dt=Math.max(N.phi1,N.phi2)-ot,lt=Math.ceil(dt/90),ft=new Array(lt),Pt=Y,xt=F,gt=0;gtY.maxX&&(Y.maxX=St),StY.maxY&&(Y.maxY=St),StAt&&it(U(G,q.x1,q.x2,q.x,At));for(var ft=0,Pt=W(at,q.y1,q.y2,q.y);ftAt&&ot(U(at,q.y1,q.y2,q.y,At))}if(q.type&L.ARC){it(q.x),ot(q.y),D(q,G,at);for(var xt=q.xRot/180*Math.PI,gt=Math.cos(xt)*q.rX,Dt=Math.sin(xt)*q.rX,Rt=-Math.sin(xt)*q.rY,Ut=Math.cos(xt)*q.rY,Tt=q.phi1q.phi2?[q.phi2+360,q.phi1+360]:[q.phi2,q.phi1],Ct=Tt[0],Ft=Tt[1],Nt=function(Ot){var Ht=Ot[0],qt=Ot[1],Gt=180*Math.atan2(qt,Ht)/Math.PI;return GtCt&&AtCt&&AtN)throw new SyntaxError('Expected positive number, got "'+N+'" at index "'+X+'"')}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 "'+X+'"')}this.curArgs.push(N),this.curArgs.length===nt[this.curCommandType]&&(L.HORIZ_LINE_TO===this.curCommandType?tt({type:L.HORIZ_LINE_TO,relative:this.curCommandRelative,x:N}):L.VERT_LINE_TO===this.curCommandType?tt({type:L.VERT_LINE_TO,relative:this.curCommandRelative,y:N}):this.curCommandType===L.MOVE_TO||this.curCommandType===L.LINE_TO||this.curCommandType===L.SMOOTH_QUAD_TO?(tt({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),L.MOVE_TO===this.curCommandType&&(this.curCommandType=L.LINE_TO)):this.curCommandType===L.CURVE_TO?tt({type:L.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===L.SMOOTH_CURVE_TO?tt({type:L.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===L.QUAD_TO?tt({type:L.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===L.ARC&&tt({type:L.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(!K(O))if(O===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(O!=="+"&&O!=="-"&&O!==".")if(P)this.curNumber=O,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+X+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+O+'" at index '+X+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,O!=="z"&&O!=="Z")if(O==="h"||O==="H")this.curCommandType=L.HORIZ_LINE_TO,this.curCommandRelative=O==="h";else if(O==="v"||O==="V")this.curCommandType=L.VERT_LINE_TO,this.curCommandRelative=O==="v";else if(O==="m"||O==="M")this.curCommandType=L.MOVE_TO,this.curCommandRelative=O==="m";else if(O==="l"||O==="L")this.curCommandType=L.LINE_TO,this.curCommandRelative=O==="l";else if(O==="c"||O==="C")this.curCommandType=L.CURVE_TO,this.curCommandRelative=O==="c";else if(O==="s"||O==="S")this.curCommandType=L.SMOOTH_CURVE_TO,this.curCommandRelative=O==="s";else if(O==="q"||O==="Q")this.curCommandType=L.QUAD_TO,this.curCommandRelative=O==="q";else if(O==="t"||O==="T")this.curCommandType=L.SMOOTH_QUAD_TO,this.curCommandRelative=O==="t";else{if(O!=="a"&&O!=="A")throw new SyntaxError('Unexpected character "'+O+'" at index '+X+".");this.curCommandType=L.ARC,this.curCommandRelative=O==="a"}else j.push({type:L.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=O,this.curNumberHasDecimal=O==="."}else this.curNumber+=O,this.curNumberHasDecimal=!0;else this.curNumber+=O;else this.curNumber+=O,this.curNumberHasExp=!0;else this.curNumber+=O,this.curNumberHasExpDigits=this.curNumberHasExp}return j},R.prototype.transform=function(V){return Object.create(this,{parse:{value:function(J,tt){tt===void 0&&(tt=[]);for(var X=0,O=Object.getPrototypeOf(this).parse.call(this,J);X=0:z>k;k+=K)k in U&&(I=S(I,U[k],k,W));return I}};m.exports={left:D(!1),right:D(!0)}},"1tal":function(m,E,e){var u=e("2oRo"),h=u.TypeError;m.exports=function(d,p){if(d=U.length?(W.target=void 0,{value:void 0,done:!0}):z=="keys"?{value:k,done:!1}:z=="values"?{value:U[k],done:!1}:{value:[k,U[k]],done:!1}},"values");var I=d.Arguments=d.Array;if(h("keys"),h("values"),h("entries"),!D&&T&&I.name!=="values")try{y(I,"name",{value:"values"})}catch(W){}},"4syw":function(m,E,e){var u=e("busE");m.exports=function(h,d,p){for(var y in d)u(h,y,d[y],p);return h}},"4zBA":function(m,E,e){var u=e("QNWe"),h=Function.prototype,d=h.bind,p=h.call,y=u&&d.bind(p,p);m.exports=u?function(A){return A&&y(A)}:function(A){return A&&function(){return p.apply(A,arguments)}}},"5mdu":function(m,E){m.exports=function(e){try{return{error:!1,value:e()}}catch(u){return{error:!0,value:u}}}},"5s+n":function(m,E,e){"use strict";var u=e("I+eb"),h=e("xDBR"),d=e("2oRo"),p=e("0GbY"),y=e("xluM"),A=e("/qmn"),D=e("busE"),T=e("4syw"),x=e("0rvr"),S=e("1E5z"),C=e("JiZb"),I=e("We1y"),W=e("Fib7"),U=e("hh1v"),z=e("GarU"),k=e("iSVu"),K=e("ImZN"),w=e("HH4o"),Q=e("SEBh"),L=e("LPSS").set,nt=e("tXUg"),M=e("zfnd"),R=e("RN6c"),V=e("8GlL"),j=e("5mdu"),J=e("AbTg"),tt=e("afO8"),X=e("lMq5"),O=e("tiKp"),H=e("YGnB"),P=e("YF1G"),N=e("LQDL"),Y=O("species"),F="Promise",G=tt.getterFor(F),at=tt.set,q=tt.getterFor(F),it=A&&A.prototype,ot=A,dt=it,lt=d.TypeError,ft=d.document,Pt=d.process,xt=V.f,gt=xt,Dt=!!(ft&&ft.createEvent&&d.dispatchEvent),Rt=W(d.PromiseRejectionEvent),Ut="unhandledrejection",Tt="rejectionhandled",Ct=0,Ft=1,Nt=2,Mt=1,Bt=2,Lt=!1,It,At,St,Ot,Ht=X(F,function(){var Z=k(ot),ut=Z!==String(ot);if(!ut&&N===66)return!0;if(h&&!dt.finally)return!0;if(N>=51&&/native code/.test(Z))return!1;var vt=new ot(function(wt){wt(1)}),mt=function(wt){wt(function(){},function(){})},bt=vt.constructor={};return bt[Y]=mt,Lt=vt.then(function(){})instanceof mt,Lt?!ut&&H&&!Rt:!0}),qt=Ht||!w(function(Z){ot.all(Z).catch(function(){})}),Gt=function(Z){var ut;return U(Z)&&W(ut=Z.then)?ut:!1},_t=function(Z,ut){var vt=ut.value,mt=ut.state==Ft,bt=mt?Z.ok:Z.fail,wt=Z.resolve,Jt=Z.reject,Kt=Z.domain,Xt,de,le;try{bt?(mt||(ut.rejection===Bt&&ae(ut),ut.rejection=Mt),bt===!0?Xt=vt:(Kt&&Kt.enter(),Xt=bt(vt),Kt&&(Kt.exit(),le=!0)),Xt===Z.promise?Jt(lt("Promise-chain cycle")):(de=Gt(Xt))?y(de,Xt,wt,Jt):wt(Xt)):Jt(vt)}catch(ge){Kt&&!le&&Kt.exit(),Jt(ge)}},oe=function(Z,ut){if(Z.notified)return;Z.notified=!0,nt(function(){for(var vt=Z.reactions,mt;mt=vt.get();)_t(mt,Z);Z.notified=!1,ut&&!Z.rejection&&ve(Z)})},se=function(Z,ut,vt){var mt,bt;Dt?(mt=ft.createEvent("Event"),mt.promise=ut,mt.reason=vt,mt.initEvent(Z,!1,!0),d.dispatchEvent(mt)):mt={promise:ut,reason:vt},!Rt&&(bt=d["on"+Z])?bt(mt):Z===Ut&&R("Unhandled promise rejection",vt)},ve=function(Z){y(L,d,function(){var ut=Z.facade,vt=Z.value,mt=pe(Z),bt;if(mt&&(bt=j(function(){P?Pt.emit("unhandledRejection",vt,ut):se(Ut,ut,vt)}),Z.rejection=P||pe(Z)?Bt:Mt,bt.error))throw bt.value})},pe=function(Z){return Z.rejection!==Mt&&!Z.parent},ae=function(Z){y(L,d,function(){var ut=Z.facade;P?Pt.emit("rejectionHandled",ut):se(Tt,ut,Z.value)})},ee=function(Z,ut,vt){return function(mt){Z(ut,mt,vt)}},re=function(Z,ut,vt){if(Z.done)return;Z.done=!0,vt&&(Z=vt),Z.value=ut,Z.state=Nt,oe(Z,!0)},$t=function(Z,ut,vt){if(Z.done)return;Z.done=!0,vt&&(Z=vt);try{if(Z.facade===ut)throw lt("Promise can't be resolved itself");var mt=Gt(ut);mt?nt(function(){var bt={done:!1};try{y(mt,ut,ee($t,bt,Z),ee(re,bt,Z))}catch(wt){re(bt,wt,Z)}}):(Z.value=ut,Z.state=Ft,oe(Z,!1))}catch(bt){re({done:!1},bt,Z)}};if(Ht&&(ot=function(ut){z(this,dt),I(ut),y(It,this);var vt=G(this);try{ut(ee($t,vt),ee(re,vt))}catch(mt){re(vt,mt)}},dt=ot.prototype,It=function(ut){at(this,{type:F,done:!1,notified:!1,parent:!1,reactions:new J,rejection:!1,state:Ct,value:void 0})},It.prototype=T(dt,{then:function(ut,vt){var mt=q(this),bt=xt(Q(this,ot));return mt.parent=!0,bt.ok=W(ut)?ut:!0,bt.fail=W(vt)&&vt,bt.domain=P?Pt.domain:void 0,mt.state==Ct?mt.reactions.add(bt):nt(function(){_t(bt,mt)}),bt.promise},catch:function(Z){return this.then(void 0,Z)}}),At=function(){var Z=new It,ut=G(Z);this.promise=Z,this.resolve=ee($t,ut),this.reject=ee(re,ut)},V.f=xt=function(Z){return Z===ot||Z===St?new At(Z):gt(Z)},!h&&W(A)&&it!==Object.prototype)){Ot=it.then,Lt||(D(it,"then",function(ut,vt){var mt=this;return new ot(function(bt,wt){y(Ot,mt,bt,wt)}).then(ut,vt)},{unsafe:!0}),D(it,"catch",dt.catch,{unsafe:!0}));try{delete it.constructor}catch(Z){}x&&x(it,dt)}u({global:!0,wrap:!0,forced:Ht},{Promise:ot}),S(ot,F,!1,!0),C(F),St=p(F),u({target:F,stat:!0,forced:Ht},{reject:function(ut){var vt=xt(this);return y(vt.reject,void 0,ut),vt.promise}}),u({target:F,stat:!0,forced:h||Ht},{resolve:function(ut){return M(h&&this===St?ot:this,ut)}}),u({target:F,stat:!0,forced:qt},{all:function(ut){var vt=this,mt=xt(vt),bt=mt.resolve,wt=mt.reject,Jt=j(function(){var Kt=I(vt.resolve),Xt=[],de=0,le=1;K(ut,function(ge){var ct=de++,ye=!1;le++,y(Kt,vt,ge).then(function(Wt){if(ye)return;ye=!0,Xt[ct]=Wt,--le||bt(Xt)},wt)}),--le||bt(Xt)});return Jt.error&&wt(Jt.value),mt.promise},race:function(ut){var vt=this,mt=xt(vt),bt=mt.reject,wt=j(function(){var Jt=I(vt.resolve);K(ut,function(Kt){y(Jt,vt,Kt).then(mt.resolve,bt)})});return wt.error&&bt(wt.value),mt.promise}})},"6JNq":function(m,E,e){var u=e("Gi26"),h=e("Vu81"),d=e("Bs8V"),p=e("m/L8");m.exports=function(y,A,D){for(var T=h(A),x=p.f,S=d.f,C=0;C]*>)/g,T=/\$([$&'`]|\d{1,2})/g;m.exports=function(x,S,C,I,W,U){var z=C+x.length,k=I.length,K=T;return W!==void 0&&(W=h(W),K=D),y(U,K,function(w,Q){var L;switch(p(Q,0)){case"$":return"$";case"&":return x;case"`":return A(S,0,C);case"'":return A(S,z);case"<":L=W[A(Q,1,-1)];break;default:var nt=+Q;if(nt===0)return w;if(nt>k){var M=d(nt/10);return M===0?w:M<=k?I[M-1]===void 0?p(Q,1):I[M-1]+p(Q,1):w}L=I[nt-1]}return L===void 0?"":L})}},DPsx:function(m,E,e){var u=e("g6v/"),h=e("0Dky"),d=e("zBJ4");m.exports=!u&&!h(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},DVFp:function(m,E,e){var u=e("2oRo"),h=u.String;m.exports=function(d){try{return h(d)}catch(p){return"Object"}}},DXPr:function(m,E,e){"use strict";e.r(E),function(u){e.d(E,"AElement",function(){return xr}),e.d(E,"AnimateColorElement",function(){return vr}),e.d(E,"AnimateElement",function(){return De}),e.d(E,"AnimateTransformElement",function(){return dr}),e.d(E,"BoundingBox",function(){return fe}),e.d(E,"CB1",function(){return wt}),e.d(E,"CB2",function(){return Jt}),e.d(E,"CB3",function(){return Kt}),e.d(E,"CB4",function(){return Xt}),e.d(E,"Canvg",function(){return Vr}),e.d(E,"CircleElement",function(){return nr}),e.d(E,"ClipPathElement",function(){return Ar}),e.d(E,"DefsElement",function(){return ur}),e.d(E,"DescElement",function(){return Dr}),e.d(E,"Document",function(){return Ie}),e.d(E,"Element",function(){return zt}),e.d(E,"EllipseElement",function(){return ar}),e.d(E,"FeColorMatrixElement",function(){return Ke}),e.d(E,"FeCompositeElement",function(){return Ir}),e.d(E,"FeDropShadowElement",function(){return Cr}),e.d(E,"FeGaussianBlurElement",function(){return Nr}),e.d(E,"FeMorphologyElement",function(){return Mr}),e.d(E,"FilterElement",function(){return Qe}),e.d(E,"Font",function(){return me}),e.d(E,"FontElement",function(){return gr}),e.d(E,"FontFaceElement",function(){return pr}),e.d(E,"GElement",function(){return je}),e.d(E,"GlyphElement",function(){return Ge}),e.d(E,"GradientElement",function(){return ke}),e.d(E,"ImageElement",function(){return Or}),e.d(E,"LineElement",function(){return ir}),e.d(E,"LinearGradientElement",function(){return fr}),e.d(E,"MarkerElement",function(){return lr}),e.d(E,"MaskElement",function(){return Xe}),e.d(E,"Matrix",function(){return Fe}),e.d(E,"MissingGlyphElement",function(){return mr}),e.d(E,"Mouse",function(){return Oe}),e.d(E,"PSEUDO_ZERO",function(){return ut}),e.d(E,"Parser",function(){return Ne}),e.d(E,"PathElement",function(){return Qt}),e.d(E,"PathParser",function(){return Et}),e.d(E,"PatternElement",function(){return sr}),e.d(E,"Point",function(){return Wt}),e.d(E,"PolygonElement",function(){return or}),e.d(E,"PolylineElement",function(){return Ye}),e.d(E,"Property",function(){return ct}),e.d(E,"QB1",function(){return de}),e.d(E,"QB2",function(){return le}),e.d(E,"QB3",function(){return ge}),e.d(E,"RadialGradientElement",function(){return hr}),e.d(E,"RectElement",function(){return He}),e.d(E,"RenderedElement",function(){return Ee}),e.d(E,"Rotate",function(){return qe}),e.d(E,"SVGElement",function(){return Ae}),e.d(E,"SVGFontLoader",function(){return Tr}),e.d(E,"Scale",function(){return _e}),e.d(E,"Screen",function(){return Yt}),e.d(E,"Skew",function(){return We}),e.d(E,"SkewX",function(){return tr}),e.d(E,"SkewY",function(){return er}),e.d(E,"StopElement",function(){return cr}),e.d(E,"StyleElement",function(){return $e}),e.d(E,"SymbolElement",function(){return Pr}),e.d(E,"TRefElement",function(){return yr}),e.d(E,"TSpanElement",function(){return ze}),e.d(E,"TextElement",function(){return Re}),e.d(E,"TextPathElement",function(){return br}),e.d(E,"TitleElement",function(){return jr}),e.d(E,"Transform",function(){return Me}),e.d(E,"Translate",function(){return Ze}),e.d(E,"UnknownElement",function(){return rr}),e.d(E,"UseElement",function(){return Sr}),e.d(E,"ViewPort",function(){return ye}),e.d(E,"compressSpaces",function(){return It}),e.d(E,"getSelectorSpecificity",function(){return Z}),e.d(E,"normalizeAttributeName",function(){return qt}),e.d(E,"normalizeColor",function(){return _t}),e.d(E,"parseExternalUrl",function(){return Gt}),e.d(E,"presets",function(){return Lt}),e.d(E,"toNumbers",function(){return Ot}),e.d(E,"trimLeft",function(){return At}),e.d(E,"trimRight",function(){return St}),e.d(E,"vectorMagnitude",function(){return vt}),e.d(E,"vectorsAngle",function(){return bt}),e.d(E,"vectorsRatio",function(){return mt});var h=e("Nsem"),d=e("rAM+"),p=e("tS8v"),y=e("w4Tj"),A=e("oZsa"),D=e("oBTY"),T=e("yKVA"),x=e("879j"),S=e("fWQN"),C=e("mtLc"),I=e("tJVT"),W=e("WmNS"),U=e.n(W),z=e("5s+n"),k=e.n(z),K=e("yXPU"),w=e.n(K),Q=e("Rm1S"),L=e.n(Q),nt=e("UxlC"),M=e.n(nt),R=e("LKBx"),V=e.n(R),j=e("4mDm"),J=e.n(j),tt=e("3bBZ"),X=e.n(tt),O=e("lSNA"),H=e.n(O),P=e("E9XD"),N=e.n(P),Y=e("inlA"),F=e.n(Y),G=e("EnZy"),at=e.n(G),q=e("xEkU"),it=e.n(q),ot=e("SYor"),dt=e.n(ot),lt=e("WOGj"),ft=e.n(lt),Pt=e("JTJg"),xt=e.n(Pt),gt=e("yXV3"),Dt=e.n(gt),Rt=e("Junv"),Ut=e.n(Rt),Tt=e("0B/8"),Ct=e("JfAA"),Ft=e.n(Ct),Nt=e("Xp4B");function Mt(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=v.DOMParser,n={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:f,createCanvas:function(t,i){return new OffscreenCanvas(t,i)},createImage:function(t){return w()(U.a.mark(function i(){var r,o,s;return U.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,fetch(t);case 2:return r=c.sent,c.next=5,r.blob();case 5:return o=c.sent,c.next=8,createImageBitmap(o);case 8:return s=c.sent,c.abrupt("return",s);case 10:case"end":return c.stop()}},i)}))()}};return(typeof DOMParser!="undefined"||typeof f=="undefined")&&Reflect.deleteProperty(n,"DOMParser"),n}function Bt(v){var f=v.DOMParser,n=v.canvas,a=v.fetch;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:f,fetch:a,createCanvas:n.createCanvas,createImage:n.loadImage}}var Lt=Object.freeze({__proto__:null,offscreen:Mt,node:Bt});function It(v){return v.replace(/(?!\u3000)\s+/gm," ")}function At(v){return v.replace(/^[\n \t]+/,"")}function St(v){return v.replace(/[\n \t]+$/,"")}function Ot(v){var f=(v||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return f.map(parseFloat)}var Ht=/^[A-Z-]+$/;function qt(v){return Ht.test(v)?v.toLowerCase():v}function Gt(v){var f=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(v)||[];return f[2]||f[3]||f[4]}function _t(v){if(!v.startsWith("rgb"))return v;var f=3,n=v.replace(/\d+(\.\d+)?/g,function(a,t){return f--&&t?String(Math.round(parseFloat(a))):a});return n}var oe=/(\[[^\]]+\])/g,se=/(#[^\s+>~.[:]+)/g,ve=/(\.[^\s+>~.[:]+)/g,pe=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,ae=/(:[\w-]+\([^)]*\))/gi,ee=/(:[^\s+>~.[:]+)/g,re=/([^\s+>~.[:]+)/g;function $t(v,f){var n=f.exec(v);return n?[v.replace(f," "),n.length]:[v,0]}function Z(v){var f=[0,0,0],n=v.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,t=$t(n,oe),i=Object(I.a)(t,2);n=i[0],a=i[1],f[1]+=a;var r=$t(n,se),o=Object(I.a)(r,2);n=o[0],a=o[1],f[0]+=a;var s=$t(n,ve),l=Object(I.a)(s,2);n=l[0],a=l[1],f[1]+=a;var c=$t(n,pe),g=Object(I.a)(c,2);n=g[0],a=g[1],f[2]+=a;var b=$t(n,ae),B=Object(I.a)(b,2);n=B[0],a=B[1],f[1]+=a;var $=$t(n,ee),_=Object(I.a)($,2);n=_[0],a=_[1],f[1]+=a,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," ");var rt=$t(n,re),et=Object(I.a)(rt,2);return n=et[0],a=et[1],f[2]+=a,f.join("")}var ut=1e-8;function vt(v){return Math.sqrt(Math.pow(v[0],2)+Math.pow(v[1],2))}function mt(v,f){return(v[0]*f[0]+v[1]*f[1])/(vt(v)*vt(f))}function bt(v,f){return(v[0]*f[1]0&&arguments[0]!==void 0?arguments[0]:" ",a=this.document,t=this.name;return It(this.getString()).trim().split(n).map(function(i){return new v(a,t,i)})}},{key:"hasValue",value:function(n){var a=this.value;return a!==null&&a!==""&&(n||a!==0)&&typeof a!="undefined"}},{key:"isString",value:function(n){var a=this.value,t=typeof a=="string";return!t||!n?t:n.test(a)}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var n=this.getString();switch(!0){case n.endsWith("px"):case/^[0-9]+$/.test(n):return!0;default:return!1}}},{key:"setValue",value:function(n){return this.value=n,this}},{key:"getValue",value:function(n){return typeof n=="undefined"||this.hasValue()?this.value:n}},{key:"getNumber",value:function(n){if(!this.hasValue())return typeof n=="undefined"?0:parseFloat(n);var a=this.value,t=parseFloat(a);return this.isString(/%$/)&&(t/=100),t}},{key:"getString",value:function(n){return typeof n=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(n)}},{key:"getColor",value:function(n){var a=this.getString(n);return this.isNormalizedColor||(this.isNormalizedColor=!0,a=_t(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(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var t=typeof n=="boolean"?[void 0,n]:[n],i=Object(I.a)(t,2),r=i[0],o=i[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(/%$/)&&o):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(r);default:{var l=this.getNumber();return a&&l<1?l*s.computeSize(r):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 n=this.getString(),a=/#([^)'"]+)/.exec(n);return a&&(a=a[1]),a||(a=n),this.document.definitions[a]}},{key:"getFillStyleDefinition",value:function(n,a){var t=this.getDefinition();if(!t)return null;if(typeof t.createGradient=="function")return t.createGradient(this.document.ctx,n,a);if(typeof t.createPattern=="function"){if(t.getHrefAttribute().hasValue()){var i=t.getAttribute("patternTransform");t=t.getHrefAttribute().getDefinition(),i.hasValue()&&t.getAttribute("patternTransform",!0).setValue(i.value)}return t.createPattern(this.document.ctx,n,a)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?v.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(n){for(var a=this.getColor(),t=a.length,i=0,r=0;r1&&arguments[1]!==void 0?arguments[1]:0,t=Ot(n),i=Object(I.a)(t,2),r=i[0],o=r===void 0?a:r,s=i[1],l=s===void 0?a:s;return new v(o,l)}},{key:"parseScale",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,t=Ot(n),i=Object(I.a)(t,2),r=i[0],o=r===void 0?a:r,s=i[1],l=s===void 0?o:s;return new v(o,l)}},{key:"parsePath",value:function(n){for(var a=Ot(n),t=a.length,i=[],r=0;r0}},{key:"runEvents",value:function(){if(!this.working)return;var n=this.screen,a=this.events,t=this.eventElements,i=n.ctx.canvas.style;i&&(i.cursor=""),a.forEach(function(r,o){for(var s=r.run,l=t[o];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}},{key:"checkPath",value:function(n,a){if(!this.working||!a)return;var t=this.events,i=this.eventElements;t.forEach(function(r,o){var s=r.x,l=r.y;!i[o]&&a.isPointInPath&&a.isPointInPath(s,l)&&(i[o]=n)})}},{key:"checkBoundingBox",value:function(n,a){if(!this.working||!a)return;var t=this.events,i=this.eventElements;t.forEach(function(r,o){var s=r.x,l=r.y;!i[o]&&a.isPointInBox(s,l)&&(i[o]=n)})}},{key:"mapXY",value:function(n,a){for(var t=this.screen,i=t.window,r=t.ctx,o=new Wt(n,a),s=r.canvas;s;)o.x-=s.offsetLeft,o.y-=s.offsetTop,s=s.offsetParent;return i.scrollX&&(o.x+=i.scrollX),i.scrollY&&(o.y+=i.scrollY),o}},{key:"onClick",value:function(n){var a=this.mapXY(n.clientX,n.clientY),t=a.x,i=a.y;this.events.push({type:"onclick",x:t,y:i,run:function(o){o.onClick&&o.onClick()}})}},{key:"onMouseMove",value:function(n){var a=this.mapXY(n.clientX,n.clientY),t=a.x,i=a.y;this.events.push({type:"onmousemove",x:t,y:i,run:function(o){o.onMouseMove&&o.onMouseMove()}})}}]),v}(),Pe=typeof window!="undefined"?window:null,Se=typeof fetch!="undefined"?fetch.bind(void 0):null,Yt=function(){function v(f){Object(S.a)(this,v);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.fetch,t=a===void 0?Se:a,i=n.window,r=i===void 0?Pe:i;this.ctx=f,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new ye,this.mouse=new Oe(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}return Object(C.a)(v,[{key:"wait",value:function(n){this.waits.push(n)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var n=this.waits.every(function(a){return a()});return n&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=n,n}},{key:"setDefaults",value:function(n){n.strokeStyle="rgba(0,0,0,0)",n.lineCap="butt",n.lineJoin="miter",n.miterLimit=4}},{key:"setViewBox",value:function(n){var a=n.document,t=n.ctx,i=n.aspectRatio,r=n.width,o=n.desiredWidth,s=n.height,l=n.desiredHeight,c=n.minX,g=c===void 0?0:c,b=n.minY,B=b===void 0?0:b,$=n.refX,_=n.refY,rt=n.clip,et=rt===void 0?!1:rt,yt=n.clipX,ht=yt===void 0?0:yt,st=n.clipY,pt=st===void 0?0:st,jt=It(i).replace(/^defer\s/,""),Vt=jt.split(" "),Zt=Object(I.a)(Vt,2),he=Zt[0],ce=Zt[1],ie=he||"xMidYMid",ne=ce||"meet",ue=r/o,be=s/l,te=Math.min(ue,be),Ce=Math.max(ue,be),Be=o,we=l;ne==="meet"&&(Be*=te,we*=te),ne==="slice"&&(Be*=Ce,we*=Ce);var Br=new ct(a,"refX",$),wr=new ct(a,"refY",_),Fr=Br.hasValue()&&wr.hasValue();if(Fr&&t.translate(-te*Br.getPixels("x"),-te*wr.getPixels("y")),et){var Wr=te*ht,Gr=te*pt;t.beginPath(),t.moveTo(Wr,Gr),t.lineTo(r,Gr),t.lineTo(r,s),t.lineTo(Wr,s),t.closePath(),t.clip()}if(!Fr){var zr=ne==="meet"&&te===be,Hr=ne==="slice"&&Ce===be,Yr=ne==="meet"&&te===ue,kr=ne==="slice"&&Ce===ue;ie.startsWith("xMid")&&(zr||Hr)&&t.translate(r/2-Be/2,0),ie.endsWith("YMid")&&(Yr||kr)&&t.translate(0,s/2-we/2),ie.startsWith("xMax")&&(zr||Hr)&&t.translate(r-Be,0),ie.endsWith("YMax")&&(Yr||kr)&&t.translate(0,s-we)}switch(!0){case ie==="none":t.scale(ue,be);break;case ne==="meet":t.scale(te,te);break;case ne==="slice":t.scale(Ce,Ce);break}t.translate(-g,-B)}},{key:"start",value:function(n){var a=this,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.enableRedraw,r=i===void 0?!1:i,o=t.ignoreMouse,s=o===void 0?!1:o,l=t.ignoreAnimation,c=l===void 0?!1:l,g=t.ignoreDimensions,b=g===void 0?!1:g,B=t.ignoreClear,$=B===void 0?!1:B,_=t.forceRedraw,rt=t.scaleWidth,et=t.scaleHeight,yt=t.offsetX,ht=t.offsetY,st=this.FRAMERATE,pt=this.mouse,jt=1e3/st;if(this.frameDuration=jt,this.readyPromise=new Promise(function(ie){a.resolveReady=ie}),this.isReady()&&this.render(n,b,$,rt,et,yt,ht),!r)return;var Vt=Date.now(),Zt=Vt,he=0,ce=function ie(){Vt=Date.now(),he=Vt-Zt,he>=jt&&(Zt=Vt-he%jt,a.shouldUpdate(c,_)&&(a.render(n,b,$,rt,et,yt,ht),pt.runEvents())),a.intervalId=it()(ie)};s||pt.start(),this.intervalId=it()(ce)}},{key:"stop",value:function(){this.intervalId&&(it.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(n,a){if(!n){var t=this.frameDuration,i=this.animations.reduce(function(r,o){return o.update(t)||r},!1);if(i)return!0}return typeof a=="function"&&a()||!this.isReadyLock&&this.isReady()?!0:!!this.mouse.hasEvents()}},{key:"render",value:function(n,a,t,i,r,o,s){var l=this.CLIENT_WIDTH,c=this.CLIENT_HEIGHT,g=this.viewPort,b=this.ctx,B=this.isFirstRender,$=b.canvas;g.clear(),$.width&&$.height?g.setCurrent($.width,$.height):g.setCurrent(l,c);var _=n.getStyle("width"),rt=n.getStyle("height");!a&&(B||typeof i!="number"&&typeof r!="number")&&(_.hasValue()&&($.width=_.getPixels("x"),$.style&&($.style.width="".concat($.width,"px"))),rt.hasValue()&&($.height=rt.getPixels("y"),$.style&&($.style.height="".concat($.height,"px"))));var et=$.clientWidth||$.width,yt=$.clientHeight||$.height;if(a&&_.hasValue()&&rt.hasValue()&&(et=_.getPixels("x"),yt=rt.getPixels("y")),g.setCurrent(et,yt),typeof o=="number"&&n.getAttribute("x",!0).setValue(o),typeof s=="number"&&n.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof r=="number"){var ht=Ot(n.getAttribute("viewBox").getString()),st=0,pt=0;if(typeof i=="number"){var jt=n.getStyle("width");jt.hasValue()?st=jt.getPixels("x")/i:isNaN(ht[2])||(st=ht[2]/i)}if(typeof r=="number"){var Vt=n.getStyle("height");Vt.hasValue()?pt=Vt.getPixels("y")/r:isNaN(ht[3])||(pt=ht[3]/r)}st||(st=pt),pt||(pt=st),n.getAttribute("width",!0).setValue(i),n.getAttribute("height",!0).setValue(r);var Zt=n.getStyle("transform",!0,!0);Zt.setValue("".concat(Zt.getString()," scale(").concat(1/st,", ").concat(1/pt,")"))}t||b.clearRect(0,0,et,yt),n.render(b),B&&(this.isFirstRender=!1)}}]),v}();Yt.defaultWindow=Pe,Yt.defaultFetch=Se;var $r=Yt.defaultFetch,Kr=typeof DOMParser!="undefined"?DOMParser:null,Ne=function(){function v(){Object(S.a)(this,v);var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=f.fetch,a=n===void 0?$r:n,t=f.DOMParser,i=t===void 0?Kr:t;this.fetch=a,this.DOMParser=i}return Object(C.a)(v,[{key:"parse",value:function(n){var a=this;return w()(U.a.mark(function t(){return U.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!n.startsWith("<")){r.next=2;break}return r.abrupt("return",a.parseFromString(n));case 2:return r.abrupt("return",a.load(n));case 3:case"end":return r.stop()}},t)}))()}},{key:"parseFromString",value:function(n){var a=new this.DOMParser;try{return this.checkDocument(a.parseFromString(n,"image/svg+xml"))}catch(t){return this.checkDocument(a.parseFromString(n,"text/xml"))}}},{key:"checkDocument",value:function(n){var a=n.getElementsByTagName("parsererror")[0];if(a)throw new Error(a.textContent);return n}},{key:"load",value:function(n){var a=this;return w()(U.a.mark(function t(){var i,r;return U.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,a.fetch(n);case 2:return i=s.sent,s.next=5,i.text();case 5:return r=s.sent,s.abrupt("return",a.parseFromString(r));case 7:case"end":return s.stop()}},t)}))()}}]),v}(),Ze=function(){function v(f,n){Object(S.a)(this,v),this.type="translate",this.point=null,this.point=Wt.parse(n)}return Object(C.a)(v,[{key:"apply",value:function(n){var a=this.point,t=a.x,i=a.y;n.translate(t||0,i||0)}},{key:"unapply",value:function(n){var a=this.point,t=a.x,i=a.y;n.translate(-1*t||0,-1*i||0)}},{key:"applyToPoint",value:function(n){var a=this.point,t=a.x,i=a.y;n.applyTransform([1,0,0,1,t||0,i||0])}}]),v}(),qe=function(){function v(f,n,a){Object(S.a)(this,v),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var t=Ot(n);this.angle=new ct(f,"angle",t[0]),this.originX=a[0],this.originY=a[1],this.cx=t[1]||0,this.cy=t[2]||0}return Object(C.a)(v,[{key:"apply",value:function(n){var a=this.cx,t=this.cy,i=this.originX,r=this.originY,o=this.angle,s=a+i.getPixels("x"),l=t+r.getPixels("y");n.translate(s,l),n.rotate(o.getRadians()),n.translate(-s,-l)}},{key:"unapply",value:function(n){var a=this.cx,t=this.cy,i=this.originX,r=this.originY,o=this.angle,s=a+i.getPixels("x"),l=t+r.getPixels("y");n.translate(s,l),n.rotate(-1*o.getRadians()),n.translate(-s,-l)}},{key:"applyToPoint",value:function(n){var a=this.cx,t=this.cy,i=this.angle,r=i.getRadians();n.applyTransform([1,0,0,1,a||0,t||0]),n.applyTransform([Math.cos(r),Math.sin(r),-Math.sin(r),Math.cos(r),0,0]),n.applyTransform([1,0,0,1,-a||0,-t||0])}}]),v}(),_e=function(){function v(f,n,a){Object(S.a)(this,v),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var t=Wt.parseScale(n);(t.x===0||t.y===0)&&(t.x=ut,t.y=ut),this.scale=t,this.originX=a[0],this.originY=a[1]}return Object(C.a)(v,[{key:"apply",value:function(n){var a=this.scale,t=a.x,i=a.y,r=this.originX,o=this.originY,s=r.getPixels("x"),l=o.getPixels("y");n.translate(s,l),n.scale(t,i||t),n.translate(-s,-l)}},{key:"unapply",value:function(n){var a=this.scale,t=a.x,i=a.y,r=this.originX,o=this.originY,s=r.getPixels("x"),l=o.getPixels("y");n.translate(s,l),n.scale(1/t,1/i||t),n.translate(-s,-l)}},{key:"applyToPoint",value:function(n){var a=this.scale,t=a.x,i=a.y;n.applyTransform([t||0,0,0,i||0,0,0])}}]),v}(),Fe=function(){function v(f,n,a){Object(S.a)(this,v),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Ot(n),this.originX=a[0],this.originY=a[1]}return Object(C.a)(v,[{key:"apply",value:function(n){var a=this.originX,t=this.originY,i=this.matrix,r=a.getPixels("x"),o=t.getPixels("y");n.translate(r,o),n.transform(i[0],i[1],i[2],i[3],i[4],i[5]),n.translate(-r,-o)}},{key:"unapply",value:function(n){var a=this.originX,t=this.originY,i=this.matrix,r=i[0],o=i[2],s=i[4],l=i[1],c=i[3],g=i[5],b=0,B=0,$=1,_=1/(r*(c*$-g*B)-o*(l*$-g*b)+s*(l*B-c*b)),rt=a.getPixels("x"),et=t.getPixels("y");n.translate(rt,et),n.transform(_*(c*$-g*B),_*(g*b-l*$),_*(s*B-o*$),_*(r*$-s*b),_*(o*g-s*c),_*(s*l-r*g)),n.translate(-rt,-et)}},{key:"applyToPoint",value:function(n){n.applyTransform(this.matrix)}}]),v}(),We=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;return Object(S.a)(this,n),r=f.call(this,a,t,i),r.type="skew",r.angle=null,r.angle=new ct(a,"angle",t),r}return n}(Fe),tr=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;return Object(S.a)(this,n),r=f.call(this,a,t,i),r.type="skewX",r.matrix=[1,0,Math.tan(r.angle.getRadians()),1,0,0],r}return n}(We),er=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;return Object(S.a)(this,n),r=f.call(this,a,t,i),r.type="skewY",r.matrix=[1,Math.tan(r.angle.getRadians()),0,1,0,0],r}return n}(We);function Xr(v){return It(v).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Qr(v){var f=v.split("("),n=Object(I.a)(f,2),a=n[0],t=n[1];return[a.trim(),t.trim().replace(")","")]}var Me=function(){function v(f,n,a){var t=this;Object(S.a)(this,v),this.document=f,this.transforms=[];var i=Xr(n);i.forEach(function(r){if(r==="none")return;var o=Qr(r),s=Object(I.a)(o,2),l=s[0],c=s[1],g=v.transformTypes[l];typeof g!="undefined"&&t.transforms.push(new g(t.document,c,a))})}return Object(C.a)(v,[{key:"apply",value:function(n){for(var a=this.transforms,t=a.length,i=0;i=0;i--)a[i].unapply(n)}},{key:"applyToPoint",value:function(n){for(var a=this.transforms,t=a.length,i=0;i2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=f,this.node=n,this.captureTextNodes=t,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!n||n.nodeType!==1)return;if(Array.from(n.attributes).forEach(function(s){var l=qt(s.nodeName);a.attributes[l]=new ct(f,l,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(function(s){return s.trim()});i.forEach(function(s){if(!s)return;var l=s.split(":").map(function(B){return B.trim()}),c=Object(I.a)(l,2),g=c[0],b=c[1];a.styles[g]=new ct(f,g,b)})}var r=f.definitions,o=this.getAttribute("id");o.hasValue()&&(r[o.getString()]||(r[o.getString()]=this)),Array.from(n.childNodes).forEach(function(s){if(s.nodeType===1)a.addChild(s);else if(t&&(s.nodeType===3||s.nodeType===4)){var l=f.createTextNode(s);l.getText().length>0&&a.addChild(l)}})}return Object(C.a)(v,[{key:"getAttribute",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=this.attributes[n];if(!t&&a){var i=new ct(this.document,n,"");return this.attributes[n]=i,i}return t||ct.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var n in this.attributes)if(n==="href"||n.endsWith(":href"))return this.attributes[n];return ct.empty(this.document)}},{key:"getStyle",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[n];if(i)return i;var r=this.getAttribute(n);if(r!=null&&r.hasValue())return this.styles[n]=r,r;if(!t){var o=this.parent;if(o){var s=o.getStyle(n);if(s!=null&&s.hasValue())return s}}if(a){var l=new ct(this.document,n,"");return this.styles[n]=l,l}return i||ct.empty(this.document)}},{key:"render",value:function(n){if(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")return;if(n.save(),this.getStyle("mask").hasValue()){var a=this.getStyle("mask").getDefinition();a&&(this.applyEffects(n),a.apply(n,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var t=this.getStyle("filter").getDefinition();t&&(this.applyEffects(n),t.apply(n,this))}else this.setContext(n),this.renderChildren(n),this.clearContext(n);n.restore()}},{key:"setContext",value:function(n){}},{key:"applyEffects",value:function(n){var a=Me.fromElement(this.document,this);a&&a.apply(n);var t=this.getStyle("clip-path",!1,!0);if(t.hasValue()){var i=t.getDefinition();i&&i.apply(n)}}},{key:"clearContext",value:function(n){}},{key:"renderChildren",value:function(n){this.children.forEach(function(a){a.render(n)})}},{key:"addChild",value:function(n){var a=n instanceof v?n:this.document.createElement(n);a.parent=this,v.ignoreChildTypes.includes(a.type)||this.children.push(a)}},{key:"matchesSelector",value:function(n){var a=this.node;if(typeof a.matches=="function")return a.matches(n);var t=a.getAttribute("class");return!t||t===""?!1:t.split(" ").some(function(i){return".".concat(i)===n})}},{key:"addStylesFromStyleDefinition",value:function(){var n=this.document,a=n.styles,t=n.stylesSpecificity;for(var i in a)if(!i.startsWith("@")&&this.matchesSelector(i)){var r=a[i],o=t[i];if(r)for(var s in r){var l=this.stylesSpecificity[s];typeof l=="undefined"&&(l="000"),o>=l&&(this.styles[s]=r[s],this.stylesSpecificity[s]=o)}}}},{key:"removeStyles",value:function(n,a){var t=a.reduce(function(i,r){var o=n.getStyle(r);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[].concat(Object(D.a)(i),[[r,s]])},[]);return t}},{key:"restoreStyles",value:function(n,a){a.forEach(function(t){var i=Object(I.a)(t,2),r=i[0],o=i[1];n.getStyle(r,!0).setValue(o)})}}]),v}();zt.ignoreChildTypes=["title"];var rr=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){return Object(S.a)(this,n),f.call(this,a,t,i)}return n}(zt);function Jr(v){var f=v.trim();return/^('|")/.test(f)?f:'"'.concat(f,'"')}function Zr(v){return typeof u=="undefined"?v:v.trim().split(",").map(Jr).join(",")}function qr(v){if(!v)return"";var f=v.trim().toLowerCase();switch(f){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return f;default:return/^oblique\s+(-|)\d+deg$/.test(f)?f:""}}function _r(v){if(!v)return"";var f=v.trim().toLowerCase();switch(f){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return f;default:return/^[\d.]+$/.test(f)?f:""}}var me=function(){function v(f,n,a,t,i,r){Object(S.a)(this,v);var o=r?typeof r=="string"?v.parse(r):r:{};this.fontFamily=i||o.fontFamily,this.fontSize=t||o.fontSize,this.fontStyle=f||o.fontStyle,this.fontWeight=a||o.fontWeight,this.fontVariant=n||o.fontVariant}return Object(C.a)(v,[{key:"toString",value:function(){return[qr(this.fontStyle),this.fontVariant,_r(this.fontWeight),this.fontSize,Zr(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,t="",i="",r="",o="",s="",l=It(n).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(function(g){switch(!0){case(!c.fontStyle&&v.styles.includes(g)):g!=="inherit"&&(t=g),c.fontStyle=!0;break;case(!c.fontVariant&&v.variants.includes(g)):g!=="inherit"&&(i=g),c.fontStyle=!0,c.fontVariant=!0;break;case(!c.fontWeight&&v.weights.includes(g)):g!=="inherit"&&(r=g),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:if(g!=="inherit"){var b=g.split("/"),B=Object(I.a)(b,1);o=B[0]}c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:g!=="inherit"&&(s+=g)}}),new v(t,i,r,o,s,a)}}]),v}();me.styles="normal|italic|oblique|inherit",me.variants="normal|small-caps|inherit",me.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var fe=function(){function v(){Object(S.a)(this,v);var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=f,this.y1=n,this.x2=a,this.y2=t,this.addPoint(f,n),this.addPoint(a,t)}return Object(C.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(n,a){typeof n!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=n,this.x2=n),nthis.x2&&(this.x2=n)),typeof a!="undefined"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=a,this.y2=a),athis.y2&&(this.y2=a))}},{key:"addX",value:function(n){this.addPoint(n,null)}},{key:"addY",value:function(n){this.addPoint(null,n)}},{key:"addBoundingBox",value:function(n){if(!n)return;var a=n.x1,t=n.y1,i=n.x2,r=n.y2;this.addPoint(a,t),this.addPoint(i,r)}},{key:"sumCubic",value:function(n,a,t,i,r){return Math.pow(1-n,3)*a+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*i+Math.pow(n,3)*r}},{key:"bezierCurveAdd",value:function(n,a,t,i,r){var o=6*a-12*t+6*i,s=-3*a+9*t-9*i+3*r,l=3*t-3*a;if(s===0){if(o===0)return;var c=-l/o;0=i.length-1}},{key:"next",value:function(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}},{key:"getPoint",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new Wt(this.command[t],this.command[i]);return this.makeAbsolute(r)}},{key:"getAsControlPoint",value:function(t,i){var r=this.getPoint(t,i);return this.control=r,r}},{key:"getAsCurrentPoint",value:function(t,i){var r=this.getPoint(t,i);return this.current=r,r}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.type;if(t!==Tt.a.CURVE_TO&&t!==Tt.a.SMOOTH_CURVE_TO&&t!==Tt.a.QUAD_TO&&t!==Tt.a.SMOOTH_QUAD_TO)return this.current;var i=this.current,r=i.x,o=i.y,s=this.control,l=s.x,c=s.y,g=new Wt(2*r-l,2*o-c);return g}},{key:"makeAbsolute",value:function(t){if(this.command.relative){var i=this.current,r=i.x,o=i.y;t.x+=r,t.y+=o}return t}},{key:"addMarker",value:function(t,i,r){var o=this.points,s=this.angles;r&&s.length>0&&!s[s.length-1]&&(s[s.length-1]=o[o.length-1].angleTo(r)),this.addMarkerAngle(t,i?i.angleTo(t):null)}},{key:"addMarkerAngle",value:function(t,i){this.points.push(t),this.angles.push(i)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var t=this.angles,i=t.length,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1;if(!i){var r=this.getStyle("fill"),o=this.getStyle("fill-opacity"),s=this.getStyle("stroke"),l=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var c=r.getFillStyleDefinition(this,o);c&&(t.fillStyle=c)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var g=r.getColor();g!=="inherit"&&(t.fillStyle=g==="none"?"rgba(0,0,0,0)":g)}if(o.hasValue()){var b=new ct(this.document,"fill",t.fillStyle).addOpacity(o).getColor();t.fillStyle=b}if(s.isUrlDefinition()){var B=s.getFillStyleDefinition(this,l);B&&(t.strokeStyle=B)}else if(s.hasValue()){s.getString()==="currentColor"&&s.setValue(this.getStyle("color").getColor());var $=s.getString();$!=="inherit"&&(t.strokeStyle=$==="none"?"rgba(0,0,0,0)":$)}if(l.hasValue()){var _=new ct(this.document,"stroke",t.strokeStyle).addOpacity(l).getString();t.strokeStyle=_}var rt=this.getStyle("stroke-width");if(rt.hasValue()){var et=rt.getPixels();t.lineWidth=et||ut}var yt=this.getStyle("stroke-linecap"),ht=this.getStyle("stroke-linejoin"),st=this.getStyle("stroke-miterlimit"),pt=this.getStyle("stroke-dasharray"),jt=this.getStyle("stroke-dashoffset");if(yt.hasValue()&&(t.lineCap=yt.getString()),ht.hasValue()&&(t.lineJoin=ht.getString()),st.hasValue()&&(t.miterLimit=st.getNumber()),pt.hasValue()&&pt.getString()!=="none"){var Vt=Ot(pt.getString());typeof t.setLineDash!="undefined"?t.setLineDash(Vt):typeof t.webkitLineDash!="undefined"?t.webkitLineDash=Vt:typeof t.mozDash!="undefined"&&!(Vt.length===1&&Vt[0]===0)&&(t.mozDash=Vt);var Zt=jt.getPixels();typeof t.lineDashOffset!="undefined"?t.lineDashOffset=Zt:typeof t.webkitLineDashOffset!="undefined"?t.webkitLineDashOffset=Zt:typeof t.mozDashOffset!="undefined"&&(t.mozDashOffset=Zt)}}if(this.modifiedEmSizeStack=!1,typeof t.font!="undefined"){var he=this.getStyle("font"),ce=this.getStyle("font-style"),ie=this.getStyle("font-variant"),ne=this.getStyle("font-weight"),ue=this.getStyle("font-size"),be=this.getStyle("font-family"),te=new me(ce.getString(),ie.getString(),ne.getString(),ue.hasValue()?"".concat(ue.getPixels(!0),"px"):"",be.getString(),me.parse(he.getString(),t.font));ce.setValue(te.fontStyle),ie.setValue(te.fontVariant),ne.setValue(te.fontWeight),ue.setValue(te.fontSize),be.setValue(te.fontFamily),t.font=te.toString(),ue.isPixels()&&(this.document.emSize=ue.getPixels(),this.modifiedEmSizeStack=!0)}i||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){Object(y.a)(Object(A.a)(n.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),n}(zt),Qt=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;return Object(S.a)(this,n),r=f.call(this,a,t,i),r.type="path",r.pathParser=null,r.pathParser=new Et(r.getAttribute("d").getString()),r}return Object(C.a)(n,[{key:"path",value:function(t){var i=this.pathParser,r=new fe;for(i.reset(),t&&t.beginPath();!i.isEnd();)switch(i.next().type){case Et.MOVE_TO:this.pathM(t,r);break;case Et.LINE_TO:this.pathL(t,r);break;case Et.HORIZ_LINE_TO:this.pathH(t,r);break;case Et.VERT_LINE_TO:this.pathV(t,r);break;case Et.CURVE_TO:this.pathC(t,r);break;case Et.SMOOTH_CURVE_TO:this.pathS(t,r);break;case Et.QUAD_TO:this.pathQ(t,r);break;case Et.SMOOTH_QUAD_TO:this.pathT(t,r);break;case Et.ARC:this.pathA(t,r);break;case Et.CLOSE_PATH:this.pathZ(t,r);break}return r}},{key:"getBoundingBox",value:function(t){return this.path()}},{key:"getMarkers",value:function(){var t=this.pathParser,i=t.getMarkerPoints(),r=t.getMarkerAngles(),o=i.map(function(s,l){return[s,r[l]]});return o}},{key:"renderChildren",value:function(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var i=this.getStyle("fill-rule");t.fillStyle!==""&&(i.getString("inherit")!=="inherit"?t.fill(i.getString()):t.fill()),t.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var o=r.length-1,s=this.getStyle("marker-start"),l=this.getStyle("marker-mid"),c=this.getStyle("marker-end");if(s.isUrlDefinition()){var g=s.getDefinition(),b=Object(I.a)(r[0],2),B=b[0],$=b[1];g.render(t,B,$)}if(l.isUrlDefinition())for(var _=l.getDefinition(),rt=1;rtc?l:c,st=l>c?1:l/c,pt=l>c?c/l:1;t.translate(B.x,B.y),t.rotate(b),t.scale(st,pt),t.arc(0,0,ht,$,$+_,Boolean(1-g)),t.scale(1/st,1/pt),t.rotate(-b),t.translate(-B.x,-B.y)}}},{key:"pathZ",value:function(t,i){n.pathZ(this.pathParser),t&&(i.x1!==i.x2&&i.y1!==i.y2&&t.closePath())}}],[{key:"pathM",value:function(t){var i=t.getAsCurrentPoint();return t.start=t.current,{point:i}}},{key:"pathL",value:function(t){var i=t.current,r=t.getAsCurrentPoint();return{current:i,point:r}}},{key:"pathH",value:function(t){var i=t.current,r=t.command,o=new Wt((r.relative?i.x:0)+r.x,i.y);return t.current=o,{current:i,point:o}}},{key:"pathV",value:function(t){var i=t.current,r=t.command,o=new Wt(i.x,(r.relative?i.y:0)+r.y);return t.current=o,{current:i,point:o}}},{key:"pathC",value:function(t){var i=t.current,r=t.getPoint("x1","y1"),o=t.getAsControlPoint("x2","y2"),s=t.getAsCurrentPoint();return{current:i,point:r,controlPoint:o,currentPoint:s}}},{key:"pathS",value:function(t){var i=t.current,r=t.getReflectedControlPoint(),o=t.getAsControlPoint("x2","y2"),s=t.getAsCurrentPoint();return{current:i,point:r,controlPoint:o,currentPoint:s}}},{key:"pathQ",value:function(t){var i=t.current,r=t.getAsControlPoint("x1","y1"),o=t.getAsCurrentPoint();return{current:i,controlPoint:r,currentPoint:o}}},{key:"pathT",value:function(t){var i=t.current,r=t.getReflectedControlPoint();t.control=r;var o=t.getAsCurrentPoint();return{current:i,controlPoint:r,currentPoint:o}}},{key:"pathA",value:function(t){var i=t.current,r=t.command,o=r.rX,s=r.rY,l=r.xRot,c=r.lArcFlag,g=r.sweepFlag,b=l*(Math.PI/180),B=t.getAsCurrentPoint(),$=new Wt(Math.cos(b)*(i.x-B.x)/2+Math.sin(b)*(i.y-B.y)/2,-Math.sin(b)*(i.x-B.x)/2+Math.cos(b)*(i.y-B.y)/2),_=Math.pow($.x,2)/Math.pow(o,2)+Math.pow($.y,2)/Math.pow(s,2);_>1&&(o*=Math.sqrt(_),s*=Math.sqrt(_));var rt=(c===g?-1:1)*Math.sqrt((Math.pow(o,2)*Math.pow(s,2)-Math.pow(o,2)*Math.pow($.y,2)-Math.pow(s,2)*Math.pow($.x,2))/(Math.pow(o,2)*Math.pow($.y,2)+Math.pow(s,2)*Math.pow($.x,2)));isNaN(rt)&&(rt=0);var et=new Wt(rt*o*$.y/s,rt*-s*$.x/o),yt=new Wt((i.x+B.x)/2+Math.cos(b)*et.x-Math.sin(b)*et.y,(i.y+B.y)/2+Math.sin(b)*et.x+Math.cos(b)*et.y),ht=bt([1,0],[($.x-et.x)/o,($.y-et.y)/s]),st=[($.x-et.x)/o,($.y-et.y)/s],pt=[(-$.x-et.x)/o,(-$.y-et.y)/s],jt=bt(st,pt);return mt(st,pt)<=-1&&(jt=Math.PI),mt(st,pt)>=1&&(jt=0),{currentPoint:B,rX:o,rY:s,sweepFlag:g,xAxisRotation:b,centp:yt,a1:ht,ad:jt}}},{key:"pathZ",value:function(t){t.current=t.start}}]),n}(Ee),Ge=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;return Object(S.a)(this,n),r=f.call(this,a,t,i),r.type="glyph",r.horizAdvX=r.getAttribute("horiz-adv-x").getNumber(),r.unicode=r.getAttribute("unicode").getString(),r.arabicForm=r.getAttribute("arabic-form").getString(),r}return n}(Qt),Re=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;return Object(S.a)(this,n),r=f.call(this,a,t,new.target===n?!0:i),r.type="text",r.x=0,r.y=0,r.measureCache=-1,r}return Object(C.a)(n,[{key:"setContext",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Object(y.a)(Object(A.a)(n.prototype),"setContext",this).call(this,t,i);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}},{key:"initializeCoordinates",value:function(t){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var i=this.getAttribute("dx"),r=this.getAttribute("dy");i.hasValue()&&(this.x+=i.getPixels("x")),r.hasValue()&&(this.y+=r.getPixels("y")),this.x+=this.getAnchorDelta(t,this,0)}},{key:"getBoundingBox",value:function(t){var i=this;if(this.type!=="text")return this.getTElementBoundingBox(t);this.initializeCoordinates(t);var r=null;return this.children.forEach(function(o,s){var l=i.getChildBoundingBox(t,i,i,s);r?r.addBoundingBox(l):r=l}),r}},{key:"getFontSize",value:function(){var t=this.document,i=this.parent,r=me.parse(t.ctx.font).fontSize,o=i.getStyle("font-size").getNumber(r);return o}},{key:"getTElementBoundingBox",value:function(t){var i=this.getFontSize();return new fe(this.x,this.y-i,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,i,r){var o=i[r],s=null;if(t.isArabic){var l=i.length,c=i[r-1],g=i[r+1],b="isolated";if((r===0||c===" ")&&r0&&c!==" "&&r0&&c!==" "&&(r===l-1||g===" ")&&(b="initial"),typeof t.glyphs[o]!="undefined"){var B=t.glyphs[o];s=B instanceof Ge?B:B[b]}}else s=t.glyphs[o];return s||(s=t.missingGlyph),s}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var i=t||this.node,r=Array.from(i.parentNode.childNodes),o=r.indexOf(i),s=r.length-1,l=It(i.textContent||"");return o===0&&(l=At(l)),o===s&&(l=St(l)),l}},{key:"renderChildren",value:function(t){var i=this;if(this.type!=="text"){this.renderTElementChildren(t);return}this.initializeCoordinates(t),this.children.forEach(function(o,s){i.renderChild(t,i,i,s)});var r=this.document.screen.mouse;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(t))}},{key:"renderTElementChildren",value:function(t){var i=this.document,r=this.parent,o=this.getText(),s=r.getStyle("font-family").getDefinition();if(s){for(var l=s.fontFace.unitsPerEm,c=me.parse(i.ctx.font),g=r.getStyle("font-size").getNumber(c.fontSize),b=r.getStyle("font-style").getString(c.fontStyle),B=g/l,$=s.isRTL?o.split("").reverse().join(""):o,_=Ot(r.getAttribute("dx").getString()),rt=$.length,et=0;etr&&c.getAttribute("x").hasValue()||c.getAttribute("text-anchor").hasValue());b++)g+=c.measureTextRecursive(t);return-1*(o==="end"?g:g/2)}return 0}},{key:"adjustChildCoordinates",value:function(t,i,r,o){var s=r.children[o];if(typeof s.measureText!="function")return s;t.save(),s.setContext(t,!0);var l=s.getAttribute("x"),c=s.getAttribute("y"),g=s.getAttribute("dx"),b=s.getAttribute("dy"),B=s.getAttribute("text-anchor").getString("start");if(o===0&&s.type!=="textNode"&&(l.hasValue()||l.setValue(i.getAttribute("x").getValue("0")),c.hasValue()||c.setValue(i.getAttribute("y").getValue("0")),g.hasValue()||g.setValue(i.getAttribute("dx").getValue("0")),b.hasValue()||b.setValue(i.getAttribute("dy").getValue("0"))),l.hasValue()){if(s.x=l.getPixels("x")+i.getAnchorDelta(t,r,o),B!=="start"){var $=s.measureTextRecursive(t);s.x+=-1*(B==="end"?$:$/2)}g.hasValue()&&(s.x+=g.getPixels("x"))}else{if(B!=="start"){var _=s.measureTextRecursive(t);i.x+=-1*(B==="end"?_:_/2)}g.hasValue()&&(i.x+=g.getPixels("x")),s.x=i.x}return i.x=s.x+s.measureText(t),c.hasValue()?(s.y=c.getPixels("y"),b.hasValue()&&(s.y+=b.getPixels("y"))):(b.hasValue()&&(i.y+=b.getPixels("y")),s.y=i.y),i.y=s.y,s.clearContext(t),t.restore(),s}},{key:"getChildBoundingBox",value:function(t,i,r,o){var s=this.adjustChildCoordinates(t,i,r,o);if(typeof s.getBoundingBox!="function")return null;var l=s.getBoundingBox(t);return l?(s.children.forEach(function(c,g){var b=i.getChildBoundingBox(t,i,s,g);l.addBoundingBox(b)}),l):null}},{key:"renderChild",value:function(t,i,r,o){var s=this.adjustChildCoordinates(t,i,r,o);s.render(t),s.children.forEach(function(l,c){i.renderChild(t,i,s,c)})}},{key:"measureTextRecursive",value:function(t){var i=this.children.reduce(function(r,o){return r+o.measureTextRecursive(t)},this.measureText(t));return i}},{key:"measureText",value:function(t){var i=this.measureCache;if(~i)return i;var r=this.getText(),o=this.measureTargetText(t,r);return this.measureCache=o,o}},{key:"measureTargetText",value:function(t,i){if(!i.length)return 0;var r=this.parent,o=r.getStyle("font-family").getDefinition();if(o){for(var s=this.getFontSize(),l=o.isRTL?i.split("").reverse().join(""):i,c=Ot(r.getAttribute("dx").getString()),g=l.length,b=0,B=0;B0?"":r.getTextFromNode(),r}return Object(C.a)(n,[{key:"getText",value:function(){return this.text}}]),n}(Re),tn=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(){var a;return Object(S.a)(this,n),a=f.apply(this,arguments),a.type="textNode",a}return n}(ze),Ae=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(){var a;return Object(S.a)(this,n),a=f.apply(this,arguments),a.type="svg",a.root=!1,a}return Object(C.a)(n,[{key:"setContext",value:function(t){var i,r=this.document,o=r.screen,s=r.window,l=t.canvas;if(o.setDefaults(t),l.style&&typeof t.font!="undefined"&&s&&typeof s.getComputedStyle!="undefined"){t.font=s.getComputedStyle(l).getPropertyValue("font");var c=new ct(r,"fontSize",me.parse(t.font).fontSize);c.hasValue()&&(r.rootEmSize=c.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var g=o.viewPort,b=g.width,B=g.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"),_=this.getAttribute("refY"),rt=this.getAttribute("viewBox"),et=rt.hasValue()?Ot(rt.getString()):null,yt=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",ht=0,st=0,pt=0,jt=0;et&&(ht=et[0],st=et[1]),this.root||(b=this.getStyle("width").getPixels("x"),B=this.getStyle("height").getPixels("y"),this.type==="marker"&&(pt=ht,jt=st,ht=0,st=0)),o.viewPort.setCurrent(b,B),this.node&&(!this.parent||((i=this.node.parentNode)===null||i===void 0?void 0:i.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(y.a)(Object(A.a)(n.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),et&&(b=et[2],B=et[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o.viewPort.width,desiredWidth:b,height:o.viewPort.height,desiredHeight:B,minX:ht,minY:st,refX:$.getValue(),refY:_.getValue(),clip:yt,clipX:pt,clipY:jt}),et&&(o.viewPort.removeCurrent(),o.viewPort.setCurrent(b,B))}},{key:"clearContext",value:function(t){Object(y.a)(Object(A.a)(n.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.getAttribute("width",!0),s=this.getAttribute("height",!0),l=this.getAttribute("viewBox"),c=this.getAttribute("style"),g=o.getNumber(0),b=s.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var B=this.getAttribute("preserveAspectRatio");B.hasValue()&&B.setValue(B.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(o.setValue(t),s.setValue(i),l.hasValue()||l.setValue("0 0 ".concat(g||t," ").concat(b||i)),c.hasValue()){var $=this.getStyle("width"),_=this.getStyle("height");$.hasValue()&&$.setValue("".concat(t,"px")),_.hasValue()&&_.setValue("".concat(i,"px"))}}}]),n}(Ee),He=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(){var a;return Object(S.a)(this,n),a=f.apply(this,arguments),a.type="rect",a}return Object(C.a)(n,[{key:"path",value:function(t){var i=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),o=this.getStyle("width",!1,!0).getPixels("x"),s=this.getStyle("height",!1,!0).getPixels("y"),l=this.getAttribute("rx"),c=this.getAttribute("ry"),g=l.getPixels("x"),b=c.getPixels("y");if(l.hasValue()&&!c.hasValue()&&(b=g),c.hasValue()&&!l.hasValue()&&(g=b),g=Math.min(g,o/2),b=Math.min(b,s/2),t){var B=4*((Math.sqrt(2)-1)/3);t.beginPath(),s>0&&o>0&&(t.moveTo(i+g,r),t.lineTo(i+o-g,r),t.bezierCurveTo(i+o-g+B*g,r,i+o,r+b-B*b,i+o,r+b),t.lineTo(i+o,r+s-b),t.bezierCurveTo(i+o,r+s-b+B*b,i+o-g+B*g,r+s,i+o-g,r+s),t.lineTo(i+g,r+s),t.bezierCurveTo(i+g-B*g,r+s,i,r+s-b+B*b,i,r+s-b),t.lineTo(i,r+b),t.bezierCurveTo(i,r+b-B*b,i+g-B*g,r,i+g,r),t.closePath())}return new fe(i,r,i+o,r+s)}},{key:"getMarkers",value:function(){return null}}]),n}(Qt),nr=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(){var a;return Object(S.a)(this,n),a=f.apply(this,arguments),a.type="circle",a}return Object(C.a)(n,[{key:"path",value:function(t){var i=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),o=this.getAttribute("r").getPixels();return t&&o>0&&(t.beginPath(),t.arc(i,r,o,0,Math.PI*2,!1),t.closePath()),new fe(i-o,r-o,i+o,r+o)}},{key:"getMarkers",value:function(){return null}}]),n}(Qt),ar=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(){var a;return Object(S.a)(this,n),a=f.apply(this,arguments),a.type="ellipse",a}return Object(C.a)(n,[{key:"path",value:function(t){var i=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),o=this.getAttribute("ry").getPixels("y"),s=this.getAttribute("cx").getPixels("x"),l=this.getAttribute("cy").getPixels("y");return t&&r>0&&o>0&&(t.beginPath(),t.moveTo(s+r,l),t.bezierCurveTo(s+r,l+i*o,s+i*r,l+o,s,l+o),t.bezierCurveTo(s-i*r,l+o,s-r,l+i*o,s-r,l),t.bezierCurveTo(s-r,l-i*o,s-i*r,l-o,s,l-o),t.bezierCurveTo(s+i*r,l-o,s+r,l-i*o,s+r,l),t.closePath()),new fe(s-r,l-o,s+r,l+o)}},{key:"getMarkers",value:function(){return null}}]),n}(Qt),ir=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(){var a;return Object(S.a)(this,n),a=f.apply(this,arguments),a.type="line",a}return Object(C.a)(n,[{key:"getPoints",value:function(){return[new Wt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Wt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var i=this.getPoints(),r=Object(I.a)(i,2),o=r[0],s=o.x,l=o.y,c=r[1],g=c.x,b=c.y;return t&&(t.beginPath(),t.moveTo(s,l),t.lineTo(g,b)),new fe(s,l,g,b)}},{key:"getMarkers",value:function(){var t=this.getPoints(),i=Object(I.a)(t,2),r=i[0],o=i[1],s=r.angleTo(o);return[[r,s],[o,s]]}}]),n}(Qt),Ye=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;return Object(S.a)(this,n),r=f.call(this,a,t,i),r.type="polyline",r.points=[],r.points=Wt.parsePath(r.getAttribute("points").getString()),r}return Object(C.a)(n,[{key:"path",value:function(t){var i=this.points,r=Object(I.a)(i,1),o=r[0],s=o.x,l=o.y,c=new fe(s,l);return t&&(t.beginPath(),t.moveTo(s,l)),i.forEach(function(g){var b=g.x,B=g.y;c.addPoint(b,B),t&&t.lineTo(b,B)}),c}},{key:"getMarkers",value:function(){var t=this.points,i=t.length-1,r=[];return t.forEach(function(o,s){if(s===i)return;r.push([o,o.angleTo(t[s+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}]),n}(Qt),or=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(){var a;return Object(S.a)(this,n),a=f.apply(this,arguments),a.type="polygon",a}return Object(C.a)(n,[{key:"path",value:function(t){var i=Object(y.a)(Object(A.a)(n.prototype),"path",this).call(this,t),r=Object(I.a)(this.points,1),o=r[0],s=o.x,l=o.y;return t&&(t.lineTo(s,l),t.closePath()),i}}]),n}(Ye),sr=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(){var a;return Object(S.a)(this,n),a=f.apply(this,arguments),a.type="pattern",a}return Object(C.a)(n,[{key:"createPattern",value:function(t,i,r){var o=this.getStyle("width").getPixels("x",!0),s=this.getStyle("height").getPixels("y",!0),l=new Ae(this.document,null);l.attributes.viewBox=new ct(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.width=new ct(this.document,"width","".concat(o,"px")),l.attributes.height=new ct(this.document,"height","".concat(s,"px")),l.attributes.transform=new ct(this.document,"transform",this.getAttribute("patternTransform").getValue()),l.children=this.children;var c=this.document.createCanvas(o,s),g=c.getContext("2d"),b=this.getAttribute("x"),B=this.getAttribute("y");b.hasValue()&&B.hasValue()&&g.translate(b.getPixels("x",!0),B.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var $=-1;$<=1;$++)for(var _=-1;_<=1;_++)g.save(),l.attributes.x=new ct(this.document,"x",$*c.width),l.attributes.y=new ct(this.document,"y",_*c.height),l.render(g),g.restore();var rt=t.createPattern(c,"repeat");return rt}}]),n}(zt),lr=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(){var a;return Object(S.a)(this,n),a=f.apply(this,arguments),a.type="marker",a}return Object(C.a)(n,[{key:"render",value:function(t,i,r){if(!i)return;var o=i.x,s=i.y,l=this.getAttribute("orient").getString("auto"),c=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(o,s),l==="auto"&&t.rotate(r),c==="strokeWidth"&&t.scale(t.lineWidth,t.lineWidth),t.save();var g=new Ae(this.document,null);g.type=this.type,g.attributes.viewBox=new ct(this.document,"viewBox",this.getAttribute("viewBox").getValue()),g.attributes.refX=new ct(this.document,"refX",this.getAttribute("refX").getValue()),g.attributes.refY=new ct(this.document,"refY",this.getAttribute("refY").getValue()),g.attributes.width=new ct(this.document,"width",this.getAttribute("markerWidth").getValue()),g.attributes.height=new ct(this.document,"height",this.getAttribute("markerHeight").getValue()),g.attributes.overflow=new ct(this.document,"overflow",this.getAttribute("overflow").getValue()),g.attributes.fill=new ct(this.document,"fill",this.getAttribute("fill").getColor("black")),g.attributes.stroke=new ct(this.document,"stroke",this.getAttribute("stroke").getValue("none")),g.children=this.children,g.render(t),t.restore(),c==="strokeWidth"&&t.scale(1/t.lineWidth,1/t.lineWidth),l==="auto"&&t.rotate(-r),t.translate(-o,-s)}}]),n}(zt),ur=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(){var a;return Object(S.a)(this,n),a=f.apply(this,arguments),a.type="defs",a}return Object(C.a)(n,[{key:"render",value:function(){}}]),n}(zt),je=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(){var a;return Object(S.a)(this,n),a=f.apply(this,arguments),a.type="g",a}return Object(C.a)(n,[{key:"getBoundingBox",value:function(t){var i=new fe;return this.children.forEach(function(r){i.addBoundingBox(r.getBoundingBox(t))}),i}}]),n}(Ee),ke=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;Object(S.a)(this,n),r=f.call(this,a,t,i),r.attributesToInherit=["gradientUnits"],r.stops=[];var o=Object(p.a)(r),s=o.stops,l=o.children;return l.forEach(function(c){c.type==="stop"&&s.push(c)}),r}return Object(C.a)(n,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,i,r){var o=this,s=this;this.getHrefAttribute().hasValue()&&(s=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(s));var l=s,c=l.stops,g=this.getGradient(t,i);if(!g)return this.addParentOpacity(r,c[c.length-1].color);if(c.forEach(function(Vt){g.addColorStop(Vt.offset,o.addParentOpacity(r,Vt.color))}),this.getAttribute("gradientTransform").hasValue()){var b=this.document,B=b.screen,$=B.MAX_VIRTUAL_PIXELS,_=B.viewPort,rt=Object(I.a)(_.viewPorts,1),et=rt[0],yt=new He(b,null);yt.attributes.x=new ct(b,"x",-$/3),yt.attributes.y=new ct(b,"y",-$/3),yt.attributes.width=new ct(b,"width",$),yt.attributes.height=new ct(b,"height",$);var ht=new je(b,null);ht.attributes.transform=new ct(b,"transform",this.getAttribute("gradientTransform").getValue()),ht.children=[yt];var st=new Ae(b,null);st.attributes.x=new ct(b,"x",0),st.attributes.y=new ct(b,"y",0),st.attributes.width=new ct(b,"width",et.width),st.attributes.height=new ct(b,"height",et.height),st.children=[ht];var pt=b.createCanvas(et.width,et.height),jt=pt.getContext("2d");return jt.fillStyle=g,st.render(jt),jt.createPattern(pt,"no-repeat")}return g}},{key:"inheritStopContainer",value:function(t){var i=this;this.attributesToInherit.forEach(function(r){!i.getAttribute(r).hasValue()&&t.getAttribute(r).hasValue()&&i.getAttribute(r,!0).setValue(t.getAttribute(r).getValue())})}},{key:"addParentOpacity",value:function(t,i){if(t.hasValue()){var r=new ct(this.document,"color",i);return r.addOpacity(t).getColor()}return i}}]),n}(zt),fr=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;return Object(S.a)(this,n),r=f.call(this,a,t,i),r.type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return Object(C.a)(n,[{key:"getGradient",value:function(t,i){var r=this.getGradientUnits()==="objectBoundingBox",o=r?i.getBoundingBox(t):null;if(r&&!o)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=r?o.x+o.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),l=r?o.y+o.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),c=r?o.x+o.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),g=r?o.y+o.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===c&&l===g?null:t.createLinearGradient(s,l,c,g)}}]),n}(ke),hr=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;return Object(S.a)(this,n),r=f.call(this,a,t,i),r.type="radialGradient",r.attributesToInherit.push("cx","cy","r","fx","fy","fr"),r}return Object(C.a)(n,[{key:"getGradient",value:function(t,i){var r=this.getGradientUnits()==="objectBoundingBox",o=i.getBoundingBox(t);if(r&&!o)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=r?o.x+o.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),l=r?o.y+o.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),c=s,g=l;this.getAttribute("fx").hasValue()&&(c=r?o.x+o.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(g=r?o.y+o.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var b=r?(o.width+o.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),B=this.getAttribute("fr").getPixels();return t.createRadialGradient(c,g,B,s,l,b)}}]),n}(ke),cr=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;Object(S.a)(this,n),r=f.call(this,a,t,i),r.type="stop";var o=Math.max(0,Math.min(1,r.getAttribute("offset").getNumber())),s=r.getStyle("stop-opacity"),l=r.getStyle("stop-color",!0);return l.getString()===""&&l.setValue("#000"),s.hasValue()&&(l=l.addOpacity(s)),r.offset=o,r.color=l.getColor(),r}return n}(zt),De=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;Object(S.a)(this,n),r=f.call(this,a,t,i),r.type="animate",r.duration=0,r.initialValue=null,r.initialUnits="",r.removed=!1,r.frozen=!1,a.screen.animations.push(Object(p.a)(r)),r.begin=r.getAttribute("begin").getMilliseconds(),r.maxDuration=r.begin+r.getAttribute("dur").getMilliseconds(),r.from=r.getAttribute("from"),r.to=r.getAttribute("to"),r.values=new ct(a,"values",null);var o=r.getAttribute("values");return o.hasValue()&&r.values.setValue(o.getString().split(";")),r}return Object(C.a)(n,[{key:"getProperty",value:function(){var t=this.getAttribute("attributeType").getString(),i=this.getAttribute("attributeName").getString();return t==="CSS"?this.parent.getStyle(i,!0):this.parent.getAttribute(i,!0)}},{key:"calcValue",value:function(){var t=this.initialUnits,i=this.getProgress(),r=i.progress,o=i.from,s=i.to,l=o.getNumber()+(s.getNumber()-o.getNumber())*r;return t==="%"&&(l*=100),"".concat(l).concat(t)}},{key:"update",value:function(t){var i=this.parent,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var o=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(o==="freeze"&&!this.frozen)this.frozen=!0,i.animationFrozen=!0,i.animationFrozenValue=r.getString();else if(o==="remove"&&!this.removed)return this.removed=!0,r.setValue(i.animationFrozen?i.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=t;var s=!1;if(this.begin0&&Array.from(o).every(function(c){return c.nodeType===3});return r.hasText=l,r.text=l?r.getTextFromNode(s):"",r}return Object(C.a)(n,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){if(this.hasText){Object(y.a)(Object(A.a)(n.prototype),"renderChildren",this).call(this,t);var i=this.document,r=this.x,o=this.y,s=i.screen.mouse,l=new ct(i,"fontSize",me.parse(i.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new fe(r,o-l.getPixels("y"),r+this.measureText(t),o))}else if(this.children.length>0){var c=new je(this.document,null);c.children=this.children,c.parent=this,c.render(t)}}},{key:"onClick",value:function(){var t=this.document.window;t&&t.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){var t=this.document.ctx;t.canvas.style.cursor="pointer"}}]),n}(Re);function Er(v,f){var n=Object.keys(v);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(v);f&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(v,t).enumerable})),n.push.apply(n,a)}return n}function Le(v){for(var f=1;fB?b:B,ht=b>B?1:b/B,st=b>B?B/b:1;t&&(t.translate(c,g),t.rotate(rt),t.scale(ht,st),t.arc(0,0,yt,$,$+_,Boolean(1-et)),t.scale(1/ht,1/st),t.rotate(-rt),t.translate(-c,-g));break}case Et.CLOSE_PATH:t&&t.closePath();break}})}},{key:"renderChildren",value:function(t){this.setTextData(t),t.save();var i=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),o=this.glyphInfo,s=t.fillStyle;i==="underline"&&t.beginPath(),o.forEach(function(l,c){var g=l.p0,b=l.p1,B=l.rotation,$=l.text;t.save(),t.translate(g.x,g.y),t.rotate(B),t.fillStyle&&t.fillText($,0,0),t.strokeStyle&&t.strokeText($,0,0),t.restore(),i==="underline"&&(c===0&&t.moveTo(g.x,g.y+r/8),t.lineTo(b.x,b.y+r/5))}),i==="underline"&&(t.lineWidth=r/20,t.strokeStyle=s,t.stroke(),t.closePath()),t.restore()}},{key:"getLetterSpacingAt",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[t]||0}},{key:"findSegmentToFitChar",value:function(t,i,r,o,s,l,c,g,b){var B=l,$=this.measureText(t,g);g===" "&&i==="justify"&&r-1&&(B+=this.getLetterSpacingAt(b));var _=this.textHeight/20,rt=this.getEquidistantPointOnPath(B,_,0),et=this.getEquidistantPointOnPath(B+$,_,0),yt={p0:rt,p1:et},ht=rt&&et?Math.atan2(et.y-rt.y,et.x-rt.x):0;if(c){var st=Math.cos(Math.PI/2+ht)*c,pt=Math.cos(-ht)*c;yt.p0=Le(Le({},rt),{},{x:rt.x+st,y:rt.y+pt}),yt.p1=Le(Le({},et),{},{x:et.x+st,y:et.y+pt})}return B+=$,{offset:B,segment:yt,rotation:ht}}},{key:"measureText",value:function(t,i){var r=this.measuresCache,o=i||this.getText();if(r.has(o))return r.get(o);var s=this.measureTargetText(t,o);return r.set(o,s),s}},{key:"setTextData",value:function(t){var i=this;if(this.glyphInfo)return;var r=this.getText(),o=r.split(""),s=r.split(" ").length-1,l=this.parent.getAttribute("dx").split().map(function(Zt){return Zt.getPixels("x")}),c=this.parent.getAttribute("dy").getPixels("y"),g=this.parent.getStyle("text-anchor").getString("start"),b=this.getStyle("letter-spacing"),B=this.parent.getStyle("letter-spacing"),$=0;!b.hasValue()||b.getValue()==="inherit"?$=B.getPixels():b.hasValue()&&(b.getValue()!=="initial"&&b.getValue()!=="unset"&&($=b.getPixels()));var _=[],rt=r.length;this.letterSpacingCache=_;for(var et=0;et0&&(b-=2*Math.PI),s===1&&b<0&&(b+=2*Math.PI),[c.x,c.y,r,o,g,b,l,s]}},{key:"calcLength",value:function(t,i,r,o){var s=0,l=null,c=null,g=0;switch(r){case Et.LINE_TO:return this.getLineLength(t,i,o[0],o[1]);case Et.CURVE_TO:for(s=0,l=this.getPointOnCubicBezier(0,t,i,o[0],o[1],o[2],o[3],o[4],o[5]),g=.01;g<=1;g+=.01)c=this.getPointOnCubicBezier(g,t,i,o[0],o[1],o[2],o[3],o[4],o[5]),s+=this.getLineLength(l.x,l.y,c.x,c.y),l=c;return s;case Et.QUAD_TO:for(s=0,l=this.getPointOnQuadraticBezier(0,t,i,o[0],o[1],o[2],o[3]),g=.01;g<=1;g+=.01)c=this.getPointOnQuadraticBezier(g,t,i,o[0],o[1],o[2],o[3]),s+=this.getLineLength(l.x,l.y,c.x,c.y),l=c;return s;case Et.ARC:{s=0;var b=o[4],B=o[5],$=o[4]+B,_=Math.PI/180;if(Math.abs(b-$)<_&&(_=Math.abs(b-$)),l=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],b,0),B<0)for(g=b-_;g>$;g-=_)c=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],g,0),s+=this.getLineLength(l.x,l.y,c.x,c.y),l=c;else for(g=b+_;g<$;g+=_)c=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],g,0),s+=this.getLineLength(l.x,l.y,c.x,c.y),l=c;return c=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],$,0),s+=this.getLineLength(l.x,l.y,c.x,c.y),s}}return 0}},{key:"getPointOnLine",value:function(t,i,r,o,s){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:i,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,g=(s-r)/(o-i+ut),b=Math.sqrt(t*t/(1+g*g));oi)return null;var s=this.dataArray,l=Object(d.a)(s),c;try{for(l.s();!(c=l.n()).done;){var g=c.value;if(g&&(g.pathLength<5e-5||r+g.pathLength+5e-5=0&&B>rt)break;o=this.getPointOnEllipticalArc(g.points[0],g.points[1],g.points[2],g.points[3],B,g.points[6]);break}case Et.CURVE_TO:B=b/g.pathLength,B>1&&(B=1),o=this.getPointOnCubicBezier(B,g.start.x,g.start.y,g.points[0],g.points[1],g.points[2],g.points[3],g.points[4],g.points[5]);break;case Et.QUAD_TO:B=b/g.pathLength,B>1&&(B=1),o=this.getPointOnQuadraticBezier(B,g.start.x,g.start.y,g.points[0],g.points[1],g.points[2],g.points[3]);break}if(o)return o;break}}catch(et){l.e(et)}finally{l.f()}return null}},{key:"getLineLength",value:function(t,i,r,o){return Math.sqrt((r-t)*(r-t)+(o-i)*(o-i))}},{key:"getPathLength",value:function(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce(function(t,i){return i.pathLength>0?t+i.pathLength:t},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,i,r,o,s,l,c,g,b){var B=g*wt(t)+l*Jt(t)+o*Kt(t)+i*Xt(t),$=b*wt(t)+c*Jt(t)+s*Kt(t)+r*Xt(t);return{x:B,y:$}}},{key:"getPointOnQuadraticBezier",value:function(t,i,r,o,s,l,c){var g=l*de(t)+o*le(t)+i*ge(t),b=c*de(t)+s*le(t)+r*ge(t);return{x:g,y:b}}},{key:"getPointOnEllipticalArc",value:function(t,i,r,o,s,l){var c=Math.cos(l),g=Math.sin(l),b={x:r*Math.cos(s),y:o*Math.sin(s)};return{x:t+(b.x*c-b.y*g),y:i+(b.x*g+b.y*c)}}},{key:"buildEquidistantCache",value:function(t,i){var r=this.getPathLength(),o=i||.25,s=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==s||this.equidistantCache.precision!==o){this.equidistantCache={step:s,precision:o,points:[]};for(var l=0,c=0;c<=r;c+=o){var g=this.getPointOnPath(c),b=this.getPointOnPath(c+o);if(!g||!b)continue;l+=this.getLineLength(g.x,g.y,b.x,b.y),l>=s&&(this.equidistantCache.points.push({x:g.x,y:g.y,distance:c}),l-=s)}}}},{key:"getEquidistantPointOnPath",value:function(t,i,r){if(this.buildEquidistantCache(i,r),t<0||t-this.getPathLength()>5e-5)return null;var o=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[o]||null}}]),n}(Re),en=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Or=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;Object(S.a)(this,n),r=f.call(this,a,t,i),r.type="image",r.loaded=!1;var o=r.getHrefAttribute().getString();if(!o)return Object(h.a)(r);var s=o.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(o);return a.images.push(Object(p.a)(r)),s?void r.loadSvg(o):void r.loadImage(o),r.isSvg=s,r}return Object(C.a)(n,[{key:"loadImage",value:function(t){var i=this;return w()(U.a.mark(function r(){var o;return U.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,i.document.createImage(t);case 3:o=l.sent,i.image=o,l.next=10;break;case 7:l.prev=7,l.t0=l.catch(0),console.error('Error while loading image "'.concat(t,'":'),l.t0);case 10:i.loaded=!0;case 11:case"end":return l.stop()}},r,null,[[0,7]])}))()}},{key:"loadSvg",value:function(t){var i=this;return w()(U.a.mark(function r(){var o,s,l,c;return U.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(o=en.exec(t),!o){b.next=6;break}s=o[5],o[4]==="base64"?i.image=atob(s):i.image=decodeURIComponent(s),b.next=19;break;case 6:return b.prev=6,b.next=9,i.document.fetch(t);case 9:return l=b.sent,b.next=12,l.text();case 12:c=b.sent,i.image=c,b.next=19;break;case 16:b.prev=16,b.t0=b.catch(6),console.error('Error while loading image "'.concat(t,'":'),b.t0);case 19:i.loaded=!0;case 20:case"end":return b.stop()}},r,null,[[6,16]])}))()}},{key:"renderChildren",value:function(t){var i=this.document,r=this.image,o=this.loaded,s=this.getAttribute("x").getPixels("x"),l=this.getAttribute("y").getPixels("y"),c=this.getStyle("width").getPixels("x"),g=this.getStyle("height").getPixels("y");if(!o||!r||!c||!g)return;if(t.save(),t.translate(s,l),this.isSvg){var b=i.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:c,scaleHeight:g});b.document.documentElement.parent=this,void b.render()}else{var B=this.image;i.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:c,desiredWidth:B.width,height:g,desiredHeight:B.height}),this.loaded&&((typeof B.complete=="undefined"||B.complete)&&t.drawImage(B,0,0))}t.restore()}},{key:"getBoundingBox",value:function(){var t=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");return new fe(t,i,t+r,i+o)}}]),n}(Ee),Pr=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(){var a;return Object(S.a)(this,n),a=f.apply(this,arguments),a.type="symbol",a}return Object(C.a)(n,[{key:"render",value:function(t){}}]),n}(Ee),Tr=function(){function v(f){Object(S.a)(this,v),this.document=f,this.loaded=!1,f.fonts.push(this)}return Object(C.a)(v,[{key:"load",value:function(n,a){var t=this;return w()(U.a.mark(function i(){var r,o,s;return U.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,r=t.document,c.next=4,r.canvg.parser.load(a);case 4:o=c.sent,s=o.getElementsByTagName("font"),Array.from(s).forEach(function(g){var b=r.createElement(g);r.definitions[n]=b}),c.next=12;break;case 9:c.prev=9,c.t0=c.catch(0),console.error('Error while loading font "'.concat(a,'":'),c.t0);case 12:t.loaded=!0;case 13:case"end":return c.stop()}},i,null,[[0,9]])}))()}}]),v}(),$e=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;Object(S.a)(this,n),r=f.call(this,a,t,i),r.type="style";var o=It(Array.from(t.childNodes).map(function(l){return l.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),s=o.split("}");return s.forEach(function(l){var c=l.trim();if(!c)return;var g=c.split("{"),b=g[0].split(","),B=g[1].split(";");b.forEach(function($){var _=$.trim();if(!_)return;var rt=a.styles[_]||{};if(B.forEach(function(ht){var st=ht.indexOf(":"),pt=ht.substr(0,st).trim(),jt=ht.substr(st+1,ht.length-st).trim();pt&&jt&&(rt[pt]=new ct(a,pt,jt))}),a.styles[_]=rt,a.stylesSpecificity[_]=Z(_),_==="@font-face"){var et=rt["font-family"].getString().replace(/"|'/g,""),yt=rt.src.getString().split(",");yt.forEach(function(ht){if(ht.indexOf('format("svg")')>0){var st=Gt(ht);st&&void new Tr(a).load(et,st)}})}})}),r}return n}(zt);$e.parseExternalUrl=Gt;var Sr=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(){var a;return Object(S.a)(this,n),a=f.apply(this,arguments),a.type="use",a}return Object(C.a)(n,[{key:"setContext",value:function(t){Object(y.a)(Object(A.a)(n.prototype),"setContext",this).call(this,t);var i=this.getAttribute("x"),r=this.getAttribute("y");i.hasValue()&&t.translate(i.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}},{key:"path",value:function(t){var i=this.element;i&&i.path(t)}},{key:"renderChildren",value:function(t){var i=this.document,r=this.element;if(r){var o=r;if(r.type==="symbol"&&(o=new Ae(i,null),o.attributes.viewBox=new ct(i,"viewBox",r.getAttribute("viewBox").getString()),o.attributes.preserveAspectRatio=new ct(i,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),o.attributes.overflow=new ct(i,"overflow",r.getAttribute("overflow").getString()),o.children=r.children,r.styles.opacity=new ct(i,"opacity",this.calculateOpacity())),o.type==="svg"){var s=this.getStyle("width",!1,!0),l=this.getStyle("height",!1,!0);s.hasValue()&&(o.attributes.width=new ct(i,"width",s.getString())),l.hasValue()&&(o.attributes.height=new ct(i,"height",l.getString()))}var c=o.parent;o.parent=this,o.render(t),o.parent=c}}},{key:"getBoundingBox",value:function(t){var i=this.element;return i?i.getBoundingBox(t):null}},{key:"elementTransform",value:function(){var t=this.document,i=this.element;return Me.fromElement(t,i)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),n}(Ee);function Ue(v,f,n,a,t,i){return v[n*a*4+f*4+i]}function Ve(v,f,n,a,t,i,r){v[n*a*4+f*4+i]=r}function kt(v,f,n){var a=v[f];return a*n}function xe(v,f,n,a){return f+Math.cos(v)*n+Math.sin(v)*a}var Ke=function(v){Object(T.a)(n,v);var f=Object(x.a)(n);function n(a,t,i){var r;Object(S.a)(this,n),r=f.call(this,a,t,i),r.type="feColorMatrix";var o=Ot(r.getAttribute("values").getString());switch(r.getAttribute("type").getString("matrix")){case"saturate":{var s=o[0];o=[.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=o[0]*Math.PI/180;o=[xe(l,.213,.787,-.213),xe(l,.715,-.715,-.715),xe(l,.072,-.072,.928),0,0,xe(l,.213,-.213,.143),xe(l,.715,.285,.14),xe(l,.072,-.072,-.283),0,0,xe(l,.213,-.213,-.787),xe(l,.715,-.715,.715),xe(l,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":o=[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 r.matrix=o,r.includeOpacity=r.getAttribute("includeOpacity").hasValue(),r}return Object(C.a)(n,[{key:"apply",value:function(t,i,r,o,s){for(var l=this.includeOpacity,c=this.matrix,g=t.getImageData(0,0,o,s),b=0;b1&&t[1]!==void 0?t[1]:!1,a=document.createElement("img"),n&&(a.crossOrigin="Anonymous"),r.abrupt("return",new Promise(function(o,s){a.onload=function(){o(a)},a.onerror=function(l,c,g,b,B){s(B)},a.src=f}));case 4:case"end":return r.stop()}},v)})),Je.apply(this,arguments)}var Ie=function(){function v(f){Object(S.a)(this,v);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.rootEmSize,t=a===void 0?12:a,i=n.emSize,r=i===void 0?12:i,o=n.createCanvas,s=o===void 0?v.createCanvas:o,l=n.createImage,c=l===void 0?v.createImage:l,g=n.anonymousCrossOrigin;this.canvg=f,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=f.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=s,this.createImage=this.bindCreateImage(c,g),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(C.a)(v,[{key:"bindCreateImage",value:function(n,a){return typeof a=="boolean"?function(t,i){return n(t,typeof i=="boolean"?i:a)}:n}},{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 n=this.emSizeStack;return n[n.length-1]},set:function(n){var a=this.emSizeStack;a.push(n)}},{key:"popEmSize",value:function(){var n=this.emSizeStack;n.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(n){return n.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(n){return n.loaded})}},{key:"createDocumentElement",value:function(n){var a=this.createElement(n.documentElement);return a.root=!0,a.addStylesFromStyleDefinition(),this.documentElement=a,a}},{key:"createElement",value:function(n){var a=n.nodeName.replace(/^[^:]+:/,""),t=v.elementTypes[a];return typeof t!="undefined"?new t(this,n):new rr(this,n)}},{key:"createTextNode",value:function(n){return new tn(this,n)}},{key:"setViewBox",value:function(n){this.screen.setViewBox(nn({document:this},n))}}]),v}();Ie.createCanvas=an,Ie.createImage=on,Ie.elementTypes=rn;function Ur(v,f){var n=Object.keys(v);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(v);f&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(v,t).enumerable})),n.push.apply(n,a)}return n}function Te(v){for(var f=1;f2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Ne(a),this.screen=new Yt(f,a),this.options=a;var t=new Ie(this,a),i=t.createDocumentElement(n);this.document=t,this.documentElement=i}return Object(C.a)(v,[{key:"fork",value:function(n,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return v.from(n,a,Te(Te({},this.options),t))}},{key:"forkString",value:function(n,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return v.fromString(n,a,Te(Te({},this.options),t))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var n=arguments,a=this;return w()(U.a.mark(function t(){var i;return U.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return i=n.length>0&&n[0]!==void 0?n[0]:{},a.start(Te({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},i)),o.next=4,a.ready();case 4:a.stop();case 5:case"end":return o.stop()}},t)}))()}},{key:"start",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=this.documentElement,t=this.screen,i=this.options;t.start(a,Te(Te({enableRedraw:!0},i),n))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(n,a,t)}}],[{key:"from",value:function(n,a){var t=arguments;return w()(U.a.mark(function i(){var r,o,s;return U.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return r=t.length>2&&t[2]!==void 0?t[2]:{},o=new Ne(r),c.next=4,o.parse(a);case 4:return s=c.sent,c.abrupt("return",new v(n,s,r));case 6:case"end":return c.stop()}},i)}))()}},{key:"fromString",value:function(n,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new Ne(t),r=i.parseFromString(a);return new v(n,r,t)}}]),v}();E.default=Vr}.call(this,e("Q2Ig"))},E9XD:function(m,E,e){"use strict";var u=e("I+eb"),h=e("1Y/n").left,d=e("pkCn"),p=e("LQDL"),y=e("YF1G"),A=d("reduce"),D=!y&&p>79&&p<83;u({target:"Array",proto:!0,forced:!A||D},{reduce:function(x){var S=arguments.length;return h(this,x,S,S>1?arguments[1]:void 0)}})},EHx7:function(m,E,e){var u=e("0Dky"),h=e("2oRo"),d=h.RegExp;m.exports=u(function(){var p=d("(?b)","g");return p.exec("b").groups.a!=="b"||"b".replace(p,"$c")!=="bc"})},EnZy:function(m,E,e){"use strict";var u=e("K6Rb"),h=e("xluM"),d=e("4zBA"),p=e("14Sl"),y=e("ROdP"),A=e("glrk"),D=e("HYAF"),T=e("SEBh"),x=e("iqWW"),S=e("UMSQ"),C=e("V37c"),I=e("3Eq5"),W=e("Ta7t"),U=e("FMNM"),z=e("kmMV"),k=e("n3/R"),K=e("0Dky"),w=k.UNSUPPORTED_Y,Q=4294967295,L=Math.min,nt=[].push,M=d(/./.exec),R=d(nt),V=d("".slice),j=!K(function(){var J=/(?:)/,tt=J.exec;J.exec=function(){return tt.apply(this,arguments)};var X="ab".split(J);return X.length!==2||X[0]!=="a"||X[1]!=="b"});p("split",function(J,tt,X){var O;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?O=function(H,P){var N=C(D(this)),Y=P===void 0?Q:P>>>0;if(Y===0)return[];if(H===void 0)return[N];if(!y(H))return h(tt,N,H,Y);for(var F=[],G=(H.ignoreCase?"i":"")+(H.multiline?"m":"")+(H.unicode?"u":"")+(H.sticky?"y":""),at=0,q=new RegExp(H.source,G+"g"),it,ot,dt;(it=h(z,q,N))&&!(ot=q.lastIndex,ot>at&&(R(F,V(N,at,it.index)),it.length>1&&it.index=Y));)q.lastIndex===it.index&&q.lastIndex++;return at===N.length?(dt||!M(q,""))&&R(F,""):R(F,V(N,at)),F.length>Y?W(F,0,Y):F}:"0".split(void 0,0).length?O=function(H,P){return H===void 0&&P===0?[]:h(tt,this,H,P)}:O=tt,[function(P,N){var Y=D(this),F=P==null?void 0:I(P,J);return F?h(F,P,Y,N):h(O,C(Y),P,N)},function(H,P){var N=A(this),Y=C(H),F=X(O,N,Y,P,O!==tt);if(F.done)return F.value;var G=T(N,RegExp),at=N.unicode,q=(N.ignoreCase?"i":"")+(N.multiline?"m":"")+(N.unicode?"u":"")+(w?"g":"y"),it=new G(w?"^(?:"+N.source+")":N,q),ot=P===void 0?Q:P>>>0;if(ot===0)return[];if(Y.length===0)return U(it,Y)===null?[Y]:[];for(var dt=0,lt=0,ft=[];ltj;j++)if(tt=P(z[j]),tt&&T(U,tt))return tt;return new W(!1)}R=x(z,V)}for(X=R.next;!(O=d(X,R)).done;){try{tt=P(O.value)}catch(N){C(R,"throw",N)}if(typeof tt=="object"&&tt&&T(U,tt))return tt}return new W(!1)}},JBy8:function(m,E,e){var u=e("yoRg"),h=e("eDl+"),d=h.concat("length","prototype");E.f=Object.getOwnPropertyNames||function(y){return u(y,d)}},JTJg:function(m,E,e){"use strict";var u=e("I+eb"),h=e("4zBA"),d=e("WjRb"),p=e("HYAF"),y=e("V37c"),A=e("qxPZ"),D=h("".indexOf);u({target:"String",proto:!0,forced:!A("includes")},{includes:function(x){return!!~D(y(p(this)),y(d(x)),arguments.length>1?arguments[1]:void 0)}})},JfAA:function(m,E,e){"use strict";var u=e("4zBA"),h=e("Xnc8").PROPER,d=e("busE"),p=e("glrk"),y=e("OpvP"),A=e("V37c"),D=e("0Dky"),T=e("rW0t"),x="toString",S=RegExp.prototype,C=S[x],I=u(T),W=D(function(){return C.call({source:"a",flags:"b"})!="/a/b"}),U=h&&C.name!=x;(W||U)&&d(RegExp.prototype,x,function(){var k=p(this),K=A(k.source),w=k.flags,Q=A(w===void 0&&y(S,k)&&!("flags"in S)?I(k):w);return"/"+K+"/"+Q},{unsafe:!0})},JiZb:function(m,E,e){"use strict";var u=e("0GbY"),h=e("m/L8"),d=e("tiKp"),p=e("g6v/"),y=d("species");m.exports=function(A){var D=u(A),T=h.f;p&&D&&!D[y]&&T(D,y,{configurable:!0,get:function(){return this}})}},Junv:function(m,E,e){"use strict";var u=e("I+eb"),h=e("4zBA"),d=e("6LWA"),p=h([].reverse),y=[1,2];u({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return d(this)&&(this.length=this.length),p(this)}})},K6Rb:function(m,E,e){var u=e("QNWe"),h=Function.prototype,d=h.apply,p=h.call;m.exports=typeof Reflect=="object"&&Reflect.apply||(u?p.bind(d):function(){return p.apply(d,arguments)})},KmKo:function(m,E,e){var u=e("xluM"),h=e("glrk"),d=e("3Eq5");m.exports=function(p,y,A){var D,T;h(p);try{if(D=d(p,"return"),!D){if(y==="throw")throw A;return A}D=u(D,p)}catch(x){T=!0,D=x}if(y==="throw")throw A;if(T)throw D;return h(D),A}},LKBx:function(m,E,e){"use strict";var u=e("I+eb"),h=e("4zBA"),d=e("Bs8V").f,p=e("UMSQ"),y=e("V37c"),A=e("WjRb"),D=e("HYAF"),T=e("qxPZ"),x=e("xDBR"),S=h("".startsWith),C=h("".slice),I=Math.min,W=T("startsWith"),U=!x&&!W&&!!function(){var z=d(String.prototype,"startsWith");return z&&!z.writable}();u({target:"String",proto:!0,forced:!U&&!W},{startsWith:function(k){var K=y(D(this));A(k);var w=p(I(arguments.length>1?arguments[1]:void 0,K.length)),Q=y(k);return S?S(K,Q,w):C(K,w,w+Q.length)===Q}})},LPSS:function(m,E,e){var u=e("2oRo"),h=e("K6Rb"),d=e("A2ZE"),p=e("Fib7"),y=e("Gi26"),A=e("0Dky"),D=e("G+Rx"),T=e("82ph"),x=e("zBJ4"),S=e("1tal"),C=e("HNyW"),I=e("YF1G"),W=u.setImmediate,U=u.clearImmediate,z=u.process,k=u.Dispatch,K=u.Function,w=u.MessageChannel,Q=u.String,L=0,nt={},M="onreadystatechange",R,V,j,J;try{R=u.location}catch(P){}var tt=function(P){if(y(nt,P)){var N=nt[P];delete nt[P],N()}},X=function(P){return function(){tt(P)}},O=function(P){tt(P.data)},H=function(P){u.postMessage(Q(P),R.protocol+"//"+R.host)};(!W||!U)&&(W=function(N){S(arguments.length,1);var Y=p(N)?N:K(N),F=T(arguments,1);return nt[++L]=function(){h(Y,void 0,F)},V(L),L},U=function(N){delete nt[N]},I?V=function(P){z.nextTick(X(P))}:k&&k.now?V=function(P){k.now(X(P))}:w&&!C?(j=new w,J=j.port2,j.port1.onmessage=O,V=d(J.postMessage,J)):u.addEventListener&&p(u.postMessage)&&!u.importScripts&&R&&R.protocol!=="file:"&&!A(H)?(V=H,u.addEventListener("message",O,!1)):M in x("script")?V=function(P){D.appendChild(x("script"))[M]=function(){D.removeChild(this),tt(P)}}:V=function(P){setTimeout(X(P),0)}),m.exports={set:W,clear:U}},LQDL:function(m,E,e){var u=e("2oRo"),h=e("NC/Y"),d=u.process,p=u.Deno,y=d&&d.versions||p&&p.version,A=y&&y.v8,D,T;A&&(D=A.split("."),T=D[0]>0&&D[0]<4?1:+(D[0]+D[1])),!T&&h&&(D=h.match(/Edge\/(\d+)/),(!D||D[1]>=74)&&(D=h.match(/Chrome\/(\d+)/),D&&(T=+D[1]))),m.exports=T},"N+g0":function(m,E,e){var u=e("g6v/"),h=e("rtlb"),d=e("m/L8"),p=e("glrk"),y=e("/GqU"),A=e("33Wh");E.f=u&&!h?Object.defineProperties:function(T,x){p(T);for(var S=y(x),C=A(x),I=C.length,W=0,U;I>W;)d.f(T,U=C[W++],S[U]);return T}},"NC/Y":function(m,E,e){var u=e("0GbY");m.exports=u("navigator","userAgent")||""},NaFW:function(m,E,e){var u=e("9d/t"),h=e("3Eq5"),d=e("P4y1"),p=e("tiKp"),y=p("iterator");m.exports=function(A){if(A!=null)return h(A,y)||h(A,"@@iterator")||d[u(A)]}},O741:function(m,E,e){var u=e("2oRo"),h=e("Fib7"),d=u.String,p=u.TypeError;m.exports=function(y){if(typeof y=="object"||h(y))return y;throw p("Can't set "+d(y)+" as a prototype")}},OpvP:function(m,E,e){var u=e("4zBA");m.exports=u({}.isPrototypeOf)},P4y1:function(m,E){m.exports={}},QNWe:function(m,E,e){var u=e("0Dky");m.exports=!u(function(){var h=function(){}.bind();return typeof h!="function"||h.hasOwnProperty("prototype")})},RK3t:function(m,E,e){var u=e("2oRo"),h=e("4zBA"),d=e("0Dky"),p=e("xrYK"),y=u.Object,A=h("".split);m.exports=d(function(){return!y("z").propertyIsEnumerable(0)})?function(D){return p(D)=="String"?A(D,""):y(D)}:y},RN6c:function(m,E,e){var u=e("2oRo");m.exports=function(h,d){var p=u.console;p&&p.error&&(arguments.length==1?p.error(h):p.error(h,d))}},RNIs:function(m,E,e){var u=e("tiKp"),h=e("fHMY"),d=e("m/L8"),p=u("unscopables"),y=Array.prototype;y[p]==null&&d.f(y,p,{configurable:!0,value:h(null)}),m.exports=function(A){y[p][A]=!0}},ROdP:function(m,E,e){var u=e("hh1v"),h=e("xrYK"),d=e("tiKp"),p=d("match");m.exports=function(y){var A;return u(y)&&((A=y[p])!==void 0?!!A:h(y)=="RegExp")}},Rm1S:function(m,E,e){"use strict";var u=e("xluM"),h=e("14Sl"),d=e("glrk"),p=e("UMSQ"),y=e("V37c"),A=e("HYAF"),D=e("3Eq5"),T=e("iqWW"),x=e("FMNM");h("match",function(S,C,I){return[function(U){var z=A(this),k=U==null?void 0:D(U,S);return k?u(k,U,z):new RegExp(U)[S](y(z))},function(W){var U=d(this),z=y(W),k=I(C,U,z);if(k.done)return k.value;if(!U.global)return x(U,z);var K=U.unicode;U.lastIndex=0;for(var w=[],Q=0,L;(L=x(U,z))!==null;){var nt=y(L[0]);w[Q]=nt,nt===""&&(U.lastIndex=T(z,p(U.lastIndex),K)),Q++}return Q===0?null:w}]})},SEBh:function(m,E,e){var u=e("glrk"),h=e("UIe5"),d=e("tiKp"),p=d("species");m.exports=function(y,A){var D=u(y).constructor,T;return D===void 0||(T=u(D)[p])==null?A:h(T)}},SFrS:function(m,E,e){var u=e("2oRo"),h=e("xluM"),d=e("Fib7"),p=e("hh1v"),y=u.TypeError;m.exports=function(A,D){var T,x;if(D==="string"&&d(T=A.toString)&&!p(x=h(T,A)))return x;if(d(T=A.valueOf)&&!p(x=h(T,A)))return x;if(D!=="string"&&d(T=A.toString)&&!p(x=h(T,A)))return x;throw y("Can't convert object to primitive value")}},STAE:function(m,E,e){var u=e("LQDL"),h=e("0Dky");m.exports=!!Object.getOwnPropertySymbols&&!h(function(){var d=Symbol();return!String(d)||!(Object(d)instanceof Symbol)||!Symbol.sham&&u&&u<41})},SYor:function(m,E,e){"use strict";var u=e("I+eb"),h=e("WKiH").trim,d=e("yNLB");u({target:"String",proto:!0,forced:d("trim")},{trim:function(){return h(this)}})},TWQb:function(m,E,e){var u=e("/GqU"),h=e("I8vh"),d=e("B/qT"),p=function(y){return function(A,D,T){var x=u(A),S=d(x),C=h(T,S),I;if(y&&D!=D){for(;S>C;)if(I=x[C++],I!=I)return!0}else for(;S>C;C++)if((y||C in x)&&x[C]===D)return y||C||0;return!y&&-1}};m.exports={includes:p(!0),indexOf:p(!1)}},Ta7t:function(m,E,e){var u=e("2oRo"),h=e("I8vh"),d=e("B/qT"),p=e("hBjN"),y=u.Array,A=Math.max;m.exports=function(D,T,x){for(var S=d(D),C=h(T,S),I=h(x===void 0?S:x,S),W=y(A(I-C,0)),U=0;C0?h(u(d),9007199254740991):0}},UxlC:function(m,E,e){"use strict";var u=e("K6Rb"),h=e("xluM"),d=e("4zBA"),p=e("14Sl"),y=e("0Dky"),A=e("glrk"),D=e("Fib7"),T=e("WSbT"),x=e("UMSQ"),S=e("V37c"),C=e("HYAF"),I=e("iqWW"),W=e("3Eq5"),U=e("DLK6"),z=e("FMNM"),k=e("tiKp"),K=k("replace"),w=Math.max,Q=Math.min,L=d([].concat),nt=d([].push),M=d("".indexOf),R=d("".slice),V=function(X){return X===void 0?X:String(X)},j=function(){return"a".replace(/./,"$0")==="$0"}(),J=function(){return/./[K]?/./[K]("a","$0")==="":!1}(),tt=!y(function(){var X=/./;return X.exec=function(){var O=[];return O.groups={a:"7"},O},"".replace(X,"$")!=="7"});p("replace",function(X,O,H){var P=J?"$":"$0";return[function(Y,F){var G=C(this),at=Y==null?void 0:W(Y,K);return at?h(at,Y,G,F):h(O,S(G),Y,F)},function(N,Y){var F=A(this),G=S(N);if(typeof Y=="string"&&M(Y,P)===-1&&M(Y,"$<")===-1){var at=H(O,F,G,Y);if(at.done)return at.value}var q=D(Y);q||(Y=S(Y));var it=F.global;if(it){var ot=F.unicode;F.lastIndex=0}for(var dt=[];;){var lt=z(F,G);if(lt===null)break;if(nt(dt,lt),!it)break;var ft=S(lt[0]);ft===""&&(F.lastIndex=I(G,x(F.lastIndex),ot))}for(var Pt="",xt=0,gt=0;gt=xt&&(Pt+=R(G,xt,Rt)+Nt,xt=Rt+Dt.length)}return Pt+R(G,xt)}]},!tt||!j||J)},V37c:function(m,E,e){var u=e("2oRo"),h=e("9d/t"),d=u.String;m.exports=function(p){if(h(p)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return d(p)}},VpIT:function(m,E,e){var u=e("xDBR"),h=e("xs3f");(m.exports=function(d,p){return h[d]||(h[d]=p!==void 0?p:{})})("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"})},Vu81:function(m,E,e){var u=e("0GbY"),h=e("4zBA"),d=e("JBy8"),p=e("dBg+"),y=e("glrk"),A=h([].concat);m.exports=u("Reflect","ownKeys")||function(T){var x=d.f(y(T)),S=p.f;return S?A(x,S(T)):x}},WJkJ:function(m,E){m.exports=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},WKiH:function(m,E,e){var u=e("4zBA"),h=e("HYAF"),d=e("V37c"),p=e("WJkJ"),y=u("".replace),A="["+p+"]",D=RegExp("^"+A+A+"*"),T=RegExp(A+A+"*$"),x=function(S){return function(C){var I=d(h(C));return S&1&&(I=y(I,D,"")),S&2&&(I=y(I,T,"")),I}};m.exports={start:x(1),end:x(2),trim:x(3)}},WOGj:function(m,E){m.exports=function(e){this.ok=!1,this.alpha=1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e=e.replace(/ /g,""),e=e.toLowerCase();var u={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=u[e]||e;for(var h=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(x){return[parseInt(x[1]),parseInt(x[2]),parseInt(x[3]),parseFloat(x[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(x){return[parseInt(x[1]),parseInt(x[2]),parseInt(x[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(x){return[parseInt(x[1],16),parseInt(x[2],16),parseInt(x[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(x){return[parseInt(x[1]+x[1],16),parseInt(x[2]+x[2],16),parseInt(x[3]+x[3],16)]}}],d=0;d3&&(this.alpha=D[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 T=this.r.toString(16),x=this.g.toString(16),S=this.b.toString(16);return T.length==1&&(T="0"+T),x.length==1&&(x="0"+x),S.length==1&&(S="0"+S),"#"+T+x+S},this.getHelpXML=function(){for(var T=new Array,x=0;x "+z.toRGB()+" -> "+z.toHex());U.appendChild(k),U.appendChild(K),W.appendChild(U)}catch(Q){}return W}}},WSbT:function(m,E){var e=Math.ceil,u=Math.floor;m.exports=function(h){var d=+h;return d!==d||d===0?0:(d>0?u:e)(d)}},We1y:function(m,E,e){var u=e("2oRo"),h=e("Fib7"),d=e("DVFp"),p=u.TypeError;m.exports=function(y){if(h(y))return y;throw p(d(y)+" is not a function")}},WjRb:function(m,E,e){var u=e("2oRo"),h=e("ROdP"),d=u.TypeError;m.exports=function(p){if(h(p))throw d("The method doesn't accept regular expressions");return p}},XGwC:function(m,E){m.exports=function(e,u){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:u}}},Xnc8:function(m,E,e){var u=e("g6v/"),h=e("Gi26"),d=Function.prototype,p=u&&Object.getOwnPropertyDescriptor,y=h(d,"name"),A=y&&function(){}.name==="something",D=y&&(!u||u&&p(d,"name").configurable);m.exports={EXISTS:y,PROPER:A,CONFIGURABLE:D}},Xp4B:function(m,E,e){"use strict";e.d(E,"a",function(){return D});function u(I){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(U){return typeof U}:u=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},u(I)}function h(I,W){if(!(I instanceof W))throw new TypeError("Cannot call a class as a function")}var d=[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],p=[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,W,U,z,k,K){if(typeof I=="string"&&(I=document.getElementById(I)),!I||!("naturalWidth"in I))return;var w=k?"offset":"natural",Q=I[w+"Width"],L=I[w+"Height"];if(typeof W=="string"&&(W=document.getElementById(W)),!W||!("getContext"in W))return;K||(W.style.width=Q+"px",W.style.height=L+"px"),W.width=Q,W.height=L;var nt=W.getContext("2d");if(nt.clearRect(0,0,Q,L),nt.drawImage(I,0,0,I.naturalWidth,I.naturalHeight,0,0,Q,L),isNaN(U)||U<1)return;z?D(W,0,0,Q,L,U):x(W,0,0,Q,L,U)}function A(I,W,U,z,k){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 K=I.getContext("2d");try{return K.getImageData(W,U,z,k)}catch(w){throw new Error("unable to access image data: "+w)}}function D(I,W,U,z,k,K){if(isNaN(K)||K<1)return;K|=0;var w=A(I,W,U,z,k);w=T(w,W,U,z,k,K),I.getContext("2d").putImageData(w,W,U)}function T(I,W,U,z,k,K){for(var w=I.data,Q=2*K+1,L=z-1,nt=k-1,M=K+1,R=M*(M+1)/2,V=new C,j=V,J,tt=1;tt>Y;if(w[P+3]=Ht,Ht!==0){var qt=255/Ht;w[P]=(Ut*N>>Y)*qt,w[P+1]=(Tt*N>>Y)*qt,w[P+2]=(Ct*N>>Y)*qt}else w[P]=w[P+1]=w[P+2]=0;Ut-=xt,Tt-=gt,Ct-=Dt,Ft-=Rt,xt-=X.r,gt-=X.g,Dt-=X.b,Rt-=X.a;var Gt=Ot+K+1;Gt=H+(Gt>Y,Z>0?(Z=255/Z,w[Yt]=(wt*N>>Y)*Z,w[Yt+1]=(Jt*N>>Y)*Z,w[Yt+2]=(Kt*N>>Y)*Z):w[Yt]=w[Yt+1]=w[Yt+2]=0,wt-=ut,Jt-=vt,Kt-=mt,Xt-=bt,ut-=X.r,vt-=X.g,mt-=X.b,bt-=X.a,Yt=ae+((Yt=Se+M)>P,w[G+1]=xt*H>>P,w[G+2]=gt*H>>P,Pt-=dt,xt-=lt,gt-=ft,dt-=X.r,lt-=X.g,ft-=X.b,N=F+((N=Ft+K+1)>P,w[N+1]=Ht*H>>P,w[N+2]=qt*H>>P,Ot-=It,Ht-=At,qt-=St,It-=X.r,At-=X.g,St-=X.b,N=Nt+((N=ae+M)=U?x?"":void 0:(z=A(I,W),z<55296||z>56319||W+1===U||(k=A(I,W+1))<56320||k>57343?x?y(I,W):z:x?D(I,W,W+2):(z-55296<<10)+(k-56320)+65536)}};m.exports={codeAt:T(!1),charAt:T(!0)}},aO6C:function(m,E,e){var u=e("4zBA"),h=e("0Dky"),d=e("Fib7"),p=e("9d/t"),y=e("0GbY"),A=e("iSVu"),D=function(){},T=[],x=y("Reflect","construct"),S=/^\s*(?:class|function)\b/,C=u(S.exec),I=!S.exec(D),W=function(k){if(!d(k))return!1;try{return x(D,T,k),!0}catch(K){return!1}},U=function(k){if(!d(k))return!1;switch(p(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return I||!!C(S,A(k))}catch(K){return!0}};U.sham=!0,m.exports=!x||h(function(){var z;return W(W.call)||!W(Object)||!W(function(){z=!0})||z})?U:W},afO8:function(m,E,e){var u=e("f5p1"),h=e("2oRo"),d=e("4zBA"),p=e("hh1v"),y=e("kRJp"),A=e("Gi26"),D=e("xs3f"),T=e("93I0"),x=e("0BK2"),S="Object already initialized",C=h.TypeError,I=h.WeakMap,W,U,z,k=function(R){return z(R)?U(R):W(R,{})},K=function(R){return function(V){var j;if(!p(V)||(j=U(V)).type!==R)throw C("Incompatible receiver, "+R+" required");return j}};if(u||D.state){var w=D.state||(D.state=new I),Q=d(w.get),L=d(w.has),nt=d(w.set);W=function(R,V){if(L(w,R))throw new C(S);return V.facade=R,nt(w,R,V),V},U=function(R){return Q(w,R)||{}},z=function(R){return L(w,R)}}else{var M=T("state");x[M]=!0,W=function(R,V){if(A(R,M))throw new C(S);return V.facade=R,y(R,M,V),V},U=function(R){return A(R,M)?R[M]:{}},z=function(R){return A(R,M)}}m.exports={set:W,get:U,has:z,enforce:k,getterFor:K}},busE:function(m,E,e){var u=e("2oRo"),h=e("Fib7"),d=e("Gi26"),p=e("kRJp"),y=e("zk60"),A=e("iSVu"),D=e("afO8"),T=e("Xnc8").CONFIGURABLE,x=D.get,S=D.enforce,C=String(String).split("String");(m.exports=function(I,W,U,z){var k=z?!!z.unsafe:!1,K=z?!!z.enumerable:!1,w=z?!!z.noTargetGet:!1,Q=z&&z.name!==void 0?z.name:W,L;if(h(U)&&(String(Q).slice(0,7)==="Symbol("&&(Q="["+String(Q).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!d(U,"name")||T&&U.name!==Q)&&p(U,"name",Q),L=S(U),L.source||(L.source=C.join(typeof Q=="string"?Q:""))),I===u){K?I[W]=U:y(W,U);return}else k?!w&&I[W]&&(K=!0):delete I[W];K?I[W]=U:p(I,W,U)})(Function.prototype,"toString",function(){return h(this)&&x(this).source||A(this)})},"dBg+":function(m,E){E.f=Object.getOwnPropertySymbols},"eDl+":function(m,E){m.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},eFrH:function(m,E,e){var u=e("zBJ4"),h=u("span").classList,d=h&&h.constructor&&h.constructor.prototype;m.exports=d===Object.prototype?void 0:d},ewvW:function(m,E,e){var u=e("2oRo"),h=e("HYAF"),d=u.Object;m.exports=function(p){return d(h(p))}},f5p1:function(m,E,e){var u=e("2oRo"),h=e("Fib7"),d=e("iSVu"),p=u.WeakMap;m.exports=h(p)&&/native code/.test(d(p))},fHMY:function(m,E,e){var u=e("glrk"),h=e("N+g0"),d=e("eDl+"),p=e("0BK2"),y=e("G+Rx"),A=e("zBJ4"),D=e("93I0"),T=">",x="<",S="prototype",C="script",I=D("IE_PROTO"),W=function(){},U=function(Q){return x+C+T+Q+x+"/"+C+T},z=function(Q){Q.write(U("")),Q.close();var L=Q.parentWindow.Object;return Q=null,L},k=function(){var Q=A("iframe"),L="java"+C+":",nt;return Q.style.display="none",y.appendChild(Q),Q.src=String(L),nt=Q.contentWindow.document,nt.open(),nt.write(U("document.F=Object")),nt.close(),nt.F},K,w=function(){try{K=new ActiveXObject("htmlfile")}catch(L){}w=typeof document!="undefined"?document.domain&&K?z(K):k():z(K);for(var Q=d.length;Q--;)delete w[S][d[Q]];return w()};p[I]=!0,m.exports=Object.create||function(L,nt){var M;return L!==null?(W[S]=u(L),M=new W,W[S]=null,M[I]=L):M=w(),nt===void 0?M:h.f(M,nt)}},fdAy:function(m,E,e){"use strict";var u=e("I+eb"),h=e("xluM"),d=e("xDBR"),p=e("Xnc8"),y=e("Fib7"),A=e("ntOU"),D=e("4WOD"),T=e("0rvr"),x=e("1E5z"),S=e("kRJp"),C=e("busE"),I=e("tiKp"),W=e("P4y1"),U=e("rpNk"),z=p.PROPER,k=p.CONFIGURABLE,K=U.IteratorPrototype,w=U.BUGGY_SAFARI_ITERATORS,Q=I("iterator"),L="keys",nt="values",M="entries",R=function(){return this};m.exports=function(V,j,J,tt,X,O,H){A(J,j,tt);var P=function(lt){if(lt===X&&at)return at;if(!w&< in F)return F[lt];switch(lt){case L:return function(){return new J(this,lt)};case nt:return function(){return new J(this,lt)};case M:return function(){return new J(this,lt)}}return function(){return new J(this)}},N=j+" Iterator",Y=!1,F=V.prototype,G=F[Q]||F["@@iterator"]||X&&F[X],at=!w&&G||P(X),q=j=="Array"&&F.entries||G,it,ot,dt;if(q&&(it=D(q.call(new V)),it!==Object.prototype&&it.next&&(!d&&D(it)!==K&&(T?T(it,K):y(it[Q])||C(it,Q,R)),x(it,N,!0,!0),d&&(W[N]=R))),z&&X==nt&&G&&G.name!==nt&&(!d&&k?S(F,"name",nt):(Y=!0,at=function(){return h(G,this)})),X)if(ot={values:P(nt),keys:O?at:P(L),entries:P(M)},H)for(dt in ot)(w||Y||!(dt in F))&&C(F,dt,ot[dt]);else u({target:j,proto:!0,forced:w||Y},ot);return(!d||H)&&F[Q]!==at&&C(F,Q,at,{name:X}),W[j]=at,ot}},"g6v/":function(m,E,e){var u=e("0Dky");m.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},glrk:function(m,E,e){var u=e("2oRo"),h=e("hh1v"),d=u.String,p=u.TypeError;m.exports=function(y){if(h(y))return y;throw p(d(y)+" is not an object")}},hBjN:function(m,E,e){"use strict";var u=e("oEtG"),h=e("m/L8"),d=e("XGwC");m.exports=function(p,y,A){var D=u(y);D in p?h.f(p,D,d(0,A)):p[D]=A}},hh1v:function(m,E,e){var u=e("Fib7");m.exports=function(h){return typeof h=="object"?h!==null:u(h)}},iSVu:function(m,E,e){var u=e("4zBA"),h=e("Fib7"),d=e("xs3f"),p=u(Function.toString);h(d.inspectSource)||(d.inspectSource=function(y){return p(y)}),m.exports=d.inspectSource},inlA:function(m,E,e){"use strict";var u=e("I+eb"),h=e("4zBA"),d=e("Bs8V").f,p=e("UMSQ"),y=e("V37c"),A=e("WjRb"),D=e("HYAF"),T=e("qxPZ"),x=e("xDBR"),S=h("".endsWith),C=h("".slice),I=Math.min,W=T("endsWith"),U=!x&&!W&&!!function(){var z=d(String.prototype,"endsWith");return z&&!z.writable}();u({target:"String",proto:!0,forced:!U&&!W},{endsWith:function(k){var K=y(D(this));A(k);var w=arguments.length>1?arguments[1]:void 0,Q=K.length,L=w===void 0?Q:I(p(w),Q),nt=y(k);return S?S(K,nt,L):C(K,L-nt.length,L)===nt}})},iqWW:function(m,E,e){"use strict";var u=e("ZUd8").charAt;m.exports=function(h,d,p){return d+(p?u(h,d).length:1)}},kOOl:function(m,E,e){var u=e("4zBA"),h=0,d=Math.random(),p=u(1 .toString);m.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+p(++h+d,36)}},kRJp:function(m,E,e){var u=e("g6v/"),h=e("m/L8"),d=e("XGwC");m.exports=u?function(p,y,A){return h.f(p,y,d(1,A))}:function(p,y,A){return p[y]=A,p}},kmMV:function(m,E,e){"use strict";var u=e("xluM"),h=e("4zBA"),d=e("V37c"),p=e("rW0t"),y=e("n3/R"),A=e("VpIT"),D=e("fHMY"),T=e("afO8").get,x=e("/OPJ"),S=e("EHx7"),C=A("native-string-replace",String.prototype.replace),I=RegExp.prototype.exec,W=I,U=h("".charAt),z=h("".indexOf),k=h("".replace),K=h("".slice),w=function(){var M=/a/,R=/b*/g;return u(I,M,"a"),u(I,R,"a"),M.lastIndex!==0||R.lastIndex!==0}(),Q=y.BROKEN_CARET,L=/()??/.exec("")[1]!==void 0,nt=w||L||Q||x||S;nt&&(W=function(R){var V=this,j=T(V),J=d(R),tt=j.raw,X,O,H,P,N,Y,F;if(tt)return tt.lastIndex=V.lastIndex,X=u(W,tt,J),V.lastIndex=tt.lastIndex,X;var G=j.groups,at=Q&&V.sticky,q=u(p,V),it=V.source,ot=0,dt=J;if(at&&(q=k(q,"y",""),z(q,"g")===-1&&(q+="g"),dt=K(J,V.lastIndex),V.lastIndex>0&&(!V.multiline||V.multiline&&U(J,V.lastIndex-1)!==` `)&&(it="(?: "+it+")",dt=" "+dt,ot++),O=new RegExp("^(?:"+it+")",q)),L&&(O=new RegExp("^"+it+"$(?!\\s)",q)),w&&(H=V.lastIndex),P=u(I,at?O:V,dt),at?P?(P.input=K(P.input,ot),P[0]=K(P[0],ot),P.index=V.lastIndex,V.lastIndex+=P[0].length):V.lastIndex=0:w&&P&&(V.lastIndex=V.global?P.index+P[0].length:H),L&&P&&P.length>1&&u(C,P[0],O,function(){for(N=1;N1?arguments[1]:void 0;return A?y(this,x,S)||0:d(this,x,S)}})},yoRg:function(m,E,e){var u=e("4zBA"),h=e("Gi26"),d=e("/GqU"),p=e("TWQb").indexOf,y=e("0BK2"),A=u([].push);m.exports=function(D,T){var x=d(D),S=0,C=[],I;for(I in x)!h(y,I)&&h(x,I)&&A(C,I);for(;T.length>S;)h(x,I=T[S++])&&(~p(C,I)||A(C,I));return C}},zBJ4:function(m,E,e){var u=e("2oRo"),h=e("hh1v"),d=u.document,p=h(d)&&h(d.createElement);m.exports=function(y){return p?d.createElement(y):{}}},zfnd:function(m,E,e){var u=e("glrk"),h=e("hh1v"),d=e("8GlL");m.exports=function(p,y){if(u(p),h(y)&&y.constructor===p)return y;var A=d.f(p),D=A.resolve;return D(y),A.promise}},zk60:function(m,E,e){var u=e("2oRo"),h=Object.defineProperty;m.exports=function(d,p){try{h(u,d,{value:p,configurable:!0,writable:!0})}catch(y){u[d]=p}return p}}}]);