PageSourceSearch

https://aipricehistory.com/_next/static/chunks/6523.9d368933635b1c28.js

js aipricehistory.com collected 2026-10-03 02:30:01 UTC 129,399 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6523],{5379:(t,e,r)=>{r.d(e,{D:()=>u,ThemeProvider:()=>c});var n=r(12115),i=(t,e,r,n,i,o,a,s)=>{let l=document.documentElement,u=["light","dark"];function c(e){var r;(Array.isArray(t)?t:[t]).forEach(t=>{let r="class"===t,n=r&&o?i.map(t=>o[t]||t):i;r?(l.classList.remove(...n),l.classList.add(o&&o[e]?o[e]:e)):l.setAttribute(t,e)}),r=e,s&&u.includes(r)&&(l.style.colorScheme=r)}if(n)c(n);else try{let t=localStorage.getItem(e)||r,n=a&&"system"===t?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t;c(n)}catch(t){}},o=["light","dark"],a="(prefers-color-scheme: dark)",s=n.createContext(void 0),l={setTheme:t=>{},themes:[]},u=()=>{var t;return null!=(t=n.useContext(s))?t:l},c=t=>n.useContext(s)?n.createElement(n.Fragment,null,t.children):n.createElement(h,{...t}),d=["light","dark"],h=t=>{let{forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:i=!0,enableColorScheme:l=!0,storageKey:u="theme",themes:c=d,defaultTheme:h=i?"system":"light",attribute:b="data-theme",value:y,children:w,nonce:x,scriptProps:v}=t,[M,k]=n.useState(()=>g(u,h)),[T,S]=n.useState(()=>"system"===M?p():M),D=y?Object.values(y):c,P=n.useCallback(t=>{let e=t;if(!e)return;"system"===t&&i&&(e=p());let n=y?y[e]:e,a=r?m(x):null,s=document.documentElement,u=t=>{"class"===t?(s.classList.remove(...D),n&&s.classList.add(n)):t.startsWith("data-")&&(n?s.setAttribute(t,n):s.removeAttribute(t))};if(Array.isArray(b)?b.forEach(u):u(b),l){let t=o.includes(h)?h:null,r=o.includes(e)?e:t;s.style.colorScheme=r}null==a||a()},[x]),O=n.useCallback(t=>{let e="function"==typeof t?t(M):t;k(e);try{localStorage.setItem(u,e)}catch(t){}},[M]),C=n.useCallback(t=>{S(p(t)),"system"===M&&i&&!e&&P("system")},[M,e]);n.useEffect(()=>{let t=window.matchMedia(a);return t.addListener(C),C(t),()=>t.removeListener(C)},[C]),n.useEffect(()=>{let t=t=>{t.key===u&&(t.newValue?k(t.newValue):O(h))};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[O]),n.useEffect(()=>{P(null!=e?e:M)},[e,M]);let Y=n.useMemo(()=>({theme:M,setTheme:O,forcedTheme:e,resolvedTheme:"system"===M?T:M,themes:i?[...c,"system"]:c,systemTheme:i?T:void 0}),[M,O,e,T,i,c]);return n.createElement(s.Provider,{value:Y},n.createElement(f,{forcedTheme:e,storageKey:u,attribute:b,enableSystem:i,enableColorScheme:l,defaultTheme:h,value:y,themes:c,nonce:x,scriptProps:v}),w)},f=n.memo(t=>{let{forcedTheme:e,storageKey:r,attribute:o,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,themes:c,nonce:d,scriptProps:h}=t,f=JSON.stringify([o,r,l,e,c,u,a,s]).slice(1,-1);return n.createElement("script",{...h,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(i.toString(),")(").concat(f,")")}})}),g=(t,e)=>{let r;try{r=localStorage.getItem(t)||void 0}catch(t){}return r||e},m=t=>{let e=document.createElement("style");return t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},p=t=>(t||(t=window.matchMedia(a)),t.matches?"dark":"light")},42698:(t,e,r)=>{let n;function i(t){return t+.5|0}r.d(e,{$:()=>eu,A:()=>tW,B:()=>tN,C:()=>es,D:()=>tM,E:()=>ex,F:()=>L,G:()=>eG,H:()=>tl,I:()=>eL,J:()=>eJ,K:()=>eZ,L:()=>tI,M:()=>eq,N:()=>tm,O:()=>R,P:()=>tn,Q:()=>q,R:()=>ek,S:()=>tP,T:()=>ti,U:()=>tx,V:()=>ee,W:()=>tO,X:()=>en,Y:()=>el,Z:()=>eh,_:()=>tR,a:()=>eM,a0:()=>ev,a1:()=>tq,a2:()=>tL,a3:()=>t4,a4:()=>$,a5:()=>J,a6:()=>t6,a7:()=>tt,a8:()=>function t(e,r,n,i){return new Proxy({_cacheable:!1,_proxy:e,_context:r,_subProxy:n,_stack:new Set,_descriptors:eD(e,i),setContext:r=>t(e,r,n,i),override:o=>t(e.override(o),r,n,i)},{deleteProperty:(t,r)=>(delete t[r],delete e[r],!0),get:(e,r,n)=>eC(e,r,()=>(function(e,r,n){let{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=e,l=i[r];return tt(l)&&s.isScriptable(r)&&(l=function(t,e,r,n){let{_proxy:i,_context:o,_subProxy:a,_stack:s}=r;if(s.has(t))throw Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=e(o,a||n);return s.delete(t),eO(t,l)&&(l=eN(i._scopes,i,t,l)),l}(r,l,e,n)),E(l)&&l.length&&(l=function(e,r,n,i){let{_proxy:o,_context:a,_subProxy:s,_descriptors:l}=n;if(void 0!==a.index&&i(e))return r[a.index%r.length];if(H(r[0])){let n=r,i=o._scopes.filter(t=>t!==n);for(let u of(r=[],n)){let n=eN(i,o,e,u);r.push(t(n,a,s&&s[e],l))}}return r}(r,l,e,s.isIndexable)),eO(r,l)&&(l=t(l,o,a&&a[r],s)),l})(e,r,n)),getOwnPropertyDescriptor:(t,r)=>t._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,r)=>Reflect.has(e,r),ownKeys:()=>Reflect.ownKeys(e),set:(t,r,n)=>(e[r]=n,delete t[r],!0)})},a9:()=>eS,aA:()=>e2,aB:()=>e5,aC:()=>tX,aD:()=>e3,aE:()=>ea,aF:()=>tk,aG:()=>N,aH:()=>ty,aI:()=>tg,aJ:()=>tb,aK:()=>tf,aL:()=>tv,aM:()=>t3,aN:()=>td,aO:()=>er,aP:()=>tj,aQ:()=>tY,aa:()=>eD,ab:()=>V,ac:()=>W,ad:()=>tF,ae:()=>eU,af:()=>ei,ag:()=>te,ah:()=>rn,ai:()=>X,aj:()=>tr,ak:()=>tC,al:()=>tS,am:()=>eb,an:()=>eF,ao:()=>e8,ap:()=>e7,aq:()=>e0,ar:()=>e1,as:()=>eK,at:()=>ec,au:()=>ed,av:()=>eo,aw:()=>ef,ax:()=>ey,ay:()=>ew,az:()=>e9,b:()=>E,b4:()=>ts,b5:()=>tu,b6:()=>tc,c:()=>tZ,d:()=>et,e:()=>tG,f:()=>Z,g:()=>A,h:()=>K,i:()=>H,j:()=>eT,k:()=>j,l:()=>tH,m:()=>I,n:()=>F,o:()=>t2,p:()=>tD,q:()=>tB,r:()=>t_,s:()=>th,t:()=>tw,u:()=>tA,v:()=>_,w:()=>tz,x:()=>tp,y:()=>eH,z:()=>e$});let o=(t,e,r)=>Math.max(Math.min(t,r),e);function a(t){return o(i(2.55*t),0,255)}function s(t){return o(i(255*t),0,255)}function l(t){return o(i(t/2.55)/100,0,1)}function u(t){return o(i(100*t),0,100)}let c={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},d=[..."0123456789ABCDEF"],h=t=>d[15&t],f=t=>d[(240&t)>>4]+d[15&t],g=t=>(240&t)>>4==(15&t),m=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function p(t,e,r){let n=e*Math.min(r,1-r),i=(e,i=(e+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function b(t,e,r){let n=(n,i=(n+t/60)%6)=>r-r*e*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function y(t,e,r){let n,i=p(t,1,.5);for(e+r>1&&(n=1/(e+r),e*=n,r*=n),n=0;n<3;n++)i[n]*=1-e-r,i[n]+=e;return i}function w(t){let e,r,n,i=t.r/255,o=t.g/255,a=t.b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=(s+l)/2;s!==l&&(n=s-l,r=u>.5?n/(2-s-l):n/(s+l),e=60*(e=i===s?(o-a)/n+6*(o<a):o===s?(a-i)/n+2:(i-o)/n+4)+.5);return[0|e,r||0,u]}function x(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(s)}function v(t){return(t%360+360)%360}let M={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},k={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",K
1ocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"},T=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,S=t=>
1t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,D=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function P(t,e,r){if(t){let n=w(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,0===e?360:1)),t.r=(n=x(p,n,void 0,void 0))[0],t.g=n[1],t.b=n[2]}}function O(t,e){return t?Object.assign(e||{},t):t}function C(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=s(t[3]))):(e=O(t,{r:0,g:0,b:0,a:1})).a=s(e.a),e}class Y{constructor(t){let e;if(t instanceof Y)return t;let r=typeof t;"object"===r?e=C(t):"string"===r&&(e=function(t){var e,r=t.length;return"#"===t[0]&&(4===r||5===r?e={r:255&17*c[t[1]],g:255&17*c[t[2]],b:255&17*c[t[3]],a:5===r?17*c[t[4]]:255}:(7===r||9===r)&&(e={r:c[t[1]]<<4|c[t[2]],g:c[t[3]]<<4|c[t[4]],b:c[t[5]]<<4|c[t[6]],a:9===r?c[t[7]]<<4|c[t[8]]:255})),e}(t)||function(t){n||((n=function(){let t,e,r,n,i,o={},a=Object.keys(k),s=Object.keys(M);for(t=0;t<a.length;t++){for(e=0,n=i=a[t];e<s.length;e++)r=s[e],i=i.replace(r,M[r]);r=parseInt(k[n],16),o[i]=[r>>16&255,r>>8&255,255&r]}return o}()).transparent=[0,0,0,0]);let e=n[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||function(t){return"r"===t.charAt(0)?function(t){let e,r,n,i=T.exec(t),s=255;if(i){if(i[7]!==e){let t=+i[7];s=i[8]?a(t):o(255*t,0,255)}return e=+i[1],r=+i[3],n=+i[5],e=255&(i[2]?a(e):o(e,0,255)),{r:e,g:r=255&(i[4]?a(r):o(r,0,255)),b:n=255&(i[6]?a(n):o(n,0,255)),a:s}}}(t):function(t){let e,r=m.exec(t),n=255;if(!r)return;r[5]!==e&&(n=r[6]?a(+r[5]):s(+r[5]));let i=v(+r[2]),o=r[3]/100,l=r[4]/100;return{r:(e="hwb"===r[1]?x(y,i,o,l):"hsv"===r[1]?x(b,i,o,l):x(p,i,o,l))[0],g:e[1],b:e[2],a:n}}(t)}(t)),this._rgb=e,this._valid=!!e}get valid(){return this._valid}get rgb(){var t=O(this._rgb);return t&&(t.a=l(t.a)),t}set rgb(t){this._rgb=C(t)}rgbString(){var t;return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${l(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0}hexString(){var t,e;let r,n;return this._valid?(e=g((r=t=this._rgb).r)&&g(r.g)&&g(r.b)&&g(r.a)?h:f,t?"#"+e(t.r)+e(t.g)+e(t.b)+(n=t.a,n<255?e(n):""):void 0):void 0}hslString(){return this._valid?function(t){if(!t)return;let e=w(t),r=e[0],n=u(e[1]),i=u(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${i}%, ${l(t.a)})`:`hsl(${r}, ${n}%, ${i}%)`}(this._rgb):void 0}mix(t,e){if(t){let r,n=this.rgb,i=t.rgb,o=e===r?.5:e,a=2*o-1,s=n.a-i.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,r){let n=D(l(t.r)),i=D(l(t.g)),o=D(l(t.b));return{r:s(S(n+r*(D(l(e.r))-n))),g:s(S(i+r*(D(l(e.g))-i))),b:s(S(o+r*(D(l(e.b))-o))),a:t.a+r*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Y(this.rgb)}alpha(t){return this._rgb.a=s(t),this}clearer(t){let e=this._rgb;return e.a*=1-t,this}greyscale(){let t=this._rgb,e=i(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){let e=this._rgb;return e.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return P(this._rgb,2,t),this}darken(t){return P(this._rgb,2,-t),this}saturate(t){return P(this._rgb,1,t),this}desaturate(t){return P(this._rgb,1,-t),this}rotate(t){var e,r;return e=this._rgb,(r=w(e))[0]=v(r[0]+t),e.r=(r=x(p,r,void 0,void 0))[0],e.g=r[1],e.b=r[2],this}}function N(){}let W=(()=>{let t=0;return()=>t++})();function j(t){return null==t}function E(t){if(Array.isArray&&Array.isArray(t))return!0;let e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function H(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function A(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function R(t,e){return A(t)?t:e}function _(t,e){return void 0===t?e:t}let I=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,F=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function q(t,e,r){if(t&&"function"==typeof t.call)return t.apply(r,e)}function L(t,e,r,n){let i,o,a;if(E(t))if(o=t.length,n)for(i=o-1;i>=0;i--)e.call(r,t[i],i);else for(i=0;i<o;i++)e.call(r,t[i],i);else if(H(t))for(i=0,o=(a=Object.keys(t)).length;i<o;i++)e.call(r,t[a[i]],a[i])}function X(t,e){let r,n,i,o;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(i=t[r],o=e[r],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function B(t){if(E(t))return t.map(B);if(H(t)){let e=Object.create(null),r=Object.keys(t),n=r.length,i=0;for(;i<n;++i)e[r[i]]=B(t[r[i]]);return e}return t}function z(t){return -1===["__proto__","prototype","constructor"].indexOf(t)}function Q(t,e,r,n){if(!z(t))return;let i=e[t],o=r[t];H(i)&&H(o)?$(i,o,n):e[t]=B(o)}function $(t,e,r){let n,i=E(e)?e:[e],o=i.length;if(!H(t))return t;let a=(r=r||{}).merger||Q;for(let e=0;e<o;++e){if(!H(n=i[e]))continue;let o=Object.keys(n);for(let e=0,i=o.length;e<i;++e)a(o[e],t,n,r)}return t}function V(t,e){return $(t,e,{merger:G})}function G(t,e,r){if(!z(t))return;let n=e[t],i=r[t];H(n)&&H(i)?V(n,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=B(i))}let U={"":t=>t,x:t=>t.x,y:t=>t.y};function Z(t,e){return(U[e]||(U[e]=function(t){let e=function(t){let e=t.split("."),r=[],n="";for(let t of e)(n+=t).endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}(t);return t=>{for(let r of e){if(""===r)break;t=t&&t[r]}return t}}(e)))(t)}function J(t){return t.charAt(0).toUpperCase()+t.slice(1)}let K=t=>void 0!==t,tt=t=>"function"==typeof t,te=(t,e)=>{if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0};function tr(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}let tn=Math.PI,ti=2*tn,to=ti+tn,ta=1/0,ts=tn/180,tl=tn/2,tu=tn/4,tc=2*tn/3,td=Math.log10,th=Math.sign;function tf(t,e,r){return Math.abs(t-e)<r}function tg(t){let e=Math.round(t),r=Math.pow(10,Math.floor(td(t=tf(t,e,t/1e3)?e:t))),n=t/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function tm(t){let e,r=[],n=Math.sqrt(t);for(e=1;e<n;e++)t%e==0&&(r.push(e),r.push(t/e));return n===(0|n)&&r.push(n),r.sort((t,e)=>t-e).pop(),r}function tp(t){return"symbol"!=typeof t&&("object"!=typeof t||null===t||!!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t))&&!isNaN(parseFloat(t))&&isFinite(t)}
1function tb(t,e){let r=Math.round(t);return r-e<=t&&r+e>=t}function ty(t,e,r){let n,i,o;for(n=0,i=t.length;n<i;n++)isNaN(o=t[n][r])||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function tw(t){return tn/180*t}function tx(t){return 180/tn*t}function tv(t){if(!A(t))return;let e=1,r=0;for(;Math.round(t*e)/e!==t;)e*=10,r++;return r}function tM(t,e){let r=e.x-t.x,n=e.y-t.y,i=Math.sqrt(r*r+n*n),o=Math.atan2(n,r);return o<-.5*tn&&(o+=ti),{angle:o,distance:i}}function tk(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function tT(t,e){return(t-e+to)%ti-tn}function tS(t){return(t%ti+ti)%ti}function tD(t,e,r,n){let i=tS(t),o=tS(e),a=tS(r),s=tS(o-i),l=tS(a-i),u=tS(i-o),c=tS(i-a);return i===o||i===a||n&&o===a||s>l&&u<c}function tP(t,e,r){return Math.max(e,Math.min(r,t))}function tO(t){return tP(t,-32768,32767)}function tC(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function tY(t,e,r){let n;r=r||(r=>t[r]<e);let i=t.length-1,o=0;for(;i-o>1;)r(n=o+i>>1)?o=n:i=n;return{lo:o,hi:i}}let tN=(t,e,r,n)=>tY(t,r,n?n=>{let i=t[n][e];
1return i<r||i===r&&t[n+1][e]===r}:n=>t[n][e]<r),tW=(t,e,r)=>tY(t,r,n=>t[n][e]>=r);function tj(t,e,r){let n=0,i=t.length;for(;n<i&&t[n]<e;)n++;for(;i>n&&t[i-1]>r;)i--;return n>0||i<t.length?t.slice(n,i):t}let tE=["push","pop","shift","splice","unshift"];function tH(t,e){if(t._chartjs)return void t._chartjs.listeners.push(e);Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),tE.forEach(e=>{let r="_onData"+J(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){let i=n.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[r]&&t[r](...e)}),i}})})}function tA(t,e){let r=t._chartjs;if(!r)return;let n=r.listeners,i=n.indexOf(e);-1!==i&&n.splice(i,1),n.length>0||(tE.forEach(e=>{delete t[e]}),delete t._chartjs)}function tR(t){let e=new Set(t);return e.size===t.length?t:Array.from(e)}let t_="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function tI(t,e){let r=[],n=!1;return function(...i){r=i,n||(n=!0,t_.call(window,()=>{n=!1,t.apply(e,r)}))}}function tF(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}let tq=t=>"start"===t?"left":"end"===t?"right":"center",tL=(t,e,r)=>"start"===t?e:"end"===t?r:(e+r)/2,tX=(t,e,r,n)=>t===(n?"left":"right")?r:"center"===t?(e+r)/2:e;function tB(t,e,r){let n=e.length,i=0,o=n;if(t._sorted){let{iScale:a,vScale:s,_parsed:l}=t,u=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,c=a.axis,{min:d,max:h,minDefined:f,maxDefined:g}=a.getUserBounds();if(f){if(i=Math.min(tN(l,c,d).lo,r?n:tN(e,c,a.getPixelForValue(d)).lo),u){let t=l.slice(0,i+1).reverse().findIndex(t=>!j(t[s.axis]));i-=Math.max(0,t)}i=tP(i,0,n-1)}if(g){let t=Math.max(tN(l,a.axis,h,!0).hi+1,r?0:tN(e,c,a.getPixelForValue(h),!0).hi+1);if(u){let e=l.slice(t-1).findIndex(t=>!j(t[s.axis]));t+=Math.max(0,e)}o=tP(t,i,n)-i}else o=n-i}return{start:i,count:o}}function tz(t){let{xScale:e,yScale:r,_scaleRanges:n}=t,i={xmin:e.min,xmax:e.max,ymin:r.min,ymax:r.max};if(!n)return t._scaleRanges=i,!0;let o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,i),o}let tQ=t=>0===t||1===t,t$=(t,e,r)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*ti/r)),tV=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*ti/r)+1,tG={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*tl)+1,easeOutSine:t=>Math.sin(t*tl),easeInOutSine:t=>-.5*(Math.cos(tn*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>tQ(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(-Math.pow(2,-10*(2*t-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>tQ(t)?t:t$(t,.075,.3),easeOutElastic:t=>tQ(t)?t:tV(t,.075,.3),easeInOutElastic:t=>tQ(t)?t:t<.5?.5*t$(2*t,.1125,.45):.5+.5*tV(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-tG.easeOutBounce(1-t),easeOutBounce:t=>t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375,easeInOutBounce:t=>t<.5?.5*tG.easeInBounce(2*t):.5*tG.easeOutBounce(2*t-1)+.5};function tU(t){if(t&&"object"==typeof t){let e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function tZ(t){return tU(t)?t:new Y(t)}function tJ(t){return tU(t)?t:new Y(t).saturate(.5).darken(.1).hexString()}let tK=["x","y","borderWidth","radius","tension"],t0=["color","borderColor","backgroundColor"],t1=new Map;function t2(t,e,r){return(function(t,e){let r=t+JSON.stringify(e=e||{}),n=t1.get(r);return n||(n=new Intl.NumberFormat(t,e),t1.set(r,n)),n})(e,r).format(t)}let t5={values:t=>E(t)?t:""+t,numeric(t,e,r){let n;if(0===t)return"0";let i=this.chart.options.locale,o=t;if(r.length>1){var a,s;let e,i=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(i<1e-4||i>1e15)&&(n="scientific"),a=t,Math.abs(e=(s=r).length>3?s[2].value-s[1].value:s[1].value-s[0].value)>=1&&a!==Math.floor(a)&&(e=a-Math.floor(a)),o=e}let l=td(Math.abs(o)),u=isNaN(l)?1:Math.max(Math.min(-1*Math.floor(l),20),0),c={notation:n,minimumFractionDigits:u,maximumFractionDigits:u};return Object.assign(c,this.options.ticks.format),t2(t,i,c)},logarithmic(t,e,r){return 0===t?"0":[1,2,3,5,10,15].includes(r[e].significand||t/Math.pow(10,Math.floor(td(t))))||e>.8*r.length?t5.numeric.call(this,t,e,r):""}};var t3={formatters:t5};let t4=Object.create(null),t6=Object.create(null);function t9(t,e){if(!e)return t;let r=e.split(".");for(let e=0,n=r.length;e<n;++e){let n=r[e];t=t[n]||(t[n]=Object.create(null))}return t}function t7(t,e,r){return"string"==typeof e?$(t9(t,e),r):$(t9(t,""),e)}class t8{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={}
1,this.hoverBackgroundColor=(t,e)=>tJ(e.backgroundColor),this.hoverBorderColor=(t,e)=>tJ(e.borderColor),this.hoverColor=(t,e)=>tJ(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return t7(this,t,e)}get(t){return t9(this,t)}describe(t,e){return t7(t6,t,e)}override(t,e){return t7(t4,t,e)}route(t,e,r,n){let i=t9(this,t),o=t9(this,r),a="_"+e;Object.defineProperties(i,{[a]:{value:i[e],writable:!0},[e]:{enumerable:!0,get(){let t=this[a],e=o[n];return H(t)?Object.assign({},e,t):_(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach(t=>t(this))}}var et=new t8({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:t0},numbers:{type:"number",properties:tK}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:t3.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function ee(t,e,r,n,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,r.push(i)),o>n&&(n=o),n}function er(t,e,r,n){let i,o,a,s,l,u=(n=n||{}).data=n.data||{},c=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(u=n.data={},c=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let d=0,h=r.length;for(i=0;i<h;i++)if(null==(s=r[i])||E(s)){if(E(s))for(o=0,a=s.length;o<a;o++)null==(l=s[o])||E(l)||(d=ee(t,u,c,d,l))}else d=ee(t,u,c,d,s);t.restore();let f=c.length/2;if(f>r.length){for(i=0;i<f;i++)delete u[c[i]];c.splice(0,f)}return d}function en(t,e,r){let n=t.currentDevicePixelRatio,i=0!==r?Math.max(r/2,.5):0;return Math.round((e-i)*n)/n+i}function ei(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function eo(t,e,r,n){ea(t,e,r,n,null)}function ea(t,e,r,n,i){let o,a,s,l,u,c,d,h,f=e.pointStyle,g=e.rotation,m=e.radius,p=(g||0)*ts;if(f&&"object"==typeof f&&("[object HTMLImageElement]"===(o=f.toString())||"[object HTMLCanvasElement]"===o)){t.save(),t.translate(r,n),t.rotate(p),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),t.restore();return}if(!isNaN(m)&&!(m<=0)){switch(t.beginPath(),f){default:i?t.ellipse(r,n,i/2,m,0,0,ti):t.arc(r,n,m,0,ti),t.closePath();break;case"triangle":c=i?i/2:m,t.moveTo(r+Math.sin(p)*c,n-Math.cos(p)*m),p+=tc,t.lineTo(r+Math.sin(p)*c,n-Math.cos(p)*m),p+=tc,t.lineTo(r+Math.sin(p)*c,n-Math.cos(p)*m),t.closePath();break;
1case"rectRounded":u=.516*m,a=Math.cos(p+tu)*(l=m-u),d=Math.cos(p+tu)*(i?i/2-u:l),s=Math.sin(p+tu)*l,h=Math.sin(p+tu)*(i?i/2-u:l),t.arc(r-d,n-s,u,p-tn,p-tl),t.arc(r+h,n-a,u,p-tl,p),t.arc(r+d,n+s,u,p,p+tl),t.arc(r-h,n+a,u,p+tl,p+tn),t.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,c=i?i/2:l,t.rect(r-c,n-l,2*c,2*l);break}p+=tu;case"rectRot":d=Math.cos(p)*(i?i/2:m),a=Math.cos(p)*m,s=Math.sin(p)*m,h=Math.sin(p)*(i?i/2:m),t.moveTo(r-d,n-s),t.lineTo(r+h,n-a),t.lineTo(r+d,n+s),t.lineTo(r-h,n+a),t.closePath();break;case"crossRot":p+=tu;case"cross":d=Math.cos(p)*(i?i/2:m),a=Math.cos(p)*m,s=Math.sin(p)*m,h=Math.sin(p)*(i?i/2:m),t.moveTo(r-d,n-s),t.lineTo(r+d,n+s),t.moveTo(r+h,n-a),t.lineTo(r-h,n+a);break;case"star":d=Math.cos(p)*(i?i/2:m),a=Math.cos(p)*m,s=Math.sin(p)*m,h=Math.sin(p)*(i?i/2:m),t.moveTo(r-d,n-s),t.lineTo(r+d,n+s),t.moveTo(r+h,n-a),t.lineTo(r-h,n+a),p+=tu,d=Math.cos(p)*(i?i/2:m),a=Math.cos(p)*m,s=Math.sin(p)*m,h=Math.sin(p)*(i?i/2:m),t.moveTo(r-d,n-s),t.lineTo(r+d,n+s),t.moveTo(r+h,n-a),t.lineTo(r-h,n+a);break;case"line":a=i?i/2:Math.cos(p)*m,s=Math.sin(p)*m,t.moveTo(r-a,n-s),t.lineTo(r+a,n+s);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(p)*(i?i/2:m),n+Math.sin(p)*m);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function es(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r}function el(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function eu(t){t.restore()}function ec(t,e,r,n,i){if(!e)return t.lineTo(r.x,r.y);if("middle"===i){let n=(e.x+r.x)/2;t.lineTo(n,e.y),t.lineTo(n,r.y)}else"after"===i!=!!n?t.lineTo(e.x,r.y):t.lineTo(r.x,e.y);t.lineTo(r.x,r.y)}function ed(t,e,r,n){if(!e)return t.lineTo(r.x,r.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function eh(t,e,r,n,i,o={}){let a,s,l=E(e)?e:[e],u=o.strokeWidth>0&&""!==o.strokeColor;for(t.save(),t.font=i.string,o.translation&&t.translate(o.translation[0],o.translation[1]),j(o.rotation)||t.rotate(o.rotation),o.color&&(t.fillStyle=o.color),o.textAlign&&(t.textAlign=o.textAlign),o.textBaseline&&(t.textBaseline=o.textBaseline),a=0;a<l.length;++a)s=l[a],o.backdrop&&function(t,e){let r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}(t,o.backdrop),u&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),j(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(s,r,n,o.maxWidth)),t.fillText(s,r,n,o.maxWidth),function(t,e,r,n,i){if(i.strikethrough||i.underline){let o=t.measureText(n),a=e-o.actualBoundingBoxLeft,s=e+o.actualBoundingBoxRight,l=r-o.actualBoundingBoxAscent,u=r+o.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(a,c),t.lineTo(s,c),t.stroke()}}(t,r,n,s,o),n+=Number(i.lineHeight);t.restore()}function ef(t,e){let{x:r,y:n,w:i,h:o,radius:a}=e;t.arc(r+a.topLeft,n+a.topLeft,a.topLeft,1.5*tn,tn,!0),t.lineTo(r,n+o-a.bottomLeft),t.arc(r+a.bottomLeft,n+o-a.bottomLeft,a.bottomLeft,tn,tl,!0),t.lineTo(r+i-a.bottomRight,n+o),t.arc(r+i-a.bottomRight,n+o-a.bottomRight,a.bottomRight,tl,0,!0),t.lineTo(r+i,n+a.topRight),t.arc(r+i-a.topRight,n+a.topRight,a.topRight,0,-tl,!0),t.lineTo(r+a.topLeft,n)}let eg=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,em=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/,ep=t=>+t||0;function eb(t,e){let r={},n=H(e),i=n?Object.keys(e):e,o=H(t)?n?r=>_(t[r],t[e[r]]):e=>t[e]:()=>t;for(let t of i)r[t]=ep(o(t));return r}function ey(t){return eb(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ew(t){return eb(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ex(t){let e=ey(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ev(t,e){t=t||{},e=e||et.font;let r=_(t.size,e.size);"string"==typeof r&&(r=parseInt(r,10));let n=_(t.style,e.style);n&&!(""+n).match(em)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);let i={family:_(t.family,e.family),lineHeight:function(t,e){let r=(""+t).match(eg);if(!r||"normal"===r[1])return 1.2*e;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100}return e*t}(_(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:_(t.weight,e.weight),string:""};return i.string=!i||j(i.size)||j(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family,i}function eM(t,e,r,n){let i,o,a,s=!0;for(i=0,o=t.length;i<o;++i)if(void 0!==(a=t[i])&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==r&&E(a)&&(a=a[r%a.length],s=!1),void 0!==a))return n&&!s&&(n.cacheable=!1),a}function ek(t,e,r){let{min:n,max:i}=t,o=F(e,(i-n)/2),a=(t,e)=>r&&0===t?0:t+e;return{min:a(n,-Math.abs(o)),max:a(i,o)}}function eT(t,e){return Object.assign(Object.create(t),e)}function eS(t,e=[""],r,n,i=()=>t[0]){let o=r||t;return void 0===n&&(n=ej("_fallback",t)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:n,_getTarget:i,override:r=>eS([r,...t],e,o,n)},{deleteProperty:(e,r)=>(delete e[r],delete e._keys,delete t[0][r],!0),get:(r,n)=>eC(r,n,()=>(function(t,e,r,n){let i;for(let o of e)if(void 0!==(i=ej(eP(o,t),r)))return eO(t,i)?eN(r,n,t,i):i}
1)(n,e,t,r)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>eE(t).includes(e),ownKeys:t=>eE(t),set(t,e,r){let n=t._storage||(t._storage=i());return t[e]=n[e]=r,delete t._keys,!0}})}function eD(t,e={scriptable:!0,indexable:!0}){let{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:r,indexable:n,isScriptable:tt(r)?r:()=>r,isIndexable:tt(n)?n:()=>n}}let eP=(t,e)=>t?t+J(e):e,eO=(t,e)=>H(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function eC(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];let n=r();return t[e]=n,n}let eY=(t,e)=>!0===t?e:"string"==typeof t?Z(e,t):void 0;function eN(t,e,r,n){var i;let o=e._rootScopes,a=(i=e._fallback,tt(i)?i(r,n):i),s=[...t,...o],l=new Set;l.add(n);let u=eW(l,s,r,a||r,n);return null!==u&&(void 0===a||a===r||null!==(u=eW(l,s,a,u,n)))&&eS(Array.from(l),[""],o,a,()=>(function(t,e,r){let n=t._getTarget();e in n||(n[e]={});let i=n[e];return E(i)&&H(r)?r:i||{}})(e,r,n))}function eW(t,e,r,n,i){for(;r;)r=function(t,e,r,n,i){for(let a of e){let e=eY(r,a);if(e){var o;t.add(e);let a=(o=e._fallback,tt(o)?o(r,i):o);if(void 0!==a&&a!==r&&a!==n)return a}else if(!1===e&&void 0!==n&&r!==n)return null}return!1}(t,e,r,n,i);return r}function ej(t,e){for(let r of e){if(!r)continue;let e=r[t];if(void 0!==e)return e}}function eE(t){let e=t._keys;return e||(e=t._keys=function(t){let e=new Set;for(let r of t)for(let t of Object.keys(r).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function eH(t,e,r,n){let i,o,a,{iScale:s}=t,{key:l="r"}=this._parsing,u=Array(n);for(i=0;i<n;++i)a=e[o=i+r],u[i]={r:s.parse(Z(a,l),o)};return u}let eA=Number.EPSILON||1e-14,eR=(t,e)=>e<t.length&&!t[e].skip&&t[e],e_=t=>"x"===t?"y":"x";function eI(t,e,r){return Math.max(Math.min(t,r),e)}function eF(t,e,r,n,i){let o,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){let r,n,i,o=e_(e),a=t.length,s=Array(a).fill(0),l=Array(a),u=eR(t,0);for(r=0;r<a;++r)if(n=i,i=u,u=eR(t,r+1),i){if(u){let t=u[e]-i[e];s[r]=0!==t?(u[o]-i[o])/t:0}l[r]=n?u?th(s[r-1])!==th(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(t,e,r){let n,i,o,a,s,l=t.length,u=eR(t,0);for(let c=0;c<l-1;++c)if(s=u,u=eR(t,c+1),s&&u){if(tf(e[c],0,eA)){r[c]=r[c+1]=0;continue}(a=Math.pow(n=r[c]/e[c],2)+Math.pow(i=r[c+1]/e[c],2))<=9||(o=3/Math.sqrt(a),r[c]=n*o*e[c],r[c+1]=i*o*e[c])}}(t,s,l),function(t,e,r="x"){let n,i,o,a=e_(r),s=t.length,l=eR(t,0);for(let u=0;u<s;++u){if(i=o,o=l,l=eR(t,u+1),!o)continue;let s=o[r],c=o[a];i&&(n=(s-i[r])/3,o[`cp1${r}`]=s-n,o[`cp1${a}`]=c-n*e[u]),l&&(n=(l[r]-s)/3,o[`cp2${r}`]=s+n,o[`cp2${a}`]=c+n*e[u])}}(t,l,e)}(t,i);else{let r=n?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)l=function(t,e,r,n){let i=t.skip?e:t,o=r.skip?e:r,a=tk(e,i),s=tk(o,e),l=a/(a+s),u=s/(a+s);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let c=n*l,d=n*u;return{previous:{x:e.x-c*(o.x-i.x),y:e.y-c*(o.y-i.y)},next:{x:e.x+d*(o.x-i.x),y:e.y+d*(o.y-i.y)}}}(r,s=t[o],t[Math.min(o+1,a-!n)%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,r=s}e.capBezierPoints&&function(t,e){let r,n,i,o,a,s=es(t[0],e);for(r=0,n=t.length;r<n;++r)a=o,o=s,s=r<n-1&&es(t[r+1],e),o&&(i=t[r],a&&(i.cp1x=eI(i.cp1x,e.left,e.right),i.cp1y=eI(i.cp1y,e.top,e.bottom)),s&&(i.cp2x=eI(i.cp2x,e.left,e.right),i.cp2y=eI(i.cp2y,e.top,e.bottom)))}(t,r)}function eq(){return"undefined"!=typeof window&&"undefined"!=typeof document}function eL(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function eX(t,e,r){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[r])):n=t,n}let eB=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),ez=["top","right","bottom","left"];function eQ(t,e,r){let n={};r=r?"-"+r:"";for(let i=0;i<4;i++){let o=ez[i];n[o]=parseFloat(t[e+"-"+o+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function e$(t,e){if("native"in t)return t;let{canvas:r,currentDevicePixelRatio:n}=e,i=eB(r),o="border-box"===i.boxSizing,a=eQ(i,"padding"),s=eQ(i,"border","width"),{x:l,y:u,box:c}=function(t,e){let r,n,i,o=t.touches,a=o&&o.length?o[0]:t,{offsetX:s,offsetY:l}=a,u=!1;if(i=t.target,(s>0||l>0)&&(!i||!i.shadowRoot))r=s,n=l;else{let t=e.getBoundingClientRect();r=a.clientX-t.left,n=a.clientY-t.top,u=!0}return{x:r,y:n,box:u}}(t,r),d=a.left+(c&&s.left),h=a.top+(c&&s.top),{width:f,height:g}=e;return o&&(f-=a.width+s.width,g-=a.height+s.height),{x:Math.round((l-d)/f*r.width/n),y:Math.round((u-h)/g*r.height/n)}}let eV=t=>Math.round(10*t)/10;function eG(t,e,r,n){let i=eB(t),o=eQ(i,"margin"),a=eX(i.maxWidth,t,"clientWidth")||ta,s=eX(i.maxHeight,t,"clientHeight")||ta,l=function(t,e,r){let n,i;if(void 0===e||void 0===r){let o=t&&eL(t);
1if(o){let t=o.getBoundingClientRect(),a=eB(o),s=eQ(a,"border","width"),l=eQ(a,"padding");e=t.width-l.width-s.width,r=t.height-l.height-s.height,n=eX(a.maxWidth,o,"clientWidth"),i=eX(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,r=t.clientHeight}return{width:e,height:r,maxWidth:n||ta,maxHeight:i||ta}}(t,e,r),{width:u,height:c}=l;if("content-box"===i.boxSizing){let t=eQ(i,"border","width"),e=eQ(i,"padding");u-=e.width+t.width,c-=e.height+t.height}return u=Math.max(0,u-o.width),c=Math.max(0,n?u/n:c-o.height),u=eV(Math.min(u,a,l.maxWidth)),c=eV(Math.min(c,s,l.maxHeight)),u&&!c&&(c=eV(u/2)),(void 0!==e||void 0!==r)&&n&&l.height&&c>l.height&&(u=eV(Math.floor((c=l.height)*n))),{width:u,height:c}}function eU(t,e,r){let n=e||1,i=eV(t.height*n),o=eV(t.width*n);t.height=eV(t.height),t.width=eV(t.width);let a=t.canvas;return a.style&&(r||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||a.height!==i||a.width!==o)&&(t.currentDevicePixelRatio=n,a.height=i,a.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)}let eZ=function(){let t=!1;try{let e={get passive(){return t=!0,!1}};eq()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function eJ(t,e){let r=eB(t).getPropertyValue(e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function eK(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}function e0(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:"middle"===n?r<.5?t.y:e.y:"after"===n?r<1?t.y:e.y:r>0?e.y:t.y}}function e1(t,e,r,n){let i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=eK(t,i,r),s=eK(i,o,r),l=eK(o,e,r),u=eK(a,s,r),c=eK(s,l,r);return eK(u,c,r)}function e2(t,e,r){var n;return t?(n=r,{x:t=>e+e+n-t,setWidth(t){n=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function e5(t,e){let r,n;("ltr"===e||"rtl"===e)&&(n=[(r=t.canvas.style).getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)}function e3(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function e4(t){return"angle"===t?{between:tD,compare:tT,normalize:tS}:{between:tC,compare:(t,e)=>t-e,normalize:t=>t}}function e6({start:t,end:e,count:r,loop:n,style:i}){return{start:t%r,end:e%r,loop:n&&(e-t+1)%r==0,style:i}}function e9(t,e,r){let n,i,o;if(!r)return[t];let{property:a,start:s,end:l}=r,u=e.length,{compare:c,between:d,normalize:h}=e4(a),{start:f,end:g,loop:m,style:p}=function(t,e,r){let n,{property:i,start:o,end:a}=r,{between:s,normalize:l}=e4(i),u=e.length,{start:c,end:d,loop:h}=t;if(h){for(c+=u,d+=u,n=0;n<u&&s(l(e[c%u][i]),o,a);++n)c--,d--;c%=u,d%=u}return d<c&&(d+=u),{start:c,end:d,loop:h,style:t.style}}(t,e,r),b=[],y=!1,w=null,x=()=>y||d(s,o,n)&&0!==c(s,o),v=()=>!y||0===c(l,n)||d(l,o,n);for(let t=f,r=f;t<=g;++t)(i=e[t%u]).skip||(n=h(i[a]))!==o&&(y=d(n,s,l),null===w&&x()&&(w=0===c(n,s)?t:r),null!==w&&v()&&(b.push(e6({start:w,end:t,loop:m,count:u,style:p})),w=null),r=t,o=n);return null!==w&&b.push(e6({start:w,end:g,loop:m,count:u,style:p})),b}function e7(t,e){let r=[],n=t.segments;for(let i=0;i<n.length;i++){let o=e9(n[i],t.points,e);o.length&&r.push(...o)}return r}function e8(t,e){let r=t.points,n=t.options.spanGaps,i=r.length;if(!i)return[];let o=!!t._loop,{start:a,end:s}=function(t,e,r,n){let i=0,o=e-1;if(r&&!n)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,r&&(o+=i);o>i&&t[o%e].skip;)o--;return{start:i,end:o%=e}}(r,i,o,n);if(!0===n)return rt(t,[{start:a,end:s,loop:o}],r,e);let l=s<a?s+i:s,u=!!t._fullLoop&&0===a&&s===i-1;return rt(t,function(t,e,r,n){let i,o=t.length,a=[],s=e,l=t[e];for(i=e+1;i<=r;++i){let r=t[i%o];r.skip||r.stop?l.skip||(n=!1,a.push({start:e%o,end:(i-1)%o,loop:n}),e=s=r.stop?i:null):(s=i,l.skip&&(e=i)),l=r}return null!==s&&a.push({start:e%o,end:s%o,loop:n}),a}(r,a,l,u),r,e)}function rt(t,e,r,n){return n&&n.setContext&&r?function(t,e,r,n){let i=t._chart.getContext(),o=re(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=r.length,u=[],c=o,d=e[0].start,h=d;function f(t,e,n,i){let o=s?-1:1;if(t!==e){for(t+=l;r[t%l].skip;)t-=o;for(;r[e%l].skip;)e+=o;t%l!=e%l&&(u.push({start:t%l,end:e%l,loop:n,style:i}),c=i,d=e%l)}}for(let t of e){let e,o=r[(d=s?d:t.start)%l];for(h=d+1;h<=t.end;h++){let s=r[h%l];(function(t,e){if(!e)return!1;let r=[],n=function(t,e){return tU(e)?(r.includes(e)||r.push(e),r.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)})(e=re(n.setContext(eT(i,{type:"segment",p0:o,p1:s,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:a}))),c)&&f(d,h-1,t.loop,c),o=s,c=e}d<h-1&&f(d,h-1,t.loop,c)}return u}(t,e,r,n):e}function re(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function rr(t,e,r){return t.options.clip?t[r]:e[r]}function rn(t,e){let r=e._clip;if(r.disabled)return!1;let n=function(t,e){let{xScale:r,yScale:n}=t;
1return r&&n?{left:rr(r,e,"left"),right:rr(r,e,"right"),top:rr(n,e,"top"),bottom:rr(n,e,"bottom")}:e}(e,t.chartArea);return{left:!1===r.left?0:n.left-(!0===r.left?0:r.left),right:!1===r.right?t.width:n.right+(!0===r.right?0:r.right),top:!1===r.top?0:n.top-(!0===r.top?0:r.top),bottom:!1===r.bottom?t.height:n.bottom+(!0===r.bottom?0:r.bottom)}}},50101:(t,e,r)=>{var n=r(31607);function i(t){let e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new t.constructor(+t):new Date("number"==typeof t||"[object Number]"===e||"string"==typeof t||"[object String]"===e?t:NaN)}function o(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}let a={},s={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function l(t){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}let u={date:l({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:l({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:l({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function d(t){return(e,r)=>{let n;if("formatting"===((null==r?void 0:r.context)?String(r.context):"standalone")&&t.formattingValues){let e=t.defaultFormattingWidth||t.defaultWidth,i=(null==r?void 0:r.width)?String(r.width):e;n=t.formattingValues[i]||t.formattingValues[e]}else{let e=t.defaultWidth,i=(null==r?void 0:r.width)?String(r.width):t.defaultWidth;n=t.values[i]||t.values[e]}return n[t.argumentCallback?t.argumentCallback(e):e]}}function h(t){return function(e){let r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],a=e.match(o);if(!a)return null;let s=a[0],l=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(l)?function(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}(l,t=>t.test(s)):function(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}(l,t=>t.test(s));return r=t.valueCallback?t.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:e.slice(s.length)}}}let f={code:"en-US",formatDistance:(t,e,r)=>{let n,i=s[t];if(n="string"==typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null==r?void 0:r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+n;else return n+" ago";return n},formatLong:u,formatRelative:(t,e,r,n)=>c[t],localize:{ordinalNumber:(t,e)=>{let r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:d({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:d({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:d({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:d({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:d({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(t){return function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;let i=n[0],o=e.match(t.parsePattern);if(!o)return null;let a=t.valueCallback?t.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:e.slice(i.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)}),era:h({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:h({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:h({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:h({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:h({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},g=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},m=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},p={p:m,P:(t,e)=>{let r,n=t.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return g(t,e);switch(i){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;default:r=e.dateTime({width:"full"})}return r.replace("{{date}}",g(i,e)).replace("{{time}}",m(o,e))}},b=/^D+$/,y=/^Y+$/,w=["D","DD","YY","YYYY"];function x(t,e,r){let n=function(t,e,r){let n="Y"===t[0]?"years":"days of the month";return"Use `".concat(t.toLowerCase(),"` instead of `").concat(t,"` (in `").concat(e,"`) for formatting ").concat(n," to the input `").
1concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(t,e,r);if(console.warn(n),w.includes(t))throw RangeError(n)}class v{validate(t,e){return!0}constructor(){this.subPriority=0}}class M extends v{validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,r){return this.setValue(t,e,this.value,r)}constructor(t,e,r,n,i){super(),this.value=t,this.validateValue=e,this.setValue=r,this.priority=n,i&&(this.subPriority=i)}}class k extends v{set(t,e){return e.timestampIsSet?t:o(t,function(t,e){let r=e instanceof Date?o(e,0):new e(0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}(t,Date))}constructor(...t){super(...t),this.priority=10,this.subPriority=-1}}class T{run(t,e,r,n){let i=this.parse(t,e,r,n);return i?{setter:new M(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,e,r){return!0}}class S extends T{parse(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,e,r){return e.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}constructor(...t){super(...t),this.priority=140,this.incompatibleTokens=["R","u","t","T"]}}let D={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},P={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function O(t,e){return t?{value:e(t.value),rest:t.rest}:t}function C(t,e){let r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function Y(t,e){let r=e.match(t);if(!r)return null;if("Z"===r[0])return{value:0,rest:e.slice(1)};let n="+"===r[1]?1:-1,i=r[2]?parseInt(r[2],10):0;return{value:n*(36e5*i+6e4*(r[3]?parseInt(r[3],10):0)+(r[5]?parseInt(r[5],10):0)*1e3),rest:e.slice(r[0].length)}}function N(t){return C(D.anyDigitsSigned,t)}function W(t,e){switch(t){case 1:return C(D.singleDigit,e);case 2:return C(D.twoDigits,e);case 3:return C(D.threeDigits,e);case 4:return C(D.fourDigits,e);default:return C(RegExp("^\\d{1,"+t+"}"),e)}}function j(t,e){switch(t){case 1:return C(D.singleDigitSigned,e);case 2:return C(D.twoDigitsSigned,e);case 3:return C(D.threeDigitsSigned,e);case 4:return C(D.fourDigitsSigned,e);default:return C(RegExp("^-?\\d{1,"+t+"}"),e)}}function E(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function H(t,e){let r,n=e>0,i=n?e:1-e;if(i<=50)r=t||100;else{let e=i+50;r=t+100*Math.trunc(e/100)-100*(t>=e%100)}return n?r:1-r}function A(t){return t%400==0||t%4==0&&t%100!=0}class R extends T{parse(t,e,r){let n=t=>({year:t,isTwoDigitYear:"yy"===e});switch(e){case"y":return O(W(4,t),n);case"yo":return O(r.ordinalNumber(t,{unit:"year"}),n);default:return O(W(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r){let n=t.getFullYear();if(r.isTwoDigitYear){let e=H(r.year,n);return t.setFullYear(e,0,1),t.setHours(0,0,0,0),t}let i="era"in e&&1!==e.era?1-r.year:r.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}constructor(...t){super(...t),this.priority=130,this.incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"]}}function _(t,e){var r,n,o,s,l,u,c,d;let h=null!=(d=null!=(c=null!=(u=null!=(l=null==e?void 0:e.weekStartsOn)?l:null==e||null==(n=e.locale)||null==(r=n.options)?void 0:r.weekStartsOn)?u:a.weekStartsOn)?c:null==(s=a.locale)||null==(o=s.options)?void 0:o.weekStartsOn)?d:0,f=i(t),g=f.getDay();return f.setDate(f.getDate()-(7*(g<h)+g-h)),f.setHours(0,0,0,0),f}function I(t,e){var r,n,s,l,u,c,d,h;let f=i(t),g=f.getFullYear(),m=null!=(h=null!=(d=null!=(c=null!=(u=null==e?void 0:e.firstWeekContainsDate)?u:null==e||null==(n=e.locale)||null==(r=n.options)?void 0:r.firstWeekContainsDate)?c:a.firstWeekContainsDate)?d:null==(l=a.locale)||null==(s=l.options)?void 0:s.firstWeekContainsDate)?h:1,p=o(t,0);p.setFullYear(g+1,0,m),p.setHours(0,0,0,0);let b=_(p,e),y=o(t,0);y.setFullYear(g,0,m),y.setHours(0,0,0,0);let w=_(y,e);return f.getTime()>=b.getTime()?g+1:f.getTime()>=w.getTime()?g:g-1}class F extends T{parse(t,e,r){let n=t=>({year:t,isTwoDigitYear:"YY"===e});switch(e){case"Y":return O(W(4,t),n);case"Yo":return O(r.ordinalNumber(t,{unit:"year"}),n);default:return O(W(e.length,t),n)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,r,n){let i=I(t,n);if(r.isTwoDigitYear){let e=H(r.year,i);return t.setFullYear(e,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),_(t,n)}let o="era"in e&&1!==e.era?1-r.year:r.year;return t.setFullYear(o,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),_(t,n)}constructor(...t){super(...t),this.priority=130,this.incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}}function q(t){return _(t,{weekStartsOn:1}
1)}class L extends T{parse(t,e){return"R"===e?j(4,t):j(e.length,t)}set(t,e,r){let n=o(t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),q(n)}constructor(...t){super(...t),this.priority=130,this.incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}}class X extends T{parse(t,e){return"u"===e?j(4,t):j(e.length,t)}set(t,e,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}constructor(...t){super(...t),this.priority=130,this.incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}}class B extends T{parse(t,e,r){switch(e){case"Q":case"QQ":return W(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}constructor(...t){super(...t),this.priority=120,this.incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}}class z extends T{parse(t,e,r){switch(e){case"q":case"qq":return W(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}constructor(...t){super(...t),this.priority=120,this.incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}}class Q extends T{parse(t,e,r){let n=t=>t-1;switch(e){case"M":return O(C(D.month,t),n);case"MM":return O(W(2,t),n);case"Mo":return O(r.ordinalNumber(t,{unit:"month"}),n);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}constructor(...t){super(...t),this.incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"],this.priority=110}}class $ extends T{parse(t,e,r){let n=t=>t-1;switch(e){case"L":return O(C(D.month,t),n);case"LL":return O(W(2,t),n);case"Lo":return O(r.ordinalNumber(t,{unit:"month"}),n);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}constructor(...t){super(...t),this.priority=110,this.incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}}function V(t,e){let r=i(t);return Math.round((_(r,e)-function(t,e){var r,n,i,s,l,u,c,d;let h=null!=(d=null!=(c=null!=(u=null!=(l=null==e?void 0:e.firstWeekContainsDate)?l:null==e||null==(n=e.locale)||null==(r=n.options)?void 0:r.firstWeekContainsDate)?u:a.firstWeekContainsDate)?c:null==(s=a.locale)||null==(i=s.options)?void 0:i.firstWeekContainsDate)?d:1,f=I(t,e),g=o(t,0);return g.setFullYear(f,0,h),g.setHours(0,0,0,0),_(g,e)}(r,e))/6048e5)+1}class G extends T{parse(t,e,r){switch(e){case"w":return C(D.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return W(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r,n){return _(function(t,e,r){let n=i(t),o=V(n,r)-e;return n.setDate(n.getDate()-7*o),n}(t,r,n),n)}constructor(...t){super(...t),this.priority=100,this.incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}}function U(t){let e=i(t),r=e.getFullYear(),n=o(t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let a=q(n),s=o(t,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);let l=q(s);return e.getTime()>=a.getTime()?r+1:e.getTime()>=l.getTime()?r:r-1}function Z(t){let e=i(t);return Math.round((q(e)-function(t){let e=U(t),r=o(t,0);return r.setFullYear(e,0,4),r.setHours(0,0,0,0),q(r)}(e))/6048e5)+1}class J extends T{parse(t,e,r){switch(e){case"I":return C(D.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return W(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,r){return q(function(t,e){let r=i(t),n=Z(r)-e;return r.setDate(r.getDate()-7*n),r}(t,r))}constructor(...t){super(...t),this.priority=100,this.incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}}let K=[31,28,31,30,31,30,31,31,30,31,30,31],tt=[31,29,31,30,31,30,31,31,30,31,30,31];class te extends T{parse(t,e,r){switch(e){case"d":return C(D.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return W(e.length,t)}}validate(t,e){let r=A(t.getFullYear()),n=t.getMonth();return r?e>=1&&e<=tt[n]:e>=1&&e<=K[n]}set(t,e,r){return t.setDate(r),t.setHours(0,0,0,0),t}constructor(...t){super(...t),this.priority=90,this.subPriority=1,this.incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}}class tr extends T{parse(t,e,r){switch(e){case"D":case"DD":return C(D.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return W(e.length,t)}}validate(t,e){return A(t.getFullYear())?e>=1&&e<=366:e>=1&&e<=365}set(t,e,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}constructor(...t){super(...t),this.priority=90,this.subpriority=1,this.incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}}function tn(t,e){let r=i(t);return isNaN(e)?o(t,NaN):(e&&r.setDate(r.getDate()+e),r)}function ti(t,e,r){var n,o,s,l,u,c,d,h;let f=null!=(h=null!=(d=null!=(c=null!=(u=null==r?void 0:r.weekStartsOn)?u:null==r||null==(o=r.locale)||null==(n=o.options)?void 0:n.weekStartsOn)?c:a.weekStartsOn)?d:null==(l=a.locale)||null==(s=l.options)?void 0:s.weekStartsOn)?h:0,g=i(t),m=g.getDay(),p=7-f;return tn(g,e<0||e>6?e-(m+p)%7:((e%7+7)%7+p)%7-(m+p)%7)}class to extends T{parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,n){return(t=ti(t,r,n)).setHours(0,0,0,0),t}constructor(...t){super(...t),this.priority=90,this.incompatibleTokens=["D","i","e","c","t","T"]}}class ta extends T{parse(t,e,r,n){let i=t=>{let e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return O(W(e.length,t),i);case"eo":return O(r.ordinalNumber(t,{unit:"day"}),i);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,n){return(t=ti(t,r,n)).setHours(0,0,0,0),t}constructor(...t){super(...t),this.priority=90,this.incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}}class ts extends T{parse(t,e,r,n){let i=t=>{let e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return O(W(e.length,t),i);case"co":return O(r.ordinalNumber(t,{unit:"day"}),i);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,n){return(t=ti(t,r,n)).setHours(0,0,0,0),t}constructor(...t){super(...t),this.priority=90,this.incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}}class tl extends T{parse(t,e,r){let n=t=>0===t?7:t;switch(e){case"i":case"ii":return W(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return O(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return O(r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return O(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);default:return O(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n)}}validate(t,e){return e>=1&&e<=7}set(t,e,r){return(t=function(t,e){let r,n=i(t),o=(0===(r=i(n).getDay())&&(r=7),r);return tn(n,e-o)}(t,r)).setHours(0,0,0,0),t}constructor(...t){super(...t),this.priority=90,this.incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}}class tu extends T{parse(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(E(r),0,0,0),t}constructor(...t){super(...t),this.priority=80,this.incompatibleTokens=["b","B","H","k","t","T"]}}
1class tc extends T{parse(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(E(r),0,0,0),t}constructor(...t){super(...t),this.priority=80,this.incompatibleTokens=["a","B","H","k","t","T"]}}class td extends T{parse(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,r){return t.setHours(E(r),0,0,0),t}constructor(...t){super(...t),this.priority=80,this.incompatibleTokens=["a","b","t","T"]}}class th extends T{parse(t,e,r){switch(e){case"h":return C(D.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return W(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,r){let n=t.getHours()>=12;return n&&r<12?t.setHours(r+12,0,0,0):n||12!==r?t.setHours(r,0,0,0):t.setHours(0,0,0,0),t}constructor(...t){super(...t),this.priority=70,this.incompatibleTokens=["H","K","k","t","T"]}}class tf extends T{parse(t,e,r){switch(e){case"H":return C(D.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return W(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,r){return t.setHours(r,0,0,0),t}constructor(...t){super(...t),this.priority=70,this.incompatibleTokens=["a","b","h","K","k","t","T"]}}class tg extends T{parse(t,e,r){switch(e){case"K":return C(D.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return W(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}constructor(...t){super(...t),this.priority=70,this.incompatibleTokens=["h","H","k","t","T"]}}class tm extends T{parse(t,e,r){switch(e){case"k":return C(D.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return W(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,r){return t.setHours(r<=24?r%24:r,0,0,0),t}constructor(...t){super(...t),this.priority=70,this.incompatibleTokens=["a","b","h","H","K","t","T"]}}class tp extends T{parse(t,e,r){switch(e){case"m":return C(D.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return W(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setMinutes(r,0,0),t}constructor(...t){super(...t),this.priority=60,this.incompatibleTokens=["t","T"]}}class tb extends T{parse(t,e,r){switch(e){case"s":return C(D.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return W(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,r){return t.setSeconds(r,0),t}constructor(...t){super(...t),this.priority=50,this.incompatibleTokens=["t","T"]}}class ty extends T{parse(t,e){return O(W(e.length,t),t=>Math.trunc(t*Math.pow(10,-e.length+3)))}set(t,e,r){return t.setMilliseconds(r),t}constructor(...t){super(...t),this.priority=30,this.incompatibleTokens=["t","T"]}}function tw(t){let e=i(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),t-r}class tx extends T{parse(t,e){switch(e){case"X":return Y(P.basicOptionalMinutes,t);case"XX":return Y(P.basic,t);case"XXXX":return Y(P.basicOptionalSeconds,t);case"XXXXX":return Y(P.extendedOptionalSeconds,t);default:return Y(P.extended,t)}}set(t,e,r){return e.timestampIsSet?t:o(t,t.getTime()-tw(t)-r)}constructor(...t){super(...t),this.priority=10,this.incompatibleTokens=["t","T","x"]}}class tv extends T{parse(t,e){switch(e){case"x":return Y(P.basicOptionalMinutes,t);case"xx":return Y(P.basic,t);case"xxxx":return Y(P.basicOptionalSeconds,t);case"xxxxx":return Y(P.extendedOptionalSeconds,t);default:return Y(P.extended,t)}}set(t,e,r){return e.timestampIsSet?t:o(t,t.getTime()-tw(t)-r)}constructor(...t){super(...t),this.priority=10,this.incompatibleTokens=["t","T","X"]}}class tM extends T{parse(t){return N(t)}set(t,e,r){return[o(t,1e3*r),{timestampIsSet:!0}]}constructor(...t){super(...t),this.priority=40,this.incompatibleTokens="*"}}class tk extends T{parse(t){return N(t)}set(t,e,r){return[o(t,r),{timestampIsSet:!0}]}constructor(...t){super(...t),this.priority=20,this.incompatibleTokens="*"}}let tT={G:new S,y:new R,Y:new F,R:new L,u:new X,Q:new B,q:new z,M:new Q,L:new $,w:new G,I:new J,d:new te,D:new tr,E:new to,e:new ta,c:new ts,i:new tl,a:new tu,b:new tc,B:new td,h:new th,H:new tf,K:new tg,k:new tm,m:new tp,s:new tb,S:new ty,X:new tx,x:new tv,t:new tM,T:new tk},tS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tP=/^'([^]*?)'?$/,tO=/''/g,tC=/\S/,tY=/[a-zA-Z]/,tN={dateTimeDelimiter:
1/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},tW=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,tj=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,tE=/^([+-])(\d{2})(?::?(\d{2}))?$/;function tH(t){return t?parseInt(t):1}function tA(t){return t&&parseFloat(t.replace(",","."))||0}let tR=[31,null,31,30,31,30,31,31,30,31,30,31];function t_(t){return t%400==0||t%4==0&&t%100!=0}function tI(t){return(!!(t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))||"number"==typeof t)&&!isNaN(Number(i(t)))}function tF(t){let e=i(t);return e.setHours(0,0,0,0),e}function tq(t,e){let r=tF(t),n=tF(e);return Math.round((r-tw(r)-(n-tw(n)))/864e5)}function tL(t){let e=i(t),r=o(t,0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}function tX(t,e){let r=Math.abs(t).toString().padStart(e,"0");return(t<0?"-":"")+r}let tB={y(t,e){let r=t.getFullYear(),n=r>0?r:1-r;return tX("yy"===e?n%100:n,e.length)},M(t,e){let r=t.getMonth();return"M"===e?String(r+1):tX(r+1,2)},d:(t,e)=>tX(t.getDate(),e.length),a(t,e){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(t,e)=>tX(t.getHours()%12||12,e.length),H:(t,e)=>tX(t.getHours(),e.length),m:(t,e)=>tX(t.getMinutes(),e.length),s:(t,e)=>tX(t.getSeconds(),e.length),S(t,e){let r=e.length;return tX(Math.trunc(t.getMilliseconds()*Math.pow(10,r-3)),e.length)}},tz={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},tQ={G:function(t,e,r){let n=+(t.getFullYear()>0);switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if("yo"===e){let e=t.getFullYear();return r.ordinalNumber(e>0?e:1-e,{unit:"year"})}return tB.y(t,e)},Y:function(t,e,r,n){let i=I(t,n),o=i>0?i:1-i;return"YY"===e?tX(o%100,2):"Yo"===e?r.ordinalNumber(o,{unit:"year"}):tX(o,e.length)},R:function(t,e){return tX(U(t),e.length)},u:function(t,e){return tX(t.getFullYear(),e.length)},Q:function(t,e,r){let n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return tX(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){let n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return tX(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){let n=t.getMonth();switch(e){case"M":case"MM":return tB.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){let n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return tX(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){let i=V(t,n);return"wo"===e?r.ordinalNumber(i,{unit:"week"}):tX(i,e.length)},I:function(t,e,r){let n=Z(t);return"Io"===e?r.ordinalNumber(n,{unit:"week"}):tX(n,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getDate(),{unit:"date"}):tB.d(t,e)},D:function(t,e,r){let n=function(t){let e=i(t);return tq(e,tL(e))+1}(t);return"Do"===e?r.ordinalNumber(n,{unit:"dayOfYear"}):tX(n,e.length)},E:function(t,e,r){let n=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){let i=t.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return tX(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){let i=t.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return tX(o,e.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,r){let n=t.getDay(),i=0===n?7:n;switch(e){case"i":return String(i);case"ii":return tX(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){let n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){let n,i=t.getHours();
1switch(n=12===i?tz.noon:0===i?tz.midnight:i/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){let n,i=t.getHours();switch(n=i>=17?tz.evening:i>=12?tz.afternoon:i>=4?tz.morning:tz.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),r.ordinalNumber(e,{unit:"hour"})}return tB.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getHours(),{unit:"hour"}):tB.H(t,e)},K:function(t,e,r){let n=t.getHours()%12;return"Ko"===e?r.ordinalNumber(n,{unit:"hour"}):tX(n,e.length)},k:function(t,e,r){let n=t.getHours();return(0===n&&(n=24),"ko"===e)?r.ordinalNumber(n,{unit:"hour"}):tX(n,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):tB.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getSeconds(),{unit:"second"}):tB.s(t,e)},S:function(t,e){return tB.S(t,e)},X:function(t,e,r){let n=t.getTimezoneOffset();if(0===n)return"Z";switch(e){case"X":return tV(n);case"XXXX":case"XX":return tG(n);default:return tG(n,":")}},x:function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"x":return tV(n);case"xxxx":case"xx":return tG(n);default:return tG(n,":")}},O:function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+t$(n,":");default:return"GMT"+tG(n,":")}},z:function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+t$(n,":");default:return"GMT"+tG(n,":")}},t:function(t,e,r){return tX(Math.trunc(t.getTime()/1e3),e.length)},T:function(t,e,r){return tX(t.getTime(),e.length)}};function t$(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t>0?"-":"+",n=Math.abs(t),i=Math.trunc(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+e+tX(o,2)}function tV(t,e){return t%60==0?(t>0?"-":"+")+tX(Math.abs(t)/60,2):tG(t,e)}function tG(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=Math.abs(t);return(t>0?"-":"+")+tX(Math.trunc(r/60),2)+e+tX(r%60,2)}let tU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tZ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tJ=/^'([^]*?)'?$/,tK=/''/g,t0=/[a-zA-Z]/;function t1(t,e){let r=+i(t);return o(t,r+e)}function t2(t,e){let r=i(t);if(isNaN(e))return o(t,NaN);if(!e)return r;let n=r.getDate(),a=o(t,r.getTime());return(a.setMonth(r.getMonth()+e+1,0),n>=a.getDate())?a:(r.setFullYear(a.getFullYear(),a.getMonth(),n),r)}function t5(t){return e=>{let r=(t?Math[t]:Math.trunc)(e);return 0===r?0:r}}function t3(t,e){let r=i(t),n=i(e),o=t4(r,n),a=Math.abs(tq(r,n));r.setDate(r.getDate()-o*a);let s=Number(t4(r,n)===-o),l=o*(a-s);return 0===l?0:l}function t4(t,e){let r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function t6(t,e){let r=i(t),n=i(e),o=r.getTime()-n.getTime();return o<0?-1:o>0?1:o}function t9(t){let e=i(t);return e.setHours(23,59,59,999),e}function t7(t){let e=i(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e}function t8(t,e){let r,n=i(t),o=i(e),a=t6(n,o),s=Math.abs(function(t,e){let r=i(t),n=i(e);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(n,o));if(s<1)r=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-a*s);let e=t6(n,o)===-a;(function(t){let e=i(t);return+t9(e)==+t7(e)})(i(t))&&1===s&&1===t6(t,o)&&(e=!1),r=a*(s-Number(e))}return 0===r?0:r}let et={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};n.ij._date.override({_id:"date-fns",formats:function(){return et},parse:function(t,e){if(null==t)return null;let r=typeof t;return"number"===r||t instanceof Date?t=i(t):"string"===r&&(t="string"==typeof e?function(t,e,r,n){var s,l,u,c,d,h,g,m,w,v,M,T,S,D,P,O,C,Y,N,W;let j=Object.assign({},a),E=null!=(v=null!=(w=null==n?void 0:n.locale)?w:j.locale)?v:f,H=null!=(D=null!=(S=null!=(T=null!=(M=null==n?void 0:n.firstWeekContainsDate)?M:null==n||null==(l=n.locale)||null==(s=l.options)?void 0:s.firstWeekContainsDate)?T:j.firstWeekContainsDate)?S:null==(c=j.locale)||null==(u=c.options)?void 0:u.firstWeekContainsDate)?D:1,A=null!=(Y=null!=(C=null!=(O=null!=(P=null==n?void 0:n.weekStartsOn)?P:null==n||null==(h=n.locale)||null==(d=h.options)?void 0:d.weekStartsOn)?O:j.weekStartsOn)?C:null==(m=j.locale)||null==(g=m.options)?void 0:g.weekStartsOn)?Y:0;if(""===e)if(""===t)return i(r);else return o(r,NaN);let R={firstWeekContainsDate:H,weekStartsOn:A,locale:E},_=[new k],I=e.match(tD).map(t=>{let e=t[0];return e in p?(0,p[e])(t,E.formatLong):t}).join("").match(tS),F=[];for(let i of I){!(null==n?void 0:n.useAdditionalWeekYearTokens)&&(N=i,y.test(N))&&x(i,e,t),!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&(W=i,b.test(W))&&x(i,e,t);
1let a=i[0],s=tT[a];if(s){let{incompatibleTokens:e}=s;if(Array.isArray(e)){let t=F.find(t=>e.includes(t.token)||t.token===a);if(t)throw RangeError("The format string mustn't contain `".concat(t.fullToken,"` and `").concat(i,"` at the same time"))}else if("*"===s.incompatibleTokens&&F.length>0)throw RangeError("The format string mustn't contain `".concat(i,"` and any other token at the same time"));F.push({token:a,fullToken:i});let n=s.run(t,i,E.match,R);if(!n)return o(r,NaN);_.push(n.setter),t=n.rest}else{if(a.match(tY))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===i?i="'":"'"===a&&(i=i.match(tP)[1].replace(tO,"'")),0!==t.indexOf(i))return o(r,NaN);t=t.slice(i.length)}}if(t.length>0&&tC.test(t))return o(r,NaN);let q=_.map(t=>t.priority).sort((t,e)=>e-t).filter((t,e,r)=>r.indexOf(t)===e).map(t=>_.filter(e=>e.priority===t).sort((t,e)=>e.subPriority-t.subPriority)).map(t=>t[0]),L=i(r);if(isNaN(L.getTime()))return o(r,NaN);let X={};for(let t of q){if(!t.validate(L,R))return o(r,NaN);let e=t.set(L,X,R);Array.isArray(e)?(L=e[0],Object.assign(X,e[1])):L=e}return o(r,L)}(t,e,new Date,this.options):function(t,e){var r;let n,i,o=null!=(r=null==e?void 0:e.additionalDigits)?r:2,a=function(t){let e,r={},n=t.split(tN.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?e=n[0]:(r.date=n[0],e=n[1],tN.timeZoneDelimiter.test(r.date)&&(r.date=t.split(tN.timeZoneDelimiter)[0],e=t.substr(r.date.length,t.length))),e){let t=tN.timezone.exec(e);t?(r.time=e.replace(t[1],""),r.timezone=t[1]):r.time=e}return r}(t);
1if(a.date){let t=function(t,e){let r=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(r);if(!n)return{year:NaN,restDateString:""};let i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:null===o?i:100*o,restDateString:t.slice((n[1]||n[2]).length)}}(a.date,o);n=function(t,e){var r,n,i,o,a,s,l,u;if(null===e)return new Date(NaN);let c=t.match(tW);if(!c)return new Date(NaN);let d=!!c[4],h=tH(c[1]),f=tH(c[2])-1,g=tH(c[3]),m=tH(c[4]),p=tH(c[5])-1;if(d){return(r=0,n=m,i=p,n>=1&&n<=53&&i>=0&&i<=6)?function(t,e,r){let n=new Date(0);n.setUTCFullYear(t,0,4);let i=n.getUTCDay()||7;return n.setUTCDate(n.getUTCDate()+((e-1)*7+r+1-i)),n}(e,m,p):new Date(NaN)}{let t=new Date(0);return(o=e,a=f,s=g,a>=0&&a<=11&&s>=1&&s<=(tR[a]||(t_(o)?29:28))&&(l=e,(u=h)>=1&&u<=(t_(l)?366:365)))?(t.setUTCFullYear(e,f,Math.max(h,g)),t):new Date(NaN)}}(t.restDateString,t.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);let s=n.getTime(),l=0;if(a.time&&isNaN(l=function(t){var e,r,n;let i=t.match(tj);if(!i)return NaN;let o=tA(i[1]),a=tA(i[2]),s=tA(i[3]);return(e=o,r=a,n=s,24===e?0===r&&0===n:n>=0&&n<60&&r>=0&&r<60&&e>=0&&e<25)?36e5*o+6e4*a+1e3*s:NaN}(a.time)))return new Date(NaN);if(a.timezone){if(isNaN(i=function(t){var e,r;if("Z"===t)return 0;let n=t.match(tE);if(!n)return 0;let i="+"===n[1]?-1:1,o=parseInt(n[2]),a=n[3]&&parseInt(n[3])||0;return(e=0,(r=a)>=0&&r<=59)?i*(36e5*o+6e4*a):NaN}(a.timezone)))return new Date(NaN)}else{let t=new Date(s+l),e=new Date(0);return e.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),e.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),e}return new Date(s+l+i)}(t,this.options)),tI(t)?t.getTime():null},format:function(t,e){return function(t,e,r){var n,o,s,l,u,c,d,h,g,m,w,v,M,k,T,S,D,P;let O=null!=(m=null!=(g=null==r?void 0:r.locale)?g:a.locale)?m:f,C=null!=(k=null!=(M=null!=(v=null!=(w=null==r?void 0:r.firstWeekContainsDate)?w:null==r||null==(o=r.locale)||null==(n=o.options)?void 0:n.firstWeekContainsDate)?v:a.firstWeekContainsDate)?M:null==(l=a.locale)||null==(s=l.options)?void 0:s.firstWeekContainsDate)?k:1,Y=null!=(P=null!=(D=null!=(S=null!=(T=null==r?void 0:r.weekStartsOn)?T:null==r||null==(c=r.locale)||null==(u=c.options)?void 0:u.weekStartsOn)?S:a.weekStartsOn)?D:null==(h=a.locale)||null==(d=h.options)?void 0:d.weekStartsOn)?P:0,N=i(t);if(!tI(N))throw RangeError("Invalid time value");let W=e.match(tZ).map(t=>{let e=t[0];return"p"===e||"P"===e?(0,p[e])(t,O.formatLong):t}).join("").match(tU).map(t=>{if("''"===t)return{isToken:!1,value:"'"};let e=t[0];if("'"===e)return{isToken:!1,value:function(t){let e=t.match(tJ);return e?e[1].replace(tK,"'"):t}(t)};if(tQ[e])return{isToken:!0,value:t};if(e.match(t0))throw RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}});O.localize.preprocessor&&(W=O.localize.preprocessor(N,W));let j={firstWeekContainsDate:C,weekStartsOn:Y,locale:O};return W.map(n=>{if(!n.isToken)return n.value;let i=n.value;return(!(null==r?void 0:r.useAdditionalWeekYearTokens)&&y.test(i)||!(null==r?void 0:r.useAdditionalDayOfYearTokens)&&b.test(i))&&x(i,e,String(t)),(0,tQ[i[0]])(N,i,O.localize,j)}).join("")}(t,e,this.options)},add:function(t,e,r){switch(r){case"millisecond":return t1(t,e);case"second":return t1(t,1e3*e);case"minute":return t1(t,6e4*e);case"hour":return t1(t,36e5*e);case"day":return tn(t,e);case"week":return tn(t,7*e);case"month":return t2(t,e);case"quarter":return t2(t,3*e);case"year":return t2(t,12*e);default:return t}},diff:function(t,e,r){switch(r){case"millisecond":return i(t)-i(e);case"second":return function(t,e,r){let n=(i(t)-i(e))/1e3;return t5(void 0)(n)}(t,e);case"minute":return function(t,e,r){let n=(i(t)-i(e))/6e4;return t5(void 0)(n)}(t,e);case"hour":return function(t,e,r){let n=(i(t)-i(e))/36e5;return t5(void 0)(n)}(t,e);case"day":return t3(t,e);case"week":let n=t3(t,e)/7;return t5(void 0)(n);case"month":return t8(t,e);case"quarter":let o=t8(t,e)/3;return t5(void 0)(o);case"year":return function(t,e){let r=i(t),n=i(e),o=t6(r,n),a=Math.abs(function(t,e){let r=i(t),n=i(e);return r.getFullYear()-n.getFullYear()}(r,n));r.setFullYear(1584),n.setFullYear(1584);let s=t6(r,n)===-o,l=o*(a-s);return 0===l?0:l}(t,e);default:return 0}},startOf:function(t,e,r){switch(e){case"second":let n=i(t);return n.setMilliseconds(0),n;case"minute":let o=i(t);return o.setSeconds(0,0),o;case"hour":let a=i(t);return a.setMinutes(0,0,0),a;case"day":return tF(t);case"week":return _(t);case"isoWeek":return _(t,{weekStartsOn:+r});case"month":let s=i(t);return s.setDate(1),s.setHours(0,0,0,0),s;case"quarter":let l=i(t),u=l.getMonth();return l.setMonth(u-u%3,1),l.setHours(0,0,0,0),l;case"year":return tL(t);default:return t}},endOf:function(t,e){switch(e){case"second":let r=i(t);return r.setMilliseconds(999),r;case"minute":let n=i(t);return n.setSeconds(59,999),n;case"hour":let o=i(t);return o.setMinutes(59,59,999),o;case"day":return t9(t);case"week":return function(t,e){var r,n,o,s,l,u,c;let d=null!=(c=null!=(u=(l=void 0,a.weekStartsOn))?u:null==(s=a.locale)||null==(o=s.options)?void 0:o.weekStartsOn)?c:0,h=i(t),f=h.getDay();return h.setDate(h.getDate()+((f<d?-7:0)+6-(f-d))),h.setHours(23,59,59,999),h}(t);case"month":return t7(t);case"quarter":let s=i(t),l=s.getMonth();return s.setMonth(l-l%3+3,0),s.setHours(23,59,59,999),s;case"year":let u=i(t),c=u.getFullYear();
1return u.setFullYear(c+1,0,0),u.setHours(23,59,59,999),u;default:return t}}})},77191:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(12115),i={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function o(t){var e=function(t){if("number"==typeof t)return{value:t,unit:"px"};var e,r=(t.match(/^[0-9.]*/)||"").toString();e=r.includes(".")?parseFloat(r):parseInt(r,10);var n=(t.match(/[^0-9]*$/)||"").toString();return i[n]?{value:e,unit:n}:(console.warn("React Spinners: ".concat(t," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}(t);return"".concat(e.value).concat(e.unit)}var a=function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)0>e.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r},l=function(t,e,r){var n="react-spinners-".concat(t,"-").concat(r);if("undefined"==typeof window||!window.document)return n;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a="\n    @keyframes ".concat(n," {\n      ").concat(e,"\n    }\n  ");return o&&o.insertRule(a,0),n}("ClipLoader","0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}","clip");let u=function(t){var e=t.loading,r=t.color,i=void 0===r?"#000000":r,u=t.speedMultiplier,c=t.cssOverride,d=t.size,h=void 0===d?35:d,f=s(t,["loading","color","speedMultiplier","cssOverride","size"]),g=a({background:"transparent !important",width:o(h),height:o(h),borderRadius:"100%",border:"2px solid",borderTopColor:i,borderBottomColor:"transparent",borderLeftColor:i,borderRightColor:i,display:"inline-block",animation:"".concat(l," ").concat(.75/(void 0===u?1:u),"s 0s infinite linear"),animationFillMode:"both"},void 0===c?{}:c);return void 0===e||e?n.createElement("span",a({style:g},f)):null}},81855:(t,e,r)=>{r.d(e,{A:()=>tI});var n=r(31607),i=r(42698);let o={modes:{point:(t,e)=>s(t,e,{intersect:!0}),nearest:(t,e,r)=>(function(t,e,r){let n=1/0;return s(t,e,r).reduce((t,o)=>{var a;let s=o.getCenterPoint(),l="x"===(a=r.axis)?{x:e.x,y:s.y}:"y"===a?{x:s.x,y:e.y}:s,u=(0,i.aF)(e,l);return u<n?(t=[o],n=u):u===n&&t.push(o),t},[]).sort((t,e)=>t._index-e._index).slice(0,1)})(t,e,r),x:(t,e,r)=>s(t,e,{intersect:r.intersect,axis:"x"}),y:(t,e,r)=>s(t,e,{intersect:r.intersect,axis:"y"})}};function a(t,e,r){return(o.modes[r.mode]||o.modes.nearest)(t,e,r)}function s(t,e,r){return t.filter(t=>{var n;return r.intersect?t.inRange(e.x,e.y):"x"!==(n=r.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)})}function l(t,e,r){let n=Math.cos(r),i=Math.sin(r),o=e.x,a=e.y;return{x:o+n*(t.x-o)-i*(t.y-a),y:a+i*(t.x-o)+n*(t.y-a)}}let u=(t,e)=>e>t||t.length>e.length&&t.slice(0,e.length)===e,c=(t,e,r)=>Math.min(r,Math.max(e,t)),d=(t,e)=>t.value>=t.start-e&&t.value<=t.end+e;function h(t,{x:e,y:r,x2:n,y2:i},o,{borderWidth:a,hitTolerance:s}){let l=(a+s)/2,u=t.x>=e-l-.001&&t.x<=n+l+.001,c=t.y>=r-l-.001&&t.y<=i+l+.001;return"x"===o?u:"y"===o?c:u&&c}function f(t,{rect:e,center:r},n,{rotation:o,borderWidth:a,hitTolerance:s}){return h(l(t,r,(0,i.t)(-o)),e,n,{borderWidth:a,hitTolerance:s})}function g(t,e){let{centerX:r,centerY:n}=t.getProps(["centerX","centerY"],e);return{x:r,y:n}}let m=t=>"string"==typeof t&&t.endsWith("%"),p=t=>parseFloat(t)/100,b=t=>c(p(t),0,1),y=(t,e)=>({x:t,y:e,x2:t,y2:e,width:0,height:0}),w={box:t=>y(t.centerX,t.centerY),doughnutLabel:t=>y(t.centerX,t.centerY),ellipse:t=>({centerX:t.centerX,centerY:t.centerX,radius:0,width:0,height:0}),label:t=>y(t.centerX,t.centerY),line:t=>y(t.x,t.y),point:t=>({centerX:t.centerX,centerY:t.centerY,radius:0,width:0,height:0}),polygon:t=>y(t.centerX,t.centerY)};function x(t,e){return"start"===e?0:"end"===e?t:m(e)?b(e)*t:t/2}function v(t,e,r=!0){return"number"==typeof e?e:m(e)?(r?b(e):p(e))*t:t}function M(t,e,{borderWidth:r,position:n,xAdjust:o,yAdjust:a},s){let l=(0,i.i)(s),u=e.width+(l?s.width:0)+r,c=e.height+(l?s.height:0)+r,d=k(n),h=P(t.x,u,o,d.x),f=P(t.y,c,a,d.y);return{x:h,y:f,x2:h+u,y2:f+c,width:u,height:c,centerX:h+u/2,centerY:f+c/2}}function k(t,e="center"){return(0,i.i)(t)?{x:(0,i.v)(t.x,e),y:(0,i.v)(t.y,e)}:{x:t=(0,i.v)(t,e),y:t}}let T=(t,e)=>t&&t.autoFit&&e<1;function S(t,e){let r=t.font,n=(0,i.b)(r)?r:[r];return T(t,e)?n.map(function(t){let r=(0,i.a0)(t);return r.size=Math.floor(t.size*e),r.lineHeight=t.lineHeight,(0,i.a0)(r)}):n.map(t=>(0,i.a0)(t))}function D(t){return t&&((0,i.h)(t.xValue)||(0,i.h)(t.yValue))}function P(t,e,r=0,n){return t-x(e,n)+r}function O(t,e,r){let n=r.init;return n?!0===n?Y(e,r):function(t,e,r){let n=(0,i.Q)(r.init,[{chart:t,properties:e,options:r}]);return!0===n?Y(e,r):(0,i.i)(n)?n:void 0}(t,e,r):void 0}function C(t,e,r){let n=!1;
1return e.forEach(e=>{(0,i.a7)(t[e])?(n=!0,r[e]=t[e]):(0,i.h)(r[e])&&delete r[e]}),n}function Y(t,e){return w[e.type||"line"](t)}let N=new Map;function W(t){if(t&&"object"==typeof t){let e=t.toString();return"[object HTMLImageElement]"===e||"[object HTMLCanvasElement]"===e}}function j(t,{x:e,y:r},n){n&&(t.translate(e,r),t.rotate((0,i.t)(n)),t.translate(-e,-r))}function E(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 H(t,e){t.shadowColor=e.backgroundShadowColor,t.shadowBlur=e.shadowBlur,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY}function A(t,e){let r=e.content;if(W(r))return{width:v(r.width,e.width),height:v(r.height,e.height)};let n=S(e),o=e.textStrokeWidth,a=(0,i.b)(r)?r:[r],s=a.join()+n.reduce(function(t,e){return t+e.string},"")+o+(t._measureText?"-spriting":"");return N.has(s)||N.set(s,function(t,e,r,n){t.save();let i=e.length,o=0,a=n;for(let s=0;s<i;s++){let i=r[Math.min(s,r.length-1)];t.font=i.string;let l=e[s];o=Math.max(o,t.measureText(l).width+n),a+=i.lineHeight}return t.restore(),{width:o,height:a}}(t,a,n,o)),N.get(s)}function R(t,e,r){let{x:n,y:o,width:a,height:s}=e;t.save(),H(t,r);let l=E(t,r);t.fillStyle=r.backgroundColor,t.beginPath(),(0,i.aw)(t,{x:n,y:o,w:a,h:s,radius:function(t,e,r){for(let e of Object.keys(t))t[e]=c(t[e],0,r);return t}((0,i.ay)(r.borderRadius),0,Math.min(a,s)/2)}),t.closePath(),t.fill(),l&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}function _(t,e,r,n){let o=r.content;if(W(o)){t.save(),t.globalAlpha=function(t,e){let r=(0,i.x)(t)?t:e;return(0,i.x)(r)?c(r,0,1):1}(r.opacity,o.style.opacity),t.drawImage(o,e.x,e.y,e.width,e.height),t.restore();return}let a=(0,i.b)(o)?o:[o],s=S(r,n),l=r.color,u=(0,i.b)(l)?l:[l],d=function(t,e){let{x:r,width:n}=t,i=e.textAlign;return"center"===i?r+n/2:"end"===i||"right"===i?r+n:r}(e,r),h=e.y+r.textStrokeWidth/2;t.save(),t.textBaseline="middle",t.textAlign=r.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,r)&&function(t,{x:e,y:r},n,i){t.beginPath();let o=0;n.forEach(function(n,a){let s=i[Math.min(a,i.length-1)],l=s.lineHeight;t.font=s.string,t.strokeText(n,e,r+l/2+o),o+=l}),t.stroke()}(t,{x:d,y:h},a,s),function(t,{x:e,y:r},n,{fonts:i,colors:o}){let a=0;n.forEach(function(n,s){let l=o[Math.min(s,o.length-1)],u=i[Math.min(s,i.length-1)],c=u.lineHeight;t.beginPath(),t.font=u.string,t.fillStyle=l,t.fillText(n,e,r+c/2+a),a+=c,t.fill()})}(t,{x:d,y:h},a,{fonts:s,colors:u}),t.restore()}let I=["left","bottom","top","right"],F={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 q(t,e,r){return e="number"==typeof e?e:t.parse(e),(0,i.g)(e)?t.getPixelForValue(e):r}function L(t,e,r){let n=e[r];if(n||"scaleID"===r)return n;let i=r.charAt(0),o=Object.values(t).filter(t=>t.axis&&t.axis===i);return o.length?o[0].id:i}function X(t,e){if(t){let r=t.options.reverse;return{start:q(t,e.min,r?e.end:e.start),end:q(t,e.max,r?e.start:e.end)}}}function B(t,e){let{chartArea:r,scales:n}=t,i=n[L(n,e,"xScaleID")],o=n[L(n,e,"yScaleID")],a=r.width/2,s=r.height/2;return i&&(a=q(i,e.xValue,i.left+i.width/2)),o&&(s=q(o,e.yValue,o.top+o.height/2)),{x:a,y:s}}function z(t,e){let r=t.scales,n=r[L(r,e,"xScaleID")],i=r[L(r,e,"yScaleID")];if(!n&&!i)return{};let{left:o,right:a}=n||t.chartArea,{top:s,bottom:l}=i||t.chartArea,u=V(n,{min:e.xMin,max:e.xMax,start:o,end:a});o=u.start,a=u.end;let c=V(i,{min:e.yMin,max:e.yMax,start:l,end:s});return{x:o,y:s=c.start,x2:a,y2:l=c.end,width:a-o,height:l-s,centerX:o+(a-o)/2,centerY:s+(l-s)/2}}function Q(t,e){if(!D(e)){let r=z(t,e),n=e.radius;(!n||isNaN(n))&&(e.radius=n=Math.min(r.width,r.height)/2);let i=2*n,o=r.centerX+e.xAdjust,a=r.centerY+e.yAdjust;return{x:o-n,y:a-n,x2:o+n,y2:a+n,centerX:o,centerY:a,width:i,height:i,radius:n}}var r=t,n=e;let i=B(r,n),o=2*n.radius;return{x:i.x-n.radius+n.xAdjust,y:i.y-n.radius+n.yAdjust,x2:i.x+n.radius+n.xAdjust,y2:i.y+n.radius+n.yAdjust,centerX:i.x+n.xAdjust,centerY:i.y+n.yAdjust,radius:n.radius,width:o,height:o}}function $(t,e){let r=z(t,e);return r.initProperties=O(t,r,e),r.elements=[{type:"label",optionScope:"label",properties:function(t,e,r){let n=r.label;n.backgroundColor="transparent",n.callout.display=!1;let o=k(n.position),a=(0,i.E)(n.padding),s=A(t.ctx,n),l=function({properties:t,options:e},r,n,i){let{x:o,x2:a,width:s}=t;return G({start:o,end:a,size:s,borderWidth:e.borderWidth},{position:n.x,padding:{start:i.left,end:i.right},adjust:e.label.xAdjust,size:r.width})}({properties:e,options:r},s,o,a),u=function({properties:t,options:e},r,n,i){let{y:o,y2:a,height:s}=t;return G({start:o,end:a,size:s,borderWidth:e.borderWidth},{position:n.y,padding:{start:i.top,end:i.bottom},adjust:e.label.yAdjust,size:r.height})}({properties:e,options:r},s,o,a),c=s.width+a.width,d=s.height+a.height;return{x:l,y:u,x2:l+c,y2:u+d,width:c,height:d,centerX:l+c/2,centerY:u+d/2,rotation:n.rotation}}(t,r,e),initProperties:r.initProperties}],r}function V(t,e){let r=X(t,e)||e;return{start:Math.min(r.start,r.end),end:Math.max(r.start,r.end)}}function G(t,e){let{start:r,end:n,borderWidth:i}=t,{position:o,padding:{start:a,end:s}
1,adjust:l}=e,u=n-i-r-a-s-e.size;return r+i/2+l+x(u,o)}let U=["enter","leave"],Z=U.concat("click");function J({state:t,event:e},r,n,i){let o;for(let a of n)0>i.indexOf(a)&&(o=K(a.options[r]||t.listeners[r],a,e)||o);return o}function K(t,e,r){return!0===(0,i.Q)(t,[e.$context,r])}let tt=["afterDraw","beforeDraw"];function te(t,e,r){if(t.hooked){let n=e.options[r]||t.hooks[r];return(0,i.Q)(n,[e.$context])}}function tr(t,e,r,n){var o,a,s;if((0,i.g)(e[r])&&(o=t.options,a=r,s=n,!((0,i.h)(o[a])||(0,i.h)(o[s])))){let n=t[r]!==e[r];return t[r]=e[r],n}}function tn(t,e,r,n){for(let o of r){let r=t[o];if((0,i.h)(r)){let t=e.parse(r);n.min=Math.min(n.min,t),n.max=Math.max(n.max,t)}}}class ti extends n.Hg{inRange(t,e,r,n){let{x:o,y:a}=l({x:t,y:e},this.getCenterPoint(n),(0,i.t)(-this.options.rotation));return h({x:o,y:a},this.getProps(["x","y","x2","y2"],n),r,this.options)}getCenterPoint(t){return g(this,t)}draw(t){t.save(),j(t,this.getCenterPoint(),this.options.rotation),R(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return $(t,e)}}ti.id="boxAnnotation",ti.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},ti.defaultRoutes={borderColor:"color",backgroundColor:"color"},ti.descriptors={label:{_fallback:!0}};class to extends n.Hg{inRange(t,e,r,n){return f({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],n),center:this.getCenterPoint(n)},r,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return g(this,t)}draw(t){let e=this.options;e.display&&e.content&&(function(t,e){let{_centerX:r,_centerY:n,_radius:i,_startAngle:o,_endAngle:a,_counterclockwise:s,options:l}=e;t.save();let u=E(t,l);t.fillStyle=l.backgroundColor,t.beginPath(),t.arc(r,n,i,o,a,s),t.closePath(),t.fill(),u&&t.stroke(),t.restore()}(t,this),t.save(),j(t,this.getCenterPoint(),this.rotation),_(t,this,e,this._fitRatio),t.restore())}resolveElementProperties(t,e){var r,o;let a=(r=t,o=e,r.getSortedVisibleDatasetMetas().reduce(function(t,e){let i=e.controller;return i instanceof n.ju&&function(t,e,r){if(!e.autoHide)return!0;for(let e=0;e<r.length;e++)if(!r[e].hidden&&t.getDataVisibility(e))return!0}(r,o,e.data)&&(!t||i.innerRadius<t.controller.innerRadius)&&i.options.circumference>=90?e:t},void 0));if(!a)return{};let{controllerMeta:s,point:l,radius:u}=function({chartArea:t},e,r){let{left:n,top:o,right:a,bottom:s}=t,{innerRadius:l,offsetX:u,offsetY:c}=r.controller,d=(n+a)/2+u,h=(o+s)/2+c,f={left:Math.max(d-l,n),right:Math.min(d+l,a),top:Math.max(h-l,o),bottom:Math.min(h+l,s)},g={x:(f.left+f.right)/2,y:(f.top+f.bottom)/2},m=e.spacing+e.borderWidth/2,p=l-m,b=g.y>h,y=function(t,e,r,n){let o=-2*e,a=Math.pow(o,2)-4*(Math.pow(e,2)+Math.pow(r-t,2)-Math.pow(n,2));if(a<=0)return{_startAngle:0,_endAngle:i.T};let s=(-o-Math.sqrt(a))/2,l=(-o+Math.sqrt(a))/2;return{_startAngle:(0,i.D)({x:e,y:r},{x:s,y:t}).angle,_endAngle:(0,i.D)({x:e,y:r},{x:l,y:t}).angle}}(b?o+m:s-m,d,h,p);return{controllerMeta:{_centerX:d,_centerY:h,_radius:p,_counterclockwise:b,...y},point:g,radius:Math.min(l,Math.min(f.right-f.left,f.bottom-f.top)/2)}}(t,e,a),c=A(t.ctx,e),d=function({width:t,height:e},r){return 2*r/Math.sqrt(Math.pow(t,2)+Math.pow(e,2))}(c,u);T(e,d)&&(c={width:c.width*d,height:c.height*d});let{position:h,xAdjust:f,yAdjust:g}=e,m=M(l,c,{borderWidth:0,position:h,xAdjust:f,yAdjust:g});return{initProperties:O(t,m,e),...m,...s,rotation:e.rotation,_fitRatio:d}}}to.id="doughnutLabelAnnotation",to.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},to.defaultRoutes={};class ta extends n.Hg{inRange(t,e,r,n){return f({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],n),center:this.getCenterPoint(n)},r,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return g(this,t)}draw(t){let e=this.options,r=!(0,i.h)(this._visible)||this._visible;e.display&&e.content&&r&&(t.save(),j(t,this.getCenterPoint(),this.rotation),function(t,e){let{pointX:r,pointY:n,options:o}=e,a=o.callout,s=a&&a.display&&function(t,e){let r=e.position;return I.includes(r)?r:function(t,e){let{x:r,y:n,x2:o,y2:a,width:s,height:u,pointX:c,pointY:d,centerX:h,centerY:f,rotation:g}=t,m={x:h,y:f},p=e.start,b=v(s,p),y=v(u,p),w=[r,r+b,r+b,o],x=[n+y,a,n,a],M=[];for(let t=0;t<4;t++){let e=l({x:w[t],y:x[t]},m,(0,i.t)(g));M.push({position:I[t],distance:(0,i.aF)(e,{x:c,y:d})})}return M.sort((t,e)=>t.distance-e.distance)[0].position}(t,e)}(e,a);if(!s||function(t,e,r){let{pointX:n,pointY:i}=t,o=e.margin,a=n,s=i;return"left"===r?a+=o:"right"===r?a-=o:"top"===r?s+=o:"bottom"===r&&(s-=o),t.inRange(a,s)}(e,a,s))return;
1if(t.save(),t.beginPath(),!E(t,a))return t.restore();let{separatorStart:u,separatorEnd:c}=function(t,e){let r,n,{x:i,y:o,x2:a,y2:s}=t,l=function(t,e){let{width:r,height:n,options:i}=t,o=i.callout.margin+i.borderWidth/2;return"right"===e?r+o:"bottom"===e?n+o:-o}(t,e);return n="left"===e||"right"===e?{x:(r={x:i+l,y:o}).x,y:s}:{x:a,y:(r={x:i,y:o+l}).y},{separatorStart:r,separatorEnd:n}}(e,s),{sideStart:d,sideEnd:h}=function(t,e,r){let n,i,{y:o,width:a,height:s,options:l}=t,u=l.callout.start,c=function(t,e){let r=e.side;return"left"===t||"top"===t?-r:r}(e,l.callout);return i="left"===e||"right"===e?{x:(n={x:r.x,y:o+v(s,u)}).x+c,y:n.y}:{x:(n={x:r.x+v(a,u),y:r.y}).x,y:n.y+c},{sideStart:n,sideEnd:i}}(e,s,u);(a.margin>0||0===o.borderWidth)&&(t.moveTo(u.x,u.y),t.lineTo(c.x,c.y)),t.moveTo(d.x,d.y),t.lineTo(h.x,h.y);let f=l({x:r,y:n},e.getCenterPoint(),(0,i.t)(-e.rotation));t.lineTo(f.x,f.y),t.stroke(),t.restore()}(t,this),R(t,this,e),_(t,function({x:t,y:e,width:r,height:n,options:o}){let a=o.borderWidth/2,s=(0,i.E)(o.padding);return{x:t+s.left+a,y:e+s.top+a,width:r-s.left-s.right-o.borderWidth,height:n-s.top-s.bottom-o.borderWidth}}(this),e),t.restore())}resolveElementProperties(t,e){let r;if(D(e))r=B(t,e);else{let{centerX:n,centerY:i}=z(t,e);r={x:n,y:i}}let n=(0,i.E)(e.padding),o=M(r,A(t.ctx,e),e,n);return{initProperties:O(t,o,e),pointX:r.x,pointY:r.y,...o,rotation:e.rotation}}}ta.id="labelAnnotation",ta.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},ta.defaultRoutes={borderColor:"color"};let ts=(t,e,r)=>({x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}),tl=(t,e,r)=>ts(e,r,Math.abs((t-e.y)/(r.y-e.y))).x,tu=(t,e,r)=>ts(e,r,Math.abs((t-e.x)/(r.x-e.x))).y,tc=(t,e,r,n)=>(1-n)*(1-n)*t+2*(1-n)*n*e+n*n*r,td=(t,e,r,n)=>({x:tc(t.x,e.x,r.x,n),y:tc(t.y,e.y,r.y,n)}),th=(t,e,r,n)=>2*(1-n)*(e-t)+2*n*(r-e),tf=(t,e,r,n)=>-Math.atan2(th(t.x,e.x,r.x,n),th(t.y,e.y,r.y,n))+.5*i.P;class tg extends n.Hg{inRange(t,e,r,n){let i=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==r&&"y"!==r){let r={mouseX:t,mouseY:e},{path:o,ctx:a}=this;if(o){E(a,this.options),a.lineWidth+=this.options.hitTolerance;let{chart:i}=this.$context,s=t*i.currentDevicePixelRatio,l=e*i.currentDevicePixelRatio,u=a.isPointInStroke(o,s,l)||tb(this,r,n);
1return a.restore(),u}return function(t,{mouseX:e,mouseY:r},n=.001,i){let o,a,s,l,{x:u,y:c,x2:d,y2:h}=t.getProps(["x","y","x2","y2"],i),f=d-u,g=h-c,m=f*f+g*g,p=0===m?-1:((e-u)*f+(r-c)*g)/m;return p<0?(o=u,a=c):p>1?(o=d,a=h):(o=u+p*f,a=c+p*g),(s=e-o)*s+(l=r-a)*l<=n}(this,r,i*i,n)||tb(this,r,n)}return function(t,{mouseX:e,mouseY:r},n,{hitSize:i,useFinalPosition:o}){return d(((t,e,{x:r,y:n,x2:i,y2:o},a)=>"y"===a?{start:Math.min(n,o),end:Math.max(n,o),value:e}:{start:Math.min(r,i),end:Math.max(r,i),value:t})(e,r,t.getProps(["x","y","x2","y2"],o),n),i)||tb(t,{mouseX:e,mouseY:r},o,n)}(this,{mouseX:t,mouseY:e},r,{hitSize:i,useFinalPosition:n})}getCenterPoint(t){return g(this,t)}draw(t){let{x:e,y:r,x2:n,y2:o,cp:a,options:s}=this;if(t.save(),!E(t,s))return t.restore();H(t,s);let l=Math.sqrt(Math.pow(n-e,2)+Math.pow(o-r,2));if(s.curve&&a)return function(t,e,r,n){let{x:o,y:a,x2:s,y2:l,options:u}=e,{startOpts:c,endOpts:d,startAdjust:h,endAdjust:f}=tx(e),g={x:o,y:a},m={x:s,y:l},p=tf(g,r,m,0),b=tf(g,r,m,1)-i.P,y=td(g,r,m,h/n),w=td(g,r,m,1-f/n),x=new Path2D;t.beginPath(),x.moveTo(y.x,y.y),x.quadraticCurveTo(r.x,r.y,w.x,w.y),t.shadowColor=u.borderShadowColor,t.stroke(x),e.path=x,e.ctx=t,tk(t,y,{angle:p,adjust:h},c),tk(t,w,{angle:b,adjust:f},d)}(t,this,a,l),t.restore();let{startOpts:u,endOpts:c,startAdjust:d,endAdjust:h}=tx(this),f=Math.atan2(o-r,n-e);t.translate(e,r),t.rotate(f),t.beginPath(),t.moveTo(0+d,0),t.lineTo(l-h,0),t.shadowColor=s.borderShadowColor,t.stroke(),tM(t,0,d,u),tM(t,l,-h,c),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){let r=function(t,e){let{scales:r,chartArea:n}=t,i=r[e.scaleID],o={x:n.left,y:n.top,x2:n.right,y2:n.bottom};return i?function(t,e,r){let n=q(t,r.value,NaN),i=q(t,r.endValue,n);t.isHorizontal()?(e.x=n,e.x2=i):(e.y=n,e.y2=i)}(i,o,e):function(t,e,r){for(let n of Object.keys(F)){let i=t[L(t,r,n)];if(i){let{min:t,max:o,start:a,end:s,startProp:l,endProp:u}=F[n],c=X(i,{min:r[t],max:r[o],start:i[a],end:i[s]});e[l]=c.start,e[u]=c.end}}}(r,o,e),o}(t,e),{x:n,y:o,x2:a,y2:s}=r,u=function({x:t,y:e,x2:r,y2:n},{top:i,right:o,bottom:a,left:s}){return!(t<s&&r<s||t>o&&r>o||e<i&&n<i||e>a&&n>a)}(r,t.chartArea),c=u?function(t,e,r){let{x:n,y:i}=tp(t,e,r),{x:o,y:a}=tp(e,t,r);return{x:n,y:i,x2:o,y2:a,width:Math.abs(o-n),height:Math.abs(a-i)}}({x:n,y:o},{x:a,y:s},t.chartArea):{x:n,y:o,x2:a,y2:s,width:Math.abs(a-n),height:Math.abs(s-o)};if(c.centerX=(a+n)/2,c.centerY=(s+o)/2,c.initProperties=O(t,c,e),e.curve){let t={x:c.x,y:c.y},r={x:c.x2,y:c.y2};c.cp=function(t,e,r){let{x:n,y:i,x2:o,y2:a,centerX:s,centerY:u}=t,c=Math.atan2(a-i,o-n),d=k(e.controlPoint,0);return l({x:s+v(r,d.x,!1),y:u+v(r,d.y,!1)},{x:s,y:u},c)}(c,e,(0,i.aF)(t,r))}let d=function(t,e,r){let n=r.borderWidth,o=(0,i.E)(r.padding),a=A(t.ctx,r);return function(t,e,r,n){let{width:o,height:a,padding:s}=r,{xAdjust:l,yAdjust:u}=e,c={x:t.x,y:t.y},d={x:t.x2,y:t.y2},h="auto"===e.rotation?function(t){let{x:e,y:r,x2:n,y2:o}=t,a=Math.atan2(o-r,n-e);return a>i.P/2?a-i.P:a<-(i.P/2)?a+i.P:a}(t):(0,i.t)(e.rotation),f=function(t,e,r){let n=Math.cos(r),i=Math.sin(r);return{w:Math.abs(t*n)+Math.abs(e*i),h:Math.abs(t*i)+Math.abs(e*n)}}(o,a,h),g=function(t,e,r,n){let i=function(t,e){let{x:r,x2:n,y:i,y2:o}=t,a=Math.min(i,o)-e.top,s=Math.min(r,n)-e.left,l=e.bottom-Math.max(i,o),u=e.right-Math.max(r,n);return{x:Math.min(s,u),y:Math.min(a,l),dx:s<=u?1:-1,dy:a<=l?1:-1}}(t,n);return"start"===e.position?ty({w:t.x2-t.x,h:t.y2-t.y},r,e,i):"end"===e.position?1-ty({w:t.x-t.x2,h:t.y-t.y2},r,e,i):x(1,e.position)}(t,e,{labelSize:f,padding:s},n),m=t.cp?td(c,t.cp,d,g):ts(c,d,g),p={size:f.w,min:n.left,max:n.right,padding:s.left},b={size:f.h,min:n.top,max:n.bottom,padding:s.top},y=tw(m.x,p)+l,w=tw(m.y,b)+u;return{x:y-o/2,y:w-a/2,x2:y+o/2,y2:w+a/2,centerX:y,centerY:w,pointX:m.x,pointY:m.y,width:o,height:a,rotation:(0,i.U)(h)}}(e,r,{width:a.width+o.width+n,height:a.height+o.height+n,padding:o},t.chartArea)}(t,c,e.label);return d._visible=u,c.elements=[{type:"label",optionScope:"label",properties:d,initProperties:c.initProperties}],c}}tg.id="lineAnnotation";let tm={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 tp({x:t,y:e}
1,r,{top:n,right:i,bottom:o,left:a}){return t<a&&(e=tu(a,{x:t,y:e},r),t=a),t>i&&(e=tu(i,{x:t,y:e},r),t=i),e<n&&(t=tl(n,{x:t,y:e},r),e=n),e>o&&(t=tl(o,{x:t,y:e},r),e=o),{x:t,y:e}}function tb(t,{mouseX:e,mouseY:r},n,i){let o=t.label;return o.options.display&&o.inRange(e,r,i,n)}function ty(t,e,r,n){let{labelSize:i,padding:o}=e,a=t.w*n.dx,s=t.h*n.dy;return c(Math.max(a>0&&(i.w/2+o.left-n.x)/a,s>0&&(i.h/2+o.top-n.y)/s),0,.25)}function tw(t,e){let{size:r,min:n,max:i,padding:o}=e,a=r/2;return r>i-n?(i+n)/2:(n>=t-o-a&&(t=n+o+a),i<=t+o+a&&(t=i-o-a),t)}function tx(t){let e=t.options,r=e.arrowHeads&&e.arrowHeads.start,n=e.arrowHeads&&e.arrowHeads.end;return{startOpts:r,endOpts:n,startAdjust:tv(t,r),endAdjust:tv(t,n)}}function tv(t,e){if(!e||!e.display)return 0;let{length:r,width:n}=e,i=t.options.borderWidth/2;return Math.abs(tl(0,{x:r,y:n+i},{x:0,y:i}))}function tM(t,e,r,n){if(!n||!n.display)return;let{length:i,width:o,fill:a,backgroundColor:s,borderColor:l}=n,u=Math.abs(e-i)+r;t.beginPath(),H(t,n),E(t,n),t.moveTo(u,-o),t.lineTo(e+r,0),t.lineTo(u,o),!0===a?(t.fillStyle=s||l,t.closePath(),t.fill(),t.shadowColor="transparent"):t.shadowColor=n.borderShadowColor,t.stroke()}function tk(t,{x:e,y:r},{angle:n,adjust:i},o){o&&o.display&&(t.save(),t.translate(e,r),t.rotate(n),tM(t,0,-i,o),t.restore())}tg.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},tm),fill:!1,length:12,start:Object.assign({},tm),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({},ta.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},tg.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},tg.defaultRoutes={borderColor:"color"};class tT extends n.Hg{inRange(t,e,r,n){let o=this.options.rotation,a=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==r&&"y"!==r)return function(t,e,r,n){let{width:o,height:a,centerX:s,centerY:l}=e,u=o/2,c=a/2;if(u<=0||c<=0)return!1;let d=(0,i.t)(r||0),h=Math.cos(d),f=Math.sin(d);return Math.pow(h*(t.x-s)+f*(t.y-l),2)/Math.pow(u+n,2)+Math.pow(f*(t.x-s)-h*(t.y-l),2)/Math.pow(c+n,2)<=1.0001}({x:t,y:e},this.getProps(["width","height","centerX","centerY"],n),o,a);let{x:s,y:u,x2:c,y2:d}=this.getProps(["x","y","x2","y2"],n),h="y"===r?{start:u,end:d}:{start:s,end:c},f=l({x:t,y:e},this.getCenterPoint(n),(0,i.t)(-o));return f[r]>=h.start-a-.001&&f[r]<=h.end+a+.001}getCenterPoint(t){return g(this,t)}draw(t){let{width:e,height:r,centerX:n,centerY:o,options:a}=this;t.save(),j(t,this.getCenterPoint(),a.rotation),H(t,this.options),t.beginPath(),t.fillStyle=a.backgroundColor;let s=E(t,a);t.ellipse(n,o,r/2,e/2,i.P/2,0,2*i.P),t.fill(),s&&(t.shadowColor=a.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return $(t,e)}}tT.id="ellipseAnnotation",tT.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},ti.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},tT.defaultRoutes={borderColor:"color",backgroundColor:"color"},tT.descriptors={label:{_fallback:!0}};class tS extends n.Hg{inRange(t,e,r,n){let{x:i,y:o,x2:a,y2:s,width:l}=this.getProps(["x","y","x2","y2","width"],n),u=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==r&&"y"!==r){var c,h,f;return c={x:t,y:e},h=this.getCenterPoint(n),f=l/2,!!c&&!!h&&!(f<=0)&&Math.pow(c.x-h.x,2)+Math.pow(c.y-h.y,2)<=Math.pow(f+u,2)}return d("y"===r?{start:o,end:s,value:e}:{start:i,end:a,value:t},u)}getCenterPoint(t){return g(this,t)}draw(t){let e=this.options,r=e.borderWidth;
1if(e.radius<.1)return;t.save(),t.fillStyle=e.backgroundColor,H(t,e);let n=E(t,e);!function(t,e,r,n){let{radius:o,options:a}=e,s=a.pointStyle,l=a.rotation,u=(l||0)*i.b4;if(W(s)){t.save(),t.translate(r,n),t.rotate(u),t.drawImage(s,-s.width/2,-s.height/2,s.width,s.height),t.restore();return}isNaN(o)||o<=0||function(t,{x:e,y:r,radius:n,rotation:o,style:a,rad:s}){let l,u,c,d;switch(t.beginPath(),a){default:t.arc(e,r,n,0,i.T),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(s)*n,r-Math.cos(s)*n),s+=i.b6,t.lineTo(e+Math.sin(s)*n,r-Math.cos(s)*n),s+=i.b6,t.lineTo(e+Math.sin(s)*n,r-Math.cos(s)*n),t.closePath();break;case"rectRounded":d=.516*n,c=n-d,l=Math.cos(s+i.b5)*c,u=Math.sin(s+i.b5)*c,t.arc(e-l,r-u,d,s-i.P,s-i.H),t.arc(e+u,r-l,d,s-i.H,s),t.arc(e+l,r+u,d,s,s+i.H),t.arc(e-u,r+l,d,s+i.H,s+i.P),t.closePath();break;case"rect":if(!o){c=Math.SQRT1_2*n,t.rect(e-c,r-c,2*c,2*c);break}s+=i.b5;case"rectRot":l=Math.cos(s)*n,u=Math.sin(s)*n,t.moveTo(e-l,r-u),t.lineTo(e+u,r-l),t.lineTo(e+l,r+u),t.lineTo(e-u,r+l),t.closePath();break;case"crossRot":s+=i.b5;case"cross":l=Math.cos(s)*n,u=Math.sin(s)*n,t.moveTo(e-l,r-u),t.lineTo(e+l,r+u),t.moveTo(e+u,r-l),t.lineTo(e-u,r+l);break;case"star":l=Math.cos(s)*n,u=Math.sin(s)*n,t.moveTo(e-l,r-u),t.lineTo(e+l,r+u),t.moveTo(e+u,r-l),t.lineTo(e-u,r+l),s+=i.b5,l=Math.cos(s)*n,u=Math.sin(s)*n,t.moveTo(e-l,r-u),t.lineTo(e+l,r+u),t.moveTo(e+u,r-l),t.lineTo(e-u,r+l);break;case"line":l=Math.cos(s)*n,u=Math.sin(s)*n,t.moveTo(e-l,r-u),t.lineTo(e+l,r+u);break;case"dash":t.moveTo(e,r),t.lineTo(e+Math.cos(s)*n,r+Math.sin(s)*n)}t.fill()}(t,{x:r,y:n,radius:o,rotation:l,style:s,rad:u})}(t,this,this.centerX,this.centerY),n&&!W(e.pointStyle)&&(t.shadowColor=e.borderShadowColor,t.stroke()),t.restore(),e.borderWidth=r}resolveElementProperties(t,e){let r=Q(t,e);return r.initProperties=O(t,r,e),r}}tS.id="pointAnnotation",tS.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},tS.defaultRoutes={borderColor:"color",backgroundColor:"color"};class tD extends n.Hg{inRange(t,e,r,n){if("x"!==r&&"y"!==r)return this.options.radius>=.1&&this.elements.length>1&&function(t,e,r,n){let i=!1,o=t[t.length-1].getProps(["bX","bY"],n);for(let a of t){let t=a.getProps(["bX","bY"],n);t.bY>r!=o.bY>r&&e<(o.bX-t.bX)*(r-t.bY)/(o.bY-t.bY)+t.bX&&(i=!i),o=t}return i}(this.elements,t,e,n);let o=l({x:t,y:e},this.getCenterPoint(n),(0,i.t)(-this.options.rotation)),a=this.elements.map(t=>"y"===r?t.bY:t.bX),s=Math.min(...a),u=Math.max(...a);return o[r]>=s&&o[r]<=u}getCenterPoint(t){return g(this,t)}draw(t){let{elements:e,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,H(t,r);let n=E(t,r),i=!0;for(let r of e)i?(t.moveTo(r.x,r.y),i=!1):t.lineTo(r.x,r.y);t.closePath(),t.fill(),n&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,e){let r=Q(t,e),{sides:n,rotation:o}=e,a=[],s=2*i.P/n,l=o*i.b4;for(let i=0;i<n;i++,l+=s){let n=function({centerX:t,centerY:e},{radius:r,borderWidth:n,hitTolerance:i},o){let a=(n+i)/2,s=Math.sin(o),l=Math.cos(o),u={x:t+s*r,y:e-l*r};return{type:"point",optionScope:"point",properties:{x:u.x,y:u.y,centerX:u.x,centerY:u.y,bX:t+s*(r+a),bY:e-l*(r+a)}}}(r,e,l);n.initProperties=O(t,r,e),a.push(n)}return r.elements=a,r}}tD.id="polygonAnnotation",tD.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},tD.defaultRoutes={borderColor:"color",backgroundColor:"color"};let tP={box:ti,doughnutLabel:to,ellipse:tT,label:ta,line:tg,point:tS,polygon:tD};Object.keys(tP).forEach(t=>{i.d.describe(`elements.${tP[t].id}`,{_fallback:"plugins.annotation.common"})});let tO={update:Object.assign},tC=Z.concat(tt),tY=(t,e)=>(0,i.i)(e)?tH(t,e):t,tN=t=>"color"===t||"font"===t;function tW(t="line"){return tP[t]?t:(console.warn(`Unknown annotation type: '${t}', defaulting to 'line'`),"line")}function tj(t,e,r,n){let i=tP[tW(r)],o=t[e];return o&&o instanceof i||Object.assign(o=t[e]=new i,n),o}function tE(t){let e=tP[tW(t.type)],r={};
1for(let n of(r.id=t.id,r.type=t.type,r.drawTime=t.drawTime,Object.assign(r,tH(t,e.defaults),tH(t,e.defaultRoutes)),tC))r[n]=t[n];return r}function tH(t,e){let r={};for(let n of Object.keys(e)){let o=e[n],a=t[n];tN(n)&&(0,i.b)(a)?r[n]=a.map(t=>tY(t,o)):r[n]=tY(a,o)}return r}let tA=new Map,tR=t=>"doughnutLabel"!==t.type,t_=Z.concat(tt);var tI={id:"annotation",version:"3.1.0",beforeRegister(){!function(t,e,r,n=!0){let i=r.split("."),o=0;for(let e of"4.0".split(".")){let a=i[o++];if(parseInt(e,10)<parseInt(a,10))break;if(u(a,e))if(!n)return!1;else throw Error(`${t} v${r} is not supported. v4.0 or newer is required.`)}}("chart.js","4.0",n.t1.version)},afterRegister(){n.t1.register(tP)},afterUnregister(){n.t1.unregister(tP)},beforeInit(t){tA.set(t,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(t,e,r){let n=tA.get(t).annotations=[],o=r.annotations;(0,i.i)(o)?Object.keys(o).forEach(t=>{let e=o[t];(0,i.i)(e)&&(e.id=t,n.push(e))}):(0,i.b)(o)&&n.push(...o);var a=n.filter(tR),s=t.scales;for(let t of a){var l=t,u=s;for(let t of["scaleID","xScaleID","yScaleID"]){let e=L(u,l,t);e&&!u[e]&&function(t,e){if("scaleID"===e)return!0;let r=e.charAt(0);for(let e of["Min","Max","Value"])if((0,i.h)(t[r+e]))return!0;return!1}(l,t)&&console.warn(`No scale found with id '${e}' for annotation '${l.id}'`)}}},afterDataLimits(t,e){let r=tA.get(t);!function(t,e,r){let n=function(t,e,r){let n=e.axis,o=e.id,a=n+"ScaleID",s={min:(0,i.v)(e.min,-1/0),max:(0,i.v)(e.max,1/0)};for(let i of r)i.scaleID===o?tn(i,e,["value","endValue"],s):L(t,i,a)===o&&tn(i,e,[n+"Min",n+"Max",n+"Value"],s);return s}(t.scales,e,r),o=tr(e,n,"min","suggestedMin");(o=tr(e,n,"max","suggestedMax")||o)&&(0,i.a7)(e.handleTickRangeOptions)&&e.handleTickRangeOptions()}(t,e.scale,r.annotations.filter(tR).filter(t=>t.display&&t.adjustScaleRange))},afterUpdate(t,e,r){let o=tA.get(t);o.listened=C(r,Z,o.listeners),o.moveListened=!1,U.forEach(t=>{(0,i.a7)(r[t])&&(o.moveListened=!0)}),o.listened&&o.moveListened||o.annotations.forEach(t=>{!o.listened&&(0,i.a7)(t.click)&&(o.listened=!0),o.moveListened||U.forEach(e=>{(0,i.a7)(t[e])&&(o.listened=!0,o.moveListened=!0)})}),function(t,e,r,o){var a,s,l,u,c,d,h,f;let g=(a=t,s=r.animations,"reset"===(l=o)||"none"===l||"resize"===l?tO:new n.Qw(a,s)),m=e.annotations,p=function(t,e){let r=e.length,n=t.length;return n<r?t.splice(n,0,...Array(r-n)):n>r&&t.splice(r,n-r),t}(e.elements,m);for(let e=0;e<m.length;e++){let r=m[e],n=tj(p,e,r.type),o=r.setContext((u=t,c=n,d=p,h=r,c.$context||(c.$context=Object.assign(Object.create(u.getContext()),{element:c,get elements(){return d.filter(t=>t&&t.options)},id:h.id,type:"annotation"})))),a=n.resolveElementProperties(t,o);a.skip=isNaN((f=a).x)||isNaN(f.y),"elements"in a&&(function(t,e,r,n){let i=t.elements||(t.elements=[]);i.length=e.length;for(let t=0;t<e.length;t++){let o=e[t],a=o.properties,s=tj(i,t,o.type,o.initProperties);a.options=tE(r[o.optionScope].override(o)),n.update(s,a)}}(n,a.elements,o,g),delete a.elements),(0,i.h)(n.x)||Object.assign(n,a),Object.assign(n,a.initProperties),a.options=tE(o),g.update(n,a)}}(t,o,r,e.mode),o.visibleElements=o.elements.filter(t=>!t.skip&&t.options.display);let a=o.visibleElements;o.hooked=C(r,tt,o.hooks),o.hooked||a.forEach(t=>{o.hooked||tt.forEach(e=>{(0,i.a7)(t.options[e])&&(o.hooked=!0)})})},beforeDatasetsDraw(t,e,r){tF(t,"beforeDatasetsDraw",r.clip)},afterDatasetsDraw(t,e,r){tF(t,"afterDatasetsDraw",r.clip)},beforeDatasetDraw(t,e,r){tF(t,e.index,r.clip)},beforeDraw(t,e,r){tF(t,"beforeDraw",r.clip)},afterDraw(t,e,r){tF(t,"afterDraw",r.clip)},beforeEvent(t,e,r){(function(t,e,r){if(t.listened)switch(e.type){case"mousemove":case"mouseout":let n;var i=t,o=e,s=r;if(!i.moveListened)return;n="mousemove"===o.type?a(i.visibleElements,o,s.interaction):[];let l=i.hovered;i.hovered=n;let u={state:i,event:o},c=J(u,"leave",l,n);return J(u,"enter",n,l)||c;case"click":let d;var h=t,f=e,g=r;let m=h.listeners;for(let t of a(h.visibleElements,f,g.interaction))d=K(t.options.click||m.click,t,f)||d;return d}})(tA.get(t),e.event,r)&&(e.changed=!0)},afterDestroy(t){tA.delete(t)},getAnnotations(t){let e=tA.get(t);return e?e.elements:[]},_getAnnotationElementsAtEventForMode:(t,e,r)=>a(t,e,r),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=>!t_.includes(t)&&"init"!==t,annotations:{_allKeys:!1,_fallback:(t,e)=>`elements.${tP[tW(e.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:tN,_fallback:!0},_indexable:tN}},additionalOptionScopes:[""]};function tF(t,e,r){let{ctx:n,chartArea:o}=t,a=tA.get(t);for(let t of(r&&(0,i.Y)(n,o),(function(t,e){let r=[];for(let n of t)if(n.options.drawTime===e&&r.push({element:n,main:!0}),n.elements&&n.elements.length)for(let t of n.elements)t.options.display&&t.options.drawTime===e&&r.push({element:t});return r})(a.visibleElements,e).sort((t,e)=>t.element.options.z-e.element.options.z))){var s=n,l=o,u=a,c=t;let e=c.element;c.main?(te(u,e,"beforeDraw"),e.draw(s,l),te(u,e,"afterDraw")):e.draw(s,l)}r&&(0,i.$)(n)}}}]);

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.