@vtj/pro 0.11.0 → 0.11.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +5 -5
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/uni-ui/index.umd.js +1 -1
- package/dist/@vtj/materials/deps/uni-ui/style.css +1 -1
- package/dist/assets/auth-D2JLHBiX.js +1 -0
- package/dist/assets/auth-DR7VTCAL.css +1 -0
- package/dist/assets/index-5RBG6XMh.css +1 -0
- package/dist/assets/index-C2YhZpTF.js +169 -0
- package/dist/assets/index-CnwXcQPw.js +1 -0
- package/dist/assets/{index-4yxq1NoG.css → index-DYYKpooH.css} +1 -1
- package/dist/assets/{index-CDRuydJ0.js → index-N2JsHbmk.js} +22 -22
- package/dist/assets/page-Ci2qmsa8.js +2 -0
- package/dist/assets/preview-LFDDIBz9.js +2 -0
- package/dist/assets/{uni-page-DKhm1ga2.js → uni-page-Cjqcu6iY.js} +1 -1
- package/dist/assets/uni-page-Diqmj53r.css +1 -0
- package/dist/assets/{utils-DAxEuZxL.js → utils-D4cr5QWV.js} +1 -1
- package/dist/index.html +3 -3
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-DzUn8GQh.js → @dcloudio-uni-h5-vue-C36z4qJb.js} +1 -1
- package/dist/uni/assets/{index-Co3NbAvW.js → index-B-Bjqqqf.js} +8 -8
- package/dist/uni/assets/{vue-router-pF46KwvV.js → vue-router-CxcHTnUo.js} +1 -1
- package/dist/uni/index.html +3 -3
- package/package.json +16 -15
- package/src/Auth.vue +12 -2
- package/dist/assets/auth-DwmTaW5W.js +0 -1
- package/dist/assets/auth-M4f5Ga8E.css +0 -1
- package/dist/assets/index-DoBcZEst.js +0 -169
- package/dist/assets/index-MhdaEFQT.css +0 -1
- package/dist/assets/index-oHnBQSgu.js +0 -1
- package/dist/assets/page-CNYvgDTR.js +0 -2
- package/dist/assets/preview-BiwDU63U.js +0 -2
- package/dist/assets/uni-page-CcvzWKEz.css +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-
|
|
2
|
-
var Ns=Object.defineProperty,Ps=Object.defineProperties;var Is=Object.getOwnPropertyDescriptors;var un=Object.getOwnPropertySymbols;var Fs=Object.prototype.hasOwnProperty,ks=Object.prototype.propertyIsEnumerable;var Lt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ms=e=>{throw TypeError(e)};var er=(e,t,r)=>t in e?Ns(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))Fs.call(t,r)&&er(e,r,t[r]);if(un)for(var r of un(t))ks.call(t,r)&&er(e,r,t[r]);return e},tt=(e,t)=>Ps(e,Is(t));var z=(e,t,r)=>er(e,typeof t!="symbol"?t+"":t,r);var k=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{a(r.next(c))}catch(u){i(u)}},s=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(e,t)).next())}),jt=function(e,t){this[0]=e,this[1]=t},rr=(e,t,r)=>{var n=(s,a,c,u)=>{try{var l=r[s](a),f=(a=l.value)instanceof jt,p=l.done;Promise.resolve(f?a[0]:a).then(h=>f?n(s==="return"?s:"next",a[1]?{done:h.done,value:h.value}:h,c,u):c({value:h,done:p})).catch(h=>n("throw",h,c,u))}catch(h){u(h)}},i=s=>o[s]=a=>new Promise((c,u)=>n(s,a,c,u)),o={};return r=r.apply(e,t),o[Lt("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},nr=e=>{var t=e[Lt("asyncIterator")],r=!1,n,i={};return t==null?(t=e[Lt("iterator")](),n=o=>i[o]=s=>t[o](s)):(t=t.call(e),n=o=>i[o]=s=>{if(r){if(r=!1,o==="throw")throw s;return s}return r=!0,{done:!1,value:new jt(new Promise(a=>{var c=t[o](s);c instanceof Object||Ms("Object expected"),a(c)}),1)}}),i[Lt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=o=>{throw o},"return"in t&&n("return"),i},cn=(e,t,r)=>(t=e[Lt("asyncIterator")])?t.call(e):(e=e[Lt("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=o=>new Promise((s,a,c)=>(o=i.call(e,o),c=o.done,Promise.resolve(o.value).then(u=>s({value:u,done:c}),a)))),r("next"),r("return"),t);import{d as Ci,g as ln,h as _r,r as Us,x as He,i as Ls}from"./@dcloudio-uni-h5-vue-DzUn8GQh.js";import{useRoute as Vs}from"./vue-router-pF46KwvV.js";import"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-VStmjWbh.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();const Hs="modulepreload",qs=function(e,t){return new URL(e,t).href},fn={},hn=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(r.map(u=>{if(u=qs(u,n),u in fn)return;fn[u]=!0;const l=u.endsWith(".css"),f=l?'[rel="stylesheet"]':"";if(!!n)for(let d=s.length-1;d>=0;d--){const m=s[d];if(m.href===u&&(!l||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=l?"stylesheet":Hs,l||(h.as="script"),h.crossOrigin="",h.href=u,c&&h.setAttribute("nonce",c),document.head.appendChild(h),l)return new Promise((d,m)=>{h.addEventListener("load",d),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var zs={ENV_TYPE:"live",NODE_ENV:"production"},Ws=typeof global=="object"&&global&&global.Object===Object&&global;const Ni=Ws;var Ks=typeof self=="object"&&self&&self.Object===Object&&self,Js=Ni||Ks||Function("return this")();const pt=Js;var Ys=pt.Symbol;const gt=Ys;var Pi=Object.prototype,Zs=Pi.hasOwnProperty,Gs=Pi.toString,se=gt?gt.toStringTag:void 0;function Xs(e){var t=Zs.call(e,se),r=e[se];try{e[se]=void 0;var n=!0}catch(o){}var i=Gs.call(e);return n&&(t?e[se]=r:delete e[se]),i}var Qs=Object.prototype,ta=Qs.toString;function ea(e){return ta.call(e)}var ra="[object Null]",na="[object Undefined]",pn=gt?gt.toStringTag:void 0;function wt(e){return e==null?e===void 0?na:ra:pn&&pn in Object(e)?Xs(e):ea(e)}function Rt(e){return e!=null&&typeof e=="object"}var ia="[object Symbol]";function Ii(e){return typeof e=="symbol"||Rt(e)&&wt(e)==ia}function Fi(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var oa=Array.isArray;const fe=oa;var dn=gt?gt.prototype:void 0,mn=dn?dn.toString:void 0;function ki(e){if(typeof e=="string")return e;if(fe(e))return Fi(e,ki)+"";if(Ii(e))return mn?mn.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var sa=/\s/;function aa(e){for(var t=e.length;t--&&sa.test(e.charAt(t)););return t}var ua=/^\s+/;function ca(e){return e&&e.slice(0,aa(e)+1).replace(ua,"")}function ft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gn=NaN,la=/^[-+]0x[0-9a-f]+$/i,fa=/^0b[01]+$/i,ha=/^0o[0-7]+$/i,pa=parseInt;function yn(e){if(typeof e=="number")return e;if(Ii(e))return gn;if(ft(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ft(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ca(e);var r=fa.test(e);return r||ha.test(e)?pa(e.slice(2),r?2:8):la.test(e)?gn:+e}function Mi(e){return e}var da="[object AsyncFunction]",ma="[object Function]",ga="[object GeneratorFunction]",ya="[object Proxy]";function Xt(e){if(!ft(e))return!1;var t=wt(e);return t==ma||t==ga||t==da||t==ya}var va=pt["__core-js_shared__"];const ir=va;var vn=function(){var e=/[^.]+$/.exec(ir&&ir.keys&&ir.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ba(e){return!!vn&&vn in e}var wa=Function.prototype,_a=wa.toString;function kt(e){if(e!=null){try{return _a.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Ea=/[\\^$.*+?()[\]{}|]/g,Sa=/^\[object .+?Constructor\]$/,xa=Function.prototype,Ta=Object.prototype,Ra=xa.toString,Oa=Ta.hasOwnProperty,Aa=RegExp("^"+Ra.call(Oa).replace(Ea,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $a(e){if(!ft(e)||ba(e))return!1;var t=Xt(e)?Aa:Sa;return t.test(kt(e))}function Da(e,t){return e==null?void 0:e[t]}function Mt(e,t){var r=Da(e,t);return $a(r)?r:void 0}var ja=Mt(pt,"WeakMap");const Er=ja;var bn=Object.create,Ba=function(){function e(){}return function(t){if(!ft(t))return{};if(bn)return bn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Ca=Ba;function Ui(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Na(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Pa=800,Ia=16,Fa=Date.now;function ka(e){var t=0,r=0;return function(){var n=Fa(),i=Ia-(n-r);if(r=n,i>0){if(++t>=Pa)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ma(e){return function(){return e}}var Ua=function(){try{var e=Mt(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Fe=Ua;var La=Fe?function(e,t){return Fe(e,"toString",{configurable:!0,enumerable:!1,value:Ma(t),writable:!0})}:Mi;const Va=La;var Ha=ka(Va);const qa=Ha;var za=9007199254740991,Wa=/^(?:0|[1-9]\d*)$/;function Li(e,t){var r=typeof e;return t=t!=null?t:za,!!t&&(r=="number"||r!="symbol"&&Wa.test(e))&&e>-1&&e%1==0&&e<t}function Kr(e,t,r){t=="__proto__"&&Fe?Fe(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ye(e,t){return e===t||e!==e&&t!==t}var Ka=Object.prototype,Ja=Ka.hasOwnProperty;function Ya(e,t,r){var n=e[t];(!(Ja.call(e,t)&&ye(n,r))||r===void 0&&!(t in e))&&Kr(e,t,r)}function Vi(e,t,r,n){var i=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;c===void 0&&(c=e[a]),i?Kr(r,a,c):Ya(r,a,c)}return r}var wn=Math.max;function Za(e,t,r){return t=wn(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=wn(n.length-t,0),s=Array(o);++i<o;)s[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(s),Ui(e,this,a)}}function Hi(e,t){return qa(Za(e,t,Mi),e+"")}var Ga=9007199254740991;function qi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ga}function qe(e){return e!=null&&qi(e.length)&&!Xt(e)}function Xa(e,t,r){if(!ft(r))return!1;var n=typeof t;return(n=="number"?qe(r)&&Li(t,r.length):n=="string"&&t in r)?ye(r[t],e):!1}function zi(e){return Hi(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&Xa(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,o)}return t})}var Qa=Object.prototype;function Jr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Qa;return e===r}function tu(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var eu="[object Arguments]";function _n(e){return Rt(e)&&wt(e)==eu}var Wi=Object.prototype,ru=Wi.hasOwnProperty,nu=Wi.propertyIsEnumerable,iu=_n(function(){return arguments}())?_n:function(e){return Rt(e)&&ru.call(e,"callee")&&!nu.call(e,"callee")};const Sr=iu;function ou(){return!1}var Ki=typeof exports=="object"&&exports&&!exports.nodeType&&exports,En=Ki&&typeof module=="object"&&module&&!module.nodeType&&module,su=En&&En.exports===Ki,Sn=su?pt.Buffer:void 0,au=Sn?Sn.isBuffer:void 0,uu=au||ou;const Ji=uu;var cu="[object Arguments]",lu="[object Array]",fu="[object Boolean]",hu="[object Date]",pu="[object Error]",du="[object Function]",mu="[object Map]",gu="[object Number]",yu="[object Object]",vu="[object RegExp]",bu="[object Set]",wu="[object String]",_u="[object WeakMap]",Eu="[object ArrayBuffer]",Su="[object DataView]",xu="[object Float32Array]",Tu="[object Float64Array]",Ru="[object Int8Array]",Ou="[object Int16Array]",Au="[object Int32Array]",$u="[object Uint8Array]",Du="[object Uint8ClampedArray]",ju="[object Uint16Array]",Bu="[object Uint32Array]",Y={};Y[xu]=Y[Tu]=Y[Ru]=Y[Ou]=Y[Au]=Y[$u]=Y[Du]=Y[ju]=Y[Bu]=!0,Y[cu]=Y[lu]=Y[Eu]=Y[fu]=Y[Su]=Y[hu]=Y[pu]=Y[du]=Y[mu]=Y[gu]=Y[yu]=Y[vu]=Y[bu]=Y[wu]=Y[_u]=!1;function Cu(e){return Rt(e)&&qi(e.length)&&!!Y[wt(e)]}function Nu(e){return function(t){return e(t)}}var Yi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,le=Yi&&typeof module=="object"&&module&&!module.nodeType&&module,Pu=le&&le.exports===Yi,or=Pu&&Ni.process,Iu=function(){try{var e=le&&le.require&&le.require("util").types;return e||or&&or.binding&&or.binding("util")}catch(t){}}();const yt=Iu;var xn=yt&&yt.isTypedArray,Fu=xn?Nu(xn):Cu;const Zi=Fu;var ku=Object.prototype,Mu=ku.hasOwnProperty;function Gi(e,t){var r=fe(e),n=!r&&Sr(e),i=!r&&!n&&Ji(e),o=!r&&!n&&!i&&Zi(e),s=r||n||i||o,a=s?tu(e.length,String):[],c=a.length;for(var u in e)(t||Mu.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Li(u,c)))&&a.push(u);return a}function Xi(e,t){return function(r){return e(t(r))}}var Uu=Xi(Object.keys,Object);const Lu=Uu;var Vu=Object.prototype,Hu=Vu.hasOwnProperty;function qu(e){if(!Jr(e))return Lu(e);var t=[];for(var r in Object(e))Hu.call(e,r)&&r!="constructor"&&t.push(r);return t}function zu(e){return qe(e)?Gi(e):qu(e)}function Wu(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Ku=Object.prototype,Ju=Ku.hasOwnProperty;function Yu(e){if(!ft(e))return Wu(e);var t=Jr(e),r=[];for(var n in e)n=="constructor"&&(t||!Ju.call(e,n))||r.push(n);return r}function Yr(e){return qe(e)?Gi(e,!0):Yu(e)}var Zu=zi(function(e,t,r,n){Vi(t,Yr(t),e,n)});const Tn=Zu;var Gu=Mt(Object,"create");const he=Gu;function Xu(){this.__data__=he?he(null):{},this.size=0}function Qu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tc="__lodash_hash_undefined__",ec=Object.prototype,rc=ec.hasOwnProperty;function nc(e){var t=this.__data__;if(he){var r=t[e];return r===tc?void 0:r}return rc.call(t,e)?t[e]:void 0}var ic=Object.prototype,oc=ic.hasOwnProperty;function sc(e){var t=this.__data__;return he?t[e]!==void 0:oc.call(t,e)}var ac="__lodash_hash_undefined__";function uc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=he&&t===void 0?ac:t,this}function Nt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Nt.prototype.clear=Xu,Nt.prototype.delete=Qu,Nt.prototype.get=nc,Nt.prototype.has=sc,Nt.prototype.set=uc;function cc(){this.__data__=[],this.size=0}function ze(e,t){for(var r=e.length;r--;)if(ye(e[r][0],t))return r;return-1}var lc=Array.prototype,fc=lc.splice;function hc(e){var t=this.__data__,r=ze(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():fc.call(t,r,1),--this.size,!0}function pc(e){var t=this.__data__,r=ze(t,e);return r<0?void 0:t[r][1]}function dc(e){return ze(this.__data__,e)>-1}function mc(e,t){var r=this.__data__,n=ze(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function bt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}bt.prototype.clear=cc,bt.prototype.delete=hc,bt.prototype.get=pc,bt.prototype.has=dc,bt.prototype.set=mc;var gc=Mt(pt,"Map");const pe=gc;function yc(){this.size=0,this.__data__={hash:new Nt,map:new(pe||bt),string:new Nt}}function vc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function We(e,t){var r=e.__data__;return vc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function bc(e){var t=We(this,e).delete(e);return this.size-=t?1:0,t}function wc(e){return We(this,e).get(e)}function _c(e){return We(this,e).has(e)}function Ec(e,t){var r=We(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xt.prototype.clear=yc,xt.prototype.delete=bc,xt.prototype.get=wc,xt.prototype.has=_c,xt.prototype.set=Ec;var Sc="Expected a function";function Zr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Sc);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Zr.Cache||xt),r}Zr.Cache=xt;var xc=500;function Tc(e){var t=Zr(e,function(n){return r.size===xc&&r.clear(),n}),r=t.cache;return t}var Rc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oc=/\\(\\)?/g;Tc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rc,function(r,n,i,o){t.push(i?o.replace(Oc,"$1"):n||r)}),t});function te(e){return e==null?"":ki(e)}var Ac=Xi(Object.getPrototypeOf,Object);const Qi=Ac;var $c="[object Object]",Dc=Function.prototype,jc=Object.prototype,to=Dc.toString,Bc=jc.hasOwnProperty,Cc=to.call(Object);function eo(e){if(!Rt(e)||wt(e)!=$c)return!1;var t=Qi(e);if(t===null)return!0;var r=Bc.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&to.call(r)==Cc}var Nc="[object DOMException]",Pc="[object Error]";function ro(e){if(!Rt(e))return!1;var t=wt(e);return t==Pc||t==Nc||typeof e.message=="string"&&typeof e.name=="string"&&!eo(e)}var Ic=Hi(function(e,t){try{return Ui(e,void 0,t)}catch(r){return ro(r)?r:new Error(r)}});const Fc=Ic;function kc(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}function Mc(e,t,r){var n=e.length;return r=r===void 0?n:r,kc(e,t,r)}var Uc="\\ud800-\\udfff",Lc="\\u0300-\\u036f",Vc="\\ufe20-\\ufe2f",Hc="\\u20d0-\\u20ff",qc=Lc+Vc+Hc,zc="\\ufe0e\\ufe0f",Wc="\\u200d",Kc=RegExp("["+Wc+Uc+qc+zc+"]");function no(e){return Kc.test(e)}function Jc(e){return e.split("")}var io="\\ud800-\\udfff",Yc="\\u0300-\\u036f",Zc="\\ufe20-\\ufe2f",Gc="\\u20d0-\\u20ff",Xc=Yc+Zc+Gc,Qc="\\ufe0e\\ufe0f",tl="["+io+"]",xr="["+Xc+"]",Tr="\\ud83c[\\udffb-\\udfff]",el="(?:"+xr+"|"+Tr+")",oo="[^"+io+"]",so="(?:\\ud83c[\\udde6-\\uddff]){2}",ao="[\\ud800-\\udbff][\\udc00-\\udfff]",rl="\\u200d",uo=el+"?",co="["+Qc+"]?",nl="(?:"+rl+"(?:"+[oo,so,ao].join("|")+")"+co+uo+")*",il=co+uo+nl,ol="(?:"+[oo+xr+"?",xr,so,ao,tl].join("|")+")",sl=RegExp(Tr+"(?="+Tr+")|"+ol+il,"g");function al(e){return e.match(sl)||[]}function ul(e){return no(e)?al(e):Jc(e)}function cl(e){return function(t){t=te(t);var r=no(t)?ul(t):void 0,n=r?r[0]:t.charAt(0),i=r?Mc(r,1).join(""):t.slice(1);return n[e]()+i}}var ll=cl("toUpperCase");const lo=ll;function fl(e){return lo(te(e).toLowerCase())}function hl(e,t,r,n){var i=-1,o=e==null?0:e.length;for(n;++i<o;)r=t(r,e[i],i,e);return r}function fo(e){return function(t){return e==null?void 0:e[t]}}var pl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},dl=fo(pl);const ml=dl;var gl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yl="\\u0300-\\u036f",vl="\\ufe20-\\ufe2f",bl="\\u20d0-\\u20ff",wl=yl+vl+bl,_l="["+wl+"]",El=RegExp(_l,"g");function Sl(e){return e=te(e),e&&e.replace(gl,ml).replace(El,"")}var xl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Tl(e){return e.match(xl)||[]}var Rl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ol(e){return Rl.test(e)}var ho="\\ud800-\\udfff",Al="\\u0300-\\u036f",$l="\\ufe20-\\ufe2f",Dl="\\u20d0-\\u20ff",jl=Al+$l+Dl,po="\\u2700-\\u27bf",mo="a-z\\xdf-\\xf6\\xf8-\\xff",Bl="\\xac\\xb1\\xd7\\xf7",Cl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nl="\\u2000-\\u206f",Pl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",go="A-Z\\xc0-\\xd6\\xd8-\\xde",Il="\\ufe0e\\ufe0f",yo=Bl+Cl+Nl+Pl,vo="['’]",Rn="["+yo+"]",Fl="["+jl+"]",bo="\\d+",kl="["+po+"]",wo="["+mo+"]",_o="[^"+ho+yo+bo+po+mo+go+"]",Ml="\\ud83c[\\udffb-\\udfff]",Ul="(?:"+Fl+"|"+Ml+")",Ll="[^"+ho+"]",Eo="(?:\\ud83c[\\udde6-\\uddff]){2}",So="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+go+"]",Vl="\\u200d",On="(?:"+wo+"|"+_o+")",Hl="(?:"+Wt+"|"+_o+")",An="(?:"+vo+"(?:d|ll|m|re|s|t|ve))?",$n="(?:"+vo+"(?:D|LL|M|RE|S|T|VE))?",xo=Ul+"?",To="["+Il+"]?",ql="(?:"+Vl+"(?:"+[Ll,Eo,So].join("|")+")"+To+xo+")*",zl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kl=To+xo+ql,Jl="(?:"+[kl,Eo,So].join("|")+")"+Kl,Yl=RegExp([Wt+"?"+wo+"+"+An+"(?="+[Rn,Wt,"$"].join("|")+")",Hl+"+"+$n+"(?="+[Rn,Wt+On,"$"].join("|")+")",Wt+"?"+On+"+"+An,Wt+"+"+$n,Wl,zl,bo,Jl].join("|"),"g");function Zl(e){return e.match(Yl)||[]}function Gl(e,t,r){return e=te(e),t=t,t===void 0?Ol(e)?Zl(e):Tl(e):e.match(t)||[]}var Xl="['’]",Ql=RegExp(Xl,"g");function tf(e){return function(t){return hl(Gl(Sl(t).replace(Ql,"")),e,"")}}var ef=tf(function(e,t,r){return t=t.toLowerCase(),e+(r?fl(t):t)});const Bt=ef;function rf(){this.__data__=new bt,this.size=0}function nf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function of(e){return this.__data__.get(e)}function sf(e){return this.__data__.has(e)}var af=200;function uf(e,t){var r=this.__data__;if(r instanceof bt){var n=r.__data__;if(!pe||n.length<af-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new xt(n)}return r.set(e,t),this.size=r.size,this}function Kt(e){var t=this.__data__=new bt(e);this.size=t.size}Kt.prototype.clear=rf,Kt.prototype.delete=nf,Kt.prototype.get=of,Kt.prototype.has=sf,Kt.prototype.set=uf;var Ro=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Dn=Ro&&typeof module=="object"&&module&&!module.nodeType&&module,cf=Dn&&Dn.exports===Ro,jn=cf?pt.Buffer:void 0;jn&&jn.allocUnsafe;function lf(e,t){return e.slice()}var ff=Mt(pt,"DataView");const Rr=ff;var hf=Mt(pt,"Promise");const Or=hf;var pf=Mt(pt,"Set");const Ar=pf;var Bn="[object Map]",df="[object Object]",Cn="[object Promise]",Nn="[object Set]",Pn="[object WeakMap]",In="[object DataView]",mf=kt(Rr),gf=kt(pe),yf=kt(Or),vf=kt(Ar),bf=kt(Er),Vt=wt;(Rr&&Vt(new Rr(new ArrayBuffer(1)))!=In||pe&&Vt(new pe)!=Bn||Or&&Vt(Or.resolve())!=Cn||Ar&&Vt(new Ar)!=Nn||Er&&Vt(new Er)!=Pn)&&(Vt=function(e){var t=wt(e),r=t==df?e.constructor:void 0,n=r?kt(r):"";if(n)switch(n){case mf:return In;case gf:return Bn;case yf:return Cn;case vf:return Nn;case bf:return Pn}return t});var wf=pt.Uint8Array;const Fn=wf;function _f(e){var t=new e.constructor(e.byteLength);return new Fn(t).set(new Fn(e)),t}var kn=gt?gt.prototype:void 0;kn&&kn.valueOf;function Ef(e,t){var r=_f(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function Sf(e){return typeof e.constructor=="function"&&!Jr(e)?Ca(Qi(e)):{}}yt&&yt.isMap;yt&&yt.isSet;var Mn=gt?gt.prototype:void 0;Mn&&Mn.valueOf;function xf(e){return function(t,r,n){for(var i=-1,o=Object(t),s=n(t),a=s.length;a--;){var c=s[++i];if(r(o[c],c,o)===!1)break}return t}}var Tf=xf();const Rf=Tf;var Of=function(){return pt.Date.now()};const sr=Of;var Af="Expected a function",$f=Math.max,Df=Math.min;function Oo(e,t,r){var n,i,o,s,a,c,u=0,l=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(Af);t=yn(t)||0,ft(r)&&(l=!!r.leading,f="maxWait"in r,o=f?$f(yn(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function h(g){var x=n,O=i;return n=i=void 0,u=g,s=e.apply(O,x),s}function d(g){return u=g,a=setTimeout(E,t),l?h(g):s}function m(g){var x=g-c,O=g-u,M=t-x;return f?Df(M,o-O):M}function b(g){var x=g-c,O=g-u;return c===void 0||x>=t||x<0||f&&O>=o}function E(){var g=sr();if(b(g))return y(g);a=setTimeout(E,m(g))}function y(g){return a=void 0,p&&n?h(g):(n=i=void 0,s)}function v(){a!==void 0&&clearTimeout(a),u=0,n=c=i=a=void 0}function w(){return a===void 0?s:y(sr())}function S(){var g=sr(),x=b(g);if(n=arguments,i=this,c=g,x){if(a===void 0)return d(c);if(f)return clearTimeout(a),a=setTimeout(E,t),h(c)}return a===void 0&&(a=setTimeout(E,t)),s}return S.cancel=v,S.flush=w,S}function $r(e,t,r){(r!==void 0&&!ye(e[t],r)||r===void 0&&!(t in e))&&Kr(e,t,r)}function jf(e){return Rt(e)&&qe(e)}function Dr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Bf(e){return Vi(e,Yr(e))}function Cf(e,t,r,n,i,o,s){var a=Dr(e,r),c=Dr(t,r),u=s.get(c);if(u){$r(e,r,u);return}var l=o?o(a,c,r+"",e,t,s):void 0,f=l===void 0;if(f){var p=fe(c),h=!p&&Ji(c),d=!p&&!h&&Zi(c);l=c,p||h||d?fe(a)?l=a:jf(a)?l=Na(a):h?(f=!1,l=lf(c)):d?(f=!1,l=Ef(c)):l=[]:eo(c)||Sr(c)?(l=a,Sr(a)?l=Bf(a):(!ft(a)||Xt(a))&&(l=Sf(c))):f=!1}f&&(s.set(c,l),i(l,c,n,o,s),s.delete(c)),$r(e,r,l)}function Ao(e,t,r,n,i){e!==t&&Rf(t,function(o,s){if(i||(i=new Kt),ft(o))Cf(e,t,s,r,Ao,n,i);else{var a=n?n(Dr(e,s),o,s+"",e,t,i):void 0;a===void 0&&(a=o),$r(e,s,a)}},Yr)}var Nf={"&":"&","<":"<",">":">",'"':""","'":"'"},Pf=fo(Nf);const If=Pf;var $o=/[&<>"']/g,Ff=RegExp($o.source);function kf(e){return e=te(e),e&&Ff.test(e)?e.replace($o,If):e}var Mf="[object String]";function Ot(e){return typeof e=="string"||!fe(e)&&Rt(e)&&wt(e)==Mf}function Uf(e,t){return Fi(t,function(r){return e[r]})}yt&&yt.isArrayBuffer;yt&&yt.isDate;var Lf=zi(function(e,t,r){Ao(e,t,r)});const ue=Lf;var Do=Object.prototype,Vf=Do.hasOwnProperty;function Un(e,t,r,n){return e===void 0||ye(e,Do[r])&&!Vf.call(n,r)?t:e}var Hf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function qf(e){return"\\"+Hf[e]}var zf=/<%=([\s\S]+?)%>/g;const jo=zf;var Wf=/<%-([\s\S]+?)%>/g;const Kf=Wf;var Jf=/<%([\s\S]+?)%>/g;const Yf=Jf;var Zf={escape:Kf,evaluate:Yf,interpolate:jo,variable:"",imports:{_:{escape:kf}}};const Ln=Zf;var Gf="Invalid `variable` option passed into `_.template`",Xf=/\b__p \+= '';/g,Qf=/\b(__p \+=) '' \+/g,th=/(__e\(.*?\)|\b__t\)) \+\n'';/g,eh=/[()=,{}\[\]\/\s]/,rh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_e=/($^)/,nh=/['\n\r\u2028\u2029\\]/g,ih=Object.prototype,Vn=ih.hasOwnProperty;function oh(e,t,r){var n=Ln.imports._.templateSettings||Ln;e=te(e),t=Tn({},t,n,Un);var i=Tn({},t.imports,n.imports,Un),o=zu(i),s=Uf(i,o),a,c,u=0,l=t.interpolate||_e,f="__p += '",p=RegExp((t.escape||_e).source+"|"+l.source+"|"+(l===jo?rh:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),h=Vn.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-C36z4qJb.js","./vue-BK7aLblh.js","./@dcloudio-uni-shared-VStmjWbh.js","./vue-router-CxcHTnUo.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Ns=Object.defineProperty,Ps=Object.defineProperties;var Is=Object.getOwnPropertyDescriptors;var un=Object.getOwnPropertySymbols;var Fs=Object.prototype.hasOwnProperty,ks=Object.prototype.propertyIsEnumerable;var Lt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ms=e=>{throw TypeError(e)};var er=(e,t,r)=>t in e?Ns(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))Fs.call(t,r)&&er(e,r,t[r]);if(un)for(var r of un(t))ks.call(t,r)&&er(e,r,t[r]);return e},tt=(e,t)=>Ps(e,Is(t));var z=(e,t,r)=>er(e,typeof t!="symbol"?t+"":t,r);var k=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{a(r.next(c))}catch(u){i(u)}},s=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(e,t)).next())}),jt=function(e,t){this[0]=e,this[1]=t},rr=(e,t,r)=>{var n=(s,a,c,u)=>{try{var l=r[s](a),f=(a=l.value)instanceof jt,p=l.done;Promise.resolve(f?a[0]:a).then(h=>f?n(s==="return"?s:"next",a[1]?{done:h.done,value:h.value}:h,c,u):c({value:h,done:p})).catch(h=>n("throw",h,c,u))}catch(h){u(h)}},i=s=>o[s]=a=>new Promise((c,u)=>n(s,a,c,u)),o={};return r=r.apply(e,t),o[Lt("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},nr=e=>{var t=e[Lt("asyncIterator")],r=!1,n,i={};return t==null?(t=e[Lt("iterator")](),n=o=>i[o]=s=>t[o](s)):(t=t.call(e),n=o=>i[o]=s=>{if(r){if(r=!1,o==="throw")throw s;return s}return r=!0,{done:!1,value:new jt(new Promise(a=>{var c=t[o](s);c instanceof Object||Ms("Object expected"),a(c)}),1)}}),i[Lt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=o=>{throw o},"return"in t&&n("return"),i},cn=(e,t,r)=>(t=e[Lt("asyncIterator")])?t.call(e):(e=e[Lt("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=o=>new Promise((s,a,c)=>(o=i.call(e,o),c=o.done,Promise.resolve(o.value).then(u=>s({value:u,done:c}),a)))),r("next"),r("return"),t);import{d as Ci,g as ln,h as _r,r as Us,O as He,i as Ls}from"./@dcloudio-uni-h5-vue-C36z4qJb.js";import{useRoute as Vs}from"./vue-router-CxcHTnUo.js";import"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-VStmjWbh.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();const Hs="modulepreload",qs=function(e,t){return new URL(e,t).href},fn={},hn=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(r.map(u=>{if(u=qs(u,n),u in fn)return;fn[u]=!0;const l=u.endsWith(".css"),f=l?'[rel="stylesheet"]':"";if(!!n)for(let d=s.length-1;d>=0;d--){const m=s[d];if(m.href===u&&(!l||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=l?"stylesheet":Hs,l||(h.as="script"),h.crossOrigin="",h.href=u,c&&h.setAttribute("nonce",c),document.head.appendChild(h),l)return new Promise((d,m)=>{h.addEventListener("load",d),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var zs={ENV_TYPE:"live",NODE_ENV:"production"},Ws=typeof global=="object"&&global&&global.Object===Object&&global;const Ni=Ws;var Ks=typeof self=="object"&&self&&self.Object===Object&&self,Js=Ni||Ks||Function("return this")();const pt=Js;var Ys=pt.Symbol;const gt=Ys;var Pi=Object.prototype,Zs=Pi.hasOwnProperty,Gs=Pi.toString,se=gt?gt.toStringTag:void 0;function Xs(e){var t=Zs.call(e,se),r=e[se];try{e[se]=void 0;var n=!0}catch(o){}var i=Gs.call(e);return n&&(t?e[se]=r:delete e[se]),i}var Qs=Object.prototype,ta=Qs.toString;function ea(e){return ta.call(e)}var ra="[object Null]",na="[object Undefined]",pn=gt?gt.toStringTag:void 0;function wt(e){return e==null?e===void 0?na:ra:pn&&pn in Object(e)?Xs(e):ea(e)}function Rt(e){return e!=null&&typeof e=="object"}var ia="[object Symbol]";function Ii(e){return typeof e=="symbol"||Rt(e)&&wt(e)==ia}function Fi(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var oa=Array.isArray;const fe=oa;var dn=gt?gt.prototype:void 0,mn=dn?dn.toString:void 0;function ki(e){if(typeof e=="string")return e;if(fe(e))return Fi(e,ki)+"";if(Ii(e))return mn?mn.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var sa=/\s/;function aa(e){for(var t=e.length;t--&&sa.test(e.charAt(t)););return t}var ua=/^\s+/;function ca(e){return e&&e.slice(0,aa(e)+1).replace(ua,"")}function ft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gn=NaN,la=/^[-+]0x[0-9a-f]+$/i,fa=/^0b[01]+$/i,ha=/^0o[0-7]+$/i,pa=parseInt;function yn(e){if(typeof e=="number")return e;if(Ii(e))return gn;if(ft(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ft(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ca(e);var r=fa.test(e);return r||ha.test(e)?pa(e.slice(2),r?2:8):la.test(e)?gn:+e}function Mi(e){return e}var da="[object AsyncFunction]",ma="[object Function]",ga="[object GeneratorFunction]",ya="[object Proxy]";function Xt(e){if(!ft(e))return!1;var t=wt(e);return t==ma||t==ga||t==da||t==ya}var va=pt["__core-js_shared__"];const ir=va;var vn=function(){var e=/[^.]+$/.exec(ir&&ir.keys&&ir.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ba(e){return!!vn&&vn in e}var wa=Function.prototype,_a=wa.toString;function kt(e){if(e!=null){try{return _a.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Ea=/[\\^$.*+?()[\]{}|]/g,Sa=/^\[object .+?Constructor\]$/,xa=Function.prototype,Ta=Object.prototype,Ra=xa.toString,Oa=Ta.hasOwnProperty,Aa=RegExp("^"+Ra.call(Oa).replace(Ea,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $a(e){if(!ft(e)||ba(e))return!1;var t=Xt(e)?Aa:Sa;return t.test(kt(e))}function Da(e,t){return e==null?void 0:e[t]}function Mt(e,t){var r=Da(e,t);return $a(r)?r:void 0}var ja=Mt(pt,"WeakMap");const Er=ja;var bn=Object.create,Ba=function(){function e(){}return function(t){if(!ft(t))return{};if(bn)return bn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Ca=Ba;function Ui(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Na(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Pa=800,Ia=16,Fa=Date.now;function ka(e){var t=0,r=0;return function(){var n=Fa(),i=Ia-(n-r);if(r=n,i>0){if(++t>=Pa)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ma(e){return function(){return e}}var Ua=function(){try{var e=Mt(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Fe=Ua;var La=Fe?function(e,t){return Fe(e,"toString",{configurable:!0,enumerable:!1,value:Ma(t),writable:!0})}:Mi;const Va=La;var Ha=ka(Va);const qa=Ha;var za=9007199254740991,Wa=/^(?:0|[1-9]\d*)$/;function Li(e,t){var r=typeof e;return t=t!=null?t:za,!!t&&(r=="number"||r!="symbol"&&Wa.test(e))&&e>-1&&e%1==0&&e<t}function Kr(e,t,r){t=="__proto__"&&Fe?Fe(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ye(e,t){return e===t||e!==e&&t!==t}var Ka=Object.prototype,Ja=Ka.hasOwnProperty;function Ya(e,t,r){var n=e[t];(!(Ja.call(e,t)&&ye(n,r))||r===void 0&&!(t in e))&&Kr(e,t,r)}function Vi(e,t,r,n){var i=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;c===void 0&&(c=e[a]),i?Kr(r,a,c):Ya(r,a,c)}return r}var wn=Math.max;function Za(e,t,r){return t=wn(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=wn(n.length-t,0),s=Array(o);++i<o;)s[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(s),Ui(e,this,a)}}function Hi(e,t){return qa(Za(e,t,Mi),e+"")}var Ga=9007199254740991;function qi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ga}function qe(e){return e!=null&&qi(e.length)&&!Xt(e)}function Xa(e,t,r){if(!ft(r))return!1;var n=typeof t;return(n=="number"?qe(r)&&Li(t,r.length):n=="string"&&t in r)?ye(r[t],e):!1}function zi(e){return Hi(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&Xa(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,o)}return t})}var Qa=Object.prototype;function Jr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Qa;return e===r}function tu(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var eu="[object Arguments]";function _n(e){return Rt(e)&&wt(e)==eu}var Wi=Object.prototype,ru=Wi.hasOwnProperty,nu=Wi.propertyIsEnumerable,iu=_n(function(){return arguments}())?_n:function(e){return Rt(e)&&ru.call(e,"callee")&&!nu.call(e,"callee")};const Sr=iu;function ou(){return!1}var Ki=typeof exports=="object"&&exports&&!exports.nodeType&&exports,En=Ki&&typeof module=="object"&&module&&!module.nodeType&&module,su=En&&En.exports===Ki,Sn=su?pt.Buffer:void 0,au=Sn?Sn.isBuffer:void 0,uu=au||ou;const Ji=uu;var cu="[object Arguments]",lu="[object Array]",fu="[object Boolean]",hu="[object Date]",pu="[object Error]",du="[object Function]",mu="[object Map]",gu="[object Number]",yu="[object Object]",vu="[object RegExp]",bu="[object Set]",wu="[object String]",_u="[object WeakMap]",Eu="[object ArrayBuffer]",Su="[object DataView]",xu="[object Float32Array]",Tu="[object Float64Array]",Ru="[object Int8Array]",Ou="[object Int16Array]",Au="[object Int32Array]",$u="[object Uint8Array]",Du="[object Uint8ClampedArray]",ju="[object Uint16Array]",Bu="[object Uint32Array]",Y={};Y[xu]=Y[Tu]=Y[Ru]=Y[Ou]=Y[Au]=Y[$u]=Y[Du]=Y[ju]=Y[Bu]=!0,Y[cu]=Y[lu]=Y[Eu]=Y[fu]=Y[Su]=Y[hu]=Y[pu]=Y[du]=Y[mu]=Y[gu]=Y[yu]=Y[vu]=Y[bu]=Y[wu]=Y[_u]=!1;function Cu(e){return Rt(e)&&qi(e.length)&&!!Y[wt(e)]}function Nu(e){return function(t){return e(t)}}var Yi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,le=Yi&&typeof module=="object"&&module&&!module.nodeType&&module,Pu=le&&le.exports===Yi,or=Pu&&Ni.process,Iu=function(){try{var e=le&&le.require&&le.require("util").types;return e||or&&or.binding&&or.binding("util")}catch(t){}}();const yt=Iu;var xn=yt&&yt.isTypedArray,Fu=xn?Nu(xn):Cu;const Zi=Fu;var ku=Object.prototype,Mu=ku.hasOwnProperty;function Gi(e,t){var r=fe(e),n=!r&&Sr(e),i=!r&&!n&&Ji(e),o=!r&&!n&&!i&&Zi(e),s=r||n||i||o,a=s?tu(e.length,String):[],c=a.length;for(var u in e)(t||Mu.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Li(u,c)))&&a.push(u);return a}function Xi(e,t){return function(r){return e(t(r))}}var Uu=Xi(Object.keys,Object);const Lu=Uu;var Vu=Object.prototype,Hu=Vu.hasOwnProperty;function qu(e){if(!Jr(e))return Lu(e);var t=[];for(var r in Object(e))Hu.call(e,r)&&r!="constructor"&&t.push(r);return t}function zu(e){return qe(e)?Gi(e):qu(e)}function Wu(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Ku=Object.prototype,Ju=Ku.hasOwnProperty;function Yu(e){if(!ft(e))return Wu(e);var t=Jr(e),r=[];for(var n in e)n=="constructor"&&(t||!Ju.call(e,n))||r.push(n);return r}function Yr(e){return qe(e)?Gi(e,!0):Yu(e)}var Zu=zi(function(e,t,r,n){Vi(t,Yr(t),e,n)});const Tn=Zu;var Gu=Mt(Object,"create");const he=Gu;function Xu(){this.__data__=he?he(null):{},this.size=0}function Qu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tc="__lodash_hash_undefined__",ec=Object.prototype,rc=ec.hasOwnProperty;function nc(e){var t=this.__data__;if(he){var r=t[e];return r===tc?void 0:r}return rc.call(t,e)?t[e]:void 0}var ic=Object.prototype,oc=ic.hasOwnProperty;function sc(e){var t=this.__data__;return he?t[e]!==void 0:oc.call(t,e)}var ac="__lodash_hash_undefined__";function uc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=he&&t===void 0?ac:t,this}function Nt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Nt.prototype.clear=Xu,Nt.prototype.delete=Qu,Nt.prototype.get=nc,Nt.prototype.has=sc,Nt.prototype.set=uc;function cc(){this.__data__=[],this.size=0}function ze(e,t){for(var r=e.length;r--;)if(ye(e[r][0],t))return r;return-1}var lc=Array.prototype,fc=lc.splice;function hc(e){var t=this.__data__,r=ze(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():fc.call(t,r,1),--this.size,!0}function pc(e){var t=this.__data__,r=ze(t,e);return r<0?void 0:t[r][1]}function dc(e){return ze(this.__data__,e)>-1}function mc(e,t){var r=this.__data__,n=ze(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function bt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}bt.prototype.clear=cc,bt.prototype.delete=hc,bt.prototype.get=pc,bt.prototype.has=dc,bt.prototype.set=mc;var gc=Mt(pt,"Map");const pe=gc;function yc(){this.size=0,this.__data__={hash:new Nt,map:new(pe||bt),string:new Nt}}function vc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function We(e,t){var r=e.__data__;return vc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function bc(e){var t=We(this,e).delete(e);return this.size-=t?1:0,t}function wc(e){return We(this,e).get(e)}function _c(e){return We(this,e).has(e)}function Ec(e,t){var r=We(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xt.prototype.clear=yc,xt.prototype.delete=bc,xt.prototype.get=wc,xt.prototype.has=_c,xt.prototype.set=Ec;var Sc="Expected a function";function Zr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Sc);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Zr.Cache||xt),r}Zr.Cache=xt;var xc=500;function Tc(e){var t=Zr(e,function(n){return r.size===xc&&r.clear(),n}),r=t.cache;return t}var Rc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oc=/\\(\\)?/g;Tc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rc,function(r,n,i,o){t.push(i?o.replace(Oc,"$1"):n||r)}),t});function te(e){return e==null?"":ki(e)}var Ac=Xi(Object.getPrototypeOf,Object);const Qi=Ac;var $c="[object Object]",Dc=Function.prototype,jc=Object.prototype,to=Dc.toString,Bc=jc.hasOwnProperty,Cc=to.call(Object);function eo(e){if(!Rt(e)||wt(e)!=$c)return!1;var t=Qi(e);if(t===null)return!0;var r=Bc.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&to.call(r)==Cc}var Nc="[object DOMException]",Pc="[object Error]";function ro(e){if(!Rt(e))return!1;var t=wt(e);return t==Pc||t==Nc||typeof e.message=="string"&&typeof e.name=="string"&&!eo(e)}var Ic=Hi(function(e,t){try{return Ui(e,void 0,t)}catch(r){return ro(r)?r:new Error(r)}});const Fc=Ic;function kc(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}function Mc(e,t,r){var n=e.length;return r=r===void 0?n:r,kc(e,t,r)}var Uc="\\ud800-\\udfff",Lc="\\u0300-\\u036f",Vc="\\ufe20-\\ufe2f",Hc="\\u20d0-\\u20ff",qc=Lc+Vc+Hc,zc="\\ufe0e\\ufe0f",Wc="\\u200d",Kc=RegExp("["+Wc+Uc+qc+zc+"]");function no(e){return Kc.test(e)}function Jc(e){return e.split("")}var io="\\ud800-\\udfff",Yc="\\u0300-\\u036f",Zc="\\ufe20-\\ufe2f",Gc="\\u20d0-\\u20ff",Xc=Yc+Zc+Gc,Qc="\\ufe0e\\ufe0f",tl="["+io+"]",xr="["+Xc+"]",Tr="\\ud83c[\\udffb-\\udfff]",el="(?:"+xr+"|"+Tr+")",oo="[^"+io+"]",so="(?:\\ud83c[\\udde6-\\uddff]){2}",ao="[\\ud800-\\udbff][\\udc00-\\udfff]",rl="\\u200d",uo=el+"?",co="["+Qc+"]?",nl="(?:"+rl+"(?:"+[oo,so,ao].join("|")+")"+co+uo+")*",il=co+uo+nl,ol="(?:"+[oo+xr+"?",xr,so,ao,tl].join("|")+")",sl=RegExp(Tr+"(?="+Tr+")|"+ol+il,"g");function al(e){return e.match(sl)||[]}function ul(e){return no(e)?al(e):Jc(e)}function cl(e){return function(t){t=te(t);var r=no(t)?ul(t):void 0,n=r?r[0]:t.charAt(0),i=r?Mc(r,1).join(""):t.slice(1);return n[e]()+i}}var ll=cl("toUpperCase");const lo=ll;function fl(e){return lo(te(e).toLowerCase())}function hl(e,t,r,n){var i=-1,o=e==null?0:e.length;for(n;++i<o;)r=t(r,e[i],i,e);return r}function fo(e){return function(t){return e==null?void 0:e[t]}}var pl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},dl=fo(pl);const ml=dl;var gl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yl="\\u0300-\\u036f",vl="\\ufe20-\\ufe2f",bl="\\u20d0-\\u20ff",wl=yl+vl+bl,_l="["+wl+"]",El=RegExp(_l,"g");function Sl(e){return e=te(e),e&&e.replace(gl,ml).replace(El,"")}var xl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Tl(e){return e.match(xl)||[]}var Rl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ol(e){return Rl.test(e)}var ho="\\ud800-\\udfff",Al="\\u0300-\\u036f",$l="\\ufe20-\\ufe2f",Dl="\\u20d0-\\u20ff",jl=Al+$l+Dl,po="\\u2700-\\u27bf",mo="a-z\\xdf-\\xf6\\xf8-\\xff",Bl="\\xac\\xb1\\xd7\\xf7",Cl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nl="\\u2000-\\u206f",Pl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",go="A-Z\\xc0-\\xd6\\xd8-\\xde",Il="\\ufe0e\\ufe0f",yo=Bl+Cl+Nl+Pl,vo="['’]",Rn="["+yo+"]",Fl="["+jl+"]",bo="\\d+",kl="["+po+"]",wo="["+mo+"]",_o="[^"+ho+yo+bo+po+mo+go+"]",Ml="\\ud83c[\\udffb-\\udfff]",Ul="(?:"+Fl+"|"+Ml+")",Ll="[^"+ho+"]",Eo="(?:\\ud83c[\\udde6-\\uddff]){2}",So="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+go+"]",Vl="\\u200d",On="(?:"+wo+"|"+_o+")",Hl="(?:"+Wt+"|"+_o+")",An="(?:"+vo+"(?:d|ll|m|re|s|t|ve))?",$n="(?:"+vo+"(?:D|LL|M|RE|S|T|VE))?",xo=Ul+"?",To="["+Il+"]?",ql="(?:"+Vl+"(?:"+[Ll,Eo,So].join("|")+")"+To+xo+")*",zl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kl=To+xo+ql,Jl="(?:"+[kl,Eo,So].join("|")+")"+Kl,Yl=RegExp([Wt+"?"+wo+"+"+An+"(?="+[Rn,Wt,"$"].join("|")+")",Hl+"+"+$n+"(?="+[Rn,Wt+On,"$"].join("|")+")",Wt+"?"+On+"+"+An,Wt+"+"+$n,Wl,zl,bo,Jl].join("|"),"g");function Zl(e){return e.match(Yl)||[]}function Gl(e,t,r){return e=te(e),t=t,t===void 0?Ol(e)?Zl(e):Tl(e):e.match(t)||[]}var Xl="['’]",Ql=RegExp(Xl,"g");function tf(e){return function(t){return hl(Gl(Sl(t).replace(Ql,"")),e,"")}}var ef=tf(function(e,t,r){return t=t.toLowerCase(),e+(r?fl(t):t)});const Bt=ef;function rf(){this.__data__=new bt,this.size=0}function nf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function of(e){return this.__data__.get(e)}function sf(e){return this.__data__.has(e)}var af=200;function uf(e,t){var r=this.__data__;if(r instanceof bt){var n=r.__data__;if(!pe||n.length<af-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new xt(n)}return r.set(e,t),this.size=r.size,this}function Kt(e){var t=this.__data__=new bt(e);this.size=t.size}Kt.prototype.clear=rf,Kt.prototype.delete=nf,Kt.prototype.get=of,Kt.prototype.has=sf,Kt.prototype.set=uf;var Ro=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Dn=Ro&&typeof module=="object"&&module&&!module.nodeType&&module,cf=Dn&&Dn.exports===Ro,jn=cf?pt.Buffer:void 0;jn&&jn.allocUnsafe;function lf(e,t){return e.slice()}var ff=Mt(pt,"DataView");const Rr=ff;var hf=Mt(pt,"Promise");const Or=hf;var pf=Mt(pt,"Set");const Ar=pf;var Bn="[object Map]",df="[object Object]",Cn="[object Promise]",Nn="[object Set]",Pn="[object WeakMap]",In="[object DataView]",mf=kt(Rr),gf=kt(pe),yf=kt(Or),vf=kt(Ar),bf=kt(Er),Vt=wt;(Rr&&Vt(new Rr(new ArrayBuffer(1)))!=In||pe&&Vt(new pe)!=Bn||Or&&Vt(Or.resolve())!=Cn||Ar&&Vt(new Ar)!=Nn||Er&&Vt(new Er)!=Pn)&&(Vt=function(e){var t=wt(e),r=t==df?e.constructor:void 0,n=r?kt(r):"";if(n)switch(n){case mf:return In;case gf:return Bn;case yf:return Cn;case vf:return Nn;case bf:return Pn}return t});var wf=pt.Uint8Array;const Fn=wf;function _f(e){var t=new e.constructor(e.byteLength);return new Fn(t).set(new Fn(e)),t}var kn=gt?gt.prototype:void 0;kn&&kn.valueOf;function Ef(e,t){var r=_f(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function Sf(e){return typeof e.constructor=="function"&&!Jr(e)?Ca(Qi(e)):{}}yt&&yt.isMap;yt&&yt.isSet;var Mn=gt?gt.prototype:void 0;Mn&&Mn.valueOf;function xf(e){return function(t,r,n){for(var i=-1,o=Object(t),s=n(t),a=s.length;a--;){var c=s[++i];if(r(o[c],c,o)===!1)break}return t}}var Tf=xf();const Rf=Tf;var Of=function(){return pt.Date.now()};const sr=Of;var Af="Expected a function",$f=Math.max,Df=Math.min;function Oo(e,t,r){var n,i,o,s,a,c,u=0,l=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(Af);t=yn(t)||0,ft(r)&&(l=!!r.leading,f="maxWait"in r,o=f?$f(yn(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function h(g){var x=n,O=i;return n=i=void 0,u=g,s=e.apply(O,x),s}function d(g){return u=g,a=setTimeout(E,t),l?h(g):s}function m(g){var x=g-c,O=g-u,M=t-x;return f?Df(M,o-O):M}function b(g){var x=g-c,O=g-u;return c===void 0||x>=t||x<0||f&&O>=o}function E(){var g=sr();if(b(g))return y(g);a=setTimeout(E,m(g))}function y(g){return a=void 0,p&&n?h(g):(n=i=void 0,s)}function v(){a!==void 0&&clearTimeout(a),u=0,n=c=i=a=void 0}function w(){return a===void 0?s:y(sr())}function S(){var g=sr(),x=b(g);if(n=arguments,i=this,c=g,x){if(a===void 0)return d(c);if(f)return clearTimeout(a),a=setTimeout(E,t),h(c)}return a===void 0&&(a=setTimeout(E,t)),s}return S.cancel=v,S.flush=w,S}function $r(e,t,r){(r!==void 0&&!ye(e[t],r)||r===void 0&&!(t in e))&&Kr(e,t,r)}function jf(e){return Rt(e)&&qe(e)}function Dr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Bf(e){return Vi(e,Yr(e))}function Cf(e,t,r,n,i,o,s){var a=Dr(e,r),c=Dr(t,r),u=s.get(c);if(u){$r(e,r,u);return}var l=o?o(a,c,r+"",e,t,s):void 0,f=l===void 0;if(f){var p=fe(c),h=!p&&Ji(c),d=!p&&!h&&Zi(c);l=c,p||h||d?fe(a)?l=a:jf(a)?l=Na(a):h?(f=!1,l=lf(c)):d?(f=!1,l=Ef(c)):l=[]:eo(c)||Sr(c)?(l=a,Sr(a)?l=Bf(a):(!ft(a)||Xt(a))&&(l=Sf(c))):f=!1}f&&(s.set(c,l),i(l,c,n,o,s),s.delete(c)),$r(e,r,l)}function Ao(e,t,r,n,i){e!==t&&Rf(t,function(o,s){if(i||(i=new Kt),ft(o))Cf(e,t,s,r,Ao,n,i);else{var a=n?n(Dr(e,s),o,s+"",e,t,i):void 0;a===void 0&&(a=o),$r(e,s,a)}},Yr)}var Nf={"&":"&","<":"<",">":">",'"':""","'":"'"},Pf=fo(Nf);const If=Pf;var $o=/[&<>"']/g,Ff=RegExp($o.source);function kf(e){return e=te(e),e&&Ff.test(e)?e.replace($o,If):e}var Mf="[object String]";function Ot(e){return typeof e=="string"||!fe(e)&&Rt(e)&&wt(e)==Mf}function Uf(e,t){return Fi(t,function(r){return e[r]})}yt&&yt.isArrayBuffer;yt&&yt.isDate;var Lf=zi(function(e,t,r){Ao(e,t,r)});const ue=Lf;var Do=Object.prototype,Vf=Do.hasOwnProperty;function Un(e,t,r,n){return e===void 0||ye(e,Do[r])&&!Vf.call(n,r)?t:e}var Hf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function qf(e){return"\\"+Hf[e]}var zf=/<%=([\s\S]+?)%>/g;const jo=zf;var Wf=/<%-([\s\S]+?)%>/g;const Kf=Wf;var Jf=/<%([\s\S]+?)%>/g;const Yf=Jf;var Zf={escape:Kf,evaluate:Yf,interpolate:jo,variable:"",imports:{_:{escape:kf}}};const Ln=Zf;var Gf="Invalid `variable` option passed into `_.template`",Xf=/\b__p \+= '';/g,Qf=/\b(__p \+=) '' \+/g,th=/(__e\(.*?\)|\b__t\)) \+\n'';/g,eh=/[()=,{}\[\]\/\s]/,rh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_e=/($^)/,nh=/['\n\r\u2028\u2029\\]/g,ih=Object.prototype,Vn=ih.hasOwnProperty;function oh(e,t,r){var n=Ln.imports._.templateSettings||Ln;e=te(e),t=Tn({},t,n,Un);var i=Tn({},t.imports,n.imports,Un),o=zu(i),s=Uf(i,o),a,c,u=0,l=t.interpolate||_e,f="__p += '",p=RegExp((t.escape||_e).source+"|"+l.source+"|"+(l===jo?rh:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),h=Vn.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
3
3
|
`:"";e.replace(p,function(b,E,y,v,w,S){return y||(y=v),f+=e.slice(u,S).replace(nh,qf),E&&(a=!0,f+=`' +
|
|
4
4
|
__e(`+E+`) +
|
|
5
5
|
'`),w&&(c=!0,f+=`';
|
|
@@ -51,7 +51,7 @@ version: 2.9.0
|
|
|
51
51
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
52
52
|
* @name @vtj/core
|
|
53
53
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
54
|
-
* @version 0.11.
|
|
54
|
+
* @version 0.11.1-alpha.1
|
|
55
55
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
56
56
|
*/const ep="VueMaterial",rp="VueRouterMaterial",np={[ep]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[rp]:["RouterView","RouterLink"]};let ip=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 op=Object.defineProperty,sp=(e,t,r)=>t in e?op(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ut=(e,t,r)=>sp(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 ap=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ap));function Go(e,t){return function(){return e.apply(t,arguments)}}const{toString:up}=Object.prototype,{getPrototypeOf:Qr}=Object,Je=(e=>t=>{const r=up.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),dt=e=>(e=e.toLowerCase(),t=>Je(t)===e),Ye=e=>t=>typeof t===e,{isArray:re}=Array,de=Ye("undefined");function cp(e){return e!==null&&!de(e)&&e.constructor!==null&&!de(e.constructor)&&st(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xo=dt("ArrayBuffer");function lp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xo(e.buffer),t}const fp=Ye("string"),st=Ye("function"),Qo=Ye("number"),Ze=e=>e!==null&&typeof e=="object",hp=e=>e===!0||e===!1,je=e=>{if(Je(e)!=="object")return!1;const t=Qr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},pp=dt("Date"),dp=dt("File"),mp=dt("Blob"),gp=dt("FileList"),yp=e=>Ze(e)&&st(e.pipe),vp=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||st(e.append)&&((t=Je(e))==="formdata"||t==="object"&&st(e.toString)&&e.toString()==="[object FormData]"))},bp=dt("URLSearchParams"),[wp,_p,Ep,Sp]=["ReadableStream","Request","Response","Headers"].map(dt),xp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ve(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),re(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(n=0;n<s;n++)a=o[n],t.call(null,e[a],a,e)}}function ts(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Pt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,es=e=>!de(e)&&e!==Pt;function Cr(){const{caseless:e}=es(this)&&this||{},t={},r=(n,i)=>{const o=e&&ts(t,i)||i;je(t[o])&&je(n)?t[o]=Cr(t[o],n):je(n)?t[o]=Cr({},n):re(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ve(arguments[n],r);return t}const Tp=(e,t,r,{allOwnKeys:n}={})=>(ve(t,(i,o)=>{r&&st(i)?e[o]=Go(i,r):e[o]=i},{allOwnKeys:n}),e),Rp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Op=(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)},Ap=(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Qr(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},$p=(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},Dp=e=>{if(!e)return null;if(re(e))return e;let t=e.length;if(!Qo(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},jp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Qr(Uint8Array)),Bp=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},Cp=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Np=dt("HTMLFormElement"),Pp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),fi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ip=dt("RegExp"),rs=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ve(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},Fp=e=>{rs(e,(t,r)=>{if(st(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(st(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},kp=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return re(e)?n(e):n(String(e).split(t)),r},Mp=()=>{},Up=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Lp(e){return!!(e&&st(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Vp=e=>{const t=new Array(10),r=(n,i)=>{if(Ze(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=re(n)?[]:{};return ve(n,(s,a)=>{const c=r(s,i+1);!de(c)&&(o[a]=c)}),t[i]=void 0,o}}return n};return r(e,0)},Hp=dt("AsyncFunction"),qp=e=>e&&(Ze(e)||st(e))&&st(e.then)&&st(e.catch),ns=((e,t)=>e?setImmediate:t?((r,n)=>(Pt.addEventListener("message",({source:i,data:o})=>{i===Pt&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Pt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",st(Pt.postMessage)),zp=typeof queueMicrotask<"u"?queueMicrotask.bind(Pt):typeof process<"u"&&process.nextTick||ns,R={isArray:re,isArrayBuffer:Xo,isBuffer:cp,isFormData:vp,isArrayBufferView:lp,isString:fp,isNumber:Qo,isBoolean:hp,isObject:Ze,isPlainObject:je,isReadableStream:wp,isRequest:_p,isResponse:Ep,isHeaders:Sp,isUndefined:de,isDate:pp,isFile:dp,isBlob:mp,isRegExp:Ip,isFunction:st,isStream:yp,isURLSearchParams:bp,isTypedArray:jp,isFileList:gp,forEach:ve,merge:Cr,extend:Tp,trim:xp,stripBOM:Rp,inherits:Op,toFlatObject:Ap,kindOf:Je,kindOfTest:dt,endsWith:$p,toArray:Dp,forEachEntry:Bp,matchAll:Cp,isHTMLForm:Np,hasOwnProperty:fi,hasOwnProp:fi,reduceDescriptors:rs,freezeMethods:Fp,toObjectSet:kp,toCamelCase:Pp,noop:Mp,toFiniteNumber:Up,findKey:ts,global:Pt,isContextDefined:es,isSpecCompliantForm:Lp,toJSONObject:Vp,isAsyncFn:Hp,isThenable:qp,setImmediate:ns,asap:zp};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 is=W.prototype,os={};["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=>{os[e]={value:e}});Object.defineProperties(W,os);Object.defineProperty(is,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,o)=>{const s=Object.create(is);return R.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),W.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const Wp=null;function Nr(e){return R.isPlainObject(e)||R.isArray(e)}function ss(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function hi(e,t,r){return e?e.concat(t).map(function(n,i){return n=ss(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Kp(e){return R.isArray(e)&&!e.some(Nr)}const Jp=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function Ge(e,t,r){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,d){return!R.isUndefined(d[h])});const n=r.metaTokens,i=r.visitor||u,o=r.dots,s=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(R.isDate(h))return h.toISOString();if(!a&&R.isBlob(h))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(h)||R.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,d,m){let b=h;if(h&&!m&&typeof h=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(R.isArray(h)&&Kp(h)||(R.isFileList(h)||R.endsWith(d,"[]"))&&(b=R.toArray(h)))return d=ss(d),b.forEach(function(E,y){!(R.isUndefined(E)||E===null)&&t.append(s===!0?hi([d],y,o):s===null?d:d+"[]",c(E))}),!1}return Nr(h)?!0:(t.append(hi(m,d,o),c(h)),!1)}const l=[],f=Object.assign(Jp,{defaultVisitor:u,convertValue:c,isVisitable:Nr});function p(h,d){if(!R.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(h),R.forEach(h,function(m,b){(!(R.isUndefined(m)||m===null)&&i.call(t,m,R.isString(b)?b.trim():b,d,f))===!0&&p(m,d?d.concat(b):[b])}),l.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return p(e),t}function pi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function tn(e,t){this._pairs=[],e&&Ge(e,this,t)}const as=tn.prototype;as.append=function(e,t){this._pairs.push([e,t])};as.toString=function(e){const t=e?function(r){return e.call(this,r,pi)}:pi;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Yp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function us(e,t,r){if(!t)return e;const n=r&&r.encode||Yp;R.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(t,r):o=R.isURLSearchParams(t)?t.toString():new tn(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}let di=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 cs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zp=typeof URLSearchParams<"u"?URLSearchParams:tn,Gp=typeof FormData<"u"?FormData:null,Xp=typeof Blob<"u"?Blob:null,Qp={isBrowser:!0,classes:{URLSearchParams:Zp,FormData:Gp,Blob:Xp},protocols:["http","https","file","blob","url","data"]},en=typeof window<"u"&&typeof document<"u",Pr=typeof navigator=="object"&&navigator||void 0,td=en&&(!Pr||["ReactNative","NativeScript","NS"].indexOf(Pr.product)<0),ed=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rd=en&&window.location.href||"http://localhost",nd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:en,hasStandardBrowserEnv:td,hasStandardBrowserWebWorkerEnv:ed,navigator:Pr,origin:rd},Symbol.toStringTag,{value:"Module"})),et=V(V({},nd),Qp);function id(e,t){return Ge(e,new et.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return et.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function od(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sd(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}function ls(e){function t(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=o>=r.length;return s=!s&&R.isArray(i)?i.length:s,c?(R.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!R.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&R.isArray(i[s])&&(i[s]=sd(i[s])),!a)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,i)=>{t(od(n),i,r,0)}),r}return null}function ad(e,t,r){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const be={transitional:cs,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(ls(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return id(e,this.formSerializer).toString();if((o=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ge(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),ad(e)):e}],transformResponse:[function(e){const t=this.transitional||be.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?W.from(o,W.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:et.classes.FormData,Blob:et.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{be.headers[e]={}});const ud=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"]),cd=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
57
57
|
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&ud[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},mi=Symbol("internals");function ae(e){return e&&String(e).trim().toLowerCase()}function Be(e){return e===!1||e==null?e:R.isArray(e)?e.map(Be):String(e)}function ld(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 fd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function hr(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 hd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function pd(e,t){const r=R.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}let ot=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,c,u){const l=ae(c);if(!l)throw new Error("header name must be a non-empty string");const f=R.findKey(i,l);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||c]=Be(a))}const s=(a,c)=>R.forEach(a,(u,l)=>o(u,l,c));if(R.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(R.isString(t)&&(t=t.trim())&&!fd(t))s(cd(t),r);else if(R.isHeaders(t))for(const[a,c]of t.entries())o(c,a,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=ae(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return ld(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=ae(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||hr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=ae(s),s){const a=R.findKey(n,s);a&&(!r||hr(n,n[a],a,r))&&(delete n[a],i=!0)}}return R.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||hr(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return R.forEach(this,(i,o)=>{const s=R.findKey(n,o);if(s){r[s]=Be(i),delete r[o];return}const a=t?hd(o):String(o).trim();a!==o&&delete r[o],r[a]=Be(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&R.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
@@ -62,15 +62,15 @@ version: 2.9.0
|
|
|
62
62
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
63
63
|
* @name @vtj/renderer
|
|
64
64
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
65
|
-
* @version 0.11.
|
|
65
|
+
* @version 0.11.1-alpha.1
|
|
66
66
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
67
|
-
*/const vr="0.11.
|
|
68
|
-
`)+s;const a=`with(${r?"{}":"$scope || {}"}) { ${s} }`;return new Function("$scope",a)(t)}catch(o){if(Gt.error("parseExpression.error",o,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw o}}function Le(e,t,r=!1,n=!1){var o;const i=ge(e,t,r,n);if(typeof i!="function"&&(Gt.error("parseFunction.error","not a function",e,(o=t==null?void 0:t.__self)!=null?o:t),n))throw new Error(`"${e.value}" not a function`);return i}function ht(e){return e&&e.type==="JSExpression"}function tr(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const Em={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},Sm=Symbol("access");class xm{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",Q.Raw);z(this,"interceptResponse",!0);this.options=Object.assign({},Em,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===Q.Raw&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:o}=this.options;this.setData(t),this.data&&(mr.save(r,t,{type:"local",prefix:n}),i&&yr.set(o,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,mr.remove(t,{type:"local",prefix:r}),n&&yr.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):li(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return li(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this,t.provide(Sm,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=>ci(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?ci(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=mr.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!yr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===Ie){const r=t.params.id;return r&&this.can(r)}return!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),Xt(i)?(i(),r(!1)):Ot(i)?r(i):r(!1)}}r(!1),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 n;const{unauthorizedCode:r=401}=this.options;return t.status===r||((n=t.data)==null?void 0:n.code)===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*(){const{alert:r}=this.options;return r?(yield Ko(150),yield r(t,{title:"提示",type:"warning"}).catch(()=>!1)):!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 Tm(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:o,useTitle:s}=e;let a=null;return{request:rn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:c=>{var u,l;return((u=c.data)==null?void 0:u.code)===0||!!((l=c.data)!=null&&l.success)},failMessage:!0,showError:c=>{t&&t(c||"未知错误")},showLoading:()=>{a&&a.close(),r&&(a=r())},hideLoading:()=>{a&&(a.close(),a=null)}},n)}),jsonp:Ts,notify:t,loading:r,useTitle:s,startupComponent:i,access:o?new xm(o):void 0}}function Rm(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,tt(V({},e.jsonpOptions),{query:i}));{const i=e.headers?ge(e.headers,{},!0):void 0,o={url:e.url,method:e.method,settings:tt(V({},e.settings),{headers:i})};return(s,a)=>(delete o.data,n.send(ue(o,a||{},{data:s})))}}function Om(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(o,s)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,o,s)}}function Am(e=[],t=[],r){const n={};for(const i of e)n[i.id]=Rm(i,r);for(const i of t)n[i.id]=Om(i,r);return n}function $m(){return k(this,arguments,function*(e=[],t=window){const r=me(t);r&&(Os(t),e.forEach(n=>jm(r,n)))})}function Dm(e,t=window){const r=tr(e.mockTemplate)&&e.mockTemplate.value?Le(e.mockTemplate,{},!0):void 0,n=me(t);return(...i)=>k(this,null,function*(){let o={};if(r)try{o=yield r.apply(r,i)}catch(s){Gt.warn("模拟数据模版异常",s)}return n==null?void 0:n.mock(o)})}function jm(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=Xr(`${r}(.*)`),o=Yh(r,{decode:decodeURIComponent}),s=ge(n,{},!0);e.mock(i,a=>{var f;const c=Pe.parse(a.url)||{},u=a.body instanceof FormData?Vd(a.body):a.body,l=(f=o(a.url))==null?void 0:f.params;return Object.assign(a,{data:u,params:c,query:l}),e.mock(s(a))})}}function Os(e=window){const t=me(e);t&&(t._mocked={})}class Bm{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=He){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&&$i.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){$i.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===Q.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return Le({type:i,value:o},this)}else return Le(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===Q.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return ge({type:i,value:o},this)}else return ge(t,this)}__ref(t=null,r){if(this.__mode!==Q.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>k(this,null,function*(){var o,s;yield Ko(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((s=(o=n==null?void 0:n._)==null?void 0:o.vnode)==null?void 0:s.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,Q.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,n)),n})}__getRefEl(t,r,n){const i=t[r];if(i&&n!==i){const o=new Set([].concat(i,n));return Array.from(o)}else return n}__clone(t={}){const r=V(V({},this.context),t),n=tt(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Hr(e){var f,p;const{Vue:t=He,mode:r=Q.Runtime,components:n={},libs:i={},apis:o={},loader:s}=e,a=t.computed(()=>e.dsl),c={$components:n,$libs:i,$apis:o},u=new Bm({mode:r,dsl:a.value,attrs:c}),l=t.defineComponent(V({name:a.value.name,props:V({},Nm((f=a.value.props)!=null?f:[],u)),setup(h){var v,w,S,g;u.$props=h,u.props=h,a.value.id&&an(e.window||window,a.value.id,a.value.css||""),u.state=Pm(t,(v=a.value.state)!=null?v:{},u);const d=Im(t,(w=a.value.computed)!=null?w:{},u),m=Fm((S=a.value.methods)!=null?S:{},u),b=km(t,a.value.inject,u),E=Mm(a.value.dataSources||{},u),y=V(V(V(V({},b),d),m),E);return u.setup(y,t),Um(t,(g=a.value.watch)!=null?g:[],u),{vtj:u}},emits:Cm(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const h=a.value.nodes||[];return h.length===1?Ve(h[0],u,t,s):h.map(d=>Ve(d,u,t,s))}},Lm((p=a.value.lifeCycles)!=null?p:{},u)));return{renderer:t.markRaw(l),context:u}}function Cm(e=[]){return e.map(t=>Ot(t)?t:t.name)}function Nm(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>cm[i]):void 0;return e.map(n=>Ot(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:ht(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function Pm(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let o=t[i];return ht(o)?o=r.__parseExpression(o):tr(o)&&(o=r.__parseFunction(o)),n[i]=o,n},{}))}function Im(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,o])=>(n[i]=e.computed(r.__parseFunction(o)),n),{})}function Fm(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function km(e,t=[],r){return t.reduce((n,i)=>{var u;const{name:o,from:s}=i||{};i.default;const a=ht(s)?r.__parseExpression(s)||o:s!=null?s:o,c=ht(i.default)?r.__parseExpression(i.default):(u=i.default)!=null?u:null;return n[o]=e.inject(a,c),n},{})}function Mm(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=Dm(i);else if(i.ref){const o=t.$apis[i.ref],s=tr(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>k(this,null,function*(){const c=yield o.apply(t,a);return s?s(c):c})}return r},{})}function Um(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Lm(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let wr=[],zt={};const Vm=e=>e;function As(r){return k(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,o=n.filter(a=>sn(a));if(o.length===0||!i)return null;const s=n.filter(a=>on(a));return s.length&&ym(s,t),yield vm(o,i,t).catch(a=>(console.warn("loadScriptUrl error",o,i,a),null))})}function qr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(wr.forEach(i=>{delete n.window[i]}),wr=[]),(i,o,s=He)=>{if(!o||typeof o=="string")return i;if(o.type==="Schema"&&o.id){let a=zt[o.id];return a||(a=zt[o.id]=s.defineAsyncComponent(()=>k(this,null,function*(){const c=yield t(o.id);return c&&(c.name=i),c?Hr(tt(V({},n),{Vue:s,dsl:c,mode:Q.Runtime,loader:qr(e)})).renderer:null})),a)}if(o.type==="UrlSchema"&&o.url){let a=zt[o.url];return a||(a=zt[o.url]=s.defineAsyncComponent(()=>k(this,null,function*(){const c=yield r(o.url);return c&&(c.name=i),c?Hr(tt(V({},n),{Vue:s,dsl:c,mode:Q.Runtime,loader:qr(e)})).renderer:null})),a)}if(o.type==="Plugin"){let a=o.library?zt[o.library]:null;return a||(o.library&&wr.push(o.library),a=zt[o.library||Symbol()]=s.defineAsyncComponent(()=>k(this,null,function*(){return(yield As(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return i}}function Ve(e,t,r=He,n=Vm){var m;if(!e||!e.name||e.invisible)return null;const i=(m=r.getCurrentInstance())==null?void 0:m.appContext,{id:o=null,directives:s=[]}=e,{vIf:a,vFor:c,vShow:u,vModels:l,vBind:f,vHtml:p,others:h}=qm(s);if(a&&!zm(a,t))return null;const d=b=>{var O,M,_,T;const E=b.$components,y=(()=>{var j,I,D,C;if(e.name==="component")return Wm(b,(j=e.props)==null?void 0:j.is);if(e.name==="slot")return e.name;const F=n(e.name,e.from,r);return Ot(F)?wm(F)||_m(F)?F:(C=(D=E[F])!=null?D:(I=i==null?void 0:i.app)==null?void 0:I.component(F))!=null?C:F:F})(),v=Km(o,(O=e.props)!=null?O:{},b),w=Jm(r,(M=e.events)!=null?M:{},b);if(e.name==="slot")return Ym(r,e,v,b,n);f&&Object.assign(v,b.__parseExpression(f.value)),u&&(v.style=Object.assign((_=v.style)!=null?_:{},Gm(u,b))),p&&Object.assign(v,Xm(p,b)),l.forEach(F=>{Object.assign(v,Qm(r,F,b))});const S=tg(r,(T=e.children)!=null?T:[],b,n,e);let g=r.createVNode(y,V(V({},v),w),S);const x=i?Hm(i,h,b):[];return x.length&&(g=r.withDirectives(g,x)),g};return c?ng(c,d,t):d(t)}function Hm(e,t,r){const n=e.app;return t.map(i=>{const o=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!o)return null;const s=[o];return i.value&&s.push(r.__parseExpression(i.value)),i.arg&&s.push(i.arg),i.modifiers&&s.push(i.modifiers),s}).filter(i=>!!i)}function qm(e=[]){const t=e.find(c=>Bt(c.name)==="vIf"),r=e.find(c=>Bt(c.name)==="vFor"),n=e.find(c=>Bt(c.name)==="vShow"),i=e.find(c=>Bt(c.name)==="vBind"),o=e.find(c=>Bt(c.name)==="vHtml"),s=e.filter(c=>Bt(c.name)==="vModel"),a=e.filter(c=>!um.includes(Bt(c.name)));return{vIf:t,vFor:r,vShow:n,vModels:s,vBind:i,others:a,vHtml:o}}function zm(e,t){return!!t.__parseExpression(e.value)}function Wm(e,t){return t?ht(t)?e.__parseExpression(t):t:"div"}function Km(e,t,r){const n=zr(t,r);return n.ref=r.__ref(e,n.ref),n}function zr(e,t){return ht(e)?t.__parseExpression(e):tr(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>zr(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=zr(i,t),r},{}):e}function Jm(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((o,s)=>{const a=t[s],c=$s(a.modifiers),u=c.find(p=>n.includes(p)),l="on"+lo(s)+(u&&i[u]||""),f=r.__parseFunction(a.handler);return f&&(o[l]=e.withModifiers(f,c)),o},{})}function $s(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function Ym(e,t,r,n,i){var c;const{children:o}=t,s=Zm(t,n),a=(c=n.$slots)==null?void 0:c[s.name];return a?a(r):o?Ot(o)?e.createTextVNode(o):ht(o)?e.createTextVNode(Rs(n.__parseExpression(o))):Array.isArray(o)?o.map(u=>Ve(u,n,e,i)):null:null}function Zm(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:ht(n)?t.__parseExpression(n):n,params:[]}}function Gm(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function Xm(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function Qm(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
|
|
67
|
+
*/const vr="0.11.1-alpha.1";var Q=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(Q||{});const $i=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],um=["vIf","vShow","vModel","vFor","vBind","vHtml"],cm={String,Number,Boolean,Array,Object,Function,Date},Ie="VtjPage",br="VtjHomepage",lm="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot".split(","),fm="component,slot".split(",");function $e(e,t){return e.map(r=>Ho(r)||r.startsWith("/")?r:`${t}${r}`)}function on(e){return/\.css$/.test(e)}function sn(e){return/\.js$/.test(e)}function hm(e){return/\.json$/.test(e)}function pm(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function dm(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],o=[],s=[],a=[],c={},u={},l=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:m,localeLibrary:b})=>{p==null||p.forEach(E=>{sn(E)&&i.push(pm(E,r)),on(E)&&o.push(E)}),d&&(a.push(d),c[d]=$e(p||[],t),b&&(u[d]=b)),h&&s.push(h),m&&l.push(m),d&&m&&(f[m]=d)}),{scripts:$e(i,t),css:$e(o,t),materials:$e(s,t),libraryExports:a,materialExports:qh(l),materialMapLibrary:f,libraryMap:c,libraryLocaleMap:u}}function mm(e,t){var o;const{name:r,parent:n,alias:i}=e;return n?(o=t[n])==null?void 0:o[i||r]:t[i||r]}function Rs(e){return Ot(e)?e:JSON.stringify(e)}function an(e,t,r){const n=e.CSSStyleSheet;if(n.prototype.replaceSync){const i=new n;i.id=t,i.replaceSync(r);const o=e.document,s=o.adoptedStyleSheets,a=Array.from(s).filter(c=>c.id!==t);o.adoptedStyleSheets=[...a,i]}else{const i=e.document;let o=i.getElementById(t);o?o.innerHTML=r:(o=i.createElement("style"),o.id=t,o.innerHTML=r,i.head.appendChild(o))}}function gm(e,t){return k(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&an(window,e,r)})}function ym(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const o=r.createElement("link");o.rel="stylesheet",o.id=i,o.href=i,n.appendChild(o)}}function vm(n,i){return k(this,arguments,function*(e,t,r=window){const o=r.document,s=r.document.head;let a=r[t];return a?a.default||a:new Promise((c,u)=>{for(const l of e){const f=o.createElement("script");f.src=l,f.onload=()=>{a=r[t],a?c(a.default||a):u(null)},f.onerror=p=>{u(p)},s.appendChild(f)}})})}function bm(e){return Xt(e)||Xt(e==null?void 0:e.install)}function wm(e){return fm.includes(e)}function _m(e){return lm.includes(e)}function me(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 ge(e,t,r=!1,n=!1){var i;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let s=(e.value||"").trim();s=s.replace(/this(\W|$)/g,(c,u)=>`__self${u}`),s=o.join(`
|
|
68
|
+
`)+s;const a=`with(${r?"{}":"$scope || {}"}) { ${s} }`;return new Function("$scope",a)(t)}catch(o){if(Gt.error("parseExpression.error",o,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw o}}function Le(e,t,r=!1,n=!1){var o;const i=ge(e,t,r,n);if(typeof i!="function"&&(Gt.error("parseFunction.error","not a function",e,(o=t==null?void 0:t.__self)!=null?o:t),n))throw new Error(`"${e.value}" not a function`);return i}function ht(e){return e&&e.type==="JSExpression"}function tr(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const Em={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},Sm=Symbol("access");class xm{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",Q.Raw);z(this,"interceptResponse",!0);this.options=Object.assign({},Em,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===Q.Raw&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:o}=this.options;this.setData(t),this.data&&(mr.save(r,t,{type:"local",prefix:n}),i&&yr.set(o,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,mr.remove(t,{type:"local",prefix:r}),n&&yr.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):li(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return li(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this,t.provide(Sm,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=>ci(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?ci(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=mr.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!yr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===Ie){const r=t.params.id;return r&&this.can(r)}return!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),Xt(i)?(i(),r(!1)):Ot(i)?r(i):r(!1)}}r(!1),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 n;const{unauthorizedCode:r=401}=this.options;return t.status===r||((n=t.data)==null?void 0:n.code)===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*(){const{alert:r}=this.options;return r?(yield Ko(150),yield r(t,{title:"提示",type:"warning"}).catch(()=>!1)):!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 Tm(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:o,useTitle:s,alert:a}=e;let c=null;return{request:rn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:u=>{var l,f;return((l=u.data)==null?void 0:l.code)===0||!!((f=u.data)!=null&&f.success)},failMessage:!0,showError:u=>{t&&t(u||"未知错误")},showLoading:()=>{c&&c.close(),r&&(c=r())},hideLoading:()=>{c&&(c.close(),c=null)}},n)}),jsonp:Ts,notify:t,loading:r,useTitle:s,startupComponent:i,access:o?new xm(V({alert:a},o)):void 0}}function Rm(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,tt(V({},e.jsonpOptions),{query:i}));{const i=e.headers?ge(e.headers,{},!0):void 0,o={url:e.url,method:e.method,settings:tt(V({},e.settings),{headers:i})};return(s,a)=>(delete o.data,n.send(ue(o,a||{},{data:s})))}}function Om(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(o,s)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,o,s)}}function Am(e=[],t=[],r){const n={};for(const i of e)n[i.id]=Rm(i,r);for(const i of t)n[i.id]=Om(i,r);return n}function $m(){return k(this,arguments,function*(e=[],t=window){const r=me(t);r&&(Os(t),e.forEach(n=>jm(r,n)))})}function Dm(e,t=window){const r=tr(e.mockTemplate)&&e.mockTemplate.value?Le(e.mockTemplate,{},!0):void 0,n=me(t);return(...i)=>k(this,null,function*(){let o={};if(r)try{o=yield r.apply(r,i)}catch(s){Gt.warn("模拟数据模版异常",s)}return n==null?void 0:n.mock(o)})}function jm(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=Xr(`${r}(.*)`),o=Yh(r,{decode:decodeURIComponent}),s=ge(n,{},!0);e.mock(i,a=>{var f;const c=Pe.parse(a.url)||{},u=a.body instanceof FormData?Vd(a.body):a.body,l=(f=o(a.url))==null?void 0:f.params;return Object.assign(a,{data:u,params:c,query:l}),e.mock(s(a))})}}function Os(e=window){const t=me(e);t&&(t._mocked={})}class Bm{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=He){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&&$i.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){$i.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===Q.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return Le({type:i,value:o},this)}else return Le(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===Q.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return ge({type:i,value:o},this)}else return ge(t,this)}__ref(t=null,r){if(this.__mode!==Q.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>k(this,null,function*(){var o,s;yield Ko(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((s=(o=n==null?void 0:n._)==null?void 0:o.vnode)==null?void 0:s.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,Q.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,n)),n})}__getRefEl(t,r,n){const i=t[r];if(i&&n!==i){const o=new Set([].concat(i,n));return Array.from(o)}else return n}__clone(t={}){const r=V(V({},this.context),t),n=tt(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Hr(e){var f,p;const{Vue:t=He,mode:r=Q.Runtime,components:n={},libs:i={},apis:o={},loader:s}=e,a=t.computed(()=>e.dsl),c={$components:n,$libs:i,$apis:o},u=new Bm({mode:r,dsl:a.value,attrs:c}),l=t.defineComponent(V({name:a.value.name,props:V({},Nm((f=a.value.props)!=null?f:[],u)),setup(h){var v,w,S,g;u.$props=h,u.props=h,a.value.id&&an(e.window||window,a.value.id,a.value.css||""),u.state=Pm(t,(v=a.value.state)!=null?v:{},u);const d=Im(t,(w=a.value.computed)!=null?w:{},u),m=Fm((S=a.value.methods)!=null?S:{},u),b=km(t,a.value.inject,u),E=Mm(a.value.dataSources||{},u),y=V(V(V(V({},b),d),m),E);return u.setup(y,t),Um(t,(g=a.value.watch)!=null?g:[],u),{vtj:u}},emits:Cm(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const h=a.value.nodes||[];return h.length===1?Ve(h[0],u,t,s):h.map(d=>Ve(d,u,t,s))}},Lm((p=a.value.lifeCycles)!=null?p:{},u)));return{renderer:t.markRaw(l),context:u}}function Cm(e=[]){return e.map(t=>Ot(t)?t:t.name)}function Nm(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>cm[i]):void 0;return e.map(n=>Ot(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:ht(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function Pm(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let o=t[i];return ht(o)?o=r.__parseExpression(o):tr(o)&&(o=r.__parseFunction(o)),n[i]=o,n},{}))}function Im(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,o])=>(n[i]=e.computed(r.__parseFunction(o)),n),{})}function Fm(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function km(e,t=[],r){return t.reduce((n,i)=>{var u;const{name:o,from:s}=i||{};i.default;const a=ht(s)?r.__parseExpression(s)||o:s!=null?s:o,c=ht(i.default)?r.__parseExpression(i.default):(u=i.default)!=null?u:null;return n[o]=e.inject(a,c),n},{})}function Mm(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=Dm(i);else if(i.ref){const o=t.$apis[i.ref],s=tr(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>k(this,null,function*(){const c=yield o.apply(t,a);return s?s(c):c})}return r},{})}function Um(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Lm(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let wr=[],zt={};const Vm=e=>e;function As(r){return k(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,o=n.filter(a=>sn(a));if(o.length===0||!i)return null;const s=n.filter(a=>on(a));return s.length&&ym(s,t),yield vm(o,i,t).catch(a=>(console.warn("loadScriptUrl error",o,i,a),null))})}function qr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(wr.forEach(i=>{delete n.window[i]}),wr=[]),(i,o,s=He)=>{if(!o||typeof o=="string")return i;if(o.type==="Schema"&&o.id){let a=zt[o.id];return a||(a=zt[o.id]=s.defineAsyncComponent(()=>k(this,null,function*(){const c=yield t(o.id);return c&&(c.name=i),c?Hr(tt(V({},n),{Vue:s,dsl:c,mode:Q.Runtime,loader:qr(e)})).renderer:null})),a)}if(o.type==="UrlSchema"&&o.url){let a=zt[o.url];return a||(a=zt[o.url]=s.defineAsyncComponent(()=>k(this,null,function*(){const c=yield r(o.url);return c&&(c.name=i),c?Hr(tt(V({},n),{Vue:s,dsl:c,mode:Q.Runtime,loader:qr(e)})).renderer:null})),a)}if(o.type==="Plugin"){let a=o.library?zt[o.library]:null;return a||(o.library&&wr.push(o.library),a=zt[o.library||Symbol()]=s.defineAsyncComponent(()=>k(this,null,function*(){return(yield As(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return i}}function Ve(e,t,r=He,n=Vm){var m;if(!e||!e.name||e.invisible)return null;const i=(m=r.getCurrentInstance())==null?void 0:m.appContext,{id:o=null,directives:s=[]}=e,{vIf:a,vFor:c,vShow:u,vModels:l,vBind:f,vHtml:p,others:h}=qm(s);if(a&&!zm(a,t))return null;const d=b=>{var O,M,_,T;const E=b.$components,y=(()=>{var j,I,D,C;if(e.name==="component")return Wm(b,(j=e.props)==null?void 0:j.is);if(e.name==="slot")return e.name;const F=n(e.name,e.from,r);return Ot(F)?wm(F)||_m(F)?F:(C=(D=E[F])!=null?D:(I=i==null?void 0:i.app)==null?void 0:I.component(F))!=null?C:F:F})(),v=Km(o,(O=e.props)!=null?O:{},b),w=Jm(r,(M=e.events)!=null?M:{},b);if(e.name==="slot")return Ym(r,e,v,b,n);f&&Object.assign(v,b.__parseExpression(f.value)),u&&(v.style=Object.assign((_=v.style)!=null?_:{},Gm(u,b))),p&&Object.assign(v,Xm(p,b)),l.forEach(F=>{Object.assign(v,Qm(r,F,b))});const S=tg(r,(T=e.children)!=null?T:[],b,n,e);let g=r.createVNode(y,V(V({},v),w),S);const x=i?Hm(i,h,b):[];return x.length&&(g=r.withDirectives(g,x)),g};return c?ng(c,d,t):d(t)}function Hm(e,t,r){const n=e.app;return t.map(i=>{const o=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!o)return null;const s=[o];return i.value&&s.push(r.__parseExpression(i.value)),i.arg&&s.push(i.arg),i.modifiers&&s.push(i.modifiers),s}).filter(i=>!!i)}function qm(e=[]){const t=e.find(c=>Bt(c.name)==="vIf"),r=e.find(c=>Bt(c.name)==="vFor"),n=e.find(c=>Bt(c.name)==="vShow"),i=e.find(c=>Bt(c.name)==="vBind"),o=e.find(c=>Bt(c.name)==="vHtml"),s=e.filter(c=>Bt(c.name)==="vModel"),a=e.filter(c=>!um.includes(Bt(c.name)));return{vIf:t,vFor:r,vShow:n,vModels:s,vBind:i,others:a,vHtml:o}}function zm(e,t){return!!t.__parseExpression(e.value)}function Wm(e,t){return t?ht(t)?e.__parseExpression(t):t:"div"}function Km(e,t,r){const n=zr(t,r);return n.ref=r.__ref(e,n.ref),n}function zr(e,t){return ht(e)?t.__parseExpression(e):tr(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>zr(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=zr(i,t),r},{}):e}function Jm(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((o,s)=>{const a=t[s],c=$s(a.modifiers),u=c.find(p=>n.includes(p)),l="on"+lo(s)+(u&&i[u]||""),f=r.__parseFunction(a.handler);return f&&(o[l]=e.withModifiers(f,c)),o},{})}function $s(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function Ym(e,t,r,n,i){var c;const{children:o}=t,s=Zm(t,n),a=(c=n.$slots)==null?void 0:c[s.name];return a?a(r):o?Ot(o)?e.createTextVNode(o):ht(o)?e.createTextVNode(Rs(n.__parseExpression(o))):Array.isArray(o)?o.map(u=>Ve(u,n,e,i)):null:null}function Zm(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:ht(n)?t.__parseExpression(n):n,params:[]}}function Gm(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function Xm(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function Qm(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
|
|
69
69
|
${t.value.value} = v;
|
|
70
70
|
}`:"(v) => {}"},i=r.__parseFunction(n),o=$s(ht(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),s=ht(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[s]:r.__parseExpression(t.value),[`onUpdate:${s}`]:o.length&&i?e.withModifiers(i,o):i}}function tg(e,t,r,n,i){if(!t)return null;if(Ot(t))return{default:()=>t};if(ht(t))return{default:()=>Rs(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const o=eg(t),s=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(o).reduce((a,[c,{nodes:u,params:l}])=>(a[c]=f=>{const p=l.length?zh(f!=null?f:{},l):s(f);return u.map(h=>Ve(h,r.__clone(p),e,n))},a),{})}return null}function eg(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=rg(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params)):t[i]={nodes:[r],params:n.params}}return t}function rg(e="default"){return Ot(e)?{name:e,params:[]}:V({params:[]},e)}function ng(e,t,r){const{value:n,iterator:i}=e,{item:o="item",index:s="index"}=i||{};let a=r.__parseExpression(n)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((c,u)=>u+1)),Array.isArray(a)?a.map((c,u)=>t(r.__clone({[o]:c,[s]:u}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const Di=Ci({name:"VtjPageContainer",setup(){return k(this,null,function*(){const e=ag(),t=Vs(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,o=Us(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:s}=e==null?void 0:e.adapter;s&&s(n.title||"VTJ")}return{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:o,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?_r(e,tt(V({},t),{key:r})):_r("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),ig=Ci({name:"VtjStartupContainer",render(){return _r("div","page not found!")}}),Ds=Symbol("Provider");class og extends ip{constructor(r){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:Mr,jsonp:Ts});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"service");z(this,"project",null);z(this,"components",{});z(this,"nodeEnv","development");z(this,"router",null);z(this,"materialPath","./");z(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=Q.Raw,dependencies:o,materials:s,project:a={},adapter:c={},globals:u={},modules:l={},router:f=null,materialPath:p="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=f,this.materialPath=p,this.nodeEnv=h,o&&(this.dependencies=o),s&&(this.materials=s),Object.assign(this.globals,u),Object.assign(this.adapter,c);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:f,request:m}),a&&i!==Q.Design?this.load(a):this.project=a}createMock(r){return(...n)=>k(this,null,function*(){var o;let i={};if(r)try{i=yield r.apply(r,n)}catch(s){Gt.warn("模拟数据模版异常",s)}return(o=me())==null?void 0:o.mock(i)})}load(r){return k(this,null,function*(){const n=this.modules[`.vtj/projects/${r.id}.json`]||this.modules[`/src/.vtj/projects/${r.id}.json`];if(this.project=n?yield n():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:i=[],meta:o=[]}=this.project,s=window;s&&(s.CKEDITOR_VERSION=void 0),this.mode===Q.Raw?yield this.loadDependencies(s):yield this.loadAssets(s),this.initMock(s),this.apis=Am(i,o,this.adapter),Os(s),$m(i,s),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=me(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return k(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,o]of n)r[i]||(r[i]=this.library[i]=yield o())})}loadAssets(r){return k(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:o,components:s,materialPath:a,nodeEnv:c}=this,{libraryExports:u,libraryMap:l,materials:f,materialExports:p,materialMapLibrary:h}=dm(n,a,c==="development");for(const d of u){const m=i[d],b=r[d];if(b)o[d]=b;else if(m)r[d]=o[d]=yield m();else{const E=l[d]||[];for(const y of E)on(y)&&(yield gm(d,Pe.append(y,{v:vr}))),sn(y)&&(yield Oi(Pe.append(y,{v:vr})));o[d]=r[d]}}if(c==="development"){for(const m of f)yield Oi(Pe.append(m,{v:vr}));const d=this.materials||{};for(const m of p){const b=r[h[m]],E=np[m];if(E)b&&E.forEach(y=>{s[y]=b[y]});else{const y=d[m]?(yield d[m]()).default:r[m];y&&b&&(y.components||[]).forEach(v=>{s[v.name]=mm(v,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:o}=this;if(!r)return;const s=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:a,pageRouteName:c=s,routeMeta:u}=i,l=a?"":"/",f={path:`${l}${c}/:id`,name:Ie,component:Di},p={path:l,name:br,component:n!=null&&n.homepage?Di:o.startupComponent||ig,meta:u};r.hasRoute(Ie)&&r.removeRoute(Ie),r.hasRoute(br)&&r.removeRoute(br),a?(r.addRoute(a,f),r.addRoute(a,p)):(r.addRoute(f),r.addRoute(p))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,o]of Object.entries(this.library))!n[i]&&bm(o)&&(r.use(o),n[i]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),r.provide(Ds,this),r.config.globalProperties.$provider=this,r.config.globalProperties.installed=n,this.mode===Q.Design&&(r.config.errorHandler=(i,o,s)=>{const a=o==null?void 0:o.$options.name,c=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",u=`[ ${a} ] ${c} ${s}`;console.error("[VTJ Error]:",{err:i,instance:o,info:s},i==null?void 0:i.stack),this.adapter.notify&&this.adapter.notify(u,"组件渲染错误","error")})}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(o,s=[])=>{for(const a of s){if(a.id===o)return a;if(a.children&&a.children.length){const c=i(o,a.children);if(c)return c}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return k(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`]||this.modules[`/src/.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return 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:o,mode:s,apis:a}=this,c=V({mode:s,Vue:i.Vue,components:o,libs:i,apis:a,window},n),u=qr({getDsl:l=>k(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>k(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:c});return Hr(tt(V({},c),{dsl:r,loader:u}))}getRenderComponent(r,n){return k(this,null,function*(){var c;const i=this.getFile(r);if(!i)return Gt.warn(`Can not find file: ${r}`),null;n&&n(i);const o=`.vtj/vue/${r}.vue`,s=this.modules[o]||this.modules[`/src/pages/${r}.vue`];if(s)return(c=yield s())==null?void 0:c.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(Gt.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return ln(()=>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 ln(()=>k(this,null,function*(){return yield As(r,window)}))}}function sg(e){const t=new og(e);return{provider:t,onReady:r=>t.ready(r)}}function ag(e={}){const t=Ls(Ds,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&k(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}const js={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},ug=(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:js}),cg=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>k(void 0,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:tt(V({},js),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function lg(e){return rn({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 fg{constructor(t=Mr){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.api=ug(t),this.uploader=cg(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(()=>"")})}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(o=>hm(o))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=Mr.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(o=>o.data).catch(()=>null)):null})}genSource(t){return k(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new _s({type:"local",expired:0,prefix:"__VTJ_"});class hg extends fg{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:Hh(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))})}}/**!
|
|
71
71
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
72
72
|
* @name @vtj/uni
|
|
73
73
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
74
|
-
* @version 0.11.
|
|
74
|
+
* @version 0.11.1-alpha.1
|
|
75
75
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
76
|
-
*/const pg=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],ji="/pages",dg="VTJ",mg="__UNI__1FC118B",gg="VTJ移动跨端项目",yg="1.0.0",vg="100",bg=!1,wg={},_g={enable:!1},Eg="3",Sg={name:dg,appid:mg,description:gg,versionName:yg,versionCode:vg,transformPx:bg,"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:wg,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:_g,vueVersion:Eg},xg=[],Tg={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},Rg={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},Og={pages:xg,globalStyle:Tg,easycom:Rg};function Ag(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(o=>{const{path:s,style:a,needLogin:c}=o;return{path:s,style:a,needLogin:c}});return tt(V({},e),{manifestJson:Object.assign({},Sg,t),pagesJson:Object.assign({},Og,r,{pages:i})})}const Wr={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function Bs(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)Wr[n]&&(t[Wr[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function $g(e){const t={};for(const r in e)Wr[r]||(t[r]=e[r]);return t}function Dg(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function jg(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 Bg(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var o;return!!((o=i.style)!=null&&o.enablePullDownRefresh)}))}function Cg(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="default"})&&(i=!1)):n.every(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="custom"})&&(i=!0),i}function Ng(e){var a;const t=Cg(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:o=[]}=n;if(t)return r;r.navigationBar=!0;const s=(a=i==null?void 0:i.h5)==null?void 0:a.titleNView;return o.find(c=>{var u,l,f;return!!((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(s!=null&&s.searchInput||o.find(c=>{var u,l,f;return!!((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((s==null?void 0:s.type)==="transparent"||o.find(c=>{var u,l,f;return((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function Pg(e,t=window){var p,h,d,m;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:o,rightWindow:s}=jg(r),{navigationBar:a,navigationBarButtons:c,navigationBarSearchInput:u,navigationBarTransparent:l}=Ng(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__:Dg(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(h=r.tabBar)==null?void 0:h.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((m=r.tabBar)!=null&&m.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:o,__UNI_FEATURE_RIGHTWINDOW__:s,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:a,__UNI_FEATURE_PULL_DOWN_REFRESH__:Bg(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:c,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:u,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:l};Object.entries(f).forEach(([b,E])=>{t[b]=E})}const Ig="4.56";function Fg(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:o="",name:s="",versionCode:a="",versionName:c=""}=n,u=r.globalStyle,l=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:tt(V({},$g(u)),{navigationBar:Bs(u),isNVue:!1}),compilerVersion:Ig,appId:o,appName:s,appVersion:c,appVersionCode:String(a),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:l.base||"/"},l),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function kg(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:o,getCurrentPages:s,upx2px:a,setupPage:c}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=o,t.wx=o,t.getCurrentPages=s,t.upx2px=a,t.__setupPage=u=>c(u)}function Mg(e,t,r){const{openBlock:n,createBlock:i,withCtx:o,createVNode:s}=e,{PageComponent:a,setupPage:c,getApp:u}=t;return{mpType:"page",setup(){return k(this,null,function*(){var m,b;const f=((b=(m=u())==null?void 0:m.$route)==null?void 0:b.query)||{},{loader:p,component:h}=r,d=p?yield p(r):h||{};return()=>(n(),i(a,null,{page:o(()=>[s(c(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function Ug(e,t,r){var h;const{path:n,style:i={},meta:o={},home:s,id:a}=t,c=((h=e.tabBar)==null?void 0:h.list)||[],u=c.findIndex(d=>{var m;return d.pagePath===n||((m=d.pagePath)==null?void 0:m.endsWith(a))}),l=c[u],f=!!l,p=r===0;return V({isTabBar:f,tabBarIndex:u,isQuit:s!=null?s:p,isEntry:s!=null?s:p,navigationBar:V({type:"default"},Bs(i)),isNVue:!1,route:l?l.pagePath:n},o)}function Lg(e,t,r,n,i=window){const o=r.map((s,a)=>{const c=Ug(n,s,a),u=Mg(e,t,s),{path:l}=s;return{path:l,alias:l,meta:c,component:{render(){return e.h(e.Suspense,[e.h(u)])}}}});i.__uniRoutes=o,i.__uniLayout={}}function Vg(e,t,r=window){an(r,String(e),t)}function Hg(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 qg(e){const t=Ag(e),{Vue:r,App:n,UniH5:i,routes:o=[],pagesJson:s={},manifestJson:a={},window:c,css:u=""}=t;if(!i)return r.createApp(n);const{plugin:l,setupApp:f}=i;Pg(t,c),Fg(t,c),kg(i,c),Lg(r,i,o,s,c),Vg(a.appid||Date.now(),u,c);const p=r.createApp(f(n));return p.use(Hg,i),p.use(l),p}function zg(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{pg.includes(n)&&i&&(r[n]=t(i))}),r}function Bi(e,t){return()=>k(this,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function Wg(n){return k(this,arguments,function*(e,t=!1,r=ji){var a,c,u;const i=((a=e.project)==null?void 0:a.pages)||[],o=[];for(const l of i){const f=((c=e.project)==null?void 0:c.homepage)===l.id;o.push({id:l.id,path:`${r}/${l.id}`,loader:Bi(e,l.id),style:V({navigationBarTitleText:l.title},l.style),needLogin:l.needLogin,home:f})}const s=o.find(l=>!!l.home)||o[0];if(s){const l=r===ji?"/":r;o.unshift(tt(V({},s),{path:l}))}if(t){const l=((u=e.project)==null?void 0:u.blocks)||[];for(const f of l)o.push({id:f.id,path:`${r}/${f.id}`,loader:Bi(e,f.id),style:{navigationStyle:"custom"}})}return o})}function Kg(){var e;if((e=window.uni)!=null&&e.showLoading)return window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function Cs(e,t="",r="warning"){var n;(n=window.uni)!=null&&n.showModal&&window.uni.showModal({title:t,content:e,showCancel:!1})}function Jg(e=Q.Runtime){return e===Q.Runtime?Object.assign({}):Object.assign({})}const Yg=Tm({loading:Kg,notify:Cs}),Zg=new hg(lg(Cs)),Gg=Jg(),{provider:Xg,onReady:Qg}=sg({nodeEnv:"production",mode:Q.Runtime,modules:Gg,materialPath:"../",adapter:Yg,service:Zg,dependencies:{Vue:()=>hn(()=>import("./@dcloudio-uni-h5-vue-DzUn8GQh.js").then(e=>e.x),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>hn(()=>import("./vue-router-pF46KwvV.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),t0=e=>k(void 0,null,function*(){const{Vue:t,UniH5:r}=window,n=e.project;if(!n)return;const i=n.uniConfig||{},o=zg(i,f=>Le(f,window,!1,!0)),{manifestJson:s,pagesJson:a,css:c}=i,u=yield Wg(e,!0),l=qg({Vue:t,App:o,UniH5:r,routes:u,css:c,manifestJson:s,pagesJson:a});l.use(e),l.mount(document.body)});Qg(()=>t0(Xg));
|
|
76
|
+
*/const pg=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],ji="/pages",dg="VTJ",mg="__UNI__1FC118B",gg="VTJ移动跨端项目",yg="1.0.0",vg="100",bg=!1,wg={},_g={enable:!1},Eg="3",Sg={name:dg,appid:mg,description:gg,versionName:yg,versionCode:vg,transformPx:bg,"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:wg,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:_g,vueVersion:Eg},xg=[],Tg={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},Rg={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},Og={pages:xg,globalStyle:Tg,easycom:Rg};function Ag(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(o=>{const{path:s,style:a,needLogin:c}=o;return{path:s,style:a,needLogin:c}});return tt(V({},e),{manifestJson:Object.assign({},Sg,t),pagesJson:Object.assign({},Og,r,{pages:i})})}const Wr={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function Bs(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)Wr[n]&&(t[Wr[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function $g(e){const t={};for(const r in e)Wr[r]||(t[r]=e[r]);return t}function Dg(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function jg(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 Bg(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var o;return!!((o=i.style)!=null&&o.enablePullDownRefresh)}))}function Cg(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="default"})&&(i=!1)):n.every(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="custom"})&&(i=!0),i}function Ng(e){var a;const t=Cg(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:o=[]}=n;if(t)return r;r.navigationBar=!0;const s=(a=i==null?void 0:i.h5)==null?void 0:a.titleNView;return o.find(c=>{var u,l,f;return!!((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(s!=null&&s.searchInput||o.find(c=>{var u,l,f;return!!((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((s==null?void 0:s.type)==="transparent"||o.find(c=>{var u,l,f;return((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function Pg(e,t=window){var p,h,d,m;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:o,rightWindow:s}=jg(r),{navigationBar:a,navigationBarButtons:c,navigationBarSearchInput:u,navigationBarTransparent:l}=Ng(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__:Dg(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(h=r.tabBar)==null?void 0:h.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((m=r.tabBar)!=null&&m.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:o,__UNI_FEATURE_RIGHTWINDOW__:s,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:a,__UNI_FEATURE_PULL_DOWN_REFRESH__:Bg(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:c,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:u,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:l};Object.entries(f).forEach(([b,E])=>{t[b]=E})}const Ig="4.56";function Fg(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:o="",name:s="",versionCode:a="",versionName:c=""}=n,u=r.globalStyle,l=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:tt(V({},$g(u)),{navigationBar:Bs(u),isNVue:!1}),compilerVersion:Ig,appId:o,appName:s,appVersion:c,appVersionCode:String(a),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:l.base||"/"},l),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function kg(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:o,getCurrentPages:s,upx2px:a,setupPage:c}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=o,t.wx=o,t.getCurrentPages=s,t.upx2px=a,t.__setupPage=u=>c(u)}function Mg(e,t,r){const{openBlock:n,createBlock:i,withCtx:o,createVNode:s}=e,{PageComponent:a,setupPage:c,getApp:u}=t;return{mpType:"page",setup(){return k(this,null,function*(){var m,b;const f=((b=(m=u())==null?void 0:m.$route)==null?void 0:b.query)||{},{loader:p,component:h}=r,d=p?yield p(r):h||{};return()=>(n(),i(a,null,{page:o(()=>[s(c(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function Ug(e,t,r){var h;const{path:n,style:i={},meta:o={},home:s,id:a}=t,c=((h=e.tabBar)==null?void 0:h.list)||[],u=c.findIndex(d=>{var m;return d.pagePath===n||((m=d.pagePath)==null?void 0:m.endsWith(a))}),l=c[u],f=!!l,p=r===0;return V({isTabBar:f,tabBarIndex:u,isQuit:s!=null?s:p,isEntry:s!=null?s:p,navigationBar:V({type:"default"},Bs(i)),isNVue:!1,route:l?l.pagePath:n},o)}function Lg(e,t,r,n,i=window){const o=r.map((s,a)=>{const c=Ug(n,s,a),u=Mg(e,t,s),{path:l}=s;return{path:l,alias:l,meta:c,component:{render(){return e.h(e.Suspense,[e.h(u)])}}}});i.__uniRoutes=o,i.__uniLayout={}}function Vg(e,t,r=window){an(r,String(e),t)}function Hg(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 qg(e){const t=Ag(e),{Vue:r,App:n,UniH5:i,routes:o=[],pagesJson:s={},manifestJson:a={},window:c,css:u=""}=t;if(!i)return r.createApp(n);const{plugin:l,setupApp:f}=i;Pg(t,c),Fg(t,c),kg(i,c),Lg(r,i,o,s,c),Vg(a.appid||Date.now(),u,c);const p=r.createApp(f(n));return p.use(Hg,i),p.use(l),p}function zg(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{pg.includes(n)&&i&&(r[n]=t(i))}),r}function Bi(e,t){return()=>k(this,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function Wg(n){return k(this,arguments,function*(e,t=!1,r=ji){var a,c,u;const i=((a=e.project)==null?void 0:a.pages)||[],o=[];for(const l of i){const f=((c=e.project)==null?void 0:c.homepage)===l.id;o.push({id:l.id,path:`${r}/${l.id}`,loader:Bi(e,l.id),style:V({navigationBarTitleText:l.title},l.style),needLogin:l.needLogin,home:f})}const s=o.find(l=>!!l.home)||o[0];if(s){const l=r===ji?"/":r;o.unshift(tt(V({},s),{path:l}))}if(t){const l=((u=e.project)==null?void 0:u.blocks)||[];for(const f of l)o.push({id:f.id,path:`${r}/${f.id}`,loader:Bi(e,f.id),style:{navigationStyle:"custom"}})}return o})}function Kg(){var e;if((e=window.uni)!=null&&e.showLoading)return window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function Cs(e,t="",r="warning"){var n;(n=window.uni)!=null&&n.showModal&&window.uni.showModal({title:t,content:e,showCancel:!1})}function Jg(e=Q.Runtime){return e===Q.Runtime?Object.assign({}):Object.assign({})}const Yg=Tm({loading:Kg,notify:Cs}),Zg=new hg(lg(Cs)),Gg=Jg(),{provider:Xg,onReady:Qg}=sg({nodeEnv:"production",mode:Q.Runtime,modules:Gg,materialPath:"../",adapter:Yg,service:Zg,dependencies:{Vue:()=>hn(()=>import("./@dcloudio-uni-h5-vue-C36z4qJb.js").then(e=>e.O),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>hn(()=>import("./vue-router-CxcHTnUo.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),t0=e=>k(void 0,null,function*(){const{Vue:t,UniH5:r}=window,n=e.project;if(!n)return;const i=n.uniConfig||{},o=zg(i,f=>Le(f,window,!1,!0)),{manifestJson:s,pagesJson:a,css:c}=i,u=yield Wg(e,!0),l=qg({Vue:t,App:o,UniH5:r,routes:u,css:c,manifestJson:s,pagesJson:a});l.use(e),l.mount(document.body)});Qg(()=>t0(Xg));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Ve,c as I,p as le,r as ut,w as ft,h as Ue,s as ht,i as $,u as Y,a as pt,o as dt,b as mt,e as gt,n as vt,f as yt}from"./@dcloudio-uni-h5-vue-
|
|
1
|
+
import{d as Ve,c as I,p as le,r as ut,w as ft,h as Ue,s as ht,i as $,u as Y,a as pt,o as dt,b as mt,e as gt,n as vt,f as yt}from"./@dcloudio-uni-h5-vue-C36z4qJb.js";import"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-VStmjWbh.js";/*!
|
|
2
2
|
* vue-router v4.5.0
|
|
3
3
|
* (c) 2024 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
package/dist/uni/index.html
CHANGED
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
<title></title>
|
|
14
14
|
<!--preload-links-->
|
|
15
15
|
<!--app-context-->
|
|
16
|
-
<script type="module" crossorigin src="./assets/index-
|
|
16
|
+
<script type="module" crossorigin src="./assets/index-B-Bjqqqf.js"></script>
|
|
17
17
|
<link rel="modulepreload" crossorigin href="./assets/vue-BK7aLblh.js">
|
|
18
18
|
<link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-VStmjWbh.js">
|
|
19
|
-
<link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-
|
|
20
|
-
<link rel="modulepreload" crossorigin href="./assets/vue-router-
|
|
19
|
+
<link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-C36z4qJb.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="./assets/vue-router-CxcHTnUo.js">
|
|
21
21
|
</head>
|
|
22
22
|
<body>
|
|
23
23
|
<div id="app"><!--app-html--></div>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/pro",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.1-alpha.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"低代码引擎",
|
|
7
7
|
"LowCode Engine",
|
|
@@ -21,21 +21,21 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"type": "module",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@vtj/core": "~0.11.
|
|
25
|
-
"@vtj/
|
|
26
|
-
"@vtj/
|
|
27
|
-
"@vtj/
|
|
28
|
-
"@vtj/
|
|
29
|
-
"@vtj/
|
|
24
|
+
"@vtj/core": "~0.11.1-alpha.1",
|
|
25
|
+
"@vtj/designer": "~0.11.1-alpha.1",
|
|
26
|
+
"@vtj/local": "~0.11.1-alpha.1",
|
|
27
|
+
"@vtj/renderer": "~0.11.1-alpha.1",
|
|
28
|
+
"@vtj/uni": "~0.11.1-alpha.1",
|
|
29
|
+
"@vtj/materials": "~0.11.1-alpha.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"vue": "~3.5.5",
|
|
33
33
|
"vue-router": "~4.5.0",
|
|
34
|
-
"@vtj/
|
|
35
|
-
"@vtj/charts": "~0.11.
|
|
36
|
-
"@vtj/
|
|
37
|
-
"@vtj/
|
|
38
|
-
"@vtj/
|
|
34
|
+
"@vtj/icons": "~0.11.1-alpha.1",
|
|
35
|
+
"@vtj/charts": "~0.11.1-alpha.1",
|
|
36
|
+
"@vtj/utils": "~0.11.1-alpha.1",
|
|
37
|
+
"@vtj/cli": "~0.11.1-alpha.1",
|
|
38
|
+
"@vtj/ui": "~0.11.1-alpha.1"
|
|
39
39
|
},
|
|
40
40
|
"exports": {
|
|
41
41
|
"./vite": {
|
|
@@ -63,9 +63,10 @@
|
|
|
63
63
|
"vtj": {
|
|
64
64
|
"name": "VTJ.PRO",
|
|
65
65
|
"platform": "web",
|
|
66
|
-
"remote": "
|
|
67
|
-
"
|
|
68
|
-
"auth": "
|
|
66
|
+
"remote": "http://localhost:9528",
|
|
67
|
+
"__ACCESS__": {
|
|
68
|
+
"auth": "http://localhost:9528/auth.html",
|
|
69
|
+
"storageKey": "RRO_IDE_ACCESS_STORAGE__",
|
|
69
70
|
"privateKey": "MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd"
|
|
70
71
|
}
|
|
71
72
|
},
|
package/src/Auth.vue
CHANGED
|
@@ -9,14 +9,24 @@
|
|
|
9
9
|
|
|
10
10
|
export interface Props {
|
|
11
11
|
remote?: string;
|
|
12
|
+
access?: Record<string, any>;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
const props = withDefaults(defineProps<Props>(), {
|
|
15
|
-
remote: 'https://lcdp.vtj.top'
|
|
16
|
+
remote: 'https://lcdp.vtj.top',
|
|
17
|
+
access: () => {
|
|
18
|
+
return {
|
|
19
|
+
auth: 'https://lcdp.vtj.top/auth.html',
|
|
20
|
+
storageKey: 'RRO_IDE_ACCESS_STORAGE__',
|
|
21
|
+
privateKey:
|
|
22
|
+
'MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd'
|
|
23
|
+
};
|
|
24
|
+
}
|
|
16
25
|
});
|
|
17
26
|
|
|
18
27
|
const access = createAccess({
|
|
19
|
-
alert: ElMessageBox.alert
|
|
28
|
+
alert: ElMessageBox.alert,
|
|
29
|
+
...props.access
|
|
20
30
|
});
|
|
21
31
|
|
|
22
32
|
const route = useRoute();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var p=(i,t,e)=>new Promise((c,s)=>{var n=o=>{try{a(e.next(o))}catch(r){s(r)}},m=o=>{try{a(e.throw(o))}catch(r){s(r)}},a=o=>o.done?c(o.value):Promise.resolve(o.value).then(n,m);a((e=e.apply(i,t)).next())});import{b as d}from"./element-plus-CQpgC9_i.js";import"./vxe-N9ALOqba.js";import"./index-DoBcZEst.js";import{useRoute as y}from"./vue-router-5AKQpGpA.js";import{Y as k,x as w,n as g}from"./index-CDRuydJ0.js";import{d as f,aB as h,c as B,o as x,K as v,O as C,u as _}from"./vue-CK7CG2oW.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-CceCMEgA.js";import"./@element-plus-icons-vue-CiUy_FB_.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-B8dwQNlP.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-BSD1DCM1.js";const E={class:"loading"},I=f({__name:"Auth",props:{remote:{default:"https://lcdp.vtj.top"}},setup(i){return p(this,null,function*(){let t,e;const c=i,s=k({alert:d.alert}),n=y(),m=r=>p(this,null,function*(){const u=`${c.remote}/api/open/user/${r}`,l=yield w(u).catch(()=>null);return!l||!l.success?(yield d.alert("登录失败"),null):l.data}),a=n.query.token,o=a?([t,e]=h(()=>m(a)),t=yield t,e(),t):null;if(o)try{s.login(o);const r=n.query.redirect;location.href=decodeURIComponent(r||"/")}catch(r){location.reload()}return(r,u)=>(x(),B("div",E,"正在登录中..."))})}}),$=A(I,[["__scopeId","data-v-97758320"]]),H=f({__name:"auth",setup(i){return p(this,null,function*(){let t,e;const c=new g,s=([t,e]=h(()=>c.getExtension().catch(()=>null)),t=yield t,e(),t),n=s==null?void 0:s.remote;return(m,a)=>_(n)?(x(),v(_($),{key:0,remote:_(n)},null,8,["remote"])):C("",!0)})}});export{H as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.loading[data-v-97758320]{padding:40px}
|