1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[698],{5716:(t,e,o)=>{var n,r="__lodash_hash_undefined__",i=/^\[object .+?Constructor\]$/,a="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g,s="object"==typeof self&&self&&self.Object===Object&&self,l=a||s||Function("return this")(),d=Array.prototype,u=Function.prototype,c=Object.prototype,h=l["__core-js_shared__"],p=(n=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",f=u.toString,y=c.hasOwnProperty,x=c.toString,g=RegExp("^"+f.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),b=d.splice,m=S(l,"Map"),v=S(Object,"create");function w(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var n=t[e];this.set(n[0],n[1])}}function C(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var n=t[e];this.set(n[0],n[1])}}function M(t){var e=-1,o=t?t.length:0;for(this.clear();++e<o;){var n=t[e];this.set(n[0],n[1])}}function P(t,e){for(var o,n,r=t.length;r--;){if(o=t[r][0],o===(n=e)||o!=o&&n!=n)return r}return -1}function k(t,e){var o,n,r=t.__data__;return("string"==(n=typeof(o=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==o:null===o)?r["string"==typeof e?"string":"hash"]:r.map}function S(t,e){var o,n,r,a=null==t?void 0:t[e];return!(!D(a)||(o=a,p&&p in o))&&("[object Function]"==(r=D(n=a)?x.call(n):"")||"[object GeneratorFunction]"==r||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(a)?g:i).test(function(t){if(null!=t){try{return f.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(a))?a:void 0}function _(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw TypeError("Expected a function");var o=function(){var n=arguments,r=e?e.apply(this,n):n[0],i=o.cache;if(i.has(r))return i.get(r);var a=t.apply(this,n);return o.cache=i.set(r,a),a};return o.cache=new(_.Cache||M),o}function D(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}w.prototype.clear=function(){this.__data__=v?v(null):{}},w.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},w.prototype.get=function(t){var e=this.__data__;if(v){var o=e[t];return o===r?void 0:o}return y.call(e,t)?e[t]:void 0},w.prototype.has=function(t){var e=this.__data__;return v?void 0!==e[t]:y.call(e,t)},w.prototype.set=function(t,e){return this.__data__[t]=v&&void 0===e?r:e,this},C.prototype.clear=function(){this.__data__=[]},C.prototype.delete=function(t){var e=this.__data__,o=P(e,t);return!(o<0)&&(o==e.length-1?e.pop():b.call(e,o,1),!0)},C.prototype.get=function(t){var e=this.__data__,o=P(e,t);return o<0?void 0:e[o][1]},C.prototype.has=function(t){return P(this.__data__,t)>-1}
1,C.prototype.set=function(t,e){var o=this.__data__,n=P(o,t);return n<0?o.push([t,e]):o[n][1]=e,this},M.prototype.clear=function(){this.__data__={hash:new w,map:new(m||C),string:new w}},M.prototype.delete=function(t){return k(this,t).delete(t)},M.prototype.get=function(t){return k(this,t).get(t)},M.prototype.has=function(t){return k(this,t).has(t)},M.prototype.set=function(t,e){return k(this,t).set(t,e),this},_.Cache=M,t.exports=_},20011:(t,e,o)=>{"use strict";o.d(e,{t1:()=>n.t1});var n=o(81047);n.t1.register(...n.$L)},57879:(t,e,o)=>{"use strict";o.d(e,{A:()=>tT});var n=o(81047),r=o(6238);let i={point:(t,e)=>s(t,e,{intersect:!0}),nearest:(t,e,o)=>{var n,i;let a;return a=1/0,s(t,n=e,i=o).reduce((t,e)=>{var o;let s=e.getCenterPoint(),l="x"===(o=i.axis)?{x:n.x,y:s.y}:"y"===o?{x:s.x,y:n.y}:s,d=(0,r.aE)(n,l);return d<a?(t=[e],a=d):d===a&&t.push(e),t},[]).sort((t,e)=>t._index-e._index).slice(0,1)},x:(t,e,o)=>s(t,e,{intersect:o.intersect,axis:"x"}),y:(t,e,o)=>s(t,e,{intersect:o.intersect,axis:"y"})};function a(t,e,o){return(i[o.mode]||i.nearest)(t,e,o)}function s(t,e,o){return t.visibleElements.filter(t=>{var n;return o.intersect?t.inRange(e.x,e.y):"x"!==(n=o.axis)&&"y"!==n?t.inRange(e.x,e.y,"x",!0)||t.inRange(e.x,e.y,"y",!0):t.inRange(e.x,e.y,n,!0)})}let l=(t,e)=>e>t||t.length>e.length&&t.slice(0,e.length)===e,d=(t,e,o)=>Math.min(o,Math.max(e,t));function u(t,{x:e,y:o,x2:n,y2:r},i,a){let s=a/2,l=t.x>=e-s-.001&&t.x<=n+s+.001,d=t.y>=o-s-.001&&t.y<=r+s+.001;return"x"===i?l:"y"===i?d:l&&d}function c(t,e){let{centerX:o,centerY:n}=t.getProps(["centerX","centerY"],e);return{x:o,y:n}}let h=t=>"string"==typeof t&&t.endsWith("%"),p=t=>d(parseFloat(t)/100,0,1),f=(t,e)=>({x:t,y:e,x2:t,y2:e,width:0,height:0}),y={box:t=>f(t.centerX,t.centerY),ellipse:t=>({centerX:t.centerX,centerY:t.centerX,radius:0,width:0,height:0}),label:t=>f(t.centerX,t.centerY),line:t=>f(t.x,t.y),point:t=>({centerX:t.centerX,centerY:t.centerY,radius:0,width:0,height:0}),polygon:t=>f(t.centerX,t.centerY)};function x(t,e){return"start"===e?0:"end"===e?t:h(e)?p(e)*t:t/2}function g(t,e,o=!0){return"number"==typeof e?e:h(e)?(o?p(e):parseFloat(e)/100)*t:t}function b(t,e="center"){return(0,r.i)(t)?{x:(0,r.v)(t.x,e),y:(0,r.v)(t.y,e)}:{x:t=(0,r.v)(t,e),y:t}}function m(t){return t&&((0,r.h)(t.xValue)||(0,r.h)(t.yValue))}function v(t,e,o){var n,i,a;let s,l=o.init;return l?!0===l?C(e,o):(n=t,i=e,a=o,!0===(s=(0,r.Q)(a.init,[{chart:n,properties:i,options:a}]))?C(i,a):(0,r.i)(s)?s:void 0):void 0}function w(t,e,o){let n=!1;return e.forEach(e=>{(0,r.a7)(t[e])?(n=!0,o[e]=t[e]):(0,r.h)(o[e])&&delete o[e]}),n}function C(t,e){return y[e.type||"line"](t)}let M=new Map;function P(t){if(t&&"object"==typeof t){let e=t.toString();return"[object HTMLImageElement]"===e||"[object HTMLCanvasElement]"===e}}function k(t,{x:e,y:o},n){n&&(t.translate(e,o),t.rotate((0,r.t)(n)),t.translate(-e,-o))}function S(t,e){if(e&&e.borderWidth)return t.lineCap=e.borderCapStyle,t.setLineDash(e.borderDash),t.lineDashOffset=e.borderDashOffset,t.lineJoin=e.borderJoinStyle,t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor,!0}function _(t,e){t.shadowColor=e.backgroundShadowColor,t.shadowBlur=e.shadowBlur,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY}function D(t,e){let o=e.content;if(P(o))return{width:g(o.width,e.width),height:g(o.height,e.height)};let n=e.font,i=(0,r.b)(n)?n.map(t=>(0,r.a0)(t)):[(0,r.a0)(n)],a=e.textStrokeWidth,s=(0,r.b)(o)?o:[o],l=s.join()+i.reduce(function(t,e){return t+e.string},"")+a+(t._measureText?"-spriting":"");return M.has(l)||M.set(l,function(t,e,o,n){t.save();let r=e.length,i=0,a=n;for(let s=0;s<r;s++){let r=o[Math.min(s,o.length-1)];t.font=r.string;let l=e[s];i=Math.max(i,t.measureText(l).width+n),a+=r.lineHeight}return t.restore(),{width:i,height:a}}(t,s,i,a)),M.get(l)}function O(t,e,o){let{x:n,y:i,width:a,height:s}=e;t.save(),_(t,o);let l=S(t,o);t.fillStyle=o.backgroundColor,t.beginPath(),(0,r.au)(t,{x:n,y:i,w:a,h:s,radius:function(t,e){for(let o of Object.keys(t))t[o]=d(t[o],0,e);return t}((0,r.aw)(o.borderRadius),Math.min(a,s)/2)}),t.closePath(),t.fill(),l&&(t.shadowColor=o.borderShadowColor,t.stroke()),t.restore(
1)}let T={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 R(t,e,o){return e="number"==typeof e?e:t.parse(e),(0,r.g)(e)?t.getPixelForValue(e):o}function j(t,e,o){let n=e[o];if(n||"scaleID"===o)return n;let r=o.charAt(0),i=Object.values(t).filter(t=>t.axis&&t.axis===r);return i.length?i[0].id:r}function A(t,e){if(t){let o=t.options.reverse;return{start:R(t,e.min,o?e.end:e.start),end:R(t,e.max,o?e.start:e.end)}}}function I(t,e){let{chartArea:o,scales:n}=t,r=n[j(n,e,"xScaleID")],i=n[j(n,e,"yScaleID")],a=o.width/2,s=o.height/2;return r&&(a=R(r,e.xValue,r.left+r.width/2)),i&&(s=R(i,e.yValue,i.top+i.height/2)),{x:a,y:s}}function E(t,e){let o=t.scales,n=o[j(o,e,"xScaleID")],r=o[j(o,e,"yScaleID")];if(!n&&!r)return{};let{left:i,right:a}=n||t.chartArea,{top:s,bottom:l}=r||t.chartArea,d=X(n,{min:e.xMin,max:e.xMax,start:i,end:a});i=d.start,a=d.end;let u=X(r,{min:e.yMin,max:e.yMax,start:l,end:s});return{x:i,y:s=u.start,x2:a,y2:l=u.end,width:a-i,height:l-s,centerX:i+(a-i)/2,centerY:s+(l-s)/2}}function W(t,e){var o;let n,r;if(!m(e)){let o=E(t,e),n=e.radius;(!n||isNaN(n))&&(e.radius=n=Math.min(o.width,o.height)/2);let r=2*n,i=o.centerX+e.xAdjust,a=o.centerY+e.yAdjust;return{x:i-n,y:a-n,x2:i+n,y2:a+n,centerX:i,centerY:a,width:r,height:r,radius:n}}return n=I(t,o=e),r=2*o.radius,{x:n.x-o.radius+o.xAdjust,y:n.y-o.radius+o.yAdjust,x2:n.x+o.radius+o.xAdjust,y2:n.y+o.radius+o.yAdjust,centerX:n.x+o.xAdjust,centerY:n.y+o.yAdjust,radius:o.radius,width:r,height:r}}function Y(t,e){var o,n,i;let a,s,l,d,u,c,h,p,f=E(t,e);return f.initProperties=v(t,f,e),f.elements=[{type:"label",optionScope:"label",properties:(o=t,n=f,(a=(i=e).label).backgroundColor="transparent",a.callout.display=!1,s=b(a.position),l=(0,r.E)(a.padding),u=function({properties:t,options:e},o,n,r){let{x:i,x2:a,width:s}=t;return V({start:i,end:a,size:s,borderWidth:e.borderWidth},{position:n.x,padding:{start:r.left,end:r.right},adjust:e.label.xAdjust,size:o.width})}({properties:n,options:i},d=D(o.ctx,a),s,l),c=function({properties:t,options:e},o,n,r){let{y:i,y2:a,height:s}=t;return V({start:i,end:a,size:s,borderWidth:e.borderWidth},{position:n.y,padding:{start:r.top,end:r.bottom},adjust:e.label.yAdjust,size:o.height})}({properties:n,options:i},d,s,l),h=d.width+l.width,{x:u,y:c,x2:u+h,y2:c+(p=d.height+l.height),width:h,height:p,centerX:u+h/2,centerY:c+p/2,rotation:a.rotation}),initProperties:f.initProperties}],f}function X(t,e){let o=A(t,e)||e;return{start:Math.min(o.start,o.end),end:Math.max(o.start,o.end)}}function V(t,e){let{start:o,end:n,borderWidth:r}=t,{position:i,padding:{start:a,end:s},adjust:l}=e,d=n-r-o-a-s-e.size;return o+r/2+l+x(d,i)}function F(t,e,o){let n=Math.cos(o),r=Math.sin(o),i=e.x,a=e.y;return{x:i+n*(t.x-i)-r*(t.y-a),y:a+r*(t.x-i)+n*(t.y-a)}}let H=["enter","leave"],$=H.concat("click");function B({state:t,event:e},o,n,r){let i;for(let a of n)0>r.indexOf(a)&&(i=z(a.options[o]||t.listeners[o],a,e)||i);return i}function z(t,e,o){return!0===(0,r.Q)(t,[e.$context,o])}let L=["afterDraw","beforeDraw"];function N(t,e,o){if(t.hooked){let n=e.options[o]||t.hooks[o];return(0,r.Q)(n,[e.$context])}}function U(t,e,o,n){var i,a,s;if((0,r.g)(e[o])&&(i=t.options,a=o,s=n,!((0,r.h)(i[a])||(0,r.h)(i[s])))){let n=t[o]!==e[o];return t[o]=e[o],n}}function G(t,e,o,n){for(let i of o){let o=t[i];if((0,r.h)(o)){let t=e.parse(o);n.min=Math.min(n.min,t),n.max=Math.max(n.max,t)}}}class Q extends n.Hg{inRange(t,e,o,n){let{x:i,y:a}=F({x:t,y:e},this.getCenterPoint(n),(0,r.t)(-this.options.rotation));return u({x:i,y:a},this.getProps(["x","y","x2","y2"],n),o,this.options.borderWidth)}getCenterPoint(t){return c(this,t)}draw(t){t.save(),k(t,this.getCenterPoint(),this.options.rotation),O(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return Y(t,e)}}Q.id="boxAnnotation",Q.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 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,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},Q.defaultRoutes={borderColor:"color",backgroundColor:"color"},Q.descriptors={label:{_fallback:!0}};let q=["left","bottom","top","right"];class J extends n.Hg{inRange(t,e,o,n){let{x:i,y:a}=F({x:t,y:e},this.getCenterPoint(n),(0,r.t)(-this.rotation));return u({x:i,y:a},this.getProps(["x","y","x2","y2"],n),o,this.options.borderWidth)}getCenterPoint(t){return c(this,t)}draw(t){let e=this.options,o=!(0,r.h)(this._visible)||this._visible;e.display&&e.content&&o&&(t.save(),k(t,this.getCenterPoint(),this.rotation),function(t,e){var o,n;let i,{pointX:a,pointY:s,options:l}=e,d=l.callout,u=d&&d.display&&(o=e,i=(n=d).position,q.includes(i)?i:function(t,e){let{x:o,y:n,x2:i,y2:a,width:s,height:l,pointX:d,pointY:u,centerX:c,centerY:h,rotation:p}=t,f={x:c,y:h}
1,y=e.start,x=g(s,y),b=g(l,y),m=[o,o+x,o+x,i],v=[n+b,a,n,a],w=[];for(let t=0;t<4;t++){let e=F({x:m[t],y:v[t]},f,(0,r.t)(p));w.push({position:q[t],distance:(0,r.aE)(e,{x:d,y:u})})}return w.sort((t,e)=>t.distance-e.distance)[0].position}(o,n));if(!u||function(t,e,o){let{pointX:n,pointY:r}=t,i=e.margin,a=n,s=r;return"left"===o?a+=i:"right"===o?a-=i:"top"===o?s+=i:"bottom"===o&&(s-=i),t.inRange(a,s)}(e,d,u))return;if(t.save(),t.beginPath(),!S(t,d))return t.restore();let{separatorStart:c,separatorEnd:h}=function(t,e){let o,n,{x:r,y:i,x2:a,y2:s}=t,l=function(t,e){let{width:o,height:n,options:r}=t,i=r.callout.margin+r.borderWidth/2;return"right"===e?o+i:"bottom"===e?n+i:-i}(t,e);return n="left"===e||"right"===e?{x:(o={x:r+l,y:i}).x,y:s}:{x:a,y:(o={x:r,y:i+l}).y},{separatorStart:o,separatorEnd:n}}(e,u),{sideStart:p,sideEnd:f}=function(t,e,o){var n;let r,i,a,{y:s,width:l,height:d,options:u}=t,c=u.callout.start,h=(n=e,r=u.callout.side,"left"===n||"top"===n?-r:r);return a="left"===e||"right"===e?{x:(i={x:o.x,y:s+g(d,c)}).x+h,y:i.y}:{x:(i={x:o.x+g(l,c),y:o.y}).x,y:i.y+h},{sideStart:i,sideEnd:a}}(e,u,c);(d.margin>0||0===l.borderWidth)&&(t.moveTo(c.x,c.y),t.lineTo(h.x,h.y)),t.moveTo(p.x,p.y),t.lineTo(f.x,f.y);let y=F({x:a,y:s},e.getCenterPoint(),(0,r.t)(-e.rotation));t.lineTo(y.x,y.y),t.stroke(),t.restore()}(t,this),O(t,this,e),function(t,e,o){let n=o.content;if(P(n)){var i,a;let s;t.save(),i=o.opacity,a=n.style.opacity,s=(0,r.x)(i)?i:a,t.globalAlpha=(0,r.x)(s)?d(s,0,1):1,t.drawImage(n,e.x,e.y,e.width,e.height),t.restore();return}let s=(0,r.b)(n)?n:[n],l=o.font,u=(0,r.b)(l)?l.map(t=>(0,r.a0)(t)):[(0,r.a0)(l)],c=o.color,h=(0,r.b)(c)?c:[c],p=function(t,e){let{x:o,width:n}=t,r=e.textAlign;return"center"===r?o+n/2:"end"===r||"right"===r?o+n:o}(e,o),f=e.y+o.textStrokeWidth/2;t.save(),t.textBaseline="middle",t.textAlign=o.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,o)&&function(t,{x:e,y:o},n,r){t.beginPath();let i=0;n.forEach(function(n,a){let s=r[Math.min(a,r.length-1)],l=s.lineHeight;t.font=s.string,t.strokeText(n,e,o+l/2+i),i+=l}),t.stroke()}(t,{x:p,y:f},s,u),function(t,{x:e,y:o},n,{fonts:r,colors:i}){let a=0;n.forEach(function(n,s){let l=i[Math.min(s,i.length-1)],d=r[Math.min(s,r.length-1)],u=d.lineHeight;t.beginPath(),t.font=d.string,t.fillStyle=l,t.fillText(n,e,o+u/2+a),a+=u,t.fill()})}(t,{x:p,y:f},s,{fonts:u,colors:h}),t.restore()}(t,function({x:t,y:e,width:o,height:n,options:i}){let a=i.borderWidth/2,s=(0,r.E)(i.padding);return{x:t+s.left+a,y:e+s.top+a,width:o-s.left-s.right-i.borderWidth,height:n-s.top-s.bottom-i.borderWidth}}(this),e),t.restore())}resolveElementProperties(t,e){var o,n,i,a;let s,l,d,u,c,h;if(m(e))s=I(t,e);else{let{centerX:o,centerY:n}=E(t,e);s={x:o,y:n}}let p=(0,r.E)(e.padding),f=(o=s,n=D(t.ctx,e),i=e,a=p,l=n.width+a.width+i.borderWidth,d=n.height+a.height+i.borderWidth,u=b(i.position,"center"),c=K(o.x,l,i.xAdjust,u.x),{x:c,y:h=K(o.y,d,i.yAdjust,u.y),x2:c+l,y2:h+d,width:l,height:d,centerX:c+l/2,centerY:h+d/2});return{initProperties:v(t,f,e),pointX:s.x,pointY:s.y,...f,rotation:e.rotation}}}function K(t,e,o=0,n){return t-x(e,n)+o}J.id="labelAnnotation",J.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,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},J.defaultRoutes={borderColor:"color"};let Z=(t,e,o)=>({x:t.x+o*(e.x-t.x),y:t.y+o*(e.y-t.y)}),tt=(t,e,o)=>Z(e,o,Math.abs((t-e.y)/(o.y-e.y))).x,te=(t,e,o)=>Z(e,o,Math.abs((t-e.x)/(o.x-e.x))).y,to=(t,e,o,n)=>(1-n)*(1-n)*t+2*(1-n)*n*e+n*n*o,tn=(t,e,o,n)=>({x:to(t.x,e.x,o.x,n),y:to(t.y,e.y,o.y,n)}),tr=(t,e,o,n)=>2*(1-n)*(e-t)+2*n*(o-e),ti=(t,e,o,n)=>
1-Math.atan2(tr(t.x,e.x,o.x,n),tr(t.y,e.y,o.y,n))+.5*r.P;class ta extends n.Hg{inRange(t,e,o,n){let r=this.options.borderWidth/2;if("x"!==o&&"y"!==o){let o={mouseX:t,mouseY:e},{path:i,ctx:a}=this;if(i){S(a,this.options);let{chart:r}=this.$context,s=t*r.currentDevicePixelRatio,l=e*r.currentDevicePixelRatio,d=a.isPointInStroke(i,s,l)||td(this,o,n);return a.restore(),d}return function(t,{mouseX:e,mouseY:o},n=.001,r){let i,a,s,l,{x:d,y:u,x2:c,y2:h}=t.getProps(["x","y","x2","y2"],r),p=c-d,f=h-u,y=p*p+f*f,x=0===y?-1:((e-d)*p+(o-u)*f)/y;return x<0?(i=d,a=u):x>1?(i=c,a=h):(i=d+x*p,a=u+x*f),(s=e-i)*s+(l=o-a)*l<=n}(this,o,r*r,n)||td(this,o,n)}return function(t,{mouseX:e,mouseY:o},n,{hBorderWidth:r,useFinalPosition:i}){let a=((t,e,{x:o,y:n,x2:r,y2:i},a)=>"y"===a?{start:Math.min(n,i),end:Math.max(n,i),value:e}:{start:Math.min(o,r),end:Math.max(o,r),value:t})(e,o,t.getProps(["x","y","x2","y2"],i),n);return a.value>=a.start-r&&a.value<=a.end+r||td(t,{mouseX:e,mouseY:o},i,n)}(this,{mouseX:t,mouseY:e},o,{hBorderWidth:r,useFinalPosition:n})}getCenterPoint(t){return c(this,t)}draw(t){let{x:e,y:o,x2:n,y2:i,cp:a,options:s}=this;if(t.save(),!S(t,s))return t.restore();_(t,s);let l=Math.sqrt(Math.pow(n-e,2)+Math.pow(i-o,2));if(s.curve&&a)return function(t,e,o,n){let{x:i,y:a,x2:s,y2:l,options:d}=e,{startOpts:u,endOpts:c,startAdjust:h,endAdjust:p}=th(e),f={x:i,y:a},y={x:s,y:l},x=ti(f,o,y,0),g=ti(f,o,y,1)-r.P,b=tn(f,o,y,h/n),m=tn(f,o,y,1-p/n),v=new Path2D;t.beginPath(),v.moveTo(b.x,b.y),v.quadraticCurveTo(o.x,o.y,m.x,m.y),t.shadowColor=d.borderShadowColor,t.stroke(v),e.path=v,e.ctx=t,ty(t,b,{angle:x,adjust:h},u),ty(t,m,{angle:g,adjust:p},c)}(t,this,a,l),t.restore();let{startOpts:d,endOpts:u,startAdjust:c,endAdjust:h}=th(this),p=Math.atan2(i-o,n-e);t.translate(e,o),t.rotate(p),t.beginPath(),t.moveTo(0+c,0),t.lineTo(l-h,0),t.shadowColor=s.borderShadowColor,t.stroke(),tf(t,0,c,d),tf(t,l,-h,u),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){var o,n,i;let a,s,l,d=function(t,e){var o,n,r;let i,a,{scales:s,chartArea:l}=t,d=s[e.scaleID],u={x:l.left,y:l.top,x2:l.right,y2:l.bottom};return d?(o=d,n=u,i=R(o,(r=e).value,NaN),a=R(o,r.endValue,i),o.isHorizontal()?(n.x=i,n.x2=a):(n.y=i,n.y2=a)):function(t,e,o){for(let n of Object.keys(T)){let r=t[j(t,o,n)];if(r){let{min:t,max:i,start:a,end:s,startProp:l,endProp:d}=T[n],u=A(r,{min:o[t],max:o[i],start:r[a],end:r[s]});e[l]=u.start,e[d]=u.end}}}(s,u,e),u}(t,e),{x:u,y:c,x2:h,y2:p}=d,f=function({x:t,y:e,x2:o,y2:n},{top:r,right:i,bottom:a,left:s}){return!(t<s&&o<s||t>i&&o>i||e<r&&n<r||e>a&&n>a)}(d,t.chartArea),y=f?function(t,e,o){let{x:n,y:r}=tl(t,e,o),{x:i,y:a}=tl(e,t,o);return{x:n,y:r,x2:i,y2:a,width:Math.abs(i-n),height:Math.abs(a-r)}}({x:u,y:c},{x:h,y:p},t.chartArea):{x:u,y:c,x2:h,y2:p,width:Math.abs(h-u),height:Math.abs(p-c)};if(y.centerX=(h+u)/2,y.centerY=(p+c)/2,y.initProperties=v(t,y,e),e.curve){let t={x:y.x,y:y.y},o={x:y.x2,y:y.y2};y.cp=function(t,e,o){let{x:n,y:r,x2:i,y2:a,centerX:s,centerY:l}=t,d=Math.atan2(a-r,i-n),u=b(e.controlPoint,0);return F({x:s+g(o,u.x,!1),y:l+g(o,u.y,!1)},{x:s,y:l},d)}(y,e,(0,r.aE)(t,o))}let m=(o=t,n=y,a=(i=e.label).borderWidth,s=(0,r.E)(i.padding),l=D(o.ctx,i),function(t,e,o,n){var i,a,s,l,d,u;let c,h,p,{width:f,height:y,padding:g}=o,{xAdjust:b,yAdjust:m}=e,v={x:t.x,y:t.y},w={x:t.x2,y:t.y2},C="auto"===e.rotation?function(t){let{x:e,y:o,x2:n,y2:i}=t,a=Math.atan2(i-o,n-e);return a>r.P/2?a-r.P:a<-(r.P/2)?a+r.P:a}(t):(0,r.t)(e.rotation),M=(i=f,a=y,c=Math.cos(s=C),{w:Math.abs(i*c)+Math.abs(a*(h=Math.sin(s))),h:Math.abs(i*h)+Math.abs(a*c)}),P=(l=t,d=e,u={labelSize:M,padding:g},p=function(t,e){let{x:o,x2:n,y:r,y2:i}=t,a=Math.min(r,i)-e.top,s=Math.min(o,n)-e.left,l=e.bottom-Math.max(r,i),d=e.right-Math.max(o,n);return{x:Math.min(s,d),y:Math.min(a,l),dx:s<=d?1:-1,dy:a<=l?1:-1}}(l,n),"start"===d.position?tu({w:l.x2-l.x,h:l.y2-l.y},u,d,p):"end"===d.position?1-tu({w:l.x-l.x2,h:l.y-l.y2},u,d,p):x(1,d.position)),k=t.cp?tn(v,t.cp,w,P):Z(v,w,P),S={size:M.w,min:n.left,max:n.right,padding:g.left},_={size:M.h,min:n.top,max:n.bottom,padding:g.top},D=tc(k.x,S)+b,O=tc(k.y,_)+m;return{x:D-f/2,y:O-y/2,x2:D+f/2,y2:O+y/2,centerX:D,centerY:O,pointX:k.x,pointY:k.y,width:f,height:y,rotation:(0,r.U)(C)}}(n,i,{width:l.width+s.width+a,height:l.height+s.height+a,padding:s},o.chartArea));return m._visible=f,y.elements=[{type:"label",optionScope:"label",properties:m,initProperties:y.initProperties}],y}}ta.id="lineAnnotation";let ts={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 tl({x:t,y:e}
1,o,{top:n,right:r,bottom:i,left:a}){return t<a&&(e=te(a,{x:t,y:e},o),t=a),t>r&&(e=te(r,{x:t,y:e},o),t=r),e<n&&(t=tt(n,{x:t,y:e},o),e=n),e>i&&(t=tt(i,{x:t,y:e},o),e=i),{x:t,y:e}}function td(t,{mouseX:e,mouseY:o},n,r){let i=t.label;return i.options.display&&i.inRange(e,o,r,n)}function tu(t,e,o,n){let{labelSize:r,padding:i}=e,a=t.w*n.dx,s=t.h*n.dy;return d(Math.max(a>0&&(r.w/2+i.left-n.x)/a,s>0&&(r.h/2+i.top-n.y)/s),0,.25)}function tc(t,e){let{size:o,min:n,max:r,padding:i}=e,a=o/2;return o>r-n?(r+n)/2:(n>=t-i-a&&(t=n+i+a),r<=t+i+a&&(t=r-i-a),t)}function th(t){let e=t.options,o=e.arrowHeads&&e.arrowHeads.start,n=e.arrowHeads&&e.arrowHeads.end;return{startOpts:o,endOpts:n,startAdjust:tp(t,o),endAdjust:tp(t,n)}}function tp(t,e){if(!e||!e.display)return 0;let{length:o,width:n}=e,r=t.options.borderWidth/2;return Math.abs(tt(0,{x:o,y:n+r},{x:0,y:r}))}function tf(t,e,o,n){if(!n||!n.display)return;let{length:r,width:i,fill:a,backgroundColor:s,borderColor:l}=n,d=Math.abs(e-r)+o;t.beginPath(),_(t,n),S(t,n),t.moveTo(d,-i),t.lineTo(e+o,0),t.lineTo(d,i),!0===a?(t.fillStyle=s||l,t.closePath(),t.fill(),t.shadowColor="transparent"):t.shadowColor=n.borderShadowColor,t.stroke()}function ty(t,{x:e,y:o},{angle:n,adjust:r},i){i&&i.display&&(t.save(),t.translate(e,o),t.rotate(n),tf(t,0,-r,i),t.restore())}ta.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},ts),fill:!1,length:12,start:Object.assign({},ts),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 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({},J.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,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},ta.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},ta.defaultRoutes={borderColor:"color"};class tx extends n.Hg{inRange(t,e,o,n){let i=this.options.rotation,a=this.options.borderWidth;if("x"!==o&&"y"!==o)return function(t,e,o,n){let{width:i,height:a,centerX:s,centerY:l}=e,d=i/2,u=a/2;if(d<=0||u<=0)return!1;let c=(0,r.t)(o||0),h=n/2||0,p=Math.cos(c),f=Math.sin(c);return Math.pow(p*(t.x-s)+f*(t.y-l),2)/Math.pow(d+h,2)+Math.pow(f*(t.x-s)-p*(t.y-l),2)/Math.pow(u+h,2)<=1.0001}({x:t,y:e},this.getProps(["width","height","centerX","centerY"],n),i,a);let{x:s,y:l,x2:d,y2:u}=this.getProps(["x","y","x2","y2"],n),c=a/2,h="y"===o?{start:l,end:u}:{start:s,end:d},p=F({x:t,y:e},this.getCenterPoint(n),(0,r.t)(-i));return p[o]>=h.start-c-.001&&p[o]<=h.end+c+.001}getCenterPoint(t){return c(this,t)}draw(t){let{width:e,height:o,centerX:n,centerY:i,options:a}=this;t.save(),k(t,this.getCenterPoint(),a.rotation),_(t,this.options),t.beginPath(),t.fillStyle=a.backgroundColor;let s=S(t,a);t.ellipse(n,i,o/2,e/2,r.P/2,0,2*r.P),t.fill(),s&&(t.shadowColor=a.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return Y(t,e)}}tx.id="ellipseAnnotation",tx.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},Q.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},tx.defaultRoutes={borderColor:"color",backgroundColor:"color"},tx.descriptors={label:{_fallback:!0}};class tg extends n.Hg{inRange(t,e,o,n){let{x:r,y:i,x2:a,y2:s,width:l}=this.getProps(["x","y","x2","y2","width"],n),d=this.options.borderWidth;if("x"!==o&&"y"!==o){var u,c,h;return u={x:t,y:e},c=this.getCenterPoint(n),h=l/2,!!u&&!!c&&!(h<=0)&&Math.pow(u.x-c.x,2)+Math.pow(u.
1y-c.y,2)<=Math.pow(h+d/2,2)}let p=d/2,f="y"===o?{start:i,end:s,value:e}:{start:r,end:a,value:t};return f.value>=f.start-p&&f.value<=f.end+p}getCenterPoint(t){return c(this,t)}draw(t){let e=this.options,o=e.borderWidth;if(e.radius<.1)return;t.save(),t.fillStyle=e.backgroundColor,_(t,e);let n=S(t,e);!function(t,e,o,n){let{radius:i,options:a}=e,s=a.pointStyle,l=a.rotation,d=(l||0)*r.b3;if(P(s)){t.save(),t.translate(o,n),t.rotate(d),t.drawImage(s,-s.width/2,-s.height/2,s.width,s.height),t.restore();return}isNaN(i)||i<=0||function(t,{x:e,y:o,radius:n,rotation:i,style:a,rad:s}){let l,d,u,c;switch(t.beginPath(),a){default:t.arc(e,o,n,0,r.T),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(s)*n,o-Math.cos(s)*n),s+=r.b5,t.lineTo(e+Math.sin(s)*n,o-Math.cos(s)*n),s+=r.b5,t.lineTo(e+Math.sin(s)*n,o-Math.cos(s)*n),t.closePath();break;case"rectRounded":c=.516*n,u=n-c,l=Math.cos(s+r.b4)*u,d=Math.sin(s+r.b4)*u,t.arc(e-l,o-d,c,s-r.P,s-r.H),t.arc(e+d,o-l,c,s-r.H,s),t.arc(e+l,o+d,c,s,s+r.H),t.arc(e-d,o+l,c,s+r.H,s+r.P),t.closePath();break;case"rect":if(!i){u=Math.SQRT1_2*n,t.rect(e-u,o-u,2*u,2*u);break}s+=r.b4;case"rectRot":l=Math.cos(s)*n,d=Math.sin(s)*n,t.moveTo(e-l,o-d),t.lineTo(e+d,o-l),t.lineTo(e+l,o+d),t.lineTo(e-d,o+l),t.closePath();break;case"crossRot":s+=r.b4;case"cross":l=Math.cos(s)*n,d=Math.sin(s)*n,t.moveTo(e-l,o-d),t.lineTo(e+l,o+d),t.moveTo(e+d,o-l),t.lineTo(e-d,o+l);break;case"star":l=Math.cos(s)*n,d=Math.sin(s)*n,t.moveTo(e-l,o-d),t.lineTo(e+l,o+d),t.moveTo(e+d,o-l),t.lineTo(e-d,o+l),s+=r.b4,l=Math.cos(s)*n,d=Math.sin(s)*n,t.moveTo(e-l,o-d),t.lineTo(e+l,o+d),t.moveTo(e+d,o-l),t.lineTo(e-d,o+l);break;case"line":l=Math.cos(s)*n,d=Math.sin(s)*n,t.moveTo(e-l,o-d),t.lineTo(e+l,o+d);break;case"dash":t.moveTo(e,o),t.lineTo(e+Math.cos(s)*n,o+Math.sin(s)*n)}t.fill()}(t,{x:o,y:n,radius:i,rotation:l,style:s,rad:d})}(t,this,this.centerX,this.centerY),n&&!P(e.pointStyle)&&(t.shadowColor=e.borderShadowColor,t.stroke()),t.restore(),e.borderWidth=o}resolveElementProperties(t,e){let o=W(t,e);return o.initProperties=v(t,o,e),o}}tg.id="pointAnnotation",tg.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!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},tg.defaultRoutes={borderColor:"color",backgroundColor:"color"};class tb extends n.Hg{inRange(t,e,o,n){if("x"!==o&&"y"!==o)return this.options.radius>=.1&&this.elements.length>1&&function(t,e,o,n){let r=!1,i=t[t.length-1].getProps(["bX","bY"],n);for(let a of t){let t=a.getProps(["bX","bY"],n);t.bY>o!=i.bY>o&&e<(i.bX-t.bX)*(o-t.bY)/(i.bY-t.bY)+t.bX&&(r=!r),i=t}return r}(this.elements,t,e,n);let i=F({x:t,y:e},this.getCenterPoint(n),(0,r.t)(-this.options.rotation)),a=this.elements.map(t=>"y"===o?t.bY:t.bX),s=Math.min(...a),l=Math.max(...a);return i[o]>=s&&i[o]<=l}getCenterPoint(t){return c(this,t)}draw(t){let{elements:e,options:o}=this;t.save(),t.beginPath(),t.fillStyle=o.backgroundColor,_(t,o);let n=S(t,o),r=!0;for(let o of e)r?(t.moveTo(o.x,o.y),r=!1):t.lineTo(o.x,o.y);t.closePath(),t.fill(),n&&(t.shadowColor=o.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,e){let o=W(t,e),{sides:n,rotation:i}=e,a=[],s=2*r.P/n,l=i*r.b3;for(let r=0;r<n;r++,l+=s){let n=function({centerX:t,centerY:e},{radius:o,borderWidth:n},r){let i=n/2,a=Math.sin(r),s=Math.cos(r),l={x:t+a*o,y:e-s*o};return{type:"point",optionScope:"point",properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:t+a*(o+i),bY:e-s*(o+i)}}}(o,e,l);n.initProperties=v(t,o,e),a.push(n)}return o.elements=a,o}}tb.id="polygonAnnotation",tb.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!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},tb.defaultRoutes={borderColor:"color",backgroundColor:"color"};let tm={box:Q,ellipse:tx,label:J,line:ta,point:tg,polygon:tb};Object.keys(tm).forEach(t=>{r.d.describe(`elements.${tm[t].id}`,{_fallback:"plugins.annotation.common"})});let tv={update:Object.assign},tw=$.concat(L),tC=(t,e)=>(0,r.i)(e)?t_(t,e):t,tM=t=>"color"===t||"font"===t;function tP(t="line"){return tm[t]?t:(console.warn(`Unknown annotation type: '${t}', defaulting to 'line'`),"line")}function tk(t,e,o,n){let r=tm[tP(o)],i=t[e];return i&&i instanceof r||Object.assign(i=t[e]=new r,n),i}function tS(t){let e=tm[tP(t.type)],o={};for(let n of(o.id=t.id,o.type=t.type,o.drawTime=t.drawTime,Object.assign(o,t_(t,e.defaults),t_(t,e.defaultRoutes)),tw))o[n]=t[n];return o}function t_(t,e){let o={};for(let n of Object.keys(e)){let i=e[n],a=t[n];tM(n)&&(0,r.b)(a)?o[n]=a.map(t=>tC(t,i)):o[n]=tC(a,i)}return o}let tD=new Map,tO=$.concat(L);var tT={id:"annotation",version:"3.0.1",beforeRegister(){!function(t,e,o=!0){let n=e.split("."),r=0;for(let i of"4.0".split(".")){let a=n[r++];if(parseInt(i,10)<parseInt(a,10))break;if(l(a,i))if(!o)return!1;else throw Error(`${t} v${e} is not supported. v4.0 or newer is required.`)}}("chart.js",n.t1.version)},afterRegister(){n.t1.register(tm)},afterUnregister(){n.t1.unregister(tm)},beforeInit(t){tD.set(t,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(t,e,o){let n=tD.get(t).annotations=[],i=o.annotations;
1(0,r.i)(i)?Object.keys(i).forEach(t=>{let e=i[t];(0,r.i)(e)&&(e.id=t,n.push(e))}):(0,r.b)(i)&&n.push(...i);var a=t.scales;for(let t of n){var s=t,l=a;for(let t of["scaleID","xScaleID","yScaleID"]){let e=j(l,s,t);e&&!l[e]&&function(t,e){if("scaleID"===e)return!0;let o=e.charAt(0);for(let e of["Min","Max","Value"])if((0,r.h)(t[o+e]))return!0;return!1}(s,t)&&console.warn(`No scale found with id '${e}' for annotation '${s.id}'`)}}},afterDataLimits(t,e){var o,n;let i,a,s=tD.get(t);o=e.scale,n=s.annotations.filter(t=>t.display&&t.adjustScaleRange),i=function(t,e,o){let n=e.axis,i=e.id,a=n+"ScaleID",s={min:(0,r.v)(e.min,-1/0),max:(0,r.v)(e.max,1/0)};for(let r of o)r.scaleID===i?G(r,e,["value","endValue"],s):j(t,r,a)===i&&G(r,e,[n+"Min",n+"Max",n+"Value"],s);return s}(t.scales,o,n),a=U(o,i,"min","suggestedMin"),(a=U(o,i,"max","suggestedMax")||a)&&(0,r.a7)(o.handleTickRangeOptions)&&o.handleTickRangeOptions()},afterUpdate(t,e,o){let i,s=tD.get(t);s.listened=w(o,$,s.listeners),s.moveListened=!1,s._getElements=a,H.forEach(t=>{(0,r.a7)(o[t])&&(s.moveListened=!0)}),s.listened&&s.moveListened||s.annotations.forEach(t=>{!s.listened&&(0,r.a7)(t.click)&&(s.listened=!0),s.moveListened||H.forEach(e=>{(0,r.a7)(t[e])&&(s.listened=!0,s.moveListened=!0)})}),function(t,e,o,i){var a,s,l,d,u,c,h,p;let f,y,x=(a=t,s=o.animations,"reset"===(l=i)||"none"===l||"resize"===l?tv:new n.Qw(a,s)),g=e.annotations,b=(d=e.elements,f=g.length,(y=d.length)<f?d.splice(y,0,...Array(f-y)):y>f&&d.splice(f,y-f),d);for(let e=0;e<g.length;e++){let o=g[e],n=tk(b,e,o.type),i=o.setContext((u=t,c=n,h=o,c.$context||(c.$context=Object.assign(Object.create(u.getContext()),{element:c,id:h.id,type:"annotation"})))),a=n.resolveElementProperties(t,i);a.skip=isNaN((p=a).x)||isNaN(p.y),"elements"in a&&(function(t,e,o,n){let r=t.elements||(t.elements=[]);r.length=e.length;for(let t=0;t<e.length;t++){let i=e[t],a=i.properties,s=tk(r,t,i.type,i.initProperties);a.options=tS(o[i.optionScope].override(i)),n.update(s,a)}}(n,a.elements,i,x),delete a.elements),(0,r.h)(n.x)||Object.assign(n,a),Object.assign(n,a.initProperties),a.options=tS(i),x.update(n,a)}}(t,s,o,e.mode),s.visibleElements=s.elements.filter(t=>!t.skip&&t.options.display),i=s.visibleElements,s.hooked=w(o,L,s.hooks),s.hooked||i.forEach(t=>{s.hooked||L.forEach(e=>{(0,r.a7)(t.options[e])&&(s.hooked=!0)})})},beforeDatasetsDraw(t,e,o){tR(t,"beforeDatasetsDraw",o.clip)},afterDatasetsDraw(t,e,o){tR(t,"afterDatasetsDraw",o.clip)},beforeDraw(t,e,o){tR(t,"beforeDraw",o.clip)},afterDraw(t,e,o){tR(t,"afterDraw",o.clip)},beforeEvent(t,e,o){(function(t,e,o){if(t.listened)switch(e.type){case"mousemove":case"mouseout":let n;var r=t,i=e,s=o;if(!r.moveListened)return;n="mousemove"===i.type?a(r,i,s.interaction):[];let l=r.hovered;r.hovered=n;let d={state:r,event:i},u=B(d,"leave",l,n);return B(d,"enter",n,l)||u;case"click":var c=t,h=e,p=o;let f,y=c.listeners;for(let t of a(c,h,p.interaction))f=z(t.options.click||y.click,t,h)||f;return f}})(tD.get(t),e.event,o)&&(e.changed=!0)},afterDestroy(t){tD.delete(t)},_getState:t=>tD.get(t),defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:t=>!tO.includes(t)&&"init"!==t,annotations:{_allKeys:!1,_fallback:(t,e)=>`elements.${tm[tP(e.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:tM,_fallback:!0},_indexable:tM}},additionalOptionScopes:[""]};function tR(t,e,o){let{ctx:n,chartArea:i}=t,a=tD.get(t);for(let t of(o&&(0,r.Y)(n,i),(function(t,e){let o=[];for(let n of t)if(n.options.drawTime===e&&o.push({element:n,main:!0}),n.elements&&n.elements.length)for(let t of n.elements)t.options.display&&t.options.drawTime===e&&o.push({element:t});return o}
1)(a.visibleElements,e).sort((t,e)=>t.element.options.z-e.element.options.z)))!function(t,e,o,n){let r=n.element;n.main?(N(o,r,"beforeDraw"),r.draw(t,e),N(o,r,"afterDraw")):r.draw(t,e)}(n,i,a,t);o&&(0,r.$)(n)}},78248:(t,e,o)=>{"use strict";o.d(e,{_:()=>d});var n=o(20095),r=o(60427),i=o(18877),a=o(31167),s=o(67994),l=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function d(t,e){var o,d=r.useRef(),u=r.useRef(),c=r.useRef(),h=(0,i.l)(e,d.current||{}),p=null!=(o=null==h?void 0:h.query)?o:t;u.current=e,c.current=p;var f=(0,a.k)((0,s.m)(e&&e.client),p),y=f.useQuery((0,n.Cl)((0,n.Cl)({},h),{skip:!d.current})),x=y.observable.options.initialFetchPolicy||f.getDefaultFetchPolicy(),g=f.forceUpdateState,b=f.obsQueryFields,m=r.useMemo(function(){for(var t={},e=0;e<l.length;e++)!function(e){var o=b[e];t[e]=function(){return d.current||(d.current=Object.create(null),g()),o.apply(this,arguments)}}(l[e]);return t},[g,b]),v=!!d.current,w=r.useMemo(function(){return(0,n.Cl)((0,n.Cl)((0,n.Cl)({},y),m),{called:v})},[y,m,v]);return[r.useCallback(function(t){d.current=t?(0,n.Cl)((0,n.Cl)({},t),{fetchPolicy:t.fetchPolicy||x}):{fetchPolicy:x};var e=(0,i.l)(u.current,(0,n.Cl)({query:c.current},d.current)),o=f.executeQuery((0,n.Cl)((0,n.Cl)({},e),{skip:!1})).then(function(t){return Object.assign(t,m)});return o.catch(function(){}),o},[m,x,f]),w]}},94428:(t,e,o)=>{"use strict";function n(t,e,o,n){t.forEach(t=>{n[t]=(e[t]||0)+(o[t]||0)})}o.d(e,{TF:()=>v,ZA:()=>C,t1:()=>w,ye:()=>M});let r=(t,e)=>{let o={};return n(["opportunityCosts","rentersInsurance","rent","totalOutOfPocketCosts","utilities"],t,e,o),o},i=(t,e,o)=>t.interest+o+t.propertyTax+t.maintenanceCosts+t.pmi+t.hoaDues+t.homeownersInsurance+e.sellingCosts-e.tax,a=(t,e)=>t.rent+t.utilities+t.rentersInsurance+e,s=(t,e,o,n)=>{t.netCosts=t.totalOutOfPocketCosts+e.sellingCosts+e.tax+t.opportunityCosts-t.equity,t.sunkCosts=i(t,e,n+o)},l=(t,e,o)=>(t.netCosts=t.totalOutOfPocketCosts+t.opportunityCosts-o,t.sunkCosts=a(t,e),t),d=t=>(1+.01*t)**.08333333333333333-1,u=(t,e,o,n)=>(e+t)*d(o)*(1-.01*n),c=t=>{let{capitalGainsTaxRate:e,homeownersInsurancePercent:o,investmentReturnRate:n,maintenanceCostsPercent:r,marginalTaxRate:i,pmi:a,propertyTaxRate:s,purchasePrice:l,renovationCostsPercent:d,standardDeduction:c,downPayment:h,homeAppreciationFactor:p,inflationFactor:f,interest:y,isFirstMonth:x,lastMonthCumulative:g,mortgagePrincipalAndInterest:b,propertyTaxHomeAppreciationFactor:m,purchaseCosts:v}=t,{hoaDues:w}=t,{buyingUtilities:C}=t,M=l*p,P=.01*s/12*(l*m),k=.01*r/12*l*f,S=.01*d/12*l*f,_=.01*o/12*M;w*=f,C*=f;let D=Math.max((y+P-c*f/12)*i*.01,0),O=(t=>{let{downPayment:e,hoaDues:o,homeownersInsurance:n,isFirstMonth:r,maintenanceCosts:i,mortgagePrincipalAndInterest:a,pmi:s,propertyTax:l,purchaseCosts:d,renovationCosts:u,taxBenefit:c,utilitiesCosts:h}=t;return(r?e+d:0)+o+n+i+a+s+l+u+h-c})({downPayment:h,hoaDues:w,homeownersInsurance:_,isFirstMonth:x,maintenanceCosts:k,mortgagePrincipalAndInterest:b,propertyTax:P,purchaseCosts:v,renovationCosts:S,taxBenefit:D,utilitiesCosts:C,pmi:a});return{hoaDues:w,homeownersInsurance:_,homeValue:M,interest:y,maintenanceCosts:k,mortgagePrincipalAndInterest:b,pmi:a,opportunityCosts:u(g.totalOutOfPocketCosts+O,g.opportunityCosts,n,e),principal:b-y,propertyTax:P,renovationCosts:S,taxBenefit:D,totalOutOfPocketCosts:O,utilities:C}},h=t=>{let{capitalGainsTaxRate:e,investmentReturnRate:o,initialMonthlyRent:n,rentBrokerFee:r,rentDeposit:i,rentersInsuranceRate:a,rentingUtilities:s,isFirstMonth:l,lastMonthCumulativeValues:d,rentAppreciationFactor:c,inflationFactor:h}=t,p=n*c,f=.01*a*p,y=s*h,x=p+f+y+(l?r+i:0);return{opportunityCosts:u(d.totalOutOfPocketCosts+x,d.opportunityCosts,o,e),rentersInsurance:f,rent:p,totalOutOfPocketCosts:x,utilities:y}},p=(t,e)=>((t,e,o,n)=>{let r,i,a=Array(n);for(r=0;r<o;r+=1)i=r/(o-1),a[r]=t*(2*i*i*i-3*i*i+1)+e*(-2*i*i*i+3*i*i);for(r=o;r<n;r+=1)a[r]=e;return a})(d(t)/.01,d(e)/.01,61,360),f=t=>{let{capitalGainsTaxExclusion:e,capitalGainsTaxRate:o,purchasePrice:n,sellingCostsPercent:r,mortgageBalance:i,purchaseCosts:a,renovationCosts:s,homeValue:l}=t,d=l*r*.01;return{sellingCosts:d,remainingPrincipal:i,homeValue:l,tax:Math.max(.01*o*(l-(n+a+s+d)-e),0)}},y=(t,e)=>{let o,n=e.length/12,r=[];for(o=0;o<n;o+=1)r[o]=e.slice(12*o,(o+1)*12).reduce(t);return r},x=t=>{let e=[1+.01*t[0]];for(let o=1;o<t.length;o+=1)e[o]=e[o-1]*(1+.01*t[o]);return e},g=(t,e)=>{let o={netCosts:0,sunkCosts:0};return n(["hoaDues","homeownersInsurance","homeValue","interest","maintenanceCosts","mortgagePrincipalAndInterest","opportunityCosts","pmi","principal","propertyTax","renovationCosts","taxBenefit","totalOutOfPocketCosts","utilities"],t,e,o),o},b=(t,e)=>{let o={};return n(["netCosts","opportunityCosts","rent","rentersInsurance","sunkCosts","totalOutOfPocketCosts","utilities"],t,e,o),o},m=(t,e)=>e,v=t=>{let e,o,d,{buyingUtilities:u,capitalGainsTaxExclusion:v,capitalGainsTaxRate:w,downPaymentPercent:C,hoaDues:M,homeownersInsurancePercent:P,initialHomeAppreciationRate:k,initialInflationRate:S,initialRentAppreciationRate:_,investmentReturn
1Rate:D,loanTermYears:O,longTermHomeAppreciationRate:T,longTermInflationRate:R,longTermRentAppreciationRate:j,maintenanceCostsPercent:A,marginalTaxRate:I,monthlyRent:E,mortgageRate:W,propertyTaxRate:Y,purchaseCostsPercent:X,purchasePrice:V,renovationCostsPercent:F,rentBrokerFee:H,rentDepositMonths:$,rentersInsuranceRate:B,rentingUtilities:z,sellingCostsPercent:L,standardDeduction:N}=t,U=12*O,G=.01*C*V,Q=V-G,q=(o=.01*W/12,d=(1+o)**U,Q*o*d/(d-1)),J=V*(1-.01*(e=C))*(e>=20?0:e>=15?.0044:e>=10?.0059:e>=5?.0076:.0098)/12,K=.01*X*V,Z=$*E,tt=Q,te=[],to=[],tn=[],tr=[],ti=[],ta=[],ts,tl,td,tu,tc,th,tp,tf,ty,tx,tg,tb=0,tm=0,tv=0,tw=!1,tC=x(p(k,T)),tM=x(p(_,j)),tP=x(p(S,R));for(tl=0;tl<U;tl+=1)ts=tl+1,td=tP[tl],tu=tC[tl],tl>=12?(th=tC[tl-tl%12-1],tc=tM[tl-tl%12-1]):(th=1,tc=1),tp=q-(tf=.01*W/12*tt),tt-=tp,0!==tl?(ty=tr[tl-1],tx=ti[tl-1]):(ty={equity:0,hoaDues:0,homeownersInsurance:0,homeValue:0,interest:0,maintenanceCosts:0,mortgagePrincipalAndInterest:0,opportunityCosts:0,pmi:0,principal:0,propertyTax:0,renovationCosts:0,taxBenefit:0,totalOutOfPocketCosts:0,utilities:0,netCosts:0,sunkCosts:0},tx={opportunityCosts:0,rent:0,rentersInsurance:0,totalOutOfPocketCosts:0,utilities:0,netCosts:0,sunkCosts:0}),te[tl]=c({buyingUtilities:u,capitalGainsTaxRate:w,hoaDues:M,homeownersInsurancePercent:P,investmentReturnRate:D,maintenanceCostsPercent:A,marginalTaxRate:I,propertyTaxRate:Y,purchasePrice:V,renovationCostsPercent:F,standardDeduction:N,downPayment:G,homeAppreciationFactor:tu,inflationFactor:td,interest:tf,isFirstMonth:0===tl,lastMonthCumulative:ty,mortgagePrincipalAndInterest:q,propertyTaxHomeAppreciationFactor:th,purchaseCosts:K,pmi:J}),to[tl]=h({capitalGainsTaxRate:w,investmentReturnRate:D,initialMonthlyRent:E,rentBrokerFee:H,rentDeposit:Z,rentersInsuranceRate:B,rentingUtilities:z,isFirstMonth:0===tl,lastMonthCumulativeValues:tx,rentAppreciationFactor:tc,inflationFactor:td}),tr[tl]=function(t,e,o){let r=t.mortgagePrincipalAndInterest+e.mortgagePrincipalAndInterest,i=t.interest+e.interest,a={equity:e.homeValue-o,homeValue:e.homeValue,interest:i,mortgagePrincipalAndInterest:r,principal:r-i};return n(["hoaDues","homeownersInsurance","maintenanceCosts","opportunityCosts","pmi","propertyTax","renovationCosts","taxBenefit","totalOutOfPocketCosts","utilities"],t,e,a),a}(ty,te[tl],tt),ti[tl]=r(tx,to[tl]),tn[tl]=f({capitalGainsTaxExclusion:v,capitalGainsTaxRate:w,purchasePrice:V,sellingCostsPercent:L,mortgageBalance:tt,purchaseCosts:K,renovationCosts:tr[tl].renovationCosts,homeValue:tr[tl].homeValue}),s(tr[tl],tn[tl],G,K),l(ti[tl],H,Z),tg=tv,(tv=tr[tl].netCosts-ti[tl].netCosts)<=0&&!tw&&(tm=(tb=ts)-1+tg/(tg-tv),tw=!0),ta[tl]={buyingValues:tr[tl],rentingValues:ti[tl],savings:tv,sellingValues:tn[tl]};let tk=y(g,te),tS=y(b,to),t_=y(m,ta);for(tl=0;tl<O;tl+=1)tk[tl].sunkCosts=i(tk[tl],t_[tl].sellingValues,K),tS[tl].sunkCosts=a(tS[tl],0===tl?H:0);return{annualBuyingValues:tk,annualCumulativeCosts:t_,annualRentingValues:tS,breakEvenMonths:tb,breakEvenMonthsInterpolated:tm,totalSavings:tv,downPayment:G}},w=t=>{let e="",o=Math.floor(t/12),n=Math.floor(t%12);return o>0&&(e+=`${o} year`,o>1&&(e+="s"),n>0&&(e+=" and ")),n>0&&(e+=`${n} month`,n>1&&(e+="s")),e},C=t=>t.toLocaleString("en",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}),M=(t,e)=>{let o=[{value:1,symbol:""},{value:1e3,symbol:"k"},{value:1e6,symbol:"M"},{value:1e9,symbol:"B"},{value:1e12,symbol:"T"}].reverse().find(e=>t>=e.value);return o?(t/o.value).toFixed(e).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+o.symbol:"0"}}}]);
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.