@vtj/pro 0.8.61 → 0.8.63

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 (25) 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/ui/index.umd.js +2 -2
  5. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  6. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  7. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +12 -12
  8. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +3 -3
  9. package/dist/@vtj/materials/deps/echarts/echarts.min.js +2 -2
  10. package/dist/@vtj/materials/deps/vue-router/vue-router.global.prod.js +2 -2
  11. package/dist/assets/{Editor-bVAaI2zL-CHu8ThcZ.js → Editor-DjXowHju-CSA3ZLD6.js} +1 -1
  12. package/dist/assets/{extension-Cj0Y75qz.js → extension-CA4qiZGM.js} +40 -40
  13. package/dist/assets/{index-B2BMcGKw.js → index-D8ddI0bb.js} +1 -1
  14. package/dist/assets/{index-C6gg0imE.js → index-VxDmUQiN.js} +2 -2
  15. package/dist/assets/{monaco-editor-DwlLClUG.js → monaco-editor-DcvjtjDx.js} +210 -210
  16. package/dist/assets/{preview-C_fLJVIj.js → preview-CtrhILsB.js} +2 -2
  17. package/dist/assets/vue-router-CbmApKJK.js +5 -0
  18. package/dist/index.html +3 -3
  19. package/package.json +12 -12
  20. package/dist/assets/vue-router-BiCJGkLH.js +0 -5
  21. /package/dist/assets/{css.worker-BG3X4ypZ-CEcCZxtT.js → css.worker-DsXsg0f9-CEcCZxtT.js} +0 -0
  22. /package/dist/assets/{editor.worker-CdJourTJ-XsdejOxF.js → editor.worker-C6rtsk95-XsdejOxF.js} +0 -0
  23. /package/dist/assets/{html.worker-BCBdCLMV-Dzznz_ni.js → html.worker-DOZaicN7-Dzznz_ni.js} +0 -0
  24. /package/dist/assets/{json.worker-BhNp9C2F-DV_Vc8JJ.js → json.worker-Bm0JMgNu-DV_Vc8JJ.js} +0 -0
  25. /package/dist/assets/{ts.worker-yjAiJiOi-BhFdT8k5.js → ts.worker-CdTDJbmm-BhFdT8k5.js} +0 -0
