From dedc54b4b188c1e89430e398a14d6816c45ebca6 Mon Sep 17 00:00:00 2001 From: mtw <382160702@qq.com> Date: Fri, 30 Sep 2022 17:17:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E5=8D=B7=E5=88=86=E6=9E=90=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 237.25a4dc94.async.js | 18 - 237.ff203ed6.async.js | 18 + 242.1139eb3a.async.js | 3 + 242.d23b9cfd.async.js | 3 - index.html | 2 +- ..._Exercise__Detail__index.5d604364.async.js | 16 - ..._Exercise__Detail__index.cc755bee.async.js | 16 + ...Exercise__Detail__index.ed1ae791.chunk.css | 2 +- ...Template__teacher__index.be6fa83f.async.js | 2 +- p__Paths__Detail__id.40f1c562.async.js | 60 ++ p__Paths__Detail__id.d372f6ad.async.js | 66 -- ...ail__UserPortrait__index.241d4da4.async.js | 7 - ...ail__UserPortrait__index.2aeaf666.async.js | 1 + umi.6f7252d8.js => umi.e3b57b0a.js | 410 ++++---- vendors.20c838d7.async.js | 951 ----------------- vendors.763809b9.async.js | 957 ++++++++++++++++++ 16 files changed, 1263 insertions(+), 1269 deletions(-) delete mode 100644 237.25a4dc94.async.js create mode 100644 237.ff203ed6.async.js create mode 100644 242.1139eb3a.async.js delete mode 100644 242.d23b9cfd.async.js delete mode 100644 p__Classrooms__Lists__Exercise__Detail__index.5d604364.async.js create mode 100644 p__Classrooms__Lists__Exercise__Detail__index.cc755bee.async.js rename p__Classrooms__Lists__Exercise__Detail__index.b2459901.chunk.css => p__Classrooms__Lists__Exercise__Detail__index.ed1ae791.chunk.css (98%) rename p__Classrooms__Lists__Template__teacher__index.7f4d31c3.async.js => p__Classrooms__Lists__Template__teacher__index.be6fa83f.async.js (76%) create mode 100644 p__Paths__Detail__id.40f1c562.async.js delete mode 100644 p__Paths__Detail__id.d372f6ad.async.js delete mode 100644 p__User__Detail__UserPortrait__index.241d4da4.async.js create mode 100644 p__User__Detail__UserPortrait__index.2aeaf666.async.js rename umi.6f7252d8.js => umi.e3b57b0a.js (71%) delete mode 100644 vendors.20c838d7.async.js create mode 100644 vendors.763809b9.async.js diff --git a/237.25a4dc94.async.js b/237.25a4dc94.async.js deleted file mode 100644 index a98e7cc6c4..0000000000 --- a/237.25a4dc94.async.js +++ /dev/null @@ -1,18 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[237],{"++4Y":function(m,x,e){var u=e("eRwv");m.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"/TZh":function(m,x,e){var u=e("11yv"),h=u("match");m.exports=function(d){var g=/./;try{"/./"[d](g)}catch(y){try{return g[h]=!1,"/./"[d](g)}catch(T){}}return!1}},"/dXc":function(m,x){var e=Math.ceil,u=Math.floor;m.exports=Math.trunc||function(d){var g=+d;return(g>0?u:e)(g)}},"/pbl":function(m,x,e){var u=e("eE3R");m.exports=/web0s(?!.*chrome)/i.test(u)},"0B/8":function(m,x,e){"use strict";e.d(x,"a",function(){return w});/*! ***************************************************************************** -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(S,U){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,tt){I.__proto__=tt}||function(I,tt){for(var at in tt)Object.prototype.hasOwnProperty.call(tt,at)&&(I[at]=tt[at])})(S,U)};function h(R,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function U(){this.constructor=R}u(R,S),R.prototype=S===null?Object.create(S):(U.prototype=S.prototype,new U)}function d(R){var S="";Array.isArray(R)||(R=[R]);for(var U=0;UR.phi1&&(R.phi2-=2*T),R.sweepFlag===1&&R.phi2I)return[];if(I===0)return[[R*U/(R*R+S*S),S*U/(R*R+S*S)]];var tt=Math.sqrt(I);return[[(R*U+S*tt)/(R*R+S*S),(S*U-R*tt)/(R*R+S*S)],[(R*U-S*tt)/(R*R+S*S),(S*U+R*tt)/(R*R+S*S)]]}var P,M=Math.PI/180;function G(R,S,U){return(1-U)*R+U*S}function j(R,S,U,I){return R+Math.cos(I/180*T)*S+Math.sin(I/180*T)*U}function F(R,S,U,I){var tt=1e-6,at=S-R,Z=U-S,O=3*at+3*(I-U)-6*Z,$=6*(Z-at),b=3*at;return Math.abs(O)Ot&&(z.sweepFlag=+!z.sweepFlag),z})}function Z(){return function(O){var $={};for(var b in O)$[b]=O[b];return $}}R.ROUND=function(O){function $(b){return Math.round(b*O)/O}return O===void 0&&(O=1e13),y(O),function(b){return b.x1!==void 0&&(b.x1=$(b.x1)),b.y1!==void 0&&(b.y1=$(b.y1)),b.x2!==void 0&&(b.x2=$(b.x2)),b.y2!==void 0&&(b.y2=$(b.y2)),b.x!==void 0&&(b.x=$(b.x)),b.y!==void 0&&(b.y=$(b.y)),b.rX!==void 0&&(b.rX=$(b.rX)),b.rY!==void 0&&(b.rY=$(b.rY)),b}},R.TO_ABS=S,R.TO_REL=function(){return tt(function(O,$,b){return O.relative||(O.x1!==void 0&&(O.x1-=$),O.y1!==void 0&&(O.y1-=b),O.x2!==void 0&&(O.x2-=$),O.y2!==void 0&&(O.y2-=b),O.x!==void 0&&(O.x-=$),O.y!==void 0&&(O.y-=b),O.relative=!0),O})},R.NORMALIZE_HVZ=function(O,$,b){return O===void 0&&(O=!0),$===void 0&&($=!0),b===void 0&&(b=!0),tt(function(A,H,B,z,Q){if(isNaN(z)&&!(A.type&w.MOVE_TO))throw new Error("path must start with moveto");return $&&A.type&w.HORIZ_LINE_TO&&(A.type=w.LINE_TO,A.y=A.relative?0:B),b&&A.type&w.VERT_LINE_TO&&(A.type=w.LINE_TO,A.x=A.relative?0:H),O&&A.type&w.CLOSE_PATH&&(A.type=w.LINE_TO,A.x=A.relative?z-H:z,A.y=A.relative?Q-B:Q),A.type&w.ARC&&(A.rX===0||A.rY===0)&&(A.type=w.LINE_TO,delete A.rX,delete A.rY,delete A.xRot,delete A.lArcFlag,delete A.sweepFlag),A})},R.NORMALIZE_ST=U,R.QT_TO_C=I,R.INFO=tt,R.SANITIZE=function(O){O===void 0&&(O=0),y(O);var $=NaN,b=NaN,A=NaN,H=NaN;return tt(function(B,z,Q,Y,X){var J=Math.abs,ut=!1,ct=0,vt=0;if(B.type&w.SMOOTH_CURVE_TO&&(ct=isNaN($)?0:z-$,vt=isNaN(b)?0:Q-b),B.type&(w.CURVE_TO|w.SMOOTH_CURVE_TO)?($=B.relative?z+B.x2:B.x2,b=B.relative?Q+B.y2:B.y2):($=NaN,b=NaN),B.type&w.SMOOTH_QUAD_TO?(A=isNaN(A)?z:2*z-A,H=isNaN(H)?Q:2*Q-H):B.type&w.QUAD_TO?(A=B.relative?z+B.x1:B.x1,H=B.relative?Q+B.y1:B.y2):(A=NaN,H=NaN),B.type&w.LINE_COMMANDS||B.type&w.ARC&&(B.rX===0||B.rY===0||!B.lArcFlag)||B.type&w.CURVE_TO||B.type&w.SMOOTH_CURVE_TO||B.type&w.QUAD_TO||B.type&w.SMOOTH_QUAD_TO){var Dt=B.x===void 0?0:B.relative?B.x:B.x-z,Pt=B.y===void 0?0:B.relative?B.y:B.y-Q;ct=isNaN(A)?B.x1===void 0?ct:B.relative?B.x:B.x1-z:A-z,vt=isNaN(H)?B.y1===void 0?vt:B.relative?B.y:B.y1-Q:H-Q;var Ot=B.x2===void 0?0:B.relative?B.x:B.x2-z,jt=B.y2===void 0?0:B.relative?B.y:B.y2-Q;J(Dt)<=O&&J(Pt)<=O&&J(ct)<=O&&J(vt)<=O&&J(Ot)<=O&&J(jt)<=O&&(ut=!0)}return B.type&w.CLOSE_PATH&&J(z-Y)<=O&&J(Q-X)<=O&&(ut=!0),ut?[]:B})},R.MATRIX=at,R.ROTATE=function(O,$,b){$===void 0&&($=0),b===void 0&&(b=0),y(O,$,b);var A=Math.sin(O),H=Math.cos(O);return at(H,A,-A,H,$-$*H+b*A,b-$*A-b*H)},R.TRANSLATE=function(O,$){return $===void 0&&($=0),y(O,$),at(1,0,0,1,O,$)},R.SCALE=function(O,$){return $===void 0&&($=O),y(O,$),at(O,0,0,$,0,0)},R.SKEW_X=function(O){return y(O),at(1,0,Math.atan(O),1,0,0)},R.SKEW_Y=function(O){return y(O),at(1,Math.atan(O),0,1,0,0)},R.X_AXIS_SYMMETRY=function(O){return O===void 0&&(O=0),y(O),at(-1,0,0,1,O,0)},R.Y_AXIS_SYMMETRY=function(O){return O===void 0&&(O=0),y(O),at(1,0,0,-1,0,O)},R.A_TO_C=function(){return tt(function(O,$,b){return w.ARC===O.type?function(A,H,B){var z,Q,Y,X;A.cX||C(A,H,B);for(var J=Math.min(A.phi1,A.phi2),ut=Math.max(A.phi1,A.phi2)-J,ct=Math.ceil(ut/90),vt=new Array(ct),Dt=H,Pt=B,Ot=0;OtH.maxX&&(H.maxX=Tt),TtH.maxY&&(H.maxY=Tt),TtNt&&X(V(z,Y.x1,Y.x2,Y.x,Nt));for(var vt=0,Dt=F(Q,Y.y1,Y.y2,Y.y);vtNt&&J(V(Q,Y.y1,Y.y2,Y.y,Nt))}if(Y.type&w.ARC){X(Y.x),J(Y.y),C(Y,z,Q);for(var Pt=Y.xRot/180*Math.PI,Ot=Math.cos(Pt)*Y.rX,jt=Math.sin(Pt)*Y.rX,Lt=-Math.sin(Pt)*Y.rY,Gt=Math.cos(Pt)*Y.rY,Mt=Y.phi1Y.phi2?[Y.phi2+360,Y.phi1+360]:[Y.phi2,Y.phi1],Vt=Mt[0],Ct=Mt[1],Ft=function($t){var ot=$t[0],pt=$t[1],bt=180*Math.atan2(pt,ot)/Math.PI;return btVt&&NtVt&&NtA)throw new SyntaxError('Expected positive number, got "'+A+'" at index "'+Z+'"')}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 "'+Z+'"')}this.curArgs.push(A),this.curArgs.length===st[this.curCommandType]&&(w.HORIZ_LINE_TO===this.curCommandType?at({type:w.HORIZ_LINE_TO,relative:this.curCommandRelative,x:A}):w.VERT_LINE_TO===this.curCommandType?at({type:w.VERT_LINE_TO,relative:this.curCommandRelative,y:A}):this.curCommandType===w.MOVE_TO||this.curCommandType===w.LINE_TO||this.curCommandType===w.SMOOTH_QUAD_TO?(at({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),w.MOVE_TO===this.curCommandType&&(this.curCommandType=w.LINE_TO)):this.curCommandType===w.CURVE_TO?at({type:w.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===w.SMOOTH_CURVE_TO?at({type:w.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.QUAD_TO?at({type:w.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.ARC&&at({type:w.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!et(O))if(O===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(O!=="+"&&O!=="-"&&O!==".")if(b)this.curNumber=O,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+Z+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+O+'" at index '+Z+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,O!=="z"&&O!=="Z")if(O==="h"||O==="H")this.curCommandType=w.HORIZ_LINE_TO,this.curCommandRelative=O==="h";else if(O==="v"||O==="V")this.curCommandType=w.VERT_LINE_TO,this.curCommandRelative=O==="v";else if(O==="m"||O==="M")this.curCommandType=w.MOVE_TO,this.curCommandRelative=O==="m";else if(O==="l"||O==="L")this.curCommandType=w.LINE_TO,this.curCommandRelative=O==="l";else if(O==="c"||O==="C")this.curCommandType=w.CURVE_TO,this.curCommandRelative=O==="c";else if(O==="s"||O==="S")this.curCommandType=w.SMOOTH_CURVE_TO,this.curCommandRelative=O==="s";else if(O==="q"||O==="Q")this.curCommandType=w.QUAD_TO,this.curCommandRelative=O==="q";else if(O==="t"||O==="T")this.curCommandType=w.SMOOTH_QUAD_TO,this.curCommandRelative=O==="t";else{if(O!=="a"&&O!=="A")throw new SyntaxError('Unexpected character "'+O+'" at index '+Z+".");this.curCommandType=w.ARC,this.curCommandRelative=O==="a"}else I.push({type:w.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 I},S.prototype.transform=function(U){return Object.create(this,{parse:{value:function(tt,at){at===void 0&&(at=[]);for(var Z=0,O=Object.getPrototypeOf(this).parse.call(this,tt);Z=0;--St){var yt=this.tryEntries[St],Ht=yt.completion;if(yt.tryLoc==="root")return gt("end");if(yt.tryLoc<=this.prev){var ae=n.call(yt,"catchLoc"),oe=n.call(yt,"finallyLoc");if(ae&&oe){if(this.prev=0;--gt){var St=this.tryEntries[gt];if(St.tryLoc<=this.prev&&n.call(St,"finallyLoc")&&this.prev=0;--ht){var gt=this.tryEntries[ht];if(gt.finallyLoc===q)return this.complete(gt.completion,gt.afterLoc),wt(gt),c}},catch:function(q){for(var ht=this.tryEntries.length-1;ht>=0;--ht){var gt=this.tryEntries[ht];if(gt.tryLoc===q){var St=gt.completion;if(St.type==="throw"){var yt=St.arg;wt(gt)}return yt}}throw new Error("illegal catch attempt")},delegateYield:function(q,ht,gt){return this.delegate={iterator:Qt(q),resultName:ht,nextLoc:gt},this.method==="next"&&(this.arg=void 0),c}},v}function Ft(){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 vt()(Ct().mark(function i(){var r,o,s;return Ct().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 zt(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 Yt=Object.freeze({__proto__:null,offscreen:Ft,node:zt});function Ut(v){return v.replace(/(?!\u3000)\s+/gm," ")}function Jt(v){return v.replace(/^[\n \t]+/,"")}function Nt(v){return v.replace(/[\n \t]+$/,"")}function Tt(v){var f=(v||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return f.map(parseFloat)}var $t=/^[A-Z-]+$/;function ot(v){return $t.test(v)?v.toLowerCase():v}function pt(v){var f=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(v)||[];return f[2]||f[3]||f[4]}function bt(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 Rt=/(\[[^\]]+\])/g,It=/(#[^\s+>~.[:]+)/g,re=/(\.[^\s+>~.[:]+)/g,se=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,le=/(:[\w-]+\([^)]*\))/gi,qt=/(:[^\s+>~.[:]+)/g,fe=/([^\s+>~.[:]+)/g;function ee(v,f){var n=f.exec(v);return n?[v.replace(f," "),n.length]:[v,0]}function he(v){var f=[0,0,0],n=v.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,t=ee(n,Rt),i=Object(ut.a)(t,2);n=i[0],a=i[1],f[1]+=a;var r=ee(n,It),o=Object(ut.a)(r,2);n=o[0],a=o[1],f[0]+=a;var s=ee(n,re),l=Object(ut.a)(s,2);n=l[0],a=l[1],f[1]+=a;var c=ee(n,se),p=Object(ut.a)(c,2);n=p[0],a=p[1],f[2]+=a;var E=ee(n,le),D=Object(ut.a)(E,2);n=D[0],a=D[1],f[1]+=a;var K=ee(n,qt),_=Object(ut.a)(K,2);n=_[0],a=_[1],f[1]+=a,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," ");var it=ee(n,fe),rt=Object(ut.a)(it,2);return n=rt[0],a=rt[1],f[2]+=a,f.join("")}var kt=1e-8;function Te(v){return Math.sqrt(Math.pow(v[0],2)+Math.pow(v[1],2))}function pe(v,f){return(v[0]*f[0]+v[1]*f[1])/(Te(v)*Te(f))}function Pe(v,f){return(v[0]*f[1]0&&arguments[0]!==void 0?arguments[0]:" ",a=this.document,t=this.name;return Ut(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=bt(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(ut.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=Tt(n),i=Object(ut.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=Tt(n),i=Object(ut.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=Tt(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 Xt(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}(),Ce=typeof window!="undefined"?window:null,Re=typeof fetch!="undefined"?fetch.bind(void 0):null,de=function(){function v(f){Object(X.a)(this,v);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.fetch,t=a===void 0?Re:a,i=n.window,r=i===void 0?Ce:i;this.ctx=f,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Me,this.mouse=new je(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(J.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,p=c===void 0?0:c,E=n.minY,D=E===void 0?0:E,K=n.refX,_=n.refY,it=n.clip,rt=it===void 0?!1:it,xt=n.clipX,dt=xt===void 0?0:xt,ft=n.clipY,Et=ft===void 0?0:ft,wt=Ut(i).replace(/^defer\s/,""),Bt=wt.split(" "),Qt=Object(ut.a)(Bt,2),ie=Qt[0],lt=Qt[1],q=ie||"xMidYMid",ht=lt||"meet",gt=r/o,St=s/l,yt=Math.min(gt,St),Ht=Math.max(gt,St),ae=o,oe=l;ht==="meet"&&(ae*=yt,oe*=yt),ht==="slice"&&(ae*=Ht,oe*=Ht);var Wt=new mt(a,"refX",K),te=new mt(a,"refY",_),ue=Wt.hasValue()&&te.hasValue();if(ue&&t.translate(-yt*Wt.getPixels("x"),-yt*te.getPixels("y")),rt){var Be=yt*dt,Fe=yt*Et;t.beginPath(),t.moveTo(Be,Fe),t.lineTo(r,Fe),t.lineTo(r,s),t.lineTo(Be,s),t.closePath(),t.clip()}if(!ue){var Ue=ht==="meet"&&yt===St,be=ht==="slice"&&Ht===St,$r=ht==="meet"&&yt===gt,Yr=ht==="slice"&&Ht===gt;q.startsWith("xMid")&&(Ue||be)&&t.translate(r/2-ae/2,0),q.endsWith("YMid")&&($r||Yr)&&t.translate(0,s/2-oe/2),q.startsWith("xMax")&&(Ue||be)&&t.translate(r-ae,0),q.endsWith("YMax")&&($r||Yr)&&t.translate(0,s-oe)}switch(!0){case q==="none":t.scale(gt,St);break;case ht==="meet":t.scale(yt,yt);break;case ht==="slice":t.scale(Ht,Ht);break}t.translate(-p,-D)}},{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,p=t.ignoreDimensions,E=p===void 0?!1:p,D=t.ignoreClear,K=D===void 0?!1:D,_=t.forceRedraw,it=t.scaleWidth,rt=t.scaleHeight,xt=t.offsetX,dt=t.offsetY,ft=this.FRAMERATE,Et=this.mouse,wt=1e3/ft;if(this.frameDuration=wt,this.readyPromise=new Promise(function(q){a.resolveReady=q}),this.isReady()&&this.render(n,E,K,it,rt,xt,dt),!r)return;var Bt=Date.now(),Qt=Bt,ie=0,lt=function q(){Bt=Date.now(),ie=Bt-Qt,ie>=wt&&(Qt=Bt-ie%wt,a.shouldUpdate(c,_)&&(a.render(n,E,K,it,rt,xt,dt),Et.runEvents())),a.intervalId=jt()(q)};s||Et.start(),this.intervalId=jt()(lt)}},{key:"stop",value:function(){this.intervalId&&(jt.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,p=this.viewPort,E=this.ctx,D=this.isFirstRender,K=E.canvas;p.clear(),K.width&&K.height?p.setCurrent(K.width,K.height):p.setCurrent(l,c);var _=n.getStyle("width"),it=n.getStyle("height");!a&&(D||typeof i!="number"&&typeof r!="number")&&(_.hasValue()&&(K.width=_.getPixels("x"),K.style&&(K.style.width="".concat(K.width,"px"))),it.hasValue()&&(K.height=it.getPixels("y"),K.style&&(K.style.height="".concat(K.height,"px"))));var rt=K.clientWidth||K.width,xt=K.clientHeight||K.height;if(a&&_.hasValue()&&it.hasValue()&&(rt=_.getPixels("x"),xt=it.getPixels("y")),p.setCurrent(rt,xt),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 dt=Tt(n.getAttribute("viewBox").getString()),ft=0,Et=0;if(typeof i=="number"){var wt=n.getStyle("width");wt.hasValue()?ft=wt.getPixels("x")/i:isNaN(dt[2])||(ft=dt[2]/i)}if(typeof r=="number"){var Bt=n.getStyle("height");Bt.hasValue()?Et=Bt.getPixels("y")/r:isNaN(dt[3])||(Et=dt[3]/r)}ft||(ft=Et),Et||(Et=ft),n.getAttribute("width",!0).setValue(i),n.getAttribute("height",!0).setValue(r);var Qt=n.getStyle("transform",!0,!0);Qt.setValue("".concat(Qt.getString()," scale(").concat(1/ft,", ").concat(1/Et,")"))}t||E.clearRect(0,0,rt,xt),n.render(E),D&&(this.isFirstRender=!1)}}]),v}();de.defaultWindow=Ce,de.defaultFetch=Re;var ne=de.defaultFetch,Kr=typeof DOMParser!="undefined"?DOMParser:null,We=function(){function v(){Object(X.a)(this,v);var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=f.fetch,a=n===void 0?ne:n,t=f.DOMParser,i=t===void 0?Kr:t;this.fetch=a,this.DOMParser=i}return Object(J.a)(v,[{key:"parse",value:function(n){var a=this;return vt()(Ct().mark(function t(){return Ct().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 vt()(Ct().mark(function t(){var i,r;return Ct().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}(),ar=function(){function v(f,n){Object(X.a)(this,v),this.type="translate",this.point=null,this.point=Xt.parse(n)}return Object(J.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}(),ir=function(){function v(f,n,a){Object(X.a)(this,v),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var t=Tt(n);this.angle=new mt(f,"angle",t[0]),this.originX=a[0],this.originY=a[1],this.cx=t[1]||0,this.cy=t[2]||0}return Object(J.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}(),or=function(){function v(f,n,a){Object(X.a)(this,v),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var t=Xt.parseScale(n);(t.x===0||t.y===0)&&(t.x=kt,t.y=kt),this.scale=t,this.originX=a[0],this.originY=a[1]}return Object(J.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}(),Ke=function(){function v(f,n,a){Object(X.a)(this,v),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Tt(n),this.originX=a[0],this.originY=a[1]}return Object(J.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],p=i[5],E=0,D=0,K=1,_=1/(r*(c*K-p*D)-o*(l*K-p*E)+s*(l*D-c*E)),it=a.getPixels("x"),rt=t.getPixels("y");n.translate(it,rt),n.transform(_*(c*K-p*D),_*(p*E-l*K),_*(s*D-o*K),_*(r*K-s*E),_*(o*p-s*c),_*(s*l-r*p)),n.translate(-it,-rt)}},{key:"applyToPoint",value:function(n){n.applyTransform(this.matrix)}}]),v}(),ke=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="skew",r.angle=null,r.angle=new mt(a,"angle",t),r}return Object(J.a)(n)}(Ke),sr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.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 Object(J.a)(n)}(ke),lr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.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 Object(J.a)(n)}(ke);function kr(v){return Ut(v).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Xr(v){var f=v.split("("),n=Object(ut.a)(f,2),a=n[0],t=n[1];return[a.trim(),t.trim().replace(")","")]}var we=function(){function v(f,n,a){var t=this;Object(X.a)(this,v),this.document=f,this.transforms=[];var i=kr(n);i.forEach(function(r){if(r==="none")return;var o=Xr(r),s=Object(ut.a)(o,2),l=s[0],c=s[1],p=v.transformTypes[l];typeof p!="undefined"&&t.transforms.push(new p(t.document,c,a))})}return Object(J.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=ot(s.nodeName);a.attributes[l]=new mt(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(D){return D.trim()}),c=Object(ut.a)(l,2),p=c[0],E=c[1];a.styles[p]=new mt(f,p,E)})}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(J.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 mt(this.document,n,"");return this.attributes[n]=i,i}return t||mt.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var n in this.attributes)if(n==="href"||n.endsWith(":href"))return this.attributes[n];return mt.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 mt(this.document,n,"");return this.styles[n]=l,l}return i||mt.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=we.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,t=this.node;if(typeof t.matches=="function")return t.matches(n);var i=(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"class");return!i||i===""?!1:i.split(" ").some(function(r){return".".concat(r)===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(z.a)(i),[[r,s]])},[]);return t}},{key:"restoreStyles",value:function(n,a){a.forEach(function(t){var i=Object(ut.a)(t,2),r=i[0],o=i[1];n.getStyle(r,!0).setValue(o)})}},{key:"isFirstChild",value:function(){var n;return((n=this.parent)===null||n===void 0?void 0:n.children.indexOf(this))===0}}]),v}();Kt.ignoreChildTypes=["title"];var ur=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){return Object(X.a)(this,n),f.call(this,a,t,i)}return Object(J.a)(n)}(Kt);function Qr(v){var f=v.trim();return/^('|")/.test(f)?f:'"'.concat(f,'"')}function Jr(v){return typeof u=="undefined"?v:v.trim().split(",").map(Qr).join(",")}function Zr(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 qr(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 ve=function(){function v(f,n,a,t,i,r){Object(X.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(J.a)(v,[{key:"toString",value:function(){return[Zr(this.fontStyle),this.fontVariant,qr(this.fontWeight),this.fontSize,Jr(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=Ut(n).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(function(p){switch(!0){case(!c.fontStyle&&v.styles.includes(p)):p!=="inherit"&&(t=p),c.fontStyle=!0;break;case(!c.fontVariant&&v.variants.includes(p)):p!=="inherit"&&(i=p),c.fontStyle=!0,c.fontVariant=!0;break;case(!c.fontWeight&&v.weights.includes(p)):p!=="inherit"&&(r=p),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:if(p!=="inherit"){var E=p.split("/"),D=Object(ut.a)(E,1);o=D[0]}c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:p!=="inherit"&&(s+=p)}}),new v(t,i,r,o,s,a)}}]),v}();ve.styles="normal|italic|oblique|inherit",ve.variants="normal|small-caps|inherit",ve.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var ce=function(){function v(){Object(X.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(J.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 Xt(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!==Mt.a.CURVE_TO&&t!==Mt.a.SMOOTH_CURVE_TO&&t!==Mt.a.QUAD_TO&&t!==Mt.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,p=new Xt(2*r-l,2*o-c);return p}},{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 p=r.getColor();p!=="inherit"&&(t.fillStyle=p==="none"?"rgba(0,0,0,0)":p)}if(o.hasValue()){var E=new mt(this.document,"fill",t.fillStyle).addOpacity(o).getColor();t.fillStyle=E}if(s.isUrlDefinition()){var D=s.getFillStyleDefinition(this,l);D&&(t.strokeStyle=D)}else if(s.hasValue()){s.getString()==="currentColor"&&s.setValue(this.getStyle("color").getColor());var K=s.getString();K!=="inherit"&&(t.strokeStyle=K==="none"?"rgba(0,0,0,0)":K)}if(l.hasValue()){var _=new mt(this.document,"stroke",t.strokeStyle).addOpacity(l).getString();t.strokeStyle=_}var it=this.getStyle("stroke-width");if(it.hasValue()){var rt=it.getPixels();t.lineWidth=rt||kt}var xt=this.getStyle("stroke-linecap"),dt=this.getStyle("stroke-linejoin"),ft=this.getStyle("stroke-miterlimit"),Et=this.getStyle("stroke-dasharray"),wt=this.getStyle("stroke-dashoffset");if(xt.hasValue()&&(t.lineCap=xt.getString()),dt.hasValue()&&(t.lineJoin=dt.getString()),ft.hasValue()&&(t.miterLimit=ft.getNumber()),Et.hasValue()&&Et.getString()!=="none"){var Bt=Tt(Et.getString());typeof t.setLineDash!="undefined"?t.setLineDash(Bt):typeof t.webkitLineDash!="undefined"?t.webkitLineDash=Bt:typeof t.mozDash!="undefined"&&!(Bt.length===1&&Bt[0]===0)&&(t.mozDash=Bt);var Qt=wt.getPixels();typeof t.lineDashOffset!="undefined"?t.lineDashOffset=Qt:typeof t.webkitLineDashOffset!="undefined"?t.webkitLineDashOffset=Qt:typeof t.mozDashOffset!="undefined"&&(t.mozDashOffset=Qt)}}if(this.modifiedEmSizeStack=!1,typeof t.font!="undefined"){var ie=this.getStyle("font"),lt=this.getStyle("font-style"),q=this.getStyle("font-variant"),ht=this.getStyle("font-weight"),gt=this.getStyle("font-size"),St=this.getStyle("font-family"),yt=new ve(lt.getString(),q.getString(),ht.getString(),gt.hasValue()?"".concat(gt.getPixels(!0),"px"):"",St.getString(),ve.parse(ie.getString(),t.font));lt.setValue(yt.fontStyle),q.setValue(yt.fontVariant),ht.setValue(yt.fontWeight),gt.setValue(yt.fontSize),St.setValue(yt.fontFamily),t.font=yt.toString(),gt.isPixels()&&(this.document.emSize=gt.getPixels(),this.modifiedEmSizeStack=!0)}i||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){Object(H.a)(Object(B.a)(n.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),n}(Kt),_t=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="path",r.pathParser=null,r.pathParser=new At(r.getAttribute("d").getString()),r}return Object(J.a)(n,[{key:"path",value:function(t){var i=this.pathParser,r=new ce;for(i.reset(),t&&t.beginPath();!i.isEnd();)switch(i.next().type){case At.MOVE_TO:this.pathM(t,r);break;case At.LINE_TO:this.pathL(t,r);break;case At.HORIZ_LINE_TO:this.pathH(t,r);break;case At.VERT_LINE_TO:this.pathV(t,r);break;case At.CURVE_TO:this.pathC(t,r);break;case At.SMOOTH_CURVE_TO:this.pathS(t,r);break;case At.QUAD_TO:this.pathQ(t,r);break;case At.SMOOTH_QUAD_TO:this.pathT(t,r);break;case At.ARC:this.pathA(t,r);break;case At.CLOSE_PATH:this.pathZ(t,r);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 p=s.getDefinition(),E=Object(ut.a)(r[0],2),D=E[0],K=E[1];p.render(t,D,K)}if(l.isUrlDefinition())for(var _=l.getDefinition(),it=1;itc?l:c,ft=l>c?1:l/c,Et=l>c?c/l:1;t.translate(D.x,D.y),t.rotate(E),t.scale(ft,Et),t.arc(0,0,dt,K,K+_,Boolean(1-p)),t.scale(1/ft,1/Et),t.rotate(-E),t.translate(-D.x,-D.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 Xt((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 Xt(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,p=r.sweepFlag,E=l*(Math.PI/180),D=t.getAsCurrentPoint(),K=new Xt(Math.cos(E)*(i.x-D.x)/2+Math.sin(E)*(i.y-D.y)/2,-Math.sin(E)*(i.x-D.x)/2+Math.cos(E)*(i.y-D.y)/2),_=Math.pow(K.x,2)/Math.pow(o,2)+Math.pow(K.y,2)/Math.pow(s,2);_>1&&(o*=Math.sqrt(_),s*=Math.sqrt(_));var it=(c===p?-1:1)*Math.sqrt((Math.pow(o,2)*Math.pow(s,2)-Math.pow(o,2)*Math.pow(K.y,2)-Math.pow(s,2)*Math.pow(K.x,2))/(Math.pow(o,2)*Math.pow(K.y,2)+Math.pow(s,2)*Math.pow(K.x,2)));isNaN(it)&&(it=0);var rt=new Xt(it*o*K.y/s,it*-s*K.x/o),xt=new Xt((i.x+D.x)/2+Math.cos(E)*rt.x-Math.sin(E)*rt.y,(i.y+D.y)/2+Math.sin(E)*rt.x+Math.cos(E)*rt.y),dt=Pe([1,0],[(K.x-rt.x)/o,(K.y-rt.y)/s]),ft=[(K.x-rt.x)/o,(K.y-rt.y)/s],Et=[(-K.x-rt.x)/o,(-K.y-rt.y)/s],wt=Pe(ft,Et);return pe(ft,Et)<=-1&&(wt=Math.PI),pe(ft,Et)>=1&&(wt=0),{currentPoint:D,rX:o,rY:s,sweepFlag:p,xAxisRotation:E,centp:xt,a1:dt,ad:wt}}},{key:"pathZ",value:function(t){t.current=t.start}}]),n}(Oe),Xe=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.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 Object(J.a)(n)}(_t),De=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.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(J.a)(n,[{key:"setContext",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Object(H.a)(Object(B.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(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}},{key:"getBoundingBox",value:function(t){var i=this;if(this.type!=="text")return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(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=ve.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 ce(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],p=i[r+1],E="isolated";if((r===0||c===" ")&&r0&&c!==" "&&r0&&c!==" "&&(r===l-1||p===" ")&&(E="initial"),typeof t.glyphs[o]!="undefined"){var D=t.glyphs[o];s=D instanceof Xe?D:D[E]}}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=Ut(i.textContent||"");return o===0&&(l=Jt(l)),o===s&&(l=Nt(l)),l}},{key:"renderChildren",value:function(t){var i=this;if(this.type!=="text"){this.renderTElementChildren(t);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(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=ve.parse(i.ctx.font),p=r.getStyle("font-size").getNumber(c.fontSize),E=r.getStyle("font-style").getString(c.fontStyle),D=p/l,K=s.isRTL?o.split("").reverse().join(""):o,_=Tt(r.getAttribute("dx").getString()),it=K.length,rt=0;rt=this.leafTexts.length)return;var t=this.leafTexts[this.textChunkStart],i=t.getStyle("text-anchor").getString("start"),r=!1,o=0;i==="start"&&!r||i==="end"&&r?o=t.x-this.minX:i==="end"&&!r||i==="start"&&r?o=t.x-this.maxX:o=t.x-(this.minX+this.maxX)/2;for(var s=this.textChunkStart;s0?s.children.forEach(function(l,c){i.adjustChildCoordinatesRecursiveCore(t,i,s,c)}):this.adjustChildCoordinates(t,i,r,o)}},{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"),p=s.getAttribute("dx"),E=s.getAttribute("dy"),D=s.getStyle("font-family").getDefinition(),K=Boolean(D)&&D.isRTL;o===0&&(l.hasValue()||l.setValue(s.getInheritedAttribute("x")),c.hasValue()||c.setValue(s.getInheritedAttribute("y")),p.hasValue()||p.setValue(s.getInheritedAttribute("dx")),E.hasValue()||E.setValue(s.getInheritedAttribute("dy")));var _=s.measureText(t);return K&&(i.x-=_),l.hasValue()?(i.applyAnchoring(),s.x=l.getPixels("x"),p.hasValue()&&(s.x+=p.getPixels("x"))):(p.hasValue()&&(i.x+=p.getPixels("x")),s.x=i.x),i.x=s.x,K||(i.x+=_),c.hasValue()?(s.y=c.getPixels("y"),E.hasValue()&&(s.y+=E.getPixels("y"))):(E.hasValue()&&(i.y+=E.getPixels("y")),s.y=i.y),i.y=s.y,i.leafTexts.push(s),i.minX=Math.min(i.minX,s.x,s.x+_),i.maxX=Math.max(i.maxX,s.x,s.x+_),s.clearContext(t),t.restore(),s}},{key:"getChildBoundingBox",value:function(t,i,r,o){var s=r.children[o];if(typeof s.getBoundingBox!="function")return null;var l=s.getBoundingBox(t);return l?(s.children.forEach(function(c,p){var E=i.getChildBoundingBox(t,i,s,p);l.addBoundingBox(E)}),l):null}},{key:"renderChild",value:function(t,i,r,o){var s=r.children[o];s.render(t),s.children.forEach(function(l,c){i.renderChild(t,i,s,c)})}},{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=Tt(r.getAttribute("dx").getString()),p=l.length,E=0,D=0;D0?"":r.getTextFromNode(),r}return Object(J.a)(n,[{key:"getText",value:function(){return this.text}}]),n}(De),_r=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="textNode",a}return Object(J.a)(n)}(Qe),Le=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="svg",a.root=!1,a}return Object(J.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 mt(r,"fontSize",ve.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 p=o.viewPort,E=p.width,D=p.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var K=this.getAttribute("refX"),_=this.getAttribute("refY"),it=this.getAttribute("viewBox"),rt=it.hasValue()?Tt(it.getString()):null,xt=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",dt=0,ft=0,Et=0,wt=0;rt&&(dt=rt[0],ft=rt[1]),this.root||(E=this.getStyle("width").getPixels("x"),D=this.getStyle("height").getPixels("y"),this.type==="marker"&&(Et=dt,wt=ft,dt=0,ft=0)),o.viewPort.setCurrent(E,D),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(H.a)(Object(B.a)(n.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),rt&&(E=rt[2],D=rt[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o.viewPort.width,desiredWidth:E,height:o.viewPort.height,desiredHeight:D,minX:dt,minY:ft,refX:K.getValue(),refY:_.getValue(),clip:xt,clipX:Et,clipY:wt}),rt&&(o.viewPort.removeCurrent(),o.viewPort.setCurrent(E,D))}},{key:"clearContext",value:function(t){Object(H.a)(Object(B.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"),p=o.getNumber(0),E=s.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var D=this.getAttribute("preserveAspectRatio");D.hasValue()&&D.setValue(D.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(o.setValue(t),s.setValue(i),l.hasValue()||l.setValue("0 0 ".concat(p||t," ").concat(E||i)),c.hasValue()){var K=this.getStyle("width"),_=this.getStyle("height");K.hasValue()&&K.setValue("".concat(t,"px")),_.hasValue()&&_.setValue("".concat(i,"px"))}}}]),n}(Oe),Je=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="rect",a}return Object(J.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"),p=l.getPixels("x"),E=c.getPixels("y");if(l.hasValue()&&!c.hasValue()&&(E=p),c.hasValue()&&!l.hasValue()&&(p=E),p=Math.min(p,o/2),E=Math.min(E,s/2),t){var D=4*((Math.sqrt(2)-1)/3);t.beginPath(),s>0&&o>0&&(t.moveTo(i+p,r),t.lineTo(i+o-p,r),t.bezierCurveTo(i+o-p+D*p,r,i+o,r+E-D*E,i+o,r+E),t.lineTo(i+o,r+s-E),t.bezierCurveTo(i+o,r+s-E+D*E,i+o-p+D*p,r+s,i+o-p,r+s),t.lineTo(i+p,r+s),t.bezierCurveTo(i+p-D*p,r+s,i,r+s-E+D*E,i,r+s-E),t.lineTo(i,r+E),t.bezierCurveTo(i,r+E-D*E,i+p-D*p,r,i+p,r),t.closePath())}return new ce(i,r,i+o,r+s)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),fr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="circle",a}return Object(J.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 ce(i-o,r-o,i+o,r+o)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),hr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="ellipse",a}return Object(J.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 ce(s-r,l-o,s+r,l+o)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),cr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="line",a}return Object(J.a)(n,[{key:"getPoints",value:function(){return[new Xt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Xt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var i=this.getPoints(),r=Object(ut.a)(i,2),o=r[0],s=o.x,l=o.y,c=r[1],p=c.x,E=c.y;return t&&(t.beginPath(),t.moveTo(s,l),t.lineTo(p,E)),new ce(s,l,p,E)}},{key:"getMarkers",value:function(){var t=this.getPoints(),i=Object(ut.a)(t,2),r=i[0],o=i[1],s=r.angleTo(o);return[[r,s],[o,s]]}}]),n}(_t),Ze=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="polyline",r.points=[],r.points=Xt.parsePath(r.getAttribute("points").getString()),r}return Object(J.a)(n,[{key:"path",value:function(t){var i=this.points,r=Object(ut.a)(i,1),o=r[0],s=o.x,l=o.y,c=new ce(s,l);return t&&(t.beginPath(),t.moveTo(s,l)),i.forEach(function(p){var E=p.x,D=p.y;c.addPoint(E,D),t&&t.lineTo(E,D)}),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}(_t),vr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="polygon",a}return Object(J.a)(n,[{key:"path",value:function(t){var i=Object(H.a)(Object(B.a)(n.prototype),"path",this).call(this,t),r=Object(ut.a)(this.points,1),o=r[0],s=o.x,l=o.y;return t&&(t.lineTo(s,l),t.closePath()),i}}]),n}(Ze),dr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="pattern",a}return Object(J.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 Le(this.document,null);l.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.width=new mt(this.document,"width","".concat(o,"px")),l.attributes.height=new mt(this.document,"height","".concat(s,"px")),l.attributes.transform=new mt(this.document,"transform",this.getAttribute("patternTransform").getValue()),l.children=this.children;var c=this.document.createCanvas(o,s),p=c.getContext("2d"),E=this.getAttribute("x"),D=this.getAttribute("y");E.hasValue()&&D.hasValue()&&p.translate(E.getPixels("x",!0),D.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var K=-1;K<=1;K++)for(var _=-1;_<=1;_++)p.save(),l.attributes.x=new mt(this.document,"x",K*c.width),l.attributes.y=new mt(this.document,"y",_*c.height),l.render(p),p.restore();var it=t.createPattern(c,"repeat");return it}}]),n}(Kt),gr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="marker",a}return Object(J.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 p=new Le(this.document,null);p.type=this.type,p.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),p.attributes.refX=new mt(this.document,"refX",this.getAttribute("refX").getValue()),p.attributes.refY=new mt(this.document,"refY",this.getAttribute("refY").getValue()),p.attributes.width=new mt(this.document,"width",this.getAttribute("markerWidth").getValue()),p.attributes.height=new mt(this.document,"height",this.getAttribute("markerHeight").getValue()),p.attributes.overflow=new mt(this.document,"overflow",this.getAttribute("overflow").getValue()),p.attributes.fill=new mt(this.document,"fill",this.getAttribute("fill").getColor("black")),p.attributes.stroke=new mt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),p.children=this.children,p.render(t),t.restore(),c==="strokeWidth"&&t.scale(1/t.lineWidth,1/t.lineWidth),l==="auto"&&t.rotate(-r),t.translate(-o,-s)}}]),n}(Kt),pr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="defs",a}return Object(J.a)(n,[{key:"render",value:function(){}}]),n}(Kt),Ge=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="g",a}return Object(J.a)(n,[{key:"getBoundingBox",value:function(t){var i=new ce;return this.children.forEach(function(r){i.addBoundingBox(r.getBoundingBox(t))}),i}}]),n}(Oe),qe=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.attributesToInherit=["gradientUnits"],r.stops=[];var o=Object(A.a)(r),s=o.stops,l=o.children;return l.forEach(function(c){c.type==="stop"&&s.push(c)}),r}return Object(J.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,p=this.getGradient(t,i);if(!p)return this.addParentOpacity(r,c[c.length-1].color);if(c.forEach(function(Bt){p.addColorStop(Bt.offset,o.addParentOpacity(r,Bt.color))}),this.getAttribute("gradientTransform").hasValue()){var E=this.document,D=E.screen,K=D.MAX_VIRTUAL_PIXELS,_=D.viewPort,it=Object(ut.a)(_.viewPorts,1),rt=it[0],xt=new Je(E,null);xt.attributes.x=new mt(E,"x",-K/3),xt.attributes.y=new mt(E,"y",-K/3),xt.attributes.width=new mt(E,"width",K),xt.attributes.height=new mt(E,"height",K);var dt=new Ge(E,null);dt.attributes.transform=new mt(E,"transform",this.getAttribute("gradientTransform").getValue()),dt.children=[xt];var ft=new Le(E,null);ft.attributes.x=new mt(E,"x",0),ft.attributes.y=new mt(E,"y",0),ft.attributes.width=new mt(E,"width",rt.width),ft.attributes.height=new mt(E,"height",rt.height),ft.children=[dt];var Et=E.createCanvas(rt.width,rt.height),wt=Et.getContext("2d");return wt.fillStyle=p,ft.render(wt),wt.createPattern(Et,"no-repeat")}return p}},{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 mt(this.document,"color",i);return r.addOpacity(t).getColor()}return i}}]),n}(Kt),mr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return Object(J.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"),p=r?o.y+o.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===c&&l===p?null:t.createLinearGradient(s,l,c,p)}}]),n}(qe),yr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.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(J.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,p=l;this.getAttribute("fx").hasValue()&&(c=r?o.x+o.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(p=r?o.y+o.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var E=r?(o.width+o.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),D=this.getAttribute("fr").getPixels();return t.createRadialGradient(c,p,D,s,l,E)}}]),n}(qe),xr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.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 Object(J.a)(n)}(Kt),ze=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.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(A.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 mt(a,"values",null);var o=r.getAttribute("values");return o.hasValue()&&r.values.setValue(o.getString().split(";")),r}return Object(J.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(J.a)(n,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){if(this.hasText){Object(H.a)(Object(B.a)(n.prototype),"renderChildren",this).call(this,t);var i=this.document,r=this.x,o=this.y,s=i.screen.mouse,l=new mt(i,"fontSize",ve.parse(i.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new ce(r,o-l.getPixels("y"),r+this.measureText(t),o))}else if(this.children.length>0){var c=new Ge(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}(De);function Rr(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 He(v){for(var f=1;fD?E:D,dt=E>D?1:E/D,ft=E>D?D/E:1;t&&(t.translate(c,p),t.rotate(it),t.scale(dt,ft),t.arc(0,0,xt,K,K+_,Boolean(1-rt)),t.scale(1/dt,1/ft),t.rotate(-it),t.translate(-c,-p));break}case At.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 p=l.p0,E=l.p1,D=l.rotation,K=l.text;t.save(),t.translate(p.x,p.y),t.rotate(D),t.fillStyle&&t.fillText(K,0,0),t.strokeStyle&&t.strokeText(K,0,0),t.restore(),i==="underline"&&(c===0&&t.moveTo(p.x,p.y+r/8),t.lineTo(E.x,E.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,p,E){var D=l,K=this.measureText(t,p);p===" "&&i==="justify"&&r-1&&(D+=this.getLetterSpacingAt(E));var _=this.textHeight/20,it=this.getEquidistantPointOnPath(D,_,0),rt=this.getEquidistantPointOnPath(D+K,_,0),xt={p0:it,p1:rt},dt=it&&rt?Math.atan2(rt.y-it.y,rt.x-it.x):0;if(c){var ft=Math.cos(Math.PI/2+dt)*c,Et=Math.cos(-dt)*c;xt.p0=He(He({},it),{},{x:it.x+ft,y:it.y+Et}),xt.p1=He(He({},rt),{},{x:rt.x+ft,y:rt.y+Et})}return D+=K,{offset:D,segment:xt,rotation:dt}}},{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(Qt){return Qt.getPixels("x")}),c=this.parent.getAttribute("dy").getPixels("y"),p=this.parent.getStyle("text-anchor").getString("start"),E=this.getStyle("letter-spacing"),D=this.parent.getStyle("letter-spacing"),K=0;!E.hasValue()||E.getValue()==="inherit"?K=D.getPixels():E.hasValue()&&(E.getValue()!=="initial"&&E.getValue()!=="unset"&&(K=E.getPixels()));var _=[],it=r.length;this.letterSpacingCache=_;for(var rt=0;rt0&&(E-=2*Math.PI),s===1&&E<0&&(E+=2*Math.PI),[c.x,c.y,r,o,p,E,l,s]}},{key:"calcLength",value:function(t,i,r,o){var s=0,l=null,c=null,p=0;switch(r){case At.LINE_TO:return this.getLineLength(t,i,o[0],o[1]);case At.CURVE_TO:for(s=0,l=this.getPointOnCubicBezier(0,t,i,o[0],o[1],o[2],o[3],o[4],o[5]),p=.01;p<=1;p+=.01)c=this.getPointOnCubicBezier(p,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 At.QUAD_TO:for(s=0,l=this.getPointOnQuadraticBezier(0,t,i,o[0],o[1],o[2],o[3]),p=.01;p<=1;p+=.01)c=this.getPointOnQuadraticBezier(p,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 At.ARC:{s=0;var E=o[4],D=o[5],K=o[4]+D,_=Math.PI/180;if(Math.abs(E-K)<_&&(_=Math.abs(E-K)),l=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],E,0),D<0)for(p=E-_;p>K;p-=_)c=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],p,0),s+=this.getLineLength(l.x,l.y,c.x,c.y),l=c;else for(p=E+_;p5&&arguments[5]!==void 0?arguments[5]:i,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,p=(s-r)/(o-i+kt),E=Math.sqrt(t*t/(1+p*p));oi)return null;var s=this.dataArray,l=Object(b.a)(s),c;try{for(l.s();!(c=l.n()).done;){var p=c.value;if(p&&(p.pathLength<5e-5||r+p.pathLength+5e-5=0&&D>it)break;o=this.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],D,p.points[6]);break}case At.CURVE_TO:D=E/p.pathLength,D>1&&(D=1),o=this.getPointOnCubicBezier(D,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);break;case At.QUAD_TO:D=E/p.pathLength,D>1&&(D=1),o=this.getPointOnQuadraticBezier(D,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3]);break}if(o)return o;break}}catch(rt){l.e(rt)}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,p,E){var D=p*Se(t)+l*me(t)+o*ye(t)+i*xe(t),K=E*Se(t)+c*me(t)+s*ye(t)+r*xe(t);return{x:D,y:K}}},{key:"getPointOnQuadraticBezier",value:function(t,i,r,o,s,l,c){var p=l*Ee(t)+o*Ie(t)+i*Ne(t),E=c*Ee(t)+s*Ie(t)+r*Ne(t);return{x:p,y:E}}},{key:"getPointOnEllipticalArc",value:function(t,i,r,o,s,l){var c=Math.cos(l),p=Math.sin(l),E={x:r*Math.cos(s),y:o*Math.sin(s)};return{x:t+(E.x*c-E.y*p),y:i+(E.x*p+E.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 p=this.getPointOnPath(c),E=this.getPointOnPath(c+o);if(!p||!E)continue;l+=this.getLineLength(p.x,p.y,E.x,E.y),l>=s&&(this.equidistantCache.points.push({x:p.x,y:p.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}(De),tn=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Ir=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.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($.a)(r);var s=o.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(o);return a.images.push(Object(A.a)(r)),s?void r.loadSvg(o):void r.loadImage(o),r.isSvg=s,r}return Object(J.a)(n,[{key:"loadImage",value:function(t){var i=this;return vt()(Ct().mark(function r(){var o;return Ct().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 vt()(Ct().mark(function r(){var o,s,l,c;return Ct().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(o=tn.exec(t),!o){E.next=6;break}s=o[5],o[4]==="base64"?i.image=atob(s):i.image=decodeURIComponent(s),E.next=19;break;case 6:return E.prev=6,E.next=9,i.document.fetch(t);case 9:return l=E.sent,E.next=12,l.text();case 12:c=E.sent,i.image=c,E.next=19;break;case 16:E.prev=16,E.t0=E.catch(6),console.error('Error while loading image "'.concat(t,'":'),E.t0);case 19:i.loaded=!0;case 20:case"end":return E.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"),p=this.getStyle("height").getPixels("y");if(!o||!r||!c||!p)return;if(t.save(),t.translate(s,l),this.isSvg){var E=i.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:c,scaleHeight:p});E.document.documentElement.parent=this,void E.render()}else{var D=this.image;i.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:c,desiredWidth:D.width,height:p,desiredHeight:D.height}),this.loaded&&((typeof D.complete=="undefined"||D.complete)&&t.drawImage(D,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 ce(t,i,t+r,i+o)}}]),n}(Oe),Nr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="symbol",a}return Object(J.a)(n,[{key:"render",value:function(t){}}]),n}(Oe),Mr=function(){function v(f){Object(X.a)(this,v),this.document=f,this.loaded=!1,f.fonts.push(this)}return Object(J.a)(v,[{key:"load",value:function(n,a){var t=this;return vt()(Ct().mark(function i(){var r,o,s;return Ct().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(p){var E=r.createElement(p);r.definitions[n]=E}),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(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="style";var o=Ut(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 p=c.split("{"),E=p[0].split(","),D=p[1].split(";");E.forEach(function(K){var _=K.trim();if(!_)return;var it=a.styles[_]||{};if(D.forEach(function(dt){var ft=dt.indexOf(":"),Et=dt.substr(0,ft).trim(),wt=dt.substr(ft+1,dt.length-ft).trim();Et&&wt&&(it[Et]=new mt(a,Et,wt))}),a.styles[_]=it,a.stylesSpecificity[_]=he(_),_==="@font-face"){var rt=it["font-family"].getString().replace(/"|'/g,""),xt=it.src.getString().split(",");xt.forEach(function(dt){if(dt.indexOf('format("svg")')>0){var ft=pt(dt);ft&&void new Mr(a).load(rt,ft)}})}})}),r}return Object(J.a)(n)}(Kt);_e.parseExternalUrl=pt;var jr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="use",a}return Object(J.a)(n,[{key:"setContext",value:function(t){Object(H.a)(Object(B.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 Le(i,null),o.attributes.viewBox=new mt(i,"viewBox",r.getAttribute("viewBox").getString()),o.attributes.preserveAspectRatio=new mt(i,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),o.attributes.overflow=new mt(i,"overflow",r.getAttribute("overflow").getString()),o.children=r.children,r.styles.opacity=new mt(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 mt(i,"width",s.getString())),l.hasValue()&&(o.attributes.height=new mt(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 we.fromElement(t,i)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),n}(Oe);function $e(v,f,n,a,t,i){return v[n*a*4+f*4+i]}function Ye(v,f,n,a,t,i,r){v[n*a*4+f*4+i]=r}function Zt(v,f,n){var a=v[f];return a*n}function ge(v,f,n,a){return f+Math.cos(v)*n+Math.sin(v)*a}var tr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="feColorMatrix";var o=Tt(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=[ge(l,.213,.787,-.213),ge(l,.715,-.715,-.715),ge(l,.072,-.072,.928),0,0,ge(l,.213,-.213,.143),ge(l,.715,.285,.14),ge(l,.072,-.072,-.283),0,0,ge(l,.213,-.213,-.787),ge(l,.715,-.715,.715),ge(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(J.a)(n,[{key:"apply",value:function(t,i,r,o,s){for(var l=this.includeOpacity,c=this.matrix,p=t.getImageData(0,0,o,s),E=0;E1&&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,p,E,D){s(D)},a.src=f}));case 4:case"end":return r.stop()}},v)})),nr.apply(this,arguments)}var Ve=function(){function v(f){Object(X.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,p=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,p),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(J.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 ur(this,n)}},{key:"createTextNode",value:function(n){return new _r(this,n)}},{key:"setViewBox",value:function(n){this.screen.setViewBox(rn({document:this},n))}}]),v}();Ve.createCanvas=nn,Ve.createImage=an,Ve.elementTypes=en;function zr(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 Ae(v){for(var f=1;f2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new We(a),this.screen=new de(f,a),this.options=a;var t=new Ve(this,a),i=t.createDocumentElement(n);this.document=t,this.documentElement=i}return Object(J.a)(v,[{key:"fork",value:function(n,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return v.from(n,a,Ae(Ae({},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,Ae(Ae({},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 vt()(Ct().mark(function t(){var i;return Ct().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return i=n.length>0&&n[0]!==void 0?n[0]:{},a.start(Ae({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,Ae(Ae({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 vt()(Ct().mark(function i(){var r,o,s;return Ct().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return r=t.length>2&&t[2]!==void 0?t[2]:{},o=new We(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 We(t),r=i.parseFromString(a);return new v(n,r,t)}}]),v}()}.call(this,e("Q2Ig"))},Dk1u:function(m,x,e){var u=e("4YbN"),h=e("IL+x"),d=TypeError;m.exports=function(g){if(u(g))return g;throw d(h(g)+" is not a constructor")}},ENhe:function(m,x){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}},ESVS:function(m,x,e){"use strict";var u=e("nCzB"),h=e("m7zg"),d=e("zFjv"),g=e("GxTi").CONSTRUCTOR;u({target:"Promise",stat:!0,forced:g},{reject:function(T){var C=d.f(this);return h(C.reject,void 0,T),C.promise}})},FjAG:function(m,x,e){var u=e("8HiI"),h=e("721z"),d=e("p5Ma"),g=e("tMNq"),y=TypeError,T=function(C){return function(N,P,M,G){u(P);var j=h(N),F=d(j),V=g(j),L=C?V-1:0,k=C?-1:1;if(M<2)for(;;){if(L in F){G=F[L],L+=k;break}if(L+=k,C?L<0:V<=L)throw y("Reduce of empty array with no initial value")}for(;C?L>=0:V>L;L+=k)L in F&&(G=P(G,F[L],L,j));return G}};m.exports={left:T(!1),right:T(!0)}},FkIU:function(m,x,e){var u=e("++4Y"),h=e("eRwv");m.exports=u&&h(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},FlRv:function(m,x,e){var u=e("++4Y"),h=e("pVCk"),d=e("FkIU"),g=e("WxoH"),y=e("GTqx"),T=TypeError,C=Object.defineProperty,N=Object.getOwnPropertyDescriptor,P="enumerable",M="configurable",G="writable";x.f=u?d?function(F,V,L){if(g(F),V=y(V),g(L),typeof F=="function"&&V==="prototype"&&"value"in L&&G in L&&!L[G]){var k=N(F,V);k&&k[G]&&(F[V]=L.value,L={configurable:M in L?L[M]:k[M],enumerable:P in L?L[P]:k[P],writable:!1})}return C(F,V,L)}:C:function(F,V,L){if(g(F),V=y(V),g(L),h)try{return C(F,V,L)}catch(k){}if("get"in L||"set"in L)throw T("Accessors not supported");return"value"in L&&(F[V]=L.value),F}},FqHY:function(m,x,e){var u=e("eE3R"),h=e("Ks5W");m.exports=/ipad|iphone|ipod/i.test(u)&&h.Pebble!==void 0},G5Kn:function(m,x,e){var u=e("11yv"),h=e("XFuk"),d=e("FlRv").f,g=u("unscopables"),y=Array.prototype;y[g]==null&&d(y,g,{configurable:!0,value:h(null)}),m.exports=function(T){y[g][T]=!0}},GI0h:function(m,x,e){var u=e("me6S"),h=u("span").classList,d=h&&h.constructor&&h.constructor.prototype;m.exports=d===Object.prototype?void 0:d},GTqx:function(m,x,e){var u=e("ms20"),h=e("bT0D");m.exports=function(d){var g=u(d,"string");return h(g)?g:g+""}},GVkW:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("fKql").f,g=e("c3MK"),y=e("qzpy"),T=e("OU4x"),C=e("XaNE"),N=e("/TZh"),P=e("jybJ"),M=h("".endsWith),G=h("".slice),j=Math.min,F=N("endsWith"),V=!P&&!F&&!!function(){var L=d(String.prototype,"endsWith");return L&&!L.writable}();u({target:"String",proto:!0,forced:!V&&!F},{endsWith:function(k){var et=y(C(this));T(k);var W=arguments.length>1?arguments[1]:void 0,nt=et.length,w=W===void 0?nt:j(g(W),nt),st=y(k);return M?M(et,st,w):G(et,w-st.length,w)===st}})},GgKt:function(m,x,e){var u=e("eE3R");m.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(u)},GxTi:function(m,x,e){var u=e("Ks5W"),h=e("KLK4"),d=e("JTf3"),g=e("mGb/"),y=e("sNJV"),T=e("11yv"),C=e("vTDQ"),N=e("dAmL"),P=e("jybJ"),M=e("aNIs"),G=h&&h.prototype,j=T("species"),F=!1,V=d(u.PromiseRejectionEvent),L=g("Promise",function(){var k=y(h),et=k!==String(h);if(!et&&M===66)return!0;if(P&&!(G.catch&&G.finally))return!0;if(!M||M<51||!/native code/.test(k)){var W=new h(function(st){st(1)}),nt=function(st){st(function(){},function(){})},w=W.constructor={};if(w[j]=nt,F=W.then(function(){})instanceof nt,!F)return!0}return!et&&(C||N)&&!V});m.exports={CONSTRUCTOR:L,REJECTION_EVENT:V,SUBCLASSING:F}},Gywb:function(m,x,e){var u=e("eRwv");m.exports=!u(function(){function h(){}return h.prototype.constructor=null,Object.getPrototypeOf(new h)!==h.prototype})},"HTC/":function(m,x,e){"use strict";var u=e("WxoH");m.exports=function(){var h=u(this),d="";return h.hasIndices&&(d+="d"),h.global&&(d+="g"),h.ignoreCase&&(d+="i"),h.multiline&&(d+="m"),h.dotAll&&(d+="s"),h.unicode&&(d+="u"),h.unicodeSets&&(d+="v"),h.sticky&&(d+="y"),d}},IGIO:function(m,x,e){var u=e("ba8b"),h=e("Ks5W");m.exports=u(h.process)=="process"},"IL+x":function(m,x){var e=String;m.exports=function(u){try{return e(u)}catch(h){return"Object"}}},JHvW:function(m,x,e){var u=e("aLaa"),h=e("WxoH"),d=e("NIpK");m.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g=!1,y={},T;try{T=u(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),T(y,[]),g=y instanceof Array}catch(C){}return function(N,P){return h(N),d(P),g?T(N,P):N.__proto__=P,N}}():void 0)},JTf3:function(m,x){m.exports=function(e){return typeof e=="function"}},KKe4:function(m,x,e){"use strict";var u=e("m7zg"),h=e("WONN"),d=e("WxoH"),g=e("c3MK"),y=e("qzpy"),T=e("XaNE"),C=e("oK8H"),N=e("M/+V"),P=e("3fk+");h("match",function(M,G,j){return[function(V){var L=T(this),k=V==null?void 0:C(V,M);return k?u(k,V,L):new RegExp(V)[M](y(L))},function(F){var V=d(this),L=y(F),k=j(G,V,L);if(k.done)return k.value;if(!V.global)return P(V,L);var et=V.unicode;V.lastIndex=0;for(var W=[],nt=0,w;(w=P(V,L))!==null;){var st=y(w[0]);W[nt]=st,st===""&&(V.lastIndex=N(L,g(V.lastIndex),et)),nt++}return nt===0?null:W}]})},KLK4:function(m,x,e){var u=e("Ks5W");m.exports=u.Promise},KLN8:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("fKql").f,g=e("c3MK"),y=e("qzpy"),T=e("OU4x"),C=e("XaNE"),N=e("/TZh"),P=e("jybJ"),M=h("".startsWith),G=h("".slice),j=Math.min,F=N("startsWith"),V=!P&&!F&&!!function(){var L=d(String.prototype,"startsWith");return L&&!L.writable}();u({target:"String",proto:!0,forced:!V&&!F},{startsWith:function(k){var et=y(C(this));T(k);var W=g(j(arguments.length>1?arguments[1]:void 0,et.length)),nt=y(k);return M?M(et,nt,W):G(et,W,W+nt.length)===nt}})},Ks5W:function(m,x,e){(function(u){var h=function(d){return d&&d.Math==Math&&d};m.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof u=="object"&&u)||function(){return this}()||Function("return this")()}).call(this,e("yLpj"))},Lltv:function(m,x,e){"use strict";var u=e("vkZI"),h=e("G5Kn"),d=e("AoAp"),g=e("UQ6y"),y=e("FlRv").f,T=e("jgt4"),C=e("jybJ"),N=e("++4Y"),P="Array Iterator",M=g.set,G=g.getterFor(P);m.exports=T(Array,"Array",function(F,V){M(this,{type:P,target:u(F),index:0,kind:V})},function(){var F=G(this),V=F.target,L=F.kind,k=F.index++;return!V||k>=V.length?(F.target=void 0,{value:void 0,done:!0}):L=="keys"?{value:k,done:!1}:L=="values"?{value:V[k],done:!1}:{value:[k,V[k]],done:!1}},"values");var j=d.Arguments=d.Array;if(h("keys"),h("values"),h("entries"),!C&&N&&j.name!=="values")try{y(j,"name",{value:"values"})}catch(F){}},"M/+V":function(m,x,e){"use strict";var u=e("ymN0").charAt;m.exports=function(h,d,g){return d+(g?u(h,d).length:1)}},MNKV:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("OU4x"),g=e("XaNE"),y=e("qzpy"),T=e("/TZh"),C=h("".indexOf);u({target:"String",proto:!0,forced:!T("includes")},{includes:function(P){return!!~C(y(g(this)),y(d(P)),arguments.length>1?arguments[1]:void 0)}})},MURR:function(m,x,e){var u=e("aLaa"),h=0,d=Math.random(),g=u(1 .toString);m.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+g(++h+d,36)}},N6FT:function(m,x,e){var u=e("++4Y"),h=e("YELS"),d=Function.prototype,g=u&&Object.getOwnPropertyDescriptor,y=h(d,"name"),T=y&&function(){}.name==="something",C=y&&(!u||u&&g(d,"name").configurable);m.exports={EXISTS:y,PROPER:T,CONFIGURABLE:C}},NCkV:function(m,x,e){"use strict";var u=e("1mOU"),h=e("m7zg"),d=e("aLaa"),g=e("WONN"),y=e("COGW"),T=e("WxoH"),C=e("XaNE"),N=e("NudO"),P=e("M/+V"),M=e("c3MK"),G=e("qzpy"),j=e("oK8H"),F=e("8Ys4"),V=e("3fk+"),L=e("WMbf"),k=e("RhGR"),et=e("eRwv"),W=k.UNSUPPORTED_Y,nt=4294967295,w=Math.min,st=[].push,R=d(/./.exec),S=d(st),U=d("".slice),I=!et(function(){var tt=/(?:)/,at=tt.exec;tt.exec=function(){return at.apply(this,arguments)};var Z="ab".split(tt);return Z.length!==2||Z[0]!=="a"||Z[1]!=="b"});g("split",function(tt,at,Z){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($,b){var A=G(C(this)),H=b===void 0?nt:b>>>0;if(H===0)return[];if($===void 0)return[A];if(!y($))return h(at,A,$,H);for(var B=[],z=($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")+($.sticky?"y":""),Q=0,Y=new RegExp($.source,z+"g"),X,J,ut;(X=h(L,Y,A))&&!(J=Y.lastIndex,J>Q&&(S(B,U(A,Q,X.index)),X.length>1&&X.index=H));)Y.lastIndex===X.index&&Y.lastIndex++;return Q===A.length?(ut||!R(Y,""))&&S(B,""):S(B,U(A,Q)),B.length>H?F(B,0,H):B}:"0".split(void 0,0).length?O=function($,b){return $===void 0&&b===0?[]:h(at,this,$,b)}:O=at,[function(b,A){var H=C(this),B=b==null?void 0:j(b,tt);return B?h(B,b,H,A):h(O,G(H),b,A)},function($,b){var A=T(this),H=G($),B=Z(O,A,H,b,O!==at);if(B.done)return B.value;var z=N(A,RegExp),Q=A.unicode,Y=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(W?"g":"y"),X=new z(W?"^(?:"+A.source+")":A,Y),J=b===void 0?nt:b>>>0;if(J===0)return[];if(H.length===0)return V(X,H)===null?[H]:[];for(var ut=0,ct=0,vt=[];ct]*>)/g,N=/\$([$&'`]|\d{1,2})/g;m.exports=function(P,M,G,j,F,V){var L=G+P.length,k=j.length,et=N;return F!==void 0&&(F=h(F),et=C),y(V,et,function(W,nt){var w;switch(g(nt,0)){case"$":return"$";case"&":return P;case"`":return T(M,0,G);case"'":return T(M,L);case"<":w=F[T(nt,1,-1)];break;default:var st=+nt;if(st===0)return W;if(st>k){var R=d(st/10);return R===0?W:R<=k?j[R-1]===void 0?g(nt,1):j[R-1]+g(nt,1):W}w=j[st-1]}return w===void 0?"":w})}},NudO:function(m,x,e){var u=e("WxoH"),h=e("Dk1u"),d=e("11yv"),g=d("species");m.exports=function(y,T){var C=u(y).constructor,N;return C===void 0||(N=u(C)[g])==null?T:h(N)}},Nybj:function(m,x,e){var u=e("vkZI"),h=e("n6S8"),d=e("tMNq"),g=function(y){return function(T,C,N){var P=u(T),M=d(P),G=h(N,M),j;if(y&&C!=C){for(;M>G;)if(j=P[G++],j!=j)return!0}else for(;M>G;G++)if((y||G in P)&&P[G]===C)return y||G||0;return!y&&-1}};m.exports={includes:g(!0),indexOf:g(!1)}},OU4x:function(m,x,e){var u=e("COGW"),h=TypeError;m.exports=function(d){if(u(d))throw h("The method doesn't accept regular expressions");return d}},Ppro:function(m,x,e){"use strict";var u=e("nCzB"),h=e("WMbf");u({target:"RegExp",proto:!0,forced:/./.exec!==h},{exec:h})},QELg:function(m,x,e){"use strict";var u=e("eRwv");m.exports=function(h,d){var g=[][h];return!!g&&u(function(){g.call(null,d||function(){return 1},1)})}},QrM1:function(m,x,e){var u=e("ZpKI"),h=e("Yzn+"),d=h.concat("length","prototype");x.f=Object.getOwnPropertyNames||function(y){return u(y,d)}},"RXj+":function(m,x,e){var u=e("aLaa"),h=e("XaNE"),d=e("qzpy"),g=e("noWC"),y=u("".replace),T="["+g+"]",C=RegExp("^"+T+T+"*"),N=RegExp(T+T+"*$"),P=function(M){return function(G){var j=d(h(G));return M&1&&(j=y(j,C,"")),M&2&&(j=y(j,N,"")),j}};m.exports={start:P(1),end:P(2),trim:P(3)}},RYfq:function(m,x,e){var u=e("Ks5W"),h=e("JTf3"),d=function(g){return h(g)?g:void 0};m.exports=function(g,y){return arguments.length<2?d(u[g]):u[g]&&u[g][y]}},RhGR:function(m,x,e){var u=e("eRwv"),h=e("Ks5W"),d=h.RegExp,g=u(function(){var C=d("a","y");return C.lastIndex=2,C.exec("abcd")!=null}),y=g||u(function(){return!d("a","y").sticky}),T=g||u(function(){var C=d("^r","gy");return C.lastIndex=2,C.exec("str")!=null});m.exports={BROKEN_CARET:T,MISSED_STICKY:y,UNSUPPORTED_Y:g}},S3az:function(m,x,e){var u=e("Ks5W"),h=e("JTf3"),d=e("sNJV"),g=u.WeakMap;m.exports=h(g)&&/native code/.test(d(g))},SN6V:function(m,x,e){var u=e("/dXc");m.exports=function(h){var d=+h;return d!==d||d===0?0:u(d)}},"ST+I":function(m,x,e){var u=e("aNr2"),h=e("MURR"),d=u("keys");m.exports=function(g){return d[g]||(d[g]=h(g))}},SkNP:function(m,x){m.exports={}},SwuV:function(m,x,e){var u=e("JTf3");m.exports=function(h){return typeof h=="object"?h!==null:u(h)}},TRzv:function(m,x,e){var u=e("WxoH"),h=e("SwuV"),d=e("zFjv");m.exports=function(g,y){if(u(g),h(y)&&y.constructor===g)return y;var T=d.f(g),C=T.resolve;return C(y),T.promise}},Ttl4:function(m,x,e){var u=e("YELS"),h=e("x1+7"),d=e("fKql"),g=e("FlRv");m.exports=function(y,T,C){for(var N=h(T),P=g.f,M=d.f,G=0;G0&&(!U.multiline||U.multiline&&V(tt,U.lastIndex-1)!==` -`)&&(X="(?: "+X+")",ut=" "+ut,J++),O=new RegExp("^(?:"+X+")",Y)),w&&(O=new RegExp("^"+X+"$(?!\\s)",Y)),W&&($=U.lastIndex),b=u(j,Q?O:U,ut),Q?b?(b.input=et(b.input,J),b[0]=et(b[0],J),b.index=U.lastIndex,U.lastIndex+=b[0].length):U.lastIndex=0:W&&b&&(U.lastIndex=U.global?b.index+b[0].length:$),w&&b&&b.length>1&&u(G,b[0],O,function(){for(A=1;A3&&(this.alpha=C[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 N=this.r.toString(16),P=this.g.toString(16),M=this.b.toString(16);return N.length==1&&(N="0"+N),P.length==1&&(P="0"+P),M.length==1&&(M="0"+M),"#"+N+P+M},this.getHelpXML=function(){for(var N=new Array,P=0;P "+L.toRGB()+" -> "+L.toHex());V.appendChild(k),V.appendChild(et),F.appendChild(V)}catch(nt){}return F}}},WONN:function(m,x,e){"use strict";e("Ppro");var u=e("aLaa"),h=e("WaP5"),d=e("WMbf"),g=e("eRwv"),y=e("11yv"),T=e("8ODz"),C=y("species"),N=RegExp.prototype;m.exports=function(P,M,G,j){var F=y(P),V=!g(function(){var W={};return W[F]=function(){return 7},""[P](W)!=7}),L=V&&!g(function(){var W=!1,nt=/a/;return P==="split"&&(nt={},nt.constructor={},nt.constructor[C]=function(){return nt},nt.flags="",nt[F]=/./[F]),nt.exec=function(){return W=!0,null},nt[F](""),!W});if(!V||!L||G){var k=u(/./[F]),et=M(F,""[P],function(W,nt,w,st,R){var S=u(W),U=nt.exec;return U===d||U===N.exec?V&&!R?{done:!0,value:k(nt,w,st)}:{done:!0,value:S(w,nt,st)}:{done:!1}});h(String.prototype,P,et[0]),h(N,F,et[1])}j&&T(N[F],"sham",!0)}},WaP5:function(m,x,e){var u=e("JTf3"),h=e("FlRv"),d=e("3DCu"),g=e("X4md");m.exports=function(y,T,C,N){N||(N={});var P=N.enumerable,M=N.name!==void 0?N.name:T;if(u(C)&&d(C,M,N),N.global)P?y[T]=C:g(T,C);else{try{N.unsafe?y[T]&&(P=!0):delete y[T]}catch(G){}P?y[T]=C:h.f(y,T,{value:C,enumerable:!1,configurable:!N.nonConfigurable,writable:!N.nonWritable})}return y}},WxoH:function(m,x,e){var u=e("SwuV"),h=String,d=TypeError;m.exports=function(g){if(u(g))return g;throw d(h(g)+" is not an object")}},"X/EZ":function(m,x,e){var u=e("11yv"),h=u("iterator"),d=!1;try{var g=0,y={next:function(){return{done:!!g++}},return:function(){d=!0}};y[h]=function(){return this},Array.from(y,function(){throw 2})}catch(T){}m.exports=function(T,C){if(!C&&!d)return!1;var N=!1;try{var P={};P[h]=function(){return{next:function(){return{done:N=!0}}}},T(P)}catch(M){}return N}},X4md:function(m,x,e){var u=e("Ks5W"),h=Object.defineProperty;m.exports=function(d,g){try{h(u,d,{value:g,configurable:!0,writable:!0})}catch(y){u[d]=g}return g}},XFuk:function(m,x,e){var u=e("WxoH"),h=e("oR5W"),d=e("Yzn+"),g=e("SkNP"),y=e("bUA4"),T=e("me6S"),C=e("ST+I"),N=">",P="<",M="prototype",G="script",j=C("IE_PROTO"),F=function(){},V=function(nt){return P+G+N+nt+P+"/"+G+N},L=function(nt){nt.write(V("")),nt.close();var w=nt.parentWindow.Object;return nt=null,w},k=function(){var nt=T("iframe"),w="java"+G+":",st;return nt.style.display="none",y.appendChild(nt),nt.src=String(w),st=nt.contentWindow.document,st.open(),st.write(V("document.F=Object")),st.close(),st.F},et,W=function(){try{et=new ActiveXObject("htmlfile")}catch(w){}W=typeof document!="undefined"?document.domain&&et?L(et):k():L(et);for(var nt=d.length;nt--;)delete W[M][d[nt]];return W()};g[j]=!0,m.exports=Object.create||function(w,st){var R;return w!==null?(F[M]=u(w),R=new F,F[M]=null,R[j]=w):R=W(),st===void 0?R:h.f(R,st)}},XTcp:function(m,x,e){var u=e("Ks5W"),h=e("1mOU"),d=e("mcoe"),g=e("JTf3"),y=e("YELS"),T=e("eRwv"),C=e("bUA4"),N=e("0r2v"),P=e("me6S"),M=e("k2qh"),G=e("GgKt"),j=e("IGIO"),F=u.setImmediate,V=u.clearImmediate,L=u.process,k=u.Dispatch,et=u.Function,W=u.MessageChannel,nt=u.String,w=0,st={},R="onreadystatechange",S,U,I,tt;try{S=u.location}catch(b){}var at=function(b){if(y(st,b)){var A=st[b];delete st[b],A()}},Z=function(b){return function(){at(b)}},O=function(b){at(b.data)},$=function(b){u.postMessage(nt(b),S.protocol+"//"+S.host)};(!F||!V)&&(F=function(A){M(arguments.length,1);var H=g(A)?A:et(A),B=N(arguments,1);return st[++w]=function(){h(H,void 0,B)},U(w),w},V=function(A){delete st[A]},j?U=function(b){L.nextTick(Z(b))}:k&&k.now?U=function(b){k.now(Z(b))}:W&&!G?(I=new W,tt=I.port2,I.port1.onmessage=O,U=d(tt.postMessage,tt)):u.addEventListener&&g(u.postMessage)&&!u.importScripts&&S&&S.protocol!=="file:"&&!T($)?(U=$,u.addEventListener("message",O,!1)):R in P("script")?U=function(b){C.appendChild(P("script"))[R]=function(){C.removeChild(this),at(b)}}:U=function(b){setTimeout(Z(b),0)}),m.exports={set:F,clear:V}},XaNE:function(m,x){var e=TypeError;m.exports=function(u){if(u==null)throw e("Can't call method on "+u);return u}},Xp4B:function(m,x,e){"use strict";e.d(x,"a",function(){return C});function u(j){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(V){return typeof V}:u=function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},u(j)}function h(j,F){if(!(j instanceof F))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],g=[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(j,F,V,L,k,et){if(typeof j=="string"&&(j=document.getElementById(j)),!j||!("naturalWidth"in j))return;var W=k?"offset":"natural",nt=j[W+"Width"],w=j[W+"Height"];if(typeof F=="string"&&(F=document.getElementById(F)),!F||!("getContext"in F))return;et||(F.style.width=nt+"px",F.style.height=w+"px"),F.width=nt,F.height=w;var st=F.getContext("2d");if(st.clearRect(0,0,nt,w),st.drawImage(j,0,0,j.naturalWidth,j.naturalHeight,0,0,nt,w),isNaN(V)||V<1)return;L?C(F,0,0,nt,w,V):P(F,0,0,nt,w,V)}function T(j,F,V,L,k){if(typeof j=="string"&&(j=document.getElementById(j)),!j||u(j)!=="object"||!("getContext"in j))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var et=j.getContext("2d");try{return et.getImageData(F,V,L,k)}catch(W){throw new Error("unable to access image data: "+W)}}function C(j,F,V,L,k,et){if(isNaN(et)||et<1)return;et|=0;var W=T(j,F,V,L,k);W=N(W,F,V,L,k,et),j.getContext("2d").putImageData(W,F,V)}function N(j,F,V,L,k,et){for(var W=j.data,nt=2*et+1,w=L-1,st=k-1,R=et+1,S=R*(R+1)/2,U=new G,I=U,tt,at=1;at>H;if(W[b+3]=ot,ot!==0){var pt=255/ot;W[b]=(Gt*A>>H)*pt,W[b+1]=(Mt*A>>H)*pt,W[b+2]=(Vt*A>>H)*pt}else W[b]=W[b+1]=W[b+2]=0;Gt-=Pt,Mt-=Ot,Vt-=jt,Ct-=Lt,Pt-=Z.r,Ot-=Z.g,jt-=Z.b,Lt-=Z.a;var bt=$t+et+1;bt=$+(bt>H,kt>0?(kt=255/kt,W[ne]=(me*A>>H)*kt,W[ne+1]=(ye*A>>H)*kt,W[ne+2]=(xe*A>>H)*kt):W[ne]=W[ne+1]=W[ne+2]=0,me-=Te,ye-=pe,xe-=Pe,Ee-=Se,Te-=Z.r,pe-=Z.g,Pe-=Z.b,Se-=Z.a,ne=qt+((ne=de+R)>b,W[z+1]=Pt*$>>b,W[z+2]=Ot*$>>b,Dt-=ut,Pt-=ct,Ot-=vt,ut-=Z.r,ct-=Z.g,vt-=Z.b,A=B+((A=Ct+et+1)>b,W[A+1]=ot*$>>b,W[A+2]=pt*$>>b,$t-=Jt,ot-=Nt,pt-=Tt,Jt-=Z.r,Nt-=Z.g,Tt-=Z.b,A=Ft+((A=qt+R)M;)h(P,j=N[M++])&&(~g(G,j)||T(G,j));return G}},a9Cf:function(m,x,e){var u=e("11yv"),h=u("toStringTag"),d={};d[h]="z",m.exports=String(d)==="[object z]"},aLaa:function(m,x,e){var u=e("66qH"),h=Function.prototype,d=h.bind,g=h.call,y=u&&d.bind(g,g);m.exports=u?function(T){return T&&y(T)}:function(T){return T&&function(){return g.apply(T,arguments)}}},aNIs:function(m,x,e){var u=e("Ks5W"),h=e("eE3R"),d=u.process,g=u.Deno,y=d&&d.versions||g&&g.version,T=y&&y.v8,C,N;T&&(C=T.split("."),N=C[0]>0&&C[0]<4?1:+(C[0]+C[1])),!N&&h&&(C=h.match(/Edge\/(\d+)/),(!C||C[1]>=74)&&(C=h.match(/Chrome\/(\d+)/),C&&(N=+C[1]))),m.exports=N},aNr2:function(m,x,e){var u=e("jybJ"),h=e("4gdG");(m.exports=function(d,g){return h[d]||(h[d]=g!==void 0?g:{})})("versions",[]).push({version:"3.24.1",mode:u?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},bT0D:function(m,x,e){var u=e("RYfq"),h=e("JTf3"),d=e("3Xd8"),g=e("1Sr1"),y=Object;m.exports=g?function(T){return typeof T=="symbol"}:function(T){var C=u("Symbol");return h(C)&&d(C.prototype,y(T))}},bUA4:function(m,x,e){var u=e("RYfq");m.exports=u("document","documentElement")},ba8b:function(m,x,e){var u=e("aLaa"),h=u({}.toString),d=u("".slice);m.exports=function(g){return d(h(g),8,-1)}},c3MK:function(m,x,e){var u=e("SN6V"),h=Math.min;m.exports=function(d){return d>0?h(u(d),9007199254740991):0}},c55Z:function(m,x,e){var u=e("eRwv"),h=e("Ks5W"),d=h.RegExp;m.exports=u(function(){var g=d("(?b)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$c")!=="bc"})},dAmL:function(m,x){m.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},eE3R:function(m,x,e){var u=e("RYfq");m.exports=u("navigator","userAgent")||""},eRwv:function(m,x){m.exports=function(e){try{return!!e()}catch(u){return!0}}},fKql:function(m,x,e){var u=e("++4Y"),h=e("m7zg"),d=e("5r2E"),g=e("4uGi"),y=e("vkZI"),T=e("GTqx"),C=e("YELS"),N=e("pVCk"),P=Object.getOwnPropertyDescriptor;x.f=u?P:function(G,j){if(G=y(G),j=T(j),N)try{return P(G,j)}catch(F){}if(C(G,j))return g(!h(d.f,G,j),G[j])}},"g8+u":function(m,x,e){var u=e("a9Cf"),h=e("JTf3"),d=e("ba8b"),g=e("11yv"),y=g("toStringTag"),T=Object,C=d(function(){return arguments}())=="Arguments",N=function(P,M){try{return P[M]}catch(G){}};m.exports=u?d:function(P){var M,G,j;return P===void 0?"Undefined":P===null?"Null":typeof(G=N(M=T(P),y))=="string"?G:C?d(M):(j=d(M))=="Object"&&h(M.callee)?"Arguments":j}},g9jQ:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("Nybj").indexOf,g=e("QELg"),y=h([].indexOf),T=!!y&&1/y([1],1,-0)<0,C=g("indexOf");u({target:"Array",proto:!0,forced:T||!C},{indexOf:function(P){var M=arguments.length>1?arguments[1]:void 0;return T?y(this,P,M)||0:d(this,P,M)}})},gzPo:function(m,x,e){var u=e("Ks5W"),h=e("mcoe"),d=e("fKql").f,g=e("XTcp").set,y=e("GgKt"),T=e("FqHY"),C=e("/pbl"),N=e("IGIO"),P=u.MutationObserver||u.WebKitMutationObserver,M=u.document,G=u.process,j=u.Promise,F=d(u,"queueMicrotask"),V=F&&F.value,L,k,et,W,nt,w,st,R;V||(L=function(){var S,U;for(N&&(S=G.domain)&&S.exit();k;){U=k.fn,k=k.next;try{U()}catch(I){throw k?W():et=void 0,I}}et=void 0,S&&S.enter()},!y&&!N&&!C&&P&&M?(nt=!0,w=M.createTextNode(""),new P(L).observe(w,{characterData:!0}),W=function(){w.data=nt=!nt}):!T&&j&&j.resolve?(st=j.resolve(void 0),st.constructor=j,R=h(st.then,st),W=function(){R(L)}):N?W=function(){G.nextTick(L)}:(g=h(g,u),W=function(){g(L)})),m.exports=V||function(S){var U={fn:S,next:void 0};et&&(et.next=U),k||(k=U,W()),et=U}},hIaP:function(m,x,e){var u=e("m7zg"),h=e("8HiI"),d=e("WxoH"),g=e("IL+x"),y=e("ltkU"),T=TypeError;m.exports=function(C,N){var P=arguments.length<2?y(C):N;if(h(P))return d(u(P,C));throw T(g(C)+" is not iterable")}},"iBj/":function(m,x,e){var u=e("m7zg"),h=e("WxoH"),d=e("oK8H");m.exports=function(g,y,T){var C,N;h(g);try{if(C=d(g,"return"),!C){if(y==="throw")throw T;return T}C=u(C,g)}catch(P){N=!0,C=P}if(y==="throw")throw T;if(N)throw C;return h(C),T}},iWRt:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("uZ/K"),g=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),g(this)}})},jCYL:function(m,x,e){"use strict";var u=e("nCzB"),h=e("RYfq"),d=e("jybJ"),g=e("KLK4"),y=e("GxTi").CONSTRUCTOR,T=e("TRzv"),C=h("Promise"),N=d&&!y;u({target:"Promise",stat:!0,forced:d||y},{resolve:function(M){return T(N&&this===C?g:this,M)}})},jgt4:function(m,x,e){"use strict";var u=e("nCzB"),h=e("m7zg"),d=e("jybJ"),g=e("N6FT"),y=e("JTf3"),T=e("3agc"),C=e("WLJ+"),N=e("JHvW"),P=e("ueY1"),M=e("8ODz"),G=e("WaP5"),j=e("11yv"),F=e("AoAp"),V=e("qjFr"),L=g.PROPER,k=g.CONFIGURABLE,et=V.IteratorPrototype,W=V.BUGGY_SAFARI_ITERATORS,nt=j("iterator"),w="keys",st="values",R="entries",S=function(){return this};m.exports=function(U,I,tt,at,Z,O,$){T(tt,I,at);var b=function(ct){if(ct===Z&&Q)return Q;if(!W&&ct in B)return B[ct];switch(ct){case w:return function(){return new tt(this,ct)};case st:return function(){return new tt(this,ct)};case R:return function(){return new tt(this,ct)}}return function(){return new tt(this)}},A=I+" Iterator",H=!1,B=U.prototype,z=B[nt]||B["@@iterator"]||Z&&B[Z],Q=!W&&z||b(Z),Y=I=="Array"&&B.entries||z,X,J,ut;if(Y&&(X=C(Y.call(new U)),X!==Object.prototype&&X.next&&(!d&&C(X)!==et&&(N?N(X,et):y(X[nt])||G(X,nt,S)),P(X,A,!0,!0),d&&(F[A]=S))),L&&Z==st&&z&&z.name!==st&&(!d&&k?M(B,"name",st):(H=!0,Q=function(){return h(z,this)})),Z)if(J={values:b(st),keys:O?Q:b(w),entries:b(R)},$)for(ut in J)(W||H||!(ut in B))&&G(B,ut,J[ut]);else u({target:I,proto:!0,forced:W||H},J);return(!d||$)&&B[nt]!==Q&&G(B,nt,Q,{name:Z}),F[I]=Q,J}},jybJ:function(m,x){m.exports=!1},k2qh:function(m,x){var e=TypeError;m.exports=function(u,h){if(u79&&g<83;u({target:"Array",proto:!0,forced:!T||C},{reduce:function(P){var M=arguments.length;return h(this,P,M,M>1?arguments[1]:void 0)}})},me6S:function(m,x,e){var u=e("Ks5W"),h=e("SwuV"),d=u.document,g=h(d)&&h(d.createElement);m.exports=function(y){return g?d.createElement(y):{}}},ms20:function(m,x,e){var u=e("m7zg"),h=e("SwuV"),d=e("bT0D"),g=e("oK8H"),y=e("2lHc"),T=e("11yv"),C=TypeError,N=T("toPrimitive");m.exports=function(P,M){if(!h(P)||d(P))return P;var G=g(P,N),j;if(G){if(M===void 0&&(M="default"),j=u(G,P,M),!h(j)||d(j))return j;throw C("Can't convert object to primitive value")}return M===void 0&&(M="number"),y(P,M)}},n6S8:function(m,x,e){var u=e("SN6V"),h=Math.max,d=Math.min;m.exports=function(g,y){var T=u(g);return T<0?h(T+y,0):d(T,y)}},nCzB:function(m,x,e){var u=e("Ks5W"),h=e("fKql").f,d=e("8ODz"),g=e("WaP5"),y=e("X4md"),T=e("Ttl4"),C=e("mGb/");m.exports=function(N,P){var M=N.target,G=N.global,j=N.stat,F,V,L,k,et,W;if(G?V=u:j?V=u[M]||y(M,{}):V=(u[M]||{}).prototype,V)for(L in P){if(et=P[L],N.dontCallGetSet?(W=h(V,L),k=W&&W.value):k=V[L],F=C(G?L:M+(j?".":"#")+L,N.forced),!F&&k!==void 0){if(typeof et==typeof k)continue;T(et,k)}(N.sham||k&&k.sham)&&d(et,"sham",!0),g(V,L,et,N)}}},noWC:function(m,x){m.exports=` -\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},nvEG:function(m,x,e){var u=e("mcoe"),h=e("m7zg"),d=e("WxoH"),g=e("IL+x"),y=e("3n0U"),T=e("tMNq"),C=e("3Xd8"),N=e("hIaP"),P=e("ltkU"),M=e("iBj/"),G=TypeError,j=function(V,L){this.stopped=V,this.result=L},F=j.prototype;m.exports=function(V,L,k){var et=k&&k.that,W=!!(k&&k.AS_ENTRIES),nt=!!(k&&k.IS_RECORD),w=!!(k&&k.IS_ITERATOR),st=!!(k&&k.INTERRUPTED),R=u(L,et),S,U,I,tt,at,Z,O,$=function(A){return S&&M(S,"normal",A),new j(!0,A)},b=function(A){return W?(d(A),st?R(A[0],A[1],$):R(A[0],A[1])):st?R(A,$):R(A)};if(nt)S=V.iterator;else if(w)S=V;else{if(U=P(V),!U)throw G(g(V)+" is not iterable");if(y(U)){for(I=0,tt=T(V);tt>I;I++)if(at=b(V[I]),at&&C(F,at))return at;return new j(!1)}S=N(V,U)}for(Z=nt?V.next:S.next;!(O=h(Z,S)).done;){try{at=b(O.value)}catch(A){M(S,"throw",A)}if(typeof at=="object"&&at&&C(F,at))return at}return new j(!1)}},oK8H:function(m,x,e){var u=e("8HiI");m.exports=function(h,d){var g=h[d];return g==null?void 0:u(g)}},oR5W:function(m,x,e){var u=e("++4Y"),h=e("FkIU"),d=e("FlRv"),g=e("WxoH"),y=e("vkZI"),T=e("Ai06");x.f=u&&!h?Object.defineProperties:function(N,P){g(N);for(var M=y(P),G=T(P),j=G.length,F=0,V;j>F;)d.f(N,V=G[F++],M[V]);return N}},oauk:function(m,x,e){"use strict";var u=e("GTqx"),h=e("FlRv"),d=e("4uGi");m.exports=function(g,y,T){var C=u(y);C in g?h.f(g,C,d(0,T)):g[C]=T}},p5Ma:function(m,x,e){var u=e("aLaa"),h=e("eRwv"),d=e("ba8b"),g=Object,y=u("".split);m.exports=h(function(){return!g("z").propertyIsEnumerable(0)})?function(T){return d(T)=="String"?y(T,""):g(T)}:g},pVCk:function(m,x,e){var u=e("++4Y"),h=e("eRwv"),d=e("me6S");m.exports=!u&&!h(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},"plO+":function(m,x,e){var u=e("aNIs"),h=e("eRwv");m.exports=!!Object.getOwnPropertySymbols&&!h(function(){var d=Symbol();return!String(d)||!(Object(d)instanceof Symbol)||!Symbol.sham&&u&&u<41})},qJvV:function(m,x,e){var u=e("Ks5W"),h=e("ENhe"),d=e("GI0h"),g=e("Lltv"),y=e("8ODz"),T=e("11yv"),C=T("iterator"),N=T("toStringTag"),P=g.values,M=function(j,F){if(j){if(j[C]!==P)try{y(j,C,P)}catch(L){j[C]=P}if(j[N]||y(j,N,F),h[F]){for(var V in g)if(j[V]!==g[V])try{y(j,V,g[V])}catch(L){j[V]=g[V]}}}};for(var G in h)M(u[G]&&u[G].prototype,G);M(d,"DOMTokenList")},qjFr:function(m,x,e){"use strict";var u=e("eRwv"),h=e("JTf3"),d=e("XFuk"),g=e("WLJ+"),y=e("WaP5"),T=e("11yv"),C=e("jybJ"),N=T("iterator"),P=!1,M,G,j;[].keys&&(j=[].keys(),"next"in j?(G=g(g(j)),G!==Object.prototype&&(M=G)):P=!0);var F=M==null||u(function(){var V={};return M[N].call(V)!==V});F?M={}:C&&(M=d(M)),h(M[N])||y(M,N,function(){return this}),m.exports={IteratorPrototype:M,BUGGY_SAFARI_ITERATORS:P}},qzpy:function(m,x,e){var u=e("g8+u"),h=String;m.exports=function(d){if(u(d)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return h(d)}},sNJV:function(m,x,e){var u=e("aLaa"),h=e("JTf3"),d=e("4gdG"),g=u(Function.toString);h(d.inspectSource)||(d.inspectSource=function(y){return g(y)}),m.exports=d.inspectSource},tMNq:function(m,x,e){var u=e("c3MK");m.exports=function(h){return u(h.length)}},tZjp:function(m,x,e){"use strict";var u=e("nCzB"),h=e("jybJ"),d=e("IGIO"),g=e("Ks5W"),y=e("m7zg"),T=e("WaP5"),C=e("JHvW"),N=e("ueY1"),P=e("9Bi7"),M=e("8HiI"),G=e("JTf3"),j=e("SwuV"),F=e("uoua"),V=e("NudO"),L=e("XTcp").set,k=e("gzPo"),et=e("lAFk"),W=e("8xe4"),nt=e("zUnQ"),w=e("UQ6y"),st=e("KLK4"),R=e("GxTi"),S=e("zFjv"),U="Promise",I=R.CONSTRUCTOR,tt=R.REJECTION_EVENT,at=R.SUBCLASSING,Z=w.getterFor(U),O=w.set,$=st&&st.prototype,b=st,A=$,H=g.TypeError,B=g.document,z=g.process,Q=S.f,Y=Q,X=!!(B&&B.createEvent&&g.dispatchEvent),J="unhandledrejection",ut="rejectionhandled",ct=0,vt=1,Dt=2,Pt=1,Ot=2,jt,Lt,Gt,Mt,Vt=function(ot){var pt;return j(ot)&&G(pt=ot.then)?pt:!1},Ct=function(ot,pt){var bt=pt.value,Rt=pt.state==vt,It=Rt?ot.ok:ot.fail,re=ot.resolve,se=ot.reject,le=ot.domain,qt,fe,ee;try{It?(Rt||(pt.rejection===Ot&&Jt(pt),pt.rejection=Pt),It===!0?qt=bt:(le&&le.enter(),qt=It(bt),le&&(le.exit(),ee=!0)),qt===ot.promise?se(H("Promise-chain cycle")):(fe=Vt(qt))?y(fe,qt,re,se):re(qt)):se(bt)}catch(he){le&&!ee&&le.exit(),se(he)}},Ft=function(ot,pt){if(ot.notified)return;ot.notified=!0,k(function(){for(var bt=ot.reactions,Rt;Rt=bt.get();)Ct(Rt,ot);ot.notified=!1,pt&&!ot.rejection&&Yt(ot)})},zt=function(ot,pt,bt){var Rt,It;X?(Rt=B.createEvent("Event"),Rt.promise=pt,Rt.reason=bt,Rt.initEvent(ot,!1,!0),g.dispatchEvent(Rt)):Rt={promise:pt,reason:bt},!tt&&(It=g["on"+ot])?It(Rt):ot===J&&et("Unhandled promise rejection",bt)},Yt=function(ot){y(L,g,function(){var pt=ot.facade,bt=ot.value,Rt=Ut(ot),It;if(Rt&&(It=W(function(){d?z.emit("unhandledRejection",bt,pt):zt(J,pt,bt)}),ot.rejection=d||Ut(ot)?Ot:Pt,It.error))throw It.value})},Ut=function(ot){return ot.rejection!==Pt&&!ot.parent},Jt=function(ot){y(L,g,function(){var pt=ot.facade;d?z.emit("rejectionHandled",pt):zt(ut,pt,ot.value)})},Nt=function(ot,pt,bt){return function(Rt){ot(pt,Rt,bt)}},Tt=function(ot,pt,bt){if(ot.done)return;ot.done=!0,bt&&(ot=bt),ot.value=pt,ot.state=Dt,Ft(ot,!0)},$t=function(ot,pt,bt){if(ot.done)return;ot.done=!0,bt&&(ot=bt);try{if(ot.facade===pt)throw H("Promise can't be resolved itself");var Rt=Vt(pt);Rt?k(function(){var It={done:!1};try{y(Rt,pt,Nt($t,It,ot),Nt(Tt,It,ot))}catch(re){Tt(It,re,ot)}}):(ot.value=pt,ot.state=vt,Ft(ot,!1))}catch(It){Tt({done:!1},It,ot)}};if(I&&(b=function(pt){F(this,A),M(pt),y(jt,this);var bt=Z(this);try{pt(Nt($t,bt),Nt(Tt,bt))}catch(Rt){Tt(bt,Rt)}},A=b.prototype,jt=function(pt){O(this,{type:U,done:!1,notified:!1,parent:!1,reactions:new nt,rejection:!1,state:ct,value:void 0})},jt.prototype=T(A,"then",function(pt,bt){var Rt=Z(this),It=Q(V(this,b));return Rt.parent=!0,It.ok=G(pt)?pt:!0,It.fail=G(bt)&&bt,It.domain=d?z.domain:void 0,Rt.state==ct?Rt.reactions.add(It):k(function(){Ct(It,Rt)}),It.promise}),Lt=function(){var ot=new jt,pt=Z(ot);this.promise=ot,this.resolve=Nt($t,pt),this.reject=Nt(Tt,pt)},S.f=Q=function(ot){return ot===b||ot===Gt?new Lt(ot):Y(ot)},!h&&G(st)&&$!==Object.prototype)){Mt=$.then,at||T($,"then",function(pt,bt){var Rt=this;return new b(function(It,re){y(Mt,Rt,It,re)}).then(pt,bt)},{unsafe:!0});try{delete $.constructor}catch(ot){}C&&C($,A)}u({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:b}),N(b,U,!1,!0),P(U)},"uZ/K":function(m,x,e){var u=e("ba8b");m.exports=Array.isArray||function(d){return u(d)=="Array"}},ueY1:function(m,x,e){var u=e("FlRv").f,h=e("YELS"),d=e("11yv"),g=d("toStringTag");m.exports=function(y,T,C){y&&!C&&(y=y.prototype),y&&!h(y,g)&&u(y,g,{configurable:!0,value:T})}},uoua:function(m,x,e){var u=e("3Xd8"),h=TypeError;m.exports=function(d,g){if(u(g,d))return d;throw h("Incorrect invocation")}},vTDQ:function(m,x,e){var u=e("dAmL"),h=e("IGIO");m.exports=!u&&!h&&typeof window=="object"&&typeof document=="object"},vkZI:function(m,x,e){var u=e("p5Ma"),h=e("XaNE");m.exports=function(d){return u(h(d))}},vrKp:function(m,x,e){e("tZjp"),e("A2dy"),e("13vt"),e("D0VN"),e("ESVS"),e("jCYL")},wOD2:function(m,x,e){"use strict";var u=e("nCzB"),h=e("RXj+").trim,d=e("5JCY");u({target:"String",proto:!0,forced:d("trim")},{trim:function(){return h(this)}})},"x1+7":function(m,x,e){var u=e("RYfq"),h=e("aLaa"),d=e("QrM1"),g=e("UCFi"),y=e("WxoH"),T=h([].concat);m.exports=u("Reflect","ownKeys")||function(N){var P=d.f(y(N)),M=g.f;return M?T(P,M(N)):P}},x8x8:function(m,x,e){"use strict";var u=e("1mOU"),h=e("m7zg"),d=e("aLaa"),g=e("WONN"),y=e("eRwv"),T=e("WxoH"),C=e("JTf3"),N=e("SN6V"),P=e("c3MK"),M=e("qzpy"),G=e("XaNE"),j=e("M/+V"),F=e("oK8H"),V=e("Ne/+"),L=e("3fk+"),k=e("11yv"),et=k("replace"),W=Math.max,nt=Math.min,w=d([].concat),st=d([].push),R=d("".indexOf),S=d("".slice),U=function(Z){return Z===void 0?Z:String(Z)},I=function(){return"a".replace(/./,"$0")==="$0"}(),tt=function(){return/./[et]?/./[et]("a","$0")==="":!1}(),at=!y(function(){var Z=/./;return Z.exec=function(){var O=[];return O.groups={a:"7"},O},"".replace(Z,"$")!=="7"});g("replace",function(Z,O,$){var b=tt?"$":"$0";return[function(H,B){var z=G(this),Q=H==null?void 0:F(H,et);return Q?h(Q,H,z,B):h(O,M(z),H,B)},function(A,H){var B=T(this),z=M(A);if(typeof H=="string"&&R(H,b)===-1&&R(H,"$<")===-1){var Q=$(O,B,z,H);if(Q.done)return Q.value}var Y=C(H);Y||(H=M(H));var X=B.global;if(X){var J=B.unicode;B.lastIndex=0}for(var ut=[];;){var ct=L(B,z);if(ct===null)break;if(st(ut,ct),!X)break;var vt=M(ct[0]);vt===""&&(B.lastIndex=j(z,P(B.lastIndex),J))}for(var Dt="",Pt=0,Ot=0;Ot=Pt&&(Dt+=S(z,Pt,Lt)+Ft,Pt=Lt+jt.length)}return Dt+S(z,Pt)}]},!at||!I||tt)},yD9w:function(m,x,e){"use strict";var u=e("N6FT").PROPER,h=e("WaP5"),d=e("WxoH"),g=e("qzpy"),y=e("eRwv"),T=e("Vgcz"),C="toString",N=RegExp.prototype,P=N[C],M=y(function(){return P.call({source:"a",flags:"b"})!="/a/b"}),G=u&&P.name!=C;(M||G)&&h(RegExp.prototype,C,function(){var F=d(this),V=g(F.source),L=g(T(F));return"/"+V+"/"+L},{unsafe:!0})},yXPU:function(m,x){function e(h,d,g,y,T,C,N){try{var P=h[C](N),M=P.value}catch(G){g(G);return}P.done?d(M):Promise.resolve(M).then(y,T)}function u(h){return function(){var d=this,g=arguments;return new Promise(function(y,T){var C=h.apply(d,g);function N(M){e(C,y,T,N,P,"next",M)}function P(M){e(C,y,T,N,P,"throw",M)}N(void 0)})}}m.exports=u,m.exports.__esModule=!0,m.exports.default=m.exports},ymN0:function(m,x,e){var u=e("aLaa"),h=e("SN6V"),d=e("qzpy"),g=e("XaNE"),y=u("".charAt),T=u("".charCodeAt),C=u("".slice),N=function(P){return function(M,G){var j=d(g(M)),F=h(G),V=j.length,L,k;return F<0||F>=V?P?"":void 0:(L=T(j,F),L<55296||L>56319||F+1===V||(k=T(j,F+1))<56320||k>57343?P?y(j,F):L:P?C(j,F,F+2):(L-55296<<10)+(k-56320)+65536)}};m.exports={codeAt:N(!1),charAt:N(!0)}},zFjv:function(m,x,e){"use strict";var u=e("8HiI"),h=function(d){var g,y;this.promise=new d(function(T,C){if(g!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");g=T,y=C}),this.resolve=u(g),this.reject=u(y)};m.exports.f=function(d){return new h(d)}},zUnQ:function(m,x){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(u){var h={item:u,next:null};this.head?this.tail.next=h:this.head=h,this.tail=h},get:function(){var u=this.head;if(u)return this.head=u.next,this.tail===u&&(this.tail=null),u.item}},m.exports=e}}]); diff --git a/237.ff203ed6.async.js b/237.ff203ed6.async.js new file mode 100644 index 0000000000..32e87a58a0 --- /dev/null +++ b/237.ff203ed6.async.js @@ -0,0 +1,18 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[237],{"++4Y":function(m,y,e){var u=e("eRwv");m.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"/TZh":function(m,y,e){var u=e("11yv"),h=u("match");m.exports=function(v){var g=/./;try{"/./"[v](g)}catch(x){try{return g[h]=!1,"/./"[v](g)}catch(T){}}return!1}},"/dXc":function(m,y){var e=Math.ceil,u=Math.floor;m.exports=Math.trunc||function(v){var g=+v;return(g>0?u:e)(g)}},"/pbl":function(m,y,e){var u=e("eE3R");m.exports=/web0s(?!.*chrome)/i.test(u)},"013W":function(m,y){var e=typeof document=="object"&&document.all,u=typeof e=="undefined"&&e!==void 0;m.exports={all:e,IS_HTMLDDA:u}},"0B/8":function(m,y,e){"use strict";e.d(y,"a",function(){return V});/*! ***************************************************************************** +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,U){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,nt){A.__proto__=nt}||function(A,nt){for(var at in nt)Object.prototype.hasOwnProperty.call(nt,at)&&(A[at]=nt[at])})(R,U)};function h(C,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function U(){this.constructor=C}u(C,R),C.prototype=R===null?Object.create(R):(U.prototype=R.prototype,new U)}function v(C){var R="";Array.isArray(C)||(C=[C]);for(var U=0;UC.phi1&&(C.phi2-=2*T),C.sweepFlag===1&&C.phi2A)return[];if(A===0)return[[C*U/(C*C+R*R),R*U/(C*C+R*R)]];var nt=Math.sqrt(A);return[[(C*U+R*nt)/(C*C+R*R),(R*U-C*nt)/(C*C+R*R)],[(C*U-R*nt)/(C*C+R*R),(R*U+C*nt)/(C*C+R*R)]]}var S,j=Math.PI/180;function B(C,R,U){return(1-U)*C+U*R}function D(C,R,U,A){return C+Math.cos(A/180*T)*R+Math.sin(A/180*T)*U}function W(C,R,U,A){var nt=1e-6,at=R-C,_=U-R,O=3*at+3*(A-U)-6*_,$=6*(_-at),b=3*at;return Math.abs(O)Ot&&(F.sweepFlag=+!F.sweepFlag),F})}function _(){return function(O){var $={};for(var b in O)$[b]=O[b];return $}}C.ROUND=function(O){function $(b){return Math.round(b*O)/O}return O===void 0&&(O=1e13),x(O),function(b){return b.x1!==void 0&&(b.x1=$(b.x1)),b.y1!==void 0&&(b.y1=$(b.y1)),b.x2!==void 0&&(b.x2=$(b.x2)),b.y2!==void 0&&(b.y2=$(b.y2)),b.x!==void 0&&(b.x=$(b.x)),b.y!==void 0&&(b.y=$(b.y)),b.rX!==void 0&&(b.rX=$(b.rX)),b.rY!==void 0&&(b.rY=$(b.rY)),b}},C.TO_ABS=R,C.TO_REL=function(){return nt(function(O,$,b){return O.relative||(O.x1!==void 0&&(O.x1-=$),O.y1!==void 0&&(O.y1-=b),O.x2!==void 0&&(O.x2-=$),O.y2!==void 0&&(O.y2-=b),O.x!==void 0&&(O.x-=$),O.y!==void 0&&(O.y-=b),O.relative=!0),O})},C.NORMALIZE_HVZ=function(O,$,b){return O===void 0&&(O=!0),$===void 0&&($=!0),b===void 0&&(b=!0),nt(function(I,Y,w,F,Q){if(isNaN(F)&&!(I.type&V.MOVE_TO))throw new Error("path must start with moveto");return $&&I.type&V.HORIZ_LINE_TO&&(I.type=V.LINE_TO,I.y=I.relative?0:w),b&&I.type&V.VERT_LINE_TO&&(I.type=V.LINE_TO,I.x=I.relative?0:Y),O&&I.type&V.CLOSE_PATH&&(I.type=V.LINE_TO,I.x=I.relative?F-Y:F,I.y=I.relative?Q-w:Q),I.type&V.ARC&&(I.rX===0||I.rY===0)&&(I.type=V.LINE_TO,delete I.rX,delete I.rY,delete I.xRot,delete I.lArcFlag,delete I.sweepFlag),I})},C.NORMALIZE_ST=U,C.QT_TO_C=A,C.INFO=nt,C.SANITIZE=function(O){O===void 0&&(O=0),x(O);var $=NaN,b=NaN,I=NaN,Y=NaN;return nt(function(w,F,Q,H,J){var k=Math.abs,ft=!1,pt=0,ut=0;if(w.type&V.SMOOTH_CURVE_TO&&(pt=isNaN($)?0:F-$,ut=isNaN(b)?0:Q-b),w.type&(V.CURVE_TO|V.SMOOTH_CURVE_TO)?($=w.relative?F+w.x2:w.x2,b=w.relative?Q+w.y2:w.y2):($=NaN,b=NaN),w.type&V.SMOOTH_QUAD_TO?(I=isNaN(I)?F:2*F-I,Y=isNaN(Y)?Q:2*Q-Y):w.type&V.QUAD_TO?(I=w.relative?F+w.x1:w.x1,Y=w.relative?Q+w.y1:w.y2):(I=NaN,Y=NaN),w.type&V.LINE_COMMANDS||w.type&V.ARC&&(w.rX===0||w.rY===0||!w.lArcFlag)||w.type&V.CURVE_TO||w.type&V.SMOOTH_CURVE_TO||w.type&V.QUAD_TO||w.type&V.SMOOTH_QUAD_TO){var Nt=w.x===void 0?0:w.relative?w.x:w.x-F,St=w.y===void 0?0:w.relative?w.y:w.y-Q;pt=isNaN(I)?w.x1===void 0?pt:w.relative?w.x:w.x1-F:I-F,ut=isNaN(Y)?w.y1===void 0?ut:w.relative?w.y:w.y1-Q:Y-Q;var Ot=w.x2===void 0?0:w.relative?w.x:w.x2-F,It=w.y2===void 0?0:w.relative?w.y:w.y2-Q;k(Nt)<=O&&k(St)<=O&&k(pt)<=O&&k(ut)<=O&&k(Ot)<=O&&k(It)<=O&&(ft=!0)}return w.type&V.CLOSE_PATH&&k(F-H)<=O&&k(Q-J)<=O&&(ft=!0),ft?[]:w})},C.MATRIX=at,C.ROTATE=function(O,$,b){$===void 0&&($=0),b===void 0&&(b=0),x(O,$,b);var I=Math.sin(O),Y=Math.cos(O);return at(Y,I,-I,Y,$-$*Y+b*I,b-$*I-b*Y)},C.TRANSLATE=function(O,$){return $===void 0&&($=0),x(O,$),at(1,0,0,1,O,$)},C.SCALE=function(O,$){return $===void 0&&($=O),x(O,$),at(O,0,0,$,0,0)},C.SKEW_X=function(O){return x(O),at(1,0,Math.atan(O),1,0,0)},C.SKEW_Y=function(O){return x(O),at(1,Math.atan(O),0,1,0,0)},C.X_AXIS_SYMMETRY=function(O){return O===void 0&&(O=0),x(O),at(-1,0,0,1,O,0)},C.Y_AXIS_SYMMETRY=function(O){return O===void 0&&(O=0),x(O),at(1,0,0,-1,0,O)},C.A_TO_C=function(){return nt(function(O,$,b){return V.ARC===O.type?function(I,Y,w){var F,Q,H,J;I.cX||P(I,Y,w);for(var k=Math.min(I.phi1,I.phi2),ft=Math.max(I.phi1,I.phi2)-k,pt=Math.ceil(ft/90),ut=new Array(pt),Nt=Y,St=w,Ot=0;OtY.maxX&&(Y.maxX=Tt),TtY.maxY&&(Y.maxY=Tt),Ttjt&&J(G(F,H.x1,H.x2,H.x,jt));for(var ut=0,Nt=W(Q,H.y1,H.y2,H.y);utjt&&k(G(Q,H.y1,H.y2,H.y,jt))}if(H.type&V.ARC){J(H.x),k(H.y),P(H,F,Q);for(var St=H.xRot/180*Math.PI,Ot=Math.cos(St)*H.rX,It=Math.sin(St)*H.rX,wt=-Math.sin(St)*H.rY,Bt=Math.cos(St)*H.rY,Dt=H.phi1H.phi2?[H.phi2+360,H.phi1+360]:[H.phi2,H.phi1],Ft=Dt[0],Ct=Dt[1],Gt=function($t){var ot=$t[0],gt=$t[1],bt=180*Math.atan2(gt,ot)/Math.PI;return btFt&&jtFt&&jtI)throw new SyntaxError('Expected positive number, got "'+I+'" at index "'+_+'"')}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 "'+_+'"')}this.curArgs.push(I),this.curArgs.length===lt[this.curCommandType]&&(V.HORIZ_LINE_TO===this.curCommandType?at({type:V.HORIZ_LINE_TO,relative:this.curCommandRelative,x:I}):V.VERT_LINE_TO===this.curCommandType?at({type:V.VERT_LINE_TO,relative:this.curCommandRelative,y:I}):this.curCommandType===V.MOVE_TO||this.curCommandType===V.LINE_TO||this.curCommandType===V.SMOOTH_QUAD_TO?(at({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),V.MOVE_TO===this.curCommandType&&(this.curCommandType=V.LINE_TO)):this.curCommandType===V.CURVE_TO?at({type:V.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===V.SMOOTH_CURVE_TO?at({type:V.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===V.QUAD_TO?at({type:V.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===V.ARC&&at({type:V.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!q(O))if(O===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(O!=="+"&&O!=="-"&&O!==".")if(b)this.curNumber=O,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+_+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+O+'" at index '+_+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,O!=="z"&&O!=="Z")if(O==="h"||O==="H")this.curCommandType=V.HORIZ_LINE_TO,this.curCommandRelative=O==="h";else if(O==="v"||O==="V")this.curCommandType=V.VERT_LINE_TO,this.curCommandRelative=O==="v";else if(O==="m"||O==="M")this.curCommandType=V.MOVE_TO,this.curCommandRelative=O==="m";else if(O==="l"||O==="L")this.curCommandType=V.LINE_TO,this.curCommandRelative=O==="l";else if(O==="c"||O==="C")this.curCommandType=V.CURVE_TO,this.curCommandRelative=O==="c";else if(O==="s"||O==="S")this.curCommandType=V.SMOOTH_CURVE_TO,this.curCommandRelative=O==="s";else if(O==="q"||O==="Q")this.curCommandType=V.QUAD_TO,this.curCommandRelative=O==="q";else if(O==="t"||O==="T")this.curCommandType=V.SMOOTH_QUAD_TO,this.curCommandRelative=O==="t";else{if(O!=="a"&&O!=="A")throw new SyntaxError('Unexpected character "'+O+'" at index '+_+".");this.curCommandType=V.ARC,this.curCommandRelative=O==="a"}else A.push({type:V.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 A},R.prototype.transform=function(U){return Object.create(this,{parse:{value:function(nt,at){at===void 0&&(at=[]);for(var _=0,O=Object.getPrototypeOf(this).parse.call(this,nt);_=0;--Pt){var yt=this.tryEntries[Pt],Ht=yt.completion;if(yt.tryLoc==="root")return dt("end");if(yt.tryLoc<=this.prev){var ae=n.call(yt,"catchLoc"),oe=n.call(yt,"finallyLoc");if(ae&&oe){if(this.prev=0;--dt){var Pt=this.tryEntries[dt];if(Pt.tryLoc<=this.prev&&n.call(Pt,"finallyLoc")&&this.prev=0;--ct){var dt=this.tryEntries[ct];if(dt.finallyLoc===Z)return this.complete(dt.completion,dt.afterLoc),Ut(dt),c}},catch:function(Z){for(var ct=this.tryEntries.length-1;ct>=0;--ct){var dt=this.tryEntries[ct];if(dt.tryLoc===Z){var Pt=dt.completion;if(Pt.type==="throw"){var yt=Pt.arg;Ut(dt)}return yt}}throw new Error("illegal catch attempt")},delegateYield:function(Z,ct,dt){return this.delegate={iterator:Qt(Z),resultName:ct,nextLoc:dt},this.method==="next"&&(this.arg=void 0),c}},d}function Gt(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=d.DOMParser,n={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:f,createCanvas:function(t,i){return new OffscreenCanvas(t,i)},createImage:function(t){return ut()(Ct().mark(function i(){var r,o,s;return Ct().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 Vt(d){var f=d.DOMParser,n=d.canvas,a=d.fetch;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:f,fetch:a,createCanvas:n.createCanvas,createImage:n.loadImage}}var Yt=Object.freeze({__proto__:null,offscreen:Gt,node:Vt});function Lt(d){return d.replace(/(?!\u3000)\s+/gm," ")}function Jt(d){return d.replace(/^[\n \t]+/,"")}function jt(d){return d.replace(/[\n \t]+$/,"")}function Tt(d){var f=(d||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return f.map(parseFloat)}var $t=/^[A-Z-]+$/;function ot(d){return $t.test(d)?d.toLowerCase():d}function gt(d){var f=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(d)||[];return f[2]||f[3]||f[4]}function bt(d){if(!d.startsWith("rgb"))return d;var f=3,n=d.replace(/\d+(\.\d+)?/g,function(a,t){return f--&&t?String(Math.round(parseFloat(a))):a});return n}var Rt=/(\[[^\]]+\])/g,Mt=/(#[^\s+>~.[:]+)/g,re=/(\.[^\s+>~.[:]+)/g,se=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,le=/(:[\w-]+\([^)]*\))/gi,qt=/(:[^\s+>~.[:]+)/g,fe=/([^\s+>~.[:]+)/g;function ee(d,f){var n=f.exec(d);return n?[d.replace(f," "),n.length]:[d,0]}function he(d){var f=[0,0,0],n=d.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,t=ee(n,Rt),i=Object(ft.a)(t,2);n=i[0],a=i[1],f[1]+=a;var r=ee(n,Mt),o=Object(ft.a)(r,2);n=o[0],a=o[1],f[0]+=a;var s=ee(n,re),l=Object(ft.a)(s,2);n=l[0],a=l[1],f[1]+=a;var c=ee(n,se),p=Object(ft.a)(c,2);n=p[0],a=p[1],f[2]+=a;var E=ee(n,le),L=Object(ft.a)(E,2);n=L[0],a=L[1],f[1]+=a;var K=ee(n,qt),tt=Object(ft.a)(K,2);n=tt[0],a=tt[1],f[1]+=a,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," ");var it=ee(n,fe),et=Object(ft.a)(it,2);return n=et[0],a=et[1],f[2]+=a,f.join("")}var Xt=1e-8;function Te(d){return Math.sqrt(Math.pow(d[0],2)+Math.pow(d[1],2))}function pe(d,f){return(d[0]*f[0]+d[1]*f[1])/(Te(d)*Te(f))}function Pe(d,f){return(d[0]*f[1]0&&arguments[0]!==void 0?arguments[0]:" ",a=this.document,t=this.name;return Lt(this.getString()).trim().split(n).map(function(i){return new d(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=bt(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(ft.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()?d.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=Tt(n),i=Object(ft.a)(t,2),r=i[0],o=r===void 0?a:r,s=i[1],l=s===void 0?a:s;return new d(o,l)}},{key:"parseScale",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,t=Tt(n),i=Object(ft.a)(t,2),r=i[0],o=r===void 0?a:r,s=i[1],l=s===void 0?o:s;return new d(o,l)}},{key:"parsePath",value:function(n){for(var a=Tt(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 kt(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()}})}}]),d}(),Ce=typeof window!="undefined"?window:null,Re=typeof fetch!="undefined"?fetch.bind(void 0):null,de=function(){function d(f){Object(J.a)(this,d);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.fetch,t=a===void 0?Re:a,i=n.window,r=i===void 0?Ce:i;this.ctx=f,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Me,this.mouse=new je(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(k.a)(d,[{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,p=c===void 0?0:c,E=n.minY,L=E===void 0?0:E,K=n.refX,tt=n.refY,it=n.clip,et=it===void 0?!1:it,xt=n.clipX,vt=xt===void 0?0:xt,ht=n.clipY,Et=ht===void 0?0:ht,Ut=Lt(i).replace(/^defer\s/,""),Wt=Ut.split(" "),Qt=Object(ft.a)(Wt,2),ie=Qt[0],st=Qt[1],Z=ie||"xMidYMid",ct=st||"meet",dt=r/o,Pt=s/l,yt=Math.min(dt,Pt),Ht=Math.max(dt,Pt),ae=o,oe=l;ct==="meet"&&(ae*=yt,oe*=yt),ct==="slice"&&(ae*=Ht,oe*=Ht);var zt=new mt(a,"refX",K),te=new mt(a,"refY",tt),ue=zt.hasValue()&&te.hasValue();if(ue&&t.translate(-yt*zt.getPixels("x"),-yt*te.getPixels("y")),et){var Be=yt*vt,Fe=yt*Et;t.beginPath(),t.moveTo(Be,Fe),t.lineTo(r,Fe),t.lineTo(r,s),t.lineTo(Be,s),t.closePath(),t.clip()}if(!ue){var Ue=ct==="meet"&&yt===Pt,be=ct==="slice"&&Ht===Pt,$r=ct==="meet"&&yt===dt,Yr=ct==="slice"&&Ht===dt;Z.startsWith("xMid")&&(Ue||be)&&t.translate(r/2-ae/2,0),Z.endsWith("YMid")&&($r||Yr)&&t.translate(0,s/2-oe/2),Z.startsWith("xMax")&&(Ue||be)&&t.translate(r-ae,0),Z.endsWith("YMax")&&($r||Yr)&&t.translate(0,s-oe)}switch(!0){case Z==="none":t.scale(dt,Pt);break;case ct==="meet":t.scale(yt,yt);break;case ct==="slice":t.scale(Ht,Ht);break}t.translate(-p,-L)}},{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,p=t.ignoreDimensions,E=p===void 0?!1:p,L=t.ignoreClear,K=L===void 0?!1:L,tt=t.forceRedraw,it=t.scaleWidth,et=t.scaleHeight,xt=t.offsetX,vt=t.offsetY,ht=this.FRAMERATE,Et=this.mouse,Ut=1e3/ht;if(this.frameDuration=Ut,this.readyPromise=new Promise(function(Z){a.resolveReady=Z}),this.isReady()&&this.render(n,E,K,it,et,xt,vt),!r)return;var Wt=Date.now(),Qt=Wt,ie=0,st=function Z(){Wt=Date.now(),ie=Wt-Qt,ie>=Ut&&(Qt=Wt-ie%Ut,a.shouldUpdate(c,tt)&&(a.render(n,E,K,it,et,xt,vt),Et.runEvents())),a.intervalId=It()(Z)};s||Et.start(),this.intervalId=It()(st)}},{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,p=this.viewPort,E=this.ctx,L=this.isFirstRender,K=E.canvas;p.clear(),K.width&&K.height?p.setCurrent(K.width,K.height):p.setCurrent(l,c);var tt=n.getStyle("width"),it=n.getStyle("height");!a&&(L||typeof i!="number"&&typeof r!="number")&&(tt.hasValue()&&(K.width=tt.getPixels("x"),K.style&&(K.style.width="".concat(K.width,"px"))),it.hasValue()&&(K.height=it.getPixels("y"),K.style&&(K.style.height="".concat(K.height,"px"))));var et=K.clientWidth||K.width,xt=K.clientHeight||K.height;if(a&&tt.hasValue()&&it.hasValue()&&(et=tt.getPixels("x"),xt=it.getPixels("y")),p.setCurrent(et,xt),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 vt=Tt(n.getAttribute("viewBox").getString()),ht=0,Et=0;if(typeof i=="number"){var Ut=n.getStyle("width");Ut.hasValue()?ht=Ut.getPixels("x")/i:isNaN(vt[2])||(ht=vt[2]/i)}if(typeof r=="number"){var Wt=n.getStyle("height");Wt.hasValue()?Et=Wt.getPixels("y")/r:isNaN(vt[3])||(Et=vt[3]/r)}ht||(ht=Et),Et||(Et=ht),n.getAttribute("width",!0).setValue(i),n.getAttribute("height",!0).setValue(r);var Qt=n.getStyle("transform",!0,!0);Qt.setValue("".concat(Qt.getString()," scale(").concat(1/ht,", ").concat(1/Et,")"))}t||E.clearRect(0,0,et,xt),n.render(E),L&&(this.isFirstRender=!1)}}]),d}();de.defaultWindow=Ce,de.defaultFetch=Re;var ne=de.defaultFetch,Kr=typeof DOMParser!="undefined"?DOMParser:null,We=function(){function d(){Object(J.a)(this,d);var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=f.fetch,a=n===void 0?ne:n,t=f.DOMParser,i=t===void 0?Kr:t;this.fetch=a,this.DOMParser=i}return Object(k.a)(d,[{key:"parse",value:function(n){var a=this;return ut()(Ct().mark(function t(){return Ct().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 ut()(Ct().mark(function t(){var i,r;return Ct().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)}))()}}]),d}(),ar=function(){function d(f,n){Object(J.a)(this,d),this.type="translate",this.point=null,this.point=kt.parse(n)}return Object(k.a)(d,[{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])}}]),d}(),ir=function(){function d(f,n,a){Object(J.a)(this,d),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var t=Tt(n);this.angle=new mt(f,"angle",t[0]),this.originX=a[0],this.originY=a[1],this.cx=t[1]||0,this.cy=t[2]||0}return Object(k.a)(d,[{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])}}]),d}(),or=function(){function d(f,n,a){Object(J.a)(this,d),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var t=kt.parseScale(n);(t.x===0||t.y===0)&&(t.x=Xt,t.y=Xt),this.scale=t,this.originX=a[0],this.originY=a[1]}return Object(k.a)(d,[{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])}}]),d}(),Ke=function(){function d(f,n,a){Object(J.a)(this,d),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Tt(n),this.originX=a[0],this.originY=a[1]}return Object(k.a)(d,[{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],p=i[5],E=0,L=0,K=1,tt=1/(r*(c*K-p*L)-o*(l*K-p*E)+s*(l*L-c*E)),it=a.getPixels("x"),et=t.getPixels("y");n.translate(it,et),n.transform(tt*(c*K-p*L),tt*(p*E-l*K),tt*(s*L-o*K),tt*(r*K-s*E),tt*(o*p-s*c),tt*(s*l-r*p)),n.translate(-it,-et)}},{key:"applyToPoint",value:function(n){n.applyTransform(this.matrix)}}]),d}(),Xe=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;return Object(J.a)(this,n),r=f.call(this,a,t,i),r.type="skew",r.angle=null,r.angle=new mt(a,"angle",t),r}return Object(k.a)(n)}(Ke),sr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;return Object(J.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 Object(k.a)(n)}(Xe),lr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;return Object(J.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 Object(k.a)(n)}(Xe);function Xr(d){return Lt(d).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function kr(d){var f=d.split("("),n=Object(ft.a)(f,2),a=n[0],t=n[1];return[a.trim(),t.trim().replace(")","")]}var Ve=function(){function d(f,n,a){var t=this;Object(J.a)(this,d),this.document=f,this.transforms=[];var i=Xr(n);i.forEach(function(r){if(r==="none")return;var o=kr(r),s=Object(ft.a)(o,2),l=s[0],c=s[1],p=d.transformTypes[l];typeof p!="undefined"&&t.transforms.push(new p(t.document,c,a))})}return Object(k.a)(d,[{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=ot(s.nodeName);a.attributes[l]=new mt(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(L){return L.trim()}),c=Object(ft.a)(l,2),p=c[0],E=c[1];a.styles[p]=new mt(f,p,E)})}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(k.a)(d,[{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 mt(this.document,n,"");return this.attributes[n]=i,i}return t||mt.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var n in this.attributes)if(n==="href"||n.endsWith(":href"))return this.attributes[n];return mt.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 mt(this.document,n,"");return this.styles[n]=l,l}return i||mt.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=Ve.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 d?n:this.document.createElement(n);a.parent=this,d.ignoreChildTypes.includes(a.type)||this.children.push(a)}},{key:"matchesSelector",value:function(n){var a,t=this.node;if(typeof t.matches=="function")return t.matches(n);var i=(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"class");return!i||i===""?!1:i.split(" ").some(function(r){return".".concat(r)===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(F.a)(i),[[r,s]])},[]);return t}},{key:"restoreStyles",value:function(n,a){a.forEach(function(t){var i=Object(ft.a)(t,2),r=i[0],o=i[1];n.getStyle(r,!0).setValue(o)})}},{key:"isFirstChild",value:function(){var n;return((n=this.parent)===null||n===void 0?void 0:n.children.indexOf(this))===0}}]),d}();Kt.ignoreChildTypes=["title"];var ur=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){return Object(J.a)(this,n),f.call(this,a,t,i)}return Object(k.a)(n)}(Kt);function Qr(d){var f=d.trim();return/^('|")/.test(f)?f:'"'.concat(f,'"')}function Jr(d){return typeof u=="undefined"?d:d.trim().split(",").map(Qr).join(",")}function Zr(d){if(!d)return"";var f=d.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 qr(d){if(!d)return"";var f=d.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 ve=function(){function d(f,n,a,t,i,r){Object(J.a)(this,d);var o=r?typeof r=="string"?d.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(k.a)(d,[{key:"toString",value:function(){return[Zr(this.fontStyle),this.fontVariant,qr(this.fontWeight),this.fontSize,Jr(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=Lt(n).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(function(p){switch(!0){case(!c.fontStyle&&d.styles.includes(p)):p!=="inherit"&&(t=p),c.fontStyle=!0;break;case(!c.fontVariant&&d.variants.includes(p)):p!=="inherit"&&(i=p),c.fontStyle=!0,c.fontVariant=!0;break;case(!c.fontWeight&&d.weights.includes(p)):p!=="inherit"&&(r=p),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:if(p!=="inherit"){var E=p.split("/"),L=Object(ft.a)(E,1);o=L[0]}c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:p!=="inherit"&&(s+=p)}}),new d(t,i,r,o,s,a)}}]),d}();ve.styles="normal|italic|oblique|inherit",ve.variants="normal|small-caps|inherit",ve.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var ce=function(){function d(){Object(J.a)(this,d);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(k.a)(d,[{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 kt(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!==Dt.a.CURVE_TO&&t!==Dt.a.SMOOTH_CURVE_TO&&t!==Dt.a.QUAD_TO&&t!==Dt.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,p=new kt(2*r-l,2*o-c);return p}},{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 p=r.getColor();p!=="inherit"&&(t.fillStyle=p==="none"?"rgba(0,0,0,0)":p)}if(o.hasValue()){var E=new mt(this.document,"fill",t.fillStyle).addOpacity(o).getColor();t.fillStyle=E}if(s.isUrlDefinition()){var L=s.getFillStyleDefinition(this,l);L&&(t.strokeStyle=L)}else if(s.hasValue()){s.getString()==="currentColor"&&s.setValue(this.getStyle("color").getColor());var K=s.getString();K!=="inherit"&&(t.strokeStyle=K==="none"?"rgba(0,0,0,0)":K)}if(l.hasValue()){var tt=new mt(this.document,"stroke",t.strokeStyle).addOpacity(l).getString();t.strokeStyle=tt}var it=this.getStyle("stroke-width");if(it.hasValue()){var et=it.getPixels();t.lineWidth=et||Xt}var xt=this.getStyle("stroke-linecap"),vt=this.getStyle("stroke-linejoin"),ht=this.getStyle("stroke-miterlimit"),Et=this.getStyle("stroke-dasharray"),Ut=this.getStyle("stroke-dashoffset");if(xt.hasValue()&&(t.lineCap=xt.getString()),vt.hasValue()&&(t.lineJoin=vt.getString()),ht.hasValue()&&(t.miterLimit=ht.getNumber()),Et.hasValue()&&Et.getString()!=="none"){var Wt=Tt(Et.getString());typeof t.setLineDash!="undefined"?t.setLineDash(Wt):typeof t.webkitLineDash!="undefined"?t.webkitLineDash=Wt:typeof t.mozDash!="undefined"&&!(Wt.length===1&&Wt[0]===0)&&(t.mozDash=Wt);var Qt=Ut.getPixels();typeof t.lineDashOffset!="undefined"?t.lineDashOffset=Qt:typeof t.webkitLineDashOffset!="undefined"?t.webkitLineDashOffset=Qt:typeof t.mozDashOffset!="undefined"&&(t.mozDashOffset=Qt)}}if(this.modifiedEmSizeStack=!1,typeof t.font!="undefined"){var ie=this.getStyle("font"),st=this.getStyle("font-style"),Z=this.getStyle("font-variant"),ct=this.getStyle("font-weight"),dt=this.getStyle("font-size"),Pt=this.getStyle("font-family"),yt=new ve(st.getString(),Z.getString(),ct.getString(),dt.hasValue()?"".concat(dt.getPixels(!0),"px"):"",Pt.getString(),ve.parse(ie.getString(),t.font));st.setValue(yt.fontStyle),Z.setValue(yt.fontVariant),ct.setValue(yt.fontWeight),dt.setValue(yt.fontSize),Pt.setValue(yt.fontFamily),t.font=yt.toString(),dt.isPixels()&&(this.document.emSize=dt.getPixels(),this.modifiedEmSizeStack=!0)}i||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){Object(Y.a)(Object(w.a)(n.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),n}(Kt),_t=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;return Object(J.a)(this,n),r=f.call(this,a,t,i),r.type="path",r.pathParser=null,r.pathParser=new At(r.getAttribute("d").getString()),r}return Object(k.a)(n,[{key:"path",value:function(t){var i=this.pathParser,r=new ce;for(i.reset(),t&&t.beginPath();!i.isEnd();)switch(i.next().type){case At.MOVE_TO:this.pathM(t,r);break;case At.LINE_TO:this.pathL(t,r);break;case At.HORIZ_LINE_TO:this.pathH(t,r);break;case At.VERT_LINE_TO:this.pathV(t,r);break;case At.CURVE_TO:this.pathC(t,r);break;case At.SMOOTH_CURVE_TO:this.pathS(t,r);break;case At.QUAD_TO:this.pathQ(t,r);break;case At.SMOOTH_QUAD_TO:this.pathT(t,r);break;case At.ARC:this.pathA(t,r);break;case At.CLOSE_PATH:this.pathZ(t,r);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 p=s.getDefinition(),E=Object(ft.a)(r[0],2),L=E[0],K=E[1];p.render(t,L,K)}if(l.isUrlDefinition())for(var tt=l.getDefinition(),it=1;itc?l:c,ht=l>c?1:l/c,Et=l>c?c/l:1;t.translate(L.x,L.y),t.rotate(E),t.scale(ht,Et),t.arc(0,0,vt,K,K+tt,Boolean(1-p)),t.scale(1/ht,1/Et),t.rotate(-E),t.translate(-L.x,-L.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 kt((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 kt(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,p=r.sweepFlag,E=l*(Math.PI/180),L=t.getAsCurrentPoint(),K=new kt(Math.cos(E)*(i.x-L.x)/2+Math.sin(E)*(i.y-L.y)/2,-Math.sin(E)*(i.x-L.x)/2+Math.cos(E)*(i.y-L.y)/2),tt=Math.pow(K.x,2)/Math.pow(o,2)+Math.pow(K.y,2)/Math.pow(s,2);tt>1&&(o*=Math.sqrt(tt),s*=Math.sqrt(tt));var it=(c===p?-1:1)*Math.sqrt((Math.pow(o,2)*Math.pow(s,2)-Math.pow(o,2)*Math.pow(K.y,2)-Math.pow(s,2)*Math.pow(K.x,2))/(Math.pow(o,2)*Math.pow(K.y,2)+Math.pow(s,2)*Math.pow(K.x,2)));isNaN(it)&&(it=0);var et=new kt(it*o*K.y/s,it*-s*K.x/o),xt=new kt((i.x+L.x)/2+Math.cos(E)*et.x-Math.sin(E)*et.y,(i.y+L.y)/2+Math.sin(E)*et.x+Math.cos(E)*et.y),vt=Pe([1,0],[(K.x-et.x)/o,(K.y-et.y)/s]),ht=[(K.x-et.x)/o,(K.y-et.y)/s],Et=[(-K.x-et.x)/o,(-K.y-et.y)/s],Ut=Pe(ht,Et);return pe(ht,Et)<=-1&&(Ut=Math.PI),pe(ht,Et)>=1&&(Ut=0),{currentPoint:L,rX:o,rY:s,sweepFlag:p,xAxisRotation:E,centp:xt,a1:vt,ad:Ut}}},{key:"pathZ",value:function(t){t.current=t.start}}]),n}(Oe),ke=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;return Object(J.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 Object(k.a)(n)}(_t),De=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;return Object(J.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(k.a)(n,[{key:"setContext",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Object(Y.a)(Object(w.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(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}},{key:"getBoundingBox",value:function(t){var i=this;if(this.type!=="text")return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(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=ve.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 ce(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],p=i[r+1],E="isolated";if((r===0||c===" ")&&r0&&c!==" "&&r0&&c!==" "&&(r===l-1||p===" ")&&(E="initial"),typeof t.glyphs[o]!="undefined"){var L=t.glyphs[o];s=L instanceof ke?L:L[E]}}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=Lt(i.textContent||"");return o===0&&(l=Jt(l)),o===s&&(l=jt(l)),l}},{key:"renderChildren",value:function(t){var i=this;if(this.type!=="text"){this.renderTElementChildren(t);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(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=ve.parse(i.ctx.font),p=r.getStyle("font-size").getNumber(c.fontSize),E=r.getStyle("font-style").getString(c.fontStyle),L=p/l,K=s.isRTL?o.split("").reverse().join(""):o,tt=Tt(r.getAttribute("dx").getString()),it=K.length,et=0;et=this.leafTexts.length)return;var t=this.leafTexts[this.textChunkStart],i=t.getStyle("text-anchor").getString("start"),r=!1,o=0;i==="start"&&!r||i==="end"&&r?o=t.x-this.minX:i==="end"&&!r||i==="start"&&r?o=t.x-this.maxX:o=t.x-(this.minX+this.maxX)/2;for(var s=this.textChunkStart;s0?s.children.forEach(function(l,c){i.adjustChildCoordinatesRecursiveCore(t,i,s,c)}):this.adjustChildCoordinates(t,i,r,o)}},{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"),p=s.getAttribute("dx"),E=s.getAttribute("dy"),L=s.getStyle("font-family").getDefinition(),K=Boolean(L)&&L.isRTL;o===0&&(l.hasValue()||l.setValue(s.getInheritedAttribute("x")),c.hasValue()||c.setValue(s.getInheritedAttribute("y")),p.hasValue()||p.setValue(s.getInheritedAttribute("dx")),E.hasValue()||E.setValue(s.getInheritedAttribute("dy")));var tt=s.measureText(t);return K&&(i.x-=tt),l.hasValue()?(i.applyAnchoring(),s.x=l.getPixels("x"),p.hasValue()&&(s.x+=p.getPixels("x"))):(p.hasValue()&&(i.x+=p.getPixels("x")),s.x=i.x),i.x=s.x,K||(i.x+=tt),c.hasValue()?(s.y=c.getPixels("y"),E.hasValue()&&(s.y+=E.getPixels("y"))):(E.hasValue()&&(i.y+=E.getPixels("y")),s.y=i.y),i.y=s.y,i.leafTexts.push(s),i.minX=Math.min(i.minX,s.x,s.x+tt),i.maxX=Math.max(i.maxX,s.x,s.x+tt),s.clearContext(t),t.restore(),s}},{key:"getChildBoundingBox",value:function(t,i,r,o){var s=r.children[o];if(typeof s.getBoundingBox!="function")return null;var l=s.getBoundingBox(t);return l?(s.children.forEach(function(c,p){var E=i.getChildBoundingBox(t,i,s,p);l.addBoundingBox(E)}),l):null}},{key:"renderChild",value:function(t,i,r,o){var s=r.children[o];s.render(t),s.children.forEach(function(l,c){i.renderChild(t,i,s,c)})}},{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=Tt(r.getAttribute("dx").getString()),p=l.length,E=0,L=0;L0?"":r.getTextFromNode(),r}return Object(k.a)(n,[{key:"getText",value:function(){return this.text}}]),n}(De),_r=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="textNode",a}return Object(k.a)(n)}(Qe),Le=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="svg",a.root=!1,a}return Object(k.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 mt(r,"fontSize",ve.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 p=o.viewPort,E=p.width,L=p.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var K=this.getAttribute("refX"),tt=this.getAttribute("refY"),it=this.getAttribute("viewBox"),et=it.hasValue()?Tt(it.getString()):null,xt=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",vt=0,ht=0,Et=0,Ut=0;et&&(vt=et[0],ht=et[1]),this.root||(E=this.getStyle("width").getPixels("x"),L=this.getStyle("height").getPixels("y"),this.type==="marker"&&(Et=vt,Ut=ht,vt=0,ht=0)),o.viewPort.setCurrent(E,L),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(w.a)(n.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),et&&(E=et[2],L=et[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o.viewPort.width,desiredWidth:E,height:o.viewPort.height,desiredHeight:L,minX:vt,minY:ht,refX:K.getValue(),refY:tt.getValue(),clip:xt,clipX:Et,clipY:Ut}),et&&(o.viewPort.removeCurrent(),o.viewPort.setCurrent(E,L))}},{key:"clearContext",value:function(t){Object(Y.a)(Object(w.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"),p=o.getNumber(0),E=s.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var L=this.getAttribute("preserveAspectRatio");L.hasValue()&&L.setValue(L.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(o.setValue(t),s.setValue(i),l.hasValue()||l.setValue("0 0 ".concat(p||t," ").concat(E||i)),c.hasValue()){var K=this.getStyle("width"),tt=this.getStyle("height");K.hasValue()&&K.setValue("".concat(t,"px")),tt.hasValue()&&tt.setValue("".concat(i,"px"))}}}]),n}(Oe),Je=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="rect",a}return Object(k.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"),p=l.getPixels("x"),E=c.getPixels("y");if(l.hasValue()&&!c.hasValue()&&(E=p),c.hasValue()&&!l.hasValue()&&(p=E),p=Math.min(p,o/2),E=Math.min(E,s/2),t){var L=4*((Math.sqrt(2)-1)/3);t.beginPath(),s>0&&o>0&&(t.moveTo(i+p,r),t.lineTo(i+o-p,r),t.bezierCurveTo(i+o-p+L*p,r,i+o,r+E-L*E,i+o,r+E),t.lineTo(i+o,r+s-E),t.bezierCurveTo(i+o,r+s-E+L*E,i+o-p+L*p,r+s,i+o-p,r+s),t.lineTo(i+p,r+s),t.bezierCurveTo(i+p-L*p,r+s,i,r+s-E+L*E,i,r+s-E),t.lineTo(i,r+E),t.bezierCurveTo(i,r+E-L*E,i+p-L*p,r,i+p,r),t.closePath())}return new ce(i,r,i+o,r+s)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),fr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="circle",a}return Object(k.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 ce(i-o,r-o,i+o,r+o)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),hr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="ellipse",a}return Object(k.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 ce(s-r,l-o,s+r,l+o)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),cr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="line",a}return Object(k.a)(n,[{key:"getPoints",value:function(){return[new kt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new kt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var i=this.getPoints(),r=Object(ft.a)(i,2),o=r[0],s=o.x,l=o.y,c=r[1],p=c.x,E=c.y;return t&&(t.beginPath(),t.moveTo(s,l),t.lineTo(p,E)),new ce(s,l,p,E)}},{key:"getMarkers",value:function(){var t=this.getPoints(),i=Object(ft.a)(t,2),r=i[0],o=i[1],s=r.angleTo(o);return[[r,s],[o,s]]}}]),n}(_t),Ze=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;return Object(J.a)(this,n),r=f.call(this,a,t,i),r.type="polyline",r.points=[],r.points=kt.parsePath(r.getAttribute("points").getString()),r}return Object(k.a)(n,[{key:"path",value:function(t){var i=this.points,r=Object(ft.a)(i,1),o=r[0],s=o.x,l=o.y,c=new ce(s,l);return t&&(t.beginPath(),t.moveTo(s,l)),i.forEach(function(p){var E=p.x,L=p.y;c.addPoint(E,L),t&&t.lineTo(E,L)}),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}(_t),vr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="polygon",a}return Object(k.a)(n,[{key:"path",value:function(t){var i=Object(Y.a)(Object(w.a)(n.prototype),"path",this).call(this,t),r=Object(ft.a)(this.points,1),o=r[0],s=o.x,l=o.y;return t&&(t.lineTo(s,l),t.closePath()),i}}]),n}(Ze),dr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="pattern",a}return Object(k.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 Le(this.document,null);l.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.width=new mt(this.document,"width","".concat(o,"px")),l.attributes.height=new mt(this.document,"height","".concat(s,"px")),l.attributes.transform=new mt(this.document,"transform",this.getAttribute("patternTransform").getValue()),l.children=this.children;var c=this.document.createCanvas(o,s),p=c.getContext("2d"),E=this.getAttribute("x"),L=this.getAttribute("y");E.hasValue()&&L.hasValue()&&p.translate(E.getPixels("x",!0),L.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var K=-1;K<=1;K++)for(var tt=-1;tt<=1;tt++)p.save(),l.attributes.x=new mt(this.document,"x",K*c.width),l.attributes.y=new mt(this.document,"y",tt*c.height),l.render(p),p.restore();var it=t.createPattern(c,"repeat");return it}}]),n}(Kt),gr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="marker",a}return Object(k.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 p=new Le(this.document,null);p.type=this.type,p.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),p.attributes.refX=new mt(this.document,"refX",this.getAttribute("refX").getValue()),p.attributes.refY=new mt(this.document,"refY",this.getAttribute("refY").getValue()),p.attributes.width=new mt(this.document,"width",this.getAttribute("markerWidth").getValue()),p.attributes.height=new mt(this.document,"height",this.getAttribute("markerHeight").getValue()),p.attributes.overflow=new mt(this.document,"overflow",this.getAttribute("overflow").getValue()),p.attributes.fill=new mt(this.document,"fill",this.getAttribute("fill").getColor("black")),p.attributes.stroke=new mt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),p.children=this.children,p.render(t),t.restore(),c==="strokeWidth"&&t.scale(1/t.lineWidth,1/t.lineWidth),l==="auto"&&t.rotate(-r),t.translate(-o,-s)}}]),n}(Kt),pr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="defs",a}return Object(k.a)(n,[{key:"render",value:function(){}}]),n}(Kt),Ge=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="g",a}return Object(k.a)(n,[{key:"getBoundingBox",value:function(t){var i=new ce;return this.children.forEach(function(r){i.addBoundingBox(r.getBoundingBox(t))}),i}}]),n}(Oe),qe=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;Object(J.a)(this,n),r=f.call(this,a,t,i),r.attributesToInherit=["gradientUnits"],r.stops=[];var o=Object(I.a)(r),s=o.stops,l=o.children;return l.forEach(function(c){c.type==="stop"&&s.push(c)}),r}return Object(k.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,p=this.getGradient(t,i);if(!p)return this.addParentOpacity(r,c[c.length-1].color);if(c.forEach(function(Wt){p.addColorStop(Wt.offset,o.addParentOpacity(r,Wt.color))}),this.getAttribute("gradientTransform").hasValue()){var E=this.document,L=E.screen,K=L.MAX_VIRTUAL_PIXELS,tt=L.viewPort,it=Object(ft.a)(tt.viewPorts,1),et=it[0],xt=new Je(E,null);xt.attributes.x=new mt(E,"x",-K/3),xt.attributes.y=new mt(E,"y",-K/3),xt.attributes.width=new mt(E,"width",K),xt.attributes.height=new mt(E,"height",K);var vt=new Ge(E,null);vt.attributes.transform=new mt(E,"transform",this.getAttribute("gradientTransform").getValue()),vt.children=[xt];var ht=new Le(E,null);ht.attributes.x=new mt(E,"x",0),ht.attributes.y=new mt(E,"y",0),ht.attributes.width=new mt(E,"width",et.width),ht.attributes.height=new mt(E,"height",et.height),ht.children=[vt];var Et=E.createCanvas(et.width,et.height),Ut=Et.getContext("2d");return Ut.fillStyle=p,ht.render(Ut),Ut.createPattern(Et,"no-repeat")}return p}},{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 mt(this.document,"color",i);return r.addOpacity(t).getColor()}return i}}]),n}(Kt),mr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;return Object(J.a)(this,n),r=f.call(this,a,t,i),r.type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return Object(k.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"),p=r?o.y+o.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===c&&l===p?null:t.createLinearGradient(s,l,c,p)}}]),n}(qe),yr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;return Object(J.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(k.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,p=l;this.getAttribute("fx").hasValue()&&(c=r?o.x+o.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(p=r?o.y+o.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var E=r?(o.width+o.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),L=this.getAttribute("fr").getPixels();return t.createRadialGradient(c,p,L,s,l,E)}}]),n}(qe),xr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;Object(J.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 Object(k.a)(n)}(Kt),ze=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;Object(J.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(I.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 mt(a,"values",null);var o=r.getAttribute("values");return o.hasValue()&&r.values.setValue(o.getString().split(";")),r}return Object(k.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(k.a)(n,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){if(this.hasText){Object(Y.a)(Object(w.a)(n.prototype),"renderChildren",this).call(this,t);var i=this.document,r=this.x,o=this.y,s=i.screen.mouse,l=new mt(i,"fontSize",ve.parse(i.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new ce(r,o-l.getPixels("y"),r+this.measureText(t),o))}else if(this.children.length>0){var c=new Ge(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}(De);function Rr(d,f){var n=Object.keys(d);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(d);f&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(d,t).enumerable})),n.push.apply(n,a)}return n}function He(d){for(var f=1;fL?E:L,vt=E>L?1:E/L,ht=E>L?L/E:1;t&&(t.translate(c,p),t.rotate(it),t.scale(vt,ht),t.arc(0,0,xt,K,K+tt,Boolean(1-et)),t.scale(1/vt,1/ht),t.rotate(-it),t.translate(-c,-p));break}case At.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 p=l.p0,E=l.p1,L=l.rotation,K=l.text;t.save(),t.translate(p.x,p.y),t.rotate(L),t.fillStyle&&t.fillText(K,0,0),t.strokeStyle&&t.strokeText(K,0,0),t.restore(),i==="underline"&&(c===0&&t.moveTo(p.x,p.y+r/8),t.lineTo(E.x,E.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,p,E){var L=l,K=this.measureText(t,p);p===" "&&i==="justify"&&r-1&&(L+=this.getLetterSpacingAt(E));var tt=this.textHeight/20,it=this.getEquidistantPointOnPath(L,tt,0),et=this.getEquidistantPointOnPath(L+K,tt,0),xt={p0:it,p1:et},vt=it&&et?Math.atan2(et.y-it.y,et.x-it.x):0;if(c){var ht=Math.cos(Math.PI/2+vt)*c,Et=Math.cos(-vt)*c;xt.p0=He(He({},it),{},{x:it.x+ht,y:it.y+Et}),xt.p1=He(He({},et),{},{x:et.x+ht,y:et.y+Et})}return L+=K,{offset:L,segment:xt,rotation:vt}}},{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(Qt){return Qt.getPixels("x")}),c=this.parent.getAttribute("dy").getPixels("y"),p=this.parent.getStyle("text-anchor").getString("start"),E=this.getStyle("letter-spacing"),L=this.parent.getStyle("letter-spacing"),K=0;!E.hasValue()||E.getValue()==="inherit"?K=L.getPixels():E.hasValue()&&(E.getValue()!=="initial"&&E.getValue()!=="unset"&&(K=E.getPixels()));var tt=[],it=r.length;this.letterSpacingCache=tt;for(var et=0;et0&&(E-=2*Math.PI),s===1&&E<0&&(E+=2*Math.PI),[c.x,c.y,r,o,p,E,l,s]}},{key:"calcLength",value:function(t,i,r,o){var s=0,l=null,c=null,p=0;switch(r){case At.LINE_TO:return this.getLineLength(t,i,o[0],o[1]);case At.CURVE_TO:for(s=0,l=this.getPointOnCubicBezier(0,t,i,o[0],o[1],o[2],o[3],o[4],o[5]),p=.01;p<=1;p+=.01)c=this.getPointOnCubicBezier(p,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 At.QUAD_TO:for(s=0,l=this.getPointOnQuadraticBezier(0,t,i,o[0],o[1],o[2],o[3]),p=.01;p<=1;p+=.01)c=this.getPointOnQuadraticBezier(p,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 At.ARC:{s=0;var E=o[4],L=o[5],K=o[4]+L,tt=Math.PI/180;if(Math.abs(E-K)K;p-=tt)c=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],p,0),s+=this.getLineLength(l.x,l.y,c.x,c.y),l=c;else for(p=E+tt;p5&&arguments[5]!==void 0?arguments[5]:i,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,p=(s-r)/(o-i+Xt),E=Math.sqrt(t*t/(1+p*p));oi)return null;var s=this.dataArray,l=Object(b.a)(s),c;try{for(l.s();!(c=l.n()).done;){var p=c.value;if(p&&(p.pathLength<5e-5||r+p.pathLength+5e-5=0&&L>it)break;o=this.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],L,p.points[6]);break}case At.CURVE_TO:L=E/p.pathLength,L>1&&(L=1),o=this.getPointOnCubicBezier(L,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);break;case At.QUAD_TO:L=E/p.pathLength,L>1&&(L=1),o=this.getPointOnQuadraticBezier(L,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.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,p,E){var L=p*Se(t)+l*me(t)+o*ye(t)+i*xe(t),K=E*Se(t)+c*me(t)+s*ye(t)+r*xe(t);return{x:L,y:K}}},{key:"getPointOnQuadraticBezier",value:function(t,i,r,o,s,l,c){var p=l*Ee(t)+o*Ie(t)+i*Ne(t),E=c*Ee(t)+s*Ie(t)+r*Ne(t);return{x:p,y:E}}},{key:"getPointOnEllipticalArc",value:function(t,i,r,o,s,l){var c=Math.cos(l),p=Math.sin(l),E={x:r*Math.cos(s),y:o*Math.sin(s)};return{x:t+(E.x*c-E.y*p),y:i+(E.x*p+E.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 p=this.getPointOnPath(c),E=this.getPointOnPath(c+o);if(!p||!E)continue;l+=this.getLineLength(p.x,p.y,E.x,E.y),l>=s&&(this.equidistantCache.points.push({x:p.x,y:p.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}(De),tn=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Ir=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;Object(J.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($.a)(r);var s=o.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(o);return a.images.push(Object(I.a)(r)),s?void r.loadSvg(o):void r.loadImage(o),r.isSvg=s,r}return Object(k.a)(n,[{key:"loadImage",value:function(t){var i=this;return ut()(Ct().mark(function r(){var o;return Ct().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 ut()(Ct().mark(function r(){var o,s,l,c;return Ct().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(o=tn.exec(t),!o){E.next=6;break}s=o[5],o[4]==="base64"?i.image=atob(s):i.image=decodeURIComponent(s),E.next=19;break;case 6:return E.prev=6,E.next=9,i.document.fetch(t);case 9:return l=E.sent,E.next=12,l.text();case 12:c=E.sent,i.image=c,E.next=19;break;case 16:E.prev=16,E.t0=E.catch(6),console.error('Error while loading image "'.concat(t,'":'),E.t0);case 19:i.loaded=!0;case 20:case"end":return E.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"),p=this.getStyle("height").getPixels("y");if(!o||!r||!c||!p)return;if(t.save(),t.translate(s,l),this.isSvg){var E=i.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:c,scaleHeight:p});E.document.documentElement.parent=this,void E.render()}else{var L=this.image;i.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:c,desiredWidth:L.width,height:p,desiredHeight:L.height}),this.loaded&&((typeof L.complete=="undefined"||L.complete)&&t.drawImage(L,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 ce(t,i,t+r,i+o)}}]),n}(Oe),Nr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="symbol",a}return Object(k.a)(n,[{key:"render",value:function(t){}}]),n}(Oe),Mr=function(){function d(f){Object(J.a)(this,d),this.document=f,this.loaded=!1,f.fonts.push(this)}return Object(k.a)(d,[{key:"load",value:function(n,a){var t=this;return ut()(Ct().mark(function i(){var r,o,s;return Ct().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(p){var E=r.createElement(p);r.definitions[n]=E}),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]])}))()}}]),d}(),_e=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;Object(J.a)(this,n),r=f.call(this,a,t,i),r.type="style";var o=Lt(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 p=c.split("{"),E=p[0].split(","),L=p[1].split(";");E.forEach(function(K){var tt=K.trim();if(!tt)return;var it=a.styles[tt]||{};if(L.forEach(function(vt){var ht=vt.indexOf(":"),Et=vt.substr(0,ht).trim(),Ut=vt.substr(ht+1,vt.length-ht).trim();Et&&Ut&&(it[Et]=new mt(a,Et,Ut))}),a.styles[tt]=it,a.stylesSpecificity[tt]=he(tt),tt==="@font-face"){var et=it["font-family"].getString().replace(/"|'/g,""),xt=it.src.getString().split(",");xt.forEach(function(vt){if(vt.indexOf('format("svg")')>0){var ht=gt(vt);ht&&void new Mr(a).load(et,ht)}})}})}),r}return Object(k.a)(n)}(Kt);_e.parseExternalUrl=gt;var jr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="use",a}return Object(k.a)(n,[{key:"setContext",value:function(t){Object(Y.a)(Object(w.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 Le(i,null),o.attributes.viewBox=new mt(i,"viewBox",r.getAttribute("viewBox").getString()),o.attributes.preserveAspectRatio=new mt(i,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),o.attributes.overflow=new mt(i,"overflow",r.getAttribute("overflow").getString()),o.children=r.children,r.styles.opacity=new mt(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 mt(i,"width",s.getString())),l.hasValue()&&(o.attributes.height=new mt(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 Ve.fromElement(t,i)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),n}(Oe);function $e(d,f,n,a,t,i){return d[n*a*4+f*4+i]}function Ye(d,f,n,a,t,i,r){d[n*a*4+f*4+i]=r}function Zt(d,f,n){var a=d[f];return a*n}function ge(d,f,n,a){return f+Math.cos(d)*n+Math.sin(d)*a}var tr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,t,i){var r;Object(J.a)(this,n),r=f.call(this,a,t,i),r.type="feColorMatrix";var o=Tt(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=[ge(l,.213,.787,-.213),ge(l,.715,-.715,-.715),ge(l,.072,-.072,.928),0,0,ge(l,.213,-.213,.143),ge(l,.715,.285,.14),ge(l,.072,-.072,-.283),0,0,ge(l,.213,-.213,-.787),ge(l,.715,-.715,.715),ge(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(k.a)(n,[{key:"apply",value:function(t,i,r,o,s){for(var l=this.includeOpacity,c=this.matrix,p=t.getImageData(0,0,o,s),E=0;E1&&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,p,E,L){s(L)},a.src=f}));case 4:case"end":return r.stop()}},d)})),nr.apply(this,arguments)}var we=function(){function d(f){Object(J.a)(this,d);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?d.createCanvas:o,l=n.createImage,c=l===void 0?d.createImage:l,p=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,p),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(k.a)(d,[{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=d.elementTypes[a];return typeof t!="undefined"?new t(this,n):new ur(this,n)}},{key:"createTextNode",value:function(n){return new _r(this,n)}},{key:"setViewBox",value:function(n){this.screen.setViewBox(rn({document:this},n))}}]),d}();we.createCanvas=nn,we.createImage=an,we.elementTypes=en;function zr(d,f){var n=Object.keys(d);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(d);f&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(d,t).enumerable})),n.push.apply(n,a)}return n}function Ae(d){for(var f=1;f2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new We(a),this.screen=new de(f,a),this.options=a;var t=new we(this,a),i=t.createDocumentElement(n);this.document=t,this.documentElement=i}return Object(k.a)(d,[{key:"fork",value:function(n,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return d.from(n,a,Ae(Ae({},this.options),t))}},{key:"forkString",value:function(n,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return d.fromString(n,a,Ae(Ae({},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 ut()(Ct().mark(function t(){var i;return Ct().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return i=n.length>0&&n[0]!==void 0?n[0]:{},a.start(Ae({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,Ae(Ae({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 ut()(Ct().mark(function i(){var r,o,s;return Ct().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return r=t.length>2&&t[2]!==void 0?t[2]:{},o=new We(r),c.next=4,o.parse(a);case 4:return s=c.sent,c.abrupt("return",new d(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 We(t),r=i.parseFromString(a);return new d(n,r,t)}}]),d}()}.call(this,e("Q2Ig"))},Dk1u:function(m,y,e){var u=e("4YbN"),h=e("IL+x"),v=TypeError;m.exports=function(g){if(u(g))return g;throw v(h(g)+" is not a constructor")}},ENhe:function(m,y){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}},ESVS:function(m,y,e){"use strict";var u=e("nCzB"),h=e("m7zg"),v=e("zFjv"),g=e("GxTi").CONSTRUCTOR;u({target:"Promise",stat:!0,forced:g},{reject:function(T){var P=v.f(this);return h(P.reject,void 0,T),P.promise}})},FjAG:function(m,y,e){var u=e("8HiI"),h=e("721z"),v=e("p5Ma"),g=e("tMNq"),x=TypeError,T=function(P){return function(N,S,j,B){u(S);var D=h(N),W=v(D),G=g(D),M=P?G-1:0,X=P?-1:1;if(j<2)for(;;){if(M in W){B=W[M],M+=X;break}if(M+=X,P?M<0:G<=M)throw x("Reduce of empty array with no initial value")}for(;P?M>=0:G>M;M+=X)M in W&&(B=S(B,W[M],M,D));return B}};m.exports={left:T(!1),right:T(!0)}},FkIU:function(m,y,e){var u=e("++4Y"),h=e("eRwv");m.exports=u&&h(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},FlRv:function(m,y,e){var u=e("++4Y"),h=e("pVCk"),v=e("FkIU"),g=e("WxoH"),x=e("GTqx"),T=TypeError,P=Object.defineProperty,N=Object.getOwnPropertyDescriptor,S="enumerable",j="configurable",B="writable";y.f=u?v?function(W,G,M){if(g(W),G=x(G),g(M),typeof W=="function"&&G==="prototype"&&"value"in M&&B in M&&!M[B]){var X=N(W,G);X&&X[B]&&(W[G]=M.value,M={configurable:j in M?M[j]:X[j],enumerable:S in M?M[S]:X[S],writable:!1})}return P(W,G,M)}:P:function(W,G,M){if(g(W),G=x(G),g(M),h)try{return P(W,G,M)}catch(X){}if("get"in M||"set"in M)throw T("Accessors not supported");return"value"in M&&(W[G]=M.value),W}},FqHY:function(m,y,e){var u=e("eE3R"),h=e("Ks5W");m.exports=/ipad|iphone|ipod/i.test(u)&&h.Pebble!==void 0},G5Kn:function(m,y,e){var u=e("11yv"),h=e("XFuk"),v=e("FlRv").f,g=u("unscopables"),x=Array.prototype;x[g]==null&&v(x,g,{configurable:!0,value:h(null)}),m.exports=function(T){x[g][T]=!0}},GHES:function(m,y,e){"use strict";var u=e("nCzB"),h=e("m7zg"),v=e("jybJ"),g=e("N6FT"),x=e("JTf3"),T=e("qozo"),P=e("WLJ+"),N=e("JHvW"),S=e("ueY1"),j=e("8ODz"),B=e("WaP5"),D=e("11yv"),W=e("AoAp"),G=e("qjFr"),M=g.PROPER,X=g.CONFIGURABLE,q=G.IteratorPrototype,z=G.BUGGY_SAFARI_ITERATORS,rt=D("iterator"),V="keys",lt="values",C="entries",R=function(){return this};m.exports=function(U,A,nt,at,_,O,$){T(nt,A,at);var b=function(pt){if(pt===_&&Q)return Q;if(!z&&pt in w)return w[pt];switch(pt){case V:return function(){return new nt(this,pt)};case lt:return function(){return new nt(this,pt)};case C:return function(){return new nt(this,pt)}}return function(){return new nt(this)}},I=A+" Iterator",Y=!1,w=U.prototype,F=w[rt]||w["@@iterator"]||_&&w[_],Q=!z&&F||b(_),H=A=="Array"&&w.entries||F,J,k,ft;if(H&&(J=P(H.call(new U)),J!==Object.prototype&&J.next&&(!v&&P(J)!==q&&(N?N(J,q):x(J[rt])||B(J,rt,R)),S(J,I,!0,!0),v&&(W[I]=R))),M&&_==lt&&F&&F.name!==lt&&(!v&&X?j(w,"name",lt):(Y=!0,Q=function(){return h(F,this)})),_)if(k={values:b(lt),keys:O?Q:b(V),entries:b(C)},$)for(ft in k)(z||Y||!(ft in w))&&B(w,ft,k[ft]);else u({target:A,proto:!0,forced:z||Y},k);return(!v||$)&&w[rt]!==Q&&B(w,rt,Q,{name:_}),W[A]=Q,k}},GI0h:function(m,y,e){var u=e("me6S"),h=u("span").classList,v=h&&h.constructor&&h.constructor.prototype;m.exports=v===Object.prototype?void 0:v},GTqx:function(m,y,e){var u=e("ms20"),h=e("bT0D");m.exports=function(v){var g=u(v,"string");return h(g)?g:g+""}},GVkW:function(m,y,e){"use strict";var u=e("nCzB"),h=e("aLaa"),v=e("fKql").f,g=e("c3MK"),x=e("qzpy"),T=e("OU4x"),P=e("XaNE"),N=e("/TZh"),S=e("jybJ"),j=h("".endsWith),B=h("".slice),D=Math.min,W=N("endsWith"),G=!S&&!W&&!!function(){var M=v(String.prototype,"endsWith");return M&&!M.writable}();u({target:"String",proto:!0,forced:!G&&!W},{endsWith:function(X){var q=x(P(this));T(X);var z=arguments.length>1?arguments[1]:void 0,rt=q.length,V=z===void 0?rt:D(g(z),rt),lt=x(X);return j?j(q,lt,V):B(q,V-lt.length,V)===lt}})},GgKt:function(m,y,e){var u=e("eE3R");m.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(u)},GxTi:function(m,y,e){var u=e("Ks5W"),h=e("KLK4"),v=e("JTf3"),g=e("mGb/"),x=e("sNJV"),T=e("11yv"),P=e("vTDQ"),N=e("dAmL"),S=e("jybJ"),j=e("aNIs"),B=h&&h.prototype,D=T("species"),W=!1,G=v(u.PromiseRejectionEvent),M=g("Promise",function(){var X=x(h),q=X!==String(h);if(!q&&j===66)return!0;if(S&&!(B.catch&&B.finally))return!0;if(!j||j<51||!/native code/.test(X)){var z=new h(function(lt){lt(1)}),rt=function(lt){lt(function(){},function(){})},V=z.constructor={};if(V[D]=rt,W=z.then(function(){})instanceof rt,!W)return!0}return!q&&(P||N)&&!G});m.exports={CONSTRUCTOR:M,REJECTION_EVENT:G,SUBCLASSING:W}},Gywb:function(m,y,e){var u=e("eRwv");m.exports=!u(function(){function h(){}return h.prototype.constructor=null,Object.getPrototypeOf(new h)!==h.prototype})},"HTC/":function(m,y,e){"use strict";var u=e("WxoH");m.exports=function(){var h=u(this),v="";return h.hasIndices&&(v+="d"),h.global&&(v+="g"),h.ignoreCase&&(v+="i"),h.multiline&&(v+="m"),h.dotAll&&(v+="s"),h.unicode&&(v+="u"),h.unicodeSets&&(v+="v"),h.sticky&&(v+="y"),v}},IGIO:function(m,y,e){var u=e("ba8b"),h=e("Ks5W");m.exports=u(h.process)=="process"},"IL+x":function(m,y){var e=String;m.exports=function(u){try{return e(u)}catch(h){return"Object"}}},JHvW:function(m,y,e){var u=e("aLaa"),h=e("WxoH"),v=e("NIpK");m.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g=!1,x={},T;try{T=u(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),T(x,[]),g=x instanceof Array}catch(P){}return function(N,S){return h(N),v(S),g?T(N,S):N.__proto__=S,N}}():void 0)},JTf3:function(m,y,e){var u=e("013W"),h=u.all;m.exports=u.IS_HTMLDDA?function(v){return typeof v=="function"||v===h}:function(v){return typeof v=="function"}},KKe4:function(m,y,e){"use strict";var u=e("m7zg"),h=e("WONN"),v=e("WxoH"),g=e("x0Ve"),x=e("c3MK"),T=e("qzpy"),P=e("XaNE"),N=e("oK8H"),S=e("M/+V"),j=e("3fk+");h("match",function(B,D,W){return[function(M){var X=P(this),q=g(M)?void 0:N(M,B);return q?u(q,M,X):new RegExp(M)[B](T(X))},function(G){var M=v(this),X=T(G),q=W(D,M,X);if(q.done)return q.value;if(!M.global)return j(M,X);var z=M.unicode;M.lastIndex=0;for(var rt=[],V=0,lt;(lt=j(M,X))!==null;){var C=T(lt[0]);rt[V]=C,C===""&&(M.lastIndex=S(X,x(M.lastIndex),z)),V++}return V===0?null:rt}]})},KLK4:function(m,y,e){var u=e("Ks5W");m.exports=u.Promise},KLN8:function(m,y,e){"use strict";var u=e("nCzB"),h=e("aLaa"),v=e("fKql").f,g=e("c3MK"),x=e("qzpy"),T=e("OU4x"),P=e("XaNE"),N=e("/TZh"),S=e("jybJ"),j=h("".startsWith),B=h("".slice),D=Math.min,W=N("startsWith"),G=!S&&!W&&!!function(){var M=v(String.prototype,"startsWith");return M&&!M.writable}();u({target:"String",proto:!0,forced:!G&&!W},{startsWith:function(X){var q=x(P(this));T(X);var z=g(D(arguments.length>1?arguments[1]:void 0,q.length)),rt=x(X);return j?j(q,rt,z):B(q,z,z+rt.length)===rt}})},Ks5W:function(m,y,e){(function(u){var h=function(v){return v&&v.Math==Math&&v};m.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof u=="object"&&u)||function(){return this}()||Function("return this")()}).call(this,e("yLpj"))},Lltv:function(m,y,e){"use strict";var u=e("vkZI"),h=e("G5Kn"),v=e("AoAp"),g=e("UQ6y"),x=e("FlRv").f,T=e("GHES"),P=e("i57Q"),N=e("jybJ"),S=e("++4Y"),j="Array Iterator",B=g.set,D=g.getterFor(j);m.exports=T(Array,"Array",function(G,M){B(this,{type:j,target:u(G),index:0,kind:M})},function(){var G=D(this),M=G.target,X=G.kind,q=G.index++;return!M||q>=M.length?(G.target=void 0,P(void 0,!0)):X=="keys"?P(q,!1):X=="values"?P(M[q],!1):P([q,M[q]],!1)},"values");var W=v.Arguments=v.Array;if(h("keys"),h("values"),h("entries"),!N&&S&&W.name!=="values")try{x(W,"name",{value:"values"})}catch(G){}},"M/+V":function(m,y,e){"use strict";var u=e("ymN0").charAt;m.exports=function(h,v,g){return v+(g?u(h,v).length:1)}},MNKV:function(m,y,e){"use strict";var u=e("nCzB"),h=e("aLaa"),v=e("OU4x"),g=e("XaNE"),x=e("qzpy"),T=e("/TZh"),P=h("".indexOf);u({target:"String",proto:!0,forced:!T("includes")},{includes:function(S){return!!~P(x(g(this)),x(v(S)),arguments.length>1?arguments[1]:void 0)}})},MURR:function(m,y,e){var u=e("aLaa"),h=0,v=Math.random(),g=u(1 .toString);m.exports=function(x){return"Symbol("+(x===void 0?"":x)+")_"+g(++h+v,36)}},N6FT:function(m,y,e){var u=e("++4Y"),h=e("YELS"),v=Function.prototype,g=u&&Object.getOwnPropertyDescriptor,x=h(v,"name"),T=x&&function(){}.name==="something",P=x&&(!u||u&&g(v,"name").configurable);m.exports={EXISTS:x,PROPER:T,CONFIGURABLE:P}},NCkV:function(m,y,e){"use strict";var u=e("1mOU"),h=e("m7zg"),v=e("aLaa"),g=e("WONN"),x=e("WxoH"),T=e("x0Ve"),P=e("COGW"),N=e("XaNE"),S=e("NudO"),j=e("M/+V"),B=e("c3MK"),D=e("qzpy"),W=e("oK8H"),G=e("8Ys4"),M=e("3fk+"),X=e("WMbf"),q=e("RhGR"),z=e("eRwv"),rt=q.UNSUPPORTED_Y,V=4294967295,lt=Math.min,C=[].push,R=v(/./.exec),U=v(C),A=v("".slice),nt=!z(function(){var at=/(?:)/,_=at.exec;at.exec=function(){return _.apply(this,arguments)};var O="ab".split(at);return O.length!==2||O[0]!=="a"||O[1]!=="b"});g("split",function(at,_,O){var $;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?$=function(b,I){var Y=D(N(this)),w=I===void 0?V:I>>>0;if(w===0)return[];if(b===void 0)return[Y];if(!P(b))return h(_,Y,b,w);for(var F=[],Q=(b.ignoreCase?"i":"")+(b.multiline?"m":"")+(b.unicode?"u":"")+(b.sticky?"y":""),H=0,J=new RegExp(b.source,Q+"g"),k,ft,pt;(k=h(X,J,Y))&&!(ft=J.lastIndex,ft>H&&(U(F,A(Y,H,k.index)),k.length>1&&k.index=w));)J.lastIndex===k.index&&J.lastIndex++;return H===Y.length?(pt||!R(J,""))&&U(F,""):U(F,A(Y,H)),F.length>w?G(F,0,w):F}:"0".split(void 0,0).length?$=function(b,I){return b===void 0&&I===0?[]:h(_,this,b,I)}:$=_,[function(I,Y){var w=N(this),F=T(I)?void 0:W(I,at);return F?h(F,I,w,Y):h($,D(w),I,Y)},function(b,I){var Y=x(this),w=D(b),F=O($,Y,w,I,$!==_);if(F.done)return F.value;var Q=S(Y,RegExp),H=Y.unicode,J=(Y.ignoreCase?"i":"")+(Y.multiline?"m":"")+(Y.unicode?"u":"")+(rt?"g":"y"),k=new Q(rt?"^(?:"+Y.source+")":Y,J),ft=I===void 0?V:I>>>0;if(ft===0)return[];if(w.length===0)return M(k,w)===null?[w]:[];for(var pt=0,ut=0,Nt=[];ut]*>)/g,N=/\$([$&'`]|\d{1,2})/g;m.exports=function(S,j,B,D,W,G){var M=B+S.length,X=D.length,q=N;return W!==void 0&&(W=h(W),q=P),x(G,q,function(z,rt){var V;switch(g(rt,0)){case"$":return"$";case"&":return S;case"`":return T(j,0,B);case"'":return T(j,M);case"<":V=W[T(rt,1,-1)];break;default:var lt=+rt;if(lt===0)return z;if(lt>X){var C=v(lt/10);return C===0?z:C<=X?D[C-1]===void 0?g(rt,1):D[C-1]+g(rt,1):z}V=D[lt-1]}return V===void 0?"":V})}},NudO:function(m,y,e){var u=e("WxoH"),h=e("Dk1u"),v=e("x0Ve"),g=e("11yv"),x=g("species");m.exports=function(T,P){var N=u(T).constructor,S;return N===void 0||v(S=u(N)[x])?P:h(S)}},Nybj:function(m,y,e){var u=e("vkZI"),h=e("n6S8"),v=e("tMNq"),g=function(x){return function(T,P,N){var S=u(T),j=v(S),B=h(N,j),D;if(x&&P!=P){for(;j>B;)if(D=S[B++],D!=D)return!0}else for(;j>B;B++)if((x||B in S)&&S[B]===P)return x||B||0;return!x&&-1}};m.exports={includes:g(!0),indexOf:g(!1)}},OU4x:function(m,y,e){var u=e("COGW"),h=TypeError;m.exports=function(v){if(u(v))throw h("The method doesn't accept regular expressions");return v}},Ppro:function(m,y,e){"use strict";var u=e("nCzB"),h=e("WMbf");u({target:"RegExp",proto:!0,forced:/./.exec!==h},{exec:h})},QELg:function(m,y,e){"use strict";var u=e("eRwv");m.exports=function(h,v){var g=[][h];return!!g&&u(function(){g.call(null,v||function(){return 1},1)})}},QrM1:function(m,y,e){var u=e("ZpKI"),h=e("Yzn+"),v=h.concat("length","prototype");y.f=Object.getOwnPropertyNames||function(x){return u(x,v)}},"RXj+":function(m,y,e){var u=e("aLaa"),h=e("XaNE"),v=e("qzpy"),g=e("noWC"),x=u("".replace),T="["+g+"]",P=RegExp("^"+T+T+"*"),N=RegExp(T+T+"*$"),S=function(j){return function(B){var D=v(h(B));return j&1&&(D=x(D,P,"")),j&2&&(D=x(D,N,"")),D}};m.exports={start:S(1),end:S(2),trim:S(3)}},RYfq:function(m,y,e){var u=e("Ks5W"),h=e("JTf3"),v=function(g){return h(g)?g:void 0};m.exports=function(g,x){return arguments.length<2?v(u[g]):u[g]&&u[g][x]}},RhGR:function(m,y,e){var u=e("eRwv"),h=e("Ks5W"),v=h.RegExp,g=u(function(){var P=v("a","y");return P.lastIndex=2,P.exec("abcd")!=null}),x=g||u(function(){return!v("a","y").sticky}),T=g||u(function(){var P=v("^r","gy");return P.lastIndex=2,P.exec("str")!=null});m.exports={BROKEN_CARET:T,MISSED_STICKY:x,UNSUPPORTED_Y:g}},SN6V:function(m,y,e){var u=e("/dXc");m.exports=function(h){var v=+h;return v!==v||v===0?0:u(v)}},"ST+I":function(m,y,e){var u=e("aNr2"),h=e("MURR"),v=u("keys");m.exports=function(g){return v[g]||(v[g]=h(g))}},SkNP:function(m,y){m.exports={}},SwuV:function(m,y,e){var u=e("JTf3"),h=e("013W"),v=h.all;m.exports=h.IS_HTMLDDA?function(g){return typeof g=="object"?g!==null:u(g)||g===v}:function(g){return typeof g=="object"?g!==null:u(g)}},TRzv:function(m,y,e){var u=e("WxoH"),h=e("SwuV"),v=e("zFjv");m.exports=function(g,x){if(u(g),h(x)&&x.constructor===g)return x;var T=v.f(g),P=T.resolve;return P(x),T.promise}},Ttl4:function(m,y,e){var u=e("YELS"),h=e("x1+7"),v=e("fKql"),g=e("FlRv");m.exports=function(x,T,P){for(var N=h(T),S=g.f,j=v.f,B=0;B0&&(!U.multiline||U.multiline&&G(nt,U.lastIndex-1)!==` +`)&&(J="(?: "+J+")",ft=" "+ft,k++),O=new RegExp("^(?:"+J+")",H)),V&&(O=new RegExp("^"+J+"$(?!\\s)",H)),z&&($=U.lastIndex),b=u(D,Q?O:U,ft),Q?b?(b.input=q(b.input,k),b[0]=q(b[0],k),b.index=U.lastIndex,U.lastIndex+=b[0].length):U.lastIndex=0:z&&b&&(U.lastIndex=U.global?b.index+b[0].length:$),V&&b&&b.length>1&&u(B,b[0],O,function(){for(I=1;I3&&(this.alpha=P[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 N=this.r.toString(16),S=this.g.toString(16),j=this.b.toString(16);return N.length==1&&(N="0"+N),S.length==1&&(S="0"+S),j.length==1&&(j="0"+j),"#"+N+S+j},this.getHelpXML=function(){for(var N=new Array,S=0;S "+M.toRGB()+" -> "+M.toHex());G.appendChild(X),G.appendChild(q),W.appendChild(G)}catch(rt){}return W}}},WONN:function(m,y,e){"use strict";e("Ppro");var u=e("aLaa"),h=e("WaP5"),v=e("WMbf"),g=e("eRwv"),x=e("11yv"),T=e("8ODz"),P=x("species"),N=RegExp.prototype;m.exports=function(S,j,B,D){var W=x(S),G=!g(function(){var z={};return z[W]=function(){return 7},""[S](z)!=7}),M=G&&!g(function(){var z=!1,rt=/a/;return S==="split"&&(rt={},rt.constructor={},rt.constructor[P]=function(){return rt},rt.flags="",rt[W]=/./[W]),rt.exec=function(){return z=!0,null},rt[W](""),!z});if(!G||!M||B){var X=u(/./[W]),q=j(W,""[S],function(z,rt,V,lt,C){var R=u(z),U=rt.exec;return U===v||U===N.exec?G&&!C?{done:!0,value:X(rt,V,lt)}:{done:!0,value:R(V,rt,lt)}:{done:!1}});h(String.prototype,S,q[0]),h(N,W,q[1])}D&&T(N[W],"sham",!0)}},WaP5:function(m,y,e){var u=e("JTf3"),h=e("FlRv"),v=e("3DCu"),g=e("X4md");m.exports=function(x,T,P,N){N||(N={});var S=N.enumerable,j=N.name!==void 0?N.name:T;if(u(P)&&v(P,j,N),N.global)S?x[T]=P:g(T,P);else{try{N.unsafe?x[T]&&(S=!0):delete x[T]}catch(B){}S?x[T]=P:h.f(x,T,{value:P,enumerable:!1,configurable:!N.nonConfigurable,writable:!N.nonWritable})}return x}},WxoH:function(m,y,e){var u=e("SwuV"),h=String,v=TypeError;m.exports=function(g){if(u(g))return g;throw v(h(g)+" is not an object")}},"X/EZ":function(m,y,e){var u=e("11yv"),h=u("iterator"),v=!1;try{var g=0,x={next:function(){return{done:!!g++}},return:function(){v=!0}};x[h]=function(){return this},Array.from(x,function(){throw 2})}catch(T){}m.exports=function(T,P){if(!P&&!v)return!1;var N=!1;try{var S={};S[h]=function(){return{next:function(){return{done:N=!0}}}},T(S)}catch(j){}return N}},X4md:function(m,y,e){var u=e("Ks5W"),h=Object.defineProperty;m.exports=function(v,g){try{h(u,v,{value:g,configurable:!0,writable:!0})}catch(x){u[v]=g}return g}},XFuk:function(m,y,e){var u=e("WxoH"),h=e("oR5W"),v=e("Yzn+"),g=e("SkNP"),x=e("bUA4"),T=e("me6S"),P=e("ST+I"),N=">",S="<",j="prototype",B="script",D=P("IE_PROTO"),W=function(){},G=function(rt){return S+B+N+rt+S+"/"+B+N},M=function(rt){rt.write(G("")),rt.close();var V=rt.parentWindow.Object;return rt=null,V},X=function(){var rt=T("iframe"),V="java"+B+":",lt;return rt.style.display="none",x.appendChild(rt),rt.src=String(V),lt=rt.contentWindow.document,lt.open(),lt.write(G("document.F=Object")),lt.close(),lt.F},q,z=function(){try{q=new ActiveXObject("htmlfile")}catch(V){}z=typeof document!="undefined"?document.domain&&q?M(q):X():M(q);for(var rt=v.length;rt--;)delete z[j][v[rt]];return z()};g[D]=!0,m.exports=Object.create||function(V,lt){var C;return V!==null?(W[j]=u(V),C=new W,W[j]=null,C[D]=V):C=z(),lt===void 0?C:h.f(C,lt)}},XTcp:function(m,y,e){var u=e("Ks5W"),h=e("1mOU"),v=e("mcoe"),g=e("JTf3"),x=e("YELS"),T=e("eRwv"),P=e("bUA4"),N=e("0r2v"),S=e("me6S"),j=e("k2qh"),B=e("GgKt"),D=e("IGIO"),W=u.setImmediate,G=u.clearImmediate,M=u.process,X=u.Dispatch,q=u.Function,z=u.MessageChannel,rt=u.String,V=0,lt={},C="onreadystatechange",R,U,A,nt;try{R=u.location}catch(b){}var at=function(b){if(x(lt,b)){var I=lt[b];delete lt[b],I()}},_=function(b){return function(){at(b)}},O=function(b){at(b.data)},$=function(b){u.postMessage(rt(b),R.protocol+"//"+R.host)};(!W||!G)&&(W=function(I){j(arguments.length,1);var Y=g(I)?I:q(I),w=N(arguments,1);return lt[++V]=function(){h(Y,void 0,w)},U(V),V},G=function(I){delete lt[I]},D?U=function(b){M.nextTick(_(b))}:X&&X.now?U=function(b){X.now(_(b))}:z&&!B?(A=new z,nt=A.port2,A.port1.onmessage=O,U=v(nt.postMessage,nt)):u.addEventListener&&g(u.postMessage)&&!u.importScripts&&R&&R.protocol!=="file:"&&!T($)?(U=$,u.addEventListener("message",O,!1)):C in S("script")?U=function(b){P.appendChild(S("script"))[C]=function(){P.removeChild(this),at(b)}}:U=function(b){setTimeout(_(b),0)}),m.exports={set:W,clear:G}},XaNE:function(m,y,e){var u=e("x0Ve"),h=TypeError;m.exports=function(v){if(u(v))throw h("Can't call method on "+v);return v}},Xp4B:function(m,y,e){"use strict";e.d(y,"a",function(){return P});function u(D){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(G){return typeof G}:u=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},u(D)}function h(D,W){if(!(D instanceof W))throw new TypeError("Cannot call a class as a function")}var v=[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],g=[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 x(D,W,G,M,X,q){if(typeof D=="string"&&(D=document.getElementById(D)),!D||!("naturalWidth"in D))return;var z=X?"offset":"natural",rt=D[z+"Width"],V=D[z+"Height"];if(typeof W=="string"&&(W=document.getElementById(W)),!W||!("getContext"in W))return;q||(W.style.width=rt+"px",W.style.height=V+"px"),W.width=rt,W.height=V;var lt=W.getContext("2d");if(lt.clearRect(0,0,rt,V),lt.drawImage(D,0,0,D.naturalWidth,D.naturalHeight,0,0,rt,V),isNaN(G)||G<1)return;M?P(W,0,0,rt,V,G):S(W,0,0,rt,V,G)}function T(D,W,G,M,X){if(typeof D=="string"&&(D=document.getElementById(D)),!D||u(D)!=="object"||!("getContext"in D))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var q=D.getContext("2d");try{return q.getImageData(W,G,M,X)}catch(z){throw new Error("unable to access image data: "+z)}}function P(D,W,G,M,X,q){if(isNaN(q)||q<1)return;q|=0;var z=T(D,W,G,M,X);z=N(z,W,G,M,X,q),D.getContext("2d").putImageData(z,W,G)}function N(D,W,G,M,X,q){for(var z=D.data,rt=2*q+1,V=M-1,lt=X-1,C=q+1,R=C*(C+1)/2,U=new B,A=U,nt,at=1;at>Y;if(z[b+3]=ot,ot!==0){var gt=255/ot;z[b]=(Bt*I>>Y)*gt,z[b+1]=(Dt*I>>Y)*gt,z[b+2]=(Ft*I>>Y)*gt}else z[b]=z[b+1]=z[b+2]=0;Bt-=St,Dt-=Ot,Ft-=It,Ct-=wt,St-=_.r,Ot-=_.g,It-=_.b,wt-=_.a;var bt=$t+q+1;bt=$+(bt>Y,Xt>0?(Xt=255/Xt,z[ne]=(me*I>>Y)*Xt,z[ne+1]=(ye*I>>Y)*Xt,z[ne+2]=(xe*I>>Y)*Xt):z[ne]=z[ne+1]=z[ne+2]=0,me-=Te,ye-=pe,xe-=Pe,Ee-=Se,Te-=_.r,pe-=_.g,Pe-=_.b,Se-=_.a,ne=qt+((ne=de+C)>b,z[F+1]=St*$>>b,z[F+2]=Ot*$>>b,Nt-=ft,St-=pt,Ot-=ut,ft-=_.r,pt-=_.g,ut-=_.b,I=w+((I=Ct+q+1)>b,z[I+1]=ot*$>>b,z[I+2]=gt*$>>b,$t-=Jt,ot-=jt,gt-=Tt,Jt-=_.r,jt-=_.g,Tt-=_.b,I=Gt+((I=qt+C)j;)h(S,D=N[j++])&&(~g(B,D)||T(B,D));return B}},a9Cf:function(m,y,e){var u=e("11yv"),h=u("toStringTag"),v={};v[h]="z",m.exports=String(v)==="[object z]"},aLaa:function(m,y,e){var u=e("66qH"),h=Function.prototype,v=h.bind,g=h.call,x=u&&v.bind(g,g);m.exports=u?function(T){return T&&x(T)}:function(T){return T&&function(){return g.apply(T,arguments)}}},aNIs:function(m,y,e){var u=e("Ks5W"),h=e("eE3R"),v=u.process,g=u.Deno,x=v&&v.versions||g&&g.version,T=x&&x.v8,P,N;T&&(P=T.split("."),N=P[0]>0&&P[0]<4?1:+(P[0]+P[1])),!N&&h&&(P=h.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=h.match(/Chrome\/(\d+)/),P&&(N=+P[1]))),m.exports=N},aNr2:function(m,y,e){var u=e("jybJ"),h=e("4gdG");(m.exports=function(v,g){return h[v]||(h[v]=g!==void 0?g:{})})("versions",[]).push({version:"3.25.3",mode:u?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE",source:"https://github.com/zloirock/core-js"})},bT0D:function(m,y,e){var u=e("RYfq"),h=e("JTf3"),v=e("3Xd8"),g=e("1Sr1"),x=Object;m.exports=g?function(T){return typeof T=="symbol"}:function(T){var P=u("Symbol");return h(P)&&v(P.prototype,x(T))}},bUA4:function(m,y,e){var u=e("RYfq");m.exports=u("document","documentElement")},ba8b:function(m,y,e){var u=e("aLaa"),h=u({}.toString),v=u("".slice);m.exports=function(g){return v(h(g),8,-1)}},c3MK:function(m,y,e){var u=e("SN6V"),h=Math.min;m.exports=function(v){return v>0?h(u(v),9007199254740991):0}},c55Z:function(m,y,e){var u=e("eRwv"),h=e("Ks5W"),v=h.RegExp;m.exports=u(function(){var g=v("(?b)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$c")!=="bc"})},dAmL:function(m,y){m.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},eE3R:function(m,y,e){var u=e("RYfq");m.exports=u("navigator","userAgent")||""},eRwv:function(m,y){m.exports=function(e){try{return!!e()}catch(u){return!0}}},fKql:function(m,y,e){var u=e("++4Y"),h=e("m7zg"),v=e("5r2E"),g=e("4uGi"),x=e("vkZI"),T=e("GTqx"),P=e("YELS"),N=e("pVCk"),S=Object.getOwnPropertyDescriptor;y.f=u?S:function(B,D){if(B=x(B),D=T(D),N)try{return S(B,D)}catch(W){}if(P(B,D))return g(!h(v.f,B,D),B[D])}},"g8+u":function(m,y,e){var u=e("a9Cf"),h=e("JTf3"),v=e("ba8b"),g=e("11yv"),x=g("toStringTag"),T=Object,P=v(function(){return arguments}())=="Arguments",N=function(S,j){try{return S[j]}catch(B){}};m.exports=u?v:function(S){var j,B,D;return S===void 0?"Undefined":S===null?"Null":typeof(B=N(j=T(S),x))=="string"?B:P?v(j):(D=v(j))=="Object"&&h(j.callee)?"Arguments":D}},g9jQ:function(m,y,e){"use strict";var u=e("nCzB"),h=e("aLaa"),v=e("Nybj").indexOf,g=e("QELg"),x=h([].indexOf),T=!!x&&1/x([1],1,-0)<0,P=g("indexOf");u({target:"Array",proto:!0,forced:T||!P},{indexOf:function(S){var j=arguments.length>1?arguments[1]:void 0;return T?x(this,S,j)||0:v(this,S,j)}})},gzPo:function(m,y,e){var u=e("Ks5W"),h=e("mcoe"),v=e("fKql").f,g=e("XTcp").set,x=e("GgKt"),T=e("FqHY"),P=e("/pbl"),N=e("IGIO"),S=u.MutationObserver||u.WebKitMutationObserver,j=u.document,B=u.process,D=u.Promise,W=v(u,"queueMicrotask"),G=W&&W.value,M,X,q,z,rt,V,lt,C;G||(M=function(){var R,U;for(N&&(R=B.domain)&&R.exit();X;){U=X.fn,X=X.next;try{U()}catch(A){throw X?z():q=void 0,A}}q=void 0,R&&R.enter()},!x&&!N&&!P&&S&&j?(rt=!0,V=j.createTextNode(""),new S(M).observe(V,{characterData:!0}),z=function(){V.data=rt=!rt}):!T&&D&&D.resolve?(lt=D.resolve(void 0),lt.constructor=D,C=h(lt.then,lt),z=function(){C(M)}):N?z=function(){B.nextTick(M)}:(g=h(g,u),z=function(){g(M)})),m.exports=G||function(R){var U={fn:R,next:void 0};q&&(q.next=U),X||(X=U,z()),q=U}},hIaP:function(m,y,e){var u=e("m7zg"),h=e("8HiI"),v=e("WxoH"),g=e("IL+x"),x=e("ltkU"),T=TypeError;m.exports=function(P,N){var S=arguments.length<2?x(P):N;if(h(S))return v(u(S,P));throw T(g(P)+" is not iterable")}},i57Q:function(m,y){m.exports=function(e,u){return{value:e,done:u}}},"iBj/":function(m,y,e){var u=e("m7zg"),h=e("WxoH"),v=e("oK8H");m.exports=function(g,x,T){var P,N;h(g);try{if(P=v(g,"return"),!P){if(x==="throw")throw T;return T}P=u(P,g)}catch(S){N=!0,P=S}if(x==="throw")throw T;if(N)throw P;return h(P),T}},iWRt:function(m,y,e){"use strict";var u=e("nCzB"),h=e("aLaa"),v=e("uZ/K"),g=h([].reverse),x=[1,2];u({target:"Array",proto:!0,forced:String(x)===String(x.reverse())},{reverse:function(){return v(this)&&(this.length=this.length),g(this)}})},jCYL:function(m,y,e){"use strict";var u=e("nCzB"),h=e("RYfq"),v=e("jybJ"),g=e("KLK4"),x=e("GxTi").CONSTRUCTOR,T=e("TRzv"),P=h("Promise"),N=v&&!x;u({target:"Promise",stat:!0,forced:v||x},{resolve:function(j){return T(N&&this===P?g:this,j)}})},jybJ:function(m,y){m.exports=!1},k2qh:function(m,y){var e=TypeError;m.exports=function(u,h){if(u79&&g<83;u({target:"Array",proto:!0,forced:!T||P},{reduce:function(S){var j=arguments.length;return h(this,S,j,j>1?arguments[1]:void 0)}})},me6S:function(m,y,e){var u=e("Ks5W"),h=e("SwuV"),v=u.document,g=h(v)&&h(v.createElement);m.exports=function(x){return g?v.createElement(x):{}}},ms20:function(m,y,e){var u=e("m7zg"),h=e("SwuV"),v=e("bT0D"),g=e("oK8H"),x=e("2lHc"),T=e("11yv"),P=TypeError,N=T("toPrimitive");m.exports=function(S,j){if(!h(S)||v(S))return S;var B=g(S,N),D;if(B){if(j===void 0&&(j="default"),D=u(B,S,j),!h(D)||v(D))return D;throw P("Can't convert object to primitive value")}return j===void 0&&(j="number"),x(S,j)}},n6S8:function(m,y,e){var u=e("SN6V"),h=Math.max,v=Math.min;m.exports=function(g,x){var T=u(g);return T<0?h(T+x,0):v(T,x)}},nCzB:function(m,y,e){var u=e("Ks5W"),h=e("fKql").f,v=e("8ODz"),g=e("WaP5"),x=e("X4md"),T=e("Ttl4"),P=e("mGb/");m.exports=function(N,S){var j=N.target,B=N.global,D=N.stat,W,G,M,X,q,z;if(B?G=u:D?G=u[j]||x(j,{}):G=(u[j]||{}).prototype,G)for(M in S){if(q=S[M],N.dontCallGetSet?(z=h(G,M),X=z&&z.value):X=G[M],W=P(B?M:j+(D?".":"#")+M,N.forced),!W&&X!==void 0){if(typeof q==typeof X)continue;T(q,X)}(N.sham||X&&X.sham)&&v(q,"sham",!0),g(G,M,q,N)}}},noWC:function(m,y){m.exports=` +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},nvEG:function(m,y,e){var u=e("mcoe"),h=e("m7zg"),v=e("WxoH"),g=e("IL+x"),x=e("3n0U"),T=e("tMNq"),P=e("3Xd8"),N=e("hIaP"),S=e("ltkU"),j=e("iBj/"),B=TypeError,D=function(G,M){this.stopped=G,this.result=M},W=D.prototype;m.exports=function(G,M,X){var q=X&&X.that,z=!!(X&&X.AS_ENTRIES),rt=!!(X&&X.IS_RECORD),V=!!(X&&X.IS_ITERATOR),lt=!!(X&&X.INTERRUPTED),C=u(M,q),R,U,A,nt,at,_,O,$=function(I){return R&&j(R,"normal",I),new D(!0,I)},b=function(I){return z?(v(I),lt?C(I[0],I[1],$):C(I[0],I[1])):lt?C(I,$):C(I)};if(rt)R=G.iterator;else if(V)R=G;else{if(U=S(G),!U)throw B(g(G)+" is not iterable");if(x(U)){for(A=0,nt=T(G);nt>A;A++)if(at=b(G[A]),at&&P(W,at))return at;return new D(!1)}R=N(G,U)}for(_=rt?G.next:R.next;!(O=h(_,R)).done;){try{at=b(O.value)}catch(I){j(R,"throw",I)}if(typeof at=="object"&&at&&P(W,at))return at}return new D(!1)}},oK8H:function(m,y,e){var u=e("8HiI"),h=e("x0Ve");m.exports=function(v,g){var x=v[g];return h(x)?void 0:u(x)}},oR5W:function(m,y,e){var u=e("++4Y"),h=e("FkIU"),v=e("FlRv"),g=e("WxoH"),x=e("vkZI"),T=e("Ai06");y.f=u&&!h?Object.defineProperties:function(N,S){g(N);for(var j=x(S),B=T(S),D=B.length,W=0,G;D>W;)v.f(N,G=B[W++],j[G]);return N}},oauk:function(m,y,e){"use strict";var u=e("GTqx"),h=e("FlRv"),v=e("4uGi");m.exports=function(g,x,T){var P=u(x);P in g?h.f(g,P,v(0,T)):g[P]=T}},p5Ma:function(m,y,e){var u=e("aLaa"),h=e("eRwv"),v=e("ba8b"),g=Object,x=u("".split);m.exports=h(function(){return!g("z").propertyIsEnumerable(0)})?function(T){return v(T)=="String"?x(T,""):g(T)}:g},pVCk:function(m,y,e){var u=e("++4Y"),h=e("eRwv"),v=e("me6S");m.exports=!u&&!h(function(){return Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a!=7})},qJvV:function(m,y,e){var u=e("Ks5W"),h=e("ENhe"),v=e("GI0h"),g=e("Lltv"),x=e("8ODz"),T=e("11yv"),P=T("iterator"),N=T("toStringTag"),S=g.values,j=function(D,W){if(D){if(D[P]!==S)try{x(D,P,S)}catch(M){D[P]=S}if(D[N]||x(D,N,W),h[W]){for(var G in g)if(D[G]!==g[G])try{x(D,G,g[G])}catch(M){D[G]=g[G]}}}};for(var B in h)j(u[B]&&u[B].prototype,B);j(v,"DOMTokenList")},qjFr:function(m,y,e){"use strict";var u=e("eRwv"),h=e("JTf3"),v=e("SwuV"),g=e("XFuk"),x=e("WLJ+"),T=e("WaP5"),P=e("11yv"),N=e("jybJ"),S=P("iterator"),j=!1,B,D,W;[].keys&&(W=[].keys(),"next"in W?(D=x(x(W)),D!==Object.prototype&&(B=D)):j=!0);var G=!v(B)||u(function(){var M={};return B[S].call(M)!==M});G?B={}:N&&(B=g(B)),h(B[S])||T(B,S,function(){return this}),m.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:j}},qozo:function(m,y,e){"use strict";var u=e("qjFr").IteratorPrototype,h=e("XFuk"),v=e("4uGi"),g=e("ueY1"),x=e("AoAp"),T=function(){return this};m.exports=function(P,N,S,j){var B=N+" Iterator";return P.prototype=h(u,{next:v(+!j,S)}),g(P,B,!1,!0),x[B]=T,P}},qzpy:function(m,y,e){var u=e("g8+u"),h=String;m.exports=function(v){if(u(v)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return h(v)}},sNJV:function(m,y,e){var u=e("aLaa"),h=e("JTf3"),v=e("4gdG"),g=u(Function.toString);h(v.inspectSource)||(v.inspectSource=function(x){return g(x)}),m.exports=v.inspectSource},tMNq:function(m,y,e){var u=e("c3MK");m.exports=function(h){return u(h.length)}},tZjp:function(m,y,e){"use strict";var u=e("nCzB"),h=e("jybJ"),v=e("IGIO"),g=e("Ks5W"),x=e("m7zg"),T=e("WaP5"),P=e("JHvW"),N=e("ueY1"),S=e("9Bi7"),j=e("8HiI"),B=e("JTf3"),D=e("SwuV"),W=e("uoua"),G=e("NudO"),M=e("XTcp").set,X=e("gzPo"),q=e("lAFk"),z=e("8xe4"),rt=e("zUnQ"),V=e("UQ6y"),lt=e("KLK4"),C=e("GxTi"),R=e("zFjv"),U="Promise",A=C.CONSTRUCTOR,nt=C.REJECTION_EVENT,at=C.SUBCLASSING,_=V.getterFor(U),O=V.set,$=lt&<.prototype,b=lt,I=$,Y=g.TypeError,w=g.document,F=g.process,Q=R.f,H=Q,J=!!(w&&w.createEvent&&g.dispatchEvent),k="unhandledrejection",ft="rejectionhandled",pt=0,ut=1,Nt=2,St=1,Ot=2,It,wt,Bt,Dt,Ft=function(ot){var gt;return D(ot)&&B(gt=ot.then)?gt:!1},Ct=function(ot,gt){var bt=gt.value,Rt=gt.state==ut,Mt=Rt?ot.ok:ot.fail,re=ot.resolve,se=ot.reject,le=ot.domain,qt,fe,ee;try{Mt?(Rt||(gt.rejection===Ot&&Jt(gt),gt.rejection=St),Mt===!0?qt=bt:(le&&le.enter(),qt=Mt(bt),le&&(le.exit(),ee=!0)),qt===ot.promise?se(Y("Promise-chain cycle")):(fe=Ft(qt))?x(fe,qt,re,se):re(qt)):se(bt)}catch(he){le&&!ee&&le.exit(),se(he)}},Gt=function(ot,gt){if(ot.notified)return;ot.notified=!0,X(function(){for(var bt=ot.reactions,Rt;Rt=bt.get();)Ct(Rt,ot);ot.notified=!1,gt&&!ot.rejection&&Yt(ot)})},Vt=function(ot,gt,bt){var Rt,Mt;J?(Rt=w.createEvent("Event"),Rt.promise=gt,Rt.reason=bt,Rt.initEvent(ot,!1,!0),g.dispatchEvent(Rt)):Rt={promise:gt,reason:bt},!nt&&(Mt=g["on"+ot])?Mt(Rt):ot===k&&q("Unhandled promise rejection",bt)},Yt=function(ot){x(M,g,function(){var gt=ot.facade,bt=ot.value,Rt=Lt(ot),Mt;if(Rt&&(Mt=z(function(){v?F.emit("unhandledRejection",bt,gt):Vt(k,gt,bt)}),ot.rejection=v||Lt(ot)?Ot:St,Mt.error))throw Mt.value})},Lt=function(ot){return ot.rejection!==St&&!ot.parent},Jt=function(ot){x(M,g,function(){var gt=ot.facade;v?F.emit("rejectionHandled",gt):Vt(ft,gt,ot.value)})},jt=function(ot,gt,bt){return function(Rt){ot(gt,Rt,bt)}},Tt=function(ot,gt,bt){if(ot.done)return;ot.done=!0,bt&&(ot=bt),ot.value=gt,ot.state=Nt,Gt(ot,!0)},$t=function(ot,gt,bt){if(ot.done)return;ot.done=!0,bt&&(ot=bt);try{if(ot.facade===gt)throw Y("Promise can't be resolved itself");var Rt=Ft(gt);Rt?X(function(){var Mt={done:!1};try{x(Rt,gt,jt($t,Mt,ot),jt(Tt,Mt,ot))}catch(re){Tt(Mt,re,ot)}}):(ot.value=gt,ot.state=ut,Gt(ot,!1))}catch(Mt){Tt({done:!1},Mt,ot)}};if(A&&(b=function(gt){W(this,I),j(gt),x(It,this);var bt=_(this);try{gt(jt($t,bt),jt(Tt,bt))}catch(Rt){Tt(bt,Rt)}},I=b.prototype,It=function(gt){O(this,{type:U,done:!1,notified:!1,parent:!1,reactions:new rt,rejection:!1,state:pt,value:void 0})},It.prototype=T(I,"then",function(gt,bt){var Rt=_(this),Mt=Q(G(this,b));return Rt.parent=!0,Mt.ok=B(gt)?gt:!0,Mt.fail=B(bt)&&bt,Mt.domain=v?F.domain:void 0,Rt.state==pt?Rt.reactions.add(Mt):X(function(){Ct(Mt,Rt)}),Mt.promise}),wt=function(){var ot=new It,gt=_(ot);this.promise=ot,this.resolve=jt($t,gt),this.reject=jt(Tt,gt)},R.f=Q=function(ot){return ot===b||ot===Bt?new wt(ot):H(ot)},!h&&B(lt)&&$!==Object.prototype)){Dt=$.then,at||T($,"then",function(gt,bt){var Rt=this;return new b(function(Mt,re){x(Dt,Rt,Mt,re)}).then(gt,bt)},{unsafe:!0});try{delete $.constructor}catch(ot){}P&&P($,I)}u({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:b}),N(b,U,!1,!0),S(U)},"uZ/K":function(m,y,e){var u=e("ba8b");m.exports=Array.isArray||function(v){return u(v)=="Array"}},ueY1:function(m,y,e){var u=e("FlRv").f,h=e("YELS"),v=e("11yv"),g=v("toStringTag");m.exports=function(x,T,P){x&&!P&&(x=x.prototype),x&&!h(x,g)&&u(x,g,{configurable:!0,value:T})}},uoua:function(m,y,e){var u=e("3Xd8"),h=TypeError;m.exports=function(v,g){if(u(g,v))return v;throw h("Incorrect invocation")}},"v/rq":function(m,y,e){var u=e("aNIs"),h=e("eRwv");m.exports=!!Object.getOwnPropertySymbols&&!h(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&u&&u<41})},vTDQ:function(m,y,e){var u=e("dAmL"),h=e("IGIO");m.exports=!u&&!h&&typeof window=="object"&&typeof document=="object"},vkZI:function(m,y,e){var u=e("p5Ma"),h=e("XaNE");m.exports=function(v){return u(h(v))}},vrKp:function(m,y,e){e("tZjp"),e("A2dy"),e("13vt"),e("D0VN"),e("ESVS"),e("jCYL")},wOD2:function(m,y,e){"use strict";var u=e("nCzB"),h=e("RXj+").trim,v=e("5JCY");u({target:"String",proto:!0,forced:v("trim")},{trim:function(){return h(this)}})},x0Ve:function(m,y){m.exports=function(e){return e==null}},"x1+7":function(m,y,e){var u=e("RYfq"),h=e("aLaa"),v=e("QrM1"),g=e("UCFi"),x=e("WxoH"),T=h([].concat);m.exports=u("Reflect","ownKeys")||function(N){var S=v.f(x(N)),j=g.f;return j?T(S,j(N)):S}},x8x8:function(m,y,e){"use strict";var u=e("1mOU"),h=e("m7zg"),v=e("aLaa"),g=e("WONN"),x=e("eRwv"),T=e("WxoH"),P=e("JTf3"),N=e("x0Ve"),S=e("SN6V"),j=e("c3MK"),B=e("qzpy"),D=e("XaNE"),W=e("M/+V"),G=e("oK8H"),M=e("Ne/+"),X=e("3fk+"),q=e("11yv"),z=q("replace"),rt=Math.max,V=Math.min,lt=v([].concat),C=v([].push),R=v("".indexOf),U=v("".slice),A=function(O){return O===void 0?O:String(O)},nt=function(){return"a".replace(/./,"$0")==="$0"}(),at=function(){return/./[z]?/./[z]("a","$0")==="":!1}(),_=!x(function(){var O=/./;return O.exec=function(){var $=[];return $.groups={a:"7"},$},"".replace(O,"$")!=="7"});g("replace",function(O,$,b){var I=at?"$":"$0";return[function(w,F){var Q=D(this),H=N(w)?void 0:G(w,z);return H?h(H,w,Q,F):h($,B(Q),w,F)},function(Y,w){var F=T(this),Q=B(Y);if(typeof w=="string"&&R(w,I)===-1&&R(w,"$<")===-1){var H=b($,F,Q,w);if(H.done)return H.value}var J=P(w);J||(w=B(w));var k=F.global;if(k){var ft=F.unicode;F.lastIndex=0}for(var pt=[];;){var ut=X(F,Q);if(ut===null)break;if(C(pt,ut),!k)break;var Nt=B(ut[0]);Nt===""&&(F.lastIndex=W(Q,j(F.lastIndex),ft))}for(var St="",Ot=0,It=0;It=Ot&&(St+=U(Q,Ot,Bt)+Vt,Ot=Bt+wt.length)}return St+U(Q,Ot)}]},!_||!nt||at)},yD9w:function(m,y,e){"use strict";var u=e("N6FT").PROPER,h=e("WaP5"),v=e("WxoH"),g=e("qzpy"),x=e("eRwv"),T=e("Vgcz"),P="toString",N=RegExp.prototype,S=N[P],j=x(function(){return S.call({source:"a",flags:"b"})!="/a/b"}),B=u&&S.name!=P;(j||B)&&h(RegExp.prototype,P,function(){var W=v(this),G=g(W.source),M=g(T(W));return"/"+G+"/"+M},{unsafe:!0})},yXPU:function(m,y){function e(h,v,g,x,T,P,N){try{var S=h[P](N),j=S.value}catch(B){g(B);return}S.done?v(j):Promise.resolve(j).then(x,T)}function u(h){return function(){var v=this,g=arguments;return new Promise(function(x,T){var P=h.apply(v,g);function N(j){e(P,x,T,N,S,"next",j)}function S(j){e(P,x,T,N,S,"throw",j)}N(void 0)})}}m.exports=u,m.exports.__esModule=!0,m.exports.default=m.exports},ymN0:function(m,y,e){var u=e("aLaa"),h=e("SN6V"),v=e("qzpy"),g=e("XaNE"),x=u("".charAt),T=u("".charCodeAt),P=u("".slice),N=function(S){return function(j,B){var D=v(g(j)),W=h(B),G=D.length,M,X;return W<0||W>=G?S?"":void 0:(M=T(D,W),M<55296||M>56319||W+1===G||(X=T(D,W+1))<56320||X>57343?S?x(D,W):M:S?P(D,W,W+2):(M-55296<<10)+(X-56320)+65536)}};m.exports={codeAt:N(!1),charAt:N(!0)}},zFjv:function(m,y,e){"use strict";var u=e("8HiI"),h=TypeError,v=function(g){var x,T;this.promise=new g(function(P,N){if(x!==void 0||T!==void 0)throw h("Bad Promise constructor");x=P,T=N}),this.resolve=u(x),this.reject=u(T)};m.exports.f=function(g){return new v(g)}},zUnQ:function(m,y){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(u){var h={item:u,next:null};this.head?this.tail.next=h:this.head=h,this.tail=h},get:function(){var u=this.head;if(u)return this.head=u.next,this.tail===u&&(this.tail=null),u.item}},m.exports=e}}]); diff --git a/242.1139eb3a.async.js b/242.1139eb3a.async.js new file mode 100644 index 0000000000..79771543a2 --- /dev/null +++ b/242.1139eb3a.async.js @@ -0,0 +1,3 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[242],{qZ2Q:function(ft,sa,la){/*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */(function(S,W){ft.exports=W()})(this,function(){"use strict";function S(a){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},S(a)}function W(a,r){return W=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},W(a,r)}function mt(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function K(a,r,o){return mt()?K=Reflect.construct:K=function(c,M,k){var D=[null];D.push.apply(D,M);var j=Function.bind.apply(c,D),V=new j;return k&&W(V,k.prototype),V},K.apply(null,arguments)}function _(a){return dt(a)||pt(a)||ht(a)||bt()}function dt(a){if(Array.isArray(a))return le(a)}function pt(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function ht(a,r){if(!a)return;if(typeof a=="string")return le(a,r);var o=Object.prototype.toString.call(a).slice(8,-1);if(o==="Object"&&a.constructor&&(o=a.constructor.name),o==="Map"||o==="Set")return Array.from(a);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return le(a,r)}function le(a,r){(r==null||r>a.length)&&(r=a.length);for(var o=0,l=new Array(r);o1?o-1:0),c=1;c/gm),Lt=w(/^data-[\-\w.\u00B7-\uFFFF]/),Rt=w(/^aria-[\-\w]+$/),xt=w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ct=w(/^(?:\w+script|data):/i),It=w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pt=w(/^html$/i),Ht=function(){return typeof window=="undefined"?null:window},Ft=function(r,o){if(S(r)!=="object"||typeof r.createPolicy!="function")return null;var l=null,c="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(c)&&(l=o.currentScript.getAttribute(c));var M="dompurify"+(l?"#"+l:"");try{return r.createPolicy(M,{createHTML:function(D){return D},createScriptURL:function(D){return D}})}catch(k){return console.warn("TrustedTypes policy "+M+" could not be created."),null}};function Ge(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ht(),r=function(e){return Ge(e)};if(r.version="2.4.0",r.removed=[],!a||!a.document||a.document.nodeType!==9)return r.isSupported=!1,r;var o=a.document,l=a.document,c=a.DocumentFragment,M=a.HTMLTemplateElement,k=a.Node,D=a.Element,j=a.NodeFilter,V=a.NamedNodeMap,zt=V===void 0?a.NamedNodeMap||a.MozNamedAttrMap:V,Gt=a.HTMLFormElement,Wt=a.DOMParser,ee=a.trustedTypes,te=D.prototype,Bt=J(te,"cloneNode"),jt=J(te,"nextSibling"),Vt=J(te,"childNodes"),he=J(te,"parentNode");if(typeof M=="function"){var be=l.createElement("template");be.content&&be.content.ownerDocument&&(l=be.content.ownerDocument)}var E=Ft(ee,o),We=E?E.createHTML(""):"",ae=l,ve=ae.implementation,Yt=ae.createNodeIterator,$t=ae.createDocumentFragment,qt=ae.getElementsByTagName,Kt=o.importNode,Be={};try{Be=C(l).documentMode?l.documentMode:{}}catch(i){}var O={};r.isSupported=typeof he=="function"&&ve&&typeof ve.createHTMLDocument!="undefined"&&Be!==9;var ge=kt,ye=Nt,Xt=Lt,Zt=Rt,Jt=Ct,je=It,Te=xt,m=null,Ve=s({},[].concat(_(He),_(fe),_(me),_(de),_(Fe))),p=null,Ye=s({},[].concat(_(Ue),_(pe),_(ze),_(Q))),f=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,_e=null,$e=!0,Ae=!0,qe=!1,P=!1,I=!1,Ee=!1,we=!1,H=!1,ne=!1,re=!1,Ke=!0,Xe=!1,Qt="user-content-",Me=!0,$=!1,F={},U=null,Ze=s({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Je=null,Qe=s({},["audio","video","img","source","image","track"]),De=null,et=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",Se="http://www.w3.org/2000/svg",x="http://www.w3.org/1999/xhtml",ie=x,ke=!1,z,ea=["application/xhtml+xml","text/html"],ta="text/html",d,G=null,aa=l.createElement("form"),tt=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(e){if(G&&G===e)return;(!e||S(e)!=="object")&&(e={}),e=C(e),z=ea.indexOf(e.PARSER_MEDIA_TYPE)===-1?z=ta:z=e.PARSER_MEDIA_TYPE,d=z==="application/xhtml+xml"?function(t){return t}:Z,m="ALLOWED_TAGS"in e?s({},e.ALLOWED_TAGS,d):Ve,p="ALLOWED_ATTR"in e?s({},e.ALLOWED_ATTR,d):Ye,De="ADD_URI_SAFE_ATTR"in e?s(C(et),e.ADD_URI_SAFE_ATTR,d):et,Je="ADD_DATA_URI_TAGS"in e?s(C(Qe),e.ADD_DATA_URI_TAGS,d):Qe,U="FORBID_CONTENTS"in e?s({},e.FORBID_CONTENTS,d):Ze,Y="FORBID_TAGS"in e?s({},e.FORBID_TAGS,d):{},_e="FORBID_ATTR"in e?s({},e.FORBID_ATTR,d):{},F="USE_PROFILES"in e?e.USE_PROFILES:!1,$e=e.ALLOW_ARIA_ATTR!==!1,Ae=e.ALLOW_DATA_ATTR!==!1,qe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,P=e.SAFE_FOR_TEMPLATES||!1,I=e.WHOLE_DOCUMENT||!1,H=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,we=e.FORCE_BODY||!1,Ke=e.SANITIZE_DOM!==!1,Xe=e.SANITIZE_NAMED_PROPS||!1,Me=e.KEEP_CONTENT!==!1,$=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||Te,ie=e.NAMESPACE||x,e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),P&&(Ae=!1),ne&&(H=!0),F&&(m=s({},_(Fe)),p=[],F.html===!0&&(s(m,He),s(p,Ue)),F.svg===!0&&(s(m,fe),s(p,pe),s(p,Q)),F.svgFilters===!0&&(s(m,me),s(p,pe),s(p,Q)),F.mathMl===!0&&(s(m,de),s(p,ze),s(p,Q))),e.ADD_TAGS&&(m===Ve&&(m=C(m)),s(m,e.ADD_TAGS,d)),e.ADD_ATTR&&(p===Ye&&(p=C(p)),s(p,e.ADD_ATTR,d)),e.ADD_URI_SAFE_ATTR&&s(De,e.ADD_URI_SAFE_ATTR,d),e.FORBID_CONTENTS&&(U===Ze&&(U=C(U)),s(U,e.FORBID_CONTENTS,d)),Me&&(m["#text"]=!0),I&&s(m,["html","head","body"]),m.table&&(s(m,["tbody"]),delete Y.tbody),g&&g(e),G=e},at=s({},["mi","mo","mn","ms","mtext"]),nt=s({},["foreignobject","desc","title","annotation-xml"]),na=s({},["title","style","font","a","script"]),oe=s({},fe);s(oe,me),s(oe,Ot);var Le=s({},de);s(Le,St);var ra=function(e){var t=he(e);(!t||!t.tagName)&&(t={namespaceURI:x,tagName:"template"});var n=Z(e.tagName),u=Z(t.tagName);return e.namespaceURI===Se?t.namespaceURI===x?n==="svg":t.namespaceURI===Oe?n==="svg"&&(u==="annotation-xml"||at[u]):Boolean(oe[n]):e.namespaceURI===Oe?t.namespaceURI===x?n==="math":t.namespaceURI===Se?n==="math"&&nt[u]:Boolean(Le[n]):e.namespaceURI===x?t.namespaceURI===Se&&!nt[u]||t.namespaceURI===Oe&&!at[u]?!1:!Le[n]&&(na[n]||!oe[n]):!1},N=function(e){B(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=We}catch(n){e.remove()}}},Re=function(e,t){try{B(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(n){B(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!p[e])if(H||ne)try{N(t)}catch(n){}else try{t.setAttribute(e,"")}catch(n){}},rt=function(e){var t,n;if(we)e=""+e;else{var u=Et(e,/^[\r\n\t ]+/);n=u&&u[0]}z==="application/xhtml+xml"&&(e=''+e+"");var T=E?E.createHTML(e):e;if(ie===x)try{t=new Wt().parseFromString(T,z)}catch(h){}if(!t||!t.documentElement){t=ve.createDocument(ie,"template",null);try{t.documentElement.innerHTML=ke?"":T}catch(h){}}var b=t.body||t.documentElement;return e&&n&&b.insertBefore(l.createTextNode(n),b.childNodes[0]||null),ie===x?qt.call(t,I?"html":"body")[0]:I?t.documentElement:b},it=function(e){return Yt.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,null,!1)},ia=function(e){return e instanceof Gt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof zt)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function")},q=function(e){return S(k)==="object"?e instanceof k:e&&S(e)==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},L=function(e,t,n){if(!O[e])return;At(O[e],function(u){u.call(r,t,n,G)})},ot=function(e){var t;if(L("beforeSanitizeElements",e,null),ia(e))return N(e),!0;if(y(/[\u0080-\uFFFF]/,e.nodeName))return N(e),!0;var n=d(e.nodeName);if(L("uponSanitizeElement",e,{tagName:n,allowedTags:m}),e.hasChildNodes()&&!q(e.firstElementChild)&&(!q(e.content)||!q(e.content.firstElementChild))&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return N(e),!0;if(n==="select"&&y(/