@vtj/pro 0.13.28 → 0.13.29
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/icons/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/ui/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +7 -7
- package/dist/@vtj/materials/deps/vue/vue.global.js +151 -128
- package/dist/@vtj/materials/deps/vue/vue.global.prod.js +5 -5
- package/dist/assets/{@element-plus-icons-vue-DE0zzihg.js → @element-plus-icons-vue-Wht5hDuw.js} +1 -1
- package/dist/assets/{@vueuse-BJJKbYUL.js → @vueuse--GEK18_Y.js} +1 -1
- package/dist/assets/{Editor-B75xHQnC-BSWrcsUN.js → Editor-BMuQppe5-CHXZ3yZL.js} +35 -34
- package/dist/assets/Editor-BMuQppe5-Cid80NMR.css +1 -0
- package/dist/assets/{auth-CEvGgnB6.js → auth-98wViUFP.js} +1 -1
- package/dist/assets/{element-plus-CIjwSFik.js → element-plus-DzGjmbPT.js} +2 -2
- package/dist/assets/{index-DsSlYZK8.js → index-Cj7CkFBB.js} +2 -2
- package/dist/assets/{index-a8PwrVKy.js → index-qG_ql6fO.js} +1 -1
- package/dist/assets/{page-mcEC9wSN.js → page-hDRsKLFQ.js} +2 -2
- package/dist/assets/{preview-BTsOe2-2.js → preview-EqX5uNMo.js} +2 -2
- package/dist/assets/uni-page-DwR0saAW.js +1 -0
- package/dist/assets/{utils-Do-d99R6.js → utils-PnTZyUOd.js} +1 -1
- package/dist/assets/vue-BCeUdUZW.js +34 -0
- package/dist/assets/{vue-router-CMJRGE5e.js → vue-router-DhSsrCnR.js} +1 -1
- package/dist/assets/{vxe-3kB2iE1H.js → vxe-B6nyV_6w.js} +1 -1
- package/dist/index.html +8 -8
- package/dist/uni/assets/{index-CN7G6Egy.js → index-DsBLZHhj.js} +9 -9
- package/dist/uni/index.html +1 -1
- package/package.json +11 -11
- package/dist/assets/Editor-B75xHQnC-CorvqbXP.css +0 -1
- package/dist/assets/uni-page-B0qhTPS3.js +0 -1
- package/dist/assets/vue-DgQ6LK_p.js +0 -34
- package/src/.vtj/files/1a99m0h6.json +0 -108
- package/src/.vtj/histories/1a99m0h6/1a99mnpa.json +0 -118
- package/src/.vtj/histories/1a99m0h6/1a99vz9d.json +0 -118
- package/src/.vtj/histories/1a99m0h6/1a9a1im3.json +0 -118
- package/src/.vtj/histories/1a99m0h6/1a9a8cp6.json +0 -118
- package/src/.vtj/histories/1a99m0h6/1a9ajtfk.json +0 -118
- package/src/.vtj/histories/1a99m0h6/1a9awy1w.json +0 -113
- package/src/.vtj/histories/1a99m0h6/2a99o0ne.json +0 -118
- package/src/.vtj/histories/1a99m0h6/2a9a1yso.json +0 -118
- package/src/.vtj/histories/1a99m0h6/3a99rf7k.json +0 -118
- package/src/.vtj/histories/1a99m0h6/4a99t0db.json +0 -118
- package/src/.vtj/histories/1a99m0h6/5a99t9vt.json +0 -118
- package/src/.vtj/histories/1a99m0h6.json +0 -60
- package/src/.vtj/materials/@vtj/pro.json +0 -8246
- package/src/.vtj/projects/@vtj/pro.json +0 -247
- package/src/App.vue +0 -11
- package/src/manifest.json +0 -72
- package/src/pages.json +0 -25
package/dist/index.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<meta http-equiv="Expires" content="0" />
|
|
12
12
|
<title>低代码设计器 - VTJ.PRO</title>
|
|
13
13
|
<script>
|
|
14
|
-
var __BUILD_TIME__ = '
|
|
14
|
+
var __BUILD_TIME__ = '1758845967781';
|
|
15
15
|
(function () {
|
|
16
16
|
const regex = /<!--{{(\d*)}}-->/;
|
|
17
17
|
window.fetch('?t=' + Date.now()).then(async (res) => {
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
});
|
|
28
28
|
})();
|
|
29
29
|
</script>
|
|
30
|
-
<!--{{
|
|
30
|
+
<!--{{1758845967781}}-->
|
|
31
31
|
|
|
32
|
-
<script type="module" crossorigin src="./assets/index-
|
|
33
|
-
<link rel="modulepreload" crossorigin href="./assets/vue-
|
|
34
|
-
<link rel="modulepreload" crossorigin href="./assets/@vueuse
|
|
32
|
+
<script type="module" crossorigin src="./assets/index-Cj7CkFBB.js"></script>
|
|
33
|
+
<link rel="modulepreload" crossorigin href="./assets/vue-BCeUdUZW.js">
|
|
34
|
+
<link rel="modulepreload" crossorigin href="./assets/@vueuse--GEK18_Y.js">
|
|
35
35
|
<link rel="modulepreload" crossorigin href="./assets/dayjs-C1e0w4cr.js">
|
|
36
|
-
<link rel="modulepreload" crossorigin href="./assets/@element-plus-icons-vue-
|
|
36
|
+
<link rel="modulepreload" crossorigin href="./assets/@element-plus-icons-vue-Wht5hDuw.js">
|
|
37
37
|
<link rel="modulepreload" crossorigin href="./assets/lodash-es-BOeLjWVX.js">
|
|
38
38
|
<link rel="modulepreload" crossorigin href="./assets/shared-CcA2kMdO.js">
|
|
39
|
-
<link rel="modulepreload" crossorigin href="./assets/element-plus-
|
|
39
|
+
<link rel="modulepreload" crossorigin href="./assets/element-plus-DzGjmbPT.js">
|
|
40
40
|
<link rel="modulepreload" crossorigin href="./assets/monaco-editor-xcHgnT1C.js">
|
|
41
|
-
<link rel="modulepreload" crossorigin href="./assets/vue-router-
|
|
41
|
+
<link rel="modulepreload" crossorigin href="./assets/vue-router-DhSsrCnR.js">
|
|
42
42
|
<link rel="stylesheet" crossorigin href="./assets/element-plus-BsdZdiCp.css">
|
|
43
43
|
<link rel="stylesheet" crossorigin href="./assets/monaco-editor-Cpw7ccEV.css">
|
|
44
44
|
<link rel="stylesheet" crossorigin href="./assets/index-1XTA0ffa.css">
|
|
@@ -46,29 +46,29 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
46
46
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
47
47
|
* @name @vtj/core
|
|
48
48
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
49
|
-
* @version 0.13.
|
|
49
|
+
* @version 0.13.29
|
|
50
50
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
51
51
|
*/const cg="VueMaterial",lg="VueRouterMaterial",fg={[cg]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[lg]:["RouterView","RouterLink"]};let hg=class{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 pg=Object.defineProperty,dg=(e,t,r)=>t in e?pg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ft=(e,t,r)=>dg(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 gg=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gg));function $o(e,t){return function(){return e.apply(t,arguments)}}const{toString:mg}=Object.prototype,{getPrototypeOf:_n}=Object,{iterator:sr,toStringTag:Oo}=Symbol,or=(e=>t=>{const r=mg.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),vt=e=>(e=e.toLowerCase(),t=>or(t)===e),ar=e=>t=>typeof t===e,{isArray:ce}=Array,Ee=ar("undefined");function Re(e){return e!==null&&!Ee(e)&&e.constructor!==null&&!Ee(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jo=vt("ArrayBuffer");function yg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jo(e.buffer),t}const vg=ar("string"),at=ar("function"),Do=ar("number"),Ae=e=>e!==null&&typeof e=="object",bg=e=>e===!0||e===!1,Ve=e=>{if(or(e)!=="object")return!1;const t=_n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Oo in e)&&!(sr in e)},wg=e=>{if(!Ae(e)||Re(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},_g=vt("Date"),Eg=vt("File"),Sg=vt("Blob"),xg=vt("FileList"),Tg=e=>Ae(e)&&at(e.pipe),Rg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=or(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},Ag=vt("URLSearchParams"),[$g,Og,jg,Dg]=["ReadableStream","Request","Response","Headers"].map(vt),Bg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $e(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ce(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(Re(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let u;for(n=0;n<o;n++)u=s[n],t.call(null,e[u],u,e)}}function Bo(e,t){if(Re(e))return null;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 Vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Co=e=>!Ee(e)&&e!==Vt;function Jr(){const{caseless:e}=Co(this)&&this||{},t={},r=(n,i)=>{const s=e&&Bo(t,i)||i;Ve(t[s])&&Ve(n)?t[s]=Jr(t[s],n):Ve(n)?t[s]=Jr({},n):ce(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&$e(arguments[n],r);return t}const Cg=(e,t,r,{allOwnKeys:n}={})=>($e(t,(i,s)=>{r&&at(i)?e[s]=$o(i,r):e[s]=i},{allOwnKeys:n}),e),Ng=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Pg=(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)},Ig=(e,t,r,n)=>{let i,s,o;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=r!==!1&&_n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kg=(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},Fg=e=>{if(!e)return null;if(ce(e))return e;let t=e.length;if(!Do(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Mg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_n(Uint8Array)),Ug=(e,t)=>{const r=(e&&e[sr]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},Lg=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Vg=vt("HTMLFormElement"),Hg=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),ki=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),qg=vt("RegExp"),No=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};$e(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},zg=e=>{No(e,(t,r)=>{if(at(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(at(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+"'")})}})},Kg=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return ce(e)?n(e):n(String(e).split(t)),r},Wg=()=>{},Jg=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Yg(e){return!!(e&&at(e.append)&&e[Oo]==="FormData"&&e[sr])}const Gg=e=>{const t=new Array(10),r=(n,i)=>{if(Ae(n)){if(t.indexOf(n)>=0)return;if(Re(n))return n;if(!("toJSON"in n)){t[i]=n;const s=ce(n)?[]:{};return $e(n,(o,u)=>{const l=r(o,i+1);!Ee(l)&&(s[u]=l)}),t[i]=void 0,s}}return n};return r(e,0)},Zg=vt("AsyncFunction"),Xg=e=>e&&(Ae(e)||at(e))&&at(e.then)&&at(e.catch),Po=((e,t)=>e?setImmediate:t?((r,n)=>(Vt.addEventListener("message",({source:i,data:s})=>{i===Vt&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Vt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",at(Vt.postMessage)),Qg=typeof queueMicrotask<"u"?queueMicrotask.bind(Vt):typeof process<"u"&&process.nextTick||Po,tm=e=>e!=null&&at(e[sr]),R={isArray:ce,isArrayBuffer:jo,isBuffer:Re,isFormData:Rg,isArrayBufferView:yg,isString:vg,isNumber:Do,isBoolean:bg,isObject:Ae,isPlainObject:Ve,isEmptyObject:wg,isReadableStream:$g,isRequest:Og,isResponse:jg,isHeaders:Dg,isUndefined:Ee,isDate:_g,isFile:Eg,isBlob:Sg,isRegExp:qg,isFunction:at,isStream:Tg,isURLSearchParams:Ag,isTypedArray:Mg,isFileList:xg,forEach:$e,merge:Jr,extend:Cg,trim:Bg,stripBOM:Ng,inherits:Pg,toFlatObject:Ig,kindOf:or,kindOfTest:vt,endsWith:kg,toArray:Fg,forEachEntry:Ug,matchAll:Lg,isHTMLForm:Vg,hasOwnProperty:ki,hasOwnProp:ki,reduceDescriptors:No,freezeMethods:zg,toObjectSet:Kg,toCamelCase:Hg,noop:Wg,toFiniteNumber:Jg,findKey:Bo,global:Vt,isContextDefined:Co,isSpecCompliantForm:Yg,toJSONObject:Gg,isAsyncFn:Zg,isThenable:Xg,setImmediate:Po,asap:Qg,isIterable:tm};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 Io=W.prototype,ko={};["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=>{ko[e]={value:e}});Object.defineProperties(W,ko);Object.defineProperty(Io,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,s)=>{const o=Object.create(Io);return R.toFlatObject(e,o,function(u){return u!==Error.prototype},u=>u!=="isAxiosError"),W.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const em=null;function Yr(e){return R.isPlainObject(e)||R.isArray(e)}function Fo(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Fi(e,t,r){return e?e.concat(t).map(function(n,i){return n=Fo(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function rm(e){return R.isArray(e)&&!e.some(Yr)}const nm=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function ur(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||a,s=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(R.isDate(h))return h.toISOString();if(R.isBoolean(h))return h.toString();if(!u&&R.isBlob(h))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(h)||R.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function a(h,d,g){let b=h;if(h&&!g&&typeof h=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(R.isArray(h)&&rm(h)||(R.isFileList(h)||R.endsWith(d,"[]"))&&(b=R.toArray(h)))return d=Fo(d),b.forEach(function(_,y){!(R.isUndefined(_)||_===null)&&t.append(o===!0?Fi([d],y,s):o===null?d:d+"[]",l(_))}),!1}return Yr(h)?!0:(t.append(Fi(g,d,s),l(h)),!1)}const c=[],f=Object.assign(nm,{defaultVisitor:a,convertValue:l,isVisitable:Yr});function p(h,d){if(!R.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(h),R.forEach(h,function(g,b){(!(R.isUndefined(g)||g===null)&&i.call(t,g,R.isString(b)?b.trim():b,d,f))===!0&&p(g,d?d.concat(b):[b])}),c.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Mi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function En(e,t){this._pairs=[],e&&ur(e,this,t)}const Mo=En.prototype;Mo.append=function(e,t){this._pairs.push([e,t])};Mo.toString=function(e){const t=e?function(r){return e.call(this,r,Mi)}:Mi;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function im(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Uo(e,t,r){if(!t)return e;const n=r&&r.encode||im;R.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=R.isURLSearchParams(t)?t.toString():new En(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let Ui=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 Lo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sm=typeof URLSearchParams<"u"?URLSearchParams:En,om=typeof FormData<"u"?FormData:null,am=typeof Blob<"u"?Blob:null,um={isBrowser:!0,classes:{URLSearchParams:sm,FormData:om,Blob:am},protocols:["http","https","file","blob","url","data"]},Sn=typeof window<"u"&&typeof document<"u",Gr=typeof navigator=="object"&&navigator||void 0,cm=Sn&&(!Gr||["ReactNative","NativeScript","NS"].indexOf(Gr.product)<0),lm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fm=Sn&&window.location.href||"http://localhost",hm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Sn,hasStandardBrowserEnv:cm,hasStandardBrowserWebWorkerEnv:lm,navigator:Gr,origin:fm},Symbol.toStringTag,{value:"Module"})),nt=V(V({},hm),um);function pm(e,t){return ur(e,new nt.classes.URLSearchParams,V({visitor:function(r,n,i,s){return nt.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function dm(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gm(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function Vo(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=r.length;return o=!o&&R.isArray(i)?i.length:o,l?(R.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!R.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&R.isArray(i[o])&&(i[o]=gm(i[o])),!u)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,i)=>{t(dm(n),i,r,0)}),r}return null}function mm(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 Oe={transitional:Lo,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(Vo(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 s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pm(e,this.formSerializer).toString();if((s=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ur(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),mm(e)):e}],transformResponse:[function(e){const t=this.transitional||Oe.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(s){if(i)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.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=>{Oe.headers[e]={}});const ym=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"]),vm=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
52
52
|
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&ym[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Li=Symbol("internals");function ge(e){return e&&String(e).trim().toLowerCase()}function He(e){return e===!1||e==null?e:R.isArray(e)?e.map(He):String(e)}function bm(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 wm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Tr(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 _m(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Em(e,t){const r=R.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let ut=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(u,l,a){const c=ge(l);if(!c)throw new Error("header name must be a non-empty string");const f=R.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||l]=He(u))}const o=(u,l)=>R.forEach(u,(a,c)=>s(a,c,l));if(R.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(R.isString(t)&&(t=t.trim())&&!wm(t))o(vm(t),r);else if(R.isObject(t)&&R.isIterable(t)){let u={},l,a;for(const c of t){if(!R.isArray(c))throw TypeError("Object iterator must return a key-value pair");u[a=c[0]]=(l=u[a])?R.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(u,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=ge(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return bm(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=ge(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Tr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=ge(o),o){const u=R.findKey(n,o);u&&(!r||Tr(n,n[u],u,r))&&(delete n[u],i=!0)}}return R.isArray(t)?t.forEach(s):s(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!t||Tr(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return R.forEach(this,(i,s)=>{const o=R.findKey(n,s);if(o){r[o]=He(i),delete r[s];return}const u=t?_m(s):String(s).trim();u!==s&&delete r[s],r[u]=He(i),n[u]=!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(`
|
|
53
53
|
`)}getSetCookie(){return this.get("set-cookie")||[]}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[Li]=this[Li]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=ge(s);r[o]||(Em(n,s),r[o]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}};ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ut.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});R.freezeMethods(ut);function Rr(e,t){const r=this||Oe,n=t||r,i=ut.from(n.headers);let s=n.data;return R.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Ho(e){return!!(e&&e.__CANCEL__)}function le(e,t,r){W.call(this,e!=null?e:"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}R.inherits(le,W,{__CANCEL__:!0});function qo(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 Sm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xm(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),a=n[s];o||(o=l),r[i]=u,n[i]=l;let c=s,f=0;for(;c!==i;)f+=r[c++],c=c%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const p=a&&l-a;return p?Math.round(f*1e3/p):void 0}}function Tm(e,t){let r=0,n=1e3/t,i,s;const o=(u,l=Date.now())=>{r=l,i=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{const l=Date.now(),a=l-r;a>=n?o(u,l):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},n-a)))},()=>i&&o(i)]}const Xe=(e,t,r=3)=>{let n=0;const i=xm(50,250);return Tm(s=>{const o=s.loaded,u=s.lengthComputable?s.total:void 0,l=o-n,a=i(l),c=o<=u;n=o;const f={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:a||void 0,estimated:a&&u&&c?(u-o)/a:void 0,event:s,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},Vi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Hi=e=>(...t)=>R.asap(()=>e(...t)),Rm=nt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,nt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(nt.origin),nt.navigator&&/(msie|trident)/i.test(nt.navigator.userAgent)):()=>!0,Am=nt.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];R.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),R.isString(n)&&o.push("path="+n),R.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.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 $m(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Om(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zo(e,t,r){let n=!$m(t);return e&&(n||r==!1)?Om(e,t):t}const qi=e=>e instanceof ut?V({},e):e;function Kt(e,t){t=t||{};const r={};function n(a,c,f,p){return R.isPlainObject(a)&&R.isPlainObject(c)?R.merge.call({caseless:p},a,c):R.isPlainObject(c)?R.merge({},c):R.isArray(c)?c.slice():c}function i(a,c,f,p){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a,f,p)}else return n(a,c,f,p)}function s(a,c){if(!R.isUndefined(c))return n(void 0,c)}function o(a,c){if(R.isUndefined(c)){if(!R.isUndefined(a))return n(void 0,a)}else return n(void 0,c)}function u(a,c,f){if(f in t)return n(a,c);if(f in e)return n(void 0,a)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(a,c,f)=>i(qi(a),qi(c),f,!0)};return R.forEach(Object.keys(V(V({},e),t)),function(a){const c=l[a]||i,f=c(e[a],t[a],a);R.isUndefined(f)&&c!==u||(r[a]=f)}),r}const Ko=e=>{const t=Kt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:u}=t;t.headers=o=ut.from(o),t.url=Uo(zo(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let l;if(R.isFormData(r)){if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[a,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([a||"multipart/form-data",...c].join("; "))}}if(nt.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(t)),n||n!==!1&&Rm(t.url))){const a=i&&s&&Am.read(s);a&&o.set(i,a)}return t},jm=typeof XMLHttpRequest<"u",Dm=jm&&function(e){return new Promise(function(t,r){const n=Ko(e);let i=n.data;const s=ut.from(n.headers).normalize();let{responseType:o,onUploadProgress:u,onDownloadProgress:l}=n,a,c,f,p,h;function d(){p&&p(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function b(){if(!g)return;const y=ut.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:y,config:e,request:g};qo(function(w){t(w),d()},function(w){r(w),d()},v),g=null}"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(b)},g.onabort=function(){g&&(r(new W("Request aborted",W.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||Lo;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new W(y,v.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,g)),g=null},i===void 0&&s.setContentType(null),"setRequestHeader"in g&&R.forEach(s.toJSON(),function(y,v){g.setRequestHeader(v,y)}),R.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),o&&o!=="json"&&(g.responseType=n.responseType),l&&([f,h]=Xe(l,!0),g.addEventListener("progress",f)),u&&g.upload&&([c,p]=Xe(u),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(a=y=>{g&&(r(!y||y.type?new le(null,e,g):y),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const _=Sm(n.url);if(_&&nt.protocols.indexOf(_)===-1){r(new W("Unsupported protocol "+_+":",W.ERR_BAD_REQUEST,e));return}g.send(i||null)})},Bm=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const s=function(a){if(!i){i=!0,u();const c=a instanceof Error?a:this.reason;n.abort(c instanceof W?c:new le(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,s(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const u=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(s):a.removeEventListener("abort",s)}),e=null)};e.forEach(a=>a.addEventListener("abort",s));const{signal:l}=n;return l.unsubscribe=()=>R.asap(u),l}},Cm=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},Nm=function(e,t){return gr(this,null,function*(){try{for(var r=An(Pm(e)),n,i,s;n=!(i=yield new kt(r.next())).done;n=!1){const o=i.value;yield*mr(Cm(o,t))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new kt(i.call(r)))}finally{if(s)throw s[0]}}})},Pm=function(e){return gr(this,null,function*(){if(e[Symbol.asyncIterator]){yield*mr(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new kt(t.read());if(r)break;yield n}}finally{yield new kt(t.cancel())}})},zi=(e,t,r,n)=>{const i=Nm(e,t);let s=0,o,u=a=>{o||(o=!0,n&&n(a))};return new ReadableStream({pull(a){return k(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){u(),a.close();return}let p=f.byteLength;if(r){let h=s+=p;r(h)}a.enqueue(new Uint8Array(f))}catch(c){throw u(c),c}})},cancel(a){return u(a),i.return()}},{highWaterMark:2})},cr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Wo=cr&&typeof ReadableStream=="function",Im=cr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>k(null,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Jo=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},km=Wo&&Jo(()=>{let e=!1;const t=new Request(nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ki=64*1024,Zr=Wo&&Jo(()=>R.isReadableStream(new Response("").body)),Qe={stream:Zr&&(e=>e.body)};cr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qe[t]&&(Qe[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 Fm=e=>k(null,null,function*(){if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(yield new Request(nt.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 Im(e)).byteLength}),Mm=(e,t)=>k(null,null,function*(){const r=R.toFiniteNumber(e.getContentLength());return r!=null?r:Fm(t)}),Um=cr&&(e=>k(null,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:u,onUploadProgress:l,responseType:a,headers:c,withCredentials:f="same-origin",fetchOptions:p}=Ko(e);a=a?(a+"").toLowerCase():"text";let h=Bm([i,s&&s.toAbortSignal()],o),d;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(l&&km&&r!=="get"&&r!=="head"&&(b=yield Mm(c,n))!==0){let E=new Request(t,{method:"POST",body:n,duplex:"half"}),m;if(R.isFormData(n)&&(m=E.headers.get("content-type"))&&c.setContentType(m),E.body){const[x,A]=Vi(b,Xe(Hi(l)));n=zi(E.body,Ki,x,A)}}R.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;d=new Request(t,et(V({},p),{signal:h,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:_?f:void 0}));let y=yield fetch(d,p);const v=Zr&&(a==="stream"||a==="response");if(Zr&&(u||v&&g)){const E={};["status","statusText","headers"].forEach(U=>{E[U]=y[U]});const m=R.toFiniteNumber(y.headers.get("content-length")),[x,A]=u&&Vi(m,Xe(Hi(u),!0))||[];y=new Response(zi(y.body,Ki,x,()=>{A&&A(),g&&g()}),E)}a=a||"text";let w=yield Qe[R.findKey(Qe,a)||"text"](y,e);return!v&&g&&g(),yield new Promise((E,m)=>{qo(E,m,{data:w,headers:ut.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(_){throw g&&g(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,d),{cause:_.cause||_}):W.from(_,_&&_.code,e,d)}})),Xr={http:em,xhr:Dm,fetch:Um};R.forEach(Xr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Wi=e=>`- ${e}`,Lm=e=>R.isFunction(e)||e===null||e===!1,Yo={getAdapter:e=>{e=R.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let s=0;s<t;s++){r=e[s];let o;if(n=r,!Lm(r)&&(n=Xr[(o=String(r)).toLowerCase()],n===void 0))throw new W(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
|
|
54
54
|
`+s.map(Wi).join(`
|
|
55
55
|
`):" "+Wi(s[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Xr};function Ar(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new le(null,e)}function Ji(e){return Ar(e),e.headers=ut.from(e.headers),e.data=Rr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yo.getAdapter(e.adapter||Oe.adapter)(e).then(function(t){return Ar(e),t.data=Rr.call(e,e.transformResponse,t),t.headers=ut.from(t.headers),t},function(t){return Ho(t)||(Ar(e),t&&t.response&&(t.response.data=Rr.call(e,e.transformResponse,t.response),t.response.headers=ut.from(t.response.headers))),Promise.reject(t)})}const Go="1.11.0",lr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Yi={};lr.transitional=function(e,t,r){function n(i,s){return"[Axios v"+Go+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new W(n(s," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!Yi[s]&&(Yi[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};lr.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Vm(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 s=n[i],o=t[s];if(o){const u=e[s],l=u===void 0||o(u,s,e);if(l!==!0)throw new W("option "+s+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}}const qe={assertOptions:Vm,validators:lr},bt=qe.validators;let Ht=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ui,response:new Ui}}request(t,r){return k(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 s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
56
|
-
`+s):n.stack=s}catch(o){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Kt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&qe.assertOptions(n,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:qe.assertOptions(i,{encode:bt.function,serialize:bt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),qe.assertOptions(r,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&R.merge(s.common,s[r.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=ut.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(l=l&&d.synchronous,u.unshift(d.fulfilled,d.rejected))});const a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});let c,f=0,p;if(!l){const d=[Ji.bind(this),void 0];for(d.unshift(...u),d.push(...a),p=d.length,c=Promise.resolve(r);f<p;)c=c.then(d[f++],d[f++]);return c}p=u.length;let h=r;for(f=0;f<p;){const d=u[f++],g=u[f++];try{h=d(h)}catch(b){g.call(this,b);break}}try{c=Ji.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=a.length;f<p;)c=c.then(a[f++],a[f++]);return c}getUri(t){t=Kt(this.defaults,t);const r=zo(t.baseURL,t.url,t.allowAbsoluteUrls);return Uo(r,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(e){Ht.prototype[e]=function(t,r){return this.request(Kt(r||{},{method:e,url:t,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(Kt(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ht.prototype[e]=t(),Ht.prototype[e+"Form"]=t(!0)});let Hm=class Zo{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 s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new le(i,s,o),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 Zo(function(r){t=r}),cancel:t}}};function qm(e){return function(t){return e.apply(null,t)}}function zm(e){return R.isObject(e)&&e.isAxiosError===!0}const Qr={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(Qr).forEach(([e,t])=>{Qr[t]=e});function Xo(e){const t=new Ht(e),r=$o(Ht.prototype.request,t);return R.extend(r,Ht.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Xo(Kt(e,n))},r}const X=Xo(Oe);X.Axios=Ht;X.CanceledError=le;X.CancelToken=Hm;X.isCancel=Ho;X.VERSION=Go;X.toFormData=ur;X.AxiosError=W;X.Cancel=X.CanceledError;X.all=function(e){return Promise.all(e)};X.spread=qm;X.isAxiosError=zm;X.mergeConfig=Kt;X.AxiosHeaders=ut;X.formToJSON=e=>Vo(R.isHTMLForm(e)?new FormData(e):e);X.getAdapter=Yo.getAdapter;X.HttpStatusCode=Qr;X.default=X;const{Axios:Ry,AxiosError:Ay,CanceledError:$y,isCancel:Oy,CancelToken:jy,VERSION:Dy,all:By,Cancel:Cy,isAxiosError:Ny,spread:Py,toFormData:Iy,AxiosHeaders:ky,HttpStatusCode:Fy,formToJSON:My,getAdapter:Uy,mergeConfig:Ly}=X,Km={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Wm=["put","post","patch"],Gi="Local-Request-Id",Jm=100,Ym=300;let Gm=class{constructor(e={}){ft(this,"axios"),ft(this,"settings"),ft(this,"records",{}),ft(this,"isLoading",!1),ft(this,"stopSkipWarn"),ft(this,"showLoading"),ft(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=xr(e,["settings","query"]);this.axios=X.create(me({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=io(this.openLoading.bind(this),Jm),this.showError=td(this._showError.bind(this),Ym,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=me(this.settings,e.settings||{});const t=xr(e,["settings","query"]);this.axios.defaults=me(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":Km[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[Gi]=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:s,skipWarn:o}=e,{name:u="skipWarn"}=o||{};let{data:l,params:a={},method:c="get"}=t;const f=n?{[u]:!0}:{};return Wm.includes(c.toLowerCase())?(l=Object.assign(l||{},f),l=s!=="json"||!this.isJsonType(r)?this.toFormData(l,s):l,a=V({},i)):s==="form"?a=V(V(V({},l||{}),i),f):(l&&(s!=="json"||!this.isJsonType(r))&&(l=this.toFormData(l,s)),a=V(V({},i),f)),{data:l,params:a}}createUrl(e){let{url:t,params:r}=e;if(t){let n=Ge(t)?new URL(t).origin:"";const i=n?t.replace(n,""):t;try{const s=Xd(i,{encode:encodeURIComponent});return n+s(r||{})}catch(s){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 s=(i=t==null?void 0:t.response)==null?void 0:i.data,o=(s==null?void 0:s.message)||(s==null?void 0:s.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(o,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=me({},this.settings,e.settings||{}),n=e.query||{},i=xr(e,["settings","query"]),s=Wd(!1),o=X.CancelToken.source();this.records[s]={settings:r,config:i,source:o};const u=this.createUrl(i),l=this.createHeaders(s,r,i),{data:a,params:c}=this.createSendData(r,i,l,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(et(V({cancelToken:o.token},i),{url:u,headers:l,data:a,params:c})).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[s],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(s=>{const o=(s.config.headers||{})[Gi],u=this.records[o];if(!u)return s;const{data:l}=s;if(!l||typeof l!="object")return s;if((l==null?void 0:l.code)===t){n&&n(s);const a=new Promise(r).then(()=>this.send(et(V({},u.config),{settings:u.settings}),!0));a.catch(c=>c).finally(()=>{i&&i()}),s.promise=a}return s})}};function xn(e={}){const t=new Gm(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(r,et(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const tn=xn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),en=typeof window<"u";function Zm(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}class Qo{constructor(t={}){ft(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ft(this,"caches",{}),ft(this,"types"),this.types={local:en?window.localStorage:this.caches,session:en?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:s,prefix:o}=V(V({},this.options),n),u=Date.now(),l=o+t,a=this.types[i]||this.caches,c={value:r,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=i+t,o=this.types[n]||this.caches;let u;if(o===this.caches)u=o[s];else{const f=o.getItem(s);if(f)try{u=JSON.parse(f)}catch(p){console.warn("[Storage] JSON.parse",p)}}if(!u)return null;const{value:l,timestamp:a,expired:c}=u;return c>0&&a+c<Date.now()?(this.remove(t,r),null):l}remove(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=V(V({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const $r=new Qo;function ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ze={exports:{}},Xm=ze.exports,Zi;function Qm(){return Zi||(Zi=1,(function(e,t){(function(r,n){n(t,e)})(Xm,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(a){try{delete window[a]}catch(c){window[a]=void 0}}function u(a){var c=document.getElementById(a);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,p=c.timeout||i.timeout,h=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,b){var _=c.jsonpCallbackFunction||s(),y=h+"_"+_;window[_]=function(w){g({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),u(y),o(_)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+h+"="+_),c.charset&&v.setAttribute("charset",c.charset),c.nonce&&v.setAttribute("nonce",c.nonce),c.referrerPolicy&&v.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+a+" timed out")),o(_),u(y),window[_]=function(){o(_)}},p),v.onerror=function(){b(new Error("JSONP request to "+a+" failed")),o(_),u(y),d&&clearTimeout(d)}})}n.exports=l})})(ze,ze.exports)),ze.exports}var t1=Qm();const e1=ta(t1);function r1(e){if(en){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function n1(e=""){const t=e.match(_o);return t?t[0]:""}function ea(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 rn(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function ra(e,t){t=typeof t=="string"?rn(t):t;const r=e.split("?")[0],n=rn(e),i=Object.assign({},n,t),s=ea(i);return s?[r,s].join("?"):e}const Ke=Object.freeze(Object.defineProperty({__proto__:null,append:ra,getCurrentHost:r1,getHost:n1,parse:rn,stringify:ea},Symbol.toStringTag,{value:"Module"}));function na(r){return k(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Xp(e)(n||{}));const i=ra(e,n);return yield(yield e1(i,t)).json()})}var Or,Xi;function i1(){if(Xi)return Or;Xi=1,Or=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&e(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?t:r;l(u,s),u.onload||t(u,s),o.appendChild(u)};function e(n,i){for(var s in i)n.setAttribute(s,i[s])}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 Or}var s1=i1();const o1=ta(s1);function Qi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;o1(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const ts={debug:-1,log:0,info:0,warn:1,error:2},a1=function(e,t,r,n){return function(...i){if(t&&ts[t]<=ts[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,u1(i,r))}};function u1(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function c1(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 l1={level:"warn",bizName:"*"};class f1{constructor(t){ft(this,"config"),ft(this,"options"),this.options=V(V({},l1),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=c1(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return a1(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 h1(e){return new f1(e)}const ie=h1({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Fe(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 p1={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 nn(e,t){function r(i,s,o){if(!(typeof document>"u")){o=Fe({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},u=0;u<s.length;u++){var l=s[u].split("="),a=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(a,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Fe({},s,{expires:-1}))},withAttributes:function(i){return nn(this.converter,Fe({},this.attributes,i))},withConverter:function(i){return nn(Fe({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Tn=nn(p1,{path:"/"});function d1(e,t,r){Tn.set(e,t,r)}function g1(e){return Tn.get(e)}function m1(e,t){Tn.remove(e,t)}const jr=Object.freeze(Object.defineProperty({__proto__:null,get:g1,remove:m1,set:d1},Symbol.toStringTag,{value:"Module"}));/**!
|
|
56
|
+
`+s):n.stack=s}catch(o){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Kt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&qe.assertOptions(n,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:qe.assertOptions(i,{encode:bt.function,serialize:bt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),qe.assertOptions(r,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&R.merge(s.common,s[r.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=ut.concat(o,s);const u=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(l=l&&d.synchronous,u.unshift(d.fulfilled,d.rejected))});const a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});let c,f=0,p;if(!l){const d=[Ji.bind(this),void 0];for(d.unshift(...u),d.push(...a),p=d.length,c=Promise.resolve(r);f<p;)c=c.then(d[f++],d[f++]);return c}p=u.length;let h=r;for(f=0;f<p;){const d=u[f++],g=u[f++];try{h=d(h)}catch(b){g.call(this,b);break}}try{c=Ji.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=a.length;f<p;)c=c.then(a[f++],a[f++]);return c}getUri(t){t=Kt(this.defaults,t);const r=zo(t.baseURL,t.url,t.allowAbsoluteUrls);return Uo(r,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(e){Ht.prototype[e]=function(t,r){return this.request(Kt(r||{},{method:e,url:t,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(Kt(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ht.prototype[e]=t(),Ht.prototype[e+"Form"]=t(!0)});let Hm=class Zo{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 s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(u=>{n.subscribe(u),s=u}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new le(i,s,o),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 Zo(function(r){t=r}),cancel:t}}};function qm(e){return function(t){return e.apply(null,t)}}function zm(e){return R.isObject(e)&&e.isAxiosError===!0}const Qr={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(Qr).forEach(([e,t])=>{Qr[t]=e});function Xo(e){const t=new Ht(e),r=$o(Ht.prototype.request,t);return R.extend(r,Ht.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Xo(Kt(e,n))},r}const X=Xo(Oe);X.Axios=Ht;X.CanceledError=le;X.CancelToken=Hm;X.isCancel=Ho;X.VERSION=Go;X.toFormData=ur;X.AxiosError=W;X.Cancel=X.CanceledError;X.all=function(e){return Promise.all(e)};X.spread=qm;X.isAxiosError=zm;X.mergeConfig=Kt;X.AxiosHeaders=ut;X.formToJSON=e=>Vo(R.isHTMLForm(e)?new FormData(e):e);X.getAdapter=Yo.getAdapter;X.HttpStatusCode=Qr;X.default=X;const{Axios:Ry,AxiosError:Ay,CanceledError:$y,isCancel:Oy,CancelToken:jy,VERSION:Dy,all:By,Cancel:Cy,isAxiosError:Ny,spread:Py,toFormData:Iy,AxiosHeaders:ky,HttpStatusCode:Fy,formToJSON:My,getAdapter:Uy,mergeConfig:Ly}=X,Km={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Wm=["put","post","patch"],Gi="Local-Request-Id",Jm=100,Ym=300;let Gm=class{constructor(e={}){ft(this,"axios"),ft(this,"settings"),ft(this,"records",{}),ft(this,"isLoading",!1),ft(this,"stopSkipWarn"),ft(this,"showLoading"),ft(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=xr(e,["settings","query"]);this.axios=X.create(me({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=io(this.openLoading.bind(this),Jm),this.showError=td(this._showError.bind(this),Ym,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=me(this.settings,e.settings||{});const t=xr(e,["settings","query"]);this.axios.defaults=me(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":Km[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[Gi]=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:s,skipWarn:o}=e,{name:u="skipWarn"}=o||{};let{data:l,params:a={},method:c="get"}=t;const f=n?{[u]:!0}:{};return Wm.includes(c.toLowerCase())?(l=Object.assign(l||{},f),l=s!=="json"||!this.isJsonType(r)?this.toFormData(l,s):l,a=V({},i)):s==="form"?a=V(V(V({},l||{}),i),f):(l&&(s!=="json"||!this.isJsonType(r))&&(l=this.toFormData(l,s)),a=V(V({},i),f)),{data:l,params:a}}createUrl(e){let{url:t,params:r}=e;if(t){let n=Ge(t)?new URL(t).origin:"";const i=n?t.replace(n,""):t;try{const s=Xd(i,{encode:encodeURIComponent});return n+s(r||{})}catch(s){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 s=(i=t==null?void 0:t.response)==null?void 0:i.data,o=(s==null?void 0:s.message)||(s==null?void 0:s.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(o,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=me({},this.settings,e.settings||{}),n=e.query||{},i=xr(e,["settings","query"]),s=Wd(!1),o=X.CancelToken.source();this.records[s]={settings:r,config:i,source:o};const u=this.createUrl(i),l=this.createHeaders(s,r,i),{data:a,params:c}=this.createSendData(r,i,l,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(et(V({cancelToken:o.token},i),{url:u,headers:l,data:a,params:c})).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[s],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(s=>{const o=(s.config.headers||{})[Gi],u=this.records[o];if(!u)return s;const{data:l}=s;if(!l||typeof l!="object")return s;if((l==null?void 0:l.code)===t){n&&n(s);const a=new Promise(r).then(()=>this.send(et(V({},u.config),{settings:u.settings}),!0));a.catch(c=>c).finally(()=>{i&&i()}),s.promise=a}return s})}};function xn(e={}){const t=new Gm(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(r,et(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const tn=xn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),en=typeof window<"u";function Zm(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}class Qo{constructor(t={}){ft(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ft(this,"caches",{}),ft(this,"types"),this.types={local:en?window.localStorage:this.caches,session:en?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:s,prefix:o}=V(V({},this.options),n),u=Date.now(),l=o+t,a=this.types[i]||this.caches,c={value:r,timestamp:u,expired:s};a===this.caches?a[l]=c:a.setItem(l,JSON.stringify(c))}get(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=i+t,o=this.types[n]||this.caches;let u;if(o===this.caches)u=o[s];else{const f=o.getItem(s);if(f)try{u=JSON.parse(f)}catch(p){console.warn("[Storage] JSON.parse",p)}}if(!u)return null;const{value:l,timestamp:a,expired:c}=u;return c>0&&a+c<Date.now()?(this.remove(t,r),null):l}remove(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=V(V({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const $r=new Qo;function ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ze={exports:{}},Xm=ze.exports,Zi;function Qm(){return Zi||(Zi=1,(function(e,t){(function(r,n){n(t,e)})(Xm,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(a){try{delete window[a]}catch(c){window[a]=void 0}}function u(a){var c=document.getElementById(a);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=a,p=c.timeout||i.timeout,h=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(g,b){var _=c.jsonpCallbackFunction||s(),y=h+"_"+_;window[_]=function(w){g({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),u(y),o(_)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+h+"="+_),c.charset&&v.setAttribute("charset",c.charset),c.nonce&&v.setAttribute("nonce",c.nonce),c.referrerPolicy&&v.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+a+" timed out")),o(_),u(y),window[_]=function(){o(_)}},p),v.onerror=function(){b(new Error("JSONP request to "+a+" failed")),o(_),u(y),d&&clearTimeout(d)}})}n.exports=l})})(ze,ze.exports)),ze.exports}var t0=Qm();const e0=ta(t0);function r0(e){if(en){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function n0(e=""){const t=e.match(_o);return t?t[0]:""}function ea(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 rn(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function ra(e,t){t=typeof t=="string"?rn(t):t;const r=e.split("?")[0],n=rn(e),i=Object.assign({},n,t),s=ea(i);return s?[r,s].join("?"):e}const Ke=Object.freeze(Object.defineProperty({__proto__:null,append:ra,getCurrentHost:r0,getHost:n0,parse:rn,stringify:ea},Symbol.toStringTag,{value:"Module"}));function na(r){return k(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Xp(e)(n||{}));const i=ra(e,n);return yield(yield e0(i,t)).json()})}var Or,Xi;function i0(){if(Xi)return Or;Xi=1,Or=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},u.type=i.type||"text/javascript",u.charset=i.charset||"utf8",u.async="async"in i?!!i.async:!0,u.src=n,i.attrs&&e(u,i.attrs),i.text&&(u.text=""+i.text);var l="onload"in u?t:r;l(u,s),u.onload||t(u,s),o.appendChild(u)};function e(n,i){for(var s in i)n.setAttribute(s,i[s])}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 Or}var s0=i0();const o0=ta(s0);function Qi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;o0(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const ts={debug:-1,log:0,info:0,warn:1,error:2},a0=function(e,t,r,n){return function(...i){if(t&&ts[t]<=ts[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,u0(i,r))}};function u0(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function c0(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 l0={level:"warn",bizName:"*"};class f0{constructor(t){ft(this,"config"),ft(this,"options"),this.options=V(V({},l0),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=c0(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return a0(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 h0(e){return new f0(e)}const ie=h0({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Fe(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 p0={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 nn(e,t){function r(i,s,o){if(!(typeof document>"u")){o=Fe({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var l in o)o[l]&&(u+="; "+l,o[l]!==!0&&(u+="="+o[l].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},u=0;u<s.length;u++){var l=s[u].split("="),a=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(a,c),i===c)break}catch(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Fe({},s,{expires:-1}))},withAttributes:function(i){return nn(this.converter,Fe({},this.attributes,i))},withConverter:function(i){return nn(Fe({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Tn=nn(p0,{path:"/"});function d0(e,t,r){Tn.set(e,t,r)}function g0(e){return Tn.get(e)}function m0(e,t){Tn.remove(e,t)}const jr=Object.freeze(Object.defineProperty({__proto__:null,get:g0,remove:m0,set:d0},Symbol.toStringTag,{value:"Module"}));/**!
|
|
57
57
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
58
58
|
* @name @vtj/renderer
|
|
59
59
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
60
|
-
* @version 0.13.
|
|
60
|
+
* @version 0.13.29
|
|
61
61
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
62
|
-
*/const Dr="0.13.
|
|
63
|
-
`),c=r(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",e),e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${t}]`)||n(f)?c:`${f}[${t}]`})}}function ia(e){return Ct(e)?e:JSON.stringify(e)}function pr(e,t,r,n=!1){const i=e.CSSStyleSheet,s=n?`data-v-${t}`:t,o=n?
|
|
62
|
+
*/const Dr="0.13.29";var tt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(tt||{});const es=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],y0=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],v0={String,Number,Boolean,Array,Object,Function,Date},We="VtjPage",Br="VtjHomepage",b0="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,svg".split(","),w0="component,slot".split(",");function Me(e,t){return e.map(r=>Ge(r)||r.startsWith("/")?r:`${t}${r}`)}function fr(e){return/\.css$/.test(e)}function hr(e){return/\.js$/.test(e)}function _0(e){return/\.json$/.test(e)}function E0(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function S0(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:g,localeLibrary:b})=>{p==null||p.forEach(_=>{hr(_)&&i.push(E0(_,r)),fr(_)&&s.push(_)}),d&&(u.push(d),l[d]=Me(p||[],t),b&&(a[d]=b)),h&&o.push(h),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:Me(i,t),css:Me(s,t),materials:Me(o,t),libraryExports:u,materialExports:Yd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function x0(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function T0(e=[]){const t=e.filter(n=>fr(n)),r=e.filter(n=>hr(n));return{css:t,js:r}}function R0(e,t){const r=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const _=a.indexOf("*/",f+2);if(_!==-1){f=_+2;continue}}if(a[f]==="@"){const _=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const y=a.substring(_,f).trim(),v=y.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(_,f+1)}),f++;else if(a[f]==="{"){const w=f+1;let E=1;for(f++;f<a.length&&E>0;)a[f]==="{"?E++:a[f]==="}"&&E--,f++;const m=a.substring(_,f),x=a.substring(w,f-1);c.push({type:v?"keyframes":"at-rule",rule:y,content:m,inner:x})}continue}const p=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const h=a.substring(p,f).trim();if(!h){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const b=a.substring(d,f-1);c.push({type:"rule",selector:h,content:b.trim()})}return c},n=a=>{const c=a.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=a=>a.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,p)=>{const h=f.trim(),d=p.trim();return h?`${h}[${t}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${t}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,p,h=""]=f,d=p.trim();return d?`${d}[${t}]${h}`:c}return`${c}[${t}]`},o=a=>i(a).split(",").map(c=>s(c)).filter(c=>c.trim()).join(", "),u=a=>a.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const p=r(c.inner),h=u(p);return`${c.rule} { ${h} }`}catch(p){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=o(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=a=>a.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const a=e.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
|
|
63
|
+
`),c=r(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",e),e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${t}]`)||n(f)?c:`${f}[${t}]`})}}function ia(e){return Ct(e)?e:JSON.stringify(e)}function pr(e,t,r,n=!1){const i=e.CSSStyleSheet,s=n?`data-v-${t}`:t,o=n?R0(r,s):r;if(i.prototype.replaceSync){const u=new i;u.id=t,u.replaceSync(o);const l=e.document,a=l.adoptedStyleSheets,c=Array.from(a).filter(f=>f.id!==t);l.adoptedStyleSheets=[...c,u]}else{const u=e.document;let l=u.getElementById(t);l?l.innerHTML=o:(l=u.createElement("style"),l.id=t,l.innerHTML=o,u.head.appendChild(l))}}function A0(e,t){return k(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&pr(window,e,r)})}function sa(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function oa(n,i){return k(this,arguments,function*(e,t,r=window){const s=r.document,o=r.document.head;let u=r[t];return u?u.default||u:new Promise((l,a)=>{for(const c of e){const f=s.createElement("script");f.src=c,f.onload=()=>{u=r[t],u?l(u.default||u):a(null)},f.onerror=p=>{a(p)},o.appendChild(f)}})})}function $0(e){return zt(e)&&Object.getOwnPropertyNames(e.prototype||{}).length===0||zt(e==null?void 0:e.install)}function O0(e){return w0.includes(e)}function j0(e){return b0.includes(e)}function Se(e=window){const t=window==null?void 0:window.Mock;if(t)return t;const r=e==null?void 0:e.Mock;if(r&&window)return window.Mock=r,r}function xe(e,t,r=!1,n=!1,i=!1){var s;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let u=(e.value||"").trim();i||(u=u.replace(/this(\W|$)/g,(a,c)=>`__self${c}`)),u=o.join(`
|
|
64
64
|
`)+u;const l=i?`
|
|
65
65
|
${u}
|
|
66
|
-
`:`with(${r?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(t)}catch(o){if(ie.error("parseExpression.error",o,e,(s=t==null?void 0:t.__self)!=null?s:t),n)throw o}}function pt(e,t,r=!1,n=!1,i=!1){var o;const s=xe(e,t,r,n,i);if(typeof s!="function"&&(ie.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 s}function mt(e){return e&&e.type==="JSExpression"}function dt(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const D1={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},B1=Symbol("access");class aa{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",tt.Raw);z(this,"interceptResponse",!0);this.options=Object.assign({},D1,t),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode!==tt.Design&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&($r.save(r,t,{type:"local",prefix:n}),i&&jr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,$r.remove(t,{type:"local",prefix:r}),n&&jr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):Ii(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Ii(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access=this,t.provide(B1,this)}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>Pi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?Pi(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=$r.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!jr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===We){const r=t.params.id;return r&&this.can(r)}return t.meta.__vtj__?this.can(t.meta.__vtj__):!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return k(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),zt(i)?(i(),r(!1)):Ct(i)?r(i):r(!1)}}r(!1),yield Ze(0),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return t.status===r||((i=t.data)==null?void 0:i[n])===r}showUnauthorizedAlert(t){return k(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return k(this,null,function*(){var n;const{alert:r}=this.options;return r?(yield Ze(150),yield(n=r(t,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!1)):(window.alert(t),!1)})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>k(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>k(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function C1(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=e;let l=null;return{request:xn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{t&&t(a||"未知错误")},showLoading:()=>{l&&l.close(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:na,notify:t,loading:r,useTitle:o,alert:u,startupComponent:i,access:s?new aa(V({alert:u},s)):void 0}}function N1(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,et(V({},e.jsonpOptions),{query:i}));{const i=e.headers?xe(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:et(V({},e.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(me(s,u||{},{data:o})))}}function P1(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function I1(e=[],t=[],r){const n={};for(const i of e)n[i.id]=N1(i,r);for(const i of t)n[i.id]=P1(i,r);return n}function k1(){return k(this,arguments,function*(e=[],t=window){const r=Se(t);r&&(ua(t),e.forEach(n=>M1(r,n)))})}function F1(e,t=window){const r=dt(e.mockTemplate)&&e.mockTemplate.value?pt(e.mockTemplate,{},!0):void 0,n=Se(t);return(...i)=>k(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){ie.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function M1(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n)try{const i=Ge(r)?new URL(r).pathname:r,s=wn(`(.*)${i}(.*)`),o=tg(i,{decode:decodeURIComponent}),u=xe(n,{},!0);e.mock(s,l=>{var h;const a=Ke.parse(l.url)||{},c=l.body instanceof FormData?Zm(l.body):l.body,f=Ge(l.url)?new URL(l.url).pathname:l.url.split("?")[0],p=(h=o(f))==null?void 0:h.params;Object.assign(l,{data:c,params:p,query:a});try{return e.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ua(e=window){const t=Se(e);t&&(t._mocked={})}class U1{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=tr){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&&es.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){es.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===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return pt({type:i,value:s},this)}else return pt(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return xe({type:i,value:s},this)}else return xe(t,this)}__ref(t=null,r){if(this.__mode!==tt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>k(this,null,function*(){var s,o;yield Ze(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.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,tt.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 s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(t={}){const r=V(V({},this.context),t),n=et(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function sn(e){var f,p;const{Vue:t=tr,mode:r=tt.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,u=t.computed(()=>e.dsl),l={$components:n,$libs:i,$apis:s},a=new U1({mode:r,dsl:u.value,attrs:l}),c=t.defineComponent(V({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:V({},V1((f=u.value.props)!=null?f:[],a)),setup(h){var v,w,E,m;a.$props=h,a.props=h,u.value.id&&pr(e.window||window,u.value.id,u.value.css||"",!0),a.state=H1(t,(v=u.value.state)!=null?v:{},a);const d=q1(t,(w=u.value.computed)!=null?w:{},a),g=z1((E=u.value.methods)!=null?E:{},a),b=K1(t,u.value.inject,a);for(const[x,A]of Object.entries(b||{}))b[x]=t.inject(x,A);const _=W1(u.value.dataSources||{},a),y=V(V(V(V({},b),d),g),_);return a.setup(y,t),J1(t,(m=u.value.watch)!=null?m:[],a),V(V({vtj:a,state:a.state},d),g)},emits:L1(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(!u.value.nodes)return null;const h=u.value.nodes||[];return h.length===1?oe(h[0],a,t,o,h):h.map(d=>oe(d,a,t,o,h))}},Y1((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:t.markRaw(c),context:a}}function L1(e=[]){return e.map(t=>Ct(t)?t:t.name)}function V1(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>v1[i]):void 0;return e.map(n=>Ct(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:mt(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 H1(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return mt(s)?s=r.__parseExpression(s):dt(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function q1(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function z1(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function K1(e,t=[],r){return t.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=mt(o)?r.__parseExpression(o)||s:o!=null?o:s,l=mt(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=e.inject(u,l),n},{})}function W1(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=F1(i);else if(i.ref){const s=t.$apis[i.ref],o=dt(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>k(null,null,function*(){const l=yield s.apply(t,u);return o?o(l):l})}return r},{})}function J1(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Y1(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>{const s=t.__parseFunction(i);return r[n]=()=>k(null,null,function*(){yield Ze(0),zt(s)&&s()}),r},{})}const G1=new ug;let Cr=[],Qt={};const Z1=e=>e;function ca(r){return k(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(u=>hr(u));if(s.length===0||!i)return null;const o=n.filter(u=>fr(u));return o.length&&sa(o,t),yield oa(s,i,t).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function on(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Cr.forEach(i=>{delete n.window[i]}),Cr=[]),(i,s,o=tr)=>{if(!s||typeof s=="string")return i;if(s.type==="Schema"&&s.id)return o.defineAsyncComponent(()=>k(null,null,function*(){const u=Qt[s.id]||(yield G1.add(s.id,()=>t(s.id)));return u&&(u.name=i,Qt[s.id]=u),u?sn(et(V({},n),{Vue:o,dsl:ui(u),mode:tt.Runtime,loader:on(e)})).renderer:null}));if(s.type==="UrlSchema"&&s.url)return o.defineAsyncComponent(()=>k(null,null,function*(){const u=Qt[s.url]||(yield r(s.url));return u&&(u.name=i,Qt[s.url]=u),u?sn(et(V({},n),{Vue:o,dsl:ui(u),mode:tt.Runtime,loader:on(e)})).renderer:null}));if(s.type==="Plugin"){let u=s.library?Qt[s.library]:null;return u||(s.library&&Cr.push(s.library),u=Qt[s.library||Symbol()]=o.defineAsyncComponent(()=>k(null,null,function*(){return(yield ca(s,n.window))||(console.warn("getPlugin result is null",s),null)})),u)}return i}}function oe(e,t,r=tr,n=Z1,i=[],s=!1){var v;if(!e||!e.name||e.invisible)return null;const o=(v=r.getCurrentInstance())==null?void 0:v.appContext,{id:u=null,directives:l=[]}=e,{vIf:a,vElseIf:c,vElse:f,vFor:p,vShow:h,vModels:d,vBind:g,vHtml:b,others:_}=la(l);if(!s&&(c||f))return null;if(a&&!Q1(a,t))return n0(e,t,r,n,i);const y=(w,E=0)=>{var j,N,L,M;const m=w.$components,x=(()=>{var q,$,D,C;if(e.name==="component")return t0(w,(q=e.props)==null?void 0:q.is);if(e.name==="slot")return e.name;const H=n(e.name,e.from,r);if(Ct(H))return O1(H)||j1(H)?H:(C=(D=m[H])!=null?D:($=o==null?void 0:o.app)==null?void 0:$.component(H))!=null?C:H;if(lt(H)&&e.id){const P=`Loader${e.id}_${E}`;return m[P]||(m[P]=H)}return H})(),A=e0(u,(j=e.props)!=null?j:{},w),U=r0(r,(N=e.events)!=null?N:{},w);if(e.name==="slot")return i0(r,e,A,w,n);g&&Object.assign(A,w.__parseExpression(g.value)),h&&(A.style=Object.assign((L=A.style)!=null?L:{},o0(h,w))),b&&Object.assign(A,a0(b,w)),d.forEach(H=>{Object.assign(A,u0(r,H,w))});const S=c0(r,(M=e.children)!=null?M:[],w,n,e),T=w!=null&&w.__id?`data-v-${w.__id}`:void 0,F=T?{[T]:""}:{};let B=r.createVNode(x,V(V(V({key:`${u}_${E}`},F),A),U),S);const I=o?X1(o,_,w):[];return I.length&&(B=r.withDirectives(B,I)),B};return p?h0(p,y,t):y(t)}function X1(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function la(e=[]){const t=e.find(c=>xt(c.name)==="vIf"),r=e.find(c=>xt(c.name)==="vElseIf"),n=e.find(c=>xt(c.name)==="vElse"),i=e.find(c=>xt(c.name)==="vFor"),s=e.find(c=>xt(c.name)==="vShow"),o=e.find(c=>xt(c.name)==="vBind"),u=e.find(c=>xt(c.name)==="vHtml"),l=e.filter(c=>xt(c.name)==="vModel"),a=e.filter(c=>!y1.includes(xt(c.name)));return{vIf:t,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function Q1(e,t){return!!t.__parseExpression(e.value)}function t0(e,t){return t?mt(t)?e.__parseExpression(t):t:"div"}function e0(e,t,r){const n=an(t,r);return n.ref=r.__ref(e,n.ref),n}function an(e,t){return mt(e)?t.__parseExpression(e):dt(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>an(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=an(i,t),r},{}):e}function r0(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const u=t[o],l=fa(u.modifiers),a=l.find(p=>n.includes(p)),c="on"+Is(o)+(a&&i[a]||""),f=r.__parseFunction(u.handler);return f&&(s[c]=e.withModifiers(f,l)),s},{})}function n0(e,t,r,n,i=[]){let s=i.findIndex(o=>o.id===e.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=la(u);if(l){if(t.__parseExpression(l.value))return oe(i[o],t,r,n,i,!0);continue}if(a)return oe(i[o],t,r,n,i,!0)}return null}function fa(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function i0(e,t,r,n,i){var l;const{children:s}=t,o=s0(t,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(r):s?Ct(s)?e.createTextVNode(s):mt(s)?e.createTextVNode(ia(n.__parseExpression(s))):Array.isArray(s)?s.map(a=>oe(a,n,e,i,s)):null:null}function s0(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:mt(n)?t.__parseExpression(n):n,params:[]}}function o0(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function a0(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function u0(e,t,r){var u;const n={type:"JSFunction",value:(u=t.value)!=null&&u.value?`(v) => {
|
|
66
|
+
`:`with(${r?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(t)}catch(o){if(ie.error("parseExpression.error",o,e,(s=t==null?void 0:t.__self)!=null?s:t),n)throw o}}function pt(e,t,r=!1,n=!1,i=!1){var o;const s=xe(e,t,r,n,i);if(typeof s!="function"&&(ie.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 s}function mt(e){return e&&e.type==="JSExpression"}function dt(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const D0={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},B0=Symbol("access");class aa{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",tt.Raw);z(this,"interceptResponse",!0);this.options=Object.assign({},D0,t),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode!==tt.Design&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&($r.save(r,t,{type:"local",prefix:n}),i&&jr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,$r.remove(t,{type:"local",prefix:r}),n&&jr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):Ii(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Ii(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access=this,t.provide(B0,this)}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>Pi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?Pi(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=$r.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!jr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===We){const r=t.params.id;return r&&this.can(r)}return t.meta.__vtj__?this.can(t.meta.__vtj__):!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return k(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),zt(i)?(i(),r(!1)):Ct(i)?r(i):r(!1)}}r(!1),yield Ze(0),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return t.status===r||((i=t.data)==null?void 0:i[n])===r}showUnauthorizedAlert(t){return k(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return k(this,null,function*(){var n;const{alert:r}=this.options;return r?(yield Ze(150),yield(n=r(t,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!1)):(window.alert(t),!1)})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>k(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>k(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function C0(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=e;let l=null;return{request:xn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{t&&t(a||"未知错误")},showLoading:()=>{l&&l.close(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:na,notify:t,loading:r,useTitle:o,alert:u,startupComponent:i,access:s?new aa(V({alert:u},s)):void 0}}function N0(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,et(V({},e.jsonpOptions),{query:i}));{const i=e.headers?xe(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:et(V({},e.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(me(s,u||{},{data:o})))}}function P0(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function I0(e=[],t=[],r){const n={};for(const i of e)n[i.id]=N0(i,r);for(const i of t)n[i.id]=P0(i,r);return n}function k0(){return k(this,arguments,function*(e=[],t=window){const r=Se(t);r&&(ua(t),e.forEach(n=>M0(r,n)))})}function F0(e,t=window){const r=dt(e.mockTemplate)&&e.mockTemplate.value?pt(e.mockTemplate,{},!0):void 0,n=Se(t);return(...i)=>k(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){ie.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function M0(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n)try{const i=Ge(r)?new URL(r).pathname:r,s=wn(`(.*)${i}(.*)`),o=tg(i,{decode:decodeURIComponent}),u=xe(n,{},!0);e.mock(s,l=>{var h;const a=Ke.parse(l.url)||{},c=l.body instanceof FormData?Zm(l.body):l.body,f=Ge(l.url)?new URL(l.url).pathname:l.url.split("?")[0],p=(h=o(f))==null?void 0:h.params;Object.assign(l,{data:c,params:p,query:a});try{return e.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ua(e=window){const t=Se(e);t&&(t._mocked={})}class U0{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=tr){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&&es.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){es.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===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return pt({type:i,value:s},this)}else return pt(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return xe({type:i,value:s},this)}else return xe(t,this)}__ref(t=null,r){if(this.__mode!==tt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>k(this,null,function*(){var s,o;yield Ze(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.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,tt.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 s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(t={}){const r=V(V({},this.context),t),n=et(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function sn(e){var f,p;const{Vue:t=tr,mode:r=tt.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,u=t.computed(()=>e.dsl),l={$components:n,$libs:i,$apis:s},a=new U0({mode:r,dsl:u.value,attrs:l}),c=t.defineComponent(V({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:V({},V0((f=u.value.props)!=null?f:[],a)),setup(h){var v,w,E,m;a.$props=h,a.props=h,u.value.id&&pr(e.window||window,u.value.id,u.value.css||"",!0),a.state=H0(t,(v=u.value.state)!=null?v:{},a);const d=q0(t,(w=u.value.computed)!=null?w:{},a),g=z0((E=u.value.methods)!=null?E:{},a),b=K0(t,u.value.inject,a);for(const[x,A]of Object.entries(b||{}))b[x]=t.inject(x,A);const _=W0(u.value.dataSources||{},a),y=V(V(V(V({},b),d),g),_);return a.setup(y,t),J0(t,(m=u.value.watch)!=null?m:[],a),V(V({vtj:a,state:a.state},d),g)},emits:L0(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(!u.value.nodes)return null;const h=u.value.nodes||[];return h.length===1?oe(h[0],a,t,o,h):h.map(d=>oe(d,a,t,o,h))}},Y0((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:t.markRaw(c),context:a}}function L0(e=[]){return e.map(t=>Ct(t)?t:t.name)}function V0(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>v0[i]):void 0;return e.map(n=>Ct(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:mt(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 H0(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return mt(s)?s=r.__parseExpression(s):dt(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function q0(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function z0(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function K0(e,t=[],r){return t.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=mt(o)?r.__parseExpression(o)||s:o!=null?o:s,l=mt(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=e.inject(u,l),n},{})}function W0(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=F0(i);else if(i.ref){const s=t.$apis[i.ref],o=dt(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>k(null,null,function*(){const l=yield s.apply(t,u);return o?o(l):l})}return r},{})}function J0(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Y0(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>{const s=t.__parseFunction(i);return r[n]=()=>k(null,null,function*(){yield Ze(0),zt(s)&&s()}),r},{})}const G0=new ug;let Cr=[],Qt={};const Z0=e=>e;function ca(r){return k(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(u=>hr(u));if(s.length===0||!i)return null;const o=n.filter(u=>fr(u));return o.length&&sa(o,t),yield oa(s,i,t).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function on(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Cr.forEach(i=>{delete n.window[i]}),Cr=[]),(i,s,o=tr)=>{if(!s||typeof s=="string")return i;if(s.type==="Schema"&&s.id)return o.defineAsyncComponent(()=>k(null,null,function*(){const u=Qt[s.id]||(yield G0.add(s.id,()=>t(s.id)));return u&&(u.name=i,Qt[s.id]=u),u?sn(et(V({},n),{Vue:o,dsl:ui(u),mode:tt.Runtime,loader:on(e)})).renderer:null}));if(s.type==="UrlSchema"&&s.url)return o.defineAsyncComponent(()=>k(null,null,function*(){const u=Qt[s.url]||(yield r(s.url));return u&&(u.name=i,Qt[s.url]=u),u?sn(et(V({},n),{Vue:o,dsl:ui(u),mode:tt.Runtime,loader:on(e)})).renderer:null}));if(s.type==="Plugin"){let u=s.library?Qt[s.library]:null;return u||(s.library&&Cr.push(s.library),u=Qt[s.library||Symbol()]=o.defineAsyncComponent(()=>k(null,null,function*(){return(yield ca(s,n.window))||(console.warn("getPlugin result is null",s),null)})),u)}return i}}function oe(e,t,r=tr,n=Z0,i=[],s=!1){var v;if(!e||!e.name||e.invisible)return null;const o=(v=r.getCurrentInstance())==null?void 0:v.appContext,{id:u=null,directives:l=[]}=e,{vIf:a,vElseIf:c,vElse:f,vFor:p,vShow:h,vModels:d,vBind:g,vHtml:b,others:_}=la(l);if(!s&&(c||f))return null;if(a&&!Q0(a,t))return n1(e,t,r,n,i);const y=(w,E=0)=>{var j,N,L,M;const m=w.$components,x=(()=>{var q,$,D,C;if(e.name==="component")return t1(w,(q=e.props)==null?void 0:q.is);if(e.name==="slot")return e.name;const H=n(e.name,e.from,r);if(Ct(H))return O0(H)||j0(H)?H:(C=(D=m[H])!=null?D:($=o==null?void 0:o.app)==null?void 0:$.component(H))!=null?C:H;if(lt(H)&&e.id){const P=`Loader${e.id}_${E}`;return m[P]||(m[P]=H)}return H})(),A=e1(u,(j=e.props)!=null?j:{},w),U=r1(r,(N=e.events)!=null?N:{},w);if(e.name==="slot")return i1(r,e,A,w,n);g&&Object.assign(A,w.__parseExpression(g.value)),h&&(A.style=Object.assign((L=A.style)!=null?L:{},o1(h,w))),b&&Object.assign(A,a1(b,w)),d.forEach(H=>{Object.assign(A,u1(r,H,w))});const S=c1(r,(M=e.children)!=null?M:[],w,n,e),T=w!=null&&w.__id?`data-v-${w.__id}`:void 0,F=T?{[T]:""}:{};let B=r.createVNode(x,V(V(V({key:`${u}_${E}`},F),A),U),S);const I=o?X0(o,_,w):[];return I.length&&(B=r.withDirectives(B,I)),B};return p?h1(p,y,t):y(t)}function X0(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function la(e=[]){const t=e.find(c=>xt(c.name)==="vIf"),r=e.find(c=>xt(c.name)==="vElseIf"),n=e.find(c=>xt(c.name)==="vElse"),i=e.find(c=>xt(c.name)==="vFor"),s=e.find(c=>xt(c.name)==="vShow"),o=e.find(c=>xt(c.name)==="vBind"),u=e.find(c=>xt(c.name)==="vHtml"),l=e.filter(c=>xt(c.name)==="vModel"),a=e.filter(c=>!y0.includes(xt(c.name)));return{vIf:t,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function Q0(e,t){return!!t.__parseExpression(e.value)}function t1(e,t){return t?mt(t)?e.__parseExpression(t):t:"div"}function e1(e,t,r){const n=an(t,r);return n.ref=r.__ref(e,n.ref),n}function an(e,t){return mt(e)?t.__parseExpression(e):dt(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>an(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=an(i,t),r},{}):e}function r1(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const u=t[o],l=fa(u.modifiers),a=l.find(p=>n.includes(p)),c="on"+Is(o)+(a&&i[a]||""),f=r.__parseFunction(u.handler);return f&&(s[c]=e.withModifiers(f,l)),s},{})}function n1(e,t,r,n,i=[]){let s=i.findIndex(o=>o.id===e.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=la(u);if(l){if(t.__parseExpression(l.value))return oe(i[o],t,r,n,i,!0);continue}if(a)return oe(i[o],t,r,n,i,!0)}return null}function fa(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function i1(e,t,r,n,i){var l;const{children:s}=t,o=s1(t,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(r):s?Ct(s)?e.createTextVNode(s):mt(s)?e.createTextVNode(ia(n.__parseExpression(s))):Array.isArray(s)?s.map(a=>oe(a,n,e,i,s)):null:null}function s1(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:mt(n)?t.__parseExpression(n):n,params:[]}}function o1(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function a1(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function u1(e,t,r){var u;const n={type:"JSFunction",value:(u=t.value)!=null&&u.value?`(v) => {
|
|
67
67
|
${t.value.value} = v;
|
|
68
|
-
}`:"(v) => {}"},i=r.__parseFunction(n),s=fa(mt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=mt(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:r.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function c0(e,t,r,n,i){if(!t)return null;if(Ct(t))return{default:()=>t};if(mt(t))return{default:()=>ia(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=l0(t),o=(u,l)=>!u||!i?{}:i!=null&&i.id&&Object.keys(u).length?l?{[l]:u}:{[`scope_${i.id}`]:u}:l?{[l]:Object.create(null)}:{};return Object.entries(s).reduce((u,[l,{nodes:a,params:c,scope:f}])=>(u[l]=p=>{const h=c.length?Gd(p!=null?p:{},c):o(p,f);return a.map(d=>oe(d,r.__clone(h),e,n,a))},u),{})}return null}function l0(e){const t={};for(const r of e){const n=f0(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params),t[i].scope=n.scope||""):t[i]={nodes:[r],params:n.params,scope:n.scope||""}}return t}function f0(e="default"){return Ct(e)?{name:e,params:[],scope:""}:V({params:[],scope:""},e)}function h0(e,t,r){const{value:n,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let u=r.__parseExpression(n)||[];return Number.isInteger(u)&&(u=new Array(u).fill(!0).map((l,a)=>a+1)),Array.isArray(u)?u.map((l,a)=>t(r.__clone({[s]:l,[o]:a}),a)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const Nr=is({name:"VtjPageContainer",setup(){return k(this,null,function*(){const e=S0(),t=Ta(),r=t.meta.__vtj__||t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=Sa(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=e==null?void 0:e.adapter;o&&o(n.title||"VTJ")}return{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?Ir(e,et(V({},t),{key:r})):Ir("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),p0=is({name:"VtjStartupContainer",render(){return Ir("div","page not found!")}});function un(e,t,r=[]){const n=[];for(const i of r){const{id:s,title:o,icon:u,children:l,hidden:a,layout:c}=i;if(c){const f=un(e,t,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:u,hidden:a,url:`${e}/${t}/${s}`,children:l&&l.length?un(e,t,l):void 0};n.push(f)}}return n}function Pr(e,t){const{id:r,title:n,meta:i}=e,{name:s="page",prefix:o="",component:u,routeMeta:l}=t;return{name:r,path:`${o}${s}/${r}`,component:u,meta:et(V(V({title:n},l),i),{__vtj__:r})}}function cn(e){const{name:t="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:u}=e,l=[];for(const a of n){const{id:c,title:f,dir:p,layout:h,children:d,meta:g}=a;if(p){const b=cn({name:t,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]});l.push(...b)}else if(h){const b=cn({name:t,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]}),_={name:`layout_${c}`,path:r,component:()=>s(c),meta:et(V(V({title:f},o),g),{__vtj__:c}),children:b};l.push(_),l.push(Pr(a,e))}else if(l.push(Pr(a,e)),u===c){const b=Pr(a,e);b.path="",b.name=`home_${c}`,l.push(b)}}return l}function d0(e={},t){const{css:r,store:n,enhance:i}=e,{window:s,app:o,library:u={},adapter:l,mode:a}=t,{Pinia:c}=u;o.config.globalProperties.$libs=u,pr(s,"global-css",r||""),c&&n&&g0(n,o,c),y0(o,l,e),!l.access&&e.access&&m0(e.access,o,a,l),v0(o,e),i&&b0(i,o,u)}function g0(e,t,r){const n=r.createPinia();if(t.use(n),dt(e)&&e.value){const i=pt(e,{},!1,!1,!0),s=r.defineStore("$store",i(t)||{});t.config.globalProperties.$store=s()}}function m0(e,t,r,n){if(dt(e)&&e.value){const i=pt(e,{},!1,!1,!0),{alert:s,request:o}=n,u=new aa(V({alert:s,storagePrefix:"__VTJ_APP_"},i(t))),l=t.config.globalProperties.$router;u.connect({mode:r,router:l,request:o}),t.use(u)}}function y0(e,t,r){if(!t.request)return;const{axios:n,request:i,response:s}=r;if(n&&dt(n)&&n.value){const o=pt(n,{},!1,!1,!0);t.request.setConfig(o(e))}if(i&&dt(i)&&i.value){const o=pt(i,{},!1,!1,!0),u=t.request;u.__unReq&&u.__unReq(),u.__unReq=t.request.useRequest(l=>o(l,e))}if(s&&dt(s)&&s.value){const o=pt(s,{},!1,!1,!0),u=t.request;u.__unRes&&u.__unRes(),u.__unRes=t.request.useResponse(l=>o(l,e))}}function v0(e,t){const{beforeEach:r,afterEach:n}=t,i=e.config.globalProperties.$router;if(r&&dt(r)&&r.value){const s=pt(r,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,e))}if(n&&dt(n)&&n.value){const s=pt(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,e))}}function b0(e,t,r={}){dt(e)&&e.value&&pt(e,{},!1,!1,!0)(t,r)}function w0(e,t,r){if(!e||!t||!r)return;const{VueI18n:n}=t;if(n){const{locale:i,fallbackLocale:s,messages:o=[]}=r,u={};for(let a of o){const c=Object.keys(a).filter(f=>f!=="key");for(const f of c)u[f]||(u[f]={}),u[f][a.key]=a[f]}const l=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:u});e.use(l)}}const ha=Symbol("Provider");class _0 extends hg{constructor(r){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:tn,jsonp:na});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"libraryLocales",{});z(this,"libraryLocaleMap",{});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=tt.Raw,dependencies:s,materials:o,project:u={},adapter:l={},globals:a={},modules:c={},router:f=null,materialPath:p="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=c,this.service=n,this.router=f,this.materialPath=p,this.nodeEnv=h,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,a),Object.assign(this.adapter,l);const{access:d,request:g}=this.adapter;d&&d.connect({mode:i,router:f,request:g}),u&&i!==tt.Design?this.load(u):this.project=u}createMock(r){return(...n)=>k(null,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){ie.warn("模拟数据模版异常",o)}return(s=Se())==null?void 0:s.mock(i)})}load(r){return k(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/projects/${r.id}.json`]||this.modules[`/src/${n}/projects/${r.id}.json`];if(this.project=i?yield i():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:s=[],meta:o=[]}=this.project,u=window;u&&(u.CKEDITOR_VERSION=void 0),this.mode===tt.Raw?yield this.loadDependencies(u):yield this.loadAssets(u),this.initMock(u),this.apis=I1(s,o,this.adapter),ua(u),k1(s,u),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Se(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return k(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return k(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:u,nodeEnv:l,libraryLocales:a}=this,{libraryExports:c,libraryMap:f,materials:p,materialExports:h,materialMapLibrary:d,libraryLocaleMap:g}=S1(n,u,l==="development");Object.assign(this.libraryLocaleMap,g);for(const b of c){const _=i[b],y=r[b];if(y)s[b]=y;else if(_)r[b]=s[b]=yield _();else{const w=f[b]||[];for(const E of w)fr(E)&&(yield A1(E,Ke.append(E,{v:Dr}))),hr(E)&&(yield Qi(Ke.append(E,{v:Dr})));s[b]=r[b]}const v=g[b];if(v){const w=i[v];a[v]=w?yield w():r[v]}}if(l==="development"){for(const _ of p)yield Qi(Ke.append(_,{v:Dr}));const b=this.materials||{};for(const _ of h){const y=r[d[_]],v=(y==null?void 0:y.default)||y,w=fg[_];if(w)v&&w.forEach(E=>{o[E]=v[E]});else{const E=b[_]?(yield b[_]()).default:r[_];E&&v&&(E.components||[]).forEach(m=>{o[m.name]=x1(m,v)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:u,pageRouteName:l=o,routeMeta:a}=i,c=u?"":"/",f={path:`${c}${l}/:id`,name:We,component:Nr},p={path:c,name:Br,component:n!=null&&n.homepage?Nr:s.startupComponent||p0,meta:a};if(r.hasRoute(We)&&r.removeRoute(We),r.hasRoute(Br)&&r.removeRoute(Br),i.enableStaticRoute){const h=(n==null?void 0:n.pages)||[];cn({name:l,prefix:c,pages:h,component:Nr,loader:this.getRenderComponent.bind(this),homepage:n==null?void 0:n.homepage}).forEach(d=>{u?r.addRoute(u,d):r.addRoute(d)}),n!=null&&n.homepage||(u?r.addRoute(u,p):r.addRoute(p))}else u?(r.addRoute(u,f),r.addRoute(u,p)):(r.addRoute(f),r.addRoute(p))}install(r){var o,u,l;const{libraryLocaleMap:n,libraryLocales:i}=this,s=r.config.globalProperties.installed||{};for(const[a,c]of Object.entries(this.library))if(!s[a]&&$1(c)){const f=i[n[a]];r.use(c,{locale:f}),s[a]=!0}this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),((o=this.project)==null?void 0:o.platform)!=="uniapp"&&this.mode!==tt.Design&&this.initGlobals(((u=this.project)==null?void 0:u.globals)||{},{app:r,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==tt.Design&&((l=this.project)!=null&&l.i18n)&&this.initI18n(r,this.library,this.project.i18n),r.provide(ha,this),r.config.globalProperties.$provider=this,this.options.enhance&&r.use(this.options.enhance,this),this.mode===tt.Design&&(r.config.errorHandler=(a,c,f)=>{const p=c==null?void 0:c.$options.name,h=typeof a=="string"?a:(a==null?void 0:a.message)||(a==null?void 0:a.msg)||"未知错误",d=`[ ${p} ] ${h} ${f}`;console.error("[VTJ Error]:",{err:a,instance:c,info:f},a==null?void 0:a.stack),this.adapter.notify&&this.adapter.notify(d,"组件渲染错误","error")}),r.config.globalProperties.installed=s}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=(s,o=[])=>{for(const u of o){if(u.id===s)return u;if(u.children&&u.children.length){const l=i(s,u.children);if(l)return l}}};return i(r,n)||null}getMenus(r="page",n=""){var i;return un(n,r,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return k(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${r}.json`]||this.modules[`/src/${n}/files/${r}.json`];return i?yield i():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return k(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:u}=this,l=V({mode:o,Vue:i.Vue,components:s,libs:i,apis:u,window},n),a=on({getDsl:c=>k(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>k(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return sn(et(V({},l),{dsl:r,loader:a}))}getRenderComponent(r,n){return k(this,null,function*(){var o;const i=this.getFile(r);if(!i)return ie.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===tt.Raw){const{vtjRawDir:u=".vtj/vue"}=this.options,l=`${u}/${r}.vue`,a=this.modules[l]||this.modules[`/src/pages/${r}.vue`];return a?(o=yield a())==null?void 0:o.default:this.nodeEnv==="development"&&this.adapter.startupComponent||null}const s=yield this.getDsl(i.id);return s?this.createDslRenderer(s).renderer:(ie.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return $n(()=>k(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return $n(()=>k(null,null,function*(){return yield ca(r,window)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window},n);d0(r,i)}initI18n(r,n,i){w0(r,n,i)}}function E0(e){const t=new _0(e);return{provider:t,onReady:r=>t.ready(r)}}function S0(e={}){const t=xa(ha,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&k(null,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}function x0(e,t=""){return k(this,null,function*(){const{name:r,urls:n=[]}=e||{},i=n.map(u=>t+u),{css:s,js:o}=T1(i);if(s.length&&sa(s),o.length)return yield oa(o,r).catch(()=>{})})}const pa={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},T0=(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:pa}),R0=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>k(null,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:et(V({},pa),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function A0(e){return xn({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 $0{constructor(t=tn){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.req=t,this.api=T0(t),this.uploader=R0(t)}getExtension(){return k(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return k(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return k(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return k(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return k(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return k(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return k(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return k(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return k(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return k(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return k(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return k(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return k(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}parseVue(t,r){return k(this,null,function*(){return yield this.api("parseVue",V({project:t},r))})}createRawPage(t){return k(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return k(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return k(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return k(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return k(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return k(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return k(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>_1(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=tn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return k(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new Qo({type:"local",expired:0,prefix:"__VTJ_"});class O0 extends $0{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return k(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return k(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return k(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return k(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Jd(n)}).catch(()=>!1))})}saveFile(r){return k(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return k(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return k(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return k(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return k(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return k(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return k(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
|
|
68
|
+
}`:"(v) => {}"},i=r.__parseFunction(n),s=fa(mt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=mt(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:r.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function c1(e,t,r,n,i){if(!t)return null;if(Ct(t))return{default:()=>t};if(mt(t))return{default:()=>ia(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=l1(t),o=(u,l)=>!u||!i?{}:i!=null&&i.id&&Object.keys(u).length?l?{[l]:u}:{[`scope_${i.id}`]:u}:l?{[l]:Object.create(null)}:{};return Object.entries(s).reduce((u,[l,{nodes:a,params:c,scope:f}])=>(u[l]=p=>{const h=c.length?Gd(p!=null?p:{},c):o(p,f);return a.map(d=>oe(d,r.__clone(h),e,n,a))},u),{})}return null}function l1(e){const t={};for(const r of e){const n=f1(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params),t[i].scope=n.scope||""):t[i]={nodes:[r],params:n.params,scope:n.scope||""}}return t}function f1(e="default"){return Ct(e)?{name:e,params:[],scope:""}:V({params:[],scope:""},e)}function h1(e,t,r){const{value:n,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let u=r.__parseExpression(n)||[];return Number.isInteger(u)&&(u=new Array(u).fill(!0).map((l,a)=>a+1)),Array.isArray(u)?u.map((l,a)=>t(r.__clone({[s]:l,[o]:a}),a)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const Nr=is({name:"VtjPageContainer",setup(){return k(this,null,function*(){const e=S1(),t=Ta(),r=t.meta.__vtj__||t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=Sa(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=e==null?void 0:e.adapter;o&&o(n.title||"VTJ")}return{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?Ir(e,et(V({},t),{key:r})):Ir("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),p1=is({name:"VtjStartupContainer",render(){return Ir("div","page not found!")}});function un(e,t,r=[]){const n=[];for(const i of r){const{id:s,title:o,icon:u,children:l,hidden:a,layout:c}=i;if(c){const f=un(e,t,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:u,hidden:a,url:`${e}/${t}/${s}`,children:l&&l.length?un(e,t,l):void 0};n.push(f)}}return n}function Pr(e,t){const{id:r,title:n,meta:i}=e,{name:s="page",prefix:o="",component:u,routeMeta:l}=t;return{name:r,path:`${o}${s}/${r}`,component:u,meta:et(V(V({title:n},l),i),{__vtj__:r})}}function cn(e){const{name:t="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:u}=e,l=[];for(const a of n){const{id:c,title:f,dir:p,layout:h,children:d,meta:g}=a;if(p){const b=cn({name:t,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]});l.push(...b)}else if(h){const b=cn({name:t,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]}),_={name:`layout_${c}`,path:r,component:()=>s(c),meta:et(V(V({title:f},o),g),{__vtj__:c}),children:b};l.push(_),l.push(Pr(a,e))}else if(l.push(Pr(a,e)),u===c){const b=Pr(a,e);b.path="",b.name=`home_${c}`,l.push(b)}}return l}function d1(e={},t){const{css:r,store:n,enhance:i}=e,{window:s,app:o,library:u={},adapter:l,mode:a}=t,{Pinia:c}=u;o.config.globalProperties.$libs=u,pr(s,"global-css",r||""),c&&n&&g1(n,o,c),y1(o,l,e),!l.access&&e.access&&m1(e.access,o,a,l),v1(o,e),i&&b1(i,o,u)}function g1(e,t,r){const n=r.createPinia();if(t.use(n),dt(e)&&e.value){const i=pt(e,{},!1,!1,!0),s=r.defineStore("$store",i(t)||{});t.config.globalProperties.$store=s()}}function m1(e,t,r,n){if(dt(e)&&e.value){const i=pt(e,{},!1,!1,!0),{alert:s,request:o}=n,u=new aa(V({alert:s,storagePrefix:"__VTJ_APP_"},i(t))),l=t.config.globalProperties.$router;u.connect({mode:r,router:l,request:o}),t.use(u)}}function y1(e,t,r){if(!t.request)return;const{axios:n,request:i,response:s}=r;if(n&&dt(n)&&n.value){const o=pt(n,{},!1,!1,!0);t.request.setConfig(o(e))}if(i&&dt(i)&&i.value){const o=pt(i,{},!1,!1,!0),u=t.request;u.__unReq&&u.__unReq(),u.__unReq=t.request.useRequest(l=>o(l,e))}if(s&&dt(s)&&s.value){const o=pt(s,{},!1,!1,!0),u=t.request;u.__unRes&&u.__unRes(),u.__unRes=t.request.useResponse(l=>o(l,e))}}function v1(e,t){const{beforeEach:r,afterEach:n}=t,i=e.config.globalProperties.$router;if(r&&dt(r)&&r.value){const s=pt(r,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,e))}if(n&&dt(n)&&n.value){const s=pt(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,e))}}function b1(e,t,r={}){dt(e)&&e.value&&pt(e,{},!1,!1,!0)(t,r)}function w1(e,t,r){if(!e||!t||!r)return;const{VueI18n:n}=t;if(n){const{locale:i,fallbackLocale:s,messages:o=[]}=r,u={};for(let a of o){const c=Object.keys(a).filter(f=>f!=="key");for(const f of c)u[f]||(u[f]={}),u[f][a.key]=a[f]}const l=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:u});e.use(l)}}const ha=Symbol("Provider");class _1 extends hg{constructor(r){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:tn,jsonp:na});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"libraryLocales",{});z(this,"libraryLocaleMap",{});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=tt.Raw,dependencies:s,materials:o,project:u={},adapter:l={},globals:a={},modules:c={},router:f=null,materialPath:p="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=c,this.service=n,this.router=f,this.materialPath=p,this.nodeEnv=h,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,a),Object.assign(this.adapter,l);const{access:d,request:g}=this.adapter;d&&d.connect({mode:i,router:f,request:g}),u&&i!==tt.Design?this.load(u):this.project=u}createMock(r){return(...n)=>k(null,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){ie.warn("模拟数据模版异常",o)}return(s=Se())==null?void 0:s.mock(i)})}load(r){return k(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/projects/${r.id}.json`]||this.modules[`/src/${n}/projects/${r.id}.json`];if(this.project=i?yield i():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:s=[],meta:o=[]}=this.project,u=window;u&&(u.CKEDITOR_VERSION=void 0),this.mode===tt.Raw?yield this.loadDependencies(u):yield this.loadAssets(u),this.initMock(u),this.apis=I0(s,o,this.adapter),ua(u),k0(s,u),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Se(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return k(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return k(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:u,nodeEnv:l,libraryLocales:a}=this,{libraryExports:c,libraryMap:f,materials:p,materialExports:h,materialMapLibrary:d,libraryLocaleMap:g}=S0(n,u,l==="development");Object.assign(this.libraryLocaleMap,g);for(const b of c){const _=i[b],y=r[b];if(y)s[b]=y;else if(_)r[b]=s[b]=yield _();else{const w=f[b]||[];for(const E of w)fr(E)&&(yield A0(E,Ke.append(E,{v:Dr}))),hr(E)&&(yield Qi(Ke.append(E,{v:Dr})));s[b]=r[b]}const v=g[b];if(v){const w=i[v];a[v]=w?yield w():r[v]}}if(l==="development"){for(const _ of p)yield Qi(Ke.append(_,{v:Dr}));const b=this.materials||{};for(const _ of h){const y=r[d[_]],v=(y==null?void 0:y.default)||y,w=fg[_];if(w)v&&w.forEach(E=>{o[E]=v[E]});else{const E=b[_]?(yield b[_]()).default:r[_];E&&v&&(E.components||[]).forEach(m=>{o[m.name]=x0(m,v)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:u,pageRouteName:l=o,routeMeta:a}=i,c=u?"":"/",f={path:`${c}${l}/:id`,name:We,component:Nr},p={path:c,name:Br,component:n!=null&&n.homepage?Nr:s.startupComponent||p1,meta:a};if(r.hasRoute(We)&&r.removeRoute(We),r.hasRoute(Br)&&r.removeRoute(Br),i.enableStaticRoute){const h=(n==null?void 0:n.pages)||[];cn({name:l,prefix:c,pages:h,component:Nr,loader:this.getRenderComponent.bind(this),homepage:n==null?void 0:n.homepage}).forEach(d=>{u?r.addRoute(u,d):r.addRoute(d)}),n!=null&&n.homepage||(u?r.addRoute(u,p):r.addRoute(p))}else u?(r.addRoute(u,f),r.addRoute(u,p)):(r.addRoute(f),r.addRoute(p))}install(r){var o,u,l;const{libraryLocaleMap:n,libraryLocales:i}=this,s=r.config.globalProperties.installed||{};for(const[a,c]of Object.entries(this.library))if(!s[a]&&$0(c)){const f=i[n[a]];r.use(c,{locale:f}),s[a]=!0}this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),((o=this.project)==null?void 0:o.platform)!=="uniapp"&&this.mode!==tt.Design&&this.initGlobals(((u=this.project)==null?void 0:u.globals)||{},{app:r,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==tt.Design&&((l=this.project)!=null&&l.i18n)&&this.initI18n(r,this.library,this.project.i18n),r.provide(ha,this),r.config.globalProperties.$provider=this,this.options.enhance&&r.use(this.options.enhance,this),this.mode===tt.Design&&(r.config.errorHandler=(a,c,f)=>{const p=c==null?void 0:c.$options.name,h=typeof a=="string"?a:(a==null?void 0:a.message)||(a==null?void 0:a.msg)||"未知错误",d=`[ ${p} ] ${h} ${f}`;console.error("[VTJ Error]:",{err:a,instance:c,info:f},a==null?void 0:a.stack),this.adapter.notify&&this.adapter.notify(d,"组件渲染错误","error")}),r.config.globalProperties.installed=s}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=(s,o=[])=>{for(const u of o){if(u.id===s)return u;if(u.children&&u.children.length){const l=i(s,u.children);if(l)return l}}};return i(r,n)||null}getMenus(r="page",n=""){var i;return un(n,r,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return k(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${r}.json`]||this.modules[`/src/${n}/files/${r}.json`];return i?yield i():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return k(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:u}=this,l=V({mode:o,Vue:i.Vue,components:s,libs:i,apis:u,window},n),a=on({getDsl:c=>k(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>k(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return sn(et(V({},l),{dsl:r,loader:a}))}getRenderComponent(r,n){return k(this,null,function*(){var o;const i=this.getFile(r);if(!i)return ie.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===tt.Raw){const{vtjRawDir:u=".vtj/vue"}=this.options,l=`${u}/${r}.vue`,a=this.modules[l]||this.modules[`/src/pages/${r}.vue`];return a?(o=yield a())==null?void 0:o.default:this.nodeEnv==="development"&&this.adapter.startupComponent||null}const s=yield this.getDsl(i.id);return s?this.createDslRenderer(s).renderer:(ie.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return $n(()=>k(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return $n(()=>k(null,null,function*(){return yield ca(r,window)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window},n);d1(r,i)}initI18n(r,n,i){w1(r,n,i)}}function E1(e){const t=new _1(e);return{provider:t,onReady:r=>t.ready(r)}}function S1(e={}){const t=xa(ha,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&k(null,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}function x1(e,t=""){return k(this,null,function*(){const{name:r,urls:n=[]}=e||{},i=n.map(u=>t+u),{css:s,js:o}=T0(i);if(s.length&&sa(s),o.length)return yield oa(o,r).catch(()=>{})})}const pa={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},T1=(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:pa}),R1=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>k(null,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:et(V({},pa),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function A1(e){return xn({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 $1{constructor(t=tn){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.req=t,this.api=T1(t),this.uploader=R1(t)}getExtension(){return k(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return k(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return k(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return k(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return k(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return k(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return k(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return k(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return k(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return k(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return k(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return k(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return k(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}parseVue(t,r){return k(this,null,function*(){return yield this.api("parseVue",V({project:t},r))})}createRawPage(t){return k(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return k(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return k(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return k(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return k(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return k(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return k(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>_0(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=tn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return k(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new Qo({type:"local",expired:0,prefix:"__VTJ_"});class O1 extends $1{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return k(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return k(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return k(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return k(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Jd(n)}).catch(()=>!1))})}saveFile(r){return k(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return k(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return k(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return k(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return k(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return k(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return k(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
|
|
69
69
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
70
70
|
* @name @vtj/uni
|
|
71
71
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
72
|
-
* @version 0.13.
|
|
72
|
+
* @version 0.13.29
|
|
73
73
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
74
|
-
*/const j0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],rs="/pages",D0="VTJ",B0="__UNI__1FC118B",C0="VTJ移动跨端项目",N0="1.0.0",P0="100",I0=!1,k0={},F0={enable:!1},M0="3",U0={name:D0,appid:B0,description:C0,versionName:N0,versionCode:P0,transformPx:I0,"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:k0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:F0,vueVersion:M0},L0=[],V0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},H0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},q0={pages:L0,globalStyle:V0,easycom:H0};function z0(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return et(V({},e),{manifestJson:Object.assign({},U0,t),pagesJson:Object.assign({},q0,r,{pages:i})})}const ln={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function da(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)ln[n]&&(t[ln[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function K0(e){const t={};for(const r in e)ln[r]||(t[r]=e[r]);return t}function W0(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function J0(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 Y0(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function G0(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(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function Z0(e){var u;const t=G0(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:s=[]}=n;if(t)return r;r.navigationBar=!0;const o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function X0(e,t=window){var p,h,d,g;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:s,rightWindow:o}=J0(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=Z0(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__:W0(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__:!!((g=r.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:Y0(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([b,_])=>{t[b]=_})}const Q0="4.76";function ty(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:et(V({},K0(a)),{navigationBar:da(a),isNVue:!1}),compilerVersion:Q0,appId:s,appName:o,appVersion:l,appVersionCode:String(u),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:c.base||"/"},c),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 ey(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=o,t.upx2px=u,t.__setupPage=a=>l(a)}function ry(e,t,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=e,{PageComponent:u,setupPage:l,getApp:a}=t;return{mpType:"page",setup(){return k(this,null,function*(){var g,b;const f=((b=(g=a())==null?void 0:g.$route)==null?void 0:b.query)||{},{loader:p,component:h}=r,d=p?yield p(r):h||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function ny(e,t,r){var h;const{path:n,style:i={},meta:s={},home:o,id:u}=t,l=((h=e.tabBar)==null?void 0:h.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,p=r===0;return V({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:p,isEntry:o!=null?o:p,navigationBar:V({type:"default"},da(i)),isNVue:!1,route:c?c.pagePath:n},s)}function iy(e,t,r,n,i=window){const s=r.map((o,u)=>{const l=ny(n,o,u),a=ry(e,t,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return e.h(e.Suspense,[e.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function sy(e,t,r=window){pr(r,String(e),t)}function oy(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 ay(e){const t=z0(e),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=t;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;X0(t,l),ty(t,l),ey(i,l),iy(r,i,s,o,l),sy(u.appid||Date.now(),a,l);const p=r.createApp(f(n));return p.use(oy,i),p.use(c),p}function uy(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{j0.includes(n)&&i&&(r[n]=t(i))}),r}function ns(e,t){return()=>k(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function cy(n){return k(this,arguments,function*(e,t=!1,r=rs){var u,l,a;const i=((u=e.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=e.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:ns(e,c.id),style:V({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=r===rs?"/":r;s.unshift(et(V({},o),{path:c}))}if(t){const c=((a=e.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:ns(e,f.id),style:{navigationStyle:"custom"}})}return s})}function ly(){var e;return(e=window.uni)!=null&&e.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ga(e,t="",r="warning"){return k(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:e,showCancel:!1}):Promise.reject(new Error("window.uni.showModal is undefined"))})}function fy(e=tt.Runtime){let t={};e===tt.Runtime?t=Object.assign({}):t=Object.assign({});let r={};for(const[n,i]of Object.entries(t))r[n]=()=>Promise.resolve(i);return r}const hy=C1({loading:ly,notify:ga}),ma=new O0(A0(ga)),py=fy(),{provider:dy,onReady:gy}=E0({nodeEnv:"production",mode:tt.Runtime,modules:py,materialPath:"../",adapter:hy,service:ma,dependencies:{Vue:()=>jn(()=>import("./@dcloudio-uni-h5-vue-BtM9Eyib.js").then(e=>e.z),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>jn(()=>import("./vue-router-CbZ0Q__O.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),my=e=>k(null,null,function*(){const t=(yield ma.getExtension().catch(()=>null))||{},r=top||window,n=yield x0(t.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=e.project;if(!o)return;const u=o.uniConfig||{},l=uy(u,d=>pt(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,p=yield cy(e,!0),h=ay({Vue:i,App:l,UniH5:s,routes:p,css:f,manifestJson:a,pagesJson:c});h.use(e),n&&h.use(n,e),h.mount(document.body)});gy(()=>my(dy));
|
|
74
|
+
*/const j1=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],rs="/pages",D1="VTJ",B1="__UNI__1FC118B",C1="VTJ移动跨端项目",N1="1.0.0",P1="100",I1=!1,k1={},F1={enable:!1},M1="3",U1={name:D1,appid:B1,description:C1,versionName:N1,versionCode:P1,transformPx:I1,"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:k1,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:F1,vueVersion:M1},L1=[],V1={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},H1={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},q1={pages:L1,globalStyle:V1,easycom:H1};function z1(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return et(V({},e),{manifestJson:Object.assign({},U1,t),pagesJson:Object.assign({},q1,r,{pages:i})})}const ln={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function da(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)ln[n]&&(t[ln[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function K1(e){const t={};for(const r in e)ln[r]||(t[r]=e[r]);return t}function W1(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function J1(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 Y1(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function G1(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(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function Z1(e){var u;const t=G1(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:s=[]}=n;if(t)return r;r.navigationBar=!0;const o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function X1(e,t=window){var p,h,d,g;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:s,rightWindow:o}=J1(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=Z1(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__:W1(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__:!!((g=r.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:Y1(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([b,_])=>{t[b]=_})}const Q1="4.76";function ty(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:et(V({},K1(a)),{navigationBar:da(a),isNVue:!1}),compilerVersion:Q1,appId:s,appName:o,appVersion:l,appVersionCode:String(u),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:c.base||"/"},c),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 ey(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=o,t.upx2px=u,t.__setupPage=a=>l(a)}function ry(e,t,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=e,{PageComponent:u,setupPage:l,getApp:a}=t;return{mpType:"page",setup(){return k(this,null,function*(){var g,b;const f=((b=(g=a())==null?void 0:g.$route)==null?void 0:b.query)||{},{loader:p,component:h}=r,d=p?yield p(r):h||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function ny(e,t,r){var h;const{path:n,style:i={},meta:s={},home:o,id:u}=t,l=((h=e.tabBar)==null?void 0:h.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,p=r===0;return V({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:p,isEntry:o!=null?o:p,navigationBar:V({type:"default"},da(i)),isNVue:!1,route:c?c.pagePath:n},s)}function iy(e,t,r,n,i=window){const s=r.map((o,u)=>{const l=ny(n,o,u),a=ry(e,t,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return e.h(e.Suspense,[e.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function sy(e,t,r=window){pr(r,String(e),t)}function oy(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 ay(e){const t=z1(e),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=t;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;X1(t,l),ty(t,l),ey(i,l),iy(r,i,s,o,l),sy(u.appid||Date.now(),a,l);const p=r.createApp(f(n));return p.use(oy,i),p.use(c),p}function uy(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{j1.includes(n)&&i&&(r[n]=t(i))}),r}function ns(e,t){return()=>k(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function cy(n){return k(this,arguments,function*(e,t=!1,r=rs){var u,l,a;const i=((u=e.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=e.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:ns(e,c.id),style:V({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=r===rs?"/":r;s.unshift(et(V({},o),{path:c}))}if(t){const c=((a=e.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:ns(e,f.id),style:{navigationStyle:"custom"}})}return s})}function ly(){var e;return(e=window.uni)!=null&&e.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ga(e,t="",r="warning"){return k(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:e,showCancel:!1}):Promise.reject(new Error("window.uni.showModal is undefined"))})}function fy(e=tt.Runtime){let t={};e===tt.Runtime?t=Object.assign({}):t=Object.assign({});let r={};for(const[n,i]of Object.entries(t))r[n]=()=>Promise.resolve(i);return r}const hy=C0({loading:ly,notify:ga}),ma=new O1(A1(ga)),py=fy(),{provider:dy,onReady:gy}=E1({nodeEnv:"production",mode:tt.Runtime,modules:py,materialPath:"../",adapter:hy,service:ma,dependencies:{Vue:()=>jn(()=>import("./@dcloudio-uni-h5-vue-BtM9Eyib.js").then(e=>e.z),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>jn(()=>import("./vue-router-CbZ0Q__O.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),my=e=>k(null,null,function*(){const t=(yield ma.getExtension().catch(()=>null))||{},r=top||window,n=yield x1(t.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=e.project;if(!o)return;const u=o.uniConfig||{},l=uy(u,d=>pt(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,p=yield cy(e,!0),h=ay({Vue:i,App:l,UniH5:s,routes:p,css:f,manifestJson:a,pagesJson:c});h.use(e),n&&h.use(n,e),h.mount(document.body)});gy(()=>my(dy));
|
package/dist/uni/index.html
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<title></title>
|
|
24
24
|
<!--preload-links-->
|
|
25
25
|
<!--app-context-->
|
|
26
|
-
<script type="module" crossorigin src="./assets/index-
|
|
26
|
+
<script type="module" crossorigin src="./assets/index-DsBLZHhj.js"></script>
|
|
27
27
|
<link rel="modulepreload" crossorigin href="./assets/vue-BK7aLblh.js">
|
|
28
28
|
<link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-Cc-Ey1iB.js">
|
|
29
29
|
<link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-BtM9Eyib.js">
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/pro",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.29",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"低代码引擎",
|
|
7
7
|
"LowCode Engine",
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"type": "module",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@vtj/core": "~0.13.
|
|
25
|
-
"@vtj/
|
|
26
|
-
"@vtj/
|
|
27
|
-
"@vtj/
|
|
28
|
-
"@vtj/
|
|
29
|
-
"@vtj/uni": "~0.13.
|
|
24
|
+
"@vtj/core": "~0.13.29",
|
|
25
|
+
"@vtj/local": "~0.13.29",
|
|
26
|
+
"@vtj/materials": "~0.13.29",
|
|
27
|
+
"@vtj/renderer": "~0.13.29",
|
|
28
|
+
"@vtj/designer": "~0.13.29",
|
|
29
|
+
"@vtj/uni": "~0.13.29"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"vite-plugin-vue-devtools": "~8.0.2",
|
|
33
33
|
"vue": "~3.5.5",
|
|
34
34
|
"vue-router": "~4.5.0",
|
|
35
|
-
"@vtj/
|
|
36
|
-
"@vtj/ui": "~0.13.28",
|
|
35
|
+
"@vtj/charts": "~0.13.29",
|
|
37
36
|
"@vtj/cli": "~0.12.13",
|
|
38
|
-
"@vtj/
|
|
39
|
-
"@vtj/
|
|
37
|
+
"@vtj/icons": "~0.13.29",
|
|
38
|
+
"@vtj/utils": "~0.13.29",
|
|
39
|
+
"@vtj/ui": "~0.13.29"
|
|
40
40
|
},
|
|
41
41
|
"exports": {
|
|
42
42
|
"./vite": {
|