@@ -1,2 +1,2 @@
1
- const __vite__fileDeps=["./vue-CMLe33oi.js","./@vue-BhtQQxk5.js","./vue-router-BiCJGkLH.js","./element-plus-CYz-wZ3K.js","./lodash-es-iLqVnzBD.js","./@vueuse-CU-R_5C5.js","./@element-plus-BMvprwPB.js","./@popperjs-egqNnATr.js","./@ctrl-riLredlm.js","./dayjs-6gUf-wcg.js","./async-validator-7GrF_zuj.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-CApwSdyH.js","./element-plus-DzZXHC44.css","./extension-Cj0Y75qz.js","./monaco-editor-DwlLClUG.js","./monaco-editor-BgBQhOSF.css","./mockjs-lxjp2n0w.js","./extension-BhAwIxTd.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- var f=Object.defineProperty,w=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var v=(o,t,e)=>t in o?f(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,E=(o,t)=>{for(var e in t||(t={}))C.call(t,e)&&v(o,e,t[e]);if(l)for(var e of l(t))h.call(t,e)&&v(o,e,t[e]);return o},V=(o,t)=>w(o,x(t));var d=(o,t,e)=>new Promise((p,a)=>{var u=n=>{try{m(e.next(n))}catch(i){a(i)}},s=n=>{try{m(e.throw(n))}catch(i){a(i)}},m=n=>n.done?p(n.value):Promise.resolve(n.value).then(u,s);m((e=e.apply(o,t)).next())});import{_}from"./monaco-editor-DwlLClUG.js";import{useRoute as y}from"./vue-router-BiCJGkLH.js";import"./element-plus-CYz-wZ3K.js";import{n as I,_ as P,b as A,o as D,E as g}from"./extension-Cj0Y75qz.js";import{d as L,bN as R,r as O,i as T,R as b,V as k,W as B,o as N}from"./@vue-BhtQQxk5.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-CU-R_5C5.js";import"./@element-plus-BMvprwPB.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-CApwSdyH.js";import"./vue-CMLe33oi.js";import"./mockjs-lxjp2n0w.js";const ot=L({__name:"preview",setup(o){return d(this,null,function*(){let t,e;const p=new D,a=([t,e]=R(()=>p.getExtension().catch(()=>null)),t=yield t,e(),t),u=a?([t,e]=R(()=>new g(a).load()),t=yield t,e(),t):void 0,{provider:s,onReady:m}=I(V(E({mode:P.Runtime,service:p},u||{}),{dependencies:{Vue:()=>_(()=>import("./vue-CMLe33oi.js").then(r=>r.V),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>_(()=>import("./vue-router-BiCJGkLH.js"),__vite__mapDeps([2,1]),import.meta.url),ElementPlus:()=>_(()=>import("./element-plus-CYz-wZ3K.js").then(r=>r.ae),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url),VtjIcons:()=>_(()=>import("./extension-Cj0Y75qz.js").then(r=>r.V),__vite__mapDeps([15,0,1,6,5,2,3,4,7,8,9,10,11,12,13,14,16,17,18,19]),import.meta.url)}})),n=y(),i=O(),c=T();return m(()=>d(this,null,function*(){const r=c==null?void 0:c.appContext.app;r&&(r.use(A),r.use(s)),i.value=yield s.getRenderComponent(n.params.id.toString())})),(r,j)=>i.value?(N(),b(k(i.value),{key:0})):B("",!0)})}});export{ot as default};
1
+ const __vite__fileDeps=["./vue-CMLe33oi.js","./@vue-BhtQQxk5.js","./vue-router-CbmApKJK.js","./element-plus-CYz-wZ3K.js","./lodash-es-iLqVnzBD.js","./@vueuse-CU-R_5C5.js","./@element-plus-BMvprwPB.js","./@popperjs-egqNnATr.js","./@ctrl-riLredlm.js","./dayjs-6gUf-wcg.js","./async-validator-7GrF_zuj.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-CApwSdyH.js","./element-plus-DzZXHC44.css","./extension-CA4qiZGM.js","./monaco-editor-DcvjtjDx.js","./monaco-editor-BgBQhOSF.css","./mockjs-lxjp2n0w.js","./extension-BhAwIxTd.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ var f=Object.defineProperty,w=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var v=(o,t,e)=>t in o?f(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,E=(o,t)=>{for(var e in t||(t={}))C.call(t,e)&&v(o,e,t[e]);if(l)for(var e of l(t))h.call(t,e)&&v(o,e,t[e]);return o},V=(o,t)=>w(o,x(t));var d=(o,t,e)=>new Promise((p,a)=>{var u=n=>{try{m(e.next(n))}catch(i){a(i)}},s=n=>{try{m(e.throw(n))}catch(i){a(i)}},m=n=>n.done?p(n.value):Promise.resolve(n.value).then(u,s);m((e=e.apply(o,t)).next())});import{_}from"./monaco-editor-DcvjtjDx.js";import{useRoute as y}from"./vue-router-CbmApKJK.js";import"./element-plus-CYz-wZ3K.js";import{r as I,_ as P,b as A,a as D,E as g}from"./extension-CA4qiZGM.js";import{d as L,bN as R,r as O,i as T,R as b,V as k,W as B,o as N}from"./@vue-BhtQQxk5.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-CU-R_5C5.js";import"./@element-plus-BMvprwPB.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-CApwSdyH.js";import"./vue-CMLe33oi.js";import"./mockjs-lxjp2n0w.js";const ot=L({__name:"preview",setup(o){return d(this,null,function*(){let t,e;const p=new D,a=([t,e]=R(()=>p.getExtension().catch(()=>null)),t=yield t,e(),t),u=a?([t,e]=R(()=>new g(a).load()),t=yield t,e(),t):void 0,{provider:s,onReady:m}=I(V(E({mode:P.Runtime,service:p},u||{}),{dependencies:{Vue:()=>_(()=>import("./vue-CMLe33oi.js").then(r=>r.V),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>_(()=>import("./vue-router-CbmApKJK.js"),__vite__mapDeps([2,1]),import.meta.url),ElementPlus:()=>_(()=>import("./element-plus-CYz-wZ3K.js").then(r=>r.ae),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url),VtjIcons:()=>_(()=>import("./extension-CA4qiZGM.js").then(r=>r.V),__vite__mapDeps([15,0,1,6,5,2,3,4,7,8,9,10,11,12,13,14,16,17,18,19]),import.meta.url)}})),n=y(),i=O(),c=T();return m(()=>d(this,null,function*(){const r=c==null?void 0:c.appContext.app;r&&(r.use(A),r.use(s)),i.value=yield s.getRenderComponent(n.params.id.toString())})),(r,j)=>i.value?(N(),b(k(i.value),{key:0})):B("",!0)})}});export{ot as default};
@@ -0,0 +1,5 @@
1
+ import{s as at,u as Y,av as lt,G as j,k as T,n as ut,H as ft,a7 as ht,bh as pt,d as ze,a0 as dt,I as Ke,K as le,r as mt,f as gt}from"./@vue-BhtQQxk5.js";/*!
2
+ * vue-router v4.4.0
3
+ * (c) 2024 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */const K=typeof document!="undefined";function Ue(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const w=Object.assign;function ue(e,t){const n={};for(const r in t){const o=t[r];n[r]=I(o)?o.map(e):e(o)}return n}const X=()=>{},I=Array.isArray,Ve=/#/g,vt=/&/g,yt=/\//g,Rt=/=/g,Et=/\?/g,De=/\+/g,Pt=/%5B/g,wt=/%5D/g,Qe=/%5E/g,St=/%60/g,We=/%7B/g,Ct=/%7C/g,Fe=/%7D/g,kt=/%20/g;function ve(e){return encodeURI(""+e).replace(Ct,"|").replace(Pt,"[").replace(wt,"]")}function bt(e){return ve(e).replace(We,"{").replace(Fe,"}").replace(Qe,"^")}function de(e){return ve(e).replace(De,"%2B").replace(kt,"+").replace(Ve,"%23").replace(vt,"%26").replace(St,"`").replace(We,"{").replace(Fe,"}").replace(Qe,"^")}function At(e){return de(e).replace(Rt,"%3D")}function Ot(e){return ve(e).replace(Ve,"%23").replace(Et,"%3F")}function _t(e){return e==null?"":Ot(e).replace(yt,"%2F")}function Z(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const xt=/\/$/,Mt=e=>e.replace(xt,"");function fe(e,t,n="/"){let r,o={},a="",p="";const d=t.indexOf("#");let i=t.indexOf("?");return d<i&&d>=0&&(i=-1),i>-1&&(r=t.slice(0,i),a=t.slice(i+1,d>-1?d:t.length),o=e(a)),d>-1&&(r=r||t.slice(0,d),p=t.slice(d,t.length)),r=Nt(r!=null?r:t,n),{fullPath:r+(a&&"?")+a+p,path:r,query:o,hash:Z(p)}}function Lt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function be(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function It(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&U(t.matched[r],n.matched[o])&&Ye(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function U(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ye(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Tt(e[n],t[n]))return!1;return!0}function Tt(e,t){return I(e)?Ae(e,t):I(t)?Ae(t,e):e===t}function Ae(e,t){return I(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Nt(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 a=n.length-1,p,d;for(p=0;p<r.length;p++)if(d=r[p],d!==".")if(d==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(p).join("/")}const $={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var V;(function(e){e.pop="pop",e.push="push"})(V||(V={}));var q;(function(e){e.back="back",e.forward="forward",e.unknown=""})(q||(q={}));const he="";function Xe(e){if(!e)if(K){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Mt(e)}const jt=/^[^#]+#/;function Ze(e,t){return e.replace(jt,"#")+t}function Ht(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 te=()=>({left:window.scrollX,top:window.scrollY});function $t(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=Ht(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 Oe(e,t){return(history.state?history.state.position-t:-1)+e}const me=new Map;function Bt(e,t){me.set(e,t)}function Gt(e){const t=me.get(e);return me.delete(e),t}let qt=()=>location.protocol+"//"+location.host;function Je(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let d=o.includes(e.slice(a))?e.slice(a).length:1,i=o.slice(d);return i[0]!=="/"&&(i="/"+i),be(i,"")}return be(n,e)+r+o}function zt(e,t,n,r){let o=[],a=[],p=null;const d=({state:l})=>{const u=Je(e,location),P=n.value,S=t.value;let b=0;if(l){if(n.value=u,t.value=l,p&&p===P){p=null;return}b=S?l.position-S.position:0}else r(u);o.forEach(A=>{A(n.value,P,{delta:b,type:V.pop,direction:b?b>0?q.forward:q.back:q.unknown})})};function i(){p=n.value}function f(l){o.push(l);const u=()=>{const P=o.indexOf(l);P>-1&&o.splice(P,1)};return a.push(u),u}function h(){const{history:l}=window;l.state&&l.replaceState(w({},l.state,{scroll:te()}),"")}function c(){for(const l of a)l();a=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:i,listen:f,destroy:c}}function _e(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?te():null}}function Kt(e){const{history:t,location:n}=window,r={value:Je(e,n)},o={value:t.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(i,f,h){const c=e.indexOf("#"),l=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+i:qt()+e+i;try{t[h?"replaceState":"pushState"](f,"",l),o.value=f}catch(u){console.error(u),n[h?"replace":"assign"](l)}}function p(i,f){const h=w({},t.state,_e(o.value.back,i,o.value.forward,!0),f,{position:o.value.position});a(i,h,!0),r.value=i}function d(i,f){const h=w({},o.value,t.state,{forward:i,scroll:te()});a(h.current,h,!0);const c=w({},_e(r.value,i,null),{position:h.position+1},f);a(i,c,!1),r.value=i}return{location:r,state:o,push:d,replace:p}}function Ut(e){e=Xe(e);const t=Kt(e),n=zt(e,t.state,t.location,t.replace);function r(a,p=!0){p||n.pauseListeners(),history.go(a)}const o=w({location:"",base:e,go:r,createHref:Ze.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 yn(e=""){let t=[],n=[he],r=0;e=Xe(e);function o(d){r++,r!==n.length&&n.splice(r),n.push(d)}function a(d,i,{direction:f,delta:h}){const c={direction:f,delta:h,type:V.pop};for(const l of t)l(d,i,c)}const p={location:he,state:{},base:e,createHref:Ze.bind(null,e),replace(d){n.splice(r--,1),o(d)},push(d,i){o(d)},listen(d){return t.push(d),()=>{const i=t.indexOf(d);i>-1&&t.splice(i,1)}},destroy(){t=[],n=[he],r=0},go(d,i=!0){const f=this.location,h=d<0?q.back:q.forward;r=Math.max(0,Math.min(r+d,n.length-1)),i&&a(this.location,f,{direction:h,delta:d})}};return Object.defineProperty(p,"location",{enumerable:!0,get:()=>n[r]}),p}function Rn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Ut(e)}function Vt(e){return typeof e=="string"||e&&typeof e=="object"}function et(e){return typeof e=="string"||typeof e=="symbol"}const tt=Symbol("");var xe;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xe||(xe={}));function D(e,t){return w(new Error,{type:e,[tt]:!0},t)}function N(e,t){return e instanceof Error&&tt in e&&(t==null||!!(e.type&t))}const Me="[^/]+?",Dt={sensitive:!1,strict:!1,start:!0,end:!0},Qt=/[.+*?^${}()[\]/\\]/g;function Wt(e,t){const n=w({},Dt,t),r=[];let o=n.start?"^":"";const a=[];for(const f of e){const h=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let c=0;c<f.length;c++){const l=f[c];let u=40+(n.sensitive?.25:0);if(l.type===0)c||(o+="/"),o+=l.value.replace(Qt,"\\$&"),u+=40;else if(l.type===1){const{value:P,repeatable:S,optional:b,regexp:A}=l;a.push({name:P,repeatable:S,optional:b});const E=A||Me;if(E!==Me){u+=10;try{new RegExp(`(${E})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${P}" (${E}): `+L.message)}}let C=S?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;c||(C=b&&f.length<2?`(?:/${C})`:"/"+C),b&&(C+="?"),o+=C,u+=20,b&&(u+=-8),S&&(u+=-20),E===".*"&&(u+=-50)}h.push(u)}r.push(h)}if(n.strict&&n.end){const f=r.length-1;r[f][r[f].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const p=new RegExp(o,n.sensitive?"":"i");function d(f){const h=f.match(p),c={};if(!h)return null;for(let l=1;l<h.length;l++){const u=h[l]||"",P=a[l-1];c[P.name]=u&&P.repeatable?u.split("/"):u}return c}function i(f){let h="",c=!1;for(const l of e){(!c||!h.endsWith("/"))&&(h+="/"),c=!1;for(const u of l)if(u.type===0)h+=u.value;else if(u.type===1){const{value:P,repeatable:S,optional:b}=u,A=P in f?f[P]:"";if(I(A)&&!S)throw new Error(`Provided param "${P}" is an array but it is not repeatable (* or + modifiers)`);const E=I(A)?A.join("/"):A;if(!E)if(b)l.length<2&&(h.endsWith("/")?h=h.slice(0,-1):c=!0);else throw new Error(`Missing required param "${P}"`);h+=E}}return h||"/"}return{re:p,score:r,keys:a,parse:d,stringify:i}}function Ft(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]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function nt(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const a=Ft(r[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-r.length)===1){if(Le(r))return 1;if(Le(o))return-1}return o.length-r.length}function Le(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Yt={type:0,value:""},Xt=/[a-zA-Z0-9_]/;function Zt(e){if(!e)return[[]];if(e==="/")return[[Yt]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(u){throw new Error(`ERR (${n})/"${f}": ${u}`)}let n=0,r=n;const o=[];let a;function p(){a&&o.push(a),a=[]}let d=0,i,f="",h="";function c(){f&&(n===0?a.push({type:0,value:f}):n===1||n===2||n===3?(a.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:f,regexp:h,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),f="")}function l(){f+=i}for(;d<e.length;){if(i=e[d++],i==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:i==="/"?(f&&c(),p()):i===":"?(c(),n=1):l();break;case 4:l(),n=r;break;case 1:i==="("?n=2:Xt.test(i)?l():(c(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&d--);break;case 2:i===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+i:n=3:h+=i;break;case 3:c(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&d--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),c(),p(),o}function Jt(e,t,n){const r=Wt(Zt(e.path),n),o=w(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function en(e,t){const n=[],r=new Map;t=Ne({strict:!1,end:!0,sensitive:!1},t);function o(c){return r.get(c)}function a(c,l,u){const P=!u,S=tn(c);S.aliasOf=u&&u.record;const b=Ne(t,c),A=[S];if("alias"in c){const L=typeof c.alias=="string"?[c.alias]:c.alias;for(const G of L)A.push(w({},S,{components:u?u.record.components:S.components,path:G,aliasOf:u?u.record:S}))}let E,C;for(const L of A){const{path:G}=L;if(l&&G[0]!=="/"){const H=l.record.path,M=H[H.length-1]==="/"?"":"/";L.path=l.record.path+(G&&M+G)}if(E=Jt(L,l,b),u?u.alias.push(E):(C=C||E,C!==E&&C.alias.push(E),P&&c.name&&!Te(E)&&p(c.name)),rt(E)&&i(E),S.children){const H=S.children;for(let M=0;M<H.length;M++)a(H[M],E,u&&u.children[M])}u=u||E}return C?()=>{p(C)}:X}function p(c){if(et(c)){const l=r.get(c);l&&(r.delete(c),n.splice(n.indexOf(l),1),l.children.forEach(p),l.alias.forEach(p))}else{const l=n.indexOf(c);l>-1&&(n.splice(l,1),c.record.name&&r.delete(c.record.name),c.children.forEach(p),c.alias.forEach(p))}}function d(){return n}function i(c){const l=on(c,n);n.splice(l,0,c),c.record.name&&!Te(c)&&r.set(c.record.name,c)}function f(c,l){let u,P={},S,b;if("name"in c&&c.name){if(u=r.get(c.name),!u)throw D(1,{location:c});b=u.record.name,P=w(Ie(l.params,u.keys.filter(C=>!C.optional).concat(u.parent?u.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),c.params&&Ie(c.params,u.keys.map(C=>C.name))),S=u.stringify(P)}else if(c.path!=null)S=c.path,u=n.find(C=>C.re.test(S)),u&&(P=u.parse(S),b=u.record.name);else{if(u=l.name?r.get(l.name):n.find(C=>C.re.test(l.path)),!u)throw D(1,{location:c,currentLocation:l});b=u.record.name,P=w({},l.params,c.params),S=u.stringify(P)}const A=[];let E=u;for(;E;)A.unshift(E.record),E=E.parent;return{name:b,path:S,params:P,matched:A,meta:rn(A)}}e.forEach(c=>a(c));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:f,removeRoute:p,clearRoutes:h,getRoutes:d,getRecordMatcher:o}}function Ie(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function tn(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:nn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function nn(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 Te(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rn(e){return e.reduce((t,n)=>w(t,n.meta),{})}function Ne(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function on(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;nt(e,t[a])<0?r=a:n=a+1}const o=sn(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function sn(e){let t=e;for(;t=t.parent;)if(rt(t)&&nt(e,t)===0)return t}function rt({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function cn(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const a=r[o].replace(De," "),p=a.indexOf("="),d=Z(p<0?a:a.slice(0,p)),i=p<0?null:Z(a.slice(p+1));if(d in t){let f=t[d];I(f)||(f=t[d]=[f]),f.push(i)}else t[d]=i}return t}function je(e){let t="";for(let n in e){const r=e[n];if(n=At(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(I(r)?r.map(a=>a&&de(a)):[r&&de(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function an(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=I(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const ye=Symbol(""),He=Symbol(""),ne=Symbol(""),Re=Symbol(""),ge=Symbol("");function F(){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 ot(e,t,n){const r=()=>{e[t].delete(n)};ft(r),ht(r),pt(()=>{e[t].add(n)}),e[t].add(n)}function En(e){const t=j(ye,{}).value;t&&ot(t,"leaveGuards",e)}function Pn(e){const t=j(ye,{}).value;t&&ot(t,"updateGuards",e)}function B(e,t,n,r,o,a=p=>p()){const p=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((d,i)=>{const f=l=>{l===!1?i(D(4,{from:n,to:t})):l instanceof Error?i(l):Vt(l)?i(D(2,{from:t,to:l})):(p&&r.enterCallbacks[o]===p&&typeof l=="function"&&p.push(l),d())},h=a(()=>e.call(r&&r.instances[o],t,n,f));let c=Promise.resolve(h);e.length<3&&(c=c.then(f)),c.catch(l=>i(l))})}function pe(e,t,n,r,o=a=>a()){const a=[];for(const p of e)for(const d in p.components){let i=p.components[d];if(!(t!=="beforeRouteEnter"&&!p.instances[d]))if(ln(i)){const h=(i.__vccOpts||i)[t];h&&a.push(B(h,n,r,p,d,o))}else{let f=i();a.push(()=>f.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${p.path}"`));const c=Ue(h)?h.default:h;p.components[d]=c;const u=(c.__vccOpts||c)[t];return u&&B(u,n,r,p,d,o)()}))}}return a}function ln(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}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(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${t.path}". Ensure you passed a function that returns a promise.`));const p=Ue(a)?a.default:a;t.components[r]=p})),n},[])))).then(()=>e)}function $e(e){const t=j(ne),n=j(Re),r=T(()=>{const i=Y(e.to);return t.resolve(i)}),o=T(()=>{const{matched:i}=r.value,{length:f}=i,h=i[f-1],c=n.matched;if(!h||!c.length)return-1;const l=c.findIndex(U.bind(null,h));if(l>-1)return l;const u=Be(i[f-2]);return f>1&&Be(h)===u&&c[c.length-1].path!==u?c.findIndex(U.bind(null,i[f-2])):l}),a=T(()=>o.value>-1&&pn(n.params,r.value.params)),p=T(()=>o.value>-1&&o.value===n.matched.length-1&&Ye(n.params,r.value.params));function d(i={}){return hn(i)?t[Y(e.replace)?"replace":"push"](Y(e.to)).catch(X):Promise.resolve()}return{route:r,href:T(()=>r.value.href),isActive:a,isExactActive:p,navigate:d}}const un=ze({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:$e,setup(e,{slots:t}){const n=dt($e(e)),{options:r}=j(ne),o=T(()=>({[Ge(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ge(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:Ke("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),fn=un;function hn(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 pn(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(!I(o)||o.length!==r.length||r.some((a,p)=>a!==o[p]))return!1}return!0}function Be(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ge=(e,t,n)=>e!=null?e:t!=null?t:n,dn=ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=j(ge),o=T(()=>e.route||r.value),a=j(He,0),p=T(()=>{let f=Y(a);const{matched:h}=o.value;let c;for(;(c=h[f])&&!c.components;)f++;return f}),d=T(()=>o.value.matched[p.value]);le(He,T(()=>p.value+1)),le(ye,d),le(ge,o);const i=mt();return gt(()=>[i.value,d.value,e.name],([f,h,c],[l,u,P])=>{h&&(h.instances[c]=f,u&&u!==h&&f&&f===l&&(h.leaveGuards.size||(h.leaveGuards=u.leaveGuards),h.updateGuards.size||(h.updateGuards=u.updateGuards))),f&&h&&(!u||!U(h,u)||!l)&&(h.enterCallbacks[c]||[]).forEach(S=>S(f))},{flush:"post"}),()=>{const f=o.value,h=e.name,c=d.value,l=c&&c.components[h];if(!l)return qe(n.default,{Component:l,route:f});const u=c.props[h],P=u?u===!0?f.params:typeof u=="function"?u(f):u:null,b=Ke(l,w({},P,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(c.instances[h]=null)},ref:i}));return qe(n.default,{Component:b,route:f})||b}}});function qe(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const mn=dn;function Sn(e){const t=en(e.routes,e),n=e.parseQuery||cn,r=e.stringifyQuery||je,o=e.history,a=F(),p=F(),d=F(),i=at($);let f=$;K&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=ue.bind(null,s=>""+s),c=ue.bind(null,_t),l=ue.bind(null,Z);function u(s,g){let m,v;return et(s)?(m=t.getRecordMatcher(s),v=g):v=s,t.addRoute(v,m)}function P(s){const g=t.getRecordMatcher(s);g&&t.removeRoute(g)}function S(){return t.getRoutes().map(s=>s.record)}function b(s){return!!t.getRecordMatcher(s)}function A(s,g){if(g=w({},g||i.value),typeof s=="string"){const y=fe(n,s,g.path),_=t.resolve({path:y.path},g),W=o.createHref(y.fullPath);return w(y,_,{params:l(_.params),hash:Z(y.hash),redirectedFrom:void 0,href:W})}let m;if(s.path!=null)m=w({},s,{path:fe(n,s.path,g.path).path});else{const y=w({},s.params);for(const _ in y)y[_]==null&&delete y[_];m=w({},s,{params:c(y)}),g.params=c(g.params)}const v=t.resolve(m,g),k=s.hash||"";v.params=h(l(v.params));const O=Lt(r,w({},s,{hash:bt(k),path:v.path})),R=o.createHref(O);return w({fullPath:O,hash:k,query:r===je?an(s.query):s.query||{}},v,{redirectedFrom:void 0,href:R})}function E(s){return typeof s=="string"?fe(n,s,i.value.path):w({},s)}function C(s,g){if(f!==s)return D(8,{from:g,to:s})}function L(s){return M(s)}function G(s){return L(w(E(s),{replace:!0}))}function H(s){const g=s.matched[s.matched.length-1];if(g&&g.redirect){const{redirect:m}=g;let v=typeof m=="function"?m(s):m;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=E(v):{path:v},v.params={}),w({query:s.query,hash:s.hash,params:v.path!=null?{}:s.params},v)}}function M(s,g){const m=f=A(s),v=i.value,k=s.state,O=s.force,R=s.replace===!0,y=H(m);if(y)return M(w(E(y),{state:typeof y=="object"?w({},k,y.state):k,force:O,replace:R}),g||m);const _=m;_.redirectedFrom=g;let W;return!O&&It(r,v,m)&&(W=D(16,{to:_,from:v}),Ce(v,v,!0,!1)),(W?Promise.resolve(W):Ee(_,v)).catch(x=>N(x)?N(x,2)?x:ie(x):se(x,_,v)).then(x=>{if(x){if(N(x,2))return M(w({replace:R},E(x.to),{state:typeof x.to=="object"?w({},k,x.to.state):k,force:O}),g||_)}else x=we(_,v,!0,R,k);return Pe(_,v,x),x})}function st(s,g){const m=C(s,g);return m?Promise.reject(m):Promise.resolve()}function re(s){const g=ee.values().next().value;return g&&typeof g.runWithContext=="function"?g.runWithContext(s):s()}function Ee(s,g){let m;const[v,k,O]=gn(s,g);m=pe(v.reverse(),"beforeRouteLeave",s,g);for(const y of v)y.leaveGuards.forEach(_=>{m.push(B(_,s,g))});const R=st.bind(null,s,g);return m.push(R),z(m).then(()=>{m=[];for(const y of a.list())m.push(B(y,s,g));return m.push(R),z(m)}).then(()=>{m=pe(k,"beforeRouteUpdate",s,g);for(const y of k)y.updateGuards.forEach(_=>{m.push(B(_,s,g))});return m.push(R),z(m)}).then(()=>{m=[];for(const y of O)if(y.beforeEnter)if(I(y.beforeEnter))for(const _ of y.beforeEnter)m.push(B(_,s,g));else m.push(B(y.beforeEnter,s,g));return m.push(R),z(m)}).then(()=>(s.matched.forEach(y=>y.enterCallbacks={}),m=pe(O,"beforeRouteEnter",s,g,re),m.push(R),z(m))).then(()=>{m=[];for(const y of p.list())m.push(B(y,s,g));return m.push(R),z(m)}).catch(y=>N(y,8)?y:Promise.reject(y))}function Pe(s,g,m){d.list().forEach(v=>re(()=>v(s,g,m)))}function we(s,g,m,v,k){const O=C(s,g);if(O)return O;const R=g===$,y=K?history.state:{};m&&(v||R?o.replace(s.fullPath,w({scroll:R&&y&&y.scroll},k)):o.push(s.fullPath,k)),i.value=s,Ce(s,g,m,R),ie()}let Q;function it(){Q||(Q=o.listen((s,g,m)=>{if(!ke.listening)return;const v=A(s),k=H(v);if(k){M(w(k,{replace:!0}),v).catch(X);return}f=v;const O=i.value;K&&Bt(Oe(O.fullPath,m.delta),te()),Ee(v,O).catch(R=>N(R,12)?R:N(R,2)?(M(R.to,v).then(y=>{N(y,20)&&!m.delta&&m.type===V.pop&&o.go(-1,!1)}).catch(X),Promise.reject()):(m.delta&&o.go(-m.delta,!1),se(R,v,O))).then(R=>{R=R||we(v,O,!1),R&&(m.delta&&!N(R,8)?o.go(-m.delta,!1):m.type===V.pop&&N(R,20)&&o.go(-1,!1)),Pe(v,O,R)}).catch(X)}))}let oe=F(),Se=F(),J;function se(s,g,m){ie(s);const v=Se.list();return v.length?v.forEach(k=>k(s,g,m)):console.error(s),Promise.reject(s)}function ct(){return J&&i.value!==$?Promise.resolve():new Promise((s,g)=>{oe.add([s,g])})}function ie(s){return J||(J=!s,it(),oe.list().forEach(([g,m])=>s?m(s):g()),oe.reset()),s}function Ce(s,g,m,v){const{scrollBehavior:k}=e;if(!K||!k)return Promise.resolve();const O=!m&&Gt(Oe(s.fullPath,0))||(v||!m)&&history.state&&history.state.scroll||null;return ut().then(()=>k(s,g,O)).then(R=>R&&$t(R)).catch(R=>se(R,s,g))}const ce=s=>o.go(s);let ae;const ee=new Set,ke={currentRoute:i,listening:!0,addRoute:u,removeRoute:P,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:S,resolve:A,options:e,push:L,replace:G,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:p.add,afterEach:d.add,onError:Se.add,isReady:ct,install(s){const g=this;s.component("RouterLink",fn),s.component("RouterView",mn),s.config.globalProperties.$router=g,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>Y(i)}),K&&!ae&&i.value===$&&(ae=!0,L(o.location).catch(k=>{}));const m={};for(const k in $)Object.defineProperty(m,k,{get:()=>i.value[k],enumerable:!0});s.provide(ne,g),s.provide(Re,lt(m)),s.provide(ge,i);const v=s.unmount;ee.add(s),s.unmount=function(){ee.delete(s),ee.size<1&&(f=$,Q&&Q(),Q=null,i.value=$,ae=!1,J=!1),v()}}};function z(s){return s.reduce((g,m)=>g.then(()=>re(m)),Promise.resolve())}return ke}function gn(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let p=0;p<a;p++){const d=t.matched[p];d&&(e.matched.find(f=>U(f,d))?r.push(d):n.push(d));const i=e.matched[p];i&&(t.matched.find(f=>U(f,i))||o.push(i))}return[n,r,o]}function Cn(){return j(ne)}function kn(e){return j(Re)}export{xe as NavigationFailureType,fn as RouterLink,mn as RouterView,$ as START_LOCATION,yn as createMemoryHistory,Sn as createRouter,en as createRouterMatcher,Rn as createWebHashHistory,Ut as createWebHistory,N as isNavigationFailure,wn as loadRouteLocation,ye as matchedRouteKey,En as onBeforeRouteLeave,Pn as onBeforeRouteUpdate,cn as parseQuery,Re as routeLocationKey,ne as routerKey,ge as routerViewLocationKey,je as stringifyQuery,$e as useLink,kn as useRoute,Cn as useRouter,He as viewDepthKey};
package/dist/index.html CHANGED
@@ -8,7 +8,7 @@
8
8
  <meta http-equiv="Pragma" content="no-cache"/>
9
9
  <meta http-equiv="Expires" content="0"/>
10
10
  <title>低代码设计器 - VTJ.PRO</title>
11
- <script type="module" crossorigin src="./assets/index-C6gg0imE.js"></script>
11
+ <script type="module" crossorigin src="./assets/index-VxDmUQiN.js"></script>
12
12
  <link rel="modulepreload" crossorigin href="./assets/@vue-BhtQQxk5.js">
13
13
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-iLqVnzBD.js">
14
14
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-CU-R_5C5.js">
@@ -21,8 +21,8 @@
21
21
  <link rel="modulepreload" crossorigin href="./assets/normalize-wheel-es-B6fDCfyv.js">
22
22
  <link rel="modulepreload" crossorigin href="./assets/@floating-ui-CApwSdyH.js">
23
23
  <link rel="modulepreload" crossorigin href="./assets/element-plus-CYz-wZ3K.js">
24
- <link rel="modulepreload" crossorigin href="./assets/monaco-editor-DwlLClUG.js">
25
- <link rel="modulepreload" crossorigin href="./assets/vue-router-BiCJGkLH.js">
24
+ <link rel="modulepreload" crossorigin href="./assets/monaco-editor-DcvjtjDx.js">
25
+ <link rel="modulepreload" crossorigin href="./assets/vue-router-CbmApKJK.js">
26
26
  <link rel="stylesheet" crossorigin href="./assets/element-plus-DzZXHC44.css">
27
27
  <link rel="stylesheet" crossorigin href="./assets/monaco-editor-BgBQhOSF.css">
28
28
  <link rel="stylesheet" crossorigin href="./assets/index-CMrtph8S.css">
package/package.json CHANGED
@@ -2,23 +2,23 @@
2
2
  "name": "@vtj/pro",
3
3
  "description": "VTJ.PRO",
4
4
  "private": false,
5
- "version": "0.8.61",
5
+ "version": "0.8.63",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@vtj/core": "~0.8.61",
9
- "@vtj/local": "~0.8.61",
10
- "@vtj/designer": "~0.8.61",
11
- "@vtj/renderer": "~0.8.61",
12
- "@vtj/materials": "~0.8.61"
8
+ "@vtj/materials": "~0.8.63",
9
+ "@vtj/core": "~0.8.63",
10
+ "@vtj/local": "~0.8.63",
11
+ "@vtj/renderer": "~0.8.63",
12
+ "@vtj/designer": "~0.8.63"
13
13
  },
14
14
  "devDependencies": {
15
15
  "vue": "~3.4.15",
16
- "vue-router": "~4.3.0",
17
- "@vtj/charts": "~0.8.61",
18
- "@vtj/cli": "~0.8.14",
19
- "@vtj/icons": "~0.8.61",
20
- "@vtj/ui": "~0.8.61",
21
- "@vtj/utils": "~0.8.61"
16
+ "vue-router": "~4.4.0",
17
+ "@vtj/cli": "~0.8.16",
18
+ "@vtj/charts": "~0.8.63",
19
+ "@vtj/icons": "~0.8.63",
20
+ "@vtj/ui": "~0.8.63",
21
+ "@vtj/utils": "~0.8.63"
22
22
  },
23
23
  "exports": {
24
24
  "./vite": {
@@ -1,5 +0,0 @@
1
- import{s as at,u as Y,av as lt,G as j,k as I,n as ut,H as ft,a7 as ht,bh as pt,d as ze,a0 as dt,I as Ke,K as le,r as mt,f as gt}from"./@vue-BhtQQxk5.js";/*!
2
- * vue-router v4.3.3
3
- * (c) 2024 Eduardo San Martin Morote
4
- * @license MIT
5
- */const z=typeof document!="undefined";function Ue(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const S=Object.assign;function ue(e,t){const n={};for(const r in t){const o=t[r];n[r]=L(o)?o.map(e):e(o)}return n}const X=()=>{},L=Array.isArray,Ve=/#/g,vt=/&/g,yt=/\//g,Rt=/=/g,Et=/\?/g,De=/\+/g,Pt=/%5B/g,wt=/%5D/g,Qe=/%5E/g,St=/%60/g,We=/%7B/g,Ct=/%7C/g,Fe=/%7D/g,kt=/%20/g;function ve(e){return encodeURI(""+e).replace(Ct,"|").replace(Pt,"[").replace(wt,"]")}function bt(e){return ve(e).replace(We,"{").replace(Fe,"}").replace(Qe,"^")}function de(e){return ve(e).replace(De,"%2B").replace(kt,"+").replace(Ve,"%23").replace(vt,"%26").replace(St,"`").replace(We,"{").replace(Fe,"}").replace(Qe,"^")}function At(e){return de(e).replace(Rt,"%3D")}function Ot(e){return ve(e).replace(Ve,"%23").replace(Et,"%3F")}function _t(e){return e==null?"":Ot(e).replace(yt,"%2F")}function Z(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const xt=/\/$/,Mt=e=>e.replace(xt,"");function fe(e,t,n="/"){let r,o={},l="",h="";const p=t.indexOf("#");let c=t.indexOf("?");return p<c&&p>=0&&(c=-1),c>-1&&(r=t.slice(0,c),l=t.slice(c+1,p>-1?p:t.length),o=e(l)),p>-1&&(r=r||t.slice(0,p),h=t.slice(p,t.length)),r=Nt(r!=null?r:t,n),{fullPath:r+(l&&"?")+l+h,path:r,query:o,hash:Z(h)}}function Lt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function be(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function It(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&K(t.matched[r],n.matched[o])&&Ye(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function K(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ye(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Tt(e[n],t[n]))return!1;return!0}function Tt(e,t){return L(e)?Ae(e,t):L(t)?Ae(t,e):e===t}function Ae(e,t){return L(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Nt(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 l=n.length-1,h,p;for(h=0;h<r.length;h++)if(p=r[h],p!==".")if(p==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+r.slice(h).join("/")}var U;(function(e){e.pop="pop",e.push="push"})(U||(U={}));var G;(function(e){e.back="back",e.forward="forward",e.unknown=""})(G||(G={}));const he="";function Xe(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),Mt(e)}const jt=/^[^#]+#/;function Ze(e,t){return e.replace(jt,"#")+t}function Ht(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 te=()=>({left:window.scrollX,top:window.scrollY});function $t(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=Ht(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 Oe(e,t){return(history.state?history.state.position-t:-1)+e}const me=new Map;function Bt(e,t){me.set(e,t)}function Gt(e){const t=me.get(e);return me.delete(e),t}let qt=()=>location.protocol+"//"+location.host;function Je(e,t){const{pathname:n,search:r,hash:o}=t,l=e.indexOf("#");if(l>-1){let p=o.includes(e.slice(l))?e.slice(l).length:1,c=o.slice(p);return c[0]!=="/"&&(c="/"+c),be(c,"")}return be(n,e)+r+o}function zt(e,t,n,r){let o=[],l=[],h=null;const p=({state:a})=>{const g=Je(e,location),R=n.value,b=t.value;let k=0;if(a){if(n.value=g,t.value=a,h&&h===R){h=null;return}k=b?a.position-b.position:0}else r(g);o.forEach(w=>{w(n.value,R,{delta:k,type:U.pop,direction:k?k>0?G.forward:G.back:G.unknown})})};function c(){h=n.value}function u(a){o.push(a);const g=()=>{const R=o.indexOf(a);R>-1&&o.splice(R,1)};return l.push(g),g}function s(){const{history:a}=window;a.state&&a.replaceState(S({},a.state,{scroll:te()}),"")}function f(){for(const a of l)a();l=[],window.removeEventListener("popstate",p),window.removeEventListener("beforeunload",s)}return window.addEventListener("popstate",p),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:c,listen:u,destroy:f}}function _e(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?te():null}}function Kt(e){const{history:t,location:n}=window,r={value:Je(e,n)},o={value:t.state};o.value||l(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(c,u,s){const f=e.indexOf("#"),a=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:qt()+e+c;try{t[s?"replaceState":"pushState"](u,"",a),o.value=u}catch(g){console.error(g),n[s?"replace":"assign"](a)}}function h(c,u){const s=S({},t.state,_e(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});l(c,s,!0),r.value=c}function p(c,u){const s=S({},o.value,t.state,{forward:c,scroll:te()});l(s.current,s,!0);const f=S({},_e(r.value,c,null),{position:s.position+1},u);l(c,f,!1),r.value=c}return{location:r,state:o,push:p,replace:h}}function Ut(e){e=Xe(e);const t=Kt(e),n=zt(e,t.state,t.location,t.replace);function r(l,h=!0){h||n.pauseListeners(),history.go(l)}const o=S({location:"",base:e,go:r,createHref:Ze.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 yn(e=""){let t=[],n=[he],r=0;e=Xe(e);function o(p){r++,r!==n.length&&n.splice(r),n.push(p)}function l(p,c,{direction:u,delta:s}){const f={direction:u,delta:s,type:U.pop};for(const a of t)a(p,c,f)}const h={location:he,state:{},base:e,createHref:Ze.bind(null,e),replace(p){n.splice(r--,1),o(p)},push(p,c){o(p)},listen(p){return t.push(p),()=>{const c=t.indexOf(p);c>-1&&t.splice(c,1)}},destroy(){t=[],n=[he],r=0},go(p,c=!0){const u=this.location,s=p<0?G.back:G.forward;r=Math.max(0,Math.min(r+p,n.length-1)),c&&l(this.location,u,{direction:s,delta:p})}};return Object.defineProperty(h,"location",{enumerable:!0,get:()=>n[r]}),h}function Rn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Ut(e)}function Vt(e){return typeof e=="string"||e&&typeof e=="object"}function et(e){return typeof e=="string"||typeof e=="symbol"}const H={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},tt=Symbol("");var xe;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xe||(xe={}));function V(e,t){return S(new Error,{type:e,[tt]:!0},t)}function N(e,t){return e instanceof Error&&tt in e&&(t==null||!!(e.type&t))}const Me="[^/]+?",Dt={sensitive:!1,strict:!1,start:!0,end:!0},Qt=/[.+*?^${}()[\]/\\]/g;function Wt(e,t){const n=S({},Dt,t),r=[];let o=n.start?"^":"";const l=[];for(const u of e){const s=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const a=u[f];let g=40+(n.sensitive?.25:0);if(a.type===0)f||(o+="/"),o+=a.value.replace(Qt,"\\$&"),g+=40;else if(a.type===1){const{value:R,repeatable:b,optional:k,regexp:w}=a;l.push({name:R,repeatable:b,optional:k});const E=w||Me;if(E!==Me){g+=10;try{new RegExp(`(${E})`)}catch(M){throw new Error(`Invalid custom RegExp for param "${R}" (${E}): `+M.message)}}let _=b?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;f||(_=k&&u.length<2?`(?:/${_})`:"/"+_),k&&(_+="?"),o+=_,g+=20,k&&(g+=-8),b&&(g+=-20),E===".*"&&(g+=-50)}s.push(g)}r.push(s)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const h=new RegExp(o,n.sensitive?"":"i");function p(u){const s=u.match(h),f={};if(!s)return null;for(let a=1;a<s.length;a++){const g=s[a]||"",R=l[a-1];f[R.name]=g&&R.repeatable?g.split("/"):g}return f}function c(u){let s="",f=!1;for(const a of e){(!f||!s.endsWith("/"))&&(s+="/"),f=!1;for(const g of a)if(g.type===0)s+=g.value;else if(g.type===1){const{value:R,repeatable:b,optional:k}=g,w=R in u?u[R]:"";if(L(w)&&!b)throw new Error(`Provided param "${R}" is an array but it is not repeatable (* or + modifiers)`);const E=L(w)?w.join("/"):w;if(!E)if(k)a.length<2&&(s.endsWith("/")?s=s.slice(0,-1):f=!0);else throw new Error(`Missing required param "${R}"`);s+=E}}return s||"/"}return{re:h,score:r,keys:l,parse:p,stringify:c}}function Ft(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]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function nt(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const l=Ft(r[n],o[n]);if(l)return l;n++}if(Math.abs(o.length-r.length)===1){if(Le(r))return 1;if(Le(o))return-1}return o.length-r.length}function Le(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Yt={type:0,value:""},Xt=/[a-zA-Z0-9_]/;function Zt(e){if(!e)return[[]];if(e==="/")return[[Yt]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,r=n;const o=[];let l;function h(){l&&o.push(l),l=[]}let p=0,c,u="",s="";function f(){u&&(n===0?l.push({type:0,value:u}):n===1||n===2||n===3?(l.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:u,regexp:s,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function a(){u+=c}for(;p<e.length;){if(c=e[p++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&f(),h()):c===":"?(f(),n=1):a();break;case 4:a(),n=r;break;case 1:c==="("?n=2:Xt.test(c)?a():(f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&p--);break;case 2:c===")"?s[s.length-1]=="\\"?s=s.slice(0,-1)+c:n=3:s+=c;break;case 3:f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&p--,s="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),h(),o}function Jt(e,t,n){const r=Wt(Zt(e.path),n),o=S(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function en(e,t){const n=[],r=new Map;t=Ne({strict:!1,end:!0,sensitive:!1},t);function o(s){return r.get(s)}function l(s,f,a){const g=!a,R=tn(s);R.aliasOf=a&&a.record;const b=Ne(t,s),k=[R];if("alias"in s){const _=typeof s.alias=="string"?[s.alias]:s.alias;for(const M of _)k.push(S({},R,{components:a?a.record.components:R.components,path:M,aliasOf:a?a.record:R}))}let w,E;for(const _ of k){const{path:M}=_;if(f&&M[0]!=="/"){const B=f.record.path,T=B[B.length-1]==="/"?"":"/";_.path=f.record.path+(M&&T+M)}if(w=Jt(_,f,b),a?a.alias.push(w):(E=E||w,E!==w&&E.alias.push(w),g&&s.name&&!Te(w)&&h(s.name)),rt(w)&&c(w),R.children){const B=R.children;for(let T=0;T<B.length;T++)l(B[T],w,a&&a.children[T])}a=a||w}return E?()=>{h(E)}:X}function h(s){if(et(s)){const f=r.get(s);f&&(r.delete(s),n.splice(n.indexOf(f),1),f.children.forEach(h),f.alias.forEach(h))}else{const f=n.indexOf(s);f>-1&&(n.splice(f,1),s.record.name&&r.delete(s.record.name),s.children.forEach(h),s.alias.forEach(h))}}function p(){return n}function c(s){const f=on(s,n);n.splice(f,0,s),s.record.name&&!Te(s)&&r.set(s.record.name,s)}function u(s,f){let a,g={},R,b;if("name"in s&&s.name){if(a=r.get(s.name),!a)throw V(1,{location:s});b=a.record.name,g=S(Ie(f.params,a.keys.filter(E=>!E.optional).concat(a.parent?a.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),s.params&&Ie(s.params,a.keys.map(E=>E.name))),R=a.stringify(g)}else if(s.path!=null)R=s.path,a=n.find(E=>E.re.test(R)),a&&(g=a.parse(R),b=a.record.name);else{if(a=f.name?r.get(f.name):n.find(E=>E.re.test(f.path)),!a)throw V(1,{location:s,currentLocation:f});b=a.record.name,g=S({},f.params,s.params),R=a.stringify(g)}const k=[];let w=a;for(;w;)k.unshift(w.record),w=w.parent;return{name:b,path:R,params:g,matched:k,meta:rn(k)}}return e.forEach(s=>l(s)),{addRoute:l,resolve:u,removeRoute:h,getRoutes:p,getRecordMatcher:o}}function Ie(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function tn(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:nn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function nn(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 Te(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rn(e){return e.reduce((t,n)=>S(t,n.meta),{})}function Ne(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function on(e,t){let n=0,r=t.length;for(;n!==r;){const l=n+r>>1;nt(e,t[l])<0?r=l:n=l+1}const o=sn(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function sn(e){let t=e;for(;t=t.parent;)if(rt(t)&&nt(e,t)===0)return t}function rt({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function cn(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const l=r[o].replace(De," "),h=l.indexOf("="),p=Z(h<0?l:l.slice(0,h)),c=h<0?null:Z(l.slice(h+1));if(p in t){let u=t[p];L(u)||(u=t[p]=[u]),u.push(c)}else t[p]=c}return t}function je(e){let t="";for(let n in e){const r=e[n];if(n=At(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(L(r)?r.map(l=>l&&de(l)):[r&&de(r)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function an(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=L(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const ye=Symbol(""),He=Symbol(""),ne=Symbol(""),Re=Symbol(""),ge=Symbol("");function F(){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 ot(e,t,n){const r=()=>{e[t].delete(n)};ft(r),ht(r),pt(()=>{e[t].add(n)}),e[t].add(n)}function En(e){const t=j(ye,{}).value;t&&ot(t,"leaveGuards",e)}function Pn(e){const t=j(ye,{}).value;t&&ot(t,"updateGuards",e)}function $(e,t,n,r,o,l=h=>h()){const h=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((p,c)=>{const u=a=>{a===!1?c(V(4,{from:n,to:t})):a instanceof Error?c(a):Vt(a)?c(V(2,{from:t,to:a})):(h&&r.enterCallbacks[o]===h&&typeof a=="function"&&h.push(a),p())},s=l(()=>e.call(r&&r.instances[o],t,n,u));let f=Promise.resolve(s);e.length<3&&(f=f.then(u)),f.catch(a=>c(a))})}function pe(e,t,n,r,o=l=>l()){const l=[];for(const h of e)for(const p in h.components){let c=h.components[p];if(!(t!=="beforeRouteEnter"&&!h.instances[p]))if(ln(c)){const s=(c.__vccOpts||c)[t];s&&l.push($(s,n,r,h,p,o))}else{let u=c();l.push(()=>u.then(s=>{if(!s)return Promise.reject(new Error(`Couldn't resolve component "${p}" at "${h.path}"`));const f=Ue(s)?s.default:s;h.components[p]=f;const g=(f.__vccOpts||f)[t];return g&&$(g,n,r,h,p,o)()}))}}return l}function ln(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}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(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${t.path}". Ensure you passed a function that returns a promise.`));const h=Ue(l)?l.default:l;t.components[r]=h})),n},[])))).then(()=>e)}function $e(e){const t=j(ne),n=j(Re),r=I(()=>{const c=Y(e.to);return t.resolve(c)}),o=I(()=>{const{matched:c}=r.value,{length:u}=c,s=c[u-1],f=n.matched;if(!s||!f.length)return-1;const a=f.findIndex(K.bind(null,s));if(a>-1)return a;const g=Be(c[u-2]);return u>1&&Be(s)===g&&f[f.length-1].path!==g?f.findIndex(K.bind(null,c[u-2])):a}),l=I(()=>o.value>-1&&pn(n.params,r.value.params)),h=I(()=>o.value>-1&&o.value===n.matched.length-1&&Ye(n.params,r.value.params));function p(c={}){return hn(c)?t[Y(e.replace)?"replace":"push"](Y(e.to)).catch(X):Promise.resolve()}return{route:r,href:I(()=>r.value.href),isActive:l,isExactActive:h,navigate:p}}const un=ze({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:$e,setup(e,{slots:t}){const n=dt($e(e)),{options:r}=j(ne),o=I(()=>({[Ge(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ge(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&t.default(n);return e.custom?l:Ke("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),fn=un;function hn(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 pn(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(!L(o)||o.length!==r.length||r.some((l,h)=>l!==o[h]))return!1}return!0}function Be(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ge=(e,t,n)=>e!=null?e:t!=null?t:n,dn=ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=j(ge),o=I(()=>e.route||r.value),l=j(He,0),h=I(()=>{let u=Y(l);const{matched:s}=o.value;let f;for(;(f=s[u])&&!f.components;)u++;return u}),p=I(()=>o.value.matched[h.value]);le(He,I(()=>h.value+1)),le(ye,p),le(ge,o);const c=mt();return gt(()=>[c.value,p.value,e.name],([u,s,f],[a,g,R])=>{s&&(s.instances[f]=u,g&&g!==s&&u&&u===a&&(s.leaveGuards.size||(s.leaveGuards=g.leaveGuards),s.updateGuards.size||(s.updateGuards=g.updateGuards))),u&&s&&(!g||!K(s,g)||!a)&&(s.enterCallbacks[f]||[]).forEach(b=>b(u))},{flush:"post"}),()=>{const u=o.value,s=e.name,f=p.value,a=f&&f.components[s];if(!a)return qe(n.default,{Component:a,route:u});const g=f.props[s],R=g?g===!0?u.params:typeof g=="function"?g(u):g:null,k=Ke(a,S({},R,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(f.instances[s]=null)},ref:c}));return qe(n.default,{Component:k,route:u})||k}}});function qe(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const mn=dn;function Sn(e){const t=en(e.routes,e),n=e.parseQuery||cn,r=e.stringifyQuery||je,o=e.history,l=F(),h=F(),p=F(),c=at(H);let u=H;z&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const s=ue.bind(null,i=>""+i),f=ue.bind(null,_t),a=ue.bind(null,Z);function g(i,m){let d,v;return et(i)?(d=t.getRecordMatcher(i),v=m):v=i,t.addRoute(v,d)}function R(i){const m=t.getRecordMatcher(i);m&&t.removeRoute(m)}function b(){return t.getRoutes().map(i=>i.record)}function k(i){return!!t.getRecordMatcher(i)}function w(i,m){if(m=S({},m||c.value),typeof i=="string"){const y=fe(n,i,m.path),O=t.resolve({path:y.path},m),W=o.createHref(y.fullPath);return S(y,O,{params:a(O.params),hash:Z(y.hash),redirectedFrom:void 0,href:W})}let d;if(i.path!=null)d=S({},i,{path:fe(n,i.path,m.path).path});else{const y=S({},i.params);for(const O in y)y[O]==null&&delete y[O];d=S({},i,{params:f(y)}),m.params=f(m.params)}const v=t.resolve(d,m),C=i.hash||"";v.params=s(a(v.params));const A=Lt(r,S({},i,{hash:bt(C),path:v.path})),P=o.createHref(A);return S({fullPath:A,hash:C,query:r===je?an(i.query):i.query||{}},v,{redirectedFrom:void 0,href:P})}function E(i){return typeof i=="string"?fe(n,i,c.value.path):S({},i)}function _(i,m){if(u!==i)return V(8,{from:m,to:i})}function M(i){return D(i)}function B(i){return M(S(E(i),{replace:!0}))}function T(i){const m=i.matched[i.matched.length-1];if(m&&m.redirect){const{redirect:d}=m;let v=typeof d=="function"?d(i):d;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=E(v):{path:v},v.params={}),S({query:i.query,hash:i.hash,params:v.path!=null?{}:i.params},v)}}function D(i,m){const d=u=w(i),v=c.value,C=i.state,A=i.force,P=i.replace===!0,y=T(d);if(y)return D(S(E(y),{state:typeof y=="object"?S({},C,y.state):C,force:A,replace:P}),m||d);const O=d;O.redirectedFrom=m;let W;return!A&&It(r,v,d)&&(W=V(16,{to:O,from:v}),Ce(v,v,!0,!1)),(W?Promise.resolve(W):Ee(O,v)).catch(x=>N(x)?N(x,2)?x:ie(x):se(x,O,v)).then(x=>{if(x){if(N(x,2))return D(S({replace:P},E(x.to),{state:typeof x.to=="object"?S({},C,x.to.state):C,force:A}),m||O)}else x=we(O,v,!0,P,C);return Pe(O,v,x),x})}function st(i,m){const d=_(i,m);return d?Promise.reject(d):Promise.resolve()}function re(i){const m=ee.values().next().value;return m&&typeof m.runWithContext=="function"?m.runWithContext(i):i()}function Ee(i,m){let d;const[v,C,A]=gn(i,m);d=pe(v.reverse(),"beforeRouteLeave",i,m);for(const y of v)y.leaveGuards.forEach(O=>{d.push($(O,i,m))});const P=st.bind(null,i,m);return d.push(P),q(d).then(()=>{d=[];for(const y of l.list())d.push($(y,i,m));return d.push(P),q(d)}).then(()=>{d=pe(C,"beforeRouteUpdate",i,m);for(const y of C)y.updateGuards.forEach(O=>{d.push($(O,i,m))});return d.push(P),q(d)}).then(()=>{d=[];for(const y of A)if(y.beforeEnter)if(L(y.beforeEnter))for(const O of y.beforeEnter)d.push($(O,i,m));else d.push($(y.beforeEnter,i,m));return d.push(P),q(d)}).then(()=>(i.matched.forEach(y=>y.enterCallbacks={}),d=pe(A,"beforeRouteEnter",i,m,re),d.push(P),q(d))).then(()=>{d=[];for(const y of h.list())d.push($(y,i,m));return d.push(P),q(d)}).catch(y=>N(y,8)?y:Promise.reject(y))}function Pe(i,m,d){p.list().forEach(v=>re(()=>v(i,m,d)))}function we(i,m,d,v,C){const A=_(i,m);if(A)return A;const P=m===H,y=z?history.state:{};d&&(v||P?o.replace(i.fullPath,S({scroll:P&&y&&y.scroll},C)):o.push(i.fullPath,C)),c.value=i,Ce(i,m,d,P),ie()}let Q;function it(){Q||(Q=o.listen((i,m,d)=>{if(!ke.listening)return;const v=w(i),C=T(v);if(C){D(S(C,{replace:!0}),v).catch(X);return}u=v;const A=c.value;z&&Bt(Oe(A.fullPath,d.delta),te()),Ee(v,A).catch(P=>N(P,12)?P:N(P,2)?(D(P.to,v).then(y=>{N(y,20)&&!d.delta&&d.type===U.pop&&o.go(-1,!1)}).catch(X),Promise.reject()):(d.delta&&o.go(-d.delta,!1),se(P,v,A))).then(P=>{P=P||we(v,A,!1),P&&(d.delta&&!N(P,8)?o.go(-d.delta,!1):d.type===U.pop&&N(P,20)&&o.go(-1,!1)),Pe(v,A,P)}).catch(X)}))}let oe=F(),Se=F(),J;function se(i,m,d){ie(i);const v=Se.list();return v.length?v.forEach(C=>C(i,m,d)):console.error(i),Promise.reject(i)}function ct(){return J&&c.value!==H?Promise.resolve():new Promise((i,m)=>{oe.add([i,m])})}function ie(i){return J||(J=!i,it(),oe.list().forEach(([m,d])=>i?d(i):m()),oe.reset()),i}function Ce(i,m,d,v){const{scrollBehavior:C}=e;if(!z||!C)return Promise.resolve();const A=!d&&Gt(Oe(i.fullPath,0))||(v||!d)&&history.state&&history.state.scroll||null;return ut().then(()=>C(i,m,A)).then(P=>P&&$t(P)).catch(P=>se(P,i,m))}const ce=i=>o.go(i);let ae;const ee=new Set,ke={currentRoute:c,listening:!0,addRoute:g,removeRoute:R,hasRoute:k,getRoutes:b,resolve:w,options:e,push:M,replace:B,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:l.add,beforeResolve:h.add,afterEach:p.add,onError:Se.add,isReady:ct,install(i){const m=this;i.component("RouterLink",fn),i.component("RouterView",mn),i.config.globalProperties.$router=m,Object.defineProperty(i.config.globalProperties,"$route",{enumerable:!0,get:()=>Y(c)}),z&&!ae&&c.value===H&&(ae=!0,M(o.location).catch(C=>{}));const d={};for(const C in H)Object.defineProperty(d,C,{get:()=>c.value[C],enumerable:!0});i.provide(ne,m),i.provide(Re,lt(d)),i.provide(ge,c);const v=i.unmount;ee.add(i),i.unmount=function(){ee.delete(i),ee.size<1&&(u=H,Q&&Q(),Q=null,c.value=H,ae=!1,J=!1),v()}}};function q(i){return i.reduce((m,d)=>m.then(()=>re(d)),Promise.resolve())}return ke}function gn(e,t){const n=[],r=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let h=0;h<l;h++){const p=t.matched[h];p&&(e.matched.find(u=>K(u,p))?r.push(p):n.push(p));const c=e.matched[h];c&&(t.matched.find(u=>K(u,c))||o.push(c))}return[n,r,o]}function Cn(){return j(ne)}function kn(){return j(Re)}export{xe as NavigationFailureType,fn as RouterLink,mn as RouterView,H as START_LOCATION,yn as createMemoryHistory,Sn as createRouter,en as createRouterMatcher,Rn as createWebHashHistory,Ut as createWebHistory,N as isNavigationFailure,wn as loadRouteLocation,ye as matchedRouteKey,En as onBeforeRouteLeave,Pn as onBeforeRouteUpdate,cn as parseQuery,Re as routeLocationKey,ne as routerKey,ge as routerViewLocationKey,je as stringifyQuery,$e as useLink,kn as useRoute,Cn as useRouter,He as viewDepthKey};