@riil-frontend/component-topology 2.8.0 → 2.10.0-alpha-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/build/1.js +2 -2
  2. package/build/2.js +2 -2
  3. package/build/index.css +1 -1
  4. package/build/index.js +40 -40
  5. package/es/components/LayoutDirectionSelect/Item.js +11 -0
  6. package/es/components/LayoutDirectionSelect/Item.module.scss +9 -0
  7. package/es/components/LayoutDirectionSelect/LayoutDirectionSelect.js +48 -0
  8. package/es/components/LayoutDirectionSelect/LayoutDirectionSelect.module.scss +4 -0
  9. package/es/components/LayoutDirectionSelect/index.js +2 -0
  10. package/es/components/LayoutSelect/LayoutSelect.js +46 -0
  11. package/es/components/LayoutSelect/LayoutSelect.module.scss +4 -0
  12. package/es/components/LayoutSelect/README.md +1 -0
  13. package/es/components/LayoutSelect/index.js +2 -0
  14. package/es/components/{TemplateSelect → TagImageSelect}/index.js +6 -23
  15. package/es/components/{TemplateGroup → TagImageSelect}/index.module.scss +0 -0
  16. package/es/components/TagSelect/index.js +2 -2
  17. package/es/components/TagSelect/index.scss +0 -4
  18. package/es/components/TemplateButton/Icon.js +2 -1
  19. package/es/components/TemplateButton/assets/index.js +1 -5
  20. package/es/components/TemplateButton/index.js +7 -15
  21. package/es/core/editor/components/settings/common/LayoutSettings.js +1 -1
  22. package/es/core/models/cache/CiTyeCache.js +1 -1
  23. package/es/core/models/utils/linkUtils.js +2 -2
  24. package/es/core/viewer/components/titlebar/ViewerTools.js +5 -1
  25. package/es/core/viewer/components/titlebar/useSetDefaultTopo.js +30 -0
  26. package/es/models/topoCreateMod.js +44 -18
  27. package/es/models/topoMod.js +3 -2
  28. package/es/style.js +1 -1
  29. package/es/utils/tree.js +5 -0
  30. package/lib/components/LayoutDirectionSelect/Item.js +25 -0
  31. package/lib/components/LayoutDirectionSelect/Item.module.scss +9 -0
  32. package/lib/components/LayoutDirectionSelect/LayoutDirectionSelect.js +64 -0
  33. package/lib/components/LayoutDirectionSelect/LayoutDirectionSelect.module.scss +4 -0
  34. package/lib/components/LayoutDirectionSelect/index.js +11 -0
  35. package/lib/components/LayoutSelect/LayoutSelect.js +61 -0
  36. package/lib/components/LayoutSelect/LayoutSelect.module.scss +4 -0
  37. package/lib/components/LayoutSelect/README.md +1 -0
  38. package/lib/components/LayoutSelect/index.js +11 -0
  39. package/lib/components/{TemplateSelect → TagImageSelect}/index.js +6 -27
  40. package/{es/components/TemplateSelect → lib/components/TagImageSelect}/index.module.scss +0 -0
  41. package/lib/components/TagSelect/index.js +2 -2
  42. package/lib/components/TagSelect/index.scss +0 -4
  43. package/lib/components/TemplateButton/Icon.js +2 -1
  44. package/lib/components/TemplateButton/assets/index.js +0 -6
  45. package/lib/components/TemplateButton/index.js +7 -15
  46. package/lib/core/editor/components/settings/common/LayoutSettings.js +2 -2
  47. package/lib/core/models/cache/CiTyeCache.js +1 -1
  48. package/lib/core/models/utils/linkUtils.js +2 -2
  49. package/lib/core/viewer/components/titlebar/ViewerTools.js +6 -1
  50. package/lib/core/viewer/components/titlebar/useSetDefaultTopo.js +40 -0
  51. package/lib/models/topoCreateMod.js +44 -18
  52. package/lib/models/topoMod.js +3 -2
  53. package/lib/style.js +1 -1
  54. package/lib/utils/tree.js +5 -0
  55. package/package.json +7 -6
  56. package/es/components/TemplateButton/assets/topo_tpl_blank.svg +0 -9
  57. package/es/components/TemplateButton/assets/topo_tpl_region.svg +0 -14
  58. package/es/components/TemplateGroup/index.js +0 -28
  59. package/lib/components/TemplateButton/assets/topo_tpl_blank.svg +0 -9
  60. package/lib/components/TemplateButton/assets/topo_tpl_region.svg +0 -14
  61. package/lib/components/TemplateGroup/index.js +0 -40
  62. package/lib/components/TemplateGroup/index.module.scss +0 -3
  63. package/lib/components/TemplateSelect/index.module.scss +0 -3
