PageSourceSearch

https://ggci-world.in/static/js/canvg.55913b61.chunk.js

js ggci-world.in collected 2026-10-06 09:04:51 UTC 169,400 bytes, 2 lines download raw bytes

1/*! For license information please see canvg.55913b61.chunk.js.LICENSE.txt */
2(self.webpackChunkGPlanet=self.webpackChunkGPlanet||[]).push([[182],{5069(t,e,r){"use strict";r.r(e),r.d(e,{AElement:()=>Be,AnimateColorElement:()=>we,AnimateElement:()=>be,AnimateTransformElement:()=>ke,BoundingBox:()=>Ot,CB1:()=>Y,CB2:()=>U,CB3:()=>Q,CB4:()=>Z,Canvg:()=>Mr,CircleElement:()=>Yt,ClipPathElement:()=>ur,DefsElement:()=>ue,DescElement:()=>wr,Document:()=>Rr,Element:()=>kt,EllipseElement:()=>Qt,FeColorMatrixElement:()=>nr,FeCompositeElement:()=>vr,FeDropShadowElement:()=>hr,FeGaussianBlurElement:()=>mr,FeMorphologyElement:()=>yr,FilterElement:()=>lr,Font:()=>Tt,FontElement:()=>Ee,FontFaceElement:()=>Te,GElement:()=>le,GlyphElement:()=>Le,GradientElement:()=>he,ImageElement:()=>qe,LineElement:()=>Kt,LinearGradientElement:()=>ye,MarkerElement:()=>oe,MaskElement:()=>ar,Matrix:()=>vt,MissingGlyphElement:()=>De,Mouse:()=>ot,PSEUDO_ZERO:()=>q,Parser:()=>ht,PathElement:()=>$t,PathParser:()=>Ft,PatternElement:()=>ie,Point:()=>at,PolygonElement:()=>re,PolylineElement:()=>te,Property:()=>nt,QB1:()=>K,QB2:()=>J,QB3:()=>tt,RadialGradientElement:()=>ve,RectElement:()=>Wt,RenderedElement:()=>Vt,Rotate:()=>yt,SVGElement:()=>qt,SVGFontLoader:()=>Xe,Scale:()=>gt,Screen:()=>ct,Skew:()=>mt,SkewX:()=>bt,SkewY:()=>wt,StopElement:()=>me,StyleElement:()=>Ue,SymbolElement:()=>We,TRefElement:()=>Ie,TSpanElement:()=>zt,TextElement:()=>Nt,TextPathElement:()=>$e,TitleElement:()=>br,Transform:()=>St,Translate:()=>pt,UnknownElement:()=>Rt,UseElement:()=>Ze,ViewPort:()=>it,compressSpaces:()=>C,default:()=>Or,getSelectorSpecificity:()=>G,normalizeAttributeName:()=>D,normalizeColor:()=>L,parseExternalUrl:()=>V,presets:()=>Tr,toNumbers:()=>T,trimLeft:()=>E,trimRight:()=>M,vectorMagnitude:()=>H,vectorsAngle:()=>X,vectorsRatio:()=>W});r(2659),r(4011),r(7262),r(9699),r(5084),r(5510),r(5885);var n=r(5544),i=r(4756),a=r.n(i);function o(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,"next",t)}function u(t){o(a,n,i,s,u,"throw",t)}s(void 0)})}}var u=r(4467),c=r(3029),l=r(2901),f=r(1700),h=r.n(f),p=r(3113),y=r.n(p),g=r(6822),v=r(3954),d=r(5361),m=r(436);function x(){return x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=(0,v.A)(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},x.apply(null,arguments)}var b=r(9417);function A(t){return A="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}var w=[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,39
26,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],S=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function k(t,e,r,n,i){if("string"===typeof t&&(t=document.getElementById(t)),!t||"object"!==A(t)||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var a=t.getContext("2d");try{return a.getImageData(e,r,n,i)}catch(o){throw new Error("unable to access image data: "+o)}}function P(t,e,r,n,i,a){if(!(isNaN(a)||a<1)){a|=0;var o=k(t,e,r,n,i);o=function(t,e,r,n,i,a){for(var o,s=t.data,u=2*a+1,c=n-1,l=i-1,f=a+1,h=f*(f+1)/2,p=new R,y=p,g=1;g<u;g++)y=y.next=new R,g===f&&(o=y);y.next=p;for(var v=null,d=null,m=0,x=0,b=w[a],A=S[a],k=0;k<i;k++){y=p;for(var P=s[x],C=s[x+1],E=s[x+2],M=s[x+3],T=0;T<f;T++)y.r=P,y.g=C,y.b=E,y.a=M,y=y.next;for(var O=0,D=0,V=0,L=0,N=f*P,I=f*C,z=f*E,B=f*M,j=h*P,F=h*C,_=h*E,$=h*M,G=1;G<f;G++){var q=x+((c<G?c:G)<<2),H=s[q],W=s[q+1],X=s[q+2],Y=s[q+3],U=f-G;j+=(y.r=H)*U,F+=(y.g=W)*U,_+=(y.b=X)*U,$+=(y.a=Y)*U,O+=H,D+=W,V+=X,L+=Y,y=y.next}v=p,d=o;for(var Q=0;Q<n;Q++){var Z=$*b>>>A;if(s[x+3]=Z,0!==Z){var K=255/Z;s[x]=(j*b>>>A)*K,s[x+1]=(F*b>>>A)*K,s[x+2]=(_*b>>>A)*K}else s[x]=s[x+1]=s[x+2]=0;j-=N,F-=I,_-=z,$-=B,N-=v.r,I-=v.g,z-=v.b,B-=v.a;var J=Q+a+1;J=m+(J<c?J:c)<<2,j+=O+=v.r=s[J],F+=D+=v.g=s[J+1],_+=V+=v.b=s[J+2],$+=L+=v.a=s[J+3],v=v.next;var tt=d,et=tt.r,rt=tt.g,nt=tt.b,it=tt.a;N+=et,I+=rt,z+=nt,B+=it,O-=et,D-=rt,V-=nt,L-=it,d=d.next,x+=4}m+=n}for(var at=0;at<n;at++){var ot=s[x=at<<2],st=s[x+1],ut=s[x+2],ct=s[x+3],lt=f*ot,ft=f*st,ht=f*ut,pt=f*ct,yt=h*ot,gt=h*st,vt=h*ut,dt=h*ct;y=p;for(var mt=0;mt<f;mt++)y.r=ot,y.g=st,y.b=ut,y.a=ct,y=y.next;for(var xt=n,bt=0,At=0,wt=0,St=0,kt=1;kt<=a;kt++){x=xt+at<<2;var Pt=f-kt;yt+=(y.r=ot=s[x])*Pt,gt+=(y.g=st=s[x+1])*Pt,vt+=(y.b=ut=s[x+2])*Pt,dt+=(y.a=ct=s[x+3])*Pt,St+=ot,bt+=st,At+=ut,wt+=ct,y=y.next,kt<l&&(xt+=n)}x=at,v=p,d=o;for(var Rt=0;Rt<i;Rt++){var Ct=x<<2;s[Ct+3]=ct=dt*b>>>A,ct>0?(ct=255/ct,s[Ct]=(yt*b>>>A)*ct,s[Ct+1]=(gt*b>>>A)*ct,s[Ct+2]=(vt*b>>>A)*ct):s[Ct]=s[Ct+1]=s[Ct+2]=0,yt-=lt,gt-=ft,vt-=ht,dt-=pt,lt-=v.r,ft-=v.g,ht-=v.b,pt-=v.a,Ct=at+((Ct=Rt+f)<l?Ct:l)*n<<2,yt+=St+=v.r=s[Ct],gt+=bt+=v.g=s[Ct+1],vt+=At+=v.b=s[Ct+2],dt+=wt+=v.a=s[Ct+3],v=v.next,lt+=ot=d.r,ft+=st=d.g,ht+=ut=d.b,pt+=ct=d.a,St-=ot,bt-=st,At-=ut,wt-=ct,d=d.next,x+=n}}return t}(o,0,0,n,i,a),t.getContext("2d").putImageData(o,e,r)}}var R=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function C(t){return t.replace(/(?!\u3000)\s+/gm," ")}function E(t){return t.replace(/^[\n \t]+/,"")}function M(t){return t.replace(/[\n \t]+$/,"")}function T(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var O=/^[A-Z-]+$/;function D(t){return O.test(t)?t.toLowerCase():t}function V(t){var e=t.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return e[2]||e[3]||e[4]}function L(t){if(!t.startsWith("rgb"))return t;var e=3;return t.replace(/\d+(\.\d+)?/g,function(t,r){return e--&&r?String(Math.round(parseFloat(t))):t})}var N=/(\[[^\]]+\])/g,I=/(#[^\s\+>~\.\[:]+)/g,z=/(\.[^\s\+>~\.\[:]+)/g,B=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,j=/(:[\w-]+\([^\)]*\))/gi,F=/(:[^\s\+>~\.\[:]+)/g,_=/([^\s\+>~\.\[:]+)/g;function $(t,e){var r=t.match(e);return r?[t.replace(e," "),r.length]:[t,0]}function G(t){var e=[0,0,0],r=t.replace(/:not\(([^\)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),i=0,a=$(r,N),o=(0,n.A)(a,2);r=o[0],i=o[1],e[1]+=i;var s=$(r,I),u=(0,n.A)(s,2);r=u[0],i=u[1],e[0]+=i;var c=$(r,z),l=(0,n.A)(c,2);r=l[0],i=l[1],e[1]+=i;var f=$(r,B),h=(0,n.A)(f,2);r=h[0],i=h[1],e[2]+=i;var p=$(r,j),y=(0,n.A)(p,2);r=y[0],i=y[1],e[1]+=i;var g=$(r,F),v=(0,n.A)(g,2);r=v[0],i=v[1],e[1]+=i;var d=$(r=r.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),_),m=(0,n.A)(d,2);return r=m[0],i=m[1],e[2]+=i,e.join("")}var q=1e-8;function H(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function W(t,e){return(t[0]*e[0]+t[1]*e[1])/(H(t)*H(e))}function X(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(W(t,e))}function Y(t){return t*t*t}function U(t){return 3*t*t*(1-t)}function Q(t){return 3*t*(1-t)*(1-t)}function Z(t){return(1-t)*(1-t)*(1-t)}function K(t){return t*t}function J(t){return 2*t*(1-t)}function tt(t){return(1-t)*(1-t)}et=function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),o=new C(n||[]);return a._invoke=function(t,e,r){var n=l;return function(i,a){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw a;return M()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=k(o,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=c(t,e,r);
vendor: 5,030 bytes, line 2
2if("normal"===u.type){if(n=r.done?p:f,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,o),a}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=u;var l="suspendedStart",f="suspendedYield",h="executing",p="completed",y={};function g(){}function v(){}function d(){}var m={};m[a]=function(){return this};var x=Object.getPrototypeOf,b=x&&x(x(E([])));b&&b!==r&&n.call(b,a)&&(m=b);var A=d.prototype=g.prototype=Object.create(m);function w(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function S(t,e){function r(i,a,o,s){var u=c(t[i],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"===typeof f&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,o,s)},function(t){r("throw",t,o,s)}):e.resolve(f).then(function(t){l.value=t,o(l)},function(t){return r("throw",t,o,s)})}s(u.arg)}var i;this._invoke=function(t,n){function a(){return new e(function(e,i){r(t,n,e,i)})}return i=i?i.then(a,a):a()}}function k(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var i=c(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function P(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 R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function E(t){if(t){var r=t[a];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}return{next:M}}function M(){return{value:e,done:!0}}return v.prototype=A.constructor=d,d.constructor=v,d[s]=v.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(A),t},t.awrap=function(t){return{__await:t}},w(S.prototype),S.prototype[o]=function(){return this},t.AsyncIterator=S,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new S(u(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then(function(t){return t.done?t.value:o.next()})},w(A),A[s]="Generator",A[a]=function(){return this},A.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=E,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(R),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},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),R(r),y}}
2,catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;R(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:E(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(r){Function("r","regeneratorRuntime = r")(e)}},et(rt={exports:{}},rt.exports);var et,rt,nt=function(){function t(e,r,n){(0,c.A)(this,t),this.document=e,this.name=r,this.value=n,this.isNormalizedColor=!1}return(0,l.A)(t,[{key:"hasValue",value:function(){var t=this.value;return null!==t&&""!==t&&0!==t&&"undefined"!==typeof t}},{key:"isString",value:function(t){var e=this.value,r="string"===typeof e;return r&&t?t.test(e):r}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case/px$/.test(t):case/^[0-9]+$/.test(t):return!0;default:return!1}}},{key:"setValue",value:function(t){return this.value=t,this}},{key:"getValue",value:function(t){return"undefined"===typeof t||this.hasValue()?this.value:t}},{key:"getNumber",value:function(t){if(!this.hasValue())return"undefined"===typeof t?0:parseFloat(t);var e=this.value,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}},{key:"getString",value:function(t){return"undefined"===typeof t||this.hasValue()?"undefined"===typeof this.value?"":String(this.value):String(t)}},{key:"getColor",value:function(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=L(e),this.value=e),e}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var r="boolean"===typeof t?[void 0,t]:[t],i=(0,n.A)(r,2),a=i[0],o=i[1],s=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);
2case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&o:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(a);default:var u=this.getNumber();return e&&u<1?u*s.computeSize(a):u}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var t=this.getString(),e=t.match(/#([^\)'"]+)/);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}},{key:"getFillStyleDefinition",value:function(t,e){var r=this.getDefinition();if(!r)return null;if("function"===typeof r.createGradient)return r.createGradient(this.document.ctx,t,e);if("function"===typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var n=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),n.hasValue()&&r.getAttribute("patternTransform",!0).setValue(n.value)}return r.createPattern(this.document.ctx,t,e)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?t.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(e){for(var r=this.getColor(),n=r.length,i=0,a=0;a<n&&(","===r[a]&&i++,3!==i);a++);if(e.hasValue()&&this.isString()&&3!==i){var o=new(y())(r);o.ok&&(o.alpha=e.getNumber(),r=o.toRGBA())}return new t(this.document,this.name,r)}}],[{key:"empty",value:function(e){return new t(e,"EMPTY","")}}]),t}();nt.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var it=function(){function t(){(0,c.A)(this,t),this.viewPorts=[]}return(0,l.A)(t,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(t,e){this.viewPorts.push({width:t,height:e})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getCurrent",value:function(){var t=this.viewPorts;return t[t.length-1]}},{key:"computeSize",value:function(t){return"number"===typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}}]),t}(),at=function(){function t(e,r){(0,c.A)(this,t),this.x=e,this.y=r}return(0,l.A)(t,[{key:"angleTo",value:function(t){return Math.atan2(t.y-this.y,t.x-this.x)}},{key:"applyTransform",value:function(t){var e=this.x,r=this.y,n=e*t[0]+r*t[2]+t[4],i=e*t[1]+r*t[3]+t[5];this.x=n,this.y=i}}],[{key:"parse",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=T(e),a=(0,n.A)(i,2),o=a[0],s=void 0===o?r:o,u=a[1];return new t(s,void 0===u?r:u)}},{key:"parseScale",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=T(e),a=(0,n.A)(i,2),o=a[0],s=void 0===o?r:o,u=a[1];return new t(s,void 0===u?s:u)}},{key:"parsePath",value:function(e){for(var r=T(e),n=r.length,i=[],a=0;a<n;a+=2)i.push(new t(r[a],r[a+1]));return i}}]),t}(),ot=function(){function t(e){(0,c.A)(this,t),this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}return(0,l.A)(t,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){if(!this.working){var t=this.screen,e=this.onClick,r=this.onMouseMove,n=t.ctx.canvas;n.onclick=e,n.onmousemove=r,this.working=!0}}},{key:"stop",value:function(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}},{key:"hasEvents",value:function(){return this.working&&this.events.length>0}},{key:"runEvents",value:function(){if(this.working){var t=this.screen,e=this.events,r=this.eventElements,n=t.ctx.canvas.style;n&&(n.cursor=""),e.forEach(function(t,e){for(var n=t.run,i=r[e];i;)n(i),i=i.parent}),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function(t,e){if(this.working&&e){var r=this.events,n=this.eventElements;r.forEach(function(r,i){var a=r.x,o=r.y;!n[i]&&e.isPointInPath&&e.isPointInPath(a,o)&&(n[i]=t)})}}},{key:"checkBoundingBox",value:function(t,e){if(this.working&&e){var r=this.events,n=this.eventElements;r.forEach(function(r,i){var a=r.x,o=r.y;!n[i]&&e.isPointInBox(a,o)&&(n[i]=t)})}}},{key:"mapXY",value:function(t,e){for(var r=this.screen,n=r.window,i=r.ctx,a=new at(t,e),o=i.canvas;o;)a.x-=o.offsetLeft,a.y-=o.offsetTop,o=o.offsetParent;
2return n.scrollX&&(a.x+=n.scrollX),n.scrollY&&(a.y+=n.scrollY),a}},{key:"onClick",value:function(t){var e=this.mapXY((t||event).clientX,(t||event).clientY),r=e.x,n=e.y;this.events.push({type:"onclick",x:r,y:n,run:function(t){t.onClick&&t.onClick()}})}},{key:"onMouseMove",value:function(t){var e=this.mapXY((t||event).clientX,(t||event).clientY),r=e.x,n=e.y;this.events.push({type:"onmousemove",x:r,y:n,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),t}(),st="undefined"!==typeof window?window:null,ut="undefined"!==typeof fetch?fetch.bind(void 0):null,ct=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.fetch,i=void 0===n?ut:n,a=r.window,o=void 0===a?st:a;(0,c.A)(this,t),this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new it,this.mouse=new ot(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=o,this.fetch=i}return(0,l.A)(t,[{key:"wait",value:function(t){this.waits.push(t)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var t=this.waits.every(function(t){return t()});return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}},{key:"setDefaults",value:function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}},{key:"setViewBox",value:function(t){var e=t.document,r=t.ctx,i=t.aspectRatio,a=t.width,o=t.desiredWidth,s=t.height,u=t.desiredHeight,c=t.minX,l=void 0===c?0:c,f=t.minY,h=void 0===f?0:f,p=t.refX,y=t.refY,g=t.clip,v=void 0!==g&&g,d=t.clipX,m=void 0===d?0:d,x=t.clipY,b=void 0===x?0:x,A=C(i).replace(/^defer\s/,"").split(" "),w=(0,n.A)(A,2),S=w[0]||"xMidYMid",k=w[1]||"meet",P=a/o,R=s/u,E=Math.min(P,R),M=Math.max(P,R),T=o,O=u;"meet"===k&&(T*=E,O*=E),"slice"===k&&(T*=M,O*=M);var D=new nt(e,"refX",p),V=new nt(e,"refY",y),L=D.hasValue()&&V.hasValue();if(L&&r.translate(-E*D.getPixels("x"),-E*V.getPixels("y")),v){var N=E*m,I=E*b;r.beginPath(),r.moveTo(N,I),r.lineTo(a,I),r.lineTo(a,s),r.lineTo(N,s),r.closePath(),r.clip()}if(!L){var z="meet"===k&&E===R,B="slice"===k&&M===R,j="meet"===k&&E===P,F="slice"===k&&M===P;/^xMid/.test(S)&&(z||B)&&r.translate(a/2-T/2,0),/YMid$/.test(S)&&(j||F)&&r.translate(0,s/2-O/2),/^xMax/.test(S)&&(z||B)&&r.translate(a-T,0),/YMax$/.test(S)&&(j||F)&&r.translate(0,s-O)}switch(!0){case"none"===S:r.scale(P,R);break;case"meet"===k:r.scale(E,E);break;case"slice"===k:r.scale(M,M)}r.translate(-l,-h)}},{key:"start",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.enableRedraw,i=void 0!==n&&n,a=r.ignoreMouse,o=void 0!==a&&a,s=r.ignoreAnimation,u=void 0!==s&&s,c=r.ignoreDimensions,l=void 0!==c&&c,f=r.ignoreClear,p=void 0!==f&&f,y=r.forceRedraw,g=r.scaleWidth,v=r.scaleHeight,d=r.offsetX,m=r.offsetY,x=this.FRAMERATE,b=this.mouse,A=1e3/x;if(this.frameDuration=A,this.readyPromise=new Promise(function(t){e.resolveReady=t}),this.isReady()&&this.render(t,l,p,g,v,d,m),i){var w=Date.now(),S=w,k=0;o||b.start(),this.intervalId=h()(function r(){w=Date.now(),(k=w-S)>=A&&(S=w-k%A,e.shouldUpdate(u,y)&&(e.render(t,l,p,g,v,d,m),b.runEvents())),e.intervalId=h()(r)})}}},{key:"stop",value:function(){this.intervalId&&(h().cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(t,e){if(!t){var r=this.frameDuration,n=this.animations.reduce(function(t,e){return e.update(r)||t},!1);if(n)return!0}return!("function"!==typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function(t,e,r,n,i,a,o){var s=this.CLIENT_WIDTH,u=this.CLIENT_HEIGHT,c=this.viewPort,l=this.ctx,f=this.isFirstRender,h=l.canvas;c.clear(),h.width&&h.height?c.setCurrent(h.width,h.height):c.setCurrent(s,u);var p=t.getStyle("width"),y=t.getStyle("height");!e&&(f||"number"!==typeof n&&"number"!==typeof i)&&(p.hasValue()&&(h.width=p.getPixels("x"),h.style&&(h.style.width="".concat(h.width,"px"))),y.hasValue()&&(h.height=y.getPixels("y"),h.style&&(h.style.height="".concat(h.height,"px"))));var g=h.clientWidth||h.width,v=h.clientHeight||h.height;if(e&&p.hasValue()&&y.hasValue()&&(g=p.getPixels("x"),v=y.getPixels("y")),c.setCurrent(g,v),"number"===typeof a&&t.getAttribute("x",!0).setValue(a),"number"===typeof o&&t.getAttribute("y",!0).setValue(o),"number"===typeof n||"number"===typeof i){var d=T(t.getAttribute("viewBox").getString()),m=0,x=0;if("number"===typeof n){var b=t.getStyle("width");b.hasValue()?m=b.getPixels("x")/n:isNaN(d[2])||(m=d[2]/n)}if("number"===typeof i){var A=t.getStyle("height");A.hasValue()?x=A.getPixels("y")/i:isNaN(d[3])||(x=d[3]/i)}m||(m=x),x||(x=m),t.getAttribute("width",!0).setValue(n),t.getAttribute("height",!0).setValue(i);var w=t.getStyle("transform",!0,!0);w.setValue("".concat(w.getString()," scale(").concat(1/m,", ").concat(1/x,")"))}r||l.clearRect(0,0,g,v),t.render(l),f&&(this.isFirstRender=!1)}}]),t}();ct.defaultWindow=st,ct.defaultFetch=ut;var lt=ct.defaultFetch,ft="undefined"!==typeof DOMParser?DOMParser:null,ht=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.fetch,n=void 0===r?lt:r,i=e.DOMParser,a=void 0===i?ft:i;(0,c.A)(this,t),this.fetch=n,this.DOMParser=a}return(0,l.A)(t,[{key:"parse",value:function(){var t=s(a().mark(function t(e){return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!/^</.test(e)){t.next=2;break}return t.abrupt("return",this.parseFromString(e));case 2:return t.abrupt("return",this.load(e));case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"parseFromString",value:function(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch(r){return this.checkDocument(e.parseFromString(t,"text/xml"))}}},{key:"checkDocument",value:function(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}},{key:"load",value:function(){var t=s(a().mark(function t(e){var r,n;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.fetch(e);case 2:return r=t.sent,t.next=5,r.text();case 5:return n=t.sent,t.abrupt("return",this.parseFromString(n));case 7:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()}]),t}(),pt=function(){function t(e,r){(0,c.A)(this,t),this.type="translate",this.point=null,this.point=at.parse(r)}return(0,l.A)(t,[{key:"apply",value:function(t){var e=this.point,r=e.x,n=e.y;t.translate(r||0,n||0)}},{key:"unapply",value:function(t){var e=this.point,r=e.x,n=e.y;t.translate(-1*r||0,-1*n||0)}},{key:"applyToPoint",value:function(t){var e=this.point,r=e.x,n=e.y;t.applyTransform([1,0,0,1,r||0,n||0])}}]),t}(),yt=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];(0,c.A)(this,t),this.type="rotate",this.angle=null,this.cx=0,this.cy=0;var i=T(r);this.angle=new nt(e,"angle",i[0]),this.cx=(i[1]||0)+(n[0]||0),this.cy=(i[2]||0)+(n[1]||0)}return(0,l.A)(t,[{key:"apply",value:function(t){var e=this.cx,r=this.cy,n=this.angle;t.translate(e,r),t.rotate(n.getRadians()),t.translate(-e,-r)}},{key:"unapply",value:function(t){var e=this.cx,r=this.cy,n=this.angle;t.translate(e,r),t.rotate(-1*n.getRadians()),t.translate(-e,-r)}},{key:"applyToPoint",value:function(t){var e=this.cx,r=this.cy,n=this.angle.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}]),t}
2(),gt=function(){function t(e,r){(0,c.A)(this,t),this.type="scale",this.scale=null;var n=at.parseScale(r);0!==n.x&&0!==n.y||(n.x=q,n.y=q),this.scale=n}return(0,l.A)(t,[{key:"apply",value:function(t){var e=this.scale,r=e.x,n=e.y;t.scale(r,n||r)}},{key:"unapply",value:function(t){var e=this.scale,r=e.x,n=e.y;t.scale(1/r,1/n||r)}},{key:"applyToPoint",value:function(t){var e=this.scale,r=e.x,n=e.y;t.applyTransform([r||0,0,0,n||0,0,0])}}]),t}(),vt=function(){function t(e,r){(0,c.A)(this,t),this.type="matrix",this.matrix=[],this.matrix=T(r)}return(0,l.A)(t,[{key:"apply",value:function(t){var e=this.matrix;t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}},{key:"unapply",value:function(t){var e=this.matrix,r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],u=1/(r*(1*o-0*s)-n*(1*a-0*s)+i*(0*a-0*o));t.transform(u*(1*o-0*s),u*(0*s-1*a),u*(0*i-1*n),u*(1*r-0*i),u*(n*s-i*o),u*(i*a-r*s))}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),t}();function dt(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var mt=function(t){(0,d.A)(r,t);var e=dt(r);function r(t,n){var i;return(0,c.A)(this,r),(i=e.call(this,t,n)).type="skew",i.angle=null,i.angle=new nt(t,"angle",n),i}return r}(vt);function xt(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var bt=function(t){(0,d.A)(r,t);var e=xt(r);function r(t,n){var i;return(0,c.A)(this,r),(i=e.call(this,t,n)).type="skewX",i.matrix=[1,0,Math.tan(i.angle.getRadians()),1,0,0],i}return r}(mt);function At(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var wt=function(t){(0,d.A)(r,t);var e=At(r);function r(t,n){var i;return(0,c.A)(this,r),(i=e.call(this,t,n)).type="skewY",i.matrix=[1,Math.tan(i.angle.getRadians()),0,1,0,0],i}return r}(mt);var St=function(){function t(e,r,i){var a=this;(0,c.A)(this,t),this.document=e,this.transforms=[];var o=function(t){return C(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(r),s=i?T(i):[];o.forEach(function(e){if("none"!==e){var r=function(t){var e=t.split("("),r=(0,n.A)(e,2),i=r[0],a=r[1];return[i.trim(),a.trim().replace(")","")]}(e),i=(0,n.A)(r,2),o=i[0],u=i[1],c=t.transformTypes[o];"undefined"!==typeof c&&a.transforms.push(new c(a.document,u,s))}})}return(0,l.A)(t,[{key:"apply",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].apply(t)}},{key:"unapply",value:function(t){for(var e=this.transforms,r=e.length-1;r>=0;r--)e[r].unapply(t)}},{key:"applyToPoint",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].applyToPoint(t)}}],[{key:"fromElement",value:function(e,r){var n=r.getStyle("transform",!1,!0),i=r.getStyle("transform-origin",!1,!0);return n.hasValue()?new t(e,n.getString(),i.getString()):null}}]),t}();St.transformTypes={translate:pt,rotate:yt,scale:gt,matrix:vt,skewX:bt,skewY:wt};var kt=function(){function t(e,r){var i=this,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,c.A)(this,t),this.document=e,this.node=r,this.captureTextNodes=a,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){if(Array.from(r.attributes).forEac
2h(function(t){var r=D(t.nodeName);i.attributes[r]=new nt(e,r,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue())this.getAttribute("style").getString().split(";").map(function(t){return t.trim()}).forEach(function(t){if(t){var r=t.split(":").map(function(t){return t.trim()}),a=(0,n.A)(r,2),o=a[0],s=a[1];i.styles[o]=new nt(e,o,s)}});var o=e.definitions,s=this.getAttribute("id");s.hasValue()&&(o[s.getValue()]||(o[s.getValue()]=this)),Array.from(r.childNodes).forEach(function(t){if(1===t.nodeType)i.addChild(t);else if(a&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&i.addChild(r)}})}}return(0,l.A)(t,[{key:"getAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[t];if(!r&&e){var n=new nt(this.document,t,"");return this.attributes[t]=n,n}return r||nt.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||/:href$/.test(t))return this.attributes[t];return nt.empty(this.document)}},{key:"getStyle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.styles[t];if(n)return n;var i=this.getAttribute(t);if(i&&i.hasValue())return this.styles[t]=i,i;if(!r){var a=this.parent;if(a){var o=a.getStyle(t);if(o&&o.hasValue())return o}}if(e){var s=new nt(this.document,t,"");return this.styles[t]=s,s}return n||nt.empty(this.document)}},{key:"render",value:function(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}},{key:"setContext",value:function(t){}},{key:"applyEffects",value:function(t){var e=St.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var n=r.getDefinition();n&&n.apply(t)}}},{key:"clearContext",value:function(t){}},{key:"renderChildren",value:function(t){this.children.forEach(function(e){e.render(t)})}},{key:"addChild",value:function(e){var r=e instanceof t?e:this.document.createElement(e);r.parent=this,t.ignoreChildTypes.includes(r.type)||this.children.push(r)}},{key:"matchesSelector",value:function(t){var e=this.node;if("function"===typeof e.matches)return e.matches(t);var r=e.getAttribute("class");return!(!r||""===r)&&r.split(" ").some(function(e){if(".".concat(e)===t)return!0})}},{key:"addStylesFromStyleDefinition",value:function(){var t=this.document,e=t.styles,r=t.stylesSpecificity;for(var n in e)if("@"!==n[0]&&this.matchesSelector(n)){var i=e[n],a=r[n];if(i)for(var o in i){var s=this.stylesSpecificity[o];"undefined"===typeof s&&(s="000"),a>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=a)}}}},{key:"removeStyles",value:function(t,e){return e.reduce(function(e,r){var n=t.getStyle(r);if(!n.hasValue())return e;var i=n.getString();return n.setValue(""),[].concat((0,m.A)(e),[[r,i]])},[])}},{key:"restoreStyles",value:function(t,e){e.forEach(function(e){var r=(0,n.A)(e,2),i=r[0],a=r[1];t.getStyle(i,!0).setValue(a)})}}]),t}();function Pt(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}kt.ignoreChildTypes=["title"];var Rt=function(t){(0,d.A)(r,t);var e=Pt(r);function r(t,n,i){return(0,c.A)(this,r),e.call(this,t,n,i)}return r}(kt);function Ct(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function Et(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function Mt(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}var Tt=function(){function t(e,r,n,i,a,o){(0,c.A)(this,t);var s=o?"string"===typeof o?t.parse(o):o:{};this.fontFamily=a||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=n||s.fontWeight,this.fontVariant=r||s.fontVariant}return(0,l.A)(t,[{key:"toString",value:function(){return[Et(this.fontStyle),this.fontVariant,Mt(this.fontWeight),this.fontSize,(t=this.fontFamily,"undefined"===typeof process?t:t.trim().split(",").map(Ct).join(","))].join(" ").trim();var t}}],[{key:"parse",value:function(){var e=arguments.length>1?arguments[1]:void 0,r="",i="",a="",o="",s="",u=C(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return u.forEach(function(e){switch(!0){case!c.fontStyle&&t.styles.includes(e):"inherit"!==e&&(r=e),c.fontStyle=!0;break;case!c.fontVariant&&t.variants.includes(e):"inherit"!==e&&(i=e),c.fontStyle=!0,c.fontVariant=!0;break;case!c.fontWeight&&t.weights.includes(e):"inherit"!==e&&(a=e),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:if("inherit"!==e){var u=e.split("/"),l=(0,n.A)(u,1);o=l[0]}c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:"inherit"!==e&&(s+=e)}}),new t(r,i,a,o,s,e)}}]),t}();Tt.styles="normal|italic|oblique|inherit",Tt.variants="normal|small-caps|inherit",Tt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var Ot=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;(0,c.A)(this,t),this.x1=e,this.y1=r,this.x2=n,this.y2=i,this.addPoint(e,r),this.addPoint(n,i)}return(0,l.A)(t,[{key:"addPoint",value:function(t,e){"undefined"!==typeof t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),"undefined"!==typeof e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}},{key:"addX",value:function(t){this.addPoint(t,null)}},{key:"addY",value:function(t){this.addPoint(null,t)}}
2,{key:"addBoundingBox",value:function(t){if(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;this.addPoint(e,r),this.addPoint(n,i)}}},{key:"sumCubic",value:function(t,e,r,n,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*i}},{key:"bezierCurveAdd",value:function(t,e,r,n,i){var a=6*e-12*r+6*n,o=-3*e+9*r-9*n+3*i,s=3*r-3*e;if(0!==o){var u=Math.pow(a,2)-4*s*o;if(!(u<0)){var c=(-a+Math.sqrt(u))/(2*o);0<c&&c<1&&(t?this.addX(this.sumCubic(c,e,r,n,i)):this.addY(this.sumCubic(c,e,r,n,i)));var l=(-a-Math.sqrt(u))/(2*o);0<l&&l<1&&(t?this.addX(this.sumCubic(l,e,r,n,i)):this.addY(this.sumCubic(l,e,r,n,i)))}}else{if(0===a)return;var f=-s/a;0<f&&f<1&&(t?this.addX(this.sumCubic(f,e,r,n,i)):this.addY(this.sumCubic(f,e,r,n,i)))}}},{key:"addBezierCurve",value:function(t,e,r,n,i,a,o,s){this.addPoint(t,e),this.addPoint(o,s),this.bezierCurveAdd(!0,t,r,i,o),this.bezierCurveAdd(!1,e,n,a,s)}},{key:"addQuadraticCurve",value:function(t,e,r,n,i,a){var o=t+2/3*(r-t),s=e+2/3*(n-e),u=o+1/3*(i-t),c=s+1/3*(a-e);this.addBezierCurve(t,e,o,u,s,c,i,a)}},{key:"isPointInBox",value:function(t,e){var r=this.x1,n=this.y1,i=this.x2,a=this.y2;return r<=t&&t<=i&&n<=e&&e<=a}},{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}}]),t}();function Dt(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var Vt=function(t){(0,d.A)(r,t);var e=Dt(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).modifiedEmSizeStack=!1,t}return(0,l.A)(r,[{key:"calculateOpacity",value:function(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue()&&(t*=r.getNumber()),e=e.parent}return t}},{key:"setContext",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var o=r.getFillStyleDefinition(this,n);o&&(t.fillStyle=o)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var s=r.getColor();"inherit"!==s&&(t.fillStyle="none"===s?"rgba(0,0,0,0)":s)}if(n.hasValue()){var u=new nt(this.document,"fill",t.fillStyle).addOpacity(n).getColor();t.fillStyle=u}if(i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,a);c&&(t.strokeStyle=c)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var l=i.getString();"inherit"!==l&&(t.strokeStyle="none"===l?"rgba(0,0,0,0)":l)}if(a.hasValue()){var f=new nt(this.document,"stroke",t.strokeStyle).addOpacity(a).getString();t.strokeStyle=f}var h=this.getStyle("stroke-width");if(h.hasValue()){var p=h.getPixels();t.lineWidth=p||q}var y=this.getStyle("stroke-linecap"),g=this.getStyle("stroke-linejoin"),v=this.getStyle("stroke-miterlimit"),d=this.getStyle("paint-order"),m=this.getStyle("stroke-dasharray"),x=this.getStyle("stroke-dashoffset");if(y.hasValue()&&(t.lineCap=y.getString()),g.hasValue()&&(t.lineJoin=g.getString()),v.hasValue()&&(t.miterLimit=v.getNumber()),d.hasValue()&&(t.paintOrder=d.getValue()),m.hasValue()&&"none"!==m.getString()){var b=T(m.getString());"undefined"!==typeof t.setLineDash?t.setLineDash(b):"undefined"!==typeof t.webkitLineDash?t.webkitLineDash=b:"undefined"===typeof t.mozDash||1===b.length&&0===b[0]||(t.mozDash=b);var A=x.getPixels();"undefined"!==typeof t.lineDashOffset?t.lineDashOffset=A:"undefined"!==typeof t.webkitLineDashOffset?t.webkitLineDashOffset=A:"undefined"!==typeof t.mozDashOffset&&(t.mozDashOffset=A)}}if(this.modifiedEmSizeStack=!1,"undefined"!==typeof t.font){var w=this.getStyle("font"),S=this.getStyle("font-style"),k=this.getStyle("font-variant"),P=this.getStyle("font-weight"),R=this.getStyle("font-size"),C=this.getStyle("font-family"),E=new Tt(S.getString(),k.getString(),P.getString(),R.hasValue()?"".concat(R.getPixels(!0),"px"):"",C.getString(),Tt.parse(w.getString(),t.font));S.setValue(E.fontStyle),k.setValue(E.fontVariant),P.setValue(E.fontWeight),R.setValue(E.fontSize),C.setValue(E.fontFamily),t.font=E.toString(),R.isPixels()&&(this.document.emSize=R.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){x((0,v.A)(r.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),r}(kt);function Lt(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var Nt=function(t){(0,d.A)(r,t);var e=Lt(r);function r(t,n,i){var a;return(0,c.A)(this,r),(a=e.call(this,t,n,(this instanceof r?this.constructor:void 0)===r||i)
2).type="text",a.x=0,a.y=0,a.measureCache=-1,a}return(0,l.A)(r,[{key:"setContext",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];x((0,v.A)(r.prototype),"setContext",this).call(this,t,e);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(t.textBaseline=n)}},{key:"initializeCoordinates",value:function(t){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var e=this.getAttribute("dx"),r=this.getAttribute("dy");e.hasValue()&&(this.x+=e.getPixels("x")),r.hasValue()&&(this.y+=r.getPixels("y")),this.x+=this.getAnchorDelta(t,this,0)}},{key:"getBoundingBox",value:function(t){var e=this;if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(t);var r=null;return this.children.forEach(function(n,i){var a=e.getChildBoundingBox(t,e,e,i);r?r.addBoundingBox(a):r=a}),r}},{key:"getFontSize",value:function(){var t=this.document,e=this.parent,r=Tt.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new Ot(this.x,this.y-e,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,e,r){var n=e[r],i=null;if(t.isArabic){var a=e.length,o=e[r-1],s=e[r+1],u="isolated";(0===r||" "===o)&&r<a-2&&" "!==s&&(u="terminal"),r>0&&" "!==o&&r<a-2&&" "!==s&&(u="medial"),r>0&&" "!==o&&(r===a-1||" "===s)&&(u="initial"),"undefined"!==typeof t.glyphs[n]&&((i=t.glyphs[n][u])||"glyph"!==t.glyphs[n].type||(i=t.glyphs[n]))}else i=t.glyphs[n];return i||(i=t.missingGlyph),i}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),n=r.indexOf(e),i=r.length-1,a=C(e.value||e.text||e.textContent||"");return 0===n&&(a=E(a)),n===i&&(a=M(a)),a}},{key:"renderChildren",value:function(t){var e=this;if("text"===this.type){this.initializeCoordinates(t),this.children.forEach(function(r,n){e.renderChild(t,e,e,n)});var r=this.document.screen.mouse;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}},{key:"renderTElementChildren",value:function(t){var e=this.document,r=this.parent,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var a=i.fontFace.unitsPerEm,o=Tt.parse(e.ctx.font),s=r.getStyle("font-size").getNumber(o.fontSize),u=r.getStyle("font-style").getString(o.fontStyle),c=s/a,l=i.isRTL?n.split("").reverse().join(""):n,f=T(r.getAttribute("dx").getString()),h=l.length,p=0;p<h;p++){var y=this.getGlyph(i,l,p);t.translate(this.x,this.y),t.scale(c,-c);var g=t.lineWidth;t.lineWidth=t.lineWidth*a/s,"italic"===u&&t.transform(1,0,.4,1,0,0),y.render(t),"italic"===u&&t.transform(1,0,-.4,1,0,0),t.lineWidth=g,t.scale(1/c,-1/c),t.translate(-this.x,-this.y),this.x+=s*(y.horizAdvX||i.horizAdvX)/a,"undefined"===typeof f[p]||isNaN(f[p])||(this.x+=f[p])}else{var v=this.x,d=this.y;"stroke"===t.paintOrder?(t.strokeStyle&&t.strokeText(n,v,d),t.fillStyle&&t.fillText(n,v,d)):(t.fillStyle&&t.fillText(n,v,d),t.strokeStyle&&t.strokeText(n,v,d))}}},{key:"getAnchorDelta",value:function(t,e,r){var n=this.getStyle("text-anchor").getString("start");if("start"!==n){for(var i=e.children,a=i.length,o=null,s=0,u=r;u<a&&(o=i[u],!(u>r&&o.getAttribute("x").hasValue()||o.getAttribute("text-anchor").hasValue()));u++)s+=o.measureTextRecursive(t);return-1*("end"===n?s:s/2)}return 0}},{key:"adjustChildCoordinates",value:function(t,e,r,n){var i=r.children[n];if("function"!==typeof i.measureText)return i;t.save(),i.setContext(t,!0);var a=i.getAttribute("x"),o=i.getAttribute("y"),s=i.getAttribute("dx"),u=i.getAttribute("dy"),c=i.getAttribute("text-anchor").getString("start");if(0===n&&"textNode"!==i.type&&(a.hasValue()||a.setValue(e.getAttribute("x").getValue("0")),o.hasValue()||o.setValue(e.getAttribute("y").getValue("0")),s.hasValue()||s.setValue(e.getAttribute("dx").getValue("0")),u.hasValue()||u.setValue(e.getAttribute("dy").getValue("0"))),a.hasValue()){if(i.x=a.getPixels("x")+e.getAnchorDelta(t,r,n),"start"!==c){var l=i.measureTextRecursive(t);i.x+=-1*("end"===c?l:l/2)}s.hasValue()&&(i.x+=s.getPixels("x"))}else{if("start"!==c){var f=i.measureTextRecursive(t);e.x+=-1*("end"===c?f:f/2)}s.hasValue()&&(e.x+=s.getPixels("x")),i.x=e.x}return e.x=i.x+i.measureText(t),o.hasValue()?(i.y=o.getPixels("y"),u.hasValue()&&(i.y+=u.getPixels("y"))):(u.hasValue()&&(e.y+=u.getPixels("y")),i.y=e.y),e.y=i.y,i.clearContext(t),t.restore(
2),i}},{key:"getChildBoundingBox",value:function(t,e,r,n){var i=this.adjustChildCoordinates(t,e,r,n),a=i.getBoundingBox(t);return a?(i.children.forEach(function(r,n){var o=e.getChildBoundingBox(t,e,i,n);a.addBoundingBox(o)}),a):null}},{key:"renderChild",value:function(t,e,r,n){var i=this.adjustChildCoordinates(t,e,r,n);i.render(t),i.children.forEach(function(r,n){e.renderChild(t,e,i,n)})}},{key:"measureTextRecursive",value:function(t){return this.children.reduce(function(e,r){return e+r.measureTextRecursive(t)},this.measureText(t))}},{key:"measureText",value:function(t){var e=this.measureCache;if(~e)return e;var r=this.getText(),n=this.measureTargetText(t,r);return this.measureCache=n,n}},{key:"measureTargetText",value:function(t,e){if(!e.length)return 0;var r=this.parent,n=r.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),a=n.isRTL?e.split("").reverse().join(""):e,o=T(r.getAttribute("dx").getString()),s=a.length,u=0,c=0;c<s;c++){u+=(this.getGlyph(n,a,c).horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,"undefined"===typeof o[c]||isNaN(o[c])||(u+=o[c])}return u}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var l=t.measureText(e).width;return this.clearContext(t),t.restore(),l}}]),r}(Vt);function It(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var zt=function(t){(0,d.A)(r,t);var e=It(r);function r(t,n,i){var a;return(0,c.A)(this,r),(a=e.call(this,t,n,(this instanceof r?this.constructor:void 0)===r||i)).type="tspan",a.text=a.children.length>0?"":a.getTextFromNode(),a}return(0,l.A)(r,[{key:"getText",value:function(){return this.text}}]),r}(Nt);function Bt(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var jt=function(t){(0,d.A)(r,t);var e=Bt(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="textNode",t}return r}(zt);var Ft=function(){function t(e){(0,c.A)(this,t),this.control=null,this.start=null,this.current=null,this.command="",this.tokens=[],this.i=-1,this.previousCommand="",this.points=[],this.angles=[],this.tokens=function(t){return C(t.replace(/,/gm," ").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2").replace(/([0-9])([+\-])/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/([Aa](?:\s+(?:[0-9]*\.)?[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $2 $3 ")).trim()}(e).split(" ")}return(0,l.A)(t,[{key:"reset",value:function(){this.i=-1,this.command="",this.previousCommand="",this.start=new at(0,0),this.control=new at(0,0),this.current=new at(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){return this.i>=this.tokens.length-1}},{key:"isCommandOrEnd",value:function(){if(this.isEnd())return!0;var t=this.i,e=this.tokens;return/^[A-Za-z]$/.test(e[t+1])}},{key:"isRelativeCommand",value:function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0;default:return!1}}},{key:"getToken",value:function(){return this.i++,this.tokens[this.i]}},{key:"getScalar",value:function(){return parseFloat(this.getToken())}},{key:"nextCommand",value:function(){this.previousCommand=this.command,this.command=this.getToken()}},{key:"getPoint",value:function(){var t=new at(this.getScalar(),this.getScalar());return this.makeAbsolute(t)}},{key:"getAsControlPoint",value:function(){var t=this.getPoint();return this.control=t,t}},{key:"getAsCurrentPoint",value:function(){var t=this.getPoint();return this.current=t,t}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.toLowerCase();if("c"!==t&&"s"!==t&&"q"!==t&&"t"!==t)return this.current;var e=this.current,r=e.x,n=e.y,i=this.control,a=i.x,o=i.y;return new at(2*r-a,2*n-o)}},{key:"makeAbsolute",value:function(t){if(this.isRelativeCommand()){var e=this.current,r=e.x,n=e.y;t.x+=r,t.y+=n}return t}},{key:"addMarker",value:function(t,e,r){var n=this.points,i=this.angles;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}},{key:"addMarkerAngle",value:function(t,e){this.points.push(t),this.angles.push(e)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var t=this.angles,e=t.length,r=0;r<e;r++)if(!t[r])for(var n=r+1;n<e;n++)if(t[n]){t[r]=t[n];break}return t}}]),t}();function _t(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var $t=function(t){(0,d.A)(r,t);var e=_t(r);function r(t,n,i){var a;
2return(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="path",a.pathParser=null,a.pathParser=new Ft(a.getAttribute("d").getString()),a}return(0,l.A)(r,[{key:"path",value:function(t){var e=this.pathParser,r=new Ot;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.nextCommand(),e.command){case"M":case"m":this.pathM(t,r);break;case"L":case"l":this.pathL(t,r);break;case"H":case"h":this.pathH(t,r);break;case"V":case"v":this.pathV(t,r);break;case"C":case"c":this.pathC(t,r);break;case"S":case"s":this.pathS(t,r);break;case"Q":case"q":this.pathQ(t,r);break;case"T":case"t":this.pathT(t,r);break;case"A":case"a":this.pathA(t,r);break;case"Z":case"z":this.pathZ(t,r)}return r}},{key:"getBoundingBox",value:function(t){return this.path()}},{key:"getMarkers",value:function(){var t=this.pathParser,e=t.getMarkerPoints(),r=t.getMarkerAngles();return e.map(function(t,e){return[t,r[e]]})}},{key:"renderChildren",value:function(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&t.stroke();var r=this.getMarkers();if(r){var i=r.length-1,a=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(a.isUrlDefinition()){var u=a.getDefinition(),c=(0,n.A)(r[0],2),l=c[0],f=c[1];u.render(t,l,f)}if(o.isUrlDefinition())for(var h=o.getDefinition(),p=1;p<i;p++){var y=(0,n.A)(r[p],2),g=y[0],v=y[1];h.render(t,g,v)}if(s.isUrlDefinition()){var d=s.getDefinition(),m=(0,n.A)(r[i],2),x=m[0],b=m[1];d.render(t,x,b)}}}},{key:"pathM",value:function(t,e){var r=this.pathParser,n=r.getAsCurrentPoint(),i=n.x,a=n.y;for(r.addMarker(n),e.addPoint(i,a),t&&t.moveTo(i,a),r.start=r.current;!r.isCommandOrEnd();){var o=r.getAsCurrentPoint(),s=o.x,u=o.y;r.addMarker(o,r.start),e.addPoint(s,u),t&&t.lineTo(s,u)}}},{key:"pathL",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getAsCurrentPoint(),a=i.x,o=i.y;r.addMarker(i,n),e.addPoint(a,o),t&&t.lineTo(a,o)}}},{key:"pathH",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=new at((r.isRelativeCommand()?n.x:0)+r.getScalar(),n.y);r.addMarker(i,n),r.current=i,e.addPoint(i.x,i.y),t&&t.lineTo(i.x,i.y)}}},{key:"pathV",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=new at(n.x,(r.isRelativeCommand()?n.y:0)+r.getScalar());r.addMarker(i,n),r.current=i,e.addPoint(i.x,i.y),t&&t.lineTo(i.x,i.y)}}},{key:"pathC",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getPoint(),a=r.getAsControlPoint(),o=r.getAsCurrentPoint();r.addMarker(o,a,i),e.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,o.x,o.y),t&&t.bezierCurveTo(i.x,i.y,a.x,a.y,o.x,o.y)}}},{key:"pathS",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getReflectedControlPoint(),a=r.getAsControlPoint(),o=r.getAsCurrentPoint();r.addMarker(o,a,i),e.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,o.x,o.y),t&&t.bezierCurveTo(i.x,i.y,a.x,a.y,o.x,o.y)}}},{key:"pathQ",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getAsControlPoint(),a=r.getAsCurrentPoint();r.addMarker(a,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),t&&t.quadraticCurveTo(i.x,i.y,a.x,a.y)}}},{key:"pathT",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getReflectedControlPoint();r.control=i;var a=r.getAsCurrentPoint();r.addMarker(a,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),t&&t.quadraticCurveTo(i.x,i.y,a.x,a.y)}}},{key:"pathA",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getScalar(),a=r.getScalar(),o=r.getScalar()*(Math.PI/180),s=r.getScalar(),u=r.getScalar(),c=r.getAsCurrentPoint(),l=new at(Math.cos(o)*(n.x-c.x)/2+Math.sin(o)*(n.y-c.y)/2,-Math.sin(o)*(n.x-c.x)/2+Math.cos(o)*(n.y-c.y)/2),f=Math.pow(l.x,2)/Math.pow(i,2)+Math.pow(l.y,2)/Math.pow(a,2);f>1&&(i*=Math.sqrt(f),a*=Math.sqrt(f));var h=(s===u?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(a,2)-Math.pow(i,2)*Math.pow(l.y,2)-Math.pow(a,2)*Math.pow(l.x,2))/(Math.pow(i,2)*Math.pow(l.y,2)+Math.pow(a,2)*Math.pow(l.x,2)));isNaN(h)&&(h=0);var p=new at(h*i*l.y/a,h*-a*l.x/i),y=new at((n.x+c.x)/2+Math.cos(o)*p.x-Math.sin(o)*p.y,(n.y+c.y)/2+Math.sin(o)*p.x+Math.cos(o)*p.y),g=X([1,0],[(l.x-p.x)/i,(l.y-p.y)/a]),v=[(l.x-p.x)/i,(l.y-p.y)/a],d=[(-l.x-p.x)/i,(-l.y-p.y)/a],m=X(v,d);W(v,d)<=-1&&(m=Math.PI),W(v,d)>=1&&(m=0);var x=1-u?1:-1,b=g+x*(m/2),A=new at(y.x+i*Math.cos(b),y.y+a*Math.sin(b));if(r.addMarkerAngle(A,b-x*Math.PI/2),r.addMarkerAngle(c,b-x*Math.PI),e.addPoint(c.x,c.y),t&&!isNaN(g)&&!isNaN(m)){var w=i>a?i:a,S=i>a?1:i/a,k=i>a?a/i:1;t.translate(y.x,y.y),t.rotate(o),t.scale(S,k),t.arc(0,0,w,g,g+m,Boolean(1-u)),t.scale(1/S,1/k),t.rotate(-o),t.translate(-y.x,-y.y)}}}},{key:"pathZ",value:function(t,e){var r=this.pathParser;t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath(),r.current=r.start}}]),r}(Vt);function Gt(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var qt=function(t){(0,d.A)(r,t);var e=Gt(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="svg",t.root=!1,t}return(0,l.A)(r,[{key:"clearContext",value:function(t){x((0,v.A)(r.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"setContext",value:function(t){var e=this.document,n=e.screen,i=e.window,a=t.canvas;if(n.setDefaults(t),a.style&&"undefined"!==typeof t.font&&i&&"undefined"!==typeof i.getComputedStyle){t.font=i.getComputedStyle(a).getPropertyValue("font");var o=new nt(e,"fontSize",Tt.parse(t.font).fontSize);o.hasValue()&&(e.rootEmSize=o.getPixels("y"),e.emSize=e.rootEmSize)}x((0,v.A)(r.prototype),"setContext",this).call(this,t),this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y"));var s=n.viewPort,u=s.width,c=s.height;
2this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var l=this.getAttribute("refX"),f=this.getAttribute("refY"),h=this.getAttribute("viewBox"),p=h.hasValue()?T(h.getString()):null,y=!this.root&&"visible"!==this.getAttribute("overflow").getValue("hidden"),g=0,d=0,m=0,b=0;p&&(g=p[0],d=p[1]),this.root||(u=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),"marker"===this.type&&(m=g,b=d,g=0,d=0)),n.viewPort.setCurrent(u,c),p&&(u=p[2],c=p[3]),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:u,height:n.viewPort.height,desiredHeight:c,minX:g,minY:d,refX:l.getValue(),refY:f.getValue(),clip:y,clipX:m,clipY:b}),p&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(u,c))}},{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),o=this.getAttribute("style"),s=n.getNumber(0),u=i.getNumber(0);if(r)if("string"===typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(t),i.setValue(e),a.hasValue()||a.setValue("0 0 ".concat(s||t," ").concat(u||e)),o.hasValue()){var l=this.getStyle("width"),f=this.getStyle("height");l.hasValue()&&l.setValue("".concat(t,"px")),f.hasValue()&&f.setValue("".concat(e,"px"))}}}]),r}(Vt);function Ht(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var Wt=function(t){(0,d.A)(r,t);var e=Ht(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="rect",t}return(0,l.A)(r,[{key:"path",value:function(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y"),a=this.getAttribute("rx"),o=this.getAttribute("ry"),s=a.getPixels("x"),u=o.getPixels("y");if(a.hasValue()&&!o.hasValue()&&(u=s),o.hasValue()&&!a.hasValue()&&(s=u),s=Math.min(s,n/2),u=Math.min(u,i/2),t){var c=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&n>0&&(t.moveTo(e+s,r),t.lineTo(e+n-s,r),t.bezierCurveTo(e+n-s+c*s,r,e+n,r+u-c*u,e+n,r+u),t.lineTo(e+n,r+i-u),t.bezierCurveTo(e+n,r+i-u+c*u,e+n-s+c*s,r+i,e+n-s,r+i),t.lineTo(e+s,r+i),t.bezierCurveTo(e+s-c*s,r+i,e,r+i-u+c*u,e,r+i-u),t.lineTo(e,r+u),t.bezierCurveTo(e,r+u-c*u,e+s-c*s,r,e+s,r),t.closePath())}return new Ot(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),r}($t);function Xt(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var Yt=function(t){(0,d.A)(r,t);var e=Xt(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="circle",t}return(0,l.A)(r,[{key:"path",value:function(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return t&&n>0&&(t.beginPath(),t.arc(e,r,n,0,2*Math.PI,!1),t.closePath()),new Ot(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),r}($t);function Ut(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var Qt=function(t){(0,d.A)(r,t);var e=Ut(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="ellipse",t}return(0,l.A)(r,[{key:"path",value:function(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return t&&r>0&&n>0&&(t.beginPath(),t.moveTo(i+r,a),t.bezierCurveTo(i+r,a+e*n,i+e*r,a+n,i,a+n),t.bezierCurveTo(i-e*r,a+n,i-r,a+e*n,i-r,a),t.bezierCurveTo(i-r,a-e*n,i-e*r,a-n,i,a-n),t.bezierCurveTo(i+e*r,a-n,i+r,a-e*n,i+r,a),t.closePath()),new Ot(i-r,a-n,i+r,a+n)}},{key:"getMarkers",value:function(){return null}}]),r}($t);function Zt(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var Kt=function(t){(0,d.A)(r,t);var e=Zt(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="line",t}return(0,l.A)(r,[{key:"getPoints",value:function(){return[new at(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new at(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var e=this.getPoints(),r=(0,n.A)(e,2),i=r[0],a=i.x,o=i.y,s=r[1],u=s.x,c=s.y;return t&&(t.beginPath(),t.moveTo(a,o),t.lineTo(u,c)),new Ot(a,o,u,c)}},{key:"getMarkers",value:function(){var t=this.getPoints(),e=(0,n.A)(t,2),r=e[0],i=e[1],a=r.angleTo(i);return[[r,a],[i,a]]}}]),r}($t);function Jt(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var te=function(t){(0,d.A)(r,t);var e=Jt(r);function r(t,n,i){var a;
2return(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="polyline",a.points=[],a.points=at.parsePath(a.getAttribute("points").getString()),a}return(0,l.A)(r,[{key:"path",value:function(t){var e=this.points,r=(0,n.A)(e,1)[0],i=r.x,a=r.y,o=new Ot(i,a);return t&&(t.beginPath(),t.moveTo(i,a)),e.forEach(function(e){var r=e.x,n=e.y;o.addPoint(r,n),t&&t.lineTo(r,n)}),o}},{key:"getMarkers",value:function(){var t=this.points,e=t.length-1,r=[];return t.forEach(function(n,i){i!==e&&r.push([n,n.angleTo(t[i+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}]),r}($t);function ee(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var re=function(t){(0,d.A)(r,t);var e=ee(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="polygon",t}return(0,l.A)(r,[{key:"path",value:function(t){var e=x((0,v.A)(r.prototype),"path",this).call(this,t),i=(0,n.A)(this.points,1)[0],a=i.x,o=i.y;return t&&(t.lineTo(a,o),t.closePath()),e}}]),r}(te);function ne(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var ie=function(t){(0,d.A)(r,t);var e=ne(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="pattern",t}return(0,l.A)(r,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),a=new qt(this.document,null);a.attributes.viewBox=new nt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new nt(this.document,"width","".concat(n,"px")),a.attributes.height=new nt(this.document,"height","".concat(i,"px")),a.attributes.transform=new nt(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var o=this.document.createCanvas(n,i),s=o.getContext("2d"),u=this.getAttribute("x"),c=this.getAttribute("y");u.hasValue()&&c.hasValue()&&s.translate(u.getPixels("x",!0),c.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var l=-1;l<=1;l++)for(var f=-1;f<=1;f++)s.save(),a.attributes.x=new nt(this.document,"x",l*o.width),a.attributes.y=new nt(this.document,"y",f*o.height),a.render(s),s.restore();return t.createPattern(o,"repeat")}}]),r}(kt);function ae(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var oe=function(t){(0,d.A)(r,t);var e=ae(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="marker",t}return(0,l.A)(r,[{key:"render",value:function(t,e,r){if(e){var n=e.x,i=e.y,a=this.getAttribute("orient").getValue("auto"),o=this.getAttribute("markerUnits").getValue("strokeWidth");t.translate(n,i),"auto"===a&&t.rotate(r),"strokeWidth"===o&&t.scale(t.lineWidth,t.lineWidth),t.save();var s=new qt(this.document,null);
2s.type=this.type,s.attributes.viewBox=new nt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.refX=new nt(this.document,"refX",this.getAttribute("refX").getValue()),s.attributes.refY=new nt(this.document,"refY",this.getAttribute("refY").getValue()),s.attributes.width=new nt(this.document,"width",this.getAttribute("markerWidth").getValue()),s.attributes.height=new nt(this.document,"height",this.getAttribute("markerHeight").getValue()),s.attributes.overflow=new nt(this.document,"overflow",this.getAttribute("overflow").getValue()),s.attributes.fill=new nt(this.document,"fill",this.getAttribute("fill").getColor("black")),s.attributes.stroke=new nt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),s.children=this.children,s.render(t),t.restore(),"strokeWidth"===o&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===a&&t.rotate(-r),t.translate(-n,-i)}}}]),r}(kt);function se(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var ue=function(t){(0,d.A)(r,t);var e=se(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="defs",t}return(0,l.A)(r,[{key:"render",value:function(){}}]),r}(kt);function ce(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var le=function(t){(0,d.A)(r,t);var e=ce(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="g",t}return(0,l.A)(r,[{key:"getBoundingBox",value:function(t){var e=new Ot;return this.children.forEach(function(r){e.addBoundingBox(r.getBoundingBox(t))}),e}}]),r}(Vt);function fe(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var he=function(t){(0,d.A)(r,t);var e=fe(r);function r(t,n,i){var a;(0,c.A)(this,r),(a=e.call(this,t,n,i)).attributesToInherit=["gradientUnits"],a.stops=[];var o=(0,b.A)(a),s=o.stops;return o.children.forEach(function(t){"stop"===t.type&&s.push(t)}),a}return(0,l.A)(r,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,e,r){var i=this,a=this;this.getHrefAttribute().hasValue()&&(a=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(a));var o=a.stops,s=this.getGradient(t,e);if(!s)return this.addParentOpacity(r,o[o.length-1].color);if(o.forEach(function(t){s.addColorStop(t.offset,i.addParentOpacity(r,t.color))}),this.getAttribute("gradientTransform").hasValue()){var u=this.document,c=u.screen,l=c.MAX_VI
2RTUAL_PIXELS,f=c.viewPort,h=(0,n.A)(f.viewPorts,1)[0],p=new Wt(u,null);p.attributes.x=new nt(u,"x",-l/3),p.attributes.y=new nt(u,"y",-l/3),p.attributes.width=new nt(u,"width",l),p.attributes.height=new nt(u,"height",l);var y=new le(u,null);y.attributes.transform=new nt(u,"transform",this.getAttribute("gradientTransform").getValue()),y.children=[p];var g=new qt(u,null);g.attributes.x=new nt(u,"x",0),g.attributes.y=new nt(u,"y",0),g.attributes.width=new nt(u,"width",h.width),g.attributes.height=new nt(u,"height",h.height),g.children=[y];var v=u.createCanvas(h.width,h.height),d=v.getContext("2d");return d.fillStyle=s,g.render(d),d.createPattern(v,"no-repeat")}return s}},{key:"inheritStopContainer",value:function(t){var e=this;this.attributesToInherit.forEach(function(r){!e.getAttribute(r).hasValue()&&t.getAttribute(r).hasValue()&&e.getAttribute(r,!0).setValue(t.getAttribute(r).getValue())})}},{key:"addParentOpacity",value:function(t,e){return t.hasValue()?new nt(this.document,"color",e).addOpacity(t).getColor():e}}]),r}(kt);function pe(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var ye=function(t){(0,d.A)(r,t);var e=pe(r);function r(t,n,i){var a;return(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="linearGradient",a.attributesToInherit.push("x1","y1","x2","y2"),a}return(0,l.A)(r,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=r?e.getBoundingBox(t):null;if(r&&!n)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),o=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),s=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===o&&a===s?null:t.createLinearGradient(i,a,o,s)}}]),r}(he);function ge(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var ve=function(t){(0,d.A)(r,t);var e=ge(r);function r(t,n,i){var a;return(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="radialGradient",a.attributesToInherit.push("cx","cy","r","fx","fy","fr"),a}return(0,l.A)(r,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=e.getBoundingBox(t);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),o=i,s=a;this.getAttribute("fx").hasValue()&&(o=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(s=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var u=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return t.createRadialGradient(o,s,c,i,a,u)}}]),r}(he);function de(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var me=function(t){(0,d.A)(r,t);var e=de(r);function r(t,n,i){var a;
2(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="stop";var o=Math.max(0,Math.min(1,a.getAttribute("offset").getNumber())),s=a.getStyle("stop-opacity"),u=a.getStyle("stop-color",!0);return""===u.getString()&&u.setValue("#000"),s.hasValue()&&(u=u.addOpacity(s)),a.offset=o,a.color=u.getColor(),a}return r}(kt);function xe(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var be=function(t){(0,d.A)(r,t);var e=xe(r);function r(t,n,i){var a;return(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="animate",a.duration=0,a.initialValue=null,a.initialUnits="",a.removed=!1,a.frozen=!1,t.screen.animations.push((0,b.A)(a)),a.begin=a.getAttribute("begin").getMilliseconds(),a.maxDuration=a.begin+a.getAttribute("dur").getMilliseconds(),a.from=a.getAttribute("from"),a.to=a.getAttribute("to"),a.values=a.getAttribute("values"),a.values.hasValue()&&a.values.setValue(a.values.getString().split(";")),a}return(0,l.A)(r,[{key:"getProperty",value:function(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}},{key:"calcValue",value:function(){var t=this.initialUnits,e=this.getProgress(),r=e.progress,n=e.from,i=e.to,a=n.getNumber()+(i.getNumber()-n.getNumber())*r;return"%"===t&&(a*=100),"".concat(a).concat(t)}},{key:"update",value:function(t){var e=this.parent,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==n||this.frozen){if("remove"===n&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),o=this.getAttribute("type");if(o.hasValue()){var s=o.getString();a="".concat(s,"(").concat(a,")")}r.setValue(a),i=!0}return i}},{key:"getProgress",value:function(){var t=this.document,e=this.values,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var n=r.progress*(e.getValue().length-1),i=Math.floor(n),a=Math.ceil(n);r.from=new nt(t,"from",parseFloat(e.getValue()[i])),r.to=new nt(t,"to",parseFloat(e.getValue()[a])),r.progress=(n-i)/(a-i)}else r.from=this.from,r.to=this.to;return r}}]),r}(kt);function Ae(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var we=function(t){(0,d.A)(r,t);var e=Ae(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="animateColor",t}return(0,l.A)(r,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=new(y())(r.getColor()),a=new(y())(n.getColor());if(i.ok&&a.ok){var o=i.r+(a.r-i.r)*e,s=i.g+(a.g-i.g)*e,u=i.b+(a.b-i.b)*e;return"rgb(".concat(parseInt(o,10),", ").concat(parseInt(s,10),", ").concat(parseInt(u,10),")")}return this.getAttribute("from").getColor()}}]),r}(be);function Se(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var ke=function(t){(0,d.A)(r,t);var e=Se(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="animateTransform",t}return(0,l.A)(r,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=T(r.getString()),a=T(n.getString()),o=i.map(function(t,r){return t+(a[r]-t)*e}).join(" ");return o}}]),r}(be);function Pe(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,e){if(!t)return;if("string"===typeof t)return Re(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);
2if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Re(t,e)}(t))){var e=0,r=function(){};return{s:r,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i,a=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){o=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw i}}}}function Re(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ce(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var Ee=function(t){(0,d.A)(r,t);var e=Ce(r);function r(t,n,i){var a;(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="font",a.glyphs={},a.horizAdvX=a.getAttribute("horiz-adv-x").getNumber();var o,s=t.definitions,u=Pe((0,b.A)(a).children);try{for(u.s();!(o=u.n()).done;){var l=o.value;switch(l.type){case"font-face":a.fontFace=l;var f=l.getStyle("font-family");f.hasValue()&&(s[f.getString()]=(0,b.A)(a));break;case"missing-glyph":a.missingGlyph=l;break;case"glyph":var h=l;h.arabicForm?(a.isRTL=!0,a.isArabic=!0,"undefined"===typeof a.glyphs[h.unicode]&&(a.glyphs[h.unicode]={}),a.glyphs[h.unicode][h.arabicForm]=h):a.glyphs[h.unicode]=h}}}catch(p){u.e(p)}finally{u.f()}return a}return(0,l.A)(r,[{key:"render",value:function(){}}]),r}(kt);function Me(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var Te=function(t){(0,d.A)(r,t);var e=Me(r);function r(t,n,i){var a;return(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="font-face",a.ascent=a.getAttribute("ascent").getNumber(),a.descent=a.getAttribute("descent").getNumber(),a.unitsPerEm=a.getAttribute("units-per-em").getNumber(),a}return r}(kt);function Oe(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var De=function(t){(0,d.A)(r,t);var e=Oe(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="missing-glyph",t.horizAdvX=0,t}return r}($t);function Ve(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var Le=function(t){(0,d.A)(r,t);var e=Ve(r);function r(t,n,i){var a;return(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="glyph",a.horizAdvX=a.getAttribute("horiz-adv-x").getNumber(),a.unicode=a.getAttribute("unicode").getString(),a.arabicForm=a.getAttribute("arabic-form").getString(),a}return r}($t);function Ne(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var Ie=function(t){(0,d.A)(r,t);var e=Ne(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="tref",t}return(0,l.A)(r,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}]),r}(Nt);function ze(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var Be=function(t){(0,d.A)(r,t);var e=ze(r);function r(t,n,i){var a;
2(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="a";var o=n.childNodes,s=o[0],u=o.length>0&&Array.from(o).every(function(t){return 3===t.nodeType});return a.hasText=u,a.text=u?a.getTextFromNode(s):"",a}return(0,l.A)(r,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){if(this.hasText){x((0,v.A)(r.prototype),"renderChildren",this).call(this,t);var e=this.document,n=this.x,i=this.y,a=e.screen.mouse,o=new nt(e,"fontSize",Tt.parse(e.ctx.font).fontSize);a.isWorking()&&a.checkBoundingBox(this,new Ot(n,i-o.getPixels("y"),n+this.measureText(t),i))}else if(this.children.length>0){var s=new le(this.document,null);s.children=this.children,s.parent=this,s.render(t)}}},{key:"onClick",value:function(){var t=this.document.window;t&&t.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){this.document.ctx.canvas.style.cursor="pointer"}}]),r}(Nt);function je(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,e){if(!t)return;if("string"===typeof t)return Fe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fe(t,e)}(t))){var e=0,r=function(){};return{s:r,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i,a=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){o=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw i}}}}function Fe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _e(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var $e=function(t){(0,d.A)(r,t);var e=_e(r);function r(t,n,i){var a;(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="textPath",a.textWidth=0,a.textHeight=0,a.pathLength=-1,a.glyphInfo=null,a.letterSpacingCache=[],a.measuresCache=new Map([["",0]]);var o=a.getHrefAttribute().getDefinition();return a.text=a.getTextFromNode(),a.dataArray=a.parsePathData(o),a}return(0,l.A)(r,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(t){var e=this.dataArray;t&&t.beginPath(),e.forEach(function(e){var r=e.command,n=e.points;switch(r){case"L":t&&t.lineTo(n[0],n[1]);break;case"M":t&&t.moveTo(n[0],n[1]);break;case"C":t&&t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case"Q":t&&t.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case"A":var i=n[0],a=n[1],o=n[2],s=n[3],u=n[4],c=n[5],l=n[6],f=n[7],h=o>s?o:s,p=o>s?1:o/s,y=o>s?s/o:1;t&&(t.translate(i,a),t.rotate(l),t.scale(p,y),t.arc(0,0,h,u,u+c,Boolean(1-f)),t.scale(1/p,1/y),t.rotate(-l),t.translate(-i,-a));break;case"z":t&&t.closePath()}})}},{key:"renderChildren",value:function(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),n=this.glyphInfo,i=t.fillStyle;"underline"===e&&t.beginPath(),n.forEach(function(i,a){var o=i.p0,s=i.p1,u=i.text;t.save(),t.translate(o.x,o.y),t.rotate(n[a].rotation),t.fillStyle&&t.fillText(u,0,0),t.strokeStyle&&t.strokeText(u,0,0),t.restore(),"underline"===e&&(0===a&&t.moveTo(o.x,o.y+r/8),t.lineTo(s.x,s.y+r/5))}),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}},{key:"getLetterSpacingAt",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}},{key:"findSegmentToFitChar",value:function(t,e,r,n,i,a,o,s){var u=a,c=this.measureText(t,o);" "===o&&"justify"===e&&r<n&&(c+=(n-r)/i),s>-1&&(u+=this.getLetterSpacingAt(s));var l=this.textHeight/20,f={p0:this.getEquidistantPointOnPath(u,l),p1:this.getEquidistantPointOnPath(u+c,l)};return{offset:u+=c,segment:f}}},{key:"measureText",value:function(t,e){var r=this.measuresCache,n=e||this.getText();if(r.has(n))return r.get(n);var i=this.measureTargetText(t,n);return r.set(n,i),i}},{key:"setTextData",value:function(t){var e=this;if(!this.glyphInfo){var r=this.getText(),n=r.split(""),i=r.split(" ").length-1,a=T(this.parent.getAttribute("dx").getString("0")),o=this.parent.getStyle("text-anchor").getString("start"),s=this.getStyle("letter-spacing"),u=this.parent.getStyle("letter-spacing"),c=0;s.hasValue()&&"inherit"!==s.getValue()?s.hasValue()&&"initial"!==s.getValue()&&"unset"!==s.getValue()&&(c=s.getPixels()):c=u.getPixels();var l=[],f=r.length;this.letterSpacingCache=l;for(var h=0;h<f;h++)l.push("undefined"!==typeof a[h]?a[h]:c);var p=l.reduce(function(t,e){return t+e||0},0);this.textWidth=this.measureText(t),this.textHeight=this.getFontSize();var y=Math.max(this.textWidth+p,0);this.glyphInfo=[];var g=this.getPathLength(),v=this.getStyle("startOffset").getNumber(0)*g,d=0;"middle"!==o&&"center"!==o||(d=-y/2),"end"!==o&&"right"!==o||(d=-y),d+=v,n.forEac
2h(function(r,a){var s=e.findSegmentToFitChar(t,o,y,g,i,d,r,a),u=s.offset,c=s.segment;if(d=u,c.p0&&c.p1){var l=e.getLineLength(c.p0.x,c.p0.y,c.p1.x,c.p1.y),f=e.getPointOnLine(0+l/2,c.p0.x,c.p0.y,c.p1.x,c.p1.y),h=Math.atan2(c.p1.y-c.p0.y,c.p1.x-c.p0.x);e.glyphInfo.push({transposeX:f.x,transposeY:f.y,text:n[a],p0:c.p0,p1:c.p1,rotation:h})}})}}},{key:"parsePathData",value:function(t){if(this.pathLength=-1,!t)return[];var e=[],r=t.pathParser;for(r.reset();!r.isEnd();){var n=r.current,i=n?n.x:0,a=n?n.y:0,o="",s=[];r.nextCommand();var u=r.command.toUpperCase();switch(r.command){case"M":case"m":o=this.pathM(r,s);break;case"L":case"l":o=this.pathL(r,s);break;case"H":case"h":o=this.pathH(r,s);break;case"V":case"v":o=this.pathV(r,s);break;case"C":case"c":this.pathC(r,s);break;case"S":case"s":o=this.pathS(r,s);break;case"Q":case"q":this.pathQ(r,s);break;case"T":case"t":o=this.pathT(r,s);break;case"A":case"a":s=this.pathA(r);break;case"Z":case"z":r.current=r.start}"Z"!==u?e.push({command:o||u,points:s,start:{x:i,y:a},pathLength:this.calcLength(i,a,o||u,s)}):e.push({command:"z",points:[],pathLength:0})}return e}},{key:"pathM",value:function(t,e){var r=t.getAsCurrentPoint();for(e.push(r.x,r.y),t.start=t.current;!t.isCommandOrEnd();){var n=t.getAsCurrentPoint();return e.push(n.x,n.y),"L"}}},{key:"pathL",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getAsCurrentPoint();e.push(r.x,r.y)}return"L"}},{key:"pathH",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.current,n=new at((t.isRelativeCommand()?r.x:0)+t.getScalar(),r.y);e.push(n.x,n.y),t.current=n}return"L"}},{key:"pathV",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.current,n=new at(r.x,(t.isRelativeCommand()?r.y:0)+t.getScalar());e.push(n.x,n.y),t.current=n}return"L"}},{key:"pathC",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getPoint(),n=t.getAsControlPoint(),i=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y,i.x,i.y)}}},{key:"pathS",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getReflectedControlPoint(),n=t.getAsControlPoint(),i=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y,i.x,i.y)}return"C"}},{key:"pathQ",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getAsControlPoint(),n=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y)}}},{key:"pathT",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getReflectedControlPoint();t.control=r;var n=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y)}return"Q"}},{key:"pathA",value:function(t){for(;!t.isCommandOrEnd();){var e=t.current,r=t.getScalar(),n=t.getScalar(),i=t.getScalar()*(Math.PI/180),a=t.getScalar(),o=t.getScalar(),s=t.getAsCurrentPoint(),u=new at(Math.cos(i)*(e.x-s.x)/2+Math.sin(i)*(e.y-s.y)/2,-Math.sin(i)*(e.x-s.x)/2+Math.cos(i)*(e.y-s.y)/2),c=Math.pow(u.x,2)/Math.pow(r,2)+Math.pow(u.y,2)/Math.pow(n,2);c>1&&(r*=Math.sqrt(c),n*=Math.sqrt(c));var l=(a===o?-1:1)*Math.sqrt((Math.pow(r,2)*Math.pow(n,2)-Math.pow(r,2)*Math.pow(u.y,2)-Math.pow(n,2)*Math.pow(u.x,2))/(Math.pow(r,2)*Math.pow(u.y,2)+Math.pow(n,2)*Math.pow(u.x,2)));isNaN(l)&&(l=0);var f=new at(l*r*u.y/n,l*-n*u.x/r),h=new at((e.x+s.x)/2+Math.cos(i)*f.x-Math.sin(i)*f.y,(e.y+s.y)/2+Math.sin(i)*f.x+Math.cos(i)*f.y),p=X([1,0],[(u.x-f.x)/r,(u.y-f.y)/n]),y=[(u.x-f.x)/r,(u.y-f.y)/n],g=[(-u.x-f.x)/r,(-u.y-f.y)/n],v=X(y,g);return W(y,g)<=-1&&(v=Math.PI),W(y,g)>=1&&(v=0),0===o&&v>0&&(v-=2*Math.PI),1===o&&v<0&&(v+=2*Math.PI),[h.x,h.y,r,n,p,v,i,o]}}},{key:"calcLength",value:function(t,e,r,n){var i=0,a=null,o=null,s=0;switch(r){case"L":return this.getLineLength(t,e,n[0],n[1]);case"C":for(i=0,a=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),s=.01;s<=1;s+=.01)o=this.getPointOnCubicBezier(s,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case"Q":for(i=0,a=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),s=.01;s<=1;s+=.01)o=this.getPointOnQuadraticBezier(s,t,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case"A":i=0;var u=n[4],c=n[5],l=n[4]+c,f=Math.PI/180;if(Math.abs(u-l)<f&&(f=Math.abs(u-l)),a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),c<0)for(s=u-f;s>l;s-=f)o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;else for(s=u+f;s<l;s+=f)o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),i+=this.getLineLength(a.x,a.y,o.x,o.y)}return 0}},{key:"getPointOnLine",value:function(t,e,r,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,s=(i-r)/(n-e+q),u=Math.sqrt(t*t/(1+s*s));n<e&&(u*=-1);var c=s*u,l=null;if(n===e)l={x:a,y:o+c};else if((o-r)/(a-e+q)===s)l={x:a+u,y:o+c};else{var f,h,p=this.getLineLength(e,r,n,i);if(p<q)return null;var y=(a-e)*(n-e)+(o-r)*(i-r);f=e+(y/=p*p)*(n-e),h=r+y*(i-r);var g=this.getLineLength(a,o,f,h),v=Math.sqrt(t*t-g*g);u=Math.sqrt(v*v/(1+s*s)),n<e&&(u*=-1),l={x:f+u,y:h+(c=s*u)}}return l}},{key:"getPointOnPath",value:function(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||t-5e-5>e)return null;var i,a=je(this.dataArray);try{for(a.s();!(i=a.n()).done;){var o=i.value;if(!o||!(o.pathLength<5e-5||r+o.pathLength+5e-5<t)){var s=t-r,u=0;switch(o.command){case"L":n=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case"A":var c=o.points[4],l=o.points[5],f=o.points[4]+l;if(u=c+s/o.pathLength*l,l<0&&u<f||l>=0&&u>f)break;n=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break;case"C":(u=s/o.pathLength)>1&&(u=1),n=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case"Q":(u=s/o.pathLength)>1&&(u=1),n=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3])}if(n)return n;break}r+=o.pathLength}}catch(h){a.e(h)}finally{a.f()}return null}},{key:"getLineLength",value:function(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}},{key:"getPathLength",value:function(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(function(t,e){return e.pathLength>0?t+e.pathLength:t},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,e,r,n,i,a,o,s,u){return{x:s*Y(t)+a*U(t)+n*Q(t)+e*Z(t),y:u*Y(t)+o*U(t)+i*Q(t)+r*Z(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,a,o){return{x:a*K(t)+n*J(t)+e*tt(t),y:o*K(t)+i*J(t)+r*tt(t)}}},{key:"getPointOnEllipticalArc",value:function(t,e,r,n,i,a){var o=Math.cos(a),s=Math.sin(a),u=r*Math.cos(i),c=n*Math.sin(i);return{x:t+(u*o-c*s),y:e+(u*s+c*o)}}},{key:"buildEquidistantCache",value:function(t,e){var r=this.getPathLength(),n=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var a=0,o=0;o<=r;o+=n){var s=this.getPointOnPath(o),u=this.getPointOnPath(o+n);s&&u&&((a+=this.getLineLength(s.x,s.y,u.x,u.y))>=i&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:o}),a-=i))}}}},{key:"getEquidistantPointOnPath",value:function(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var n=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}]),r}(Nt);function Ge(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var qe=function(t){(0,d.A)(r,t);var e=Ge(r);function r(t,n,i){var a;
2(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="image",a.loaded=!1;var o=a.getHrefAttribute().getString();if(!o)return(0,g.A)(a);var s=/\.svg$/.test(o);return t.images.push((0,b.A)(a)),s?a.loadSvg(o):a.loadImage(o),a.isSvg=s,a}return(0,l.A)(r,[{key:"loadImage",value:function(){var t=s(a().mark(function t(e){var r;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.createImage(e);case 3:r=t.sent,this.image=r,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error('Error while loading image "'.concat(e,'":'),t.t0);case 10:this.loaded=!0;case 11:case"end":return t.stop()}},t,this,[[0,7]])}));return function(e){return t.apply(this,arguments)}}()},{key:"loadSvg",value:function(){var t=s(a().mark(function t(e){var r,n;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.fetch(e);case 3:return r=t.sent,t.next=6,r.text();case 6:n=t.sent,this.image=n,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),console.error('Error while loading image "'.concat(e,'":'),t.t0);case 13:this.loaded=!0;case 14:case"end":return t.stop()}},t,this,[[0,10]])}));return function(e){return t.apply(this,arguments)}}()},{key:"renderChildren",value:function(t){var e=this.document,r=this.image,n=this.loaded,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(n&&r&&o&&s){if(t.save(),this.isSvg)e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:i,offsetY:a,scaleWidth:o,scaleHeight:s}).render();else{var u=this.image;t.translate(i,a),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o,desiredWidth:u.width,height:s,desiredHeight:u.height}),this.loaded&&("undefined"===typeof u.complete||u.complete)&&t.drawImage(u,0,0)}t.restore()}}},{key:"getBoundingBox",value:function(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new Ot(t,e,t+r,e+n)}}]),r}(Vt);function He(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var We=function(t){(0,d.A)(r,t);var e=He(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="symbol",t}return(0,l.A)(r,[{key:"render",value:function(t){}}]),r}(Vt),Xe=function(){function t(e){(0,c.A)(this,t),this.document=e,this.loaded=!1,e.fonts.push(this)}return(0,l.A)(t,[{key:"load",value:function(){var t=s(a().mark(function t(e,r){var n,i,o;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=this.document,t.next=4,n.canvg.parser.load(r);case 4:i=t.sent,o=i.getElementsByTagName("font"),Array.from(o).forEach(function(t){var r=n.createElement(t);n.definitions[e]=r}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.error('Error while loading font "'.concat(r,'":'),t.t0);case 12:this.loaded=!0;case 13:case"end":return t.stop()}},t,this,[[0,9]])}));return function(e,r){return t.apply(this,arguments)}}()}]),t}();function Ye(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var Ue=function(t){(0,d.A)(r,t);var e=Ye(r);function r(t,n,i){var a;return(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="style",C(Array.from(n.childNodes).map(function(t){return t.data}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(function(e){var r=e.trim();if(r){var n=r.split("{"),i=n[0].split(","),a=n[1].split(";");
2i.forEach(function(e){var r=e.trim();if(r){var n=t.styles[r]||{};if(a.forEach(function(e){var r=e.indexOf(":"),i=e.substr(0,r).trim(),a=e.substr(r+1,e.length-r).trim();i&&a&&(n[i]=new nt(t,i,a))}),t.styles[r]=n,t.stylesSpecificity[r]=G(r),"@font-face"===r){var i=n["font-family"].getString().replace(/"|'/g,"");n.src.getString().split(",").forEach(function(e){if(e.indexOf('format("svg")')>0){var r=V(e);r&&new Xe(t).load(i,r)}})}}})}}),a}return r}(kt);function Qe(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}Ue.parseExternalUrl=V;var Ze=function(t){(0,d.A)(r,t);var e=Qe(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="use",t}return(0,l.A)(r,[{key:"setContext",value:function(t){x((0,v.A)(r.prototype),"setContext",this).call(this,t);var e=this.getAttribute("x"),n=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),n.hasValue()&&t.translate(0,n.getPixels("y"))}},{key:"path",value:function(t){var e=this.element;e&&e.path(t)}},{key:"renderChildren",value:function(t){var e=this.document,r=this.element;if(r){var n=r;if("symbol"===r.type&&((n=new qt(e,null)).attributes.viewBox=new nt(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new nt(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new nt(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children),"svg"===n.type){var i=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new nt(e,"width",i.getString())),a.hasValue()&&(n.attributes.height=new nt(e,"height",a.getString()))}var o=n.parent;n.parent=this,n.render(t),n.parent=o}}},{key:"getBoundingBox",value:function(t){var e=this.element;return e?e.getBoundingBox(t):null}},{key:"elementTransform",value:function(){var t=this.document,e=this.element;return St.fromElement(t,e)}},{key:"element",get:function(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),r}(Vt);function Ke(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}function Je(t,e,r,n,i,a){return t[r*n*4+4*e+a]}function tr(t,e,r,n,i,a,o){t[r*n*4+4*e+a]=o}function er(t,e,r){var n=t[e];return n*(n<0?r-255:r)}function rr(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}var nr=function(t){(0,d.A)(r,t);var e=Ke(r);function r(t,n,i){var a;(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="feColorMatrix";var o=T(a.getAttribute("values").getString());switch(a.getAttribute("type").getString("matrix")){case"saturate":var s=o[0];o=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var u=o[0]*Math.PI/180;o=[rr(u,.213,.787,-.213),rr(u,.715,-.715,-.715),rr(u,.072,-.072,.928),0,0,rr(u,.213,-.213,.143),rr(u,.715,.285,.14),rr(u,.072,-.072,-.283),0,0,rr(u,.213,-.213,-.787),rr(u,.715,-.715,.715),rr(u,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return a.matrix=o,a.includeOpacity=a.getAttribute("includeOpacity").hasValue(),a}return(0,l.A)(r,[{key:"apply",value:function(t,e,r,n,i){for(var a=this.includeOpacity,o=this.matrix,s=t.getImageData(0,0,n,i),u=0;u<i;u++)for(var c=0;c<n;c++){var l=Je(s.data,c,u,n,0,0),f=Je(s.data,c,u,n,0,1),h=Je(s.data,c,u,n,0,2),p=Je(s.data,c,u,n,0,3),y=er(o,0,l)+er(o,1,f)+er(o,2,h)+er(o,3,p)+er(o,4,1),g=er(o,5,l)+er(o,6,f)+er(o,7,h)+er(o,8,p)+er(o,9,1),v=er(o,10,l)+er(o,11,f)+er(o,12,h)+er(o,13,p)+er(o,14,1),d=er(o,15,l)+er(o,16,f)+er(o,17,h)+er(o,18,p)+er(o,19,1);a&&(y=g=v=0,d*=p/255),tr(s.data,c,u,n,0,0,y),tr(s.data,c,u,n,0,1,g),tr(s.data,c,u,n,0,2,v),tr(s.data,c,u,n,0,3,d)}t.clearRect(0,0,n,i),t.putImageData(s,0,0)}}]),r}(kt);function ir(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var ar=function(t){(0,d.A)(r,t);var e=ir(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="mask",t}return(0,l.A)(r,[{key:"apply",value:function(t,e){var n=this.document,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var u=new Ot;
2this.children.forEach(function(e){u.addBoundingBox(e.getBoundingBox(t))}),i=Math.floor(u.x1),a=Math.floor(u.y1),o=Math.floor(u.width),s=Math.floor(u.height)}var c=this.removeStyles(e,r.ignoreStyles),l=n.createCanvas(i+o,a+s),f=l.getContext("2d");n.screen.setDefaults(f),this.renderChildren(f),new nr(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(f,0,0,i+o,a+s);var h=n.createCanvas(i+o,a+s),p=h.getContext("2d");n.screen.setDefaults(p),e.render(p),p.globalCompositeOperation="destination-in",p.fillStyle=f.createPattern(l,"no-repeat"),p.fillRect(0,0,i+o,a+s),t.fillStyle=p.createPattern(h,"no-repeat"),t.fillRect(0,0,i+o,a+s),this.restoreStyles(e,c)}},{key:"render",value:function(t){}}]),r}(kt);function or(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}ar.ignoreStyles=["mask","transform","clip-path"];var sr=function(){},ur=function(t){(0,d.A)(r,t);var e=or(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="clipPath",t}return(0,l.A)(r,[{key:"apply",value:function(t){var e=this.document,r=Reflect.getPrototypeOf(t),n=t.beginPath,i=t.closePath;r&&(r.beginPath=sr,r.closePath=sr),Reflect.apply(n,t,[]),this.children.forEach(function(n){if("undefined"!==typeof n.path){var a="undefined"!==typeof n.elementTransform?n.elementTransform():null;a||(a=St.fromElement(e,n)),a&&a.apply(t),n.path(t),r&&(r.closePath=i),a&&a.unapply(t)}}),Reflect.apply(i,t,[]),t.clip(),r&&(r.beginPath=n,r.closePath=i)}},{key:"render",value:function(t){}}]),r}(kt);function cr(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var lr=function(t){(0,d.A)(r,t);var e=cr(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="filter",t}return(0,l.A)(r,[{key:"apply",value:function(t,e){var n=this.document,i=this.children,a=e.getBoundingBox(t);if(a){var o=0,s=0;i.forEach(function(t){var e=t.extraFilterDistance||0;o=Math.max(o,e),s=Math.max(s,e)});var u=Math.floor(a.width),c=Math.floor(a.height),l=u+2*o,f=c+2*s;if(!(l<1||f<1)){var h=Math.floor(a.x),p=Math.floor(a.y),y=this.removeStyles(e,r.ignoreStyles),g=n.createCanvas(l,f),v=g.getContext("2d");n.screen.setDefaults(v),v.translate(-h+o,-p+s),e.render(v),i.forEach(function(t){"function"===typeof t.apply&&t.apply(v,0,0,l,f)}),t.drawImage(g,0,0,l,f,h-o,p-s,l,f),this.restoreStyles(e,y)}}}},{key:"render",value:function(t){}}]),r}(kt);function fr(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}lr.ignoreStyles=["filter","transform","clip-path"];var hr=function(t){(0,d.A)(r,t);var e=fr(r);function r(t,n,i){var a;return(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="feDropShadow",a.addStylesFromStyleDefinition(),a}return(0,l.A)(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(kt);function pr(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var yr=function(t){(0,d.A)(r,t);var e=pr(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="feMorphology",t}return(0,l.A)(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(kt);function gr(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var vr=function(t){(0,d.A)(r,t);var e=gr(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="feComposite",t}return(0,l.A)(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(kt);function dr(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var mr=function(t){(0,d.A)(r,t);var e=dr(r);function r(t,n,i){var a;
2return(0,c.A)(this,r),(a=e.call(this,t,n,i)).type="feGaussianBlur",a.blurRadius=Math.floor(a.getAttribute("stdDeviation").getNumber()),a.extraFilterDistance=a.blurRadius,a}return(0,l.A)(r,[{key:"apply",value:function(t,e,r,n,i){var a=this.document,o=this.blurRadius,s=a.window?a.window.document.body:null,u=t.canvas;u.id=a.getUniqueId(),s&&(u.style.display="none",s.appendChild(u)),P(u,e,r,n,i,o),s&&s.removeChild(u)}}]),r}(kt);function xr(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var br=function(t){(0,d.A)(r,t);var e=xr(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="title",t}return r}(kt);function Ar(t){return function(){var e,r=(0,v.A)(t);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var n=(0,v.A)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,g.A)(this,e)}}var wr=function(t){(0,d.A)(r,t);var e=Ar(r);function r(){var t;return(0,c.A)(this,r),(t=e.apply(this,arguments)).type="desc",t}return r}(kt),Sr={svg:qt,rect:Wt,circle:Yt,ellipse:Qt,line:Kt,polyline:te,polygon:re,path:$t,pattern:ie,marker:oe,defs:ue,linearGradient:ye,radialGradient:ve,stop:me,animate:be,animateColor:we,animateTransform:ke,font:Ee,"font-face":Te,"missing-glyph":De,glyph:Le,text:Nt,tspan:zt,tref:Ie,a:Be,textPath:$e,image:qe,g:le,symbol:We,style:Ue,use:Ze,mask:ar,clipPath:ur,filter:lr,feDropShadow:hr,feMorphology:yr,feComposite:vr,feColorMatrix:nr,feGaussianBlur:mr,title:br,desc:wr};function kr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Pr(){return Pr=s(a().mark(function t(e){var r,n,i=arguments;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>1&&void 0!==i[1]&&i[1],n=document.createElement("img"),r&&(n.crossOrigin="Anonymous"),t.abrupt("return",new Promise(function(t,r){n.onload=function(){t(n)},n.onerror=function(){r()},n.src=e}));case 4:case"end":return t.stop()}},t)})),Pr.apply(this,arguments)}var Rr=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.rootEmSize,i=void 0===n?12:n,a=r.emSize,o=void 0===a?12:a,s=r.createCanvas,u=void 0===s?t.createCanvas:s,l=r.createImage,f=void 0===l?t.createImage:l,h=r.anonymousCrossOrigin;(0,c.A)(this,t),this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=i,this.emSize=o,this.createCanvas=u,this.createImage=this.bindCreateImage(f,h),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return(0,l.A)(t,[{key:"bindCreateImage",value:function(t,e){return"boolean"===typeof e?function(r,n){return t(r,"boolean"===typeof n?n:e)}:t}},{key:"popEmSize",value:function(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(t){return t.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(t){return t.loaded})}},{key:"createDocumentElement",value:function(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}},{key:"createElement",value:function(e){var r=e.nodeName.replace(/^[^:]+:/,""),n=t.elementTypes[r];return"undefined"!==typeof n?new n(this,e):new Rt(this,e)}},{key:"createTextNode",value:function(t){return new jt(this,t)}}
2,{key:"setViewBox",value:function(t){this.screen.setViewBox(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kr(Object(r),!0).forEach(function(e){(0,u.A)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({document:this},t))}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var t=this.emSizeStack;return t[t.length-1]},set:function(t){this.emSizeStack.push(t)}}]),t}();function Cr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Er(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cr(Object(r),!0).forEach(function(e){(0,u.A)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}Rr.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},Rr.createImage=function(t){return Pr.apply(this,arguments)},Rr.elementTypes=Sr;var Mr=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,c.A)(this,t),this.parser=new ht(n),this.screen=new ct(e,n),this.options=n;var i=new Rr(this,n),a=i.createDocumentElement(r);this.document=i,this.documentElement=a}return(0,l.A)(t,[{key:"fork",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.from(e,r,Er({},this.options,{},n))}},{key:"forkString",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.fromString(e,r,Er({},this.options,{},n))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var t=s(a().mark(function t(){var e,r=arguments;return a().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:{},this.start(Er({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},e)),t.next=4,this.ready();case 4:this.stop();case 5:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"start",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.documentElement,r=this.screen,n=this.options;r.start(e,Er({enableRedraw:!0},n,{},t))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,e,r)}}],[{key:"from",value:function(){var e=s(a().mark(function e(r,n){var i,o,s,u=arguments;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=new ht(i=u.length>2&&void 0!==u[2]?u[2]:{}),e.next=4,o.parse(n);case 4:return s=e.sent,e.abrupt("return",new t(r,s,i));case 6:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},{key:"fromString",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new t(e,new ht(n).parseFromString(r),n)}}]),t}();var Tr=Object.freeze({__proto__:null,offscreen:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).DOMParser,e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas:function(t,e){return new OffscreenCanvas(t,e)},createImage:function(t){return s(a().mark(function e(){var r,n,i;return a().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return r=e.sent,e.next=5,r.blob();case 5:return n=e.sent,e.next=8,createImageBitmap(n);case 8:return i=e.sent,e.abrupt("return",i);case 10:case"end":return e.stop()}},e)}))()}};return"undefined"===typeof DOMParser&&"undefined"!==typeof t||Reflect.deleteProperty(e,"DOMParser"),e},node:function(t){var e=t.DOMParser,r=t.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:t.fetch,createCanvas:r.createCanvas,createImage:r.loadImage}}});const Or=Mr},4721(t){(function(){var e,r,n,i,a,o;"undefined"!==typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!==typeof process&&null!==process&&process.hrtime?(t.exports=function(){return(e()-a)/1e6},r=process.hrtime,i=(e=function(){var t;return 1e9*(t=r())[0]+t[1]})(),o=1e9*process.uptime(),a=i-o):Date.now?(t.exports=function(){return Date.now()-n},n=Date.now()):(t.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},1700(t,e,r){for(var n=r(4721),i="undefined"===typeof window?r.g:window,a=["moz","webkit"],o="AnimationFrame",s=i["request"+o],u=i["cancel"+o]||i["cancelRequest"+o],c=0;!s&&c<a.length;c++)s=i[a[c]+"Request"+o],u=i[a[c]+"Cancel"+o]||i[a[c]+"CancelRequest"+o];if(!s||!u){var l=0,f=0,h=[],p=1e3/60;s=function(t){if(0===h.length){var e=n(),r=Math.max(0,p-(e-l));l=r+e,setTimeout(function(){var t=h.slice(0);h.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(l)}catch(r){setTimeout(function(){throw r},0)}},Math.round(r))}return h.push({handle:++f,callback:t,cancelled:!1}),f},u=function(t){for(var e=0;e<h.length;e++)h[e].handle===t&&(h[e].cancelled=!0)}}t.exports=function(t){return s.call(i,t)},t.exports.cancel=function(){u.apply(i,arguments)},t.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=u}},3113(t){t.exports=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
20",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,o=i.exec(t);if(o){var s=a(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,n=0;n<r.length;n++)for(var i=r[n].example,a=0;a<i.length;a++)t[t.length]=i[a];for(var o in e)t[t.length]=o;var s=document.createElement("ul");s.setAttribute("id","rgbcolor-examples");for(n=0;n<t.length;n++)try{var u=document.createElement("li"),c=new RGBColor(t[n]),l=document.createElement("div");l.style.cssText="margin: 3px; border: 1px solid black; background:"+c.toHex()+"; color:"+c.toHex(),l.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[n]+" -> "+c.toRGB()+" -> "+c.toHex());u.appendChild(l),u.appendChild(f),s.appendChild(u)}catch(h){}return s}}},5172(t){t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},6993(t,e,r){var n=r(5546);function i(){var e,r,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.toStringTag||"@@toStringTag";function u(t,i,a,o){var s=i&&i.prototype instanceof l?i:l,u=Object.create(s.prototype);return n(u,"_invoke",function(t,n,i){var a,o,s,u=0,l=i||[],f=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return a=t,o=0,s=e,h.n=r,c}};function p(t,n){for(o=t,s=n,r=0;!f&&u&&!i&&r<l.length;r++){var i,a=l[r],p=h.p,y=a[2];t>3?(i=y===n)&&(s=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=p&&((i=t<2&&p<a[1])?(o=0,h.v=n,h.n=a[1]):p<y&&(i=t<3||a[0]>n||n>y)&&(a[4]=t,a[5]=n,h.n=y,o=0))}if(i||t>1)return c;throw f=!0,n}return function(i,l,y){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,y),o=l,s=y;(r=o<2?e:s)||!f;){a||(o?o<3?(o>1&&(h.n=-1),p(o,s)):h.n=s:h.v=s);try{if(u=2,a){if(o||(i="next"),r=a[i]){if(!(r=r.call(a,s)))throw TypeError("iterator result is not an object");
vendor: 4,191 bytes, line 2
2if(!r.done)return r;s=r.value,o<2&&(o=0)}else 1===o&&(r=a.return)&&r.call(a),o<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),o=1);a=e}else if((r=(f=h.n<0)?s:t.call(n,h))!==c)break}catch(r){a=e,o=1,s=r}finally{u=1}}return{value:r,done:f}}}(t,a,o),!0),u}var c={};function l(){}function f(){}function h(){}r=Object.getPrototypeOf;var p=[][o]?r(r([][o]())):(n(r={},o,function(){return this}),r),y=h.prototype=l.prototype=Object.create(p);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,n(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=h,n(y,"constructor",h),n(h,"constructor",f),f.displayName="GeneratorFunction",n(h,s,"GeneratorFunction"),n(y),n(y,s,"Generator"),n(y,o,function(){return this}),n(y,"toString",function(){return"[object Generator]"}),(t.exports=i=function(){return{w:u,m:g}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},5869(t,e,r){var n=r(887);t.exports=function(t,e,r,i,a){var o=n(t,e,r,i,a);return o.next().then(function(t){return t.done?t.value:o.next()})},t.exports.__esModule=!0,t.exports.default=t.exports},887(t,e,r){var n=r(6993),i=r(1791);t.exports=function(t,e,r,a,o){return new i(n().w(t,e,r,a),o||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},1791(t,e,r){var n=r(5172),i=r(5546);t.exports=function t(e,r){function a(t,i,o,s){try{var u=e[t](i),c=u.value;return c instanceof n?r.resolve(c.v).then(function(t){a("next",t,o,s)},function(t){a("throw",t,o,s)}):r.resolve(c).then(function(t){u.value=t,o(u)},function(t){return a("throw",t,o,s)})}catch(e){s(e)}}var o;this.next||(i(t.prototype),i(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(t,e,n){function i(){return new r(function(e,r){a(t,n,e,r)})}return o=o?o.then(i,i):i()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports},5546(t){function e(r,n,i,a){var o=Object.defineProperty;try{o({},"",{})}catch(r){o=0}t.exports=e=function(t,r,n,i){function a(r,n){e(t,r,function(t){return this._invoke(r,n,t)})}r?o?o(t,r,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[r]=n:(a("next",0),a("throw",1),a("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n,i,a)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4373(t){t.exports=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},4633(t,e,r){var n=r(5172),i=r(6993),a=r(5869),o=r(887),s=r(1791),u=r(4373),c=r(579);function l(){"use strict";var e=i(),r=e.m(l),f=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function h(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))}var p={throw:1,return:2,break:3,continue:3};function y(t){var e,r;return function(n){e||(e={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(t,e){return r(n.a,p[t],e)},delegateYield:function(t,i,a){return e.resultName=i,r(n.d,c(t),a)},finish:function(t){return r(n.f,t)}},r=function(t,r,i){n.p=e.prev,n.n=e.next;try{return t(r,i)}finally{e.next=n.n}}),e.resultName&&(e[e.resultName]=n.v,e.resultName=void 0),e.sent=n.v,e.next=n.n;try{return t.call(this,e)}finally{n.p=e.prev,n.n=e.next}}}return(t.exports=l=function(){return{wrap:function(t,r,n,i){return e.w(y(t),r,n,i&&i.reverse())},isGeneratorFunction:h,mark:e.m,awrap:function(t,e){return new n(t,e)},AsyncIterator:s,async:function(t,e,r,n,i){return(h(e)?o:a)(y(t),e,r,n,i)},keys:u,values:c}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports},579(t,e,r){var n=r(3738).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(n(t)+" is not iterable")}
2,t.exports.__esModule=!0,t.exports.default=t.exports},3738(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4756(t,e,r){var n=r(4633)();t.exports=n;try{regeneratorRuntime=n}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},2870(t,e,r){"use strict";var n=r(8057),i=r(1763),a=TypeError;t.exports=function(t){if(n(t))return t;throw new a(i(t)+" is not a function")}},1830(t,e,r){"use strict";var n=r(7841),i=String,a=TypeError;t.exports=function(t){if(n(t))return t;throw new a("Can't set "+i(t)+" as a prototype")}},6705(t,e,r){"use strict";var n=r(9831),i=r(4876),a=r(7149).f,o=n("unscopables"),s=Array.prototype;void 0===s[o]&&a(s,o,{configurable:!0,value:i(null)}),t.exports=function(t){s[o][t]=!0}},1369(t,e,r){"use strict";var n=r(2923).charAt;t.exports=function(t,e,r){return e+(r&&n(t,e).length||1)}},6635(t,e,r){"use strict";var n=r(9310),i=String,a=TypeError;t.exports=function(t){if(n(t))return t;throw new a(i(t)+" is not an object")}},8709(t,e,r){"use strict";var n=r(3089),i=r(4118),a=r(4330),o=function(t){return function(e,r,o){var s=n(e),u=a(s);if(0===u)return!t&&-1;var c,l=i(o,u);if(t&&r!==r){for(;u>l;)if((c=s[l++])!==c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},5332(t,e,r){"use strict";var n=r(4796),i=n({}.toString),a=n("".slice);t.exports=function(t){return a(i(t),8,-1)}},4959(t,e,r){"use strict";var n=r(4272),i=r(8057),a=r(5332),o=r(9831)("toStringTag"),s=Object,u="Arguments"===a(function(){return arguments}());t.exports=n?a: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(r){}}(e=s(t),o))?r:u?a(e):"Object"===(n=a(e))&&i(e.callee)?"Arguments":n}},9712(t,e,r){"use strict";var n=r(421),i=r(3859),a=r(7431),o=r(7149);t.exports=function(t,e,r){for(var s=i(e),u=o.f,c=a.f,l=0;l<s.length;l++){var f=s[l];n(t,f)||r&&n(r,f)||u(t,f,c(e,f))}}},4751(t,e,r){"use strict";var n=r(251);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},8597(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},1335(t,e,r){"use strict";var n=r(6040),i=r(7149),a=r(4136);t.exports=n?function(t,e,r){return i.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},4136(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5966(t,e,r){"use strict";var n=r(1463),i=r(7149);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),i.f(t,e,r)}},4316(t,e,r){"use strict";var n=r(8057),i=r(7149),a=r(1463),o=r(7709);t.exports=function(t,e,r,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(n(r)&&a(r,c,s),s.global)u?t[e]=r:o(e,r);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(l){}u?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},7709(t,e,r){"use strict";var n=r(6412),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},6040(t,e,r){"use strict";var n=r(251);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3355(t,e,r){"use strict";var n=r(6412),i=r(9310),a=n.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},996(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}},8396(t,e,r){"use strict";var n=r(3355)("span").classList,i=n&&n.constructor&&n.constructor.prototype;
vendor: 4,632 bytes, line 2
2t.exports=i===Object.prototype?void 0:i},2011(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},979(t,e,r){"use strict";var n=r(6412).navigator,i=n&&n.userAgent;t.exports=i?String(i):""},8563(t,e,r){"use strict";var n,i,a=r(6412),o=r(979),s=a.process,u=a.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},4146(t,e,r){"use strict";var n=r(6412),i=r(7431).f,a=r(1335),o=r(4316),s=r(7709),u=r(9712),c=r(6016);t.exports=function(t,e){var r,l,f,h,p,y=t.target,g=t.global,v=t.stat;if(r=g?n:v?n[y]||s(y,{}):n[y]&&n[y].prototype)for(l in e){if(h=e[l],f=t.dontCallGetSet?(p=i(r,l))&&p.value:r[l],!c(g?l:y+(v?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&a(h,"sham",!0),o(r,l,h,t)}}},251(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},4056(t,e,r){"use strict";r(9699);var n=r(9745),i=r(4316),a=r(9191),o=r(251),s=r(9831),u=r(1335),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,r,f){var h=s(t),p=!o(function(){var e={};return e[h]=function(){return 7},7!==""[t](e)}),y=p&&!o(function(){var e=!1,r=/a/;if("split"===t){var n={};n[c]=function(){return r},(r={constructor:n,flags:""})[h]=/./[h]}return r.exec=function(){return e=!0,null},r[h](""),!e});if(!p||!y||r){var g=/./[h],v=e(h,""[t],function(t,e,r,i,o){var s=e.exec;return s===a||s===l.exec?p&&!o?{done:!0,value:n(g,e,r,i)}:{done:!0,value:n(t,r,e,i)}:{done:!1}});i(String.prototype,t,v[0]),i(l,h,v[1])}f&&u(l[h],"sham",!0)}},7037(t,e,r){"use strict";var n=r(5116),i=Function.prototype,a=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(a):function(){return o.apply(a,arguments)})},5116(t,e,r){"use strict";var n=r(251);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9745(t,e,r){"use strict";var n=r(5116),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},1706(t,e,r){"use strict";var n=r(6040),i=r(421),a=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,s=i(a,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},8398(t,e,r){"use strict";var n=r(4796),i=r(2870);t.exports=function(t,e,r){try{return n(i(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(a){}}},4796(t,e,r){"use strict";var n=r(5116),i=Function.prototype,a=i.call,o=n&&i.bind.bind(a,a);t.exports=n?o:function(t){return function(){return a.apply(t,arguments)}}},6643(t,e,r){"use strict";var n=r(6412),i=r(8057);t.exports=function(t,e){return arguments.length<2?(r=n[t],i(r)?r:void 0):n[t]&&n[t][e];var r}},1146(t,e,r){"use strict";var n=r(2870),i=r(3529);t.exports=function(t,e){var r=t[e];return i(r)?void 0:n(r)}},2554(t,e,r){"use strict";var n=r(4796),i=r(1889),a=Math.floor,o=n("".charAt),s=n("".replace),u=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,f,h){var p=r+t.length,y=n.length,g=l;return void 0!==f&&(f=i(f),g=c),s(h,g,function(i,s){var c;switch(o(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,p);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>y){var h=a(l/10);return 0===h?i:h<=y?void 0===n[h-1]?o(s,1):n[h-1]+o(s,1):i}c=n[l-1]}return void 0===c?"":c})}},6412(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},421(t,e,r){"use strict";var n=r(4796),i=r(1889),a=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(i(t),e)}},4801(t){"use strict";t.exports={}},3641(t,e,r){"use strict";var n=r(6643);t.exports=n("document","documentElement")},2889(t,e,r){"use strict";var n=r(6040),i=r(251),a=r(3355);t.exports=!n&&!i(function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},8635(t,e,r){"use strict";var n=r(4796),i=r(251),a=r(5332),o=Object,s=n("".split);t.exports=i(function(){return!o("z").propertyIsEnumerable(0)})?function(t){return"String"===a(t)?s(t,""):o(t)}:o},2774(t,e,r){"use strict";var n=r(4796),i=r(8057),a=r(3873),o=n(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},5897(t,e,r){"use strict";
vendor: 4,648 bytes, line 2
2var n,i,a,o=r(4122),s=r(6412),u=r(9310),c=r(1335),l=r(421),f=r(3873),h=r(3051),p=r(4801),y="Object already initialized",g=s.TypeError,v=s.WeakMap;if(o||f.state){var d=f.state||(f.state=new v);d.get=d.get,d.has=d.has,d.set=d.set,n=function(t,e){if(d.has(t))throw new g(y);return e.facade=t,d.set(t,e),e},i=function(t){return d.get(t)||{}},a=function(t){return d.has(t)}}else{var m=h("state");p[m]=!0,n=function(t,e){if(l(t,m))throw new g(y);return e.facade=t,c(t,m,e),e},i=function(t){return l(t,m)?t[m]:{}},a=function(t){return l(t,m)}}t.exports={set:n,get:i,has:a,enforce:function(t){return a(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=i(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return r}}}},5556(t,e,r){"use strict";var n=r(5332);t.exports=Array.isArray||function(t){return"Array"===n(t)}},8057(t){"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},6016(t,e,r){"use strict";var n=r(251),i=r(8057),a=/#|\.prototype\./,o=function(t,e){var r=u[s(t)];return r===l||r!==c&&(i(e)?n(e):!!e)},s=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},3529(t){"use strict";t.exports=function(t){return null===t||void 0===t}},9310(t,e,r){"use strict";var n=r(8057);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},7841(t,e,r){"use strict";var n=r(9310);t.exports=function(t){return n(t)||null===t}},2636(t){"use strict";t.exports=!1},2097(t,e,r){"use strict";var n=r(6643),i=r(8057),a=r(1781),o=r(1084),s=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&a(e.prototype,s(t))}},1422(t,e,r){"use strict";var n=r(5125).IteratorPrototype,i=r(4876),a=r(4136),o=r(7275),s=r(8217),u=function(){return this};t.exports=function(t,e,r,c){var l=e+" Iterator";return t.prototype=i(n,{next:a(+!c,r)}),o(t,l,!1,!0),s[l]=u,t}},8220(t,e,r){"use strict";var n=r(4146),i=r(9745),a=r(2636),o=r(1706),s=r(8057),u=r(1422),c=r(5023),l=r(8763),f=r(7275),h=r(1335),p=r(4316),y=r(9831),g=r(8217),v=r(5125),d=o.PROPER,m=o.CONFIGURABLE,x=v.IteratorPrototype,b=v.BUGGY_SAFARI_ITERATORS,A=y("iterator"),w="keys",S="values",k="entries",P=function(){return this};t.exports=function(t,e,r,o,y,v,R){u(r,e,o);var C,E,M,T=function(t){if(t===y&&N)return N;if(!b&&t&&t in V)return V[t];switch(t){case w:case S:case k:return function(){return new r(this,t)}}return function(){return new r(this)}},O=e+" Iterator",D=!1,V=t.prototype,L=V[A]||V["@@iterator"]||y&&V[y],N=!b&&L||T(y),I="Array"===e&&V.entries||L;if(I&&(C=c(I.call(new t)))!==Object.prototype&&C.next&&(a||c(C)===x||(l?l(C,x):s(C[A])||p(C,A,P)),f(C,O,!0,!0),a&&(g[O]=P)),d&&y===S&&L&&L.name!==S&&(!a&&m?h(V,"name",S):(D=!0,N=function(){return i(L,this)})),y)if(E={values:T(S),keys:v?N:T(w),entries:T(k)},R)for(M in E)(b||D||!(M in V))&&p(V,M,E[M]);else n({target:e,proto:!0,forced:b||D},E);return a&&!R||V[A]===N||p(V,A,N,{name:y}),g[e]=N,E}},5125(t,e,r){"use strict";var n,i,a,o=r(251),s=r(8057),u=r(9310),c=r(4876),l=r(5023),f=r(4316),h=r(9831),p=r(2636),y=h("iterator"),g=!1;[].keys&&("next"in(a=[].keys())?(i=l(l(a)))!==Object.prototype&&(n=i):g=!0),!u(n)||o(function(){var t={};return n[y].call(t)!==t})?n={}:p&&(n=c(n)),s(n[y])||f(n,y,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},8217(t){"use strict";t.exports={}},4330(t,e,r){"use strict";var n=r(7834);t.exports=function(t){return n(t.length)}},1463(t,e,r){"use strict";var n=r(4796),i=r(251),a=r(8057),o=r(421),s=r(6040),u=r(1706).CONFIGURABLE,c=r(2774),l=r(5897),f=l.enforce,h=l.get,p=String,y=Object.defineProperty,g=n("".slice),v=n("".replace),d=n([].join),m=s&&!i(function(){return 8!==y(function(){},"length",{value:8}).length}),x=String(String).split("String"),b=t.exports=function(t,e,r){"Symbol("===g(p(e),0,7)&&(e="["+v(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!o(t,"name")||u&&t.name!==e)&&(s?y(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&o(r,"arity")&&t.length!==r.arity&&y(t,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?s&&y(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var n=f(t);return o(n,"source")||(n.source=d(x,"string"==typeof e?e:"")),t};Function.prototype.toString=b(function(){return a(this)&&h(this).source||c(this)},"toString")},1113(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},4876(t,e,r){"use strict";
vendor: 2,956 bytes, line 2
2var n,i=r(6635),a=r(8133),o=r(2011),s=r(4801),u=r(3641),c=r(3355),l=r(3051),f="prototype",h="script",p=l("IE_PROTO"),y=function(){},g=function(t){return"<"+h+">"+t+"</"+h+">"},v=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}d="undefined"!=typeof document?document.domain&&n?v(n):function(){var t,e=c("iframe"),r="java"+h+":";return e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F}():v(n);for(var t=o.length;t--;)delete d[f][o[t]];return d()};s[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(y[f]=i(t),r=new y,y[f]=null,r[p]=t):r=d(),void 0===e?r:a.f(r,e)}},8133(t,e,r){"use strict";var n=r(6040),i=r(3626),a=r(7149),o=r(6635),s=r(3089),u=r(3636);e.f=n&&!i?Object.defineProperties:function(t,e){o(t);for(var r,n=s(e),i=u(e),c=i.length,l=0;c>l;)a.f(t,r=i[l++],n[r]);return t}},7149(t,e,r){"use strict";var n=r(6040),i=r(2889),a=r(3626),o=r(6635),s=r(5829),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";e.f=n?a?function(t,e,r){if(o(t),e=s(e),o(r),"function"===typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var n=l(t,e);n&&n[p]&&(t[e]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:f in r?r[f]:n[f],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(o(t),e=s(e),o(r),i)try{return c(t,e,r)}catch(n){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},7431(t,e,r){"use strict";var n=r(6040),i=r(9745),a=r(5073),o=r(4136),s=r(3089),u=r(5829),c=r(421),l=r(2889),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(r){}if(c(t,e))return o(!i(a.f,t,e),t[e])}},3540(t,e,r){"use strict";var n=r(9088),i=r(2011).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},889(t,e){"use strict";e.f=Object.getOwnPropertySymbols},5023(t,e,r){"use strict";var n=r(421),i=r(8057),a=r(1889),o=r(3051),s=r(4751),u=o("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=a(t);if(n(e,u))return e[u];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof c?l:null}},1781(t,e,r){"use strict";var n=r(4796);t.exports=n({}.isPrototypeOf)},9088(t,e,r){"use strict";var n=r(4796),i=r(421),a=r(3089),o=r(8709).indexOf,s=r(4801),u=n([].push);t.exports=function(t,e){var r,n=a(t),c=0,l=[];for(r in n)!i(s,r)&&i(n,r)&&u(l,r);for(;e.length>c;)i(n,r=e[c++])&&(~o(l,r)||u(l,r));return l}},3636(t,e,r){"use strict";var n=r(9088),i=r(2011);t.exports=Object.keys||function(t){return n(t,i)}},5073(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},8763(t,e,r){"use strict";var n=r(8398),i=r(9310),a=r(8506),o=r(1830);
2t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(s){}return function(r,n){return a(r),o(n),i(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},514(t,e,r){"use strict";var n=r(9745),i=r(8057),a=r(9310),o=TypeError;t.exports=function(t,e){var r,s;if("string"===e&&i(r=t.toString)&&!a(s=n(r,t)))return s;if(i(r=t.valueOf)&&!a(s=n(r,t)))return s;if("string"!==e&&i(r=t.toString)&&!a(s=n(r,t)))return s;throw new o("Can't convert object to primitive value")}},3859(t,e,r){"use strict";var n=r(6643),i=r(4796),a=r(3540),o=r(889),s=r(6635),u=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=a.f(s(t)),r=o.f;return r?u(e,r(t)):e}},2566(t,e,r){"use strict";var n=r(9745),i=r(6635),a=r(8057),o=r(5332),s=r(9191),u=TypeError;t.exports=function(t,e){var r=t.exec;if(a(r)){var c=n(r,t,e);return null!==c&&i(c),c}if("RegExp"===o(t))return n(s,t,e);throw new u("RegExp#exec called on incompatible receiver")}},9191(t,e,r){"use strict";var n=r(9745),i=r(4796),a=r(715),o=r(3383),s=r(1377),u=r(4437),c=r(4876),l=r(5897).get,f=r(2231),h=r(7170),p=u("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,v=i("".charAt),d=i("".indexOf),m=i("".replace),x=i("".slice),b=function(){var t=/a/,e=/b*/g;return n(y,t,"a"),n(y,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),A=s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],S=function(t,e){for(var r=t.groups=c(null),n=0;n<e.length;n++){var i=e[n];r[i[0]]=t[i[1]]}};(b||w||A||f||h)&&(g=function(t){var e,r,i,s=this,u=l(s),c=a(t),f=u.raw;if(f)return f.lastIndex=s.lastIndex,e=n(g,f,c),s.lastIndex=f.lastIndex,e&&u.groups&&S(e,u.groups),e;var h=u.groups,k=A&&s.sticky,P=n(o,s),R=s.source,C=0,E=c;if(k){P=m(P,"y",""),-1===d(P,"g")&&(P+="g"),E=x(c,s.lastIndex);var M=s.lastIndex>0&&v(c,s.lastIndex-1);s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==M&&"\r"!==M&&"\u2028"!==M&&"\u2029"!==M)&&(R="(?: (?:"+R+"))",E=" "+E,C++),r=new RegExp("^(?:"+R+")",P)}w&&(r=new RegExp("^"+R+"$(?!\\s)",P)),b&&(i=s.lastIndex);var T=n(y,k?r:s,E);return k?T?(T.input=c,T[0]=x(T[0],C),T.index=s.lastIndex,s.lastIndex+=T[0].length):s.lastIndex=0:b&&T&&(s.lastIndex=s.global?T.index+T[0].length:i),w&&T&&T.length>1&&n(p,T[0],r,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(T[t]=void 0)}),T&&h&&S(T,h),T}),t.exports=g},3769(t,e,r){"use strict";var n=r(6412),i=r(251),a=n.RegExp,o=!i(function(){var t=!0;try{a(".","d")}catch(u){t=!1}var e={},r="",n=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(e,t,{get:function(){return r+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(o.hasIndices="d"),o)i(s,o[s]);return Object.getOwnPropertyDescriptor(a.prototype,"flags").get.call(e)!==n||r!==n});t.exports={correct:o}},3383(t,e,r){"use strict";var n=r(6635);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}},5414(t,e,r){"use strict";var n=r(9745),i=r(421),a=r(1781),o=r(3769),s=r(3383),u=RegExp.prototype;t.exports=o.correct?function(t){return t.flags}:function(t){return o.correct||!a(u,t)||i(t,"flags")?t.flags:n(s,t)}},1377(t,e,r){"use strict";var n=r(251),i=r(6412).RegExp,a=n(function(){var t=i("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),o=a||n(function(){return!i("a","y").sticky}),s=a||n(function(){var t=i("^r","gy");return t.lastIndex=2,null!==t.exec("str")});t.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},2231(t,e,r){"use strict";var n=r(251),i=r(6412).RegExp;t.exports=n(function(){var t=i(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})},7170(t,e,r){"use strict";var n=r(251),i=r(6412).RegExp;t.exports=n(function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})},8506(t,e,r){"use strict";var n=r(3529),i=TypeError;t.exports=function(t){if(n(t))throw new i("Can't call method on "+t);return t}},7275(t,e,r){"use strict";var n=r(7149).f,i=r(421),a=r(9831)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!i(t,a)&&n(t,a,{configurable:!0,value:e})}},3051(t,e,r){"use strict";var n=r(4437),i=r(8668),a=n("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},3873(t,e,r){"use strict";
vendor: 4,602 bytes, line 2
2var n=r(2636),i=r(6412),a=r(7709),o="__core-js_shared__",s=t.exports=i[o]||a(o,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"\xa9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},4437(t,e,r){"use strict";var n=r(3873);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},2923(t,e,r){"use strict";var n=r(4796),i=r(2599),a=r(715),o=r(8506),s=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(t){return function(e,r){var n,l,f=a(o(e)),h=i(r),p=f.length;return h<0||h>=p?t?"":void 0:(n=u(f,h))<55296||n>56319||h+1===p||(l=u(f,h+1))<56320||l>57343?t?s(f,h):n:t?c(f,h,h+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},7758(t,e,r){"use strict";var n=r(1706).PROPER,i=r(251),a=r(1064);t.exports=function(t){return i(function(){return!!a[t]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[t]()||n&&a[t].name!==t})}},5078(t,e,r){"use strict";var n=r(4796),i=r(8506),a=r(715),o=r(1064),s=n("".replace),u=RegExp("^["+o+"]+"),c=RegExp("(^|[^"+o+"])["+o+"]+$"),l=function(t){return function(e){var r=a(i(e));return 1&t&&(r=s(r,u,"")),2&t&&(r=s(r,c,"$1")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},3219(t,e,r){"use strict";var n=r(8563),i=r(251),a=r(6412).String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},4118(t,e,r){"use strict";var n=r(2599),i=Math.max,a=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):a(r,e)}},3089(t,e,r){"use strict";var n=r(8635),i=r(8506);t.exports=function(t){return n(i(t))}},2599(t,e,r){"use strict";var n=r(1113);t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},7834(t,e,r){"use strict";var n=r(2599),i=Math.min;t.exports=function(t){var e=n(t);return e>0?i(e,9007199254740991):0}},1889(t,e,r){"use strict";var n=r(8506),i=Object;t.exports=function(t){return i(n(t))}},9557(t,e,r){"use strict";var n=r(9745),i=r(9310),a=r(2097),o=r(1146),s=r(514),u=r(9831),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||a(t))return t;var r,u=o(t,l);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!i(r)||a(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},5829(t,e,r){"use strict";var n=r(9557),i=r(2097);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},4272(t,e,r){"use strict";var n={};n[r(9831)("toStringTag")]="z",t.exports="[object z]"===String(n)},715(t,e,r){"use strict";var n=r(4959),i=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},1763(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(r){return"Object"}}},8668(t,e,r){"use strict";var n=r(4796),i=0,a=Math.random(),o=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+a,36)}},1084(t,e,r){"use strict";var n=r(3219);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3626(t,e,r){"use strict";var n=r(6040),i=r(251);t.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},4122(t,e,r){"use strict";var n=r(6412),i=r(8057),a=n.WeakMap;t.exports=i(a)&&/native code/.test(String(a))},9831(t,e,r){"use strict";var n=r(6412),i=r(4437),a=r(421),o=r(8668),s=r(3219),u=r(1084),c=n.Symbol,l=i("wks"),f=u?c.for||c:c&&c.withoutSetter||o;t.exports=function(t){return a(l,t)||(l[t]=s&&a(c,t)?c[t]:f("Symbol."+t)),l[t]}},1064(t){"use strict";t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},4011(t,e,r){"use strict";var n=r(4146),i=r(8709).includes,a=r(251),o=r(6705),s=a(function(){return!Array(1).includes()}),u=a(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:s||u},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},9676(t,e,r){"use strict";var n=r(3089),i=r(6705),a=r(8217),o=r(5897),s=r(7149).f,u=r(8220),c=r(8597),l=r(2636),f=r(6040),h="Array Iterator",p=o.set,y=o.getterFor(h);t.exports=u(Array,"Array",function(t,e){p(this,{type:h,target:n(t),index:0,kind:e})},function(){var t=y(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(r,!1);case"values":return c(e[r],!1)}return c([r,e[r]],!1)},"values");var g=a.Arguments=a.Array;
2if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(v){}},7262(t,e,r){"use strict";var n=r(4146),i=r(4796),a=r(5556),o=i([].reverse),s=[1,2];n({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},9699(t,e,r){"use strict";var n=r(4146),i=r(9191);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},5084(t,e,r){"use strict";var n=r(7037),i=r(9745),a=r(4796),o=r(4056),s=r(251),u=r(6635),c=r(8057),l=r(9310),f=r(2599),h=r(7834),p=r(715),y=r(8506),g=r(1369),v=r(1146),d=r(2554),m=r(5414),x=r(2566),b=r(9831)("replace"),A=Math.max,w=Math.min,S=a([].concat),k=a([].push),P=a("".indexOf),R=a("".slice),C=function(t){return void 0===t?t:String(t)},E="$0"==="a".replace(/./,"$0"),M=!!/./[b]&&""===/./[b]("a","$0");o("replace",function(t,e,r){var a=M?"$":"$0";return[function(t,r){var n=y(this),a=l(t)?v(t,b):void 0;return a?i(a,t,n,r):i(e,p(n),t,r)},function(t,i){var o=u(this),s=p(t),l=c(i);l||(i=p(i));var y=p(m(o));if("string"==typeof i&&!~P(i,a)&&!~P(i,"$<")&&!~P(y,"y")){var v=r(e,o,s,i);if(v.done)return v.value}var b,E=!!~P(y,"g");E&&(b=!!~P(y,"u")||!!~P(y,"v"),o.lastIndex=0);for(var M,T=[];null!==(M=x(o,s))&&(k(T,M),E);){""===p(M[0])&&(o.lastIndex=g(s,h(o.lastIndex),b))}for(var O="",D=0,V=0;V<T.length;V++){for(var L,N=p((M=T[V])[0]),I=A(w(f(M.index),s.length),0),z=[],B=1;B<M.length;B++)k(z,C(M[B]));var j=M.groups;if(l){var F=S([N],z,I,s);void 0!==j&&k(F,j),L=p(n(i,void 0,F))}else L=d(N,s,I,z,j,i);I>=D&&(O+=R(s,D,I)+L,D=I+N.length)}return O+R(s,D)}]},!!s(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!E||M)},5510(t,e,r){"use strict";var n=r(4146),i=r(5078).trim;n({target:"String",proto:!0,forced:r(7758)("trim")},{trim:function(){return i(this)}})},2659(t,e,r){"use strict";var n=r(4146),i=r(6040),a=r(6412),o=r(9745),s=r(4796),u=r(421),c=r(8057),l=r(1781),f=r(715),h=r(5966),p=r(9712),y=a.Symbol,g=y&&y.prototype;if(i&&c(y)&&(!("description"in g)||void 0!==y().description)){var v={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),e=l(g,this)?new y(t):void 0===t?y():y(t);return""===t&&(v[e]=!0),e};p(d,y);var m=d.for;d.for={for:function(t){var e=f(t),r=o(m,this,e);return""===e&&(v[r]=!0),r}}.for,d.prototype=g,g.constructor=d;var x="Symbol(description detection)"===String(y("description detection")),b=s(g.valueOf),A=s(g.toString),w=/^Symbol\((.*)\)[^)]+$/,S=s("".replace),k=s("".slice);h(g,"description",{configurable:!0,get:function(){var t=b(this);if(u(v,t))return"";var e=A(t),r=x?k(e,7,-1):S(e,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:d})}},5885(t,e,r){"use strict";var n=r(6412),i=r(996),a=r(8396),o=r(9676),s=r(1335),u=r(7275),c=r(9831)("iterator"),l=o.values,f=function(t,e){if(t){if(t[c]!==l)try{s(t,c,l)}catch(n){t[c]=l}if(u(t,e,!0),i[e])for(var r in o)if(t[r]!==o[r])try{s(t,r,o[r])}catch(n){t[r]=o[r]}}};for(var h in i)f(n[h]&&n[h].prototype,h);f(a,"DOMTokenList")}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.