@vtj/pro 0.10.2 → 0.10.3
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 +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- 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/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/assets/auth-DdgrKHWo.js +1 -0
- package/dist/assets/{extension-o8dIq87n.js → extension-kG9IctpI.js} +12 -10
- package/dist/assets/{index-yhNkSUK8.js → index-D-OgfUGt.js} +22 -22
- package/dist/assets/index-DyzalVZg.js +1 -0
- package/dist/assets/page-DX4-J2pt.js +2 -0
- package/dist/assets/preview-Bc1ZuavR.js +2 -0
- package/dist/index.html +3 -3
- package/dist/uni/assets/{index-yy9det9o.js → index-Nyp-OXeI.js} +4 -4
- package/dist/uni/index.html +1 -1
- package/package.json +11 -11
- package/src/.vtj/materials/@vtj/pro.json +3623 -0
- package/src/.vtj/projects/@vtj/pro.json +178 -0
- package/src/App.vue +6 -1
- package/dist/assets/auth-z1KdmDUd.js +0 -1
- package/dist/assets/index-xMcoOVEb.js +0 -1
- package/dist/assets/page-CaZgKizJ.js +0 -2
- package/dist/assets/preview-Qip_2rPY.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var k=Object.defineProperty,N=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?k(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,$=(o,e)=>{for(var t in e||(e={}))q.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))K.call(e,t)&&E(o,t,e[t]);return o},v=(o,e)=>N(o,O(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 W}from"./vue-router-Dv428VRb.js";import{T as j,N as G,H as I,F as J,A as M}from"./index-D-OgfUGt.js";import{a as U}from"./element-plus-HvLQb0Ih.js";import"./vxe-prHpAmaX.js";import{u as A,$ as V,E as Y}from"./extension-kG9IctpI.js";import{n as C,l as z}from"./utils-CwbD7XwC.js";import{d as D,e as L,aC as B,f as Q,c as X,o as Z}from"./vue-DpQa2Qs4.js";import{_ as ee}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-BfuwkNVi.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-ZjnzVW6R.js";import"./@element-plus-icons-vue-CRZvKNrz.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BEvXV3hb.js";const te=D({__name:"index",setup(o){return P(this,null,function*(){let e,t;const u=j({loading:z,notify:C}),i=W(),m=L(),l=new G(I(C)),r=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e),{options:n,adapters:a}=r?([e,t]=B(()=>new Y(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:d="/",history:F="hash",base:g="/",pageRouteName:S="page"}=r||{},w=a==null?void 0:a.access,T=a==null?void 0:a.remote,b=w?new J($({alert:U.alert,storageKey:M},w)):void 0,H=()=>F==="hash",R=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=`${R(g)}${_?"pages":S}/${f.id}`;p=H()?`${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 V(v($({container:m,service:l,materialPath:d,pageBasePath:g==="/"?"":g},n),{adapter:Object.assign(u,{access:b,remote:T},(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))})}}),we=ee(te,[["__scopeId","data-v-fbbd9127"]]);export{we as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-Dv428VRb.js","./vue-DpQa2Qs4.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var B=Object.defineProperty,T=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var P=(o,t,e)=>t in o?B(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,g=(o,t)=>{for(var e in t||(t={}))S.call(t,e)&&P(o,e,t[e]);if(A)for(var e of A(t))V.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 L}from"./vue-router-Dv428VRb.js";import{T as k,N as H,H as I,F as K,A as N,D as b,y as j}from"./index-D-OgfUGt.js";import{a as F}from"./element-plus-HvLQb0Ih.js";import"./vxe-prHpAmaX.js";import{E as G,B as M}from"./extension-kG9IctpI.js";import{n as w,l as Y}from"./utils-CwbD7XwC.js";import{d as q,aC as x,e as z,h as J,K as Q,O as U,P as W,o as X}from"./vue-DpQa2Qs4.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-ZjnzVW6R.js";import"./@element-plus-icons-vue-CRZvKNrz.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BEvXV3hb.js";const lt=q({__name:"page",setup(o){return E(this,null,function*(){let t,e;const _=k({loading:Y,notify:w}),i=new H(I(w)),p=([t,e]=x(()=>i.getExtension().catch(()=>null)),t=yield t,e(),t),{options:c,adapters:s}=p?([t,e]=x(()=>new G(p).load()),t=yield t,e(),t):{},{__BASE_PATH__:a="/"}=p||{},m=s==null?void 0:s.access,O=s==null?void 0:s.remote,f=m?new K(l(g({},m),{alert:F.alert,storageKey:N})):void 0,{provider:y,onReady:h}=b(l(g({mode:j.Runtime,service:i,materialPath:a,adapter:Object.assign(_,{access:f,remote:O},(c==null?void 0:c.adapter)||{})},c||{}),{dependencies:{Vue:()=>R(()=>import("./vue-DpQa2Qs4.js").then(r=>r.ay),[],import.meta.url),VueRouter:()=>R(()=>import("./vue-router-Dv428VRb.js"),__vite__mapDeps([0,1]),import.meta.url)}})),v=L(),u=z(),d=J();return h(()=>E(this,null,function*(){const r=d==null?void 0:d.appContext.app;r&&(r.use(M),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-Dv428VRb.js","./vue-DpQa2Qs4.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var B=Object.defineProperty,T=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var w=(o,t,e)=>t in o?B(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,l=(o,t)=>{for(var e in t||(t={}))S.call(t,e)&&w(o,e,t[e]);if(C)for(var e of C(t))V.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 L}from"./vue-router-Dv428VRb.js";import{a as k}from"./element-plus-HvLQb0Ih.js";import"./vxe-prHpAmaX.js";import{E as H,B as I}from"./extension-kG9IctpI.js";import{T as K,N,H as b,F as j,A as F,D as G,y as M}from"./index-D-OgfUGt.js";import{n as R,l as Y}from"./utils-CwbD7XwC.js";import{d as q,aC as x,e as z,h as J,K as Q,O as U,P as W,o as X}from"./vue-DpQa2Qs4.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-ZjnzVW6R.js";import"./@element-plus-icons-vue-CRZvKNrz.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BEvXV3hb.js";const gt=q({__name:"preview",setup(o){return g(this,null,function*(){let t,e;const _=K({loading:Y,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 H(p).load()),t=yield t,e(),t):{},{__BASE_PATH__:a="/"}=p||{},m=s==null?void 0:s.access,O=s==null?void 0:s.remote,f=m?new j(l({alert:k.alert,storageKey:F},m)):void 0,{provider:E,onReady:h}=G(A(l({mode:M.Runtime,service:i,materialPath:a},c||{}),{adapter:Object.assign(_,{access:f,remote:O},(c==null?void 0:c.adapter)||{}),dependencies:{Vue:()=>P(()=>import("./vue-DpQa2Qs4.js").then(r=>r.ay),[],import.meta.url),VueRouter:()=>P(()=>import("./vue-router-Dv428VRb.js"),__vite__mapDeps([0,1]),import.meta.url)}})),v=L(),u=z(),d=J();return h(()=>g(this,null,function*(){const r=d==null?void 0:d.appContext.app;r&&(r.use(I),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};
|
package/dist/index.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<meta http-equiv="Expires" content="0"/>
|
|
10
10
|
<title>低代码设计器 - VTJ.PRO</title>
|
|
11
11
|
<script>
|
|
12
|
-
var __BUILD_TIME__ = '
|
|
12
|
+
var __BUILD_TIME__ = '1740531436268';
|
|
13
13
|
(function () {
|
|
14
14
|
const regex = /<!--{{(\d*)}}-->/;
|
|
15
15
|
window.fetch('?t=' + Date.now()).then(async (res) => {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
});
|
|
26
26
|
})();
|
|
27
27
|
</script>
|
|
28
|
-
<!--{{
|
|
28
|
+
<!--{{1740531436268}}-->
|
|
29
29
|
|
|
30
|
-
<script type="module" crossorigin src="./assets/index-
|
|
30
|
+
<script type="module" crossorigin src="./assets/index-D-OgfUGt.js"></script>
|
|
31
31
|
<link rel="modulepreload" crossorigin href="./assets/vue-DpQa2Qs4.js">
|
|
32
32
|
<link rel="modulepreload" crossorigin href="./assets/vue-router-Dv428VRb.js">
|
|
33
33
|
<link rel="modulepreload" crossorigin href="./assets/lodash-es-BL-d_OSa.js">
|
|
@@ -51,14 +51,14 @@ version: 2.9.0
|
|
|
51
51
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
52
52
|
* @name @vtj/core
|
|
53
53
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
54
|
-
* @version 0.10.
|
|
54
|
+
* @version 0.10.3
|
|
55
55
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
56
56
|
*/const lp="VueMaterial",fp="VueRouterMaterial",hp={[lp]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[fp]:["RouterView","RouterLink"]};class pp{constructor(){z(this,"listeners",[]);z(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}}var dp=Object.defineProperty,mp=(e,t,r)=>t in e?dp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ut=(e,t,r)=>mp(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();const gp=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gp));function Xo(e,t){return function(){return e.apply(t,arguments)}}const{toString:yp}=Object.prototype,{getPrototypeOf:rn}=Object,Je=(e=>t=>{const r=yp.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),dt=e=>(e=e.toLowerCase(),t=>Je(t)===e),Ye=e=>t=>typeof t===e,{isArray:te}=Array,de=Ye("undefined");function vp(e){return e!==null&&!de(e)&&e.constructor!==null&&!de(e.constructor)&&st(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qo=dt("ArrayBuffer");function bp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qo(e.buffer),t}const _p=Ye("string"),st=Ye("function"),ts=Ye("number"),Ke=e=>e!==null&&typeof e=="object",wp=e=>e===!0||e===!1,Be=e=>{if(Je(e)!=="object")return!1;const t=rn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ep=dt("Date"),Sp=dt("File"),xp=dt("Blob"),Tp=dt("FileList"),Rp=e=>Ke(e)&&st(e.pipe),Op=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||st(e.append)&&((t=Je(e))==="formdata"||t==="object"&&st(e.toString)&&e.toString()==="[object FormData]"))},$p=dt("URLSearchParams"),[Ap,Dp,jp,Bp]=["ReadableStream","Request","Response","Headers"].map(dt),Cp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ve(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),te(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(n=0;n<s;n++)a=o[n],t.call(null,e[a],a,e)}}function es(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Nt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rs=e=>!de(e)&&e!==Nt;function Cr(){const{caseless:e}=rs(this)&&this||{},t={},r=(n,i)=>{const o=e&&es(t,i)||i;Be(t[o])&&Be(n)?t[o]=Cr(t[o],n):Be(n)?t[o]=Cr({},n):te(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ve(arguments[n],r);return t}const Np=(e,t,r,{allOwnKeys:n}={})=>(ve(t,(i,o)=>{r&&st(i)?e[o]=Xo(i,r):e[o]=i},{allOwnKeys:n}),e),kp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ip=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Fp=(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&rn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Pp=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Mp=e=>{if(!e)return null;if(te(e))return e;let t=e.length;if(!ts(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Lp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&rn(Uint8Array)),Up=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},Vp=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Hp=dt("HTMLFormElement"),qp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),pi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),zp=dt("RegExp"),ns=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ve(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},Wp=e=>{ns(e,(t,r)=>{if(st(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(st(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Jp=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return te(e)?n(e):n(String(e).split(t)),r},Yp=()=>{},Kp=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,pr="abcdefghijklmnopqrstuvwxyz",di="0123456789",is={DIGIT:di,ALPHA:pr,ALPHA_DIGIT:pr+pr.toUpperCase()+di},Gp=(e=16,t=is.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Zp(e){return!!(e&&st(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xp=e=>{const t=new Array(10),r=(n,i)=>{if(Ke(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=te(n)?[]:{};return ve(n,(s,a)=>{const c=r(s,i+1);!de(c)&&(o[a]=c)}),t[i]=void 0,o}}return n};return r(e,0)},Qp=dt("AsyncFunction"),td=e=>e&&(Ke(e)||st(e))&&st(e.then)&&st(e.catch),os=((e,t)=>e?setImmediate:t?((r,n)=>(Nt.addEventListener("message",({source:i,data:o})=>{i===Nt&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Nt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",st(Nt.postMessage)),ed=typeof queueMicrotask<"u"?queueMicrotask.bind(Nt):typeof process<"u"&&process.nextTick||os,R={isArray:te,isArrayBuffer:Qo,isBuffer:vp,isFormData:Op,isArrayBufferView:bp,isString:_p,isNumber:ts,isBoolean:wp,isObject:Ke,isPlainObject:Be,isReadableStream:Ap,isRequest:Dp,isResponse:jp,isHeaders:Bp,isUndefined:de,isDate:Ep,isFile:Sp,isBlob:xp,isRegExp:zp,isFunction:st,isStream:Rp,isURLSearchParams:$p,isTypedArray:Lp,isFileList:Tp,forEach:ve,merge:Cr,extend:Np,trim:Cp,stripBOM:kp,inherits:Ip,toFlatObject:Fp,kindOf:Je,kindOfTest:dt,endsWith:Pp,toArray:Mp,forEachEntry:Up,matchAll:Vp,isHTMLForm:Hp,hasOwnProperty:pi,hasOwnProp:pi,reduceDescriptors:ns,freezeMethods:Wp,toObjectSet:Jp,toCamelCase:qp,noop:Yp,toFiniteNumber:Kp,findKey:es,global:Nt,isContextDefined:rs,ALPHABET:is,generateString:Gp,isSpecCompliantForm:Zp,toJSONObject:Xp,isAsyncFn:Qp,isThenable:td,setImmediate:os,asap:ed};function W(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}R.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});const ss=W.prototype,as={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{as[e]={value:e}});Object.defineProperties(W,as);Object.defineProperty(ss,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,o)=>{const s=Object.create(ss);return R.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),W.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const rd=null;function Nr(e){return R.isPlainObject(e)||R.isArray(e)}function us(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function mi(e,t,r){return e?e.concat(t).map(function(n,i){return n=us(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function nd(e){return R.isArray(e)&&!e.some(Nr)}const id=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function Ge(e,t,r){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,d){return!R.isUndefined(d[h])});const n=r.metaTokens,i=r.visitor||u,o=r.dots,s=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(R.isDate(h))return h.toISOString();if(!a&&R.isBlob(h))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(h)||R.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,d,m){let b=h;if(h&&!m&&typeof h=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(R.isArray(h)&&nd(h)||(R.isFileList(h)||R.endsWith(d,"[]"))&&(b=R.toArray(h)))return d=us(d),b.forEach(function(E,y){!(R.isUndefined(E)||E===null)&&t.append(s===!0?mi([d],y,o):s===null?d:d+"[]",c(E))}),!1}return Nr(h)?!0:(t.append(mi(m,d,o),c(h)),!1)}const l=[],f=Object.assign(id,{defaultVisitor:u,convertValue:c,isVisitable:Nr});function p(h,d){if(!R.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(h),R.forEach(h,function(m,b){(!(R.isUndefined(m)||m===null)&&i.call(t,m,R.isString(b)?b.trim():b,d,f))===!0&&p(m,d?d.concat(b):[b])}),l.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return p(e),t}function gi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function nn(e,t){this._pairs=[],e&&Ge(e,this,t)}const cs=nn.prototype;cs.append=function(e,t){this._pairs.push([e,t])};cs.toString=function(e){const t=e?function(r){return e.call(this,r,gi)}:gi;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function od(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ls(e,t,r){if(!t)return e;const n=r&&r.encode||od;R.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(t,r):o=R.isURLSearchParams(t)?t.toString():new nn(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}let yi=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(r){r!==null&&t(r)})}};const fs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sd=typeof URLSearchParams<"u"?URLSearchParams:nn,ad=typeof FormData<"u"?FormData:null,ud=typeof Blob<"u"?Blob:null,cd={isBrowser:!0,classes:{URLSearchParams:sd,FormData:ad,Blob:ud},protocols:["http","https","file","blob","url","data"]},on=typeof window<"u"&&typeof document<"u",kr=typeof navigator=="object"&&navigator||void 0,ld=on&&(!kr||["ReactNative","NativeScript","NS"].indexOf(kr.product)<0),fd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hd=on&&window.location.href||"http://localhost",pd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:on,hasStandardBrowserEnv:ld,hasStandardBrowserWebWorkerEnv:fd,navigator:kr,origin:hd},Symbol.toStringTag,{value:"Module"})),tt=V(V({},pd),cd);function dd(e,t){return Ge(e,new tt.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return tt.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function md(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gd(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}function hs(e){function t(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=o>=r.length;return s=!s&&R.isArray(i)?i.length:s,c?(R.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!R.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&R.isArray(i[s])&&(i[s]=gd(i[s])),!a)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,i)=>{t(md(n),i,r,0)}),r}return null}function yd(e,t,r){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const be={transitional:fs,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return n?JSON.stringify(hs(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return dd(e,this.formSerializer).toString();if((o=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ge(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),yd(e)):e}],transformResponse:[function(e){const t=this.transitional||be.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?W.from(o,W.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{be.headers[e]={}});const vd=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bd=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
57
57
|
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&vd[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},vi=Symbol("internals");function se(e){return e&&String(e).trim().toLowerCase()}function Ce(e){return e===!1||e==null?e:R.isArray(e)?e.map(Ce):String(e)}function _d(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const wd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function dr(e,t,r,n,i){if(R.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!R.isString(t)){if(R.isString(n))return t.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(t)}}function Ed(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Sd(e,t){const r=R.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}let ot=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,c,u){const l=se(c);if(!l)throw new Error("header name must be a non-empty string");const f=R.findKey(i,l);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||c]=Ce(a))}const s=(a,c)=>R.forEach(a,(u,l)=>o(u,l,c));if(R.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(R.isString(t)&&(t=t.trim())&&!wd(t))s(bd(t),r);else if(R.isHeaders(t))for(const[a,c]of t.entries())o(c,a,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=se(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return _d(i);if(R.isFunction(r))return r.call(this,i,n);if(R.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=se(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||dr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=se(s),s){const a=R.findKey(n,s);a&&(!r||dr(n,n[a],a,r))&&(delete n[a],i=!0)}}return R.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||dr(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return R.forEach(this,(i,o)=>{const s=R.findKey(n,o);if(s){r[s]=Ce(i),delete r[o];return}const a=t?Ed(o):String(o).trim();a!==o&&delete r[o],r[a]=Ce(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&R.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
58
58
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[vi]=this[vi]={accessors:{}}).accessors,n=this.prototype;function i(o){const s=se(o);r[s]||(Sd(n,o),r[s]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}};ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ot.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});R.freezeMethods(ot);function mr(e,t){const r=this||be,n=t||r,i=ot.from(n.headers);let o=n.data;return R.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function ps(e){return!!(e&&e.__CANCEL__)}function ee(e,t,r){W.call(this,e!=null?e:"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}R.inherits(ee,W,{__CANCEL__:!0});function ds(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function xd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Td(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=n[o];s||(s=c),r[i]=a,n[i]=c;let l=o,f=0;for(;l!==i;)f+=r[l++],l=l%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function Rd(e,t){let r=0,n=1e3/t,i,o;const s=(a,c=Date.now())=>{r=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,a)};return[(...a)=>{const c=Date.now(),u=c-r;u>=n?s(a,c):(i=a,o||(o=setTimeout(()=>{o=null,s(i)},n-u)))},()=>i&&s(i)]}const Pe=(e,t,r=3)=>{let n=0;const i=Td(50,250);return Rd(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,c=s-n,u=i(c),l=s<=a;n=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&l?(a-s)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},r)},bi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},_i=e=>(...t)=>R.asap(()=>e(...t)),Od=tt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,tt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(tt.origin),tt.navigator&&/(msie|trident)/i.test(tt.navigator.userAgent)):()=>!0,$d=tt.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const s=[e+"="+encodeURIComponent(t)];R.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),R.isString(n)&&s.push("path="+n),R.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ad(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Dd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ms(e,t){return e&&!Ad(t)?Dd(e,t):t}const wi=e=>e instanceof ot?V({},e):e;function It(e,t){t=t||{};const r={};function n(u,l,f,p){return R.isPlainObject(u)&&R.isPlainObject(l)?R.merge.call({caseless:p},u,l):R.isPlainObject(l)?R.merge({},l):R.isArray(l)?l.slice():l}function i(u,l,f,p){if(R.isUndefined(l)){if(!R.isUndefined(u))return n(void 0,u,f,p)}else return n(u,l,f,p)}function o(u,l){if(!R.isUndefined(l))return n(void 0,l)}function s(u,l){if(R.isUndefined(l)){if(!R.isUndefined(u))return n(void 0,u)}else return n(void 0,l)}function a(u,l,f){if(f in t)return n(u,l);if(f in e)return n(void 0,u)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,l,f)=>i(wi(u),wi(l),f,!0)};return R.forEach(Object.keys(Object.assign({},e,t)),function(u){const l=c[u]||i,f=l(e[u],t[u],u);R.isUndefined(f)&&l!==a||(r[u]=f)}),r}const gs=e=>{const t=It({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=ot.from(s),t.url=ls(ms(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(R.isFormData(r)){if(tt.hasStandardBrowserEnv||tt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...l]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...l].join("; "))}}if(tt.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(t)),n||n!==!1&&Od(t.url))){const u=i&&o&&$d.read(o);u&&s.set(i,u)}return t},jd=typeof XMLHttpRequest<"u",Bd=jd&&function(e){return new Promise(function(t,r){const n=gs(e);let i=n.data;const o=ot.from(n.headers).normalize();let{responseType:s,onUploadProgress:a,onDownloadProgress:c}=n,u,l,f,p,h;function d(){p&&p(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function b(){if(!m)return;const y=ot.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:e,request:m};ds(function(_){t(_),d()},function(_){r(_),d()},v),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new W("Request aborted",W.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||fs;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new W(y,v.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,m)),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&R.forEach(o.toJSON(),function(y,v){m.setRequestHeader(v,y)}),R.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),s&&s!=="json"&&(m.responseType=n.responseType),c&&([f,h]=Pe(c,!0),m.addEventListener("progress",f)),a&&m.upload&&([l,p]=Pe(a),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(u=y=>{m&&(r(!y||y.type?new ee(null,e,m):y),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const E=xd(n.url);if(E&&tt.protocols.indexOf(E)===-1){r(new W("Unsupported protocol "+E+":",W.ERR_BAD_REQUEST,e));return}m.send(i||null)})},Cd=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const o=function(u){if(!i){i=!0,a();const l=u instanceof Error?u:this.reason;n.abort(l instanceof W?l:new ee(l instanceof Error?l.message:l))}};let s=t&&setTimeout(()=>{s=null,o(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=()=>R.asap(a),c}},Nd=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},kd=function(e,t){return er(this,null,function*(){try{for(var r=pn(Id(e)),n,i,o;n=!(i=yield new At(r.next())).done;n=!1){const s=i.value;yield*rr(Nd(s,t))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new At(i.call(r)))}finally{if(o)throw o[0]}}})},Id=function(e){return er(this,null,function*(){if(e[Symbol.asyncIterator]){yield*rr(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new At(t.read());if(r)break;yield n}}finally{yield new At(t.cancel())}})},Ei=(e,t,r,n)=>{const i=kd(e,t);let o=0,s,a=u=>{s||(s=!0,n&&n(u))};return new ReadableStream({pull(u){return L(this,null,function*(){try{const{done:l,value:f}=yield i.next();if(l){a(),u.close();return}let p=f.byteLength;if(r){let h=o+=p;r(h)}u.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}})},cancel(u){return a(u),i.return()}},{highWaterMark:2})},Ze=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ys=Ze&&typeof ReadableStream=="function",Fd=Ze&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>L(void 0,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),vs=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Pd=ys&&vs(()=>{let e=!1;const t=new Request(tt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Si=64*1024,Ir=ys&&vs(()=>R.isReadableStream(new Response("").body)),Me={stream:Ir&&(e=>e.body)};Ze&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Me[t]&&(Me[t]=R.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,n)})})})(new Response);const Md=e=>L(void 0,null,function*(){if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(yield new Request(tt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e=e+""),R.isString(e))return(yield Fd(e)).byteLength}),Ld=(e,t)=>L(void 0,null,function*(){const r=R.toFiniteNumber(e.getContentLength());return r!=null?r:Md(t)}),Ud=Ze&&(e=>L(void 0,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:p}=gs(e);u=u?(u+"").toLowerCase():"text";let h=Cd([i,o&&o.toAbortSignal()],s),d;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(c&&Pd&&r!=="get"&&r!=="head"&&(b=yield Ld(l,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),g;if(R.isFormData(n)&&(g=S.headers.get("content-type"))&&l.setContentType(g),S.body){const[x,O]=bi(b,Pe(_i(c)));n=Ei(S.body,Si,x,O)}}R.isString(f)||(f=f?"include":"omit");const E="credentials"in Request.prototype;d=new Request(t,Q(V({},p),{signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:E?f:void 0}));let y=yield fetch(d);const v=Ir&&(u==="stream"||u==="response");if(Ir&&(a||v&&m)){const S={};["status","statusText","headers"].forEach(P=>{S[P]=y[P]});const g=R.toFiniteNumber(y.headers.get("content-length")),[x,O]=a&&bi(g,Pe(_i(a),!0))||[];y=new Response(Ei(y.body,Si,x,()=>{O&&O(),m&&m()}),S)}u=u||"text";let _=yield Me[R.findKey(Me,u)||"text"](y,e);return!v&&m&&m(),yield new Promise((S,g)=>{ds(S,g,{data:_,headers:ot.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(E){throw m&&m(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,d),{cause:E.cause||E}):W.from(E,E&&E.code,e,d)}})),Fr={http:rd,xhr:Bd,fetch:Ud};R.forEach(Fr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const xi=e=>`- ${e}`,Vd=e=>R.isFunction(e)||e===null||e===!1,bs={getAdapter:e=>{e=R.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let s;if(n=r,!Vd(r)&&(n=Fr[(s=String(r)).toLowerCase()],n===void 0))throw new W(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
|
|
59
59
|
`+o.map(xi).join(`
|
|
60
60
|
`):" "+xi(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Fr};function gr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ee(null,e)}function Ti(e){return gr(e),e.headers=ot.from(e.headers),e.data=mr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bs.getAdapter(e.adapter||be.adapter)(e).then(function(t){return gr(e),t.data=mr.call(e,e.transformResponse,t),t.headers=ot.from(t.headers),t},function(t){return ps(t)||(gr(e),t&&t.response&&(t.response.data=mr.call(e,e.transformResponse,t.response),t.response.headers=ot.from(t.response.headers))),Promise.reject(t)})}const _s="1.7.9",Xe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ri={};Xe.transitional=function(e,t,r){function n(i,o){return"[Axios v"+_s+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new W(n(o," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!Ri[o]&&(Ri[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};Xe.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Hd(e,t,r){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new W("option "+o+" must be "+c,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}}const Ne={assertOptions:Hd,validators:Xe},mt=Ne.validators;let kt=class{constructor(t){this.defaults=t,this.interceptors={request:new yi,response:new yi}}request(t,r){return L(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
61
|
-
`+o):n.stack=o}catch(s){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=It(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Ne.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:Ne.assertOptions(i,{encode:mt.function,serialize:mt.function},!0)),Ne.assertOptions(r,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&R.merge(o.common,o[r.method]);o&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete o[d]}),r.headers=ot.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(c=c&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let l,f=0,p;if(!c){const d=[Ti.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,u),p=d.length,l=Promise.resolve(r);f<p;)l=l.then(d[f++],d[f++]);return l}p=a.length;let h=r;for(f=0;f<p;){const d=a[f++],m=a[f++];try{h=d(h)}catch(b){m.call(this,b);break}}try{l=Ti.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=u.length;f<p;)l=l.then(u[f++],u[f++]);return l}getUri(t){t=It(this.defaults,t);const r=ms(t.baseURL,t.url);return ls(r,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(e){kt.prototype[e]=function(t,r){return this.request(It(r||{},{method:e,url:t,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(It(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}kt.prototype[e]=t(),kt.prototype[e+"Form"]=t(!0)});let qd=class ws{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new ee(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new ws(function(r){t=r}),cancel:t}}};function zd(e){return function(t){return e.apply(null,t)}}function Wd(e){return R.isObject(e)&&e.isAxiosError===!0}const Pr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pr).forEach(([e,t])=>{Pr[t]=e});function Es(e){const t=new kt(e),r=Xo(kt.prototype.request,t);return R.extend(r,kt.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Es(It(e,n))},r}const Z=Es(be);Z.Axios=kt;Z.CanceledError=ee;Z.CancelToken=qd;Z.isCancel=ps;Z.VERSION=_s;Z.toFormData=Ge;Z.AxiosError=W;Z.Cancel=Z.CanceledError;Z.all=function(e){return Promise.all(e)};Z.spread=zd;Z.isAxiosError=Wd;Z.mergeConfig=It;Z.AxiosHeaders=ot;Z.formToJSON=e=>hs(R.isHTMLForm(e)?new FormData(e):e);Z.getAdapter=bs.getAdapter;Z.HttpStatusCode=Pr;Z.default=Z;const{Axios:N0,AxiosError:k0,CanceledError:I0,isCancel:F0,CancelToken:P0,VERSION:M0,all:L0,Cancel:U0,isAxiosError:V0,spread:H0,toFormData:q0,AxiosHeaders:z0,HttpStatusCode:W0,formToJSON:J0,getAdapter:Y0,mergeConfig:K0}=Z,Jd={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Yd=["put","post","patch"],Oi="Local-Request-Id",Kd=100,Gd=300;let Zd=class{constructor(e={}){ut(this,"axios"),ut(this,"settings"),ut(this,"records",{}),ut(this,"isLoading",!1),ut(this,"stopSkipWarn"),ut(this,"showLoading"),ut(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=hr(e,["settings","query"]);this.axios=Z.create(ae({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=jo(this.openLoading.bind(this),Kd),this.showError=gh(this._showError.bind(this),Gd,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=ae(this.settings,e.settings||{});const t=hr(e,["settings","query"]);this.axios.defaults=ae(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const n=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},i=V(V({"Content-Type":Jd[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[Oi]=e),i}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([n,i])=>{r.append(n,i)}),r}createSendData(e,t,r,n,i={}){const{type:o,skipWarn:s}=e,{name:a="skipWarn"}=s||{};let{data:c,params:u={},method:l="get"}=t;const f=n?{[a]:!0}:{};return Yd.includes(l.toLowerCase())?(c=Object.assign(c||{},f),c=o!=="json"||!this.isJsonType(r)?this.toFormData(c,o):c,u=V({},i)):o==="form"?u=V(V(V({},c||{}),i),f):(c&&(o!=="json"||!this.isJsonType(r))&&(c=this.toFormData(c,o)),u=V(V({},i),f)),{data:c,params:u}}createUrl(e){let{url:t,params:r}=e;if(t)try{return rp(t,{encode:encodeURIComponent})(r||{})}catch(n){console.warn("createUrl","pathToRegexpCompile error",t)}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,t){var i;const{failMessage:r,showError:n}=e;if(r&&n){const o=(i=t.response)==null?void 0:i.data,s=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(s,t)}}validResponse(e,t){const{validSuccess:r,validate:n}=e;return r&&n?!!n(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=ae({},this.settings,e.settings||{}),n=e.query||{},i=hr(e,["settings","query"]),o=Gh(!1),s=Z.CancelToken.source();this.records[o]={settings:r,config:i,source:s};const a=this.createUrl(i),c=this.createHeaders(o,r,i),{data:u,params:l}=this.createSendData(r,i,c,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(Q(V({cancelToken:s.token},i),{url:a,headers:c,data:u,params:l})).then(h=>{var d;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(d=h.data)==null?void 0:d.data):(this.showError(r,h.data),p(h.data))}).catch(h=>(this.showError(r,h),p(h))).finally(()=>{delete this.records[o],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}useRequest(e,t){const{request:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:n,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const s=(o.config.headers||{})[Oi],a=this.records[s];if(!a)return o;const{data:c}=o;if(!c||typeof c!="object")return o;if((c==null?void 0:c.code)===t){n&&n(o);const u=new Promise(r).then(()=>this.send(Q(V({},a.config),{settings:a.settings}),!0));u.catch(l=>l).finally(()=>{i&&i()}),o.promise=u}return o})}};function sn(e={}){const t=new Zd(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),o=t.useRequest.bind(t),s=t.useResponse.bind(t);return Object.assign(r,Q(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:o,useResponse:s}))}const Mr=sn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),Lr=typeof window<"u";function Xd(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}class Ss{constructor(t={}){ut(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ut(this,"caches",{}),ut(this,"types"),this.types={local:Lr?window.localStorage:this.caches,session:Lr?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:o,prefix:s}=V(V({},this.options),n),a=Date.now(),c=s+t,u=this.types[i]||this.caches,l={value:r,timestamp:a,expired:o};u===this.caches?u[c]=l:u.setItem(c,JSON.stringify(l))}get(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=i+t,s=this.types[n]||this.caches;let a;if(s===this.caches)a=s[o];else{const f=s.getItem(o);f&&(a=JSON.parse(f))}if(!a)return null;const{value:c,timestamp:u,expired:l}=a;return l>0&&u+l<Date.now()?(this.remove(t,r),null):c}remove(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=this.types[n]||this.caches,s=i+t;o===this.caches?delete o[s]:o.removeItem(s)}clear(t={}){const{type:r}=V(V({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}new Ss;function xs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ke={exports:{}},Qd=ke.exports,$i;function tm(){return $i||($i=1,function(e,t){(function(r,n){n(t,e)})(Qd,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function s(u){try{delete window[u]}catch(l){window[u]=void 0}}function a(u){var l=document.getElementById(u);l&&document.getElementsByTagName("head")[0].removeChild(l)}function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=u,p=l.timeout||i.timeout,h=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var E=l.jsonpCallbackFunction||o(),y=h+"_"+E;window[E]=function(_){m({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),a(y),s(E)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+h+"="+E),l.charset&&v.setAttribute("charset",l.charset),l.nonce&&v.setAttribute("nonce",l.nonce),l.referrerPolicy&&v.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+u+" timed out")),s(E),a(y),window[E]=function(){s(E)}},p),v.onerror=function(){b(new Error("JSONP request to "+u+" failed")),s(E),a(y),d&&clearTimeout(d)}})}n.exports=c})}(ke,ke.exports)),ke.exports}var em=tm();const rm=xs(em);function nm(e){if(Lr){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function im(e=""){const t=e.match(zo);return t?t[0]:""}function Ts(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function Ur(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const o=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=o.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Rs(e,t){t=typeof t=="string"?Ur(t):t;const r=e.split("?")[0],n=Ur(e),i=Object.assign({},n,t),o=Ts(i);return o?[r,o].join("?"):e}const Ie=Object.freeze(Object.defineProperty({__proto__:null,append:Rs,getCurrentHost:nm,getHost:im,parse:Ur,stringify:Ts},Symbol.toStringTag,{value:"Module"}));function Os(r){return L(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=dh(e)(n||{}));const i=Rs(e,n);return yield(yield rm(i,t)).json()})}var yr,Ai;function om(){if(Ai)return yr;Ai=1,yr=function(n,i,o){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(o=i,i={}),i=i||{},o=o||function(){},a.type=i.type||"text/javascript",a.charset=i.charset||"utf8",a.async="async"in i?!!i.async:!0,a.src=n,i.attrs&&e(a,i.attrs),i.text&&(a.text=""+i.text);var c="onload"in a?t:r;c(a,o),a.onload||t(a,o),s.appendChild(a)};function e(n,i){for(var o in i)n.setAttribute(o,i[o])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return yr}var sm=om();const am=xs(sm);function Di(e,t={}){return new Promise((r,n)=>{const{library:i}=t;am(e,t,(o,s)=>{o?n(o):r(i?window[i]:void 0)})})}const ji={debug:-1,log:0,info:0,warn:1,error:2},um=function(e,t,r,n){return function(...i){if(t&&ji[t]<=ji[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,cm(i,r))}};function cm(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function lm(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const fm={level:"warn",bizName:"*"};class hm{constructor(t){ut(this,"config"),ut(this,"options"),this.options=V(V({},fm),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=lm(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return um(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function pm(e){return new hm(e)}const Gt=pm({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var dm={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Vr(e,t){function r(i,o,s){if(!(typeof document>"u")){s=Ae({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in s)s[c]&&(a+="; "+c,s[c]!==!0&&(a+="="+s[c].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var c=o[a].split("="),u=c.slice(1).join("=");try{var l=decodeURIComponent(c[0]);if(s[l]=e.read(u,l),i===l)break}catch(f){}}return i?s[i]:s}}return Object.create({set:r,get:n,remove:function(i,o){r(i,"",Ae({},o,{expires:-1}))},withAttributes:function(i){return Vr(this.converter,Ae({},this.attributes,i))},withConverter:function(i){return Vr(Ae({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}Vr(dm,{path:"/"});var nt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(nt||{});const Bi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],mm=["vIf","vShow","vModel","vFor","vBind","vHtml"],gm={String,Number,Boolean,Array,Object,Function,Date},vr="VtjPage",br="VtjHomepage",ym="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot".split(","),vm="component,slot".split(",");function De(e,t){return e.map(r=>Wh(r)||r.startsWith("/")?r:`${t}${r}`)}function an(e){return/\.css$/.test(e)}function un(e){return/\.js$/.test(e)}function bm(e){return/\.json$/.test(e)}function _m(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function wm(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],o=[],s=[],a=[],c={},u={},l=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:m,localeLibrary:b})=>{p==null||p.forEach(E=>{un(E)&&i.push(_m(E,r)),an(E)&&o.push(E)}),d&&(a.push(d),c[d]=De(p||[],t),b&&(u[d]=b)),h&&s.push(h),m&&l.push(m),d&&m&&(f[m]=d)}),{scripts:De(i,t),css:De(o,t),materials:De(s,t),libraryExports:a,materialExports:Qh(l),materialMapLibrary:f,libraryMap:c,libraryLocaleMap:u}}function Em(e,t){var o;const{name:r,parent:n,alias:i}=e;return n?(o=t[n])==null?void 0:o[i||r]:t[i||r]}function $s(e){return Mt(e)?e:JSON.stringify(e)}function cn(e,t,r){const n=e.CSSStyleSheet;if(n.prototype.replaceSync){const i=new n;i.id=t,i.replaceSync(r);const o=e.document,s=o.adoptedStyleSheets,a=Array.from(s).filter(c=>c.id!==t);o.adoptedStyleSheets=[...a,i]}else{const i=e.document;let o=i.getElementById(t);o?o.innerHTML=r:(o=i.createElement("style"),o.id=t,o.innerHTML=r,i.head.appendChild(o))}}function Sm(e,t){return L(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&cn(window,e,r)})}function xm(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const o=r.createElement("link");o.rel="stylesheet",o.id=i,o.href=i,n.appendChild(o)}}function Tm(n,i){return L(this,arguments,function*(e,t,r=window){const o=r.document,s=r.document.head;let a=r[t];return a?a.default||a:new Promise((c,u)=>{for(const l of e){const f=o.createElement("script");f.src=l,f.onload=()=>{a=r[t],a?c(a.default||a):u(null)},f.onerror=p=>{u(p)},s.appendChild(f)}})})}function Rm(e){return fe(e)||fe(e==null?void 0:e.install)}function Om(e){return vm.includes(e)}function $m(e){return ym.includes(e)}function me(e=window){const t=window.Mock;if(t)return t;const r=e.Mock;if(r)return window.Mock=r,r}function ge(e,t,r=!1,n=!1){var i;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let s=(e.value||"").trim();s=s.replace(/this(\W|$)/g,(c,u)=>`__self${u}`),s=o.join(`
|
|
61
|
+
`+o):n.stack=o}catch(s){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=It(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Ne.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:Ne.assertOptions(i,{encode:mt.function,serialize:mt.function},!0)),Ne.assertOptions(r,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&R.merge(o.common,o[r.method]);o&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete o[d]}),r.headers=ot.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(c=c&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let l,f=0,p;if(!c){const d=[Ti.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,u),p=d.length,l=Promise.resolve(r);f<p;)l=l.then(d[f++],d[f++]);return l}p=a.length;let h=r;for(f=0;f<p;){const d=a[f++],m=a[f++];try{h=d(h)}catch(b){m.call(this,b);break}}try{l=Ti.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=u.length;f<p;)l=l.then(u[f++],u[f++]);return l}getUri(t){t=It(this.defaults,t);const r=ms(t.baseURL,t.url);return ls(r,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(e){kt.prototype[e]=function(t,r){return this.request(It(r||{},{method:e,url:t,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(It(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}kt.prototype[e]=t(),kt.prototype[e+"Form"]=t(!0)});let qd=class ws{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new ee(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new ws(function(r){t=r}),cancel:t}}};function zd(e){return function(t){return e.apply(null,t)}}function Wd(e){return R.isObject(e)&&e.isAxiosError===!0}const Pr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pr).forEach(([e,t])=>{Pr[t]=e});function Es(e){const t=new kt(e),r=Xo(kt.prototype.request,t);return R.extend(r,kt.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Es(It(e,n))},r}const Z=Es(be);Z.Axios=kt;Z.CanceledError=ee;Z.CancelToken=qd;Z.isCancel=ps;Z.VERSION=_s;Z.toFormData=Ge;Z.AxiosError=W;Z.Cancel=Z.CanceledError;Z.all=function(e){return Promise.all(e)};Z.spread=zd;Z.isAxiosError=Wd;Z.mergeConfig=It;Z.AxiosHeaders=ot;Z.formToJSON=e=>hs(R.isHTMLForm(e)?new FormData(e):e);Z.getAdapter=bs.getAdapter;Z.HttpStatusCode=Pr;Z.default=Z;const{Axios:N0,AxiosError:k0,CanceledError:I0,isCancel:F0,CancelToken:P0,VERSION:M0,all:L0,Cancel:U0,isAxiosError:V0,spread:H0,toFormData:q0,AxiosHeaders:z0,HttpStatusCode:W0,formToJSON:J0,getAdapter:Y0,mergeConfig:K0}=Z,Jd={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Yd=["put","post","patch"],Oi="Local-Request-Id",Kd=100,Gd=300;let Zd=class{constructor(e={}){ut(this,"axios"),ut(this,"settings"),ut(this,"records",{}),ut(this,"isLoading",!1),ut(this,"stopSkipWarn"),ut(this,"showLoading"),ut(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=hr(e,["settings","query"]);this.axios=Z.create(ae({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=jo(this.openLoading.bind(this),Kd),this.showError=gh(this._showError.bind(this),Gd,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=ae(this.settings,e.settings||{});const t=hr(e,["settings","query"]);this.axios.defaults=ae(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const n=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},i=V(V({"Content-Type":Jd[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[Oi]=e),i}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([n,i])=>{r.append(n,i)}),r}createSendData(e,t,r,n,i={}){const{type:o,skipWarn:s}=e,{name:a="skipWarn"}=s||{};let{data:c,params:u={},method:l="get"}=t;const f=n?{[a]:!0}:{};return Yd.includes(l.toLowerCase())?(c=Object.assign(c||{},f),c=o!=="json"||!this.isJsonType(r)?this.toFormData(c,o):c,u=V({},i)):o==="form"?u=V(V(V({},c||{}),i),f):(c&&(o!=="json"||!this.isJsonType(r))&&(c=this.toFormData(c,o)),u=V(V({},i),f)),{data:c,params:u}}createUrl(e){let{url:t,params:r}=e;if(t)try{return rp(t,{encode:encodeURIComponent})(r||{})}catch(n){console.warn("createUrl","pathToRegexpCompile error",t)}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,t){var i;const{failMessage:r,showError:n}=e;if(r&&n){const o=(i=t.response)==null?void 0:i.data,s=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(s,t)}}validResponse(e,t){const{validSuccess:r,validate:n}=e;return r&&n?!!n(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=ae({},this.settings,e.settings||{}),n=e.query||{},i=hr(e,["settings","query"]),o=Gh(!1),s=Z.CancelToken.source();this.records[o]={settings:r,config:i,source:s};const a=this.createUrl(i),c=this.createHeaders(o,r,i),{data:u,params:l}=this.createSendData(r,i,c,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(Q(V({cancelToken:s.token},i),{url:a,headers:c,data:u,params:l})).then(h=>{var d;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(d=h.data)==null?void 0:d.data):(this.showError(r,h.data),p(h.data))}).catch(h=>(this.showError(r,h),p(h))).finally(()=>{delete this.records[o],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}useRequest(e,t){const{request:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:n,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const s=(o.config.headers||{})[Oi],a=this.records[s];if(!a)return o;const{data:c}=o;if(!c||typeof c!="object")return o;if((c==null?void 0:c.code)===t){n&&n(o);const u=new Promise(r).then(()=>this.send(Q(V({},a.config),{settings:a.settings}),!0));u.catch(l=>l).finally(()=>{i&&i()}),o.promise=u}return o})}};function sn(e={}){const t=new Zd(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),o=t.useRequest.bind(t),s=t.useResponse.bind(t);return Object.assign(r,Q(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:o,useResponse:s}))}const Mr=sn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),Lr=typeof window<"u";function Xd(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}let Ss=class{constructor(t={}){ut(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ut(this,"caches",{}),ut(this,"types"),this.types={local:Lr?window.localStorage:this.caches,session:Lr?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:o,prefix:s}=V(V({},this.options),n),a=Date.now(),c=s+t,u=this.types[i]||this.caches,l={value:r,timestamp:a,expired:o};u===this.caches?u[c]=l:u.setItem(c,JSON.stringify(l))}get(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=i+t,s=this.types[n]||this.caches;let a;if(s===this.caches)a=s[o];else{const f=s.getItem(o);f&&(a=JSON.parse(f))}if(!a)return null;const{value:c,timestamp:u,expired:l}=a;return l>0&&u+l<Date.now()?(this.remove(t,r),null):c}remove(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=this.types[n]||this.caches,s=i+t;o===this.caches?delete o[s]:o.removeItem(s)}clear(t={}){const{type:r}=V(V({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}};new Ss;function xs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ke={exports:{}},Qd=ke.exports,$i;function tm(){return $i||($i=1,function(e,t){(function(r,n){n(t,e)})(Qd,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function s(u){try{delete window[u]}catch(l){window[u]=void 0}}function a(u){var l=document.getElementById(u);l&&document.getElementsByTagName("head")[0].removeChild(l)}function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=u,p=l.timeout||i.timeout,h=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var E=l.jsonpCallbackFunction||o(),y=h+"_"+E;window[E]=function(_){m({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),a(y),s(E)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+h+"="+E),l.charset&&v.setAttribute("charset",l.charset),l.nonce&&v.setAttribute("nonce",l.nonce),l.referrerPolicy&&v.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+u+" timed out")),s(E),a(y),window[E]=function(){s(E)}},p),v.onerror=function(){b(new Error("JSONP request to "+u+" failed")),s(E),a(y),d&&clearTimeout(d)}})}n.exports=c})}(ke,ke.exports)),ke.exports}var em=tm();const rm=xs(em);function nm(e){if(Lr){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function im(e=""){const t=e.match(zo);return t?t[0]:""}function Ts(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function Ur(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const o=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=o.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Rs(e,t){t=typeof t=="string"?Ur(t):t;const r=e.split("?")[0],n=Ur(e),i=Object.assign({},n,t),o=Ts(i);return o?[r,o].join("?"):e}const Ie=Object.freeze(Object.defineProperty({__proto__:null,append:Rs,getCurrentHost:nm,getHost:im,parse:Ur,stringify:Ts},Symbol.toStringTag,{value:"Module"}));function Os(r){return L(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=dh(e)(n||{}));const i=Rs(e,n);return yield(yield rm(i,t)).json()})}var yr,Ai;function om(){if(Ai)return yr;Ai=1,yr=function(n,i,o){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(o=i,i={}),i=i||{},o=o||function(){},a.type=i.type||"text/javascript",a.charset=i.charset||"utf8",a.async="async"in i?!!i.async:!0,a.src=n,i.attrs&&e(a,i.attrs),i.text&&(a.text=""+i.text);var c="onload"in a?t:r;c(a,o),a.onload||t(a,o),s.appendChild(a)};function e(n,i){for(var o in i)n.setAttribute(o,i[o])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return yr}var sm=om();const am=xs(sm);function Di(e,t={}){return new Promise((r,n)=>{const{library:i}=t;am(e,t,(o,s)=>{o?n(o):r(i?window[i]:void 0)})})}const ji={debug:-1,log:0,info:0,warn:1,error:2},um=function(e,t,r,n){return function(...i){if(t&&ji[t]<=ji[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,cm(i,r))}};function cm(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function lm(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const fm={level:"warn",bizName:"*"};class hm{constructor(t){ut(this,"config"),ut(this,"options"),this.options=V(V({},fm),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=lm(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return um(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function pm(e){return new hm(e)}const Gt=pm({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var dm={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Vr(e,t){function r(i,o,s){if(!(typeof document>"u")){s=Ae({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in s)s[c]&&(a+="; "+c,s[c]!==!0&&(a+="="+s[c].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var c=o[a].split("="),u=c.slice(1).join("=");try{var l=decodeURIComponent(c[0]);if(s[l]=e.read(u,l),i===l)break}catch(f){}}return i?s[i]:s}}return Object.create({set:r,get:n,remove:function(i,o){r(i,"",Ae({},o,{expires:-1}))},withAttributes:function(i){return Vr(this.converter,Ae({},this.attributes,i))},withConverter:function(i){return Vr(Ae({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}Vr(dm,{path:"/"});var nt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(nt||{});const Bi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],mm=["vIf","vShow","vModel","vFor","vBind","vHtml"],gm={String,Number,Boolean,Array,Object,Function,Date},vr="VtjPage",br="VtjHomepage",ym="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot".split(","),vm="component,slot".split(",");function De(e,t){return e.map(r=>Wh(r)||r.startsWith("/")?r:`${t}${r}`)}function an(e){return/\.css$/.test(e)}function un(e){return/\.js$/.test(e)}function bm(e){return/\.json$/.test(e)}function _m(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function wm(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],o=[],s=[],a=[],c={},u={},l=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:m,localeLibrary:b})=>{p==null||p.forEach(E=>{un(E)&&i.push(_m(E,r)),an(E)&&o.push(E)}),d&&(a.push(d),c[d]=De(p||[],t),b&&(u[d]=b)),h&&s.push(h),m&&l.push(m),d&&m&&(f[m]=d)}),{scripts:De(i,t),css:De(o,t),materials:De(s,t),libraryExports:a,materialExports:Qh(l),materialMapLibrary:f,libraryMap:c,libraryLocaleMap:u}}function Em(e,t){var o;const{name:r,parent:n,alias:i}=e;return n?(o=t[n])==null?void 0:o[i||r]:t[i||r]}function $s(e){return Mt(e)?e:JSON.stringify(e)}function cn(e,t,r){const n=e.CSSStyleSheet;if(n.prototype.replaceSync){const i=new n;i.id=t,i.replaceSync(r);const o=e.document,s=o.adoptedStyleSheets,a=Array.from(s).filter(c=>c.id!==t);o.adoptedStyleSheets=[...a,i]}else{const i=e.document;let o=i.getElementById(t);o?o.innerHTML=r:(o=i.createElement("style"),o.id=t,o.innerHTML=r,i.head.appendChild(o))}}function Sm(e,t){return L(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&cn(window,e,r)})}function xm(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const o=r.createElement("link");o.rel="stylesheet",o.id=i,o.href=i,n.appendChild(o)}}function Tm(n,i){return L(this,arguments,function*(e,t,r=window){const o=r.document,s=r.document.head;let a=r[t];return a?a.default||a:new Promise((c,u)=>{for(const l of e){const f=o.createElement("script");f.src=l,f.onload=()=>{a=r[t],a?c(a.default||a):u(null)},f.onerror=p=>{u(p)},s.appendChild(f)}})})}function Rm(e){return fe(e)||fe(e==null?void 0:e.install)}function Om(e){return vm.includes(e)}function $m(e){return ym.includes(e)}function me(e=window){const t=window.Mock;if(t)return t;const r=e.Mock;if(r)return window.Mock=r,r}function ge(e,t,r=!1,n=!1){var i;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let s=(e.value||"").trim();s=s.replace(/this(\W|$)/g,(c,u)=>`__self${u}`),s=o.join(`
|
|
62
62
|
`)+s;const a=`with(${r?"{}":"$scope || {}"}) { ${s} }`;return new Function("$scope",a)(t)}catch(o){if(Gt.error("parseExpression.error",o,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw o}}function Le(e,t,r=!1,n=!1){var o;const i=ge(e,t,r,n);if(typeof i!="function"&&(Gt.error("parseFunction.error","not a function",e,(o=t==null?void 0:t.__self)!=null?o:t),n))throw new Error(`"${e.value}" not a function`);return i}function ht(e){return e&&e.type==="JSExpression"}function Qe(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function Am(e={}){const{notify:t,loading:r,settings:n={}}=e;let i=null;return{request:sn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:o=>{var s,a;return((s=o.data)==null?void 0:s.code)===0||!!((a=o.data)!=null&&a.success)},failMessage:!0,showError:o=>{t&&t(o||"未知错误")},showLoading:()=>{i&&i.close(),r&&(i=r())},hideLoading:()=>{i&&(i.close(),i=null)}},n)}),jsonp:Os,notify:t,loading:r}}function Dm(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,Q(V({},e.jsonpOptions),{query:i}));{const i=e.headers?ge(e.headers,{},!0):void 0,o={url:e.url,method:e.method,settings:Q(V({},e.settings),{headers:i})};return(s,a)=>(delete o.data,n.send(ae(o,a||{},{data:s})))}}function jm(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(o,s)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,o,s)}}function Bm(e=[],t=[],r){const n={};for(const i of e)n[i.id]=Dm(i,r);for(const i of t)n[i.id]=jm(i,r);return n}function Cm(){return L(this,arguments,function*(e=[],t=window){const r=me(t);r&&(As(t),e.forEach(n=>km(r,n)))})}function Nm(e,t=window){const r=Qe(e.mockTemplate)&&e.mockTemplate.value?Le(e.mockTemplate,{},!0):void 0,n=me(t);return(...i)=>L(this,null,function*(){let o={};if(r)try{o=yield r.apply(r,i)}catch(s){Gt.warn("模拟数据模版异常",s)}return n==null?void 0:n.mock(o)})}function km(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=en(`${r}(.*)`),o=ip(r,{decode:decodeURIComponent}),s=ge(n,{},!0);e.mock(i,a=>{var f;const c=Ie.parse(a.url)||{},u=a.body instanceof FormData?Xd(a.body):a.body,l=(f=o(a.url))==null?void 0:f.params;return Object.assign(a,{data:u,params:c,query:l}),e.mock(s(a))})}}function As(e=window){const t=me(e);t&&(t._mocked={})}class Im{constructor(t){z(this,"__id",null);z(this,"__mode");z(this,"__instance",null);z(this,"__contextRefs",{});z(this,"__refs",{});z(this,"context",{});z(this,"state",{});z(this,"props",{});z(this,"$props",{});z(this,"$refs",{});z(this,"$el",null);z(this,"$emit",null);z(this,"$nextTick",null);z(this,"$parent",null);z(this,"$root",null);z(this,"$attrs",null);z(this,"$slots",null);z(this,"$watch",null);z(this,"$options",null);z(this,"$forceUpdate",null);z(this,"$components",{});z(this,"$libs",{});z(this,"$apis",{});z(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=Ve){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&Bi.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){Bi.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var r;if(t)if(this.__mode===nt.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return Le({type:i,value:o},this)}else return Le(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===nt.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return ge({type:i,value:o},this)}else return ge(t,this)}__ref(t=null,r){if(this.__mode!==nt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>L(this,null,function*(){var o,s;yield Zh(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((s=(o=n==null?void 0:n._)==null?void 0:o.vnode)==null?void 0:s.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,nt.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,n)),n})}__getRefEl(t,r,n){const i=t[r];if(i&&n!==i){const o=new Set([].concat(i,n));return Array.from(o)}else return n}__clone(t={}){const r=V(V({},this.context),t),n=Q(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Hr(e){var f,p;const{Vue:t=Ve,mode:r=nt.Runtime,components:n={},libs:i={},apis:o={},loader:s}=e,a=t.computed(()=>e.dsl),c={$components:n,$libs:i,$apis:o},u=new Im({mode:r,dsl:a.value,attrs:c}),l=t.defineComponent(V({name:a.value.name,props:V({},Pm((f=a.value.props)!=null?f:[],u)),setup(h){var v,_,S,g;u.$props=h,u.props=h,a.value.id&&cn(e.window||window,a.value.id,a.value.css||""),u.state=Mm(t,(v=a.value.state)!=null?v:{},u);const d=Lm(t,(_=a.value.computed)!=null?_:{},u),m=Um((S=a.value.methods)!=null?S:{},u),b=Vm(t,a.value.inject,u),E=Hm(a.value.dataSources||{},u),y=V(V(V(V({},b),d),m),E);return u.setup(y,t),qm(t,(g=a.value.watch)!=null?g:[],u),{vtj:u}},emits:Fm(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const h=a.value.nodes||[];return h.length===1?Ue(h[0],u,t,s):h.map(d=>Ue(d,u,t,s))}},zm((p=a.value.lifeCycles)!=null?p:{},u)));return{renderer:t.markRaw(l),context:u}}function Fm(e=[]){return e.map(t=>Mt(t)?t:t.name)}function Pm(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>gm[i]):void 0;return e.map(n=>Mt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:ht(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function Mm(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let o=t[i];return ht(o)?o=r.__parseExpression(o):Qe(o)&&(o=r.__parseFunction(o)),n[i]=o,n},{}))}function Lm(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,o])=>(n[i]=e.computed(r.__parseFunction(o)),n),{})}function Um(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function Vm(e,t=[],r){return t.reduce((n,i)=>{var u;const{name:o,from:s}=i||{};i.default;const a=ht(s)?r.__parseExpression(s)||o:s!=null?s:o,c=ht(i.default)?r.__parseExpression(i.default):(u=i.default)!=null?u:null;return n[o]=e.inject(a,c),n},{})}function Hm(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=Nm(i);else if(i.ref){const o=t.$apis[i.ref],s=Qe(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>L(this,null,function*(){const c=yield o.apply(t,a);return s?s(c):c})}return r},{})}function qm(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function zm(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let _r=[],zt={};const Wm=e=>e;function Ds(r){return L(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,o=n.filter(a=>un(a));if(o.length===0||!i)return null;const s=n.filter(a=>an(a));return s.length&&xm(s,t),yield Tm(o,i,t).catch(a=>(console.warn("loadScriptUrl error",o,i,a),null))})}function qr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(_r.forEach(i=>{delete n.window[i]}),_r=[]),(i,o,s=Ve)=>{if(!o||typeof o=="string")return i;if(o.type==="Schema"&&o.id){let a=zt[o.id];return a||(a=zt[o.id]=s.defineAsyncComponent(()=>L(this,null,function*(){const c=yield t(o.id);return c&&(c.name=i),c?Hr(Q(V({},n),{Vue:s,dsl:c,mode:nt.Runtime,loader:qr(e)})).renderer:null})),a)}if(o.type==="UrlSchema"&&o.url){let a=zt[o.url];return a||(a=zt[o.url]=s.defineAsyncComponent(()=>L(this,null,function*(){const c=yield r(o.url);return c&&(c.name=i),c?Hr(Q(V({},n),{Vue:s,dsl:c,mode:nt.Runtime,loader:qr(e)})).renderer:null})),a)}if(o.type==="Plugin"){let a=o.library?zt[o.library]:null;return a||(o.library&&_r.push(o.library),a=zt[o.library||Symbol()]=s.defineAsyncComponent(()=>L(this,null,function*(){return(yield Ds(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return i}}function Ue(e,t,r=Ve,n=Wm){var m;if(!e||!e.name||e.invisible)return null;const i=(m=r.getCurrentInstance())==null?void 0:m.appContext,{id:o=null,directives:s=[]}=e,{vIf:a,vFor:c,vShow:u,vModels:l,vBind:f,vHtml:p,others:h}=Ym(s);if(a&&!Km(a,t))return null;const d=b=>{var O,P,w,T;const E=b.$components,y=(()=>{var j,I,D,C;if(e.name==="component")return Gm(b,(j=e.props)==null?void 0:j.is);if(e.name==="slot")return e.name;const F=n(e.name,e.from,r);return Mt(F)?Om(F)||$m(F)?F:(C=(D=E[F])!=null?D:(I=i==null?void 0:i.app)==null?void 0:I.component(F))!=null?C:F:F})(),v=Zm(o,(O=e.props)!=null?O:{},b),_=Xm(r,(P=e.events)!=null?P:{},b);if(e.name==="slot")return Qm(r,e,v,b,n);f&&Object.assign(v,b.__parseExpression(f.value)),u&&(v.style=Object.assign((w=v.style)!=null?w:{},eg(u,b))),p&&Object.assign(v,rg(p,b)),l.forEach(F=>{Object.assign(v,ng(r,F,b))});const S=ig(r,(T=e.children)!=null?T:[],b,n,e);let g=r.createVNode(y,V(V({},v),_),S);const x=i?Jm(i,h,b):[];return x.length&&(g=r.withDirectives(g,x)),g};return c?ag(c,d,t):d(t)}function Jm(e,t,r){const n=e.app;return t.map(i=>{const o=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!o)return null;const s=[o];return i.value&&s.push(r.__parseExpression(i.value)),i.arg&&s.push(i.arg),i.modifiers&&s.push(i.modifiers),s}).filter(i=>!!i)}function Ym(e=[]){const t=e.find(c=>jt(c.name)==="vIf"),r=e.find(c=>jt(c.name)==="vFor"),n=e.find(c=>jt(c.name)==="vShow"),i=e.find(c=>jt(c.name)==="vBind"),o=e.find(c=>jt(c.name)==="vHtml"),s=e.filter(c=>jt(c.name)==="vModel"),a=e.filter(c=>!mm.includes(jt(c.name)));return{vIf:t,vFor:r,vShow:n,vModels:s,vBind:i,others:a,vHtml:o}}function Km(e,t){return!!t.__parseExpression(e.value)}function Gm(e,t){return t?ht(t)?e.__parseExpression(t):t:"div"}function Zm(e,t,r){const n=zr(t,r);return n.ref=r.__ref(e,n.ref),n}function zr(e,t){return ht(e)?t.__parseExpression(e):Qe(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>zr(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=zr(i,t),r},{}):e}function Xm(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((o,s)=>{const a=t[s],c=js(a.modifiers),u=c.find(p=>n.includes(p)),l="on"+mo(s)+(u&&i[u]||""),f=r.__parseFunction(a.handler);return f&&(o[l]=e.withModifiers(f,c)),o},{})}function js(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function Qm(e,t,r,n,i){var c;const{children:o}=t,s=tg(t,n),a=(c=n.$slots)==null?void 0:c[s.name];return a?a(r):o?Mt(o)?e.createTextVNode(o):ht(o)?e.createTextVNode($s(n.__parseExpression(o))):Array.isArray(o)?o.map(u=>Ue(u,n,e,i)):null:null}function tg(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:ht(n)?t.__parseExpression(n):n,params:[]}}function eg(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function rg(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function ng(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
|
|
63
63
|
${t.value.value} = v;
|
|
64
64
|
}`:"(v) => {}"},i=r.__parseFunction(n),o=js(ht(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),s=ht(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[s]:r.__parseExpression(t.value),[`onUpdate:${s}`]:o.length&&i?e.withModifiers(i,o):i}}function ig(e,t,r,n,i){if(!t)return null;if(Mt(t))return{default:()=>t};if(ht(t))return{default:()=>$s(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const o=og(t),s=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(o).reduce((a,[c,{nodes:u,params:l}])=>(a[c]=f=>{const p=l.length?tp(f!=null?f:{},l):s(f);return u.map(h=>Ue(h,r.__clone(p),e,n))},a),{})}return null}function og(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=sg(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params)):t[i]={nodes:[r],params:n.params}}return t}function sg(e="default"){return Mt(e)?{name:e,params:[]}:V({params:[]},e)}function ag(e,t,r){const{value:n,iterator:i}=e,{item:o="item",index:s="index"}=i||{};let a=r.__parseExpression(n)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((c,u)=>u+1)),Array.isArray(a)?a.map((c,u)=>t(r.__clone({[o]:c,[s]:u}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}function ug(e){return Ys()?(Ks(e),!0):!1}const Bs=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const cg=e=>e!=null,lg=()=>{};function fg(e){return Fi()}function hg(e){return Array.isArray(e)?e:[e]}function pg(...e){if(e.length!==1)return qs(...e);const t=e[0];return typeof t=="function"?zs(Ws(()=>({get:t,set:lg}))):Yr(t)}function dg(e,t){fg()&&Js(e,t)}const mg=Bs?window:void 0,gg=Bs?window.document:void 0;function yg(e){var t;const r=Kr(e);return(t=r==null?void 0:r.$el)!=null?t:r}function vg(){const e=Yr(!1),t=Fi();return t&&Gs(()=>{e.value=!0},t),e}function bg(e){const t=vg();return Ii(()=>(t.value,!!e()))}function _g(e,t,r={}){const p=r,{window:n=mg}=p,i=hn(p,["window"]);let o;const s=bg(()=>n&&"MutationObserver"in n),a=()=>{o&&(o.disconnect(),o=void 0)},c=Ii(()=>{const h=Kr(e),d=hg(h).map(yg).filter(cg);return new Set(d)}),u=ki(()=>c.value,h=>{a(),s.value&&h.size&&(o=new MutationObserver(t),h.forEach(d=>o.observe(d,i)))},{immediate:!0,flush:"post"}),l=()=>o==null?void 0:o.takeRecords(),f=()=>{u(),a()};return ug(f),{isSupported:s,stop:f,takeRecords:l}}function wg(e=null,t={}){var r,n,i;const{document:o=gg,restoreOnUnmount:s=f=>f}=t,a=(r=o==null?void 0:o.title)!=null?r:"",c=pg((n=e!=null?e:o==null?void 0:o.title)!=null?n:null),u=!!(e&&typeof e=="function");function l(f){if(!("titleTemplate"in t))return f;const p=t.titleTemplate||"%s";return typeof p=="function"?p(f):Kr(p).replace(/%s/g,f)}return ki(c,(f,p)=>{f!==p&&o&&(o.title=l(f!=null?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!u&&_g((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==c.value&&(c.value=l(o.title))},{childList:!0}),dg(()=>{if(s){const f=s(a,c.value||"");f!=null&&o&&(o.title=f)}}),c}const Ci=Jr({name:"VtjPageContainer",setup(){return L(this,null,function*(){const e=Bg(),t=Zs(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,o=Yr(Symbol());return n&&(Object.assign(t.meta,n.meta||{},{cache:n.cache}),wg(n.title||"VTJ")),{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:o,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?wr(e,Q(V({},t),{key:r})):wr("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),Eg={"data-l-h6o7ki7":"",class:"vtj-startup__wrapper"},Sg={"data-l-h6o7ki7":"",class:"vtj-startup"},xg={"data-l-h6o7ki7":"",class:"vtj-startup__name"},Tg={"data-l-h6o7ki7":"",class:"span"},Rg={"data-l-h6o7ki7":"",class:"vtj-startup__tagline"},Og={"data-l-h6o7ki7":"",class:"vtj-startup__actions"},$g=Jr({__name:"Startup",props:{name:{default:"VTJ.PRO"},tagline:{default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{default:"开始设计"},link:{}},setup(e){((n,i)=>{let o=document.getElementById("h6o7ki7");o||(o=document.createElement("style"),o.id="h6o7ki7",document.head.appendChild(o),o.innerHTML=i)})("h6o7ki7",`
|
|
@@ -142,10 +142,10 @@ version: 2.9.0
|
|
|
142
142
|
}
|
|
143
143
|
.vtj-startup__actions .button[data-l-h6o7ki7]:hover{
|
|
144
144
|
opacity: 0.7;
|
|
145
|
-
}`);const t=e,r=()=>{if(typeof window<"u"){if(t.link){typeof t.link=="function"?t.link():window.location.href=t.link;return}let n=(window.__VTJ_LINK__||{}).href||window.location.pathname+"__vtj__/#/";window.location.href=n}};return(n,i)=>(Hs(),Vs("div",Eg,[Dt("div",Sg,[Dt("h1",xg,[Dt("span",Tg,ir(t.name),1)]),Dt("div",Rg,ir(t.tagline),1),Dt("div",Og,[i[0]||(i[0]=Dt("span",{"data-l-h6o7ki7":"",class:"span"},"设置项目主页后,将替换此页面显示",-1)),Dt("span",{"data-l-h6o7ki7":"",class:"button",onClick:r},ir(t.actionText),1)])])]))}}),Ag=Jr({name:"VtjStartupContainer",render(){return wr($g)}}),Cs=Symbol("Provider");class Dg extends pp{constructor(r){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:Mr,jsonp:Os});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"service");z(this,"project",null);z(this,"components",{});z(this,"nodeEnv","development");z(this,"router",null);z(this,"materialPath","./");z(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=nt.Raw,dependencies:o,materials:s,project:a={},adapter:c={},globals:u={},modules:l={},router:f=null,materialPath:p="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=f,this.materialPath=p,this.nodeEnv=h,o&&(this.dependencies=o),s&&(this.materials=s),Object.assign(this.globals,u),Object.assign(this.adapter,c);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:f,request:m}),a&&i!==nt.Design?this.load(a):this.project=a}createMock(r){return(...n)=>L(this,null,function*(){var o;let i={};if(r)try{i=yield r.apply(r,n)}catch(s){Gt.warn("模拟数据模版异常",s)}return(o=me())==null?void 0:o.mock(i)})}load(r){return L(this,null,function*(){const n=this.modules[`.vtj/projects/${r.id}.json`];if(this.project=n?yield n():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:i=[],meta:o=[]}=this.project,s=window;s.CKEDITOR_VERSION=void 0,this.mode===nt.Raw?yield this.loadDependencies(s):yield this.loadAssets(s),this.initMock(s),this.apis=Bm(i,o,this.adapter),As(s),Cm(i,s),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=me(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return L(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,o]of n)r[i]||(r[i]=this.library[i]=yield o())})}loadAssets(r){return L(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:o,components:s,materialPath:a,nodeEnv:c}=this,{libraryExports:u,libraryMap:l,materials:f,materialExports:p,materialMapLibrary:h}=wm(n,a,c==="development");for(const d of u){const m=i[d],b=r[d];if(b)o[d]=b;else if(m)r[d]=o[d]=yield m();else{const E=l[d]||[];for(const y of E)an(y)&&(yield Sm(d,Ie.append(y,{v:nr}))),un(y)&&(yield Di(Ie.append(y,{v:nr})));o[d]=r[d]}}if(c==="development"){for(const m of f)yield Di(Ie.append(m,{v:nr}));const d=this.materials||{};for(const m of p){const b=r[h[m]],E=hp[m];if(E)b&&E.forEach(y=>{s[y]=b[y]});else{const y=d[m]?(yield d[m]()).default:r[m];y&&b&&(y.components||[]).forEach(v=>{s[v.name]=Em(v,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:o}=this;if(!r)return;const s=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:a,pageRouteName:c=s,routeMeta:u}=i,l=a?"":"/",f={path:`${l}${c}/:id`,name:vr,component:Ci},p={path:l,name:br,component:n!=null&&n.homepage?Ci:o.startupComponent||Ag,meta:u};r.hasRoute(vr)&&r.removeRoute(vr),r.hasRoute(br)&&r.removeRoute(br),a?(r.addRoute(a,f),r.addRoute(a,p)):(r.addRoute(f),r.addRoute(p))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,o]of Object.entries(this.library))!n[i]&&Rm(o)&&(r.use(o),n[i]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),r.provide(Cs,this),r.config.globalProperties.$provider=this,r.config.globalProperties.installed=n,this.mode===nt.Design&&(r.config.errorHandler=(i,o,s)=>{const a=o==null?void 0:o.$options.name,c=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",u=`[ ${a} ] ${c} ${s}`;console.error("[VTJ Error]:",{err:i,instance:o,info:s},i==null?void 0:i.stack),this.adapter.notify&&this.adapter.notify(u,"组件渲染错误","error")})}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(o,s=[])=>{for(const a of s){if(a.id===o)return a;if(a.children&&a.children.length){const c=i(o,a.children);if(c)return c}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return L(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return L(this,null,function*(){return this.urlDslCaches[r]||(this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null))})}createDslRenderer(r,n={}){const{library:i,components:o,mode:s,apis:a}=this,c=V({mode:s,Vue:i.Vue,components:o,libs:i,apis:a,window},n),u=qr({getDsl:l=>L(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>L(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:c});return Hr(Q(V({},c),{dsl:r,loader:u}))}getRenderComponent(r,n){return L(this,null,function*(){var c;const i=this.getFile(r);if(!i)return Gt.warn(`Can not find file: ${r}`),null;n&&n(i);const o=`.vtj/vue/${r}.vue`,s=this.modules[o];if(s)return(c=yield s())==null?void 0:c.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(Gt.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return dn(()=>L(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return dn(()=>L(this,null,function*(){return yield Ds(r,window)}))}}function jg(e){const t=new Dg(e);return{provider:t,onReady:r=>t.ready(r)}}function Bg(e={}){const t=Us(Cs,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&L(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}const Ns={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},Cg=(e,t="/__vtj__/api/:type.json")=>(r,n,i)=>e.send({url:t,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:Ns}),Ng=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>L(void 0,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:Q(V({},Ns),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function kg(e){return sn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var r;return((r=t.data)==null?void 0:r.code)===0},showError:t=>{e&&e(t||"未知错误")}}})}class Ig{constructor(t=Mr){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.api=Cg(t),this.uploader=Ng(t)}getExtension(){return L(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return L(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return L(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return L(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return L(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return L(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return L(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return L(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return L(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return L(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return L(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return L(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return L(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return L(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return L(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return L(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return L(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return L(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return L(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return L(this,null,function*(){const{urls:r=[]}=t,n=r.filter(o=>bm(o))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=Mr.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(o=>o.data).catch(()=>null)):null})}genSource(t){return L(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new Ss({type:"local",expired:0,prefix:"__VTJ_"});class Fg extends Ig{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return L(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return L(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return L(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return L(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Xh(n)}).catch(()=>!1))})}saveFile(r){return L(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return L(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return L(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return L(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return L(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return L(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return L(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
|
|
145
|
+
}`);const t=e,r=()=>{if(typeof window<"u"){if(t.link){typeof t.link=="function"?t.link():window.location.href=t.link;return}let n=(window.__VTJ_LINK__||{}).href||window.location.pathname+"__vtj__/#/";window.location.href=n}};return(n,i)=>(Hs(),Vs("div",Eg,[Dt("div",Sg,[Dt("h1",xg,[Dt("span",Tg,ir(t.name),1)]),Dt("div",Rg,ir(t.tagline),1),Dt("div",Og,[i[0]||(i[0]=Dt("span",{"data-l-h6o7ki7":"",class:"span"},"设置项目主页后,将替换此页面显示",-1)),Dt("span",{"data-l-h6o7ki7":"",class:"button",onClick:r},ir(t.actionText),1)])])]))}}),Ag=Jr({name:"VtjStartupContainer",render(){return wr($g)}}),Cs=Symbol("Provider");class Dg extends pp{constructor(r){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:Mr,jsonp:Os});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"service");z(this,"project",null);z(this,"components",{});z(this,"nodeEnv","development");z(this,"router",null);z(this,"materialPath","./");z(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=nt.Raw,dependencies:o,materials:s,project:a={},adapter:c={},globals:u={},modules:l={},router:f=null,materialPath:p="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=f,this.materialPath=p,this.nodeEnv=h,o&&(this.dependencies=o),s&&(this.materials=s),Object.assign(this.globals,u),Object.assign(this.adapter,c);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:f,request:m}),a&&i!==nt.Design?this.load(a):this.project=a}createMock(r){return(...n)=>L(this,null,function*(){var o;let i={};if(r)try{i=yield r.apply(r,n)}catch(s){Gt.warn("模拟数据模版异常",s)}return(o=me())==null?void 0:o.mock(i)})}load(r){return L(this,null,function*(){const n=this.modules[`.vtj/projects/${r.id}.json`]||this.modules[`/src/.vtj/projects/${r.id}.json`];if(this.project=n?yield n():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:i=[],meta:o=[]}=this.project,s=window;s.CKEDITOR_VERSION=void 0,this.mode===nt.Raw?yield this.loadDependencies(s):yield this.loadAssets(s),this.initMock(s),this.apis=Bm(i,o,this.adapter),As(s),Cm(i,s),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=me(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return L(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,o]of n)r[i]||(r[i]=this.library[i]=yield o())})}loadAssets(r){return L(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:o,components:s,materialPath:a,nodeEnv:c}=this,{libraryExports:u,libraryMap:l,materials:f,materialExports:p,materialMapLibrary:h}=wm(n,a,c==="development");for(const d of u){const m=i[d],b=r[d];if(b)o[d]=b;else if(m)r[d]=o[d]=yield m();else{const E=l[d]||[];for(const y of E)an(y)&&(yield Sm(d,Ie.append(y,{v:nr}))),un(y)&&(yield Di(Ie.append(y,{v:nr})));o[d]=r[d]}}if(c==="development"){for(const m of f)yield Di(Ie.append(m,{v:nr}));const d=this.materials||{};for(const m of p){const b=r[h[m]],E=hp[m];if(E)b&&E.forEach(y=>{s[y]=b[y]});else{const y=d[m]?(yield d[m]()).default:r[m];y&&b&&(y.components||[]).forEach(v=>{s[v.name]=Em(v,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:o}=this;if(!r)return;const s=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:a,pageRouteName:c=s,routeMeta:u}=i,l=a?"":"/",f={path:`${l}${c}/:id`,name:vr,component:Ci},p={path:l,name:br,component:n!=null&&n.homepage?Ci:o.startupComponent||Ag,meta:u};r.hasRoute(vr)&&r.removeRoute(vr),r.hasRoute(br)&&r.removeRoute(br),a?(r.addRoute(a,f),r.addRoute(a,p)):(r.addRoute(f),r.addRoute(p))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,o]of Object.entries(this.library))!n[i]&&Rm(o)&&(r.use(o),n[i]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),r.provide(Cs,this),r.config.globalProperties.$provider=this,r.config.globalProperties.installed=n,this.mode===nt.Design&&(r.config.errorHandler=(i,o,s)=>{const a=o==null?void 0:o.$options.name,c=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",u=`[ ${a} ] ${c} ${s}`;console.error("[VTJ Error]:",{err:i,instance:o,info:s},i==null?void 0:i.stack),this.adapter.notify&&this.adapter.notify(u,"组件渲染错误","error")})}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(o,s=[])=>{for(const a of s){if(a.id===o)return a;if(a.children&&a.children.length){const c=i(o,a.children);if(c)return c}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return L(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`]||this.modules[`/src/.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return L(this,null,function*(){return this.urlDslCaches[r]||(this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null))})}createDslRenderer(r,n={}){const{library:i,components:o,mode:s,apis:a}=this,c=V({mode:s,Vue:i.Vue,components:o,libs:i,apis:a,window},n),u=qr({getDsl:l=>L(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>L(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:c});return Hr(Q(V({},c),{dsl:r,loader:u}))}getRenderComponent(r,n){return L(this,null,function*(){var c;const i=this.getFile(r);if(!i)return Gt.warn(`Can not find file: ${r}`),null;n&&n(i);const o=`.vtj/vue/${r}.vue`,s=this.modules[o]||this.modules[`/src/pages/${r}.vue`];if(s)return(c=yield s())==null?void 0:c.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(Gt.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return dn(()=>L(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return dn(()=>L(this,null,function*(){return yield Ds(r,window)}))}}function jg(e){const t=new Dg(e);return{provider:t,onReady:r=>t.ready(r)}}function Bg(e={}){const t=Us(Cs,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&L(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}const Ns={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},Cg=(e,t="/__vtj__/api/:type.json")=>(r,n,i)=>e.send({url:t,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:Ns}),Ng=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>L(void 0,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:Q(V({},Ns),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function kg(e){return sn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var r;return((r=t.data)==null?void 0:r.code)===0},showError:t=>{e&&e(t||"未知错误")}}})}class Ig{constructor(t=Mr){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.api=Cg(t),this.uploader=Ng(t)}getExtension(){return L(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return L(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return L(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return L(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return L(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return L(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return L(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return L(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return L(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return L(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return L(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return L(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return L(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return L(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return L(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return L(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return L(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return L(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return L(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return L(this,null,function*(){const{urls:r=[]}=t,n=r.filter(o=>bm(o))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=Mr.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(o=>o.data).catch(()=>null)):null})}genSource(t){return L(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new Ss({type:"local",expired:0,prefix:"__VTJ_"});class Fg extends Ig{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return L(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return L(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return L(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return L(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Xh(n)}).catch(()=>!1))})}saveFile(r){return L(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return L(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return L(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return L(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return L(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return L(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return L(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
|
|
146
146
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
147
147
|
* @name @vtj/uni
|
|
148
148
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
149
|
-
* @version 0.10.
|
|
149
|
+
* @version 0.10.3
|
|
150
150
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
151
151
|
*/const Pg=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],Ni="/pages",Mg="VTJ",Lg="__UNI__1FC118B",Ug="VTJ移动跨端项目",Vg="1.0.0",Hg="100",qg=!1,zg={},Wg={enable:!1},Jg="3",Yg={name:Mg,appid:Lg,description:Ug,versionName:Vg,versionCode:Hg,transformPx:qg,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:zg,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:Wg,vueVersion:Jg},Kg=[],Gg={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},Zg={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},Xg={pages:Kg,globalStyle:Gg,easycom:Zg};function Qg(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(o=>{const{path:s,style:a,needLogin:c}=o;return{path:s,style:a,needLogin:c}});return Q(V({},e),{manifestJson:Object.assign({},Yg,t),pagesJson:Object.assign({},Xg,r,{pages:i})})}const Wr={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function ks(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)Wr[n]&&(t[Wr[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function t0(e){const t={};for(const r in e)Wr[r]||(t[r]=e[r]);return t}function e0(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function r0(e){var t,r,n;return{topWindow:!!((t=e.topWindow)!=null&&t.path),leftWindow:!!((r=e.leftWindow)!=null&&r.path),rightWindow:!!((n=e.rightWindow)!=null&&n.path)}}function n0(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var o;return!!((o=i.style)!=null&&o.enablePullDownRefresh)}))}function i0(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="default"})&&(i=!1)):n.every(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="custom"})&&(i=!0),i}function o0(e){var a;const t=i0(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:o=[]}=n;if(t)return r;r.navigationBar=!0;const s=(a=i==null?void 0:i.h5)==null?void 0:a.titleNView;return o.find(c=>{var u,l,f;return!!((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(s!=null&&s.searchInput||o.find(c=>{var u,l,f;return!!((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((s==null?void 0:s.type)==="transparent"||o.find(c=>{var u,l,f;return((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function s0(e,t=window){var p,h,d,m;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:o,rightWindow:s}=r0(r),{navigationBar:a,navigationBarButtons:c,navigationBarSearchInput:u,navigationBarTransparent:l}=o0(e),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:e0(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(h=r.tabBar)==null?void 0:h.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((m=r.tabBar)!=null&&m.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:o,__UNI_FEATURE_RIGHTWINDOW__:s,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:a,__UNI_FEATURE_PULL_DOWN_REFRESH__:n0(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:c,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:u,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:l};Object.entries(f).forEach(([b,E])=>{t[b]=E})}const a0="4.45";function u0(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:o="",name:s="",versionCode:a="",versionName:c=""}=n,u=r.globalStyle,l=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:Q(V({},t0(u)),{navigationBar:ks(u),isNVue:!1}),compilerVersion:a0,appId:o,appName:s,appVersion:c,appVersionCode:String(a),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:l.base||"/"},l),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function c0(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:o,getCurrentPages:s,upx2px:a,setupPage:c}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=o,t.wx=o,t.getCurrentPages=s,t.upx2px=a,t.__setupPage=u=>c(u)}function l0(e,t,r){const{defineAsyncComponent:n,openBlock:i,createBlock:o,withCtx:s,createVNode:a}=e,{PageComponent:c,setupPage:u,getApp:l}=t;return{mpType:"page",setup(){var h,d;const f=((d=(h=l())==null?void 0:h.$route)==null?void 0:d.query)||{},p=typeof r=="function"?n(r):r;return()=>(i(),o(c,null,{page:s(()=>[a(u(p),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))}}}function f0(e,t,r){var l;const{path:n,style:i={},meta:o={},home:s}=t,a=(((l=e.tabBar)==null?void 0:l.list)||[]).findIndex(f=>f.pagePath===n),c=a>-1,u=r===0;return V({isTabBar:c,tabBarIndex:a,isQuit:s!=null?s:u,isEntry:s!=null?s:u,navigationBar:V({type:"default"},ks(i)),isNVue:!1,route:n},o)}function h0(e,t,r,n,i=window){const o=r.map((s,a)=>{const c=f0(n,s,a),u=l0(e,t,s.component),{path:l}=s;return{path:l,alias:l,meta:c,component:u}});i.__uniRoutes=o,i.__uniLayout={}}function p0(e,t,r=window){cn(r,String(e),t)}function d0(e,t){t&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(r=>{const n=t[r];e.component(r,n)})}function m0(e){const t=Qg(e),{Vue:r,App:n,UniH5:i,routes:o=[],pagesJson:s={},manifestJson:a={},window:c,css:u=""}=t;if(!i)return r.createApp(n);const{plugin:l,setupApp:f}=i;s0(t,c),u0(t,c),c0(i,c),h0(r,i,o,s,c),p0(a.appid||Date.now(),u,c);const p=r.createApp(f(n));return p.use(d0,i),p.use(l),p}function g0(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{Pg.includes(n)&&i&&(r[n]=t(i))}),r}function y0(n){return L(this,arguments,function*(e,t=!1,r=Ni){var a,c,u;const i=((a=e.project)==null?void 0:a.pages)||[],o=[];for(const l of i){const f=yield e.getDsl(l.id);if(!f)continue;const{renderer:p}=e.createDslRenderer(f),h=((c=e.project)==null?void 0:c.homepage)===l.id;o.push({id:l.id,path:`${r}/${l.id}`,component:p,style:V({navigationBarTitleText:l.title},l.style),needLogin:l.needLogin,home:h})}const s=o.find(l=>!!l.home)||o[0];if(s){const l=r===Ni?"/":r;o.unshift(Q(V({},s),{path:l}))}if(t){const l=((u=e.project)==null?void 0:u.blocks)||[];for(const f of l){const p=yield e.getDsl(f.id);if(!p)continue;const{renderer:h}=e.createDslRenderer(p);o.push({id:f.id,path:`${r}/${f.id}`,component:h,style:{navigationStyle:"custom"}})}}return o})}function v0(){if(window.uni)return window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{window.uni.hideLoading()}}}function Is(e,t="",r="warning"){window.uni&&window.uni.showModal({title:t,content:e,showCancel:!1})}function b0(e=nt.Runtime){return e===nt.Runtime?Object.assign({}):Object.assign({})}const _0=Am({loading:v0,notify:Is}),w0=new Fg(kg(Is)),E0=b0(),{provider:S0,onReady:x0}=jg({nodeEnv:"production",mode:nt.Runtime,modules:E0,materialPath:"../",adapter:_0,service:w0,dependencies:{Vue:()=>gn(()=>import("./@dcloudio-uni-h5-vue-Vtb9ks0b.js").then(e=>e.B),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>gn(()=>import("./vue-router-CkCKZZ3K.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),T0=e=>L(void 0,null,function*(){var c;const{Vue:t,UniH5:r}=window,n=e.project;if(!n)return;const i=g0(n.uniConfig||{},u=>Le(u,window,!1,!0)),o=((c=n.uniConfig)==null?void 0:c.css)||"",s=yield y0(e,!0),a=m0({Vue:t,App:i,UniH5:r,routes:s,css:o});a.use(e),a.mount(document.body)});x0(()=>T0(S0));
|
package/dist/uni/index.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<title></title>
|
|
14
14
|
<!--preload-links-->
|
|
15
15
|
<!--app-context-->
|
|
16
|
-
<script type="module" crossorigin src="./assets/index-
|
|
16
|
+
<script type="module" crossorigin src="./assets/index-Nyp-OXeI.js"></script>
|
|
17
17
|
<link rel="modulepreload" crossorigin href="./assets/vue-BK7aLblh.js">
|
|
18
18
|
<link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-VStmjWbh.js">
|
|
19
19
|
<link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-Vtb9ks0b.js">
|
package/package.json
CHANGED
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
"name": "@vtj/pro",
|
|
3
3
|
"description": "VTJ.PRO",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.10.
|
|
5
|
+
"version": "0.10.3",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@vtj/designer": "~0.10.
|
|
9
|
-
"@vtj/
|
|
10
|
-
"@vtj/
|
|
11
|
-
"@vtj/
|
|
12
|
-
"@vtj/
|
|
13
|
-
"@vtj/
|
|
8
|
+
"@vtj/designer": "~0.10.3",
|
|
9
|
+
"@vtj/local": "~0.10.3",
|
|
10
|
+
"@vtj/core": "~0.10.3",
|
|
11
|
+
"@vtj/materials": "~0.10.3",
|
|
12
|
+
"@vtj/uni": "~0.10.3",
|
|
13
|
+
"@vtj/renderer": "~0.10.3"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"vue": "~3.5.5",
|
|
17
17
|
"vue-router": "~4.5.0",
|
|
18
|
-
"@vtj/charts": "~0.10.
|
|
19
|
-
"@vtj/ui": "~0.10.2",
|
|
20
|
-
"@vtj/icons": "~0.10.2",
|
|
18
|
+
"@vtj/charts": "~0.10.3",
|
|
21
19
|
"@vtj/cli": "~0.10.1",
|
|
22
|
-
"@vtj/
|
|
20
|
+
"@vtj/icons": "~0.10.3",
|
|
21
|
+
"@vtj/ui": "~0.10.3",
|
|
22
|
+
"@vtj/utils": "~0.10.3"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
|
25
25
|
"./vite": {
|