package/build/1.js CHANGED
@@ -1,4 +1,4 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{1678:function(t,e,r){"use strict";r.r(e),function(t){r.d(e,"AElement",(function(){return we})),r.d(e,"AnimateColorElement",(function(){return de})),r.d(e,"AnimateElement",(function(){return pe})),r.d(e,"AnimateTransformElement",(function(){return ve})),r.d(e,"BoundingBox",(function(){return Yt})),r.d(e,"CB1",(function(){return lt})),r.d(e,"CB2",(function(){return ft})),r.d(e,"CB3",(function(){return gt})),r.d(e,"CB4",(function(){return pt})),r.d(e,"Canvg",(function(){return er})),r.d(e,"CircleElement",(function(){return ee})),r.d(e,"ClipPathElement",(function(){return Be})),r.d(e,"DefsElement",(function(){return ue})),r.d(e,"DescElement",(function(){return Ye})),r.d(e,"Document",(function(){return Ke})),r.d(e,"Element",(function(){return Bt})),r.d(e,"EllipseElement",(function(){return re})),r.d(e,"FeColorMatrixElement",(function(){return Ie})),r.d(e,"FeCompositeElement",(function(){return Ue})),r.d(e,"FeDropShadowElement",(function(){return ze})),r.d(e,"FeGaussianBlurElement",(function(){return He})),r.d(e,"FeMorphologyElement",(function(){return Fe})),r.d(e,"FilterElement",(function(){return je})),r.d(e,"Font",(function(){return Xt})),r.d(e,"FontElement",(function(){return ye})),r.d(e,"FontFaceElement",(function(){return me})),r.d(e,"GElement",(function(){return he})),r.d(e,"GlyphElement",(function(){return Qt})),r.d(e,"GradientElement",(function(){return ce})),r.d(e,"ImageElement",(function(){return Pe})),r.d(e,"LineElement",(function(){return ne})),r.d(e,"LinearGradientElement",(function(){return le})),r.d(e,"MarkerElement",(function(){return oe})),r.d(e,"MaskElement",(function(){return Le})),r.d(e,"Matrix",(function(){return _t})),r.d(e,"MissingGlyphElement",(function(){return xe})),r.d(e,"Mouse",(function(){return wt})),r.d(e,"PSEUDO_ZERO",(function(){return ot})),r.d(e,"Parser",(function(){return Et})),r.d(e,"PathElement",(function(){return Gt})),r.d(e,"PathParser",(function(){return Wt})),r.d(e,"PatternElement",(function(){return se})),r.d(e,"Point",(function(){return bt})),r.d(e,"PolygonElement",(function(){return ae})),r.d(e,"PolylineElement",(function(){return ie})),r.d(e,"Property",(function(){return mt})),r.d(e,"QB1",(function(){return dt})),r.d(e,"QB2",(function(){return vt})),r.d(e,"QB3",(function(){return yt})),r.d(e,"RadialGradientElement",(function(){return fe})),r.d(e,"RectElement",(function(){return te})),r.d(e,"RenderedElement",(function(){return qt})),r.d(e,"Rotate",(function(){return Mt})),r.d(e,"SVGElement",(function(){return Jt})),r.d(e,"SVGFontLoader",(function(){return Ce})),r.d(e,"Scale",(function(){return Nt})),r.d(e,"Screen",(function(){return At})),r.d(e,"Skew",(function(){return Vt})),r.d(e,"SkewX",(function(){return Rt})),r.d(e,"SkewY",(function(){return kt})),r.d(e,"StopElement",(function(){return ge})),r.d(e,"StyleElement",(function(){return Me})),r.d(e,"SymbolElement",(function(){return Ee})),r.d(e,"TRefElement",(function(){return be})),r.d(e,"TSpanElement",(function(){return Zt})),r.d(e,"TextElement",(function(){return $t})),r.d(e,"TextPathElement",(function(){return Ae})),r.d(e,"TitleElement",(function(){return Xe})),r.d(e,"Transform",(function(){return Dt})),r.d(e,"Translate",(function(){return Ct})),r.d(e,"UnknownElement",(function(){return jt})),r.d(e,"UseElement",(function(){return Ne})),r.d(e,"ViewPort",(function(){return xt})),r.d(e,"compressSpaces",(function(){return X})),r.d(e,"getSelectorSpecificity",(function(){return st})),r.d(e,"normalizeAttributeName",(function(){return Q})),r.d(e,"normalizeColor",(function(){return Z})),r.d(e,"parseExternalUrl",(function(){return $})),r.d(e,"presets",(function(){return H})),r.d(e,"toNumbers",(function(){return q})),r.d(e,"trimLeft",(function(){return Y})),r.d(e,"trimRight",(function(){return W})),r.d(e,"vectorMagnitude",(function(){return ut})),r.d(e,"vectorsAngle",(function(){return ct})),r.d(e,"vectorsRatio",(function(){return ht}));var n=r(1768),i=r.n(n),a=r(1798),s=r.n(a),o=r(1799),u=r.n(o),h=r(1806),c=r.n(h),l=r(1808),f=r.n(l),g=r(1763),p=r.n(g),d=r(1813),v=r.n(d),y=r(1816),m=r.n(y),x=r(1817),b=r.n(x),w=r(1819),S=r.n(w),T=r(1820),A=r.n(T),O=r(1821),P=r.n(O),E=r(1823),C=r.n(E),M=r(1826),N=r.n(M),_=r(1827),V=r.n(_),R=r(1828),k=r.n(R),I=r(1829),L=r.n(I),D=r(1831),B=r(1832),j=r.n(B),z=r(1833);function F(){var{DOMParser:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas:(t,e)=>new OffscreenCanvas(t,e),createImage:t=>s()((function*(){var e=yield fetch(t),r=yield e.blob(),n;return yield createImageBitmap(r)}))()};return"undefined"==typeof DOMParser&&void 0!==t||Reflect.deleteProperty(e,"DOMParser"),e}function U(t){var{DOMParser:e,canvas:r,fetch:n}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:n,createCanvas:r.createCanvas,createImage:r.loadImage}}var H=Object.freeze({__proto__:null,offscreen:F,node:U});function X(t){return t.replace(/(?!\u3000)\s+/gm," ")}function Y(t){return t.replace(/^[\n \t]+/,"")}function W(t){return t.replace(/[\n \t]+$/,"")}function q(t){var e;return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var G=/^[A-Z-]+$/;function Q(t){return G.test(t)?t.toLowerCase():t}function $(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function Z(t){if(!t.startsWith("rgb"))return t;var e=3,r;return t.replace(/\d+(\.\d+)?/g,(t,r)=>e--&&r?String(Math.round(parseFloat(t))):t)}var K=/(\[[^\]]+\])/g,J=/(#[^\s+>~.[:]+)/g,tt=/(\.[^\s+>~.[:]+)/g,et=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,rt=/(:[\w-]+\([^)]*\))/gi,nt=/(:[^\s+>~.[:]+)/g,it=/([^\s+>~.[:]+)/g;function at(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function st(t){var e=[0,0,0],r=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0;return[r,n]=at(r,K),e[1]+=n,[r,n]=at(r,J),e[0]+=n,[r,n]=at(r,tt),e[1]+=n,[r,n]=at(r,et),e[2]+=n,[r,n]=at(r,rt),e[1]+=n,[r,n]=at(r,nt),e[1]+=n,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,n]=at(r,it),e[2]+=n,e.join("")}var ot=1e-8;function ut(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function ht(t,e){return(t[0]*e[0]+t[1]*e[1])/(ut(t)*ut(e))}function ct(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ht(t,e))}function lt(t){return t*t*t}function ft(t){return 3*t*t*(1-t)}function gt(t){return 3*t*(1-t)*(1-t)}function pt(t){return(1-t)*(1-t)*(1-t)}function dt(t){return t*t}function vt(t){return 2*t*(1-t)}function yt(t){return(1-t)*(1-t)}class mt{constructor(t,e,r){this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}static empty(t){return new mt(t,"EMPTY","")}split(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:e,name:r}=this;return X(this.getString()).trim().split(t).map(t=>new mt(e,r,t))}hasValue(t){var{value:e}=this;return null!==e&&""!==e&&(t||0!==e)&&void 0!==e}isString(t){var{value:e}=this,r="string"==typeof e;return r&&t?t.test(e):r}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return void 0===t||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return void 0===t?0:parseFloat(t);var{value:e}=this,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}getString(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}getColor(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=Z(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[r,n]="boolean"==typeof t?[void 0,t]:[t],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.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(/%$/)&&n:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(r);default:var a=this.getNumber();return e&&a<1?a*i.computeSize(r):a}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}getFillStyleDefinition(t,e){var r=this.getDefinition();if(!r)return null;if("function"==typeof r.createGradient)return r.createGradient(this.document.ctx,t,e);if("function"==typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var n=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),n.hasValue()&&r.getAttribute("patternTransform",!0).setValue(n.value)}return r.createPattern(this.document.ctx,t,e)}return null}getTextBaseline(){return this.hasValue()?mt.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),r=e.length,n=0,i=0;i<r&&(","===e[i]&&n++,3!==n);i++);if(t.hasValue()&&this.isString()&&3!==n){var a=new N.a(e);a.ok&&(a.alpha=t.getNumber(),e=a.toRGBA())}return new mt(this.document,this.name,e)}}mt.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"};class xt{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(t,e){this.viewPorts.push({width:t,height:e})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:t}=this;return t[t.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class bt{constructor(t,e){this.x=t,this.y=e}static parse(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[r=e,n=e]=q(t);return new bt(r,n)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=e,n=r]=q(t);return new bt(r,n)}static parsePath(t){for(var e=q(t),r=e.length,n=[],i=0;i<r;i+=2)n.push(new bt(e[i],e[i+1]));return n}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:e,y:r}=this,n=e*t[0]+r*t[2]+t[4],i=e*t[1]+r*t[3]+t[5];this.x=n,this.y=i}}class wt{constructor(t){this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:t,onClick:e,onMouseMove:r}=this,n=t.ctx.canvas;n.onclick=e,n.onmousemove=r,this.working=!0}}stop(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:r}=this,{style:n}=t.ctx.canvas;n&&(n.cursor=""),e.forEach((t,e)=>{for(var{run:n}=t,i=r[e];i;)n(i),i=i.parent}),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:r,eventElements:n}=this;r.forEach((r,i)=>{var{x:a,y:s}=r;!n[i]&&e.isPointInPath&&e.isPointInPath(a,s)&&(n[i]=t)})}}checkBoundingBox(t,e){if(this.working&&e){var{events:r,eventElements:n}=this;r.forEach((r,i)=>{var{x:a,y:s}=r;!n[i]&&e.isPointInBox(a,s)&&(n[i]=t)})}}mapXY(t,e){for(var{window:r,ctx:n}=this.screen,i=new bt(t,e),a=n.canvas;a;)i.x-=a.offsetLeft,i.y-=a.offsetTop,a=a.offsetParent;return r.scrollX&&(i.x+=r.scrollX),r.scrollY&&(i.y+=r.scrollY),i}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(t){t.onClick&&t.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(t){t.onMouseMove&&t.onMouseMove()}})}}var St="undefined"!=typeof window?window:null,Tt="undefined"!=typeof fetch?fetch.bind(void 0):null;class At{constructor(t){var{fetch:e=Tt,window:r=St}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new xt,this.mouse=new wt(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every(t=>t());return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:e,ctx:r,aspectRatio:n,width:i,desiredWidth:a,height:s,desiredHeight:o,minX:u=0,minY:h=0,refX:c,refY:l,clip:f=!1,clipX:g=0,clipY:p=0}=t,d=X(n).replace(/^defer\s/,""),[v,y]=d.split(" "),m=v||"xMidYMid",x=y||"meet",b=i/a,w=s/o,S=Math.min(b,w),T=Math.max(b,w),A=a,O=o;"meet"===x&&(A*=S,O*=S),"slice"===x&&(A*=T,O*=T);var P=new mt(e,"refX",c),E=new mt(e,"refY",l),C=P.hasValue()&&E.hasValue();if(C&&r.translate(-S*P.getPixels("x"),-S*E.getPixels("y")),f){var M=S*g,N=S*p;r.beginPath(),r.moveTo(M,N),r.lineTo(i,N),r.lineTo(i,s),r.lineTo(M,s),r.closePath(),r.clip()}if(!C){var _="meet"===x&&S===w,V="slice"===x&&T===w,R="meet"===x&&S===b,k="slice"===x&&T===b;m.startsWith("xMid")&&(_||V)&&r.translate(i/2-A/2,0),m.endsWith("YMid")&&(R||k)&&r.translate(0,s/2-O/2),m.startsWith("xMax")&&(_||V)&&r.translate(i-A,0),m.endsWith("YMax")&&(R||k)&&r.translate(0,s-O)}switch(!0){case"none"===m:r.scale(b,w);break;case"meet"===x:r.scale(S,S);break;case"slice"===x:r.scale(T,T)}r.translate(-u,-h)}start(t){var{enableRedraw:e=!1,ignoreMouse:r=!1,ignoreAnimation:n=!1,ignoreDimensions:i=!1,ignoreClear:a=!1,forceRedraw:s,scaleWidth:o,scaleHeight:u,offsetX:h,offsetY:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:l,mouse:f}=this,g=1e3/l;if(this.frameDuration=g,this.readyPromise=new Promise(t=>{this.resolveReady=t}),this.isReady()&&this.render(t,i,a,o,u,h,c),e){var p=Date.now(),d=p,v=0,y=()=>{p=Date.now(),(v=p-d)>=g&&(d=p-v%g,this.shouldUpdate(n,s)&&(this.render(t,i,a,o,u,h,c),f.runEvents())),this.intervalId=P()(y)};r||f.start(),this.intervalId=P()(y)}}stop(){this.intervalId&&(P.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var{frameDuration:r}=this,n;if(this.animations.reduce((t,e)=>e.update(r)||t,!1))return!0}return!("function"!=typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(t,e,r,n,i,a,s){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:u,viewPort:h,ctx:c,isFirstRender:l}=this,f=c.canvas;h.clear(),f.width&&f.height?h.setCurrent(f.width,f.height):h.setCurrent(o,u);var g=t.getStyle("width"),p=t.getStyle("height");!e&&(l||"number"!=typeof n&&"number"!=typeof i)&&(g.hasValue()&&(f.width=g.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),p.hasValue()&&(f.height=p.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var d=f.clientWidth||f.width,v=f.clientHeight||f.height;if(e&&g.hasValue()&&p.hasValue()&&(d=g.getPixels("x"),v=p.getPixels("y")),h.setCurrent(d,v),"number"==typeof a&&t.getAttribute("x",!0).setValue(a),"number"==typeof s&&t.getAttribute("y",!0).setValue(s),"number"==typeof n||"number"==typeof i){var y=q(t.getAttribute("viewBox").getString()),m=0,x=0;if("number"==typeof n){var b=t.getStyle("width");b.hasValue()?m=b.getPixels("x")/n:isNaN(y[2])||(m=y[2]/n)}if("number"==typeof i){var w=t.getStyle("height");w.hasValue()?x=w.getPixels("y")/i:isNaN(y[3])||(x=y[3]/i)}m||(m=x),x||(x=m),t.getAttribute("width",!0).setValue(n),t.getAttribute("height",!0).setValue(i);var S=t.getStyle("transform",!0,!0);S.setValue("".concat(S.getString()," scale(").concat(1/m,", ").concat(1/x,")"))}r||c.clearRect(0,0,d,v),t.render(c),l&&(this.isFirstRender=!1)}}At.defaultWindow=St,At.defaultFetch=Tt;var{defaultFetch:Ot}=At,Pt="undefined"!=typeof DOMParser?DOMParser:null;class Et{constructor(){var{fetch:t=Ot,DOMParser:e=Pt}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return s()((function*(){return t.startsWith("<")?e.parseFromString(t):e.load(t)}))()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch(r){return this.checkDocument(e.parseFromString(t,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(t){var e=this;return s()((function*(){var r=yield e.fetch(t),n=yield r.text();return e.parseFromString(n)}))()}}class Ct{constructor(t,e){this.type="translate",this.point=null,this.point=bt.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}}class Mt{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var n=q(e);this.angle=new mt(t,"angle",n[0]),this.originX=r[0],this.originY=r[1],this.cx=n[1]||0,this.cy=n[2]||0}apply(t){var{cx:e,cy:r,originX:n,originY:i,angle:a}=this,s=e+n.getPixels("x"),o=r+i.getPixels("y");t.translate(s,o),t.rotate(a.getRadians()),t.translate(-s,-o)}unapply(t){var{cx:e,cy:r,originX:n,originY:i,angle:a}=this,s=e+n.getPixels("x"),o=r+i.getPixels("y");t.translate(s,o),t.rotate(-1*a.getRadians()),t.translate(-s,-o)}applyToPoint(t){var{cx:e,cy:r,angle:n}=this,i=n.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class Nt{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=bt.parseScale(e);0!==n.x&&0!==n.y||(n.x=ot,n.y=ot),this.scale=n,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:n,originY:i}=this,a=n.getPixels("x"),s=i.getPixels("y");t.translate(a,s),t.scale(e,r||e),t.translate(-a,-s)}unapply(t){var{scale:{x:e,y:r},originX:n,originY:i}=this,a=n.getPixels("x"),s=i.getPixels("y");t.translate(a,s),t.scale(1/e,1/r||e),t.translate(-a,-s)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}}class _t{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=q(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:n}=this,i=e.getPixels("x"),a=r.getPixels("y");t.translate(i,a),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.translate(-i,-a)}unapply(t){var{originX:e,originY:r,matrix:n}=this,i=n[0],a=n[2],s=n[4],o=n[1],u=n[3],h=n[5],c=0,l=0,f=1,g=1/(i*(1*u-0*h)-a*(1*o-0*h)+s*(0*o-0*u)),p=e.getPixels("x"),d=r.getPixels("y");t.translate(p,d),t.transform(g*(1*u-0*h),g*(0*h-1*o),g*(0*s-1*a),g*(1*i-0*s),g*(a*h-s*u),g*(s*o-i*h)),t.translate(-p,-d)}applyToPoint(t){t.applyTransform(this.matrix)}}class Vt extends _t{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new mt(t,"angle",e)}}class Rt extends Vt{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class kt extends Vt{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function It(t){return X(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Lt(t){var[e,r]=t.split("(");return[e.trim(),r.trim().replace(")","")]}class Dt{constructor(t,e,r){var n;this.document=t,this.transforms=[],It(e).forEach(t=>{if("none"!==t){var[e,n]=Lt(t),i=Dt.transformTypes[e];void 0!==i&&this.transforms.push(new i(this.document,n,r))}})}static fromElement(t,e){var r=e.getStyle("transform",!1,!0),[n,i=n]=e.getStyle("transform-origin",!1,!0).split(),a=[n,i];return r.hasValue()?new Dt(t,r.getString(),a):null}apply(t){for(var{transforms:e}=this,r=e.length,n=0;n<r;n++)e[n].apply(t)}unapply(t){for(var{transforms:e}=this,r,n=e.length-1;n>=0;n--)e[n].unapply(t)}applyToPoint(t){for(var{transforms:e}=this,r=e.length,n=0;n<r;n++)e[n].applyToPoint(t)}}Dt.transformTypes={translate:Ct,rotate:Mt,scale:Nt,matrix:_t,skewX:Rt,skewY:kt};class Bt{constructor(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=t,this.node=e,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],e&&1===e.nodeType){var n;if(Array.from(e.attributes).forEach(e=>{var r=Q(e.nodeName);this.attributes[r]=new mt(t,r,e.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue())this.getAttribute("style").getString().split(";").map(t=>t.trim()).forEach(e=>{if(e){var[r,n]=e.split(":").map(t=>t.trim());this.styles[r]=new mt(t,r,n)}});var{definitions:i}=t,a=this.getAttribute("id");a.hasValue()&&(i[a.getString()]||(i[a.getString()]=this)),Array.from(e.childNodes).forEach(e=>{if(1===e.nodeType)this.addChild(e);else if(r&&(3===e.nodeType||4===e.nodeType)){var n=t.createTextNode(e);n.getText().length>0&&this.addChild(n)}})}}getAttribute(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[t];if(!r&&e){var n=new mt(this.document,t,"");return this.attributes[t]=n,n}return r||mt.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return mt.empty(this.document)}getStyle(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.styles[t];if(n)return n;var i=this.getAttribute(t);if(null!=i&&i.hasValue())return this.styles[t]=i,i;if(!r){var{parent:a}=this;if(a){var s=a.getStyle(t);if(null!=s&&s.hasValue())return s}}if(e){var o=new mt(this.document,t,"");return this.styles[t]=o,o}return n||mt.empty(this.document)}render(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var e=Dt.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var n=r.getDefinition();n&&n.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach(e=>{e.render(t)})}addChild(t){var e=t instanceof Bt?t:this.document.createElement(t);e.parent=this,Bt.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(t){var{node:e}=this;if("function"==typeof e.matches)return e.matches(t);var r=e.getAttribute("class");return!(!r||""===r)&&r.split(" ").some(e=>".".concat(e)===t)}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:e}=this.document;for(var r in t)if(!r.startsWith("@")&&this.matchesSelector(r)){var n=t[r],i=e[r];if(n)for(var a in n){var s=this.stylesSpecificity[a];void 0===s&&(s="000"),i>=s&&(this.styles[a]=n[a],this.stylesSpecificity[a]=i)}}}removeStyles(t,e){var r;return e.reduce((e,r)=>{var n=t.getStyle(r);if(!n.hasValue())return e;var i=n.getString();return n.setValue(""),[...e,[r,i]]},[])}restoreStyles(t,e){e.forEach(e=>{var[r,n]=e;t.getStyle(r,!0).setValue(n)})}}Bt.ignoreChildTypes=["title"];class jt extends Bt{constructor(t,e,r){super(t,e,r)}}function zt(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function Ft(e){return void 0===t?e:e.trim().split(",").map(zt).join(",")}function Ut(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function Ht(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class Xt{constructor(t,e,r,n,i,a){var s=a?"string"==typeof a?Xt.parse(a):a:{};this.fontFamily=i||s.fontFamily,this.fontSize=n||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=e||s.fontVariant}static parse(){var t,e=arguments.length>1?arguments[1]:void 0,r="",n="",i="",a="",s="",o=X(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach(t=>{switch(!0){case!u.fontStyle&&Xt.styles.includes(t):"inherit"!==t&&(r=t),u.fontStyle=!0;break;case!u.fontVariant&&Xt.variants.includes(t):"inherit"!==t&&(n=t),u.fontStyle=!0,u.fontVariant=!0;break;case!u.fontWeight&&Xt.weights.includes(t):"inherit"!==t&&(i=t),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0;break;case!u.fontSize:"inherit"!==t&&([a]=t.split("/")),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0,u.fontSize=!0;break;default:"inherit"!==t&&(s+=t)}}),new Xt(r,n,i,a,s,e)}toString(){return[Ut(this.fontStyle),this.fontVariant,Ht(this.fontWeight),this.fontSize,Ft(this.fontFamily)].join(" ").trim()}}Xt.styles="normal|italic|oblique|inherit",Xt.variants="normal|small-caps|inherit",Xt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Yt{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=n,this.addPoint(t,e),this.addPoint(r,n)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:r,x2:n,y2:i}=t;this.addPoint(e,r),this.addPoint(n,i)}}sumCubic(t,e,r,n,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*i}bezierCurveAdd(t,e,r,n,i){var a=6*e-12*r+6*n,s=-3*e+9*r-9*n+3*i,o=3*r-3*e;if(0!==s){var u=Math.pow(a,2)-4*o*s;if(!(u<0)){var h=(-a+Math.sqrt(u))/(2*s);0<h&&h<1&&(t?this.addX(this.sumCubic(h,e,r,n,i)):this.addY(this.sumCubic(h,e,r,n,i)));var c=(-a-Math.sqrt(u))/(2*s);0<c&&c<1&&(t?this.addX(this.sumCubic(c,e,r,n,i)):this.addY(this.sumCubic(c,e,r,n,i)))}}else{if(0===a)return;var l=-o/a;0<l&&l<1&&(t?this.addX(this.sumCubic(l,e,r,n,i)):this.addY(this.sumCubic(l,e,r,n,i)))}}addBezierCurve(t,e,r,n,i,a,s,o){this.addPoint(t,e),this.addPoint(s,o),this.bezierCurveAdd(!0,t,r,i,s),this.bezierCurveAdd(!1,e,n,a,o)}addQuadraticCurve(t,e,r,n,i,a){var s=t+2/3*(r-t),o=e+2/3*(n-e),u=s+1/3*(i-t),h=o+1/3*(a-e);this.addBezierCurve(t,e,s,u,o,h,i,a)}isPointInBox(t,e){var{x1:r,y1:n,x2:i,y2:a}=this;return r<=t&&t<=i&&n<=e&&e<=a}}class Wt extends D.a{constructor(t){super(t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new bt(0,0),this.control=new bt(0,0),this.current=new bt(0,0),this.points=[],this.angles=[]}isEnd(){var{i:t,commands:e}=this;return t>=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r=new bt(this.command[t],this.command[e]);return this.makeAbsolute(r)}getAsControlPoint(t,e){var r=this.getPoint(t,e);return this.control=r,r}getAsCurrentPoint(t,e){var r=this.getPoint(t,e);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==D.a.CURVE_TO&&t!==D.a.SMOOTH_CURVE_TO&&t!==D.a.QUAD_TO&&t!==D.a.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:n,y:i}}=this,a;return new bt(2*e-n,2*r-i)}makeAbsolute(t){if(this.command.relative){var{x:e,y:r}=this.current;t.x+=e,t.y+=r}return t}addMarker(t,e,r){var{points:n,angles:i}=this;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,r=0;r<e;r++)if(!t[r])for(var n=r+1;n<e;n++)if(t[n]){t[r]=t[n];break}return t}}class qt extends Bt{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,n);s&&(t.fillStyle=s)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var o=r.getColor();"inherit"!==o&&(t.fillStyle="none"===o?"rgba(0,0,0,0)":o)}if(n.hasValue()){var u=new mt(this.document,"fill",t.fillStyle).addOpacity(n).getColor();t.fillStyle=u}if(i.isUrlDefinition()){var h=i.getFillStyleDefinition(this,a);h&&(t.strokeStyle=h)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var c=i.getString();"inherit"!==c&&(t.strokeStyle="none"===c?"rgba(0,0,0,0)":c)}if(a.hasValue()){var l=new mt(this.document,"stroke",t.strokeStyle).addOpacity(a).getString();t.strokeStyle=l}var f=this.getStyle("stroke-width");if(f.hasValue()){var g=f.getPixels();t.lineWidth=g||ot}var p=this.getStyle("stroke-linecap"),d=this.getStyle("stroke-linejoin"),v=this.getStyle("stroke-miterlimit"),y=this.getStyle("stroke-dasharray"),m=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(t.lineCap=p.getString()),d.hasValue()&&(t.lineJoin=d.getString()),v.hasValue()&&(t.miterLimit=v.getNumber()),y.hasValue()&&"none"!==y.getString()){var x=q(y.getString());void 0!==t.setLineDash?t.setLineDash(x):void 0!==t.webkitLineDash?t.webkitLineDash=x:void 0===t.mozDash||1===x.length&&0===x[0]||(t.mozDash=x);var b=m.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=b:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=b:void 0!==t.mozDashOffset&&(t.mozDashOffset=b)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var w=this.getStyle("font"),S=this.getStyle("font-style"),T=this.getStyle("font-variant"),A=this.getStyle("font-weight"),O=this.getStyle("font-size"),P=this.getStyle("font-family"),E=new Xt(S.getString(),T.getString(),A.getString(),O.hasValue()?"".concat(O.getPixels(!0),"px"):"",P.getString(),Xt.parse(w.getString(),t.font));S.setValue(E.fontStyle),T.setValue(E.fontVariant),A.setValue(E.fontWeight),O.setValue(E.fontSize),P.setValue(E.fontFamily),t.font=E.toString(),O.isPixels()&&(this.document.emSize=O.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Gt extends qt{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new Wt(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new Yt;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case Wt.MOVE_TO:this.pathM(t,r);break;case Wt.LINE_TO:this.pathL(t,r);break;case Wt.HORIZ_LINE_TO:this.pathH(t,r);break;case Wt.VERT_LINE_TO:this.pathV(t,r);break;case Wt.CURVE_TO:this.pathC(t,r);break;case Wt.SMOOTH_CURVE_TO:this.pathS(t,r);break;case Wt.QUAD_TO:this.pathQ(t,r);break;case Wt.SMOOTH_QUAD_TO:this.pathT(t,r);break;case Wt.ARC:this.pathA(t,r);break;case Wt.CLOSE_PATH:this.pathZ(t,r)}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles(),n;return e.map((t,e)=>[t,r[e]])}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var n=r.length-1,i=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(i.isUrlDefinition()){var o=i.getDefinition(),[u,h]=r[0];o.render(t,u,h)}if(a.isUrlDefinition())for(var c=a.getDefinition(),l=1;l<n;l++){var[f,g]=r[l];c.render(t,f,g)}if(s.isUrlDefinition()){var p=s.getDefinition(),[d,v]=r[n];p.render(t,d,v)}}}static pathM(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}pathM(t,e){var{pathParser:r}=this,{point:n}=Gt.pathM(r),{x:i,y:a}=n;r.addMarker(n),e.addPoint(i,a),t&&t.moveTo(i,a)}static pathL(t){var{current:e}=t,r;return{current:e,point:t.getAsCurrentPoint()}}pathL(t,e){var{pathParser:r}=this,{current:n,point:i}=Gt.pathL(r),{x:a,y:s}=i;r.addMarker(i,n),e.addPoint(a,s),t&&t.lineTo(a,s)}static pathH(t){var{current:e,command:r}=t,n=new bt((r.relative?e.x:0)+r.x,e.y);return t.current=n,{current:e,point:n}}pathH(t,e){var{pathParser:r}=this,{current:n,point:i}=Gt.pathH(r),{x:a,y:s}=i;r.addMarker(i,n),e.addPoint(a,s),t&&t.lineTo(a,s)}static pathV(t){var{current:e,command:r}=t,n=new bt(e.x,(r.relative?e.y:0)+r.y);return t.current=n,{current:e,point:n}}pathV(t,e){var{pathParser:r}=this,{current:n,point:i}=Gt.pathV(r),{x:a,y:s}=i;r.addMarker(i,n),e.addPoint(a,s),t&&t.lineTo(a,s)}static pathC(t){var{current:e}=t,r,n,i;return{current:e,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathC(t,e){var{pathParser:r}=this,{current:n,point:i,controlPoint:a,currentPoint:s}=Gt.pathC(r);r.addMarker(s,a,i),e.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),t&&t.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathS(t){var{current:e}=t,r,n,i;return{current:e,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathS(t,e){var{pathParser:r}=this,{current:n,point:i,controlPoint:a,currentPoint:s}=Gt.pathS(r);r.addMarker(s,a,i),e.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),t&&t.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathQ(t){var{current:e}=t,r,n;return{current:e,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}pathQ(t,e){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:a}=Gt.pathQ(r);r.addMarker(a,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),t&&t.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathT(t){var{current:e}=t,r=t.getReflectedControlPoint(),n;return t.control=r,{current:e,controlPoint:r,currentPoint:t.getAsCurrentPoint()}}pathT(t,e){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:a}=Gt.pathT(r);r.addMarker(a,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),t&&t.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathA(t){var{current:e,command:r}=t,{rX:n,rY:i,xRot:a,lArcFlag:s,sweepFlag:o}=r,u=a*(Math.PI/180),h=t.getAsCurrentPoint(),c=new bt(Math.cos(u)*(e.x-h.x)/2+Math.sin(u)*(e.y-h.y)/2,-Math.sin(u)*(e.x-h.x)/2+Math.cos(u)*(e.y-h.y)/2),l=Math.pow(c.x,2)/Math.pow(n,2)+Math.pow(c.y,2)/Math.pow(i,2);l>1&&(n*=Math.sqrt(l),i*=Math.sqrt(l));var f=(s===o?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(c.y,2)-Math.pow(i,2)*Math.pow(c.x,2))/(Math.pow(n,2)*Math.pow(c.y,2)+Math.pow(i,2)*Math.pow(c.x,2)));isNaN(f)&&(f=0);var g=new bt(f*n*c.y/i,f*-i*c.x/n),p=new bt((e.x+h.x)/2+Math.cos(u)*g.x-Math.sin(u)*g.y,(e.y+h.y)/2+Math.sin(u)*g.x+Math.cos(u)*g.y),d=ct([1,0],[(c.x-g.x)/n,(c.y-g.y)/i]),v=[(c.x-g.x)/n,(c.y-g.y)/i],y=[(-c.x-g.x)/n,(-c.y-g.y)/i],m=ct(v,y);return ht(v,y)<=-1&&(m=Math.PI),ht(v,y)>=1&&(m=0),{currentPoint:h,rX:n,rY:i,sweepFlag:o,xAxisRotation:u,centp:p,a1:d,ad:m}}pathA(t,e){var{pathParser:r}=this,{currentPoint:n,rX:i,rY:a,sweepFlag:s,xAxisRotation:o,centp:u,a1:h,ad:c}=Gt.pathA(r),l=1-s?1:-1,f=h+l*(c/2),g=new bt(u.x+i*Math.cos(f),u.y+a*Math.sin(f));if(r.addMarkerAngle(g,f-l*Math.PI/2),r.addMarkerAngle(n,f-l*Math.PI),e.addPoint(n.x,n.y),t&&!isNaN(h)&&!isNaN(c)){var p=i>a?i:a,d=i>a?1:i/a,v=i>a?a/i:1;t.translate(u.x,u.y),t.rotate(o),t.scale(d,v),t.arc(0,0,p,h,h+c,Boolean(1-s)),t.scale(1/d,1/v),t.rotate(-o),t.translate(-u.x,-u.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){Gt.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class Qt extends Gt{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class $t extends qt{constructor(t,e,r){super(t,e,new.target===$t||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(t,e);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(t){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var e=this.getAttribute("dx"),r=this.getAttribute("dy");e.hasValue()&&(this.x+=e.getPixels("x")),r.hasValue()&&(this.y+=r.getPixels("y")),this.x+=this.getAnchorDelta(t,this,0)}getBoundingBox(t){if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(t);var e=null;return this.children.forEach((r,n)=>{var i=this.getChildBoundingBox(t,this,this,n);e?e.addBoundingBox(i):e=i}),e}getFontSize(){var{document:t,parent:e}=this,r=Xt.parse(t.ctx.font).fontSize,n;return e.getStyle("font-size").getNumber(r)}getTElementBoundingBox(t){var e=this.getFontSize();return new Yt(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var n=e[r],i=null;if(t.isArabic){var a=e.length,s=e[r-1],o=e[r+1],u="isolated";if((0===r||" "===s)&&r<a-2&&" "!==o&&(u="terminal"),r>0&&" "!==s&&r<a-2&&" "!==o&&(u="medial"),r>0&&" "!==s&&(r===a-1||" "===o)&&(u="initial"),void 0!==t.glyphs[n]){var h=t.glyphs[n];i=h instanceof Qt?h:h[u]}}else i=t.glyphs[n];return i||(i=t.missingGlyph),i}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),n=r.indexOf(e),i=r.length-1,a=X(e.textContent||"");return 0===n&&(a=Y(a)),n===i&&(a=W(a)),a}renderChildren(t){if("text"===this.type){this.initializeCoordinates(t),this.children.forEach((e,r)=>{this.renderChild(t,this,this,r)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:r}=this,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var{unitsPerEm:a}=i.fontFace,s=Xt.parse(e.ctx.font),o=r.getStyle("font-size").getNumber(s.fontSize),u=r.getStyle("font-style").getString(s.fontStyle),h=o/a,c=i.isRTL?n.split("").reverse().join(""):n,l=q(r.getAttribute("dx").getString()),f=c.length,g=0;g<f;g++){var p=this.getGlyph(i,c,g);t.translate(this.x,this.y),t.scale(h,-h);var d=t.lineWidth;t.lineWidth=t.lineWidth*a/o,"italic"===u&&t.transform(1,0,.4,1,0,0),p.render(t),"italic"===u&&t.transform(1,0,-.4,1,0,0),t.lineWidth=d,t.scale(1/h,-1/h),t.translate(-this.x,-this.y),this.x+=o*(p.horizAdvX||i.horizAdvX)/a,void 0===l[g]||isNaN(l[g])||(this.x+=l[g])}else{var{x:v,y:y}=this;t.fillStyle&&t.fillText(n,v,y),t.strokeStyle&&t.strokeText(n,v,y)}}getAnchorDelta(t,e,r){var n=this.getStyle("text-anchor").getString("start");if("start"!==n){for(var{children:i}=e,a=i.length,s=null,o=0,u=r;u<a&&(s=i[u],!(u>r&&s.getAttribute("x").hasValue()||s.getAttribute("text-anchor").hasValue()));u++)o+=s.measureTextRecursive(t);return-1*("end"===n?o:o/2)}return 0}adjustChildCoordinates(t,e,r,n){var i=r.children[n];if("function"!=typeof i.measureText)return i;t.save(),i.setContext(t,!0);var a=i.getAttribute("x"),s=i.getAttribute("y"),o=i.getAttribute("dx"),u=i.getAttribute("dy"),h=i.getAttribute("text-anchor").getString("start");if(0===n&&"textNode"!==i.type&&(a.hasValue()||a.setValue(e.getAttribute("x").getValue("0")),s.hasValue()||s.setValue(e.getAttribute("y").getValue("0")),o.hasValue()||o.setValue(e.getAttribute("dx").getValue("0")),u.hasValue()||u.setValue(e.getAttribute("dy").getValue("0"))),a.hasValue()){if(i.x=a.getPixels("x")+e.getAnchorDelta(t,r,n),"start"!==h){var c=i.measureTextRecursive(t);i.x+=-1*("end"===h?c:c/2)}o.hasValue()&&(i.x+=o.getPixels("x"))}else{if("start"!==h){var l=i.measureTextRecursive(t);e.x+=-1*("end"===h?l:l/2)}o.hasValue()&&(e.x+=o.getPixels("x")),i.x=e.x}return e.x=i.x+i.measureText(t),s.hasValue()?(i.y=s.getPixels("y"),u.hasValue()&&(i.y+=u.getPixels("y"))):(u.hasValue()&&(e.y+=u.getPixels("y")),i.y=e.y),e.y=i.y,i.clearContext(t),t.restore(),i}getChildBoundingBox(t,e,r,n){var i=this.adjustChildCoordinates(t,e,r,n);if("function"!=typeof i.getBoundingBox)return null;var a=i.getBoundingBox(t);return a?(i.children.forEach((r,n)=>{var s=e.getChildBoundingBox(t,e,i,n);a.addBoundingBox(s)}),a):null}renderChild(t,e,r,n){var i=this.adjustChildCoordinates(t,e,r,n);i.render(t),i.children.forEach((r,n)=>{e.renderChild(t,e,i,n)})}measureTextRecursive(t){var e;return this.children.reduce((e,r)=>e+r.measureTextRecursive(t),this.measureText(t))}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),n=this.measureTargetText(t,r);return this.measureCache=n,n}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,n=r.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),a=n.isRTL?e.split("").reverse().join(""):e,s=q(r.getAttribute("dx").getString()),o=a.length,u=0,h=0;h<o;h++){var c;u+=(this.getGlyph(n,a,h).horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,void 0===s[h]||isNaN(s[h])||(u+=s[h])}return u}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var{width:l}=t.measureText(e);return this.clearContext(t),t.restore(),l}}class Zt extends $t{constructor(t,e,r){super(t,e,new.target===Zt||r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Kt extends Zt{constructor(){super(...arguments),this.type="textNode"}}class Jt extends qt{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:n,window:i}=r,a=t.canvas;if(n.setDefaults(t),a.style&&void 0!==t.font&&i&&void 0!==i.getComputedStyle){t.font=i.getComputedStyle(a).getPropertyValue("font");var s=new mt(r,"fontSize",Xt.parse(t.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:u}=n.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),c=this.getAttribute("refY"),l=this.getAttribute("viewBox"),f=l.hasValue()?q(l.getString()):null,g=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),p=0,d=0,v=0,y=0;f&&(p=f[0],d=f[1]),this.root||(o=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),"marker"===this.type&&(v=p,y=d,p=0,d=0)),n.viewPort.setCurrent(o,u),!this.node||this.parent&&"foreignObject"!==(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(o=f[2],u=f[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:o,height:n.viewPort.height,desiredHeight:u,minX:p,minY:d,refX:h.getValue(),refY:c.getValue(),clip:g,clipX:v,clipY:y}),f&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(o,u))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),s=this.getAttribute("style"),o=n.getNumber(0),u=i.getNumber(0);if(r)if("string"==typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(t),i.setValue(e),a.hasValue()||a.setValue("0 0 ".concat(o||t," ").concat(u||e)),s.hasValue()){var c=this.getStyle("width"),l=this.getStyle("height");c.hasValue()&&c.setValue("".concat(t,"px")),l.hasValue()&&l.setValue("".concat(e,"px"))}}}class te extends Gt{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),s=this.getAttribute("ry"),o=a.getPixels("x"),u=s.getPixels("y");if(a.hasValue()&&!s.hasValue()&&(u=o),s.hasValue()&&!a.hasValue()&&(o=u),o=Math.min(o,n/2),u=Math.min(u,i/2),t){var h=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&n>0&&(t.moveTo(e+o,r),t.lineTo(e+n-o,r),t.bezierCurveTo(e+n-o+h*o,r,e+n,r+u-h*u,e+n,r+u),t.lineTo(e+n,r+i-u),t.bezierCurveTo(e+n,r+i-u+h*u,e+n-o+h*o,r+i,e+n-o,r+i),t.lineTo(e+o,r+i),t.bezierCurveTo(e+o-h*o,r+i,e,r+i-u+h*u,e,r+i-u),t.lineTo(e,r+u),t.bezierCurveTo(e,r+u-h*u,e+o-h*o,r,e+o,r),t.closePath())}return new Yt(e,r,e+n,r+i)}getMarkers(){return null}}class ee extends Gt{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return t&&n>0&&(t.beginPath(),t.arc(e,r,n,0,2*Math.PI,!1),t.closePath()),new Yt(e-n,r-n,e+n,r+n)}getMarkers(){return null}}class re extends Gt{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return t&&r>0&&n>0&&(t.beginPath(),t.moveTo(i+r,a),t.bezierCurveTo(i+r,a+e*n,i+e*r,a+n,i,a+n),t.bezierCurveTo(i-e*r,a+n,i-r,a+e*n,i-r,a),t.bezierCurveTo(i-r,a-e*n,i-e*r,a-n,i,a-n),t.bezierCurveTo(i+e*r,a-n,i+r,a-e*n,i+r,a),t.closePath()),new Yt(i-r,a-n,i+r,a+n)}getMarkers(){return null}}class ne extends Gt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new bt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new bt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:n,y:i}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(n,i)),new Yt(e,r,n,i)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class ie extends Gt{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=bt.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:n}]=e,i=new Yt(r,n);return t&&(t.beginPath(),t.moveTo(r,n)),e.forEach(e=>{var{x:r,y:n}=e;i.addPoint(r,n),t&&t.lineTo(r,n)}),i}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach((n,i)=>{i!==e&&r.push([n,n.angleTo(t[i+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class ae extends ie{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:n}]=this.points;return t&&(t.lineTo(r,n),t.closePath()),e}}class se extends Bt{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),a=new Jt(this.document,null);a.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new mt(this.document,"width","".concat(n,"px")),a.attributes.height=new mt(this.document,"height","".concat(i,"px")),a.attributes.transform=new mt(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var s=this.document.createCanvas(n,i),o=s.getContext("2d"),u=this.getAttribute("x"),h=this.getAttribute("y"),c;u.hasValue()&&h.hasValue()&&o.translate(u.getPixels("x",!0),h.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var l=-1;l<=1;l++)for(var f=-1;f<=1;f++)o.save(),a.attributes.x=new mt(this.document,"x",l*s.width),a.attributes.y=new mt(this.document,"y",f*s.height),a.render(o),o.restore();return t.createPattern(s,"repeat")}}class oe extends Bt{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:n,y:i}=e,a=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(n,i),"auto"===a&&t.rotate(r),"strokeWidth"===s&&t.scale(t.lineWidth,t.lineWidth),t.save();var o=new Jt(this.document,null);o.type=this.type,o.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new mt(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new mt(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new mt(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new mt(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new mt(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new mt(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new mt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(t),t.restore(),"strokeWidth"===s&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===a&&t.rotate(-r),t.translate(-n,-i)}}}class ue extends Bt{constructor(){super(...arguments),this.type="defs"}render(){}}class he extends qt{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new Yt;return this.children.forEach(r=>{e.addBoundingBox(r.getBoundingBox(t))}),e}}class ce extends Bt{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:n,children:i}=this;i.forEach(t=>{"stop"===t.type&&n.push(t)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var{stops:i}=n,a=this.getGradient(t,e);if(!a)return this.addParentOpacity(r,i[i.length-1].color);if(i.forEach(t=>{a.addColorStop(t.offset,this.addParentOpacity(r,t.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:u}=s.screen,[h]=u.viewPorts,c=new te(s,null);c.attributes.x=new mt(s,"x",-o/3),c.attributes.y=new mt(s,"y",-o/3),c.attributes.width=new mt(s,"width",o),c.attributes.height=new mt(s,"height",o);var l=new he(s,null);l.attributes.transform=new mt(s,"transform",this.getAttribute("gradientTransform").getValue()),l.children=[c];var f=new Jt(s,null);f.attributes.x=new mt(s,"x",0),f.attributes.y=new mt(s,"y",0),f.attributes.width=new mt(s,"width",h.width),f.attributes.height=new mt(s,"height",h.height),f.children=[l];var g=s.createCanvas(h.width,h.height),p=g.getContext("2d");return p.fillStyle=a,f.render(p),p.createPattern(g,"no-repeat")}return a}inheritStopContainer(t){this.attributesToInherit.forEach(e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())})}addParentOpacity(t,e){var r;return t.hasValue()?new mt(this.document,"color",e).addOpacity(t).getColor():e}}class le extends ce{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=r?e.getBoundingBox(t):null;if(r&&!n)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&a===o?null:t.createLinearGradient(i,a,s,o)}}class fe extends ce{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=e.getBoundingBox(t);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,o=a;this.getAttribute("fx").hasValue()&&(s=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var u=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,o,h,i,a,u)}}class ge extends Bt{constructor(t,e,r){super(t,e,r),this.type="stop";var n=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),a=this.getStyle("stop-color",!0);""===a.getString()&&a.setValue("#000"),i.hasValue()&&(a=a.addOpacity(i)),this.offset=n,this.color=a.getColor()}}class pe extends Bt{constructor(t,e,r){super(t,e,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new mt(t,"values",null);var n=this.getAttribute("values");n.hasValue()&&this.values.setValue(n.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:n}=this.getProgress(),i=r.getNumber()+(n.getNumber()-r.getNumber())*e;return"%"===t&&(i*=100),"".concat(i).concat(t)}update(t){var{parent:e}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==n||this.frozen){if("remove"===n&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var o=s.getString();a="".concat(o,"(").concat(a,")")}r.setValue(a),i=!0}return i}getProgress(){var{document:t,values:e}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var n=r.progress*(e.getValue().length-1),i=Math.floor(n),a=Math.ceil(n);r.from=new mt(t,"from",parseFloat(e.getValue()[i])),r.to=new mt(t,"to",parseFloat(e.getValue()[a])),r.progress=(n-i)/(a-i)}else r.from=this.from,r.to=this.to;return r}}class de extends pe{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),n=new N.a(e.getColor()),i=new N.a(r.getColor());if(n.ok&&i.ok){var a=n.r+(i.r-n.r)*t,s=n.g+(i.g-n.g)*t,o=n.b+(i.b-n.b)*t;return"rgb(".concat(Math.floor(a),", ").concat(Math.floor(s),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}}class ve extends pe{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),n=q(e.getString()),i=q(r.getString()),a;return n.map((e,r)=>{var n;return e+(i[r]-e)*t}).join(" ")}}class ye extends Bt{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:n}=t,{children:i}=this;for(var a of i)switch(a.type){case"font-face":this.fontFace=a;var s=a.getStyle("font-family");s.hasValue()&&(n[s.getString()]=this);break;case"missing-glyph":this.missingGlyph=a;break;case"glyph":var o=a;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[o.unicode]&&(this.glyphs[o.unicode]={}),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o}}render(){}}class me extends Bt{constructor(t,e,r){super(t,e,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class xe extends Gt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class be extends $t{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}class we extends $t{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:n}=e,i=n[0],a=n.length>0&&Array.from(n).every(t=>3===t.nodeType);this.hasText=a,this.text=a?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:n}=this,{mouse:i}=e.screen,a=new mt(e,"fontSize",Xt.parse(e.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new Yt(r,n-a.getPixels("y"),r+this.measureText(t),n))}else if(this.children.length>0){var s=new he(this.document,null);s.children=this.children,s.parent=this,s.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){var t;this.document.ctx.canvas.style.cursor="pointer"}}function Se(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Te(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Se(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Se(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}class Ae extends $t{constructor(t,e,r){super(t,e,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var n=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(n)}getText(){return this.text}path(t){var{dataArray:e}=this;t&&t.beginPath(),e.forEach(e=>{var{type:r,points:n}=e;switch(r){case Wt.LINE_TO:t&&t.lineTo(n[0],n[1]);break;case Wt.MOVE_TO:t&&t.moveTo(n[0],n[1]);break;case Wt.CURVE_TO:t&&t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case Wt.QUAD_TO:t&&t.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case Wt.ARC:var[i,a,s,o,u,h,c,l]=n,f=s>o?s:o,g=s>o?1:s/o,p=s>o?o/s:1;t&&(t.translate(i,a),t.rotate(c),t.scale(g,p),t.arc(0,0,f,u,u+h,Boolean(1-l)),t.scale(1/g,1/p),t.rotate(-c),t.translate(-i,-a));break;case Wt.CLOSE_PATH:t&&t.closePath()}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:n}=this,i=t.fillStyle;"underline"===e&&t.beginPath(),n.forEach((n,i)=>{var{p0:a,p1:s,rotation:o,text:u}=n;t.save(),t.translate(a.x,a.y),t.rotate(o),t.fillStyle&&t.fillText(u,0,0),t.strokeStyle&&t.strokeText(u,0,0),t.restore(),"underline"===e&&(0===i&&t.moveTo(a.x,a.y+r/8),t.lineTo(s.x,s.y+r/5))}),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,e,r,n,i,a,s,o,u){var h=a,c=this.measureText(t,o);" "===o&&"justify"===e&&r<n&&(c+=(n-r)/i),u>-1&&(h+=this.getLetterSpacingAt(u));var l=this.textHeight/20,f=this.getEquidistantPointOnPath(h,l,0),g=this.getEquidistantPointOnPath(h+c,l,0),p={p0:f,p1:g},d=f&&g?Math.atan2(g.y-f.y,g.x-f.x):0;if(s){var v=Math.cos(Math.PI/2+d)*s,y=Math.cos(-d)*s;p.p0=Te(Te({},f),{},{x:f.x+v,y:f.y+y}),p.p1=Te(Te({},g),{},{x:g.x+v,y:g.y+y})}return{offset:h+=c,segment:p,rotation:d}}measureText(t,e){var{measuresCache:r}=this,n=e||this.getText();if(r.has(n))return r.get(n);var i=this.measureTargetText(t,n);return r.set(n,i),i}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),n=e.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(t=>t.getPixels("x")),a=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),u=this.parent.getStyle("letter-spacing"),h=0;o.hasValue()&&"inherit"!==o.getValue()?o.hasValue()&&"initial"!==o.getValue()&&"unset"!==o.getValue()&&(h=o.getPixels()):h=u.getPixels();var c=[],l=e.length;this.letterSpacingCache=c;for(var f=0;f<l;f++)c.push(void 0!==i[f]?i[f]:h);var g=c.reduce((t,e,r)=>0===r?0:t+e||0,0),p=this.measureText(t),d=Math.max(p+g,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var v=this.getPathLength(),y=this.getStyle("startOffset").getNumber(0)*v,m=0;"middle"!==s&&"center"!==s||(m=-d/2),"end"!==s&&"right"!==s||(m=-d),m+=y,r.forEach((e,i)=>{var{offset:o,segment:u,rotation:h}=this.findSegmentToFitChar(t,s,d,v,n,m,a,e,i);m=o,u.p0&&u.p1&&this.glyphInfo.push({text:r[i],p0:u.p0,p1:u.p1,rotation:h})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:n}=r,i=n?n.x:0,a=n?n.y:0,s=r.next(),o=s.type,u=[];switch(s.type){case Wt.MOVE_TO:this.pathM(r,u);break;case Wt.LINE_TO:o=this.pathL(r,u);break;case Wt.HORIZ_LINE_TO:o=this.pathH(r,u);break;case Wt.VERT_LINE_TO:o=this.pathV(r,u);break;case Wt.CURVE_TO:this.pathC(r,u);break;case Wt.SMOOTH_CURVE_TO:o=this.pathS(r,u);break;case Wt.QUAD_TO:this.pathQ(r,u);break;case Wt.SMOOTH_QUAD_TO:o=this.pathT(r,u);break;case Wt.ARC:u=this.pathA(r);break;case Wt.CLOSE_PATH:Gt.pathZ(r)}s.type!==Wt.CLOSE_PATH?e.push({type:o,points:u,start:{x:i,y:a},pathLength:this.calcLength(i,a,o,u)}):e.push({type:Wt.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:n}=Gt.pathM(t).point;e.push(r,n)}pathL(t,e){var{x:r,y:n}=Gt.pathL(t).point;return e.push(r,n),Wt.LINE_TO}pathH(t,e){var{x:r,y:n}=Gt.pathH(t).point;return e.push(r,n),Wt.LINE_TO}pathV(t,e){var{x:r,y:n}=Gt.pathV(t).point;return e.push(r,n),Wt.LINE_TO}pathC(t,e){var{point:r,controlPoint:n,currentPoint:i}=Gt.pathC(t);e.push(r.x,r.y,n.x,n.y,i.x,i.y)}pathS(t,e){var{point:r,controlPoint:n,currentPoint:i}=Gt.pathS(t);return e.push(r.x,r.y,n.x,n.y,i.x,i.y),Wt.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:n}=Gt.pathQ(t);e.push(r.x,r.y,n.x,n.y)}pathT(t,e){var{controlPoint:r,currentPoint:n}=Gt.pathT(t);return e.push(r.x,r.y,n.x,n.y),Wt.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:n,xAxisRotation:i,centp:a,a1:s,ad:o}=Gt.pathA(t);return 0===n&&o>0&&(o-=2*Math.PI),1===n&&o<0&&(o+=2*Math.PI),[a.x,a.y,e,r,s,o,i,n]}calcLength(t,e,r,n){var i=0,a=null,s=null,o=0;switch(r){case Wt.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case Wt.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)s=this.getPointOnCubicBezier(o,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case Wt.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)s=this.getPointOnQuadraticBezier(o,t,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case Wt.ARC:i=0;var u=n[4],h=n[5],c=n[4]+h,l=Math.PI/180;if(Math.abs(u-c)<l&&(l=Math.abs(u-c)),a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),h<0)for(o=u-l;o>c;o-=l)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(o=u+l;o<c;o+=l)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],c,0),i+=this.getLineLength(a.x,a.y,s.x,s.y)}return 0}getPointOnLine(t,e,r,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,o=(i-r)/(n-e+ot),u=Math.sqrt(t*t/(1+o*o));n<e&&(u*=-1);var h=o*u,c=null;if(n===e)c={x:a,y:s+h};else if((s-r)/(a-e+ot)===o)c={x:a+u,y:s+h};else{var l=0,f=0,g=this.getLineLength(e,r,n,i);if(g<ot)return null;var p=(a-e)*(n-e)+(s-r)*(i-r);l=e+(p/=g*g)*(n-e),f=r+p*(i-r);var d=this.getLineLength(a,s,l,f),v=Math.sqrt(t*t-d*d);u=Math.sqrt(v*v/(1+o*o)),n<e&&(u*=-1),c={x:l+u,y:f+(h=o*u)}}return c}getPointOnPath(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||t-5e-5>e)return null;var{dataArray:i}=this;for(var a of i){if(!a||!(a.pathLength<5e-5||r+a.pathLength+5e-5<t)){var s=t-r,o=0;switch(a.type){case Wt.LINE_TO:n=this.getPointOnLine(s,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case Wt.ARC:var u=a.points[4],h=a.points[5],c=a.points[4]+h;if(o=u+s/a.pathLength*h,h<0&&o<c||h>=0&&o>c)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break;case Wt.CURVE_TO:(o=s/a.pathLength)>1&&(o=1),n=this.getPointOnCubicBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case Wt.QUAD_TO:(o=s/a.pathLength)>1&&(o=1),n=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(n)return n;break}r+=a.pathLength}return null}getLineLength(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((t,e)=>e.pathLength>0?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,r,n,i,a,s,o,u){var h,c;return{x:o*lt(t)+a*ft(t)+n*gt(t)+e*pt(t),y:u*lt(t)+s*ft(t)+i*gt(t)+r*pt(t)}}getPointOnQuadraticBezier(t,e,r,n,i,a,s){var o,u;return{x:a*dt(t)+n*vt(t)+e*yt(t),y:s*dt(t)+i*vt(t)+r*yt(t)}}getPointOnEllipticalArc(t,e,r,n,i,a){var s=Math.cos(a),o=Math.sin(a),u=r*Math.cos(i),h=n*Math.sin(i);return{x:t+(u*s-h*o),y:e+(u*o+h*s)}}buildEquidistantCache(t,e){var r=this.getPathLength(),n=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var a=0,s=0;s<=r;s+=n){var o=this.getPointOnPath(s),u=this.getPointOnPath(s+n);o&&u&&((a+=this.getLineLength(o.x,o.y,u.x,u.y))>=i&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:s}),a-=i))}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var n=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}var Oe=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Pe extends qt{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var n=this.getHrefAttribute().getString();if(n){var i=n.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(n);t.images.push(this),i?this.loadSvg(n):this.loadImage(n),this.isSvg=i}}loadImage(t){var e=this;return s()((function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(e){console.error('Error while loading image "'.concat(t,'":'),e)}e.loaded=!0}))()}loadSvg(t){var e=this;return s()((function*(){var r=Oe.exec(t);if(r){var n=r[5];"base64"===r[4]?e.image=atob(n):e.image=decodeURIComponent(n)}else try{var i=yield e.document.fetch(t),a=yield i.text();e.image=a}catch(e){console.error('Error while loading image "'.concat(t,'":'),e)}e.loaded=!0}))()}renderChildren(t){var{document:e,image:r,loaded:n}=this,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(n&&r&&s&&o){if(t.save(),t.translate(i,a),this.isSvg){var u=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:o});u.document.documentElement.parent=this,u.render()}else{var h=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:h.width,height:o,desiredHeight:h.height}),this.loaded&&(void 0===h.complete||h.complete)&&t.drawImage(h,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new Yt(t,e,t+r,e+n)}}class Ee extends qt{constructor(){super(...arguments),this.type="symbol"}render(t){}}class Ce{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return s()((function*(){try{var{document:n}=r,i,a=(yield n.canvg.parser.load(e)).getElementsByTagName("font");Array.from(a).forEach(e=>{var r=n.createElement(e);n.definitions[t]=r})}catch(t){console.error('Error while loading font "'.concat(e,'":'),t)}r.loaded=!0}))()}}class Me extends Bt{constructor(t,e,r){var n,i;super(t,e,r),this.type="style",X(Array.from(e.childNodes).map(t=>t.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(e=>{var r=e.trim();if(r){var n=r.split("{"),i=n[0].split(","),a=n[1].split(";");i.forEach(e=>{var r=e.trim();if(r){var n=t.styles[r]||{};if(a.forEach(e=>{var r=e.indexOf(":"),i=e.substr(0,r).trim(),a=e.substr(r+1,e.length-r).trim();i&&a&&(n[i]=new mt(t,i,a))}),t.styles[r]=n,t.stylesSpecificity[r]=st(r),"@font-face"===r){var i=n["font-family"].getString().replace(/"|'/g,""),s;n.src.getString().split(",").forEach(e=>{if(e.indexOf('format("svg")')>0){var r=$(e);r&&new Ce(t).load(i,r)}})}}})}})}}Me.parseExternalUrl=$;class Ne extends qt{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:r}=this;if(r){var n=r;if("symbol"===r.type&&((n=new Jt(e,null)).attributes.viewBox=new mt(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new mt(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new mt(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new mt(e,"opacity",this.calculateOpacity())),"svg"===n.type){var i=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new mt(e,"width",i.getString())),a.hasValue()&&(n.attributes.height=new mt(e,"height",a.getString()))}var s=n.parent;n.parent=this,n.render(t),n.parent=s}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return Dt.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function _e(t,e,r,n,i,a){return t[r*n*4+4*e+a]}function Ve(t,e,r,n,i,a,s){t[r*n*4+4*e+a]=s}function Re(t,e,r){var n;return t[e]*r}function ke(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}class Ie extends Bt{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var n=q(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var i=n[0];n=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var a=n[0]*Math.PI/180;n=[ke(a,.213,.787,-.213),ke(a,.715,-.715,-.715),ke(a,.072,-.072,.928),0,0,ke(a,.213,-.213,.143),ke(a,.715,.285,.14),ke(a,.072,-.072,-.283),0,0,ke(a,.213,-.213,-.787),ke(a,.715,-.715,.715),ke(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=n,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,n,i){for(var{includeOpacity:a,matrix:s}=this,o=t.getImageData(0,0,n,i),u=0;u<i;u++)for(var h=0;h<n;h++){var c=_e(o.data,h,u,n,i,0),l=_e(o.data,h,u,n,i,1),f=_e(o.data,h,u,n,i,2),g=_e(o.data,h,u,n,i,3),p=Re(s,0,c)+Re(s,1,l)+Re(s,2,f)+Re(s,3,g)+Re(s,4,1),d=Re(s,5,c)+Re(s,6,l)+Re(s,7,f)+Re(s,8,g)+Re(s,9,1),v=Re(s,10,c)+Re(s,11,l)+Re(s,12,f)+Re(s,13,g)+Re(s,14,1),y=Re(s,15,c)+Re(s,16,l)+Re(s,17,f)+Re(s,18,g)+Re(s,19,1);a&&(p=0,d=0,v=0,y*=g/255),Ve(o.data,h,u,n,i,0,p),Ve(o.data,h,u,n,i,1,d),Ve(o.data,h,u,n,i,2,v),Ve(o.data,h,u,n,i,3,y)}t.clearRect(0,0,n,i),t.putImageData(o,0,0)}}class Le extends Bt{constructor(){super(...arguments),this.type="mask"}apply(t,e){var{document:r}=this,n=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!a&&!s){var o=new Yt;this.children.forEach(e=>{o.addBoundingBox(e.getBoundingBox(t))}),n=Math.floor(o.x1),i=Math.floor(o.y1),a=Math.floor(o.width),s=Math.floor(o.height)}var u=this.removeStyles(e,Le.ignoreStyles),h=r.createCanvas(n+a,i+s),c=h.getContext("2d");r.screen.setDefaults(c),this.renderChildren(c),new Ie(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(c,0,0,n+a,i+s);var l=r.createCanvas(n+a,i+s),f=l.getContext("2d");r.screen.setDefaults(f),e.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=c.createPattern(h,"no-repeat"),f.fillRect(0,0,n+a,i+s),t.fillStyle=f.createPattern(l,"no-repeat"),t.fillRect(0,0,n+a,i+s),this.restoreStyles(e,u)}render(t){}}Le.ignoreStyles=["mask","transform","clip-path"];var De=()=>{};class Be extends Bt{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:n,closePath:i}=t;r&&(r.beginPath=De,r.closePath=De),Reflect.apply(n,t,[]),this.children.forEach(n=>{if(void 0!==n.path){var a=void 0!==n.elementTransform?n.elementTransform():null;a||(a=Dt.fromElement(e,n)),a&&a.apply(t),n.path(t),r&&(r.closePath=i),a&&a.unapply(t)}}),Reflect.apply(i,t,[]),t.clip(),r&&(r.beginPath=n,r.closePath=i)}render(t){}}class je extends Bt{constructor(){super(...arguments),this.type="filter"}apply(t,e){var{document:r,children:n}=this,i=e.getBoundingBox(t);if(i){var a=0,s=0;n.forEach(t=>{var e=t.extraFilterDistance||0;a=Math.max(a,e),s=Math.max(s,e)});var o=Math.floor(i.width),u=Math.floor(i.height),h=o+2*a,c=u+2*s;if(!(h<1||c<1)){var l=Math.floor(i.x),f=Math.floor(i.y),g=this.removeStyles(e,je.ignoreStyles),p=r.createCanvas(h,c),d=p.getContext("2d");r.screen.setDefaults(d),d.translate(-l+a,-f+s),e.render(d),n.forEach(t=>{"function"==typeof t.apply&&t.apply(d,0,0,h,c)}),t.drawImage(p,0,0,h,c,l-a,f-s,h,c),this.restoreStyles(e,g)}}}render(t){}}je.ignoreStyles=["filter","transform","clip-path"];class ze extends Bt{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,n,i){}}class Fe extends Bt{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,n,i){}}class Ue extends Bt{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,n,i){}}class He extends Bt{constructor(t,e,r){super(t,e,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,r,n,i){var{document:a,blurRadius:s}=this,o=a.window?a.window.document.body:null,u=t.canvas;u.id=a.getUniqueId(),o&&(u.style.display="none",o.appendChild(u)),Object(z.a)(u,e,r,n,i,s),o&&o.removeChild(u)}}class Xe extends Bt{constructor(){super(...arguments),this.type="title"}}class Ye extends Bt{constructor(){super(...arguments),this.type="desc"}}var We={svg:Jt,rect:te,circle:ee,ellipse:re,line:ne,polyline:ie,polygon:ae,path:Gt,pattern:se,marker:oe,defs:ue,linearGradient:le,radialGradient:fe,stop:ge,animate:pe,animateColor:de,animateTransform:ve,font:ye,"font-face":me,"missing-glyph":xe,glyph:Qt,text:$t,tspan:Zt,tref:be,a:we,textPath:Ae,image:Pe,g:he,symbol:Ee,style:Me,use:Ne,mask:Le,clipPath:Be,filter:je,feDropShadow:ze,feMorphology:Fe,feComposite:Ue,feColorMatrix:Ie,feGaussianBlur:He,title:Xe,desc:Ye};function qe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ge(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qe(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qe(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r}function $e(t){return Ze.apply(this,arguments)}function Ze(){return(Ze=s()((function*(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise((e,n)=>{r.onload=()=>{e(r)},r.onerror=(t,e,r,i,a)=>{n(a)},r.src=t})}))).apply(this,arguments)}class Ke{constructor(t){var{rootEmSize:e=12,emSize:r=12,createCanvas:n=Ke.createCanvas,createImage:i=Ke.createImage,anonymousCrossOrigin:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=n,this.createImage=this.bindCreateImage(i,a),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,e){return"boolean"==typeof e?(r,n)=>t(r,"boolean"==typeof n?n:e):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:e}=this;e.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(t=>t.loaded)}isFontsLoaded(){return this.fonts.every(t=>t.loaded)}createDocumentElement(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),r=Ke.elementTypes[e];return void 0!==r?new r(this,t):new jt(this,t)}createTextNode(t){return new Kt(this,t)}setViewBox(t){this.screen.setViewBox(Ge({document:this},t))}}function Je(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}Ke.createCanvas=Qe,Ke.createImage=$e,Ke.elementTypes=We;class er{constructor(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new Et(r),this.screen=new At(t,r),this.options=r;var n=new Ke(this,r),i=n.createDocumentElement(e);this.document=n,this.documentElement=i}static from(t,e){var r=arguments;return s()((function*(){var n=r.length>2&&void 0!==r[2]?r[2]:{},i=new Et(n),a=yield i.parse(e);return new er(t,a,n)}))()}static fromString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n,i=new Et(r).parseFromString(e);return new er(t,i,r)}fork(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return er.from(t,e,tr(tr({},this.options),r))}forkString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return er.fromString(t,e,tr(tr({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return s()((function*(){var r=t.length>0&&void 0!==t[0]?t[0]:{};e.start(tr({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield e.ready(),e.stop()}))()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:r,options:n}=this;r.start(e,tr(tr({enableRedraw:!0},n),t))}stop(){this.screen.stop()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,e,r)}}e.default=er}.call(this,r(234))},1687:function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,r(85))},1688:function(t,e){var r=Function.prototype,n=r.bind,i=r.call,a=n&&n.bind(i);t.exports=n?function(t){return t&&a(i,t)}:function(t){return t&&function(){return i.apply(t,arguments)}}},1689:function(t,e){t.exports=function(t){return"function"==typeof t}},1690:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1691:function(t,e,r){var n=r(1687),i=r(1726),a=r(1696),s=r(1747),o=r(1746),u=r(1745),h=i("wks"),c=n.Symbol,l=c&&c.for,f=u?c:c&&c.withoutSetter||s;t.exports=function(t){if(!a(h,t)||!o&&"string"!=typeof h[t]){var e="Symbol."+t;o&&a(c,t)?h[t]=c[t]:h[t]=u&&l?l(e):f(e)}return h[t]}},1692:function(t,e,r){var n=r(1687),i=r(1698),a=n.String,s=n.TypeError;t.exports=function(t){if(i(t))return t;throw s(a(t)+" is not an object")}},1693:function(t,e){var r=Function.prototype.call;t.exports=r.bind?r.bind(r):function(){return r.apply(r,arguments)}},1694:function(t,e,r){var n=r(1687),i=r(1709).f,a=r(1706),s=r(1701),o=r(1728),u=r(1773),h=r(1751);t.exports=function(t,e){var r=t.target,c=t.global,l=t.stat,f,g,p,d,v,y;if(g=c?n:l?n[r]||o(r,{}):(n[r]||{}).prototype)for(p in e){if(v=e[p],d=t.noTargetGet?(y=i(g,p))&&y.value:g[p],!(f=h(c?p:r+(l?".":"#")+p,t.forced))&&void 0!==d){if(typeof v==typeof d)continue;u(v,d)}(t.sham||d&&d.sham)&&a(v,"sham",!0),s(g,p,v,t)}}},1695:function(t,e,r){var n,i=r(1687).TypeError;t.exports=function(t){if(null==t)throw i("Can't call method on "+t);return t}},1696:function(t,e,r){var n=r(1688),i=r(1715),a=n({}.hasOwnProperty);t.exports=Object.hasOwn||function t(e,r){return a(i(e),r)}},1697:function(t,e,r){var n=r(1687),i=r(1735),a=n.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return a(t)}},1698:function(t,e,r){var n=r(1689);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},1699:function(t,e,r){var n=r(1690);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},1700:function(t,e,r){var n=r(1687),i=r(1689),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(n[t]):n[t]&&n[t][e]}},1701:function(t,e,r){var n=r(1687),i=r(1689),a=r(1696),s=r(1706),o=r(1728),u=r(1717),h=r(1718),c=r(1719).CONFIGURABLE,l=h.get,f=h.enforce,g=String(String).split("String");(t.exports=function(t,e,r,u){var h=!!u&&!!u.unsafe,l=!!u&&!!u.enumerable,p=!!u&&!!u.noTargetGet,d=u&&void 0!==u.name?u.name:e,v;i(r)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a(r,"name")||c&&r.name!==d)&&s(r,"name",d),(v=f(r)).source||(v.source=g.join("string"==typeof d?d:""))),t!==n?(h?!p&&t[e]&&(l=!0):delete t[e],l?t[e]=r:s(t,e,r)):l?t[e]=r:o(e,r)})(Function.prototype,"toString",(function t(){return i(this)&&l(this).source||u(this)}))},1702:function(t,e,r){var n=r(1688),i=n({}.toString),a=n("".slice);t.exports=function(t){return a(i(t),8,-1)}},1703:function(t,e,r){var n=r(1704);t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},1704:function(t,e,r){var n=r(1687),i=r(1689),a=r(1714),s=n.TypeError;t.exports=function(t){if(i(t))return t;throw s(a(t)+" is not a function")}},1705:function(t,e){t.exports=!1},1706:function(t,e,r){var n=r(1699),i=r(1707),a=r(1724);t.exports=n?function(t,e,r){return i.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},1707:function(t,e,r){var n=r(1687),i=r(1699),a=r(1748),s=r(1692),o=r(1743),u=n.TypeError,h=Object.defineProperty;e.f=i?h:function t(e,r,n){if(s(e),r=o(r),s(n),a)try{return h(e,r,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[r]=n.value),e}},1708:function(t,e,r){var n=r(1720),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},1709:function(t,e,r){var n=r(1699),i=r(1693),a=r(1769),s=r(1724),o=r(1710),u=r(1743),h=r(1696),c=r(1748),l=Object.getOwnPropertyDescriptor;e.f=n?l:function t(e,r){if(e=o(e),r=u(r),c)try{return l(e,r)}catch(t){}if(h(e,r))return s(!i(a.f,e,r),e[r])}},1710:function(t,e,r){var n=r(1742),i=r(1695);t.exports=function(t){return n(i(t))}},1711:function(t,e){t.exports={}},1712:function(t,e,r){var n=r(1688);t.exports=n({}.isPrototypeOf)},1713:function(t,e,r){var n=r(1700);t.exports=n("navigator","userAgent")||""},1714:function(t,e,r){var n,i=r(1687).String;t.exports=function(t){try{return i(t)}catch(t){return"Object"}}},1715:function(t,e,r){var n=r(1687),i=r(1695),a=n.Object;t.exports=function(t){return a(i(t))}},1716:function(t,e,r){var n=r(1687),i=r(1698),a=n.document,s=i(a)&&i(a.createElement);t.exports=function(t){return s?a.createElement(t):{}}},1717:function(t,e,r){var n=r(1688),i=r(1689),a=r(1727),s=n(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return s(t)}),t.exports=a.inspectSource},1718:function(t,e,r){var n=r(1772),i=r(1687),a=r(1688),s=r(1698),o=r(1706),u=r(1696),h=r(1727),c=r(1729),l=r(1730),f="Object already initialized",g=i.TypeError,p=i.WeakMap,d,v,y,m=function(t){return y(t)?v(t):d(t,{})},x=function(t){return function(e){var r;if(!s(e)||(r=v(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return r}};if(n||h.state){var b=h.state||(h.state=new p),w=a(b.get),S=a(b.has),T=a(b.set);d=function(t,e){if(S(b,t))throw new g(f);return e.facade=t,T(b,t,e),e},v=function(t){return w(b,t)||{}},y=function(t){return S(b,t)}}else{var A=c("state");l[A]=!0,d=function(t,e){if(u(t,A))throw new g(f);return e.facade=t,o(t,A,e),e},v=function(t){return u(t,A)?t[A]:{}},y=function(t){return u(t,A)}}t.exports={set:d,get:v,has:y,enforce:m,getterFor:x}},1719:function(t,e,r){var n=r(1699),i=r(1696),a=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,o=i(a,"name"),u=o&&"something"===function t(){}.name,h=o&&(!n||n&&s(a,"name").configurable);t.exports={EXISTS:o,PROPER:u,CONFIGURABLE:h}},1720:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?n:r)(e)}},1721:function(t,e,r){var n=r(1702),i=r(1687);t.exports="process"==n(i.process)},1722:function(t,e,r){"use strict";var n=r(1693),i=r(1688),a=r(1697),s=r(1760),o=r(1761),u=r(1726),h=r(1723),c=r(1718).get,l=r(1803),f=r(1804),g=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,d=p,v=i("".charAt),y=i("".indexOf),m=i("".replace),x=i("".slice),b=(S=/b*/g,n(p,w=/a/,"a"),n(p,S,"a"),0!==w.lastIndex||0!==S.lastIndex),w,S,T=o.UNSUPPORTED_Y||o.BROKEN_CARET,A=void 0!==/()??/.exec("")[1],O;(b||A||T||l||f)&&(d=function t(e){var r=this,i=c(r),o=a(e),u=i.raw,l,f,w,S,O,P,E;if(u)return u.lastIndex=r.lastIndex,l=n(d,u,o),r.lastIndex=u.lastIndex,l;var C=i.groups,M=T&&r.sticky,N=n(s,r),_=r.source,V=0,R=o;if(M&&(N=m(N,"y",""),-1===y(N,"g")&&(N+="g"),R=x(o,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&"\n"!==v(o,r.lastIndex-1))&&(_="(?: "+_+")",R=" "+R,V++),f=new RegExp("^(?:"+_+")",N)),A&&(f=new RegExp("^"+_+"$(?!\\s)",N)),b&&(w=r.lastIndex),S=n(p,M?f:r,R),M?S?(S.input=x(S.input,V),S[0]=x(S[0],V),S.index=r.lastIndex,r.lastIndex+=S[0].length):r.lastIndex=0:b&&S&&(r.lastIndex=r.global?S.index+S[0].length:w),A&&S&&S.length>1&&n(g,S[0],f,(function(){for(O=1;O<arguments.length-2;O++)void 0===arguments[O]&&(S[O]=void 0)})),S&&C)for(S.groups=P=h(null),O=0;O<C.length;O++)P[(E=C[O])[0]]=S[E[1]];return S}),t.exports=d},1723:function(t,e,r){var n=r(1692),i=r(1801),a=r(1732),s=r(1730),o=r(1756),u=r(1716),h=r(1729),c=">",l="<",f="prototype",g="script",p=h("IE_PROTO"),d=function(){},v=function(t){return l+g+c+t+l+"/"+g+c},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){var t=u("iframe"),e="javascript:",r;return t.style.display="none",o.appendChild(t),t.src=String(e),(r=t.contentWindow.document).open(),r.write(v("document.F=Object")),r.close(),r.F},x,b=function(){try{x=new ActiveXObject("htmlfile")}catch(t){}b="undefined"!=typeof document?document.domain&&x?y(x):m():y(x);for(var t=a.length;t--;)delete b[f][a[t]];return b()};s[p]=!0,t.exports=Object.create||function t(e,r){var a;return null!==e?(d[f]=n(e),a=new d,d[f]=null,a[p]=e):a=b(),void 0===r?a:i(a,r)}},1724:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1725:function(t,e,r){var n=r(1687),i=r(1713),a=n.process,s=n.Deno,o=a&&a.versions||s&&s.version,u=o&&o.v8,h,c;u&&(c=(h=u.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!c&&i&&(!(h=i.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=i.match(/Chrome\/(\d+)/))&&(c=+h[1]),t.exports=c},1726:function(t,e,r){var n=r(1705),i=r(1727);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.1",mode:n?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},1727:function(t,e,r){var n=r(1687),i=r(1728),a="__core-js_shared__",s=n[a]||i(a,{});t.exports=s},1728:function(t,e,r){var n=r(1687),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},1729:function(t,e,r){var n=r(1726),i=r(1747),a=n("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},1730:function(t,e){t.exports={}},1731:function(t,e,r){var n=r(1708);t.exports=function(t){return n(t.length)}},1732:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1733:function(t,e,r){var n=r(1707).f,i=r(1696),a,s=r(1691)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,s)&&n(t,s,{configurable:!0,value:e})}},1734:function(t,e,r){var n=r(1688),i=r(1704),a=n(n.bind);t.exports=function(t,e){return i(t),void 0===e?t:a?a(t,e):function(){return t.apply(e,arguments)}}},1735:function(t,e,r){var n=r(1687),i=r(1786),a=r(1689),s=r(1702),o,u=r(1691)("toStringTag"),h=n.Object,c="Arguments"==s(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(t){}};t.exports=i?s:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=l(e=h(t),u))?r:c?s(e):"Object"==(n=s(e))&&a(e.callee)?"Arguments":n}},1736:function(t,e){var r=Function.prototype,n=r.apply,i=r.bind,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(n):function(){return a.apply(n,arguments)})},1737:function(t,e,r){"use strict";r(1800);var n=r(1688),i=r(1701),a=r(1722),s=r(1690),o=r(1691),u=r(1706),h=o("species"),c=RegExp.prototype;t.exports=function(t,e,r,l){var f=o(t),g=!s((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),p=g&&!s((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[h]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return e=!0,null},r[f](""),!e}));if(!g||!p||r){var d=n(/./[f]),v=e(f,""[t],(function(t,e,r,i,s){var o=n(t),u=e.exec;return u===a||u===c.exec?g&&!s?{done:!0,value:d(e,r,i)}:{done:!0,value:o(r,e,i)}:{done:!1}}));i(String.prototype,t,v[0]),i(c,f,v[1])}l&&u(c[f],"sham",!0)}},1738:function(t,e,r){"use strict";var n=r(1805).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},1739:function(t,e,r){var n=r(1687),i=r(1693),a=r(1692),s=r(1689),o=r(1702),u=r(1722),h=n.TypeError;t.exports=function(t,e){var r=t.exec;if(s(r)){var n=i(r,t,e);return null!==n&&a(n),n}if("RegExp"===o(t))return i(u,t,e);throw h("RegExp#exec called on incompatible receiver")}},1740:function(t,e,r){var n=r(1687),i=r(1762),a=n.TypeError;t.exports=function(t){if(i(t))throw a("The method doesn't accept regular expressions");return t}},1741:function(t,e,r){var n,i=r(1691)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[i]=!1,"/./"[t](e)}catch(t){}}return!1}},1742:function(t,e,r){var n=r(1687),i=r(1688),a=r(1690),s=r(1702),o=n.Object,u=i("".split);t.exports=a((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?u(t,""):o(t)}:o},1743:function(t,e,r){var n=r(1770),i=r(1744);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},1744:function(t,e,r){var n=r(1687),i=r(1700),a=r(1689),s=r(1712),o=r(1745),u=n.Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return a(e)&&s(e.prototype,u(t))}},1745:function(t,e,r){var n=r(1746);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1746:function(t,e,r){var n=r(1725),i=r(1690);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1747:function(t,e,r){var n=r(1688),i=0,a=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+a,36)}},1748:function(t,e,r){var n=r(1699),i=r(1690),a=r(1716);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},1749:function(t,e,r){var n=r(1688),i=r(1696),a=r(1710),s=r(1750).indexOf,o=r(1730),u=n([].push);t.exports=function(t,e){var r=a(t),n=0,h=[],c;for(c in r)!i(o,c)&&i(r,c)&&u(h,c);for(;e.length>n;)i(r,c=e[n++])&&(~s(h,c)||u(h,c));return h}},1750:function(t,e,r){var n=r(1710),i=r(1776),a=r(1731),s=function(t){return function(e,r,s){var o=n(e),u=a(o),h=i(s,u),c;if(t&&r!=r){for(;u>h;)if((c=o[h++])!=c)return!0}else for(;u>h;h++)if((t||h in o)&&o[h]===r)return t||h||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},1751:function(t,e,r){var n=r(1690),i=r(1689),a=/#|\.prototype\./,s=function(t,e){var r=u[o(t)];return r==c||r!=h&&(i(e)?n(e):!!e)},o=s.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=s.data={},h=s.NATIVE="N",c=s.POLYFILL="P";t.exports=s},1752:function(t,e,r){var n=r(1688),i=r(1692),a=r(1780);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},r;try{(r=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),t=e instanceof Array}catch(t){}return function e(n,s){return i(n),a(s),t?r(n,s):n.__proto__=s,n}}():void 0)},1753:function(t,e,r){var n=r(1735),i=r(1703),a=r(1711),s,o=r(1691)("iterator");t.exports=function(t){if(null!=t)return i(t,o)||i(t,"@@iterator")||a[n(t)]}},1754:function(t,e,r){var n=r(1692),i=r(1789),a,s=r(1691)("species");t.exports=function(t,e){var r=n(t).constructor,a;return void 0===r||null==(a=n(r)[s])?e:i(a)}},1755:function(t,e,r){var n=r(1687),i=r(1736),a=r(1734),s=r(1689),o=r(1696),u=r(1690),h=r(1756),c=r(1757),l=r(1716),f=r(1758),g=r(1721),p=n.setImmediate,d=n.clearImmediate,v=n.process,y=n.Dispatch,m=n.Function,x=n.MessageChannel,b=n.String,w=0,S={},T="onreadystatechange",A,O,P,E;try{A=n.location}catch(t){}var C=function(t){if(o(S,t)){var e=S[t];delete S[t],e()}},M=function(t){return function(){C(t)}},N=function(t){C(t.data)},_=function(t){n.postMessage(b(t),A.protocol+"//"+A.host)};p&&d||(p=function t(e){var r=c(arguments,1);return S[++w]=function(){i(s(e)?e:m(e),void 0,r)},O(w),w},d=function t(e){delete S[e]},g?O=function(t){v.nextTick(M(t))}:y&&y.now?O=function(t){y.now(M(t))}:x&&!f?(E=(P=new x).port2,P.port1.onmessage=N,O=a(E.postMessage,E)):n.addEventListener&&s(n.postMessage)&&!n.importScripts&&A&&"file:"!==A.protocol&&!u(_)?(O=_,n.addEventListener("message",N,!1)):O=T in l("script")?function(t){h.appendChild(l("script"))[T]=function(){h.removeChild(this),C(t)}}:function(t){setTimeout(M(t),0)}),t.exports={set:p,clear:d}},1756:function(t,e,r){var n=r(1700);t.exports=n("document","documentElement")},1757:function(t,e,r){var n=r(1688);t.exports=n([].slice)},1758:function(t,e,r){var n=r(1713);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},1759:function(t,e,r){"use strict";var n=r(1704),i=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},1760:function(t,e,r){"use strict";var n=r(1692);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},1761:function(t,e,r){var n=r(1690),i,a=r(1687).RegExp;e.UNSUPPORTED_Y=n((function(){var t=a("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=a("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},1762:function(t,e,r){var n=r(1698),i=r(1702),a,s=r(1691)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==i(t))}},1763:function(t,e,r){"use strict";var n=r(1710),i=r(1809),a=r(1711),s=r(1718),o=r(1810),u="Array Iterator",h=s.set,c=s.getterFor(u);t.exports=o(Array,"Array",(function(t,e){h(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},1764:function(t,e,r){"use strict";var n=r(1690),i=r(1689),a=r(1723),s=r(1765),o=r(1701),u=r(1691),h=r(1705),c=u("iterator"),l=!1,f,g,p,d;[].keys&&("next"in(p=[].keys())?(g=s(s(p)))!==Object.prototype&&(f=g):l=!0),null==f||n((function(){var t={};return f[c].call(t)!==t}))?f={}:h&&(f=a(f)),i(f[c])||o(f,c,(function(){return this})),t.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:l}},1765:function(t,e,r){var n=r(1687),i=r(1696),a=r(1689),s=r(1715),o=r(1729),u=r(1812),h=o("IE_PROTO"),c=n.Object,l=c.prototype;t.exports=u?c.getPrototypeOf:function(t){var e=s(t);if(i(e,h))return e[h];var r=e.constructor;return a(r)&&e instanceof r?r.prototype:e instanceof c?l:null}},1766:function(t,e,r){"use strict";var n=r(1690);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},1767:function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},1768:function(t,e,r){"use strict";var n=r(1694),i=r(1705),a=r(1687),s=r(1700),o=r(1693),u=r(1778),h=r(1701),c=r(1779),l=r(1752),f=r(1733),g=r(1781),p=r(1704),d=r(1689),v=r(1698),y=r(1782),m=r(1717),x=r(1783),b=r(1788),w=r(1754),S=r(1755).set,T=r(1791),A=r(1794),O=r(1795),P=r(1759),E=r(1796),C=r(1718),M=r(1751),N=r(1691),_=r(1797),V=r(1721),R=r(1725),k=N("species"),I="Promise",L=C.get,D=C.set,B=C.getterFor(I),j=u&&u.prototype,z=u,F=j,U=a.TypeError,H=a.document,X=a.process,Y=P.f,W=Y,q=!!(H&&H.createEvent&&a.dispatchEvent),G=d(a.PromiseRejectionEvent),Q="unhandledrejection",$="rejectionhandled",Z=0,K=1,J=2,tt=1,et=2,rt=!1,nt,it,at,st,ot=M(I,(function(){var t=m(z),e=t!==String(z);if(!e&&66===R)return!0;if(i&&!F.finally)return!0;if(R>=51&&/native code/.test(t))return!1;var r=new z((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))},a;return(r.constructor={})[k]=n,!(rt=r.then((function(){}))instanceof n)||!e&&_&&!G})),ut=ot||!b((function(t){z.all(t).catch((function(){}))})),ht=function(t){var e;return!(!v(t)||!d(e=t.then))&&e},ct=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;T((function(){for(var n=t.value,i=1==t.state,a=0;r.length>a;){var s=r[a++],u=i?s.ok:s.fail,h=s.resolve,c=s.reject,l=s.domain,f,g,p;try{u?(i||(2===t.rejection&&pt(t),t.rejection=1),!0===u?f=n:(l&&l.enter(),f=u(n),l&&(l.exit(),p=!0)),f===s.promise?c(U("Promise-chain cycle")):(g=ht(f))?o(g,f,h,c):h(f)):c(n)}catch(t){l&&!p&&l.exit(),c(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ft(t)}))}},lt=function(t,e,r){var n,i;q?((n=H.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),a.dispatchEvent(n)):n={promise:e,reason:r},!G&&(i=a["on"+t])?i(n):t===Q&&O("Unhandled promise rejection",r)},ft=function(t){o(S,a,(function(){var e=t.facade,r=t.value,n,i;if(gt(t)&&(i=E((function(){V?X.emit("unhandledRejection",r,e):lt(Q,e,r)})),t.rejection=V||gt(t)?2:1,i.error))throw i.value}))},gt=function(t){return 1!==t.rejection&&!t.parent},pt=function(t){o(S,a,(function(){var e=t.facade;V?X.emit("rejectionHandled",e):lt($,e,t.value)}))},dt=function(t,e,r){return function(n){t(e,n,r)}},vt=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,ct(t,!0))},yt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw U("Promise can't be resolved itself");var n=ht(e);n?T((function(){var r={done:!1};try{o(n,e,dt(yt,r,t),dt(vt,r,t))}catch(e){vt(r,e,t)}})):(t.value=e,t.state=1,ct(t,!1))}catch(e){vt({done:!1},e,t)}}};if(ot&&(F=(z=function t(e){y(this,F),p(e),o(nt,this);var r=L(this);try{e(dt(yt,r),dt(vt,r))}catch(t){vt(r,t)}}).prototype,(nt=function t(e){D(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=c(F,{then:function t(e,r){var n=B(this),i=n.reactions,a=Y(w(this,z));return a.ok=!d(e)||e,a.fail=d(r)&&r,a.domain=V?X.domain:void 0,n.parent=!0,i[i.length]=a,0!=n.state&&ct(n,!1),a.promise},catch:function(t){return this.then(void 0,t)}}),it=function(){var t=new nt,e=L(t);this.promise=t,this.resolve=dt(yt,e),this.reject=dt(vt,e)},P.f=Y=function(t){return t===z||t===at?new it(t):W(t)},!i&&d(u)&&j!==Object.prototype)){st=j.then,rt||(h(j,"then",(function t(e,r){var n=this;return new z((function(t,e){o(st,n,t,e)})).then(e,r)}),{unsafe:!0}),h(j,"catch",F.catch,{unsafe:!0}));try{delete j.constructor}catch(t){}l&&l(j,F)}n({global:!0,wrap:!0,forced:ot},{Promise:z}),f(z,I,!1,!0),g(I),at=s(I),n({target:I,stat:!0,forced:ot},{reject:function t(e){var r=Y(this);return o(r.reject,void 0,e),r.promise}}),n({target:I,stat:!0,forced:i||ot},{resolve:function t(e){return A(i&&this===at?z:this,e)}}),n({target:I,stat:!0,forced:ut},{all:function t(e){var r=this,n=Y(r),i=n.resolve,a=n.reject,s=E((function(){var t=p(r.resolve),n=[],s=0,u=1;x(e,(function(e){var h=s++,c=!1;u++,o(t,r,e).then((function(t){c||(c=!0,n[h]=t,--u||i(n))}),a)})),--u||i(n)}));return s.error&&a(s.value),n.promise},race:function t(e){var r=this,n=Y(r),i=n.reject,a=E((function(){var t=p(r.resolve);x(e,(function(e){o(t,r,e).then(n.resolve,i)}))}));return a.error&&i(a.value),n.promise}})},1769:function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!n.call({1:2},1);e.f=a?function t(e){var r=i(this,e);return!!r&&r.enumerable}:n},1770:function(t,e,r){var n=r(1687),i=r(1693),a=r(1698),s=r(1744),o=r(1703),u=r(1771),h=r(1691),c=n.TypeError,l=h("toPrimitive");t.exports=function(t,e){if(!a(t)||s(t))return t;var r=o(t,l),n;if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!a(n)||s(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},1771:function(t,e,r){var n=r(1687),i=r(1693),a=r(1689),s=r(1698),o=n.TypeError;t.exports=function(t,e){var r,n;if("string"===e&&a(r=t.toString)&&!s(n=i(r,t)))return n;if(a(r=t.valueOf)&&!s(n=i(r,t)))return n;if("string"!==e&&a(r=t.toString)&&!s(n=i(r,t)))return n;throw o("Can't convert object to primitive value")}},1772:function(t,e,r){var n=r(1687),i=r(1689),a=r(1717),s=n.WeakMap;t.exports=i(s)&&/native code/.test(a(s))},1773:function(t,e,r){var n=r(1696),i=r(1774),a=r(1709),s=r(1707);t.exports=function(t,e){for(var r=i(e),o=s.f,u=a.f,h=0;h<r.length;h++){var c=r[h];n(t,c)||o(t,c,u(e,c))}}},1774:function(t,e,r){var n=r(1700),i=r(1688),a=r(1775),s=r(1777),o=r(1692),u=i([].concat);t.exports=n("Reflect","ownKeys")||function t(e){var r=a.f(o(e)),n=s.f;return n?u(r,n(e)):r}},1775:function(t,e,r){var n=r(1749),i,a=r(1732).concat("length","prototype");e.f=Object.getOwnPropertyNames||function t(e){return n(e,a)}},1776:function(t,e,r){var n=r(1720),i=Math.max,a=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):a(r,e)}},1777:function(t,e){e.f=Object.getOwnPropertySymbols},1778:function(t,e,r){var n=r(1687);t.exports=n.Promise},1779:function(t,e,r){var n=r(1701);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},1780:function(t,e,r){var n=r(1687),i=r(1689),a=n.String,s=n.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw s("Can't set "+a(t)+" as a prototype")}},1781:function(t,e,r){"use strict";var n=r(1700),i=r(1707),a=r(1691),s=r(1699),o=a("species");t.exports=function(t){var e=n(t),r=i.f;s&&e&&!e[o]&&r(e,o,{configurable:!0,get:function(){return this}})}},1782:function(t,e,r){var n=r(1687),i=r(1712),a=n.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw a("Incorrect invocation")}},1783:function(t,e,r){var n=r(1687),i=r(1734),a=r(1693),s=r(1692),o=r(1714),u=r(1784),h=r(1731),c=r(1712),l=r(1785),f=r(1753),g=r(1787),p=n.TypeError,d=function(t,e){this.stopped=t,this.result=e},v=d.prototype;t.exports=function(t,e,r){var n=r&&r.that,y=!(!r||!r.AS_ENTRIES),m=!(!r||!r.IS_ITERATOR),x=!(!r||!r.INTERRUPTED),b=i(e,n),w,S,T,A,O,P,E,C=function(t){return w&&g(w,"normal",t),new d(!0,t)},M=function(t){return y?(s(t),x?b(t[0],t[1],C):b(t[0],t[1])):x?b(t,C):b(t)};if(m)w=t;else{if(!(S=f(t)))throw p(o(t)+" is not iterable");if(u(S)){for(T=0,A=h(t);A>T;T++)if((O=M(t[T]))&&c(v,O))return O;return new d(!1)}w=l(t,S)}for(P=w.next;!(E=a(P,w)).done;){try{O=M(E.value)}catch(t){g(w,"throw",t)}if("object"==typeof O&&O&&c(v,O))return O}return new d(!1)}},1784:function(t,e,r){var n=r(1691),i=r(1711),a=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[a]===t)}},1785:function(t,e,r){var n=r(1687),i=r(1693),a=r(1704),s=r(1692),o=r(1714),u=r(1753),h=n.TypeError;t.exports=function(t,e){var r=arguments.length<2?u(t):e;if(a(r))return s(i(r,t));throw h(o(t)+" is not iterable")}},1786:function(t,e,r){var n,i,a={};a[r(1691)("toStringTag")]="z",t.exports="[object z]"===String(a)},1787:function(t,e,r){var n=r(1693),i=r(1692),a=r(1703);t.exports=function(t,e,r){var s,o;i(t);try{if(!(s=a(t,"return"))){if("throw"===e)throw r;return r}s=n(s,t)}catch(t){o=!0,s=t}if("throw"===e)throw r;if(o)throw s;return i(s),r}},1788:function(t,e,r){var n,i=r(1691)("iterator"),a=!1;try{var s=0,o={next:function(){return{done:!!s++}},return:function(){a=!0}};o[i]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!a)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}},1789:function(t,e,r){var n=r(1687),i=r(1790),a=r(1714),s=n.TypeError;t.exports=function(t){if(i(t))return t;throw s(a(t)+" is not a constructor")}},1790:function(t,e,r){var n=r(1688),i=r(1690),a=r(1689),s=r(1735),o=r(1700),u=r(1717),h=function(){},c=[],l=o("Reflect","construct"),f=/^\s*(?:class|function)\b/,g=n(f.exec),p=!f.exec(h),d=function(t){if(!a(t))return!1;try{return l(h,c,t),!0}catch(t){return!1}},v=function(t){if(!a(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return p||!!g(f,u(t))};t.exports=!l||i((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?v:d},1791:function(t,e,r){var n=r(1687),i=r(1734),a=r(1709).f,s=r(1755).set,o=r(1758),u=r(1792),h=r(1793),c=r(1721),l=n.MutationObserver||n.WebKitMutationObserver,f=n.document,g=n.process,p=n.Promise,d=a(n,"queueMicrotask"),v=d&&d.value,y,m,x,b,w,S,T,A;v||(y=function(){var t,e;for(c&&(t=g.domain)&&t.exit();m;){e=m.fn,m=m.next;try{e()}catch(t){throw m?b():x=void 0,t}}x=void 0,t&&t.enter()},o||c||h||!l||!f?!u&&p&&p.resolve?((T=p.resolve(void 0)).constructor=p,A=i(T.then,T),b=function(){A(y)}):c?b=function(){g.nextTick(y)}:(s=i(s,n),b=function(){s(y)}):(w=!0,S=f.createTextNode(""),new l(y).observe(S,{characterData:!0}),b=function(){S.data=w=!w})),t.exports=v||function(t){var e={fn:t,next:void 0};x&&(x.next=e),m||(m=e,b()),x=e}},1792:function(t,e,r){var n=r(1713),i=r(1687);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==i.Pebble},1793:function(t,e,r){var n=r(1713);t.exports=/web0s(?!.*chrome)/i.test(n)},1794:function(t,e,r){var n=r(1692),i=r(1698),a=r(1759);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=a.f(t),s;return(0,r.resolve)(e),r.promise}},1795:function(t,e,r){var n=r(1687);t.exports=function(t,e){var r=n.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}},1796:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},1797:function(t,e){t.exports="object"==typeof window},1798:function(t,e){function r(t,e,r,n,i,a,s){try{var o=t[a](s),u=o.value}catch(t){return void r(t)}o.done?e(u):Promise.resolve(u).then(n,i)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var s=t.apply(e,n);function o(t){r(s,i,a,o,u,"next",t)}function u(t){r(s,i,a,o,u,"throw",t)}o(void 0)}))}}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},1799:function(t,e,r){"use strict";var n=r(1693),i=r(1737),a=r(1692),s=r(1708),o=r(1697),u=r(1695),h=r(1703),c=r(1738),l=r(1739);i("match",(function(t,e,r){return[function e(r){var i=u(this),a=null==r?void 0:h(r,t);return a?n(a,r,i):new RegExp(r)[t](o(i))},function(t){var n=a(this),i=o(t),u=r(e,n,i);if(u.done)return u.value;if(!n.global)return l(n,i);var h=n.unicode;n.lastIndex=0;for(var f=[],g=0,p;null!==(p=l(n,i));){var d=o(p[0]);f[g]=d,""===d&&(n.lastIndex=c(i,s(n.lastIndex),h)),g++}return 0===g?null:f}]}))},1800:function(t,e,r){"use strict";var n=r(1694),i=r(1722);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},1801:function(t,e,r){var n=r(1699),i=r(1707),a=r(1692),s=r(1710),o=r(1802);t.exports=n?Object.defineProperties:function t(e,r){a(e);for(var n=s(r),u=o(r),h=u.length,c=0,l;h>c;)i.f(e,l=u[c++],n[l]);return e}},1802:function(t,e,r){var n=r(1749),i=r(1732);t.exports=Object.keys||function t(e){return n(e,i)}},1803:function(t,e,r){var n=r(1690),i,a=r(1687).RegExp;t.exports=n((function(){var t=a(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},1804:function(t,e,r){var n=r(1690),i,a=r(1687).RegExp;t.exports=n((function(){var t=a("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},1805:function(t,e,r){var n=r(1688),i=r(1720),a=r(1697),s=r(1695),o=n("".charAt),u=n("".charCodeAt),h=n("".slice),c=function(t){return function(e,r){var n=a(s(e)),c=i(r),l=n.length,f,g;return c<0||c>=l?t?"":void 0:(f=u(n,c))<55296||f>56319||c+1===l||(g=u(n,c+1))<56320||g>57343?t?o(n,c):f:t?h(n,c,c+2):g-56320+(f-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},1806:function(t,e,r){"use strict";var n=r(1736),i=r(1693),a=r(1688),s=r(1737),o=r(1690),u=r(1692),h=r(1689),c=r(1720),l=r(1708),f=r(1697),g=r(1695),p=r(1738),d=r(1703),v=r(1807),y=r(1739),m,x=r(1691)("replace"),b=Math.max,w=Math.min,S=a([].concat),T=a([].push),A=a("".indexOf),O=a("".slice),P=function(t){return void 0===t?t:String(t)},E="$0"==="a".replace(/./,"$0"),C=!!/./[x]&&""===/./[x]("a","$0"),M;s("replace",(function(t,e,r){var a=C?"$":"$0";return[function t(r,n){var a=g(this),s=null==r?void 0:d(r,x);return s?i(s,r,a,n):i(e,f(a),r,n)},function(t,i){var s=u(this),o=f(t);if("string"==typeof i&&-1===A(i,a)&&-1===A(i,"$<")){var g=r(e,s,o,i);if(g.done)return g.value}var d=h(i);d||(i=f(i));var m=s.global;if(m){var x=s.unicode;s.lastIndex=0}for(var E=[];;){var C=y(s,o),M;if(null===C)break;if(T(E,C),!m)break;""===f(C[0])&&(s.lastIndex=p(o,l(s.lastIndex),x))}for(var N="",_=0,V=0;V<E.length;V++){for(var R=f((C=E[V])[0]),k=b(w(c(C.index),o.length),0),I=[],L=1;L<C.length;L++)T(I,P(C[L]));var D=C.groups;if(d){var B=S([R],I,k,o);void 0!==D&&T(B,D);var j=f(n(i,void 0,B))}else j=v(R,o,k,I,D,i);k>=_&&(N+=O(o,_,k)+j,_=k+R.length)}return N+O(o,_)}]}),!!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||C)},1807:function(t,e,r){var n=r(1688),i=r(1715),a=Math.floor,s=n("".charAt),o=n("".replace),u=n("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,l,f){var g=r+t.length,p=n.length,d=c;return void 0!==l&&(l=i(l),d=h),o(f,d,(function(i,o){var h;switch(s(o,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,g);case"<":h=l[u(o,1,-1)];break;default:var c=+o;if(0===c)return i;if(c>p){var f=a(c/10);return 0===f?i:f<=p?void 0===n[f-1]?s(o,1):n[f-1]+s(o,1):i}h=n[c-1]}return void 0===h?"":h}))}},1808:function(t,e,r){"use strict";var n=r(1694),i=r(1688),a=r(1709).f,s=r(1708),o=r(1697),u=r(1740),h=r(1695),c=r(1741),l=r(1705),f=i("".startsWith),g=i("".slice),p=Math.min,d=c("startsWith"),v,y;n({target:"String",proto:!0,forced:!!(l||d||(y=a(String.prototype,"startsWith"),!y||y.writable))&&!d},{startsWith:function t(e){var r=o(h(this));u(e);var n=s(p(arguments.length>1?arguments[1]:void 0,r.length)),i=o(e);return f?f(r,i,n):g(r,n,n+i.length)===i}})},1809:function(t,e,r){var n=r(1691),i=r(1723),a=r(1707),s=n("unscopables"),o=Array.prototype;null==o[s]&&a.f(o,s,{configurable:!0,value:i(null)}),t.exports=function(t){o[s][t]=!0}},1810:function(t,e,r){"use strict";var n=r(1694),i=r(1693),a=r(1705),s=r(1719),o=r(1689),u=r(1811),h=r(1765),c=r(1752),l=r(1733),f=r(1706),g=r(1701),p=r(1691),d=r(1711),v=r(1764),y=s.PROPER,m=s.CONFIGURABLE,x=v.IteratorPrototype,b=v.BUGGY_SAFARI_ITERATORS,w=p("iterator"),S="keys",T="values",A="entries",O=function(){return this};t.exports=function(t,e,r,s,p,v,P){u(r,e,s);var E=function(t){if(t===p&&V)return V;if(!b&&t in N)return N[t];switch(t){case S:return function e(){return new r(this,t)};case T:return function e(){return new r(this,t)};case A:return function e(){return new r(this,t)}}return function(){return new r(this)}},C=e+" Iterator",M=!1,N=t.prototype,_=N[w]||N["@@iterator"]||p&&N[p],V=!b&&_||E(p),R="Array"==e&&N.entries||_,k,I,L;if(R&&(k=h(R.call(new t)))!==Object.prototype&&k.next&&(a||h(k)===x||(c?c(k,x):o(k[w])||g(k,w,O)),l(k,C,!0,!0),a&&(d[C]=O)),y&&p==T&&_&&_.name!==T&&(!a&&m?f(N,"name",T):(M=!0,V=function t(){return i(_,this)})),p)if(I={values:E(T),keys:v?V:E(S),entries:E(A)},P)for(L in I)(b||M||!(L in N))&&g(N,L,I[L]);else n({target:e,proto:!0,forced:b||M},I);return a&&!P||N[w]===V||g(N,w,V,{name:p}),d[e]=V,I}},1811:function(t,e,r){"use strict";var n=r(1764).IteratorPrototype,i=r(1723),a=r(1724),s=r(1733),o=r(1711),u=function(){return this};t.exports=function(t,e,r){var h=e+" Iterator";return t.prototype=i(n,{next:a(1,r)}),s(t,h,!1,!0),o[h]=u,t}},1812:function(t,e,r){var n=r(1690);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},1813:function(t,e,r){var n=r(1687),i=r(1814),a=r(1815),s=r(1763),o=r(1706),u=r(1691),h=u("iterator"),c=u("toStringTag"),l=s.values,f=function(t,e){if(t){if(t[h]!==l)try{o(t,h,l)}catch(e){t[h]=l}if(t[c]||o(t,c,e),i[e])for(var r in s)if(t[r]!==s[r])try{o(t,r,s[r])}catch(e){t[r]=s[r]}}};for(var g in i)f(n[g]&&n[g].prototype,g);f(a,"DOMTokenList")},1814:function(t,e){t.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}},1815:function(t,e,r){var n,i=r(1716)("span").classList,a=i&&i.constructor&&i.constructor.prototype;t.exports=a===Object.prototype?void 0:a},1816:function(t,e){function r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},1817:function(t,e,r){"use strict";var n=r(1694),i=r(1818).left,a=r(1766),s=r(1725),o=r(1721),u,h;n({target:"Array",proto:!0,forced:!a("reduce")||!o&&s>79&&s<83},{reduce:function t(e){var r=arguments.length;return i(this,e,r,r>1?arguments[1]:void 0)}})},1818:function(t,e,r){var n=r(1687),i=r(1704),a=r(1715),s=r(1742),o=r(1731),u=n.TypeError,h=function(t){return function(e,r,n,h){i(r);var c=a(e),l=s(c),f=o(c),g=t?f-1:0,p=t?-1:1;if(n<2)for(;;){if(g in l){h=l[g],g+=p;break}if(g+=p,t?g<0:f<=g)throw u("Reduce of empty array with no initial value")}for(;t?g>=0:f>g;g+=p)g in l&&(h=r(h,l[g],g,c));return h}};t.exports={left:h(!1),right:h(!0)}},1819:function(t,e,r){"use strict";var n=r(1694),i=r(1688),a=r(1709).f,s=r(1708),o=r(1697),u=r(1740),h=r(1695),c=r(1741),l=r(1705),f=i("".endsWith),g=i("".slice),p=Math.min,d=c("endsWith"),v,y;n({target:"String",proto:!0,forced:!!(l||d||(y=a(String.prototype,"endsWith"),!y||y.writable))&&!d},{endsWith:function t(e){var r=o(h(this));u(e);var n=arguments.length>1?arguments[1]:void 0,i=r.length,a=void 0===n?i:p(s(n),i),c=o(e);return f?f(r,c,a):g(r,a-c.length,a)===c}})},1820:function(t,e,r){"use strict";var n=r(1736),i=r(1693),a=r(1688),s=r(1737),o=r(1762),u=r(1692),h=r(1695),c=r(1754),l=r(1738),f=r(1708),g=r(1697),p=r(1703),d=r(1757),v=r(1739),y=r(1722),m=r(1761),x=r(1690),b=m.UNSUPPORTED_Y,w=4294967295,S=Math.min,T=[].push,A=a(/./.exec),O=a(T),P=a("".slice),E;s("split",(function(t,e,r){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var a=g(h(this)),s=void 0===r?4294967295:r>>>0;if(0===s)return[];if(void 0===t)return[a];if(!o(t))return i(e,a,t,s);for(var u=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,f=new RegExp(t.source,c+"g"),p,v,m;(p=i(y,f,a))&&!((v=f.lastIndex)>l&&(O(u,P(a,l,p.index)),p.length>1&&p.index<a.length&&n(T,u,d(p,1)),m=p[0].length,l=v,u.length>=s));)f.lastIndex===p.index&&f.lastIndex++;return l===a.length?!m&&A(f,"")||O(u,""):O(u,P(a,l)),u.length>s?d(u,0,s):u}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:i(e,this,t,r)}:e,[function e(r,n){var s=h(this),o=null==r?void 0:p(r,t);return o?i(o,r,s,n):i(a,g(s),r,n)},function(t,n){var i=u(this),s=g(t),o=r(a,i,s,n,a!==e);if(o.done)return o.value;var h=c(i,RegExp),p=i.unicode,d=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(b?"g":"y"),y=new h(b?"^(?:"+i.source+")":i,d),m=void 0===n?4294967295:n>>>0;if(0===m)return[];if(0===s.length)return null===v(y,s)?[s]:[];for(var x=0,w=0,T=[];w<s.length;){y.lastIndex=b?0:w;var A=v(y,b?P(s,w):s),E;if(null===A||(E=S(f(y.lastIndex+(b?w:0)),s.length))===x)w=l(s,w,p);else{if(O(T,P(s,x,w)),T.length===m)return T;for(var C=1;C<=A.length-1;C++)if(O(T,A[C]),T.length===m)return T;w=x=E}}return O(T,P(s,x)),T}]}),!!x((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),b)},1821:function(t,e,r){(function(e){for(var n=r(1822),i="undefined"==typeof window?e:window,a=["moz","webkit"],s="AnimationFrame",o=i["request"+s],u=i["cancel"+s]||i["cancelRequest"+s],h=0;!o&&h<a.length;h++)o=i[a[h]+"Request"+s],u=i[a[h]+"Cancel"+s]||i[a[h]+"CancelRequest"+s];if(!o||!u){var c=0,l=0,f=[],g=1e3/60;o=function(t){if(0===f.length){var e=n(),r=Math.max(0,1e3/60-(e-c));c=r+e,setTimeout((function(){var t=f.slice(0);f.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(c)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return f.push({handle:++l,callback:t,cancelled:!1}),l},u=function(t){for(var e=0;e<f.length;e++)f[e].handle===t&&(f[e].cancelled=!0)}}t.exports=function(t){return o.call(i,t)},t.exports.cancel=function(){u.apply(i,arguments)},t.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=o,t.cancelAnimationFrame=u}}).call(this,r(85))},1822:function(t,e,r){(function(e){(function(){var r,n,i,a,s,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=e&&e.hrtime?(t.exports=function(){return(r()-s)/1e6},n=e.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),o=1e9*e.uptime(),s=a-o):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,r(234))},1823:function(t,e,r){"use strict";var n=r(1694),i=r(1824).trim,a;n({target:"String",proto:!0,forced:r(1825)("trim")},{trim:function t(){return i(this)}})},1824:function(t,e,r){var n=r(1688),i=r(1695),a=r(1697),s=r(1767),o=n("".replace),u="["+s+"]",h=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),l=function(t){return function(e){var r=a(i(e));return 1&t&&(r=o(r,h,"")),2&t&&(r=o(r,c,"")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},1825:function(t,e,r){var n=r(1719).PROPER,i=r(1690),a=r(1767),s="\u200b\x85\u180e";t.exports=function(t){return i((function(){return!!a[t]()||s[t]()!==s||n&&a[t].name!==t}))}},1826:function(t,e){t.exports=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,s=i.exec(t);if(s){var o=a(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,n=0;n<r.length;n++)for(var i=r[n].example,a=0;a<i.length;a++)t[t.length]=i[a];for(var s in e)t[t.length]=s;var o=document.createElement("ul");o.setAttribute("id","rgbcolor-examples");for(var n=0;n<t.length;n++)try{var u=document.createElement("li"),h=new RGBColor(t[n]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+h.toHex()+"; color:"+h.toHex(),c.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+t[n]+" -> "+h.toRGB()+" -> "+h.toHex());u.appendChild(c),u.appendChild(l),o.appendChild(u)}catch(t){}return o}}},1827:function(t,e,r){"use strict";var n=r(1694),i=r(1688),a=r(1740),s=r(1695),o=r(1697),u=r(1741),h=i("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function t(e){return!!~h(o(s(this)),o(a(e)),arguments.length>1?arguments[1]:void 0)}})},1828:function(t,e,r){"use strict";var n=r(1694),i=r(1688),a=r(1750).indexOf,s=r(1766),o=i([].indexOf),u=!!o&&1/o([1],1,-0)<0,h=s("indexOf");n({target:"Array",proto:!0,forced:u||!h},{indexOf:function t(e){var r=arguments.length>1?arguments[1]:void 0;return u?o(this,e,r)||0:a(this,e,r)}})},1829:function(t,e,r){"use strict";var n=r(1694),i=r(1688),a=r(1830),s=i([].reverse),o=[1,2];n({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function t(){return a(this)&&(this.length=this.length),s(this)}})},1830:function(t,e,r){var n=r(1702);t.exports=Array.isArray||function t(e){return"Array"==n(e)}},1831:function(t,e,r){"use strict";r.d(e,"a",(function(){return S}));
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{1691:function(t,e,r){"use strict";r.r(e),function(t){r.d(e,"AElement",(function(){return we})),r.d(e,"AnimateColorElement",(function(){return de})),r.d(e,"AnimateElement",(function(){return pe})),r.d(e,"AnimateTransformElement",(function(){return ve})),r.d(e,"BoundingBox",(function(){return Yt})),r.d(e,"CB1",(function(){return lt})),r.d(e,"CB2",(function(){return ft})),r.d(e,"CB3",(function(){return gt})),r.d(e,"CB4",(function(){return pt})),r.d(e,"Canvg",(function(){return er})),r.d(e,"CircleElement",(function(){return ee})),r.d(e,"ClipPathElement",(function(){return Be})),r.d(e,"DefsElement",(function(){return ue})),r.d(e,"DescElement",(function(){return Ye})),r.d(e,"Document",(function(){return Ke})),r.d(e,"Element",(function(){return Bt})),r.d(e,"EllipseElement",(function(){return re})),r.d(e,"FeColorMatrixElement",(function(){return Ie})),r.d(e,"FeCompositeElement",(function(){return Ue})),r.d(e,"FeDropShadowElement",(function(){return ze})),r.d(e,"FeGaussianBlurElement",(function(){return He})),r.d(e,"FeMorphologyElement",(function(){return Fe})),r.d(e,"FilterElement",(function(){return je})),r.d(e,"Font",(function(){return Xt})),r.d(e,"FontElement",(function(){return ye})),r.d(e,"FontFaceElement",(function(){return me})),r.d(e,"GElement",(function(){return he})),r.d(e,"GlyphElement",(function(){return Qt})),r.d(e,"GradientElement",(function(){return ce})),r.d(e,"ImageElement",(function(){return Pe})),r.d(e,"LineElement",(function(){return ne})),r.d(e,"LinearGradientElement",(function(){return le})),r.d(e,"MarkerElement",(function(){return oe})),r.d(e,"MaskElement",(function(){return Le})),r.d(e,"Matrix",(function(){return _t})),r.d(e,"MissingGlyphElement",(function(){return xe})),r.d(e,"Mouse",(function(){return wt})),r.d(e,"PSEUDO_ZERO",(function(){return ot})),r.d(e,"Parser",(function(){return Et})),r.d(e,"PathElement",(function(){return Gt})),r.d(e,"PathParser",(function(){return Wt})),r.d(e,"PatternElement",(function(){return se})),r.d(e,"Point",(function(){return bt})),r.d(e,"PolygonElement",(function(){return ae})),r.d(e,"PolylineElement",(function(){return ie})),r.d(e,"Property",(function(){return mt})),r.d(e,"QB1",(function(){return dt})),r.d(e,"QB2",(function(){return vt})),r.d(e,"QB3",(function(){return yt})),r.d(e,"RadialGradientElement",(function(){return fe})),r.d(e,"RectElement",(function(){return te})),r.d(e,"RenderedElement",(function(){return qt})),r.d(e,"Rotate",(function(){return Mt})),r.d(e,"SVGElement",(function(){return Jt})),r.d(e,"SVGFontLoader",(function(){return Ce})),r.d(e,"Scale",(function(){return Nt})),r.d(e,"Screen",(function(){return At})),r.d(e,"Skew",(function(){return Vt})),r.d(e,"SkewX",(function(){return Rt})),r.d(e,"SkewY",(function(){return kt})),r.d(e,"StopElement",(function(){return ge})),r.d(e,"StyleElement",(function(){return Me})),r.d(e,"SymbolElement",(function(){return Ee})),r.d(e,"TRefElement",(function(){return be})),r.d(e,"TSpanElement",(function(){return Zt})),r.d(e,"TextElement",(function(){return $t})),r.d(e,"TextPathElement",(function(){return Ae})),r.d(e,"TitleElement",(function(){return Xe})),r.d(e,"Transform",(function(){return Dt})),r.d(e,"Translate",(function(){return Ct})),r.d(e,"UnknownElement",(function(){return jt})),r.d(e,"UseElement",(function(){return Ne})),r.d(e,"ViewPort",(function(){return xt})),r.d(e,"compressSpaces",(function(){return X})),r.d(e,"getSelectorSpecificity",(function(){return st})),r.d(e,"normalizeAttributeName",(function(){return Q})),r.d(e,"normalizeColor",(function(){return Z})),r.d(e,"parseExternalUrl",(function(){return $})),r.d(e,"presets",(function(){return H})),r.d(e,"toNumbers",(function(){return q})),r.d(e,"trimLeft",(function(){return Y})),r.d(e,"trimRight",(function(){return W})),r.d(e,"vectorMagnitude",(function(){return ut})),r.d(e,"vectorsAngle",(function(){return ct})),r.d(e,"vectorsRatio",(function(){return ht}));var n=r(1781),i=r.n(n),a=r(1811),s=r.n(a),o=r(1812),u=r.n(o),h=r(1819),c=r.n(h),l=r(1821),f=r.n(l),g=r(1776),p=r.n(g),d=r(1826),v=r.n(d),y=r(1829),m=r.n(y),x=r(1830),b=r.n(x),w=r(1832),S=r.n(w),T=r(1833),A=r.n(T),O=r(1836),P=r.n(O),E=r(1838),C=r.n(E),M=r(1841),N=r.n(M),_=r(1842),V=r.n(_),R=r(1843),k=r.n(R),I=r(1844),L=r.n(I),D=r(1846),B=r(1847),j=r.n(B),z=r(1848);function F(){var{DOMParser:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas:(t,e)=>new OffscreenCanvas(t,e),createImage:t=>s()((function*(){var e=yield fetch(t),r=yield e.blob(),n;return yield createImageBitmap(r)}))()};return"undefined"==typeof DOMParser&&void 0!==t||Reflect.deleteProperty(e,"DOMParser"),e}function U(t){var{DOMParser:e,canvas:r,fetch:n}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:n,createCanvas:r.createCanvas,createImage:r.loadImage}}var H=Object.freeze({__proto__:null,offscreen:F,node:U});function X(t){return t.replace(/(?!\u3000)\s+/gm," ")}function Y(t){return t.replace(/^[\n \t]+/,"")}function W(t){return t.replace(/[\n \t]+$/,"")}function q(t){var e;return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var G=/^[A-Z-]+$/;function Q(t){return G.test(t)?t.toLowerCase():t}function $(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function Z(t){if(!t.startsWith("rgb"))return t;var e=3,r;return t.replace(/\d+(\.\d+)?/g,(t,r)=>e--&&r?String(Math.round(parseFloat(t))):t)}var K=/(\[[^\]]+\])/g,J=/(#[^\s+>~.[:]+)/g,tt=/(\.[^\s+>~.[:]+)/g,et=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,rt=/(:[\w-]+\([^)]*\))/gi,nt=/(:[^\s+>~.[:]+)/g,it=/([^\s+>~.[:]+)/g;function at(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function st(t){var e=[0,0,0],r=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0;return[r,n]=at(r,K),e[1]+=n,[r,n]=at(r,J),e[0]+=n,[r,n]=at(r,tt),e[1]+=n,[r,n]=at(r,et),e[2]+=n,[r,n]=at(r,rt),e[1]+=n,[r,n]=at(r,nt),e[1]+=n,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,n]=at(r,it),e[2]+=n,e.join("")}var ot=1e-8;function ut(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function ht(t,e){return(t[0]*e[0]+t[1]*e[1])/(ut(t)*ut(e))}function ct(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ht(t,e))}function lt(t){return t*t*t}function ft(t){return 3*t*t*(1-t)}function gt(t){return 3*t*(1-t)*(1-t)}function pt(t){return(1-t)*(1-t)*(1-t)}function dt(t){return t*t}function vt(t){return 2*t*(1-t)}function yt(t){return(1-t)*(1-t)}class mt{constructor(t,e,r){this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}static empty(t){return new mt(t,"EMPTY","")}split(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:e,name:r}=this;return X(this.getString()).trim().split(t).map(t=>new mt(e,r,t))}hasValue(t){var{value:e}=this;return null!==e&&""!==e&&(t||0!==e)&&void 0!==e}isString(t){var{value:e}=this,r="string"==typeof e;return r&&t?t.test(e):r}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return void 0===t||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return void 0===t?0:parseFloat(t);var{value:e}=this,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}getString(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}getColor(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=Z(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[r,n]="boolean"==typeof t?[void 0,t]:[t],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.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(/%$/)&&n:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(r);default:var a=this.getNumber();return e&&a<1?a*i.computeSize(r):a}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}getFillStyleDefinition(t,e){var r=this.getDefinition();if(!r)return null;if("function"==typeof r.createGradient)return r.createGradient(this.document.ctx,t,e);if("function"==typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var n=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),n.hasValue()&&r.getAttribute("patternTransform",!0).setValue(n.value)}return r.createPattern(this.document.ctx,t,e)}return null}getTextBaseline(){return this.hasValue()?mt.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),r=e.length,n=0,i=0;i<r&&(","===e[i]&&n++,3!==n);i++);if(t.hasValue()&&this.isString()&&3!==n){var a=new N.a(e);a.ok&&(a.alpha=t.getNumber(),e=a.toRGBA())}return new mt(this.document,this.name,e)}}mt.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"};class xt{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(t,e){this.viewPorts.push({width:t,height:e})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:t}=this;return t[t.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class bt{constructor(t,e){this.x=t,this.y=e}static parse(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[r=e,n=e]=q(t);return new bt(r,n)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=e,n=r]=q(t);return new bt(r,n)}static parsePath(t){for(var e=q(t),r=e.length,n=[],i=0;i<r;i+=2)n.push(new bt(e[i],e[i+1]));return n}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:e,y:r}=this,n=e*t[0]+r*t[2]+t[4],i=e*t[1]+r*t[3]+t[5];this.x=n,this.y=i}}class wt{constructor(t){this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:t,onClick:e,onMouseMove:r}=this,n=t.ctx.canvas;n.onclick=e,n.onmousemove=r,this.working=!0}}stop(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:r}=this,{style:n}=t.ctx.canvas;n&&(n.cursor=""),e.forEach((t,e)=>{for(var{run:n}=t,i=r[e];i;)n(i),i=i.parent}),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:r,eventElements:n}=this;r.forEach((r,i)=>{var{x:a,y:s}=r;!n[i]&&e.isPointInPath&&e.isPointInPath(a,s)&&(n[i]=t)})}}checkBoundingBox(t,e){if(this.working&&e){var{events:r,eventElements:n}=this;r.forEach((r,i)=>{var{x:a,y:s}=r;!n[i]&&e.isPointInBox(a,s)&&(n[i]=t)})}}mapXY(t,e){for(var{window:r,ctx:n}=this.screen,i=new bt(t,e),a=n.canvas;a;)i.x-=a.offsetLeft,i.y-=a.offsetTop,a=a.offsetParent;return r.scrollX&&(i.x+=r.scrollX),r.scrollY&&(i.y+=r.scrollY),i}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(t){t.onClick&&t.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(t){t.onMouseMove&&t.onMouseMove()}})}}var St="undefined"!=typeof window?window:null,Tt="undefined"!=typeof fetch?fetch.bind(void 0):null;class At{constructor(t){var{fetch:e=Tt,window:r=St}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new xt,this.mouse=new wt(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every(t=>t());return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:e,ctx:r,aspectRatio:n,width:i,desiredWidth:a,height:s,desiredHeight:o,minX:u=0,minY:h=0,refX:c,refY:l,clip:f=!1,clipX:g=0,clipY:p=0}=t,d=X(n).replace(/^defer\s/,""),[v,y]=d.split(" "),m=v||"xMidYMid",x=y||"meet",b=i/a,w=s/o,S=Math.min(b,w),T=Math.max(b,w),A=a,O=o;"meet"===x&&(A*=S,O*=S),"slice"===x&&(A*=T,O*=T);var P=new mt(e,"refX",c),E=new mt(e,"refY",l),C=P.hasValue()&&E.hasValue();if(C&&r.translate(-S*P.getPixels("x"),-S*E.getPixels("y")),f){var M=S*g,N=S*p;r.beginPath(),r.moveTo(M,N),r.lineTo(i,N),r.lineTo(i,s),r.lineTo(M,s),r.closePath(),r.clip()}if(!C){var _="meet"===x&&S===w,V="slice"===x&&T===w,R="meet"===x&&S===b,k="slice"===x&&T===b;m.startsWith("xMid")&&(_||V)&&r.translate(i/2-A/2,0),m.endsWith("YMid")&&(R||k)&&r.translate(0,s/2-O/2),m.startsWith("xMax")&&(_||V)&&r.translate(i-A,0),m.endsWith("YMax")&&(R||k)&&r.translate(0,s-O)}switch(!0){case"none"===m:r.scale(b,w);break;case"meet"===x:r.scale(S,S);break;case"slice"===x:r.scale(T,T)}r.translate(-u,-h)}start(t){var{enableRedraw:e=!1,ignoreMouse:r=!1,ignoreAnimation:n=!1,ignoreDimensions:i=!1,ignoreClear:a=!1,forceRedraw:s,scaleWidth:o,scaleHeight:u,offsetX:h,offsetY:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:l,mouse:f}=this,g=1e3/l;if(this.frameDuration=g,this.readyPromise=new Promise(t=>{this.resolveReady=t}),this.isReady()&&this.render(t,i,a,o,u,h,c),e){var p=Date.now(),d=p,v=0,y=()=>{p=Date.now(),(v=p-d)>=g&&(d=p-v%g,this.shouldUpdate(n,s)&&(this.render(t,i,a,o,u,h,c),f.runEvents())),this.intervalId=P()(y)};r||f.start(),this.intervalId=P()(y)}}stop(){this.intervalId&&(P.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var{frameDuration:r}=this,n;if(this.animations.reduce((t,e)=>e.update(r)||t,!1))return!0}return!("function"!=typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(t,e,r,n,i,a,s){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:u,viewPort:h,ctx:c,isFirstRender:l}=this,f=c.canvas;h.clear(),f.width&&f.height?h.setCurrent(f.width,f.height):h.setCurrent(o,u);var g=t.getStyle("width"),p=t.getStyle("height");!e&&(l||"number"!=typeof n&&"number"!=typeof i)&&(g.hasValue()&&(f.width=g.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),p.hasValue()&&(f.height=p.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var d=f.clientWidth||f.width,v=f.clientHeight||f.height;if(e&&g.hasValue()&&p.hasValue()&&(d=g.getPixels("x"),v=p.getPixels("y")),h.setCurrent(d,v),"number"==typeof a&&t.getAttribute("x",!0).setValue(a),"number"==typeof s&&t.getAttribute("y",!0).setValue(s),"number"==typeof n||"number"==typeof i){var y=q(t.getAttribute("viewBox").getString()),m=0,x=0;if("number"==typeof n){var b=t.getStyle("width");b.hasValue()?m=b.getPixels("x")/n:isNaN(y[2])||(m=y[2]/n)}if("number"==typeof i){var w=t.getStyle("height");w.hasValue()?x=w.getPixels("y")/i:isNaN(y[3])||(x=y[3]/i)}m||(m=x),x||(x=m),t.getAttribute("width",!0).setValue(n),t.getAttribute("height",!0).setValue(i);var S=t.getStyle("transform",!0,!0);S.setValue("".concat(S.getString()," scale(").concat(1/m,", ").concat(1/x,")"))}r||c.clearRect(0,0,d,v),t.render(c),l&&(this.isFirstRender=!1)}}At.defaultWindow=St,At.defaultFetch=Tt;var{defaultFetch:Ot}=At,Pt="undefined"!=typeof DOMParser?DOMParser:null;class Et{constructor(){var{fetch:t=Ot,DOMParser:e=Pt}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return s()((function*(){return t.startsWith("<")?e.parseFromString(t):e.load(t)}))()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch(r){return this.checkDocument(e.parseFromString(t,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(t){var e=this;return s()((function*(){var r=yield e.fetch(t),n=yield r.text();return e.parseFromString(n)}))()}}class Ct{constructor(t,e){this.type="translate",this.point=null,this.point=bt.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}}class Mt{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var n=q(e);this.angle=new mt(t,"angle",n[0]),this.originX=r[0],this.originY=r[1],this.cx=n[1]||0,this.cy=n[2]||0}apply(t){var{cx:e,cy:r,originX:n,originY:i,angle:a}=this,s=e+n.getPixels("x"),o=r+i.getPixels("y");t.translate(s,o),t.rotate(a.getRadians()),t.translate(-s,-o)}unapply(t){var{cx:e,cy:r,originX:n,originY:i,angle:a}=this,s=e+n.getPixels("x"),o=r+i.getPixels("y");t.translate(s,o),t.rotate(-1*a.getRadians()),t.translate(-s,-o)}applyToPoint(t){var{cx:e,cy:r,angle:n}=this,i=n.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class Nt{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=bt.parseScale(e);0!==n.x&&0!==n.y||(n.x=ot,n.y=ot),this.scale=n,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:n,originY:i}=this,a=n.getPixels("x"),s=i.getPixels("y");t.translate(a,s),t.scale(e,r||e),t.translate(-a,-s)}unapply(t){var{scale:{x:e,y:r},originX:n,originY:i}=this,a=n.getPixels("x"),s=i.getPixels("y");t.translate(a,s),t.scale(1/e,1/r||e),t.translate(-a,-s)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}}class _t{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=q(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:n}=this,i=e.getPixels("x"),a=r.getPixels("y");t.translate(i,a),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.translate(-i,-a)}unapply(t){var{originX:e,originY:r,matrix:n}=this,i=n[0],a=n[2],s=n[4],o=n[1],u=n[3],h=n[5],c=0,l=0,f=1,g=1/(i*(1*u-0*h)-a*(1*o-0*h)+s*(0*o-0*u)),p=e.getPixels("x"),d=r.getPixels("y");t.translate(p,d),t.transform(g*(1*u-0*h),g*(0*h-1*o),g*(0*s-1*a),g*(1*i-0*s),g*(a*h-s*u),g*(s*o-i*h)),t.translate(-p,-d)}applyToPoint(t){t.applyTransform(this.matrix)}}class Vt extends _t{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new mt(t,"angle",e)}}class Rt extends Vt{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class kt extends Vt{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function It(t){return X(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Lt(t){var[e,r]=t.split("(");return[e.trim(),r.trim().replace(")","")]}class Dt{constructor(t,e,r){var n;this.document=t,this.transforms=[],It(e).forEach(t=>{if("none"!==t){var[e,n]=Lt(t),i=Dt.transformTypes[e];void 0!==i&&this.transforms.push(new i(this.document,n,r))}})}static fromElement(t,e){var r=e.getStyle("transform",!1,!0),[n,i=n]=e.getStyle("transform-origin",!1,!0).split(),a=[n,i];return r.hasValue()?new Dt(t,r.getString(),a):null}apply(t){for(var{transforms:e}=this,r=e.length,n=0;n<r;n++)e[n].apply(t)}unapply(t){for(var{transforms:e}=this,r,n=e.length-1;n>=0;n--)e[n].unapply(t)}applyToPoint(t){for(var{transforms:e}=this,r=e.length,n=0;n<r;n++)e[n].applyToPoint(t)}}Dt.transformTypes={translate:Ct,rotate:Mt,scale:Nt,matrix:_t,skewX:Rt,skewY:kt};class Bt{constructor(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=t,this.node=e,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],e&&1===e.nodeType){var n;if(Array.from(e.attributes).forEach(e=>{var r=Q(e.nodeName);this.attributes[r]=new mt(t,r,e.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue())this.getAttribute("style").getString().split(";").map(t=>t.trim()).forEach(e=>{if(e){var[r,n]=e.split(":").map(t=>t.trim());this.styles[r]=new mt(t,r,n)}});var{definitions:i}=t,a=this.getAttribute("id");a.hasValue()&&(i[a.getString()]||(i[a.getString()]=this)),Array.from(e.childNodes).forEach(e=>{if(1===e.nodeType)this.addChild(e);else if(r&&(3===e.nodeType||4===e.nodeType)){var n=t.createTextNode(e);n.getText().length>0&&this.addChild(n)}})}}getAttribute(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[t];if(!r&&e){var n=new mt(this.document,t,"");return this.attributes[t]=n,n}return r||mt.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return mt.empty(this.document)}getStyle(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.styles[t];if(n)return n;var i=this.getAttribute(t);if(null!=i&&i.hasValue())return this.styles[t]=i,i;if(!r){var{parent:a}=this;if(a){var s=a.getStyle(t);if(null!=s&&s.hasValue())return s}}if(e){var o=new mt(this.document,t,"");return this.styles[t]=o,o}return n||mt.empty(this.document)}render(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var e=Dt.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var n=r.getDefinition();n&&n.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach(e=>{e.render(t)})}addChild(t){var e=t instanceof Bt?t:this.document.createElement(t);e.parent=this,Bt.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(t){var{node:e}=this;if("function"==typeof e.matches)return e.matches(t);var r=e.getAttribute("class");return!(!r||""===r)&&r.split(" ").some(e=>".".concat(e)===t)}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:e}=this.document;for(var r in t)if(!r.startsWith("@")&&this.matchesSelector(r)){var n=t[r],i=e[r];if(n)for(var a in n){var s=this.stylesSpecificity[a];void 0===s&&(s="000"),i>=s&&(this.styles[a]=n[a],this.stylesSpecificity[a]=i)}}}removeStyles(t,e){var r;return e.reduce((e,r)=>{var n=t.getStyle(r);if(!n.hasValue())return e;var i=n.getString();return n.setValue(""),[...e,[r,i]]},[])}restoreStyles(t,e){e.forEach(e=>{var[r,n]=e;t.getStyle(r,!0).setValue(n)})}}Bt.ignoreChildTypes=["title"];class jt extends Bt{constructor(t,e,r){super(t,e,r)}}function zt(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function Ft(e){return void 0===t?e:e.trim().split(",").map(zt).join(",")}function Ut(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function Ht(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class Xt{constructor(t,e,r,n,i,a){var s=a?"string"==typeof a?Xt.parse(a):a:{};this.fontFamily=i||s.fontFamily,this.fontSize=n||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=e||s.fontVariant}static parse(){var t,e=arguments.length>1?arguments[1]:void 0,r="",n="",i="",a="",s="",o=X(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach(t=>{switch(!0){case!u.fontStyle&&Xt.styles.includes(t):"inherit"!==t&&(r=t),u.fontStyle=!0;break;case!u.fontVariant&&Xt.variants.includes(t):"inherit"!==t&&(n=t),u.fontStyle=!0,u.fontVariant=!0;break;case!u.fontWeight&&Xt.weights.includes(t):"inherit"!==t&&(i=t),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0;break;case!u.fontSize:"inherit"!==t&&([a]=t.split("/")),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0,u.fontSize=!0;break;default:"inherit"!==t&&(s+=t)}}),new Xt(r,n,i,a,s,e)}toString(){return[Ut(this.fontStyle),this.fontVariant,Ht(this.fontWeight),this.fontSize,Ft(this.fontFamily)].join(" ").trim()}}Xt.styles="normal|italic|oblique|inherit",Xt.variants="normal|small-caps|inherit",Xt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Yt{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=n,this.addPoint(t,e),this.addPoint(r,n)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:r,x2:n,y2:i}=t;this.addPoint(e,r),this.addPoint(n,i)}}sumCubic(t,e,r,n,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*i}bezierCurveAdd(t,e,r,n,i){var a=6*e-12*r+6*n,s=-3*e+9*r-9*n+3*i,o=3*r-3*e;if(0!==s){var u=Math.pow(a,2)-4*o*s;if(!(u<0)){var h=(-a+Math.sqrt(u))/(2*s);0<h&&h<1&&(t?this.addX(this.sumCubic(h,e,r,n,i)):this.addY(this.sumCubic(h,e,r,n,i)));var c=(-a-Math.sqrt(u))/(2*s);0<c&&c<1&&(t?this.addX(this.sumCubic(c,e,r,n,i)):this.addY(this.sumCubic(c,e,r,n,i)))}}else{if(0===a)return;var l=-o/a;0<l&&l<1&&(t?this.addX(this.sumCubic(l,e,r,n,i)):this.addY(this.sumCubic(l,e,r,n,i)))}}addBezierCurve(t,e,r,n,i,a,s,o){this.addPoint(t,e),this.addPoint(s,o),this.bezierCurveAdd(!0,t,r,i,s),this.bezierCurveAdd(!1,e,n,a,o)}addQuadraticCurve(t,e,r,n,i,a){var s=t+2/3*(r-t),o=e+2/3*(n-e),u=s+1/3*(i-t),h=o+1/3*(a-e);this.addBezierCurve(t,e,s,u,o,h,i,a)}isPointInBox(t,e){var{x1:r,y1:n,x2:i,y2:a}=this;return r<=t&&t<=i&&n<=e&&e<=a}}class Wt extends D.a{constructor(t){super(t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new bt(0,0),this.control=new bt(0,0),this.current=new bt(0,0),this.points=[],this.angles=[]}isEnd(){var{i:t,commands:e}=this;return t>=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r=new bt(this.command[t],this.command[e]);return this.makeAbsolute(r)}getAsControlPoint(t,e){var r=this.getPoint(t,e);return this.control=r,r}getAsCurrentPoint(t,e){var r=this.getPoint(t,e);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==D.a.CURVE_TO&&t!==D.a.SMOOTH_CURVE_TO&&t!==D.a.QUAD_TO&&t!==D.a.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:n,y:i}}=this,a;return new bt(2*e-n,2*r-i)}makeAbsolute(t){if(this.command.relative){var{x:e,y:r}=this.current;t.x+=e,t.y+=r}return t}addMarker(t,e,r){var{points:n,angles:i}=this;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,r=0;r<e;r++)if(!t[r])for(var n=r+1;n<e;n++)if(t[n]){t[r]=t[n];break}return t}}class qt extends Bt{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,n);s&&(t.fillStyle=s)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var o=r.getColor();"inherit"!==o&&(t.fillStyle="none"===o?"rgba(0,0,0,0)":o)}if(n.hasValue()){var u=new mt(this.document,"fill",t.fillStyle).addOpacity(n).getColor();t.fillStyle=u}if(i.isUrlDefinition()){var h=i.getFillStyleDefinition(this,a);h&&(t.strokeStyle=h)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var c=i.getString();"inherit"!==c&&(t.strokeStyle="none"===c?"rgba(0,0,0,0)":c)}if(a.hasValue()){var l=new mt(this.document,"stroke",t.strokeStyle).addOpacity(a).getString();t.strokeStyle=l}var f=this.getStyle("stroke-width");if(f.hasValue()){var g=f.getPixels();t.lineWidth=g||ot}var p=this.getStyle("stroke-linecap"),d=this.getStyle("stroke-linejoin"),v=this.getStyle("stroke-miterlimit"),y=this.getStyle("stroke-dasharray"),m=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(t.lineCap=p.getString()),d.hasValue()&&(t.lineJoin=d.getString()),v.hasValue()&&(t.miterLimit=v.getNumber()),y.hasValue()&&"none"!==y.getString()){var x=q(y.getString());void 0!==t.setLineDash?t.setLineDash(x):void 0!==t.webkitLineDash?t.webkitLineDash=x:void 0===t.mozDash||1===x.length&&0===x[0]||(t.mozDash=x);var b=m.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=b:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=b:void 0!==t.mozDashOffset&&(t.mozDashOffset=b)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var w=this.getStyle("font"),S=this.getStyle("font-style"),T=this.getStyle("font-variant"),A=this.getStyle("font-weight"),O=this.getStyle("font-size"),P=this.getStyle("font-family"),E=new Xt(S.getString(),T.getString(),A.getString(),O.hasValue()?"".concat(O.getPixels(!0),"px"):"",P.getString(),Xt.parse(w.getString(),t.font));S.setValue(E.fontStyle),T.setValue(E.fontVariant),A.setValue(E.fontWeight),O.setValue(E.fontSize),P.setValue(E.fontFamily),t.font=E.toString(),O.isPixels()&&(this.document.emSize=O.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Gt extends qt{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new Wt(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new Yt;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case Wt.MOVE_TO:this.pathM(t,r);break;case Wt.LINE_TO:this.pathL(t,r);break;case Wt.HORIZ_LINE_TO:this.pathH(t,r);break;case Wt.VERT_LINE_TO:this.pathV(t,r);break;case Wt.CURVE_TO:this.pathC(t,r);break;case Wt.SMOOTH_CURVE_TO:this.pathS(t,r);break;case Wt.QUAD_TO:this.pathQ(t,r);break;case Wt.SMOOTH_QUAD_TO:this.pathT(t,r);break;case Wt.ARC:this.pathA(t,r);break;case Wt.CLOSE_PATH:this.pathZ(t,r)}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles(),n;return e.map((t,e)=>[t,r[e]])}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var n=r.length-1,i=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(i.isUrlDefinition()){var o=i.getDefinition(),[u,h]=r[0];o.render(t,u,h)}if(a.isUrlDefinition())for(var c=a.getDefinition(),l=1;l<n;l++){var[f,g]=r[l];c.render(t,f,g)}if(s.isUrlDefinition()){var p=s.getDefinition(),[d,v]=r[n];p.render(t,d,v)}}}static pathM(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}pathM(t,e){var{pathParser:r}=this,{point:n}=Gt.pathM(r),{x:i,y:a}=n;r.addMarker(n),e.addPoint(i,a),t&&t.moveTo(i,a)}static pathL(t){var{current:e}=t,r;return{current:e,point:t.getAsCurrentPoint()}}pathL(t,e){var{pathParser:r}=this,{current:n,point:i}=Gt.pathL(r),{x:a,y:s}=i;r.addMarker(i,n),e.addPoint(a,s),t&&t.lineTo(a,s)}static pathH(t){var{current:e,command:r}=t,n=new bt((r.relative?e.x:0)+r.x,e.y);return t.current=n,{current:e,point:n}}pathH(t,e){var{pathParser:r}=this,{current:n,point:i}=Gt.pathH(r),{x:a,y:s}=i;r.addMarker(i,n),e.addPoint(a,s),t&&t.lineTo(a,s)}static pathV(t){var{current:e,command:r}=t,n=new bt(e.x,(r.relative?e.y:0)+r.y);return t.current=n,{current:e,point:n}}pathV(t,e){var{pathParser:r}=this,{current:n,point:i}=Gt.pathV(r),{x:a,y:s}=i;r.addMarker(i,n),e.addPoint(a,s),t&&t.lineTo(a,s)}static pathC(t){var{current:e}=t,r,n,i;return{current:e,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathC(t,e){var{pathParser:r}=this,{current:n,point:i,controlPoint:a,currentPoint:s}=Gt.pathC(r);r.addMarker(s,a,i),e.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),t&&t.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathS(t){var{current:e}=t,r,n,i;return{current:e,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathS(t,e){var{pathParser:r}=this,{current:n,point:i,controlPoint:a,currentPoint:s}=Gt.pathS(r);r.addMarker(s,a,i),e.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),t&&t.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathQ(t){var{current:e}=t,r,n;return{current:e,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}pathQ(t,e){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:a}=Gt.pathQ(r);r.addMarker(a,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),t&&t.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathT(t){var{current:e}=t,r=t.getReflectedControlPoint(),n;return t.control=r,{current:e,controlPoint:r,currentPoint:t.getAsCurrentPoint()}}pathT(t,e){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:a}=Gt.pathT(r);r.addMarker(a,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),t&&t.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathA(t){var{current:e,command:r}=t,{rX:n,rY:i,xRot:a,lArcFlag:s,sweepFlag:o}=r,u=a*(Math.PI/180),h=t.getAsCurrentPoint(),c=new bt(Math.cos(u)*(e.x-h.x)/2+Math.sin(u)*(e.y-h.y)/2,-Math.sin(u)*(e.x-h.x)/2+Math.cos(u)*(e.y-h.y)/2),l=Math.pow(c.x,2)/Math.pow(n,2)+Math.pow(c.y,2)/Math.pow(i,2);l>1&&(n*=Math.sqrt(l),i*=Math.sqrt(l));var f=(s===o?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(c.y,2)-Math.pow(i,2)*Math.pow(c.x,2))/(Math.pow(n,2)*Math.pow(c.y,2)+Math.pow(i,2)*Math.pow(c.x,2)));isNaN(f)&&(f=0);var g=new bt(f*n*c.y/i,f*-i*c.x/n),p=new bt((e.x+h.x)/2+Math.cos(u)*g.x-Math.sin(u)*g.y,(e.y+h.y)/2+Math.sin(u)*g.x+Math.cos(u)*g.y),d=ct([1,0],[(c.x-g.x)/n,(c.y-g.y)/i]),v=[(c.x-g.x)/n,(c.y-g.y)/i],y=[(-c.x-g.x)/n,(-c.y-g.y)/i],m=ct(v,y);return ht(v,y)<=-1&&(m=Math.PI),ht(v,y)>=1&&(m=0),{currentPoint:h,rX:n,rY:i,sweepFlag:o,xAxisRotation:u,centp:p,a1:d,ad:m}}pathA(t,e){var{pathParser:r}=this,{currentPoint:n,rX:i,rY:a,sweepFlag:s,xAxisRotation:o,centp:u,a1:h,ad:c}=Gt.pathA(r),l=1-s?1:-1,f=h+l*(c/2),g=new bt(u.x+i*Math.cos(f),u.y+a*Math.sin(f));if(r.addMarkerAngle(g,f-l*Math.PI/2),r.addMarkerAngle(n,f-l*Math.PI),e.addPoint(n.x,n.y),t&&!isNaN(h)&&!isNaN(c)){var p=i>a?i:a,d=i>a?1:i/a,v=i>a?a/i:1;t.translate(u.x,u.y),t.rotate(o),t.scale(d,v),t.arc(0,0,p,h,h+c,Boolean(1-s)),t.scale(1/d,1/v),t.rotate(-o),t.translate(-u.x,-u.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){Gt.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class Qt extends Gt{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class $t extends qt{constructor(t,e,r){super(t,e,new.target===$t||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(t,e);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(t){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var e=this.getAttribute("dx"),r=this.getAttribute("dy");e.hasValue()&&(this.x+=e.getPixels("x")),r.hasValue()&&(this.y+=r.getPixels("y")),this.x+=this.getAnchorDelta(t,this,0)}getBoundingBox(t){if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(t);var e=null;return this.children.forEach((r,n)=>{var i=this.getChildBoundingBox(t,this,this,n);e?e.addBoundingBox(i):e=i}),e}getFontSize(){var{document:t,parent:e}=this,r=Xt.parse(t.ctx.font).fontSize,n;return e.getStyle("font-size").getNumber(r)}getTElementBoundingBox(t){var e=this.getFontSize();return new Yt(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var n=e[r],i=null;if(t.isArabic){var a=e.length,s=e[r-1],o=e[r+1],u="isolated";if((0===r||" "===s)&&r<a-2&&" "!==o&&(u="terminal"),r>0&&" "!==s&&r<a-2&&" "!==o&&(u="medial"),r>0&&" "!==s&&(r===a-1||" "===o)&&(u="initial"),void 0!==t.glyphs[n]){var h=t.glyphs[n];i=h instanceof Qt?h:h[u]}}else i=t.glyphs[n];return i||(i=t.missingGlyph),i}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),n=r.indexOf(e),i=r.length-1,a=X(e.textContent||"");return 0===n&&(a=Y(a)),n===i&&(a=W(a)),a}renderChildren(t){if("text"===this.type){this.initializeCoordinates(t),this.children.forEach((e,r)=>{this.renderChild(t,this,this,r)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:r}=this,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var{unitsPerEm:a}=i.fontFace,s=Xt.parse(e.ctx.font),o=r.getStyle("font-size").getNumber(s.fontSize),u=r.getStyle("font-style").getString(s.fontStyle),h=o/a,c=i.isRTL?n.split("").reverse().join(""):n,l=q(r.getAttribute("dx").getString()),f=c.length,g=0;g<f;g++){var p=this.getGlyph(i,c,g);t.translate(this.x,this.y),t.scale(h,-h);var d=t.lineWidth;t.lineWidth=t.lineWidth*a/o,"italic"===u&&t.transform(1,0,.4,1,0,0),p.render(t),"italic"===u&&t.transform(1,0,-.4,1,0,0),t.lineWidth=d,t.scale(1/h,-1/h),t.translate(-this.x,-this.y),this.x+=o*(p.horizAdvX||i.horizAdvX)/a,void 0===l[g]||isNaN(l[g])||(this.x+=l[g])}else{var{x:v,y:y}=this;t.fillStyle&&t.fillText(n,v,y),t.strokeStyle&&t.strokeText(n,v,y)}}getAnchorDelta(t,e,r){var n=this.getStyle("text-anchor").getString("start");if("start"!==n){for(var{children:i}=e,a=i.length,s=null,o=0,u=r;u<a&&(s=i[u],!(u>r&&s.getAttribute("x").hasValue()||s.getAttribute("text-anchor").hasValue()));u++)o+=s.measureTextRecursive(t);return-1*("end"===n?o:o/2)}return 0}adjustChildCoordinates(t,e,r,n){var i=r.children[n];if("function"!=typeof i.measureText)return i;t.save(),i.setContext(t,!0);var a=i.getAttribute("x"),s=i.getAttribute("y"),o=i.getAttribute("dx"),u=i.getAttribute("dy"),h=i.getAttribute("text-anchor").getString("start");if(0===n&&"textNode"!==i.type&&(a.hasValue()||a.setValue(e.getAttribute("x").getValue("0")),s.hasValue()||s.setValue(e.getAttribute("y").getValue("0")),o.hasValue()||o.setValue(e.getAttribute("dx").getValue("0")),u.hasValue()||u.setValue(e.getAttribute("dy").getValue("0"))),a.hasValue()){if(i.x=a.getPixels("x")+e.getAnchorDelta(t,r,n),"start"!==h){var c=i.measureTextRecursive(t);i.x+=-1*("end"===h?c:c/2)}o.hasValue()&&(i.x+=o.getPixels("x"))}else{if("start"!==h){var l=i.measureTextRecursive(t);e.x+=-1*("end"===h?l:l/2)}o.hasValue()&&(e.x+=o.getPixels("x")),i.x=e.x}return e.x=i.x+i.measureText(t),s.hasValue()?(i.y=s.getPixels("y"),u.hasValue()&&(i.y+=u.getPixels("y"))):(u.hasValue()&&(e.y+=u.getPixels("y")),i.y=e.y),e.y=i.y,i.clearContext(t),t.restore(),i}getChildBoundingBox(t,e,r,n){var i=this.adjustChildCoordinates(t,e,r,n);if("function"!=typeof i.getBoundingBox)return null;var a=i.getBoundingBox(t);return a?(i.children.forEach((r,n)=>{var s=e.getChildBoundingBox(t,e,i,n);a.addBoundingBox(s)}),a):null}renderChild(t,e,r,n){var i=this.adjustChildCoordinates(t,e,r,n);i.render(t),i.children.forEach((r,n)=>{e.renderChild(t,e,i,n)})}measureTextRecursive(t){var e;return this.children.reduce((e,r)=>e+r.measureTextRecursive(t),this.measureText(t))}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),n=this.measureTargetText(t,r);return this.measureCache=n,n}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,n=r.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),a=n.isRTL?e.split("").reverse().join(""):e,s=q(r.getAttribute("dx").getString()),o=a.length,u=0,h=0;h<o;h++){var c;u+=(this.getGlyph(n,a,h).horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,void 0===s[h]||isNaN(s[h])||(u+=s[h])}return u}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var{width:l}=t.measureText(e);return this.clearContext(t),t.restore(),l}}class Zt extends $t{constructor(t,e,r){super(t,e,new.target===Zt||r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Kt extends Zt{constructor(){super(...arguments),this.type="textNode"}}class Jt extends qt{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:n,window:i}=r,a=t.canvas;if(n.setDefaults(t),a.style&&void 0!==t.font&&i&&void 0!==i.getComputedStyle){t.font=i.getComputedStyle(a).getPropertyValue("font");var s=new mt(r,"fontSize",Xt.parse(t.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:u}=n.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),c=this.getAttribute("refY"),l=this.getAttribute("viewBox"),f=l.hasValue()?q(l.getString()):null,g=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),p=0,d=0,v=0,y=0;f&&(p=f[0],d=f[1]),this.root||(o=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),"marker"===this.type&&(v=p,y=d,p=0,d=0)),n.viewPort.setCurrent(o,u),!this.node||this.parent&&"foreignObject"!==(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(o=f[2],u=f[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:o,height:n.viewPort.height,desiredHeight:u,minX:p,minY:d,refX:h.getValue(),refY:c.getValue(),clip:g,clipX:v,clipY:y}),f&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(o,u))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),s=this.getAttribute("style"),o=n.getNumber(0),u=i.getNumber(0);if(r)if("string"==typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(t),i.setValue(e),a.hasValue()||a.setValue("0 0 ".concat(o||t," ").concat(u||e)),s.hasValue()){var c=this.getStyle("width"),l=this.getStyle("height");c.hasValue()&&c.setValue("".concat(t,"px")),l.hasValue()&&l.setValue("".concat(e,"px"))}}}class te extends Gt{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),s=this.getAttribute("ry"),o=a.getPixels("x"),u=s.getPixels("y");if(a.hasValue()&&!s.hasValue()&&(u=o),s.hasValue()&&!a.hasValue()&&(o=u),o=Math.min(o,n/2),u=Math.min(u,i/2),t){var h=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&n>0&&(t.moveTo(e+o,r),t.lineTo(e+n-o,r),t.bezierCurveTo(e+n-o+h*o,r,e+n,r+u-h*u,e+n,r+u),t.lineTo(e+n,r+i-u),t.bezierCurveTo(e+n,r+i-u+h*u,e+n-o+h*o,r+i,e+n-o,r+i),t.lineTo(e+o,r+i),t.bezierCurveTo(e+o-h*o,r+i,e,r+i-u+h*u,e,r+i-u),t.lineTo(e,r+u),t.bezierCurveTo(e,r+u-h*u,e+o-h*o,r,e+o,r),t.closePath())}return new Yt(e,r,e+n,r+i)}getMarkers(){return null}}class ee extends Gt{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return t&&n>0&&(t.beginPath(),t.arc(e,r,n,0,2*Math.PI,!1),t.closePath()),new Yt(e-n,r-n,e+n,r+n)}getMarkers(){return null}}class re extends Gt{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return t&&r>0&&n>0&&(t.beginPath(),t.moveTo(i+r,a),t.bezierCurveTo(i+r,a+e*n,i+e*r,a+n,i,a+n),t.bezierCurveTo(i-e*r,a+n,i-r,a+e*n,i-r,a),t.bezierCurveTo(i-r,a-e*n,i-e*r,a-n,i,a-n),t.bezierCurveTo(i+e*r,a-n,i+r,a-e*n,i+r,a),t.closePath()),new Yt(i-r,a-n,i+r,a+n)}getMarkers(){return null}}class ne extends Gt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new bt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new bt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:n,y:i}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(n,i)),new Yt(e,r,n,i)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class ie extends Gt{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=bt.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:n}]=e,i=new Yt(r,n);return t&&(t.beginPath(),t.moveTo(r,n)),e.forEach(e=>{var{x:r,y:n}=e;i.addPoint(r,n),t&&t.lineTo(r,n)}),i}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach((n,i)=>{i!==e&&r.push([n,n.angleTo(t[i+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class ae extends ie{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:n}]=this.points;return t&&(t.lineTo(r,n),t.closePath()),e}}class se extends Bt{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),a=new Jt(this.document,null);a.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new mt(this.document,"width","".concat(n,"px")),a.attributes.height=new mt(this.document,"height","".concat(i,"px")),a.attributes.transform=new mt(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var s=this.document.createCanvas(n,i),o=s.getContext("2d"),u=this.getAttribute("x"),h=this.getAttribute("y"),c;u.hasValue()&&h.hasValue()&&o.translate(u.getPixels("x",!0),h.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var l=-1;l<=1;l++)for(var f=-1;f<=1;f++)o.save(),a.attributes.x=new mt(this.document,"x",l*s.width),a.attributes.y=new mt(this.document,"y",f*s.height),a.render(o),o.restore();return t.createPattern(s,"repeat")}}class oe extends Bt{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:n,y:i}=e,a=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(n,i),"auto"===a&&t.rotate(r),"strokeWidth"===s&&t.scale(t.lineWidth,t.lineWidth),t.save();var o=new Jt(this.document,null);o.type=this.type,o.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new mt(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new mt(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new mt(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new mt(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new mt(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new mt(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new mt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(t),t.restore(),"strokeWidth"===s&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===a&&t.rotate(-r),t.translate(-n,-i)}}}class ue extends Bt{constructor(){super(...arguments),this.type="defs"}render(){}}class he extends qt{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new Yt;return this.children.forEach(r=>{e.addBoundingBox(r.getBoundingBox(t))}),e}}class ce extends Bt{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:n,children:i}=this;i.forEach(t=>{"stop"===t.type&&n.push(t)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var{stops:i}=n,a=this.getGradient(t,e);if(!a)return this.addParentOpacity(r,i[i.length-1].color);if(i.forEach(t=>{a.addColorStop(t.offset,this.addParentOpacity(r,t.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:u}=s.screen,[h]=u.viewPorts,c=new te(s,null);c.attributes.x=new mt(s,"x",-o/3),c.attributes.y=new mt(s,"y",-o/3),c.attributes.width=new mt(s,"width",o),c.attributes.height=new mt(s,"height",o);var l=new he(s,null);l.attributes.transform=new mt(s,"transform",this.getAttribute("gradientTransform").getValue()),l.children=[c];var f=new Jt(s,null);f.attributes.x=new mt(s,"x",0),f.attributes.y=new mt(s,"y",0),f.attributes.width=new mt(s,"width",h.width),f.attributes.height=new mt(s,"height",h.height),f.children=[l];var g=s.createCanvas(h.width,h.height),p=g.getContext("2d");return p.fillStyle=a,f.render(p),p.createPattern(g,"no-repeat")}return a}inheritStopContainer(t){this.attributesToInherit.forEach(e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())})}addParentOpacity(t,e){var r;return t.hasValue()?new mt(this.document,"color",e).addOpacity(t).getColor():e}}class le extends ce{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=r?e.getBoundingBox(t):null;if(r&&!n)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&a===o?null:t.createLinearGradient(i,a,s,o)}}class fe extends ce{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=e.getBoundingBox(t);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,o=a;this.getAttribute("fx").hasValue()&&(s=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var u=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,o,h,i,a,u)}}class ge extends Bt{constructor(t,e,r){super(t,e,r),this.type="stop";var n=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),a=this.getStyle("stop-color",!0);""===a.getString()&&a.setValue("#000"),i.hasValue()&&(a=a.addOpacity(i)),this.offset=n,this.color=a.getColor()}}class pe extends Bt{constructor(t,e,r){super(t,e,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new mt(t,"values",null);var n=this.getAttribute("values");n.hasValue()&&this.values.setValue(n.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:n}=this.getProgress(),i=r.getNumber()+(n.getNumber()-r.getNumber())*e;return"%"===t&&(i*=100),"".concat(i).concat(t)}update(t){var{parent:e}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==n||this.frozen){if("remove"===n&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var o=s.getString();a="".concat(o,"(").concat(a,")")}r.setValue(a),i=!0}return i}getProgress(){var{document:t,values:e}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var n=r.progress*(e.getValue().length-1),i=Math.floor(n),a=Math.ceil(n);r.from=new mt(t,"from",parseFloat(e.getValue()[i])),r.to=new mt(t,"to",parseFloat(e.getValue()[a])),r.progress=(n-i)/(a-i)}else r.from=this.from,r.to=this.to;return r}}class de extends pe{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),n=new N.a(e.getColor()),i=new N.a(r.getColor());if(n.ok&&i.ok){var a=n.r+(i.r-n.r)*t,s=n.g+(i.g-n.g)*t,o=n.b+(i.b-n.b)*t;return"rgb(".concat(Math.floor(a),", ").concat(Math.floor(s),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}}class ve extends pe{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),n=q(e.getString()),i=q(r.getString()),a;return n.map((e,r)=>{var n;return e+(i[r]-e)*t}).join(" ")}}class ye extends Bt{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:n}=t,{children:i}=this;for(var a of i)switch(a.type){case"font-face":this.fontFace=a;var s=a.getStyle("font-family");s.hasValue()&&(n[s.getString()]=this);break;case"missing-glyph":this.missingGlyph=a;break;case"glyph":var o=a;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[o.unicode]&&(this.glyphs[o.unicode]={}),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o}}render(){}}class me extends Bt{constructor(t,e,r){super(t,e,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class xe extends Gt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class be extends $t{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}class we extends $t{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:n}=e,i=n[0],a=n.length>0&&Array.from(n).every(t=>3===t.nodeType);this.hasText=a,this.text=a?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:n}=this,{mouse:i}=e.screen,a=new mt(e,"fontSize",Xt.parse(e.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new Yt(r,n-a.getPixels("y"),r+this.measureText(t),n))}else if(this.children.length>0){var s=new he(this.document,null);s.children=this.children,s.parent=this,s.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){var t;this.document.ctx.canvas.style.cursor="pointer"}}function Se(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Te(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Se(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Se(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}class Ae extends $t{constructor(t,e,r){super(t,e,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var n=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(n)}getText(){return this.text}path(t){var{dataArray:e}=this;t&&t.beginPath(),e.forEach(e=>{var{type:r,points:n}=e;switch(r){case Wt.LINE_TO:t&&t.lineTo(n[0],n[1]);break;case Wt.MOVE_TO:t&&t.moveTo(n[0],n[1]);break;case Wt.CURVE_TO:t&&t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case Wt.QUAD_TO:t&&t.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case Wt.ARC:var[i,a,s,o,u,h,c,l]=n,f=s>o?s:o,g=s>o?1:s/o,p=s>o?o/s:1;t&&(t.translate(i,a),t.rotate(c),t.scale(g,p),t.arc(0,0,f,u,u+h,Boolean(1-l)),t.scale(1/g,1/p),t.rotate(-c),t.translate(-i,-a));break;case Wt.CLOSE_PATH:t&&t.closePath()}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:n}=this,i=t.fillStyle;"underline"===e&&t.beginPath(),n.forEach((n,i)=>{var{p0:a,p1:s,rotation:o,text:u}=n;t.save(),t.translate(a.x,a.y),t.rotate(o),t.fillStyle&&t.fillText(u,0,0),t.strokeStyle&&t.strokeText(u,0,0),t.restore(),"underline"===e&&(0===i&&t.moveTo(a.x,a.y+r/8),t.lineTo(s.x,s.y+r/5))}),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,e,r,n,i,a,s,o,u){var h=a,c=this.measureText(t,o);" "===o&&"justify"===e&&r<n&&(c+=(n-r)/i),u>-1&&(h+=this.getLetterSpacingAt(u));var l=this.textHeight/20,f=this.getEquidistantPointOnPath(h,l,0),g=this.getEquidistantPointOnPath(h+c,l,0),p={p0:f,p1:g},d=f&&g?Math.atan2(g.y-f.y,g.x-f.x):0;if(s){var v=Math.cos(Math.PI/2+d)*s,y=Math.cos(-d)*s;p.p0=Te(Te({},f),{},{x:f.x+v,y:f.y+y}),p.p1=Te(Te({},g),{},{x:g.x+v,y:g.y+y})}return{offset:h+=c,segment:p,rotation:d}}measureText(t,e){var{measuresCache:r}=this,n=e||this.getText();if(r.has(n))return r.get(n);var i=this.measureTargetText(t,n);return r.set(n,i),i}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),n=e.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(t=>t.getPixels("x")),a=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),u=this.parent.getStyle("letter-spacing"),h=0;o.hasValue()&&"inherit"!==o.getValue()?o.hasValue()&&"initial"!==o.getValue()&&"unset"!==o.getValue()&&(h=o.getPixels()):h=u.getPixels();var c=[],l=e.length;this.letterSpacingCache=c;for(var f=0;f<l;f++)c.push(void 0!==i[f]?i[f]:h);var g=c.reduce((t,e,r)=>0===r?0:t+e||0,0),p=this.measureText(t),d=Math.max(p+g,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var v=this.getPathLength(),y=this.getStyle("startOffset").getNumber(0)*v,m=0;"middle"!==s&&"center"!==s||(m=-d/2),"end"!==s&&"right"!==s||(m=-d),m+=y,r.forEach((e,i)=>{var{offset:o,segment:u,rotation:h}=this.findSegmentToFitChar(t,s,d,v,n,m,a,e,i);m=o,u.p0&&u.p1&&this.glyphInfo.push({text:r[i],p0:u.p0,p1:u.p1,rotation:h})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:n}=r,i=n?n.x:0,a=n?n.y:0,s=r.next(),o=s.type,u=[];switch(s.type){case Wt.MOVE_TO:this.pathM(r,u);break;case Wt.LINE_TO:o=this.pathL(r,u);break;case Wt.HORIZ_LINE_TO:o=this.pathH(r,u);break;case Wt.VERT_LINE_TO:o=this.pathV(r,u);break;case Wt.CURVE_TO:this.pathC(r,u);break;case Wt.SMOOTH_CURVE_TO:o=this.pathS(r,u);break;case Wt.QUAD_TO:this.pathQ(r,u);break;case Wt.SMOOTH_QUAD_TO:o=this.pathT(r,u);break;case Wt.ARC:u=this.pathA(r);break;case Wt.CLOSE_PATH:Gt.pathZ(r)}s.type!==Wt.CLOSE_PATH?e.push({type:o,points:u,start:{x:i,y:a},pathLength:this.calcLength(i,a,o,u)}):e.push({type:Wt.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:n}=Gt.pathM(t).point;e.push(r,n)}pathL(t,e){var{x:r,y:n}=Gt.pathL(t).point;return e.push(r,n),Wt.LINE_TO}pathH(t,e){var{x:r,y:n}=Gt.pathH(t).point;return e.push(r,n),Wt.LINE_TO}pathV(t,e){var{x:r,y:n}=Gt.pathV(t).point;return e.push(r,n),Wt.LINE_TO}pathC(t,e){var{point:r,controlPoint:n,currentPoint:i}=Gt.pathC(t);e.push(r.x,r.y,n.x,n.y,i.x,i.y)}pathS(t,e){var{point:r,controlPoint:n,currentPoint:i}=Gt.pathS(t);return e.push(r.x,r.y,n.x,n.y,i.x,i.y),Wt.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:n}=Gt.pathQ(t);e.push(r.x,r.y,n.x,n.y)}pathT(t,e){var{controlPoint:r,currentPoint:n}=Gt.pathT(t);return e.push(r.x,r.y,n.x,n.y),Wt.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:n,xAxisRotation:i,centp:a,a1:s,ad:o}=Gt.pathA(t);return 0===n&&o>0&&(o-=2*Math.PI),1===n&&o<0&&(o+=2*Math.PI),[a.x,a.y,e,r,s,o,i,n]}calcLength(t,e,r,n){var i=0,a=null,s=null,o=0;switch(r){case Wt.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case Wt.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)s=this.getPointOnCubicBezier(o,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case Wt.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)s=this.getPointOnQuadraticBezier(o,t,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case Wt.ARC:i=0;var u=n[4],h=n[5],c=n[4]+h,l=Math.PI/180;if(Math.abs(u-c)<l&&(l=Math.abs(u-c)),a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),h<0)for(o=u-l;o>c;o-=l)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(o=u+l;o<c;o+=l)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],c,0),i+=this.getLineLength(a.x,a.y,s.x,s.y)}return 0}getPointOnLine(t,e,r,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,o=(i-r)/(n-e+ot),u=Math.sqrt(t*t/(1+o*o));n<e&&(u*=-1);var h=o*u,c=null;if(n===e)c={x:a,y:s+h};else if((s-r)/(a-e+ot)===o)c={x:a+u,y:s+h};else{var l=0,f=0,g=this.getLineLength(e,r,n,i);if(g<ot)return null;var p=(a-e)*(n-e)+(s-r)*(i-r);l=e+(p/=g*g)*(n-e),f=r+p*(i-r);var d=this.getLineLength(a,s,l,f),v=Math.sqrt(t*t-d*d);u=Math.sqrt(v*v/(1+o*o)),n<e&&(u*=-1),c={x:l+u,y:f+(h=o*u)}}return c}getPointOnPath(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||t-5e-5>e)return null;var{dataArray:i}=this;for(var a of i){if(!a||!(a.pathLength<5e-5||r+a.pathLength+5e-5<t)){var s=t-r,o=0;switch(a.type){case Wt.LINE_TO:n=this.getPointOnLine(s,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case Wt.ARC:var u=a.points[4],h=a.points[5],c=a.points[4]+h;if(o=u+s/a.pathLength*h,h<0&&o<c||h>=0&&o>c)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break;case Wt.CURVE_TO:(o=s/a.pathLength)>1&&(o=1),n=this.getPointOnCubicBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case Wt.QUAD_TO:(o=s/a.pathLength)>1&&(o=1),n=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(n)return n;break}r+=a.pathLength}return null}getLineLength(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((t,e)=>e.pathLength>0?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,r,n,i,a,s,o,u){var h,c;return{x:o*lt(t)+a*ft(t)+n*gt(t)+e*pt(t),y:u*lt(t)+s*ft(t)+i*gt(t)+r*pt(t)}}getPointOnQuadraticBezier(t,e,r,n,i,a,s){var o,u;return{x:a*dt(t)+n*vt(t)+e*yt(t),y:s*dt(t)+i*vt(t)+r*yt(t)}}getPointOnEllipticalArc(t,e,r,n,i,a){var s=Math.cos(a),o=Math.sin(a),u=r*Math.cos(i),h=n*Math.sin(i);return{x:t+(u*s-h*o),y:e+(u*o+h*s)}}buildEquidistantCache(t,e){var r=this.getPathLength(),n=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var a=0,s=0;s<=r;s+=n){var o=this.getPointOnPath(s),u=this.getPointOnPath(s+n);o&&u&&((a+=this.getLineLength(o.x,o.y,u.x,u.y))>=i&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:s}),a-=i))}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var n=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}var Oe=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Pe extends qt{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var n=this.getHrefAttribute().getString();if(n){var i=n.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(n);t.images.push(this),i?this.loadSvg(n):this.loadImage(n),this.isSvg=i}}loadImage(t){var e=this;return s()((function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(e){console.error('Error while loading image "'.concat(t,'":'),e)}e.loaded=!0}))()}loadSvg(t){var e=this;return s()((function*(){var r=Oe.exec(t);if(r){var n=r[5];"base64"===r[4]?e.image=atob(n):e.image=decodeURIComponent(n)}else try{var i=yield e.document.fetch(t),a=yield i.text();e.image=a}catch(e){console.error('Error while loading image "'.concat(t,'":'),e)}e.loaded=!0}))()}renderChildren(t){var{document:e,image:r,loaded:n}=this,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(n&&r&&s&&o){if(t.save(),t.translate(i,a),this.isSvg){var u=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:o});u.document.documentElement.parent=this,u.render()}else{var h=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:h.width,height:o,desiredHeight:h.height}),this.loaded&&(void 0===h.complete||h.complete)&&t.drawImage(h,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new Yt(t,e,t+r,e+n)}}class Ee extends qt{constructor(){super(...arguments),this.type="symbol"}render(t){}}class Ce{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return s()((function*(){try{var{document:n}=r,i,a=(yield n.canvg.parser.load(e)).getElementsByTagName("font");Array.from(a).forEach(e=>{var r=n.createElement(e);n.definitions[t]=r})}catch(t){console.error('Error while loading font "'.concat(e,'":'),t)}r.loaded=!0}))()}}class Me extends Bt{constructor(t,e,r){var n,i;super(t,e,r),this.type="style",X(Array.from(e.childNodes).map(t=>t.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(e=>{var r=e.trim();if(r){var n=r.split("{"),i=n[0].split(","),a=n[1].split(";");i.forEach(e=>{var r=e.trim();if(r){var n=t.styles[r]||{};if(a.forEach(e=>{var r=e.indexOf(":"),i=e.substr(0,r).trim(),a=e.substr(r+1,e.length-r).trim();i&&a&&(n[i]=new mt(t,i,a))}),t.styles[r]=n,t.stylesSpecificity[r]=st(r),"@font-face"===r){var i=n["font-family"].getString().replace(/"|'/g,""),s;n.src.getString().split(",").forEach(e=>{if(e.indexOf('format("svg")')>0){var r=$(e);r&&new Ce(t).load(i,r)}})}}})}})}}Me.parseExternalUrl=$;class Ne extends qt{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:r}=this;if(r){var n=r;if("symbol"===r.type&&((n=new Jt(e,null)).attributes.viewBox=new mt(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new mt(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new mt(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new mt(e,"opacity",this.calculateOpacity())),"svg"===n.type){var i=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new mt(e,"width",i.getString())),a.hasValue()&&(n.attributes.height=new mt(e,"height",a.getString()))}var s=n.parent;n.parent=this,n.render(t),n.parent=s}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return Dt.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function _e(t,e,r,n,i,a){return t[r*n*4+4*e+a]}function Ve(t,e,r,n,i,a,s){t[r*n*4+4*e+a]=s}function Re(t,e,r){var n;return t[e]*r}function ke(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}class Ie extends Bt{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var n=q(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var i=n[0];n=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var a=n[0]*Math.PI/180;n=[ke(a,.213,.787,-.213),ke(a,.715,-.715,-.715),ke(a,.072,-.072,.928),0,0,ke(a,.213,-.213,.143),ke(a,.715,.285,.14),ke(a,.072,-.072,-.283),0,0,ke(a,.213,-.213,-.787),ke(a,.715,-.715,.715),ke(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=n,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,n,i){for(var{includeOpacity:a,matrix:s}=this,o=t.getImageData(0,0,n,i),u=0;u<i;u++)for(var h=0;h<n;h++){var c=_e(o.data,h,u,n,i,0),l=_e(o.data,h,u,n,i,1),f=_e(o.data,h,u,n,i,2),g=_e(o.data,h,u,n,i,3),p=Re(s,0,c)+Re(s,1,l)+Re(s,2,f)+Re(s,3,g)+Re(s,4,1),d=Re(s,5,c)+Re(s,6,l)+Re(s,7,f)+Re(s,8,g)+Re(s,9,1),v=Re(s,10,c)+Re(s,11,l)+Re(s,12,f)+Re(s,13,g)+Re(s,14,1),y=Re(s,15,c)+Re(s,16,l)+Re(s,17,f)+Re(s,18,g)+Re(s,19,1);a&&(p=0,d=0,v=0,y*=g/255),Ve(o.data,h,u,n,i,0,p),Ve(o.data,h,u,n,i,1,d),Ve(o.data,h,u,n,i,2,v),Ve(o.data,h,u,n,i,3,y)}t.clearRect(0,0,n,i),t.putImageData(o,0,0)}}class Le extends Bt{constructor(){super(...arguments),this.type="mask"}apply(t,e){var{document:r}=this,n=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!a&&!s){var o=new Yt;this.children.forEach(e=>{o.addBoundingBox(e.getBoundingBox(t))}),n=Math.floor(o.x1),i=Math.floor(o.y1),a=Math.floor(o.width),s=Math.floor(o.height)}var u=this.removeStyles(e,Le.ignoreStyles),h=r.createCanvas(n+a,i+s),c=h.getContext("2d");r.screen.setDefaults(c),this.renderChildren(c),new Ie(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(c,0,0,n+a,i+s);var l=r.createCanvas(n+a,i+s),f=l.getContext("2d");r.screen.setDefaults(f),e.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=c.createPattern(h,"no-repeat"),f.fillRect(0,0,n+a,i+s),t.fillStyle=f.createPattern(l,"no-repeat"),t.fillRect(0,0,n+a,i+s),this.restoreStyles(e,u)}render(t){}}Le.ignoreStyles=["mask","transform","clip-path"];var De=()=>{};class Be extends Bt{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:n,closePath:i}=t;r&&(r.beginPath=De,r.closePath=De),Reflect.apply(n,t,[]),this.children.forEach(n=>{if(void 0!==n.path){var a=void 0!==n.elementTransform?n.elementTransform():null;a||(a=Dt.fromElement(e,n)),a&&a.apply(t),n.path(t),r&&(r.closePath=i),a&&a.unapply(t)}}),Reflect.apply(i,t,[]),t.clip(),r&&(r.beginPath=n,r.closePath=i)}render(t){}}class je extends Bt{constructor(){super(...arguments),this.type="filter"}apply(t,e){var{document:r,children:n}=this,i=e.getBoundingBox(t);if(i){var a=0,s=0;n.forEach(t=>{var e=t.extraFilterDistance||0;a=Math.max(a,e),s=Math.max(s,e)});var o=Math.floor(i.width),u=Math.floor(i.height),h=o+2*a,c=u+2*s;if(!(h<1||c<1)){var l=Math.floor(i.x),f=Math.floor(i.y),g=this.removeStyles(e,je.ignoreStyles),p=r.createCanvas(h,c),d=p.getContext("2d");r.screen.setDefaults(d),d.translate(-l+a,-f+s),e.render(d),n.forEach(t=>{"function"==typeof t.apply&&t.apply(d,0,0,h,c)}),t.drawImage(p,0,0,h,c,l-a,f-s,h,c),this.restoreStyles(e,g)}}}render(t){}}je.ignoreStyles=["filter","transform","clip-path"];class ze extends Bt{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,n,i){}}class Fe extends Bt{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,n,i){}}class Ue extends Bt{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,n,i){}}class He extends Bt{constructor(t,e,r){super(t,e,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,r,n,i){var{document:a,blurRadius:s}=this,o=a.window?a.window.document.body:null,u=t.canvas;u.id=a.getUniqueId(),o&&(u.style.display="none",o.appendChild(u)),Object(z.a)(u,e,r,n,i,s),o&&o.removeChild(u)}}class Xe extends Bt{constructor(){super(...arguments),this.type="title"}}class Ye extends Bt{constructor(){super(...arguments),this.type="desc"}}var We={svg:Jt,rect:te,circle:ee,ellipse:re,line:ne,polyline:ie,polygon:ae,path:Gt,pattern:se,marker:oe,defs:ue,linearGradient:le,radialGradient:fe,stop:ge,animate:pe,animateColor:de,animateTransform:ve,font:ye,"font-face":me,"missing-glyph":xe,glyph:Qt,text:$t,tspan:Zt,tref:be,a:we,textPath:Ae,image:Pe,g:he,symbol:Ee,style:Me,use:Ne,mask:Le,clipPath:Be,filter:je,feDropShadow:ze,feMorphology:Fe,feComposite:Ue,feColorMatrix:Ie,feGaussianBlur:He,title:Xe,desc:Ye};function qe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ge(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qe(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qe(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r}function $e(t){return Ze.apply(this,arguments)}function Ze(){return(Ze=s()((function*(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise((e,n)=>{r.onload=()=>{e(r)},r.onerror=(t,e,r,i,a)=>{n(a)},r.src=t})}))).apply(this,arguments)}class Ke{constructor(t){var{rootEmSize:e=12,emSize:r=12,createCanvas:n=Ke.createCanvas,createImage:i=Ke.createImage,anonymousCrossOrigin:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=n,this.createImage=this.bindCreateImage(i,a),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,e){return"boolean"==typeof e?(r,n)=>t(r,"boolean"==typeof n?n:e):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:e}=this;e.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(t=>t.loaded)}isFontsLoaded(){return this.fonts.every(t=>t.loaded)}createDocumentElement(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),r=Ke.elementTypes[e];return void 0!==r?new r(this,t):new jt(this,t)}createTextNode(t){return new Kt(this,t)}setViewBox(t){this.screen.setViewBox(Ge({document:this},t))}}function Je(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(r),!0).forEach((function(e){m()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}Ke.createCanvas=Qe,Ke.createImage=$e,Ke.elementTypes=We;class er{constructor(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new Et(r),this.screen=new At(t,r),this.options=r;var n=new Ke(this,r),i=n.createDocumentElement(e);this.document=n,this.documentElement=i}static from(t,e){var r=arguments;return s()((function*(){var n=r.length>2&&void 0!==r[2]?r[2]:{},i=new Et(n),a=yield i.parse(e);return new er(t,a,n)}))()}static fromString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n,i=new Et(r).parseFromString(e);return new er(t,i,r)}fork(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return er.from(t,e,tr(tr({},this.options),r))}forkString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return er.fromString(t,e,tr(tr({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return s()((function*(){var r=t.length>0&&void 0!==t[0]?t[0]:{};e.start(tr({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield e.ready(),e.stop()}))()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:r,options:n}=this;r.start(e,tr(tr({enableRedraw:!0},n),t))}stop(){this.screen.stop()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,e,r)}}e.default=er}.call(this,r(241))},1700:function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,r(92))},1701:function(t,e){var r=Function.prototype,n=r.bind,i=r.call,a=n&&n.bind(i);t.exports=n?function(t){return t&&a(i,t)}:function(t){return t&&function(){return i.apply(t,arguments)}}},1702:function(t,e){t.exports=function(t){return"function"==typeof t}},1703:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1704:function(t,e,r){var n=r(1700),i=r(1741),a=r(1709),s=r(1760),o=r(1759),u=r(1758),h=i("wks"),c=n.Symbol,l=c&&c.for,f=u?c:c&&c.withoutSetter||s;t.exports=function(t){if(!a(h,t)||!o&&"string"!=typeof h[t]){var e="Symbol."+t;o&&a(c,t)?h[t]=c[t]:h[t]=u&&l?l(e):f(e)}return h[t]}},1705:function(t,e,r){var n=r(1700),i=r(1711),a=n.String,s=n.TypeError;t.exports=function(t){if(i(t))return t;throw s(a(t)+" is not an object")}},1706:function(t,e){var r=Function.prototype.call;t.exports=r.bind?r.bind(r):function(){return r.apply(r,arguments)}},1707:function(t,e,r){var n=r(1700),i=r(1722).f,a=r(1720),s=r(1715),o=r(1743),u=r(1786),h=r(1765);t.exports=function(t,e){var r=t.target,c=t.global,l=t.stat,f,g,p,d,v,y;if(g=c?n:l?n[r]||o(r,{}):(n[r]||{}).prototype)for(p in e){if(v=e[p],d=t.noTargetGet?(y=i(g,p))&&y.value:g[p],!(f=h(c?p:r+(l?".":"#")+p,t.forced))&&void 0!==d){if(typeof v==typeof d)continue;u(v,d)}(t.sham||d&&d.sham)&&a(v,"sham",!0),s(g,p,v,t)}}},1708:function(t,e,r){var n,i=r(1700).TypeError;t.exports=function(t){if(null==t)throw i("Can't call method on "+t);return t}},1709:function(t,e,r){var n=r(1701),i=r(1729),a=n({}.hasOwnProperty);t.exports=Object.hasOwn||function t(e,r){return a(i(e),r)}},1710:function(t,e,r){var n=r(1700),i=r(1749),a=n.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return a(t)}},1711:function(t,e,r){var n=r(1702);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},1712:function(t,e,r){var n=r(1703);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},1713:function(t,e,r){var n=r(1700),i=r(1702),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(n[t]):n[t]&&n[t][e]}},1714:function(t,e,r){var n=r(1700),i=r(1712),a=r(1761),s=r(1705),o=r(1739),u=n.TypeError,h=Object.defineProperty;e.f=i?h:function t(e,r,n){if(s(e),r=o(r),s(n),a)try{return h(e,r,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[r]=n.value),e}},1715:function(t,e,r){var n=r(1700),i=r(1702),a=r(1709),s=r(1720),o=r(1743),u=r(1731),h=r(1732),c=r(1733).CONFIGURABLE,l=h.get,f=h.enforce,g=String(String).split("String");(t.exports=function(t,e,r,u){var h=!!u&&!!u.unsafe,l=!!u&&!!u.enumerable,p=!!u&&!!u.noTargetGet,d=u&&void 0!==u.name?u.name:e,v;i(r)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a(r,"name")||c&&r.name!==d)&&s(r,"name",d),(v=f(r)).source||(v.source=g.join("string"==typeof d?d:""))),t!==n?(h?!p&&t[e]&&(l=!0):delete t[e],l?t[e]=r:s(t,e,r)):l?t[e]=r:o(e,r)})(Function.prototype,"toString",(function t(){return i(this)&&l(this).source||u(this)}))},1716:function(t,e,r){var n=r(1701),i=n({}.toString),a=n("".slice);t.exports=function(t){return a(i(t),8,-1)}},1717:function(t,e,r){var n=r(1718);t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},1718:function(t,e,r){var n=r(1700),i=r(1702),a=r(1728),s=n.TypeError;t.exports=function(t){if(i(t))return t;throw s(a(t)+" is not a function")}},1719:function(t,e){t.exports=!1},1720:function(t,e,r){var n=r(1712),i=r(1714),a=r(1725);t.exports=n?function(t,e,r){return i.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},1721:function(t,e,r){var n=r(1734),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},1722:function(t,e,r){var n=r(1712),i=r(1706),a=r(1782),s=r(1725),o=r(1723),u=r(1739),h=r(1709),c=r(1761),l=Object.getOwnPropertyDescriptor;e.f=n?l:function t(e,r){if(e=o(e),r=u(r),c)try{return l(e,r)}catch(t){}if(h(e,r))return s(!i(a.f,e,r),e[r])}},1723:function(t,e,r){var n=r(1756),i=r(1708);t.exports=function(t){return n(i(t))}},1724:function(t,e){t.exports={}},1725:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1726:function(t,e,r){var n=r(1701);t.exports=n({}.isPrototypeOf)},1727:function(t,e,r){var n=r(1713);t.exports=n("navigator","userAgent")||""},1728:function(t,e,r){var n,i=r(1700).String;t.exports=function(t){try{return i(t)}catch(t){return"Object"}}},1729:function(t,e,r){var n=r(1700),i=r(1708),a=n.Object;t.exports=function(t){return a(i(t))}},1730:function(t,e,r){var n=r(1700),i=r(1711),a=n.document,s=i(a)&&i(a.createElement);t.exports=function(t){return s?a.createElement(t):{}}},1731:function(t,e,r){var n=r(1701),i=r(1702),a=r(1742),s=n(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return s(t)}),t.exports=a.inspectSource},1732:function(t,e,r){var n=r(1785),i=r(1700),a=r(1701),s=r(1711),o=r(1720),u=r(1709),h=r(1742),c=r(1744),l=r(1745),f="Object already initialized",g=i.TypeError,p=i.WeakMap,d,v,y,m=function(t){return y(t)?v(t):d(t,{})},x=function(t){return function(e){var r;if(!s(e)||(r=v(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return r}};if(n||h.state){var b=h.state||(h.state=new p),w=a(b.get),S=a(b.has),T=a(b.set);d=function(t,e){if(S(b,t))throw new g(f);return e.facade=t,T(b,t,e),e},v=function(t){return w(b,t)||{}},y=function(t){return S(b,t)}}else{var A=c("state");l[A]=!0,d=function(t,e){if(u(t,A))throw new g(f);return e.facade=t,o(t,A,e),e},v=function(t){return u(t,A)?t[A]:{}},y=function(t){return u(t,A)}}t.exports={set:d,get:v,has:y,enforce:m,getterFor:x}},1733:function(t,e,r){var n=r(1712),i=r(1709),a=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,o=i(a,"name"),u=o&&"something"===function t(){}.name,h=o&&(!n||n&&s(a,"name").configurable);t.exports={EXISTS:o,PROPER:u,CONFIGURABLE:h}},1734:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?n:r)(e)}},1735:function(t,e,r){var n=r(1721);t.exports=function(t){return n(t.length)}},1736:function(t,e,r){var n=r(1716),i=r(1700);t.exports="process"==n(i.process)},1737:function(t,e,r){"use strict";var n=r(1706),i=r(1701),a=r(1710),s=r(1773),o=r(1774),u=r(1741),h=r(1738),c=r(1732).get,l=r(1816),f=r(1817),g=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,d=p,v=i("".charAt),y=i("".indexOf),m=i("".replace),x=i("".slice),b=(S=/b*/g,n(p,w=/a/,"a"),n(p,S,"a"),0!==w.lastIndex||0!==S.lastIndex),w,S,T=o.BROKEN_CARET,A=void 0!==/()??/.exec("")[1],O;(b||A||T||l||f)&&(d=function t(e){var r=this,i=c(r),o=a(e),u=i.raw,l,f,w,S,O,P,E;if(u)return u.lastIndex=r.lastIndex,l=n(d,u,o),r.lastIndex=u.lastIndex,l;var C=i.groups,M=T&&r.sticky,N=n(s,r),_=r.source,V=0,R=o;if(M&&(N=m(N,"y",""),-1===y(N,"g")&&(N+="g"),R=x(o,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&"\n"!==v(o,r.lastIndex-1))&&(_="(?: "+_+")",R=" "+R,V++),f=new RegExp("^(?:"+_+")",N)),A&&(f=new RegExp("^"+_+"$(?!\\s)",N)),b&&(w=r.lastIndex),S=n(p,M?f:r,R),M?S?(S.input=x(S.input,V),S[0]=x(S[0],V),S.index=r.lastIndex,r.lastIndex+=S[0].length):r.lastIndex=0:b&&S&&(r.lastIndex=r.global?S.index+S[0].length:w),A&&S&&S.length>1&&n(g,S[0],f,(function(){for(O=1;O<arguments.length-2;O++)void 0===arguments[O]&&(S[O]=void 0)})),S&&C)for(S.groups=P=h(null),O=0;O<C.length;O++)P[(E=C[O])[0]]=S[E[1]];return S}),t.exports=d},1738:function(t,e,r){var n=r(1705),i=r(1814),a=r(1746),s=r(1745),o=r(1770),u=r(1730),h=r(1744),c=">",l="<",f="prototype",g="script",p=h("IE_PROTO"),d=function(){},v=function(t){return l+g+c+t+l+"/"+g+c},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){var t=u("iframe"),e="javascript:",r;return t.style.display="none",o.appendChild(t),t.src=String(e),(r=t.contentWindow.document).open(),r.write(v("document.F=Object")),r.close(),r.F},x,b=function(){try{x=new ActiveXObject("htmlfile")}catch(t){}b="undefined"!=typeof document?document.domain&&x?y(x):m():y(x);for(var t=a.length;t--;)delete b[f][a[t]];return b()};s[p]=!0,t.exports=Object.create||function t(e,r){var a;return null!==e?(d[f]=n(e),a=new d,d[f]=null,a[p]=e):a=b(),void 0===r?a:i(a,r)}},1739:function(t,e,r){var n=r(1783),i=r(1757);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},1740:function(t,e,r){var n=r(1700),i=r(1727),a=n.process,s=n.Deno,o=a&&a.versions||s&&s.version,u=o&&o.v8,h,c;u&&(c=(h=u.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!c&&i&&(!(h=i.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=i.match(/Chrome\/(\d+)/))&&(c=+h[1]),t.exports=c},1741:function(t,e,r){var n=r(1719),i=r(1742);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:n?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},1742:function(t,e,r){var n=r(1700),i=r(1743),a="__core-js_shared__",s=n[a]||i(a,{});t.exports=s},1743:function(t,e,r){var n=r(1700),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},1744:function(t,e,r){var n=r(1741),i=r(1760),a=n("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},1745:function(t,e){t.exports={}},1746:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1747:function(t,e,r){var n=r(1714).f,i=r(1709),a,s=r(1704)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,s)&&n(t,s,{configurable:!0,value:e})}},1748:function(t,e,r){var n=r(1701),i=r(1718),a=n(n.bind);t.exports=function(t,e){return i(t),void 0===e?t:a?a(t,e):function(){return t.apply(e,arguments)}}},1749:function(t,e,r){var n=r(1700),i=r(1798),a=r(1702),s=r(1716),o,u=r(1704)("toStringTag"),h=n.Object,c="Arguments"==s(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(t){}};t.exports=i?s:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=l(e=h(t),u))?r:c?s(e):"Object"==(n=s(e))&&a(e.callee)?"Arguments":n}},1750:function(t,e){var r=Function.prototype,n=r.apply,i=r.bind,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(n):function(){return a.apply(n,arguments)})},1751:function(t,e,r){"use strict";r(1813);var n=r(1701),i=r(1715),a=r(1737),s=r(1703),o=r(1704),u=r(1720),h=o("species"),c=RegExp.prototype;t.exports=function(t,e,r,l){var f=o(t),g=!s((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),p=g&&!s((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[h]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return e=!0,null},r[f](""),!e}));if(!g||!p||r){var d=n(/./[f]),v=e(f,""[t],(function(t,e,r,i,s){var o=n(t),u=e.exec;return u===a||u===c.exec?g&&!s?{done:!0,value:d(e,r,i)}:{done:!0,value:o(r,e,i)}:{done:!1}}));i(String.prototype,t,v[0]),i(c,f,v[1])}l&&u(c[f],"sham",!0)}},1752:function(t,e,r){"use strict";var n=r(1818).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},1753:function(t,e,r){var n=r(1700),i=r(1706),a=r(1705),s=r(1702),o=r(1716),u=r(1737),h=n.TypeError;t.exports=function(t,e){var r=t.exec;if(s(r)){var n=i(r,t,e);return null!==n&&a(n),n}if("RegExp"===o(t))return i(u,t,e);throw h("RegExp#exec called on incompatible receiver")}},1754:function(t,e,r){var n=r(1700),i=r(1775),a=n.TypeError;t.exports=function(t){if(i(t))throw a("The method doesn't accept regular expressions");return t}},1755:function(t,e,r){var n,i=r(1704)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[i]=!1,"/./"[t](e)}catch(t){}}return!1}},1756:function(t,e,r){var n=r(1700),i=r(1701),a=r(1703),s=r(1716),o=n.Object,u=i("".split);t.exports=a((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?u(t,""):o(t)}:o},1757:function(t,e,r){var n=r(1700),i=r(1713),a=r(1702),s=r(1726),o=r(1758),u=n.Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return a(e)&&s(e.prototype,u(t))}},1758:function(t,e,r){var n=r(1759);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1759:function(t,e,r){var n=r(1740),i=r(1703);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1760:function(t,e,r){var n=r(1701),i=0,a=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+a,36)}},1761:function(t,e,r){var n=r(1712),i=r(1703),a=r(1730);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},1762:function(t,e,r){var n=r(1701),i=r(1709),a=r(1723),s=r(1763).indexOf,o=r(1745),u=n([].push);t.exports=function(t,e){var r=a(t),n=0,h=[],c;for(c in r)!i(o,c)&&i(r,c)&&u(h,c);for(;e.length>n;)i(r,c=e[n++])&&(~s(h,c)||u(h,c));return h}},1763:function(t,e,r){var n=r(1723),i=r(1764),a=r(1735),s=function(t){return function(e,r,s){var o=n(e),u=a(o),h=i(s,u),c;if(t&&r!=r){for(;u>h;)if((c=o[h++])!=c)return!0}else for(;u>h;h++)if((t||h in o)&&o[h]===r)return t||h||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},1764:function(t,e,r){var n=r(1734),i=Math.max,a=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):a(r,e)}},1765:function(t,e,r){var n=r(1703),i=r(1702),a=/#|\.prototype\./,s=function(t,e){var r=u[o(t)];return r==c||r!=h&&(i(e)?n(e):!!e)},o=s.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=s.data={},h=s.NATIVE="N",c=s.POLYFILL="P";t.exports=s},1766:function(t,e,r){var n=r(1701),i=r(1705),a=r(1792);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},r;try{(r=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),t=e instanceof Array}catch(t){}return function e(n,s){return i(n),a(s),t?r(n,s):n.__proto__=s,n}}():void 0)},1767:function(t,e,r){var n=r(1749),i=r(1717),a=r(1724),s,o=r(1704)("iterator");t.exports=function(t){if(null!=t)return i(t,o)||i(t,"@@iterator")||a[n(t)]}},1768:function(t,e,r){var n=r(1705),i=r(1801),a,s=r(1704)("species");t.exports=function(t,e){var r=n(t).constructor,a;return void 0===r||null==(a=n(r)[s])?e:i(a)}},1769:function(t,e,r){var n=r(1700),i=r(1750),a=r(1748),s=r(1702),o=r(1709),u=r(1703),h=r(1770),c=r(1803),l=r(1730),f=r(1771),g=r(1736),p=n.setImmediate,d=n.clearImmediate,v=n.process,y=n.Dispatch,m=n.Function,x=n.MessageChannel,b=n.String,w=0,S={},T="onreadystatechange",A,O,P,E;try{A=n.location}catch(t){}var C=function(t){if(o(S,t)){var e=S[t];delete S[t],e()}},M=function(t){return function(){C(t)}},N=function(t){C(t.data)},_=function(t){n.postMessage(b(t),A.protocol+"//"+A.host)};p&&d||(p=function t(e){var r=c(arguments,1);return S[++w]=function(){i(s(e)?e:m(e),void 0,r)},O(w),w},d=function t(e){delete S[e]},g?O=function(t){v.nextTick(M(t))}:y&&y.now?O=function(t){y.now(M(t))}:x&&!f?(E=(P=new x).port2,P.port1.onmessage=N,O=a(E.postMessage,E)):n.addEventListener&&s(n.postMessage)&&!n.importScripts&&A&&"file:"!==A.protocol&&!u(_)?(O=_,n.addEventListener("message",N,!1)):O=T in l("script")?function(t){h.appendChild(l("script"))[T]=function(){h.removeChild(this),C(t)}}:function(t){setTimeout(M(t),0)}),t.exports={set:p,clear:d}},1770:function(t,e,r){var n=r(1713);t.exports=n("document","documentElement")},1771:function(t,e,r){var n=r(1727);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},1772:function(t,e,r){"use strict";var n=r(1718),i=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},1773:function(t,e,r){"use strict";var n=r(1705);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},1774:function(t,e,r){var n=r(1703),i,a=r(1700).RegExp,s=n((function(){var t=a("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),o=s||n((function(){return!a("a","y").sticky})),u=s||n((function(){var t=a("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:u,MISSED_STICKY:o,UNSUPPORTED_Y:s}},1775:function(t,e,r){var n=r(1711),i=r(1716),a,s=r(1704)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==i(t))}},1776:function(t,e,r){"use strict";var n=r(1723),i=r(1822),a=r(1724),s=r(1732),o=r(1823),u="Array Iterator",h=s.set,c=s.getterFor(u);t.exports=o(Array,"Array",(function(t,e){h(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},1777:function(t,e,r){"use strict";var n=r(1703),i=r(1702),a=r(1738),s=r(1778),o=r(1715),u=r(1704),h=r(1719),c=u("iterator"),l=!1,f,g,p,d;[].keys&&("next"in(p=[].keys())?(g=s(s(p)))!==Object.prototype&&(f=g):l=!0),null==f||n((function(){var t={};return f[c].call(t)!==t}))?f={}:h&&(f=a(f)),i(f[c])||o(f,c,(function(){return this})),t.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:l}},1778:function(t,e,r){var n=r(1700),i=r(1709),a=r(1702),s=r(1729),o=r(1744),u=r(1825),h=o("IE_PROTO"),c=n.Object,l=c.prototype;t.exports=u?c.getPrototypeOf:function(t){var e=s(t);if(i(e,h))return e[h];var r=e.constructor;return a(r)&&e instanceof r?r.prototype:e instanceof c?l:null}},1779:function(t,e,r){"use strict";var n=r(1703);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},1780:function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},1781:function(t,e,r){"use strict";var n=r(1707),i=r(1719),a=r(1700),s=r(1713),o=r(1706),u=r(1790),h=r(1715),c=r(1791),l=r(1766),f=r(1747),g=r(1793),p=r(1718),d=r(1702),v=r(1711),y=r(1794),m=r(1731),x=r(1795),b=r(1800),w=r(1768),S=r(1769).set,T=r(1804),A=r(1807),O=r(1808),P=r(1772),E=r(1809),C=r(1732),M=r(1765),N=r(1704),_=r(1810),V=r(1736),R=r(1740),k=N("species"),I="Promise",L=C.getterFor(I),D=C.set,B=C.getterFor(I),j=u&&u.prototype,z=u,F=j,U=a.TypeError,H=a.document,X=a.process,Y=P.f,W=Y,q=!!(H&&H.createEvent&&a.dispatchEvent),G=d(a.PromiseRejectionEvent),Q="unhandledrejection",$="rejectionhandled",Z=0,K=1,J=2,tt=1,et=2,rt=!1,nt,it,at,st,ot=M(I,(function(){var t=m(z),e=t!==String(z);if(!e&&66===R)return!0;if(i&&!F.finally)return!0;if(R>=51&&/native code/.test(t))return!1;var r=new z((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))},a;return(r.constructor={})[k]=n,!(rt=r.then((function(){}))instanceof n)||!e&&_&&!G})),ut=ot||!b((function(t){z.all(t).catch((function(){}))})),ht=function(t){var e;return!(!v(t)||!d(e=t.then))&&e},ct=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;T((function(){for(var n=t.value,i=1==t.state,a=0;r.length>a;){var s=r[a++],u=i?s.ok:s.fail,h=s.resolve,c=s.reject,l=s.domain,f,g,p;try{u?(i||(2===t.rejection&&pt(t),t.rejection=1),!0===u?f=n:(l&&l.enter(),f=u(n),l&&(l.exit(),p=!0)),f===s.promise?c(U("Promise-chain cycle")):(g=ht(f))?o(g,f,h,c):h(f)):c(n)}catch(t){l&&!p&&l.exit(),c(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ft(t)}))}},lt=function(t,e,r){var n,i;q?((n=H.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),a.dispatchEvent(n)):n={promise:e,reason:r},!G&&(i=a["on"+t])?i(n):t===Q&&O("Unhandled promise rejection",r)},ft=function(t){o(S,a,(function(){var e=t.facade,r=t.value,n,i;if(gt(t)&&(i=E((function(){V?X.emit("unhandledRejection",r,e):lt(Q,e,r)})),t.rejection=V||gt(t)?2:1,i.error))throw i.value}))},gt=function(t){return 1!==t.rejection&&!t.parent},pt=function(t){o(S,a,(function(){var e=t.facade;V?X.emit("rejectionHandled",e):lt($,e,t.value)}))},dt=function(t,e,r){return function(n){t(e,n,r)}},vt=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,ct(t,!0))},yt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw U("Promise can't be resolved itself");var n=ht(e);n?T((function(){var r={done:!1};try{o(n,e,dt(yt,r,t),dt(vt,r,t))}catch(e){vt(r,e,t)}})):(t.value=e,t.state=1,ct(t,!1))}catch(e){vt({done:!1},e,t)}}};if(ot&&(F=(z=function t(e){y(this,F),p(e),o(nt,this);var r=L(this);try{e(dt(yt,r),dt(vt,r))}catch(t){vt(r,t)}}).prototype,(nt=function t(e){D(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=c(F,{then:function t(e,r){var n=B(this),i=n.reactions,a=Y(w(this,z));return a.ok=!d(e)||e,a.fail=d(r)&&r,a.domain=V?X.domain:void 0,n.parent=!0,i[i.length]=a,0!=n.state&&ct(n,!1),a.promise},catch:function(t){return this.then(void 0,t)}}),it=function(){var t=new nt,e=L(t);this.promise=t,this.resolve=dt(yt,e),this.reject=dt(vt,e)},P.f=Y=function(t){return t===z||t===at?new it(t):W(t)},!i&&d(u)&&j!==Object.prototype)){st=j.then,rt||(h(j,"then",(function t(e,r){var n=this;return new z((function(t,e){o(st,n,t,e)})).then(e,r)}),{unsafe:!0}),h(j,"catch",F.catch,{unsafe:!0}));try{delete j.constructor}catch(t){}l&&l(j,F)}n({global:!0,wrap:!0,forced:ot},{Promise:z}),f(z,I,!1,!0),g(I),at=s(I),n({target:I,stat:!0,forced:ot},{reject:function t(e){var r=Y(this);return o(r.reject,void 0,e),r.promise}}),n({target:I,stat:!0,forced:i||ot},{resolve:function t(e){return A(i&&this===at?z:this,e)}}),n({target:I,stat:!0,forced:ut},{all:function t(e){var r=this,n=Y(r),i=n.resolve,a=n.reject,s=E((function(){var t=p(r.resolve),n=[],s=0,u=1;x(e,(function(e){var h=s++,c=!1;u++,o(t,r,e).then((function(t){c||(c=!0,n[h]=t,--u||i(n))}),a)})),--u||i(n)}));return s.error&&a(s.value),n.promise},race:function t(e){var r=this,n=Y(r),i=n.reject,a=E((function(){var t=p(r.resolve);x(e,(function(e){o(t,r,e).then(n.resolve,i)}))}));return a.error&&i(a.value),n.promise}})},1782:function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!n.call({1:2},1);e.f=a?function t(e){var r=i(this,e);return!!r&&r.enumerable}:n},1783:function(t,e,r){var n=r(1700),i=r(1706),a=r(1711),s=r(1757),o=r(1717),u=r(1784),h=r(1704),c=n.TypeError,l=h("toPrimitive");t.exports=function(t,e){if(!a(t)||s(t))return t;var r=o(t,l),n;if(r){if(void 0===e&&(e="default"),n=i(r,t,e),!a(n)||s(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},1784:function(t,e,r){var n=r(1700),i=r(1706),a=r(1702),s=r(1711),o=n.TypeError;t.exports=function(t,e){var r,n;if("string"===e&&a(r=t.toString)&&!s(n=i(r,t)))return n;if(a(r=t.valueOf)&&!s(n=i(r,t)))return n;if("string"!==e&&a(r=t.toString)&&!s(n=i(r,t)))return n;throw o("Can't convert object to primitive value")}},1785:function(t,e,r){var n=r(1700),i=r(1702),a=r(1731),s=n.WeakMap;t.exports=i(s)&&/native code/.test(a(s))},1786:function(t,e,r){var n=r(1709),i=r(1787),a=r(1722),s=r(1714);t.exports=function(t,e){for(var r=i(e),o=s.f,u=a.f,h=0;h<r.length;h++){var c=r[h];n(t,c)||o(t,c,u(e,c))}}},1787:function(t,e,r){var n=r(1713),i=r(1701),a=r(1788),s=r(1789),o=r(1705),u=i([].concat);t.exports=n("Reflect","ownKeys")||function t(e){var r=a.f(o(e)),n=s.f;return n?u(r,n(e)):r}},1788:function(t,e,r){var n=r(1762),i,a=r(1746).concat("length","prototype");e.f=Object.getOwnPropertyNames||function t(e){return n(e,a)}},1789:function(t,e){e.f=Object.getOwnPropertySymbols},1790:function(t,e,r){var n=r(1700);t.exports=n.Promise},1791:function(t,e,r){var n=r(1715);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},1792:function(t,e,r){var n=r(1700),i=r(1702),a=n.String,s=n.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw s("Can't set "+a(t)+" as a prototype")}},1793:function(t,e,r){"use strict";var n=r(1713),i=r(1714),a=r(1704),s=r(1712),o=a("species");t.exports=function(t){var e=n(t),r=i.f;s&&e&&!e[o]&&r(e,o,{configurable:!0,get:function(){return this}})}},1794:function(t,e,r){var n=r(1700),i=r(1726),a=n.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw a("Incorrect invocation")}},1795:function(t,e,r){var n=r(1700),i=r(1748),a=r(1706),s=r(1705),o=r(1728),u=r(1796),h=r(1735),c=r(1726),l=r(1797),f=r(1767),g=r(1799),p=n.TypeError,d=function(t,e){this.stopped=t,this.result=e},v=d.prototype;t.exports=function(t,e,r){var n=r&&r.that,y=!(!r||!r.AS_ENTRIES),m=!(!r||!r.IS_ITERATOR),x=!(!r||!r.INTERRUPTED),b=i(e,n),w,S,T,A,O,P,E,C=function(t){return w&&g(w,"normal",t),new d(!0,t)},M=function(t){return y?(s(t),x?b(t[0],t[1],C):b(t[0],t[1])):x?b(t,C):b(t)};if(m)w=t;else{if(!(S=f(t)))throw p(o(t)+" is not iterable");if(u(S)){for(T=0,A=h(t);A>T;T++)if((O=M(t[T]))&&c(v,O))return O;return new d(!1)}w=l(t,S)}for(P=w.next;!(E=a(P,w)).done;){try{O=M(E.value)}catch(t){g(w,"throw",t)}if("object"==typeof O&&O&&c(v,O))return O}return new d(!1)}},1796:function(t,e,r){var n=r(1704),i=r(1724),a=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[a]===t)}},1797:function(t,e,r){var n=r(1700),i=r(1706),a=r(1718),s=r(1705),o=r(1728),u=r(1767),h=n.TypeError;t.exports=function(t,e){var r=arguments.length<2?u(t):e;if(a(r))return s(i(r,t));throw h(o(t)+" is not iterable")}},1798:function(t,e,r){var n,i,a={};a[r(1704)("toStringTag")]="z",t.exports="[object z]"===String(a)},1799:function(t,e,r){var n=r(1706),i=r(1705),a=r(1717);t.exports=function(t,e,r){var s,o;i(t);try{if(!(s=a(t,"return"))){if("throw"===e)throw r;return r}s=n(s,t)}catch(t){o=!0,s=t}if("throw"===e)throw r;if(o)throw s;return i(s),r}},1800:function(t,e,r){var n,i=r(1704)("iterator"),a=!1;try{var s=0,o={next:function(){return{done:!!s++}},return:function(){a=!0}};o[i]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!a)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}},1801:function(t,e,r){var n=r(1700),i=r(1802),a=r(1728),s=n.TypeError;t.exports=function(t){if(i(t))return t;throw s(a(t)+" is not a constructor")}},1802:function(t,e,r){var n=r(1701),i=r(1703),a=r(1702),s=r(1749),o=r(1713),u=r(1731),h=function(){},c=[],l=o("Reflect","construct"),f=/^\s*(?:class|function)\b/,g=n(f.exec),p=!f.exec(h),d=function(t){if(!a(t))return!1;try{return l(h,c,t),!0}catch(t){return!1}},v=function(t){if(!a(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return p||!!g(f,u(t))};t.exports=!l||i((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?v:d},1803:function(t,e,r){var n=r(1701);t.exports=n([].slice)},1804:function(t,e,r){var n=r(1700),i=r(1748),a=r(1722).f,s=r(1769).set,o=r(1771),u=r(1805),h=r(1806),c=r(1736),l=n.MutationObserver||n.WebKitMutationObserver,f=n.document,g=n.process,p=n.Promise,d=a(n,"queueMicrotask"),v=d&&d.value,y,m,x,b,w,S,T,A;v||(y=function(){var t,e;for(c&&(t=g.domain)&&t.exit();m;){e=m.fn,m=m.next;try{e()}catch(t){throw m?b():x=void 0,t}}x=void 0,t&&t.enter()},o||c||h||!l||!f?!u&&p&&p.resolve?((T=p.resolve(void 0)).constructor=p,A=i(T.then,T),b=function(){A(y)}):c?b=function(){g.nextTick(y)}:(s=i(s,n),b=function(){s(y)}):(w=!0,S=f.createTextNode(""),new l(y).observe(S,{characterData:!0}),b=function(){S.data=w=!w})),t.exports=v||function(t){var e={fn:t,next:void 0};x&&(x.next=e),m||(m=e,b()),x=e}},1805:function(t,e,r){var n=r(1727),i=r(1700);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==i.Pebble},1806:function(t,e,r){var n=r(1727);t.exports=/web0s(?!.*chrome)/i.test(n)},1807:function(t,e,r){var n=r(1705),i=r(1711),a=r(1772);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=a.f(t),s;return(0,r.resolve)(e),r.promise}},1808:function(t,e,r){var n=r(1700);t.exports=function(t,e){var r=n.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}},1809:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},1810:function(t,e){t.exports="object"==typeof window},1811:function(t,e){function r(t,e,r,n,i,a,s){try{var o=t[a](s),u=o.value}catch(t){return void r(t)}o.done?e(u):Promise.resolve(u).then(n,i)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var s=t.apply(e,n);function o(t){r(s,i,a,o,u,"next",t)}function u(t){r(s,i,a,o,u,"throw",t)}o(void 0)}))}}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},1812:function(t,e,r){"use strict";var n=r(1706),i=r(1751),a=r(1705),s=r(1721),o=r(1710),u=r(1708),h=r(1717),c=r(1752),l=r(1753);i("match",(function(t,e,r){return[function e(r){var i=u(this),a=null==r?void 0:h(r,t);return a?n(a,r,i):new RegExp(r)[t](o(i))},function(t){var n=a(this),i=o(t),u=r(e,n,i);if(u.done)return u.value;if(!n.global)return l(n,i);var h=n.unicode;n.lastIndex=0;for(var f=[],g=0,p;null!==(p=l(n,i));){var d=o(p[0]);f[g]=d,""===d&&(n.lastIndex=c(i,s(n.lastIndex),h)),g++}return 0===g?null:f}]}))},1813:function(t,e,r){"use strict";var n=r(1707),i=r(1737);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},1814:function(t,e,r){var n=r(1712),i=r(1714),a=r(1705),s=r(1723),o=r(1815);t.exports=n?Object.defineProperties:function t(e,r){a(e);for(var n=s(r),u=o(r),h=u.length,c=0,l;h>c;)i.f(e,l=u[c++],n[l]);return e}},1815:function(t,e,r){var n=r(1762),i=r(1746);t.exports=Object.keys||function t(e){return n(e,i)}},1816:function(t,e,r){var n=r(1703),i,a=r(1700).RegExp;t.exports=n((function(){var t=a(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},1817:function(t,e,r){var n=r(1703),i,a=r(1700).RegExp;t.exports=n((function(){var t=a("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},1818:function(t,e,r){var n=r(1701),i=r(1734),a=r(1710),s=r(1708),o=n("".charAt),u=n("".charCodeAt),h=n("".slice),c=function(t){return function(e,r){var n=a(s(e)),c=i(r),l=n.length,f,g;return c<0||c>=l?t?"":void 0:(f=u(n,c))<55296||f>56319||c+1===l||(g=u(n,c+1))<56320||g>57343?t?o(n,c):f:t?h(n,c,c+2):g-56320+(f-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},1819:function(t,e,r){"use strict";var n=r(1750),i=r(1706),a=r(1701),s=r(1751),o=r(1703),u=r(1705),h=r(1702),c=r(1734),l=r(1721),f=r(1710),g=r(1708),p=r(1752),d=r(1717),v=r(1820),y=r(1753),m,x=r(1704)("replace"),b=Math.max,w=Math.min,S=a([].concat),T=a([].push),A=a("".indexOf),O=a("".slice),P=function(t){return void 0===t?t:String(t)},E="$0"==="a".replace(/./,"$0"),C=!!/./[x]&&""===/./[x]("a","$0"),M;s("replace",(function(t,e,r){var a=C?"$":"$0";return[function t(r,n){var a=g(this),s=null==r?void 0:d(r,x);return s?i(s,r,a,n):i(e,f(a),r,n)},function(t,i){var s=u(this),o=f(t);if("string"==typeof i&&-1===A(i,a)&&-1===A(i,"$<")){var g=r(e,s,o,i);if(g.done)return g.value}var d=h(i);d||(i=f(i));var m=s.global;if(m){var x=s.unicode;s.lastIndex=0}for(var E=[];;){var C=y(s,o),M;if(null===C)break;if(T(E,C),!m)break;""===f(C[0])&&(s.lastIndex=p(o,l(s.lastIndex),x))}for(var N="",_=0,V=0;V<E.length;V++){for(var R=f((C=E[V])[0]),k=b(w(c(C.index),o.length),0),I=[],L=1;L<C.length;L++)T(I,P(C[L]));var D=C.groups;if(d){var B=S([R],I,k,o);void 0!==D&&T(B,D);var j=f(n(i,void 0,B))}else j=v(R,o,k,I,D,i);k>=_&&(N+=O(o,_,k)+j,_=k+R.length)}return N+O(o,_)}]}),!!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||C)},1820:function(t,e,r){var n=r(1701),i=r(1729),a=Math.floor,s=n("".charAt),o=n("".replace),u=n("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,l,f){var g=r+t.length,p=n.length,d=c;return void 0!==l&&(l=i(l),d=h),o(f,d,(function(i,o){var h;switch(s(o,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,g);case"<":h=l[u(o,1,-1)];break;default:var c=+o;if(0===c)return i;if(c>p){var f=a(c/10);return 0===f?i:f<=p?void 0===n[f-1]?s(o,1):n[f-1]+s(o,1):i}h=n[c-1]}return void 0===h?"":h}))}},1821:function(t,e,r){"use strict";var n=r(1707),i=r(1701),a=r(1722).f,s=r(1721),o=r(1710),u=r(1754),h=r(1708),c=r(1755),l=r(1719),f=i("".startsWith),g=i("".slice),p=Math.min,d=c("startsWith"),v,y;n({target:"String",proto:!0,forced:!!(l||d||(y=a(String.prototype,"startsWith"),!y||y.writable))&&!d},{startsWith:function t(e){var r=o(h(this));u(e);var n=s(p(arguments.length>1?arguments[1]:void 0,r.length)),i=o(e);return f?f(r,i,n):g(r,n,n+i.length)===i}})},1822:function(t,e,r){var n=r(1704),i=r(1738),a=r(1714),s=n("unscopables"),o=Array.prototype;null==o[s]&&a.f(o,s,{configurable:!0,value:i(null)}),t.exports=function(t){o[s][t]=!0}},1823:function(t,e,r){"use strict";var n=r(1707),i=r(1706),a=r(1719),s=r(1733),o=r(1702),u=r(1824),h=r(1778),c=r(1766),l=r(1747),f=r(1720),g=r(1715),p=r(1704),d=r(1724),v=r(1777),y=s.PROPER,m=s.CONFIGURABLE,x=v.IteratorPrototype,b=v.BUGGY_SAFARI_ITERATORS,w=p("iterator"),S="keys",T="values",A="entries",O=function(){return this};t.exports=function(t,e,r,s,p,v,P){u(r,e,s);var E=function(t){if(t===p&&V)return V;if(!b&&t in N)return N[t];switch(t){case S:return function e(){return new r(this,t)};case T:return function e(){return new r(this,t)};case A:return function e(){return new r(this,t)}}return function(){return new r(this)}},C=e+" Iterator",M=!1,N=t.prototype,_=N[w]||N["@@iterator"]||p&&N[p],V=!b&&_||E(p),R="Array"==e&&N.entries||_,k,I,L;if(R&&(k=h(R.call(new t)))!==Object.prototype&&k.next&&(a||h(k)===x||(c?c(k,x):o(k[w])||g(k,w,O)),l(k,C,!0,!0),a&&(d[C]=O)),y&&p==T&&_&&_.name!==T&&(!a&&m?f(N,"name",T):(M=!0,V=function t(){return i(_,this)})),p)if(I={values:E(T),keys:v?V:E(S),entries:E(A)},P)for(L in I)(b||M||!(L in N))&&g(N,L,I[L]);else n({target:e,proto:!0,forced:b||M},I);return a&&!P||N[w]===V||g(N,w,V,{name:p}),d[e]=V,I}},1824:function(t,e,r){"use strict";var n=r(1777).IteratorPrototype,i=r(1738),a=r(1725),s=r(1747),o=r(1724),u=function(){return this};t.exports=function(t,e,r,h){var c=e+" Iterator";return t.prototype=i(n,{next:a(+!h,r)}),s(t,c,!1,!0),o[c]=u,t}},1825:function(t,e,r){var n=r(1703);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},1826:function(t,e,r){var n=r(1700),i=r(1827),a=r(1828),s=r(1776),o=r(1720),u=r(1704),h=u("iterator"),c=u("toStringTag"),l=s.values,f=function(t,e){if(t){if(t[h]!==l)try{o(t,h,l)}catch(e){t[h]=l}if(t[c]||o(t,c,e),i[e])for(var r in s)if(t[r]!==s[r])try{o(t,r,s[r])}catch(e){t[r]=s[r]}}};for(var g in i)f(n[g]&&n[g].prototype,g);f(a,"DOMTokenList")},1827:function(t,e){t.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}},1828:function(t,e,r){var n,i=r(1730)("span").classList,a=i&&i.constructor&&i.constructor.prototype;t.exports=a===Object.prototype?void 0:a},1829:function(t,e){function r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},1830:function(t,e,r){"use strict";var n=r(1707),i=r(1831).left,a=r(1779),s=r(1740),o=r(1736),u,h;n({target:"Array",proto:!0,forced:!a("reduce")||!o&&s>79&&s<83},{reduce:function t(e){var r=arguments.length;return i(this,e,r,r>1?arguments[1]:void 0)}})},1831:function(t,e,r){var n=r(1700),i=r(1718),a=r(1729),s=r(1756),o=r(1735),u=n.TypeError,h=function(t){return function(e,r,n,h){i(r);var c=a(e),l=s(c),f=o(c),g=t?f-1:0,p=t?-1:1;if(n<2)for(;;){if(g in l){h=l[g],g+=p;break}if(g+=p,t?g<0:f<=g)throw u("Reduce of empty array with no initial value")}for(;t?g>=0:f>g;g+=p)g in l&&(h=r(h,l[g],g,c));return h}};t.exports={left:h(!1),right:h(!0)}},1832:function(t,e,r){"use strict";var n=r(1707),i=r(1701),a=r(1722).f,s=r(1721),o=r(1710),u=r(1754),h=r(1708),c=r(1755),l=r(1719),f=i("".endsWith),g=i("".slice),p=Math.min,d=c("endsWith"),v,y;n({target:"String",proto:!0,forced:!!(l||d||(y=a(String.prototype,"endsWith"),!y||y.writable))&&!d},{endsWith:function t(e){var r=o(h(this));u(e);var n=arguments.length>1?arguments[1]:void 0,i=r.length,a=void 0===n?i:p(s(n),i),c=o(e);return f?f(r,c,a):g(r,a-c.length,a)===c}})},1833:function(t,e,r){"use strict";var n=r(1750),i=r(1706),a=r(1701),s=r(1751),o=r(1775),u=r(1705),h=r(1708),c=r(1768),l=r(1752),f=r(1721),g=r(1710),p=r(1717),d=r(1834),v=r(1753),y=r(1737),m=r(1774),x=r(1703),b=m.UNSUPPORTED_Y,w=4294967295,S=Math.min,T=[].push,A=a(/./.exec),O=a(T),P=a("".slice),E;s("split",(function(t,e,r){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var a=g(h(this)),s=void 0===r?4294967295:r>>>0;if(0===s)return[];if(void 0===t)return[a];if(!o(t))return i(e,a,t,s);for(var u=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,f=new RegExp(t.source,c+"g"),p,v,m;(p=i(y,f,a))&&!((v=f.lastIndex)>l&&(O(u,P(a,l,p.index)),p.length>1&&p.index<a.length&&n(T,u,d(p,1)),m=p[0].length,l=v,u.length>=s));)f.lastIndex===p.index&&f.lastIndex++;return l===a.length?!m&&A(f,"")||O(u,""):O(u,P(a,l)),u.length>s?d(u,0,s):u}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:i(e,this,t,r)}:e,[function e(r,n){var s=h(this),o=null==r?void 0:p(r,t);return o?i(o,r,s,n):i(a,g(s),r,n)},function(t,n){var i=u(this),s=g(t),o=r(a,i,s,n,a!==e);if(o.done)return o.value;var h=c(i,RegExp),p=i.unicode,d=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(b?"g":"y"),y=new h(b?"^(?:"+i.source+")":i,d),m=void 0===n?4294967295:n>>>0;if(0===m)return[];if(0===s.length)return null===v(y,s)?[s]:[];for(var x=0,w=0,T=[];w<s.length;){y.lastIndex=b?0:w;var A=v(y,b?P(s,w):s),E;if(null===A||(E=S(f(y.lastIndex+(b?w:0)),s.length))===x)w=l(s,w,p);else{if(O(T,P(s,x,w)),T.length===m)return T;for(var C=1;C<=A.length-1;C++)if(O(T,A[C]),T.length===m)return T;w=x=E}}return O(T,P(s,x)),T}]}),!!x((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),b)},1834:function(t,e,r){var n=r(1700),i=r(1764),a=r(1735),s=r(1835),o=n.Array,u=Math.max;t.exports=function(t,e,r){for(var n=a(t),h=i(e,n),c=i(void 0===r?n:r,n),l=o(u(c-h,0)),f=0;h<c;h++,f++)s(l,f,t[h]);return l.length=f,l}},1835:function(t,e,r){"use strict";var n=r(1739),i=r(1714),a=r(1725);t.exports=function(t,e,r){var s=n(e);s in t?i.f(t,s,a(0,r)):t[s]=r}},1836:function(t,e,r){(function(e){for(var n=r(1837),i="undefined"==typeof window?e:window,a=["moz","webkit"],s="AnimationFrame",o=i["request"+s],u=i["cancel"+s]||i["cancelRequest"+s],h=0;!o&&h<a.length;h++)o=i[a[h]+"Request"+s],u=i[a[h]+"Cancel"+s]||i[a[h]+"CancelRequest"+s];if(!o||!u){var c=0,l=0,f=[],g=1e3/60;o=function(t){if(0===f.length){var e=n(),r=Math.max(0,1e3/60-(e-c));c=r+e,setTimeout((function(){var t=f.slice(0);f.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(c)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return f.push({handle:++l,callback:t,cancelled:!1}),l},u=function(t){for(var e=0;e<f.length;e++)f[e].handle===t&&(f[e].cancelled=!0)}}t.exports=function(t){return o.call(i,t)},t.exports.cancel=function(){u.apply(i,arguments)},t.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=o,t.cancelAnimationFrame=u}}).call(this,r(92))},1837:function(t,e,r){(function(e){(function(){var r,n,i,a,s,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=e&&e.hrtime?(t.exports=function(){return(r()-s)/1e6},n=e.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),o=1e9*e.uptime(),s=a-o):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this,r(241))},1838:function(t,e,r){"use strict";var n=r(1707),i=r(1839).trim,a;n({target:"String",proto:!0,forced:r(1840)("trim")},{trim:function t(){return i(this)}})},1839:function(t,e,r){var n=r(1701),i=r(1708),a=r(1710),s=r(1780),o=n("".replace),u="["+s+"]",h=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),l=function(t){return function(e){var r=a(i(e));return 1&t&&(r=o(r,h,"")),2&t&&(r=o(r,c,"")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},1840:function(t,e,r){var n=r(1733).PROPER,i=r(1703),a=r(1780),s="\u200b\x85\u180e";t.exports=function(t){return i((function(){return!!a[t]()||s[t]()!==s||n&&a[t].name!==t}))}},1841:function(t,e){t.exports=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,s=i.exec(t);if(s){var o=a(s);this.r=o[0],this.g=o[1],this.b=o[2],o.length>3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,n=0;n<r.length;n++)for(var i=r[n].example,a=0;a<i.length;a++)t[t.length]=i[a];for(var s in e)t[t.length]=s;var o=document.createElement("ul");o.setAttribute("id","rgbcolor-examples");for(var n=0;n<t.length;n++)try{var u=document.createElement("li"),h=new RGBColor(t[n]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+h.toHex()+"; color:"+h.toHex(),c.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+t[n]+" -> "+h.toRGB()+" -> "+h.toHex());u.appendChild(c),u.appendChild(l),o.appendChild(u)}catch(t){}return o}}},1842:function(t,e,r){"use strict";var n=r(1707),i=r(1701),a=r(1754),s=r(1708),o=r(1710),u=r(1755),h=i("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function t(e){return!!~h(o(s(this)),o(a(e)),arguments.length>1?arguments[1]:void 0)}})},1843:function(t,e,r){"use strict";var n=r(1707),i=r(1701),a=r(1763).indexOf,s=r(1779),o=i([].indexOf),u=!!o&&1/o([1],1,-0)<0,h=s("indexOf");n({target:"Array",proto:!0,forced:u||!h},{indexOf:function t(e){var r=arguments.length>1?arguments[1]:void 0;return u?o(this,e,r)||0:a(this,e,r)}})},1844:function(t,e,r){"use strict";var n=r(1707),i=r(1701),a=r(1845),s=i([].reverse),o=[1,2];n({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function t(){return a(this)&&(this.length=this.length),s(this)}})},1845:function(t,e,r){var n=r(1716);t.exports=Array.isArray||function t(e){return"Array"==n(e)}},1846:function(t,e,r){"use strict";r.d(e,"a",(function(){return S}));
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -13,4 +13,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
15
  ***************************************************************************** */
16
- var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function a(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var n=t[r];if(n.type===S.CLOSE_PATH)e+="z";else if(n.type===S.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===S.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===S.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===S.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===S.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===S.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===S.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===S.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==S.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e}function s(t,e){var r=t[0],n=t[1];return[r*Math.cos(e)-n*Math.sin(e),r*Math.sin(e)+n*Math.cos(e)]}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var u=Math.PI;function h(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var n=t.rX,i=t.rY,a=t.x,o=t.y;n=Math.abs(t.rX),i=Math.abs(t.rY);var h=s([(e-a)/2,(r-o)/2],-t.xRot/180*u),c=h[0],l=h[1],f=Math.pow(c,2)/Math.pow(n,2)+Math.pow(l,2)/Math.pow(i,2);1<f&&(n*=Math.sqrt(f),i*=Math.sqrt(f)),t.rX=n,t.rY=i;var g=Math.pow(n,2)*Math.pow(l,2)+Math.pow(i,2)*Math.pow(c,2),p=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-g)/g)),d=n*l/i*p,v=-i*c/n*p,y=s([d,v],t.xRot/180*u);t.cX=y[0]+(e+a)/2,t.cY=y[1]+(r+o)/2,t.phi1=Math.atan2((l-v)/i,(c-d)/n),t.phi2=Math.atan2((-l-v)/i,(-c-d)/n),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*u),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*u),t.phi1*=180/u,t.phi2*=180/u}function c(t,e,r){o(t,e,r);var n=t*t+e*e-r*r;if(0>n)return[];if(0===n)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var i=Math.sqrt(n);return[[(t*r+e*i)/(t*t+e*e),(e*r-t*i)/(t*t+e*e)],[(t*r-e*i)/(t*t+e*e),(e*r+t*i)/(t*t+e*e)]]}var l,f=Math.PI/180;function g(t,e,r){return(1-r)*t+r*e}function p(t,e,r,n){return t+Math.cos(n/180*u)*e+Math.sin(n/180*u)*r}function d(t,e,r,n){var i=1e-6,a=e-t,s=r-e,o=3*a+3*(n-r)-6*s,u=6*(s-a),h=3*a;return Math.abs(o)<i?[-h/u]:function(t,e,r){void 0===r&&(r=1e-6);var n=t*t/4-e;if(n<-r)return[];if(n<=r)return[-t/2];var i=Math.sqrt(n);return[-t/2-i,-t/2+i]}(u/o,h/o,i)}function v(t,e,r,n,i){var a=1-i;return t*(a*a*a)+e*(3*a*a*i)+r*(3*a*i*i)+n*(i*i*i)}!function(t){function e(){return i((function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t}))}function r(){var t=NaN,e=NaN,r=NaN,n=NaN;return i((function(i,a,s){return i.type&S.SMOOTH_CURVE_TO&&(i.type=S.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?s:e,i.x1=i.relative?a-t:2*a-t,i.y1=i.relative?s-e:2*s-e),i.type&S.CURVE_TO?(t=i.relative?a+i.x2:i.x2,e=i.relative?s+i.y2:i.y2):(t=NaN,e=NaN),i.type&S.SMOOTH_QUAD_TO&&(i.type=S.QUAD_TO,r=isNaN(r)?a:r,n=isNaN(n)?s:n,i.x1=i.relative?a-r:2*a-r,i.y1=i.relative?s-n:2*s-n),i.type&S.QUAD_TO?(r=i.relative?a+i.x1:i.x1,n=i.relative?s+i.y1:i.y1):(r=NaN,n=NaN),i}))}function n(){var t=NaN,e=NaN;return i((function(r,n,i){if(r.type&S.SMOOTH_QUAD_TO&&(r.type=S.QUAD_TO,t=isNaN(t)?n:t,e=isNaN(e)?i:e,r.x1=r.relative?n-t:2*n-t,r.y1=r.relative?i-e:2*i-e),r.type&S.QUAD_TO){t=r.relative?n+r.x1:r.x1,e=r.relative?i+r.y1:r.y1;var a=r.x1,s=r.y1;r.type=S.CURVE_TO,r.x1=((r.relative?0:n)+2*a)/3,r.y1=((r.relative?0:i)+2*s)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*s)/3}else t=NaN,e=NaN;return r}))}function i(t){var e=0,r=0,n=NaN,i=NaN;return function(a){if(isNaN(n)&&!(a.type&S.MOVE_TO))throw new Error("path must start with moveto");var s=t(a,e,r,n,i);return a.type&S.CLOSE_PATH&&(e=n,r=i),void 0!==a.x&&(e=a.relative?e+a.x:a.x),void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&S.MOVE_TO&&(n=e,i=r),s}}function a(t,e,r,n,a,s){return o(t,e,r,n,a,s),i((function(i,o,u,h){var c=i.x1,l=i.x2,f=i.relative&&!isNaN(h),g=void 0!==i.x?i.x:f?0:o,p=void 0!==i.y?i.y:f?0:u;function d(t){return t*t}i.type&S.HORIZ_LINE_TO&&0!==e&&(i.type=S.LINE_TO,i.y=i.relative?0:u),i.type&S.VERT_LINE_TO&&0!==r&&(i.type=S.LINE_TO,i.x=i.relative?0:o),void 0!==i.x&&(i.x=i.x*t+p*r+(f?0:a)),void 0!==i.y&&(i.y=g*e+i.y*n+(f?0:s)),void 0!==i.x1&&(i.x1=i.x1*t+i.y1*r+(f?0:a)),void 0!==i.y1&&(i.y1=c*e+i.y1*n+(f?0:s)),void 0!==i.x2&&(i.x2=i.x2*t+i.y2*r+(f?0:a)),void 0!==i.y2&&(i.y2=l*e+i.y2*n+(f?0:s));var v=t*n-e*r;if(void 0!==i.xRot&&(1!==t||0!==e||0!==r||1!==n))if(0===v)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=S.LINE_TO;else{var y=i.xRot*Math.PI/180,m=Math.sin(y),x=Math.cos(y),b=1/d(i.rX),w=1/d(i.rY),T=d(x)*b+d(m)*w,A=2*m*x*(b-w),O=d(m)*b+d(x)*w,P=T*n*n-A*e*n+O*e*e,E=A*(t*n+e*r)-2*(T*r*n+O*t*e),C=T*r*r-A*t*r+O*t*t,M=(Math.atan2(E,P-C)+Math.PI)%Math.PI/2,N=Math.sin(M),_=Math.cos(M);i.rX=Math.abs(v)/Math.sqrt(P*d(_)+E*N*_+C*d(N)),i.rY=Math.abs(v)/Math.sqrt(P*d(N)-E*N*_+C*d(_)),i.xRot=180*M/Math.PI}return void 0!==i.sweepFlag&&0>v&&(i.sweepFlag=+!i.sweepFlag),i}))}function u(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),o(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return i((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),i((function(n,i,a,s,o){if(isNaN(s)&&!(n.type&S.MOVE_TO))throw new Error("path must start with moveto");return e&&n.type&S.HORIZ_LINE_TO&&(n.type=S.LINE_TO,n.y=n.relative?0:a),r&&n.type&S.VERT_LINE_TO&&(n.type=S.LINE_TO,n.x=n.relative?0:i),t&&n.type&S.CLOSE_PATH&&(n.type=S.LINE_TO,n.x=n.relative?s-i:s,n.y=n.relative?o-a:o),n.type&S.ARC&&(0===n.rX||0===n.rY)&&(n.type=S.LINE_TO,delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag),n}))},t.NORMALIZE_ST=r,t.QT_TO_C=n,t.INFO=i,t.SANITIZE=function(t){void 0===t&&(t=0),o(t);var e=NaN,r=NaN,n=NaN,a=NaN;return i((function(i,s,o,u,h){var c=Math.abs,l=!1,f=0,g=0;if(i.type&S.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:s-e,g=isNaN(r)?0:o-r),i.type&(S.CURVE_TO|S.SMOOTH_CURVE_TO)?(e=i.relative?s+i.x2:i.x2,r=i.relative?o+i.y2:i.y2):(e=NaN,r=NaN),i.type&S.SMOOTH_QUAD_TO?(n=isNaN(n)?s:2*s-n,a=isNaN(a)?o:2*o-a):i.type&S.QUAD_TO?(n=i.relative?s+i.x1:i.x1,a=i.relative?o+i.y1:i.y2):(n=NaN,a=NaN),i.type&S.LINE_COMMANDS||i.type&S.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&S.CURVE_TO||i.type&S.SMOOTH_CURVE_TO||i.type&S.QUAD_TO||i.type&S.SMOOTH_QUAD_TO){var p=void 0===i.x?0:i.relative?i.x:i.x-s,d=void 0===i.y?0:i.relative?i.y:i.y-o;f=isNaN(n)?void 0===i.x1?f:i.relative?i.x:i.x1-s:n-s,g=isNaN(a)?void 0===i.y1?g:i.relative?i.y:i.y1-o:a-o;var v=void 0===i.x2?0:i.relative?i.x:i.x2-s,y=void 0===i.y2?0:i.relative?i.y:i.y2-o;c(p)<=t&&c(d)<=t&&c(f)<=t&&c(g)<=t&&c(v)<=t&&c(y)<=t&&(l=!0)}return i.type&S.CLOSE_PATH&&c(s-u)<=t&&c(o-h)<=t&&(l=!0),l?[]:i}))},t.MATRIX=a,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),o(t,e,r);var n=Math.sin(t),i=Math.cos(t);return a(i,n,-n,i,e-e*i+r*n,r-e*n-r*i)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),o(t,e),a(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),o(t,e),a(t,0,0,e,0,0)},t.SKEW_X=function(t){return o(t),a(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return o(t),a(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),o(t),a(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),o(t),a(1,0,0,-1,0,t)},t.A_TO_C=function(){return i((function(t,e,r){return S.ARC===t.type?function(t,e,r){var n,i,a,o;t.cX||h(t,e,r);for(var u=Math.min(t.phi1,t.phi2),c=Math.max(t.phi1,t.phi2)-u,l=Math.ceil(c/90),p=new Array(l),d=e,v=r,y=0;y<l;y++){var m=g(t.phi1,t.phi2,y/l),x=g(t.phi1,t.phi2,(y+1)/l),b=x-m,w=4/3*Math.tan(b*f/4),T=[Math.cos(m*f)-w*Math.sin(m*f),Math.sin(m*f)+w*Math.cos(m*f)],A=T[0],O=T[1],P=[Math.cos(x*f),Math.sin(x*f)],E=P[0],C=P[1],M=[E+w*Math.sin(x*f),C-w*Math.cos(x*f)],N=M[0],_=M[1];p[y]={relative:t.relative,type:S.CURVE_TO};var V=function(e,r){var n=s([e*t.rX,r*t.rY],t.xRot),i=n[0],a=n[1];return[t.cX+i,t.cY+a]};n=V(A,O),p[y].x1=n[0],p[y].y1=n[1],i=V(N,_),p[y].x2=i[0],p[y].y2=i[1],a=V(E,C),p[y].x=a[0],p[y].y=a[1],t.relative&&(p[y].x1-=d,p[y].y1-=v,p[y].x2-=d,p[y].y2-=v,p[y].x-=d,p[y].y-=v),d=(o=[p[y].x,p[y].y])[0],v=o[1]}return p}(t,t.relative?0:e,t.relative?0:r):t}))},t.ANNOTATE_ARCS=function(){return i((function(t,e,r){return t.relative&&(e=0,r=0),S.ARC===t.type&&h(t,e,r),t}))},t.CLONE=u,t.CALCULATE_BOUNDS=function(){var t=function(t){var e={};for(var r in t)e[r]=t[r];return e},a=e(),s=n(),o=r(),u=i((function(e,r,n){var i=o(s(a(t(e))));function l(t){t>u.maxX&&(u.maxX=t),t<u.minX&&(u.minX=t)}function f(t){t>u.maxY&&(u.maxY=t),t<u.minY&&(u.minY=t)}if(i.type&S.DRAWING_COMMANDS&&(l(r),f(n)),i.type&S.HORIZ_LINE_TO&&l(i.x),i.type&S.VERT_LINE_TO&&f(i.y),i.type&S.LINE_TO&&(l(i.x),f(i.y)),i.type&S.CURVE_TO){l(i.x),f(i.y);for(var g=0,y=d(r,i.x1,i.x2,i.x);g<y.length;g++)0<(k=y[g])&&1>k&&l(v(r,i.x1,i.x2,i.x,k));for(var m=0,x=d(n,i.y1,i.y2,i.y);m<x.length;m++)0<(k=x[m])&&1>k&&f(v(n,i.y1,i.y2,i.y,k))}if(i.type&S.ARC){l(i.x),f(i.y),h(i,r,n);for(var b=i.xRot/180*Math.PI,w=Math.cos(b)*i.rX,T=Math.sin(b)*i.rX,A=-Math.sin(b)*i.rY,O=Math.cos(b)*i.rY,P=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],E=P[0],C=P[1],M=function(t){var e=t[0],r=t[1],n=180*Math.atan2(r,e)/Math.PI;return n<E?n+360:n},N=0,_=c(A,-w,0).map(M);N<_.length;N++)(k=_[N])>E&&k<C&&l(p(i.cX,w,A,k));for(var V=0,R=c(O,-T,0).map(M);V<R.length;V++){var k;(k=R[V])>E&&k<C&&f(p(i.cY,T,O,k))}}return e}));return u.minX=1/0,u.maxX=-1/0,u.minY=1/0,u.maxY=-1/0,u}}(l||(l={}));var y,m=function(){function t(){}return t.prototype.round=function(t){return this.transform(l.ROUND(t))},t.prototype.toAbs=function(){return this.transform(l.TO_ABS())},t.prototype.toRel=function(){return this.transform(l.TO_REL())},t.prototype.normalizeHVZ=function(t,e,r){return this.transform(l.NORMALIZE_HVZ(t,e,r))},t.prototype.normalizeST=function(){return this.transform(l.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(l.QT_TO_C())},t.prototype.aToC=function(){return this.transform(l.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(l.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(l.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(l.SCALE(t,e))},t.prototype.rotate=function(t,e,r){return this.transform(l.ROTATE(t,e,r))},t.prototype.matrix=function(t,e,r,n,i,a){return this.transform(l.MATRIX(t,e,r,n,i,a))},t.prototype.skewX=function(t){return this.transform(l.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(l.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(l.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(l.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(l.ANNOTATE_ARCS())},t}(),x=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},b=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},w=function(t){function e(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return i(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var n=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},i=0;i<t.length;i++){var a=t[i],s=!(this.curCommandType!==S.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=b(a)&&("0"===this.curNumber&&"0"===a||s);if(!b(a)||o)if("e"!==a&&"E"!==a)if("-"!==a&&"+"!==a||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==a||this.curNumberHasExp||this.curNumberHasDecimal||s){if(this.curNumber&&-1!==this.curCommandType){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===S.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+i+'"')}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 "'+i+'"');this.curArgs.push(u),this.curArgs.length===T[this.curCommandType]&&(S.HORIZ_LINE_TO===this.curCommandType?n({type:S.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):S.VERT_LINE_TO===this.curCommandType?n({type:S.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===S.MOVE_TO||this.curCommandType===S.LINE_TO||this.curCommandType===S.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),S.MOVE_TO===this.curCommandType&&(this.curCommandType=S.LINE_TO)):this.curCommandType===S.CURVE_TO?n({type:S.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===S.SMOOTH_CURVE_TO?n({type:S.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.QUAD_TO?n({type:S.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.ARC&&n({type:S.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(!x(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(o)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=S.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=S.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=S.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=S.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=S.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=S.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=S.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=S.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+i+".");this.curCommandType=S.ARC,this.curCommandRelative="a"===a}else e.push({type:S.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var n=0,i=Object.getPrototypeOf(this).parse.call(this,e);n<i.length;n++){var a=i[n],s=t(a);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return r}}})},e}(m),S=function(t){function e(r){var n=t.call(this)||this;return n.commands="string"==typeof r?e.parse(r):r,n}return i(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=l.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],r=0,n=this.commands;r<n.length;r++){var i=t(n[r]);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return this.commands=e,this},e.encode=function(t){return a(t)},e.parse=function(t){var e=new w,r=[];return e.parse(t,r),e.finish(r),r},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(m),T=((y={})[S.MOVE_TO]=2,y[S.LINE_TO]=2,y[S.HORIZ_LINE_TO]=1,y[S.VERT_LINE_TO]=1,y[S.CLOSE_PATH]=0,y[S.QUAD_TO]=4,y[S.SMOOTH_QUAD_TO]=2,y[S.CURVE_TO]=6,y[S.SMOOTH_CURVE_TO]=4,y[S.ARC]=7,y)},1832:function(t,e,r){"use strict";var n=r(1688),i=r(1719).PROPER,a=r(1701),s=r(1692),o=r(1712),u=r(1697),h=r(1690),c=r(1760),l="toString",f=RegExp.prototype,g=f[l],p=n(c),d=h((function(){return"/a/b"!=g.call({source:"a",flags:"b"})})),v=i&&g.name!=l;(d||v)&&a(RegExp.prototype,l,(function t(){var e=s(this),r=u(e.source),n=e.flags,i;return"/"+r+"/"+u(void 0===n&&o(f,e)&&!("flags"in f)?p(e):n)}),{unsafe:!0})},1833:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,"a",(function(){return h}));var a=[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 o(t,e,r,n,i,a){if("string"==typeof t&&(t=document.getElementById(t)),t&&"naturalWidth"in t){var s=i?"offset":"natural",o=t[s+"Width"],u=t[s+"Height"];if("string"==typeof e&&(e=document.getElementById(e)),e&&"getContext"in e){a||(e.style.width=o+"px",e.style.height=u+"px"),e.width=o,e.height=u;var c=e.getContext("2d");c.clearRect(0,0,o,u),c.drawImage(t,0,0,t.naturalWidth,t.naturalHeight,0,0,o,u),isNaN(r)||r<1||(n?h(e,0,0,o,u,r):l(e,0,0,o,u,r))}}}function u(t,e,r,i,a){if("string"==typeof t&&(t=document.getElementById(t)),!t||"object"!==n(t)||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var s=t.getContext("2d");try{return s.getImageData(e,r,i,a)}catch(t){throw new Error("unable to access image data: "+t)}}function h(t,e,r,n,i,a){if(!(isNaN(a)||a<1)){a|=0;var s=u(t,e,r,n,i);s=c(s,e,r,n,i,a),t.getContext("2d").putImageData(s,e,r)}}function c(t,e,r,n,i,o){for(var u=t.data,h=2*o+1,c=n-1,l=i-1,f=o+1,p=f*(f+1)/2,d=new g,v=d,y,m=1;m<h;m++)v=v.next=new g,m===f&&(y=v);v.next=d;for(var x=null,b=null,w=0,S=0,T=a[o],A=s[o],O=0;O<i;O++){v=d;for(var P=u[S],E=u[S+1],C=u[S+2],M=u[S+3],N=0;N<f;N++)v.r=P,v.g=E,v.b=C,v.a=M,v=v.next;for(var _=0,V=0,R=0,k=0,I=f*P,L=f*E,D=f*C,B=f*M,j=p*P,z=p*E,F=p*C,U=p*M,H=1;H<f;H++){var X=S+((c<H?c:H)<<2),Y=u[X],W=u[X+1],q=u[X+2],G=u[X+3],Q=f-H;j+=(v.r=Y)*Q,z+=(v.g=W)*Q,F+=(v.b=q)*Q,U+=(v.a=G)*Q,_+=Y,V+=W,R+=q,k+=G,v=v.next}x=d,b=y;for(var $=0;$<n;$++){var Z=U*T>>A;if(u[S+3]=Z,0!==Z){var K=255/Z;u[S]=(j*T>>A)*K,u[S+1]=(z*T>>A)*K,u[S+2]=(F*T>>A)*K}else u[S]=u[S+1]=u[S+2]=0;j-=I,z-=L,F-=D,U-=B,I-=x.r,L-=x.g,D-=x.b,B-=x.a;var J=$+o+1;J=w+(J<c?J:c)<<2,j+=_+=x.r=u[J],z+=V+=x.g=u[J+1],F+=R+=x.b=u[J+2],U+=k+=x.a=u[J+3],x=x.next;var tt=b,et=tt.r,rt=tt.g,nt=tt.b,it=tt.a;I+=et,L+=rt,D+=nt,B+=it,_-=et,V-=rt,R-=nt,k-=it,b=b.next,S+=4}w+=n}for(var at=0;at<n;at++){var st=u[S=at<<2],ot=u[S+1],ut=u[S+2],ht=u[S+3],ct=f*st,lt=f*ot,ft=f*ut,gt=f*ht,pt=p*st,dt=p*ot,vt=p*ut,yt=p*ht;v=d;for(var mt=0;mt<f;mt++)v.r=st,v.g=ot,v.b=ut,v.a=ht,v=v.next;for(var xt=n,bt=0,wt=0,St=0,Tt=0,At=1;At<=o;At++){S=xt+at<<2;var Ot=f-At;pt+=(v.r=st=u[S])*Ot,dt+=(v.g=ot=u[S+1])*Ot,vt+=(v.b=ut=u[S+2])*Ot,yt+=(v.a=ht=u[S+3])*Ot,Tt+=st,bt+=ot,wt+=ut,St+=ht,v=v.next,At<l&&(xt+=n)}S=at,x=d,b=y;for(var Pt=0;Pt<i;Pt++){var Et=S<<2;u[Et+3]=ht=yt*T>>A,ht>0?(ht=255/ht,u[Et]=(pt*T>>A)*ht,u[Et+1]=(dt*T>>A)*ht,u[Et+2]=(vt*T>>A)*ht):u[Et]=u[Et+1]=u[Et+2]=0,pt-=ct,dt-=lt,vt-=ft,yt-=gt,ct-=x.r,lt-=x.g,ft-=x.b,gt-=x.a,Et=at+((Et=Pt+f)<l?Et:l)*n<<2,pt+=Tt+=x.r=u[Et],dt+=bt+=x.g=u[Et+1],vt+=wt+=x.b=u[Et+2],yt+=St+=x.a=u[Et+3],x=x.next,ct+=st=b.r,lt+=ot=b.g,ft+=ut=b.b,gt+=ht=b.a,Tt-=st,bt-=ot,wt-=ut,St-=ht,b=b.next,S+=n}}return t}function l(t,e,r,n,i,a){if(!(isNaN(a)||a<1)){a|=0;var s=u(t,e,r,n,i);s=f(s,e,r,n,i,a),t.getContext("2d").putImageData(s,e,r)}}function f(t,e,r,n,i,o){for(var u=t.data,h=2*o+1,c=n-1,l=i-1,f=o+1,p=f*(f+1)/2,d=new g,v=d,y,m=1;m<h;m++)v=v.next=new g,m===f&&(y=v);v.next=d;for(var x=null,b=null,w=a[o],S=s[o],T,A,O=0,P=0,E=0;E<i;E++){var C=u[P],M=u[P+1],N=u[P+2],_=f*C,V=f*M,R=f*N,k=p*C,I=p*M,L=p*N;v=d;for(var D=0;D<f;D++)v.r=C,v.g=M,v.b=N,v=v.next;for(var B=0,j=0,z=0,F=1;F<f;F++)T=P+((c<F?c:F)<<2),k+=(v.r=C=u[T])*(A=f-F),I+=(v.g=M=u[T+1])*A,L+=(v.b=N=u[T+2])*A,B+=C,j+=M,z+=N,v=v.next;x=d,b=y;for(var U=0;U<n;U++)u[P]=k*w>>S,u[P+1]=I*w>>S,u[P+2]=L*w>>S,k-=_,I-=V,L-=R,_-=x.r,V-=x.g,R-=x.b,T=O+((T=U+o+1)<c?T:c)<<2,k+=B+=x.r=u[T],I+=j+=x.g=u[T+1],L+=z+=x.b=u[T+2],x=x.next,_+=C=b.r,V+=M=b.g,R+=N=b.b,B-=C,j-=M,z-=N,b=b.next,P+=4;O+=n}for(var H=0;H<n;H++){var X=u[P=H<<2],Y=u[P+1],W=u[P+2],q=f*X,G=f*Y,Q=f*W,$=p*X,Z=p*Y,K=p*W;v=d;for(var J=0;J<f;J++)v.r=X,v.g=Y,v.b=W,v=v.next;for(var tt=0,et=0,rt=0,nt=1,it=n;nt<=o;nt++)P=it+H<<2,$+=(v.r=X=u[P])*(A=f-nt),Z+=(v.g=Y=u[P+1])*A,K+=(v.b=W=u[P+2])*A,tt+=X,et+=Y,rt+=W,v=v.next,nt<l&&(it+=n);P=H,x=d,b=y;for(var at=0;at<i;at++)u[T=P<<2]=$*w>>S,u[T+1]=Z*w>>S,u[T+2]=K*w>>S,$-=q,Z-=G,K-=Q,q-=x.r,G-=x.g,Q-=x.b,T=H+((T=at+f)<l?T:l)*n<<2,$+=tt+=x.r=u[T],Z+=et+=x.g=u[T+1],K+=rt+=x.b=u[T+2],x=x.next,q+=X=b.r,G+=Y=b.g,Q+=W=b.b,tt-=X,et-=Y,rt-=W,b=b.next,P+=n}return t}var g=function t(){i(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}}}]);
16
+ var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function a(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var n=t[r];if(n.type===S.CLOSE_PATH)e+="z";else if(n.type===S.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===S.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===S.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===S.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===S.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===S.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===S.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===S.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==S.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e}function s(t,e){var r=t[0],n=t[1];return[r*Math.cos(e)-n*Math.sin(e),r*Math.sin(e)+n*Math.cos(e)]}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var u=Math.PI;function h(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var n=t.rX,i=t.rY,a=t.x,o=t.y;n=Math.abs(t.rX),i=Math.abs(t.rY);var h=s([(e-a)/2,(r-o)/2],-t.xRot/180*u),c=h[0],l=h[1],f=Math.pow(c,2)/Math.pow(n,2)+Math.pow(l,2)/Math.pow(i,2);1<f&&(n*=Math.sqrt(f),i*=Math.sqrt(f)),t.rX=n,t.rY=i;var g=Math.pow(n,2)*Math.pow(l,2)+Math.pow(i,2)*Math.pow(c,2),p=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-g)/g)),d=n*l/i*p,v=-i*c/n*p,y=s([d,v],t.xRot/180*u);t.cX=y[0]+(e+a)/2,t.cY=y[1]+(r+o)/2,t.phi1=Math.atan2((l-v)/i,(c-d)/n),t.phi2=Math.atan2((-l-v)/i,(-c-d)/n),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*u),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*u),t.phi1*=180/u,t.phi2*=180/u}function c(t,e,r){o(t,e,r);var n=t*t+e*e-r*r;if(0>n)return[];if(0===n)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var i=Math.sqrt(n);return[[(t*r+e*i)/(t*t+e*e),(e*r-t*i)/(t*t+e*e)],[(t*r-e*i)/(t*t+e*e),(e*r+t*i)/(t*t+e*e)]]}var l,f=Math.PI/180;function g(t,e,r){return(1-r)*t+r*e}function p(t,e,r,n){return t+Math.cos(n/180*u)*e+Math.sin(n/180*u)*r}function d(t,e,r,n){var i=1e-6,a=e-t,s=r-e,o=3*a+3*(n-r)-6*s,u=6*(s-a),h=3*a;return Math.abs(o)<i?[-h/u]:function(t,e,r){void 0===r&&(r=1e-6);var n=t*t/4-e;if(n<-r)return[];if(n<=r)return[-t/2];var i=Math.sqrt(n);return[-t/2-i,-t/2+i]}(u/o,h/o,i)}function v(t,e,r,n,i){var a=1-i;return t*(a*a*a)+e*(3*a*a*i)+r*(3*a*i*i)+n*(i*i*i)}!function(t){function e(){return i((function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t}))}function r(){var t=NaN,e=NaN,r=NaN,n=NaN;return i((function(i,a,s){return i.type&S.SMOOTH_CURVE_TO&&(i.type=S.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?s:e,i.x1=i.relative?a-t:2*a-t,i.y1=i.relative?s-e:2*s-e),i.type&S.CURVE_TO?(t=i.relative?a+i.x2:i.x2,e=i.relative?s+i.y2:i.y2):(t=NaN,e=NaN),i.type&S.SMOOTH_QUAD_TO&&(i.type=S.QUAD_TO,r=isNaN(r)?a:r,n=isNaN(n)?s:n,i.x1=i.relative?a-r:2*a-r,i.y1=i.relative?s-n:2*s-n),i.type&S.QUAD_TO?(r=i.relative?a+i.x1:i.x1,n=i.relative?s+i.y1:i.y1):(r=NaN,n=NaN),i}))}function n(){var t=NaN,e=NaN;return i((function(r,n,i){if(r.type&S.SMOOTH_QUAD_TO&&(r.type=S.QUAD_TO,t=isNaN(t)?n:t,e=isNaN(e)?i:e,r.x1=r.relative?n-t:2*n-t,r.y1=r.relative?i-e:2*i-e),r.type&S.QUAD_TO){t=r.relative?n+r.x1:r.x1,e=r.relative?i+r.y1:r.y1;var a=r.x1,s=r.y1;r.type=S.CURVE_TO,r.x1=((r.relative?0:n)+2*a)/3,r.y1=((r.relative?0:i)+2*s)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*s)/3}else t=NaN,e=NaN;return r}))}function i(t){var e=0,r=0,n=NaN,i=NaN;return function(a){if(isNaN(n)&&!(a.type&S.MOVE_TO))throw new Error("path must start with moveto");var s=t(a,e,r,n,i);return a.type&S.CLOSE_PATH&&(e=n,r=i),void 0!==a.x&&(e=a.relative?e+a.x:a.x),void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&S.MOVE_TO&&(n=e,i=r),s}}function a(t,e,r,n,a,s){return o(t,e,r,n,a,s),i((function(i,o,u,h){var c=i.x1,l=i.x2,f=i.relative&&!isNaN(h),g=void 0!==i.x?i.x:f?0:o,p=void 0!==i.y?i.y:f?0:u;function d(t){return t*t}i.type&S.HORIZ_LINE_TO&&0!==e&&(i.type=S.LINE_TO,i.y=i.relative?0:u),i.type&S.VERT_LINE_TO&&0!==r&&(i.type=S.LINE_TO,i.x=i.relative?0:o),void 0!==i.x&&(i.x=i.x*t+p*r+(f?0:a)),void 0!==i.y&&(i.y=g*e+i.y*n+(f?0:s)),void 0!==i.x1&&(i.x1=i.x1*t+i.y1*r+(f?0:a)),void 0!==i.y1&&(i.y1=c*e+i.y1*n+(f?0:s)),void 0!==i.x2&&(i.x2=i.x2*t+i.y2*r+(f?0:a)),void 0!==i.y2&&(i.y2=l*e+i.y2*n+(f?0:s));var v=t*n-e*r;if(void 0!==i.xRot&&(1!==t||0!==e||0!==r||1!==n))if(0===v)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=S.LINE_TO;else{var y=i.xRot*Math.PI/180,m=Math.sin(y),x=Math.cos(y),b=1/d(i.rX),w=1/d(i.rY),T=d(x)*b+d(m)*w,A=2*m*x*(b-w),O=d(m)*b+d(x)*w,P=T*n*n-A*e*n+O*e*e,E=A*(t*n+e*r)-2*(T*r*n+O*t*e),C=T*r*r-A*t*r+O*t*t,M=(Math.atan2(E,P-C)+Math.PI)%Math.PI/2,N=Math.sin(M),_=Math.cos(M);i.rX=Math.abs(v)/Math.sqrt(P*d(_)+E*N*_+C*d(N)),i.rY=Math.abs(v)/Math.sqrt(P*d(N)-E*N*_+C*d(_)),i.xRot=180*M/Math.PI}return void 0!==i.sweepFlag&&0>v&&(i.sweepFlag=+!i.sweepFlag),i}))}function u(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),o(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return i((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),i((function(n,i,a,s,o){if(isNaN(s)&&!(n.type&S.MOVE_TO))throw new Error("path must start with moveto");return e&&n.type&S.HORIZ_LINE_TO&&(n.type=S.LINE_TO,n.y=n.relative?0:a),r&&n.type&S.VERT_LINE_TO&&(n.type=S.LINE_TO,n.x=n.relative?0:i),t&&n.type&S.CLOSE_PATH&&(n.type=S.LINE_TO,n.x=n.relative?s-i:s,n.y=n.relative?o-a:o),n.type&S.ARC&&(0===n.rX||0===n.rY)&&(n.type=S.LINE_TO,delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag),n}))},t.NORMALIZE_ST=r,t.QT_TO_C=n,t.INFO=i,t.SANITIZE=function(t){void 0===t&&(t=0),o(t);var e=NaN,r=NaN,n=NaN,a=NaN;return i((function(i,s,o,u,h){var c=Math.abs,l=!1,f=0,g=0;if(i.type&S.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:s-e,g=isNaN(r)?0:o-r),i.type&(S.CURVE_TO|S.SMOOTH_CURVE_TO)?(e=i.relative?s+i.x2:i.x2,r=i.relative?o+i.y2:i.y2):(e=NaN,r=NaN),i.type&S.SMOOTH_QUAD_TO?(n=isNaN(n)?s:2*s-n,a=isNaN(a)?o:2*o-a):i.type&S.QUAD_TO?(n=i.relative?s+i.x1:i.x1,a=i.relative?o+i.y1:i.y2):(n=NaN,a=NaN),i.type&S.LINE_COMMANDS||i.type&S.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&S.CURVE_TO||i.type&S.SMOOTH_CURVE_TO||i.type&S.QUAD_TO||i.type&S.SMOOTH_QUAD_TO){var p=void 0===i.x?0:i.relative?i.x:i.x-s,d=void 0===i.y?0:i.relative?i.y:i.y-o;f=isNaN(n)?void 0===i.x1?f:i.relative?i.x:i.x1-s:n-s,g=isNaN(a)?void 0===i.y1?g:i.relative?i.y:i.y1-o:a-o;var v=void 0===i.x2?0:i.relative?i.x:i.x2-s,y=void 0===i.y2?0:i.relative?i.y:i.y2-o;c(p)<=t&&c(d)<=t&&c(f)<=t&&c(g)<=t&&c(v)<=t&&c(y)<=t&&(l=!0)}return i.type&S.CLOSE_PATH&&c(s-u)<=t&&c(o-h)<=t&&(l=!0),l?[]:i}))},t.MATRIX=a,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),o(t,e,r);var n=Math.sin(t),i=Math.cos(t);return a(i,n,-n,i,e-e*i+r*n,r-e*n-r*i)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),o(t,e),a(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),o(t,e),a(t,0,0,e,0,0)},t.SKEW_X=function(t){return o(t),a(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return o(t),a(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),o(t),a(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),o(t),a(1,0,0,-1,0,t)},t.A_TO_C=function(){return i((function(t,e,r){return S.ARC===t.type?function(t,e,r){var n,i,a,o;t.cX||h(t,e,r);for(var u=Math.min(t.phi1,t.phi2),c=Math.max(t.phi1,t.phi2)-u,l=Math.ceil(c/90),p=new Array(l),d=e,v=r,y=0;y<l;y++){var m=g(t.phi1,t.phi2,y/l),x=g(t.phi1,t.phi2,(y+1)/l),b=x-m,w=4/3*Math.tan(b*f/4),T=[Math.cos(m*f)-w*Math.sin(m*f),Math.sin(m*f)+w*Math.cos(m*f)],A=T[0],O=T[1],P=[Math.cos(x*f),Math.sin(x*f)],E=P[0],C=P[1],M=[E+w*Math.sin(x*f),C-w*Math.cos(x*f)],N=M[0],_=M[1];p[y]={relative:t.relative,type:S.CURVE_TO};var V=function(e,r){var n=s([e*t.rX,r*t.rY],t.xRot),i=n[0],a=n[1];return[t.cX+i,t.cY+a]};n=V(A,O),p[y].x1=n[0],p[y].y1=n[1],i=V(N,_),p[y].x2=i[0],p[y].y2=i[1],a=V(E,C),p[y].x=a[0],p[y].y=a[1],t.relative&&(p[y].x1-=d,p[y].y1-=v,p[y].x2-=d,p[y].y2-=v,p[y].x-=d,p[y].y-=v),d=(o=[p[y].x,p[y].y])[0],v=o[1]}return p}(t,t.relative?0:e,t.relative?0:r):t}))},t.ANNOTATE_ARCS=function(){return i((function(t,e,r){return t.relative&&(e=0,r=0),S.ARC===t.type&&h(t,e,r),t}))},t.CLONE=u,t.CALCULATE_BOUNDS=function(){var t=function(t){var e={};for(var r in t)e[r]=t[r];return e},a=e(),s=n(),o=r(),u=i((function(e,r,n){var i=o(s(a(t(e))));function l(t){t>u.maxX&&(u.maxX=t),t<u.minX&&(u.minX=t)}function f(t){t>u.maxY&&(u.maxY=t),t<u.minY&&(u.minY=t)}if(i.type&S.DRAWING_COMMANDS&&(l(r),f(n)),i.type&S.HORIZ_LINE_TO&&l(i.x),i.type&S.VERT_LINE_TO&&f(i.y),i.type&S.LINE_TO&&(l(i.x),f(i.y)),i.type&S.CURVE_TO){l(i.x),f(i.y);for(var g=0,y=d(r,i.x1,i.x2,i.x);g<y.length;g++)0<(k=y[g])&&1>k&&l(v(r,i.x1,i.x2,i.x,k));for(var m=0,x=d(n,i.y1,i.y2,i.y);m<x.length;m++)0<(k=x[m])&&1>k&&f(v(n,i.y1,i.y2,i.y,k))}if(i.type&S.ARC){l(i.x),f(i.y),h(i,r,n);for(var b=i.xRot/180*Math.PI,w=Math.cos(b)*i.rX,T=Math.sin(b)*i.rX,A=-Math.sin(b)*i.rY,O=Math.cos(b)*i.rY,P=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],E=P[0],C=P[1],M=function(t){var e=t[0],r=t[1],n=180*Math.atan2(r,e)/Math.PI;return n<E?n+360:n},N=0,_=c(A,-w,0).map(M);N<_.length;N++)(k=_[N])>E&&k<C&&l(p(i.cX,w,A,k));for(var V=0,R=c(O,-T,0).map(M);V<R.length;V++){var k;(k=R[V])>E&&k<C&&f(p(i.cY,T,O,k))}}return e}));return u.minX=1/0,u.maxX=-1/0,u.minY=1/0,u.maxY=-1/0,u}}(l||(l={}));var y,m=function(){function t(){}return t.prototype.round=function(t){return this.transform(l.ROUND(t))},t.prototype.toAbs=function(){return this.transform(l.TO_ABS())},t.prototype.toRel=function(){return this.transform(l.TO_REL())},t.prototype.normalizeHVZ=function(t,e,r){return this.transform(l.NORMALIZE_HVZ(t,e,r))},t.prototype.normalizeST=function(){return this.transform(l.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(l.QT_TO_C())},t.prototype.aToC=function(){return this.transform(l.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(l.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(l.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(l.SCALE(t,e))},t.prototype.rotate=function(t,e,r){return this.transform(l.ROTATE(t,e,r))},t.prototype.matrix=function(t,e,r,n,i,a){return this.transform(l.MATRIX(t,e,r,n,i,a))},t.prototype.skewX=function(t){return this.transform(l.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(l.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(l.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(l.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(l.ANNOTATE_ARCS())},t}(),x=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},b=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},w=function(t){function e(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return i(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var n=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},i=0;i<t.length;i++){var a=t[i],s=!(this.curCommandType!==S.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=b(a)&&("0"===this.curNumber&&"0"===a||s);if(!b(a)||o)if("e"!==a&&"E"!==a)if("-"!==a&&"+"!==a||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==a||this.curNumberHasExp||this.curNumberHasDecimal||s){if(this.curNumber&&-1!==this.curCommandType){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===S.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+i+'"')}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 "'+i+'"');this.curArgs.push(u),this.curArgs.length===T[this.curCommandType]&&(S.HORIZ_LINE_TO===this.curCommandType?n({type:S.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):S.VERT_LINE_TO===this.curCommandType?n({type:S.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===S.MOVE_TO||this.curCommandType===S.LINE_TO||this.curCommandType===S.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),S.MOVE_TO===this.curCommandType&&(this.curCommandType=S.LINE_TO)):this.curCommandType===S.CURVE_TO?n({type:S.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===S.SMOOTH_CURVE_TO?n({type:S.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.QUAD_TO?n({type:S.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.ARC&&n({type:S.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(!x(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(o)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=S.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=S.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=S.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=S.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=S.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=S.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=S.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=S.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+i+".");this.curCommandType=S.ARC,this.curCommandRelative="a"===a}else e.push({type:S.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var n=0,i=Object.getPrototypeOf(this).parse.call(this,e);n<i.length;n++){var a=i[n],s=t(a);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return r}}})},e}(m),S=function(t){function e(r){var n=t.call(this)||this;return n.commands="string"==typeof r?e.parse(r):r,n}return i(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=l.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],r=0,n=this.commands;r<n.length;r++){var i=t(n[r]);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return this.commands=e,this},e.encode=function(t){return a(t)},e.parse=function(t){var e=new w,r=[];return e.parse(t,r),e.finish(r),r},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(m),T=((y={})[S.MOVE_TO]=2,y[S.LINE_TO]=2,y[S.HORIZ_LINE_TO]=1,y[S.VERT_LINE_TO]=1,y[S.CLOSE_PATH]=0,y[S.QUAD_TO]=4,y[S.SMOOTH_QUAD_TO]=2,y[S.CURVE_TO]=6,y[S.SMOOTH_CURVE_TO]=4,y[S.ARC]=7,y)},1847:function(t,e,r){"use strict";var n=r(1701),i=r(1733).PROPER,a=r(1715),s=r(1705),o=r(1726),u=r(1710),h=r(1703),c=r(1773),l="toString",f=RegExp.prototype,g=f[l],p=n(c),d=h((function(){return"/a/b"!=g.call({source:"a",flags:"b"})})),v=i&&g.name!=l;(d||v)&&a(RegExp.prototype,l,(function t(){var e=s(this),r=u(e.source),n=e.flags,i;return"/"+r+"/"+u(void 0===n&&o(f,e)&&!("flags"in f)?p(e):n)}),{unsafe:!0})},1848:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,"a",(function(){return h}));var a=[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 o(t,e,r,n,i,a){if("string"==typeof t&&(t=document.getElementById(t)),t&&"naturalWidth"in t){var s=i?"offset":"natural",o=t[s+"Width"],u=t[s+"Height"];if("string"==typeof e&&(e=document.getElementById(e)),e&&"getContext"in e){a||(e.style.width=o+"px",e.style.height=u+"px"),e.width=o,e.height=u;var c=e.getContext("2d");c.clearRect(0,0,o,u),c.drawImage(t,0,0,t.naturalWidth,t.naturalHeight,0,0,o,u),isNaN(r)||r<1||(n?h(e,0,0,o,u,r):l(e,0,0,o,u,r))}}}function u(t,e,r,i,a){if("string"==typeof t&&(t=document.getElementById(t)),!t||"object"!==n(t)||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var s=t.getContext("2d");try{return s.getImageData(e,r,i,a)}catch(t){throw new Error("unable to access image data: "+t)}}function h(t,e,r,n,i,a){if(!(isNaN(a)||a<1)){a|=0;var s=u(t,e,r,n,i);s=c(s,e,r,n,i,a),t.getContext("2d").putImageData(s,e,r)}}function c(t,e,r,n,i,o){for(var u=t.data,h=2*o+1,c=n-1,l=i-1,f=o+1,p=f*(f+1)/2,d=new g,v=d,y,m=1;m<h;m++)v=v.next=new g,m===f&&(y=v);v.next=d;for(var x=null,b=null,w=0,S=0,T=a[o],A=s[o],O=0;O<i;O++){v=d;for(var P=u[S],E=u[S+1],C=u[S+2],M=u[S+3],N=0;N<f;N++)v.r=P,v.g=E,v.b=C,v.a=M,v=v.next;for(var _=0,V=0,R=0,k=0,I=f*P,L=f*E,D=f*C,B=f*M,j=p*P,z=p*E,F=p*C,U=p*M,H=1;H<f;H++){var X=S+((c<H?c:H)<<2),Y=u[X],W=u[X+1],q=u[X+2],G=u[X+3],Q=f-H;j+=(v.r=Y)*Q,z+=(v.g=W)*Q,F+=(v.b=q)*Q,U+=(v.a=G)*Q,_+=Y,V+=W,R+=q,k+=G,v=v.next}x=d,b=y;for(var $=0;$<n;$++){var Z=U*T>>A;if(u[S+3]=Z,0!==Z){var K=255/Z;u[S]=(j*T>>A)*K,u[S+1]=(z*T>>A)*K,u[S+2]=(F*T>>A)*K}else u[S]=u[S+1]=u[S+2]=0;j-=I,z-=L,F-=D,U-=B,I-=x.r,L-=x.g,D-=x.b,B-=x.a;var J=$+o+1;J=w+(J<c?J:c)<<2,j+=_+=x.r=u[J],z+=V+=x.g=u[J+1],F+=R+=x.b=u[J+2],U+=k+=x.a=u[J+3],x=x.next;var tt=b,et=tt.r,rt=tt.g,nt=tt.b,it=tt.a;I+=et,L+=rt,D+=nt,B+=it,_-=et,V-=rt,R-=nt,k-=it,b=b.next,S+=4}w+=n}for(var at=0;at<n;at++){var st=u[S=at<<2],ot=u[S+1],ut=u[S+2],ht=u[S+3],ct=f*st,lt=f*ot,ft=f*ut,gt=f*ht,pt=p*st,dt=p*ot,vt=p*ut,yt=p*ht;v=d;for(var mt=0;mt<f;mt++)v.r=st,v.g=ot,v.b=ut,v.a=ht,v=v.next;for(var xt=n,bt=0,wt=0,St=0,Tt=0,At=1;At<=o;At++){S=xt+at<<2;var Ot=f-At;pt+=(v.r=st=u[S])*Ot,dt+=(v.g=ot=u[S+1])*Ot,vt+=(v.b=ut=u[S+2])*Ot,yt+=(v.a=ht=u[S+3])*Ot,Tt+=st,bt+=ot,wt+=ut,St+=ht,v=v.next,At<l&&(xt+=n)}S=at,x=d,b=y;for(var Pt=0;Pt<i;Pt++){var Et=S<<2;u[Et+3]=ht=yt*T>>A,ht>0?(ht=255/ht,u[Et]=(pt*T>>A)*ht,u[Et+1]=(dt*T>>A)*ht,u[Et+2]=(vt*T>>A)*ht):u[Et]=u[Et+1]=u[Et+2]=0,pt-=ct,dt-=lt,vt-=ft,yt-=gt,ct-=x.r,lt-=x.g,ft-=x.b,gt-=x.a,Et=at+((Et=Pt+f)<l?Et:l)*n<<2,pt+=Tt+=x.r=u[Et],dt+=bt+=x.g=u[Et+1],vt+=wt+=x.b=u[Et+2],yt+=St+=x.a=u[Et+3],x=x.next,ct+=st=b.r,lt+=ot=b.g,ft+=ut=b.b,gt+=ht=b.a,Tt-=st,bt-=ot,wt-=ut,St-=ht,b=b.next,S+=n}}return t}function l(t,e,r,n,i,a){if(!(isNaN(a)||a<1)){a|=0;var s=u(t,e,r,n,i);s=f(s,e,r,n,i,a),t.getContext("2d").putImageData(s,e,r)}}function f(t,e,r,n,i,o){for(var u=t.data,h=2*o+1,c=n-1,l=i-1,f=o+1,p=f*(f+1)/2,d=new g,v=d,y,m=1;m<h;m++)v=v.next=new g,m===f&&(y=v);v.next=d;for(var x=null,b=null,w=a[o],S=s[o],T,A,O=0,P=0,E=0;E<i;E++){var C=u[P],M=u[P+1],N=u[P+2],_=f*C,V=f*M,R=f*N,k=p*C,I=p*M,L=p*N;v=d;for(var D=0;D<f;D++)v.r=C,v.g=M,v.b=N,v=v.next;for(var B=0,j=0,z=0,F=1;F<f;F++)T=P+((c<F?c:F)<<2),k+=(v.r=C=u[T])*(A=f-F),I+=(v.g=M=u[T+1])*A,L+=(v.b=N=u[T+2])*A,B+=C,j+=M,z+=N,v=v.next;x=d,b=y;for(var U=0;U<n;U++)u[P]=k*w>>S,u[P+1]=I*w>>S,u[P+2]=L*w>>S,k-=_,I-=V,L-=R,_-=x.r,V-=x.g,R-=x.b,T=O+((T=U+o+1)<c?T:c)<<2,k+=B+=x.r=u[T],I+=j+=x.g=u[T+1],L+=z+=x.b=u[T+2],x=x.next,_+=C=b.r,V+=M=b.g,R+=N=b.b,B-=C,j-=M,z-=N,b=b.next,P+=4;O+=n}for(var H=0;H<n;H++){var X=u[P=H<<2],Y=u[P+1],W=u[P+2],q=f*X,G=f*Y,Q=f*W,$=p*X,Z=p*Y,K=p*W;v=d;for(var J=0;J<f;J++)v.r=X,v.g=Y,v.b=W,v=v.next;for(var tt=0,et=0,rt=0,nt=1,it=n;nt<=o;nt++)P=it+H<<2,$+=(v.r=X=u[P])*(A=f-nt),Z+=(v.g=Y=u[P+1])*A,K+=(v.b=W=u[P+2])*A,tt+=X,et+=Y,rt+=W,v=v.next,nt<l&&(it+=n);P=H,x=d,b=y;for(var at=0;at<i;at++)u[T=P<<2]=$*w>>S,u[T+1]=Z*w>>S,u[T+2]=K*w>>S,$-=q,Z-=G,K-=Q,q-=x.r,G-=x.g,Q-=x.b,T=H+((T=at+f)<l?T:l)*n<<2,$+=tt+=x.r=u[T],Z+=et+=x.g=u[T+1],K+=rt+=x.b=u[T+2],x=x.next,q+=X=b.r,G+=Y=b.g,Q+=W=b.b,tt-=X,et-=Y,rt-=W,b=b.next,P+=n}return t}var g=function t(){i(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}}}]);