vue-2-img
Version:
An easy way to convert HTML sections and charts to JPG, PNG or PDF files
15 lines • 217 kB
JavaScript
webpackJsonpVue2Img([0],Array(356).concat([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function n(t){return t.replace(/(?!\u3000)\s+/gm," ")}function i(t){return t.replace(/^[\n \t]+/,"")}function o(t){return t.replace(/[\n \t]+$/,"")}function a(t){var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return Xe()(e).call(e,Ue.a)}function u(t){return Vn.test(t)?t.toLowerCase():t}function s(t){var e=t.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return e[2]||e[3]||e[4]}function c(t){if(!Fe()(t).call(t,"rgb"))return t;var e=3;return t.replace(/\d+(\.\d+)?/g,function(t,r){return e--&&r?String(Math.round(Ue()(t))):t})}function f(t,e){var r=t.match(e);return r?[t.replace(e," "),r.length]:[t,0]}function l(t){var e=[0,0,0],r=t.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0,i=f(r,Dn),o=qe()(i,2);r=o[0],n=o[1],e[1]+=n;var a=f(r,Ln),u=qe()(a,2);r=u[0],n=u[1],e[0]+=n;var s=f(r,In),c=qe()(s,2);r=c[0],n=c[1],e[1]+=n;var l=f(r,jn),h=qe()(l,2);r=h[0],n=h[1],e[2]+=n;var p=f(r,zn),v=qe()(p,2);r=v[0],n=v[1],e[1]+=n;var y=f(r,Fn),g=qe()(y,2);r=g[0],n=g[1],e[1]+=n,r=r.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," ");var d=f(r,Bn),m=qe()(d,2);return r=m[0],n=m[1],e[2]+=n,e.join("")}function h(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function p(t,e){return(t[0]*e[0]+t[1]*e[1])/(h(t)*h(e))}function v(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(p(t,e))}function y(t){return t*t*t}function g(t){return 3*t*t*(1-t)}function d(t){return 3*t*(1-t)*(1-t)}function m(t){return(1-t)*(1-t)*(1-t)}function x(t){return t*t}function b(t){return 2*t*(1-t)}function w(t){return(1-t)*(1-t)}function S(t){var e=A();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function A(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function k(t){var e=T();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function T(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function O(t){var e=P();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function P(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function E(t){var e;return Vr()(e=n(t)).call(e).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function C(t){var e=t.split("("),r=qe()(e,2),n=r[0],i=r[1];return[Vr()(n).call(n),Vr()(i).call(i).replace(")","")]}function M(t){var e=N();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function N(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function R(t){var e=Vr()(t).call(t);return/^('|")/.test(e)?e:'"'.concat(e,'"')}function _(e){var r;return void 0===t?e:Xe()(r=Vr()(e).call(e).split(",")).call(r,R).join(",")}function V(t){if(!t)return"";var e=Vr()(t).call(t).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 D(t){if(!t)return"";var e=Vr()(t).call(t).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:""}}function L(t){var e=I();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function I(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function j(t){var e=z();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function z(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function F(t){var e=B();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function B(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function U(t){var e=H();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function H(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function X(t){var e=Y();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Y(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function q(t){var e=G();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function G(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function Q(t){var e=W();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function W(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function $(t){var e=Z();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Z(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function K(t){var e=J();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function J(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function tt(t){var e=et();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function et(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function rt(t){var e=nt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function nt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function it(t){var e=ot();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function ot(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function at(t){var e=ut();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function ut(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function st(t){var e=ct();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function ct(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function ft(t){var e=lt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function lt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function ht(t){var e=pt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function pt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function vt(t){var e=yt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function yt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function gt(t){var e=dt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function dt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function mt(t){var e=xt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function xt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function bt(t){var e=wt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function wt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function St(t){var e=At();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function At(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function kt(t){var e=Tt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Tt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function Ot(t){var e=Pt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Pt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function Et(t){var e=Ct();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Ct(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function Mt(t,e){var r;if(void 0===kn.a||null==Sn()(t)){if(bn()(t)||(r=Nt(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 o,a=!0,u=!1;return{s:function(){r=mn()(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function Nt(t,e){var r;if(t){if("string"==typeof t)return Rt(t,e);var n=On()(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Kr()(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rt(t,e):void 0}}function Rt(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 _t(t){var e=Vt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Vt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function Dt(t){var e=Lt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Lt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function It(t){var e=jt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function jt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function zt(t){var e=Ft();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Ft(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function Bt(t){var e=Ut();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Ut(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function Ht(t){var e=Xt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Xt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function Yt(t,e){var r;if(void 0===kn.a||null==Sn()(t)){if(bn()(t)||(r=qt(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 o,a=!0,u=!1;return{s:function(){r=mn()(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function qt(t,e){var r;if(t){if("string"==typeof t)return Gt(t,e);var n=On()(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Kr()(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gt(t,e):void 0}}function Gt(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 Qt(t,e){var r=sr()(t);if(ar.a){var n=ar()(t);e&&(n=ir()(n).call(n,function(e){return rr()(t,e).enumerable})),r.push.apply(r,n)}return r}function Wt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};if(e%2){var n;tr()(n=Qt(Object(r),!0)).call(n,function(e){vr()(t,e,r[e])})}else if(Ke.a)$e()(t,Ke()(r));else{var i;tr()(i=Qt(Object(r))).call(i,function(e){Qe()(t,e,rr()(r,e))})}}return t}function $t(t){var e=Zt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Zt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function Kt(t){var e=Jt();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Jt(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function te(t){var e=ee();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function ee(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function re(t){var e=ne();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function ne(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function ie(t){var e=oe();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function oe(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function ae(t){var e=ue();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function ue(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function se(t,e,r,n,i,o){return t[r*n*4+4*e+o]}function ce(t,e,r,n,i,o,a){t[r*n*4+4*e+o]=a}function fe(t,e,r){return t[e]*r}function le(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}function he(t){var e=pe();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function pe(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function ve(t){var e=ye();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function ye(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function ge(t){var e=de();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function de(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function me(t){var e=xe();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function xe(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function be(t){var e=we();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function we(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function Se(t){var e=Ae();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Ae(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function ke(t){var e=Te();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Te(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function Oe(t){var e=Pe();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Pe(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function Ee(t){var e=Ce();return function(){var r,n=Xr()(t);if(e){var i=Xr()(this).constructor;r=jr()(n,arguments,i)}else r=n.apply(this,arguments);return Ur()(this,r)}}function Ce(){if("undefined"==typeof Reflect||!jr.a)return!1;if(jr.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(jr()(Date,[],function(){})),!0}catch(t){return!1}}function Me(t,e){var r=sr()(t);if(ar.a){var n=ar()(t);e&&(n=ir()(n).call(n,function(e){return rr()(t,e).enumerable})),r.push.apply(r,n)}return r}function Ne(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};if(e%2){var n;tr()(n=Me(Object(r),!0)).call(n,function(e){vr()(t,e,r[e])})}else if(Ke.a)$e()(t,Ke()(r));else{var i;tr()(i=Me(Object(r))).call(i,function(e){Qe()(t,e,rr()(r,e))})}}return t}function Re(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r}function _e(t){return Ve.apply(this,arguments)}function Ve(){return Ve=hr()(fr.a.mark(function t(e){var r,n,i=arguments;return fr.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 Er.a(function(t,r){n.onload=function(){t(n)},n.onerror=function(){r()},n.src=e}));case 4:case"end":return t.stop()}},t)})),Ve.apply(this,arguments)}function De(t,e){var r=sr()(t);if(ar.a){var n=ar()(t);e&&(n=ir()(n).call(n,function(e){return rr()(t,e).enumerable})),r.push.apply(r,n)}return r}function Le(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};if(e%2){var n;tr()(n=De(Object(r),!0)).call(n,function(e){vr()(t,e,r[e])})}else if(Ke.a)$e()(t,Ke()(r));else{var i;tr()(i=De(Object(r))).call(i,function(e){Qe()(t,e,rr()(r,e))})}}return t}function Ie(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.DOMParser,r={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas:function(t,e){return new OffscreenCanvas(t,e)},createImage:function(t){return hr()(fr.a.mark(function e(){var r,n,i;return fr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return r=e.sent,e.next=5,r.blob();case 5:return n=e.sent,e.next=8,createImageBitmap(n);case 8:return i=e.sent,e.abrupt("return",i);case 10:case"end":return e.stop()}},e)}))()}};return"undefined"==typeof DOMParser&&void 0!==e||fn()(r,"DOMParser"),r}function je(t){var e=t.DOMParser,r=t.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:t.fetch,createCanvas:r.createCanvas,createImage:r.loadImage}}r.d(e,"AElement",function(){return Fi}),r.d(e,"AnimateColorElement",function(){return _i}),r.d(e,"AnimateElement",function(){return Ri}),r.d(e,"AnimateTransformElement",function(){return Vi}),r.d(e,"BoundingBox",function(){return fi}),r.d(e,"CB1",function(){return y}),r.d(e,"CB2",function(){return g}),r.d(e,"CB3",function(){return d}),r.d(e,"CB4",function(){return m}),r.d(e,"Canvg",function(){return ao}),r.d(e,"CircleElement",function(){return xi}),r.d(e,"ClipPathElement",function(){return $i}),r.d(e,"DefsElement",function(){return Oi}),r.d(e,"DescElement",function(){return no}),r.d(e,"Document",function(){return oo}),r.d(e,"Element",function(){return ui}),r.d(e,"EllipseElement",function(){return bi}),r.d(e,"FeColorMatrixElement",function(){return Gi}),r.d(e,"FeCompositeElement",function(){return to}),r.d(e,"FeDropShadowElement",function(){return Ki}),r.d(e,"FeGaussianBlurElement",function(){return eo}),r.d(e,"FeMorphologyElement",function(){return Ji}),r.d(e,"FilterElement",function(){return Zi}),r.d(e,"Font",function(){return ci}),r.d(e,"FontElement",function(){return Di}),r.d(e,"FontFaceElement",function(){return Li}),r.d(e,"GElement",function(){return Pi}),r.d(e,"GlyphElement",function(){return ji}),r.d(e,"GradientElement",function(){return Ei}),r.d(e,"ImageElement",function(){return Ui}),r.d(e,"LineElement",function(){return wi}),r.d(e,"LinearGradientElement",function(){return Ci}),r.d(e,"MarkerElement",function(){return Ti}),r.d(e,"MaskElement",function(){return Qi}),r.d(e,"Matrix",function(){return ri}),r.d(e,"MissingGlyphElement",function(){return Ii}),r.d(e,"Mouse",function(){return qn}),r.d(e,"PSEUDO_ZERO",function(){return Un}),r.d(e,"Parser",function(){return Kn}),r.d(e,"PathElement",function(){return gi}),r.d(e,"PathParser",function(){return yi}),r.d(e,"PatternElement",function(){return ki}),r.d(e,"Point",function(){return Yn}),r.d(e,"PolygonElement",function(){return Ai}),r.d(e,"PolylineElement",function(){return Si}),r.d(e,"Property",function(){return Hn}),r.d(e,"QB1",function(){return x}),r.d(e,"QB2",function(){return b}),r.d(e,"QB3",function(){return w}),r.d(e,"RadialGradientElement",function(){return Mi}),r.d(e,"RectElement",function(){return mi}),r.d(e,"RenderedElement",function(){return li}),r.d(e,"Rotate",function(){return ti}),r.d(e,"SVGElement",function(){return di}),r.d(e,"SVGFontLoader",function(){return Xi}),r.d(e,"Scale",function(){return ei}),r.d(e,"Screen",function(){return Wn}),r.d(e,"Skew",function(){return ni}),r.d(e,"SkewX",function(){return ii}),r.d(e,"SkewY",function(){return oi}),r.d(e,"StopElement",function(){return Ni}),r.d(e,"StyleElement",function(){return Yi}),r.d(e,"SymbolElement",function(){return Hi}),r.d(e,"TRefElement",function(){return zi}),r.d(e,"TSpanElement",function(){return pi}),r.d(e,"TextElement",function(){return hi}),r.d(e,"TextPathElement",function(){return Bi}),r.d(e,"TitleElement",function(){return ro}),r.d(e,"Transform",function(){return ai}),r.d(e,"Translate",function(){return Jn}),r.d(e,"UnknownElement",function(){return si}),r.d(e,"UseElement",function(){return qi}),r.d(e,"ViewPort",function(){return Xn}),r.d(e,"compressSpaces",function(){return n}),r.d(e,"getSelectorSpecificity",function(){return l}),r.d(e,"normalizeAttributeName",function(){return u}),r.d(e,"normalizeColor",function(){return c}),r.d(e,"parseExternalUrl",function(){return s}),r.d(e,"presets",function(){return uo}),r.d(e,"toNumbers",function(){return a}),r.d(e,"trimLeft",function(){return i}),r.d(e,"trimRight",function(){return o}),r.d(e,"vectorMagnitude",function(){return h}),r.d(e,"vectorsAngle",function(){return v}),r.d(e,"vectorsRatio",function(){return p});var ze=r(496),Fe=r.n(ze),Be=r(506),Ue=r.n(Be),He=r(491),Xe=r.n(He),Ye=r(536),qe=r.n(Ye),Ge=r(501),Qe=r.n(Ge),We=r(500),$e=r.n(We),Ze=r(503),Ke=r.n(Ze),Je=r(488),tr=r.n(Je),er=r(502),rr=r.n(er),nr=r(487),ir=r.n(nr),or=r(504),ar=r.n(or),ur=r(505),sr=r.n(ur),cr=r(541),fr=r.n(cr),lr=r(524),hr=r.n(lr),pr=r(527),vr=r.n(pr),yr=r(525),gr=r.n(yr),dr=r(526),mr=r.n(dr),xr=r(484),br=r.n(xr),wr=r(492),Sr=r.n(wr),Ar=r(482),kr=r.n(Ar),Tr=r(485),Or=r.n(Tr),Pr=r(508),Er=r.n(Pr),Cr=r(483),Mr=r.n(Cr),Nr=r(727),Rr=r.n(Nr),_r=r(497),Vr=r.n(_r),Dr=r(728),Lr=r.n(Dr),Ir=r(510),jr=r.n(Ir),zr=r(529),Fr=r.n(zr),Br=r(534),Ur=r.n(Br),Hr=r(437),Xr=r.n(Hr),Yr=r(538),qr=r.n(Yr),Gr=r(495),Qr=r.n(Gr),Wr=r(489),$r=r.n(Wr),Zr=r(480),Kr=r.n(Zr),Jr=r(493),tn=r.n(Jr),en=r(490),rn=r.n(en),nn=r(528),on=r.n(nn),an=r(486),un=r.n(an),sn=r(730),cn=r(511),fn=r.n(cn),ln=r(436),hn=r.n(ln),pn=r(498),vn=r.n(pn),yn=r(507),gn=r.n(yn),dn=r(431),mn=r.n(dn),xn=r(481),bn=r.n(xn),wn=r(514),Sn=r.n(wn),An=r(513),kn=r.n(An),Tn=r(494),On=r.n(Tn),Pn=r(499),En=r.n(Pn),Cn=r(509),Mn=r.n(Cn),Nn=r(512),Rn=r.n(Nn),_n=r(729),Vn=/^[A-Z-]+$/,Dn=/(\[[^\]]+\])/g,Ln=/(#[^\s\+>~\.\[:]+)/g,In=/(\.[^\s\+>~\.\[:]+)/g,jn=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,zn=/(:[\w-]+\([^\)]*\))/gi,Fn=/(:[^\s\+>~\.\[:]+)/g,Bn=/([^\s\+>~\.\[:]+)/g,Un=1e-8,Hn=function(){function t(e,r,n){gr()(this,t),this.document=e,this.name=r,this.value=n,this.isNormalizedColor=!1}return mr()(t,[{key:"split",value:function(){var e,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",o=this.document,a=this.name;return Xe()(e=Vr()(r=n(this.getString())).call(r).split(i)).call(e,function(e){return new t(o,a,e)})}},{key:"hasValue",value:function(t){var e=this.value;return null!==e&&""!==e&&(t||0!==e)&&void 0!==e}},{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:Ue()(t);var e=this.value,r=Ue()(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?e:(this.isNormalizedColor=!0,e=c(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=qe()(r,2),i=n[0],o=n[1],a=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(a.computeSize("x"),a.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(a.computeSize("x"),a.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*a.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*a.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(/%$/)&&o:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*a.computeSize(i);default:var u=this.getNumber();return e&&u<1?u*a.computeSize(i):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 Lr.a(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}();Hn.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 Xn=function(){function t(){gr()(this,t),this.viewPorts=[]}return mr()(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}(),Yn=function(){function t(e,r){gr()(this,t),this.x=e,this.y=r}return mr()(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=a(e),i=qe()(n,2),o=i[0],u=void 0===o?r:o,s=i[1];return new t(u,void 0===s?r:s)}},{key:"parseScale",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=a(e),i=qe()(n,2),o=i[0],u=void 0===o?r:o,s=i[1];return new t(u,void 0===s?u:s)}},{key:"parsePath",value:function(e){for(var r=a(e),n=r.length,i=[],o=0;o<n;o+=2)i.push(new t(r[o],r[o+1]));return i}}]),t}(),qn=function(){function t(e){var r,n;gr()(this,t),this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=Mr()(r=this.onClick).call(r,this),this.onMouseMove=Mr()(n=this.onMouseMove).call(n,this)}return mr()(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=""),tr()(e).call(e,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;tr()(r).call(r,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;tr()(r).call(r,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 Yn(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}(),Gn="undefined"!=typeof window?window:null,Qn="undefined"!=typeof fetch?Mr()(fetch).call(fetch,void 0):null,Wn=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.fetch,i=void 0===n?Qn:n,o=r.window,a=void 0===o?Gn:o;gr()(this,t),this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Xn,this.mouse=new qn(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=a,this.fetch=i}return mr()(t,[{key:"wait",value:function(t){this.waits.push(t)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Er.a.resolve()}},{key:"isReady",value:function(){var t;if(this.isReadyLock)return!0;var e=Or()(t=this.waits).call(t,function(t){return t()});return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}},{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,i=t.aspectRatio,o=t.width,a=t.desiredWidth,u=t.height,s=t.desiredHeight,c=t.minX,f=void 0===c?0:c,l=t.minY,h=void 0===l?0:l,p=t.refX,v=t.refY,y=t.clip,g=void 0!==y&&y,d=t.clipX,m=void 0===d?0:d,x=t.clipY,b=void 0===x?0:x,w=n(i).replace(/^defer\s/,""),S=w.split(" "),A=qe()(S,2),k=A[0],T=A[1],O=k||"xMidYMid",P=T||"meet",E=o/a,C=u/s,M=Math.min(E,C),N=Math.max(E,C),R=a,_=s;"meet"===P&&(R*=M,_*=M),"slice"===P&&(R*=N,_*=N);var V=new Hn(e,"refX",p),D=new Hn(e,"refY",v),L=V.hasValue()&&D.hasValue();if(L&&r.translate(-M*V.getPixels("x"),-M*D.getPixels("y")),g){var I=M*m,j=M*b;r.beginPath(),r.moveTo(I,j),r.lineTo(o,j),r.lineTo(o,u),r.lineTo(I,u),r.closePath(),r.clip()}if(!L){var z="meet"===P&&M===C,F="slice"===P&&N===C,B="meet"===P&&M===E,U="slice"===P&&N===E;/^xMid/.test(O)&&(z||F)&&r.translate(o/2-R/2,0),/YMid$/.test(O)&&(B||U)&&r.translate(0,u/2-_/2),/^xMax/.test(O)&&(z||F)&&r.translate(o-R,0),/YMax$/.test(O)&&(B||U)&&r.translate(0,u-_)}switch(!0){case"none"===O:r.scale(E,C);break;case"meet"===P:r.scale(M,M);break;case"slice"===P:r.scale(N,N)}r.translate(-f,-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,u=r.ignoreAnimation,s=void 0!==u&&u,c=r.ignoreDimensions,f=void 0!==c&&c,l=r.ignoreClear,h=void 0!==l&&l,p=r.forceRedraw,v=r.scaleWidth,y=r.scaleHeight,g=r.offsetX,d=r.offsetY,m=this.FRAMERATE,x=this.mouse,b=1e3/m;if(this.frameDuration=b,this.readyPromise=new Er.a(function(t){e.resolveReady=t}),this.isReady()&&this.render(t,f,h,v,y,g,d),i){var w=kr()(),S=w,A=0,k=function r(){w=kr()(),A=w-S,A>=b&&(S=w-A%b,e.shouldUpdate(s,p)&&(e.render(t,f,h,v,y,g,d),x.runEvents())),e.intervalId=Rr()(r)};a||x.start(),this.intervalId=Rr()(k)}}},{key:"stop",value:function(){this.intervalId&&(Rr.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(t,e){if(!t){var r,n=this.frameDuration;if(Sr()(r=this.animations).call(r,function(t,e){return e.update(n)||t},!1))return!0}return!("function"!=typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function(t,e,r,n,i,o,u){var s=this.CLIENT_WIDTH,c=this.CLIENT_HEIGHT,f=this.viewPort,l=this.ctx,h=this.isFirstRender,p=l.canvas;f.clear(),p.width&&p.height?f.setCurrent(p.width,p.height):f.setCurrent(s,c);var v=t.getStyle("width"),y=t.getStyle("height");!e&&(h||"number"!=typeof n&&"number"!=typeof i)&&(v.hasValue()&&(p.width=v.getPixels("x"),p.style&&(p.style.width="".concat(p.width,"px"))),y.hasValue()&&(p.height=y.getPixels("y"),p.style&&(p.style.height="".concat(p.height,"px"))));var g=p.clientWidth||p.width,d=p.clientHeight||p.height;if(e&&v.hasValue()&&y.hasValue()&&(g=v.getPixels("x"),d=y.getPixels("y")),f.setCurrent(g,d),"number"==typeof o&&t.getAttribute("x",!0).setValue(o),"number"==typeof u&&t.getAttribute("y",!0).setValue(u),"number"==typeof n||"number"==typeof i){var m,x,b=a(t.getAttribute("viewBox").getString()),w=0,S=0;if("number"==typeof n){var A=t.getStyle("width");A.hasValue()?w=A.getPixels("x")/n:isNaN(b[2])||(w=b[2]/n)}if("number"==typeof i){var k=t.getStyle("height");k.hasValue()?S=k.getPixels("y")/i:isNaN(b[3])||(S=b[3]/i)}w||(w=S),S||(S=w),t.getAttribute("width",!0).setValue(n),t.getAttribute("height",!0).setValue(i);var T=t.getStyle("transform",!0,!0);T.setValue(br()(m=br()(x="".concat(T.getString()," scale(")).call(x,1/w,", ")).call(m,1/S,")"))}r||l.clearRect(0,0,g,d),t.render(l),h&&(this.isFirstRender=!1)}}]),t}();Wn.defaultWindow=Gn,Wn.defaultFetch=Qn;var $n=Wn.defaultFetch,Zn="undefined"!=typeof DOMParser?DOMParser:null,Kn=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.fetch,n=void 0===r?$n:r,i=e.DOMParser,o=void 0===i?Zn:i;gr()(this,t),this.fetch=n,this.DOMParser=o}return mr()(t,[{key:"parse",value:function(){function t(t){return e.apply(this,arguments)}var e=hr()(fr.a.mark(function t(e){return fr.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)}));return t}()},{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:function(){function t(t){return e.apply(this,arguments)}var e=hr()(fr.a.mark(function t(e){var r,n;return fr.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)}));return t}()}]),t}(),Jn=function(){function t(e,r){gr()(this,t),this.type="translate",this.point=null,this.point=Yn.parse(r)}return mr()(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}(),ti=function(){function t(e,r,n){gr()(this,t),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=a(r);this.angle=new Hn(e,"angle",i[0]),this.originX=n[0],this.originY=n[1],this.cx=i[1]||0,this.cy=i[2]||0}return mr()(t,[{key:"apply",value:function(t){var e=this.cx,r=this.cy,n=this.originX,i=this.originY,o=this.angle,a=e+n.getPixels("x"),u=r+i.getPixels("y");t.translate(a,u),t.rotate(o.getRadians()),t.translate(-a,-u)}},{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,i=n.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}]),t}(),ei=function(){function t(e,r){gr()(this,t),this.type="scale",this.scale=null;var n=Yn.parseScale(r);0!==n.x&&0!==n.y||(n.x=Un,n.y=Un),this.scale=n}return mr()(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}(),ri=function(){function t(e,r){gr()(this,t),this.type="matrix",this.matrix=[],this.matrix=a(r)}return mr()(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],u=e[5],s=1/(r*(1*a-0*u)-n*(1*o-0*u)+i*(0*o-0*a));t.transform(s*(1*a-0*u),s*(0*u-1*o),s*(0*i-1*n),s*(1*r-0*i),s*(n*u-i*a),s*(i*o-r*u))}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),t}(),ni=function(t){function e(t,n){var i;return gr()(this,e),i=r.call(this,t,n),i.type="skew",i.angle=null,i.angle=new Hn(t,"angle",n),i}Fr()(e,t);var r=S(e);return e}(ri),ii=function(t){function e(t,n){var i;return gr()(this,e),i=r.call(this,t,n),i.type="skewX",i.matrix=[1,0,Math.tan(i.angle.getRadians()),1,0,0],i}Fr()(e,t);var r=k(e);return e}(ni),oi=function(t){function e(t,n){var i;return gr()(this,e),i=r.call(this,t,n),i.type="skewY",i.matrix=[1,Math.tan(i.angle.getRadians()),0,1,0,0],i}Fr()(e,t);var r=O(e);return e}(ni),ai=function(){function t(e,r,n){var i=this;gr()(this,t),this.document=e,this.transforms=[];var o=E(r);tr()(o).call(o,function(e){if("none"!==e){var r=C(e),o=qe()(r,2),a=o[0],u=o[1],s=t.transformTypes[a];void 0!==s&&i.transforms.push(new s(i.document,u,n))}})}return mr()(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,n=r-1;n>=0;n--)e[n].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).split(),o=qe()(i,2),a=o[0],u=o[1],s=void 0===u?a:u,c=[a,s];return n.hasValue()?new t(e,n.getString(),c):null}}]),t}();ai.transformTypes={translate:Jn,rotate:ti,scale:ei,matrix:ri,skewX:ii,skewY:oi};var ui=function(){function t(e,r){var n,i,o=this,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(gr()(this,t),this.document=e,this.node=r,this.captureTextNodes=a,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){if(tr()(n=Kr()(r.attributes)).call(n,function(t){var r=u(t.nodeName);o.attributes[r]=new Hn(e,r,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var s,c=Xe()(s=this.getAttribute("style").getString().split(";")).call(s,function(t){return Vr()(t).call(t)});tr()(c).call(c,function(t){var r;if(t){var n=Xe()(r=t.split(":")).call(r,function(t){return Vr()(t).call(t)}),i=qe()(n,2),a=i[0],u=i[1];o.styles[a]=new Hn(e,a,u)}})}var f=e.definitions,l=this.getAttribute("id");l.hasValue()&&(f[l.getValue()]||(f[l.getValue()]=this)),tr()(i=Kr()(r.childNodes)).call(i,function(t){if(1===t.nodeType)o.addChild(t);else if(a&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&o.addChild(r)}})}}return mr()(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 Hn(this.document,t,"");return this.attributes[t]=n,n}return r||Hn.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||/:href$/.test(t))return this.attributes[t];return Hn.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 u=new Hn(this.document,t,"");return this.styles[t]=u,u}return n||Hn.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=ai.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){var e;tr()(e=this.children).call(e,function(e){e.render(t)})}},{key:"addChild",value:function(e){var r,n=e instanceof t?e:this.document.createElement(e);n.parent=this,$r()(r=t.ignoreChildTypes).call(r,n.type)||this.children.push(n)}},{key:"matchesSelector",value:function(t){var e,r=this.node;if("function"==typeof r.matches)return r.matches(t);var n=r.getAttribute("class");return!(!n||""===n)&&Qr()(e=n.split(" ")).call(e,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 u=this.stylesSpecificity[a];void 0===u&&(u="000"),o>=u&&(this.styles[a]=i[a],this.stylesSpecificity[a]=o)}}}},{key:"removeStyles",value:function(t,e){return Sr()(e).call(e,function(e,r){var n,i=t.getStyle(r);if(!i.hasValue())return e;var o=i.getString();return i.setValue(""),br()(n=[]).call(n,qr()(e),[[r,o]])},[])}},{key:"restoreStyles",value:function(t,e){tr()(e).call(e,function(e){var r=qe()(e,2),n=r[0],i=r[1];t.getStyle(n,!0).setValue(i)})}}]),t}();ui.ignoreChildTypes=["title"];var si=function(t){function e(t,n,i){return gr()(this,e),r.call(this,t,n,i)}Fr()(e,t);var r=M(e);return e}(ui),ci=function(){function t(e,r,n,i,o,a){gr()(this,t);var u=a?"string"==typeof a?t.parse(a):a:{};this.fontFamily=o||u.fontFamily,this.fontSize=i||u.fontSize,this.fontStyle=e||u.fontStyle,this.fontWeight=n||u.fontWeight,this.fontVariant=r||u.fontVariant}return mr()(t,[{key:"toString",value:function(){var t;return Vr()(t=[V(this.fontStyle),this.fontVariant,D(this.fontWeight),this.fontSize,_(this.fontFamily)].join(" ")).call(t)}}],[{key:"parse",value:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0,o="",a="",u="",s="",c="",f=Vr()(e=n(r)).call(e).split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return tr()(f).call(f,function(e){var r,n,i;switch(!0){case!l.fontStyle&&$r()(r=t.styles).call(r,e):"inherit"!==e&&(o=e),l.fontStyle=!0;break;case!l.fontVariant&&$r()(n=t.variants).call(n,e):"inherit"!==e&&(a=e),l.fontStyle=!0,l.fontVariant=!0;break;case!l.fontWeight&&$r()(i=t.weights).call(i,e):"inherit"!==e&&(u=e),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:if("inherit"!==e){var f=e.split("/"),h=qe()(f,1);s=h[0]}l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:"inherit"!==e&&(c+=e)}}),new t(o,a,u,s,c,i)}}]),t}();ci.styles="normal|italic|oblique|inherit",ci.variants="normal|small-caps|inherit",ci.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var fi=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;gr()(this,t),this.x1=e,this.y1=r,this.x2=n,this.y2=i,this.addPoint(e,r),this.addPoint(n,i)}return mr()(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,u=3*r-3*e;if(0===a){if(0===o)return;var s=-u/o;return void(0<s&&s<1&&(t?this.addX(this.sumCubic(s,e,r,n,i)):this.addY(this.sumCubic(s,e,r,n,i))))}var c=Math.pow(o,2)-4*u*a;if(!(c<0)){var f=(-o+Math.sqrt(c))/(2*a);0<f&&f<1&&(t?this.addX(this.sumCubic(f,e,r,n,i)):this.addY(this.sumCubic(f,e,r,n,i)));var l=(-o-Math.sqrt(c))/(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)))}}},{key:"addBezierCurve",value:function(t,e,r,n,i,o,a,u){this.addPoint(t,e),this.addPoint(a,u),this.bezierCurveAdd(!0,t,r,i,a),this.bezierCurveAdd(!1,e,n,o,u)}},{key:"addQuadraticCurve",value:function(t,e,r,n,i,o){var a=t+2/3*(r-t),u=e+2/3*(n-e),s=a+1/3*(i-t),c=u+1/3*(o-e);this.addBezierCurve(t,e,a,s,u,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}(),li=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.modifiedEmSizeStack=!1,t}Fr()(e,t);var r=L(e);return mr()(e,[{key:"calculateOpacity",value:function(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}},{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 u=r.getFillStyleDefinition(this,n);u&&(t.fillStyle=u)}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 c=new Hn(this.document,"fill",t.fillStyle).addOpacity(n).getColor();t.fillStyle=c}if(i.isUrlDefinition()){var f=i.getFillStyleDefinition(this,o);f&&(t.strokeStyle=f)}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 h=new Hn(this.document,"stroke",t.strokeStyle).addOpacity(o).getString();t.strokeStyle=h}var p=this.getStyle("stroke-width");if(p.hasValue()){var v=p.getPixels();t.lineWidth=v||Un}var y=this.getStyle("stroke-linecap"),g=this.getStyle("stroke-linejoin"),d=this.getStyle("stroke-miterlimit"),m=this.getStyle("paint-order"),x=this.getStyle("stroke-dasharray"),b=this.getStyle("stroke-dashoffset");if(y.hasValue()&&(t.lineCap=y.getString()),g.hasValue()&&(t.lineJoin=g.getString()),d.hasValue()&&(t.miterLimit=d.getNumber()),m.hasValue()&&(t.paintOrder=m.getValue()),x.hasValue()&&"none"!==x.getString()){var w=a(x.getString());void 0!==t.setLineDash?t.setLineDash(w):void 0!==t.webkitLineDash?t.webkitLineDash=w:void 0===t.mozDash||1===w.length&&0===w[0]||(t.mozDash=w);var S=b.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=S:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=S:void 0!==t.mozDashOffset&&(t.mozDashOffset=S)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var A=this.getStyle("font"),k=this.getStyle("font-style"),T=this.getStyle("font-variant"),O=this.getStyle("font-weight"),P=this.getStyle("font-size"),E=this.getStyle("font-family"),C=new ci(k.getString(),T.getString(),O.getString(),P.hasValue()?"".concat(P.getPixels(!0),"px"):"",E.getString(),ci.parse(A.getString(),t.font));k.setValue(C.fontStyle),T.setValue(C.fontVariant),O.setValue(C.fontWeight),P.setValue(C.fontSize),E.setValue(C.fontFamily),t.font=C.toString(),P.isPixels()&&(this.document.emSize=P.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){on()(Xr()(e.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),e}(ui),hi=function(t){function e(t,n,i){var o;return gr()(this,e),o=r.call(this,t,n,(this instanceof e?this.constructor:void 0)===e||i),o.type="text",o.x=0,o.y=0,o.measureCache=-1,o}Fr()(e,t);var r=j(e);return mr()(e,[{key:"setContext",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];on()(Xr()(e.prototype),"setContext",this).call(this,t,r);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(t.textBaseline=n)}},{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,r=this;if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(t);var n=null;return tr()(e=this.children).call(e,function(e,i){var o=r.getChildBoundingBox(t,r,r,i);n?n.addBoundingBox(o):n=o}),n}},{key:"getFontSize",value:function(){var t=this.document,e=this.parent,r=ci.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new fi(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],u=e[r+1],s="isolated";(0===r||" "===a)&&r<o-2&&" "!==u&&(s="terminal"),r>0&&" "!==a&&r<o-2&&" "!==u&&(s="medial"),r>0&&" "!==a&&(r===o-1||" "===u)&&(s="initial"),void 0!==t.glyphs[n]&&((i=t.glyphs[n][s])||"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=Kr()(e.parentNode.childNodes),a=rn()(r).call(r,e),u=r.length-1,s=n(e.value||e.text||e.textContent||"");return 0===a&&(s=i(s)),a===u&&(s=o(s)),s}},{key:"renderChildren",value:function(t){var e,r=this;if("text"!==this.type)return void this.renderTElementChildren(t);this.initializeCoordinates(t),tr()(e=this.children).call(e,function(e,n){r.renderChild(t,r,r,n)});var n=this.document.screen.mouse;n.isWorking()&&n.checkBoundingBox(this,this.getBoundingBox(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,u=i.fontFace.unitsPerEm,s=ci.parse(e.ctx.font),c=r.getStyle("font-size").getNumber(s.fontSize),f=r.getStyle("font-style").getString(s.fontStyle),l=c/u,h=i.isRTL?tn()(o=n.split("")).call(o).join(""):n,p=a(r.getAttribute("dx").getString()),v=h.length,y=0;y<v;y++){var g=this.getGlyph(i,h,y);t.translate(this.x,this.y),t.scale(l,-l);var d=t.lineWidth;t.lineWidth=t.lineWidth*u/c,"italic"===f&&t.transform(1,0,.4,1,0,0),g.render(t),"italic"===f&&t.transform(1,0,-.4,1,0,0),t.lineWidth=d,t.scale(1/l,-1/l),t.translate(-this.x,-this.y),this.x+=c*(g.horizAdvX||i.horizAdvX)/u,void 0===p[y]||isNaN(p[y])||(this.x+=p[y])}else{var m=this.x,x=this.y;"stroke"===t.paintOrder?(t.strokeStyle&&t.strokeText(n,m,x),t.fillStyle&&t.fillText(n,m,x)):(t.fillStyle&&t.fillText(n,m,x),t.strokeStyle&&t.strokeText(n,m,x))}}},{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,u=0,s=r;s<o&&(a=i[s],!(s>r&&a.getAttribute("x").hasValue()||a.getAttribute("text-anchor").hasValue()));s++)u+=a.measureTextRecursive(t);return-1*("end"===n?u:u/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"),u=i.getAttribute("dx"),s=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")),u.hasValue()||u.setValue(e.getAttribute("dx").getValue("0")),s.hasValue()||s.setValue(e.getAttribute("dy").getValue("0"))),o.hasValue()){if(i.x=o.getPixels("x")+e.getAnchorDelta(t,r,n),"start"!==c){var f=i.measureTextRecursive(t);i.x+=-1*("end"===c?f:f/2)}u.hasValue()&&(i.x+=u.getPixels("x"))}else{if("start"!==c){var l=i.measureTextRecursive(t);e.x+=-1*("end"===c?l:l/2)}u.hasValue()&&(e.x+=u.getPixels("x")),i.x=e.x}return e.x=i.x+i.measureText(t),a.hasValue()?(i.y=a.getPixels("y"),s.hasValue()&&(i.y+=s.getPixels("y"))):(s.hasValue()&&(e.y+=s.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,o=this.adjustChildCoordinates(t,e,r,n);if("function"!=typeof o.getBoundingBox)return null;var a=o.getBoundingBox(t);return a?(tr()(i=o.children).call(i,function(r,n){var i=e.getChildBoundingBox(t,e,o,n);a.addBoundingBox(i)}),a):null}},{key:"renderChild",value:function(t,e,r,n){var i,o=this.adjustChildCoordinates(t,e,r,n);o.render(t),tr()(i=o.children).call(i,function(r,n){e.renderChild(t,e,o,n)})}},{key:"measureTextRecursive",value:function(t){var e;return Sr()(e=this.children).call(e,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,o=this.getFontSize(),u=n.isRTL?tn()(i=e.split("")).call(i).join(""):e,s=a(r.getAttribute("dx").getString()),c=u.length,f=0,l=0;l<c;l++){f+=(this.getGlyph(n,u,l).horizAdvX||n.horizAdvX)*o/n.fontFace.unitsPerEm,void 0===s[l]||isNaN(s[l])||(f+=s[l])}return f}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var h=t.measureText(e),p=h.width;return this.clearContext(t),t.restore(),p}}]),e}(li),pi=function(t){function e(t,n,i){var o;return gr()(this,e),o=r.call(this,t,n,(this instanceof e?this.constructor:void 0)===e||i),o.type="tspan",o.text=o.children.length>0?"":o.getTextFromNode(),o}Fr()(e,t);var r=F(e);return mr()(e,[{key:"getText",value:function(){return this.text}}]),e}(hi),vi=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="textNode",t}Fr()(e,t);var r=U(e);return e}(pi),yi=function(t){function e(t){var n;return gr()(this,e),n=r.call(this,t.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),n.control=null,n.start=null,n.current=null,n.command=null,n.commands=n.commands,n.i=-1,n.previousCommand=null,n.points=[],n.angles=[],n}Fr()(e,t);var r=X(e);return mr()(e,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Yn(0,0),this.control=new Yn(0,0),this.current=new Yn(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){return this.i>=this.commands.length-1}},{key:"next",value:function(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}},{key:"getPoint",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r=new Yn(this.command[t],this.command[e]);return this.makeAbsolute(r)}},{key:"getAsControlPoint",value:function(t,e){var r=this.getPoint(t,e);return this.control=r,r}},{key:"getAsCurrentPoint",value:function(t,e){var r=this.getPoint(t,e);return this.current=r,r}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.type;if(t!==sn.a.CURVE_TO&&t!==sn.a.SMOOTH_CURVE_TO&&t!==sn.a.QUAD_TO&&t!==sn.a.SMOOTH_QUAD_TO)return this.current;var e=this.current,r=e.x,n=e.y,i=this.control,o=i.x,a=i.y;return new Yn(2*r-o,2*n-a)}},{key:"makeAbsolute",value:function(t){if(this.command.relative){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}}]),e}(sn.a),gi=function(t){function e(t,n,i){var o;return gr()(this,e),o=r.call(this,t,n,i),o.type="path",o.pathParser=null,o.pathParser=new yi(o.getAttribute("d").getString()),o}Fr()(e,t);var r=q(e);return mr()(e,[{key:"path",value:function(t){var e=this.pathParser,r=new fi;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case yi.MOVE_TO:this.pathM(t,r);break;case yi.LINE_TO:this.pathL(t,r);break;case yi.HORIZ_LINE_TO:this.pathH(t,r);break;case yi.VERT_LINE_TO:this.pathV(t,r);break;case yi.CURVE_TO:this.pathC(t,r);break;case yi.SMOOTH_CURVE_TO:this.pathS(t,r);break;case yi.QUAD_TO:this.pathQ(t,r);break;case yi.SMOOTH_QUAD_TO:this.pathT(t,r);break;case yi.ARC:this.pathA(t,r);break;case yi.CLOSE_PATH: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 Xe()(e).call(e,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")?un()(t).call(t,e.getString()):un()(t).call(t)),""!==t.strokeStyle&&t.stroke();var r=this.getMarkers();if(r){var n=r.length-1,i=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(i.isUrlDefinition()){var u=i.getDefinition(),s=qe()(r[0],2),c=s[0],f=s[1];u.render(t,c,f)}if(o.isUrlDefinition())for(var l=o.getDefinition(),h=1;h<n;h++){var p=qe()(r[h],2),v=p[0],y=p[1];l.render(t,v,y)}if(a.isUrlDefinition()){var g=a.getDefinition(),d=qe()(r[n],2),m=d[0],x=d[1];g.render(t,m,x)}}}},{key:"pathM",value:function(t,r){var n=this.pathParser,i=e.pathM(n),o=i.point,a=o.x,u=o.y;n.addMarker(o),r.addPoint(a,u),t&&t.moveTo(a,u)}},{key:"pathL",value:function(t,r){var n=this.pathParser,i=e.pathL(n),o=i.current,a=i.point,u=a.x,s=a.y;n.addMarker(a,o),r.addPoint(u,s),t&&t.lineTo(u,s)}},{key:"pathH",value:function(t,r){var n=this.pathParser,i=e.pathH(n),o=i.current,a=i.point,u=a.x,s=a.y;n.addMarker(a,o),r.addPoint(u,s),t&&t.lineTo(u,s)}},{key:"pathV",value:function(t,r){var n=this.pathParser,i=e.pathV(n),o=i.current,a=i.point,u=a.x,s=a.y;n.addMarker(a,o),r.addPoint(u,s),t&&t.lineTo(u,s)}},{key:"pathC",value:function(t,r){var n=this.pathParser,i=e.pathC(n),o=i.current,a=i.point,u=i.controlPoint,s=i.currentPoint;n.addMarker(s,u,a),r.addBezierCurve(o.x,o.y,a.x,a.y,u.x,u.y,s.x,s.y),t&&t.bezierCurveTo(a.x,a.y,u.x,u.y,s.x,s.y)}},{key:"pathS",value:function(t,r){var n=this.pathParser,i=e.pathS(n),o=i.current,a=i.point,u=i.controlPoint,s=i.currentPoint;n.addMarker(s,u,a),r.addBezierCurve(o.x,o.y,a.x,a.y,u.x,u.y,s.x,s.y),t&&t.bezierCurveTo(a.x,a.y,u.x,u.y,s.x,s.y)}},{key:"pathQ",value:function(t,r){var n=this.pathParser,i=e.pathQ(n),o=i.current,a=i.controlPoint,u=i.currentPoint;n.addMarker(u,a,a),r.addQuadraticCurve(o.x,o.y,a.x,a.y,u.x,u.y),t&&t.quadraticCurveTo(a.x,a.y,u.x,u.y)}},{key:"pathT",value:function(t,r){var n=this.pathParser,i=e.pathT(n),o=i.current,a=i.controlPoint,u=i.currentPoint;n.addMarker(u,a,a),r.addQuadraticCurve(o.x,o.y,a.x,a.y,u.x,u.y),t&&t.quadraticCurveTo(a.x,a.y,u.x,u.y)}},{key:"pathA",value:function(t,r){var n=this.pathParser,i=e.pathA(n),o=i.currentPoint,a=i.rX,u=i.rY,s=i.sweepFlag,c=i.xAxisRotation,f=i.centp,l=i.a1,h=i.ad,p=1-s?1:-1,v=l+p*(h/2),y=new Yn(f.x+a*Math.cos(v),f.y+u*Math.sin(v));if(n.addMarkerAngle(y,v-p*Math.PI/2),n.addMarkerAngle(o,v-p*Math.PI),r.addPoint(o.x,o.y),t&&!isNaN(l)&&!isNaN(h)){var g=a>u?a:u,d=a>u?1:a/u,m=a>u?u/a:1;t.translate(f.x,f.y),t.rotate(c),t.scale(d,m),t.arc(0,0,g,l,l+h,Boolean(1-s)),t.scale(1/d,1/m),t.rotate(-c),t.translate(-f.x,-f.y)}}},{key:"pathZ",value:function(t,r){e.pathZ(this.pathParser),t&&r.x1!==r.x2&&r.y1!==r.y2&&t.closePath()}}],[{key:"pathM",value:function(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}},{key:"pathL",value:function(t){return{current:t.current,point:t.getAsCurrentPoint()}}},{key:"pathH",value:function(t){var e=t.current,r=t.command,n=new Yn((r.relative?e.x:0)+r.x,e.y);return t.current=n,{current:e,point:n}}},{key:"pathV",value:function(t){var e=t.current,r=t.command,n=new Yn(e.x,(r.relative?e.y:0)+r.y);return t.current=n,{current:e,point:n}}},{key:"pathC",value:function(t){return{current:t.current,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathS",value:function(t){return{current:t.current,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathQ",value:function(t){return{current:t.current,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathT",value:function(t){var e=t.current,r=t.getReflectedControlPoint();return t.control=r,{current:e,controlPoint:r,currentPoint:t.getAsCurrentPoint()}}},{key:"pathA",value:function(t){var e=t.current,r=t.command,n=r.rX,i=r.rY,o=r.xRot,a=r.lArcFlag,u=r.sweepFlag,s=o*(Math.PI/180),c=t.getAsCurrentPoint(),f=new Yn(Math.cos(s)*(e.x-c.x)/2+Math.sin(s)*(e.y-c.y)/2,-Math.sin(s)*(e.x-c.x)/2+Math.cos(s)*(e.y-c.y)/2),l=Math.pow(f.x,2)/Math.pow(n,2)+Math.pow(f.y,2)/Math.pow(i,2);l>1&&(n*=Math.sqrt(l),i*=Math.sqrt(l));var h=(a===u?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(f.y,2)-Math.pow(i,2)*Math.pow(f.x,2))/(Math.pow(n,2)*Math.pow(f.y,2)+Math.pow(i,2)*Math.pow(f.x,2)));isNaN(h)&&(h=0);var y=new Yn(h*n*f.y/i,h*-i*f.x/n),g=new Yn((e.x+c.x)/2+Math.cos(s)*y.x-Math.sin(s)*y.y,(e.y+c.y)/2+Math.sin(s)*y.x+Math.cos(s)*y.y),d=v([1,0],[(f.x-y.x)/n,(f.y-y.y)/i]),m=[(f.x-y.x)/n,(f.y-y.y)/i],x=[(-f.x-y.x)/n,(-f.y-y.y)/i],b=v(m,x);return p(m,x)<=-1&&(b=Math.PI),p(m,x)>=1&&(b=0),{currentPoint:c,rX:n,rY:i,sweepFlag:u,xAxisRotation:s,centp:g,a1:d,ad:b}}},{key:"pathZ",value:function(t){t.current=t.start}}]),e}(li),di=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="svg",t.root=!1,t}Fr()(e,t);var r=Q(e);return mr()(e,[{key:"setContext",value:function(t){var r=this.document,n=r.screen,i=r.window,o=t.canvas;if(n.setDefaults(t),o.style&&void 0!==t.font&&i&&void 0!==i.getComputedStyle){t.font=i.getComputedStyle(o).getPropertyValue("font");var u=new Hn(r,"fontSize",ci.parse(t.font).fontSize);u.hasValue()&&(r.rootEmSize=u.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var s=n.viewPort,c=s.width,f=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"),h=this.getAttribute("refY"),p=this.getAttribute("viewBox"),v=p.hasValue()?a(p.getString()):null,y=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),g=0,d=0,m=0,x=0;v&&(g=v[0],d=v[1]),this.root||(c=this.getStyle("width").getPixels("x"),f=this.getStyle("height").getPixels("y"),"marker"===this.type&&(m=g,x=d,g=0,d=0)),n.viewPort.setCurrent(c,f),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),on()(Xr()(e.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),v&&(c=v[2],f=v[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:c,height:n.viewPort.height,desiredHeight:f,minX:g,minY:d,refX:l.getValue(),refY:h.getValue(),clip:y,clipX:m,clipY:x}),v&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(c,f))}},{key:"clearContext",value:function(t){on()(Xr()(e.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{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"),u=n.getNumber(0),s=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()){var f;o.setValue(br()(f="0 0 ".concat(u||t," ")).call(f,s||e))}if(a.hasValue()){var l=this.getStyle("width"),h=this.getStyle("height");l.hasValue()&&l.setValue("".concat(t,"px")),h.hasValue()&&h.setValue("".concat(e,"px"))}}}]),e}(li),mi=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="rect",t}Fr()(e,t);var r=$(e);return mr()(e,[{key:"path",value:function(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),a=this.getAttribute("ry"),u=o.getPixels("x"),s=a.getPixels("y");if(o.hasValue()&&!a.hasValue()&&(s=u),a.hasValue()&&!o.hasValue()&&(u=s),u=Math.min(u,n/2),s=Math.min(s,i/2),t){var c=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&n>0&&(t.moveTo(e+u,r),t.lineTo(e+n-u,r),t.bezierCurveTo(e+n-u+c*u,r,e+n,r+s-c*s,e+n,r+s),t.lineTo(e+n,r+i-s),t.bezierCurveTo(e+n,r+i-s+c*s,e+n-u+c*u,r+i,e+n-u,r+i),t.lineTo(e+u,r+i),t.bezierCurveTo(e+u-c*u,r+i,e,r+i-s+c*s,e,r+i-s),t.lineTo(e,r+s),t.bezierCurveTo(e,r+s-c*s,e+u-c*u,r,e+u,r),t.closePath())}return new fi(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),e}(gi),xi=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="circle",t}Fr()(e,t);var r=K(e);return mr()(e,[{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 fi(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),e}(gi),bi=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="ellipse",t}Fr()(e,t);var r=tt(e);return mr()(e,[{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 fi(i-r,o-n,i+r,o+n)}},{key:"getMarkers",value:function(){return null}}]),e}(gi),wi=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="line",t}Fr()(e,t);var r=rt(e);return mr()(e,[{key:"getPoints",value:function(){return[new Yn(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Yn(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var e=this.getPoints(),r=qe()(e,2),n=r[0],i=n.x,o=n.y,a=r[1],u=a.x,s=a.y;return t&&(t.beginPath(),t.moveTo(i,o),t.lineTo(u,s)),new fi(i,o,u,s)}},{key:"getMarkers",value:function(){var t=this.getPoints(),e=qe()(t,2),r=e[0],n=e[1],i=r.angleTo(n);return[[r,i],[n,i]]}}]),e}(gi),Si=function(t){function e(t,n,i){var o;return gr()(this,e),o=r.call(this,t,n,i),o.type="polyline",o.points=[],o.points=Yn.parsePath(o.getAttribute("points").getString()),o}Fr()(e,t);var r=it(e);return mr()(e,[{key:"path",value:function(t){var e=this.points,r=qe()(e,1),n=r[0],i=n.x,o=n.y,a=new fi(i,o);return t&&(t.beginPath(),t.moveTo(i,o)),tr()(e).call(e,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 tr()(t).call(t,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}}]),e}(gi),Ai=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="polygon",t}Fr()(e,t);var r=at(e);return mr()(e,[{key:"path",value:function(t){var r=on()(Xr()(e.prototype),"path",this).call(this,t),n=qe()(this.points,1),i=n[0],o=i.x,a=i.y;return t&&(t.lineTo(o,a),t.closePath()),r}}]),e}(Si),ki=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="pattern",t}Fr()(e,t);var r=st(e);return mr()(e,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new di(this.document,null);o.attributes.viewBox=new Hn(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new Hn(this.document,"width","".concat(n,"px")),o.attributes.height=new Hn(this.document,"height","".concat(i,"px")),o.attributes.transform=new Hn(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var a=this.document.createCanvas(n,i),u=a.getContext("2d"),s=this.getAttribute("x"),c=this.getAttribute("y");s.hasValue()&&c.hasValue()&&u.translate(s.getPixels("x",!0),c.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:fn()(this.styles,"fill-opacity");for(var f=-1;f<=1;f++)for(var l=-1;l<=1;l++)u.save(),o.attributes.x=new Hn(this.document,"x",f*a.width),o.attributes.y=new Hn(this.document,"y",l*a.height),o.render(u),u.restore();return t.createPattern(a,"repeat")}}]),e}(ui),Ti=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="marker",t}Fr()(e,t);var r=ft(e);return mr()(e,[{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 u=new di(this.document,null);u.type=this.type,u.attributes.viewBox=new Hn(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new Hn(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new Hn(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new Hn(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new Hn(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new Hn(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new Hn(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new Hn(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(t),t.restore(),"strokeWidth"===a&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===o&&t.rotate(-r),t.translate(-n,-i)}}}]),e}(ui),Oi=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="defs",t}Fr()(e,t);var r=ht(e);return mr()(e,[{key:"render",value:function(){}}]),e}(ui),Pi=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="g",t}Fr()(e,t);var r=vt(e);return mr()(e,[{key:"getBoundingBox",value:function(t){var e,r=new fi;return tr()(e=this.children).call(e,function(e){r.addBoundingBox(e.getBoundingBox(t))}),r}}]),e}(li),Ei=function(t){function e(t,n,i){var o;gr()(this,e),o=r.call(this,t,n,i),o.attributesToInherit=["gradientUnits"],o.stops=[];var a=hn()(o),u=a.stops,s=a.children;return tr()(s).call(s,function(t){"stop"===t.type&&u.push(t)}),o}Fr()(e,t);var r=gt(e);return mr()(e,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,e,r){var n=this,i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var o=i,a=o.stops,u=this.getGradient(t,e);if(!u)return this.addParentOpacity(r,a[a.length-1].color);if(tr()(a).call(a,function(t){u.addColorStop(t.offset,n.addParentOpacity(r,t.color))}),this.getAttribute("gradientTransform").hasValue()){var s=this.document,c=s.screen,f=c.MAX_VIRTUAL_PIXELS,l=c.viewPort,h=qe()(l.viewPorts,1),p=h[0],v=new mi(s,null);v.attributes.x=new Hn(s,"x",-f/3),v.attributes.y=new Hn(s,"y",-f/3),v.attributes.width=new Hn(s,"width",f),v.attributes.height=new Hn(s,"height",f);var y=new Pi(s,null);y.attributes.transform=new Hn(s,"transform",this.getAttribute("gradientTransform").getValue()),y.children=[v];var g=new di(s,null);g.attributes.x=new Hn(s,"x",0),g.attributes.y=new Hn(s,"y",0),g.attributes.width=new Hn(s,"width",p.width),g.attributes.height=new Hn(s,"height",p.height),g.children=[y];var d=s.createCanvas(p.width,p.height),m=d.getContext("2d");return m.fillStyle=u,g.render(m),m.createPattern(d,"no-repeat")}return u}},{key:"inheritStopContainer",value:function(t){var e,r=this;tr()(e=this.attributesToInherit).call(e,function(e){!r.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&r.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())})}},{key:"addParentOpacity",value:function(t,e){if(t.hasValue()){return new Hn(this.document,"color",e).addOpacity(t).getColor()}return e}}]),e}(ui),Ci=function(t){function e(t,n,i){var o;return gr()(this,e),o=r.call(this,t,n,i),o.type="linearGradient",o.attributesToInherit.push("x1","y1","x2","y2"),o}Fr()(e,t);var r=mt(e);return mr()(e,[{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"),u=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===a&&o===u?null:t.createLinearGradient(i,o,a,u)}}]),e}(Ei),Mi=function(t){function e(t,n,i){var o;return gr()(this,e),o=r.call(this,t,n,i),o.type="radialGradient",o.attributesToInherit.push("cx","cy","r","fx","fy","fr"),o}Fr()(e,t);var r=bt(e);return mr()(e,[{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,u=o;this.getAttribute("fx").hasValue()&&(a=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var s=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return t.createRadialGradient(a,u,c,i,o,s)}}]),e}(Ei),Ni=function(t){function e(t,n,i){var o;gr()(this,e),o=r.call(this,t,n,i),o.type="stop";var a=Math.max(0,Math.min(1,o.getAttribute("offset").getNumber())),u=o.getStyle("stop-opacity"),s=o.getStyle("stop-color",!0);return""===s.getString()&&s.setValue("#000"),u.hasValue()&&(s=s.addOpacity(u)),o.offset=a,o.color=s.getColor(),o}Fr()(e,t);var r=St(e);return e}(ui),Ri=function(t){function e(t,n,i){var o;return gr()(this,e),o=r.call(this,t,n,i),o.type="animate",o.duration=0,o.initialValue=null,o.initialUnits="",o.removed=!1,o.frozen=!1,t.screen.animations.push(hn()(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"),vn()(o).hasValue()&&vn()(o).setValue(vn()(o).getString().split(";")),o}Fr()(e,t);var r=kt(e);return mr()(e,[{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,e=this.initialUnits,r=this.getProgress(),n=r.progress,i=r.from,o=r.to,a=i.getNumber()+(o.getNumber()-i.getNumber())*n;return"%"===e&&(a*=100),br()(t="".concat(a)).call(t,e)}},{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 u,s=a.getString();o=br()(u="".concat(s,"(")).call(u,o,")")}r.setValue(o),i=!0}return i}},{key:"getProgress",value:function(){var t=this.document,e=vn()(this),r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var n=r.progress*(e.getValue().length-1),i=Math.floor(n),o=Math.ceil(n);r.from=new Hn(t,"from",Ue()(e.getValue()[i])),r.to=new Hn(t,"to",Ue()(e.getValue()[o])),r.progress=(n-i)/(o-i)}else r.from=this.from,r.to=this.to;return r}}]),e}(ui),_i=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="animateColor",t}Fr()(e,t);var r=Ot(e);return mr()(e,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=new Lr.a(r.getColor()),o=new Lr.a(n.getColor());if(i.ok&&o.ok){var a,u,s=i.r+(o.r-i.r)*e,c=i.g+(o.g-i.g)*e,f=i.b+(o.b-i.b)*e;return br()(a=br()(u="rgb(".concat(gn()(s,10),", ")).call(u,gn()(c,10),", ")).call(a,gn()(f,10),")")}return this.getAttribute("from").getColor()}}]),e}(Ri),Vi=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="animateTransform",t}Fr()(e,t);var r=Et(e);return mr()(e,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=a(r.getString()),o=a(n.getString());return Xe()(i).call(i,function(t,r){return t+(o[r]-t)*e}).join(" ")}}]),e}(Ri),Di=function(t){function e(t,n,i){var o;gr()(this,e),o=r.call(this,t,n,i),o.type="font",o.glyphs={},o.horizAdvX=o.getAttribute("horiz-adv-x").getNumber();var a,u=t.definitions,s=hn()(o),c=s.children,f=Mt(c);try{for(f.s();!(a=f.n()).done;){var l=a.value;switch(l.type){case"font-face":o.fontFace=l;var h=l.getStyle("font-family");h.hasValue()&&(u[h.getString()]=hn()(o));break;case"missing-glyph":o.missingGlyph=l;break;case"glyph":var p=l;p.arabicForm?(o.isRTL=!0,o.isArabic=!0,void 0===o.glyphs[p.unicode]&&(o.glyphs[p.unicode]={}),o.glyphs[p.unicode][p.arabicForm]=p):o.glyphs[p.unicode]=p}}}catch(t){f.e(t)}finally{f.f()}return o}Fr()(e,t);var r=_t(e);return mr()(e,[{key:"render",value:function(){}}]),e}(ui),Li=function(t){function e(t,n,i){var o;return gr()(this,e),o=r.call(this,t,n,i),o.type="font-face",o.ascent=o.getAttribute("ascent").getNumber(),o.descent=o.getAttribute("descent").getNumber(),o.unitsPerEm=o.getAttribute("units-per-em").getNumber(),o}Fr()(e,t);var r=Dt(e);return e}(ui),Ii=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="missing-glyph",t.horizAdvX=0,t}Fr()(e,t);var r=It(e);return e}(gi),ji=function(t){function e(t,n,i){var o;return gr()(this,e),o=r.call(this,t,n,i),o.type="glyph",o.horizAdvX=o.getAttribute("horiz-adv-x").getNumber(),o.unicode=o.getAttribute("unicode").getString(),o.arabicForm=o.getAttribute("arabic-form").getString(),o}Fr()(e,t);var r=zt(e);return e}(gi),zi=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="tref",t}Fr()(e,t);var r=Bt(e);return mr()(e,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}]),e}(hi),Fi=function(t){function e(t,n,i){var o,a;gr()(this,e),a=r.call(this,t,n,i),a.type="a";var u=n.childNodes,s=u[0],c=u.length>0&&Or()(o=Kr()(u)).call(o,function(t){return 3===t.nodeType});return a.hasText=c,a.text=c?a.getTextFromNode(s):"",a}Fr()(e,t);var r=Ht(e);return mr()(e,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){if(this.hasText){on()(Xr()(e.prototype),"renderChildren",this).call(this,t);var r=this.document,n=this.x,i=this.y,o=r.screen.mouse,a=new Hn(r,"fontSize",ci.parse(r.ctx.font).fontSize);o.isWorking()&&o.checkBoundingBox(this,new fi(n,i-a.getPixels("y"),n+this.measureText(t),i))}else if(this.children.length>0){var u=new Pi(this.document,null);u.children=this.children,u.parent=this,u.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"}}]),e}(hi),Bi=function(t){function e(t,n,i){var o;gr()(this,e),o=r.call(this,t,n,i),o.type="textPath",o.textWidth=0,o.textHeight=0,o.pathLength=-1,o.glyphInfo=null,o.letterSpacingCache=[],o.measuresCache=new En.a([["",0]]);var a=o.getHrefAttribute().getDefinition();return o.text=o.getTextFromNode(),o.dataArray=o.parsePathData(a),o}Fr()(e,t);var r=$t(e);return mr()(e,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(t){var e=this.dataArray;t&&t.beginPath(),tr()(e).call(e,function(e){var r=e.type,n=e.points;switch(r){case yi.LINE_TO:t&&t.lineTo(n[0],n[1]);break;case yi.MOVE_TO:t&&t.moveTo(n[0],n[1]);break;case yi.CURVE_TO:t&&t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case yi.QUAD_TO:t&&t.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case yi.ARC:var i=qe()(n,8),o=i[0],a=i[1],u=i[2],s=i[3],c=i[4],f=i[5],l=i[6],h=i[7],p=u>s?u:s,v=u>s?1:u/s,y=u>s?s/u:1;t&&(t.translate(o,a),t.rotate(l),t.scale(v,y),t.arc(0,0,p,c,c+f,Boolean(1-h)),t.scale(1/v,1/y),t.rotate(-l),t.translate(-o,-a));break;case yi.CLOSE_PATH: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(),tr()(n).call(n,function(n,i){var o=n.p0,a=n.p1,u=n.rotation,s=n.text;t.save(),t.translate(o.x,o.y),t.rotate(u),t.fillStyle&&t.fillText(s,0,0),t.strokeStyle&&t.strokeText(s,0,0),t.restore(),"underline"===e&&(0===i&&t.moveTo(o.x,o.y+r/8),t.lineTo(a.x,a.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,u,s){var c=o,f=this.measureText(t,u);" "===u&&"justify"===e&&r<n&&(f+=(n-r)/i),s>-1&&(c+=this.getLetterSpacingAt(s));var l=this.textHeight/20,h=this.getEquidistantPointOnPath(c,l,0),p=this.getEquidistantPointOnPath(c+f,l,0),v={p0:h,p1:p},y=h&&p?Math.atan2(p.y-h.y,p.x-h.x):0;if(a){var g=Math.cos(Math.PI/2+y)*a,d=Math.cos(-y)*a;v.p0=Wt(Wt({},h),{},{x:h.x+g,y:h.y+d}),v.p1=Wt(Wt({},p),{},{x:p.x+g,y:p.y+d})}return c+=f,{offset:c,segment:v,rotation:y}}},{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,r=this;if(!this.glyphInfo){var n=this.getText(),i=n.split(""),o=n.split(" ").length-1,a=Xe()(e=this.parent.getAttribute("dx").split()).call(e,function(t){return t.getPixels("x")}),u=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),c=this.getStyle("letter-spacing"),f=this.parent.getStyle("letter-spacing"),l=0;c.hasValue()&&"inherit"!==c.getValue()?c.hasValue()&&"initial"!==c.getValue()&&"unset"!==c.getValue()&&(l=c.getPixels()):l=f.getPixels();var h=[],p=n.length;this.letterSpacingCache=h;for(var v=0;v<p;v++)h.push(void 0!==a[v]?a[v]:l);var y=Sr()(h).call(h,function(t,e,r){return 0===r?0:t+e||0},0),g=this.measureText(t),d=Math.max(g+y,0);this.textWidth=g,this.textHeight=this.getFontSize(),this.glyphInfo=[];var m=this.getPathLength(),x=this.getStyle("startOffset").getNumber(0)*m,b=0;"middle"!==s&&"center"!==s||(b=-d/2),"end"!==s&&"right"!==s||(b=-d),b+=x,tr()(i).call(i,function(e,n){var a=r.findSegmentToFitChar(t,s,d,m,o,b,u,e,n),c=a.offset,f=a.segment,l=a.rotation;b=c,f.p0&&f.p1&&r.glyphInfo.push({text:i[n],p0:f.p0,p1:f.p1,rotation:l})})}}},{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=r.next(),u=a.type,s=[];switch(a.type){case yi.MOVE_TO:this.pathM(r,s);break;case yi.LINE_TO:u=this.pathL(r,s);break;case yi.HORIZ_LINE_TO:u=this.pathH(r,s);break;case yi.VERT_LINE_TO:u=this.pathV(r,s);break;case yi.CURVE_TO:this.pathC(r,s);break;case yi.SMOOTH_CURVE_TO:u=this.pathS(r,s);break;case yi.QUAD_TO:this.pathQ(r,s);break;case yi.SMOOTH_QUAD_TO:u=this.pathT(r,s);break;case yi.ARC:s=this.pathA(r);break;case yi.CLOSE_PATH:gi.pathZ(r)}a.type!==yi.CLOSE_PATH?e.push({type:u,points:s,start:{x:i,y:o},pathLength:this.calcLength(i,o,u,s)}):e.push({type:yi.CLOSE_PATH,points:[],pathLength:0})}return e}},{key:"pathM",value:function(t,e){var r=gi.pathM(t).point,n=r.x,i=r.y;e.push(n,i)}},{key:"pathL",value:function(t,e){var r=gi.pathL(t).point,n=r.x,i=r.y;return e.push(n,i),yi.LINE_TO}},{key:"pathH",value:function(t,e){var r=gi.pathH(t).point,n=r.x,i=r.y;return e.push(n,i),yi.LINE_TO}},{key:"pathV",value:function(t,e){var r=gi.pathV(t).point,n=r.x,i=r.y;return e.push(n,i),yi.LINE_TO}},{key:"pathC",value:function(t,e){var r=gi.pathC(t),n=r.point,i=r.controlPoint,o=r.currentPoint;e.push(n.x,n.y,i.x,i.y,o.x,o.y)}},{key:"pathS",value:function(t,e){var r=gi.pathS(t),n=r.point,i=r.controlPoint,o=r.currentPoint;return e.push(n.x,n.y,i.x,i.y,o.x,o.y),yi.CURVE_TO}},{key:"pathQ",value:function(t,e){var r=gi.pathQ(t),n=r.controlPoint,i=r.currentPoint;e.push(n.x,n.y,i.x,i.y)}},{key:"pathT",value:function(t,e){var r=gi.pathT(t),n=r.controlPoint,i=r.currentPoint;return e.push(n.x,n.y,i.x,i.y),yi.QUAD_TO}},{key:"pathA",value:function(t){var e=gi.pathA(t),r=e.rX,n=e.rY,i=e.sweepFlag,o=e.xAxisRotation,a=e.centp,u=e.a1,s=e.ad;return 0===i&&s>0&&(s-=2*Math.PI),1===i&&s<0&&(s+=2*Math.PI),[a.x,a.y,r,n,u,s,o,i]}},{key:"calcLength",value:function(t,e,r,n){var i=0,o=null,a=null,u=0;switch(r){case yi.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case yi.CURVE_TO:for(i=0,o=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),u=.01;u<=1;u+=.01)a=this.getPointOnCubicBezier(u,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 yi.QUAD_TO:for(i=0,o=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),u=.01;u<=1;u+=.01)a=this.getPointOnQuadraticBezier(u,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 yi.ARC:i=0;var s=n[4],c=n[5],f=n[4]+c,l=Math.PI/180;if(Math.abs(s-f)<l&&(l=Math.abs(s-f)),o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),c<0)for(u=s-l;u>f;u-=l)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(u=s+l;u<f;u+=l)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,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],f,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,u=(i-r)/(n-e+Un),s=Math.sqrt(t*t/(1+u*u));n<e&&(s*=-1);var c=u*s,f=null;if(n===e)f={x:o,y:a+c};else if((a-r)/(o-e+Un)===u)f={x:o+s,y:a+c};else{var l=0,h=0,p=this.getLineLength(e,r,n,i);if(p<Un)return null;var v=(o-e)*(n-e)+(a-r)*(i-r);v/=p*p,l=e+v*(n-e),h=r+v*(i-r);var y=this.getLineLength(o,a,l,h),g=Math.sqrt(t*t-y*y);s=Math.sqrt(g*g/(1+u*u)),n<e&&(s*=-1),c=u*s,f={x:l+s,y:h+c}}return f}},{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=this.dataArray,a=Yt(o);try{for(a.s();!(i=a.n()).done;){var u=i.value;{if(!u||!(u.pathLength<5e-5||r+u.pathLength+5e-5<t)){var s=t-r,c=0;switch(u.type){case yi.LINE_TO:n=this.getPointOnLine(s,u.start.x,u.start.y,u.points[0],u.points[1],u.start.x,u.start.y);break;case yi.ARC:var f=u.points[4],l=u.points[5],h=u.points[4]+l;if(c=f+s/u.pathLength*l,l<0&&c<h||l>=0&&c>h)break;n=this.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],c,u.points[6]);break;case yi.CURVE_TO:c=s/u.pathLength,c>1&&(c=1),n=this.getPointOnCubicBezier(c,u.start.x,u.start.y,u.points[0],u.points[1],u.points[2],u.points[3],u.points[4],u.points[5]);break;case yi.QUAD_TO:c=s/u.pathLength,c>1&&(c=1),n=this.getPointOnQuadraticBezier(c,u.start.x,u.start.y,u.points[0],u.points[1],u.points[2],u.points[3])}if(n)return n;break}r+=u.pathLength}}}catch(t){a.e(t)}finally{a.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(){if(-1===this.pathLength){var t;this.pathLength=Sr()(t=this.dataArray).call(t,function(t,e){return e.pathLength>0?t+e.pathLength:t},0)}return this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,e,r,n,i,o,a,u,s){return{x:u*y(t)+o*g(t)+n*d(t)+e*m(t),y:s*y(t)+a*g(t)+i*d(t)+r*m(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,o,a){return{x:o*x(t)+n*b(t)+e*w(t),y:a*x(t)+i*b(t)+r*w(t)}}},{key:"getPointOnEllipticalArc",value:function(t,e,r,n,i,o){var a=Math.cos(o),u=Math.sin(o),s={x:r*Math.cos(i),y:n*Math.sin(i)};return{x:t+(s.x*a-s.y*u),y:e+(s.x*u+s.y*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 u=this.getPointOnPath(a),s=this.getPointOnPath(a+n);u&&s&&((o+=this.getLineLength(u.x,u.y,s.x,s.y))>=i&&(this.equidistantCache.points.push({x:u.x,y:u.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}}]),e}(hi),Ui=function(t){function e(t,n,i){var o;gr()(this,e),o=r.call(this,t,n,i),o.type="image",o.loaded=!1;var a=o.getHrefAttribute().getString();if(!a)return Ur()(o);var u=/\.svg$/.test(a);return t.images.push(hn()(o)),u?o.loadSvg(a):o.loadImage(a),o.isSvg=u,o}Fr()(e,t);var r=Kt(e);return mr()(e,[{key:"loadImage",value:function(){function t(t){return e.apply(this,arguments)}var e=hr()(fr.a.mark(function t(e){var r;return fr.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),console.error('Error while loading image "'.concat(e,'":'),t.t0);case 10:this.loaded=!0;case 11:case"end":return t.stop()}},t,this,[[0,7]])}));return t}()},{key:"loadSvg",value:function(){function t(t){return e.apply(this,arguments)}var e=hr()(fr.a.mark(function t(e){var r,n;return fr.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),console.error('Error while loading image "'.concat(e,'":'),t.t0);case 13:this.loaded=!0;case 14:case"end":return t.stop()}},t,this,[[0,10]])}));return t}()},{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"),u=this.getStyle("height").getPixels("y");if(n&&r&&a&&u){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:u}).render();else{var s=this.image;t.translate(i,o),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:s.width,height:u,desiredHeight:s.height}),this.loaded&&(void 0===s.complete||s.complete)&&t.drawImage(s,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 fi(t,e,t+r,e+n)}}]),e}(li),Hi=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="symbol",t}Fr()(e,t);var r=te(e);return mr()(e,[{key:"render",value:function(t){}}]),e}(li),Xi=function(){function t(e){gr()(this,t),this.document=e,this.loaded=!1,e.fonts.push(this)}return mr()(t,[{key:"load",value:function(){function t(t,r){return e.apply(this,arguments)}var e=hr()(fr.a.mark(function t(e,r){var n,i,o,a;return fr.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=this.document,t.next=4,i.canvg.parser.load(r);case 4:o=t.sent,a=o.getElementsByTagName("font"),tr()(n=Kr()(a)).call(n,function(t){var r=i.createElement(t);i.definitions[e]=r}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.error('Error while loading font "'.concat(r,'":'),t.t0);case 12:this.loaded=!0;case 13:case"end":return t.stop()}},t,this,[[0,9]])}));return t}()}]),t}(),Yi=function(t){function e(t,i,o){var a,u;gr()(this,e),u=r.call(this,t,i,o),u.type="style";var c=n(Xe()(a=Kr()(i.childNodes)).call(a,function(t){return t.data}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),f=c.split("}");return tr()(f).call(f,function(e){var r=Vr()(e).call(e);if(r){var n=r.split("{"),i=n[0].split(","),o=n[1].split(";");tr()(i).call(i,function(e){var r=Vr()(e).call(e);if(r){var n=t.styles[r]||{};if(tr()(o).call(o,function(e){var r,i,o=rn()(e).call(e,":"),a=Vr()(r=e.substr(0,o)).call(r),u=Vr()(i=e.substr(o+1,e.length-o)).call(i);a&&u&&(n[a]=new Hn(t,a,u))}),t.styles[r]=n,t.stylesSpecificity[r]=l(r),"@font-face"===r){var i=n["font-family"].getString().replace(/"|'/g,""),a=n.src.getString().split(",");tr()(a).call(a,function(e){if(rn()(e).call(e,'format("svg")')>0){var r=s(e);r&&new Xi(t).load(i,r)}})}}})}}),u}Fr()(e,t);var r=re(e);return e}(ui);Yi.parseExternalUrl=s;var qi=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="use",t}Fr()(e,t);var r=ie(e);return mr()(e,[{key:"setContext",value:function(t){on()(Xr()(e.prototype),"setContext",this).call(this,t);var r=this.getAttribute("x"),n=this.getAttribute("y");r.hasValue()&&t.translate(r.getPixels("x"),0),n.hasValue()&&t.translate(0,n.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 di(e,null),n.attributes.viewBox=new Hn(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new Hn(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new Hn(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new Hn(e,"opacity",this.calculateOpacity())),"svg"===n.type){var i=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new Hn(e,"width",i.getString())),o.hasValue()&&(n.attributes.height=new Hn(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 ai.fromElement(t,e)}},{key:"element",get:function(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),e}(li),Gi=function(t){function e(t,n,i){var o;gr()(this,e),o=r.call(this,t,n,i),o.type="feColorMatrix";var u=a(o.getAttribute("values").getString());switch(o.getAttribute("type").getString("matrix")){case"saturate":var s=u[0];u=[.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 c=u[0]*Math.PI/180;u=[le(c,.213,.787,-.213),le(c,.715,-.715,-.715),le(c,.072,-.072,.928),0,0,le(c,.213,-.213,.143),le(c,.715,.285,.14),le(c,.072,-.072,-.283),0,0,le(c,.213,-.213,-.787),le(c,.715,-.715,.715),le(c,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":u=[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=u,o.includeOpacity=o.getAttribute("includeOpacity").hasValue(),o}Fr()(e,t);var r=ae(e);return mr()(e,[{key:"apply",value:function(t,e,r,n,i){for(var o=this.includeOpacity,a=this.matrix,u=t.getImageData(0,0,n,i),s=0;s<i;s++)for(var c=0;c<n;c++){var f=se(u.data,c,s,n,i,0),l=se(u.data,c,s,n,i,1),h=se(u.data,c,s,n,i,2),p=se(u.data,c,s,n,i,3),v=fe(a,0,f)+fe(a,1,l)+fe(a,2,h)+fe(a,3,p)+fe(a,4,1),y=fe(a,5,f)+fe(a,6,l)+fe(a,7,h)+fe(a,8,p)+fe(a,9,1),g=fe(a,10,f)+fe(a,11,l)+fe(a,12,h)+fe(a,13,p)+fe(a,14,1),d=fe(a,15,f)+fe(a,16,l)+fe(a,17,h)+fe(a,18,p)+fe(a,19,1);o&&(v=y=g=0,d*=p/255),ce(u.data,c,s,n,i,0,v),ce(u.data,c,s,n,i,1,y),ce(u.data,c,s,n,i,2,g),ce(u.data,c,s,n,i,3,d)}t.clearRect(0,0,n,i),t.putImageData(u,0,0)}}]),e}(ui),Qi=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="mask",t}Fr()(e,t);var r=he(e);return mr()(e,[{key:"apply",value:function(t,r){var n=this.document,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!a&&!u){var s,c=new fi;tr()(s=this.children).call(s,function(e){c.addBoundingBox(e.getBoundingBox(t))}),i=Math.floor(c.x1),o=Math.floor(c.y1),a=Math.floor(c.width),u=Math.floor(c.height)}var f=this.removeStyles(r,e.ignoreStyles),l=n.createCanvas(i+a,o+u),h=l.getContext("2d");n.screen.setDefaults(h),this.renderChildren(h),new Gi(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(h,0,0,i+a,o+u);var p=n.createCanvas(i+a,o+u),v=p.getContext("2d");n.screen.setDefaults(v),r.render(v),v.globalCompositeOperation="destination-in",v.fillStyle=h.createPattern(l,"no-repeat"),v.fillRect(0,0,i+a,o+u),t.fillStyle=v.createPattern(p,"no-repeat"),t.fillRect(0,0,i+a,o+u),this.restoreStyles(r,f)}},{key:"render",value:function(t){}}]),e}(ui);Qi.ignoreStyles=["mask","transform","clip-path"];var Wi=function(){},$i=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="clipPath",t}Fr()(e,t);var r=ve(e);return mr()(e,[{key:"apply",value:function(t){var e,r=this.document,n=Rn()(t),i=t.beginPath,o=t.closePath;n&&(n.beginPath=Wi,n.closePath=Wi),Mn()(i,t,[]),tr()(e=this.children).call(e,function(e){if(void 0!==e.path){var i=void 0!==e.elementTransform?e.elementTransform():null;i||(i=ai.fromElement(r,e)),i&&i.apply(t),e.path(t),n&&(n.closePath=o),i&&i.unapply(t)}}),Mn()(o,t,[]),t.clip(),n&&(n.beginPath=i,n.closePath=o)}},{key:"render",value:function(t){}}]),e}(ui),Zi=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="filter",t}Fr()(e,t);var r=ge(e);return mr()(e,[{key:"apply",value:function(t,r){var n=this.document,i=this.children,o=r.getBoundingBox(t);if(o){var a=0,u=0;tr()(i).call(i,function(t){var e=t.extraFilterDistance||0;a=Math.max(a,e),u=Math.max(u,e)});var s=Math.floor(o.width),c=Math.floor(o.height),f=s+2*a,l=c+2*u;if(!(f<1||l<1)){var h=Math.floor(o.x),p=Math.floor(o.y),v=this.removeStyles(r,e.ignoreStyles),y=n.createCanvas(f,l),g=y.getContext("2d");n.screen.setDefaults(g),g.translate(-h+a,-p+u),r.render(g),tr()(i).call(i,function(t){"function"==typeof t.apply&&t.apply(g,0,0,f,l)}),t.drawImage(y,0,0,f,l,h-a,p-u,f,l),this.restoreStyles(r,v)}}}},{key:"render",value:function(t){}}]),e}(ui);Zi.ignoreStyles=["filter","transform","clip-path"];var Ki=function(t){function e(t,n,i){var o;return gr()(this,e),o=r.call(this,t,n,i),o.type="feDropShadow",o.addStylesFromStyleDefinition(),o}Fr()(e,t);var r=me(e);return mr()(e,[{key:"apply",value:function(t,e,r,n,i){}}]),e}(ui),Ji=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="feMorphology",t}Fr()(e,t);var r=be(e);return mr()(e,[{key:"apply",value:function(t,e,r,n,i){}}]),e}(ui),to=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="feComposite",t}Fr()(e,t);var r=Se(e);return mr()(e,[{key:"apply",value:function(t,e,r,n,i){}}]),e}(ui),eo=function(t){function e(t,r,i){var o;return gr()(this,e),o=n.call(this,t,r,i),o.type="feGaussianBlur",o.blurRadius=Math.floor(o.getAttribute("stdDeviation").getNumber()),o.extraFilterDistance=o.blurRadius,o}Fr()(e,t);var n=ke(e);return mr()(e,[{key:"apply",value:function(t,e,n,i,o){var a=this.document,u=this.blurRadius,s=a.window?a.window.document.body:null,c=t.canvas;c.id=a.getUniqueId(),s&&(c.style.display="none",s.appendChild(c)),r.i(_n.a)(c,e,n,i,o,u),s&&s.removeChild(c)}}]),e}(ui),ro=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="title",t}Fr()(e,t);var r=Oe(e);return e}(ui),no=function(t){function e(){var t;return gr()(this,e),t=r.apply(this,arguments),t.type="desc",t}Fr()(e,t);var r=Ee(e);return e}(ui),io={svg:di,rect:mi,circle:xi,ellipse:bi,line:wi,polyline:Si,polygon:Ai,path:gi,pattern:ki,marker:Ti,defs:Oi,linearGradient:Ci,radialGradient:Mi,stop:Ni,animate:Ri,animateColor:_i,animateTransform:Vi,font:Di,"font-face":Li,"missing-glyph":Ii,glyph:ji,text:hi,tspan:pi,tref:zi,a:Fi,textPath:Bi,image:Ui,g:Pi,symbol:Hi,style:Yi,use:qi,mask:Qi,clipPath:$i,filter:Zi,feDropShadow:Ki,feMorphology:Ji,feComposite:to,feColorMatrix:Gi,feGaussianBlur:eo,title:ro,desc:no},oo=function(){function t(e){var r,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.rootEmSize,a=void 0===o?12:o,u=i.emSize,s=void 0===u?12:u,c=i.createCanvas,f=void 0===c?t.createCanvas:c,l=i.createImage,h=void 0===l?t.createImage:l,p=i.anonymousCrossOrigin;gr()(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=a,this.emSize=s,this.createCanvas=f,this.createImage=this.bindCreateImage(h,p),this.screen.wait(Mr()(r=this.isImagesLoaded).call(r,this)),this.screen.wait(Mr()(n=this.isFontsLoaded).call(n,this))}return mr()(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(){var t;return Or()(t=this.images).call(t,function(t){return t.loaded})}},{key:"isFontsLoaded",value:function(){var t;return Or()(t=this.fonts).call(t,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 si(this,e)}},{key:"createTextNode",value:function(t){return new vi(this,t)}},{key:"setViewBox",value:function(t){this.screen.setViewBox(Ne({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}();oo.createCanvas=Re,oo.createImage=_e,oo.elementTypes=io;var ao=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};gr()(this,t),this.parser=new Kn(n),this.screen=new Wn(e,n),this.options=n;var i=new oo(this,n),o=i.createDocumentElement(r);this.document=i,this.documentElement=o}return mr()(t,[{key:"fork",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.from(e,r,Le(Le({},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,Le(Le({},this.options),n))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){function t(){return e.apply(this,arguments)}var e=hr()(fr.a.mark(function t(){var e,r=arguments;return fr.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(Le({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)}));return t}()},{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,Le(Le({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:function(){function e(t,e){return r.apply(this,arguments)}var r=hr()(fr.a.mark(function e(r,n){var i,o,a,u=arguments;return fr.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 Kn(i),e.next=4,o.parse(n);case 4:return a=e.sent,e.abrupt("return",new t(r,a,i));case 6:case"end":return e.stop()}},e)}));return e}()},{key:"fromString",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new t(e,new Kn(n).parseFromString(r),n)}}]),t}(),uo=Object.freeze({__proto__:null,offscreen:Ie,node:je});e.default=ao}.call(e,r(479))},,function(t,e,r){"use strict";var n=r(361),i=r(377).f,o=r(457),a=r(359),u=r(385),s=r(369),c=r(368),f=function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,l,h,p,v,y,g,d,m,x=t.target,b=t.global,w=t.stat,S=t.proto,A=b?n:w?n[x]:(n[x]||{}).prototype,k=b?a:a[x]||(a[x]={}),T=k.prototype;for(p in e)r=o(b?p:x+(w?".":"#")+p,t.forced),l=!r&&A&&c(A,p),y=k[p],l&&(t.noTargetGet?(m=i(A,p),g=m&&m.value):g=A[p]),v=l&&g?g:e[p],l&&typeof y==typeof v||(d=t.bind&&l?u(v,n):t.wrap&&l?f(v):S&&"function"==typeof v?u(Function.call,v):v,(t.sham||v&&v.sham||y&&y.sham)&&s(d,"sham",!0),k[p]=d,S&&(h=x+"Prototype",c(a,h)||s(a,h,{}),a[h][p]=v,t.real&&T&&!T[p]&&s(T,p,v)))}},function(t,e){t.exports={}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(e,r(52))},function(t,e,r){var n=r(361),i=r(422),o=r(368),a=r(406),u=r(417),s=r(471),c=i("wks"),f=n.Symbol,l=s?f:f&&f.withoutSetter||a;t.exports=function(t){return o(c,t)||(u&&o(f,t)?c[t]=f[t]:c[t]=l("Symbol."+t)),c[t]}},function(t,e,r){var n=r(359),i=r(368),o=r(427),a=r(370).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},function(t,e,r){var n=r(366);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,r){var n=r(359);t.exports=function(t){return n[t+"Prototype"]}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(360);t.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(367),i=r(370),o=r(384);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(367),i=r(453),o=r(364),a=r(405),u=Object.defineProperty;e.f=n?u:function(t,e,r){if(o(t),e=a(e,!0),o(r),i)try{return u(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}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,r){var n=r(359),i=r(361),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]}},function(t,e,r){var n=r(367),i=r(360),o=r(368),a=Object.defineProperty,u={},s=function(t){throw t};t.exports=function(t,e){if(o(u,t))return u[t];e||(e={});var r=[][t],c=!!o(e,"ACCESSORS")&&e.ACCESSORS,f=o(e,0)?e[0]:s,l=o(e,1)?e[1]:void 0;return u[t]=!!r&&!i(function(){if(c&&!n)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:s}):t[1]=1,r.call(t,f,l)})}},function(t,e,r){var n=r(416),i=r(391);t.exports=function(t){return n(i(t))}},function(t,e,r){var n=r(425),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e,r){var n=r(391);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(367),i=r(465),o=r(384),a=r(374),u=r(405),s=r(368),c=r(453),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=u(e,!0),c)try{return f(t,e)}catch(t){}if(s(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e,r){r(474);var n=r(613),i=r(361),o=r(383),a=r(369),u=r(381),s=r(362),c=s("toStringTag");for(var f in n){var l=i[f],h=l&&l.prototype;h&&o(h)!==c&&a(h,c,f),u[f]=u.Array}},function(t,e,r){var n=r(385),i=r(416),o=r(376),a=r(375),u=r(446),s=[].push,c=function(t){var e=1==t,r=2==t,c=3==t,f=4==t,l=6==t,h=5==t||l;return function(p,v,y,g){for(var d,m,x=o(p),b=i(x),w=n(v,y,3),S=a(b.length),A=0,k=g||u,T=e?k(p,S):r?k(p,0):void 0;S>A;A++)if((h||A in b)&&(d=b[A],m=w(d,A,x),t))if(e)T[A]=m;else if(m)switch(t){case 3:return!0;case 5:return d;case 6:return A;case 2:s.call(T,d)}else if(f)return!1;return l?-1:c||f?f:T}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(t,e){t.exports=!0},function(t,e){t.exports={}},function(t,e,r){"use strict";var n=r(627).charAt,i=r(386),o=r(413),a=i.set,u=i.getterFor("String Iterator");o(String,"String",function(t){a(this,{type:"String Iterator",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})})},function(t,e,r){var n=r(426),i=r(394),o=r(362),a=o("toStringTag"),u="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=s(e=Object(t),a))?r:u?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(371);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)}}},function(t,e,r){var n,i,o,a=r(620),u=r(361),s=r(366),c=r(369),f=r(368),l=r(421),h=r(404),p=r(395),v=u.WeakMap,y=function(t){return o(t)?i(t):n(t,{})},g=function(t){return function(e){var r;if(!s(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}};if(a){var d=l.state||(l.state=new v),m=d.get,x=d.has,b=d.set;n=function(t,e){return e.facade=t,b.call(d,t,e),e},i=function(t){return m.call(d,t)||{}},o=function(t){return x.call(d,t)}}else{var w=h("state");p[w]=!0,n=function(t,e){return e.facade=t,c(t,w,e),e},i=function(t){return f(t,w)?t[w]:{}},o=function(t){return f(t,w)}}t.exports={set:n,get:i,has:o,enforce:y,getterFor:g}},function(t,e,r){var n=r(394);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(364),i=r(456),o=r(375),a=r(385),u=r(402),s=r(458),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,r){var f,l,h,p,v,y,g,d=r&&r.that,m=!(!r||!r.AS_ENTRIES),x=!(!r||!r.IS_ITERATOR),b=!(!r||!r.INTERRUPTED),w=a(e,d,1+m+b),S=function(t){return f&&s(f),new c(!0,t)},A=function(t){return m?(n(t),b?w(t[0],t[1],S):w(t[0],t[1])):b?w(t,S):w(t)};if(x)f=t;else{if("function"!=typeof(l=u(t)))throw TypeError("Target is not iterable");if(i(l)){for(h=0,p=o(t.length);p>h;h++)if((v=A(t[h]))&&v instanceof c)return v;return new c(!1)}f=l.call(t)}for(y=f.next;!(g=y.call(f)).done;){try{v=A(g.value)}catch(t){throw s(f),t}if("object"==typeof v&&v&&v instanceof c)return v}return new c(!1)}},function(t,e,r){var n,i=r(364),o=r(462),a=r(415),u=r(395),s=r(452),c=r(414),f=r(404),l=f("IE_PROTO"),h=function(){},p=function(t){return"<script>"+t+"<\/script>"},v=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=c("iframe");return e.style.display="none",s.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(p("document.F=Object")),t.close(),t.F},g=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}g=n?v(n):y();for(var t=a.length;t--;)delete g.prototype[a[t]];return g()};u[l]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(h.prototype=i(t),r=new h,h.prototype=null,r[l]=t):r=g(),void 0===e?r:o(r,e)}},function(t,e,r){var n=r(368),i=r(376),o=r(404),a=r(412),u=o("IE_PROTO"),s=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),n(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(426),i=r(370).f,o=r(369),a=r(368),u=r(624),s=r(362),c=s("toStringTag");t.exports=function(t,e,r,s){if(t){var f=r?t:t.prototype;a(f,c)||i(f,c,{configurable:!0,value:e}),s&&!n&&o(f,"toString",u)}}},function(t,e,r){"use strict";var n=r(360);t.exports=function(t,e){var r=[][t];return!!r&&n(function(){r.call(null,e||function(){throw 1},1)})}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports={}},function(t,e,r){"use strict";var n=r(371),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)}},function(t,e,r){var n=r(369);t.exports=function(t,e,r,i){i&&i.enumerable?t[e]=r:n(t,e,r)}},function(t,e,r){var n=r(360),i=r(362),o=r(401),a=i("species");t.exports=function(t){return o>=51||!n(function(){var e=[],r=e.constructor={};return r[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(t,e,r){"use strict";var n=r(405),i=r(370),o=r(384);t.exports=function(t,e,r){var a=n(e);a in t?i.f(t,a,o(0,r)):t[a]=r}},function(t,e,r){var n=r(394),i=r(361);t.exports="process"==n(i.process)},function(t,e,r){var n,i,o=r(361),a=r(450),u=o.process,s=u&&u.versions,c=s&&s.v8;c?(n=c.split("."),i=n[0]+n[1]):a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},function(t,e,r){var n=r(383),i=r(381),o=r(362),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[n(t)]}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,r){var n=r(422),i=r(406),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,r){var n=r(366);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")}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,r){t.exports=r(602)},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},function(t,e,r){var n=r(374),i=r(375),o=r(424),a=function(t){return function(e,r,a){var u,s=n(e),c=i(s.length),f=o(a,c);if(t&&r!=r){for(;c>f;)if((u=s[f++])!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,r){var n=r(360);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,r){"use strict";var n=r(358),i=r(612),o=r(390),a=r(420),u=r(392),s=r(369),c=r(397),f=r(362),l=r(380),h=r(381),p=r(459),v=p.IteratorPrototype,y=p.BUGGY_SAFARI_ITERATORS,g=f("iterator"),d=function(){return this};t.exports=function(t,e,r,f,p,m,x){i(r,e,f);var b,w,S,A=function(t){if(t===p&&E)return E;if(!y&&t in O)return O[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},k=e+" Iterator",T=!1,O=t.prototype,P=O[g]||O["@@iterator"]||p&&O[p],E=!y&&P||A(p),C="Array"==e?O.entries||P:P;if(C&&(b=o(C.call(new t)),v!==Object.prototype&&b.next&&(l||o(b)===v||(a?a(b,v):"function"!=typeof b[g]&&s(b,g,d)),u(b,k,!0,!0),l&&(h[k]=d))),"values"==p&&P&&"values"!==P.name&&(T=!0,E=function(){return P.call(this)}),l&&!x||O[g]===E||s(O,g,E),h[e]=E,p)if(w={values:A("values"),keys:m?E:A("keys"),entries:A("entries")},x)for(S in w)!y&&!T&&S in O||c(O,S,w[S]);else n({target:e,proto:!0,forced:y||T},w);return w}},function(t,e,r){var n=r(361),i=r(366),o=n.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,r){var n=r(360),i=r(394),o="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},function(t,e,r){var n=r(360);t.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},function(t,e,r){var n=r(464),i=r(415),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(464),i=r(415);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){var n=r(364),i=r(604);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.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)},function(t,e,r){var n=r(361),i=r(626),o=n["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,r){var n=r(380),i=r(421);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.7.0",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(391),i=r(407),o="["+i+"]",a=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),s=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(a,"")),2&t&&(r=r.replace(u,"")),r}};t.exports={start:s(1),end:s(2),trim:s(3)}},function(t,e,r){var n=r(425),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)}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(362),i=n("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},function(t,e,r){var n=r(362);e.f=n},function(t,e){},function(t,e,r){t.exports=r(589)},function(t,e,r){t.exports=r(590)},function(t,e,r){t.exports=r(592)},function(t,e,r){t.exports=r(594)},function(t,e,r){t.exports=r(596)},function(t,e,r){t.exports=r(599)},function(t,e){function r(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}t.exports=r},function(t,e){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}t.exports=r},function(t,e,r){function n(e){return t.exports=n=o?i:function(t){return t.__proto__||i(t)},n(e)}var i=r(518),o=r(434);t.exports=n},function(t,e,r){function n(t,e){var r;if(t){if("string"==typeof t)return a(t,e);var n=o(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?i(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}var i=r(429),o=r(515),a=r(435);t.exports=n},function(t,e,r){r(382),r(633);var n=r(359);t.exports=n.Array.from},function(t,e,r){r(636);var n=r(359);t.exports=n.Array.isArray},function(t,e,r){var n=r(552),i=Array.prototype;t.exports=function(t){var e=t.slice;return t===i||t instanceof Array&&e===i.slice?n:e}},function(t,e,r){r(649);var n=r(359),i=n.Object,o=t.exports=function(t,e,r){return i.defineProperty(t,e,r)};i.defineProperty.sham&&(o.sham=!0)},function(t,e,r){r(650);var n=r(359),i=n.Object,o=t.exports=function(t,e){return i.getOwnPropertyDescriptor(t,e)};i.getOwnPropertyDescriptor.sham&&(o.sham=!0)},function(t,e,r){r(472),r(428),r(658),r(475),r(476),r(657),r(382),r(378);var n=r(359);t.exports=n.Promise},function(t,e,r){r(473),r(428),r(478),r(668),r(669),r(670),r(671),r(477),r(673),r(672),r(674),r(675),r(676),r(677),r(678),r(679),r(680),r(644),r(646),r(664);var n=r(359);t.exports=n.Symbol},function(t,e,r){var n=r(366),i=r(387),o=r(362),a=o("species");t.exports=function(t,e){var r;return i(t)&&(r=t.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[a])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},function(t,e,r){var n=r(362),i=n("iterator"),o=!1;try{var a=0,u={next:function(){return{done:!!a++}},return:function(){o=!0}};u[i]=function(){return this},Array.from(u,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}},function(t,e,r){var n=r(362),i=n("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[i]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,r){var n=r(450);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(t,e,r){var n=r(372);t.exports=n("navigator","userAgent")||""},function(t,e,r){"use strict";var n=r(371),i=r(366),o=[].slice,a={},u=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?u(e,n.length,n):e.apply(t,n)};return i(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e,r){var n=r(372);t.exports=n("document","documentElement")},function(t,e,r){var n=r(367),i=r(360),o=r(414);t.exports=!n&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(421),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return i.call(t)}),t.exports=n.inspectSource},function(t,e,r){var n=r(395),i=r(366),o=r(368),a=r(370).f,u=r(406),s=r(614),c=u("meta"),f=0,l=Object.isExtensible||function(){return!0},h=function(t){a(t,c,{value:{objectID:"O"+ ++f,weakData:{}}})},p=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,c)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[c].objectID},v=function(t,e){if(!o(t,c)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[c].weakData},y=function(t){return s&&g.REQUIRED&&l(t)&&!o(t,c)&&h(t),t},g=t.exports={REQUIRED:!1,fastKey:p,getWeakData:v,onFreeze:y};n[c]=!0},function(t,e,r){var n=r(362),i=r(381),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},function(t,e,r){var n=r(360),i=/#|\.prototype\./,o=function(t,e){var r=u[a(t)];return r==c||r!=s&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=o.data={},s=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},function(t,e,r){var n=r(364);t.exports=function(t){var e=t.return;if(void 0!==e)return n(e.call(t)).value}},function(t,e,r){"use strict";var n,i,o,a=r(390),u=r(369),s=r(368),c=r(362),f=r(380),l=c("iterator"),h=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)))!==Object.prototype&&(n=i):h=!0),void 0==n&&(n={}),f||s(n,l)||u(n,l,p),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(t,e,r){var n=r(361);t.exports=n.Promise},function(t,e,r){var n=r(618);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,r){var n=r(367),i=r(370),o=r(364),a=r(419);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),u=n.length,s=0;u>s;)i.f(t,r=n[s++],e[r]);return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(368),i=r(374),o=r(411).indexOf,a=r(395);t.exports=function(t,e){var r,u=i(t),s=0,c=[];for(r in u)!n(a,r)&&n(u,r)&&c.push(r);for(;e.length>s;)n(u,r=e[s++])&&(~o(c,r)||c.push(r));return c}},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},function(t,e,r){var n=r(364),i=r(366),o=r(396);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}},function(t,e,r){var n=r(397);t.exports=function(t,e,r){for(var i in e)r&&r.unsafe&&t[i]?t[i]=e[i]:n(t,i,e[i],r);return t}},function(t,e,r){"use strict";var n=r(372),i=r(370),o=r(362),a=r(367),u=o("species");t.exports=function(t){var e=n(t),r=i.f;a&&e&&!e[u]&&r(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(364),i=r(371),o=r(362),a=o("species");t.exports=function(t,e){var r,o=n(t).constructor;return void 0===o||void 0==(r=n(o)[a])?e:i(r)}},function(t,e,r){var n,i,o,a=r(361),u=r(360),s=r(385),c=r(452),f=r(414),l=r(449),h=r(400),p=a.location,v=a.setImmediate,y=a.clearImmediate,g=a.process,d=a.MessageChannel,m=a.Dispatch,x=0,b={},w=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},S=function(t){return function(){w(t)}},A=function(t){w(t.data)},k=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};v&&y||(v=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},y=function(t){delete b[t]},h?n=function(t){g.nextTick(S(t))}:m&&m.now?n=function(t){m.now(S(t))}:d&&!l?(i=new d,o=i.port2,i.port1.onmessage=A,n=s(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&p&&"file:"!==p.protocol&&!u(k)?(n=k,a.addEventListener("message",A,!1)):n="onreadystatechange"in f("script")?function(t){c.appendChild(f("script")).onreadystatechange=function(){c.removeChild(this),w(t)}}:function(t){setTimeout(S(t),0)}),t.exports={set:v,clear:y}},function(t,e,r){var n=r(417);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){"use strict";var n=r(358),i=r(390),o=r(420),a=r(389),u=r(369),s=r(384),c=r(388),f=function(t,e){var r=this;if(!(r instanceof f))return new f(t,e);o&&(r=o(new Error(void 0),i(r))),void 0!==e&&u(r,"message",String(e));var n=[];return c(t,n.push,{that:n}),u(r,"errors",n),r};f.prototype=a(Error.prototype,{constructor:s(5,f),message:s(5,""),name:s(5,"AggregateError")}),n({global:!0},{AggregateError:f})},function(t,e,r){"use strict";var n=r(358),i=r(360),o=r(387),a=r(366),u=r(376),s=r(375),c=r(399),f=r(446),l=r(398),h=r(362),p=r(401),v=h("isConcatSpreadable"),y=p>=51||!i(function(){var t=[];return t[v]=!1,t.concat()[0]!==t}),g=l("concat"),d=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,forced:!y||!g},{concat:function(t){var e,r,n,i,o,a=u(this),l=f(a,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?a:arguments[e],d(o)){if(i=s(o.length),h+i>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,h++)r in o&&c(l,h,o[r])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(l,h++,o)}return l.length=h,l}})},function(t,e,r){"use strict";var n=r(374),i=r(409),o=r(381),a=r(386),u=r(413),s=a.set,c=a.getterFor("Array Iterator");t.exports=u(Array,"Array",function(t,e){s(this,{type:"Array Iterator",target:n(t),index:0,kind:e})},function(){var t=c(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,r){"use strict";var n=r(358),i=r(371),o=r(396),a=r(403),u=r(388);n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=o.f(e),n=r.resolve,s=r.reject,c=a(function(){var r=i(e.resolve),o=[],a=0,s=1;u(t,function(t){var i=a++,u=!1;o.push(void 0),s++,r.call(e,t).then(function(t){u||(u=!0,o[i]={status:"fulfilled",value:t},--s||n(o))},function(t){u||(u=!0,o[i]={status:"rejected",reason:t},--s||n(o))})}),--s||n(o)});return c.error&&s(c.value),r.promise}})},function(t,e,r){"use strict";var n=r(358),i=r(371),o=r(372),a=r(396),u=r(403),s=r(388);n({target:"Promise",stat:!0},{any:function(t){var e=this,r=a.f(e),n=r.resolve,c=r.reject,f=u(function(){var r=i(e.resolve),a=[],u=0,f=1,l=!1;s(t,function(t){var i=u++,s=!1;a.push(void 0),f++,r.call(e,t).then(function(t){s||l||(l=!0,n(t))},function(t){s||l||(s=!0,a[i]=t,--f||c(new(o("AggregateError"))(a,"No one promise resolved")))})}),--f||c(new(o("AggregateError"))(a,"No one promise resolved"))});return f.error&&c(f.value),r.promise}})},function(t,e,r){r(363)("iterator")},function(t,e,r){"use strict";var n=r(358),i=r(361),o=r(372),a=r(380),u=r(367),s=r(417),c=r(471),f=r(360),l=r(368),h=r(387),p=r(366),v=r(364),y=r(376),g=r(374),d=r(405),m=r(384),x=r(389),b=r(419),w=r(418),S=r(623),A=r(463),k=r(377),T=r(370),O=r(465),P=r(369),E=r(397),C=r(422),M=r(404),N=r(395),R=r(406),_=r(362),V=r(427),D=r(363),L=r(392),I=r(386),j=r(379).forEach,z=M("hidden"),F=_("toPrimitive"),B=I.set,U=I.getterFor("Symbol"),H=Object.prototype,X=i.Symbol,Y=o("JSON","stringify"),q=k.f,G=T.f,Q=S.f,W=O.f,$=C("symbols"),Z=C("op-symbols"),K=C("string-to-symbol-registry"),J=C("symbol-to-string-registry"),tt=C("wks"),et=i.QObject,rt=!et||!et.prototype||!et.prototype.findChild,nt=u&&f(function(){return 7!=x(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=q(H,e);n&&delete H[e],G(t,e,r),n&&t!==H&&G(H,e,n)}:G,it=function(t,e){var r=$[t]=x(X.prototype);return B(r,{type:"Symbol",tag:t,description:e}),u||(r.description=e),r},ot=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof X},at=function(t,e,r){t===H&&at(Z,e,r),v(t);var n=d(e,!0);return v(r),l($,n)?(r.enumerable?(l(t,z)&&t[z][n]&&(t[z][n]=!1),r=x(r,{enumerable:m(0,!1)})):(l(t,z)||G(t,z,m(1,{})),t[z][n]=!0),nt(t,n,r)):G(t,n,r)},ut=function(t,e){v(t);var r=g(e),n=b(r).concat(ht(r));return j(n,function(e){u&&!ct.call(r,e)||at(t,e,r[e])}),t},st=function(t,e){return void 0===e?x(t):ut(x(t),e)},ct=function(t){var e=d(t,!0),r=W.call(this,e);return!(this===H&&l($,e)&&!l(Z,e))&&(!(r||!l(this,e)||!l($,e)||l(this,z)&&this[z][e])||r)},ft=function(t,e){var r=g(t),n=d(e,!0);if(r!==H||!l($,n)||l(Z,n)){var i=q(r,n);return!i||!l($,n)||l(r,z)&&r[z][n]||(i.enumerable=!0),i}},lt=function(t){var e=Q(g(t)),r=[];return j(e,function(t){l($,t)||l(N,t)||r.push(t)}),r},ht=function(t){var e=t===H,r=Q(e?Z:g(t)),n=[];return j(r,function(t){!l($,t)||e&&!l(H,t)||n.push($[t])}),n};if(s||(X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=R(t),r=function(t){this===H&&r.call(Z,t),l(this,z)&&l(this[z],e)&&(this[z][e]=!1),nt(this,e,m(1,t))};return u&&rt&&nt(H,e,{configurable:!0,set:r}),it(e,t)},E(X.prototype,"toString",function(){return U(this).tag}),E(X,"withoutSetter",function(t){return it(R(t),t)}),O.f=ct,T.f=at,k.f=ft,w.f=S.f=lt,A.f=ht,V.f=function(t){return it(_(t),t)},u&&(G(X.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),a||E(H,"propertyIsEnumerable",ct,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:X}),j(b(tt),function(t){D(t)}),n({target:"Symbol",stat:!0,forced:!s},{for:function(t){var e=String(t);if(l(K,e))return K[e];var r=X(e);return K[e]=r,J[r]=e,r},keyFor:function(t){if(!ot(t))throw TypeError(t+" is not a symbol");if(l(J,t))return J[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),n({target:"Object",stat:!0,forced:!s,sham:!u},{create:st,defineProperty:at,defineProperties:ut,getOwnPropertyDescriptor:ft}),n({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:lt,getOwnPropertySymbols:ht}),n({target:"Object",stat:!0,forced:f(function(){A.f(1)})},{getOwnPropertySymbols:function(t){return A.f(y(t))}}),Y){n({target:"JSON",stat:!0,forced:!s||f(function(){var t=X();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(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)&&!ot(t))return h(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ot(e))return e}),i[1]=e,Y.apply(null,i)}})}X.prototype[F]||P(X.prototype,F,X.prototype.valueOf),L(X,"Symbol"),N[z]=!0},function(t,e){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(t){if(f===setTimeout)return setTimeout(t,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function o(t){if(l===clearTimeout)return clearTimeout(t);if((l===n||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function a(){y&&p&&(y=!1,p.length?v=p.concat(v):g=-1,v.length&&u())}function u(){if(!y){var t=i(a);y=!0;for(var e=v.length;e;){for(p=v,v=[];++g<e;)p&&p[g].run();g=-1,e=v.length}p=null,y=!1,o(t)}}function s(t,e){this.fun=t,this.array=e}function c(){}var f,l,h=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(t){f=r}try{l="function"==typeof clearTimeout?clearTimeout:n}catch(t){l=n}}();var p,v=[],y=!1,g=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];v.push(new s(t,e)),1!==v.length||y||i(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e,r){t.exports=r(690)},function(t,e,r){t.exports=r(691)},function(t,e,r){t.exports=r(694)},function(t,e,r){t.exports=r(695)},function(t,e,r){t.exports=r(696)},function(t,e,r){t.exports=r(697)},function(t,e,r){t.exports=r(698)},function(t,e,r){t.exports=r(699)},function(t,e,r){t.exports=r(700)},function(t,e,r){t.exports=r(701)},function(t,e,r){t.exports=r(702)},function(t,e,r){t.exports=r(703)},function(t,e,r){t.exports=r(704)},function(t,e,r){t.exports=r(705)},function(t,e,r){t.exports=r(706)},function(t,e,r){t.exports=r(707)},function(t,e,r){t.exports=r(708)},function(t,e,r){t.exports=r(709)},function(t,e,r){t.exports=r(710)},function(t,e,r){t.exports=r(711)},function(t,e,r){t.exports=r(712)},function(t,e,r){t.exports=r(713)},function(t,e,r){t.exports=r(714)},function(t,e,r){t.exports=r(715)},function(t,e,r){t.exports=r(716)},function(t,e,r){t.exports=r(717)},function(t,e,r){t.exports=r(718)},function(t,e,r){t.exports=r(719)},function(t,e,r){t.exports=r(720)},function(t,e,r){t.exports=r(721)},function(t,e,r){t.exports=r(722)},function(t,e,r){t.exports=r(723)},function(t,e,r){t.exports=r(724)},function(t,e,r){t.exports=r(725)},function(t,e,r){t.exports=r(591)},function(t,e,r){t.exports=r(593)},function(t,e,r){t.exports=r(595)},function(t,e,r){t.exports=r(597)},function(t,e,r){t.exports=r(598)},function(t,e,r){t.exports=r(600)},function(t,e,r){t.exports=r(601)},function(t,e,r){t.exports=r(603)},function(t,e,r){function n(t){if(i(t))return t}var i=r(430);t.exports=n},function(t,e,r){function n(t){if(i(t))return o(t)}var i=r(430),o=r(435);t.exports=n},function(t,e,r){function n(t,e,r,n,i,a,u){try{var s=t[a](u),c=s.value}catch(t){return void r(t)}s.done?e(c):o.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new o(function(i,o){function a(t){n(s,i,o,a,u,"next",t)}function u(t){n(s,i,o,a,u,"throw",t)}var s=t.apply(e,r);a(void 0)})}}var o=r(519);t.exports=i},function(t,e){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}t.exports=r},function(t,e,r){function n(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),o(t,n.key,n)}}function i(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}var o=r(433);t.exports=i},function(t,e,r){function n(t,e,r){return e in t?i(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(433);t.exports=n},function(t,e,r){function n(e,r,u){return"undefined"!=typeof Reflect&&o?t.exports=n=o:t.exports=n=function(t,e,r){var n=a(t,e);if(n){var o=i(n,e);return o.get?o.get.call(r):o.value}},n(e,r,u||e)}var i=r(517),o=r(520),a=r(537);t.exports=n},function(t,e,r){function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=i(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}var i=r(516),o=r(535);t.exports=n},function(t,e,r){function n(t){if(void 0!==a&&o(Object(t)))return i(t)}var i=r(429),o=r(432),a=r(408);t.exports=n},function(t,e,r){function n(t,e){if(void 0!==a&&o(Object(t))){var r=[],n=!0,u=!1,s=void 0;try{for(var c,f=i(t);!(n=(c=f.next()).done)&&(r.push(c.value),!e||r.length!==e);n=!0);}catch(t){u=!0,s=t}finally{try{n||null==f.return||f.return()}finally{if(u)throw s}}return r}}var i=r(431),o=r(432),a=r(408);t.exports=n},function(t,e){function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=r},function(t,e){function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=r},function(t,e,r){function n(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?o(t):e}var i=r(539),o=r(436);t.exports=n},function(t,e,r){function n(e,r){return t.exports=n=i||function(t,e){return t.__proto__=e,t},n(e,r)}var i=r(434);t.exports=n},function(t,e,r){function n(t,e){return i(t)||o(t,e)||a(t,e)||u()}var i=r(522),o=r(531),a=r(438),u=r(532);t.exports=n},function(t,e,r){function n(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}var i=r(437);t.exports=n},function(t,e,r){function n(t){return i(t)||o(t)||a(t)||u()}var i=r(523),o=r(530),a=r(438),u=r(533);t.exports=n},function(t,e,r){function n(e){"@babel/helpers - typeof";return t.exports=n="function"==typeof o&&"symbol"==typeof i?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t},n(e)}var i=r(521),o=r(408);t.exports=n},function(t,e,r){var n=function(t){"use strict";function e(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}function r(t,e,r,n){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),u=new p(n||[]);return a._invoke=c(t,r,u),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function u(t){["next","throw","return"].forEach(function(r){e(t,r,function(t){return this._invoke(r,t)})})}function s(t,e){function r(i,o,a,u){var s=n(t[i],t,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&m.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(f).then(function(t){c.value=t,a(c)},function(t){return r("throw",t,a,u)})}u(s.arg)}function i(t,n){function i(){return new e(function(e,i){r(t,n,e,i)})}return o=o?o.then(i,i):i()}var o;this._invoke=i}function c(t,e,r){var i=A;return function(o,a){if(i===T)throw new Error("Generator is already running");if(i===O){if("throw"===o)throw a;return y()}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var s=f(u,r);if(s){if(s===P)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===A)throw i=O,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=T;var c=n(t,e,r);if("normal"===c.type){if(i=r.done?O:k,c.arg===P)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=O,r.method="throw",r.arg=c.arg)}}}function f(t,e){var r=t.iterator[e.method];if(r===g){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=g,f(t,e),"throw"===e.method))return P;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}var i=n(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,P;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=g),e.delegate=null,P):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,P)}function l(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 h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function v(t){if(t){var e=t[b];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(m.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=g,e.done=!0,e};return n.next=n}}return{next:y}}function y(){return{value:g,done:!0}}var g,d=Object.prototype,m=d.hasOwnProperty,x="function"==typeof Symbol?Symbol:{},b=x.iterator||"@@iterator",w=x.asyncIterator||"@@asyncIterator",S=x.toStringTag||"@@toStringTag";try{e({},"")}catch(t){e=function(t,e,r){return t[e]=r}}t.wrap=r;var A="suspendedStart",k="suspendedYield",T="executing",O="completed",P={},E={};E[b]=function(){return this};var C=Object.getPrototypeOf,M=C&&C(C(v([])));M&&M!==d&&m.call(M,b)&&(E=M);var N=a.prototype=i.prototype=Object.create(E);return o.prototype=N.constructor=a,a.constructor=o,o.displayName=e(a,S,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,e(t,S,"GeneratorFunction")),t.prototype=Object.create(N),t},t.awrap=function(t){return{__await:t}},u(s.prototype),s.prototype[w]=function(){return this},t.AsyncIterator=s,t.async=function(e,n,i,o,a){void 0===a&&(a=Promise);var u=new s(r(e,n,i,o),a);return t.isGeneratorFunction(n)?u:u.next().then(function(t){return t.done?t.value:u.next()})},u(N),e(N,S,"Generator"),N[b]=function(){return this},N.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=v,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(h),!t)for(var e in this)"t"===e.charAt(0)&&m.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=g)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return o.type="throw",o.arg=t,r.next=e,n&&(r.method="next",r.arg=g),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=m.call(i,"catchLoc"),u=m.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&m.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,P):this.complete(o)},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),P},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),h(r),P}},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;h(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:v(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=g),P}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){t.exports=r(540)},function(t,e,r){r(473);var n=r(365);t.exports=n("Array").concat},function(t,e,r){r(629);var n=r(365);t.exports=n("Array").every},function(t,e,r){r(630);var n=r(365);t.exports=n("Array").fill},function(t,e,r){r(631);var n=r(365);t.exports=n("Array").filter},function(t,e,r){r(632);var n=r(365);t.exports=n("Array").forEach},function(t,e,r){r(634);var n=r(365);t.exports=n("Array").includes},function(t,e,r){r(635);var n=r(365);t.exports=n("Array").indexOf},function(t,e,r){r(637);var n=r(365);t.exports=n("Array").map},function(t,e,r){r(638);var n=r(365);t.exports=n("Array").reduce},function(t,e,r){r(639);var n=r(365);t.exports=n("Array").reverse},function(t,e,r){r(640);var n=r(365);t.exports=n("Array").slice},function(t,e,r){r(641);var n=r(365);t.exports=n("Array").some},function(t,e,r){r(474);var n=r(365);t.exports=n("Array").values},function(t,e,r){r(642);var n=r(359);t.exports=n.Date.now},function(t,e,r){r(643);var n=r(365);t.exports=n("Function").bind},function(t,e,r){var n=r(556),i=Function.prototype;t.exports=function(t){var e=t.bind;return t===i||t instanceof Function&&e===i.bind?n:e}},function(t,e,r){var n=r(542),i=Array.prototype;t.exports=function(t){var e=t.concat;return t===i||t instanceof Array&&e===i.concat?n:e}},function(t,e,r){var n=r(543),i=Array.prototype;t.exports=function(t){var e=t.every;return t===i||t instanceof Array&&e===i.every?n:e}},function(t,e,r){var n=r(544),i=Array.prototype;t.exports=function(t){var e=t.fill;return t===i||t instanceof Array&&e===i.fill?n:e}},function(t,e,r){var n=r(545),i=Array.prototype;t.exports=function(t){var e=t.filter;return t===i||t instanceof Array&&e===i.filter?n:e}},function(t,e,r){var n=r(547),i=r(585),o=Array.prototype,a=String.prototype;t.exports=function(t){var e=t.includes;return t===o||t instanceof Array&&e===o.includes?n:"string"==typeof t||t===a||t instanceof String&&e===a.includes?i:e}},function(t,e,r){var n=r(548),i=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===i||t instanceof Array&&e===i.indexOf?n:e}},function(t,e,r){var n=r(549),i=Array.prototype;t.exports=function(t){var e=t.map;return t===i||t instanceof Array&&e===i.map?n:e}},function(t,e,r){var n=r(550),i=Array.prototype;t.exports=function(t){var e=t.reduce;return t===i||t instanceof Array&&e===i.reduce?n:e}},function(t,e,r){var n=r(551),i=Array.prototype;t.exports=function(t){var e=t.reverse;return t===i||t instanceof Array&&e===i.reverse?n:e}},function(t,e,r){var n=r(553),i=Array.prototype;t.exports=function(t){var e=t.some;return t===i||t instanceof Array&&e===i.some?n:e}},function(t,e,r){var n=r(586),i=String.prototype;t.exports=function(t){var e=t.startsWith;return"string"==typeof t||t===i||t instanceof String&&e===i.startsWith?n:e}},function(t,e,r){var n=r(587),i=String.prototype;t.exports=function(t){var e=t.trim;return"string"==typeof t||t===i||t instanceof String&&e===i.trim?n:e}},function(t,e,r){r(645),r(428),r(382),r(378);var n=r(359);t.exports=n.Map},function(t,e,r){r(647);var n=r(359),i=n.Object;t.exports=function(t,e){return i.create(t,e)}},function(t,e,r){r(648);var n=r(359),i=n.Object,o=t.exports=function(t,e){return i.defineProperties(t,e)};i.defineProperties.sham&&(o.sham=!0)},function(t,e,r){r(651);var n=r(359);t.exports=n.Object.getOwnPropertyDescriptors},function(t,e,r){r(478);var n=r(359);t.exports=n.Object.getOwnPropertySymbols},function(t,e,r){r(652);var n=r(359);t.exports=n.Object.getPrototypeOf},function(t,e,r){r(653);var n=r(359);t.exports=n.Object.keys},function(t,e,r){r(654);var n=r(359);t.exports=n.Object.setPrototypeOf},function(t,e,r){r(655);var n=r(359);t.exports=n.parseFloat},function(t,e,r){r(656);var n=r(359);t.exports=n.parseInt},function(t,e,r){r(659);var n=r(359);t.exports=n.Reflect.apply},function(t,e,r){r(660);var n=r(359);t.exports=n.Reflect.construct},function(t,e,r){r(661);var n=r(359);t.exports=n.Reflect.deleteProperty},function(t,e,r){r(662);var n=r(359);t.exports=n.Reflect.getPrototypeOf},function(t,e,r){r(663);var n=r(359);t.exports=n.Reflect.get},function(t,e,r){r(665);var n=r(365);t.exports=n("String").includes},function(t,e,r){r(666);var n=r(365);t.exports=n("String").startsWith},function(t,e,r){r(667);var n=r(365);t.exports=n("String").trim},function(t,e,r){r(477),r(382),r(378);var n=r(427);t.exports=n.f("iterator")},function(t,e,r){var n=r(439);t.exports=n},function(t,e,r){var n=r(440);t.exports=n},function(t,e,r){r(378),r(382);var n=r(402);t.exports=n},function(t,e,r){r(378),r(382);var n=r(615);t.exports=n},function(t,e,r){var n=r(441);t.exports=n},function(t,e,r){r(378),r(382);var n=r(617);t.exports=n},function(t,e,r){var n=r(571);t.exports=n},function(t,e,r){var n=r(442);t.exports=n},function(t,e,r){var n=r(443);t.exports=n},function(t,e,r){var n=r(575);t.exports=n},function(t,e,r){var n=r(577);t.exports=n},function(t,e,r){var n=r(444);r(681),r(682),r(684),r(683),t.exports=n},function(t,e,r){var n=r(584);t.exports=n},function(t,e,r){var n=r(445);r(685),r(686),r(687),r(688),r(689),t.exports=n},function(t,e,r){var n=r(588);t.exports=n},function(t,e,r){var n=r(366);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,r){"use strict";var n=r(376),i=r(424),o=r(375);t.exports=function(t){for(var e=n(this),r=o(e.length),a=arguments.length,u=i(a>1?arguments[1]:void 0,r),s=a>2?arguments[2]:void 0,c=void 0===s?r:i(s,r);c>u;)e[u++]=t;return e}},function(t,e,r){"use strict";var n=r(379).forEach,i=r(393),o=r(373),a=i("forEach"),u=o("forEach");t.exports=a&&u?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,r){"use strict";var n=r(385),i=r(376),o=r(609),a=r(456),u=r(375),s=r(399),c=r(402);t.exports=function(t){var e,r,f,l,h,p,v=i(t),y="function"==typeof this?this:Array,g=arguments.length,d=g>1?arguments[1]:void 0,m=void 0!==d,x=c(v),b=0;if(m&&(d=n(d,g>2?arguments[2]:void 0,2)),void 0==x||y==Array&&a(x))for(e=u(v.length),r=new y(e);e>b;b++)p=m?d(v[b],b):v[b],s(r,b,p);else for(l=x.call(v),h=l.next,r=new y;!(f=h.call(l)).done;b++)p=m?o(l,d,[f.value,b],!0):f.value,s(r,b,p);return r.length=b,r}},function(t,e,r){var n=r(371),i=r(376),o=r(416),a=r(375),u=function(t){return function(e,r,u,s){n(r);var c=i(e),f=o(c),l=a(c.length),h=t?l-1:0,p=t?-1:1;if(u<2)for(;;){if(h in f){s=f[h],h+=p;break}if(h+=p,t?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:l>h;h+=p)h in f&&(s=r(s,f[h],h,c));return s}};t.exports={left:u(!1),right:u(!0)}},function(t,e,r){var n=r(364),i=r(458);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){throw i(t),e}}},function(t,e,r){"use strict";var n=r(370).f,i=r(389),o=r(467),a=r(385),u=r(410),s=r(388),c=r(413),f=r(468),l=r(367),h=r(455).fastKey,p=r(386),v=p.set,y=p.getterFor;t.exports={getConstructor:function(t,e,r,c){var f=t(function(t,n){u(t,f,e),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),l||(t.size=0),void 0!=n&&s(n,t[c],{that:t,AS_ENTRIES:r})}),p=y(e),g=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),l?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(f.prototype,{clear:function(){for(var t=this,e=p(t),r=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete r[n.index],n=n.next;e.first=e.last=void 0,l?e.size=0:t.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),l?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(f.prototype,r?{get:function(t){var e=d(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),l&&n(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,r){var n=e+" Iterator",i=y(e),o=y(n);c(t,e,function(t,e){v(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),f(e)}}},function(t,e,r){"use strict";var n=r(358),i=r(361),o=r(455),a=r(360),u=r(369),s=r(388),c=r(410),f=r(366),l=r(392),h=r(370).f,p=r(379).forEach,v=r(367),y=r(386),g=y.set,d=y.getterFor;t.exports=function(t,e,r){var y,m=-1!==t.indexOf("Map"),x=-1!==t.indexOf("Weak"),b=m?"set":"add",w=i[t],S=w&&w.prototype,A={};if(v&&"function"==typeof w&&(x||S.forEach&&!a(function(){(new w).entries().next()}))){y=e(function(e,r){g(c(e,y,t),{type:t,collection:new w}),void 0!=r&&s(r,e[b],{that:e,AS_ENTRIES:m})});var k=d(t);p(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(t){var e="add"==t||"set"==t;t in S&&(!x||"clear"!=t)&&u(y.prototype,t,function(r,n){var i=k(this).collection;if(!e&&x&&!f(r))return"get"==t&&void 0;var o=i[t](0===r?0:r,n);return e?this:o})}),x||h(y.prototype,"size",{configurable:!0,get:function(){return k(this).collection.size}})}else y=r.getConstructor(e,t,m,b),o.REQUIRED=!0;return l(y,t,!1,!0),A[t]=y,n({global:!0,forced:!0},A),x||r.setStrong(y,t,m),y}},function(t,e,r){"use strict";var n=r(459).IteratorPrototype,i=r(389),o=r(384),a=r(392),u=r(381),s=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),u[c]=s,t}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,r){var n=r(360);t.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,e,r){var n=r(364),i=r(402);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return n(e.call(t))}},function(t,e,r){var n=r(361);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},function(t,e,r){var n=r(383),i=r(362),o=r(381),a=i("iterator");t.exports=function(t){var e=Object(t);return void 0!==e[a]||"@@iterator"in e||o.hasOwnProperty(n(e))}},function(t,e,r){var n=r(366),i=r(394),o=r(362),a=o("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},function(t,e,r){var n,i,o,a,u,s,c,f,l=r(361),h=r(377).f,p=r(470).set,v=r(449),y=r(400),g=l.MutationObserver||l.WebKitMutationObserver,d=l.document,m=l.process,x=l.Promise,b=h(l,"queueMicrotask"),w=b&&b.value;w||(n=function(){var t,e;for(y&&(t=m.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()},!v&&!y&&g&&d?(u=!0,s=d.createTextNode(""),new g(n).observe(s,{characterData:!0}),a=function(){s.data=u=!u}):x&&x.resolve?(c=x.resolve(void 0),f=c.then,a=function(){f.call(c,n)}):a=y?function(){m.nextTick(n)}:function(){p.call(l,n)}),t.exports=w||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},function(t,e,r){var n=r(361),i=r(454),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},function(t,e,r){var n=r(361),i=r(423).trim,o=r(407),a=n.parseFloat,u=1/a(o+"-0")!=-1/0;t.exports=u?function(t){var e=i(String(t)),r=a(e);return 0===r&&"-"==e.charAt(0)?-0:r}:a},function(t,e,r){var n=r(361),i=r(423).trim,o=r(407),a=n.parseInt,u=/^[+-]?0[Xx]/,s=8!==a(o+"08")||22!==a(o+"0x16");t.exports=s?function(t,e){var r=i(String(t));return a(r,e>>>0||(u.test(r)?16:10))}:a},function(t,e,r){var n=r(374),i=r(418).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?u(t):i(n(t))}},function(t,e,r){"use strict";var n=r(426),i=r(383);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,r){var n=r(372),i=r(418),o=r(463),a=r(364);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?e.concat(r(t)):e}},function(t,e,r){var n=r(361),i=r(369);t.exports=function(t,e){try{i(n,t,e)}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(425),i=r(391),o=function(t){return function(e,r){var o,a,u=String(i(e)),s=n(r),c=u.length;return s<0||s>=c?t?"":void 0:(o=u.charCodeAt(s),o<55296||o>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):o:t?u.slice(s,s+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e,r){var n=r(360),i=r(407),o="
";t.exports=function(t){return n(function(){return!!i[t]()||o[t]()!=o||i[t].name!==t})}},function(t,e,r){"use strict";var n=r(358),i=r(379).every,o=r(393),a=r(373),u=o("every"),s=a("every");n({target:"Array",proto:!0,forced:!u||!s},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(358),i=r(605),o=r(409);n({target:"Array",proto:!0},{fill:i}),o("fill")},function(t,e,r){"use strict";var n=r(358),i=r(379).filter,o=r(398),a=r(373),u=o("filter"),s=a("filter");n({target:"Array",proto:!0,forced:!u||!s},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(358),i=r(606);n({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(t,e,r){var n=r(358),i=r(607);n({target:"Array",stat:!0,forced:!r(447)(function(t){Array.from(t)})},{from:i})},function(t,e,r){"use strict";var n=r(358),i=r(411).includes,o=r(409);n({target:"Array",proto:!0,forced:!r(373)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,r){"use strict";var n=r(358),i=r(411).indexOf,o=r(393),a=r(373),u=[].indexOf,s=!!u&&1/[1].indexOf(1,-0)<0,c=o("indexOf"),f=a("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:s||!c||!f},{indexOf:function(t){return s?u.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){r(358)({target:"Array",stat:!0},{isArray:r(387)})},function(t,e,r){"use strict";var n=r(358),i=r(379).map,o=r(398),a=r(373),u=o("map"),s=a("map");n({target:"Array",proto:!0,forced:!u||!s},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(358),i=r(608).left,o=r(393),a=r(373),u=r(401),s=r(400),c=o("reduce"),f=a("reduce",{1:0}),l=!s&&u>79&&u<83;n({target:"Array",proto:!0,forced:!c||!f||l},{reduce:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(358),i=r(387),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)}})},function(t,e,r){"use strict";var n=r(358),i=r(366),o=r(387),a=r(424),u=r(375),s=r(374),c=r(399),f=r(362),l=r(398),h=r(373),p=l("slice"),v=h("slice",{ACCESSORS:!0,0:0,1:2}),y=f("species"),g=[].slice,d=Math.max;n({target:"Array",proto:!0,forced:!p||!v},{slice:function(t,e){var r,n,f,l=s(this),h=u(l.length),p=a(t,h),v=a(void 0===e?h:e,h);if(o(l)&&(r=l.constructor,"function"!=typeof r||r!==Array&&!o(r.prototype)?i(r)&&null===(r=r[y])&&(r=void 0):r=void 0,r===Array||void 0===r))return g.call(l,p,v);for(n=new(void 0===r?Array:r)(d(v-p,0)),f=0;p<v;p++,f++)p in l&&c(n,f,l[p]);return n.length=f,n}})},function(t,e,r){"use strict";var n=r(358),i=r(379).some,o=r(393),a=r(373),u=o("some"),s=a("some");n({target:"Array",proto:!0,forced:!u||!s},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){r(358)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(t,e,r){r(358)({target:"Function",proto:!0},{bind:r(451)})},function(t,e,r){var n=r(361);r(392)(n.JSON,"JSON",!0)},function(t,e,r){"use strict";var n=r(611),i=r(610);t.exports=n("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},i)},function(t,e){},function(t,e,r){r(358)({target:"Object",stat:!0,sham:!r(367)},{create:r(389)})},function(t,e,r){var n=r(358),i=r(367);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:r(462)})},function(t,e,r){var n=r(358),i=r(367);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:r(370).f})},function(t,e,r){var n=r(358),i=r(360),o=r(374),a=r(377).f,u=r(367),s=i(function(){a(1)});n({target:"Object",stat:!0,forced:!u||s,sham:!u},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},function(t,e,r){var n=r(358),i=r(367),o=r(625),a=r(374),u=r(377),s=r(399);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=a(t),i=u.f,c=o(n),f={},l=0;c.length>l;)void 0!==(r=i(n,e=c[l++]))&&s(f,e,r);return f}})},function(t,e,r){var n=r(358),i=r(360),o=r(376),a=r(390),u=r(412);n({target:"Object",stat:!0,forced:i(function(){a(1)}),sham:!u},{getPrototypeOf:function(t){return a(o(t))}})},function(t,e,r){var n=r(358),i=r(376),o=r(419);n({target:"Object",stat:!0,forced:r(360)(function(){o(1)})},{keys:function(t){return o(i(t))}})},function(t,e,r){r(358)({target:"Object",stat:!0},{setPrototypeOf:r(420)})},function(t,e,r){var n=r(358),i=r(621);n({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(t,e,r){var n=r(358),i=r(622);n({global:!0,forced:parseInt!=i},{parseInt:i})},function(t,e,r){"use strict";var n=r(358),i=r(380),o=r(460),a=r(360),u=r(372),s=r(469),c=r(466),f=r(397);n({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=s(this,u("Promise")),r="function"==typeof t;return this.then(r?function(r){return c(e,t()).then(function(){return r})}:t,r?function(r){return c(e,t()).then(function(){throw r})}:t)}}),i||"function"!=typeof o||o.prototype.finally||f(o.prototype,"finally",u("Promise").prototype.finally)},function(t,e,r){"use strict";var n,i,o,a,u=r(358),s=r(380),c=r(361),f=r(372),l=r(460),h=r(397),p=r(467),v=r(392),y=r(468),g=r(366),d=r(371),m=r(410),x=r(454),b=r(388),w=r(447),S=r(469),A=r(470).set,k=r(619),T=r(466),O=r(616),P=r(396),E=r(403),C=r(386),M=r(457),N=r(362),R=r(400),_=r(401),V=N("species"),D="Promise",L=C.get,I=C.set,j=C.getterFor(D),z=l,F=c.TypeError,B=c.document,U=c.process,H=f("fetch"),X=P.f,Y=X,q=!!(B&&B.createEvent&&c.dispatchEvent),G="function"==typeof PromiseRejectionEvent,Q=M(D,function(){if(x(z)===String(z)){if(66===_)return!0;if(!R&&!G)return!0}if(s&&!z.prototype.finally)return!0;if(_>=51&&/native code/.test(z))return!1;var t=z.resolve(1),e=function(t){t(function(){},function(){})},r=t.constructor={};return r[V]=e,!(t.then(function(){})instanceof e)}),W=Q||!w(function(t){z.all(t).catch(function(){})}),$=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Z=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;k(function(){for(var n=t.value,i=1==t.state,o=0;r.length>o;){var a,u,s,c=r[o++],f=i?c.ok:c.fail,l=c.resolve,h=c.reject,p=c.domain;try{f?(i||(2===t.rejection&&et(t),t.rejection=1),!0===f?a=n:(p&&p.enter(),a=f(n),p&&(p.exit(),s=!0)),a===c.promise?h(F("Promise-chain cycle")):(u=$(a))?u.call(a,l,h):l(a)):h(n)}catch(t){p&&!s&&p.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&J(t)})}},K=function(t,e,r){var n,i;q?(n=B.createEvent("Event"),n.promise=e,n.reason=r,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:r},!G&&(i=c["on"+t])?i(n):"unhandledrejection"===t&&O("Unhandled promise rejection",r)},J=function(t){A.call(c,function(){var e,r=t.facade,n=t.value,i=tt(t);if(i&&(e=E(function(){R?U.emit("unhandledRejection",n,r):K("unhandledrejection",r,n)}),t.rejection=R||tt(t)?2:1,e.error))throw e.value})},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t){A.call(c,function(){var e=t.facade;R?U.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)})},rt=function(t,e,r){return function(n){t(e,n,r)}},nt=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Z(t,!0))},it=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw F("Promise can't be resolved itself");var n=$(e);n?k(function(){var r={done:!1};try{n.call(e,rt(it,r,t),rt(nt,r,t))}catch(e){nt(r,e,t)}}):(t.value=e,t.state=1,Z(t,!1))}catch(e){nt({done:!1},e,t)}}};Q&&(z=function(t){m(this,z,D),d(t),n.call(this);var e=L(this);try{t(rt(it,e),rt(nt,e))}catch(t){nt(e,t)}},n=function(t){I(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})},n.prototype=p(z.prototype,{then:function(t,e){var r=j(this),n=X(S(this,z));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=R?U.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&Z(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n,e=L(t);this.promise=t,this.resolve=rt(it,e),this.reject=rt(nt,e)},P.f=X=function(t){return t===z||t===o?new i(t):Y(t)},s||"function"!=typeof l||(a=l.prototype.then,h(l.prototype,"then",function(t,e){var r=this;return new z(function(t,e){a.call(r,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof H&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return T(z,H.apply(c,arguments))}}))),u({global:!0,wrap:!0,forced:Q},{Promise:z}),v(z,D,!1,!0),y(D),o=f(D),u({target:D,stat:!0,forced:Q},{reject:function(t){var e=X(this);return e.reject.call(void 0,t),e.promise}}),u({target:D,stat:!0,forced:s||Q},{resolve:function(t){return T(s&&this===o?z:this,t)}}),u({target:D,stat:!0,forced:W},{all:function(t){var e=this,r=X(e),n=r.resolve,i=r.reject,o=E(function(){var r=d(e.resolve),o=[],a=0,u=1;b(t,function(t){var s=a++,c=!1;o.push(void 0),u++,r.call(e,t).then(function(t){c||(c=!0,o[s]=t,--u||n(o))},i)}),--u||n(o)});return o.error&&i(o.value),r.promise},race:function(t){var e=this,r=X(e),n=r.reject,i=E(function(){var i=d(e.resolve);b(t,function(t){i.call(e,t).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}})},function(t,e,r){var n=r(358),i=r(372),o=r(371),a=r(364),u=r(360),s=i("Reflect","apply"),c=Function.apply;n({target:"Reflect",stat:!0,forced:!u(function(){s(function(){})})},{apply:function(t,e,r){return o(t),a(r),s?s(t,e,r):c.call(t,e,r)}})},function(t,e,r){var n=r(358),i=r(372),o=r(371),a=r(364),u=r(366),s=r(389),c=r(451),f=r(360),l=i("Reflect","construct"),h=f(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),p=!f(function(){l(function(){})}),v=h||p;n({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(p&&!h)return l(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,f=s(u(i)?i:Object.prototype),v=Function.apply.call(t,f,e);return u(v)?v:f}})},function(t,e,r){var n=r(358),i=r(364),o=r(377).f;n({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=o(i(t),e);return!(r&&!r.configurable)&&delete t[e]}})},function(t,e,r){var n=r(358),i=r(364),o=r(390);n({target:"Reflect",stat:!0,sham:!r(412)},{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,r){function n(t,e){var r,i,f=arguments.length<3?t:arguments[2];return a(t)===f?t[e]:(r=s.f(t,e))?u(r,"value")?r.value:void 0===r.get?void 0:r.get.call(f):o(i=c(t))?n(i,e,f):void 0}var i=r(358),o=r(366),a=r(364),u=r(368),s=r(377),c=r(390);i({target:"Reflect",stat:!0},{get:n})},function(t,e){},function(t,e,r){"use strict";var n=r(358),i=r(461),o=r(391);n({target:"String",proto:!0,forced:!r(448)("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(358),i=r(377).f,o=r(375),a=r(461),u=r(391),s=r(448),c=r(380),f="".startsWith,l=Math.min,h=s("startsWith");n({target:"String",proto:!0,forced:!(!c&&!h&&!!function(){var t=i(String.prototype,"startsWith");return t&&!t.writable}()||h)},{startsWith:function(t){var e=String(u(this));a(t);var r=o(l(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}})},function(t,e,r){"use strict";var n=r(358),i=r(423).trim;n({target:"String",proto:!0,forced:r(628)("trim")},{trim:function(){return i(this)}})},function(t,e,r){r(363)("asyncIterator")},function(t,e){},function(t,e,r){r(363)("hasInstance")},function(t,e,r){r(363)("isConcatSpreadable")},function(t,e,r){r(363)("matchAll")},function(t,e,r){r(363)("match")},function(t,e,r){r(363)("replace")},function(t,e,r){r(363)("search")},function(t,e,r){r(363)("species")},function(t,e,r){r(363)("split")},function(t,e,r){r(363)("toPrimitive")},function(t,e,r){r(363)("toStringTag")},function(t,e,r){r(363)("unscopables")},function(t,e,r){r(472)},function(t,e,r){r(475)},function(t,e,r){r(476)},function(t,e,r){"use strict";var n=r(358),i=r(396),o=r(403);n({target:"Promise",stat:!0},{try:function(t){var e=i.f(this),r=o(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}})},function(t,e,r){r(363)("asyncDispose")},function(t,e,r){r(363)("dispose")},function(t,e,r){r(363)("observable")},function(t,e,r){r(363)("patternMatch")},function(t,e,r){r(363)("replaceAll")},function(t,e,r){var n=r(439);t.exports=n},function(t,e,r){var n=r(440);t.exports=n},function(t,e,r){var n=r(546);t.exports=n},function(t,e,r){var n=r(554);t.exports=n},function(t,e,r){var n=r(555);t.exports=n},function(t,e,r){var n=r(557);t.exports=n},function(t,e,r){var n=r(558);t.exports=n},function(t,e,r){var n=r(559);t.exports=n},function(t,e,r){var n=r(560);t.exports=n},function(t,e,r){var n=r(561);t.exports=n},function(t,e,r){r(378);var n=r(692),i=r(383),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===o||t instanceof Array&&e===o.forEach||a.hasOwnProperty(i(t))?n:e}},function(t,e,r){var n=r(562);t.exports=n},function(t,e,r){var n=r(563);t.exports=n},function(t,e,r){var n=r(564);t.exports=n},function(t,e,r){var n=r(565);t.exports=n},function(t,e,r){var n=r(566);t.exports=n},function(t,e,r){var n=r(441);t.exports=n},function(t,e,r){var n=r(567);t.exports=n},function(t,e,r){var n=r(568);t.exports=n},function(t,e,r){var n=r(569);t.exports=n},function(t,e,r){r(378);var n=r(693),i=r(383),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.values;return t===o||t instanceof Array&&e===o.values||a.hasOwnProperty(i(t))?n:e}},function(t,e,r){var n=r(570);t.exports=n},function(t,e,r){var n=r(572);t.exports=n},function(t,e,r){var n=r(442);t.exports=n},function(t,e,r){var n=r(443);t.exports=n},function(t,e,r){var n=r(573);t.exports=n},function(t,e,r){var n=r(574);t.exports=n},function(t,e,r){var n=r(576);t.exports=n},function(t,e,r){var n=r(578);t.exports=n},function(t,e,r){var n=r(579);t.exports=n},function(t,e,r){var n=r(444);t.exports=n},function(t,e,r){var n=r(580);t.exports=n},function(t,e,r){var n=r(581);t.exports=n},function(t,e,r){var n=r(582);t.exports=n},function(t,e,r){var n=r(583);t.exports=n},function(t,e,r){var n=r(445);t.exports=n},function(t,e,r){(function(e){(function(){var r,n,i,o,a,u;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:void 0!==e&&null!==e&&e.hrtime?(t.exports=function(){return(r()-a)/1e6},n=e.hrtime,r=function(){var t;return t=n(),1e9*t[0]+t[1]},o=r(),u=1e9*e.uptime(),a=o-u):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(e,r(479))},function(t,e,r){(function(e){for(var n=r(726),i="undefined"==typeof window?e:window,o=["moz","webkit"],a="AnimationFrame",u=i["request"+a],s=i["cancel"+a]||i["cancelRequest"+a],c=0;!u&&c<o.length;c++)u=i[o[c]+"Request"+a],s=i[o[c]+"Cancel"+a]||i[o[c]+"CancelRequest"+a];if(!u||!s){var f=0,l=0,h=[];u=function(t){if(0===h.length){var e=n(),r=Math.max(0,1e3/60-(e-f));f=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(f)}catch(t){setTimeout(function(){throw t},0)}},Math.round(r))}return h.push({handle:++l,callback:t,cancelled:!1}),l},s=function(t){for(var e=0;e<h.length;e++)h[e].handle===t&&(h[e].cancelled=!0)}}t.exports=function(t){return u.call(i,t)},t.exports.cancel=function(){s.apply(i,arguments)},t.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=u,t.cancelAnimationFrame=s}}).call(e,r(52))},function(t,e){t.exports=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.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 u=o(a);this.r=u[0],this.g=u[1],this.b=u[2],u.length>3&&(this.alpha=u[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 u=document.createElement("ul");u.setAttribute("id","rgbcolor-examples");for(var n=0;n<t.length;n++)try{var s=document.createElement("li"),c=new RGBColor(t[n]),f=document.createElement("div");f.style.cssText="margin: 3px; border: 1px solid black; background:"+c.toHex()+"; color:"+c.toHex(),f.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+t[n]+" -> "+c.toRGB()+" -> "+c.toHex());s.appendChild(f),s.appendChild(l),u.appendChild(s)}catch(t){}return u}}},function(t,e,r){"use strict";function n(t){"@babel/helpers - typeof";return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,r,i,o){if("string"==typeof t&&(t=document.getElementById(t)),!(t&&"object"===n(t)&&"getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var a=t.getContext("2d");try{return a.getImageData(e,r,i,o)}catch(t){throw new Error("unable to access image data: "+t)}}function a(t,e,r,n,i,a){if(!(isNaN(a)||a<1)){a|=0;var s=o(t,e,r,n,i);s=u(s,e,r,n,i,a),t.getContext("2d").putImageData(s,e,r)}}function u(t,e,r,n,i,o){for(var a,u=t.data,l=2*o+1,h=n-1,p=i-1,v=o+1,y=v*(v+1)/2,g=new f,d=g,m=1;m<l;m++)d=d.next=new f,m===v&&(a=d);d.next=g;for(var x=null,b=null,w=0,S=0,A=s[o],k=c[o],T=0;T<i;T++){d=g;for(var O=u[S],P=u[S+1],E=u[S+2],C=u[S+3],M=0;M<v;M++)d.r=O,d.g=P,d.b=E,d.a=C,d=d.next;for(var N=0,R=0,_=0,V=0,D=v*O,L=v*P,I=v*E,j=v*C,z=y*O,F=y*P,B=y*E,U=y*C,H=1;H<v;H++){var X=S+((h<H?h:H)<<2),Y=u[X],q=u[X+1],G=u[X+2],Q=u[X+3],W=v-H;z+=(d.r=Y)*W,F+=(d.g=q)*W,B+=(d.b=G)*W,U+=(d.a=Q)*W,N+=Y,R+=q,_+=G,V+=Q,d=d.next}x=g,b=a;for(var $=0;$<n;$++){var Z=U*A>>k;if(u[S+3]=Z,0!==Z){var K=255/Z;u[S]=(z*A>>k)*K,u[S+1]=(F*A>>k)*K,u[S+2]=(B*A>>k)*K}else u[S]=u[S+1]=u[S+2]=0;z-=D,F-=L,B-=I,U-=j,D-=x.r,L-=x.g,I-=x.b,j-=x.a;var J=$+o+1;J=w+(J<h?J:h)<<2,N+=x.r=u[J],R+=x.g=u[J+1],_+=x.b=u[J+2],V+=x.a=u[J+3],z+=N,F+=R,B+=_,U+=V,x=x.next;var tt=b,et=tt.r,rt=tt.g,nt=tt.b,it=tt.a;D+=et,L+=rt,I+=nt,j+=it,N-=et,R-=rt,_-=nt,V-=it,b=b.next,S+=4}w+=n}for(var ot=0;ot<n;ot++){S=ot<<2;var at=u[S],ut=u[S+1],st=u[S+2],ct=u[S+3],ft=v*at,lt=v*ut,ht=v*st,pt=v*ct,vt=y*at,yt=y*ut,gt=y*st,dt=y*ct;d=g;for(var mt=0;mt<v;mt++)d.r=at,d.g=ut,d.b=st,d.a=ct,d=d.next;for(var xt=n,bt=0,wt=0,St=0,At=0,kt=1;kt<=o;kt++){S=xt+ot<<2;var Tt=v-kt;vt+=(d.r=at=u[S])*Tt,yt+=(d.g=ut=u[S+1])*Tt,gt+=(d.b=st=u[S+2])*Tt,dt+=(d.a=ct=u[S+3])*Tt,At+=at,bt+=ut,wt+=st,St+=ct,d=d.next,kt<p&&(xt+=n)}S=ot,x=g,b=a;for(var Ot=0;Ot<i;Ot++){var Pt=S<<2;u[Pt+3]=ct=dt*A>>k,ct>0?(ct=255/ct,u[Pt]=(vt*A>>k)*ct,u[Pt+1]=(yt*A>>k)*ct,u[Pt+2]=(gt*A>>k)*ct):u[Pt]=u[Pt+1]=u[Pt+2]=0,vt-=ft,yt-=lt,gt-=ht,dt-=pt,ft-=x.r,lt-=x.g,ht-=x.b,pt-=x.a,Pt=ot+((Pt=Ot+v)<p?Pt:p)*n<<2,vt+=At+=x.r=u[Pt],yt+=bt+=x.g=u[Pt+1],gt+=wt+=x.b=u[Pt+2],dt+=St+=x.a=u[Pt+3],x=x.next,ft+=at=b.r,lt+=ut=b.g,ht+=st=b.b,pt+=ct=b.a,At-=at,bt-=ut,wt-=st,St-=ct,b=b.next,S+=n}}return t}r.d(e,"a",function(){return a});var s=[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],c=[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],f=function t(){i(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}},function(t,e,r){"use strict";function n(t,e){function r(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function i(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var n=t[r];if(n.type===S.CLOSE_PATH)e+="z";else if(n.type===S.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===S.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===S.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===S.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===S.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===S.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===S.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===S.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==S.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e}function o(t,e){var r=t[0],n=t[1];return[r*Math.cos(e)-n*Math.sin(e),r*Math.sin(e)+n*Math.cos(e)]}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}function u(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var n=t.rX,i=t.rY,a=t.x,u=t.y;n=Math.abs(t.rX),i=Math.abs(t.rY);var s=o([(e-a)/2,(r-u)/2],-t.xRot/180*y),c=s[0],f=s[1],l=Math.pow(c,2)/Math.pow(n,2)+Math.pow(f,2)/Math.pow(i,2);1<l&&(n*=Math.sqrt(l),i*=Math.sqrt(l)),t.rX=n,t.rY=i;var h=Math.pow(n,2)*Math.pow(f,2)+Math.pow(i,2)*Math.pow(c,2),p=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-h)/h)),v=n*f/i*p,g=-i*c/n*p,d=o([v,g],t.xRot/180*y);t.cX=d[0]+(e+a)/2,t.cY=d[1]+(r+u)/2,t.phi1=Math.atan2((f-g)/i,(c-v)/n),t.phi2=Math.atan2((-f-g)/i,(-c-v)/n),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*y),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*y),t.phi1*=180/y,t.phi2*=180/y}function s(t,e,r){a(t,e,r);var n=t*t+e*e-r*r;if(0>n)return[];if(0===n)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var i=Math.sqrt(n);return[[(t*r+e*i)/(t*t+e*e),(e*r-t*i)/(t*t+e*e)],[(t*r-e*i)/(t*t+e*e),(e*r+t*i)/(t*t+e*e)]]}function c(t,e,r){return(1-r)*t+r*e}function f(t,e,r,n){return t+Math.cos(n/180*y)*e+Math.sin(n/180*y)*r}function l(t,e,r,n){var i=e-t,o=r-e,a=3*i+3*(n-r)-6*o,u=6*(o-i),s=3*i;return Math.abs(a)<1e-6?[-s/u]:function(t,e,r){void 0===r&&(r=1e-6);var n=t*t/4-e;if(n<-r)return[];if(n<=r)return[-t/2];var i=Math.sqrt(n);return[-t/2-i,-t/2+i]}(u/a,s/a,1e-6)}function h(t,e,r,n,i){var o=1-i;return t*(o*o*o)+e*(3*o*o*i)+r*(3*o*i*i)+n*(i*i*i)}r.d(e,"a",function(){return S});/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var p,v=function(t,e){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},y=Math.PI,g=Math.PI/180;!function(t){function e(){return i(function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t})}function r(){var t=NaN,e=NaN,r=NaN,n=NaN;return i(function(i,o,a){return i.type&S.SMOOTH_CURVE_TO&&(i.type=S.CURVE_TO,t=isNaN(t)?o:t,e=isNaN(e)?a:e,i.x1=i.relative?o-t:2*o-t,i.y1=i.relative?a-e:2*a-e),i.type&S.CURVE_TO?(t=i.relative?o+i.x2:i.x2,e=i.relative?a+i.y2:i.y2):(t=NaN,e=NaN),i.type&S.SMOOTH_QUAD_TO&&(i.type=S.QUAD_TO,r=isNaN(r)?o:r,n=isNaN(n)?a:n,i.x1=i.relative?o-r:2*o-r,i.y1=i.relative?a-n:2*a-n),i.type&S.QUAD_TO?(r=i.relative?o+i.x1:i.x1,n=i.relative?a+i.y1:i.y1):(r=NaN,n=NaN),i})}function n(){var t=NaN,e=NaN;return i(function(r,n,i){if(r.type&S.SMOOTH_QUAD_TO&&(r.type=S.QUAD_TO,t=isNaN(t)?n:t,e=isNaN(e)?i:e,r.x1=r.relative?n-t:2*n-t,r.y1=r.relative?i-e:2*i-e),r.type&S.QUAD_TO){t=r.relative?n+r.x1:r.x1,e=r.relative?i+r.y1:r.y1;var o=r.x1,a=r.y1;r.type=S.CURVE_TO,r.x1=((r.relative?0:n)+2*o)/3,r.y1=((r.relative?0:i)+2*a)/3,r.x2=(r.x+2*o)/3,r.y2=(r.y+2*a)/3}else t=NaN,e=NaN;return r})}function i(t){var e=0,r=0,n=NaN,i=NaN;return function(o){if(isNaN(n)&&!(o.type&S.MOVE_TO))throw new Error("path must start with moveto");var a=t(o,e,r,n,i);return o.type&S.CLOSE_PATH&&(e=n,r=i),void 0!==o.x&&(e=o.relative?e+o.x:o.x),void 0!==o.y&&(r=o.relative?r+o.y:o.y),o.type&S.MOVE_TO&&(n=e,i=r),a}}function p(t,e,r,n,o,u){return a(t,e,r,n,o,u),i(function(i,a,s,c){function f(t){return t*t}var l=i.x1,h=i.x2,p=i.relative&&!isNaN(c),v=void 0!==i.x?i.x:p?0:a,y=void 0!==i.y?i.y:p?0:s;i.type&S.HORIZ_LINE_TO&&0!==e&&(i.type=S.LINE_TO,i.y=i.relative?0:s),i.type&S.VERT_LINE_TO&&0!==r&&(i.type=S.LINE_TO,i.x=i.relative?0:a),void 0!==i.x&&(i.x=i.x*t+y*r+(p?0:o)),void 0!==i.y&&(i.y=v*e+i.y*n+(p?0:u)),void 0!==i.x1&&(i.x1=i.x1*t+i.y1*r+(p?0:o)),void 0!==i.y1&&(i.y1=l*e+i.y1*n+(p?0:u)),void 0!==i.x2&&(i.x2=i.x2*t+i.y2*r+(p?0:o)),void 0!==i.y2&&(i.y2=h*e+i.y2*n+(p?0:u));var g=t*n-e*r;if(void 0!==i.xRot&&(1!==t||0!==e||0!==r||1!==n))if(0===g)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=S.LINE_TO;else{var d=i.xRot*Math.PI/180,m=Math.sin(d),x=Math.cos(d),b=1/f(i.rX),w=1/f(i.rY),A=f(x)*b+f(m)*w,k=2*m*x*(b-w),T=f(m)*b+f(x)*w,O=A*n*n-k*e*n+T*e*e,P=k*(t*n+e*r)-2*(A*r*n+T*t*e),E=A*r*r-k*t*r+T*t*t,C=(Math.atan2(P,O-E)+Math.PI)%Math.PI/2,M=Math.sin(C),N=Math.cos(C);i.rX=Math.abs(g)/Math.sqrt(O*f(N)+P*M*N+E*f(M)),i.rY=Math.abs(g)/Math.sqrt(O*f(M)-P*M*N+E*f(N)),i.xRot=180*C/Math.PI}return void 0!==i.sweepFlag&&0>g&&(i.sweepFlag=+!i.sweepFlag),i})}function v(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),a(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return i(function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t})},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),i(function(n,i,o,a,u){if(isNaN(a)&&!(n.type&S.MOVE_TO))throw new Error("path must start with moveto");return e&&n.type&S.HORIZ_LINE_TO&&(n.type=S.LINE_TO,n.y=n.relative?0:o),r&&n.type&S.VERT_LINE_TO&&(n.type=S.LINE_TO,n.x=n.relative?0:i),t&&n.type&S.CLOSE_PATH&&(n.type=S.LINE_TO,n.x=n.relative?a-i:a,n.y=n.relative?u-o:u),n.type&S.ARC&&(0===n.rX||0===n.rY)&&(n.type=S.LINE_TO,delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag),n})},t.NORMALIZE_ST=r,t.QT_TO_C=n,t.INFO=i,t.SANITIZE=function(t){void 0===t&&(t=0),a(t);var e=NaN,r=NaN,n=NaN,o=NaN;return i(function(i,a,u,s,c){var f=Math.abs,l=!1,h=0,p=0;if(i.type&S.SMOOTH_CURVE_TO&&(h=isNaN(e)?0:a-e,p=isNaN(r)?0:u-r),i.type&(S.CURVE_TO|S.SMOOTH_CURVE_TO)?(e=i.relative?a+i.x2:i.x2,r=i.relative?u+i.y2:i.y2):(e=NaN,r=NaN),i.type&S.SMOOTH_QUAD_TO?(n=isNaN(n)?a:2*a-n,o=isNaN(o)?u:2*u-o):i.type&S.QUAD_TO?(n=i.relative?a+i.x1:i.x1,o=i.relative?u+i.y1:i.y2):(n=NaN,o=NaN),i.type&S.LINE_COMMANDS||i.type&S.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&S.CURVE_TO||i.type&S.SMOOTH_CURVE_TO||i.type&S.QUAD_TO||i.type&S.SMOOTH_QUAD_TO){var v=void 0===i.x?0:i.relative?i.x:i.x-a,y=void 0===i.y?0:i.relative?i.y:i.y-u;h=isNaN(n)?void 0===i.x1?h:i.relative?i.x:i.x1-a:n-a,p=isNaN(o)?void 0===i.y1?p:i.relative?i.y:i.y1-u:o-u;var g=void 0===i.x2?0:i.relative?i.x:i.x2-a,d=void 0===i.y2?0:i.relative?i.y:i.y2-u;f(v)<=t&&f(y)<=t&&f(h)<=t&&f(p)<=t&&f(g)<=t&&f(d)<=t&&(l=!0)}return i.type&S.CLOSE_PATH&&f(a-s)<=t&&f(u-c)<=t&&(l=!0),l?[]:i})},t.MATRIX=p,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),a(t,e,r);var n=Math.sin(t),i=Math.cos(t);return p(i,n,-n,i,e-e*i+r*n,r-e*n-r*i)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),a(t,e),p(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),a(t,e),p(t,0,0,e,0,0)},t.SKEW_X=function(t){return a(t),p(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return a(t),p(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),a(t),p(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),a(t),p(1,0,0,-1,0,t)},t.A_TO_C=function(){return i(function(t,e,r){return S.ARC===t.type?function(t,e,r){var n,i,a,s;t.cX||u(t,e,r);for(var f=Math.min(t.phi1,t.phi2),l=Math.max(t.phi1,t.phi2)-f,h=Math.ceil(l/90),p=new Array(h),v=e,y=r,d=0;d<h;d++){var m=c(t.phi1,t.phi2,d/h),x=c(t.phi1,t.phi2,(d+1)/h),b=x-m,w=4/3*Math.tan(b*g/4),A=[Math.cos(m*g)-w*Math.sin(m*g),Math.sin(m*g)+w*Math.cos(m*g)],k=A[0],T=A[1],O=[Math.cos(x*g),Math.sin(x*g)],P=O[0],E=O[1],C=[P+w*Math.sin(x*g),E-w*Math.cos(x*g)],M=C[0],N=C[1];p[d]={relative:t.relative,type:S.CURVE_TO};var R=function(e,r){var n=o([e*t.rX,r*t.rY],t.xRot),i=n[0],a=n[1];return[t.cX+i,t.cY+a]};n=R(k,T),p[d].x1=n[0],p[d].y1=n[1],i=R(M,N),p[d].x2=i[0],p[d].y2=i[1],a=R(P,E),p[d].x=a[0],p[d].y=a[1],t.relative&&(p[d].x1-=v,p[d].y1-=y,p[d].x2-=v,p[d].y2-=y,p[d].x-=v,p[d].y-=y),v=(s=[p[d].x,p[d].y])[0],y=s[1]}return p}(t,t.relative?0:e,t.relative?0:r):t})},t.ANNOTATE_ARCS=function(){return i(function(t,e,r){return t.relative&&(e=0,r=0),S.ARC===t.type&&u(t,e,r),t})},t.CLONE=v,t.CALCULATE_BOUNDS=function(){var t=function(t){var e={};for(var r in t)e[r]=t[r];return e},o=e(),a=n(),c=r(),p=i(function(e,r,n){function i(t){t>p.maxX&&(p.maxX=t),t<p.minX&&(p.minX=t)}function v(t){t>p.maxY&&(p.maxY=t),t<p.minY&&(p.minY=t)}var y=c(a(o(t(e))));if(y.type&S.DRAWING_COMMANDS&&(i(r),v(n)),y.type&S.HORIZ_LINE_TO&&i(y.x),y.type&S.VERT_LINE_TO&&v(y.y),y.type&S.LINE_TO&&(i(y.x),v(y.y)),y.type&S.CURVE_TO){i(y.x),v(y.y);for(var g=0,d=l(r,y.x1,y.x2,y.x);g<d.length;g++)0<(V=d[g])&&1>V&&i(h(r,y.x1,y.x2,y.x,V));for(var m=0,x=l(n,y.y1,y.y2,y.y);m<x.length;m++)0<(V=x[m])&&1>V&&v(h(n,y.y1,y.y2,y.y,V))}if(y.type&S.ARC){i(y.x),v(y.y),u(y,r,n);for(var b=y.xRot/180*Math.PI,w=Math.cos(b)*y.rX,A=Math.sin(b)*y.rX,k=-Math.sin(b)*y.rY,T=Math.cos(b)*y.rY,O=y.phi1<y.phi2?[y.phi1,y.phi2]:-180>y.phi2?[y.phi2+360,y.phi1+360]:[y.phi2,y.phi1],P=O[0],E=O[1],C=function(t){var e=t[0],r=t[1],n=180*Math.atan2(r,e)/Math.PI;return n<P?n+360:n},M=0,N=s(k,-w,0).map(C);M<N.length;M++)(V=N[M])>P&&V<E&&i(f(y.cX,w,k,V));for(var R=0,_=s(T,-A,0).map(C);R<_.length;R++){var V;(V=_[R])>P&&V<E&&v(f(y.cY,A,T,V))}}return e});return p.minX=1/0,p.maxX=-1/0,p.minY=1/0,p.maxY=-1/0,p}}(p||(p={}));var d,m=function(){function t(){}return t.prototype.round=function(t){return this.transform(p.ROUND(t))},t.prototype.toAbs=function(){return this.transform(p.TO_ABS())},t.prototype.toRel=function(){return this.transform(p.TO_REL())},t.prototype.normalizeHVZ=function(t,e,r){return this.transform(p.NORMALIZE_HVZ(t,e,r))},t.prototype.normalizeST=function(){return this.transform(p.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(p.QT_TO_C())},t.prototype.aToC=function(){return this.transform(p.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(p.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(p.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(p.SCALE(t,e))},t.prototype.rotate=function(t,e,r){return this.transform(p.ROTATE(t,e,r))},t.prototype.matrix=function(t,e,r,n,i,o){return this.transform(p.MATRIX(t,e,r,n,i,o))},t.prototype.skewX=function(t){return this.transform(p.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(p.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(p.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(p.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(p.ANNOTATE_ARCS())},t}(),x=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},b=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},w=function(t){function e(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return n(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var n=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},i=0;i<t.length;i++){var o=t[i],a=!(this.curCommandType!==S.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),u=b(o)&&("0"===this.curNumber&&"0"===o||a);if(!b(o)||u)if("e"!==o&&"E"!==o)if("-"!==o&&"+"!==o||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==o||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var s=Number(this.curNumber);if(isNaN(s))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===S.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>s)throw new SyntaxError('Expected positive number, got "'+s+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(s),this.curArgs.length===A[this.curCommandType]&&(S.HORIZ_LINE_TO===this.curCommandType?n({type:S.HORIZ_LINE_TO,relative:this.curCommandRelative,x:s}):S.VERT_LINE_TO===this.curCommandType?n({type:S.VERT_LINE_TO,relative:this.curCommandRelative,y:s}):this.curCommandType===S.MOVE_TO||this.curCommandType===S.LINE_TO||this.curCommandType===S.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),S.MOVE_TO===this.curCommandType&&(this.curCommandType=S.LINE_TO)):this.curCommandType===S.CURVE_TO?n({type:S.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===S.SMOOTH_CURVE_TO?n({type:S.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.QUAD_TO?n({type:S.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.ARC&&n({type:S.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!x(o))if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(u)this.curNumber=o,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==o&&"Z"!==o)if("h"===o||"H"===o)this.curCommandType=S.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=S.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=S.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=S.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=S.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=S.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=S.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=S.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=S.ARC,this.curCommandRelative="a"===o}else e.push({type:S.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=o,this.curNumberHasDecimal="."===o}else this.curNumber+=o,this.curNumberHasDecimal=!0;else this.curNumber+=o;else this.curNumber+=o,this.curNumberHasExp=!0;else this.curNumber+=o,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var n=0,i=Object.getPrototypeOf(this).parse.call(this,e);n<i.length;n++){var o=i[n],a=t(o);Array.isArray(a)?r.push.apply(r,a):r.push(a)}return r}}})},e}(m),S=function(t){function e(r){var n=t.call(this)||this;return n.commands="string"==typeof r?e.parse(r):r,n}return n(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=p.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],r=0,n=this.commands;r<n.length;r++){var i=t(n[r]);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return this.commands=e,this},e.encode=function(t){return i(t)},e.parse=function(t){var e=new w,r=[];return e.parse(t,r),e.finish(r),r},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(m),A=((d={})[S.MOVE_TO]=2,d[S.LINE_TO]=2,d[S.HORIZ_LINE_TO]=1,d[S.VERT_LINE_TO]=1,d[S.CLOSE_PATH]=0,d[S.QUAD_TO]=4,d[S.SMOOTH_QUAD_TO]=2,d[S.CURVE_TO]=6,d[S.SMOOTH_CURVE_TO]=4,d[S.ARC]=7,d)}]));