jmapcloud-ng 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/public/index.js CHANGED
@@ -1 +1 @@
1
- !function(){var t,e,r,n={64922:function(t,e,r){"use strict";r.d(e,{p:function(){return o},u:function(){return n}});var n=100,o="ngIsSelectionPage"},45089:function(t,e,r){"use strict";var n=r(90930),o=r(9268),c=TypeError;t.exports=function(t){if(n(t))return t;throw c(o(t)+" is not a function")}},41449:function(t,e,r){"use strict";var n=r(41956),o=r(9268),c=TypeError;t.exports=function(t){if(n(t))return t;throw c(o(t)+" is not a constructor")}},81378:function(t,e,r){"use strict";var n=r(90930),o=String,c=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw c("Can't set "+o(t)+" as a prototype")}},78669:function(t,e,r){"use strict";var n=r(50211),o=r(44710),c=r(77826).f,u=n("unscopables"),a=Array.prototype;void 0===a[u]&&c(a,u,{configurable:!0,value:o(null)}),t.exports=function(t){a[u][t]=!0}},51855:function(t,e,r){"use strict";var n=r(95516),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw o("Incorrect invocation")}},56112:function(t,e,r){"use strict";var n=r(28759),o=String,c=TypeError;t.exports=function(t){if(n(t))return t;throw c(o(t)+" is not an object")}},56198:function(t,e,r){"use strict";var n=r(64088),o=r(7740),c=r(82871),createMethod=function(t){return function(e,r,u){var a,s=n(e),f=c(s),p=o(u,f);if(t&&r!=r){for(;f>p;)if((a=s[p++])!=a)return!0}else for(;f>p;p++)if((t||p in s)&&s[p]===r)return t||p||0;return!t&&-1}};t.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},70745:function(t,e,r){"use strict";var n=r(78240);t.exports=n([].slice)},68939:function(t,e,r){"use strict";var n=r(50211)("iterator"),o=!1;try{var c=0,u={next:function(){return{done:!!c++}},return:function(){o=!0}};u[n]=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 c={};c[n]=function(){return{next:function(){return{done:r=!0}}}},t(c)}catch(t){}return r}},52306:function(t,e,r){"use strict";var n=r(78240),o=n({}.toString),c=n("".slice);t.exports=function(t){return c(o(t),8,-1)}},90375:function(t,e,r){"use strict";var n=r(12371),o=r(90930),c=r(52306),u=r(50211)("toStringTag"),a=Object,s="Arguments"===c(function(){return arguments}());t.exports=n?c:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),u))?r:s?c(e):"Object"===(n=c(e))&&o(e.callee)?"Arguments":n}},48474:function(t,e,r){"use strict";var n=r(49606),o=r(46095),c=r(94399),u=r(77826);t.exports=function(t,e,r){for(var a=o(e),s=u.f,f=c.f,p=0;p<a.length;p++){var l=a[p];n(t,l)||r&&n(r,l)||s(t,l,f(e,l))}}},47209:function(t,e,r){"use strict";var n=r(63677);t.exports=!n((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}))},94001:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},72585:function(t,e,r){"use strict";var n=r(25283),o=r(77826),c=r(55736);t.exports=n?function(t,e,r){return o.f(t,e,c(1,r))}:function(t,e,r){return t[e]=r,t}},55736:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},38371:function(t,e,r){"use strict";var n=r(83712),o=r(77826);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},1343:function(t,e,r){"use strict";var n=r(90930),o=r(77826),c=r(83712),u=r(79444);t.exports=function(t,e,r,a){a||(a={});var s=a.enumerable,f=void 0!==a.name?a.name:e;if(n(r)&&c(r,f,a),a.global)s?t[e]=r:u(e,r);else{try{a.unsafe?t[e]&&(s=!0):delete t[e]}catch(t){}s?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},79444:function(t,e,r){"use strict";var n=r(22086),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},25283:function(t,e,r){"use strict";var n=r(63677);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},27886:function(t){"use strict";var e="object"==typeof document&&document.all,r=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:r}},20821:function(t,e,r){"use strict";var n=r(22086),o=r(28759),c=n.document,u=o(c)&&o(c.createElement);t.exports=function(t){return u?c.createElement(t):{}}},933:function(t){"use strict";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}},73526:function(t,e,r){"use strict";var n=r(20821)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},70172:function(t,e,r){"use strict";var n=r(41767),o=r(81801);t.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},41767:function(t){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},91848:function(t,e,r){"use strict";var n=r(4999);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},84344:function(t,e,r){"use strict";var n=r(4999);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},81801:function(t,e,r){"use strict";var n=r(22086),o=r(52306);t.exports="process"===o(n.process)},54928:function(t,e,r){"use strict";var n=r(4999);t.exports=/web0s(?!.*chrome)/i.test(n)},4999:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},21448:function(t,e,r){"use strict";var n,o,c=r(22086),u=r(4999),a=c.process,s=c.Deno,f=a&&a.versions||s&&s.version,p=f&&f.v8;p&&(o=(n=p.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},58684:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},51695:function(t,e,r){"use strict";var n=r(22086),o=r(94399).f,c=r(72585),u=r(1343),a=r(79444),s=r(48474),f=r(67189);t.exports=function(t,e){var r,p,l,d,v,h=t.target,y=t.global,_=t.stat;if(r=y?n:_?n[h]||a(h,{}):(n[h]||{}).prototype)for(p in e){if(d=e[p],l=t.dontCallGetSet?(v=o(r,p))&&v.value:r[p],!f(y?p:h+(_?".":"#")+p,t.forced)&&void 0!==l){if(typeof d==typeof l)continue;s(d,l)}(t.sham||l&&l.sham)&&c(d,"sham",!0),u(r,p,d,t)}}},63677:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},82331:function(t,e,r){"use strict";r(52077);var n=r(91175),o=r(1343),c=r(84861),u=r(63677),a=r(50211),s=r(72585),f=a("species"),p=RegExp.prototype;t.exports=function(t,e,r,l){var d=a(t),v=!u((function(){var e={};return e[d]=function(){return 7},7!==""[t](e)})),h=v&&!u((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[f]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return e=!0,null},r[d](""),!e}));if(!v||!h||r){var y=n(/./[d]),_=e(d,""[t],(function(t,e,r,o,u){var a=n(t),s=e.exec;return s===c||s===p.exec?v&&!u?{done:!0,value:y(e,r,o)}:{done:!0,value:a(r,e,o)}:{done:!1}}));o(String.prototype,t,_[0]),o(p,d,_[1])}l&&s(p[d],"sham",!0)}},67258:function(t,e,r){"use strict";var n=r(86059),o=Function.prototype,c=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?u.bind(c):function(){return u.apply(c,arguments)})},18516:function(t,e,r){"use strict";var n=r(91175),o=r(45089),c=r(86059),u=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:c?u(t,e):function(){return t.apply(e,arguments)}}},86059:function(t,e,r){"use strict";var n=r(63677);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},59413:function(t,e,r){"use strict";var n=r(86059),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},94398:function(t,e,r){"use strict";var n=r(25283),o=r(49606),c=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,a=o(c,"name"),s=a&&"something"===function something(){}.name,f=a&&(!n||n&&u(c,"name").configurable);t.exports={EXISTS:a,PROPER:s,CONFIGURABLE:f}},71518:function(t,e,r){"use strict";var n=r(78240),o=r(45089);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},91175:function(t,e,r){"use strict";var n=r(52306),o=r(78240);t.exports=function(t){if("Function"===n(t))return o(t)}},78240:function(t,e,r){"use strict";var n=r(86059),o=Function.prototype,c=o.call,u=n&&o.bind.bind(c,c);t.exports=n?u:function(t){return function(){return c.apply(t,arguments)}}},10563:function(t,e,r){"use strict";var n=r(22086),o=r(90930);t.exports=function(t,e){return arguments.length<2?(r=n[t],o(r)?r:void 0):n[t]&&n[t][e];var r}},61667:function(t,e,r){"use strict";var n=r(90375),o=r(2964),c=r(71858),u=r(97719),a=r(50211)("iterator");t.exports=function(t){if(!c(t))return o(t,a)||o(t,"@@iterator")||u[n(t)]}},73546:function(t,e,r){"use strict";var n=r(59413),o=r(45089),c=r(56112),u=r(9268),a=r(61667),s=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(o(r))return c(n(r,t));throw s(u(t)+" is not iterable")}},2964:function(t,e,r){"use strict";var n=r(45089),o=r(71858);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},22086:function(t,e,r){"use strict";var check=function(t){return t&&t.Math===Math&&t};t.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},49606:function(t,e,r){"use strict";var n=r(78240),o=r(3060),c=n({}.hasOwnProperty);t.exports=Object.hasOwn||function hasOwn(t,e){return c(o(t),e)}},7153:function(t){"use strict";t.exports={}},71670:function(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},25963:function(t,e,r){"use strict";var n=r(10563);t.exports=n("document","documentElement")},26761:function(t,e,r){"use strict";var n=r(25283),o=r(63677),c=r(20821);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}))},95974:function(t,e,r){"use strict";var n=r(78240),o=r(63677),c=r(52306),u=Object,a=n("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"===c(t)?a(t,""):u(t)}:u},39277:function(t,e,r){"use strict";var n=r(78240),o=r(90930),c=r(74489),u=n(Function.toString);o(c.inspectSource)||(c.inspectSource=function(t){return u(t)}),t.exports=c.inspectSource},83278:function(t,e,r){"use strict";var n,o,c,u=r(40640),a=r(22086),s=r(28759),f=r(72585),p=r(49606),l=r(74489),d=r(88944),v=r(7153),h="Object already initialized",y=a.TypeError,_=a.WeakMap;if(u||l.state){var b=l.state||(l.state=new _);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,e){if(b.has(t))throw y(h);return e.facade=t,b.set(t,e),e},o=function(t){return b.get(t)||{}},c=function(t){return b.has(t)}}else{var m=d("state");v[m]=!0,n=function(t,e){if(p(t,m))throw y(h);return e.facade=t,f(t,m,e),e},o=function(t){return p(t,m)?t[m]:{}},c=function(t){return p(t,m)}}t.exports={set:n,get:o,has:c,enforce:function(t){return c(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!s(e)||(r=o(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return r}}}},92814:function(t,e,r){"use strict";var n=r(50211),o=r(97719),c=n("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[c]===t)}},90930:function(t,e,r){"use strict";var n=r(27886),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},41956:function(t,e,r){"use strict";var n=r(78240),o=r(63677),c=r(90930),u=r(90375),a=r(10563),s=r(39277),noop=function(){},f=[],p=a("Reflect","construct"),l=/^\s*(?:class|function)\b/,d=n(l.exec),v=!l.exec(noop),h=function isConstructor(t){if(!c(t))return!1;try{return p(noop,f,t),!0}catch(t){return!1}},y=function isConstructor(t){if(!c(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!d(l,s(t))}catch(t){return!0}};y.sham=!0,t.exports=!p||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?y:h},67189:function(t,e,r){"use strict";var n=r(63677),o=r(90930),c=/#|\.prototype\./,isForced=function(t,e){var r=a[u(t)];return r===f||r!==s&&(o(e)?n(e):!!e)},u=isForced.normalize=function(t){return String(t).replace(c,".").toLowerCase()},a=isForced.data={},s=isForced.NATIVE="N",f=isForced.POLYFILL="P";t.exports=isForced},71858:function(t){"use strict";t.exports=function(t){return null==t}},28759:function(t,e,r){"use strict";var n=r(90930),o=r(27886),c=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===c}:function(t){return"object"==typeof t?null!==t:n(t)}},43296:function(t){"use strict";t.exports=!1},92071:function(t,e,r){"use strict";var n=r(10563),o=r(90930),c=r(95516),u=r(91876),a=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&c(e.prototype,a(t))}},94722:function(t,e,r){"use strict";var n=r(18516),o=r(59413),c=r(56112),u=r(9268),a=r(92814),s=r(82871),f=r(95516),p=r(73546),l=r(61667),d=r(26737),v=TypeError,Result=function(t,e){this.stopped=t,this.result=e},h=Result.prototype;t.exports=function(t,e,r){var y,_,b,m,w,g,x,S=r&&r.that,E=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),k=!(!r||!r.IS_ITERATOR),I=!(!r||!r.INTERRUPTED),j=n(e,S),stop=function(t){return y&&d(y,"normal",t),new Result(!0,t)},callFn=function(t){return E?(c(t),I?j(t[0],t[1],stop):j(t[0],t[1])):I?j(t,stop):j(t)};if(O)y=t.iterator;else if(k)y=t;else{if(!(_=l(t)))throw v(u(t)+" is not iterable");if(a(_)){for(b=0,m=s(t);m>b;b++)if((w=callFn(t[b]))&&f(h,w))return w;return new Result(!1)}y=p(t,_)}for(g=O?t.next:y.next;!(x=o(g,y)).done;){try{w=callFn(x.value)}catch(t){d(y,"throw",t)}if("object"==typeof w&&w&&f(h,w))return w}return new Result(!1)}},26737:function(t,e,r){"use strict";var n=r(59413),o=r(56112),c=r(2964);t.exports=function(t,e,r){var u,a;o(t);try{if(!(u=c(t,"return"))){if("throw"===e)throw r;return r}u=n(u,t)}catch(t){a=!0,u=t}if("throw"===e)throw r;if(a)throw u;return o(u),r}},73403:function(t,e,r){"use strict";var n=r(13083).IteratorPrototype,o=r(44710),c=r(55736),u=r(70914),a=r(97719),returnThis=function(){return this};t.exports=function(t,e,r,s){var f=e+" Iterator";return t.prototype=o(n,{next:c(+!s,r)}),u(t,f,!1,!0),a[f]=returnThis,t}},60848:function(t,e,r){"use strict";var n=r(51695),o=r(59413),c=r(43296),u=r(94398),a=r(90930),s=r(73403),f=r(62130),p=r(77530),l=r(70914),d=r(72585),v=r(1343),h=r(50211),y=r(97719),_=r(13083),b=u.PROPER,m=u.CONFIGURABLE,w=_.IteratorPrototype,g=_.BUGGY_SAFARI_ITERATORS,x=h("iterator"),S="keys",E="values",O="entries",returnThis=function(){return this};t.exports=function(t,e,r,u,h,_,k){s(r,e,u);var I,j,L,getIterationMethod=function(t){if(t===h&&A)return A;if(!g&&t in P)return P[t];switch(t){case S:return function keys(){return new r(this,t)};case E:return function values(){return new r(this,t)};case O:return function entries(){return new r(this,t)}}return function(){return new r(this)}},T=e+" Iterator",R=!1,P=t.prototype,M=P[x]||P["@@iterator"]||h&&P[h],A=!g&&M||getIterationMethod(h),C="Array"===e&&P.entries||M;if(C&&(I=f(C.call(new t)))!==Object.prototype&&I.next&&(c||f(I)===w||(p?p(I,w):a(I[x])||v(I,x,returnThis)),l(I,T,!0,!0),c&&(y[T]=returnThis)),b&&h===E&&M&&M.name!==E&&(!c&&m?d(P,"name",E):(R=!0,A=function values(){return o(M,this)})),h)if(j={values:getIterationMethod(E),keys:_?A:getIterationMethod(S),entries:getIterationMethod(O)},k)for(L in j)(g||R||!(L in P))&&v(P,L,j[L]);else n({target:e,proto:!0,forced:g||R},j);return c&&!k||P[x]===A||v(P,x,A,{name:h}),y[e]=A,j}},13083:function(t,e,r){"use strict";var n,o,c,u=r(63677),a=r(90930),s=r(28759),f=r(44710),p=r(62130),l=r(1343),d=r(50211),v=r(43296),h=d("iterator"),y=!1;[].keys&&("next"in(c=[].keys())?(o=p(p(c)))!==Object.prototype&&(n=o):y=!0),!s(n)||u((function(){var t={};return n[h].call(t)!==t}))?n={}:v&&(n=f(n)),a(n[h])||l(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},97719:function(t){"use strict";t.exports={}},82871:function(t,e,r){"use strict";var n=r(24005);t.exports=function(t){return n(t.length)}},83712:function(t,e,r){"use strict";var n=r(78240),o=r(63677),c=r(90930),u=r(49606),a=r(25283),s=r(94398).CONFIGURABLE,f=r(39277),p=r(83278),l=p.enforce,d=p.get,v=String,h=Object.defineProperty,y=n("".slice),_=n("".replace),b=n([].join),m=a&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),w=String(String).split("String"),g=t.exports=function(t,e,r){"Symbol("===y(v(e),0,7)&&(e="["+_(v(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!u(t,"name")||s&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&u(r,"arity")&&t.length!==r.arity&&h(t,"length",{value:r.arity});try{r&&u(r,"constructor")&&r.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=l(t);return u(n,"source")||(n.source=b(w,"string"==typeof e?e:"")),t};Function.prototype.toString=g((function toString(){return c(this)&&d(this).source||f(this)}),"toString")},55681:function(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function trunc(t){var n=+t;return(n>0?r:e)(n)}},43173:function(t,e,r){"use strict";var n,o,c,u,a,s=r(22086),f=r(18516),p=r(94399).f,l=r(84953).set,d=r(7733),v=r(84344),h=r(91848),y=r(54928),_=r(81801),b=s.MutationObserver||s.WebKitMutationObserver,m=s.document,w=s.process,g=s.Promise,x=p(s,"queueMicrotask"),S=x&&x.value;if(!S){var E=new d,flush=function(){var t,e;for(_&&(t=w.domain)&&t.exit();e=E.get();)try{e()}catch(t){throw E.head&&n(),t}t&&t.enter()};v||_||y||!b||!m?!h&&g&&g.resolve?((u=g.resolve(void 0)).constructor=g,a=f(u.then,u),n=function(){a(flush)}):_?n=function(){w.nextTick(flush)}:(l=f(l,s),n=function(){l(flush)}):(o=!0,c=m.createTextNode(""),new b(flush).observe(c,{characterData:!0}),n=function(){c.data=o=!o}),S=function(t){E.head||n(),E.add(t)}}t.exports=S},98722:function(t,e,r){"use strict";var n=r(45089),o=TypeError,PromiseCapability=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw o("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new PromiseCapability(t)}},44710:function(t,e,r){"use strict";var n,o=r(56112),c=r(77711),u=r(58684),a=r(7153),s=r(25963),f=r(20821),p=r(88944),l="prototype",d="script",v=p("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(t){return"<"+d+">"+t+"</"+d+">"},NullProtoObjectViaActiveX=function(t){t.write(scriptTag("")),t.close();var e=t.parentWindow.Object;return t=null,e},NullProtoObject=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;NullProtoObject="undefined"!=typeof document?document.domain&&n?NullProtoObjectViaActiveX(n):(e=f("iframe"),r="java"+d+":",e.style.display="none",s.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F):NullProtoObjectViaActiveX(n);for(var o=u.length;o--;)delete NullProtoObject[l][u[o]];return NullProtoObject()};a[v]=!0,t.exports=Object.create||function create(t,e){var r;return null!==t?(EmptyConstructor[l]=o(t),r=new EmptyConstructor,EmptyConstructor[l]=null,r[v]=t):r=NullProtoObject(),void 0===e?r:c.f(r,e)}},77711:function(t,e,r){"use strict";var n=r(25283),o=r(98202),c=r(77826),u=r(56112),a=r(64088),s=r(68779);e.f=n&&!o?Object.defineProperties:function defineProperties(t,e){u(t);for(var r,n=a(e),o=s(e),f=o.length,p=0;f>p;)c.f(t,r=o[p++],n[r]);return t}},77826:function(t,e,r){"use strict";var n=r(25283),o=r(26761),c=r(98202),u=r(56112),a=r(2258),s=TypeError,f=Object.defineProperty,p=Object.getOwnPropertyDescriptor,l="enumerable",d="configurable",v="writable";e.f=n?c?function defineProperty(t,e,r){if(u(t),e=a(e),u(r),"function"==typeof t&&"prototype"===e&&"value"in r&&v in r&&!r[v]){var n=p(t,e);n&&n[v]&&(t[e]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:l in r?r[l]:n[l],writable:!1})}return f(t,e,r)}:f:function defineProperty(t,e,r){if(u(t),e=a(e),u(r),o)try{return f(t,e,r)}catch(t){}if("get"in r||"set"in r)throw s("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},94399:function(t,e,r){"use strict";var n=r(25283),o=r(59413),c=r(7446),u=r(55736),a=r(64088),s=r(2258),f=r(49606),p=r(26761),l=Object.getOwnPropertyDescriptor;e.f=n?l:function getOwnPropertyDescriptor(t,e){if(t=a(t),e=s(e),p)try{return l(t,e)}catch(t){}if(f(t,e))return u(!o(c.f,t,e),t[e])}},20062:function(t,e,r){"use strict";var n=r(91352),o=r(58684).concat("length","prototype");e.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return n(t,o)}},66952:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},62130:function(t,e,r){"use strict";var n=r(49606),o=r(90930),c=r(3060),u=r(88944),a=r(47209),s=u("IE_PROTO"),f=Object,p=f.prototype;t.exports=a?f.getPrototypeOf:function(t){var e=c(t);if(n(e,s))return e[s];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof f?p:null}},95516:function(t,e,r){"use strict";var n=r(78240);t.exports=n({}.isPrototypeOf)},91352:function(t,e,r){"use strict";var n=r(78240),o=r(49606),c=r(64088),u=r(56198).indexOf,a=r(7153),s=n([].push);t.exports=function(t,e){var r,n=c(t),f=0,p=[];for(r in n)!o(a,r)&&o(n,r)&&s(p,r);for(;e.length>f;)o(n,r=e[f++])&&(~u(p,r)||s(p,r));return p}},68779:function(t,e,r){"use strict";var n=r(91352),o=r(58684);t.exports=Object.keys||function keys(t){return n(t,o)}},7446:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function propertyIsEnumerable(t){var e=n(this,t);return!!e&&e.enumerable}:r},77530:function(t,e,r){"use strict";var n=r(71518),o=r(56112),c=r(81378);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function setPrototypeOf(r,n){return o(r),c(n),e?t(r,n):r.__proto__=n,r}}():void 0)},70999:function(t,e,r){"use strict";var n=r(12371),o=r(90375);t.exports=n?{}.toString:function toString(){return"[object "+o(this)+"]"}},97999:function(t,e,r){"use strict";var n=r(59413),o=r(90930),c=r(28759),u=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&o(r=t.toString)&&!c(a=n(r,t)))return a;if(o(r=t.valueOf)&&!c(a=n(r,t)))return a;if("string"!==e&&o(r=t.toString)&&!c(a=n(r,t)))return a;throw u("Can't convert object to primitive value")}},46095:function(t,e,r){"use strict";var n=r(10563),o=r(78240),c=r(20062),u=r(66952),a=r(56112),s=o([].concat);t.exports=n("Reflect","ownKeys")||function ownKeys(t){var e=c.f(a(t)),r=u.f;return r?s(e,r(t)):e}},54522:function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},61360:function(t,e,r){"use strict";var n=r(22086),o=r(81237),c=r(90930),u=r(67189),a=r(39277),s=r(50211),f=r(70172),p=r(41767),l=r(43296),d=r(21448),v=o&&o.prototype,h=s("species"),y=!1,_=c(n.PromiseRejectionEvent),b=u("Promise",(function(){var t=a(o),e=t!==String(o);if(!e&&66===d)return!0;if(l&&(!v.catch||!v.finally))return!0;if(!d||d<51||!/native code/.test(t)){var r=new o((function(t){t(1)})),FakePromise=function(t){t((function(){}),(function(){}))};if((r.constructor={})[h]=FakePromise,!(y=r.then((function(){}))instanceof FakePromise))return!0}return!e&&(f||p)&&!_}));t.exports={CONSTRUCTOR:b,REJECTION_EVENT:_,SUBCLASSING:y}},81237:function(t,e,r){"use strict";var n=r(22086);t.exports=n.Promise},10880:function(t,e,r){"use strict";var n=r(56112),o=r(28759),c=r(98722);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=c.f(t);return(0,r.resolve)(e),r.promise}},52079:function(t,e,r){"use strict";var n=r(81237),o=r(68939),c=r(61360).CONSTRUCTOR;t.exports=c||!o((function(t){n.all(t).then(void 0,(function(){}))}))},7733:function(t){"use strict";var Queue=function(){this.head=null,this.tail=null};Queue.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=Queue},31189:function(t,e,r){"use strict";var n=r(59413),o=r(56112),c=r(90930),u=r(52306),a=r(84861),s=TypeError;t.exports=function(t,e){var r=t.exec;if(c(r)){var f=n(r,t,e);return null!==f&&o(f),f}if("RegExp"===u(t))return n(a,t,e);throw s("RegExp#exec called on incompatible receiver")}},84861:function(t,e,r){"use strict";var n,o,c=r(59413),u=r(78240),a=r(64059),s=r(54276),f=r(94930),p=r(49197),l=r(44710),d=r(83278).get,v=r(42582),h=r(2910),y=p("native-string-replace",String.prototype.replace),_=RegExp.prototype.exec,b=_,m=u("".charAt),w=u("".indexOf),g=u("".replace),x=u("".slice),S=(o=/b*/g,c(_,n=/a/,"a"),c(_,o,"a"),0!==n.lastIndex||0!==o.lastIndex),E=f.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(S||O||E||v||h)&&(b=function exec(t){var e,r,n,o,u,f,p,v=this,h=d(v),k=a(t),I=h.raw;if(I)return I.lastIndex=v.lastIndex,e=c(b,I,k),v.lastIndex=I.lastIndex,e;var j=h.groups,L=E&&v.sticky,T=c(s,v),R=v.source,P=0,M=k;if(L&&(T=g(T,"y",""),-1===w(T,"g")&&(T+="g"),M=x(k,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==m(k,v.lastIndex-1))&&(R="(?: "+R+")",M=" "+M,P++),r=new RegExp("^(?:"+R+")",T)),O&&(r=new RegExp("^"+R+"$(?!\\s)",T)),S&&(n=v.lastIndex),o=c(_,L?r:v,M),L?o?(o.input=x(o.input,P),o[0]=x(o[0],P),o.index=v.lastIndex,v.lastIndex+=o[0].length):v.lastIndex=0:S&&o&&(v.lastIndex=v.global?o.index+o[0].length:n),O&&o&&o.length>1&&c(y,o[0],r,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&j)for(o.groups=f=l(null),u=0;u<j.length;u++)f[(p=j[u])[0]]=o[p[1]];return o}),t.exports=b},54276:function(t,e,r){"use strict";var n=r(56112);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},94930:function(t,e,r){"use strict";var n=r(63677),o=r(22086).RegExp,c=n((function(){var t=o("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),u=c||n((function(){return!o("a","y").sticky})),a=c||n((function(){var t=o("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:a,MISSED_STICKY:u,UNSUPPORTED_Y:c}},42582:function(t,e,r){"use strict";var n=r(63677),o=r(22086).RegExp;t.exports=n((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},2910:function(t,e,r){"use strict";var n=r(63677),o=r(22086).RegExp;t.exports=n((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},69586:function(t,e,r){"use strict";var n=r(71858),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},92031:function(t){"use strict";t.exports=Object.is||function is(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},67420:function(t,e,r){"use strict";var n=r(10563),o=r(38371),c=r(50211),u=r(25283),a=c("species");t.exports=function(t){var e=n(t);u&&e&&!e[a]&&o(e,a,{configurable:!0,get:function(){return this}})}},70914:function(t,e,r){"use strict";var n=r(77826).f,o=r(49606),c=r(50211)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!o(t,c)&&n(t,c,{configurable:!0,value:e})}},88944:function(t,e,r){"use strict";var n=r(49197),o=r(65422),c=n("keys");t.exports=function(t){return c[t]||(c[t]=o(t))}},74489:function(t,e,r){"use strict";var n=r(22086),o=r(79444),c="__core-js_shared__",u=n[c]||o(c,{});t.exports=u},49197:function(t,e,r){"use strict";var n=r(43296),o=r(74489);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.1",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})},48515:function(t,e,r){"use strict";var n=r(56112),o=r(41449),c=r(71858),u=r(50211)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||c(r=n(a)[u])?e:o(r)}},83448:function(t,e,r){"use strict";var n=r(78240),o=r(69502),c=r(64059),u=r(69586),a=n("".charAt),s=n("".charCodeAt),f=n("".slice),createMethod=function(t){return function(e,r){var n,p,l=c(u(e)),d=o(r),v=l.length;return d<0||d>=v?t?"":void 0:(n=s(l,d))<55296||n>56319||d+1===v||(p=s(l,d+1))<56320||p>57343?t?a(l,d):n:t?f(l,d,d+2):p-56320+(n-55296<<10)+65536}};t.exports={codeAt:createMethod(!1),charAt:createMethod(!0)}},25558:function(t,e,r){"use strict";var n=r(21448),o=r(63677),c=r(22086).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!c(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},84953:function(t,e,r){"use strict";var n,o,c,u,a=r(22086),s=r(67258),f=r(18516),p=r(90930),l=r(49606),d=r(63677),v=r(25963),h=r(70745),y=r(20821),_=r(71635),b=r(84344),m=r(81801),w=a.setImmediate,g=a.clearImmediate,x=a.process,S=a.Dispatch,E=a.Function,O=a.MessageChannel,k=a.String,I=0,j={},L="onreadystatechange";d((function(){n=a.location}));var run=function(t){if(l(j,t)){var e=j[t];delete j[t],e()}},runner=function(t){return function(){run(t)}},eventListener=function(t){run(t.data)},globalPostMessageDefer=function(t){a.postMessage(k(t),n.protocol+"//"+n.host)};w&&g||(w=function setImmediate(t){_(arguments.length,1);var e=p(t)?t:E(t),r=h(arguments,1);return j[++I]=function(){s(e,void 0,r)},o(I),I},g=function clearImmediate(t){delete j[t]},m?o=function(t){x.nextTick(runner(t))}:S&&S.now?o=function(t){S.now(runner(t))}:O&&!b?(u=(c=new O).port2,c.port1.onmessage=eventListener,o=f(u.postMessage,u)):a.addEventListener&&p(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(globalPostMessageDefer)?(o=globalPostMessageDefer,a.addEventListener("message",eventListener,!1)):o=L in y("script")?function(t){v.appendChild(y("script"))[L]=function(){v.removeChild(this),run(t)}}:function(t){setTimeout(runner(t),0)}),t.exports={set:w,clear:g}},7740:function(t,e,r){"use strict";var n=r(69502),o=Math.max,c=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):c(r,e)}},64088:function(t,e,r){"use strict";var n=r(95974),o=r(69586);t.exports=function(t){return n(o(t))}},69502:function(t,e,r){"use strict";var n=r(55681);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},24005:function(t,e,r){"use strict";var n=r(69502),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},3060:function(t,e,r){"use strict";var n=r(69586),o=Object;t.exports=function(t){return o(n(t))}},1288:function(t,e,r){"use strict";var n=r(59413),o=r(28759),c=r(92071),u=r(2964),a=r(97999),s=r(50211),f=TypeError,p=s("toPrimitive");t.exports=function(t,e){if(!o(t)||c(t))return t;var r,s=u(t,p);if(s){if(void 0===e&&(e="default"),r=n(s,t,e),!o(r)||c(r))return r;throw f("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},2258:function(t,e,r){"use strict";var n=r(1288),o=r(92071);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},12371:function(t,e,r){"use strict";var n={};n[r(50211)("toStringTag")]="z",t.exports="[object z]"===String(n)},64059:function(t,e,r){"use strict";var n=r(90375),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},9268:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},65422:function(t,e,r){"use strict";var n=r(78240),o=0,c=Math.random(),u=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+c,36)}},91876:function(t,e,r){"use strict";var n=r(25558);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},98202:function(t,e,r){"use strict";var n=r(25283),o=r(63677);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},71635:function(t){"use strict";var e=TypeError;t.exports=function(t,r){if(t<r)throw e("Not enough arguments");return t}},40640:function(t,e,r){"use strict";var n=r(22086),o=r(90930),c=n.WeakMap;t.exports=o(c)&&/native code/.test(String(c))},50211:function(t,e,r){"use strict";var n=r(22086),o=r(49197),c=r(49606),u=r(65422),a=r(25558),s=r(91876),f=n.Symbol,p=o("wks"),l=s?f.for||f:f&&f.withoutSetter||u;t.exports=function(t){return c(p,t)||(p[t]=a&&c(f,t)?f[t]:l("Symbol."+t)),p[t]}},5769:function(t,e,r){"use strict";var n=r(64088),o=r(78669),c=r(97719),u=r(83278),a=r(77826).f,s=r(60848),f=r(94001),p=r(43296),l=r(25283),d="Array Iterator",v=u.set,h=u.getterFor(d);t.exports=s(Array,"Array",(function(t,e){v(this,{type:d,target:n(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,r=t.kind,n=t.index++;if(!e||n>=e.length)return t.target=void 0,f(void 0,!0);switch(r){case"keys":return f(n,!1);case"values":return f(e[n],!1)}return f([n,e[n]],!1)}),"values");var y=c.Arguments=c.Array;if(o("keys"),o("values"),o("entries"),!p&&l&&"values"!==y.name)try{a(y,"name",{value:"values"})}catch(t){}},63238:function(t,e,r){"use strict";var n=r(12371),o=r(1343),c=r(70999);n||o(Object.prototype,"toString",c,{unsafe:!0})},12238:function(t,e,r){"use strict";var n=r(51695),o=r(59413),c=r(45089),u=r(98722),a=r(54522),s=r(94722);n({target:"Promise",stat:!0,forced:r(52079)},{all:function all(t){var e=this,r=u.f(e),n=r.resolve,f=r.reject,p=a((function(){var r=c(e.resolve),u=[],a=0,p=1;s(t,(function(t){var c=a++,s=!1;p++,o(r,e,t).then((function(t){s||(s=!0,u[c]=t,--p||n(u))}),f)})),--p||n(u)}));return p.error&&f(p.value),r.promise}})},43008:function(t,e,r){"use strict";var n=r(51695),o=r(43296),c=r(61360).CONSTRUCTOR,u=r(81237),a=r(10563),s=r(90930),f=r(1343),p=u&&u.prototype;if(n({target:"Promise",proto:!0,forced:c,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&s(u)){var l=a("Promise").prototype.catch;p.catch!==l&&f(p,"catch",l,{unsafe:!0})}},21559:function(t,e,r){"use strict";var n,o,c,u=r(51695),a=r(43296),s=r(81801),f=r(22086),p=r(59413),l=r(1343),d=r(77530),v=r(70914),h=r(67420),y=r(45089),_=r(90930),b=r(28759),m=r(51855),w=r(48515),g=r(84953).set,x=r(43173),S=r(71670),E=r(54522),O=r(7733),k=r(83278),I=r(81237),j=r(61360),L=r(98722),T="Promise",R=j.CONSTRUCTOR,P=j.REJECTION_EVENT,M=j.SUBCLASSING,A=k.getterFor(T),C=k.set,q=I&&I.prototype,B=I,U=q,N=f.TypeError,G=f.document,D=f.process,W=L.f,z=W,H=!!(G&&G.createEvent&&f.dispatchEvent),V="unhandledrejection",isThenable=function(t){var e;return!(!b(t)||!_(e=t.then))&&e},callReaction=function(t,e){var r,n,o,c=e.value,u=1===e.state,a=u?t.ok:t.fail,s=t.resolve,f=t.reject,l=t.domain;try{a?(u||(2===e.rejection&&onHandleUnhandled(e),e.rejection=1),!0===a?r=c:(l&&l.enter(),r=a(c),l&&(l.exit(),o=!0)),r===t.promise?f(N("Promise-chain cycle")):(n=isThenable(r))?p(n,r,s,f):s(r)):f(c)}catch(t){l&&!o&&l.exit(),f(t)}},notify=function(t,e){t.notified||(t.notified=!0,x((function(){for(var r,n=t.reactions;r=n.get();)callReaction(r,t);t.notified=!1,e&&!t.rejection&&onUnhandled(t)})))},dispatchEvent=function(t,e,r){var n,o;H?((n=G.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),f.dispatchEvent(n)):n={promise:e,reason:r},!P&&(o=f["on"+t])?o(n):t===V&&S("Unhandled promise rejection",r)},onUnhandled=function(t){p(g,f,(function(){var e,r=t.facade,n=t.value;if(isUnhandled(t)&&(e=E((function(){s?D.emit("unhandledRejection",n,r):dispatchEvent(V,r,n)})),t.rejection=s||isUnhandled(t)?2:1,e.error))throw e.value}))},isUnhandled=function(t){return 1!==t.rejection&&!t.parent},onHandleUnhandled=function(t){p(g,f,(function(){var e=t.facade;s?D.emit("rejectionHandled",e):dispatchEvent("rejectionhandled",e,t.value)}))},bind=function(t,e,r){return function(n){t(e,n,r)}},internalReject=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,notify(t,!0))},internalResolve=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw N("Promise can't be resolved itself");var n=isThenable(e);n?x((function(){var r={done:!1};try{p(n,e,bind(internalResolve,r,t),bind(internalReject,r,t))}catch(e){internalReject(r,e,t)}})):(t.value=e,t.state=1,notify(t,!1))}catch(e){internalReject({done:!1},e,t)}}};if(R&&(U=(B=function Promise(t){m(this,U),y(t),p(n,this);var e=A(this);try{t(bind(internalResolve,e),bind(internalReject,e))}catch(t){internalReject(e,t)}}).prototype,(n=function Promise(t){C(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:void 0})}).prototype=l(U,"then",(function then(t,e){var r=A(this),n=W(w(this,B));return r.parent=!0,n.ok=!_(t)||t,n.fail=_(e)&&e,n.domain=s?D.domain:void 0,0===r.state?r.reactions.add(n):x((function(){callReaction(n,r)})),n.promise})),o=function(){var t=new n,e=A(t);this.promise=t,this.resolve=bind(internalResolve,e),this.reject=bind(internalReject,e)},L.f=W=function(t){return t===B||undefined===t?new o(t):z(t)},!a&&_(I)&&q!==Object.prototype)){c=q.then,M||l(q,"then",(function then(t,e){var r=this;return new B((function(t,e){p(c,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete q.constructor}catch(t){}d&&d(q,U)}u({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:B}),v(B,T,!1,!0),h(T)},61418:function(t,e,r){"use strict";r(21559),r(12238),r(43008),r(74841),r(89117),r(42307)},74841:function(t,e,r){"use strict";var n=r(51695),o=r(59413),c=r(45089),u=r(98722),a=r(54522),s=r(94722);n({target:"Promise",stat:!0,forced:r(52079)},{race:function race(t){var e=this,r=u.f(e),n=r.reject,f=a((function(){var u=c(e.resolve);s(t,(function(t){o(u,e,t).then(r.resolve,n)}))}));return f.error&&n(f.value),r.promise}})},89117:function(t,e,r){"use strict";var n=r(51695),o=r(59413),c=r(98722);n({target:"Promise",stat:!0,forced:r(61360).CONSTRUCTOR},{reject:function reject(t){var e=c.f(this);return o(e.reject,void 0,t),e.promise}})},42307:function(t,e,r){"use strict";var n=r(51695),o=r(10563),c=r(43296),u=r(81237),a=r(61360).CONSTRUCTOR,s=r(10880),f=o("Promise"),p=c&&!a;n({target:"Promise",stat:!0,forced:c||a},{resolve:function resolve(t){return s(p&&this===f?u:this,t)}})},52077:function(t,e,r){"use strict";var n=r(51695),o=r(84861);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},17460:function(t,e,r){"use strict";var n=r(83448).charAt,o=r(64059),c=r(83278),u=r(60848),a=r(94001),s="String Iterator",f=c.set,p=c.getterFor(s);u(String,"String",(function(t){f(this,{type:s,string:o(t),index:0})}),(function next(){var t,e=p(this),r=e.string,o=e.index;return o>=r.length?a(void 0,!0):(t=n(r,o),e.index+=t.length,a(t,!1))}))},83526:function(t,e,r){"use strict";var n=r(59413),o=r(82331),c=r(56112),u=r(71858),a=r(69586),s=r(92031),f=r(64059),p=r(2964),l=r(31189);o("search",(function(t,e,r){return[function search(e){var r=a(this),o=u(e)?void 0:p(e,t);return o?n(o,e,r):new RegExp(e)[t](f(r))},function(t){var n=c(this),o=f(t),u=r(e,n,o);if(u.done)return u.value;var a=n.lastIndex;s(a,0)||(n.lastIndex=0);var p=l(n,o);return s(n.lastIndex,a)||(n.lastIndex=a),null===p?-1:p.index}]}))},14078:function(t,e,r){"use strict";var n=r(22086),o=r(933),c=r(73526),u=r(5769),a=r(72585),s=r(50211),f=s("iterator"),p=s("toStringTag"),l=u.values,handlePrototype=function(t,e){if(t){if(t[f]!==l)try{a(t,f,l)}catch(e){t[f]=l}if(t[p]||a(t,p,e),o[e])for(var r in u)if(t[r]!==u[r])try{a(t,r,u[r])}catch(e){t[r]=u[r]}}};for(var d in o)handlePrototype(n[d]&&n[d].prototype,d);handlePrototype(c,"DOMTokenList")},31949:function(t,e,r){"use strict";var n=r(54933),o=r.n(n),c=r(93476),u=r.n(c),a=r(4509),s=r(91678),f=r.n(s),p=new URL(r(82410),r.b),l=u()(o());l.i(a.Z);var d=f()(p);l.push([t.id,".jmap_wrapper html,\n.jmap_wrapper body {\n padding: 0px;\n margin: 0px;\n height: 100%;\n width: 100%;\n overflow: hidden;\n}\n\n.jmap_wrapper .jmapcloud-ng-map {\n max-height: 100%;\n min-height: 100%;\n}\n\n.jmap_wrapper .jmapcloud-ng-layout {\n max-height: 100%;\n max-width: 100%;\n min-height: 100%;\n position: absolute;\n top: 0px;\n left: 0px;\n z-index: 4;\n}\n\n.jmap_wrapper .jmapcloud-ng-mouseover-edit-icon {\n background-image: url("+d+");\n background-repeat: no-repeat;\n background-position: center;\n background-size: cover;\n width: 1rem;\n height: 1rem;\n filter: opacity(.7);\n}\n\n.jmap_wrapper .jmapcloud-ng-mouseover-edit-icon:hover {\n cursor: pointer;\n filter: opacity(1);\n}\n",""]),e.Z=l},4509:function(t,e,r){"use strict";var n=r(54933),o=r.n(n),c=r(93476),u=r.n(c),a=r(91678),s=r.n(a),f=new URL(r(26257),r.b),p=new URL(r(46512),r.b),l=new URL(r(13145),r.b),d=new URL(r(89743),r.b),v=new URL(r(75981),r.b),h=new URL(r(13161),r.b),y=new URL(r(2687),r.b),_=new URL(r(8900),r.b),b=new URL(r(93432),r.b),m=new URL(r(97579),r.b),w=new URL(r(59744),r.b),g=new URL(r(80790),r.b),x=new URL(r(16319),r.b),S=new URL(r(58691),r.b),E=new URL(r(89099),r.b),O=new URL(r(90489),r.b),k=new URL(r(67720),r.b),I=new URL(r(87750),r.b),j=new URL(r(30964),r.b),L=new URL(r(41113),r.b),T=new URL(r(93633),r.b),R=new URL(r(95362),r.b),P=new URL(r(88418),r.b),M=new URL(r(58161),r.b),A=new URL(r(43332),r.b),C=new URL(r(76441),r.b),q=new URL(r(22233),r.b),B=new URL(r(42848),r.b),U=new URL(r(57849),r.b),N=new URL(r(78268),r.b),G=new URL(r(8370),r.b),D=new URL(r(87884),r.b),W=u()(o()),z=s()(f),H=s()(f,{hash:"?#iefix"}),V=s()(p),J=s()(l),Y=s()(d),Z=s()(v),K=s()(v,{hash:"?#iefix"}),$=s()(h),X=s()(y),Q=s()(_),tt=s()(b),et=s()(b,{hash:"?#iefix"}),rt=s()(m),nt=s()(w),ot=s()(g),it=s()(x),ct=s()(x,{hash:"?#iefix"}),ut=s()(S),at=s()(E),st=s()(O),ft=s()(k),pt=s()(k,{hash:"?#iefix"}),lt=s()(I),dt=s()(j),vt=s()(L),ht=s()(T),yt=s()(T,{hash:"?#iefix"}),_t=s()(R),bt=s()(P),mt=s()(M),wt=s()(A),gt=s()(A,{hash:"?#iefix"}),xt=s()(C),St=s()(q),Et=s()(B),Ot=s()(U),kt=s()(U,{hash:"?#iefix"}),It=s()(N),jt=s()(G),Lt=s()(D);W.push([t.id,'/* barlow-300 - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: normal;\n font-weight: 300;\n src: url('+z+'); /* IE9 Compat Modes */\n src: local("Barlow Light"), local("Barlow-Light"),\n url('+H+') format("embedded-opentype") /* IE6-IE8 */,\n url('+V+') format("woff2") /* Super Modern Browsers */,\n url('+J+') format("woff") /* Modern Browsers */,\n url('+Y+') format("truetype"); /* Safari, Android, iOS */\n}\n/* barlow-300italic - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: italic;\n font-weight: 300;\n src: url('+Z+'); /* IE9 Compat Modes */\n src: local("Barlow Light Italic"), local("Barlow-LightItalic"),\n url('+K+') format("embedded-opentype") /* IE6-IE8 */,\n url('+$+') format("woff2") /* Super Modern Browsers */,\n url('+X+') format("woff") /* Modern Browsers */,\n url('+Q+') format("truetype"); /* Safari, Android, iOS */\n}\n/* barlow-regular (400) - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: normal;\n font-weight: 400;\n src: url('+tt+'); /* IE9 Compat Modes */\n src: local("Barlow Regular"), local("Barlow-Regular") /* IE6-IE8 */,\n url('+et+') format("embedded-opentype"),\n url('+rt+') format("woff2") /* Super Modern Browsers */,\n url('+nt+') format("woff") /* Modern Browsers */,\n url('+ot+') format("truetype"); /* Safari, Android, iOS */\n}\n/* barlow-italic (400) - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: italic;\n font-weight: 400;\n src: url('+it+'); /* IE9 Compat Modes */\n src: local("Barlow Italic"), local("Barlow-Italic"),\n url('+ct+') format("embedded-opentype") /* IE6-IE8 */,\n url('+ut+') format("woff2") /* Super Modern Browsers */,\n url('+at+') format("woff") /* Modern Browsers */,\n url('+st+') format("truetype"); /* Safari, Android, iOS */\n}\n/* barlow-500 - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: normal;\n font-weight: 500;\n src: url('+ft+'); /* IE9 Compat Modes */\n src: local("Barlow Medium"), local("Barlow-Medium"),\n url('+pt+') format("embedded-opentype") /* IE6-IE8 */,\n url('+lt+') format("woff2") /* Super Modern Browsers */,\n url('+dt+') format("woff") /* Modern Browsers */,\n url('+vt+') format("truetype"); /* Safari, Android, iOS */\n}\n/* barlow-500italic - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: italic;\n font-weight: 500;\n src: url('+ht+') /* IE9 Compat Modes */;\n src: local("Barlow Medium Italic"), local("Barlow-MediumItalic"),\n url('+yt+') format("embedded-opentype") /* IE6-IE8 */,\n url('+_t+') format("woff2") /* Super Modern Browsers */,\n url('+bt+') format("woff") /* Modern Browsers */,\n url('+mt+') format("truetype") /* Safari, Android, iOS */;\n}\n/* barlow-700 - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: normal;\n font-weight: 700;\n src: url('+wt+'); /* IE9 Compat Modes */\n src: local("Barlow Bold"), local("Barlow-Bold"),\n url('+gt+') format("embedded-opentype") /* IE6-IE8 */,\n url('+xt+') format("woff2") /* Super Modern Browsers */,\n url('+St+') format("woff") /* Modern Browsers */,\n url('+Et+') format("truetype") /* Safari, Android, iOS */;\n}\n/* barlow-700italic - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: italic;\n font-weight: 700;\n src: url('+Ot+'); /* IE9 Compat Modes */\n src: local("Barlow Bold Italic"), local("Barlow-BoldItalic"),\n url('+kt+') format("embedded-opentype") /* IE6-IE8 */,\n url('+It+') format("woff2") /* Super Modern Browsers */,\n url('+jt+') format("woff") /* Modern Browsers */,\n url('+Lt+') format("truetype") /* Safari, Android, iOS */;\n}\n',""]),e.Z=W},93476:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function toString(){return this.map((function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function i(t,r,n,o,c){"string"==typeof t&&(t=[[null,t,void 0]]);var u={};if(n)for(var a=0;a<this.length;a++){var s=this[a][0];null!=s&&(u[s]=!0)}for(var f=0;f<t.length;f++){var p=[].concat(t[f]);n&&u[p[0]]||(void 0!==c&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=c),r&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=r):p[2]=r),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),e.push(p))}},e}},91678:function(t){"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},54933:function(t){"use strict";t.exports=function(t){return t[1]}},86248:function(t){var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",a=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var c=e&&e.prototype instanceof Generator?e:Generator,u=Object.create(c.prototype),a=new Context(n||[]);return o(u,"_invoke",{value:makeInvokeMethod(t,r,a)}),u}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=wrap;var f="suspendedStart",p="suspendedYield",l="executing",d="completed",v={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var h={};define(h,u,(function(){return this}));var y=Object.getPrototypeOf,_=y&&y(y(values([])));_&&_!==r&&n.call(_,u)&&(h=_);var b=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(h);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,c,u){var a=tryCatch(t[r],t,o);if("throw"!==a.type){var s=a.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){invoke("next",t,c,u)}),(function(t){invoke("throw",t,c,u)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return invoke("throw",t,c,u)}))}u(a.arg)}var r;o(this,"_invoke",{value:function enqueue(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,r,n){var o=f;return function invoke(c,u){if(o===l)throw new Error("Generator is already running");if(o===d){if("throw"===c)throw u;return function doneResult(){return{value:e,done:!0}}()}for(n.method=c,n.arg=u;;){var a=n.delegate;if(a){var s=maybeInvokeDelegate(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=l;var h=tryCatch(t,r,n);if("normal"===h.type){if(o=n.done?d:p,h.arg===v)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(o=d,n.method="throw",n.arg=h.arg)}}}function maybeInvokeDelegate(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,maybeInvokeDelegate(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var c=tryCatch(o,t.iterator,r.arg);if("throw"===c.type)return r.method="throw",r.arg=c.arg,r.delegate=null,v;var u=c.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function pushTryEntry(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 resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function next(){for(;++o<t.length;)if(n.call(t,o))return next.value=t[o],next.done=!1,next;return next.value=e,next.done=!0,next};return c.next=c}}throw new TypeError(typeof t+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(b,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,a,(function(){return this})),t.AsyncIterator=AsyncIterator,t.async=function(e,r,n,o,c){void 0===c&&(c=Promise);var u=new AsyncIterator(wrap(e,r,n,o),c);return t.isGeneratorFunction(r)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},defineIteratorMethods(b),define(b,s,"Generator"),define(b,u,(function(){return this})),define(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},t.values=values,Context.prototype={constructor:Context,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(resetTryEntry),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function handle(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],u=c.completion;if("root"===c.tryLoc)return handle("end");if(c.tryLoc<=this.prev){var a=n.call(c,"catchLoc"),s=n.call(c,"finallyLoc");if(a&&s){if(this.prev<c.catchLoc)return handle(c.catchLoc,!0);if(this.prev<c.finallyLoc)return handle(c.finallyLoc)}else if(a){if(this.prev<c.catchLoc)return handle(c.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return handle(c.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var c=o;break}}c&&("break"===t||"continue"===t)&&c.tryLoc<=e&&e<=c.finallyLoc&&(c=null);var u=c?c.completion:{};return u.type=t,u.arg=e,c?(this.method="next",this.next=c.finallyLoc,v):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:values(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},1892:function(t){"use strict";var e=[];function getIndexByIdentifier(t){for(var r=-1,n=0;n<e.length;n++)if(e[n].identifier===t){r=n;break}return r}function modulesToDom(t,r){for(var n={},o=[],c=0;c<t.length;c++){var u=t[c],a=r.base?u[0]+r.base:u[0],s=n[a]||0,f="".concat(a," ").concat(s);n[a]=s+1;var p=getIndexByIdentifier(f),l={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)e[p].references++,e[p].updater(l);else{var d=addElementStyle(l,r);r.byIndex=c,e.splice(c,0,{identifier:f,updater:d,references:1})}o.push(f)}return o}function addElementStyle(t,e){var r=e.domAPI(e);r.update(t);return function updater(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;r.update(t=e)}else r.remove()}}t.exports=function(t,r){var n=modulesToDom(t=t||[],r=r||{});return function update(t){t=t||[];for(var o=0;o<n.length;o++){var c=getIndexByIdentifier(n[o]);e[c].references--}for(var u=modulesToDom(t,r),a=0;a<n.length;a++){var s=getIndexByIdentifier(n[a]);0===e[s].references&&(e[s].updater(),e.splice(s,1))}n=u}}},38311:function(t){"use strict";var e={};t.exports=function insertBySelector(t,r){var n=function getTarget(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},38060:function(t){"use strict";t.exports=function insertStyleElement(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},58192:function(t,e,r){"use strict";t.exports=function setAttributesWithoutAttributes(t){var e=r.nc;e&&t.setAttribute("nonce",e)}},95760:function(t){"use strict";t.exports=function domAPI(t){if("undefined"==typeof document)return{update:function update(){},remove:function remove(){}};var e=t.insertStyleElement(t);return{update:function update(r){!function apply(t,e,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var c=r.sourceMap;c&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(c))))," */")),e.styleTagTransform(n,t,e.options)}(e,t,r)},remove:function remove(){!function removeStyleElement(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},54865:function(t){"use strict";t.exports=function styleTagTransform(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},26257:function(t,e,r){"use strict";t.exports=r.p+"e29c61ea7a5baabf5f4e.eot"},89743:function(t,e,r){"use strict";t.exports=r.p+"62df9be6c862d273e849.ttf"},13145:function(t,e,r){"use strict";t.exports=r.p+"6be4a9aff03c67e671d8.woff"},46512:function(t,e,r){"use strict";t.exports=r.p+"8b70e6d02996d24fbe26.woff2"},75981:function(t,e,r){"use strict";t.exports=r.p+"67e73a1cc6b8251e3ce1.eot"},8900:function(t,e,r){"use strict";t.exports=r.p+"9cd8b1aa87f79ba5fa0d.ttf"},2687:function(t,e,r){"use strict";t.exports=r.p+"c3d30fdfede822039221.woff"},13161:function(t,e,r){"use strict";t.exports=r.p+"f8f61d01e9d0e645f832.woff2"},67720:function(t,e,r){"use strict";t.exports=r.p+"e8f262034b5631a64a0b.eot"},41113:function(t,e,r){"use strict";t.exports=r.p+"78deb69247b11dfaef82.ttf"},30964:function(t,e,r){"use strict";t.exports=r.p+"777e7e6fe2378aaae24f.woff"},87750:function(t,e,r){"use strict";t.exports=r.p+"ba7c7a40fbe1f44f9479.woff2"},93633:function(t,e,r){"use strict";t.exports=r.p+"e2a6ddee443d4e6cf1ed.eot"},58161:function(t,e,r){"use strict";t.exports=r.p+"b5165670c231fb850519.ttf"},88418:function(t,e,r){"use strict";t.exports=r.p+"25a7d7975ef0d3ef388a.woff"},95362:function(t,e,r){"use strict";t.exports=r.p+"661f40a1301ccb4a3902.woff2"},43332:function(t,e,r){"use strict";t.exports=r.p+"c7d002dea1093108b8de.eot"},42848:function(t,e,r){"use strict";t.exports=r.p+"fd850adaa0518f36b06d.ttf"},22233:function(t,e,r){"use strict";t.exports=r.p+"ce8277efba6b7e0a2a5c.woff"},76441:function(t,e,r){"use strict";t.exports=r.p+"d0dd3909312ceba37118.woff2"},57849:function(t,e,r){"use strict";t.exports=r.p+"879e91ad82b5b535cf0c.eot"},87884:function(t,e,r){"use strict";t.exports=r.p+"1ee5ef3f7b69d0e1a043.ttf"},8370:function(t,e,r){"use strict";t.exports=r.p+"4c795b2381e21dab3d48.woff"},78268:function(t,e,r){"use strict";t.exports=r.p+"285533c63e34641da323.woff2"},16319:function(t,e,r){"use strict";t.exports=r.p+"70c5533fa86bfec6a286.eot"},90489:function(t,e,r){"use strict";t.exports=r.p+"20810ee7649dffced61b.ttf"},89099:function(t,e,r){"use strict";t.exports=r.p+"ec1879956d06705c8df1.woff"},58691:function(t,e,r){"use strict";t.exports=r.p+"5202701c84b3fa4d7fab.woff2"},93432:function(t,e,r){"use strict";t.exports=r.p+"33701469cd0541b0e782.eot"},80790:function(t,e,r){"use strict";t.exports=r.p+"6d63cfd120fdbf1c4eb9.ttf"},59744:function(t,e,r){"use strict";t.exports=r.p+"2eda83a40af3d9412dce.woff"},97579:function(t,e,r){"use strict";t.exports=r.p+"99a52b75db400feaff73.woff2"},82410:function(t,e,r){"use strict";t.exports=r.p+"c0a6afd920480085c043.png"}},o={};function __webpack_require__(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={id:t,loaded:!1,exports:{}};return n[t].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.m=n,__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},__webpack_require__.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);__webpack_require__.r(o);var c={};t=t||[null,e({}),e([]),e(e)];for(var u=2&n&&r;"object"==typeof u&&!~t.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach((function(t){c[t]=function(){return r[t]}}));return c.default=function(){return r},__webpack_require__.d(o,c),o},__webpack_require__.d=function(t,e){for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.f={},__webpack_require__.e=function(t){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(e,r){return __webpack_require__.f[r](t,e),e}),[]))},__webpack_require__.u=function(t){return t+"."+{46:"714711c023cd947baf0d",455:"226787bf3f47469a9bde",522:"4d05a009b60e31e9559c",589:"216fc665e21b6c5f296e",696:"76d4c32b70e1474017eb",699:"aa561c37c93d1d049e8a",751:"be486c037b80d77cc9e8",816:"76f1388943dada201bbb",865:"1c89efcd1c54da9b75a0",912:"c397adee5a4fdd9f15c1"}[t]+".js"},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r={},__webpack_require__.l=function(t,e,n,o){if(r[t])r[t].push(e);else{var c,u;if(void 0!==n)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var f=a[s];if(f.getAttribute("src")==t){c=f;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,__webpack_require__.nc&&c.setAttribute("nonce",__webpack_require__.nc),c.src=t),r[t]=[e];var onScriptComplete=function(e,n){c.onerror=c.onload=null,clearTimeout(p);var o=r[t];if(delete r[t],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((function(t){return t(n)})),e)return e(n)},p=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=onScriptComplete.bind(null,c.onerror),c.onload=onScriptComplete.bind(null,c.onload),u&&document.head.appendChild(c)}},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},__webpack_require__.p="https://cdn.jsdelivr.net/npm/jmapcloud-ng@0.4.2/public/",function(){__webpack_require__.b=document.baseURI||self.location.href;var t={826:0};__webpack_require__.f.j=function(e,r){var n=__webpack_require__.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((function(r,o){n=t[e]=[r,o]}));r.push(n[2]=o);var c=__webpack_require__.p+__webpack_require__.u(e),u=new Error;__webpack_require__.l(c,(function(r){if(__webpack_require__.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),c=r&&r.target&&r.target.src;u.message="Loading chunk "+e+" failed.\n("+o+": "+c+")",u.name="ChunkLoadError",u.type=o,u.request=c,n[1](u)}}),"chunk-"+e,e)}};var webpackJsonpCallback=function(e,r){var n,o,c=r[0],u=r[1],a=r[2],s=0;if(c.some((function(e){return 0!==t[e]}))){for(n in u)__webpack_require__.o(u,n)&&(__webpack_require__.m[n]=u[n]);if(a)a(__webpack_require__)}for(e&&e(r);s<c.length;s++)o=c[s],__webpack_require__.o(t,o)&&t[o]&&t[o][0](),t[o]=0},e=self.webpackChunk=self.webpackChunk||[];e.forEach(webpackJsonpCallback.bind(null,0)),e.push=webpackJsonpCallback.bind(null,e.push.bind(e))}(),__webpack_require__.nc=void 0,function(){"use strict";__webpack_require__(5769),__webpack_require__(63238),__webpack_require__(61418),__webpack_require__(17460),__webpack_require__(14078);__webpack_require__(86248);var t=__webpack_require__(1892),e=__webpack_require__.n(t),r=__webpack_require__(95760),n=__webpack_require__.n(r),o=__webpack_require__(38311),c=__webpack_require__.n(o),u=__webpack_require__(58192),a=__webpack_require__.n(u),s=__webpack_require__(38060),f=__webpack_require__.n(s),p=__webpack_require__(54865),l=__webpack_require__.n(p),d=__webpack_require__(31949),v={};v.styleTagTransform=l(),v.setAttributes=a(),v.insert=c().bind(null,"head"),v.domAPI=n(),v.insertStyleElement=f();e()(d.Z,v),d.Z&&d.Z.locals&&d.Z.locals,__webpack_require__(52077),__webpack_require__(83526);var h=__webpack_require__(64922);!function isSelectionPage(){var t="";window.location.search&&window.location.search.length>1&&(t=window.location.search.substring(1));var e=function getParametersFromString(t){var e={};if(!t||t.length<1)return e;for(var r=t.split("&"),n=0,o=r;n<o.length;n++){var c=o[n].split("=");c.length<2||(e[decodeURI(c[0])]=decodeURI(c[1]))}return e}(t);return!!e.hasOwnProperty(h.p)&&"true"===e[h.p]}()?function loadscript(t){return new Promise((function(e,r){try{var n=document.createElement("script");n.onload=function(){return e()},n.onerror=function(){return r()},n.src=t,document.head.appendChild(n)}catch(t){r(t)}}))}("https://cdn.jsdelivr.net/npm/jmapcloud-ng-core@0.4.2/public/index.js").then((function(){return Promise.all([__webpack_require__.e(751),__webpack_require__.e(46),__webpack_require__.e(696),__webpack_require__.e(589)]).then(__webpack_require__.bind(__webpack_require__,20571)).then((function(t){return t.start()})).catch((function(t){return console.error("Cannot load start method !",t)}))})).catch((function(t){return console.error(t)})):Promise.all([__webpack_require__.e(751),__webpack_require__.e(696),__webpack_require__.e(912)]).then(__webpack_require__.bind(__webpack_require__,74912)).then((function(t){var e=window.opener;e&&e.JMap?(window.JMap=e.JMap,t.startSelectionPage()):alert("This page must be opened only from JMap App")})).catch((function(t){return console.error("Cannot load startSelectionPage method !",t)}))}()}();
1
+ !function(){var e,t,r,n,o={52734:function(e,t,r){"use strict";r.d(t,{p:function(){return o},u:function(){return n}});const n=100,o="ngIsSelectionPage"},88874:function(e,t,r){"use strict";var n=r(8081),o=r.n(n),a=r(23645),c=r.n(a),u=r(82751),f=r(61667),s=r.n(f),l=new URL(r(49687),r.b),p=c()(o());p.i(u.Z);var d=s()(l);p.push([e.id,".jmap_wrapper html,\n.jmap_wrapper body {\n padding: 0px;\n margin: 0px;\n height: 100%;\n width: 100%;\n overflow: hidden;\n}\n\n.jmap_wrapper .jmapcloud-ng-map {\n max-height: 100%;\n min-height: 100%;\n}\n\n.jmap_wrapper .jmapcloud-ng-layout {\n max-height: 100%;\n max-width: 100%;\n min-height: 100%;\n position: absolute;\n top: 0px;\n left: 0px;\n z-index: 4;\n}\n\n.jmap_wrapper .jmapcloud-ng-mouseover-edit-icon {\n background-image: url("+d+");\n background-repeat: no-repeat;\n background-position: center;\n background-size: cover;\n width: 1rem;\n height: 1rem;\n filter: opacity(.7);\n}\n\n.jmap_wrapper .jmapcloud-ng-mouseover-edit-icon:hover {\n cursor: pointer;\n filter: opacity(1);\n}\n",""]),t.Z=p},82751:function(e,t,r){"use strict";var n=r(8081),o=r.n(n),a=r(23645),c=r.n(a),u=r(61667),f=r.n(u),s=new URL(r(22812),r.b),l=new URL(r(36682),r.b),p=new URL(r(18978),r.b),d=new URL(r(44342),r.b),_=new URL(r(74754),r.b),h=new URL(r(51774),r.b),w=new URL(r(97802),r.b),b=new URL(r(5239),r.b),m=new URL(r(67053),r.b),y=new URL(r(82811),r.b),v=new URL(r(95069),r.b),g=new URL(r(99366),r.b),x=new URL(r(55121),r.b),k=new URL(r(55352),r.b),E=new URL(r(38660),r.b),I=new URL(r(41946),r.b),L=new URL(r(6719),r.b),q=new URL(r(21234),r.b),S=new URL(r(89226),r.b),M=new URL(r(52528),r.b),B=new URL(r(62402),r.b),j=new URL(r(79666),r.b),R=new URL(r(69713),r.b),A=new URL(r(83961),r.b),O=new URL(r(32973),r.b),T=new URL(r(97539),r.b),U=new URL(r(29167),r.b),P=new URL(r(23636),r.b),C=new URL(r(53534),r.b),G=new URL(r(23553),r.b),F=new URL(r(49043),r.b),Z=new URL(r(95879),r.b),N=c()(o()),D=f()(s),J=f()(s,{hash:"?#iefix"}),W=f()(l),z=f()(p),H=f()(d),Y=f()(_),Q=f()(_,{hash:"?#iefix"}),$=f()(h),K=f()(w),V=f()(b),X=f()(m),ee=f()(m,{hash:"?#iefix"}),te=f()(y),re=f()(v),ne=f()(g),oe=f()(x),ie=f()(x,{hash:"?#iefix"}),ae=f()(k),ce=f()(E),ue=f()(I),fe=f()(L),se=f()(L,{hash:"?#iefix"}),le=f()(q),pe=f()(S),de=f()(M),_e=f()(B),he=f()(B,{hash:"?#iefix"}),we=f()(j),be=f()(R),me=f()(A),ye=f()(O),ve=f()(O,{hash:"?#iefix"}),ge=f()(T),xe=f()(U),ke=f()(P),Ee=f()(C),Ie=f()(C,{hash:"?#iefix"}),Le=f()(G),qe=f()(F),Se=f()(Z);N.push([e.id,'/* barlow-300 - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: normal;\n font-weight: 300;\n src: url('+D+'); /* IE9 Compat Modes */\n src: local("Barlow Light"), local("Barlow-Light"),\n url('+J+') format("embedded-opentype") /* IE6-IE8 */,\n url('+W+') format("woff2") /* Super Modern Browsers */,\n url('+z+') format("woff") /* Modern Browsers */,\n url('+H+') format("truetype"); /* Safari, Android, iOS */\n}\n/* barlow-300italic - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: italic;\n font-weight: 300;\n src: url('+Y+'); /* IE9 Compat Modes */\n src: local("Barlow Light Italic"), local("Barlow-LightItalic"),\n url('+Q+') format("embedded-opentype") /* IE6-IE8 */,\n url('+$+') format("woff2") /* Super Modern Browsers */,\n url('+K+') format("woff") /* Modern Browsers */,\n url('+V+') format("truetype"); /* Safari, Android, iOS */\n}\n/* barlow-regular (400) - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: normal;\n font-weight: 400;\n src: url('+X+'); /* IE9 Compat Modes */\n src: local("Barlow Regular"), local("Barlow-Regular") /* IE6-IE8 */,\n url('+ee+') format("embedded-opentype"),\n url('+te+') format("woff2") /* Super Modern Browsers */,\n url('+re+') format("woff") /* Modern Browsers */,\n url('+ne+') format("truetype"); /* Safari, Android, iOS */\n}\n/* barlow-italic (400) - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: italic;\n font-weight: 400;\n src: url('+oe+'); /* IE9 Compat Modes */\n src: local("Barlow Italic"), local("Barlow-Italic"),\n url('+ie+') format("embedded-opentype") /* IE6-IE8 */,\n url('+ae+') format("woff2") /* Super Modern Browsers */,\n url('+ce+') format("woff") /* Modern Browsers */,\n url('+ue+') format("truetype"); /* Safari, Android, iOS */\n}\n/* barlow-500 - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: normal;\n font-weight: 500;\n src: url('+fe+'); /* IE9 Compat Modes */\n src: local("Barlow Medium"), local("Barlow-Medium"),\n url('+se+') format("embedded-opentype") /* IE6-IE8 */,\n url('+le+') format("woff2") /* Super Modern Browsers */,\n url('+pe+') format("woff") /* Modern Browsers */,\n url('+de+') format("truetype"); /* Safari, Android, iOS */\n}\n/* barlow-500italic - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: italic;\n font-weight: 500;\n src: url('+_e+') /* IE9 Compat Modes */;\n src: local("Barlow Medium Italic"), local("Barlow-MediumItalic"),\n url('+he+') format("embedded-opentype") /* IE6-IE8 */,\n url('+we+') format("woff2") /* Super Modern Browsers */,\n url('+be+') format("woff") /* Modern Browsers */,\n url('+me+') format("truetype") /* Safari, Android, iOS */;\n}\n/* barlow-700 - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: normal;\n font-weight: 700;\n src: url('+ye+'); /* IE9 Compat Modes */\n src: local("Barlow Bold"), local("Barlow-Bold"),\n url('+ve+') format("embedded-opentype") /* IE6-IE8 */,\n url('+ge+') format("woff2") /* Super Modern Browsers */,\n url('+xe+') format("woff") /* Modern Browsers */,\n url('+ke+') format("truetype") /* Safari, Android, iOS */;\n}\n/* barlow-700italic - latin-ext_latin */\n@font-face {\n font-family: "Barlow";\n font-style: italic;\n font-weight: 700;\n src: url('+Ee+'); /* IE9 Compat Modes */\n src: local("Barlow Bold Italic"), local("Barlow-BoldItalic"),\n url('+Ie+') format("embedded-opentype") /* IE6-IE8 */,\n url('+Le+') format("woff2") /* Super Modern Browsers */,\n url('+qe+') format("woff") /* Modern Browsers */,\n url('+Se+') format("truetype") /* Safari, Android, iOS */;\n}\n',""]),t.Z=N},23645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function toString(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function i(e,r,n,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var c={};if(n)for(var u=0;u<this.length;u++){var f=this[u][0];null!=f&&(c[f]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);n&&c[l[0]]||(void 0!==a&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=a),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),t.push(l))}},t}},61667:function(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8081:function(e){"use strict";e.exports=function(e){return e[1]}},35666:function(e){var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function define(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{define({},"")}catch(e){define=function(e,t,r){return e[t]=r}}function wrap(e,t,r,n){var a=t&&t.prototype instanceof Generator?t:Generator,c=Object.create(a.prototype),u=new Context(n||[]);return o(c,"_invoke",{value:makeInvokeMethod(e,r,u)}),c}function tryCatch(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=wrap;var s="suspendedStart",l="suspendedYield",p="executing",d="completed",_={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var h={};define(h,c,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(values([])));b&&b!==r&&n.call(b,c)&&(h=b);var m=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(h);function defineIteratorMethods(e){["next","throw","return"].forEach((function(t){define(e,t,(function(e){return this._invoke(t,e)}))}))}function AsyncIterator(e,t){function invoke(r,o,a,c){var u=tryCatch(e[r],e,o);if("throw"!==u.type){var f=u.arg,s=f.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){invoke("next",e,a,c)}),(function(e){invoke("throw",e,a,c)})):t.resolve(s).then((function(e){f.value=e,a(f)}),(function(e){return invoke("throw",e,a,c)}))}c(u.arg)}var r;o(this,"_invoke",{value:function enqueue(e,n){function callInvokeWithMethodAndArg(){return new t((function(t,r){invoke(e,n,t,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=s;return function invoke(a,c){if(o===p)throw new Error("Generator is already running");if(o===d){if("throw"===a)throw c;return function doneResult(){return{value:t,done:!0}}()}for(n.method=a,n.arg=c;;){var u=n.delegate;if(u){var f=maybeInvokeDelegate(u,n);if(f){if(f===_)continue;return f}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===s)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var h=tryCatch(e,r,n);if("normal"===h.type){if(o=n.done?d:l,h.arg===_)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(o=d,n.method="throw",n.arg=h.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),_;var a=tryCatch(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,_;var c=a.arg;return c?c.done?(r[e.resultName]=c.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,_):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,_)}function pushTryEntry(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function resetTryEntry(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Context(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(m,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,f,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===GeneratorFunction||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,define(e,f,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,u,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var c=new AsyncIterator(wrap(t,r,n,o),a);return e.isGeneratorFunction(r)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},defineIteratorMethods(m),define(m,f,"Generator"),define(m,c,(function(){return this})),define(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function next(){for(;r.length;){var e=r.pop();if(e in t)return next.value=e,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function handle(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return handle("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(u&&f){if(this.prev<a.catchLoc)return handle(a.catchLoc,!0);if(this.prev<a.finallyLoc)return handle(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return handle(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return handle(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=t,a?(this.method="next",this.next=a.finallyLoc,_):this.complete(c)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),_},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),_}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},93379:function(e){"use strict";var t=[];function getIndexByIdentifier(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function modulesToDom(e,r){for(var n={},o=[],a=0;a<e.length;a++){var c=e[a],u=r.base?c[0]+r.base:c[0],f=n[u]||0,s="".concat(u," ").concat(f);n[u]=f+1;var l=getIndexByIdentifier(s),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==l)t[l].references++,t[l].updater(p);else{var d=addElementStyle(p,r);r.byIndex=a,t.splice(a,0,{identifier:s,updater:d,references:1})}o.push(s)}return o}function addElementStyle(e,t){var r=t.domAPI(t);r.update(e);return function updater(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,r){var n=modulesToDom(e=e||[],r=r||{});return function update(e){e=e||[];for(var o=0;o<n.length;o++){var a=getIndexByIdentifier(n[o]);t[a].references--}for(var c=modulesToDom(e,r),u=0;u<n.length;u++){var f=getIndexByIdentifier(n[u]);0===t[f].references&&(t[f].updater(),t.splice(f,1))}n=c}}},90569:function(e){"use strict";var t={};e.exports=function insertBySelector(e,r){var n=function getTarget(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},19216:function(e){"use strict";e.exports=function insertStyleElement(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:function(e,t,r){"use strict";e.exports=function setAttributesWithoutAttributes(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7795:function(e){"use strict";e.exports=function domAPI(e){if("undefined"==typeof document)return{update:function update(){},remove:function remove(){}};var t=e.insertStyleElement(e);return{update:function update(r){!function apply(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function remove(){!function removeStyleElement(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},44589:function(e){"use strict";e.exports=function styleTagTransform(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},22812:function(e,t,r){"use strict";e.exports=r.p+"e29c61ea7a5baabf5f4e.eot"},44342:function(e,t,r){"use strict";e.exports=r.p+"62df9be6c862d273e849.ttf"},18978:function(e,t,r){"use strict";e.exports=r.p+"6be4a9aff03c67e671d8.woff"},36682:function(e,t,r){"use strict";e.exports=r.p+"8b70e6d02996d24fbe26.woff2"},74754:function(e,t,r){"use strict";e.exports=r.p+"67e73a1cc6b8251e3ce1.eot"},5239:function(e,t,r){"use strict";e.exports=r.p+"9cd8b1aa87f79ba5fa0d.ttf"},97802:function(e,t,r){"use strict";e.exports=r.p+"c3d30fdfede822039221.woff"},51774:function(e,t,r){"use strict";e.exports=r.p+"f8f61d01e9d0e645f832.woff2"},6719:function(e,t,r){"use strict";e.exports=r.p+"e8f262034b5631a64a0b.eot"},52528:function(e,t,r){"use strict";e.exports=r.p+"78deb69247b11dfaef82.ttf"},89226:function(e,t,r){"use strict";e.exports=r.p+"777e7e6fe2378aaae24f.woff"},21234:function(e,t,r){"use strict";e.exports=r.p+"ba7c7a40fbe1f44f9479.woff2"},62402:function(e,t,r){"use strict";e.exports=r.p+"e2a6ddee443d4e6cf1ed.eot"},83961:function(e,t,r){"use strict";e.exports=r.p+"b5165670c231fb850519.ttf"},69713:function(e,t,r){"use strict";e.exports=r.p+"25a7d7975ef0d3ef388a.woff"},79666:function(e,t,r){"use strict";e.exports=r.p+"661f40a1301ccb4a3902.woff2"},32973:function(e,t,r){"use strict";e.exports=r.p+"c7d002dea1093108b8de.eot"},23636:function(e,t,r){"use strict";e.exports=r.p+"fd850adaa0518f36b06d.ttf"},29167:function(e,t,r){"use strict";e.exports=r.p+"ce8277efba6b7e0a2a5c.woff"},97539:function(e,t,r){"use strict";e.exports=r.p+"d0dd3909312ceba37118.woff2"},53534:function(e,t,r){"use strict";e.exports=r.p+"879e91ad82b5b535cf0c.eot"},95879:function(e,t,r){"use strict";e.exports=r.p+"1ee5ef3f7b69d0e1a043.ttf"},49043:function(e,t,r){"use strict";e.exports=r.p+"4c795b2381e21dab3d48.woff"},23553:function(e,t,r){"use strict";e.exports=r.p+"285533c63e34641da323.woff2"},55121:function(e,t,r){"use strict";e.exports=r.p+"70c5533fa86bfec6a286.eot"},41946:function(e,t,r){"use strict";e.exports=r.p+"20810ee7649dffced61b.ttf"},38660:function(e,t,r){"use strict";e.exports=r.p+"ec1879956d06705c8df1.woff"},55352:function(e,t,r){"use strict";e.exports=r.p+"5202701c84b3fa4d7fab.woff2"},67053:function(e,t,r){"use strict";e.exports=r.p+"33701469cd0541b0e782.eot"},99366:function(e,t,r){"use strict";e.exports=r.p+"6d63cfd120fdbf1c4eb9.ttf"},95069:function(e,t,r){"use strict";e.exports=r.p+"2eda83a40af3d9412dce.woff"},82811:function(e,t,r){"use strict";e.exports=r.p+"99a52b75db400feaff73.woff2"},49687:function(e,t,r){"use strict";e.exports=r.p+"c0a6afd920480085c043.png"},30926:function(e,t,r){"use strict";function _newArrowCheck(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}r.d(t,{Z:function(){return _newArrowCheck}})}},a={};function __webpack_require__(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.m=o,__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},__webpack_require__.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);__webpack_require__.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var c=2&n&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach((function(e){a[e]=function(){return r[e]}}));return a.default=function(){return r},__webpack_require__.d(o,a),o},__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(t,r){return __webpack_require__.f[r](e,t),t}),[]))},__webpack_require__.u=function(e){return e+"."+{105:"5e536d565eb5cb57a55a",120:"0754159ac549a9bfc9a7",158:"1d22eab510c81f05efd0",168:"34a9acb4e98d443e1ad9",298:"5fd02571e384827193a2",305:"da795abfa09e11216556",417:"78709243b86a132f0935",856:"eb5cb423896ff4359cae",894:"e6a931e7d006e81ac8c4",958:"22aff38793d0476be62e"}[e]+".js"},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},n="jmapcloud-ng:",__webpack_require__.l=function(e,t,o,a){if(r[e])r[e].push(t);else{var c,u;if(void 0!==o)for(var f=document.getElementsByTagName("script"),s=0;s<f.length;s++){var l=f[s];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==n+o){c=l;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,__webpack_require__.nc&&c.setAttribute("nonce",__webpack_require__.nc),c.setAttribute("data-webpack",n+o),c.src=e),r[e]=[t];var onScriptComplete=function(t,n){c.onerror=c.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=onScriptComplete.bind(null,c.onerror),c.onload=onScriptComplete.bind(null,c.onload),u&&document.head.appendChild(c)}},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},__webpack_require__.p="https://cdn.jsdelivr.net/npm/jmapcloud-ng@0.4.3/public/",function(){__webpack_require__.b=document.baseURI||self.location.href;var e={826:0};__webpack_require__.f.j=function(t,r){var n=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((function(r,o){n=e[t]=[r,o]}));r.push(n[2]=o);var a=__webpack_require__.p+__webpack_require__.u(t),c=new Error;__webpack_require__.l(a,(function(r){if(__webpack_require__.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,n[1](c)}}),"chunk-"+t,t)}};var webpackJsonpCallback=function(t,r){var n,o,a=r[0],c=r[1],u=r[2],f=0;if(a.some((function(t){return 0!==e[t]}))){for(n in c)__webpack_require__.o(c,n)&&(__webpack_require__.m[n]=c[n]);if(u)u(__webpack_require__)}for(t&&t(r);f<a.length;f++)o=a[f],__webpack_require__.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunkjmapcloud_ng=self.webpackChunkjmapcloud_ng||[];t.forEach(webpackJsonpCallback.bind(null,0)),t.push=webpackJsonpCallback.bind(null,t.push.bind(t))}(),__webpack_require__.nc=void 0,function(){"use strict";var e=__webpack_require__(30926);__webpack_require__(35666);var t=__webpack_require__(93379),r=__webpack_require__.n(t),n=__webpack_require__(7795),o=__webpack_require__.n(n),a=__webpack_require__(90569),c=__webpack_require__.n(a),u=__webpack_require__(3565),f=__webpack_require__.n(u),s=__webpack_require__(19216),l=__webpack_require__.n(s),p=__webpack_require__(44589),d=__webpack_require__.n(p),_=__webpack_require__(88874),h={};h.styleTagTransform=d(),h.setAttributes=f(),h.insert=c().bind(null,"head"),h.domAPI=o(),h.insertStyleElement=l();r()(_.Z,h),_.Z&&_.Z.locals&&_.Z.locals;var w=__webpack_require__(52734);var b=void 0;!function isSelectionPage(){let e="";window.location.search&&window.location.search.length>1&&(e=window.location.search.substring(1));const t=function getParametersFromString(e){const t={};if(!e||e.length<1)return t;const r=e.split("&");for(const e of r){const r=e.split("=");r.length<2||(t[decodeURI(r[0])]=decodeURI(r[1]))}return t}(e);return!!t.hasOwnProperty(w.p)&&"true"===t[w.p]}()?function loadscript(t){var r=this;return new Promise(function(n,o){var a=this;(0,e.Z)(this,r);try{const r=document.createElement("script");r.onload=function(){return(0,e.Z)(this,a),n()}.bind(this),r.onerror=function(){return(0,e.Z)(this,a),o()}.bind(this),r.src=t,document.head.appendChild(r)}catch(e){o(e)}}.bind(this))}("https://cdn.jsdelivr.net/npm/jmapcloud-ng-core@0.4.4/public/index.js").then(function(){var t=this;return(0,e.Z)(this,b),Promise.all([__webpack_require__.e(158),__webpack_require__.e(958),__webpack_require__.e(305),__webpack_require__.e(417)]).then(__webpack_require__.bind(__webpack_require__,56148)).then(function(r){return(0,e.Z)(this,t),r.start()}.bind(this)).catch(function(r){return(0,e.Z)(this,t),console.error("Cannot load start method !",r)}.bind(this))}.bind(void 0)).catch(function(t){return(0,e.Z)(this,b),console.error(t)}.bind(void 0)):Promise.all([__webpack_require__.e(158),__webpack_require__.e(305),__webpack_require__.e(298)]).then(__webpack_require__.bind(__webpack_require__,28298)).then(function(t){(0,e.Z)(this,b);const r=window.opener;r&&r.JMap?(window.JMap=r.JMap,t.startSelectionPage()):alert("This page must be opened only from JMap App")}.bind(void 0)).catch(function(t){return(0,e.Z)(this,b),console.error("Cannot load startSelectionPage method !",t)}.bind(void 0))}()}();
package/syncAndBuild.sh CHANGED
@@ -19,7 +19,7 @@ else
19
19
  # This part is meant to run on your local dev machine
20
20
  SSH_HOST="k2geo@${1}.jmapcloud.io"
21
21
 
22
- RSYNC_OPTIONS=(-a -v --delete --exclude="node_modules" --exclude="public" --exclude=".git" --exclude="build/env-config.js")
22
+ RSYNC_OPTIONS=(-a -v --delete --exclude="node_modules" --exclude="public" --exclude=".git")
23
23
  RSYNC_SOURCE="."
24
24
  RSYNC_DESTINATION="${SSH_HOST}:${SERVICE_NAME}"
25
25
 
@@ -1 +0,0 @@
1
- (self.webpackChunk=self.webpackChunk||[]).push([[455],{18758:function(h,g,d){"use strict";var f=d(45089),x=d(3060),b=d(95974),P=d(82871),E=TypeError,createMethod=function(h){return function(g,d,S,w){f(d);var C=x(g),A=b(C),M=P(C),_=h?M-1:0,N=h?-1:1;if(S<2)for(;;){if(_ in A){w=A[_],_+=N;break}if(_+=N,h?_<0:M<=_)throw E("Reduce of empty array with no initial value")}for(;h?_>=0:M>_;_+=N)_ in A&&(w=d(w,A[_],_,C));return w}};h.exports={left:createMethod(!1),right:createMethod(!0)}},94274:function(h,g,d){"use strict";var f=d(94398).PROPER,x=d(63677),b=d(59439);h.exports=function(h){return x((function(){return!!b[h]()||"​…᠎"!=="​…᠎"[h]()||f&&b[h].name!==h}))}},74080:function(h,g,d){"use strict";var f=d(78240),x=d(69586),b=d(64059),P=d(59439),E=f("".replace),S=RegExp("^["+P+"]+"),w=RegExp("(^|[^"+P+"])["+P+"]+$"),createMethod=function(h){return function(g){var d=b(x(g));return 1&h&&(d=E(d,S,"")),2&h&&(d=E(d,w,"$1")),d}};h.exports={start:createMethod(1),end:createMethod(2),trim:createMethod(3)}},59439:function(h){"use strict";h.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},27471:function(h,g,d){"use strict";var f=d(51695),x=d(91175),b=d(56198).indexOf,P=d(72802),E=x([].indexOf),S=!!E&&1/E([1],1,-0)<0;f({target:"Array",proto:!0,forced:S||!P("indexOf")},{indexOf:function indexOf(h){var g=arguments.length>1?arguments[1]:void 0;return S?E(this,h,g)||0:b(this,h,g)}})},73902:function(h,g,d){"use strict";var f=d(51695),x=d(18758).left,b=d(72802),P=d(21448);f({target:"Array",proto:!0,forced:!d(81801)&&P>79&&P<83||!b("reduce")},{reduce:function reduce(h){var g=arguments.length;return x(this,h,g,g>1?arguments[1]:void 0)}})},60190:function(h,g,d){"use strict";var f=d(51695),x=d(78240),b=d(46526),P=x([].reverse),E=[1,2];f({target:"Array",proto:!0,forced:String(E)===String(E.reverse())},{reverse:function reverse(){return b(this)&&(this.length=this.length),P(this)}})},95289:function(h,g,d){"use strict";var f,x=d(51695),b=d(91175),P=d(94399).f,E=d(24005),S=d(64059),w=d(77725),C=d(69586),A=d(75469),M=d(43296),_=b("".endsWith),N=b("".slice),V=Math.min,R=A("endsWith");x({target:"String",proto:!0,forced:!!(M||R||(f=P(String.prototype,"endsWith"),!f||f.writable))&&!R},{endsWith:function endsWith(h){var g=S(C(this));w(h);var d=arguments.length>1?arguments[1]:void 0,f=g.length,x=void 0===d?f:V(E(d),f),b=S(h);return _?_(g,b,x):N(g,x-b.length,x)===b}})},1203:function(h,g,d){"use strict";var f=d(59413),x=d(82331),b=d(56112),P=d(71858),E=d(24005),S=d(64059),w=d(69586),C=d(2964),A=d(99966),M=d(31189);x("match",(function(h,g,d){return[function match(g){var d=w(this),x=P(g)?void 0:C(g,h);return x?f(x,g,d):new RegExp(g)[h](S(d))},function(h){var f=b(this),x=S(h),P=d(g,f,x);if(P.done)return P.value;if(!f.global)return M(f,x);var w=f.unicode;f.lastIndex=0;for(var C,_=[],N=0;null!==(C=M(f,x));){var V=S(C[0]);_[N]=V,""===V&&(f.lastIndex=A(x,E(f.lastIndex),w)),N++}return 0===N?null:_}]}))},72482:function(h,g,d){"use strict";var f=d(67258),x=d(59413),b=d(78240),P=d(82331),E=d(56112),S=d(71858),w=d(67994),C=d(69586),A=d(48515),M=d(99966),_=d(24005),N=d(64059),V=d(2964),R=d(83329),k=d(31189),D=d(84861),B=d(94930),L=d(63677),F=B.UNSUPPORTED_Y,z=4294967295,U=Math.min,X=[].push,G=b(/./.exec),Y=b(X),j=b("".slice),Q=!L((function(){var h=/(?:)/,g=h.exec;h.exec=function(){return g.apply(this,arguments)};var d="ab".split(h);return 2!==d.length||"a"!==d[0]||"b"!==d[1]}));P("split",(function(h,g,d){var b;return b="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(h,d){var b=N(C(this)),P=void 0===d?z:d>>>0;if(0===P)return[];if(void 0===h)return[b];if(!w(h))return x(g,b,h,P);for(var E,S,A,M=[],_=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),V=0,k=new RegExp(h.source,_+"g");(E=x(D,k,b))&&!((S=k.lastIndex)>V&&(Y(M,j(b,V,E.index)),E.length>1&&E.index<b.length&&f(X,M,R(E,1)),A=E[0].length,V=S,M.length>=P));)k.lastIndex===E.index&&k.lastIndex++;return V===b.length?!A&&G(k,"")||Y(M,""):Y(M,j(b,V)),M.length>P?R(M,0,P):M}:"0".split(void 0,0).length?function(h,d){return void 0===h&&0===d?[]:x(g,this,h,d)}:g,[function split(g,d){var f=C(this),P=S(g)?void 0:V(g,h);return P?x(P,g,f,d):x(b,N(f),g,d)},function(h,f){var x=E(this),P=N(h),S=d(b,x,P,f,b!==g);if(S.done)return S.value;var w=A(x,RegExp),C=x.unicode,V=(x.ignoreCase?"i":"")+(x.multiline?"m":"")+(x.unicode?"u":"")+(F?"g":"y"),R=new w(F?"^(?:"+x.source+")":x,V),D=void 0===f?z:f>>>0;if(0===D)return[];if(0===P.length)return null===k(R,P)?[P]:[];for(var B=0,L=0,X=[];L<P.length;){R.lastIndex=F?0:L;var G,Q=k(R,F?j(P,L):P);if(null===Q||(G=U(_(R.lastIndex+(F?L:0)),P.length))===B)L=M(P,L,C);else{if(Y(X,j(P,B,L)),X.length===D)return X;for(var W=1;W<=Q.length-1;W++)if(Y(X,Q[W]),X.length===D)return X;L=B=G}}return Y(X,j(P,B)),X}]}),!Q,F)},90938:function(h,g,d){"use strict";var f,x=d(51695),b=d(91175),P=d(94399).f,E=d(24005),S=d(64059),w=d(77725),C=d(69586),A=d(75469),M=d(43296),_=b("".startsWith),N=b("".slice),V=Math.min,R=A("startsWith");x({target:"String",proto:!0,forced:!!(M||R||(f=P(String.prototype,"startsWith"),!f||f.writable))&&!R},{startsWith:function startsWith(h){var g=S(C(this));w(h);var d=E(V(arguments.length>1?arguments[1]:void 0,g.length)),f=S(h);return _?_(g,f,d):N(g,d,d+f.length)===f}})},20266:function(h,g,d){"use strict";var f=d(51695),x=d(74080).trim;f({target:"String",proto:!0,forced:d(94274)("trim")},{trim:function trim(){return x(this)}})},16948:function(h){(function(){var g,d,f,x,b,P;"undefined"!=typeof performance&&null!==performance&&performance.now?h.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(h.exports=function(){return(g()-b)/1e6},d=process.hrtime,x=(g=function(){var h;return 1e9*(h=d())[0]+h[1]})(),P=1e9*process.uptime(),b=x-P):Date.now?(h.exports=function(){return Date.now()-f},f=Date.now()):(h.exports=function(){return(new Date).getTime()-f},f=(new Date).getTime())}).call(this)},5026:function(h,g,d){for(var f=d(16948),x="undefined"==typeof window?d.g:window,b=["moz","webkit"],P="AnimationFrame",E=x["request"+P],S=x["cancel"+P]||x["cancelRequest"+P],w=0;!E&&w<b.length;w++)E=x[b[w]+"Request"+P],S=x[b[w]+"Cancel"+P]||x[b[w]+"CancelRequest"+P];if(!E||!S){var C=0,A=0,M=[];E=function(h){if(0===M.length){var g=f(),d=Math.max(0,16.666666666666668-(g-C));C=d+g,setTimeout((function(){var h=M.slice(0);M.length=0;for(var g=0;g<h.length;g++)if(!h[g].cancelled)try{h[g].callback(C)}catch(h){setTimeout((function(){throw h}),0)}}),Math.round(d))}return M.push({handle:++A,callback:h,cancelled:!1}),A},S=function(h){for(var g=0;g<M.length;g++)M[g].handle===h&&(M[g].cancelled=!0)}}h.exports=function(h){return E.call(x,h)},h.exports.cancel=function(){S.apply(x,arguments)},h.exports.polyfill=function(h){h||(h=x),h.requestAnimationFrame=E,h.cancelAnimationFrame=S}},67326:function(h){h.exports=function(h){this.ok=!1,this.alpha=1,"#"==h.charAt(0)&&(h=h.substr(1,6)),h=(h=h.replace(/ /g,"")).toLowerCase();var g={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};h=g[h]||h;for(var d=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3]),parseFloat(h[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],f=0;f<d.length;f++){var x=d[f].re,b=d[f].process,P=x.exec(h);if(P){var E=b(P);this.r=E[0],this.g=E[1],this.b=E[2],E.length>3&&(this.alpha=E[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var h=this.r.toString(16),g=this.g.toString(16),d=this.b.toString(16);return 1==h.length&&(h="0"+h),1==g.length&&(g="0"+g),1==d.length&&(d="0"+d),"#"+h+g+d},this.getHelpXML=function(){for(var h=new Array,f=0;f<d.length;f++)for(var x=d[f].example,b=0;b<x.length;b++)h[h.length]=x[b];for(var P in g)h[h.length]=P;var E=document.createElement("ul");E.setAttribute("id","rgbcolor-examples");for(f=0;f<h.length;f++)try{var S=document.createElement("li"),w=new RGBColor(h[f]),C=document.createElement("div");C.style.cssText="margin: 3px; border: 1px solid black; background:"+w.toHex()+"; color:"+w.toHex(),C.appendChild(document.createTextNode("test"));var A=document.createTextNode(" "+h[f]+" -> "+w.toRGB()+" -> "+w.toHex());S.appendChild(C),S.appendChild(A),E.appendChild(S)}catch(h){}return E}}},64649:function(h,g,d){"use strict";d.d(g,{Z:function(){return _defineProperty}});var f=d(55217);function _defineProperty(h,g,d){return(g=(0,f.Z)(g))in h?Object.defineProperty(h,g,{value:d,enumerable:!0,configurable:!0,writable:!0}):h[g]=d,h}},55217:function(h,g,d){"use strict";d.d(g,{Z:function(){return _toPropertyKey}});var f=d(33940);function _toPropertyKey(h){var g=function _toPrimitive(h,g){if("object"!==(0,f.Z)(h)||null===h)return h;var d=h[Symbol.toPrimitive];if(void 0!==d){var x=d.call(h,g||"default");if("object"!==(0,f.Z)(x))return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===g?String:Number)(h)}(h,"string");return"symbol"===(0,f.Z)(g)?g:String(g)}},96455:function(h,g,d){"use strict";d.r(g),d.d(g,{AElement:function(){return AElement},AnimateColorElement:function(){return AnimateColorElement},AnimateElement:function(){return AnimateElement},AnimateTransformElement:function(){return AnimateTransformElement},BoundingBox:function(){return BoundingBox},CB1:function(){return CB1},CB2:function(){return CB2},CB3:function(){return CB3},CB4:function(){return CB4},Canvg:function(){return Canvg},CircleElement:function(){return CircleElement},ClipPathElement:function(){return ClipPathElement},DefsElement:function(){return DefsElement},DescElement:function(){return DescElement},Document:function(){return Document},Element:function(){return Element},EllipseElement:function(){return EllipseElement},FeColorMatrixElement:function(){return FeColorMatrixElement},FeCompositeElement:function(){return FeCompositeElement},FeDropShadowElement:function(){return FeDropShadowElement},FeGaussianBlurElement:function(){return FeGaussianBlurElement},FeMorphologyElement:function(){return FeMorphologyElement},FilterElement:function(){return FilterElement},Font:function(){return Font},FontElement:function(){return FontElement},FontFaceElement:function(){return FontFaceElement},GElement:function(){return GElement},GlyphElement:function(){return GlyphElement},GradientElement:function(){return GradientElement},ImageElement:function(){return ImageElement},LineElement:function(){return LineElement},LinearGradientElement:function(){return LinearGradientElement},MarkerElement:function(){return MarkerElement},MaskElement:function(){return MaskElement},Matrix:function(){return Matrix},MissingGlyphElement:function(){return MissingGlyphElement},Mouse:function(){return Mouse},PSEUDO_ZERO:function(){return j},Parser:function(){return Parser},PathElement:function(){return PathElement},PathParser:function(){return PathParser},PatternElement:function(){return PatternElement},Point:function(){return Point},PolygonElement:function(){return PolygonElement},PolylineElement:function(){return PolylineElement},Property:function(){return Property},QB1:function(){return QB1},QB2:function(){return QB2},QB3:function(){return QB3},RadialGradientElement:function(){return RadialGradientElement},RectElement:function(){return RectElement},RenderedElement:function(){return RenderedElement},Rotate:function(){return Rotate},SVGElement:function(){return SVGElement},SVGFontLoader:function(){return SVGFontLoader},Scale:function(){return Scale},Screen:function(){return Screen},Skew:function(){return Skew},SkewX:function(){return SkewX},SkewY:function(){return SkewY},StopElement:function(){return StopElement},StyleElement:function(){return StyleElement},SymbolElement:function(){return SymbolElement},TRefElement:function(){return TRefElement},TSpanElement:function(){return TSpanElement},TextElement:function(){return TextElement},TextPathElement:function(){return TextPathElement},TitleElement:function(){return TitleElement},Transform:function(){return Transform},Translate:function(){return Translate},UnknownElement:function(){return UnknownElement},UseElement:function(){return UseElement},ViewPort:function(){return ViewPort},compressSpaces:function(){return compressSpaces},default:function(){return Canvg},getSelectorSpecificity:function(){return getSelectorSpecificity},normalizeAttributeName:function(){return normalizeAttributeName},normalizeColor:function(){return normalizeColor},parseExternalUrl:function(){return parseExternalUrl},presets:function(){return D},toNumbers:function(){return toNumbers},trimLeft:function(){return trimLeft},trimRight:function(){return trimRight},vectorMagnitude:function(){return vectorMagnitude},vectorsAngle:function(){return vectorsAngle},vectorsRatio:function(){return vectorsRatio}});d(61418);function asyncGeneratorStep(h,g,d,f,x,b,P){try{var E=h[b](P),S=E.value}catch(h){return void d(h)}E.done?g(S):Promise.resolve(S).then(f,x)}function _asyncToGenerator(h){return function(){var g=this,d=arguments;return new Promise((function(f,x){var b=h.apply(g,d);function _next(h){asyncGeneratorStep(b,f,x,_next,_throw,"next",h)}function _throw(h){asyncGeneratorStep(b,f,x,_next,_throw,"throw",h)}_next(void 0)}))}}d(1203),d(911),d(90938),d(5769),d(14078);var f=d(64649),x=(d(73902),d(95289),d(72482),d(5026)),b=(d(20266),d(67326)),P=(d(27471),d(61514),d(60190),function(h,g){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&(h[d]=g[d])})(h,g)});function r(h,g){if("function"!=typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function i(){this.constructor=h}P(h,g),h.prototype=null===g?Object.create(g):(i.prototype=g.prototype,new i)}function i(h,g){var d=h[0],f=h[1];return[d*Math.cos(g)-f*Math.sin(g),d*Math.sin(g)+f*Math.cos(g)]}function a(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];for(var d=0;d<h.length;d++)if("number"!=typeof h[d])throw new Error("assertNumbers arguments["+d+"] is not a number. "+typeof h[d]+" == typeof "+h[d]);return!0}var E=Math.PI;function o(h,g,d){h.lArcFlag=0===h.lArcFlag?0:1,h.sweepFlag=0===h.sweepFlag?0:1;var f=h.rX,x=h.rY,b=h.x,P=h.y;f=Math.abs(h.rX),x=Math.abs(h.rY);var S=i([(g-b)/2,(d-P)/2],-h.xRot/180*E),w=S[0],C=S[1],A=Math.pow(w,2)/Math.pow(f,2)+Math.pow(C,2)/Math.pow(x,2);1<A&&(f*=Math.sqrt(A),x*=Math.sqrt(A)),h.rX=f,h.rY=x;var M=Math.pow(f,2)*Math.pow(C,2)+Math.pow(x,2)*Math.pow(w,2),_=(h.lArcFlag!==h.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(f,2)*Math.pow(x,2)-M)/M)),N=f*C/x*_,V=-x*w/f*_,R=i([N,V],h.xRot/180*E);h.cX=R[0]+(g+b)/2,h.cY=R[1]+(d+P)/2,h.phi1=Math.atan2((C-V)/x,(w-N)/f),h.phi2=Math.atan2((-C-V)/x,(-w-N)/f),0===h.sweepFlag&&h.phi2>h.phi1&&(h.phi2-=2*E),1===h.sweepFlag&&h.phi2<h.phi1&&(h.phi2+=2*E),h.phi1*=180/E,h.phi2*=180/E}function s(h,g,d){a(h,g,d);var f=h*h+g*g-d*d;if(0>f)return[];if(0===f)return[[h*d/(h*h+g*g),g*d/(h*h+g*g)]];var x=Math.sqrt(f);return[[(h*d+g*x)/(h*h+g*g),(g*d-h*x)/(h*h+g*g)],[(h*d-g*x)/(h*h+g*g),(g*d+h*x)/(h*h+g*g)]]}var S,w=Math.PI/180;function c(h,g,d){return(1-d)*h+d*g}function y(h,g,d,f){return h+Math.cos(f/180*E)*g+Math.sin(f/180*E)*d}function p(h,g,d,f){var x=1e-6,b=g-h,P=d-g,E=3*b+3*(f-d)-6*P,S=6*(P-b),w=3*b;return Math.abs(E)<x?[-w/S]:function(h,g,d){void 0===d&&(d=1e-6);var f=h*h/4-g;if(f<-d)return[];if(f<=d)return[-h/2];var x=Math.sqrt(f);return[-h/2-x,-h/2+x]}(S/E,w/E,x)}function m(h,g,d,f,x){var b=1-x;return h*(b*b*b)+g*(3*b*b*x)+d*(3*b*x*x)+f*(x*x*x)}!function(h){function r(){return u((function(h,g,d){return h.relative&&(void 0!==h.x1&&(h.x1+=g),void 0!==h.y1&&(h.y1+=d),void 0!==h.x2&&(h.x2+=g),void 0!==h.y2&&(h.y2+=d),void 0!==h.x&&(h.x+=g),void 0!==h.y&&(h.y+=d),h.relative=!1),h}))}function e(){var h=NaN,g=NaN,d=NaN,f=NaN;return u((function(x,b,P){return x.type&_.SMOOTH_CURVE_TO&&(x.type=_.CURVE_TO,h=isNaN(h)?b:h,g=isNaN(g)?P:g,x.x1=x.relative?b-h:2*b-h,x.y1=x.relative?P-g:2*P-g),x.type&_.CURVE_TO?(h=x.relative?b+x.x2:x.x2,g=x.relative?P+x.y2:x.y2):(h=NaN,g=NaN),x.type&_.SMOOTH_QUAD_TO&&(x.type=_.QUAD_TO,d=isNaN(d)?b:d,f=isNaN(f)?P:f,x.x1=x.relative?b-d:2*b-d,x.y1=x.relative?P-f:2*P-f),x.type&_.QUAD_TO?(d=x.relative?b+x.x1:x.x1,f=x.relative?P+x.y1:x.y1):(d=NaN,f=NaN),x}))}function n(){var h=NaN,g=NaN;return u((function(d,f,x){if(d.type&_.SMOOTH_QUAD_TO&&(d.type=_.QUAD_TO,h=isNaN(h)?f:h,g=isNaN(g)?x:g,d.x1=d.relative?f-h:2*f-h,d.y1=d.relative?x-g:2*x-g),d.type&_.QUAD_TO){h=d.relative?f+d.x1:d.x1,g=d.relative?x+d.y1:d.y1;var b=d.x1,P=d.y1;d.type=_.CURVE_TO,d.x1=((d.relative?0:f)+2*b)/3,d.y1=((d.relative?0:x)+2*P)/3,d.x2=(d.x+2*b)/3,d.y2=(d.y+2*P)/3}else h=NaN,g=NaN;return d}))}function u(h){var g=0,d=0,f=NaN,x=NaN;return function(b){if(isNaN(f)&&!(b.type&_.MOVE_TO))throw new Error("path must start with moveto");var P=h(b,g,d,f,x);return b.type&_.CLOSE_PATH&&(g=f,d=x),void 0!==b.x&&(g=b.relative?g+b.x:b.x),void 0!==b.y&&(d=b.relative?d+b.y:b.y),b.type&_.MOVE_TO&&(f=g,x=d),P}}function O(h,g,d,f,x,b){return a(h,g,d,f,x,b),u((function(P,E,S,w){var C=P.x1,A=P.x2,M=P.relative&&!isNaN(w),N=void 0!==P.x?P.x:M?0:E,V=void 0!==P.y?P.y:M?0:S;function l(h){return h*h}P.type&_.HORIZ_LINE_TO&&0!==g&&(P.type=_.LINE_TO,P.y=P.relative?0:S),P.type&_.VERT_LINE_TO&&0!==d&&(P.type=_.LINE_TO,P.x=P.relative?0:E),void 0!==P.x&&(P.x=P.x*h+V*d+(M?0:x)),void 0!==P.y&&(P.y=N*g+P.y*f+(M?0:b)),void 0!==P.x1&&(P.x1=P.x1*h+P.y1*d+(M?0:x)),void 0!==P.y1&&(P.y1=C*g+P.y1*f+(M?0:b)),void 0!==P.x2&&(P.x2=P.x2*h+P.y2*d+(M?0:x)),void 0!==P.y2&&(P.y2=A*g+P.y2*f+(M?0:b));var R=h*f-g*d;if(void 0!==P.xRot&&(1!==h||0!==g||0!==d||1!==f))if(0===R)delete P.rX,delete P.rY,delete P.xRot,delete P.lArcFlag,delete P.sweepFlag,P.type=_.LINE_TO;else{var k=P.xRot*Math.PI/180,D=Math.sin(k),B=Math.cos(k),L=1/l(P.rX),F=1/l(P.rY),z=l(B)*L+l(D)*F,U=2*D*B*(L-F),X=l(D)*L+l(B)*F,G=z*f*f-U*g*f+X*g*g,Y=U*(h*f+g*d)-2*(z*d*f+X*h*g),j=z*d*d-U*h*d+X*h*h,Q=(Math.atan2(Y,G-j)+Math.PI)%Math.PI/2,W=Math.sin(Q),q=Math.cos(Q);P.rX=Math.abs(R)/Math.sqrt(G*l(q)+Y*W*q+j*l(W)),P.rY=Math.abs(R)/Math.sqrt(G*l(W)-Y*W*q+j*l(q)),P.xRot=180*Q/Math.PI}return void 0!==P.sweepFlag&&0>R&&(P.sweepFlag=+!P.sweepFlag),P}))}h.ROUND=function(h){function r(g){return Math.round(g*h)/h}return void 0===h&&(h=1e13),a(h),function(h){return void 0!==h.x1&&(h.x1=r(h.x1)),void 0!==h.y1&&(h.y1=r(h.y1)),void 0!==h.x2&&(h.x2=r(h.x2)),void 0!==h.y2&&(h.y2=r(h.y2)),void 0!==h.x&&(h.x=r(h.x)),void 0!==h.y&&(h.y=r(h.y)),void 0!==h.rX&&(h.rX=r(h.rX)),void 0!==h.rY&&(h.rY=r(h.rY)),h}},h.TO_ABS=r,h.TO_REL=function(){return u((function(h,g,d){return h.relative||(void 0!==h.x1&&(h.x1-=g),void 0!==h.y1&&(h.y1-=d),void 0!==h.x2&&(h.x2-=g),void 0!==h.y2&&(h.y2-=d),void 0!==h.x&&(h.x-=g),void 0!==h.y&&(h.y-=d),h.relative=!0),h}))},h.NORMALIZE_HVZ=function(h,g,d){return void 0===h&&(h=!0),void 0===g&&(g=!0),void 0===d&&(d=!0),u((function(f,x,b,P,E){if(isNaN(P)&&!(f.type&_.MOVE_TO))throw new Error("path must start with moveto");return g&&f.type&_.HORIZ_LINE_TO&&(f.type=_.LINE_TO,f.y=f.relative?0:b),d&&f.type&_.VERT_LINE_TO&&(f.type=_.LINE_TO,f.x=f.relative?0:x),h&&f.type&_.CLOSE_PATH&&(f.type=_.LINE_TO,f.x=f.relative?P-x:P,f.y=f.relative?E-b:E),f.type&_.ARC&&(0===f.rX||0===f.rY)&&(f.type=_.LINE_TO,delete f.rX,delete f.rY,delete f.xRot,delete f.lArcFlag,delete f.sweepFlag),f}))},h.NORMALIZE_ST=e,h.QT_TO_C=n,h.INFO=u,h.SANITIZE=function(h){void 0===h&&(h=0),a(h);var g=NaN,d=NaN,f=NaN,x=NaN;return u((function(b,P,E,S,w){var C=Math.abs,A=!1,M=0,N=0;if(b.type&_.SMOOTH_CURVE_TO&&(M=isNaN(g)?0:P-g,N=isNaN(d)?0:E-d),b.type&(_.CURVE_TO|_.SMOOTH_CURVE_TO)?(g=b.relative?P+b.x2:b.x2,d=b.relative?E+b.y2:b.y2):(g=NaN,d=NaN),b.type&_.SMOOTH_QUAD_TO?(f=isNaN(f)?P:2*P-f,x=isNaN(x)?E:2*E-x):b.type&_.QUAD_TO?(f=b.relative?P+b.x1:b.x1,x=b.relative?E+b.y1:b.y2):(f=NaN,x=NaN),b.type&_.LINE_COMMANDS||b.type&_.ARC&&(0===b.rX||0===b.rY||!b.lArcFlag)||b.type&_.CURVE_TO||b.type&_.SMOOTH_CURVE_TO||b.type&_.QUAD_TO||b.type&_.SMOOTH_QUAD_TO){var V=void 0===b.x?0:b.relative?b.x:b.x-P,R=void 0===b.y?0:b.relative?b.y:b.y-E;M=isNaN(f)?void 0===b.x1?M:b.relative?b.x:b.x1-P:f-P,N=isNaN(x)?void 0===b.y1?N:b.relative?b.y:b.y1-E:x-E;var k=void 0===b.x2?0:b.relative?b.x:b.x2-P,D=void 0===b.y2?0:b.relative?b.y:b.y2-E;C(V)<=h&&C(R)<=h&&C(M)<=h&&C(N)<=h&&C(k)<=h&&C(D)<=h&&(A=!0)}return b.type&_.CLOSE_PATH&&C(P-S)<=h&&C(E-w)<=h&&(A=!0),A?[]:b}))},h.MATRIX=O,h.ROTATE=function(h,g,d){void 0===g&&(g=0),void 0===d&&(d=0),a(h,g,d);var f=Math.sin(h),x=Math.cos(h);return O(x,f,-f,x,g-g*x+d*f,d-g*f-d*x)},h.TRANSLATE=function(h,g){return void 0===g&&(g=0),a(h,g),O(1,0,0,1,h,g)},h.SCALE=function(h,g){return void 0===g&&(g=h),a(h,g),O(h,0,0,g,0,0)},h.SKEW_X=function(h){return a(h),O(1,0,Math.atan(h),1,0,0)},h.SKEW_Y=function(h){return a(h),O(1,Math.atan(h),0,1,0,0)},h.X_AXIS_SYMMETRY=function(h){return void 0===h&&(h=0),a(h),O(-1,0,0,1,h,0)},h.Y_AXIS_SYMMETRY=function(h){return void 0===h&&(h=0),a(h),O(1,0,0,-1,0,h)},h.A_TO_C=function(){return u((function(h,g,d){return _.ARC===h.type?function(h,g,d){var f,x,b,P;h.cX||o(h,g,d);for(var E=Math.min(h.phi1,h.phi2),S=Math.max(h.phi1,h.phi2)-E,C=Math.ceil(S/90),A=new Array(C),M=g,N=d,V=0;V<C;V++){var R=c(h.phi1,h.phi2,V/C),k=c(h.phi1,h.phi2,(V+1)/C),D=k-R,B=4/3*Math.tan(D*w/4),L=[Math.cos(R*w)-B*Math.sin(R*w),Math.sin(R*w)+B*Math.cos(R*w)],F=L[0],z=L[1],U=[Math.cos(k*w),Math.sin(k*w)],X=U[0],G=U[1],Y=[X+B*Math.sin(k*w),G-B*Math.cos(k*w)],j=Y[0],Q=Y[1];A[V]={relative:h.relative,type:_.CURVE_TO};var H=function(g,d){var f=i([g*h.rX,d*h.rY],h.xRot),x=f[0],b=f[1];return[h.cX+x,h.cY+b]};f=H(F,z),A[V].x1=f[0],A[V].y1=f[1],x=H(j,Q),A[V].x2=x[0],A[V].y2=x[1],b=H(X,G),A[V].x=b[0],A[V].y=b[1],h.relative&&(A[V].x1-=M,A[V].y1-=N,A[V].x2-=M,A[V].y2-=N,A[V].x-=M,A[V].y-=N),M=(P=[A[V].x,A[V].y])[0],N=P[1]}return A}(h,h.relative?0:g,h.relative?0:d):h}))},h.ANNOTATE_ARCS=function(){return u((function(h,g,d){return h.relative&&(g=0,d=0),_.ARC===h.type&&o(h,g,d),h}))},h.CLONE=function l(){return function(h){var g={};for(var d in h)g[d]=h[d];return g}},h.CALCULATE_BOUNDS=function(){var h=r(),g=n(),d=e(),f=u((function(x,b,P){var E=d(g(h(function(h){var g={};for(var d in h)g[d]=h[d];return g}(x))));function O(h){h>f.maxX&&(f.maxX=h),h<f.minX&&(f.minX=h)}function l(h){h>f.maxY&&(f.maxY=h),h<f.minY&&(f.minY=h)}if(E.type&_.DRAWING_COMMANDS&&(O(b),l(P)),E.type&_.HORIZ_LINE_TO&&O(E.x),E.type&_.VERT_LINE_TO&&l(E.y),E.type&_.LINE_TO&&(O(E.x),l(E.y)),E.type&_.CURVE_TO){O(E.x),l(E.y);for(var S=0,w=p(b,E.x1,E.x2,E.x);S<w.length;S++)0<(G=w[S])&&1>G&&O(m(b,E.x1,E.x2,E.x,G));for(var C=0,A=p(P,E.y1,E.y2,E.y);C<A.length;C++)0<(G=A[C])&&1>G&&l(m(P,E.y1,E.y2,E.y,G))}if(E.type&_.ARC){O(E.x),l(E.y),o(E,b,P);for(var M=E.xRot/180*Math.PI,N=Math.cos(M)*E.rX,V=Math.sin(M)*E.rX,R=-Math.sin(M)*E.rY,k=Math.cos(M)*E.rY,D=E.phi1<E.phi2?[E.phi1,E.phi2]:-180>E.phi2?[E.phi2+360,E.phi1+360]:[E.phi2,E.phi1],B=D[0],L=D[1],I=function(h){var g=h[0],d=h[1],f=180*Math.atan2(d,g)/Math.PI;return f<B?f+360:f},F=0,z=s(R,-N,0).map(I);F<z.length;F++)(G=z[F])>B&&G<L&&O(y(E.cX,N,R,G));for(var U=0,X=s(k,-V,0).map(I);U<X.length;U++){var G;(G=X[U])>B&&G<L&&l(y(E.cY,V,k,G))}}return x}));return f.minX=1/0,f.maxX=-1/0,f.minY=1/0,f.maxY=-1/0,f}}(S||(S={}));var C,A=function(){function t(){}return t.prototype.round=function(h){return this.transform(S.ROUND(h))},t.prototype.toAbs=function(){return this.transform(S.TO_ABS())},t.prototype.toRel=function(){return this.transform(S.TO_REL())},t.prototype.normalizeHVZ=function(h,g,d){return this.transform(S.NORMALIZE_HVZ(h,g,d))},t.prototype.normalizeST=function(){return this.transform(S.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(S.QT_TO_C())},t.prototype.aToC=function(){return this.transform(S.A_TO_C())},t.prototype.sanitize=function(h){return this.transform(S.SANITIZE(h))},t.prototype.translate=function(h,g){return this.transform(S.TRANSLATE(h,g))},t.prototype.scale=function(h,g){return this.transform(S.SCALE(h,g))},t.prototype.rotate=function(h,g,d){return this.transform(S.ROTATE(h,g,d))},t.prototype.matrix=function(h,g,d,f,x,b){return this.transform(S.MATRIX(h,g,d,f,x,b))},t.prototype.skewX=function(h){return this.transform(S.SKEW_X(h))},t.prototype.skewY=function(h){return this.transform(S.SKEW_Y(h))},t.prototype.xSymmetry=function(h){return this.transform(S.X_AXIS_SYMMETRY(h))},t.prototype.ySymmetry=function(h){return this.transform(S.Y_AXIS_SYMMETRY(h))},t.prototype.annotateArcs=function(){return this.transform(S.ANNOTATE_ARCS())},t}(),T=function(h){return" "===h||"\t"===h||"\r"===h||"\n"===h},v=function(h){return"0".charCodeAt(0)<=h.charCodeAt(0)&&h.charCodeAt(0)<="9".charCodeAt(0)},M=function(h){function e(){var g=h.call(this)||this;return g.curNumber="",g.curCommandType=-1,g.curCommandRelative=!1,g.canParseCommandOrComma=!0,g.curNumberHasExp=!1,g.curNumberHasExpDigits=!1,g.curNumberHasDecimal=!1,g.curArgs=[],g}return r(e,h),e.prototype.finish=function(h){if(void 0===h&&(h=[]),this.parse(" ",h),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return h},e.prototype.parse=function(h,g){var d=this;void 0===g&&(g=[]);for(var i=function(h){g.push(h),d.curArgs.length=0,d.canParseCommandOrComma=!0},f=0;f<h.length;f++){var x=h[f],b=!(this.curCommandType!==_.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),P=v(x)&&("0"===this.curNumber&&"0"===x||b);if(!v(x)||P)if("e"!==x&&"E"!==x)if("-"!==x&&"+"!==x||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==x||this.curNumberHasExp||this.curNumberHasDecimal||b){if(this.curNumber&&-1!==this.curCommandType){var E=Number(this.curNumber);if(isNaN(E))throw new SyntaxError("Invalid number ending at "+f);if(this.curCommandType===_.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>E)throw new SyntaxError('Expected positive number, got "'+E+'" at index "'+f+'"')}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 "'+f+'"');this.curArgs.push(E),this.curArgs.length===N[this.curCommandType]&&(_.HORIZ_LINE_TO===this.curCommandType?i({type:_.HORIZ_LINE_TO,relative:this.curCommandRelative,x:E}):_.VERT_LINE_TO===this.curCommandType?i({type:_.VERT_LINE_TO,relative:this.curCommandRelative,y:E}):this.curCommandType===_.MOVE_TO||this.curCommandType===_.LINE_TO||this.curCommandType===_.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),_.MOVE_TO===this.curCommandType&&(this.curCommandType=_.LINE_TO)):this.curCommandType===_.CURVE_TO?i({type:_.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===_.SMOOTH_CURVE_TO?i({type:_.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.QUAD_TO?i({type:_.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.ARC&&i({type:_.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(!T(x))if(","===x&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==x&&"-"!==x&&"."!==x)if(P)this.curNumber=x,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+f+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+x+'" at index '+f+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==x&&"Z"!==x)if("h"===x||"H"===x)this.curCommandType=_.HORIZ_LINE_TO,this.curCommandRelative="h"===x;else if("v"===x||"V"===x)this.curCommandType=_.VERT_LINE_TO,this.curCommandRelative="v"===x;else if("m"===x||"M"===x)this.curCommandType=_.MOVE_TO,this.curCommandRelative="m"===x;else if("l"===x||"L"===x)this.curCommandType=_.LINE_TO,this.curCommandRelative="l"===x;else if("c"===x||"C"===x)this.curCommandType=_.CURVE_TO,this.curCommandRelative="c"===x;else if("s"===x||"S"===x)this.curCommandType=_.SMOOTH_CURVE_TO,this.curCommandRelative="s"===x;else if("q"===x||"Q"===x)this.curCommandType=_.QUAD_TO,this.curCommandRelative="q"===x;else if("t"===x||"T"===x)this.curCommandType=_.SMOOTH_QUAD_TO,this.curCommandRelative="t"===x;else{if("a"!==x&&"A"!==x)throw new SyntaxError('Unexpected character "'+x+'" at index '+f+".");this.curCommandType=_.ARC,this.curCommandRelative="a"===x}else g.push({type:_.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=x,this.curNumberHasDecimal="."===x}else this.curNumber+=x,this.curNumberHasDecimal=!0;else this.curNumber+=x;else this.curNumber+=x,this.curNumberHasExp=!0;else this.curNumber+=x,this.curNumberHasExpDigits=this.curNumberHasExp}return g},e.prototype.transform=function(h){return Object.create(this,{parse:{value:function(g,d){void 0===d&&(d=[]);for(var f=0,x=Object.getPrototypeOf(this).parse.call(this,g);f<x.length;f++){var b=x[f],P=h(b);Array.isArray(P)?d.push.apply(d,P):d.push(P)}return d}}})},e}(A),_=function(h){function i(g){var d=h.call(this)||this;return d.commands="string"==typeof g?i.parse(g):g,d}return r(i,h),i.prototype.encode=function(){return i.encode(this.commands)},i.prototype.getBounds=function(){var h=S.CALCULATE_BOUNDS();return this.transform(h),h},i.prototype.transform=function(h){for(var g=[],d=0,f=this.commands;d<f.length;d++){var x=h(f[d]);Array.isArray(x)?g.push.apply(g,x):g.push(x)}return this.commands=g,this},i.encode=function(h){return function e(h){var g="";Array.isArray(h)||(h=[h]);for(var d=0;d<h.length;d++){var f=h[d];if(f.type===_.CLOSE_PATH)g+="z";else if(f.type===_.HORIZ_LINE_TO)g+=(f.relative?"h":"H")+f.x;else if(f.type===_.VERT_LINE_TO)g+=(f.relative?"v":"V")+f.y;else if(f.type===_.MOVE_TO)g+=(f.relative?"m":"M")+f.x+" "+f.y;else if(f.type===_.LINE_TO)g+=(f.relative?"l":"L")+f.x+" "+f.y;else if(f.type===_.CURVE_TO)g+=(f.relative?"c":"C")+f.x1+" "+f.y1+" "+f.x2+" "+f.y2+" "+f.x+" "+f.y;else if(f.type===_.SMOOTH_CURVE_TO)g+=(f.relative?"s":"S")+f.x2+" "+f.y2+" "+f.x+" "+f.y;else if(f.type===_.QUAD_TO)g+=(f.relative?"q":"Q")+f.x1+" "+f.y1+" "+f.x+" "+f.y;else if(f.type===_.SMOOTH_QUAD_TO)g+=(f.relative?"t":"T")+f.x+" "+f.y;else{if(f.type!==_.ARC)throw new Error('Unexpected command type "'+f.type+'" at index '+d+".");g+=(f.relative?"a":"A")+f.rX+" "+f.rY+" "+f.xRot+" "+ +f.lArcFlag+" "+ +f.sweepFlag+" "+f.x+" "+f.y}}return g}(h)},i.parse=function(h){var g=new M,d=[];return g.parse(h,d),g.finish(d),d},i.CLOSE_PATH=1,i.MOVE_TO=2,i.HORIZ_LINE_TO=4,i.VERT_LINE_TO=8,i.LINE_TO=16,i.CURVE_TO=32,i.SMOOTH_CURVE_TO=64,i.QUAD_TO=128,i.SMOOTH_QUAD_TO=256,i.ARC=512,i.LINE_COMMANDS=i.LINE_TO|i.HORIZ_LINE_TO|i.VERT_LINE_TO,i.DRAWING_COMMANDS=i.HORIZ_LINE_TO|i.VERT_LINE_TO|i.LINE_TO|i.CURVE_TO|i.SMOOTH_CURVE_TO|i.QUAD_TO|i.SMOOTH_QUAD_TO|i.ARC,i}(A),N=((C={})[_.MOVE_TO]=2,C[_.LINE_TO]=2,C[_.HORIZ_LINE_TO]=1,C[_.VERT_LINE_TO]=1,C[_.CLOSE_PATH]=0,C[_.QUAD_TO]=4,C[_.SMOOTH_QUAD_TO]=2,C[_.CURVE_TO]=6,C[_.SMOOTH_CURVE_TO]=4,C[_.ARC]=7,C);d(40895);function _typeof(h){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},_typeof(h)}var V=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],R=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function getImageDataFromCanvas(h,g,d,f,x){if("string"==typeof h&&(h=document.getElementById(h)),!h||"object"!==_typeof(h)||!("getContext"in h))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var b=h.getContext("2d");try{return b.getImageData(g,d,f,x)}catch(h){throw new Error("unable to access image data: "+h)}}function processCanvasRGBA(h,g,d,f,x,b){if(!(isNaN(b)||b<1)){b|=0;var P=getImageDataFromCanvas(h,g,d,f,x);P=function processImageDataRGBA(h,g,d,f,x,b){for(var P,E=h.data,S=2*b+1,w=f-1,C=x-1,A=b+1,M=A*(A+1)/2,_=new k,N=_,D=1;D<S;D++)N=N.next=new k,D===A&&(P=N);N.next=_;for(var B=null,L=null,F=0,z=0,U=V[b],X=R[b],G=0;G<x;G++){N=_;for(var Y=E[z],j=E[z+1],Q=E[z+2],W=E[z+3],q=0;q<A;q++)N.r=Y,N.g=j,N.b=Q,N.a=W,N=N.next;for(var $=0,Z=0,K=0,J=0,tt=A*Y,et=A*j,rt=A*Q,it=A*W,nt=M*Y,at=M*j,st=M*Q,ot=M*W,ht=1;ht<A;ht++){var lt=z+((w<ht?w:ht)<<2),ut=E[lt],ct=E[lt+1],gt=E[lt+2],dt=E[lt+3],pt=A-ht;nt+=(N.r=ut)*pt,at+=(N.g=ct)*pt,st+=(N.b=gt)*pt,ot+=(N.a=dt)*pt,$+=ut,Z+=ct,K+=gt,J+=dt,N=N.next}B=_,L=P;for(var ft=0;ft<f;ft++){var mt=ot*U>>X;if(E[z+3]=mt,0!==mt){var yt=255/mt;E[z]=(nt*U>>X)*yt,E[z+1]=(at*U>>X)*yt,E[z+2]=(st*U>>X)*yt}else E[z]=E[z+1]=E[z+2]=0;nt-=tt,at-=et,st-=rt,ot-=it,tt-=B.r,et-=B.g,rt-=B.b,it-=B.a;var vt=ft+b+1;vt=F+(vt<w?vt:w)<<2,nt+=$+=B.r=E[vt],at+=Z+=B.g=E[vt+1],st+=K+=B.b=E[vt+2],ot+=J+=B.a=E[vt+3],B=B.next;var xt=L,bt=xt.r,Pt=xt.g,Et=xt.b,St=xt.a;tt+=bt,et+=Pt,rt+=Et,it+=St,$-=bt,Z-=Pt,K-=Et,J-=St,L=L.next,z+=4}F+=f}for(var wt=0;wt<f;wt++){var Tt=E[z=wt<<2],Ct=E[z+1],At=E[z+2],Ot=E[z+3],Mt=A*Tt,_t=A*Ct,Nt=A*At,Vt=A*Ot,Rt=M*Tt,kt=M*Ct,It=M*At,Dt=M*Ot;N=_;for(var Bt=0;Bt<A;Bt++)N.r=Tt,N.g=Ct,N.b=At,N.a=Ot,N=N.next;for(var Lt=f,Ft=0,zt=0,Ut=0,Ht=0,Xt=1;Xt<=b;Xt++){z=Lt+wt<<2;var Gt=A-Xt;Rt+=(N.r=Tt=E[z])*Gt,kt+=(N.g=Ct=E[z+1])*Gt,It+=(N.b=At=E[z+2])*Gt,Dt+=(N.a=Ot=E[z+3])*Gt,Ht+=Tt,Ft+=Ct,zt+=At,Ut+=Ot,N=N.next,Xt<C&&(Lt+=f)}z=wt,B=_,L=P;for(var Yt=0;Yt<x;Yt++){var jt=z<<2;E[jt+3]=Ot=Dt*U>>X,Ot>0?(Ot=255/Ot,E[jt]=(Rt*U>>X)*Ot,E[jt+1]=(kt*U>>X)*Ot,E[jt+2]=(It*U>>X)*Ot):E[jt]=E[jt+1]=E[jt+2]=0,Rt-=Mt,kt-=_t,It-=Nt,Dt-=Vt,Mt-=B.r,_t-=B.g,Nt-=B.b,Vt-=B.a,jt=wt+((jt=Yt+A)<C?jt:C)*f<<2,Rt+=Ht+=B.r=E[jt],kt+=Ft+=B.g=E[jt+1],It+=zt+=B.b=E[jt+2],Dt+=Ut+=B.a=E[jt+3],B=B.next,Mt+=Tt=L.r,_t+=Ct=L.g,Nt+=At=L.b,Vt+=Ot=L.a,Ht-=Tt,Ft-=Ct,zt-=At,Ut-=Ot,L=L.next,z+=f}}return h}(P,0,0,f,x,b),h.getContext("2d").putImageData(P,g,d)}}var k=function BlurStack(){!function _classCallCheck(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}(this,BlurStack),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};var D=Object.freeze({__proto__:null,offscreen:function offscreen(){var{DOMParser:h}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:h,createCanvas:(h,g)=>new OffscreenCanvas(h,g),createImage:h=>_asyncToGenerator((function*(){var g=yield fetch(h),d=yield g.blob();return yield createImageBitmap(d)}))()};return"undefined"==typeof DOMParser&&void 0!==h||Reflect.deleteProperty(g,"DOMParser"),g},node:function node(h){var{DOMParser:g,canvas:d,fetch:f}=h;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:g,fetch:f,createCanvas:d.createCanvas,createImage:d.loadImage}}});function compressSpaces(h){return h.replace(/(?!\u3000)\s+/gm," ")}function trimLeft(h){return h.replace(/^[\n \t]+/,"")}function trimRight(h){return h.replace(/[\n \t]+$/,"")}function toNumbers(h){return((h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var B=/^[A-Z-]+$/;function normalizeAttributeName(h){return B.test(h)?h.toLowerCase():h}function parseExternalUrl(h){var g=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(h)||[];return g[2]||g[3]||g[4]}function normalizeColor(h){if(!h.startsWith("rgb"))return h;var g=3;return h.replace(/\d+(\.\d+)?/g,((h,d)=>g--&&d?String(Math.round(parseFloat(h))):h))}var L=/(\[[^\]]+\])/g,F=/(#[^\s+>~.[:]+)/g,z=/(\.[^\s+>~.[:]+)/g,U=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,X=/(:[\w-]+\([^)]*\))/gi,G=/(:[^\s+>~.[:]+)/g,Y=/([^\s+>~.[:]+)/g;function findSelectorMatch(h,g){var d=g.exec(h);return d?[h.replace(g," "),d.length]:[h,0]}function getSelectorSpecificity(h){var g=[0,0,0],d=h.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),f=0;return[d,f]=findSelectorMatch(d,L),g[1]+=f,[d,f]=findSelectorMatch(d,F),g[0]+=f,[d,f]=findSelectorMatch(d,z),g[1]+=f,[d,f]=findSelectorMatch(d,U),g[2]+=f,[d,f]=findSelectorMatch(d,X),g[1]+=f,[d,f]=findSelectorMatch(d,G),g[1]+=f,d=d.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[d,f]=findSelectorMatch(d,Y),g[2]+=f,g.join("")}var j=1e-8;function vectorMagnitude(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function vectorsRatio(h,g){return(h[0]*g[0]+h[1]*g[1])/(vectorMagnitude(h)*vectorMagnitude(g))}function vectorsAngle(h,g){return(h[0]*g[1]<h[1]*g[0]?-1:1)*Math.acos(vectorsRatio(h,g))}function CB1(h){return h*h*h}function CB2(h){return 3*h*h*(1-h)}function CB3(h){return 3*h*(1-h)*(1-h)}function CB4(h){return(1-h)*(1-h)*(1-h)}function QB1(h){return h*h}function QB2(h){return 2*h*(1-h)}function QB3(h){return(1-h)*(1-h)}class Property{constructor(h,g,d){this.document=h,this.name=g,this.value=d,this.isNormalizedColor=!1}static empty(h){return new Property(h,"EMPTY","")}split(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:g,name:d}=this;return compressSpaces(this.getString()).trim().split(h).map((h=>new Property(g,d,h)))}hasValue(h){var{value:g}=this;return null!==g&&""!==g&&(h||0!==g)&&void 0!==g}isString(h){var{value:g}=this,d="string"==typeof g;return d&&h?h.test(g):d}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var h=this.getString();switch(!0){case h.endsWith("px"):case/^[0-9]+$/.test(h):return!0;default:return!1}}setValue(h){return this.value=h,this}getValue(h){return void 0===h||this.hasValue()?this.value:h}getNumber(h){if(!this.hasValue())return void 0===h?0:parseFloat(h);var{value:g}=this,d=parseFloat(g);return this.isString(/%$/)&&(d/=100),d}getString(h){return void 0===h||this.hasValue()?void 0===this.value?"":String(this.value):String(h)}getColor(h){var g=this.getString(h);return this.isNormalizedColor||(this.isNormalizedColor=!0,g=normalizeColor(g),this.value=g),g}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[d,f]="boolean"==typeof h?[void 0,h]:[h],{viewPort:x}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(x.computeSize("x"),x.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(x.computeSize("x"),x.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*x.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*x.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(/%$/)&&f:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*x.computeSize(d);default:var b=this.getNumber();return g&&b<1?b*x.computeSize(d):b}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var h=this.getString(),g=/#([^)'"]+)/.exec(h);return g&&(g=g[1]),g||(g=h),this.document.definitions[g]}getFillStyleDefinition(h,g){var d=this.getDefinition();if(!d)return null;if("function"==typeof d.createGradient)return d.createGradient(this.document.ctx,h,g);if("function"==typeof d.createPattern){if(d.getHrefAttribute().hasValue()){var f=d.getAttribute("patternTransform");d=d.getHrefAttribute().getDefinition(),f.hasValue()&&d.getAttribute("patternTransform",!0).setValue(f.value)}return d.createPattern(this.document.ctx,h,g)}return null}getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}addOpacity(h){for(var g=this.getColor(),d=g.length,f=0,x=0;x<d&&(","===g[x]&&f++,3!==f);x++);if(h.hasValue()&&this.isString()&&3!==f){var P=new b(g);P.ok&&(P.alpha=h.getNumber(),g=P.toRGBA())}return new Property(this.document,this.name,g)}}Property.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class ViewPort{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(h,g){this.viewPorts.push({width:h,height:g})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:h}=this;return h[h.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(h){return"number"==typeof h?h:"x"===h?this.width:"y"===h?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Point{constructor(h,g){this.x=h,this.y=g}static parse(h){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[d=g,f=g]=toNumbers(h);return new Point(d,f)}static parseScale(h){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[d=g,f=d]=toNumbers(h);return new Point(d,f)}static parsePath(h){for(var g=toNumbers(h),d=g.length,f=[],x=0;x<d;x+=2)f.push(new Point(g[x],g[x+1]));return f}angleTo(h){return Math.atan2(h.y-this.y,h.x-this.x)}applyTransform(h){var{x:g,y:d}=this,f=g*h[0]+d*h[2]+h[4],x=g*h[1]+d*h[3]+h[5];this.x=f,this.y=x}}class Mouse{constructor(h){this.screen=h,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:h,onClick:g,onMouseMove:d}=this,f=h.ctx.canvas;f.onclick=g,f.onmousemove=d,this.working=!0}}stop(){if(this.working){var h=this.screen.ctx.canvas;this.working=!1,h.onclick=null,h.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:h,events:g,eventElements:d}=this,{style:f}=h.ctx.canvas;f&&(f.cursor=""),g.forEach(((h,g)=>{for(var{run:f}=h,x=d[g];x;)f(x),x=x.parent})),this.events=[],this.eventElements=[]}}checkPath(h,g){if(this.working&&g){var{events:d,eventElements:f}=this;d.forEach(((d,x)=>{var{x:b,y:P}=d;!f[x]&&g.isPointInPath&&g.isPointInPath(b,P)&&(f[x]=h)}))}}checkBoundingBox(h,g){if(this.working&&g){var{events:d,eventElements:f}=this;d.forEach(((d,x)=>{var{x:b,y:P}=d;!f[x]&&g.isPointInBox(b,P)&&(f[x]=h)}))}}mapXY(h,g){for(var{window:d,ctx:f}=this.screen,x=new Point(h,g),b=f.canvas;b;)x.x-=b.offsetLeft,x.y-=b.offsetTop,b=b.offsetParent;return d.scrollX&&(x.x+=d.scrollX),d.scrollY&&(x.y+=d.scrollY),x}onClick(h){var{x:g,y:d}=this.mapXY(h.clientX,h.clientY);this.events.push({type:"onclick",x:g,y:d,run(h){h.onClick&&h.onClick()}})}onMouseMove(h){var{x:g,y:d}=this.mapXY(h.clientX,h.clientY);this.events.push({type:"onmousemove",x:g,y:d,run(h){h.onMouseMove&&h.onMouseMove()}})}}var Q="undefined"!=typeof window?window:null,W="undefined"!=typeof fetch?fetch.bind(void 0):null;class Screen{constructor(h){var{fetch:g=W,window:d=Q}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=h,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new ViewPort,this.mouse=new Mouse(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=d,this.fetch=g}wait(h){this.waits.push(h)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var h=this.waits.every((h=>h()));return h&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=h,h}setDefaults(h){h.strokeStyle="rgba(0,0,0,0)",h.lineCap="butt",h.lineJoin="miter",h.miterLimit=4}setViewBox(h){var{document:g,ctx:d,aspectRatio:f,width:x,desiredWidth:b,height:P,desiredHeight:E,minX:S=0,minY:w=0,refX:C,refY:A,clip:M=!1,clipX:_=0,clipY:N=0}=h,V=compressSpaces(f).replace(/^defer\s/,""),[R,k]=V.split(" "),D=R||"xMidYMid",B=k||"meet",L=x/b,F=P/E,z=Math.min(L,F),U=Math.max(L,F),X=b,G=E;"meet"===B&&(X*=z,G*=z),"slice"===B&&(X*=U,G*=U);var Y=new Property(g,"refX",C),j=new Property(g,"refY",A),Q=Y.hasValue()&&j.hasValue();if(Q&&d.translate(-z*Y.getPixels("x"),-z*j.getPixels("y")),M){var W=z*_,q=z*N;d.beginPath(),d.moveTo(W,q),d.lineTo(x,q),d.lineTo(x,P),d.lineTo(W,P),d.closePath(),d.clip()}if(!Q){var $="meet"===B&&z===F,Z="slice"===B&&U===F,K="meet"===B&&z===L,J="slice"===B&&U===L;D.startsWith("xMid")&&($||Z)&&d.translate(x/2-X/2,0),D.endsWith("YMid")&&(K||J)&&d.translate(0,P/2-G/2),D.startsWith("xMax")&&($||Z)&&d.translate(x-X,0),D.endsWith("YMax")&&(K||J)&&d.translate(0,P-G)}switch(!0){case"none"===D:d.scale(L,F);break;case"meet"===B:d.scale(z,z);break;case"slice"===B:d.scale(U,U)}d.translate(-S,-w)}start(h){var{enableRedraw:g=!1,ignoreMouse:d=!1,ignoreAnimation:f=!1,ignoreDimensions:b=!1,ignoreClear:P=!1,forceRedraw:E,scaleWidth:S,scaleHeight:w,offsetX:C,offsetY:A}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:M,mouse:_}=this,N=1e3/M;if(this.frameDuration=N,this.readyPromise=new Promise((h=>{this.resolveReady=h})),this.isReady()&&this.render(h,b,P,S,w,C,A),g){var V=Date.now(),R=V,k=0,tick=()=>{V=Date.now(),(k=V-R)>=N&&(R=V-k%N,this.shouldUpdate(f,E)&&(this.render(h,b,P,S,w,C,A),_.runEvents())),this.intervalId=x(tick)};d||_.start(),this.intervalId=x(tick)}}stop(){this.intervalId&&(x.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(h,g){if(!h){var{frameDuration:d}=this;if(this.animations.reduce(((h,g)=>g.update(d)||h),!1))return!0}return!("function"!=typeof g||!g())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(h,g,d,f,x,b,P){var{CLIENT_WIDTH:E,CLIENT_HEIGHT:S,viewPort:w,ctx:C,isFirstRender:A}=this,M=C.canvas;w.clear(),M.width&&M.height?w.setCurrent(M.width,M.height):w.setCurrent(E,S);var _=h.getStyle("width"),N=h.getStyle("height");!g&&(A||"number"!=typeof f&&"number"!=typeof x)&&(_.hasValue()&&(M.width=_.getPixels("x"),M.style&&(M.style.width="".concat(M.width,"px"))),N.hasValue()&&(M.height=N.getPixels("y"),M.style&&(M.style.height="".concat(M.height,"px"))));var V=M.clientWidth||M.width,R=M.clientHeight||M.height;if(g&&_.hasValue()&&N.hasValue()&&(V=_.getPixels("x"),R=N.getPixels("y")),w.setCurrent(V,R),"number"==typeof b&&h.getAttribute("x",!0).setValue(b),"number"==typeof P&&h.getAttribute("y",!0).setValue(P),"number"==typeof f||"number"==typeof x){var k=toNumbers(h.getAttribute("viewBox").getString()),D=0,B=0;if("number"==typeof f){var L=h.getStyle("width");L.hasValue()?D=L.getPixels("x")/f:isNaN(k[2])||(D=k[2]/f)}if("number"==typeof x){var F=h.getStyle("height");F.hasValue()?B=F.getPixels("y")/x:isNaN(k[3])||(B=k[3]/x)}D||(D=B),B||(B=D),h.getAttribute("width",!0).setValue(f),h.getAttribute("height",!0).setValue(x);var z=h.getStyle("transform",!0,!0);z.setValue("".concat(z.getString()," scale(").concat(1/D,", ").concat(1/B,")"))}d||C.clearRect(0,0,V,R),h.render(C),A&&(this.isFirstRender=!1)}}Screen.defaultWindow=Q,Screen.defaultFetch=W;var{defaultFetch:q}=Screen,$="undefined"!=typeof DOMParser?DOMParser:null;class Parser{constructor(){var{fetch:h=q,DOMParser:g=$}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=h,this.DOMParser=g}parse(h){var g=this;return _asyncToGenerator((function*(){return h.startsWith("<")?g.parseFromString(h):g.load(h)}))()}parseFromString(h){var g=new this.DOMParser;try{return this.checkDocument(g.parseFromString(h,"image/svg+xml"))}catch(d){return this.checkDocument(g.parseFromString(h,"text/xml"))}}checkDocument(h){var g=h.getElementsByTagName("parsererror")[0];if(g)throw new Error(g.textContent);return h}load(h){var g=this;return _asyncToGenerator((function*(){var d=yield g.fetch(h),f=yield d.text();return g.parseFromString(f)}))()}}class Translate{constructor(h,g){this.type="translate",this.point=null,this.point=Point.parse(g)}apply(h){var{x:g,y:d}=this.point;h.translate(g||0,d||0)}unapply(h){var{x:g,y:d}=this.point;h.translate(-1*g||0,-1*d||0)}applyToPoint(h){var{x:g,y:d}=this.point;h.applyTransform([1,0,0,1,g||0,d||0])}}class Rotate{constructor(h,g,d){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var f=toNumbers(g);this.angle=new Property(h,"angle",f[0]),this.originX=d[0],this.originY=d[1],this.cx=f[1]||0,this.cy=f[2]||0}apply(h){var{cx:g,cy:d,originX:f,originY:x,angle:b}=this,P=g+f.getPixels("x"),E=d+x.getPixels("y");h.translate(P,E),h.rotate(b.getRadians()),h.translate(-P,-E)}unapply(h){var{cx:g,cy:d,originX:f,originY:x,angle:b}=this,P=g+f.getPixels("x"),E=d+x.getPixels("y");h.translate(P,E),h.rotate(-1*b.getRadians()),h.translate(-P,-E)}applyToPoint(h){var{cx:g,cy:d,angle:f}=this,x=f.getRadians();h.applyTransform([1,0,0,1,g||0,d||0]),h.applyTransform([Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0]),h.applyTransform([1,0,0,1,-g||0,-d||0])}}class Scale{constructor(h,g,d){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var f=Point.parseScale(g);0!==f.x&&0!==f.y||(f.x=j,f.y=j),this.scale=f,this.originX=d[0],this.originY=d[1]}apply(h){var{scale:{x:g,y:d},originX:f,originY:x}=this,b=f.getPixels("x"),P=x.getPixels("y");h.translate(b,P),h.scale(g,d||g),h.translate(-b,-P)}unapply(h){var{scale:{x:g,y:d},originX:f,originY:x}=this,b=f.getPixels("x"),P=x.getPixels("y");h.translate(b,P),h.scale(1/g,1/d||g),h.translate(-b,-P)}applyToPoint(h){var{x:g,y:d}=this.scale;h.applyTransform([g||0,0,0,d||0,0,0])}}class Matrix{constructor(h,g,d){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=toNumbers(g),this.originX=d[0],this.originY=d[1]}apply(h){var{originX:g,originY:d,matrix:f}=this,x=g.getPixels("x"),b=d.getPixels("y");h.translate(x,b),h.transform(f[0],f[1],f[2],f[3],f[4],f[5]),h.translate(-x,-b)}unapply(h){var{originX:g,originY:d,matrix:f}=this,x=f[0],b=f[2],P=f[4],E=f[1],S=f[3],w=f[5],C=1/(x*(1*S-0*w)-b*(1*E-0*w)+P*(0*E-0*S)),A=g.getPixels("x"),M=d.getPixels("y");h.translate(A,M),h.transform(C*(1*S-0*w),C*(0*w-1*E),C*(0*P-1*b),C*(1*x-0*P),C*(b*w-P*S),C*(P*E-x*w)),h.translate(-A,-M)}applyToPoint(h){h.applyTransform(this.matrix)}}class Skew extends Matrix{constructor(h,g,d){super(h,g,d),this.type="skew",this.angle=null,this.angle=new Property(h,"angle",g)}}class SkewX extends Skew{constructor(h,g,d){super(h,g,d),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class SkewY extends Skew{constructor(h,g,d){super(h,g,d),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}class Transform{constructor(h,g,d){this.document=h,this.transforms=[];var f=function parseTransforms(h){return compressSpaces(h).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(g);f.forEach((h=>{if("none"!==h){var[g,f]=function parseTransform(h){var[g,d]=h.split("(");return[g.trim(),d.trim().replace(")","")]}(h),x=Transform.transformTypes[g];void 0!==x&&this.transforms.push(new x(this.document,f,d))}}))}static fromElement(h,g){var d=g.getStyle("transform",!1,!0),[f,x=f]=g.getStyle("transform-origin",!1,!0).split(),b=[f,x];return d.hasValue()?new Transform(h,d.getString(),b):null}apply(h){for(var{transforms:g}=this,d=g.length,f=0;f<d;f++)g[f].apply(h)}unapply(h){for(var{transforms:g}=this,d=g.length-1;d>=0;d--)g[d].unapply(h)}applyToPoint(h){for(var{transforms:g}=this,d=g.length,f=0;f<d;f++)g[f].applyToPoint(h)}}Transform.transformTypes={translate:Translate,rotate:Rotate,scale:Scale,matrix:Matrix,skewX:SkewX,skewY:SkewY};class Element{constructor(h,g){var d=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=h,this.node=g,this.captureTextNodes=d,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],g&&1===g.nodeType){if(Array.from(g.attributes).forEach((g=>{var d=normalizeAttributeName(g.nodeName);this.attributes[d]=new Property(h,d,g.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var f=this.getAttribute("style").getString().split(";").map((h=>h.trim()));f.forEach((g=>{if(g){var[d,f]=g.split(":").map((h=>h.trim()));this.styles[d]=new Property(h,d,f)}}))}var{definitions:x}=h,b=this.getAttribute("id");b.hasValue()&&(x[b.getString()]||(x[b.getString()]=this)),Array.from(g.childNodes).forEach((g=>{if(1===g.nodeType)this.addChild(g);else if(d&&(3===g.nodeType||4===g.nodeType)){var f=h.createTextNode(g);f.getText().length>0&&this.addChild(f)}}))}}getAttribute(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=this.attributes[h];if(!d&&g){var f=new Property(this.document,h,"");return this.attributes[h]=f,f}return d||Property.empty(this.document)}getHrefAttribute(){for(var h in this.attributes)if("href"===h||h.endsWith(":href"))return this.attributes[h];return Property.empty(this.document)}getStyle(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=this.styles[h];if(f)return f;var x=this.getAttribute(h);if(null!=x&&x.hasValue())return this.styles[h]=x,x;if(!d){var{parent:b}=this;if(b){var P=b.getStyle(h);if(null!=P&&P.hasValue())return P}}if(g){var E=new Property(this.document,h,"");return this.styles[h]=E,E}return f||Property.empty(this.document)}render(h){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(h.save(),this.getStyle("mask").hasValue()){var g=this.getStyle("mask").getDefinition();g&&(this.applyEffects(h),g.apply(h,this))}else if("none"!==this.getStyle("filter").getValue("none")){var d=this.getStyle("filter").getDefinition();d&&(this.applyEffects(h),d.apply(h,this))}else this.setContext(h),this.renderChildren(h),this.clearContext(h);h.restore()}}setContext(h){}applyEffects(h){var g=Transform.fromElement(this.document,this);g&&g.apply(h);var d=this.getStyle("clip-path",!1,!0);if(d.hasValue()){var f=d.getDefinition();f&&f.apply(h)}}clearContext(h){}renderChildren(h){this.children.forEach((g=>{g.render(h)}))}addChild(h){var g=h instanceof Element?h:this.document.createElement(h);g.parent=this,Element.ignoreChildTypes.includes(g.type)||this.children.push(g)}matchesSelector(h){var g,{node:d}=this;if("function"==typeof d.matches)return d.matches(h);var f=null===(g=d.getAttribute)||void 0===g?void 0:g.call(d,"class");return!(!f||""===f)&&f.split(" ").some((g=>".".concat(g)===h))}addStylesFromStyleDefinition(){var{styles:h,stylesSpecificity:g}=this.document;for(var d in h)if(!d.startsWith("@")&&this.matchesSelector(d)){var f=h[d],x=g[d];if(f)for(var b in f){var P=this.stylesSpecificity[b];void 0===P&&(P="000"),x>=P&&(this.styles[b]=f[b],this.stylesSpecificity[b]=x)}}}removeStyles(h,g){return g.reduce(((g,d)=>{var f=h.getStyle(d);if(!f.hasValue())return g;var x=f.getString();return f.setValue(""),[...g,[d,x]]}),[])}restoreStyles(h,g){g.forEach((g=>{var[d,f]=g;h.getStyle(d,!0).setValue(f)}))}isFirstChild(){var h;return 0===(null===(h=this.parent)||void 0===h?void 0:h.children.indexOf(this))}}Element.ignoreChildTypes=["title"];class UnknownElement extends Element{constructor(h,g,d){super(h,g,d)}}function wrapFontFamily(h){var g=h.trim();return/^('|")/.test(g)?g:'"'.concat(g,'"')}function prepareFontStyle(h){if(!h)return"";var g=h.trim().toLowerCase();switch(g){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return g;default:return/^oblique\s+(-|)\d+deg$/.test(g)?g:""}}function prepareFontWeight(h){if(!h)return"";var g=h.trim().toLowerCase();switch(g){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return g;default:return/^[\d.]+$/.test(g)?g:""}}class Font{constructor(h,g,d,f,x,b){var P=b?"string"==typeof b?Font.parse(b):b:{};this.fontFamily=x||P.fontFamily,this.fontSize=f||P.fontSize,this.fontStyle=h||P.fontStyle,this.fontWeight=d||P.fontWeight,this.fontVariant=g||P.fontVariant}static parse(){var h=arguments.length>1?arguments[1]:void 0,g="",d="",f="",x="",b="",P=compressSpaces(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),E={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return P.forEach((h=>{switch(!0){case!E.fontStyle&&Font.styles.includes(h):"inherit"!==h&&(g=h),E.fontStyle=!0;break;case!E.fontVariant&&Font.variants.includes(h):"inherit"!==h&&(d=h),E.fontStyle=!0,E.fontVariant=!0;break;case!E.fontWeight&&Font.weights.includes(h):"inherit"!==h&&(f=h),E.fontStyle=!0,E.fontVariant=!0,E.fontWeight=!0;break;case!E.fontSize:"inherit"!==h&&([x]=h.split("/")),E.fontStyle=!0,E.fontVariant=!0,E.fontWeight=!0,E.fontSize=!0;break;default:"inherit"!==h&&(b+=h)}})),new Font(g,d,f,x,b,h)}toString(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(h=this.fontFamily,"undefined"==typeof process?h:h.trim().split(",").map(wrapFontFamily).join(","))].join(" ").trim();var h}}Font.styles="normal|italic|oblique|inherit",Font.variants="normal|small-caps|inherit",Font.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class BoundingBox{constructor(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=h,this.y1=g,this.x2=d,this.y2=f,this.addPoint(h,g),this.addPoint(d,f)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(h,g){void 0!==h&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=h,this.x2=h),h<this.x1&&(this.x1=h),h>this.x2&&(this.x2=h)),void 0!==g&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=g,this.y2=g),g<this.y1&&(this.y1=g),g>this.y2&&(this.y2=g))}addX(h){this.addPoint(h,null)}addY(h){this.addPoint(null,h)}addBoundingBox(h){if(h){var{x1:g,y1:d,x2:f,y2:x}=h;this.addPoint(g,d),this.addPoint(f,x)}}sumCubic(h,g,d,f,x){return Math.pow(1-h,3)*g+3*Math.pow(1-h,2)*h*d+3*(1-h)*Math.pow(h,2)*f+Math.pow(h,3)*x}bezierCurveAdd(h,g,d,f,x){var b=6*g-12*d+6*f,P=-3*g+9*d-9*f+3*x,E=3*d-3*g;if(0!==P){var S=Math.pow(b,2)-4*E*P;if(!(S<0)){var w=(-b+Math.sqrt(S))/(2*P);0<w&&w<1&&(h?this.addX(this.sumCubic(w,g,d,f,x)):this.addY(this.sumCubic(w,g,d,f,x)));var C=(-b-Math.sqrt(S))/(2*P);0<C&&C<1&&(h?this.addX(this.sumCubic(C,g,d,f,x)):this.addY(this.sumCubic(C,g,d,f,x)))}}else{if(0===b)return;var A=-E/b;0<A&&A<1&&(h?this.addX(this.sumCubic(A,g,d,f,x)):this.addY(this.sumCubic(A,g,d,f,x)))}}addBezierCurve(h,g,d,f,x,b,P,E){this.addPoint(h,g),this.addPoint(P,E),this.bezierCurveAdd(!0,h,d,x,P),this.bezierCurveAdd(!1,g,f,b,E)}addQuadraticCurve(h,g,d,f,x,b){var P=h+2/3*(d-h),E=g+2/3*(f-g),S=P+1/3*(x-h),w=E+1/3*(b-g);this.addBezierCurve(h,g,P,S,E,w,x,b)}isPointInBox(h,g){var{x1:d,y1:f,x2:x,y2:b}=this;return d<=h&&h<=x&&f<=g&&g<=b}}class PathParser extends _{constructor(h){super(h.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Point(0,0),this.control=new Point(0,0),this.current=new Point(0,0),this.points=[],this.angles=[]}isEnd(){var{i:h,commands:g}=this;return h>=g.length-1}next(){var h=this.commands[++this.i];return this.previousCommand=this.command,this.command=h,h}getPoint(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",d=new Point(this.command[h],this.command[g]);return this.makeAbsolute(d)}getAsControlPoint(h,g){var d=this.getPoint(h,g);return this.control=d,d}getAsCurrentPoint(h,g){var d=this.getPoint(h,g);return this.current=d,d}getReflectedControlPoint(){var h=this.previousCommand.type;if(h!==_.CURVE_TO&&h!==_.SMOOTH_CURVE_TO&&h!==_.QUAD_TO&&h!==_.SMOOTH_QUAD_TO)return this.current;var{current:{x:g,y:d},control:{x:f,y:x}}=this;return new Point(2*g-f,2*d-x)}makeAbsolute(h){if(this.command.relative){var{x:g,y:d}=this.current;h.x+=g,h.y+=d}return h}addMarker(h,g,d){var{points:f,angles:x}=this;d&&x.length>0&&!x[x.length-1]&&(x[x.length-1]=f[f.length-1].angleTo(d)),this.addMarkerAngle(h,g?g.angleTo(h):null)}addMarkerAngle(h,g){this.points.push(h),this.angles.push(g)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:h}=this,g=h.length,d=0;d<g;d++)if(!h[d])for(var f=d+1;f<g;f++)if(h[f]){h[d]=h[f];break}return h}}class RenderedElement extends Element{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var h=1,g=this;g;){var d=g.getStyle("opacity",!1,!0);d.hasValue(!0)&&(h*=d.getNumber()),g=g.parent}return h}setContext(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!g){var d=this.getStyle("fill"),f=this.getStyle("fill-opacity"),x=this.getStyle("stroke"),b=this.getStyle("stroke-opacity");if(d.isUrlDefinition()){var P=d.getFillStyleDefinition(this,f);P&&(h.fillStyle=P)}else if(d.hasValue()){"currentColor"===d.getString()&&d.setValue(this.getStyle("color").getColor());var E=d.getColor();"inherit"!==E&&(h.fillStyle="none"===E?"rgba(0,0,0,0)":E)}if(f.hasValue()){var S=new Property(this.document,"fill",h.fillStyle).addOpacity(f).getColor();h.fillStyle=S}if(x.isUrlDefinition()){var w=x.getFillStyleDefinition(this,b);w&&(h.strokeStyle=w)}else if(x.hasValue()){"currentColor"===x.getString()&&x.setValue(this.getStyle("color").getColor());var C=x.getString();"inherit"!==C&&(h.strokeStyle="none"===C?"rgba(0,0,0,0)":C)}if(b.hasValue()){var A=new Property(this.document,"stroke",h.strokeStyle).addOpacity(b).getString();h.strokeStyle=A}var M=this.getStyle("stroke-width");if(M.hasValue()){var _=M.getPixels();h.lineWidth=_||j}var N=this.getStyle("stroke-linecap"),V=this.getStyle("stroke-linejoin"),R=this.getStyle("stroke-miterlimit"),k=this.getStyle("stroke-dasharray"),D=this.getStyle("stroke-dashoffset");if(N.hasValue()&&(h.lineCap=N.getString()),V.hasValue()&&(h.lineJoin=V.getString()),R.hasValue()&&(h.miterLimit=R.getNumber()),k.hasValue()&&"none"!==k.getString()){var B=toNumbers(k.getString());void 0!==h.setLineDash?h.setLineDash(B):void 0!==h.webkitLineDash?h.webkitLineDash=B:void 0===h.mozDash||1===B.length&&0===B[0]||(h.mozDash=B);var L=D.getPixels();void 0!==h.lineDashOffset?h.lineDashOffset=L:void 0!==h.webkitLineDashOffset?h.webkitLineDashOffset=L:void 0!==h.mozDashOffset&&(h.mozDashOffset=L)}}if(this.modifiedEmSizeStack=!1,void 0!==h.font){var F=this.getStyle("font"),z=this.getStyle("font-style"),U=this.getStyle("font-variant"),X=this.getStyle("font-weight"),G=this.getStyle("font-size"),Y=this.getStyle("font-family"),Q=new Font(z.getString(),U.getString(),X.getString(),G.hasValue()?"".concat(G.getPixels(!0),"px"):"",Y.getString(),Font.parse(F.getString(),h.font));z.setValue(Q.fontStyle),U.setValue(Q.fontVariant),X.setValue(Q.fontWeight),G.setValue(Q.fontSize),Y.setValue(Q.fontFamily),h.font=Q.toString(),G.isPixels()&&(this.document.emSize=G.getPixels(),this.modifiedEmSizeStack=!0)}g||(this.applyEffects(h),h.globalAlpha=this.calculateOpacity())}clearContext(h){super.clearContext(h),this.modifiedEmSizeStack&&this.document.popEmSize()}}class PathElement extends RenderedElement{constructor(h,g,d){super(h,g,d),this.type="path",this.pathParser=null,this.pathParser=new PathParser(this.getAttribute("d").getString())}path(h){var{pathParser:g}=this,d=new BoundingBox;for(g.reset(),h&&h.beginPath();!g.isEnd();)switch(g.next().type){case PathParser.MOVE_TO:this.pathM(h,d);break;case PathParser.LINE_TO:this.pathL(h,d);break;case PathParser.HORIZ_LINE_TO:this.pathH(h,d);break;case PathParser.VERT_LINE_TO:this.pathV(h,d);break;case PathParser.CURVE_TO:this.pathC(h,d);break;case PathParser.SMOOTH_CURVE_TO:this.pathS(h,d);break;case PathParser.QUAD_TO:this.pathQ(h,d);break;case PathParser.SMOOTH_QUAD_TO:this.pathT(h,d);break;case PathParser.ARC:this.pathA(h,d);break;case PathParser.CLOSE_PATH:this.pathZ(h,d)}return d}getBoundingBox(h){return this.path()}getMarkers(){var{pathParser:h}=this,g=h.getMarkerPoints(),d=h.getMarkerAngles(),f=g.map(((h,g)=>[h,d[g]]));return f}renderChildren(h){this.path(h),this.document.screen.mouse.checkPath(this,h);var g=this.getStyle("fill-rule");""!==h.fillStyle&&("inherit"!==g.getString("inherit")?h.fill(g.getString()):h.fill()),""!==h.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(h.save(),h.setTransform(1,0,0,1,0,0),h.stroke(),h.restore()):h.stroke());var d=this.getMarkers();if(d){var f=d.length-1,x=this.getStyle("marker-start"),b=this.getStyle("marker-mid"),P=this.getStyle("marker-end");if(x.isUrlDefinition()){var E=x.getDefinition(),[S,w]=d[0];E.render(h,S,w)}if(b.isUrlDefinition())for(var C=b.getDefinition(),A=1;A<f;A++){var[M,_]=d[A];C.render(h,M,_)}if(P.isUrlDefinition()){var N=P.getDefinition(),[V,R]=d[f];N.render(h,V,R)}}}static pathM(h){var g=h.getAsCurrentPoint();return h.start=h.current,{point:g}}pathM(h,g){var{pathParser:d}=this,{point:f}=PathElement.pathM(d),{x,y:b}=f;d.addMarker(f),g.addPoint(x,b),h&&h.moveTo(x,b)}static pathL(h){var{current:g}=h;return{current:g,point:h.getAsCurrentPoint()}}pathL(h,g){var{pathParser:d}=this,{current:f,point:x}=PathElement.pathL(d),{x:b,y:P}=x;d.addMarker(x,f),g.addPoint(b,P),h&&h.lineTo(b,P)}static pathH(h){var{current:g,command:d}=h,f=new Point((d.relative?g.x:0)+d.x,g.y);return h.current=f,{current:g,point:f}}pathH(h,g){var{pathParser:d}=this,{current:f,point:x}=PathElement.pathH(d),{x:b,y:P}=x;d.addMarker(x,f),g.addPoint(b,P),h&&h.lineTo(b,P)}static pathV(h){var{current:g,command:d}=h,f=new Point(g.x,(d.relative?g.y:0)+d.y);return h.current=f,{current:g,point:f}}pathV(h,g){var{pathParser:d}=this,{current:f,point:x}=PathElement.pathV(d),{x:b,y:P}=x;d.addMarker(x,f),g.addPoint(b,P),h&&h.lineTo(b,P)}static pathC(h){var{current:g}=h;return{current:g,point:h.getPoint("x1","y1"),controlPoint:h.getAsControlPoint("x2","y2"),currentPoint:h.getAsCurrentPoint()}}pathC(h,g){var{pathParser:d}=this,{current:f,point:x,controlPoint:b,currentPoint:P}=PathElement.pathC(d);d.addMarker(P,b,x),g.addBezierCurve(f.x,f.y,x.x,x.y,b.x,b.y,P.x,P.y),h&&h.bezierCurveTo(x.x,x.y,b.x,b.y,P.x,P.y)}static pathS(h){var{current:g}=h;return{current:g,point:h.getReflectedControlPoint(),controlPoint:h.getAsControlPoint("x2","y2"),currentPoint:h.getAsCurrentPoint()}}pathS(h,g){var{pathParser:d}=this,{current:f,point:x,controlPoint:b,currentPoint:P}=PathElement.pathS(d);d.addMarker(P,b,x),g.addBezierCurve(f.x,f.y,x.x,x.y,b.x,b.y,P.x,P.y),h&&h.bezierCurveTo(x.x,x.y,b.x,b.y,P.x,P.y)}static pathQ(h){var{current:g}=h;return{current:g,controlPoint:h.getAsControlPoint("x1","y1"),currentPoint:h.getAsCurrentPoint()}}pathQ(h,g){var{pathParser:d}=this,{current:f,controlPoint:x,currentPoint:b}=PathElement.pathQ(d);d.addMarker(b,x,x),g.addQuadraticCurve(f.x,f.y,x.x,x.y,b.x,b.y),h&&h.quadraticCurveTo(x.x,x.y,b.x,b.y)}static pathT(h){var{current:g}=h,d=h.getReflectedControlPoint();return h.control=d,{current:g,controlPoint:d,currentPoint:h.getAsCurrentPoint()}}pathT(h,g){var{pathParser:d}=this,{current:f,controlPoint:x,currentPoint:b}=PathElement.pathT(d);d.addMarker(b,x,x),g.addQuadraticCurve(f.x,f.y,x.x,x.y,b.x,b.y),h&&h.quadraticCurveTo(x.x,x.y,b.x,b.y)}static pathA(h){var{current:g,command:d}=h,{rX:f,rY:x,xRot:b,lArcFlag:P,sweepFlag:E}=d,S=b*(Math.PI/180),w=h.getAsCurrentPoint(),C=new Point(Math.cos(S)*(g.x-w.x)/2+Math.sin(S)*(g.y-w.y)/2,-Math.sin(S)*(g.x-w.x)/2+Math.cos(S)*(g.y-w.y)/2),A=Math.pow(C.x,2)/Math.pow(f,2)+Math.pow(C.y,2)/Math.pow(x,2);A>1&&(f*=Math.sqrt(A),x*=Math.sqrt(A));var M=(P===E?-1:1)*Math.sqrt((Math.pow(f,2)*Math.pow(x,2)-Math.pow(f,2)*Math.pow(C.y,2)-Math.pow(x,2)*Math.pow(C.x,2))/(Math.pow(f,2)*Math.pow(C.y,2)+Math.pow(x,2)*Math.pow(C.x,2)));isNaN(M)&&(M=0);var _=new Point(M*f*C.y/x,M*-x*C.x/f),N=new Point((g.x+w.x)/2+Math.cos(S)*_.x-Math.sin(S)*_.y,(g.y+w.y)/2+Math.sin(S)*_.x+Math.cos(S)*_.y),V=vectorsAngle([1,0],[(C.x-_.x)/f,(C.y-_.y)/x]),R=[(C.x-_.x)/f,(C.y-_.y)/x],k=[(-C.x-_.x)/f,(-C.y-_.y)/x],D=vectorsAngle(R,k);return vectorsRatio(R,k)<=-1&&(D=Math.PI),vectorsRatio(R,k)>=1&&(D=0),{currentPoint:w,rX:f,rY:x,sweepFlag:E,xAxisRotation:S,centp:N,a1:V,ad:D}}pathA(h,g){var{pathParser:d}=this,{currentPoint:f,rX:x,rY:b,sweepFlag:P,xAxisRotation:E,centp:S,a1:w,ad:C}=PathElement.pathA(d),A=1-P?1:-1,M=w+A*(C/2),_=new Point(S.x+x*Math.cos(M),S.y+b*Math.sin(M));if(d.addMarkerAngle(_,M-A*Math.PI/2),d.addMarkerAngle(f,M-A*Math.PI),g.addPoint(f.x,f.y),h&&!isNaN(w)&&!isNaN(C)){var N=x>b?x:b,V=x>b?1:x/b,R=x>b?b/x:1;h.translate(S.x,S.y),h.rotate(E),h.scale(V,R),h.arc(0,0,N,w,w+C,Boolean(1-P)),h.scale(1/V,1/R),h.rotate(-E),h.translate(-S.x,-S.y)}}static pathZ(h){h.current=h.start}pathZ(h,g){PathElement.pathZ(this.pathParser),h&&g.x1!==g.x2&&g.y1!==g.y2&&h.closePath()}}class GlyphElement extends PathElement{constructor(h,g,d){super(h,g,d),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class TextElement extends RenderedElement{constructor(h,g,d){super(h,g,new.target===TextElement||d),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(h,g);var d=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();d&&(h.textBaseline=d)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(h){if("text"!==this.type)return this.getTElementBoundingBox(h);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(h);var g=null;return this.children.forEach(((d,f)=>{var x=this.getChildBoundingBox(h,this,this,f);g?g.addBoundingBox(x):g=x})),g}getFontSize(){var{document:h,parent:g}=this,d=Font.parse(h.ctx.font).fontSize;return g.getStyle("font-size").getNumber(d)}getTElementBoundingBox(h){var g=this.getFontSize();return new BoundingBox(this.x,this.y-g,this.x+this.measureText(h),this.y)}getGlyph(h,g,d){var f=g[d],x=null;if(h.isArabic){var b=g.length,P=g[d-1],E=g[d+1],S="isolated";if((0===d||" "===P)&&d<b-1&&" "!==E&&(S="terminal"),d>0&&" "!==P&&d<b-1&&" "!==E&&(S="medial"),d>0&&" "!==P&&(d===b-1||" "===E)&&(S="initial"),void 0!==h.glyphs[f]){var w=h.glyphs[f];x=w instanceof GlyphElement?w:w[S]}}else x=h.glyphs[f];return x||(x=h.missingGlyph),x}getText(){return""}getTextFromNode(h){var g=h||this.node,d=Array.from(g.parentNode.childNodes),f=d.indexOf(g),x=d.length-1,b=compressSpaces(g.textContent||"");return 0===f&&(b=trimLeft(b)),f===x&&(b=trimRight(b)),b}renderChildren(h){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(h),this.children.forEach(((g,d)=>{this.renderChild(h,this,this,d)}));var{mouse:g}=this.document.screen;g.isWorking()&&g.checkBoundingBox(this,this.getBoundingBox(h))}else this.renderTElementChildren(h)}renderTElementChildren(h){var{document:g,parent:d}=this,f=this.getText(),x=d.getStyle("font-family").getDefinition();if(x)for(var{unitsPerEm:b}=x.fontFace,P=Font.parse(g.ctx.font),E=d.getStyle("font-size").getNumber(P.fontSize),S=d.getStyle("font-style").getString(P.fontStyle),w=E/b,C=x.isRTL?f.split("").reverse().join(""):f,A=toNumbers(d.getAttribute("dx").getString()),M=C.length,_=0;_<M;_++){var N=this.getGlyph(x,C,_);h.translate(this.x,this.y),h.scale(w,-w);var V=h.lineWidth;h.lineWidth=h.lineWidth*b/E,"italic"===S&&h.transform(1,0,.4,1,0,0),N.render(h),"italic"===S&&h.transform(1,0,-.4,1,0,0),h.lineWidth=V,h.scale(1/w,-1/w),h.translate(-this.x,-this.y),this.x+=E*(N.horizAdvX||x.horizAdvX)/b,void 0===A[_]||isNaN(A[_])||(this.x+=A[_])}else{var{x:R,y:k}=this;h.fillStyle&&h.fillText(f,R,k),h.strokeStyle&&h.strokeText(f,R,k)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var h=this.leafTexts[this.textChunkStart],g=h.getStyle("text-anchor").getString("start"),d=0;d="start"===g?h.x-this.minX:"end"===g?h.x-this.maxX:h.x-(this.minX+this.maxX)/2;for(var f=this.textChunkStart;f<this.leafTexts.length;f++)this.leafTexts[f].x+=d;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(h){this.children.forEach(((g,d)=>{this.adjustChildCoordinatesRecursiveCore(h,this,this,d)})),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(h,g,d,f){var x=d.children[f];x.children.length>0?x.children.forEach(((d,f)=>{g.adjustChildCoordinatesRecursiveCore(h,g,x,f)})):this.adjustChildCoordinates(h,g,d,f)}adjustChildCoordinates(h,g,d,f){var x=d.children[f];if("function"!=typeof x.measureText)return x;h.save(),x.setContext(h,!0);var b=x.getAttribute("x"),P=x.getAttribute("y"),E=x.getAttribute("dx"),S=x.getAttribute("dy"),w=x.getStyle("font-family").getDefinition(),C=Boolean(w)&&w.isRTL;0===f&&(b.hasValue()||b.setValue(x.getInheritedAttribute("x")),P.hasValue()||P.setValue(x.getInheritedAttribute("y")),E.hasValue()||E.setValue(x.getInheritedAttribute("dx")),S.hasValue()||S.setValue(x.getInheritedAttribute("dy")));var A=x.measureText(h);return C&&(g.x-=A),b.hasValue()?(g.applyAnchoring(),x.x=b.getPixels("x"),E.hasValue()&&(x.x+=E.getPixels("x"))):(E.hasValue()&&(g.x+=E.getPixels("x")),x.x=g.x),g.x=x.x,C||(g.x+=A),P.hasValue()?(x.y=P.getPixels("y"),S.hasValue()&&(x.y+=S.getPixels("y"))):(S.hasValue()&&(g.y+=S.getPixels("y")),x.y=g.y),g.y=x.y,g.leafTexts.push(x),g.minX=Math.min(g.minX,x.x,x.x+A),g.maxX=Math.max(g.maxX,x.x,x.x+A),x.clearContext(h),h.restore(),x}getChildBoundingBox(h,g,d,f){var x=d.children[f];if("function"!=typeof x.getBoundingBox)return null;var b=x.getBoundingBox(h);return b?(x.children.forEach(((d,f)=>{var P=g.getChildBoundingBox(h,g,x,f);b.addBoundingBox(P)})),b):null}renderChild(h,g,d,f){var x=d.children[f];x.render(h),x.children.forEach(((d,f)=>{g.renderChild(h,g,x,f)}))}measureText(h){var{measureCache:g}=this;if(~g)return g;var d=this.getText(),f=this.measureTargetText(h,d);return this.measureCache=f,f}measureTargetText(h,g){if(!g.length)return 0;var{parent:d}=this,f=d.getStyle("font-family").getDefinition();if(f){for(var x=this.getFontSize(),b=f.isRTL?g.split("").reverse().join(""):g,P=toNumbers(d.getAttribute("dx").getString()),E=b.length,S=0,w=0;w<E;w++){S+=(this.getGlyph(f,b,w).horizAdvX||f.horizAdvX)*x/f.fontFace.unitsPerEm,void 0===P[w]||isNaN(P[w])||(S+=P[w])}return S}if(!h.measureText)return 10*g.length;h.save(),this.setContext(h,!0);var{width:C}=h.measureText(g);return this.clearContext(h),h.restore(),C}getInheritedAttribute(h){for(var g=this;g instanceof TextElement&&g.isFirstChild();){var d=g.parent.getAttribute(h);if(d.hasValue(!0))return d.getValue("0");g=g.parent}return null}}class TSpanElement extends TextElement{constructor(h,g,d){super(h,g,new.target===TSpanElement||d),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class TextNode extends TSpanElement{constructor(){super(...arguments),this.type="textNode"}}class SVGElement extends RenderedElement{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(h){var g,{document:d}=this,{screen:f,window:x}=d,b=h.canvas;if(f.setDefaults(h),b.style&&void 0!==h.font&&x&&void 0!==x.getComputedStyle){h.font=x.getComputedStyle(b).getPropertyValue("font");var P=new Property(d,"fontSize",Font.parse(h.font).fontSize);P.hasValue()&&(d.rootEmSize=P.getPixels("y"),d.emSize=d.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:E,height:S}=f.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var w=this.getAttribute("refX"),C=this.getAttribute("refY"),A=this.getAttribute("viewBox"),M=A.hasValue()?toNumbers(A.getString()):null,_=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),N=0,V=0,R=0,k=0;M&&(N=M[0],V=M[1]),this.root||(E=this.getStyle("width").getPixels("x"),S=this.getStyle("height").getPixels("y"),"marker"===this.type&&(R=N,k=V,N=0,V=0)),f.viewPort.setCurrent(E,S),!this.node||this.parent&&"foreignObject"!==(null===(g=this.node.parentNode)||void 0===g?void 0:g.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(h),h.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),M&&(E=M[2],S=M[3]),d.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:f.viewPort.width,desiredWidth:E,height:f.viewPort.height,desiredHeight:S,minX:N,minY:V,refX:w.getValue(),refY:C.getValue(),clip:_,clipX:R,clipY:k}),M&&(f.viewPort.removeCurrent(),f.viewPort.setCurrent(E,S))}clearContext(h){super.clearContext(h),this.document.screen.viewPort.removeCurrent()}resize(h){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,d=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=this.getAttribute("width",!0),x=this.getAttribute("height",!0),b=this.getAttribute("viewBox"),P=this.getAttribute("style"),E=f.getNumber(0),S=x.getNumber(0);if(d)if("string"==typeof d)this.getAttribute("preserveAspectRatio",!0).setValue(d);else{var w=this.getAttribute("preserveAspectRatio");w.hasValue()&&w.setValue(w.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(f.setValue(h),x.setValue(g),b.hasValue()||b.setValue("0 0 ".concat(E||h," ").concat(S||g)),P.hasValue()){var C=this.getStyle("width"),A=this.getStyle("height");C.hasValue()&&C.setValue("".concat(h,"px")),A.hasValue()&&A.setValue("".concat(g,"px"))}}}class RectElement extends PathElement{constructor(){super(...arguments),this.type="rect"}path(h){var g=this.getAttribute("x").getPixels("x"),d=this.getAttribute("y").getPixels("y"),f=this.getStyle("width",!1,!0).getPixels("x"),x=this.getStyle("height",!1,!0).getPixels("y"),b=this.getAttribute("rx"),P=this.getAttribute("ry"),E=b.getPixels("x"),S=P.getPixels("y");if(b.hasValue()&&!P.hasValue()&&(S=E),P.hasValue()&&!b.hasValue()&&(E=S),E=Math.min(E,f/2),S=Math.min(S,x/2),h){var w=(Math.sqrt(2)-1)/3*4;h.beginPath(),x>0&&f>0&&(h.moveTo(g+E,d),h.lineTo(g+f-E,d),h.bezierCurveTo(g+f-E+w*E,d,g+f,d+S-w*S,g+f,d+S),h.lineTo(g+f,d+x-S),h.bezierCurveTo(g+f,d+x-S+w*S,g+f-E+w*E,d+x,g+f-E,d+x),h.lineTo(g+E,d+x),h.bezierCurveTo(g+E-w*E,d+x,g,d+x-S+w*S,g,d+x-S),h.lineTo(g,d+S),h.bezierCurveTo(g,d+S-w*S,g+E-w*E,d,g+E,d),h.closePath())}return new BoundingBox(g,d,g+f,d+x)}getMarkers(){return null}}class CircleElement extends PathElement{constructor(){super(...arguments),this.type="circle"}path(h){var g=this.getAttribute("cx").getPixels("x"),d=this.getAttribute("cy").getPixels("y"),f=this.getAttribute("r").getPixels();return h&&f>0&&(h.beginPath(),h.arc(g,d,f,0,2*Math.PI,!1),h.closePath()),new BoundingBox(g-f,d-f,g+f,d+f)}getMarkers(){return null}}class EllipseElement extends PathElement{constructor(){super(...arguments),this.type="ellipse"}path(h){var g=(Math.sqrt(2)-1)/3*4,d=this.getAttribute("rx").getPixels("x"),f=this.getAttribute("ry").getPixels("y"),x=this.getAttribute("cx").getPixels("x"),b=this.getAttribute("cy").getPixels("y");return h&&d>0&&f>0&&(h.beginPath(),h.moveTo(x+d,b),h.bezierCurveTo(x+d,b+g*f,x+g*d,b+f,x,b+f),h.bezierCurveTo(x-g*d,b+f,x-d,b+g*f,x-d,b),h.bezierCurveTo(x-d,b-g*f,x-g*d,b-f,x,b-f),h.bezierCurveTo(x+g*d,b-f,x+d,b-g*f,x+d,b),h.closePath()),new BoundingBox(x-d,b-f,x+d,b+f)}getMarkers(){return null}}class LineElement extends PathElement{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Point(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Point(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(h){var[{x:g,y:d},{x:f,y:x}]=this.getPoints();return h&&(h.beginPath(),h.moveTo(g,d),h.lineTo(f,x)),new BoundingBox(g,d,f,x)}getMarkers(){var[h,g]=this.getPoints(),d=h.angleTo(g);return[[h,d],[g,d]]}}class PolylineElement extends PathElement{constructor(h,g,d){super(h,g,d),this.type="polyline",this.points=[],this.points=Point.parsePath(this.getAttribute("points").getString())}path(h){var{points:g}=this,[{x:d,y:f}]=g,x=new BoundingBox(d,f);return h&&(h.beginPath(),h.moveTo(d,f)),g.forEach((g=>{var{x:d,y:f}=g;x.addPoint(d,f),h&&h.lineTo(d,f)})),x}getMarkers(){var{points:h}=this,g=h.length-1,d=[];return h.forEach(((f,x)=>{x!==g&&d.push([f,f.angleTo(h[x+1])])})),d.length>0&&d.push([h[h.length-1],d[d.length-1][1]]),d}}class PolygonElement extends PolylineElement{constructor(){super(...arguments),this.type="polygon"}path(h){var g=super.path(h),[{x:d,y:f}]=this.points;return h&&(h.lineTo(d,f),h.closePath()),g}}class PatternElement extends Element{constructor(){super(...arguments),this.type="pattern"}createPattern(h,g,d){var f=this.getStyle("width").getPixels("x",!0),x=this.getStyle("height").getPixels("y",!0),b=new SVGElement(this.document,null);b.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),b.attributes.width=new Property(this.document,"width","".concat(f,"px")),b.attributes.height=new Property(this.document,"height","".concat(x,"px")),b.attributes.transform=new Property(this.document,"transform",this.getAttribute("patternTransform").getValue()),b.children=this.children;var P=this.document.createCanvas(f,x),E=P.getContext("2d"),S=this.getAttribute("x"),w=this.getAttribute("y");S.hasValue()&&w.hasValue()&&E.translate(S.getPixels("x",!0),w.getPixels("y",!0)),d.hasValue()?this.styles["fill-opacity"]=d:Reflect.deleteProperty(this.styles,"fill-opacity");for(var C=-1;C<=1;C++)for(var A=-1;A<=1;A++)E.save(),b.attributes.x=new Property(this.document,"x",C*P.width),b.attributes.y=new Property(this.document,"y",A*P.height),b.render(E),E.restore();return h.createPattern(P,"repeat")}}class MarkerElement extends Element{constructor(){super(...arguments),this.type="marker"}render(h,g,d){if(g){var{x:f,y:x}=g,b=this.getAttribute("orient").getString("auto"),P=this.getAttribute("markerUnits").getString("strokeWidth");h.translate(f,x),"auto"===b&&h.rotate(d),"strokeWidth"===P&&h.scale(h.lineWidth,h.lineWidth),h.save();var E=new SVGElement(this.document,null);E.type=this.type,E.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),E.attributes.refX=new Property(this.document,"refX",this.getAttribute("refX").getValue()),E.attributes.refY=new Property(this.document,"refY",this.getAttribute("refY").getValue()),E.attributes.width=new Property(this.document,"width",this.getAttribute("markerWidth").getValue()),E.attributes.height=new Property(this.document,"height",this.getAttribute("markerHeight").getValue()),E.attributes.overflow=new Property(this.document,"overflow",this.getAttribute("overflow").getValue()),E.attributes.fill=new Property(this.document,"fill",this.getAttribute("fill").getColor("black")),E.attributes.stroke=new Property(this.document,"stroke",this.getAttribute("stroke").getValue("none")),E.children=this.children,E.render(h),h.restore(),"strokeWidth"===P&&h.scale(1/h.lineWidth,1/h.lineWidth),"auto"===b&&h.rotate(-d),h.translate(-f,-x)}}}class DefsElement extends Element{constructor(){super(...arguments),this.type="defs"}render(){}}class GElement extends RenderedElement{constructor(){super(...arguments),this.type="g"}getBoundingBox(h){var g=new BoundingBox;return this.children.forEach((d=>{g.addBoundingBox(d.getBoundingBox(h))})),g}}class GradientElement extends Element{constructor(h,g,d){super(h,g,d),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:f,children:x}=this;x.forEach((h=>{"stop"===h.type&&f.push(h)}))}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(h,g,d){var f=this;this.getHrefAttribute().hasValue()&&(f=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(f));var{stops:x}=f,b=this.getGradient(h,g);if(!b)return this.addParentOpacity(d,x[x.length-1].color);if(x.forEach((h=>{b.addColorStop(h.offset,this.addParentOpacity(d,h.color))})),this.getAttribute("gradientTransform").hasValue()){var{document:P}=this,{MAX_VIRTUAL_PIXELS:E,viewPort:S}=P.screen,[w]=S.viewPorts,C=new RectElement(P,null);C.attributes.x=new Property(P,"x",-E/3),C.attributes.y=new Property(P,"y",-E/3),C.attributes.width=new Property(P,"width",E),C.attributes.height=new Property(P,"height",E);var A=new GElement(P,null);A.attributes.transform=new Property(P,"transform",this.getAttribute("gradientTransform").getValue()),A.children=[C];var M=new SVGElement(P,null);M.attributes.x=new Property(P,"x",0),M.attributes.y=new Property(P,"y",0),M.attributes.width=new Property(P,"width",w.width),M.attributes.height=new Property(P,"height",w.height),M.children=[A];var _=P.createCanvas(w.width,w.height),N=_.getContext("2d");return N.fillStyle=b,M.render(N),N.createPattern(_,"no-repeat")}return b}inheritStopContainer(h){this.attributesToInherit.forEach((g=>{!this.getAttribute(g).hasValue()&&h.getAttribute(g).hasValue()&&this.getAttribute(g,!0).setValue(h.getAttribute(g).getValue())}))}addParentOpacity(h,g){return h.hasValue()?new Property(this.document,"color",g).addOpacity(h).getColor():g}}class LinearGradientElement extends GradientElement{constructor(h,g,d){super(h,g,d),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(h,g){var d="objectBoundingBox"===this.getGradientUnits(),f=d?g.getBoundingBox(h):null;if(d&&!f)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 x=d?f.x+f.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),b=d?f.y+f.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),P=d?f.x+f.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),E=d?f.y+f.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return x===P&&b===E?null:h.createLinearGradient(x,b,P,E)}}class RadialGradientElement extends GradientElement{constructor(h,g,d){super(h,g,d),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(h,g){var d="objectBoundingBox"===this.getGradientUnits(),f=g.getBoundingBox(h);if(d&&!f)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 x=d?f.x+f.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),b=d?f.y+f.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),P=x,E=b;this.getAttribute("fx").hasValue()&&(P=d?f.x+f.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(E=d?f.y+f.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var S=d?(f.width+f.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),w=this.getAttribute("fr").getPixels();return h.createRadialGradient(P,E,w,x,b,S)}}class StopElement extends Element{constructor(h,g,d){super(h,g,d),this.type="stop";var f=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),x=this.getStyle("stop-opacity"),b=this.getStyle("stop-color",!0);""===b.getString()&&b.setValue("#000"),x.hasValue()&&(b=b.addOpacity(x)),this.offset=f,this.color=b.getColor()}}class AnimateElement extends Element{constructor(h,g,d){super(h,g,d),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,h.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new Property(h,"values",null);var f=this.getAttribute("values");f.hasValue()&&this.values.setValue(f.getString().split(";"))}getProperty(){var h=this.getAttribute("attributeType").getString(),g=this.getAttribute("attributeName").getString();return"CSS"===h?this.parent.getStyle(g,!0):this.parent.getAttribute(g,!0)}calcValue(){var{initialUnits:h}=this,{progress:g,from:d,to:f}=this.getProgress(),x=d.getNumber()+(f.getNumber()-d.getNumber())*g;return"%"===h&&(x*=100),"".concat(x).concat(h)}update(h){var{parent:g}=this,d=this.getProperty();if(this.initialValue||(this.initialValue=d.getString(),this.initialUnits=d.getUnits()),this.duration>this.maxDuration){var f=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==f||this.frozen){if("remove"===f&&!this.removed)return this.removed=!0,d.setValue(g.animationFrozen?g.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,g.animationFrozen=!0,g.animationFrozenValue=d.getString();return!1}this.duration+=h;var x=!1;if(this.begin<this.duration){var b=this.calcValue(),P=this.getAttribute("type");if(P.hasValue()){var E=P.getString();b="".concat(E,"(").concat(b,")")}d.setValue(b),x=!0}return x}getProgress(){var{document:h,values:g}=this,d={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(g.hasValue()){var f=d.progress*(g.getValue().length-1),x=Math.floor(f),b=Math.ceil(f);d.from=new Property(h,"from",parseFloat(g.getValue()[x])),d.to=new Property(h,"to",parseFloat(g.getValue()[b])),d.progress=(f-x)/(b-x)}else d.from=this.from,d.to=this.to;return d}}class AnimateColorElement extends AnimateElement{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:h,from:g,to:d}=this.getProgress(),f=new b(g.getColor()),x=new b(d.getColor());if(f.ok&&x.ok){var P=f.r+(x.r-f.r)*h,E=f.g+(x.g-f.g)*h,S=f.b+(x.b-f.b)*h;return"rgb(".concat(Math.floor(P),", ").concat(Math.floor(E),", ").concat(Math.floor(S),")")}return this.getAttribute("from").getColor()}}class AnimateTransformElement extends AnimateElement{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:h,from:g,to:d}=this.getProgress(),f=toNumbers(g.getString()),x=toNumbers(d.getString()),b=f.map(((g,d)=>g+(x[d]-g)*h)).join(" ");return b}}class FontElement extends Element{constructor(h,g,d){super(h,g,d),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:f}=h,{children:x}=this;for(var b of x)switch(b.type){case"font-face":this.fontFace=b;var P=b.getStyle("font-family");P.hasValue()&&(f[P.getString()]=this);break;case"missing-glyph":this.missingGlyph=b;break;case"glyph":var E=b;E.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[E.unicode]&&(this.glyphs[E.unicode]={}),this.glyphs[E.unicode][E.arabicForm]=E):this.glyphs[E.unicode]=E}}render(){}}class FontFaceElement extends Element{constructor(h,g,d){super(h,g,d),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class MissingGlyphElement extends PathElement{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class TRefElement extends TextElement{constructor(){super(...arguments),this.type="tref"}getText(){var h=this.getHrefAttribute().getDefinition();if(h){var g=h.children[0];if(g)return g.getText()}return""}}class AElement extends TextElement{constructor(h,g,d){super(h,g,d),this.type="a";var{childNodes:f}=g,x=f[0],b=f.length>0&&Array.from(f).every((h=>3===h.nodeType));this.hasText=b,this.text=b?this.getTextFromNode(x):""}getText(){return this.text}renderChildren(h){if(this.hasText){super.renderChildren(h);var{document:g,x:d,y:f}=this,{mouse:x}=g.screen,b=new Property(g,"fontSize",Font.parse(g.ctx.font).fontSize);x.isWorking()&&x.checkBoundingBox(this,new BoundingBox(d,f-b.getPixels("y"),d+this.measureText(h),f))}else if(this.children.length>0){var P=new GElement(this.document,null);P.children=this.children,P.parent=this,P.render(h)}}onClick(){var{window:h}=this.document;h&&h.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function ownKeys$2(h,g){var d=Object.keys(h);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(h);g&&(f=f.filter((function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable}))),d.push.apply(d,f)}return d}function _objectSpread$2(h){for(var g=1;g<arguments.length;g++){var d=null!=arguments[g]?arguments[g]:{};g%2?ownKeys$2(Object(d),!0).forEach((function(g){(0,f.Z)(h,g,d[g])})):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(d)):ownKeys$2(Object(d)).forEach((function(g){Object.defineProperty(h,g,Object.getOwnPropertyDescriptor(d,g))}))}return h}class TextPathElement extends TextElement{constructor(h,g,d){super(h,g,d),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var f=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(f)}getText(){return this.text}path(h){var{dataArray:g}=this;h&&h.beginPath(),g.forEach((g=>{var{type:d,points:f}=g;switch(d){case PathParser.LINE_TO:h&&h.lineTo(f[0],f[1]);break;case PathParser.MOVE_TO:h&&h.moveTo(f[0],f[1]);break;case PathParser.CURVE_TO:h&&h.bezierCurveTo(f[0],f[1],f[2],f[3],f[4],f[5]);break;case PathParser.QUAD_TO:h&&h.quadraticCurveTo(f[0],f[1],f[2],f[3]);break;case PathParser.ARC:var[x,b,P,E,S,w,C,A]=f,M=P>E?P:E,_=P>E?1:P/E,N=P>E?E/P:1;h&&(h.translate(x,b),h.rotate(C),h.scale(_,N),h.arc(0,0,M,S,S+w,Boolean(1-A)),h.scale(1/_,1/N),h.rotate(-C),h.translate(-x,-b));break;case PathParser.CLOSE_PATH:h&&h.closePath()}}))}renderChildren(h){this.setTextData(h),h.save();var g=this.parent.getStyle("text-decoration").getString(),d=this.getFontSize(),{glyphInfo:f}=this,x=h.fillStyle;"underline"===g&&h.beginPath(),f.forEach(((f,x)=>{var{p0:b,p1:P,rotation:E,text:S}=f;h.save(),h.translate(b.x,b.y),h.rotate(E),h.fillStyle&&h.fillText(S,0,0),h.strokeStyle&&h.strokeText(S,0,0),h.restore(),"underline"===g&&(0===x&&h.moveTo(b.x,b.y+d/8),h.lineTo(P.x,P.y+d/5))})),"underline"===g&&(h.lineWidth=d/20,h.strokeStyle=x,h.stroke(),h.closePath()),h.restore()}getLetterSpacingAt(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[h]||0}findSegmentToFitChar(h,g,d,f,x,b,P,E,S){var w=b,C=this.measureText(h,E);" "===E&&"justify"===g&&d<f&&(C+=(f-d)/x),S>-1&&(w+=this.getLetterSpacingAt(S));var A=this.textHeight/20,M=this.getEquidistantPointOnPath(w,A,0),_=this.getEquidistantPointOnPath(w+C,A,0),N={p0:M,p1:_},V=M&&_?Math.atan2(_.y-M.y,_.x-M.x):0;if(P){var R=Math.cos(Math.PI/2+V)*P,k=Math.cos(-V)*P;N.p0=_objectSpread$2(_objectSpread$2({},M),{},{x:M.x+R,y:M.y+k}),N.p1=_objectSpread$2(_objectSpread$2({},_),{},{x:_.x+R,y:_.y+k})}return{offset:w+=C,segment:N,rotation:V}}measureText(h,g){var{measuresCache:d}=this,f=g||this.getText();if(d.has(f))return d.get(f);var x=this.measureTargetText(h,f);return d.set(f,x),x}setTextData(h){if(!this.glyphInfo){var g=this.getText(),d=g.split(""),f=g.split(" ").length-1,x=this.parent.getAttribute("dx").split().map((h=>h.getPixels("x"))),b=this.parent.getAttribute("dy").getPixels("y"),P=this.parent.getStyle("text-anchor").getString("start"),E=this.getStyle("letter-spacing"),S=this.parent.getStyle("letter-spacing"),w=0;E.hasValue()&&"inherit"!==E.getValue()?E.hasValue()&&"initial"!==E.getValue()&&"unset"!==E.getValue()&&(w=E.getPixels()):w=S.getPixels();var C=[],A=g.length;this.letterSpacingCache=C;for(var M=0;M<A;M++)C.push(void 0!==x[M]?x[M]:w);var _=C.reduce(((h,g,d)=>0===d?0:h+g||0),0),N=this.measureText(h),V=Math.max(N+_,0);this.textWidth=N,this.textHeight=this.getFontSize(),this.glyphInfo=[];var R=this.getPathLength(),k=this.getStyle("startOffset").getNumber(0)*R,D=0;"middle"!==P&&"center"!==P||(D=-V/2),"end"!==P&&"right"!==P||(D=-V),D+=k,d.forEach(((g,x)=>{var{offset:E,segment:S,rotation:w}=this.findSegmentToFitChar(h,P,V,R,f,D,b,g,x);D=E,S.p0&&S.p1&&this.glyphInfo.push({text:d[x],p0:S.p0,p1:S.p1,rotation:w})}))}}parsePathData(h){if(this.pathLength=-1,!h)return[];var g=[],{pathParser:d}=h;for(d.reset();!d.isEnd();){var{current:f}=d,x=f?f.x:0,b=f?f.y:0,P=d.next(),E=P.type,S=[];switch(P.type){case PathParser.MOVE_TO:this.pathM(d,S);break;case PathParser.LINE_TO:E=this.pathL(d,S);break;case PathParser.HORIZ_LINE_TO:E=this.pathH(d,S);break;case PathParser.VERT_LINE_TO:E=this.pathV(d,S);break;case PathParser.CURVE_TO:this.pathC(d,S);break;case PathParser.SMOOTH_CURVE_TO:E=this.pathS(d,S);break;case PathParser.QUAD_TO:this.pathQ(d,S);break;case PathParser.SMOOTH_QUAD_TO:E=this.pathT(d,S);break;case PathParser.ARC:S=this.pathA(d);break;case PathParser.CLOSE_PATH:PathElement.pathZ(d)}P.type!==PathParser.CLOSE_PATH?g.push({type:E,points:S,start:{x,y:b},pathLength:this.calcLength(x,b,E,S)}):g.push({type:PathParser.CLOSE_PATH,points:[],pathLength:0})}return g}pathM(h,g){var{x:d,y:f}=PathElement.pathM(h).point;g.push(d,f)}pathL(h,g){var{x:d,y:f}=PathElement.pathL(h).point;return g.push(d,f),PathParser.LINE_TO}pathH(h,g){var{x:d,y:f}=PathElement.pathH(h).point;return g.push(d,f),PathParser.LINE_TO}pathV(h,g){var{x:d,y:f}=PathElement.pathV(h).point;return g.push(d,f),PathParser.LINE_TO}pathC(h,g){var{point:d,controlPoint:f,currentPoint:x}=PathElement.pathC(h);g.push(d.x,d.y,f.x,f.y,x.x,x.y)}pathS(h,g){var{point:d,controlPoint:f,currentPoint:x}=PathElement.pathS(h);return g.push(d.x,d.y,f.x,f.y,x.x,x.y),PathParser.CURVE_TO}pathQ(h,g){var{controlPoint:d,currentPoint:f}=PathElement.pathQ(h);g.push(d.x,d.y,f.x,f.y)}pathT(h,g){var{controlPoint:d,currentPoint:f}=PathElement.pathT(h);return g.push(d.x,d.y,f.x,f.y),PathParser.QUAD_TO}pathA(h){var{rX:g,rY:d,sweepFlag:f,xAxisRotation:x,centp:b,a1:P,ad:E}=PathElement.pathA(h);return 0===f&&E>0&&(E-=2*Math.PI),1===f&&E<0&&(E+=2*Math.PI),[b.x,b.y,g,d,P,E,x,f]}calcLength(h,g,d,f){var x=0,b=null,P=null,E=0;switch(d){case PathParser.LINE_TO:return this.getLineLength(h,g,f[0],f[1]);case PathParser.CURVE_TO:for(x=0,b=this.getPointOnCubicBezier(0,h,g,f[0],f[1],f[2],f[3],f[4],f[5]),E=.01;E<=1;E+=.01)P=this.getPointOnCubicBezier(E,h,g,f[0],f[1],f[2],f[3],f[4],f[5]),x+=this.getLineLength(b.x,b.y,P.x,P.y),b=P;return x;case PathParser.QUAD_TO:for(x=0,b=this.getPointOnQuadraticBezier(0,h,g,f[0],f[1],f[2],f[3]),E=.01;E<=1;E+=.01)P=this.getPointOnQuadraticBezier(E,h,g,f[0],f[1],f[2],f[3]),x+=this.getLineLength(b.x,b.y,P.x,P.y),b=P;return x;case PathParser.ARC:x=0;var S=f[4],w=f[5],C=f[4]+w,A=Math.PI/180;if(Math.abs(S-C)<A&&(A=Math.abs(S-C)),b=this.getPointOnEllipticalArc(f[0],f[1],f[2],f[3],S,0),w<0)for(E=S-A;E>C;E-=A)P=this.getPointOnEllipticalArc(f[0],f[1],f[2],f[3],E,0),x+=this.getLineLength(b.x,b.y,P.x,P.y),b=P;else for(E=S+A;E<C;E+=A)P=this.getPointOnEllipticalArc(f[0],f[1],f[2],f[3],E,0),x+=this.getLineLength(b.x,b.y,P.x,P.y),b=P;return P=this.getPointOnEllipticalArc(f[0],f[1],f[2],f[3],C,0),x+=this.getLineLength(b.x,b.y,P.x,P.y)}return 0}getPointOnLine(h,g,d,f,x){var b=arguments.length>5&&void 0!==arguments[5]?arguments[5]:g,P=arguments.length>6&&void 0!==arguments[6]?arguments[6]:d,E=(x-d)/(f-g+j),S=Math.sqrt(h*h/(1+E*E));f<g&&(S*=-1);var w=E*S,C=null;if(f===g)C={x:b,y:P+w};else if((P-d)/(b-g+j)===E)C={x:b+S,y:P+w};else{var A,M,_=this.getLineLength(g,d,f,x);if(_<j)return null;var N=(b-g)*(f-g)+(P-d)*(x-d);A=g+(N/=_*_)*(f-g),M=d+N*(x-d);var V=this.getLineLength(b,P,A,M),R=Math.sqrt(h*h-V*V);S=Math.sqrt(R*R/(1+E*E)),f<g&&(S*=-1),C={x:A+S,y:M+(w=E*S)}}return C}getPointOnPath(h){var g=this.getPathLength(),d=0,f=null;if(h<-5e-5||h-5e-5>g)return null;var{dataArray:x}=this;for(var b of x){if(!b||!(b.pathLength<5e-5||d+b.pathLength+5e-5<h)){var P=h-d,E=0;switch(b.type){case PathParser.LINE_TO:f=this.getPointOnLine(P,b.start.x,b.start.y,b.points[0],b.points[1],b.start.x,b.start.y);break;case PathParser.ARC:var S=b.points[4],w=b.points[5],C=b.points[4]+w;if(E=S+P/b.pathLength*w,w<0&&E<C||w>=0&&E>C)break;f=this.getPointOnEllipticalArc(b.points[0],b.points[1],b.points[2],b.points[3],E,b.points[6]);break;case PathParser.CURVE_TO:(E=P/b.pathLength)>1&&(E=1),f=this.getPointOnCubicBezier(E,b.start.x,b.start.y,b.points[0],b.points[1],b.points[2],b.points[3],b.points[4],b.points[5]);break;case PathParser.QUAD_TO:(E=P/b.pathLength)>1&&(E=1),f=this.getPointOnQuadraticBezier(E,b.start.x,b.start.y,b.points[0],b.points[1],b.points[2],b.points[3])}if(f)return f;break}d+=b.pathLength}return null}getLineLength(h,g,d,f){return Math.sqrt((d-h)*(d-h)+(f-g)*(f-g))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(((h,g)=>g.pathLength>0?h+g.pathLength:h),0)),this.pathLength}getPointOnCubicBezier(h,g,d,f,x,b,P,E,S){return{x:E*CB1(h)+b*CB2(h)+f*CB3(h)+g*CB4(h),y:S*CB1(h)+P*CB2(h)+x*CB3(h)+d*CB4(h)}}getPointOnQuadraticBezier(h,g,d,f,x,b,P){return{x:b*QB1(h)+f*QB2(h)+g*QB3(h),y:P*QB1(h)+x*QB2(h)+d*QB3(h)}}getPointOnEllipticalArc(h,g,d,f,x,b){var P=Math.cos(b),E=Math.sin(b),S=d*Math.cos(x),w=f*Math.sin(x);return{x:h+(S*P-w*E),y:g+(S*E+w*P)}}buildEquidistantCache(h,g){var d=this.getPathLength(),f=g||.25,x=h||d/100;if(!this.equidistantCache||this.equidistantCache.step!==x||this.equidistantCache.precision!==f){this.equidistantCache={step:x,precision:f,points:[]};for(var b=0,P=0;P<=d;P+=f){var E=this.getPointOnPath(P),S=this.getPointOnPath(P+f);E&&S&&((b+=this.getLineLength(E.x,E.y,S.x,S.y))>=x&&(this.equidistantCache.points.push({x:E.x,y:E.y,distance:P}),b-=x))}}}getEquidistantPointOnPath(h,g,d){if(this.buildEquidistantCache(g,d),h<0||h-this.getPathLength()>5e-5)return null;var f=Math.round(h/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[f]||null}}var Z=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class ImageElement extends RenderedElement{constructor(h,g,d){super(h,g,d),this.type="image",this.loaded=!1;var f=this.getHrefAttribute().getString();if(f){var x=f.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(f);h.images.push(this),x?this.loadSvg(f):this.loadImage(f),this.isSvg=x}}loadImage(h){var g=this;return _asyncToGenerator((function*(){try{var d=yield g.document.createImage(h);g.image=d}catch(g){console.error('Error while loading image "'.concat(h,'":'),g)}g.loaded=!0}))()}loadSvg(h){var g=this;return _asyncToGenerator((function*(){var d=Z.exec(h);if(d){var f=d[5];"base64"===d[4]?g.image=atob(f):g.image=decodeURIComponent(f)}else try{var x=yield g.document.fetch(h),b=yield x.text();g.image=b}catch(g){console.error('Error while loading image "'.concat(h,'":'),g)}g.loaded=!0}))()}renderChildren(h){var{document:g,image:d,loaded:f}=this,x=this.getAttribute("x").getPixels("x"),b=this.getAttribute("y").getPixels("y"),P=this.getStyle("width").getPixels("x"),E=this.getStyle("height").getPixels("y");if(f&&d&&P&&E){if(h.save(),h.translate(x,b),this.isSvg){var S=g.canvg.forkString(h,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:P,scaleHeight:E});S.document.documentElement.parent=this,S.render()}else{var w=this.image;g.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:P,desiredWidth:w.width,height:E,desiredHeight:w.height}),this.loaded&&(void 0===w.complete||w.complete)&&h.drawImage(w,0,0)}h.restore()}}getBoundingBox(){var h=this.getAttribute("x").getPixels("x"),g=this.getAttribute("y").getPixels("y"),d=this.getStyle("width").getPixels("x"),f=this.getStyle("height").getPixels("y");return new BoundingBox(h,g,h+d,g+f)}}class SymbolElement extends RenderedElement{constructor(){super(...arguments),this.type="symbol"}render(h){}}class SVGFontLoader{constructor(h){this.document=h,this.loaded=!1,h.fonts.push(this)}load(h,g){var d=this;return _asyncToGenerator((function*(){try{var{document:f}=d,x=(yield f.canvg.parser.load(g)).getElementsByTagName("font");Array.from(x).forEach((g=>{var d=f.createElement(g);f.definitions[h]=d}))}catch(h){console.error('Error while loading font "'.concat(g,'":'),h)}d.loaded=!0}))()}}class StyleElement extends Element{constructor(h,g,d){super(h,g,d),this.type="style";var f=compressSpaces(Array.from(g.childNodes).map((h=>h.textContent)).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,""));f.split("}").forEach((g=>{var d=g.trim();if(d){var f=d.split("{"),x=f[0].split(","),b=f[1].split(";");x.forEach((g=>{var d=g.trim();if(d){var f=h.styles[d]||{};if(b.forEach((g=>{var d=g.indexOf(":"),x=g.substr(0,d).trim(),b=g.substr(d+1,g.length-d).trim();x&&b&&(f[x]=new Property(h,x,b))})),h.styles[d]=f,h.stylesSpecificity[d]=getSelectorSpecificity(d),"@font-face"===d){var x=f["font-family"].getString().replace(/"|'/g,"");f.src.getString().split(",").forEach((g=>{if(g.indexOf('format("svg")')>0){var d=parseExternalUrl(g);d&&new SVGFontLoader(h).load(x,d)}}))}}}))}}))}}StyleElement.parseExternalUrl=parseExternalUrl;class UseElement extends RenderedElement{constructor(){super(...arguments),this.type="use"}setContext(h){super.setContext(h);var g=this.getAttribute("x"),d=this.getAttribute("y");g.hasValue()&&h.translate(g.getPixels("x"),0),d.hasValue()&&h.translate(0,d.getPixels("y"))}path(h){var{element:g}=this;g&&g.path(h)}renderChildren(h){var{document:g,element:d}=this;if(d){var f=d;if("symbol"===d.type&&((f=new SVGElement(g,null)).attributes.viewBox=new Property(g,"viewBox",d.getAttribute("viewBox").getString()),f.attributes.preserveAspectRatio=new Property(g,"preserveAspectRatio",d.getAttribute("preserveAspectRatio").getString()),f.attributes.overflow=new Property(g,"overflow",d.getAttribute("overflow").getString()),f.children=d.children,d.styles.opacity=new Property(g,"opacity",this.calculateOpacity())),"svg"===f.type){var x=this.getStyle("width",!1,!0),b=this.getStyle("height",!1,!0);x.hasValue()&&(f.attributes.width=new Property(g,"width",x.getString())),b.hasValue()&&(f.attributes.height=new Property(g,"height",b.getString()))}var P=f.parent;f.parent=this,f.render(h),f.parent=P}}getBoundingBox(h){var{element:g}=this;return g?g.getBoundingBox(h):null}elementTransform(){var{document:h,element:g}=this;return Transform.fromElement(h,g)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function imGet(h,g,d,f,x,b){return h[d*f*4+4*g+b]}function imSet(h,g,d,f,x,b,P){h[d*f*4+4*g+b]=P}function index_es_m(h,g,d){return h[g]*d}function index_es_c(h,g,d,f){return g+Math.cos(h)*d+Math.sin(h)*f}class FeColorMatrixElement extends Element{constructor(h,g,d){super(h,g,d),this.type="feColorMatrix";var f=toNumbers(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var x=f[0];f=[.213+.787*x,.715-.715*x,.072-.072*x,0,0,.213-.213*x,.715+.285*x,.072-.072*x,0,0,.213-.213*x,.715-.715*x,.072+.928*x,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var b=f[0]*Math.PI/180;f=[index_es_c(b,.213,.787,-.213),index_es_c(b,.715,-.715,-.715),index_es_c(b,.072,-.072,.928),0,0,index_es_c(b,.213,-.213,.143),index_es_c(b,.715,.285,.14),index_es_c(b,.072,-.072,-.283),0,0,index_es_c(b,.213,-.213,-.787),index_es_c(b,.715,-.715,.715),index_es_c(b,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=f,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(h,g,d,f,x){for(var{includeOpacity:b,matrix:P}=this,E=h.getImageData(0,0,f,x),S=0;S<x;S++)for(var w=0;w<f;w++){var C=imGet(E.data,w,S,f,0,0),A=imGet(E.data,w,S,f,0,1),M=imGet(E.data,w,S,f,0,2),_=imGet(E.data,w,S,f,0,3),N=index_es_m(P,0,C)+index_es_m(P,1,A)+index_es_m(P,2,M)+index_es_m(P,3,_)+index_es_m(P,4,1),V=index_es_m(P,5,C)+index_es_m(P,6,A)+index_es_m(P,7,M)+index_es_m(P,8,_)+index_es_m(P,9,1),R=index_es_m(P,10,C)+index_es_m(P,11,A)+index_es_m(P,12,M)+index_es_m(P,13,_)+index_es_m(P,14,1),k=index_es_m(P,15,C)+index_es_m(P,16,A)+index_es_m(P,17,M)+index_es_m(P,18,_)+index_es_m(P,19,1);b&&(N=0,V=0,R=0,k*=_/255),imSet(E.data,w,S,f,0,0,N),imSet(E.data,w,S,f,0,1,V),imSet(E.data,w,S,f,0,2,R),imSet(E.data,w,S,f,0,3,k)}h.clearRect(0,0,f,x),h.putImageData(E,0,0)}}class MaskElement extends Element{constructor(){super(...arguments),this.type="mask"}apply(h,g){var{document:d}=this,f=this.getAttribute("x").getPixels("x"),x=this.getAttribute("y").getPixels("y"),b=this.getStyle("width").getPixels("x"),P=this.getStyle("height").getPixels("y");if(!b&&!P){var E=new BoundingBox;this.children.forEach((g=>{E.addBoundingBox(g.getBoundingBox(h))})),f=Math.floor(E.x1),x=Math.floor(E.y1),b=Math.floor(E.width),P=Math.floor(E.height)}var S=this.removeStyles(g,MaskElement.ignoreStyles),w=d.createCanvas(f+b,x+P),C=w.getContext("2d");d.screen.setDefaults(C),this.renderChildren(C),new FeColorMatrixElement(d,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(C,0,0,f+b,x+P);var A=d.createCanvas(f+b,x+P),M=A.getContext("2d");d.screen.setDefaults(M),g.render(M),M.globalCompositeOperation="destination-in",M.fillStyle=C.createPattern(w,"no-repeat"),M.fillRect(0,0,f+b,x+P),h.fillStyle=M.createPattern(A,"no-repeat"),h.fillRect(0,0,f+b,x+P),this.restoreStyles(g,S)}render(h){}}MaskElement.ignoreStyles=["mask","transform","clip-path"];var noop=()=>{};class ClipPathElement extends Element{constructor(){super(...arguments),this.type="clipPath"}apply(h){var{document:g}=this,d=Reflect.getPrototypeOf(h),{beginPath:f,closePath:x}=h;d&&(d.beginPath=noop,d.closePath=noop),Reflect.apply(f,h,[]),this.children.forEach((f=>{if(void 0!==f.path){var b=void 0!==f.elementTransform?f.elementTransform():null;b||(b=Transform.fromElement(g,f)),b&&b.apply(h),f.path(h),d&&(d.closePath=x),b&&b.unapply(h)}})),Reflect.apply(x,h,[]),h.clip(),d&&(d.beginPath=f,d.closePath=x)}render(h){}}class FilterElement extends Element{constructor(){super(...arguments),this.type="filter"}apply(h,g){var{document:d,children:f}=this,x=g.getBoundingBox(h);if(x){var b=0,P=0;f.forEach((h=>{var g=h.extraFilterDistance||0;b=Math.max(b,g),P=Math.max(P,g)}));var E=Math.floor(x.width),S=Math.floor(x.height),w=E+2*b,C=S+2*P;if(!(w<1||C<1)){var A=Math.floor(x.x),M=Math.floor(x.y),_=this.removeStyles(g,FilterElement.ignoreStyles),N=d.createCanvas(w,C),V=N.getContext("2d");d.screen.setDefaults(V),V.translate(-A+b,-M+P),g.render(V),f.forEach((h=>{"function"==typeof h.apply&&h.apply(V,0,0,w,C)})),h.drawImage(N,0,0,w,C,A-b,M-P,w,C),this.restoreStyles(g,_)}}}render(h){}}FilterElement.ignoreStyles=["filter","transform","clip-path"];class FeDropShadowElement extends Element{constructor(h,g,d){super(h,g,d),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(h,g,d,f,x){}}class FeMorphologyElement extends Element{constructor(){super(...arguments),this.type="feMorphology"}apply(h,g,d,f,x){}}class FeCompositeElement extends Element{constructor(){super(...arguments),this.type="feComposite"}apply(h,g,d,f,x){}}class FeGaussianBlurElement extends Element{constructor(h,g,d){super(h,g,d),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(h,g,d,f,x){var{document:b,blurRadius:P}=this,E=b.window?b.window.document.body:null,S=h.canvas;S.id=b.getUniqueId(),E&&(S.style.display="none",E.appendChild(S)),processCanvasRGBA(S,g,d,f,x,P),E&&E.removeChild(S)}}class TitleElement extends Element{constructor(){super(...arguments),this.type="title"}}class DescElement extends Element{constructor(){super(...arguments),this.type="desc"}}var K={svg:SVGElement,rect:RectElement,circle:CircleElement,ellipse:EllipseElement,line:LineElement,polyline:PolylineElement,polygon:PolygonElement,path:PathElement,pattern:PatternElement,marker:MarkerElement,defs:DefsElement,linearGradient:LinearGradientElement,radialGradient:RadialGradientElement,stop:StopElement,animate:AnimateElement,animateColor:AnimateColorElement,animateTransform:AnimateTransformElement,font:FontElement,"font-face":FontFaceElement,"missing-glyph":MissingGlyphElement,glyph:GlyphElement,text:TextElement,tspan:TSpanElement,tref:TRefElement,a:AElement,textPath:TextPathElement,image:ImageElement,g:GElement,symbol:SymbolElement,style:StyleElement,use:UseElement,mask:MaskElement,clipPath:ClipPathElement,filter:FilterElement,feDropShadow:FeDropShadowElement,feMorphology:FeMorphologyElement,feComposite:FeCompositeElement,feColorMatrix:FeColorMatrixElement,feGaussianBlur:FeGaussianBlurElement,title:TitleElement,desc:DescElement};function ownKeys$1(h,g){var d=Object.keys(h);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(h);g&&(f=f.filter((function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable}))),d.push.apply(d,f)}return d}function _createImage(){return _createImage=_asyncToGenerator((function*(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=document.createElement("img");return g&&(d.crossOrigin="Anonymous"),new Promise(((g,f)=>{d.onload=()=>{g(d)},d.onerror=(h,g,d,x,b)=>{f(b)},d.src=h}))})),_createImage.apply(this,arguments)}class Document{constructor(h){var{rootEmSize:g=12,emSize:d=12,createCanvas:f=Document.createCanvas,createImage:x=Document.createImage,anonymousCrossOrigin:b}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=h,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=h.screen,this.rootEmSize=g,this.emSize=d,this.createCanvas=f,this.createImage=this.bindCreateImage(x,b),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(h,g){return"boolean"==typeof g?(d,f)=>h(d,"boolean"==typeof f?f:g):h}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:h}=this;return h[h.length-1]}set emSize(h){var{emSizeStack:g}=this;g.push(h)}popEmSize(){var{emSizeStack:h}=this;h.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every((h=>h.loaded))}isFontsLoaded(){return this.fonts.every((h=>h.loaded))}createDocumentElement(h){var g=this.createElement(h.documentElement);return g.root=!0,g.addStylesFromStyleDefinition(),this.documentElement=g,g}createElement(h){var g=h.nodeName.replace(/^[^:]+:/,""),d=Document.elementTypes[g];return void 0!==d?new d(this,h):new UnknownElement(this,h)}createTextNode(h){return new TextNode(this,h)}setViewBox(h){this.screen.setViewBox(function _objectSpread$1(h){for(var g=1;g<arguments.length;g++){var d=null!=arguments[g]?arguments[g]:{};g%2?ownKeys$1(Object(d),!0).forEach((function(g){(0,f.Z)(h,g,d[g])})):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(d)):ownKeys$1(Object(d)).forEach((function(g){Object.defineProperty(h,g,Object.getOwnPropertyDescriptor(d,g))}))}return h}({document:this},h))}}function ownKeys(h,g){var d=Object.keys(h);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(h);g&&(f=f.filter((function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable}))),d.push.apply(d,f)}return d}function _objectSpread(h){for(var g=1;g<arguments.length;g++){var d=null!=arguments[g]?arguments[g]:{};g%2?ownKeys(Object(d),!0).forEach((function(g){(0,f.Z)(h,g,d[g])})):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(d)):ownKeys(Object(d)).forEach((function(g){Object.defineProperty(h,g,Object.getOwnPropertyDescriptor(d,g))}))}return h}Document.createCanvas=function createCanvas(h,g){var d=document.createElement("canvas");return d.width=h,d.height=g,d},Document.createImage=function createImage(h){return _createImage.apply(this,arguments)},Document.elementTypes=K;class Canvg{constructor(h,g){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new Parser(d),this.screen=new Screen(h,d),this.options=d;var f=new Document(this,d),x=f.createDocumentElement(g);this.document=f,this.documentElement=x}static from(h,g){var d=arguments;return _asyncToGenerator((function*(){var f=d.length>2&&void 0!==d[2]?d[2]:{},x=new Parser(f),b=yield x.parse(g);return new Canvg(h,b,f)}))()}static fromString(h,g){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=new Parser(d).parseFromString(g);return new Canvg(h,f,d)}fork(h,g){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(h,g,_objectSpread(_objectSpread({},this.options),d))}forkString(h,g){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(h,g,_objectSpread(_objectSpread({},this.options),d))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var h=arguments,g=this;return _asyncToGenerator((function*(){var d=h.length>0&&void 0!==h[0]?h[0]:{};g.start(_objectSpread({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},d)),yield g.ready(),g.stop()}))()}start(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:g,screen:d,options:f}=this;d.start(g,_objectSpread(_objectSpread({enableRedraw:!0},f),h))}stop(){this.screen.stop()}resize(h){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,d=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(h,g,d)}}}}]);