vue-chrts 0.0.79 → 0.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { BulletLegendItemInterface } from '@unovis/ts';
2
+
3
+ export declare const categories: Record<string, BulletLegendItemInterface>;
4
+ export declare const InvestmentData: {
5
+ date: string;
6
+ 'ETF Shares Vital': number;
7
+ 'Vitainvest Core': number;
8
+ 'iShares Tech Growth': number;
9
+ }[];
@@ -0,0 +1,11 @@
1
+ import { BulletLegendItemInterface } from '@unovis/ts';
2
+
3
+ export declare const categories: Record<string, BulletLegendItemInterface>;
4
+ export declare const RevenueData: {
5
+ date: string;
6
+ value: number;
7
+ }[];
8
+ export declare const RevenueDataSmall: {
9
+ date: string;
10
+ value: number;
11
+ }[];
@@ -0,0 +1,11 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: any;
5
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
6
+ export default _default;
7
+ type __VLS_WithTemplateSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ header?(_: {
3
+ class: string;
4
+ }): any;
5
+ default?(_: {}): any;
6
+ footer?(_: {
7
+ class: string;
8
+ }): any;
9
+ };
10
+ declare const __VLS_component: any;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,31 @@
1
+ "use strict";const m=require("vue");function Tt(){return nt().__VUE_DEVTOOLS_GLOBAL_HOOK__}function nt(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Vt=typeof Proxy=="function",It="devtools-plugin:setup",Dt="plugin:settings:set";let Y,Se;function Mt(){var e;return Y!==void 0||(typeof window<"u"&&window.performance?(Y=!0,Se=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Y=!0,Se=globalThis.perf_hooks.performance):Y=!1),Y}function jt(){return Mt()?Se.now():Date.now()}class Lt{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const u in t.settings){const d=t.settings[u];o[u]=d.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let l=Object.assign({},o);try{const u=localStorage.getItem(r),d=JSON.parse(u);Object.assign(l,d)}catch{}this.fallbacks={getSettings(){return l},setSettings(u){try{localStorage.setItem(r,JSON.stringify(u))}catch{}l=u},now(){return jt()}},n&&n.on(Dt,(u,d)=>{u===this.plugin.id&&this.fallbacks.setSettings(d)}),this.proxiedOn=new Proxy({},{get:(u,d)=>this.target?this.target.on[d]:(...a)=>{this.onQueue.push({method:d,args:a})}}),this.proxiedTarget=new Proxy({},{get:(u,d)=>this.target?this.target[d]:d==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(d)?(...a)=>(this.targetQueue.push({method:d,args:a,resolve:()=>{}}),this.fallbacks[d](...a)):(...a)=>new Promise(p=>{this.targetQueue.push({method:d,args:a,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Bt(e,t){const n=e,o=nt(),r=Tt(),l=Vt&&n.enableEarlyProxy;if(r&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!l))r.emit(It,e,t);else{const u=l?new Lt(n,r):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:u}),u&&t(u.proxiedTarget)}}/*!
2
+ * vue-router v4.5.0
3
+ * (c) 2024 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */const z=typeof document<"u";function ot(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Wt(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ot(e.default)}const C=Object.assign;function ye(e,t){const n={};for(const o in t){const r=t[o];n[o]=W(r)?r.map(e):e(r)}return n}const ne=()=>{},W=Array.isArray;function R(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const rt=/#/g,Ut=/&/g,Ht=/\//g,zt=/=/g,Gt=/\?/g,st=/\+/g,Kt=/%5B/g,qt=/%5D/g,it=/%5E/g,Ft=/%60/g,at=/%7B/g,Qt=/%7C/g,ct=/%7D/g,Jt=/%20/g;function xe(e){return encodeURI(""+e).replace(Qt,"|").replace(Kt,"[").replace(qt,"]")}function Yt(e){return xe(e).replace(at,"{").replace(ct,"}").replace(it,"^")}function Re(e){return xe(e).replace(st,"%2B").replace(Jt,"+").replace(rt,"%23").replace(Ut,"%26").replace(Ft,"`").replace(at,"{").replace(ct,"}").replace(it,"^")}function Xt(e){return Re(e).replace(zt,"%3D")}function Zt(e){return xe(e).replace(rt,"%23").replace(Gt,"%3F")}function en(e){return e==null?"":Zt(e).replace(Ht,"%2F")}function X(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&R(`Error decoding "${e}". Using original value`)}return""+e}const tn=/\/$/,nn=e=>e.replace(tn,"");function Ee(e,t,n="/"){let o,r={},l="",u="";const d=t.indexOf("#");let a=t.indexOf("?");return d<a&&d>=0&&(a=-1),a>-1&&(o=t.slice(0,a),l=t.slice(a+1,d>-1?d:t.length),r=e(l)),d>-1&&(o=o||t.slice(0,d),u=t.slice(d,t.length)),o=sn(o??t,n),{fullPath:o+(l&&"?")+l+u,path:o,query:r,hash:X(u)}}function on(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function De(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Me(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&q(t.matched[o],n.matched[r])&&lt(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function lt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!rn(e[n],t[n]))return!1;return!0}function rn(e,t){return W(e)?je(e,t):W(t)?je(t,e):e===t}function je(e,t){return W(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function sn(e,t){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!t.startsWith("/"))return R(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let l=n.length-1,u,d;for(u=0;u<o.length;u++)if(d=o[u],d!==".")if(d==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+o.slice(u).join("/")}const G={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var re;(function(e){e.pop="pop",e.push="push"})(re||(re={}));var oe;(function(e){e.back="back",e.forward="forward",e.unknown=""})(oe||(oe={}));function an(e){if(!e)if(z){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),nn(e)}const cn=/^[^#]+#/;function ln(e,t){return e.replace(cn,"#")+t}function un(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const de=()=>({left:window.scrollX,top:window.scrollY});function fn(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!o||!document.getElementById(e.el.slice(1))))try{const l=document.querySelector(e.el);if(o&&l){R(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{R(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r){process.env.NODE_ENV!=="production"&&R(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=un(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Le(e,t){return(history.state?history.state.position-t:-1)+e}const Ne=new Map;function dn(e,t){Ne.set(e,t)}function hn(e){const t=Ne.get(e);return Ne.delete(e),t}let pn=()=>location.protocol+"//"+location.host;function ut(e,t){const{pathname:n,search:o,hash:r}=t,l=e.indexOf("#");if(l>-1){let d=r.includes(e.slice(l))?e.slice(l).length:1,a=r.slice(d);return a[0]!=="/"&&(a="/"+a),De(a,"")}return De(n,e)+o+r}function mn(e,t,n,o){let r=[],l=[],u=null;const d=({state:c})=>{const h=ut(e,location),y=n.value,_=t.value;let b=0;if(c){if(n.value=h,t.value=c,u&&u===y){u=null;return}b=_?c.position-_.position:0}else o(h);r.forEach(k=>{k(n.value,y,{delta:b,type:re.pop,direction:b?b>0?oe.forward:oe.back:oe.unknown})})};function a(){u=n.value}function p(c){r.push(c);const h=()=>{const y=r.indexOf(c);y>-1&&r.splice(y,1)};return l.push(h),h}function i(){const{history:c}=window;c.state&&c.replaceState(C({},c.state,{scroll:de()}),"")}function s(){for(const c of l)c();l=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",i)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",i,{passive:!0}),{pauseListeners:a,listen:p,destroy:s}}function Be(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?de():null}}function gn(e){const{history:t,location:n}=window,o={value:ut(e,n)},r={value:t.state};r.value||l(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(a,p,i){const s=e.indexOf("#"),c=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+a:pn()+e+a;try{t[i?"replaceState":"pushState"](p,"",c),r.value=p}catch(h){process.env.NODE_ENV!=="production"?R("Error with push/replace State",h):console.error(h),n[i?"replace":"assign"](c)}}function u(a,p){const i=C({},t.state,Be(r.value.back,a,r.value.forward,!0),p,{position:r.value.position});l(a,i,!0),o.value=a}function d(a,p){const i=C({},r.value,t.state,{forward:a,scroll:de()});process.env.NODE_ENV!=="production"&&!t.state&&R(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
6
+
7
+ history.replaceState(history.state, '', url)
8
+
9
+ You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`),l(i.current,i,!0);const s=C({},Be(o.value,a,null),{position:i.position+1},p);l(a,s,!1),o.value=a}return{location:o,state:r,push:d,replace:u}}function vn(e){e=an(e);const t=gn(e),n=mn(e,t.state,t.location,t.replace);function o(l,u=!0){u||n.pauseListeners(),history.go(l)}const r=C({location:"",base:e,go:o,createHref:ln.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function fe(e){return typeof e=="string"||e&&typeof e=="object"}function ft(e){return typeof e=="string"||typeof e=="symbol"}const ke=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var We;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(We||(We={}));const yn={1({location:e,currentLocation:t}){return`No match for
10
+ ${JSON.stringify(e)}${t?`
11
+ while being at
12
+ `+JSON.stringify(t):""}`},2({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${_n(t)}" via a navigation guard.`},4({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},8({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},16({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function Z(e,t){return process.env.NODE_ENV!=="production"?C(new Error(yn[e](t)),{type:e,[ke]:!0},t):C(new Error,{type:e,[ke]:!0},t)}function H(e,t){return e instanceof Error&&ke in e&&(t==null||!!(e.type&t))}const En=["params","query","hash"];function _n(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of En)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Ue="[^/]+?",wn={sensitive:!1,strict:!1,start:!0,end:!0},bn=/[.+*?^${}()[\]/\\]/g;function Sn(e,t){const n=C({},wn,t),o=[];let r=n.start?"^":"";const l=[];for(const p of e){const i=p.length?[]:[90];n.strict&&!p.length&&(r+="/");for(let s=0;s<p.length;s++){const c=p[s];let h=40+(n.sensitive?.25:0);if(c.type===0)s||(r+="/"),r+=c.value.replace(bn,"\\$&"),h+=40;else if(c.type===1){const{value:y,repeatable:_,optional:b,regexp:k}=c;l.push({name:y,repeatable:_,optional:b});const S=k||Ue;if(S!==Ue){h+=10;try{new RegExp(`(${S})`)}catch(x){throw new Error(`Invalid custom RegExp for param "${y}" (${S}): `+x.message)}}let w=_?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;s||(w=b&&p.length<2?`(?:/${w})`:"/"+w),b&&(w+="?"),r+=w,h+=20,b&&(h+=-8),_&&(h+=-20),S===".*"&&(h+=-50)}i.push(h)}o.push(i)}if(n.strict&&n.end){const p=o.length-1;o[p][o[p].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const u=new RegExp(r,n.sensitive?"":"i");function d(p){const i=p.match(u),s={};if(!i)return null;for(let c=1;c<i.length;c++){const h=i[c]||"",y=l[c-1];s[y.name]=h&&y.repeatable?h.split("/"):h}return s}function a(p){let i="",s=!1;for(const c of e){(!s||!i.endsWith("/"))&&(i+="/"),s=!1;for(const h of c)if(h.type===0)i+=h.value;else if(h.type===1){const{value:y,repeatable:_,optional:b}=h,k=y in p?p[y]:"";if(W(k)&&!_)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const S=W(k)?k.join("/"):k;if(!S)if(b)c.length<2&&(i.endsWith("/")?i=i.slice(0,-1):s=!0);else throw new Error(`Missing required param "${y}"`);i+=S}}return i||"/"}return{re:u,score:o,keys:l,parse:d,stringify:a}}function Rn(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function dt(e,t){let n=0;const o=e.score,r=t.score;for(;n<o.length&&n<r.length;){const l=Rn(o[n],r[n]);if(l)return l;n++}if(Math.abs(r.length-o.length)===1){if(He(o))return 1;if(He(r))return-1}return r.length-o.length}function He(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Nn={type:0,value:""},kn=/[a-zA-Z0-9_]/;function On(e){if(!e)return[[]];if(e==="/")return[[Nn]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${p}": ${h}`)}let n=0,o=n;const r=[];let l;function u(){l&&r.push(l),l=[]}let d=0,a,p="",i="";function s(){p&&(n===0?l.push({type:0,value:p}):n===1||n===2||n===3?(l.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:p,regexp:i,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),p="")}function c(){p+=a}for(;d<e.length;){if(a=e[d++],a==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:a==="/"?(p&&s(),u()):a===":"?(s(),n=1):c();break;case 4:c(),n=o;break;case 1:a==="("?n=2:kn.test(a)?c():(s(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&d--);break;case 2:a===")"?i[i.length-1]=="\\"?i=i.slice(0,-1)+a:n=3:i+=a;break;case 3:s(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&d--,i="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${p}"`),s(),u(),r}function Pn(e,t,n){const o=Sn(On(e.path),n);if(process.env.NODE_ENV!=="production"){const l=new Set;for(const u of o.keys)l.has(u.name)&&R(`Found duplicated params with name "${u.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),l.add(u.name)}const r=C(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Cn(e,t){const n=[],o=new Map;t=qe({strict:!1,end:!0,sensitive:!1},t);function r(s){return o.get(s)}function l(s,c,h){const y=!h,_=Ge(s);process.env.NODE_ENV!=="production"&&Tn(_,c),_.aliasOf=h&&h.record;const b=qe(t,s),k=[_];if("alias"in s){const x=typeof s.alias=="string"?[s.alias]:s.alias;for(const D of x)k.push(Ge(C({},_,{components:h?h.record.components:_.components,path:D,aliasOf:h?h.record:_})))}let S,w;for(const x of k){const{path:D}=x;if(c&&D[0]!=="/"){const L=c.record.path,M=L[L.length-1]==="/"?"":"/";x.path=c.record.path+(D&&M+D)}if(process.env.NODE_ENV!=="production"&&x.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
13
+ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);if(S=Pn(x,c,b),process.env.NODE_ENV!=="production"&&c&&D[0]==="/"&&In(S,c),h?(h.alias.push(S),process.env.NODE_ENV!=="production"&&$n(h,S)):(w=w||S,w!==S&&w.alias.push(S),y&&s.name&&!Ke(S)&&(process.env.NODE_ENV!=="production"&&Vn(s,c),u(s.name))),ht(S)&&a(S),_.children){const L=_.children;for(let M=0;M<L.length;M++)l(L[M],S,h&&h.children[M])}h=h||S}return w?()=>{u(w)}:ne}function u(s){if(ft(s)){const c=o.get(s);c&&(o.delete(s),n.splice(n.indexOf(c),1),c.children.forEach(u),c.alias.forEach(u))}else{const c=n.indexOf(s);c>-1&&(n.splice(c,1),s.record.name&&o.delete(s.record.name),s.children.forEach(u),s.alias.forEach(u))}}function d(){return n}function a(s){const c=Dn(s,n);n.splice(c,0,s),s.record.name&&!Ke(s)&&o.set(s.record.name,s)}function p(s,c){let h,y={},_,b;if("name"in s&&s.name){if(h=o.get(s.name),!h)throw Z(1,{location:s});if(process.env.NODE_ENV!=="production"){const w=Object.keys(s.params||{}).filter(x=>!h.keys.find(D=>D.name===x));w.length&&R(`Discarded invalid param(s) "${w.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}b=h.record.name,y=C(ze(c.params,h.keys.filter(w=>!w.optional).concat(h.parent?h.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),s.params&&ze(s.params,h.keys.map(w=>w.name))),_=h.stringify(y)}else if(s.path!=null)_=s.path,process.env.NODE_ENV!=="production"&&!_.startsWith("/")&&R(`The Matcher cannot resolve relative paths but received "${_}". Unless you directly called \`matcher.resolve("${_}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),h=n.find(w=>w.re.test(_)),h&&(y=h.parse(_),b=h.record.name);else{if(h=c.name?o.get(c.name):n.find(w=>w.re.test(c.path)),!h)throw Z(1,{location:s,currentLocation:c});b=h.record.name,y=C({},c.params,s.params),_=h.stringify(y)}const k=[];let S=h;for(;S;)k.unshift(S.record),S=S.parent;return{name:b,path:_,params:y,matched:k,meta:xn(k)}}e.forEach(s=>l(s));function i(){n.length=0,o.clear()}return{addRoute:l,resolve:p,removeRoute:u,clearRoutes:i,getRoutes:d,getRecordMatcher:r}}function ze(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Ge(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:An(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function An(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function Ke(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function xn(e){return e.reduce((t,n)=>C(t,n.meta),{})}function qe(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Oe(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function $n(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(Oe.bind(null,n)))return R(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(Oe.bind(null,n)))return R(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Tn(e,t){t&&t.record.name&&!e.name&&!e.path&&R(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function Vn(e,t){for(let n=t;n;n=n.parent)if(n.record.name===e.name)throw new Error(`A route named "${String(e.name)}" has been added as a ${t===n?"child":"descendant"} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`)}function In(e,t){for(const n of t.keys)if(!e.keys.find(Oe.bind(null,n)))return R(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Dn(e,t){let n=0,o=t.length;for(;n!==o;){const l=n+o>>1;dt(e,t[l])<0?o=l:n=l+1}const r=Mn(e);return r&&(o=t.lastIndexOf(r,o-1),process.env.NODE_ENV!=="production"&&o<0&&R(`Finding ancestor route "${r.record.path}" failed for "${e.record.path}"`)),o}function Mn(e){let t=e;for(;t=t.parent;)if(ht(t)&&dt(e,t)===0)return t}function ht({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function jn(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<o.length;++r){const l=o[r].replace(st," "),u=l.indexOf("="),d=X(u<0?l:l.slice(0,u)),a=u<0?null:X(l.slice(u+1));if(d in t){let p=t[d];W(p)||(p=t[d]=[p]),p.push(a)}else t[d]=a}return t}function Fe(e){let t="";for(let n in e){const o=e[n];if(n=Xt(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(W(o)?o.map(l=>l&&Re(l)):[o&&Re(o)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function Ln(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=W(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const Bn=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Qe=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),$e=Symbol(process.env.NODE_ENV!=="production"?"router":""),pt=Symbol(process.env.NODE_ENV!=="production"?"route location":""),Pe=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function ee(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function K(e,t,n,o,r,l=u=>u()){const u=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((d,a)=>{const p=c=>{c===!1?a(Z(4,{from:n,to:t})):c instanceof Error?a(c):fe(c)?a(Z(2,{from:t,to:c})):(u&&o.enterCallbacks[r]===u&&typeof c=="function"&&u.push(c),d())},i=l(()=>e.call(o&&o.instances[r],t,n,process.env.NODE_ENV!=="production"?Wn(p,t,n):p));let s=Promise.resolve(i);if(e.length<3&&(s=s.then(p)),process.env.NODE_ENV!=="production"&&e.length>2){const c=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
14
+ ${e.toString()}
15
+ . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof i=="object"&&"then"in i)s=s.then(h=>p._called?h:(R(c),Promise.reject(new Error("Invalid navigation guard"))));else if(i!==void 0&&!p._called){R(c),a(new Error("Invalid navigation guard"));return}}s.catch(c=>a(c))})}function Wn(e,t,n){let o=0;return function(){o++===1&&R(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,o===1&&e.apply(null,arguments)}}function _e(e,t,n,o,r=l=>l()){const l=[];for(const u of e){process.env.NODE_ENV!=="production"&&!u.components&&!u.children.length&&R(`Record with path "${u.path}" is either missing a "component(s)" or "children" property.`);for(const d in u.components){let a=u.components[d];if(process.env.NODE_ENV!=="production"){if(!a||typeof a!="object"&&typeof a!="function")throw R(`Component "${d}" in record with path "${u.path}" is not a valid component. Received "${String(a)}".`),new Error("Invalid route component");if("then"in a){R(`Component "${d}" in record with path "${u.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const p=a;a=()=>p}else a.__asyncLoader&&!a.__warnedDefineAsync&&(a.__warnedDefineAsync=!0,R(`Component "${d}" in record with path "${u.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!u.instances[d]))if(ot(a)){const i=(a.__vccOpts||a)[t];i&&l.push(K(i,n,o,u,d,r))}else{let p=a();process.env.NODE_ENV!=="production"&&!("catch"in p)&&(R(`Component "${d}" in record with path "${u.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),p=Promise.resolve(p)),l.push(()=>p.then(i=>{if(!i)throw new Error(`Couldn't resolve component "${d}" at "${u.path}"`);const s=Wt(i)?i.default:i;u.mods[d]=i,u.components[d]=s;const h=(s.__vccOpts||s)[t];return h&&K(h,n,o,u,d,r)()}))}}}return l}function Je(e){const t=m.inject($e),n=m.inject(pt);let o=!1,r=null;const l=m.computed(()=>{const i=m.unref(e.to);return process.env.NODE_ENV!=="production"&&(!o||i!==r)&&(fe(i)||(o?R(`Invalid value for prop "to" in useLink()
16
+ - to:`,i,`
17
+ - previous to:`,r,`
18
+ - props:`,e):R(`Invalid value for prop "to" in useLink()
19
+ - to:`,i,`
20
+ - props:`,e)),r=i,o=!0),t.resolve(i)}),u=m.computed(()=>{const{matched:i}=l.value,{length:s}=i,c=i[s-1],h=n.matched;if(!c||!h.length)return-1;const y=h.findIndex(q.bind(null,c));if(y>-1)return y;const _=Ye(i[s-2]);return s>1&&Ye(c)===_&&h[h.length-1].path!==_?h.findIndex(q.bind(null,i[s-2])):y}),d=m.computed(()=>u.value>-1&&Kn(n.params,l.value.params)),a=m.computed(()=>u.value>-1&&u.value===n.matched.length-1&&lt(n.params,l.value.params));function p(i={}){if(Gn(i)){const s=t[m.unref(e.replace)?"replace":"push"](m.unref(e.to)).catch(ne);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>s),s}return Promise.resolve()}if(process.env.NODE_ENV!=="production"&&z){const i=m.getCurrentInstance();if(i){const s={route:l.value,isActive:d.value,isExactActive:a.value,error:null};i.__vrl_devtools=i.__vrl_devtools||[],i.__vrl_devtools.push(s),m.watchEffect(()=>{s.route=l.value,s.isActive=d.value,s.isExactActive=a.value,s.error=fe(m.unref(e.to))?null:'Invalid "to" value'},{flush:"post"})}}return{route:l,href:m.computed(()=>l.value.href),isActive:d,isExactActive:a,navigate:p}}function Un(e){return e.length===1?e[0]:e}const Hn=m.defineComponent({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:Je,setup(e,{slots:t}){const n=m.reactive(Je(e)),{options:o}=m.inject($e),r=m.computed(()=>({[Xe(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Xe(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&Un(t.default(n));return e.custom?l:m.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},l)}}}),zn=Hn;function Gn(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Kn(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!W(r)||r.length!==o.length||o.some((l,u)=>l!==r[u]))return!1}return!0}function Ye(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Xe=(e,t,n)=>e??t??n,qn=m.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){process.env.NODE_ENV!=="production"&&Qn();const o=m.inject(Pe),r=m.computed(()=>e.route||o.value),l=m.inject(Qe,0),u=m.computed(()=>{let p=m.unref(l);const{matched:i}=r.value;let s;for(;(s=i[p])&&!s.components;)p++;return p}),d=m.computed(()=>r.value.matched[u.value]);m.provide(Qe,m.computed(()=>u.value+1)),m.provide(Bn,d),m.provide(Pe,r);const a=m.ref();return m.watch(()=>[a.value,d.value,e.name],([p,i,s],[c,h,y])=>{i&&(i.instances[s]=p,h&&h!==i&&p&&p===c&&(i.leaveGuards.size||(i.leaveGuards=h.leaveGuards),i.updateGuards.size||(i.updateGuards=h.updateGuards))),p&&i&&(!h||!q(i,h)||!c)&&(i.enterCallbacks[s]||[]).forEach(_=>_(p))},{flush:"post"}),()=>{const p=r.value,i=e.name,s=d.value,c=s&&s.components[i];if(!c)return Ze(n.default,{Component:c,route:p});const h=s.props[i],y=h?h===!0?p.params:typeof h=="function"?h(p):h:null,_=k=>{k.component.isUnmounted&&(s.instances[i]=null)},b=m.h(c,C({},y,t,{onVnodeUnmounted:_,ref:a}));if(process.env.NODE_ENV!=="production"&&z&&b.ref){const k={depth:u.value,name:s.name,path:s.path,meta:s.meta};(W(b.ref)?b.ref.map(w=>w.i):[b.ref.i]).forEach(w=>{w.__vrv_devtools=k})}return Ze(n.default,{Component:b,route:p})||b}}});function Ze(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Fn=qn;function Qn(){const e=m.getCurrentInstance(),t=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const o=t==="KeepAlive"?"keep-alive":"transition";R(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
21
+ Use slot props instead:
22
+
23
+ <router-view v-slot="{ Component }">
24
+ <${o}>
25
+ <component :is="Component" />
26
+ </${o}>
27
+ </router-view>`)}}function te(e,t){const n=C({},e,{matched:e.matched.map(o=>io(o,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function ce(e){return{_custom:{display:e}}}let Jn=0;function Yn(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const o=Jn++;Bt({id:"org.vuejs.router"+(o?"."+o:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},r=>{typeof r.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),r.on.inspectComponent((i,s)=>{i.instanceData&&i.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:te(t.currentRoute.value,"Current Route")})}),r.on.visitComponentTree(({treeNode:i,componentInstance:s})=>{if(s.__vrv_devtools){const c=s.__vrv_devtools;i.tags.push({label:(c.name?`${c.name.toString()}: `:"")+c.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:mt})}W(s.__vrl_devtools)&&(s.__devtoolsApi=r,s.__vrl_devtools.forEach(c=>{let h=c.route.path,y=yt,_="",b=0;c.error?(h=c.error,y=no,b=oo):c.isExactActive?(y=vt,_="This is exactly active"):c.isActive&&(y=gt,_="This link is active"),i.tags.push({label:h,textColor:b,tooltip:_,backgroundColor:y})}))}),m.watch(t.currentRoute,()=>{a(),r.notifyComponentUpdate(),r.sendInspectorTree(d),r.sendInspectorState(d)});const l="router:navigations:"+o;r.addTimelineLayer({id:l,label:`Router${o?" "+o:""} Navigations`,color:4237508}),t.onError((i,s)=>{r.addTimelineEvent({layerId:l,event:{title:"Error during Navigation",subtitle:s.fullPath,logType:"error",time:r.now(),data:{error:i},groupId:s.meta.__navigationId}})});let u=0;t.beforeEach((i,s)=>{const c={guard:ce("beforeEach"),from:te(s,"Current Location during this navigation"),to:te(i,"Target location")};Object.defineProperty(i.meta,"__navigationId",{value:u++}),r.addTimelineEvent({layerId:l,event:{time:r.now(),title:"Start of navigation",subtitle:i.fullPath,data:c,groupId:i.meta.__navigationId}})}),t.afterEach((i,s,c)=>{const h={guard:ce("afterEach")};c?(h.failure={_custom:{type:Error,readOnly:!0,display:c?c.message:"",tooltip:"Navigation Failure",value:c}},h.status=ce("❌")):h.status=ce("✅"),h.from=te(s,"Current Location during this navigation"),h.to=te(i,"Target location"),r.addTimelineEvent({layerId:l,event:{title:"End of navigation",subtitle:i.fullPath,time:r.now(),data:h,logType:c?"warning":"default",groupId:i.meta.__navigationId}})});const d="router-inspector:"+o;r.addInspector({id:d,label:"Routes"+(o?" "+o:""),icon:"book",treeFilterPlaceholder:"Search routes"});function a(){if(!p)return;const i=p;let s=n.getRoutes().filter(c=>!c.parent||!c.parent.record.components);s.forEach(wt),i.filter&&(s=s.filter(c=>Ce(c,i.filter.toLowerCase()))),s.forEach(c=>_t(c,t.currentRoute.value)),i.rootNodes=s.map(Et)}let p;r.on.getInspectorTree(i=>{p=i,i.app===e&&i.inspectorId===d&&a()}),r.on.getInspectorState(i=>{if(i.app===e&&i.inspectorId===d){const c=n.getRoutes().find(h=>h.record.__vd_id===i.nodeId);c&&(i.state={options:Zn(c)})}}),r.sendInspectorTree(d),r.sendInspectorState(d)})}function Xn(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function Zn(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(o=>`${o.name}${Xn(o)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(o=>o.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(o=>o.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const mt=15485081,gt=2450411,vt=8702998,eo=2282478,yt=16486972,to=6710886,no=16704226,oo=12131356;function Et(e){const t=[],{record:n}=e;n.name!=null&&t.push({label:String(n.name),textColor:0,backgroundColor:eo}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:yt}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:mt}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:vt}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:gt}),n.redirect&&t.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:to});let o=n.__vd_id;return o==null&&(o=String(ro++),n.__vd_id=o),{id:o,label:n.path,tags:t,children:e.children.map(Et)}}let ro=0;const so=/^\/(.*)\/([a-z]*)$/;function _t(e,t){const n=t.matched.length&&q(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some(o=>q(o,e.record))),e.children.forEach(o=>_t(o,t))}function wt(e){e.__vd_match=!1,e.children.forEach(wt)}function Ce(e,t){const n=String(e.re).match(so);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach(u=>Ce(u,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const r=e.record.path.toLowerCase(),l=X(r);return!t.startsWith("/")&&(l.includes(t)||r.includes(t))||l.startsWith(t)||r.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(u=>Ce(u,t))}function io(e,t){const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n}function ao(e){const t=Cn(e.routes,e),n=e.parseQuery||jn,o=e.stringifyQuery||Fe,r=e.history;if(process.env.NODE_ENV!=="production"&&!r)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const l=ee(),u=ee(),d=ee(),a=m.shallowRef(G);let p=G;z&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const i=ye.bind(null,f=>""+f),s=ye.bind(null,en),c=ye.bind(null,X);function h(f,v){let g,E;return ft(f)?(g=t.getRecordMatcher(f),process.env.NODE_ENV!=="production"&&!g&&R(`Parent route "${String(f)}" not found when adding child route`,v),E=v):E=f,t.addRoute(E,g)}function y(f){const v=t.getRecordMatcher(f);v?t.removeRoute(v):process.env.NODE_ENV!=="production"&&R(`Cannot remove non-existent route "${String(f)}"`)}function _(){return t.getRoutes().map(f=>f.record)}function b(f){return!!t.getRecordMatcher(f)}function k(f,v){if(v=C({},v||a.value),typeof f=="string"){const N=Ee(n,f,v.path),V=t.resolve({path:N.path},v),Q=r.createHref(N.fullPath);return process.env.NODE_ENV!=="production"&&(Q.startsWith("//")?R(`Location "${f}" resolved to "${Q}". A resolved location cannot start with multiple slashes.`):V.matched.length||R(`No match found for location with path "${f}"`)),C(N,V,{params:c(V.params),hash:X(N.hash),redirectedFrom:void 0,href:Q})}if(process.env.NODE_ENV!=="production"&&!fe(f))return R(`router.resolve() was passed an invalid location. This will fail in production.
28
+ - Location:`,f),k({});let g;if(f.path!=null)process.env.NODE_ENV!=="production"&&"params"in f&&!("name"in f)&&Object.keys(f.params).length&&R(`Path "${f.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),g=C({},f,{path:Ee(n,f.path,v.path).path});else{const N=C({},f.params);for(const V in N)N[V]==null&&delete N[V];g=C({},f,{params:s(N)}),v.params=s(v.params)}const E=t.resolve(g,v),A=f.hash||"";process.env.NODE_ENV!=="production"&&A&&!A.startsWith("#")&&R(`A \`hash\` should always start with the character "#". Replace "${A}" with "#${A}".`),E.params=i(c(E.params));const I=on(o,C({},f,{hash:Yt(A),path:E.path})),P=r.createHref(I);return process.env.NODE_ENV!=="production"&&(P.startsWith("//")?R(`Location "${f}" resolved to "${P}". A resolved location cannot start with multiple slashes.`):E.matched.length||R(`No match found for location with path "${f.path!=null?f.path:f}"`)),C({fullPath:I,hash:A,query:o===Fe?Ln(f.query):f.query||{}},E,{redirectedFrom:void 0,href:P})}function S(f){return typeof f=="string"?Ee(n,f,a.value.path):C({},f)}function w(f,v){if(p!==f)return Z(8,{from:v,to:f})}function x(f){return M(f)}function D(f){return x(C(S(f),{replace:!0}))}function L(f){const v=f.matched[f.matched.length-1];if(v&&v.redirect){const{redirect:g}=v;let E=typeof g=="function"?g(f):g;if(typeof E=="string"&&(E=E.includes("?")||E.includes("#")?E=S(E):{path:E},E.params={}),process.env.NODE_ENV!=="production"&&E.path==null&&!("name"in E))throw R(`Invalid redirect found:
29
+ ${JSON.stringify(E,null,2)}
30
+ when navigating to "${f.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return C({query:f.query,hash:f.hash,params:E.path!=null?{}:f.params},E)}}function M(f,v){const g=p=k(f),E=a.value,A=f.state,I=f.force,P=f.replace===!0,N=L(g);if(N)return M(C(S(N),{state:typeof N=="object"?C({},A,N.state):A,force:I,replace:P}),v||g);const V=g;V.redirectedFrom=v;let Q;return!I&&Me(o,E,g)&&(Q=Z(16,{to:V,from:E}),Ve(E,E,!0,!1)),(Q?Promise.resolve(Q):U(V,E)).catch(j=>H(j)?H(j,2)?j:me(j):pe(j,V,E)).then(j=>{if(j){if(H(j,2))return process.env.NODE_ENV!=="production"&&Me(o,k(j.to),V)&&v&&(v._count=v._count?v._count+1:1)>30?(R(`Detected a possibly infinite redirection in a navigation guard when going from "${E.fullPath}" to "${V.fullPath}". Aborting to avoid a Stack Overflow.
31
+ Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):M(C({replace:P},S(j.to),{state:typeof j.to=="object"?C({},A,j.to.state):A,force:I}),v||V)}else j=$(V,E,!0,P,A);return O(V,E,j),j})}function F(f,v){const g=w(f,v);return g?Promise.reject(g):Promise.resolve()}function B(f){const v=ae.values().next().value;return v&&typeof v.runWithContext=="function"?v.runWithContext(f):f()}function U(f,v){let g;const[E,A,I]=co(f,v);g=_e(E.reverse(),"beforeRouteLeave",f,v);for(const N of E)N.leaveGuards.forEach(V=>{g.push(K(V,f,v))});const P=F.bind(null,f,v);return g.push(P),J(g).then(()=>{g=[];for(const N of l.list())g.push(K(N,f,v));return g.push(P),J(g)}).then(()=>{g=_e(A,"beforeRouteUpdate",f,v);for(const N of A)N.updateGuards.forEach(V=>{g.push(K(V,f,v))});return g.push(P),J(g)}).then(()=>{g=[];for(const N of I)if(N.beforeEnter)if(W(N.beforeEnter))for(const V of N.beforeEnter)g.push(K(V,f,v));else g.push(K(N.beforeEnter,f,v));return g.push(P),J(g)}).then(()=>(f.matched.forEach(N=>N.enterCallbacks={}),g=_e(I,"beforeRouteEnter",f,v,B),g.push(P),J(g))).then(()=>{g=[];for(const N of u.list())g.push(K(N,f,v));return g.push(P),J(g)}).catch(N=>H(N,8)?N:Promise.reject(N))}function O(f,v,g){d.list().forEach(E=>B(()=>E(f,v,g)))}function $(f,v,g,E,A){const I=w(f,v);if(I)return I;const P=v===G,N=z?history.state:{};g&&(E||P?r.replace(f.fullPath,C({scroll:P&&N&&N.scroll},A)):r.push(f.fullPath,A)),a.value=f,Ve(f,v,g,P),me()}let T;function xt(){T||(T=r.listen((f,v,g)=>{if(!Ie.listening)return;const E=k(f),A=L(E);if(A){M(C(A,{replace:!0,force:!0}),E).catch(ne);return}p=E;const I=a.value;z&&dn(Le(I.fullPath,g.delta),de()),U(E,I).catch(P=>H(P,12)?P:H(P,2)?(M(C(S(P.to),{force:!0}),E).then(N=>{H(N,20)&&!g.delta&&g.type===re.pop&&r.go(-1,!1)}).catch(ne),Promise.reject()):(g.delta&&r.go(-g.delta,!1),pe(P,E,I))).then(P=>{P=P||$(E,I,!1),P&&(g.delta&&!H(P,8)?r.go(-g.delta,!1):g.type===re.pop&&H(P,20)&&r.go(-1,!1)),O(E,I,P)}).catch(ne)}))}let he=ee(),Te=ee(),ie;function pe(f,v,g){me(f);const E=Te.list();return E.length?E.forEach(A=>A(f,v,g)):(process.env.NODE_ENV!=="production"&&R("uncaught error during route navigation:"),console.error(f)),Promise.reject(f)}function $t(){return ie&&a.value!==G?Promise.resolve():new Promise((f,v)=>{he.add([f,v])})}function me(f){return ie||(ie=!f,xt(),he.list().forEach(([v,g])=>f?g(f):v()),he.reset()),f}function Ve(f,v,g,E){const{scrollBehavior:A}=e;if(!z||!A)return Promise.resolve();const I=!g&&hn(Le(f.fullPath,0))||(E||!g)&&history.state&&history.state.scroll||null;return m.nextTick().then(()=>A(f,v,I)).then(P=>P&&fn(P)).catch(P=>pe(P,f,v))}const ge=f=>r.go(f);let ve;const ae=new Set,Ie={currentRoute:a,listening:!0,addRoute:h,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:_,resolve:k,options:e,push:x,replace:D,go:ge,back:()=>ge(-1),forward:()=>ge(1),beforeEach:l.add,beforeResolve:u.add,afterEach:d.add,onError:Te.add,isReady:$t,install(f){const v=this;f.component("RouterLink",zn),f.component("RouterView",Fn),f.config.globalProperties.$router=v,Object.defineProperty(f.config.globalProperties,"$route",{enumerable:!0,get:()=>m.unref(a)}),z&&!ve&&a.value===G&&(ve=!0,x(r.location).catch(A=>{process.env.NODE_ENV!=="production"&&R("Unexpected error when starting the router:",A)}));const g={};for(const A in G)Object.defineProperty(g,A,{get:()=>a.value[A],enumerable:!0});f.provide($e,v),f.provide(pt,m.shallowReactive(g)),f.provide(Pe,a);const E=f.unmount;ae.add(f),f.unmount=function(){ae.delete(f),ae.size<1&&(p=G,T&&T(),T=null,a.value=G,ve=!1,ie=!1),E()},process.env.NODE_ENV!=="production"&&z&&Yn(f,v,t)}};function J(f){return f.reduce((v,g)=>v.then(()=>B(g)),Promise.resolve())}return Ie}function co(e,t){const n=[],o=[],r=[],l=Math.max(t.matched.length,e.matched.length);for(let u=0;u<l;u++){const d=t.matched[u];d&&(e.matched.find(p=>q(p,d))?o.push(d):n.push(d));const a=e.matched[u];a&&(t.matched.find(p=>q(p,a))||r.push(a))}return[n,o,r]}const bt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},lo={},uo={class:"flex items-center justify-between"};function fo(e,t){return m.openBlock(),m.createElementBlock("div",uo,t[0]||(t[0]=[m.createElementVNode("div",{class:"flex items-center gap-2"},[m.createElementVNode("img",{width:"40",src:"https://nuxterror.com/logo.svg",alt:""}),m.createElementVNode("h6",{class:"text-xl font-bold"},"Nuxt Charts")],-1)]))}const St=bt(lo,[["render",fo]]),ho={},po={class:"rounded font-medium inline-flex items-center focus:outline-hidden disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75 transition-colors px-2.5 py-1.5 text-sm gap-1.5 text-background bg-primary hover:bg-primary/75 disabled:bg-(--ui-primary) aria-disabled:bg-(--ui-primary) focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--ui-primary)"};function mo(e,t){return m.openBlock(),m.createElementBlock("button",po,[m.renderSlot(e.$slots,"default")])}const Rt=bt(ho,[["render",mo]]);function go(e){return m.getCurrentScope()?(m.onScopeDispose(e),!0):!1}const we=new WeakMap,vo=(...e)=>{var t;const n=e[0],o=(t=m.getCurrentInstance())==null?void 0:t.proxy;if(o==null&&!m.hasInjectionContext())throw new Error("injectLocal must be called in setup");return o&&we.has(o)&&n in we.get(o)?we.get(o)[n]:m.inject(...e)},yo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Eo=Object.prototype.toString,_o=e=>Eo.call(e)==="[object Object]",wo=()=>{};function bo(e,t){function n(...o){return new Promise((r,l)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(l)})}return n}const Nt=e=>e();function So(e=Nt,t={}){const{initialState:n="active"}=t,o=kt(n==="active");function r(){o.value=!1}function l(){o.value=!0}const u=(...d)=>{o.value&&e(...d)};return{isActive:m.readonly(o),pause:r,resume:l,eventFilter:u}}function et(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Ro(e){return m.getCurrentInstance()}function be(e){return Array.isArray(e)?e:[e]}function kt(...e){if(e.length!==1)return m.toRef(...e);const t=e[0];return typeof t=="function"?m.readonly(m.customRef(()=>({get:t,set:wo}))):m.ref(t)}function No(e,t,n={}){const{eventFilter:o=Nt,...r}=n;return m.watch(e,bo(o,t),r)}function ko(e,t,n={}){const{eventFilter:o,initialState:r="active",...l}=n,{eventFilter:u,pause:d,resume:a,isActive:p}=So(o,{initialState:r});return{stop:No(e,t,{...l,eventFilter:u}),pause:d,resume:a,isActive:p}}function Ot(e,t=!0,n){Ro()?m.onMounted(e,n):t?e():m.nextTick(e)}function Oo(e,t,n){return m.watch(e,t,{...n,immediate:!0})}const se=yo?window:void 0;function Pt(e){var t;const n=m.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Ae(...e){const t=[],n=()=>{t.forEach(d=>d()),t.length=0},o=(d,a,p,i)=>(d.addEventListener(a,p,i),()=>d.removeEventListener(a,p,i)),r=m.computed(()=>{const d=be(m.toValue(e[0])).filter(a=>a!=null);return d.every(a=>typeof a!="string")?d:void 0}),l=Oo(()=>{var d,a;return[(a=(d=r.value)==null?void 0:d.map(p=>Pt(p)))!=null?a:[se].filter(p=>p!=null),be(m.toValue(r.value?e[1]:e[0])),be(m.unref(r.value?e[2]:e[1])),m.toValue(r.value?e[3]:e[2])]},([d,a,p,i])=>{if(n(),!(d!=null&&d.length)||!(a!=null&&a.length)||!(p!=null&&p.length))return;const s=_o(i)?{...i}:i;t.push(...d.flatMap(c=>a.flatMap(h=>p.map(y=>o(c,h,y,s)))))},{flush:"post"}),u=()=>{l(),n()};return go(n),u}function Po(){const e=m.shallowRef(!1),t=m.getCurrentInstance();return t&&m.onMounted(()=>{e.value=!0},t),e}function Co(e){const t=Po();return m.computed(()=>(t.value,!!e()))}const Ao=Symbol("vueuse-ssr-width");function xo(){const e=m.hasInjectionContext()?vo(Ao,null):null;return typeof e=="number"?e:void 0}function $o(e,t={}){const{window:n=se,ssrWidth:o=xo()}=t,r=Co(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=m.ref(typeof o=="number"),u=m.shallowRef(),d=m.shallowRef(!1),a=p=>{d.value=p.matches};return m.watchEffect(()=>{if(l.value){l.value=!r.value;const p=m.toValue(e).split(",");d.value=p.some(i=>{const s=i.includes("not all"),c=i.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),h=i.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let y=!!(c||h);return c&&y&&(y=o>=et(c[1])),h&&y&&(y=o<=et(h[1])),s?!y:y});return}r.value&&(u.value=n.matchMedia(m.toValue(e)),d.value=u.value.matches)}),Ae(u,"change",a,{passive:!0}),m.computed(()=>d.value)}const le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ue="__vueuse_ssr_handlers__",To=Vo();function Vo(){return ue in le||(le[ue]=le[ue]||{}),le[ue]}function Ct(e,t){return To[e]||t}function Io(e){return $o("(prefers-color-scheme: dark)",e)}function Do(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Mo={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},tt="vueuse-storage";function jo(e,t,n,o={}){var r;const{flush:l="pre",deep:u=!0,listenToStorageChanges:d=!0,writeDefaults:a=!0,mergeDefaults:p=!1,shallow:i,window:s=se,eventFilter:c,onError:h=O=>{console.error(O)},initOnMounted:y}=o,_=(i?m.shallowRef:m.ref)(typeof t=="function"?t():t),b=m.computed(()=>m.toValue(e));if(!n)try{n=Ct("getDefaultStorage",()=>{var O;return(O=se)==null?void 0:O.localStorage})()}catch(O){h(O)}if(!n)return _;const k=m.toValue(t),S=Do(k),w=(r=o.serializer)!=null?r:Mo[S],{pause:x,resume:D}=ko(_,()=>M(_.value),{flush:l,deep:u,eventFilter:c});m.watch(b,()=>B(),{flush:l}),s&&d&&Ot(()=>{n instanceof Storage?Ae(s,"storage",B,{passive:!0}):Ae(s,tt,U),y&&B()}),y||B();function L(O,$){if(s){const T={key:b.value,oldValue:O,newValue:$,storageArea:n};s.dispatchEvent(n instanceof Storage?new StorageEvent("storage",T):new CustomEvent(tt,{detail:T}))}}function M(O){try{const $=n.getItem(b.value);if(O==null)L($,null),n.removeItem(b.value);else{const T=w.write(O);$!==T&&(n.setItem(b.value,T),L($,T))}}catch($){h($)}}function F(O){const $=O?O.newValue:n.getItem(b.value);if($==null)return a&&k!=null&&n.setItem(b.value,w.write(k)),k;if(!O&&p){const T=w.read($);return typeof p=="function"?p(T,k):S==="object"&&!Array.isArray(T)?{...k,...T}:T}else return typeof $!="string"?$:w.read($)}function B(O){if(!(O&&O.storageArea!==n)){if(O&&O.key==null){_.value=k;return}if(!(O&&O.key!==b.value)){x();try{(O==null?void 0:O.newValue)!==w.write(_.value)&&(_.value=F(O))}catch($){h($)}finally{O?m.nextTick(D):D()}}}}function U(O){B(O.detail)}return _}const Lo="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Bo(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=se,storage:l,storageKey:u="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:a,emitAuto:p,disableTransition:i=!0}=e,s={auto:"",light:"light",dark:"dark",...e.modes||{}},c=Io({window:r}),h=m.computed(()=>c.value?"dark":"light"),y=a||(u==null?kt(o):jo(u,o,l,{window:r,listenToStorageChanges:d})),_=m.computed(()=>y.value==="auto"?h.value:y.value),b=Ct("updateHTMLAttrs",(x,D,L)=>{const M=typeof x=="string"?r==null?void 0:r.document.querySelector(x):Pt(x);if(!M)return;const F=new Set,B=new Set;let U=null;if(D==="class"){const $=L.split(/\s/g);Object.values(s).flatMap(T=>(T||"").split(/\s/g)).filter(Boolean).forEach(T=>{$.includes(T)?F.add(T):B.add(T)})}else U={key:D,value:L};if(F.size===0&&B.size===0&&U===null)return;let O;i&&(O=r.document.createElement("style"),O.appendChild(document.createTextNode(Lo)),r.document.head.appendChild(O));for(const $ of F)M.classList.add($);for(const $ of B)M.classList.remove($);U&&M.setAttribute(U.key,U.value),i&&(r.getComputedStyle(O).opacity,document.head.removeChild(O))});function k(x){var D;b(t,n,(D=s[x])!=null?D:x)}function S(x){e.onChanged?e.onChanged(x,k):k(x)}m.watch(_,S,{flush:"post",immediate:!0}),Ot(()=>S(_.value));const w=m.computed({get(){return p?y.value:_.value},set(x){y.value=x}});return Object.assign(w,{store:y,system:h,state:_})}const Wo={class:"max-w-7xl mx-auto py-4 flex items-center justify-between"},Uo=m.defineComponent({__name:"App",setup(e){const t=Bo(),n=m.computed(()=>t.value==="dark");function o(){t.value=n.value?"light":"dark"}return(r,l)=>{const u=m.resolveComponent("RouterLink"),d=m.resolveComponent("RouterView");return m.openBlock(),m.createElementBlock("div",null,[m.createElementVNode("div",Wo,[m.createVNode(u,{to:"/"},{default:m.withCtx(()=>[m.createVNode(St)]),_:1}),m.createVNode(Rt,{icon:n.value?"i-heroicons-moon-20-solid":"i-heroicons-sun-20-solid",color:"gray",variant:"ghost","aria-label":"Theme",onClick:o,class:"cursor-pointer"},null,8,["icon"])]),m.createVNode(d)])}}}),At=m.createApp(Uo),Ho=ao({routes:[{path:"/",name:"Home",component:()=>Promise.resolve().then(()=>require("./Homepage-BTQ4NMLP.cjs"))}],history:vn()});At.use(Ho);At.mount("#app");const zo={};exports.Button=Rt;exports.Logo=St;exports.index=zo;