@vtj/pro 0.7.13 → 0.7.15
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.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +3 -3
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +9 -9
- package/dist/@vtj/materials/deps/ant-design-vue/antd.min.js +1 -1
- package/dist/@vtj/materials/deps/echarts/echarts.min.js +45 -45
- package/dist/@vtj/materials/deps/element-plus/dark/css-vars.css +1 -0
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +19 -19
- package/dist/@vtj/materials/deps/vue/vue.global.prod.js +6 -6
- package/dist/@vtj/materials/deps/vue-router/vue-router.global.prod.js +3 -3
- package/dist/assets/{@element-plus-LjLasQGj.js → @element-plus-UyKPWr8Y.js} +1 -1
- package/dist/assets/@floating-ui-o_LpjUj1.js +1 -0
- package/dist/assets/@vue-B9G3NdkG.js +25 -0
- package/dist/assets/@vueuse-vj05gMbp.js +1 -0
- package/dist/assets/{Editor-ctkAn2cu-O6Vp28_y.js → Editor-BKlikwSl-Dczu-iwv.js} +2 -2
- package/dist/assets/{codicon-B7HMvkfX.ttf → codicon-CgFDqQ3p.ttf} +0 -0
- package/dist/assets/{css.worker-5fHi_Glb.js → css.worker-Dfgcs2yQ.js} +32 -32
- package/dist/assets/editor.worker-CUPKRFC6.js +11 -0
- package/dist/assets/element-plus-BwK240qL.css +1 -0
- package/dist/assets/element-plus-oSL2ERZK.js +20 -0
- package/dist/assets/{html.worker-86R1FDoj.js → html.worker-MPBy5nkK.js} +33 -33
- package/dist/assets/index-BYZAewbd.js +1 -0
- package/dist/assets/index-CPoFSBVH.js +190 -0
- package/dist/assets/index-CpeyEXHt.js +7 -0
- package/dist/assets/index-CyHSZxs2.css +1 -0
- package/dist/assets/json.worker-CAWUGd2U.js +42 -0
- package/dist/assets/lodash-es-DKmLY3Gz.js +1 -0
- package/dist/assets/monaco-editor-DzwMy79G.js +1475 -0
- package/dist/assets/monaco-editor-z6e5Xz8u.css +1 -0
- package/dist/assets/preview-BOI1fEyf.js +7 -0
- package/dist/assets/{ts.worker-NzTvDa2F.js → ts.worker-DIpcfo5S.js} +160 -160
- package/dist/assets/{vue-1oxrHUEe.js → vue-Dt5VvRS2.js} +3 -3
- package/dist/assets/vue-router-DfOys6cN.js +9 -0
- package/dist/index.html +18 -18
- package/dist/link.js +1 -1
- package/package.json +16 -16
- package/dist/assets/@floating-ui-YgFFYPER.js +0 -1
- package/dist/assets/@vue-lwVaHA3a.js +0 -25
- package/dist/assets/@vueuse-4RidYFUd.js +0 -1
- package/dist/assets/editor.worker-E2YKyfJw.js +0 -11
- package/dist/assets/element-plus-1fB6zogk.css +0 -1
- package/dist/assets/element-plus-qXjnbDbH.js +0 -20
- package/dist/assets/index-UXVEX-dz.js +0 -7
- package/dist/assets/index-X5h9O7zT.css +0 -1
- package/dist/assets/index-XKqIVmJZ.js +0 -1
- package/dist/assets/index-j3TvFdI9.js +0 -124
- package/dist/assets/json.worker-e2MIaH_v.js +0 -42
- package/dist/assets/lodash-es-bSbz8D7Z.js +0 -1
- package/dist/assets/monaco-editor-cf__QvdG.css +0 -1
- package/dist/assets/monaco-editor-ginzV8u1.js +0 -1479
- package/dist/assets/preview-BXPuJGo5.js +0 -7
- package/dist/assets/vue-router-7jZRLvj2.js +0 -5
- /package/dist/assets/{@ctrl-ZggoHSuR.js → @ctrl-r5W6hzzQ.js} +0 -0
- /package/dist/assets/{@popperjs-UUtjUkU3.js → @popperjs-CsO2-mKt.js} +0 -0
- /package/dist/assets/{async-validator-dHyGCDyC.js → async-validator-Cr9EP88T.js} +0 -0
- /package/dist/assets/{dayjs-IPtKBSau.js → dayjs-Ct2Knyoi.js} +0 -0
- /package/dist/assets/{echarts-w40geAFS.js → echarts-l0sNRNKZ.js} +0 -0
- /package/dist/assets/{index-AjK7aYfE.css → index-CMrtph8S.css} +0 -0
- /package/dist/assets/{index-1s8TnXJX.css → index-DWzxOdcl.css} +0 -0
- /package/dist/assets/{lodash-unified-w40geAFS.js → lodash-unified-l0sNRNKZ.js} +0 -0
- /package/dist/assets/{memoize-one-JaOscZgY.js → memoize-one-BdPwpGay.js} +0 -0
- /package/dist/assets/{normalize-wheel-es-1urBKM79.js → normalize-wheel-es-B6fDCfyv.js} +0 -0
- /package/dist/assets/{tslib-w40geAFS.js → tslib-l0sNRNKZ.js} +0 -0
- /package/dist/assets/{vue-demi-w40geAFS.js → vue-demi-l0sNRNKZ.js} +0 -0
- /package/dist/assets/{zrender-w40geAFS.js → zrender-l0sNRNKZ.js} +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{_ as o}from"./monaco-editor-ginzV8u1.js";import{useRoute as a}from"./vue-router-7jZRLvj2.js";import"./element-plus-qXjnbDbH.js";import{I as s,g as _,M as u}from"./index-j3TvFdI9.js";import{d as c,r as d,S as l,W as v,X as f,o as R,h as E}from"./@vue-lwVaHA3a.js";import"./lodash-es-bSbz8D7Z.js";import"./@vueuse-4RidYFUd.js";import"./@element-plus-LjLasQGj.js";import"./@popperjs-UUtjUkU3.js";import"./@ctrl-ZggoHSuR.js";import"./dayjs-IPtKBSau.js";import"./async-validator-dHyGCDyC.js";import"./memoize-one-JaOscZgY.js";import"./normalize-wheel-es-1urBKM79.js";import"./@floating-ui-YgFFYPER.js";import"./vue-1oxrHUEe.js";const N=c({__name:"preview",setup(C){const m=new u,{provider:r,onReady:i}=s({mode:_.Runtime,service:m,dependencies:{Vue:()=>o(()=>import("./vue-1oxrHUEe.js").then(e=>e.T),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>o(()=>import("./vue-router-7jZRLvj2.js"),__vite__mapDeps([2,1]),import.meta.url),ElementPlus:()=>o(()=>import("./element-plus-qXjnbDbH.js").then(e=>e.$),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)}}),n=a(),t=d(),p=E();return i(async()=>{p?.appContext.app.use(r),t.value=await r.getRenderComponent(n.params.id.toString())}),(e,I)=>t.value?(R(),l(v(t.value),{key:0})):f("",!0)}});export{N as default};
|
|
2
|
-
function __vite__mapDeps(indexes) {
|
|
3
|
-
if (!__vite__mapDeps.viteFileDeps) {
|
|
4
|
-
__vite__mapDeps.viteFileDeps = ["./vue-1oxrHUEe.js","./@vue-lwVaHA3a.js","./vue-router-7jZRLvj2.js","./element-plus-qXjnbDbH.js","./lodash-es-bSbz8D7Z.js","./@vueuse-4RidYFUd.js","./@element-plus-LjLasQGj.js","./@popperjs-UUtjUkU3.js","./@ctrl-ZggoHSuR.js","./dayjs-IPtKBSau.js","./async-validator-dHyGCDyC.js","./memoize-one-JaOscZgY.js","./normalize-wheel-es-1urBKM79.js","./@floating-ui-YgFFYPER.js","./element-plus-1fB6zogk.css"]
|
|
5
|
-
}
|
|
6
|
-
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
7
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{s as ct,u as Y,aw as at,G as I,j as T,n as lt,I as ut,a8 as ft,bh as ht,d as ze,a1 as pt,J as Ue,L as ae,r as dt,f as mt}from"./@vue-lwVaHA3a.js";/*!
|
|
2
|
-
* vue-router v4.2.5
|
|
3
|
-
* (c) 2023 Eduardo San Martin Morote
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/const z=typeof window<"u";function Ke(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const S=Object.assign;function le(e,t){const n={};for(const r in t){const o=t[r];n[r]=M(o)?o.map(e):e(o)}return n}const X=()=>{},M=Array.isArray,gt=/\/$/,vt=e=>e.replace(gt,"");function ue(e,t,n="/"){let r,o={},a="",d="";const h=t.indexOf("#");let c=t.indexOf("?");return h<c&&h>=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,h>-1?h:t.length),o=e(a)),h>-1&&(r=r||t.slice(0,h),d=t.slice(h,t.length)),r=Pt(r??t,n),{fullPath:r+(a&&"?")+a+d,path:r,query:o,hash:d}}function yt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ke(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Rt(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])&&Ve(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 Ve(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Et(e[n],t[n]))return!1;return!0}function Et(e,t){return M(e)?Ae(e,t):M(t)?Ae(t,e):e===t}function Ae(e,t){return M(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Pt(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,d,h;for(d=0;d<r.length;d++)if(h=r[d],h!==".")if(h==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(d-(d===r.length?1:0)).join("/")}var K;(function(e){e.pop="pop",e.push="push"})(K||(K={}));var G;(function(e){e.back="back",e.forward="forward",e.unknown=""})(G||(G={}));const fe="";function De(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),vt(e)}const wt=/^[^#]+#/;function We(e,t){return e.replace(wt,"#")+t}function St(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.pageXOffset,top:window.pageYOffset});function Ct(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=St(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Oe(e,t){return(history.state?history.state.position-t:-1)+e}const pe=new Map;function bt(e,t){pe.set(e,t)}function kt(e){const t=pe.get(e);return pe.delete(e),t}let At=()=>location.protocol+"//"+location.host;function Qe(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let h=o.includes(e.slice(a))?e.slice(a).length:1,c=o.slice(h);return c[0]!=="/"&&(c="/"+c),ke(c,"")}return ke(n,e)+r+o}function Ot(e,t,n,r){let o=[],a=[],d=null;const h=({state:f})=>{const g=Qe(e,location),R=n.value,k=t.value;let b=0;if(f){if(n.value=g,t.value=f,d&&d===R){d=null;return}b=k?f.position-k.position:0}else r(g);o.forEach(E=>{E(n.value,R,{delta:b,type:K.pop,direction:b?b>0?G.forward:G.back:G.unknown})})};function c(){d=n.value}function u(f){o.push(f);const g=()=>{const R=o.indexOf(f);R>-1&&o.splice(R,1)};return a.push(g),g}function s(){const{history:f}=window;f.state&&f.replaceState(S({},f.state,{scroll:te()}),"")}function l(){for(const f of a)f();a=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",s)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:c,listen:u,destroy:l}}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 _t(e){const{history:t,location:n}=window,r={value:Qe(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(c,u,s){const l=e.indexOf("#"),f=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+c:At()+e+c;try{t[s?"replaceState":"pushState"](u,"",f),o.value=u}catch(g){console.error(g),n[s?"replace":"assign"](f)}}function d(c,u){const s=S({},t.state,_e(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});a(c,s,!0),r.value=c}function h(c,u){const s=S({},o.value,t.state,{forward:c,scroll:te()});a(s.current,s,!0);const l=S({},_e(r.value,c,null),{position:s.position+1},u);a(c,l,!1),r.value=c}return{location:r,state:o,push:h,replace:d}}function xt(e){e=De(e);const t=_t(e),n=Ot(e,t.state,t.location,t.replace);function r(a,d=!0){d||n.pauseListeners(),history.go(a)}const o=S({location:"",base:e,go:r,createHref:We.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 gn(e=""){let t=[],n=[fe],r=0;e=De(e);function o(h){r++,r!==n.length&&n.splice(r),n.push(h)}function a(h,c,{direction:u,delta:s}){const l={direction:u,delta:s,type:K.pop};for(const f of t)f(h,c,l)}const d={location:fe,state:{},base:e,createHref:We.bind(null,e),replace(h){n.splice(r--,1),o(h)},push(h,c){o(h)},listen(h){return t.push(h),()=>{const c=t.indexOf(h);c>-1&&t.splice(c,1)}},destroy(){t=[],n=[fe],r=0},go(h,c=!0){const u=this.location,s=h<0?G.back:G.forward;r=Math.max(0,Math.min(r+h,n.length-1)),c&&a(this.location,u,{direction:s,delta:h})}};return Object.defineProperty(d,"location",{enumerable:!0,get:()=>n[r]}),d}function vn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),xt(e)}function Lt(e){return typeof e=="string"||e&&typeof e=="object"}function Fe(e){return typeof e=="string"||typeof e=="symbol"}const $={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Ye=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,[Ye]:!0},t)}function N(e,t){return e instanceof Error&&Ye in e&&(t==null||!!(e.type&t))}const Le="[^/]+?",Mt={sensitive:!1,strict:!1,start:!0,end:!0},Tt=/[.+*?^${}()[\]/\\]/g;function jt(e,t){const n=S({},Mt,t),r=[];let o=n.start?"^":"";const a=[];for(const u of e){const s=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let l=0;l<u.length;l++){const f=u[l];let g=40+(n.sensitive?.25:0);if(f.type===0)l||(o+="/"),o+=f.value.replace(Tt,"\\$&"),g+=40;else if(f.type===1){const{value:R,repeatable:k,optional:b,regexp:E}=f;a.push({name:R,repeatable:k,optional:b});const w=E||Le;if(w!==Le){g+=10;try{new RegExp(`(${w})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${R}" (${w}): `+L.message)}}let _=k?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;l||(_=b&&u.length<2?`(?:/${_})`:"/"+_),b&&(_+="?"),o+=_,g+=20,b&&(g+=-8),k&&(g+=-20),w===".*"&&(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 d=new RegExp(o,n.sensitive?"":"i");function h(u){const s=u.match(d),l={};if(!s)return null;for(let f=1;f<s.length;f++){const g=s[f]||"",R=a[f-1];l[R.name]=g&&R.repeatable?g.split("/"):g}return l}function c(u){let s="",l=!1;for(const f of e){(!l||!s.endsWith("/"))&&(s+="/"),l=!1;for(const g of f)if(g.type===0)s+=g.value;else if(g.type===1){const{value:R,repeatable:k,optional:b}=g,E=R in u?u[R]:"";if(M(E)&&!k)throw new Error(`Provided param "${R}" is an array but it is not repeatable (* or + modifiers)`);const w=M(E)?E.join("/"):E;if(!w)if(b)f.length<2&&(s.endsWith("/")?s=s.slice(0,-1):l=!0);else throw new Error(`Missing required param "${R}"`);s+=w}}return s||"/"}return{re:d,score:r,keys:a,parse:h,stringify:c}}function Nt(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 It(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const a=Nt(r[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-r.length)===1){if(Me(r))return 1;if(Me(o))return-1}return o.length-r.length}function Me(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const $t={type:0,value:""},Ht=/[a-zA-Z0-9_]/;function Bt(e){if(!e)return[[]];if(e==="/")return[[$t]];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 a;function d(){a&&o.push(a),a=[]}let h=0,c,u="",s="";function l(){u&&(n===0?a.push({type:0,value:u}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:s,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=c}for(;h<e.length;){if(c=e[h++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&l(),d()):c===":"?(l(),n=1):f();break;case 4:f(),n=r;break;case 1:c==="("?n=2:Ht.test(c)?f():(l(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&h--);break;case 2:c===")"?s[s.length-1]=="\\"?s=s.slice(0,-1)+c:n=3:s+=c;break;case 3:l(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&h--,s="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),l(),d(),o}function Gt(e,t,n){const r=jt(Bt(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 qt(e,t){const n=[],r=new Map;t=Ne({strict:!1,end:!0,sensitive:!1},t);function o(s){return r.get(s)}function a(s,l,f){const g=!f,R=zt(s);R.aliasOf=f&&f.record;const k=Ne(t,s),b=[R];if("alias"in s){const _=typeof s.alias=="string"?[s.alias]:s.alias;for(const L of _)b.push(S({},R,{components:f?f.record.components:R.components,path:L,aliasOf:f?f.record:R}))}let E,w;for(const _ of b){const{path:L}=_;if(l&&L[0]!=="/"){const B=l.record.path,j=B[B.length-1]==="/"?"":"/";_.path=l.record.path+(L&&j+L)}if(E=Gt(_,l,k),f?f.alias.push(E):(w=w||E,w!==E&&w.alias.push(E),g&&s.name&&!je(E)&&d(s.name)),R.children){const B=R.children;for(let j=0;j<B.length;j++)a(B[j],E,f&&f.children[j])}f=f||E,(E.record.components&&Object.keys(E.record.components).length||E.record.name||E.record.redirect)&&c(E)}return w?()=>{d(w)}:X}function d(s){if(Fe(s)){const l=r.get(s);l&&(r.delete(s),n.splice(n.indexOf(l),1),l.children.forEach(d),l.alias.forEach(d))}else{const l=n.indexOf(s);l>-1&&(n.splice(l,1),s.record.name&&r.delete(s.record.name),s.children.forEach(d),s.alias.forEach(d))}}function h(){return n}function c(s){let l=0;for(;l<n.length&&It(s,n[l])>=0&&(s.record.path!==n[l].record.path||!Xe(s,n[l]));)l++;n.splice(l,0,s),s.record.name&&!je(s)&&r.set(s.record.name,s)}function u(s,l){let f,g={},R,k;if("name"in s&&s.name){if(f=r.get(s.name),!f)throw V(1,{location:s});k=f.record.name,g=S(Te(l.params,f.keys.filter(w=>!w.optional).map(w=>w.name)),s.params&&Te(s.params,f.keys.map(w=>w.name))),R=f.stringify(g)}else if("path"in s)R=s.path,f=n.find(w=>w.re.test(R)),f&&(g=f.parse(R),k=f.record.name);else{if(f=l.name?r.get(l.name):n.find(w=>w.re.test(l.path)),!f)throw V(1,{location:s,currentLocation:l});k=f.record.name,g=S({},l.params,s.params),R=f.stringify(g)}const b=[];let E=f;for(;E;)b.unshift(E.record),E=E.parent;return{name:k,path:R,params:g,matched:b,meta:Kt(b)}}return e.forEach(s=>a(s)),{addRoute:a,resolve:u,removeRoute:d,getRoutes:h,getRecordMatcher:o}}function Te(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function zt(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Ut(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 Ut(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 je(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Kt(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 Xe(e,t){return t.children.some(n=>n===e||Xe(e,n))}const Ze=/#/g,Vt=/&/g,Dt=/\//g,Wt=/=/g,Qt=/\?/g,Je=/\+/g,Ft=/%5B/g,Yt=/%5D/g,et=/%5E/g,Xt=/%60/g,tt=/%7B/g,Zt=/%7C/g,nt=/%7D/g,Jt=/%20/g;function ge(e){return encodeURI(""+e).replace(Zt,"|").replace(Ft,"[").replace(Yt,"]")}function en(e){return ge(e).replace(tt,"{").replace(nt,"}").replace(et,"^")}function de(e){return ge(e).replace(Je,"%2B").replace(Jt,"+").replace(Ze,"%23").replace(Vt,"%26").replace(Xt,"`").replace(tt,"{").replace(nt,"}").replace(et,"^")}function tn(e){return de(e).replace(Wt,"%3D")}function nn(e){return ge(e).replace(Ze,"%23").replace(Qt,"%3F")}function rn(e){return e==null?"":nn(e).replace(Dt,"%2F")}function ee(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function on(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(Je," "),d=a.indexOf("="),h=ee(d<0?a:a.slice(0,d)),c=d<0?null:ee(a.slice(d+1));if(h in t){let u=t[h];M(u)||(u=t[h]=[u]),u.push(c)}else t[h]=c}return t}function Ie(e){let t="";for(let n in e){const r=e[n];if(n=tn(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(M(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 sn(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=M(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const ve=Symbol(""),$e=Symbol(""),ne=Symbol(""),ye=Symbol(""),me=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 rt(e,t,n){const r=()=>{e[t].delete(n)};ut(r),ft(r),ht(()=>{e[t].add(n)}),e[t].add(n)}function yn(e){const t=I(ve,{}).value;t&&rt(t,"leaveGuards",e)}function Rn(e){const t=I(ve,{}).value;t&&rt(t,"updateGuards",e)}function H(e,t,n,r,o){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((d,h)=>{const c=l=>{l===!1?h(V(4,{from:n,to:t})):l instanceof Error?h(l):Lt(l)?h(V(2,{from:t,to:l})):(a&&r.enterCallbacks[o]===a&&typeof l=="function"&&a.push(l),d())},u=e.call(r&&r.instances[o],t,n,c);let s=Promise.resolve(u);e.length<3&&(s=s.then(c)),s.catch(l=>h(l))})}function he(e,t,n,r){const o=[];for(const a of e)for(const d in a.components){let h=a.components[d];if(!(t!=="beforeRouteEnter"&&!a.instances[d]))if(cn(h)){const u=(h.__vccOpts||h)[t];u&&o.push(H(u,n,r,a,d))}else{let c=h();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${a.path}"`));const s=Ke(u)?u.default:u;a.components[d]=s;const f=(s.__vccOpts||s)[t];return f&&H(f,n,r,a,d)()}))}}return o}function cn(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function En(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 d=Ke(a)?a.default:a;t.components[r]=d})),n},[])))).then(()=>e)}function He(e){const t=I(ne),n=I(ye),r=T(()=>t.resolve(Y(e.to))),o=T(()=>{const{matched:c}=r.value,{length:u}=c,s=c[u-1],l=n.matched;if(!s||!l.length)return-1;const f=l.findIndex(U.bind(null,s));if(f>-1)return f;const g=Be(c[u-2]);return u>1&&Be(s)===g&&l[l.length-1].path!==g?l.findIndex(U.bind(null,c[u-2])):f}),a=T(()=>o.value>-1&&fn(n.params,r.value.params)),d=T(()=>o.value>-1&&o.value===n.matched.length-1&&Ve(n.params,r.value.params));function h(c={}){return un(c)?t[Y(e.replace)?"replace":"push"](Y(e.to)).catch(X):Promise.resolve()}return{route:r,href:T(()=>r.value.href),isActive:a,isExactActive:d,navigate:h}}const an=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:He,setup(e,{slots:t}){const n=pt(He(e)),{options:r}=I(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:Ue("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),ln=an;function un(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 fn(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(!M(o)||o.length!==r.length||r.some((a,d)=>a!==o[d]))return!1}return!0}function Be(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ge=(e,t,n)=>e??t??n,hn=ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=I(me),o=T(()=>e.route||r.value),a=I($e,0),d=T(()=>{let u=Y(a);const{matched:s}=o.value;let l;for(;(l=s[u])&&!l.components;)u++;return u}),h=T(()=>o.value.matched[d.value]);ae($e,T(()=>d.value+1)),ae(ve,h),ae(me,o);const c=dt();return mt(()=>[c.value,h.value,e.name],([u,s,l],[f,g,R])=>{s&&(s.instances[l]=u,g&&g!==s&&u&&u===f&&(s.leaveGuards.size||(s.leaveGuards=g.leaveGuards),s.updateGuards.size||(s.updateGuards=g.updateGuards))),u&&s&&(!g||!U(s,g)||!f)&&(s.enterCallbacks[l]||[]).forEach(k=>k(u))},{flush:"post"}),()=>{const u=o.value,s=e.name,l=h.value,f=l&&l.components[s];if(!f)return qe(n.default,{Component:f,route:u});const g=l.props[s],R=g?g===!0?u.params:typeof g=="function"?g(u):g:null,b=Ue(f,S({},R,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(l.instances[s]=null)},ref:c}));return qe(n.default,{Component:b,route:u})||b}}});function qe(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pn=hn;function Pn(e){const t=qt(e.routes,e),n=e.parseQuery||on,r=e.stringifyQuery||Ie,o=e.history,a=F(),d=F(),h=F(),c=ct($);let u=$;z&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const s=le.bind(null,i=>""+i),l=le.bind(null,rn),f=le.bind(null,ee);function g(i,m){let p,v;return Fe(i)?(p=t.getRecordMatcher(i),v=m):v=i,t.addRoute(v,p)}function R(i){const m=t.getRecordMatcher(i);m&&t.removeRoute(m)}function k(){return t.getRoutes().map(i=>i.record)}function b(i){return!!t.getRecordMatcher(i)}function E(i,m){if(m=S({},m||c.value),typeof i=="string"){const y=ue(n,i,m.path),O=t.resolve({path:y.path},m),Q=o.createHref(y.fullPath);return S(y,O,{params:f(O.params),hash:ee(y.hash),redirectedFrom:void 0,href:Q})}let p;if("path"in i)p=S({},i,{path:ue(n,i.path,m.path).path});else{const y=S({},i.params);for(const O in y)y[O]==null&&delete y[O];p=S({},i,{params:l(y)}),m.params=l(m.params)}const v=t.resolve(p,m),C=i.hash||"";v.params=s(f(v.params));const A=yt(r,S({},i,{hash:en(C),path:v.path})),P=o.createHref(A);return S({fullPath:A,hash:C,query:r===Ie?sn(i.query):i.query||{}},v,{redirectedFrom:void 0,href:P})}function w(i){return typeof i=="string"?ue(n,i,c.value.path):S({},i)}function _(i,m){if(u!==i)return V(8,{from:m,to:i})}function L(i){return D(i)}function B(i){return L(S(w(i),{replace:!0}))}function j(i){const m=i.matched[i.matched.length-1];if(m&&m.redirect){const{redirect:p}=m;let v=typeof p=="function"?p(i):p;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=w(v):{path:v},v.params={}),S({query:i.query,hash:i.hash,params:"path"in v?{}:i.params},v)}}function D(i,m){const p=u=E(i),v=c.value,C=i.state,A=i.force,P=i.replace===!0,y=j(p);if(y)return D(S(w(y),{state:typeof y=="object"?S({},C,y.state):C,force:A,replace:P}),m||p);const O=p;O.redirectedFrom=m;let Q;return!A&&Rt(r,v,p)&&(Q=V(16,{to:O,from:v}),Ce(v,v,!0,!1)),(Q?Promise.resolve(Q):Ee(O,v)).catch(x=>N(x)?N(x,2)?x:se(x):oe(x,O,v)).then(x=>{if(x){if(N(x,2))return D(S({replace:P},w(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 ot(i,m){const p=_(i,m);return p?Promise.reject(p):Promise.resolve()}function Re(i){const m=J.values().next().value;return m&&typeof m.runWithContext=="function"?m.runWithContext(i):i()}function Ee(i,m){let p;const[v,C,A]=dn(i,m);p=he(v.reverse(),"beforeRouteLeave",i,m);for(const y of v)y.leaveGuards.forEach(O=>{p.push(H(O,i,m))});const P=ot.bind(null,i,m);return p.push(P),q(p).then(()=>{p=[];for(const y of a.list())p.push(H(y,i,m));return p.push(P),q(p)}).then(()=>{p=he(C,"beforeRouteUpdate",i,m);for(const y of C)y.updateGuards.forEach(O=>{p.push(H(O,i,m))});return p.push(P),q(p)}).then(()=>{p=[];for(const y of A)if(y.beforeEnter)if(M(y.beforeEnter))for(const O of y.beforeEnter)p.push(H(O,i,m));else p.push(H(y.beforeEnter,i,m));return p.push(P),q(p)}).then(()=>(i.matched.forEach(y=>y.enterCallbacks={}),p=he(A,"beforeRouteEnter",i,m),p.push(P),q(p))).then(()=>{p=[];for(const y of d.list())p.push(H(y,i,m));return p.push(P),q(p)}).catch(y=>N(y,8)?y:Promise.reject(y))}function Pe(i,m,p){h.list().forEach(v=>Re(()=>v(i,m,p)))}function we(i,m,p,v,C){const A=_(i,m);if(A)return A;const P=m===$,y=z?history.state:{};p&&(v||P?o.replace(i.fullPath,S({scroll:P&&y&&y.scroll},C)):o.push(i.fullPath,C)),c.value=i,Ce(i,m,p,P),se()}let W;function st(){W||(W=o.listen((i,m,p)=>{if(!be.listening)return;const v=E(i),C=j(v);if(C){D(S(C,{replace:!0}),v).catch(X);return}u=v;const A=c.value;z&&bt(Oe(A.fullPath,p.delta),te()),Ee(v,A).catch(P=>N(P,12)?P:N(P,2)?(D(P.to,v).then(y=>{N(y,20)&&!p.delta&&p.type===K.pop&&o.go(-1,!1)}).catch(X),Promise.reject()):(p.delta&&o.go(-p.delta,!1),oe(P,v,A))).then(P=>{P=P||we(v,A,!1),P&&(p.delta&&!N(P,8)?o.go(-p.delta,!1):p.type===K.pop&&N(P,20)&&o.go(-1,!1)),Pe(v,A,P)}).catch(X)}))}let re=F(),Se=F(),Z;function oe(i,m,p){se(i);const v=Se.list();return v.length?v.forEach(C=>C(i,m,p)):console.error(i),Promise.reject(i)}function it(){return Z&&c.value!==$?Promise.resolve():new Promise((i,m)=>{re.add([i,m])})}function se(i){return Z||(Z=!i,st(),re.list().forEach(([m,p])=>i?p(i):m()),re.reset()),i}function Ce(i,m,p,v){const{scrollBehavior:C}=e;if(!z||!C)return Promise.resolve();const A=!p&&kt(Oe(i.fullPath,0))||(v||!p)&&history.state&&history.state.scroll||null;return lt().then(()=>C(i,m,A)).then(P=>P&&Ct(P)).catch(P=>oe(P,i,m))}const ie=i=>o.go(i);let ce;const J=new Set,be={currentRoute:c,listening:!0,addRoute:g,removeRoute:R,hasRoute:b,getRoutes:k,resolve:E,options:e,push:L,replace:B,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:a.add,beforeResolve:d.add,afterEach:h.add,onError:Se.add,isReady:it,install(i){const m=this;i.component("RouterLink",ln),i.component("RouterView",pn),i.config.globalProperties.$router=m,Object.defineProperty(i.config.globalProperties,"$route",{enumerable:!0,get:()=>Y(c)}),z&&!ce&&c.value===$&&(ce=!0,L(o.location).catch(C=>{}));const p={};for(const C in $)Object.defineProperty(p,C,{get:()=>c.value[C],enumerable:!0});i.provide(ne,m),i.provide(ye,at(p)),i.provide(me,c);const v=i.unmount;J.add(i),i.unmount=function(){J.delete(i),J.size<1&&(u=$,W&&W(),W=null,c.value=$,ce=!1,Z=!1),v()}}};function q(i){return i.reduce((m,p)=>m.then(()=>Re(p)),Promise.resolve())}return be}function dn(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let d=0;d<a;d++){const h=t.matched[d];h&&(e.matched.find(u=>U(u,h))?r.push(h):n.push(h));const c=e.matched[d];c&&(t.matched.find(u=>U(u,c))||o.push(c))}return[n,r,o]}function wn(){return I(ne)}function Sn(){return I(ye)}export{xe as NavigationFailureType,ln as RouterLink,pn as RouterView,$ as START_LOCATION,gn as createMemoryHistory,Pn as createRouter,qt as createRouterMatcher,vn as createWebHashHistory,xt as createWebHistory,N as isNavigationFailure,En as loadRouteLocation,ve as matchedRouteKey,yn as onBeforeRouteLeave,Rn as onBeforeRouteUpdate,on as parseQuery,ye as routeLocationKey,ne as routerKey,me as routerViewLocationKey,Ie as stringifyQuery,He as useLink,Sn as useRoute,wn as useRouter,$e as viewDepthKey};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|