From c9d2b87ebe99250fd45abf59769257b06a465089 Mon Sep 17 00:00:00 2001 From: tfabritius Date: Sat, 9 Nov 2024 08:27:36 +0000 Subject: [PATCH] deploy: portfolio-report/pr-www@39d42415383136aba6580c3aed9d29368de830da --- 200.html | 12 +++++------ 404.html | 12 +++++------ _nuxt/{Dw4KmS5p.js => 7rjnUyTF.js} | 2 +- _nuxt/{CgPUiUjY.js => B7berdrr.js} | 2 +- _nuxt/{5o0Gk-H_.js => BDUbEGlt.js} | 2 +- _nuxt/{B5GCYExg.js => BtBSrRSf.js} | 2 +- _nuxt/{BLCpM-IT.js => C8MRw8k7.js} | 2 +- _nuxt/{DJiUClP_.js => CQe0E_Fx.js} | 2 +- _nuxt/{CO4SXx96.js => CS3xcki0.js} | 2 +- _nuxt/{Dt6RYPYM.js => Ca3CcCBi.js} | 2 +- _nuxt/{Rh6rBYmw.js => CcmB8_d9.js} | 2 +- _nuxt/{BG95pX-R.js => Cjg-NNZ6.js} | 4 ++-- _nuxt/{BjinqFvk.js => Cl9PT_dI.js} | 2 +- _nuxt/{Be9Klata.js => DLrfWIcp.js} | 2 +- _nuxt/{BiqYYxwe.js => DN0b3JxA.js} | 2 +- _nuxt/{CooCyLh2.js => DVqbbhvc.js} | 2 +- _nuxt/{BVfz-vJL.js => DZ87IHBo.js} | 2 +- _nuxt/{hZrgVGmQ.js => DxhV-795.js} | 10 +++++----- _nuxt/{BJ9mTL0C.js => Dxu8vT0_.js} | 2 +- _nuxt/builds/latest.json | 2 +- .../3f871ddf-94f0-498c-b1aa-906fd19e65b7.json | 1 - .../7014321c-24e6-40d8-b5e2-1be76cfe7cd5.json | 1 + _nuxt/{B4cgAAfJ.js => qPDNVzf0.js} | 2 +- contact.html | 18 ++++++++--------- contact/_payload.json | 2 +- search.html | 20 +++++++++---------- search/_payload.json | 2 +- 27 files changed, 58 insertions(+), 58 deletions(-) rename _nuxt/{Dw4KmS5p.js => 7rjnUyTF.js} (99%) rename _nuxt/{CgPUiUjY.js => B7berdrr.js} (83%) rename _nuxt/{5o0Gk-H_.js => BDUbEGlt.js} (98%) rename _nuxt/{B5GCYExg.js => BtBSrRSf.js} (99%) rename _nuxt/{BLCpM-IT.js => C8MRw8k7.js} (99%) rename _nuxt/{DJiUClP_.js => CQe0E_Fx.js} (96%) rename _nuxt/{CO4SXx96.js => CS3xcki0.js} (99%) rename _nuxt/{Dt6RYPYM.js => Ca3CcCBi.js} (98%) rename _nuxt/{Rh6rBYmw.js => CcmB8_d9.js} (99%) rename _nuxt/{BG95pX-R.js => Cjg-NNZ6.js} (92%) rename _nuxt/{BjinqFvk.js => Cl9PT_dI.js} (89%) rename _nuxt/{Be9Klata.js => DLrfWIcp.js} (54%) rename _nuxt/{BiqYYxwe.js => DN0b3JxA.js} (59%) rename _nuxt/{CooCyLh2.js => DVqbbhvc.js} (86%) rename _nuxt/{BVfz-vJL.js => DZ87IHBo.js} (99%) rename _nuxt/{hZrgVGmQ.js => DxhV-795.js} (79%) rename _nuxt/{BJ9mTL0C.js => Dxu8vT0_.js} (93%) delete mode 100644 _nuxt/builds/meta/3f871ddf-94f0-498c-b1aa-906fd19e65b7.json create mode 100644 _nuxt/builds/meta/7014321c-24e6-40d8-b5e2-1be76cfe7cd5.json rename _nuxt/{B4cgAAfJ.js => qPDNVzf0.js} (98%) diff --git a/200.html b/200.html index dde7217b..f4568e3d 100644 --- a/200.html +++ b/200.html @@ -1,12 +1,12 @@ - + - - + + -
`)}return l},[]).join("")},getStyleSheet({name:t="",theme:e={},params:o,props:n={},set:r,defaults:i}){var s;const a={name:t,theme:e,params:o,set:r,defaults:i},l=(s=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:s.css,c=Object.entries(n).reduce((u,[d,f])=>u.push(`${d}="${f}"`)&&u,[]).join(" ");return l?``:""},createTokens(t={},e,o="",n="",r={}){return Object.entries(t).forEach(([i,s])=>{const a=xo(i,e.variable.excludedKeyRegex)?o:o?`${o}.${Id(i)}`:Id(i),l=n?`${n}.${i}`:i;ro(s)?this.createTokens(s,e,a,l,r):(r[a]||(r[a]={paths:[],computed(c,u={}){var d,f;return this.paths.length===1?(d=this.paths[0])==null?void 0:d.computed(this.paths[0].scheme,u.binding):c&&c!=="none"?(f=this.paths.find(h=>h.scheme===c))==null?void 0:f.computed(c,u.binding):this.paths.map(h=>h.computed(h.scheme,u[h.scheme]))}}),r[a].paths.push({path:l,value:s,scheme:l.includes("colorScheme.light")?"light":l.includes("colorScheme.dark")?"dark":"none",computed(c,u={}){const d=/{([^}]*)}/g;let f=s;if(u.name=this.path,u.binding||(u.binding={}),xo(s,d)){const g=s.trim().replaceAll(d,x=>{var v;const m=x.replace(/{|}/g,""),b=(v=r[m])==null?void 0:v.computed(c,u);return _a(b)&&b.length===2?`light-dark(${b[0].value},${b[1].value})`:b==null?void 0:b.value}),p=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,y=/var\([^)]+\)/g;f=xo(g.replace(y,"0"),p)?`calc(${g})`:g}return no(u.binding)&&delete u.binding,{colorScheme:c,path:this.path,paths:u,value:f.includes("undefined")?void 0:f}}}))}),r},getTokenValue(t,e,o){var n;const i=(l=>l.split(".").filter(u=>!xo(u.toLowerCase(),o.variable.excludedKeyRegex)).join("."))(e),s=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(n=t[i])==null?void 0:n.computed(s)].flat().filter(l=>l);return a.length===1?a[0].value:a.reduce((l={},c)=>{const u=c,{colorScheme:d}=u,f=lo(u,["colorScheme"]);return l[d]=f,l},void 0)},getSelectorRule(t,e,o,n){return o==="class"||o==="attr"?Nn(xe(e)?`${t}${e},${t} ${e}`:t,n):Nn(t,xe(e)?Nn(e,n):n)},transformCSS(t,e,o,n,r={},i,s,a){if(xe(e)){const{cssLayer:l}=r;if(n!=="style"){const c=this.getColorSchemeOption(r,s);e=o==="dark"?c.reduce((u,{type:d,selector:f})=>(xe(f)&&(u+=f.includes("[CSS]")?f.replace("[CSS]",e):this.getSelectorRule(f,a,d,e)),u),""):Nn(a??":root",e)}if(l){const c={name:"primeui",order:"primeui"};ro(l)&&(c.name=Dt(l.name,{name:t,type:n})),xe(c.name)&&(e=Nn(`@layer ${c.name}`,e),i==null||i.layerNames(c.name))}return e}return""}},ve={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=Ya(zt({},e),{options:zt(zt({},this.defaults.options),e.options)}),this._tokens=Ft.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),Ht.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Ya(zt({},this.theme),{preset:t}),this._tokens=Ft.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Ht.emit("preset:change",t),Ht.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Ya(zt({},this.theme),{options:t}),this.clearLoadedStyleNames(),Ht.emit("options:change",t),Ht.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return Ft.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Ft.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const o={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ft.getPresetC(o)},getDirective(t="",e){const o={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ft.getPresetD(o)},getCustomPreset(t="",e,o,n){const r={name:t,preset:e,options:this.options,selector:o,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ft.getPreset(r)},getLayerOrderCSS(t=""){return Ft.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,o="style",n){return Ft.transformCSS(t,e,n,o,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,o={}){return Ft.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,o={}){return Ft.getStyleSheet({name:t,theme:this.theme,params:e,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),Ht.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Ht.emit("theme:load"))}};function Tk(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Rk(t,e){if(t&&e){const o=n=>{Tk(t,n)||(t.classList?t.classList.add(n):t.className+=" "+n)};[e].flat().filter(Boolean).forEach(n=>n.split(" ").forEach(o))}}function Us(t){for(const e of document==null?void 0:document.styleSheets)try{for(const o of e==null?void 0:e.cssRules)for(const n of o==null?void 0:o.style)if(t.test(n))return{name:n,value:o.style.getPropertyValue(n).trim()}}catch{}return null}function Ok(t){if(t){let e=document.createElement("a");if(e.download!==void 0){const{name:o,src:n}=t;return e.setAttribute("href",n),e.setAttribute("download",o),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),!0}}return!1}function fE(t,e){let o=new Blob([t],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(o,e+".csv"):Ok({name:e+".csv",src:URL.createObjectURL(o)})||(t="data:text/csv;charset=utf-8,"+t,window.open(encodeURI(t)))}function qa(t,e){if(t&&e){const o=n=>{t.classList?t.classList.remove(n):t.className=t.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(n=>n.split(" ").forEach(o))}}function gm(t){let e={width:0,height:0};return t&&(t.style.visibility="hidden",t.style.display="block",e.width=t.offsetWidth,e.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible"),e}function pm(){let t=window,e=document,o=e.documentElement,n=e.getElementsByTagName("body")[0],r=t.innerWidth||o.clientWidth||n.clientWidth,i=t.innerHeight||o.clientHeight||n.clientHeight;return{width:r,height:i}}function Ek(){let t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}function Mk(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function hE(t,e,o=!0){var n,r,i,s;if(t){const a=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:gm(t),l=a.height,c=a.width,u=e.offsetHeight,d=e.offsetWidth,f=e.getBoundingClientRect(),h=Mk(),g=Ek(),p=pm();let y,x,v="top";f.top+u+l>p.height?(y=f.top+h-l,v="bottom",y<0&&(y=h)):y=u+f.top+h,f.left+c>p.width?x=Math.max(0,f.left+g+d-c):x=f.left+g,t.style.top=y+"px",t.style.left=x+"px",t.style.transformOrigin=v,o&&(t.style.marginTop=v==="bottom"?`calc(${(r=(n=Us(/-anchor-gutter$/))==null?void 0:n.value)!=null?r:"2px"} * -1)`:(s=(i=Us(/-anchor-gutter$/))==null?void 0:i.value)!=null?s:"")}}function gE(t,e){t&&(typeof e=="string"?t.style.cssText=e:Object.entries(e||{}).forEach(([o,n])=>t.style[o]=n))}function Ak(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function pE(t,e,o=!0){var n,r,i,s;if(t){const a=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:gm(t),l=e.offsetHeight,c=e.getBoundingClientRect(),u=pm();let d,f,h="top";c.top+l+a.height>u.height?(d=-1*a.height,h="bottom",c.top+d<0&&(d=-1*c.top)):d=l,a.width>u.width?f=c.left*-1:c.left+a.width>u.width?f=(c.left+a.width-u.width)*-1:f=0,t.style.top=d+"px",t.style.left=f+"px",t.style.transformOrigin=h,o&&(t.style.marginTop=h==="bottom"?`calc(${(r=(n=Us(/-anchor-gutter$/))==null?void 0:n.value)!=null?r:"2px"} * -1)`:(s=(i=Us(/-anchor-gutter$/))==null?void 0:i.value)!=null?s:"")}}function rr(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function mE(){if(window.getSelection){const t=window.getSelection()||{};t.empty?t.empty():t.removeAllRanges&&t.rangeCount>0&&t.getRangeAt(0).getClientRects().length>0&&t.removeAllRanges()}}function Ks(t,e={}){if(rr(t)){const o=(n,r)=>{var i,s;const a=(i=t==null?void 0:t.$attrs)!=null&&i[n]?[(s=t==null?void 0:t.$attrs)==null?void 0:s[n]]:[];return[r].flat().reduce((l,c)=>{if(c!=null){const u=typeof c;if(u==="string"||u==="number")l.push(c);else if(u==="object"){const d=Array.isArray(c)?o(n,c):Object.entries(c).map(([f,h])=>n==="style"&&(h||h===0)?`${f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?f:void 0);l=d.length?l.concat(d.filter(f=>!!f)):l}}return l},a)};Object.entries(e).forEach(([n,r])=>{if(r!=null){const i=n.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),r):n==="p-bind"?Ks(t,r):(r=n==="class"?[...new Set(o("class",r))].join(" ").trim():n==="style"?o("style",r).join(";").trim():r,(t.$attrs=t.$attrs||{})&&(t.$attrs[n]=r),t.setAttribute(n,r))}})}}function Bk(t,e={},...o){if(t){const n=document.createElement(t);return Ks(n,e),n.append(...o),n}}function bE(t,e){if(t){t.style.opacity="0";let o=+new Date,n="0",r=function(){n=`${+t.style.opacity+(new Date().getTime()-o)/e}`,t.style.opacity=n,o=+new Date,+n<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}}function Lk(t,e){return rr(t)?Array.from(t.querySelectorAll(e)):[]}function mm(t,e){return rr(t)?t.matches(e)?t:t.querySelector(e):null}function yE(t,e){t&&document.activeElement!==t&&t.focus(e)}function Dk(t,e){if(rr(t)){const o=t.getAttribute(e);return isNaN(o)?o==="true"||o==="false"?o==="true":o:+o}}function bm(t,e=""){let o=Lk(t,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}, + */const In=typeof document<"u";function Up(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function zx(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&Up(t.default)}const be=Object.assign;function za(t,e){const o={};for(const n in e){const r=e[n];o[n]=Gt(r)?r.map(t):t(r)}return o}const Ar=()=>{},Gt=Array.isArray,Kp=/#/g,Vx=/&/g,Ux=/\//g,Kx=/=/g,Yx=/\?/g,Yp=/\+/g,qx=/%5B/g,Gx=/%5D/g,qp=/%5E/g,Xx=/%60/g,Gp=/%7B/g,Zx=/%7C/g,Xp=/%7D/g,Jx=/%20/g;function Kc(t){return encodeURI(""+t).replace(Zx,"|").replace(qx,"[").replace(Gx,"]")}function Qx(t){return Kc(t).replace(Gp,"{").replace(Xp,"}").replace(qp,"^")}function jl(t){return Kc(t).replace(Yp,"%2B").replace(Jx,"+").replace(Kp,"%23").replace(Vx,"%26").replace(Xx,"`").replace(Gp,"{").replace(Xp,"}").replace(qp,"^")}function e_(t){return jl(t).replace(Kx,"%3D")}function t_(t){return Kc(t).replace(Kp,"%23").replace(Yx,"%3F")}function o_(t){return t==null?"":t_(t).replace(Ux,"%2F")}function Gr(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const n_=/\/$/,r_=t=>t.replace(n_,"");function Va(t,e,o="/"){let n,r={},i="",s="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(n=e.slice(0,l),i=e.slice(l+1,a>-1?a:e.length),r=t(i)),a>-1&&(n=n||e.slice(0,a),s=e.slice(a,e.length)),n=l_(n??e,o),{fullPath:n+(i&&"?")+i+s,path:n,query:r,hash:Gr(s)}}function i_(t,e){const o=e.query?t(e.query):"";return e.path+(o&&"?")+o+(e.hash||"")}function pd(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function s_(t,e,o){const n=e.matched.length-1,r=o.matched.length-1;return n>-1&&n===r&&Jn(e.matched[n],o.matched[r])&&Zp(e.params,o.params)&&t(e.query)===t(o.query)&&e.hash===o.hash}function Jn(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Zp(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const o in t)if(!a_(t[o],e[o]))return!1;return!0}function a_(t,e){return Gt(t)?md(t,e):Gt(e)?md(e,t):t===e}function md(t,e){return Gt(e)?t.length===e.length&&t.every((o,n)=>o===e[n]):t.length===1&&t[0]===e}function l_(t,e){if(t.startsWith("/"))return t;if(!t)return e;const o=e.split("/"),n=t.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let i=o.length-1,s,a;for(s=0;s1&&i--;else break;return o.slice(0,i).join("/")+"/"+n.slice(s).join("/")}const jt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Xr;(function(t){t.pop="pop",t.push="push"})(Xr||(Xr={}));var Br;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Br||(Br={}));function c_(t){if(!t)if(In){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 d_(t,e){return t.replace(u_,"#")+e}function f_(t,e){const o=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-o.left-(e.left||0),top:n.top-o.top-(e.top||0)}}const ba=()=>({left:window.scrollX,top:window.scrollY});function h_(t){let e;if("el"in t){const o=t.el,n=typeof o=="string"&&o.startsWith("#"),r=typeof o=="string"?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!r)return;e=f_(r,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function bd(t,e){return(history.state?history.state.position-e:-1)+t}const Hl=new Map;function g_(t,e){Hl.set(t,e)}function p_(t){const e=Hl.get(t);return Hl.delete(t),e}let m_=()=>location.protocol+"//"+location.host;function Jp(t,e){const{pathname:o,search:n,hash:r}=e,i=t.indexOf("#");if(i>-1){let a=r.includes(t.slice(i))?t.slice(i).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),pd(l,"")}return pd(o,t)+n+r}function b_(t,e,o,n){let r=[],i=[],s=null;const a=({state:f})=>{const h=Jp(t,location),g=o.value,p=e.value;let y=0;if(f){if(o.value=h,e.value=f,s&&s===g){s=null;return}y=p?f.position-p.position:0}else n(h);r.forEach(x=>{x(o.value,g,{delta:y,type:Xr.pop,direction:y?y>0?Br.forward:Br.back:Br.unknown})})};function l(){s=o.value}function c(f){r.push(f);const h=()=>{const g=r.indexOf(f);g>-1&&r.splice(g,1)};return i.push(h),h}function u(){const{history:f}=window;f.state&&f.replaceState(be({},f.state,{scroll:ba()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function yd(t,e,o,n=!1,r=!1){return{back:t,current:e,forward:o,replaced:n,position:window.history.length,scroll:r?ba():null}}function y_(t){const{history:e,location:o}=window,n={value:Jp(t,o)},r={value:e.state};r.value||i(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const d=t.indexOf("#"),f=d>-1?(o.host&&document.querySelector("base")?t:t.slice(d))+l:m_()+t+l;try{e[u?"replaceState":"pushState"](c,"",f),r.value=c}catch(h){console.error(h),o[u?"replace":"assign"](f)}}function s(l,c){const u=be({},e.state,yd(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});i(l,u,!0),n.value=l}function a(l,c){const u=be({},r.value,e.state,{forward:l,scroll:ba()});i(u.current,u,!0);const d=be({},yd(n.value,l,null),{position:u.position+1},c);i(l,d,!1),n.value=l}return{location:n,state:r,push:a,replace:s}}function Qp(t){t=c_(t);const e=y_(t),o=b_(t,e.state,e.location,e.replace);function n(i,s=!0){s||o.pauseListeners(),history.go(i)}const r=be({location:"",base:t,go:n,createHref:d_.bind(null,t)},e,o);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function v_(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),Qp(t)}function x_(t){return typeof t=="string"||t&&typeof t=="object"}function em(t){return typeof t=="string"||typeof t=="symbol"}const tm=Symbol("");var vd;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(vd||(vd={}));function Qn(t,e){return be(new Error,{type:t,[tm]:!0},e)}function ao(t,e){return t instanceof Error&&tm in t&&(e==null||!!(t.type&e))}const xd="[^/]+?",__={sensitive:!1,strict:!1,start:!0,end:!0},k_=/[.+*?^${}()[\]/\\]/g;function w_(t,e){const o=be({},__,e),n=[];let r=o.start?"^":"";const i=[];for(const c of t){const u=c.length?[]:[90];o.strict&&!c.length&&(r+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function om(t,e){let o=0;const n=t.score,r=e.score;for(;o0&&e[e.length-1]<0}const S_={type:0,value:""},P_=/[a-zA-Z0-9_]/;function T_(t){if(!t)return[[]];if(t==="/")return[[S_]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${o})/"${c}": ${h}`)}let o=0,n=o;const r=[];let i;function s(){i&&r.push(i),i=[]}let a=0,l,c="",u="";function d(){c&&(o===0?i.push({type:0,value:c}):o===1||o===2||o===3?(i.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a{s(m)}:Ar}function s(d){if(em(d)){const f=n.get(d);f&&(n.delete(d),o.splice(o.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=o.indexOf(d);f>-1&&(o.splice(f,1),d.record.name&&n.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function a(){return o}function l(d){const f=A_(d,o);o.splice(f,0,d),d.record.name&&!Cd(d)&&n.set(d.record.name,d)}function c(d,f){let h,g={},p,y;if("name"in d&&d.name){if(h=n.get(d.name),!h)throw Qn(1,{location:d});y=h.record.name,g=be(kd(f.params,h.keys.filter(m=>!m.optional).concat(h.parent?h.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),d.params&&kd(d.params,h.keys.map(m=>m.name))),p=h.stringify(g)}else if(d.path!=null)p=d.path,h=o.find(m=>m.re.test(p)),h&&(g=h.parse(p),y=h.record.name);else{if(h=f.name?n.get(f.name):o.find(m=>m.re.test(f.path)),!h)throw Qn(1,{location:d,currentLocation:f});y=h.record.name,g=be({},f.params,d.params),p=h.stringify(g)}const x=[];let v=h;for(;v;)x.unshift(v.record),v=v.parent;return{name:y,path:p,params:g,matched:x,meta:M_(x)}}t.forEach(d=>i(d));function u(){o.length=0,n.clear()}return{addRoute:i,resolve:c,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function kd(t,e){const o={};for(const n of e)n in t&&(o[n]=t[n]);return o}function wd(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:E_(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 E_(t){const e={},o=t.props||!1;if("component"in t)e.default=o;else for(const n in t.components)e[n]=typeof o=="object"?o[n]:o;return e}function Cd(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function M_(t){return t.reduce((e,o)=>be(e,o.meta),{})}function Sd(t,e){const o={};for(const n in t)o[n]=n in e?e[n]:t[n];return o}function A_(t,e){let o=0,n=e.length;for(;o!==n;){const i=o+n>>1;om(t,e[i])<0?n=i:o=i+1}const r=B_(t);return r&&(n=e.lastIndexOf(r,n-1)),n}function B_(t){let e=t;for(;e=e.parent;)if(nm(e)&&om(t,e)===0)return e}function nm({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function L_(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;ri&&jl(i)):[n&&jl(n)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+o,i!=null&&(e+="="+i))})}return e}function D_(t){const e={};for(const o in t){const n=t[o];n!==void 0&&(e[o]=Gt(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return e}const $_=Symbol(""),Td=Symbol(""),ya=Symbol(""),Yc=Symbol(""),Wl=Symbol("");function cr(){let t=[];function e(n){return t.push(n),()=>{const r=t.indexOf(n);r>-1&&t.splice(r,1)}}function o(){t=[]}return{add:e,list:()=>t.slice(),reset:o}}function Io(t,e,o,n,r,i=s=>s()){const s=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((a,l)=>{const c=f=>{f===!1?l(Qn(4,{from:o,to:e})):f instanceof Error?l(f):x_(f)?l(Qn(2,{from:e,to:f})):(s&&n.enterCallbacks[r]===s&&typeof f=="function"&&s.push(f),a())},u=i(()=>t.call(n&&n.instances[r],e,o,c));let d=Promise.resolve(u);t.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function Ua(t,e,o,n,r=i=>i()){const i=[];for(const s of t)for(const a in s.components){let l=s.components[a];if(!(e!=="beforeRouteEnter"&&!s.instances[a]))if(Up(l)){const u=(l.__vccOpts||l)[e];u&&i.push(Io(u,o,n,s,a,r))}else{let c=l();i.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const d=zx(u)?u.default:u;s.mods[a]=u,s.components[a]=d;const h=(d.__vccOpts||d)[e];return h&&Io(h,o,n,s,a,r)()}))}}return i}function Rd(t){const e=tt(ya),o=tt(Yc),n=Ve(()=>{const l=Fe(t.to);return e.resolve(l)}),r=Ve(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],d=o.matched;if(!u||!d.length)return-1;const f=d.findIndex(Jn.bind(null,u));if(f>-1)return f;const h=Od(l[c-2]);return c>1&&Od(u)===h&&d[d.length-1].path!==h?d.findIndex(Jn.bind(null,l[c-2])):f}),i=Ve(()=>r.value>-1&&j_(o.params,n.value.params)),s=Ve(()=>r.value>-1&&r.value===o.matched.length-1&&Zp(o.params,n.value.params));function a(l={}){return F_(l)?e[Fe(t.replace)?"replace":"push"](Fe(t.to)).catch(Ar):Promise.resolve()}return{route:n,href:Ve(()=>n.value.href),isActive:i,isExactActive:s,navigate:a}}const I_=io({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"}},useLink:Rd,setup(t,{slots:e}){const o=Po(Rd(t)),{options:n}=tt(ya),r=Ve(()=>({[Ed(t.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Ed(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=e.default&&e.default(o);return t.custom?i:at("a",{"aria-current":o.isExactActive?t.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},i)}}}),N_=I_;function F_(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){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 j_(t,e){for(const o in e){const n=e[o],r=t[o];if(typeof n=="string"){if(n!==r)return!1}else if(!Gt(r)||r.length!==n.length||n.some((i,s)=>i!==r[s]))return!1}return!0}function Od(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Ed=(t,e,o)=>t??e??o,H_=io({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:o}){const n=tt(Wl),r=Ve(()=>t.route||n.value),i=tt(Td,0),s=Ve(()=>{let c=Fe(i);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=Ve(()=>r.value.matched[s.value]);_n(Td,Ve(()=>s.value+1)),_n($_,a),_n(Wl,r);const l=vt();return Lt(()=>[l.value,a.value,t.name],([c,u,d],[f,h,g])=>{u&&(u.instances[d]=c,h&&h!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!Jn(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEach(p=>p(c))},{flush:"post"}),()=>{const c=r.value,u=t.name,d=a.value,f=d&&d.components[u];if(!f)return Md(o.default,{Component:f,route:c});const h=d.props[u],g=h?h===!0?c.params:typeof h=="function"?h(c):h:null,y=at(f,be({},g,e,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Md(o.default,{Component:y,route:c})||y}}});function Md(t,e){if(!t)return null;const o=t(e);return o.length===1?o[0]:o}const rm=H_;function W_(t){const e=O_(t.routes,t),o=t.parseQuery||L_,n=t.stringifyQuery||Pd,r=t.history,i=cr(),s=cr(),a=cr(),l=Vr(jt);let c=jt;In&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=za.bind(null,A=>""+A),d=za.bind(null,o_),f=za.bind(null,Gr);function h(A,Y){let V,G;return em(A)?(V=e.getRecordMatcher(A),G=Y):G=A,e.addRoute(G,V)}function g(A){const Y=e.getRecordMatcher(A);Y&&e.removeRoute(Y)}function p(){return e.getRoutes().map(A=>A.record)}function y(A){return!!e.getRecordMatcher(A)}function x(A,Y){if(Y=be({},Y||l.value),typeof A=="string"){const w=Va(o,A,Y.path),R=e.resolve({path:w.path},Y),L=r.createHref(w.fullPath);return be(w,R,{params:f(R.params),hash:Gr(w.hash),redirectedFrom:void 0,href:L})}let V;if(A.path!=null)V=be({},A,{path:Va(o,A.path,Y.path).path});else{const w=be({},A.params);for(const R in w)w[R]==null&&delete w[R];V=be({},A,{params:d(w)}),Y.params=d(Y.params)}const G=e.resolve(V,Y),fe=A.hash||"";G.params=u(f(G.params));const we=i_(n,be({},A,{hash:Qx(fe),path:G.path})),k=r.createHref(we);return be({fullPath:we,hash:fe,query:n===Pd?D_(A.query):A.query||{}},G,{redirectedFrom:void 0,href:k})}function v(A){return typeof A=="string"?Va(o,A,l.value.path):be({},A)}function m(A,Y){if(c!==A)return Qn(8,{from:Y,to:A})}function b(A){return S(A)}function _(A){return b(be(v(A),{replace:!0}))}function C(A){const Y=A.matched[A.matched.length-1];if(Y&&Y.redirect){const{redirect:V}=Y;let G=typeof V=="function"?V(A):V;return typeof G=="string"&&(G=G.includes("?")||G.includes("#")?G=v(G):{path:G},G.params={}),be({query:A.query,hash:A.hash,params:G.path!=null?{}:A.params},G)}}function S(A,Y){const V=c=x(A),G=l.value,fe=A.state,we=A.force,k=A.replace===!0,w=C(V);if(w)return S(be(v(w),{state:typeof w=="object"?be({},fe,w.state):fe,force:we,replace:k}),Y||V);const R=V;R.redirectedFrom=Y;let L;return!we&&s_(n,G,V)&&(L=Qn(16,{to:R,from:G}),ke(G,G,!0,!1)),(L?Promise.resolve(L):O(R,G)).catch(M=>ao(M)?ao(M,2)?M:Re(M):W(M,R,G)).then(M=>{if(M){if(ao(M,2))return S(be({replace:k},v(M.to),{state:typeof M.to=="object"?be({},fe,M.to.state):fe,force:we}),Y||R)}else M=E(R,G,!0,k,fe);return B(R,G,M),M})}function T(A,Y){const V=m(A,Y);return V?Promise.reject(V):Promise.resolve()}function P(A){const Y=He.values().next().value;return Y&&typeof Y.runWithContext=="function"?Y.runWithContext(A):A()}function O(A,Y){let V;const[G,fe,we]=z_(A,Y);V=Ua(G.reverse(),"beforeRouteLeave",A,Y);for(const w of G)w.leaveGuards.forEach(R=>{V.push(Io(R,A,Y))});const k=T.bind(null,A,Y);return V.push(k),Ne(V).then(()=>{V=[];for(const w of i.list())V.push(Io(w,A,Y));return V.push(k),Ne(V)}).then(()=>{V=Ua(fe,"beforeRouteUpdate",A,Y);for(const w of fe)w.updateGuards.forEach(R=>{V.push(Io(R,A,Y))});return V.push(k),Ne(V)}).then(()=>{V=[];for(const w of we)if(w.beforeEnter)if(Gt(w.beforeEnter))for(const R of w.beforeEnter)V.push(Io(R,A,Y));else V.push(Io(w.beforeEnter,A,Y));return V.push(k),Ne(V)}).then(()=>(A.matched.forEach(w=>w.enterCallbacks={}),V=Ua(we,"beforeRouteEnter",A,Y,P),V.push(k),Ne(V))).then(()=>{V=[];for(const w of s.list())V.push(Io(w,A,Y));return V.push(k),Ne(V)}).catch(w=>ao(w,8)?w:Promise.reject(w))}function B(A,Y,V){a.list().forEach(G=>P(()=>G(A,Y,V)))}function E(A,Y,V,G,fe){const we=m(A,Y);if(we)return we;const k=Y===jt,w=In?history.state:{};V&&(G||k?r.replace(A.fullPath,be({scroll:k&&w&&w.scroll},fe)):r.push(A.fullPath,fe)),l.value=A,ke(A,Y,V,k),Re()}let N;function X(){N||(N=r.listen((A,Y,V)=>{if(!_t.listening)return;const G=x(A),fe=C(G);if(fe){S(be(fe,{replace:!0}),G).catch(Ar);return}c=G;const we=l.value;In&&g_(bd(we.fullPath,V.delta),ba()),O(G,we).catch(k=>ao(k,12)?k:ao(k,2)?(S(k.to,G).then(w=>{ao(w,20)&&!V.delta&&V.type===Xr.pop&&r.go(-1,!1)}).catch(Ar),Promise.reject()):(V.delta&&r.go(-V.delta,!1),W(k,G,we))).then(k=>{k=k||E(G,we,!1),k&&(V.delta&&!ao(k,8)?r.go(-V.delta,!1):V.type===Xr.pop&&ao(k,20)&&r.go(-1,!1)),B(G,we,k)}).catch(Ar)}))}let q=cr(),I=cr(),U;function W(A,Y,V){Re(A);const G=I.list();return G.length?G.forEach(fe=>fe(A,Y,V)):console.error(A),Promise.reject(A)}function oe(){return U&&l.value!==jt?Promise.resolve():new Promise((A,Y)=>{q.add([A,Y])})}function Re(A){return U||(U=!A,X(),q.list().forEach(([Y,V])=>A?V(A):Y()),q.reset()),A}function ke(A,Y,V,G){const{scrollBehavior:fe}=t;if(!In||!fe)return Promise.resolve();const we=!V&&p_(bd(A.fullPath,0))||(G||!V)&&history.state&&history.state.scroll||null;return On().then(()=>fe(A,Y,we)).then(k=>k&&h_(k)).catch(k=>W(k,A,Y))}const pe=A=>r.go(A);let et;const He=new Set,_t={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:e.clearRoutes,hasRoute:y,getRoutes:p,resolve:x,options:t,push:b,replace:_,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:I.add,isReady:oe,install(A){const Y=this;A.component("RouterLink",N_),A.component("RouterView",rm),A.config.globalProperties.$router=Y,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>Fe(l)}),In&&!et&&l.value===jt&&(et=!0,b(r.location).catch(fe=>{}));const V={};for(const fe in jt)Object.defineProperty(V,fe,{get:()=>l.value[fe],enumerable:!0});A.provide(ya,Y),A.provide(Yc,yo(V)),A.provide(Wl,l);const G=A.unmount;He.add(A),A.unmount=function(){He.delete(A),He.size<1&&(c=jt,N&&N(),N=null,l.value=jt,et=!1,U=!1),G()}}};function Ne(A){return A.reduce((Y,V)=>Y.then(()=>P(V)),Promise.resolve())}return _t}function z_(t,e){const o=[],n=[],r=[],i=Math.max(e.matched.length,t.matched.length);for(let s=0;sJn(c,a))?n.push(a):o.push(a));const l=t.matched[s];l&&(e.matched.find(c=>Jn(c,l))||r.push(l))}return[o,n,r]}function nE(){return tt(ya)}function V_(t){return tt(Yc)}const U_=(t,e)=>e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,o=>{var n;return((n=t.params[o.slice(1)])==null?void 0:n.toString())||""}),zl=(t,e)=>{const o=t.route.matched.find(r=>{var i;return((i=r.components)==null?void 0:i.default)===t.Component.type}),n=e??(o==null?void 0:o.meta.key)??(o&&U_(t.route,o));return typeof n=="function"?n(t.route):n},K_=(t,e)=>({default:()=>t?at(Lb,t===!0?{}:t,e):e});function qc(t){return Array.isArray(t)?t:[t]}const Y_="modulepreload",q_=function(t,e){return new URL(t,e).href},Ad={},Ao=function(e,o,n){let r=Promise.resolve();if(o&&o.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(o.map(c=>{if(c=q_(c,n),c in Ad)return;Ad[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(!!n)for(let g=s.length-1;g>=0;g--){const p=s[g];if(p.href===c&&(!u||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":Y_,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((g,p)=>{h.addEventListener("load",g),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return r.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})},Ka=[{name:"contact",path:"/contact",component:()=>Ao(()=>import("./BtBSrRSf.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},{name:"index",path:"/",component:()=>Ao(()=>import("./DN0b3JxA.js"),[],import.meta.url)},{name:"search",path:"/search",component:()=>Ao(()=>import("./CcmB8_d9.js"),__vite__mapDeps([6,7,3,8,9,2,5,10]),import.meta.url)},{name:"securities-uuid",path:"/securities/:uuid()",component:()=>Ao(()=>import("./Dxu8vT0_.js"),__vite__mapDeps([11,7,3,8,12,9,2,5,13]),import.meta.url)},{name:"stats-version",path:"/stats/:version()",component:()=>Ao(()=>import("./BDUbEGlt.js"),__vite__mapDeps([14,15,12,9,2,5]),import.meta.url)},{name:"stats",path:"/stats",component:()=>Ao(()=>import("./DVqbbhvc.js"),__vite__mapDeps([16,1,2,3,4,17,15,12,9,5]),import.meta.url)},{name:"stats-weekly",path:"/stats/weekly",component:()=>Ao(()=>import("./CQe0E_Fx.js"),__vite__mapDeps([18,1,2,3,4,17,15,12,9,5]),import.meta.url)}],im=(t,e,o)=>(e=e===!0?{}:e,{default:()=>{var n;return e?at(t,e,o):(n=o.default)==null?void 0:n.call(o)}});function Bd(t){const e=(t==null?void 0:t.meta.key)??t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,o=>{var n;return((n=t.params[o.slice(1)])==null?void 0:n.toString())||""});return typeof e=="function"?e(t):e}function G_(t,e){return t===e||e===jt?!1:Bd(t)!==Bd(e)?!0:!t.matched.every((n,r)=>{var i,s;return n.components&&n.components.default===((s=(i=e.matched[r])==null?void 0:i.components)==null?void 0:s.default)})}const X_={scrollBehavior(t,e,o){var c;const n=Ie(),r=((c=gt().options)==null?void 0:c.scrollBehaviorType)??"auto";let i=o||void 0;const s=typeof t.meta.scrollToTop=="function"?t.meta.scrollToTop(t,e):t.meta.scrollToTop;if(!i&&e&&t&&s!==!1&&G_(t,e)&&(i={left:0,top:0}),t.path===e.path)return e.hash&&!t.hash?{left:0,top:0}:t.hash?{el:t.hash,top:Ld(t.hash),behavior:r}:!1;const a=u=>!!(u.meta.pageTransition??El),l=a(e)&&a(t)?"page:transition:finish":"page:finish";return new Promise(u=>{n.hooks.hookOnce(l,async()=>{await new Promise(d=>setTimeout(d,0)),t.hash&&(i={el:t.hash,top:Ld(t.hash),behavior:r}),u(i)})})}};function Ld(t){try{const e=document.querySelector(t);if(e)return(Number.parseFloat(getComputedStyle(e).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}const Z_={hashMode:!1,scrollBehaviorType:"auto"},Et={...Z_,...X_},J_=async t=>{var l;let e,o;if(!((l=t.meta)!=null&&l.validate))return;const n=Ie(),r=gt(),i=([e,o]=qn(()=>Promise.resolve(t.meta.validate(t))),e=await e,o(),e);if(i===!0)return;const s=pa({statusCode:i&&i.statusCode||404,statusMessage:i&&i.statusMessage||`Page Not Found: ${t.fullPath}`,data:{path:t.fullPath}}),a=r.beforeResolve(c=>{if(a(),c===t){const u=r.afterEach(async()=>{u(),await n.runWithContext(()=>Fn(s)),window==null||window.history.pushState({},"",t.fullPath)});return!1}})},Q_=async t=>{let e,o;const n=([e,o]=qn(()=>Uc(t.path)),e=await e,o(),e);if(n.redirect)return Ro(n.redirect,{acceptRelative:!0})?(window.location.href=n.redirect,!1):n.redirect},ek=[J_,Q_],Lr={};function tk(t,e,o){const{pathname:n,search:r,hash:i}=e,s=t.indexOf("#");if(s>-1){const c=i.includes(t.slice(s))?t.slice(s).length:1;let u=i.slice(c);return u[0]!=="/"&&(u="/"+u),ed(u,"")}const a=ed(n,t),l=!o||Wv(a,o,{trailingSlash:!0})?a:o;return l+(l.includes("?")?"":r)+i}const ok=Rt({name:"nuxt:router",enforce:"pre",async setup(t){var y;let e,o,n=nr().app.baseURL;Et.hashMode&&!n.includes("#")&&(n+="#");const r=((y=Et.history)==null?void 0:y.call(Et,n))??(Et.hashMode?v_(n):Qp(n)),i=Et.routes?([e,o]=qn(()=>Et.routes(Ka)),e=await e,o(),e??Ka):Ka;let s;const a=W_({...Et,scrollBehavior:(x,v,m)=>{if(v===jt){s=m;return}if(Et.scrollBehavior){if(a.options.scrollBehavior=Et.scrollBehavior,"scrollRestoration"in window.history){const b=a.beforeEach(()=>{b(),window.history.scrollRestoration="manual"})}return Et.scrollBehavior(x,jt,s||m)}},history:r,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),t.vueApp.use(a);const l=Vr(a.currentRoute.value);a.afterEach((x,v)=>{l.value=v}),Object.defineProperty(t.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=tk(n,window.location,t.payload.path),u=Vr(a.currentRoute.value),d=()=>{u.value=a.currentRoute.value};t.hook("page:finish",d),a.afterEach((x,v)=>{var m,b,_,C;((b=(m=x.matched[0])==null?void 0:m.components)==null?void 0:b.default)===((C=(_=v.matched[0])==null?void 0:_.components)==null?void 0:C.default)&&d()});const f={};for(const x in u.value)Object.defineProperty(f,x,{get:()=>u.value[x],enumerable:!0});t._route=yo(f),t._middleware=t._middleware||{global:[],named:{}};const h=ga();a.afterEach(async(x,v,m)=>{delete t._processingMiddleware,!t.isHydrating&&h.value&&await t.runWithContext(H1),m&&await t.callHook("page:loading:end"),x.matched.length===0&&await t.runWithContext(()=>Fn(Bl({statusCode:404,fatal:!1,statusMessage:`Page not found: ${x.fullPath}`,data:{path:x.fullPath}})))});try{[e,o]=qn(()=>a.isReady()),await e,o()}catch(x){[e,o]=qn(()=>t.runWithContext(()=>Fn(x))),await e,o()}const g=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;d();const p=t.payload.state._layout;return a.beforeEach(async(x,v)=>{var m;await t.callHook("page:loading:start"),x.meta=Po(x.meta),t.isHydrating&&p&&!qo(x.meta.layout)&&(x.meta.layout=p),t._processingMiddleware=!0;{const b=new Set([...ek,...t._middleware.global]);for(const _ of x.matched){const C=_.meta.middleware;if(C)for(const S of qc(C))b.add(S)}{const _=await t.runWithContext(()=>Uc(x.path));if(_.appMiddleware)for(const C in _.appMiddleware)_.appMiddleware[C]?b.add(C):b.delete(C)}for(const _ of b){const C=typeof _=="string"?t._middleware.named[_]||await((m=Lr[_])==null?void 0:m.call(Lr).then(T=>T.default||T)):_;if(!C)throw new Error(`Unknown route middleware: '${_}'.`);const S=await t.runWithContext(()=>C(x,v));if(!t.payload.serverRendered&&t.isHydrating&&(S===!1||S instanceof Error)){const T=S||Bl({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await t.runWithContext(()=>Fn(T)),!1}if(S!==!0&&(S||S===!1))return S}}}),a.onError(async()=>{delete t._processingMiddleware,await t.callHook("page:loading:end")}),t.hooks.hookOnce("app:created",async()=>{try{"name"in g&&(g.name=void 0),await a.replace({...g,force:!0}),a.options.scrollBehavior=Et.scrollBehavior}catch(x){await t.runWithContext(()=>Fn(x))}}),{provide:{router:a}}}}),Vl=globalThis.requestIdleCallback||(t=>{const e=Date.now(),o={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))};return setTimeout(()=>{t(o)},1)}),nk=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),va=t=>{const e=Ie();e.isHydrating?e.hooks.hookOnce("app:suspense:resolve",()=>{Vl(()=>t())}):Vl(()=>t())},rk=Rt({name:"nuxt:payload",setup(t){gt().beforeResolve(async(e,o)=>{if(e.path===o.path)return;const n=await hd(e.path);n&&Object.assign(t.static.data,n.data)}),va(()=>{var e;t.hooks.hook("link:prefetch",async o=>{const{hostname:n}=new URL(o,window.location.href);n===window.location.hostname&&await hd(o)}),((e=navigator.connection)==null?void 0:e.effectiveType)!=="slow-2g"&&setTimeout(ma,1e3)})}}),ik=Rt(()=>{const t=gt();va(()=>{t.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),sk=Rt(t=>{let e;async function o(){const n=await ma();e&&clearTimeout(e),e=setTimeout(o,id);try{const r=await $fetch(zc("builds/latest.json")+`?${Date.now()}`);r.id!==n.id&&t.hooks.callHook("app:manifest:update",r)}catch{}}va(()=>{e=setTimeout(o,id)})});function ak(t={}){const e=t.path||window.location.pathname;let o={};try{o=Ds(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(t.force||(o==null?void 0:o.path)!==e||(o==null?void 0:o.expires){n.clear()}),t.hook("app:chunkError",({error:i})=>{n.add(i)});function r(i){const a="href"in i&&i.href[0]==="#"?o.app.baseURL+i.href:ha(o.app.baseURL,i.fullPath);ak({path:a,persistState:!0})}t.hook("app:manifest:update",()=>{e.beforeResolve(r)}),e.onError((i,s)=>{n.has(i)&&r(s)})}}),ck=Rt({name:"nuxt:global-components"}),jo={default:()=>Ao(()=>import("./DZ87IHBo.js"),__vite__mapDeps([19,2,3,20]),import.meta.url)},uk=Rt({name:"nuxt:prefetch",setup(t){const e=gt();t.hooks.hook("app:mounted",()=>{e.beforeEach(async o=>{var r;const n=(r=o==null?void 0:o.meta)==null?void 0:r.layout;n&&typeof jo[n]=="function"&&await jo[n]()})}),t.hooks.hook("link:prefetch",o=>{if(Ro(o))return;const n=e.resolve(o);if(!n)return;const r=n.meta.layout;let i=qc(n.meta.middleware);i=i.filter(s=>typeof s=="string");for(const s of i)typeof Lr[s]=="function"&&Lr[s]();r&&typeof jo[r]=="function"&&jo[r]()})}});var dk=Object.defineProperty,Dd=Object.getOwnPropertySymbols,fk=Object.prototype.hasOwnProperty,hk=Object.prototype.propertyIsEnumerable,$d=(t,e,o)=>e in t?dk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,gk=(t,e)=>{for(var o in e||(e={}))fk.call(e,o)&&$d(t,o,e[o]);if(Dd)for(var o of Dd(e))hk.call(e,o)&&$d(t,o,e[o]);return t};function no(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function pk(t,e,o,n=1){let r=-1;const i=no(t),s=no(e);return i&&s?r=0:i?r=n:s?r=-n:typeof t=="string"&&typeof e=="string"?r=o(t,e):r=te?1:0,r}function Ul(t,e,o=new WeakSet){if(t===e)return!0;if(!t||!e||typeof t!="object"||typeof e!="object"||o.has(t)||o.has(e))return!1;o.add(t).add(e);let n=Array.isArray(t),r=Array.isArray(e),i,s,a;if(n&&r){if(s=t.length,s!=e.length)return!1;for(i=s;i--!==0;)if(!Ul(t[i],e[i],o))return!1;return!0}if(n!=r)return!1;let l=t instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==e.getTime();let u=t instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==e.toString();let f=Object.keys(t);if(s=f.length,s!==Object.keys(e).length)return!1;for(i=s;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,f[i]))return!1;for(i=s;i--!==0;)if(a=f[i],!Ul(t[a],e[a],o))return!1;return!0}function mk(t,e){return Ul(t,e)}function xa(t){return!!(t&&t.constructor&&t.call&&t.apply)}function xe(t){return!no(t)}function Kl(t,e){if(!t||!e)return null;try{const o=t[e];if(xe(o))return o}catch{}if(Object.keys(t).length){if(xa(e))return e(t);if(e.indexOf(".")===-1)return t[e];{let o=e.split("."),n=t;for(let r=0,i=o.length;rWt(i)===r)||""],o),n.join("."),o):void 0:Dt(t,o)}function _a(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function am(t){return xe(t)&&!isNaN(t)}function aE(t=""){return xe(t)&&t.length===1&&!!t.match(/\S| /)}function lE(){return new Intl.Collator(void 0,{numeric:!0}).compare}function xo(t,e){if(e){const o=e.test(t);return e.lastIndex=0,o}return!1}function lm(...t){const e=(o={},n={})=>{const r=gk({},o);return Object.keys(n).forEach(i=>{ro(n[i])&&i in o&&ro(o[i])?r[i]=e(o[i],n[i]):r[i]=n[i]}),r};return t.reduce((o,n,r)=>r===0?n:e(o,n),{})}function Dr(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function Mt(t){if(t&&/[\xC0-\xFF\u0100-\u017E]/.test(t)){const o={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let n in o)t=t.replace(o[n],n)}return t}function cE(t,e,o){t&&e!==o&&(o>=t.length&&(o%=t.length,e%=t.length),t.splice(o,0,t.splice(e,1)[0]))}function uE(t,e,o=1,n,r=1){const i=pk(t,e,n,o);let s=o;return(no(t)||no(e))&&(s=r===1?o:r),s*i}function bk(t){return xt(t,!1)?t[0].toUpperCase()+t.slice(1):t}function cm(t){return xt(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,o)=>o===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Id(t){return xt(t)?t.replace(/[A-Z]/g,(e,o)=>o===0?e:"."+e.toLowerCase()).toLowerCase():t}function wi(){const t=new Map;return{on(e,o){let n=t.get(e);return n?n.push(o):n=[o],t.set(e,n),this},off(e,o){let n=t.get(e);return n&&n.splice(n.indexOf(o)>>>0,1),this},emit(e,o){let n=t.get(e);n&&n.slice().map(r=>{r(o)})},clear(){t.clear()}}}var yk=Object.defineProperty,vk=Object.defineProperties,xk=Object.getOwnPropertyDescriptors,Vs=Object.getOwnPropertySymbols,um=Object.prototype.hasOwnProperty,dm=Object.prototype.propertyIsEnumerable,Nd=(t,e,o)=>e in t?yk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,zt=(t,e)=>{for(var o in e||(e={}))um.call(e,o)&&Nd(t,o,e[o]);if(Vs)for(var o of Vs(e))dm.call(e,o)&&Nd(t,o,e[o]);return t},Ya=(t,e)=>vk(t,xk(e)),lo=(t,e)=>{var o={};for(var n in t)um.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(t!=null&&Vs)for(var n of Vs(t))e.indexOf(n)<0&&dm.call(t,n)&&(o[n]=t[n]);return o};function _k(...t){return lm(...t)}var kk=wi(),Ht=kk;function Fd(t,e){_a(t)?t.push(...e||[]):ro(t)&&Object.assign(t,e)}function wk(t){return ro(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function jd(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(n=>e.endsWith(n))?t:`${t}`.trim().split(" ").map(i=>am(i)?`${i}px`:i).join(" ")}function Ck(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Yl(t="",e=""){return Ck(`${xt(t,!1)&&xt(e,!1)?`${t}-`:t}${e}`)}function fm(t="",e=""){return`--${Yl(t,e)}`}function hm(t,e="",o="",n=[],r){if(xt(t)){const i=/{([^}]*)}/g,s=t.trim();if(xo(s,i)){const a=s.replaceAll(i,u=>{const f=u.replace(/{|}/g,"").split(".").filter(h=>!n.some(g=>xo(h,g)));return`var(${fm(o,cm(f.join("-")))}${xe(r)?`, ${r}`:""})`}),l=/(\d+\s+[\+\-\*\/]\s+\d+)/g,c=/var\([^)]+\)/g;return xo(a.replace(c,"0"),l)?`calc(${a})`:a}return jd(s,e)}else if(am(t))return jd(t,e)}function Sk(t,e,o){xt(e,!1)&&t.push(`${e}:${o};`)}function Nn(t,e){return t?`${t}{${e}}`:""}var dE=t=>{var e;const o=ve.getTheme(),n=ql(o,t,void 0,"variable"),r=(e=n==null?void 0:n.match(/--[\w-]+/g))==null?void 0:e[0],i=ql(o,t,void 0,"value");return{name:r,variable:n,value:i}},$r=(...t)=>ql(ve.getTheme(),...t),ql=(t={},e,o,n)=>{if(e){const{variable:r,options:i}=ve.defaults||{},{prefix:s,transform:a}=(t==null?void 0:t.options)||i||{},c=xo(e,/{([^}]*)}/g)?e:`{${e}}`;return n==="value"||no(n)&&a==="strict"?ve.getTokenValue(e):hm(c,void 0,s,[r.excludedKeyRegex],o)}return""};function Pk(t,e={}){const o=ve.defaults.variable,{prefix:n=o.prefix,selector:r=o.selector,excludedKeyRegex:i=o.excludedKeyRegex}=e,s=(c,u="")=>Object.entries(c).reduce((d,[f,h])=>{const g=xo(f,i)?Yl(u):Yl(u,cm(f)),p=wk(h);if(ro(p)){const{variables:y,tokens:x}=s(p,g);Fd(d.tokens,x),Fd(d.variables,y)}else d.tokens.push((n?g.replace(`${n}-`,""):g).replaceAll("-",".")),Sk(d.variables,fm(g),hm(p,g,n,[i]));return d},{variables:[],tokens:[]}),{variables:a,tokens:l}=s(t,n);return{value:a,tokens:l,declarations:a.join(""),css:Nn(r,a.join(""))}}var Ft={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(o=>o!=="custom").map(o=>this.rules[o]);return[t].flat().map(o=>{var n;return(n=e.map(r=>r.resolve(o)).find(r=>r.matched))!=null?n:this.rules.custom.resolve(o)})}},_toVariables(t,e){return Pk(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:o,set:n,defaults:r}){var i,s,a,l,c,u,d;const{preset:f,options:h}=e;let g,p,y,x,v,m,b;if(xe(f)&&h.transform!=="strict"){const{primitive:_,semantic:C,extend:S}=f,T=C||{},{colorScheme:P}=T,O=lo(T,["colorScheme"]),B=S||{},{colorScheme:E}=B,N=lo(B,["colorScheme"]),X=P||{},{dark:q}=X,I=lo(X,["dark"]),U=E||{},{dark:W}=U,oe=lo(U,["dark"]),Re=xe(_)?this._toVariables({primitive:_},h):{},ke=xe(O)?this._toVariables({semantic:O},h):{},pe=xe(I)?this._toVariables({light:I},h):{},et=xe(q)?this._toVariables({dark:q},h):{},He=xe(N)?this._toVariables({semantic:N},h):{},_t=xe(oe)?this._toVariables({light:oe},h):{},Ne=xe(W)?this._toVariables({dark:W},h):{},[A,Y]=[(i=Re.declarations)!=null?i:"",Re.tokens],[V,G]=[(s=ke.declarations)!=null?s:"",ke.tokens||[]],[fe,we]=[(a=pe.declarations)!=null?a:"",pe.tokens||[]],[k,w]=[(l=et.declarations)!=null?l:"",et.tokens||[]],[R,L]=[(c=He.declarations)!=null?c:"",He.tokens||[]],[M,D]=[(u=_t.declarations)!=null?u:"",_t.tokens||[]],[z,H]=[(d=Ne.declarations)!=null?d:"",Ne.tokens||[]];g=this.transformCSS(t,A,"light","variable",h,n,r),p=Y;const F=this.transformCSS(t,`${V}${fe}`,"light","variable",h,n,r),$=this.transformCSS(t,`${k}`,"dark","variable",h,n,r);y=`${F}${$}`,x=[...new Set([...G,...we,...w])];const J=this.transformCSS(t,`${R}${M}color-scheme:light`,"light","variable",h,n,r),K=this.transformCSS(t,`${z}color-scheme:dark`,"dark","variable",h,n,r);v=`${J}${K}`,m=[...new Set([...L,...D,...H])],b=Dt(f.css,{dt:$r})}return{primitive:{css:g,tokens:p},semantic:{css:y,tokens:x},global:{css:v,tokens:m},style:b}},getPreset({name:t="",preset:e={},options:o,params:n,set:r,defaults:i,selector:s}){var a,l,c;let u,d,f;if(xe(e)&&o.transform!=="strict"){const h=t.replace("-directive",""),g=e,{colorScheme:p,extend:y,css:x}=g,v=lo(g,["colorScheme","extend","css"]),m=y||{},{colorScheme:b}=m,_=lo(m,["colorScheme"]),C=p||{},{dark:S}=C,T=lo(C,["dark"]),P=b||{},{dark:O}=P,B=lo(P,["dark"]),E=xe(v)?this._toVariables({[h]:zt(zt({},v),_)},o):{},N=xe(T)?this._toVariables({[h]:zt(zt({},T),B)},o):{},X=xe(S)?this._toVariables({[h]:zt(zt({},S),O)},o):{},[q,I]=[(a=E.declarations)!=null?a:"",E.tokens||[]],[U,W]=[(l=N.declarations)!=null?l:"",N.tokens||[]],[oe,Re]=[(c=X.declarations)!=null?c:"",X.tokens||[]],ke=this.transformCSS(h,`${q}${U}`,"light","variable",o,r,i,s),pe=this.transformCSS(h,oe,"dark","variable",o,r,i,s);u=`${ke}${pe}`,d=[...new Set([...I,...W,...Re])],f=Dt(x,{dt:$r})}return{css:u,tokens:d,style:f}},getPresetC({name:t="",theme:e={},params:o,set:n,defaults:r}){var i;const{preset:s,options:a}=e,l=(i=s==null?void 0:s.components)==null?void 0:i[t];return this.getPreset({name:t,preset:l,options:a,params:o,set:n,defaults:r})},getPresetD({name:t="",theme:e={},params:o,set:n,defaults:r}){var i;const s=t.replace("-directive",""),{preset:a,options:l}=e,c=(i=a==null?void 0:a.directives)==null?void 0:i[s];return this.getPreset({name:s,preset:c,options:l,params:o,set:n,defaults:r})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var o;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(o=t.darkModeSelector)!=null?o:e.options.darkModeSelector):[]},getLayerOrder(t,e={},o,n){const{cssLayer:r}=e;return r?`@layer ${Dt(r.order||"primeui",o)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:o,props:n={},set:r,defaults:i}){const s=this.getCommon({name:t,theme:e,params:o,set:r,defaults:i}),a=Object.entries(n).reduce((l,[c,u])=>l.push(`${c}="${u}"`)&&l,[]).join(" ");return Object.entries(s||{}).reduce((l,[c,u])=>{if(u!=null&&u.css){const d=Dr(u==null?void 0:u.css),f=`${c}-variables`;l.push(``)}return l},[]).join("")},getStyleSheet({name:t="",theme:e={},params:o,props:n={},set:r,defaults:i}){var s;const a={name:t,theme:e,params:o,set:r,defaults:i},l=(s=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:s.css,c=Object.entries(n).reduce((u,[d,f])=>u.push(`${d}="${f}"`)&&u,[]).join(" ");return l?``:""},createTokens(t={},e,o="",n="",r={}){return Object.entries(t).forEach(([i,s])=>{const a=xo(i,e.variable.excludedKeyRegex)?o:o?`${o}.${Id(i)}`:Id(i),l=n?`${n}.${i}`:i;ro(s)?this.createTokens(s,e,a,l,r):(r[a]||(r[a]={paths:[],computed(c,u={}){var d,f;return this.paths.length===1?(d=this.paths[0])==null?void 0:d.computed(this.paths[0].scheme,u.binding):c&&c!=="none"?(f=this.paths.find(h=>h.scheme===c))==null?void 0:f.computed(c,u.binding):this.paths.map(h=>h.computed(h.scheme,u[h.scheme]))}}),r[a].paths.push({path:l,value:s,scheme:l.includes("colorScheme.light")?"light":l.includes("colorScheme.dark")?"dark":"none",computed(c,u={}){const d=/{([^}]*)}/g;let f=s;if(u.name=this.path,u.binding||(u.binding={}),xo(s,d)){const g=s.trim().replaceAll(d,x=>{var v;const m=x.replace(/{|}/g,""),b=(v=r[m])==null?void 0:v.computed(c,u);return _a(b)&&b.length===2?`light-dark(${b[0].value},${b[1].value})`:b==null?void 0:b.value}),p=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,y=/var\([^)]+\)/g;f=xo(g.replace(y,"0"),p)?`calc(${g})`:g}return no(u.binding)&&delete u.binding,{colorScheme:c,path:this.path,paths:u,value:f.includes("undefined")?void 0:f}}}))}),r},getTokenValue(t,e,o){var n;const i=(l=>l.split(".").filter(u=>!xo(u.toLowerCase(),o.variable.excludedKeyRegex)).join("."))(e),s=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(n=t[i])==null?void 0:n.computed(s)].flat().filter(l=>l);return a.length===1?a[0].value:a.reduce((l={},c)=>{const u=c,{colorScheme:d}=u,f=lo(u,["colorScheme"]);return l[d]=f,l},void 0)},getSelectorRule(t,e,o,n){return o==="class"||o==="attr"?Nn(xe(e)?`${t}${e},${t} ${e}`:t,n):Nn(t,xe(e)?Nn(e,n):n)},transformCSS(t,e,o,n,r={},i,s,a){if(xe(e)){const{cssLayer:l}=r;if(n!=="style"){const c=this.getColorSchemeOption(r,s);e=o==="dark"?c.reduce((u,{type:d,selector:f})=>(xe(f)&&(u+=f.includes("[CSS]")?f.replace("[CSS]",e):this.getSelectorRule(f,a,d,e)),u),""):Nn(a??":root",e)}if(l){const c={name:"primeui",order:"primeui"};ro(l)&&(c.name=Dt(l.name,{name:t,type:n})),xe(c.name)&&(e=Nn(`@layer ${c.name}`,e),i==null||i.layerNames(c.name))}return e}return""}},ve={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=Ya(zt({},e),{options:zt(zt({},this.defaults.options),e.options)}),this._tokens=Ft.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),Ht.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Ya(zt({},this.theme),{preset:t}),this._tokens=Ft.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Ht.emit("preset:change",t),Ht.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Ya(zt({},this.theme),{options:t}),this.clearLoadedStyleNames(),Ht.emit("options:change",t),Ht.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return Ft.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Ft.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const o={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ft.getPresetC(o)},getDirective(t="",e){const o={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ft.getPresetD(o)},getCustomPreset(t="",e,o,n){const r={name:t,preset:e,options:this.options,selector:o,params:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ft.getPreset(r)},getLayerOrderCSS(t=""){return Ft.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,o="style",n){return Ft.transformCSS(t,e,n,o,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,o={}){return Ft.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,o={}){return Ft.getStyleSheet({name:t,theme:this.theme,params:e,props:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),Ht.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Ht.emit("theme:load"))}};function Tk(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Rk(t,e){if(t&&e){const o=n=>{Tk(t,n)||(t.classList?t.classList.add(n):t.className+=" "+n)};[e].flat().filter(Boolean).forEach(n=>n.split(" ").forEach(o))}}function Us(t){for(const e of document==null?void 0:document.styleSheets)try{for(const o of e==null?void 0:e.cssRules)for(const n of o==null?void 0:o.style)if(t.test(n))return{name:n,value:o.style.getPropertyValue(n).trim()}}catch{}return null}function Ok(t){if(t){let e=document.createElement("a");if(e.download!==void 0){const{name:o,src:n}=t;return e.setAttribute("href",n),e.setAttribute("download",o),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),!0}}return!1}function fE(t,e){let o=new Blob([t],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(o,e+".csv"):Ok({name:e+".csv",src:URL.createObjectURL(o)})||(t="data:text/csv;charset=utf-8,"+t,window.open(encodeURI(t)))}function qa(t,e){if(t&&e){const o=n=>{t.classList?t.classList.remove(n):t.className=t.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(n=>n.split(" ").forEach(o))}}function gm(t){let e={width:0,height:0};return t&&(t.style.visibility="hidden",t.style.display="block",e.width=t.offsetWidth,e.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible"),e}function pm(){let t=window,e=document,o=e.documentElement,n=e.getElementsByTagName("body")[0],r=t.innerWidth||o.clientWidth||n.clientWidth,i=t.innerHeight||o.clientHeight||n.clientHeight;return{width:r,height:i}}function Ek(){let t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}function Mk(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function hE(t,e,o=!0){var n,r,i,s;if(t){const a=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:gm(t),l=a.height,c=a.width,u=e.offsetHeight,d=e.offsetWidth,f=e.getBoundingClientRect(),h=Mk(),g=Ek(),p=pm();let y,x,v="top";f.top+u+l>p.height?(y=f.top+h-l,v="bottom",y<0&&(y=h)):y=u+f.top+h,f.left+c>p.width?x=Math.max(0,f.left+g+d-c):x=f.left+g,t.style.top=y+"px",t.style.left=x+"px",t.style.transformOrigin=v,o&&(t.style.marginTop=v==="bottom"?`calc(${(r=(n=Us(/-anchor-gutter$/))==null?void 0:n.value)!=null?r:"2px"} * -1)`:(s=(i=Us(/-anchor-gutter$/))==null?void 0:i.value)!=null?s:"")}}function gE(t,e){t&&(typeof e=="string"?t.style.cssText=e:Object.entries(e||{}).forEach(([o,n])=>t.style[o]=n))}function Ak(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function pE(t,e,o=!0){var n,r,i,s;if(t){const a=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:gm(t),l=e.offsetHeight,c=e.getBoundingClientRect(),u=pm();let d,f,h="top";c.top+l+a.height>u.height?(d=-1*a.height,h="bottom",c.top+d<0&&(d=-1*c.top)):d=l,a.width>u.width?f=c.left*-1:c.left+a.width>u.width?f=(c.left+a.width-u.width)*-1:f=0,t.style.top=d+"px",t.style.left=f+"px",t.style.transformOrigin=h,o&&(t.style.marginTop=h==="bottom"?`calc(${(r=(n=Us(/-anchor-gutter$/))==null?void 0:n.value)!=null?r:"2px"} * -1)`:(s=(i=Us(/-anchor-gutter$/))==null?void 0:i.value)!=null?s:"")}}function rr(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function mE(){if(window.getSelection){const t=window.getSelection()||{};t.empty?t.empty():t.removeAllRanges&&t.rangeCount>0&&t.getRangeAt(0).getClientRects().length>0&&t.removeAllRanges()}}function Ks(t,e={}){if(rr(t)){const o=(n,r)=>{var i,s;const a=(i=t==null?void 0:t.$attrs)!=null&&i[n]?[(s=t==null?void 0:t.$attrs)==null?void 0:s[n]]:[];return[r].flat().reduce((l,c)=>{if(c!=null){const u=typeof c;if(u==="string"||u==="number")l.push(c);else if(u==="object"){const d=Array.isArray(c)?o(n,c):Object.entries(c).map(([f,h])=>n==="style"&&(h||h===0)?`${f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?f:void 0);l=d.length?l.concat(d.filter(f=>!!f)):l}}return l},a)};Object.entries(e).forEach(([n,r])=>{if(r!=null){const i=n.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),r):n==="p-bind"?Ks(t,r):(r=n==="class"?[...new Set(o("class",r))].join(" ").trim():n==="style"?o("style",r).join(";").trim():r,(t.$attrs=t.$attrs||{})&&(t.$attrs[n]=r),t.setAttribute(n,r))}})}}function Bk(t,e={},...o){if(t){const n=document.createElement(t);return Ks(n,e),n.append(...o),n}}function bE(t,e){if(t){t.style.opacity="0";let o=+new Date,n="0",r=function(){n=`${+t.style.opacity+(new Date().getTime()-o)/e}`,t.style.opacity=n,o=+new Date,+n<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}}function Lk(t,e){return rr(t)?Array.from(t.querySelectorAll(e)):[]}function mm(t,e){return rr(t)?t.matches(e)?t:t.querySelector(e):null}function yE(t,e){t&&document.activeElement!==t&&t.focus(e)}function Dk(t,e){if(rr(t)){const o=t.getAttribute(e);return isNaN(o)?o==="true"||o==="false"?o==="true":o:+o}}function bm(t,e=""){let o=Lk(t,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}, [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}, input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}, select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}, @@ -180,16 +180,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * (c) 2022 Jukka Kurkela * Released under the MIT License */function Ci(t){return t+.5|0}const Ho=(t,e,o)=>Math.max(Math.min(t,o),e);function yr(t){return Ho(Ci(t*2.55),0,255)}function Yo(t){return Ho(Ci(t*255),0,255)}function po(t){return Ho(Ci(t/2.55)/100,0,1)}function tf(t){return Ho(Ci(t*100),0,100)}const At={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},Gl=[..."0123456789ABCDEF"],aS=t=>Gl[t&15],lS=t=>Gl[(t&240)>>4]+Gl[t&15],Wi=t=>(t&240)>>4===(t&15),cS=t=>Wi(t.r)&&Wi(t.g)&&Wi(t.b)&&Wi(t.a);function uS(t){var e=t.length,o;return t[0]==="#"&&(e===4||e===5?o={r:255&At[t[1]]*17,g:255&At[t[2]]*17,b:255&At[t[3]]*17,a:e===5?At[t[4]]*17:255}:(e===7||e===9)&&(o={r:At[t[1]]<<4|At[t[2]],g:At[t[3]]<<4|At[t[4]],b:At[t[5]]<<4|At[t[6]],a:e===9?At[t[7]]<<4|At[t[8]]:255})),o}const dS=(t,e)=>t<255?e(t):"";function fS(t){var e=cS(t)?aS:lS;return t?"#"+e(t.r)+e(t.g)+e(t.b)+dS(t.a,e):void 0}const hS=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function km(t,e,o){const n=e*Math.min(o,1-o),r=(i,s=(i+t/30)%12)=>o-n*Math.max(Math.min(s-3,9-s,1),-1);return[r(0),r(8),r(4)]}function gS(t,e,o){const n=(r,i=(r+t/60)%6)=>o-o*e*Math.max(Math.min(i,4-i,1),0);return[n(5),n(3),n(1)]}function pS(t,e,o){const n=km(t,1,.5);let r;for(e+o>1&&(r=1/(e+o),e*=r,o*=r),r=0;r<3;r++)n[r]*=1-e-o,n[r]+=e;return n}function mS(t,e,o,n,r){return t===r?(e-o)/n+(e.5?u/(2-i-s):u/(i+s),l=mS(o,n,r,u,i),l=l*60+.5),[l|0,c||0,a]}function Qc(t,e,o,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,o,n)).map(Yo)}function eu(t,e,o){return Qc(km,t,e,o)}function bS(t,e,o){return Qc(pS,t,e,o)}function yS(t,e,o){return Qc(gS,t,e,o)}function wm(t){return(t%360+360)%360}function vS(t){const e=hS.exec(t);let o=255,n;if(!e)return;e[5]!==n&&(o=e[6]?yr(+e[5]):Yo(+e[5]));const r=wm(+e[2]),i=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?n=bS(r,i,s):e[1]==="hsv"?n=yS(r,i,s):n=eu(r,i,s),{r:n[0],g:n[1],b:n[2],a:o}}function xS(t,e){var o=Jc(t);o[0]=wm(o[0]+e),o=eu(o),t.r=o[0],t.g=o[1],t.b=o[2]}function _S(t){if(!t)return;const e=Jc(t),o=e[0],n=tf(e[1]),r=tf(e[2]);return t.a<255?`hsla(${o}, ${n}%, ${r}%, ${po(t.a)})`:`hsl(${o}, ${n}%, ${r}%)`}const of={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"},nf={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 kS(){const t={},e=Object.keys(nf),o=Object.keys(of);let n,r,i,s,a;for(n=0;n>16&255,i>>8&255,i&255]}return t}let zi;function wS(t){zi||(zi=kS(),zi.transparent=[0,0,0,0]);const e=zi[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const CS=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function SS(t){const e=CS.exec(t);let o=255,n,r,i;if(e){if(e[7]!==n){const s=+e[7];o=e[8]?yr(s):Ho(s*255,0,255)}return n=+e[1],r=+e[3],i=+e[5],n=255&(e[2]?yr(n):Ho(n,0,255)),r=255&(e[4]?yr(r):Ho(r,0,255)),i=255&(e[6]?yr(i):Ho(i,0,255)),{r:n,g:r,b:i,a:o}}}function PS(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${po(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Za=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Ln=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function TS(t,e,o){const n=Ln(po(t.r)),r=Ln(po(t.g)),i=Ln(po(t.b));return{r:Yo(Za(n+o*(Ln(po(e.r))-n))),g:Yo(Za(r+o*(Ln(po(e.g))-r))),b:Yo(Za(i+o*(Ln(po(e.b))-i))),a:t.a+o*(e.a-t.a)}}function Vi(t,e,o){if(t){let n=Jc(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*o,e===0?360:1)),n=eu(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function Cm(t,e){return t&&Object.assign(e||{},t)}function rf(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=Yo(t[3]))):(e=Cm(t,{r:0,g:0,b:0,a:1}),e.a=Yo(e.a)),e}function RS(t){return t.charAt(0)==="r"?SS(t):vS(t)}class ti{constructor(e){if(e instanceof ti)return e;const o=typeof e;let n;o==="object"?n=rf(e):o==="string"&&(n=uS(e)||wS(e)||RS(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=Cm(this._rgb);return e&&(e.a=po(e.a)),e}set rgb(e){this._rgb=rf(e)}rgbString(){return this._valid?PS(this._rgb):void 0}hexString(){return this._valid?fS(this._rgb):void 0}hslString(){return this._valid?_S(this._rgb):void 0}mix(e,o){if(e){const n=this.rgb,r=e.rgb;let i;const s=o===i?.5:o,a=2*s-1,l=n.a-r.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;i=1-c,n.r=255&c*n.r+i*r.r+.5,n.g=255&c*n.g+i*r.g+.5,n.b=255&c*n.b+i*r.b+.5,n.a=s*n.a+(1-s)*r.a,this.rgb=n}return this}interpolate(e,o){return e&&(this._rgb=TS(this._rgb,e._rgb,o)),this}clone(){return new ti(this.rgb)}alpha(e){return this._rgb.a=Yo(e),this}clearer(e){const o=this._rgb;return o.a*=1-e,this}greyscale(){const e=this._rgb,o=Ci(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=o,this}opaquer(e){const o=this._rgb;return o.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Vi(this._rgb,2,e),this}darken(e){return Vi(this._rgb,2,-e),this}saturate(e){return Vi(this._rgb,1,e),this}desaturate(e){return Vi(this._rgb,1,-e),this}rotate(e){return xS(this._rgb,e),this}}/*! - * Chart.js v4.4.5 + * Chart.js v4.4.6 * https://www.chartjs.org * (c) 2024 Chart.js Contributors * Released under the MIT License */function co(){}const OS=(()=>{let t=0;return()=>t++})();function de(t){return t===null||typeof t>"u"}function De(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ae(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function je(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function St(t,e){return je(t)?t:e}function ne(t,e){return typeof t>"u"?e:t}const ES=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,Sm=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Pe(t,e,o){if(t&&typeof t.call=="function")return t.apply(o,e)}function ye(t,e,o,n){let r,i,s;if(De(t))for(i=t.length,r=0;rt,x:t=>t.x,y:t=>t.y};function BS(t){const e=t.split("."),o=[];let n="";for(const r of e)n+=r,n.endsWith("\\")?n=n.slice(0,-1)+".":(o.push(n),n="");return o}function LS(t){const e=BS(t);return o=>{for(const n of e){if(n==="")break;o=o&&o[n]}return o}}function Xo(t,e){return(sf[e]||(sf[e]=LS(e)))(t)}function tu(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ni=t=>typeof t<"u",Zo=t=>typeof t=="function",af=(t,e)=>{if(t.size!==e.size)return!1;for(const o of t)if(!e.has(o))return!1;return!0};function DS(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Me=Math.PI,Ee=2*Me,$S=Ee+Me,Gs=Number.POSITIVE_INFINITY,IS=Me/180,We=Me/2,sn=Me/4,lf=Me*2/3,Wo=Math.log10,oo=Math.sign;function Nr(t,e,o){return Math.abs(t-e)r-i).pop(),e}function er(t){return!isNaN(parseFloat(t))&&isFinite(t)}function FS(t,e){const o=Math.round(t);return o-e<=t&&o+e>=t}function Tm(t,e,o){let n,r,i;for(n=0,r=t.length;nl&&c=Math.min(e,o)-n&&t<=Math.max(e,o)+n}function nu(t,e,o){o=o||(s=>t[s]1;)i=r+n>>1,o(i)?r=i:n=i;return{lo:r,hi:n}}const ko=(t,e,o,n)=>nu(t,o,n?r=>{const i=t[r][e];return it[r][e]nu(t,o,n=>t[n][e]>=o);function zS(t,e,o){let n=0,r=t.length;for(;nn&&t[r-1]>o;)r--;return n>0||r{const n="_onData"+tu(o),r=t[o];Object.defineProperty(t,o,{configurable:!0,enumerable:!1,value(...i){const s=r.apply(this,i);return t._chartjs.listeners.forEach(a=>{typeof a[n]=="function"&&a[n](...i)}),s}})})}function df(t,e){const o=t._chartjs;if(!o)return;const n=o.listeners,r=n.indexOf(e);r!==-1&&n.splice(r,1),!(n.length>0)&&(Om.forEach(i=>{delete t[i]}),delete t._chartjs)}function Em(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Mm=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function Am(t,e){let o=[],n=!1;return function(...r){o=r,n||(n=!0,Mm.call(window,()=>{n=!1,t.apply(e,o)}))}}function US(t,e){let o;return function(...n){return e?(clearTimeout(o),o=setTimeout(t,e,n)):t.apply(this,n),e}}const ru=t=>t==="start"?"left":t==="end"?"right":"center",rt=(t,e,o)=>t==="start"?e:t==="end"?o:(e+o)/2,KS=(t,e,o,n)=>t===(n?"left":"right")?o:t==="center"?(e+o)/2:e;function Bm(t,e,o){const n=e.length;let r=0,i=n;if(t._sorted){const{iScale:s,_parsed:a}=t,l=s.axis,{min:c,max:u,minDefined:d,maxDefined:f}=s.getUserBounds();d&&(r=Je(Math.min(ko(a,l,c).lo,o?n:ko(e,l,s.getPixelForValue(c)).lo),0,n-1)),f?i=Je(Math.max(ko(a,s.axis,u,!0).hi+1,o?0:ko(e,l,s.getPixelForValue(u),!0).hi+1),r,n)-r:i=n-r}return{start:r,count:i}}function Lm(t){const{xScale:e,yScale:o,_scaleRanges:n}=t,r={xmin:e.min,xmax:e.max,ymin:o.min,ymax:o.max};if(!n)return t._scaleRanges=r,!0;const i=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==o.min||n.ymax!==o.max;return Object.assign(n,r),i}const Ui=t=>t===0||t===1,ff=(t,e,o)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ee/o)),hf=(t,e,o)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ee/o)+1,Fr={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*We)+1,easeOutSine:t=>Math.sin(t*We),easeInOutSine:t=>-.5*(Math.cos(Me*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Ui(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Ui(t)?t:ff(t,.075,.3),easeOutElastic:t=>Ui(t)?t:hf(t,.075,.3),easeInOutElastic(t){return Ui(t)?t:t<.5?.5*ff(t*2,.1125,.45):.5+.5*hf(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Fr.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Fr.easeInBounce(t*2)*.5:Fr.easeOutBounce(t*2-1)*.5+.5};function iu(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function gf(t){return iu(t)?t:new ti(t)}function Ja(t){return iu(t)?t:new ti(t).saturate(.5).darken(.1).hexString()}const YS=["x","y","borderWidth","radius","tension"],qS=["color","borderColor","backgroundColor"];function GS(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:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:qS},numbers:{type:"number",properties:YS}}),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:e=>e|0}}}})}function XS(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const pf=new Map;function ZS(t,e){e=e||{};const o=t+JSON.stringify(e);let n=pf.get(o);return n||(n=new Intl.NumberFormat(t,e),pf.set(o,n)),n}function Si(t,e,o){return ZS(e,o).format(t)}const Dm={values(t){return De(t)?t:""+t},numeric(t,e,o){if(t===0)return"0";const n=this.chart.options.locale;let r,i=t;if(o.length>1){const c=Math.max(Math.abs(o[0].value),Math.abs(o[o.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),i=JS(t,o)}const s=Wo(Math.abs(i)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Si(t,n,l)},logarithmic(t,e,o){if(t===0)return"0";const n=o[e].significand||t/Math.pow(10,Math.floor(Wo(t)));return[1,2,3,5,10,15].includes(n)||e>.8*o.length?Dm.numeric.call(this,t,e,o):""}};function JS(t,e){let o=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(o)>=1&&t!==Math.floor(t)&&(o=t-Math.floor(t)),o}var ka={formatters:Dm};function QS(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:(e,o)=>o.lineWidth,tickColor:(e,o)=>o.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:ka.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:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Tn=Object.create(null),Zl=Object.create(null);function jr(t,e){if(!e)return t;const o=e.split(".");for(let n=0,r=o.length;nn.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=(n,r)=>Ja(r.backgroundColor),this.hoverBorderColor=(n,r)=>Ja(r.borderColor),this.hoverColor=(n,r)=>Ja(r.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(e),this.apply(o)}set(e,o){return Qa(this,e,o)}get(e){return jr(this,e)}describe(e,o){return Qa(Zl,e,o)}override(e,o){return Qa(Tn,e,o)}route(e,o,n,r){const i=jr(this,e),s=jr(this,n),a="_"+o;Object.defineProperties(i,{[a]:{value:i[o],writable:!0},[o]:{enumerable:!0,get(){const l=this[a],c=s[r];return ae(l)?Object.assign({},c,l):ne(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(o=>o(this))}}var $e=new e5({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[GS,XS,QS]);function t5(t){return!t||de(t.size)||de(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Xs(t,e,o,n,r){let i=e[r];return i||(i=e[r]=t.measureText(r).width,o.push(r)),i>n&&(n=i),n}function o5(t,e,o,n){n=n||{};let r=n.data=n.data||{},i=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(r=n.data={},i=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let s=0;const a=o.length;let l,c,u,d,f;for(l=0;lo.length){for(l=0;l0&&t.stroke()}}function wo(t,e,o){return o=o||.5,!e||t&&t.x>e.left-o&&t.xe.top-o&&t.y0&&i.strokeColor!=="";let l,c;for(t.save(),t.font=r.string,i5(t,i),l=0;l+t||0;function su(t,e){const o={},n=ae(e),r=n?Object.keys(e):e,i=ae(t)?n?s=>ne(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of r)o[s]=d5(i(s));return o}function Im(t){return su(t,{top:"y",right:"x",bottom:"y",left:"x"})}function wn(t){return su(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ct(t){const e=Im(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ge(t,e){t=t||{},e=e||$e.font;let o=ne(t.size,e.size);typeof o=="string"&&(o=parseInt(o,10));let n=ne(t.style,e.style);n&&!(""+n).match(c5)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const r={family:ne(t.family,e.family),lineHeight:u5(ne(t.lineHeight,e.lineHeight),o),size:o,style:n,weight:ne(t.weight,e.weight),string:""};return r.string=t5(r),r}function vr(t,e,o,n){let r,i,s;for(r=0,i=t.length;ro&&a===0?0:a+l;return{min:s(n,-Math.abs(i)),max:s(r,i)}}function tn(t,e){return Object.assign(Object.create(t),e)}function au(t,e=[""],o,n,r=()=>t[0]){const i=o||t;typeof n>"u"&&(n=Hm("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:r,override:a=>au([a,...t],e,i,n)};return new Proxy(s,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return Fm(a,l,()=>x5(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return yf(a).includes(l)},ownKeys(a){return yf(a)},set(a,l,c){const u=a._storage||(a._storage=r());return a[l]=u[l]=c,delete a._keys,!0}})}function tr(t,e,o,n){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:o,_stack:new Set,_descriptors:Nm(t,n),setContext:i=>tr(t,i,o,n),override:i=>tr(t.override(i),e,o,n)};return new Proxy(r,{deleteProperty(i,s){return delete i[s],delete t[s],!0},get(i,s,a){return Fm(i,s,()=>g5(i,s,a))},getOwnPropertyDescriptor(i,s){return i._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(i,s,a){return t[s]=a,delete i[s],!0}})}function Nm(t,e={scriptable:!0,indexable:!0}){const{_scriptable:o=e.scriptable,_indexable:n=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:o,indexable:n,isScriptable:Zo(o)?o:()=>o,isIndexable:Zo(n)?n:()=>n}}const h5=(t,e)=>t?t+tu(e):e,lu=(t,e)=>ae(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Fm(t,e,o){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const n=o();return t[e]=n,n}function g5(t,e,o){const{_proxy:n,_context:r,_subProxy:i,_descriptors:s}=t;let a=n[e];return Zo(a)&&s.isScriptable(e)&&(a=p5(e,a,t,o)),De(a)&&a.length&&(a=m5(e,a,t,s.isIndexable)),lu(e,a)&&(a=tr(a,r,i&&i[e],s)),a}function p5(t,e,o,n){const{_proxy:r,_context:i,_subProxy:s,_stack:a}=o;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(i,s||n);return a.delete(t),lu(t,l)&&(l=cu(r._scopes,r,t,l)),l}function m5(t,e,o,n){const{_proxy:r,_context:i,_subProxy:s,_descriptors:a}=o;if(typeof i.index<"u"&&n(t))return e[i.index%e.length];if(ae(e[0])){const l=e,c=r._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=cu(c,r,t,u);e.push(tr(d,i,s&&s[t],a))}}return e}function jm(t,e,o){return Zo(t)?t(e,o):t}const b5=(t,e)=>t===!0?e:typeof t=="string"?Xo(e,t):void 0;function y5(t,e,o,n,r){for(const i of e){const s=b5(o,i);if(s){t.add(s);const a=jm(s._fallback,o,r);if(typeof a<"u"&&a!==o&&a!==n)return a}else if(s===!1&&typeof n<"u"&&o!==n)return null}return!1}function cu(t,e,o,n){const r=e._rootScopes,i=jm(e._fallback,o,n),s=[...t,...r],a=new Set;a.add(n);let l=bf(a,s,o,i||o,n);return l===null||typeof i<"u"&&i!==o&&(l=bf(a,s,i,l,n),l===null)?!1:au(Array.from(a),[""],r,i,()=>v5(e,o,n))}function bf(t,e,o,n,r){for(;o;)o=y5(t,e,o,n,r);return o}function v5(t,e,o){const n=t._getTarget();e in n||(n[e]={});const r=n[e];return De(r)&&ae(o)?o:r||{}}function x5(t,e,o,n){let r;for(const i of e)if(r=Hm(h5(i,t),o),typeof r<"u")return lu(t,r)?cu(o,n,t,r):r}function Hm(t,e){for(const o of e){if(!o)continue;const n=o[t];if(typeof n<"u")return n}}function yf(t){let e=t._keys;return e||(e=t._keys=_5(t._scopes)),e}function _5(t){const e=new Set;for(const o of t)for(const n of Object.keys(o).filter(r=>!r.startsWith("_")))e.add(n);return Array.from(e)}function Wm(t,e,o,n){const{iScale:r}=t,{key:i="r"}=this._parsing,s=new Array(n);let a,l,c,u;for(a=0,l=n;aet==="x"?"y":"x";function w5(t,e,o,n){const r=t.skip?e:t,i=e,s=o.skip?e:o,a=Xl(i,r),l=Xl(s,i);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=n*c,f=n*u;return{previous:{x:i.x-d*(s.x-r.x),y:i.y-d*(s.y-r.y)},next:{x:i.x+f*(s.x-r.x),y:i.y+f*(s.y-r.y)}}}function C5(t,e,o){const n=t.length;let r,i,s,a,l,c=or(t,0);for(let u=0;u!c.skip)),e.cubicInterpolationMode==="monotone")P5(t,r);else{let c=n?t[t.length-1]:t[0];for(i=0,s=t.length;it.ownerDocument.defaultView.getComputedStyle(t,null);function O5(t,e){return Sa(t).getPropertyValue(e)}const E5=["top","right","bottom","left"];function Cn(t,e,o){const n={};o=o?"-"+o:"";for(let r=0;r<4;r++){const i=E5[r];n[i]=parseFloat(t[e+"-"+i+o])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const M5=(t,e,o)=>(t>0||e>0)&&(!o||!o.shadowRoot);function A5(t,e){const o=t.touches,n=o&&o.length?o[0]:t,{offsetX:r,offsetY:i}=n;let s=!1,a,l;if(M5(r,i,t.target))a=r,l=i;else{const c=e.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function fn(t,e){if("native"in t)return t;const{canvas:o,currentDevicePixelRatio:n}=e,r=Sa(o),i=r.boxSizing==="border-box",s=Cn(r,"padding"),a=Cn(r,"border","width"),{x:l,y:c,box:u}=A5(t,o),d=s.left+(u&&a.left),f=s.top+(u&&a.top);let{width:h,height:g}=e;return i&&(h-=s.width+a.width,g-=s.height+a.height),{x:Math.round((l-d)/h*o.width/n),y:Math.round((c-f)/g*o.height/n)}}function B5(t,e,o){let n,r;if(e===void 0||o===void 0){const i=t&&du(t);if(!i)e=t.clientWidth,o=t.clientHeight;else{const s=i.getBoundingClientRect(),a=Sa(i),l=Cn(a,"border","width"),c=Cn(a,"padding");e=s.width-c.width-l.width,o=s.height-c.height-l.height,n=Zs(a.maxWidth,i,"clientWidth"),r=Zs(a.maxHeight,i,"clientHeight")}}return{width:e,height:o,maxWidth:n||Gs,maxHeight:r||Gs}}const Yi=t=>Math.round(t*10)/10;function L5(t,e,o,n){const r=Sa(t),i=Cn(r,"margin"),s=Zs(r.maxWidth,t,"clientWidth")||Gs,a=Zs(r.maxHeight,t,"clientHeight")||Gs,l=B5(t,e,o);let{width:c,height:u}=l;if(r.boxSizing==="content-box"){const f=Cn(r,"border","width"),h=Cn(r,"padding");c-=h.width+f.width,u-=h.height+f.height}return c=Math.max(0,c-i.width),u=Math.max(0,n?c/n:u-i.height),c=Yi(Math.min(c,s,l.maxWidth)),u=Yi(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Yi(c/2)),(e!==void 0||o!==void 0)&&n&&l.height&&u>l.height&&(u=l.height,c=Yi(Math.floor(u*n))),{width:c,height:u}}function vf(t,e,o){const n=e||1,r=Math.floor(t.height*n),i=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(o||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==n||s.height!==r||s.width!==i?(t.currentDevicePixelRatio=n,s.height=r,s.width=i,t.ctx.setTransform(n,0,0,n,0,0),!0):!1}const D5=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};uu()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function xf(t,e){const o=O5(t,e),n=o&&o.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function hn(t,e,o,n){return{x:t.x+o*(e.x-t.x),y:t.y+o*(e.y-t.y)}}function $5(t,e,o,n){return{x:t.x+o*(e.x-t.x),y:n==="middle"?o<.5?t.y:e.y:n==="after"?o<1?t.y:e.y:o>0?e.y:t.y}}function I5(t,e,o,n){const r={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},s=hn(t,r,o),a=hn(r,i,o),l=hn(i,e,o),c=hn(s,a,o),u=hn(a,l,o);return hn(c,u,o)}const N5=function(t,e){return{x(o){return t+t+e-o},setWidth(o){e=o},textAlign(o){return o==="center"?o:o==="right"?"left":"right"},xPlus(o,n){return o-n},leftForLtr(o,n){return o-n}}},F5=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Gn(t,e,o){return t?N5(e,o):F5()}function Vm(t,e){let o,n;(e==="ltr"||e==="rtl")&&(o=t.canvas.style,n=[o.getPropertyValue("direction"),o.getPropertyPriority("direction")],o.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Um(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Km(t){return t==="angle"?{between:ri,compare:jS,normalize:Pt}:{between:_o,compare:(e,o)=>e-o,normalize:e=>e}}function _f({start:t,end:e,count:o,loop:n,style:r}){return{start:t%o,end:e%o,loop:n&&(e-t+1)%o===0,style:r}}function j5(t,e,o){const{property:n,start:r,end:i}=o,{between:s,normalize:a}=Km(n),l=e.length;let{start:c,end:u,loop:d}=t,f,h;if(d){for(c+=l,u+=l,f=0,h=l;fl(r,m,x)&&a(r,m)!==0,_=()=>a(i,x)===0||l(i,m,x),C=()=>p||b(),S=()=>!p||_();for(let T=u,P=u;T<=d;++T)v=e[T%s],!v.skip&&(x=c(v[n]),x!==m&&(p=l(x,r,i),y===null&&C()&&(y=a(x,r)===0?T:P),y!==null&&S()&&(g.push(_f({start:y,end:T,loop:f,count:s,style:h})),y=null),P=T,m=x));return y!==null&&g.push(_f({start:y,end:d,loop:f,count:s,style:h})),g}function qm(t,e){const o=[],n=t.segments;for(let r=0;rr&&t[i%e].skip;)i--;return i%=e,{start:r,end:i}}function W5(t,e,o,n){const r=t.length,i=[];let s=e,a=t[e],l;for(l=e+1;l<=o;++l){const c=t[l%r];c.skip||c.stop?a.skip||(n=!1,i.push({start:e%r,end:(l-1)%r,loop:n}),e=s=c.stop?l:null):(s=l,a.skip&&(e=l)),a=c}return s!==null&&i.push({start:e%r,end:s%r,loop:n}),i}function z5(t,e){const o=t.points,n=t.options.spanGaps,r=o.length;if(!r)return[];const i=!!t._loop,{start:s,end:a}=H5(o,r,i,n);if(n===!0)return kf(t,[{start:s,end:a,loop:i}],o,e);const l=aa({chart:e,initial:o.initial,numSteps:s,currentStep:Math.min(n-o.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=Mm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let o=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;const i=n.items;let s=i.length-1,a=!1,l;for(;s>=0;--s)l=i[s],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(e),a=!0):(i[s]=i[i.length-1],i.pop());a&&(r.draw(),this._notify(r,n,e,"progress")),i.length||(n.running=!1,this._notify(r,n,e,"complete"),n.initial=!1),o+=i.length}),this._lastDate=e,o===0&&(this._running=!1)}_getAnims(e){const o=this._charts;let n=o.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},o.set(e,n)),n}listen(e,o,n){this._getAnims(e).listeners[o].push(n)}add(e,o){!o||!o.length||this._getAnims(e).items.push(...o)}has(e){return this._getAnims(e).items.length>0}start(e){const o=this._charts.get(e);o&&(o.running=!0,o.start=Date.now(),o.duration=o.items.reduce((n,r)=>Math.max(n,r._duration),0),this._refresh())}running(e){if(!this._running)return!1;const o=this._charts.get(e);return!(!o||!o.running||!o.items.length)}stop(e){const o=this._charts.get(e);if(!o||!o.items.length)return;const n=o.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();o.items=[],this._notify(e,o,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var fo=new K5;const Cf="transparent",Y5={boolean(t,e,o){return o>.5?e:t},color(t,e,o){const n=gf(t||Cf),r=n.valid&&gf(e||Cf);return r&&r.valid?r.mix(n,o).hexString():e},number(t,e,o){return t+(e-t)*o}};class q5{constructor(e,o,n,r){const i=o[n];r=vr([e.to,r,i,e.from]);const s=vr([e.from,i,r]);this._active=!0,this._fn=e.fn||Y5[e.type||typeof s],this._easing=Fr[e.easing]||Fr.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=o,this._prop=n,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(e,o,n){if(this._active){this._notify(!1);const r=this._target[this._prop],i=n-this._start,s=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=vr([e.to,o,r,e.from]),this._from=vr([e.from,r,o])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const o=e-this._start,n=this._duration,r=this._prop,i=this._from,s=this._loop,a=this._to;let l;if(this._active=i!==a&&(s||o1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(i,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((o,n)=>{e.push({res:o,rej:n})})}_notify(e){const o=e?"res":"rej",n=this._promises||[];for(let r=0;r{const i=e[r];if(!ae(i))return;const s={};for(const a of o)s[a]=i[a];(De(i.properties)&&i.properties||[r]).forEach(a=>{(a===r||!n.has(a))&&n.set(a,s)})})}_animateOptions(e,o){const n=o.options,r=X5(e,n);if(!r)return[];const i=this._createAnimations(r,n);return n.$shared&&G5(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,o){const n=this._properties,r=[],i=e.$animations||(e.$animations={}),s=Object.keys(o),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(e,o));continue}const u=o[c];let d=i[c];const f=n.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){e[c]=u;continue}i[c]=d=new q5(f,e,c,u),r.push(d)}return r}update(e,o){if(this._properties.size===0){Object.assign(e,o);return}const n=this._createAnimations(e,o);if(n.length)return fo.add(this._chart,n),!0}}function G5(t,e){const o=[],n=Object.keys(e);for(let r=0;r0||!o&&i<0)return r.index}return null}function Rf(t,e){const{chart:o,_cachedMeta:n}=t,r=o._stacks||(o._stacks={}),{iScale:i,vScale:s,index:a}=n,l=i.axis,c=s.axis,u=e2(i,s,n),d=e.length;let f;for(let h=0;ho[n].axis===e).shift()}function n2(t,e){return tn(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function r2(t,e,o){return tn(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:o,index:e,mode:"default",type:"data"})}function ur(t,e){const o=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const r of e){const i=r._stacks;if(!i||i[n]===void 0||i[n][o]===void 0)return;delete i[n][o],i[n]._visualValues!==void 0&&i[n]._visualValues[o]!==void 0&&delete i[n]._visualValues[o]}}}const ol=t=>t==="reset"||t==="none",Of=(t,e)=>e?t:Object.assign({},t),i2=(t,e,o)=>t&&!e.hidden&&e._stacked&&{keys:Xm(o,!0),values:null};class Yt{constructor(e,o){this.chart=e,this._ctx=e.ctx,this.index=o,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 e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=el(e.vScale,e),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(e){this.index!==e&&ur(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,o=this._cachedMeta,n=this.getDataset(),r=(d,f,h,g)=>d==="x"?f:d==="r"?g:h,i=o.xAxisID=ne(n.xAxisID,tl(e,"x")),s=o.yAxisID=ne(n.yAxisID,tl(e,"y")),a=o.rAxisID=ne(n.rAxisID,tl(e,"r")),l=o.indexAxis,c=o.iAxisID=r(l,i,s,a),u=o.vAxisID=r(l,s,i,a);o.xScale=this.getScaleForId(i),o.yScale=this.getScaleForId(s),o.rScale=this.getScaleForId(a),o.iScale=this.getScaleForId(c),o.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const o=this._cachedMeta;return e===o.iScale?o.vScale:o.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&df(this._data,this),e._stacked&&ur(e)}_dataCheck(){const e=this.getDataset(),o=e.data||(e.data=[]),n=this._data;if(ae(o)){const r=this._cachedMeta;this._data=Q5(o,r)}else if(n!==o){if(n){df(n,this);const r=this._cachedMeta;ur(r),r._parsed=[]}o&&Object.isExtensible(o)&&VS(o,this),this._syncList=[],this._data=o}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const o=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const i=o._stacked;o._stacked=el(o.vScale,o),o.stack!==n.stack&&(r=!0,ur(o),o.stack=n.stack),this._resyncElements(e),(r||i!==o._stacked)&&(Rf(this,o._parsed),o._stacked=el(o.vScale,o))}configure(){const e=this.chart.config,o=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),o,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,o){const{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:s}=n,a=i.axis;let l=e===0&&o===r.length?!0:n._sorted,c=e>0&&n._parsed[e-1],u,d,f;if(this._parsing===!1)n._parsed=r,n._sorted=!0,f=r;else{De(r[e])?f=this.parseArrayData(n,r,e,o):ae(r[e])?f=this.parseObjectData(n,r,e,o):f=this.parsePrimitiveData(n,r,e,o);const h=()=>d[a]===null||c&&d[a]p||d=0;--f)if(!g()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const o=this._cachedMeta._parsed,n=[];let r,i,s;for(r=0,i=o.length;r=0&&ethis.getContext(n,r,o),p=c.resolveNamedOptions(f,h,g,d);return p.$shared&&(p.$shared=l,i[s]=Object.freeze(Of(p,l))),p}_resolveAnimations(e,o,n){const r=this.chart,i=this._cachedDataOpts,s=`animation-${o}`,a=i[s];if(a)return a;let l;if(r.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,o),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(e,n,o))}const c=new Gm(r,l&&l.animations);return l&&l._cacheable&&(i[s]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,o){return!o||ol(e)||this.chart._animationsDisabled}_getSharedOptions(e,o){const n=this.resolveDataElementOptions(e,o),r=this._sharedOptions,i=this.getSharedOptions(n),s=this.includeOptions(o,i)||i!==r;return this.updateSharedOptions(i,o,n),{sharedOptions:i,includeOptions:s}}updateElement(e,o,n,r){ol(r)?Object.assign(e,n):this._resolveAnimations(o,r).update(e,n)}updateSharedOptions(e,o,n){e&&!ol(o)&&this._resolveAnimations(void 0,o).update(e,n)}_setStyle(e,o,n,r){e.active=r;const i=this.getStyle(o,r);this._resolveAnimations(o,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,o,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,o,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const o=this._data,n=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const r=n.length,i=o.length,s=Math.min(i,r);s&&this.parse(0,s),i>r?this._insertElements(r,i-r,e):i{for(c.length+=o,a=c.length-1;a>=s;a--)c[a]=c[a-o]};for(l(i),a=e;ar-i))}return t._cache.$bar}function a2(t){const e=t.iScale,o=s2(e,t.type);let n=e._length,r,i,s,a;const l=()=>{s===32767||s===-32768||(ni(a)&&(n=Math.min(n,Math.abs(s-a)||n)),a=s)};for(r=0,i=o.length;r0?r[t-1]:null,a=tMath.abs(a)&&(l=a,c=s),e[o.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:i,min:s,max:a}}function Zm(t,e,o,n){return De(t)?u2(t,e,o,n):e[o.axis]=o.parse(t,n),e}function Ef(t,e,o,n){const r=t.iScale,i=t.vScale,s=r.getLabels(),a=r===i,l=[];let c,u,d,f;for(c=o,u=o+n;c=o?1:-1)}function f2(t){let e,o,n,r,i;return t.horizontal?(e=t.base>t.x,o="left",n="right"):(e=t.baseu.controller.options.grouped),i=n.options.stacked,s=[],a=this._cachedMeta.controller.getParsed(o),l=a&&a[n.axis],c=u=>{const d=u._parsed.find(h=>h[n.axis]===l),f=d&&d[u.vScale.axis];if(de(f)||isNaN(f))return!0};for(const u of r)if(!(o!==void 0&&c(u))&&((i===!1||s.indexOf(u.stack)===-1||i===void 0&&u.stack===void 0)&&s.push(u.stack),u.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,o,n){const r=this._getStacks(e,n),i=o!==void 0?r.indexOf(o):-1;return i===-1?r.length-1:i}_getRuler(){const e=this.options,o=this._cachedMeta,n=o.iScale,r=[];let i,s;for(i=0,s=o.data.length;i=0;--n)o=Math.max(o,e[n].size(this.resolveDataElementOptions(n))/2);return o>0&&o}getLabelAndValue(e){const o=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=o,s=this.getParsed(e),a=r.getLabelForValue(s.x),l=i.getLabelForValue(s.y),c=s._custom;return{label:n[e]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(e){const o=this._cachedMeta.data;this.updateElements(o,0,o.length,e)}updateElements(e,o,n,r){const i=r==="reset",{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(o,r),u=s.axis,d=a.axis;for(let f=o;fri(m,a,l,!0)?1:Math.max(b,b*o,_,_*o),g=(m,b,_)=>ri(m,a,l,!0)?-1:Math.min(b,b*o,_,_*o),p=h(0,c,d),y=h(We,u,f),x=g(Me,c,d),v=g(Me+We,u,f);n=(p-x)/2,r=(y-v)/2,i=-(p+x)/2,s=-(y+v)/2}return{ratioX:n,ratioY:r,offsetX:i,offsetY:s}}class bn extends Yt{constructor(e,o){super(e,o),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,o){const n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let i=l=>+n[l];if(ae(n[e])){const{key:l="value"}=this._parsing;i=c=>+Xo(n[c],l)}let s,a;for(s=e,a=e+o;s0&&!isNaN(e)?Ee*(Math.abs(e)/o):0}getLabelAndValue(e){const o=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Si(o._parsed[e],n.options.locale);return{label:r[e]||"",value:i}}getMaxBorderWidth(e){let o=0;const n=this.chart;let r,i,s,a,l;if(!e){for(r=0,i=n.data.datasets.length;re!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),j(bn,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const o=e.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return o.labels.map((i,s)=>{const l=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,o,n){n.chart.toggleDataVisibility(o.index),n.chart.update()}}}});class ps extends Yt{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const o=this._cachedMeta,{dataset:n,data:r=[],_dataset:i}=o,s=this.chart._animationsDisabled;let{start:a,count:l}=Bm(o,r,s);this._drawStart=a,this._drawCount=l,Lm(o)&&(a=0,l=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!i._decimated,n.points=r;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:c},e),this.updateElements(r,a,l,e)}updateElements(e,o,n,r){const i=r==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(o,r),f=s.axis,h=a.axis,{spanGaps:g,segment:p}=this.options,y=er(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||i||r==="none",v=o+n,m=e.length;let b=o>0&&this.getParsed(o-1);for(let _=0;_=v){S.skip=!0;continue}const T=this.getParsed(_),P=de(T[h]),O=S[f]=s.getPixelForValue(T[f],_),B=S[h]=i||P?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,T,l):T[h],_);S.skip=isNaN(O)||isNaN(B)||P,S.stop=_>0&&Math.abs(T[f]-b[f])>y,p&&(S.parsed=T,S.raw=c.data[_]),d&&(S.options=u||this.resolveDataElementOptions(_,C.active?"active":r)),x||this.updateElement(C,_,S,r),b=T}}getMaxOverflow(){const e=this._cachedMeta,o=e.dataset,n=o.options&&o.options.borderWidth||0,r=e.data||[];if(!r.length)return n;const i=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}j(ps,"id","line"),j(ps,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),j(ps,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Hr extends Yt{constructor(e,o){super(e,o),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const o=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Si(o._parsed[e].r,n.options.locale);return{label:r[e]||"",value:i}}parseObjectData(e,o,n,r){return Wm.bind(this)(e,o,n,r)}update(e){const o=this._cachedMeta.data;this._updateRadius(),this.updateElements(o,0,o.length,e)}getMinMax(){const e=this._cachedMeta,o={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((n,r)=>{const i=this.getParsed(r).r;!isNaN(i)&&this.chart.getDataVisibility(r)&&(io.max&&(o.max=i))}),o}_updateRadius(){const e=this.chart,o=e.chartArea,n=e.options,r=Math.min(o.right-o.left,o.bottom-o.top),i=Math.max(r/2,0),s=Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0),a=(i-s)/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,o,n,r){const i=r==="reset",s=this.chart,l=s.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*Me;let h=f,g;const p=360/this.countVisibleElements();for(g=0;g{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&o++}),o}_computeAngle(e,o,n){return this.chart.getDataVisibility(e)?Ut(this.resolveDataElementOptions(e,o).angle||n):0}}j(Hr,"id","polarArea"),j(Hr,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),j(Hr,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const o=e.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return o.labels.map((i,s)=>{const l=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,o,n){n.chart.toggleDataVisibility(o.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Ql extends bn{}j(Ql,"id","pie"),j(Ql,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class ms extends Yt{getLabelAndValue(e){const o=this._cachedMeta.vScale,n=this.getParsed(e);return{label:o.getLabels()[e],value:""+o.getLabelForValue(n[o.axis])}}parseObjectData(e,o,n,r){return Wm.bind(this)(e,o,n,r)}update(e){const o=this._cachedMeta,n=o.dataset,r=o.data||[],i=o.iScale.getLabels();if(n.points=r,e!=="resize"){const s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);const a={_loop:!0,_fullLoop:i.length===r.length,options:s};this.updateElement(n,void 0,a,e)}this.updateElements(r,0,r.length,e)}updateElements(e,o,n,r){const i=this._cachedMeta.rScale,s=r==="reset";for(let a=o;a0&&this.getParsed(o-1);for(let b=o;b0&&Math.abs(C[h]-m[h])>x,y&&(S.parsed=C,S.raw=c.data[b]),f&&(S.options=d||this.resolveDataElementOptions(b,_.active?"active":r)),v||this.updateElement(_,b,S,r),m=C}this.updateSharedOptions(d,r,u)}getMaxOverflow(){const e=this._cachedMeta,o=e.data||[];if(!this.options.showLine){let a=0;for(let l=o.length-1;l>=0;--l)a=Math.max(a,o[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!o.length)return r;const i=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(r,i,s)/2}}j(bs,"id","scatter"),j(bs,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),j(bs,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var b2=Object.freeze({__proto__:null,BarController:hs,BubbleController:gs,DoughnutController:bn,LineController:ps,PieController:Ql,PolarAreaController:Hr,RadarController:ms,ScatterController:bs});function ln(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class fu{constructor(e){j(this,"options");this.options=e||{}}static override(e){Object.assign(fu.prototype,e)}init(){}formats(){return ln()}parse(){return ln()}format(){return ln()}add(){return ln()}diff(){return ln()}startOf(){return ln()}endOf(){return ln()}}var y2={_date:fu};function v2(t,e,o,n){const{controller:r,data:i,_sorted:s}=t,a=r._cachedMeta.iScale;if(a&&e===a.axis&&e!=="r"&&s&&i.length){const l=a._reversePixels?WS:ko;if(n){if(r._sharedOptions){const c=i[0],u=typeof c.getRange=="function"&&c.getRange(e);if(u){const d=l(i,e,o-u),f=l(i,e,o+u);return{lo:d.lo,hi:f.hi}}}}else return l(i,e,o)}return{lo:0,hi:i.length-1}}function Pi(t,e,o,n,r){const i=t.getSortedVisibleDatasetMetas(),s=o[e];for(let a=0,l=i.length;a{l[s]&&l[s](e[o],r)&&(i.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,r))}),n&&!a?[]:i}var w2={evaluateInteractionItems:Pi,modes:{index(t,e,o,n){const r=fn(e,t),i=o.axis||"x",s=o.includeInvisible||!1,a=o.intersect?rl(t,r,i,n,s):il(t,r,i,!1,n,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,o,n){const r=fn(e,t),i=o.axis||"xy",s=o.includeInvisible||!1;let a=o.intersect?rl(t,r,i,n,s):il(t,r,i,!1,n,s);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;uo.pos===e)}function Lf(t,e){return t.filter(o=>Jm.indexOf(o.pos)===-1&&o.box.axis===e)}function fr(t,e){return t.sort((o,n)=>{const r=e?n:o,i=e?o:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function C2(t){const e=[];let o,n,r,i,s,a;for(o=0,n=(t||[]).length;oc.box.fullSize),!0),n=fr(dr(e,"left"),!0),r=fr(dr(e,"right")),i=fr(dr(e,"top"),!0),s=fr(dr(e,"bottom")),a=Lf(e,"x"),l=Lf(e,"y");return{fullSize:o,leftAndTop:n.concat(i),rightAndBottom:r.concat(l).concat(s).concat(a),chartArea:dr(e,"chartArea"),vertical:n.concat(r).concat(l),horizontal:i.concat(s).concat(a)}}function Df(t,e,o,n){return Math.max(t[o],e[o])+Math.max(t[n],e[n])}function Qm(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 R2(t,e,o,n){const{pos:r,box:i}=o,s=t.maxPadding;if(!ae(r)){o.size&&(t[r]-=o.size);const d=n[o.stack]||{size:0,count:1};d.size=Math.max(d.size,o.horizontal?i.height:i.width),o.size=d.size/d.count,t[r]+=o.size}i.getPadding&&Qm(s,i.getPadding());const a=Math.max(0,e.outerWidth-Df(s,t,"left","right")),l=Math.max(0,e.outerHeight-Df(s,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,o.horizontal?{same:c,other:u}:{same:u,other:c}}function O2(t){const e=t.maxPadding;function o(n){const r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=o("top"),t.x+=o("left"),o("right"),o("bottom")}function E2(t,e){const o=e.maxPadding;function n(r){const i={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{i[s]=Math.max(e[s],o[s])}),i}return n(t?["left","right"]:["top","bottom"])}function xr(t,e,o,n){const r=[];let i,s,a,l,c,u;for(i=0,s=t.length,c=0;i{typeof p.beforeLayout=="function"&&p.beforeLayout()});const u=l.reduce((p,y)=>y.box.options&&y.box.options.display===!1?p:p+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:o,padding:r,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/u,hBoxMaxHeight:s/2}),f=Object.assign({},r);Qm(f,ct(n));const h=Object.assign({maxPadding:f,w:i,h:s,x:r.left,y:r.top},r),g=P2(l.concat(c),d);xr(a.fullSize,h,d,g),xr(l,h,d,g),xr(c,h,d,g)&&xr(l,h,d,g),O2(h),$f(a.leftAndTop,h,d,g),h.x+=h.w,h.y+=h.h,$f(a.rightAndBottom,h,d,g),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},ye(a.chartArea,p=>{const y=p.box;Object.assign(y,t.chartArea),y.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class e0{acquireContext(e,o){}releaseContext(e){return!1}addEventListener(e,o,n){}removeEventListener(e,o,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,o,n,r){return o=Math.max(0,o||e.width),n=n||e.height,{width:o,height:Math.max(0,r?Math.floor(o/r):n)}}isAttached(e){return!0}updateConfig(e){}}class M2 extends e0{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ys="$chartjs",A2={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},If=t=>t===null||t==="";function B2(t,e){const o=t.style,n=t.getAttribute("height"),r=t.getAttribute("width");if(t[ys]={initial:{height:n,width:r,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",o.boxSizing=o.boxSizing||"border-box",If(r)){const i=xf(t,"width");i!==void 0&&(t.width=i)}if(If(n))if(t.style.height==="")t.height=t.width/(e||2);else{const i=xf(t,"height");i!==void 0&&(t.height=i)}return t}const t0=D5?{passive:!0}:!1;function L2(t,e,o){t&&t.addEventListener(e,o,t0)}function D2(t,e,o){t&&t.canvas&&t.canvas.removeEventListener(e,o,t0)}function $2(t,e){const o=A2[t.type]||t.type,{x:n,y:r}=fn(t,e);return{type:o,chart:e,native:t,x:n!==void 0?n:null,y:r!==void 0?r:null}}function Js(t,e){for(const o of t)if(o===e||o.contains(e))return!0}function I2(t,e,o){const n=t.canvas,r=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||Js(a.addedNodes,n),s=s&&!Js(a.removedNodes,n);s&&o()});return r.observe(document,{childList:!0,subtree:!0}),r}function N2(t,e,o){const n=t.canvas,r=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||Js(a.removedNodes,n),s=s&&!Js(a.addedNodes,n);s&&o()});return r.observe(document,{childList:!0,subtree:!0}),r}const si=new Map;let Nf=0;function o0(){const t=window.devicePixelRatio;t!==Nf&&(Nf=t,si.forEach((e,o)=>{o.currentDevicePixelRatio!==t&&e()}))}function F2(t,e){si.size||window.addEventListener("resize",o0),si.set(t,e)}function j2(t){si.delete(t),si.size||window.removeEventListener("resize",o0)}function H2(t,e,o){const n=t.canvas,r=n&&du(n);if(!r)return;const i=Am((a,l)=>{const c=r.clientWidth;o(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||i(c,u)});return s.observe(r),F2(t,i),s}function sl(t,e,o){o&&o.disconnect(),e==="resize"&&j2(t)}function W2(t,e,o){const n=t.canvas,r=Am(i=>{t.ctx!==null&&o($2(i,t))},t);return L2(n,e,r),r}class z2 extends e0{acquireContext(e,o){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(B2(e,o),n):null}releaseContext(e){const o=e.canvas;if(!o[ys])return!1;const n=o[ys].initial;["height","width"].forEach(i=>{const s=n[i];de(s)?o.removeAttribute(i):o.setAttribute(i,s)});const r=n.style||{};return Object.keys(r).forEach(i=>{o.style[i]=r[i]}),o.width=o.width,delete o[ys],!0}addEventListener(e,o,n){this.removeEventListener(e,o);const r=e.$proxies||(e.$proxies={}),s={attach:I2,detach:N2,resize:H2}[o]||W2;r[o]=s(e,o,n)}removeEventListener(e,o){const n=e.$proxies||(e.$proxies={}),r=n[o];if(!r)return;({attach:sl,detach:sl,resize:sl}[o]||D2)(e,o,r),n[o]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,o,n,r){return L5(e,o,n,r)}isAttached(e){const o=e&&du(e);return!!(o&&o.isConnected)}}function V2(t){return!uu()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?M2:z2}var rs;let Oo=(rs=class{constructor(){j(this,"x");j(this,"y");j(this,"active",!1);j(this,"options");j(this,"$animations")}tooltipPosition(e){const{x:o,y:n}=this.getProps(["x","y"],e);return{x:o,y:n}}hasValue(){return er(this.x)&&er(this.y)}getProps(e,o){const n=this.$animations;if(!o||!n)return this;const r={};return e.forEach(i=>{r[i]=n[i]&&n[i].active()?n[i]._to:this[i]}),r}},j(rs,"defaults",{}),j(rs,"defaultRoutes"),rs);function U2(t,e){const o=t.options.ticks,n=K2(t),r=Math.min(o.maxTicksLimit||n,n),i=o.major.enabled?q2(e):[],s=i.length,a=i[0],l=i[s-1],c=[];if(s>r)return G2(e,c,i,s/r),c;const u=Y2(i,e,r);if(s>0){let d,f;const h=s>1?Math.round((l-a)/(s-1)):null;for(Gi(e,c,u,de(h)?0:a-h,a),d=0,f=s-1;dr)return l}return Math.max(r,1)}function q2(t){const e=[];let o,n;for(o=0,n=t.length;ot==="left"?"right":t==="right"?"left":t,Ff=(t,e,o)=>e==="top"||e==="left"?t[e]+o:t[e]-o,jf=(t,e)=>Math.min(e||t,t);function Hf(t,e){const o=[],n=t.length/e,r=t.length;let i=0;for(;is+a)))return l}function Q2(t,e){ye(t,o=>{const n=o.gc,r=n.length/2;let i;if(r>e){for(i=0;in?n:o,n=r&&o>n?o:n,{min:St(o,St(n,o)),max:St(n,St(o,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Pe(this.options.beforeUpdate,[this])}update(e,o,n){const{beginAtZero:r,grace:i,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=o,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=f5(this,i,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,h=Je(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/n:h/(n-1),d+6>a&&(a=h/(n-(e.offset?.5:1)),l=this.maxHeight-hr(e.grid)-o.padding-Wf(e.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),s=ou(Math.min(Math.asin(Je((u.highest.height+6)/a,-1,1)),Math.asin(Je(l/c,-1,1))-Math.asin(Je(f/c,-1,1)))),s=Math.max(r,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){Pe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Pe(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:o,options:{ticks:n,title:r,grid:i}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=Wf(r,o.options.font);if(a?(e.width=this.maxWidth,e.height=hr(i)+l):(e.height=this.maxHeight,e.width=hr(i)+l),n.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),h=n.padding*2,g=Ut(this.labelRotation),p=Math.cos(g),y=Math.sin(g);if(a){const x=n.mirror?0:y*d.width+p*f.height;e.height=Math.min(this.maxHeight,e.height+x+h)}else{const x=n.mirror?0:p*d.width+y*f.height;e.width=Math.min(this.maxWidth,e.width+x+h)}this._calculatePadding(c,u,y,p)}}this._handleMargins(),a?(this.width=this._length=o.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=o.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,o,n,r){const{ticks:{align:i,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=r*e.width,h=n*o.height):(f=n*e.height,h=r*o.width):i==="start"?h=o.width:i==="end"?f=e.width:i!=="inner"&&(f=e.width/2,h=o.width/2),this.paddingLeft=Math.max((f-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+s)*this.width/(this.width-d),0)}else{let u=o.height/2,d=e.height/2;i==="start"?(u=0,d=e.height):i==="end"&&(u=o.height,d=0),this.paddingTop=u+s,this.paddingBottom=d+s}}_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(){Pe(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:o}=this.options;return o==="top"||o==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let o,n;for(o=0,n=e.length;o({width:s[P]||0,height:a[P]||0});return{first:T(0),last:T(o-1),widest:T(C),highest:T(S),widths:s,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,o){return NaN}getValueForPixel(e){}getPixelForTick(e){const o=this.ticks;return e<0||e>o.length-1?null:this.getPixelForValue(o[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const o=this._startPixel+e*this._length;return HS(this._alignToPixels?an(this.chart,o,0):o)}getDecimalForPixel(e){const o=(e-this._startPixel)/this._length;return this._reversePixels?1-o:o}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:o}=this;return e<0&&o<0?o:e>0&&o>0?e:0}getContext(e){const o=this.ticks||[];if(e>=0&&ea*r?a/n:l/r:l*r0}_computeGridLineItems(e){const o=this.axis,n=this.chart,r=this.options,{grid:i,position:s,border:a}=r,l=i.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=hr(i),h=[],g=a.setContext(this.getContext()),p=g.display?g.width:0,y=p/2,x=function(I){return an(n,I,p)};let v,m,b,_,C,S,T,P,O,B,E,N;if(s==="top")v=x(this.bottom),S=this.bottom-f,P=v-y,B=x(e.top)+y,N=e.bottom;else if(s==="bottom")v=x(this.top),B=e.top,N=x(e.bottom)-y,S=v+y,P=this.top+f;else if(s==="left")v=x(this.right),C=this.right-f,T=v-y,O=x(e.left)+y,E=e.right;else if(s==="right")v=x(this.left),O=e.left,E=x(e.right)-y,C=v+y,T=this.left+f;else if(o==="x"){if(s==="center")v=x((e.top+e.bottom)/2+.5);else if(ae(s)){const I=Object.keys(s)[0],U=s[I];v=x(this.chart.scales[I].getPixelForValue(U))}B=e.top,N=e.bottom,S=v+y,P=S+f}else if(o==="y"){if(s==="center")v=x((e.left+e.right)/2);else if(ae(s)){const I=Object.keys(s)[0],U=s[I];v=x(this.chart.scales[I].getPixelForValue(U))}C=v-y,T=C-f,O=e.left,E=e.right}const X=ne(r.ticks.maxTicksLimit,d),q=Math.max(1,Math.ceil(d/X));for(m=0;m0&&(Ne-=He/2);break}ke={left:Ne,top:_t,width:He+pe.width,height:et+pe.height,color:q.backdropColor}}y.push({label:b,font:P,textOffset:E,options:{rotation:p,color:U,strokeColor:W,strokeWidth:oe,textAlign:Re,textBaseline:N,translation:[_,C],backdrop:ke}})}return y}_getXAxisLabelAlignment(){const{position:e,ticks:o}=this.options;if(-Ut(this.labelRotation))return e==="top"?"left":"right";let r="center";return o.align==="start"?r="left":o.align==="end"?r="right":o.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(e){const{position:o,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,s=this._getLabelSizes(),a=e+i,l=s.widest.width;let c,u;return o==="left"?r?(u=this.right+i,n==="near"?c="left":n==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,n==="near"?c="right":n==="center"?(c="center",u-=l/2):(c="left",u=this.left)):o==="right"?r?(u=this.left+i,n==="near"?c="right":n==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,n==="near"?c="left":n==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,o=this.options.position;if(o==="left"||o==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(o==="top"||o==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:o},left:n,top:r,width:i,height:s}=this;o&&(e.save(),e.fillStyle=o,e.fillRect(n,r,i,s),e.restore())}getLineWidthForValue(e){const o=this.options.grid;if(!this._isVisible()||!o.display)return 0;const r=this.ticks.findIndex(i=>i.value===e);return r>=0?o.setContext(this.getContext(r)).lineWidth:0}drawGrid(e){const o=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,s;const a=(l,c,u)=>{!u.width||!u.color||(n.save(),n.lineWidth=u.width,n.strokeStyle=u.color,n.setLineDash(u.borderDash||[]),n.lineDashOffset=u.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(o.display)for(i=0,s=r.length;i{this.draw(i)}}]:[{z:n,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:o,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const o=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let i,s;for(i=0,s=o.length;i{const n=o.split("."),r=n.pop(),i=[t].concat(n).join("."),s=e[o].split("."),a=s.pop(),l=s.join(".");$e.route(i,r,l,a)})}function sP(t){return"id"in t&&"defaults"in t}class aP{constructor(){this.controllers=new Xi(Yt,"datasets",!0),this.elements=new Xi(Oo,"elements"),this.plugins=new Xi(Object,"plugins"),this.scales=new Xi(Mn,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,o,n){[...o].forEach(r=>{const i=n||this._getRegistryForType(r);n||i.isForType(r)||i===this.plugins&&r.id?this._exec(e,i,r):ye(r,s=>{const a=n||this._getRegistryForType(s);this._exec(e,a,s)})})}_exec(e,o,n){const r=tu(e);Pe(n["before"+r],[],n),o[e](n),Pe(n["after"+r],[],n)}_getRegistryForType(e){for(let o=0;oi.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(r(o,n),e,"stop"),this._notify(r(n,o),e,"start")}}function cP(t){const e={},o=[],n=Object.keys(Qt.plugins.items);for(let i=0;i1&&zf(t[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Vf(t,e,o){if(o[e+"AxisID"]===t)return{axis:e}}function mP(t,e){if(e.data&&e.data.datasets){const o=e.data.datasets.filter(n=>n.xAxisID===t||n.yAxisID===t);if(o.length)return Vf(t,"x",o[0])||Vf(t,"y",o[0])}return{}}function bP(t,e){const o=Tn[t.type]||{scales:{}},n=e.scales||{},r=ec(t.type,e),i=Object.create(null);return Object.keys(n).forEach(s=>{const a=n[s];if(!ae(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=tc(s,a,mP(s,t),$e.scales[a.type]),c=gP(l,r),u=o.scales||{};i[s]=Ir(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||ec(a,e),u=(Tn[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=hP(d,l),h=s[f+"AxisID"]||f;i[h]=i[h]||Object.create(null),Ir(i[h],[{axis:f},n[h],u[d]])})}),Object.keys(i).forEach(s=>{const a=i[s];Ir(a,[$e.scales[a.type],$e.scale])}),i}function n0(t){const e=t.options||(t.options={});e.plugins=ne(e.plugins,{}),e.scales=bP(t,e)}function r0(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function yP(t){return t=t||{},t.data=r0(t.data),n0(t),t}const Uf=new Map,i0=new Set;function Zi(t,e){let o=Uf.get(t);return o||(o=e(),Uf.set(t,o),i0.add(o)),o}const gr=(t,e,o)=>{const n=Xo(e,o);n!==void 0&&t.add(n)};class vP{constructor(e){this._config=yP(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=r0(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),n0(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Zi(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,o){return Zi(`${e}.transition.${o}`,()=>[[`datasets.${e}.transitions.${o}`,`transitions.${o}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,o){return Zi(`${e}-${o}`,()=>[[`datasets.${e}.elements.${o}`,`datasets.${e}`,`elements.${o}`,""]])}pluginScopeKeys(e){const o=e.id,n=this.type;return Zi(`${n}-plugin-${o}`,()=>[[`plugins.${o}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,o){const n=this._scopeCache;let r=n.get(e);return(!r||o)&&(r=new Map,n.set(e,r)),r}getOptionScopes(e,o,n){const{options:r,type:i}=this,s=this._cachedScopes(e,n),a=s.get(o);if(a)return a;const l=new Set;o.forEach(u=>{e&&(l.add(e),u.forEach(d=>gr(l,e,d))),u.forEach(d=>gr(l,r,d)),u.forEach(d=>gr(l,Tn[i]||{},d)),u.forEach(d=>gr(l,$e,d)),u.forEach(d=>gr(l,Zl,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),i0.has(o)&&s.set(o,c),c}chartOptionScopes(){const{options:e,type:o}=this;return[e,Tn[o]||{},$e.datasets[o]||{},{type:o},$e,Zl]}resolveNamedOptions(e,o,n,r=[""]){const i={$shared:!0},{resolver:s,subPrefixes:a}=Kf(this._resolverCache,e,r);let l=s;if(_P(s,o)){i.$shared=!1,n=Zo(n)?n():n;const c=this.createResolver(e,n,a);l=tr(s,n,c)}for(const c of o)i[c]=l[c];return i}createResolver(e,o,n=[""],r){const{resolver:i}=Kf(this._resolverCache,e,n);return ae(o)?tr(i,o,void 0,r):i}}function Kf(t,e,o){let n=t.get(e);n||(n=new Map,t.set(e,n));const r=o.join();let i=n.get(r);return i||(i={resolver:au(e,o),subPrefixes:o.filter(a=>!a.toLowerCase().includes("hover"))},n.set(r,i)),i}const xP=t=>ae(t)&&Object.getOwnPropertyNames(t).some(e=>Zo(t[e]));function _P(t,e){const{isScriptable:o,isIndexable:n}=Nm(t);for(const r of e){const i=o(r),s=n(r),a=(s||i)&&t[r];if(i&&(Zo(a)||xP(a))||s&&De(a))return!0}return!1}var kP="4.4.5";const wP=["top","bottom","left","right","chartArea"];function Yf(t,e){return t==="top"||t==="bottom"||wP.indexOf(t)===-1&&e==="x"}function qf(t,e){return function(o,n){return o[t]===n[t]?o[e]-n[e]:o[t]-n[t]}}function Gf(t){const e=t.chart,o=e.options.animation;e.notifyPlugins("afterRender"),Pe(o&&o.onComplete,[t],e)}function CP(t){const e=t.chart,o=e.options.animation;Pe(o&&o.onProgress,[t],e)}function s0(t){return uu()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const vs={},Xf=t=>{const e=s0(t);return Object.values(vs).filter(o=>o.canvas===e).pop()};function SP(t,e,o){const n=Object.keys(t);for(const r of n){const i=+r;if(i>=e){const s=t[r];delete t[r],(o>0||i>e)&&(t[i+o]=s)}}}function PP(t,e,o,n){return!o||t.type==="mouseout"?null:n?e:t}function Ji(t,e,o){return t.options.clip?t[o]:e[o]}function TP(t,e){const{xScale:o,yScale:n}=t;return o&&n?{left:Ji(o,e,"left"),right:Ji(o,e,"right"),top:Ji(n,e,"top"),bottom:Ji(n,e,"bottom")}:e}class No{static register(...e){Qt.add(...e),Zf()}static unregister(...e){Qt.remove(...e),Zf()}constructor(e,o){const n=this.config=new vP(o),r=s0(e),i=Xf(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||V2(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=OS(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=s,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 lP,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=US(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],vs[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}fo.listen(this,"complete",Gf),fo.listen(this,"progress",CP),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:o},width:n,height:r,_aspectRatio:i}=this;return de(e)?o&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Qt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():vf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return mf(this.canvas,this.ctx),this}stop(){return fo.stop(this),this}resize(e,o){fo.running(this)?this._resizeBeforeDraw={width:e,height:o}:this._resize(e,o)}_resize(e,o){const n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,e,o,i),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,vf(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Pe(n.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const o=this.options.scales||{};ye(o,(n,r)=>{n.id=r})}buildOrUpdateScales(){const e=this.options,o=e.scales,n=this.scales,r=Object.keys(n).reduce((s,a)=>(s[a]=!1,s),{});let i=[];o&&(i=i.concat(Object.keys(o).map(s=>{const a=o[s],l=tc(s,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),ye(i,s=>{const a=s.options,l=a.id,c=tc(l,a),u=ne(a.type,s.dtype);(a.position===void 0||Yf(a.position,c)!==Yf(s.dposition))&&(a.position=s.dposition),r[l]=!0;let d=null;if(l in n&&n[l].type===u)d=n[l];else{const f=Qt.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),n[d.id]=d}d.init(a,e)}),ye(r,(s,a)=>{s||delete n[a]}),ye(n,s=>{lt.configure(this,s,s.options),lt.addBox(this,s)})}_updateMetasets(){const e=this._metasets,o=this.data.datasets.length,n=e.length;if(e.sort((r,i)=>r.index-i.index),n>o){for(let r=o;ro.length&&delete this._stacks,e.forEach((n,r)=>{o.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=[],o=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=o.length;n{this.getDatasetMeta(o).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const o=this.config;o.update();const n=this._options=o.createResolver(o.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(qf("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ye(this.scales,e=>{lt.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,o=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!af(o,n)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,o=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of o){const s=n==="_removeElements"?-i:i;SP(e,r,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const o=this.data.datasets.length,n=i=>new Set(e.filter(s=>s[0]===i).map((s,a)=>a+","+s.splice(1).join(","))),r=n(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;lt.update(this,this.width,this.height,e);const o=this.chartArea,n=o.width<=0||o.height<=0;this._layers=[],ye(this.boxes,r=>{n&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let o=0,n=this.data.datasets.length;o=0;--o)this._drawDataset(e[o]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const o=this.ctx,n=e._clip,r=!n.disabled,i=TP(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(r&&wa(o,{left:n.left===!1?0:i.left-n.left,right:n.right===!1?this.width:i.right+n.right,top:n.top===!1?0:i.top-n.top,bottom:n.bottom===!1?this.height:i.bottom+n.bottom}),e.controller.draw(),r&&Ca(o),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return wo(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,o,n,r){const i=w2.modes[o];return typeof i=="function"?i(this,e,n,r):[]}getDatasetMeta(e){const o=this.data.datasets[e],n=this._metasets;let r=n.filter(i=>i&&i._dataset===o).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:o&&o.order||0,index:e,_dataset:o,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=tn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const o=this.data.datasets[e];if(!o)return!1;const n=this.getDatasetMeta(e);return typeof n.hidden=="boolean"?!n.hidden:!o.hidden}setDatasetVisibility(e,o){const n=this.getDatasetMeta(e);n.hidden=!o}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,o,n){const r=n?"show":"hide",i=this.getDatasetMeta(e),s=i.controller._resolveAnimations(void 0,r);ni(o)?(i.data[o].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),s.update(i,{visible:n}),this.update(a=>a.datasetIndex===e?r:void 0))}hide(e,o){this._updateVisibility(e,o,!1)}show(e,o){this._updateVisibility(e,o,!0)}_destroyDatasetMeta(e){const o=this._metasets[e];o&&o.controller&&o.controller._destroy(),delete this._metasets[e]}_stop(){let e,o;for(this.stop(),fo.remove(this),e=0,o=this.data.datasets.length;e{o.addEventListener(this,i,s),e[i]=s},r=(i,s,a)=>{i.offsetX=s,i.offsetY=a,this._eventHandler(i)};ye(this.options.events,i=>n(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,o=this.platform,n=(l,c)=>{o.addEventListener(this,l,c),e[l]=c},r=(l,c)=>{e[l]&&(o.removeEventListener(this,l,c),delete e[l])},i=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",s)};s=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",a)},o.isAttached(this.canvas)?a():s()}unbindEvents(){ye(this._listeners,(e,o)=>{this.platform.removeEventListener(this,o,e)}),this._listeners={},ye(this._responsiveListeners,(e,o)=>{this.platform.removeEventListener(this,o,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,o,n){const r=n?"set":"remove";let i,s,a,l;for(o==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),a=0,l=e.length;a{const a=this.getDatasetMeta(i);if(!a)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:a.data[s],index:s}});!Ys(n,o)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,o))}notifyPlugins(e,o,n){return this._plugins.notify(this,e,o,n)}isPluginEnabled(e){return this._plugins._cache.filter(o=>o.plugin.id===e).length===1}_updateHoverStyles(e,o,n){const r=this.options.hover,i=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),s=i(o,e),a=n?e:i(e,o);s.length&&this.updateHoverStyle(s,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,o){const n={event:e,replay:o,cancelable:!0,inChartArea:this.isPointInArea(e)},r=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",n,r)===!1)return;const i=this._handleEvent(e,o,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,o,n){const{_active:r=[],options:i}=this,s=o,a=this._getActiveElements(e,r,n,s),l=DS(e),c=PP(e,this._lastEvent,n,l);n&&(this._lastEvent=null,Pe(i.onHover,[e,a,this],this),l&&Pe(i.onClick,[e,a,this],this));const u=!Ys(a,r);return(u||o)&&(this._active=a,this._updateHoverStyles(a,r,o)),this._lastEvent=c,u}_getActiveElements(e,o,n,r){if(e.type==="mouseout")return[];if(!n)return o;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}}j(No,"defaults",$e),j(No,"instances",vs),j(No,"overrides",Tn),j(No,"registry",Qt),j(No,"version",kP),j(No,"getChart",Xf);function Zf(){return ye(No.instances,t=>t._plugins.invalidate())}function RP(t,e,o){const{startAngle:n,pixelMargin:r,x:i,y:s,outerRadius:a,innerRadius:l}=e;let c=r/a;t.beginPath(),t.arc(i,s,a,n-c,o+c),l>r?(c=r/l,t.arc(i,s,l,o+c,n-c,!0)):t.arc(i,s,r,o+We,n-We),t.closePath(),t.clip()}function OP(t){return su(t,["outerStart","outerEnd","innerStart","innerEnd"])}function EP(t,e,o,n){const r=OP(t.options.borderRadius),i=(o-e)/2,s=Math.min(i,n*e/2),a=l=>{const c=(o-Math.min(i,l))*n/2;return Je(l,0,Math.min(i,c))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:Je(r.innerStart,0,s),innerEnd:Je(r.innerEnd,0,s)}}function Dn(t,e,o,n){return{x:o+t*Math.cos(e),y:n+t*Math.sin(e)}}function Qs(t,e,o,n,r,i){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+n+o-c,0),f=u>0?u+n+o+c:0;let h=0;const g=r-l;if(n){const q=u>0?u-n:0,I=d>0?d-n:0,U=(q+I)/2,W=U!==0?g*U/(U+n):g;h=(g-W)/2}const p=Math.max(.001,g*d-o/Me)/d,y=(g-p)/2,x=l+y+h,v=r-y-h,{outerStart:m,outerEnd:b,innerStart:_,innerEnd:C}=EP(e,f,d,v-x),S=d-m,T=d-b,P=x+m/S,O=v-b/T,B=f+_,E=f+C,N=x+_/B,X=v-C/E;if(t.beginPath(),i){const q=(P+O)/2;if(t.arc(s,a,d,P,q),t.arc(s,a,d,q,O),b>0){const oe=Dn(T,O,s,a);t.arc(oe.x,oe.y,b,O,v+We)}const I=Dn(E,v,s,a);if(t.lineTo(I.x,I.y),C>0){const oe=Dn(E,X,s,a);t.arc(oe.x,oe.y,C,v+We,X+Math.PI)}const U=(v-C/f+(x+_/f))/2;if(t.arc(s,a,f,v-C/f,U,!0),t.arc(s,a,f,U,x+_/f,!0),_>0){const oe=Dn(B,N,s,a);t.arc(oe.x,oe.y,_,N+Math.PI,x-We)}const W=Dn(S,x,s,a);if(t.lineTo(W.x,W.y),m>0){const oe=Dn(S,P,s,a);t.arc(oe.x,oe.y,m,x-We,P)}}else{t.moveTo(s,a);const q=Math.cos(P)*d+s,I=Math.sin(P)*d+a;t.lineTo(q,I);const U=Math.cos(O)*d+s,W=Math.sin(O)*d+a;t.lineTo(U,W)}t.closePath()}function MP(t,e,o,n,r){const{fullCircles:i,startAngle:s,circumference:a}=e;let l=e.endAngle;if(i){Qs(t,e,o,n,l,r);for(let c=0;c=Ee||p,x=_o(a,u+h,d+h);return y&&x}getCenterPoint(o){const{x:n,y:r,startAngle:i,endAngle:s,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],o),{offset:c,spacing:u}=this.options,d=(i+s)/2,f=(a+l+u+c)/2;return{x:n+Math.cos(d)*f,y:r+Math.sin(d)*f}}tooltipPosition(o){return this.getCenterPoint(o)}draw(o){const{options:n,circumference:r}=this,i=(n.offset||0)/4,s=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Ee?Math.floor(r/Ee):0,r===0||this.innerRadius<0||this.outerRadius<0)return;o.save();const l=(this.startAngle+this.endAngle)/2;o.translate(Math.cos(l)*i,Math.sin(l)*i);const c=1-Math.sin(Math.min(Me,r||0)),u=i*c;o.fillStyle=n.backgroundColor,o.strokeStyle=n.borderColor,MP(o,this,u,s,a),AP(o,this,u,s,a),o.restore()}}j(_r,"id","arc"),j(_r,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),j(_r,"defaultRoutes",{backgroundColor:"backgroundColor"}),j(_r,"descriptors",{_scriptable:!0,_indexable:o=>o!=="borderDash"});function a0(t,e,o=e){t.lineCap=ne(o.borderCapStyle,e.borderCapStyle),t.setLineDash(ne(o.borderDash,e.borderDash)),t.lineDashOffset=ne(o.borderDashOffset,e.borderDashOffset),t.lineJoin=ne(o.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ne(o.borderWidth,e.borderWidth),t.strokeStyle=ne(o.borderColor,e.borderColor)}function BP(t,e,o){t.lineTo(o.x,o.y)}function LP(t){return t.stepped?n5:t.tension||t.cubicInterpolationMode==="monotone"?r5:BP}function l0(t,e,o={}){const n=t.length,{start:r=0,end:i=n-1}=o,{start:s,end:a}=e,l=Math.max(r,s),c=Math.min(i,a),u=ra&&i>a;return{count:n,start:l,loop:e.loop,ilen:c(s+(c?a-b:b))%i,m=()=>{p!==y&&(t.lineTo(u,y),t.lineTo(u,p),t.lineTo(u,x))};for(l&&(h=r[v(0)],t.moveTo(h.x,h.y)),f=0;f<=a;++f){if(h=r[v(f)],h.skip)continue;const b=h.x,_=h.y,C=b|0;C===g?(_y&&(y=_),u=(d*u+b)/++d):(m(),t.lineTo(b,_),g=C,d=0,p=y=_),x=_}m()}function oc(t){const e=t.options,o=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!o?$P:DP}function IP(t){return t.stepped?$5:t.tension||t.cubicInterpolationMode==="monotone"?I5:hn}function NP(t,e,o,n){let r=e._path;r||(r=e._path=new Path2D,e.path(r,o,n)&&r.closePath()),a0(t,e.options),t.stroke(r)}function FP(t,e,o,n){const{segments:r,options:i}=e,s=oc(e);for(const a of r)a0(t,i,a.style),t.beginPath(),s(t,e,a,{start:o,end:o+n-1})&&t.closePath(),t.stroke()}const jP=typeof Path2D=="function";function HP(t,e,o,n){jP&&!e.options.segment?NP(t,e,o,n):FP(t,e,o,n)}class zo extends Oo{constructor(e){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,e&&Object.assign(this,e)}updateControlPoints(e,o){const n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;R5(this._points,n,e,r,o),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=z5(this,this.options.segment))}first(){const e=this.segments,o=this.points;return e.length&&o[e[0].start]}last(){const e=this.segments,o=this.points,n=e.length;return n&&o[e[n-1].end]}interpolate(e,o){const n=this.options,r=e[o],i=this.points,s=qm(this,{property:o,start:r,end:r});if(!s.length)return;const a=[],l=IP(n);let c,u;for(c=0,u=s.length;ce!=="borderDash"&&e!=="fill"});function Jf(t,e,o,n){const r=t.options,{[o]:i}=t.getProps([o],n);return Math.abs(e-i)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function u0(t){return nc[t%nc.length]}function d0(t){return Qf[t%Qf.length]}function qP(t,e){return t.borderColor=u0(e),t.backgroundColor=d0(e),++e}function GP(t,e){return t.backgroundColor=t.data.map(()=>u0(e++)),e}function XP(t,e){return t.backgroundColor=t.data.map(()=>d0(e++)),e}function ZP(t){let e=0;return(o,n)=>{const r=t.getDatasetMeta(n).controller;r instanceof bn?e=GP(o,e):r instanceof Hr?e=XP(o,e):r&&(e=qP(o,e))}}function eh(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function JP(t){return t&&(t.borderColor||t.backgroundColor)}function QP(){return $e.borderColor!=="rgba(0,0,0,0.1)"||$e.backgroundColor!=="rgba(0,0,0,0.1)"}var eT={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,o){if(!o.enabled)return;const{data:{datasets:n},options:r}=t.config,{elements:i}=r,s=eh(n)||JP(r)||i&&eh(i)||QP();if(!o.forceOverride&&s)return;const a=ZP(t);n.forEach(a)}};function tT(t,e,o,n,r){const i=r.samples||n;if(i>=o)return t.slice(e,e+o);const s=[],a=(o-2)/(i-2);let l=0;const c=e+o-1;let u=e,d,f,h,g,p;for(s[l++]=t[u],d=0;dh&&(h=g,f=t[v],p=v);s[l++]=f,u=p}return s[l++]=t[c],s}function oT(t,e,o,n){let r=0,i=0,s,a,l,c,u,d,f,h,g,p;const y=[],x=e+o-1,v=t[e].x,b=t[x].x-v;for(s=e;sp&&(p=c,f=s),r=(i*r+a.x)/++i;else{const C=s-1;if(!de(d)&&!de(f)){const S=Math.min(d,f),T=Math.max(d,f);S!==h&&S!==C&&y.push({...t[S],x:r}),T!==h&&T!==C&&y.push({...t[T],x:r})}s>0&&C!==h&&y.push(t[C]),y.push(a),u=_,i=0,g=p=c,d=f=h=s}}return y}function f0(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function th(t){t.data.datasets.forEach(e=>{f0(e)})}function nT(t,e){const o=e.length;let n=0,r;const{iScale:i}=t,{min:s,max:a,minDefined:l,maxDefined:c}=i.getUserBounds();return l&&(n=Je(ko(e,i.axis,s).lo,0,o-1)),c?r=Je(ko(e,i.axis,a).hi+1,n,o)-n:r=o-n,{start:n,count:r}}var rT={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,o)=>{if(!o.enabled){th(t);return}const n=t.width;t.data.datasets.forEach((r,i)=>{const{_data:s,indexAxis:a}=r,l=t.getDatasetMeta(i),c=s||r.data;if(vr([a,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||t.options.parsing)return;let{start:d,count:f}=nT(l,c);const h=o.threshold||4*n;if(f<=h){f0(r);return}de(s)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(p){this._data=p}}));let g;switch(o.algorithm){case"lttb":g=tT(c,d,f,n,o);break;case"min-max":g=oT(c,d,f,n);break;default:throw new Error(`Unsupported decimation algorithm '${o.algorithm}'`)}r._decimated=g})},destroy(t){th(t)}};function iT(t,e,o){const n=t.segments,r=t.points,i=e.points,s=[];for(const a of n){let{start:l,end:c}=a;c=hu(l,c,r);const u=rc(o,r[l],r[c],a.loop);if(!e.segments){s.push({source:a,target:u,start:r[l],end:r[c]});continue}const d=qm(e,u);for(const f of d){const h=rc(o,i[f.start],i[f.end],f.loop),g=Ym(a,r,h);for(const p of g)s.push({source:p,target:f,start:{[o]:oh(u,h,"start",Math.max)},end:{[o]:oh(u,h,"end",Math.min)}})}}return s}function rc(t,e,o,n){if(n)return;let r=e[t],i=o[t];return t==="angle"&&(r=Pt(r),i=Pt(i)),{property:t,start:r,end:i}}function sT(t,e){const{x:o=null,y:n=null}=t||{},r=e.points,i=[];return e.segments.forEach(({start:s,end:a})=>{a=hu(s,a,r);const l=r[s],c=r[a];n!==null?(i.push({x:l.x,y:n}),i.push({x:c.x,y:n})):o!==null&&(i.push({x:o,y:l.y}),i.push({x:o,y:c.y}))}),i}function hu(t,e,o){for(;e>t;e--){const n=o[e];if(!isNaN(n.x)&&!isNaN(n.y))break}return e}function oh(t,e,o,n){return t&&e?n(t[o],e[o]):t?t[o]:e?e[o]:0}function h0(t,e){let o=[],n=!1;return De(t)?(n=!0,o=t):o=sT(t,e),o.length?new zo({points:o,options:{tension:0},_loop:n,_fullLoop:n}):null}function nh(t){return t&&t.fill!==!1}function aT(t,e,o){let r=t[e].fill;const i=[e];let s;if(!o)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!je(r))return r;if(s=t[r],!s)return!1;if(s.visible)return r;i.push(r),r=s.fill}return!1}function lT(t,e,o){const n=fT(t);if(ae(n))return isNaN(n.value)?!1:n;let r=parseFloat(n);return je(r)&&Math.floor(r)===r?cT(n[0],e,r,o):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function cT(t,e,o,n){return(t==="-"||t==="+")&&(o=e+o),o===e||o<0||o>=n?!1:o}function uT(t,e){let o=null;return t==="start"?o=e.bottom:t==="end"?o=e.top:ae(t)?o=e.getPixelForValue(t.value):e.getBasePixel&&(o=e.getBasePixel()),o}function dT(t,e,o){let n;return t==="start"?n=o:t==="end"?n=e.options.reverse?e.min:e.max:ae(t)?n=t.value:n=e.getBaseValue(),n}function fT(t){const e=t.options,o=e.fill;let n=ne(o&&o.target,o);return n===void 0&&(n=!!e.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function hT(t){const{scale:e,index:o,line:n}=t,r=[],i=n.segments,s=n.points,a=gT(e,o);a.push(h0({x:null,y:e.bottom},n));for(let l=0;l=0;--s){const a=r[s].$filler;a&&(a.line.updateControlPoints(i,a.axis),n&&a.fill&&cl(t.ctx,a,i))}},beforeDatasetsDraw(t,e,o){if(o.drawTime!=="beforeDatasetsDraw")return;const n=t.getSortedVisibleDatasetMetas();for(let r=n.length-1;r>=0;--r){const i=n[r].$filler;nh(i)&&cl(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,o){const n=e.meta.$filler;!nh(n)||o.drawTime!=="beforeDatasetDraw"||cl(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ah=(t,e)=>{let{boxHeight:o=e,boxWidth:n=e}=t;return t.usePointStyle&&(o=Math.min(o,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:o,itemHeight:Math.max(e,o)}},ST=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class lh extends Oo{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.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(e,o,n){this.maxWidth=e,this.maxHeight=o,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 e=this.options.labels||{};let o=Pe(e.generateLabels,[this.chart],this)||[];e.filter&&(o=o.filter(n=>e.filter(n,this.chart.data))),e.sort&&(o=o.sort((n,r)=>e.sort(n,r,this.chart.data))),this.options.reverse&&o.reverse(),this.legendItems=o}fit(){const{options:e,ctx:o}=this;if(!e.display){this.width=this.height=0;return}const n=e.labels,r=Ge(n.font),i=r.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=ah(n,i);let c,u;o.font=r.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(s,i,a,l)+10):(u=this.maxHeight,c=this._fitCols(s,r,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,o,n,r){const{ctx:i,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=r+a;let d=e;i.textAlign="left",i.textBaseline="middle";let f=-1,h=-u;return this.legendItems.forEach((g,p)=>{const y=n+o/2+i.measureText(g.text).width;(p===0||c[c.length-1]+y+2*a>s)&&(d+=u,c[c.length-(p>0?0:1)]=0,h+=u,f++),l[p]={left:0,top:h,row:f,width:y,height:r},c[c.length-1]+=y+a}),d}_fitCols(e,o,n,r){const{ctx:i,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=s-e;let d=a,f=0,h=0,g=0,p=0;return this.legendItems.forEach((y,x)=>{const{itemWidth:v,itemHeight:m}=PT(n,o,i,y,r);x>0&&h+m+2*a>u&&(d+=f+a,c.push({width:f,height:h}),g+=f+a,p++,f=h=0),l[x]={left:g,top:h,col:p,width:v,height:m},f=Math.max(f,v),h+=m+a}),d+=f,c.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:o,options:{align:n,labels:{padding:r},rtl:i}}=this,s=Gn(i,this.left,this.width);if(this.isHorizontal()){let a=0,l=rt(n,this.left+r,this.right-this.lineWidths[a]);for(const c of o)a!==c.row&&(a=c.row,l=rt(n,this.left+r,this.right-this.lineWidths[a])),c.top+=this.top+e+r,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+r}else{let a=0,l=rt(n,this.top+e+r,this.bottom-this.columnSizes[a].height);for(const c of o)c.col!==a&&(a=c.col,l=rt(n,this.top+e+r,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+r,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;wa(e,this),this._draw(),Ca(e)}}_draw(){const{options:e,columnSizes:o,lineWidths:n,ctx:r}=this,{align:i,labels:s}=e,a=$e.color,l=Gn(e.rtl,this.left,this.width),c=Ge(s.font),{padding:u}=s,d=c.size,f=d/2;let h;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;const{boxWidth:g,boxHeight:p,itemHeight:y}=ah(s,d),x=function(C,S,T){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;r.save();const P=ne(T.lineWidth,1);if(r.fillStyle=ne(T.fillStyle,a),r.lineCap=ne(T.lineCap,"butt"),r.lineDashOffset=ne(T.lineDashOffset,0),r.lineJoin=ne(T.lineJoin,"miter"),r.lineWidth=P,r.strokeStyle=ne(T.strokeStyle,a),r.setLineDash(ne(T.lineDash,[])),s.usePointStyle){const O={radius:p*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:P},B=l.xPlus(C,g/2),E=S+f;$m(r,O,B,E,s.pointStyleWidth&&g)}else{const O=S+Math.max((d-p)/2,0),B=l.leftForLtr(C,g),E=wn(T.borderRadius);r.beginPath(),Object.values(E).some(N=>N!==0)?ii(r,{x:B,y:O,w:g,h:p,radius:E}):r.rect(B,O,g,p),r.fill(),P!==0&&r.stroke()}r.restore()},v=function(C,S,T){Rn(r,T.text,C,S+y/2,c,{strikethrough:T.hidden,textAlign:l.textAlign(T.textAlign)})},m=this.isHorizontal(),b=this._computeTitleHeight();m?h={x:rt(i,this.left+u,this.right-n[0]),y:this.top+u+b,line:0}:h={x:this.left+u,y:rt(i,this.top+b+u,this.bottom-o[0].height),line:0},Vm(this.ctx,e.textDirection);const _=y+u;this.legendItems.forEach((C,S)=>{r.strokeStyle=C.fontColor,r.fillStyle=C.fontColor;const T=r.measureText(C.text).width,P=l.textAlign(C.textAlign||(C.textAlign=s.textAlign)),O=g+f+T;let B=h.x,E=h.y;l.setWidth(this.width),m?S>0&&B+O+u>this.right&&(E=h.y+=_,h.line++,B=h.x=rt(i,this.left+u,this.right-n[h.line])):S>0&&E+_>this.bottom&&(B=h.x=B+o[h.line].width+u,h.line++,E=h.y=rt(i,this.top+b+u,this.bottom-o[h.line].height));const N=l.x(B);if(x(N,E,C),B=KS(P,B+g+f,m?B+O:this.right,e.rtl),v(l.x(B),E,C),m)h.x+=O+u;else if(typeof C.text!="string"){const X=c.lineHeight;h.y+=p0(C,X)+u}else h.y+=_}),Um(this.ctx,e.textDirection)}drawTitle(){const e=this.options,o=e.title,n=Ge(o.font),r=ct(o.padding);if(!o.display)return;const i=Gn(e.rtl,this.left,this.width),s=this.ctx,a=o.position,l=n.size/2,c=r.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=rt(e.align,d,this.right-f);else{const g=this.columnSizes.reduce((p,y)=>Math.max(p,y.height),0);u=c+rt(e.align,this.top,this.bottom-g-e.labels.padding-this._computeTitleHeight())}const h=rt(a,d,d+f);s.textAlign=i.textAlign(ru(a)),s.textBaseline="middle",s.strokeStyle=o.color,s.fillStyle=o.color,s.font=n.string,Rn(s,o.text,h,u,n)}_computeTitleHeight(){const e=this.options.title,o=Ge(e.font),n=ct(e.padding);return e.display?o.lineHeight+n.height:0}_getLegendItemAt(e,o){let n,r,i;if(_o(e,this.left,this.right)&&_o(o,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;ni.length>s.length?i:s)),e+o.size/2+n.measureText(r).width}function RT(t,e,o){let n=t;return typeof e.text!="string"&&(n=p0(e,o)),n}function p0(t,e){const o=t.text?t.text.length:0;return e*o}function OT(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var ET={id:"legend",_element:lh,start(t,e,o){const n=t.legend=new lh({ctx:t.ctx,options:o,chart:t});lt.configure(t,n,o),lt.addBox(t,n)},stop(t){lt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,o){const n=t.legend;lt.configure(t,n,o),n.options=o},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,o){const n=e.datasetIndex,r=o.chart;r.isDatasetVisible(n)?(r.hide(n),e.hidden=!0):(r.show(n),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:o,pointStyle:n,textAlign:r,color:i,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(o?0:void 0),u=ct(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.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 gu extends Oo{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.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(e,o){const n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=o;const r=De(n.text)?n.text.length:1;this._padding=ct(n.padding);const i=r*Ge(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:o,left:n,bottom:r,right:i,options:s}=this,a=s.align;let l=0,c,u,d;return this.isHorizontal()?(u=rt(a,n,i),d=o+e,c=i-n):(s.position==="left"?(u=n+e,d=rt(a,r,o),l=Me*-.5):(u=i-e,d=rt(a,o,r),l=Me*.5),c=r-o),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,o=this.options;if(!o.display)return;const n=Ge(o.font),i=n.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(i);Rn(e,o.text,0,0,n,{color:o.color,maxWidth:l,rotation:c,textAlign:ru(o.align),textBaseline:"middle",translation:[s,a]})}}function MT(t,e){const o=new gu({ctx:t.ctx,options:e,chart:t});lt.configure(t,o,e),lt.addBox(t,o),t.titleBlock=o}var AT={id:"title",_element:gu,start(t,e,o){MT(t,o)},stop(t){const e=t.titleBlock;lt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,o){const n=t.titleBlock;lt.configure(t,n,o),n.options=o},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}};const Qi=new WeakMap;var BT={id:"subtitle",start(t,e,o){const n=new gu({ctx:t.ctx,options:o,chart:t});lt.configure(t,n,o),lt.addBox(t,n),Qi.set(t,n)},stop(t){lt.removeBox(t,Qi.get(t)),Qi.delete(t)},beforeUpdate(t,e,o){const n=Qi.get(t);lt.configure(t,n,o),n.options=o},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const kr={average(t){if(!t.length)return!1;let e,o,n=new Set,r=0,i=0;for(e=0,o=t.length;ea+l)/n.size,y:r/i}},nearest(t,e){if(!t.length)return!1;let o=e.x,n=e.y,r=Number.POSITIVE_INFINITY,i,s,a;for(i=0,s=t.length;ia({chart:e,initial:o.initial,numSteps:s,currentStep:Math.min(n-o.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=Mm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let o=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;const i=n.items;let s=i.length-1,a=!1,l;for(;s>=0;--s)l=i[s],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(e),a=!0):(i[s]=i[i.length-1],i.pop());a&&(r.draw(),this._notify(r,n,e,"progress")),i.length||(n.running=!1,this._notify(r,n,e,"complete"),n.initial=!1),o+=i.length}),this._lastDate=e,o===0&&(this._running=!1)}_getAnims(e){const o=this._charts;let n=o.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},o.set(e,n)),n}listen(e,o,n){this._getAnims(e).listeners[o].push(n)}add(e,o){!o||!o.length||this._getAnims(e).items.push(...o)}has(e){return this._getAnims(e).items.length>0}start(e){const o=this._charts.get(e);o&&(o.running=!0,o.start=Date.now(),o.duration=o.items.reduce((n,r)=>Math.max(n,r._duration),0),this._refresh())}running(e){if(!this._running)return!1;const o=this._charts.get(e);return!(!o||!o.running||!o.items.length)}stop(e){const o=this._charts.get(e);if(!o||!o.items.length)return;const n=o.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();o.items=[],this._notify(e,o,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var fo=new K5;const Cf="transparent",Y5={boolean(t,e,o){return o>.5?e:t},color(t,e,o){const n=gf(t||Cf),r=n.valid&&gf(e||Cf);return r&&r.valid?r.mix(n,o).hexString():e},number(t,e,o){return t+(e-t)*o}};class q5{constructor(e,o,n,r){const i=o[n];r=vr([e.to,r,i,e.from]);const s=vr([e.from,i,r]);this._active=!0,this._fn=e.fn||Y5[e.type||typeof s],this._easing=Fr[e.easing]||Fr.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=o,this._prop=n,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(e,o,n){if(this._active){this._notify(!1);const r=this._target[this._prop],i=n-this._start,s=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=vr([e.to,o,r,e.from]),this._from=vr([e.from,r,o])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const o=e-this._start,n=this._duration,r=this._prop,i=this._from,s=this._loop,a=this._to;let l;if(this._active=i!==a&&(s||o1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(i,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((o,n)=>{e.push({res:o,rej:n})})}_notify(e){const o=e?"res":"rej",n=this._promises||[];for(let r=0;r{const i=e[r];if(!ae(i))return;const s={};for(const a of o)s[a]=i[a];(De(i.properties)&&i.properties||[r]).forEach(a=>{(a===r||!n.has(a))&&n.set(a,s)})})}_animateOptions(e,o){const n=o.options,r=X5(e,n);if(!r)return[];const i=this._createAnimations(r,n);return n.$shared&&G5(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,o){const n=this._properties,r=[],i=e.$animations||(e.$animations={}),s=Object.keys(o),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(e,o));continue}const u=o[c];let d=i[c];const f=n.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){e[c]=u;continue}i[c]=d=new q5(f,e,c,u),r.push(d)}return r}update(e,o){if(this._properties.size===0){Object.assign(e,o);return}const n=this._createAnimations(e,o);if(n.length)return fo.add(this._chart,n),!0}}function G5(t,e){const o=[],n=Object.keys(e);for(let r=0;r0||!o&&i<0)return r.index}return null}function Rf(t,e){const{chart:o,_cachedMeta:n}=t,r=o._stacks||(o._stacks={}),{iScale:i,vScale:s,index:a}=n,l=i.axis,c=s.axis,u=e2(i,s,n),d=e.length;let f;for(let h=0;ho[n].axis===e).shift()}function n2(t,e){return tn(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function r2(t,e,o){return tn(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:o,index:e,mode:"default",type:"data"})}function ur(t,e){const o=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const r of e){const i=r._stacks;if(!i||i[n]===void 0||i[n][o]===void 0)return;delete i[n][o],i[n]._visualValues!==void 0&&i[n]._visualValues[o]!==void 0&&delete i[n]._visualValues[o]}}}const ol=t=>t==="reset"||t==="none",Of=(t,e)=>e?t:Object.assign({},t),i2=(t,e,o)=>t&&!e.hidden&&e._stacked&&{keys:Xm(o,!0),values:null};class Yt{constructor(e,o){this.chart=e,this._ctx=e.ctx,this.index=o,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 e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=el(e.vScale,e),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(e){this.index!==e&&ur(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,o=this._cachedMeta,n=this.getDataset(),r=(d,f,h,g)=>d==="x"?f:d==="r"?g:h,i=o.xAxisID=ne(n.xAxisID,tl(e,"x")),s=o.yAxisID=ne(n.yAxisID,tl(e,"y")),a=o.rAxisID=ne(n.rAxisID,tl(e,"r")),l=o.indexAxis,c=o.iAxisID=r(l,i,s,a),u=o.vAxisID=r(l,s,i,a);o.xScale=this.getScaleForId(i),o.yScale=this.getScaleForId(s),o.rScale=this.getScaleForId(a),o.iScale=this.getScaleForId(c),o.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const o=this._cachedMeta;return e===o.iScale?o.vScale:o.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&df(this._data,this),e._stacked&&ur(e)}_dataCheck(){const e=this.getDataset(),o=e.data||(e.data=[]),n=this._data;if(ae(o)){const r=this._cachedMeta;this._data=Q5(o,r)}else if(n!==o){if(n){df(n,this);const r=this._cachedMeta;ur(r),r._parsed=[]}o&&Object.isExtensible(o)&&VS(o,this),this._syncList=[],this._data=o}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const o=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const i=o._stacked;o._stacked=el(o.vScale,o),o.stack!==n.stack&&(r=!0,ur(o),o.stack=n.stack),this._resyncElements(e),(r||i!==o._stacked)&&(Rf(this,o._parsed),o._stacked=el(o.vScale,o))}configure(){const e=this.chart.config,o=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),o,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,o){const{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:s}=n,a=i.axis;let l=e===0&&o===r.length?!0:n._sorted,c=e>0&&n._parsed[e-1],u,d,f;if(this._parsing===!1)n._parsed=r,n._sorted=!0,f=r;else{De(r[e])?f=this.parseArrayData(n,r,e,o):ae(r[e])?f=this.parseObjectData(n,r,e,o):f=this.parsePrimitiveData(n,r,e,o);const h=()=>d[a]===null||c&&d[a]p||d=0;--f)if(!g()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const o=this._cachedMeta._parsed,n=[];let r,i,s;for(r=0,i=o.length;r=0&&ethis.getContext(n,r,o),p=c.resolveNamedOptions(f,h,g,d);return p.$shared&&(p.$shared=l,i[s]=Object.freeze(Of(p,l))),p}_resolveAnimations(e,o,n){const r=this.chart,i=this._cachedDataOpts,s=`animation-${o}`,a=i[s];if(a)return a;let l;if(r.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,o),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(e,n,o))}const c=new Gm(r,l&&l.animations);return l&&l._cacheable&&(i[s]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,o){return!o||ol(e)||this.chart._animationsDisabled}_getSharedOptions(e,o){const n=this.resolveDataElementOptions(e,o),r=this._sharedOptions,i=this.getSharedOptions(n),s=this.includeOptions(o,i)||i!==r;return this.updateSharedOptions(i,o,n),{sharedOptions:i,includeOptions:s}}updateElement(e,o,n,r){ol(r)?Object.assign(e,n):this._resolveAnimations(o,r).update(e,n)}updateSharedOptions(e,o,n){e&&!ol(o)&&this._resolveAnimations(void 0,o).update(e,n)}_setStyle(e,o,n,r){e.active=r;const i=this.getStyle(o,r);this._resolveAnimations(o,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,o,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,o,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const o=this._data,n=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const r=n.length,i=o.length,s=Math.min(i,r);s&&this.parse(0,s),i>r?this._insertElements(r,i-r,e):i{for(c.length+=o,a=c.length-1;a>=s;a--)c[a]=c[a-o]};for(l(i),a=e;ar-i))}return t._cache.$bar}function a2(t){const e=t.iScale,o=s2(e,t.type);let n=e._length,r,i,s,a;const l=()=>{s===32767||s===-32768||(ni(a)&&(n=Math.min(n,Math.abs(s-a)||n)),a=s)};for(r=0,i=o.length;r0?r[t-1]:null,a=tMath.abs(a)&&(l=a,c=s),e[o.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:i,min:s,max:a}}function Zm(t,e,o,n){return De(t)?u2(t,e,o,n):e[o.axis]=o.parse(t,n),e}function Ef(t,e,o,n){const r=t.iScale,i=t.vScale,s=r.getLabels(),a=r===i,l=[];let c,u,d,f;for(c=o,u=o+n;c=o?1:-1)}function f2(t){let e,o,n,r,i;return t.horizontal?(e=t.base>t.x,o="left",n="right"):(e=t.baseu.controller.options.grouped),i=n.options.stacked,s=[],a=this._cachedMeta.controller.getParsed(o),l=a&&a[n.axis],c=u=>{const d=u._parsed.find(h=>h[n.axis]===l),f=d&&d[u.vScale.axis];if(de(f)||isNaN(f))return!0};for(const u of r)if(!(o!==void 0&&c(u))&&((i===!1||s.indexOf(u.stack)===-1||i===void 0&&u.stack===void 0)&&s.push(u.stack),u.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,o,n){const r=this._getStacks(e,n),i=o!==void 0?r.indexOf(o):-1;return i===-1?r.length-1:i}_getRuler(){const e=this.options,o=this._cachedMeta,n=o.iScale,r=[];let i,s;for(i=0,s=o.data.length;i=0;--n)o=Math.max(o,e[n].size(this.resolveDataElementOptions(n))/2);return o>0&&o}getLabelAndValue(e){const o=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=o,s=this.getParsed(e),a=r.getLabelForValue(s.x),l=i.getLabelForValue(s.y),c=s._custom;return{label:n[e]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(e){const o=this._cachedMeta.data;this.updateElements(o,0,o.length,e)}updateElements(e,o,n,r){const i=r==="reset",{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(o,r),u=s.axis,d=a.axis;for(let f=o;fri(m,a,l,!0)?1:Math.max(b,b*o,_,_*o),g=(m,b,_)=>ri(m,a,l,!0)?-1:Math.min(b,b*o,_,_*o),p=h(0,c,d),y=h(We,u,f),x=g(Me,c,d),v=g(Me+We,u,f);n=(p-x)/2,r=(y-v)/2,i=-(p+x)/2,s=-(y+v)/2}return{ratioX:n,ratioY:r,offsetX:i,offsetY:s}}class bn extends Yt{constructor(e,o){super(e,o),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,o){const n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let i=l=>+n[l];if(ae(n[e])){const{key:l="value"}=this._parsing;i=c=>+Xo(n[c],l)}let s,a;for(s=e,a=e+o;s0&&!isNaN(e)?Ee*(Math.abs(e)/o):0}getLabelAndValue(e){const o=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Si(o._parsed[e],n.options.locale);return{label:r[e]||"",value:i}}getMaxBorderWidth(e){let o=0;const n=this.chart;let r,i,s,a,l;if(!e){for(r=0,i=n.data.datasets.length;re!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),j(bn,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const o=e.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return o.labels.map((i,s)=>{const l=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,o,n){n.chart.toggleDataVisibility(o.index),n.chart.update()}}}});class ps extends Yt{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const o=this._cachedMeta,{dataset:n,data:r=[],_dataset:i}=o,s=this.chart._animationsDisabled;let{start:a,count:l}=Bm(o,r,s);this._drawStart=a,this._drawCount=l,Lm(o)&&(a=0,l=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!i._decimated,n.points=r;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:c},e),this.updateElements(r,a,l,e)}updateElements(e,o,n,r){const i=r==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(o,r),f=s.axis,h=a.axis,{spanGaps:g,segment:p}=this.options,y=er(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||i||r==="none",v=o+n,m=e.length;let b=o>0&&this.getParsed(o-1);for(let _=0;_=v){S.skip=!0;continue}const T=this.getParsed(_),P=de(T[h]),O=S[f]=s.getPixelForValue(T[f],_),B=S[h]=i||P?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,T,l):T[h],_);S.skip=isNaN(O)||isNaN(B)||P,S.stop=_>0&&Math.abs(T[f]-b[f])>y,p&&(S.parsed=T,S.raw=c.data[_]),d&&(S.options=u||this.resolveDataElementOptions(_,C.active?"active":r)),x||this.updateElement(C,_,S,r),b=T}}getMaxOverflow(){const e=this._cachedMeta,o=e.dataset,n=o.options&&o.options.borderWidth||0,r=e.data||[];if(!r.length)return n;const i=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}j(ps,"id","line"),j(ps,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),j(ps,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Hr extends Yt{constructor(e,o){super(e,o),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const o=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Si(o._parsed[e].r,n.options.locale);return{label:r[e]||"",value:i}}parseObjectData(e,o,n,r){return Wm.bind(this)(e,o,n,r)}update(e){const o=this._cachedMeta.data;this._updateRadius(),this.updateElements(o,0,o.length,e)}getMinMax(){const e=this._cachedMeta,o={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((n,r)=>{const i=this.getParsed(r).r;!isNaN(i)&&this.chart.getDataVisibility(r)&&(io.max&&(o.max=i))}),o}_updateRadius(){const e=this.chart,o=e.chartArea,n=e.options,r=Math.min(o.right-o.left,o.bottom-o.top),i=Math.max(r/2,0),s=Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0),a=(i-s)/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,o,n,r){const i=r==="reset",s=this.chart,l=s.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*Me;let h=f,g;const p=360/this.countVisibleElements();for(g=0;g{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&o++}),o}_computeAngle(e,o,n){return this.chart.getDataVisibility(e)?Ut(this.resolveDataElementOptions(e,o).angle||n):0}}j(Hr,"id","polarArea"),j(Hr,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),j(Hr,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const o=e.data;if(o.labels.length&&o.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return o.labels.map((i,s)=>{const l=e.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,o,n){n.chart.toggleDataVisibility(o.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Ql extends bn{}j(Ql,"id","pie"),j(Ql,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class ms extends Yt{getLabelAndValue(e){const o=this._cachedMeta.vScale,n=this.getParsed(e);return{label:o.getLabels()[e],value:""+o.getLabelForValue(n[o.axis])}}parseObjectData(e,o,n,r){return Wm.bind(this)(e,o,n,r)}update(e){const o=this._cachedMeta,n=o.dataset,r=o.data||[],i=o.iScale.getLabels();if(n.points=r,e!=="resize"){const s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);const a={_loop:!0,_fullLoop:i.length===r.length,options:s};this.updateElement(n,void 0,a,e)}this.updateElements(r,0,r.length,e)}updateElements(e,o,n,r){const i=this._cachedMeta.rScale,s=r==="reset";for(let a=o;a0&&this.getParsed(o-1);for(let b=o;b0&&Math.abs(C[h]-m[h])>x,y&&(S.parsed=C,S.raw=c.data[b]),f&&(S.options=d||this.resolveDataElementOptions(b,_.active?"active":r)),v||this.updateElement(_,b,S,r),m=C}this.updateSharedOptions(d,r,u)}getMaxOverflow(){const e=this._cachedMeta,o=e.data||[];if(!this.options.showLine){let a=0;for(let l=o.length-1;l>=0;--l)a=Math.max(a,o[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!o.length)return r;const i=o[0].size(this.resolveDataElementOptions(0)),s=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(r,i,s)/2}}j(bs,"id","scatter"),j(bs,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),j(bs,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var b2=Object.freeze({__proto__:null,BarController:hs,BubbleController:gs,DoughnutController:bn,LineController:ps,PieController:Ql,PolarAreaController:Hr,RadarController:ms,ScatterController:bs});function ln(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class fu{constructor(e){j(this,"options");this.options=e||{}}static override(e){Object.assign(fu.prototype,e)}init(){}formats(){return ln()}parse(){return ln()}format(){return ln()}add(){return ln()}diff(){return ln()}startOf(){return ln()}endOf(){return ln()}}var y2={_date:fu};function v2(t,e,o,n){const{controller:r,data:i,_sorted:s}=t,a=r._cachedMeta.iScale;if(a&&e===a.axis&&e!=="r"&&s&&i.length){const l=a._reversePixels?WS:ko;if(n){if(r._sharedOptions){const c=i[0],u=typeof c.getRange=="function"&&c.getRange(e);if(u){const d=l(i,e,o-u),f=l(i,e,o+u);return{lo:d.lo,hi:f.hi}}}}else return l(i,e,o)}return{lo:0,hi:i.length-1}}function Pi(t,e,o,n,r){const i=t.getSortedVisibleDatasetMetas(),s=o[e];for(let a=0,l=i.length;a{l[s]&&l[s](e[o],r)&&(i.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,r))}),n&&!a?[]:i}var w2={evaluateInteractionItems:Pi,modes:{index(t,e,o,n){const r=fn(e,t),i=o.axis||"x",s=o.includeInvisible||!1,a=o.intersect?rl(t,r,i,n,s):il(t,r,i,!1,n,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,o,n){const r=fn(e,t),i=o.axis||"xy",s=o.includeInvisible||!1;let a=o.intersect?rl(t,r,i,n,s):il(t,r,i,!1,n,s);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;uo.pos===e)}function Lf(t,e){return t.filter(o=>Jm.indexOf(o.pos)===-1&&o.box.axis===e)}function fr(t,e){return t.sort((o,n)=>{const r=e?n:o,i=e?o:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function C2(t){const e=[];let o,n,r,i,s,a;for(o=0,n=(t||[]).length;oc.box.fullSize),!0),n=fr(dr(e,"left"),!0),r=fr(dr(e,"right")),i=fr(dr(e,"top"),!0),s=fr(dr(e,"bottom")),a=Lf(e,"x"),l=Lf(e,"y");return{fullSize:o,leftAndTop:n.concat(i),rightAndBottom:r.concat(l).concat(s).concat(a),chartArea:dr(e,"chartArea"),vertical:n.concat(r).concat(l),horizontal:i.concat(s).concat(a)}}function Df(t,e,o,n){return Math.max(t[o],e[o])+Math.max(t[n],e[n])}function Qm(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 R2(t,e,o,n){const{pos:r,box:i}=o,s=t.maxPadding;if(!ae(r)){o.size&&(t[r]-=o.size);const d=n[o.stack]||{size:0,count:1};d.size=Math.max(d.size,o.horizontal?i.height:i.width),o.size=d.size/d.count,t[r]+=o.size}i.getPadding&&Qm(s,i.getPadding());const a=Math.max(0,e.outerWidth-Df(s,t,"left","right")),l=Math.max(0,e.outerHeight-Df(s,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,o.horizontal?{same:c,other:u}:{same:u,other:c}}function O2(t){const e=t.maxPadding;function o(n){const r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=o("top"),t.x+=o("left"),o("right"),o("bottom")}function E2(t,e){const o=e.maxPadding;function n(r){const i={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{i[s]=Math.max(e[s],o[s])}),i}return n(t?["left","right"]:["top","bottom"])}function xr(t,e,o,n){const r=[];let i,s,a,l,c,u;for(i=0,s=t.length,c=0;i{typeof p.beforeLayout=="function"&&p.beforeLayout()});const u=l.reduce((p,y)=>y.box.options&&y.box.options.display===!1?p:p+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:o,padding:r,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/u,hBoxMaxHeight:s/2}),f=Object.assign({},r);Qm(f,ct(n));const h=Object.assign({maxPadding:f,w:i,h:s,x:r.left,y:r.top},r),g=P2(l.concat(c),d);xr(a.fullSize,h,d,g),xr(l,h,d,g),xr(c,h,d,g)&&xr(l,h,d,g),O2(h),$f(a.leftAndTop,h,d,g),h.x+=h.w,h.y+=h.h,$f(a.rightAndBottom,h,d,g),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},ye(a.chartArea,p=>{const y=p.box;Object.assign(y,t.chartArea),y.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class e0{acquireContext(e,o){}releaseContext(e){return!1}addEventListener(e,o,n){}removeEventListener(e,o,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,o,n,r){return o=Math.max(0,o||e.width),n=n||e.height,{width:o,height:Math.max(0,r?Math.floor(o/r):n)}}isAttached(e){return!0}updateConfig(e){}}class M2 extends e0{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ys="$chartjs",A2={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},If=t=>t===null||t==="";function B2(t,e){const o=t.style,n=t.getAttribute("height"),r=t.getAttribute("width");if(t[ys]={initial:{height:n,width:r,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",o.boxSizing=o.boxSizing||"border-box",If(r)){const i=xf(t,"width");i!==void 0&&(t.width=i)}if(If(n))if(t.style.height==="")t.height=t.width/(e||2);else{const i=xf(t,"height");i!==void 0&&(t.height=i)}return t}const t0=D5?{passive:!0}:!1;function L2(t,e,o){t&&t.addEventListener(e,o,t0)}function D2(t,e,o){t&&t.canvas&&t.canvas.removeEventListener(e,o,t0)}function $2(t,e){const o=A2[t.type]||t.type,{x:n,y:r}=fn(t,e);return{type:o,chart:e,native:t,x:n!==void 0?n:null,y:r!==void 0?r:null}}function Js(t,e){for(const o of t)if(o===e||o.contains(e))return!0}function I2(t,e,o){const n=t.canvas,r=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||Js(a.addedNodes,n),s=s&&!Js(a.removedNodes,n);s&&o()});return r.observe(document,{childList:!0,subtree:!0}),r}function N2(t,e,o){const n=t.canvas,r=new MutationObserver(i=>{let s=!1;for(const a of i)s=s||Js(a.removedNodes,n),s=s&&!Js(a.addedNodes,n);s&&o()});return r.observe(document,{childList:!0,subtree:!0}),r}const si=new Map;let Nf=0;function o0(){const t=window.devicePixelRatio;t!==Nf&&(Nf=t,si.forEach((e,o)=>{o.currentDevicePixelRatio!==t&&e()}))}function F2(t,e){si.size||window.addEventListener("resize",o0),si.set(t,e)}function j2(t){si.delete(t),si.size||window.removeEventListener("resize",o0)}function H2(t,e,o){const n=t.canvas,r=n&&du(n);if(!r)return;const i=Am((a,l)=>{const c=r.clientWidth;o(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||i(c,u)});return s.observe(r),F2(t,i),s}function sl(t,e,o){o&&o.disconnect(),e==="resize"&&j2(t)}function W2(t,e,o){const n=t.canvas,r=Am(i=>{t.ctx!==null&&o($2(i,t))},t);return L2(n,e,r),r}class z2 extends e0{acquireContext(e,o){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(B2(e,o),n):null}releaseContext(e){const o=e.canvas;if(!o[ys])return!1;const n=o[ys].initial;["height","width"].forEach(i=>{const s=n[i];de(s)?o.removeAttribute(i):o.setAttribute(i,s)});const r=n.style||{};return Object.keys(r).forEach(i=>{o.style[i]=r[i]}),o.width=o.width,delete o[ys],!0}addEventListener(e,o,n){this.removeEventListener(e,o);const r=e.$proxies||(e.$proxies={}),s={attach:I2,detach:N2,resize:H2}[o]||W2;r[o]=s(e,o,n)}removeEventListener(e,o){const n=e.$proxies||(e.$proxies={}),r=n[o];if(!r)return;({attach:sl,detach:sl,resize:sl}[o]||D2)(e,o,r),n[o]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,o,n,r){return L5(e,o,n,r)}isAttached(e){const o=e&&du(e);return!!(o&&o.isConnected)}}function V2(t){return!uu()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?M2:z2}var rs;let Oo=(rs=class{constructor(){j(this,"x");j(this,"y");j(this,"active",!1);j(this,"options");j(this,"$animations")}tooltipPosition(e){const{x:o,y:n}=this.getProps(["x","y"],e);return{x:o,y:n}}hasValue(){return er(this.x)&&er(this.y)}getProps(e,o){const n=this.$animations;if(!o||!n)return this;const r={};return e.forEach(i=>{r[i]=n[i]&&n[i].active()?n[i]._to:this[i]}),r}},j(rs,"defaults",{}),j(rs,"defaultRoutes"),rs);function U2(t,e){const o=t.options.ticks,n=K2(t),r=Math.min(o.maxTicksLimit||n,n),i=o.major.enabled?q2(e):[],s=i.length,a=i[0],l=i[s-1],c=[];if(s>r)return G2(e,c,i,s/r),c;const u=Y2(i,e,r);if(s>0){let d,f;const h=s>1?Math.round((l-a)/(s-1)):null;for(Gi(e,c,u,de(h)?0:a-h,a),d=0,f=s-1;dr)return l}return Math.max(r,1)}function q2(t){const e=[];let o,n;for(o=0,n=t.length;ot==="left"?"right":t==="right"?"left":t,Ff=(t,e,o)=>e==="top"||e==="left"?t[e]+o:t[e]-o,jf=(t,e)=>Math.min(e||t,t);function Hf(t,e){const o=[],n=t.length/e,r=t.length;let i=0;for(;is+a)))return l}function Q2(t,e){ye(t,o=>{const n=o.gc,r=n.length/2;let i;if(r>e){for(i=0;in?n:o,n=r&&o>n?o:n,{min:St(o,St(n,o)),max:St(n,St(o,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Pe(this.options.beforeUpdate,[this])}update(e,o,n){const{beginAtZero:r,grace:i,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=o,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=f5(this,i,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,h=Je(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/n:h/(n-1),d+6>a&&(a=h/(n-(e.offset?.5:1)),l=this.maxHeight-hr(e.grid)-o.padding-Wf(e.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),s=ou(Math.min(Math.asin(Je((u.highest.height+6)/a,-1,1)),Math.asin(Je(l/c,-1,1))-Math.asin(Je(f/c,-1,1)))),s=Math.max(r,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){Pe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Pe(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:o,options:{ticks:n,title:r,grid:i}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=Wf(r,o.options.font);if(a?(e.width=this.maxWidth,e.height=hr(i)+l):(e.height=this.maxHeight,e.width=hr(i)+l),n.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),h=n.padding*2,g=Ut(this.labelRotation),p=Math.cos(g),y=Math.sin(g);if(a){const x=n.mirror?0:y*d.width+p*f.height;e.height=Math.min(this.maxHeight,e.height+x+h)}else{const x=n.mirror?0:p*d.width+y*f.height;e.width=Math.min(this.maxWidth,e.width+x+h)}this._calculatePadding(c,u,y,p)}}this._handleMargins(),a?(this.width=this._length=o.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=o.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,o,n,r){const{ticks:{align:i,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=r*e.width,h=n*o.height):(f=n*e.height,h=r*o.width):i==="start"?h=o.width:i==="end"?f=e.width:i!=="inner"&&(f=e.width/2,h=o.width/2),this.paddingLeft=Math.max((f-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+s)*this.width/(this.width-d),0)}else{let u=o.height/2,d=e.height/2;i==="start"?(u=0,d=e.height):i==="end"&&(u=o.height,d=0),this.paddingTop=u+s,this.paddingBottom=d+s}}_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(){Pe(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:o}=this.options;return o==="top"||o==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let o,n;for(o=0,n=e.length;o({width:s[P]||0,height:a[P]||0});return{first:T(0),last:T(o-1),widest:T(C),highest:T(S),widths:s,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,o){return NaN}getValueForPixel(e){}getPixelForTick(e){const o=this.ticks;return e<0||e>o.length-1?null:this.getPixelForValue(o[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const o=this._startPixel+e*this._length;return HS(this._alignToPixels?an(this.chart,o,0):o)}getDecimalForPixel(e){const o=(e-this._startPixel)/this._length;return this._reversePixels?1-o:o}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:o}=this;return e<0&&o<0?o:e>0&&o>0?e:0}getContext(e){const o=this.ticks||[];if(e>=0&&ea*r?a/n:l/r:l*r0}_computeGridLineItems(e){const o=this.axis,n=this.chart,r=this.options,{grid:i,position:s,border:a}=r,l=i.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=hr(i),h=[],g=a.setContext(this.getContext()),p=g.display?g.width:0,y=p/2,x=function(I){return an(n,I,p)};let v,m,b,_,C,S,T,P,O,B,E,N;if(s==="top")v=x(this.bottom),S=this.bottom-f,P=v-y,B=x(e.top)+y,N=e.bottom;else if(s==="bottom")v=x(this.top),B=e.top,N=x(e.bottom)-y,S=v+y,P=this.top+f;else if(s==="left")v=x(this.right),C=this.right-f,T=v-y,O=x(e.left)+y,E=e.right;else if(s==="right")v=x(this.left),O=e.left,E=x(e.right)-y,C=v+y,T=this.left+f;else if(o==="x"){if(s==="center")v=x((e.top+e.bottom)/2+.5);else if(ae(s)){const I=Object.keys(s)[0],U=s[I];v=x(this.chart.scales[I].getPixelForValue(U))}B=e.top,N=e.bottom,S=v+y,P=S+f}else if(o==="y"){if(s==="center")v=x((e.left+e.right)/2);else if(ae(s)){const I=Object.keys(s)[0],U=s[I];v=x(this.chart.scales[I].getPixelForValue(U))}C=v-y,T=C-f,O=e.left,E=e.right}const X=ne(r.ticks.maxTicksLimit,d),q=Math.max(1,Math.ceil(d/X));for(m=0;m0&&(Ne-=He/2);break}ke={left:Ne,top:_t,width:He+pe.width,height:et+pe.height,color:q.backdropColor}}y.push({label:b,font:P,textOffset:E,options:{rotation:p,color:U,strokeColor:W,strokeWidth:oe,textAlign:Re,textBaseline:N,translation:[_,C],backdrop:ke}})}return y}_getXAxisLabelAlignment(){const{position:e,ticks:o}=this.options;if(-Ut(this.labelRotation))return e==="top"?"left":"right";let r="center";return o.align==="start"?r="left":o.align==="end"?r="right":o.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(e){const{position:o,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,s=this._getLabelSizes(),a=e+i,l=s.widest.width;let c,u;return o==="left"?r?(u=this.right+i,n==="near"?c="left":n==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,n==="near"?c="right":n==="center"?(c="center",u-=l/2):(c="left",u=this.left)):o==="right"?r?(u=this.left+i,n==="near"?c="right":n==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,n==="near"?c="left":n==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,o=this.options.position;if(o==="left"||o==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(o==="top"||o==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:o},left:n,top:r,width:i,height:s}=this;o&&(e.save(),e.fillStyle=o,e.fillRect(n,r,i,s),e.restore())}getLineWidthForValue(e){const o=this.options.grid;if(!this._isVisible()||!o.display)return 0;const r=this.ticks.findIndex(i=>i.value===e);return r>=0?o.setContext(this.getContext(r)).lineWidth:0}drawGrid(e){const o=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,s;const a=(l,c,u)=>{!u.width||!u.color||(n.save(),n.lineWidth=u.width,n.strokeStyle=u.color,n.setLineDash(u.borderDash||[]),n.lineDashOffset=u.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(o.display)for(i=0,s=r.length;i{this.draw(i)}}]:[{z:n,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:o,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const o=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let i,s;for(i=0,s=o.length;i{const n=o.split("."),r=n.pop(),i=[t].concat(n).join("."),s=e[o].split("."),a=s.pop(),l=s.join(".");$e.route(i,r,l,a)})}function sP(t){return"id"in t&&"defaults"in t}class aP{constructor(){this.controllers=new Xi(Yt,"datasets",!0),this.elements=new Xi(Oo,"elements"),this.plugins=new Xi(Object,"plugins"),this.scales=new Xi(Mn,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,o,n){[...o].forEach(r=>{const i=n||this._getRegistryForType(r);n||i.isForType(r)||i===this.plugins&&r.id?this._exec(e,i,r):ye(r,s=>{const a=n||this._getRegistryForType(s);this._exec(e,a,s)})})}_exec(e,o,n){const r=tu(e);Pe(n["before"+r],[],n),o[e](n),Pe(n["after"+r],[],n)}_getRegistryForType(e){for(let o=0;oi.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(r(o,n),e,"stop"),this._notify(r(n,o),e,"start")}}function cP(t){const e={},o=[],n=Object.keys(Qt.plugins.items);for(let i=0;i1&&zf(t[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Vf(t,e,o){if(o[e+"AxisID"]===t)return{axis:e}}function mP(t,e){if(e.data&&e.data.datasets){const o=e.data.datasets.filter(n=>n.xAxisID===t||n.yAxisID===t);if(o.length)return Vf(t,"x",o[0])||Vf(t,"y",o[0])}return{}}function bP(t,e){const o=Tn[t.type]||{scales:{}},n=e.scales||{},r=ec(t.type,e),i=Object.create(null);return Object.keys(n).forEach(s=>{const a=n[s];if(!ae(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=tc(s,a,mP(s,t),$e.scales[a.type]),c=gP(l,r),u=o.scales||{};i[s]=Ir(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(s=>{const a=s.type||t.type,l=s.indexAxis||ec(a,e),u=(Tn[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=hP(d,l),h=s[f+"AxisID"]||f;i[h]=i[h]||Object.create(null),Ir(i[h],[{axis:f},n[h],u[d]])})}),Object.keys(i).forEach(s=>{const a=i[s];Ir(a,[$e.scales[a.type],$e.scale])}),i}function n0(t){const e=t.options||(t.options={});e.plugins=ne(e.plugins,{}),e.scales=bP(t,e)}function r0(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function yP(t){return t=t||{},t.data=r0(t.data),n0(t),t}const Uf=new Map,i0=new Set;function Zi(t,e){let o=Uf.get(t);return o||(o=e(),Uf.set(t,o),i0.add(o)),o}const gr=(t,e,o)=>{const n=Xo(e,o);n!==void 0&&t.add(n)};class vP{constructor(e){this._config=yP(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=r0(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),n0(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Zi(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,o){return Zi(`${e}.transition.${o}`,()=>[[`datasets.${e}.transitions.${o}`,`transitions.${o}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,o){return Zi(`${e}-${o}`,()=>[[`datasets.${e}.elements.${o}`,`datasets.${e}`,`elements.${o}`,""]])}pluginScopeKeys(e){const o=e.id,n=this.type;return Zi(`${n}-plugin-${o}`,()=>[[`plugins.${o}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,o){const n=this._scopeCache;let r=n.get(e);return(!r||o)&&(r=new Map,n.set(e,r)),r}getOptionScopes(e,o,n){const{options:r,type:i}=this,s=this._cachedScopes(e,n),a=s.get(o);if(a)return a;const l=new Set;o.forEach(u=>{e&&(l.add(e),u.forEach(d=>gr(l,e,d))),u.forEach(d=>gr(l,r,d)),u.forEach(d=>gr(l,Tn[i]||{},d)),u.forEach(d=>gr(l,$e,d)),u.forEach(d=>gr(l,Zl,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),i0.has(o)&&s.set(o,c),c}chartOptionScopes(){const{options:e,type:o}=this;return[e,Tn[o]||{},$e.datasets[o]||{},{type:o},$e,Zl]}resolveNamedOptions(e,o,n,r=[""]){const i={$shared:!0},{resolver:s,subPrefixes:a}=Kf(this._resolverCache,e,r);let l=s;if(_P(s,o)){i.$shared=!1,n=Zo(n)?n():n;const c=this.createResolver(e,n,a);l=tr(s,n,c)}for(const c of o)i[c]=l[c];return i}createResolver(e,o,n=[""],r){const{resolver:i}=Kf(this._resolverCache,e,n);return ae(o)?tr(i,o,void 0,r):i}}function Kf(t,e,o){let n=t.get(e);n||(n=new Map,t.set(e,n));const r=o.join();let i=n.get(r);return i||(i={resolver:au(e,o),subPrefixes:o.filter(a=>!a.toLowerCase().includes("hover"))},n.set(r,i)),i}const xP=t=>ae(t)&&Object.getOwnPropertyNames(t).some(e=>Zo(t[e]));function _P(t,e){const{isScriptable:o,isIndexable:n}=Nm(t);for(const r of e){const i=o(r),s=n(r),a=(s||i)&&t[r];if(i&&(Zo(a)||xP(a))||s&&De(a))return!0}return!1}var kP="4.4.6";const wP=["top","bottom","left","right","chartArea"];function Yf(t,e){return t==="top"||t==="bottom"||wP.indexOf(t)===-1&&e==="x"}function qf(t,e){return function(o,n){return o[t]===n[t]?o[e]-n[e]:o[t]-n[t]}}function Gf(t){const e=t.chart,o=e.options.animation;e.notifyPlugins("afterRender"),Pe(o&&o.onComplete,[t],e)}function CP(t){const e=t.chart,o=e.options.animation;Pe(o&&o.onProgress,[t],e)}function s0(t){return uu()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const vs={},Xf=t=>{const e=s0(t);return Object.values(vs).filter(o=>o.canvas===e).pop()};function SP(t,e,o){const n=Object.keys(t);for(const r of n){const i=+r;if(i>=e){const s=t[r];delete t[r],(o>0||i>e)&&(t[i+o]=s)}}}function PP(t,e,o,n){return!o||t.type==="mouseout"?null:n?e:t}function Ji(t,e,o){return t.options.clip?t[o]:e[o]}function TP(t,e){const{xScale:o,yScale:n}=t;return o&&n?{left:Ji(o,e,"left"),right:Ji(o,e,"right"),top:Ji(n,e,"top"),bottom:Ji(n,e,"bottom")}:e}class No{static register(...e){Qt.add(...e),Zf()}static unregister(...e){Qt.remove(...e),Zf()}constructor(e,o){const n=this.config=new vP(o),r=s0(e),i=Xf(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||V2(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=OS(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=s,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 lP,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=US(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],vs[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}fo.listen(this,"complete",Gf),fo.listen(this,"progress",CP),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:o},width:n,height:r,_aspectRatio:i}=this;return de(e)?o&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Qt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():vf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return mf(this.canvas,this.ctx),this}stop(){return fo.stop(this),this}resize(e,o){fo.running(this)?this._resizeBeforeDraw={width:e,height:o}:this._resize(e,o)}_resize(e,o){const n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,e,o,i),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,vf(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Pe(n.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const o=this.options.scales||{};ye(o,(n,r)=>{n.id=r})}buildOrUpdateScales(){const e=this.options,o=e.scales,n=this.scales,r=Object.keys(n).reduce((s,a)=>(s[a]=!1,s),{});let i=[];o&&(i=i.concat(Object.keys(o).map(s=>{const a=o[s],l=tc(s,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),ye(i,s=>{const a=s.options,l=a.id,c=tc(l,a),u=ne(a.type,s.dtype);(a.position===void 0||Yf(a.position,c)!==Yf(s.dposition))&&(a.position=s.dposition),r[l]=!0;let d=null;if(l in n&&n[l].type===u)d=n[l];else{const f=Qt.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),n[d.id]=d}d.init(a,e)}),ye(r,(s,a)=>{s||delete n[a]}),ye(n,s=>{lt.configure(this,s,s.options),lt.addBox(this,s)})}_updateMetasets(){const e=this._metasets,o=this.data.datasets.length,n=e.length;if(e.sort((r,i)=>r.index-i.index),n>o){for(let r=o;ro.length&&delete this._stacks,e.forEach((n,r)=>{o.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=[],o=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=o.length;n{this.getDatasetMeta(o).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const o=this.config;o.update();const n=this._options=o.createResolver(o.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(qf("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ye(this.scales,e=>{lt.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,o=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!af(o,n)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,o=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of o){const s=n==="_removeElements"?-i:i;SP(e,r,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const o=this.data.datasets.length,n=i=>new Set(e.filter(s=>s[0]===i).map((s,a)=>a+","+s.splice(1).join(","))),r=n(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;lt.update(this,this.width,this.height,e);const o=this.chartArea,n=o.width<=0||o.height<=0;this._layers=[],ye(this.boxes,r=>{n&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let o=0,n=this.data.datasets.length;o=0;--o)this._drawDataset(e[o]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const o=this.ctx,n=e._clip,r=!n.disabled,i=TP(e,this.chartArea),s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(r&&wa(o,{left:n.left===!1?0:i.left-n.left,right:n.right===!1?this.width:i.right+n.right,top:n.top===!1?0:i.top-n.top,bottom:n.bottom===!1?this.height:i.bottom+n.bottom}),e.controller.draw(),r&&Ca(o),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return wo(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,o,n,r){const i=w2.modes[o];return typeof i=="function"?i(this,e,n,r):[]}getDatasetMeta(e){const o=this.data.datasets[e],n=this._metasets;let r=n.filter(i=>i&&i._dataset===o).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:o&&o.order||0,index:e,_dataset:o,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=tn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const o=this.data.datasets[e];if(!o)return!1;const n=this.getDatasetMeta(e);return typeof n.hidden=="boolean"?!n.hidden:!o.hidden}setDatasetVisibility(e,o){const n=this.getDatasetMeta(e);n.hidden=!o}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,o,n){const r=n?"show":"hide",i=this.getDatasetMeta(e),s=i.controller._resolveAnimations(void 0,r);ni(o)?(i.data[o].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),s.update(i,{visible:n}),this.update(a=>a.datasetIndex===e?r:void 0))}hide(e,o){this._updateVisibility(e,o,!1)}show(e,o){this._updateVisibility(e,o,!0)}_destroyDatasetMeta(e){const o=this._metasets[e];o&&o.controller&&o.controller._destroy(),delete this._metasets[e]}_stop(){let e,o;for(this.stop(),fo.remove(this),e=0,o=this.data.datasets.length;e{o.addEventListener(this,i,s),e[i]=s},r=(i,s,a)=>{i.offsetX=s,i.offsetY=a,this._eventHandler(i)};ye(this.options.events,i=>n(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,o=this.platform,n=(l,c)=>{o.addEventListener(this,l,c),e[l]=c},r=(l,c)=>{e[l]&&(o.removeEventListener(this,l,c),delete e[l])},i=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",s)};s=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",a)},o.isAttached(this.canvas)?a():s()}unbindEvents(){ye(this._listeners,(e,o)=>{this.platform.removeEventListener(this,o,e)}),this._listeners={},ye(this._responsiveListeners,(e,o)=>{this.platform.removeEventListener(this,o,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,o,n){const r=n?"set":"remove";let i,s,a,l;for(o==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),a=0,l=e.length;a{const a=this.getDatasetMeta(i);if(!a)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:a.data[s],index:s}});!Ys(n,o)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,o))}notifyPlugins(e,o,n){return this._plugins.notify(this,e,o,n)}isPluginEnabled(e){return this._plugins._cache.filter(o=>o.plugin.id===e).length===1}_updateHoverStyles(e,o,n){const r=this.options.hover,i=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),s=i(o,e),a=n?e:i(e,o);s.length&&this.updateHoverStyle(s,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,o){const n={event:e,replay:o,cancelable:!0,inChartArea:this.isPointInArea(e)},r=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",n,r)===!1)return;const i=this._handleEvent(e,o,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,o,n){const{_active:r=[],options:i}=this,s=o,a=this._getActiveElements(e,r,n,s),l=DS(e),c=PP(e,this._lastEvent,n,l);n&&(this._lastEvent=null,Pe(i.onHover,[e,a,this],this),l&&Pe(i.onClick,[e,a,this],this));const u=!Ys(a,r);return(u||o)&&(this._active=a,this._updateHoverStyles(a,r,o)),this._lastEvent=c,u}_getActiveElements(e,o,n,r){if(e.type==="mouseout")return[];if(!n)return o;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}}j(No,"defaults",$e),j(No,"instances",vs),j(No,"overrides",Tn),j(No,"registry",Qt),j(No,"version",kP),j(No,"getChart",Xf);function Zf(){return ye(No.instances,t=>t._plugins.invalidate())}function RP(t,e,o){const{startAngle:n,pixelMargin:r,x:i,y:s,outerRadius:a,innerRadius:l}=e;let c=r/a;t.beginPath(),t.arc(i,s,a,n-c,o+c),l>r?(c=r/l,t.arc(i,s,l,o+c,n-c,!0)):t.arc(i,s,r,o+We,n-We),t.closePath(),t.clip()}function OP(t){return su(t,["outerStart","outerEnd","innerStart","innerEnd"])}function EP(t,e,o,n){const r=OP(t.options.borderRadius),i=(o-e)/2,s=Math.min(i,n*e/2),a=l=>{const c=(o-Math.min(i,l))*n/2;return Je(l,0,Math.min(i,c))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:Je(r.innerStart,0,s),innerEnd:Je(r.innerEnd,0,s)}}function Dn(t,e,o,n){return{x:o+t*Math.cos(e),y:n+t*Math.sin(e)}}function Qs(t,e,o,n,r,i){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+n+o-c,0),f=u>0?u+n+o+c:0;let h=0;const g=r-l;if(n){const q=u>0?u-n:0,I=d>0?d-n:0,U=(q+I)/2,W=U!==0?g*U/(U+n):g;h=(g-W)/2}const p=Math.max(.001,g*d-o/Me)/d,y=(g-p)/2,x=l+y+h,v=r-y-h,{outerStart:m,outerEnd:b,innerStart:_,innerEnd:C}=EP(e,f,d,v-x),S=d-m,T=d-b,P=x+m/S,O=v-b/T,B=f+_,E=f+C,N=x+_/B,X=v-C/E;if(t.beginPath(),i){const q=(P+O)/2;if(t.arc(s,a,d,P,q),t.arc(s,a,d,q,O),b>0){const oe=Dn(T,O,s,a);t.arc(oe.x,oe.y,b,O,v+We)}const I=Dn(E,v,s,a);if(t.lineTo(I.x,I.y),C>0){const oe=Dn(E,X,s,a);t.arc(oe.x,oe.y,C,v+We,X+Math.PI)}const U=(v-C/f+(x+_/f))/2;if(t.arc(s,a,f,v-C/f,U,!0),t.arc(s,a,f,U,x+_/f,!0),_>0){const oe=Dn(B,N,s,a);t.arc(oe.x,oe.y,_,N+Math.PI,x-We)}const W=Dn(S,x,s,a);if(t.lineTo(W.x,W.y),m>0){const oe=Dn(S,P,s,a);t.arc(oe.x,oe.y,m,x-We,P)}}else{t.moveTo(s,a);const q=Math.cos(P)*d+s,I=Math.sin(P)*d+a;t.lineTo(q,I);const U=Math.cos(O)*d+s,W=Math.sin(O)*d+a;t.lineTo(U,W)}t.closePath()}function MP(t,e,o,n,r){const{fullCircles:i,startAngle:s,circumference:a}=e;let l=e.endAngle;if(i){Qs(t,e,o,n,l,r);for(let c=0;c=Ee||p,x=_o(a,u+h,d+h);return y&&x}getCenterPoint(o){const{x:n,y:r,startAngle:i,endAngle:s,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],o),{offset:c,spacing:u}=this.options,d=(i+s)/2,f=(a+l+u+c)/2;return{x:n+Math.cos(d)*f,y:r+Math.sin(d)*f}}tooltipPosition(o){return this.getCenterPoint(o)}draw(o){const{options:n,circumference:r}=this,i=(n.offset||0)/4,s=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Ee?Math.floor(r/Ee):0,r===0||this.innerRadius<0||this.outerRadius<0)return;o.save();const l=(this.startAngle+this.endAngle)/2;o.translate(Math.cos(l)*i,Math.sin(l)*i);const c=1-Math.sin(Math.min(Me,r||0)),u=i*c;o.fillStyle=n.backgroundColor,o.strokeStyle=n.borderColor,MP(o,this,u,s,a),AP(o,this,u,s,a),o.restore()}}j(_r,"id","arc"),j(_r,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),j(_r,"defaultRoutes",{backgroundColor:"backgroundColor"}),j(_r,"descriptors",{_scriptable:!0,_indexable:o=>o!=="borderDash"});function a0(t,e,o=e){t.lineCap=ne(o.borderCapStyle,e.borderCapStyle),t.setLineDash(ne(o.borderDash,e.borderDash)),t.lineDashOffset=ne(o.borderDashOffset,e.borderDashOffset),t.lineJoin=ne(o.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ne(o.borderWidth,e.borderWidth),t.strokeStyle=ne(o.borderColor,e.borderColor)}function BP(t,e,o){t.lineTo(o.x,o.y)}function LP(t){return t.stepped?n5:t.tension||t.cubicInterpolationMode==="monotone"?r5:BP}function l0(t,e,o={}){const n=t.length,{start:r=0,end:i=n-1}=o,{start:s,end:a}=e,l=Math.max(r,s),c=Math.min(i,a),u=ra&&i>a;return{count:n,start:l,loop:e.loop,ilen:c(s+(c?a-b:b))%i,m=()=>{p!==y&&(t.lineTo(u,y),t.lineTo(u,p),t.lineTo(u,x))};for(l&&(h=r[v(0)],t.moveTo(h.x,h.y)),f=0;f<=a;++f){if(h=r[v(f)],h.skip)continue;const b=h.x,_=h.y,C=b|0;C===g?(_y&&(y=_),u=(d*u+b)/++d):(m(),t.lineTo(b,_),g=C,d=0,p=y=_),x=_}m()}function oc(t){const e=t.options,o=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!o?$P:DP}function IP(t){return t.stepped?$5:t.tension||t.cubicInterpolationMode==="monotone"?I5:hn}function NP(t,e,o,n){let r=e._path;r||(r=e._path=new Path2D,e.path(r,o,n)&&r.closePath()),a0(t,e.options),t.stroke(r)}function FP(t,e,o,n){const{segments:r,options:i}=e,s=oc(e);for(const a of r)a0(t,i,a.style),t.beginPath(),s(t,e,a,{start:o,end:o+n-1})&&t.closePath(),t.stroke()}const jP=typeof Path2D=="function";function HP(t,e,o,n){jP&&!e.options.segment?NP(t,e,o,n):FP(t,e,o,n)}class zo extends Oo{constructor(e){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,e&&Object.assign(this,e)}updateControlPoints(e,o){const n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;R5(this._points,n,e,r,o),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=z5(this,this.options.segment))}first(){const e=this.segments,o=this.points;return e.length&&o[e[0].start]}last(){const e=this.segments,o=this.points,n=e.length;return n&&o[e[n-1].end]}interpolate(e,o){const n=this.options,r=e[o],i=this.points,s=qm(this,{property:o,start:r,end:r});if(!s.length)return;const a=[],l=IP(n);let c,u;for(c=0,u=s.length;ce!=="borderDash"&&e!=="fill"});function Jf(t,e,o,n){const r=t.options,{[o]:i}=t.getProps([o],n);return Math.abs(e-i)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function u0(t){return nc[t%nc.length]}function d0(t){return Qf[t%Qf.length]}function qP(t,e){return t.borderColor=u0(e),t.backgroundColor=d0(e),++e}function GP(t,e){return t.backgroundColor=t.data.map(()=>u0(e++)),e}function XP(t,e){return t.backgroundColor=t.data.map(()=>d0(e++)),e}function ZP(t){let e=0;return(o,n)=>{const r=t.getDatasetMeta(n).controller;r instanceof bn?e=GP(o,e):r instanceof Hr?e=XP(o,e):r&&(e=qP(o,e))}}function eh(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function JP(t){return t&&(t.borderColor||t.backgroundColor)}function QP(){return $e.borderColor!=="rgba(0,0,0,0.1)"||$e.backgroundColor!=="rgba(0,0,0,0.1)"}var eT={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,o){if(!o.enabled)return;const{data:{datasets:n},options:r}=t.config,{elements:i}=r,s=eh(n)||JP(r)||i&&eh(i)||QP();if(!o.forceOverride&&s)return;const a=ZP(t);n.forEach(a)}};function tT(t,e,o,n,r){const i=r.samples||n;if(i>=o)return t.slice(e,e+o);const s=[],a=(o-2)/(i-2);let l=0;const c=e+o-1;let u=e,d,f,h,g,p;for(s[l++]=t[u],d=0;dh&&(h=g,f=t[v],p=v);s[l++]=f,u=p}return s[l++]=t[c],s}function oT(t,e,o,n){let r=0,i=0,s,a,l,c,u,d,f,h,g,p;const y=[],x=e+o-1,v=t[e].x,b=t[x].x-v;for(s=e;sp&&(p=c,f=s),r=(i*r+a.x)/++i;else{const C=s-1;if(!de(d)&&!de(f)){const S=Math.min(d,f),T=Math.max(d,f);S!==h&&S!==C&&y.push({...t[S],x:r}),T!==h&&T!==C&&y.push({...t[T],x:r})}s>0&&C!==h&&y.push(t[C]),y.push(a),u=_,i=0,g=p=c,d=f=h=s}}return y}function f0(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function th(t){t.data.datasets.forEach(e=>{f0(e)})}function nT(t,e){const o=e.length;let n=0,r;const{iScale:i}=t,{min:s,max:a,minDefined:l,maxDefined:c}=i.getUserBounds();return l&&(n=Je(ko(e,i.axis,s).lo,0,o-1)),c?r=Je(ko(e,i.axis,a).hi+1,n,o)-n:r=o-n,{start:n,count:r}}var rT={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,o)=>{if(!o.enabled){th(t);return}const n=t.width;t.data.datasets.forEach((r,i)=>{const{_data:s,indexAxis:a}=r,l=t.getDatasetMeta(i),c=s||r.data;if(vr([a,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||t.options.parsing)return;let{start:d,count:f}=nT(l,c);const h=o.threshold||4*n;if(f<=h){f0(r);return}de(s)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(p){this._data=p}}));let g;switch(o.algorithm){case"lttb":g=tT(c,d,f,n,o);break;case"min-max":g=oT(c,d,f,n);break;default:throw new Error(`Unsupported decimation algorithm '${o.algorithm}'`)}r._decimated=g})},destroy(t){th(t)}};function iT(t,e,o){const n=t.segments,r=t.points,i=e.points,s=[];for(const a of n){let{start:l,end:c}=a;c=hu(l,c,r);const u=rc(o,r[l],r[c],a.loop);if(!e.segments){s.push({source:a,target:u,start:r[l],end:r[c]});continue}const d=qm(e,u);for(const f of d){const h=rc(o,i[f.start],i[f.end],f.loop),g=Ym(a,r,h);for(const p of g)s.push({source:p,target:f,start:{[o]:oh(u,h,"start",Math.max)},end:{[o]:oh(u,h,"end",Math.min)}})}}return s}function rc(t,e,o,n){if(n)return;let r=e[t],i=o[t];return t==="angle"&&(r=Pt(r),i=Pt(i)),{property:t,start:r,end:i}}function sT(t,e){const{x:o=null,y:n=null}=t||{},r=e.points,i=[];return e.segments.forEach(({start:s,end:a})=>{a=hu(s,a,r);const l=r[s],c=r[a];n!==null?(i.push({x:l.x,y:n}),i.push({x:c.x,y:n})):o!==null&&(i.push({x:o,y:l.y}),i.push({x:o,y:c.y}))}),i}function hu(t,e,o){for(;e>t;e--){const n=o[e];if(!isNaN(n.x)&&!isNaN(n.y))break}return e}function oh(t,e,o,n){return t&&e?n(t[o],e[o]):t?t[o]:e?e[o]:0}function h0(t,e){let o=[],n=!1;return De(t)?(n=!0,o=t):o=sT(t,e),o.length?new zo({points:o,options:{tension:0},_loop:n,_fullLoop:n}):null}function nh(t){return t&&t.fill!==!1}function aT(t,e,o){let r=t[e].fill;const i=[e];let s;if(!o)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!je(r))return r;if(s=t[r],!s)return!1;if(s.visible)return r;i.push(r),r=s.fill}return!1}function lT(t,e,o){const n=fT(t);if(ae(n))return isNaN(n.value)?!1:n;let r=parseFloat(n);return je(r)&&Math.floor(r)===r?cT(n[0],e,r,o):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function cT(t,e,o,n){return(t==="-"||t==="+")&&(o=e+o),o===e||o<0||o>=n?!1:o}function uT(t,e){let o=null;return t==="start"?o=e.bottom:t==="end"?o=e.top:ae(t)?o=e.getPixelForValue(t.value):e.getBasePixel&&(o=e.getBasePixel()),o}function dT(t,e,o){let n;return t==="start"?n=o:t==="end"?n=e.options.reverse?e.min:e.max:ae(t)?n=t.value:n=e.getBaseValue(),n}function fT(t){const e=t.options,o=e.fill;let n=ne(o&&o.target,o);return n===void 0&&(n=!!e.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function hT(t){const{scale:e,index:o,line:n}=t,r=[],i=n.segments,s=n.points,a=gT(e,o);a.push(h0({x:null,y:e.bottom},n));for(let l=0;l=0;--s){const a=r[s].$filler;a&&(a.line.updateControlPoints(i,a.axis),n&&a.fill&&cl(t.ctx,a,i))}},beforeDatasetsDraw(t,e,o){if(o.drawTime!=="beforeDatasetsDraw")return;const n=t.getSortedVisibleDatasetMetas();for(let r=n.length-1;r>=0;--r){const i=n[r].$filler;nh(i)&&cl(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,o){const n=e.meta.$filler;!nh(n)||o.drawTime!=="beforeDatasetDraw"||cl(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ah=(t,e)=>{let{boxHeight:o=e,boxWidth:n=e}=t;return t.usePointStyle&&(o=Math.min(o,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:o,itemHeight:Math.max(e,o)}},ST=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class lh extends Oo{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.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(e,o,n){this.maxWidth=e,this.maxHeight=o,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 e=this.options.labels||{};let o=Pe(e.generateLabels,[this.chart],this)||[];e.filter&&(o=o.filter(n=>e.filter(n,this.chart.data))),e.sort&&(o=o.sort((n,r)=>e.sort(n,r,this.chart.data))),this.options.reverse&&o.reverse(),this.legendItems=o}fit(){const{options:e,ctx:o}=this;if(!e.display){this.width=this.height=0;return}const n=e.labels,r=Ge(n.font),i=r.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=ah(n,i);let c,u;o.font=r.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(s,i,a,l)+10):(u=this.maxHeight,c=this._fitCols(s,r,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,o,n,r){const{ctx:i,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=r+a;let d=e;i.textAlign="left",i.textBaseline="middle";let f=-1,h=-u;return this.legendItems.forEach((g,p)=>{const y=n+o/2+i.measureText(g.text).width;(p===0||c[c.length-1]+y+2*a>s)&&(d+=u,c[c.length-(p>0?0:1)]=0,h+=u,f++),l[p]={left:0,top:h,row:f,width:y,height:r},c[c.length-1]+=y+a}),d}_fitCols(e,o,n,r){const{ctx:i,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=s-e;let d=a,f=0,h=0,g=0,p=0;return this.legendItems.forEach((y,x)=>{const{itemWidth:v,itemHeight:m}=PT(n,o,i,y,r);x>0&&h+m+2*a>u&&(d+=f+a,c.push({width:f,height:h}),g+=f+a,p++,f=h=0),l[x]={left:g,top:h,col:p,width:v,height:m},f=Math.max(f,v),h+=m+a}),d+=f,c.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:o,options:{align:n,labels:{padding:r},rtl:i}}=this,s=Gn(i,this.left,this.width);if(this.isHorizontal()){let a=0,l=rt(n,this.left+r,this.right-this.lineWidths[a]);for(const c of o)a!==c.row&&(a=c.row,l=rt(n,this.left+r,this.right-this.lineWidths[a])),c.top+=this.top+e+r,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+r}else{let a=0,l=rt(n,this.top+e+r,this.bottom-this.columnSizes[a].height);for(const c of o)c.col!==a&&(a=c.col,l=rt(n,this.top+e+r,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+r,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;wa(e,this),this._draw(),Ca(e)}}_draw(){const{options:e,columnSizes:o,lineWidths:n,ctx:r}=this,{align:i,labels:s}=e,a=$e.color,l=Gn(e.rtl,this.left,this.width),c=Ge(s.font),{padding:u}=s,d=c.size,f=d/2;let h;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;const{boxWidth:g,boxHeight:p,itemHeight:y}=ah(s,d),x=function(C,S,T){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;r.save();const P=ne(T.lineWidth,1);if(r.fillStyle=ne(T.fillStyle,a),r.lineCap=ne(T.lineCap,"butt"),r.lineDashOffset=ne(T.lineDashOffset,0),r.lineJoin=ne(T.lineJoin,"miter"),r.lineWidth=P,r.strokeStyle=ne(T.strokeStyle,a),r.setLineDash(ne(T.lineDash,[])),s.usePointStyle){const O={radius:p*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:P},B=l.xPlus(C,g/2),E=S+f;$m(r,O,B,E,s.pointStyleWidth&&g)}else{const O=S+Math.max((d-p)/2,0),B=l.leftForLtr(C,g),E=wn(T.borderRadius);r.beginPath(),Object.values(E).some(N=>N!==0)?ii(r,{x:B,y:O,w:g,h:p,radius:E}):r.rect(B,O,g,p),r.fill(),P!==0&&r.stroke()}r.restore()},v=function(C,S,T){Rn(r,T.text,C,S+y/2,c,{strikethrough:T.hidden,textAlign:l.textAlign(T.textAlign)})},m=this.isHorizontal(),b=this._computeTitleHeight();m?h={x:rt(i,this.left+u,this.right-n[0]),y:this.top+u+b,line:0}:h={x:this.left+u,y:rt(i,this.top+b+u,this.bottom-o[0].height),line:0},Vm(this.ctx,e.textDirection);const _=y+u;this.legendItems.forEach((C,S)=>{r.strokeStyle=C.fontColor,r.fillStyle=C.fontColor;const T=r.measureText(C.text).width,P=l.textAlign(C.textAlign||(C.textAlign=s.textAlign)),O=g+f+T;let B=h.x,E=h.y;l.setWidth(this.width),m?S>0&&B+O+u>this.right&&(E=h.y+=_,h.line++,B=h.x=rt(i,this.left+u,this.right-n[h.line])):S>0&&E+_>this.bottom&&(B=h.x=B+o[h.line].width+u,h.line++,E=h.y=rt(i,this.top+b+u,this.bottom-o[h.line].height));const N=l.x(B);if(x(N,E,C),B=KS(P,B+g+f,m?B+O:this.right,e.rtl),v(l.x(B),E,C),m)h.x+=O+u;else if(typeof C.text!="string"){const X=c.lineHeight;h.y+=p0(C,X)+u}else h.y+=_}),Um(this.ctx,e.textDirection)}drawTitle(){const e=this.options,o=e.title,n=Ge(o.font),r=ct(o.padding);if(!o.display)return;const i=Gn(e.rtl,this.left,this.width),s=this.ctx,a=o.position,l=n.size/2,c=r.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=rt(e.align,d,this.right-f);else{const g=this.columnSizes.reduce((p,y)=>Math.max(p,y.height),0);u=c+rt(e.align,this.top,this.bottom-g-e.labels.padding-this._computeTitleHeight())}const h=rt(a,d,d+f);s.textAlign=i.textAlign(ru(a)),s.textBaseline="middle",s.strokeStyle=o.color,s.fillStyle=o.color,s.font=n.string,Rn(s,o.text,h,u,n)}_computeTitleHeight(){const e=this.options.title,o=Ge(e.font),n=ct(e.padding);return e.display?o.lineHeight+n.height:0}_getLegendItemAt(e,o){let n,r,i;if(_o(e,this.left,this.right)&&_o(o,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;ni.length>s.length?i:s)),e+o.size/2+n.measureText(r).width}function RT(t,e,o){let n=t;return typeof e.text!="string"&&(n=p0(e,o)),n}function p0(t,e){const o=t.text?t.text.length:0;return e*o}function OT(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var ET={id:"legend",_element:lh,start(t,e,o){const n=t.legend=new lh({ctx:t.ctx,options:o,chart:t});lt.configure(t,n,o),lt.addBox(t,n)},stop(t){lt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,o){const n=t.legend;lt.configure(t,n,o),n.options=o},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,o){const n=e.datasetIndex,r=o.chart;r.isDatasetVisible(n)?(r.hide(n),e.hidden=!0):(r.show(n),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:o,pointStyle:n,textAlign:r,color:i,useBorderRadius:s,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(o?0:void 0),u=ct(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.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 gu extends Oo{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.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(e,o){const n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=o;const r=De(n.text)?n.text.length:1;this._padding=ct(n.padding);const i=r*Ge(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:o,left:n,bottom:r,right:i,options:s}=this,a=s.align;let l=0,c,u,d;return this.isHorizontal()?(u=rt(a,n,i),d=o+e,c=i-n):(s.position==="left"?(u=n+e,d=rt(a,r,o),l=Me*-.5):(u=i-e,d=rt(a,o,r),l=Me*.5),c=r-o),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,o=this.options;if(!o.display)return;const n=Ge(o.font),i=n.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(i);Rn(e,o.text,0,0,n,{color:o.color,maxWidth:l,rotation:c,textAlign:ru(o.align),textBaseline:"middle",translation:[s,a]})}}function MT(t,e){const o=new gu({ctx:t.ctx,options:e,chart:t});lt.configure(t,o,e),lt.addBox(t,o),t.titleBlock=o}var AT={id:"title",_element:gu,start(t,e,o){MT(t,o)},stop(t){const e=t.titleBlock;lt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,o){const n=t.titleBlock;lt.configure(t,n,o),n.options=o},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}};const Qi=new WeakMap;var BT={id:"subtitle",start(t,e,o){const n=new gu({ctx:t.ctx,options:o,chart:t});lt.configure(t,n,o),lt.addBox(t,n),Qi.set(t,n)},stop(t){lt.removeBox(t,Qi.get(t)),Qi.delete(t)},beforeUpdate(t,e,o){const n=Qi.get(t);lt.configure(t,n,o),n.options=o},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const kr={average(t){if(!t.length)return!1;let e,o,n=new Set,r=0,i=0;for(e=0,o=t.length;ea+l)/n.size,y:r/i}},nearest(t,e){if(!t.length)return!1;let o=e.x,n=e.y,r=Number.POSITIVE_INFINITY,i,s,a;for(i=0,s=t.length;i-1?t.split(` `):t}function LT(t,e){const{element:o,datasetIndex:n,index:r}=e,i=t.getDatasetMeta(n).controller,{label:s,value:a}=i.getLabelAndValue(r);return{chart:t,label:s,parsed:i.getParsed(r),raw:t.data.datasets[n].data[r],formattedValue:a,dataset:i.getDataset(),dataIndex:r,datasetIndex:n,element:o}}function ch(t,e){const o=t.chart.ctx,{body:n,footer:r,title:i}=t,{boxWidth:s,boxHeight:a}=e,l=Ge(e.bodyFont),c=Ge(e.titleFont),u=Ge(e.footerFont),d=i.length,f=r.length,h=n.length,g=ct(e.padding);let p=g.height,y=0,x=n.reduce((b,_)=>b+_.before.length+_.lines.length+_.after.length,0);if(x+=t.beforeBody.length+t.afterBody.length,d&&(p+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),x){const b=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;p+=h*b+(x-h)*l.lineHeight+(x-1)*e.bodySpacing}f&&(p+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let v=0;const m=function(b){y=Math.max(y,o.measureText(b).width+v)};return o.save(),o.font=c.string,ye(t.title,m),o.font=l.string,ye(t.beforeBody.concat(t.afterBody),m),v=e.displayColors?s+2+e.boxPadding:0,ye(n,b=>{ye(b.before,m),ye(b.lines,m),ye(b.after,m)}),v=0,o.font=u.string,ye(t.footer,m),o.restore(),y+=g.width,{width:y,height:p}}function DT(t,e){const{y:o,height:n}=e;return ot.height-n/2?"bottom":"center"}function $T(t,e,o,n){const{x:r,width:i}=n,s=o.caretSize+o.caretPadding;if(t==="left"&&r+i+s>e.width||t==="right"&&r-i-s<0)return!0}function IT(t,e,o,n){const{x:r,width:i}=o,{width:s,chartArea:{left:a,right:l}}=t;let c="center";return n==="center"?c=r<=(a+l)/2?"left":"right":r<=i/2?c="left":r>=s-i/2&&(c="right"),$T(c,t,e,o)&&(c="center"),c}function uh(t,e,o){const n=o.yAlign||e.yAlign||DT(t,o);return{xAlign:o.xAlign||e.xAlign||IT(t,e,o,n),yAlign:n}}function NT(t,e){let{x:o,width:n}=t;return e==="right"?o-=n:e==="center"&&(o-=n/2),o}function FT(t,e,o){let{y:n,height:r}=t;return e==="top"?n+=o:e==="bottom"?n-=r+o:n-=r/2,n}function dh(t,e,o,n){const{caretSize:r,caretPadding:i,cornerRadius:s}=t,{xAlign:a,yAlign:l}=o,c=r+i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=wn(s);let g=NT(e,a);const p=FT(e,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(u,f)+r:a==="right"&&(g+=Math.max(d,h)+r),{x:Je(g,0,n.width-e.width),y:Je(p,0,n.height-e.height)}}function es(t,e,o){const n=ct(o.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-n.right:t.x+n.left}function fh(t){return Zt([],ho(t))}function jT(t,e,o){return tn(t,{tooltip:e,tooltipItems:o,type:"tooltip"})}function hh(t,e){const o=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return o?t.override(o):t}const m0={beforeTitle:co,title(t){if(t.length>0){const e=t[0],o=e.chart.data.labels,n=o?o.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex"u"?m0[e].call(o,n):r}class ic extends Oo{constructor(e){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=e.chart,this.options=e.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(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const o=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&o.options.animation&&n.animations,i=new Gm(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=jT(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,o){const{callbacks:n}=o,r=pt(n,"beforeTitle",this,e),i=pt(n,"title",this,e),s=pt(n,"afterTitle",this,e);let a=[];return a=Zt(a,ho(r)),a=Zt(a,ho(i)),a=Zt(a,ho(s)),a}getBeforeBody(e,o){return fh(pt(o.callbacks,"beforeBody",this,e))}getBody(e,o){const{callbacks:n}=o,r=[];return ye(e,i=>{const s={before:[],lines:[],after:[]},a=hh(n,i);Zt(s.before,ho(pt(a,"beforeLabel",this,i))),Zt(s.lines,pt(a,"label",this,i)),Zt(s.after,ho(pt(a,"afterLabel",this,i))),r.push(s)}),r}getAfterBody(e,o){return fh(pt(o.callbacks,"afterBody",this,e))}getFooter(e,o){const{callbacks:n}=o,r=pt(n,"beforeFooter",this,e),i=pt(n,"footer",this,e),s=pt(n,"afterFooter",this,e);let a=[];return a=Zt(a,ho(r)),a=Zt(a,ho(i)),a=Zt(a,ho(s)),a}_createItems(e){const o=this._active,n=this.chart.data,r=[],i=[],s=[];let a=[],l,c;for(l=0,c=o.length;le.filter(u,d,f,n))),e.itemSort&&(a=a.sort((u,d)=>e.itemSort(u,d,n))),ye(a,u=>{const d=hh(e.callbacks,u);r.push(pt(d,"labelColor",this,u)),i.push(pt(d,"labelPointStyle",this,u)),s.push(pt(d,"labelTextColor",this,u))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=a,a}update(e,o){const n=this.options.setContext(this.getContext()),r=this._active;let i,s=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{const a=kr[n.position].call(this,r,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);const l=this._size=ch(this,n),c=Object.assign({},a,l),u=uh(this.chart,n,c),d=dh(n,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:o})}drawCaret(e,o,n,r){const i=this.getCaretPosition(e,n,r);o.lineTo(i.x1,i.y1),o.lineTo(i.x2,i.y2),o.lineTo(i.x3,i.y3)}getCaretPosition(e,o,n){const{xAlign:r,yAlign:i}=this,{caretSize:s,cornerRadius:a}=n,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=wn(a),{x:f,y:h}=e,{width:g,height:p}=o;let y,x,v,m,b,_;return i==="center"?(b=h+p/2,r==="left"?(y=f,x=y-s,m=b+s,_=b-s):(y=f+g,x=y+s,m=b-s,_=b+s),v=y):(r==="left"?x=f+Math.max(l,u)+s:r==="right"?x=f+g-Math.max(c,d)-s:x=this.caretX,i==="top"?(m=h,b=m-s,y=x-s,v=x+s):(m=h+p,b=m+s,y=x+s,v=x-s),_=m),{x1:y,x2:x,x3:v,y1:m,y2:b,y3:_}}drawTitle(e,o,n){const r=this.title,i=r.length;let s,a,l;if(i){const c=Gn(n.rtl,this.x,this.width);for(e.x=es(this,n.titleAlign,n),o.textAlign=c.textAlign(n.titleAlign),o.textBaseline="middle",s=Ge(n.titleFont),a=n.titleSpacing,o.fillStyle=n.titleColor,o.font=s.string,l=0;lv!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,ii(e,{x:p,y:g,w:c,h:l,radius:x}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),ii(e,{x:y,y:g+1,w:c-2,h:l-2,radius:x}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(p,g,c,l),e.strokeRect(p,g,c,l),e.fillStyle=s.backgroundColor,e.fillRect(y,g+1,c-2,l-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,o,n){const{body:r}=this,{bodySpacing:i,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=n,d=Ge(n.bodyFont);let f=d.lineHeight,h=0;const g=Gn(n.rtl,this.x,this.width),p=function(T){o.fillText(T,g.x(e.x+h),e.y+f/2),e.y+=f+i},y=g.textAlign(s);let x,v,m,b,_,C,S;for(o.textAlign=s,o.textBaseline="middle",o.font=d.string,e.x=es(this,y,n),o.fillStyle=n.bodyColor,ye(this.beforeBody,p),h=a&&y!=="right"?s==="center"?c/2+u:c+2+u:0,b=0,C=r.length;b0&&o.stroke()}_updateAnimationTarget(e){const o=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){const s=kr[e.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=ch(this,e),l=Object.assign({},s,this._size),c=uh(o,e,l),u=dh(e,l,c,o);(r._to!==u.x||i._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const o=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(o);const r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=ct(o.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;o.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,o),Vm(e,o.textDirection),i.y+=s.top,this.drawTitle(i,e,o),this.drawBody(i,e,o),this.drawFooter(i,e,o),Um(e,o.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,o){const n=this._active,r=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),i=!Ys(n,r),s=this._positionChanged(r,o);(i||s)&&(this._active=r,this._eventPosition=o,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,o,n=!0){if(o&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,i=this._active||[],s=this._getActiveElements(e,i,o,n),a=this._positionChanged(s,e),l=o||!Ys(s,i)||a;return l&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,o))),l}_getActiveElements(e,o,n,r){const i=this.options;if(e.type==="mouseout")return[];if(!r)return o.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const s=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&s.reverse(),s}_positionChanged(e,o){const{caretX:n,caretY:r,options:i}=this,s=kr[i.position].call(this,e,o);return s!==!1&&(n!==s.x||r!==s.y)}}j(ic,"positioners",kr);var HT={id:"tooltip",_element:ic,positioners:kr,afterInit(t,e,o){o&&(t.tooltip=new ic({chart:t,options:o}))},beforeUpdate(t,e,o){t.tooltip&&t.tooltip.initialize(o)},reset(t,e,o){t.tooltip&&t.tooltip.initialize(o)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const o={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...o,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",o)}},afterEvent(t,e){if(t.tooltip){const o=e.replay;t.tooltip.handleEvent(e.event,o,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:m0},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},WT=Object.freeze({__proto__:null,Colors:eT,Decimation:rT,Filler:CT,Legend:ET,SubTitle:BT,Title:AT,Tooltip:HT});const zT=(t,e,o,n)=>(typeof e=="string"?(o=t.push(e)-1,n.unshift({index:o,label:e})):isNaN(e)&&(o=null),o);function VT(t,e,o,n){const r=t.indexOf(e);if(r===-1)return zT(t,e,o,n);const i=t.lastIndexOf(e);return r!==i?o:r}const UT=(t,e)=>t===null?null:Je(Math.round(t),0,e);function gh(t){const e=this.getLabels();return t>=0&&to.length-1?null:this.getPixelForValue(o[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}j(sc,"id","category"),j(sc,"defaults",{ticks:{callback:gh}});function KT(t,e){const o=[],{bounds:r,step:i,min:s,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=t,h=i||1,g=u-1,{min:p,max:y}=e,x=!de(s),v=!de(a),m=!de(c),b=(y-p)/(d+1);let _=cf((y-p)/g/h)*h,C,S,T,P;if(_<1e-14&&!x&&!v)return[{value:p},{value:y}];P=Math.ceil(y/_)-Math.floor(p/_),P>g&&(_=cf(P*_/g/h)*h),de(l)||(C=Math.pow(10,l),_=Math.ceil(_*C)/C),r==="ticks"?(S=Math.floor(p/_)*_,T=Math.ceil(y/_)*_):(S=p,T=y),x&&v&&i&&FS((a-s)/i,_/1e3)?(P=Math.round(Math.min((a-s)/_,u)),_=(a-s)/P,S=s,T=a):m?(S=x?s:S,T=v?a:T,P=c-1,_=(T-S)/P):(P=(T-S)/_,Nr(P,Math.round(P),_/1e3)?P=Math.round(P):P=Math.ceil(P));const O=Math.max(uf(_),uf(S));C=Math.pow(10,de(l)?O:l),S=Math.round(S*C)/C,T=Math.round(T*C)/C;let B=0;for(x&&(f&&S!==s?(o.push({value:s}),Sa)break;o.push({value:E})}return v&&f&&T!==a?o.length&&Nr(o[o.length-1].value,a,ph(a,b,t))?o[o.length-1].value=a:o.push({value:a}):(!v||T===a)&&o.push({value:T}),o}function ph(t,e,{horizontal:o,minRotation:n}){const r=Ut(n),i=(o?Math.sin(r):Math.cos(r))||.001,s=.75*e*(""+t).length;return Math.min(e/i,s)}class ea extends Mn{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,o){return de(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:o,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this;const s=l=>r=o?r:l,a=l=>i=n?i:l;if(e){const l=oo(r),c=oo(i);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(r===i){let l=i===0?1:Math.abs(i*.05);a(i+l),e||s(r-l)}this.min=r,this.max=i}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:o,stepSize:n}=e,r;return n?(r=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),o=o||11),o&&(r=Math.min(o,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,o=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r={maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:o.precision,step:o.stepSize,count:o.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:o.minRotation||0,includeBounds:o.includeBounds!==!1},i=this._range||this,s=KT(r,i);return e.bounds==="ticks"&&Tm(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let o=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const r=(n-o)/Math.max(e.length-1,1)/2;o-=r,n+=r}this._startValue=o,this._endValue=n,this._valueRange=n-o}getLabelForValue(e){return Si(e,this.chart.options.locale,this.options.ticks.format)}}class ac extends ea{determineDataLimits(){const{min:e,max:o}=this.getMinMax(!0);this.min=je(e)?e:0,this.max=je(o)?o:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),o=e?this.width:this.height,n=Ut(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(o/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}j(ac,"id","linear"),j(ac,"defaults",{ticks:{callback:ka.formatters.numeric}});const ai=t=>Math.floor(Wo(t)),cn=(t,e)=>Math.pow(10,ai(t)+e);function mh(t){return t/Math.pow(10,ai(t))===1}function bh(t,e,o){const n=Math.pow(10,o),r=Math.floor(t/n);return Math.ceil(e/n)-r}function YT(t,e){const o=e-t;let n=ai(o);for(;bh(t,e,n)>10;)n++;for(;bh(t,e,n)<10;)n--;return Math.min(n,ai(t))}function qT(t,{min:e,max:o}){e=St(t.min,e);const n=[],r=ai(e);let i=YT(e,o),s=i<0?Math.pow(10,Math.abs(i)):1;const a=Math.pow(10,i),l=r>i?Math.pow(10,r):0,c=Math.round((e-l)*s)/s,u=Math.floor((e-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,i)),f=St(t.min,Math.round((l+u+d*Math.pow(10,i))*s)/s);for(;f=10?d=d<15?15:20:d++,d>=20&&(i++,d=2,s=i>=0?1:s),f=Math.round((l+u+d*Math.pow(10,i))*s)/s;const h=St(t.max,f);return n.push({value:h,major:mh(h),significand:d}),n}class lc extends Mn{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,o){const n=ea.prototype.parse.apply(this,[e,o]);if(n===0){this._zero=!0;return}return je(n)&&n>0?n:null}determineDataLimits(){const{min:e,max:o}=this.getMinMax(!0);this.min=je(e)?Math.max(0,e):null,this.max=je(o)?Math.max(0,o):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!je(this._userMin)&&(this.min=e===cn(this.min,0)?cn(this.min,-1):cn(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:o}=this.getUserBounds();let n=this.min,r=this.max;const i=a=>n=e?n:a,s=a=>r=o?r:a;n===r&&(n<=0?(i(1),s(10)):(i(cn(n,-1)),s(cn(r,1)))),n<=0&&i(cn(r,-1)),r<=0&&s(cn(n,1)),this.min=n,this.max=r}buildTicks(){const e=this.options,o={min:this._userMin,max:this._userMax},n=qT(o,this);return e.bounds==="ticks"&&Tm(n,this,"value"),e.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(e){return e===void 0?"0":Si(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Wo(e),this._valueRange=Wo(this.max)-Wo(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Wo(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const o=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+o*this._valueRange)}}j(lc,"id","logarithmic"),j(lc,"defaults",{ticks:{callback:ka.formatters.logarithmic,major:{enabled:!0}}});function cc(t){const e=t.ticks;if(e.display&&t.display){const o=ct(e.backdropPadding);return ne(e.font&&e.font.size,$e.font.size)+o.height}return 0}function GT(t,e,o){return o=De(o)?o:[o],{w:o5(t,e.string,o),h:o.length*e.lineHeight}}function yh(t,e,o,n,r){return t===n||t===r?{start:e-o/2,end:e+o/2}:tr?{start:e-o,end:e}:{start:e,end:e+o}}function XT(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},o=Object.assign({},e),n=[],r=[],i=t._pointLabels.length,s=t.options.pointLabels,a=s.centerPointLabels?Me/i:0;for(let l=0;le.r&&(a=(n.end-e.r)/i,t.r=Math.max(t.r,e.r+a)),r.starte.b&&(l=(r.end-e.b)/s,t.b=Math.max(t.b,e.b+l))}function JT(t,e,o){const n=t.drawingArea,{extra:r,additionalAngle:i,padding:s,size:a}=o,l=t.getPointPosition(e,n+r+s,i),c=Math.round(ou(Pt(l.angle+We))),u=nR(l.y,a.h,c),d=tR(c),f=oR(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+a.w,bottom:u+a.h}}function QT(t,e){if(!e)return!0;const{left:o,top:n,right:r,bottom:i}=t;return!(wo({x:o,y:n},e)||wo({x:o,y:i},e)||wo({x:r,y:n},e)||wo({x:r,y:i},e))}function eR(t,e,o){const n=[],r=t._pointLabels.length,i=t.options,{centerPointLabels:s,display:a}=i.pointLabels,l={extra:cc(i)/2,additionalAngle:s?Me/r:0};let c;for(let u=0;u270||o<90)&&(t-=e),t}function rR(t,e,o){const{left:n,top:r,right:i,bottom:s}=o,{backdropColor:a}=e;if(!de(a)){const l=wn(e.borderRadius),c=ct(e.backdropPadding);t.fillStyle=a;const u=n-c.left,d=r-c.top,f=i-n+c.width,h=s-r+c.height;Object.values(l).some(g=>g!==0)?(t.beginPath(),ii(t,{x:u,y:d,w:f,h,radius:l}),t.fill()):t.fillRect(u,d,f,h)}}function iR(t,e){const{ctx:o,options:{pointLabels:n}}=t;for(let r=e-1;r>=0;r--){const i=t._pointLabelItems[r];if(!i.visible)continue;const s=n.setContext(t.getPointLabelContext(r));rR(o,s,i);const a=Ge(s.font),{x:l,y:c,textAlign:u}=i;Rn(o,t._pointLabels[r],l,c+a.lineHeight/2,a,{color:s.color,textAlign:u,textBaseline:"middle"})}}function b0(t,e,o,n){const{ctx:r}=t;if(o)r.arc(t.xCenter,t.yCenter,e,0,Ee);else{let i=t.getPointPosition(0,e);r.moveTo(i.x,i.y);for(let s=1;s{const r=Pe(this.options.pointLabels.callback,[o,n],this);return r||r===0?r:""}).filter((o,n)=>this.chart.getDataVisibility(n))}fit(){const e=this.options;e.display&&e.pointLabels.display?XT(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,o,n,r){this.xCenter+=Math.floor((e-o)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,o,n,r))}getIndexAngle(e){const o=Ee/(this._pointLabels.length||1),n=this.options.startAngle||0;return Pt(e*o+Ut(n))}getDistanceFromCenterForValue(e){if(de(e))return NaN;const o=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*o:(e-this.min)*o}getValueForDistanceFromCenter(e){if(de(e))return NaN;const o=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-o:this.min+o}getPointLabelContext(e){const o=this._pointLabels||[];if(e>=0&&e{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),h=r.setContext(f),g=i.setContext(f);sR(this,h,l,s,g)}}),n.display){for(e.save(),a=s-1;a>=0;a--){const u=n.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(e.lineWidth=f,e.strokeStyle=d,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(o.reverse?this.min:this.max),c=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,o=this.options,n=o.ticks;if(!n.display)return;const r=this.getIndexAngle(0);let i,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!o.reverse)return;const c=n.setContext(this.getContext(l)),u=Ge(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){e.font=u.string,s=e.measureText(a.label).width,e.fillStyle=c.backdropColor;const d=ct(c.backdropPadding);e.fillRect(-s/2-d.left,-i-u.size/2-d.top,s+d.width,u.size+d.height)}Rn(e,a.label,0,-i,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),e.restore()}drawTitle(){}}j(wr,"id","radialLinear"),j(wr,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ka.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),j(wr,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),j(wr,"descriptors",{angleLines:{_fallback:"grid"}});const Pa={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}},bt=Object.keys(Pa);function vh(t,e){return t-e}function xh(t,e){if(de(e))return null;const o=t._adapter,{parser:n,round:r,isoWeekday:i}=t._parseOpts;let s=e;return typeof n=="function"&&(s=n(s)),je(s)||(s=typeof n=="string"?o.parse(s,n):o.parse(s)),s===null?null:(r&&(s=r==="week"&&(er(i)||i===!0)?o.startOf(s,"isoWeek",i):o.startOf(s,r)),+s)}function _h(t,e,o,n){const r=bt.length;for(let i=bt.indexOf(t);i=bt.indexOf(o);i--){const s=bt[i];if(Pa[s].common&&t._adapter.diff(r,n,s)>=e-1)return s}return bt[o?bt.indexOf(o):0]}function cR(t){for(let e=bt.indexOf(t)+1,o=bt.length;e=e?o[n]:o[r];t[i]=!0}}function uR(t,e,o,n){const r=t._adapter,i=+r.startOf(e[0].value,n),s=e[e.length-1].value;let a,l;for(a=i;a<=s;a=+r.add(a,1,n))l=o[a],l>=0&&(e[l].major=!0);return e}function wh(t,e,o){const n=[],r={},i=e.length;let s,a;for(s=0;s+e.value))}initOffsets(e=[]){let o=0,n=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),e.length===1?o=1-r:o=(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?n=i:n=(i-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;o=Je(o,0,s),n=Je(n,0,s),this._offsets={start:o,end:n,factor:1/(o+1+n)}}_generate(){const e=this._adapter,o=this.min,n=this.max,r=this.options,i=r.time,s=i.unit||_h(i.minUnit,o,n,this._getLabelCapacity(o)),a=ne(r.ticks.stepSize,1),l=s==="week"?i.isoWeekday:!1,c=er(l)||l===!0,u={};let d=o,f,h;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":s),e.diff(n,o,s)>1e5*a)throw new Error(o+" and "+n+" are too far apart with stepSize of "+a+" "+s);const g=r.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f+p)}getLabelForValue(e){const o=this._adapter,n=this.options.time;return n.tooltipFormat?o.format(e,n.tooltipFormat):o.format(e,n.displayFormats.datetime)}format(e,o){const r=this.options.time.displayFormats,i=this._unit,s=o||r[i];return this._adapter.format(e,s)}_tickFormatFunction(e,o,n,r){const i=this.options,s=i.ticks.callback;if(s)return Pe(s,[e,o,n],this);const a=i.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],f=n[o],h=c&&d&&f&&f.major;return this._adapter.format(e,r||(h?d:u))}generateTickLabels(e){let o,n,r;for(o=0,n=e.length;o0?a:1}getDataTimestamps(){let e=this._cache.data||[],o,n;if(e.length)return e;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(o=0,n=r.length;o=t[n].pos&&e<=t[r].pos&&({lo:n,hi:r}=ko(t,"pos",e)),{pos:i,time:a}=t[n],{pos:s,time:l}=t[r]):(e>=t[n].time&&e<=t[r].time&&({lo:n,hi:r}=ko(t,"time",e)),{time:i,pos:a}=t[n],{time:s,pos:l}=t[r]);const c=s-i;return c?a+(l-a)*(e-i)/c:a}class uc extends li{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),o=this._table=this.buildLookupTable(e);this._minPos=ts(o,this.min),this._tableRange=ts(o,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:o,max:n}=this,r=[],i=[];let s,a,l,c,u;for(s=0,a=e.length;s=o&&c<=n&&r.push(c);if(r.length<2)return[{time:o,pos:0},{time:n,pos:1}];for(s=0,a=r.length;sr-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const o=this.getDataTimestamps(),n=this.getLabelTimestamps();return o.length&&n.length?e=this.normalize(o.concat(n)):e=o.length?o:n,e=this._cache.all=e,e}getDecimalForValue(e){return(ts(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const o=this._offsets,n=this.getDecimalForPixel(e)/o.factor-o.end;return ts(this._table,n*this._tableRange+this._minPos,!0)}}j(uc,"id","timeseries"),j(uc,"defaults",li.defaults);var dR=Object.freeze({__proto__:null,CategoryScale:sc,LinearScale:ac,LogarithmicScale:lc,RadialLinearScale:wr,TimeScale:li,TimeSeriesScale:uc});const fR=[b2,YP,WT,dR],hR=Rt(()=>{No.register(...fR)}),gR=[jx,Wx,ok,rk,ik,sk,lk,ck,uk,rS,iS,sS,hR],pR=io({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const e=t.renderKey,o=t.route,n={};for(const r in t.route)Object.defineProperty(n,r,{get:()=>e===t.renderKey?t.route[r]:o[r],enumerable:!0});return _n(ki,yo(n)),()=>at(t.vnode,{ref:t.vnodeRef})}}),mR=io({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(t,{attrs:e,slots:o,expose:n}){const r=Ie(),i=vt(),s=tt(ki,null);let a;n({pageRef:i});const l=tt(Mp,null);let c;const u=r.deferHydration();if(r.isHydrating){const d=r.hooks.hookOnce("app:error",u);gt().beforeEach(d)}return t.pageKey&&Lt(()=>t.pageKey,(d,f)=>{d!==f&&r.callHook("page:loading:start")}),()=>at(rm,{name:t.name,route:t.route,...e},{default:d=>{const f=yR(s,d.route,d.Component),h=s&&s.matched.length===d.route.matched.length;if(!d.Component){if(c&&!h)return c;u();return}if(c&&l&&!l.isCurrent(d.route))return c;if(f&&s&&(!l||l!=null&&l.isCurrent(s)))return h?c:null;const g=zl(d,t.pageKey);!r.isHydrating&&!vR(s,d.route,d.Component)&&a===g&&r.callHook("page:loading:end"),a=g;const p=!!(t.transition??d.route.meta.pageTransition??El),y=p&&bR([t.transition,d.route.meta.pageTransition,El,{onAfterLeave:()=>{r.callHook("page:transition:finish",d.Component)}}].filter(Boolean)),x=t.keepalive??d.route.meta.keepalive??x1;return c=im(sp,p&&y,K_(x,at(jc,{suspensible:!0,onPending:()=>r.callHook("page:start",d.Component),onResolve:()=>{On(()=>r.callHook("page:finish",d.Component).then(()=>r.callHook("page:loading:end")).finally(u))}},{default:()=>{const v=at(pR,{key:g||void 0,vnode:o.default?at(Ke,void 0,o.default(d)):d.Component,route:d.route,renderKey:g||void 0,trackRootNodes:p,vnodeRef:i});return x&&(v.type.name=d.Component.type.name||d.Component.type.__name||"RouteProvider"),v}}))).default(),c}})}});function bR(t){const e=t.map(o=>({...o,onAfterLeave:o.onAfterLeave?qc(o.onAfterLeave):void 0}));return Op(...e)}function yR(t,e,o){if(!t)return!1;const n=e.matched.findIndex(r=>{var i;return((i=r.components)==null?void 0:i.default)===(o==null?void 0:o.type)});return!n||n===-1?!1:e.matched.slice(0,n).some((r,i)=>{var s,a,l;return((s=r.components)==null?void 0:s.default)!==((l=(a=t.matched[i])==null?void 0:a.components)==null?void 0:l.default)})||o&&zl({route:e,Component:o})!==zl({route:t,Component:o})}function vR(t,e,o){return t?e.matched.findIndex(r=>{var i;return((i=r.components)==null?void 0:i.default)===(o==null?void 0:o.type)})n.default||n);return()=>at(o,t.layoutProps,e.slots)}}),_R=io({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(t,e){const o=Ie(),n=tt(ki),r=n===Vc()?V_():n,i=Ve(()=>{let l=Fe(t.name)??r.meta.layout??"default";return l&&!(l in jo)&&t.fallback&&(l=Fe(t.fallback)),l}),s=vt();e.expose({layoutRef:s});const a=o.deferHydration();if(o.isHydrating){const l=o.hooks.hookOnce("app:error",a);gt().beforeEach(l)}return()=>{const l=i.value&&i.value in jo,c=r.meta.layoutTransition??v1;return im(sp,l&&c,{default:()=>at(jc,{suspensible:!0,onResolve:()=>{On(a)}},{default:()=>at(kR,{layoutProps:ge(e.attrs,{ref:s}),key:i.value||void 0,name:i.value,shouldProvide:!t.name,hasTransition:!!c},e.slots)})}).default()}}}),kR=io({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(t,e){const o=t.name;return t.shouldProvide&&_n(Mp,{isCurrent:n=>o===(n.meta.layout??"default")}),()=>{var n,r;return!o||typeof o=="string"&&!(o in jo)?(r=(n=e.slots).default)==null?void 0:r.call(n):at(xR,{key:o,layoutProps:t.layoutProps,name:o},e.slots)}}});var y0={name:"Portal",props:{appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=Zc()},computed:{inline:function(){return this.disabled||this.appendTo==="self"}}};function wR(t,e,o,n,r,i){return i.inline?gn(t.$slots,"default",{key:0}):r.mounted?(re(),ht(Pb,{key:1,to:o.appendTo},[gn(t.$slots,"default")],8,["to"])):mn("",!0)}y0.render=wR;var Fo={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}},Ch=Be.extend({name:"common"});function ci(t){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ci(t)}function CR(t){return _0(t)||SR(t)||x0(t)||v0()}function SR(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function os(t,e){return _0(t)||PR(t,e)||x0(t,e)||v0()}function v0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x0(t,e){if(t){if(typeof t=="string")return Sh(t,e);var o={}.toString.call(t).slice(8,-1);return o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set"?Array.from(t):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Sh(t,e):void 0}}function Sh(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,n=Array(e);o1?o-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:function(){};Fo.clearLoadedStyleNames(),Ht.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var o;return this[e]||((o=this._getHostInstance(this))===null||o===void 0?void 0:o[e])},_getOptionValue:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Gc(e,o,n)},_getPTValue:function(){var e,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(n)&&!!r[n.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},l=a.mergeSections,c=l===void 0?!0:l,u=a.mergeProps,d=u===void 0?!1:u,f=i?s?this._useGlobalPT(this._getPTClassValue,n,r):this._useDefaultPT(this._getPTClassValue,n,r):void 0,h=s?void 0:this._getPTSelf(o,this._getPTClassValue,n,se(se({},r),{},{global:f||{}})),g=this._getPTDatasets(n);return c||!c&&h?d?this._mergeProps(d,f,h,g):se(se(se({},f),h),g):se(se({},h),g)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length,n=new Array(o>1?o-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"",r="data-pc-",i=n==="root"&&xe((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return n!=="transition"&&se(se({},n==="root"&&se(se(Cr({},"".concat(r,"name"),Wt(i?(o=this.pt)===null||o===void 0?void 0:o["data-pc-section"]:this.$.type.name)),i&&Cr({},"".concat(r,"extend"),Wt(this.$.type.name))),Zc()&&Cr({},"".concat(this.$attrSelector),""))),{},Cr({},"".concat(r,"section"),Wt(n)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return xt(e)||_a(e)?{class:e}:e},_getPT:function(e){var o=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=function(a){var l,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=r?r(a):a,d=Wt(n),f=Wt(o.$name);return(l=c?d!==f?u==null?void 0:u[d]:void 0:u==null?void 0:u[d])!==null&&l!==void 0?l:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,o,n,r){var i=function(p){return o(p,n,r)};if(e!=null&&e.hasOwnProperty("_usept")){var s,a=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},l=a.mergeSections,c=l===void 0?!0:l,u=a.mergeProps,d=u===void 0?!1:u,f=i(e.originalValue),h=i(e.value);return f===void 0&&h===void 0?void 0:xt(h)?h:xt(f)?f:c||!c&&h?d?this._mergeProps(d,f,h):se(se({},f),h):h}return i(e)},_useGlobalPT:function(e,o,n){return this._usePT(this.globalPT,e,o,n)},_useDefaultPT:function(e,o,n){return this._usePT(this.defaultPT,e,o,n)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,se(se({},this.$params),o))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ge(this.$_attrsWithoutPT,this.ptm(e,o))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,o,se({instance:this},n),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,se(se({},this.$params),o))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(o){var r=this._getOptionValue(this.$style.inlineStyles,e,se(se({},this.$params),n)),i=this._getOptionValue(Ch.inlineStyles,e,se(se({},this.$params),n));return[i,r]}}},computed:{globalPT:function(){var e,o=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(n){return Dt(n,{instance:o})})},defaultPT:function(){var e,o=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(n){return o._getOptionValue(n,o.$name,se({},o.$params))||Dt(n,se({},o.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return se(se({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var o=os(e,1),n=o[0];return n==null?void 0:n.startsWith("pt:")}).reduce(function(e,o){var n=os(o,2),r=n[0],i=n[1],s=r.split(":"),a=CR(s),l=a.slice(1);return l==null||l.reduce(function(c,u,d,f){return!c[u]&&(c[u]=d===f.length-1?i:{}),c[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var o=os(e,1),n=o[0];return!(n!=null&&n.startsWith("pt:"))}).reduce(function(e,o){var n=os(o,2),r=n[0],i=n[1];return e[r]=i,e},{})}}};function ui(t){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(t)}function ns(t,e,o){return(e=OR(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function OR(t){var e=ER(t,"string");return ui(e)=="symbol"?e:e+""}function ER(t,e){if(ui(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var MR=function(e){var o=e.dt;return` diff --git a/_nuxt/BJ9mTL0C.js b/_nuxt/Dxu8vT0_.js similarity index 93% rename from _nuxt/BJ9mTL0C.js rename to _nuxt/Dxu8vT0_.js index 9a24dfca..fc35b00f 100644 --- a/_nuxt/BJ9mTL0C.js +++ b/_nuxt/Dxu8vT0_.js @@ -1 +1 @@ -import{_ as H,a as P}from"./B4cgAAfJ.js";import{q as v,c as S,h as t,j as i,C as $,u as a,x as g,y as f,z as k,ab as p,A as n,aa as K,af as w,ag as U,r as C,t as E,ac as L,ad as F,a7 as d,a4 as h,i as G}from"./hZrgVGmQ.js";import{s as N,a as V,u as z,b as Z,c as Y}from"./CO4SXx96.js";import{u as D}from"./Be9Klata.js";import{_ as M}from"./DlAUqK2U.js";import"./Dt6RYPYM.js";import"./BLCpM-IT.js";const O=v({__name:"CountryFlag",props:{country:{}},setup(m){const s=m,l=S(()=>({AE:"i-flagpack-ae",AR:"i-flagpack-ar",AT:"i-flagpack-at",AU:"i-flagpack-au",BE:"i-flagpack-be",BG:"i-flagpack-bg",BR:"i-flagpack-br",CA:"i-flagpack-ca",CH:"i-flagpack-ch",CN:"i-flagpack-cn",CZ:"i-flagpack-cz",DE:"i-flagpack-de",DK:"i-flagpack-dk",ES:"i-flagpack-es",EU:"i-flag-eu-4x3",FI:"i-flagpack-fi",FR:"i-flagpack-fr",GB:"i-flagpack-gb-ukm",GR:"i-flagpack-gr",HK:"i-flagpack-hk",HR:"i-flagpack-hr",HU:"i-flagpack-hu",ID:"i-flagpack-id",IL:"i-flagpack-il",IR:"i-flagpack-ie",IN:"i-flagpack-in",IS:"i-flagpack-is",IT:"i-flagpack-it",JP:"i-flagpack-jp",KR:"i-flagpack-kr",LI:"i-flagpack-li",LU:"i-flagpack-lu",MX:"i-flagpack-mx",MY:"i-flagpack-my",NL:"i-flagpack-nl",NO:"i-flagpack-no",NZ:"i-flagpack-nz",PH:"i-flagpack-ph",PL:"i-flagpack-pl",PT:"i-flagpack-pt",RO:"i-flagpack-ro",RU:"i-flagpack-ru",SE:"i-flagpack-se",SG:"i-flagpack-sg",TH:"i-flagpack-th",TR:"i-flagpack-tr",TW:"i-flagpack-tw",US:"i-flagpack-us",VN:"i-flagpack-vn",ZA:"i-flagpack-za"})[s.country]);return(c,r)=>(t(),i("i",{class:$(["ii",a(l)])},null,2))}}),j=v({__name:"PricesTable",props:{prices:{}},setup(m){const s=m,l=S(()=>s.prices.map(c=>({dateStr:c.date,date:new Date(c.date),close:c.close})).sort((c,r)=>r.date.getTime()-c.date.getTime()));return(c,r)=>(t(),i("div",null,[g(a(V),{value:a(l),class:"font-mono",size:"small",rows:10},{default:f(()=>[g(a(N),{field:"date",header:"Date","data-type":"date"},{body:f(({data:_})=>[k(p(_.dateStr),1)]),_:1}),g(a(N),{field:"close","body-class":"!text-right"},{header:f(()=>r[0]||(r[0]=[n("span",{class:"flex-1 text-right font-semibold"},"Close",-1)])),body:f(({data:_})=>[k(p(_.close.toLocaleString(void 0,{minimumFractionDigits:2})),1)]),_:1})]),_:1},8,["value"])]))}}),X={class:"flex justify-center"},J={style:{width:"800px"}},W={class:"flex flex-wrap"},q={class:"flex-grow-1"},Q={class:"separator-container font-mono"},aa={key:0},ea={key:1},ca={key:2},sa={class:"mt-4"},ta={class:"flex items-baseline"},oa={key:0},ia={key:1},la=v({__name:"[uuid]",async setup(m){let s,l;const c=K(),{data:r,error:_}=([s,l]=w(()=>z(`security:${c.params.uuid}`,()=>D(`/securities/uuid/${c.params.uuid}`))),s=await s,l(),s);if(_.value||!r.value)throw U({statusCode:404,message:"This page could not be found",fatal:!0});const e=C(r.value),R=[{code:"EUR"},{code:"USD"},{code:"AED"},{code:"AUD"},{code:"BGN"},{code:"BRL"},{code:"CAD"},{code:"CHF"},{code:"CNY"},{code:"CZK"},{code:"DKK"},{code:"GBP"},{code:"GBX"},{code:"HKD"},{code:"HRK"},{code:"HUF"},{code:"IDR"},{code:"ILS"},{code:"INR"},{code:"ISK"},{code:"JPY"},{code:"KRW"},{code:"MXN"},{code:"MYR"},{code:"NOK"},{code:"NZD"},{code:"PHP"},{code:"PLN"},{code:"RON"},{code:"RUB"},{code:"SEK"},{code:"SGD"},{code:"THB"},{code:"TRY"},{code:"ZAR"}],u=C(R[0]),{data:b}=([s,l]=w(async()=>Z(`security:${c.params.uuid}:prices:${u.value.code}`,async()=>e.value.pricesAvailable?await D(`/securities/uuid/${c.params.uuid}/prices/${u.value.code}`):[],{watch:[u]})),s=await s,l(),s);return E(()=>{var y;return{title:`${(y=e.value)==null?void 0:y.name} - Portfolio Report`,link:[{rel:"canonical",href:`https://www.portfolio-report.net/securities/${e.value.uuid}`}]}}),(y,x)=>{const T=H,I=P,A=O,B=j;return t(),i("div",X,[n("div",J,[n("div",W,[n("div",q,[n("h2",null,[k(p(a(e).name)+" ",1),g(T,{name:a(e).securityType??"",class:"align-top"},null,8,["name"]),(t(!0),i(L,null,F(a(e).tags,o=>(t(),h(I,{key:o,class:"align-top",name:o},null,8,["name"]))),128))]),n("div",Q,[a(e).isin?(t(),i("span",aa,p(a(e).isin),1)):d("",!0),a(e).wkn?(t(),i("span",ea,p(a(e).wkn),1)):d("",!0),a(e).code?(t(),i("span",ca,p(a(e).code),1)):d("",!0)])])]),n("div",sa,[n("div",ta,[a(e).pricesAvailable?(t(),i("h3",oa," Prices ")):d("",!0),a(e).pricesAvailable?(t(),h(a(Y),{key:1,modelValue:a(u),"onUpdate:modelValue":x[0]||(x[0]=o=>G(u)?u.value=o:null),options:R,"option-label":"code",class:"ml-2"},{value:f(({value:o})=>[g(A,{country:o.code.substring(0,2),class:"mr-1"},null,8,["country"]),k(" "+p(o.code),1)]),option:f(({option:o})=>[g(A,{country:o.code.substring(0,2),class:"mr-1"},null,8,["country"]),k(" "+p(o.code),1)]),_:1},8,["modelValue"])):d("",!0)]),a(e).pricesAvailable&&a(b)?(t(),h(B,{key:0,prices:a(b)},null,8,["prices"])):d("",!0),a(e).pricesAvailable?d("",!0):(t(),i("span",ia," No prices available "))])])])}}}),_a=M(la,[["__scopeId","data-v-a044f864"]]);export{_a as default}; +import{_ as H,a as P}from"./qPDNVzf0.js";import{q as v,c as S,h as t,j as i,C as $,u as a,x as g,y as f,z as k,ab as p,A as n,aa as K,af as w,ag as U,r as C,t as E,ac as L,ad as F,a7 as d,a4 as h,i as G}from"./DxhV-795.js";import{s as N,a as V,u as z,b as Z,c as Y}from"./CS3xcki0.js";import{u as D}from"./DLrfWIcp.js";import{_ as M}from"./DlAUqK2U.js";import"./Ca3CcCBi.js";import"./C8MRw8k7.js";const O=v({__name:"CountryFlag",props:{country:{}},setup(m){const s=m,l=S(()=>({AE:"i-flagpack-ae",AR:"i-flagpack-ar",AT:"i-flagpack-at",AU:"i-flagpack-au",BE:"i-flagpack-be",BG:"i-flagpack-bg",BR:"i-flagpack-br",CA:"i-flagpack-ca",CH:"i-flagpack-ch",CN:"i-flagpack-cn",CZ:"i-flagpack-cz",DE:"i-flagpack-de",DK:"i-flagpack-dk",ES:"i-flagpack-es",EU:"i-flag-eu-4x3",FI:"i-flagpack-fi",FR:"i-flagpack-fr",GB:"i-flagpack-gb-ukm",GR:"i-flagpack-gr",HK:"i-flagpack-hk",HR:"i-flagpack-hr",HU:"i-flagpack-hu",ID:"i-flagpack-id",IL:"i-flagpack-il",IR:"i-flagpack-ie",IN:"i-flagpack-in",IS:"i-flagpack-is",IT:"i-flagpack-it",JP:"i-flagpack-jp",KR:"i-flagpack-kr",LI:"i-flagpack-li",LU:"i-flagpack-lu",MX:"i-flagpack-mx",MY:"i-flagpack-my",NL:"i-flagpack-nl",NO:"i-flagpack-no",NZ:"i-flagpack-nz",PH:"i-flagpack-ph",PL:"i-flagpack-pl",PT:"i-flagpack-pt",RO:"i-flagpack-ro",RU:"i-flagpack-ru",SE:"i-flagpack-se",SG:"i-flagpack-sg",TH:"i-flagpack-th",TR:"i-flagpack-tr",TW:"i-flagpack-tw",US:"i-flagpack-us",VN:"i-flagpack-vn",ZA:"i-flagpack-za"})[s.country]);return(c,r)=>(t(),i("i",{class:$(["ii",a(l)])},null,2))}}),j=v({__name:"PricesTable",props:{prices:{}},setup(m){const s=m,l=S(()=>s.prices.map(c=>({dateStr:c.date,date:new Date(c.date),close:c.close})).sort((c,r)=>r.date.getTime()-c.date.getTime()));return(c,r)=>(t(),i("div",null,[g(a(V),{value:a(l),class:"font-mono",size:"small",rows:10},{default:f(()=>[g(a(N),{field:"date",header:"Date","data-type":"date"},{body:f(({data:_})=>[k(p(_.dateStr),1)]),_:1}),g(a(N),{field:"close","body-class":"!text-right"},{header:f(()=>r[0]||(r[0]=[n("span",{class:"flex-1 text-right font-semibold"},"Close",-1)])),body:f(({data:_})=>[k(p(_.close.toLocaleString(void 0,{minimumFractionDigits:2})),1)]),_:1})]),_:1},8,["value"])]))}}),X={class:"flex justify-center"},J={style:{width:"800px"}},W={class:"flex flex-wrap"},q={class:"flex-grow-1"},Q={class:"separator-container font-mono"},aa={key:0},ea={key:1},ca={key:2},sa={class:"mt-4"},ta={class:"flex items-baseline"},oa={key:0},ia={key:1},la=v({__name:"[uuid]",async setup(m){let s,l;const c=K(),{data:r,error:_}=([s,l]=w(()=>z(`security:${c.params.uuid}`,()=>D(`/securities/uuid/${c.params.uuid}`))),s=await s,l(),s);if(_.value||!r.value)throw U({statusCode:404,message:"This page could not be found",fatal:!0});const e=C(r.value),R=[{code:"EUR"},{code:"USD"},{code:"AED"},{code:"AUD"},{code:"BGN"},{code:"BRL"},{code:"CAD"},{code:"CHF"},{code:"CNY"},{code:"CZK"},{code:"DKK"},{code:"GBP"},{code:"GBX"},{code:"HKD"},{code:"HRK"},{code:"HUF"},{code:"IDR"},{code:"ILS"},{code:"INR"},{code:"ISK"},{code:"JPY"},{code:"KRW"},{code:"MXN"},{code:"MYR"},{code:"NOK"},{code:"NZD"},{code:"PHP"},{code:"PLN"},{code:"RON"},{code:"RUB"},{code:"SEK"},{code:"SGD"},{code:"THB"},{code:"TRY"},{code:"ZAR"}],u=C(R[0]),{data:b}=([s,l]=w(async()=>Z(`security:${c.params.uuid}:prices:${u.value.code}`,async()=>e.value.pricesAvailable?await D(`/securities/uuid/${c.params.uuid}/prices/${u.value.code}`):[],{watch:[u]})),s=await s,l(),s);return E(()=>{var y;return{title:`${(y=e.value)==null?void 0:y.name} - Portfolio Report`,link:[{rel:"canonical",href:`https://www.portfolio-report.net/securities/${e.value.uuid}`}]}}),(y,x)=>{const T=H,I=P,A=O,B=j;return t(),i("div",X,[n("div",J,[n("div",W,[n("div",q,[n("h2",null,[k(p(a(e).name)+" ",1),g(T,{name:a(e).securityType??"",class:"align-top"},null,8,["name"]),(t(!0),i(L,null,F(a(e).tags,o=>(t(),h(I,{key:o,class:"align-top",name:o},null,8,["name"]))),128))]),n("div",Q,[a(e).isin?(t(),i("span",aa,p(a(e).isin),1)):d("",!0),a(e).wkn?(t(),i("span",ea,p(a(e).wkn),1)):d("",!0),a(e).code?(t(),i("span",ca,p(a(e).code),1)):d("",!0)])])]),n("div",sa,[n("div",ta,[a(e).pricesAvailable?(t(),i("h3",oa," Prices ")):d("",!0),a(e).pricesAvailable?(t(),h(a(Y),{key:1,modelValue:a(u),"onUpdate:modelValue":x[0]||(x[0]=o=>G(u)?u.value=o:null),options:R,"option-label":"code",class:"ml-2"},{value:f(({value:o})=>[g(A,{country:o.code.substring(0,2),class:"mr-1"},null,8,["country"]),k(" "+p(o.code),1)]),option:f(({option:o})=>[g(A,{country:o.code.substring(0,2),class:"mr-1"},null,8,["country"]),k(" "+p(o.code),1)]),_:1},8,["modelValue"])):d("",!0)]),a(e).pricesAvailable&&a(b)?(t(),h(B,{key:0,prices:a(b)},null,8,["prices"])):d("",!0),a(e).pricesAvailable?d("",!0):(t(),i("span",ia," No prices available "))])])])}}}),_a=M(la,[["__scopeId","data-v-a044f864"]]);export{_a as default}; diff --git a/_nuxt/builds/latest.json b/_nuxt/builds/latest.json index 851ab87c..7dd55163 100644 --- a/_nuxt/builds/latest.json +++ b/_nuxt/builds/latest.json @@ -1 +1 @@ -{"id":"3f871ddf-94f0-498c-b1aa-906fd19e65b7","timestamp":1731140820849} \ No newline at end of file +{"id":"7014321c-24e6-40d8-b5e2-1be76cfe7cd5","timestamp":1731140836706} \ No newline at end of file diff --git a/_nuxt/builds/meta/3f871ddf-94f0-498c-b1aa-906fd19e65b7.json b/_nuxt/builds/meta/3f871ddf-94f0-498c-b1aa-906fd19e65b7.json deleted file mode 100644 index 26fb0925..00000000 --- a/_nuxt/builds/meta/3f871ddf-94f0-498c-b1aa-906fd19e65b7.json +++ /dev/null @@ -1 +0,0 @@ -{"id":"3f871ddf-94f0-498c-b1aa-906fd19e65b7","timestamp":1731140820849,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":["/contact","/search"]} \ No newline at end of file diff --git a/_nuxt/builds/meta/7014321c-24e6-40d8-b5e2-1be76cfe7cd5.json b/_nuxt/builds/meta/7014321c-24e6-40d8-b5e2-1be76cfe7cd5.json new file mode 100644 index 00000000..d56da68c --- /dev/null +++ b/_nuxt/builds/meta/7014321c-24e6-40d8-b5e2-1be76cfe7cd5.json @@ -0,0 +1 @@ +{"id":"7014321c-24e6-40d8-b5e2-1be76cfe7cd5","timestamp":1731140836706,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":["/search","/contact"]} \ No newline at end of file diff --git a/_nuxt/B4cgAAfJ.js b/_nuxt/qPDNVzf0.js similarity index 98% rename from _nuxt/B4cgAAfJ.js rename to _nuxt/qPDNVzf0.js index a1f40973..d891b3bf 100644 --- a/_nuxt/B4cgAAfJ.js +++ b/_nuxt/qPDNVzf0.js @@ -1,4 +1,4 @@ -import{B as b,s as k,h as o,j as d,a4 as g,m as r,a6 as v,a7 as u,k as h,A as $,ab as i,q as m,y as c,z as f,C as _,u as s,c as w,x as z,ae as B}from"./hZrgVGmQ.js";import{_ as T}from"./DlAUqK2U.js";var S=function(e){var n=e.dt;return` +import{B as b,s as k,h as o,j as d,a4 as g,m as r,a6 as v,a7 as u,k as h,A as $,ab as i,q as m,y as c,z as f,C as _,u as s,c as w,x as z,ae as B}from"./DxhV-795.js";import{_ as T}from"./DlAUqK2U.js";var S=function(e){var n=e.dt;return` .p-tag { display: inline-flex; align-items: center; diff --git a/contact.html b/contact.html index 7ea188da..d59ff480 100644 --- a/contact.html +++ b/contact.html @@ -4,14 +4,14 @@ - - - - + + + + - - - + + + @@ -19,5 +19,5 @@ -
Contact

Please use the discussion forum for all matters that can be discussed publicly.

This contact form can be used to establish direct contact with the operators for all matters that cannot be discussed publicly.

- \ No newline at end of file +
Contact

Please use the discussion forum for all matters that can be discussed publicly.

This contact form can be used to establish direct contact with the operators for all matters that cannot be discussed publicly.

+ \ No newline at end of file diff --git a/contact/_payload.json b/contact/_payload.json index e9b31ee1..ae43a915 100644 --- a/contact/_payload.json +++ b/contact/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":3},["ShallowReactive",2],{},1731140839190] \ No newline at end of file +[{"data":1,"prerenderedAt":3},["ShallowReactive",2],{},1731140855004] \ No newline at end of file diff --git a/search.html b/search.html index 5be7cf9b..d99e92c7 100644 --- a/search.html +++ b/search.html @@ -5,15 +5,15 @@ - - - - + + + + - - - - + + + + @@ -21,5 +21,5 @@ -
Security Search
- \ No newline at end of file +
Security Search
+ \ No newline at end of file diff --git a/search/_payload.json b/search/_payload.json index ca4a990e..b9818c33 100644 --- a/search/_payload.json +++ b/search/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":3},["ShallowReactive",2],{},1731140839191] \ No newline at end of file +[{"data":1,"prerenderedAt":3},["ShallowReactive",2],{},1731140855006] \ No newline at end of file