0&&t.stroke()}}function pe(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xwindow.getComputedStyle(t,null);function wn(t,e){return On(t).getPropertyValue(e)}const jn=["top","right","bottom","left"];function kn(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=jn[i];r[o]=parseFloat(t[e+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Sn=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function Mn(t,e){const n=t.native||t,r=n.touches,i=r&&r.length?r[0]:n,{offsetX:o,offsetY:s}=i;let a,c,l=!1;if(Sn(o,s,n.target))a=o,c=s;else{const t=e.getBoundingClientRect();a=i.clientX-t.left,c=i.clientY-t.top,l=!0}return{x:a,y:c,box:l}}function Cn(t,e){const{canvas:n,currentDevicePixelRatio:r}=e,i=On(n),o="border-box"===i.boxSizing,s=kn(i,"padding"),a=kn(i,"border","width"),{x:c,y:l,box:u}=Mn(t,n),h=s.left+(u&&a.left),f=s.top+(u&&a.top);let{width:d,height:p}=e;return o&&(d-=s.width+a.width,p-=s.height+a.height),{x:Math.round((c-h)/d*n.width/r),y:Math.round((l-f)/p*n.height/r)}}function Pn(t,e,n){let r,i;if(void 0===e||void 0===n){const o=xn(t);if(o){const t=o.getBoundingClientRect(),s=On(o),a=kn(s,"border","width"),c=kn(s,"padding");e=t.width-c.width-a.width,n=t.height-c.height-a.height,r=_n(s.maxWidth,o,"clientWidth"),i=_n(s.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||W,maxHeight:i||W}}const Tn=t=>Math.round(10*t)/10;function En(t,e,n,r){const i=On(t),o=kn(i,"margin"),s=_n(i.maxWidth,t,"clientWidth")||W,a=_n(i.maxHeight,t,"clientHeight")||W,c=Pn(t,e,n);let{width:l,height:u}=c;if("content-box"===i.boxSizing){const t=kn(i,"border","width"),e=kn(i,"padding");l-=e.width+t.width,u-=e.height+t.height}return l=Math.max(0,l-o.width),u=Math.max(0,r?Math.floor(l/r):u-o.height),l=Tn(Math.min(l,s,c.maxWidth)),u=Tn(Math.min(u,a,c.maxHeight)),l&&!u&&(u=Tn(l/2)),{width:l,height:u}}function Dn(t,e,n){const r=e||1,i=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=i/r,t.width=o/r;const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=t.height+"px",s.style.width=t.width+"px"),(t.currentDevicePixelRatio!==r||s.height!==i||s.width!==o)&&(t.currentDevicePixelRatio=r,s.height=i,s.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0)}const An=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function Ln(t,e){const n=wn(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Rn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function Fn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function In(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},s=Rn(t,i,n),a=Rn(i,o,n),c=Rn(o,e,n),l=Rn(s,a,n),u=Rn(a,c,n);return Rn(l,u,n)}const Nn=new Map;function Wn(t,e){e=e||{};const n=t+JSON.stringify(e);let r=Nn.get(n);return r||(r=new Intl.NumberFormat(t,e),Nn.set(n,r)),r}function zn(t,e,n){return Wn(e,n).format(t)}const Bn=function(t,e){return{x(n){return t+t+e-n},setWidth(t){e=t},textAlign(t){return"center"===t?t:"right"===t?"left":"right"},xPlus(t,e){return t-e},leftForLtr(t,e){return t-e}}},Vn=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Hn(t,e,n){return t?Bn(e,n):Vn()}function Un(t,e){let n,r;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function $n(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Yn(t){return"angle"===t?{between:ot,compare:rt,normalize:it}:{between:(t,e,n)=>t>=Math.min(e,n)&&t<=Math.max(n,e),compare:(t,e)=>t-e,normalize:t=>t}}function qn({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:i}}function Gn(t,e,n){const{property:r,start:i,end:o}=n,{between:s,normalize:a}=Yn(r),c=e.length;let l,u,{start:h,end:f,loop:d}=t;if(d){for(h+=c,f+=c,l=0,u=c;lc(i,m,b)&&0!==a(i,m),_=()=>0===a(o,b)||c(o,m,b),O=()=>v||x(),w=()=>!v||_();for(let j=u,k=u;j<=h;++j)g=e[j%s],g.skip||(b=l(g[r]),b!==m&&(v=c(b,i,o),null===y&&O()&&(y=0===a(b,i)?j:k),null!==y&&w()&&(p.push(qn({start:y,end:j,loop:f,count:s,style:d})),y=null),k=j,m=b));return null!==y&&p.push(qn({start:y,end:h,loop:f,count:s,style:d})),p}function Jn(t,e){const n=[],r=t.segments;for(let i=0;i=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,s=t.length-1;s>=0;--s){var a=t.charCodeAt(s);if(47!==a)-1===r&&(i=!1,r=s+1),46===a?-1===e?e=s:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=s+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e163:function(t,e,n){var r=n("da84"),i=n("1a2d"),o=n("1626"),s=n("7b0b"),a=n("f772"),c=n("e177"),l=a("IE_PROTO"),u=r.Object,h=u.prototype;t.exports=c?u.getPrototypeOf:function(t){var e=s(t);if(i(e,l))return e[l];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof u?h:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),s=n("69f3"),a=n("7dd0"),c="Array Iterator",l=s.set,u=s.getterFor(c);t.exports=a(Array,"Array",(function(t,e){l(this,{type:c,target:r(t),index:0,kind:e})}),(function(){var t=u(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e330:function(t,e){var n=Function.prototype,r=n.bind,i=n.call,o=r&&r.bind(i);t.exports=r?function(t){return t&&o(i,t)}:function(t){return t&&function(){return i.apply(t,arguments)}}},e439:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),s=n("06cf").f,a=n("83ab"),c=i((function(){s(1)})),l=!a||c;r({target:"Object",stat:!0,forced:l,sham:!a},{getOwnPropertyDescriptor:function(t,e){return s(o(t),e)}})},e538:function(t,e,n){var r=n("b622");e.f=r},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6cf:function(t,e,n){"use strict";var r,i,o,s,a=n("23e7"),c=n("c430"),l=n("da84"),u=n("d066"),h=n("c65b"),f=n("fea9"),d=n("6eeb"),p=n("e2cc"),b=n("d2bb"),g=n("d44e"),m=n("2626"),v=n("59ed"),y=n("1626"),x=n("861d"),_=n("19aa"),O=n("8925"),w=n("2266"),j=n("1c7e"),k=n("4840"),S=n("2cf4").set,M=n("b575"),C=n("cdf9"),P=n("44de"),T=n("f069"),E=n("e667"),D=n("69f3"),A=n("94ca"),L=n("b622"),R=n("6069"),F=n("605d"),I=n("2d00"),N=L("species"),W="Promise",z=D.get,B=D.set,V=D.getterFor(W),H=f&&f.prototype,U=f,$=H,Y=l.TypeError,q=l.document,G=l.process,X=T.f,J=X,Q=!!(q&&q.createEvent&&l.dispatchEvent),K=y(l.PromiseRejectionEvent),Z="unhandledrejection",tt="rejectionhandled",et=0,nt=1,rt=2,it=1,ot=2,st=!1,at=A(W,(function(){var t=O(U),e=t!==String(U);if(!e&&66===I)return!0;if(c&&!$["finally"])return!0;if(I>=51&&/native code/.test(t))return!1;var n=new U((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))},i=n.constructor={};return i[N]=r,st=n.then((function(){}))instanceof r,!st||!e&&R&&!K})),ct=at||!j((function(t){U.all(t)["catch"]((function(){}))})),lt=function(t){var e;return!(!x(t)||!y(e=t.then))&&e},ut=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;M((function(){var r=t.value,i=t.state==nt,o=0;while(n.length>o){var s,a,c,l=n[o++],u=i?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{u?(i||(t.rejection===ot&&pt(t),t.rejection=it),!0===u?s=r:(p&&p.enter(),s=u(r),p&&(p.exit(),c=!0)),s===l.promise?d(Y("Promise-chain cycle")):(a=lt(s))?h(a,s,f,d):f(s)):d(r)}catch(b){p&&!c&&p.exit(),d(b)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ft(t)}))}},ht=function(t,e,n){var r,i;Q?(r=q.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},!K&&(i=l["on"+t])?i(r):t===Z&&P("Unhandled promise rejection",n)},ft=function(t){h(S,l,(function(){var e,n=t.facade,r=t.value,i=dt(t);if(i&&(e=E((function(){F?G.emit("unhandledRejection",r,n):ht(Z,n,r)})),t.rejection=F||dt(t)?ot:it,e.error))throw e.value}))},dt=function(t){return t.rejection!==it&&!t.parent},pt=function(t){h(S,l,(function(){var e=t.facade;F?G.emit("rejectionHandled",e):ht(tt,e,t.value)}))},bt=function(t,e,n){return function(r){t(e,r,n)}},gt=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=rt,ut(t,!0))},mt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Y("Promise can't be resolved itself");var r=lt(e);r?M((function(){var n={done:!1};try{h(r,e,bt(mt,n,t),bt(gt,n,t))}catch(i){gt(n,i,t)}})):(t.value=e,t.state=nt,ut(t,!1))}catch(i){gt({done:!1},i,t)}}};if(at&&(U=function(t){_(this,$),v(t),h(r,this);var e=z(this);try{t(bt(mt,e),bt(gt,e))}catch(n){gt(e,n)}},$=U.prototype,r=function(t){B(this,{type:W,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:et,value:void 0})},r.prototype=p($,{then:function(t,e){var n=V(this),r=n.reactions,i=X(k(this,U));return i.ok=!y(t)||t,i.fail=y(e)&&e,i.domain=F?G.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=et&&ut(n,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=z(t);this.promise=t,this.resolve=bt(mt,e),this.reject=bt(gt,e)},T.f=X=function(t){return t===U||t===o?new i(t):J(t)},!c&&y(f)&&H!==Object.prototype)){s=H.then,st||(d(H,"then",(function(t,e){var n=this;return new U((function(t,e){h(s,n,t,e)})).then(t,e)}),{unsafe:!0}),d(H,"catch",$["catch"],{unsafe:!0}));try{delete H.constructor}catch(vt){}b&&b(H,$)}a({global:!0,wrap:!0,forced:at},{Promise:U}),g(U,W,!1,!0),m(W),o=u(W),a({target:W,stat:!0,forced:at},{reject:function(t){var e=X(this);return h(e.reject,void 0,t),e.promise}}),a({target:W,stat:!0,forced:c||at},{resolve:function(t){return C(c&&this===o?U:this,t)}}),a({target:W,stat:!0,forced:ct},{all:function(t){var e=this,n=X(e),r=n.resolve,i=n.reject,o=E((function(){var n=v(e.resolve),o=[],s=0,a=1;w(t,(function(t){var c=s++,l=!1;a++,h(n,e,t).then((function(t){l||(l=!0,o[c]=t,--a||r(o))}),i)})),--a||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=X(e),r=n.reject,i=E((function(){var i=v(e.resolve);w(t,(function(t){h(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e893:function(t,e,n){var r=n("1a2d"),i=n("56ef"),o=n("06cf"),s=n("9bf2");t.exports=function(t,e){for(var n=i(e),a=s.f,c=o.f,l=0;l