@vtj/pro 0.16.36 → 0.17.0

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.
Files changed (53) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +4 -4
  12. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +3 -3
  13. package/dist/@vtj/materials/deps/ant-design-vue/dayjs/dayjs.min.js +1 -1
  14. package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
  15. package/dist/@vtj/materials/deps/element-plus/index.full.min.js +7 -7
  16. package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
  17. package/dist/@vtj/materials/deps/vue/vue.global.js +137 -74
  18. package/dist/@vtj/materials/deps/vue/vue.global.prod.js +8 -8
  19. package/dist/assets/{@element-plus-icons-vue-DfQfjj5s.js → @element-plus-icons-vue-CXRJnQYo.js} +1 -1
  20. package/dist/assets/{@vueuse-DGhgU4Wj.js → @vueuse-w7qmHU3H.js} +1 -1
  21. package/dist/assets/Editor-BcijGQZx-bQZe_R8O.js +531 -0
  22. package/dist/assets/{Editor-DVUZplwr-DKStJloP.css → Editor-BcijGQZx-xwJs2FyB.css} +1 -1
  23. package/dist/assets/{auth-CxTnx6Ld.js → auth-C4mrJ31Y.js} +1 -1
  24. package/dist/assets/dayjs-CxR8wwn9.js +1 -0
  25. package/dist/assets/element-plus-Bgelixwu.js +39 -0
  26. package/dist/assets/{element-plus-AP7zs95r.css → element-plus-Bw1qTWaj.css} +1 -1
  27. package/dist/assets/index-BlFihnwD.js +1 -0
  28. package/dist/assets/index-ZU10z4rD.js +2 -0
  29. package/dist/assets/mockjs-C_1w07tn.js +9 -0
  30. package/dist/assets/page-Xd5VkPhH.js +2 -0
  31. package/dist/assets/preview-BrO82JG-.js +2 -0
  32. package/dist/assets/shared-Bc0G8KpM.js +25 -0
  33. package/dist/assets/uni-page-BrivKbVY.js +1 -0
  34. package/dist/assets/utils-BBxwIlQH.js +1 -0
  35. package/dist/assets/vue-BaPf1eHv.js +35 -0
  36. package/dist/assets/{vue-router-DLyhMsB6.js → vue-router-B2eGcVGj.js} +3 -3
  37. package/dist/assets/{vxe-BJJKGxpR.js → vxe-C7ZzhQxY.js} +1 -1
  38. package/dist/index.html +11 -11
  39. package/dist/uni/assets/{index-CkFVRzRq.js → index-D-hwt8LT.js} +9 -9
  40. package/dist/uni/index.html +1 -1
  41. package/package.json +13 -13
  42. package/dist/assets/Editor-DVUZplwr-DPbn-wdM.js +0 -525
  43. package/dist/assets/dayjs-GGXMDmCk.js +0 -1
  44. package/dist/assets/element-plus-ClWnlNxy.js +0 -39
  45. package/dist/assets/index-DFenbaHc.js +0 -1
  46. package/dist/assets/index-RWflYXk6.js +0 -2
  47. package/dist/assets/mockjs-C_F9xDf5.js +0 -9
  48. package/dist/assets/page-wthyLn0Y.js +0 -2
  49. package/dist/assets/preview-iM1wzdeR.js +0 -2
  50. package/dist/assets/shared-Df95_Dth.js +0 -25
  51. package/dist/assets/uni-page-hurVTe5x.js +0 -1
  52. package/dist/assets/utils-CUeXtXwr.js +0 -1
  53. package/dist/assets/vue-Cs4cahp0.js +0 -35
