1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="3ec994cd-d31e-46be-bb34-b4940d34ac1c",t._sentryDebugIdIdentifier="sentry-dbid-3ec994cd-d31e-46be-bb34-b4940d34ac1c")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6086],{26894:(t,e,n)=>{"use strict";n.d(e,{E8:()=>i.E8,FN:()=>i.FN,No:()=>i.No,PP:()=>i.PP,UA:()=>i.UA,dN:()=>i.dN,hE:()=>i.hE,kc:()=>i.kc,m_:()=>i.m_,s$:()=>i.s$,t1:()=>i.t1});var i=n(52576);i.t1.register(...i.$L)},31910:(t,e,n)=>{"use strict";n.d(e,{A:()=>tF});var i=n(52576),o=n(16929);let r={modes:{point:(t,e)=>s(t,e,{intersect:!0}),nearest:(t,e,n)=>(function(t,e,n){let i=Number.POSITIVE_INFINITY;return s(t,e,n).reduce((t,r)=>{var a;let s=r.getCenterPoint(),l="x"===(a=n.axis)?{x:e.x,y:s.y}:"y"===a?{x:s.x,y:e.y}:s,c=(0,o.aE)(e,l);return c<i?(t=[r],i=c):c===i&&t.push(r),t},[]).sort((t,e)=>t._index-e._index).slice(0,1)})(t,e,n),x:(t,e,n)=>s(t,e,{intersect:n.intersect,axis:"x"}),y:(t,e,n)=>s(t,e,{intersect:n.intersect,axis:"y"})}};function a(t,e,n){return(r.modes[n.mode]||r.modes.nearest)(t,e,n)}function s(t,e,n){return t.filter(t=>{var i;return n.intersect?t.inRange(e.x,e.y):"x"!==(i=n.axis)&&"y"!==i?t.inRange(e.x,e.y,"x",!0)||t.inRange(e.x,e.y,"y",!0):t.inRange(e.x,e.y,i,!0)})}function l(t,e,n){let i=Math.cos(n),o=Math.sin(n),r=e.x,a=e.y;return{x:r+i*(t.x-r)-o*(t.y-a),y:a+o*(t.x-r)+i*(t.y-a)}}let c=(t,e)=>e>t||t.length>e.length&&t.slice(0,e.length)===e,h=(t,e,n)=>Math.min(n,Math.max(e,t)),d=(t,e)=>t.value>=t.start-e&&t.value<=t.end+e;function u(t,{x:e,y:n,x2:i,y2:o},r,{borderWidth:a,hitTolerance:s}){let l=(a+s)/2,c=t.x>=e-l-.001&&t.x<=i+l+.001,h=t.y>=n-l-.001&&t.y<=o+l+.001;return"x"===r?c:"y"===r?h:c&&h}function p(t,{rect:e,center:n},i,{rotation:r,borderWidth:a,hitTolerance:s}){return u(l(t,n,(0,o.t)(-r)),e,i,{borderWidth:a,hitTolerance:s})}function f(t,e){let{centerX:n,centerY:i}=t.getProps(["centerX","centerY"],e);return{x:n,y:i}}let g=t=>"string"==typeof t&&t.endsWith("%"),m=t=>parseFloat(t)/100,v=t=>h(m(t),0,1),x=(t,e)=>({x:t,y:e,x2:t,y2:e,width:0,height:0}),y={box:t=>x(t.centerX,t.centerY),doughnutLabel:t=>x(t.centerX,t.centerY),ellipse:t=>({centerX:t.centerX,centerY:t.centerX,radius:0,width:0,height:0}),label:t=>x(t.centerX,t.centerY),line:t=>x(t.x,t.y),point:t=>({centerX:t.centerX,centerY:t.centerY,radius:0,width:0,height:0}),polygon:t=>x(t.centerX,t.centerY)};function b(t,e){return"start"===e?0:"end"===e?t:g(e)?v(e)*t:t/2}function w(t,e,n=!0){return"number"==typeof e?e:g(e)?(n?v(e):m(e))*t:t}function M(t,e,{borderWidth:n,position:i,xAdjust:r,yAdjust:a},s){let l=(0,o.i)(s),c=e.width+(l?s.width:0)+n,h=e.height+(l?s.height:0)+n,d=T(i),u=k(t.x,c,r,d.x),p=k(t.y,h,a,d.y);return{x:u,y:p,x2:u+c,y2:p+h,width:c,height:h,centerX:u+c/2,centerY:p+h/2}}function T(t,e="center"){return(0,o.i)(t)?{x:(0,o.v)(t.x,e),y:(0,o.v)(t.y,e)}:{x:t=(0,o.v)(t,e),y:t}}let S=(t,e)=>t&&t.autoFit&&e<1;function P(t,e){let n=t.font,i=(0,o.b)(n)?n:[n];return S(t,e)?i.map(function(t){let n=(0,o.a0)(t);return n.size=Math.floor(t.size*e),n.lineHeight=t.lineHeight,(0,o.a0)(n)}):i.map(t=>(0,o.a0)(t))}function E(t){return t&&((0,o.h)(t.xValue)||(0,o.h)(t.yValue))}function k(t,e,n=0,i){return t-b(e,i)+n}function C(t,e,n){let i=n.init;return i?!0===i?O(e,n):function(t,e,n){let i=(0,o.Q)(n.init,[{chart:t,properties:e,options:n}]);return!0===i?O(e,n):(0,o.i)(i)?i:void 0}(t,e,n):void 0}function D(t,e,n){let i=!1;return e.forEach(e=>{(0,o.a7)(t[e])?(i=!0,n[e]=t[e]):(0,o.h)(n[e])&&delete n[e]}),i}function O(t,e){return y[e.type||"line"](t)}let A=new Map,z=t=>isNaN(t)||t<=0,I=t=>t.reduce(function(t,e){return t+e.string},"");function R(t){if(t&&"object"==typeof t){let e=t.toString();return"[object HTMLImageElement]"===e||"[object HTMLCanvasElement]"===e}}function X(t,{x:e,y:n},i){i&&(t.translate(e,n),t.rotate((0,o.t)(i)),t.translate(-e,-n))}function _(t,e){if(e&&e.borderWidth)return t.lineCap=e.borderCapStyle||"butt",t.setLineDash(e.borderDash),t.lineDashOffset=e.borderDashOffset,t.lineJoin=e.borderJoinStyle||"miter",t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor,!0}function Y(t,e){t.shadowColor=e.backgroundShadowColor,t.shadowBlur=e.shadowBlur,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY}function j(t,e){let n=e.content;if(R(n))return{width:w(n.width,e.width),height:w(n.height,e.height)};let i=P(e),r=e.textStrokeWidth,a=(0,o.b)(n)?n:[n],s=a.join()+I(i)+r+(t._measureText?"-spriting":"");return A.has(s)||A.set(s,function(t,e,n,i){t.save();let o=e.length,r=0,a=i;for(let s=0;s<o;s++){let o=n[Math.min(s,n.length-1)];t.font=o.string;let l=e[s];r=Math.max(r,t.measureText(l).width+i),a+=o.lineHeight}
1return t.restore(),{width:r,height:a}}(t,a,i,r)),A.get(s)}function N(t,e,n){let{x:i,y:r,width:a,height:s}=e;t.save(),Y(t,n);let l=_(t,n);t.fillStyle=n.backgroundColor,t.beginPath(),(0,o.au)(t,{x:i,y:r,w:a,h:s,radius:function(t,e,n){for(let e of Object.keys(t))t[e]=h(t[e],0,n);return t}((0,o.aw)(n.borderRadius),0,Math.min(a,s)/2)}),t.closePath(),t.fill(),l&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore()}function W(t,e,n,i){let r=n.content;if(R(r)){t.save(),t.globalAlpha=function(t,e){let n=(0,o.x)(t)?t:e;return(0,o.x)(n)?h(n,0,1):1}(n.opacity,r.style.opacity),t.drawImage(r,e.x,e.y,e.width,e.height),t.restore();return}let a=(0,o.b)(r)?r:[r],s=P(n,i),l=n.color,c=(0,o.b)(l)?l:[l],d=function(t,e){let{x:n,width:i}=t,o=e.textAlign;return"center"===o?n+i/2:"end"===o||"right"===o?n+i:n}(e,n),u=e.y+n.textStrokeWidth/2;t.save(),t.textBaseline="middle",t.textAlign=n.textAlign,function(t,e){if(e.textStrokeWidth>0)return t.lineJoin="round",t.miterLimit=2,t.lineWidth=e.textStrokeWidth,t.strokeStyle=e.textStrokeColor,!0}(t,n)&&function(t,{x:e,y:n},i,o){t.beginPath();let r=0;i.forEach(function(i,a){let s=o[Math.min(a,o.length-1)],l=s.lineHeight;t.font=s.string,t.strokeText(i,e,n+l/2+r),r+=l}),t.stroke()}(t,{x:d,y:u},a,s),function(t,{x:e,y:n},i,{fonts:o,colors:r}){let a=0;i.forEach(function(i,s){let l=r[Math.min(s,r.length-1)],c=o[Math.min(s,o.length-1)],h=c.lineHeight;t.beginPath(),t.font=c.string,t.fillStyle=l,t.fillText(i,e,n+h/2+a),a+=h,t.fill()})}(t,{x:d,y:u},a,{fonts:s,colors:c}),t.restore()}let H=["left","bottom","top","right"],V={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function F(t,e,n){return e="number"==typeof e?e:t.parse(e),(0,o.g)(e)?t.getPixelForValue(e):n}function L(t,e,n){let i=e[n];if(i||"scaleID"===n)return i;let o=n.charAt(0),r=Object.values(t).filter(t=>t.axis&&t.axis===o);return r.length?r[0].id:o}function Z(t,e){if(t){let n=t.options.reverse;return{start:F(t,e.min,n?e.end:e.start),end:F(t,e.max,n?e.start:e.end)}}}function q(t,e){let{chartArea:n,scales:i}=t,o=i[L(i,e,"xScaleID")],r=i[L(i,e,"yScaleID")],a=n.width/2,s=n.height/2;return o&&(a=F(o,e.xValue,o.left+o.width/2)),r&&(s=F(r,e.yValue,r.top+r.height/2)),{x:a,y:s}}function B(t,e){let n=t.scales,i=n[L(n,e,"xScaleID")],o=n[L(n,e,"yScaleID")];if(!i&&!o)return{};let{left:r,right:a}=i||t.chartArea,{top:s,bottom:l}=o||t.chartArea,c=$(i,{min:e.xMin,max:e.xMax,start:r,end:a});r=c.start,a=c.end;let h=$(o,{min:e.yMin,max:e.yMax,start:l,end:s});return{x:r,y:s=h.start,x2:a,y2:l=h.end,width:a-r,height:l-s,centerX:r+(a-r)/2,centerY:s+(l-s)/2}}function Q(t,e){if(!E(e)){let n=B(t,e),i=e.radius;(!i||isNaN(i))&&(e.radius=i=Math.min(n.width,n.height)/2);let o=2*i,r=n.centerX+e.xAdjust,a=n.centerY+e.yAdjust;return{x:r-i,y:a-i,x2:r+i,y2:a+i,centerX:r,centerY:a,width:o,height:o,radius:i}}var n=t,i=e;let o=q(n,i),r=2*i.radius;return{x:o.x-i.radius+i.xAdjust,y:o.y-i.radius+i.yAdjust,x2:o.x+i.radius+i.xAdjust,y2:o.y+i.radius+i.yAdjust,centerX:o.x+i.xAdjust,centerY:o.y+i.yAdjust,radius:i.radius,width:r,height:r}}function U(t,e){let n=B(t,e);return n.initProperties=C(t,n,e),n.elements=[{type:"label",optionScope:"label",properties:function(t,e,n){let i=n.label;i.backgroundColor="transparent",i.callout.display=!1;let r=T(i.position),a=(0,o.E)(i.padding),s=j(t.ctx,i),l=function({properties:t,options:e},n,i,o){let{x:r,x2:a,width:s}=t;return J({start:r,end:a,size:s,borderWidth:e.borderWidth},{position:i.x,padding:{start:o.left,end:o.right},adjust:e.label.xAdjust,size:n.width})}({properties:e,options:n},s,r,a),c=function({properties:t,options:e},n,i,o){let{y:r,y2:a,height:s}=t;return J({start:r,end:a,size:s,borderWidth:e.borderWidth},{position:i.y,padding:{start:o.top,end:o.bottom},adjust:e.label.yAdjust,size:n.height})}({properties:e,options:n},s,r,a),h=s.width+a.width,d=s.height+a.height;return{x:l,y:c,x2:l+h,y2:c+d,width:h,height:d,centerX:l+h/2,centerY:c+d/2,rotation:i.rotation}}(t,n,e),initProperties:n.initProperties}],n}function $(t,e){let n=Z(t,e)||e;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function J(t,e){let{start:n,end:i,borderWidth:o}=t,{position:r,padding:{start:a,end:s}
1,adjust:l}=e,c=i-o-n-a-s-e.size;return n+o/2+l+b(c,r)}let G=["enter","leave"],K=G.concat("click");function tt({state:t,event:e},n,i,o){let r;for(let a of i)0>o.indexOf(a)&&(r=te(a.options[n]||t.listeners[n],a,e)||r);return r}function te(t,e,n){return!0===(0,o.Q)(t,[e.$context,n])}let tn=["afterDraw","beforeDraw"];function ti(t,e,n){if(t.hooked){let i=e.options[n]||t.hooks[n];return(0,o.Q)(i,[e.$context])}}function to(t,e,n,i){var r,a,s;if((0,o.g)(e[n])&&(r=t.options,a=n,s=i,!((0,o.h)(r[a])||(0,o.h)(r[s])))){let i=t[n]!==e[n];return t[n]=e[n],i}}function tr(t,e,n,i){for(let r of n){let n=t[r];if((0,o.h)(n)){let t=e.parse(n);i.min=Math.min(i.min,t),i.max=Math.max(i.max,t)}}}class ta extends i.Hg{inRange(t,e,n,i){let{x:r,y:a}=l({x:t,y:e},this.getCenterPoint(i),(0,o.t)(-this.options.rotation));return u({x:r,y:a},this.getProps(["x","y","x2","y2"],i),n,this.options)}getCenterPoint(t){return f(this,t)}draw(t){t.save(),X(t,this.getCenterPoint(),this.options.rotation),N(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return U(t,e)}}ta.id="boxAnnotation",ta.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,hitTolerance:0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},ta.defaultRoutes={borderColor:"color",backgroundColor:"color"},ta.descriptors={label:{_fallback:!0}};class ts extends i.Hg{inRange(t,e,n,i){return p({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],i),center:this.getCenterPoint(i)},n,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return f(this,t)}draw(t){let e=this.options;e.display&&e.content&&(function(t,e){let{_centerX:n,_centerY:i,_radius:o,_startAngle:r,_endAngle:a,_counterclockwise:s,options:l}=e;t.save();let c=_(t,l);t.fillStyle=l.backgroundColor,t.beginPath(),t.arc(n,i,o,r,a,s),t.closePath(),t.fill(),c&&t.stroke(),t.restore()}(t,this),t.save(),X(t,this.getCenterPoint(),this.rotation),W(t,this,e,this._fitRatio),t.restore())}resolveElementProperties(t,e){var n,r;let a=(n=t,r=e,n.getSortedVisibleDatasetMetas().reduce(function(t,e){let o=e.controller;return o instanceof i.ju&&function(t,e,n){if(!e.autoHide)return!0;for(let e=0;e<n.length;e++)if(!n[e].hidden&&t.getDataVisibility(e))return!0}(n,r,e.data)&&(!t||o.innerRadius<t.controller.innerRadius)&&o.options.circumference>=90?e:t},void 0));if(!a)return{};let{controllerMeta:s,point:l,radius:c}=function({chartArea:t},e,n){let{left:i,top:r,right:a,bottom:s}=t,{innerRadius:l,offsetX:c,offsetY:h}=n.controller,d=(i+a)/2+c,u=(r+s)/2+h,p={left:Math.max(d-l,i),right:Math.min(d+l,a),top:Math.max(u-l,r),bottom:Math.min(u+l,s)},f={x:(p.left+p.right)/2,y:(p.top+p.bottom)/2},g=e.spacing+e.borderWidth/2,m=l-g,v=f.y>u,x=function(t,e,n,i){let r=-2*e,a=Math.pow(r,2)-4*(Math.pow(e,2)+Math.pow(n-t,2)-Math.pow(i,2));if(a<=0)return{_startAngle:0,_endAngle:o.T};let s=(-r-Math.sqrt(a))/2,l=(-r+Math.sqrt(a))/2;return{_startAngle:(0,o.D)({x:e,y:n},{x:s,y:t}).angle,_endAngle:(0,o.D)({x:e,y:n},{x:l,y:t}).angle}}(v?r+g:s-g,d,u,m);return{controllerMeta:{_centerX:d,_centerY:u,_radius:m,_counterclockwise:v,...x},point:f,radius:Math.min(l,Math.min(p.right-p.left,p.bottom-p.top)/2)}}(t,e,a),h=j(t.ctx,e),d=function({width:t,height:e},n){return 2*n/Math.sqrt(Math.pow(t,2)+Math.pow(e,2))}(h,c);S(e,d)&&(h={width:h.width*d,height:h.height*d});let{position:u,xAdjust:p,yAdjust:f}=e,g=M(l,h,{borderWidth:0,position:u,xAdjust:p,yAdjust:f});return{initProperties:C(t,g,e),...g,...s,rotation:e.rotation,_fitRatio:d}}}ts.id="doughnutLabelAnnotation",ts.defaults={autoFit:!0,autoHide:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderColor:"transparent",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:0,color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,spacing:1,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0},ts.defaultRoutes={};class tl extends i.Hg{inRange(t,e,n,i){return p({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],i),center:this.getCenterPoint(i)},n,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return f(this,t)}draw(t){let e=this.options,n=!(0,o.h)(this._visible)||this._visible;e.display&&e.content&&n&&(t.save(),X(t,this.getCenterPoint(),this.rotation),function(t,e){let{pointX:n,pointY:i,options:r}=e,a=r.callout,s=a&&a.display&&function(t,e){let n=e.position;return H.includes(n)?n:function(t,e){let{x:n,y:i,x2:r,y2:a,width:s,height:c,pointX:h,pointY:d,centerX:u,centerY:p,rotation:f}=t,g={x:u,y:p},m=e.start,v=w(s,m),x=w(c,m),y=[n,n+v,n+v,r],b=[i+x,a,i,a],M=[];for(let t=0;t<4;t++){let e=l({x:y[t],y:b[t]},g,(0,o.t)(f));M.push({position:H[t],distance:(0,o.aE)(e,{x:h,y:d})})}return M.sort((t,e)=>t.distance-e.distance)[0].position}(t,e)}(e,a);if(!s||function(t,e,n){let{pointX:i,pointY:o}=t,r=e.margin,a=i,s=o;return"left"===n?a+=r:"right"===n?a-=r:"top"===n?s+=r:"bottom"===n&&(s-=r),t.inRange(a,s)}(e,a,s))return;
1if(t.save(),t.beginPath(),!_(t,a))return t.restore();let{separatorStart:c,separatorEnd:h}=function(t,e){let n,i,{x:o,y:r,x2:a,y2:s}=t,l=function(t,e){let{width:n,height:i,options:o}=t,r=o.callout.margin+o.borderWidth/2;return"right"===e?n+r:"bottom"===e?i+r:-r}(t,e);return i="left"===e||"right"===e?{x:(n={x:o+l,y:r}).x,y:s}:{x:a,y:(n={x:o,y:r+l}).y},{separatorStart:n,separatorEnd:i}}(e,s),{sideStart:d,sideEnd:u}=function(t,e,n){let i,o,{y:r,width:a,height:s,options:l}=t,c=l.callout.start,h=function(t,e){let n=e.side;return"left"===t||"top"===t?-n:n}(e,l.callout);return o="left"===e||"right"===e?{x:(i={x:n.x,y:r+w(s,c)}).x+h,y:i.y}:{x:(i={x:n.x+w(a,c),y:n.y}).x,y:i.y+h},{sideStart:i,sideEnd:o}}(e,s,c);(a.margin>0||0===r.borderWidth)&&(t.moveTo(c.x,c.y),t.lineTo(h.x,h.y)),t.moveTo(d.x,d.y),t.lineTo(u.x,u.y);let p=l({x:n,y:i},e.getCenterPoint(),(0,o.t)(-e.rotation));t.lineTo(p.x,p.y),t.stroke(),t.restore()}(t,this),N(t,this,e),W(t,function({x:t,y:e,width:n,height:i,options:r}){let a=r.borderWidth/2,s=(0,o.E)(r.padding);return{x:t+s.left+a,y:e+s.top+a,width:n-s.left-s.right-r.borderWidth,height:i-s.top-s.bottom-r.borderWidth}}(this),e),t.restore())}resolveElementProperties(t,e){let n;if(E(e))n=q(t,e);else{let{centerX:i,centerY:o}=B(t,e);n={x:i,y:o}}let i=(0,o.E)(e.padding),r=M(n,j(t.ctx,e),e,i);return{initProperties:C(t,r,e),pointX:n.x,pointY:n.y,...r,rotation:e.rotation}}}tl.id="labelAnnotation",tl.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},tl.defaultRoutes={borderColor:"color"};let tc=(t,e,n)=>({x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}),th=(t,e,n)=>tc(e,n,Math.abs((t-e.y)/(n.y-e.y))).x,td=(t,e,n)=>tc(e,n,Math.abs((t-e.x)/(n.x-e.x))).y,tu=t=>t*t,tp=(t,e,{x:n,y:i,x2:o,y2:r},a)=>"y"===a?{start:Math.min(i,r),end:Math.max(i,r),value:e}:{start:Math.min(n,o),end:Math.max(n,o),value:t},tf=(t,e,n,i)=>(1-i)*(1-i)*t+2*(1-i)*i*e+i*i*n,tg=(t,e,n,i)=>({x:tf(t.x,e.x,n.x,i),y:tf(t.y,e.y,n.y,i)}),tm=(t,e,n,i)=>2*(1-i)*(e-t)+2*i*(n-e),tv=(t,e,n,i)=>-Math.atan2(tm(t.x,e.x,n.x,i),tm(t.y,e.y,n.y,i))+.5*o.P;class tx extends i.Hg{inRange(t,e,n,i){let o=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==n&&"y"!==n){let n={mouseX:t,mouseY:e},{path:r,ctx:a}=this;if(r){_(a,this.options),a.lineWidth+=this.options.hitTolerance;let{chart:o}=this.$context,s=t*o.currentDevicePixelRatio,l=e*o.currentDevicePixelRatio,c=a.isPointInStroke(r,s,l)||tw(this,n,i);
1return a.restore(),c}return function(t,{mouseX:e,mouseY:n},i=.001,o){let r,a,{x:s,y:l,x2:c,y2:h}=t.getProps(["x","y","x2","y2"],o),d=c-s,u=h-l,p=tu(d)+tu(u),f=0===p?-1:((e-s)*d+(n-l)*u)/p;return f<0?(r=s,a=l):f>1?(r=c,a=h):(r=s+f*d,a=l+f*u),tu(e-r)+tu(n-a)<=i}(this,n,tu(o),i)||tw(this,n,i)}return function(t,{mouseX:e,mouseY:n},i,{hitSize:o,useFinalPosition:r}){return d(tp(e,n,t.getProps(["x","y","x2","y2"],r),i),o)||tw(t,{mouseX:e,mouseY:n},r,i)}(this,{mouseX:t,mouseY:e},n,{hitSize:o,useFinalPosition:i})}getCenterPoint(t){return f(this,t)}draw(t){let{x:e,y:n,x2:i,y2:r,cp:a,options:s}=this;if(t.save(),!_(t,s))return t.restore();Y(t,s);let l=Math.sqrt(Math.pow(i-e,2)+Math.pow(r-n,2));if(s.curve&&a)return function(t,e,n,i){let{x:r,y:a,x2:s,y2:l,options:c}=e,{startOpts:h,endOpts:d,startAdjust:u,endAdjust:p}=tS(e),f={x:r,y:a},g={x:s,y:l},m=tv(f,n,g,0),v=tv(f,n,g,1)-o.P,x=tg(f,n,g,u/i),y=tg(f,n,g,1-p/i),b=new Path2D;t.beginPath(),b.moveTo(x.x,x.y),b.quadraticCurveTo(n.x,n.y,y.x,y.y),t.shadowColor=c.borderShadowColor,t.stroke(b),e.path=b,e.ctx=t,tk(t,x,{angle:m,adjust:u},h),tk(t,y,{angle:v,adjust:p},d)}(t,this,a,l),t.restore();let{startOpts:c,endOpts:h,startAdjust:d,endAdjust:u}=tS(this),p=Math.atan2(r-n,i-e);t.translate(e,n),t.rotate(p),t.beginPath(),t.moveTo(0+d,0),t.lineTo(l-u,0),t.shadowColor=s.borderShadowColor,t.stroke(),tE(t,0,d,c),tE(t,l,-u,h),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){let n=function(t,e){let{scales:n,chartArea:i}=t,o=n[e.scaleID],r={x:i.left,y:i.top,x2:i.right,y2:i.bottom};return o?function(t,e,n){let i=F(t,n.value,NaN),o=F(t,n.endValue,i);t.isHorizontal()?(e.x=i,e.x2=o):(e.y=i,e.y2=o)}(o,r,e):function(t,e,n){for(let i of Object.keys(V)){let o=t[L(t,n,i)];if(o){let{min:t,max:r,start:a,end:s,startProp:l,endProp:c}=V[i],h=Z(o,{min:n[t],max:n[r],start:o[a],end:o[s]});e[l]=h.start,e[c]=h.end}}}(n,r,e),r}(t,e),{x:i,y:r,x2:a,y2:s}=n,c=function({x:t,y:e,x2:n,y2:i},{top:o,right:r,bottom:a,left:s}){return!(t<s&&n<s||t>r&&n>r||e<o&&i<o||e>a&&i>a)}(n,t.chartArea),h=c?function(t,e,n){let{x:i,y:o}=tb(t,e,n),{x:r,y:a}=tb(e,t,n);return{x:i,y:o,x2:r,y2:a,width:Math.abs(r-i),height:Math.abs(a-o)}}({x:i,y:r},{x:a,y:s},t.chartArea):{x:i,y:r,x2:a,y2:s,width:Math.abs(a-i),height:Math.abs(s-r)};if(h.centerX=(a+i)/2,h.centerY=(s+r)/2,h.initProperties=C(t,h,e),e.curve){let t={x:h.x,y:h.y},n={x:h.x2,y:h.y2};h.cp=function(t,e,n){let{x:i,y:o,x2:r,y2:a,centerX:s,centerY:c}=t,h=Math.atan2(a-o,r-i),d=T(e.controlPoint,0);return l({x:s+w(n,d.x,!1),y:c+w(n,d.y,!1)},{x:s,y:c},h)}(h,e,(0,o.aE)(t,n))}let d=function(t,e,n){let i=n.borderWidth,r=(0,o.E)(n.padding),a=j(t.ctx,n);return function(t,e,n,i){let{width:r,height:a,padding:s}=n,{xAdjust:l,yAdjust:c}=e,h={x:t.x,y:t.y},d={x:t.x2,y:t.y2},u="auto"===e.rotation?function(t){let{x:e,y:n,x2:i,y2:r}=t,a=Math.atan2(r-n,i-e);return a>o.P/2?a-o.P:a<-(o.P/2)?a+o.P:a}(t):(0,o.t)(e.rotation),p=function(t,e,n){let i=Math.cos(n),o=Math.sin(n);return{w:Math.abs(t*i)+Math.abs(e*o),h:Math.abs(t*o)+Math.abs(e*i)}}(r,a,u),f=function(t,e,n,i){let o,r=function(t,e){let{x:n,x2:i,y:o,y2:r}=t,a=Math.min(o,r)-e.top,s=Math.min(n,i)-e.left,l=e.bottom-Math.max(o,r),c=e.right-Math.max(n,i);return{x:Math.min(s,c),y:Math.min(a,l),dx:s<=c?1:-1,dy:a<=l?1:-1}}(t,i);return"start"===e.position?tM({w:t.x2-t.x,h:t.y2-t.y},n,e,r):"end"===e.position?1-tM({w:t.x-t.x2,h:t.y-t.y2},n,e,r):b(1,e.position)}(t,e,{labelSize:p,padding:s},i),g=t.cp?tg(h,t.cp,d,f):tc(h,d,f),m={size:p.w,min:i.left,max:i.right,padding:s.left},v={size:p.h,min:i.top,max:i.bottom,padding:s.top},x=tT(g.x,m)+l,y=tT(g.y,v)+c;return{x:x-r/2,y:y-a/2,x2:x+r/2,y2:y+a/2,centerX:x,centerY:y,pointX:g.x,pointY:g.y,width:r,height:a,rotation:(0,o.U)(u)}}(e,n,{width:a.width+r.width+i,height:a.height+r.height+i,padding:r},t.chartArea)}(t,h,e.label);return d._visible=c,h.elements=[{type:"label",optionScope:"label",properties:d,initProperties:h.initProperties}],h}}tx.id="lineAnnotation";let ty={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};function tb({x:t,y:e},n,{top:i,right:o,bottom:r,left:a}){return t<a&&(e=td(a,{x:t,y:e},n),t=a),t>o&&(e=td(o,{x:t,y:e},n),t=o),e<i&&(t=th(i,{x:t,y:e},n),e=i),e>r&&(t=th(r,{x:t,y:e},n),e=r),{x:t,y:e}}function tw(t,{mouseX:e,mouseY:n},i,o){let r=t.label;return r.options.display&&r.inRange(e,n,o,i)}function tM(t,e,n,i){let{labelSize:o,padding:r}=e,a=t.w*i.dx,s=t.h*i.dy;return h(Math.max(a>0&&(o.w/2+r.left-i.x)/a,s>0&&(o.h/2+r.top-i.y)/s),0,.25)}function tT(t,e){let{size:n,min:i,max:o,padding:r}=e,a=n/2;return n>o-i?(o+i)/2:(i>=t-r-a&&(t=i+r+a),o<=t+r+a&&(t=o-r-a),t)}function tS(t){let e=t.options,n=e.arrowHeads&&e.arrowHeads.start,i=e.arrowHeads&&e.arrowHeads.end;return{startOpts:n,endOpts:i,startAdjust:tP(t,n),endAdjust:tP(t,i)}}
1function tP(t,e){if(!e||!e.display)return 0;let{length:n,width:i}=e,o=t.options.borderWidth/2;return Math.abs(th(0,{x:n,y:i+o},{x:0,y:o}))}function tE(t,e,n,i){if(!i||!i.display)return;let{length:o,width:r,fill:a,backgroundColor:s,borderColor:l}=i,c=Math.abs(e-o)+n;t.beginPath(),Y(t,i),_(t,i),t.moveTo(c,-r),t.lineTo(e+n,0),t.lineTo(c,r),!0===a?(t.fillStyle=s||l,t.closePath(),t.fill(),t.shadowColor="transparent"):t.shadowColor=i.borderShadowColor,t.stroke()}function tk(t,{x:e,y:n},{angle:i,adjust:o},r){r&&r.display&&(t.save(),t.translate(e,n),t.rotate(i),tE(t,0,-o,r),t.restore())}tx.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},ty),fill:!1,length:12,start:Object.assign({},ty),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,hitTolerance:0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},tl.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},tx.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},tx.defaultRoutes={borderColor:"color"};class tC extends i.Hg{inRange(t,e,n,i){let r=this.options.rotation,a=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==n&&"y"!==n)return function(t,e,n,i){let{width:r,height:a,centerX:s,centerY:l}=e,c=r/2,h=a/2;if(c<=0||h<=0)return!1;let d=(0,o.t)(n||0),u=Math.cos(d),p=Math.sin(d);return Math.pow(u*(t.x-s)+p*(t.y-l),2)/Math.pow(c+i,2)+Math.pow(p*(t.x-s)-u*(t.y-l),2)/Math.pow(h+i,2)<=1.0001}({x:t,y:e},this.getProps(["width","height","centerX","centerY"],i),r,a);let{x:s,y:c,x2:h,y2:d}=this.getProps(["x","y","x2","y2"],i),u="y"===n?{start:c,end:d}:{start:s,end:h},p=l({x:t,y:e},this.getCenterPoint(i),(0,o.t)(-r));return p[n]>=u.start-a-.001&&p[n]<=u.end+a+.001}getCenterPoint(t){return f(this,t)}draw(t){let{width:e,height:n,centerX:i,centerY:r,options:a}=this;t.save(),X(t,this.getCenterPoint(),a.rotation),Y(t,this.options),t.beginPath(),t.fillStyle=a.backgroundColor;let s=_(t,a);t.ellipse(i,r,n/2,e/2,o.P/2,0,2*o.P),t.fill(),s&&(t.shadowColor=a.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return U(t,e)}}tC.id="ellipseAnnotation",tC.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},ta.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},tC.defaultRoutes={borderColor:"color",backgroundColor:"color"},tC.descriptors={label:{_fallback:!0}};class tD extends i.Hg{inRange(t,e,n,i){let{x:o,y:r,x2:a,y2:s,width:l}=this.getProps(["x","y","x2","y2","width"],i),c=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==n&&"y"!==n){var h,u,p;return h={x:t,y:e},u=this.getCenterPoint(i),p=l/2,!!h&&!!u&&!(p<=0)&&Math.pow(h.x-u.x,2)+Math.pow(h.y-u.y,2)<=Math.pow(p+c,2)}return d("y"===n?{start:r,end:s,value:e}:{start:o,end:a,value:t},c)}getCenterPoint(t){return f(this,t)}draw(t){let e=this.options,n=e.borderWidth;if(e.radius<.1)return;t.save(),t.fillStyle=e.backgroundColor,Y(t,e);let i=_(t,e);!function(t,e,n,i){let{radius:r,options:a}=e,s=a.pointStyle,l=a.rotation,c=(l||0)*o.b3;if(R(s)){t.save(),t.translate(n,i),t.rotate(c),t.drawImage(s,-s.width/2,-s.height/2,s.width,s.height),t.restore(
1);return}z(r)||function(t,{x:e,y:n,radius:i,rotation:r,style:a,rad:s}){let l,c,h,d;switch(t.beginPath(),a){default:t.arc(e,n,i,0,o.T),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(s)*i,n-Math.cos(s)*i),s+=o.b5,t.lineTo(e+Math.sin(s)*i,n-Math.cos(s)*i),s+=o.b5,t.lineTo(e+Math.sin(s)*i,n-Math.cos(s)*i),t.closePath();break;case"rectRounded":d=.516*i,h=i-d,l=Math.cos(s+o.b4)*h,c=Math.sin(s+o.b4)*h,t.arc(e-l,n-c,d,s-o.P,s-o.H),t.arc(e+c,n-l,d,s-o.H,s),t.arc(e+l,n+c,d,s,s+o.H),t.arc(e-c,n+l,d,s+o.H,s+o.P),t.closePath();break;case"rect":if(!r){h=Math.SQRT1_2*i,t.rect(e-h,n-h,2*h,2*h);break}s+=o.b4;case"rectRot":l=Math.cos(s)*i,c=Math.sin(s)*i,t.moveTo(e-l,n-c),t.lineTo(e+c,n-l),t.lineTo(e+l,n+c),t.lineTo(e-c,n+l),t.closePath();break;case"crossRot":s+=o.b4;case"cross":l=Math.cos(s)*i,c=Math.sin(s)*i,t.moveTo(e-l,n-c),t.lineTo(e+l,n+c),t.moveTo(e+c,n-l),t.lineTo(e-c,n+l);break;case"star":l=Math.cos(s)*i,c=Math.sin(s)*i,t.moveTo(e-l,n-c),t.lineTo(e+l,n+c),t.moveTo(e+c,n-l),t.lineTo(e-c,n+l),s+=o.b4,l=Math.cos(s)*i,c=Math.sin(s)*i,t.moveTo(e-l,n-c),t.lineTo(e+l,n+c),t.moveTo(e+c,n-l),t.lineTo(e-c,n+l);break;case"line":l=Math.cos(s)*i,c=Math.sin(s)*i,t.moveTo(e-l,n-c),t.lineTo(e+l,n+c);break;case"dash":t.moveTo(e,n),t.lineTo(e+Math.cos(s)*i,n+Math.sin(s)*i)}t.fill()}(t,{x:n,y:i,radius:r,rotation:l,style:s,rad:c})}(t,this,this.centerX,this.centerY),i&&!R(e.pointStyle)&&(t.shadowColor=e.borderShadowColor,t.stroke()),t.restore(),e.borderWidth=n}resolveElementProperties(t,e){let n=Q(t,e);return n.initProperties=C(t,n,e),n}}tD.id="pointAnnotation",tD.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},tD.defaultRoutes={borderColor:"color",backgroundColor:"color"};class tO extends i.Hg{inRange(t,e,n,i){if("x"!==n&&"y"!==n)return this.options.radius>=.1&&this.elements.length>1&&function(t,e,n,i){let o=!1,r=t[t.length-1].getProps(["bX","bY"],i);for(let a of t){let t=a.getProps(["bX","bY"],i);t.bY>n!=r.bY>n&&e<(r.bX-t.bX)*(n-t.bY)/(r.bY-t.bY)+t.bX&&(o=!o),r=t}return o}(this.elements,t,e,i);let r=l({x:t,y:e},this.getCenterPoint(i),(0,o.t)(-this.options.rotation)),a=this.elements.map(t=>"y"===n?t.bY:t.bX),s=Math.min(...a),c=Math.max(...a);return r[n]>=s&&r[n]<=c}getCenterPoint(t){return f(this,t)}draw(t){let{elements:e,options:n}=this;t.save(),t.beginPath(),t.fillStyle=n.backgroundColor,Y(t,n);let i=_(t,n),o=!0;for(let n of e)o?(t.moveTo(n.x,n.y),o=!1):t.lineTo(n.x,n.y);t.closePath(),t.fill(),i&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,e){let n=Q(t,e),{sides:i,rotation:r}=e,a=[],s=2*o.P/i,l=r*o.b3;for(let o=0;o<i;o++,l+=s){let i=function({centerX:t,centerY:e},{radius:n,borderWidth:i,hitTolerance:o},r){let a=(i+o)/2,s=Math.sin(r),l=Math.cos(r),c={x:t+s*n,y:e-l*n};return{type:"point",optionScope:"point",properties:{x:c.x,y:c.y,centerX:c.x,centerY:c.y,bX:t+s*(n+a),bY:e-l*(n+a)}}}(n,e,l);i.initProperties=C(t,n,e),a.push(i)}return n.elements=a,n}}tO.id="polygonAnnotation",tO.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},tO.defaultRoutes={borderColor:"color",backgroundColor:"color"};let tA={box:ta,doughnutLabel:ts,ellipse:tC,label:tl,line:tx,point:tD,polygon:tO};Object.keys(tA).forEach(t=>{o.d.describe(`elements.${tA[t].id}`,{_fallback:"plugins.annotation.common"})});let tz={update:Object.assign},tI=K.concat(tn),tR=(t,e)=>(0,o.i)(e)?tN(t,e):t,tX=t=>"color"===t||"font"===t;function t_(t="line"){return tA[t]?t:(console.warn(`Unknown annotation type: '${t}', defaulting to 'line'`),"line")}function tY(t,e,n,i){let o=tA[t_(n)],r=t[e];return r&&r instanceof o||Object.assign(r=t[e]=new o,i),r}function tj(t){let e=tA[t_(t.type)],n={};for(let i of(n.id=t.id,n.type=t.type,n.drawTime=t.drawTime,Object.assign(n,tN(t,e.defaults),tN(t,e.defaultRoutes)),tI))n[i]=t[i];return n}function tN(t,e){let n={};for(let i of Object.keys(e)){let r=e[i],a=t[i];tX(i)&&(0,o.b)(a)?n[i]=a.map(t=>tR(t,r)):n[i]=tR(a,r)}return n}let tW=new Map,tH=t=>"doughnutLabel"!==t.type,tV=K.concat(tn);var tF={id:"annotation",version:"3.1.0",beforeRegister(){!function(t,e,n,i=!0){let o=n.split("."),r=0;for(let e of"4.0".split(".")){let a=o[r++];if(parseInt(e,10)<parseInt(a,10))break;if(c(a,e))if(!i)return!1;else throw Error(`${t} v${n} is not supported. v4.0 or newer is required.`)}}("chart.js","4.0",i.t1.version)},afterRegister(){i.t1.register(tA)},afterUnregister(){i.t1.unregister(tA)},beforeInit(t){tW.set(t,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(t,e,n){let i=tW.get(t).annotations=[],r=n.annotations;(0,o.i)(r)?Object.keys(r).forEach(t=>{let e=r[t];(0,o.i)(e)&&(e.id=t,i.push(e))}):(0,o.b)(r)&&i.push(...r);var a=i.filter(tH),s=t.scales;for(let t of a){var l=t,c=s;for(let t of["scaleID","xScaleID","yScaleID"]){let e=L(c,l,t);e&&!c[e]&&function(t,e){if("scaleID"===e)return!0;let n=e.charAt(0);for(let e of["Min","Max","Value"])if((0,o.h)(t[n+e]))return!0;return!1}(l,t)&&console.warn(`No scale found with id '${e}' for annotation '${l.id}'`)}}},afterDataLimits(t,e){let n=tW.get(t);!function(t,e,n){let i=function(t,e,n){let i=e.axis,r=e.id,a=i+"ScaleID",s={min:(0,o.v)(e.min,Number.NEGATIVE_INFINITY),max:(0,o.v)(e.max,Number.POSITIVE_INFINITY)};for(let o of n)o.scaleID===r?tr(o,e,["value","endValue"],s):L(t,o,a)===r&&tr(o,e,[i+"Min",i+"Max",i+"Value"],s);return s}(t.scales,e,n),r=to(e,i,"min","suggestedMin");
1(r=to(e,i,"max","suggestedMax")||r)&&(0,o.a7)(e.handleTickRangeOptions)&&e.handleTickRangeOptions()}(t,e.scale,n.annotations.filter(tH).filter(t=>t.display&&t.adjustScaleRange))},afterUpdate(t,e,n){let r=tW.get(t);r.listened=D(n,K,r.listeners),r.moveListened=!1,G.forEach(t=>{(0,o.a7)(n[t])&&(r.moveListened=!0)}),r.listened&&r.moveListened||r.annotations.forEach(t=>{!r.listened&&(0,o.a7)(t.click)&&(r.listened=!0),r.moveListened||G.forEach(e=>{(0,o.a7)(t[e])&&(r.listened=!0,r.moveListened=!0)})}),function(t,e,n,r){var a,s,l,c,h,d,u,p;let f=(a=t,s=n.animations,"reset"===(l=r)||"none"===l||"resize"===l?tz:new i.Qw(a,s)),g=e.annotations,m=function(t,e){let n=e.length,i=t.length;return i<n?t.splice(i,0,...Array(n-i)):i>n&&t.splice(n,i-n),t}(e.elements,g);for(let e=0;e<g.length;e++){let n=g[e],i=tY(m,e,n.type),r=n.setContext((c=t,h=i,d=m,u=n,h.$context||(h.$context=Object.assign(Object.create(c.getContext()),{element:h,get elements(){return d.filter(t=>t&&t.options)},id:u.id,type:"annotation"})))),a=i.resolveElementProperties(t,r);a.skip=isNaN((p=a).x)||isNaN(p.y),"elements"in a&&(function(t,e,n,i){let o=t.elements||(t.elements=[]);o.length=e.length;for(let t=0;t<e.length;t++){let r=e[t],a=r.properties,s=tY(o,t,r.type,r.initProperties);a.options=tj(n[r.optionScope].override(r)),i.update(s,a)}}(i,a.elements,r,f),delete a.elements),(0,o.h)(i.x)||Object.assign(i,a),Object.assign(i,a.initProperties),a.options=tj(r),f.update(i,a)}}(t,r,n,e.mode),r.visibleElements=r.elements.filter(t=>!t.skip&&t.options.display);let a=r.visibleElements;r.hooked=D(n,tn,r.hooks),r.hooked||a.forEach(t=>{r.hooked||tn.forEach(e=>{(0,o.a7)(t.options[e])&&(r.hooked=!0)})})},beforeDatasetsDraw(t,e,n){tL(t,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(t,e,n){tL(t,"afterDatasetsDraw",n.clip)},beforeDatasetDraw(t,e,n){tL(t,e.index,n.clip)},beforeDraw(t,e,n){tL(t,"beforeDraw",n.clip)},afterDraw(t,e,n){tL(t,"afterDraw",n.clip)},beforeEvent(t,e,n){(function(t,e,n){if(t.listened)switch(e.type){case"mousemove":case"mouseout":let i;var o=t,r=e,s=n;if(!o.moveListened)return;i="mousemove"===r.type?a(o.visibleElements,r,s.interaction):[];let l=o.hovered;o.hovered=i;let c={state:o,event:r},h=tt(c,"leave",l,i);return tt(c,"enter",i,l)||h;case"click":let d;var u=t,p=e,f=n;let g=u.listeners;for(let t of a(u.visibleElements,p,f.interaction))d=te(t.options.click||g.click,t,p)||d;return d}})(tW.get(t),e.event,n)&&(e.changed=!0)},afterDestroy(t){tW.delete(t)},getAnnotations(t){let e=tW.get(t);return e?e.elements:[]},_getAnnotationElementsAtEventForMode:(t,e,n)=>a(t,e,n),defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"},colors:{properties:["backgroundColor","borderColor"],type:"color"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:t=>!tV.includes(t)&&"init"!==t,annotations:{_allKeys:!1,_fallback:(t,e)=>`elements.${tA[t_(e.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:tX,_fallback:!0},_indexable:tX}},additionalOptionScopes:[""]};function tL(t,e,n){let{ctx:i,chartArea:r}=t,a=tW.get(t);for(let t of(n&&(0,o.Y)(i,r),(function(t,e){let n=[];for(let i of t)if(i.options.drawTime===e&&n.push({element:i,main:!0}),i.elements&&i.elements.length)for(let t of i.elements)t.options.display&&t.options.drawTime===e&&n.push({element:t});return n})(a.visibleElements,e).sort((t,e)=>t.element.options.z-e.element.options.z))){var s=i,l=r,c=a,h=t;let e=h.element;h.main?(ti(c,e,"beforeDraw"),e.draw(s,l),ti(c,e,"afterDraw")):e.draw(s,l)}n&&(0,o.$)(i)}},54918:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});let i=(0,n(36245).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},56821:(t,e,n)=>{var i;!function(o,r,a,s){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],h=r.createElement("div"),d=Math.round,u=Math.abs,p=Date.now;function f(t,e,n){return setTimeout(w(t,n),e)}function g(t,e,n){return!!Array.isArray(t)&&(m(t,n[e],n),!0)}function m(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function v(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=Error("get-stack-trace"),n=e&&e.stack?e.
1stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=o.console&&(o.console.warn||o.console.log);return r&&r.call(o.console,i,n),t.apply(this,arguments)}}l="function"!=typeof Object.assign?function(t){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])}return e}:Object.assign;var x=v(function(t,e,n){for(var i=Object.keys(e),o=0;o<i.length;)(!n||n&&t[i[o]]===s)&&(t[i[o]]=e[i[o]]),o++;return t},"extend","Use `assign`."),y=v(function(t,e){return x(t,e,!0)},"merge","Use `assign`.");function b(t,e,n){var i,o=e.prototype;(i=t.prototype=Object.create(o)).constructor=t,i._super=o,n&&l(i,n)}function w(t,e){return function(){return t.apply(e,arguments)}}function M(t,e){return"function"==typeof t?t.apply(e&&e[0]||s,e):t}function T(t,e,n){m(k(e),function(e){t.addEventListener(e,n,!1)})}function S(t,e,n){m(k(e),function(e){t.removeEventListener(e,n,!1)})}function P(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function E(t,e){return t.indexOf(e)>-1}function k(t){return t.trim().split(/\s+/g)}function C(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return -1}function D(t){return Array.prototype.slice.call(t,0)}function O(t,e,n){for(var i=[],o=[],r=0;r<t.length;){var a=e?t[r][e]:t[r];0>C(o,a)&&i.push(t[r]),o[r]=a,r++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function A(t,e){for(var n,i,o=e[0].toUpperCase()+e.slice(1),r=0;r<c.length;){if((i=(n=c[r])?n+o:e)in t)return i;r++}return s}var z=1;function I(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||o}var R="ontouchstart"in o,X=A(o,"PointerEvent")!==s,_=R&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Y="touch",j="mouse",N=["x","y"],W=["clientX","clientY"];function H(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){M(t.options.enable,[t])&&n.handler(e)},this.init()}function V(t,e,n){var i,o,r,a,l,c,h,d,f,g,m,v,x,y,b,w,M,T,S,E,k,C=n.pointers.length,D=n.changedPointers.length,O=1&e&&C-D==0,A=12&e&&C-D==0;n.isFirst=!!O,n.isFinal=!!A,O&&(t.session={}),n.eventType=e,i=t,o=n,r=i.session,l=(a=o.pointers).length,r.firstInput||(r.firstInput=F(o)),l>1&&!r.firstMultiple?r.firstMultiple=F(o):1===l&&(r.firstMultiple=!1),c=r.firstInput,d=(h=r.firstMultiple)?h.center:c.center,f=o.center=L(a),o.timeStamp=p(),o.deltaTime=o.timeStamp-c.timeStamp,o.angle=Q(d,f),o.distance=B(d,f),g=r,v=(m=o).center,x=g.offsetDelta||{},y=g.prevDelta||{},b=g.prevInput||{},(1===m.eventType||4===b.eventType)&&(y=g.prevDelta={x:b.deltaX||0,y:b.deltaY||0},x=g.offsetDelta={x:v.x,y:v.y}),m.deltaX=y.x+(v.x-x.x),m.deltaY=y.y+(v.y-x.y),o.offsetDirection=q(o.deltaX,o.deltaY),w=Z(o.deltaTime,o.deltaX,o.deltaY),o.overallVelocityX=w.x,o.overallVelocityY=w.y,o.overallVelocity=u(w.x)>u(w.y)?w.x:w.y,o.scale=h?(M=h.pointers,B((T=a)[0],T[1],W)/B(M[0],M[1],W)):1,o.rotation=h?(S=h.pointers,Q((E=a)[1],E[0],W)+Q(S[1],S[0],W)):0,o.maxPointers=r.prevInput?o.pointers.length>r.prevInput.maxPointers?o.pointers.length:r.prevInput.maxPointers:o.pointers.length,function(t,e){var n,i,o,r,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(l>25||a.velocity===s)){var c=e.deltaX-a.deltaX,h=e.deltaY-a.deltaY,d=Z(l,c,h);i=d.x,o=d.y,n=u(d.x)>u(d.y)?d.x:d.y,r=q(c,h),t.lastInterval=e}else n=a.velocity,i=a.velocityX,o=a.velocityY,r=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=o,e.direction=r}(r,o),k=i.element,P(o.srcEvent.target,k)&&(k=o.srcEvent.target),o.target=k,t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function F(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:d(t.pointers[n].clientX),clientY:d(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:L(e),deltaX:t.deltaX,deltaY:t.deltaY}}function L(t){var e=t.length;if(1===e)return{x:d(t[0].clientX),y:d(t[0].clientY)};for(var n=0,i=0,o=0;o<e;)n+=t[o].clientX,i+=t[o].clientY,o++;return{x:d(n/e),y:d(i/e)}}function Z(t,e,n){return{x:e/t||0,y:n/t||0}}function q(t,e){return t===e?1:u(t)>=u(e)?t<0?2:4:e<0?8:16}function B(t,e,n){n||(n=N);
1var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function Q(t,e,n){n||(n=N);var i=e[n[0]]-t[n[0]];return 180*Math.atan2(e[n[1]]-t[n[1]],i)/Math.PI}H.prototype={handler:function(){},init:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(I(this.element),this.evWin,this.domHandler)}};var U={mousedown:1,mousemove:2,mouseup:4};function $(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,H.apply(this,arguments)}b($,H,{handler:function(t){var e=U[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:j,srcEvent:t}))}});var J={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},G={2:Y,3:"pen",4:j,5:"kinect"},K="pointerdown",tt="pointermove pointerup pointercancel";function te(){this.evEl=K,this.evWin=tt,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(K="MSPointerDown",tt="MSPointerMove MSPointerUp MSPointerCancel"),b(te,H,{handler:function(t){var e=this.store,n=!1,i=J[t.type.toLowerCase().replace("ms","")],o=G[t.pointerType]||t.pointerType,r=o==Y,a=C(e,t.pointerId,"pointerId");1&i&&(0===t.button||r)?a<0&&(e.push(t),a=e.length-1):12&i&&(n=!0),!(a<0)&&(e[a]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var tn={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ti(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,H.apply(this,arguments)}function to(t,e){var n=D(t.touches),i=D(t.changedTouches);return 12&e&&(n=O(n.concat(i),"identifier",!0)),[n,i]}b(ti,H,{handler:function(t){var e=tn[t.type];if(1===e&&(this.started=!0),this.started){var n=to.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Y,srcEvent:t})}}});var tr={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ta(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},H.apply(this,arguments)}function ts(t,e){var n=D(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,a=D(t.changedTouches),s=[],l=this.target;if(r=n.filter(function(t){return P(t.target,l)}),1===e)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;for(o=0;o<a.length;)i[a[o].identifier]&&s.push(a[o]),12&e&&delete i[a[o].identifier],o++;if(s.length)return[O(r.concat(s),"identifier",!0),s]}function tl(){H.apply(this,arguments);var t=w(this.handler,this);this.touch=new ta(this.manager,t),this.mouse=new $(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function tc(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,th.call(this,e)):12&t&&th.call(this,e)}function th(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)},2500)}}function td(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],r=Math.abs(e-o.x),a=Math.abs(n-o.y);if(r<=25&&a<=25)return!0}return!1}
1b(ta,H,{handler:function(t){var e=tr[t.type],n=ts.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Y,srcEvent:t})}}),b(tl,H,{handler:function(t,e,n){var i=n.pointerType==Y,o=n.pointerType==j;if(!o||!n.sourceCapabilities||!n.sourceCapabilities.firesTouchEvents){if(i)tc.call(this,e,n);else if(o&&td.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var tu=A(h.style,"touchAction"),tp=s!==tu,tf="compute",tg="auto",tm="manipulation",tv="none",tx="pan-x",ty="pan-y",tb=function(){if(!tp)return!1;var t={},e=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||o.CSS.supports("touch-action",n)}),t}();function tw(t,e){this.manager=t,this.set(e)}function tM(t){var e;this.options=l({},this.defaults,t||{}),this.id=z++,this.manager=null,this.options.enable=(e=this.options.enable,s===e||e),this.state=1,this.simultaneous={},this.requireFail=[]}function tT(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function tS(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function tP(t,e){var n=e.manager;return n?n.get(t):t}function tE(){tM.apply(this,arguments)}function tk(){tE.apply(this,arguments),this.pX=null,this.pY=null}function tC(){tE.apply(this,arguments)}function tD(){tM.apply(this,arguments),this._timer=null,this._input=null}function tO(){tE.apply(this,arguments)}function tA(){tE.apply(this,arguments)}function tz(){tM.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function tI(t,e){var n,i;return(e=e||{}).recognizers=(n=e.recognizers,i=tI.defaults.preset,s===n?i:n),new tR(t,e)}function tR(t,e){var n,i;this.options=l({},tI.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this.options.inputClass)?i:X?te:_?ta:R?tl:$)(this,V),this.touchAction=new tw(this,this.options.touchAction),tX(this,!0),m(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function tX(t,e){var n,i=t.element;i.style&&(m(t.options.cssProps,function(o,r){n=A(i.style,r),e?(t.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}tw.prototype={set:function(t){t==tf&&(t=this.compute()),tp&&this.manager.element.style&&tb[t]&&(this.manager.element.style[tu]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,function(e){M(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(E(t,tv))return tv;var e=E(t,tx),n=E(t,ty);return e&&n?tv:e||n?e?tx:ty:E(t,tm)?tm:tg}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,o=E(i,tv)&&!tb[tv],r=E(i,ty)&&!tb[ty],a=E(i,tx)&&!tb[tx];if(o){var s=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(s&&l&&c)return}if((!a||!r)&&(o||r&&6&n||a&&24&n))return this.preventSrc(e)},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}},tM.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(g(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=tP(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return g(t,"dropRecognizeWith",this)||(t=tP(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(g(t,"requireFailure",this))return this;var e=this.requireFail;return -1===C(e,t=tP(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(g(t,"dropRequireFailure",this))return this;t=tP(t,this);var e=C(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+tT(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+tT(n))}
1,tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=l({},t);if(!M(this.options.enable,[this,e])){this.reset(),this.state=32;return}56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},b(tE,tM,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,o=this.attrTest(t);return i&&(8&n||!o)?16|e:i||o?4&n?8|e:2&e?4|e:2:32}}),b(tk,tE,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(ty),24&t&&e.push(tx),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,o=t.direction,r=t.deltaX,a=t.deltaY;return o&e.direction||(6&e.direction?(o=0===r?1:r<0?2:4,n=r!=this.pX,i=Math.abs(t.deltaX)):(o=0===a?1:a<0?8:16,n=a!=this.pY,i=Math.abs(t.deltaY))),t.direction=o,n&&i>e.threshold&&o&e.direction},attrTest:function(t){return tE.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=tS(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),b(tC,tE,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[tv]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),b(tD,tM,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[tg]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,i&&n&&(!(12&t.eventType)||o)){if(1&t.eventType)this.reset(),this._timer=f(function(){this.state=8,this.tryEmit()},e.time,this);else if(4&t.eventType)return 8}else this.reset();return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),b(tO,tE,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[tv]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),b(tA,tE,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return tk.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&u(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=tS(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),b(tz,tM,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[tm]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&o&&n){if(4!=t.eventType)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||B(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&r?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)if(!this.hasRequireFailures())return 8;else return this._timer=f(function(){this.state=8,this.tryEmit()},e.interval,this),2}return 32},failTimeout:function(){return this._timer=f(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),tI.VERSION="2.0.7",tI.defaults={domEvents:!1,touchAction:tf,enable:!0,inputTarget:null,inputClass:null,preset:[[tO,{enable:!1}],[tC,{enable:!1},["rotate"]],[tA,{direction:6}],[tk,{direction:6},["swipe"]],[tz],[tz,{event:"doubletap",taps:2},["tap"]],[tD]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},tR.prototype={set:function(t){return l(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e,n=this.session;if(!n.stopped){this.touchAction.preventDefaults(t);var i=this.recognizers,o=n.curRecognizer;
1(!o||o&&8&o.state)&&(o=n.curRecognizer=null);for(var r=0;r<i.length;)e=i[r],2!==n.stopped&&(!o||e==o||e.canRecognizeWith(o))?e.recognize(t):e.reset(),!o&&14&e.state&&(o=n.curRecognizer=e),r++}},get:function(t){if(t instanceof tM)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(g(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(g(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=C(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(s!==t&&s!==e){var n=this.handlers;return m(k(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(s!==t){var n=this.handlers;return m(k(t),function(t){e?n[t]&&n[t].splice(C(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&(n=t,i=e,(o=r.createEvent("Event")).initEvent(n,!0,!0),o.gesture=i,i.target.dispatchEvent(o));var n,i,o,a=this.handlers[t]&&this.handlers[t].slice();if(a&&a.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var s=0;s<a.length;)a[s](e),s++}},destroy:function(){this.element&&tX(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(tI,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:tR,Input:H,TouchAction:tw,TouchInput:ta,MouseInput:$,PointerEventInput:te,TouchMouseInput:tl,SingleTouchInput:ti,Recognizer:tM,AttrRecognizer:tE,Tap:tz,Pan:tk,Swipe:tA,Pinch:tC,Rotate:tO,Press:tD,on:T,off:S,each:m,merge:y,extend:x,assign:l,inherit:b,bindFn:w,prefixed:A}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=tI,s===(i=(function(){return tI}).call(e,n,e,t))||(t.exports=i)}(window,document,0)},57391:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});let i=(0,n(36245).A)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]])},67427:(t,e,n)=>{"use strict";n.d(e,{t1:()=>l});var i=n(12115),o=n(52576);let r="label";function a(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function s(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,i=[];t.datasets=e.map(e=>{let o=t.datasets.find(t=>t[n]===e[n]);return!o||!e.data||i.includes(o)?{...e}:(i.push(o),Object.assign(o,e),o)})}let l=(0,i.forwardRef)(function(t,e){let{height:n=150,width:l=300,redraw:c=!1,datasetIdKey:h,type:d,data:u,options:p,plugins:f=[],fallbackContent:g,updateMode:m,...v}=t,x=(0,i.useRef)(null),y=(0,i.useRef)(null),b=()=>{x.current&&(y.current=new o.t1(x.current,{type:d,data:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n={labels:[],datasets:[]};return n.labels=t.labels,s(n,t.datasets,e),n}(u,h),options:p&&{...p},plugins:f}),a(e,y.current))},w=()=>{a(e,null),y.current&&(y.current.destroy(),y.current=null)};return(0,i.useEffect)(()=>{!c&&y.current&&p&&function(t,e){let n=t.options;n&&e&&Object.assign(n,e)}(y.current,p)},[c,p]),(0,i.useEffect)(()=>{!c&&y.current&&(y.current.config.data.labels=u.labels)},[c,u.labels]),(0,i.useEffect)(()=>{!c&&y.current&&u.datasets&&s(y.current.config.data,u.datasets,h)},[c,u.datasets]),(0,i.useEffect)(()=>{y.current&&(c?(w(),setTimeout(b)):y.current.update(m))},[c,p,u.labels,u.datasets,m]),(0,i.useEffect)(()=>{y.current&&(w(),setTimeout(b))},[d]),(0,i.useEffect)(()=>(b(),()=>w()),[]),i.createElement("canvas",{ref:x,role:"img",height:n,width:l,...v},g)})},72096:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>r});var i=n(16929),o={line:{color:"#F66",width:1,dashPattern:[]},sync:{enabled:!0,group:1,suppressTooltips:!1}
1,zoom:{enabled:!0,zoomboxBackgroundColor:"rgba(66,133,244,0.2)",zoomboxBorderColor:"#48F",zoomButtonText:"Reset Zoom",zoomButtonClass:"reset-zoom"},snap:{enabled:!1},callbacks:{beforeZoom:function(t,e){return!0},afterZoom:function(t,e){}}},r={id:"crosshair",afterInit:function(t){if(t.config.options.scales.x){var e=t.config.options.scales.x.type;("linear"===e||"time"===e||"category"===e||"logarithmic"===e)&&(void 0===t.options.plugins.crosshair&&(t.options.plugins.crosshair=o),t.crosshair={enabled:!1,suppressUpdate:!1,x:null,originalData:[],originalXRange:{},dragStarted:!1,dragStartX:null,dragEndX:null,suppressTooltips:!1,ignoreNextEvents:0,reset:(function(){this.resetZoom(t,!1,!1)}).bind(this)},this.getOption(t,"sync","enabled")&&(t.crosshair.syncEventHandler=(function(e){this.handleSyncEvent(t,e)}).bind(this),t.crosshair.resetZoomEventHandler=(function(e){var n=this.getOption(t,"sync","group");e.chartId!==t.id&&e.syncGroup===n&&this.resetZoom(t,!0)}).bind(this),window.addEventListener("sync-event",t.crosshair.syncEventHandler),window.addEventListener("reset-zoom-event",t.crosshair.resetZoomEventHandler)),t.panZoom=this.panZoom.bind(this,t))}},afterDestroy:function(t){this.getOption(t,"sync","enabled")&&(window.removeEventListener("sync-event",t.crosshair.syncEventHandler),window.removeEventListener("reset-zoom-event",t.crosshair.resetZoomEventHandler))},panZoom:function(t,e){if(0!==t.crosshair.originalData.length){var n=t.crosshair.end-t.crosshair.start,i=t.crosshair.min,o=t.crosshair.max;e<0?(t.crosshair.start=Math.max(t.crosshair.start+e,i),t.crosshair.end=t.crosshair.start===i?i+n:t.crosshair.end+e):(t.crosshair.end=Math.min(t.crosshair.end+e,t.crosshair.max),t.crosshair.start=t.crosshair.end===o?o-n:t.crosshair.start+e),this.doZoom(t,t.crosshair.start,t.crosshair.end)}},getOption:function(t,e,n){return(0,i.v)(t.options.plugins.crosshair[e]?t.options.plugins.crosshair[e][n]:void 0,o[e][n])},getXScale:function(t){return t.data.datasets.length?t.scales[t.getDatasetMeta(0).xAxisID]:null},getYScale:function(t){return t.scales[t.getDatasetMeta(0).yAxisID]},handleSyncEvent:function(t,e){var n=this.getOption(t,"sync","group");if(e.chartId!==t.id&&e.syncGroup===n){var i=this.getXScale(t);if(i){var o=void 0===e.original.native.buttons?e.original.native.which:e.original.native.buttons;"mouseup"===e.original.type&&(o=0);var r={type:"click"==e.original.type?"mousemove":e.original.type,chart:t,x:i.getPixelForValue(e.xValue),y:e.original.y,native:{buttons:o},stop:!0};t._eventHandler(r)}}},afterEvent:function(t,e){if(0==t.config.options.scales.x.length)return;let n=e.event;var i=t.config.options.scales.x.type;if("linear"===i||"time"===i||"category"===i||"logarithmic"===xscaleType){var o=this.getXScale(t);if(o){if(t.crosshair.ignoreNextEvents>0){t.crosshair.ignoreNextEvents-=1;return}var r=void 0===n.native.buttons?n.native.which:n.native.buttons;"mouseup"===n.native.type&&(r=0);var a=this.getOption(t,"sync","enabled"),s=this.getOption(t,"sync","group");if(!n.stop&&a){var e=new CustomEvent("sync-event");e.chartId=t.id,e.syncGroup=s,e.original=n,e.xValue=o.getValueForPixel(n.x),window.dispatchEvent(e)}var l=this.getOption(t,"sync","suppressTooltips");if(t.crosshair.suppressTooltips=n.stop&&l,t.crosshair.enabled="mouseout"!==n.type&&n.x>o.getPixelForValue(o.min)&&n.x<o.getPixelForValue(o.max),!t.crosshair.enabled&&!t.crosshair.suppressUpdate)return n.x>o.getPixelForValue(o.max)&&(t.crosshair.suppressUpdate=!0,t.update("none")),t.crosshair.dragStarted=!1,!1;t.crosshair.suppressUpdate=!1;var c=this.getOption(t,"zoom","enabled");if(1===r&&!t.crosshair.dragStarted&&c&&(t.crosshair.dragStartX=n.x,t.crosshair.dragStarted=!0),t.crosshair.dragStarted&&0===r){t.crosshair.dragStarted=!1;var h=o.getValueForPixel(t.crosshair.dragStartX),d=o.getValueForPixel(t.crosshair.x);Math.abs(t.crosshair.dragStartX-t.crosshair.x)>1&&this.doZoom(t,h,d),t.update("none")}t.crosshair.x=n.x,t.draw()}}},afterDraw:function(t){if(t.crosshair.enabled)return t.crosshair.dragStarted?this.drawZoombox(t):(this.drawTraceLine(t),this.interpolateValues(t),this.drawTracePoints(t)),!0},beforeTooltipDraw:function(t){return!t.crosshair.dragStarted&&!t.crosshair.suppressTooltips},resetZoom:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(n){if(t.crosshair.originalData.length>0)for(var i=0;i<t.data.datasets.length;i++)t.data.datasets[i].data=t.crosshair.originalData.shift(0);
1t.crosshair.originalXRange.min?(t.options.scales.x.min=t.crosshair.originalXRange.min,t.crosshair.originalXRange.min=null):delete t.options.scales.x.min,t.crosshair.originalXRange.max?(t.options.scales.x.max=t.crosshair.originalXRange.max,t.crosshair.originalXRange.max=null):delete t.options.scales.x.max}t.crosshair.button&&t.crosshair.button.parentNode&&(t.crosshair.button.parentNode.removeChild(t.crosshair.button),t.crosshair.button=!1);var o=this.getOption(t,"sync","enabled");if(!e&&n&&o){var r=this.getOption(t,"sync","group"),a=new CustomEvent("reset-zoom-event");a.chartId=t.id,a.syncGroup=r,window.dispatchEvent(a)}n&&t.update("none")},doZoom:function(t,e,n){if(e>n){var r=e;e=n,n=r}if(!(0,i.v)(t.options.plugins.crosshair.callbacks?t.options.plugins.crosshair.callbacks.beforeZoom:void 0,o.callbacks.beforeZoom)(e,n))return!1;if(t.crosshair.dragStarted=!1,t.options.scales.x.min&&0===t.crosshair.originalData.length&&(t.crosshair.originalXRange.min=t.options.scales.x.min),t.options.scales.x.max&&0===t.crosshair.originalData.length&&(t.crosshair.originalXRange.max=t.options.scales.x.max),!t.crosshair.button){var a=document.createElement("button"),s=this.getOption(t,"zoom","zoomButtonText"),l=this.getOption(t,"zoom","zoomButtonClass"),c=document.createTextNode(s);a.appendChild(c),a.className=l,a.addEventListener("click",(function(){this.resetZoom(t)}).bind(this)),t.canvas.parentNode.appendChild(a),t.crosshair.button=a}t.options.scales.x.min=e,t.options.scales.x.max=n;var h=0===t.crosshair.originalData.length;if("category"!==t.config.options.scales.x.type)for(var d=0;d<t.data.datasets.length;d++){var u=[],p=0,f=!1,g=!1;h&&(t.crosshair.originalData[d]=t.data.datasets[d].data);for(var m=t.crosshair.originalData[d],v=0;v<m.length;v++){var x=m[v],y=void 0!==x.x?x.x:NaN;y>=e&&!f&&p>0&&(u.push(m[p-1]),f=!0),y>=e&&y<=n&&u.push(x),y>n&&!g&&p<m.length&&(u.push(x),g=!0),p+=1}t.data.datasets[d].data=u}if(t.crosshair.start=e,t.crosshair.end=n,h){var b=this.getXScale(t);t.crosshair.min=b.min,t.crosshair.max=b.max}t.crosshair.ignoreNextEvents=2,t.update("none"),this.getOption(t,"callbacks","afterZoom")(e,n)},drawZoombox:function(t){var e=this.getYScale(t),n=this.getOption(t,"zoom","zoomboxBorderColor"),i=this.getOption(t,"zoom","zoomboxBackgroundColor");t.ctx.beginPath(),t.ctx.rect(t.crosshair.dragStartX,e.getPixelForValue(e.max),t.crosshair.x-t.crosshair.dragStartX,e.getPixelForValue(e.min)-e.getPixelForValue(e.max)),t.ctx.lineWidth=1,t.ctx.strokeStyle=n,t.ctx.fillStyle=i,t.ctx.fill(),t.ctx.fillStyle="",t.ctx.stroke(),t.ctx.closePath()},drawTraceLine:function(t){var e=this.getYScale(t),n=this.getOption(t,"line","width"),i=this.getOption(t,"line","color"),o=this.getOption(t,"line","dashPattern"),r=this.getOption(t,"snap","enabled"),a=t.crosshair.x;r&&t._active.length&&(a=t._active[0].element.x),t.ctx.beginPath(),t.ctx.setLineDash(o),t.ctx.moveTo(a,e.getPixelForValue(e.max)),t.ctx.lineWidth=n,t.ctx.strokeStyle=i,t.ctx.lineTo(a,e.getPixelForValue(e.min)),t.ctx.stroke(),t.ctx.setLineDash([])},drawTracePoints:function(t){for(var e=0;e<t.data.datasets.length;e++){var n=t.data.datasets[e],i=t.getDatasetMeta(e),o=t.scales[i.yAxisID];!i.hidden&&n.interpolate&&(t.ctx.beginPath(),t.ctx.arc(t.crosshair.x,o.getPixelForValue(n.interpolatedValue),3,0,2*Math.PI,!1),t.ctx.fillStyle="white",t.ctx.lineWidth=2,t.ctx.strokeStyle=n.borderColor,t.ctx.fill(),t.ctx.stroke())}},interpolateValues:function(t){for(var e=0;e<t.data.datasets.length;e++){var n=t.data.datasets[e],i=t.getDatasetMeta(e),o=t.scales[i.xAxisID].getValueForPixel(t.crosshair.x);if(!i.hidden&&n.interpolate){var r=n.data,a=r.findIndex(function(t){return t.x>=o}),s=r[a-1],l=r[a];if(t.data.datasets[e].steppedLine&&s)n.interpolatedValue=s.y;else if(s&&l){var c=(l.y-s.y)/(l.x-s.x);n.interpolatedValue=s.y+(o-s.x)*c}else n.interpolatedValue=NaN}}}}},85745:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});let i=(0,n(36245).A)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]])},95874:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>tt});var i=n(56821),o=n.n(i),r=n(16929);let a=t=>t&&t.enabled&&t.modifierKey,s=(t,e)=>t&&e[t+"Key"],l=(t,e)=>t&&!e[t+"Key"];function c(t,e,n){return void 0===t||("string"==typeof t?-1!==t.indexOf(e):"function"==typeof t&&-1!==t({chart:n}).indexOf(e))}function h(t,e){return("function"==typeof t&&(t=t({chart:e})),"string"==typeof t)?{x:-1!==t.indexOf("x"),y:-1!==t.indexOf("y")}
1:{x:!1,y:!1}}function d(t,e,n){let{mode:i="xy",scaleMode:o,overScaleMode:a}=t||{},s=function({x:t,y:e},n){let i=n.scales,o=Object.keys(i);for(let n=0;n<o.length;n++){let r=i[o[n]];if(e>=r.top&&e<=r.bottom&&t>=r.left&&t<=r.right)return r}return null}(e,n),l=h(i,n),c=h(o,n);if(a){let t=h(a,n);for(let e of["x","y"])t[e]&&(c[e]=l[e],l[e]=!1)}if(s&&c[s.axis])return[s];let d=[];return(0,r.F)(n.scales,function(t){l[t.axis]&&d.push(t)}),d}let u=new WeakMap;function p(t){let e=u.get(t);return e||(e={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{},dragging:!1,panning:!1},u.set(t,e)),e}function f(t,e,n,i){let o=Math.max(0,Math.min(1,(t-e)/n||0));return{min:i*o,max:i*(1-o)}}function g(t,e){let n=t.isHorizontal()?e.x:e.y;return t.getValueForPixel(n)}function m(t,e,n){let i=t.max-t.min;return f(g(t,n),t.min,i,i*(e-1))}function v(t,e,n,i,o){let a=n[i];if("original"===a){let n=t.originalScaleLimits[e.id][i];a=(0,r.v)(n.options,n.scale)}return(0,r.v)(a,o)}function x(t,{min:e,max:n},i,o=!1){let a=p(t.chart),{options:s}=t,l=i&&(i[t.id]||i[t.axis])||{},{minRange:c=0}=l,h=v(a,t,l,"min",-1/0),d=v(a,t,l,"max",1/0);if("pan"===o&&(e<h||n>d))return!0;let u=t.max-t.min,f=o?Math.max(n-e,c):u;if(o&&f===c&&u<=c)return!0;let g=function(t,{min:e,max:n,minLimit:i,maxLimit:o},a){let s=(t-n+e)/2;e-=s,n+=s;let l=a.min.options??a.min.scale,c=a.max.options??a.max.scale,h=t/1e6;return(0,r.aJ)(e,l,h)&&(e=l),(0,r.aJ)(n,c,h)&&(n=c),e<i?(e=i,n=Math.min(i+t,o)):n>o&&(n=o,e=Math.max(o-t,i)),{min:e,max:n}}(f,{min:e,max:n,minLimit:h,maxLimit:d},a.originalScaleLimits[t.id]);return s.min=g.min,s.max=g.max,a.updatedScaleLimits[t.id]=g,t.parse(g.min)!==t.min||t.parse(g.max)!==t.max}let y=t=>0===t||isNaN(t)?0:t<0?Math.min(Math.round(t),-1):Math.max(Math.round(t),1),b={second:500,minute:3e4,hour:18e5,day:432e5,week:3024e5,month:1296e6,quarter:5184e6,year:157248e5};function w(t,e,n,i=!1){let{min:o,max:r,options:a}=t,s=b[a.time&&a.time.round]||0,l=t.getValueForPixel(t.getPixelForValue(o+s)-e),c=t.getValueForPixel(t.getPixelForValue(r+s)-e);return!!(isNaN(l)||isNaN(c))||x(t,{min:l,max:c},n,!!i&&"pan")}function M(t,e,n){return w(t,e,n,!0)}let T={category:function(t,e,n,i){let o=m(t,e,n);t.min===t.max&&e<1&&function(t){let e=t.getLabels().length-1;t.min>0&&(t.min-=1),t.max<e&&(t.max+=1)}(t);let r={min:t.min+y(o.min),max:t.max-y(o.max)};return x(t,r,i,!0)},default:function(t,e,n,i){let o=m(t,e,n),r={min:t.min+o.min,max:t.max-o.max};return x(t,r,i,!0)},logarithmic:function(t,e,n,i){let o=function(t,e,n){let i=g(t,n);if(void 0===i)return{min:t.min,max:t.max};let o=Math.log10(t.min),r=Math.log10(t.max),a=r-o,s=f(Math.log10(i),o,a,a*(e-1));return{min:Math.pow(10,o+s.min),max:Math.pow(10,r-s.max)}}(t,e,n);return x(t,o,i,!0)}},S={default:function(t,e,n,i){x(t,function(t,e,n){let i=t.getValueForPixel(e),o=t.getValueForPixel(n);return{min:Math.min(i,o),max:Math.max(i,o)}}(t,e,n),i,!0)}},P={category:function(t,e,n){let i,o=t.getLabels().length-1,{min:r,max:a}=t,s=Math.max(a-r,1),l=Math.round((t.isHorizontal()?t.width:t.height)/Math.max(s,10)),c=Math.round(Math.abs(e/l));return e<-l?(a=Math.min(a+c,o),r=1===s?a:a-s,i=a===o):e>l&&(r=Math.max(0,r-c),a=1===s?r:r+s,i=0===r),x(t,{min:r,max:a},n)||i},default:w,logarithmic:M,timeseries:M};function E(t,e){(0,r.F)(t,(n,i)=>{e[i]||delete t[i]})}function k(t,e){let{scales:n}=t,{originalScaleLimits:i,updatedScaleLimits:o}=e;return(0,r.F)(n,function(t){(function(t,e,n){let{id:i,options:{min:o,max:r}}=t;if(!e[i]||!n[i])return!0;let a=n[i];return a.min!==o||a.max!==r})(t,i,o)&&(i[t.id]={min:{scale:t.min,options:t.options.min},max:{scale:t.max,options:t.options.max}})}),E(i,n),E(o,n),i}function C(t,e,n,i){let o=T[t.type]||T.default;(0,r.Q)(o,[t,e,n,i])}function D(t,e,n,i){let o=S[t.type]||S.default;(0,r.Q)(o,[t,e,n,i])}function O(t,e,n="none",i="api"){let{x:o=1,y:a=1,focalPoint:s=function(t){let e=t.chartArea;return{x:(e.left+e.right)/2,y:(e.top+e.bottom)/2}}(t)}="number"==typeof e?{x:e,y:e}:e,l=p(t),{options:{limits:c,zoom:h}}=l;k(t,l);let u=1!==o,f=1!==a,g=d(h,s,t);(0,r.F)(g||t.scales,function(t){t.isHorizontal()&&u?C(t,o,s,c):!t.isH
1orizontal()&&f&&C(t,a,s,c)}),t.update(n),(0,r.Q)(h.onZoom,[{chart:t,trigger:i}])}function A(t,e,n,i="none",o="api"){let a=p(t),{options:{limits:s,zoom:l}}=a,{mode:h="xy"}=l;k(t,a);let d=c(h,"x",t),u=c(h,"y",t);(0,r.F)(t.scales,function(t){t.isHorizontal()&&d?D(t,e.x,n.x,s):!t.isHorizontal()&&u&&D(t,e.y,n.y,s)}),t.update(i),(0,r.Q)(l.onZoom,[{chart:t,trigger:o}])}function z(t,e,n,i){let{panDelta:o}=i,a=o[t.id]||0;(0,r.s)(a)===(0,r.s)(e)&&(e+=a);let s=P[t.type]||P.default;(0,r.Q)(s,[t,e,n])?o[t.id]=0:o[t.id]=e}function I(t,e,n,i="none"){let{x:o=0,y:a=0}="number"==typeof e?{x:e,y:e}:e,s=p(t),{options:{pan:l,limits:c}}=s,{onPan:h}=l||{};k(t,s);let d=0!==o,u=0!==a;(0,r.F)(n||t.scales,function(t){t.isHorizontal()&&d?z(t,o,c,s):!t.isHorizontal()&&u&&z(t,a,c,s)}),t.update(i),(0,r.Q)(h,[{chart:t}])}function R(t){let e=p(t);k(t,e);let n={};for(let i of Object.keys(t.scales)){let{min:t,max:o}=e.originalScaleLimits[i]||{min:{},max:{}};n[i]={min:t.scale,max:o.scale}}return n}function X(t){let e=p(t);return e.panning||e.dragging}let _=(t,e,n)=>Math.min(n,Math.max(e,t));function Y(t,e){let{handlers:n}=p(t),i=n[e];i&&i.target&&(i.target.removeEventListener(e,i),delete n[e])}function j(t,e,n,i){let{handlers:o,options:r}=p(t),a=o[n];if(a&&a.target===e)return;Y(t,n),o[n]=e=>i(t,e,r),o[n].target=e;let s="wheel"!==n&&void 0;e.addEventListener(n,o[n],{passive:s})}function N(t,e){let n=p(t);n.dragStart&&(n.dragging=!0,n.dragEnd=e,t.update("none"))}function W(t,e){let n=p(t);n.dragStart&&"Escape"===e.key&&(Y(t,"keydown"),n.dragging=!1,n.dragStart=n.dragEnd=null,t.update("none"))}function H(t,e){if(t.target!==e.canvas){let n=e.canvas.getBoundingClientRect();return{x:t.clientX-n.left,y:t.clientY-n.top}}return(0,r.z)(t,e)}function V(t,e,n){let{onZoomStart:i,onZoomRejected:o}=n;if(i){let n=H(e,t);if(!1===(0,r.Q)(i,[{chart:t,event:e,point:n}]))return(0,r.Q)(o,[{chart:t,event:e}]),!1}}function F(t,e){if(t.legend){let n=(0,r.z)(e,t);if((0,r.C)(n,t.legend))return}let n=p(t),{pan:i,zoom:o={}}=n.options;if(0!==e.button||s(a(i),e)||l(a(o.drag),e))return(0,r.Q)(o.onZoomRejected,[{chart:t,event:e}]);!1!==V(t,e,o)&&(n.dragStart=e,j(t,t.canvas.ownerDocument,"mousemove",N),j(t,window.document,"keydown",W))}function L(t,e,n,{min:i,max:o,prop:r}){t[i]=_(Math.min(n.begin[r],n.end[r]),e[i],e[o]),t[o]=_(Math.max(n.begin[r],n.end[r]),e[i],e[o])}function Z(t,e,n,i){let o=c(e,"x",t),r=c(e,"y",t),{top:a,left:s,right:l,bottom:h,width:d,height:u}=t.chartArea,p={top:a,left:s,right:l,bottom:h},f=function(t,e,n){let i={begin:H(e.dragStart,t),end:H(e.dragEnd,t)};return n&&!function({begin:t,end:e},n){let i=e.x-t.x,o=e.y-t.y,r=Math.abs(i/o);r>n?i=Math.sign(i)*Math.abs(o*n):r<n&&(o=Math.sign(o)*Math.abs(i/n)),e.x=t.x+i,e.y=t.y+o}(i,t.chartArea.width/t.chartArea.height),i}(t,n,i&&o&&r);o&&L(p,t.chartArea,f,{min:"left",max:"right",prop:"x"}),r&&L(p,t.chartArea,f,{min:"top",max:"bottom",prop:"y"});let g=p.right-p.left,m=p.bottom-p.top;return{...p,width:g,height:m,zoomX:o&&g?1+(d-g)/d:1,zoomY:r&&m?1+(u-m)/u:1}}function q(t,e){let n=p(t);if(!n.dragStart)return;Y(t,"mousemove");let{mode:i,onZoomComplete:o,drag:{threshold:a=0,maintainAspectRatio:s}}=n.options.zoom,l=Z(t,i,{dragStart:n.dragStart,dragEnd:e},s),h=c(i,"x",t)?l.width:0,d=c(i,"y",t)?l.height:0,u=Math.sqrt(h*h+d*d);if(n.dragStart=n.dragEnd=null,u<=a){n.dragging=!1,t.update("none");return}A(t,{x:l.left,y:l.top},{x:l.right,y:l.bottom},"zoom","drag"),n.dragging=!1,n.filterNextClick=!0,(0,r.Q)(o,[{chart:t}])}function B(t,e){let{handlers:{onZoomComplete:n},options:{zoom:i}}=p(t);if(l(a(i.wheel),e)?((0,r.Q)(i.onZoomRejected,[{chart:t,event:e}]),true):!1===V(t,e,i)||(e.cancelable&&e.preventDefault(),void 0===e.deltaY))return;let o=e.target.getBoundingClientRect(),s=i.wheel.speed,c=e.deltaY>=0?2-1/(1-s):1+s;O(t,{x:c,y:c,focalPoint:{x:e.clientX-o.left,y:e.clientY-o.top}},"zoom","wheel"),(0,r.Q)(n,[{chart:t}])}function Q(t,e,n){if(e.scale){let{center:i,pointers:o}=n,r=1/e.scale*n.scale,a=n.target.getBoundingClientRect(),s=function(t,e){let n,i,o=Math.abs(t.clientX-e.clientX),r=Math.abs(t.clientY-e.clientY),a=o/r;return a>.3&&a<1.7?n=i=!0:o>r?n=!0:i=!0,{x:n,y:i}}(o[0],o[1]),l=e.options.zoom.mode,h={x:s.x&&c(l,"x",t)?r:1,y:s.y&&c(l,"y",t)?r:1,focalPoint:{x:i.x-a.left,y:i.y-a.top}};O(t,h,"zoom","pinch"),e.scale=n.scale}}function U(t,e,n){let i=e.delta;i&&(e.panning=!0,I(t,{x:n.deltaX-i.x,y:n.deltaY-i.y},e.panScales),e.delta={x:n.deltaX,y:n.deltaY})}let $=new WeakMap;function J(t,e){let n=p(t),i=t.canvas,{pan:c,zoom:h}
1=e,u=new(o()).Manager(i);(h&&h.pinch.enabled&&(u.add(new(o()).Pinch),u.on("pinchstart",e=>(function(t,e,n){if(e.options.zoom.pinch.enabled){let i=(0,r.z)(n,t);!1===(0,r.Q)(e.options.zoom.onZoomStart,[{chart:t,event:n,point:i}])?(e.scale=null,(0,r.Q)(e.options.zoom.onZoomRejected,[{chart:t,event:n}])):e.scale=1}})(t,n,e)),u.on("pinch",e=>Q(t,n,e)),u.on("pinchend",e=>{n.scale&&(Q(t,n,e),n.scale=null,(0,r.Q)(n.options.zoom.onZoomComplete,[{chart:t}]))})),c&&c.enabled)&&(u.add(new(o()).Pan({threshold:c.threshold,enable:function(e,i){let{pan:o,zoom:c={}}=n.options;if(!o||!o.enabled)return!1;let h=i&&i.srcEvent;return!h||!(!n.panning&&"mouse"===i.pointerType&&(l(a(o),h)||s(a(c.drag),h)))||((0,r.Q)(o.onPanRejected,[{chart:t,event:i}]),!1)}})),u.on("panstart",e=>(function(t,e,n){let{enabled:i,onPanStart:o,onPanRejected:a}=e.options.pan;if(!i)return;let s=n.target.getBoundingClientRect(),l={x:n.center.x-s.left,y:n.center.y-s.top};if(!1===(0,r.Q)(o,[{chart:t,event:n,point:l}]))return(0,r.Q)(a,[{chart:t,event:n}]);e.panScales=d(e.options.pan,l,t),e.delta={x:0,y:0},U(t,e,n)})(t,n,e)),u.on("panmove",e=>U(t,n,e)),u.on("panend",()=>{n.delta=null,n.panning&&(n.panning=!1,n.filterNextClick=!0,(0,r.Q)(n.options.pan.onPanComplete,[{chart:t}]))}));$.set(t,u)}function G(t){let e=$.get(t);e&&(e.remove("pinchstart"),e.remove("pinch"),e.remove("pinchend"),e.remove("panstart"),e.remove("pan"),e.remove("panend"),e.destroy(),$.delete(t))}function K(t,e,n){let i=n.zoom.drag,{dragStart:o,dragEnd:r}=p(t);if(i.drawTime!==e||!r)return;let{left:a,top:s,width:l,height:c}=Z(t,n.zoom.mode,{dragStart:o,dragEnd:r},i.maintainAspectRatio),h=t.ctx;h.save(),h.beginPath(),h.fillStyle=i.backgroundColor||"rgba(225,225,225,0.3)",h.fillRect(a,s,l,c),i.borderWidth>0&&(h.lineWidth=i.borderWidth,h.strokeStyle=i.borderColor||"rgba(225,225,225)",h.strokeRect(a,s,l,c)),h.restore()}
1var tt={id:"zoom",version:"2.2.0",defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(t,e,n){p(t).options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(n.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(n.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),o()&&J(t,n),t.pan=(e,n,i)=>I(t,e,n,i),t.zoom=(e,n)=>O(t,e,n),t.zoomRect=(e,n,i)=>A(t,e,n,i),t.zoomScale=(e,n,i)=>(function(t,e,n,i="none",o="api"){let a=p(t);k(t,a),x(t.scales[e],n,void 0,!0),t.update(i),(0,r.Q)(a.options.zoom?.onZoom,[{chart:t,trigger:o}])})(t,e,n,i),t.resetZoom=e=>(function(t,e="default"){let n=p(t),i=k(t,n);(0,r.F)(t.scales,function(t){let e=t.options;i[t.id]?(e.min=i[t.id].min.options,e.max=i[t.id].max.options):(delete e.min,delete e.max),delete n.updatedScaleLimits[t.id]}),t.update(e),(0,r.Q)(n.options.zoom.onZoomComplete,[{chart:t}])})(t,e),t.getZoomLevel=()=>(function(t){let e=p(t),n=1,i=1;return(0,r.F)(t.scales,function(t){let o=function(t,e){let n=t.originalScaleLimits[e];if(!n)return;let{min:i,max:o}=n;return(0,r.v)(o.options,o.scale)-(0,r.v)(i.options,i.scale)}(e,t.id);if(o){let e=Math.round(o/(t.max-t.min)*100)/100;n=Math.min(n,e),i=Math.max(i,e)}}),n<1?n:i})(t),t.getInitialScaleBounds=()=>R(t),t.getZoomedScaleBounds=()=>(function(t){let e=p(t),n={};for(let i of Object.keys(t.scales))n[i]=e.updatedScaleLimits[i];return n})(t),t.isZoomedOrPanned=()=>(function(t){let e=R(t);for(let n of Object.keys(t.scales)){let{min:i,max:o}=e[n];if(void 0!==i&&t.scales[n].min!==i||void 0!==o&&t.scales[n].max!==o)return!0}return!1})(t),t.isZoomingOrPanning=()=>X(t)},beforeEvent(t,{event:e}){if(X(t))return!1;if("click"===e.type||"mouseup"===e.type){let e=p(t);if(e.filterNextClick)return e.filterNextClick=!1,!1}},beforeUpdate:function(t,e,n){let i=p(t),o=i.options;i.options=n,function(t,e){let{pan:n,zoom:i}=t,{pan:o,zoom:r}=e;return i?.zoom?.pinch?.enabled!==r?.zoom?.pinch?.enabled||n?.enabled!==o?.enabled||n?.threshold!==o?.threshold}(o,n)&&(G(t),J(t,n)),function(t,e){let n=t.canvas,{wheel:i,drag:o,onZoomComplete:a}=e.zoom;if(i.enabled){var s;let e;j(t,n,"wheel",B),a&&(p(t).handlers.onZoomComplete=(s=()=>(0,r.Q)(a,[{chart:t}]),function(){return clearTimeout(e),e=setTimeout(s,250),250}))}else Y(t,"wheel");o.enabled?(j(t,n,"mousedown",F),j(t,n.ownerDocument,"mouseup",q)):(Y(t,"mousedown"),Y(t,"mousemove"),Y(t,"mouseup"),Y(t,"keydown"))}(t,n)},beforeDatasetsDraw(t,e,n){K(t,"beforeDatasetsDraw",n)},afterDatasetsDraw(t,e,n){K(t,"afterDatasetsDraw",n)},beforeDraw(t,e,n){K(t,"beforeDraw",n)},afterDraw(t,e,n){K(t,"afterDraw",n)},stop:function(t){Y(t,"mousedown"),Y(t,"mousemove"),Y(t,"mouseup"),Y(t,"wheel"),Y(t,"click"),Y(t,"keydown"),o()&&G(t),u.delete(t)},panFunctions:P,zoomFunctions:T,zoomRectFunctions:S}}}]);
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.