forked from SSShooter/mind-elixir-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpainter.js
More file actions
1 lines (1 loc) · 192 KB
/
Copy pathpainter.js
File metadata and controls
1 lines (1 loc) · 192 KB
1
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.painter=e():t.painter=e()}(self,(function(){return(()=>{var t={7757:(t,e,r)=>{t.exports=r(5666)},3099:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},6077:(t,e,r)=>{var n=r(111);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},1223:(t,e,r)=>{var n=r(5112),i=r(30),o=r(3070),a=n("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},1530:(t,e,r)=>{"use strict";var n=r(8710).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},5787:t=>{t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},9670:(t,e,r)=>{var n=r(111);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},1285:(t,e,r)=>{"use strict";var n=r(7908),i=r(1400),o=r(7466);t.exports=function(t){for(var e=n(this),r=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),u=a>2?arguments[2]:void 0,c=void 0===u?r:i(u,r);c>s;)e[s++]=t;return e}},8533:(t,e,r)=>{"use strict";var n=r(2092).forEach,i=r(9341),o=r(9207),a=i("forEach"),s=o("forEach");t.exports=a&&s?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},8457:(t,e,r)=>{"use strict";var n=r(9974),i=r(7908),o=r(3411),a=r(7659),s=r(7466),u=r(6135),c=r(1246);t.exports=function(t){var e,r,l,f,h,p,g=i(t),v="function"==typeof this?this:Array,y=arguments.length,d=y>1?arguments[1]:void 0,m=void 0!==d,x=c(g),b=0;if(m&&(d=n(d,y>2?arguments[2]:void 0,2)),null==x||v==Array&&a(x))for(r=new v(e=s(g.length));e>b;b++)p=m?d(g[b],b):g[b],u(r,b,p);else for(h=(f=x.call(g)).next,r=new v;!(l=h.call(f)).done;b++)p=m?o(f,d,[l.value,b],!0):l.value,u(r,b,p);return r.length=b,r}},1318:(t,e,r)=>{var n=r(5656),i=r(7466),o=r(1400),a=function(t){return function(e,r,a){var s,u=n(e),c=i(u.length),l=o(a,c);if(t&&r!=r){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:(t,e,r)=>{var n=r(9974),i=r(8361),o=r(7908),a=r(7466),s=r(5417),u=[].push,c=function(t){var e=1==t,r=2==t,c=3==t,l=4==t,f=6==t,h=5==t||f;return function(p,g,v,y){for(var d,m,x=o(p),b=i(x),w=n(g,v,3),S=a(b.length),k=0,P=y||s,R=e?P(p,S):r?P(p,0):void 0;S>k;k++)if((h||k in b)&&(m=w(d=b[k],k,x),t))if(e)R[k]=m;else if(m)switch(t){case 3:return!0;case 5:return d;case 6:return k;case 2:u.call(R,d)}else if(l)return!1;return f?-1:c||l?l:R}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},1194:(t,e,r)=>{var n=r(7293),i=r(5112),o=r(7392),a=i("species");t.exports=function(t){return o>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:(t,e,r)=>{"use strict";var n=r(7293);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},9207:(t,e,r)=>{var n=r(9781),i=r(7293),o=r(6656),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var r=[][t],c=!!o(e,"ACCESSORS")&&e.ACCESSORS,l=o(e,0)?e[0]:u,f=o(e,1)?e[1]:void 0;return s[t]=!!r&&!i((function(){if(c&&!n)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:u}):t[1]=1,r.call(t,l,f)}))}},3671:(t,e,r)=>{var n=r(3099),i=r(7908),o=r(8361),a=r(7466),s=function(t){return function(e,r,s,u){n(r);var c=i(e),l=o(c),f=a(c.length),h=t?f-1:0,p=t?-1:1;if(s<2)for(;;){if(h in l){u=l[h],h+=p;break}if(h+=p,t?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:f>h;h+=p)h in l&&(u=r(u,l[h],h,c));return u}};t.exports={left:s(!1),right:s(!0)}},5417:(t,e,r)=>{var n=r(111),i=r(3157),o=r(5112)("species");t.exports=function(t,e){var r;return i(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[o])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},3411:(t,e,r)=>{var n=r(9670);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},7072:(t,e,r)=>{var n=r(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},t(o)}catch(t){}return r}},4326:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:(t,e,r)=>{var n=r(1694),i=r(4326),o=r(5112)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:a?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},5631:(t,e,r)=>{"use strict";var n=r(3070).f,i=r(30),o=r(2248),a=r(9974),s=r(5787),u=r(408),c=r(654),l=r(6340),f=r(9781),h=r(2423).fastKey,p=r(9909),g=p.set,v=p.getterFor;t.exports={getConstructor:function(t,e,r,c){var l=t((function(t,n){s(t,l,e),g(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=n&&u(n,t[c],t,r)})),p=v(e),y=function(t,e,r){var n,i,o=p(t),a=d(t,e);return a?a.value=r:(o.last=a={index:i=h(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),f?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},d=function(t,e){var r,n=p(t),i=h(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==e)return r};return o(l.prototype,{clear:function(){for(var t=p(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e=this,r=p(e),n=d(e,t);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),f?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=p(this),n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!d(this,t)}}),o(l.prototype,r?{get:function(t){var e=d(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),f&&n(l.prototype,"size",{get:function(){return p(this).size}}),l},setStrong:function(t,e,r){var n=e+" Iterator",i=v(e),o=v(n);c(t,e,(function(t,e){g(this,{type:n,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),l(e)}}},7710:(t,e,r)=>{"use strict";var n=r(2109),i=r(7854),o=r(4705),a=r(1320),s=r(2423),u=r(408),c=r(5787),l=r(111),f=r(7293),h=r(7072),p=r(8003),g=r(9587);t.exports=function(t,e,r){var v=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),d=v?"set":"add",m=i[t],x=m&&m.prototype,b=m,w={},S=function(t){var e=x[t];a(x,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!l(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(o(t,"function"!=typeof m||!(y||x.forEach&&!f((function(){(new m).entries().next()})))))b=r.getConstructor(e,t,v,d),s.REQUIRED=!0;else if(o(t,!0)){var k=new b,P=k[d](y?{}:-0,1)!=k,R=f((function(){k.has(1)})),A=h((function(t){new m(t)})),C=!y&&f((function(){for(var t=new m,e=5;e--;)t[d](e,e);return!t.has(-0)}));A||((b=e((function(e,r){c(e,b,t);var n=g(new m,e,b);return null!=r&&u(r,n[d],n,v),n}))).prototype=x,x.constructor=b),(R||C)&&(S("delete"),S("has"),v&&S("get")),(C||P)&&S(d),y&&x.clear&&delete x.clear}return w[t]=b,n({global:!0,forced:b!=m},w),p(b,t),y||r.setStrong(b,t,v),b}},9920:(t,e,r)=>{var n=r(6656),i=r(3887),o=r(1236),a=r(3070);t.exports=function(t,e){for(var r=i(e),s=a.f,u=o.f,c=0;c<r.length;c++){var l=r[c];n(t,l)||s(t,l,u(e,l))}}},4964:(t,e,r)=>{var n=r(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:(t,e,r)=>{var n=r(7293);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:(t,e,r)=>{"use strict";var n=r(3383).IteratorPrototype,i=r(30),o=r(9114),a=r(8003),s=r(7497),u=function(){return this};t.exports=function(t,e,r){var c=e+" Iterator";return t.prototype=i(n,{next:o(1,r)}),a(t,c,!1,!0),s[c]=u,t}},8880:(t,e,r)=>{var n=r(9781),i=r(3070),o=r(9114);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:(t,e,r)=>{"use strict";var n=r(7593),i=r(3070),o=r(9114);t.exports=function(t,e,r){var a=n(e);a in t?i.f(t,a,o(0,r)):t[a]=r}},654:(t,e,r)=>{"use strict";var n=r(2109),i=r(4994),o=r(9518),a=r(7674),s=r(8003),u=r(8880),c=r(1320),l=r(5112),f=r(1913),h=r(7497),p=r(3383),g=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,y=l("iterator"),d="keys",m="values",x="entries",b=function(){return this};t.exports=function(t,e,r,l,p,w,S){i(r,e,l);var k,P,R,A=function(t){if(t===p&&M)return M;if(!v&&t in T)return T[t];switch(t){case d:case m:case x:return function(){return new r(this,t)}}return function(){return new r(this)}},C=e+" Iterator",E=!1,T=t.prototype,O=T[y]||T["@@iterator"]||p&&T[p],M=!v&&O||A(p),D="Array"==e&&T.entries||O;if(D&&(k=o(D.call(new t)),g!==Object.prototype&&k.next&&(f||o(k)===g||(a?a(k,g):"function"!=typeof k[y]&&u(k,y,b)),s(k,C,!0,!0),f&&(h[C]=b))),p==m&&O&&O.name!==m&&(E=!0,M=function(){return O.call(this)}),f&&!S||T[y]===M||u(T,y,M),h[e]=M,p)if(P={values:A(m),keys:w?M:A(d),entries:A(x)},S)for(R in P)(v||E||!(R in T))&&c(T,R,P[R]);else n({target:e,proto:!0,forced:v||E},P);return P}},7235:(t,e,r)=>{var n=r(857),i=r(6656),o=r(6061),a=r(3070).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},9781:(t,e,r)=>{var n=r(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(t,e,r)=>{var n=r(7854),i=r(111),o=n.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8324:t=>{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}},6833:(t,e,r)=>{var n=r(8113);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},8113:(t,e,r)=>{var n=r(5005);t.exports=n("navigator","userAgent")||""},7392:(t,e,r)=>{var n,i,o=r(7854),a=r(8113),s=o.process,u=s&&s.versions,c=u&&u.v8;c?i=(n=c.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,r)=>{var n=r(7854),i=r(1236).f,o=r(8880),a=r(1320),s=r(3505),u=r(9920),c=r(4705);t.exports=function(t,e){var r,l,f,h,p,g=t.target,v=t.global,y=t.stat;if(r=v?n:y?n[g]||s(g,{}):(n[g]||{}).prototype)for(l in e){if(h=e[l],f=t.noTargetGet?(p=i(r,l))&&p.value:r[l],!c(v?l:g+(y?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&o(h,"sham",!0),a(r,l,h,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:(t,e,r)=>{"use strict";r(4916);var n=r(1320),i=r(7293),o=r(5112),a=r(2261),s=r(8880),u=o("species"),c=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l="$0"==="a".replace(/./,"$0"),f=o("replace"),h=!!/./[f]&&""===/./[f]("a","$0"),p=!i((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]}));t.exports=function(t,e,r,f){var g=o(t),v=!i((function(){var e={};return e[g]=function(){return 7},7!=""[t](e)})),y=v&&!i((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[g]=/./[g]),r.exec=function(){return e=!0,null},r[g](""),!e}));if(!v||!y||"replace"===t&&(!c||!l||h)||"split"===t&&!p){var d=/./[g],m=r(g,""[t],(function(t,e,r,n,i){return e.exec===a?v&&!i?{done:!0,value:d.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),x=m[0],b=m[1];n(String.prototype,t,x),n(RegExp.prototype,g,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}f&&s(RegExp.prototype[g],"sham",!0)}},6677:(t,e,r)=>{var n=r(7293);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9974:(t,e,r)=>{var n=r(3099);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},7065:(t,e,r)=>{"use strict";var n=r(3099),i=r(111),o=[].slice,a={},s=function(t,e,r){if(!(e in a)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";a[e]=Function("C,a","return new C("+n.join(",")+")")}return a[e](t,r)};t.exports=Function.bind||function(t){var e=n(this),r=o.call(arguments,1),a=function(){var n=r.concat(o.call(arguments));return this instanceof a?s(e,n.length,n):e.apply(t,n)};return i(e.prototype)&&(a.prototype=e.prototype),a}},5005:(t,e,r)=>{var n=r(857),i=r(7854),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(i[t]):n[t]&&n[t][e]||i[t]&&i[t][e]}},1246:(t,e,r)=>{var n=r(648),i=r(7497),o=r(5112)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[n(t)]}},7854:(t,e,r)=>{var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||Function("return this")()},6656:t=>{var e={}.hasOwnProperty;t.exports=function(t,r){return e.call(t,r)}},3501:t=>{t.exports={}},842:(t,e,r)=>{var n=r(7854);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},490:(t,e,r)=>{var n=r(5005);t.exports=n("document","documentElement")},4664:(t,e,r)=>{var n=r(9781),i=r(7293),o=r(317);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:(t,e,r)=>{var n=r(7293),i=r(4326),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},9587:(t,e,r)=>{var n=r(111),i=r(7674);t.exports=function(t,e,r){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},2788:(t,e,r)=>{var n=r(5465),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return i.call(t)}),t.exports=n.inspectSource},2423:(t,e,r)=>{var n=r(3501),i=r(111),o=r(6656),a=r(3070).f,s=r(9711),u=r(6677),c=s("meta"),l=0,f=Object.isExtensible||function(){return!0},h=function(t){a(t,c,{value:{objectID:"O"+ ++l,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,c)){if(!f(t))return"F";if(!e)return"E";h(t)}return t[c].objectID},getWeakData:function(t,e){if(!o(t,c)){if(!f(t))return!0;if(!e)return!1;h(t)}return t[c].weakData},onFreeze:function(t){return u&&p.REQUIRED&&f(t)&&!o(t,c)&&h(t),t}};n[c]=!0},9909:(t,e,r)=>{var n,i,o,a=r(8536),s=r(7854),u=r(111),c=r(8880),l=r(6656),f=r(6200),h=r(3501),p=s.WeakMap;if(a){var g=new p,v=g.get,y=g.has,d=g.set;n=function(t,e){return d.call(g,t,e),e},i=function(t){return v.call(g,t)||{}},o=function(t){return y.call(g,t)}}else{var m=f("state");h[m]=!0,n=function(t,e){return c(t,m,e),e},i=function(t){return l(t,m)?t[m]:{}},o=function(t){return l(t,m)}}t.exports={set:n,get:i,has:o,enforce:function(t){return o(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},7659:(t,e,r)=>{var n=r(5112),i=r(7497),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},3157:(t,e,r)=>{var n=r(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},4705:(t,e,r)=>{var n=r(7293),i=/#|\.prototype\./,o=function(t,e){var r=s[a(t)];return r==c||r!=u&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},111:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:t=>{t.exports=!1},7850:(t,e,r)=>{var n=r(111),i=r(4326),o=r(5112)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},408:(t,e,r)=>{var n=r(9670),i=r(7659),o=r(7466),a=r(9974),s=r(1246),u=r(3411),c=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,r,l,f){var h,p,g,v,y,d,m,x=a(e,r,l?2:1);if(f)h=t;else{if("function"!=typeof(p=s(t)))throw TypeError("Target is not iterable");if(i(p)){for(g=0,v=o(t.length);v>g;g++)if((y=l?x(n(m=t[g])[0],m[1]):x(t[g]))&&y instanceof c)return y;return new c(!1)}h=p.call(t)}for(d=h.next;!(m=d.call(h)).done;)if("object"==typeof(y=u(h,x,m.value,l))&&y&&y instanceof c)return y;return new c(!1)}).stop=function(t){return new c(!0,t)}},3383:(t,e,r)=>{"use strict";var n,i,o,a=r(9518),s=r(8880),u=r(6656),c=r(5112),l=r(1913),f=c("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(n=i):h=!0),null==n&&(n={}),l||u(n,f)||s(n,f,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},7497:t=>{t.exports={}},5948:(t,e,r)=>{var n,i,o,a,s,u,c,l,f=r(7854),h=r(1236).f,p=r(4326),g=r(261).set,v=r(6833),y=f.MutationObserver||f.WebKitMutationObserver,d=f.process,m=f.Promise,x="process"==p(d),b=h(f,"queueMicrotask"),w=b&&b.value;w||(n=function(){var t,e;for(x&&(t=d.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},x?a=function(){d.nextTick(n)}:y&&!v?(s=!0,u=document.createTextNode(""),new y(n).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):m&&m.resolve?(c=m.resolve(void 0),l=c.then,a=function(){l.call(c,n)}):a=function(){g.call(f,n)}),t.exports=w||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},3366:(t,e,r)=>{var n=r(7854);t.exports=n.Promise},133:(t,e,r)=>{var n=r(7293);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},8536:(t,e,r)=>{var n=r(7854),i=r(2788),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},8523:(t,e,r)=>{"use strict";var n=r(3099),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)}},3929:(t,e,r)=>{var n=r(7850);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},30:(t,e,r)=>{var n,i=r(9670),o=r(6048),a=r(748),s=r(3501),u=r(490),c=r(317),l=r(6200),f=l("IE_PROTO"),h=function(){},p=function(t){return"<script>"+t+"</"+"script>"},g=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;g=n?function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):((e=c("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F);for(var r=a.length;r--;)delete g.prototype[a[r]];return g()};s[f]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(h.prototype=i(t),r=new h,h.prototype=null,r[f]=t):r=g(),void 0===e?r:o(r,e)}},6048:(t,e,r)=>{var n=r(9781),i=r(3070),o=r(9670),a=r(1956);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),s=n.length,u=0;s>u;)i.f(t,r=n[u++],e[r]);return t}},3070:(t,e,r)=>{var n=r(9781),i=r(4664),o=r(9670),a=r(7593),s=Object.defineProperty;e.f=n?s:function(t,e,r){if(o(t),e=a(e,!0),o(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},1236:(t,e,r)=>{var n=r(9781),i=r(5296),o=r(9114),a=r(5656),s=r(7593),u=r(6656),c=r(4664),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=a(t),e=s(e,!0),c)try{return l(t,e)}catch(t){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},1156:(t,e,r)=>{var n=r(5656),i=r(8006).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(n(t))}},8006:(t,e,r)=>{var n=r(6324),i=r(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},5181:(t,e)=>{e.f=Object.getOwnPropertySymbols},9518:(t,e,r)=>{var n=r(6656),i=r(7908),o=r(6200),a=r(8544),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},6324:(t,e,r)=>{var n=r(6656),i=r(5656),o=r(1318).indexOf,a=r(3501);t.exports=function(t,e){var r,s=i(t),u=0,c=[];for(r in s)!n(a,r)&&n(s,r)&&c.push(r);for(;e.length>u;)n(s,r=e[u++])&&(~o(c,r)||c.push(r));return c}},1956:(t,e,r)=>{var n=r(6324),i=r(748);t.exports=Object.keys||function(t){return n(t,i)}},5296:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},7674:(t,e,r)=>{var n=r(9670),i=r(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,o){return n(r),i(o),e?t.call(r,o):r.__proto__=o,r}}():void 0)},288:(t,e,r)=>{"use strict";var n=r(1694),i=r(648);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},3887:(t,e,r)=>{var n=r(5005),i=r(8006),o=r(5181),a=r(9670);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?e.concat(r(t)):e}},857:(t,e,r)=>{var n=r(7854);t.exports=n},2534:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:(t,e,r)=>{var n=r(9670),i=r(111),o=r(8523);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},2248:(t,e,r)=>{var n=r(1320);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},1320:(t,e,r)=>{var n=r(7854),i=r(8880),o=r(6656),a=r(3505),s=r(2788),u=r(9909),c=u.get,l=u.enforce,f=String(String).split("String");(t.exports=function(t,e,r,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof e||o(r,"name")||i(r,"name",e),l(r).source=f.join("string"==typeof e?e:"")),t!==n?(u?!h&&t[e]&&(c=!0):delete t[e],c?t[e]=r:i(t,e,r)):c?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},7651:(t,e,r)=>{var n=r(4326),i=r(2261);t.exports=function(t,e){var r=t.exec;if("function"==typeof r){var o=r.call(t,e);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},2261:(t,e,r)=>{"use strict";var n,i,o=r(7066),a=r(2999),s=RegExp.prototype.exec,u=String.prototype.replace,c=s,l=(n=/a/,i=/b*/g,s.call(n,"a"),s.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(l||h||f)&&(c=function(t){var e,r,n,i,a=this,c=f&&a.sticky,p=o.call(a),g=a.source,v=0,y=t;return c&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),y=String(t).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(g="(?: "+g+")",y=" "+y,v++),r=new RegExp("^(?:"+g+")",p)),h&&(r=new RegExp("^"+g+"$(?!\\s)",p)),l&&(e=a.lastIndex),n=s.call(c?r:a,y),c?n?(n.input=n.input.slice(v),n[0]=n[0].slice(v),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:l&&n&&(a.lastIndex=a.global?n.index+n[0].length:e),h&&n&&n.length>1&&u.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),t.exports=c},7066:(t,e,r)=>{"use strict";var n=r(9670);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}},2999:(t,e,r)=>{"use strict";var n=r(7293);function i(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=n((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},4488:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:(t,e,r)=>{var n=r(7854),i=r(8880);t.exports=function(t,e){try{i(n,t,e)}catch(r){n[t]=e}return e}},6340:(t,e,r)=>{"use strict";var n=r(5005),i=r(3070),o=r(5112),a=r(9781),s=o("species");t.exports=function(t){var e=n(t),r=i.f;a&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},8003:(t,e,r)=>{var n=r(3070).f,i=r(6656),o=r(5112)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},6200:(t,e,r)=>{var n=r(2309),i=r(9711),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:(t,e,r)=>{var n=r(7854),i=r(3505),o="__core-js_shared__",a=n[o]||i(o,{});t.exports=a},2309:(t,e,r)=>{var n=r(1913),i=r(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},6707:(t,e,r)=>{var n=r(9670),i=r(3099),o=r(5112)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[o])?e:i(r)}},8710:(t,e,r)=>{var n=r(9958),i=r(4488),o=function(t){return function(e,r){var o,a,s=String(i(e)),u=n(r),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}};t.exports={codeAt:o(!1),charAt:o(!0)}},6091:(t,e,r)=>{var n=r(7293),i=r(1361);t.exports=function(t){return n((function(){return!!i[t]()||"
"!="
"[t]()||i[t].name!==t}))}},3111:(t,e,r)=>{var n=r(4488),i="["+r(1361)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(o,"")),2&t&&(r=r.replace(a,"")),r}};t.exports={start:s(1),end:s(2),trim:s(3)}},261:(t,e,r)=>{var n,i,o,a=r(7854),s=r(7293),u=r(4326),c=r(9974),l=r(490),f=r(317),h=r(6833),p=a.location,g=a.setImmediate,v=a.clearImmediate,y=a.process,d=a.MessageChannel,m=a.Dispatch,x=0,b={},w="onreadystatechange",S=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},k=function(t){return function(){S(t)}},P=function(t){S(t.data)},R=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};g&&v||(g=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return b[++x]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(x),x},v=function(t){delete b[t]},"process"==u(y)?n=function(t){y.nextTick(k(t))}:m&&m.now?n=function(t){m.now(k(t))}:d&&!h?(o=(i=new d).port2,i.port1.onmessage=P,n=c(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(R)||"file:"===p.protocol?n=w in f("script")?function(t){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),S(t)}}:function(t){setTimeout(k(t),0)}:(n=R,a.addEventListener("message",P,!1))),t.exports={set:g,clear:v}},1400:(t,e,r)=>{var n=r(9958),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},5656:(t,e,r)=>{var n=r(8361),i=r(4488);t.exports=function(t){return n(i(t))}},9958:t=>{var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},7466:(t,e,r)=>{var n=r(9958),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},7908:(t,e,r)=>{var n=r(4488);t.exports=function(t){return Object(n(t))}},7593:(t,e,r)=>{var n=r(111);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},1694:(t,e,r)=>{var n={};n[r(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},9711:t=>{var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},3307:(t,e,r)=>{var n=r(133);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:(t,e,r)=>{var n=r(5112);e.f=n},5112:(t,e,r)=>{var n=r(7854),i=r(2309),o=r(6656),a=r(9711),s=r(133),u=r(3307),c=i("wks"),l=n.Symbol,f=u?l:l&&l.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(l,t)?c[t]=l[t]:c[t]=f("Symbol."+t)),c[t]}},1361:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},2222:(t,e,r)=>{"use strict";var n=r(2109),i=r(7293),o=r(3157),a=r(111),s=r(7908),u=r(7466),c=r(6135),l=r(5417),f=r(1194),h=r(5112),p=r(7392),g=h("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",d=p>=51||!i((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),m=f("concat"),x=function(t){if(!a(t))return!1;var e=t[g];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,forced:!d||!m},{concat:function(t){var e,r,n,i,o,a=s(this),f=l(a,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(x(o=-1===e?a:arguments[e])){if(h+(i=u(o.length))>v)throw TypeError(y);for(r=0;r<i;r++,h++)r in o&&c(f,h,o[r])}else{if(h>=v)throw TypeError(y);c(f,h++,o)}return f.length=h,f}})},6541:(t,e,r)=>{"use strict";var n=r(2109),i=r(2092).every,o=r(9341),a=r(9207),s=o("every"),u=a("every");n({target:"Array",proto:!0,forced:!s||!u},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},3290:(t,e,r)=>{var n=r(2109),i=r(1285),o=r(1223);n({target:"Array",proto:!0},{fill:i}),o("fill")},7327:(t,e,r)=>{"use strict";var n=r(2109),i=r(2092).filter,o=r(1194),a=r(9207),s=o("filter"),u=a("filter");n({target:"Array",proto:!0,forced:!s||!u},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},9554:(t,e,r)=>{"use strict";var n=r(2109),i=r(8533);n({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},1038:(t,e,r)=>{var n=r(2109),i=r(8457);n({target:"Array",stat:!0,forced:!r(7072)((function(t){Array.from(t)}))},{from:i})},6699:(t,e,r)=>{"use strict";var n=r(2109),i=r(1318).includes,o=r(1223);n({target:"Array",proto:!0,forced:!r(9207)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},2772:(t,e,r)=>{"use strict";var n=r(2109),i=r(1318).indexOf,o=r(9341),a=r(9207),s=[].indexOf,u=!!s&&1/[1].indexOf(1,-0)<0,c=o("indexOf"),l=a("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:u||!c||!l},{indexOf:function(t){return u?s.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},6992:(t,e,r)=>{"use strict";var n=r(5656),i=r(1223),o=r(7497),a=r(9909),s=r(654),u="Array Iterator",c=a.set,l=a.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=l(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"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9600:(t,e,r)=>{"use strict";var n=r(2109),i=r(8361),o=r(5656),a=r(9341),s=[].join,u=i!=Object,c=a("join",",");n({target:"Array",proto:!0,forced:u||!c},{join:function(t){return s.call(o(this),void 0===t?",":t)}})},1249:(t,e,r)=>{"use strict";var n=r(2109),i=r(2092).map,o=r(1194),a=r(9207),s=o("map"),u=a("map");n({target:"Array",proto:!0,forced:!s||!u},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},5827:(t,e,r)=>{"use strict";var n=r(2109),i=r(3671).left,o=r(9341),a=r(9207),s=o("reduce"),u=a("reduce",{1:0});n({target:"Array",proto:!0,forced:!s||!u},{reduce:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},5069:(t,e,r)=>{"use strict";var n=r(2109),i=r(3157),o=[].reverse,a=[1,2];n({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},7042:(t,e,r)=>{"use strict";var n=r(2109),i=r(111),o=r(3157),a=r(1400),s=r(7466),u=r(5656),c=r(6135),l=r(5112),f=r(1194),h=r(9207),p=f("slice"),g=h("slice",{ACCESSORS:!0,0:0,1:2}),v=l("species"),y=[].slice,d=Math.max;n({target:"Array",proto:!0,forced:!p||!g},{slice:function(t,e){var r,n,l,f=u(this),h=s(f.length),p=a(t,h),g=a(void 0===e?h:e,h);if(o(f)&&("function"!=typeof(r=f.constructor)||r!==Array&&!o(r.prototype)?i(r)&&null===(r=r[v])&&(r=void 0):r=void 0,r===Array||void 0===r))return y.call(f,p,g);for(n=new(void 0===r?Array:r)(d(g-p,0)),l=0;p<g;p++,l++)p in f&&c(n,l,f[p]);return n.length=l,n}})},5212:(t,e,r)=>{"use strict";var n=r(2109),i=r(2092).some,o=r(9341),a=r(9207),s=o("some"),u=a("some");n({target:"Array",proto:!0,forced:!s||!u},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},8309:(t,e,r)=>{var n=r(9781),i=r(3070).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,u="name";n&&!(u in o)&&i(o,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},1532:(t,e,r)=>{"use strict";var n=r(7710),i=r(5631);t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},9653:(t,e,r)=>{"use strict";var n=r(9781),i=r(7854),o=r(4705),a=r(1320),s=r(6656),u=r(4326),c=r(9587),l=r(7593),f=r(7293),h=r(30),p=r(8006).f,g=r(1236).f,v=r(3070).f,y=r(3111).trim,d="Number",m=i.Number,x=m.prototype,b=u(h(x))==d,w=function(t){var e,r,n,i,o,a,s,u,c=l(t,!1);if("string"==typeof c&&c.length>2)if(43===(e=(c=y(c)).charCodeAt(0))||45===e){if(88===(r=c.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+c}for(a=(o=c.slice(2)).length,s=0;s<a;s++)if((u=o.charCodeAt(s))<48||u>i)return NaN;return parseInt(o,n)}return+c};if(o(d,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var S,k=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof k&&(b?f((function(){x.valueOf.call(r)})):u(r)!=d)?c(new m(w(e)),r,k):w(e)},P=n?p(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),R=0;P.length>R;R++)s(m,S=P[R])&&!s(k,S)&&v(k,S,g(m,S));k.prototype=x,x.constructor=k,a(i,d,k)}},5003:(t,e,r)=>{var n=r(2109),i=r(7293),o=r(5656),a=r(1236).f,s=r(9781),u=i((function(){a(1)}));n({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},9337:(t,e,r)=>{var n=r(2109),i=r(9781),o=r(3887),a=r(5656),s=r(1236),u=r(6135);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=a(t),i=s.f,c=o(n),l={},f=0;c.length>f;)void 0!==(r=i(n,e=c[f++]))&&u(l,e,r);return l}})},7941:(t,e,r)=>{var n=r(2109),i=r(7908),o=r(1956);n({target:"Object",stat:!0,forced:r(7293)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},1539:(t,e,r)=>{var n=r(1694),i=r(1320),o=r(288);n||i(Object.prototype,"toString",o,{unsafe:!0})},8674:(t,e,r)=>{"use strict";var n,i,o,a,s=r(2109),u=r(1913),c=r(7854),l=r(5005),f=r(3366),h=r(1320),p=r(2248),g=r(8003),v=r(6340),y=r(111),d=r(3099),m=r(5787),x=r(4326),b=r(2788),w=r(408),S=r(7072),k=r(6707),P=r(261).set,R=r(5948),A=r(9478),C=r(842),E=r(8523),T=r(2534),O=r(9909),M=r(4705),D=r(5112),V=r(7392),L=D("species"),N="Promise",j=O.get,I=O.set,z=O.getterFor(N),$=f,B=c.TypeError,F=c.document,_=c.process,q=l("fetch"),G=E.f,U=G,W="process"==x(_),H=!!(F&&F.createEvent&&c.dispatchEvent),X="unhandledrejection",Y=M(N,(function(){if(!(b($)!==String($))){if(66===V)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!$.prototype.finally)return!0;if(V>=51&&/native code/.test($))return!1;var t=$.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[L]=e,!(t.then((function(){}))instanceof e)})),Q=Y||!S((function(t){$.all(t).catch((function(){}))})),Z=function(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e},K=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;R((function(){for(var i=e.value,o=1==e.state,a=0;n.length>a;){var s,u,c,l=n[a++],f=o?l.ok:l.fail,h=l.resolve,p=l.reject,g=l.domain;try{f?(o||(2===e.rejection&&rt(t,e),e.rejection=1),!0===f?s=i:(g&&g.enter(),s=f(i),g&&(g.exit(),c=!0)),s===l.promise?p(B("Promise-chain cycle")):(u=Z(s))?u.call(s,h,p):h(s)):p(i)}catch(t){g&&!c&&g.exit(),p(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&tt(t,e)}))}},J=function(t,e,r){var n,i;H?((n=F.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:r},(i=c["on"+t])?i(n):t===X&&C("Unhandled promise rejection",r)},tt=function(t,e){P.call(c,(function(){var r,n=e.value;if(et(e)&&(r=T((function(){W?_.emit("unhandledRejection",n,t):J(X,t,n)})),e.rejection=W||et(e)?2:1,r.error))throw r.value}))},et=function(t){return 1!==t.rejection&&!t.parent},rt=function(t,e){P.call(c,(function(){W?_.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)}))},nt=function(t,e,r,n){return function(i){t(e,r,i,n)}},it=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,K(t,e,!0))},ot=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw B("Promise can't be resolved itself");var i=Z(r);i?R((function(){var n={done:!1};try{i.call(r,nt(ot,t,n,e),nt(it,t,n,e))}catch(r){it(t,n,r,e)}})):(e.value=r,e.state=1,K(t,e,!1))}catch(r){it(t,{done:!1},r,e)}}};Y&&($=function(t){m(this,$,N),d(t),n.call(this);var e=j(this);try{t(nt(ot,this,e),nt(it,this,e))}catch(t){it(this,e,t)}},(n=function(t){I(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p($.prototype,{then:function(t,e){var r=z(this),n=G(k(this,$));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=W?_.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&K(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n,e=j(t);this.promise=t,this.resolve=nt(ot,t,e),this.reject=nt(it,t,e)},E.f=G=function(t){return t===$||t===o?new i(t):U(t)},u||"function"!=typeof f||(a=f.prototype.then,h(f.prototype,"then",(function(t,e){var r=this;return new $((function(t,e){a.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof q&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return A($,q.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:Y},{Promise:$}),g($,N,!1,!0),v(N),o=l(N),s({target:N,stat:!0,forced:Y},{reject:function(t){var e=G(this);return e.reject.call(void 0,t),e.promise}}),s({target:N,stat:!0,forced:u||Y},{resolve:function(t){return A(u&&this===o?$:this,t)}}),s({target:N,stat:!0,forced:Q},{all:function(t){var e=this,r=G(e),n=r.resolve,i=r.reject,o=T((function(){var r=d(e.resolve),o=[],a=0,s=1;w(t,(function(t){var u=a++,c=!1;o.push(void 0),s++,r.call(e,t).then((function(t){c||(c=!0,o[u]=t,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise},race:function(t){var e=this,r=G(e),n=r.reject,i=T((function(){var i=d(e.resolve);w(t,(function(t){i.call(e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},6535:(t,e,r)=>{var n=r(2109),i=r(5005),o=r(3099),a=r(9670),s=r(7293),u=i("Reflect","apply"),c=Function.apply;n({target:"Reflect",stat:!0,forced:!s((function(){u((function(){}))}))},{apply:function(t,e,r){return o(t),a(r),u?u(t,e,r):c.call(t,e,r)}})},2419:(t,e,r)=>{var n=r(2109),i=r(5005),o=r(3099),a=r(9670),s=r(111),u=r(30),c=r(7065),l=r(7293),f=i("Reflect","construct"),h=l((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),p=!l((function(){f((function(){}))})),g=h||p;n({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(p&&!h)return f(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}var i=r.prototype,l=u(s(i)?i:Object.prototype),g=Function.apply.call(t,l,e);return s(g)?g:l}})},2586:(t,e,r)=>{var n=r(2109),i=r(9670),o=r(1236).f;n({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=o(i(t),e);return!(r&&!r.configurable)&&delete t[e]}})},9361:(t,e,r)=>{var n=r(2109),i=r(9670),o=r(9518);n({target:"Reflect",stat:!0,sham:!r(8544)},{getPrototypeOf:function(t){return o(i(t))}})},4916:(t,e,r)=>{"use strict";var n=r(2109),i=r(2261);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},9714:(t,e,r)=>{"use strict";var n=r(1320),i=r(9670),o=r(7293),a=r(7066),s="toString",u=RegExp.prototype,c=u.toString,l=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=s;(l||f)&&n(RegExp.prototype,s,(function(){var t=i(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in u)?a.call(t):r)}),{unsafe:!0})},2023:(t,e,r)=>{"use strict";var n=r(2109),i=r(3929),o=r(4488);n({target:"String",proto:!0,forced:!r(4964)("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},8783:(t,e,r)=>{"use strict";var n=r(8710).charAt,i=r(9909),o=r(654),a="String Iterator",s=i.set,u=i.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=u(this),r=e.string,i=e.index;return i>=r.length?{value:void 0,done:!0}:(t=n(r,i),e.index+=t.length,{value:t,done:!1})}))},4723:(t,e,r)=>{"use strict";var n=r(7007),i=r(9670),o=r(7466),a=r(4488),s=r(1530),u=r(7651);n("match",1,(function(t,e,r){return[function(e){var r=a(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var a=i(t),c=String(this);if(!a.global)return u(a,c);var l=a.unicode;a.lastIndex=0;for(var f,h=[],p=0;null!==(f=u(a,c));){var g=String(f[0]);h[p]=g,""===g&&(a.lastIndex=s(c,o(a.lastIndex),l)),p++}return 0===p?null:h}]}))},5306:(t,e,r)=>{"use strict";var n=r(7007),i=r(9670),o=r(7908),a=r(7466),s=r(9958),u=r(4488),c=r(1530),l=r(7651),f=Math.max,h=Math.min,p=Math.floor,g=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(t,e,r,n){var y=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,d=n.REPLACE_KEEPS_$0,m=y?"$":"$0";return[function(r,n){var i=u(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,n):e.call(String(i),r,n)},function(t,n){if(!y&&d||"string"==typeof n&&-1===n.indexOf(m)){var o=r(e,t,this,n);if(o.done)return o.value}var u=i(t),p=String(this),g="function"==typeof n;g||(n=String(n));var v=u.global;if(v){var b=u.unicode;u.lastIndex=0}for(var w=[];;){var S=l(u,p);if(null===S)break;if(w.push(S),!v)break;""===String(S[0])&&(u.lastIndex=c(p,a(u.lastIndex),b))}for(var k,P="",R=0,A=0;A<w.length;A++){S=w[A];for(var C=String(S[0]),E=f(h(s(S.index),p.length),0),T=[],O=1;O<S.length;O++)T.push(void 0===(k=S[O])?k:String(k));var M=S.groups;if(g){var D=[C].concat(T,E,p);void 0!==M&&D.push(M);var V=String(n.apply(void 0,D))}else V=x(C,p,E,T,M,n);E>=R&&(P+=p.slice(R,E)+V,R=E+C.length)}return P+p.slice(R)}];function x(t,r,n,i,a,s){var u=n+t.length,c=i.length,l=v;return void 0!==a&&(a=o(a),l=g),e.call(s,l,(function(e,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,n);case"'":return r.slice(u);case"<":s=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return e;if(l>c){var f=p(l/10);return 0===f?e:f<=c?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):e}s=i[l-1]}return void 0===s?"":s}))}}))},3123:(t,e,r)=>{"use strict";var n=r(7007),i=r(7850),o=r(9670),a=r(4488),s=r(6707),u=r(1530),c=r(7466),l=r(7651),f=r(2261),h=r(7293),p=[].push,g=Math.min,v=4294967295,y=!h((function(){return!RegExp(v,"y")}));n("split",2,(function(t,e,r){var n;return n="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 n=String(a(this)),o=void 0===r?v:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!i(t))return e.call(n,t,o);for(var s,u,c,l=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,y=new RegExp(t.source,h+"g");(s=f.call(y,n))&&!((u=y.lastIndex)>g&&(l.push(n.slice(g,s.index)),s.length>1&&s.index<n.length&&p.apply(l,s.slice(1)),c=s[0].length,g=u,l.length>=o));)y.lastIndex===s.index&&y.lastIndex++;return g===n.length?!c&&y.test("")||l.push(""):l.push(n.slice(g)),l.length>o?l.slice(0,o):l}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=a(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,i,r):n.call(String(i),e,r)},function(t,i){var a=r(n,t,this,i,n!==e);if(a.done)return a.value;var f=o(t),h=String(this),p=s(f,RegExp),d=f.unicode,m=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(y?"y":"g"),x=new p(y?f:"^(?:"+f.source+")",m),b=void 0===i?v:i>>>0;if(0===b)return[];if(0===h.length)return null===l(x,h)?[h]:[];for(var w=0,S=0,k=[];S<h.length;){x.lastIndex=y?S:0;var P,R=l(x,y?h:h.slice(S));if(null===R||(P=g(c(x.lastIndex+(y?0:S)),h.length))===w)S=u(h,S,d);else{if(k.push(h.slice(w,S)),k.length===b)return k;for(var A=1;A<=R.length-1;A++)if(k.push(R[A]),k.length===b)return k;S=w=P}}return k.push(h.slice(w)),k}]}),!y)},6755:(t,e,r)=>{"use strict";var n,i=r(2109),o=r(1236).f,a=r(7466),s=r(3929),u=r(4488),c=r(4964),l=r(1913),f="".startsWith,h=Math.min,p=c("startsWith");i({target:"String",proto:!0,forced:!!(l||p||(n=o(String.prototype,"startsWith"),!n||n.writable))&&!p},{startsWith:function(t){var e=String(u(this));s(t);var r=a(h(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return f?f.call(e,n,r):e.slice(r,r+n.length)===n}})},3210:(t,e,r)=>{"use strict";var n=r(2109),i=r(3111).trim;n({target:"String",proto:!0,forced:r(6091)("trim")},{trim:function(){return i(this)}})},1817:(t,e,r)=>{"use strict";var n=r(2109),i=r(9781),o=r(7854),a=r(6656),s=r(111),u=r(3070).f,c=r(9920),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var f={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new l(t):void 0===t?l():l(t);return""===t&&(f[e]=!0),e};c(h,l);var p=h.prototype=l.prototype;p.constructor=h;var g=p.toString,v="Symbol(test)"==String(l("test")),y=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=g.call(t);if(a(f,t))return"";var r=v?e.slice(7,-1):e.replace(y,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},2165:(t,e,r)=>{r(7235)("iterator")},2526:(t,e,r)=>{"use strict";var n=r(2109),i=r(7854),o=r(5005),a=r(1913),s=r(9781),u=r(133),c=r(3307),l=r(7293),f=r(6656),h=r(3157),p=r(111),g=r(9670),v=r(7908),y=r(5656),d=r(7593),m=r(9114),x=r(30),b=r(1956),w=r(8006),S=r(1156),k=r(5181),P=r(1236),R=r(3070),A=r(5296),C=r(8880),E=r(1320),T=r(2309),O=r(6200),M=r(3501),D=r(9711),V=r(5112),L=r(6061),N=r(7235),j=r(8003),I=r(9909),z=r(2092).forEach,$=O("hidden"),B="Symbol",F=V("toPrimitive"),_=I.set,q=I.getterFor(B),G=Object.prototype,U=i.Symbol,W=o("JSON","stringify"),H=P.f,X=R.f,Y=S.f,Q=A.f,Z=T("symbols"),K=T("op-symbols"),J=T("string-to-symbol-registry"),tt=T("symbol-to-string-registry"),et=T("wks"),rt=i.QObject,nt=!rt||!rt.prototype||!rt.prototype.findChild,it=s&&l((function(){return 7!=x(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=H(G,e);n&&delete G[e],X(t,e,r),n&&t!==G&&X(G,e,n)}:X,ot=function(t,e){var r=Z[t]=x(U.prototype);return _(r,{type:B,tag:t,description:e}),s||(r.description=e),r},at=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof U},st=function(t,e,r){t===G&&st(K,e,r),g(t);var n=d(e,!0);return g(r),f(Z,n)?(r.enumerable?(f(t,$)&&t[$][n]&&(t[$][n]=!1),r=x(r,{enumerable:m(0,!1)})):(f(t,$)||X(t,$,m(1,{})),t[$][n]=!0),it(t,n,r)):X(t,n,r)},ut=function(t,e){g(t);var r=y(e),n=b(r).concat(ht(r));return z(n,(function(e){s&&!ct.call(r,e)||st(t,e,r[e])})),t},ct=function(t){var e=d(t,!0),r=Q.call(this,e);return!(this===G&&f(Z,e)&&!f(K,e))&&(!(r||!f(this,e)||!f(Z,e)||f(this,$)&&this[$][e])||r)},lt=function(t,e){var r=y(t),n=d(e,!0);if(r!==G||!f(Z,n)||f(K,n)){var i=H(r,n);return!i||!f(Z,n)||f(r,$)&&r[$][n]||(i.enumerable=!0),i}},ft=function(t){var e=Y(y(t)),r=[];return z(e,(function(t){f(Z,t)||f(M,t)||r.push(t)})),r},ht=function(t){var e=t===G,r=Y(e?K:y(t)),n=[];return z(r,(function(t){!f(Z,t)||e&&!f(G,t)||n.push(Z[t])})),n};(u||(U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=D(t),r=function(t){this===G&&r.call(K,t),f(this,$)&&f(this[$],e)&&(this[$][e]=!1),it(this,e,m(1,t))};return s&&nt&&it(G,e,{configurable:!0,set:r}),ot(e,t)},E(U.prototype,"toString",(function(){return q(this).tag})),E(U,"withoutSetter",(function(t){return ot(D(t),t)})),A.f=ct,R.f=st,P.f=lt,w.f=S.f=ft,k.f=ht,L.f=function(t){return ot(V(t),t)},s&&(X(U.prototype,"description",{configurable:!0,get:function(){return q(this).description}}),a||E(G,"propertyIsEnumerable",ct,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),z(b(et),(function(t){N(t)})),n({target:B,stat:!0,forced:!u},{for:function(t){var e=String(t);if(f(J,e))return J[e];var r=U(e);return J[e]=r,tt[r]=e,r},keyFor:function(t){if(!at(t))throw TypeError(t+" is not a symbol");if(f(tt,t))return tt[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(t,e){return void 0===e?x(t):ut(x(t),e)},defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:lt}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ft,getOwnPropertySymbols:ht}),n({target:"Object",stat:!0,forced:l((function(){k.f(1)}))},{getOwnPropertySymbols:function(t){return k.f(v(t))}}),W)&&n({target:"JSON",stat:!0,forced:!u||l((function(){var t=U();return"[null]"!=W([t])||"{}"!=W({a:t})||"{}"!=W(Object(t))}))},{stringify:function(t,e,r){for(var n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e,(p(e)||void 0!==t)&&!at(t))return h(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!at(e))return e}),i[1]=e,W.apply(null,i)}});U.prototype[F]||C(U.prototype,F,U.prototype.valueOf),j(U,B),M[$]=!0},4747:(t,e,r)=>{var n=r(7854),i=r(8324),o=r(8533),a=r(8880);for(var s in i){var u=n[s],c=u&&u.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(t){c.forEach=o}}},3948:(t,e,r)=>{var n=r(7854),i=r(8324),o=r(6992),a=r(8880),s=r(5112),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var f in i){var h=n[f],p=h&&h.prototype;if(p){if(p[u]!==l)try{a(p,u,l)}catch(t){p[u]=l}if(p[c]||a(p,c,f),i[f])for(var g in o)if(p[g]!==o[g])try{a(p,g,o[g])}catch(t){p[g]=o[g]}}}},75:function(t){(function(){var e,r,n,i,o,a;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(t.exports=function(){return(e()-o)/1e6},r=process.hrtime,i=(e=function(){var t;return 1e9*(t=r())[0]+t[1]})(),a=1e9*process.uptime(),o=i-a):Date.now?(t.exports=function(){return Date.now()-n},n=Date.now()):(t.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},4087:(t,e,r)=>{for(var n=r(75),i="undefined"==typeof window?r.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c<o.length;c++)s=i[o[c]+"Request"+a],u=i[o[c]+"Cancel"+a]||i[o[c]+"CancelRequest"+a];if(!s||!u){var l=0,f=0,h=[];s=function(t){if(0===h.length){var e=n(),r=Math.max(0,16.666666666666668-(e-l));l=r+e,setTimeout((function(){var t=h.slice(0);h.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(l)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return h.push({handle:++f,callback:t,cancelled:!1}),f},u=function(t){for(var e=0;e<h.length;e++)h[e].handle===t&&(h[e].cancelled=!0)}}t.exports=function(t){return s.call(i,t)},t.exports.cancel=function(){u.apply(i,arguments)},t.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=u}},5666:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,o=Object.create(i.prototype),a=new E(n||[]);return o._invoke=function(t,e,r){var n=f;return function(i,o){if(n===p)throw new Error("Generator is already running");if(n===g){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=R(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=l(t,e,r);if("normal"===u.type){if(n=r.done?g:h,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=g,r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",p="executing",g="completed",v={};function y(){}function d(){}function m(){}var x={};x[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==r&&n.call(w,o)&&(x=w);var S=m.prototype=y.prototype=Object.create(x);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function R(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,R(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=l(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function T(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:O}}function O(){return{value:e,done:!0}}return d.prototype=S.constructor=m,m.constructor=d,d.displayName=u(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,s,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},k(P.prototype),P.prototype[a]=function(){return this},t.AsyncIterator=P,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new P(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(S),u(S,s,"Generator"),S[o]=function(){return this},S.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},6131:t=>{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,o=r[n].process,a=i.exec(t);if(a){var s=o(a);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[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,o=0;o<i.length;o++)t[t.length]=i[o];for(var a in e)t[t.length]=a;var s=document.createElement("ul");s.setAttribute("id","rgbcolor-examples");for(n=0;n<t.length;n++)try{var u=document.createElement("li"),c=new RGBColor(t[n]),l=document.createElement("div");l.style.cssText="margin: 3px; border: 1px solid black; background:"+c.toHex()+"; color:"+c.toHex(),l.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[n]+" -> "+c.toRGB()+" -> "+c.toHex());u.appendChild(l),u.appendChild(f),s.appendChild(u)}catch(t){}return s}}}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};return(()=>{"use strict";r.d(n,{default:()=>Gr});r(1249),r(4916),r(4723),r(5306),r(6755),r(9600);function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function e(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}function i(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(t,r)||e(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r(2526),r(7327),r(9554),r(5003),r(9337),r(7941),r(4747);var o=r(7757),a=r.n(o);function s(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,u,"next",t)}function u(t){s(o,n,i,a,u,"throw",t)}a(void 0)}))}}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}r(2222),r(6541),r(5827),r(1539),r(8674),r(3123);var p=r(4087),g=r.n(p),v=(r(8309),r(6131)),y=r.n(v);r(2419),r(9714);function d(t){return d="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},d(t)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function w(t,e){return w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},w(t,e)}function S(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}r(1038),r(6699),r(5212),r(2023),r(8783),r(3210);function k(r){return function(e){if(Array.isArray(e))return t(e)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||e(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r(2772),r(5069);function P(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=b(t)););return t}function R(){return R="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=P(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},R.apply(this,arguments)}r(9653),r(3290),r(2586),r(6992),r(3948),r(1817),r(2165),r(7042),r(1532),r(6535),r(9361);function A(t){return A="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},A(t)}var C=[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],E=[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 T(t,e,r,n,i){if("string"==typeof t&&(t=document.getElementById(t)),!t||"object"!==A(t)||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=t.getContext("2d");try{return o.getImageData(e,r,n,i)}catch(t){throw new Error("unable to access image data: "+t)}}function O(t,e,r,n,i,o){if(!(isNaN(o)||o<1)){o|=0;var a=T(t,e,r,n,i);a=function(t,e,r,n,i,o){var a,s,u,c,l,f,h,p,g,v,y,d,m,x,b,w,S,k,P,R,A,T,O,D,V,L=t.data,N=2*o+1,j=n-1,I=i-1,z=o+1,$=z*(z+1)/2,B=new M,F=B;for(u=1;u<N;u++)F=F.next=new M,u===z&&(V=F);F.next=B;var _=null,q=null;h=f=0;var G=C[o],U=E[o];for(s=0;s<i;s++){for(w=S=k=P=p=g=v=y=0,d=z*(R=L[f]),m=z*(A=L[f+1]),x=z*(T=L[f+2]),b=z*(O=L[f+3]),p+=$*R,g+=$*A,v+=$*T,y+=$*O,F=B,u=0;u<z;u++)F.r=R,F.g=A,F.b=T,F.a=O,F=F.next;for(u=1;u<z;u++)c=f+((j<u?j:u)<<2),p+=(F.r=R=L[c])*(D=z-u),g+=(F.g=A=L[c+1])*D,v+=(F.b=T=L[c+2])*D,y+=(F.a=O=L[c+3])*D,w+=R,S+=A,k+=T,P+=O,F=F.next;for(_=B,q=V,a=0;a<n;a++)L[f+3]=O=y*G>>U,0!==O?(O=255/O,L[f]=(p*G>>U)*O,L[f+1]=(g*G>>U)*O,L[f+2]=(v*G>>U)*O):L[f]=L[f+1]=L[f+2]=0,p-=d,g-=m,v-=x,y-=b,d-=_.r,m-=_.g,x-=_.b,b-=_.a,c=h+((c=a+o+1)<j?c:j)<<2,p+=w+=_.r=L[c],g+=S+=_.g=L[c+1],v+=k+=_.b=L[c+2],y+=P+=_.a=L[c+3],_=_.next,d+=R=q.r,m+=A=q.g,x+=T=q.b,b+=O=q.a,w-=R,S-=A,k-=T,P-=O,q=q.next,f+=4;h+=n}for(a=0;a<n;a++){for(S=k=P=w=g=v=y=p=0,d=z*(R=L[f=a<<2]),m=z*(A=L[f+1]),x=z*(T=L[f+2]),b=z*(O=L[f+3]),p+=$*R,g+=$*A,v+=$*T,y+=$*O,F=B,u=0;u<z;u++)F.r=R,F.g=A,F.b=T,F.a=O,F=F.next;for(l=n,u=1;u<=o;u++)f=l+a<<2,p+=(F.r=R=L[f])*(D=z-u),g+=(F.g=A=L[f+1])*D,v+=(F.b=T=L[f+2])*D,y+=(F.a=O=L[f+3])*D,w+=R,S+=A,k+=T,P+=O,F=F.next,u<I&&(l+=n);for(f=a,_=B,q=V,s=0;s<i;s++)L[(c=f<<2)+3]=O=y*G>>U,O>0?(O=255/O,L[c]=(p*G>>U)*O,L[c+1]=(g*G>>U)*O,L[c+2]=(v*G>>U)*O):L[c]=L[c+1]=L[c+2]=0,p-=d,g-=m,v-=x,y-=b,d-=_.r,m-=_.g,x-=_.b,b-=_.a,c=a+((c=s+z)<I?c:I)*n<<2,p+=w+=_.r=L[c],g+=S+=_.g=L[c+1],v+=k+=_.b=L[c+2],y+=P+=_.a=L[c+3],_=_.next,d+=R=q.r,m+=A=q.g,x+=T=q.b,b+=O=q.a,w-=R,S-=A,k-=T,P-=O,q=q.next,f+=n}return t}(a,0,0,n,i,o),t.getContext("2d").putImageData(a,e,r)}}var M=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function D(t){return t.replace(/(?!\u3000)\s+/gm," ")}function V(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var L=/^[A-Z-]+$/;function N(t){return L.test(t)?t.toLowerCase():t}function j(t){var e=t.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return e[2]||e[3]||e[4]}var I=/(\[[^\]]+\])/g,z=/(#[^\s\+>~\.\[:]+)/g,$=/(\.[^\s\+>~\.\[:]+)/g,B=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,F=/(:[\w-]+\([^\)]*\))/gi,_=/(:[^\s\+>~\.\[:]+)/g,q=/([^\s\+>~\.\[:]+)/g;function G(t,e){var r=t.match(e);return r?[t.replace(e," "),r.length]:[t,0]}var U=1e-8;function W(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function H(t,e){return(t[0]*e[0]+t[1]*e[1])/(W(t)*W(e))}function X(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(H(t,e))}function Y(t){return t*t*t}function Q(t){return 3*t*t*(1-t)}function Z(t){return 3*t*(1-t)*(1-t)}function K(t){return(1-t)*(1-t)*(1-t)}function J(t){return t*t}function tt(t){return 2*t*(1-t)}function et(t){return(1-t)*(1-t)}!function(t,e){t(e={exports:{}},e.exports)}((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),a=new C(n||[]);return o._invoke=function(t,e,r){var n=l;return function(i,o){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return T()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=P(a,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=c(t,e,r);if("normal"===u.type){if(n=r.done?p:f,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",f="suspendedYield",h="executing",p="completed",g={};function v(){}function y(){}function d(){}var m={};m[o]=function(){return this};var x=Object.getPrototypeOf,b=x&&x(x(E([])));b&&b!==r&&n.call(b,o)&&(m=b);var w=d.prototype=v.prototype=Object.create(m);function S(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function k(t,e){function r(i,o,a,s){var u=c(t[i],t,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function P(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method))return g;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=c(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function E(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return y.prototype=w.constructor=d,d.constructor=y,d[s]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},S(k.prototype),k.prototype[a]=function(){return this},t.AsyncIterator=k,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new k(u(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(w),w[s]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;A(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:E(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}));var rt=function(){function t(e,r,n){l(this,t),this.document=e,this.name=r,this.value=n,this.isNormalizedColor=!1}return h(t,[{key:"hasValue",value:function(){var t=this.value;return null!==t&&""!==t&&0!==t&&void 0!==t}},{key:"isString",value:function(t){var e=this.value,r="string"==typeof e;return r&&t?t.test(e):r}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case/px$/.test(t):case/^[0-9]+$/.test(t):return!0;default:return!1}}},{key:"setValue",value:function(t){return this.value=t,this}},{key:"getValue",value:function(t){return void 0===t||this.hasValue()?this.value:t}},{key:"getNumber",value:function(t){if(!this.hasValue())return void 0===t?0:parseFloat(t);var e=this.value,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}},{key:"getString",value:function(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}},{key:"getColor",value:function(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=function(t){if(!t.startsWith("rgb"))return t;var e=3;return t.replace(/\d+(\.\d+)?/g,(function(t,r){return e--&&r?String(Math.round(parseFloat(t))):t}))}(e),this.value=e),e}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var r="boolean"==typeof t?[void 0,t]:[t],n=i(r,2),o=n[0],a=n[1],s=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 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(/%$/)&&a:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(o);default:var u=this.getNumber();return e&&u<1?u*s.computeSize(o):u}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var t=this.getString(),e=t.match(/#([^\)'"]+)/);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}},{key:"getFillStyleDefinition",value:function(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}},{key:"getTextBaseline",value:function(){return this.hasValue()?t.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(e){for(var r=this.getColor(),n=r.length,i=0,o=0;o<n&&(","===r[o]&&i++,3!==i);o++);if(e.hasValue()&&this.isString()&&3!==i){var a=new(y())(r);a.ok&&(a.alpha=e.getNumber(),r=a.toRGBA())}return new t(this.document,this.name,r)}}],[{key:"empty",value:function(e){return new t(e,"EMPTY","")}}]),t}();rt.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var nt=function(){function t(){l(this,t),this.viewPorts=[]}return h(t,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(t,e){this.viewPorts.push({width:t,height:e})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getCurrent",value:function(){var t=this.viewPorts;return t[t.length-1]}},{key:"computeSize",value:function(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)}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}}]),t}(),it=function(){function t(e,r){l(this,t),this.x=e,this.y=r}return h(t,[{key:"angleTo",value:function(t){return Math.atan2(t.y-this.y,t.x-this.x)}},{key:"applyTransform",value:function(t){var e=this.x,r=this.y,n=e*t[0]+r*t[2]+t[4],i=e*t[1]+r*t[3]+t[5];this.x=n,this.y=i}}],[{key:"parse",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=V(e),o=i(n,2),a=o[0],s=void 0===a?r:a,u=o[1],c=void 0===u?r:u;return new t(s,c)}},{key:"parseScale",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=V(e),o=i(n,2),a=o[0],s=void 0===a?r:a,u=o[1],c=void 0===u?s:u;return new t(s,c)}},{key:"parsePath",value:function(e){for(var r=V(e),n=r.length,i=[],o=0;o<n;o+=2)i.push(new t(r[o],r[o+1]));return i}}]),t}(),ot=function(){function t(e){l(this,t),this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}return h(t,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){if(!this.working){var t=this.screen,e=this.onClick,r=this.onMouseMove,n=t.ctx.canvas;n.onclick=e,n.onmousemove=r,this.working=!0}}},{key:"stop",value:function(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}},{key:"hasEvents",value:function(){return this.working&&this.events.length>0}},{key:"runEvents",value:function(){if(this.working){var t=this.screen,e=this.events,r=this.eventElements,n=t.ctx.canvas.style;n&&(n.cursor=""),e.forEach((function(t,e){for(var n=t.run,i=r[e];i;)n(i),i=i.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function(t,e){if(this.working&&e){var r=this.events,n=this.eventElements;r.forEach((function(r,i){var o=r.x,a=r.y;!n[i]&&e.isPointInPath&&e.isPointInPath(o,a)&&(n[i]=t)}))}}},{key:"checkBoundingBox",value:function(t,e){if(this.working&&e){var r=this.events,n=this.eventElements;r.forEach((function(r,i){var o=r.x,a=r.y;!n[i]&&e.isPointInBox(o,a)&&(n[i]=t)}))}}},{key:"mapXY",value:function(t,e){for(var r=this.screen,n=r.window,i=r.ctx,o=new it(t,e),a=i.canvas;a;)o.x-=a.offsetLeft,o.y-=a.offsetTop,a=a.offsetParent;return n.scrollX&&(o.x+=n.scrollX),n.scrollY&&(o.y+=n.scrollY),o}},{key:"onClick",value:function(t){var e=this.mapXY((t||event).clientX,(t||event).clientY),r=e.x,n=e.y;this.events.push({type:"onclick",x:r,y:n,run:function(t){t.onClick&&t.onClick()}})}},{key:"onMouseMove",value:function(t){var e=this.mapXY((t||event).clientX,(t||event).clientY),r=e.x,n=e.y;this.events.push({type:"onmousemove",x:r,y:n,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),t}(),at="undefined"!=typeof window?window:null,st="undefined"!=typeof fetch?fetch.bind(void 0):null,ut=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.fetch,i=void 0===n?st:n,o=r.window,a=void 0===o?at:o;l(this,t),this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new nt,this.mouse=new ot(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=a,this.fetch=i}return h(t,[{key:"wait",value:function(t){this.waits.push(t)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var t=this.waits.every((function(t){return t()}));return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}},{key:"setDefaults",value:function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}},{key:"setViewBox",value:function(t){var e=t.document,r=t.ctx,n=t.aspectRatio,o=t.width,a=t.desiredWidth,s=t.height,u=t.desiredHeight,c=t.minX,l=void 0===c?0:c,f=t.minY,h=void 0===f?0:f,p=t.refX,g=t.refY,v=t.clip,y=void 0!==v&&v,d=t.clipX,m=void 0===d?0:d,x=t.clipY,b=void 0===x?0:x,w=i(D(n).replace(/^defer\s/,"").split(" "),2),S=w[0]||"xMidYMid",k=w[1]||"meet",P=o/a,R=s/u,A=Math.min(P,R),C=Math.max(P,R),E=a,T=u;"meet"===k&&(E*=A,T*=A),"slice"===k&&(E*=C,T*=C);var O=new rt(e,"refX",p),M=new rt(e,"refY",g),V=O.hasValue()&&M.hasValue();if(V&&r.translate(-A*O.getPixels("x"),-A*M.getPixels("y")),y){var L=A*m,N=A*b;r.beginPath(),r.moveTo(L,N),r.lineTo(o,N),r.lineTo(o,s),r.lineTo(L,s),r.closePath(),r.clip()}if(!V){var j="meet"===k&&A===R,I="slice"===k&&C===R,z="meet"===k&&A===P,$="slice"===k&&C===P;/^xMid/.test(S)&&(j||I)&&r.translate(o/2-E/2,0),/YMid$/.test(S)&&(z||$)&&r.translate(0,s/2-T/2),/^xMax/.test(S)&&(j||I)&&r.translate(o-E,0),/YMax$/.test(S)&&(z||$)&&r.translate(0,s-T)}switch(!0){case"none"===S:r.scale(P,R);break;case"meet"===k:r.scale(A,A);break;case"slice"===k:r.scale(C,C)}r.translate(-l,-h)}},{key:"start",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.enableRedraw,i=void 0!==n&&n,o=r.ignoreMouse,a=void 0!==o&&o,s=r.ignoreAnimation,u=void 0!==s&&s,c=r.ignoreDimensions,l=void 0!==c&&c,f=r.ignoreClear,h=void 0!==f&&f,p=r.forceRedraw,v=r.scaleWidth,y=r.scaleHeight,d=r.offsetX,m=r.offsetY,x=this.FRAMERATE,b=this.mouse,w=1e3/x;if(this.frameDuration=w,this.readyPromise=new Promise((function(t){e.resolveReady=t})),this.isReady()&&this.render(t,l,h,v,y,d,m),i){var S=Date.now(),k=S,P=0,R=function r(){S=Date.now(),(P=S-k)>=w&&(k=S-P%w,e.shouldUpdate(u,p)&&(e.render(t,l,h,v,y,d,m),b.runEvents())),e.intervalId=g()(r)};a||b.start(),this.intervalId=g()(R)}}},{key:"stop",value:function(){this.intervalId&&(g().cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(t,e){if(!t){var r=this.frameDuration,n=this.animations.reduce((function(t,e){return e.update(r)||t}),!1);if(n)return!0}return!("function"!=typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function(t,e,r,n,i,o,a){var s=this.CLIENT_WIDTH,u=this.CLIENT_HEIGHT,c=this.viewPort,l=this.ctx,f=this.isFirstRender,h=l.canvas;c.clear(),h.width&&h.height?c.setCurrent(h.width,h.height):c.setCurrent(s,u);var p=t.getStyle("width"),g=t.getStyle("height");!e&&(f||"number"!=typeof n&&"number"!=typeof i)&&(p.hasValue()&&(h.width=p.getPixels("x"),h.style&&(h.style.width="".concat(h.width,"px"))),g.hasValue()&&(h.height=g.getPixels("y"),h.style&&(h.style.height="".concat(h.height,"px"))));var v=h.clientWidth||h.width,y=h.clientHeight||h.height;if(e&&p.hasValue()&&g.hasValue()&&(v=p.getPixels("x"),y=g.getPixels("y")),c.setCurrent(v,y),"number"==typeof o&&t.getAttribute("x",!0).setValue(o),"number"==typeof a&&t.getAttribute("y",!0).setValue(a),"number"==typeof n||"number"==typeof i){var d=V(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(d[2])||(m=d[2]/n)}if("number"==typeof i){var w=t.getStyle("height");w.hasValue()?x=w.getPixels("y")/i:isNaN(d[3])||(x=d[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||l.clearRect(0,0,v,y),t.render(l),f&&(this.isFirstRender=!1)}}]),t}();ut.defaultWindow=at,ut.defaultFetch=st;var ct=ut.defaultFetch,lt="undefined"!=typeof DOMParser?DOMParser:null,ft=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.fetch,n=void 0===r?ct:r,i=e.DOMParser,o=void 0===i?lt:i;l(this,t),this.fetch=n,this.DOMParser=o}var e,r;return h(t,[{key:"parse",value:(r=u(a().mark((function t(e){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!/^</.test(e)){t.next=2;break}return t.abrupt("return",this.parseFromString(e));case 2:return t.abrupt("return",this.load(e));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"parseFromString",value:function(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"))}}},{key:"checkDocument",value:function(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}},{key:"load",value:(e=u(a().mark((function t(e){var r,n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.fetch(e);case 2:return r=t.sent,t.next=5,r.text();case 5:return n=t.sent,t.abrupt("return",this.parseFromString(n));case 7:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),t}(),ht=function(){function t(e,r){l(this,t),this.type="translate",this.point=null,this.point=it.parse(r)}return h(t,[{key:"apply",value:function(t){var e=this.point,r=e.x,n=e.y;t.translate(r||0,n||0)}},{key:"unapply",value:function(t){var e=this.point,r=e.x,n=e.y;t.translate(-1*r||0,-1*n||0)}},{key:"applyToPoint",value:function(t){var e=this.point,r=e.x,n=e.y;t.applyTransform([1,0,0,1,r||0,n||0])}}]),t}(),pt=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];l(this,t),this.type="rotate",this.angle=null,this.cx=0,this.cy=0;var i=V(r);this.angle=new rt(e,"angle",i[0]),this.cx=(i[1]||0)+(n[0]||0),this.cy=(i[2]||0)+(n[1]||0)}return h(t,[{key:"apply",value:function(t){var e=this.cx,r=this.cy,n=this.angle;t.translate(e,r),t.rotate(n.getRadians()),t.translate(-e,-r)}},{key:"unapply",value:function(t){var e=this.cx,r=this.cy,n=this.angle;t.translate(e,r),t.rotate(-1*n.getRadians()),t.translate(-e,-r)}},{key:"applyToPoint",value:function(t){var e=this.cx,r=this.cy,n=this.angle.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}]),t}(),gt=function(){function t(e,r){l(this,t),this.type="scale",this.scale=null;var n=it.parseScale(r);0!==n.x&&0!==n.y||(n.x=U,n.y=U),this.scale=n}return h(t,[{key:"apply",value:function(t){var e=this.scale,r=e.x,n=e.y;t.scale(r,n||r)}},{key:"unapply",value:function(t){var e=this.scale,r=e.x,n=e.y;t.scale(1/r,1/n||r)}},{key:"applyToPoint",value:function(t){var e=this.scale,r=e.x,n=e.y;t.applyTransform([r||0,0,0,n||0,0,0])}}]),t}(),vt=function(){function t(e,r){l(this,t),this.type="matrix",this.matrix=[],this.matrix=V(r)}return h(t,[{key:"apply",value:function(t){var e=this.matrix;t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}},{key:"unapply",value:function(t){var e=this.matrix,r=e[0],n=e[2],i=e[4],o=e[1],a=e[3],s=e[5],u=1/(r*(1*a-0*s)-n*(1*o-0*s)+i*(0*o-0*a));t.transform(u*(1*a-0*s),u*(0*s-1*o),u*(0*i-1*n),u*(1*r-0*i),u*(n*s-i*a),u*(i*o-r*s))}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),t}();function yt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var dt=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(yt()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e){var i;return l(this,n),(i=r.call(this,t,e)).type="skew",i.angle=null,i.angle=new rt(t,"angle",e),i}return n}(vt);function mt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var xt=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(mt()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e){var i;return l(this,n),(i=r.call(this,t,e)).type="skewX",i.matrix=[1,0,Math.tan(i.angle.getRadians()),1,0,0],i}return n}(dt);function bt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var wt=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(bt()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e){var i;return l(this,n),(i=r.call(this,t,e)).type="skewY",i.matrix=[1,Math.tan(i.angle.getRadians()),0,1,0,0],i}return n}(dt);var St=function(){function t(e,r,n){var o=this;l(this,t),this.document=e,this.transforms=[];var a=function(t){return D(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(r),s=n?V(n):[];a.forEach((function(e){if("none"!==e){var r=function(t){var e=i(t.split("("),2),r=e[0],n=e[1];return[r.trim(),n.trim().replace(")","")]}(e),n=i(r,2),a=n[0],u=n[1],c=t.transformTypes[a];void 0!==c&&o.transforms.push(new c(o.document,u,s))}}))}return h(t,[{key:"apply",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].apply(t)}},{key:"unapply",value:function(t){for(var e=this.transforms,r=e.length-1;r>=0;r--)e[r].unapply(t)}},{key:"applyToPoint",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].applyToPoint(t)}}],[{key:"fromElement",value:function(e,r){var n=r.getStyle("transform",!1,!0),i=r.getStyle("transform-origin",!1,!0);return n.hasValue()?new t(e,n.getString(),i.getString()):null}}]),t}();St.transformTypes={translate:ht,rotate:pt,scale:gt,matrix:vt,skewX:xt,skewY:wt};var kt=function(){function t(e,r){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(l(this,t),this.document=e,this.node=r,this.captureTextNodes=o,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){if(Array.from(r.attributes).forEach((function(t){var r=N(t.nodeName);n.attributes[r]=new rt(e,r,t.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var a=this.getAttribute("style").getString().split(";").map((function(t){return t.trim()}));a.forEach((function(t){if(t){var r=i(t.split(":").map((function(t){return t.trim()})),2),o=r[0],a=r[1];n.styles[o]=new rt(e,o,a)}}))}var s=e.definitions,u=this.getAttribute("id");u.hasValue()&&(s[u.getValue()]||(s[u.getValue()]=this)),Array.from(r.childNodes).forEach((function(t){if(1===t.nodeType)n.addChild(t);else if(o&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&n.addChild(r)}}))}}return h(t,[{key:"getAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[t];if(!r&&e){var n=new rt(this.document,t,"");return this.attributes[t]=n,n}return r||rt.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||/:href$/.test(t))return this.attributes[t];return rt.empty(this.document)}},{key:"getStyle",value:function(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(i&&i.hasValue())return this.styles[t]=i,i;if(!r){var o=this.parent;if(o){var a=o.getStyle(t);if(a&&a.hasValue())return a}}if(e){var s=new rt(this.document,t,"");return this.styles[t]=s,s}return n||rt.empty(this.document)}},{key:"render",value:function(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()}}},{key:"setContext",value:function(t){}},{key:"applyEffects",value:function(t){var e=St.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)}}},{key:"clearContext",value:function(t){}},{key:"renderChildren",value:function(t){this.children.forEach((function(e){e.render(t)}))}},{key:"addChild",value:function(e){var r=e instanceof t?e:this.document.createElement(e);r.parent=this,t.ignoreChildTypes.includes(r.type)||this.children.push(r)}},{key:"matchesSelector",value:function(t){var e=this.node;if("function"==typeof e.matches)return e.matches(t);var r=e.getAttribute("class");return!(!r||""===r)&&r.split(" ").some((function(e){if(".".concat(e)===t)return!0}))}},{key:"addStylesFromStyleDefinition",value:function(){var t=this.document,e=t.styles,r=t.stylesSpecificity;for(var n in e)if("@"!==n[0]&&this.matchesSelector(n)){var i=e[n],o=r[n];if(i)for(var a in i){var s=this.stylesSpecificity[a];void 0===s&&(s="000"),o>=s&&(this.styles[a]=i[a],this.stylesSpecificity[a]=o)}}}},{key:"removeStyles",value:function(t,e){return e.reduce((function(e,r){var n=t.getStyle(r);if(!n.hasValue())return e;var i=n.getString();return n.setValue(""),[].concat(k(e),[[r,i]])}),[])}},{key:"restoreStyles",value:function(t,e){e.forEach((function(e){var r=i(e,2),n=r[0],o=r[1];t.getStyle(n,!0).setValue(o)}))}}]),t}();function Pt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}kt.ignoreChildTypes=["title"];var Rt=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Pt()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){return l(this,n),r.call(this,t,e,i)}return n}(kt);function At(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function Ct(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 Et(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:""}}var Tt=function(){function t(e,r,n,i,o,a){l(this,t);var s=a?"string"==typeof a?t.parse(a):a:{};this.fontFamily=o||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=n||s.fontWeight,this.fontVariant=r||s.fontVariant}return h(t,[{key:"toString",value:function(){return[Ct(this.fontStyle),this.fontVariant,Et(this.fontWeight),this.fontSize,(t=this.fontFamily,"undefined"==typeof process?t:t.trim().split(",").map(At).join(","))].join(" ").trim();var t}}],[{key:"parse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n="",o="",a="",s="",u="",c=D(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return c.forEach((function(e){switch(!0){case!l.fontStyle&&t.styles.includes(e):"inherit"!==e&&(n=e),l.fontStyle=!0;break;case!l.fontVariant&&t.variants.includes(e):"inherit"!==e&&(o=e),l.fontStyle=!0,l.fontVariant=!0;break;case!l.fontWeight&&t.weights.includes(e):"inherit"!==e&&(a=e),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:if("inherit"!==e){var r=i(e.split("/"),1);s=r[0]}l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:"inherit"!==e&&(u+=e)}})),new t(n,o,a,s,u,r)}}]),t}();Tt.styles="normal|italic|oblique|inherit",Tt.variants="normal|small-caps|inherit",Tt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var Ot=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;l(this,t),this.x1=e,this.y1=r,this.x2=n,this.y2=i,this.addPoint(e,r),this.addPoint(n,i)}return h(t,[{key:"addPoint",value:function(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))}},{key:"addX",value:function(t){this.addPoint(t,null)}},{key:"addY",value:function(t){this.addPoint(null,t)}},{key:"addBoundingBox",value:function(t){if(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;this.addPoint(e,r),this.addPoint(n,i)}}},{key:"sumCubic",value:function(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}},{key:"bezierCurveAdd",value:function(t,e,r,n,i){var o=6*e-12*r+6*n,a=-3*e+9*r-9*n+3*i,s=3*r-3*e;if(0!==a){var u=Math.pow(o,2)-4*s*a;if(!(u<0)){var c=(-o+Math.sqrt(u))/(2*a);0<c&&c<1&&(t?this.addX(this.sumCubic(c,e,r,n,i)):this.addY(this.sumCubic(c,e,r,n,i)));var l=(-o-Math.sqrt(u))/(2*a);0<l&&l<1&&(t?this.addX(this.sumCubic(l,e,r,n,i)):this.addY(this.sumCubic(l,e,r,n,i)))}}else{if(0===o)return;var f=-s/o;0<f&&f<1&&(t?this.addX(this.sumCubic(f,e,r,n,i)):this.addY(this.sumCubic(f,e,r,n,i)))}}},{key:"addBezierCurve",value:function(t,e,r,n,i,o,a,s){this.addPoint(t,e),this.addPoint(a,s),this.bezierCurveAdd(!0,t,r,i,a),this.bezierCurveAdd(!1,e,n,o,s)}},{key:"addQuadraticCurve",value:function(t,e,r,n,i,o){var a=t+2/3*(r-t),s=e+2/3*(n-e),u=a+1/3*(i-t),c=s+1/3*(o-e);this.addBezierCurve(t,e,a,u,s,c,i,o)}},{key:"isPointInBox",value:function(t,e){var r=this.x1,n=this.y1,i=this.x2,o=this.y2;return r<=t&&t<=i&&n<=e&&e<=o}},{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}}]),t}();function Mt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Dt=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Mt()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).modifiedEmSizeStack=!1,t}return h(n,[{key:"calculateOpacity",value:function(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue()&&(t*=r.getNumber()),e=e.parent}return t}},{key:"setContext",value:function(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"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var a=r.getFillStyleDefinition(this,n);a&&(t.fillStyle=a)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var s=r.getColor();"inherit"!==s&&(t.fillStyle="none"===s?"rgba(0,0,0,0)":s)}if(n.hasValue()){var u=new rt(this.document,"fill",t.fillStyle).addOpacity(n).getColor();t.fillStyle=u}if(i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,o);c&&(t.strokeStyle=c)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var l=i.getString();"inherit"!==l&&(t.strokeStyle="none"===l?"rgba(0,0,0,0)":l)}if(o.hasValue()){var f=new rt(this.document,"stroke",t.strokeStyle).addOpacity(o).getString();t.strokeStyle=f}var h=this.getStyle("stroke-width");if(h.hasValue()){var p=h.getPixels();t.lineWidth=p||U}var g=this.getStyle("stroke-linecap"),v=this.getStyle("stroke-linejoin"),y=this.getStyle("stroke-miterlimit"),d=this.getStyle("paint-order"),m=this.getStyle("stroke-dasharray"),x=this.getStyle("stroke-dashoffset");if(g.hasValue()&&(t.lineCap=g.getString()),v.hasValue()&&(t.lineJoin=v.getString()),y.hasValue()&&(t.miterLimit=y.getNumber()),d.hasValue()&&(t.paintOrder=d.getValue()),m.hasValue()&&"none"!==m.getString()){var b=V(m.getString());void 0!==t.setLineDash?t.setLineDash(b):void 0!==t.webkitLineDash?t.webkitLineDash=b:void 0===t.mozDash||1===b.length&&0===b[0]||(t.mozDash=b);var w=x.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=w:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=w:void 0!==t.mozDashOffset&&(t.mozDashOffset=w)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var S=this.getStyle("font"),k=this.getStyle("font-style"),P=this.getStyle("font-variant"),R=this.getStyle("font-weight"),A=this.getStyle("font-size"),C=this.getStyle("font-family"),E=new Tt(k.getString(),P.getString(),R.getString(),A.hasValue()?"".concat(A.getPixels(!0),"px"):"",C.getString(),Tt.parse(S.getString(),t.font));k.setValue(E.fontStyle),P.setValue(E.fontVariant),R.setValue(E.fontWeight),A.setValue(E.fontSize),C.setValue(E.fontFamily),t.font=E.toString(),A.isPixels()&&(this.document.emSize=A.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){R(b(n.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),n}(kt);function Vt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Lt=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Vt()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;return l(this,n),(o=r.call(this,t,e,(this instanceof n?this.constructor:void 0)===n||i)).type="text",o.x=0,o.y=0,o.measureCache=-1,o}return h(n,[{key:"setContext",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];R(b(n.prototype),"setContext",this).call(this,t,e);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}},{key:"initializeCoordinates",value:function(t){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var 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)}},{key:"getBoundingBox",value:function(t){var e=this;if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(t);var r=null;return this.children.forEach((function(n,i){var o=e.getChildBoundingBox(t,e,e,i);r?r.addBoundingBox(o):r=o})),r}},{key:"getFontSize",value:function(){var t=this.document,e=this.parent,r=Tt.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new Ot(this.x,this.y-e,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,e,r){var n=e[r],i=null;if(t.isArabic){var o=e.length,a=e[r-1],s=e[r+1],u="isolated";(0===r||" "===a)&&r<o-2&&" "!==s&&(u="terminal"),r>0&&" "!==a&&r<o-2&&" "!==s&&(u="medial"),r>0&&" "!==a&&(r===o-1||" "===s)&&(u="initial"),void 0!==t.glyphs[n]&&((i=t.glyphs[n][u])||"glyph"!==t.glyphs[n].type||(i=t.glyphs[n]))}else i=t.glyphs[n];return i||(i=t.missingGlyph),i}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),n=r.indexOf(e),i=r.length-1,o=D(e.value||e.text||e.textContent||"");return 0===n&&(o=o.replace(/^[\n \t]+/,"")),n===i&&(o=function(t){return t.replace(/[\n \t]+$/,"")}(o)),o}},{key:"renderChildren",value:function(t){var e=this;if("text"===this.type){this.initializeCoordinates(t),this.children.forEach((function(r,n){e.renderChild(t,e,e,n)}));var r=this.document.screen.mouse;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}},{key:"renderTElementChildren",value:function(t){var e=this.document,r=this.parent,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var o=i.fontFace.unitsPerEm,a=Tt.parse(e.ctx.font),s=r.getStyle("font-size").getNumber(a.fontSize),u=r.getStyle("font-style").getString(a.fontStyle),c=s/o,l=i.isRTL?n.split("").reverse().join(""):n,f=V(r.getAttribute("dx").getString()),h=l.length,p=0;p<h;p++){var g=this.getGlyph(i,l,p);t.translate(this.x,this.y),t.scale(c,-c);var v=t.lineWidth;t.lineWidth=t.lineWidth*o/s,"italic"===u&&t.transform(1,0,.4,1,0,0),g.render(t),"italic"===u&&t.transform(1,0,-.4,1,0,0),t.lineWidth=v,t.scale(1/c,-1/c),t.translate(-this.x,-this.y),this.x+=s*(g.horizAdvX||i.horizAdvX)/o,void 0===f[p]||isNaN(f[p])||(this.x+=f[p])}else{var y=this.x,d=this.y;"stroke"===t.paintOrder?(t.strokeStyle&&t.strokeText(n,y,d),t.fillStyle&&t.fillText(n,y,d)):(t.fillStyle&&t.fillText(n,y,d),t.strokeStyle&&t.strokeText(n,y,d))}}},{key:"getAnchorDelta",value:function(t,e,r){var n=this.getStyle("text-anchor").getString("start");if("start"!==n){for(var i=e.children,o=i.length,a=null,s=0,u=r;u<o&&(a=i[u],!(u>r&&a.getAttribute("x").hasValue()||a.getAttribute("text-anchor").hasValue()));u++)s+=a.measureTextRecursive(t);return-1*("end"===n?s:s/2)}return 0}},{key:"adjustChildCoordinates",value:function(t,e,r,n){var i=r.children[n];if("function"!=typeof i.measureText)return i;t.save(),i.setContext(t,!0);var o=i.getAttribute("x"),a=i.getAttribute("y"),s=i.getAttribute("dx"),u=i.getAttribute("dy"),c=i.getAttribute("text-anchor").getString("start");if(0===n&&"textNode"!==i.type&&(o.hasValue()||o.setValue(e.getAttribute("x").getValue("0")),a.hasValue()||a.setValue(e.getAttribute("y").getValue("0")),s.hasValue()||s.setValue(e.getAttribute("dx").getValue("0")),u.hasValue()||u.setValue(e.getAttribute("dy").getValue("0"))),o.hasValue()){if(i.x=o.getPixels("x")+e.getAnchorDelta(t,r,n),"start"!==c){var l=i.measureTextRecursive(t);i.x+=-1*("end"===c?l:l/2)}s.hasValue()&&(i.x+=s.getPixels("x"))}else{if("start"!==c){var f=i.measureTextRecursive(t);e.x+=-1*("end"===c?f:f/2)}s.hasValue()&&(e.x+=s.getPixels("x")),i.x=e.x}return e.x=i.x+i.measureText(t),a.hasValue()?(i.y=a.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}},{key:"getChildBoundingBox",value:function(t,e,r,n){var i=this.adjustChildCoordinates(t,e,r,n),o=i.getBoundingBox(t);return o?(i.children.forEach((function(r,n){var a=e.getChildBoundingBox(t,e,i,n);o.addBoundingBox(a)})),o):null}},{key:"renderChild",value:function(t,e,r,n){var i=this.adjustChildCoordinates(t,e,r,n);i.render(t),i.children.forEach((function(r,n){e.renderChild(t,e,i,n)}))}},{key:"measureTextRecursive",value:function(t){return this.children.reduce((function(e,r){return e+r.measureTextRecursive(t)}),this.measureText(t))}},{key:"measureText",value:function(t){var e=this.measureCache;if(~e)return e;var r=this.getText(),n=this.measureTargetText(t,r);return this.measureCache=n,n}},{key:"measureTargetText",value:function(t,e){if(!e.length)return 0;var r=this.parent,n=r.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),o=n.isRTL?e.split("").reverse().join(""):e,a=V(r.getAttribute("dx").getString()),s=o.length,u=0,c=0;c<s;c++){u+=(this.getGlyph(n,o,c).horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,void 0===a[c]||isNaN(a[c])||(u+=a[c])}return u}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var l=t.measureText(e).width;return this.clearContext(t),t.restore(),l}}]),n}(Dt);function Nt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var jt=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Nt()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;return l(this,n),(o=r.call(this,t,e,(this instanceof n?this.constructor:void 0)===n||i)).type="tspan",o.text=o.children.length>0?"":o.getTextFromNode(),o}return h(n,[{key:"getText",value:function(){return this.text}}]),n}(Lt);function It(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var zt=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(It()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="textNode",t}return n}(jt);var $t=function(){function t(e){l(this,t),this.control=null,this.start=null,this.current=null,this.command="",this.tokens=[],this.i=-1,this.previousCommand="",this.points=[],this.angles=[],this.tokens=function(t){return D(t.replace(/,/gm," ").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2").replace(/([0-9])([+\-])/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/([Aa](?:\s+(?:[0-9]*\.)?[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $2 $3 ")).trim()}(e).split(" ")}return h(t,[{key:"reset",value:function(){this.i=-1,this.command="",this.previousCommand="",this.start=new it(0,0),this.control=new it(0,0),this.current=new it(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){return this.i>=this.tokens.length-1}},{key:"isCommandOrEnd",value:function(){if(this.isEnd())return!0;var t=this.i,e=this.tokens;return/^[A-Za-z]$/.test(e[t+1])}},{key:"isRelativeCommand",value:function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0;default:return!1}}},{key:"getToken",value:function(){return this.i++,this.tokens[this.i]}},{key:"getScalar",value:function(){return parseFloat(this.getToken())}},{key:"nextCommand",value:function(){this.previousCommand=this.command,this.command=this.getToken()}},{key:"getPoint",value:function(){var t=new it(this.getScalar(),this.getScalar());return this.makeAbsolute(t)}},{key:"getAsControlPoint",value:function(){var t=this.getPoint();return this.control=t,t}},{key:"getAsCurrentPoint",value:function(){var t=this.getPoint();return this.current=t,t}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.toLowerCase();if("c"!==t&&"s"!==t&&"q"!==t&&"t"!==t)return this.current;var e=this.current,r=e.x,n=e.y,i=this.control,o=i.x,a=i.y;return new it(2*r-o,2*n-a)}},{key:"makeAbsolute",value:function(t){if(this.isRelativeCommand()){var e=this.current,r=e.x,n=e.y;t.x+=r,t.y+=n}return t}},{key:"addMarker",value:function(t,e,r){var n=this.points,i=this.angles;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)}},{key:"addMarkerAngle",value:function(t,e){this.points.push(t),this.angles.push(e)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var t=this.angles,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}}]),t}();function Bt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Ft=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Bt()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;return l(this,n),(o=r.call(this,t,e,i)).type="path",o.pathParser=null,o.pathParser=new $t(o.getAttribute("d").getString()),o}return h(n,[{key:"path",value:function(t){var e=this.pathParser,r=new Ot;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.nextCommand(),e.command){case"M":case"m":this.pathM(t,r);break;case"L":case"l":this.pathL(t,r);break;case"H":case"h":this.pathH(t,r);break;case"V":case"v":this.pathV(t,r);break;case"C":case"c":this.pathC(t,r);break;case"S":case"s":this.pathS(t,r);break;case"Q":case"q":this.pathQ(t,r);break;case"T":case"t":this.pathT(t,r);break;case"A":case"a":this.pathA(t,r);break;case"Z":case"z":this.pathZ(t,r)}return r}},{key:"getBoundingBox",value:function(t){return this.path()}},{key:"getMarkers",value:function(){var t=this.pathParser,e=t.getMarkerPoints(),r=t.getMarkerAngles();return e.map((function(t,e){return[t,r[e]]}))}},{key:"renderChildren",value:function(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&&t.stroke();var r=this.getMarkers();if(r){var n=r.length-1,o=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(o.isUrlDefinition()){var u=o.getDefinition(),c=i(r[0],2),l=c[0],f=c[1];u.render(t,l,f)}if(a.isUrlDefinition())for(var h=a.getDefinition(),p=1;p<n;p++){var g=i(r[p],2),v=g[0],y=g[1];h.render(t,v,y)}if(s.isUrlDefinition()){var d=s.getDefinition(),m=i(r[n],2),x=m[0],b=m[1];d.render(t,x,b)}}}},{key:"pathM",value:function(t,e){var r=this.pathParser,n=r.getAsCurrentPoint(),i=n.x,o=n.y;for(r.addMarker(n),e.addPoint(i,o),t&&t.moveTo(i,o),r.start=r.current;!r.isCommandOrEnd();){var a=r.getAsCurrentPoint(),s=a.x,u=a.y;r.addMarker(a,r.start),e.addPoint(s,u),t&&t.lineTo(s,u)}}},{key:"pathL",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getAsCurrentPoint(),o=i.x,a=i.y;r.addMarker(i,n),e.addPoint(o,a),t&&t.lineTo(o,a)}}},{key:"pathH",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=new it((r.isRelativeCommand()?n.x:0)+r.getScalar(),n.y);r.addMarker(i,n),r.current=i,e.addPoint(i.x,i.y),t&&t.lineTo(i.x,i.y)}}},{key:"pathV",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=new it(n.x,(r.isRelativeCommand()?n.y:0)+r.getScalar());r.addMarker(i,n),r.current=i,e.addPoint(i.x,i.y),t&&t.lineTo(i.x,i.y)}}},{key:"pathC",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getPoint(),o=r.getAsControlPoint(),a=r.getAsCurrentPoint();r.addMarker(a,o,i),e.addBezierCurve(n.x,n.y,i.x,i.y,o.x,o.y,a.x,a.y),t&&t.bezierCurveTo(i.x,i.y,o.x,o.y,a.x,a.y)}}},{key:"pathS",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getReflectedControlPoint(),o=r.getAsControlPoint(),a=r.getAsCurrentPoint();r.addMarker(a,o,i),e.addBezierCurve(n.x,n.y,i.x,i.y,o.x,o.y,a.x,a.y),t&&t.bezierCurveTo(i.x,i.y,o.x,o.y,a.x,a.y)}}},{key:"pathQ",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getAsControlPoint(),o=r.getAsCurrentPoint();r.addMarker(o,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,o.x,o.y),t&&t.quadraticCurveTo(i.x,i.y,o.x,o.y)}}},{key:"pathT",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getReflectedControlPoint();r.control=i;var o=r.getAsCurrentPoint();r.addMarker(o,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,o.x,o.y),t&&t.quadraticCurveTo(i.x,i.y,o.x,o.y)}}},{key:"pathA",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getScalar(),o=r.getScalar(),a=r.getScalar()*(Math.PI/180),s=r.getScalar(),u=r.getScalar(),c=r.getAsCurrentPoint(),l=new it(Math.cos(a)*(n.x-c.x)/2+Math.sin(a)*(n.y-c.y)/2,-Math.sin(a)*(n.x-c.x)/2+Math.cos(a)*(n.y-c.y)/2),f=Math.pow(l.x,2)/Math.pow(i,2)+Math.pow(l.y,2)/Math.pow(o,2);f>1&&(i*=Math.sqrt(f),o*=Math.sqrt(f));var h=(s===u?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(o,2)-Math.pow(i,2)*Math.pow(l.y,2)-Math.pow(o,2)*Math.pow(l.x,2))/(Math.pow(i,2)*Math.pow(l.y,2)+Math.pow(o,2)*Math.pow(l.x,2)));isNaN(h)&&(h=0);var p=new it(h*i*l.y/o,h*-o*l.x/i),g=new it((n.x+c.x)/2+Math.cos(a)*p.x-Math.sin(a)*p.y,(n.y+c.y)/2+Math.sin(a)*p.x+Math.cos(a)*p.y),v=X([1,0],[(l.x-p.x)/i,(l.y-p.y)/o]),y=[(l.x-p.x)/i,(l.y-p.y)/o],d=[(-l.x-p.x)/i,(-l.y-p.y)/o],m=X(y,d);H(y,d)<=-1&&(m=Math.PI),H(y,d)>=1&&(m=0);var x=1-u?1:-1,b=v+x*(m/2),w=new it(g.x+i*Math.cos(b),g.y+o*Math.sin(b));if(r.addMarkerAngle(w,b-x*Math.PI/2),r.addMarkerAngle(c,b-x*Math.PI),e.addPoint(c.x,c.y),t&&!isNaN(v)&&!isNaN(m)){var S=i>o?i:o,k=i>o?1:i/o,P=i>o?o/i:1;t.translate(g.x,g.y),t.rotate(a),t.scale(k,P),t.arc(0,0,S,v,v+m,Boolean(1-u)),t.scale(1/k,1/P),t.rotate(-a),t.translate(-g.x,-g.y)}}}},{key:"pathZ",value:function(t,e){var r=this.pathParser;t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath(),r.current=r.start}}]),n}(Dt);function _t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var qt=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(_t()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="svg",t.root=!1,t}return h(n,[{key:"clearContext",value:function(t){R(b(n.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"setContext",value:function(t){var e=this.document,r=e.screen,i=e.window,o=t.canvas;if(r.setDefaults(t),o.style&&void 0!==t.font&&i&&void 0!==i.getComputedStyle){t.font=i.getComputedStyle(o).getPropertyValue("font");var a=new rt(e,"fontSize",Tt.parse(t.font).fontSize);a.hasValue()&&(e.rootEmSize=a.getPixels("y"),e.emSize=e.rootEmSize)}R(b(n.prototype),"setContext",this).call(this,t),this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y"));var s=r.viewPort,u=s.width,c=s.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var l=this.getAttribute("refX"),f=this.getAttribute("refY"),h=this.getAttribute("viewBox"),p=h.hasValue()?V(h.getString()):null,g=!this.root&&"visible"!==this.getAttribute("overflow").getValue("hidden"),v=0,y=0,d=0,m=0;p&&(v=p[0],y=p[1]),this.root||(u=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),"marker"===this.type&&(d=v,m=y,v=0,y=0)),r.viewPort.setCurrent(u,c),p&&(u=p[2],c=p[3]),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:u,height:r.viewPort.height,desiredHeight:c,minX:v,minY:y,refX:l.getValue(),refY:f.getValue(),clip:g,clipX:d,clipY:m}),p&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(u,c))}},{key:"resize",value:function(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),o=this.getAttribute("viewBox"),a=this.getAttribute("style"),s=n.getNumber(0),u=i.getNumber(0);if(r)if("string"==typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(t),i.setValue(e),o.hasValue()||o.setValue("0 0 ".concat(s||t," ").concat(u||e)),a.hasValue()){var l=this.getStyle("width"),f=this.getStyle("height");l.hasValue()&&l.setValue("".concat(t,"px")),f.hasValue()&&f.setValue("".concat(e,"px"))}}}]),n}(Dt);function Gt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Ut=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Gt()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="rect",t}return h(n,[{key:"path",value:function(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y"),o=this.getAttribute("rx"),a=this.getAttribute("ry"),s=o.getPixels("x"),u=a.getPixels("y");if(o.hasValue()&&!a.hasValue()&&(u=s),a.hasValue()&&!o.hasValue()&&(s=u),s=Math.min(s,n/2),u=Math.min(u,i/2),t){var c=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&n>0&&(t.moveTo(e+s,r),t.lineTo(e+n-s,r),t.bezierCurveTo(e+n-s+c*s,r,e+n,r+u-c*u,e+n,r+u),t.lineTo(e+n,r+i-u),t.bezierCurveTo(e+n,r+i-u+c*u,e+n-s+c*s,r+i,e+n-s,r+i),t.lineTo(e+s,r+i),t.bezierCurveTo(e+s-c*s,r+i,e,r+i-u+c*u,e,r+i-u),t.lineTo(e,r+u),t.bezierCurveTo(e,r+u-c*u,e+s-c*s,r,e+s,r),t.closePath())}return new Ot(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),n}(Ft);function Wt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Ht=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Wt()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="circle",t}return h(n,[{key:"path",value:function(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 Ot(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),n}(Ft);function Xt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Yt=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Xt()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="ellipse",t}return h(n,[{key:"path",value:function(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"),o=this.getAttribute("cy").getPixels("y");return t&&r>0&&n>0&&(t.beginPath(),t.moveTo(i+r,o),t.bezierCurveTo(i+r,o+e*n,i+e*r,o+n,i,o+n),t.bezierCurveTo(i-e*r,o+n,i-r,o+e*n,i-r,o),t.bezierCurveTo(i-r,o-e*n,i-e*r,o-n,i,o-n),t.bezierCurveTo(i+e*r,o-n,i+r,o-e*n,i+r,o),t.closePath()),new Ot(i-r,o-n,i+r,o+n)}},{key:"getMarkers",value:function(){return null}}]),n}(Ft);function Qt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Zt=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Qt()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="line",t}return h(n,[{key:"getPoints",value:function(){return[new it(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new it(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var e=i(this.getPoints(),2),r=e[0],n=r.x,o=r.y,a=e[1],s=a.x,u=a.y;return t&&(t.beginPath(),t.moveTo(n,o),t.lineTo(s,u)),new Ot(n,o,s,u)}},{key:"getMarkers",value:function(){var t=i(this.getPoints(),2),e=t[0],r=t[1],n=e.angleTo(r);return[[e,n],[r,n]]}}]),n}(Ft);function Kt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Jt=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Kt()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;return l(this,n),(o=r.call(this,t,e,i)).type="polyline",o.points=[],o.points=it.parsePath(o.getAttribute("points").getString()),o}return h(n,[{key:"path",value:function(t){var e=this.points,r=i(e,1)[0],n=r.x,o=r.y,a=new Ot(n,o);return t&&(t.beginPath(),t.moveTo(n,o)),e.forEach((function(e){var r=e.x,n=e.y;a.addPoint(r,n),t&&t.lineTo(r,n)})),a}},{key:"getMarkers",value:function(){var t=this.points,e=t.length-1,r=[];return t.forEach((function(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}}]),n}(Ft);function te(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var ee=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(te()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="polygon",t}return h(n,[{key:"path",value:function(t){var e=R(b(n.prototype),"path",this).call(this,t),r=i(this.points,1)[0],o=r.x,a=r.y;return t&&(t.lineTo(o,a),t.closePath()),e}}]),n}(Jt);function re(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var ne=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(re()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="pattern",t}return h(n,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new qt(this.document,null);o.attributes.viewBox=new rt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new rt(this.document,"width","".concat(n,"px")),o.attributes.height=new rt(this.document,"height","".concat(i,"px")),o.attributes.transform=new rt(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var a=this.document.createCanvas(n,i),s=a.getContext("2d"),u=this.getAttribute("x"),c=this.getAttribute("y");u.hasValue()&&c.hasValue()&&s.translate(u.getPixels("x",!0),c.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++)s.save(),o.attributes.x=new rt(this.document,"x",l*a.width),o.attributes.y=new rt(this.document,"y",f*a.height),o.render(s),s.restore();return t.createPattern(a,"repeat")}}]),n}(kt);function ie(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var oe=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(ie()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="marker",t}return h(n,[{key:"render",value:function(t,e,r){if(e){var n=e.x,i=e.y,o=this.getAttribute("orient").getValue("auto"),a=this.getAttribute("markerUnits").getValue("strokeWidth");t.translate(n,i),"auto"===o&&t.rotate(r),"strokeWidth"===a&&t.scale(t.lineWidth,t.lineWidth),t.save();var s=new qt(this.document,null);s.type=this.type,s.attributes.viewBox=new rt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.refX=new rt(this.document,"refX",this.getAttribute("refX").getValue()),s.attributes.refY=new rt(this.document,"refY",this.getAttribute("refY").getValue()),s.attributes.width=new rt(this.document,"width",this.getAttribute("markerWidth").getValue()),s.attributes.height=new rt(this.document,"height",this.getAttribute("markerHeight").getValue()),s.attributes.overflow=new rt(this.document,"overflow",this.getAttribute("overflow").getValue()),s.attributes.fill=new rt(this.document,"fill",this.getAttribute("fill").getColor("black")),s.attributes.stroke=new rt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),s.children=this.children,s.render(t),t.restore(),"strokeWidth"===a&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===o&&t.rotate(-r),t.translate(-n,-i)}}}]),n}(kt);function ae(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var se=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(ae()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="defs",t}return h(n,[{key:"render",value:function(){}}]),n}(kt);function ue(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var ce=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(ue()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="g",t}return h(n,[{key:"getBoundingBox",value:function(t){var e=new Ot;return this.children.forEach((function(r){e.addBoundingBox(r.getBoundingBox(t))})),e}}]),n}(Dt);function le(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var fe=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(le()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;l(this,n),(o=r.call(this,t,e,i)).attributesToInherit=["gradientUnits"],o.stops=[];var a=m(o),s=a.stops;return a.children.forEach((function(t){"stop"===t.type&&s.push(t)})),o}return h(n,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,e,r){var n=this,o=this;this.getHrefAttribute().hasValue()&&(o=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(o));var a=o.stops,s=this.getGradient(t,e);if(!s)return this.addParentOpacity(r,a[a.length-1].color);if(a.forEach((function(t){s.addColorStop(t.offset,n.addParentOpacity(r,t.color))})),this.getAttribute("gradientTransform").hasValue()){var u=this.document,c=u.screen,l=c.MAX_VIRTUAL_PIXELS,f=i(c.viewPort.viewPorts,1)[0],h=new Ut(u,null);h.attributes.x=new rt(u,"x",-l/3),h.attributes.y=new rt(u,"y",-l/3),h.attributes.width=new rt(u,"width",l),h.attributes.height=new rt(u,"height",l);var p=new ce(u,null);p.attributes.transform=new rt(u,"transform",this.getAttribute("gradientTransform").getValue()),p.children=[h];var g=new qt(u,null);g.attributes.x=new rt(u,"x",0),g.attributes.y=new rt(u,"y",0),g.attributes.width=new rt(u,"width",f.width),g.attributes.height=new rt(u,"height",f.height),g.children=[p];var v=u.createCanvas(f.width,f.height),y=v.getContext("2d");return y.fillStyle=s,g.render(y),y.createPattern(v,"no-repeat")}return s}},{key:"inheritStopContainer",value:function(t){var e=this;this.attributesToInherit.forEach((function(r){!e.getAttribute(r).hasValue()&&t.getAttribute(r).hasValue()&&e.getAttribute(r,!0).setValue(t.getAttribute(r).getValue())}))}},{key:"addParentOpacity",value:function(t,e){return t.hasValue()?new rt(this.document,"color",e).addOpacity(t).getColor():e}}]),n}(kt);function he(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var pe=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(he()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;return l(this,n),(o=r.call(this,t,e,i)).type="linearGradient",o.attributesToInherit.push("x1","y1","x2","y2"),o}return h(n,[{key:"getGradient",value:function(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"),o=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),s=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===a&&o===s?null:t.createLinearGradient(i,o,a,s)}}]),n}(fe);function ge(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var ve=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(ge()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;return l(this,n),(o=r.call(this,t,e,i)).type="radialGradient",o.attributesToInherit.push("cx","cy","r","fx","fy","fr"),o}return h(n,[{key:"getGradient",value:function(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"),o=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=i,s=o;this.getAttribute("fx").hasValue()&&(a=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(s=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(),c=this.getAttribute("fr").getPixels();return t.createRadialGradient(a,s,c,i,o,u)}}]),n}(fe);function ye(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var de=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(ye()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;l(this,n),(o=r.call(this,t,e,i)).type="stop";var a=Math.max(0,Math.min(1,o.getAttribute("offset").getNumber())),s=o.getStyle("stop-opacity"),u=o.getStyle("stop-color",!0);return""===u.getString()&&u.setValue("#000"),s.hasValue()&&(u=u.addOpacity(s)),o.offset=a,o.color=u.getColor(),o}return n}(kt);function me(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var xe=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(me()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;return l(this,n),(o=r.call(this,t,e,i)).type="animate",o.duration=0,o.initialValue=null,o.initialUnits="",o.removed=!1,o.frozen=!1,t.screen.animations.push(m(o)),o.begin=o.getAttribute("begin").getMilliseconds(),o.maxDuration=o.begin+o.getAttribute("dur").getMilliseconds(),o.from=o.getAttribute("from"),o.to=o.getAttribute("to"),o.values=o.getAttribute("values"),o.values.hasValue()&&o.values.setValue(o.values.getString().split(";")),o}return h(n,[{key:"getProperty",value:function(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}},{key:"calcValue",value:function(){var t=this.initialUnits,e=this.getProgress(),r=e.progress,n=e.from,i=e.to,o=n.getNumber()+(i.getNumber()-n.getNumber())*r;return"%"===t&&(o*=100),"".concat(o).concat(t)}},{key:"update",value:function(t){var e=this.parent,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 o=this.calcValue(),a=this.getAttribute("type");if(a.hasValue()){var s=a.getString();o="".concat(s,"(").concat(o,")")}r.setValue(o),i=!0}return i}},{key:"getProgress",value:function(){var t=this.document,e=this.values,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),o=Math.ceil(n);r.from=new rt(t,"from",parseFloat(e.getValue()[i])),r.to=new rt(t,"to",parseFloat(e.getValue()[o])),r.progress=(n-i)/(o-i)}else r.from=this.from,r.to=this.to;return r}}]),n}(kt);function be(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var we=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(be()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="animateColor",t}return h(n,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=new(y())(r.getColor()),o=new(y())(n.getColor());if(i.ok&&o.ok){var a=i.r+(o.r-i.r)*e,s=i.g+(o.g-i.g)*e,u=i.b+(o.b-i.b)*e;return"rgb(".concat(parseInt(a,10),", ").concat(parseInt(s,10),", ").concat(parseInt(u,10),")")}return this.getAttribute("from").getColor()}}]),n}(xe);function Se(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var ke=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Se()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="animateTransform",t}return h(n,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=V(r.getString()),o=V(n.getString()),a=i.map((function(t,r){return t+(o[r]-t)*e})).join(" ");return a}}]),n}(xe);function Pe(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,e){if(!t)return;if("string"==typeof t)return Re(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Re(t,e)}(t))){var e=0,r=function(){};return{s:r,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i,o=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw i}}}}function Re(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ae(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Ce=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Ae()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;l(this,n),(o=r.call(this,t,e,i)).type="font",o.glyphs={},o.horizAdvX=o.getAttribute("horiz-adv-x").getNumber();var a,s=t.definitions,u=Pe(m(o).children);try{for(u.s();!(a=u.n()).done;){var c=a.value;switch(c.type){case"font-face":o.fontFace=c;var f=c.getStyle("font-family");f.hasValue()&&(s[f.getString()]=m(o));break;case"missing-glyph":o.missingGlyph=c;break;case"glyph":var h=c;h.arabicForm?(o.isRTL=!0,o.isArabic=!0,void 0===o.glyphs[h.unicode]&&(o.glyphs[h.unicode]={}),o.glyphs[h.unicode][h.arabicForm]=h):o.glyphs[h.unicode]=h}}}catch(t){u.e(t)}finally{u.f()}return o}return h(n,[{key:"render",value:function(){}}]),n}(kt);function Ee(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Te=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Ee()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;return l(this,n),(o=r.call(this,t,e,i)).type="font-face",o.ascent=o.getAttribute("ascent").getNumber(),o.descent=o.getAttribute("descent").getNumber(),o.unitsPerEm=o.getAttribute("units-per-em").getNumber(),o}return n}(kt);function Oe(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Me=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Oe()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="missing-glyph",t.horizAdvX=0,t}return n}(Ft);function De(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Ve=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(De()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;return l(this,n),(o=r.call(this,t,e,i)).type="glyph",o.horizAdvX=o.getAttribute("horiz-adv-x").getNumber(),o.unicode=o.getAttribute("unicode").getString(),o.arabicForm=o.getAttribute("arabic-form").getString(),o}return n}(Ft);function Le(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Ne=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Le()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="tref",t}return h(n,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}]),n}(Lt);function je(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Ie=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(je()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;l(this,n),(o=r.call(this,t,e,i)).type="a";var a=e.childNodes,s=a[0],u=a.length>0&&Array.from(a).every((function(t){return 3===t.nodeType}));return o.hasText=u,o.text=u?o.getTextFromNode(s):"",o}return h(n,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){if(this.hasText){R(b(n.prototype),"renderChildren",this).call(this,t);var e=this.document,r=this.x,i=this.y,o=e.screen.mouse,a=new rt(e,"fontSize",Tt.parse(e.ctx.font).fontSize);o.isWorking()&&o.checkBoundingBox(this,new Ot(r,i-a.getPixels("y"),r+this.measureText(t),i))}else if(this.children.length>0){var s=new ce(this.document,null);s.children=this.children,s.parent=this,s.render(t)}}},{key:"onClick",value:function(){var t=this.document.window;t&&t.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){this.document.ctx.canvas.style.cursor="pointer"}}]),n}(Lt);function ze(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,e){if(!t)return;if("string"==typeof t)return $e(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $e(t,e)}(t))){var e=0,r=function(){};return{s:r,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i,o=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw i}}}}function $e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Be(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Fe=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Be()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;l(this,n),(o=r.call(this,t,e,i)).type="textPath",o.textWidth=0,o.textHeight=0,o.pathLength=-1,o.glyphInfo=null,o.letterSpacingCache=[],o.measuresCache=new Map([["",0]]);var a=o.getHrefAttribute().getDefinition();return o.text=o.getTextFromNode(),o.dataArray=o.parsePathData(a),o}return h(n,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(t){var e=this.dataArray;t&&t.beginPath(),e.forEach((function(e){var r=e.command,n=e.points;switch(r){case"L":t&&t.lineTo(n[0],n[1]);break;case"M":t&&t.moveTo(n[0],n[1]);break;case"C":t&&t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case"Q":t&&t.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case"A":var i=n[0],o=n[1],a=n[2],s=n[3],u=n[4],c=n[5],l=n[6],f=n[7],h=a>s?a:s,p=a>s?1:a/s,g=a>s?s/a:1;t&&(t.translate(i,o),t.rotate(l),t.scale(p,g),t.arc(0,0,h,u,u+c,Boolean(1-f)),t.scale(1/p,1/g),t.rotate(-l),t.translate(-i,-o));break;case"z":t&&t.closePath()}}))}},{key:"renderChildren",value:function(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),n=this.glyphInfo,i=t.fillStyle;"underline"===e&&t.beginPath(),n.forEach((function(i,o){var a=i.p0,s=i.p1,u=i.text;t.save(),t.translate(a.x,a.y),t.rotate(n[o].rotation),t.fillStyle&&t.fillText(u,0,0),t.strokeStyle&&t.strokeText(u,0,0),t.restore(),"underline"===e&&(0===o&&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()}},{key:"getLetterSpacingAt",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}},{key:"findSegmentToFitChar",value:function(t,e,r,n,i,o,a,s){var u=o,c=this.measureText(t,a);" "===a&&"justify"===e&&r<n&&(c+=(n-r)/i),s>-1&&(u+=this.getLetterSpacingAt(s));var l=this.textHeight/20,f={p0:this.getEquidistantPointOnPath(u,l),p1:this.getEquidistantPointOnPath(u+c,l)};return{offset:u+=c,segment:f}}},{key:"measureText",value:function(t,e){var r=this.measuresCache,n=e||this.getText();if(r.has(n))return r.get(n);var i=this.measureTargetText(t,n);return r.set(n,i),i}},{key:"setTextData",value:function(t){var e=this;if(!this.glyphInfo){var r=this.getText(),n=r.split(""),i=r.split(" ").length-1,o=V(this.parent.getAttribute("dx").getString("0")),a=this.parent.getStyle("text-anchor").getString("start"),s=this.getStyle("letter-spacing"),u=this.parent.getStyle("letter-spacing"),c=0;s.hasValue()&&"inherit"!==s.getValue()?s.hasValue()&&"initial"!==s.getValue()&&"unset"!==s.getValue()&&(c=s.getPixels()):c=u.getPixels();var l=[],f=r.length;this.letterSpacingCache=l;for(var h=0;h<f;h++)l.push(void 0!==o[h]?o[h]:c);var p=l.reduce((function(t,e){return t+e||0}),0);this.textWidth=this.measureText(t),this.textHeight=this.getFontSize();var g=Math.max(this.textWidth+p,0);this.glyphInfo=[];var v=this.getPathLength(),y=this.getStyle("startOffset").getNumber(0)*v,d=0;"middle"!==a&&"center"!==a||(d=-g/2),"end"!==a&&"right"!==a||(d=-g),d+=y,n.forEach((function(r,o){var s=e.findSegmentToFitChar(t,a,g,v,i,d,r,o),u=s.offset,c=s.segment;if(d=u,c.p0&&c.p1){var l=e.getLineLength(c.p0.x,c.p0.y,c.p1.x,c.p1.y),f=e.getPointOnLine(0+l/2,c.p0.x,c.p0.y,c.p1.x,c.p1.y),h=Math.atan2(c.p1.y-c.p0.y,c.p1.x-c.p0.x);e.glyphInfo.push({transposeX:f.x,transposeY:f.y,text:n[o],p0:c.p0,p1:c.p1,rotation:h})}}))}}},{key:"parsePathData",value:function(t){if(this.pathLength=-1,!t)return[];var e=[],r=t.pathParser;for(r.reset();!r.isEnd();){var n=r.current,i=n?n.x:0,o=n?n.y:0,a="",s=[];r.nextCommand();var u=r.command.toUpperCase();switch(r.command){case"M":case"m":a=this.pathM(r,s);break;case"L":case"l":a=this.pathL(r,s);break;case"H":case"h":a=this.pathH(r,s);break;case"V":case"v":a=this.pathV(r,s);break;case"C":case"c":this.pathC(r,s);break;case"S":case"s":a=this.pathS(r,s);break;case"Q":case"q":this.pathQ(r,s);break;case"T":case"t":a=this.pathT(r,s);break;case"A":case"a":s=this.pathA(r);break;case"Z":case"z":r.current=r.start}"Z"!==u?e.push({command:a||u,points:s,start:{x:i,y:o},pathLength:this.calcLength(i,o,a||u,s)}):e.push({command:"z",points:[],pathLength:0})}return e}},{key:"pathM",value:function(t,e){var r=t.getAsCurrentPoint();for(e.push(r.x,r.y),t.start=t.current;!t.isCommandOrEnd();){var n=t.getAsCurrentPoint();return e.push(n.x,n.y),"L"}}},{key:"pathL",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getAsCurrentPoint();e.push(r.x,r.y)}return"L"}},{key:"pathH",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.current,n=new it((t.isRelativeCommand()?r.x:0)+t.getScalar(),r.y);e.push(n.x,n.y),t.current=n}return"L"}},{key:"pathV",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.current,n=new it(r.x,(t.isRelativeCommand()?r.y:0)+t.getScalar());e.push(n.x,n.y),t.current=n}return"L"}},{key:"pathC",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getPoint(),n=t.getAsControlPoint(),i=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y,i.x,i.y)}}},{key:"pathS",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getReflectedControlPoint(),n=t.getAsControlPoint(),i=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y,i.x,i.y)}return"C"}},{key:"pathQ",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getAsControlPoint(),n=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y)}}},{key:"pathT",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getReflectedControlPoint();t.control=r;var n=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y)}return"Q"}},{key:"pathA",value:function(t){for(;!t.isCommandOrEnd();){var e=t.current,r=t.getScalar(),n=t.getScalar(),i=t.getScalar()*(Math.PI/180),o=t.getScalar(),a=t.getScalar(),s=t.getAsCurrentPoint(),u=new it(Math.cos(i)*(e.x-s.x)/2+Math.sin(i)*(e.y-s.y)/2,-Math.sin(i)*(e.x-s.x)/2+Math.cos(i)*(e.y-s.y)/2),c=Math.pow(u.x,2)/Math.pow(r,2)+Math.pow(u.y,2)/Math.pow(n,2);c>1&&(r*=Math.sqrt(c),n*=Math.sqrt(c));var l=(o===a?-1:1)*Math.sqrt((Math.pow(r,2)*Math.pow(n,2)-Math.pow(r,2)*Math.pow(u.y,2)-Math.pow(n,2)*Math.pow(u.x,2))/(Math.pow(r,2)*Math.pow(u.y,2)+Math.pow(n,2)*Math.pow(u.x,2)));isNaN(l)&&(l=0);var f=new it(l*r*u.y/n,l*-n*u.x/r),h=new it((e.x+s.x)/2+Math.cos(i)*f.x-Math.sin(i)*f.y,(e.y+s.y)/2+Math.sin(i)*f.x+Math.cos(i)*f.y),p=X([1,0],[(u.x-f.x)/r,(u.y-f.y)/n]),g=[(u.x-f.x)/r,(u.y-f.y)/n],v=[(-u.x-f.x)/r,(-u.y-f.y)/n],y=X(g,v);return H(g,v)<=-1&&(y=Math.PI),H(g,v)>=1&&(y=0),0===a&&y>0&&(y-=2*Math.PI),1===a&&y<0&&(y+=2*Math.PI),[h.x,h.y,r,n,p,y,i,a]}}},{key:"calcLength",value:function(t,e,r,n){var i=0,o=null,a=null,s=0;switch(r){case"L":return this.getLineLength(t,e,n[0],n[1]);case"C":for(i=0,o=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),s=.01;s<=1;s+=.01)a=this.getPointOnCubicBezier(s,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case"Q":for(i=0,o=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),s=.01;s<=1;s+=.01)a=this.getPointOnQuadraticBezier(s,t,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case"A":i=0;var u=n[4],c=n[5],l=n[4]+c,f=Math.PI/180;if(Math.abs(u-l)<f&&(f=Math.abs(u-l)),o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),c<0)for(s=u-f;s>l;s-=f)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(s=u+f;s<l;s+=f)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),i+=this.getLineLength(o.x,o.y,a.x,a.y)}return 0}},{key:"getPointOnLine",value:function(t,e,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,s=(i-r)/(n-e+U),u=Math.sqrt(t*t/(1+s*s));n<e&&(u*=-1);var c=s*u,l=null;if(n===e)l={x:o,y:a+c};else if((a-r)/(o-e+U)===s)l={x:o+u,y:a+c};else{var f=0,h=0,p=this.getLineLength(e,r,n,i);if(p<U)return null;var g=(o-e)*(n-e)+(a-r)*(i-r);f=e+(g/=p*p)*(n-e),h=r+g*(i-r);var v=this.getLineLength(o,a,f,h),y=Math.sqrt(t*t-v*v);u=Math.sqrt(y*y/(1+s*s)),n<e&&(u*=-1),l={x:f+u,y:h+(c=s*u)}}return l}},{key:"getPointOnPath",value:function(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||t-5e-5>e)return null;var i,o=ze(this.dataArray);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!a||!(a.pathLength<5e-5||r+a.pathLength+5e-5<t)){var s=t-r,u=0;switch(a.command){case"L":n=this.getPointOnLine(s,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case"A":var c=a.points[4],l=a.points[5],f=a.points[4]+l;if(u=c+s/a.pathLength*l,l<0&&u<f||l>=0&&u>f)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],u,a.points[6]);break;case"C":(u=s/a.pathLength)>1&&(u=1),n=this.getPointOnCubicBezier(u,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"Q":(u=s/a.pathLength)>1&&(u=1),n=this.getPointOnQuadraticBezier(u,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}}catch(t){o.e(t)}finally{o.f()}return null}},{key:"getLineLength",value:function(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}},{key:"getPathLength",value:function(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((function(t,e){return e.pathLength>0?t+e.pathLength:t}),0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,e,r,n,i,o,a,s,u){return{x:s*Y(t)+o*Q(t)+n*Z(t)+e*K(t),y:u*Y(t)+a*Q(t)+i*Z(t)+r*K(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,o,a){return{x:o*J(t)+n*tt(t)+e*et(t),y:a*J(t)+i*tt(t)+r*et(t)}}},{key:"getPointOnEllipticalArc",value:function(t,e,r,n,i,o){var a=Math.cos(o),s=Math.sin(o),u=r*Math.cos(i),c=n*Math.sin(i);return{x:t+(u*a-c*s),y:e+(u*s+c*a)}}},{key:"buildEquidistantCache",value:function(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 o=0,a=0;a<=r;a+=n){var s=this.getPointOnPath(a),u=this.getPointOnPath(a+n);s&&u&&((o+=this.getLineLength(s.x,s.y,u.x,u.y))>=i&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:a}),o-=i))}}}},{key:"getEquidistantPointOnPath",value:function(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}}]),n}(Lt);function _e(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var qe=function(t){S(o,t);var e,r,n,i=(e=o,function(){var t,r=b(e);if(_e()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function o(t,e,r){var n;l(this,o),(n=i.call(this,t,e,r)).type="image",n.loaded=!1;var a=n.getHrefAttribute().getString();if(!a)return x(n);var s=/\.svg$/.test(a);return t.images.push(m(n)),s?n.loadSvg(a):n.loadImage(a),n.isSvg=s,n}return h(o,[{key:"loadImage",value:(n=u(a().mark((function t(e){var r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.createImage(e);case 3:r=t.sent,this.image=r,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0);case 10:this.loaded=!0;case 11:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(t){return n.apply(this,arguments)})},{key:"loadSvg",value:(r=u(a().mark((function t(e){var r,n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.fetch(e);case 3:return r=t.sent,t.next=6,r.text();case 6:n=t.sent,this.image=n,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0);case 13:this.loaded=!0;case 14:case"end":return t.stop()}}),t,this,[[0,10]])}))),function(t){return r.apply(this,arguments)})},{key:"renderChildren",value:function(t){var e=this.document,r=this.image,n=this.loaded,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(n&&r&&a&&s){if(t.save(),this.isSvg)e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:i,offsetY:o,scaleWidth:a,scaleHeight:s}).render();else{var u=this.image;t.translate(i,o),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:u.width,height:s,desiredHeight:u.height}),this.loaded&&(void 0===u.complete||u.complete)&&t.drawImage(u,0,0)}t.restore()}}},{key:"getBoundingBox",value:function(){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 Ot(t,e,t+r,e+n)}}]),o}(Dt);function Ge(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Ue=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Ge()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="symbol",t}return h(n,[{key:"render",value:function(t){}}]),n}(Dt),We=function(){function t(e){l(this,t),this.document=e,this.loaded=!1,e.fonts.push(this)}var e;return h(t,[{key:"load",value:(e=u(a().mark((function t(e,r){var n,i,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=this.document,t.next=4,n.canvg.parser.load(r);case 4:i=t.sent,o=i.getElementsByTagName("font"),Array.from(o).forEach((function(t){var r=n.createElement(t);n.definitions[e]=r})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0);case 12:this.loaded=!0;case 13:case"end":return t.stop()}}),t,this,[[0,9]])}))),function(t,r){return e.apply(this,arguments)})}]),t}();function He(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var Xe=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(He()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,o){var a;return l(this,n),(a=r.call(this,t,e,o)).type="style",D(Array.from(e.childNodes).map((function(t){return t.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach((function(e){var r=e.trim();if(r){var n=r.split("{"),o=n[0].split(","),a=n[1].split(";");o.forEach((function(e){var r=e.trim();if(r){var n=t.styles[r]||{};if(a.forEach((function(e){var r=e.indexOf(":"),i=e.substr(0,r).trim(),o=e.substr(r+1,e.length-r).trim();i&&o&&(n[i]=new rt(t,i,o))})),t.styles[r]=n,t.stylesSpecificity[r]=function(t){var e=[0,0,0],r=t.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0,o=i(G(r,I),2);r=o[0],n=o[1],e[1]+=n;var a=i(G(r,z),2);r=a[0],n=a[1],e[0]+=n;var s=i(G(r,$),2);r=s[0],n=s[1],e[1]+=n;var u=i(G(r,B),2);r=u[0],n=u[1],e[2]+=n;var c=i(G(r,F),2);r=c[0],n=c[1],e[1]+=n;var l=i(G(r,_),2);r=l[0],n=l[1],e[1]+=n;var f=i(G(r=r.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),q),2);return r=f[0],n=f[1],e[2]+=n,e.join("")}(r),"@font-face"===r){var o=n["font-family"].getString().replace(/"|'/g,"");n.src.getString().split(",").forEach((function(e){if(e.indexOf('format("svg")')>0){var r=j(e);r&&new We(t).load(o,r)}}))}}}))}})),a}return n}(kt);function Ye(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}Xe.parseExternalUrl=j;var Qe=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Ye()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="use",t}return h(n,[{key:"setContext",value:function(t){R(b(n.prototype),"setContext",this).call(this,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"))}},{key:"path",value:function(t){var e=this.element;e&&e.path(t)}},{key:"renderChildren",value:function(t){var e=this.document,r=this.element;if(r){var n=r;if("symbol"===r.type&&((n=new qt(e,null)).attributes.viewBox=new rt(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new rt(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new rt(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children),"svg"===n.type){var i=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new rt(e,"width",i.getString())),o.hasValue()&&(n.attributes.height=new rt(e,"height",o.getString()))}var a=n.parent;n.parent=this,n.render(t),n.parent=a}}},{key:"getBoundingBox",value:function(t){var e=this.element;return e?e.getBoundingBox(t):null}},{key:"elementTransform",value:function(){var t=this.document,e=this.element;return St.fromElement(t,e)}},{key:"element",get:function(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),n}(Dt);function Ze(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function Ke(t,e,r,n,i,o){return t[r*n*4+4*e+o]}function Je(t,e,r,n,i,o,a){t[r*n*4+4*e+o]=a}function tr(t,e,r){var n=t[e];return n*(n<0?r-255:r)}function er(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}var rr=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(Ze()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;l(this,n),(o=r.call(this,t,e,i)).type="feColorMatrix";var a=V(o.getAttribute("values").getString());switch(o.getAttribute("type").getString("matrix")){case"saturate":var s=a[0];a=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var u=a[0]*Math.PI/180;a=[er(u,.213,.787,-.213),er(u,.715,-.715,-.715),er(u,.072,-.072,.928),0,0,er(u,.213,-.213,.143),er(u,.715,.285,.14),er(u,.072,-.072,-.283),0,0,er(u,.213,-.213,-.787),er(u,.715,-.715,.715),er(u,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return o.matrix=a,o.includeOpacity=o.getAttribute("includeOpacity").hasValue(),o}return h(n,[{key:"apply",value:function(t,e,r,n,i){for(var o=this.includeOpacity,a=this.matrix,s=t.getImageData(0,0,n,i),u=0;u<i;u++)for(var c=0;c<n;c++){var l=Ke(s.data,c,u,n,0,0),f=Ke(s.data,c,u,n,0,1),h=Ke(s.data,c,u,n,0,2),p=Ke(s.data,c,u,n,0,3),g=tr(a,0,l)+tr(a,1,f)+tr(a,2,h)+tr(a,3,p)+tr(a,4,1),v=tr(a,5,l)+tr(a,6,f)+tr(a,7,h)+tr(a,8,p)+tr(a,9,1),y=tr(a,10,l)+tr(a,11,f)+tr(a,12,h)+tr(a,13,p)+tr(a,14,1),d=tr(a,15,l)+tr(a,16,f)+tr(a,17,h)+tr(a,18,p)+tr(a,19,1);o&&(g=v=y=0,d*=p/255),Je(s.data,c,u,n,0,0,g),Je(s.data,c,u,n,0,1,v),Je(s.data,c,u,n,0,2,y),Je(s.data,c,u,n,0,3,d)}t.clearRect(0,0,n,i),t.putImageData(s,0,0)}}]),n}(kt);function nr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var ir=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(nr()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="mask",t}return h(n,[{key:"apply",value:function(t,e){var r=this.document,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!a&&!s){var u=new Ot;this.children.forEach((function(e){u.addBoundingBox(e.getBoundingBox(t))})),i=Math.floor(u.x1),o=Math.floor(u.y1),a=Math.floor(u.width),s=Math.floor(u.height)}var c=this.removeStyles(e,n.ignoreStyles),l=r.createCanvas(i+a,o+s),f=l.getContext("2d");r.screen.setDefaults(f),this.renderChildren(f),new rr(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(f,0,0,i+a,o+s);var h=r.createCanvas(i+a,o+s),p=h.getContext("2d");r.screen.setDefaults(p),e.render(p),p.globalCompositeOperation="destination-in",p.fillStyle=f.createPattern(l,"no-repeat"),p.fillRect(0,0,i+a,o+s),t.fillStyle=p.createPattern(h,"no-repeat"),t.fillRect(0,0,i+a,o+s),this.restoreStyles(e,c)}},{key:"render",value:function(t){}}]),n}(kt);function or(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}ir.ignoreStyles=["mask","transform","clip-path"];var ar=function(){},sr=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(or()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="clipPath",t}return h(n,[{key:"apply",value:function(t){var e=this.document,r=Reflect.getPrototypeOf(t),n=t.beginPath,i=t.closePath;r&&(r.beginPath=ar,r.closePath=ar),Reflect.apply(n,t,[]),this.children.forEach((function(n){if(void 0!==n.path){var o=void 0!==n.elementTransform?n.elementTransform():null;o||(o=St.fromElement(e,n)),o&&o.apply(t),n.path(t),r&&(r.closePath=i),o&&o.unapply(t)}})),Reflect.apply(i,t,[]),t.clip(),r&&(r.beginPath=n,r.closePath=i)}},{key:"render",value:function(t){}}]),n}(kt);function ur(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var cr=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(ur()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="filter",t}return h(n,[{key:"apply",value:function(t,e){var r=this.document,i=this.children,o=e.getBoundingBox(t);if(o){var a=0,s=0;i.forEach((function(t){var e=t.extraFilterDistance||0;a=Math.max(a,e),s=Math.max(s,e)}));var u=Math.floor(o.width),c=Math.floor(o.height),l=u+2*a,f=c+2*s;if(!(l<1||f<1)){var h=Math.floor(o.x),p=Math.floor(o.y),g=this.removeStyles(e,n.ignoreStyles),v=r.createCanvas(l,f),y=v.getContext("2d");r.screen.setDefaults(y),y.translate(-h+a,-p+s),e.render(y),i.forEach((function(t){"function"==typeof t.apply&&t.apply(y,0,0,l,f)})),t.drawImage(v,0,0,l,f,h-a,p-s,l,f),this.restoreStyles(e,g)}}}},{key:"render",value:function(t){}}]),n}(kt);function lr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}cr.ignoreStyles=["filter","transform","clip-path"];var fr=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(lr()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;return l(this,n),(o=r.call(this,t,e,i)).type="feDropShadow",o.addStylesFromStyleDefinition(),o}return h(n,[{key:"apply",value:function(t,e,r,n,i){}}]),n}(kt);function hr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var pr=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(hr()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="feMorphology",t}return h(n,[{key:"apply",value:function(t,e,r,n,i){}}]),n}(kt);function gr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var vr=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(gr()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="feComposite",t}return h(n,[{key:"apply",value:function(t,e,r,n,i){}}]),n}(kt);function yr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var dr=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(yr()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(t,e,i){var o;return l(this,n),(o=r.call(this,t,e,i)).type="feGaussianBlur",o.blurRadius=Math.floor(o.getAttribute("stdDeviation").getNumber()),o.extraFilterDistance=o.blurRadius,o}return h(n,[{key:"apply",value:function(t,e,r,n,i){var o=this.document,a=this.blurRadius,s=o.window?o.window.document.body:null,u=t.canvas;u.id=o.getUniqueId(),s&&(u.style.display="none",s.appendChild(u)),O(u,e,r,n,i,a),s&&s.removeChild(u)}}]),n}(kt);function mr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var xr=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(mr()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="title",t}return n}(kt);function br(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var wr=function(t){S(n,t);var e,r=(e=n,function(){var t,r=b(e);if(br()){var n=b(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return x(this,t)});function n(){var t;return l(this,n),(t=r.apply(this,arguments)).type="desc",t}return n}(kt),Sr={svg:qt,rect:Ut,circle:Ht,ellipse:Yt,line:Zt,polyline:Jt,polygon:ee,path:Ft,pattern:ne,marker:oe,defs:se,linearGradient:pe,radialGradient:ve,stop:de,animate:xe,animateColor:we,animateTransform:ke,font:Ce,"font-face":Te,"missing-glyph":Me,glyph:Ve,text:Lt,tspan:jt,tref:Ne,a:Ie,textPath:Fe,image:qe,g:ce,symbol:Ue,style:Xe,use:Qe,mask:ir,clipPath:sr,filter:cr,feDropShadow:fr,feMorphology:pr,feComposite:vr,feColorMatrix:rr,feGaussianBlur:dr,title:xr,desc:wr};function kr(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 Pr(){return Pr=u(a().mark((function t(e){var r,n,i=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>1&&void 0!==i[1]&&i[1],n=document.createElement("img"),r&&(n.crossOrigin="Anonymous"),t.abrupt("return",new Promise((function(t,r){n.onload=function(){t(n)},n.onerror=function(){r()},n.src=e})));case 4:case"end":return t.stop()}}),t)}))),Pr.apply(this,arguments)}var Rr=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.rootEmSize,i=void 0===n?12:n,o=r.emSize,a=void 0===o?12:o,s=r.createCanvas,u=void 0===s?t.createCanvas:s,c=r.createImage,f=void 0===c?t.createImage:c,h=r.anonymousCrossOrigin;l(this,t),this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=i,this.emSize=a,this.createCanvas=u,this.createImage=this.bindCreateImage(f,h),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return h(t,[{key:"bindCreateImage",value:function(t,e){return"boolean"==typeof e?function(r,n){return t(r,"boolean"==typeof n?n:e)}:t}},{key:"popEmSize",value:function(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every((function(t){return t.loaded}))}},{key:"isFontsLoaded",value:function(){return this.fonts.every((function(t){return t.loaded}))}},{key:"createDocumentElement",value:function(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}},{key:"createElement",value:function(e){var r=e.nodeName.replace(/^[^:]+:/,""),n=t.elementTypes[r];return void 0!==n?new n(this,e):new Rt(this,e)}},{key:"createTextNode",value:function(t){return new zt(this,t)}},{key:"setViewBox",value:function(t){this.screen.setViewBox(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kr(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({document:this},t))}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var t=this.emSizeStack;return t[t.length-1]},set:function(t){this.emSizeStack.push(t)}}]),t}();function Ar(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 Cr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ar(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ar(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}Rr.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},Rr.createImage=function(t){return Pr.apply(this,arguments)},Rr.elementTypes=Sr;var Er=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};l(this,t),this.parser=new ft(n),this.screen=new ut(e,n),this.options=n;var i=new Rr(this,n),o=i.createDocumentElement(r);this.document=i,this.documentElement=o}var e,r;return h(t,[{key:"fork",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.from(e,r,Cr({},this.options,{},n))}},{key:"forkString",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.fromString(e,r,Cr({},this.options,{},n))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:(r=u(a().mark((function t(){var e,r=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},this.start(Cr({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},e)),t.next=4,this.ready();case 4:this.stop();case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"start",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.documentElement,r=this.screen,n=this.options;r.start(e,Cr({enableRedraw:!0},n,{},t))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(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)}}],[{key:"from",value:(e=u(a().mark((function e(r,n){var i,o,s,u=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=u.length>2&&void 0!==u[2]?u[2]:{},o=new ft(i),e.next=4,o.parse(n);case 4:return s=e.sent,e.abrupt("return",new t(r,s,i));case 6:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})},{key:"fromString",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new ft(n),o=i.parseFromString(r);return new t(e,o,n)}}]),t}();const Tr=Er;function Or(t,e,r){var n=t.replace("src","href");n.replace("img","image");var i=n.split(" ");for(var o of(i.splice(-2,0,`x="${e}" y="${r}"`),i))if(o.includes("href")){let t=o.split("href=")[0];t=t.substring("app://local/".length-1,t.lastIndexOf("?")),i[i.indexOf[o]]=t}return i.join(" ")+">"}const Mr='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',Dr=40;let Vr,Lr,Nr,jr,Ir,zr,$r=document;function Br(){Vr=1e4,Lr=1e4,Nr=1e4,jr=1e4,Ir=0,zr=0}function Fr(){const t=$r.querySelectorAll(".box > grp, root");let e="";for(let e=0;e<t.length;e++){const r=t[e],n=r.getBoundingClientRect(),i=r.offsetTop,o=i+n.height,a=r.offsetLeft,s=a+n.width;i<Vr&&(Vr=i),o>Lr&&(Lr=o),a<Nr&&(Nr=a),s>jr&&(jr=s)}for(let r=0;r<t.length;r++){const n=t[r];"ROOT"!==n.tagName&&(e+=_r(n))}e+=function(){const t=$r.querySelector("root"),e=$r.querySelector("root > tpc").getBoundingClientRect(),r=0,n=0,i=$r.querySelector("root > tpc").nodeObj,o=t.offsetTop-Vr,a=t.offsetLeft-Nr,s=$r.querySelector(".svg2nd");return`<g transform="translate(${Dr-Nr}, ${Dr-Vr})">${s.innerHTML}</g>`+`<g id="root" transform="translate(${a+Dr}, ${o+Dr})">\n <rect x="${n}" y="${r}" rx="5px" ry="5px" width="${e.width}" height="${e.height}" style="fill: #00aaff;"></rect>\n <text x="${n+15}" y="${r+35}" text-anchor="start" align="top" anchor="start" font-family="微软雅黑" font-size="25px" font-weight="normal" fill="#ffffff">\n ${i.topic}\n </text>\n </g>`}(),Ir=Lr-Vr+80,zr=jr-Nr+80;const r=function(t,e){const r=document.createElementNS("http://www.w3.org/2000/svg","svg");return r.setAttribute("height",t),r.setAttribute("width",e),r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("version","1.2"),r.setAttribute("xlink","http://www.w3.org/1999/xlink"),r}(Ir,zr);return e=`<rect x="0" y="0" width="${zr}" height="${Ir}" fill="#f6f6f6"></rect>`+e,r.innerHTML=e,r}function _r(t){const e=t.querySelectorAll("tpc"),r=t.offsetTop-Vr,n=t.offsetLeft-Nr;let i="";const o=t.querySelector(".svg3rd");i+=`<g transform="translate(${n+Dr}, ${r+Dr})">`,i+=o?o.innerHTML:"";for(let t=0;t<e.length;t++){const r=e[t],n=r.parentNode,o=r.nodeObj;if(o.root)continue;const a=r.getBoundingClientRect(),s=n.offsetTop,u=n.offsetLeft,c=getComputedStyle(r),l=getComputedStyle(n),f=u+parseInt(l.paddingLeft)+parseInt(c.paddingLeft),h=s+parseInt(l.paddingTop)+parseInt(c.paddingTop)+parseInt(c.fontSize);let p="";"0px"!==c.borderWidth&&(p=`<rect x="${u+15}" y="${s}" rx="5px" ry="5px" width="${a.width}" height="${a.height}" style="fill: rgba(0,0,0,0); stroke:#444;stroke-width:1px;"></rect>`);let g="";"rgba(0, 0, 0, 0)"!==c.backgroundColor&&(g=`<rect x="${u+15}" y="${s}" rx="5px" ry="5px" width="${a.width}" height="${a.height}" style="fill: ${c.backgroundColor};"></rect>`);let v="";if(o.tags&&o.tags.length){const t=r.querySelectorAll(".tags > span");for(let e=0;e<t.length;e++){const r=t[e],n=r.getBoundingClientRect();v+=`<rect x="${f}" y="${h+4}" rx="5px" ry="5px" width="${n.width}" height="${n.height}" style="fill: #d6f0f8;"></rect>\n <text font-family="微软雅黑" font-size="12px" fill="#276f86" x="${f+4}" y="${h+4+12}">${r.innerHTML}</text>`}}let y="";if(o.icons&&o.icons.length){const t=r.querySelectorAll(".icons > span");for(let e=0;e<t.length;e++){y+=`\n <tspan>${t[e].innerHTML}</tspan>`}}o.topic.includes("<img")?i+=`<g id="${o.id}">\n ${p}\n ${g}\n <-- ${o.id} ${p} ${g} ${o.topic} ${y} ${v}} --\x3e\n ${Or(o.topic,f,h)}\n ${y}\n ${v}\n </g>`:i+=`<g id="${o.id}">\n ${p}\n ${g}\n <text x="${f}" y="${h}" text-anchor="start" align="top" anchor="start" font-family="微软雅黑" font-size="${c.fontSize}" font-weight="${c.fontWeight}" fill="${c.color}">\n ${o.topic}\n ${y}\n </text>\n ${v}\n </g>`}return i+="</g>",i}function qr(){return $r.querySelector("root > tpc").innerText}const Gr={exportSvg:function(t,e){if(!t)throw new Error("Mind-elixir instance is not presented. ---\x3e exportSvg(instance, fileName)");Br(),$r=t.container;const r=Fr(),n=URL.createObjectURL(new Blob([Mr+r.outerHTML.replace(/ /g," ")])),i=document.createElement("a");i.href=n,i.download=(e||qr())+".svg",i.click()},exportPng:async function(t,e){if(!t)throw new Error("Mind-elixir instance is not presented. ---\x3e exportSvg(instance, fileName)");Br(),$r=t.container;const r=Fr(),n=document.createElement("canvas");n.style.display="none";const i=n.getContext("2d");(await Tr.fromString(i,Mr+r.outerHTML.replace(/ /g," "))).start();const o=n.toDataURL("image/png"),a=document.createElement("a");a.href=o,a.download=e||qr()+".png",a.click()}}})(),n=n.default})()}));