|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{1008:function(h,d,g){(function(d){for(var x=g(2119),S="undefined"==typeof window?d:window,b=["moz","webkit"],E="AnimationFrame",w=S["request"+E],_=S["cancel"+E]||S["cancelRequest"+E],P=0;!w&&P<b.length;P++)w=S[b[P]+"Request"+E],_=S[b[P]+"Cancel"+E]||S[b[P]+"CancelRequest"+E];if(!w||!_){var A=0,k=0,C=[];w=function(h){if(0===C.length){var d=x(),g=Math.max(0,1e3/60-(d-A));A=g+d,setTimeout((function(){var h=C.slice(0);C.length=0;for(var d=0;d<h.length;d++)if(!h[d].cancelled)try{h[d].callback(A)}catch(h){setTimeout((function(){throw h}),0)}}),Math.round(g))}return C.push({handle:++k,callback:h,cancelled:!1}),k},_=function(h){for(var d=0;d<C.length;d++)C[d].handle===h&&(C[d].cancelled=!0)}}h.exports=function(h){return w.call(S,h)},h.exports.cancel=function(){_.apply(S,arguments)},h.exports.polyfill=function(h){h||(h=S),h.requestAnimationFrame=w,h.cancelAnimationFrame=_}}).call(this,g(123))},2119:function(h,d,g){(function(d){(function(){var g,x,S,b,E,w;"undefined"!=typeof performance&&null!==performance&&performance.now?h.exports=function(){return performance.now()}:null!=d&&d.hrtime?(h.exports=function(){return(g()-E)/1e6},x=d.hrtime,b=(g=function(){var h;return 1e9*(h=x())[0]+h[1]})(),w=1e9*d.uptime(),E=b-w):Date.now?(h.exports=function(){return Date.now()-S},S=Date.now()):(h.exports=function(){return(new Date).getTime()-S},S=(new Date).getTime())}).call(this)}).call(this,g(399))},4327:function(h,d){h.exports=function(h){this.ok=!1,this.alpha=1,"#"==h.charAt(0)&&(h=h.substr(1,6)),h=(h=h.replace(/ /g,"")).toLowerCase();var d={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};h=d[h]||h;for(var g=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3]),parseFloat(h[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],x=0;x<g.length;x++){var S=g[x].re,b=g[x].process,E=S.exec(h);if(E){var w=b(E);this.r=w[0],this.g=w[1],this.b=w[2],w.length>3&&(this.alpha=w[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 h=this.r.toString(16),d=this.g.toString(16),g=this.b.toString(16);return 1==h.length&&(h="0"+h),1==d.length&&(d="0"+d),1==g.length&&(g="0"+g),"#"+h+d+g},this.getHelpXML=function(){for(var h=new Array,x=0;x<g.length;x++)for(var S=g[x].example,b=0;b<S.length;b++)h[h.length]=S[b];for(var E in d)h[h.length]=E;var w=document.createElement("ul");w.setAttribute("id","rgbcolor-examples");for(x=0;x<h.length;x++)try{var _=document.createElement("li"),P=new RGBColor(h[x]),A=document.createElement("div");A.style.cssText="margin: 3px; border: 1px solid black; background:"+P.toHex()+"; color:"+P.toHex(),A.appendChild(document.createTextNode("test"));var k=document.createTextNode(" "+h[x]+" -> "+P.toRGB()+" -> "+P.toHex());_.appendChild(A),_.appendChild(k),w.appendChild(_)}catch(h){}return w}}},8432:function(h,d,g){"use strict";g.r(d),function(h,x){g.d(d,"AElement",(function(){return Pr})),g.d(d,"AnimateColorElement",(function(){return mr})),g.d(d,"AnimateElement",(function(){return gr})),g.d(d,"AnimateTransformElement",(function(){return xr})),g.d(d,"BoundingBox",(function(){return qe})),g.d(d,"CB1",(function(){return CB1})),g.d(d,"CB2",(function(){return CB2})),g.d(d,"CB3",(function(){return CB3})),g.d(d,"CB4",(function(){return CB4})),g.d(d,"Canvg",(function(){return Gr})),g.d(d,"CircleElement",(function(){return ir})),g.d(d,"ClipPathElement",(function(){return Ir})),g.d(d,"DefsElement",(function(){return fr})),g.d(d,"DescElement",(function(){return zr})),g.d(d,"Document",(function(){return Hr})),g.d(d,"Element",(function(){return Xe})),g.d(d,"EllipseElement",(function(){return ar})),g.d(d,"FeColorMatrixElement",(function(){return Nr})),g.d(d,"FeCompositeElement",(function(){return $r})),g.d(d,"FeDropShadowElement",(function(){return Lr})),g.d(d,"FeGaussianBlurElement",(function(){return Br})),g.d(d,"FeMorphologyElement",(function(){return Fr})),g.d(d,"FilterElement",(function(){return Vr})),g.d(d,"Font",(function(){return Qe})),g.d(d,"FontElement",(function(){return Sr})),g.d(d,"FontFaceElement",(function(){return br})),g.d(d,"GElement",(function(){return hr})),g.d(d,"GlyphElement",(function(){return wr})),g.d(d,"GradientElement",(function(){return pr})),g.d(d,"ImageElement",(function(){return Tr})),g.d(d,"LineElement",(function(){return or})),g.d(d,"LinearGradientElement",(function(){return vr})),g.d(d,"MarkerElement",(function(){return lr})),g.d(d,"MaskElement",(function(){return Rr})),g.d(d,"Matrix",(function(){return je})),g.d(d,"MissingGlyphElement",(function(){return Er})),g.d(d,"Mouse",(function(){return Me})),g.d(d,"PSEUDO_ZERO",(function(){return Te})),g.d(d,"Parser",(function(){return Le})),g.d(d,"PathElement",(function(){return er})),g.d(d,"PathParser",(function(){return tr})),g.d(d,"PatternElement",(function(){return cr})),g.d(d,"Point",(function(){return Oe})),g.d(d,"PolygonElement",(function(){return sr})),g.d(d,"PolylineElement",(function(){return ur})),g.d(d,"Property",(function(){return ke})),g.d(d,"QB1",(function(){return QB1})),g.d(d,"QB2",(function(){return QB2})),g.d(d,"QB3",(function(){return QB3})),g.d(d,"RadialGradientElement",(function(){return yr})),g.d(d,"RectElement",(function(){return nr})),g.d(d,"RenderedElement",(function(){return We})),g.d(d,"Rotate",(function(){return $e})),g.d(d,"SVGElement",(function(){return rr})),g.d(d,"SVGFontLoader",(function(){return Cr})),g.d(d,"Scale",(function(){return Be})),g.d(d,"Screen",(function(){return De})),g.d(d,"Skew",(function(){return ze})),g.d(d,"SkewX",(function(){return Ue})),g.d(d,"SkewY",(function(){return He})),g.d(d,"StopElement",(function(){return dr})),g.d(d,"StyleElement",(function(){return Or})),g.d(d,"SymbolElement",(function(){return kr})),g.d(d,"TRefElement",(function(){return _r})),g.d(d,"TSpanElement",(function(){return Ke})),g.d(d,"TextElement",(function(){return Ze})),g.d(d,"TextPathElement",(function(){return Ar})),g.d(d,"TitleElement",(function(){return jr})),g.d(d,"Transform",(function(){return Ge})),g.d(d,"Translate",(function(){return Fe})),g.d(d,"UnknownElement",(function(){return Ye})),g.d(d,"UseElement",(function(){return Mr})),g.d(d,"ViewPort",(function(){return Ce})),g.d(d,"compressSpaces",(function(){return compressSpaces})),g.d(d,"getSelectorSpecificity",(function(){return getSelectorSpecificity})),g.d(d,"normalizeAttributeName",(function(){return normalizeAttributeName})),g.d(d,"normalizeColor",(function(){return normalizeColor})),g.d(d,"parseExternalUrl",(function(){return parseExternalUrl})),g.d(d,"presets",(function(){return Xr})),g.d(d,"toNumbers",(function(){return toNumbers})),g.d(d,"trimLeft",(function(){return trimLeft})),g.d(d,"trimRight",(function(){return trimRight})),g.d(d,"vectorMagnitude",(function(){return vectorMagnitude})),g.d(d,"vectorsAngle",(function(){return vectorsAngle})),g.d(d,"vectorsRatio",(function(){return vectorsRatio}));var S=g(8553),b=g.n(S),E=g(8560),w=g.n(E),_=g(8565),P=g.n(_),A=g(8570),k=g.n(A),C=g(8616),M=g.n(C),N=g(8619),R=g.n(N),D=g(8623),V=g.n(D),L=g(8628),$=g.n(L),B=g(8634),j=g.n(B),z=g(8637),U=g.n(z),G=g(8642),X=g.n(G),Y=g(8645),Q=g.n(Y),q=g(8649),W=g.n(q),Z=g(8650),K=g.n(Z),J=g(8663),tt=g.n(J),et=g(8665),rt=g.n(et),nt=g(8666),it=g.n(nt),at=g(8667),ot=g.n(at),ut=g(8671),st=g.n(ut),ct=g(8677),lt=g.n(ct),ft=g(8681),ht=g.n(ft),pt=g(8686),vt=g.n(pt),yt=g(8688),dt=g.n(yt),gt=g(1008),mt=g.n(gt),xt=g(8693),St=g.n(xt),bt=g(4327),Et=g.n(bt),wt=g(8699),_t=g.n(wt),Pt=g(8703),At=g.n(Pt),Tt=g(8712),kt=g.n(Tt),Ct=g(8551),Ot=g.n(Ct),Mt=g(8721),Nt=g.n(Mt),Rt=g(8725),Dt=g.n(Rt),It=g(8730),Vt=g.n(It),Lt=g(8737),Ft=g.n(Lt),$t=g(8739),Bt=g.n($t),jt=g(8744),zt=g.n(jt),Ut=g(8749),Ht=g.n(Ut),Gt=g(8757),Xt=g.n(Gt),Yt=g(8763),Qt=g(8764),qt=g.n(Qt),Wt=g(8550),Zt=g.n(Wt),Kt=g(8768),Jt=g.n(Kt),te=g(8772),ee=g.n(te),re=g(8777),ne=g.n(re),ie=g(8780),ae=g.n(ie),oe=g(8501),ue=g.n(oe),se=g(8782),ce=g.n(se),le=g(8784),fe=g.n(le),he=g(8786),pe=g.n(he),ve=g(8793),ye=g.n(ve),de=g(8797),ge=g.n(de),me=g(8801);function compressSpaces(h){return h.replace(/(?!\u3000)\s+/gm," ")}function trimLeft(h){return h.replace(/^[\n \t]+/,"")}function trimRight(h){return h.replace(/[\n \t]+$/,"")}function toNumbers(h){var d=(h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return P()(d).call(d,w.a)}var xe=/^[A-Z-]+$/;function normalizeAttributeName(h){return xe.test(h)?h.toLowerCase():h}function parseExternalUrl(h){var d=h.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return d[2]||d[3]||d[4]}function normalizeColor(h){if(!b()(h).call(h,"rgb"))return h;var d=3;return h.replace(/\d+(\.\d+)?/g,(function(h,g){return d--&&g?String(Math.round(w()(h))):h}))}var Se=/(\[[^\]]+\])/g,be=/(#[^\s\+>~\.\[:]+)/g,Ee=/(\.[^\s\+>~\.\[:]+)/g,we=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,_e=/(:[\w-]+\([^\)]*\))/gi,Pe=/(:[^\s\+>~\.\[:]+)/g,Ae=/([^\s\+>~\.\[:]+)/g;function findSelectorMatch(h,d){var g=h.match(d);return g?[h.replace(d," "),g.length]:[h,0]}function getSelectorSpecificity(h){var d=[0,0,0],g=h.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),x=0,S=findSelectorMatch(g,Se),b=k()(S,2);g=b[0],x=b[1],d[1]+=x;var E=findSelectorMatch(g,be),w=k()(E,2);g=w[0],x=w[1],d[0]+=x;var _=findSelectorMatch(g,Ee),P=k()(_,2);g=P[0],x=P[1],d[1]+=x;var A=findSelectorMatch(g,we),C=k()(A,2);g=C[0],x=C[1],d[2]+=x;var M=findSelectorMatch(g,_e),N=k()(M,2);g=N[0],x=N[1],d[1]+=x;var R=findSelectorMatch(g,Pe),D=k()(R,2);g=D[0],x=D[1],d[1]+=x;var V=findSelectorMatch(g=g.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),Ae),L=k()(V,2);return g=L[0],x=L[1],d[2]+=x,d.join("")}var Te=1e-8;function vectorMagnitude(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function vectorsRatio(h,d){return(h[0]*d[0]+h[1]*d[1])/(vectorMagnitude(h)*vectorMagnitude(d))}function vectorsAngle(h,d){return(h[0]*d[1]<h[1]*d[0]?-1:1)*Math.acos(vectorsRatio(h,d))}function CB1(h){return h*h*h}function CB2(h){return 3*h*h*(1-h)}function CB3(h){return 3*h*(1-h)*(1-h)}function CB4(h){return(1-h)*(1-h)*(1-h)}function QB1(h){return h*h}function QB2(h){return 2*h*(1-h)}function QB3(h){return(1-h)*(1-h)}var ke=function(){function Property(h,d,g){rt()(this,Property),this.document=h,this.name=d,this.value=g,this.isNormalizedColor=!1}return it()(Property,[{key:"split",value:function split(){var h,d,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",x=this.document,S=this.name;return P()(h=St()(d=compressSpaces(this.getString())).call(d).split(g)).call(h,(function(h){return new Property(x,S,h)}))}},{key:"hasValue",value:function hasValue(h){var d=this.value;return null!==d&&""!==d&&(h||0!==d)&&void 0!==d}},{key:"isString",value:function isString(h){var d=this.value,g="string"==typeof d;return g&&h?h.test(d):g}},{key:"isUrlDefinition",value:function isUrlDefinition(){return this.isString(/^url\(/)}},{key:"isPixels",value:function isPixels(){if(!this.hasValue())return!1;var h=this.getString();switch(!0){case/px$/.test(h):case/^[0-9]+$/.test(h):return!0;default:return!1}}},{key:"setValue",value:function setValue(h){return this.value=h,this}},{key:"getValue",value:function getValue(h){return void 0===h||this.hasValue()?this.value:h}},{key:"getNumber",value:function getNumber(h){if(!this.hasValue())return void 0===h?0:w()(h);var d=this.value,g=w()(d);return this.isString(/%$/)&&(g/=100),g}},{key:"getString",value:function getString(h){return void 0===h||this.hasValue()?void 0===this.value?"":String(this.value):String(h)}},{key:"getColor",value:function getColor(h){var d=this.getString(h);return this.isNormalizedColor||(this.isNormalizedColor=!0,d=normalizeColor(d),this.value=d),d}},{key:"getDpi",value:function getDpi(){return 96}},{key:"getRem",value:function getRem(){return this.document.rootEmSize}},{key:"getEm",value:function getEm(){return this.document.emSize}},{key:"getUnits",value:function getUnits(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function getPixels(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var g="boolean"==typeof h?[void 0,h]:[h],x=k()(g,2),S=x[0],b=x[1],E=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(E.computeSize("x"),E.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(E.computeSize("x"),E.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*E.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*E.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&b:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*E.computeSize(S);default:var w=this.getNumber();return d&&w<1?w*E.computeSize(S):w}}},{key:"getMilliseconds",value:function getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function getDefinition(){var h=this.getString(),d=h.match(/#([^\)'"]+)/);return d&&(d=d[1]),d||(d=h),this.document.definitions[d]}},{key:"getFillStyleDefinition",value:function getFillStyleDefinition(h,d){var g=this.getDefinition();if(!g)return null;if("function"==typeof g.createGradient)return g.createGradient(this.document.ctx,h,d);if("function"==typeof g.createPattern){if(g.getHrefAttribute().hasValue()){var x=g.getAttribute("patternTransform");g=g.getHrefAttribute().getDefinition(),x.hasValue()&&g.getAttribute("patternTransform",!0).setValue(x.value)}return g.createPattern(this.document.ctx,h,d)}return null}},{key:"getTextBaseline",value:function getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function addOpacity(h){for(var d=this.getColor(),g=d.length,x=0,S=0;S<g&&(","===d[S]&&x++,3!==x);S++);if(h.hasValue()&&this.isString()&&3!==x){var b=new Et.a(d);b.ok&&(b.alpha=h.getNumber(),d=b.toRGBA())}return new Property(this.document,this.name,d)}}],[{key:"empty",value:function empty(h){return new Property(h,"EMPTY","")}}]),Property}();ke.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var Ce=function(){function ViewPort(){rt()(this,ViewPort),this.viewPorts=[]}return it()(ViewPort,[{key:"clear",value:function clear(){this.viewPorts=[]}},{key:"setCurrent",value:function setCurrent(h,d){this.viewPorts.push({width:h,height:d})}},{key:"removeCurrent",value:function removeCurrent(){this.viewPorts.pop()}},{key:"getCurrent",value:function getCurrent(){var h=this.viewPorts;return h[h.length-1]}},{key:"computeSize",value:function computeSize(h){return"number"==typeof h?h:"x"===h?this.width:"y"===h?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function get(){return this.getCurrent().width}},{key:"height",get:function get(){return this.getCurrent().height}}]),ViewPort}(),Oe=function(){function Point(h,d){rt()(this,Point),this.x=h,this.y=d}return it()(Point,[{key:"angleTo",value:function angleTo(h){return Math.atan2(h.y-this.y,h.x-this.x)}},{key:"applyTransform",value:function applyTransform(h){var d=this.x,g=this.y,x=d*h[0]+g*h[2]+h[4],S=d*h[1]+g*h[3]+h[5];this.x=x,this.y=S}}],[{key:"parse",value:function parse(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,g=toNumbers(h),x=k()(g,2),S=x[0],b=void 0===S?d:S,E=x[1],w=void 0===E?d:E;return new Point(b,w)}},{key:"parseScale",value:function parseScale(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,g=toNumbers(h),x=k()(g,2),S=x[0],b=void 0===S?d:S,E=x[1],w=void 0===E?b:E;return new Point(b,w)}},{key:"parsePath",value:function parsePath(h){for(var d=toNumbers(h),g=d.length,x=[],S=0;S<g;S+=2)x.push(new Point(d[S],d[S+1]));return x}}]),Point}(),Me=function(){function Mouse(h){var d,g;rt()(this,Mouse),this.screen=h,this.working=!1,this.events=[],this.eventElements=[],this.onClick=dt()(d=this.onClick).call(d,this),this.onMouseMove=dt()(g=this.onMouseMove).call(g,this)}return it()(Mouse,[{key:"isWorking",value:function isWorking(){return this.working}},{key:"start",value:function start(){if(!this.working){var h=this.screen,d=this.onClick,g=this.onMouseMove,x=h.ctx.canvas;x.onclick=d,x.onmousemove=g,this.working=!0}}},{key:"stop",value:function stop(){if(this.working){var h=this.screen.ctx.canvas;this.working=!1,h.onclick=null,h.onmousemove=null}}},{key:"hasEvents",value:function hasEvents(){return this.working&&this.events.length>0}},{key:"runEvents",value:function runEvents(){if(this.working){var h=this.screen,d=this.events,g=this.eventElements,x=h.ctx.canvas.style;x&&(x.cursor=""),$()(d).call(d,(function(h,d){for(var x=h.run,S=g[d];S;)x(S),S=S.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function checkPath(h,d){if(this.working&&d){var g=this.events,x=this.eventElements;$()(g).call(g,(function(g,S){var b=g.x,E=g.y;!x[S]&&d.isPointInPath&&d.isPointInPath(b,E)&&(x[S]=h)}))}}},{key:"checkBoundingBox",value:function checkBoundingBox(h,d){if(this.working&&d){var g=this.events,x=this.eventElements;$()(g).call(g,(function(g,S){var b=g.x,E=g.y;!x[S]&&d.isPointInBox(b,E)&&(x[S]=h)}))}}},{key:"mapXY",value:function mapXY(h,d){for(var g=this.screen,x=g.window,S=g.ctx,b=new Oe(h,d),E=S.canvas;E;)b.x-=E.offsetLeft,b.y-=E.offsetTop,E=E.offsetParent;return x.scrollX&&(b.x+=x.scrollX),x.scrollY&&(b.y+=x.scrollY),b}},{key:"onClick",value:function onClick(h){var d=this.mapXY((h||event).clientX,(h||event).clientY),g=d.x,x=d.y;this.events.push({type:"onclick",x:g,y:x,run:function run(h){h.onClick&&h.onClick()}})}},{key:"onMouseMove",value:function onMouseMove(h){var d=this.mapXY((h||event).clientX,(h||event).clientY),g=d.x,x=d.y;this.events.push({type:"onmousemove",x:g,y:x,run:function run(h){h.onMouseMove&&h.onMouseMove()}})}}]),Mouse}(),Ne="undefined"!=typeof window?window:null,Re=void 0!==h?dt()(h).call(h,void 0):null,De=function(){function Screen(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=d.fetch,x=void 0===g?Re:g,S=d.window,b=void 0===S?Ne:S;rt()(this,Screen),this.ctx=h,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Ce,this.mouse=new Me(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=b,this.fetch=x}return it()(Screen,[{key:"wait",value:function wait(h){this.waits.push(h)}},{key:"ready",value:function ready(){return this.readyPromise?this.readyPromise:vt.a.resolve()}},{key:"isReady",value:function isReady(){var h;if(this.isReadyLock)return!0;var d=ht()(h=this.waits).call(h,(function(h){return h()}));return d&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=d,d}},{key:"setDefaults",value:function setDefaults(h){h.strokeStyle="rgba(0,0,0,0)",h.lineCap="butt",h.lineJoin="miter",h.miterLimit=4}},{key:"setViewBox",value:function setViewBox(h){var d=h.document,g=h.ctx,x=h.aspectRatio,S=h.width,b=h.desiredWidth,E=h.height,w=h.desiredHeight,_=h.minX,P=void 0===_?0:_,A=h.minY,C=void 0===A?0:A,M=h.refX,N=h.refY,R=h.clip,D=void 0!==R&&R,V=h.clipX,L=void 0===V?0:V,$=h.clipY,B=void 0===$?0:$,j=compressSpaces(x).replace(/^defer\s/,"").split(" "),z=k()(j,2),U=z[0]||"xMidYMid",G=z[1]||"meet",X=S/b,Y=E/w,Q=Math.min(X,Y),q=Math.max(X,Y),W=b,Z=w;"meet"===G&&(W*=Q,Z*=Q),"slice"===G&&(W*=q,Z*=q);var K=new ke(d,"refX",M),J=new ke(d,"refY",N),tt=K.hasValue()&&J.hasValue();if(tt&&g.translate(-Q*K.getPixels("x"),-Q*J.getPixels("y")),D){var et=Q*L,rt=Q*B;g.beginPath(),g.moveTo(et,rt),g.lineTo(S,rt),g.lineTo(S,E),g.lineTo(et,E),g.closePath(),g.clip()}if(!tt){var nt="meet"===G&&Q===Y,it="slice"===G&&q===Y,at="meet"===G&&Q===X,ot="slice"===G&&q===X;/^xMid/.test(U)&&(nt||it)&&g.translate(S/2-W/2,0),/YMid$/.test(U)&&(at||ot)&&g.translate(0,E/2-Z/2),/^xMax/.test(U)&&(nt||it)&&g.translate(S-W,0),/YMax$/.test(U)&&(at||ot)&&g.translate(0,E-Z)}switch(!0){case"none"===U:g.scale(X,Y);break;case"meet"===G:g.scale(Q,Q);break;case"slice"===G:g.scale(q,q)}g.translate(-P,-C)}},{key:"start",value:function start(h){var d=this,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},x=g.enableRedraw,S=void 0!==x&&x,b=g.ignoreMouse,E=void 0!==b&&b,w=g.ignoreAnimation,_=void 0!==w&&w,P=g.ignoreDimensions,A=void 0!==P&&P,k=g.ignoreClear,C=void 0!==k&&k,M=g.forceRedraw,N=g.scaleWidth,R=g.scaleHeight,D=g.offsetX,V=g.offsetY,L=this.FRAMERATE,$=this.mouse,B=1e3/L;if(this.frameDuration=B,this.readyPromise=new vt.a((function(h){d.resolveReady=h})),this.isReady()&&this.render(h,A,C,N,R,D,V),S){var j=lt()(),z=j,U=0,G=function tick(){j=lt()(),(U=j-z)>=B&&(z=j-U%B,d.shouldUpdate(_,M)&&(d.render(h,A,C,N,R,D,V),$.runEvents())),d.intervalId=mt()(tick)};E||$.start(),this.intervalId=mt()(G)}}},{key:"stop",value:function stop(){this.intervalId&&(mt.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function shouldUpdate(h,d){if(!h){var g,x=this.frameDuration,shouldUpdate=st()(g=this.animations).call(g,(function(h,d){return d.update(x)||h}),!1);if(shouldUpdate)return!0}return!("function"!=typeof d||!d())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function render(h,d,g,x,S,b,E){var w=this.CLIENT_WIDTH,_=this.CLIENT_HEIGHT,P=this.viewPort,A=this.ctx,k=this.isFirstRender,C=A.canvas;P.clear(),C.width&&C.height?P.setCurrent(C.width,C.height):P.setCurrent(w,_);var M=h.getStyle("width"),N=h.getStyle("height");!d&&(k||"number"!=typeof x&&"number"!=typeof S)&&(M.hasValue()&&(C.width=M.getPixels("x"),C.style&&(C.style.width="".concat(C.width,"px"))),N.hasValue()&&(C.height=N.getPixels("y"),C.style&&(C.style.height="".concat(C.height,"px"))));var R=C.clientWidth||C.width,D=C.clientHeight||C.height;if(d&&M.hasValue()&&N.hasValue()&&(R=M.getPixels("x"),D=N.getPixels("y")),P.setCurrent(R,D),"number"==typeof b&&h.getAttribute("x",!0).setValue(b),"number"==typeof E&&h.getAttribute("y",!0).setValue(E),"number"==typeof x||"number"==typeof S){var V,L,$=toNumbers(h.getAttribute("viewBox").getString()),B=0,j=0;if("number"==typeof x){var z=h.getStyle("width");z.hasValue()?B=z.getPixels("x")/x:isNaN($[2])||(B=$[2]/x)}if("number"==typeof S){var U=h.getStyle("height");U.hasValue()?j=U.getPixels("y")/S:isNaN($[3])||(j=$[3]/S)}B||(B=j),j||(j=B),h.getAttribute("width",!0).setValue(x),h.getAttribute("height",!0).setValue(S);var G=h.getStyle("transform",!0,!0);G.setValue(ot()(V=ot()(L="".concat(G.getString()," scale(")).call(L,1/B,", ")).call(V,1/j,")"))}g||A.clearRect(0,0,R,D),h.render(A),k&&(this.isFirstRender=!1)}}]),Screen}();De.defaultWindow=Ne,De.defaultFetch=Re;var Ie=De.defaultFetch,Ve="undefined"!=typeof DOMParser?DOMParser:null,Le=function(){function Parser(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=h.fetch,g=void 0===d?Ie:d,x=h.DOMParser,S=void 0===x?Ve:x;rt()(this,Parser),this.fetch=g,this.DOMParser=S}var h,d;return it()(Parser,[{key:"parse",value:(d=K()(W.a.mark((function _callee(h){return W.a.wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:if(!/^</.test(h)){d.next=2;break}return d.abrupt("return",this.parseFromString(h));case 2:return d.abrupt("return",this.load(h));case 3:case"end":return d.stop()}}),_callee,this)}))),function parse(h){return d.apply(this,arguments)})},{key:"parseFromString",value:function parseFromString(h){var d=new this.DOMParser;try{return this.checkDocument(d.parseFromString(h,"image/svg+xml"))}catch(g){return this.checkDocument(d.parseFromString(h,"text/xml"))}}},{key:"checkDocument",value:function checkDocument(h){var d=h.getElementsByTagName("parsererror")[0];if(d)throw new Error(d.textContent);return h}},{key:"load",value:(h=K()(W.a.mark((function _callee2(h){var d,g;return W.a.wrap((function _callee2$(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,this.fetch(h);case 2:return d=x.sent,x.next=5,d.text();case 5:return g=x.sent,x.abrupt("return",this.parseFromString(g));case 7:case"end":return x.stop()}}),_callee2,this)}))),function load(d){return h.apply(this,arguments)})}]),Parser}(),Fe=function(){function Translate(h,d){rt()(this,Translate),this.type="translate",this.point=null,this.point=Oe.parse(d)}return it()(Translate,[{key:"apply",value:function apply(h){var d=this.point,g=d.x,x=d.y;h.translate(g||0,x||0)}},{key:"unapply",value:function unapply(h){var d=this.point,g=d.x,x=d.y;h.translate(-1*g||0,-1*x||0)}},{key:"applyToPoint",value:function applyToPoint(h){var d=this.point,g=d.x,x=d.y;h.applyTransform([1,0,0,1,g||0,x||0])}}]),Translate}(),$e=function(){function Rotate(h,d,g){rt()(this,Rotate),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var x=toNumbers(d);this.angle=new ke(h,"angle",x[0]),this.originX=g[0],this.originY=g[1],this.cx=x[1]||0,this.cy=x[2]||0}return it()(Rotate,[{key:"apply",value:function apply(h){var d=this.cx,g=this.cy,x=this.originX,S=this.originY,b=this.angle,E=d+x.getPixels("x"),w=g+S.getPixels("y");h.translate(E,w),h.rotate(b.getRadians()),h.translate(-E,-w)}},{key:"unapply",value:function unapply(h){var d=this.cx,g=this.cy,x=this.angle;h.translate(d,g),h.rotate(-1*x.getRadians()),h.translate(-d,-g)}},{key:"applyToPoint",value:function applyToPoint(h){var d=this.cx,g=this.cy,x=this.angle.getRadians();h.applyTransform([1,0,0,1,d||0,g||0]),h.applyTransform([Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0]),h.applyTransform([1,0,0,1,-d||0,-g||0])}}]),Rotate}(),Be=function(){function Scale(h,d){rt()(this,Scale),this.type="scale",this.scale=null;var g=Oe.parseScale(d);0!==g.x&&0!==g.y||(g.x=Te,g.y=Te),this.scale=g}return it()(Scale,[{key:"apply",value:function apply(h){var d=this.scale,g=d.x,x=d.y;h.scale(g,x||g)}},{key:"unapply",value:function unapply(h){var d=this.scale,g=d.x,x=d.y;h.scale(1/g,1/x||g)}},{key:"applyToPoint",value:function applyToPoint(h){var d=this.scale,g=d.x,x=d.y;h.applyTransform([g||0,0,0,x||0,0,0])}}]),Scale}(),je=function(){function Matrix(h,d){rt()(this,Matrix),this.type="matrix",this.matrix=[],this.matrix=toNumbers(d)}return it()(Matrix,[{key:"apply",value:function apply(h){var d=this.matrix;h.transform(d[0],d[1],d[2],d[3],d[4],d[5])}},{key:"unapply",value:function unapply(h){var d=this.matrix,g=d[0],x=d[2],S=d[4],b=d[1],E=d[3],w=d[5],_=1/(g*(1*E-0*w)-x*(1*b-0*w)+S*(0*b-0*E));h.transform(_*(1*E-0*w),_*(0*w-1*b),_*(0*S-1*x),_*(1*g-0*S),_*(x*w-S*E),_*(S*b-g*w))}},{key:"applyToPoint",value:function applyToPoint(h){h.applyTransform(this.matrix)}}]),Matrix}();function _createSuper(h){var d=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var ze=function(h){At()(Skew,h);var d=_createSuper(Skew);function Skew(h,g){var x;return rt()(this,Skew),(x=d.call(this,h,g)).type="skew",x.angle=null,x.angle=new ke(h,"angle",g),x}return Skew}(je);function _createSuper$1(h){var d=function _isNativeReflectConstruct$1(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Ue=function(h){At()(SkewX,h);var d=_createSuper$1(SkewX);function SkewX(h,g){var x;return rt()(this,SkewX),(x=d.call(this,h,g)).type="skewX",x.matrix=[1,0,Math.tan(x.angle.getRadians()),1,0,0],x}return SkewX}(ze);function _createSuper$2(h){var d=function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var He=function(h){At()(SkewY,h);var d=_createSuper$2(SkewY);function SkewY(h,g){var x;return rt()(this,SkewY),(x=d.call(this,h,g)).type="skewY",x.matrix=[1,Math.tan(x.angle.getRadians()),0,1,0,0],x}return SkewY}(ze);var Ge=function(){function Transform(h,d,g){var x=this;rt()(this,Transform),this.document=h,this.transforms=[];var S=function parseTransforms(h){var d;return St()(d=compressSpaces(h)).call(d).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(d);$()(S).call(S,(function(h){if("none"!==h){var d=function parseTransform(h){var d=h.split("("),g=k()(d,2),x=g[0],S=g[1];return[St()(x).call(x),St()(S).call(S).replace(")","")]}(h),S=k()(d,2),b=S[0],E=S[1],w=Transform.transformTypes[b];void 0!==w&&x.transforms.push(new w(x.document,E,g))}}))}return it()(Transform,[{key:"apply",value:function apply(h){for(var d=this.transforms,g=d.length,x=0;x<g;x++)d[x].apply(h)}},{key:"unapply",value:function unapply(h){for(var d=this.transforms,g=d.length-1;g>=0;g--)d[g].unapply(h)}},{key:"applyToPoint",value:function applyToPoint(h){for(var d=this.transforms,g=d.length,x=0;x<g;x++)d[x].applyToPoint(h)}}],[{key:"fromElement",value:function fromElement(h,d){var g=d.getStyle("transform",!1,!0),x=d.getStyle("transform-origin",!1,!0).split(),S=k()(x,2),b=S[0],E=S[1],w=[b,void 0===E?b:E];return g.hasValue()?new Transform(h,g.getString(),w):null}}]),Transform}();Ge.transformTypes={translate:Fe,rotate:$e,scale:Be,matrix:je,skewX:Ue,skewY:He};var Xe=function(){function Element(h,d){var g,x,S=this,b=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(rt()(this,Element),this.document=h,this.node=d,this.captureTextNodes=b,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],d&&1===d.nodeType){if($()(g=Ft()(d.attributes)).call(g,(function(d){var g=normalizeAttributeName(d.nodeName);S.attributes[g]=new ke(h,g,d.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var E,w=P()(E=this.getAttribute("style").getString().split(";")).call(E,(function(h){return St()(h).call(h)}));$()(w).call(w,(function(d){var g;if(d){var x=P()(g=d.split(":")).call(g,(function(h){return St()(h).call(h)})),b=k()(x,2),E=b[0],w=b[1];S.styles[E]=new ke(h,E,w)}}))}var _=h.definitions,A=this.getAttribute("id");A.hasValue()&&(_[A.getValue()]||(_[A.getValue()]=this)),$()(x=Ft()(d.childNodes)).call(x,(function(d){if(1===d.nodeType)S.addChild(d);else if(b&&(3===d.nodeType||4===d.nodeType)){var g=h.createTextNode(d);g.getText().length>0&&S.addChild(g)}}))}}return it()(Element,[{key:"getAttribute",value:function getAttribute(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=this.attributes[h];if(!g&&d){var x=new ke(this.document,h,"");return this.attributes[h]=x,x}return g||ke.empty(this.document)}},{key:"getHrefAttribute",value:function getHrefAttribute(){for(var h in this.attributes)if("href"===h||/:href$/.test(h))return this.attributes[h];return ke.empty(this.document)}},{key:"getStyle",value:function getStyle(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],x=this.styles[h];if(x)return x;var S=this.getAttribute(h);if(S&&S.hasValue())return this.styles[h]=S,S;if(!g){var b=this.parent;if(b){var E=b.getStyle(h);if(E&&E.hasValue())return E}}if(d){var w=new ke(this.document,h,"");return this.styles[h]=w,w}return x||ke.empty(this.document)}},{key:"render",value:function render(h){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(h.save(),this.getStyle("mask").hasValue()){var d=this.getStyle("mask").getDefinition();d&&(this.applyEffects(h),d.apply(h,this))}else if("none"!==this.getStyle("filter").getValue("none")){var g=this.getStyle("filter").getDefinition();g&&(this.applyEffects(h),g.apply(h,this))}else this.setContext(h),this.renderChildren(h),this.clearContext(h);h.restore()}}},{key:"setContext",value:function setContext(h){}},{key:"applyEffects",value:function applyEffects(h){var d=Ge.fromElement(this.document,this);d&&d.apply(h);var g=this.getStyle("clip-path",!1,!0);if(g.hasValue()){var x=g.getDefinition();x&&x.apply(h)}}},{key:"clearContext",value:function clearContext(h){}},{key:"renderChildren",value:function renderChildren(h){var d;$()(d=this.children).call(d,(function(d){d.render(h)}))}},{key:"addChild",value:function addChild(h){var d,g=h instanceof Element?h:this.document.createElement(h);g.parent=this,Vt()(d=Element.ignoreChildTypes).call(d,g.type)||this.children.push(g)}},{key:"matchesSelector",value:function matchesSelector(h){var d,g=this.node;if("function"==typeof g.matches)return g.matches(h);var x=g.getAttribute("class");return!(!x||""===x)&&Dt()(d=x.split(" ")).call(d,(function(d){if(".".concat(d)===h)return!0}))}},{key:"addStylesFromStyleDefinition",value:function addStylesFromStyleDefinition(){var h=this.document,d=h.styles,g=h.stylesSpecificity;for(var x in d)if("@"!==x[0]&&this.matchesSelector(x)){var S=d[x],b=g[x];if(S)for(var E in S){var w=this.stylesSpecificity[E];void 0===w&&(w="000"),b>=w&&(this.styles[E]=S[E],this.stylesSpecificity[E]=b)}}}},{key:"removeStyles",value:function removeStyles(h,d){return st()(d).call(d,(function(d,g){var x,S=h.getStyle(g);if(!S.hasValue())return d;var b=S.getString();return S.setValue(""),ot()(x=[]).call(x,Nt()(d),[[g,b]])}),[])}},{key:"restoreStyles",value:function restoreStyles(h,d){$()(d).call(d,(function(d){var g=k()(d,2),x=g[0],S=g[1];h.getStyle(x,!0).setValue(S)}))}}]),Element}();function _createSuper$3(h){var d=function _isNativeReflectConstruct$3(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}Xe.ignoreChildTypes=["title"];var Ye=function(h){At()(UnknownElement,h);var d=_createSuper$3(UnknownElement);function UnknownElement(h,g,x){return rt()(this,UnknownElement),d.call(this,h,g,x)}return UnknownElement}(Xe);function wrapFontFamily(h){var d=St()(h).call(h);return/^('|")/.test(d)?d:'"'.concat(d,'"')}function prepareFontStyle(h){if(!h)return"";var d=St()(h).call(h).toLowerCase();switch(d){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return d;default:return/^oblique\s+(-|)\d+deg$/.test(d)?d:""}}function prepareFontWeight(h){if(!h)return"";var d=St()(h).call(h).toLowerCase();switch(d){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return d;default:return/^[\d.]+$/.test(d)?d:""}}var Qe=function(){function Font(h,d,g,x,S,b){rt()(this,Font);var E=b?"string"==typeof b?Font.parse(b):b:{};this.fontFamily=S||E.fontFamily,this.fontSize=x||E.fontSize,this.fontStyle=h||E.fontStyle,this.fontWeight=g||E.fontWeight,this.fontVariant=d||E.fontVariant}return it()(Font,[{key:"toString",value:function toString(){var h,d,g;return St()(h=[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(d=this.fontFamily,void 0===x?d:P()(g=St()(d).call(d).split(",")).call(g,wrapFontFamily).join(","))].join(" ")).call(h)}}],[{key:"parse",value:function parse(){var h,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",g=arguments.length>1?arguments[1]:void 0,x="",S="",b="",E="",w="",_=St()(h=compressSpaces(d)).call(h).split(" "),P={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return $()(_).call(_,(function(h){var d,g,_;switch(!0){case!P.fontStyle&&Vt()(d=Font.styles).call(d,h):"inherit"!==h&&(x=h),P.fontStyle=!0;break;case!P.fontVariant&&Vt()(g=Font.variants).call(g,h):"inherit"!==h&&(S=h),P.fontStyle=!0,P.fontVariant=!0;break;case!P.fontWeight&&Vt()(_=Font.weights).call(_,h):"inherit"!==h&&(b=h),P.fontStyle=!0,P.fontVariant=!0,P.fontWeight=!0;break;case!P.fontSize:if("inherit"!==h){var A=h.split("/"),C=k()(A,1);E=C[0]}P.fontStyle=!0,P.fontVariant=!0,P.fontWeight=!0,P.fontSize=!0;break;default:"inherit"!==h&&(w+=h)}})),new Font(x,S,b,E,w,g)}}]),Font}();Qe.styles="normal|italic|oblique|inherit",Qe.variants="normal|small-caps|inherit",Qe.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var qe=function(){function BoundingBox(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,x=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;rt()(this,BoundingBox),this.x1=h,this.y1=d,this.x2=g,this.y2=x,this.addPoint(h,d),this.addPoint(g,x)}return it()(BoundingBox,[{key:"addPoint",value:function addPoint(h,d){void 0!==h&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=h,this.x2=h),h<this.x1&&(this.x1=h),h>this.x2&&(this.x2=h)),void 0!==d&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=d,this.y2=d),d<this.y1&&(this.y1=d),d>this.y2&&(this.y2=d))}},{key:"addX",value:function addX(h){this.addPoint(h,null)}},{key:"addY",value:function addY(h){this.addPoint(null,h)}},{key:"addBoundingBox",value:function addBoundingBox(h){if(h){var d=h.x1,g=h.y1,x=h.x2,S=h.y2;this.addPoint(d,g),this.addPoint(x,S)}}},{key:"sumCubic",value:function sumCubic(h,d,g,x,S){return Math.pow(1-h,3)*d+3*Math.pow(1-h,2)*h*g+3*(1-h)*Math.pow(h,2)*x+Math.pow(h,3)*S}},{key:"bezierCurveAdd",value:function bezierCurveAdd(h,d,g,x,S){var b=6*d-12*g+6*x,E=-3*d+9*g-9*x+3*S,w=3*g-3*d;if(0!==E){var _=Math.pow(b,2)-4*w*E;if(!(_<0)){var P=(-b+Math.sqrt(_))/(2*E);0<P&&P<1&&(h?this.addX(this.sumCubic(P,d,g,x,S)):this.addY(this.sumCubic(P,d,g,x,S)));var A=(-b-Math.sqrt(_))/(2*E);0<A&&A<1&&(h?this.addX(this.sumCubic(A,d,g,x,S)):this.addY(this.sumCubic(A,d,g,x,S)))}}else{if(0===b)return;var k=-w/b;0<k&&k<1&&(h?this.addX(this.sumCubic(k,d,g,x,S)):this.addY(this.sumCubic(k,d,g,x,S)))}}},{key:"addBezierCurve",value:function addBezierCurve(h,d,g,x,S,b,E,w){this.addPoint(h,d),this.addPoint(E,w),this.bezierCurveAdd(!0,h,g,S,E),this.bezierCurveAdd(!1,d,x,b,w)}},{key:"addQuadraticCurve",value:function addQuadraticCurve(h,d,g,x,S,b){var E=h+2/3*(g-h),w=d+2/3*(x-d),_=E+1/3*(S-h),P=w+1/3*(b-d);this.addBezierCurve(h,d,E,_,w,P,S,b)}},{key:"isPointInBox",value:function isPointInBox(h,d){var g=this.x1,x=this.y1,S=this.x2,b=this.y2;return g<=h&&h<=S&&x<=d&&d<=b}},{key:"x",get:function get(){return this.x1}},{key:"y",get:function get(){return this.y1}},{key:"width",get:function get(){return this.x2-this.x1}},{key:"height",get:function get(){return this.y2-this.y1}}]),BoundingBox}();function _createSuper$4(h){var d=function _isNativeReflectConstruct$4(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var We=function(h){At()(RenderedElement,h);var d=_createSuper$4(RenderedElement);function RenderedElement(){var h;return rt()(this,RenderedElement),(h=d.apply(this,arguments)).modifiedEmSizeStack=!1,h}return it()(RenderedElement,[{key:"calculateOpacity",value:function calculateOpacity(){for(var h=1,d=this;d;){var g=d.getStyle("opacity",!1,!0);g.hasValue(!0)&&(h*=g.getNumber()),d=d.parent}return h}},{key:"setContext",value:function setContext(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!d){var g=this.getStyle("fill"),x=this.getStyle("fill-opacity"),S=this.getStyle("stroke"),b=this.getStyle("stroke-opacity");if(g.isUrlDefinition()){var E=g.getFillStyleDefinition(this,x);E&&(h.fillStyle=E)}else if(g.hasValue()){"currentColor"===g.getString()&&g.setValue(this.getStyle("color").getColor());var w=g.getColor();"inherit"!==w&&(h.fillStyle="none"===w?"rgba(0,0,0,0)":w)}if(x.hasValue()){var _=new ke(this.document,"fill",h.fillStyle).addOpacity(x).getColor();h.fillStyle=_}if(S.isUrlDefinition()){var P=S.getFillStyleDefinition(this,b);P&&(h.strokeStyle=P)}else if(S.hasValue()){"currentColor"===S.getString()&&S.setValue(this.getStyle("color").getColor());var A=S.getString();"inherit"!==A&&(h.strokeStyle="none"===A?"rgba(0,0,0,0)":A)}if(b.hasValue()){var k=new ke(this.document,"stroke",h.strokeStyle).addOpacity(b).getString();h.strokeStyle=k}var C=this.getStyle("stroke-width");if(C.hasValue()){var M=C.getPixels();h.lineWidth=M||Te}var N=this.getStyle("stroke-linecap"),R=this.getStyle("stroke-linejoin"),D=this.getStyle("stroke-miterlimit"),V=this.getStyle("paint-order"),L=this.getStyle("stroke-dasharray"),$=this.getStyle("stroke-dashoffset");if(N.hasValue()&&(h.lineCap=N.getString()),R.hasValue()&&(h.lineJoin=R.getString()),D.hasValue()&&(h.miterLimit=D.getNumber()),V.hasValue()&&(h.paintOrder=V.getValue()),L.hasValue()&&"none"!==L.getString()){var B=toNumbers(L.getString());void 0!==h.setLineDash?h.setLineDash(B):void 0!==h.webkitLineDash?h.webkitLineDash=B:void 0===h.mozDash||1===B.length&&0===B[0]||(h.mozDash=B);var j=$.getPixels();void 0!==h.lineDashOffset?h.lineDashOffset=j:void 0!==h.webkitLineDashOffset?h.webkitLineDashOffset=j:void 0!==h.mozDashOffset&&(h.mozDashOffset=j)}}if(this.modifiedEmSizeStack=!1,void 0!==h.font){var z=this.getStyle("font"),U=this.getStyle("font-style"),G=this.getStyle("font-variant"),X=this.getStyle("font-weight"),Y=this.getStyle("font-size"),Q=this.getStyle("font-family"),q=new Qe(U.getString(),G.getString(),X.getString(),Y.hasValue()?"".concat(Y.getPixels(!0),"px"):"",Q.getString(),Qe.parse(z.getString(),h.font));U.setValue(q.fontStyle),G.setValue(q.fontVariant),X.setValue(q.fontWeight),Y.setValue(q.fontSize),Q.setValue(q.fontFamily),h.font=q.toString(),Y.isPixels()&&(this.document.emSize=Y.getPixels(),this.modifiedEmSizeStack=!0)}d||(this.applyEffects(h),h.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function clearContext(h){Ht()(Ot()(RenderedElement.prototype),"clearContext",this).call(this,h),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),RenderedElement}(Xe);function _createSuper$5(h){var d=function _isNativeReflectConstruct$5(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Ze=function(h){At()(TextElement,h);var d=_createSuper$5(TextElement);function TextElement(h,g,x){var S;return rt()(this,TextElement),(S=d.call(this,h,g,(this instanceof TextElement?this.constructor:void 0)===TextElement||x)).type="text",S.x=0,S.y=0,S.measureCache=-1,S}return it()(TextElement,[{key:"setContext",value:function setContext(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ht()(Ot()(TextElement.prototype),"setContext",this).call(this,h,d);var g=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();g&&(h.textBaseline=g)}},{key:"initializeCoordinates",value:function initializeCoordinates(h){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var d=this.getAttribute("dx"),g=this.getAttribute("dy");d.hasValue()&&(this.x+=d.getPixels("x")),g.hasValue()&&(this.y+=g.getPixels("y")),this.x+=this.getAnchorDelta(h,this,0)}},{key:"getBoundingBox",value:function getBoundingBox(h){var d,g=this;if("text"!==this.type)return this.getTElementBoundingBox(h);this.initializeCoordinates(h);var x=null;return $()(d=this.children).call(d,(function(d,S){var b=g.getChildBoundingBox(h,g,g,S);x?x.addBoundingBox(b):x=b})),x}},{key:"getFontSize",value:function getFontSize(){var h=this.document,d=this.parent,g=Qe.parse(h.ctx.font).fontSize;return d.getStyle("font-size").getNumber(g)}},{key:"getTElementBoundingBox",value:function getTElementBoundingBox(h){var d=this.getFontSize();return new qe(this.x,this.y-d,this.x+this.measureText(h),this.y)}},{key:"getGlyph",value:function getGlyph(h,d,g){var x=d[g],S=null;if(h.isArabic){var b=d.length,E=d[g-1],w=d[g+1],_="isolated";(0===g||" "===E)&&g<b-2&&" "!==w&&(_="terminal"),g>0&&" "!==E&&g<b-2&&" "!==w&&(_="medial"),g>0&&" "!==E&&(g===b-1||" "===w)&&(_="initial"),void 0!==h.glyphs[x]&&((S=h.glyphs[x][_])||"glyph"!==h.glyphs[x].type||(S=h.glyphs[x]))}else S=h.glyphs[x];return S||(S=h.missingGlyph),S}},{key:"getText",value:function getText(){return""}},{key:"getTextFromNode",value:function getTextFromNode(h){var d=h||this.node,g=Ft()(d.parentNode.childNodes),x=zt()(g).call(g,d),S=g.length-1,b=compressSpaces(d.value||d.text||d.textContent||"");return 0===x&&(b=trimLeft(b)),x===S&&(b=trimRight(b)),b}},{key:"renderChildren",value:function renderChildren(h){var d,g=this;if("text"===this.type){this.initializeCoordinates(h),$()(d=this.children).call(d,(function(d,x){g.renderChild(h,g,g,x)}));var x=this.document.screen.mouse;x.isWorking()&&x.checkBoundingBox(this,this.getBoundingBox(h))}else this.renderTElementChildren(h)}},{key:"renderTElementChildren",value:function renderTElementChildren(h){var d=this.document,g=this.parent,x=this.getText(),S=g.getStyle("font-family").getDefinition();if(S)for(var b,E=S.fontFace.unitsPerEm,w=Qe.parse(d.ctx.font),_=g.getStyle("font-size").getNumber(w.fontSize),P=g.getStyle("font-style").getString(w.fontStyle),A=_/E,k=S.isRTL?Bt()(b=x.split("")).call(b).join(""):x,C=toNumbers(g.getAttribute("dx").getString()),M=k.length,N=0;N<M;N++){var R=this.getGlyph(S,k,N);h.translate(this.x,this.y),h.scale(A,-A);var D=h.lineWidth;h.lineWidth=h.lineWidth*E/_,"italic"===P&&h.transform(1,0,.4,1,0,0),R.render(h),"italic"===P&&h.transform(1,0,-.4,1,0,0),h.lineWidth=D,h.scale(1/A,-1/A),h.translate(-this.x,-this.y),this.x+=_*(R.horizAdvX||S.horizAdvX)/E,void 0===C[N]||isNaN(C[N])||(this.x+=C[N])}else{var V=this.x,L=this.y;"stroke"===h.paintOrder?(h.strokeStyle&&h.strokeText(x,V,L),h.fillStyle&&h.fillText(x,V,L)):(h.fillStyle&&h.fillText(x,V,L),h.strokeStyle&&h.strokeText(x,V,L))}}},{key:"getAnchorDelta",value:function getAnchorDelta(h,d,g){var x=this.getStyle("text-anchor").getString("start");if("start"!==x){for(var S=d.children,b=S.length,E=null,w=0,_=g;_<b&&(E=S[_],!(_>g&&E.getAttribute("x").hasValue()||E.getAttribute("text-anchor").hasValue()));_++)w+=E.measureTextRecursive(h);return-1*("end"===x?w:w/2)}return 0}},{key:"adjustChildCoordinates",value:function adjustChildCoordinates(h,d,g,x){var S=g.children[x];if("function"!=typeof S.measureText)return S;h.save(),S.setContext(h,!0);var b=S.getAttribute("x"),E=S.getAttribute("y"),w=S.getAttribute("dx"),_=S.getAttribute("dy"),P=S.getAttribute("text-anchor").getString("start");if(0===x&&"textNode"!==S.type&&(b.hasValue()||b.setValue(d.getAttribute("x").getValue("0")),E.hasValue()||E.setValue(d.getAttribute("y").getValue("0")),w.hasValue()||w.setValue(d.getAttribute("dx").getValue("0")),_.hasValue()||_.setValue(d.getAttribute("dy").getValue("0"))),b.hasValue()){if(S.x=b.getPixels("x")+d.getAnchorDelta(h,g,x),"start"!==P){var A=S.measureTextRecursive(h);S.x+=-1*("end"===P?A:A/2)}w.hasValue()&&(S.x+=w.getPixels("x"))}else{if("start"!==P){var k=S.measureTextRecursive(h);d.x+=-1*("end"===P?k:k/2)}w.hasValue()&&(d.x+=w.getPixels("x")),S.x=d.x}return d.x=S.x+S.measureText(h),E.hasValue()?(S.y=E.getPixels("y"),_.hasValue()&&(S.y+=_.getPixels("y"))):(_.hasValue()&&(d.y+=_.getPixels("y")),S.y=d.y),d.y=S.y,S.clearContext(h),h.restore(),S}},{key:"getChildBoundingBox",value:function getChildBoundingBox(h,d,g,x){var S,b=this.adjustChildCoordinates(h,d,g,x);if("function"!=typeof b.getBoundingBox)return null;var E=b.getBoundingBox(h);return E?($()(S=b.children).call(S,(function(g,x){var S=d.getChildBoundingBox(h,d,b,x);E.addBoundingBox(S)})),E):null}},{key:"renderChild",value:function renderChild(h,d,g,x){var S,b=this.adjustChildCoordinates(h,d,g,x);b.render(h),$()(S=b.children).call(S,(function(g,x){d.renderChild(h,d,b,x)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(h){var d;return st()(d=this.children).call(d,(function(d,g){return d+g.measureTextRecursive(h)}),this.measureText(h))}},{key:"measureText",value:function measureText(h){var d=this.measureCache;if(~d)return d;var g=this.getText(),x=this.measureTargetText(h,g);return this.measureCache=x,x}},{key:"measureTargetText",value:function measureTargetText(h,d){if(!d.length)return 0;var g=this.parent,x=g.getStyle("font-family").getDefinition();if(x){for(var S,b=this.getFontSize(),E=x.isRTL?Bt()(S=d.split("")).call(S).join(""):d,w=toNumbers(g.getAttribute("dx").getString()),_=E.length,P=0,A=0;A<_;A++){P+=(this.getGlyph(x,E,A).horizAdvX||x.horizAdvX)*b/x.fontFace.unitsPerEm,void 0===w[A]||isNaN(w[A])||(P+=w[A])}return P}if(!h.measureText)return 10*d.length;h.save(),this.setContext(h,!0);var k=h.measureText(d).width;return this.clearContext(h),h.restore(),k}}]),TextElement}(We);function _createSuper$6(h){var d=function _isNativeReflectConstruct$6(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Ke=function(h){At()(TSpanElement,h);var d=_createSuper$6(TSpanElement);function TSpanElement(h,g,x){var S;return rt()(this,TSpanElement),(S=d.call(this,h,g,(this instanceof TSpanElement?this.constructor:void 0)===TSpanElement||x)).type="tspan",S.text=S.children.length>0?"":S.getTextFromNode(),S}return it()(TSpanElement,[{key:"getText",value:function getText(){return this.text}}]),TSpanElement}(Ze);function _createSuper$7(h){var d=function _isNativeReflectConstruct$7(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Je=function(h){At()(TextNode,h);var d=_createSuper$7(TextNode);function TextNode(){var h;return rt()(this,TextNode),(h=d.apply(this,arguments)).type="textNode",h}return TextNode}(Ke);function _createSuper$8(h){var d=function _isNativeReflectConstruct$8(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var tr=function(h){At()(PathParser,h);var d=_createSuper$8(PathParser);function PathParser(h){var g;return rt()(this,PathParser),(g=d.call(this,h.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,g.start=null,g.current=null,g.command=null,g.commands=g.commands,g.i=-1,g.previousCommand=null,g.points=[],g.angles=[],g}return it()(PathParser,[{key:"reset",value:function reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Oe(0,0),this.control=new Oe(0,0),this.current=new Oe(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function isEnd(){return this.i>=this.commands.length-1}},{key:"next",value:function next(){var h=this.commands[++this.i];return this.previousCommand=this.command,this.command=h,h}},{key:"getPoint",value:function getPoint(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",g=new Oe(this.command[h],this.command[d]);return this.makeAbsolute(g)}},{key:"getAsControlPoint",value:function getAsControlPoint(h,d){var g=this.getPoint(h,d);return this.control=g,g}},{key:"getAsCurrentPoint",value:function getAsCurrentPoint(h,d){var g=this.getPoint(h,d);return this.current=g,g}},{key:"getReflectedControlPoint",value:function getReflectedControlPoint(){var h=this.previousCommand.type;if(h!==Yt.a.CURVE_TO&&h!==Yt.a.SMOOTH_CURVE_TO&&h!==Yt.a.QUAD_TO&&h!==Yt.a.SMOOTH_QUAD_TO)return this.current;var d=this.current,g=d.x,x=d.y,S=this.control,b=S.x,E=S.y;return new Oe(2*g-b,2*x-E)}},{key:"makeAbsolute",value:function makeAbsolute(h){if(this.command.relative){var d=this.current,g=d.x,x=d.y;h.x+=g,h.y+=x}return h}},{key:"addMarker",value:function addMarker(h,d,g){var x=this.points,S=this.angles;g&&S.length>0&&!S[S.length-1]&&(S[S.length-1]=x[x.length-1].angleTo(g)),this.addMarkerAngle(h,d?d.angleTo(h):null)}},{key:"addMarkerAngle",value:function addMarkerAngle(h,d){this.points.push(h),this.angles.push(d)}},{key:"getMarkerPoints",value:function getMarkerPoints(){return this.points}},{key:"getMarkerAngles",value:function getMarkerAngles(){for(var h=this.angles,d=h.length,g=0;g<d;g++)if(!h[g])for(var x=g+1;x<d;x++)if(h[x]){h[g]=h[x];break}return h}}]),PathParser}(Yt.a);function _createSuper$9(h){var d=function _isNativeReflectConstruct$9(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var er=function(h){At()(PathElement,h);var d=_createSuper$9(PathElement);function PathElement(h,g,x){var S;return rt()(this,PathElement),(S=d.call(this,h,g,x)).type="path",S.pathParser=null,S.pathParser=new tr(S.getAttribute("d").getString()),S}return it()(PathElement,[{key:"path",value:function path(h){var d=this.pathParser,g=new qe;for(d.reset(),h&&h.beginPath();!d.isEnd();)switch(d.next().type){case tr.MOVE_TO:this.pathM(h,g);break;case tr.LINE_TO:this.pathL(h,g);break;case tr.HORIZ_LINE_TO:this.pathH(h,g);break;case tr.VERT_LINE_TO:this.pathV(h,g);break;case tr.CURVE_TO:this.pathC(h,g);break;case tr.SMOOTH_CURVE_TO:this.pathS(h,g);break;case tr.QUAD_TO:this.pathQ(h,g);break;case tr.SMOOTH_QUAD_TO:this.pathT(h,g);break;case tr.ARC:this.pathA(h,g);break;case tr.CLOSE_PATH:this.pathZ(h,g)}return g}},{key:"getBoundingBox",value:function getBoundingBox(h){return this.path()}},{key:"getMarkers",value:function getMarkers(){var h=this.pathParser,d=h.getMarkerPoints(),g=h.getMarkerAngles();return P()(d).call(d,(function(h,d){return[h,g[d]]}))}},{key:"renderChildren",value:function renderChildren(h){this.path(h),this.document.screen.mouse.checkPath(this,h);var d=this.getStyle("fill-rule");""!==h.fillStyle&&("inherit"!==d.getString("inherit")?Xt()(h).call(h,d.getString()):Xt()(h).call(h)),""!==h.strokeStyle&&h.stroke();var g=this.getMarkers();if(g){var x=g.length-1,S=this.getStyle("marker-start"),b=this.getStyle("marker-mid"),E=this.getStyle("marker-end");if(S.isUrlDefinition()){var w=S.getDefinition(),_=k()(g[0],2),P=_[0],A=_[1];w.render(h,P,A)}if(b.isUrlDefinition())for(var C=b.getDefinition(),M=1;M<x;M++){var N=k()(g[M],2),R=N[0],D=N[1];C.render(h,R,D)}if(E.isUrlDefinition()){var V=E.getDefinition(),L=k()(g[x],2),$=L[0],B=L[1];V.render(h,$,B)}}}},{key:"pathM",value:function pathM(h,d){var g=this.pathParser,x=PathElement.pathM(g).point,S=x.x,b=x.y;g.addMarker(x),d.addPoint(S,b),h&&h.moveTo(S,b)}},{key:"pathL",value:function pathL(h,d){var g=this.pathParser,x=PathElement.pathL(g),S=x.current,b=x.point,E=b.x,w=b.y;g.addMarker(b,S),d.addPoint(E,w),h&&h.lineTo(E,w)}},{key:"pathH",value:function pathH(h,d){var g=this.pathParser,x=PathElement.pathH(g),S=x.current,b=x.point,E=b.x,w=b.y;g.addMarker(b,S),d.addPoint(E,w),h&&h.lineTo(E,w)}},{key:"pathV",value:function pathV(h,d){var g=this.pathParser,x=PathElement.pathV(g),S=x.current,b=x.point,E=b.x,w=b.y;g.addMarker(b,S),d.addPoint(E,w),h&&h.lineTo(E,w)}},{key:"pathC",value:function pathC(h,d){var g=this.pathParser,x=PathElement.pathC(g),S=x.current,b=x.point,E=x.controlPoint,w=x.currentPoint;g.addMarker(w,E,b),d.addBezierCurve(S.x,S.y,b.x,b.y,E.x,E.y,w.x,w.y),h&&h.bezierCurveTo(b.x,b.y,E.x,E.y,w.x,w.y)}},{key:"pathS",value:function pathS(h,d){var g=this.pathParser,x=PathElement.pathS(g),S=x.current,b=x.point,E=x.controlPoint,w=x.currentPoint;g.addMarker(w,E,b),d.addBezierCurve(S.x,S.y,b.x,b.y,E.x,E.y,w.x,w.y),h&&h.bezierCurveTo(b.x,b.y,E.x,E.y,w.x,w.y)}},{key:"pathQ",value:function pathQ(h,d){var g=this.pathParser,x=PathElement.pathQ(g),S=x.current,b=x.controlPoint,E=x.currentPoint;g.addMarker(E,b,b),d.addQuadraticCurve(S.x,S.y,b.x,b.y,E.x,E.y),h&&h.quadraticCurveTo(b.x,b.y,E.x,E.y)}},{key:"pathT",value:function pathT(h,d){var g=this.pathParser,x=PathElement.pathT(g),S=x.current,b=x.controlPoint,E=x.currentPoint;g.addMarker(E,b,b),d.addQuadraticCurve(S.x,S.y,b.x,b.y,E.x,E.y),h&&h.quadraticCurveTo(b.x,b.y,E.x,E.y)}},{key:"pathA",value:function pathA(h,d){var g=this.pathParser,x=PathElement.pathA(g),S=x.currentPoint,b=x.rX,E=x.rY,w=x.sweepFlag,_=x.xAxisRotation,P=x.centp,A=x.a1,k=x.ad,C=1-w?1:-1,M=A+C*(k/2),N=new Oe(P.x+b*Math.cos(M),P.y+E*Math.sin(M));if(g.addMarkerAngle(N,M-C*Math.PI/2),g.addMarkerAngle(S,M-C*Math.PI),d.addPoint(S.x,S.y),h&&!isNaN(A)&&!isNaN(k)){var R=b>E?b:E,D=b>E?1:b/E,V=b>E?E/b:1;h.translate(P.x,P.y),h.rotate(_),h.scale(D,V),h.arc(0,0,R,A,A+k,Boolean(1-w)),h.scale(1/D,1/V),h.rotate(-_),h.translate(-P.x,-P.y)}}},{key:"pathZ",value:function pathZ(h,d){PathElement.pathZ(this.pathParser),h&&d.x1!==d.x2&&d.y1!==d.y2&&h.closePath()}}],[{key:"pathM",value:function pathM(h){var d=h.getAsCurrentPoint();return h.start=h.current,{point:d}}},{key:"pathL",value:function pathL(h){return{current:h.current,point:h.getAsCurrentPoint()}}},{key:"pathH",value:function pathH(h){var d=h.current,g=h.command,x=new Oe((g.relative?d.x:0)+g.x,d.y);return h.current=x,{current:d,point:x}}},{key:"pathV",value:function pathV(h){var d=h.current,g=h.command,x=new Oe(d.x,(g.relative?d.y:0)+g.y);return h.current=x,{current:d,point:x}}},{key:"pathC",value:function pathC(h){return{current:h.current,point:h.getPoint("x1","y1"),controlPoint:h.getAsControlPoint("x2","y2"),currentPoint:h.getAsCurrentPoint()}}},{key:"pathS",value:function pathS(h){return{current:h.current,point:h.getReflectedControlPoint(),controlPoint:h.getAsControlPoint("x2","y2"),currentPoint:h.getAsCurrentPoint()}}},{key:"pathQ",value:function pathQ(h){return{current:h.current,controlPoint:h.getAsControlPoint("x1","y1"),currentPoint:h.getAsCurrentPoint()}}},{key:"pathT",value:function pathT(h){var d=h.current,g=h.getReflectedControlPoint();return h.control=g,{current:d,controlPoint:g,currentPoint:h.getAsCurrentPoint()}}},{key:"pathA",value:function pathA(h){var d=h.current,g=h.command,x=g.rX,S=g.rY,b=g.xRot,E=g.lArcFlag,w=g.sweepFlag,_=b*(Math.PI/180),P=h.getAsCurrentPoint(),A=new Oe(Math.cos(_)*(d.x-P.x)/2+Math.sin(_)*(d.y-P.y)/2,-Math.sin(_)*(d.x-P.x)/2+Math.cos(_)*(d.y-P.y)/2),k=Math.pow(A.x,2)/Math.pow(x,2)+Math.pow(A.y,2)/Math.pow(S,2);k>1&&(x*=Math.sqrt(k),S*=Math.sqrt(k));var C=(E===w?-1:1)*Math.sqrt((Math.pow(x,2)*Math.pow(S,2)-Math.pow(x,2)*Math.pow(A.y,2)-Math.pow(S,2)*Math.pow(A.x,2))/(Math.pow(x,2)*Math.pow(A.y,2)+Math.pow(S,2)*Math.pow(A.x,2)));isNaN(C)&&(C=0);var M=new Oe(C*x*A.y/S,C*-S*A.x/x),N=new Oe((d.x+P.x)/2+Math.cos(_)*M.x-Math.sin(_)*M.y,(d.y+P.y)/2+Math.sin(_)*M.x+Math.cos(_)*M.y),R=vectorsAngle([1,0],[(A.x-M.x)/x,(A.y-M.y)/S]),D=[(A.x-M.x)/x,(A.y-M.y)/S],V=[(-A.x-M.x)/x,(-A.y-M.y)/S],L=vectorsAngle(D,V);return vectorsRatio(D,V)<=-1&&(L=Math.PI),vectorsRatio(D,V)>=1&&(L=0),{currentPoint:P,rX:x,rY:S,sweepFlag:w,xAxisRotation:_,centp:N,a1:R,ad:L}}},{key:"pathZ",value:function pathZ(h){h.current=h.start}}]),PathElement}(We);function _createSuper$a(h){var d=function _isNativeReflectConstruct$a(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var rr=function(h){At()(SVGElement,h);var d=_createSuper$a(SVGElement);function SVGElement(){var h;return rt()(this,SVGElement),(h=d.apply(this,arguments)).type="svg",h.root=!1,h}return it()(SVGElement,[{key:"setContext",value:function setContext(h){var d=this.document,g=d.screen,x=d.window,S=h.canvas;if(g.setDefaults(h),S.style&&void 0!==h.font&&x&&void 0!==x.getComputedStyle){h.font=x.getComputedStyle(S).getPropertyValue("font");var b=new ke(d,"fontSize",Qe.parse(h.font).fontSize);b.hasValue()&&(d.rootEmSize=b.getPixels("y"),d.emSize=d.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var E=g.viewPort,w=E.width,_=E.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 P=this.getAttribute("refX"),A=this.getAttribute("refY"),k=this.getAttribute("viewBox"),C=k.hasValue()?toNumbers(k.getString()):null,M=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),N=0,R=0,D=0,V=0;C&&(N=C[0],R=C[1]),this.root||(w=this.getStyle("width").getPixels("x"),_=this.getStyle("height").getPixels("y"),"marker"===this.type&&(D=N,V=R,N=0,R=0)),g.viewPort.setCurrent(w,_),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Ht()(Ot()(SVGElement.prototype),"setContext",this).call(this,h),h.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),C&&(w=C[2],_=C[3]),d.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:g.viewPort.width,desiredWidth:w,height:g.viewPort.height,desiredHeight:_,minX:N,minY:R,refX:P.getValue(),refY:A.getValue(),clip:M,clipX:D,clipY:V}),C&&(g.viewPort.removeCurrent(),g.viewPort.setCurrent(w,_))}},{key:"clearContext",value:function clearContext(h){Ht()(Ot()(SVGElement.prototype),"clearContext",this).call(this,h),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function resize(h){var d,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,x=arguments.length>2&&void 0!==arguments[2]&&arguments[2],S=this.getAttribute("width",!0),b=this.getAttribute("height",!0),E=this.getAttribute("viewBox"),w=this.getAttribute("style"),_=S.getNumber(0),P=b.getNumber(0);if(x)if("string"==typeof x)this.getAttribute("preserveAspectRatio",!0).setValue(x);else{var A=this.getAttribute("preserveAspectRatio");A.hasValue()&&A.setValue(A.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}(S.setValue(h),b.setValue(g),E.hasValue())||E.setValue(ot()(d="0 0 ".concat(_||h," ")).call(d,P||g));if(w.hasValue()){var k=this.getStyle("width"),C=this.getStyle("height");k.hasValue()&&k.setValue("".concat(h,"px")),C.hasValue()&&C.setValue("".concat(g,"px"))}}}]),SVGElement}(We);function _createSuper$b(h){var d=function _isNativeReflectConstruct$b(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var nr=function(h){At()(RectElement,h);var d=_createSuper$b(RectElement);function RectElement(){var h;return rt()(this,RectElement),(h=d.apply(this,arguments)).type="rect",h}return it()(RectElement,[{key:"path",value:function path(h){var d=this.getAttribute("x").getPixels("x"),g=this.getAttribute("y").getPixels("y"),x=this.getStyle("width",!1,!0).getPixels("x"),S=this.getStyle("height",!1,!0).getPixels("y"),b=this.getAttribute("rx"),E=this.getAttribute("ry"),w=b.getPixels("x"),_=E.getPixels("y");if(b.hasValue()&&!E.hasValue()&&(_=w),E.hasValue()&&!b.hasValue()&&(w=_),w=Math.min(w,x/2),_=Math.min(_,S/2),h){var P=(Math.sqrt(2)-1)/3*4;h.beginPath(),S>0&&x>0&&(h.moveTo(d+w,g),h.lineTo(d+x-w,g),h.bezierCurveTo(d+x-w+P*w,g,d+x,g+_-P*_,d+x,g+_),h.lineTo(d+x,g+S-_),h.bezierCurveTo(d+x,g+S-_+P*_,d+x-w+P*w,g+S,d+x-w,g+S),h.lineTo(d+w,g+S),h.bezierCurveTo(d+w-P*w,g+S,d,g+S-_+P*_,d,g+S-_),h.lineTo(d,g+_),h.bezierCurveTo(d,g+_-P*_,d+w-P*w,g,d+w,g),h.closePath())}return new qe(d,g,d+x,g+S)}},{key:"getMarkers",value:function getMarkers(){return null}}]),RectElement}(er);function _createSuper$c(h){var d=function _isNativeReflectConstruct$c(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var ir=function(h){At()(CircleElement,h);var d=_createSuper$c(CircleElement);function CircleElement(){var h;return rt()(this,CircleElement),(h=d.apply(this,arguments)).type="circle",h}return it()(CircleElement,[{key:"path",value:function path(h){var d=this.getAttribute("cx").getPixels("x"),g=this.getAttribute("cy").getPixels("y"),x=this.getAttribute("r").getPixels();return h&&x>0&&(h.beginPath(),h.arc(d,g,x,0,2*Math.PI,!1),h.closePath()),new qe(d-x,g-x,d+x,g+x)}},{key:"getMarkers",value:function getMarkers(){return null}}]),CircleElement}(er);function _createSuper$d(h){var d=function _isNativeReflectConstruct$d(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var ar=function(h){At()(EllipseElement,h);var d=_createSuper$d(EllipseElement);function EllipseElement(){var h;return rt()(this,EllipseElement),(h=d.apply(this,arguments)).type="ellipse",h}return it()(EllipseElement,[{key:"path",value:function path(h){var d=(Math.sqrt(2)-1)/3*4,g=this.getAttribute("rx").getPixels("x"),x=this.getAttribute("ry").getPixels("y"),S=this.getAttribute("cx").getPixels("x"),b=this.getAttribute("cy").getPixels("y");return h&&g>0&&x>0&&(h.beginPath(),h.moveTo(S+g,b),h.bezierCurveTo(S+g,b+d*x,S+d*g,b+x,S,b+x),h.bezierCurveTo(S-d*g,b+x,S-g,b+d*x,S-g,b),h.bezierCurveTo(S-g,b-d*x,S-d*g,b-x,S,b-x),h.bezierCurveTo(S+d*g,b-x,S+g,b-d*x,S+g,b),h.closePath()),new qe(S-g,b-x,S+g,b+x)}},{key:"getMarkers",value:function getMarkers(){return null}}]),EllipseElement}(er);function _createSuper$e(h){var d=function _isNativeReflectConstruct$e(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var or=function(h){At()(LineElement,h);var d=_createSuper$e(LineElement);function LineElement(){var h;return rt()(this,LineElement),(h=d.apply(this,arguments)).type="line",h}return it()(LineElement,[{key:"getPoints",value:function getPoints(){return[new Oe(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Oe(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function path(h){var d=this.getPoints(),g=k()(d,2),x=g[0],S=x.x,b=x.y,E=g[1],w=E.x,_=E.y;return h&&(h.beginPath(),h.moveTo(S,b),h.lineTo(w,_)),new qe(S,b,w,_)}},{key:"getMarkers",value:function getMarkers(){var h=this.getPoints(),d=k()(h,2),g=d[0],x=d[1],S=g.angleTo(x);return[[g,S],[x,S]]}}]),LineElement}(er);function _createSuper$f(h){var d=function _isNativeReflectConstruct$f(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var ur=function(h){At()(PolylineElement,h);var d=_createSuper$f(PolylineElement);function PolylineElement(h,g,x){var S;return rt()(this,PolylineElement),(S=d.call(this,h,g,x)).type="polyline",S.points=[],S.points=Oe.parsePath(S.getAttribute("points").getString()),S}return it()(PolylineElement,[{key:"path",value:function path(h){var d=this.points,g=k()(d,1)[0],x=g.x,S=g.y,b=new qe(x,S);return h&&(h.beginPath(),h.moveTo(x,S)),$()(d).call(d,(function(d){var g=d.x,x=d.y;b.addPoint(g,x),h&&h.lineTo(g,x)})),b}},{key:"getMarkers",value:function getMarkers(){var h=this.points,d=h.length-1,g=[];return $()(h).call(h,(function(x,S){S!==d&&g.push([x,x.angleTo(h[S+1])])})),g.length>0&&g.push([h[h.length-1],g[g.length-1][1]]),g}}]),PolylineElement}(er);function _createSuper$g(h){var d=function _isNativeReflectConstruct$g(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var sr=function(h){At()(PolygonElement,h);var d=_createSuper$g(PolygonElement);function PolygonElement(){var h;return rt()(this,PolygonElement),(h=d.apply(this,arguments)).type="polygon",h}return it()(PolygonElement,[{key:"path",value:function path(h){var d=Ht()(Ot()(PolygonElement.prototype),"path",this).call(this,h),g=k()(this.points,1)[0],x=g.x,S=g.y;return h&&(h.lineTo(x,S),h.closePath()),d}}]),PolygonElement}(ur);function _createSuper$h(h){var d=function _isNativeReflectConstruct$h(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var cr=function(h){At()(PatternElement,h);var d=_createSuper$h(PatternElement);function PatternElement(){var h;return rt()(this,PatternElement),(h=d.apply(this,arguments)).type="pattern",h}return it()(PatternElement,[{key:"createPattern",value:function createPattern(h,d,g){var x=this.getStyle("width").getPixels("x",!0),S=this.getStyle("height").getPixels("y",!0),b=new rr(this.document,null);b.attributes.viewBox=new ke(this.document,"viewBox",this.getAttribute("viewBox").getValue()),b.attributes.width=new ke(this.document,"width","".concat(x,"px")),b.attributes.height=new ke(this.document,"height","".concat(S,"px")),b.attributes.transform=new ke(this.document,"transform",this.getAttribute("patternTransform").getValue()),b.children=this.children;var E=this.document.createCanvas(x,S),w=E.getContext("2d"),_=this.getAttribute("x"),P=this.getAttribute("y");_.hasValue()&&P.hasValue()&&w.translate(_.getPixels("x",!0),P.getPixels("y",!0)),g.hasValue()?this.styles["fill-opacity"]=g:qt()(this.styles,"fill-opacity");for(var A=-1;A<=1;A++)for(var k=-1;k<=1;k++)w.save(),b.attributes.x=new ke(this.document,"x",A*E.width),b.attributes.y=new ke(this.document,"y",k*E.height),b.render(w),w.restore();return h.createPattern(E,"repeat")}}]),PatternElement}(Xe);function _createSuper$i(h){var d=function _isNativeReflectConstruct$i(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var lr=function(h){At()(MarkerElement,h);var d=_createSuper$i(MarkerElement);function MarkerElement(){var h;return rt()(this,MarkerElement),(h=d.apply(this,arguments)).type="marker",h}return it()(MarkerElement,[{key:"render",value:function render(h,d,g){if(d){var x=d.x,S=d.y,b=this.getAttribute("orient").getValue("auto"),E=this.getAttribute("markerUnits").getValue("strokeWidth");h.translate(x,S),"auto"===b&&h.rotate(g),"strokeWidth"===E&&h.scale(h.lineWidth,h.lineWidth),h.save();var w=new rr(this.document,null);w.type=this.type,w.attributes.viewBox=new ke(this.document,"viewBox",this.getAttribute("viewBox").getValue()),w.attributes.refX=new ke(this.document,"refX",this.getAttribute("refX").getValue()),w.attributes.refY=new ke(this.document,"refY",this.getAttribute("refY").getValue()),w.attributes.width=new ke(this.document,"width",this.getAttribute("markerWidth").getValue()),w.attributes.height=new ke(this.document,"height",this.getAttribute("markerHeight").getValue()),w.attributes.overflow=new ke(this.document,"overflow",this.getAttribute("overflow").getValue()),w.attributes.fill=new ke(this.document,"fill",this.getAttribute("fill").getColor("black")),w.attributes.stroke=new ke(this.document,"stroke",this.getAttribute("stroke").getValue("none")),w.children=this.children,w.render(h),h.restore(),"strokeWidth"===E&&h.scale(1/h.lineWidth,1/h.lineWidth),"auto"===b&&h.rotate(-g),h.translate(-x,-S)}}}]),MarkerElement}(Xe);function _createSuper$j(h){var d=function _isNativeReflectConstruct$j(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var fr=function(h){At()(DefsElement,h);var d=_createSuper$j(DefsElement);function DefsElement(){var h;return rt()(this,DefsElement),(h=d.apply(this,arguments)).type="defs",h}return it()(DefsElement,[{key:"render",value:function render(){}}]),DefsElement}(Xe);function _createSuper$k(h){var d=function _isNativeReflectConstruct$k(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var hr=function(h){At()(GElement,h);var d=_createSuper$k(GElement);function GElement(){var h;return rt()(this,GElement),(h=d.apply(this,arguments)).type="g",h}return it()(GElement,[{key:"getBoundingBox",value:function getBoundingBox(h){var d,g=new qe;return $()(d=this.children).call(d,(function(d){g.addBoundingBox(d.getBoundingBox(h))})),g}}]),GElement}(We);function _createSuper$l(h){var d=function _isNativeReflectConstruct$l(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var pr=function(h){At()(GradientElement,h);var d=_createSuper$l(GradientElement);function GradientElement(h,g,x){var S;rt()(this,GradientElement),(S=d.call(this,h,g,x)).attributesToInherit=["gradientUnits"],S.stops=[];var b=Zt()(S),E=b.stops,w=b.children;return $()(w).call(w,(function(h){"stop"===h.type&&E.push(h)})),S}return it()(GradientElement,[{key:"getGradientUnits",value:function getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function createGradient(h,d,g){var x=this,S=this;this.getHrefAttribute().hasValue()&&(S=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(S));var b=S.stops,E=this.getGradient(h,d);if(!E)return this.addParentOpacity(g,b[b.length-1].color);if($()(b).call(b,(function(h){E.addColorStop(h.offset,x.addParentOpacity(g,h.color))})),this.getAttribute("gradientTransform").hasValue()){var w=this.document,_=w.screen,P=_.MAX_VIRTUAL_PIXELS,A=_.viewPort,C=k()(A.viewPorts,1)[0],M=new nr(w,null);M.attributes.x=new ke(w,"x",-P/3),M.attributes.y=new ke(w,"y",-P/3),M.attributes.width=new ke(w,"width",P),M.attributes.height=new ke(w,"height",P);var N=new hr(w,null);N.attributes.transform=new ke(w,"transform",this.getAttribute("gradientTransform").getValue()),N.children=[M];var R=new rr(w,null);R.attributes.x=new ke(w,"x",0),R.attributes.y=new ke(w,"y",0),R.attributes.width=new ke(w,"width",C.width),R.attributes.height=new ke(w,"height",C.height),R.children=[N];var D=w.createCanvas(C.width,C.height),V=D.getContext("2d");return V.fillStyle=E,R.render(V),V.createPattern(D,"no-repeat")}return E}},{key:"inheritStopContainer",value:function inheritStopContainer(h){var d,g=this;$()(d=this.attributesToInherit).call(d,(function(d){!g.getAttribute(d).hasValue()&&h.getAttribute(d).hasValue()&&g.getAttribute(d,!0).setValue(h.getAttribute(d).getValue())}))}},{key:"addParentOpacity",value:function addParentOpacity(h,d){return h.hasValue()?new ke(this.document,"color",d).addOpacity(h).getColor():d}}]),GradientElement}(Xe);function _createSuper$m(h){var d=function _isNativeReflectConstruct$m(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var vr=function(h){At()(LinearGradientElement,h);var d=_createSuper$m(LinearGradientElement);function LinearGradientElement(h,g,x){var S;return rt()(this,LinearGradientElement),(S=d.call(this,h,g,x)).type="linearGradient",S.attributesToInherit.push("x1","y1","x2","y2"),S}return it()(LinearGradientElement,[{key:"getGradient",value:function getGradient(h,d){var g="objectBoundingBox"===this.getGradientUnits(),x=g?d.getBoundingBox(h):null;if(g&&!x)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=g?x.x+x.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),b=g?x.y+x.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),E=g?x.x+x.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),w=g?x.y+x.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return S===E&&b===w?null:h.createLinearGradient(S,b,E,w)}}]),LinearGradientElement}(pr);function _createSuper$n(h){var d=function _isNativeReflectConstruct$n(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var yr=function(h){At()(RadialGradientElement,h);var d=_createSuper$n(RadialGradientElement);function RadialGradientElement(h,g,x){var S;return rt()(this,RadialGradientElement),(S=d.call(this,h,g,x)).type="radialGradient",S.attributesToInherit.push("cx","cy","r","fx","fy","fr"),S}return it()(RadialGradientElement,[{key:"getGradient",value:function getGradient(h,d){var g="objectBoundingBox"===this.getGradientUnits(),x=d.getBoundingBox(h);if(g&&!x)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=g?x.x+x.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),b=g?x.y+x.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),E=S,w=b;this.getAttribute("fx").hasValue()&&(E=g?x.x+x.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(w=g?x.y+x.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var _=g?(x.width+x.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),P=this.getAttribute("fr").getPixels();return h.createRadialGradient(E,w,P,S,b,_)}}]),RadialGradientElement}(pr);function _createSuper$o(h){var d=function _isNativeReflectConstruct$o(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var dr=function(h){At()(StopElement,h);var d=_createSuper$o(StopElement);function StopElement(h,g,x){var S;rt()(this,StopElement),(S=d.call(this,h,g,x)).type="stop";var b=Math.max(0,Math.min(1,S.getAttribute("offset").getNumber())),E=S.getStyle("stop-opacity"),w=S.getStyle("stop-color",!0);return""===w.getString()&&w.setValue("#000"),E.hasValue()&&(w=w.addOpacity(E)),S.offset=b,S.color=w.getColor(),S}return StopElement}(Xe);function _createSuper$p(h){var d=function _isNativeReflectConstruct$p(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var gr=function(h){At()(AnimateElement,h);var d=_createSuper$p(AnimateElement);function AnimateElement(h,g,x){var S;return rt()(this,AnimateElement),(S=d.call(this,h,g,x)).type="animate",S.duration=0,S.initialValue=null,S.initialUnits="",S.removed=!1,S.frozen=!1,h.screen.animations.push(Zt()(S)),S.begin=S.getAttribute("begin").getMilliseconds(),S.maxDuration=S.begin+S.getAttribute("dur").getMilliseconds(),S.from=S.getAttribute("from"),S.to=S.getAttribute("to"),S.values=S.getAttribute("values"),Jt()(S).hasValue()&&Jt()(S).setValue(Jt()(S).getString().split(";")),S}return it()(AnimateElement,[{key:"getProperty",value:function getProperty(){var h=this.getAttribute("attributeType").getString(),d=this.getAttribute("attributeName").getString();return"CSS"===h?this.parent.getStyle(d,!0):this.parent.getAttribute(d,!0)}},{key:"calcValue",value:function calcValue(){var h,d=this.initialUnits,g=this.getProgress(),x=g.progress,S=g.from,b=g.to,E=S.getNumber()+(b.getNumber()-S.getNumber())*x;return"%"===d&&(E*=100),ot()(h="".concat(E)).call(h,d)}},{key:"update",value:function update(h){var d=this.parent,g=this.getProperty();if(this.initialValue||(this.initialValue=g.getString(),this.initialUnits=g.getUnits()),this.duration>this.maxDuration){var x=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==x||this.frozen){if("remove"===x&&!this.removed)return this.removed=!0,g.setValue(d.animationFrozen?d.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,d.animationFrozen=!0,d.animationFrozenValue=g.getString();return!1}this.duration+=h;var S=!1;if(this.begin<this.duration){var b=this.calcValue(),E=this.getAttribute("type");if(E.hasValue()){var w,_=E.getString();b=ot()(w="".concat(_,"(")).call(w,b,")")}g.setValue(b),S=!0}return S}},{key:"getProgress",value:function getProgress(){var h=this.document,d=Jt()(this),g={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(d.hasValue()){var x=g.progress*(d.getValue().length-1),S=Math.floor(x),b=Math.ceil(x);g.from=new ke(h,"from",w()(d.getValue()[S])),g.to=new ke(h,"to",w()(d.getValue()[b])),g.progress=(x-S)/(b-S)}else g.from=this.from,g.to=this.to;return g}}]),AnimateElement}(Xe);function _createSuper$q(h){var d=function _isNativeReflectConstruct$q(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var mr=function(h){At()(AnimateColorElement,h);var d=_createSuper$q(AnimateColorElement);function AnimateColorElement(){var h;return rt()(this,AnimateColorElement),(h=d.apply(this,arguments)).type="animateColor",h}return it()(AnimateColorElement,[{key:"calcValue",value:function calcValue(){var h=this.getProgress(),d=h.progress,g=h.from,x=h.to,S=new Et.a(g.getColor()),b=new Et.a(x.getColor());if(S.ok&&b.ok){var E,w,_=S.r+(b.r-S.r)*d,P=S.g+(b.g-S.g)*d,A=S.b+(b.b-S.b)*d;return ot()(E=ot()(w="rgb(".concat(ee()(_,10),", ")).call(w,ee()(P,10),", ")).call(E,ee()(A,10),")")}return this.getAttribute("from").getColor()}}]),AnimateColorElement}(gr);function _createSuper$r(h){var d=function _isNativeReflectConstruct$r(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var xr=function(h){At()(AnimateTransformElement,h);var d=_createSuper$r(AnimateTransformElement);function AnimateTransformElement(){var h;return rt()(this,AnimateTransformElement),(h=d.apply(this,arguments)).type="animateTransform",h}return it()(AnimateTransformElement,[{key:"calcValue",value:function calcValue(){var h=this.getProgress(),d=h.progress,g=h.from,x=h.to,S=toNumbers(g.getString()),b=toNumbers(x.getString());return P()(S).call(S,(function(h,g){return h+(b[g]-h)*d})).join(" ")}}]),AnimateTransformElement}(gr);function _createForOfIteratorHelper(h,d){var g;if(void 0===ce.a||null==ue()(h)){if(ae()(h)||(g=function _unsupportedIterableToArray(h,d){var g;if(!h)return;if("string"==typeof h)return _arrayLikeToArray(h,d);var x=fe()(g=Object.prototype.toString.call(h)).call(g,8,-1);"Object"===x&&h.constructor&&(x=h.constructor.name);if("Map"===x||"Set"===x)return Ft()(h);if("Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return _arrayLikeToArray(h,d)}(h))||d&&h&&"number"==typeof h.length){g&&(h=g);var x=0,S=function F(){};return{s:S,n:function n(){return x>=h.length?{done:!0}:{done:!1,value:h[x++]}},e:function e(h){throw h},f:S}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var b,E=!0,w=!1;return{s:function s(){g=ne()(h)},n:function n(){var h=g.next();return E=h.done,h},e:function e(h){w=!0,b=h},f:function f(){try{E||null==g.return||g.return()}finally{if(w)throw b}}}}function _arrayLikeToArray(h,d){(null==d||d>h.length)&&(d=h.length);for(var g=0,x=new Array(d);g<d;g++)x[g]=h[g];return x}function _createSuper$s(h){var d=function _isNativeReflectConstruct$s(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Sr=function(h){At()(FontElement,h);var d=_createSuper$s(FontElement);function FontElement(h,g,x){var S;rt()(this,FontElement),(S=d.call(this,h,g,x)).type="font",S.glyphs={},S.horizAdvX=S.getAttribute("horiz-adv-x").getNumber();var b,E=h.definitions,w=_createForOfIteratorHelper(Zt()(S).children);try{for(w.s();!(b=w.n()).done;){var _=b.value;switch(_.type){case"font-face":S.fontFace=_;var P=_.getStyle("font-family");P.hasValue()&&(E[P.getString()]=Zt()(S));break;case"missing-glyph":S.missingGlyph=_;break;case"glyph":var A=_;A.arabicForm?(S.isRTL=!0,S.isArabic=!0,void 0===S.glyphs[A.unicode]&&(S.glyphs[A.unicode]={}),S.glyphs[A.unicode][A.arabicForm]=A):S.glyphs[A.unicode]=A}}}catch(h){w.e(h)}finally{w.f()}return S}return it()(FontElement,[{key:"render",value:function render(){}}]),FontElement}(Xe);function _createSuper$t(h){var d=function _isNativeReflectConstruct$t(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var br=function(h){At()(FontFaceElement,h);var d=_createSuper$t(FontFaceElement);function FontFaceElement(h,g,x){var S;return rt()(this,FontFaceElement),(S=d.call(this,h,g,x)).type="font-face",S.ascent=S.getAttribute("ascent").getNumber(),S.descent=S.getAttribute("descent").getNumber(),S.unitsPerEm=S.getAttribute("units-per-em").getNumber(),S}return FontFaceElement}(Xe);function _createSuper$u(h){var d=function _isNativeReflectConstruct$u(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Er=function(h){At()(MissingGlyphElement,h);var d=_createSuper$u(MissingGlyphElement);function MissingGlyphElement(){var h;return rt()(this,MissingGlyphElement),(h=d.apply(this,arguments)).type="missing-glyph",h.horizAdvX=0,h}return MissingGlyphElement}(er);function _createSuper$v(h){var d=function _isNativeReflectConstruct$v(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var wr=function(h){At()(GlyphElement,h);var d=_createSuper$v(GlyphElement);function GlyphElement(h,g,x){var S;return rt()(this,GlyphElement),(S=d.call(this,h,g,x)).type="glyph",S.horizAdvX=S.getAttribute("horiz-adv-x").getNumber(),S.unicode=S.getAttribute("unicode").getString(),S.arabicForm=S.getAttribute("arabic-form").getString(),S}return GlyphElement}(er);function _createSuper$w(h){var d=function _isNativeReflectConstruct$w(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var _r=function(h){At()(TRefElement,h);var d=_createSuper$w(TRefElement);function TRefElement(){var h;return rt()(this,TRefElement),(h=d.apply(this,arguments)).type="tref",h}return it()(TRefElement,[{key:"getText",value:function getText(){var h=this.getHrefAttribute().getDefinition();if(h){var d=h.children[0];if(d)return d.getText()}return""}}]),TRefElement}(Ze);function _createSuper$x(h){var d=function _isNativeReflectConstruct$x(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Pr=function(h){At()(AElement,h);var d=_createSuper$x(AElement);function AElement(h,g,x){var S,b;rt()(this,AElement),(b=d.call(this,h,g,x)).type="a";var E=g.childNodes,w=E[0],_=E.length>0&&ht()(S=Ft()(E)).call(S,(function(h){return 3===h.nodeType}));return b.hasText=_,b.text=_?b.getTextFromNode(w):"",b}return it()(AElement,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(h){if(this.hasText){Ht()(Ot()(AElement.prototype),"renderChildren",this).call(this,h);var d=this.document,g=this.x,x=this.y,S=d.screen.mouse,b=new ke(d,"fontSize",Qe.parse(d.ctx.font).fontSize);S.isWorking()&&S.checkBoundingBox(this,new qe(g,x-b.getPixels("y"),g+this.measureText(h),x))}else if(this.children.length>0){var E=new hr(this.document,null);E.children=this.children,E.parent=this,E.render(h)}}},{key:"onClick",value:function onClick(){var h=this.document.window;h&&h.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}]),AElement}(Ze);function _createForOfIteratorHelper$1(h,d){var g;if(void 0===ce.a||null==ue()(h)){if(ae()(h)||(g=function _unsupportedIterableToArray$1(h,d){var g;if(!h)return;if("string"==typeof h)return _arrayLikeToArray$1(h,d);var x=fe()(g=Object.prototype.toString.call(h)).call(g,8,-1);"Object"===x&&h.constructor&&(x=h.constructor.name);if("Map"===x||"Set"===x)return Ft()(h);if("Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return _arrayLikeToArray$1(h,d)}(h))||d&&h&&"number"==typeof h.length){g&&(h=g);var x=0,S=function F(){};return{s:S,n:function n(){return x>=h.length?{done:!0}:{done:!1,value:h[x++]}},e:function e(h){throw h},f:S}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var b,E=!0,w=!1;return{s:function s(){g=ne()(h)},n:function n(){var h=g.next();return E=h.done,h},e:function e(h){w=!0,b=h},f:function f(){try{E||null==g.return||g.return()}finally{if(w)throw b}}}}function _arrayLikeToArray$1(h,d){(null==d||d>h.length)&&(d=h.length);for(var g=0,x=new Array(d);g<d;g++)x[g]=h[g];return x}function ownKeys(h,d){var g=Q()(h);if(X.a){var x=X()(h);d&&(x=U()(x).call(x,(function(d){return j()(h,d).enumerable}))),g.push.apply(g,x)}return g}function _objectSpread(h){for(var d=1;d<arguments.length;d++){var g,x=null!=arguments[d]?arguments[d]:{};if(d%2)$()(g=ownKeys(Object(x),!0)).call(g,(function(d){tt()(h,d,x[d])}));else if(V.a)R()(h,V()(x));else{var S;$()(S=ownKeys(Object(x))).call(S,(function(d){M()(h,d,j()(x,d))}))}}return h}function _createSuper$y(h){var d=function _isNativeReflectConstruct$y(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Ar=function(h){At()(TextPathElement,h);var d=_createSuper$y(TextPathElement);function TextPathElement(h,g,x){var S;rt()(this,TextPathElement),(S=d.call(this,h,g,x)).type="textPath",S.textWidth=0,S.textHeight=0,S.pathLength=-1,S.glyphInfo=null,S.letterSpacingCache=[],S.measuresCache=new pe.a([["",0]]);var b=S.getHrefAttribute().getDefinition();return S.text=S.getTextFromNode(),S.dataArray=S.parsePathData(b),S}return it()(TextPathElement,[{key:"getText",value:function getText(){return this.text}},{key:"path",value:function path(h){var d=this.dataArray;h&&h.beginPath(),$()(d).call(d,(function(d){var g=d.type,x=d.points;switch(g){case tr.LINE_TO:h&&h.lineTo(x[0],x[1]);break;case tr.MOVE_TO:h&&h.moveTo(x[0],x[1]);break;case tr.CURVE_TO:h&&h.bezierCurveTo(x[0],x[1],x[2],x[3],x[4],x[5]);break;case tr.QUAD_TO:h&&h.quadraticCurveTo(x[0],x[1],x[2],x[3]);break;case tr.ARC:var S=k()(x,8),b=S[0],E=S[1],w=S[2],_=S[3],P=S[4],A=S[5],C=S[6],M=S[7],N=w>_?w:_,R=w>_?1:w/_,D=w>_?_/w:1;h&&(h.translate(b,E),h.rotate(C),h.scale(R,D),h.arc(0,0,N,P,P+A,Boolean(1-M)),h.scale(1/R,1/D),h.rotate(-C),h.translate(-b,-E));break;case tr.CLOSE_PATH:h&&h.closePath()}}))}},{key:"renderChildren",value:function renderChildren(h){this.setTextData(h),h.save();var d=this.parent.getStyle("text-decoration").getString(),g=this.getFontSize(),x=this.glyphInfo,S=h.fillStyle;"underline"===d&&h.beginPath(),$()(x).call(x,(function(x,S){var b=x.p0,E=x.p1,w=x.rotation,_=x.text;h.save(),h.translate(b.x,b.y),h.rotate(w),h.fillStyle&&h.fillText(_,0,0),h.strokeStyle&&h.strokeText(_,0,0),h.restore(),"underline"===d&&(0===S&&h.moveTo(b.x,b.y+g/8),h.lineTo(E.x,E.y+g/5))})),"underline"===d&&(h.lineWidth=g/20,h.strokeStyle=S,h.stroke(),h.closePath()),h.restore()}},{key:"getLetterSpacingAt",value:function getLetterSpacingAt(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[h]||0}},{key:"findSegmentToFitChar",value:function findSegmentToFitChar(h,d,g,x,S,b,E,w,_){var P=b,A=this.measureText(h,w);" "===w&&"justify"===d&&g<x&&(A+=(x-g)/S),_>-1&&(P+=this.getLetterSpacingAt(_));var k=this.textHeight/20,C=this.getEquidistantPointOnPath(P,k,0),M=this.getEquidistantPointOnPath(P+A,k,0),N={p0:C,p1:M},R=C&&M?Math.atan2(M.y-C.y,M.x-C.x):0;if(E){var D=Math.cos(Math.PI/2+R)*E,V=Math.cos(-R)*E;N.p0=_objectSpread(_objectSpread({},C),{},{x:C.x+D,y:C.y+V}),N.p1=_objectSpread(_objectSpread({},M),{},{x:M.x+D,y:M.y+V})}return{offset:P+=A,segment:N,rotation:R}}},{key:"measureText",value:function measureText(h,d){var g=this.measuresCache,x=d||this.getText();if(g.has(x))return g.get(x);var S=this.measureTargetText(h,x);return g.set(x,S),S}},{key:"setTextData",value:function setTextData(h){var d,g=this;if(!this.glyphInfo){var x=this.getText(),S=x.split(""),b=x.split(" ").length-1,E=P()(d=this.parent.getAttribute("dx").split()).call(d,(function(h){return h.getPixels("x")})),w=this.parent.getAttribute("dy").getPixels("y"),_=this.parent.getStyle("text-anchor").getString("start"),A=this.getStyle("letter-spacing"),k=this.parent.getStyle("letter-spacing"),C=0;A.hasValue()&&"inherit"!==A.getValue()?A.hasValue()&&"initial"!==A.getValue()&&"unset"!==A.getValue()&&(C=A.getPixels()):C=k.getPixels();var M=[],N=x.length;this.letterSpacingCache=M;for(var R=0;R<N;R++)M.push(void 0!==E[R]?E[R]:C);var D=st()(M).call(M,(function(h,d,g){return 0===g?0:h+d||0}),0),V=this.measureText(h),L=Math.max(V+D,0);this.textWidth=V,this.textHeight=this.getFontSize(),this.glyphInfo=[];var B=this.getPathLength(),j=this.getStyle("startOffset").getNumber(0)*B,z=0;"middle"!==_&&"center"!==_||(z=-L/2),"end"!==_&&"right"!==_||(z=-L),z+=j,$()(S).call(S,(function(d,x){var E=g.findSegmentToFitChar(h,_,L,B,b,z,w,d,x),P=E.offset,A=E.segment,k=E.rotation;z=P,A.p0&&A.p1&&g.glyphInfo.push({text:S[x],p0:A.p0,p1:A.p1,rotation:k})}))}}},{key:"parsePathData",value:function parsePathData(h){if(this.pathLength=-1,!h)return[];var d=[],g=h.pathParser;for(g.reset();!g.isEnd();){var x=g.current,S=x?x.x:0,b=x?x.y:0,E=g.next(),w=E.type,_=[];switch(E.type){case tr.MOVE_TO:this.pathM(g,_);break;case tr.LINE_TO:w=this.pathL(g,_);break;case tr.HORIZ_LINE_TO:w=this.pathH(g,_);break;case tr.VERT_LINE_TO:w=this.pathV(g,_);break;case tr.CURVE_TO:this.pathC(g,_);break;case tr.SMOOTH_CURVE_TO:w=this.pathS(g,_);break;case tr.QUAD_TO:this.pathQ(g,_);break;case tr.SMOOTH_QUAD_TO:w=this.pathT(g,_);break;case tr.ARC:_=this.pathA(g);break;case tr.CLOSE_PATH:er.pathZ(g)}E.type!==tr.CLOSE_PATH?d.push({type:w,points:_,start:{x:S,y:b},pathLength:this.calcLength(S,b,w,_)}):d.push({type:tr.CLOSE_PATH,points:[],pathLength:0})}return d}},{key:"pathM",value:function pathM(h,d){var g=er.pathM(h).point,x=g.x,S=g.y;d.push(x,S)}},{key:"pathL",value:function pathL(h,d){var g=er.pathL(h).point,x=g.x,S=g.y;return d.push(x,S),tr.LINE_TO}},{key:"pathH",value:function pathH(h,d){var g=er.pathH(h).point,x=g.x,S=g.y;return d.push(x,S),tr.LINE_TO}},{key:"pathV",value:function pathV(h,d){var g=er.pathV(h).point,x=g.x,S=g.y;return d.push(x,S),tr.LINE_TO}},{key:"pathC",value:function pathC(h,d){var g=er.pathC(h),x=g.point,S=g.controlPoint,b=g.currentPoint;d.push(x.x,x.y,S.x,S.y,b.x,b.y)}},{key:"pathS",value:function pathS(h,d){var g=er.pathS(h),x=g.point,S=g.controlPoint,b=g.currentPoint;return d.push(x.x,x.y,S.x,S.y,b.x,b.y),tr.CURVE_TO}},{key:"pathQ",value:function pathQ(h,d){var g=er.pathQ(h),x=g.controlPoint,S=g.currentPoint;d.push(x.x,x.y,S.x,S.y)}},{key:"pathT",value:function pathT(h,d){var g=er.pathT(h),x=g.controlPoint,S=g.currentPoint;return d.push(x.x,x.y,S.x,S.y),tr.QUAD_TO}},{key:"pathA",value:function pathA(h){var d=er.pathA(h),g=d.rX,x=d.rY,S=d.sweepFlag,b=d.xAxisRotation,E=d.centp,w=d.a1,_=d.ad;return 0===S&&_>0&&(_-=2*Math.PI),1===S&&_<0&&(_+=2*Math.PI),[E.x,E.y,g,x,w,_,b,S]}},{key:"calcLength",value:function calcLength(h,d,g,x){var S=0,b=null,E=null,w=0;switch(g){case tr.LINE_TO:return this.getLineLength(h,d,x[0],x[1]);case tr.CURVE_TO:for(S=0,b=this.getPointOnCubicBezier(0,h,d,x[0],x[1],x[2],x[3],x[4],x[5]),w=.01;w<=1;w+=.01)E=this.getPointOnCubicBezier(w,h,d,x[0],x[1],x[2],x[3],x[4],x[5]),S+=this.getLineLength(b.x,b.y,E.x,E.y),b=E;return S;case tr.QUAD_TO:for(S=0,b=this.getPointOnQuadraticBezier(0,h,d,x[0],x[1],x[2],x[3]),w=.01;w<=1;w+=.01)E=this.getPointOnQuadraticBezier(w,h,d,x[0],x[1],x[2],x[3]),S+=this.getLineLength(b.x,b.y,E.x,E.y),b=E;return S;case tr.ARC:S=0;var _=x[4],P=x[5],A=x[4]+P,k=Math.PI/180;if(Math.abs(_-A)<k&&(k=Math.abs(_-A)),b=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],_,0),P<0)for(w=_-k;w>A;w-=k)E=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],w,0),S+=this.getLineLength(b.x,b.y,E.x,E.y),b=E;else for(w=_+k;w<A;w+=k)E=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],w,0),S+=this.getLineLength(b.x,b.y,E.x,E.y),b=E;return E=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],A,0),S+=this.getLineLength(b.x,b.y,E.x,E.y)}return 0}},{key:"getPointOnLine",value:function getPointOnLine(h,d,g,x,S){var b=arguments.length>5&&void 0!==arguments[5]?arguments[5]:d,E=arguments.length>6&&void 0!==arguments[6]?arguments[6]:g,w=(S-g)/(x-d+Te),_=Math.sqrt(h*h/(1+w*w));x<d&&(_*=-1);var P=w*_,A=null;if(x===d)A={x:b,y:E+P};else if((E-g)/(b-d+Te)===w)A={x:b+_,y:E+P};else{var k=0,C=0,M=this.getLineLength(d,g,x,S);if(M<Te)return null;var N=(b-d)*(x-d)+(E-g)*(S-g);k=d+(N/=M*M)*(x-d),C=g+N*(S-g);var R=this.getLineLength(b,E,k,C),D=Math.sqrt(h*h-R*R);_=Math.sqrt(D*D/(1+w*w)),x<d&&(_*=-1),A={x:k+_,y:C+(P=w*_)}}return A}},{key:"getPointOnPath",value:function getPointOnPath(h){var d=this.getPathLength(),g=0,x=null;if(h<-5e-5||h-5e-5>d)return null;var S,b=_createForOfIteratorHelper$1(this.dataArray);try{for(b.s();!(S=b.n()).done;){var E=S.value;if(!E||!(E.pathLength<5e-5||g+E.pathLength+5e-5<h)){var w=h-g,_=0;switch(E.type){case tr.LINE_TO:x=this.getPointOnLine(w,E.start.x,E.start.y,E.points[0],E.points[1],E.start.x,E.start.y);break;case tr.ARC:var P=E.points[4],A=E.points[5],k=E.points[4]+A;if(_=P+w/E.pathLength*A,A<0&&_<k||A>=0&&_>k)break;x=this.getPointOnEllipticalArc(E.points[0],E.points[1],E.points[2],E.points[3],_,E.points[6]);break;case tr.CURVE_TO:(_=w/E.pathLength)>1&&(_=1),x=this.getPointOnCubicBezier(_,E.start.x,E.start.y,E.points[0],E.points[1],E.points[2],E.points[3],E.points[4],E.points[5]);break;case tr.QUAD_TO:(_=w/E.pathLength)>1&&(_=1),x=this.getPointOnQuadraticBezier(_,E.start.x,E.start.y,E.points[0],E.points[1],E.points[2],E.points[3])}if(x)return x;break}g+=E.pathLength}}catch(h){b.e(h)}finally{b.f()}return null}},{key:"getLineLength",value:function getLineLength(h,d,g,x){return Math.sqrt((g-h)*(g-h)+(x-d)*(x-d))}},{key:"getPathLength",value:function getPathLength(){var h;-1===this.pathLength&&(this.pathLength=st()(h=this.dataArray).call(h,(function(h,d){return d.pathLength>0?h+d.pathLength:h}),0));return this.pathLength}},{key:"getPointOnCubicBezier",value:function getPointOnCubicBezier(h,d,g,x,S,b,E,w,_){return{x:w*CB1(h)+b*CB2(h)+x*CB3(h)+d*CB4(h),y:_*CB1(h)+E*CB2(h)+S*CB3(h)+g*CB4(h)}}},{key:"getPointOnQuadraticBezier",value:function getPointOnQuadraticBezier(h,d,g,x,S,b,E){return{x:b*QB1(h)+x*QB2(h)+d*QB3(h),y:E*QB1(h)+S*QB2(h)+g*QB3(h)}}},{key:"getPointOnEllipticalArc",value:function getPointOnEllipticalArc(h,d,g,x,S,b){var E=Math.cos(b),w=Math.sin(b),_=g*Math.cos(S),P=x*Math.sin(S);return{x:h+(_*E-P*w),y:d+(_*w+P*E)}}},{key:"buildEquidistantCache",value:function buildEquidistantCache(h,d){var g=this.getPathLength(),x=d||.25,S=h||g/100;if(!this.equidistantCache||this.equidistantCache.step!==S||this.equidistantCache.precision!==x){this.equidistantCache={step:S,precision:x,points:[]};for(var b=0,E=0;E<=g;E+=x){var w=this.getPointOnPath(E),_=this.getPointOnPath(E+x);w&&_&&((b+=this.getLineLength(w.x,w.y,_.x,_.y))>=S&&(this.equidistantCache.points.push({x:w.x,y:w.y,distance:E}),b-=S))}}}},{key:"getEquidistantPointOnPath",value:function getEquidistantPointOnPath(h,d,g){if(this.buildEquidistantCache(d,g),h<0||h-this.getPathLength()>5e-5)return null;var x=Math.round(h/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[x]||null}}]),TextPathElement}(Ze);function _createSuper$z(h){var d=function _isNativeReflectConstruct$z(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Tr=function(h){At()(ImageElement,h);var d,g,x=_createSuper$z(ImageElement);function ImageElement(h,d,g){var S;rt()(this,ImageElement),(S=x.call(this,h,d,g)).type="image",S.loaded=!1;var b=S.getHrefAttribute().getString();if(!b)return kt()(S);var E=/\.svg$/.test(b);return h.images.push(Zt()(S)),E?S.loadSvg(b):S.loadImage(b),S.isSvg=E,S}return it()(ImageElement,[{key:"loadImage",value:(g=K()(W.a.mark((function _callee(h){var d;return W.a.wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:return g.prev=0,g.next=3,this.document.createImage(h);case 3:d=g.sent,this.image=d,g.next=10;break;case 7:g.prev=7,g.t0=g.catch(0),console.error('Error while loading image "'.concat(h,'":'),g.t0);case 10:this.loaded=!0;case 11:case"end":return g.stop()}}),_callee,this,[[0,7]])}))),function loadImage(h){return g.apply(this,arguments)})},{key:"loadSvg",value:(d=K()(W.a.mark((function _callee2(h){var d,g;return W.a.wrap((function _callee2$(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,x.next=3,this.document.fetch(h);case 3:return d=x.sent,x.next=6,d.text();case 6:g=x.sent,this.image=g,x.next=13;break;case 10:x.prev=10,x.t0=x.catch(0),console.error('Error while loading image "'.concat(h,'":'),x.t0);case 13:this.loaded=!0;case 14:case"end":return x.stop()}}),_callee2,this,[[0,10]])}))),function loadSvg(h){return d.apply(this,arguments)})},{key:"renderChildren",value:function renderChildren(h){var d=this.document,g=this.image,x=this.loaded,S=this.getAttribute("x").getPixels("x"),b=this.getAttribute("y").getPixels("y"),E=this.getStyle("width").getPixels("x"),w=this.getStyle("height").getPixels("y");if(x&&g&&E&&w){if(h.save(),this.isSvg)d.canvg.forkString(h,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:S,offsetY:b,scaleWidth:E,scaleHeight:w}).render();else{var _=this.image;h.translate(S,b),d.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:E,desiredWidth:_.width,height:w,desiredHeight:_.height}),this.loaded&&(void 0===_.complete||_.complete)&&h.drawImage(_,0,0)}h.restore()}}},{key:"getBoundingBox",value:function getBoundingBox(){var h=this.getAttribute("x").getPixels("x"),d=this.getAttribute("y").getPixels("y"),g=this.getStyle("width").getPixels("x"),x=this.getStyle("height").getPixels("y");return new qe(h,d,h+g,d+x)}}]),ImageElement}(We);function _createSuper$A(h){var d=function _isNativeReflectConstruct$A(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var kr=function(h){At()(SymbolElement,h);var d=_createSuper$A(SymbolElement);function SymbolElement(){var h;return rt()(this,SymbolElement),(h=d.apply(this,arguments)).type="symbol",h}return it()(SymbolElement,[{key:"render",value:function render(h){}}]),SymbolElement}(We),Cr=function(){function SVGFontLoader(h){rt()(this,SVGFontLoader),this.document=h,this.loaded=!1,h.fonts.push(this)}var h;return it()(SVGFontLoader,[{key:"load",value:(h=K()(W.a.mark((function _callee(h,d){var g,x,S,b;return W.a.wrap((function _callee$(E){for(;;)switch(E.prev=E.next){case 0:return E.prev=0,x=this.document,E.next=4,x.canvg.parser.load(d);case 4:S=E.sent,b=S.getElementsByTagName("font"),$()(g=Ft()(b)).call(g,(function(d){var g=x.createElement(d);x.definitions[h]=g})),E.next=12;break;case 9:E.prev=9,E.t0=E.catch(0),console.error('Error while loading font "'.concat(d,'":'),E.t0);case 12:this.loaded=!0;case 13:case"end":return E.stop()}}),_callee,this,[[0,9]])}))),function load(d,g){return h.apply(this,arguments)})}]),SVGFontLoader}();function _createSuper$B(h){var d=function _isNativeReflectConstruct$B(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Or=function(h){At()(StyleElement,h);var d=_createSuper$B(StyleElement);function StyleElement(h,g,x){var S,b;rt()(this,StyleElement),(b=d.call(this,h,g,x)).type="style";var E=compressSpaces(P()(S=Ft()(g.childNodes)).call(S,(function(h){return h.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return $()(E).call(E,(function(d){var g=St()(d).call(d);if(g){var x=g.split("{"),S=x[0].split(","),b=x[1].split(";");$()(S).call(S,(function(d){var g=St()(d).call(d);if(g){var x=h.styles[g]||{};if($()(b).call(b,(function(d){var g,S,b=zt()(d).call(d,":"),E=St()(g=d.substr(0,b)).call(g),w=St()(S=d.substr(b+1,d.length-b)).call(S);E&&w&&(x[E]=new ke(h,E,w))})),h.styles[g]=x,h.stylesSpecificity[g]=getSelectorSpecificity(g),"@font-face"===g){var S=x["font-family"].getString().replace(/"|'/g,""),E=x.src.getString().split(",");$()(E).call(E,(function(d){if(zt()(d).call(d,'format("svg")')>0){var g=parseExternalUrl(d);g&&new Cr(h).load(S,g)}}))}}}))}})),b}return StyleElement}(Xe);function _createSuper$C(h){var d=function _isNativeReflectConstruct$C(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}Or.parseExternalUrl=parseExternalUrl;var Mr=function(h){At()(UseElement,h);var d=_createSuper$C(UseElement);function UseElement(){var h;return rt()(this,UseElement),(h=d.apply(this,arguments)).type="use",h}return it()(UseElement,[{key:"setContext",value:function setContext(h){Ht()(Ot()(UseElement.prototype),"setContext",this).call(this,h);var d=this.getAttribute("x"),g=this.getAttribute("y");d.hasValue()&&h.translate(d.getPixels("x"),0),g.hasValue()&&h.translate(0,g.getPixels("y"))}},{key:"path",value:function path(h){var d=this.element;d&&d.path(h)}},{key:"renderChildren",value:function renderChildren(h){var d=this.document,g=this.element;if(g){var x=g;if("symbol"===g.type&&((x=new rr(d,null)).attributes.viewBox=new ke(d,"viewBox",g.getAttribute("viewBox").getString()),x.attributes.preserveAspectRatio=new ke(d,"preserveAspectRatio",g.getAttribute("preserveAspectRatio").getString()),x.attributes.overflow=new ke(d,"overflow",g.getAttribute("overflow").getString()),x.children=g.children,g.styles.opacity=new ke(d,"opacity",this.calculateOpacity())),"svg"===x.type){var S=this.getStyle("width",!1,!0),b=this.getStyle("height",!1,!0);S.hasValue()&&(x.attributes.width=new ke(d,"width",S.getString())),b.hasValue()&&(x.attributes.height=new ke(d,"height",b.getString()))}var E=x.parent;x.parent=this,x.render(h),x.parent=E}}},{key:"getBoundingBox",value:function getBoundingBox(h){var d=this.element;return d?d.getBoundingBox(h):null}},{key:"elementTransform",value:function elementTransform(){var h=this.document,d=this.element;return Ge.fromElement(h,d)}},{key:"element",get:function get(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),UseElement}(We);function _createSuper$D(h){var d=function _isNativeReflectConstruct$D(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}function imGet(h,d,g,x,S,b){return h[g*x*4+4*d+b]}function imSet(h,d,g,x,S,b,E){h[g*x*4+4*d+b]=E}function m(h,d,g){return h[d]*g}function c(h,d,g,x){return d+Math.cos(h)*g+Math.sin(h)*x}var Nr=function(h){At()(FeColorMatrixElement,h);var d=_createSuper$D(FeColorMatrixElement);function FeColorMatrixElement(h,g,x){var S;rt()(this,FeColorMatrixElement),(S=d.call(this,h,g,x)).type="feColorMatrix";var b=toNumbers(S.getAttribute("values").getString());switch(S.getAttribute("type").getString("matrix")){case"saturate":var E=b[0];b=[.213+.787*E,.715-.715*E,.072-.072*E,0,0,.213-.213*E,.715+.285*E,.072-.072*E,0,0,.213-.213*E,.715-.715*E,.072+.928*E,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var w=b[0]*Math.PI/180;b=[c(w,.213,.787,-.213),c(w,.715,-.715,-.715),c(w,.072,-.072,.928),0,0,c(w,.213,-.213,.143),c(w,.715,.285,.14),c(w,.072,-.072,-.283),0,0,c(w,.213,-.213,-.787),c(w,.715,-.715,.715),c(w,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":b=[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]}return S.matrix=b,S.includeOpacity=S.getAttribute("includeOpacity").hasValue(),S}return it()(FeColorMatrixElement,[{key:"apply",value:function apply(h,d,g,x,S){for(var b=this.includeOpacity,E=this.matrix,w=h.getImageData(0,0,x,S),_=0;_<S;_++)for(var P=0;P<x;P++){var A=imGet(w.data,P,_,x,0,0),k=imGet(w.data,P,_,x,0,1),C=imGet(w.data,P,_,x,0,2),M=imGet(w.data,P,_,x,0,3),N=m(E,0,A)+m(E,1,k)+m(E,2,C)+m(E,3,M)+m(E,4,1),R=m(E,5,A)+m(E,6,k)+m(E,7,C)+m(E,8,M)+m(E,9,1),D=m(E,10,A)+m(E,11,k)+m(E,12,C)+m(E,13,M)+m(E,14,1),V=m(E,15,A)+m(E,16,k)+m(E,17,C)+m(E,18,M)+m(E,19,1);b&&(N=R=D=0,V*=M/255),imSet(w.data,P,_,x,0,0,N),imSet(w.data,P,_,x,0,1,R),imSet(w.data,P,_,x,0,2,D),imSet(w.data,P,_,x,0,3,V)}h.clearRect(0,0,x,S),h.putImageData(w,0,0)}}]),FeColorMatrixElement}(Xe);function _createSuper$E(h){var d=function _isNativeReflectConstruct$E(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Rr=function(h){At()(MaskElement,h);var d=_createSuper$E(MaskElement);function MaskElement(){var h;return rt()(this,MaskElement),(h=d.apply(this,arguments)).type="mask",h}return it()(MaskElement,[{key:"apply",value:function apply(h,d){var g=this.document,x=this.getAttribute("x").getPixels("x"),S=this.getAttribute("y").getPixels("y"),b=this.getStyle("width").getPixels("x"),E=this.getStyle("height").getPixels("y");if(!b&&!E){var w,_=new qe;$()(w=this.children).call(w,(function(d){_.addBoundingBox(d.getBoundingBox(h))})),x=Math.floor(_.x1),S=Math.floor(_.y1),b=Math.floor(_.width),E=Math.floor(_.height)}var P=this.removeStyles(d,MaskElement.ignoreStyles),A=g.createCanvas(x+b,S+E),k=A.getContext("2d");g.screen.setDefaults(k),this.renderChildren(k),new Nr(g,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(k,0,0,x+b,S+E);var C=g.createCanvas(x+b,S+E),M=C.getContext("2d");g.screen.setDefaults(M),d.render(M),M.globalCompositeOperation="destination-in",M.fillStyle=k.createPattern(A,"no-repeat"),M.fillRect(0,0,x+b,S+E),h.fillStyle=M.createPattern(C,"no-repeat"),h.fillRect(0,0,x+b,S+E),this.restoreStyles(d,P)}},{key:"render",value:function render(h){}}]),MaskElement}(Xe);function _createSuper$F(h){var d=function _isNativeReflectConstruct$F(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}Rr.ignoreStyles=["mask","transform","clip-path"];var Dr=function noop(){},Ir=function(h){At()(ClipPathElement,h);var d=_createSuper$F(ClipPathElement);function ClipPathElement(){var h;return rt()(this,ClipPathElement),(h=d.apply(this,arguments)).type="clipPath",h}return it()(ClipPathElement,[{key:"apply",value:function apply(h){var d,g=this.document,x=ge()(h),S=h.beginPath,b=h.closePath;x&&(x.beginPath=Dr,x.closePath=Dr),ye()(S,h,[]),$()(d=this.children).call(d,(function(d){if(void 0!==d.path){var S=void 0!==d.elementTransform?d.elementTransform():null;S||(S=Ge.fromElement(g,d)),S&&S.apply(h),d.path(h),x&&(x.closePath=b),S&&S.unapply(h)}})),ye()(b,h,[]),h.clip(),x&&(x.beginPath=S,x.closePath=b)}},{key:"render",value:function render(h){}}]),ClipPathElement}(Xe);function _createSuper$G(h){var d=function _isNativeReflectConstruct$G(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Vr=function(h){At()(FilterElement,h);var d=_createSuper$G(FilterElement);function FilterElement(){var h;return rt()(this,FilterElement),(h=d.apply(this,arguments)).type="filter",h}return it()(FilterElement,[{key:"apply",value:function apply(h,d){var g=this.document,x=this.children,S=d.getBoundingBox(h);if(S){var b=0,E=0;$()(x).call(x,(function(h){var d=h.extraFilterDistance||0;b=Math.max(b,d),E=Math.max(E,d)}));var w=Math.floor(S.width),_=Math.floor(S.height),P=w+2*b,A=_+2*E;if(!(P<1||A<1)){var k=Math.floor(S.x),C=Math.floor(S.y),M=this.removeStyles(d,FilterElement.ignoreStyles),N=g.createCanvas(P,A),R=N.getContext("2d");g.screen.setDefaults(R),R.translate(-k+b,-C+E),d.render(R),$()(x).call(x,(function(h){"function"==typeof h.apply&&h.apply(R,0,0,P,A)})),h.drawImage(N,0,0,P,A,k-b,C-E,P,A),this.restoreStyles(d,M)}}}},{key:"render",value:function render(h){}}]),FilterElement}(Xe);function _createSuper$H(h){var d=function _isNativeReflectConstruct$H(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}Vr.ignoreStyles=["filter","transform","clip-path"];var Lr=function(h){At()(FeDropShadowElement,h);var d=_createSuper$H(FeDropShadowElement);function FeDropShadowElement(h,g,x){var S;return rt()(this,FeDropShadowElement),(S=d.call(this,h,g,x)).type="feDropShadow",S.addStylesFromStyleDefinition(),S}return it()(FeDropShadowElement,[{key:"apply",value:function apply(h,d,g,x,S){}}]),FeDropShadowElement}(Xe);function _createSuper$I(h){var d=function _isNativeReflectConstruct$I(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Fr=function(h){At()(FeMorphologyElement,h);var d=_createSuper$I(FeMorphologyElement);function FeMorphologyElement(){var h;return rt()(this,FeMorphologyElement),(h=d.apply(this,arguments)).type="feMorphology",h}return it()(FeMorphologyElement,[{key:"apply",value:function apply(h,d,g,x,S){}}]),FeMorphologyElement}(Xe);function _createSuper$J(h){var d=function _isNativeReflectConstruct$J(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var $r=function(h){At()(FeCompositeElement,h);var d=_createSuper$J(FeCompositeElement);function FeCompositeElement(){var h;return rt()(this,FeCompositeElement),(h=d.apply(this,arguments)).type="feComposite",h}return it()(FeCompositeElement,[{key:"apply",value:function apply(h,d,g,x,S){}}]),FeCompositeElement}(Xe);function _createSuper$K(h){var d=function _isNativeReflectConstruct$K(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var Br=function(h){At()(FeGaussianBlurElement,h);var d=_createSuper$K(FeGaussianBlurElement);function FeGaussianBlurElement(h,g,x){var S;return rt()(this,FeGaussianBlurElement),(S=d.call(this,h,g,x)).type="feGaussianBlur",S.blurRadius=Math.floor(S.getAttribute("stdDeviation").getNumber()),S.extraFilterDistance=S.blurRadius,S}return it()(FeGaussianBlurElement,[{key:"apply",value:function apply(h,d,g,x,S){var b=this.document,E=this.blurRadius,w=b.window?b.window.document.body:null,_=h.canvas;_.id=b.getUniqueId(),w&&(_.style.display="none",w.appendChild(_)),Object(me.a)(_,d,g,x,S,E),w&&w.removeChild(_)}}]),FeGaussianBlurElement}(Xe);function _createSuper$L(h){var d=function _isNativeReflectConstruct$L(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var jr=function(h){At()(TitleElement,h);var d=_createSuper$L(TitleElement);function TitleElement(){var h;return rt()(this,TitleElement),(h=d.apply(this,arguments)).type="title",h}return TitleElement}(Xe);function _createSuper$M(h){var d=function _isNativeReflectConstruct$M(){if("undefined"==typeof Reflect||!_t.a)return!1;if(_t.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(_t()(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=Ot()(h);if(d){var S=Ot()(this).constructor;g=_t()(x,arguments,S)}else g=x.apply(this,arguments);return kt()(this,g)}}var zr=function(h){At()(DescElement,h);var d=_createSuper$M(DescElement);function DescElement(){var h;return rt()(this,DescElement),(h=d.apply(this,arguments)).type="desc",h}return DescElement}(Xe),Ur={svg:rr,rect:nr,circle:ir,ellipse:ar,line:or,polyline:ur,polygon:sr,path:er,pattern:cr,marker:lr,defs:fr,linearGradient:vr,radialGradient:yr,stop:dr,animate:gr,animateColor:mr,animateTransform:xr,font:Sr,"font-face":br,"missing-glyph":Er,glyph:wr,text:Ze,tspan:Ke,tref:_r,a:Pr,textPath:Ar,image:Tr,g:hr,symbol:kr,style:Or,use:Mr,mask:Rr,clipPath:Ir,filter:Vr,feDropShadow:Lr,feMorphology:Fr,feComposite:$r,feColorMatrix:Nr,feGaussianBlur:Br,title:jr,desc:zr};function ownKeys$1(h,d){var g=Q()(h);if(X.a){var x=X()(h);d&&(x=U()(x).call(x,(function(d){return j()(h,d).enumerable}))),g.push.apply(g,x)}return g}function _createImage(){return(_createImage=K()(W.a.mark((function _callee(h){var d,g,x=arguments;return W.a.wrap((function _callee$(S){for(;;)switch(S.prev=S.next){case 0:return d=x.length>1&&void 0!==x[1]&&x[1],g=document.createElement("img"),d&&(g.crossOrigin="Anonymous"),S.abrupt("return",new vt.a((function(d,x){g.onload=function(){d(g)},g.onerror=function(){x()},g.src=h})));case 4:case"end":return S.stop()}}),_callee)})))).apply(this,arguments)}var Hr=function(){function Document(h){var d,g,x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},S=x.rootEmSize,b=void 0===S?12:S,E=x.emSize,w=void 0===E?12:E,_=x.createCanvas,P=void 0===_?Document.createCanvas:_,A=x.createImage,k=void 0===A?Document.createImage:A,C=x.anonymousCrossOrigin;rt()(this,Document),this.canvg=h,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=h.screen,this.rootEmSize=b,this.emSize=w,this.createCanvas=P,this.createImage=this.bindCreateImage(k,C),this.screen.wait(dt()(d=this.isImagesLoaded).call(d,this)),this.screen.wait(dt()(g=this.isFontsLoaded).call(g,this))}return it()(Document,[{key:"bindCreateImage",value:function bindCreateImage(h,d){return"boolean"==typeof d?function(g,x){return h(g,"boolean"==typeof x?x:d)}:h}},{key:"popEmSize",value:function popEmSize(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function getUniqueId(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function isImagesLoaded(){var h;return ht()(h=this.images).call(h,(function(h){return h.loaded}))}},{key:"isFontsLoaded",value:function isFontsLoaded(){var h;return ht()(h=this.fonts).call(h,(function(h){return h.loaded}))}},{key:"createDocumentElement",value:function createDocumentElement(h){var d=this.createElement(h.documentElement);return d.root=!0,d.addStylesFromStyleDefinition(),this.documentElement=d,d}},{key:"createElement",value:function createElement(h){var d=h.nodeName.replace(/^[^:]+:/,""),g=Document.elementTypes[d];return void 0!==g?new g(this,h):new Ye(this,h)}},{key:"createTextNode",value:function createTextNode(h){return new Je(this,h)}},{key:"setViewBox",value:function setViewBox(h){this.screen.setViewBox(function _objectSpread$1(h){for(var d=1;d<arguments.length;d++){var g,x=null!=arguments[d]?arguments[d]:{};if(d%2)$()(g=ownKeys$1(Object(x),!0)).call(g,(function(d){tt()(h,d,x[d])}));else if(V.a)R()(h,V()(x));else{var S;$()(S=ownKeys$1(Object(x))).call(S,(function(d){M()(h,d,j()(x,d))}))}}return h}({document:this},h))}},{key:"window",get:function get(){return this.screen.window}},{key:"fetch",get:function get(){return this.screen.fetch}},{key:"ctx",get:function get(){return this.screen.ctx}},{key:"emSize",get:function get(){var h=this.emSizeStack;return h[h.length-1]},set:function set(h){this.emSizeStack.push(h)}}]),Document}();function ownKeys$2(h,d){var g=Q()(h);if(X.a){var x=X()(h);d&&(x=U()(x).call(x,(function(d){return j()(h,d).enumerable}))),g.push.apply(g,x)}return g}function _objectSpread$2(h){for(var d=1;d<arguments.length;d++){var g,x=null!=arguments[d]?arguments[d]:{};if(d%2)$()(g=ownKeys$2(Object(x),!0)).call(g,(function(d){tt()(h,d,x[d])}));else if(V.a)R()(h,V()(x));else{var S;$()(S=ownKeys$2(Object(x))).call(S,(function(d){M()(h,d,j()(x,d))}))}}return h}Hr.createCanvas=function createCanvas(h,d){var g=document.createElement("canvas");return g.width=h,g.height=d,g},Hr.createImage=function createImage(h){return _createImage.apply(this,arguments)},Hr.elementTypes=Ur;var Gr=function(){function Canvg(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};rt()(this,Canvg),this.parser=new Le(g),this.screen=new De(h,g),this.options=g;var x=new Hr(this,g),S=x.createDocumentElement(d);this.document=x,this.documentElement=S}var h,d;return it()(Canvg,[{key:"fork",value:function fork(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(h,d,_objectSpread$2(_objectSpread$2({},this.options),g))}},{key:"forkString",value:function forkString(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(h,d,_objectSpread$2(_objectSpread$2({},this.options),g))}},{key:"ready",value:function ready(){return this.screen.ready()}},{key:"isReady",value:function isReady(){return this.screen.isReady()}},{key:"render",value:(d=K()(W.a.mark((function _callee(){var h,d=arguments;return W.a.wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:return h=d.length>0&&void 0!==d[0]?d[0]:{},this.start(_objectSpread$2({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},h)),g.next=4,this.ready();case 4:this.stop();case 5:case"end":return g.stop()}}),_callee,this)}))),function render(){return d.apply(this,arguments)})},{key:"start",value:function start(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=this.documentElement,g=this.screen,x=this.options;g.start(d,_objectSpread$2(_objectSpread$2({enableRedraw:!0},x),h))}},{key:"stop",value:function stop(){this.screen.stop()}},{key:"resize",value:function resize(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,g=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(h,d,g)}}],[{key:"from",value:(h=K()(W.a.mark((function _callee2(h,d){var g,x,S,b=arguments;return W.a.wrap((function _callee2$(E){for(;;)switch(E.prev=E.next){case 0:return g=b.length>2&&void 0!==b[2]?b[2]:{},x=new Le(g),E.next=4,x.parse(d);case 4:return S=E.sent,E.abrupt("return",new Canvg(h,S,g));case 6:case"end":return E.stop()}}),_callee2)}))),function from(d,g){return h.apply(this,arguments)})},{key:"fromString",value:function fromString(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},x=new Le(g),S=x.parseFromString(d);return new Canvg(h,S,g)}}]),Canvg}();var Xr=Object.freeze({__proto__:null,offscreen:function offscreen(){var d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=d.DOMParser,x={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:g,createCanvas:function createCanvas(h,d){return new OffscreenCanvas(h,d)},createImage:function createImage(d){return K()(W.a.mark((function _callee(){var g,x,S;return W.a.wrap((function _callee$(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,h(d);case 2:return g=b.sent,b.next=5,g.blob();case 5:return x=b.sent,b.next=8,createImageBitmap(x);case 8:return S=b.sent,b.abrupt("return",S);case 10:case"end":return b.stop()}}),_callee)})))()}};return"undefined"==typeof DOMParser&&void 0!==g||qt()(x,"DOMParser"),x},node:function node(h){var d=h.DOMParser,g=h.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:d,fetch:h.fetch,createCanvas:g.createCanvas,createImage:g.loadImage}}});d.default=Gr}.call(this,g(189),g(399))},8434:function(h,d,g){"use strict";var x=g(8436),S=g(8452).f,b=g(8508),E=g(8435),w=g(8458),_=g(8445),P=g(8444),wrapConstructor=function(h){var Wrapper=function(d,g,x){if(this instanceof h){switch(arguments.length){case 0:return new h;case 1:return new h(d);case 2:return new h(d,g)}return new h(d,g,x)}return h.apply(this,arguments)};return Wrapper.prototype=h.prototype,Wrapper};h.exports=function(h,d){var g,A,k,C,M,N,R,D,V=h.target,L=h.global,$=h.stat,B=h.proto,j=L?x:$?x[V]:(x[V]||{}).prototype,z=L?E:E[V]||(E[V]={}),U=z.prototype;for(k in d)g=!b(L?k:V+($?".":"#")+k,h.forced)&&j&&P(j,k),M=z[k],g&&(N=h.noTargetGet?(D=S(j,k))&&D.value:j[k]),C=g&&N?N:d[k],g&&typeof M==typeof C||(R=h.bind&&g?w(C,x):h.wrap&&g?wrapConstructor(C):B&&"function"==typeof C?w(Function.call,C):C,(h.sham||C&&C.sham||M&&M.sham)&&_(R,"sham",!0),z[k]=R,B&&(P(E,A=V+"Prototype")||_(E,A,{}),E[A][k]=C,h.real&&U&&!U[k]&&_(U,k,C)))}},8435:function(h,d){h.exports={}},8436:function(h,d,g){(function(d){var check=function(h){return h&&h.Math==Math&&h};h.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof d&&d)||function(){return this}()||Function("return this")()}).call(this,g(123))},8437:function(h,d){h.exports=function(h){try{return!!h()}catch(h){return!0}}},8438:function(h,d,g){var x=g(8435),S=g(8444),b=g(8499),E=g(8446).f;h.exports=function(h){var d=x.Symbol||(x.Symbol={});S(d,h)||E(d,h,{value:b.f(h)})}},8439:function(h,d,g){var x=g(8436),S=g(8487),b=g(8444),E=g(8475),w=g(8489),_=g(8510),P=S("wks"),A=x.Symbol,k=_?A:A&&A.withoutSetter||E;h.exports=function(h){return b(P,h)&&(w||"string"==typeof P[h])||(w&&b(A,h)?P[h]=A[h]:P[h]=k("Symbol."+h)),P[h]}},8440:function(h,d){h.exports=function(h){return"object"==typeof h?null!==h:"function"==typeof h}},8441:function(h,d,g){var x=g(8440);h.exports=function(h){if(!x(h))throw TypeError(String(h)+" is not an object");return h}},8442:function(h,d,g){var x=g(8435);h.exports=function(h){return x[h+"Prototype"]}},8443:function(h,d,g){var x=g(8437);h.exports=!x((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8444:function(h,d,g){var x=g(8447),S={}.hasOwnProperty;h.exports=Object.hasOwn||function hasOwn(h,d){return S.call(x(h),d)}},8445:function(h,d,g){var x=g(8443),S=g(8446),b=g(8456);h.exports=x?function(h,d,g){return S.f(h,d,b(1,g))}:function(h,d,g){return h[d]=g,h}},8446:function(h,d,g){var x=g(8443),S=g(8507),b=g(8441),E=g(8474),w=Object.defineProperty;d.f=x?w:function defineProperty(h,d,g){if(b(h),d=E(d,!0),b(g),S)try{return w(h,d,g)}catch(h){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(h[d]=g.value),h}},8447:function(h,d,g){var x=g(8457);h.exports=function(h){return Object(x(h))}},8448:function(h,d){h.exports=function(h){if("function"!=typeof h)throw TypeError(String(h)+" is not a function");return h}},8449:function(h,d,g){var x=g(8435),S=g(8436),aFunction=function(h){return"function"==typeof h?h:void 0};h.exports=function(h,d){return arguments.length<2?aFunction(x[h])||aFunction(S[h]):x[h]&&x[h][d]||S[h]&&S[h][d]}},8450:function(h,d,g){var x=g(8484),S=g(8457);h.exports=function(h){return x(S(h))}},8451:function(h,d,g){var x=g(8486),S=Math.min;h.exports=function(h){return h>0?S(x(h),9007199254740991):0}},8452:function(h,d,g){var x=g(8443),S=g(8506),b=g(8456),E=g(8450),w=g(8474),_=g(8444),P=g(8507),A=Object.getOwnPropertyDescriptor;d.f=x?A:function getOwnPropertyDescriptor(h,d){if(h=E(h),d=w(d,!0),P)try{return A(h,d)}catch(h){}if(_(h,d))return b(!S.f.call(h,d),h[d])}},8453:function(h,d){h.exports=!0},8454:function(h,d,g){var x=g(8458),S=g(8484),b=g(8447),E=g(8451),w=g(8512),_=[].push,createMethod=function(h){var d=1==h,g=2==h,P=3==h,A=4==h,k=6==h,C=7==h,M=5==h||k;return function(N,R,D,V){for(var L,$,B=b(N),j=S(B),z=x(R,D,3),U=E(j.length),G=0,X=V||w,Y=d?X(N,U):g||C?X(N,0):void 0;U>G;G++)if((M||G in j)&&($=z(L=j[G],G,B),h))if(d)Y[G]=$;else if($)switch(h){case 3:return!0;case 5:return L;case 6:return G;case 2:_.call(Y,L)}else switch(h){case 4:return!1;case 7:_.call(Y,L)}return k?-1:P||A?A:Y}};h.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterOut:createMethod(7)}},8455:function(h,d,g){g(8524);var x=g(8605),S=g(8436),b=g(8471),E=g(8445),w=g(8463),_=g(8439)("toStringTag");for(var P in x){var A=S[P],k=A&&A.prototype;k&&b(k)!==_&&E(k,_,P),w[P]=w.Array}},8456:function(h,d){h.exports=function(h,d){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:d}}},8457:function(h,d){h.exports=function(h){if(null==h)throw TypeError("Can't call method on "+h);return h}},8458:function(h,d,g){var x=g(8448);h.exports=function(h,d,g){if(x(h),void 0===d)return h;switch(g){case 0:return function(){return h.call(d)};case 1:return function(g){return h.call(d,g)};case 2:return function(g,x){return h.call(d,g,x)};case 3:return function(g,x,S){return h.call(d,g,x,S)}}return function(){return h.apply(d,arguments)}}},8459:function(h,d,g){var x=g(8467);h.exports=Array.isArray||function isArray(h){return"Array"==x(h)}},8460:function(h,d,g){var x,S=g(8441),b=g(8518),E=g(8497),w=g(8469),_=g(8520),P=g(8485),A=g(8479),k=A("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(h){return"<script>"+h+"<\/script>"},NullProtoObject=function(){try{x=document.domain&&new ActiveXObject("htmlfile")}catch(h){}var h,d;NullProtoObject=x?function(h){h.write(scriptTag("")),h.close();var d=h.parentWindow.Object;return h=null,d}(x):((d=P("iframe")).style.display="none",_.appendChild(d),d.src=String("javascript:"),(h=d.contentWindow.document).open(),h.write(scriptTag("document.F=Object")),h.close(),h.F);for(var g=E.length;g--;)delete NullProtoObject.prototype[E[g]];return NullProtoObject()};w[k]=!0,h.exports=Object.create||function create(h,d){var g;return null!==h?(EmptyConstructor.prototype=S(h),g=new EmptyConstructor,EmptyConstructor.prototype=null,g[k]=h):g=NullProtoObject(),void 0===d?g:b(g,d)}},8461:function(h,d,g){var x=g(8500),S=g(8446).f,b=g(8445),E=g(8444),w=g(8577),_=g(8439)("toStringTag");h.exports=function(h,d,g,P){if(h){var A=g?h:h.prototype;E(A,_)||S(A,_,{configurable:!0,value:d}),P&&!x&&b(A,"toString",w)}}},8462:function(h,d,g){var x,S,b,E=g(8578),w=g(8436),_=g(8440),P=g(8445),A=g(8444),k=g(8488),C=g(8479),M=g(8469),N=w.WeakMap;if(E||k.state){var R=k.state||(k.state=new N),D=R.get,V=R.has,L=R.set;x=function(h,d){if(V.call(R,h))throw new TypeError("Object already initialized");return d.facade=h,L.call(R,h,d),d},S=function(h){return D.call(R,h)||{}},b=function(h){return V.call(R,h)}}else{var $=C("state");M[$]=!0,x=function(h,d){if(A(h,$))throw new TypeError("Object already initialized");return d.facade=h,P(h,$,d),d},S=function(h){return A(h,$)?h[$]:{}},b=function(h){return A(h,$)}}h.exports={set:x,get:S,has:b,enforce:function(h){return b(h)?S(h):x(h,{})},getterFor:function(h){return function(d){var g;if(!_(d)||(g=S(d)).type!==h)throw TypeError("Incompatible receiver, "+h+" required");return g}}}},8463:function(h,d){h.exports={}},8464:function(h,d,g){var x=g(8444),S=g(8447),b=g(8479),E=g(8504),w=b("IE_PROTO"),_=Object.prototype;h.exports=E?Object.getPrototypeOf:function(h){return h=S(h),x(h,w)?h[w]:"function"==typeof h.constructor&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?_:null}},8465:function(h,d,g){"use strict";var x=g(8606).charAt,S=g(8462),b=g(8503),E=S.set,w=S.getterFor("String Iterator");b(String,"String",(function(h){E(this,{type:"String Iterator",string:String(h),index:0})}),(function next(){var h,d=w(this),g=d.string,S=d.index;return S>=g.length?{value:void 0,done:!0}:(h=x(g,S),d.index+=h.length,{value:h,done:!1})}))},8466:function(h,d,g){var x=g(8441),S=g(8531),b=g(8451),E=g(8458),w=g(8481),_=g(8530),Result=function(h,d){this.stopped=h,this.result=d};h.exports=function(h,d,g){var P,A,k,C,M,N,R,D=g&&g.that,V=!(!g||!g.AS_ENTRIES),L=!(!g||!g.IS_ITERATOR),$=!(!g||!g.INTERRUPTED),B=E(d,D,1+V+$),stop=function(h){return P&&_(P),new Result(!0,h)},callFn=function(h){return V?(x(h),$?B(h[0],h[1],stop):B(h[0],h[1])):$?B(h,stop):B(h)};if(L)P=h;else{if("function"!=typeof(A=w(h)))throw TypeError("Target is not iterable");if(S(A)){for(k=0,C=b(h.length);C>k;k++)if((M=callFn(h[k]))&&M instanceof Result)return M;return new Result(!1)}P=A.call(h)}for(N=P.next;!(R=N.call(P)).done;){try{M=callFn(R.value)}catch(h){throw _(P),h}if("object"==typeof M&&M&&M instanceof Result)return M}return new Result(!1)}},8467:function(h,d){var g={}.toString;h.exports=function(h){return g.call(h).slice(8,-1)}},8468:function(h,d,g){var x,S,b=g(8436),E=g(8490),w=b.process,_=w&&w.versions,P=_&&_.v8;P?S=(x=P.split("."))[0]<4?1:x[0]+x[1]:E&&(!(x=E.match(/Edge\/(\d+)/))||x[1]>=74)&&(x=E.match(/Chrome\/(\d+)/))&&(S=x[1]),h.exports=S&&+S},8469:function(h,d){h.exports={}},8470:function(h,d,g){var x=g(8445);h.exports=function(h,d,g,S){S&&S.enumerable?h[d]=g:x(h,d,g)}},8471:function(h,d,g){var x=g(8500),S=g(8467),b=g(8439)("toStringTag"),E="Arguments"==S(function(){return arguments}());h.exports=x?S:function(h){var d,g,x;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(g=function(h,d){try{return h[d]}catch(h){}}(d=Object(h),b))?g:E?S(d):"Object"==(x=S(d))&&"function"==typeof d.callee?"Arguments":x}},8472:function(h,d,g){"use strict";var x=g(8437);h.exports=function(h,d){var g=[][h];return!!g&&x((function(){g.call(null,d||function(){throw 1},1)}))}},8473:function(h,d,g){"use strict";var x=g(8448),PromiseCapability=function(h){var d,g;this.promise=new h((function(h,x){if(void 0!==d||void 0!==g)throw TypeError("Bad Promise constructor");d=h,g=x})),this.resolve=x(d),this.reject=x(g)};h.exports.f=function(h){return new PromiseCapability(h)}},8474:function(h,d,g){var x=g(8440);h.exports=function(h,d){if(!x(h))return h;var g,S;if(d&&"function"==typeof(g=h.toString)&&!x(S=g.call(h)))return S;if("function"==typeof(g=h.valueOf)&&!x(S=g.call(h)))return S;if(!d&&"function"==typeof(g=h.toString)&&!x(S=g.call(h)))return S;throw TypeError("Can't convert object to primitive value")}},8475:function(h,d){var g=0,x=Math.random();h.exports=function(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++g+x).toString(36)}},8476:function(h,d){h.exports="\t\n\v\f\r \u2028\u2029\ufeff"},8477:function(h,d,g){var x=g(8437),S=g(8439),b=g(8468),E=S("species");h.exports=function(h){return b>=51||!x((function(){var d=[];return(d.constructor={})[E]=function(){return{foo:1}},1!==d[h](Boolean).foo}))}},8478:function(h,d,g){"use strict";var x=g(8474),S=g(8446),b=g(8456);h.exports=function(h,d,g){var E=x(d);E in h?S.f(h,E,b(0,g)):h[E]=g}},8479:function(h,d,g){var x=g(8487),S=g(8475),b=x("keys");h.exports=function(h){return b[h]||(b[h]=S(h))}},8480:function(h,d,g){var x=g(8441),S=g(8604);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var h,d=!1,g={};try{(h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(g,[]),d=g instanceof Array}catch(h){}return function setPrototypeOf(g,b){return x(g),S(b),d?h.call(g,b):g.__proto__=b,g}}():void 0)},8481:function(h,d,g){var x=g(8471),S=g(8463),b=g(8439)("iterator");h.exports=function(h){if(null!=h)return h[b]||h["@@iterator"]||S[x(h)]}},8482:function(h,d,g){var x=g(8467),S=g(8436);h.exports="process"==x(S.process)},8483:function(h,d){h.exports=function(h){try{return{error:!1,value:h()}}catch(h){return{error:!0,value:h}}}},8484:function(h,d,g){var x=g(8437),S=g(8467),b="".split;h.exports=x((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==S(h)?b.call(h,""):Object(h)}:Object},8485:function(h,d,g){var x=g(8436),S=g(8440),b=x.document,E=S(b)&&S(b.createElement);h.exports=function(h){return E?b.createElement(h):{}}},8486:function(h,d){var g=Math.ceil,x=Math.floor;h.exports=function(h){return isNaN(h=+h)?0:(h>0?x:g)(h)}},8487:function(h,d,g){var x=g(8453),S=g(8488);(h.exports=function(h,d){return S[h]||(S[h]=void 0!==d?d:{})})("versions",[]).push({version:"3.14.0",mode:x?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},8488:function(h,d,g){var x=g(8436),S=g(8559),b=x["__core-js_shared__"]||S("__core-js_shared__",{});h.exports=b},8489:function(h,d,g){var x=g(8468),S=g(8437);h.exports=!!Object.getOwnPropertySymbols&&!S((function(){var h=Symbol();return!String(h)||!(Object(h)instanceof Symbol)||!Symbol.sham&&x&&x<41}))},8490:function(h,d,g){var x=g(8449);h.exports=x("navigator","userAgent")||""},8491:function(h,d,g){var x=g(8457),S="["+g(8476)+"]",b=RegExp("^"+S+S+"*"),E=RegExp(S+S+"*$"),createMethod=function(h){return function(d){var g=String(x(d));return 1&h&&(g=g.replace(b,"")),2&h&&(g=g.replace(E,"")),g}};h.exports={start:createMethod(1),end:createMethod(2),trim:createMethod(3)}},8492:function(h,d,g){h.exports=g(8575)},8493:function(h,d){},8494:function(h,d,g){var x=g(8519),S=g(8497);h.exports=Object.keys||function keys(h){return x(h,S)}},8495:function(h,d,g){var x=g(8450),S=g(8451),b=g(8496),createMethod=function(h){return function(d,g,E){var w,_=x(d),P=S(_.length),A=b(E,P);if(h&&g!=g){for(;P>A;)if((w=_[A++])!=w)return!0}else for(;P>A;A++)if((h||A in _)&&_[A]===g)return h||A||0;return!h&&-1}};h.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},8496:function(h,d,g){var x=g(8486),S=Math.max,b=Math.min;h.exports=function(h,d){var g=x(h);return g<0?S(g+d,0):b(g,d)}},8497:function(h,d){h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8498:function(h,d,g){var x=g(8519),S=g(8497).concat("length","prototype");d.f=Object.getOwnPropertyNames||function getOwnPropertyNames(h){return x(h,S)}},8499:function(h,d,g){var x=g(8439);d.f=x},8500:function(h,d,g){var x={};x[g(8439)("toStringTag")]="z",h.exports="[object z]"===String(x)},8501:function(h,d,g){h.exports=g(8602)},8502:function(h,d){h.exports=function(){}},8503:function(h,d,g){"use strict";var x=g(8434),S=g(8603),b=g(8464),E=g(8480),w=g(8461),_=g(8445),P=g(8470),A=g(8439),k=g(8453),C=g(8463),M=g(8525),N=M.IteratorPrototype,R=M.BUGGY_SAFARI_ITERATORS,D=A("iterator"),returnThis=function(){return this};h.exports=function(h,d,g,A,M,V,L){S(g,d,A);var $,B,j,getIterationMethod=function(h){if(h===M&&Y)return Y;if(!R&&h in G)return G[h];switch(h){case"keys":return function keys(){return new g(this,h)};case"values":return function values(){return new g(this,h)};case"entries":return function entries(){return new g(this,h)}}return function(){return new g(this)}},z=d+" Iterator",U=!1,G=h.prototype,X=G[D]||G["@@iterator"]||M&&G[M],Y=!R&&X||getIterationMethod(M),Q="Array"==d&&G.entries||X;if(Q&&($=b(Q.call(new h)),N!==Object.prototype&&$.next&&(k||b($)===N||(E?E($,N):"function"!=typeof $[D]&&_($,D,returnThis)),w($,z,!0,!0),k&&(C[z]=returnThis))),"values"==M&&X&&"values"!==X.name&&(U=!0,Y=function values(){return X.call(this)}),k&&!L||G[D]===Y||_(G,D,Y),C[d]=Y,M)if(B={values:getIterationMethod("values"),keys:V?Y:getIterationMethod("keys"),entries:getIterationMethod("entries")},L)for(j in B)(R||U||!(j in G))&&P(G,j,B[j]);else x({target:d,proto:!0,forced:R||U},B);return B}},8504:function(h,d,g){var x=g(8437);h.exports=!x((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}))},8505:function(h,d){h.exports=function(h,d,g){if(!(h instanceof d))throw TypeError("Incorrect "+(g?g+" ":"")+"invocation");return h}},8506:function(h,d,g){"use strict";var x={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,b=S&&!x.call({1:2},1);d.f=b?function propertyIsEnumerable(h){var d=S(this,h);return!!d&&d.enumerable}:x},8507:function(h,d,g){var x=g(8443),S=g(8437),b=g(8485);h.exports=!x&&!S((function(){return 7!=Object.defineProperty(b("div"),"a",{get:function(){return 7}}).a}))},8508:function(h,d,g){var x=g(8437),S=/#|\.prototype\./,isForced=function(h,d){var g=E[b(h)];return g==_||g!=w&&("function"==typeof d?x(d):!!d)},b=isForced.normalize=function(h){return String(h).replace(S,".").toLowerCase()},E=isForced.data={},w=isForced.NATIVE="N",_=isForced.POLYFILL="P";h.exports=isForced},8509:function(h,d,g){var x=g(8558);h.exports=function(h){if(x(h))throw TypeError("The method doesn't accept regular expressions");return h}},8510:function(h,d,g){var x=g(8489);h.exports=x&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8511:function(h,d,g){var x=g(8439)("match");h.exports=function(h){var d=/./;try{"/./"[h](d)}catch(g){try{return d[x]=!1,"/./"[h](d)}catch(h){}}return!1}},8512:function(h,d,g){var x=g(8440),S=g(8459),b=g(8439)("species");h.exports=function(h,d){var g;return S(h)&&("function"!=typeof(g=h.constructor)||g!==Array&&!S(g.prototype)?x(g)&&null===(g=g[b])&&(g=void 0):g=void 0),new(void 0===g?Array:g)(0===d?0:d)}},8513:function(h,d,g){h.exports=g(8572)},8514:function(h,d,g){g(8573);var x=g(8435);h.exports=x.Array.isArray},8515:function(h,d,g){g(8516),g(8493),g(8517),g(8579),g(8580),g(8581),g(8582),g(8523),g(8583),g(8584),g(8585),g(8586),g(8587),g(8588),g(8589),g(8590),g(8591),g(8592),g(8593),g(8594);var x=g(8435);h.exports=x.Symbol},8516:function(h,d,g){"use strict";var x=g(8434),S=g(8437),b=g(8459),E=g(8440),w=g(8447),_=g(8451),P=g(8478),A=g(8512),k=g(8477),C=g(8439),M=g(8468),N=C("isConcatSpreadable"),R=M>=51||!S((function(){var h=[];return h[N]=!1,h.concat()[0]!==h})),D=k("concat"),isConcatSpreadable=function(h){if(!E(h))return!1;var d=h[N];return void 0!==d?!!d:b(h)};x({target:"Array",proto:!0,forced:!R||!D},{concat:function concat(h){var d,g,x,S,b,E=w(this),k=A(E,0),C=0;for(d=-1,x=arguments.length;d<x;d++)if(isConcatSpreadable(b=-1===d?E:arguments[d])){if(C+(S=_(b.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(g=0;g<S;g++,C++)g in b&&P(k,C,b[g])}else{if(C>=9007199254740991)throw TypeError("Maximum allowed index exceeded");P(k,C++,b)}return k.length=C,k}})},8517:function(h,d,g){"use strict";var x=g(8434),S=g(8436),b=g(8449),E=g(8453),w=g(8443),_=g(8489),P=g(8510),A=g(8437),k=g(8444),C=g(8459),M=g(8440),N=g(8441),R=g(8447),D=g(8450),V=g(8474),L=g(8456),$=g(8460),B=g(8494),j=g(8498),z=g(8576),U=g(8521),G=g(8452),X=g(8446),Y=g(8506),Q=g(8445),q=g(8470),W=g(8487),Z=g(8479),K=g(8469),J=g(8475),tt=g(8439),et=g(8499),rt=g(8438),nt=g(8461),it=g(8462),at=g(8454).forEach,ot=Z("hidden"),ut=tt("toPrimitive"),st=it.set,ct=it.getterFor("Symbol"),lt=Object.prototype,ft=S.Symbol,ht=b("JSON","stringify"),pt=G.f,vt=X.f,yt=z.f,dt=Y.f,gt=W("symbols"),mt=W("op-symbols"),xt=W("string-to-symbol-registry"),St=W("symbol-to-string-registry"),bt=W("wks"),Et=S.QObject,wt=!Et||!Et.prototype||!Et.prototype.findChild,_t=w&&A((function(){return 7!=$(vt({},"a",{get:function(){return vt(this,"a",{value:7}).a}})).a}))?function(h,d,g){var x=pt(lt,d);x&&delete lt[d],vt(h,d,g),x&&h!==lt&&vt(lt,d,x)}:vt,wrap=function(h,d){var g=gt[h]=$(ft.prototype);return st(g,{type:"Symbol",tag:h,description:d}),w||(g.description=d),g},Pt=P?function(h){return"symbol"==typeof h}:function(h){return Object(h)instanceof ft},At=function defineProperty(h,d,g){h===lt&&At(mt,d,g),N(h);var x=V(d,!0);return N(g),k(gt,x)?(g.enumerable?(k(h,ot)&&h[ot][x]&&(h[ot][x]=!1),g=$(g,{enumerable:L(0,!1)})):(k(h,ot)||vt(h,ot,L(1,{})),h[ot][x]=!0),_t(h,x,g)):vt(h,x,g)},Tt=function defineProperties(h,d){N(h);var g=D(d),x=B(g).concat(Mt(g));return at(x,(function(d){w&&!kt.call(g,d)||At(h,d,g[d])})),h},kt=function propertyIsEnumerable(h){var d=V(h,!0),g=dt.call(this,d);return!(this===lt&&k(gt,d)&&!k(mt,d))&&(!(g||!k(this,d)||!k(gt,d)||k(this,ot)&&this[ot][d])||g)},Ct=function getOwnPropertyDescriptor(h,d){var g=D(h),x=V(d,!0);if(g!==lt||!k(gt,x)||k(mt,x)){var S=pt(g,x);return!S||!k(gt,x)||k(g,ot)&&g[ot][x]||(S.enumerable=!0),S}},Ot=function getOwnPropertyNames(h){var d=yt(D(h)),g=[];return at(d,(function(h){k(gt,h)||k(K,h)||g.push(h)})),g},Mt=function getOwnPropertySymbols(h){var d=h===lt,g=yt(d?mt:D(h)),x=[];return at(g,(function(h){!k(gt,h)||d&&!k(lt,h)||x.push(gt[h])})),x};(_||(q((ft=function Symbol(){if(this instanceof ft)throw TypeError("Symbol is not a constructor");var h=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,d=J(h),setter=function(h){this===lt&&setter.call(mt,h),k(this,ot)&&k(this[ot],d)&&(this[ot][d]=!1),_t(this,d,L(1,h))};return w&&wt&&_t(lt,d,{configurable:!0,set:setter}),wrap(d,h)}).prototype,"toString",(function toString(){return ct(this).tag})),q(ft,"withoutSetter",(function(h){return wrap(J(h),h)})),Y.f=kt,X.f=At,G.f=Ct,j.f=z.f=Ot,U.f=Mt,et.f=function(h){return wrap(tt(h),h)},w&&(vt(ft.prototype,"description",{configurable:!0,get:function description(){return ct(this).description}}),E||q(lt,"propertyIsEnumerable",kt,{unsafe:!0}))),x({global:!0,wrap:!0,forced:!_,sham:!_},{Symbol:ft}),at(B(bt),(function(h){rt(h)})),x({target:"Symbol",stat:!0,forced:!_},{for:function(h){var d=String(h);if(k(xt,d))return xt[d];var g=ft(d);return xt[d]=g,St[g]=d,g},keyFor:function keyFor(h){if(!Pt(h))throw TypeError(h+" is not a symbol");if(k(St,h))return St[h]},useSetter:function(){wt=!0},useSimple:function(){wt=!1}}),x({target:"Object",stat:!0,forced:!_,sham:!w},{create:function create(h,d){return void 0===d?$(h):Tt($(h),d)},defineProperty:At,defineProperties:Tt,getOwnPropertyDescriptor:Ct}),x({target:"Object",stat:!0,forced:!_},{getOwnPropertyNames:Ot,getOwnPropertySymbols:Mt}),x({target:"Object",stat:!0,forced:A((function(){U.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(h){return U.f(R(h))}}),ht)&&x({target:"JSON",stat:!0,forced:!_||A((function(){var h=ft();return"[null]"!=ht([h])||"{}"!=ht({a:h})||"{}"!=ht(Object(h))}))},{stringify:function stringify(h,d,g){for(var x,S=[h],b=1;arguments.length>b;)S.push(arguments[b++]);if(x=d,(M(d)||void 0!==h)&&!Pt(h))return C(d)||(d=function(h,d){if("function"==typeof x&&(d=x.call(this,h,d)),!Pt(d))return d}),S[1]=d,ht.apply(null,S)}});ft.prototype[ut]||Q(ft.prototype,ut,ft.prototype.valueOf),nt(ft,"Symbol"),K[ot]=!0},8518:function(h,d,g){var x=g(8443),S=g(8446),b=g(8441),E=g(8494);h.exports=x?Object.defineProperties:function defineProperties(h,d){b(h);for(var g,x=E(d),w=x.length,_=0;w>_;)S.f(h,g=x[_++],d[g]);return h}},8519:function(h,d,g){var x=g(8444),S=g(8450),b=g(8495).indexOf,E=g(8469);h.exports=function(h,d){var g,w=S(h),_=0,P=[];for(g in w)!x(E,g)&&x(w,g)&&P.push(g);for(;d.length>_;)x(w,g=d[_++])&&(~b(P,g)||P.push(g));return P}},8520:function(h,d,g){var x=g(8449);h.exports=x("document","documentElement")},8521:function(h,d){d.f=Object.getOwnPropertySymbols},8522:function(h,d,g){var x=g(8488),S=Function.toString;"function"!=typeof x.inspectSource&&(x.inspectSource=function(h){return S.call(h)}),h.exports=x.inspectSource},8523:function(h,d,g){g(8438)("iterator")},8524:function(h,d,g){"use strict";var x=g(8450),S=g(8502),b=g(8463),E=g(8462),w=g(8503),_=E.set,P=E.getterFor("Array Iterator");h.exports=w(Array,"Array",(function(h,d){_(this,{type:"Array Iterator",target:x(h),index:0,kind:d})}),(function(){var h=P(this),d=h.target,g=h.kind,x=h.index++;return!d||x>=d.length?(h.target=void 0,{value:void 0,done:!0}):"keys"==g?{value:x,done:!1}:"values"==g?{value:d[x],done:!1}:{value:[x,d[x]],done:!1}}),"values"),b.Arguments=b.Array,S("keys"),S("values"),S("entries")},8525:function(h,d,g){"use strict";var x,S,b,E=g(8437),w=g(8464),_=g(8445),P=g(8444),A=g(8439),k=g(8453),C=A("iterator"),M=!1;[].keys&&("next"in(b=[].keys())?(S=w(w(b)))!==Object.prototype&&(x=S):M=!0);var N=null==x||E((function(){var h={};return x[C].call(h)!==h}));N&&(x={}),k&&!N||P(x,C)||_(x,C,(function(){return this})),h.exports={IteratorPrototype:x,BUGGY_SAFARI_ITERATORS:M}},8526:function(h,d,g){var x=g(8607),S=g(8528),b=g(8533);h.exports=function _unsupportedIterableToArray(h,d){var g;if(h){if("string"==typeof h)return b(h,d);var E=x(g=Object.prototype.toString.call(h)).call(g,8,-1);return"Object"===E&&h.constructor&&(E=h.constructor.name),"Map"===E||"Set"===E?S(h):"Arguments"===E||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?b(h,d):void 0}},h.exports.default=h.exports,h.exports.__esModule=!0},8527:function(h,d,g){var x=g(8609),S=Array.prototype;h.exports=function(h){var d=h.slice;return h===S||h instanceof Array&&d===S.slice?x:d}},8528:function(h,d,g){h.exports=g(8611)},8529:function(h,d,g){g(8465),g(8612);var x=g(8435);h.exports=x.Array.from},8530:function(h,d,g){var x=g(8441);h.exports=function(h){var d=h.return;if(void 0!==d)return x(d.call(h)).value}},8531:function(h,d,g){var x=g(8439),S=g(8463),b=x("iterator"),E=Array.prototype;h.exports=function(h){return void 0!==h&&(S.Array===h||E[b]===h)}},8532:function(h,d,g){var x=g(8439)("iterator"),S=!1;try{var b=0,E={next:function(){return{done:!!b++}},return:function(){S=!0}};E[x]=function(){return this},Array.from(E,(function(){throw 2}))}catch(h){}h.exports=function(h,d){if(!d&&!S)return!1;var g=!1;try{var b={};b[x]=function(){return{next:function(){return{done:g=!0}}}},h(b)}catch(h){}return g}},8533:function(h,d){h.exports=function _arrayLikeToArray(h,d){(null==d||d>h.length)&&(d=h.length);for(var g=0,x=new Array(d);g<d;g++)x[g]=h[g];return x},h.exports.default=h.exports,h.exports.__esModule=!0},8534:function(h,d,g){g(8618);var x=g(8435).Object,S=h.exports=function defineProperty(h,d,g){return x.defineProperty(h,d,g)};x.defineProperty.sham&&(S.sham=!0)},8535:function(h,d,g){g(8636);var x=g(8435).Object,S=h.exports=function getOwnPropertyDescriptor(h,d){return x.getOwnPropertyDescriptor(h,d)};x.getOwnPropertyDescriptor.sham&&(S.sham=!0)},8536:function(h,d,g){g(8537),g(8493),g(8653),g(8545),g(8546),g(8658),g(8465),g(8455);var x=g(8435);h.exports=x.Promise},8537:function(h,d,g){"use strict";var x=g(8434),S=g(8464),b=g(8480),E=g(8460),w=g(8445),_=g(8456),P=g(8466),A=function AggregateError(h,d){var g=this;if(!(g instanceof A))return new A(h,d);b&&(g=b(new Error(void 0),S(g))),void 0!==d&&w(g,"message",String(d));var x=[];return P(h,x.push,{that:x}),w(g,"errors",x),g};A.prototype=E(Error.prototype,{constructor:_(5,A),message:_(5,""),name:_(5,"AggregateError")}),x({global:!0},{AggregateError:A})},8538:function(h,d,g){var x=g(8436);h.exports=x.Promise},8539:function(h,d,g){var x=g(8470);h.exports=function(h,d,g){for(var S in d)g&&g.unsafe&&h[S]?h[S]=d[S]:x(h,S,d[S],g);return h}},8540:function(h,d,g){"use strict";var x=g(8449),S=g(8446),b=g(8439),E=g(8443),w=b("species");h.exports=function(h){var d=x(h),g=S.f;E&&d&&!d[w]&&g(d,w,{configurable:!0,get:function(){return this}})}},8541:function(h,d,g){var x=g(8441),S=g(8448),b=g(8439)("species");h.exports=function(h,d){var g,E=x(h).constructor;return void 0===E||null==(g=x(E)[b])?d:S(g)}},8542:function(h,d,g){var x,S,b,E=g(8436),w=g(8437),_=g(8458),P=g(8520),A=g(8485),k=g(8543),C=g(8482),M=E.location,N=E.setImmediate,R=E.clearImmediate,D=E.process,V=E.MessageChannel,L=E.Dispatch,$=0,B={},run=function(h){if(B.hasOwnProperty(h)){var d=B[h];delete B[h],d()}},runner=function(h){return function(){run(h)}},listener=function(h){run(h.data)},post=function(h){E.postMessage(h+"",M.protocol+"//"+M.host)};N&&R||(N=function setImmediate(h){for(var d=[],g=1;arguments.length>g;)d.push(arguments[g++]);return B[++$]=function(){("function"==typeof h?h:Function(h)).apply(void 0,d)},x($),$},R=function clearImmediate(h){delete B[h]},C?x=function(h){D.nextTick(runner(h))}:L&&L.now?x=function(h){L.now(runner(h))}:V&&!k?(b=(S=new V).port2,S.port1.onmessage=listener,x=_(b.postMessage,b,1)):E.addEventListener&&"function"==typeof postMessage&&!E.importScripts&&M&&"file:"!==M.protocol&&!w(post)?(x=post,E.addEventListener("message",listener,!1)):x="onreadystatechange"in A("script")?function(h){P.appendChild(A("script")).onreadystatechange=function(){P.removeChild(this),run(h)}}:function(h){setTimeout(runner(h),0)}),h.exports={set:N,clear:R}},8543:function(h,d,g){var x=g(8490);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(x)},8544:function(h,d,g){var x=g(8441),S=g(8440),b=g(8473);h.exports=function(h,d){if(x(h),S(d)&&d.constructor===h)return d;var g=b.f(h);return(0,g.resolve)(d),g.promise}},8545:function(h,d,g){"use strict";var x=g(8434),S=g(8448),b=g(8473),E=g(8483),w=g(8466);x({target:"Promise",stat:!0},{allSettled:function allSettled(h){var d=this,g=b.f(d),x=g.resolve,_=g.reject,P=E((function(){var g=S(d.resolve),b=[],E=0,_=1;w(h,(function(h){var S=E++,w=!1;b.push(void 0),_++,g.call(d,h).then((function(h){w||(w=!0,b[S]={status:"fulfilled",value:h},--_||x(b))}),(function(h){w||(w=!0,b[S]={status:"rejected",reason:h},--_||x(b))}))})),--_||x(b)}));return P.error&&_(P.value),g.promise}})},8546:function(h,d,g){"use strict";var x=g(8434),S=g(8448),b=g(8449),E=g(8473),w=g(8483),_=g(8466);x({target:"Promise",stat:!0},{any:function any(h){var d=this,g=E.f(d),x=g.resolve,P=g.reject,A=w((function(){var g=S(d.resolve),E=[],w=0,A=1,k=!1;_(h,(function(h){var S=w++,_=!1;E.push(void 0),A++,g.call(d,h).then((function(h){_||k||(k=!0,x(h))}),(function(h){_||k||(_=!0,E[S]=h,--A||P(new(b("AggregateError"))(E,"No one promise resolved")))}))})),--A||P(new(b("AggregateError"))(E,"No one promise resolved"))}));return A.error&&P(A.value),g.promise}})},8547:function(h,d,g){h.exports=g(8664)},8548:function(h,d,g){"use strict";var x=g(8448),S=g(8440),b=[].slice,E={},construct=function(h,d,g){if(!(d in E)){for(var x=[],S=0;S<d;S++)x[S]="a["+S+"]";E[d]=Function("C,a","return new C("+x.join(",")+")")}return E[d](h,g)};h.exports=Function.bind||function bind(h){var d=x(this),g=b.call(arguments,1),E=function bound(){var x=g.concat(b.call(arguments));return this instanceof E?construct(d,x.length,x):d.apply(h,x)};return S(d.prototype)&&(E.prototype=d.prototype),E}},8549:function(h,d,g){h.exports=g(8709)},8550:function(h,d){h.exports=function _assertThisInitialized(h){if(void 0===h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h},h.exports.default=h.exports,h.exports.__esModule=!0},8551:function(h,d,g){var x=g(8549),S=g(8717);function _getPrototypeOf(d){return h.exports=_getPrototypeOf=x?S:function _getPrototypeOf(h){return h.__proto__||S(h)},h.exports.default=h.exports,h.exports.__esModule=!0,_getPrototypeOf(d)}h.exports=_getPrototypeOf,h.exports.default=h.exports,h.exports.__esModule=!0},8552:function(h,d,g){var x=g(8469),S=g(8440),b=g(8444),E=g(8446).f,w=g(8475),_=g(8791),P=w("meta"),A=0,k=Object.isExtensible||function(){return!0},setMetadata=function(h){E(h,P,{value:{objectID:"O"+ ++A,weakData:{}}})},C=h.exports={REQUIRED:!1,fastKey:function(h,d){if(!S(h))return"symbol"==typeof h?h:("string"==typeof h?"S":"P")+h;if(!b(h,P)){if(!k(h))return"F";if(!d)return"E";setMetadata(h)}return h[P].objectID},getWeakData:function(h,d){if(!b(h,P)){if(!k(h))return!0;if(!d)return!1;setMetadata(h)}return h[P].weakData},onFreeze:function(h){return _&&C.REQUIRED&&k(h)&&!b(h,P)&&setMetadata(h),h}};x[P]=!0},8553:function(h,d,g){h.exports=g(8554)},8554:function(h,d,g){var x=g(8555);h.exports=x},8555:function(h,d,g){var x=g(8556),S=String.prototype;h.exports=function(h){var d=h.startsWith;return"string"==typeof h||h===S||h instanceof String&&d===S.startsWith?x:d}},8556:function(h,d,g){g(8557);var x=g(8442);h.exports=x("String").startsWith},8557:function(h,d,g){"use strict";var x,S=g(8434),b=g(8452).f,E=g(8451),w=g(8509),_=g(8457),P=g(8511),A=g(8453),k="".startsWith,C=Math.min,M=P("startsWith");S({target:"String",proto:!0,forced:!!(A||M||(x=b(String.prototype,"startsWith"),!x||x.writable))&&!M},{startsWith:function startsWith(h){var d=String(_(this));w(h);var g=E(C(arguments.length>1?arguments[1]:void 0,d.length)),x=String(h);return k?k.call(d,x,g):d.slice(g,g+x.length)===x}})},8558:function(h,d,g){var x=g(8440),S=g(8467),b=g(8439)("match");h.exports=function(h){var d;return x(h)&&(void 0!==(d=h[b])?!!d:"RegExp"==S(h))}},8559:function(h,d,g){var x=g(8436),S=g(8445);h.exports=function(h,d){try{S(x,h,d)}catch(g){x[h]=d}return d}},8560:function(h,d,g){h.exports=g(8561)},8561:function(h,d,g){var x=g(8562);h.exports=x},8562:function(h,d,g){g(8563);var x=g(8435);h.exports=x.parseFloat},8563:function(h,d,g){var x=g(8434),S=g(8564);x({global:!0,forced:parseFloat!=S},{parseFloat:S})},8564:function(h,d,g){var x=g(8436),S=g(8491).trim,b=g(8476),E=x.parseFloat,w=1/E(b+"-0")!=-1/0;h.exports=w?function parseFloat(h){var d=S(String(h)),g=E(d);return 0===g&&"-"==d.charAt(0)?-0:g}:E},8565:function(h,d,g){h.exports=g(8566)},8566:function(h,d,g){var x=g(8567);h.exports=x},8567:function(h,d,g){var x=g(8568),S=Array.prototype;h.exports=function(h){var d=h.map;return h===S||h instanceof Array&&d===S.map?x:d}},8568:function(h,d,g){g(8569);var x=g(8442);h.exports=x("Array").map},8569:function(h,d,g){"use strict";var x=g(8434),S=g(8454).map;x({target:"Array",proto:!0,forced:!g(8477)("map")},{map:function map(h){return S(this,h,arguments.length>1?arguments[1]:void 0)}})},8570:function(h,d,g){var x=g(8571),S=g(8574),b=g(8526),E=g(8615);h.exports=function _slicedToArray(h,d){return x(h)||S(h,d)||b(h,d)||E()},h.exports.default=h.exports,h.exports.__esModule=!0},8571:function(h,d,g){var x=g(8513);h.exports=function _arrayWithHoles(h){if(x(h))return h},h.exports.default=h.exports,h.exports.__esModule=!0},8572:function(h,d,g){var x=g(8514);h.exports=x},8573:function(h,d,g){g(8434)({target:"Array",stat:!0},{isArray:g(8459)})},8574:function(h,d,g){var x=g(8492),S=g(8501);h.exports=function _iterableToArrayLimit(h,d){var g=h&&(void 0!==x&&S(h)||h["@@iterator"]);if(null!=g){var b,E,w=[],_=!0,P=!1;try{for(g=g.call(h);!(_=(b=g.next()).done)&&(w.push(b.value),!d||w.length!==d);_=!0);}catch(h){P=!0,E=h}finally{try{_||null==g.return||g.return()}finally{if(P)throw E}}return w}},h.exports.default=h.exports,h.exports.__esModule=!0},8575:function(h,d,g){var x=g(8515);g(8595),g(8596),g(8597),g(8598),g(8599),g(8600),g(8601),h.exports=x},8576:function(h,d,g){var x=g(8450),S=g(8498).f,b={}.toString,E="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];h.exports.f=function getOwnPropertyNames(h){return E&&"[object Window]"==b.call(h)?function(h){try{return S(h)}catch(h){return E.slice()}}(h):S(x(h))}},8577:function(h,d,g){"use strict";var x=g(8500),S=g(8471);h.exports=x?{}.toString:function toString(){return"[object "+S(this)+"]"}},8578:function(h,d,g){var x=g(8436),S=g(8522),b=x.WeakMap;h.exports="function"==typeof b&&/native code/.test(S(b))},8579:function(h,d,g){g(8438)("asyncIterator")},8580:function(h,d){},8581:function(h,d,g){g(8438)("hasInstance")},8582:function(h,d,g){g(8438)("isConcatSpreadable")},8583:function(h,d,g){g(8438)("match")},8584:function(h,d,g){g(8438)("matchAll")},8585:function(h,d,g){g(8438)("replace")},8586:function(h,d,g){g(8438)("search")},8587:function(h,d,g){g(8438)("species")},8588:function(h,d,g){g(8438)("split")},8589:function(h,d,g){g(8438)("toPrimitive")},8590:function(h,d,g){g(8438)("toStringTag")},8591:function(h,d,g){g(8438)("unscopables")},8592:function(h,d,g){var x=g(8436);g(8461)(x.JSON,"JSON",!0)},8593:function(h,d){},8594:function(h,d){},8595:function(h,d,g){g(8438)("asyncDispose")},8596:function(h,d,g){g(8438)("dispose")},8597:function(h,d,g){g(8438)("matcher")},8598:function(h,d,g){g(8438)("metadata")},8599:function(h,d,g){g(8438)("observable")},8600:function(h,d,g){g(8438)("patternMatch")},8601:function(h,d,g){g(8438)("replaceAll")},8602:function(h,d,g){g(8455),g(8465);var x=g(8481);h.exports=x},8603:function(h,d,g){"use strict";var x=g(8525).IteratorPrototype,S=g(8460),b=g(8456),E=g(8461),w=g(8463),returnThis=function(){return this};h.exports=function(h,d,g){var _=d+" Iterator";return h.prototype=S(x,{next:b(1,g)}),E(h,_,!1,!0),w[_]=returnThis,h}},8604:function(h,d,g){var x=g(8440);h.exports=function(h){if(!x(h)&&null!==h)throw TypeError("Can't set "+String(h)+" as a prototype");return h}},8605:function(h,d){h.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}},8606:function(h,d,g){var x=g(8486),S=g(8457),createMethod=function(h){return function(d,g){var b,E,w=String(S(d)),_=x(g),P=w.length;return _<0||_>=P?h?"":void 0:(b=w.charCodeAt(_))<55296||b>56319||_+1===P||(E=w.charCodeAt(_+1))<56320||E>57343?h?w.charAt(_):b:h?w.slice(_,_+2):E-56320+(b-55296<<10)+65536}};h.exports={codeAt:createMethod(!1),charAt:createMethod(!0)}},8607:function(h,d,g){h.exports=g(8608)},8608:function(h,d,g){var x=g(8527);h.exports=x},8609:function(h,d,g){g(8610);var x=g(8442);h.exports=x("Array").slice},8610:function(h,d,g){"use strict";var x=g(8434),S=g(8440),b=g(8459),E=g(8496),w=g(8451),_=g(8450),P=g(8478),A=g(8439),k=g(8477)("slice"),C=A("species"),M=[].slice,N=Math.max;x({target:"Array",proto:!0,forced:!k},{slice:function slice(h,d){var g,x,A,k=_(this),R=w(k.length),D=E(h,R),V=E(void 0===d?R:d,R);if(b(k)&&("function"!=typeof(g=k.constructor)||g!==Array&&!b(g.prototype)?S(g)&&null===(g=g[C])&&(g=void 0):g=void 0,g===Array||void 0===g))return M.call(k,D,V);for(x=new(void 0===g?Array:g)(N(V-D,0)),A=0;D<V;D++,A++)D in k&&P(x,A,k[D]);return x.length=A,x}})},8611:function(h,d,g){var x=g(8529);h.exports=x},8612:function(h,d,g){var x=g(8434),S=g(8613);x({target:"Array",stat:!0,forced:!g(8532)((function(h){Array.from(h)}))},{from:S})},8613:function(h,d,g){"use strict";var x=g(8458),S=g(8447),b=g(8614),E=g(8531),w=g(8451),_=g(8478),P=g(8481);h.exports=function from(h){var d,g,A,k,C,M,N=S(h),R="function"==typeof this?this:Array,D=arguments.length,V=D>1?arguments[1]:void 0,L=void 0!==V,$=P(N),B=0;if(L&&(V=x(V,D>2?arguments[2]:void 0,2)),null==$||R==Array&&E($))for(g=new R(d=w(N.length));d>B;B++)M=L?V(N[B],B):N[B],_(g,B,M);else for(C=(k=$.call(N)).next,g=new R;!(A=C.call(k)).done;B++)M=L?b(k,V,[A.value,B],!0):A.value,_(g,B,M);return g.length=B,g}},8614:function(h,d,g){var x=g(8441),S=g(8530);h.exports=function(h,d,g,b){try{return b?d(x(g)[0],g[1]):d(g)}catch(d){throw S(h),d}}},8615:function(h,d){h.exports=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},h.exports.default=h.exports,h.exports.__esModule=!0},8616:function(h,d,g){h.exports=g(8617)},8617:function(h,d,g){var x=g(8534);h.exports=x},8618:function(h,d,g){var x=g(8434),S=g(8443);x({target:"Object",stat:!0,forced:!S,sham:!S},{defineProperty:g(8446).f})},8619:function(h,d,g){h.exports=g(8620)},8620:function(h,d,g){var x=g(8621);h.exports=x},8621:function(h,d,g){g(8622);var x=g(8435).Object,S=h.exports=function defineProperties(h,d){return x.defineProperties(h,d)};x.defineProperties.sham&&(S.sham=!0)},8622:function(h,d,g){var x=g(8434),S=g(8443);x({target:"Object",stat:!0,forced:!S,sham:!S},{defineProperties:g(8518)})},8623:function(h,d,g){h.exports=g(8624)},8624:function(h,d,g){var x=g(8625);h.exports=x},8625:function(h,d,g){g(8626);var x=g(8435);h.exports=x.Object.getOwnPropertyDescriptors},8626:function(h,d,g){var x=g(8434),S=g(8443),b=g(8627),E=g(8450),w=g(8452),_=g(8478);x({target:"Object",stat:!0,sham:!S},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(h){for(var d,g,x=E(h),S=w.f,P=b(x),A={},k=0;P.length>k;)void 0!==(g=S(x,d=P[k++]))&&_(A,d,g);return A}})},8627:function(h,d,g){var x=g(8449),S=g(8498),b=g(8521),E=g(8441);h.exports=x("Reflect","ownKeys")||function ownKeys(h){var d=S.f(E(h)),g=b.f;return g?d.concat(g(h)):d}},8628:function(h,d,g){h.exports=g(8629)},8629:function(h,d,g){g(8455);var x=g(8630),S=g(8471),b=Array.prototype,E={DOMTokenList:!0,NodeList:!0};h.exports=function(h){var d=h.forEach;return h===b||h instanceof Array&&d===b.forEach||E.hasOwnProperty(S(h))?x:d}},8630:function(h,d,g){var x=g(8631);h.exports=x},8631:function(h,d,g){g(8632);var x=g(8442);h.exports=x("Array").forEach},8632:function(h,d,g){"use strict";var x=g(8434),S=g(8633);x({target:"Array",proto:!0,forced:[].forEach!=S},{forEach:S})},8633:function(h,d,g){"use strict";var x=g(8454).forEach,S=g(8472)("forEach");h.exports=S?[].forEach:function forEach(h){return x(this,h,arguments.length>1?arguments[1]:void 0)}},8634:function(h,d,g){h.exports=g(8635)},8635:function(h,d,g){var x=g(8535);h.exports=x},8636:function(h,d,g){var x=g(8434),S=g(8437),b=g(8450),E=g(8452).f,w=g(8443),_=S((function(){E(1)}));x({target:"Object",stat:!0,forced:!w||_,sham:!w},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(h,d){return E(b(h),d)}})},8637:function(h,d,g){h.exports=g(8638)},8638:function(h,d,g){var x=g(8639);h.exports=x},8639:function(h,d,g){var x=g(8640),S=Array.prototype;h.exports=function(h){var d=h.filter;return h===S||h instanceof Array&&d===S.filter?x:d}},8640:function(h,d,g){g(8641);var x=g(8442);h.exports=x("Array").filter},8641:function(h,d,g){"use strict";var x=g(8434),S=g(8454).filter;x({target:"Array",proto:!0,forced:!g(8477)("filter")},{filter:function filter(h){return S(this,h,arguments.length>1?arguments[1]:void 0)}})},8642:function(h,d,g){h.exports=g(8643)},8643:function(h,d,g){var x=g(8644);h.exports=x},8644:function(h,d,g){g(8517);var x=g(8435);h.exports=x.Object.getOwnPropertySymbols},8645:function(h,d,g){h.exports=g(8646)},8646:function(h,d,g){var x=g(8647);h.exports=x},8647:function(h,d,g){g(8648);var x=g(8435);h.exports=x.Object.keys},8648:function(h,d,g){var x=g(8434),S=g(8447),b=g(8494);x({target:"Object",stat:!0,forced:g(8437)((function(){b(1)}))},{keys:function keys(h){return b(S(h))}})},8649:function(h,d,g){h.exports=g(2120)},8650:function(h,d,g){var x=g(8651);function asyncGeneratorStep(h,d,g,S,b,E,w){try{var _=h[E](w),P=_.value}catch(h){return void g(h)}_.done?d(P):x.resolve(P).then(S,b)}h.exports=function _asyncToGenerator(h){return function(){var d=this,g=arguments;return new x((function(x,S){var b=h.apply(d,g);function _next(h){asyncGeneratorStep(b,x,S,_next,_throw,"next",h)}function _throw(h){asyncGeneratorStep(b,x,S,_next,_throw,"throw",h)}_next(void 0)}))}},h.exports.default=h.exports,h.exports.__esModule=!0},8651:function(h,d,g){h.exports=g(8652)},8652:function(h,d,g){var x=g(8536);g(8659),g(8660),g(8661),g(8662),h.exports=x},8653:function(h,d,g){"use strict";var x,S,b,E,w=g(8434),_=g(8453),P=g(8436),A=g(8449),k=g(8538),C=g(8470),M=g(8539),N=g(8480),R=g(8461),D=g(8540),V=g(8440),L=g(8448),$=g(8505),B=g(8522),j=g(8466),z=g(8532),U=g(8541),G=g(8542).set,X=g(8654),Y=g(8544),Q=g(8656),q=g(8473),W=g(8483),Z=g(8462),K=g(8508),J=g(8439),tt=g(8657),et=g(8482),rt=g(8468),nt=J("species"),it="Promise",at=Z.get,ot=Z.set,ut=Z.getterFor(it),st=k&&k.prototype,ct=k,lt=st,ft=P.TypeError,ht=P.document,pt=P.process,vt=q.f,yt=vt,dt=!!(ht&&ht.createEvent&&P.dispatchEvent),gt="function"==typeof PromiseRejectionEvent,mt=!1,xt=K(it,(function(){var h=B(ct)!==String(ct);if(!h&&66===rt)return!0;if(_&&!lt.finally)return!0;if(rt>=51&&/native code/.test(ct))return!1;var d=new ct((function(h){h(1)})),FakePromise=function(h){h((function(){}),(function(){}))};return(d.constructor={})[nt]=FakePromise,!(mt=d.then((function(){}))instanceof FakePromise)||!h&&tt&&!gt})),St=xt||!z((function(h){ct.all(h).catch((function(){}))})),isThenable=function(h){var d;return!(!V(h)||"function"!=typeof(d=h.then))&&d},notify=function(h,d){if(!h.notified){h.notified=!0;var g=h.reactions;X((function(){for(var x=h.value,S=1==h.state,b=0;g.length>b;){var E,w,_,P=g[b++],A=S?P.ok:P.fail,k=P.resolve,C=P.reject,M=P.domain;try{A?(S||(2===h.rejection&&onHandleUnhandled(h),h.rejection=1),!0===A?E=x:(M&&M.enter(),E=A(x),M&&(M.exit(),_=!0)),E===P.promise?C(ft("Promise-chain cycle")):(w=isThenable(E))?w.call(E,k,C):k(E)):C(x)}catch(h){M&&!_&&M.exit(),C(h)}}h.reactions=[],h.notified=!1,d&&!h.rejection&&onUnhandled(h)}))}},dispatchEvent=function(h,d,g){var x,S;dt?((x=ht.createEvent("Event")).promise=d,x.reason=g,x.initEvent(h,!1,!0),P.dispatchEvent(x)):x={promise:d,reason:g},!gt&&(S=P["on"+h])?S(x):"unhandledrejection"===h&&Q("Unhandled promise rejection",g)},onUnhandled=function(h){G.call(P,(function(){var d,g=h.facade,x=h.value;if(isUnhandled(h)&&(d=W((function(){et?pt.emit("unhandledRejection",x,g):dispatchEvent("unhandledrejection",g,x)})),h.rejection=et||isUnhandled(h)?2:1,d.error))throw d.value}))},isUnhandled=function(h){return 1!==h.rejection&&!h.parent},onHandleUnhandled=function(h){G.call(P,(function(){var d=h.facade;et?pt.emit("rejectionHandled",d):dispatchEvent("rejectionhandled",d,h.value)}))},bind=function(h,d,g){return function(x){h(d,x,g)}},internalReject=function(h,d,g){h.done||(h.done=!0,g&&(h=g),h.value=d,h.state=2,notify(h,!0))},internalResolve=function(h,d,g){if(!h.done){h.done=!0,g&&(h=g);try{if(h.facade===d)throw ft("Promise can't be resolved itself");var x=isThenable(d);x?X((function(){var g={done:!1};try{x.call(d,bind(internalResolve,g,h),bind(internalReject,g,h))}catch(d){internalReject(g,d,h)}})):(h.value=d,h.state=1,notify(h,!1))}catch(d){internalReject({done:!1},d,h)}}};if(xt&&(lt=(ct=function Promise(h){$(this,ct,it),L(h),x.call(this);var d=at(this);try{h(bind(internalResolve,d),bind(internalReject,d))}catch(h){internalReject(d,h)}}).prototype,(x=function Promise(h){ot(this,{type:it,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=M(lt,{then:function then(h,d){var g=ut(this),x=vt(U(this,ct));return x.ok="function"!=typeof h||h,x.fail="function"==typeof d&&d,x.domain=et?pt.domain:void 0,g.parent=!0,g.reactions.push(x),0!=g.state&¬ify(g,!1),x.promise},catch:function(h){return this.then(void 0,h)}}),S=function(){var h=new x,d=at(h);this.promise=h,this.resolve=bind(internalResolve,d),this.reject=bind(internalReject,d)},q.f=vt=function(h){return h===ct||h===b?new S(h):yt(h)},!_&&"function"==typeof k&&st!==Object.prototype)){E=st.then,mt||(C(st,"then",(function then(h,d){var g=this;return new ct((function(h,d){E.call(g,h,d)})).then(h,d)}),{unsafe:!0}),C(st,"catch",lt.catch,{unsafe:!0}));try{delete st.constructor}catch(h){}N&&N(st,lt)}w({global:!0,wrap:!0,forced:xt},{Promise:ct}),R(ct,it,!1,!0),D(it),b=A(it),w({target:it,stat:!0,forced:xt},{reject:function reject(h){var d=vt(this);return d.reject.call(void 0,h),d.promise}}),w({target:it,stat:!0,forced:_||xt},{resolve:function resolve(h){return Y(_&&this===b?ct:this,h)}}),w({target:it,stat:!0,forced:St},{all:function all(h){var d=this,g=vt(d),x=g.resolve,S=g.reject,b=W((function(){var g=L(d.resolve),b=[],E=0,w=1;j(h,(function(h){var _=E++,P=!1;b.push(void 0),w++,g.call(d,h).then((function(h){P||(P=!0,b[_]=h,--w||x(b))}),S)})),--w||x(b)}));return b.error&&S(b.value),g.promise},race:function race(h){var d=this,g=vt(d),x=g.reject,S=W((function(){var S=L(d.resolve);j(h,(function(h){S.call(d,h).then(g.resolve,x)}))}));return S.error&&x(S.value),g.promise}})},8654:function(h,d,g){var x,S,b,E,w,_,P,A,k=g(8436),C=g(8452).f,M=g(8542).set,N=g(8543),R=g(8655),D=g(8482),V=k.MutationObserver||k.WebKitMutationObserver,L=k.document,$=k.process,B=k.Promise,j=C(k,"queueMicrotask"),z=j&&j.value;z||(x=function(){var h,d;for(D&&(h=$.domain)&&h.exit();S;){d=S.fn,S=S.next;try{d()}catch(h){throw S?E():b=void 0,h}}b=void 0,h&&h.enter()},N||D||R||!V||!L?B&&B.resolve?((P=B.resolve(void 0)).constructor=B,A=P.then,E=function(){A.call(P,x)}):E=D?function(){$.nextTick(x)}:function(){M.call(k,x)}:(w=!0,_=L.createTextNode(""),new V(x).observe(_,{characterData:!0}),E=function(){_.data=w=!w})),h.exports=z||function(h){var d={fn:h,next:void 0};b&&(b.next=d),S||(S=d,E()),b=d}},8655:function(h,d,g){var x=g(8490);h.exports=/web0s(?!.*chrome)/i.test(x)},8656:function(h,d,g){var x=g(8436);h.exports=function(h,d){var g=x.console;g&&g.error&&(1===arguments.length?g.error(h):g.error(h,d))}},8657:function(h,d){h.exports="object"==typeof window},8658:function(h,d,g){"use strict";var x=g(8434),S=g(8453),b=g(8538),E=g(8437),w=g(8449),_=g(8541),P=g(8544),A=g(8470);if(x({target:"Promise",proto:!0,real:!0,forced:!!b&&E((function(){b.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(h){var d=_(this,w("Promise")),g="function"==typeof h;return this.then(g?function(g){return P(d,h()).then((function(){return g}))}:h,g?function(g){return P(d,h()).then((function(){throw g}))}:h)}}),!S&&"function"==typeof b){var k=w("Promise").prototype.finally;b.prototype.finally!==k&&A(b.prototype,"finally",k,{unsafe:!0})}},8659:function(h,d,g){g(8537)},8660:function(h,d,g){g(8545)},8661:function(h,d,g){"use strict";var x=g(8434),S=g(8473),b=g(8483);x({target:"Promise",stat:!0},{try:function(h){var d=S.f(this),g=b(h);return(g.error?d.reject:d.resolve)(g.value),d.promise}})},8662:function(h,d,g){g(8546)},8663:function(h,d,g){var x=g(8547);h.exports=function _defineProperty(h,d,g){return d in h?x(h,d,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[d]=g,h},h.exports.default=h.exports,h.exports.__esModule=!0},8664:function(h,d,g){var x=g(8534);h.exports=x},8665:function(h,d){h.exports=function _classCallCheck(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")},h.exports.default=h.exports,h.exports.__esModule=!0},8666:function(h,d,g){var x=g(8547);function _defineProperties(h,d){for(var g=0;g<d.length;g++){var S=d[g];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),x(h,S.key,S)}}h.exports=function _createClass(h,d,g){return d&&_defineProperties(h.prototype,d),g&&_defineProperties(h,g),h},h.exports.default=h.exports,h.exports.__esModule=!0},8667:function(h,d,g){h.exports=g(8668)},8668:function(h,d,g){var x=g(8669);h.exports=x},8669:function(h,d,g){var x=g(8670),S=Array.prototype;h.exports=function(h){var d=h.concat;return h===S||h instanceof Array&&d===S.concat?x:d}},8670:function(h,d,g){g(8516);var x=g(8442);h.exports=x("Array").concat},8671:function(h,d,g){h.exports=g(8672)},8672:function(h,d,g){var x=g(8673);h.exports=x},8673:function(h,d,g){var x=g(8674),S=Array.prototype;h.exports=function(h){var d=h.reduce;return h===S||h instanceof Array&&d===S.reduce?x:d}},8674:function(h,d,g){g(8675);var x=g(8442);h.exports=x("Array").reduce},8675:function(h,d,g){"use strict";var x=g(8434),S=g(8676).left,b=g(8472),E=g(8468),w=g(8482);x({target:"Array",proto:!0,forced:!b("reduce")||!w&&E>79&&E<83},{reduce:function reduce(h){return S(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}})},8676:function(h,d,g){var x=g(8448),S=g(8447),b=g(8484),E=g(8451),createMethod=function(h){return function(d,g,w,_){x(g);var P=S(d),A=b(P),k=E(P.length),C=h?k-1:0,M=h?-1:1;if(w<2)for(;;){if(C in A){_=A[C],C+=M;break}if(C+=M,h?C<0:k<=C)throw TypeError("Reduce of empty array with no initial value")}for(;h?C>=0:k>C;C+=M)C in A&&(_=g(_,A[C],C,P));return _}};h.exports={left:createMethod(!1),right:createMethod(!0)}},8677:function(h,d,g){h.exports=g(8678)},8678:function(h,d,g){var x=g(8679);h.exports=x},8679:function(h,d,g){g(8680);var x=g(8435);h.exports=x.Date.now},8680:function(h,d,g){g(8434)({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}})},8681:function(h,d,g){h.exports=g(8682)},8682:function(h,d,g){var x=g(8683);h.exports=x},8683:function(h,d,g){var x=g(8684),S=Array.prototype;h.exports=function(h){var d=h.every;return h===S||h instanceof Array&&d===S.every?x:d}},8684:function(h,d,g){g(8685);var x=g(8442);h.exports=x("Array").every},8685:function(h,d,g){"use strict";var x=g(8434),S=g(8454).every;x({target:"Array",proto:!0,forced:!g(8472)("every")},{every:function every(h){return S(this,h,arguments.length>1?arguments[1]:void 0)}})},8686:function(h,d,g){h.exports=g(8687)},8687:function(h,d,g){var x=g(8536);h.exports=x},8688:function(h,d,g){h.exports=g(8689)},8689:function(h,d,g){var x=g(8690);h.exports=x},8690:function(h,d,g){var x=g(8691),S=Function.prototype;h.exports=function(h){var d=h.bind;return h===S||h instanceof Function&&d===S.bind?x:d}},8691:function(h,d,g){g(8692);var x=g(8442);h.exports=x("Function").bind},8692:function(h,d,g){g(8434)({target:"Function",proto:!0},{bind:g(8548)})},8693:function(h,d,g){h.exports=g(8694)},8694:function(h,d,g){var x=g(8695);h.exports=x},8695:function(h,d,g){var x=g(8696),S=String.prototype;h.exports=function(h){var d=h.trim;return"string"==typeof h||h===S||h instanceof String&&d===S.trim?x:d}},8696:function(h,d,g){g(8697);var x=g(8442);h.exports=x("String").trim},8697:function(h,d,g){"use strict";var x=g(8434),S=g(8491).trim;x({target:"String",proto:!0,forced:g(8698)("trim")},{trim:function trim(){return S(this)}})},8698:function(h,d,g){var x=g(8437),S=g(8476);h.exports=function(h){return x((function(){return!!S[h]()||"
"!="
"[h]()||S[h].name!==h}))}},8699:function(h,d,g){h.exports=g(8700)},8700:function(h,d,g){var x=g(8701);h.exports=x},8701:function(h,d,g){g(8702);var x=g(8435);h.exports=x.Reflect.construct},8702:function(h,d,g){var x=g(8434),S=g(8449),b=g(8448),E=g(8441),w=g(8440),_=g(8460),P=g(8548),A=g(8437),k=S("Reflect","construct"),C=A((function(){function F(){}return!(k((function(){}),[],F)instanceof F)})),M=!A((function(){k((function(){}))})),N=C||M;x({target:"Reflect",stat:!0,forced:N,sham:N},{construct:function construct(h,d){b(h),E(d);var g=arguments.length<3?h:b(arguments[2]);if(M&&!C)return k(h,d,g);if(h==g){switch(d.length){case 0:return new h;case 1:return new h(d[0]);case 2:return new h(d[0],d[1]);case 3:return new h(d[0],d[1],d[2]);case 4:return new h(d[0],d[1],d[2],d[3])}var x=[null];return x.push.apply(x,d),new(P.apply(h,x))}var S=g.prototype,A=_(w(S)?S:Object.prototype),N=Function.apply.call(h,A,d);return w(N)?N:A}})},8703:function(h,d,g){var x=g(8704),S=g(8708);h.exports=function _inherits(h,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function");h.prototype=x(d&&d.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),d&&S(h,d)},h.exports.default=h.exports,h.exports.__esModule=!0},8704:function(h,d,g){h.exports=g(8705)},8705:function(h,d,g){var x=g(8706);h.exports=x},8706:function(h,d,g){g(8707);var x=g(8435).Object;h.exports=function create(h,d){return x.create(h,d)}},8707:function(h,d,g){g(8434)({target:"Object",stat:!0,sham:!g(8443)},{create:g(8460)})},8708:function(h,d,g){var x=g(8549);function _setPrototypeOf(d,g){return h.exports=_setPrototypeOf=x||function _setPrototypeOf(h,d){return h.__proto__=d,h},h.exports.default=h.exports,h.exports.__esModule=!0,_setPrototypeOf(d,g)}h.exports=_setPrototypeOf,h.exports.default=h.exports,h.exports.__esModule=!0},8709:function(h,d,g){var x=g(8710);h.exports=x},8710:function(h,d,g){g(8711);var x=g(8435);h.exports=x.Object.setPrototypeOf},8711:function(h,d,g){g(8434)({target:"Object",stat:!0},{setPrototypeOf:g(8480)})},8712:function(h,d,g){var x=g(8713).default,S=g(8550);h.exports=function _possibleConstructorReturn(h,d){return!d||"object"!==x(d)&&"function"!=typeof d?S(h):d},h.exports.default=h.exports,h.exports.__esModule=!0},8713:function(h,d,g){var x=g(8492),S=g(8714);function _typeof(d){return"function"==typeof x&&"symbol"==typeof S?(h.exports=_typeof=function _typeof(h){return typeof h},h.exports.default=h.exports,h.exports.__esModule=!0):(h.exports=_typeof=function _typeof(h){return h&&"function"==typeof x&&h.constructor===x&&h!==x.prototype?"symbol":typeof h},h.exports.default=h.exports,h.exports.__esModule=!0),_typeof(d)}h.exports=_typeof,h.exports.default=h.exports,h.exports.__esModule=!0},8714:function(h,d,g){h.exports=g(8715)},8715:function(h,d,g){var x=g(8716);h.exports=x},8716:function(h,d,g){g(8523),g(8465),g(8455);var x=g(8499);h.exports=x.f("iterator")},8717:function(h,d,g){h.exports=g(8718)},8718:function(h,d,g){var x=g(8719);h.exports=x},8719:function(h,d,g){g(8720);var x=g(8435);h.exports=x.Object.getPrototypeOf},8720:function(h,d,g){var x=g(8434),S=g(8437),b=g(8447),E=g(8464),w=g(8504);x({target:"Object",stat:!0,forced:S((function(){E(1)})),sham:!w},{getPrototypeOf:function getPrototypeOf(h){return E(b(h))}})},8721:function(h,d,g){var x=g(8722),S=g(8723),b=g(8526),E=g(8724);h.exports=function _toConsumableArray(h){return x(h)||S(h)||b(h)||E()},h.exports.default=h.exports,h.exports.__esModule=!0},8722:function(h,d,g){var x=g(8513),S=g(8533);h.exports=function _arrayWithoutHoles(h){if(x(h))return S(h)},h.exports.default=h.exports,h.exports.__esModule=!0},8723:function(h,d,g){var x=g(8492),S=g(8501),b=g(8528);h.exports=function _iterableToArray(h){if(void 0!==x&&null!=S(h)||null!=h["@@iterator"])return b(h)},h.exports.default=h.exports,h.exports.__esModule=!0},8724:function(h,d){h.exports=function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},h.exports.default=h.exports,h.exports.__esModule=!0},8725:function(h,d,g){h.exports=g(8726)},8726:function(h,d,g){var x=g(8727);h.exports=x},8727:function(h,d,g){var x=g(8728),S=Array.prototype;h.exports=function(h){var d=h.some;return h===S||h instanceof Array&&d===S.some?x:d}},8728:function(h,d,g){g(8729);var x=g(8442);h.exports=x("Array").some},8729:function(h,d,g){"use strict";var x=g(8434),S=g(8454).some;x({target:"Array",proto:!0,forced:!g(8472)("some")},{some:function some(h){return S(this,h,arguments.length>1?arguments[1]:void 0)}})},8730:function(h,d,g){h.exports=g(8731)},8731:function(h,d,g){var x=g(8732);h.exports=x},8732:function(h,d,g){var x=g(8733),S=g(8735),b=Array.prototype,E=String.prototype;h.exports=function(h){var d=h.includes;return h===b||h instanceof Array&&d===b.includes?x:"string"==typeof h||h===E||h instanceof String&&d===E.includes?S:d}},8733:function(h,d,g){g(8734);var x=g(8442);h.exports=x("Array").includes},8734:function(h,d,g){"use strict";var x=g(8434),S=g(8495).includes,b=g(8502);x({target:"Array",proto:!0},{includes:function includes(h){return S(this,h,arguments.length>1?arguments[1]:void 0)}}),b("includes")},8735:function(h,d,g){g(8736);var x=g(8442);h.exports=x("String").includes},8736:function(h,d,g){"use strict";var x=g(8434),S=g(8509),b=g(8457);x({target:"String",proto:!0,forced:!g(8511)("includes")},{includes:function includes(h){return!!~String(b(this)).indexOf(S(h),arguments.length>1?arguments[1]:void 0)}})},8737:function(h,d,g){h.exports=g(8738)},8738:function(h,d,g){var x=g(8529);h.exports=x},8739:function(h,d,g){h.exports=g(8740)},8740:function(h,d,g){var x=g(8741);h.exports=x},8741:function(h,d,g){var x=g(8742),S=Array.prototype;h.exports=function(h){var d=h.reverse;return h===S||h instanceof Array&&d===S.reverse?x:d}},8742:function(h,d,g){g(8743);var x=g(8442);h.exports=x("Array").reverse},8743:function(h,d,g){"use strict";var x=g(8434),S=g(8459),b=[].reverse,E=[1,2];x({target:"Array",proto:!0,forced:String(E)===String(E.reverse())},{reverse:function reverse(){return S(this)&&(this.length=this.length),b.call(this)}})},8744:function(h,d,g){h.exports=g(8745)},8745:function(h,d,g){var x=g(8746);h.exports=x},8746:function(h,d,g){var x=g(8747),S=Array.prototype;h.exports=function(h){var d=h.indexOf;return h===S||h instanceof Array&&d===S.indexOf?x:d}},8747:function(h,d,g){g(8748);var x=g(8442);h.exports=x("Array").indexOf},8748:function(h,d,g){"use strict";var x=g(8434),S=g(8495).indexOf,b=g(8472),E=[].indexOf,w=!!E&&1/[1].indexOf(1,-0)<0,_=b("indexOf");x({target:"Array",proto:!0,forced:w||!_},{indexOf:function indexOf(h){return w?E.apply(this,arguments)||0:S(this,h,arguments.length>1?arguments[1]:void 0)}})},8749:function(h,d,g){var x=g(8750),S=g(8754),b=g(8756);function _get(d,g,E){return"undefined"!=typeof Reflect&&x?(h.exports=_get=x,h.exports.default=h.exports,h.exports.__esModule=!0):(h.exports=_get=function _get(h,d,g){var x=b(h,d);if(x){var E=S(x,d);return E.get?E.get.call(g):E.value}},h.exports.default=h.exports,h.exports.__esModule=!0),_get(d,g,E||d)}h.exports=_get,h.exports.default=h.exports,h.exports.__esModule=!0},8750:function(h,d,g){h.exports=g(8751)},8751:function(h,d,g){var x=g(8752);h.exports=x},8752:function(h,d,g){g(8753);var x=g(8435);h.exports=x.Reflect.get},8753:function(h,d,g){var x=g(8434),S=g(8440),b=g(8441),E=g(8444),w=g(8452),_=g(8464);x({target:"Reflect",stat:!0},{get:function get(h,d){var g,x,P=arguments.length<3?h:arguments[2];return b(h)===P?h[d]:(g=w.f(h,d))?E(g,"value")?g.value:void 0===g.get?void 0:g.get.call(P):S(x=_(h))?get(x,d,P):void 0}})},8754:function(h,d,g){h.exports=g(8755)},8755:function(h,d,g){var x=g(8535);h.exports=x},8756:function(h,d,g){var x=g(8551);h.exports=function _superPropBase(h,d){for(;!Object.prototype.hasOwnProperty.call(h,d)&&null!==(h=x(h)););return h},h.exports.default=h.exports,h.exports.__esModule=!0},8757:function(h,d,g){h.exports=g(8758)},8758:function(h,d,g){var x=g(8759);h.exports=x},8759:function(h,d,g){var x=g(8760),S=Array.prototype;h.exports=function(h){var d=h.fill;return h===S||h instanceof Array&&d===S.fill?x:d}},8760:function(h,d,g){g(8761);var x=g(8442);h.exports=x("Array").fill},8761:function(h,d,g){var x=g(8434),S=g(8762),b=g(8502);x({target:"Array",proto:!0},{fill:S}),b("fill")},8762:function(h,d,g){"use strict";var x=g(8447),S=g(8496),b=g(8451);h.exports=function fill(h){for(var d=x(this),g=b(d.length),E=arguments.length,w=S(E>1?arguments[1]:void 0,g),_=E>2?arguments[2]:void 0,P=void 0===_?g:S(_,g);P>w;)d[w++]=h;return d}},8763:function(h,d,g){"use strict";g.d(d,"a",(function(){return P}));
|
|
|
var t=function(h,d){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var g in d)d.hasOwnProperty(g)&&(h[g]=d[g])})(h,d)};function r(h,d){function i(){this.constructor=h}t(h,d),h.prototype=null===d?Object.create(d):(i.prototype=d.prototype,new i)}function i(h,d){var g=h[0],x=h[1];return[g*Math.cos(d)-x*Math.sin(d),g*Math.sin(d)+x*Math.cos(d)]}function a(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];for(var g=0;g<h.length;g++)if("number"!=typeof h[g])throw new Error("assertNumbers arguments["+g+"] is not a number. "+typeof h[g]+" == typeof "+h[g]);return!0}var x=Math.PI;function o(h,d,g){h.lArcFlag=0===h.lArcFlag?0:1,h.sweepFlag=0===h.sweepFlag?0:1;var S=h.rX,b=h.rY,E=h.x,w=h.y;S=Math.abs(h.rX),b=Math.abs(h.rY);var _=i([(d-E)/2,(g-w)/2],-h.xRot/180*x),P=_[0],A=_[1],k=Math.pow(P,2)/Math.pow(S,2)+Math.pow(A,2)/Math.pow(b,2);1<k&&(S*=Math.sqrt(k),b*=Math.sqrt(k)),h.rX=S,h.rY=b;var C=Math.pow(S,2)*Math.pow(A,2)+Math.pow(b,2)*Math.pow(P,2),M=(h.lArcFlag!==h.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(S,2)*Math.pow(b,2)-C)/C)),N=S*A/b*M,R=-b*P/S*M,D=i([N,R],h.xRot/180*x);h.cX=D[0]+(d+E)/2,h.cY=D[1]+(g+w)/2,h.phi1=Math.atan2((A-R)/b,(P-N)/S),h.phi2=Math.atan2((-A-R)/b,(-P-N)/S),0===h.sweepFlag&&h.phi2>h.phi1&&(h.phi2-=2*x),1===h.sweepFlag&&h.phi2<h.phi1&&(h.phi2+=2*x),h.phi1*=180/x,h.phi2*=180/x}function s(h,d,g){a(h,d,g);var x=h*h+d*d-g*g;if(0>x)return[];if(0===x)return[[h*g/(h*h+d*d),d*g/(h*h+d*d)]];var S=Math.sqrt(x);return[[(h*g+d*S)/(h*h+d*d),(d*g-h*S)/(h*h+d*d)],[(h*g-d*S)/(h*h+d*d),(d*g+h*S)/(h*h+d*d)]]}var S,b=Math.PI/180;function c(h,d,g){return(1-g)*h+g*d}function y(h,d,g,S){return h+Math.cos(S/180*x)*d+Math.sin(S/180*x)*g}function p(h,d,g,x){var S=d-h,b=g-d,E=3*S+3*(x-g)-6*b,w=6*(b-S),_=3*S;return Math.abs(E)<1e-6?[-_/w]:function(h,d,g){void 0===g&&(g=1e-6);var x=h*h/4-d;if(x<-g)return[];if(x<=g)return[-h/2];var S=Math.sqrt(x);return[-h/2-S,-h/2+S]}(w/E,_/E,1e-6)}function m(h,d,g,x,S){var b=1-S;return h*(b*b*b)+d*(3*b*b*S)+g*(3*b*S*S)+x*(S*S*S)}!function(h){function r(){return u((function(h,d,g){return h.relative&&(void 0!==h.x1&&(h.x1+=d),void 0!==h.y1&&(h.y1+=g),void 0!==h.x2&&(h.x2+=d),void 0!==h.y2&&(h.y2+=g),void 0!==h.x&&(h.x+=d),void 0!==h.y&&(h.y+=g),h.relative=!1),h}))}function e(){var h=NaN,d=NaN,g=NaN,x=NaN;return u((function(S,b,E){return S.type&P.SMOOTH_CURVE_TO&&(S.type=P.CURVE_TO,h=isNaN(h)?b:h,d=isNaN(d)?E:d,S.x1=S.relative?b-h:2*b-h,S.y1=S.relative?E-d:2*E-d),S.type&P.CURVE_TO?(h=S.relative?b+S.x2:S.x2,d=S.relative?E+S.y2:S.y2):(h=NaN,d=NaN),S.type&P.SMOOTH_QUAD_TO&&(S.type=P.QUAD_TO,g=isNaN(g)?b:g,x=isNaN(x)?E:x,S.x1=S.relative?b-g:2*b-g,S.y1=S.relative?E-x:2*E-x),S.type&P.QUAD_TO?(g=S.relative?b+S.x1:S.x1,x=S.relative?E+S.y1:S.y1):(g=NaN,x=NaN),S}))}function n(){var h=NaN,d=NaN;return u((function(g,x,S){if(g.type&P.SMOOTH_QUAD_TO&&(g.type=P.QUAD_TO,h=isNaN(h)?x:h,d=isNaN(d)?S:d,g.x1=g.relative?x-h:2*x-h,g.y1=g.relative?S-d:2*S-d),g.type&P.QUAD_TO){h=g.relative?x+g.x1:g.x1,d=g.relative?S+g.y1:g.y1;var b=g.x1,E=g.y1;g.type=P.CURVE_TO,g.x1=((g.relative?0:x)+2*b)/3,g.y1=((g.relative?0:S)+2*E)/3,g.x2=(g.x+2*b)/3,g.y2=(g.y+2*E)/3}else h=NaN,d=NaN;return g}))}function u(h){var d=0,g=0,x=NaN,S=NaN;return function(b){if(isNaN(x)&&!(b.type&P.MOVE_TO))throw new Error("path must start with moveto");var E=h(b,d,g,x,S);return b.type&P.CLOSE_PATH&&(d=x,g=S),void 0!==b.x&&(d=b.relative?d+b.x:b.x),void 0!==b.y&&(g=b.relative?g+b.y:b.y),b.type&P.MOVE_TO&&(x=d,S=g),E}}function O(h,d,g,x,S,b){return a(h,d,g,x,S,b),u((function(E,w,_,A){var k=E.x1,C=E.x2,M=E.relative&&!isNaN(A),N=void 0!==E.x?E.x:M?0:w,R=void 0!==E.y?E.y:M?0:_;function T(h){return h*h}E.type&P.HORIZ_LINE_TO&&0!==d&&(E.type=P.LINE_TO,E.y=E.relative?0:_),E.type&P.VERT_LINE_TO&&0!==g&&(E.type=P.LINE_TO,E.x=E.relative?0:w),void 0!==E.x&&(E.x=E.x*h+R*g+(M?0:S)),void 0!==E.y&&(E.y=N*d+E.y*x+(M?0:b)),void 0!==E.x1&&(E.x1=E.x1*h+E.y1*g+(M?0:S)),void 0!==E.y1&&(E.y1=k*d+E.y1*x+(M?0:b)),void 0!==E.x2&&(E.x2=E.x2*h+E.y2*g+(M?0:S)),void 0!==E.y2&&(E.y2=C*d+E.y2*x+(M?0:b));var D=h*x-d*g;if(void 0!==E.xRot&&(1!==h||0!==d||0!==g||1!==x))if(0===D)delete E.rX,delete E.rY,delete E.xRot,delete E.lArcFlag,delete E.sweepFlag,E.type=P.LINE_TO;else{var V=E.xRot*Math.PI/180,L=Math.sin(V),$=Math.cos(V),B=1/T(E.rX),j=1/T(E.rY),z=T($)*B+T(L)*j,U=2*L*$*(B-j),G=T(L)*B+T($)*j,X=z*x*x-U*d*x+G*d*d,Y=U*(h*x+d*g)-2*(z*g*x+G*h*d),Q=z*g*g-U*h*g+G*h*h,q=(Math.atan2(Y,X-Q)+Math.PI)%Math.PI/2,W=Math.sin(q),Z=Math.cos(q);E.rX=Math.abs(D)/Math.sqrt(X*T(Z)+Y*W*Z+Q*T(W)),E.rY=Math.abs(D)/Math.sqrt(X*T(W)-Y*W*Z+Q*T(Z)),E.xRot=180*q/Math.PI}return void 0!==E.sweepFlag&&0>D&&(E.sweepFlag=+!E.sweepFlag),E}))}h.ROUND=function(h){function r(d){return Math.round(d*h)/h}return void 0===h&&(h=1e13),a(h),function(h){return void 0!==h.x1&&(h.x1=r(h.x1)),void 0!==h.y1&&(h.y1=r(h.y1)),void 0!==h.x2&&(h.x2=r(h.x2)),void 0!==h.y2&&(h.y2=r(h.y2)),void 0!==h.x&&(h.x=r(h.x)),void 0!==h.y&&(h.y=r(h.y)),void 0!==h.rX&&(h.rX=r(h.rX)),void 0!==h.rY&&(h.rY=r(h.rY)),h}},h.TO_ABS=r,h.TO_REL=function(){return u((function(h,d,g){return h.relative||(void 0!==h.x1&&(h.x1-=d),void 0!==h.y1&&(h.y1-=g),void 0!==h.x2&&(h.x2-=d),void 0!==h.y2&&(h.y2-=g),void 0!==h.x&&(h.x-=d),void 0!==h.y&&(h.y-=g),h.relative=!0),h}))},h.NORMALIZE_HVZ=function(h,d,g){return void 0===h&&(h=!0),void 0===d&&(d=!0),void 0===g&&(g=!0),u((function(x,S,b,E,w){if(isNaN(E)&&!(x.type&P.MOVE_TO))throw new Error("path must start with moveto");return d&&x.type&P.HORIZ_LINE_TO&&(x.type=P.LINE_TO,x.y=x.relative?0:b),g&&x.type&P.VERT_LINE_TO&&(x.type=P.LINE_TO,x.x=x.relative?0:S),h&&x.type&P.CLOSE_PATH&&(x.type=P.LINE_TO,x.x=x.relative?E-S:E,x.y=x.relative?w-b:w),x.type&P.ARC&&(0===x.rX||0===x.rY)&&(x.type=P.LINE_TO,delete x.rX,delete x.rY,delete x.xRot,delete x.lArcFlag,delete x.sweepFlag),x}))},h.NORMALIZE_ST=e,h.QT_TO_C=n,h.INFO=u,h.SANITIZE=function(h){void 0===h&&(h=0),a(h);var d=NaN,g=NaN,x=NaN,S=NaN;return u((function(b,E,w,_,A){var k=Math.abs,C=!1,M=0,N=0;if(b.type&P.SMOOTH_CURVE_TO&&(M=isNaN(d)?0:E-d,N=isNaN(g)?0:w-g),b.type&(P.CURVE_TO|P.SMOOTH_CURVE_TO)?(d=b.relative?E+b.x2:b.x2,g=b.relative?w+b.y2:b.y2):(d=NaN,g=NaN),b.type&P.SMOOTH_QUAD_TO?(x=isNaN(x)?E:2*E-x,S=isNaN(S)?w:2*w-S):b.type&P.QUAD_TO?(x=b.relative?E+b.x1:b.x1,S=b.relative?w+b.y1:b.y2):(x=NaN,S=NaN),b.type&P.LINE_COMMANDS||b.type&P.ARC&&(0===b.rX||0===b.rY||!b.lArcFlag)||b.type&P.CURVE_TO||b.type&P.SMOOTH_CURVE_TO||b.type&P.QUAD_TO||b.type&P.SMOOTH_QUAD_TO){var R=void 0===b.x?0:b.relative?b.x:b.x-E,D=void 0===b.y?0:b.relative?b.y:b.y-w;M=isNaN(x)?void 0===b.x1?M:b.relative?b.x:b.x1-E:x-E,N=isNaN(S)?void 0===b.y1?N:b.relative?b.y:b.y1-w:S-w;var V=void 0===b.x2?0:b.relative?b.x:b.x2-E,L=void 0===b.y2?0:b.relative?b.y:b.y2-w;k(R)<=h&&k(D)<=h&&k(M)<=h&&k(N)<=h&&k(V)<=h&&k(L)<=h&&(C=!0)}return b.type&P.CLOSE_PATH&&k(E-_)<=h&&k(w-A)<=h&&(C=!0),C?[]:b}))},h.MATRIX=O,h.ROTATE=function(h,d,g){void 0===d&&(d=0),void 0===g&&(g=0),a(h,d,g);var x=Math.sin(h),S=Math.cos(h);return O(S,x,-x,S,d-d*S+g*x,g-d*x-g*S)},h.TRANSLATE=function(h,d){return void 0===d&&(d=0),a(h,d),O(1,0,0,1,h,d)},h.SCALE=function(h,d){return void 0===d&&(d=h),a(h,d),O(h,0,0,d,0,0)},h.SKEW_X=function(h){return a(h),O(1,0,Math.atan(h),1,0,0)},h.SKEW_Y=function(h){return a(h),O(1,Math.atan(h),0,1,0,0)},h.X_AXIS_SYMMETRY=function(h){return void 0===h&&(h=0),a(h),O(-1,0,0,1,h,0)},h.Y_AXIS_SYMMETRY=function(h){return void 0===h&&(h=0),a(h),O(1,0,0,-1,0,h)},h.A_TO_C=function(){return u((function(h,d,g){return P.ARC===h.type?function(h,d,g){var x,S,E,w;h.cX||o(h,d,g);for(var _=Math.min(h.phi1,h.phi2),A=Math.max(h.phi1,h.phi2)-_,k=Math.ceil(A/90),C=new Array(k),M=d,N=g,R=0;R<k;R++){var D=c(h.phi1,h.phi2,R/k),V=c(h.phi1,h.phi2,(R+1)/k),L=V-D,$=4/3*Math.tan(L*b/4),B=[Math.cos(D*b)-$*Math.sin(D*b),Math.sin(D*b)+$*Math.cos(D*b)],j=B[0],z=B[1],U=[Math.cos(V*b),Math.sin(V*b)],G=U[0],X=U[1],Y=[G+$*Math.sin(V*b),X-$*Math.cos(V*b)],Q=Y[0],q=Y[1];C[R]={relative:h.relative,type:P.CURVE_TO};var H=function(d,g){var x=i([d*h.rX,g*h.rY],h.xRot),S=x[0],b=x[1];return[h.cX+S,h.cY+b]};x=H(j,z),C[R].x1=x[0],C[R].y1=x[1],S=H(Q,q),C[R].x2=S[0],C[R].y2=S[1],E=H(G,X),C[R].x=E[0],C[R].y=E[1],h.relative&&(C[R].x1-=M,C[R].y1-=N,C[R].x2-=M,C[R].y2-=N,C[R].x-=M,C[R].y-=N),M=(w=[C[R].x,C[R].y])[0],N=w[1]}return C}(h,h.relative?0:d,h.relative?0:g):h}))},h.ANNOTATE_ARCS=function(){return u((function(h,d,g){return h.relative&&(d=0,g=0),P.ARC===h.type&&o(h,d,g),h}))},h.CLONE=function T(){return function(h){var d={};for(var g in h)d[g]=h[g];return d}},h.CALCULATE_BOUNDS=function(){var h=r(),d=n(),g=e(),x=u((function(S,b,E){var w=g(d(h(function(h){var d={};for(var g in h)d[g]=h[g];return d}(S))));function O(h){h>x.maxX&&(x.maxX=h),h<x.minX&&(x.minX=h)}function T(h){h>x.maxY&&(x.maxY=h),h<x.minY&&(x.minY=h)}if(w.type&P.DRAWING_COMMANDS&&(O(b),T(E)),w.type&P.HORIZ_LINE_TO&&O(w.x),w.type&P.VERT_LINE_TO&&T(w.y),w.type&P.LINE_TO&&(O(w.x),T(w.y)),w.type&P.CURVE_TO){O(w.x),T(w.y);for(var _=0,A=p(b,w.x1,w.x2,w.x);_<A.length;_++)0<(X=A[_])&&1>X&&O(m(b,w.x1,w.x2,w.x,X));for(var k=0,C=p(E,w.y1,w.y2,w.y);k<C.length;k++)0<(X=C[k])&&1>X&&T(m(E,w.y1,w.y2,w.y,X))}if(w.type&P.ARC){O(w.x),T(w.y),o(w,b,E);for(var M=w.xRot/180*Math.PI,N=Math.cos(M)*w.rX,R=Math.sin(M)*w.rX,D=-Math.sin(M)*w.rY,V=Math.cos(M)*w.rY,L=w.phi1<w.phi2?[w.phi1,w.phi2]:-180>w.phi2?[w.phi2+360,w.phi1+360]:[w.phi2,w.phi1],$=L[0],B=L[1],I=function(h){var d=h[0],g=h[1],x=180*Math.atan2(g,d)/Math.PI;return x<$?x+360:x},j=0,z=s(D,-N,0).map(I);j<z.length;j++)(X=z[j])>$&&X<B&&O(y(w.cX,N,D,X));for(var U=0,G=s(V,-R,0).map(I);U<G.length;U++){var X;(X=G[U])>$&&X<B&&T(y(w.cY,R,V,X))}}return S}));return x.minX=1/0,x.maxX=-1/0,x.minY=1/0,x.maxY=-1/0,x}}(S||(S={}));var E,w=function(){function t(){}return t.prototype.round=function(h){return this.transform(S.ROUND(h))},t.prototype.toAbs=function(){return this.transform(S.TO_ABS())},t.prototype.toRel=function(){return this.transform(S.TO_REL())},t.prototype.normalizeHVZ=function(h,d,g){return this.transform(S.NORMALIZE_HVZ(h,d,g))},t.prototype.normalizeST=function(){return this.transform(S.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(S.QT_TO_C())},t.prototype.aToC=function(){return this.transform(S.A_TO_C())},t.prototype.sanitize=function(h){return this.transform(S.SANITIZE(h))},t.prototype.translate=function(h,d){return this.transform(S.TRANSLATE(h,d))},t.prototype.scale=function(h,d){return this.transform(S.SCALE(h,d))},t.prototype.rotate=function(h,d,g){return this.transform(S.ROTATE(h,d,g))},t.prototype.matrix=function(h,d,g,x,b,E){return this.transform(S.MATRIX(h,d,g,x,b,E))},t.prototype.skewX=function(h){return this.transform(S.SKEW_X(h))},t.prototype.skewY=function(h){return this.transform(S.SKEW_Y(h))},t.prototype.xSymmetry=function(h){return this.transform(S.X_AXIS_SYMMETRY(h))},t.prototype.ySymmetry=function(h){return this.transform(S.Y_AXIS_SYMMETRY(h))},t.prototype.annotateArcs=function(){return this.transform(S.ANNOTATE_ARCS())},t}(),v=function(h){return" "===h||"\t"===h||"\r"===h||"\n"===h},l=function(h){return"0".charCodeAt(0)<=h.charCodeAt(0)&&h.charCodeAt(0)<="9".charCodeAt(0)},_=function(h){function e(){var d=h.call(this)||this;return d.curNumber="",d.curCommandType=-1,d.curCommandRelative=!1,d.canParseCommandOrComma=!0,d.curNumberHasExp=!1,d.curNumberHasExpDigits=!1,d.curNumberHasDecimal=!1,d.curArgs=[],d}return r(e,h),e.prototype.finish=function(h){if(void 0===h&&(h=[]),this.parse(" ",h),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return h},e.prototype.parse=function(h,d){var g=this;void 0===d&&(d=[]);for(var i=function(h){d.push(h),g.curArgs.length=0,g.canParseCommandOrComma=!0},x=0;x<h.length;x++){var S=h[x],b=!(this.curCommandType!==P.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),E=l(S)&&("0"===this.curNumber&&"0"===S||b);if(!l(S)||E)if("e"!==S&&"E"!==S)if("-"!==S&&"+"!==S||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==S||this.curNumberHasExp||this.curNumberHasDecimal||b){if(this.curNumber&&-1!==this.curCommandType){var w=Number(this.curNumber);if(isNaN(w))throw new SyntaxError("Invalid number ending at "+x);if(this.curCommandType===P.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>w)throw new SyntaxError('Expected positive number, got "'+w+'" at index "'+x+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+x+'"');this.curArgs.push(w),this.curArgs.length===A[this.curCommandType]&&(P.HORIZ_LINE_TO===this.curCommandType?i({type:P.HORIZ_LINE_TO,relative:this.curCommandRelative,x:w}):P.VERT_LINE_TO===this.curCommandType?i({type:P.VERT_LINE_TO,relative:this.curCommandRelative,y:w}):this.curCommandType===P.MOVE_TO||this.curCommandType===P.LINE_TO||this.curCommandType===P.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),P.MOVE_TO===this.curCommandType&&(this.curCommandType=P.LINE_TO)):this.curCommandType===P.CURVE_TO?i({type:P.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===P.SMOOTH_CURVE_TO?i({type:P.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===P.QUAD_TO?i({type:P.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===P.ARC&&i({type:P.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(!v(S))if(","===S&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==S&&"-"!==S&&"."!==S)if(E)this.curNumber=S,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+x+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+S+'" at index '+x+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==S&&"Z"!==S)if("h"===S||"H"===S)this.curCommandType=P.HORIZ_LINE_TO,this.curCommandRelative="h"===S;else if("v"===S||"V"===S)this.curCommandType=P.VERT_LINE_TO,this.curCommandRelative="v"===S;else if("m"===S||"M"===S)this.curCommandType=P.MOVE_TO,this.curCommandRelative="m"===S;else if("l"===S||"L"===S)this.curCommandType=P.LINE_TO,this.curCommandRelative="l"===S;else if("c"===S||"C"===S)this.curCommandType=P.CURVE_TO,this.curCommandRelative="c"===S;else if("s"===S||"S"===S)this.curCommandType=P.SMOOTH_CURVE_TO,this.curCommandRelative="s"===S;else if("q"===S||"Q"===S)this.curCommandType=P.QUAD_TO,this.curCommandRelative="q"===S;else if("t"===S||"T"===S)this.curCommandType=P.SMOOTH_QUAD_TO,this.curCommandRelative="t"===S;else{if("a"!==S&&"A"!==S)throw new SyntaxError('Unexpected character "'+S+'" at index '+x+".");this.curCommandType=P.ARC,this.curCommandRelative="a"===S}else d.push({type:P.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=S,this.curNumberHasDecimal="."===S}else this.curNumber+=S,this.curNumberHasDecimal=!0;else this.curNumber+=S;else this.curNumber+=S,this.curNumberHasExp=!0;else this.curNumber+=S,this.curNumberHasExpDigits=this.curNumberHasExp}return d},e.prototype.transform=function(h){return Object.create(this,{parse:{value:function(d,g){void 0===g&&(g=[]);for(var x=0,S=Object.getPrototypeOf(this).parse.call(this,d);x<S.length;x++){var b=S[x],E=h(b);Array.isArray(E)?g.push.apply(g,E):g.push(E)}return g}}})},e}(w),P=function(h){function i(d){var g=h.call(this)||this;return g.commands="string"==typeof d?i.parse(d):d,g}return r(i,h),i.prototype.encode=function(){return i.encode(this.commands)},i.prototype.getBounds=function(){var h=S.CALCULATE_BOUNDS();return this.transform(h),h},i.prototype.transform=function(h){for(var d=[],g=0,x=this.commands;g<x.length;g++){var S=h(x[g]);Array.isArray(S)?d.push.apply(d,S):d.push(S)}return this.commands=d,this},i.encode=function(h){return function e(h){var d="";Array.isArray(h)||(h=[h]);for(var g=0;g<h.length;g++){var x=h[g];if(x.type===P.CLOSE_PATH)d+="z";else if(x.type===P.HORIZ_LINE_TO)d+=(x.relative?"h":"H")+x.x;else if(x.type===P.VERT_LINE_TO)d+=(x.relative?"v":"V")+x.y;else if(x.type===P.MOVE_TO)d+=(x.relative?"m":"M")+x.x+" "+x.y;else if(x.type===P.LINE_TO)d+=(x.relative?"l":"L")+x.x+" "+x.y;else if(x.type===P.CURVE_TO)d+=(x.relative?"c":"C")+x.x1+" "+x.y1+" "+x.x2+" "+x.y2+" "+x.x+" "+x.y;else if(x.type===P.SMOOTH_CURVE_TO)d+=(x.relative?"s":"S")+x.x2+" "+x.y2+" "+x.x+" "+x.y;else if(x.type===P.QUAD_TO)d+=(x.relative?"q":"Q")+x.x1+" "+x.y1+" "+x.x+" "+x.y;else if(x.type===P.SMOOTH_QUAD_TO)d+=(x.relative?"t":"T")+x.x+" "+x.y;else{if(x.type!==P.ARC)throw new Error('Unexpected command type "'+x.type+'" at index '+g+".");d+=(x.relative?"a":"A")+x.rX+" "+x.rY+" "+x.xRot+" "+ +x.lArcFlag+" "+ +x.sweepFlag+" "+x.x+" "+x.y}}return d}(h)},i.parse=function(h){var d=new _,g=[];return d.parse(h,g),d.finish(g),g},i.CLOSE_PATH=1,i.MOVE_TO=2,i.HORIZ_LINE_TO=4,i.VERT_LINE_TO=8,i.LINE_TO=16,i.CURVE_TO=32,i.SMOOTH_CURVE_TO=64,i.QUAD_TO=128,i.SMOOTH_QUAD_TO=256,i.ARC=512,i.LINE_COMMANDS=i.LINE_TO|i.HORIZ_LINE_TO|i.VERT_LINE_TO,i.DRAWING_COMMANDS=i.HORIZ_LINE_TO|i.VERT_LINE_TO|i.LINE_TO|i.CURVE_TO|i.SMOOTH_CURVE_TO|i.QUAD_TO|i.SMOOTH_QUAD_TO|i.ARC,i}(w),A=((E={})[P.MOVE_TO]=2,E[P.LINE_TO]=2,E[P.HORIZ_LINE_TO]=1,E[P.VERT_LINE_TO]=1,E[P.CLOSE_PATH]=0,E[P.QUAD_TO]=4,E[P.SMOOTH_QUAD_TO]=2,E[P.CURVE_TO]=6,E[P.SMOOTH_CURVE_TO]=4,E[P.ARC]=7,E)},8764:function(h,d,g){h.exports=g(8765)},8765:function(h,d,g){var x=g(8766);h.exports=x},8766:function(h,d,g){g(8767);var x=g(8435);h.exports=x.Reflect.deleteProperty},8767:function(h,d,g){var x=g(8434),S=g(8441),b=g(8452).f;x({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(h,d){var g=b(S(h),d);return!(g&&!g.configurable)&&delete h[d]}})},8768:function(h,d,g){h.exports=g(8769)},8769:function(h,d,g){g(8455);var x=g(8770),S=g(8471),b=Array.prototype,E={DOMTokenList:!0,NodeList:!0};h.exports=function(h){var d=h.values;return h===b||h instanceof Array&&d===b.values||E.hasOwnProperty(S(h))?x:d}},8770:function(h,d,g){var x=g(8771);h.exports=x},8771:function(h,d,g){g(8524);var x=g(8442);h.exports=x("Array").values},8772:function(h,d,g){h.exports=g(8773)},8773:function(h,d,g){var x=g(8774);h.exports=x},8774:function(h,d,g){g(8775);var x=g(8435);h.exports=x.parseInt},8775:function(h,d,g){var x=g(8434),S=g(8776);x({global:!0,forced:parseInt!=S},{parseInt:S})},8776:function(h,d,g){var x=g(8436),S=g(8491).trim,b=g(8476),E=x.parseInt,w=/^[+-]?0[Xx]/,_=8!==E(b+"08")||22!==E(b+"0x16");h.exports=_?function parseInt(h,d){var g=S(String(h));return E(g,d>>>0||(w.test(g)?16:10))}:E},8777:function(h,d,g){h.exports=g(8778)},8778:function(h,d,g){g(8455),g(8465);var x=g(8779);h.exports=x},8779:function(h,d,g){var x=g(8441),S=g(8481);h.exports=function(h){var d=S(h);if("function"!=typeof d)throw TypeError(String(h)+" is not iterable");return x(d.call(h))}},8780:function(h,d,g){h.exports=g(8781)},8781:function(h,d,g){var x=g(8514);h.exports=x},8782:function(h,d,g){h.exports=g(8783)},8783:function(h,d,g){var x=g(8515);h.exports=x},8784:function(h,d,g){h.exports=g(8785)},8785:function(h,d,g){var x=g(8527);h.exports=x},8786:function(h,d,g){h.exports=g(8787)},8787:function(h,d,g){var x=g(8788);h.exports=x},8788:function(h,d,g){g(8789),g(8493),g(8465),g(8455);var x=g(8435);h.exports=x.Map},8789:function(h,d,g){"use strict";var x=g(8790),S=g(8792);h.exports=x("Map",(function(h){return function Map(){return h(this,arguments.length?arguments[0]:void 0)}}),S)},8790:function(h,d,g){"use strict";var x=g(8434),S=g(8436),b=g(8552),E=g(8437),w=g(8445),_=g(8466),P=g(8505),A=g(8440),k=g(8461),C=g(8446).f,M=g(8454).forEach,N=g(8443),R=g(8462),D=R.set,V=R.getterFor;h.exports=function(h,d,g){var R,L=-1!==h.indexOf("Map"),$=-1!==h.indexOf("Weak"),B=L?"set":"add",j=S[h],z=j&&j.prototype,U={};if(N&&"function"==typeof j&&($||z.forEach&&!E((function(){(new j).entries().next()})))){R=d((function(d,g){D(P(d,R,h),{type:h,collection:new j}),null!=g&&_(g,d[B],{that:d,AS_ENTRIES:L})}));var G=V(h);M(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(h){var d="add"==h||"set"==h;!(h in z)||$&&"clear"==h||w(R.prototype,h,(function(g,x){var S=G(this).collection;if(!d&&$&&!A(g))return"get"==h&&void 0;var b=S[h](0===g?0:g,x);return d?this:b}))})),$||C(R.prototype,"size",{configurable:!0,get:function(){return G(this).collection.size}})}else R=g.getConstructor(d,h,L,B),b.REQUIRED=!0;return k(R,h,!1,!0),U[h]=R,x({global:!0,forced:!0},U),$||g.setStrong(R,h,L),R}},8791:function(h,d,g){var x=g(8437);h.exports=!x((function(){return Object.isExtensible(Object.preventExtensions({}))}))},8792:function(h,d,g){"use strict";var x=g(8446).f,S=g(8460),b=g(8539),E=g(8458),w=g(8505),_=g(8466),P=g(8503),A=g(8540),k=g(8443),C=g(8552).fastKey,M=g(8462),N=M.set,R=M.getterFor;h.exports={getConstructor:function(h,d,g,P){var A=h((function(h,x){w(h,A,d),N(h,{type:d,index:S(null),first:void 0,last:void 0,size:0}),k||(h.size=0),null!=x&&_(x,h[P],{that:h,AS_ENTRIES:g})})),M=R(d),define=function(h,d,g){var x,S,b=M(h),E=getEntry(h,d);return E?E.value=g:(b.last=E={index:S=C(d,!0),key:d,value:g,previous:x=b.last,next:void 0,removed:!1},b.first||(b.first=E),x&&(x.next=E),k?b.size++:h.size++,"F"!==S&&(b.index[S]=E)),h},getEntry=function(h,d){var g,x=M(h),S=C(d);if("F"!==S)return x.index[S];for(g=x.first;g;g=g.next)if(g.key==d)return g};return b(A.prototype,{clear:function clear(){for(var h=M(this),d=h.index,g=h.first;g;)g.removed=!0,g.previous&&(g.previous=g.previous.next=void 0),delete d[g.index],g=g.next;h.first=h.last=void 0,k?h.size=0:this.size=0},delete:function(h){var d=M(this),g=getEntry(this,h);if(g){var x=g.next,S=g.previous;delete d.index[g.index],g.removed=!0,S&&(S.next=x),x&&(x.previous=S),d.first==g&&(d.first=x),d.last==g&&(d.last=S),k?d.size--:this.size--}return!!g},forEach:function forEach(h){for(var d,g=M(this),x=E(h,arguments.length>1?arguments[1]:void 0,3);d=d?d.next:g.first;)for(x(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function has(h){return!!getEntry(this,h)}}),b(A.prototype,g?{get:function get(h){var d=getEntry(this,h);return d&&d.value},set:function set(h,d){return define(this,0===h?0:h,d)}}:{add:function add(h){return define(this,h=0===h?0:h,h)}}),k&&x(A.prototype,"size",{get:function(){return M(this).size}}),A},setStrong:function(h,d,g){var x=d+" Iterator",S=R(d),b=R(x);P(h,d,(function(h,d){N(this,{type:x,target:h,state:S(h),kind:d,last:void 0})}),(function(){for(var h=b(this),d=h.kind,g=h.last;g&&g.removed;)g=g.previous;return h.target&&(h.last=g=g?g.next:h.state.first)?"keys"==d?{value:g.key,done:!1}:"values"==d?{value:g.value,done:!1}:{value:[g.key,g.value],done:!1}:(h.target=void 0,{value:void 0,done:!0})}),g?"entries":"values",!g,!0),A(d)}}},8793:function(h,d,g){h.exports=g(8794)},8794:function(h,d,g){var x=g(8795);h.exports=x},8795:function(h,d,g){g(8796);var x=g(8435);h.exports=x.Reflect.apply},8796:function(h,d,g){var x=g(8434),S=g(8449),b=g(8448),E=g(8441),w=g(8437),_=S("Reflect","apply"),P=Function.apply;x({target:"Reflect",stat:!0,forced:!w((function(){_((function(){}))}))},{apply:function apply(h,d,g){return b(h),E(g),_?_(h,d,g):P.call(h,d,g)}})},8797:function(h,d,g){h.exports=g(8798)},8798:function(h,d,g){var x=g(8799);h.exports=x},8799:function(h,d,g){g(8800);var x=g(8435);h.exports=x.Reflect.getPrototypeOf},8800:function(h,d,g){var x=g(8434),S=g(8441),b=g(8464);x({target:"Reflect",stat:!0,sham:!g(8504)},{getPrototypeOf:function getPrototypeOf(h){return b(S(h))}})},8801:function(h,d,g){"use strict";function _typeof(h){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(h)}g.d(d,"a",(function(){return processCanvasRGBA}));var x=[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],S=[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 getImageDataFromCanvas(h,d,g,x,S){if("string"==typeof h&&(h=document.getElementById(h)),!h||"object"!==_typeof(h)||!("getContext"in h))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var b=h.getContext("2d");try{return b.getImageData(d,g,x,S)}catch(h){throw new Error("unable to access image data: "+h)}}function processCanvasRGBA(h,d,g,E,w,_){if(!(isNaN(_)||_<1)){_|=0;var P=getImageDataFromCanvas(h,d,g,E,w);P=function processImageDataRGBA(h,d,g,E,w,_){for(var P,A=h.data,k=2*_+1,C=E-1,M=w-1,N=_+1,R=N*(N+1)/2,D=new b,V=D,L=1;L<k;L++)V=V.next=new b,L===N&&(P=V);V.next=D;for(var $=null,B=null,j=0,z=0,U=x[_],G=S[_],X=0;X<w;X++){V=D;for(var Y=A[z],Q=A[z+1],q=A[z+2],W=A[z+3],Z=0;Z<N;Z++)V.r=Y,V.g=Q,V.b=q,V.a=W,V=V.next;for(var K=0,J=0,tt=0,et=0,rt=N*Y,nt=N*Q,it=N*q,at=N*W,ot=R*Y,ut=R*Q,st=R*q,ct=R*W,lt=1;lt<N;lt++){var ft=z+((C<lt?C:lt)<<2),ht=A[ft],pt=A[ft+1],vt=A[ft+2],yt=A[ft+3],dt=N-lt;ot+=(V.r=ht)*dt,ut+=(V.g=pt)*dt,st+=(V.b=vt)*dt,ct+=(V.a=yt)*dt,K+=ht,J+=pt,tt+=vt,et+=yt,V=V.next}$=D,B=P;for(var gt=0;gt<E;gt++){var mt=ct*U>>G;if(A[z+3]=mt,0!==mt){var xt=255/mt;A[z]=(ot*U>>G)*xt,A[z+1]=(ut*U>>G)*xt,A[z+2]=(st*U>>G)*xt}else A[z]=A[z+1]=A[z+2]=0;ot-=rt,ut-=nt,st-=it,ct-=at,rt-=$.r,nt-=$.g,it-=$.b,at-=$.a;var St=gt+_+1;St=j+(St<C?St:C)<<2,K+=$.r=A[St],J+=$.g=A[St+1],tt+=$.b=A[St+2],et+=$.a=A[St+3],ot+=K,ut+=J,st+=tt,ct+=et,$=$.next;var bt=B,Et=bt.r,wt=bt.g,_t=bt.b,Pt=bt.a;rt+=Et,nt+=wt,it+=_t,at+=Pt,K-=Et,J-=wt,tt-=_t,et-=Pt,B=B.next,z+=4}j+=E}for(var At=0;At<E;At++){var Tt=A[z=At<<2],kt=A[z+1],Ct=A[z+2],Ot=A[z+3],Mt=N*Tt,Nt=N*kt,Rt=N*Ct,Dt=N*Ot,It=R*Tt,Vt=R*kt,Lt=R*Ct,Ft=R*Ot;V=D;for(var $t=0;$t<N;$t++)V.r=Tt,V.g=kt,V.b=Ct,V.a=Ot,V=V.next;for(var Bt=E,jt=0,zt=0,Ut=0,Ht=0,Gt=1;Gt<=_;Gt++){z=Bt+At<<2;var Xt=N-Gt;It+=(V.r=Tt=A[z])*Xt,Vt+=(V.g=kt=A[z+1])*Xt,Lt+=(V.b=Ct=A[z+2])*Xt,Ft+=(V.a=Ot=A[z+3])*Xt,Ht+=Tt,jt+=kt,zt+=Ct,Ut+=Ot,V=V.next,Gt<M&&(Bt+=E)}z=At,$=D,B=P;for(var Yt=0;Yt<w;Yt++){var Qt=z<<2;A[Qt+3]=Ot=Ft*U>>G,Ot>0?(Ot=255/Ot,A[Qt]=(It*U>>G)*Ot,A[Qt+1]=(Vt*U>>G)*Ot,A[Qt+2]=(Lt*U>>G)*Ot):A[Qt]=A[Qt+1]=A[Qt+2]=0,It-=Mt,Vt-=Nt,Lt-=Rt,Ft-=Dt,Mt-=$.r,Nt-=$.g,Rt-=$.b,Dt-=$.a,Qt=At+((Qt=Yt+N)<M?Qt:M)*E<<2,It+=Ht+=$.r=A[Qt],Vt+=jt+=$.g=A[Qt+1],Lt+=zt+=$.b=A[Qt+2],Ft+=Ut+=$.a=A[Qt+3],$=$.next,Mt+=Tt=B.r,Nt+=kt=B.g,Rt+=Ct=B.b,Dt+=Ot=B.a,Ht-=Tt,jt-=kt,zt-=Ct,Ut-=Ot,B=B.next,z+=E}}return h}(P,0,0,E,w,_),h.getContext("2d").putImageData(P,d,g)}}var b=function BlurStack(){!function _classCallCheck(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}(this,BlurStack),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}}}]); |