System.register([],function(t,e){var r,n,i,o,a,s,u,c,h,l,y,p,f,_,m,O,d,v,T,x,b,E,N,A,g,C,M,R,w,S,I,j,L,U,H,V,D,P,Y,X,z,F,Q,$,Z,k,q,B,W,K,G,J,tt,et,rt,nt,it,ot,at,st,ut,ct,ht,lt,yt,pt,ft,_t,mt,Ot,dt,vt,Tt,xt,bt,Et,Nt,At,gt,Ct,Mt,Rt,wt,St,It,jt,Lt,Ut,Ht,Vt,Dt,Pt,Yt,Xt,zt,Ft,Qt,$t,Zt,kt,qt,Bt,Wt,Kt,Gt,Jt,te,ee,re,ne,ie,oe,ae,se,ue,ce,he,le,ye,pe,fe,_e,me,Oe,de,ve,Te;function xe(t){return xe="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},xe(t)}function be(t){var e=function(t,e){if("object"!=xe(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==xe(e)?e:e+""}function Ee(t,e,r){return(e=be(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ne(t){return null==t?void 0===t?y:l:p&&p in Object(t)?function(t){var e=s.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(o){}var i=u.call(t);return n&&(e?t[c]=r:delete t[c]),i}(t):function(t){return h.call(t)}(t)}function Ae(t){return null!=t&&"object"==typeof t}function ge(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&m.test(t.charAt(e)););return e}(t)+1).replace(O,""):t}function Ce(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Me(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||Ae(t)&&Ne(t)==f}(t))return d;if(Ce(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ce(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=ge(t);var r=T.test(t);return r||x.test(t)?b(t.slice(2),r?2:8):v.test(t)?d:+t}function Re(t){if(!Ce(t))return!1;var e=Ne(t);return e==N||e==A||e==E||e==g}function we(t){if(null!=t){try{return R.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Se(t){return!(!Ce(t)||(e=t,M&&M in e))&&(Re(t)?H:S).test(we(t));var e}function Ie(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return Se(r)?r:void 0}function je(t,e){var r=typeof t;return!!(e=null==e?D:e)&&("number"==r||"symbol"!=r&&P.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=Y}function He(t){return Ae(t)&&Ne(t)==z}function Ve(){return!1}function De(t){return Ae(t)&&Ue(t.length)&&!!K[Ne(t)]}function Pe(t,e){var r=_(t),n=!r&&Z(t),i=!r&&!n&&W(t),o=!r&&!n&&!i&&nt(t),a=r||n||i||o,s=a?function(t,e){for(var r=-1,n=Array(t);++r-1}function Je(t,e){var r=this.__data__,n=Be(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function tr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++es))return!1;var c=o.get(t),h=o.get(e);if(c&&h)return c==e&&h==t;var l=-1,y=!0,p=r&Ht?new dr:void 0;for(o.set(t,e),o.set(e,t);++l=e||r<0||l&&t-c>=o}function _(){var t=oe();if(f(t))return m(t);s=setTimeout(_,function(t){var r=e-(t-u);return l?ue(r,o-(t-c)):r}(t))}function m(t){return s=void 0,y&&n?p(t):(n=i=void 0,a)}function O(){var t=oe(),r=f(t);if(n=arguments,i=this,u=t,r){if(void 0===s)return function(t){return c=t,s=setTimeout(_,e),h?p(t):a}(u);if(l)return clearTimeout(s),s=setTimeout(_,e),p(u)}return void 0===s&&(s=setTimeout(_,e)),a}return e=Me(e)||0,Ce(r)&&(h=!!r.leading,o=(l="maxWait"in r)?se(Me(r.maxWait)||0,e):o,y="trailing"in r?!!r.trailing:y),O.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=u=i=s=void 0},O.flush=function(){return void 0===s?a:m(oe())},O}function gr(t){let e="";Array.isArray(t)||(t=[t]);for(let r=0;rt.phi1&&(t.phi2-=2*le),1===t.sweepFlag&&t.phi2n)return[];if(0===n)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];const i=Math.sqrt(n);return[[(t*r+e*i)/(t*t+e*e),(e*r-t*i)/(t*t+e*e)],[(t*r-e*i)/(t*t+e*e),(e*r+t*i)/(t*t+e*e)]]}function Sr(t,e,r){return(1-r)*t+r*e}function Ir(t,e,r,n){return t+Math.cos(n/180*le)*e+Math.sin(n/180*le)*r}function jr(t,e,r,n){const i=1e-6,o=e-t,a=r-e,s=3*o+3*(n-r)-6*a,u=6*(a-o),c=3*o;return Math.abs(s){const n="relative"in t&&t.relative;return["x"in t?t.x+(n?e:0):e,"y"in t?t.y+(n?r:0):r]}));let n=r[0];e.push(t[0]);for(let i=1;i({...t,x:t.x??e,y:t.y??r,relative:t.relative??!1})),n=[];let i=[];for(const o of t){const t=r(o);t.type===ve.MOVE_TO&&i.length>0&&(e?n.push(...Dr(i)):n.unshift(...Dr(i)),i=[]),i.push(t)}return i.length>0&&(e?n.push(...Dr(i)):n.unshift(...Dr(i))),n}function Dr(t){const e=t[t.length-1]?.type===ve.CLOSE_PATH,r=e?t.length-2:t.length-1,n=[{type:ve.MOVE_TO,relative:!1,x:t[r].x,y:t[r].y}];for(let i=r;i>0;i--){const e=t[i],r=t[i-1];if(e.relative)throw new Error("Relative command are not supported convert first with `toAbs()`");switch(e.type){case ve.HORIZ_LINE_TO:n.push({type:ve.HORIZ_LINE_TO,relative:!1,x:r.x});break;case ve.VERT_LINE_TO:n.push({type:ve.VERT_LINE_TO,relative:!1,y:r.y});break;case ve.LINE_TO:case ve.MOVE_TO:n.push({type:ve.LINE_TO,relative:!1,x:r.x,y:r.y});break;case ve.CURVE_TO:n.push({type:ve.CURVE_TO,relative:!1,x:r.x,y:r.y,x1:e.x2,y1:e.y2,x2:e.x1,y2:e.y1});break;case ve.SMOOTH_CURVE_TO:throw new Error("Unsupported command: S (smooth cubic bezier)");case ve.SMOOTH_QUAD_TO:throw new Error("Unsupported command: T (smooth quadratic bezier)");case ve.ARC:throw new Error("Unsupported command: A (arc)");case ve.QUAD_TO:throw new Error("Unsupported command: Q (quadratic bezier)")}}return e&&n.push({type:ve.CLOSE_PATH}),n}function Pr(t=1e13){function e(e){return Math.round(e*t)/t}return Mr(t),function(t){return"x1"in t&&void 0!==t.x1&&(t.x1=e(t.x1)),"y1"in t&&void 0!==t.y1&&(t.y1=e(t.y1)),"x2"in t&&void 0!==t.x2&&(t.x2=e(t.x2)),"y2"in t&&void 0!==t.y2&&(t.y2=e(t.y2)),"x"in t&&void 0!==t.x&&(t.x=e(t.x)),"y"in t&&void 0!==t.y&&(t.y=e(t.y)),"rX"in t&&void 0!==t.rX&&(t.rX=e(t.rX)),"rY"in t&&void 0!==t.rY&&(t.rY=e(t.rY)),t}}function Yr(){return $r((t,e,r)=>(t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t))}function Xr(){return $r((t,e,r)=>(t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t))}function zr(t=!0,e=!0,r=!0,n=!0){return $r((i,o,a,s,u)=>{if(isNaN(s)&&!(i.type&ve.MOVE_TO))throw new Error("path must start with moveto");if(e&&i.type&ve.HORIZ_LINE_TO&&(i.type=ve.LINE_TO,i.y=i.relative?0:a),r&&i.type&ve.VERT_LINE_TO&&(i.type=ve.LINE_TO,i.x=i.relative?0:o),t&&i.type&ve.CLOSE_PATH&&(i.type=ve.LINE_TO,i.x=i.relative?s-o:s,i.y=i.relative?u-a:u),i.type&ve.ARC&&(0===i.rX||0===i.rY)&&(i.type=ve.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),n&&i.type&ve.QUAD_TO&&Ur([o,a],i.relative?[o+i.x1,a+i.y1]:[i.x1,i.y1],i.relative?[o+i.x,a+i.y]:[i.x,i.y])&&(i.type=ve.LINE_TO,delete i.x1,delete i.y1),n&&i.type&ve.CURVE_TO){const t=[o,a],e=i.relative?[o+i.x1,a+i.y1]:[i.x1,i.y1],r=i.relative?[o+i.x2,a+i.y2]:[i.x2,i.y2],n=i.relative?[o+i.x,a+i.y]:[i.x,i.y];Ur(t,e,n)&&Ur(t,r,n)&&(i.type=ve.LINE_TO,delete i.x1,delete i.y1,delete i.x2,delete i.y2)}return i})}function Fr(){let t=NaN,e=NaN,r=NaN,n=NaN;return $r((i,o,a)=>(i.type&ve.SMOOTH_CURVE_TO&&(i.type=ve.CURVE_TO,t=isNaN(t)?o:t,e=isNaN(e)?a:e,i.x1=i.relative?o-t:2*o-t,i.y1=i.relative?a-e:2*a-e),i.type&ve.CURVE_TO?(t=i.relative?o+i.x2:i.x2,e=i.relative?a+i.y2:i.y2):(t=NaN,e=NaN),i.type&ve.SMOOTH_QUAD_TO&&(i.type=ve.QUAD_TO,r=isNaN(r)?o:r,n=isNaN(n)?a:n,i.x1=i.relative?o-r:2*o-r,i.y1=i.relative?a-n:2*a-n),i.type&ve.QUAD_TO?(r=i.relative?o+i.x1:i.x1,n=i.relative?a+i.y1:i.y1):(r=NaN,n=NaN),i))}function Qr(){let t=NaN,e=NaN;return $r((r,n,i)=>{if(r.type&ve.SMOOTH_QUAD_TO&&(r.type=ve.QUAD_TO,t=isNaN(t)?n:t,e=isNaN(e)?i:e,r.x1=r.relative?n-t:2*n-t,r.y1=r.relative?i-e:2*i-e),r.type&ve.QUAD_TO){t=r.relative?n+r.x1:r.x1,e=r.relative?i+r.y1:r.y1;const o=r.x1,a=r.y1;r.type=ve.CURVE_TO,r.x1=((r.relative?0:n)+2*o)/3,r.y1=((r.relative?0:i)+2*a)/3,r.x2=(r.x+2*o)/3,r.y2=(r.y+2*a)/3}else t=NaN,e=NaN;return r})}function $r(t){let e=0,r=0,n=NaN,i=NaN;return function(o){if(isNaN(n)&&!(o.type&ve.MOVE_TO))throw new Error("path must start with moveto");const a=t(o,e,r,n,i);return o.type&ve.CLOSE_PATH&&(e=n,r=i),"x"in o&&void 0!==o.x&&(e=o.relative?e+o.x:o.x),"y"in o&&void 0!==o.y&&(r=o.relative?r+o.y:o.y),o.type&ve.MOVE_TO&&(n=e,i=r),a}}function Zr(t=0){Mr(t);let e=NaN,r=NaN,n=NaN,i=NaN;return $r((o,a,s,u,c)=>{const h=Math.abs;let l=!1,y=0,p=0;if(o.type&ve.SMOOTH_CURVE_TO&&(y=isNaN(e)?0:a-e,p=isNaN(r)?0:s-r),o.type&(ve.CURVE_TO|ve.SMOOTH_CURVE_TO)?(e=o.relative?a+o.x2:o.x2,r=o.relative?s+o.y2:o.y2):(e=NaN,r=NaN),o.type&ve.SMOOTH_QUAD_TO?(n=isNaN(n)?a:2*a-n,i=isNaN(i)?s:2*s-i):o.type&ve.QUAD_TO?(n=o.relative?a+o.x1:o.x1,i=o.relative?s+o.y1:o.y2):(n=NaN,i=NaN),o.type&ve.LINE_COMMANDS||o.type&ve.ARC&&(0===o.rX||0===o.rY||!o.lArcFlag)||o.type&ve.CURVE_TO||o.type&ve.SMOOTH_CURVE_TO||o.type&ve.QUAD_TO||o.type&ve.SMOOTH_QUAD_TO){const e=void 0===o.x?0:o.relative?o.x:o.x-a,r=void 0===o.y?0:o.relative?o.y:o.y-s;y=isNaN(n)?void 0===o.x1?y:o.relative?o.x:o.x1-a:n-a,p=isNaN(i)?void 0===o.y1?p:o.relative?o.y:o.y1-s:i-s;const u=void 0===o.x2?0:o.relative?o.x:o.x2-a,c=void 0===o.y2?0:o.relative?o.y:o.y2-s;h(e)<=t&&h(r)<=t&&h(y)<=t&&h(p)<=t&&h(u)<=t&&h(c)<=t&&(l=!0)}return o.type&ve.CLOSE_PATH&&h(a-u)<=t&&h(s-c)<=t&&(l=!0),l?[]:o})}function kr(t,e,r,n,i,o){return Mr(t,e,r,n,i,o),$r((a,s,u,c)=>{const h=a.x1,l=a.x2,y=a.relative&&!isNaN(c),p=void 0!==a.x?a.x:y?0:s,f=void 0!==a.y?a.y:y?0:u;function _(t){return t*t}a.type&ve.HORIZ_LINE_TO&&0!==e&&(a.type=ve.LINE_TO,a.y=a.relative?0:u),a.type&ve.VERT_LINE_TO&&0!==r&&(a.type=ve.LINE_TO,a.x=a.relative?0:s),void 0!==a.x&&(a.x=a.x*t+f*r+(y?0:i)),void 0!==a.y&&(a.y=p*e+a.y*n+(y?0:o)),void 0!==a.x1&&(a.x1=a.x1*t+a.y1*r+(y?0:i)),void 0!==a.y1&&(a.y1=h*e+a.y1*n+(y?0:o)),void 0!==a.x2&&(a.x2=a.x2*t+a.y2*r+(y?0:i)),void 0!==a.y2&&(a.y2=l*e+a.y2*n+(y?0:o));const m=t*n-e*r;if(void 0!==a.xRot&&(1!==t||0!==e||0!==r||1!==n))if(0===m)delete a.rX,delete a.rY,delete a.xRot,delete a.lArcFlag,delete a.sweepFlag,a.type=ve.LINE_TO;else{const i=a.xRot*Math.PI/180,o=Math.sin(i),s=Math.cos(i),u=1/_(a.rX),c=1/_(a.rY),h=_(s)*u+_(o)*c,l=2*o*s*(u-c),y=_(o)*u+_(s)*c,p=h*n*n-l*e*n+y*e*e,f=l*(t*n+e*r)-2*(h*r*n+y*t*e),O=h*r*r-l*t*r+y*t*t,d=(Math.atan2(f,p-O)+Math.PI)%Math.PI/2,v=Math.sin(d),T=Math.cos(d);a.rX=Math.abs(m)/Math.sqrt(p*_(T)+f*v*T+O*_(v)),a.rY=Math.abs(m)/Math.sqrt(p*_(v)-f*v*T+O*_(T)),a.xRot=180*d/Math.PI}return void 0!==a.sweepFlag&&0>m&&(a.sweepFlag=+!a.sweepFlag),a})}function qr(t,e=0,r=0){Mr(t,e,r);const n=Math.sin(t),i=Math.cos(t);return kr(i,n,-n,i,e-e*i+r*n,r-e*n-r*i)}function Br(t,e=0){return Mr(t,e),kr(1,0,0,1,t,e)}function Wr(t,e=t){return Mr(t,e),kr(t,0,0,e,0,0)}function Kr(t){return Mr(t),kr(1,0,Math.tan(t),1,0,0)}function Gr(t){return Mr(t),kr(1,Math.tan(t),0,1,0,0)}function Jr(t=0){return Mr(t),kr(-1,0,0,1,t,0)}function tn(t=0){return Mr(t),kr(1,0,0,-1,0,t)}function en(){return $r((t,e,r)=>ve.ARC===t.type?function(t,e,r){t.cX||Rr(t,e,r);const n=t.xRot/180*le;if(Math.abs(t.rX)<1e-10||Math.abs(t.rY)<1e-10)return[{relative:t.relative,type:ve.CURVE_TO,x1:e+(t.x-e)/3,y1:r+(t.y-r)/3,x2:e+2*(t.x-e)/3,y2:r+2*(t.y-r)/3,x:t.x,y:t.y}];const i=Math.min(t.phi1,t.phi2),o=Math.max(t.phi1,t.phi2)-i,a=Math.ceil(o/90),s=new Array(a);let u=e,c=r;const h=(e,r)=>{const[i,o]=Cr([e*t.rX,r*t.rY],n);return[t.cX+i,t.cY+o]};for(let l=0;l(t.relative&&(e=0,r=0),ve.ARC===t.type&&Rr(t,e,r),t))}function nn(){return t=>({...t})}function on(){const t=t=>({...t}),e=Yr(),r=Qr(),n=Fr(),i=$r((o,a,s)=>{const u=n(r(e(t(o))));function c(t){t>i.maxX&&(i.maxX=t),ti.maxY&&(i.maxY=t),tr&&c(Lr(a,u.x1,u.x2,u.x,r));const e=jr(s,u.y1,u.y2,u.y);for(const r of e)0r&&h(Lr(s,u.y1,u.y2,u.y,r))}if(u.type&ve.ARC){c(u.x),h(u.y),Rr(u,a,s);const t=u.xRot/180*Math.PI,e=Math.cos(t)*u.rX,r=Math.sin(t)*u.rX,n=-Math.sin(t)*u.rY,i=Math.cos(t)*u.rY,[o,l]=u.phi1u.phi2?[u.phi2+360,u.phi1+360]:[u.phi2,u.phi1],y=([t,e])=>{const r=180*Math.atan2(e,t)/Math.PI;return ro&&ao&&a=e?t:e)),t}(Me(t),e,r)},i:Ar,n:function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError(ce);return Ce(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Ar(t,e,{leading:n,maxWait:e,trailing:i})},o:Ee,r:function(t,e){return Nr(t,e)}}),{setters:[],execute:function(){var e,xe;r="object"==typeof global&&global&&global.Object===Object&&global,n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")(),o=i.Symbol,a=Object.prototype,s=a.hasOwnProperty,u=a.toString,c=o?o.toStringTag:void 0,h=Object.prototype.toString,l="[object Null]",y="[object Undefined]",p=o?o.toStringTag:void 0,f="[object Symbol]",_=Array.isArray,m=/\s/,O=/^\s+/,d=NaN,v=/^[-+]0x[0-9a-f]+$/i,T=/^0b[01]+$/i,x=/^0o[0-7]+$/i,b=parseInt,E="[object AsyncFunction]",N="[object Function]",A="[object GeneratorFunction]",g="[object Proxy]",C=i["__core-js_shared__"],e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""),M=e?"Symbol(src)_1."+e:"",R=Function.prototype.toString,w=/[\\^$.*+?()[\]{}|]/g,S=/^\[object .+?Constructor\]$/,I=Function.prototype,j=Object.prototype,L=I.toString,U=j.hasOwnProperty,H=RegExp("^"+L.call(U).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=Ie(i,"WeakMap"),D=9007199254740991,P=/^(?:0|[1-9]\d*)$/,Y=9007199254740991,X=Object.prototype,z="[object Arguments]",F=Object.prototype,Q=F.hasOwnProperty,$=F.propertyIsEnumerable,Z=He(function(){return arguments}())?He:function(t){return Ae(t)&&Q.call(t,"callee")&&!$.call(t,"callee")},k="object"==typeof exports&&exports&&!exports.nodeType&&exports,q=k&&"object"==typeof module&&module&&!module.nodeType&&module,B=q&&q.exports===k?i.Buffer:void 0,W=(B?B.isBuffer:void 0)||Ve,(K={})["[object Float32Array]"]=K["[object Float64Array]"]=K["[object Int8Array]"]=K["[object Int16Array]"]=K["[object Int32Array]"]=K["[object Uint8Array]"]=K["[object Uint8ClampedArray]"]=K["[object Uint16Array]"]=K["[object Uint32Array]"]=!0,K["[object Arguments]"]=K["[object Array]"]=K["[object ArrayBuffer]"]=K["[object Boolean]"]=K["[object DataView]"]=K["[object Date]"]=K["[object Error]"]=K["[object Function]"]=K["[object Map]"]=K["[object Number]"]=K["[object Object]"]=K["[object RegExp]"]=K["[object Set]"]=K["[object String]"]=K["[object WeakMap]"]=!1,G="object"==typeof exports&&exports&&!exports.nodeType&&exports,J=G&&"object"==typeof module&&module&&!module.nodeType&&module,tt=J&&J.exports===G&&r.process,et=function(){try{var t=J&&J.require&&J.require("util").types;return t||tt&&tt.binding&&tt.binding("util")}catch(e){}}(),rt=et&&et.isTypedArray,nt=rt?(xe=rt,function(t){return xe(t)}):De,it=Object.prototype.hasOwnProperty,ot=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),at=Object.prototype.hasOwnProperty,st=Ie(Object,"create"),ut="__lodash_hash_undefined__",ct=Object.prototype.hasOwnProperty,ht=Object.prototype.hasOwnProperty,lt="__lodash_hash_undefined__",ke.prototype.clear=ze,ke.prototype.delete=Fe,ke.prototype.get=Qe,ke.prototype.has=$e,ke.prototype.set=Ze,yt=Array.prototype.splice,tr.prototype.clear=qe,tr.prototype.delete=We,tr.prototype.get=Ke,tr.prototype.has=Ge,tr.prototype.set=Je,pt=Ie(i,"Map"),sr.prototype.clear=er,sr.prototype.delete=nr,sr.prototype.get=ir,sr.prototype.has=or,sr.prototype.set=ar,ft=200,pr.prototype.clear=ur,pr.prototype.delete=cr,pr.prototype.get=hr,pr.prototype.has=lr,pr.prototype.set=yr,_t=Object.prototype.propertyIsEnumerable,mt=Object.getOwnPropertySymbols,Ot=mt?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r" "===t||"\t"===t||"\r"===t||"\n"===t,me=t=>"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0),Oe=class extends fe{constructor(...t){super(...t),Ee(this,"curNumber",""),Ee(this,"curCommandType",-1),Ee(this,"curCommandRelative",!1),Ee(this,"canParseCommandOrComma",!0),Ee(this,"curNumberHasExp",!1),Ee(this,"curNumberHasExpDigits",!1),Ee(this,"curNumberHasDecimal",!1),Ee(this,"curArgs",[])}finish(t=[]){if(this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t}parse(t,e=[]){const r=t=>{e.push(t),this.curArgs.length=0,this.canParseCommandOrComma=!0};for(let n=0;nt)throw new SyntaxError(`Expected positive number, got "${t}" at index "${n}"`)}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError(`Expected a flag, got "${this.curNumber}" at index "${n}"`);this.curArgs.push(t),this.curArgs.length===Te[this.curCommandType]&&(ve.HORIZ_LINE_TO===this.curCommandType?r({type:ve.HORIZ_LINE_TO,relative:this.curCommandRelative,x:t}):ve.VERT_LINE_TO===this.curCommandType?r({type:ve.VERT_LINE_TO,relative:this.curCommandRelative,y:t}):this.curCommandType===ve.MOVE_TO||this.curCommandType===ve.LINE_TO||this.curCommandType===ve.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),ve.MOVE_TO===this.curCommandType&&(this.curCommandType=ve.LINE_TO)):this.curCommandType===ve.CURVE_TO?r({type:ve.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===ve.SMOOTH_CURVE_TO?r({type:ve.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ve.QUAD_TO?r({type:ve.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ve.ARC&&r({type:ve.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!_e(i))if(","===i&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==i&&"-"!==i&&"."!==i)if(a)this.curNumber=i,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError(`Unterminated command at index ${n}.`);if(!this.canParseCommandOrComma)throw new SyntaxError(`Unexpected character "${i}" at index ${n}. Command cannot follow comma`);if(this.canParseCommandOrComma=!1,"z"!==i&&"Z"!==i)if("h"===i||"H"===i)this.curCommandType=ve.HORIZ_LINE_TO,this.curCommandRelative="h"===i;else if("v"===i||"V"===i)this.curCommandType=ve.VERT_LINE_TO,this.curCommandRelative="v"===i;else if("m"===i||"M"===i)this.curCommandType=ve.MOVE_TO,this.curCommandRelative="m"===i;else if("l"===i||"L"===i)this.curCommandType=ve.LINE_TO,this.curCommandRelative="l"===i;else if("c"===i||"C"===i)this.curCommandType=ve.CURVE_TO,this.curCommandRelative="c"===i;else if("s"===i||"S"===i)this.curCommandType=ve.SMOOTH_CURVE_TO,this.curCommandRelative="s"===i;else if("q"===i||"Q"===i)this.curCommandType=ve.QUAD_TO,this.curCommandRelative="q"===i;else if("t"===i||"T"===i)this.curCommandType=ve.SMOOTH_QUAD_TO,this.curCommandRelative="t"===i;else{if("a"!==i&&"A"!==i)throw new SyntaxError(`Unexpected character "${i}" at index ${n}.`);this.curCommandType=ve.ARC,this.curCommandRelative="a"===i}else e.push({type:ve.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=i,this.curNumberHasDecimal="."===i}else this.curNumber+=i,this.curNumberHasDecimal=!0;else this.curNumber+=i;else this.curNumber+=i,this.curNumberHasExp=!0;else this.curNumber+=i,this.curNumberHasExpDigits=this.curNumberHasExp}return e}transform(t){return Object.create(this,{parse:{value(e,r=[]){const n=Object.getPrototypeOf(this).parse.call(this,e);for(const i of n){const e=t(i);Array.isArray(e)?r.push(...e):r.push(e)}return r}}})}},t("t",ve=class t extends fe{constructor(e){super(),Ee(this,"commands",void 0),this.commands="string"==typeof e?t.parse(e):e}encode(){return t.encode(this.commands)}getBounds(){const t=pe.CALCULATE_BOUNDS();return this.transform(t),t}transform(t){const e=[];for(const r of this.commands){const n=t(r);Array.isArray(n)?e.push(...n):e.push(n)}return this.commands=e,this}reverse(t=!0){return this.commands=pe.REVERSE_PATH(this.commands,t),this}removeCollinear(){return this.commands=pe.REMOVE_COLLINEAR(this.commands),this}static encode(t){return gr(t)}static parse(t){const e=new Oe,r=[];return e.parse(t,r),e.finish(r),r}}),de=ve,Ee(ve,"CLOSE_PATH",1),Ee(ve,"MOVE_TO",2),Ee(ve,"HORIZ_LINE_TO",4),Ee(ve,"VERT_LINE_TO",8),Ee(ve,"LINE_TO",16),Ee(ve,"CURVE_TO",32),Ee(ve,"SMOOTH_CURVE_TO",64),Ee(ve,"QUAD_TO",128),Ee(ve,"SMOOTH_QUAD_TO",256),Ee(ve,"ARC",512),Ee(ve,"LINE_COMMANDS",de.LINE_TO|de.HORIZ_LINE_TO|de.VERT_LINE_TO),Ee(ve,"DRAWING_COMMANDS",de.HORIZ_LINE_TO|de.VERT_LINE_TO|de.LINE_TO|de.CURVE_TO|de.SMOOTH_CURVE_TO|de.QUAD_TO|de.SMOOTH_QUAD_TO|de.ARC),Te={[ve.MOVE_TO]:2,[ve.LINE_TO]:2,[ve.HORIZ_LINE_TO]:1,[ve.VERT_LINE_TO]:1,[ve.CLOSE_PATH]:0,[ve.QUAD_TO]:4,[ve.SMOOTH_QUAD_TO]:2,[ve.CURVE_TO]:6,[ve.SMOOTH_CURVE_TO]:4,[ve.ARC]:7}}}});