@@ -1,9 +1,9 @@
1
- import{l as M,$ as dt,H as pt,G as mt,u as $,av as gt,s as Rt,x as Fe,A as vt,c as B,a1 as Et,y as Qe,d as At,r as yt,t as pe}from"./vue-Cs4cahp0.js";/*!
1
+ import{m as M,$ as dt,H as pt,G as mt,u as $,av as gt,s as vt,y as Fe,n as Rt,d as B,a1 as Et,z as ze,e as At,r as yt,v as pe}from"./vue-BaPf1eHv.js";/*!
2
2
  * vue-router v4.6.4
3
3
  * (c) 2025 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */const F=typeof document!="undefined";function ze(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ye(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ze(e.default)}const N=Object.assign;function me(e,t){const n={};for(const r in t){const o=t[r];n[r]=k(o)?o.map(e):e(o)}return n}const ee=()=>{},k=Array.isArray;function be(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Je=/#/g,Ot=/&/g,Nt=/\//g,Ct=/=/g,_t=/\?/g,Xe=/\+/g,Pt=/%5B/g,It=/%5D/g,Ze=/%5E/g,wt=/%60/g,$e=/%7B/g,St=/%7C/g,et=/%7D/g,bt=/%20/g;function Oe(e){return e==null?"":encodeURI(""+e).replace(St,"|").replace(Pt,"[").replace(It,"]")}function Tt(e){return Oe(e).replace($e,"{").replace(et,"}").replace(Ze,"^")}function Ee(e){return Oe(e).replace(Xe,"%2B").replace(bt,"+").replace(Je,"%23").replace(Ot,"%26").replace(wt,"`").replace($e,"{").replace(et,"}").replace(Ze,"^")}function xt(e){return Ee(e).replace(Ct,"%3D")}function Dt(e){return Oe(e).replace(Je,"%23").replace(_t,"%3F")}function Gt(e){return Dt(e).replace(Nt,"%2F")}function ne(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Lt=/\/$/,kt=e=>e.replace(Lt,"");function ge(e,t,n="/"){let r,o={},u="",h="";const d=t.indexOf("#");let i=t.indexOf("?");return i=d>=0&&i>d?-1:i,i>=0&&(r=t.slice(0,i),u=t.slice(i,d>0?d:t.length),o=e(u.slice(1))),d>=0&&(r=r||t.slice(0,d),h=t.slice(d,t.length)),r=Ut(r!=null?r:t,n),{fullPath:r+u+h,path:r,query:o,hash:ne(h)}}function Bt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Te(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Vt(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Q(t.matched[r],n.matched[o])&&tt(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 tt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Mt(e[n],t[n]))return!1;return!0}function Mt(e,t){return k(e)?xe(e,t):k(t)?xe(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function xe(e,t){return k(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Ut(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let u=n.length-1,h,d;for(h=0;h<r.length;h++)if(d=r[h],d!==".")if(d==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(h).join("/")}const H={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let se=(function(e){return e.pop="pop",e.push="push",e})({}),te=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});const Re="";function nt(e){if(!e)if(F){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),kt(e)}const Ht=/^[^#]+#/;function rt(e,t){return e.replace(Ht,"#")+t}function jt(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ie=()=>({left:window.scrollX,top:window.scrollY});function qt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=jt(o,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 De(e,t){return(history.state?history.state.position-t:-1)+e}const Ae=new Map;function Kt(e,t){Ae.set(e,t)}function Wt(e){const t=Ae.get(e);return Ae.delete(e),t}function Ft(e){return typeof e=="string"||e&&typeof e=="object"}function ot(e){return typeof e=="string"||typeof e=="symbol"}let w=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const st=Symbol("");let _n=(function(e){return e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated",e})({});w.MATCHER_NOT_FOUND+"",w.NAVIGATION_GUARD_REDIRECT+"",w.NAVIGATION_ABORTED+"",w.NAVIGATION_CANCELLED+"",w.NAVIGATION_DUPLICATED+"";function z(e,t){return N(new Error,{type:e,[st]:!0},t)}function V(e,t){return e instanceof Error&&st in e&&(t==null||!!(e.type&t))}const Qt=["params","query","hash"];function zt(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Qt)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Yt(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const o=n[r].replace(Xe," "),u=o.indexOf("="),h=ne(u<0?o:o.slice(0,u)),d=u<0?null:ne(o.slice(u+1));if(h in t){let i=t[h];k(i)||(i=t[h]=[i]),i.push(d)}else t[h]=d}return t}function Ge(e){let t="";for(let n in e){const r=e[n];if(n=xt(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(k(r)?r.map(o=>o&&Ee(o)):[r&&Ee(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Jt(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=k(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Ne=Symbol(""),Le=Symbol(""),ae=Symbol(""),Ce=Symbol(""),ye=Symbol("");function Z(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function it(e,t,n){const r=()=>{e[t].delete(n)};dt(r),pt(r),mt(()=>{e[t].add(n)}),e[t].add(n)}function Pn(e){const t=M(Ne,{}).value;t&&it(t,"leaveGuards",e)}function In(e){const t=M(Ne,{}).value;t&&it(t,"updateGuards",e)}function j(e,t,n,r,o,u=h=>h()){const h=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((d,i)=>{const l=c=>{c===!1?i(z(w.NAVIGATION_ABORTED,{from:n,to:t})):c instanceof Error?i(c):Ft(c)?i(z(w.NAVIGATION_GUARD_REDIRECT,{from:t,to:c})):(h&&r.enterCallbacks[o]===h&&typeof c=="function"&&h.push(c),d())},p=u(()=>e.call(r&&r.instances[o],t,n,l));let a=Promise.resolve(p);e.length<3&&(a=a.then(l)),a.catch(c=>i(c))})}function ve(e,t,n,r,o=u=>u()){const u=[];for(const h of e)for(const d in h.components){let i=h.components[d];if(!(t!=="beforeRouteEnter"&&!h.instances[d]))if(ze(i)){const l=(i.__vccOpts||i)[t];l&&u.push(j(l,n,r,h,d,o))}else{let l=i();u.push(()=>l.then(p=>{if(!p)throw new Error(`Couldn't resolve component "${d}" at "${h.path}"`);const a=Ye(p)?p.default:p;h.mods[d]=p,h.components[d]=a;const c=(a.__vccOpts||a)[t];return c&&j(c,n,r,h,d,o)()}))}}return u}function wn(e){return e.matched.every(t=>t.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(t=>t.components&&Promise.all(Object.keys(t.components).reduce((n,r)=>{const o=t.components[r];return typeof o=="function"&&!("displayName"in o)&&n.push(o().then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${t.path}". Ensure you passed a function that returns a promise.`));const h=Ye(u)?u.default:u;t.mods[r]=u,t.components[r]=h})),n},[])))).then(()=>e)}function Xt(e,t){const n=[],r=[],o=[],u=Math.max(t.matched.length,e.matched.length);for(let h=0;h<u;h++){const d=t.matched[h];d&&(e.matched.find(l=>Q(l,d))?r.push(d):n.push(d));const i=e.matched[h];i&&(t.matched.find(l=>Q(l,i))||o.push(i))}return[n,r,o]}/*!
5
+ */const F=typeof document!="undefined";function Qe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ye(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Qe(e.default)}const N=Object.assign;function me(e,t){const n={};for(const r in t){const o=t[r];n[r]=k(o)?o.map(e):e(o)}return n}const ee=()=>{},k=Array.isArray;function be(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Je=/#/g,Ot=/&/g,Nt=/\//g,Ct=/=/g,_t=/\?/g,Xe=/\+/g,Pt=/%5B/g,It=/%5D/g,Ze=/%5E/g,wt=/%60/g,$e=/%7B/g,St=/%7C/g,et=/%7D/g,bt=/%20/g;function Oe(e){return e==null?"":encodeURI(""+e).replace(St,"|").replace(Pt,"[").replace(It,"]")}function Tt(e){return Oe(e).replace($e,"{").replace(et,"}").replace(Ze,"^")}function Ee(e){return Oe(e).replace(Xe,"%2B").replace(bt,"+").replace(Je,"%23").replace(Ot,"%26").replace(wt,"`").replace($e,"{").replace(et,"}").replace(Ze,"^")}function xt(e){return Ee(e).replace(Ct,"%3D")}function Dt(e){return Oe(e).replace(Je,"%23").replace(_t,"%3F")}function Gt(e){return Dt(e).replace(Nt,"%2F")}function ne(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Lt=/\/$/,kt=e=>e.replace(Lt,"");function ge(e,t,n="/"){let r,o={},u="",h="";const d=t.indexOf("#");let i=t.indexOf("?");return i=d>=0&&i>d?-1:i,i>=0&&(r=t.slice(0,i),u=t.slice(i,d>0?d:t.length),o=e(u.slice(1))),d>=0&&(r=r||t.slice(0,d),h=t.slice(d,t.length)),r=Ut(r!=null?r:t,n),{fullPath:r+u+h,path:r,query:o,hash:ne(h)}}function Bt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Te(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Vt(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&z(t.matched[r],n.matched[o])&&tt(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function z(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function tt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Mt(e[n],t[n]))return!1;return!0}function Mt(e,t){return k(e)?xe(e,t):k(t)?xe(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function xe(e,t){return k(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Ut(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let u=n.length-1,h,d;for(h=0;h<r.length;h++)if(d=r[h],d!==".")if(d==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(h).join("/")}const H={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let se=(function(e){return e.pop="pop",e.push="push",e})({}),te=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});const ve="";function nt(e){if(!e)if(F){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),kt(e)}const Ht=/^[^#]+#/;function rt(e,t){return e.replace(Ht,"#")+t}function jt(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ie=()=>({left:window.scrollX,top:window.scrollY});function qt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=jt(o,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 De(e,t){return(history.state?history.state.position-t:-1)+e}const Ae=new Map;function Kt(e,t){Ae.set(e,t)}function Wt(e){const t=Ae.get(e);return Ae.delete(e),t}function Ft(e){return typeof e=="string"||e&&typeof e=="object"}function ot(e){return typeof e=="string"||typeof e=="symbol"}let w=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const st=Symbol("");let _n=(function(e){return e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated",e})({});w.MATCHER_NOT_FOUND+"",w.NAVIGATION_GUARD_REDIRECT+"",w.NAVIGATION_ABORTED+"",w.NAVIGATION_CANCELLED+"",w.NAVIGATION_DUPLICATED+"";function Q(e,t){return N(new Error,{type:e,[st]:!0},t)}function V(e,t){return e instanceof Error&&st in e&&(t==null||!!(e.type&t))}const zt=["params","query","hash"];function Qt(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of zt)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Yt(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const o=n[r].replace(Xe," "),u=o.indexOf("="),h=ne(u<0?o:o.slice(0,u)),d=u<0?null:ne(o.slice(u+1));if(h in t){let i=t[h];k(i)||(i=t[h]=[i]),i.push(d)}else t[h]=d}return t}function Ge(e){let t="";for(let n in e){const r=e[n];if(n=xt(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(k(r)?r.map(o=>o&&Ee(o)):[r&&Ee(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Jt(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=k(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Ne=Symbol(""),Le=Symbol(""),ae=Symbol(""),Ce=Symbol(""),ye=Symbol("");function Z(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function it(e,t,n){const r=()=>{e[t].delete(n)};dt(r),pt(r),mt(()=>{e[t].add(n)}),e[t].add(n)}function Pn(e){const t=M(Ne,{}).value;t&&it(t,"leaveGuards",e)}function In(e){const t=M(Ne,{}).value;t&&it(t,"updateGuards",e)}function j(e,t,n,r,o,u=h=>h()){const h=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((d,i)=>{const l=c=>{c===!1?i(Q(w.NAVIGATION_ABORTED,{from:n,to:t})):c instanceof Error?i(c):Ft(c)?i(Q(w.NAVIGATION_GUARD_REDIRECT,{from:t,to:c})):(h&&r.enterCallbacks[o]===h&&typeof c=="function"&&h.push(c),d())},p=u(()=>e.call(r&&r.instances[o],t,n,l));let a=Promise.resolve(p);e.length<3&&(a=a.then(l)),a.catch(c=>i(c))})}function Re(e,t,n,r,o=u=>u()){const u=[];for(const h of e)for(const d in h.components){let i=h.components[d];if(!(t!=="beforeRouteEnter"&&!h.instances[d]))if(Qe(i)){const l=(i.__vccOpts||i)[t];l&&u.push(j(l,n,r,h,d,o))}else{let l=i();u.push(()=>l.then(p=>{if(!p)throw new Error(`Couldn't resolve component "${d}" at "${h.path}"`);const a=Ye(p)?p.default:p;h.mods[d]=p,h.components[d]=a;const c=(a.__vccOpts||a)[t];return c&&j(c,n,r,h,d,o)()}))}}return u}function wn(e){return e.matched.every(t=>t.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(t=>t.components&&Promise.all(Object.keys(t.components).reduce((n,r)=>{const o=t.components[r];return typeof o=="function"&&!("displayName"in o)&&n.push(o().then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${t.path}". Ensure you passed a function that returns a promise.`));const h=Ye(u)?u.default:u;t.mods[r]=u,t.components[r]=h})),n},[])))).then(()=>e)}function Xt(e,t){const n=[],r=[],o=[],u=Math.max(t.matched.length,e.matched.length);for(let h=0;h<u;h++){const d=t.matched[h];d&&(e.matched.find(l=>z(l,d))?r.push(d):n.push(d));const i=e.matched[h];i&&(t.matched.find(l=>z(l,i))||o.push(i))}return[n,r,o]}/*!
6
6
  * vue-router v4.6.4
7
7
  * (c) 2025 Eduardo San Martin Morote
8
8
  * @license MIT
9
- */let Zt=()=>location.protocol+"//"+location.host;function at(e,t){const{pathname:n,search:r,hash:o}=t,u=e.indexOf("#");if(u>-1){let h=o.includes(e.slice(u))?e.slice(u).length:1,d=o.slice(h);return d[0]!=="/"&&(d="/"+d),Te(d,"")}return Te(n,e)+r+o}function $t(e,t,n,r){let o=[],u=[],h=null;const d=({state:c})=>{const f=at(e,location),O=n.value,C=t.value;let P=0;if(c){if(n.value=f,t.value=c,h&&h===O){h=null;return}P=C?c.position-C.position:0}else r(f);o.forEach(I=>{I(n.value,O,{delta:P,type:se.pop,direction:P?P>0?te.forward:te.back:te.unknown})})};function i(){h=n.value}function l(c){o.push(c);const f=()=>{const O=o.indexOf(c);O>-1&&o.splice(O,1)};return u.push(f),f}function p(){if(document.visibilityState==="hidden"){const{history:c}=window;if(!c.state)return;c.replaceState(N({},c.state,{scroll:ie()}),"")}}function a(){for(const c of u)c();u=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",p),document.removeEventListener("visibilitychange",p)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",p),document.addEventListener("visibilitychange",p),{pauseListeners:i,listen:l,destroy:a}}function ke(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ie():null}}function en(e){const{history:t,location:n}=window,r={value:at(e,n)},o={value:t.state};o.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(i,l,p){const a=e.indexOf("#"),c=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+i:Zt()+e+i;try{t[p?"replaceState":"pushState"](l,"",c),o.value=l}catch(f){console.error(f),n[p?"replace":"assign"](c)}}function h(i,l){u(i,N({},t.state,ke(o.value.back,i,o.value.forward,!0),l,{position:o.value.position}),!0),r.value=i}function d(i,l){const p=N({},o.value,t.state,{forward:i,scroll:ie()});u(p.current,p,!0),u(i,N({},ke(r.value,i,null),{position:p.position+1},l),!1),r.value=i}return{location:r,state:o,push:d,replace:h}}function tn(e){e=nt(e);const t=en(e),n=$t(e,t.state,t.location,t.replace);function r(u,h=!0){h||n.pauseListeners(),history.go(u)}const o=N({location:"",base:e,go:r,createHref:rt.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Sn(e=""){let t=[],n=[[Re,{}]],r=0;e=nt(e);function o(d,i={}){r++,r!==n.length&&n.splice(r),n.push([d,i])}function u(d,i,{direction:l,delta:p}){const a={direction:l,delta:p,type:se.pop};for(const c of t)c(d,i,a)}const h={location:Re,state:{},base:e,createHref:rt.bind(null,e),replace(d,i){n.splice(r--,1),o(d,i)},push(d,i){o(d,i)},listen(d){return t.push(d),()=>{const i=t.indexOf(d);i>-1&&t.splice(i,1)}},destroy(){t=[],n=[[Re,{}]],r=0},go(d,i=!0){const l=this.location,p=d<0?te.back:te.forward;r=Math.max(0,Math.min(r+d,n.length-1)),i&&u(this.location,l,{direction:p,delta:d})}};return Object.defineProperty(h,"location",{enumerable:!0,get:()=>n[r][0]}),Object.defineProperty(h,"state",{enumerable:!0,get:()=>n[r][1]}),h}function bn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),tn(e)}let K=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var T=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(T||{});const nn={type:K.Static,value:""},rn=/[a-zA-Z0-9_]/;function on(e){if(!e)return[[]];if(e==="/")return[[nn]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${l}": ${f}`)}let n=T.Static,r=n;const o=[];let u;function h(){u&&o.push(u),u=[]}let d=0,i,l="",p="";function a(){l&&(n===T.Static?u.push({type:K.Static,value:l}):n===T.Param||n===T.ParamRegExp||n===T.ParamRegExpEnd?(u.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),u.push({type:K.Param,value:l,regexp:p,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),l="")}function c(){l+=i}for(;d<e.length;){if(i=e[d++],i==="\\"&&n!==T.ParamRegExp){r=n,n=T.EscapeNext;continue}switch(n){case T.Static:i==="/"?(l&&a(),h()):i===":"?(a(),n=T.Param):c();break;case T.EscapeNext:c(),n=r;break;case T.Param:i==="("?n=T.ParamRegExp:rn.test(i)?c():(a(),n=T.Static,i!=="*"&&i!=="?"&&i!=="+"&&d--);break;case T.ParamRegExp:i===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+i:n=T.ParamRegExpEnd:p+=i;break;case T.ParamRegExpEnd:a(),n=T.Static,i!=="*"&&i!=="?"&&i!=="+"&&d--,p="";break;default:t("Unknown state");break}}return n===T.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),a(),h(),o}const Be="[^/]+?",sn={sensitive:!1,strict:!1,start:!0,end:!0};var x=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(x||{});const an=/[.+*?^${}()[\]/\\]/g;function cn(e,t){const n=N({},sn,t),r=[];let o=n.start?"^":"";const u=[];for(const l of e){const p=l.length?[]:[x.Root];n.strict&&!l.length&&(o+="/");for(let a=0;a<l.length;a++){const c=l[a];let f=x.Segment+(n.sensitive?x.BonusCaseSensitive:0);if(c.type===K.Static)a||(o+="/"),o+=c.value.replace(an,"\\$&"),f+=x.Static;else if(c.type===K.Param){const{value:O,repeatable:C,optional:P,regexp:I}=c;u.push({name:O,repeatable:C,optional:P});const y=I||Be;if(y!==Be){f+=x.BonusCustomRegExp;try{`${y}`}catch(L){throw new Error(`Invalid custom RegExp for param "${O}" (${y}): `+L.message)}}let _=C?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;a||(_=P&&l.length<2?`(?:/${_})`:"/"+_),P&&(_+="?"),o+=_,f+=x.Dynamic,P&&(f+=x.BonusOptional),C&&(f+=x.BonusRepeatable),y===".*"&&(f+=x.BonusWildcard)}p.push(f)}r.push(p)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=x.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const h=new RegExp(o,n.sensitive?"":"i");function d(l){const p=l.match(h),a={};if(!p)return null;for(let c=1;c<p.length;c++){const f=p[c]||"",O=u[c-1];a[O.name]=f&&O.repeatable?f.split("/"):f}return a}function i(l){let p="",a=!1;for(const c of e){(!a||!p.endsWith("/"))&&(p+="/"),a=!1;for(const f of c)if(f.type===K.Static)p+=f.value;else if(f.type===K.Param){const{value:O,repeatable:C,optional:P}=f,I=O in l?l[O]:"";if(k(I)&&!C)throw new Error(`Provided param "${O}" is an array but it is not repeatable (* or + modifiers)`);const y=k(I)?I.join("/"):I;if(!y)if(P)c.length<2&&(p.endsWith("/")?p=p.slice(0,-1):a=!0);else throw new Error(`Missing required param "${O}"`);p+=y}}return p||"/"}return{re:h,score:r,keys:u,parse:d,stringify:i}}function un(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===x.Static+x.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===x.Static+x.Segment?1:-1:0}function ct(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const u=un(r[n],o[n]);if(u)return u;n++}if(Math.abs(o.length-r.length)===1){if(Ve(r))return 1;if(Ve(o))return-1}return o.length-r.length}function Ve(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ln={strict:!1,end:!0,sensitive:!1};function fn(e,t,n){const r=cn(on(e.path),n),o=N(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function hn(e,t){const n=[],r=new Map;t=be(ln,t);function o(a){return r.get(a)}function u(a,c,f){const O=!f,C=Ue(a);C.aliasOf=f&&f.record;const P=be(t,a),I=[C];if("alias"in a){const L=typeof a.alias=="string"?[a.alias]:a.alias;for(const q of L)I.push(Ue(N({},C,{components:f?f.record.components:C.components,path:q,aliasOf:f?f.record:C})))}let y,_;for(const L of I){const{path:q}=L;if(c&&q[0]!=="/"){const U=c.record.path,G=U[U.length-1]==="/"?"":"/";L.path=c.record.path+(q&&G+q)}if(y=fn(L,c,P),f?f.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),O&&a.name&&!He(y)&&h(a.name)),ut(y)&&i(y),C.children){const U=C.children;for(let G=0;G<U.length;G++)u(U[G],y,f&&f.children[G])}f=f||y}return _?()=>{h(_)}:ee}function h(a){if(ot(a)){const c=r.get(a);c&&(r.delete(a),n.splice(n.indexOf(c),1),c.children.forEach(h),c.alias.forEach(h))}else{const c=n.indexOf(a);c>-1&&(n.splice(c,1),a.record.name&&r.delete(a.record.name),a.children.forEach(h),a.alias.forEach(h))}}function d(){return n}function i(a){const c=mn(a,n);n.splice(c,0,a),a.record.name&&!He(a)&&r.set(a.record.name,a)}function l(a,c){let f,O={},C,P;if("name"in a&&a.name){if(f=r.get(a.name),!f)throw z(w.MATCHER_NOT_FOUND,{location:a});P=f.record.name,O=N(Me(c.params,f.keys.filter(_=>!_.optional).concat(f.parent?f.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),a.params&&Me(a.params,f.keys.map(_=>_.name))),C=f.stringify(O)}else if(a.path!=null)C=a.path,f=n.find(_=>_.re.test(C)),f&&(O=f.parse(C),P=f.record.name);else{if(f=c.name?r.get(c.name):n.find(_=>_.re.test(c.path)),!f)throw z(w.MATCHER_NOT_FOUND,{location:a,currentLocation:c});P=f.record.name,O=N({},c.params,a.params),C=f.stringify(O)}const I=[];let y=f;for(;y;)I.unshift(y.record),y=y.parent;return{name:P,path:C,params:O,matched:I,meta:pn(I)}}e.forEach(a=>u(a));function p(){n.length=0,r.clear()}return{addRoute:u,resolve:l,removeRoute:h,clearRoutes:p,getRoutes:d,getRecordMatcher:o}}function Me(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ue(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:dn(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 dn(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function He(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pn(e){return e.reduce((t,n)=>N(t,n.meta),{})}function mn(e,t){let n=0,r=t.length;for(;n!==r;){const u=n+r>>1;ct(e,t[u])<0?r=u:n=u+1}const o=gn(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function gn(e){let t=e;for(;t=t.parent;)if(ut(t)&&ct(e,t)===0)return t}function ut({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function je(e){const t=M(ae),n=M(Ce),r=B(()=>{const i=$(e.to);return t.resolve(i)}),o=B(()=>{const{matched:i}=r.value,{length:l}=i,p=i[l-1],a=n.matched;if(!p||!a.length)return-1;const c=a.findIndex(Q.bind(null,p));if(c>-1)return c;const f=qe(i[l-2]);return l>1&&qe(p)===f&&a[a.length-1].path!==f?a.findIndex(Q.bind(null,i[l-2])):c}),u=B(()=>o.value>-1&&yn(n.params,r.value.params)),h=B(()=>o.value>-1&&o.value===n.matched.length-1&&tt(n.params,r.value.params));function d(i={}){if(An(i)){const l=t[$(e.replace)?"replace":"push"]($(e.to)).catch(ee);return e.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:u,isExactActive:h,navigate:d}}function Rn(e){return e.length===1?e[0]:e}const vn=Fe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:je,setup(e,{slots:t}){const n=Et(je(e)),{options:r}=M(ae),o=B(()=>({[Ke(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ke(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&Rn(t.default(n));return e.custom?u:Qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},u)}}}),En=vn;function An(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 yn(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!k(o)||o.length!==r.length||r.some((u,h)=>u.valueOf()!==o[h].valueOf()))return!1}return!0}function qe(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ke=(e,t,n)=>e!=null?e:t!=null?t:n,On=Fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=M(ye),o=B(()=>e.route||r.value),u=M(Le,0),h=B(()=>{let l=$(u);const{matched:p}=o.value;let a;for(;(a=p[l])&&!a.components;)l++;return l}),d=B(()=>o.value.matched[h.value]);pe(Le,B(()=>h.value+1)),pe(Ne,d),pe(ye,o);const i=yt();return At(()=>[i.value,d.value,e.name],([l,p,a],[c,f,O])=>{p&&(p.instances[a]=l,f&&f!==p&&l&&l===c&&(p.leaveGuards.size||(p.leaveGuards=f.leaveGuards),p.updateGuards.size||(p.updateGuards=f.updateGuards))),l&&p&&(!f||!Q(p,f)||!c)&&(p.enterCallbacks[a]||[]).forEach(C=>C(l))},{flush:"post"}),()=>{const l=o.value,p=e.name,a=d.value,c=a&&a.components[p];if(!c)return We(n.default,{Component:c,route:l});const f=a.props[p],O=f?f===!0?l.params:typeof f=="function"?f(l):f:null,P=Qe(c,N({},O,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(a.instances[p]=null)},ref:i}));return We(n.default,{Component:P,route:l})||P}}});function We(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Nn=On;function Tn(e){const t=hn(e.routes,e),n=e.parseQuery||Yt,r=e.stringifyQuery||Ge,o=e.history,u=Z(),h=Z(),d=Z(),i=Rt(H);let l=H;F&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=me.bind(null,s=>""+s),a=me.bind(null,Gt),c=me.bind(null,ne);function f(s,g){let m,R;return ot(s)?(m=t.getRecordMatcher(s),R=g):R=s,t.addRoute(R,m)}function O(s){const g=t.getRecordMatcher(s);g&&t.removeRoute(g)}function C(){return t.getRoutes().map(s=>s.record)}function P(s){return!!t.getRecordMatcher(s)}function I(s,g){if(g=N({},g||i.value),typeof s=="string"){const v=ge(n,s,g.path),b=t.resolve({path:v.path},g),X=o.createHref(v.fullPath);return N(v,b,{params:c(b.params),hash:ne(v.hash),redirectedFrom:void 0,href:X})}let m;if(s.path!=null)m=N({},s,{path:ge(n,s.path,g.path).path});else{const v=N({},s.params);for(const b in v)v[b]==null&&delete v[b];m=N({},s,{params:a(v)}),g.params=a(g.params)}const R=t.resolve(m,g),A=s.hash||"";R.params=p(c(R.params));const S=Bt(r,N({},s,{hash:Tt(A),path:R.path})),E=o.createHref(S);return N({fullPath:S,hash:A,query:r===Ge?Jt(s.query):s.query||{}},R,{redirectedFrom:void 0,href:E})}function y(s){return typeof s=="string"?ge(n,s,i.value.path):N({},s)}function _(s,g){if(l!==s)return z(w.NAVIGATION_CANCELLED,{from:g,to:s})}function L(s){return G(s)}function q(s){return L(N(y(s),{replace:!0}))}function U(s,g){const m=s.matched[s.matched.length-1];if(m&&m.redirect){const{redirect:R}=m;let A=typeof R=="function"?R(s,g):R;return typeof A=="string"&&(A=A.includes("?")||A.includes("#")?A=y(A):{path:A},A.params={}),N({query:s.query,hash:s.hash,params:A.path!=null?{}:s.params},A)}}function G(s,g){const m=l=I(s),R=i.value,A=s.state,S=s.force,E=s.replace===!0,v=U(m,R);if(v)return G(N(y(v),{state:typeof v=="object"?N({},A,v.state):A,force:S,replace:E}),g||m);const b=m;b.redirectedFrom=g;let X;return!S&&Vt(r,R,m)&&(X=z(w.NAVIGATION_DUPLICATED,{to:b,from:R}),Se(R,R,!0,!1)),(X?Promise.resolve(X):_e(b,R)).catch(D=>V(D)?V(D,w.NAVIGATION_GUARD_REDIRECT)?D:fe(D):le(D,b,R)).then(D=>{if(D){if(V(D,w.NAVIGATION_GUARD_REDIRECT))return G(N({replace:E},y(D.to),{state:typeof D.to=="object"?N({},A,D.to.state):A,force:S}),g||b)}else D=Ie(b,R,!0,E,A);return Pe(b,R,D),D})}function lt(s,g){const m=_(s,g);return m?Promise.reject(m):Promise.resolve()}function ce(s){const g=oe.values().next().value;return g&&typeof g.runWithContext=="function"?g.runWithContext(s):s()}function _e(s,g){let m;const[R,A,S]=Xt(s,g);m=ve(R.reverse(),"beforeRouteLeave",s,g);for(const v of R)v.leaveGuards.forEach(b=>{m.push(j(b,s,g))});const E=lt.bind(null,s,g);return m.push(E),W(m).then(()=>{m=[];for(const v of u.list())m.push(j(v,s,g));return m.push(E),W(m)}).then(()=>{m=ve(A,"beforeRouteUpdate",s,g);for(const v of A)v.updateGuards.forEach(b=>{m.push(j(b,s,g))});return m.push(E),W(m)}).then(()=>{m=[];for(const v of S)if(v.beforeEnter)if(k(v.beforeEnter))for(const b of v.beforeEnter)m.push(j(b,s,g));else m.push(j(v.beforeEnter,s,g));return m.push(E),W(m)}).then(()=>(s.matched.forEach(v=>v.enterCallbacks={}),m=ve(S,"beforeRouteEnter",s,g,ce),m.push(E),W(m))).then(()=>{m=[];for(const v of h.list())m.push(j(v,s,g));return m.push(E),W(m)}).catch(v=>V(v,w.NAVIGATION_CANCELLED)?v:Promise.reject(v))}function Pe(s,g,m){d.list().forEach(R=>ce(()=>R(s,g,m)))}function Ie(s,g,m,R,A){const S=_(s,g);if(S)return S;const E=g===H,v=F?history.state:{};m&&(R||E?o.replace(s.fullPath,N({scroll:E&&v&&v.scroll},A)):o.push(s.fullPath,A)),i.value=s,Se(s,g,m,E),fe()}let Y;function ft(){Y||(Y=o.listen((s,g,m)=>{if(!J.listening)return;const R=I(s),A=U(R,J.currentRoute.value);if(A){G(N(A,{replace:!0,force:!0}),R).catch(ee);return}l=R;const S=i.value;F&&Kt(De(S.fullPath,m.delta),ie()),_e(R,S).catch(E=>V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_CANCELLED)?E:V(E,w.NAVIGATION_GUARD_REDIRECT)?(G(N(y(E.to),{force:!0}),R).then(v=>{V(v,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&!m.delta&&m.type===se.pop&&o.go(-1,!1)}).catch(ee),Promise.reject()):(m.delta&&o.go(-m.delta,!1),le(E,R,S))).then(E=>{E=E||Ie(R,S,!1),E&&(m.delta&&!V(E,w.NAVIGATION_CANCELLED)?o.go(-m.delta,!1):m.type===se.pop&&V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),Pe(R,S,E)}).catch(ee)}))}let ue=Z(),we=Z(),re;function le(s,g,m){fe(s);const R=we.list();return R.length?R.forEach(A=>A(s,g,m)):console.error(s),Promise.reject(s)}function ht(){return re&&i.value!==H?Promise.resolve():new Promise((s,g)=>{ue.add([s,g])})}function fe(s){return re||(re=!s,ft(),ue.list().forEach(([g,m])=>s?m(s):g()),ue.reset()),s}function Se(s,g,m,R){const{scrollBehavior:A}=e;if(!F||!A)return Promise.resolve();const S=!m&&Wt(De(s.fullPath,0))||(R||!m)&&history.state&&history.state.scroll||null;return vt().then(()=>A(s,g,S)).then(E=>E&&qt(E)).catch(E=>le(E,s,g))}const he=s=>o.go(s);let de;const oe=new Set,J={currentRoute:i,listening:!0,addRoute:f,removeRoute:O,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:C,resolve:I,options:e,push:L,replace:q,go:he,back:()=>he(-1),forward:()=>he(1),beforeEach:u.add,beforeResolve:h.add,afterEach:d.add,onError:we.add,isReady:ht,install(s){s.component("RouterLink",En),s.component("RouterView",Nn),s.config.globalProperties.$router=J,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>$(i)}),F&&!de&&i.value===H&&(de=!0,L(o.location).catch(R=>{}));const g={};for(const R in H)Object.defineProperty(g,R,{get:()=>i.value[R],enumerable:!0});s.provide(ae,J),s.provide(Ce,gt(g)),s.provide(ye,i);const m=s.unmount;oe.add(s),s.unmount=function(){oe.delete(s),oe.size<1&&(l=H,Y&&Y(),Y=null,i.value=H,de=!1,re=!1),m()}}};function W(s){return s.reduce((g,m)=>g.then(()=>ce(m)),Promise.resolve())}return J}function xn(){return M(ae)}function Dn(e){return M(Ce)}export{_n as NavigationFailureType,En as RouterLink,Nn as RouterView,H as START_LOCATION,Sn as createMemoryHistory,Tn as createRouter,hn as createRouterMatcher,bn as createWebHashHistory,tn as createWebHistory,V as isNavigationFailure,wn as loadRouteLocation,Ne as matchedRouteKey,Pn as onBeforeRouteLeave,In as onBeforeRouteUpdate,Yt as parseQuery,Ce as routeLocationKey,ae as routerKey,ye as routerViewLocationKey,Ge as stringifyQuery,je as useLink,Dn as useRoute,xn as useRouter,Le as viewDepthKey};
9
+ */let Zt=()=>location.protocol+"//"+location.host;function at(e,t){const{pathname:n,search:r,hash:o}=t,u=e.indexOf("#");if(u>-1){let h=o.includes(e.slice(u))?e.slice(u).length:1,d=o.slice(h);return d[0]!=="/"&&(d="/"+d),Te(d,"")}return Te(n,e)+r+o}function $t(e,t,n,r){let o=[],u=[],h=null;const d=({state:c})=>{const f=at(e,location),O=n.value,C=t.value;let P=0;if(c){if(n.value=f,t.value=c,h&&h===O){h=null;return}P=C?c.position-C.position:0}else r(f);o.forEach(I=>{I(n.value,O,{delta:P,type:se.pop,direction:P?P>0?te.forward:te.back:te.unknown})})};function i(){h=n.value}function l(c){o.push(c);const f=()=>{const O=o.indexOf(c);O>-1&&o.splice(O,1)};return u.push(f),f}function p(){if(document.visibilityState==="hidden"){const{history:c}=window;if(!c.state)return;c.replaceState(N({},c.state,{scroll:ie()}),"")}}function a(){for(const c of u)c();u=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",p),document.removeEventListener("visibilitychange",p)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",p),document.addEventListener("visibilitychange",p),{pauseListeners:i,listen:l,destroy:a}}function ke(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ie():null}}function en(e){const{history:t,location:n}=window,r={value:at(e,n)},o={value:t.state};o.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(i,l,p){const a=e.indexOf("#"),c=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+i:Zt()+e+i;try{t[p?"replaceState":"pushState"](l,"",c),o.value=l}catch(f){console.error(f),n[p?"replace":"assign"](c)}}function h(i,l){u(i,N({},t.state,ke(o.value.back,i,o.value.forward,!0),l,{position:o.value.position}),!0),r.value=i}function d(i,l){const p=N({},o.value,t.state,{forward:i,scroll:ie()});u(p.current,p,!0),u(i,N({},ke(r.value,i,null),{position:p.position+1},l),!1),r.value=i}return{location:r,state:o,push:d,replace:h}}function tn(e){e=nt(e);const t=en(e),n=$t(e,t.state,t.location,t.replace);function r(u,h=!0){h||n.pauseListeners(),history.go(u)}const o=N({location:"",base:e,go:r,createHref:rt.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Sn(e=""){let t=[],n=[[ve,{}]],r=0;e=nt(e);function o(d,i={}){r++,r!==n.length&&n.splice(r),n.push([d,i])}function u(d,i,{direction:l,delta:p}){const a={direction:l,delta:p,type:se.pop};for(const c of t)c(d,i,a)}const h={location:ve,state:{},base:e,createHref:rt.bind(null,e),replace(d,i){n.splice(r--,1),o(d,i)},push(d,i){o(d,i)},listen(d){return t.push(d),()=>{const i=t.indexOf(d);i>-1&&t.splice(i,1)}},destroy(){t=[],n=[[ve,{}]],r=0},go(d,i=!0){const l=this.location,p=d<0?te.back:te.forward;r=Math.max(0,Math.min(r+d,n.length-1)),i&&u(this.location,l,{direction:p,delta:d})}};return Object.defineProperty(h,"location",{enumerable:!0,get:()=>n[r][0]}),Object.defineProperty(h,"state",{enumerable:!0,get:()=>n[r][1]}),h}function bn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),tn(e)}let K=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var T=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(T||{});const nn={type:K.Static,value:""},rn=/[a-zA-Z0-9_]/;function on(e){if(!e)return[[]];if(e==="/")return[[nn]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${l}": ${f}`)}let n=T.Static,r=n;const o=[];let u;function h(){u&&o.push(u),u=[]}let d=0,i,l="",p="";function a(){l&&(n===T.Static?u.push({type:K.Static,value:l}):n===T.Param||n===T.ParamRegExp||n===T.ParamRegExpEnd?(u.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),u.push({type:K.Param,value:l,regexp:p,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),l="")}function c(){l+=i}for(;d<e.length;){if(i=e[d++],i==="\\"&&n!==T.ParamRegExp){r=n,n=T.EscapeNext;continue}switch(n){case T.Static:i==="/"?(l&&a(),h()):i===":"?(a(),n=T.Param):c();break;case T.EscapeNext:c(),n=r;break;case T.Param:i==="("?n=T.ParamRegExp:rn.test(i)?c():(a(),n=T.Static,i!=="*"&&i!=="?"&&i!=="+"&&d--);break;case T.ParamRegExp:i===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+i:n=T.ParamRegExpEnd:p+=i;break;case T.ParamRegExpEnd:a(),n=T.Static,i!=="*"&&i!=="?"&&i!=="+"&&d--,p="";break;default:t("Unknown state");break}}return n===T.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),a(),h(),o}const Be="[^/]+?",sn={sensitive:!1,strict:!1,start:!0,end:!0};var x=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(x||{});const an=/[.+*?^${}()[\]/\\]/g;function cn(e,t){const n=N({},sn,t),r=[];let o=n.start?"^":"";const u=[];for(const l of e){const p=l.length?[]:[x.Root];n.strict&&!l.length&&(o+="/");for(let a=0;a<l.length;a++){const c=l[a];let f=x.Segment+(n.sensitive?x.BonusCaseSensitive:0);if(c.type===K.Static)a||(o+="/"),o+=c.value.replace(an,"\\$&"),f+=x.Static;else if(c.type===K.Param){const{value:O,repeatable:C,optional:P,regexp:I}=c;u.push({name:O,repeatable:C,optional:P});const y=I||Be;if(y!==Be){f+=x.BonusCustomRegExp;try{`${y}`}catch(L){throw new Error(`Invalid custom RegExp for param "${O}" (${y}): `+L.message)}}let _=C?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;a||(_=P&&l.length<2?`(?:/${_})`:"/"+_),P&&(_+="?"),o+=_,f+=x.Dynamic,P&&(f+=x.BonusOptional),C&&(f+=x.BonusRepeatable),y===".*"&&(f+=x.BonusWildcard)}p.push(f)}r.push(p)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=x.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const h=new RegExp(o,n.sensitive?"":"i");function d(l){const p=l.match(h),a={};if(!p)return null;for(let c=1;c<p.length;c++){const f=p[c]||"",O=u[c-1];a[O.name]=f&&O.repeatable?f.split("/"):f}return a}function i(l){let p="",a=!1;for(const c of e){(!a||!p.endsWith("/"))&&(p+="/"),a=!1;for(const f of c)if(f.type===K.Static)p+=f.value;else if(f.type===K.Param){const{value:O,repeatable:C,optional:P}=f,I=O in l?l[O]:"";if(k(I)&&!C)throw new Error(`Provided param "${O}" is an array but it is not repeatable (* or + modifiers)`);const y=k(I)?I.join("/"):I;if(!y)if(P)c.length<2&&(p.endsWith("/")?p=p.slice(0,-1):a=!0);else throw new Error(`Missing required param "${O}"`);p+=y}}return p||"/"}return{re:h,score:r,keys:u,parse:d,stringify:i}}function un(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===x.Static+x.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===x.Static+x.Segment?1:-1:0}function ct(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const u=un(r[n],o[n]);if(u)return u;n++}if(Math.abs(o.length-r.length)===1){if(Ve(r))return 1;if(Ve(o))return-1}return o.length-r.length}function Ve(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ln={strict:!1,end:!0,sensitive:!1};function fn(e,t,n){const r=cn(on(e.path),n),o=N(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function hn(e,t){const n=[],r=new Map;t=be(ln,t);function o(a){return r.get(a)}function u(a,c,f){const O=!f,C=Ue(a);C.aliasOf=f&&f.record;const P=be(t,a),I=[C];if("alias"in a){const L=typeof a.alias=="string"?[a.alias]:a.alias;for(const q of L)I.push(Ue(N({},C,{components:f?f.record.components:C.components,path:q,aliasOf:f?f.record:C})))}let y,_;for(const L of I){const{path:q}=L;if(c&&q[0]!=="/"){const U=c.record.path,G=U[U.length-1]==="/"?"":"/";L.path=c.record.path+(q&&G+q)}if(y=fn(L,c,P),f?f.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),O&&a.name&&!He(y)&&h(a.name)),ut(y)&&i(y),C.children){const U=C.children;for(let G=0;G<U.length;G++)u(U[G],y,f&&f.children[G])}f=f||y}return _?()=>{h(_)}:ee}function h(a){if(ot(a)){const c=r.get(a);c&&(r.delete(a),n.splice(n.indexOf(c),1),c.children.forEach(h),c.alias.forEach(h))}else{const c=n.indexOf(a);c>-1&&(n.splice(c,1),a.record.name&&r.delete(a.record.name),a.children.forEach(h),a.alias.forEach(h))}}function d(){return n}function i(a){const c=mn(a,n);n.splice(c,0,a),a.record.name&&!He(a)&&r.set(a.record.name,a)}function l(a,c){let f,O={},C,P;if("name"in a&&a.name){if(f=r.get(a.name),!f)throw Q(w.MATCHER_NOT_FOUND,{location:a});P=f.record.name,O=N(Me(c.params,f.keys.filter(_=>!_.optional).concat(f.parent?f.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),a.params&&Me(a.params,f.keys.map(_=>_.name))),C=f.stringify(O)}else if(a.path!=null)C=a.path,f=n.find(_=>_.re.test(C)),f&&(O=f.parse(C),P=f.record.name);else{if(f=c.name?r.get(c.name):n.find(_=>_.re.test(c.path)),!f)throw Q(w.MATCHER_NOT_FOUND,{location:a,currentLocation:c});P=f.record.name,O=N({},c.params,a.params),C=f.stringify(O)}const I=[];let y=f;for(;y;)I.unshift(y.record),y=y.parent;return{name:P,path:C,params:O,matched:I,meta:pn(I)}}e.forEach(a=>u(a));function p(){n.length=0,r.clear()}return{addRoute:u,resolve:l,removeRoute:h,clearRoutes:p,getRoutes:d,getRecordMatcher:o}}function Me(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ue(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:dn(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 dn(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function He(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pn(e){return e.reduce((t,n)=>N(t,n.meta),{})}function mn(e,t){let n=0,r=t.length;for(;n!==r;){const u=n+r>>1;ct(e,t[u])<0?r=u:n=u+1}const o=gn(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function gn(e){let t=e;for(;t=t.parent;)if(ut(t)&&ct(e,t)===0)return t}function ut({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function je(e){const t=M(ae),n=M(Ce),r=B(()=>{const i=$(e.to);return t.resolve(i)}),o=B(()=>{const{matched:i}=r.value,{length:l}=i,p=i[l-1],a=n.matched;if(!p||!a.length)return-1;const c=a.findIndex(z.bind(null,p));if(c>-1)return c;const f=qe(i[l-2]);return l>1&&qe(p)===f&&a[a.length-1].path!==f?a.findIndex(z.bind(null,i[l-2])):c}),u=B(()=>o.value>-1&&yn(n.params,r.value.params)),h=B(()=>o.value>-1&&o.value===n.matched.length-1&&tt(n.params,r.value.params));function d(i={}){if(An(i)){const l=t[$(e.replace)?"replace":"push"]($(e.to)).catch(ee);return e.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:u,isExactActive:h,navigate:d}}function vn(e){return e.length===1?e[0]:e}const Rn=Fe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:je,setup(e,{slots:t}){const n=Et(je(e)),{options:r}=M(ae),o=B(()=>({[Ke(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ke(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&vn(t.default(n));return e.custom?u:ze("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},u)}}}),En=Rn;function An(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 yn(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!k(o)||o.length!==r.length||r.some((u,h)=>u.valueOf()!==o[h].valueOf()))return!1}return!0}function qe(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ke=(e,t,n)=>e!=null?e:t!=null?t:n,On=Fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=M(ye),o=B(()=>e.route||r.value),u=M(Le,0),h=B(()=>{let l=$(u);const{matched:p}=o.value;let a;for(;(a=p[l])&&!a.components;)l++;return l}),d=B(()=>o.value.matched[h.value]);pe(Le,B(()=>h.value+1)),pe(Ne,d),pe(ye,o);const i=yt();return At(()=>[i.value,d.value,e.name],([l,p,a],[c,f,O])=>{p&&(p.instances[a]=l,f&&f!==p&&l&&l===c&&(p.leaveGuards.size||(p.leaveGuards=f.leaveGuards),p.updateGuards.size||(p.updateGuards=f.updateGuards))),l&&p&&(!f||!z(p,f)||!c)&&(p.enterCallbacks[a]||[]).forEach(C=>C(l))},{flush:"post"}),()=>{const l=o.value,p=e.name,a=d.value,c=a&&a.components[p];if(!c)return We(n.default,{Component:c,route:l});const f=a.props[p],O=f?f===!0?l.params:typeof f=="function"?f(l):f:null,P=ze(c,N({},O,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(a.instances[p]=null)},ref:i}));return We(n.default,{Component:P,route:l})||P}}});function We(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Nn=On;function Tn(e){const t=hn(e.routes,e),n=e.parseQuery||Yt,r=e.stringifyQuery||Ge,o=e.history,u=Z(),h=Z(),d=Z(),i=vt(H);let l=H;F&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=me.bind(null,s=>""+s),a=me.bind(null,Gt),c=me.bind(null,ne);function f(s,g){let m,v;return ot(s)?(m=t.getRecordMatcher(s),v=g):v=s,t.addRoute(v,m)}function O(s){const g=t.getRecordMatcher(s);g&&t.removeRoute(g)}function C(){return t.getRoutes().map(s=>s.record)}function P(s){return!!t.getRecordMatcher(s)}function I(s,g){if(g=N({},g||i.value),typeof s=="string"){const R=ge(n,s,g.path),b=t.resolve({path:R.path},g),X=o.createHref(R.fullPath);return N(R,b,{params:c(b.params),hash:ne(R.hash),redirectedFrom:void 0,href:X})}let m;if(s.path!=null)m=N({},s,{path:ge(n,s.path,g.path).path});else{const R=N({},s.params);for(const b in R)R[b]==null&&delete R[b];m=N({},s,{params:a(R)}),g.params=a(g.params)}const v=t.resolve(m,g),A=s.hash||"";v.params=p(c(v.params));const S=Bt(r,N({},s,{hash:Tt(A),path:v.path})),E=o.createHref(S);return N({fullPath:S,hash:A,query:r===Ge?Jt(s.query):s.query||{}},v,{redirectedFrom:void 0,href:E})}function y(s){return typeof s=="string"?ge(n,s,i.value.path):N({},s)}function _(s,g){if(l!==s)return Q(w.NAVIGATION_CANCELLED,{from:g,to:s})}function L(s){return G(s)}function q(s){return L(N(y(s),{replace:!0}))}function U(s,g){const m=s.matched[s.matched.length-1];if(m&&m.redirect){const{redirect:v}=m;let A=typeof v=="function"?v(s,g):v;return typeof A=="string"&&(A=A.includes("?")||A.includes("#")?A=y(A):{path:A},A.params={}),N({query:s.query,hash:s.hash,params:A.path!=null?{}:s.params},A)}}function G(s,g){const m=l=I(s),v=i.value,A=s.state,S=s.force,E=s.replace===!0,R=U(m,v);if(R)return G(N(y(R),{state:typeof R=="object"?N({},A,R.state):A,force:S,replace:E}),g||m);const b=m;b.redirectedFrom=g;let X;return!S&&Vt(r,v,m)&&(X=Q(w.NAVIGATION_DUPLICATED,{to:b,from:v}),Se(v,v,!0,!1)),(X?Promise.resolve(X):_e(b,v)).catch(D=>V(D)?V(D,w.NAVIGATION_GUARD_REDIRECT)?D:fe(D):le(D,b,v)).then(D=>{if(D){if(V(D,w.NAVIGATION_GUARD_REDIRECT))return G(N({replace:E},y(D.to),{state:typeof D.to=="object"?N({},A,D.to.state):A,force:S}),g||b)}else D=Ie(b,v,!0,E,A);return Pe(b,v,D),D})}function lt(s,g){const m=_(s,g);return m?Promise.reject(m):Promise.resolve()}function ce(s){const g=oe.values().next().value;return g&&typeof g.runWithContext=="function"?g.runWithContext(s):s()}function _e(s,g){let m;const[v,A,S]=Xt(s,g);m=Re(v.reverse(),"beforeRouteLeave",s,g);for(const R of v)R.leaveGuards.forEach(b=>{m.push(j(b,s,g))});const E=lt.bind(null,s,g);return m.push(E),W(m).then(()=>{m=[];for(const R of u.list())m.push(j(R,s,g));return m.push(E),W(m)}).then(()=>{m=Re(A,"beforeRouteUpdate",s,g);for(const R of A)R.updateGuards.forEach(b=>{m.push(j(b,s,g))});return m.push(E),W(m)}).then(()=>{m=[];for(const R of S)if(R.beforeEnter)if(k(R.beforeEnter))for(const b of R.beforeEnter)m.push(j(b,s,g));else m.push(j(R.beforeEnter,s,g));return m.push(E),W(m)}).then(()=>(s.matched.forEach(R=>R.enterCallbacks={}),m=Re(S,"beforeRouteEnter",s,g,ce),m.push(E),W(m))).then(()=>{m=[];for(const R of h.list())m.push(j(R,s,g));return m.push(E),W(m)}).catch(R=>V(R,w.NAVIGATION_CANCELLED)?R:Promise.reject(R))}function Pe(s,g,m){d.list().forEach(v=>ce(()=>v(s,g,m)))}function Ie(s,g,m,v,A){const S=_(s,g);if(S)return S;const E=g===H,R=F?history.state:{};m&&(v||E?o.replace(s.fullPath,N({scroll:E&&R&&R.scroll},A)):o.push(s.fullPath,A)),i.value=s,Se(s,g,m,E),fe()}let Y;function ft(){Y||(Y=o.listen((s,g,m)=>{if(!J.listening)return;const v=I(s),A=U(v,J.currentRoute.value);if(A){G(N(A,{replace:!0,force:!0}),v).catch(ee);return}l=v;const S=i.value;F&&Kt(De(S.fullPath,m.delta),ie()),_e(v,S).catch(E=>V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_CANCELLED)?E:V(E,w.NAVIGATION_GUARD_REDIRECT)?(G(N(y(E.to),{force:!0}),v).then(R=>{V(R,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&!m.delta&&m.type===se.pop&&o.go(-1,!1)}).catch(ee),Promise.reject()):(m.delta&&o.go(-m.delta,!1),le(E,v,S))).then(E=>{E=E||Ie(v,S,!1),E&&(m.delta&&!V(E,w.NAVIGATION_CANCELLED)?o.go(-m.delta,!1):m.type===se.pop&&V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),Pe(v,S,E)}).catch(ee)}))}let ue=Z(),we=Z(),re;function le(s,g,m){fe(s);const v=we.list();return v.length?v.forEach(A=>A(s,g,m)):console.error(s),Promise.reject(s)}function ht(){return re&&i.value!==H?Promise.resolve():new Promise((s,g)=>{ue.add([s,g])})}function fe(s){return re||(re=!s,ft(),ue.list().forEach(([g,m])=>s?m(s):g()),ue.reset()),s}function Se(s,g,m,v){const{scrollBehavior:A}=e;if(!F||!A)return Promise.resolve();const S=!m&&Wt(De(s.fullPath,0))||(v||!m)&&history.state&&history.state.scroll||null;return Rt().then(()=>A(s,g,S)).then(E=>E&&qt(E)).catch(E=>le(E,s,g))}const he=s=>o.go(s);let de;const oe=new Set,J={currentRoute:i,listening:!0,addRoute:f,removeRoute:O,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:C,resolve:I,options:e,push:L,replace:q,go:he,back:()=>he(-1),forward:()=>he(1),beforeEach:u.add,beforeResolve:h.add,afterEach:d.add,onError:we.add,isReady:ht,install(s){s.component("RouterLink",En),s.component("RouterView",Nn),s.config.globalProperties.$router=J,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>$(i)}),F&&!de&&i.value===H&&(de=!0,L(o.location).catch(v=>{}));const g={};for(const v in H)Object.defineProperty(g,v,{get:()=>i.value[v],enumerable:!0});s.provide(ae,J),s.provide(Ce,gt(g)),s.provide(ye,i);const m=s.unmount;oe.add(s),s.unmount=function(){oe.delete(s),oe.size<1&&(l=H,Y&&Y(),Y=null,i.value=H,de=!1,re=!1),m()}}};function W(s){return s.reduce((g,m)=>g.then(()=>ce(m)),Promise.resolve())}return J}function xn(){return M(ae)}function Dn(e){return M(Ce)}export{_n as NavigationFailureType,En as RouterLink,Nn as RouterView,H as START_LOCATION,Sn as createMemoryHistory,Tn as createRouter,hn as createRouterMatcher,bn as createWebHashHistory,tn as createWebHistory,V as isNavigationFailure,wn as loadRouteLocation,Ne as matchedRouteKey,Pn as onBeforeRouteLeave,In as onBeforeRouteUpdate,Yt as parseQuery,Ce as routeLocationKey,ae as routerKey,ye as routerViewLocationKey,Ge as stringifyQuery,je as useLink,Dn as useRoute,xn as useRouter,Le as viewDepthKey};