/** * Skipped minification because the original files appears to be already minified. * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ (function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):(e=e||self,t(e.canvg={}))})(this,function(e){'use strict';var ge=Math.tan,ce=Math.atan2,pe=Math.PI,ye=Math.round,he=String.prototype,fe=Math.max,me=Math.min,xe=Math.ceil,be=Math.sin,ve=Math.cos,ke=Math.floor,Se=Math.sqrt,Pe=Math.pow;function t(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(e){return e.replace(/(?!\u3000)\s+/gm," ")}function a(e){return e.replace(/^[\n \t]+/,"")}function r(e){return e.replace(/[\n \t]+$/,"")}function o(e){var t=(e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return t.map(parseFloat)}function l(e){return ra.test(e)?e.toLowerCase():e}function s(e){var t=e.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return t[2]||t[3]||t[4]}function d(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],a=!0,r=!1,i=void 0;try{for(var o=e[Symbol.iterator](),l;!(a=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o["return"]||o["return"]()}finally{if(r)throw i}}return n}}function u(e,t){return da(e)||ua(e,t)||ga()}function g(e,t){var n=e.match(t);return n?[e.replace(t," "),n.length]:[e,0]}function p(e){var t=[0,0,0],n=e.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,r=g(n,pa),i=ca(r,2);n=i[0],a=i[1],t[1]+=a;var o=g(n,ya),l=ca(o,2);n=l[0],a=l[1],t[0]+=a;var s=g(n,ha),d=ca(s,2);n=d[0],a=d[1],t[1]+=a;var u=g(n,fa),c=ca(u,2);n=c[0],a=c[1],t[2]+=a;var p=g(n,ma),y=ca(p,2);n=y[0],a=y[1],t[1]+=a;var h=g(n,xa),f=ca(h,2);n=f[0],a=f[1],t[1]+=a,n=n.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," ");var m=g(n,ba),x=ca(m,2);return n=x[0],a=x[1],t[2]+=a,t.join("")}function y(e){return Se(Pe(e[0],2)+Pe(e[1],2))}function h(e,t){return(e[0]*t[0]+e[1]*t[1])/(y(e)*y(t))}function x(e,t){var n=Math.acos;return(e[0]*t[1]a&&(n--,a+=1e9)),[n,a]}function Y(){var e=new Date;return(e-cl)/1e3}function $(e){var t=e.trim();return /^('|")/.test(t)?t:"\"".concat(t,"\"")}function U(e){return"undefined"==typeof process?e:e.trim().split(",").map($).join(",")}function W(e){if(!e)return"";var t=e.trim().toLowerCase();return"normal"===t||"italic"===t||"oblique"===t||"inherit"===t||"initial"===t||"unset"===t?t:/^oblique\s+(-|)\d+deg$/.test(t)?t:""}function q(e){if(!e)return"";var t=e.trim().toLowerCase();return"normal"===t||"bold"===t||"lighter"===t||"bolder"===t||"inherit"===t||"initial"===t||"unset"===t?t:/^[\d.]+$/.test(t)?t:""}function X(e){return n(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Q(e){var t=e.split("("),n=ca(t,2),a=n[0],r=n[1];return[a.trim(),r.trim().replace(")","")]}function K(e){var t=e.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]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 ");return n(t).trim()}function Z(e,t,n,a,r,i){return e[4*(n*a)+4*t+i]}function J(e,t,n,a,r,i,o){e[4*(n*a)+4*t+i]=o}function ee(e,t,n){var a=e[t];return a*(0>a?n-255:n)}function m(e,t,n,a){return t+ve(e)*n+be(e)*a}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ne(e,t,n,a,r){if("string"==typeof e&&(e=document.getElementById(e)),!e||"object"!==c(e)||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=e.getContext("2d");try{return i.getImageData(t,n,a,r)}catch(t){throw new Error("unable to access image data: "+t)}}function ae(e,t,n,a,r,i){if(!(isNaN(i)||1>i)){i|=0;var o=ne(e,t,n,a,r);o=re(o,t,n,a,r,i),e.getContext("2d").putImageData(o,t,n)}}function re(e,t,n,a,r,o){var l=e.data,s=a-1,d=r-1,u=o+1,g=u*(u+1)/2,c=new qu,h=c,f,m,b,v,k,S,P,A,E,T,C,w,O,V,L,R,I,D,N,M,z,B,_,F,j;for(b=1;b<2*o+1;b++)h=h.next=new qu,b===u&&(j=h);h.next=c;var G=null,H=null;P=S=0;var Y=Uu[o],$=Wu[o];for(m=0;m>$,0===_?l[S]=l[S+1]=l[S+2]=0:(_=255/_,l[S]=(A*Y>>$)*_,l[S+1]=(E*Y>>$)*_,l[S+2]=(T*Y>>$)*_),A-=w,E-=O,T-=V,C-=L,w-=G.r,O-=G.g,V-=G.b,L-=G.a,v=P+((v=f+o+1)>$,0<_?(_=255/_,l[v]=(A*Y>>$)*_,l[v+1]=(E*Y>>$)*_,l[v+2]=(T*Y>>$)*_):l[v]=l[v+1]=l[v+2]=0,A-=w,E-=O,T-=V,C-=L,w-=G.r,O-=G.g,V-=G.b,L-=G.a,v=f+((v=m+u)arguments.length?Vt(Ot[e])||Vt(Te[e]):Ot[e]&&Ot[e][t]||Te[e]&&Te[e][t]},Rt=function(e){return isNaN(e=+e)?0:(0n?fe(n+t,0):me(n,t)},Nt=function(e){return function(t,n,a){var r=_e(t),i=It(r.length),o=Dt(a,i),l;if(e&&n!=n){for(;i>o;)if(l=r[o++],l!=l)return!0;}else for(;i>o;o++)if((e||o in r)&&r[o]===n)return e||o||0;return!e&&-1}},Mt={includes:Nt(!0),indexOf:Nt(!1)},zt=Mt.indexOf,Bt=function(e,t){var n=_e(e),a=0,r=[],o;for(o in n)!He(ft,o)&&He(n,o)&&r.push(o);for(;t.length>a;)He(n,o=t[a++])&&(~zt(r,o)||r.push(o));return r},_t=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ft=_t.concat("length","prototype"),jt=Object.getOwnPropertyNames||function(e){return Bt(e,Ft)},Gt={f:jt},Ht=Object.getOwnPropertySymbols,Yt={f:Ht},$t=Lt("Reflect","ownKeys")||function(e){var t=Gt.f(Ke(e)),n=Yt.f;return n?t.concat(n(e)):t},Ut=function(e,t){for(var n=$t(t),a=et.f,r=Qe.f,o=0,l;oc;c++)if((5==e||a||c in d)&&(h=d[c],f=u(h,c,s),e))if(t)y[c]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return c;case 2:hn.call(y,h);}else if(n)return!1;return a?-1:3==e||n?n:y}},mn={forEach:fn(0),map:fn(1),filter:fn(2),some:fn(3),every:fn(4),find:fn(5),findIndex:fn(6)},xn=Lt("navigator","userAgent")||"",bn=Te.process,vn=bn&&bn.versions,kn=vn&&vn.v8,Sn,Pn;kn?(Sn=kn.split("."),Pn=Sn[0]+Sn[1]):xn&&(Sn=xn.match(/Edge\/(\d+)/),(!Sn||74<=Sn[1])&&(Sn=xn.match(/Chrome\/(\d+)/),Sn&&(Pn=Sn[1])));var An=Pn&&+Pn,En=cn("species"),Tn=function(e){return 51<=An||!Ce(function(){var t=[],n=t.constructor={};return n[En]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Cn=mn.map,wn=Tn("map"),On=wn&&!Ce(function(){[].map.call({length:-1,0:1},function(e){throw e})});tn({target:"Array",proto:!0,forced:!wn||!On},{map:function(e){return Cn(this,e,1")}),qn=!Ce(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),Xn=function(e,t,n,a){var r=cn(e),i=!Ce(function(){var t={};return t[r]=function(){return 7},7!=""[e](t)}),o=i&&!Ce(function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[Un]=function(){return n},n.flags="",n[r]=/./[r]),n.exec=function(){return t=!0,null},n[r](""),!t});if(!i||!o||"replace"===e&&!Wn||"split"===e&&!qn){var l=/./[r],s=n(r,""[e],function(e,t,n,a,r){return t.exec===$n?i&&!r?{done:!0,value:l.call(t,n,a)}:{done:!0,value:e.call(n,t,a)}:{done:!1}}),d=s[0],u=s[1];wt(String.prototype,e,d),wt(RegExp.prototype,r,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}),a&&tt(RegExp.prototype[r],"sham",!0)}},Qn=function(e){return function(t,n){var a=Be(t)+"",r=Rt(n),i=a.length,o,l;return 0>r||r>=i?e?"":void 0:(o=a.charCodeAt(r),55296>o||56319(l=a.charCodeAt(r+1))||57343]*>)/g,na=/\$([$&'`]|\d\d?)/g,aa=function(e){return void 0===e?e:e+""};Xn("replace",2,function(e,t,n){function a(e,a,r,i,o,l){var s=r+e.length,d=i.length,n=na;return void 0!==o&&(o=rn(o),n=ta),t.call(l,n,function(t,l){var u;switch(l.charAt(0)){case"$":return"$";case"&":return e;case"`":return a.slice(0,r);case"'":return a.slice(s);case"<":u=o[l.slice(1,-1)];break;default:var g=+l;if(0==g)return t;if(g>d){var n=ke(g/10);return 0===n?t:n<=d?void 0===i[n-1]?l.charAt(1):i[n-1]+l.charAt(1):t}u=i[g-1];}return void 0===u?"":u})}return[function(n,a){var r=Be(this),i=null==n?void 0:n[e];return void 0===i?t.call(r+"",n,a):i.call(n,r,a)},function(e,r){var o=n(t,e,this,r);if(o.done)return o.value;var l=Ke(e),s=this+"",d="function"==typeof r;d||(r+="");var u=l.global;if(u){var g=l.unicode;l.lastIndex=0}for(var c=[],p,y;(p=ea(l,s),null!==p)&&(c.push(p),!!u);)y=p[0]+"",""==y&&(l.lastIndex=Jn(s,It(l.lastIndex),g));for(var h="",f=0,m=0;m=f&&(h+=s.slice(f,b)+A,f=b+x.length)}return h+s.slice(f)}]});var ra=/^[A-Z-]+$/,ia=function(e,t){var n=[][e];return!n||!Ce(function(){n.call(null,t||function(){throw 1},1)})},oa=[].join,la=ze!=Object,sa=ia("join",",");tn({target:"Array",proto:!0,forced:la||sa},{join:function(e){return oa.call(_e(this),void 0===e?",":e)}});var da=function(e){if(Array.isArray(e))return e},ua=d,ga=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},ca=u,pa=/(\[[^\]]+\])/g,ya=/(#[^\s\+>~\.\[:]+)/g,ha=/(\.[^\s\+>~\.\[:]+)/g,fa=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,ma=/(:[\w-]+\([^\)]*\))/gi,xa=/(:[^\s\+>~\.\[:]+)/g,ba=/([^\s\+>~\.\[:]+)/g,va=1e-8,ka=Object.keys||function(e){return Bt(e,_t)},Sa=we?Object.defineProperties:function(e,t){Ke(e);for(var n=ka(t),a=n.length,r=0,i;a>r;)et.f(e,i=n[r++],t[i]);return e},Pa=Lt("document","documentElement"),Aa=ht("IE_PROTO"),Ea="prototype",Ta=function(){},Ca=function(){var e=Ue("iframe"),t=_t.length,n="<",a="script",r=">",i;for(e.style.display="none",Pa.appendChild(e),e.src="java"+a+":"+"",i=e.contentWindow.document,i.open(),i.write(n+a+r+"document.F=Object"+n+"/"+a+r),i.close(),Ca=i.F;t--;)delete Ca[Ea][_t[t]];return Ca()},wa=Object.create||function(e,t){var n;return null===e?n=Ca():(Ta[Ea]=Ke(e),n=new Ta,Ta[Ea]=null,n[Aa]=e),void 0===t?n:Sa(n,t)};ft[Aa]=!0;var Oa=Gt.f,Va={}.toString,La="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ra=function(e){try{return Oa(e)}catch(e){return La.slice()}},Ia={f:function(e){return La&&"[object Window]"==Va.call(e)?Ra(e):Oa(_e(e))}},Da={f:cn},Na=et.f,Ma=function(e){var t=Ot.Symbol||(Ot.Symbol={});He(t,e)||Na(t,e,{value:Da.f(e)})},za=et.f,Ba=cn("toStringTag"),_a=function(e,t,n){e&&!He(e=n?e:e.prototype,Ba)&&za(e,Ba,{configurable:!0,value:t})},Fa=mn.forEach,ja=ht("hidden"),Ga="Symbol",Ha="prototype",Ya=cn("toPrimitive"),$a=Ct.set,Ua=Ct.getterFor(Ga),Wa=Object[Ha],qa=Te.Symbol,Xa=Lt("JSON","stringify"),Qa=Qe.f,Ka=et.f,Za=Ia.f,Ja=f.f,er=ot("symbols"),tr=ot("op-symbols"),nr=ot("string-to-symbol-registry"),ar=ot("symbol-to-string-registry"),rr=ot("wks"),ir=Te.QObject,or=!ir||!ir[Ha]||!ir[Ha].findChild,lr=we&&Ce(function(){return 7!=wa(Ka({},"a",{get:function(){return Ka(this,"a",{value:7}).a}})).a})?function(e,t,n){var a=Qa(Wa,t);a&&delete Wa[t],Ka(e,t,n),a&&e!==Wa&&Ka(Wa,t,a)}:Ka,sr=function(e,t){var n=er[e]=wa(qa[Ha]);return $a(n,{type:Ga,tag:e,description:t}),we||(n.description=t),n},dr=ln&&"symbol"==typeof qa.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof qa},ur=function(e,t,n){e===Wa&&ur(tr,t,n),Ke(e);var a=je(t,!0);return Ke(n),He(er,a)?(n.enumerable?(He(e,ja)&&e[ja][a]&&(e[ja][a]=!1),n=wa(n,{enumerable:Ie(0,!1)})):(!He(e,ja)&&Ka(e,ja,Ie(1,{})),e[ja][a]=!0),lr(e,a,n)):Ka(e,a,n)},gr=function(e,t){Ke(e);var n=_e(t),a=ka(n).concat(hr(n));return Fa(a,function(t){(!we||cr.call(n,t))&&ur(e,t,n[t])}),e},cr=function(e){var t=je(e,!0),n=Ja.call(this,t);return(this!==Wa||!He(er,t)||He(tr,t))&&(!(n||!He(this,t)||!He(er,t)||He(this,ja)&&this[ja][t])||n)},pr=function(e,t){var n=_e(e),a=je(t,!0);if(n!==Wa||!He(er,a)||He(tr,a)){var r=Qa(n,a);return r&&He(er,a)&&!(He(n,ja)&&n[ja][a])&&(r.enumerable=!0),r}},yr=function(e){var t=Za(_e(e)),n=[];return Fa(t,function(e){He(er,e)||He(ft,e)||n.push(e)}),n},hr=function(e){var t=e===Wa,n=Za(t?tr:_e(e)),a=[];return Fa(n,function(e){He(er,e)&&(!t||He(Wa,e))&&a.push(er[e])}),a};if(ln||(qa=function(){if(this instanceof qa)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?arguments[0]+"":void 0,t=pt(e),n=function(e){this===Wa&&n.call(tr,e),He(this,ja)&&He(this[ja],t)&&(this[ja][t]=!1),lr(this,t,Ie(1,e))};return we&&or&&lr(Wa,t,{configurable:!0,set:n}),sr(t,e)},wt(qa[Ha],"toString",function(){return Ua(this).tag}),f.f=cr,et.f=ur,Qe.f=pr,Gt.f=Ia.f=yr,Yt.f=hr,we&&(Ka(qa[Ha],"description",{configurable:!0,get:function(){return Ua(this).description}}),wt(Wa,"propertyIsEnumerable",cr,{unsafe:!0}))),sn||(Da.f=function(e){return sr(cn(e),e)}),tn({global:!0,wrap:!0,forced:!ln,sham:!ln},{Symbol:qa}),Fa(ka(rr),function(e){Ma(e)}),tn({target:Ga,stat:!0,forced:!ln},{for:function(e){var t=e+"";if(He(nr,t))return nr[t];var n=qa(t);return nr[t]=n,ar[n]=t,n},keyFor:function(e){if(!dr(e))throw TypeError(e+" is not a symbol");return He(ar,e)?ar[e]:void 0},useSetter:function(){or=!0},useSimple:function(){or=!1}}),tn({target:"Object",stat:!0,forced:!ln,sham:!we},{create:function(e,t){return void 0===t?wa(e):gr(wa(e),t)},defineProperty:ur,defineProperties:gr,getOwnPropertyDescriptor:pr}),tn({target:"Object",stat:!0,forced:!ln},{getOwnPropertyNames:yr,getOwnPropertySymbols:hr}),tn({target:"Object",stat:!0,forced:Ce(function(){Yt.f(1)})},{getOwnPropertySymbols:function(e){return Yt.f(rn(e))}}),Xa){var fr=!ln||Ce(function(){var e=qa();return"[null]"!=Xa([e])||"{}"!=Xa({a:e})||"{}"!=Xa(Object(e))});tn({target:"JSON",stat:!0,forced:fr},{stringify:function(e,t){for(var n=[e],a=1,r;arguments.length>a;)n.push(arguments[a++]);if(r=t,(Fe(t)||void 0!==e)&&!dr(e))return on(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!dr(t))return t}),n[1]=t,Xa.apply(null,n)}})}qa[Ha][Ya]||tt(qa[Ha],Ya,qa[Ha].valueOf),_a(qa,Ga),ft[ja]=!0;var mr=mn.filter,xr=Tn("filter"),br=xr&&!Ce(function(){[].filter.call({length:-1,0:1},function(e){throw e})});tn({target:"Array",proto:!0,forced:!xr||!br},{filter:function(e){return mr(this,e,1i;)l=n(t,o=a[i++]),void 0!==l&&Ar(r,o,l);return r}});var Er=Ce(function(){ka(1)});tn({target:"Object",stat:!0,forced:Er},{keys:function(e){return ka(rn(e))}});var Tr={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};for(var Cr in Tr){var wr=Te[Cr],Or=wr&&wr.prototype;if(Or&&Or.forEach!==kr)try{tt(Or,"forEach",kr)}catch(e){Or.forEach=kr}}var Vr=t(function(e){var t=function(e){function t(e,t,n,r){var i=t&&t.prototype instanceof a?t:a,o=Object.create(i.prototype),l=new c(r||[]);return o._invoke=s(e,n,l),o}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function a(){}function r(){}function i(){}function o(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function l(e){function t(a,r,i,o){var l=n(e[a],e,r);if("throw"===l.type)o(l.arg);else{var s=l.arg,d=s.value;return d&&"object"==typeof d&&f.call(d,"__await")?Promise.resolve(d.__await).then(function(e){t("next",e,i,o)},function(e){t("throw",e,i,o)}):Promise.resolve(d).then(function(e){s.value=e,i(s)},function(e){return t("throw",e,i,o)})}}function a(e,n){function a(){return new Promise(function(a,r){t(e,n,a,r)})}return r=r?r.then(a,a):a()}var r;this._invoke=a}function s(e,t,a){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return y()}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var s=d(l,a);if(s){if(s===S)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===r)throw r="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r="executing";var u=n(e,t,a);if("normal"===u.type){if(r=a.done?"completed":"suspendedYield",u.arg===S)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(r="completed",a.method="throw",a.arg=u.arg)}}}function d(e,t){var a=e.iterator[t.method];if(a===k){if(t.delegate=null,"throw"===t.method){if(e.iterator["return"]&&(t.method="return",t.arg=k,d(e,t),"throw"===t.method))return S;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return S}var r=n(a,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,S;var i=r.arg;if(!i)return t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,S;if(i.done)t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=k);else return i;return t.delegate=null,S}function u(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function g(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function c(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function p(e){if(e){var t=e[x];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++nzr)throw TypeError(Br);for(o=0;o=zr)throw TypeError(Br);Ar(t,a++,d)}return t.length=a,t}});var Gr=mn.every;tn({target:"Array",proto:!0,forced:ia("every")},{every:function(e){return Gr(this,e,1a)for(;;){if(d in l){r=l[d],d+=u;break}if(d+=u,e?0>d:s<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?0<=d:s>d;d+=u)d in l&&(r=n(r,l[d],d,o));return r}},Yr={left:Hr(!1),right:Hr(!0)},$r=Yr.left;tn({target:"Array",proto:!0,forced:ia("reduce")},{reduce:function(e){return $r(this,e,arguments.length,1d;d++)if(g=r?o(Ke(p=e[d])[0],p[1]):o(e[d]),g&&g instanceof t)return g;return new t(!1)}l=s.call(e)}for(c=l.next;!(p=c.call(l)).done;)if(g=fi(l,o,p.value,r),"object"==typeof g&&g&&g instanceof t)return g;return new t(!1)};n.stop=function(e){return new t(!0,e)}}),xi=cn("iterator"),bi=!1;try{var vi=0,ki={next:function(){return{done:!!vi++}},return:function(){bi=!0}};ki[xi]=function(){return this},Array.from(ki,function(){throw 2})}catch(e){}var Si=function(e,t){if(!t&&!bi)return!1;var n=!1;try{var a={};a[xi]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n},Pi=cn("species"),Ai=function(e,t){var n=Ke(e).constructor,a;return void 0===n||null==(a=Ke(n)[Pi])?t:nn(a)},Ei=/(iphone|ipod|ipad).*applewebkit/i.test(xn),Ti=Te.location,Ci=Te.setImmediate,wi=Te.clearImmediate,Oi=Te.process,Vi=Te.MessageChannel,Li=Te.Dispatch,Ri=0,Ii={},Di="onreadystatechange",Ni=function(e){if(Ii.hasOwnProperty(e)){var t=Ii[e];delete Ii[e],t()}},Mi=function(e){return function(){Ni(e)}},zi=function(e){Ni(e.data)},Bi=function(e){Te.postMessage(e+"",Ti.protocol+"//"+Ti.host)},_i,Fi,ji;Ci&&wi||(Ci=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Ii[++Ri]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},_i(Ri),Ri},wi=function(e){delete Ii[e]},"process"==Ne(Oi)?_i=function(e){Oi.nextTick(Mi(e))}:Li&&Li.now?_i=function(e){Li.now(Mi(e))}:Vi&&!Ei?(Fi=new Vi,ji=Fi.port2,Fi.port1.onmessage=zi,_i=an(ji.postMessage,ji,1)):!Te.addEventListener||"function"!=typeof postMessage||Te.importScripts||Ce(Bi)?Di in Ue("script")?_i=function(e){Pa.appendChild(Ue("script"))[Di]=function(){Pa.removeChild(this),Ni(e)}}:_i=function(e){setTimeout(Mi(e),0)}:(_i=Bi,Te.addEventListener("message",zi,!1)));var Gi={set:Ci,clear:wi},Hi=Qe.f,Yi=Gi.set,$i=Te.MutationObserver||Te.WebKitMutationObserver,Ui=Te.process,Wi=Te.Promise,qi="process"==Ne(Ui),Xi=Hi(Te,"queueMicrotask"),Qi=Xi&&Xi.value,Ki,Zi,Ji,eo,to,no,ao,ro;Qi||(Ki=function(){var e,t;for(qi&&(e=Ui.domain)&&e.exit();Zi;){t=Zi.fn,Zi=Zi.next;try{t()}catch(e){throw Zi?eo():Ji=void 0,e}}Ji=void 0,e&&e.enter()},qi?eo=function(){Ui.nextTick(Ki)}:$i&&!Ei?(to=!0,no=document.createTextNode(""),new $i(Ki).observe(no,{characterData:!0}),eo=function(){no.data=to=!to}):Wi&&Wi.resolve?(ao=Wi.resolve(void 0),ro=ao.then,eo=function(){ro.call(ao,Ki)}):eo=function(){Yi.call(Te,Ki)});var io=Qi||function(e){var t={fn:e,next:void 0};Ji&&(Ji.next=t),Zi||(Zi=t,eo()),Ji=t},oo=function(e){var t,n;this.promise=new e(function(e,a){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=a}),this.resolve=nn(t),this.reject=nn(n)},lo={f:function(e){return new oo(e)}},so=function(e,t){if(Ke(e),Fe(t)&&t.constructor===e)return t;var n=lo.f(e),a=n.resolve;return a(t),n.promise},uo=function(e,t){var n=Te.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))},go=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},co=Gi.set,po=cn("species"),yo="Promise",ho=Ct.get,fo=Ct.set,mo=Ct.getterFor(yo),xo=ii,bo=Te.TypeError,vo=Te.document,ko=Te.process,So=Lt("fetch"),Po=lo.f,Ao=Po,Eo="process"==Ne(ko),To=!!(vo&&vo.createEvent&&Te.dispatchEvent),Co="unhandledrejection",wo=0,Oo=1,Vo=1,Lo=2,Ro=Jt(yo,function(){var e=st(xo)!==xo+"";if(!e){if(66===An)return!0;if(!Eo&&"function"!=typeof PromiseRejectionEvent)return!0}if(51<=An&&/native code/.test(xo))return!1;var t=xo.resolve(1),n=function(e){e(function(){},function(){})},a=t.constructor={};return a[po]=n,!(t.then(function(){})instanceof n)}),Io=Ro||!Si(function(e){xo.all(e)["catch"](function(){})}),Do=function(e){var t;return!!(Fe(e)&&"function"==typeof(t=e.then))&&t},No=function(e,t,n){if(!t.notified){t.notified=!0;var a=t.reactions;io(function(){for(var r=t.value,i=t.state==Oo,o=0;a.length>o;){var l=a[o++],s=i?l.ok:l.fail,d=l.resolve,u=l.reject,g=l.domain,c,p,y;try{s?(!i&&(t.rejection===Lo&&_o(e,t),t.rejection=Vo),!0===s?c=r:(g&&g.enter(),c=s(r),g&&(g.exit(),y=!0)),c===l.promise?u(bo("Promise-chain cycle")):(p=Do(c))?p.call(c,d,u):d(c)):u(r)}catch(e){g&&!y&&g.exit(),u(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&zo(e,t)})}},Mo=function(e,t,n){var a,r;To?(a=vo.createEvent("Event"),a.promise=t,a.reason=n,a.initEvent(e,!1,!0),Te.dispatchEvent(a)):a={promise:t,reason:n},(r=Te["on"+e])?r(a):e===Co&&uo("Unhandled promise rejection",n)},zo=function(e,t){co.call(Te,function(){var n=t.value,a=Bo(t),r;if(a&&(r=go(function(){Eo?ko.emit("unhandledRejection",n,e):Mo(Co,e,n)}),t.rejection=Eo||Bo(t)?Lo:Vo,r.error))throw r.value})},Bo=function(e){return e.rejection!==Vo&&!e.parent},_o=function(e,t){co.call(Te,function(){Eo?ko.emit("rejectionHandled",e):Mo("rejectionhandled",e,t.value)})},Fo=function(e,t,n,a){return function(r){e(t,n,r,a)}},jo=function(e,t,n,a){t.done||(t.done=!0,a&&(t=a),t.value=n,t.state=2,No(e,t,!0))},Go=function(e,t,n,a){if(!t.done){t.done=!0,a&&(t=a);try{if(e===n)throw bo("Promise can't be resolved itself");var r=Do(n);r?io(function(){var a={done:!1};try{r.call(n,Fo(Go,e,a,t),Fo(jo,e,a,t))}catch(n){jo(e,a,n,t)}}):(t.value=n,t.state=Oo,No(e,t,!1))}catch(n){jo(e,{done:!1},n,t)}}},Ho,Yo,$o,Uo;Ro&&(xo=function(e){di(this,xo,yo),nn(e),Ho.call(this);var t=ho(this);try{e(Fo(Go,this,t),Fo(jo,this,t))}catch(e){jo(this,t,e)}},Ho=function(){fo(this,{type:yo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:wo,value:void 0})},Ho.prototype=oi(xo.prototype,{then:function(e,t){var n=mo(this),a=Po(Ai(this,xo));return a.ok="function"!=typeof e||e,a.fail="function"==typeof t&&t,a.domain=Eo?ko.domain:void 0,n.parent=!0,n.reactions.push(a),n.state!=wo&&No(this,n,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),Yo=function(){var e=new Ho,t=ho(e);this.promise=e,this.resolve=Fo(Go,e,t),this.reject=Fo(jo,e,t)},lo.f=Po=function(e){return e===xo||e===$o?new Yo(e):Ao(e)},"function"==typeof ii&&(Uo=ii.prototype.then,wt(ii.prototype,"then",function(e,t){var n=this;return new xo(function(e,t){Uo.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof So&&tn({global:!0,enumerable:!0,forced:!0},{fetch:function(){return so(xo,So.apply(Te,arguments))}}))),tn({global:!0,wrap:!0,forced:Ro},{Promise:xo}),_a(xo,yo,!1),si(yo),$o=Lt(yo),tn({target:yo,stat:!0,forced:Ro},{reject:function(e){var t=Po(this);return t.reject.call(void 0,e),t.promise}}),tn({target:yo,stat:!0,forced:Ro},{resolve:function(e){return so(this,e)}}),tn({target:yo,stat:!0,forced:Io},{all:function(e){var t=this,n=Po(t),a=n.resolve,r=n.reject,i=go(function(){var n=nn(t.resolve),i=[],o=0,l=1;mi(e,function(e){var s=o++,d=!1;i.push(void 0),l++,n.call(t,e).then(function(e){d||(d=!0,i[s]=e,--l||a(i))},r)}),--l||a(i)});return i.error&&r(i.value),n.promise},race:function(e){var t=this,n=Po(t),a=n.reject,r=go(function(){var r=nn(t.resolve);mi(e,function(e){r.call(t,e).then(n.resolve,a)})});return r.error&&a(r.value),n.promise}});var Wo=cn("match"),qo=function(e){var t;return Fe(e)&&(void 0===(t=e[Wo])?"RegExp"==Ne(e):!!t)},Xo=[].push,Qo=4294967295,Ko=!Ce(function(){return!RegExp(Qo,"y")});Xn("split",2,function(e,t,n){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,n){var a=Be(this)+"",r=void 0===n?Qo:n>>>0;if(0===r)return[];if(void 0===e)return[a];if(!qo(e))return t.call(a,e,r);for(var i=[],o=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,s=new RegExp(e.source,o+"g"),d,u,g;(d=$n.call(s,a))&&(u=s.lastIndex,!(u>l&&(i.push(a.slice(l,d.index)),1=r)));)s.lastIndex===d.index&&s.lastIndex++;return l===a.length?(g||!s.test(""))&&i.push(""):i.push(a.slice(l)),i.length>r?i.slice(0,r):i}:function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)},[function(t,n){var r=Be(this),i=null==t?void 0:t[e];return void 0===i?a.call(r+"",t,n):i.call(t,r,n)},function(r,o){var l=n(a,r,this,o,a!==t);if(l.done)return l.value;var s=Ke(r),d=this+"",u=Ai(s,RegExp),g=s.unicode,c=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Ko?"y":"g"),y=new u(Ko?s:"^(?:"+s.source+")",c),h=void 0===o?Qo:o>>>0;if(0===h)return[];if(0===d.length)return null===ea(y,d)?[d]:[];for(var f=0,m=0,x=[];mthis.r||isNaN(this.r)?0:255this.g||isNaN(this.g)?0:255this.b||isNaN(this.b)?0:255this.alpha?0:1 "+u.toRGB()+" -> "+u.toHex());d.appendChild(g),d.appendChild(c),s.appendChild(d)}catch(t){}return s}},Il=function(){function e(t,n,a){Dr(this,e),this.document=t,this.name=n,this.value=a}return Nr(e,[{key:"hasValue",value:function(){var e=this.value;return null!==e&&""!==e&&0!==e&&"undefined"!=typeof e}},{key:"isString",value:function(e){var t=this.value,n="string"==typeof t;return n&&e?e.test(t):n}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case /px$/.test(e):case /^[0-9]+$/.test(e):return!0;default:return!1;}}},{key:"setValue",value:function(e){return this.value=e,this}},{key:"getValue",value:function(e){return"undefined"==typeof e||this.hasValue()?this.value:e}},{key:"getNumber",value:function(e){if(!this.hasValue())return"undefined"==typeof e?0:parseFloat(e);var t=this.value,a=parseFloat(t);return this.isString(/%$/)&&(a/=100),a}},{key:"getString",value:function(e){return"undefined"==typeof e||this.hasValue()?"undefined"==typeof this.value?"":this.value+"":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(e){var t=!!(1s?s*l.computeSize(i):s}}}},{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()*(pe/180);case this.isString(/grad$/):return this.getNumber()*(pe/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(pe/180);}}},{key:"getDefinition",value:function(){var e=this.getString(),t=e.match(/#([^\)'"]+)/);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}},{key:"getFillStyleDefinition",value:function(e,t){var n=this.getDefinition();if(!n)return null;if("function"==typeof n.createGradient)return n.createGradient(this.document.ctx,e,t);if("function"==typeof n.createPattern){if(n.getHrefAttribute().hasValue()){var a=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),a.hasValue()&&n.getAttribute("patternTransform",!0).setValue(a.value)}return n.createPattern(this.document.ctx,e,t)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?e.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(t){for(var n=this.value,a=n.length,r=0,o=0;o=m&&(b=x-v%m,t.shouldUpdate(void 0!==i&&i,u)&&(t.render(e,l,d,g,c,p,y),f.runEvents())),t.intervalId=Al(n)};void 0!==r&&r||f.start(),this.intervalId=Al(k)}}},{key:"stop",value:function(){this.intervalId&&(Al.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function e(t,n){if(!t){var a=this.frameDuration,e=this.animations.reduce(function(e,t){return t.update(a)||e},!1);if(e)return!0}return!!("function"==typeof n&&n())||!this.isReadyLock&&this.isReady()||!!this.mouse.hasEvents()}},{key:"render",value:function(e,t,n,a,r,i,l){var s=this.CLIENT_WIDTH,d=this.CLIENT_HEIGHT,u=this.viewPort,g=this.ctx,c=this.isFirstRender,p=g.canvas;u.clear(),p.width&&p.height?u.setCurrent(p.width,p.height):u.setCurrent(s,d);var y=e.getStyle("width"),h=e.getStyle("height");!t&&(c||"number"!=typeof a&&"number"!=typeof r)&&(y.hasValue()&&(p.width=y.getPixels("x"),p.style&&(p.style.width="".concat(p.width,"px"))),h.hasValue()&&(p.height=h.getPixels("y"),p.style&&(p.style.height="".concat(p.height,"px"))));var f=p.clientWidth||p.width,m=p.clientHeight||p.height;if(t&&y.hasValue()&&h.hasValue()&&(f=y.getPixels("x"),m=h.getPixels("y")),u.setCurrent(f,m),"number"==typeof i&&e.getAttribute("x",!0).setValue(i),"number"==typeof l&&e.getAttribute("y",!0).setValue(l),"number"==typeof a||"number"==typeof r){var x=o(e.getAttribute("viewBox").getString()),b=0,v=0;if("number"==typeof a){var k=e.getAttribute("width");k.hasValue()?b=k.getPixels("x")/a:!isNaN(x[2])&&(b=x[2]/a)}if("number"==typeof r){var S=e.getAttribute("height");S.hasValue()?v=S.getPixels("y")/r:!isNaN(x[3])&&(v=x[3]/r)}b||(b=v),v||(v=b),e.getAttribute("width",!0).setValue(a),e.getAttribute("height",!0).setValue(r);var P=e.getStyle("transform",!0,!0);P.setValue("".concat(P.getString()," scale(").concat(1/b,", ").concat(1/v,")"))}n||g.clearRect(0,0,f,m),e.render(g),c&&(this.isFirstRender=!1)}}]),e}();_l.defaultWindow=zl,_l.defaultFetch=Bl;var Fl=_l.defaultFetch,jl="undefined"==typeof DOMParser?null:DOMParser,Gl=function(){function e(){var t=0o;o++)Ar(d,o,i?r(t[o],o):t[o]);return d.length=o,d}});var Ql=cn("unscopables"),Kl=Array.prototype;null==Kl[Ql]&&tt(Kl,Ql,wa(null));var Zl=function(e){Kl[Ql][e]=!0},Jl=Mt.includes;tn({target:"Array",proto:!0},{includes:function(e){return Jl(this,e,1=t.length?{value:void 0,done:!0}:(a=Ts(t,n),e.index+=a.length,{value:a,done:!1})});var Vs=Dn.trim;tn({target:"String",proto:!0,forced:function(e){return Ce(function(){return!!"\t\n\x0B\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF"[e]()||"\u200B\x85\u180E"!="\u200B\x85\u180E"[e]()||"\t\n\x0B\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF"[e].name!==e})}("trim")},{trim:function(){return Vs(this)}});var Ls=function(){function e(t,n){var a=this,r=!!(2=l&&(this.styles[o]=r[o],this.stylesSpecificity[o]=i)}}}}]),e}();Ls.ignoreChildTypes=["title"];var Rs=function(e){function t(e,n,a){var r;return Dr(this,t),r=$l(this,Ul(t).call(this,e,n,a)),console.warn("Element ".concat(n.nodeName," not yet implemented.")),r}return ql(t,e),t}(Ls),Is=Mt.indexOf,Ds=[].indexOf,Ns=!!Ds&&0>1/[1].indexOf(1,-0),Ms=ia("indexOf");tn({target:"Array",proto:!0,forced:Ns||Ms},{indexOf:function(e){return Ns?Ds.apply(this,arguments)||0:Is(this,e,1d||d>i)return NaN;return parseInt(o,r)}return+t};if(Jt(Ws,!qs(" 0o1")||!qs("0b1")||qs("+0x1"))){for(var Zs=function(e){var t=1>arguments.length?0:e,n=this;return n instanceof Zs&&(Qs?Ce(function(){Xs.valueOf.call(n)}):Ne(n)!=Ws)?Gs(new qs(Ks(t)),n,Zs):Ks(t)},Js=we?Hs(qs):["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY","EPSILON","isFinite","isInteger","isNaN","isSafeInteger","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","parseFloat","parseInt","isInteger"],ed=0,td;Js.length>ed;ed++)He(qs,td=Js[ed])&&!He(Zs,td)&&$s(Zs,td,Ys(qs,td));Zs.prototype=Xs,Xs.constructor=Zs,wt(Te,Ws,Zs)}var nd=function(){function e(){var t=Number.NaN,n=0this.x2&&(this.x2=e)),"undefined"!=typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))}},{key:"addX",value:function(e){this.addPoint(e,null)}},{key:"addY",value:function(e){this.addPoint(null,e)}},{key:"addBoundingBox",value:function(e){if(e){var t=e.x1,n=e.y1,a=e.x2,r=e.y2;this.addPoint(t,n),this.addPoint(a,r)}}},{key:"sumCubic",value:function(e,t,n,a,r){return Pe(1-e,3)*t+3*Pe(1-e,2)*e*n+3*(1-e)*Pe(e,2)*a+Pe(e,3)*r}},{key:"bezierCurveAdd",value:function(e,n,r,i,o){var l=6*n-12*r+6*i,s=-3*n+9*r-9*i+3*o,a=3*r-3*n;if(0===s){if(0===l)return;var d=-a/l;return void(0d&&(e?this.addX(this.sumCubic(d,n,r,i,o)):this.addY(this.sumCubic(d,n,r,i,o))))}var t=Pe(l,2)-4*a*s;if(!(0>t)){var u=(-l+Se(t))/(2*s);0u&&(e?this.addX(this.sumCubic(u,n,r,i,o)):this.addY(this.sumCubic(u,n,r,i,o)));var g=(-l-Se(t))/(2*s);0g&&(e?this.addX(this.sumCubic(g,n,r,i,o)):this.addY(this.sumCubic(g,n,r,i,o)))}}},{key:"addBezierCurve",value:function(e,t,n,a,r,i,o,l){this.addPoint(e,t),this.addPoint(o,l),this.bezierCurveAdd(!0,e,n,r,o),this.bezierCurveAdd(!1,t,a,i,l)}},{key:"addQuadraticCurve",value:function(e,t,n,a,r,i){var o=e+2/3*(n-e),l=t+2/3*(a-t);this.addBezierCurve(e,t,o,o+1/3*(r-e),l,l+1/3*(i-t),r,i)}},{key:"isPointInBox",value:function(e,t){var n=this.x1,a=this.y1,r=this.x2,i=this.y2;return n<=e&&e<=r&&a<=t&&t<=i}},{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}}]),e}(),ad="toString",rd=RegExp.prototype,od=rd[ad],ld=Ce(function(){return"/a/b"!=od.call({source:"a",flags:"b"})}),sd=od.name!=ad;(ld||sd)&&wt(RegExp.prototype,ad,function(){var e=Ke(this),t=e.source+"",n=e.flags,a=(void 0===n&&e instanceof RegExp&&!("flags"in rd)?_n.call(e):n)+"";return"/"+t+"/"+a},{unsafe:!0});var dd=function(){function e(t,n){Dr(this,e),this.type="translate",this.point=null,this.point=Nl.parse(n)}return Nr(e,[{key:"apply",value:function(e){var t=this.point,n=t.x,a=t.y;e.translate(n||0,a||0)}},{key:"unapply",value:function(e){var t=this.point,n=t.x,a=t.y;e.translate(-1*n||0,-1*a||0)}},{key:"applyToPoint",value:function(e){var t=this.point,n=t.x,a=t.y;e.applyTransform([1,0,0,1,n||0,a||0])}}]),e}(),ud=function(){function e(t,n){var a=2n&&l.getAttribute("x").hasValue()||l.getAttribute("text-anchor").hasValue()));d++)s+=l.measureTextRecursive(e);return-1*("end"===a?s:s/2)}return 0}},{key:"adjustChildCoordinates",value:function(e,t,n,a){var r=n.children[a];if("function"!=typeof r.measureText)return r;var i=r.getAttribute("x"),o=r.getAttribute("y"),l=r.getAttribute("dx"),s=r.getAttribute("dy"),d=r.getAttribute("text-anchor").getString("start");if(0===a&&"textNode"!==r.type&&(!i.hasValue()&&i.setValue(t.getAttribute("x").getValue("0")),!o.hasValue()&&o.setValue(t.getAttribute("y").getValue("0")),!l.hasValue()&&l.setValue(t.getAttribute("dx").getValue("0")),!s.hasValue()&&s.setValue(t.getAttribute("dy").getValue("0"))),i.hasValue()){if(r.x=i.getPixels("x")+t.getAnchorDelta(e,n,a),"start"!==d){var u=r.measureTextRecursive(e);r.x+=-1*("end"===d?u:u/2)}l.hasValue()&&(r.x+=l.getPixels("x"))}else{if("start"!==d){var g=r.measureTextRecursive(e);t.x+=-1*("end"===d?g:g/2)}l.hasValue()&&(t.x+=l.getPixels("x")),r.x=t.x}return t.x=r.x+r.measureText(e),o.hasValue()?(r.y=o.getPixels("y"),s.hasValue()&&(r.y+=s.getPixels("y"))):(s.hasValue()&&(t.y+=s.getPixels("y")),r.y=t.y),t.y=r.y,r}},{key:"getChildBoundingBox",value:function(e,t,n,a){var r=this.adjustChildCoordinates(e,t,n,a),o=r.getBoundingBox(e);return o?(r.children.forEach(function(n,a){var i=t.getChildBoundingBox(e,t,r,a);o.addBoundingBox(i)}),o):null}},{key:"renderChild",value:function(e,t,n,a){var r=this.adjustChildCoordinates(e,t,n,a);r.render(e),r.children.forEach(function(n,a){t.renderChild(e,t,r,a)})}},{key:"measureTextRecursive",value:function(e){var t=this.children.reduce(function(t,n){return t+n.measureTextRecursive(e)},this.measureText(e));return t}},{key:"measureText",value:function(e){var t=this.measureCache;if(~t)return t;var n=this.getText(),a=this.measureTargetText(e,n);return this.measureCache=a,a}},{key:"measureTargetText",value:function(e,t){if(!t.length)return 0;var n=this.parent,a=n.getStyle("font-family").getDefinition();if(a){for(var r=this.getFontSize(),l=a.isRTL?t.split("").reverse().join(""):t,s=o(n.getAttribute("dx").getString()),d=l.length,u=0,g=0,c;gr;)t[r++]=e;return t}}),Zl("fill");var kd=function(){function e(t){Dr(this,e),this.control=null,this.start=null,this.current=null,this.command="",this.tokens=[],this.i=-1,this.previousCommand="",this.points=[],this.angles=[],this.tokens=K(t).split(" ")}return Nr(e,[{key:"reset",value:function(){this.i=-1,this.command="",this.previousCommand="",this.start=new Nl(0,0),this.control=new Nl(0,0),this.current=new Nl(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){var e=this.i,t=this.tokens;return e>=t.length-1}},{key:"isCommandOrEnd",value:function(){if(this.isEnd())return!0;var e=this.i,t=this.tokens;return /^[A-Za-z]$/.test(t[e+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 e=new Nl(this.getScalar(),this.getScalar());return this.makeAbsolute(e)}},{key:"getAsControlPoint",value:function(){var e=this.getPoint();return this.control=e,e}},{key:"getAsCurrentPoint",value:function(){var e=this.getPoint();return this.current=e,e}},{key:"getReflectedControlPoint",value:function(){var e=this.previousCommand.toLowerCase();if("c"!==e&&"s"!==e&&"q"!==e&&"t"!==e)return this.current;var t=this.current,n=t.x,a=t.y,r=this.control,i=r.x,o=r.y,l=new Nl(2*n-i,2*a-o);return l}},{key:"makeAbsolute",value:function(e){if(this.isRelativeCommand()){var t=this.current,n=t.x,a=t.y;e.x+=n,e.y+=a}return e}},{key:"addMarker",value:function(e,t,n){var a=this.points,r=this.angles;n&&0=h(S,u)&&(v=pe),1<=h(S,u)&&(v=0);var P=1-c?1:-1,A=k+P*(v/2),E=new Nl(b.x+i*ve(A),b.y+o*be(A));if(n.addMarkerAngle(E,A-P*pe/2),n.addMarkerAngle(p,A-P*pe),t.addPoint(p.x,p.y),e&&!isNaN(k)&&!isNaN(v)){var T=i>o?i:o,r=i>o?1:i/o,C=i>o?o/i:1;e.translate(b.x,b.y),e.rotate(d),e.scale(r,C),e.arc(0,0,T,k,k+v,!!(1-c)),e.scale(1/r,1/C),e.rotate(-d),e.translate(-b.x,-b.y)}}}},{key:"pathZ",value:function(e,t){var n=this.pathParser;e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath(),n.current=n.start}}]),t}(md),Pd=function(e){function t(){var e;return Dr(this,t),e=$l(this,Ul(t).apply(this,arguments)),e.type="svg",e.root=!1,e}return ql(t,e),Nr(t,[{key:"clearContext",value:function(e){Fs(Ul(t.prototype),"clearContext",this).call(this,e),this.document.screen.viewPort.removeCurrent()}},{key:"setContext",value:function(e){var n=this.document,a=n.screen,r=n.window,i=e.canvas;if(a.setDefaults(e),i.style&&"undefined"!=typeof e.font&&r&&"undefined"!=typeof r.getComputedStyle){e.font=r.getComputedStyle(i).getPropertyValue("font");var l=new Il(n,"fontSize",js.parse(e.font).fontSize);l.hasValue()&&(n.rootEmSize=l.getPixels("y"),n.emSize=n.rootEmSize)}Fs(Ul(t.prototype),"setContext",this).call(this,e),this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y"));var s=a.viewPort,d=s.width,u=s.height;this.getAttribute("width").hasValue()||this.getAttribute("width",!0).setValue("100%"),this.getAttribute("height").hasValue()||this.getAttribute("height",!0).setValue("100%");var g=this.getAttribute("refX"),c=this.getAttribute("refY"),p=this.getAttribute("viewBox"),y=p.hasValue()?o(p.getString()):null,h=!this.root&&"visible"!==this.getAttribute("overflow").getValue("hidden"),f=0,m=0,x=0,b=0;y&&(f=y[0],m=y[1]),this.root||(d=this.getAttribute("width").getPixels("x"),u=this.getAttribute("height").getPixels("y"),"marker"===this.type&&(x=f,b=m,f=0,m=0)),a.viewPort.setCurrent(d,u),y&&(d=y[2],u=y[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a.viewPort.width,desiredWidth:d,height:a.viewPort.height,desiredHeight:u,minX:f,minY:m,refX:g.getValue(),refY:c.getValue(),clip:h,clipX:x,clipY:b}),y&&(a.viewPort.removeCurrent(),a.viewPort.setCurrent(d,u))}},{key:"resize",value:function(e){var t=1=u;u++)for(var g=-1;1>=g;g++)l.save(),i.attributes.x=new Il(this.document,"x",u*o.width),i.attributes.y=new Il(this.document,"y",g*o.height),i.render(l),l.restore();var c=e.createPattern(o,"repeat");return c}}]),t}(Ls),Rd=function(e){function t(){var e;return Dr(this,t),e=$l(this,Ul(t).apply(this,arguments)),e.type="marker",e}return ql(t,e),Nr(t,[{key:"render",value:function(e,t,n){if(t){var a=t.x,r=t.y,i=this.getAttribute("orient").getValue("auto"),o=this.getAttribute("markerUnits").getValue("strokeWidth");e.translate(a,r),"auto"===i&&e.rotate(n),"strokeWidth"===o&&e.scale(e.lineWidth,e.lineWidth),e.save();var l=new Pd(this.document,null);l.type=this.type,l.attributes.viewBox=new Il(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.refX=new Il(this.document,"refX",this.getAttribute("refX").getValue()),l.attributes.refY=new Il(this.document,"refY",this.getAttribute("refY").getValue()),l.attributes.width=new Il(this.document,"width",this.getAttribute("markerWidth").getValue()),l.attributes.height=new Il(this.document,"height",this.getAttribute("markerHeight").getValue()),l.attributes.overflow=new Il(this.document,"overflow",this.getAttribute("overflow").getValue()),l.attributes.fill=new Il(this.document,"fill",this.getAttribute("fill").getValue("black")),l.attributes.stroke=new Il(this.document,"stroke",this.getAttribute("stroke").getValue("none")),l.children=this.children,l.render(e),e.restore(),"strokeWidth"===o&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"===i&&e.rotate(-n),e.translate(-a,-r)}}}]),t}(Ls),Id=function(e){function t(){var e;return Dr(this,t),e=$l(this,Ul(t).apply(this,arguments)),e.type="defs",e}return ql(t,e),Nr(t,[{key:"render",value:function(){}}]),t}(Ls),Dd=function(e){function t(){var e;return Dr(this,t),e=$l(this,Ul(t).apply(this,arguments)),e.type="g",e}return ql(t,e),Nr(t,[{key:"getBoundingBox",value:function(e){var t=new nd;return this.children.forEach(function(n){t.addBoundingBox(n.getBoundingBox(e))}),t}}]),t}(md),Nd=function(e){function t(e,n,a){var r;Dr(this,t),r=$l(this,Ul(t).call(this,e,n,a)),r.attributesToInherit=["gradientUnits"],r.stops=[];var i=Yl(r),o=i.stops,l=i.children;return l.forEach(function(e){"stop"===e.type&&o.push(e)}),r}return ql(t,e),Nr(t,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(e,t,n){var a=this,r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var i=r,o=i.stops,l=this.getGradient(e,t);if(!l)return this.addParentOpacity(n,o[o.length-1].color);if(o.forEach(function(e){l.addColorStop(e.offset,a.addParentOpacity(n,e.color))}),this.getAttribute("gradientTransform").hasValue()){var s=this.document,d=s.screen,u=d.MAX_VIRTUAL_PIXELS,g=d.viewPort,c=ca(g.viewPorts,1),p=c[0],y=new Ad(s,null);y.attributes.x=new Il(s,"x",-u/3),y.attributes.y=new Il(s,"y",-u/3),y.attributes.width=new Il(s,"width",u),y.attributes.height=new Il(s,"height",u);var h=new Dd(s,null);h.attributes.transform=new Il(s,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[y];var f=new Pd(s,null);f.attributes.x=new Il(s,"x",0),f.attributes.y=new Il(s,"y",0),f.attributes.width=new Il(s,"width",p.width),f.attributes.height=new Il(s,"height",p.height),f.children=[h];var m=s.createCanvas(p.width,p.height),x=m.getContext("2d");return x.fillStyle=l,f.render(x),x.createPattern(m,"no-repeat")}return l}},{key:"inheritStopContainer",value:function(e){var t=this;this.attributesToInherit.forEach(function(n){!t.getAttribute(n).hasValue()&&e.getAttribute(n).hasValue()&&t.getAttribute(n,!0).setValue(e.getAttribute(n).getValue())})}},{key:"addParentOpacity",value:function(e,t){if(e.hasValue()){var n=new Il(this.document,"color",t);return n.addOpacity(e).getString()}return t}}]),t}(Ls),Md=function(e){function t(e,n,a){var r;return Dr(this,t),r=$l(this,Ul(t).call(this,e,n,a)),r.type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return ql(t,e),Nr(t,[{key:"getGradient",value:function(e,t){var n="objectBoundingBox"===this.getGradientUnits(),a=n?t.getBoundingBox(e):null;if(n&&!a)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 r=n?a.x+a.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),i=n?a.y+a.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),o=n?a.x+a.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),l=n?a.y+a.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return r===o&&i===l?null:e.createLinearGradient(r,i,o,l)}}]),t}(Nd),zd=function(e){function t(e,n,a){var r;return Dr(this,t),r=$l(this,Ul(t).call(this,e,n,a)),r.type="radialGradient",r.attributesToInherit.push("cx","cy","r","fx","fy","fr"),r}return ql(t,e),Nr(t,[{key:"getGradient",value:function(e,t){var n="objectBoundingBox"===this.getGradientUnits(),a=t.getBoundingBox(e);if(n&&!a)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=n?a.x+a.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=n?a.y+a.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),l=i,s=o;this.getAttribute("fx").hasValue()&&(l=n?a.x+a.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(s=n?a.y+a.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var d=n?(a.width+a.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),r=this.getAttribute("fr").getPixels();return e.createRadialGradient(l,s,r,i,o,d)}}]),t}(Nd),Bd=function(e){function t(e,n,a){var r;Dr(this,t),r=$l(this,Ul(t).call(this,e,n,a)),r.type="stop";var i=fe(0,me(1,r.getAttribute("offset").getNumber())),o=r.getStyle("stop-opacity"),l=r.getStyle("stop-color",!0);return""===l.getString()&&l.setValue("#000"),o.hasValue()&&(l=l.addOpacity(o)),r.offset=i,r.color=l.getString(),r}return ql(t,e),t}(Ls),_d="Array Iterator",Fd=Ct.set,jd=Ct.getterFor(_d),Gd=Es(Array,"Array",function(e,t){Fd(this,{type:_d,target:_e(e),index:0,kind:t})},function(){var e=jd(this),t=e.target,n=e.kind,a=e.index++;return!t||a>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:a,done:!1}:"values"==n?{value:t[a],done:!1}:{value:[a,t[a]],done:!1}},"values");ui.Arguments=ui.Array,Zl("keys"),Zl("values"),Zl("entries");var Hd=cn("iterator"),Yd=cn("toStringTag"),$d=Gd.values;for(var Ud in Tr){var Wd=Te[Ud],qd=Wd&&Wd.prototype;if(qd){if(qd[Hd]!==$d)try{tt(qd,Hd,$d)}catch(e){qd[Hd]=$d}if(qd[Yd]||tt(qd,Yd,Ud),Tr[Ud])for(var Xd in Gd)if(qd[Xd]!==Gd[Xd])try{tt(qd,Xd,Gd[Xd])}catch(e){qd[Xd]=Gd[Xd]}}}var Qd=function(e){function t(e,n,a){var r;return Dr(this,t),r=$l(this,Ul(t).call(this,e,n,a)),r.type="animate",r.duration=0,r.initialValue=null,r.initialUnits="",r.removed=!1,r.frozen=!1,e.screen.animations.push(Yl(r)),r.begin=r.getAttribute("begin").getMilliseconds(),r.maxDuration=r.begin+r.getAttribute("dur").getMilliseconds(),r.from=r.getAttribute("from"),r.to=r.getAttribute("to"),r.values=r.getAttribute("values"),r.values.hasValue()&&r.values.setValue(r.values.getString().split(";")),r}return ql(t,e),Nr(t,[{key:"getProperty",value:function(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===e?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}},{key:"calcValue",value:function(){var e=this.initialUnits,t=this.getProgress(),n=t.progress,a=t.from,r=t.to,i=a.getNumber()+(r.getNumber()-a.getNumber())*n;return"%"===e&&(i*=100),"".concat(i).concat(e)}},{key:"update",value:function(e){var t=this.parent,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var a=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"===a&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=n.getString();else if("remove"===a&&!this.removed)return this.removed=!0,n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var r=!1;if(this.begin>>0||(Jd.test(n)?16:10))}:Zd;tn({global:!0,forced:parseInt!=tu},{parseInt:tu});var nu=function(e){function t(){var e;return Dr(this,t),e=$l(this,Ul(t).apply(this,arguments)),e.type="animateColor",e}return ql(t,e),Nr(t,[{key:"calcValue",value:function(){var e=this.getProgress(),t=e.progress,n=e.from,a=e.to,i=new Rl(n.getString()),o=new Rl(a.getString());if(i.ok&&o.ok){var l=i.r+(o.r-i.r)*t,r=i.g+(o.g-i.g)*t,s=i.b+(o.b-i.b)*t;return"rgb(".concat(parseInt(l,10),", ").concat(parseInt(r,10),", ").concat(parseInt(s,10),")")}return this.getAttribute("from").getString()}}]),t}(Qd),au=function(e){function t(){var e;return Dr(this,t),e=$l(this,Ul(t).apply(this,arguments)),e.type="animateTransform",e}return ql(t,e),Nr(t,[{key:"calcValue",value:function(){var e=this.getProgress(),t=e.progress,n=e.from,a=e.to,r=o(n.getString()),l=o(a.getString()),s=r.map(function(e,n){var a=l[n];return e+(a-e)*t}).join(" ");return s}}]),t}(Qd),ru=et.f,iu=Te.Symbol;if(we&&"function"==typeof iu&&(!("description"in iu.prototype)||void 0!==iu().description)){var ou={},lu=function(){var e=1>arguments.length||void 0===arguments[0]?void 0:arguments[0]+"",t=this instanceof lu?new iu(e):void 0===e?iu():iu(e);return""===e&&(ou[t]=!0),t};Ut(lu,iu);var su=lu.prototype=iu.prototype;su.constructor=lu;var du=su.toString,uu="Symbol(test)"==iu("test")+"",gu=/^Symbol\((.*)\)[^)]+$/;ru(su,"description",{configurable:!0,get:function(){var e=Fe(this)?this.valueOf():this,t=du.call(e);if(He(ou,e))return"";var n=uu?t.slice(7,-1):t.replace(gu,"$1");return""===n?void 0:n}}),tn({global:!0,forced:!0},{Symbol:lu})}Ma("iterator");var cu=function(e){function t(e,n,a){var r;Dr(this,t),r=$l(this,Ul(t).call(this,e,n,a)),r.type="font",r.glyphs={},r.horizAdvX=r.getAttribute("horiz-adv-x").getNumber();var i=e.definitions,o=Yl(r),l=o.children,s=!0,d=!1,u=void 0;try{for(var g=l[Symbol.iterator](),c,p;!(s=(c=g.next()).done);s=!0)switch(p=c.value,p.type){case"font-face":{r.fontFace=p;var y=p.getStyle("font-family");y.hasValue()&&(i[y.getString()]=Yl(r));break}case"missing-glyph":r.missingGlyph=p;break;case"glyph":{var h=p;h.arabicForm?(r.isRTL=!0,r.isArabic=!0,"undefined"==typeof r.glyphs[h.unicode]&&(r.glyphs[h.unicode]={}),r.glyphs[h.unicode][h.arabicForm]=h):r.glyphs[h.unicode]=h;break}default:}}catch(e){d=!0,u=e}finally{try{s||null==g.return||g.return()}finally{if(d)throw u}}return r}return ql(t,e),Nr(t,[{key:"render",value:function(){}}]),t}(Ls),pu=function(e){function t(e,n,a){var r;return Dr(this,t),r=$l(this,Ul(t).call(this,e,n,a)),r.type="font-face",r.ascent=r.getAttribute("ascent").getNumber(),r.descent=r.getAttribute("descent").getNumber(),r.unitsPerEm=r.getAttribute("units-per-em").getNumber(),r}return ql(t,e),t}(Ls),yu=function(e){function t(){var e;return Dr(this,t),e=$l(this,Ul(t).apply(this,arguments)),e.type="missing-glyph",e.horizAdvX=0,e}return ql(t,e),t}(Sd),hu=function(e){function t(e,n,a){var r;return Dr(this,t),r=$l(this,Ul(t).call(this,e,n,a)),r.type="glyph",r.horizAdvX=r.getAttribute("horiz-adv-x").getNumber(),r.unicode=r.getAttribute("unicode").getString(),r.arabicForm=r.getAttribute("arabic-form").getString(),r}return ql(t,e),t}(Sd),fu=function(e){function t(){var e;return Dr(this,t),e=$l(this,Ul(t).apply(this,arguments)),e.type="tref",e}return ql(t,e),Nr(t,[{key:"getText",value:function(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}]),t}(xd),mu=function(e){function t(e,n,a){var r;Dr(this,t),r=$l(this,Ul(t).call(this,e,n,a)),r.type="a";var i=n.childNodes,o=i[0],l=0s?l:s,r=l>s?1:l/s,y=l>s?s/l:1;e&&(e.translate(i,o),e.rotate(g),e.scale(r,y),e.arc(0,0,p,d,d+u,!!(1-c)),e.scale(1/r,1/y),e.rotate(-g),e.translate(-i,-o));break}case"z":e&&e.closePath();}})}},{key:"renderChildren",value:function(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),a=this.glyphInfo,r=e.fillStyle;"underline"===t&&e.beginPath(),a.forEach(function(r,o){var i=r.p0,l=r.p1,s=r.text;e.save(),e.translate(i.x,i.y),e.rotate(a[o].rotation),e.fillStyle&&e.fillText(s,0,0),e.strokeStyle&&e.strokeText(s,0,0),e.restore(),"underline"===t&&(0===o&&e.moveTo(i.x,i.y+n/8),e.lineTo(l.x,l.y+n/5))}),"underline"===t&&(e.lineWidth=n/20,e.strokeStyle=r,e.stroke(),e.closePath()),e.restore()}},{key:"getLetterSpacingAt",value:function(){var e=0=h(m,u)&&(b=pe),1<=h(m,u)&&(b=0),0===o&&0b&&(b+=2*pe),[y.x,y.y,n,a,f,b,r,o]}}},{key:"calcLength",value:function(e,n,a,r){var i=Math.abs,o=0,l=null,s=null,d=0;switch(a){case"L":return this.getLineLength(e,n,r[0],r[1]);case"C":for(o=0,l=this.getPointOnCubicBezier(0,e,n,r[0],r[1],r[2],r[3],r[4],r[5]),d=.01;1>=d;d+=.01)s=this.getPointOnCubicBezier(d,e,n,r[0],r[1],r[2],r[3],r[4],r[5]),o+=this.getLineLength(l.x,l.y,s.x,s.y),l=s;return o;case"Q":for(o=0,l=this.getPointOnQuadraticBezier(0,e,n,r[0],r[1],r[2],r[3]),d=.01;1>=d;d+=.01)s=this.getPointOnQuadraticBezier(d,e,n,r[0],r[1],r[2],r[3]),o+=this.getLineLength(l.x,l.y,s.x,s.y),l=s;return o;case"A":o=0;var u=r[4],g=r[5],c=r[4]+g,p=pe/180;if(i(u-c)g)for(d=u-p;d>c;d-=p)s=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],d,0),o+=this.getLineLength(l.x,l.y,s.x,s.y),l=s;else for(d=u+p;de||e-5e-5>t)return null;var r=this.dataArray,i=!0,o=!1,l=void 0;try{for(var s=r[Symbol.iterator](),d,u;!(i=(d=s.next()).done);i=!0){if(u=d.value,u&&(5e-5>u.pathLength||n+u.pathLength+5e-5h&&cf)break;a=this.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],c,u.points[6]);break;case"C":c=g/u.pathLength,1=r&&(this.equidistantCache.points.push({x:d.x,y:d.y,distance:o}),i-=r))}}}},{key:"getEquidistantPointOnPath",value:function(e,t,n){if(this.buildEquidistantCache(t,n),0>e||5e-5