@vtj/pro 0.9.30 → 0.10.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/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/assets/uni-h5/index.umd.js +7 -0
- package/dist/@vtj/materials/assets/vant/index.umd.js +5 -5
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/uni/index.umd.js +7 -0
- package/dist/@vtj/materials/deps/@vtj/uni/style.css +1 -0
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vueuse/core/index.iife.min.js +1 -1
- package/dist/@vtj/materials/deps/uni-app/index.umd.js +1 -0
- package/dist/@vtj/materials/deps/uni-h5/index.umd.js +19 -0
- package/dist/@vtj/materials/deps/uni-h5/style.css +1 -0
- package/dist/@vtj/materials/deps/uni-h5-vue/index.umd.js +8 -0
- package/dist/assets/{@element-plus-icons-vue-JgjQwxw0.js → @element-plus-icons-vue-CKT2Xck5.js} +1 -1
- package/dist/assets/@vueuse-PLVskUkm.js +1 -0
- package/dist/assets/{Editor-BFm57YMW-C94rZ-PX.js → Editor-BFm57YMW-ICS0kLhR.js} +1 -1
- package/dist/assets/auth-DOf-FTU6.js +1 -0
- package/dist/assets/{element-plus-BFFi_tB4.js → element-plus-DQ6lwucB.js} +1 -1
- package/dist/assets/extension-Al38NjBF.css +1 -0
- package/dist/assets/extension-BFNwuAqn.js +167 -0
- package/dist/assets/index-BQgIWiKT.js +159 -0
- package/dist/assets/index-qxxdDj8s.css +1 -0
- package/dist/assets/index-u0ty6Cb-.js +1 -0
- package/dist/assets/{mockjs-D_zazQCp.js → mockjs-DPQI6pPj.js} +1 -1
- package/dist/assets/page-CwpyqtAT.js +2 -0
- package/dist/assets/preview-DX069QZG.js +2 -0
- package/dist/assets/uni-page-Bjgk97mC.js +1 -0
- package/dist/assets/uni-page-Diqmj53r.css +1 -0
- package/dist/assets/{utils-CR3FiZqd.js → utils-QKipar_R.js} +1 -1
- package/dist/assets/{vue-Crnm0cHZ.js → vue-DnfbZNhx.js} +1 -1
- package/dist/assets/vue-router-D8EXeL0F.js +5 -0
- package/dist/assets/{vxe-cI65GXN1.js → vxe-DAcKvQ6r.js} +1 -1
- package/dist/index.html +12 -10
- package/dist/uni/assets/@dcloudio-uni-h5-vue-Bu5X-z7t.js +5 -0
- package/dist/uni/assets/@dcloudio-uni-shared-VStmjWbh.js +1 -0
- package/dist/uni/assets/index-DBvmFwEC.js +155 -0
- package/dist/uni/assets/mockjs-DMVMD3cZ.js +9 -0
- package/dist/uni/assets/vue-BK7aLblh.js +5 -0
- package/dist/{assets/vue-router-CmJCdr1O.js → uni/assets/vue-router-C0BknHSK.js} +2 -2
- package/dist/uni/index.html +26 -0
- package/package.json +15 -13
- package/src/App.vue +2 -0
- package/src/manifest.json +72 -0
- package/src/vtj/files/45t8zpljt.json +28 -0
- package/src/vtj/files/45t98u7le.json +19 -0
- package/src/vtj/histories/45t8zpljt/45t8zrek0.json +28 -0
- package/src/vtj/histories/45t8zpljt/45t90beoh.json +28 -0
- package/src/vtj/histories/45t8zpljt/45t90fn02.json +28 -0
- package/src/vtj/histories/45t8zpljt/45t923wpf.json +32 -0
- package/src/vtj/histories/45t8zpljt/7pf6pkqbb.json +28 -0
- package/src/vtj/histories/45t8zpljt/7pf6rxqsj.json +32 -0
- package/src/vtj/histories/45t8zpljt/b914fe2oe.json +28 -0
- package/src/vtj/histories/45t8zpljt/b914g2z9c.json +40 -0
- package/src/vtj/histories/45t8zpljt/esn260aw6.json +28 -0
- package/src/vtj/histories/45t8zpljt.json +41 -0
- package/src/vtj/materials/@vtj/pro.json +14729 -0
- package/src/vtj/projects/@vtj/pro.json +216 -0
- package/dist/assets/@vueuse-DbIzleUK.js +0 -1
- package/dist/assets/auth-ClPL45D5.js +0 -1
- package/dist/assets/extension-9SSJdadf.js +0 -154
- package/dist/assets/extension-Bc_SvzI0.css +0 -1
- package/dist/assets/index-CdSv23YK.css +0 -1
- package/dist/assets/index-CmegD0Ke.js +0 -1
- package/dist/assets/index-DzEED7Jk.js +0 -157
- package/dist/assets/page-BhC1yzc2.js +0 -2
- package/dist/assets/preview-Ci4NxL5B.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.designer[data-v-fbbd9127]{width:100%;height:100%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var F=Object.defineProperty,I=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?F(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,w=(o,e)=>{for(var t in e||(e={}))O.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))q.call(e,t)&&E(o,t,e[t]);return o},v=(o,e)=>I(o,N(e));var P=(o,e,t)=>new Promise((u,i)=>{var m=n=>{try{r(t.next(n))}catch(a){i(a)}},l=n=>{try{r(t.throw(n))}catch(a){i(a)}},r=n=>n.done?u(n.value):Promise.resolve(n.value).then(m,l);r((t=t.apply(o,e)).next())});import{useRoute as D}from"./vue-router-D8EXeL0F.js";import{I as K,N as W,H as j,T as G,A as J}from"./index-BQgIWiKT.js";import{a as M}from"./element-plus-DQ6lwucB.js";import"./vxe-DAcKvQ6r.js";import{u as A,D as U,E as V}from"./extension-BFNwuAqn.js";import{n as B,l as Y}from"./utils-QKipar_R.js";import{d as z,e as L,aB as C,f as Q,c as X,o as Z}from"./vue-DnfbZNhx.js";import{_ as ee}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./mockjs-DPQI6pPj.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-BfuwkNVi.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-PLVskUkm.js";import"./@element-plus-icons-vue-CKT2Xck5.js";import"./shared-CFJLz5mK.js";import"./html2canvas-CIV5arX1.js";const te=z({__name:"index",setup(o){return P(this,null,function*(){let e,t;const u=K({loading:Y,notify:B}),i=D(),m=L(),l=new W(j(B)),r=([e,t]=C(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e),{options:n,adapters:a}=r?([e,t]=C(()=>new V(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:d="/",history:S="hash",base:g="/",pageRouteName:T="page"}=r||{},$=a==null?void 0:a.access,b=a==null?void 0:a.remote,H=$?new G(w({alert:M.alert,storageKey:J},$)):void 0,R=()=>S==="hash",k=s=>s==="/"?"":(s.startsWith("/")&&(s=s.substring(1)),s.endsWith("/")||(s=s+"/"),s);A.set("Switcher",{props:{onClick:s=>{const _=s.platform==="uniapp",c=location.pathname;let p=c===`${d}__vtj__/`?d:c;const f=s.currentFile;if(f&&f.type==="page"&&s.homepage!==f.id){const x=`${k(g)}${_?"pages":T}/${f.id}`;p=R()?`${p}#/${x}`:`${p}${x}`}window.open(p,"VTJProject")}}}),A.set("Previewer",{props:{path:(s,_)=>{const c=location.pathname;return _.platform==="uniapp"?`${c}uni/#/pages/${s.id}`:`${c}#/preview/${s.id}`}}});const h=new U(v(w({container:m,service:l,materialPath:d,pageBasePath:g==="/"?"":g},n),{adapter:Object.assign(u,{access:H,remote:b},(n==null?void 0:n.adapter)||{})}));return h.ready(()=>{h.openFile(i.query.id)}),Q(()=>i.query.id,s=>{h.openFile(s)}),(s,_)=>(Z(),X("div",{class:"designer",ref_key:"container",ref:m},null,512))})}}),$e=ee(te,[["__scopeId","data-v-fbbd9127"]]);export{$e as default};
|
|
@@ -6,4 +6,4 @@ import{g as getDefaultExportFromCjs}from"./dayjs-DO-COJPZ.js";var mock$1={export
|
|
|
6
6
|
`?(g.seenCR||g.line++,g.column=1,g.seenCR=!1):$==="\r"||$==="\u2028"||$==="\u2029"?(g.line++,g.column=1,g.seenCR=!0):(g.column++,g.seenCR=!1)}return K!==e&&(K>e&&(K=0,s0={line:1,column:1,seenCR:!1}),t(s0,K,e),K=e),s0}function R(e){r0>r||(r>r0&&(r0=r,a0=[]),a0.push(e))}function u0(e){var t=0;for(e.sort();t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}function I(){var e,t,g,k,S;return e=r,t=W(),t!==null?(g=r,E.charCodeAt(r)===124?(k=L2,r++):(k=null,w===0&&R(F2)),k!==null?(S=I(),S!==null?(k=[k,S],g=k):(r=g,g=M)):(r=g,g=M),g===null&&(g=G),g!==null?(H=e,t=I2(t,g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function W(){var e,t,g,k,S;if(e=r,t=z(),t===null&&(t=G),t!==null)if(g=r,w++,k=B(),w--,k===null?g=G:(r=g,g=M),g!==null){for(k=[],S=Y(),S===null&&(S=X());S!==null;)k.push(S),S=Y(),S===null&&(S=X());k!==null?(S=J(),S===null&&(S=G),S!==null?(H=e,t=q2(t,k,S),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)}else r=e,e=M;else r=e,e=M;return e}function X(){var e;return e=x2(),e===null&&(e=w2(),e===null&&(e=A2())),e}function z(){var e,t;return e=r,E.charCodeAt(r)===94?(t=P0,r++):(t=null,w===0&&R(D0)),t!==null&&(H=e,t=N2()),t===null&&(r=e),e=t,e}function J(){var e,t;return e=r,E.charCodeAt(r)===36?(t=U2,r++):(t=null,w===0&&R(j2)),t!==null&&(H=e,t=B2()),t===null&&(r=e),e=t,e}function Y(){var e,t,g;return e=r,t=X(),t!==null?(g=B(),g!==null?(H=e,t=z2(t,g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function B(){var e,t,g;return w++,e=r,t=q(),t!==null?(g=m2(),g===null&&(g=G),g!==null?(H=e,t=X2(t,g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),w--,e===null&&(t=null,w===0&&R(G2)),e}function q(){var e;return e=f2(),e===null&&(e=h2(),e===null&&(e=p2(),e===null&&(e=d2(),e===null&&(e=v2(),e===null&&(e=g2()))))),e}function f2(){var e,t,g,k,S,j;return e=r,E.charCodeAt(r)===123?(t=i0,r++):(t=null,w===0&&R(o0)),t!==null?(g=V(),g!==null?(E.charCodeAt(r)===44?(k=K2,r++):(k=null,w===0&&R($2)),k!==null?(S=V(),S!==null?(E.charCodeAt(r)===125?(j=O0,r++):(j=null,w===0&&R(L0)),j!==null?(H=e,t=W2(g,S),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function h2(){var e,t,g,k;return e=r,E.charCodeAt(r)===123?(t=i0,r++):(t=null,w===0&&R(o0)),t!==null?(g=V(),g!==null?(E.substr(r,2)===F0?(k=F0,r+=2):(k=null,w===0&&R(J2)),k!==null?(H=e,t=Y2(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function p2(){var e,t,g,k;return e=r,E.charCodeAt(r)===123?(t=i0,r++):(t=null,w===0&&R(o0)),t!==null?(g=V(),g!==null?(E.charCodeAt(r)===125?(k=O0,r++):(k=null,w===0&&R(L0)),k!==null?(H=e,t=V2(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function d2(){var e,t;return e=r,E.charCodeAt(r)===43?(t=_2,r++):(t=null,w===0&&R(Q2)),t!==null&&(H=e,t=Z2()),t===null&&(r=e),e=t,e}function v2(){var e,t;return e=r,E.charCodeAt(r)===42?(t=e1,r++):(t=null,w===0&&R(t1)),t!==null&&(H=e,t=n1()),t===null&&(r=e),e=t,e}function g2(){var e,t;return e=r,E.charCodeAt(r)===63?(t=I0,r++):(t=null,w===0&&R(q0)),t!==null&&(H=e,t=r1()),t===null&&(r=e),e=t,e}function m2(){var e;return E.charCodeAt(r)===63?(e=I0,r++):(e=null,w===0&&R(q0)),e}function V(){var e,t,g;if(e=r,t=[],N0.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(U0)),g!==null)for(;g!==null;)t.push(g),N0.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(U0));else t=M;return t!==null&&(H=e,t=a1(t)),t===null&&(r=e),e=t,e}function x2(){var e,t,g,k;return e=r,E.charCodeAt(r)===40?(t=u1,r++):(t=null,w===0&&R(l1)),t!==null?(g=C2(),g===null&&(g=E2(),g===null&&(g=b2(),g===null&&(g=y2()))),g!==null?(E.charCodeAt(r)===41?(k=i1,r++):(k=null,w===0&&R(o1)),k!==null?(H=e,t=c1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function y2(){var e,t;return e=r,t=I(),t!==null&&(H=e,t=s1(t)),t===null&&(r=e),e=t,e}function b2(){var e,t,g;return e=r,E.substr(r,2)===j0?(t=j0,r+=2):(t=null,w===0&&R(f1)),t!==null?(g=I(),g!==null?(H=e,t=h1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function C2(){var e,t,g;return e=r,E.substr(r,2)===B0?(t=B0,r+=2):(t=null,w===0&&R(p1)),t!==null?(g=I(),g!==null?(H=e,t=d1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function E2(){var e,t,g;return e=r,E.substr(r,2)===z0?(t=z0,r+=2):(t=null,w===0&&R(v1)),t!==null?(g=I(),g!==null?(H=e,t=g1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function w2(){var e,t,g,k,S;if(w++,e=r,E.charCodeAt(r)===91?(t=x1,r++):(t=null,w===0&&R(y1)),t!==null)if(E.charCodeAt(r)===94?(g=P0,r++):(g=null,w===0&&R(D0)),g===null&&(g=G),g!==null){for(k=[],S=f0(),S===null&&(S=_());S!==null;)k.push(S),S=f0(),S===null&&(S=_());k!==null?(E.charCodeAt(r)===93?(S=b1,r++):(S=null,w===0&&R(C1)),S!==null?(H=e,t=E1(g,k),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)}else r=e,e=M;else r=e,e=M;return w--,e===null&&(t=null,w===0&&R(m1)),e}function f0(){var e,t,g,k;return w++,e=r,t=_(),t!==null?(E.charCodeAt(r)===45?(g=R1,r++):(g=null,w===0&&R(k1)),g!==null?(k=_(),k!==null?(H=e,t=A1(t,k),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),w--,e===null&&(t=null,w===0&&R(w1)),e}function _(){var e;return w++,e=k2(),e===null&&(e=R2()),w--,e===null&&w===0&&R(M1),e}function R2(){var e,t;return e=r,H1.test(E.charAt(r))?(t=E.charAt(r),r++):(t=null,w===0&&R(T1)),t!==null&&(H=e,t=c0(t)),t===null&&(r=e),e=t,e}function k2(){var e;return e=S2(),e===null&&(e=w0(),e===null&&(e=h0(),e===null&&(e=p0(),e===null&&(e=d0(),e===null&&(e=v0(),e===null&&(e=g0(),e===null&&(e=m0(),e===null&&(e=x0(),e===null&&(e=y0(),e===null&&(e=b0(),e===null&&(e=C0(),e===null&&(e=E0(),e===null&&(e=R0(),e===null&&(e=k0(),e===null&&(e=A0(),e===null&&(e=M0(),e===null&&(e=H0()))))))))))))))))),e}function A2(){var e;return e=M2(),e===null&&(e=T2(),e===null&&(e=H2())),e}function M2(){var e,t;return e=r,E.charCodeAt(r)===46?(t=S1,r++):(t=null,w===0&&R(P1)),t!==null&&(H=e,t=D1()),t===null&&(r=e),e=t,e}function H2(){var e,t;return w++,e=r,L1.test(E.charAt(r))?(t=E.charAt(r),r++):(t=null,w===0&&R(F1)),t!==null&&(H=e,t=c0(t)),t===null&&(r=e),e=t,w--,e===null&&(t=null,w===0&&R(O1)),e}function T2(){var e;return e=P2(),e===null&&(e=D2(),e===null&&(e=w0(),e===null&&(e=h0(),e===null&&(e=p0(),e===null&&(e=d0(),e===null&&(e=v0(),e===null&&(e=g0(),e===null&&(e=m0(),e===null&&(e=x0(),e===null&&(e=y0(),e===null&&(e=b0(),e===null&&(e=C0(),e===null&&(e=E0(),e===null&&(e=O2(),e===null&&(e=R0(),e===null&&(e=k0(),e===null&&(e=A0(),e===null&&(e=M0(),e===null&&(e=H0()))))))))))))))))))),e}function S2(){var e,t;return e=r,E.substr(r,2)===Z?(t=Z,r+=2):(t=null,w===0&&R(G0)),t!==null&&(H=e,t=I1()),t===null&&(r=e),e=t,e}function P2(){var e,t;return e=r,E.substr(r,2)===Z?(t=Z,r+=2):(t=null,w===0&&R(G0)),t!==null&&(H=e,t=q1()),t===null&&(r=e),e=t,e}function D2(){var e,t;return e=r,E.substr(r,2)===X0?(t=X0,r+=2):(t=null,w===0&&R(N1)),t!==null&&(H=e,t=U1()),t===null&&(r=e),e=t,e}function h0(){var e,t;return e=r,E.substr(r,2)===K0?(t=K0,r+=2):(t=null,w===0&&R(j1)),t!==null&&(H=e,t=B1()),t===null&&(r=e),e=t,e}function p0(){var e,t;return e=r,E.substr(r,2)===$0?(t=$0,r+=2):(t=null,w===0&&R(z1)),t!==null&&(H=e,t=G1()),t===null&&(r=e),e=t,e}function d0(){var e,t;return e=r,E.substr(r,2)===W0?(t=W0,r+=2):(t=null,w===0&&R(X1)),t!==null&&(H=e,t=K1()),t===null&&(r=e),e=t,e}function v0(){var e,t;return e=r,E.substr(r,2)===J0?(t=J0,r+=2):(t=null,w===0&&R($1)),t!==null&&(H=e,t=W1()),t===null&&(r=e),e=t,e}function g0(){var e,t;return e=r,E.substr(r,2)===Y0?(t=Y0,r+=2):(t=null,w===0&&R(J1)),t!==null&&(H=e,t=Y1()),t===null&&(r=e),e=t,e}function m0(){var e,t;return e=r,E.substr(r,2)===V0?(t=V0,r+=2):(t=null,w===0&&R(V1)),t!==null&&(H=e,t=_1()),t===null&&(r=e),e=t,e}function x0(){var e,t;return e=r,E.substr(r,2)===_0?(t=_0,r+=2):(t=null,w===0&&R(Q1)),t!==null&&(H=e,t=Z1()),t===null&&(r=e),e=t,e}function y0(){var e,t;return e=r,E.substr(r,2)===Q0?(t=Q0,r+=2):(t=null,w===0&&R(e3)),t!==null&&(H=e,t=t3()),t===null&&(r=e),e=t,e}function b0(){var e,t;return e=r,E.substr(r,2)===Z0?(t=Z0,r+=2):(t=null,w===0&&R(n3)),t!==null&&(H=e,t=r3()),t===null&&(r=e),e=t,e}function C0(){var e,t;return e=r,E.substr(r,2)===e2?(t=e2,r+=2):(t=null,w===0&&R(a3)),t!==null&&(H=e,t=u3()),t===null&&(r=e),e=t,e}function E0(){var e,t;return e=r,E.substr(r,2)===t2?(t=t2,r+=2):(t=null,w===0&&R(l3)),t!==null&&(H=e,t=i3()),t===null&&(r=e),e=t,e}function w0(){var e,t,g;return e=r,E.substr(r,2)===n2?(t=n2,r+=2):(t=null,w===0&&R(o3)),t!==null?(E.length>r?(g=E.charAt(r),r++):(g=null,w===0&&R(r2)),g!==null?(H=e,t=c3(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function O2(){var e,t,g;return e=r,E.charCodeAt(r)===92?(t=a2,r++):(t=null,w===0&&R(u2)),t!==null?(s3.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(f3)),g!==null?(H=e,t=h3(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function R0(){var e,t,g,k;if(e=r,E.substr(r,2)===e0?(t=e0,r+=2):(t=null,w===0&&R(l2)),t!==null){if(g=[],i2.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(o2)),k!==null)for(;k!==null;)g.push(k),i2.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(o2));else g=M;g!==null?(H=e,t=p3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function k0(){var e,t,g,k;if(e=r,E.substr(r,2)===c2?(t=c2,r+=2):(t=null,w===0&&R(d3)),t!==null){if(g=[],t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0)),k!==null)for(;k!==null;)g.push(k),t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0));else g=M;g!==null?(H=e,t=v3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function A0(){var e,t,g,k;if(e=r,E.substr(r,2)===s2?(t=s2,r+=2):(t=null,w===0&&R(g3)),t!==null){if(g=[],t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0)),k!==null)for(;k!==null;)g.push(k),t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0));else g=M;g!==null?(H=e,t=m3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function M0(){var e,t;return e=r,E.substr(r,2)===e0?(t=e0,r+=2):(t=null,w===0&&R(l2)),t!==null&&(H=e,t=x3()),t===null&&(r=e),e=t,e}function H0(){var e,t,g;return e=r,E.charCodeAt(r)===92?(t=a2,r++):(t=null,w===0&&R(u2)),t!==null?(E.length>r?(g=E.charAt(r),r++):(g=null,w===0&&R(r2)),g!==null?(H=e,t=c0(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}var l0,Q=arguments.length>1?arguments[1]:{},T0={regexp:I},S0=I,M=null,G="",L2="|",F2='"|"',I2=function(e,t){return t?new u(e,t[1]):e},q2=function(e,t,g){return new a([e].concat(t).concat([g]))},P0="^",D0='"^"',N2=function(){return new n("start")},U2="$",j2='"$"',B2=function(){return new n("end")},z2=function(e,t){return new p(e,t)},G2="Quantifier",X2=function(e,t){return t&&(e.greedy=!1),e},i0="{",o0='"{"',K2=",",$2='","',O0="}",L0='"}"',W2=function(e,t){return new f(e,t)},F0=",}",J2='",}"',Y2=function(e){return new f(e,1/0)},V2=function(e){return new f(e,e)},_2="+",Q2='"+"',Z2=function(){return new f(1,1/0)},e1="*",t1='"*"',n1=function(){return new f(0,1/0)},I0="?",q0='"?"',r1=function(){return new f(0,1)},N0=/^[0-9]/,U0="[0-9]",a1=function(e){return+e.join("")},u1="(",l1='"("',i1=")",o1='")"',c1=function(e){return e},s1=function(e){return new c(e)},j0="?:",f1='"?:"',h1=function(e){return new s("non-capture-group",e)},B0="?=",p1='"?="',d1=function(e){return new s("positive-lookahead",e)},z0="?!",v1='"?!"',g1=function(e){return new s("negative-lookahead",e)},m1="CharacterSet",x1="[",y1='"["',b1="]",C1='"]"',E1=function(e,t){return new o(!!e,t)},w1="CharacterRange",R1="-",k1='"-"',A1=function(e,t){return new v(e,t)},M1="Character",H1=/^[^\\\]]/,T1="[^\\\\\\]]",c0=function(e){return new y(e)},S1=".",P1='"."',D1=function(){return new n("any-character")},O1="Literal",L1=/^[^|\\\/.[()?+*$\^]/,F1="[^|\\\\\\/.[()?+*$\\^]",Z="\\b",G0='"\\\\b"',I1=function(){return new n("backspace")},q1=function(){return new n("word-boundary")},X0="\\B",N1='"\\\\B"',U1=function(){return new n("non-word-boundary")},K0="\\d",j1='"\\\\d"',B1=function(){return new n("digit")},$0="\\D",z1='"\\\\D"',G1=function(){return new n("non-digit")},W0="\\f",X1='"\\\\f"',K1=function(){return new n("form-feed")},J0="\\n",$1='"\\\\n"',W1=function(){return new n("line-feed")},Y0="\\r",J1='"\\\\r"',Y1=function(){return new n("carriage-return")},V0="\\s",V1='"\\\\s"',_1=function(){return new n("white-space")},_0="\\S",Q1='"\\\\S"',Z1=function(){return new n("non-white-space")},Q0="\\t",e3='"\\\\t"',t3=function(){return new n("tab")},Z0="\\v",n3='"\\\\v"',r3=function(){return new n("vertical-tab")},e2="\\w",a3='"\\\\w"',u3=function(){return new n("word")},t2="\\W",l3='"\\\\W"',i3=function(){return new n("non-word")},n2="\\c",o3='"\\\\c"',r2="any character",c3=function(e){return new b(e)},a2="\\",u2='"\\\\"',s3=/^[1-9]/,f3="[1-9]",h3=function(e){return new d(e)},e0="\\0",l2='"\\\\0"',i2=/^[0-7]/,o2="[0-7]",p3=function(e){return new h(e.join(""))},c2="\\x",d3='"\\\\x"',t0=/^[0-9a-fA-F]/,n0="[0-9a-fA-F]",v3=function(e){return new C(e.join(""))},s2="\\u",g3='"\\\\u"',m3=function(e){return new m(e.join(""))},x3=function(){return new n("null-character")},r=0,H=0,K=0,s0={line:1,column:1,seenCR:!1},r0=0,a0=[],w=0;if("startRule"in Q){if(!(Q.startRule in T0))throw new Error(`Can't start parsing from rule "`+Q.startRule+'".');S0=T0[Q.startRule]}if(n.offset=F,n.text=O,l0=S0(),l0!==null&&r===E.length)return l0;throw u0(a0),H=Math.max(r,r0),new D(a0,H<E.length?E.charAt(H):null,H,U(H).line,U(H).column)}return T(D,Error),{SyntaxError:D,parse:N}}(),P=1,L={};l.exports=A},function(l,x,n){var u=n(3),a=n(5),s={extend:u.extend},c=C(97,122),p=C(65,90),f=C(48,57),o=C(32,47)+C(58,64)+C(91,96)+C(123,126),v=C(32,126),y=` \f
|
|
7
7
|
\r \v \u2028\u2029`,m={"\\w":c+p+f+"_","\\W":o.replace("_",""),"\\s":y,"\\S":function(){for(var h=v,d=0;d<y.length;d++)h=h.replace(y[d],"");return h}(),"\\d":f,"\\D":c+p+o};function C(h,d){for(var b="",A=h;A<=d;A++)b+=String.fromCharCode(A);return b}s.gen=function(h,d,b){return b=b||{guid:1},s[h.type]?s[h.type](h,d,b):s.token(h,d,b)},s.extend({token:function(h,d,b){switch(h.type){case"start":case"end":return"";case"any-character":return a.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return a.pick(f.split(""));case"non-digit":return a.pick((c+p+o).split(""));case"form-feed":break;case"line-feed":return h.body||h.text;case"carriage-return":break;case"white-space":return a.pick(y.split(""));case"non-white-space":return a.pick((c+p+f).split(""));case"tab":break;case"vertical-tab":break;case"word":return a.pick((c+p+f).split(""));case"non-word":return a.pick(o.replace("_","").split(""))}return h.body||h.text},alternate:function(h,d,b){return this.gen(a.boolean()?h.left:h.right,d,b)},match:function(h,d,b){d="";for(var A=0;A<h.body.length;A++)d+=this.gen(h.body[A],d,b);return d},"capture-group":function(h,d,b){return d=this.gen(h.body,d,b),b[b.guid++]=d,d},"non-capture-group":function(h,d,b){return this.gen(h.body,d,b)},"positive-lookahead":function(h,d,b){return this.gen(h.body,d,b)},"negative-lookahead":function(h,d,b){return""},quantified:function(h,d,b){d="";for(var A=this.quantifier(h.quantifier),P=0;P<A;P++)d+=this.gen(h.body,d,b);return d},quantifier:function(h,d,b){var A=Math.max(h.min,0),P=isFinite(h.max)?h.max:A+a.integer(3,7);return a.integer(A,P)},charset:function(h,d,b){if(h.invert)return this["invert-charset"](h,d,b);var A=a.pick(h.body);return this.gen(A,d,b)},"invert-charset":function(h,d,b){for(var A=v,P=0,L;P<h.body.length;P++)switch(L=h.body[P],L.type){case"literal":A=A.replace(L.body,"");break;case"range":for(var T=this.gen(L.start,d,b).charCodeAt(),D=this.gen(L.end,d,b).charCodeAt(),N=T;N<=D;N++)A=A.replace(String.fromCharCode(N),"");default:var E=m[L.text];if(E)for(var O=0;O<=E.length;O++)A=A.replace(E[O],"")}return a.pick(A.split(""))},range:function(h,d,b){var A=this.gen(h.start,d,b).charCodeAt(),P=this.gen(h.end,d,b).charCodeAt();return String.fromCharCode(a.integer(A,P))},literal:function(h,d,b){return h.escaped?h.body:h.text},unicode:function(h,d,b){return String.fromCharCode(parseInt(h.code,16))},hex:function(h,d,b){return String.fromCharCode(parseInt(h.code,16))},octal:function(h,d,b){return String.fromCharCode(parseInt(h.code,8))},"back-reference":function(h,d,b){return b[h.code]||""},CONTROL_CHARACTER_MAP:function(){for(var h="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),d=`\0 \x07 \b
|
|
8
8
|
\v \f \r \x1B `.split(" "),b={},A=0;A<h.length;A++)b[h[A]]=d[A];return b}(),"control-character":function(h,d,b){return this.CONTROL_CHARACTER_MAP[h.code]}}),l.exports=s},function(l,x,n){l.exports=n(24)},function(l,x,n){var u=n(2),a=n(3),s=n(4);function c(p,f,o){o=o||[];var v={name:typeof f=="string"?f.replace(u.RE_KEY,"$1"):f,template:p,type:a.type(p),rule:s.parse(f)};switch(v.path=o.slice(0),v.path.push(f===void 0?"ROOT":v.name),v.type){case"array":v.items=[],a.each(p,function(y,m){v.items.push(c(y,m,v.path))});break;case"object":v.properties=[],a.each(p,function(y,m){v.properties.push(c(y,m,v.path))});break}return v}l.exports=c},function(l,x,n){l.exports=n(26)},function(l,x,n){var u=n(2),a=n(3),s=n(23);function c(o,v){for(var y=s(o),m=p.diff(y,v),C=0;C<m.length;C++);return m}var p={diff:function(v,y,m){var C=[];return this.name(v,y,m,C)&&this.type(v,y,m,C)&&(this.value(v,y,m,C),this.properties(v,y,m,C),this.items(v,y,m,C)),C},name:function(o,v,y,m){var C=m.length;return f.equal("name",o.path,y+"",o.name+"",m),m.length===C},type:function(o,v,y,m){var C=m.length;switch(o.type){case"string":if(o.template.match(u.RE_PLACEHOLDER))return!0;break;case"array":if(o.rule.parameters&&(o.rule.min!==void 0&&o.rule.max===void 0&&o.rule.count===1||o.rule.parameters[2]))return!0;break;case"function":return!0}return f.equal("type",o.path,a.type(v),o.type,m),m.length===C},value:function(o,v,y,m){var C=m.length,h=o.rule,d=o.type;if(d==="object"||d==="array"||d==="function")return!0;if(!h.parameters){switch(d){case"regexp":return f.match("value",o.path,v,o.template,m),m.length===C;case"string":if(o.template.match(u.RE_PLACEHOLDER))return m.length===C;break}return f.equal("value",o.path,v,o.template,m),m.length===C}var b;switch(d){case"number":var A=(v+"").split(".");A[0]=+A[0],h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("value",o.path,A[0],Math.min(h.min,h.max),m),f.lessThanOrEqualTo("value",o.path,A[0],Math.max(h.min,h.max),m)),h.min!==void 0&&h.max===void 0&&f.equal("value",o.path,A[0],h.min,m,"[value] "+y),h.decimal&&(h.dmin!==void 0&&h.dmax!==void 0&&(f.greaterThanOrEqualTo("value",o.path,A[1].length,h.dmin,m),f.lessThanOrEqualTo("value",o.path,A[1].length,h.dmax,m)),h.dmin!==void 0&&h.dmax===void 0&&f.equal("value",o.path,A[1].length,h.dmin,m));break;case"boolean":break;case"string":b=v.match(new RegExp(o.template,"g")),b=b?b.length:0,h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("repeat count",o.path,b,h.min,m),f.lessThanOrEqualTo("repeat count",o.path,b,h.max,m)),h.min!==void 0&&h.max===void 0&&f.equal("repeat count",o.path,b,h.min,m);break;case"regexp":b=v.match(new RegExp(o.template.source.replace(/^\^|\$$/g,""),"g")),b=b?b.length:0,h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("repeat count",o.path,b,h.min,m),f.lessThanOrEqualTo("repeat count",o.path,b,h.max,m)),h.min!==void 0&&h.max===void 0&&f.equal("repeat count",o.path,b,h.min,m);break}return m.length===C},properties:function(o,v,y,m){var C=m.length,h=o.rule,d=a.keys(v);if(o.properties){if(o.rule.parameters?(h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("properties length",o.path,d.length,Math.min(h.min,h.max),m),f.lessThanOrEqualTo("properties length",o.path,d.length,Math.max(h.min,h.max),m)),h.min!==void 0&&h.max===void 0&&h.count!==1&&f.equal("properties length",o.path,d.length,h.min,m)):f.equal("properties length",o.path,d.length,o.properties.length,m),m.length!==C)return!1;for(var b=0;b<d.length;b++)m.push.apply(m,this.diff(function(){var A;return a.each(o.properties,function(P){P.name===d[b]&&(A=P)}),A||o.properties[b]}(),v[d[b]],d[b]));return m.length===C}},items:function(o,v,y,m){var C=m.length;if(o.items){var h=o.rule;if(!o.rule.parameters)f.equal("items length",o.path,v.length,o.items.length,m);else{if(h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("items",o.path,v.length,Math.min(h.min,h.max)*o.items.length,m,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),f.lessThanOrEqualTo("items",o.path,v.length,Math.max(h.min,h.max)*o.items.length,m,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),h.min!==void 0&&h.max===void 0){if(h.count===1)return m.length===C;f.equal("items length",o.path,v.length,h.min*o.items.length,m)}if(h.parameters[2])return m.length===C}if(m.length!==C)return!1;for(var d=0;d<v.length;d++)m.push.apply(m,this.diff(o.items[d%o.items.length],v[d],d%o.items.length));return m.length===C}}},f={message:function(o){return(o.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",o.type.toUpperCase()).replace("{ltype}",o.type.toLowerCase()).replace("{path}",a.isArray(o.path)&&o.path.join(".")||o.path).replace("{action}",o.action).replace("{expected}",o.expected).replace("{actual}",o.actual)},equal:function(o,v,y,m,C,h){if(y===m)return!0;switch(o){case"type":if(m==="regexp"&&y==="string")return!0;break}var d={path:v,type:o,actual:y,expected:m,action:"is equal to",message:h};return d.message=f.message(d),C.push(d),!1},match:function(o,v,y,m,C,h){if(m.test(y))return!0;var d={path:v,type:o,actual:y,expected:m,action:"matches",message:h};return d.message=f.message(d),C.push(d),!1},notEqual:function(o,v,y,m,C,h){if(y!==m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is not equal to",message:h};return d.message=f.message(d),C.push(d),!1},greaterThan:function(o,v,y,m,C,h){if(y>m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than",message:h};return d.message=f.message(d),C.push(d),!1},lessThan:function(o,v,y,m,C,h){if(y<m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is less to",message:h};return d.message=f.message(d),C.push(d),!1},greaterThanOrEqualTo:function(o,v,y,m,C,h){if(y>=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than or equal to",message:h};return d.message=f.message(d),C.push(d),!1},lessThanOrEqualTo:function(o,v,y,m,C,h){if(y<=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is less than or equal to",message:h};return d.message=f.message(d),C.push(d),!1}};c.Diff=p,c.Assert=f,l.exports=c},function(l,x,n){l.exports=n(28)},function(l,x,n){var u=n(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch(C){window.Event=function(h,d,b,A){var P=document.createEvent("CustomEvent");return P.initCustomEvent(h,d,b,A),P}}var a={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},s="readystatechange loadstart progress abort error load timeout loadend".split(" "),c="timeout withCredentials".split(" "),p="readyState responseURL status statusText responseType response responseText responseXML".split(" "),f={200:"OK"};function o(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}o._settings={timeout:"10-100"},o.setup=function(C){return u.extend(o._settings,C),o._settings},u.extend(o,a),u.extend(o.prototype,a),o.prototype.mock=!0,o.prototype.match=!1,u.extend(o.prototype,{open:function(C,h,d,b,A){var P=this;u.extend(this.custom,{method:C,url:h,async:typeof d=="boolean"?d:!0,username:b,password:A,options:{url:h,type:C}}),this.custom.timeout=function(O){if(typeof O=="number")return O;if(typeof O=="string"&&!~O.indexOf("-"))return parseInt(O,10);if(typeof O=="string"&&~O.indexOf("-")){var F=O.split("-"),U=parseInt(F[0],10),R=parseInt(F[1],10);return Math.round(Math.random()*(R-U))+U}}(o._settings.timeout);var L=y(this.custom.options);function T(O){for(var F=0;F<p.length;F++)try{P[p[F]]=D[p[F]]}catch(U){}P.dispatchEvent(new Event(O.type))}if(!L){var D=v();this.custom.xhr=D;for(var N=0;N<s.length;N++)D.addEventListener(s[N],T);b?D.open(C,h,d,b,A):D.open(C,h,d);for(var E=0;E<c.length;E++)try{D[c[E]]=P[c[E]]}catch(O){}return}this.match=!0,this.custom.template=L,this.readyState=o.OPENED,this.dispatchEvent(new Event("readystatechange"))},setRequestHeader:function(C,h){if(!this.match){this.custom.xhr.setRequestHeader(C,h);return}var d=this.custom.requestHeaders;d[C]?d[C]+=","+h:d[C]=h},timeout:0,withCredentials:!1,upload:{},send:function(h){var d=this;if(this.custom.options.body=h,!this.match){this.custom.xhr.send(h);return}this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(b,this.custom.timeout):b();function b(){d.readyState=o.HEADERS_RECEIVED,d.dispatchEvent(new Event("readystatechange")),d.readyState=o.LOADING,d.dispatchEvent(new Event("readystatechange")),d.status=200,d.statusText=f[200],d.response=d.responseText=JSON.stringify(m(d.custom.template,d.custom.options),null,4),d.readyState=o.DONE,d.dispatchEvent(new Event("readystatechange")),d.dispatchEvent(new Event("load")),d.dispatchEvent(new Event("loadend"))}},abort:function(){if(!this.match){this.custom.xhr.abort();return}this.readyState=o.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))}}),u.extend(o.prototype,{responseURL:"",status:o.UNSENT,statusText:"",getResponseHeader:function(C){return this.match?this.custom.responseHeaders[C.toLowerCase()]:this.custom.xhr.getResponseHeader(C)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var C=this.custom.responseHeaders,h="";for(var d in C)C.hasOwnProperty(d)&&(h+=d+": "+C[d]+`\r
|
|
9
|
-
`);return h},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),u.extend(o.prototype,{addEventListener:function(h,d){var b=this.custom.events;b[h]||(b[h]=[]),b[h].push(d)},removeEventListener:function(h,d){for(var b=this.custom.events[h]||[],A=0;A<b.length;A++)b[A]===d&&b.splice(A--,1)},dispatchEvent:function(h){for(var d=this.custom.events[h.type]||[],b=0;b<d.length;b++)d[b].call(this,h);var A="on"+h.type;this[A]&&this[A](h)}});function v(){var C=function(){var b=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,A=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,P=location.href,L=A.exec(P.toLowerCase())||[];return b.test(L[1])}();return window.ActiveXObject?!C&&h()||d():h();function h(){try{return new window._XMLHttpRequest}catch(b){}}function d(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}function y(C){for(var h in o.Mock._mocked){var d=o.Mock._mocked[h];if((!d.rurl||b(d.rurl,C.url))&&(!d.rtype||b(d.rtype,C.type.toLowerCase())))return d}function b(A,P){if(u.type(A)==="string")return A===P;if(u.type(A)==="regexp")return A.test(P)}}function m(C,h){return u.isFunction(C.template)?C.template(h):o.Mock.mock(C.template)}l.exports=o}])})}(mock$1)),mock$1.exports}var mockExports=requireMock();const
|
|
9
|
+
`);return h},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),u.extend(o.prototype,{addEventListener:function(h,d){var b=this.custom.events;b[h]||(b[h]=[]),b[h].push(d)},removeEventListener:function(h,d){for(var b=this.custom.events[h]||[],A=0;A<b.length;A++)b[A]===d&&b.splice(A--,1)},dispatchEvent:function(h){for(var d=this.custom.events[h.type]||[],b=0;b<d.length;b++)d[b].call(this,h);var A="on"+h.type;this[A]&&this[A](h)}});function v(){var C=function(){var b=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,A=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,P=location.href,L=A.exec(P.toLowerCase())||[];return b.test(L[1])}();return window.ActiveXObject?!C&&h()||d():h();function h(){try{return new window._XMLHttpRequest}catch(b){}}function d(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}function y(C){for(var h in o.Mock._mocked){var d=o.Mock._mocked[h];if((!d.rurl||b(d.rurl,C.url))&&(!d.rtype||b(d.rtype,C.type.toLowerCase())))return d}function b(A,P){if(u.type(A)==="string")return A===P;if(u.type(A)==="regexp")return A.test(P)}}function m(C,h){return u.isFunction(C.template)?C.template(h):o.Mock.mock(C.template)}l.exports=o}])})}(mock$1)),mock$1.exports}var mockExports=requireMock();const co=getDefaultExportFromCjs(mockExports);export{co as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-D8EXeL0F.js","./vue-DnfbZNhx.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var h=Object.defineProperty,T=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var P=(o,t,e)=>t in o?h(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,g=(o,t)=>{for(var e in t||(t={}))I.call(t,e)&&P(o,e,t[e]);if(A)for(var e of A(t))S.call(t,e)&&P(o,e,t[e]);return o},l=(o,t)=>T(o,D(t));var E=(o,t,e)=>new Promise((_,i)=>{var p=a=>{try{s(e.next(a))}catch(m){i(m)}},c=a=>{try{s(e.throw(a))}catch(m){i(m)}},s=a=>a.done?_(a.value):Promise.resolve(a.value).then(p,c);s((e=e.apply(o,t)).next())});import{_ as R}from"./monaco-editor-BfuwkNVi.js";import{useRoute as V}from"./vue-router-D8EXeL0F.js";import{I as L,N as k,H,T as K,A as N,D as b,y as j}from"./index-BQgIWiKT.js";import{a as G}from"./element-plus-DQ6lwucB.js";import"./vxe-DAcKvQ6r.js";import{E as M,B as Y}from"./extension-BFNwuAqn.js";import{n as w,l as q}from"./utils-QKipar_R.js";import{d as z,aB as x,e as F,h as J,K as Q,O as U,P as W,o as X}from"./vue-DnfbZNhx.js";import"./mockjs-DPQI6pPj.js";import"./dayjs-DO-COJPZ.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-PLVskUkm.js";import"./@element-plus-icons-vue-CKT2Xck5.js";import"./shared-CFJLz5mK.js";import"./html2canvas-CIV5arX1.js";const lt=z({__name:"page",setup(o){return E(this,null,function*(){let t,e;const _=L({loading:q,notify:w}),i=new k(H(w)),p=([t,e]=x(()=>i.getExtension().catch(()=>null)),t=yield t,e(),t),{options:c,adapters:s}=p?([t,e]=x(()=>new M(p).load()),t=yield t,e(),t):{},{__BASE_PATH__:a="/"}=p||{},m=s==null?void 0:s.access,B=s==null?void 0:s.remote,O=m?new K(l(g({},m),{alert:G.alert,storageKey:N})):void 0,{provider:y,onReady:f}=b(l(g({mode:j.Runtime,service:i,materialPath:a,adapter:Object.assign(_,{access:O,remote:B},(c==null?void 0:c.adapter)||{})},c||{}),{dependencies:{Vue:()=>R(()=>import("./vue-DnfbZNhx.js").then(r=>r.ay),[],import.meta.url),VueRouter:()=>R(()=>import("./vue-router-D8EXeL0F.js"),__vite__mapDeps([0,1]),import.meta.url)}})),v=V(),u=F(),d=J();return f(()=>E(this,null,function*(){const r=d==null?void 0:d.appContext.app;r&&(r.use(Y),r.use(y)),u.value=yield y.getRenderComponent(v.params.id.toString(),n=>{Object.assign(v.meta,n.meta);const C=r==null?void 0:r._container;(n==null?void 0:n.type)==="page"&&C.classList.add("is-page"),(n==null?void 0:n.pure)&&C.classList.add("is-pure")})})),(r,n)=>u.value?(X(),Q(W(u.value),{key:0})):U("",!0)})}});export{lt as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-D8EXeL0F.js","./vue-DnfbZNhx.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var h=Object.defineProperty,T=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var w=(o,t,e)=>t in o?h(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,l=(o,t)=>{for(var e in t||(t={}))I.call(t,e)&&w(o,e,t[e]);if(C)for(var e of C(t))S.call(t,e)&&w(o,e,t[e]);return o},A=(o,t)=>T(o,D(t));var g=(o,t,e)=>new Promise((_,i)=>{var p=a=>{try{s(e.next(a))}catch(m){i(m)}},c=a=>{try{s(e.throw(a))}catch(m){i(m)}},s=a=>a.done?_(a.value):Promise.resolve(a.value).then(p,c);s((e=e.apply(o,t)).next())});import{_ as P}from"./monaco-editor-BfuwkNVi.js";import{useRoute as V}from"./vue-router-D8EXeL0F.js";import{a as L}from"./element-plus-DQ6lwucB.js";import"./vxe-DAcKvQ6r.js";import{E as k,B as H}from"./extension-BFNwuAqn.js";import{I as K,N,H as b,T as j,A as G,D as M,y as Y}from"./index-BQgIWiKT.js";import{n as R,l as q}from"./utils-QKipar_R.js";import{d as z,aB as x,e as F,h as J,K as Q,O as U,P as W,o as X}from"./vue-DnfbZNhx.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-PLVskUkm.js";import"./@element-plus-icons-vue-CKT2Xck5.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-DPQI6pPj.js";const gt=z({__name:"preview",setup(o){return g(this,null,function*(){let t,e;const _=K({loading:q,notify:R}),i=new N(b(R)),p=([t,e]=x(()=>i.getExtension().catch(()=>null)),t=yield t,e(),t),{options:c,adapters:s}=p?([t,e]=x(()=>new k(p).load()),t=yield t,e(),t):{},{__BASE_PATH__:a="/"}=p||{},m=s==null?void 0:s.access,B=s==null?void 0:s.remote,O=m?new j(l({alert:L.alert,storageKey:G},m)):void 0,{provider:E,onReady:f}=M(A(l({mode:Y.Runtime,service:i,materialPath:a},c||{}),{adapter:Object.assign(_,{access:O,remote:B},(c==null?void 0:c.adapter)||{}),dependencies:{Vue:()=>P(()=>import("./vue-DnfbZNhx.js").then(r=>r.ay),[],import.meta.url),VueRouter:()=>P(()=>import("./vue-router-D8EXeL0F.js"),__vite__mapDeps([0,1]),import.meta.url)}})),v=V(),u=F(),d=J();return f(()=>g(this,null,function*(){const r=d==null?void 0:d.appContext.app;r&&(r.use(H),r.use(E)),u.value=yield E.getRenderComponent(v.params.id.toString(),n=>{Object.assign(v.meta,n.meta);const y=r==null?void 0:r._container;(n==null?void 0:n.type)==="page"&&y.classList.add("is-page"),(n==null?void 0:n.pure)&&y.classList.add("is-pure")})})),(r,n)=>u.value?(X(),Q(W(u.value),{key:0})):U("",!0)})}});export{gt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useRoute as o}from"./vue-router-D8EXeL0F.js";import{d as s,k as a,c,a as r,o as n}from"./vue-DnfbZNhx.js";import{_}from"./_plugin-vue_export-helper-DlAUqK2U.js";const i={class:"uni-iframe"},p=["src"],u=s({__name:"uni-page",setup(m){const e=o(),t=a(()=>`http://localhost:8010/uni/#${e.path}`);return(f,d)=>(n(),c("div",i,[r("iframe",{src:t.value},null,8,p)]))}}),v=_(u,[["__scopeId","data-v-6cf4ecbe"]]);export{v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.uni-iframe[data-v-6cf4ecbe]{width:100%;height:100%;overflow:hidden}.uni-iframe iframe[data-v-6cf4ecbe]{width:100%;height:100%;border:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c as t}from"./element-plus-
|
|
1
|
+
import{b as a,c as t}from"./element-plus-DQ6lwucB.js";function c(){return t.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function e(n,o="",i="warning"){a({title:o,message:n,type:i})}export{c as l,e as n};
|
|
@@ -31,4 +31,4 @@
|
|
|
31
31
|
* @vue/shared v3.4.21
|
|
32
32
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
33
33
|
* @license MIT
|
|
34
|
-
**/const xh=()=>{},yh=Object.prototype.hasOwnProperty,Sh=(e,t)=>yh.call(e,t),wh=Array.isArray,Ah=e=>Xl(e)==="[object Date]",qs=e=>typeof e=="function",Oh=e=>typeof e=="string",bh=e=>e!==null&&typeof e=="object",Rh=e=>(bh(e)||qs(e))&&qs(e.then)&&qs(e.catch),vh=Object.prototype.toString,Xl=e=>vh.call(e),Ph=e=>Xl(e)==="[object Object]",Yr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ch=/-(\w)/g,Nh=Yr(e=>e.replace(Ch,(t,n)=>n?n.toUpperCase():"")),Th=/\B([A-Z])/g,Mh=Yr(e=>e.replace(Th,"-$1").toLowerCase()),Ih=Yr(e=>e.charAt(0).toUpperCase()+e.slice(1));export{
|
|
34
|
+
**/const xh=()=>{},yh=Object.prototype.hasOwnProperty,Sh=(e,t)=>yh.call(e,t),wh=Array.isArray,Ah=e=>Xl(e)==="[object Date]",qs=e=>typeof e=="function",Oh=e=>typeof e=="string",bh=e=>e!==null&&typeof e=="object",Rh=e=>(bh(e)||qs(e))&&qs(e.then)&&qs(e.catch),vh=Object.prototype.toString,Xl=e=>vh.call(e),Ph=e=>Xl(e)==="[object Object]",Yr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ch=/-(\w)/g,Nh=Yr(e=>e.replace(Ch,(t,n)=>n?n.toUpperCase():"")),Th=/\B([A-Z])/g,Mh=Yr(e=>e.replace(Th,"-$1").toLowerCase()),Ih=Yr(e=>e.charAt(0).toUpperCase()+e.slice(1));export{Po as $,Sh as A,oa as B,qs as C,Bo as D,Nh as E,zf as F,Tn as G,En as H,gl as I,fu as J,es as K,Rr as L,Sf as M,xh as N,Zu as O,Jf as P,Br as Q,go as R,he as S,re as T,Fl as U,Ia as V,ws as W,uu as X,hh as Y,Ss as Z,as as _,kr as a,xs as a0,Ue as a1,ft as a2,ie as a3,Af as a4,Io as a5,No as a6,ph as a7,Qf as a8,Xf as a9,ju as aA,pu as aB,hu as aC,Iu as aD,Wf as aE,Lc as aF,Ah as aa,pf as ab,pl as ac,Xe as ad,Z as ae,Gr as af,qr as ag,Tl as ah,Yf as ai,Ih as aj,Fr as ak,Rh as al,os as am,eu as an,sh as ao,so as ap,ac as aq,Ph as ar,Zf as as,nn as at,ql as au,yr as av,Mh as aw,no as ax,Eh as ay,Uf as az,hc as b,Gu as c,Mr as d,tn as e,$t as f,ji as g,Ie as h,Sn as i,oo as j,Cl as k,ue as l,Dc as m,vs as n,vn as o,Uc as p,Tu as q,xr as r,ro as s,jc as t,ps as u,ln as v,Pu as w,wh as x,bh as y,Oh as z};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{s as ut,d as Ve,u as Y,ax as ft,k as I,D as le,e as ht,f as pt,ah as Ue,n as dt,v as $,W as mt,a6 as gt,$ as vt,_ as yt}from"./vue-DnfbZNhx.js";/*!
|
|
2
|
+
* vue-router v4.5.0
|
|
3
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const V=typeof document!="undefined";function De(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ke(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&De(e.default)}const P=Object.assign;function ue(e,t){const n={};for(const r in t){const o=t[r];n[r]=T(o)?o.map(e):e(o)}return n}const X=()=>{},T=Array.isArray,We=/#/g,Rt=/&/g,Et=/\//g,wt=/=/g,Pt=/\?/g,Qe=/\+/g,St=/%5B/g,Ct=/%5D/g,Fe=/%5E/g,kt=/%60/g,Ye=/%7B/g,bt=/%7C/g,Xe=/%7D/g,At=/%20/g;function ve(e){return encodeURI(""+e).replace(bt,"|").replace(St,"[").replace(Ct,"]")}function Ot(e){return ve(e).replace(Ye,"{").replace(Xe,"}").replace(Fe,"^")}function de(e){return ve(e).replace(Qe,"%2B").replace(At,"+").replace(We,"%23").replace(Rt,"%26").replace(kt,"`").replace(Ye,"{").replace(Xe,"}").replace(Fe,"^")}function _t(e){return de(e).replace(wt,"%3D")}function xt(e){return ve(e).replace(We,"%23").replace(Pt,"%3F")}function Mt(e){return e==null?"":xt(e).replace(Et,"%2F")}function Z(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Lt=/\/$/,Tt=e=>e.replace(Lt,"");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=jt(r!=null?r:t,n),{fullPath:r+(a&&"?")+a+p,path:r,query:o,hash:Z(p)}}function It(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 Nt(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])&&Ze(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 Ze(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!$t(e[n],t[n]))return!1;return!0}function $t(e,t){return T(e)?Ae(e,t):T(t)?Ae(t,e):e===t}function Ae(e,t){return T(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function jt(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 H={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var D;(function(e){e.pop="pop",e.push="push"})(D||(D={}));var q;(function(e){e.back="back",e.forward="forward",e.unknown=""})(q||(q={}));const he="";function Je(e){if(!e)if(V){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Tt(e)}const Ht=/^[^#]+#/;function et(e,t){return e.replace(Ht,"#")+t}function Bt(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 Gt(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=Bt(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 qt(e,t){me.set(e,t)}function zt(e){const t=me.get(e);return me.delete(e),t}let Vt=()=>location.protocol+"//"+location.host;function tt(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 Ut(e,t,n,r){let o=[],a=[],p=null;const d=({state:u})=>{const f=tt(e,location),w=n.value,S=t.value;let b=0;if(u){if(n.value=f,t.value=u,p&&p===w){p=null;return}b=S?u.position-S.position:0}else r(f);o.forEach(A=>{A(n.value,w,{delta:b,type:D.pop,direction:b?b>0?q.forward:q.back:q.unknown})})};function i(){p=n.value}function l(u){o.push(u);const f=()=>{const w=o.indexOf(u);w>-1&&o.splice(w,1)};return a.push(f),f}function h(){const{history:u}=window;u.state&&u.replaceState(P({},u.state,{scroll:te()}),"")}function c(){for(const u of a)u();a=[],window.removeEventListener("popstate",d),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",d),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:i,listen:l,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 Dt(e){const{history:t,location:n}=window,r={value:tt(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,l,h){const c=e.indexOf("#"),u=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+i:Vt()+e+i;try{t[h?"replaceState":"pushState"](l,"",u),o.value=l}catch(f){console.error(f),n[h?"replace":"assign"](u)}}function p(i,l){const h=P({},t.state,_e(o.value.back,i,o.value.forward,!0),l,{position:o.value.position});a(i,h,!0),r.value=i}function d(i,l){const h=P({},o.value,t.state,{forward:i,scroll:te()});a(h.current,h,!0);const c=P({},_e(r.value,i,null),{position:h.position+1},l);a(i,c,!1),r.value=i}return{location:r,state:o,push:d,replace:p}}function Kt(e){e=Je(e);const t=Dt(e),n=Ut(e,t.state,t.location,t.replace);function r(a,p=!0){p||n.pauseListeners(),history.go(a)}const o=P({location:"",base:e,go:r,createHref:et.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 Rn(e=""){let t=[],n=[he],r=0;e=Je(e);function o(d){r++,r!==n.length&&n.splice(r),n.push(d)}function a(d,i,{direction:l,delta:h}){const c={direction:l,delta:h,type:D.pop};for(const u of t)u(d,i,c)}const p={location:he,state:{},base:e,createHref:et.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 l=this.location,h=d<0?q.back:q.forward;r=Math.max(0,Math.min(r+d,n.length-1)),i&&a(this.location,l,{direction:h,delta:d})}};return Object.defineProperty(p,"location",{enumerable:!0,get:()=>n[r]}),p}function En(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Kt(e)}function Wt(e){return typeof e=="string"||e&&typeof e=="object"}function nt(e){return typeof e=="string"||typeof e=="symbol"}const rt=Symbol("");var xe;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xe||(xe={}));function K(e,t){return P(new Error,{type:e,[rt]:!0},t)}function N(e,t){return e instanceof Error&&rt in e&&(t==null||!!(e.type&t))}const Me="[^/]+?",Qt={sensitive:!1,strict:!1,start:!0,end:!0},Ft=/[.+*?^${}()[\]/\\]/g;function Yt(e,t){const n=P({},Qt,t),r=[];let o=n.start?"^":"";const a=[];for(const l of e){const h=l.length?[]:[90];n.strict&&!l.length&&(o+="/");for(let c=0;c<l.length;c++){const u=l[c];let f=40+(n.sensitive?.25:0);if(u.type===0)c||(o+="/"),o+=u.value.replace(Ft,"\\$&"),f+=40;else if(u.type===1){const{value:w,repeatable:S,optional:b,regexp:A}=u;a.push({name:w,repeatable:S,optional:b});const E=A||Me;if(E!==Me){f+=10;try{new RegExp(`(${E})`)}catch(L){throw new Error(`Invalid custom RegExp for param "${w}" (${E}): `+L.message)}}let C=S?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;c||(C=b&&l.length<2?`(?:/${C})`:"/"+C),b&&(C+="?"),o+=C,f+=20,b&&(f+=-8),S&&(f+=-20),E===".*"&&(f+=-50)}h.push(f)}r.push(h)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const p=new RegExp(o,n.sensitive?"":"i");function d(l){const h=l.match(p),c={};if(!h)return null;for(let u=1;u<h.length;u++){const f=h[u]||"",w=a[u-1];c[w.name]=f&&w.repeatable?f.split("/"):f}return c}function i(l){let h="",c=!1;for(const u of e){(!c||!h.endsWith("/"))&&(h+="/"),c=!1;for(const f of u)if(f.type===0)h+=f.value;else if(f.type===1){const{value:w,repeatable:S,optional:b}=f,A=w in l?l[w]:"";if(T(A)&&!S)throw new Error(`Provided param "${w}" is an array but it is not repeatable (* or + modifiers)`);const E=T(A)?A.join("/"):A;if(!E)if(b)u.length<2&&(h.endsWith("/")?h=h.slice(0,-1):c=!0);else throw new Error(`Missing required param "${w}"`);h+=E}}return h||"/"}return{re:p,score:r,keys:a,parse:d,stringify:i}}function Xt(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 ot(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const a=Xt(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 Zt={type:0,value:""},Jt=/[a-zA-Z0-9_]/;function en(e){if(!e)return[[]];if(e==="/")return[[Zt]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${l}": ${f}`)}let n=0,r=n;const o=[];let a;function p(){a&&o.push(a),a=[]}let d=0,i,l="",h="";function c(){l&&(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:h,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),l="")}function u(){l+=i}for(;d<e.length;){if(i=e[d++],i==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:i==="/"?(l&&c(),p()):i===":"?(c(),n=1):u();break;case 4:u(),n=r;break;case 1:i==="("?n=2:Jt.test(i)?u():(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 "${l}"`),c(),p(),o}function tn(e,t,n){const r=Yt(en(e.path),n),o=P(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function nn(e,t){const n=[],r=new Map;t=$e({strict:!1,end:!0,sensitive:!1},t);function o(c){return r.get(c)}function a(c,u,f){const w=!f,S=Ie(c);S.aliasOf=f&&f.record;const b=$e(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(Ie(P({},S,{components:f?f.record.components:S.components,path:G,aliasOf:f?f.record:S})))}let E,C;for(const L of A){const{path:G}=L;if(u&&G[0]!=="/"){const j=u.record.path,M=j[j.length-1]==="/"?"":"/";L.path=u.record.path+(G&&M+G)}if(E=tn(L,u,b),f?f.alias.push(E):(C=C||E,C!==E&&C.alias.push(E),w&&c.name&&!Ne(E)&&p(c.name)),st(E)&&i(E),S.children){const j=S.children;for(let M=0;M<j.length;M++)a(j[M],E,f&&f.children[M])}f=f||E}return C?()=>{p(C)}:X}function p(c){if(nt(c)){const u=r.get(c);u&&(r.delete(c),n.splice(n.indexOf(u),1),u.children.forEach(p),u.alias.forEach(p))}else{const u=n.indexOf(c);u>-1&&(n.splice(u,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 u=sn(c,n);n.splice(u,0,c),c.record.name&&!Ne(c)&&r.set(c.record.name,c)}function l(c,u){let f,w={},S,b;if("name"in c&&c.name){if(f=r.get(c.name),!f)throw K(1,{location:c});b=f.record.name,w=P(Te(u.params,f.keys.filter(C=>!C.optional).concat(f.parent?f.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),c.params&&Te(c.params,f.keys.map(C=>C.name))),S=f.stringify(w)}else if(c.path!=null)S=c.path,f=n.find(C=>C.re.test(S)),f&&(w=f.parse(S),b=f.record.name);else{if(f=u.name?r.get(u.name):n.find(C=>C.re.test(u.path)),!f)throw K(1,{location:c,currentLocation:u});b=f.record.name,w=P({},u.params,c.params),S=f.stringify(w)}const A=[];let E=f;for(;E;)A.unshift(E.record),E=E.parent;return{name:b,path:S,params:w,matched:A,meta:on(A)}}e.forEach(c=>a(c));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:p,clearRoutes:h,getRoutes:d,getRecordMatcher:o}}function Te(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ie(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:rn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function rn(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 Ne(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function on(e){return e.reduce((t,n)=>P(t,n.meta),{})}function $e(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function sn(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;ot(e,t[a])<0?r=a:n=a+1}const o=cn(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function cn(e){let t=e;for(;t=t.parent;)if(st(t)&&ot(e,t)===0)return t}function st({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function an(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(Qe," "),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 l=t[d];T(l)||(l=t[d]=[l]),l.push(i)}else t[d]=i}return t}function je(e){let t="";for(let n in e){const r=e[n];if(n=_t(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(T(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 ln(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=T(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 it(e,t,n){const r=()=>{e[t].delete(n)};mt(r),gt(r),vt(()=>{e[t].add(n)}),e[t].add(n)}function wn(e){const t=$(ye,{}).value;t&&it(t,"leaveGuards",e)}function Pn(e){const t=$(ye,{}).value;t&&it(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 l=u=>{u===!1?i(K(4,{from:n,to:t})):u instanceof Error?i(u):Wt(u)?i(K(2,{from:t,to:u})):(p&&r.enterCallbacks[o]===p&&typeof u=="function"&&p.push(u),d())},h=a(()=>e.call(r&&r.instances[o],t,n,l));let c=Promise.resolve(h);e.length<3&&(c=c.then(l)),c.catch(u=>i(u))})}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(De(i)){const h=(i.__vccOpts||i)[t];h&&a.push(B(h,n,r,p,d,o))}else{let l=i();a.push(()=>l.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${d}" at "${p.path}"`);const c=Ke(h)?h.default:h;p.mods[d]=h,p.components[d]=c;const f=(c.__vccOpts||c)[t];return f&&B(f,n,r,p,d,o)()}))}}return a}function Sn(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=Ke(a)?a.default:a;t.mods[r]=a,t.components[r]=p})),n},[])))).then(()=>e)}function Be(e){const t=$(ne),n=$(Re),r=I(()=>{const i=Y(e.to);return t.resolve(i)}),o=I(()=>{const{matched:i}=r.value,{length:l}=i,h=i[l-1],c=n.matched;if(!h||!c.length)return-1;const u=c.findIndex(U.bind(null,h));if(u>-1)return u;const f=Ge(i[l-2]);return l>1&&Ge(h)===f&&c[c.length-1].path!==f?c.findIndex(U.bind(null,i[l-2])):u}),a=I(()=>o.value>-1&&dn(n.params,r.value.params)),p=I(()=>o.value>-1&&o.value===n.matched.length-1&&Ze(n.params,r.value.params));function d(i={}){if(pn(i)){const l=t[Y(e.replace)?"replace":"push"](Y(e.to)).catch(X);return e.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:I(()=>r.value.href),isActive:a,isExactActive:p,navigate:d}}function un(e){return e.length===1?e[0]:e}const fn=Ve({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:Be,setup(e,{slots:t}){const n=yt(Be(e)),{options:r}=$(ne),o=I(()=>({[qe(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[qe(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&un(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)}}}),hn=fn;function pn(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 dn(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(!T(o)||o.length!==r.length||r.some((a,p)=>a!==o[p]))return!1}return!0}function Ge(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const qe=(e,t,n)=>e!=null?e:t!=null?t:n,mn=Ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=$(ge),o=I(()=>e.route||r.value),a=$(He,0),p=I(()=>{let l=Y(a);const{matched:h}=o.value;let c;for(;(c=h[l])&&!c.components;)l++;return l}),d=I(()=>o.value.matched[p.value]);le(He,I(()=>p.value+1)),le(ye,d),le(ge,o);const i=ht();return pt(()=>[i.value,d.value,e.name],([l,h,c],[u,f,w])=>{h&&(h.instances[c]=l,f&&f!==h&&l&&l===u&&(h.leaveGuards.size||(h.leaveGuards=f.leaveGuards),h.updateGuards.size||(h.updateGuards=f.updateGuards))),l&&h&&(!f||!U(h,f)||!u)&&(h.enterCallbacks[c]||[]).forEach(S=>S(l))},{flush:"post"}),()=>{const l=o.value,h=e.name,c=d.value,u=c&&c.components[h];if(!u)return ze(n.default,{Component:u,route:l});const f=c.props[h],w=f?f===!0?l.params:typeof f=="function"?f(l):f:null,b=Ue(u,P({},w,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(c.instances[h]=null)},ref:i}));return ze(n.default,{Component:b,route:l})||b}}});function ze(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const gn=mn;function Cn(e){const t=nn(e.routes,e),n=e.parseQuery||an,r=e.stringifyQuery||je,o=e.history,a=F(),p=F(),d=F(),i=ut(H);let l=H;V&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=ue.bind(null,s=>""+s),c=ue.bind(null,Mt),u=ue.bind(null,Z);function f(s,g){let m,v;return nt(s)?(m=t.getRecordMatcher(s),v=g):v=s,t.addRoute(v,m)}function w(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=P({},g||i.value),typeof s=="string"){const y=fe(n,s,g.path),_=t.resolve({path:y.path},g),Q=o.createHref(y.fullPath);return P(y,_,{params:u(_.params),hash:Z(y.hash),redirectedFrom:void 0,href:Q})}let m;if(s.path!=null)m=P({},s,{path:fe(n,s.path,g.path).path});else{const y=P({},s.params);for(const _ in y)y[_]==null&&delete y[_];m=P({},s,{params:c(y)}),g.params=c(g.params)}const v=t.resolve(m,g),k=s.hash||"";v.params=h(u(v.params));const O=It(r,P({},s,{hash:Ot(k),path:v.path})),R=o.createHref(O);return P({fullPath:O,hash:k,query:r===je?ln(s.query):s.query||{}},v,{redirectedFrom:void 0,href:R})}function E(s){return typeof s=="string"?fe(n,s,i.value.path):P({},s)}function C(s,g){if(l!==s)return K(8,{from:g,to:s})}function L(s){return M(s)}function G(s){return L(P(E(s),{replace:!0}))}function j(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={}),P({query:s.query,hash:s.hash,params:v.path!=null?{}:s.params},v)}}function M(s,g){const m=l=A(s),v=i.value,k=s.state,O=s.force,R=s.replace===!0,y=j(m);if(y)return M(P(E(y),{state:typeof y=="object"?P({},k,y.state):k,force:O,replace:R}),g||m);const _=m;_.redirectedFrom=g;let Q;return!O&&Nt(r,v,m)&&(Q=K(16,{to:_,from:v}),Ce(v,v,!0,!1)),(Q?Promise.resolve(Q):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(P({replace:R},E(x.to),{state:typeof x.to=="object"?P({},k,x.to.state):k,force:O}),g||_)}else x=Pe(_,v,!0,R,k);return we(_,v,x),x})}function ct(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]=vn(s,g);m=pe(v.reverse(),"beforeRouteLeave",s,g);for(const y of v)y.leaveGuards.forEach(_=>{m.push(B(_,s,g))});const R=ct.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(T(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 we(s,g,m){d.list().forEach(v=>re(()=>v(s,g,m)))}function Pe(s,g,m,v,k){const O=C(s,g);if(O)return O;const R=g===H,y=V?history.state:{};m&&(v||R?o.replace(s.fullPath,P({scroll:R&&y&&y.scroll},k)):o.push(s.fullPath,k)),i.value=s,Ce(s,g,m,R),ie()}let W;function at(){W||(W=o.listen((s,g,m)=>{if(!ke.listening)return;const v=A(s),k=j(v);if(k){M(P(k,{replace:!0,force:!0}),v).catch(X);return}l=v;const O=i.value;V&&qt(Oe(O.fullPath,m.delta),te()),Ee(v,O).catch(R=>N(R,12)?R:N(R,2)?(M(P(E(R.to),{force:!0}),v).then(y=>{N(y,20)&&!m.delta&&m.type===D.pop&&o.go(-1,!1)}).catch(X),Promise.reject()):(m.delta&&o.go(-m.delta,!1),se(R,v,O))).then(R=>{R=R||Pe(v,O,!1),R&&(m.delta&&!N(R,8)?o.go(-m.delta,!1):m.type===D.pop&&N(R,20)&&o.go(-1,!1)),we(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 lt(){return J&&i.value!==H?Promise.resolve():new Promise((s,g)=>{oe.add([s,g])})}function ie(s){return J||(J=!s,at(),oe.list().forEach(([g,m])=>s?m(s):g()),oe.reset()),s}function Ce(s,g,m,v){const{scrollBehavior:k}=e;if(!V||!k)return Promise.resolve();const O=!m&&zt(Oe(s.fullPath,0))||(v||!m)&&history.state&&history.state.scroll||null;return dt().then(()=>k(s,g,O)).then(R=>R&&Gt(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:f,removeRoute:w,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:lt,install(s){const g=this;s.component("RouterLink",hn),s.component("RouterView",gn),s.config.globalProperties.$router=g,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>Y(i)}),V&&!ae&&i.value===H&&(ae=!0,L(o.location).catch(k=>{}));const m={};for(const k in H)Object.defineProperty(m,k,{get:()=>i.value[k],enumerable:!0});s.provide(ne,g),s.provide(Re,ft(m)),s.provide(ge,i);const v=s.unmount;ee.add(s),s.unmount=function(){ee.delete(s),ee.size<1&&(l=H,W&&W(),W=null,i.value=H,ae=!1,J=!1),v()}}};function z(s){return s.reduce((g,m)=>g.then(()=>re(m)),Promise.resolve())}return ke}function vn(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(l=>U(l,d))?r.push(d):n.push(d));const i=e.matched[p];i&&(t.matched.find(l=>U(l,i))||o.push(i))}return[n,r,o]}function kn(){return $(ne)}function bn(e){return $(Re)}export{xe as NavigationFailureType,hn as RouterLink,gn as RouterView,H as START_LOCATION,Rn as createMemoryHistory,Cn as createRouter,nn as createRouterMatcher,En as createWebHashHistory,Kt as createWebHistory,N as isNavigationFailure,Sn as loadRouteLocation,ye as matchedRouteKey,wn as onBeforeRouteLeave,Pn as onBeforeRouteUpdate,an as parseQuery,Re as routeLocationKey,ne as routerKey,ge as routerViewLocationKey,je as stringifyQuery,Be as useLink,bn as useRoute,kn as useRouter,He as viewDepthKey};
|