mirror of
https://github.com/TwiN/gatus.git
synced 2026-02-04 15:14:43 +00:00
264 lines
388 KiB
JavaScript
264 lines
388 KiB
JavaScript
"use strict";(self["webpackChunkgatus"]=self["webpackChunkgatus"]||[]).push([[998],{262:function(t,e,n){n.d(e,{$y:function(){return wt},BX:function(){return Tt},Bj:function(){return s},Fl:function(){return jt},IU:function(){return Mt},Jd:function(){return M},PG:function(){return vt},SU:function(){return It},Um:function(){return bt},WL:function(){return Lt},X$:function(){return F},X3:function(){return kt},XB:function(){return z},XI:function(){return Ot},Xl:function(){return St},YL:function(){return Dt},YP:function(){return Bt},dq:function(){return Ct},fw:function(){return Yt},iH:function(){return Pt},j:function(){return L},lk:function(){return S},qj:function(){return mt},qq:function(){return c},yT:function(){return _t}});var i=n(577);
|
|
/**
|
|
* @vue/reactivity v3.5.18
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let o,r;class s{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=o,!t&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let t,e;if(this._isPaused=!0,this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].pause();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){let t,e;if(this._isPaused=!1,this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].resume();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].resume()}}run(t){if(this._active){const e=o;try{return o=this,t()}finally{o=e}}else 0}on(){1===++this._on&&(this.prevScope=o,o=this)}off(){this._on>0&&0===--this._on&&(o=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){let e,n;for(this._active=!1,e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(this.effects.length=0,e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.cleanups.length=0,this.scopes){for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0}}}function a(){return o}const l=new WeakSet;class c{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,o&&o.active&&o.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,l.has(this)&&(l.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||f(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,D(this),m(this);const t=r,e=_;r=this,_=!0;try{return this.fn()}finally{0,b(this),r=t,_=e,this.flags&=-3}}stop(){if(1&this.flags){for(let t=this.deps;t;t=t.nextDep)v(t);this.deps=this.depsTail=void 0,D(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?l.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){y(this)&&this.run()}get dirty(){return y(this)}}let u,h,d=0;function f(t,e=!1){if(t.flags|=8,e)return t.next=h,void(h=t);t.next=u,u=t}function p(){d++}function g(){if(--d>0)return;if(h){let t=h;h=void 0;while(t){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let t;while(u){let n=u;u=void 0;while(n){const i=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(e){t||(t=e)}n=i}}if(t)throw t}function m(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function b(t){let e,n=t.depsTail,i=n;while(i){const t=i.prevDep;-1===i.version?(i===n&&(n=t),v(i),w(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=t}t.deps=e,t.depsTail=n}function y(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(x(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function x(t){if(4&t.flags&&!(16&t.flags))return;if(t.flags&=-17,t.globalVersion===T)return;if(t.globalVersion=T,!t.isSSR&&128&t.flags&&(!t.deps&&!t._dirty||!y(t)))return;t.flags|=2;const e=t.dep,n=r,o=_;r=t,_=!0;try{m(t);const s=t.fn(t._value);(0===e.version||(0,i.aU)(s,t._value))&&(t.flags|=128,t._value=s,e.version++)}catch(s){throw e.version++,s}finally{r=n,_=o,b(t),t.flags&=-3}}function v(t,e=!1){const{dep:n,prevSub:i,nextSub:o}=t;if(i&&(i.nextSub=o,t.prevSub=void 0),o&&(o.prevSub=i,t.nextSub=void 0),n.subs===t&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let t=n.computed.deps;t;t=t.nextDep)v(t,!0)}e||--n.sc||!n.map||n.map.delete(n.key)}function w(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let _=!0;const k=[];function M(){k.push(_),_=!1}function S(){const t=k.pop();_=void 0===t||t}function D(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const t=r;r=void 0;try{e()}finally{r=t}}}let T=0;class C{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class P{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!r||!_||r===this.computed)return;let e=this.activeLink;if(void 0===e||e.sub!==r)e=this.activeLink=new C(r,this),r.deps?(e.prevDep=r.depsTail,r.depsTail.nextDep=e,r.depsTail=e):r.deps=r.depsTail=e,O(e);else if(-1===e.version&&(e.version=this.version,e.nextDep)){const t=e.nextDep;t.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=t),e.prevDep=r.depsTail,e.nextDep=void 0,r.depsTail.nextDep=e,r.depsTail=e,r.deps===e&&(r.deps=t)}return e}trigger(t){this.version++,T++,this.notify(t)}notify(t){p();try{0;for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{g()}}}function O(t){if(t.dep.sc++,4&t.sub.flags){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let t=e.deps;t;t=t.nextDep)O(t)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const A=new WeakMap,E=Symbol(""),I=Symbol(""),R=Symbol("");function L(t,e,n){if(_&&r){let e=A.get(t);e||A.set(t,e=new Map);let i=e.get(n);i||(e.set(n,i=new P),i.map=e,i.key=n),i.track()}}function F(t,e,n,o,r,s){const a=A.get(t);if(!a)return void T++;const l=t=>{t&&t.trigger()};if(p(),"clear"===e)a.forEach(l);else{const r=(0,i.kJ)(t),s=r&&(0,i.S0)(n);if(r&&"length"===n){const t=Number(o);a.forEach(((e,n)=>{("length"===n||n===R||!(0,i.yk)(n)&&n>=t)&&l(e)}))}else switch((void 0!==n||a.has(void 0))&&l(a.get(n)),s&&l(a.get(R)),e){case"add":r?s&&l(a.get("length")):(l(a.get(E)),(0,i._N)(t)&&l(a.get(I)));break;case"delete":r||(l(a.get(E)),(0,i._N)(t)&&l(a.get(I)));break;case"set":(0,i._N)(t)&&l(a.get(E));break}}g()}function j(t){const e=Mt(t);return e===t?e:(L(e,"iterate",R),_t(t)?e:e.map(Dt))}function z(t){return L(t=Mt(t),"iterate",R),t}const W={__proto__:null,[Symbol.iterator](){return N(this,Symbol.iterator,Dt)},concat(...t){return j(this).concat(...t.map((t=>(0,i.kJ)(t)?j(t):t)))},entries(){return N(this,"entries",(t=>(t[1]=Dt(t[1]),t)))},every(t,e){return B(this,"every",t,e,void 0,arguments)},filter(t,e){return B(this,"filter",t,e,(t=>t.map(Dt)),arguments)},find(t,e){return B(this,"find",t,e,Dt,arguments)},findIndex(t,e){return B(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return B(this,"findLast",t,e,Dt,arguments)},findLastIndex(t,e){return B(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return B(this,"forEach",t,e,void 0,arguments)},includes(...t){return V(this,"includes",t)},indexOf(...t){return V(this,"indexOf",t)},join(t){return j(this).join(t)},lastIndexOf(...t){return V(this,"lastIndexOf",t)},map(t,e){return B(this,"map",t,e,void 0,arguments)},pop(){return $(this,"pop")},push(...t){return $(this,"push",t)},reduce(t,...e){return Y(this,"reduce",t,e)},reduceRight(t,...e){return Y(this,"reduceRight",t,e)},shift(){return $(this,"shift")},some(t,e){return B(this,"some",t,e,void 0,arguments)},splice(...t){return $(this,"splice",t)},toReversed(){return j(this).toReversed()},toSorted(t){return j(this).toSorted(t)},toSpliced(...t){return j(this).toSpliced(...t)},unshift(...t){return $(this,"unshift",t)},values(){return N(this,"values",Dt)}};function N(t,e,n){const i=z(t),o=i[e]();return i===t||_t(t)||(o._next=o.next,o.next=()=>{const t=o._next();return t.value&&(t.value=n(t.value)),t}),o}const H=Array.prototype;function B(t,e,n,i,o,r){const s=z(t),a=s!==t&&!_t(t),l=s[e];if(l!==H[e]){const e=l.apply(t,r);return a?Dt(e):e}let c=n;s!==t&&(a?c=function(e,i){return n.call(this,Dt(e),i,t)}:n.length>2&&(c=function(e,i){return n.call(this,e,i,t)}));const u=l.call(s,c,i);return a&&o?o(u):u}function Y(t,e,n,i){const o=z(t);let r=n;return o!==t&&(_t(t)?n.length>3&&(r=function(e,i,o){return n.call(this,e,i,o,t)}):r=function(e,i,o){return n.call(this,e,Dt(i),o,t)}),o[e](r,...i)}function V(t,e,n){const i=Mt(t);L(i,"iterate",R);const o=i[e](...n);return-1!==o&&!1!==o||!kt(n[0])?o:(n[0]=Mt(n[0]),i[e](...n))}function $(t,e,n=[]){M(),p();const i=Mt(t)[e].apply(t,n);return g(),S(),i}const X=(0,i.fY)("__proto__,__v_isRef,__isVue"),q=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(i.yk));function U(t){(0,i.yk)(t)||(t=String(t));const e=Mt(this);return L(e,"has",t),e.hasOwnProperty(t)}class G{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){if("__v_skip"===e)return t["__v_skip"];const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===e)return!o;if("__v_isReadonly"===e)return o;if("__v_isShallow"===e)return r;if("__v_raw"===e)return n===(o?r?ft:dt:r?ht:ut).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=(0,i.kJ)(t);if(!o){let t;if(s&&(t=W[e]))return t;if("hasOwnProperty"===e)return U}const a=Reflect.get(t,e,Ct(t)?t:n);return((0,i.yk)(e)?q.has(e):X(e))?a:(o||L(t,"get",e),r?a:Ct(a)?s&&(0,i.S0)(e)?a:a.value:(0,i.Kn)(a)?o?yt(a):mt(a):a)}}class Z extends G{constructor(t=!1){super(!1,t)}set(t,e,n,o){let r=t[e];if(!this._isShallow){const e=wt(r);if(_t(n)||wt(n)||(r=Mt(r),n=Mt(n)),!(0,i.kJ)(t)&&Ct(r)&&!Ct(n))return!e&&(r.value=n,!0)}const s=(0,i.kJ)(t)&&(0,i.S0)(e)?Number(e)<t.length:(0,i.RI)(t,e),a=Reflect.set(t,e,n,Ct(t)?t:o);return t===Mt(o)&&(s?(0,i.aU)(n,r)&&F(t,"set",e,n,r):F(t,"add",e,n)),a}deleteProperty(t,e){const n=(0,i.RI)(t,e),o=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&F(t,"delete",e,void 0,o),r}has(t,e){const n=Reflect.has(t,e);return(0,i.yk)(e)&&q.has(e)||L(t,"has",e),n}ownKeys(t){return L(t,"iterate",(0,i.kJ)(t)?"length":E),Reflect.ownKeys(t)}}class J extends G{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const Q=new Z,K=new J,tt=new Z(!0),et=t=>t,nt=t=>Reflect.getPrototypeOf(t);function it(t,e,n){return function(...o){const r=this["__v_raw"],s=Mt(r),a=(0,i._N)(s),l="entries"===t||t===Symbol.iterator&&a,c="keys"===t&&a,u=r[t](...o),h=n?et:e?Tt:Dt;return!e&&L(s,"iterate",c?I:E),{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:l?[h(t[0]),h(t[1])]:h(t),done:e}},[Symbol.iterator](){return this}}}}function ot(t){return function(...e){return"delete"!==t&&("clear"===t?void 0:this)}}function rt(t,e){const n={get(n){const o=this["__v_raw"],r=Mt(o),s=Mt(n);t||((0,i.aU)(n,s)&&L(r,"get",n),L(r,"get",s));const{has:a}=nt(r),l=e?et:t?Tt:Dt;return a.call(r,n)?l(o.get(n)):a.call(r,s)?l(o.get(s)):void(o!==r&&o.get(n))},get size(){const e=this["__v_raw"];return!t&&L(Mt(e),"iterate",E),Reflect.get(e,"size",e)},has(e){const n=this["__v_raw"],o=Mt(n),r=Mt(e);return t||((0,i.aU)(e,r)&&L(o,"has",e),L(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)},forEach(n,i){const o=this,r=o["__v_raw"],s=Mt(r),a=e?et:t?Tt:Dt;return!t&&L(s,"iterate",E),r.forEach(((t,e)=>n.call(i,a(t),a(e),o)))}};(0,i.l7)(n,t?{add:ot("add"),set:ot("set"),delete:ot("delete"),clear:ot("clear")}:{add(t){e||_t(t)||wt(t)||(t=Mt(t));const n=Mt(this),i=nt(n),o=i.has.call(n,t);return o||(n.add(t),F(n,"add",t,t)),this},set(t,n){e||_t(n)||wt(n)||(n=Mt(n));const o=Mt(this),{has:r,get:s}=nt(o);let a=r.call(o,t);a||(t=Mt(t),a=r.call(o,t));const l=s.call(o,t);return o.set(t,n),a?(0,i.aU)(n,l)&&F(o,"set",t,n,l):F(o,"add",t,n),this},delete(t){const e=Mt(this),{has:n,get:i}=nt(e);let o=n.call(e,t);o||(t=Mt(t),o=n.call(e,t));const r=i?i.call(e,t):void 0,s=e.delete(t);return o&&F(e,"delete",t,void 0,r),s},clear(){const t=Mt(this),e=0!==t.size,n=void 0,i=t.clear();return e&&F(t,"clear",void 0,void 0,n),i}});const o=["keys","values","entries",Symbol.iterator];return o.forEach((i=>{n[i]=it(i,t,e)})),n}function st(t,e){const n=rt(t,e);return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get((0,i.RI)(n,o)&&o in e?n:e,o,r)}const at={get:st(!1,!1)},lt={get:st(!1,!0)},ct={get:st(!0,!1)};const ut=new WeakMap,ht=new WeakMap,dt=new WeakMap,ft=new WeakMap;function pt(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gt(t){return t["__v_skip"]||!Object.isExtensible(t)?0:pt((0,i.W7)(t))}function mt(t){return wt(t)?t:xt(t,!1,Q,at,ut)}function bt(t){return xt(t,!1,tt,lt,ht)}function yt(t){return xt(t,!0,K,ct,dt)}function xt(t,e,n,o,r){if(!(0,i.Kn)(t))return t;if(t["__v_raw"]&&(!e||!t["__v_isReactive"]))return t;const s=gt(t);if(0===s)return t;const a=r.get(t);if(a)return a;const l=new Proxy(t,2===s?o:n);return r.set(t,l),l}function vt(t){return wt(t)?vt(t["__v_raw"]):!(!t||!t["__v_isReactive"])}function wt(t){return!(!t||!t["__v_isReadonly"])}function _t(t){return!(!t||!t["__v_isShallow"])}function kt(t){return!!t&&!!t["__v_raw"]}function Mt(t){const e=t&&t["__v_raw"];return e?Mt(e):t}function St(t){return!(0,i.RI)(t,"__v_skip")&&Object.isExtensible(t)&&(0,i.Nj)(t,"__v_skip",!0),t}const Dt=t=>(0,i.Kn)(t)?mt(t):t,Tt=t=>(0,i.Kn)(t)?yt(t):t;function Ct(t){return!!t&&!0===t["__v_isRef"]}function Pt(t){return At(t,!1)}function Ot(t){return At(t,!0)}function At(t,e){return Ct(t)?t:new Et(t,e)}class Et{constructor(t,e){this.dep=new P,this["__v_isRef"]=!0,this["__v_isShallow"]=!1,this._rawValue=e?t:Mt(t),this._value=e?t:Dt(t),this["__v_isShallow"]=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this["__v_isShallow"]||_t(t)||wt(t);t=n?t:Mt(t),(0,i.aU)(t,e)&&(this._rawValue=t,this._value=n?t:Dt(t),this.dep.trigger())}}function It(t){return Ct(t)?t.value:t}const Rt={get:(t,e,n)=>"__v_raw"===e?t:It(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const o=t[e];return Ct(o)&&!Ct(n)?(o.value=n,!0):Reflect.set(t,e,n,i)}};function Lt(t){return vt(t)?t:new Proxy(t,Rt)}class Ft{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new P(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=T-1,this.next=void 0,this.effect=this,this["__v_isReadonly"]=!e,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||r===this))return f(this,!0),!0}get value(){const t=this.dep.track();return x(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function jt(t,e,n=!1){let o,r;(0,i.mf)(t)?o=t:(o=t.get,r=t.set);const s=new Ft(o,r,n);return s}const zt={},Wt=new WeakMap;let Nt;function Ht(t,e=!1,n=Nt){if(n){let e=Wt.get(n);e||Wt.set(n,e=[]),e.push(t)}else 0}function Bt(t,e,n=i.kT){const{immediate:o,deep:r,once:s,scheduler:l,augmentJob:u,call:h}=n,d=t=>r?t:_t(t)||!1===r||0===r?Yt(t,1):Yt(t);let f,p,g,m,b=!1,y=!1;if(Ct(t)?(p=()=>t.value,b=_t(t)):vt(t)?(p=()=>d(t),b=!0):(0,i.kJ)(t)?(y=!0,b=t.some((t=>vt(t)||_t(t))),p=()=>t.map((t=>Ct(t)?t.value:vt(t)?d(t):(0,i.mf)(t)?h?h(t,2):t():void 0))):p=(0,i.mf)(t)?e?h?()=>h(t,2):t:()=>{if(g){M();try{g()}finally{S()}}const e=Nt;Nt=f;try{return h?h(t,3,[m]):t(m)}finally{Nt=e}}:i.dG,e&&r){const t=p,e=!0===r?1/0:r;p=()=>Yt(t(),e)}const x=a(),v=()=>{f.stop(),x&&x.active&&(0,i.Od)(x.effects,f)};if(s&&e){const t=e;e=(...e)=>{t(...e),v()}}let w=y?new Array(t.length).fill(zt):zt;const _=t=>{if(1&f.flags&&(f.dirty||t))if(e){const t=f.run();if(r||b||(y?t.some(((t,e)=>(0,i.aU)(t,w[e]))):(0,i.aU)(t,w))){g&&g();const n=Nt;Nt=f;try{const i=[t,w===zt?void 0:y&&w[0]===zt?[]:w,m];w=t,h?h(e,3,i):e(...i)}finally{Nt=n}}}else f.run()};return u&&u(_),f=new c(p),f.scheduler=l?()=>l(_,!1):_,m=t=>Ht(t,!1,f),g=f.onStop=()=>{const t=Wt.get(f);if(t){if(h)h(t,4);else for(const e of t)e();Wt.delete(f)}},e?o?_(!0):w=f.run():l?l(_.bind(null,!0),!0):f.run(),v.pause=f.pause.bind(f),v.resume=f.resume.bind(f),v.stop=v,v}function Yt(t,e=1/0,n){if(e<=0||!(0,i.Kn)(t)||t["__v_skip"])return t;if(n=n||new Set,n.has(t))return t;if(n.add(t),e--,Ct(t))Yt(t.value,e,n);else if((0,i.kJ)(t))for(let i=0;i<t.length;i++)Yt(t[i],e,n);else if((0,i.DM)(t)||(0,i._N)(t))t.forEach((t=>{Yt(t,e,n)}));else if((0,i.PO)(t)){for(const i in t)Yt(t[i],e,n);for(const i of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,i)&&Yt(t[i],e,n)}return t}},252:function(t,e,n){n.d(e,{$d:function(){return s},Ah:function(){return at},FN:function(){return vn},Fl:function(){return zn},HY:function(){return Ne},JJ:function(){return $t},Ko:function(){return yt},LL:function(){return gt},Q6:function(){return H},U2:function(){return W},Uk:function(){return cn},Us:function(){return fe},WI:function(){return xt},Wm:function(){return rn},Y3:function(){return m},Y8:function(){return L},YP:function(){return Me},_:function(){return on},aZ:function(){return B},bv:function(){return it},f3:function(){return Xt},h:function(){return Wn},i8:function(){return Nn},iD:function(){return Je},ic:function(){return rt},j4:function(){return Qe},kq:function(){return un},nJ:function(){return j},nK:function(){return N},up:function(){return ft},w5:function(){return C},wg:function(){return Xe},wy:function(){return P}});var i=n(262),o=n(577);function r(t,e,n,i){try{return i?t(...i):t()}catch(o){a(o,e,n)}}function s(t,e,n,i){if((0,o.mf)(t)){const s=r(t,e,n,i);return s&&(0,o.tI)(s)&&s.catch((t=>{a(t,e,n)})),s}if((0,o.kJ)(t)){const o=[];for(let r=0;r<t.length;r++)o.push(s(t[r],e,n,i));return o}}function a(t,e,n,s=!0){const a=e?e.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:u}=e&&e.appContext.config||o.kT;if(e){let o=e.parent;const s=e.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;while(o){const e=o.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,s,a))return;o=o.parent}if(c)return(0,i.Jd)(),r(c,null,10,[t,s,a]),void(0,i.lk)()}l(t,n,a,s,u)}function l(t,e,n,i=!0,o=!1){if(o)throw t;console.error(t)}const c=[];let u=-1;const h=[];let d=null,f=0;const p=Promise.resolve();let g=null;function m(t){const e=g||p;return t?e.then(this?t.bind(this):t):e}function b(t){let e=u+1,n=c.length;while(e<n){const i=e+n>>>1,o=c[i],r=k(o);r<t||r===t&&2&o.flags?e=i+1:n=i}return e}function y(t){if(!(1&t.flags)){const e=k(t),n=c[c.length-1];!n||!(2&t.flags)&&e>=k(n)?c.push(t):c.splice(b(e),0,t),t.flags|=1,x()}}function x(){g||(g=p.then(M))}function v(t){(0,o.kJ)(t)?h.push(...t):d&&-1===t.id?d.splice(f+1,0,t):1&t.flags||(h.push(t),t.flags|=1),x()}function w(t,e,n=u+1){for(0;n<c.length;n++){const e=c[n];if(e&&2&e.flags){if(t&&e.id!==t.uid)continue;0,c.splice(n,1),n--,4&e.flags&&(e.flags&=-2),e(),4&e.flags||(e.flags&=-2)}}}function _(t){if(h.length){const t=[...new Set(h)].sort(((t,e)=>k(t)-k(e)));if(h.length=0,d)return void d.push(...t);for(d=t,f=0;f<d.length;f++){const t=d[f];0,4&t.flags&&(t.flags&=-2),8&t.flags||t(),t.flags&=-2}d=null,f=0}}const k=t=>null==t.id?2&t.flags?-1:1/0:t.id;function M(t){o.dG;try{for(u=0;u<c.length;u++){const t=c[u];!t||8&t.flags||(4&t.flags&&(t.flags&=-2),r(t,t.i,t.i?15:14),4&t.flags||(t.flags&=-2))}}finally{for(;u<c.length;u++){const t=c[u];t&&(t.flags&=-2)}u=-1,c.length=0,_(t),g=null,(c.length||h.length)&&M(t)}}let S=null,D=null;function T(t){const e=S;return S=t,D=t&&t.type.__scopeId||null,e}function C(t,e=S,n){if(!e)return t;if(t._n)return t;const i=(...n)=>{i._d&&Ge(-1);const o=T(e);let r;try{r=t(...n)}finally{T(o),i._d&&Ge(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function P(t,e){if(null===S)return t;const n=Ln(S),r=t.dirs||(t.dirs=[]);for(let s=0;s<e.length;s++){let[t,a,l,c=o.kT]=e[s];t&&((0,o.mf)(t)&&(t={mounted:t,updated:t}),t.deep&&(0,i.fw)(a),r.push({dir:t,instance:n,value:a,oldValue:void 0,arg:l,modifiers:c}))}return t}function O(t,e,n,o){const r=t.dirs,a=e&&e.dirs;for(let l=0;l<r.length;l++){const c=r[l];a&&(c.oldValue=a[l].value);let u=c.dir[o];u&&((0,i.Jd)(),s(u,n,8,[t.el,c,t,e]),(0,i.lk)())}}const A=Symbol("_vte"),E=t=>t.__isTeleport;const I=Symbol("_leaveCb"),R=Symbol("_enterCb");function L(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return it((()=>{t.isMounted=!0})),st((()=>{t.isUnmounting=!0})),t}const F=[Function,Array],j={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:F,onEnter:F,onAfterEnter:F,onEnterCancelled:F,onBeforeLeave:F,onLeave:F,onAfterLeave:F,onLeaveCancelled:F,onBeforeAppear:F,onAppear:F,onAfterAppear:F,onAppearCancelled:F};function z(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function W(t,e,n,i,r){const{appear:a,mode:l,persisted:c=!1,onBeforeEnter:u,onEnter:h,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:p,onLeave:g,onAfterLeave:m,onLeaveCancelled:b,onBeforeAppear:y,onAppear:x,onAfterAppear:v,onAppearCancelled:w}=e,_=String(t.key),k=z(n,t),M=(t,e)=>{t&&s(t,i,9,e)},S=(t,e)=>{const n=e[1];M(t,e),(0,o.kJ)(t)?t.every((t=>t.length<=1))&&n():t.length<=1&&n()},D={mode:l,persisted:c,beforeEnter(e){let i=u;if(!n.isMounted){if(!a)return;i=y||u}e[I]&&e[I](!0);const o=k[_];o&&tn(t,o)&&o.el[I]&&o.el[I](),M(i,[e])},enter(t){let e=h,i=d,o=f;if(!n.isMounted){if(!a)return;e=x||h,i=v||d,o=w||f}let r=!1;const s=t[R]=e=>{r||(r=!0,M(e?o:i,[t]),D.delayedLeave&&D.delayedLeave(),t[R]=void 0)};e?S(e,[t,s]):s()},leave(e,i){const o=String(t.key);if(e[R]&&e[R](!0),n.isUnmounting)return i();M(p,[e]);let r=!1;const s=e[I]=n=>{r||(r=!0,i(),M(n?b:m,[e]),e[I]=void 0,k[o]===t&&delete k[o])};k[o]=t,g?S(g,[e,s]):s()},clone(t){const o=W(t,e,n,i,r);return r&&r(o),o}};return D}function N(t,e){6&t.shapeFlag&&t.component?(t.transition=e,N(t.component.subTree,e)):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function H(t,e=!1,n){let i=[],o=0;for(let r=0;r<t.length;r++){let s=t[r];const a=null==n?s.key:String(n)+String(null!=s.key?s.key:r);s.type===Ne?(128&s.patchFlag&&o++,i=i.concat(H(s.children,e,a))):(e||s.type!==Be)&&i.push(null!=a?ln(s,{key:a}):s)}if(o>1)for(let r=0;r<i.length;r++)i[r].patchFlag=-2;return i}
|
|
/*! #__NO_SIDE_EFFECTS__ */function B(t,e){return(0,o.mf)(t)?(()=>(0,o.l7)({name:t.name},e,{setup:t}))():t}function Y(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function V(t,e,n,s,a=!1){if((0,o.kJ)(t))return void t.forEach(((t,i)=>V(t,e&&((0,o.kJ)(e)?e[i]:e),n,s,a)));if($(s)&&!a)return void(512&s.shapeFlag&&s.type.__asyncResolved&&s.component.subTree.component&&V(t,e,n,s.component.subTree));const l=4&s.shapeFlag?Ln(s.component):s.el,c=a?null:l,{i:u,r:h}=t;const d=e&&e.r,f=u.refs===o.kT?u.refs={}:u.refs,p=u.setupState,g=(0,i.IU)(p),m=p===o.kT?()=>!1:t=>(0,o.RI)(g,t);if(null!=d&&d!==h&&((0,o.HD)(d)?(f[d]=null,m(d)&&(p[d]=null)):(0,i.dq)(d)&&(d.value=null)),(0,o.mf)(h))r(h,u,12,[c,f]);else{const e=(0,o.HD)(h),r=(0,i.dq)(h);if(e||r){const i=()=>{if(t.f){const n=e?m(h)?p[h]:f[h]:h.value;a?(0,o.kJ)(n)&&(0,o.Od)(n,l):(0,o.kJ)(n)?n.includes(l)||n.push(l):e?(f[h]=[l],m(h)&&(p[h]=f[h])):(h.value=[l],t.k&&(f[t.k]=h.value))}else e?(f[h]=c,m(h)&&(p[h]=c)):r&&(h.value=c,t.k&&(f[t.k]=c))};c?(i.id=-1,de(i,n)):i()}else 0}}(0,o.E9)().requestIdleCallback,(0,o.E9)().cancelIdleCallback;const $=t=>!!t.type.__asyncLoader
|
|
/*! #__NO_SIDE_EFFECTS__ */;const X=t=>t.type.__isKeepAlive;RegExp,RegExp;function q(t,e){return(0,o.kJ)(t)?t.some((t=>q(t,e))):(0,o.HD)(t)?t.split(",").includes(e):!!(0,o.Kj)(t)&&(t.lastIndex=0,t.test(e))}function U(t,e){Z(t,"a",e)}function G(t,e){Z(t,"da",e)}function Z(t,e,n=xn){const i=t.__wdc||(t.__wdc=()=>{let e=n;while(e){if(e.isDeactivated)return;e=e.parent}return t()});if(tt(e,i,n),n){let t=n.parent;while(t&&t.parent)X(t.parent.vnode)&&J(i,e,n,t),t=t.parent}}function J(t,e,n,i){const r=tt(e,t,i,!0);at((()=>{(0,o.Od)(i[e],r)}),n)}function Q(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function K(t){return 128&t.shapeFlag?t.ssContent:t}function tt(t,e,n=xn,o=!1){if(n){const r=n[t]||(n[t]=[]),a=e.__weh||(e.__weh=(...o)=>{(0,i.Jd)();const r=kn(n),a=s(e,n,t,o);return r(),(0,i.lk)(),a});return o?r.unshift(a):r.push(a),a}}const et=t=>(e,n=xn)=>{Cn&&"sp"!==t||tt(t,((...t)=>e(...t)),n)},nt=et("bm"),it=et("m"),ot=et("bu"),rt=et("u"),st=et("bum"),at=et("um"),lt=et("sp"),ct=et("rtg"),ut=et("rtc");function ht(t,e=xn){tt("ec",t,e)}const dt="components";function ft(t,e){return mt(dt,t,!0,e)||t}const pt=Symbol.for("v-ndc");function gt(t){return(0,o.HD)(t)?mt(dt,t,!1)||t:t||pt}function mt(t,e,n=!0,i=!1){const r=S||xn;if(r){const n=r.type;if(t===dt){const t=Fn(n,!1);if(t&&(t===e||t===(0,o._A)(e)||t===(0,o.kC)((0,o._A)(e))))return n}const s=bt(r[t]||n[t],e)||bt(r.appContext[t],e);return!s&&i?n:s}}function bt(t,e){return t&&(t[e]||t[(0,o._A)(e)]||t[(0,o.kC)((0,o._A)(e))])}function yt(t,e,n,r){let s;const a=n&&n[r],l=(0,o.kJ)(t);if(l||(0,o.HD)(t)){const n=l&&(0,i.PG)(t);let o=!1,r=!1;n&&(o=!(0,i.yT)(t),r=(0,i.$y)(t),t=(0,i.XB)(t)),s=new Array(t.length);for(let l=0,c=t.length;l<c;l++)s[l]=e(o?r?(0,i.BX)((0,i.YL)(t[l])):(0,i.YL)(t[l]):t[l],l,void 0,a&&a[l])}else if("number"===typeof t){0,s=new Array(t);for(let n=0;n<t;n++)s[n]=e(n+1,n,void 0,a&&a[n])}else if((0,o.Kn)(t))if(t[Symbol.iterator])s=Array.from(t,((t,n)=>e(t,n,void 0,a&&a[n])));else{const n=Object.keys(t);s=new Array(n.length);for(let i=0,o=n.length;i<o;i++){const o=n[i];s[i]=e(t[o],o,i,a&&a[i])}}else s=[];return n&&(n[r]=s),s}function xt(t,e,n={},i,r){if(S.ce||S.parent&&$(S.parent)&&S.parent.ce)return"default"!==e&&(n.name=e),Xe(),Qe(Ne,null,[rn("slot",n,i&&i())],64);let s=t[e];s&&s._c&&(s._d=!1),Xe();const a=s&&vt(s(n)),l=n.key||a&&a.key,c=Qe(Ne,{key:(l&&!(0,o.yk)(l)?l:`_${e}`)+(!a&&i?"_fb":"")},a||(i?i():[]),a&&1===t._?64:-2);return!r&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),s&&s._c&&(s._d=!0),c}function vt(t){return t.some((t=>!Ke(t)||t.type!==Be&&!(t.type===Ne&&!vt(t.children))))?t:null}const wt=t=>t?Sn(t)?Ln(t):wt(t.parent):null,_t=(0,o.l7)(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>wt(t.parent),$root:t=>wt(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>At(t),$forceUpdate:t=>t.f||(t.f=()=>{y(t.update)}),$nextTick:t=>t.n||(t.n=m.bind(t.proxy)),$watch:t=>De.bind(t)}),kt=(t,e)=>t!==o.kT&&!t.__isScriptSetup&&(0,o.RI)(t,e),Mt={get({_:t},e){if("__v_skip"===e)return!0;const{ctx:n,setupState:r,data:s,props:a,accessCache:l,type:c,appContext:u}=t;let h;if("$"!==e[0]){const i=l[e];if(void 0!==i)switch(i){case 1:return r[e];case 2:return s[e];case 4:return n[e];case 3:return a[e]}else{if(kt(r,e))return l[e]=1,r[e];if(s!==o.kT&&(0,o.RI)(s,e))return l[e]=2,s[e];if((h=t.propsOptions[0])&&(0,o.RI)(h,e))return l[e]=3,a[e];if(n!==o.kT&&(0,o.RI)(n,e))return l[e]=4,n[e];Dt&&(l[e]=0)}}const d=_t[e];let f,p;return d?("$attrs"===e&&(0,i.j)(t.attrs,"get",""),d(t)):(f=c.__cssModules)&&(f=f[e])?f:n!==o.kT&&(0,o.RI)(n,e)?(l[e]=4,n[e]):(p=u.config.globalProperties,(0,o.RI)(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:i,setupState:r,ctx:s}=t;return kt(r,e)?(r[e]=n,!0):i!==o.kT&&(0,o.RI)(i,e)?(i[e]=n,!0):!(0,o.RI)(t.props,e)&&(("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0))},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:r,propsOptions:s}},a){let l;return!!n[a]||t!==o.kT&&(0,o.RI)(t,a)||kt(e,a)||(l=s[0])&&(0,o.RI)(l,a)||(0,o.RI)(i,a)||(0,o.RI)(_t,a)||(0,o.RI)(r.config.globalProperties,a)},defineProperty(t,e,n){return null!=n.get?t._.accessCache[e]=0:(0,o.RI)(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function St(t){return(0,o.kJ)(t)?t.reduce(((t,e)=>(t[e]=null,t)),{}):t}let Dt=!0;function Tt(t){const e=At(t),n=t.proxy,r=t.ctx;Dt=!1,e.beforeCreate&&Pt(e.beforeCreate,t,"bc");const{data:s,computed:a,methods:l,watch:c,provide:u,inject:h,created:d,beforeMount:f,mounted:p,beforeUpdate:g,updated:m,activated:b,deactivated:y,beforeDestroy:x,beforeUnmount:v,destroyed:w,unmounted:_,render:k,renderTracked:M,renderTriggered:S,errorCaptured:D,serverPrefetch:T,expose:C,inheritAttrs:P,components:O,directives:A,filters:E}=e,I=null;if(h&&Ct(h,r,I),l)for(const i in l){const t=l[i];(0,o.mf)(t)&&(r[i]=t.bind(n))}if(s){0;const e=s.call(n,n);0,(0,o.Kn)(e)&&(t.data=(0,i.qj)(e))}if(Dt=!0,a)for(const i in a){const t=a[i],e=(0,o.mf)(t)?t.bind(n,n):(0,o.mf)(t.get)?t.get.bind(n,n):o.dG;0;const s=!(0,o.mf)(t)&&(0,o.mf)(t.set)?t.set.bind(n):o.dG,l=zn({get:e,set:s});Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:t=>l.value=t})}if(c)for(const i in c)Ot(c[i],r,n,i);if(u){const t=(0,o.mf)(u)?u.call(n):u;Reflect.ownKeys(t).forEach((e=>{$t(e,t[e])}))}function R(t,e){(0,o.kJ)(e)?e.forEach((e=>t(e.bind(n)))):e&&t(e.bind(n))}if(d&&Pt(d,t,"c"),R(nt,f),R(it,p),R(ot,g),R(rt,m),R(U,b),R(G,y),R(ht,D),R(ut,M),R(ct,S),R(st,v),R(at,_),R(lt,T),(0,o.kJ)(C))if(C.length){const e=t.exposed||(t.exposed={});C.forEach((t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e,enumerable:!0})}))}else t.exposed||(t.exposed={});k&&t.render===o.dG&&(t.render=k),null!=P&&(t.inheritAttrs=P),O&&(t.components=O),A&&(t.directives=A),T&&Y(t)}function Ct(t,e,n=o.dG){(0,o.kJ)(t)&&(t=Ft(t));for(const r in t){const n=t[r];let s;s=(0,o.Kn)(n)?"default"in n?Xt(n.from||r,n.default,!0):Xt(n.from||r):Xt(n),(0,i.dq)(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:t=>s.value=t}):e[r]=s}}function Pt(t,e,n){s((0,o.kJ)(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,n)}function Ot(t,e,n,i){let r=i.includes(".")?Te(n,i):()=>n[i];if((0,o.HD)(t)){const n=e[t];(0,o.mf)(n)&&Me(r,n)}else if((0,o.mf)(t))Me(r,t.bind(n));else if((0,o.Kn)(t))if((0,o.kJ)(t))t.forEach((t=>Ot(t,e,n,i)));else{const i=(0,o.mf)(t.handler)?t.handler.bind(n):e[t.handler];(0,o.mf)(i)&&Me(r,i,t)}else 0}function At(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:r,optionsCache:s,config:{optionMergeStrategies:a}}=t.appContext,l=s.get(e);let c;return l?c=l:r.length||n||i?(c={},r.length&&r.forEach((t=>Et(c,t,a,!0))),Et(c,e,a)):c=e,(0,o.Kn)(e)&&s.set(e,c),c}function Et(t,e,n,i=!1){const{mixins:o,extends:r}=e;r&&Et(t,r,n,!0),o&&o.forEach((e=>Et(t,e,n,!0)));for(const s in e)if(i&&"expose"===s);else{const i=It[s]||n&&n[s];t[s]=i?i(t[s],e[s]):e[s]}return t}const It={data:Rt,props:Wt,emits:Wt,methods:zt,computed:zt,beforeCreate:jt,created:jt,beforeMount:jt,mounted:jt,beforeUpdate:jt,updated:jt,beforeDestroy:jt,beforeUnmount:jt,destroyed:jt,unmounted:jt,activated:jt,deactivated:jt,errorCaptured:jt,serverPrefetch:jt,components:zt,directives:zt,watch:Nt,provide:Rt,inject:Lt};function Rt(t,e){return e?t?function(){return(0,o.l7)((0,o.mf)(t)?t.call(this,this):t,(0,o.mf)(e)?e.call(this,this):e)}:e:t}function Lt(t,e){return zt(Ft(t),Ft(e))}function Ft(t){if((0,o.kJ)(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function jt(t,e){return t?[...new Set([].concat(t,e))]:e}function zt(t,e){return t?(0,o.l7)(Object.create(null),t,e):e}function Wt(t,e){return t?(0,o.kJ)(t)&&(0,o.kJ)(e)?[...new Set([...t,...e])]:(0,o.l7)(Object.create(null),St(t),St(null!=e?e:{})):e}function Nt(t,e){if(!t)return e;if(!e)return t;const n=(0,o.l7)(Object.create(null),t);for(const i in e)n[i]=jt(t[i],e[i]);return n}function Ht(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Bt=0;function Yt(t,e){return function(n,i=null){(0,o.mf)(n)||(n=(0,o.l7)({},n)),null==i||(0,o.Kn)(i)||(i=null);const r=Ht(),a=new WeakSet,l=[];let c=!1;const u=r.app={_uid:Bt++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Nn,get config(){return r.config},set config(t){0},use(t,...e){return a.has(t)||(t&&(0,o.mf)(t.install)?(a.add(t),t.install(u,...e)):(0,o.mf)(t)&&(a.add(t),t(u,...e))),u},mixin(t){return r.mixins.includes(t)||r.mixins.push(t),u},component(t,e){return e?(r.components[t]=e,u):r.components[t]},directive(t,e){return e?(r.directives[t]=e,u):r.directives[t]},mount(o,s,a){if(!c){0;const l=u._ceVNode||rn(n,i);return l.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),s&&e?e(l,o):t(l,o,a),c=!0,u._container=o,o.__vue_app__=u,Ln(l.component)}},onUnmount(t){l.push(t)},unmount(){c&&(s(l,u._instance,16),t(null,u._container),delete u._container.__vue_app__)},provide(t,e){return r.provides[t]=e,u},runWithContext(t){const e=Vt;Vt=u;try{return t()}finally{Vt=e}}};return u}}let Vt=null;function $t(t,e){if(xn){let n=xn.provides;const i=xn.parent&&xn.parent.provides;i===n&&(n=xn.provides=Object.create(i)),n[t]=e}else 0}function Xt(t,e,n=!1){const i=vn();if(i||Vt){let r=Vt?Vt._context.provides:i?null==i.parent||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&t in r)return r[t];if(arguments.length>1)return n&&(0,o.mf)(e)?e.call(i&&i.proxy):e}else 0}const qt={},Ut=()=>Object.create(qt),Gt=t=>Object.getPrototypeOf(t)===qt;function Zt(t,e,n,o=!1){const r={},s=Ut();t.propsDefaults=Object.create(null),Qt(t,e,r,s);for(const i in t.propsOptions[0])i in r||(r[i]=void 0);n?t.props=o?r:(0,i.Um)(r):t.type.props?t.props=r:t.props=s,t.attrs=s}function Jt(t,e,n,r){const{props:s,attrs:a,vnode:{patchFlag:l}}=t,c=(0,i.IU)(s),[u]=t.propsOptions;let h=!1;if(!(r||l>0)||16&l){let i;Qt(t,e,s,a)&&(h=!0);for(const r in c)e&&((0,o.RI)(e,r)||(i=(0,o.rs)(r))!==r&&(0,o.RI)(e,i))||(u?!n||void 0===n[r]&&void 0===n[i]||(s[r]=Kt(u,c,r,void 0,t,!0)):delete s[r]);if(a!==c)for(const t in a)e&&(0,o.RI)(e,t)||(delete a[t],h=!0)}else if(8&l){const n=t.vnode.dynamicProps;for(let i=0;i<n.length;i++){let r=n[i];if(Ae(t.emitsOptions,r))continue;const l=e[r];if(u)if((0,o.RI)(a,r))l!==a[r]&&(a[r]=l,h=!0);else{const e=(0,o._A)(r);s[e]=Kt(u,c,e,l,t,!1)}else l!==a[r]&&(a[r]=l,h=!0)}}h&&(0,i.X$)(t.attrs,"set","")}function Qt(t,e,n,r){const[s,a]=t.propsOptions;let l,c=!1;if(e)for(let i in e){if((0,o.Gg)(i))continue;const u=e[i];let h;s&&(0,o.RI)(s,h=(0,o._A)(i))?a&&a.includes(h)?(l||(l={}))[h]=u:n[h]=u:Ae(t.emitsOptions,i)||i in r&&u===r[i]||(r[i]=u,c=!0)}if(a){const e=(0,i.IU)(n),r=l||o.kT;for(let i=0;i<a.length;i++){const l=a[i];n[l]=Kt(s,e,l,r[l],t,!(0,o.RI)(r,l))}}return c}function Kt(t,e,n,i,r,s){const a=t[n];if(null!=a){const t=(0,o.RI)(a,"default");if(t&&void 0===i){const t=a.default;if(a.type!==Function&&!a.skipFactory&&(0,o.mf)(t)){const{propsDefaults:o}=r;if(n in o)i=o[n];else{const s=kn(r);i=o[n]=t.call(null,e),s()}}else i=t;r.ce&&r.ce._setProp(n,i)}a[0]&&(s&&!t?i=!1:!a[1]||""!==i&&i!==(0,o.rs)(n)||(i=!0))}return i}const te=new WeakMap;function ee(t,e,n=!1){const i=n?te:e.propsCache,r=i.get(t);if(r)return r;const s=t.props,a={},l=[];let c=!1;if(!(0,o.mf)(t)){const i=t=>{c=!0;const[n,i]=ee(t,e,!0);(0,o.l7)(a,n),i&&l.push(...i)};!n&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!s&&!c)return(0,o.Kn)(t)&&i.set(t,o.Z6),o.Z6;if((0,o.kJ)(s))for(let h=0;h<s.length;h++){0;const t=(0,o._A)(s[h]);ne(t)&&(a[t]=o.kT)}else if(s){0;for(const t in s){const e=(0,o._A)(t);if(ne(e)){const n=s[t],i=a[e]=(0,o.kJ)(n)||(0,o.mf)(n)?{type:n}:(0,o.l7)({},n),r=i.type;let c=!1,u=!0;if((0,o.kJ)(r))for(let t=0;t<r.length;++t){const e=r[t],n=(0,o.mf)(e)&&e.name;if("Boolean"===n){c=!0;break}"String"===n&&(u=!1)}else c=(0,o.mf)(r)&&"Boolean"===r.name;i[0]=c,i[1]=u,(c||(0,o.RI)(i,"default"))&&l.push(e)}}}const u=[a,l];return(0,o.Kn)(t)&&i.set(t,u),u}function ne(t){return"$"!==t[0]&&!(0,o.Gg)(t)}const ie=t=>"_"===t||"__"===t||"_ctx"===t||"$stable"===t,oe=t=>(0,o.kJ)(t)?t.map(hn):[hn(t)],re=(t,e,n)=>{if(e._n)return e;const i=C(((...t)=>oe(e(...t))),n);return i._c=!1,i},se=(t,e,n)=>{const i=t._ctx;for(const r in t){if(ie(r))continue;const n=t[r];if((0,o.mf)(n))e[r]=re(r,n,i);else if(null!=n){0;const t=oe(n);e[r]=()=>t}}},ae=(t,e)=>{const n=oe(e);t.slots.default=()=>n},le=(t,e,n)=>{for(const i in e)!n&&ie(i)||(t[i]=e[i])},ce=(t,e,n)=>{const i=t.slots=Ut();if(32&t.vnode.shapeFlag){const t=e.__;t&&(0,o.Nj)(i,"__",t,!0);const r=e._;r?(le(i,e,n),n&&(0,o.Nj)(i,"_",r,!0)):se(e,i)}else e&&ae(t,e)},ue=(t,e,n)=>{const{vnode:i,slots:r}=t;let s=!0,a=o.kT;if(32&i.shapeFlag){const t=e._;t?n&&1===t?s=!1:le(r,e,n):(s=!e.$stable,se(e,r)),a=e}else e&&(ae(t,e),a={default:1});if(s)for(const o in r)ie(o)||null!=a[o]||delete r[o]};function he(){"boolean"!==typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&((0,o.E9)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const de=We;function fe(t){return pe(t)}function pe(t,e){he();const n=(0,o.E9)();n.__VUE__=!0;const{insert:r,remove:s,patchProp:a,createElement:l,createText:c,createComment:u,setText:h,setElementText:d,parentNode:f,nextSibling:p,setScopeId:g=o.dG,insertStaticContent:m}=t,b=(t,e,n,i=null,o=null,r=null,s,a=null,l=!!e.dynamicChildren)=>{if(t===e)return;t&&!tn(t,e)&&(i=K(t),U(t,o,r,!0),t=null),-2===e.patchFlag&&(l=!1,e.dynamicChildren=null);const{type:c,ref:u,shapeFlag:h}=e;switch(c){case He:x(t,e,n,i);break;case Be:v(t,e,n,i);break;case Ye:null==t&&k(e,n,i,s);break;case Ne:L(t,e,n,i,o,r,s,a,l);break;default:1&h?D(t,e,n,i,o,r,s,a,l):6&h?F(t,e,n,i,o,r,s,a,l):(64&h||128&h)&&c.process(t,e,n,i,o,r,s,a,l,nt)}null!=u&&o?V(u,t&&t.ref,r,e||t,!e):null==u&&t&&null!=t.ref&&V(t.ref,null,r,t,!0)},x=(t,e,n,i)=>{if(null==t)r(e.el=c(e.children),n,i);else{const n=e.el=t.el;e.children!==t.children&&h(n,e.children)}},v=(t,e,n,i)=>{null==t?r(e.el=u(e.children||""),n,i):e.el=t.el},k=(t,e,n,i)=>{[t.el,t.anchor]=m(t.children,e,n,i,t.el,t.anchor)},M=({el:t,anchor:e},n,i)=>{let o;while(t&&t!==e)o=p(t),r(t,n,i),t=o;r(e,n,i)},S=({el:t,anchor:e})=>{let n;while(t&&t!==e)n=p(t),s(t),t=n;s(e)},D=(t,e,n,i,o,r,s,a,l)=>{"svg"===e.type?s="svg":"math"===e.type&&(s="mathml"),null==t?T(e,n,i,o,r,s,a,l):E(t,e,o,r,s,a,l)},T=(t,e,n,i,s,c,u,h)=>{let f,p;const{props:g,shapeFlag:m,transition:b,dirs:y}=t;if(f=t.el=l(t.type,c,g&&g.is,g),8&m?d(f,t.children):16&m&&P(t.children,f,null,i,s,ge(t,c),u,h),y&&O(t,null,i,"created"),C(f,t,t.scopeId,u,i),g){for(const t in g)"value"===t||(0,o.Gg)(t)||a(f,t,null,g[t],c,i);"value"in g&&a(f,"value",null,g.value,c),(p=g.onVnodeBeforeMount)&&gn(p,i,t)}y&&O(t,null,i,"beforeMount");const x=be(s,b);x&&b.beforeEnter(f),r(f,e,n),((p=g&&g.onVnodeMounted)||x||y)&&de((()=>{p&&gn(p,i,t),x&&b.enter(f),y&&O(t,null,i,"mounted")}),s)},C=(t,e,n,i,o)=>{if(n&&g(t,n),i)for(let r=0;r<i.length;r++)g(t,i[r]);if(o){let n=o.subTree;if(e===n||ze(n.type)&&(n.ssContent===e||n.ssFallback===e)){const e=o.vnode;C(t,e,e.scopeId,e.slotScopeIds,o.parent)}}},P=(t,e,n,i,o,r,s,a,l=0)=>{for(let c=l;c<t.length;c++){const l=t[c]=a?dn(t[c]):hn(t[c]);b(null,l,e,n,i,o,r,s,a)}},E=(t,e,n,i,r,s,l)=>{const c=e.el=t.el;let{patchFlag:u,dynamicChildren:h,dirs:f}=e;u|=16&t.patchFlag;const p=t.props||o.kT,g=e.props||o.kT;let m;if(n&&me(n,!1),(m=g.onVnodeBeforeUpdate)&&gn(m,n,e,t),f&&O(e,t,n,"beforeUpdate"),n&&me(n,!0),(p.innerHTML&&null==g.innerHTML||p.textContent&&null==g.textContent)&&d(c,""),h?I(t.dynamicChildren,h,c,n,i,ge(e,r),s):l||H(t,e,c,null,n,i,ge(e,r),s,!1),u>0){if(16&u)R(c,p,g,n,r);else if(2&u&&p.class!==g.class&&a(c,"class",null,g.class,r),4&u&&a(c,"style",p.style,g.style,r),8&u){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const i=t[e],o=p[i],s=g[i];s===o&&"value"!==i||a(c,i,o,s,r,n)}}1&u&&t.children!==e.children&&d(c,e.children)}else l||null!=h||R(c,p,g,n,r);((m=g.onVnodeUpdated)||f)&&de((()=>{m&&gn(m,n,e,t),f&&O(e,t,n,"updated")}),i)},I=(t,e,n,i,o,r,s)=>{for(let a=0;a<e.length;a++){const l=t[a],c=e[a],u=l.el&&(l.type===Ne||!tn(l,c)||198&l.shapeFlag)?f(l.el):n;b(l,c,u,null,i,o,r,s,!0)}},R=(t,e,n,i,r)=>{if(e!==n){if(e!==o.kT)for(const s in e)(0,o.Gg)(s)||s in n||a(t,s,e[s],null,r,i);for(const s in n){if((0,o.Gg)(s))continue;const l=n[s],c=e[s];l!==c&&"value"!==s&&a(t,s,c,l,r,i)}"value"in n&&a(t,"value",e.value,n.value,r)}},L=(t,e,n,i,o,s,a,l,u)=>{const h=e.el=t?t.el:c(""),d=e.anchor=t?t.anchor:c("");let{patchFlag:f,dynamicChildren:p,slotScopeIds:g}=e;g&&(l=l?l.concat(g):g),null==t?(r(h,n,i),r(d,n,i),P(e.children||[],n,d,o,s,a,l,u)):f>0&&64&f&&p&&t.dynamicChildren?(I(t.dynamicChildren,p,n,o,s,a,l),(null!=e.key||o&&e===o.subTree)&&ye(t,e,!0)):H(t,e,n,d,o,s,a,l,u)},F=(t,e,n,i,o,r,s,a,l)=>{e.slotScopeIds=a,null==t?512&e.shapeFlag?o.ctx.activate(e,n,i,s,l):j(e,n,i,o,r,s,l):z(t,e,l)},j=(t,e,n,i,o,r,s)=>{const a=t.component=yn(t,i,o);if(X(t)&&(a.ctx.renderer=nt),Pn(a,!1,s),a.asyncDep){if(o&&o.registerDep(a,W,s),!t.el){const i=a.subTree=rn(Be);v(null,i,e,n),t.placeholder=i.el}}else W(a,t,e,n,o,r,s)},z=(t,e,n)=>{const i=e.component=t.component;if(Le(t,e,n)){if(i.asyncDep&&!i.asyncResolved)return void N(i,e,n);i.next=e,i.update()}else e.el=t.el,i.vnode=e},W=(t,e,n,r,s,a,l)=>{const c=()=>{if(t.isMounted){let{next:e,bu:n,u:i,parent:r,vnode:u}=t;{const n=ve(t);if(n)return e&&(e.el=u.el,N(t,e,l)),void n.asyncDep.then((()=>{t.isUnmounted||c()}))}let h,d=e;0,me(t,!1),e?(e.el=u.el,N(t,e,l)):e=u,n&&(0,o.ir)(n),(h=e.props&&e.props.onVnodeBeforeUpdate)&&gn(h,r,e,u),me(t,!0);const p=Ee(t);0;const g=t.subTree;t.subTree=p,b(g,p,f(g.el),K(g),t,s,a),e.el=p.el,null===d&&je(t,p.el),i&&de(i,s),(h=e.props&&e.props.onVnodeUpdated)&&de((()=>gn(h,r,e,u)),s)}else{let i;const{el:l,props:c}=e,{bm:u,m:h,parent:d,root:f,type:p}=t,g=$(e);if(me(t,!1),u&&(0,o.ir)(u),!g&&(i=c&&c.onVnodeBeforeMount)&&gn(i,d,e),me(t,!0),l&&ot){const e=()=>{t.subTree=Ee(t),ot(l,t.subTree,t,s,null)};g&&p.__asyncHydrate?p.__asyncHydrate(l,t,e):e()}else{f.ce&&!1!==f.ce._def.shadowRoot&&f.ce._injectChildStyle(p);const i=t.subTree=Ee(t);0,b(null,i,n,r,t,s,a),e.el=i.el}if(h&&de(h,s),!g&&(i=c&&c.onVnodeMounted)){const t=e;de((()=>gn(i,d,t)),s)}(256&e.shapeFlag||d&&$(d.vnode)&&256&d.vnode.shapeFlag)&&t.a&&de(t.a,s),t.isMounted=!0,e=n=r=null}};t.scope.on();const u=t.effect=new i.qq(c);t.scope.off();const h=t.update=u.run.bind(u),d=t.job=u.runIfDirty.bind(u);d.i=t,d.id=t.uid,u.scheduler=()=>y(d),me(t,!0),h()},N=(t,e,n)=>{e.component=t;const o=t.vnode.props;t.vnode=e,t.next=null,Jt(t,e.props,o,n),ue(t,e.children,n),(0,i.Jd)(),w(t),(0,i.lk)()},H=(t,e,n,i,o,r,s,a,l=!1)=>{const c=t&&t.children,u=t?t.shapeFlag:0,h=e.children,{patchFlag:f,shapeFlag:p}=e;if(f>0){if(128&f)return void Y(c,h,n,i,o,r,s,a,l);if(256&f)return void B(c,h,n,i,o,r,s,a,l)}8&p?(16&u&&Q(c,o,r),h!==c&&d(n,h)):16&u?16&p?Y(c,h,n,i,o,r,s,a,l):Q(c,o,r,!0):(8&u&&d(n,""),16&p&&P(h,n,i,o,r,s,a,l))},B=(t,e,n,i,r,s,a,l,c)=>{t=t||o.Z6,e=e||o.Z6;const u=t.length,h=e.length,d=Math.min(u,h);let f;for(f=0;f<d;f++){const i=e[f]=c?dn(e[f]):hn(e[f]);b(t[f],i,n,null,r,s,a,l,c)}u>h?Q(t,r,s,!0,!1,d):P(e,n,i,r,s,a,l,c,d)},Y=(t,e,n,i,r,s,a,l,c)=>{let u=0;const h=e.length;let d=t.length-1,f=h-1;while(u<=d&&u<=f){const i=t[u],o=e[u]=c?dn(e[u]):hn(e[u]);if(!tn(i,o))break;b(i,o,n,null,r,s,a,l,c),u++}while(u<=d&&u<=f){const i=t[d],o=e[f]=c?dn(e[f]):hn(e[f]);if(!tn(i,o))break;b(i,o,n,null,r,s,a,l,c),d--,f--}if(u>d){if(u<=f){const t=f+1,o=t<h?e[t].el:i;while(u<=f)b(null,e[u]=c?dn(e[u]):hn(e[u]),n,o,r,s,a,l,c),u++}}else if(u>f)while(u<=d)U(t[u],r,s,!0),u++;else{const p=u,g=u,m=new Map;for(u=g;u<=f;u++){const t=e[u]=c?dn(e[u]):hn(e[u]);null!=t.key&&m.set(t.key,u)}let y,x=0;const v=f-g+1;let w=!1,_=0;const k=new Array(v);for(u=0;u<v;u++)k[u]=0;for(u=p;u<=d;u++){const i=t[u];if(x>=v){U(i,r,s,!0);continue}let o;if(null!=i.key)o=m.get(i.key);else for(y=g;y<=f;y++)if(0===k[y-g]&&tn(i,e[y])){o=y;break}void 0===o?U(i,r,s,!0):(k[o-g]=u+1,o>=_?_=o:w=!0,b(i,e[o],n,null,r,s,a,l,c),x++)}const M=w?xe(k):o.Z6;for(y=M.length-1,u=v-1;u>=0;u--){const t=g+u,o=e[t],d=e[t+1],f=t+1<h?d.el||d.placeholder:i;0===k[u]?b(null,o,n,f,r,s,a,l,c):w&&(y<0||u!==M[y]?q(o,n,f,2):y--)}}},q=(t,e,n,i,o=null)=>{const{el:a,type:l,transition:c,children:u,shapeFlag:h}=t;if(6&h)return void q(t.component.subTree,e,n,i);if(128&h)return void t.suspense.move(e,n,i);if(64&h)return void l.move(t,e,n,nt);if(l===Ne){r(a,e,n);for(let t=0;t<u.length;t++)q(u[t],e,n,i);return void r(t.anchor,e,n)}if(l===Ye)return void M(t,e,n);const d=2!==i&&1&h&&c;if(d)if(0===i)c.beforeEnter(a),r(a,e,n),de((()=>c.enter(a)),o);else{const{leave:i,delayLeave:o,afterLeave:l}=c,u=()=>{t.ctx.isUnmounted?s(a):r(a,e,n)},h=()=>{i(a,(()=>{u(),l&&l()}))};o?o(a,u,h):h()}else r(a,e,n)},U=(t,e,n,o=!1,r=!1)=>{const{type:s,props:a,ref:l,children:c,dynamicChildren:u,shapeFlag:h,patchFlag:d,dirs:f,cacheIndex:p}=t;if(-2===d&&(r=!1),null!=l&&((0,i.Jd)(),V(l,null,n,t,!0),(0,i.lk)()),null!=p&&(e.renderCache[p]=void 0),256&h)return void e.ctx.deactivate(t);const g=1&h&&f,m=!$(t);let b;if(m&&(b=a&&a.onVnodeBeforeUnmount)&&gn(b,e,t),6&h)J(t.component,n,o);else{if(128&h)return void t.suspense.unmount(n,o);g&&O(t,null,e,"beforeUnmount"),64&h?t.type.remove(t,e,n,nt,o):u&&!u.hasOnce&&(s!==Ne||d>0&&64&d)?Q(u,e,n,!1,!0):(s===Ne&&384&d||!r&&16&h)&&Q(c,e,n),o&&G(t)}(m&&(b=a&&a.onVnodeUnmounted)||g)&&de((()=>{b&&gn(b,e,t),g&&O(t,null,e,"unmounted")}),n)},G=t=>{const{type:e,el:n,anchor:i,transition:o}=t;if(e===Ne)return void Z(n,i);if(e===Ye)return void S(t);const r=()=>{s(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&t.shapeFlag&&o&&!o.persisted){const{leave:e,delayLeave:i}=o,s=()=>e(n,r);i?i(t.el,r,s):s()}else r()},Z=(t,e)=>{let n;while(t!==e)n=p(t),s(t),t=n;s(e)},J=(t,e,n)=>{const{bum:i,scope:r,job:s,subTree:a,um:l,m:c,a:u,parent:h,slots:{__:d}}=t;we(c),we(u),i&&(0,o.ir)(i),h&&(0,o.kJ)(d)&&d.forEach((t=>{h.renderCache[t]=void 0})),r.stop(),s&&(s.flags|=8,U(a,t,e,n)),l&&de(l,e),de((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},Q=(t,e,n,i=!1,o=!1,r=0)=>{for(let s=r;s<t.length;s++)U(t[s],e,n,i,o)},K=t=>{if(6&t.shapeFlag)return K(t.component.subTree);if(128&t.shapeFlag)return t.suspense.next();const e=p(t.anchor||t.el),n=e&&e[A];return n?p(n):e};let tt=!1;const et=(t,e,n)=>{null==t?e._vnode&&U(e._vnode,null,null,!0):b(e._vnode||null,t,e,null,null,null,n),e._vnode=t,tt||(tt=!0,w(),_(),tt=!1)},nt={p:b,um:U,m:q,r:G,mt:j,mc:P,pc:H,pbc:I,n:K,o:t};let it,ot;return e&&([it,ot]=e(nt)),{render:et,hydrate:it,createApp:Yt(et,it)}}function ge({type:t,props:e},n){return"svg"===n&&"foreignObject"===t||"mathml"===n&&"annotation-xml"===t&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function me({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function be(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function ye(t,e,n=!1){const i=t.children,r=e.children;if((0,o.kJ)(i)&&(0,o.kJ)(r))for(let o=0;o<i.length;o++){const t=i[o];let e=r[o];1&e.shapeFlag&&!e.dynamicChildren&&((e.patchFlag<=0||32===e.patchFlag)&&(e=r[o]=dn(r[o]),e.el=t.el),n||-2===e.patchFlag||ye(t,e)),e.type===He&&(e.el=t.el),e.type!==Be||e.el||(e.el=t.el)}}function xe(t){const e=t.slice(),n=[0];let i,o,r,s,a;const l=t.length;for(i=0;i<l;i++){const l=t[i];if(0!==l){if(o=n[n.length-1],t[o]<l){e[i]=o,n.push(i);continue}r=0,s=n.length-1;while(r<s)a=r+s>>1,t[n[a]]<l?r=a+1:s=a;l<t[n[r]]&&(r>0&&(e[i]=n[r-1]),n[r]=i)}}r=n.length,s=n[r-1];while(r-- >0)n[r]=s,s=e[s];return n}function ve(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:ve(e)}function we(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const _e=Symbol.for("v-scx"),ke=()=>{{const t=Xt(_e);return t}};function Me(t,e,n){return Se(t,e,n)}function Se(t,e,n=o.kT){const{immediate:r,deep:a,flush:l,once:c}=n;const u=(0,o.l7)({},n);const h=e&&r||!e&&"post"!==l;let d;if(Cn)if("sync"===l){const t=ke();d=t.__watcherHandles||(t.__watcherHandles=[])}else if(!h){const t=()=>{};return t.stop=o.dG,t.resume=o.dG,t.pause=o.dG,t}const f=xn;u.call=(t,e,n)=>s(t,f,e,n);let p=!1;"post"===l?u.scheduler=t=>{de(t,f&&f.suspense)}:"sync"!==l&&(p=!0,u.scheduler=(t,e)=>{e?t():y(t)}),u.augmentJob=t=>{e&&(t.flags|=4),p&&(t.flags|=2,f&&(t.id=f.uid,t.i=f))};const g=(0,i.YP)(t,e,u);return Cn&&(d?d.push(g):h&&g()),g}function De(t,e,n){const i=this.proxy,r=(0,o.HD)(t)?t.includes(".")?Te(i,t):()=>i[t]:t.bind(i,i);let s;(0,o.mf)(e)?s=e:(s=e.handler,n=e);const a=kn(this),l=Se(r,s.bind(i),n);return a(),l}function Te(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t<n.length&&e;t++)e=e[n[t]];return e}}const Ce=(t,e)=>"modelValue"===e||"model-value"===e?t.modelModifiers:t[`${e}Modifiers`]||t[`${(0,o._A)(e)}Modifiers`]||t[`${(0,o.rs)(e)}Modifiers`];function Pe(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||o.kT;let r=n;const a=e.startsWith("update:"),l=a&&Ce(i,e.slice(7));let c;l&&(l.trim&&(r=n.map((t=>(0,o.HD)(t)?t.trim():t))),l.number&&(r=n.map(o.h5)));let u=i[c=(0,o.hR)(e)]||i[c=(0,o.hR)((0,o._A)(e))];!u&&a&&(u=i[c=(0,o.hR)((0,o.rs)(e))]),u&&s(u,t,6,r);const h=i[c+"Once"];if(h){if(t.emitted){if(t.emitted[c])return}else t.emitted={};t.emitted[c]=!0,s(h,t,6,r)}}function Oe(t,e,n=!1){const i=e.emitsCache,r=i.get(t);if(void 0!==r)return r;const s=t.emits;let a={},l=!1;if(!(0,o.mf)(t)){const i=t=>{const n=Oe(t,e,!0);n&&(l=!0,(0,o.l7)(a,n))};!n&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return s||l?((0,o.kJ)(s)?s.forEach((t=>a[t]=null)):(0,o.l7)(a,s),(0,o.Kn)(t)&&i.set(t,a),a):((0,o.Kn)(t)&&i.set(t,null),null)}function Ae(t,e){return!(!t||!(0,o.F7)(e))&&(e=e.slice(2).replace(/Once$/,""),(0,o.RI)(t,e[0].toLowerCase()+e.slice(1))||(0,o.RI)(t,(0,o.rs)(e))||(0,o.RI)(t,e))}function Ee(t){const{type:e,vnode:n,proxy:i,withProxy:r,propsOptions:[s],slots:l,attrs:c,emit:u,render:h,renderCache:d,props:f,data:p,setupState:g,ctx:m,inheritAttrs:b}=t,y=T(t);let x,v;try{if(4&n.shapeFlag){const t=r||i,e=t;x=hn(h.call(e,t,d,f,g,p,m)),v=c}else{const t=e;0,x=hn(t.length>1?t(f,{attrs:c,slots:l,emit:u}):t(f,null)),v=e.props?c:Ie(c)}}catch(_){Ve.length=0,a(_,t,1),x=rn(Be)}let w=x;if(v&&!1!==b){const t=Object.keys(v),{shapeFlag:e}=w;t.length&&7&e&&(s&&t.some(o.tR)&&(v=Re(v,s)),w=ln(w,v,!1,!0))}return n.dirs&&(w=ln(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&N(w,n.transition),x=w,T(y),x}const Ie=t=>{let e;for(const n in t)("class"===n||"style"===n||(0,o.F7)(n))&&((e||(e={}))[n]=t[n]);return e},Re=(t,e)=>{const n={};for(const i in t)(0,o.tR)(i)&&i.slice(9)in e||(n[i]=t[i]);return n};function Le(t,e,n){const{props:i,children:o,component:r}=t,{props:s,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(!(n&&l>=0))return!(!o&&!a||a&&a.$stable)||i!==s&&(i?!s||Fe(i,s,c):!!s);if(1024&l)return!0;if(16&l)return i?Fe(i,s,c):!!s;if(8&l){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const n=t[e];if(s[n]!==i[n]&&!Ae(c,n))return!0}}return!1}function Fe(t,e,n){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let o=0;o<i.length;o++){const r=i[o];if(e[r]!==t[r]&&!Ae(n,r))return!0}return!1}function je({vnode:t,parent:e},n){while(e){const i=e.subTree;if(i.suspense&&i.suspense.activeBranch===t&&(i.el=t.el),i!==t)break;(t=e.vnode).el=n,e=e.parent}}const ze=t=>t.__isSuspense;function We(t,e){e&&e.pendingBranch?(0,o.kJ)(t)?e.effects.push(...t):e.effects.push(t):v(t)}const Ne=Symbol.for("v-fgt"),He=Symbol.for("v-txt"),Be=Symbol.for("v-cmt"),Ye=Symbol.for("v-stc"),Ve=[];let $e=null;function Xe(t=!1){Ve.push($e=t?null:[])}function qe(){Ve.pop(),$e=Ve[Ve.length-1]||null}let Ue=1;function Ge(t,e=!1){Ue+=t,t<0&&$e&&e&&($e.hasOnce=!0)}function Ze(t){return t.dynamicChildren=Ue>0?$e||o.Z6:null,qe(),Ue>0&&$e&&$e.push(t),t}function Je(t,e,n,i,o,r){return Ze(on(t,e,n,i,o,r,!0))}function Qe(t,e,n,i,o){return Ze(rn(t,e,n,i,o,!0))}function Ke(t){return!!t&&!0===t.__v_isVNode}function tn(t,e){return t.type===e.type&&t.key===e.key}const en=({key:t})=>null!=t?t:null,nn=({ref:t,ref_key:e,ref_for:n})=>("number"===typeof t&&(t=""+t),null!=t?(0,o.HD)(t)||(0,i.dq)(t)||(0,o.mf)(t)?{i:S,r:t,k:e,f:!!n}:t:null);function on(t,e=null,n=null,i=0,r=null,s=(t===Ne?0:1),a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&en(e),ref:e&&nn(e),scopeId:D,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:S};return l?(fn(c,n),128&s&&t.normalize(c)):n&&(c.shapeFlag|=(0,o.HD)(n)?8:16),Ue>0&&!a&&$e&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&$e.push(c),c}const rn=sn;function sn(t,e=null,n=null,r=0,s=null,a=!1){if(t&&t!==pt||(t=Be),Ke(t)){const i=ln(t,e,!0);return n&&fn(i,n),Ue>0&&!a&&$e&&(6&i.shapeFlag?$e[$e.indexOf(t)]=i:$e.push(i)),i.patchFlag=-2,i}if(jn(t)&&(t=t.__vccOpts),e){e=an(e);let{class:t,style:n}=e;t&&!(0,o.HD)(t)&&(e.class=(0,o.C_)(t)),(0,o.Kn)(n)&&((0,i.X3)(n)&&!(0,o.kJ)(n)&&(n=(0,o.l7)({},n)),e.style=(0,o.j5)(n))}const l=(0,o.HD)(t)?1:ze(t)?128:E(t)?64:(0,o.Kn)(t)?4:(0,o.mf)(t)?2:0;return on(t,e,n,r,s,l,a,!0)}function an(t){return t?(0,i.X3)(t)||Gt(t)?(0,o.l7)({},t):t:null}function ln(t,e,n=!1,i=!1){const{props:r,ref:s,patchFlag:a,children:l,transition:c}=t,u=e?pn(r||{},e):r,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&en(u),ref:e&&e.ref?n&&s?(0,o.kJ)(s)?s.concat(nn(e)):[s,nn(e)]:nn(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ne?-1===a?16:16|a:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:c,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ln(t.ssContent),ssFallback:t.ssFallback&&ln(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return c&&i&&N(h,c.clone(h)),h}function cn(t=" ",e=0){return rn(He,null,t,e)}function un(t="",e=!1){return e?(Xe(),Qe(Be,null,t)):rn(Be,null,t)}function hn(t){return null==t||"boolean"===typeof t?rn(Be):(0,o.kJ)(t)?rn(Ne,null,t.slice()):Ke(t)?dn(t):rn(He,null,String(t))}function dn(t){return null===t.el&&-1!==t.patchFlag||t.memo?t:ln(t)}function fn(t,e){let n=0;const{shapeFlag:i}=t;if(null==e)e=null;else if((0,o.kJ)(e))n=16;else if("object"===typeof e){if(65&i){const n=e.default;return void(n&&(n._c&&(n._d=!1),fn(t,n()),n._c&&(n._d=!0)))}{n=32;const i=e._;i||Gt(e)?3===i&&S&&(1===S.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=S}}else(0,o.mf)(e)?(e={default:e,_ctx:S},n=32):(e=String(e),64&i?(n=16,e=[cn(e)]):n=8);t.children=e,t.shapeFlag|=n}function pn(...t){const e={};for(let n=0;n<t.length;n++){const i=t[n];for(const t in i)if("class"===t)e.class!==i.class&&(e.class=(0,o.C_)([e.class,i.class]));else if("style"===t)e.style=(0,o.j5)([e.style,i.style]);else if((0,o.F7)(t)){const n=e[t],r=i[t];!r||n===r||(0,o.kJ)(n)&&n.includes(r)||(e[t]=n?[].concat(n,r):r)}else""!==t&&(e[t]=i[t])}return e}function gn(t,e,n,i=null){s(t,e,7,[n,i])}const mn=Ht();let bn=0;function yn(t,e,n){const r=t.type,s=(e?e.appContext:t.appContext)||mn,a={uid:bn++,vnode:t,type:r,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new i.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ee(r,s),emitsOptions:Oe(r,s),emit:null,emitted:null,propsDefaults:o.kT,inheritAttrs:r.inheritAttrs,ctx:o.kT,data:o.kT,props:o.kT,attrs:o.kT,slots:o.kT,refs:o.kT,setupState:o.kT,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=e?e.root:a,a.emit=Pe.bind(null,a),t.ce&&t.ce(a),a}let xn=null;const vn=()=>xn||S;let wn,_n;{const t=(0,o.E9)(),e=(e,n)=>{let i;return(i=t[e])||(i=t[e]=[]),i.push(n),t=>{i.length>1?i.forEach((e=>e(t))):i[0](t)}};wn=e("__VUE_INSTANCE_SETTERS__",(t=>xn=t)),_n=e("__VUE_SSR_SETTERS__",(t=>Cn=t))}const kn=t=>{const e=xn;return wn(t),t.scope.on(),()=>{t.scope.off(),wn(e)}},Mn=()=>{xn&&xn.scope.off(),wn(null)};function Sn(t){return 4&t.vnode.shapeFlag}let Dn,Tn,Cn=!1;function Pn(t,e=!1,n=!1){e&&_n(e);const{props:i,children:o}=t.vnode,r=Sn(t);Zt(t,i,r,e),ce(t,o,n||e);const s=r?On(t,e):void 0;return e&&_n(!1),s}function On(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Mt);const{setup:s}=n;if(s){(0,i.Jd)();const n=t.setupContext=s.length>1?Rn(t):null,l=kn(t),c=r(s,t,0,[t.props,n]),u=(0,o.tI)(c);if((0,i.lk)(),l(),!u&&!t.sp||$(t)||Y(t),u){if(c.then(Mn,Mn),e)return c.then((n=>{An(t,n,e)})).catch((e=>{a(e,t,0)}));t.asyncDep=c}else An(t,c,e)}else En(t,e)}function An(t,e,n){(0,o.mf)(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:(0,o.Kn)(e)&&(t.setupState=(0,i.WL)(e)),En(t,n)}function En(t,e,n){const r=t.type;if(!t.render){if(!e&&Dn&&!r.render){const e=r.template||At(t).template;if(e){0;const{isCustomElement:n,compilerOptions:i}=t.appContext.config,{delimiters:s,compilerOptions:a}=r,l=(0,o.l7)((0,o.l7)({isCustomElement:n,delimiters:s},i),a);r.render=Dn(e,l)}}t.render=r.render||o.dG,Tn&&Tn(t)}{const e=kn(t);(0,i.Jd)();try{Tt(t)}finally{(0,i.lk)(),e()}}}const In={get(t,e){return(0,i.j)(t,"get",""),t[e]}};function Rn(t){const e=e=>{t.exposed=e||{}};return{attrs:new Proxy(t.attrs,In),slots:t.slots,emit:t.emit,expose:e}}function Ln(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy((0,i.WL)((0,i.Xl)(t.exposed)),{get(e,n){return n in e?e[n]:n in _t?_t[n](t):void 0},has(t,e){return e in t||e in _t}})):t.proxy}function Fn(t,e=!0){return(0,o.mf)(t)?t.displayName||t.name:t.name||e&&t.__name}function jn(t){return(0,o.mf)(t)&&"__vccOpts"in t}const zn=(t,e)=>{const n=(0,i.Fl)(t,e,Cn);return n};function Wn(t,e,n){const i=arguments.length;return 2===i?(0,o.Kn)(e)&&!(0,o.kJ)(e)?Ke(e)?rn(t,null,[e]):rn(t,e):rn(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&Ke(n)&&(n=[n]),rn(t,e,n))}const Nn="3.5.18"},963:function(t,e,n){n.d(e,{D2:function(){return Q},bM:function(){return $},iM:function(){return Z},ri:function(){return nt}});var i=n(252),o=n(577);n(262);
|
|
/**
|
|
* @vue/runtime-dom v3.5.18
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/
|
|
let r;const s="undefined"!==typeof window&&window.trustedTypes;if(s)try{r=s.createPolicy("vue",{createHTML:t=>t})}catch(rt){}const a=r?t=>r.createHTML(t):t=>t,l="http://www.w3.org/2000/svg",c="http://www.w3.org/1998/Math/MathML",u="undefined"!==typeof document?document:null,h=u&&u.createElement("template"),d={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const o="svg"===e?u.createElementNS(l,t):"mathml"===e?u.createElementNS(c,t):n?u.createElement(t,{is:n}):u.createElement(t);return"select"===t&&i&&null!=i.multiple&&o.setAttribute("multiple",i.multiple),o},createText:t=>u.createTextNode(t),createComment:t=>u.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>u.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,o,r){const s=n?n.previousSibling:e.lastChild;if(o&&(o===r||o.nextSibling)){while(1)if(e.insertBefore(o.cloneNode(!0),n),o===r||!(o=o.nextSibling))break}else{h.innerHTML=a("svg"===i?`<svg>${t}</svg>`:"mathml"===i?`<math>${t}</math>`:t);const o=h.content;if("svg"===i||"mathml"===i){const t=o.firstChild;while(t.firstChild)o.appendChild(t.firstChild);o.removeChild(t)}e.insertBefore(o,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},f=Symbol("_vtc"),p={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};i.nJ;function g(t,e,n){const i=t[f];i&&(e=(e?[e,...i]:[...i]).join(" ")),null==e?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const m=Symbol("_vod"),b=Symbol("_vsh");const y=Symbol("");const x=/(^|;)\s*display\s*:/;function v(t,e,n){const i=t.style,r=(0,o.HD)(n);let s=!1;if(n&&!r){if(e)if((0,o.HD)(e))for(const t of e.split(";")){const e=t.slice(0,t.indexOf(":")).trim();null==n[e]&&_(i,e,"")}else for(const t in e)null==n[t]&&_(i,t,"");for(const t in n)"display"===t&&(s=!0),_(i,t,n[t])}else if(r){if(e!==n){const t=i[y];t&&(n+=";"+t),i.cssText=n,s=x.test(n)}}else e&&t.removeAttribute("style");m in t&&(t[m]=s?i.display:"",t[b]&&(i.display="none"))}const w=/\s*!important$/;function _(t,e,n){if((0,o.kJ)(n))n.forEach((n=>_(t,e,n)));else if(null==n&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=S(t,e);w.test(n)?t.setProperty((0,o.rs)(i),n.replace(w,""),"important"):t[i]=n}}const k=["Webkit","Moz","ms"],M={};function S(t,e){const n=M[e];if(n)return n;let i=(0,o._A)(e);if("filter"!==i&&i in t)return M[e]=i;i=(0,o.kC)(i);for(let o=0;o<k.length;o++){const n=k[o]+i;if(n in t)return M[e]=n}return e}const D="http://www.w3.org/1999/xlink";function T(t,e,n,i,r,s=(0,o.Pq)(e)){i&&e.startsWith("xlink:")?null==n?t.removeAttributeNS(D,e.slice(6,e.length)):t.setAttributeNS(D,e,n):null==n||s&&!(0,o.yA)(n)?t.removeAttribute(e):t.setAttribute(e,s?"":(0,o.yk)(n)?String(n):n)}function C(t,e,n,i,r){if("innerHTML"===e||"textContent"===e)return void(null!=n&&(t[e]="innerHTML"===e?a(n):n));const s=t.tagName;if("value"===e&&"PROGRESS"!==s&&!s.includes("-")){const i="OPTION"===s?t.getAttribute("value")||"":t.value,o=null==n?"checkbox"===t.type?"on":"":String(n);return i===o&&"_value"in t||(t.value=o),null==n&&t.removeAttribute(e),void(t._value=n)}let l=!1;if(""===n||null==n){const i=typeof t[e];"boolean"===i?n=(0,o.yA)(n):null==n&&"string"===i?(n="",l=!0):"number"===i&&(n=0,l=!0)}try{t[e]=n}catch(rt){0}l&&t.removeAttribute(r||e)}function P(t,e,n,i){t.addEventListener(e,n,i)}function O(t,e,n,i){t.removeEventListener(e,n,i)}const A=Symbol("_vei");function E(t,e,n,i,o=null){const r=t[A]||(t[A]={}),s=r[e];if(i&&s)s.value=i;else{const[n,a]=R(e);if(i){const s=r[e]=z(i,o);P(t,n,s,a)}else s&&(O(t,n,s,a),r[e]=void 0)}}const I=/(?:Once|Passive|Capture)$/;function R(t){let e;if(I.test(t)){let n;e={};while(n=t.match(I))t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}const n=":"===t[2]?t.slice(3):(0,o.rs)(t.slice(2));return[n,e]}let L=0;const F=Promise.resolve(),j=()=>L||(F.then((()=>L=0)),L=Date.now());function z(t,e){const n=t=>{if(t._vts){if(t._vts<=n.attached)return}else t._vts=Date.now();(0,i.$d)(W(t,n.value),e,5,[t])};return n.value=t,n.attached=j(),n}function W(t,e){if((0,o.kJ)(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}return e}const N=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,H=(t,e,n,i,r,s)=>{const a="svg"===r;"class"===e?g(t,i,a):"style"===e?v(t,n,i):(0,o.F7)(e)?(0,o.tR)(e)||E(t,e,n,i,s):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):B(t,e,i,a))?(C(t,e,i),t.tagName.includes("-")||"value"!==e&&"checked"!==e&&"selected"!==e||T(t,e,i,a,s,"value"!==e)):!t._isVueCE||!/[A-Z]/.test(e)&&(0,o.HD)(i)?("true-value"===e?t._trueValue=i:"false-value"===e&&(t._falseValue=i),T(t,e,i,a)):C(t,(0,o._A)(e),i,s,e)};function B(t,e,n,i){if(i)return"innerHTML"===e||"textContent"===e||!!(e in t&&N(e)&&(0,o.mf)(n));if("spellcheck"===e||"draggable"===e||"translate"===e||"autocorrect"===e)return!1;if("form"===e)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if("type"===e&&"TEXTAREA"===t.tagName)return!1;if("width"===e||"height"===e){const e=t.tagName;if("IMG"===e||"VIDEO"===e||"CANVAS"===e||"SOURCE"===e)return!1}return(!N(e)||!(0,o.HD)(n))&&e in t}
|
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
"undefined"!==typeof HTMLElement&&HTMLElement;Symbol("_moveCb"),Symbol("_enterCb");const Y=t=>{const e=t.props["onUpdate:modelValue"]||!1;return(0,o.kJ)(e)?t=>(0,o.ir)(e,t):e};const V=Symbol("_assign");const $={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const s=(0,o.DM)(e);P(t,"change",(()=>{const e=Array.prototype.filter.call(t.options,(t=>t.selected)).map((t=>n?(0,o.h5)(q(t)):q(t)));t[V](t.multiple?s?new Set(e):e:e[0]),t._assigning=!0,(0,i.Y3)((()=>{t._assigning=!1}))})),t[V]=Y(r)},mounted(t,{value:e}){X(t,e)},beforeUpdate(t,e,n){t[V]=Y(n)},updated(t,{value:e}){t._assigning||X(t,e)}};function X(t,e){const n=t.multiple,i=(0,o.kJ)(e);if(!n||i||(0,o.DM)(e)){for(let r=0,s=t.options.length;r<s;r++){const s=t.options[r],a=q(s);if(n)if(i){const t=typeof a;s.selected="string"===t||"number"===t?e.some((t=>String(t)===String(a))):(0,o.hq)(e,a)>-1}else s.selected=e.has(a);else if((0,o.WV)(q(s),e))return void(t.selectedIndex!==r&&(t.selectedIndex=r))}n||-1===t.selectedIndex||(t.selectedIndex=-1)}}function q(t){return"_value"in t?t._value:t.value}const U=["ctrl","shift","alt","meta"],G={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&0!==t.button,middle:t=>"button"in t&&1!==t.button,right:t=>"button"in t&&2!==t.button,exact:(t,e)=>U.some((n=>t[`${n}Key`]&&!e.includes(n)))},Z=(t,e)=>{const n=t._withMods||(t._withMods={}),i=e.join(".");return n[i]||(n[i]=(n,...i)=>{for(let t=0;t<e.length;t++){const i=G[e[t]];if(i&&i(n,e))return}return t(n,...i)})},J={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Q=(t,e)=>{const n=t._withKeys||(t._withKeys={}),i=e.join(".");return n[i]||(n[i]=n=>{if(!("key"in n))return;const i=(0,o.rs)(n.key);return e.some((t=>t===i||J[t]===i))?t(n):void 0})},K=(0,o.l7)({patchProp:H},d);let tt;function et(){return tt||(tt=(0,i.Us)(K))}const nt=(...t)=>{const e=et().createApp(...t);const{mount:n}=e;return e.mount=t=>{const i=ot(t);if(!i)return;const r=e._component;(0,o.mf)(r)||r.render||r.template||(r.template=i.innerHTML),1===i.nodeType&&(i.textContent="");const s=n(i,!1,it(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e};function it(t){return t instanceof SVGElement?"svg":"function"===typeof MathMLElement&&t instanceof MathMLElement?"mathml":void 0}function ot(t){if((0,o.HD)(t)){const e=document.querySelector(t);return e}return t}},577:function(t,e,n){
|
|
/**
|
|
* @vue/shared v3.5.18
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/
|
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
function i(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return t=>t in e}n.d(e,{C_:function(){return J},DM:function(){return m},E9:function(){return Y},F7:function(){return l},Gg:function(){return P},HD:function(){return v},He:function(){return H},Kj:function(){return y},Kn:function(){return _},NO:function(){return a},Nj:function(){return W},Od:function(){return h},PO:function(){return T},Pq:function(){return K},RI:function(){return f},S0:function(){return C},W7:function(){return D},WV:function(){return nt},Z6:function(){return r},_A:function(){return E},_N:function(){return g},aU:function(){return j},dG:function(){return s},fY:function(){return i},h5:function(){return N},hR:function(){return F},hq:function(){return it},ir:function(){return z},j5:function(){return X},kC:function(){return L},kJ:function(){return p},kT:function(){return o},l7:function(){return u},mf:function(){return x},rs:function(){return R},tI:function(){return k},tR:function(){return c},yA:function(){return tt},yk:function(){return w},yl:function(){return $},zw:function(){return rt}});const o={},r=[],s=()=>{},a=()=>!1,l=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),c=t=>t.startsWith("onUpdate:"),u=Object.assign,h=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},d=Object.prototype.hasOwnProperty,f=(t,e)=>d.call(t,e),p=Array.isArray,g=t=>"[object Map]"===S(t),m=t=>"[object Set]"===S(t),b=t=>"[object Date]"===S(t),y=t=>"[object RegExp]"===S(t),x=t=>"function"===typeof t,v=t=>"string"===typeof t,w=t=>"symbol"===typeof t,_=t=>null!==t&&"object"===typeof t,k=t=>(_(t)||x(t))&&x(t.then)&&x(t.catch),M=Object.prototype.toString,S=t=>M.call(t),D=t=>S(t).slice(8,-1),T=t=>"[object Object]"===S(t),C=t=>v(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,P=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),O=t=>{const e=Object.create(null);return n=>{const i=e[n];return i||(e[n]=t(n))}},A=/-(\w)/g,E=O((t=>t.replace(A,((t,e)=>e?e.toUpperCase():"")))),I=/\B([A-Z])/g,R=O((t=>t.replace(I,"-$1").toLowerCase())),L=O((t=>t.charAt(0).toUpperCase()+t.slice(1))),F=O((t=>{const e=t?`on${L(t)}`:"";return e})),j=(t,e)=>!Object.is(t,e),z=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},W=(t,e,n,i=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:i,value:n})},N=t=>{const e=parseFloat(t);return isNaN(e)?t:e},H=t=>{const e=v(t)?Number(t):NaN;return isNaN(e)?t:e};let B;const Y=()=>B||(B="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});const V="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",$=i(V);function X(t){if(p(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],o=v(i)?Z(i):X(i);if(o)for(const t in o)e[t]=o[t]}return e}if(v(t)||_(t))return t}const q=/;(?![^(]*\))/g,U=/:([^]+)/,G=/\/\*[^]*?\*\//g;function Z(t){const e={};return t.replace(G,"").split(q).forEach((t=>{if(t){const n=t.split(U);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function J(t){let e="";if(v(t))e=t;else if(p(t))for(let n=0;n<t.length;n++){const i=J(t[n]);i&&(e+=i+" ")}else if(_(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const Q="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",K=i(Q);function tt(t){return!!t||""===t}function et(t,e){if(t.length!==e.length)return!1;let n=!0;for(let i=0;n&&i<t.length;i++)n=nt(t[i],e[i]);return n}function nt(t,e){if(t===e)return!0;let n=b(t),i=b(e);if(n||i)return!(!n||!i)&&t.getTime()===e.getTime();if(n=w(t),i=w(e),n||i)return t===e;if(n=p(t),i=p(e),n||i)return!(!n||!i)&&et(t,e);if(n=_(t),i=_(e),n||i){if(!n||!i)return!1;const o=Object.keys(t).length,r=Object.keys(e).length;if(o!==r)return!1;for(const n in t){const i=t.hasOwnProperty(n),o=e.hasOwnProperty(n);if(i&&!o||!i&&o||!nt(t[n],e[n]))return!1}}return String(t)===String(e)}function it(t,e){return t.findIndex((t=>nt(t,e)))}const ot=t=>!(!t||!0!==t["__v_isRef"]),rt=t=>v(t)?t:null==t?"":p(t)||_(t)&&(t.toString===M||!x(t.toString))?ot(t)?rt(t.value):JSON.stringify(t,st,2):String(t),st=(t,e)=>ot(e)?st(t,e.value):g(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,n],i)=>(t[at(e,i)+" =>"]=n,t)),{})}:m(e)?{[`Set(${e.size})`]:[...e.values()].map((t=>at(t)))}:w(e)?at(e):!_(e)||p(e)||T(e)?e:String(e),at=(t,e="")=>{var n;return w(t)?`Symbol(${null!=(n=t.description)?n:e})`:t}},264:function(t,e,n){n.d(e,{Z:function(){return h}});var i=n(252);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/
|
|
const o=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),r=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,((t,e,n)=>n?n.toUpperCase():e.toLowerCase())),s=t=>{const e=r(t);return e.charAt(0).toUpperCase()+e.slice(1)},a=(...t)=>t.filter(((t,e,n)=>Boolean(t)&&""!==t.trim()&&n.indexOf(t)===e)).join(" ").trim(),l=t=>""===t;
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/
|
|
var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/
|
|
const u=({name:t,iconNode:e,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:u,"stroke-width":h,size:d=c.width,color:f=c.stroke,...p},{slots:g})=>(0,i.h)("svg",{...c,...p,width:d,height:d,stroke:f,"stroke-width":l(n)||l(r)||!0===n||!0===r?24*Number(u||h||c["stroke-width"])/Number(d):u||h||c["stroke-width"],class:a("lucide",p.class,...t?[`lucide-${o(s(t))}-icon`,`lucide-${o(t)}`]:["lucide-icon"])},[...e.map((t=>(0,i.h)(...t))),...g.default?[g.default()]:[]]),h=(t,e)=>(n,{slots:o,attrs:r})=>(0,i.h)(u,{...r,...n,iconNode:e,name:t},o)},793:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},318:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},368:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},485:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},372:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},981:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},893:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},146:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},141:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("circle-arrow-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]])},779:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("circle-arrow-up",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]])},89:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},478:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},691:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},337:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},293:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},322:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},5:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},135:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]])},507:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]])},679:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]])},167:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]])},254:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},399:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},275:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},740:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},469:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("skip-forward",[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]])},789:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},138:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]])},446:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},970:function(t,e,n){n.d(e,{Z:function(){return o}});var i=n(264);
|
|
/**
|
|
* @license lucide-vue-next v0.539.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const o=(0,i.Z)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},744:function(t,e){e.Z=(t,e)=>{const n=t.__vccOpts||t;for(const[i,o]of e)n[i]=o;return n}},148:function(t,e,n){n.d(e,{De:function(){return $n},Dx:function(){return Un},FB:function(){return Ri},FK:function(){return c},Gu:function(){return Fn},IQ:function(){return j},ST:function(){return R},W_:function(){return It},f$:function(){return ki},jI:function(){return I},jn:function(){return nn},kL:function(){return Be},od:function(){return rn},u:function(){return pi},uw:function(){return xi}});var i=n(411);
|
|
/*!
|
|
* Chart.js v4.5.1
|
|
* https://www.chartjs.org
|
|
* (c) 2025 Chart.js Contributors
|
|
* Released under the MIT License
|
|
*/class o{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const o=e.listeners[i],r=e.duration;o.forEach((i=>i({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)})))}_refresh(){this._request||(this._running=!0,this._request=i.r.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let r,s=o.length-1,a=!1;for(;s>=0;--s)r=o[s],r._active?(r._total>n.duration&&(n.duration=r._total),r.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var r=new o;const s="transparent",a={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const o=(0,i.c)(t||s),r=o.valid&&(0,i.c)(e||s);return r&&r.valid?r.mix(o,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class l{constructor(t,e,n,o){const r=e[n];o=(0,i.a)([t.to,o,r,t.from]);const s=(0,i.a)([t.from,r,o]);this._active=!0,this._fn=t.fn||a[t.type||typeof s],this._easing=i.e[t.easing]||i.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=s,this._to=o,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const o=this._target[this._prop],r=n-this._start,s=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=(0,i.a)([t.to,e,o,t.from]),this._from=(0,i.a)([t.from,o,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,o=this._from,r=this._loop,s=this._to;let a;if(this._active=o!==s&&(r||e<n),!this._active)return this._target[i]=s,void this._notify(!0);e<0?this._target[i]=o:(a=e/n%2,a=r&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(o,s,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let i=0;i<n.length;i++)n[i][e]()}}class c{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,i.i)(t))return;const e=Object.keys(i.d.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((o=>{const r=t[o];if(!(0,i.i)(r))return;const s={};for(const t of e)s[t]=r[t];((0,i.b)(r.properties)&&r.properties||[o]).forEach((t=>{t!==o&&n.has(t)||n.set(t,s)}))}))}_animateOptions(t,e){const n=e.options,i=h(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&u(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),o}_createAnimations(t,e){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),s=Date.now();let a;for(a=r.length-1;a>=0;--a){const c=r[a];if("$"===c.charAt(0))continue;if("options"===c){i.push(...this._animateOptions(t,e));continue}const u=e[c];let h=o[c];const d=n.get(c);if(h){if(d&&h.active()){h.update(d,u,s);continue}h.cancel()}d&&d.duration?(o[c]=h=new l(d,t,c,u),i.push(h)):t[c]=u}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(r.add(this._chart,n),!0):void 0}}function u(t,e){const n=[],i=Object.keys(e);for(let o=0;o<i.length;o++){const e=t[i[o]];e&&e.active()&&n.push(e.wait())}return Promise.all(n)}function h(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}function d(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,r=void 0===n.max?e:0;return{start:i?r:o,end:i?o:r}}function f(t,e,n){if(!1===n)return!1;const i=d(t,n),o=d(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}function p(t){let e,n,o,r;return(0,i.i)(t)?(e=t.top,n=t.right,o=t.bottom,r=t.left):e=n=o=r=t,{top:e,right:n,bottom:o,left:r,disabled:!1===t}}function g(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,r;for(o=0,r=i.length;o<r;++o)n.push(i[o].index);return n}function m(t,e,n,o={}){const r=t.keys,s="single"===o.mode;let a,l,c,u;if(null===e)return;let h=!1;for(a=0,l=r.length;a<l;++a){if(c=+r[a],c===n){if(h=!0,o.all)continue;break}u=t.values[c],(0,i.g)(u)&&(s||0===e||(0,i.s)(e)===(0,i.s)(u))&&(e+=u)}return h||o.all?e:0}function b(t,e){const{iScale:n,vScale:i}=e,o="x"===n.axis?"x":"y",r="x"===i.axis?"x":"y",s=Object.keys(t),a=new Array(s.length);let l,c,u;for(l=0,c=s.length;l<c;++l)u=s[l],a[l]={[o]:u,[r]:t[u]};return a}function y(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function x(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function v(t){const{min:e,max:n,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}function w(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function _(t,e,n,i){for(const o of e.getMatchingVisibleMetas(i).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function k(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:r,vScale:s,index:a}=i,l=r.axis,c=s.axis,u=x(r,s,i),h=e.length;let d;for(let f=0;f<h;++f){const t=e[f],{[l]:n,[c]:r}=t,h=t._stacks||(t._stacks={});d=h[c]=w(o,u,n),d[a]=r,d._top=_(d,s,!0,i.type),d._bottom=_(d,s,!1,i.type);const p=d._visualValues||(d._visualValues={});p[a]=r}}function M(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function S(t,e){return(0,i.j)(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function D(t,e,n){return(0,i.j)(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function T(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n],void 0!==e[i]._visualValues&&void 0!==e[i]._visualValues[n]&&delete e[i]._visualValues[n]}}}const C=t=>"reset"===t||"none"===t,P=(t,e)=>e?t:Object.assign({},t),O=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:g(n,!0),values:null};class A{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=y(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&T(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),o=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,r=e.xAxisID=(0,i.v)(n.xAxisID,M(t,"x")),s=e.yAxisID=(0,i.v)(n.yAxisID,M(t,"y")),a=e.rAxisID=(0,i.v)(n.rAxisID,M(t,"r")),l=e.indexAxis,c=e.iAxisID=o(l,r,s,a),u=e.vAxisID=o(l,s,r,a);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(s),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&(0,i.u)(this._data,this),t._stacked&&T(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if((0,i.i)(e)){const t=this._cachedMeta;this._data=b(e,t)}else if(n!==e){if(n){(0,i.u)(n,this);const t=this._cachedMeta;T(t),t._parsed=[]}e&&Object.isExtensible(e)&&(0,i.l)(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=e._stacked;e._stacked=y(e.vScale,e),e.stack!==n.stack&&(i=!0,T(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&(k(this,e._parsed),e._stacked=y(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:s}=n,a=r.axis;let l,c,u,h=0===t&&e===o.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=o,n._sorted=!0,u=o;else{u=(0,i.b)(o[t])?this.parseArrayData(n,o,t,e):(0,i.i)(o[t])?this.parseObjectData(n,o,t,e):this.parsePrimitiveData(n,o,t,e);const r=()=>null===c[a]||d&&c[a]<d[a];for(l=0;l<e;++l)n._parsed[l+t]=c=u[l],h&&(r()&&(h=!1),d=c);n._sorted=h}s&&k(this,u)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:r}=t,s=o.axis,a=r.axis,l=o.getLabels(),c=o===r,u=new Array(i);let h,d,f;for(h=0,d=i;h<d;++h)f=h+n,u[h]={[s]:c||o.parse(l[f],f),[a]:r.parse(e[f],f)};return u}parseArrayData(t,e,n,i){const{xScale:o,yScale:r}=t,s=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=e[c],s[a]={x:o.parse(u[0],c),y:r.parse(u[1],c)};return s}parseObjectData(t,e,n,o){const{xScale:r,yScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(o);let u,h,d,f;for(u=0,h=o;u<h;++u)d=u+n,f=e[d],c[u]={x:r.parse((0,i.f)(f,a),d),y:s.parse((0,i.f)(f,l),d)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,o=this._cachedMeta,r=e[t.axis],s={keys:g(i,!0),values:e._stacks[t.axis]._visualValues};return m(s,r,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let r=null===o?NaN:o;const s=i&&n._stacks[e.axis];i&&s&&(i.values=s,r=m(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const n=this._cachedMeta,o=n._parsed,r=n._sorted&&t===n.iScale,s=o.length,a=this._getOtherScale(t),l=O(e,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:h}=v(a);let d,f;function p(){f=o[d];const e=f[a.axis];return!(0,i.g)(f[t.axis])||u>e||h<e}for(d=0;d<s;++d)if(!p()&&(this.updateRangeFromParsed(c,t,f,l),r))break;if(r)for(d=s-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(c,t,f,l);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let o,r,s;for(o=0,r=e.length;o<r;++o)s=e[o][t.axis],(0,i.g)(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=p((0,i.v)(this.options.clip,f(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],o=e.chartArea,r=[],s=this._drawStart||0,a=this._drawCount||i.length-s,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,s,a),c=s;c<s+a;++c){const e=i[c];e.hidden||(e.active&&l?r.push(e):e.draw(t,o))}for(c=0;c<r.length;++c)r[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=D(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=S(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const o="active"===e,r=this._cachedDataOpts,s=t+"-"+e,a=r[s],l=this.enableOptionSharing&&(0,i.h)(n);if(a)return P(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),h=o?[`${t}Hover`,"hover",t,""]:[t,""],d=c.getOptionScopes(this.getDataset(),u),f=Object.keys(i.d.elements[t]),p=()=>this.getContext(n,o,e),g=c.resolveNamedOptions(d,f,p,h);return g.$shared&&(g.$shared=l,r[s]=Object.freeze(P(g,l))),g}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,s=o[r];if(s)return s;let a;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),r=i.getOptionScopes(this.getDataset(),o);a=i.createResolver(r,this.getContext(t,n,e))}const l=new c(i,a&&a.animations);return a&&a._cacheable&&(o[r]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||C(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),r=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:r}}updateElement(t,e,n,i){C(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!C(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const o=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[s,a,l]of this._syncList)this[s](a,l);this._syncList=[];const i=n.length,o=e.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e,n=!0){const i=this._cachedMeta,o=i.data,r=t+e;let s;const a=t=>{for(t.length+=e,s=t.length-1;s>=r;s--)t[s]=t[s-e]};for(a(o),s=t;s<r;++s)o[s]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&T(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function E(t,e,n){let o=1,r=1,s=0,a=0;if(e<i.T){const l=t,c=l+e,u=Math.cos(l),h=Math.sin(l),d=Math.cos(c),f=Math.sin(c),p=(t,e,o)=>(0,i.p)(t,l,c,!0)?1:Math.max(e,e*n,o,o*n),g=(t,e,o)=>(0,i.p)(t,l,c,!0)?-1:Math.min(e,e*n,o,o*n),m=p(0,u,d),b=p(i.H,h,f),y=g(i.P,u,d),x=g(i.P+i.H,h,f);o=(m-y)/2,r=(b-x)/2,s=-(m+y)/2,a=-(b+x)/2}return{ratioX:o,ratioY:r,offsetX:s,offsetY:a}}class I extends A{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data,{labels:{pointStyle:n,textAlign:i,color:o,useBorderRadius:r,borderRadius:s}}=t.legend.options;return e.labels.length&&e.datasets.length?e.labels.map(((e,a)=>{const l=t.getDatasetMeta(0),c=l.controller.getStyle(a);return{text:e,fillStyle:c.backgroundColor,fontColor:o,hidden:!t.getDataVisibility(a),lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:c.borderWidth,strokeStyle:c.borderColor,textAlign:i,pointStyle:n,borderRadius:r&&(s||c.borderRadius),index:a}})):[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,o=this._cachedMeta;if(!1===this._parsing)o._parsed=n;else{let r,s,a=t=>+n[t];if((0,i.i)(n[t])){const{key:t="value"}=this._parsing;a=e=>+(0,i.f)(n[e],t)}for(r=t,s=t+e;r<s;++r)o._parsed[r]=a(r)}}_getRotation(){return(0,i.t)(this.options.rotation-90)}_getCircumference(){return(0,i.t)(this.options.circumference)}_getRotationExtents(){let t=i.T,e=-i.T;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const i=this.chart.getDatasetMeta(n).controller,o=i._getRotation(),r=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+r)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,o=this._cachedMeta,r=o.data,s=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-s)/2,0),l=Math.min((0,i.m)(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:h}=this._getRotationExtents(),{ratioX:d,ratioY:f,offsetX:p,offsetY:g}=E(h,u,l),m=(n.width-s)/d,b=(n.height-s)/f,y=Math.max(Math.min(m,b)/2,0),x=(0,i.n)(this.options.radius,y),v=Math.max(x*l,0),w=(x-v)/this._getVisibleDatasetWeightTotal();this.offsetX=p*x,this.offsetY=g*x,o.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(r,0,r.length,t)}_circumference(t,e){const n=this.options,o=this._cachedMeta,r=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===o._parsed[t]||o.data[t].hidden?0:this.calculateCircumference(o._parsed[t]*r/i.T)}updateElements(t,e,n,i){const o="reset"===i,r=this.chart,s=r.chartArea,a=r.options,l=a.animation,c=(s.left+s.right)/2,u=(s.top+s.bottom)/2,h=o&&l.animateScale,d=h?0:this.innerRadius,f=h?0:this.outerRadius,{sharedOptions:p,includeOptions:g}=this._getSharedOptions(e,i);let m,b=this._getRotation();for(m=0;m<e;++m)b+=this._circumference(m,o);for(m=e;m<e+n;++m){const e=this._circumference(m,o),n=t[m],r={x:c+this.offsetX,y:u+this.offsetY,startAngle:b,endAngle:b+e,circumference:e,outerRadius:f,innerRadius:d};g&&(r.options=p||this.resolveDataElementOptions(m,n.active?"active":i)),b+=e,this.updateElement(n,m,r,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?i.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,o=n.data.labels||[],r=(0,i.o)(e._parsed[t],n.options.locale);return{label:o[t]||"",value:r}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,r,s,a;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){r=n.getDatasetMeta(i),t=r.data,s=r.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)a=s.resolveDataElementOptions(i),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max((0,i.v)(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class R extends A{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=e,s=this.chart._animationsDisabled;let{start:a,count:l}=(0,i.q)(e,o,s);this._drawStart=a,this._drawCount=l,(0,i.w)(e)&&(a=0,l=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:c},t),this.updateElements(o,a,l,t)}updateElements(t,e,n,o){const r="reset"===o,{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:h}=this._getSharedOptions(e,o),d=s.axis,f=a.axis,{spanGaps:p,segment:g}=this.options,m=(0,i.x)(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||r||"none"===o,y=e+n,x=t.length;let v=e>0&&this.getParsed(e-1);for(let w=0;w<x;++w){const n=t[w],p=b?n:{};if(w<e||w>=y){p.skip=!0;continue}const x=this.getParsed(w),_=(0,i.k)(x[f]),k=p[d]=s.getPixelForValue(x[d],w),M=p[f]=r||_?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,x,l):x[f],w);p.skip=isNaN(k)||isNaN(M)||_,p.stop=w>0&&Math.abs(x[d]-v[d])>m,g&&(p.parsed=x,p.raw=c.data[w]),h&&(p.options=u||this.resolveDataElementOptions(w,n.active?"active":o)),b||this.updateElement(n,w,p,o),v=x}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function L(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class F{static override(t){Object.assign(F.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return L()}parse(){return L()}format(){return L()}add(){return L()}diff(){return L()}startOf(){return L()}endOf(){return L()}}var j={_date:F};function z(t,e,n,o){const{controller:r,data:s,_sorted:a}=t,l=r._cachedMeta.iScale,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(l&&e===l.axis&&"r"!==e&&a&&s.length){const a=l._reversePixels?i.A:i.B;if(!o){const o=a(s,e,n);if(c){const{vScale:e}=r._cachedMeta,{_parsed:n}=t,s=n.slice(0,o.lo+1).reverse().findIndex((t=>!(0,i.k)(t[e.axis])));o.lo-=Math.max(0,s);const a=n.slice(o.hi).findIndex((t=>!(0,i.k)(t[e.axis])));o.hi+=Math.max(0,a)}return o}if(r._sharedOptions){const t=s[0],i="function"===typeof t.getRange&&t.getRange(e);if(i){const t=a(s,e,n-i),o=a(s,e,n+i);return{lo:t.lo,hi:o.hi}}}}return{lo:0,hi:s.length-1}}function W(t,e,n,i,o){const r=t.getSortedVisibleDatasetMetas(),s=n[e];for(let a=0,l=r.length;a<l;++a){const{index:t,data:n}=r[a],{lo:l,hi:c}=z(r[a],e,s,o);for(let e=l;e<=c;++e){const o=n[e];o.skip||i(o,t,e)}}}function N(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const o=e?Math.abs(t.x-i.x):0,r=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function H(t,e,n,o,r){const s=[];if(!r&&!t.isPointInArea(e))return s;const a=function(n,a,l){(r||(0,i.C)(n,t.chartArea,0))&&n.inRange(e.x,e.y,o)&&s.push({element:n,datasetIndex:a,index:l})};return W(t,n,e,a,!0),s}function B(t,e,n,o){let r=[];function s(t,n,s){const{startAngle:a,endAngle:l}=t.getProps(["startAngle","endAngle"],o),{angle:c}=(0,i.D)(t,{x:e.x,y:e.y});(0,i.p)(c,a,l)&&r.push({element:t,datasetIndex:n,index:s})}return W(t,n,e,s),r}function Y(t,e,n,i,o,r){let s=[];const a=N(n);let l=Number.POSITIVE_INFINITY;function c(n,c,u){const h=n.inRange(e.x,e.y,o);if(i&&!h)return;const d=n.getCenterPoint(o),f=!!r||t.isPointInArea(d);if(!f&&!h)return;const p=a(e,d);p<l?(s=[{element:n,datasetIndex:c,index:u}],l=p):p===l&&s.push({element:n,datasetIndex:c,index:u})}return W(t,n,e,c),s}function V(t,e,n,i,o,r){return r||t.isPointInArea(e)?"r"!==n||i?Y(t,e,n,i,o,r):B(t,e,n,o):[]}function $(t,e,n,i,o){const r=[],s="x"===n?"inXRange":"inYRange";let a=!1;return W(t,n,e,((t,i,l)=>{t[s]&&t[s](e[n],o)&&(r.push({element:t,datasetIndex:i,index:l}),a=a||t.inRange(e.x,e.y,o))})),i&&!a?[]:r}var X={evaluateInteractionItems:W,modes:{index(t,e,n,o){const r=(0,i.z)(e,t),s=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?H(t,r,s,o,a):V(t,r,s,!1,o,a),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=l[0].index,n=t.data[e];n&&!n.skip&&c.push({element:n,datasetIndex:t.index,index:e})})),c):[]},dataset(t,e,n,o){const r=(0,i.z)(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?H(t,r,s,o,a):V(t,r,s,!1,o,a);if(l.length>0){const e=l[0].datasetIndex,n=t.getDatasetMeta(e).data;l=[];for(let t=0;t<n.length;++t)l.push({element:n[t],datasetIndex:e,index:t})}return l},point(t,e,n,o){const r=(0,i.z)(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;return H(t,r,s,o,a)},nearest(t,e,n,o){const r=(0,i.z)(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;return V(t,r,s,n.intersect,o,a)},x(t,e,n,o){const r=(0,i.z)(e,t);return $(t,r,"x",n.intersect,o)},y(t,e,n,o){const r=(0,i.z)(e,t);return $(t,r,"y",n.intersect,o)}}};const q=["left","top","right","bottom"];function U(t,e){return t.filter((t=>t.pos===e))}function G(t,e){return t.filter((t=>-1===q.indexOf(t.pos)&&t.box.axis===e))}function Z(t,e){return t.sort(((t,n)=>{const i=e?n:t,o=e?t:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight}))}function J(t){const e=[];let n,i,o,r,s,a;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:r,options:{stack:s,stackWeight:a=1}}=o),e.push({index:n,box:o,pos:r,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&r+s,stackWeight:a});return e}function Q(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!q.includes(i))continue;const r=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return e}function K(t,e){const n=Q(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let r,s,a;for(r=0,s=t.length;r<s;++r){a=t[r];const{fullSize:s}=a.box,l=n[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*i:s&&e.availableWidth,a.height=o):(a.width=i,a.height=c?c*o:s&&e.availableHeight)}return n}function tt(t){const e=J(t),n=Z(e.filter((t=>t.box.fullSize)),!0),i=Z(U(e,"left"),!0),o=Z(U(e,"right")),r=Z(U(e,"top"),!0),s=Z(U(e,"bottom")),a=G(e,"x"),l=G(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:o.concat(l).concat(s).concat(a),chartArea:U(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:r.concat(s).concat(a)}}function et(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function nt(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function it(t,e,n,o){const{pos:r,box:s}=n,a=t.maxPadding;if(!(0,i.i)(r)){n.size&&(t[r]-=n.size);const e=o[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?s.height:s.width),n.size=e.size/e.count,t[r]+=n.size}s.getPadding&&nt(a,s.getPadding());const l=Math.max(0,e.outerWidth-et(a,t,"left","right")),c=Math.max(0,e.outerHeight-et(a,t,"top","bottom")),u=l!==t.w,h=c!==t.h;return t.w=l,t.h=c,n.horizontal?{same:u,other:h}:{same:h,other:u}}function ot(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function rt(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}return i(t?["left","right"]:["top","bottom"])}function st(t,e,n,i){const o=[];let r,s,a,l,c,u;for(r=0,s=t.length,c=0;r<s;++r){a=t[r],l=a.box,l.update(a.width||e.w,a.height||e.h,rt(a.horizontal,e));const{same:s,other:h}=it(e,n,a,i);c|=s&&o.length,u=u||h,l.fullSize||o.push(a)}return c&&st(o,e,n,i)||u}function at(t,e,n,i,o){t.top=n,t.left=e,t.right=e+i,t.bottom=n+o,t.width=i,t.height=o}function lt(t,e,n,o){const r=n.padding;let{x:s,y:a}=e;for(const l of t){const t=l.box,c=o[l.stack]||{count:1,placed:0,weight:1},u=l.stackWeight/c.weight||1;if(l.horizontal){const o=e.w*u,s=c.size||t.height;(0,i.h)(c.start)&&(a=c.start),t.fullSize?at(t,r.left,a,n.outerWidth-r.right-r.left,s):at(t,e.left+c.placed,a,o,s),c.start=a,c.placed+=o,a=t.bottom}else{const o=e.h*u,a=c.size||t.width;(0,i.h)(c.start)&&(s=c.start),t.fullSize?at(t,s,r.top,a,n.outerHeight-r.bottom-r.top):at(t,s,e.top+c.placed,a,o),c.start=s,c.placed+=o,s=t.right}}e.x=s,e.y=a}var ct={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,o){if(!t)return;const r=(0,i.E)(t.options.layout.padding),s=Math.max(e-r.width,0),a=Math.max(n-r.height,0),l=tt(t.boxes),c=l.vertical,u=l.horizontal;(0,i.F)(t.boxes,(t=>{"function"===typeof t.beforeLayout&&t.beforeLayout()}));const h=c.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/h,hBoxMaxHeight:a/2}),f=Object.assign({},r);nt(f,(0,i.E)(o));const p=Object.assign({maxPadding:f,w:s,h:a,x:r.left,y:r.top},r),g=K(c.concat(u),d);st(l.fullSize,p,d,g),st(c,p,d,g),st(u,p,d,g)&&st(c,p,d,g),ot(p),lt(l.leftAndTop,p,d,g),p.x+=p.w,p.y+=p.h,lt(l.rightAndBottom,p,d,g),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},(0,i.F)(l.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class ut{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class ht extends ut{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const dt="$chartjs",ft={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},pt=t=>null===t||""===t;function gt(t,e){const n=t.style,o=t.getAttribute("height"),r=t.getAttribute("width");if(t[dt]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",pt(r)){const e=(0,i.J)(t,"width");void 0!==e&&(t.width=e)}if(pt(o))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,i.J)(t,"height");void 0!==e&&(t.height=e)}return t}const mt=!!i.K&&{passive:!0};function bt(t,e,n){t&&t.addEventListener(e,n,mt)}function yt(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,mt)}function xt(t,e){const n=ft[t.type]||t.type,{x:o,y:r}=(0,i.z)(t,e);return{type:n,chart:e,native:t,x:void 0!==o?o:null,y:void 0!==r?r:null}}function vt(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function wt(t,e,n){const i=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||vt(n.addedNodes,i),e=e&&!vt(n.removedNodes,i);e&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}function _t(t,e,n){const i=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||vt(n.removedNodes,i),e=e&&!vt(n.addedNodes,i);e&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}const kt=new Map;let Mt=0;function St(){const t=window.devicePixelRatio;t!==Mt&&(Mt=t,kt.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Dt(t,e){kt.size||window.addEventListener("resize",St),kt.set(t,e)}function Tt(t){kt.delete(t),kt.size||window.removeEventListener("resize",St)}function Ct(t,e,n){const o=t.canvas,r=o&&(0,i.I)(o);if(!r)return;const s=(0,i.L)(((t,e)=>{const i=r.clientWidth;n(t,e),i<r.clientWidth&&n()}),window),a=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||s(n,i)}));return a.observe(r),Dt(t,s),a}function Pt(t,e,n){n&&n.disconnect(),"resize"===e&&Tt(t)}function Ot(t,e,n){const o=t.canvas,r=(0,i.L)((e=>{null!==t.ctx&&n(xt(e,t))}),t);return bt(o,e,r),r}class At extends ut{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(gt(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[dt])return!1;const n=e[dt].initial;["height","width"].forEach((t=>{const o=n[t];(0,i.k)(o)?e.removeAttribute(t):e.setAttribute(t,o)}));const o=n.style||{};return Object.keys(o).forEach((t=>{e.style[t]=o[t]})),e.width=e.width,delete e[dt],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:wt,detach:_t,resize:Ct},r=o[e]||Ot;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;const o={attach:Pt,detach:Pt,resize:Pt},r=o[e]||yt;r(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,o){return(0,i.G)(t,e,n,o)}isAttached(t){const e=t&&(0,i.I)(t);return!(!e||!e.isConnected)}}function Et(t){return!(0,i.M)()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ht:At}class It{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return(0,i.x)(this.x)&&(0,i.x)(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}function Rt(t,e){const n=t.options.ticks,o=Lt(t),r=Math.min(n.maxTicksLimit||o,o),s=n.major.enabled?jt(e):[],a=s.length,l=s[0],c=s[a-1],u=[];if(a>r)return zt(e,u,s,a/r),u;const h=Ft(s,e,r);if(a>0){let t,n;const o=a>1?Math.round((c-l)/(a-1)):null;for(Wt(e,u,h,(0,i.k)(o)?0:l-o,l),t=0,n=a-1;t<n;t++)Wt(e,u,h,s[t],s[t+1]);return Wt(e,u,h,c,(0,i.k)(o)?e.length:c+o),u}return Wt(e,u,h),u}function Lt(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(i,o))}function Ft(t,e,n){const o=Nt(t),r=e.length/n;if(!o)return Math.max(r,1);const s=(0,i.N)(o);for(let i=0,a=s.length-1;i<a;i++){const t=s[i];if(t>r)return t}return Math.max(r,1)}function jt(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}function zt(t,e,n,i){let o,r=0,s=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===s&&(e.push(t[o]),r++,s=n[r*i])}function Wt(t,e,n,o,r){const s=(0,i.v)(o,0),a=Math.min((0,i.v)(r,t.length),t.length);let l,c,u,h=0;n=Math.ceil(n),r&&(l=r-o,n=l/Math.floor(l/n)),u=s;while(u<0)h++,u=Math.round(s+h*n);for(c=Math.max(s,0);c<a;c++)c===u&&(e.push(t[c]),h++,u=Math.round(s+h*n))}function Nt(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}const Ht=t=>"left"===t?"right":"right"===t?"left":t,Bt=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,Yt=(t,e)=>Math.min(e||t,t);function Vt(t,e){const n=[],i=t.length/e,o=t.length;let r=0;for(;r<o;r+=i)n.push(t[Math.floor(r)]);return n}function $t(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),r=t._startPixel,s=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-r,s-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<r-a||c>s+a)))return c}function Xt(t,e){(0,i.F)(t,(t=>{const n=t.gc,i=n.length/2;let o;if(i>e){for(o=0;o<i;++o)delete t.data[n[o]];n.splice(0,i)}}))}function qt(t){return t.drawTicks?t.tickLength:0}function Ut(t,e){if(!t.display)return 0;const n=(0,i.a0)(t.font,e),o=(0,i.E)(t.padding),r=(0,i.b)(t.text)?t.text.length:1;return r*n.lineHeight+o.height}function Gt(t,e){return(0,i.j)(t,{scale:e,type:"scale"})}function Zt(t,e,n){return(0,i.j)(t,{tick:n,index:e,type:"tick"})}function Jt(t,e,n){let o=(0,i.a1)(t);return(n&&"right"!==e||!n&&"right"===e)&&(o=Ht(o)),o}function Qt(t,e,n,o){const{top:r,left:s,bottom:a,right:l,chart:c}=t,{chartArea:u,scales:h}=c;let d,f,p,g=0;const m=a-r,b=l-s;if(t.isHorizontal()){if(f=(0,i.a2)(o,s,l),(0,i.i)(n)){const t=Object.keys(n)[0],i=n[t];p=h[t].getPixelForValue(i)+m-e}else p="center"===n?(u.bottom+u.top)/2+m-e:Bt(t,n,e);d=l-s}else{if((0,i.i)(n)){const t=Object.keys(n)[0],i=n[t];f=h[t].getPixelForValue(i)-b+e}else f="center"===n?(u.left+u.right)/2-b+e:Bt(t,n,e);p=(0,i.a2)(o,a,r),g="left"===n?-i.H:i.H}return{titleX:f,titleY:p,maxWidth:d,rotation:g}}class Kt extends It{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:o}=this;return t=(0,i.O)(t,Number.POSITIVE_INFINITY),e=(0,i.O)(e,Number.NEGATIVE_INFINITY),n=(0,i.O)(n,Number.POSITIVE_INFINITY),o=(0,i.O)(o,Number.NEGATIVE_INFINITY),{min:(0,i.O)(t,n),max:(0,i.O)(e,o),minDefined:(0,i.g)(t),maxDefined:(0,i.g)(e)}}getMinMax(t){let e,{min:n,max:o,minDefined:r,maxDefined:s}=this.getUserBounds();if(r&&s)return{min:n,max:o};const a=this.getMatchingVisibleMetas();for(let i=0,l=a.length;i<l;++i)e=a[i].controller.getMinMax(this,t),r||(n=Math.min(n,e.min)),s||(o=Math.max(o,e.max));return n=s&&n>o?o:n,o=r&&n>o?n:o,{min:(0,i.O)(n,(0,i.O)(o,n)),max:(0,i.O)(o,(0,i.O)(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){const e=this._labelItems||(this._labelItems=this._computeLabelItems(t));return e}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,i.Q)(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:o,grace:r,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,i.R)(this,r,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?Vt(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=Rt(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){(0,i.Q)(this.options.afterUpdate,[this])}beforeSetDimensions(){(0,i.Q)(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){(0,i.Q)(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),(0,i.Q)(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){(0,i.Q)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,o,r;for(n=0,o=t.length;n<o;n++)r=t[n],r.label=(0,i.Q)(e.callback,[r.value,n,t],this)}afterTickToLabelConversion(){(0,i.Q)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){(0,i.Q)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=Yt(this.ticks.length,t.ticks.maxTicksLimit),o=e.minRotation||0,r=e.maxRotation;let s,a,l,c=o;if(!this._isVisible()||!e.display||o>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const u=this._getLabelSizes(),h=u.widest.width,d=u.highest.height,f=(0,i.S)(this.chart.width-h,0,this.maxWidth);s=t.offset?this.maxWidth/n:f/(n-1),h+6>s&&(s=f/(n-(t.offset?.5:1)),a=this.maxHeight-qt(t.grid)-e.padding-Ut(t.title,this.chart.options.font),l=Math.sqrt(h*h+d*d),c=(0,i.U)(Math.min(Math.asin((0,i.S)((u.highest.height+6)/s,-1,1)),Math.asin((0,i.S)(a/l,-1,1))-Math.asin((0,i.S)(d/l,-1,1)))),c=Math.max(o,Math.min(r,c))),this.labelRotation=c}afterCalculateLabelRotation(){(0,i.Q)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,i.Q)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:o,grid:r}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const s=Ut(o,e.options.font);if(a?(t.width=this.maxWidth,t.height=qt(r)+s):(t.height=this.maxHeight,t.width=qt(r)+s),n.display&&this.ticks.length){const{first:e,last:o,widest:r,highest:s}=this._getLabelSizes(),l=2*n.padding,c=(0,i.t)(this.labelRotation),u=Math.cos(c),h=Math.sin(c);if(a){const e=n.mirror?0:h*r.width+u*s.height;t.height=Math.min(this.maxHeight,t.height+e+l)}else{const e=n.mirror?0:u*r.width+h*s.height;t.width=Math.min(this.maxWidth,t.width+e+l)}this._calculatePadding(e,o,h,u)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:o,padding:r},position:s}=this.options,a=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,h=0;a?l?(u=i*t.width,h=n*e.height):(u=n*t.height,h=i*e.width):"start"===o?h=e.width:"end"===o?u=t.width:"inner"!==o&&(u=t.width/2,h=e.width/2),this.paddingLeft=Math.max((u-s+r)*this.width/(this.width-s),0),this.paddingRight=Math.max((h-c+r)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===o?(n=0,i=t.height):"end"===o&&(n=e.height,i=0),this.paddingTop=n+r,this.paddingBottom=i+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,i.Q)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)(0,i.k)(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Vt(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:o,_longestTextCache:r}=this,s=[],a=[],l=Math.floor(e/Yt(e,n));let c,u,h,d,f,p,g,m,b,y,x,v=0,w=0;for(c=0;c<e;c+=l){if(d=t[c].label,f=this._resolveTickFontOptions(c),o.font=p=f.string,g=r[p]=r[p]||{data:{},gc:[]},m=f.lineHeight,b=y=0,(0,i.k)(d)||(0,i.b)(d)){if((0,i.b)(d))for(u=0,h=d.length;u<h;++u)x=d[u],(0,i.k)(x)||(0,i.b)(x)||(b=(0,i.V)(o,g.data,g.gc,b,x),y+=m)}else b=(0,i.V)(o,g.data,g.gc,b,d),y=m;s.push(b),a.push(y),v=Math.max(b,v),w=Math.max(y,w)}Xt(r,e);const _=s.indexOf(v),k=a.indexOf(w),M=t=>({width:s[t]||0,height:a[t]||0});return{first:M(0),last:M(e-1),widest:M(_),highest:M(k),widths:s,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(0,i.W)(this._alignToPixels?(0,i.X)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=Zt(this.getContext(),t,n))}return this.$context||(this.$context=Gt(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=(0,i.t)(this.labelRotation),n=Math.abs(Math.cos(e)),o=Math.abs(Math.sin(e)),r=this._getLabelSizes(),s=t.autoSkipPadding||0,a=r?r.widest.width+s:0,l=r?r.highest.height+s:0;return this.isHorizontal()?l*n>a*o?a/n:l/o:l*o<a*n?l/n:a/o}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,o=this.options,{grid:r,position:s,border:a}=o,l=r.offset,c=this.isHorizontal(),u=this.ticks,h=u.length+(l?1:0),d=qt(r),f=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,m=g/2,b=function(t){return(0,i.X)(n,t,g)};let y,x,v,w,_,k,M,S,D,T,C,P;if("top"===s)y=b(this.bottom),k=this.bottom-d,S=y-m,T=b(t.top)+m,P=t.bottom;else if("bottom"===s)y=b(this.top),T=t.top,P=b(t.bottom)-m,k=y+m,S=this.top+d;else if("left"===s)y=b(this.right),_=this.right-d,M=y-m,D=b(t.left)+m,C=t.right;else if("right"===s)y=b(this.left),D=t.left,C=b(t.right)-m,_=y+m,M=this.left+d;else if("x"===e){if("center"===s)y=b((t.top+t.bottom)/2+.5);else if((0,i.i)(s)){const t=Object.keys(s)[0],e=s[t];y=b(this.chart.scales[t].getPixelForValue(e))}T=t.top,P=t.bottom,k=y+m,S=k+d}else if("y"===e){if("center"===s)y=b((t.left+t.right)/2);else if((0,i.i)(s)){const t=Object.keys(s)[0],e=s[t];y=b(this.chart.scales[t].getPixelForValue(e))}_=y-m,M=_-d,D=t.left,C=t.right}const O=(0,i.v)(o.ticks.maxTicksLimit,h),A=Math.max(1,Math.ceil(h/O));for(x=0;x<h;x+=A){const t=this.getContext(x),e=r.setContext(t),o=a.setContext(t),s=e.lineWidth,u=e.color,h=o.dash||[],d=o.dashOffset,p=e.tickWidth,g=e.tickColor,m=e.tickBorderDash||[],b=e.tickBorderDashOffset;v=$t(this,x,l),void 0!==v&&(w=(0,i.X)(n,v,s),c?_=M=D=C=w:k=S=T=P=w,f.push({tx1:_,ty1:k,tx2:M,ty2:S,x1:D,y1:T,x2:C,y2:P,width:s,color:u,borderDash:h,borderDashOffset:d,tickWidth:p,tickColor:g,tickBorderDash:m,tickBorderDashOffset:b}))}return this._ticksLength=h,this._borderValue=y,f}_computeLabelItems(t){const e=this.axis,n=this.options,{position:o,ticks:r}=n,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:h}=r,d=qt(n.grid),f=d+u,p=h?-u:f,g=-(0,i.t)(this.labelRotation),m=[];let b,y,x,v,w,_,k,M,S,D,T,C,P="middle";if("top"===o)_=this.bottom-p,k=this._getXAxisLabelAlignment();else if("bottom"===o)_=this.top+p,k=this._getXAxisLabelAlignment();else if("left"===o){const t=this._getYAxisLabelAlignment(d);k=t.textAlign,w=t.x}else if("right"===o){const t=this._getYAxisLabelAlignment(d);k=t.textAlign,w=t.x}else if("x"===e){if("center"===o)_=(t.top+t.bottom)/2+f;else if((0,i.i)(o)){const t=Object.keys(o)[0],e=o[t];_=this.chart.scales[t].getPixelForValue(e)+f}k=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===o)w=(t.left+t.right)/2-f;else if((0,i.i)(o)){const t=Object.keys(o)[0],e=o[t];w=this.chart.scales[t].getPixelForValue(e)}k=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===l?P="top":"end"===l&&(P="bottom"));const O=this._getLabelSizes();for(b=0,y=a.length;b<y;++b){x=a[b],v=x.label;const t=r.setContext(this.getContext(b));M=this.getPixelForTick(b)+r.labelOffset,S=this._resolveTickFontOptions(b),D=S.lineHeight,T=(0,i.b)(v)?v.length:1;const e=T/2,n=t.color,l=t.textStrokeColor,u=t.textStrokeWidth;let d,f=k;if(s?(w=M,"inner"===k&&(f=b===y-1?this.options.reverse?"left":"right":0===b?this.options.reverse?"right":"left":"center"),C="top"===o?"near"===c||0!==g?-T*D+D/2:"center"===c?-O.highest.height/2-e*D+D:-O.highest.height+D/2:"near"===c||0!==g?D/2:"center"===c?O.highest.height/2-e*D:O.highest.height-T*D,h&&(C*=-1),0===g||t.showLabelBackdrop||(w+=D/2*Math.sin(g))):(_=M,C=(1-T)*D/2),t.showLabelBackdrop){const e=(0,i.E)(t.backdropPadding),n=O.heights[b],o=O.widths[b];let r=C-e.top,s=0-e.left;switch(P){case"middle":r-=n/2;break;case"bottom":r-=n;break}switch(k){case"center":s-=o/2;break;case"right":s-=o;break;case"inner":b===y-1?s-=o:b>0&&(s-=o/2);break}d={left:s,top:r,width:o+e.width,height:n+e.height,color:t.backdropColor}}m.push({label:v,font:S,textOffset:C,options:{rotation:g,color:n,strokeColor:l,strokeWidth:u,textAlign:f,textBaseline:P,translation:[w,_],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options,n=-(0,i.t)(this.labelRotation);if(n)return"top"===t?"left":"right";let o="center";return"start"===e.align?o="left":"end"===e.align?o="right":"inner"===e.align&&(o="inner"),o}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,r=this._getLabelSizes(),s=t+o,a=r.widest.width;let l,c;return"left"===e?i?(c=this.right+o,"near"===n?l="left":"center"===n?(l="center",c+=a/2):(l="right",c+=a)):(c=this.right-s,"near"===n?l="right":"center"===n?(l="center",c-=a/2):(l="left",c=this.left)):"right"===e?i?(c=this.left+o,"near"===n?l="right":"center"===n?(l="center",c-=a/2):(l="left",c-=a)):(c=this.left+s,"near"===n?l="left":"center"===n?(l="center",c+=a/2):(l="right",c=this.right)):l="right",{textAlign:l,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks,i=n.findIndex((e=>e.value===t));if(i>=0){const t=e.setContext(this.getContext(i));return t.lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const s=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,r=i.length;o<r;++o){const t=i[o];e.drawOnChartArea&&s({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&s({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:o}}=this,r=n.setContext(this.getContext()),s=n.display?r.width:0;if(!s)return;const a=o.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,h,d;this.isHorizontal()?(c=(0,i.X)(t,this.left,s)-s/2,u=(0,i.X)(t,this.right,a)+a/2,h=d=l):(h=(0,i.X)(t,this.top,s)-s/2,d=(0,i.X)(t,this.bottom,a)+a/2,c=u=l),e.save(),e.lineWidth=r.width,e.strokeStyle=r.color,e.beginPath(),e.moveTo(c,h),e.lineTo(u,d),e.stroke(),e.restore()}drawLabels(t){const e=this.options.ticks;if(!e.display)return;const n=this.ctx,o=this._computeLabelArea();o&&(0,i.Y)(n,o);const r=this.getLabelItems(t);for(const s of r){const t=s.options,e=s.font,o=s.label,r=s.textOffset;(0,i.Z)(n,o,0,r,e,t)}o&&(0,i.$)(n)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:o}}=this;if(!n.display)return;const r=(0,i.a0)(n.font),s=(0,i.E)(n.padding),a=n.align;let l=r.lineHeight/2;"bottom"===e||"center"===e||(0,i.i)(e)?(l+=s.bottom,(0,i.b)(n.text)&&(l+=r.lineHeight*(n.text.length-1))):l+=s.top;const{titleX:c,titleY:u,maxWidth:h,rotation:d}=Qt(this,l,e,a);(0,i.Z)(t,n.text,0,0,r,{color:n.color,maxWidth:h,rotation:d,textAlign:Jt(a,e,o),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=(0,i.v)(t.grid&&t.grid.z,-1),o=(0,i.v)(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Kt.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,r;for(o=0,r=e.length;o<r;++o){const r=e[o];r[n]!==this.id||t&&r.type!==t||i.push(r)}return i}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return(0,i.a0)(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class te{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;ie(e)&&(n=this.register(e));const o=this.items,r=t.id,s=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in o||(o[r]=t,ee(t,s,n),this.override&&i.d.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,o=this.scope;n in e&&delete e[n],o&&n in i.d[o]&&(delete i.d[o][n],this.override&&delete i.a3[n])}}function ee(t,e,n){const o=(0,i.a4)(Object.create(null),[n?i.d.get(n):{},i.d.get(e),t.defaults]);i.d.set(e,o),t.defaultRoutes&&ne(e,t.defaultRoutes),t.descriptors&&i.d.describe(e,t.descriptors)}function ne(t,e){Object.keys(e).forEach((n=>{const o=n.split("."),r=o.pop(),s=[t].concat(o).join("."),a=e[n].split("."),l=a.pop(),c=a.join(".");i.d.route(s,r,c,l)}))}function ie(t){return"id"in t&&"defaults"in t}class oe{constructor(){this.controllers=new te(A,"datasets",!0),this.elements=new te(It,"elements"),this.plugins=new te(Object,"plugins"),this.scales=new te(Kt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const o=n||this._getRegistryForType(e);n||o.isForType(e)||o===this.plugins&&e.id?this._exec(t,o,e):(0,i.F)(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const o=(0,i.a5)(t);(0,i.Q)(n["before"+o],[],n),e[t](n),(0,i.Q)(n["after"+o],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var re=new oe;class se{constructor(){this._init=void 0}notify(t,e,n,i){if("beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),void 0===this._init)return;const o=i?this._descriptors(t).filter(i):this._descriptors(t),r=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),r}_notify(t,e,n,o){o=o||{};for(const r of t){const t=r.plugin,s=t[n],a=[e,o,r.options];if(!1===(0,i.Q)(s,a,t)&&o.cancelable)return!1}return!0}invalidate(){(0,i.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,o=(0,i.v)(n.options&&n.options.plugins,{}),r=ae(n);return!1!==o||e?ce(t,r,o,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function ae(t){const e={},n=[],i=Object.keys(re.plugins.items);for(let r=0;r<i.length;r++)n.push(re.getPlugin(i[r]));const o=t.plugins||[];for(let r=0;r<o.length;r++){const t=o[r];-1===n.indexOf(t)&&(n.push(t),e[t.id]=!0)}return{plugins:n,localIds:e}}function le(t,e){return e||!1!==t?!0===t?{}:t:null}function ce(t,{plugins:e,localIds:n},i,o){const r=[],s=t.getContext();for(const a of e){const e=a.id,l=le(i[e],o);null!==l&&r.push({plugin:a,options:ue(t.config,{plugin:a,local:n[e]},l,s)})}return r}function ue(t,{plugin:e,local:n},i,o){const r=t.pluginScopeKeys(e),s=t.getOptionScopes(i,r);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function he(t,e){const n=i.d.datasets[t]||{},o=(e.datasets||{})[t]||{};return o.indexAxis||e.indexAxis||n.indexAxis||"x"}function de(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}function fe(t,e){return t===e?"_index_":"_value_"}function pe(t){if("x"===t||"y"===t||"r"===t)return t}function ge(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function me(t,...e){if(pe(t))return t;for(const n of e){const e=n.axis||ge(n.position)||t.length>1&&pe(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function be(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function ye(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return be(t,"x",n[0])||be(t,"y",n[0])}return{}}function xe(t,e){const n=i.a3[t.type]||{scales:{}},o=e.scales||{},r=he(t.type,e),s=Object.create(null);return Object.keys(o).forEach((e=>{const a=o[e];if(!(0,i.i)(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const l=me(e,a,ye(e,t),i.d.scales[a.type]),c=fe(l,r),u=n.scales||{};s[e]=(0,i.ab)(Object.create(null),[{axis:l},a,u[l],u[c]])})),t.data.datasets.forEach((n=>{const r=n.type||t.type,a=n.indexAxis||he(r,e),l=i.a3[r]||{},c=l.scales||{};Object.keys(c).forEach((t=>{const e=de(t,a),r=n[e+"AxisID"]||e;s[r]=s[r]||Object.create(null),(0,i.ab)(s[r],[{axis:e},o[r],c[t]])}))})),Object.keys(s).forEach((t=>{const e=s[t];(0,i.ab)(e,[i.d.scales[e.type],i.d.scale])})),s}function ve(t){const e=t.options||(t.options={});e.plugins=(0,i.v)(e.plugins,{}),e.scales=xe(t,e)}function we(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function _e(t){return t=t||{},t.data=we(t.data),ve(t),t}const ke=new Map,Me=new Set;function Se(t,e){let n=ke.get(t);return n||(n=e(),ke.set(t,n),Me.add(n)),n}const De=(t,e,n)=>{const o=(0,i.f)(e,n);void 0!==o&&t.add(o)};class Te{constructor(t){this._config=_e(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=we(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),ve(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Se(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Se(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Se(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id,n=this.type;return Se(`${n}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:o,type:r}=this,s=this._cachedScopes(t,n),a=s.get(e);if(a)return a;const l=new Set;e.forEach((e=>{t&&(l.add(t),e.forEach((e=>De(l,t,e)))),e.forEach((t=>De(l,o,t))),e.forEach((t=>De(l,i.a3[r]||{},t))),e.forEach((t=>De(l,i.d,t))),e.forEach((t=>De(l,i.a6,t)))}));const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),Me.has(e)&&s.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,i.a3[e]||{},i.d.datasets[e]||{},{type:e},i.d,i.a6]}resolveNamedOptions(t,e,n,o=[""]){const r={$shared:!0},{resolver:s,subPrefixes:a}=Ce(this._resolverCache,t,o);let l=s;if(Oe(s,e)){r.$shared=!1,n=(0,i.a7)(n)?n():n;const e=this.createResolver(t,n,a);l=(0,i.a8)(s,n,e)}for(const i of e)r[i]=l[i];return r}createResolver(t,e,n=[""],o){const{resolver:r}=Ce(this._resolverCache,t,n);return(0,i.i)(e)?(0,i.a8)(r,e,void 0,o):r}}function Ce(t,e,n){let o=t.get(e);o||(o=new Map,t.set(e,o));const r=n.join();let s=o.get(r);if(!s){const t=(0,i.a9)(e,n);s={resolver:t,subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},o.set(r,s)}return s}const Pe=t=>(0,i.i)(t)&&Object.getOwnPropertyNames(t).some((e=>(0,i.a7)(t[e])));function Oe(t,e){const{isScriptable:n,isIndexable:o}=(0,i.aa)(t);for(const r of e){const e=n(r),s=o(r),a=(s||e)&&t[r];if(e&&((0,i.a7)(a)||Pe(a))||s&&(0,i.b)(a))return!0}return!1}var Ae="4.5.1";const Ee=["top","bottom","left","right","chartArea"];function Ie(t,e){return"top"===t||"bottom"===t||-1===Ee.indexOf(t)&&"x"===e}function Re(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Le(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),(0,i.Q)(n&&n.onComplete,[t],e)}function Fe(t){const e=t.chart,n=e.options.animation;(0,i.Q)(n&&n.onProgress,[t],e)}function je(t){return(0,i.M)()&&"string"===typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ze={},We=t=>{const e=je(t);return Object.values(ze).filter((t=>t.canvas===e)).pop()};function Ne(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const r=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=r)}}}function He(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}class Be{static defaults=i.d;static instances=ze;static overrides=i.a3;static registry=re;static version=Ae;static getChart=We;static register(...t){re.add(...t),Ye()}static unregister(...t){re.remove(...t),Ye()}constructor(t,e){const n=this.config=new Te(e),o=je(t),s=We(o);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Et(o)),this.platform.updateConfig(n);const l=this.platform.acquireContext(o,a.aspectRatio),c=l&&l.canvas,u=c&&c.height,h=c&&c.width;this.id=(0,i.ac)(),this.ctx=l,this.canvas=c,this.width=h,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new se,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,i.ad)((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],ze[this.id]=this,l&&c?(r.listen(this,"complete",Le),r.listen(this,"progress",Fe),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:o,_aspectRatio:r}=this;return(0,i.k)(t)?e&&r?r:o?n/o:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return re}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,i.ae)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,i.af)(this.canvas,this.ctx),this}stop(){return r.stop(this),this}resize(t,e){r.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(o,t,e,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,(0,i.ae)(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),(0,i.Q)(n.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options,e=t.scales||{};(0,i.F)(e,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,o=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let r=[];e&&(r=r.concat(Object.keys(e).map((t=>{const n=e[t],i=me(t,n),o="r"===i,r="x"===i;return{options:n,dposition:o?"chartArea":r?"bottom":"left",dtype:o?"radialLinear":r?"category":"linear"}})))),(0,i.F)(r,(e=>{const r=e.options,s=r.id,a=me(s,r),l=(0,i.v)(r.type,e.dtype);void 0!==r.position&&Ie(r.position,a)===Ie(e.dposition)||(r.position=e.dposition),o[s]=!0;let c=null;if(s in n&&n[s].type===l)c=n[s];else{const t=re.getScale(l);c=new t({id:s,type:l,ctx:this.ctx,chart:this}),n[c.id]=c}c.init(r,t)})),(0,i.F)(o,((t,e)=>{t||delete n[e]})),(0,i.F)(n,(t=>{ct.configure(this,t,t.options),ct.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(Re("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=e.length;n<o;n++){const o=e[n];let r=this.getDatasetMeta(n);const s=o.type||this.config.type;if(r.type&&r.type!==s&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=s,r.indexAxis=o.indexAxis||he(s,this.options),r.order=o.order||0,r.index=n,r.label=""+o.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const e=re.getController(s),{datasetElementType:o,dataElementType:a}=i.d.datasets[s];Object.assign(e,{dataElementType:re.getElement(a),datasetElementType:o&&re.getElement(o)}),r.controller=new e(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){(0,i.F)(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let i=0,c=this.data.datasets.length;i<c;i++){const{controller:t}=this.getDatasetMeta(i),e=!o&&-1===r.indexOf(t);t.buildOrUpdateElements(e),s=Math.max(+t.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),o||(0,i.F)(r,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Re("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){(0,i.F)(this.scales,(t=>{ct.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);(0,i.ag)(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of e){const e="_removeElements"===n?-o:o;Ne(t,i,e)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),o=n(0);for(let r=1;r<e;r++)if(!(0,i.ag)(o,n(r)))return;return Array.from(o).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;ct.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],(0,i.F)(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,(0,i.a7)(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(r.has(this)?this.attached&&!r.running(this)&&r.start(this):(this.draw(),Le({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];t&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n={meta:t,index:t.index,cancelable:!0},o=(0,i.ah)(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",n)&&(o&&(0,i.Y)(e,o),t.controller.draw(),o&&(0,i.$)(e),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return(0,i.C)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=X.modes[e];return"function"===typeof o?o(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=(0,i.j)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"===typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){const n=this.getDatasetMeta(t);n.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const o=n?"show":"hide",r=this.getDatasetMeta(t),s=r.controller._resolveAnimations(void 0,o);(0,i.h)(e)?(r.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),s.update(r,{visible:n}),this.update((e=>e.datasetIndex===t?o:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),r.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),(0,i.af)(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete ze[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},o=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};(0,i.F)(this.options.events,(t=>n(t,o)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let r;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",o),n("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",s)},e.isAttached(this.canvas)?s():r()}unbindEvents(){(0,i.F)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},(0,i.F)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let o,r,s,a;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,a=t.length;s<a;++s){r=t[s];const e=r&&this.getDatasetMeta(r.datasetIndex).controller;e&&e[i+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),o=!(0,i.ai)(n,e);o&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const i=this.options.hover,o=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),r=o(e,t),s=n?t:o(t,e);r.length&&this.updateHoverStyle(r,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:o=[],options:r}=this,s=e,a=this._getActiveElements(t,o,n,s),l=(0,i.aj)(t),c=He(t,this._lastEvent,n,l);n&&(this._lastEvent=null,(0,i.Q)(r.onHover,[t,a,this],this),l&&(0,i.Q)(r.onClick,[t,a,this],this));const u=!(0,i.ai)(a,o);return(u||e)&&(this._active=a,this._updateHoverStyles(a,o,e)),this._lastEvent=c,u}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}function Ye(){return(0,i.F)(Be.instances,(t=>t._plugins.invalidate()))}function Ve(t,e,n=e){t.lineCap=(0,i.v)(n.borderCapStyle,e.borderCapStyle),t.setLineDash((0,i.v)(n.borderDash,e.borderDash)),t.lineDashOffset=(0,i.v)(n.borderDashOffset,e.borderDashOffset),t.lineJoin=(0,i.v)(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=(0,i.v)(n.borderWidth,e.borderWidth),t.strokeStyle=(0,i.v)(n.borderColor,e.borderColor)}function $e(t,e,n){t.lineTo(n.x,n.y)}function Xe(t){return t.stepped?i.at:t.tension||"monotone"===t.cubicInterpolationMode?i.au:$e}function qe(t,e,n={}){const i=t.length,{start:o=0,end:r=i-1}=n,{start:s,end:a}=e,l=Math.max(o,s),c=Math.min(r,a),u=o<s&&r<s||o>a&&r>a;return{count:i,start:l,loop:e.loop,ilen:c<l&&!u?i+c-l:c-l}}function Ue(t,e,n,i){const{points:o,options:r}=e,{count:s,start:a,loop:l,ilen:c}=qe(o,n,i),u=Xe(r);let h,d,f,{move:p=!0,reverse:g}=i||{};for(h=0;h<=c;++h)d=o[(a+(g?c-h:h))%s],d.skip||(p?(t.moveTo(d.x,d.y),p=!1):u(t,f,d,g,r.stepped),f=d);return l&&(d=o[(a+(g?c:0))%s],u(t,f,d,g,r.stepped)),!!l}function Ge(t,e,n,i){const o=e.points,{count:r,start:s,ilen:a}=qe(o,n,i),{move:l=!0,reverse:c}=i||{};let u,h,d,f,p,g,m=0,b=0;const y=t=>(s+(c?a-t:t))%r,x=()=>{f!==p&&(t.lineTo(m,p),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(h=o[y(0)],t.moveTo(h.x,h.y)),u=0;u<=a;++u){if(h=o[y(u)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===d?(n<f?f=n:n>p&&(p=n),m=(b*m+e)/++b):(x(),t.lineTo(e,n),d=i,b=0,f=p=n),g=n}x()}function Ze(t){const e=t.options,n=e.borderDash&&e.borderDash.length,i=!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!n;return i?Ge:Ue}function Je(t){return t.stepped?i.aq:t.tension||"monotone"===t.cubicInterpolationMode?i.ar:i.as}function Qe(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),Ve(t,e.options),t.stroke(o)}function Ke(t,e,n,i){const{segments:o,options:r}=e,s=Ze(e);for(const a of o)Ve(t,r,a.style),t.beginPath(),s(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}const tn="function"===typeof Path2D;function en(t,e,n,i){tn&&!e.options.segment?Qe(t,e,n,i):Ke(t,e,n,i)}class nn extends It{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const o=n.spanGaps?this._loop:this._fullLoop;(0,i.an)(this._points,n,t,o,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,i.ao)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,o=t[e],r=this.points,s=(0,i.ap)(this,{property:e,start:o,end:o});if(!s.length)return;const a=[],l=Je(n);let c,u;for(c=0,u=s.length;c<u;++c){const{start:i,end:u}=s[c],h=r[i],d=r[u];if(h===d){a.push(h);continue}const f=Math.abs((o-h[e])/(d[e]-h[e])),p=l(h,d,f,n.stepped);p[e]=t[e],a.push(p)}return 1===a.length?a[0]:a}pathSegment(t,e,n){const i=Ze(this);return i(t,this,e,n)}path(t,e,n){const i=this.segments,o=Ze(this);let r=this._loop;e=e||0,n=n||this.points.length-e;for(const s of i)r&=o(t,this,s,{start:e,end:e+n-1});return!!r}draw(t,e,n,i){const o=this.options||{},r=this.points||[];r.length&&o.borderWidth&&(t.save(),en(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function on(t,e,n,i){const o=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r)<o.radius+o.hitRadius}class rn extends It{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:o,y:r}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-r,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return on(this,t,"x",e)}inYRange(t,e){return on(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){t=t||this.options||{};let e=t.radius||0;e=Math.max(e,e&&t.hoverRadius||0);const n=e&&t.borderWidth||0;return 2*(e+n)}draw(t,e){const n=this.options;this.skip||n.radius<.1||!(0,i.C)(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,(0,i.av)(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function sn(t,e,n){const o=t.segments,r=t.points,s=e.points,a=[];for(const l of o){let{start:t,end:o}=l;o=cn(t,o,r);const c=an(n,r[t],r[o],l.loop);if(!e.segments){a.push({source:l,target:c,start:r[t],end:r[o]});continue}const u=(0,i.ap)(e,c);for(const e of u){const t=an(n,s[e.start],s[e.end],e.loop),o=(0,i.az)(l,r,t);for(const i of o)a.push({source:i,target:e,start:{[n]:un(c,t,"start",Math.max)},end:{[n]:un(c,t,"end",Math.min)}})}}return a}function an(t,e,n,o){if(o)return;let r=e[t],s=n[t];return"angle"===t&&(r=(0,i.al)(r),s=(0,i.al)(s)),{property:t,start:r,end:s}}function ln(t,e){const{x:n=null,y:i=null}=t||{},o=e.points,r=[];return e.segments.forEach((({start:t,end:e})=>{e=cn(t,e,o);const s=o[t],a=o[e];null!==i?(r.push({x:s.x,y:i}),r.push({x:a.x,y:i})):null!==n&&(r.push({x:n,y:s.y}),r.push({x:n,y:a.y}))})),r}function cn(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function un(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function hn(t,e){let n=[],o=!1;return(0,i.b)(t)?(o=!0,n=t):n=ln(t,e),n.length?new nn({points:n,options:{tension:0},_loop:o,_fullLoop:o}):null}function dn(t){return t&&!1!==t.fill}function fn(t,e,n){const o=t[e];let r=o.fill;const s=[e];let a;if(!n)return r;while(!1!==r&&-1===s.indexOf(r)){if(!(0,i.g)(r))return r;if(a=t[r],!a)return!1;if(a.visible)return r;s.push(r),r=a.fill}return!1}function pn(t,e,n){const o=yn(t);if((0,i.i)(o))return!isNaN(o.value)&&o;let r=parseFloat(o);return(0,i.g)(r)&&Math.floor(r)===r?gn(o[0],e,r,n):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}function gn(t,e,n,i){return"-"!==t&&"+"!==t||(n=e+n),!(n===e||n<0||n>=i)&&n}function mn(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:(0,i.i)(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function bn(t,e,n){let o;return o="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:(0,i.i)(t)?t.value:e.getBaseValue(),o}function yn(t){const e=t.options,n=e.fill;let o=(0,i.v)(n&&n.target,n);return void 0===o&&(o=!!e.backgroundColor),!1!==o&&null!==o&&(!0===o?"origin":o)}function xn(t){const{scale:e,index:n,line:i}=t,o=[],r=i.segments,s=i.points,a=vn(e,n);a.push(hn({x:null,y:e.bottom},i));for(let l=0;l<r.length;l++){const t=r[l];for(let e=t.start;e<=t.end;e++)wn(o,s[e],a)}return new nn({points:o,options:{}})}function vn(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let o=0;o<i.length;o++){const t=i[o];if(t.index===e)break;t.hidden||n.unshift(t.dataset)}return n}function wn(t,e,n){const i=[];for(let o=0;o<n.length;o++){const r=n[o],{first:s,last:a,point:l}=_n(r,e,"x");if(!(!l||s&&a))if(s)i.unshift(l);else if(t.push(l),!a)break}t.push(...i)}function _n(t,e,n){const o=t.interpolate(e,n);if(!o)return{};const r=o[n],s=t.segments,a=t.points;let l=!1,c=!1;for(let u=0;u<s.length;u++){const t=s[u],e=a[t.start][n],o=a[t.end][n];if((0,i.ak)(r,e,o)){l=r===e,c=r===o;break}}return{first:l,last:c,point:o}}class kn{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:o,y:r,radius:s}=this;return e=e||{start:0,end:i.T},t.arc(o,r,s,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,o=t.angle;return{x:e+Math.cos(o)*i,y:n+Math.sin(o)*i,angle:o}}}function Mn(t){const{chart:e,fill:n,line:o}=t;if((0,i.g)(n))return Sn(e,n);if("stack"===n)return xn(t);if("shape"===n)return!0;const r=Dn(t);return r instanceof kn?r:hn(r,o)}function Sn(t,e){const n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e);return i?n.dataset:null}function Dn(t){const e=t.scale||{};return e.getPointPositionForValue?Cn(t):Tn(t)}function Tn(t){const{scale:e={},fill:n}=t,o=mn(n,e);if((0,i.g)(o)){const t=e.isHorizontal();return{x:t?o:null,y:t?null:o}}return null}function Cn(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,r=i.reverse?e.max:e.min,s=bn(n,e,r),a=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,r);return new kn({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(s)})}for(let l=0;l<o;++l)a.push(e.getPointPositionForValue(l,s));return a}function Pn(t,e,n){const o=Mn(e),{chart:r,index:s,line:a,scale:l,axis:c}=e,u=a.options,h=u.fill,d=u.backgroundColor,{above:f=d,below:p=d}=h||{},g=r.getDatasetMeta(s),m=(0,i.ah)(r,g);o&&a.points.length&&((0,i.Y)(t,n),On(t,{line:a,target:o,above:f,below:p,area:n,scale:l,axis:c,clip:m}),(0,i.$)(t))}function On(t,e){const{line:n,target:i,above:o,below:r,area:s,scale:a,clip:l}=e,c=n._loop?"angle":e.axis;t.save();let u=r;r!==o&&("x"===c?(An(t,i,s.top),In(t,{line:n,target:i,color:o,scale:a,property:c,clip:l}),t.restore(),t.save(),An(t,i,s.bottom)):"y"===c&&(En(t,i,s.left),In(t,{line:n,target:i,color:r,scale:a,property:c,clip:l}),t.restore(),t.save(),En(t,i,s.right),u=o)),In(t,{line:n,target:i,color:u,scale:a,property:c,clip:l}),t.restore()}function An(t,e,n){const{segments:i,points:o}=e;let r=!0,s=!1;t.beginPath();for(const a of i){const{start:i,end:l}=a,c=o[i],u=o[cn(i,l,o)];r?(t.moveTo(c.x,c.y),r=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),s=!!e.pathSegment(t,a,{move:s}),s?t.closePath():t.lineTo(u.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function En(t,e,n){const{segments:i,points:o}=e;let r=!0,s=!1;t.beginPath();for(const a of i){const{start:i,end:l}=a,c=o[i],u=o[cn(i,l,o)];r?(t.moveTo(c.x,c.y),r=!1):(t.lineTo(n,c.y),t.lineTo(c.x,c.y)),s=!!e.pathSegment(t,a,{move:s}),s?t.closePath():t.lineTo(n,u.y)}t.lineTo(n,e.first().y),t.closePath(),t.clip()}function In(t,e){const{line:n,target:i,property:o,color:r,scale:s,clip:a}=e,l=sn(n,i,o);for(const{source:c,target:u,start:h,end:d}of l){const{style:{backgroundColor:e=r}={}}=c,l=!0!==i;t.save(),t.fillStyle=e,Rn(t,s,a,l&&an(o,h,d)),t.beginPath();const f=!!n.pathSegment(t,c);let p;if(l){f?t.closePath():Ln(t,i,d,o);const e=!!i.pathSegment(t,u,{move:f,reverse:!0});p=f&&e,p||Ln(t,i,h,o)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function Rn(t,e,n,i){const o=e.chart.chartArea,{property:r,start:s,end:a}=i||{};if("x"===r||"y"===r){let e,i,l,c;"x"===r?(e=s,i=o.top,l=a,c=o.bottom):(e=o.left,i=s,l=o.right,c=a),t.beginPath(),n&&(e=Math.max(e,n.left),l=Math.min(l,n.right),i=Math.max(i,n.top),c=Math.min(c,n.bottom)),t.rect(e,i,l-e,c-i),t.clip()}}function Ln(t,e,n,i){const o=e.interpolate(n,i);o&&t.lineTo(o.x,o.y)}var Fn={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,o=[];let r,s,a,l;for(s=0;s<i;++s)r=t.getDatasetMeta(s),a=r.dataset,l=null,a&&a.options&&a instanceof nn&&(l={visible:t.isDatasetVisible(s),index:s,fill:pn(a,s,i),chart:t,axis:r.controller.options.indexAxis,scale:r.vScale,line:a}),r.$filler=l,o.push(l);for(s=0;s<i;++s)l=o[s],l&&!1!==l.fill&&(l.fill=fn(o,s,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,o=t.getSortedVisibleDatasetMetas(),r=t.chartArea;for(let s=o.length-1;s>=0;--s){const e=o[s].$filler;e&&(e.line.updateControlPoints(r,e.axis),i&&e.fill&&Pn(t.ctx,e,r))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let o=i.length-1;o>=0;--o){const e=i[o].$filler;dn(e)&&Pn(t.ctx,e,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;dn(i)&&"beforeDatasetDraw"===n.drawTime&&Pn(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const jn=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},zn=(t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Wn extends It{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=(0,i.Q)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,o=(0,i.a0)(n.font),r=o.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=jn(n,r);let c,u;e.font=o.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(s,r,a,l)+10):(u=this.maxHeight,c=this._fitCols(s,o,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:o,maxWidth:r,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+s;let u=t;o.textAlign="left",o.textBaseline="middle";let h=-1,d=-c;return this.legendItems.forEach(((t,f)=>{const p=n+e/2+o.measureText(t.text).width;(0===f||l[l.length-1]+p+2*s>r)&&(u+=c,l[l.length-(f>0?0:1)]=0,d+=c,h++),a[f]={left:0,top:d,row:h,width:p,height:i},l[l.length-1]+=p+s})),u}_fitCols(t,e,n,i){const{ctx:o,maxHeight:r,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],c=r-t;let u=s,h=0,d=0,f=0,p=0;return this.legendItems.forEach(((t,r)=>{const{itemWidth:g,itemHeight:m}=Nn(n,e,o,t,i);r>0&&d+m+2*s>c&&(u+=h+s,l.push({width:h,height:d}),f+=h+s,p++,h=d=0),a[r]={left:f,top:d,col:p,width:g,height:m},h=Math.max(h,g),d+=m+s})),u+=h,l.push({width:h,height:d}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:o},rtl:r}}=this,s=(0,i.aA)(r,this.left,this.width);if(this.isHorizontal()){let r=0,a=(0,i.a2)(n,this.left+o,this.right-this.lineWidths[r]);for(const l of e)r!==l.row&&(r=l.row,a=(0,i.a2)(n,this.left+o,this.right-this.lineWidths[r])),l.top+=this.top+t+o,l.left=s.leftForLtr(s.x(a),l.width),a+=l.width+o}else{let r=0,a=(0,i.a2)(n,this.top+t+o,this.bottom-this.columnSizes[r].height);for(const l of e)l.col!==r&&(r=l.col,a=(0,i.a2)(n,this.top+t+o,this.bottom-this.columnSizes[r].height)),l.top=a,l.left+=this.left+o,l.left=s.leftForLtr(s.x(l.left),l.width),a+=l.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,i.Y)(t,this),this._draw(),(0,i.$)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:o}=this,{align:r,labels:s}=t,a=i.d.color,l=(0,i.aA)(t.rtl,this.left,this.width),c=(0,i.a0)(s.font),{padding:u}=s,h=c.size,d=h/2;let f;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=jn(s,h),b=function(t,e,n){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;o.save();const r=(0,i.v)(n.lineWidth,1);if(o.fillStyle=(0,i.v)(n.fillStyle,a),o.lineCap=(0,i.v)(n.lineCap,"butt"),o.lineDashOffset=(0,i.v)(n.lineDashOffset,0),o.lineJoin=(0,i.v)(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=(0,i.v)(n.strokeStyle,a),o.setLineDash((0,i.v)(n.lineDash,[])),s.usePointStyle){const a={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},c=l.xPlus(t,p/2),u=e+d;(0,i.aE)(o,a,c,u,s.pointStyleWidth&&p)}else{const s=e+Math.max((h-g)/2,0),a=l.leftForLtr(t,p),c=(0,i.ay)(n.borderRadius);o.beginPath(),Object.values(c).some((t=>0!==t))?(0,i.aw)(o,{x:a,y:s,w:p,h:g,radius:c}):o.rect(a,s,p,g),o.fill(),0!==r&&o.stroke()}o.restore()},y=function(t,e,n){(0,i.Z)(o,n.text,t,e+m/2,c,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})},x=this.isHorizontal(),v=this._computeTitleHeight();f=x?{x:(0,i.a2)(r,this.left+u,this.right-n[0]),y:this.top+u+v,line:0}:{x:this.left+u,y:(0,i.a2)(r,this.top+v+u,this.bottom-e[0].height),line:0},(0,i.aB)(this.ctx,t.textDirection);const w=m+u;this.legendItems.forEach(((a,h)=>{o.strokeStyle=a.fontColor,o.fillStyle=a.fontColor;const g=o.measureText(a.text).width,m=l.textAlign(a.textAlign||(a.textAlign=s.textAlign)),_=p+d+g;let k=f.x,M=f.y;l.setWidth(this.width),x?h>0&&k+_+u>this.right&&(M=f.y+=w,f.line++,k=f.x=(0,i.a2)(r,this.left+u,this.right-n[f.line])):h>0&&M+w>this.bottom&&(k=f.x=k+e[f.line].width+u,f.line++,M=f.y=(0,i.a2)(r,this.top+v+u,this.bottom-e[f.line].height));const S=l.x(k);if(b(S,M,a),k=(0,i.aC)(m,k+p+d,x?k+_:this.right,t.rtl),y(l.x(k),M,a),x)f.x+=_+u;else if("string"!==typeof a.text){const t=c.lineHeight;f.y+=Yn(a,t)+u}else f.y+=w})),(0,i.aD)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=(0,i.a0)(e.font),o=(0,i.E)(e.padding);if(!e.display)return;const r=(0,i.aA)(t.rtl,this.left,this.width),s=this.ctx,a=e.position,l=n.size/2,c=o.top+l;let u,h=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),u=this.top+c,h=(0,i.a2)(t.align,h,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);u=c+(0,i.a2)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const f=(0,i.a2)(a,h,h+d);s.textAlign=r.textAlign((0,i.a1)(a)),s.textBaseline="middle",s.strokeStyle=e.color,s.fillStyle=e.color,s.font=n.string,(0,i.Z)(s,e.text,f,u,n)}_computeTitleHeight(){const t=this.options.title,e=(0,i.a0)(t.font),n=(0,i.E)(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,o,r;if((0,i.ak)(t,this.left,this.right)&&(0,i.ak)(e,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(o=r[n],(0,i.ak)(t,o.left,o.left+o.width)&&(0,i.ak)(e,o.top,o.top+o.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!Vn(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,r=zn(o,n);o&&!r&&(0,i.Q)(e.onLeave,[t,o,this],this),this._hoveredItem=n,n&&!r&&(0,i.Q)(e.onHover,[t,n,this],this)}else n&&(0,i.Q)(e.onClick,[t,n,this],this)}}function Nn(t,e,n,i,o){const r=Hn(i,t,e,n),s=Bn(o,i,e.lineHeight);return{itemWidth:r,itemHeight:s}}function Hn(t,e,n,i){let o=t.text;return o&&"string"!==typeof o&&(o=o.reduce(((t,e)=>t.length>e.length?t:e))),e+n.size/2+i.measureText(o).width}function Bn(t,e,n){let i=t;return"string"!==typeof e.text&&(i=Yn(e,n)),i}function Yn(t,e){const n=t.text?t.text.length:0;return e*n}function Vn(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}var $n={id:"legend",_element:Wn,start(t,e,n){const i=t.legend=new Wn({ctx:t.ctx,options:n,chart:t});ct.configure(t,i,n),ct.addBox(t,i)},stop(t){ct.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;ct.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:r,color:s,useBorderRadius:a,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const c=t.controller.getStyle(n?0:void 0),u=(0,i.E)(c.borderWidth);return{text:e[t.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!t.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:o||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:a&&(l||c.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Xn extends It{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const o=(0,i.b)(n.text)?n.text.length:1;this._padding=(0,i.E)(n.padding);const r=o*(0,i.a0)(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:o,right:r,options:s}=this,a=s.align;let l,c,u,h=0;return this.isHorizontal()?(c=(0,i.a2)(a,n,r),u=e+t,l=r-n):("left"===s.position?(c=n+t,u=(0,i.a2)(a,o,e),h=-.5*i.P):(c=r-t,u=(0,i.a2)(a,e,o),h=.5*i.P),l=o-e),{titleX:c,titleY:u,maxWidth:l,rotation:h}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=(0,i.a0)(e.font),o=n.lineHeight,r=o/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(r);(0,i.Z)(t,e.text,0,0,n,{color:e.color,maxWidth:l,rotation:c,textAlign:(0,i.a1)(e.align),textBaseline:"middle",translation:[s,a]})}}function qn(t,e){const n=new Xn({ctx:t.ctx,options:e,chart:t});ct.configure(t,n,e),ct.addBox(t,n),t.titleBlock=n}var Un={id:"title",_element:Xn,start(t,e,n){qn(t,n)},stop(t){const e=t.titleBlock;ct.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;ct.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};new WeakMap;const Gn={average(t){if(!t.length)return!1;let e,n,i=new Set,o=0,r=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i.add(t.x),o+=t.y,++r}}if(0===r||0===i.size)return!1;const s=[...i].reduce(((t,e)=>t+e))/i.size;return{x:s,y:o/r}},nearest(t,e){if(!t.length)return!1;let n,o,r,s=e.x,a=e.y,l=Number.POSITIVE_INFINITY;for(n=0,o=t.length;n<o;++n){const o=t[n].element;if(o&&o.hasValue()){const t=o.getCenterPoint(),n=(0,i.aF)(e,t);n<l&&(l=n,r=o)}}if(r){const t=r.tooltipPosition();s=t.x,a=t.y}return{x:s,y:a}}};function Zn(t,e){return e&&((0,i.b)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Jn(t){return("string"===typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Qn(t,e){const{element:n,datasetIndex:i,index:o}=e,r=t.getDatasetMeta(i).controller,{label:s,value:a}=r.getLabelAndValue(o);return{chart:t,label:s,parsed:r.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:a,dataset:r.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function Kn(t,e){const n=t.chart.ctx,{body:o,footer:r,title:s}=t,{boxWidth:a,boxHeight:l}=e,c=(0,i.a0)(e.bodyFont),u=(0,i.a0)(e.titleFont),h=(0,i.a0)(e.footerFont),d=s.length,f=r.length,p=o.length,g=(0,i.E)(e.padding);let m=g.height,b=0,y=o.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(y+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*u.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),y){const t=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;m+=p*t+(y-p)*c.lineHeight+(y-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*h.lineHeight+(f-1)*e.footerSpacing);let x=0;const v=function(t){b=Math.max(b,n.measureText(t).width+x)};return n.save(),n.font=u.string,(0,i.F)(t.title,v),n.font=c.string,(0,i.F)(t.beforeBody.concat(t.afterBody),v),x=e.displayColors?a+2+e.boxPadding:0,(0,i.F)(o,(t=>{(0,i.F)(t.before,v),(0,i.F)(t.lines,v),(0,i.F)(t.after,v)})),x=0,n.font=h.string,(0,i.F)(t.footer,v),n.restore(),b+=g.width,{width:b,height:m}}function ti(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}function ei(t,e,n,i){const{x:o,width:r}=i,s=n.caretSize+n.caretPadding;return"left"===t&&o+r+s>e.width||("right"===t&&o-r-s<0||void 0)}function ni(t,e,n,i){const{x:o,width:r}=n,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return"center"===i?c=o<=(a+l)/2?"left":"right":o<=r/2?c="left":o>=s-r/2&&(c="right"),ei(c,t,e,n)&&(c="center"),c}function ii(t,e,n){const i=n.yAlign||e.yAlign||ti(t,n);return{xAlign:n.xAlign||e.xAlign||ni(t,e,n,i),yAlign:i}}function oi(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}function ri(t,e,n){let{y:i,height:o}=t;return"top"===e?i+=n:i-="bottom"===e?o+n:o/2,i}function si(t,e,n,o){const{caretSize:r,caretPadding:s,cornerRadius:a}=t,{xAlign:l,yAlign:c}=n,u=r+s,{topLeft:h,topRight:d,bottomLeft:f,bottomRight:p}=(0,i.ay)(a);let g=oi(e,l);const m=ri(e,c,u);return"center"===c?"left"===l?g+=u:"right"===l&&(g-=u):"left"===l?g-=Math.max(h,f)+r:"right"===l&&(g+=Math.max(d,p)+r),{x:(0,i.S)(g,0,o.width-e.width),y:(0,i.S)(m,0,o.height-e.height)}}function ai(t,e,n){const o=(0,i.E)(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-o.right:t.x+o.left}function li(t){return Zn([],Jn(t))}function ci(t,e,n){return(0,i.j)(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function ui(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const hi={beforeTitle:i.aG,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:i.aG,beforeBody:i.aG,beforeLabel:i.aG,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return(0,i.k)(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex),n=e.controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex),n=e.controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:i.aG,afterBody:i.aG,beforeFooter:i.aG,footer:i.aG,afterFooter:i.aG};function di(t,e,n,i){const o=t[e].call(n,i);return"undefined"===typeof o?hi[e].call(n,i):o}class fi extends It{static positioners=Gn;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,o=new c(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=ci(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:n}=e,i=di(n,"beforeTitle",this,t),o=di(n,"title",this,t),r=di(n,"afterTitle",this,t);let s=[];return s=Zn(s,Jn(i)),s=Zn(s,Jn(o)),s=Zn(s,Jn(r)),s}getBeforeBody(t,e){return li(di(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,o=[];return(0,i.F)(t,(t=>{const e={before:[],lines:[],after:[]},i=ui(n,t);Zn(e.before,Jn(di(i,"beforeLabel",this,t))),Zn(e.lines,di(i,"label",this,t)),Zn(e.after,Jn(di(i,"afterLabel",this,t))),o.push(e)})),o}getAfterBody(t,e){return li(di(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,i=di(n,"beforeFooter",this,t),o=di(n,"footer",this,t),r=di(n,"afterFooter",this,t);let s=[];return s=Zn(s,Jn(i)),s=Zn(s,Jn(o)),s=Zn(s,Jn(r)),s}_createItems(t){const e=this._active,n=this.chart.data,o=[],r=[],s=[];let a,l,c=[];for(a=0,l=e.length;a<l;++a)c.push(Qn(this.chart,e[a]));return t.filter&&(c=c.filter(((e,i,o)=>t.filter(e,i,o,n)))),t.itemSort&&(c=c.sort(((e,i)=>t.itemSort(e,i,n)))),(0,i.F)(c,(e=>{const n=ui(t.callbacks,e);o.push(di(n,"labelColor",this,e)),r.push(di(n,"labelPointStyle",this,e)),s.push(di(n,"labelTextColor",this,e))})),this.labelColors=o,this.labelPointStyles=r,this.labelTextColors=s,this.dataPoints=c,c}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(i.length){const t=Gn[n.position].call(this,i,this._eventPosition);r=this._createItems(n),this.title=this.getTitle(r,n),this.beforeBody=this.getBeforeBody(r,n),this.body=this.getBody(r,n),this.afterBody=this.getAfterBody(r,n),this.footer=this.getFooter(r,n);const e=this._size=Kn(this,n),s=Object.assign({},t,e),a=ii(this.chart,n,s),l=si(n,s,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const o=this.getCaretPosition(t,n,i);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:o,yAlign:r}=this,{caretSize:s,cornerRadius:a}=n,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:h}=(0,i.ay)(a),{x:d,y:f}=t,{width:p,height:g}=e;let m,b,y,x,v,w;return"center"===r?(v=f+g/2,"left"===o?(m=d,b=m-s,x=v+s,w=v-s):(m=d+p,b=m+s,x=v-s,w=v+s),y=m):(b="left"===o?d+Math.max(l,u)+s:"right"===o?d+p-Math.max(c,h)-s:this.caretX,"top"===r?(x=f,v=x-s,m=b-s,y=b+s):(x=f+g,v=x+s,m=b+s,y=b-s),w=x),{x1:m,x2:b,x3:y,y1:x,y2:v,y3:w}}drawTitle(t,e,n){const o=this.title,r=o.length;let s,a,l;if(r){const c=(0,i.aA)(n.rtl,this.x,this.width);for(t.x=ai(this,n.titleAlign,n),e.textAlign=c.textAlign(n.titleAlign),e.textBaseline="middle",s=(0,i.a0)(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=s.string,l=0;l<r;++l)e.fillText(o[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,l+1===r&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,o,r){const s=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=r,u=(0,i.a0)(r.bodyFont),h=ai(this,"left",r),d=o.x(h),f=l<u.lineHeight?(u.lineHeight-l)/2:0,p=e.y+f;if(r.usePointStyle){const e={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=o.leftForLtr(d,c)+c/2,u=p+l/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,(0,i.av)(t,e,n,u),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,(0,i.av)(t,e,n,u)}else{t.lineWidth=(0,i.i)(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const e=o.leftForLtr(d,c),n=o.leftForLtr(o.xPlus(d,1),c-2),a=(0,i.ay)(s.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=r.multiKeyBackground,(0,i.aw)(t,{x:e,y:p,w:c,h:l,radius:a}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),(0,i.aw)(t,{x:n,y:p+1,w:c-2,h:l-2,radius:a}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(e,p,c,l),t.strokeRect(e,p,c,l),t.fillStyle=s.backgroundColor,t.fillRect(n,p+1,c-2,l-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:o}=this,{bodySpacing:r,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=n,h=(0,i.a0)(n.bodyFont);let d=h.lineHeight,f=0;const p=(0,i.aA)(n.rtl,this.x,this.width),g=function(n){e.fillText(n,p.x(t.x+f),t.y+d/2),t.y+=d+r},m=p.textAlign(s);let b,y,x,v,w,_,k;for(e.textAlign=s,e.textBaseline="middle",e.font=h.string,t.x=ai(this,m,n),e.fillStyle=n.bodyColor,(0,i.F)(this.beforeBody,g),f=a&&"right"!==m?"center"===s?c/2+u:c+2+u:0,v=0,_=o.length;v<_;++v){for(b=o[v],y=this.labelTextColors[v],e.fillStyle=y,(0,i.F)(b.before,g),x=b.lines,a&&x.length&&(this._drawColorBox(e,t,v,p,n),d=Math.max(h.lineHeight,l)),w=0,k=x.length;w<k;++w)g(x[w]),d=h.lineHeight;(0,i.F)(b.after,g)}f=0,d=h.lineHeight,(0,i.F)(this.afterBody,g),t.y-=r}drawFooter(t,e,n){const o=this.footer,r=o.length;let s,a;if(r){const l=(0,i.aA)(n.rtl,this.x,this.width);for(t.x=ai(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=l.textAlign(n.footerAlign),e.textBaseline="middle",s=(0,i.a0)(n.footerFont),e.fillStyle=n.footerColor,e.font=s.string,a=0;a<r;++a)e.fillText(o[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+n.footerSpacing}}drawBackground(t,e,n,o){const{xAlign:r,yAlign:s}=this,{x:a,y:l}=t,{width:c,height:u}=n,{topLeft:h,topRight:d,bottomLeft:f,bottomRight:p}=(0,i.ay)(o.cornerRadius);e.fillStyle=o.backgroundColor,e.strokeStyle=o.borderColor,e.lineWidth=o.borderWidth,e.beginPath(),e.moveTo(a+h,l),"top"===s&&this.drawCaret(t,e,n,o),e.lineTo(a+c-d,l),e.quadraticCurveTo(a+c,l,a+c,l+d),"center"===s&&"right"===r&&this.drawCaret(t,e,n,o),e.lineTo(a+c,l+u-p),e.quadraticCurveTo(a+c,l+u,a+c-p,l+u),"bottom"===s&&this.drawCaret(t,e,n,o),e.lineTo(a+f,l+u),e.quadraticCurveTo(a,l+u,a,l+u-f),"center"===s&&"left"===r&&this.drawCaret(t,e,n,o),e.lineTo(a,l+h),e.quadraticCurveTo(a,l,a+h,l),e.closePath(),e.fill(),o.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const n=Gn[t.position].call(this,this._active,this._eventPosition);if(!n)return;const r=this._size=Kn(this,t),s=Object.assign({},n,this._size),a=ii(e,t,s),l=si(t,s,a,e);i._to===l.x&&o._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=r.width,this.height=r.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const o={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=(0,i.E)(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(r,t,o,e),(0,i.aB)(t,e.textDirection),r.y+=s.top,this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),(0,i.aD)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,o=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),r=!(0,i.ai)(n,o),s=this._positionChanged(o,e);(r||s)&&(this._active=o,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,r=this._active||[],s=this._getActiveElements(t,r,e,n),a=this._positionChanged(s,t),l=e||!(0,i.ai)(s,r)||a;return l&&(this._active=s,(o.enabled||o.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,n,i){const o=this.options;if("mouseout"===t.type)return[];if(!i)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const r=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,r=Gn[o.position].call(this,t,e);return!1!==r&&(n!==r.x||i!==r.y)}}var pi={id:"tooltip",_element:fi,positioners:Gn,afterInit(t,e,n){n&&(t.tooltip=new fi({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:hi},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const gi=(t,e,n,i)=>("string"===typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function mi(t,e,n,i){const o=t.indexOf(e);if(-1===o)return gi(t,e,n,i);const r=t.lastIndexOf(e);return o!==r?n:o}const bi=(t,e)=>null===t?null:(0,i.S)(Math.round(t),0,e);function yi(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class xi extends Kt{static id="category";static defaults={ticks:{callback:yi}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,i.k)(t))return null;const n=this.getLabels();return e=isFinite(e)&&n[e]===t?e:mi(n,t,(0,i.v)(e,t),this._addedLabels),bi(e,n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let r=t;r<=e;r++)i.push({value:r});return i}getLabelForValue(t){return yi.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!==typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function vi(t,e){const n=[],o=1e-14,{bounds:r,step:s,min:a,max:l,precision:c,count:u,maxTicks:h,maxDigits:d,includeBounds:f}=t,p=s||1,g=h-1,{min:m,max:b}=e,y=!(0,i.k)(a),x=!(0,i.k)(l),v=!(0,i.k)(u),w=(b-m)/(d+1);let _,k,M,S,D=(0,i.aI)((b-m)/g/p)*p;if(D<o&&!y&&!x)return[{value:m},{value:b}];S=Math.ceil(b/D)-Math.floor(m/D),S>g&&(D=(0,i.aI)(S*D/g/p)*p),(0,i.k)(c)||(_=Math.pow(10,c),D=Math.ceil(D*_)/_),"ticks"===r?(k=Math.floor(m/D)*D,M=Math.ceil(b/D)*D):(k=m,M=b),y&&x&&s&&(0,i.aJ)((l-a)/s,D/1e3)?(S=Math.round(Math.min((l-a)/D,h)),D=(l-a)/S,k=a,M=l):v?(k=y?a:k,M=x?l:M,S=u-1,D=(M-k)/S):(S=(M-k)/D,S=(0,i.aK)(S,Math.round(S),D/1e3)?Math.round(S):Math.ceil(S));const T=Math.max((0,i.aL)(D),(0,i.aL)(k));_=Math.pow(10,(0,i.k)(c)?T:c),k=Math.round(k*_)/_,M=Math.round(M*_)/_;let C=0;for(y&&(f&&k!==a?(n.push({value:a}),k<a&&C++,(0,i.aK)(Math.round((k+C*D)*_)/_,a,wi(a,w,t))&&C++):k<a&&C++);C<S;++C){const t=Math.round((k+C*D)*_)/_;if(x&&t>l)break;n.push({value:t})}return x&&f&&M!==l?n.length&&(0,i.aK)(n[n.length-1].value,l,wi(l,w,t))?n[n.length-1].value=l:n.push({value:l}):x&&M!==l||n.push({value:M}),n}function wi(t,e,{horizontal:n,minRotation:o}){const r=(0,i.t)(o),s=(n?Math.sin(r):Math.cos(r))||.001,a=.75*e*(""+t).length;return Math.min(e/s,a)}class _i extends Kt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,i.k)(t)||("number"===typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:o,max:r}=this;const s=t=>o=e?o:t,a=t=>r=n?r:t;if(t){const t=(0,i.s)(o),e=(0,i.s)(r);t<0&&e<0?a(0):t>0&&e>0&&s(0)}if(o===r){let e=0===r?1:Math.abs(.05*r);a(r+e),t||s(o-e)}this.min=o,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const o={maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},r=this._range||this,s=vi(o,r);return"ticks"===t.bounds&&(0,i.aH)(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return(0,i.o)(t,this.chart.options.locale,this.options.ticks.format)}}class ki extends _i{static id="linear";static defaults={ticks:{callback:i.aM.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,i.g)(t)?t:0,this.max=(0,i.g)(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=(0,i.t)(this.options.ticks.minRotation),o=(t?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/o))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}i.aM.formatters.logarithmic;i.aM.formatters.numeric;const Mi={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Si=Object.keys(Mi);function Di(t,e){return t-e}function Ti(t,e){if((0,i.k)(e))return null;const n=t._adapter,{parser:o,round:r,isoWeekday:s}=t._parseOpts;let a=e;return"function"===typeof o&&(a=o(a)),(0,i.g)(a)||(a="string"===typeof o?n.parse(a,o):n.parse(a)),null===a?null:(r&&(a="week"!==r||!(0,i.x)(s)&&!0!==s?n.startOf(a,r):n.startOf(a,"isoWeek",s)),+a)}function Ci(t,e,n,i){const o=Si.length;for(let r=Si.indexOf(t);r<o-1;++r){const t=Mi[Si[r]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return Si[r]}return Si[o-1]}function Pi(t,e,n,i,o){for(let r=Si.length-1;r>=Si.indexOf(n);r--){const n=Si[r];if(Mi[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return Si[n?Si.indexOf(n):0]}function Oi(t){for(let e=Si.indexOf(t)+1,n=Si.length;e<n;++e)if(Mi[Si[e]].common)return Si[e]}function Ai(t,e,n){if(n){if(n.length){const{lo:o,hi:r}=(0,i.aQ)(n,e),s=n[o]>=e?n[o]:n[r];t[s]=!0}}else t[e]=!0}function Ei(t,e,n,i){const o=t._adapter,r=+o.startOf(e[0].value,i),s=e[e.length-1].value;let a,l;for(a=r;a<=s;a=+o.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}function Ii(t,e,n){const i=[],o={},r=e.length;let s,a;for(s=0;s<r;++s)a=e[s],o[a]=s,i.push({value:a,major:!1});return 0!==r&&n?Ei(t,i,o,n):i}class Ri extends Kt{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const n=t.time||(t.time={}),o=this._adapter=new j._date(t.adapters.date);o.init(e),(0,i.ab)(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Ti(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:o,max:r,minDefined:s,maxDefined:a}=this.getUserBounds();function l(t){s||isNaN(t.min)||(o=Math.min(o,t.min)),a||isNaN(t.max)||(r=Math.max(r,t.max))}s&&a||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),o=(0,i.g)(o)&&!isNaN(o)?o:+e.startOf(Date.now(),n),r=(0,i.g)(r)&&!isNaN(r)?r:+e.endOf(Date.now(),n)+1,this.min=Math.min(o,r-1),this.max=Math.max(o+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,o="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const r=this.min,s=this.max,a=(0,i.aP)(o,r,s);return this._unit=e.unit||(n.autoSkip?Ci(e.minUnit,this.min,this.max,this._getLabelCapacity(r)):Pi(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?Oi(this._unit):void 0,this.initOffsets(o),t.reverse&&a.reverse(),Ii(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,n,o=0,r=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),o=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),r=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;o=(0,i.S)(o,0,s),r=(0,i.S)(r,0,s),this._offsets={start:o,end:r,factor:1/(o+1+r)}}_generate(){const t=this._adapter,e=this.min,n=this.max,o=this.options,r=o.time,s=r.unit||Ci(r.minUnit,e,n,this._getLabelCapacity(e)),a=(0,i.v)(o.ticks.stepSize,1),l="week"===s&&r.isoWeekday,c=(0,i.x)(l)||!0===l,u={};let h,d,f=e;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":s),t.diff(n,e,s)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+s);const p="data"===o.ticks.source&&this.getDataTimestamps();for(h=f,d=0;h<n;h=+t.add(h,a,s),d++)Ai(u,h,p);return h!==n&&"ticks"!==o.bounds&&1!==d||Ai(u,h,p),Object.keys(u).sort(Di).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}format(t,e){const n=this.options,i=n.time.displayFormats,o=this._unit,r=e||i[o];return this._adapter.format(t,r)}_tickFormatFunction(t,e,n,o){const r=this.options,s=r.ticks.callback;if(s)return(0,i.Q)(s,[t,e,n],this);const a=r.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],h=c&&a[c],d=n[e],f=c&&h&&d&&d.major;return this._adapter.format(t,o||(f?h:u))}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,o=(0,i.t)(this.isHorizontal()?e.maxRotation:e.minRotation),r=Math.cos(o),s=Math.sin(o),a=this._resolveTickFontOptions(0).size;return{w:n*r+a*s,h:n*s+a*r}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,Ii(this,[t],this._majorUnit),i),r=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return s>0?s:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(Ti(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return(0,i._)(t.sort(Di))}}Ri.defaults},411:function(t,e,n){
|
|
/*!
|
|
* @kurkle/color v0.3.4
|
|
* https://github.com/kurkle/color#readme
|
|
* (c) 2024 Jukka Kurkela
|
|
* Released under the MIT License
|
|
*/
|
|
function i(t){return t+.5|0}n.d(e,{$:function(){return $e},A:function(){return Qt},B:function(){return Jt},C:function(){return Ye},D:function(){return Bt},E:function(){return an},F:function(){return rt},G:function(){return ti},H:function(){return Tt},I:function(){return Yn},J:function(){return ii},K:function(){return ni},L:function(){return re},M:function(){return Bn},N:function(){return Rt},O:function(){return tt},P:function(){return _t},Q:function(){return ot},R:function(){return un},S:function(){return qt},T:function(){return kt},U:function(){return Nt},V:function(){return je},W:function(){return Ut},X:function(){return We},Y:function(){return Ve},Z:function(){return Je},_:function(){return ie},a:function(){return cn},a0:function(){return ln},a1:function(){return ae},a2:function(){return le},a3:function(){return Oe},a4:function(){return ut},a5:function(){return bt},a6:function(){return Ae},a7:function(){return xt},a8:function(){return fn},a9:function(){return dn},aA:function(){return ci},aB:function(){return ui},aC:function(){return ce},aD:function(){return hi},aE:function(){return Be},aF:function(){return Yt},aG:function(){return U},aH:function(){return zt},aI:function(){return It},aJ:function(){return jt},aK:function(){return Et},aL:function(){return Ht},aM:function(){return Ce},aN:function(){return Ot},aO:function(){return ze},aP:function(){return Kt},aQ:function(){return Zt},aa:function(){return pn},ab:function(){return ht},ac:function(){return G},ad:function(){return se},ae:function(){return ei},af:function(){return Ne},ag:function(){return vt},ah:function(){return Di},ai:function(){return st},aj:function(){return wt},ak:function(){return Gt},al:function(){return $t},am:function(){return on},an:function(){return Hn},ao:function(){return xi},ap:function(){return mi},aq:function(){return ri},ar:function(){return si},as:function(){return oi},at:function(){return Xe},au:function(){return qe},av:function(){return He},aw:function(){return Qe},ax:function(){return rn},ay:function(){return sn},az:function(){return gi},b:function(){return J},b4:function(){return Dt},b5:function(){return Ct},b6:function(){return Pt},c:function(){return be},d:function(){return Le},e:function(){return ge},f:function(){return mt},g:function(){return K},h:function(){return yt},i:function(){return Q},j:function(){return hn},k:function(){return Z},l:function(){return ee},m:function(){return nt},n:function(){return it},o:function(){return Se},p:function(){return Xt},q:function(){return ue},r:function(){return oe},s:function(){return At},t:function(){return Wt},u:function(){return ne},v:function(){return et},w:function(){return he},x:function(){return Ft},y:function(){return An},z:function(){return Jn}});const o=(t,e,n)=>Math.max(Math.min(t,n),e);function r(t){return o(i(2.55*t),0,255)}function s(t){return o(i(255*t),0,255)}function a(t){return o(i(t/2.55)/100,0,1)}function l(t){return o(i(100*t),0,100)}const 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},u=[..."0123456789ABCDEF"],h=t=>u[15&t],d=t=>u[(240&t)>>4]+u[15&t],f=t=>(240&t)>>4===(15&t),p=t=>f(t.r)&&f(t.g)&&f(t.b)&&f(t.a);function g(t){var e,n=t.length;return"#"===t[0]&&(4===n||5===n?e={r:255&17*c[t[1]],g:255&17*c[t[2]],b:255&17*c[t[3]],a:5===n?17*c[t[4]]:255}:7!==n&&9!==n||(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===n?c[t[7]]<<4|c[t[8]]:255})),e}const m=(t,e)=>t<255?e(t):"";function b(t){var e=p(t)?h:d;return t?"#"+e(t.r)+e(t.g)+e(t.b)+m(t.a,e):void 0}const y=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function x(t,e,n){const i=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function v(t,e,n){const i=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function w(t,e,n){const i=x(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function _(t,e,n,i,o){return t===o?(e-n)/i+(e<n?6:0):e===o?(n-t)/i+2:(t-e)/i+4}function k(t){const e=255,n=t.r/e,i=t.g/e,o=t.b/e,r=Math.max(n,i,o),s=Math.min(n,i,o),a=(r+s)/2;let l,c,u;return r!==s&&(u=r-s,c=a>.5?u/(2-r-s):u/(r+s),l=_(n,i,o,u,r),l=60*l+.5),[0|l,c||0,a]}function M(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(s)}function S(t,e,n){return M(x,t,e,n)}function D(t,e,n){return M(w,t,e,n)}function T(t,e,n){return M(v,t,e,n)}function C(t){return(t%360+360)%360}function P(t){const e=y.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?r(+e[5]):s(+e[5]));const o=C(+e[2]),a=+e[3]/100,l=+e[4]/100;return n="hwb"===e[1]?D(o,a,l):"hsv"===e[1]?T(o,a,l):S(o,a,l),{r:n[0],g:n[1],b:n[2],a:i}}function O(t,e){var n=k(t);n[0]=C(n[0]+e),n=S(n),t.r=n[0],t.g=n[1],t.b=n[2]}function A(t){if(!t)return;const e=k(t),n=e[0],i=l(e[1]),o=l(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${a(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}const E={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"},I={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",KocTate:"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"};function R(){const t={},e=Object.keys(I),n=Object.keys(E);let i,o,r,s,a;for(i=0;i<e.length;i++){for(s=a=e[i],o=0;o<n.length;o++)r=n[o],a=a.replace(r,E[r]);r=parseInt(I[s],16),t[a]=[r>>16&255,r>>8&255,255&r]}return t}let L;function F(t){L||(L=R(),L.transparent=[0,0,0,0]);const e=L[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const j=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function z(t){const e=j.exec(t);let n,i,s,a=255;if(e){if(e[7]!==n){const t=+e[7];a=e[8]?r(t):o(255*t,0,255)}return n=+e[1],i=+e[3],s=+e[5],n=255&(e[2]?r(n):o(n,0,255)),i=255&(e[4]?r(i):o(i,0,255)),s=255&(e[6]?r(s):o(s,0,255)),{r:n,g:i,b:s,a:a}}}function W(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${a(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const N=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,H=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function B(t,e,n){const i=H(a(t.r)),o=H(a(t.g)),r=H(a(t.b));return{r:s(N(i+n*(H(a(e.r))-i))),g:s(N(o+n*(H(a(e.g))-o))),b:s(N(r+n*(H(a(e.b))-r))),a:t.a+n*(e.a-t.a)}}function Y(t,e,n){if(t){let i=k(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=S(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function V(t,e){return t?Object.assign(e||{},t):t}function $(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=V(t,{r:0,g:0,b:0,a:1}),e.a=s(e.a)),e}function X(t){return"r"===t.charAt(0)?z(t):P(t)}class q{constructor(t){if(t instanceof q)return t;const e=typeof t;let n;"object"===e?n=$(t):"string"===e&&(n=g(t)||F(t)||X(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=V(this._rgb);return t&&(t.a=a(t.a)),t}set rgb(t){this._rgb=$(t)}rgbString(){return this._valid?W(this._rgb):void 0}hexString(){return this._valid?b(this._rgb):void 0}hslString(){return this._valid?A(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let o;const r=e===o?.5:e,s=2*r-1,a=n.a-i.a,l=((s*a===-1?s:(s+a)/(1+s*a))+1)/2;o=1-l,n.r=255&l*n.r+o*i.r+.5,n.g=255&l*n.g+o*i.g+.5,n.b=255&l*n.b+o*i.b+.5,n.a=r*n.a+(1-r)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=B(this._rgb,t._rgb,e)),this}clone(){return new q(this.rgb)}alpha(t){return this._rgb.a=s(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const 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){const e=this._rgb;return e.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Y(this._rgb,2,t),this}darken(t){return Y(this._rgb,2,-t),this}saturate(t){return Y(this._rgb,1,t),this}desaturate(t){return Y(this._rgb,1,-t),this}rotate(t){return O(this._rgb,t),this}}
|
|
/*!
|
|
* Chart.js v4.5.1
|
|
* https://www.chartjs.org
|
|
* (c) 2025 Chart.js Contributors
|
|
* Released under the MIT License
|
|
*/
|
|
function U(){}const G=(()=>{let t=0;return()=>t++})();function Z(t){return null===t||void 0===t}function J(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Q(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function K(t){return("number"===typeof t||t instanceof Number)&&isFinite(+t)}function tt(t,e){return K(t)?t:e}function et(t,e){return"undefined"===typeof t?e:t}const nt=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,it=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function ot(t,e,n){if(t&&"function"===typeof t.call)return t.apply(n,e)}function rt(t,e,n,i){let o,r,s;if(J(t))if(r=t.length,i)for(o=r-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<r;o++)e.call(n,t[o],o);else if(Q(t))for(s=Object.keys(t),r=s.length,o=0;o<r;o++)e.call(n,t[s[o]],s[o])}function st(t,e){let n,i,o,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(o=t[n],r=e[n],o.datasetIndex!==r.datasetIndex||o.index!==r.index)return!1;return!0}function at(t){if(J(t))return t.map(at);if(Q(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let o=0;for(;o<i;++o)e[n[o]]=at(t[n[o]]);return e}return t}function lt(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function ct(t,e,n,i){if(!lt(t))return;const o=e[t],r=n[t];Q(o)&&Q(r)?ut(o,r,i):e[t]=at(r)}function ut(t,e,n){const i=J(e)?e:[e],o=i.length;if(!Q(t))return t;n=n||{};const r=n.merger||ct;let s;for(let a=0;a<o;++a){if(s=i[a],!Q(s))continue;const e=Object.keys(s);for(let i=0,o=e.length;i<o;++i)r(e[i],t,s,n)}return t}function ht(t,e){return ut(t,e,{merger:dt})}function dt(t,e,n){if(!lt(t))return;const i=e[t],o=n[t];Q(i)&&Q(o)?ht(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=at(o))}const ft={"":t=>t,x:t=>t.x,y:t=>t.y};function pt(t){const e=t.split("."),n=[];let i="";for(const o of e)i+=o,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function gt(t){const e=pt(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}function mt(t,e){const n=ft[e]||(ft[e]=gt(e));return n(t)}function bt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const yt=t=>"undefined"!==typeof t,xt=t=>"function"===typeof t,vt=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function wt(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const _t=Math.PI,kt=2*_t,Mt=kt+_t,St=Number.POSITIVE_INFINITY,Dt=_t/180,Tt=_t/2,Ct=_t/4,Pt=2*_t/3,Ot=Math.log10,At=Math.sign;function Et(t,e,n){return Math.abs(t-e)<n}function It(t){const e=Math.round(t);t=Et(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Ot(t))),i=t/n,o=i<=1?1:i<=2?2:i<=5?5:10;return o*n}function Rt(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}function Lt(t){return"symbol"===typeof t||"object"===typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function Ft(t){return!Lt(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function jt(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function zt(t,e,n){let i,o,r;for(i=0,o=t.length;i<o;i++)r=t[i][n],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function Wt(t){return t*(_t/180)}function Nt(t){return t*(180/_t)}function Ht(t){if(!K(t))return;let e=1,n=0;while(Math.round(t*e)/e!==t)e*=10,n++;return n}function Bt(t,e){const n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i);let r=Math.atan2(i,n);return r<-.5*_t&&(r+=kt),{angle:r,distance:o}}function Yt(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Vt(t,e){return(t-e+Mt)%kt-_t}function $t(t){return(t%kt+kt)%kt}function Xt(t,e,n,i){const o=$t(t),r=$t(e),s=$t(n),a=$t(r-o),l=$t(s-o),c=$t(o-r),u=$t(o-s);return o===r||o===s||i&&r===s||a>l&&c<u}function qt(t,e,n){return Math.max(e,Math.min(n,t))}function Ut(t){return qt(t,-32768,32767)}function Gt(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Zt(t,e,n){n=n||(n=>t[n]<e);let i,o=t.length-1,r=0;while(o-r>1)i=r+o>>1,n(i)?r=i:o=i;return{lo:r,hi:o}}const Jt=(t,e,n,i)=>Zt(t,n,i?i=>{const o=t[i][e];return o<n||o===n&&t[i+1][e]===n}:i=>t[i][e]<n),Qt=(t,e,n)=>Zt(t,n,(i=>t[i][e]>=n));function Kt(t,e,n){let i=0,o=t.length;while(i<o&&t[i]<e)i++;while(o>i&&t[o-1]>n)o--;return i>0||o<t.length?t.slice(i,o):t}const te=["push","pop","shift","splice","unshift"];function ee(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),te.forEach((e=>{const n="_onData"+bt(e),i=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const o=i.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"===typeof t[n]&&t[n](...e)})),o}})})))}function ne(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,o=i.indexOf(e);-1!==o&&i.splice(o,1),i.length>0||(te.forEach((e=>{delete t[e]})),delete t._chartjs)}function ie(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const oe=function(){return"undefined"===typeof window?function(t){return t()}:window.requestAnimationFrame}();function re(t,e){let n=[],i=!1;return function(...o){n=o,i||(i=!0,oe.call(window,(()=>{i=!1,t.apply(e,n)})))}}function se(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const ae=t=>"start"===t?"left":"end"===t?"right":"center",le=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,ce=(t,e,n,i)=>{const o=i?"left":"right";return t===o?n:"center"===t?(e+n)/2:e};function ue(t,e,n){const i=e.length;let o=0,r=i;if(t._sorted){const{iScale:s,vScale:a,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,u=s.axis,{min:h,max:d,minDefined:f,maxDefined:p}=s.getUserBounds();if(f){if(o=Math.min(Jt(l,u,h).lo,n?i:Jt(e,u,s.getPixelForValue(h)).lo),c){const t=l.slice(0,o+1).reverse().findIndex((t=>!Z(t[a.axis])));o-=Math.max(0,t)}o=qt(o,0,i-1)}if(p){let t=Math.max(Jt(l,s.axis,d,!0).hi+1,n?0:Jt(e,u,s.getPixelForValue(d),!0).hi+1);if(c){const e=l.slice(t-1).findIndex((t=>!Z(t[a.axis])));t+=Math.max(0,e)}r=qt(t,o,i)-o}else r=i-o}return{start:o,count:r}}function he(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=o,!0;const r=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,o),r}const de=t=>0===t||1===t,fe=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*kt/n),pe=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*kt/n)+1,ge={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=>1-Math.cos(t*Tt),easeOutSine:t=>Math.sin(t*Tt),easeInOutSine:t=>-.5*(Math.cos(_t*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>de(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),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=>de(t)?t:fe(t,.075,.3),easeOutElastic:t=>de(t)?t:pe(t,.075,.3),easeInOutElastic(t){const e=.1125,n=.45;return de(t)?t:t<.5?.5*fe(2*t,e,n):.5+.5*pe(2*t-1,e,n)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-ge.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*ge.easeInBounce(2*t):.5*ge.easeOutBounce(2*t-1)+.5};function me(t){if(t&&"object"===typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function be(t){return me(t)?t:new q(t)}function ye(t){return me(t)?t:new q(t).saturate(.5).darken(.1).hexString()}const xe=["x","y","borderWidth","radius","tension"],ve=["color","borderColor","backgroundColor"];function we(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:ve},numbers:{type:"number",properties:xe}}),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 _e(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const ke=new Map;function Me(t,e){e=e||{};const n=t+JSON.stringify(e);let i=ke.get(n);return i||(i=new Intl.NumberFormat(t,e),ke.set(n,i)),i}function Se(t,e,n){return Me(e,n).format(t)}const De={values(t){return J(t)?t:""+t},numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,r=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),r=Te(t,n)}const s=Ot(Math.abs(r)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Se(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(Ot(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?De.numeric.call(this,t,e,n):""}};function Te(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var Ce={formatters:De};function Pe(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:Ce.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})}const Oe=Object.create(null),Ae=Object.create(null);function Ee(t,e){if(!e)return t;const n=e.split(".");for(let i=0,o=n.length;i<o;++i){const e=n[i];t=t[e]||(t[e]=Object.create(null))}return t}function Ie(t,e,n){return"string"===typeof e?ut(Ee(t,e),n):ut(Ee(t,""),e)}class Re{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={},this.hoverBackgroundColor=(t,e)=>ye(e.backgroundColor),this.hoverBorderColor=(t,e)=>ye(e.borderColor),this.hoverColor=(t,e)=>ye(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 Ie(this,t,e)}get(t){return Ee(this,t)}describe(t,e){return Ie(Ae,t,e)}override(t,e){return Ie(Oe,t,e)}route(t,e,n,i){const o=Ee(this,t),r=Ee(this,n),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[s],e=r[i];return Q(t)?Object.assign({},e,t):et(t,e)},set(t){this[s]=t}}})}apply(t){t.forEach((t=>t(this)))}}var Le=new Re({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[we,_e,Pe]);function Fe(t){return!t||Z(t.size)||Z(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function je(t,e,n,i,o){let r=e[o];return r||(r=e[o]=t.measureText(o).width,n.push(o)),r>i&&(i=r),i}function ze(t,e,n,i){i=i||{};let o=i.data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},r=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let s=0;const a=n.length;let l,c,u,h,d;for(l=0;l<a;l++)if(h=n[l],void 0===h||null===h||J(h)){if(J(h))for(c=0,u=h.length;c<u;c++)d=h[c],void 0===d||null===d||J(d)||(s=je(t,o,r,s,d))}else s=je(t,o,r,s,h);t.restore();const f=r.length/2;if(f>n.length){for(l=0;l<f;l++)delete o[r[l]];r.splice(0,f)}return s}function We(t,e,n){const i=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function Ne(t,e){(e||t)&&(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function He(t,e,n,i){Be(t,e,n,i,null)}function Be(t,e,n,i,o){let r,s,a,l,c,u,h,d;const f=e.pointStyle,p=e.rotation,g=e.radius;let m=(p||0)*Dt;if(f&&"object"===typeof f&&(r=f.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return t.save(),t.translate(n,i),t.rotate(m),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),f){default:o?t.ellipse(n,i,o/2,g,0,0,kt):t.arc(n,i,g,0,kt),t.closePath();break;case"triangle":u=o?o/2:g,t.moveTo(n+Math.sin(m)*u,i-Math.cos(m)*g),m+=Pt,t.lineTo(n+Math.sin(m)*u,i-Math.cos(m)*g),m+=Pt,t.lineTo(n+Math.sin(m)*u,i-Math.cos(m)*g),t.closePath();break;case"rectRounded":c=.516*g,l=g-c,s=Math.cos(m+Ct)*l,h=Math.cos(m+Ct)*(o?o/2-c:l),a=Math.sin(m+Ct)*l,d=Math.sin(m+Ct)*(o?o/2-c:l),t.arc(n-h,i-a,c,m-_t,m-Tt),t.arc(n+d,i-s,c,m-Tt,m),t.arc(n+h,i+a,c,m,m+Tt),t.arc(n-d,i+s,c,m+Tt,m+_t),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,u=o?o/2:l,t.rect(n-u,i-l,2*u,2*l);break}m+=Ct;case"rectRot":h=Math.cos(m)*(o?o/2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(o?o/2:g),t.moveTo(n-h,i-a),t.lineTo(n+d,i-s),t.lineTo(n+h,i+a),t.lineTo(n-d,i+s),t.closePath();break;case"crossRot":m+=Ct;case"cross":h=Math.cos(m)*(o?o/2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(o?o/2:g),t.moveTo(n-h,i-a),t.lineTo(n+h,i+a),t.moveTo(n+d,i-s),t.lineTo(n-d,i+s);break;case"star":h=Math.cos(m)*(o?o/2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(o?o/2:g),t.moveTo(n-h,i-a),t.lineTo(n+h,i+a),t.moveTo(n+d,i-s),t.lineTo(n-d,i+s),m+=Ct,h=Math.cos(m)*(o?o/2:g),s=Math.cos(m)*g,a=Math.sin(m)*g,d=Math.sin(m)*(o?o/2:g),t.moveTo(n-h,i-a),t.lineTo(n+h,i+a),t.moveTo(n+d,i-s),t.lineTo(n-d,i+s);break;case"line":s=o?o/2:Math.cos(m)*g,a=Math.sin(m)*g,t.moveTo(n-s,i-a),t.lineTo(n+s,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(m)*(o?o/2:g),i+Math.sin(m)*g);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Ye(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Ve(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function $e(t){t.restore()}function Xe(t,e,n,i,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===o!==!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function qe(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function Ue(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Z(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function Ge(t,e,n,i,o){if(o.strikethrough||o.underline){const r=t.measureText(i),s=e-r.actualBoundingBoxLeft,a=e+r.actualBoundingBoxRight,l=n-r.actualBoundingBoxAscent,c=n+r.actualBoundingBoxDescent,u=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(s,u),t.lineTo(a,u),t.stroke()}}function Ze(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Je(t,e,n,i,o,r={}){const s=J(e)?e:[e],a=r.strokeWidth>0&&""!==r.strokeColor;let l,c;for(t.save(),t.font=o.string,Ue(t,r),l=0;l<s.length;++l)c=s[l],r.backdrop&&Ze(t,r.backdrop),a&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),Z(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(c,n,i,r.maxWidth)),t.fillText(c,n,i,r.maxWidth),Ge(t,n,i,c,r),i+=Number(o.lineHeight);t.restore()}function Qe(t,e){const{x:n,y:i,w:o,h:r,radius:s}=e;t.arc(n+s.topLeft,i+s.topLeft,s.topLeft,1.5*_t,_t,!0),t.lineTo(n,i+r-s.bottomLeft),t.arc(n+s.bottomLeft,i+r-s.bottomLeft,s.bottomLeft,_t,Tt,!0),t.lineTo(n+o-s.bottomRight,i+r),t.arc(n+o-s.bottomRight,i+r-s.bottomRight,s.bottomRight,Tt,0,!0),t.lineTo(n+o,i+s.topRight),t.arc(n+o-s.topRight,i+s.topRight,s.topRight,0,-Tt,!0),t.lineTo(n+s.topLeft,i)}const Ke=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,tn=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function en(t,e){const n=(""+t).match(Ke);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const nn=t=>+t||0;function on(t,e){const n={},i=Q(e),o=i?Object.keys(e):e,r=Q(t)?i?n=>et(t[n],t[e[n]]):e=>t[e]:()=>t;for(const s of o)n[s]=nn(r(s));return n}function rn(t){return on(t,{top:"y",right:"x",bottom:"y",left:"x"})}function sn(t){return on(t,["topLeft","topRight","bottomLeft","bottomRight"])}function an(t){const e=rn(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ln(t,e){t=t||{},e=e||Le.font;let n=et(t.size,e.size);"string"===typeof n&&(n=parseInt(n,10));let i=et(t.style,e.style);i&&!(""+i).match(tn)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const o={family:et(t.family,e.family),lineHeight:en(et(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:et(t.weight,e.weight),string:""};return o.string=Fe(o),o}function cn(t,e,n,i){let o,r,s,a=!0;for(o=0,r=t.length;o<r;++o)if(s=t[o],void 0!==s&&(void 0!==e&&"function"===typeof s&&(s=s(e),a=!1),void 0!==n&&J(s)&&(s=s[n%s.length],a=!1),void 0!==s))return i&&!a&&(i.cacheable=!1),s}function un(t,e,n){const{min:i,max:o}=t,r=it(e,(o-i)/2),s=(t,e)=>n&&0===t?0:t+e;return{min:s(i,-Math.abs(r)),max:s(o,r)}}function hn(t,e){return Object.assign(Object.create(t),e)}function dn(t,e=[""],n,i,o=(()=>t[0])){const r=n||t;"undefined"===typeof i&&(i=Cn("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:i,_getTarget:o,override:n=>dn([n,...t],e,r,i)};return new Proxy(s,{deleteProperty(e,n){return delete e[n],delete e._keys,delete t[0][n],!0},get(n,i){return bn(n,i,(()=>Tn(i,e,t,n)))},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(t,e){return Pn(t).includes(e)},ownKeys(t){return Pn(t)},set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function fn(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:pn(t,i),setContext:e=>fn(t,e,n,i),override:o=>fn(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty(e,n){return delete e[n],delete t[n],!0},get(t,e,n){return bn(t,e,(()=>yn(t,e,n)))},getOwnPropertyDescriptor(e,n){return e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(e,n){return Reflect.has(t,n)},ownKeys(){return Reflect.ownKeys(t)},set(e,n,i){return t[n]=i,delete e[n],!0}})}function pn(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:xt(n)?n:()=>n,isIndexable:xt(i)?i:()=>i}}const gn=(t,e)=>t?t+bt(e):e,mn=(t,e)=>Q(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function bn(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const i=n();return t[e]=i,i}function yn(t,e,n){const{_proxy:i,_context:o,_subProxy:r,_descriptors:s}=t;let a=i[e];return xt(a)&&s.isScriptable(e)&&(a=xn(e,a,t,n)),J(a)&&a.length&&(a=vn(e,a,t,s.isIndexable)),mn(e,a)&&(a=fn(a,o,r&&r[e],s)),a}function xn(t,e,n,i){const{_proxy:o,_context:r,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(r,s||i);return a.delete(t),mn(t,l)&&(l=Mn(o._scopes,o,t,l)),l}function vn(t,e,n,i){const{_proxy:o,_context:r,_subProxy:s,_descriptors:a}=n;if("undefined"!==typeof r.index&&i(t))return e[r.index%e.length];if(Q(e[0])){const n=e,i=o._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=Mn(i,o,t,l);e.push(fn(n,r,s&&s[t],a))}}return e}function wn(t,e,n){return xt(t)?t(e,n):t}const _n=(t,e)=>!0===t?e:"string"===typeof t?mt(e,t):void 0;function kn(t,e,n,i,o){for(const r of e){const e=_n(n,r);if(e){t.add(e);const r=wn(e._fallback,n,o);if("undefined"!==typeof r&&r!==n&&r!==i)return r}else if(!1===e&&"undefined"!==typeof i&&n!==i)return null}return!1}function Mn(t,e,n,i){const o=e._rootScopes,r=wn(e._fallback,n,i),s=[...t,...o],a=new Set;a.add(i);let l=Sn(a,s,n,r||n,i);return null!==l&&(("undefined"===typeof r||r===n||(l=Sn(a,s,r,l,i),null!==l))&&dn(Array.from(a),[""],o,r,(()=>Dn(e,n,i))))}function Sn(t,e,n,i,o){while(n)n=kn(t,e,n,i,o);return n}function Dn(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];return J(o)&&Q(n)?n:o||{}}function Tn(t,e,n,i){let o;for(const r of e)if(o=Cn(gn(r,t),n),"undefined"!==typeof o)return mn(t,o)?Mn(n,i,t,o):o}function Cn(t,e){for(const n of e){if(!n)continue;const e=n[t];if("undefined"!==typeof e)return e}}function Pn(t){let e=t._keys;return e||(e=t._keys=On(t._scopes)),e}function On(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}function An(t,e,n,i){const{iScale:o}=t,{key:r="r"}=this._parsing,s=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=e[c],s[a]={r:o.parse(mt(u,r),c)};return s}const En=Number.EPSILON||1e-14,In=(t,e)=>e<t.length&&!t[e].skip&&t[e],Rn=t=>"x"===t?"y":"x";function Ln(t,e,n,i){const o=t.skip?e:t,r=e,s=n.skip?e:n,a=Yt(r,o),l=Yt(s,r);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const h=i*c,d=i*u;return{previous:{x:r.x-h*(s.x-o.x),y:r.y-h*(s.y-o.y)},next:{x:r.x+d*(s.x-o.x),y:r.y+d*(s.y-o.y)}}}function Fn(t,e,n){const i=t.length;let o,r,s,a,l,c=In(t,0);for(let u=0;u<i-1;++u)l=c,c=In(t,u+1),l&&c&&(Et(e[u],0,En)?n[u]=n[u+1]=0:(o=n[u]/e[u],r=n[u+1]/e[u],a=Math.pow(o,2)+Math.pow(r,2),a<=9||(s=3/Math.sqrt(a),n[u]=o*s*e[u],n[u+1]=r*s*e[u])))}function jn(t,e,n="x"){const i=Rn(n),o=t.length;let r,s,a,l=In(t,0);for(let c=0;c<o;++c){if(s=a,a=l,l=In(t,c+1),!a)continue;const o=a[n],u=a[i];s&&(r=(o-s[n])/3,a[`cp1${n}`]=o-r,a[`cp1${i}`]=u-r*e[c]),l&&(r=(l[n]-o)/3,a[`cp2${n}`]=o+r,a[`cp2${i}`]=u+r*e[c])}}function zn(t,e="x"){const n=Rn(e),i=t.length,o=Array(i).fill(0),r=Array(i);let s,a,l,c=In(t,0);for(s=0;s<i;++s)if(a=l,l=c,c=In(t,s+1),l){if(c){const t=c[e]-l[e];o[s]=0!==t?(c[n]-l[n])/t:0}r[s]=a?c?At(o[s-1])!==At(o[s])?0:(o[s-1]+o[s])/2:o[s-1]:o[s]}Fn(t,o,r),jn(t,r,e)}function Wn(t,e,n){return Math.max(Math.min(t,n),e)}function Nn(t,e){let n,i,o,r,s,a=Ye(t[0],e);for(n=0,i=t.length;n<i;++n)s=r,r=a,a=n<i-1&&Ye(t[n+1],e),r&&(o=t[n],s&&(o.cp1x=Wn(o.cp1x,e.left,e.right),o.cp1y=Wn(o.cp1y,e.top,e.bottom)),a&&(o.cp2x=Wn(o.cp2x,e.left,e.right),o.cp2y=Wn(o.cp2y,e.top,e.bottom)))}function Hn(t,e,n,i,o){let r,s,a,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)zn(t,o);else{let n=i?t[t.length-1]:t[0];for(r=0,s=t.length;r<s;++r)a=t[r],l=Ln(n,a,t[Math.min(r+1,s-(i?0:1))%s],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,n=a}e.capBezierPoints&&Nn(t,n)}function Bn(){return"undefined"!==typeof window&&"undefined"!==typeof document}function Yn(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Vn(t,e,n){let i;return"string"===typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const $n=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function Xn(t,e){return $n(t).getPropertyValue(e)}const qn=["top","right","bottom","left"];function Un(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const r=qn[o];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const Gn=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function Zn(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:r}=i;let s,a,l=!1;if(Gn(o,r,t.target))s=o,a=r;else{const t=e.getBoundingClientRect();s=i.clientX-t.left,a=i.clientY-t.top,l=!0}return{x:s,y:a,box:l}}function Jn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=$n(n),r="border-box"===o.boxSizing,s=Un(o,"padding"),a=Un(o,"border","width"),{x:l,y:c,box:u}=Zn(t,n),h=s.left+(u&&a.left),d=s.top+(u&&a.top);let{width:f,height:p}=e;return r&&(f-=s.width+a.width,p-=s.height+a.height),{x:Math.round((l-h)/f*n.width/i),y:Math.round((c-d)/p*n.height/i)}}function Qn(t,e,n){let i,o;if(void 0===e||void 0===n){const r=t&&Yn(t);if(r){const t=r.getBoundingClientRect(),s=$n(r),a=Un(s,"border","width"),l=Un(s,"padding");e=t.width-l.width-a.width,n=t.height-l.height-a.height,i=Vn(s.maxWidth,r,"clientWidth"),o=Vn(s.maxHeight,r,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||St,maxHeight:o||St}}const Kn=t=>Math.round(10*t)/10;function ti(t,e,n,i){const o=$n(t),r=Un(o,"margin"),s=Vn(o.maxWidth,t,"clientWidth")||St,a=Vn(o.maxHeight,t,"clientHeight")||St,l=Qn(t,e,n);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const t=Un(o,"border","width"),e=Un(o,"padding");c-=e.width+t.width,u-=e.height+t.height}c=Math.max(0,c-r.width),u=Math.max(0,i?c/i:u-r.height),c=Kn(Math.min(c,s,l.maxWidth)),u=Kn(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Kn(c/2));const h=void 0!==e||void 0!==n;return h&&i&&l.height&&u>l.height&&(u=l.height,c=Kn(Math.floor(u*i))),{width:c,height:u}}function ei(t,e,n){const i=e||1,o=Kn(t.height*i),r=Kn(t.width*i);t.height=Kn(t.height),t.width=Kn(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||s.height!==o||s.width!==r)&&(t.currentDevicePixelRatio=i,s.height=o,s.width=r,t.ctx.setTransform(i,0,0,i,0,0),!0)}const ni=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Bn()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(e){}return t}();function ii(t,e){const n=Xn(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function oi(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function ri(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function si(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},s=oi(t,o,n),a=oi(o,r,n),l=oi(r,e,n),c=oi(s,a,n),u=oi(a,l,n);return oi(c,u,n)}const ai=function(t,e){return{x(n){return t+t+e-n},setWidth(t){e=t},textAlign(t){return"center"===t?t:"right"===t?"left":"right"},xPlus(t,e){return t-e},leftForLtr(t,e){return t-e}}},li=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function ci(t,e,n){return t?ai(e,n):li()}function ui(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function hi(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function di(t){return"angle"===t?{between:Xt,compare:Vt,normalize:$t}:{between:Gt,compare:(t,e)=>t-e,normalize:t=>t}}function fi({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n===0,style:o}}function pi(t,e,n){const{property:i,start:o,end:r}=n,{between:s,normalize:a}=di(i),l=e.length;let c,u,{start:h,end:d,loop:f}=t;if(f){for(h+=l,d+=l,c=0,u=l;c<u;++c){if(!s(a(e[h%l][i]),o,r))break;h--,d--}h%=l,d%=l}return d<h&&(d+=l),{start:h,end:d,loop:f,style:t.style}}function gi(t,e,n){if(!n)return[t];const{property:i,start:o,end:r}=n,s=e.length,{compare:a,between:l,normalize:c}=di(i),{start:u,end:h,loop:d,style:f}=pi(t,e,n),p=[];let g,m,b,y=!1,x=null;const v=()=>l(o,b,g)&&0!==a(o,b),w=()=>0===a(r,g)||l(r,b,g),_=()=>y||v(),k=()=>!y||w();for(let M=u,S=u;M<=h;++M)m=e[M%s],m.skip||(g=c(m[i]),g!==b&&(y=l(g,o,r),null===x&&_()&&(x=0===a(g,o)?M:S),null!==x&&k()&&(p.push(fi({start:x,end:M,loop:d,count:s,style:f})),x=null),S=M,b=g));return null!==x&&p.push(fi({start:x,end:h,loop:d,count:s,style:f})),p}function mi(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const r=gi(i[o],t.points,e);r.length&&n.push(...r)}return n}function bi(t,e,n,i){let o=0,r=e-1;if(n&&!i)while(o<e&&!t[o].skip)o++;while(o<e&&t[o].skip)o++;o%=e,n&&(r+=o);while(r>o&&t[r%e].skip)r--;return r%=e,{start:o,end:r}}function yi(t,e,n,i){const o=t.length,r=[];let s,a=e,l=t[e];for(s=e+1;s<=n;++s){const n=t[s%o];n.skip||n.stop?l.skip||(i=!1,r.push({start:e%o,end:(s-1)%o,loop:i}),e=a=n.stop?s:null):(a=s,l.skip&&(e=s)),l=n}return null!==a&&r.push({start:e%o,end:a%o,loop:i}),r}function xi(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const r=!!t._loop,{start:s,end:a}=bi(n,o,r,i);if(!0===i)return vi(t,[{start:s,end:a,loop:r}],n,e);const l=a<s?a+o:a,c=!!t._fullLoop&&0===s&&a===o-1;return vi(t,yi(n,s,l,c),n,e)}function vi(t,e,n,i){return i&&i.setContext&&n?wi(t,e,n,i):e}function wi(t,e,n,i){const o=t._chart.getContext(),r=_i(t.options),{_datasetIndex:s,options:{spanGaps:a}}=t,l=n.length,c=[];let u=r,h=e[0].start,d=h;function f(t,e,i,o){const r=a?-1:1;if(t!==e){t+=l;while(n[t%l].skip)t-=r;while(n[e%l].skip)e+=r;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:i,style:o}),u=o,h=e%l)}}for(const p of e){h=a?h:p.start;let t,e=n[h%l];for(d=h+1;d<=p.end;d++){const r=n[d%l];t=_i(i.setContext(hn(o,{type:"segment",p0:e,p1:r,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:s}))),ki(t,u)&&f(h,d-1,p.loop,u),e=r,u=t}h<d-1&&f(h,d-1,p.loop,u)}return c}function _i(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function ki(t,e){if(!e)return!1;const n=[],i=function(t,e){return me(e)?(n.includes(e)||n.push(e),n.indexOf(e)):e};return JSON.stringify(t,i)!==JSON.stringify(e,i)}function Mi(t,e,n){return t.options.clip?t[n]:e[n]}function Si(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:Mi(n,e,"left"),right:Mi(n,e,"right"),top:Mi(i,e,"top"),bottom:Mi(i,e,"bottom")}:e}function Di(t,e){const n=e._clip;if(n.disabled)return!1;const i=Si(e,t.chartArea);return{left:!1===n.left?0:i.left-(!0===n.left?0:n.left),right:!1===n.right?t.width:i.right+(!0===n.right?0:n.right),top:!1===n.top?0:i.top-(!0===n.top?0:n.top),bottom:!1===n.bottom?t.height:i.bottom+(!0===n.bottom?0:n.bottom)}}},210:function(t,e,n){var i=n(148);Math.pow(10,8);const o=6048e5,r=864e5,s=6e4,a=36e5,l=1e3,c=Symbol.for("constructDateFrom");function u(t,e){return"function"===typeof t?t(e):t&&"object"===typeof t&&c in t?t[c](e):t instanceof Date?new t.constructor(e):new Date(e)}function h(t,e){return u(e||t,t)}const d={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"}},f=(t,e,n)=>{let i;const o=d[t];return i="string"===typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function p(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth,i=t.formats[n]||t.formats[t.defaultWidth];return i}}const g={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},m={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},b={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},y={date:p({formats:g,defaultWidth:"full"}),time:p({formats:m,defaultWidth:"full"}),dateTime:p({formats:b,defaultWidth:"full"})},x={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},v=(t,e,n,i)=>x[t];function w(t){return(e,n)=>{const i=n?.context?String(n.context):"standalone";let o;if("formatting"===i&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,i=n?.width?String(n.width):e;o=t.formattingValues[i]||t.formattingValues[e]}else{const e=t.defaultWidth,i=n?.width?String(n.width):t.defaultWidth;o=t.values[i]||t.values[e]}const r=t.argumentCallback?t.argumentCallback(e):e;return o[r]}}const _={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},k={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},M={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"]},S={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","Friday","Saturday"]},D={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"}},T={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"}},C=(t,e)=>{const n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},P={ordinalNumber:C,era:w({values:_,defaultWidth:"wide"}),quarter:w({values:k,defaultWidth:"wide",argumentCallback:t=>t-1}),month:w({values:M,defaultWidth:"wide"}),day:w({values:S,defaultWidth:"wide"}),dayPeriod:w({values:D,defaultWidth:"wide",formattingValues:T,defaultFormattingWidth:"wide"})};function O(t){return(e,n={})=>{const i=n.width,o=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],r=e.match(o);if(!r)return null;const s=r[0],a=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?E(a,(t=>t.test(s))):A(a,(t=>t.test(s)));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(s.length);return{value:c,rest:u}}}function A(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function E(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function I(t){return(e,n={})=>{const i=e.match(t.matchPattern);if(!i)return null;const o=i[0],r=e.match(t.parsePattern);if(!r)return null;let s=t.valueCallback?t.valueCallback(r[0]):r[0];s=n.valueCallback?n.valueCallback(s):s;const a=e.slice(o.length);return{value:s,rest:a}}}const R=/^(\d+)(th|st|nd|rd)?/i,L=/\d+/i,F={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},j={any:[/^b/i,/^(a|c)/i]},z={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},W={any:[/1/i,/2/i,/3/i,/4/i]},N={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},H={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]},B={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},Y={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]},V={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},$={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}},X={ordinalNumber:I({matchPattern:R,parsePattern:L,valueCallback:t=>parseInt(t,10)}),era:O({matchPatterns:F,defaultMatchWidth:"wide",parsePatterns:j,defaultParseWidth:"any"}),quarter:O({matchPatterns:z,defaultMatchWidth:"wide",parsePatterns:W,defaultParseWidth:"any",valueCallback:t=>t+1}),month:O({matchPatterns:N,defaultMatchWidth:"wide",parsePatterns:H,defaultParseWidth:"any"}),day:O({matchPatterns:B,defaultMatchWidth:"wide",parsePatterns:Y,defaultParseWidth:"any"}),dayPeriod:O({matchPatterns:V,defaultMatchWidth:"any",parsePatterns:$,defaultParseWidth:"any"})},q={code:"en-US",formatDistance:f,formatLong:y,formatRelative:v,localize:P,match:X,options:{weekStartsOn:0,firstWeekContainsDate:1}};const U=(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"});case"PPPP":default:return e.date({width:"full"})}},G=(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"});case"pppp":default:return e.time({width:"full"})}},Z=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return U(t,e);let r;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;case"PPPP":default:r=e.dateTime({width:"full"});break}return r.replace("{{date}}",U(i,e)).replace("{{time}}",G(o,e))},J={p:G,P:Z},Q=/^D+$/,K=/^Y+$/,tt=["D","DD","YY","YYYY"];function et(t){return Q.test(t)}function nt(t){return K.test(t)}function it(t,e,n){const i=ot(t,e,n);if(console.warn(i),tt.includes(t))throw new RangeError(i)}function ot(t,e,n){const i="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}let rt={};function st(){return rt}function at(){return Object.assign({},st())}function lt(t,e){const n=ct(e)?new e(0):u(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function ct(t){return"function"===typeof t&&t.prototype?.constructor===t}const ut=10;class ht{subPriority=0;validate(t,e){return!0}}class dt extends ht{constructor(t,e,n,i,o){super(),this.value=t,this.validateValue=e,this.setValue=n,this.priority=i,o&&(this.subPriority=o)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,n){return this.setValue(t,e,this.value,n)}}class ft extends ht{priority=ut;subPriority=-1;constructor(t,e){super(),this.context=t||(t=>u(e,t))}set(t,e){return e.timestampIsSet?t:u(t,lt(t,this.context))}}class pt{run(t,e,n,i){const o=this.parse(t,e,n,i);return o?{setter:new dt(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,e,n){return!0}}class gt extends pt{priority=140;parse(t,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,e,n){return e.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const mt={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}/},bt={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 yt(t,e){return t?{value:e(t.value),rest:t.rest}:t}function xt(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function vt(t,e){const n=e.match(t);if(!n)return null;if("Z"===n[0])return{value:0,rest:e.slice(1)};const i="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,r=n[3]?parseInt(n[3],10):0,c=n[5]?parseInt(n[5],10):0;return{value:i*(o*a+r*s+c*l),rest:e.slice(n[0].length)}}function wt(t){return xt(mt.anyDigitsSigned,t)}function _t(t,e){switch(t){case 1:return xt(mt.singleDigit,e);case 2:return xt(mt.twoDigits,e);case 3:return xt(mt.threeDigits,e);case 4:return xt(mt.fourDigits,e);default:return xt(new RegExp("^\\d{1,"+t+"}"),e)}}function kt(t,e){switch(t){case 1:return xt(mt.singleDigitSigned,e);case 2:return xt(mt.twoDigitsSigned,e);case 3:return xt(mt.threeDigitsSigned,e);case 4:return xt(mt.fourDigitsSigned,e);default:return xt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Mt(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function St(t,e){const n=e>0,i=n?e:1-e;let o;if(i<=50)o=t||100;else{const e=i+50,n=100*Math.trunc(e/100),r=t>=e%100;o=t+n-(r?100:0)}return n?o:1-o}function Dt(t){return t%400===0||t%4===0&&t%100!==0}class Tt extends pt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,e,n){const i=t=>({year:t,isTwoDigitYear:"yy"===e});switch(e){case"y":return yt(_t(4,t),i);case"yo":return yt(n.ordinalNumber(t,{unit:"year"}),i);default:return yt(_t(e.length,t),i)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,n){const i=t.getFullYear();if(n.isTwoDigitYear){const e=St(n.year,i);return t.setFullYear(e,0,1),t.setHours(0,0,0,0),t}const o="era"in e&&1!==e.era?1-n.year:n.year;return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}}function Ct(t,e){const n=st(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=h(t,e?.in),r=o.getDay(),s=(r<i?7:0)+r-i;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function Pt(t,e){const n=h(t,e?.in),i=n.getFullYear(),o=st(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=u(e?.in||t,0);s.setFullYear(i+1,0,r),s.setHours(0,0,0,0);const a=Ct(s,e),l=u(e?.in||t,0);l.setFullYear(i,0,r),l.setHours(0,0,0,0);const c=Ct(l,e);return+n>=+a?i+1:+n>=+c?i:i-1}class Ot extends pt{priority=130;parse(t,e,n){const i=t=>({year:t,isTwoDigitYear:"YY"===e});switch(e){case"Y":return yt(_t(4,t),i);case"Yo":return yt(n.ordinalNumber(t,{unit:"year"}),i);default:return yt(_t(e.length,t),i)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,n,i){const o=Pt(t,i);if(n.isTwoDigitYear){const e=St(n.year,o);return t.setFullYear(e,0,i.firstWeekContainsDate),t.setHours(0,0,0,0),Ct(t,i)}const r="era"in e&&1!==e.era?1-n.year:n.year;return t.setFullYear(r,0,i.firstWeekContainsDate),t.setHours(0,0,0,0),Ct(t,i)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}function At(t,e){return Ct(t,{...e,weekStartsOn:1})}class Et extends pt{priority=130;parse(t,e){return kt("R"===e?4:e.length,t)}set(t,e,n){const i=u(t,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),At(i)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class It extends pt{priority=130;parse(t,e){return kt("u"===e?4:e.length,t)}set(t,e,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class Rt extends pt{priority=120;parse(t,e,n){switch(e){case"Q":case"QQ":return _t(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,n){return t.setMonth(3*(n-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class Lt extends pt{priority=120;parse(t,e,n){switch(e){case"q":case"qq":return _t(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,n){return t.setMonth(3*(n-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class Ft extends pt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,e,n){const i=t=>t-1;switch(e){case"M":return yt(xt(mt.month,t),i);case"MM":return yt(_t(2,t),i);case"Mo":return yt(n.ordinalNumber(t,{unit:"month"}),i);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}}class jt extends pt{priority=110;parse(t,e,n){const i=t=>t-1;switch(e){case"L":return yt(xt(mt.month,t),i);case"LL":return yt(_t(2,t),i);case"Lo":return yt(n.ordinalNumber(t,{unit:"month"}),i);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function zt(t,e){const n=st(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Pt(t,e),r=u(e?.in||t,0);r.setFullYear(o,0,i),r.setHours(0,0,0,0);const s=Ct(r,e);return s}function Wt(t,e){const n=h(t,e?.in),i=+Ct(n,e)-+zt(n,e);return Math.round(i/o)+1}function Nt(t,e,n){const i=h(t,n?.in),o=Wt(i,n)-e;return i.setDate(i.getDate()-7*o),h(i,n?.in)}class Ht extends pt{priority=100;parse(t,e,n){switch(e){case"w":return xt(mt.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return _t(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,n,i){return Ct(Nt(t,n,i),i)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function Bt(t,e){const n=h(t,e?.in),i=n.getFullYear(),o=u(n,0);o.setFullYear(i+1,0,4),o.setHours(0,0,0,0);const r=At(o),s=u(n,0);s.setFullYear(i,0,4),s.setHours(0,0,0,0);const a=At(s);return n.getTime()>=r.getTime()?i+1:n.getTime()>=a.getTime()?i:i-1}function Yt(t,e){const n=Bt(t,e),i=u(e?.in||t,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),At(i)}function Vt(t,e){const n=h(t,e?.in),i=+At(n)-+Yt(n);return Math.round(i/o)+1}function $t(t,e,n){const i=h(t,n?.in),o=Vt(i,n)-e;return i.setDate(i.getDate()-7*o),i}class Xt extends pt{priority=100;parse(t,e,n){switch(e){case"I":return xt(mt.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return _t(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,n){return At($t(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const qt=[31,28,31,30,31,30,31,31,30,31,30,31],Ut=[31,29,31,30,31,30,31,31,30,31,30,31];class Gt extends pt{priority=90;subPriority=1;parse(t,e,n){switch(e){case"d":return xt(mt.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return _t(e.length,t)}}validate(t,e){const n=t.getFullYear(),i=Dt(n),o=t.getMonth();return i?e>=1&&e<=Ut[o]:e>=1&&e<=qt[o]}set(t,e,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class Zt extends pt{priority=90;subpriority=1;parse(t,e,n){switch(e){case"D":case"DD":return xt(mt.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return _t(e.length,t)}}validate(t,e){const n=t.getFullYear(),i=Dt(n);return i?e>=1&&e<=366:e>=1&&e<=365}set(t,e,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function Jt(t,e,n){const i=h(t,n?.in);return isNaN(e)?u(n?.in||t,NaN):e?(i.setDate(i.getDate()+e),i):i}function Qt(t,e,n){const i=st(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,r=h(t,n?.in),s=r.getDay(),a=e%7,l=(a+7)%7,c=7-o,u=e<0||e>6?e-(s+c)%7:(l+c)%7-(s+c)%7;return Jt(r,u,n)}class Kt extends pt{priority=90;parse(t,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,i){return t=Qt(t,n,i),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class te extends pt{priority=90;parse(t,e,n,i){const o=t=>{const e=7*Math.floor((t-1)/7);return(t+i.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return yt(_t(e.length,t),o);case"eo":return yt(n.ordinalNumber(t,{unit:"day"}),o);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,i){return t=Qt(t,n,i),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class ee extends pt{priority=90;parse(t,e,n,i){const o=t=>{const e=7*Math.floor((t-1)/7);return(t+i.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return yt(_t(e.length,t),o);case"co":return yt(n.ordinalNumber(t,{unit:"day"}),o);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,i){return t=Qt(t,n,i),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function ne(t,e){const n=h(t,e?.in).getDay();return 0===n?7:n}function ie(t,e,n){const i=h(t,n?.in),o=ne(i,n),r=e-o;return Jt(i,r,n)}class oe extends pt{priority=90;parse(t,e,n){const i=t=>0===t?7:t;switch(e){case"i":case"ii":return _t(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return yt(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),i);case"iiiii":return yt(n.day(t,{width:"narrow",context:"formatting"}),i);case"iiiiii":return yt(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),i);case"iiii":default:return yt(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),i)}}validate(t,e){return e>=1&&e<=7}set(t,e,n){return t=ie(t,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class re extends pt{priority=80;parse(t,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(Mt(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class se extends pt{priority=80;parse(t,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(Mt(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class ae extends pt{priority=80;parse(t,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(Mt(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class le extends pt{priority=70;parse(t,e,n){switch(e){case"h":return xt(mt.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return _t(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,n){const i=t.getHours()>=12;return i&&n<12?t.setHours(n+12,0,0,0):i||12!==n?t.setHours(n,0,0,0):t.setHours(0,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class ce extends pt{priority=70;parse(t,e,n){switch(e){case"H":return xt(mt.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return _t(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class ue extends pt{priority=70;parse(t,e,n){switch(e){case"K":return xt(mt.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return _t(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,n){const i=t.getHours()>=12;return i&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class he extends pt{priority=70;parse(t,e,n){switch(e){case"k":return xt(mt.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return _t(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,n){const i=n<=24?n%24:n;return t.setHours(i,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class de extends pt{priority=60;parse(t,e,n){switch(e){case"m":return xt(mt.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return _t(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]}class fe extends pt{priority=50;parse(t,e,n){switch(e){case"s":return xt(mt.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return _t(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]}class pe extends pt{priority=30;parse(t,e){const n=t=>Math.trunc(t*Math.pow(10,3-e.length));return yt(_t(e.length,t),n)}set(t,e,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]}function ge(t){const e=h(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}class me extends pt{priority=10;parse(t,e){switch(e){case"X":return vt(bt.basicOptionalMinutes,t);case"XX":return vt(bt.basic,t);case"XXXX":return vt(bt.basicOptionalSeconds,t);case"XXXXX":return vt(bt.extendedOptionalSeconds,t);case"XXX":default:return vt(bt.extended,t)}}set(t,e,n){return e.timestampIsSet?t:u(t,t.getTime()-ge(t)-n)}incompatibleTokens=["t","T","x"]}class be extends pt{priority=10;parse(t,e){switch(e){case"x":return vt(bt.basicOptionalMinutes,t);case"xx":return vt(bt.basic,t);case"xxxx":return vt(bt.basicOptionalSeconds,t);case"xxxxx":return vt(bt.extendedOptionalSeconds,t);case"xxx":default:return vt(bt.extended,t)}}set(t,e,n){return e.timestampIsSet?t:u(t,t.getTime()-ge(t)-n)}incompatibleTokens=["t","T","X"]}class ye extends pt{priority=40;parse(t){return wt(t)}set(t,e,n){return[u(t,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"}class xe extends pt{priority=20;parse(t){return wt(t)}set(t,e,n){return[u(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"}const ve={G:new gt,y:new Tt,Y:new Ot,R:new Et,u:new It,Q:new Rt,q:new Lt,M:new Ft,L:new jt,w:new Ht,I:new Xt,d:new Gt,D:new Zt,E:new Kt,e:new te,c:new ee,i:new oe,a:new re,b:new se,B:new ae,h:new le,H:new ce,K:new ue,k:new he,m:new de,s:new fe,S:new pe,X:new me,x:new be,t:new ye,T:new xe},we=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ke=/^'([^]*?)'?$/,Me=/''/g,Se=/\S/,De=/[a-zA-Z]/;function Te(t,e,n,i){const o=()=>u(i?.in||n,NaN),r=at(),s=i?.locale??r.locale??q,a=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,l=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0;if(!e)return t?o():h(n,i?.in);const c={firstWeekContainsDate:a,weekStartsOn:l,locale:s},d=[new ft(i?.in,n)],f=e.match(_e).map((t=>{const e=t[0];if(e in J){const n=J[e];return n(t,s.formatLong)}return t})).join("").match(we),p=[];for(let u of f){!i?.useAdditionalWeekYearTokens&&nt(u)&&it(u,e,t),!i?.useAdditionalDayOfYearTokens&&et(u)&&it(u,e,t);const n=u[0],r=ve[n];if(r){const{incompatibleTokens:e}=r;if(Array.isArray(e)){const t=p.find((t=>e.includes(t.token)||t.token===n));if(t)throw new RangeError(`The format string mustn't contain \`${t.fullToken}\` and \`${u}\` at the same time`)}else if("*"===r.incompatibleTokens&&p.length>0)throw new RangeError(`The format string mustn't contain \`${u}\` and any other token at the same time`);p.push({token:n,fullToken:u});const i=r.run(t,u,s.match,c);if(!i)return o();d.push(i.setter),t=i.rest}else{if(n.match(De))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===u?u="'":"'"===n&&(u=Ce(u)),0!==t.indexOf(u))return o();t=t.slice(u.length)}}if(t.length>0&&Se.test(t))return o();const g=d.map((t=>t.priority)).sort(((t,e)=>e-t)).filter(((t,e,n)=>n.indexOf(t)===e)).map((t=>d.filter((e=>e.priority===t)).sort(((t,e)=>e.subPriority-t.subPriority)))).map((t=>t[0]));let m=h(n,i?.in);if(isNaN(+m))return o();const b={};for(const u of g){if(!u.validate(m,c))return o();const t=u.set(m,b,c);Array.isArray(t)?(m=t[0],Object.assign(b,t[1])):m=t}return m}function Ce(t){return t.match(ke)[1].replace(Me,"'")}function Pe(t,e){const n=()=>u(e?.in,NaN),i=e?.additionalDigits??2,o=Re(t);let r;if(o.date){const t=Le(o.date,i);r=Fe(t.restDateString,t.year)}if(!r||isNaN(+r))return n();const s=+r;let a,l=0;if(o.time&&(l=ze(o.time),isNaN(l)))return n();if(!o.timezone){const t=new Date(s+l),n=h(0,e?.in);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}return a=Ne(o.timezone),isNaN(a)?n():h(s+l+a,e?.in)}const Oe={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ae=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ee=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ie=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Re(t){const e={},n=t.split(Oe.dateTimeDelimiter);let i;if(n.length>2)return e;if(/:/.test(n[0])?i=n[0]:(e.date=n[0],i=n[1],Oe.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Oe.timeZoneDelimiter)[0],i=t.substr(e.date.length,t.length))),i){const t=Oe.timezone.exec(i);t?(e.time=i.replace(t[1],""),e.timezone=t[1]):e.time=i}return e}function Le(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),i=t.match(n);if(!i)return{year:NaN,restDateString:""};const o=i[1]?parseInt(i[1]):null,r=i[2]?parseInt(i[2]):null;return{year:null===r?o:100*r,restDateString:t.slice((i[1]||i[2]).length)}}function Fe(t,e){if(null===e)return new Date(NaN);const n=t.match(Ae);if(!n)return new Date(NaN);const i=!!n[4],o=je(n[1]),r=je(n[2])-1,s=je(n[3]),a=je(n[4]),l=je(n[5])-1;if(i)return Xe(e,a,l)?He(e,a,l):new Date(NaN);{const t=new Date(0);return Ve(e,r,s)&&$e(e,o)?(t.setUTCFullYear(e,r,Math.max(o,s)),t):new Date(NaN)}}function je(t){return t?parseInt(t):1}function ze(t){const e=t.match(Ee);if(!e)return NaN;const n=We(e[1]),i=We(e[2]),o=We(e[3]);return qe(n,i,o)?n*a+i*s+1e3*o:NaN}function We(t){return t&&parseFloat(t.replace(",","."))||0}function Ne(t){if("Z"===t)return 0;const e=t.match(Ie);if(!e)return 0;const n="+"===e[1]?-1:1,i=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return Ue(i,o)?n*(i*a+o*s):NaN}function He(t,e,n){const i=new Date(0);i.setUTCFullYear(t,0,4);const o=i.getUTCDay()||7,r=7*(e-1)+n+1-o;return i.setUTCDate(i.getUTCDate()+r),i}const Be=[31,null,31,30,31,30,31,31,30,31,30,31];function Ye(t){return t%400===0||t%4===0&&t%100!==0}function Ve(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(Be[e]||(Ye(t)?29:28))}function $e(t,e){return e>=1&&e<=(Ye(t)?366:365)}function Xe(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function qe(t,e,n){return 24===t?0===e&&0===n:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function Ue(t,e){return e>=0&&e<=59}function Ge(t){return t instanceof Date||"object"===typeof t&&"[object Date]"===Object.prototype.toString.call(t)}function Ze(t){return!(!Ge(t)&&"number"!==typeof t||isNaN(+h(t)))}function Je(t,...e){const n=u.bind(null,t||e.find((t=>"object"===typeof t)));return e.map(n)}function Qe(t,e){const n=h(t,e?.in);return n.setHours(0,0,0,0),n}function Ke(t,e,n){const[i,o]=Je(n?.in,t,e),s=Qe(i),a=Qe(o),l=+s-ge(s),c=+a-ge(a);return Math.round((l-c)/r)}function tn(t,e){const n=h(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function en(t,e){const n=h(t,e?.in),i=Ke(n,tn(n)),o=i+1;return o}function nn(t,e){const n=t<0?"-":"",i=Math.abs(t).toString().padStart(e,"0");return n+i}const on={y(t,e){const n=t.getFullYear(),i=n>0?n:1-n;return nn("yy"===e?i%100:i,e.length)},M(t,e){const n=t.getMonth();return"M"===e?String(n+1):nn(n+1,2)},d(t,e){return nn(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h(t,e){return nn(t.getHours()%12||12,e.length)},H(t,e){return nn(t.getHours(),e.length)},m(t,e){return nn(t.getMinutes(),e.length)},s(t,e){return nn(t.getSeconds(),e.length)},S(t,e){const n=e.length,i=t.getMilliseconds(),o=Math.trunc(i*Math.pow(10,n-3));return nn(o,e.length)}},rn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sn={G:function(t,e,n){const i=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(t,e,n){if("yo"===e){const e=t.getFullYear(),i=e>0?e:1-e;return n.ordinalNumber(i,{unit:"year"})}return on.y(t,e)},Y:function(t,e,n,i){const o=Pt(t,i),r=o>0?o:1-o;if("YY"===e){const t=r%100;return nn(t,2)}return"Yo"===e?n.ordinalNumber(r,{unit:"year"}):nn(r,e.length)},R:function(t,e){const n=Bt(t);return nn(n,e.length)},u:function(t,e){const n=t.getFullYear();return nn(n,e.length)},Q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return nn(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,n){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return nn(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,n){const i=t.getMonth();switch(e){case"M":case"MM":return on.M(t,e);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(t,e,n){const i=t.getMonth();switch(e){case"L":return String(i+1);case"LL":return nn(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,n,i){const o=Wt(t,i);return"wo"===e?n.ordinalNumber(o,{unit:"week"}):nn(o,e.length)},I:function(t,e,n){const i=Vt(t);return"Io"===e?n.ordinalNumber(i,{unit:"week"}):nn(i,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getDate(),{unit:"date"}):on.d(t,e)},D:function(t,e,n){const i=en(t);return"Do"===e?n.ordinalNumber(i,{unit:"dayOfYear"}):nn(i,e.length)},E:function(t,e,n){const i=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,n,i){const o=t.getDay(),r=(o-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return nn(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,n,i){const o=t.getDay(),r=(o-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return nn(r,e.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){const i=t.getDay(),o=0===i?7:i;switch(e){case"i":return String(o);case"ii":return nn(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours(),o=i/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,n){const i=t.getHours();let o;switch(o=12===i?rn.noon:0===i?rn.midnight:i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,n){const i=t.getHours();let o;switch(o=i>=17?rn.evening:i>=12?rn.afternoon:i>=4?rn.morning:rn.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),n.ordinalNumber(e,{unit:"hour"})}return on.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getHours(),{unit:"hour"}):on.H(t,e)},K:function(t,e,n){const i=t.getHours()%12;return"Ko"===e?n.ordinalNumber(i,{unit:"hour"}):nn(i,e.length)},k:function(t,e,n){let i=t.getHours();return 0===i&&(i=24),"ko"===e?n.ordinalNumber(i,{unit:"hour"}):nn(i,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):on.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getSeconds(),{unit:"second"}):on.s(t,e)},S:function(t,e){return on.S(t,e)},X:function(t,e,n){const i=t.getTimezoneOffset();if(0===i)return"Z";switch(e){case"X":return ln(i);case"XXXX":case"XX":return cn(i);case"XXXXX":case"XXX":default:return cn(i,":")}},x:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"x":return ln(i);case"xxxx":case"xx":return cn(i);case"xxxxx":case"xxx":default:return cn(i,":")}},O:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+an(i,":");case"OOOO":default:return"GMT"+cn(i,":")}},z:function(t,e,n){const i=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+an(i,":");case"zzzz":default:return"GMT"+cn(i,":")}},t:function(t,e,n){const i=Math.trunc(+t/1e3);return nn(i,e.length)},T:function(t,e,n){return nn(+t,e.length)}};function an(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),o=Math.trunc(i/60),r=i%60;return 0===r?n+String(o):n+String(o)+e+nn(r,2)}function ln(t,e){if(t%60===0){const e=t>0?"-":"+";return e+nn(Math.abs(t)/60,2)}return cn(t,e)}function cn(t,e=""){const n=t>0?"-":"+",i=Math.abs(t),o=nn(Math.trunc(i/60),2),r=nn(i%60,2);return n+o+e+r}const un=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,dn=/^'([^]*?)'?$/,fn=/''/g,pn=/[a-zA-Z]/;function gn(t,e,n){const i=st(),o=n?.locale??i.locale??q,r=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=h(t,n?.in);if(!Ze(a))throw new RangeError("Invalid time value");let l=e.match(hn).map((t=>{const e=t[0];if("p"===e||"P"===e){const n=J[e];return n(t,o.formatLong)}return t})).join("").match(un).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:mn(t)};if(sn[e])return{isToken:!0,value:t};if(e.match(pn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));const c={firstWeekContainsDate:r,weekStartsOn:s,locale:o};return l.map((i=>{if(!i.isToken)return i.value;const r=i.value;(!n?.useAdditionalWeekYearTokens&&nt(r)||!n?.useAdditionalDayOfYearTokens&&et(r))&&it(r,e,String(t));const s=sn[r[0]];return s(a,r,o.localize,c)})).join("")}function mn(t){const e=t.match(dn);return e?e[1].replace(fn,"'"):t}function bn(t,e,n){return u(n?.in||t,+h(t)+e)}function yn(t,e,n){return bn(t,1e3*e,n)}function xn(t,e,n){const i=h(t,n?.in);return i.setTime(i.getTime()+e*s),i}function vn(t,e,n){return bn(t,e*a,n)}function wn(t,e,n){return Jt(t,7*e,n)}function _n(t,e,n){const i=h(t,n?.in);if(isNaN(e))return u(n?.in||t,NaN);if(!e)return i;const o=i.getDate(),r=u(n?.in||t,i.getTime());r.setMonth(i.getMonth()+e+1,0);const s=r.getDate();return o>=s?r:(i.setFullYear(r.getFullYear(),r.getMonth(),o),i)}function kn(t,e,n){return _n(t,3*e,n)}function Mn(t,e,n){return _n(t,12*e,n)}function Sn(t,e){return+h(t)-+h(e)}function Dn(t){return e=>{const n=t?Math[t]:Math.trunc,i=n(e);return 0===i?0:i}}function Tn(t,e,n){const i=Sn(t,e)/1e3;return Dn(n?.roundingMethod)(i)}function Cn(t,e,n){const i=Sn(t,e)/s;return Dn(n?.roundingMethod)(i)}function Pn(t,e,n){const[i,o]=Je(n?.in,t,e),r=(+i-+o)/a;return Dn(n?.roundingMethod)(r)}function On(t,e,n){const[i,o]=Je(n?.in,t,e),r=An(i,o),s=Math.abs(Ke(i,o));i.setDate(i.getDate()-r*s);const a=Number(An(i,o)===-r),l=r*(s-a);return 0===l?0:l}function An(t,e){const n=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 n<0?-1:n>0?1:n}function En(t,e,n){const i=On(t,e,n)/7;return Dn(n?.roundingMethod)(i)}function In(t,e){const n=+h(t)-+h(e);return n<0?-1:n>0?1:n}function Rn(t,e,n){const[i,o]=Je(n?.in,t,e),r=i.getFullYear()-o.getFullYear(),s=i.getMonth()-o.getMonth();return 12*r+s}function Ln(t,e){const n=h(t,e?.in);return n.setHours(23,59,59,999),n}function Fn(t,e){const n=h(t,e?.in),i=n.getMonth();return n.setFullYear(n.getFullYear(),i+1,0),n.setHours(23,59,59,999),n}function jn(t,e){const n=h(t,e?.in);return+Ln(n,e)===+Fn(n,e)}function zn(t,e,n){const[i,o,r]=Je(n?.in,t,t,e),s=In(o,r),a=Math.abs(Rn(o,r));if(a<1)return 0;1===o.getMonth()&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-s*a);let l=In(o,r)===-s;jn(i)&&1===a&&1===In(i,r)&&(l=!1);const c=s*(a-+l);return 0===c?0:c}function Wn(t,e,n){const i=zn(t,e,n)/3;return Dn(n?.roundingMethod)(i)}function Nn(t,e,n){const[i,o]=Je(n?.in,t,e);return i.getFullYear()-o.getFullYear()}function Hn(t,e,n){const[i,o]=Je(n?.in,t,e),r=In(i,o),s=Math.abs(Nn(i,o));i.setFullYear(1584),o.setFullYear(1584);const a=In(i,o)===-r,l=r*(s-+a);return 0===l?0:l}function Bn(t,e){const n=h(t,e?.in);return n.setMilliseconds(0),n}function Yn(t,e){const n=h(t,e?.in);return n.setSeconds(0,0),n}function Vn(t,e){const n=h(t,e?.in);return n.setMinutes(0,0,0),n}function $n(t,e){const n=h(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Xn(t,e){const n=h(t,e?.in),i=n.getMonth(),o=i-i%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}function qn(t,e){const n=h(t,e?.in);return n.setMilliseconds(999),n}function Un(t,e){const n=h(t,e?.in);return n.setSeconds(59,999),n}function Gn(t,e){const n=h(t,e?.in);return n.setMinutes(59,59,999),n}function Zn(t,e){const n=st(),i=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=h(t,e?.in),r=o.getDay(),s=6+(r<i?-7:0)-(r-i);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function Jn(t,e){const n=h(t,e?.in),i=n.getMonth(),o=i-i%3+3;return n.setMonth(o,0),n.setHours(23,59,59,999),n}function Qn(t,e){const n=h(t,e?.in),i=n.getFullYear();return n.setFullYear(i+1,0,0),n.setHours(23,59,59,999),n}
|
|
/*!
|
|
* chartjs-adapter-date-fns v3.0.0
|
|
* https://www.chartjs.org
|
|
* (c) 2022 chartjs-adapter-date-fns Contributors
|
|
* Released under the MIT license
|
|
*/
|
|
const Kn={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"};i.IQ._date.override({_id:"date-fns",formats:function(){return Kn},parse:function(t,e){if(null===t||"undefined"===typeof t)return null;const n=typeof t;return"number"===n||t instanceof Date?t=h(t):"string"===n&&(t="string"===typeof e?Te(t,e,new Date,this.options):Pe(t,this.options)),Ze(t)?t.getTime():null},format:function(t,e){return gn(t,e,this.options)},add:function(t,e,n){switch(n){case"millisecond":return bn(t,e);case"second":return yn(t,e);case"minute":return xn(t,e);case"hour":return vn(t,e);case"day":return Jt(t,e);case"week":return wn(t,e);case"month":return _n(t,e);case"quarter":return kn(t,e);case"year":return Mn(t,e);default:return t}},diff:function(t,e,n){switch(n){case"millisecond":return Sn(t,e);case"second":return Tn(t,e);case"minute":return Cn(t,e);case"hour":return Pn(t,e);case"day":return On(t,e);case"week":return En(t,e);case"month":return zn(t,e);case"quarter":return Wn(t,e);case"year":return Hn(t,e);default:return 0}},startOf:function(t,e,n){switch(e){case"second":return Bn(t);case"minute":return Yn(t);case"hour":return Vn(t);case"day":return Qe(t);case"week":return Ct(t);case"isoWeek":return Ct(t,{weekStartsOn:+n});case"month":return $n(t);case"quarter":return Xn(t);case"year":return tn(t);default:return t}},endOf:function(t,e){switch(e){case"second":return qn(t);case"minute":return Un(t);case"hour":return Gn(t);case"day":return Ln(t);case"week":return Zn(t);case"month":return Fn(t);case"quarter":return Jn(t);case"year":return Qn(t);default:return t}}})},282:function(t,e,n){n.d(e,{Z:function(){return an}});var i=n(148),o=n(411);
|
|
/*!
|
|
* chartjs-plugin-annotation v3.1.0
|
|
* https://www.chartjs.org/chartjs-plugin-annotation/index
|
|
* (c) 2024 chartjs-plugin-annotation Contributors
|
|
* Released under the MIT License
|
|
*/
|
|
const r={modes:{point(t,e){return c(t,e,{intersect:!0})},nearest(t,e,n){return u(t,e,n)},x(t,e,n){return c(t,e,{intersect:n.intersect,axis:"x"})},y(t,e,n){return c(t,e,{intersect:n.intersect,axis:"y"})}}};function s(t,e,n){const i=r.modes[n.mode]||r.modes.nearest;return i(t,e,n)}function a(t,e,n){return"x"!==n&&"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,n){return"x"===n?{x:t.x,y:e.y}:"y"===n?{x:e.x,y:t.y}:e}function c(t,e,n){return t.filter((t=>n.intersect?t.inRange(e.x,e.y):a(t,e,n.axis)))}function u(t,e,n){let i=Number.POSITIVE_INFINITY;return c(t,e,n).reduce(((t,r)=>{const s=r.getCenterPoint(),a=l(e,s,n.axis),c=(0,o.aF)(e,a);return c<i?(t=[r],i=c):c===i&&t.push(r),t}),[]).sort(((t,e)=>t._index-e._index)).slice(0,1)}function h(t,e,n){const i=Math.cos(n),o=Math.sin(n),r=e.x,s=e.y;return{x:r+i*(t.x-r)-o*(t.y-s),y:s+o*(t.x-r)+i*(t.y-s)}}const d=(t,e)=>e>t||t.length>e.length&&t.slice(0,e.length)===e,f=.001,p=(t,e,n)=>Math.min(n,Math.max(e,t)),g=(t,e)=>t.value>=t.start-e&&t.value<=t.end+e;function m(t,e,n){for(const i of Object.keys(t))t[i]=p(t[i],e,n);return t}function b(t,e,n,i){return!(!t||!e||n<=0)&&Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(n+i,2)}function y(t,{x:e,y:n,x2:i,y2:o},r,{borderWidth:s,hitTolerance:a}){const l=(s+a)/2,c=t.x>=e-l-f&&t.x<=i+l+f,u=t.y>=n-l-f&&t.y<=o+l+f;return"x"===r?c:("y"===r||c)&&u}function x(t,{rect:e,center:n},i,{rotation:r,borderWidth:s,hitTolerance:a}){const l=h(t,n,(0,o.t)(-r));return y(l,e,i,{borderWidth:s,hitTolerance:a})}function v(t,e){const{centerX:n,centerY:i}=t.getProps(["centerX","centerY"],e);return{x:n,y:i}}function w(t,e,n,i=!0){const o=n.split(".");let r=0;for(const s of e.split(".")){const a=o[r++];if(parseInt(s,10)<parseInt(a,10))break;if(d(a,s)){if(i)throw new Error(`${t} v${n} is not supported. v${e} or newer is required.`);return!1}}return!0}const _=t=>"string"===typeof t&&t.endsWith("%"),k=t=>parseFloat(t)/100,M=t=>p(k(t),0,1),S=(t,e)=>({x:t,y:e,x2:t,y2:e,width:0,height:0}),D={box:t=>S(t.centerX,t.centerY),doughnutLabel:t=>S(t.centerX,t.centerY),ellipse:t=>({centerX:t.centerX,centerY:t.centerX,radius:0,width:0,height:0}),label:t=>S(t.centerX,t.centerY),line:t=>S(t.x,t.y),point:t=>({centerX:t.centerX,centerY:t.centerY,radius:0,width:0,height:0}),polygon:t=>S(t.centerX,t.centerY)};function T(t,e){return"start"===e?0:"end"===e?t:_(e)?M(e)*t:t/2}function C(t,e,n=!0){return"number"===typeof e?e:_(e)?(n?M(e):k(e))*t:t}function P(t,e){const{x:n,width:i}=t,o=e.textAlign;return"center"===o?n+i/2:"end"===o||"right"===o?n+i:n}function O(t,e,{borderWidth:n,position:i,xAdjust:r,yAdjust:s},a){const l=(0,o.i)(a),c=e.width+(l?a.width:0)+n,u=e.height+(l?a.height:0)+n,h=A(i),d=L(t.x,c,r,h.x),f=L(t.y,u,s,h.y);return{x:d,y:f,x2:d+c,y2:f+u,width:c,height:u,centerX:d+c/2,centerY:f+u/2}}function A(t,e="center"){return(0,o.i)(t)?{x:(0,o.v)(t.x,e),y:(0,o.v)(t.y,e)}:(t=(0,o.v)(t,e),{x:t,y:t})}const E=(t,e)=>t&&t.autoFit&&e<1;function I(t,e){const n=t.font,i=(0,o.b)(n)?n:[n];return E(t,e)?i.map((function(t){const n=(0,o.a0)(t);return n.size=Math.floor(t.size*e),n.lineHeight=t.lineHeight,(0,o.a0)(n)})):i.map((t=>(0,o.a0)(t)))}function R(t){return t&&((0,o.h)(t.xValue)||(0,o.h)(t.yValue))}function L(t,e,n=0,i){return t-T(e,i)+n}function F(t,e,n){const i=n.init;if(i)return!0===i?z(e,n):W(t,e,n)}function j(t,e,n){let i=!1;return e.forEach((e=>{(0,o.a7)(t[e])?(i=!0,n[e]=t[e]):(0,o.h)(n[e])&&delete n[e]})),i}function z(t,e){const n=e.type||"line";return D[n](t)}function W(t,e,n){const i=(0,o.Q)(n.init,[{chart:t,properties:e,options:n}]);return!0===i?z(e,n):(0,o.i)(i)?i:void 0}const N=new Map,H=t=>isNaN(t)||t<=0,B=t=>t.reduce((function(t,e){return t+=e.string,t}),"");function Y(t){if(t&&"object"===typeof t){const e=t.toString();return"[object HTMLImageElement]"===e||"[object HTMLCanvasElement]"===e}}function V(t,{x:e,y:n},i){i&&(t.translate(e,n),t.rotate((0,o.t)(i)),t.translate(-e,-n))}function $(t,e){if(e&&e.borderWidth)return t.lineCap=e.borderCapStyle||"butt",t.setLineDash(e.borderDash),t.lineDashOffset=e.borderDashOffset,t.lineJoin=e.borderJoinStyle||"miter",t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor,!0}function X(t,e){t.shadowColor=e.backgroundShadowColor,t.shadowBlur=e.shadowBlur,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY}function q(t,e){const n=e.content;if(Y(n)){const t={width:C(n.width,e.width),height:C(n.height,e.height)};return t}const i=I(e),r=e.textStrokeWidth,s=(0,o.b)(n)?n:[n],a=s.join()+B(i)+r+(t._measureText?"-spriting":"");return N.has(a)||N.set(a,K(t,s,i,r)),N.get(a)}function U(t,e,n){const{x:i,y:r,width:s,height:a}=e;t.save(),X(t,n);const l=$(t,n);t.fillStyle=n.backgroundColor,t.beginPath(),(0,o.aw)(t,{x:i,y:r,w:s,h:a,radius:m((0,o.ay)(n.borderRadius),0,Math.min(s,a)/2)}),t.closePath(),t.fill(),l&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore()}function G(t,e,n,i){const r=n.content;if(Y(r))return t.save(),t.globalAlpha=nt(n.opacity,r.style.opacity),t.drawImage(r,e.x,e.y,e.width,e.height),void t.restore();const s=(0,o.b)(r)?r:[r],a=I(n,i),l=n.color,c=(0,o.b)(l)?l:[l],u=P(e,n),h=e.y+n.textStrokeWidth/2;t.save(),t.textBaseline="middle",t.textAlign=n.textAlign,Z(t,n)&&tt(t,{x:u,y:h},s,a),et(t,{x:u,y:h},s,{fonts:a,colors:c}),t.restore()}function Z(t,e){if(e.textStrokeWidth>0)return t.lineJoin="round",t.miterLimit=2,t.lineWidth=e.textStrokeWidth,t.strokeStyle=e.textStrokeColor,!0}function J(t,e,n,i){const{radius:r,options:s}=e,a=s.pointStyle,l=s.rotation;let c=(l||0)*o.b4;if(Y(a))return t.save(),t.translate(n,i),t.rotate(c),t.drawImage(a,-a.width/2,-a.height/2,a.width,a.height),void t.restore();H(r)||Q(t,{x:n,y:i,radius:r,rotation:l,style:a,rad:c})}function Q(t,{x:e,y:n,radius:i,rotation:r,style:s,rad:a}){let l,c,u,h;switch(t.beginPath(),s){default:t.arc(e,n,i,0,o.T),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(a)*i,n-Math.cos(a)*i),a+=o.b6,t.lineTo(e+Math.sin(a)*i,n-Math.cos(a)*i),a+=o.b6,t.lineTo(e+Math.sin(a)*i,n-Math.cos(a)*i),t.closePath();break;case"rectRounded":h=.516*i,u=i-h,l=Math.cos(a+o.b5)*u,c=Math.sin(a+o.b5)*u,t.arc(e-l,n-c,h,a-o.P,a-o.H),t.arc(e+c,n-l,h,a-o.H,a),t.arc(e+l,n+c,h,a,a+o.H),t.arc(e-c,n+l,h,a+o.H,a+o.P),t.closePath();break;case"rect":if(!r){u=Math.SQRT1_2*i,t.rect(e-u,n-u,2*u,2*u);break}a+=o.b5;case"rectRot":l=Math.cos(a)*i,c=Math.sin(a)*i,t.moveTo(e-l,n-c),t.lineTo(e+c,n-l),t.lineTo(e+l,n+c),t.lineTo(e-c,n+l),t.closePath();break;case"crossRot":a+=o.b5;case"cross":l=Math.cos(a)*i,c=Math.sin(a)*i,t.moveTo(e-l,n-c),t.lineTo(e+l,n+c),t.moveTo(e+c,n-l),t.lineTo(e-c,n+l);break;case"star":l=Math.cos(a)*i,c=Math.sin(a)*i,t.moveTo(e-l,n-c),t.lineTo(e+l,n+c),t.moveTo(e+c,n-l),t.lineTo(e-c,n+l),a+=o.b5,l=Math.cos(a)*i,c=Math.sin(a)*i,t.moveTo(e-l,n-c),t.lineTo(e+l,n+c),t.moveTo(e+c,n-l),t.lineTo(e-c,n+l);break;case"line":l=Math.cos(a)*i,c=Math.sin(a)*i,t.moveTo(e-l,n-c),t.lineTo(e+l,n+c);break;case"dash":t.moveTo(e,n),t.lineTo(e+Math.cos(a)*i,n+Math.sin(a)*i);break}t.fill()}function K(t,e,n,i){t.save();const o=e.length;let r=0,s=i;for(let a=0;a<o;a++){const o=n[Math.min(a,n.length-1)];t.font=o.string;const l=e[a];r=Math.max(r,t.measureText(l).width+i),s+=o.lineHeight}return t.restore(),{width:r,height:s}}function tt(t,{x:e,y:n},i,o){t.beginPath();let r=0;i.forEach((function(i,s){const a=o[Math.min(s,o.length-1)],l=a.lineHeight;t.font=a.string,t.strokeText(i,e,n+l/2+r),r+=l})),t.stroke()}function et(t,{x:e,y:n},i,{fonts:o,colors:r}){let s=0;i.forEach((function(i,a){const l=r[Math.min(a,r.length-1)],c=o[Math.min(a,o.length-1)],u=c.lineHeight;t.beginPath(),t.font=c.string,t.fillStyle=l,t.fillText(i,e,n+u/2+s),s+=u,t.fill()}))}function nt(t,e){const n=(0,o.x)(t)?t:e;return(0,o.x)(n)?p(n,0,1):1}const it=["left","bottom","top","right"];function ot(t,e){const{pointX:n,pointY:i,options:r}=e,s=r.callout,a=s&&s.display&&ct(e,s);if(!a||ht(e,s,a))return;t.save(),t.beginPath();const l=$(t,s);if(!l)return t.restore();const{separatorStart:c,separatorEnd:u}=rt(e,a),{sideStart:d,sideEnd:f}=at(e,a,c);(s.margin>0||0===r.borderWidth)&&(t.moveTo(c.x,c.y),t.lineTo(u.x,u.y)),t.moveTo(d.x,d.y),t.lineTo(f.x,f.y);const p=h({x:n,y:i},e.getCenterPoint(),(0,o.t)(-e.rotation));t.lineTo(p.x,p.y),t.stroke(),t.restore()}function rt(t,e){const{x:n,y:i,x2:o,y2:r}=t,s=st(t,e);let a,l;return"left"===e||"right"===e?(a={x:n+s,y:i},l={x:a.x,y:r}):(a={x:n,y:i+s},l={x:o,y:a.y}),{separatorStart:a,separatorEnd:l}}function st(t,e){const{width:n,height:i,options:o}=t,r=o.callout.margin+o.borderWidth/2;return"right"===e?n+r:"bottom"===e?i+r:-r}function at(t,e,n){const{y:i,width:o,height:r,options:s}=t,a=s.callout.start,l=lt(e,s.callout);let c,u;return"left"===e||"right"===e?(c={x:n.x,y:i+C(r,a)},u={x:c.x+l,y:c.y}):(c={x:n.x+C(o,a),y:n.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function lt(t,e){const n=e.side;return"left"===t||"top"===t?-n:n}function ct(t,e){const n=e.position;return it.includes(n)?n:ut(t,e)}function ut(t,e){const{x:n,y:i,x2:r,y2:s,width:a,height:l,pointX:c,pointY:u,centerX:d,centerY:f,rotation:p}=t,g={x:d,y:f},m=e.start,b=C(a,m),y=C(l,m),x=[n,n+b,n+b,r],v=[i+y,s,i,s],w=[];for(let _=0;_<4;_++){const t=h({x:x[_],y:v[_]},g,(0,o.t)(p));w.push({position:it[_],distance:(0,o.aF)(t,{x:c,y:u})})}return w.sort(((t,e)=>t.distance-e.distance))[0].position}function ht(t,e,n){const{pointX:i,pointY:o}=t,r=e.margin;let s=i,a=o;return"left"===n?s+=r:"right"===n?s-=r:"top"===n?a+=r:"bottom"===n&&(a-=r),t.inRange(s,a)}const dt={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 ft(t,e,n){return e="number"===typeof e?e:t.parse(e),(0,o.g)(e)?t.getPixelForValue(e):n}function pt(t,e,n){const i=e[n];if(i||"scaleID"===n)return i;const o=n.charAt(0),r=Object.values(t).filter((t=>t.axis&&t.axis===o));return r.length?r[0].id:o}function gt(t,e){if(t){const n=t.options.reverse,i=ft(t,e.min,n?e.end:e.start),o=ft(t,e.max,n?e.start:e.end);return{start:i,end:o}}}function mt(t,e){const{chartArea:n,scales:i}=t,o=i[pt(i,e,"xScaleID")],r=i[pt(i,e,"yScaleID")];let s=n.width/2,a=n.height/2;return o&&(s=ft(o,e.xValue,o.left+o.width/2)),r&&(a=ft(r,e.yValue,r.top+r.height/2)),{x:s,y:a}}function bt(t,e){const n=t.scales,i=n[pt(n,e,"xScaleID")],o=n[pt(n,e,"yScaleID")];if(!i&&!o)return{};let{left:r,right:s}=i||t.chartArea,{top:a,bottom:l}=o||t.chartArea;const c=_t(i,{min:e.xMin,max:e.xMax,start:r,end:s});r=c.start,s=c.end;const u=_t(o,{min:e.yMin,max:e.yMax,start:l,end:a});return a=u.start,l=u.end,{x:r,y:a,x2:s,y2:l,width:s-r,height:l-a,centerX:r+(s-r)/2,centerY:a+(l-a)/2}}function yt(t,e){if(!R(e)){const n=bt(t,e);let i=e.radius;i&&!isNaN(i)||(i=Math.min(n.width,n.height)/2,e.radius=i);const o=2*i,r=n.centerX+e.xAdjust,s=n.centerY+e.yAdjust;return{x:r-i,y:s-i,x2:r+i,y2:s+i,centerX:r,centerY:s,width:o,height:o,radius:i}}return wt(t,e)}function xt(t,e){const{scales:n,chartArea:i}=t,o=n[e.scaleID],r={x:i.left,y:i.top,x2:i.right,y2:i.bottom};return o?kt(o,r,e):Mt(n,r,e),r}function vt(t,e){const n=bt(t,e);return n.initProperties=F(t,n,e),n.elements=[{type:"label",optionScope:"label",properties:Ct(t,n,e),initProperties:n.initProperties}],n}function wt(t,e){const n=mt(t,e),i=2*e.radius;return{x:n.x-e.radius+e.xAdjust,y:n.y-e.radius+e.yAdjust,x2:n.x+e.radius+e.xAdjust,y2:n.y+e.radius+e.yAdjust,centerX:n.x+e.xAdjust,centerY:n.y+e.yAdjust,radius:e.radius,width:i,height:i}}function _t(t,e){const n=gt(t,e)||e;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function kt(t,e,n){const i=ft(t,n.value,NaN),o=ft(t,n.endValue,i);t.isHorizontal()?(e.x=i,e.x2=o):(e.y=i,e.y2=o)}function Mt(t,e,n){for(const i of Object.keys(dt)){const o=t[pt(t,n,i)];if(o){const{min:t,max:r,start:s,end:a,startProp:l,endProp:c}=dt[i],u=gt(o,{min:n[t],max:n[r],start:o[s],end:o[a]});e[l]=u.start,e[c]=u.end}}}function St({properties:t,options:e},n,i,o){const{x:r,x2:s,width:a}=t;return Tt({start:r,end:s,size:a,borderWidth:e.borderWidth},{position:i.x,padding:{start:o.left,end:o.right},adjust:e.label.xAdjust,size:n.width})}function Dt({properties:t,options:e},n,i,o){const{y:r,y2:s,height:a}=t;return Tt({start:r,end:s,size:a,borderWidth:e.borderWidth},{position:i.y,padding:{start:o.top,end:o.bottom},adjust:e.label.yAdjust,size:n.height})}function Tt(t,e){const{start:n,end:i,borderWidth:o}=t,{position:r,padding:{start:s,end:a},adjust:l}=e,c=i-o-n-s-a-e.size;return n+o/2+l+T(c,r)}function Ct(t,e,n){const i=n.label;i.backgroundColor="transparent",i.callout.display=!1;const r=A(i.position),s=(0,o.E)(i.padding),a=q(t.ctx,i),l=St({properties:e,options:n},a,r,s),c=Dt({properties:e,options:n},a,r,s),u=a.width+s.width,h=a.height+s.height;return{x:l,y:c,x2:l+u,y2:c+h,width:u,height:h,centerX:l+u/2,centerY:c+h/2,rotation:i.rotation}}const Pt=["enter","leave"],Ot=Pt.concat("click");function At(t,e,n){e.listened=j(n,Ot,e.listeners),e.moveListened=!1,Pt.forEach((t=>{(0,o.a7)(n[t])&&(e.moveListened=!0)})),e.listened&&e.moveListened||e.annotations.forEach((t=>{!e.listened&&(0,o.a7)(t.click)&&(e.listened=!0),e.moveListened||Pt.forEach((n=>{(0,o.a7)(t[n])&&(e.listened=!0,e.moveListened=!0)}))}))}function Et(t,e,n){if(t.listened)switch(e.type){case"mousemove":case"mouseout":return It(t,e,n);case"click":return Lt(t,e,n)}}function It(t,e,n){if(!t.moveListened)return;let i;i="mousemove"===e.type?s(t.visibleElements,e,n.interaction):[];const o=t.hovered;t.hovered=i;const r={state:t,event:e};let a=Rt(r,"leave",o,i);return Rt(r,"enter",i,o)||a}function Rt({state:t,event:e},n,i,o){let r;for(const s of i)o.indexOf(s)<0&&(r=Ft(s.options[n]||t.listeners[n],s,e)||r);return r}function Lt(t,e,n){const i=t.listeners,o=s(t.visibleElements,e,n.interaction);let r;for(const s of o)r=Ft(s.options.click||i.click,s,e)||r;return r}function Ft(t,e,n){return!0===(0,o.Q)(t,[e.$context,n])}const jt=["afterDraw","beforeDraw"];function zt(t,e,n){const i=e.visibleElements;e.hooked=j(n,jt,e.hooks),e.hooked||i.forEach((t=>{e.hooked||jt.forEach((n=>{(0,o.a7)(t.options[n])&&(e.hooked=!0)}))}))}function Wt(t,e,n){if(t.hooked){const i=e.options[n]||t.hooks[n];return(0,o.Q)(i,[e.$context])}}function Nt(t,e,n){const i=Xt(t.scales,e,n);let r=Bt(e,i,"min","suggestedMin");r=Bt(e,i,"max","suggestedMax")||r,r&&(0,o.a7)(e.handleTickRangeOptions)&&e.handleTickRangeOptions()}function Ht(t,e){for(const n of t)Vt(n,e)}function Bt(t,e,n,i){if((0,o.g)(e[n])&&!Yt(t.options,n,i)){const i=t[n]!==e[n];return t[n]=e[n],i}}function Yt(t,e,n){return(0,o.h)(t[e])||(0,o.h)(t[n])}function Vt(t,e){for(const n of["scaleID","xScaleID","yScaleID"]){const i=pt(e,t,n);i&&!e[i]&&$t(t,n)&&console.warn(`No scale found with id '${i}' for annotation '${t.id}'`)}}function $t(t,e){if("scaleID"===e)return!0;const n=e.charAt(0);for(const i of["Min","Max","Value"])if((0,o.h)(t[n+i]))return!0;return!1}function Xt(t,e,n){const i=e.axis,r=e.id,s=i+"ScaleID",a={min:(0,o.v)(e.min,Number.NEGATIVE_INFINITY),max:(0,o.v)(e.max,Number.POSITIVE_INFINITY)};for(const o of n)o.scaleID===r?qt(o,e,["value","endValue"],a):pt(t,o,s)===r&&qt(o,e,[i+"Min",i+"Max",i+"Value"],a);return a}function qt(t,e,n,i){for(const r of n){const n=t[r];if((0,o.h)(n)){const t=e.parse(n);i.min=Math.min(i.min,t),i.max=Math.max(i.max,t)}}}class Ut extends i.W_{inRange(t,e,n,i){const{x:r,y:s}=h({x:t,y:e},this.getCenterPoint(i),(0,o.t)(-this.options.rotation));return y({x:r,y:s},this.getProps(["x","y","x2","y2"],i),n,this.options)}getCenterPoint(t){return v(this,t)}draw(t){t.save(),V(t,this.getCenterPoint(),this.options.rotation),U(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return vt(t,e)}}Ut.id="boxAnnotation",Ut.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},Ut.defaultRoutes={borderColor:"color",backgroundColor:"color"},Ut.descriptors={label:{_fallback:!0}};class Gt extends i.W_{inRange(t,e,n,i){return x({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],i),center:this.getCenterPoint(i)},n,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return v(this,t)}draw(t){const e=this.options;e.display&&e.content&&(ee(t,this),t.save(),V(t,this.getCenterPoint(),this.rotation),G(t,this,e,this._fitRatio),t.restore())}resolveElementProperties(t,e){const n=Zt(t,e);if(!n)return{};const{controllerMeta:i,point:o,radius:r}=Qt(t,e,n);let s=q(t.ctx,e);const a=Kt(s,r);E(e,a)&&(s={width:s.width*a,height:s.height*a});const{position:l,xAdjust:c,yAdjust:u}=e,h=O(o,s,{borderWidth:0,position:l,xAdjust:c,yAdjust:u});return{initProperties:F(t,h,e),...h,...i,rotation:e.rotation,_fitRatio:a}}}function Zt(t,e){return t.getSortedVisibleDatasetMetas().reduce((function(n,o){const r=o.controller;return r instanceof i.jI&&Jt(t,e,o.data)&&(!n||r.innerRadius<n.controller.innerRadius)&&r.options.circumference>=90?o:n}),void 0)}function Jt(t,e,n){if(!e.autoHide)return!0;for(let i=0;i<n.length;i++)if(!n[i].hidden&&t.getDataVisibility(i))return!0}function Qt({chartArea:t},e,n){const{left:i,top:o,right:r,bottom:s}=t,{innerRadius:a,offsetX:l,offsetY:c}=n.controller,u=(i+r)/2+l,h=(o+s)/2+c,d={left:Math.max(u-a,i),right:Math.min(u+a,r),top:Math.max(h-a,o),bottom:Math.min(h+a,s)},f={x:(d.left+d.right)/2,y:(d.top+d.bottom)/2},p=e.spacing+e.borderWidth/2,g=a-p,m=f.y>h,b=m?o+p:s-p,y=te(b,u,h,g),x={_centerX:u,_centerY:h,_radius:g,_counterclockwise:m,...y};return{controllerMeta:x,point:f,radius:Math.min(a,Math.min(d.right-d.left,d.bottom-d.top)/2)}}function Kt({width:t,height:e},n){const i=Math.sqrt(Math.pow(t,2)+Math.pow(e,2));return 2*n/i}function te(t,e,n,i){const r=Math.pow(n-t,2),s=Math.pow(i,2),a=-2*e,l=Math.pow(e,2)+r-s,c=Math.pow(a,2)-4*l;if(c<=0)return{_startAngle:0,_endAngle:o.T};const u=(-a-Math.sqrt(c))/2,h=(-a+Math.sqrt(c))/2;return{_startAngle:(0,o.D)({x:e,y:n},{x:u,y:t}).angle,_endAngle:(0,o.D)({x:e,y:n},{x:h,y:t}).angle}}function ee(t,e){const{_centerX:n,_centerY:i,_radius:o,_startAngle:r,_endAngle:s,_counterclockwise:a,options:l}=e;t.save();const c=$(t,l);t.fillStyle=l.backgroundColor,t.beginPath(),t.arc(n,i,o,r,s,a),t.closePath(),t.fill(),c&&t.stroke(),t.restore()}Gt.id="doughnutLabelAnnotation",Gt.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},Gt.defaultRoutes={};class ne extends i.W_{inRange(t,e,n,i){return x({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],i),center:this.getCenterPoint(i)},n,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return v(this,t)}draw(t){const e=this.options,n=!(0,o.h)(this._visible)||this._visible;e.display&&e.content&&n&&(t.save(),V(t,this.getCenterPoint(),this.rotation),ot(t,this),U(t,this,e),G(t,ie(this),e),t.restore())}resolveElementProperties(t,e){let n;if(R(e))n=mt(t,e);else{const{centerX:i,centerY:o}=bt(t,e);n={x:i,y:o}}const i=(0,o.E)(e.padding),r=q(t.ctx,e),s=O(n,r,e,i);return{initProperties:F(t,s,e),pointX:n.x,pointY:n.y,...s,rotation:e.rotation}}}function ie({x:t,y:e,width:n,height:i,options:r}){const s=r.borderWidth/2,a=(0,o.E)(r.padding);return{x:t+a.left+s,y:e+a.top+s,width:n-a.left-a.right-r.borderWidth,height:i-a.top-a.bottom-r.borderWidth}}ne.id="labelAnnotation",ne.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},ne.defaultRoutes={borderColor:"color"};const oe=(t,e,n)=>({x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}),re=(t,e,n)=>oe(e,n,Math.abs((t-e.y)/(n.y-e.y))).x,se=(t,e,n)=>oe(e,n,Math.abs((t-e.x)/(n.x-e.x))).y,ae=t=>t*t,le=(t,e,{x:n,y:i,x2:o,y2:r},s)=>"y"===s?{start:Math.min(i,r),end:Math.max(i,r),value:e}:{start:Math.min(n,o),end:Math.max(n,o),value:t},ce=(t,e,n,i)=>(1-i)*(1-i)*t+2*(1-i)*i*e+i*i*n,ue=(t,e,n,i)=>({x:ce(t.x,e.x,n.x,i),y:ce(t.y,e.y,n.y,i)}),he=(t,e,n,i)=>2*(1-i)*(e-t)+2*i*(n-e),de=(t,e,n,i)=>-Math.atan2(he(t.x,e.x,n.x,i),he(t.y,e.y,n.y,i))+.5*o.P;class fe extends i.W_{inRange(t,e,n,i){const o=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==n&&"y"!==n){const n={mouseX:t,mouseY:e},{path:r,ctx:s}=this;if(r){$(s,this.options),s.lineWidth+=this.options.hitTolerance;const{chart:o}=this.$context,a=t*o.currentDevicePixelRatio,l=e*o.currentDevicePixelRatio,c=s.isPointInStroke(r,a,l)||ve(this,n,i);return s.restore(),c}const a=ae(o);return xe(this,n,a,i)||ve(this,n,i)}return ge(this,{mouseX:t,mouseY:e},n,{hitSize:o,useFinalPosition:i})}getCenterPoint(t){return v(this,t)}draw(t){const{x:e,y:n,x2:i,y2:o,cp:r,options:s}=this;if(t.save(),!$(t,s))return t.restore();X(t,s);const a=Math.sqrt(Math.pow(i-e,2)+Math.pow(o-n,2));if(s.curve&&r)return Re(t,this,r,a),t.restore();const{startOpts:l,endOpts:c,startAdjust:u,endAdjust:h}=Pe(this),d=Math.atan2(o-n,i-e);t.translate(e,n),t.rotate(d),t.beginPath(),t.moveTo(0+u,0),t.lineTo(a-h,0),t.shadowColor=s.borderShadowColor,t.stroke(),Ae(t,0,u,l),Ae(t,a,-h,c),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){const n=xt(t,e),{x:i,y:r,x2:s,y2:a}=n,l=me(n,t.chartArea),c=l?ye({x:i,y:r},{x:s,y:a},t.chartArea):{x:i,y:r,x2:s,y2:a,width:Math.abs(s-i),height:Math.abs(a-r)};if(c.centerX=(s+i)/2,c.centerY=(a+r)/2,c.initProperties=F(t,c,e),e.curve){const t={x:c.x,y:c.y},n={x:c.x2,y:c.y2};c.cp=Ee(c,e,(0,o.aF)(t,n))}const u=we(t,c,e.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}fe.id="lineAnnotation";const pe={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 ge(t,{mouseX:e,mouseY:n},i,{hitSize:o,useFinalPosition:r}){const s=le(e,n,t.getProps(["x","y","x2","y2"],r),i);return g(s,o)||ve(t,{mouseX:e,mouseY:n},r,i)}function me({x:t,y:e,x2:n,y2:i},{top:o,right:r,bottom:s,left:a}){return!(t<a&&n<a||t>r&&n>r||e<o&&i<o||e>s&&i>s)}function be({x:t,y:e},n,{top:i,right:o,bottom:r,left:s}){return t<s&&(e=se(s,{x:t,y:e},n),t=s),t>o&&(e=se(o,{x:t,y:e},n),t=o),e<i&&(t=re(i,{x:t,y:e},n),e=i),e>r&&(t=re(r,{x:t,y:e},n),e=r),{x:t,y:e}}function ye(t,e,n){const{x:i,y:o}=be(t,e,n),{x:r,y:s}=be(e,t,n);return{x:i,y:o,x2:r,y2:s,width:Math.abs(r-i),height:Math.abs(s-o)}}function xe(t,{mouseX:e,mouseY:n},i=f,o){const{x:r,y:s,x2:a,y2:l}=t.getProps(["x","y","x2","y2"],o),c=a-r,u=l-s,h=ae(c)+ae(u),d=0===h?-1:((e-r)*c+(n-s)*u)/h;let p,g;return d<0?(p=r,g=s):d>1?(p=a,g=l):(p=r+d*c,g=s+d*u),ae(e-p)+ae(n-g)<=i}function ve(t,{mouseX:e,mouseY:n},i,o){const r=t.label;return r.options.display&&r.inRange(e,n,o,i)}function we(t,e,n){const i=n.borderWidth,r=(0,o.E)(n.padding),s=q(t.ctx,n),a=s.width+r.width+i,l=s.height+r.height+i;return ke(e,n,{width:a,height:l,padding:r},t.chartArea)}function _e(t){const{x:e,y:n,x2:i,y2:r}=t,s=Math.atan2(r-n,i-e);return s>o.P/2?s-o.P:s<o.P/-2?s+o.P:s}function ke(t,e,n,i){const{width:r,height:s,padding:a}=n,{xAdjust:l,yAdjust:c}=e,u={x:t.x,y:t.y},h={x:t.x2,y:t.y2},d="auto"===e.rotation?_e(t):(0,o.t)(e.rotation),f=Me(r,s,d),p=Se(t,e,{labelSize:f,padding:a},i),g=t.cp?ue(u,t.cp,h,p):oe(u,h,p),m={size:f.w,min:i.left,max:i.right,padding:a.left},b={size:f.h,min:i.top,max:i.bottom,padding:a.top},y=Ce(g.x,m)+l,x=Ce(g.y,b)+c;return{x:y-r/2,y:x-s/2,x2:y+r/2,y2:x+s/2,centerX:y,centerY:x,pointX:g.x,pointY:g.y,width:r,height:s,rotation:(0,o.U)(d)}}function Me(t,e,n){const i=Math.cos(n),o=Math.sin(n);return{w:Math.abs(t*i)+Math.abs(e*o),h:Math.abs(t*o)+Math.abs(e*i)}}function Se(t,e,n,i){let o;const r=Te(t,i);return o="start"===e.position?De({w:t.x2-t.x,h:t.y2-t.y},n,e,r):"end"===e.position?1-De({w:t.x-t.x2,h:t.y-t.y2},n,e,r):T(1,e.position),o}function De(t,e,n,i){const{labelSize:o,padding:r}=e,s=t.w*i.dx,a=t.h*i.dy,l=s>0&&(o.w/2+r.left-i.x)/s,c=a>0&&(o.h/2+r.top-i.y)/a;return p(Math.max(l,c),0,.25)}function Te(t,e){const{x:n,x2:i,y:o,y2:r}=t,s=Math.min(o,r)-e.top,a=Math.min(n,i)-e.left,l=e.bottom-Math.max(o,r),c=e.right-Math.max(n,i);return{x:Math.min(a,c),y:Math.min(s,l),dx:a<=c?1:-1,dy:s<=l?1:-1}}function Ce(t,e){const{size:n,min:i,max:o,padding:r}=e,s=n/2;return n>o-i?(o+i)/2:(i>=t-r-s&&(t=i+r+s),o<=t+r+s&&(t=o-r-s),t)}function Pe(t){const e=t.options,n=e.arrowHeads&&e.arrowHeads.start,i=e.arrowHeads&&e.arrowHeads.end;return{startOpts:n,endOpts:i,startAdjust:Oe(t,n),endAdjust:Oe(t,i)}}function Oe(t,e){if(!e||!e.display)return 0;const{length:n,width:i}=e,o=t.options.borderWidth/2,r={x:n,y:i+o},s={x:0,y:o};return Math.abs(re(0,r,s))}function Ae(t,e,n,i){if(!i||!i.display)return;const{length:o,width:r,fill:s,backgroundColor:a,borderColor:l}=i,c=Math.abs(e-o)+n;t.beginPath(),X(t,i),$(t,i),t.moveTo(c,-r),t.lineTo(e+n,0),t.lineTo(c,r),!0===s?(t.fillStyle=a||l,t.closePath(),t.fill(),t.shadowColor="transparent"):t.shadowColor=i.borderShadowColor,t.stroke()}function Ee(t,e,n){const{x:i,y:o,x2:r,y2:s,centerX:a,centerY:l}=t,c=Math.atan2(s-o,r-i),u=A(e.controlPoint,0),d={x:a+C(n,u.x,!1),y:l+C(n,u.y,!1)};return h(d,{x:a,y:l},c)}function Ie(t,{x:e,y:n},{angle:i,adjust:o},r){r&&r.display&&(t.save(),t.translate(e,n),t.rotate(i),Ae(t,0,-o,r),t.restore())}function Re(t,e,n,i){const{x:r,y:s,x2:a,y2:l,options:c}=e,{startOpts:u,endOpts:h,startAdjust:d,endAdjust:f}=Pe(e),p={x:r,y:s},g={x:a,y:l},m=de(p,n,g,0),b=de(p,n,g,1)-o.P,y=ue(p,n,g,d/i),x=ue(p,n,g,1-f/i),v=new Path2D;t.beginPath(),v.moveTo(y.x,y.y),v.quadraticCurveTo(n.x,n.y,x.x,x.y),t.shadowColor=c.borderShadowColor,t.stroke(v),e.path=v,e.ctx=t,Ie(t,y,{angle:m,adjust:d},u),Ie(t,x,{angle:b,adjust:f},h)}fe.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},pe),fill:!1,length:12,start:Object.assign({},pe),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({},ne.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},fe.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},fe.defaultRoutes={borderColor:"color"};class Le extends i.W_{inRange(t,e,n,i){const r=this.options.rotation,s=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==n&&"y"!==n)return Fe({x:t,y:e},this.getProps(["width","height","centerX","centerY"],i),r,s);const{x:a,y:l,x2:c,y2:u}=this.getProps(["x","y","x2","y2"],i),d="y"===n?{start:l,end:u}:{start:a,end:c},p=h({x:t,y:e},this.getCenterPoint(i),(0,o.t)(-r));return p[n]>=d.start-s-f&&p[n]<=d.end+s+f}getCenterPoint(t){return v(this,t)}draw(t){const{width:e,height:n,centerX:i,centerY:r,options:s}=this;t.save(),V(t,this.getCenterPoint(),s.rotation),X(t,this.options),t.beginPath(),t.fillStyle=s.backgroundColor;const a=$(t,s);t.ellipse(i,r,n/2,e/2,o.P/2,0,2*o.P),t.fill(),a&&(t.shadowColor=s.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return vt(t,e)}}function Fe(t,e,n,i){const{width:r,height:s,centerX:a,centerY:l}=e,c=r/2,u=s/2;if(c<=0||u<=0)return!1;const h=(0,o.t)(n||0),d=Math.cos(h),f=Math.sin(h),p=Math.pow(d*(t.x-a)+f*(t.y-l),2),g=Math.pow(f*(t.x-a)-d*(t.y-l),2);return p/Math.pow(c+i,2)+g/Math.pow(u+i,2)<=1.0001}Le.id="ellipseAnnotation",Le.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},Ut.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},Le.defaultRoutes={borderColor:"color",backgroundColor:"color"},Le.descriptors={label:{_fallback:!0}};class je extends i.W_{inRange(t,e,n,i){const{x:o,y:r,x2:s,y2:a,width:l}=this.getProps(["x","y","x2","y2","width"],i),c=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==n&&"y"!==n)return b({x:t,y:e},this.getCenterPoint(i),l/2,c);const u="y"===n?{start:r,end:a,value:e}:{start:o,end:s,value:t};return g(u,c)}getCenterPoint(t){return v(this,t)}draw(t){const e=this.options,n=e.borderWidth;if(e.radius<.1)return;t.save(),t.fillStyle=e.backgroundColor,X(t,e);const i=$(t,e);J(t,this,this.centerX,this.centerY),i&&!Y(e.pointStyle)&&(t.shadowColor=e.borderShadowColor,t.stroke()),t.restore(),e.borderWidth=n}resolveElementProperties(t,e){const n=yt(t,e);return n.initProperties=F(t,n,e),n}}je.id="pointAnnotation",je.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},je.defaultRoutes={borderColor:"color",backgroundColor:"color"};class ze extends i.W_{inRange(t,e,n,i){if("x"!==n&&"y"!==n)return this.options.radius>=.1&&this.elements.length>1&&Ne(this.elements,t,e,i);const r=h({x:t,y:e},this.getCenterPoint(i),(0,o.t)(-this.options.rotation)),s=this.elements.map((t=>"y"===n?t.bY:t.bX)),a=Math.min(...s),l=Math.max(...s);return r[n]>=a&&r[n]<=l}getCenterPoint(t){return v(this,t)}draw(t){const{elements:e,options:n}=this;t.save(),t.beginPath(),t.fillStyle=n.backgroundColor,X(t,n);const i=$(t,n);let o=!0;for(const r of e)o?(t.moveTo(r.x,r.y),o=!1):t.lineTo(r.x,r.y);t.closePath(),t.fill(),i&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,e){const n=yt(t,e),{sides:i,rotation:r}=e,s=[],a=2*o.P/i;let l=r*o.b4;for(let o=0;o<i;o++,l+=a){const i=We(n,e,l);i.initProperties=F(t,n,e),s.push(i)}return n.elements=s,n}}function We({centerX:t,centerY:e},{radius:n,borderWidth:i,hitTolerance:o},r){const s=(i+o)/2,a=Math.sin(r),l=Math.cos(r),c={x:t+a*n,y:e-l*n};return{type:"point",optionScope:"point",properties:{x:c.x,y:c.y,centerX:c.x,centerY:c.y,bX:t+a*(n+s),bY:e-l*(n+s)}}}function Ne(t,e,n,i){let o=!1,r=t[t.length-1].getProps(["bX","bY"],i);for(const s of t){const t=s.getProps(["bX","bY"],i);t.bY>n!==r.bY>n&&e<(r.bX-t.bX)*(n-t.bY)/(r.bY-t.bY)+t.bX&&(o=!o),r=t}return o}ze.id="polygonAnnotation",ze.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},ze.defaultRoutes={borderColor:"color",backgroundColor:"color"};const He={box:Ut,doughnutLabel:Gt,ellipse:Le,label:ne,line:fe,point:je,polygon:ze};Object.keys(He).forEach((t=>{o.d.describe(`elements.${He[t].id}`,{_fallback:"plugins.annotation.common"})}));const Be={update:Object.assign},Ye=Ot.concat(jt),Ve=(t,e)=>(0,o.i)(e)?Ke(t,e):t,$e=t=>"color"===t||"font"===t;function Xe(t="line"){return He[t]?t:(console.warn(`Unknown annotation type: '${t}', defaulting to 'line'`),"line")}function qe(t,e,n,i){const r=Ge(t,n.animations,i),s=e.annotations,a=en(e.elements,s);for(let l=0;l<s.length;l++){const e=s[l],n=Je(a,l,e.type),i=e.setContext(tn(t,n,a,e)),c=n.resolveElementProperties(t,i);c.skip=Ue(c),"elements"in c&&(Ze(n,c.elements,i,r),delete c.elements),(0,o.h)(n.x)||Object.assign(n,c),Object.assign(n,c.initProperties),c.options=Qe(i),r.update(n,c)}}function Ue(t){return isNaN(t.x)||isNaN(t.y)}function Ge(t,e,n){return"reset"===n||"none"===n||"resize"===n?Be:new i.FK(t,e)}function Ze(t,e,n,i){const o=t.elements||(t.elements=[]);o.length=e.length;for(let r=0;r<e.length;r++){const t=e[r],s=t.properties,a=Je(o,r,t.type,t.initProperties),l=n[t.optionScope].override(t);s.options=Qe(l),i.update(a,s)}}function Je(t,e,n,i){const o=He[Xe(n)];let r=t[e];return r&&r instanceof o||(r=t[e]=new o,Object.assign(r,i)),r}function Qe(t){const e=He[Xe(t.type)],n={};n.id=t.id,n.type=t.type,n.drawTime=t.drawTime,Object.assign(n,Ke(t,e.defaults),Ke(t,e.defaultRoutes));for(const i of Ye)n[i]=t[i];return n}function Ke(t,e){const n={};for(const i of Object.keys(e)){const r=e[i],s=t[i];$e(i)&&(0,o.b)(s)?n[i]=s.map((t=>Ve(t,r))):n[i]=Ve(s,r)}return n}function tn(t,e,n,i){return e.$context||(e.$context=Object.assign(Object.create(t.getContext()),{element:e,get elements(){return n.filter((t=>t&&t.options))},id:i.id,type:"annotation"}))}function en(t,e){const n=e.length,i=t.length;if(i<n){const e=n-i;t.splice(i,0,...new Array(e))}else i>n&&t.splice(n,i-n);return t}var nn="3.1.0";const on=new Map,rn=t=>"doughnutLabel"!==t.type,sn=Ot.concat(jt);var an={id:"annotation",version:nn,beforeRegister(){w("chart.js","4.0",i.kL.version)},afterRegister(){i.kL.register(He)},afterUnregister(){i.kL.unregister(He)},beforeInit(t){on.set(t,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(t,e,n){const i=on.get(t),r=i.annotations=[];let s=n.annotations;(0,o.i)(s)?Object.keys(s).forEach((t=>{const e=s[t];(0,o.i)(e)&&(e.id=t,r.push(e))})):(0,o.b)(s)&&r.push(...s),Ht(r.filter(rn),t.scales)},afterDataLimits(t,e){const n=on.get(t);Nt(t,e.scale,n.annotations.filter(rn).filter((t=>t.display&&t.adjustScaleRange)))},afterUpdate(t,e,n){const i=on.get(t);At(t,i,n),qe(t,i,n,e.mode),i.visibleElements=i.elements.filter((t=>!t.skip&&t.options.display)),zt(t,i,n)},beforeDatasetsDraw(t,e,n){ln(t,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(t,e,n){ln(t,"afterDatasetsDraw",n.clip)},beforeDatasetDraw(t,e,n){ln(t,e.index,n.clip)},beforeDraw(t,e,n){ln(t,"beforeDraw",n.clip)},afterDraw(t,e,n){ln(t,"afterDraw",n.clip)},beforeEvent(t,e,n){const i=on.get(t);Et(i,e.event,n)&&(e.changed=!0)},afterDestroy(t){on.delete(t)},getAnnotations(t){const e=on.get(t);return e?e.elements:[]},_getAnnotationElementsAtEventForMode(t,e,n){return s(t,e,n)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"},colors:{properties:["backgroundColor","borderColor"],type:"color"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:t=>!sn.includes(t)&&"init"!==t,annotations:{_allKeys:!1,_fallback:(t,e)=>`elements.${He[Xe(e.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:$e,_fallback:!0},_indexable:$e}},additionalOptionScopes:[""]};function ln(t,e,n){const{ctx:i,chartArea:r}=t,s=on.get(t);n&&(0,o.Y)(i,r);const a=cn(s.visibleElements,e).sort(((t,e)=>t.element.options.z-e.element.options.z));for(const o of a)un(i,r,s,o);n&&(0,o.$)(i)}function cn(t,e){const n=[];for(const i of t)if(i.options.drawTime===e&&n.push({element:i,main:!0}),i.elements&&i.elements.length)for(const t of i.elements)t.options.display&&t.options.drawTime===e&&n.push({element:t});return n}function un(t,e,n,i){const o=i.element;i.main?(Wt(n,o,"beforeDraw"),o.draw(t,e),Wt(n,o,"afterDraw")):o.draw(t,e)}},3:function(t,e,n){n.d(e,{j:function(){return s}});var i=n(512);const o=t=>"boolean"===typeof t?`${t}`:0===t?"0":t,r=i.W,s=(t,e)=>n=>{var i;if(null==(null===e||void 0===e?void 0:e.variants))return r(t,null===n||void 0===n?void 0:n.class,null===n||void 0===n?void 0:n.className);const{variants:s,defaultVariants:a}=e,l=Object.keys(s).map((t=>{const e=null===n||void 0===n?void 0:n[t],i=null===a||void 0===a?void 0:a[t];if(null===e)return null;const r=o(e)||o(i);return s[t][r]})),c=n&&Object.entries(n).reduce(((t,e)=>{let[n,i]=e;return void 0===i||(t[n]=i),t}),{}),u=null===e||void 0===e||null===(i=e.compoundVariants)||void 0===i?void 0:i.reduce(((t,e)=>{let{class:n,className:i,...o}=e;return Object.entries(o).every((t=>{let[e,n]=t;return Array.isArray(n)?n.includes({...a,...c}[e]):{...a,...c}[e]===n}))?[...t,n,i]:t}),[]);return r(t,l,u,null===n||void 0===n?void 0:n.class,null===n||void 0===n?void 0:n.className)}},512:function(t,e,n){function i(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=i(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function o(){for(var t,e,n=0,o="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=i(t))&&(o&&(o+=" "),o+=e);return o}n.d(e,{W:function(){return o}})},388:function(t,e,n){n.d(e,{m6:function(){return gt}});const i="-",o=t=>{const e=l(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=t,s=t=>{const n=t.split(i);return""===n[0]&&1!==n.length&&n.shift(),r(n,e)||a(t)},c=(t,e)=>{const i=n[t]||[];return e&&o[t]?[...i,...o[t]]:i};return{getClassGroupId:s,getConflictingClassGroupIds:c}},r=(t,e)=>{if(0===t.length)return e.classGroupId;const n=t[0],o=e.nextPart.get(n),s=o?r(t.slice(1),o):void 0;if(s)return s;if(0===e.validators.length)return;const a=t.join(i);return e.validators.find((({validator:t})=>t(a)))?.classGroupId},s=/^\[(.+)\]$/,a=t=>{if(s.test(t)){const e=s.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},l=t=>{const{theme:e,classGroups:n}=t,i={nextPart:new Map,validators:[]};for(const o in n)c(n[o],i,o,e);return i},c=(t,e,n,i)=>{t.forEach((t=>{if("string"!==typeof t){if("function"===typeof t)return h(t)?void c(t(i),e,n,i):void e.validators.push({validator:t,classGroupId:n});Object.entries(t).forEach((([t,o])=>{c(o,u(e,t),n,i)}))}else{const i=""===t?e:u(e,t);i.classGroupId=n}}))},u=(t,e)=>{let n=t;return e.split(i).forEach((t=>{n.nextPart.has(t)||n.nextPart.set(t,{nextPart:new Map,validators:[]}),n=n.nextPart.get(t)})),n},h=t=>t.isThemeGetter,d=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,i=new Map;const o=(o,r)=>{n.set(o,r),e++,e>t&&(e=0,i=n,n=new Map)};return{get(t){let e=n.get(t);return void 0!==e?e:void 0!==(e=i.get(t))?(o(t,e),e):void 0},set(t,e){n.has(t)?n.set(t,e):o(t,e)}}},f="!",p=":",g=p.length,m=t=>{const{prefix:e,experimentalParseClassName:n}=t;let i=t=>{const e=[];let n,i=0,o=0,r=0;for(let u=0;u<t.length;u++){let s=t[u];if(0===i&&0===o){if(s===p){e.push(t.slice(r,u)),r=u+g;continue}if("/"===s){n=u;continue}}"["===s?i++:"]"===s?i--:"("===s?o++:")"===s&&o--}const s=0===e.length?t:t.substring(r),a=b(s),l=a!==s,c=n&&n>r?n-r:void 0;return{modifiers:e,hasImportantModifier:l,baseClassName:a,maybePostfixModifierPosition:c}};if(e){const t=e+p,n=i;i=e=>e.startsWith(t)?n(e.substring(t.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:e,maybePostfixModifierPosition:void 0}}if(n){const t=i;i=e=>n({className:e,parseClassName:t})}return i},b=t=>t.endsWith(f)?t.substring(0,t.length-1):t.startsWith(f)?t.substring(1):t,y=t=>{const e=Object.fromEntries(t.orderSensitiveModifiers.map((t=>[t,!0]))),n=t=>{if(t.length<=1)return t;const n=[];let i=[];return t.forEach((t=>{const o="["===t[0]||e[t];o?(n.push(...i.sort(),t),i=[]):i.push(t)})),n.push(...i.sort()),n};return n},x=t=>({cache:d(t.cacheSize),parseClassName:m(t),sortModifiers:y(t),...o(t)}),v=/\s+/,w=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:r}=e,s=[],a=t.trim().split(v);let l="";for(let c=a.length-1;c>=0;c-=1){const t=a[c],{isExternal:e,modifiers:u,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:p}=n(t);if(e){l=t+(l.length>0?" "+l:l);continue}let g=!!p,m=i(g?d.substring(0,p):d);if(!m){if(!g){l=t+(l.length>0?" "+l:l);continue}if(m=i(d),!m){l=t+(l.length>0?" "+l:l);continue}g=!1}const b=r(u).join(":"),y=h?b+f:b,x=y+m;if(s.includes(x))continue;s.push(x);const v=o(m,g);for(let n=0;n<v.length;++n){const t=v[n];s.push(y+t)}l=t+(l.length>0?" "+l:l)}return l};function _(){let t,e,n=0,i="";while(n<arguments.length)(t=arguments[n++])&&(e=k(t))&&(i&&(i+=" "),i+=e);return i}const k=t=>{if("string"===typeof t)return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=k(t[i]))&&(n&&(n+=" "),n+=e);return n};function M(t,...e){let n,i,o,r=s;function s(s){const l=e.reduce(((t,e)=>e(t)),t());return n=x(l),i=n.cache.get,o=n.cache.set,r=a,a(s)}function a(t){const e=i(t);if(e)return e;const r=w(t,n);return o(t,r),r}return function(){return r(_.apply(null,arguments))}}const S=t=>{const e=e=>e[t]||[];return e.isThemeGetter=!0,e},D=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,T=/^\((?:(\w[\w-]*):)?(.+)\)$/i,C=/^\d+\/\d+$/,P=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,O=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,A=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,I=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=t=>C.test(t),L=t=>!!t&&!Number.isNaN(Number(t)),F=t=>!!t&&Number.isInteger(Number(t)),j=t=>t.endsWith("%")&&L(t.slice(0,-1)),z=t=>P.test(t),W=()=>!0,N=t=>O.test(t)&&!A.test(t),H=()=>!1,B=t=>E.test(t),Y=t=>I.test(t),V=t=>!X(t)&&!Q(t),$=t=>rt(t,ct,H),X=t=>D.test(t),q=t=>rt(t,ut,N),U=t=>rt(t,ht,L),G=t=>rt(t,at,H),Z=t=>rt(t,lt,Y),J=t=>rt(t,ft,B),Q=t=>T.test(t),K=t=>st(t,ut),tt=t=>st(t,dt),et=t=>st(t,at),nt=t=>st(t,ct),it=t=>st(t,lt),ot=t=>st(t,ft,!0),rt=(t,e,n)=>{const i=D.exec(t);return!!i&&(i[1]?e(i[1]):n(i[2]))},st=(t,e,n=!1)=>{const i=T.exec(t);return!!i&&(i[1]?e(i[1]):n)},at=t=>"position"===t||"percentage"===t,lt=t=>"image"===t||"url"===t,ct=t=>"length"===t||"size"===t||"bg-size"===t,ut=t=>"length"===t,ht=t=>"number"===t,dt=t=>"family-name"===t,ft=t=>"shadow"===t,pt=(Symbol.toStringTag,()=>{const t=S("color"),e=S("font"),n=S("text"),i=S("font-weight"),o=S("tracking"),r=S("leading"),s=S("breakpoint"),a=S("container"),l=S("spacing"),c=S("radius"),u=S("shadow"),h=S("inset-shadow"),d=S("text-shadow"),f=S("drop-shadow"),p=S("blur"),g=S("perspective"),m=S("aspect"),b=S("ease"),y=S("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...v(),Q,X],_=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],M=()=>[Q,X,l],D=()=>[R,"full","auto",...M()],T=()=>[F,"none","subgrid",Q,X],C=()=>["auto",{span:["full",F,Q,X]},F,Q,X],P=()=>[F,"auto",Q,X],O=()=>["auto","min","max","fr",Q,X],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...M()],N=()=>[R,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],H=()=>[t,Q,X],B=()=>[...v(),et,G,{position:[Q,X]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],rt=()=>["auto","cover","contain",nt,$,{size:[Q,X]}],st=()=>[j,K,q],at=()=>["","none","full",c,Q,X],lt=()=>["",L,K,q],ct=()=>["solid","dashed","dotted","double"],ut=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ht=()=>[L,j,et,G],dt=()=>["","none",p,Q,X],ft=()=>["none",L,Q,X],pt=()=>["none",L,Q,X],gt=()=>[L,Q,X],mt=()=>[R,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[z],breakpoint:[z],color:[W],container:[z],"drop-shadow":[z],ease:["in","out","in-out"],font:[V],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[z],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[z],shadow:[z],spacing:["px",L],text:[z],"text-shadow":[z],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",R,X,Q,m]}],container:["container"],columns:[{columns:[L,X,Q,a]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[F,"auto",Q,X]}],basis:[{basis:[R,"full","auto",a,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[L,R,"auto","initial","none",X]}],grow:[{grow:["",L,Q,X]}],shrink:[{shrink:["",L,Q,X]}],order:[{order:[F,"first","last","none",Q,X]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":O()}],"auto-rows":[{"auto-rows":O()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],w:[{w:[a,"screen",...N()]}],"min-w":[{"min-w":[a,"screen","none",...N()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",n,K,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Q,U]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",j,X]}],"font-family":[{font:[tt,X,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Q,X]}],"line-clamp":[{"line-clamp":[L,"none",Q,U]}],leading:[{leading:[r,...M()]}],"list-image":[{"list-image":["none",Q,X]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,X]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ct(),"wavy"]}],"text-decoration-thickness":[{decoration:[L,"from-font","auto",Q,q]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[L,"auto",Q,X]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q,X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:rt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},F,Q,X],radial:["",Q,X],conic:[F,Q,X]},it,Z]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:st()}],"gradient-via-pos":[{via:st()}],"gradient-to-pos":[{to:st()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:at()}],"rounded-s":[{"rounded-s":at()}],"rounded-e":[{"rounded-e":at()}],"rounded-t":[{"rounded-t":at()}],"rounded-r":[{"rounded-r":at()}],"rounded-b":[{"rounded-b":at()}],"rounded-l":[{"rounded-l":at()}],"rounded-ss":[{"rounded-ss":at()}],"rounded-se":[{"rounded-se":at()}],"rounded-ee":[{"rounded-ee":at()}],"rounded-es":[{"rounded-es":at()}],"rounded-tl":[{"rounded-tl":at()}],"rounded-tr":[{"rounded-tr":at()}],"rounded-br":[{"rounded-br":at()}],"rounded-bl":[{"rounded-bl":at()}],"border-w":[{border:lt()}],"border-w-x":[{"border-x":lt()}],"border-w-y":[{"border-y":lt()}],"border-w-s":[{"border-s":lt()}],"border-w-e":[{"border-e":lt()}],"border-w-t":[{"border-t":lt()}],"border-w-r":[{"border-r":lt()}],"border-w-b":[{"border-b":lt()}],"border-w-l":[{"border-l":lt()}],"divide-x":[{"divide-x":lt()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":lt()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ct(),"hidden","none"]}],"divide-style":[{divide:[...ct(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...ct(),"none","hidden"]}],"outline-offset":[{"outline-offset":[L,Q,X]}],"outline-w":[{outline:["",L,K,q]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",u,ot,J]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",h,ot,J]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:lt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[L,q]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":lt()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",d,ot,J]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[L,Q,X]}],"mix-blend":[{"mix-blend":[...ut(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ut()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[L]}],"mask-image-linear-from-pos":[{"mask-linear-from":ht()}],"mask-image-linear-to-pos":[{"mask-linear-to":ht()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":ht()}],"mask-image-t-to-pos":[{"mask-t-to":ht()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":ht()}],"mask-image-r-to-pos":[{"mask-r-to":ht()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":ht()}],"mask-image-b-to-pos":[{"mask-b-to":ht()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":ht()}],"mask-image-l-to-pos":[{"mask-l-to":ht()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":ht()}],"mask-image-x-to-pos":[{"mask-x-to":ht()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":ht()}],"mask-image-y-to-pos":[{"mask-y-to":ht()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[Q,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":ht()}],"mask-image-radial-to-pos":[{"mask-radial-to":ht()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":v()}],"mask-image-conic-pos":[{"mask-conic":[L]}],"mask-image-conic-from-pos":[{"mask-conic-from":ht()}],"mask-image-conic-to-pos":[{"mask-conic-to":ht()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:rt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,X]}],filter:[{filter:["","none",Q,X]}],blur:[{blur:dt()}],brightness:[{brightness:[L,Q,X]}],contrast:[{contrast:[L,Q,X]}],"drop-shadow":[{"drop-shadow":["","none",f,ot,J]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",L,Q,X]}],"hue-rotate":[{"hue-rotate":[L,Q,X]}],invert:[{invert:["",L,Q,X]}],saturate:[{saturate:[L,Q,X]}],sepia:[{sepia:["",L,Q,X]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,X]}],"backdrop-blur":[{"backdrop-blur":dt()}],"backdrop-brightness":[{"backdrop-brightness":[L,Q,X]}],"backdrop-contrast":[{"backdrop-contrast":[L,Q,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",L,Q,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,Q,X]}],"backdrop-invert":[{"backdrop-invert":["",L,Q,X]}],"backdrop-opacity":[{"backdrop-opacity":[L,Q,X]}],"backdrop-saturate":[{"backdrop-saturate":[L,Q,X]}],"backdrop-sepia":[{"backdrop-sepia":["",L,Q,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,X]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[L,"initial",Q,X]}],ease:[{ease:["linear","initial",b,Q,X]}],delay:[{delay:[L,Q,X]}],animate:[{animate:["none",y,Q,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Q,X]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:ft()}],"rotate-x":[{"rotate-x":ft()}],"rotate-y":[{"rotate-y":ft()}],"rotate-z":[{"rotate-z":ft()}],scale:[{scale:pt()}],"scale-x":[{"scale-x":pt()}],"scale-y":[{"scale-y":pt()}],"scale-z":[{"scale-z":pt()}],"scale-3d":["scale-3d"],skew:[{skew:gt()}],"skew-x":[{"skew-x":gt()}],"skew-y":[{"skew-y":gt()}],transform:[{transform:[Q,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:mt()}],"translate-x":[{"translate-x":mt()}],"translate-y":[{"translate-y":mt()}],"translate-z":[{"translate-z":mt()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q,X]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q,X]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[L,K,q,U]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),gt=M(pt)},334:function(t,e,n){n.d(e,{x1:function(){return y}});var i=n(148),o=n(252),r=n(262);const s={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},a={ariaLabel:{type:String},ariaDescribedby:{type:String}},l={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...s,...a},c="2"===o.i8[0]?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function u(t){return(0,r.X3)(t)?(0,r.IU)(t):t}function h(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return(0,r.X3)(e)?new Proxy(t,{}):t}function d(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function f(t,e){t.labels=e}function p(t,e,n){const i=[];t.datasets=e.map((e=>{const o=t.datasets.find((t=>t[n]===e[n]));return o&&e.data&&!i.includes(o)?(i.push(o),Object.assign(o,e),o):{...e}}))}function g(t,e){const n={labels:[],datasets:[]};return f(n,t.labels),p(n,t.datasets,e),n}const m=(0,o.aZ)({props:l,setup(t,e){let{expose:n,slots:s}=e;const a=(0,r.iH)(null),l=(0,r.XI)(null);n({chart:l});const c=()=>{if(!a.value)return;const{type:e,data:n,options:o,plugins:r,datasetIdKey:s}=t,c=g(n,s),u=h(c,n);l.value=new i.kL(a.value,{type:e,data:u,options:{...o},plugins:r})},m=()=>{const e=(0,r.IU)(l.value);e&&(t.destroyDelay>0?setTimeout((()=>{e.destroy(),l.value=null}),t.destroyDelay):(e.destroy(),l.value=null))},b=e=>{e.update(t.updateMode)};return(0,o.bv)(c),(0,o.Ah)(m),(0,o.YP)([()=>t.options,()=>t.data],((e,n)=>{let[i,s]=e,[a,c]=n;const h=(0,r.IU)(l.value);if(!h)return;let g=!1;if(i){const t=u(i),e=u(a);t&&t!==e&&(d(h,t),g=!0)}if(s){const e=u(s.labels),n=u(c.labels),i=u(s.datasets),o=u(c.datasets);e!==n&&(f(h.config.data,e),g=!0),i&&i!==o&&(p(h.config.data,i,t.datasetIdKey),g=!0)}g&&(0,o.Y3)((()=>{b(h)}))}),{deep:!0}),()=>(0,o.h)("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:a},[(0,o.h)("p",{},[s.default?s.default():""])])}});function b(t,e){return i.kL.register(e),(0,o.aZ)({props:s,setup(e,n){let{expose:i}=n;const s=(0,r.XI)(null),a=t=>{s.value=t?.chart};return i({chart:s}),()=>(0,o.h)(m,c({ref:a},{type:t,...e}))}})}const y=b("line",i.ST)},201:function(t,e,n){n.d(e,{PO:function(){return lt},p7:function(){return oe},tv:function(){return se},yj:function(){return ae}});var i=n(252),o=n(262);
|
|
/*!
|
|
* vue-router v4.5.1
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/
|
|
const r="undefined"!==typeof document;function s(t){return"object"===typeof t||"displayName"in t||"props"in t||"__vccOpts"in t}function a(t){return t.__esModule||"Module"===t[Symbol.toStringTag]||t.default&&s(t.default)}const l=Object.assign;function c(t,e){const n={};for(const i in e){const o=e[i];n[i]=h(o)?o.map(t):t(o)}return n}const u=()=>{},h=Array.isArray;const d=/#/g,f=/&/g,p=/\//g,g=/=/g,m=/\?/g,b=/\+/g,y=/%5B/g,x=/%5D/g,v=/%5E/g,w=/%60/g,_=/%7B/g,k=/%7C/g,M=/%7D/g,S=/%20/g;function D(t){return encodeURI(""+t).replace(k,"|").replace(y,"[").replace(x,"]")}function T(t){return D(t).replace(_,"{").replace(M,"}").replace(v,"^")}function C(t){return D(t).replace(b,"%2B").replace(S,"+").replace(d,"%23").replace(f,"%26").replace(w,"`").replace(_,"{").replace(M,"}").replace(v,"^")}function P(t){return C(t).replace(g,"%3D")}function O(t){return D(t).replace(d,"%23").replace(m,"%3F")}function A(t){return null==t?"":O(t).replace(p,"%2F")}function E(t){try{return decodeURIComponent(""+t)}catch(e){}return""+t}const I=/\/$/,R=t=>t.replace(I,"");function L(t,e,n="/"){let i,o={},r="",s="";const a=e.indexOf("#");let l=e.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(i=e.slice(0,l),r=e.slice(l+1,a>-1?a:e.length),o=t(r)),a>-1&&(i=i||e.slice(0,a),s=e.slice(a,e.length)),i=Y(null!=i?i:e,n),{fullPath:i+(r&&"?")+r+s,path:i,query:o,hash:E(s)}}function F(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function j(t,e){return e&&t.toLowerCase().startsWith(e.toLowerCase())?t.slice(e.length)||"/":t}function z(t,e,n){const i=e.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&W(e.matched[i],n.matched[o])&&N(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function W(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function N(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!H(t[n],e[n]))return!1;return!0}function H(t,e){return h(t)?B(t,e):h(e)?B(e,t):t===e}function B(t,e){return h(e)?t.length===e.length&&t.every(((t,n)=>t===e[n])):1===t.length&&t[0]===e}function Y(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),i=t.split("/"),o=i[i.length-1];".."!==o&&"."!==o||i.push("");let r,s,a=n.length-1;for(r=0;r<i.length;r++)if(s=i[r],"."!==s){if(".."!==s)break;a>1&&a--}return n.slice(0,a).join("/")+"/"+i.slice(r).join("/")}const V={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var $,X;(function(t){t["pop"]="pop",t["push"]="push"})($||($={})),function(t){t["back"]="back",t["forward"]="forward",t["unknown"]=""}(X||(X={}));function q(t){if(!t)if(r){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return"/"!==t[0]&&"#"!==t[0]&&(t="/"+t),R(t)}const U=/^[^#]+#/;function G(t,e){return t.replace(U,"#")+e}function Z(t,e){const n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:e.behavior,left:i.left-n.left-(e.left||0),top:i.top-n.top-(e.top||0)}}const J=()=>({left:window.scrollX,top:window.scrollY});function Q(t){let e;if("el"in t){const n=t.el,i="string"===typeof n&&n.startsWith("#");0;const o="string"===typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;e=Z(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(null!=e.left?e.left:window.scrollX,null!=e.top?e.top:window.scrollY)}function K(t,e){const n=history.state?history.state.position-e:-1;return n+t}const tt=new Map;function et(t,e){tt.set(t,e)}function nt(t){const e=tt.get(t);return tt.delete(t),e}let it=()=>location.protocol+"//"+location.host;function ot(t,e){const{pathname:n,search:i,hash:o}=e,r=t.indexOf("#");if(r>-1){let e=o.includes(t.slice(r))?t.slice(r).length:1,n=o.slice(e);return"/"!==n[0]&&(n="/"+n),j(n,"")}const s=j(n,t);return s+i+o}function rt(t,e,n,i){let o=[],r=[],s=null;const a=({state:r})=>{const a=ot(t,location),l=n.value,c=e.value;let u=0;if(r){if(n.value=a,e.value=r,s&&s===l)return void(s=null);u=c?r.position-c.position:0}else i(a);o.forEach((t=>{t(n.value,l,{delta:u,type:$.pop,direction:u?u>0?X.forward:X.back:X.unknown})}))};function c(){s=n.value}function u(t){o.push(t);const e=()=>{const e=o.indexOf(t);e>-1&&o.splice(e,1)};return r.push(e),e}function h(){const{history:t}=window;t.state&&t.replaceState(l({},t.state,{scroll:J()}),"")}function d(){for(const t of r)t();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:c,listen:u,destroy:d}}function st(t,e,n,i=!1,o=!1){return{back:t,current:e,forward:n,replaced:i,position:window.history.length,scroll:o?J():null}}function at(t){const{history:e,location:n}=window,i={value:ot(t,n)},o={value:e.state};function r(i,r,s){const a=t.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?t:t.slice(a))+i:it()+t+i;try{e[s?"replaceState":"pushState"](r,"",l),o.value=r}catch(c){console.error(c),n[s?"replace":"assign"](l)}}function s(t,n){const s=l({},e.state,st(o.value.back,t,o.value.forward,!0),n,{position:o.value.position});r(t,s,!0),i.value=t}function a(t,n){const s=l({},o.value,e.state,{forward:t,scroll:J()});r(s.current,s,!0);const a=l({},st(i.value,t,null),{position:s.position+1},n);r(t,a,!1),i.value=t}return o.value||r(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0),{location:i,state:o,push:a,replace:s}}function lt(t){t=q(t);const e=at(t),n=rt(t,e.state,e.location,e.replace);function i(t,e=!0){e||n.pauseListeners(),history.go(t)}const o=l({location:"",base:t,go:i,createHref:G.bind(null,t)},e,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function ct(t){return"string"===typeof t||t&&"object"===typeof t}function ut(t){return"string"===typeof t||"symbol"===typeof t}const ht=Symbol("");var dt;(function(t){t[t["aborted"]=4]="aborted",t[t["cancelled"]=8]="cancelled",t[t["duplicated"]=16]="duplicated"})(dt||(dt={}));function ft(t,e){return l(new Error,{type:t,[ht]:!0},e)}function pt(t,e){return t instanceof Error&&ht in t&&(null==e||!!(t.type&e))}const gt="[^/]+?",mt={sensitive:!1,strict:!1,start:!0,end:!0},bt=/[.+*?^${}()[\]/\\]/g;function yt(t,e){const n=l({},mt,e),i=[];let o=n.start?"^":"";const r=[];for(const l of t){const t=l.length?[]:[90];n.strict&&!l.length&&(o+="/");for(let e=0;e<l.length;e++){const i=l[e];let s=40+(n.sensitive?.25:0);if(0===i.type)e||(o+="/"),o+=i.value.replace(bt,"\\$&"),s+=40;else if(1===i.type){const{value:t,repeatable:n,optional:a,regexp:c}=i;r.push({name:t,repeatable:n,optional:a});const h=c||gt;if(h!==gt){s+=10;try{new RegExp(`(${h})`)}catch(u){throw new Error(`Invalid custom RegExp for param "${t}" (${h}): `+u.message)}}let d=n?`((?:${h})(?:/(?:${h}))*)`:`(${h})`;e||(d=a&&l.length<2?`(?:/${d})`:"/"+d),a&&(d+="?"),o+=d,s+=20,a&&(s+=-8),n&&(s+=-20),".*"===h&&(s+=-50)}t.push(s)}i.push(t)}if(n.strict&&n.end){const t=i.length-1;i[t][i[t].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function a(t){const e=t.match(s),n={};if(!e)return null;for(let i=1;i<e.length;i++){const t=e[i]||"",o=r[i-1];n[o.name]=t&&o.repeatable?t.split("/"):t}return n}function c(e){let n="",i=!1;for(const o of t){i&&n.endsWith("/")||(n+="/"),i=!1;for(const t of o)if(0===t.type)n+=t.value;else if(1===t.type){const{value:r,repeatable:s,optional:a}=t,l=r in e?e[r]:"";if(h(l)&&!s)throw new Error(`Provided param "${r}" is an array but it is not repeatable (* or + modifiers)`);const c=h(l)?l.join("/"):l;if(!c){if(!a)throw new Error(`Missing required param "${r}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):i=!0)}n+=c}}return n||"/"}return{re:s,score:i,keys:r,parse:a,stringify:c}}function xt(t,e){let n=0;while(n<t.length&&n<e.length){const i=e[n]-t[n];if(i)return i;n++}return t.length<e.length?1===t.length&&80===t[0]?-1:1:t.length>e.length?1===e.length&&80===e[0]?1:-1:0}function vt(t,e){let n=0;const i=t.score,o=e.score;while(n<i.length&&n<o.length){const t=xt(i[n],o[n]);if(t)return t;n++}if(1===Math.abs(o.length-i.length)){if(wt(i))return 1;if(wt(o))return-1}return o.length-i.length}function wt(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const _t={type:0,value:""},kt=/[a-zA-Z0-9_]/;function Mt(t){if(!t)return[[]];if("/"===t)return[[_t]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(t){throw new Error(`ERR (${n})/"${c}": ${t}`)}let n=0,i=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let a,l=0,c="",u="";function h(){c&&(0===n?r.push({type:0,value:c}):1===n||2===n||3===n?(r.length>1&&("*"===a||"+"===a)&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):e("Invalid state to consume buffer"),c="")}function d(){c+=a}while(l<t.length)if(a=t[l++],"\\"!==a||2===n)switch(n){case 0:"/"===a?(c&&h(),s()):":"===a?(h(),n=1):d();break;case 4:d(),n=i;break;case 1:"("===a?n=2:kt.test(a)?d():(h(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--);break;case 2:")"===a?"\\"==u[u.length-1]?u=u.slice(0,-1)+a:n=3:u+=a;break;case 3:h(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--,u="";break;default:e("Unknown state");break}else i=n,n=4;return 2===n&&e(`Unfinished custom RegExp for param "${c}"`),h(),s(),o}function St(t,e,n){const i=yt(Mt(t.path),n);const o=l(i,{record:t,parent:e,children:[],alias:[]});return e&&!o.record.aliasOf===!e.record.aliasOf&&e.children.push(o),o}function Dt(t,e){const n=[],i=new Map;function o(t){return i.get(t)}function r(t,n,i){const o=!i,a=Ct(t);a.aliasOf=i&&i.record;const h=Et(e,t),d=[a];if("alias"in t){const e="string"===typeof t.alias?[t.alias]:t.alias;for(const t of e)d.push(Ct(l({},a,{components:i?i.record.components:a.components,path:t,aliasOf:i?i.record:a})))}let f,p;for(const e of d){const{path:l}=e;if(n&&"/"!==l[0]){const t=n.record.path,i="/"===t[t.length-1]?"":"/";e.path=n.record.path+(l&&i+l)}if(f=St(e,n,h),i?i.alias.push(f):(p=p||f,p!==f&&p.alias.push(f),o&&t.name&&!Ot(f)&&s(t.name)),Lt(f)&&c(f),a.children){const t=a.children;for(let e=0;e<t.length;e++)r(t[e],f,i&&i.children[e])}i=i||f}return p?()=>{s(p)}:u}function s(t){if(ut(t)){const e=i.get(t);e&&(i.delete(t),n.splice(n.indexOf(e),1),e.children.forEach(s),e.alias.forEach(s))}else{const e=n.indexOf(t);e>-1&&(n.splice(e,1),t.record.name&&i.delete(t.record.name),t.children.forEach(s),t.alias.forEach(s))}}function a(){return n}function c(t){const e=It(t,n);n.splice(e,0,t),t.record.name&&!Ot(t)&&i.set(t.record.name,t)}function h(t,e){let o,r,s,a={};if("name"in t&&t.name){if(o=i.get(t.name),!o)throw ft(1,{location:t});0,s=o.record.name,a=l(Tt(e.params,o.keys.filter((t=>!t.optional)).concat(o.parent?o.parent.keys.filter((t=>t.optional)):[]).map((t=>t.name))),t.params&&Tt(t.params,o.keys.map((t=>t.name)))),r=o.stringify(a)}else if(null!=t.path)r=t.path,o=n.find((t=>t.re.test(r))),o&&(a=o.parse(r),s=o.record.name);else{if(o=e.name?i.get(e.name):n.find((t=>t.re.test(e.path))),!o)throw ft(1,{location:t,currentLocation:e});s=o.record.name,a=l({},e.params,t.params),r=o.stringify(a)}const c=[];let u=o;while(u)c.unshift(u.record),u=u.parent;return{name:s,path:r,params:a,matched:c,meta:At(c)}}function d(){n.length=0,i.clear()}return e=Et({strict:!1,end:!0,sensitive:!1},e),t.forEach((t=>r(t))),{addRoute:r,resolve:h,removeRoute:s,clearRoutes:d,getRoutes:a,getRecordMatcher:o}}function Tt(t,e){const n={};for(const i of e)i in t&&(n[i]=t[i]);return n}function Ct(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:Pt(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function Pt(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const i in t.components)e[i]="object"===typeof n?n[i]:n;return e}function Ot(t){while(t){if(t.record.aliasOf)return!0;t=t.parent}return!1}function At(t){return t.reduce(((t,e)=>l(t,e.meta)),{})}function Et(t,e){const n={};for(const i in t)n[i]=i in e?e[i]:t[i];return n}function It(t,e){let n=0,i=e.length;while(n!==i){const o=n+i>>1,r=vt(t,e[o]);r<0?i=o:n=o+1}const o=Rt(t);return o&&(i=e.lastIndexOf(o,i-1)),i}function Rt(t){let e=t;while(e=e.parent)if(Lt(e)&&0===vt(t,e))return e}function Lt({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function Ft(t){const e={};if(""===t||"?"===t)return e;const n="?"===t[0],i=(n?t.slice(1):t).split("&");for(let o=0;o<i.length;++o){const t=i[o].replace(b," "),n=t.indexOf("="),r=E(n<0?t:t.slice(0,n)),s=n<0?null:E(t.slice(n+1));if(r in e){let t=e[r];h(t)||(t=e[r]=[t]),t.push(s)}else e[r]=s}return e}function jt(t){let e="";for(let n in t){const i=t[n];if(n=P(n),null==i){void 0!==i&&(e+=(e.length?"&":"")+n);continue}const o=h(i)?i.map((t=>t&&C(t))):[i&&C(i)];o.forEach((t=>{void 0!==t&&(e+=(e.length?"&":"")+n,null!=t&&(e+="="+t))}))}return e}function zt(t){const e={};for(const n in t){const i=t[n];void 0!==i&&(e[n]=h(i)?i.map((t=>null==t?null:""+t)):null==i?i:""+i)}return e}const Wt=Symbol(""),Nt=Symbol(""),Ht=Symbol(""),Bt=Symbol(""),Yt=Symbol("");function Vt(){let t=[];function e(e){return t.push(e),()=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function $t(t,e,n,i,o,r=(t=>t())){const s=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise(((a,l)=>{const c=t=>{!1===t?l(ft(4,{from:n,to:e})):t instanceof Error?l(t):ct(t)?l(ft(2,{from:e,to:t})):(s&&i.enterCallbacks[o]===s&&"function"===typeof t&&s.push(t),a())},u=r((()=>t.call(i&&i.instances[o],e,n,c)));let h=Promise.resolve(u);t.length<3&&(h=h.then(c)),h.catch((t=>l(t)))}))}function Xt(t,e,n,i,o=(t=>t())){const r=[];for(const l of t){0;for(const t in l.components){let c=l.components[t];if("beforeRouteEnter"===e||l.instances[t])if(s(c)){const s=c.__vccOpts||c,a=s[e];a&&r.push($t(a,n,i,l,t,o))}else{let s=c();0,r.push((()=>s.then((r=>{if(!r)throw new Error(`Couldn't resolve component "${t}" at "${l.path}"`);const s=a(r)?r.default:r;l.mods[t]=r,l.components[t]=s;const c=s.__vccOpts||s,u=c[e];return u&&$t(u,n,i,l,t,o)()}))))}}}return r}function qt(t){const e=(0,i.f3)(Ht),n=(0,i.f3)(Bt);const r=(0,i.Fl)((()=>{const n=(0,o.SU)(t.to);return e.resolve(n)})),s=(0,i.Fl)((()=>{const{matched:t}=r.value,{length:e}=t,i=t[e-1],o=n.matched;if(!i||!o.length)return-1;const s=o.findIndex(W.bind(null,i));if(s>-1)return s;const a=Kt(t[e-2]);return e>1&&Kt(i)===a&&o[o.length-1].path!==a?o.findIndex(W.bind(null,t[e-2])):s})),a=(0,i.Fl)((()=>s.value>-1&&Qt(n.params,r.value.params))),l=(0,i.Fl)((()=>s.value>-1&&s.value===n.matched.length-1&&N(n.params,r.value.params)));function c(n={}){if(Jt(n)){const n=e[(0,o.SU)(t.replace)?"replace":"push"]((0,o.SU)(t.to)).catch(u);return t.viewTransition&&"undefined"!==typeof document&&"startViewTransition"in document&&document.startViewTransition((()=>n)),n}return Promise.resolve()}return{route:r,href:(0,i.Fl)((()=>r.value.href)),isActive:a,isExactActive:l,navigate:c}}function Ut(t){return 1===t.length?t[0]:t}const Gt=(0,i.aZ)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:qt,setup(t,{slots:e}){const n=(0,o.qj)(qt(t)),{options:r}=(0,i.f3)(Ht),s=(0,i.Fl)((()=>({[te(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[te(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=e.default&&Ut(e.default(n));return t.custom?o:(0,i.h)("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Zt=Gt;function Jt(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function Qt(t,e){for(const n in e){const i=e[n],o=t[n];if("string"===typeof i){if(i!==o)return!1}else if(!h(o)||o.length!==i.length||i.some(((t,e)=>t!==o[e])))return!1}return!0}function Kt(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const te=(t,e,n)=>null!=t?t:null!=e?e:n,ee=(0,i.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=(0,i.f3)(Yt),s=(0,i.Fl)((()=>t.route||r.value)),a=(0,i.f3)(Nt,0),c=(0,i.Fl)((()=>{let t=(0,o.SU)(a);const{matched:e}=s.value;let n;while((n=e[t])&&!n.components)t++;return t})),u=(0,i.Fl)((()=>s.value.matched[c.value]));(0,i.JJ)(Nt,(0,i.Fl)((()=>c.value+1))),(0,i.JJ)(Wt,u),(0,i.JJ)(Yt,s);const h=(0,o.iH)();return(0,i.YP)((()=>[h.value,u.value,t.name]),(([t,e,n],[i,o,r])=>{e&&(e.instances[n]=t,o&&o!==e&&t&&t===i&&(e.leaveGuards.size||(e.leaveGuards=o.leaveGuards),e.updateGuards.size||(e.updateGuards=o.updateGuards))),!t||!e||o&&W(e,o)&&i||(e.enterCallbacks[n]||[]).forEach((e=>e(t)))}),{flush:"post"}),()=>{const o=s.value,r=t.name,a=u.value,c=a&&a.components[r];if(!c)return ne(n.default,{Component:c,route:o});const d=a.props[r],f=d?!0===d?o.params:"function"===typeof d?d(o):d:null,p=t=>{t.component.isUnmounted&&(a.instances[r]=null)},g=(0,i.h)(c,l({},f,e,{onVnodeUnmounted:p,ref:h}));return ne(n.default,{Component:g,route:o})||g}}});function ne(t,e){if(!t)return null;const n=t(e);return 1===n.length?n[0]:n}const ie=ee;function oe(t){const e=Dt(t.routes,t),n=t.parseQuery||Ft,s=t.stringifyQuery||jt,a=t.history;const d=Vt(),f=Vt(),p=Vt(),g=(0,o.XI)(V);let m=V;r&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const b=c.bind(null,(t=>""+t)),y=c.bind(null,A),x=c.bind(null,E);function v(t,n){let i,o;return ut(t)?(i=e.getRecordMatcher(t),o=n):o=t,e.addRoute(o,i)}function w(t){const n=e.getRecordMatcher(t);n&&e.removeRoute(n)}function _(){return e.getRoutes().map((t=>t.record))}function k(t){return!!e.getRecordMatcher(t)}function M(t,i){if(i=l({},i||g.value),"string"===typeof t){const o=L(n,t,i.path),r=e.resolve({path:o.path},i),s=a.createHref(o.fullPath);return l(o,r,{params:x(r.params),hash:E(o.hash),redirectedFrom:void 0,href:s})}let o;if(null!=t.path)o=l({},t,{path:L(n,t.path,i.path).path});else{const e=l({},t.params);for(const t in e)null==e[t]&&delete e[t];o=l({},t,{params:y(e)}),i.params=y(i.params)}const r=e.resolve(o,i),c=t.hash||"";r.params=b(x(r.params));const u=F(s,l({},t,{hash:T(c),path:r.path})),h=a.createHref(u);return l({fullPath:u,hash:c,query:s===jt?zt(t.query):t.query||{}},r,{redirectedFrom:void 0,href:h})}function S(t){return"string"===typeof t?L(n,t,g.value.path):l({},t)}function D(t,e){if(m!==t)return ft(8,{from:e,to:t})}function C(t){return I(t)}function P(t){return C(l(S(t),{replace:!0}))}function O(t){const e=t.matched[t.matched.length-1];if(e&&e.redirect){const{redirect:n}=e;let i="function"===typeof n?n(t):n;return"string"===typeof i&&(i=i.includes("?")||i.includes("#")?i=S(i):{path:i},i.params={}),l({query:t.query,hash:t.hash,params:null!=i.path?{}:t.params},i)}}function I(t,e){const n=m=M(t),i=g.value,o=t.state,r=t.force,a=!0===t.replace,c=O(n);if(c)return I(l(S(c),{state:"object"===typeof c?l({},o,c.state):o,force:r,replace:a}),e||n);const u=n;let h;return u.redirectedFrom=e,!r&&z(s,i,n)&&(h=ft(16,{to:u,from:i}),it(i,i,!0,!1)),(h?Promise.resolve(h):W(u,i)).catch((t=>pt(t)?pt(t,2)?t:tt(t):G(t,u,i))).then((t=>{if(t){if(pt(t,2))return I(l({replace:a},S(t.to),{state:"object"===typeof t.to?l({},o,t.to.state):o,force:r}),e||u)}else t=H(u,i,!0,a,o);return N(u,i,t),t}))}function R(t,e){const n=D(t,e);return n?Promise.reject(n):Promise.resolve()}function j(t){const e=st.values().next().value;return e&&"function"===typeof e.runWithContext?e.runWithContext(t):t()}function W(t,e){let n;const[i,o,r]=re(t,e);n=Xt(i.reverse(),"beforeRouteLeave",t,e);for(const a of i)a.leaveGuards.forEach((i=>{n.push($t(i,t,e))}));const s=R.bind(null,t,e);return n.push(s),lt(n).then((()=>{n=[];for(const i of d.list())n.push($t(i,t,e));return n.push(s),lt(n)})).then((()=>{n=Xt(o,"beforeRouteUpdate",t,e);for(const i of o)i.updateGuards.forEach((i=>{n.push($t(i,t,e))}));return n.push(s),lt(n)})).then((()=>{n=[];for(const i of r)if(i.beforeEnter)if(h(i.beforeEnter))for(const o of i.beforeEnter)n.push($t(o,t,e));else n.push($t(i.beforeEnter,t,e));return n.push(s),lt(n)})).then((()=>(t.matched.forEach((t=>t.enterCallbacks={})),n=Xt(r,"beforeRouteEnter",t,e,j),n.push(s),lt(n)))).then((()=>{n=[];for(const i of f.list())n.push($t(i,t,e));return n.push(s),lt(n)})).catch((t=>pt(t,8)?t:Promise.reject(t)))}function N(t,e,n){p.list().forEach((i=>j((()=>i(t,e,n)))))}function H(t,e,n,i,o){const s=D(t,e);if(s)return s;const c=e===V,u=r?history.state:{};n&&(i||c?a.replace(t.fullPath,l({scroll:c&&u&&u.scroll},o)):a.push(t.fullPath,o)),g.value=t,it(t,e,n,c),tt()}let B;function Y(){B||(B=a.listen(((t,e,n)=>{if(!at.listening)return;const i=M(t),o=O(i);if(o)return void I(l(o,{replace:!0,force:!0}),i).catch(u);m=i;const s=g.value;r&&et(K(s.fullPath,n.delta),J()),W(i,s).catch((t=>pt(t,12)?t:pt(t,2)?(I(l(S(t.to),{force:!0}),i).then((t=>{pt(t,20)&&!n.delta&&n.type===$.pop&&a.go(-1,!1)})).catch(u),Promise.reject()):(n.delta&&a.go(-n.delta,!1),G(t,i,s)))).then((t=>{t=t||H(i,s,!1),t&&(n.delta&&!pt(t,8)?a.go(-n.delta,!1):n.type===$.pop&&pt(t,20)&&a.go(-1,!1)),N(i,s,t)})).catch(u)})))}let X,q=Vt(),U=Vt();function G(t,e,n){tt(t);const i=U.list();return i.length?i.forEach((i=>i(t,e,n))):console.error(t),Promise.reject(t)}function Z(){return X&&g.value!==V?Promise.resolve():new Promise(((t,e)=>{q.add([t,e])}))}function tt(t){return X||(X=!t,Y(),q.list().forEach((([e,n])=>t?n(t):e())),q.reset()),t}function it(e,n,o,s){const{scrollBehavior:a}=t;if(!r||!a)return Promise.resolve();const l=!o&&nt(K(e.fullPath,0))||(s||!o)&&history.state&&history.state.scroll||null;return(0,i.Y3)().then((()=>a(e,n,l))).then((t=>t&&Q(t))).catch((t=>G(t,e,n)))}const ot=t=>a.go(t);let rt;const st=new Set,at={currentRoute:g,listening:!0,addRoute:v,removeRoute:w,clearRoutes:e.clearRoutes,hasRoute:k,getRoutes:_,resolve:M,options:t,push:C,replace:P,go:ot,back:()=>ot(-1),forward:()=>ot(1),beforeEach:d.add,beforeResolve:f.add,afterEach:p.add,onError:U.add,isReady:Z,install(t){const e=this;t.component("RouterLink",Zt),t.component("RouterView",ie),t.config.globalProperties.$router=e,Object.defineProperty(t.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,o.SU)(g)}),r&&!rt&&g.value===V&&(rt=!0,C(a.location).catch((t=>{0})));const n={};for(const o in V)Object.defineProperty(n,o,{get:()=>g.value[o],enumerable:!0});t.provide(Ht,e),t.provide(Bt,(0,o.Um)(n)),t.provide(Yt,g);const i=t.unmount;st.add(t),t.unmount=function(){st.delete(t),st.size<1&&(m=V,B&&B(),B=null,g.value=V,rt=!1,X=!1),i()}}};function lt(t){return t.reduce(((t,e)=>t.then((()=>j(e)))),Promise.resolve())}return at}function re(t,e){const n=[],i=[],o=[],r=Math.max(e.matched.length,t.matched.length);for(let s=0;s<r;s++){const r=e.matched[s];r&&(t.matched.find((t=>W(t,r)))?i.push(r):n.push(r));const a=t.matched[s];a&&(e.matched.find((t=>W(t,a)))||o.push(a))}return[n,i,o]}function se(){return(0,i.f3)(Ht)}function ae(t){return(0,i.f3)(Bt)}}}]); |