@vtj/pro 0.19.13 → 0.19.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/assets/{Editor-BsY740gM-BKtLJDZB.css → Editor-fK8iVAVY-Deixp2HO.css} +1 -1
- package/dist/assets/{Editor-BsY740gM-DVLHuLqp.js → Editor-fK8iVAVY-MGY1o9KZ.js} +138 -135
- package/dist/assets/{auth-Dm-5O97c.js → auth-DakWB-Si.js} +1 -1
- package/dist/assets/{element-plus-BnQSNCX2.js → element-plus-wUcGoN3I.js} +4 -4
- package/dist/assets/index-BOffHrY3.js +1 -0
- package/dist/assets/{index-BC6NvIJq.js → index-ase9yf8R.js} +2 -2
- package/dist/assets/{mockjs-CxAZAsmx.js → mockjs-Ck9BCBFj.js} +1 -1
- package/dist/assets/{page-B-yQEyfC.js → page-CVjqOuu7.js} +1 -1
- package/dist/assets/{preview-C1dM6MCX.js → preview-CNK0D7HA.js} +1 -1
- package/dist/assets/utils-C_Ix6Z2d.js +1 -0
- package/dist/index.html +4 -4
- package/dist/uni/assets/{index-CE-nohKO.js → index-DaRaISIB.js} +5 -5
- package/dist/uni/index.html +1 -1
- package/package.json +11 -11
- package/dist/assets/index-DIZ7fbNF.js +0 -1
- package/dist/assets/utils-CavYcqo1.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var H=Object.defineProperty;var P=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var C=(n,e,t)=>e in n?H(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e)=>{for(var t in e||(e={}))I.call(e,t)&&C(n,t,e[t]);if(P)for(var t of P(e))N.call(e,t)&&C(n,t,e[t]);return n};var d=(n,e,t)=>new Promise((_,r)=>{var l=o=>{try{i(t.next(o))}catch(p){r(p)}},s=o=>{try{i(t.throw(o))}catch(p){r(p)}},i=o=>o.done?_(o.value):Promise.resolve(o.value).then(l,s);i((t=t.apply(n,e)).next())});import{useRoute as Q}from"./vue-router-Drd5teeV.js";import{y as W}from"./@vueuse-Jk9KQurp.js";import{Q as D,z as J,F as U,j as G,u as E,V as K,d as v}from"./Editor-fK8iVAVY-MGY1o9KZ.js";import"./element-plus-wUcGoN3I.js";import"./vxe-Hv0pYDff.js";import{E as L,a as S,n as A,l as M}from"./utils-C_Ix6Z2d.js";import{y as O,az as B,e as X,I as Y,r as Z,D as ee}from"./vue-wWzmtsAU.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Ck9BCBFj.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";const ae=O({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=Q(),r=Z(),l=new D(J(A)),s=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=B(()=>new L(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:w="page",remote:g,auth:F,checkVersion:k=!0,enhance:V,platform:j="web"}=s||{},z=U({loading:M,notify:A,useTitle:W,alert:S,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),R=G($({alert:S},s==null?void 0:s.__ACCESS__)),T=()=>p==="hash",b=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);E.set("Switcher",{props:{onClick:a=>{const u=a.platform==="uniapp",c=location.pathname;let m=c===`${o}__vtj__/`?o:c;const f=a.currentFile;if(f&&f.type==="page"&&a.homepage!==f.id){const q=s.pageBasePath?`/${w}`:"",x=`${b(h)}${u?`pages${q}`:w}/${f.id}`;m=T()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),E.set("Previewer",{props:{path:(a,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${a.id}`:`${c}#/preview/${a.id}`}}});const y=new K($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:z,access:R,remote:g,auth:F,checkVersion:k,enhance:V,project:{platform:j}},i));return y.ready(()=>d(null,null,function*(){yield v(300),y.openFile(_.query.id)})),X(()=>_.query.id,a=>d(null,null,function*(){yield v(300),y.openFile(a)})),(a,u)=>(ee(),Y("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),xe=te(ae,[["__scopeId","data-v-f41f19f5"]]);export{xe as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{y as _,E as p,u as s,af as d,D as m,K as u,aB as f,J as h,at as v}from"./vue-wWzmtsAU.js";import{z as g,c as y}from"./element-plus-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BOffHrY3.js","./vue-router-Drd5teeV.js","./vue-wWzmtsAU.js","./@vueuse-Jk9KQurp.js","./Editor-fK8iVAVY-MGY1o9KZ.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-wUcGoN3I.js","./lodash-es-BxdYFYdv.js","./shared-P7kalaod.js","./@element-plus-icons-vue-CMB1ifep.js","./dayjs-CxR8wwn9.js","./element-plus-Bw1qTWaj.css","./axios-Cc-15rbk.js","./vxe-Hv0pYDff.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-Ck9BCBFj.js","./marked--VTVY_DP.js","./Editor-fK8iVAVY-Deixp2HO.css","./utils-C_Ix6Z2d.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-CNK0D7HA.js","./page-CVjqOuu7.js","./uni-page-551_wqCE.js","./uni-page-Diqmj53r.css","./auth-DakWB-Si.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{y as _,E as p,u as s,af as d,D as m,K as u,aB as f,J as h,at as v}from"./vue-wWzmtsAU.js";import{z as g,c as y}from"./element-plus-wUcGoN3I.js";import"./dayjs-CxR8wwn9.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-Drd5teeV.js";import"./@vueuse-Jk9KQurp.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const a of t.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=n(e);fetch(e.href,t)}})();const P=_({__name:"app",setup(l){return(o,n)=>{const i=d("router-view");return m(),p(s(y),{locale:s(g)},{default:u(()=>[(m(),p(f,null,{default:u(()=>[h(i)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>r(()=>import("./index-BOffHrY3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>r(()=>import("./preview-CNK0D7HA.js"),__vite__mapDeps([23,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-CVjqOuu7.js"),__vite__mapDeps([24,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"pages",component:()=>r(()=>import("./uni-page-551_wqCE.js"),__vite__mapDeps([25,1,2,21,26]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-DakWB-Si.js"),__vite__mapDeps([27,7,3,2,8,9,10,11,12,14,15,4,5,6,13,1,16,17,18,19,21]),import.meta.url)}],A=E({history:O(),routes:L}),c=v(P);c.use(A);c.mount("#app");
|
|
@@ -6,4 +6,4 @@ import{g as getDefaultExportFromCjs}from"./dayjs-CxR8wwn9.js";var mock$1={export
|
|
|
6
6
|
`?(g.seenCR||g.line++,g.column=1,g.seenCR=!1):$==="\r"||$==="\u2028"||$==="\u2029"?(g.line++,g.column=1,g.seenCR=!0):(g.column++,g.seenCR=!1)}return K!==e&&(K>e&&(K=0,s0={line:1,column:1,seenCR:!1}),t(s0,K,e),K=e),s0}function R(e){r0>r||(r>r0&&(r0=r,a0=[]),a0.push(e))}function u0(e){var t=0;for(e.sort();t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}function I(){var e,t,g,k,S;return e=r,t=W(),t!==null?(g=r,E.charCodeAt(r)===124?(k=L2,r++):(k=null,w===0&&R(F2)),k!==null?(S=I(),S!==null?(k=[k,S],g=k):(r=g,g=M)):(r=g,g=M),g===null&&(g=G),g!==null?(H=e,t=I2(t,g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function W(){var e,t,g,k,S;if(e=r,t=z(),t===null&&(t=G),t!==null)if(g=r,w++,k=B(),w--,k===null?g=G:(r=g,g=M),g!==null){for(k=[],S=Y(),S===null&&(S=X());S!==null;)k.push(S),S=Y(),S===null&&(S=X());k!==null?(S=J(),S===null&&(S=G),S!==null?(H=e,t=q2(t,k,S),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)}else r=e,e=M;else r=e,e=M;return e}function X(){var e;return e=x2(),e===null&&(e=w2(),e===null&&(e=A2())),e}function z(){var e,t;return e=r,E.charCodeAt(r)===94?(t=P0,r++):(t=null,w===0&&R(D0)),t!==null&&(H=e,t=N2()),t===null&&(r=e),e=t,e}function J(){var e,t;return e=r,E.charCodeAt(r)===36?(t=U2,r++):(t=null,w===0&&R(j2)),t!==null&&(H=e,t=B2()),t===null&&(r=e),e=t,e}function Y(){var e,t,g;return e=r,t=X(),t!==null?(g=B(),g!==null?(H=e,t=z2(t,g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function B(){var e,t,g;return w++,e=r,t=q(),t!==null?(g=m2(),g===null&&(g=G),g!==null?(H=e,t=X2(t,g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),w--,e===null&&(t=null,w===0&&R(G2)),e}function q(){var e;return e=f2(),e===null&&(e=h2(),e===null&&(e=p2(),e===null&&(e=d2(),e===null&&(e=v2(),e===null&&(e=g2()))))),e}function f2(){var e,t,g,k,S,j;return e=r,E.charCodeAt(r)===123?(t=i0,r++):(t=null,w===0&&R(o0)),t!==null?(g=V(),g!==null?(E.charCodeAt(r)===44?(k=K2,r++):(k=null,w===0&&R($2)),k!==null?(S=V(),S!==null?(E.charCodeAt(r)===125?(j=O0,r++):(j=null,w===0&&R(L0)),j!==null?(H=e,t=W2(g,S),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function h2(){var e,t,g,k;return e=r,E.charCodeAt(r)===123?(t=i0,r++):(t=null,w===0&&R(o0)),t!==null?(g=V(),g!==null?(E.substr(r,2)===F0?(k=F0,r+=2):(k=null,w===0&&R(J2)),k!==null?(H=e,t=Y2(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function p2(){var e,t,g,k;return e=r,E.charCodeAt(r)===123?(t=i0,r++):(t=null,w===0&&R(o0)),t!==null?(g=V(),g!==null?(E.charCodeAt(r)===125?(k=O0,r++):(k=null,w===0&&R(L0)),k!==null?(H=e,t=V2(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function d2(){var e,t;return e=r,E.charCodeAt(r)===43?(t=_2,r++):(t=null,w===0&&R(Q2)),t!==null&&(H=e,t=Z2()),t===null&&(r=e),e=t,e}function v2(){var e,t;return e=r,E.charCodeAt(r)===42?(t=e1,r++):(t=null,w===0&&R(t1)),t!==null&&(H=e,t=n1()),t===null&&(r=e),e=t,e}function g2(){var e,t;return e=r,E.charCodeAt(r)===63?(t=I0,r++):(t=null,w===0&&R(q0)),t!==null&&(H=e,t=r1()),t===null&&(r=e),e=t,e}function m2(){var e;return E.charCodeAt(r)===63?(e=I0,r++):(e=null,w===0&&R(q0)),e}function V(){var e,t,g;if(e=r,t=[],N0.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(U0)),g!==null)for(;g!==null;)t.push(g),N0.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(U0));else t=M;return t!==null&&(H=e,t=a1(t)),t===null&&(r=e),e=t,e}function x2(){var e,t,g,k;return e=r,E.charCodeAt(r)===40?(t=u1,r++):(t=null,w===0&&R(l1)),t!==null?(g=C2(),g===null&&(g=E2(),g===null&&(g=b2(),g===null&&(g=y2()))),g!==null?(E.charCodeAt(r)===41?(k=i1,r++):(k=null,w===0&&R(o1)),k!==null?(H=e,t=c1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function y2(){var e,t;return e=r,t=I(),t!==null&&(H=e,t=s1(t)),t===null&&(r=e),e=t,e}function b2(){var e,t,g;return e=r,E.substr(r,2)===j0?(t=j0,r+=2):(t=null,w===0&&R(f1)),t!==null?(g=I(),g!==null?(H=e,t=h1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function C2(){var e,t,g;return e=r,E.substr(r,2)===B0?(t=B0,r+=2):(t=null,w===0&&R(p1)),t!==null?(g=I(),g!==null?(H=e,t=d1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function E2(){var e,t,g;return e=r,E.substr(r,2)===z0?(t=z0,r+=2):(t=null,w===0&&R(v1)),t!==null?(g=I(),g!==null?(H=e,t=g1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function w2(){var e,t,g,k,S;if(w++,e=r,E.charCodeAt(r)===91?(t=x1,r++):(t=null,w===0&&R(y1)),t!==null)if(E.charCodeAt(r)===94?(g=P0,r++):(g=null,w===0&&R(D0)),g===null&&(g=G),g!==null){for(k=[],S=f0(),S===null&&(S=_());S!==null;)k.push(S),S=f0(),S===null&&(S=_());k!==null?(E.charCodeAt(r)===93?(S=b1,r++):(S=null,w===0&&R(C1)),S!==null?(H=e,t=E1(g,k),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)}else r=e,e=M;else r=e,e=M;return w--,e===null&&(t=null,w===0&&R(m1)),e}function f0(){var e,t,g,k;return w++,e=r,t=_(),t!==null?(E.charCodeAt(r)===45?(g=R1,r++):(g=null,w===0&&R(k1)),g!==null?(k=_(),k!==null?(H=e,t=A1(t,k),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),w--,e===null&&(t=null,w===0&&R(w1)),e}function _(){var e;return w++,e=k2(),e===null&&(e=R2()),w--,e===null&&w===0&&R(M1),e}function R2(){var e,t;return e=r,H1.test(E.charAt(r))?(t=E.charAt(r),r++):(t=null,w===0&&R(T1)),t!==null&&(H=e,t=c0(t)),t===null&&(r=e),e=t,e}function k2(){var e;return e=S2(),e===null&&(e=w0(),e===null&&(e=h0(),e===null&&(e=p0(),e===null&&(e=d0(),e===null&&(e=v0(),e===null&&(e=g0(),e===null&&(e=m0(),e===null&&(e=x0(),e===null&&(e=y0(),e===null&&(e=b0(),e===null&&(e=C0(),e===null&&(e=E0(),e===null&&(e=R0(),e===null&&(e=k0(),e===null&&(e=A0(),e===null&&(e=M0(),e===null&&(e=H0()))))))))))))))))),e}function A2(){var e;return e=M2(),e===null&&(e=T2(),e===null&&(e=H2())),e}function M2(){var e,t;return e=r,E.charCodeAt(r)===46?(t=S1,r++):(t=null,w===0&&R(P1)),t!==null&&(H=e,t=D1()),t===null&&(r=e),e=t,e}function H2(){var e,t;return w++,e=r,L1.test(E.charAt(r))?(t=E.charAt(r),r++):(t=null,w===0&&R(F1)),t!==null&&(H=e,t=c0(t)),t===null&&(r=e),e=t,w--,e===null&&(t=null,w===0&&R(O1)),e}function T2(){var e;return e=P2(),e===null&&(e=D2(),e===null&&(e=w0(),e===null&&(e=h0(),e===null&&(e=p0(),e===null&&(e=d0(),e===null&&(e=v0(),e===null&&(e=g0(),e===null&&(e=m0(),e===null&&(e=x0(),e===null&&(e=y0(),e===null&&(e=b0(),e===null&&(e=C0(),e===null&&(e=E0(),e===null&&(e=O2(),e===null&&(e=R0(),e===null&&(e=k0(),e===null&&(e=A0(),e===null&&(e=M0(),e===null&&(e=H0()))))))))))))))))))),e}function S2(){var e,t;return e=r,E.substr(r,2)===Z?(t=Z,r+=2):(t=null,w===0&&R(G0)),t!==null&&(H=e,t=I1()),t===null&&(r=e),e=t,e}function P2(){var e,t;return e=r,E.substr(r,2)===Z?(t=Z,r+=2):(t=null,w===0&&R(G0)),t!==null&&(H=e,t=q1()),t===null&&(r=e),e=t,e}function D2(){var e,t;return e=r,E.substr(r,2)===X0?(t=X0,r+=2):(t=null,w===0&&R(N1)),t!==null&&(H=e,t=U1()),t===null&&(r=e),e=t,e}function h0(){var e,t;return e=r,E.substr(r,2)===K0?(t=K0,r+=2):(t=null,w===0&&R(j1)),t!==null&&(H=e,t=B1()),t===null&&(r=e),e=t,e}function p0(){var e,t;return e=r,E.substr(r,2)===$0?(t=$0,r+=2):(t=null,w===0&&R(z1)),t!==null&&(H=e,t=G1()),t===null&&(r=e),e=t,e}function d0(){var e,t;return e=r,E.substr(r,2)===W0?(t=W0,r+=2):(t=null,w===0&&R(X1)),t!==null&&(H=e,t=K1()),t===null&&(r=e),e=t,e}function v0(){var e,t;return e=r,E.substr(r,2)===J0?(t=J0,r+=2):(t=null,w===0&&R($1)),t!==null&&(H=e,t=W1()),t===null&&(r=e),e=t,e}function g0(){var e,t;return e=r,E.substr(r,2)===Y0?(t=Y0,r+=2):(t=null,w===0&&R(J1)),t!==null&&(H=e,t=Y1()),t===null&&(r=e),e=t,e}function m0(){var e,t;return e=r,E.substr(r,2)===V0?(t=V0,r+=2):(t=null,w===0&&R(V1)),t!==null&&(H=e,t=_1()),t===null&&(r=e),e=t,e}function x0(){var e,t;return e=r,E.substr(r,2)===_0?(t=_0,r+=2):(t=null,w===0&&R(Q1)),t!==null&&(H=e,t=Z1()),t===null&&(r=e),e=t,e}function y0(){var e,t;return e=r,E.substr(r,2)===Q0?(t=Q0,r+=2):(t=null,w===0&&R(e3)),t!==null&&(H=e,t=t3()),t===null&&(r=e),e=t,e}function b0(){var e,t;return e=r,E.substr(r,2)===Z0?(t=Z0,r+=2):(t=null,w===0&&R(n3)),t!==null&&(H=e,t=r3()),t===null&&(r=e),e=t,e}function C0(){var e,t;return e=r,E.substr(r,2)===e2?(t=e2,r+=2):(t=null,w===0&&R(a3)),t!==null&&(H=e,t=u3()),t===null&&(r=e),e=t,e}function E0(){var e,t;return e=r,E.substr(r,2)===t2?(t=t2,r+=2):(t=null,w===0&&R(l3)),t!==null&&(H=e,t=i3()),t===null&&(r=e),e=t,e}function w0(){var e,t,g;return e=r,E.substr(r,2)===n2?(t=n2,r+=2):(t=null,w===0&&R(o3)),t!==null?(E.length>r?(g=E.charAt(r),r++):(g=null,w===0&&R(r2)),g!==null?(H=e,t=c3(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function O2(){var e,t,g;return e=r,E.charCodeAt(r)===92?(t=a2,r++):(t=null,w===0&&R(u2)),t!==null?(s3.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(f3)),g!==null?(H=e,t=h3(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function R0(){var e,t,g,k;if(e=r,E.substr(r,2)===e0?(t=e0,r+=2):(t=null,w===0&&R(l2)),t!==null){if(g=[],i2.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(o2)),k!==null)for(;k!==null;)g.push(k),i2.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(o2));else g=M;g!==null?(H=e,t=p3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function k0(){var e,t,g,k;if(e=r,E.substr(r,2)===c2?(t=c2,r+=2):(t=null,w===0&&R(d3)),t!==null){if(g=[],t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0)),k!==null)for(;k!==null;)g.push(k),t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0));else g=M;g!==null?(H=e,t=v3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function A0(){var e,t,g,k;if(e=r,E.substr(r,2)===s2?(t=s2,r+=2):(t=null,w===0&&R(g3)),t!==null){if(g=[],t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0)),k!==null)for(;k!==null;)g.push(k),t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0));else g=M;g!==null?(H=e,t=m3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function M0(){var e,t;return e=r,E.substr(r,2)===e0?(t=e0,r+=2):(t=null,w===0&&R(l2)),t!==null&&(H=e,t=x3()),t===null&&(r=e),e=t,e}function H0(){var e,t,g;return e=r,E.charCodeAt(r)===92?(t=a2,r++):(t=null,w===0&&R(u2)),t!==null?(E.length>r?(g=E.charAt(r),r++):(g=null,w===0&&R(r2)),g!==null?(H=e,t=c0(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}var l0,Q=arguments.length>1?arguments[1]:{},T0={regexp:I},S0=I,M=null,G="",L2="|",F2='"|"',I2=function(e,t){return t?new u(e,t[1]):e},q2=function(e,t,g){return new a([e].concat(t).concat([g]))},P0="^",D0='"^"',N2=function(){return new n("start")},U2="$",j2='"$"',B2=function(){return new n("end")},z2=function(e,t){return new p(e,t)},G2="Quantifier",X2=function(e,t){return t&&(e.greedy=!1),e},i0="{",o0='"{"',K2=",",$2='","',O0="}",L0='"}"',W2=function(e,t){return new f(e,t)},F0=",}",J2='",}"',Y2=function(e){return new f(e,1/0)},V2=function(e){return new f(e,e)},_2="+",Q2='"+"',Z2=function(){return new f(1,1/0)},e1="*",t1='"*"',n1=function(){return new f(0,1/0)},I0="?",q0='"?"',r1=function(){return new f(0,1)},N0=/^[0-9]/,U0="[0-9]",a1=function(e){return+e.join("")},u1="(",l1='"("',i1=")",o1='")"',c1=function(e){return e},s1=function(e){return new c(e)},j0="?:",f1='"?:"',h1=function(e){return new s("non-capture-group",e)},B0="?=",p1='"?="',d1=function(e){return new s("positive-lookahead",e)},z0="?!",v1='"?!"',g1=function(e){return new s("negative-lookahead",e)},m1="CharacterSet",x1="[",y1='"["',b1="]",C1='"]"',E1=function(e,t){return new o(!!e,t)},w1="CharacterRange",R1="-",k1='"-"',A1=function(e,t){return new v(e,t)},M1="Character",H1=/^[^\\\]]/,T1="[^\\\\\\]]",c0=function(e){return new y(e)},S1=".",P1='"."',D1=function(){return new n("any-character")},O1="Literal",L1=/^[^|\\\/.[()?+*$\^]/,F1="[^|\\\\\\/.[()?+*$\\^]",Z="\\b",G0='"\\\\b"',I1=function(){return new n("backspace")},q1=function(){return new n("word-boundary")},X0="\\B",N1='"\\\\B"',U1=function(){return new n("non-word-boundary")},K0="\\d",j1='"\\\\d"',B1=function(){return new n("digit")},$0="\\D",z1='"\\\\D"',G1=function(){return new n("non-digit")},W0="\\f",X1='"\\\\f"',K1=function(){return new n("form-feed")},J0="\\n",$1='"\\\\n"',W1=function(){return new n("line-feed")},Y0="\\r",J1='"\\\\r"',Y1=function(){return new n("carriage-return")},V0="\\s",V1='"\\\\s"',_1=function(){return new n("white-space")},_0="\\S",Q1='"\\\\S"',Z1=function(){return new n("non-white-space")},Q0="\\t",e3='"\\\\t"',t3=function(){return new n("tab")},Z0="\\v",n3='"\\\\v"',r3=function(){return new n("vertical-tab")},e2="\\w",a3='"\\\\w"',u3=function(){return new n("word")},t2="\\W",l3='"\\\\W"',i3=function(){return new n("non-word")},n2="\\c",o3='"\\\\c"',r2="any character",c3=function(e){return new b(e)},a2="\\",u2='"\\\\"',s3=/^[1-9]/,f3="[1-9]",h3=function(e){return new d(e)},e0="\\0",l2='"\\\\0"',i2=/^[0-7]/,o2="[0-7]",p3=function(e){return new h(e.join(""))},c2="\\x",d3='"\\\\x"',t0=/^[0-9a-fA-F]/,n0="[0-9a-fA-F]",v3=function(e){return new C(e.join(""))},s2="\\u",g3='"\\\\u"',m3=function(e){return new m(e.join(""))},x3=function(){return new n("null-character")},r=0,H=0,K=0,s0={line:1,column:1,seenCR:!1},r0=0,a0=[],w=0;if("startRule"in Q){if(!(Q.startRule in T0))throw new Error(`Can't start parsing from rule "`+Q.startRule+'".');S0=T0[Q.startRule]}if(n.offset=F,n.text=O,l0=S0(),l0!==null&&r===E.length)return l0;throw u0(a0),H=Math.max(r,r0),new D(a0,H<E.length?E.charAt(H):null,H,U(H).line,U(H).column)}return T(D,Error),{SyntaxError:D,parse:N}})(),P=1,L={};l.exports=A}),(function(l,x,n){var u=n(3),a=n(5),s={extend:u.extend},c=C(97,122),p=C(65,90),f=C(48,57),o=C(32,47)+C(58,64)+C(91,96)+C(123,126),v=C(32,126),y=` \f
|
|
7
7
|
\r \v \u2028\u2029`,m={"\\w":c+p+f+"_","\\W":o.replace("_",""),"\\s":y,"\\S":(function(){for(var h=v,d=0;d<y.length;d++)h=h.replace(y[d],"");return h})(),"\\d":f,"\\D":c+p+o};function C(h,d){for(var b="",A=h;A<=d;A++)b+=String.fromCharCode(A);return b}s.gen=function(h,d,b){return b=b||{guid:1},s[h.type]?s[h.type](h,d,b):s.token(h,d,b)},s.extend({token:function(h,d,b){switch(h.type){case"start":case"end":return"";case"any-character":return a.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return a.pick(f.split(""));case"non-digit":return a.pick((c+p+o).split(""));case"form-feed":break;case"line-feed":return h.body||h.text;case"carriage-return":break;case"white-space":return a.pick(y.split(""));case"non-white-space":return a.pick((c+p+f).split(""));case"tab":break;case"vertical-tab":break;case"word":return a.pick((c+p+f).split(""));case"non-word":return a.pick(o.replace("_","").split(""))}return h.body||h.text},alternate:function(h,d,b){return this.gen(a.boolean()?h.left:h.right,d,b)},match:function(h,d,b){d="";for(var A=0;A<h.body.length;A++)d+=this.gen(h.body[A],d,b);return d},"capture-group":function(h,d,b){return d=this.gen(h.body,d,b),b[b.guid++]=d,d},"non-capture-group":function(h,d,b){return this.gen(h.body,d,b)},"positive-lookahead":function(h,d,b){return this.gen(h.body,d,b)},"negative-lookahead":function(h,d,b){return""},quantified:function(h,d,b){d="";for(var A=this.quantifier(h.quantifier),P=0;P<A;P++)d+=this.gen(h.body,d,b);return d},quantifier:function(h,d,b){var A=Math.max(h.min,0),P=isFinite(h.max)?h.max:A+a.integer(3,7);return a.integer(A,P)},charset:function(h,d,b){if(h.invert)return this["invert-charset"](h,d,b);var A=a.pick(h.body);return this.gen(A,d,b)},"invert-charset":function(h,d,b){for(var A=v,P=0,L;P<h.body.length;P++)switch(L=h.body[P],L.type){case"literal":A=A.replace(L.body,"");break;case"range":for(var T=this.gen(L.start,d,b).charCodeAt(),D=this.gen(L.end,d,b).charCodeAt(),N=T;N<=D;N++)A=A.replace(String.fromCharCode(N),"");default:var E=m[L.text];if(E)for(var O=0;O<=E.length;O++)A=A.replace(E[O],"")}return a.pick(A.split(""))},range:function(h,d,b){var A=this.gen(h.start,d,b).charCodeAt(),P=this.gen(h.end,d,b).charCodeAt();return String.fromCharCode(a.integer(A,P))},literal:function(h,d,b){return h.escaped?h.body:h.text},unicode:function(h,d,b){return String.fromCharCode(parseInt(h.code,16))},hex:function(h,d,b){return String.fromCharCode(parseInt(h.code,16))},octal:function(h,d,b){return String.fromCharCode(parseInt(h.code,8))},"back-reference":function(h,d,b){return b[h.code]||""},CONTROL_CHARACTER_MAP:(function(){for(var h="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),d=`\0 \x07 \b
|
|
8
8
|
\v \f \r \x1B `.split(" "),b={},A=0;A<h.length;A++)b[h[A]]=d[A];return b})(),"control-character":function(h,d,b){return this.CONTROL_CHARACTER_MAP[h.code]}}),l.exports=s}),(function(l,x,n){l.exports=n(24)}),(function(l,x,n){var u=n(2),a=n(3),s=n(4);function c(p,f,o){o=o||[];var v={name:typeof f=="string"?f.replace(u.RE_KEY,"$1"):f,template:p,type:a.type(p),rule:s.parse(f)};switch(v.path=o.slice(0),v.path.push(f===void 0?"ROOT":v.name),v.type){case"array":v.items=[],a.each(p,function(y,m){v.items.push(c(y,m,v.path))});break;case"object":v.properties=[],a.each(p,function(y,m){v.properties.push(c(y,m,v.path))});break}return v}l.exports=c}),(function(l,x,n){l.exports=n(26)}),(function(l,x,n){var u=n(2),a=n(3),s=n(23);function c(o,v){for(var y=s(o),m=p.diff(y,v),C=0;C<m.length;C++);return m}var p={diff:function(v,y,m){var C=[];return this.name(v,y,m,C)&&this.type(v,y,m,C)&&(this.value(v,y,m,C),this.properties(v,y,m,C),this.items(v,y,m,C)),C},name:function(o,v,y,m){var C=m.length;return f.equal("name",o.path,y+"",o.name+"",m),m.length===C},type:function(o,v,y,m){var C=m.length;switch(o.type){case"string":if(o.template.match(u.RE_PLACEHOLDER))return!0;break;case"array":if(o.rule.parameters&&(o.rule.min!==void 0&&o.rule.max===void 0&&o.rule.count===1||o.rule.parameters[2]))return!0;break;case"function":return!0}return f.equal("type",o.path,a.type(v),o.type,m),m.length===C},value:function(o,v,y,m){var C=m.length,h=o.rule,d=o.type;if(d==="object"||d==="array"||d==="function")return!0;if(!h.parameters){switch(d){case"regexp":return f.match("value",o.path,v,o.template,m),m.length===C;case"string":if(o.template.match(u.RE_PLACEHOLDER))return m.length===C;break}return f.equal("value",o.path,v,o.template,m),m.length===C}var b;switch(d){case"number":var A=(v+"").split(".");A[0]=+A[0],h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("value",o.path,A[0],Math.min(h.min,h.max),m),f.lessThanOrEqualTo("value",o.path,A[0],Math.max(h.min,h.max),m)),h.min!==void 0&&h.max===void 0&&f.equal("value",o.path,A[0],h.min,m,"[value] "+y),h.decimal&&(h.dmin!==void 0&&h.dmax!==void 0&&(f.greaterThanOrEqualTo("value",o.path,A[1].length,h.dmin,m),f.lessThanOrEqualTo("value",o.path,A[1].length,h.dmax,m)),h.dmin!==void 0&&h.dmax===void 0&&f.equal("value",o.path,A[1].length,h.dmin,m));break;case"boolean":break;case"string":b=v.match(new RegExp(o.template,"g")),b=b?b.length:0,h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("repeat count",o.path,b,h.min,m),f.lessThanOrEqualTo("repeat count",o.path,b,h.max,m)),h.min!==void 0&&h.max===void 0&&f.equal("repeat count",o.path,b,h.min,m);break;case"regexp":b=v.match(new RegExp(o.template.source.replace(/^\^|\$$/g,""),"g")),b=b?b.length:0,h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("repeat count",o.path,b,h.min,m),f.lessThanOrEqualTo("repeat count",o.path,b,h.max,m)),h.min!==void 0&&h.max===void 0&&f.equal("repeat count",o.path,b,h.min,m);break}return m.length===C},properties:function(o,v,y,m){var C=m.length,h=o.rule,d=a.keys(v);if(o.properties){if(o.rule.parameters?(h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("properties length",o.path,d.length,Math.min(h.min,h.max),m),f.lessThanOrEqualTo("properties length",o.path,d.length,Math.max(h.min,h.max),m)),h.min!==void 0&&h.max===void 0&&h.count!==1&&f.equal("properties length",o.path,d.length,h.min,m)):f.equal("properties length",o.path,d.length,o.properties.length,m),m.length!==C)return!1;for(var b=0;b<d.length;b++)m.push.apply(m,this.diff((function(){var A;return a.each(o.properties,function(P){P.name===d[b]&&(A=P)}),A||o.properties[b]})(),v[d[b]],d[b]));return m.length===C}},items:function(o,v,y,m){var C=m.length;if(o.items){var h=o.rule;if(!o.rule.parameters)f.equal("items length",o.path,v.length,o.items.length,m);else{if(h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("items",o.path,v.length,Math.min(h.min,h.max)*o.items.length,m,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),f.lessThanOrEqualTo("items",o.path,v.length,Math.max(h.min,h.max)*o.items.length,m,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),h.min!==void 0&&h.max===void 0){if(h.count===1)return m.length===C;f.equal("items length",o.path,v.length,h.min*o.items.length,m)}if(h.parameters[2])return m.length===C}if(m.length!==C)return!1;for(var d=0;d<v.length;d++)m.push.apply(m,this.diff(o.items[d%o.items.length],v[d],d%o.items.length));return m.length===C}}},f={message:function(o){return(o.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",o.type.toUpperCase()).replace("{ltype}",o.type.toLowerCase()).replace("{path}",a.isArray(o.path)&&o.path.join(".")||o.path).replace("{action}",o.action).replace("{expected}",o.expected).replace("{actual}",o.actual)},equal:function(o,v,y,m,C,h){if(y===m)return!0;switch(o){case"type":if(m==="regexp"&&y==="string")return!0;break}var d={path:v,type:o,actual:y,expected:m,action:"is equal to",message:h};return d.message=f.message(d),C.push(d),!1},match:function(o,v,y,m,C,h){if(m.test(y))return!0;var d={path:v,type:o,actual:y,expected:m,action:"matches",message:h};return d.message=f.message(d),C.push(d),!1},notEqual:function(o,v,y,m,C,h){if(y!==m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is not equal to",message:h};return d.message=f.message(d),C.push(d),!1},greaterThan:function(o,v,y,m,C,h){if(y>m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than",message:h};return d.message=f.message(d),C.push(d),!1},lessThan:function(o,v,y,m,C,h){if(y<m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is less to",message:h};return d.message=f.message(d),C.push(d),!1},greaterThanOrEqualTo:function(o,v,y,m,C,h){if(y>=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than or equal to",message:h};return d.message=f.message(d),C.push(d),!1},lessThanOrEqualTo:function(o,v,y,m,C,h){if(y<=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is less than or equal to",message:h};return d.message=f.message(d),C.push(d),!1}};c.Diff=p,c.Assert=f,l.exports=c}),(function(l,x,n){l.exports=n(28)}),(function(l,x,n){var u=n(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch(C){window.Event=function(h,d,b,A){var P=document.createEvent("CustomEvent");return P.initCustomEvent(h,d,b,A),P}}var a={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},s="readystatechange loadstart progress abort error load timeout loadend".split(" "),c="timeout withCredentials".split(" "),p="readyState responseURL status statusText responseType response responseText responseXML".split(" "),f={200:"OK"};function o(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}o._settings={timeout:"10-100"},o.setup=function(C){return u.extend(o._settings,C),o._settings},u.extend(o,a),u.extend(o.prototype,a),o.prototype.mock=!0,o.prototype.match=!1,u.extend(o.prototype,{open:function(C,h,d,b,A){var P=this;u.extend(this.custom,{method:C,url:h,async:typeof d=="boolean"?d:!0,username:b,password:A,options:{url:h,type:C}}),this.custom.timeout=(function(O){if(typeof O=="number")return O;if(typeof O=="string"&&!~O.indexOf("-"))return parseInt(O,10);if(typeof O=="string"&&~O.indexOf("-")){var F=O.split("-"),U=parseInt(F[0],10),R=parseInt(F[1],10);return Math.round(Math.random()*(R-U))+U}})(o._settings.timeout);var L=y(this.custom.options);function T(O){for(var F=0;F<p.length;F++)try{P[p[F]]=D[p[F]]}catch(U){}P.dispatchEvent(new Event(O.type))}if(!L){var D=v();this.custom.xhr=D;for(var N=0;N<s.length;N++)D.addEventListener(s[N],T);b?D.open(C,h,d,b,A):D.open(C,h,d);for(var E=0;E<c.length;E++)try{D[c[E]]=P[c[E]]}catch(O){}return}this.match=!0,this.custom.template=L,this.readyState=o.OPENED,this.dispatchEvent(new Event("readystatechange"))},setRequestHeader:function(C,h){if(!this.match){this.custom.xhr.setRequestHeader(C,h);return}var d=this.custom.requestHeaders;d[C]?d[C]+=","+h:d[C]=h},timeout:0,withCredentials:!1,upload:{},send:function(h){var d=this;if(this.custom.options.body=h,!this.match){this.custom.xhr.send(h);return}this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(b,this.custom.timeout):b();function b(){d.readyState=o.HEADERS_RECEIVED,d.dispatchEvent(new Event("readystatechange")),d.readyState=o.LOADING,d.dispatchEvent(new Event("readystatechange")),d.status=200,d.statusText=f[200],d.response=d.responseText=JSON.stringify(m(d.custom.template,d.custom.options),null,4),d.readyState=o.DONE,d.dispatchEvent(new Event("readystatechange")),d.dispatchEvent(new Event("load")),d.dispatchEvent(new Event("loadend"))}},abort:function(){if(!this.match){this.custom.xhr.abort();return}this.readyState=o.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))}}),u.extend(o.prototype,{responseURL:"",status:o.UNSENT,statusText:"",getResponseHeader:function(C){return this.match?this.custom.responseHeaders[C.toLowerCase()]:this.custom.xhr.getResponseHeader(C)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var C=this.custom.responseHeaders,h="";for(var d in C)C.hasOwnProperty(d)&&(h+=d+": "+C[d]+`\r
|
|
9
|
-
`);return h},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),u.extend(o.prototype,{addEventListener:function(h,d){var b=this.custom.events;b[h]||(b[h]=[]),b[h].push(d)},removeEventListener:function(h,d){for(var b=this.custom.events[h]||[],A=0;A<b.length;A++)b[A]===d&&b.splice(A--,1)},dispatchEvent:function(h){for(var d=this.custom.events[h.type]||[],b=0;b<d.length;b++)d[b].call(this,h);var A="on"+h.type;this[A]&&this[A](h)}});function v(){var C=(function(){var b=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,A=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,P=location.href,L=A.exec(P.toLowerCase())||[];return b.test(L[1])})();return window.ActiveXObject?!C&&h()||d():h();function h(){try{return new window._XMLHttpRequest}catch(b){}}function d(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}function y(C){for(var h in o.Mock._mocked){var d=o.Mock._mocked[h];if((!d.rurl||b(d.rurl,C.url))&&(!d.rtype||b(d.rtype,C.type.toLowerCase())))return d}function b(A,P){if(u.type(A)==="string")return A===P;if(u.type(A)==="regexp")return A.test(P)}}function m(C,h){return u.isFunction(C.template)?C.template(h):o.Mock.mock(C.template)}l.exports=o})])})})(mock$1)),mock$1.exports}var mockExports=requireMock();const
|
|
9
|
+
`);return h},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),u.extend(o.prototype,{addEventListener:function(h,d){var b=this.custom.events;b[h]||(b[h]=[]),b[h].push(d)},removeEventListener:function(h,d){for(var b=this.custom.events[h]||[],A=0;A<b.length;A++)b[A]===d&&b.splice(A--,1)},dispatchEvent:function(h){for(var d=this.custom.events[h.type]||[],b=0;b<d.length;b++)d[b].call(this,h);var A="on"+h.type;this[A]&&this[A](h)}});function v(){var C=(function(){var b=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,A=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,P=location.href,L=A.exec(P.toLowerCase())||[];return b.test(L[1])})();return window.ActiveXObject?!C&&h()||d():h();function h(){try{return new window._XMLHttpRequest}catch(b){}}function d(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}function y(C){for(var h in o.Mock._mocked){var d=o.Mock._mocked[h];if((!d.rurl||b(d.rurl,C.url))&&(!d.rtype||b(d.rtype,C.type.toLowerCase())))return d}function b(A,P){if(u.type(A)==="string")return A===P;if(u.type(A)==="regexp")return A.test(P)}}function m(C,h){return u.isFunction(C.template)?C.template(h):o.Mock.mock(C.template)}l.exports=o})])})})(mock$1)),mock$1.exports}var mockExports=requireMock();const lu=getDefaultExportFromCjs(mockExports);export{lu as l};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-Drd5teeV.js","./vue-wWzmtsAU.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var R=Object.defineProperty;var E=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var C=(o,t,e)=>t in o?R(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))h.call(t,e)&&C(o,e,t[e]);if(E)for(var e of E(t))A.call(t,e)&&C(o,e,t[e]);return o};var c=(o,t,e)=>new Promise((_,s)=>{var u=r=>{try{p(e.next(r))}catch(i){s(i)}},d=r=>{try{p(e.throw(r))}catch(i){s(i)}},p=r=>r.done?_(r.value):Promise.resolve(r.value).then(u,d);p((e=e.apply(o,t)).next())});import{_ as g}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-Drd5teeV.js";import"./element-plus-
|
|
2
|
+
var R=Object.defineProperty;var E=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var C=(o,t,e)=>t in o?R(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))h.call(t,e)&&C(o,e,t[e]);if(E)for(var e of E(t))A.call(t,e)&&C(o,e,t[e]);return o};var c=(o,t,e)=>new Promise((_,s)=>{var u=r=>{try{p(e.next(r))}catch(i){s(i)}},d=r=>{try{p(e.throw(r))}catch(i){s(i)}},p=r=>r.done?_(r.value):Promise.resolve(r.value).then(u,d);p((e=e.apply(o,t)).next())});import{_ as g}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-Drd5teeV.js";import"./element-plus-wUcGoN3I.js";import"./vxe-Hv0pYDff.js";import{Q as B,z as T,F as V,B as D,T as O,Y as k,O as z}from"./Editor-fK8iVAVY-MGY1o9KZ.js";import{a as I,n as w,l as S,E as F}from"./utils-C_Ix6Z2d.js";import{y as L}from"./@vueuse-Jk9KQurp.js";import{y as Q,az as x,e as Y,E as H,S as N,U,r as b,D as j,g as q}from"./vue-wWzmtsAU.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Ck9BCBFj.js";import"./marked--VTVY_DP.js";const mt=Q({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new B(T(w)),s=([t,e]=x(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=V({loading:S,notify:w,useTitle:L,alert:I,access:s==null?void 0:s.access}),d=s?([t,e]=x(()=>new F(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=D({mode:O.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>g(()=>import("./vue-wWzmtsAU.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>g(()=>import("./vue-router-Drd5teeV.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=P(),f=b(),n=q(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{z(a,l,m)})});return i(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(k),a.use(r),v(a))})),Y(()=>l.params.id,a=>c(null,null,function*(){if(a){const m=n==null?void 0:n.appContext.app;if(!m)return;v(m)}})),(a,m)=>f.value?(j(),H(N(f.value),{key:0})):U("",!0)})}});export{mt as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-Drd5teeV.js","./vue-wWzmtsAU.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))g.call(e,t)&&E(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,r)=>{var _=a=>{try{i(t.next(a))}catch(p){r(p)}},s=a=>{try{i(t.throw(a))}catch(p){r(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,s);i((t=t.apply(o,e)).next())});import{_ as w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as B}from"./vue-router-Drd5teeV.js";import"./element-plus-
|
|
2
|
+
var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))g.call(e,t)&&E(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,r)=>{var _=a=>{try{i(t.next(a))}catch(p){r(p)}},s=a=>{try{i(t.throw(a))}catch(p){r(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,s);i((t=t.apply(o,e)).next())});import{_ as w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as B}from"./vue-router-Drd5teeV.js";import"./element-plus-wUcGoN3I.js";import"./vxe-Hv0pYDff.js";import{Q as P,z as T,F as V,B as D,T as O,W as k,Y as z,O as I}from"./Editor-fK8iVAVY-MGY1o9KZ.js";import{a as S,n as h,l as F,E as L}from"./utils-C_Ix6Z2d.js";import{y as Q}from"./@vueuse-Jk9KQurp.js";import{y as W,az as C,E as Y,S as H,U as N,r as U,D as b,g as j}from"./vue-wWzmtsAU.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-Ck9BCBFj.js";import"./marked--VTVY_DP.js";const me=W({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new P(T(h)),r=([e,t]=C(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=V({loading:F,notify:h,useTitle:Q,alert:S,access:r==null?void 0:r.access}),s=r?([e,t]=C(()=>new L(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=r||{},{provider:a,onReady:p}=D({mode:O.Runtime,service:c,materialPath:i,adapter:d(d({},_),s.adapter),dependencies:{Vue:()=>w(()=>import("./vue-wWzmtsAU.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-Drd5teeV.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=B(),u=U(),l=j();return p(()=>f(null,null,function*(){const m=yield k(r.enhance),n=l==null?void 0:l.appContext.app;n&&(s.install&&s.install(n),m&&n.use(m,a),n.use(z),n.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),R=>{I(n,v,R)}))})),(m,n)=>u.value?(b(),Y(H(u.value),{key:0})):N("",!0)})}});export{me as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u=Object.defineProperty;var p=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?u(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,l=(t,a)=>{for(var s in a||(a={}))T.call(a,s)&&g(t,s,a[s]);if(p)for(var s of p(a))O.call(a,s)&&g(t,s,a[s]);return t};var E=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var I=(t,a,s)=>new Promise((o,n)=>{var e=r=>{try{i(s.next(r))}catch(_){n(_)}},c=r=>{try{i(s.throw(r))}catch(_){n(_)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as h}from"./vue-wWzmtsAU.js";import{w as d,q as A,N as m,K as V,R as f,M as b,D as M,S as R,A as P,E as y,a as D,V as N,b as L,x as k,C as x,X as B,U as w,_ as K,c as C,h as G,y as H,e as v,k as U,$ as Y,v as W,f as F,g as $,i as q,t as J,l as X,m as j,n as z,o as Z,p as Q,G as aa,r as sa,s as ea,L as ta,H as ra,I as na,J as ia,P as oa,Z as _a,a0 as Ea,a1 as la,a2 as ca,a3 as ga,a4 as pa,a5 as Ia,a6 as Sa,a7 as ua,a8 as Ta,a9 as Oa,aa as ha,ab as da,ac as Aa,ad as ma,ae as Va,af as fa,ag as ba,ah as Ma,ai as Ra,aj as Pa,ak as ya,al as Da,am as Na,an as La,ao as ka,ap as xa,aq as Ba,ar as wa,as as Ka,at as Ca,au as Ga,av as Ha,aw as va,ax as Ua,ay as Ya,az as Wa,aA as Fa,u as $a,aB as qa,aC as Ja,aD as Xa,aE as ja,aF as za,aG as Za,aH as Qa,aI as as}from"./Editor-fK8iVAVY-MGY1o9KZ.js";import{E as ss,a as es,b as ts}from"./element-plus-wUcGoN3I.js";import"./dayjs-CxR8wwn9.js";const rs=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:d,ActionMenu:A,Assets:m,Binder:V,Box:f,CodeIncrementalUpdater:b,DEVTOOLS_DEP:M,DepsManager:R,Designer:P,EVENT_MODIFIERS:y,Editor:D,Engine:N,EventBinder:L,GET_TOKENS_LINK:k,HOT_KEYS_DEP:x,Icon:B,Item:w,KEYBOARD_EVENT_LIST:K,MAX_TOKENS:C,MOBILE_SIZE:G,MOUSE_EVENT_LIST:H,NAME_REGEX:v,NPM_REGISTRY_URL:U,OpenApi:Y,PAD_SIZE:W,Panel:F,REPORT_API:$,RegionType:q,RegionWrapper:J,Renderer:X,SAVE_BLOCK_FILE_FINISH:j,SESSION_ID_KEY:z,STATE_KEY:Z,SetterManager:Q,SetterView:aa,SetterWrapper:sa,Simulator:ea,Skeleton:ta,SkeletonWrapper:ra,SlotsPicker:na,State:ia,TOOL_CONFIGS:oa,Tabs:_a,ToolRegistry:Ea,VERSION_REGEX:la,VTJ_DESIGNER_VERSION:ca,VUE_DEVTOOLS_FRAME_STATE_KEY:ga,VUE_DEVTOOLS_OVERLAY_PATH:pa,VUE_DEVTOOLS_PATH:Ia,VariableBinder:Sa,Viewer:ua,Viewport:Ta,WidgetGroup:Oa,WidgetManager:ha,WidgetWrapper:da,alert:Aa,builtInDeps:ma,builtInMaterials:Va,builtInSetters:fa,builtInWidgets:ba,codeIncrementalUpdater:Ma,confirm:Ra,createSlotsPicker:Pa,defaultSetter:ya,depsManager:Da,engineKey:Na,expressionValidate:La,getClassProperties:ka,getComposableNames:xa,loading:Ba,message:wa,normalizedStyle:Ka,notify:Ca,proxyContext:Ga,readJsonFile:Ha,regions:va,setterManager:Ua,setters:Ya,upgradeVersion:Wa,useEngine:Fa,widgetManager:$a,widgets:qa},Symbol.toStringTag,{value:"Module"}));class ls{constructor(a){E(this,"urls",[]);E(this,"library","");E(this,"params",[]);E(this,"__BASE_PATH__","/");this.config=a;const s=l(l(l({},Xa),rs),Ja),o={Vue:h,__VTJ_PRO__:s};for(const[_,S]of Object.entries(o))window[_]=S;const{extension:n,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:i,params:r=[]}=n||{};i&&(this.urls=c,this.library=i,this.params=r,this.__BASE_PATH__=e)}load(){return I(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>ja(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>za(e)).map(e=>`${s}${e}`);if(Za(o),n.length){const e=yield Qa(n,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask","auth"];return as(this.config,a)}}function cs(){return ts.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function gs(t,a="",s="warning"){es({title:a,message:t,type:s})}function ps(t,a){return ss.alert(t,a)}export{ls as E,ps as a,cs as l,gs as n};
|
package/dist/index.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<meta http-equiv="Expires" content="0" />
|
|
12
12
|
<title>低代码设计器 - VTJ.PRO</title>
|
|
13
13
|
<script>
|
|
14
|
-
var __BUILD_TIME__ = '
|
|
14
|
+
var __BUILD_TIME__ = '1787467811364';
|
|
15
15
|
(function () {
|
|
16
16
|
const regex = /<!--{{(\d*)}}-->/;
|
|
17
17
|
window.fetch('?t=' + Date.now()).then(async (res) => {
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
});
|
|
28
28
|
})();
|
|
29
29
|
</script>
|
|
30
|
-
<!--{{
|
|
30
|
+
<!--{{1787467811364}}-->
|
|
31
31
|
|
|
32
|
-
<script type="module" crossorigin src="./assets/index-
|
|
32
|
+
<script type="module" crossorigin src="./assets/index-ase9yf8R.js"></script>
|
|
33
33
|
<link rel="modulepreload" crossorigin href="./assets/vue-wWzmtsAU.js">
|
|
34
34
|
<link rel="modulepreload" crossorigin href="./assets/@vueuse-Jk9KQurp.js">
|
|
35
35
|
<link rel="modulepreload" crossorigin href="./assets/lodash-es-BxdYFYdv.js">
|
|
36
36
|
<link rel="modulepreload" crossorigin href="./assets/shared-P7kalaod.js">
|
|
37
37
|
<link rel="modulepreload" crossorigin href="./assets/@element-plus-icons-vue-CMB1ifep.js">
|
|
38
38
|
<link rel="modulepreload" crossorigin href="./assets/dayjs-CxR8wwn9.js">
|
|
39
|
-
<link rel="modulepreload" crossorigin href="./assets/element-plus-
|
|
39
|
+
<link rel="modulepreload" crossorigin href="./assets/element-plus-wUcGoN3I.js">
|
|
40
40
|
<link rel="modulepreload" crossorigin href="./assets/monaco-editor-Bgo-w-Z8.js">
|
|
41
41
|
<link rel="modulepreload" crossorigin href="./assets/vue-router-Drd5teeV.js">
|
|
42
42
|
<link rel="stylesheet" crossorigin href="./assets/element-plus-Bw1qTWaj.css">
|
|
@@ -46,21 +46,21 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
46
46
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
47
47
|
* @name @vtj/core
|
|
48
48
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
49
|
-
* @version 0.19.
|
|
49
|
+
* @version 0.19.14
|
|
50
50
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
51
51
|
*/const Em="VueMaterial",Tm="VueRouterMaterial",Cm={[Em]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Tm]:["RouterView","RouterLink"]};let Am=class{constructor(){H(this,"listeners",[]);H(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const e of this.listeners)e();this.listeners=[]}ready(e){this.isReady?e():this.listeners.push(e)}resetReady(){this.isReady=!1}};var Im=Object.defineProperty,Rm=(t,e,r)=>e in t?Im(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ee=(t,e,r)=>Rm(t,typeof e!="symbol"?e+"":e,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const t=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),t.call(this,e,r,n)}})();/**!
|
|
52
52
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
53
53
|
* @name @vtj/utils
|
|
54
54
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
55
|
-
* @version 0.19.
|
|
55
|
+
* @version 0.19.14
|
|
56
56
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
57
57
|
*/const km={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Om=["put","post","patch"],Ss="Local-Request-Id",Pm=100,Dm=300,$m="/api/proxy";let Nm=class{constructor(e={}){Ee(this,"axios"),Ee(this,"settings"),Ee(this,"records",{}),Ee(this,"isLoading",!1),Ee(this,"stopSkipWarn"),Ee(this,"showLoading"),Ee(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const r=Xr(e,["settings","query"]);this.axios=gi.create(Bt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=Gn(this.openLoading.bind(this),Pm),this.showError=hg(this._showError.bind(this),Dm,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=Bt(this.settings,e.settings||{});const r=Xr(e,["settings","query"]);this.axios.defaults=Bt(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(e,r="请求已取消"){if(e){const n=this.records[e];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(e,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(e,n,r):r.headers||{}:{},s=F(F({"Content-Type":km[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[Ss]=e),s}isJsonType(e){return Object.entries(e).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(e,r="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(e,r,n,i,s={}){const{type:a,skipWarn:o}=e,{name:u="skipWarn"}=o||{};let{data:c,params:l={},method:h="get"}=r;const p=i?{[u]:!0}:{};return Om.includes(h.toLowerCase())?(c=Object.assign(c||{},p),c=a!=="json"||!this.isJsonType(n)?this.toFormData(c,a):c,l=F({},s)):a==="form"?l=F(F(F({},c||{}),s),p):(c&&(a!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,a)),l=F(F({},s),p)),{data:c,params:l}}createUrl(e){let{url:r,params:n}=e;if(r){let i=Gt(r)?new URL(r).origin:"";const s=i?r.replace(i,""):r;try{const a=fm(s,{encode:encodeURIComponent});return i+a(n||{})}catch(a){console.warn("createUrl","pathToRegexpCompile error",r)}}return r}createProxy(e,r,n){if(!e.proxy)return{url:r,headers:n};const i=e.proxyPath||$m,{protocol:s,host:a}=location||{},o=Gt(r)?r:`${s}//${a}${r}`;return n.Target=o,{url:i,headers:n}}openLoading(e){const{loading:r,showLoading:n}=e;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(e){const{hideLoading:r}=e;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,r){var s;const{failMessage:n,showError:i}=e;if(n&&i){const a=(s=r==null?void 0:r.response)==null?void 0:s.data,o=(a==null?void 0:a.message)||(a==null?void 0:a.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(o,r)}}validResponse(e,r){const{validSuccess:n,validate:i}=e;return n&&i?!!i(r):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},r=!1){const n=Bt({},this.settings,e.settings||{}),i=e.query||{},s=Xr(e,["settings","query"]),a=cm(!1),o=gi.CancelToken.source();this.records[a]={settings:n,config:s,source:o};const u=this.createUrl(s)||"",c=this.createHeaders(a,n,s),{url:l,headers:h}=this.createProxy(n,u,c),{data:p,params:f}=this.createSendData(n,s,h,r,i);return this.showLoading(n),new Promise((d,m)=>{this.axios(ue(F({cancelToken:o.token},s),{url:l,headers:h,data:p,params:f})).then(v=>{var S;return this.isSkipWarnResponse(v)?d(v.promise):this.validResponse(n,v)?d(n.originResponse?v:(S=v.data)==null?void 0:S.data):(this.showError(n,v.data),m(v.data))}).catch(v=>(this.showError(n,v),m(v))).finally(()=>{delete this.records[a],this.closeLoading(n)})})}useResponse(e,r){const{response:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}useRequest(e,r){const{request:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=e.skipWarn;this.stopSkipWarn=this.useResponse(a=>{const o=(a.config.headers||{})[Ss],u=this.records[o];if(!u)return a;const{data:c}=a;if(!c||typeof c!="object")return a;if((c==null?void 0:c.code)===r){i&&i(a);const l=new Promise(n).then(()=>this.send(ue(F({},u.config),{settings:u.settings}),!0));l.catch(h=>h).finally(()=>{s&&s()}),a.promise=l}return a})}};function Zn(t={}){const e=new Nm(t),r=e.send.bind(e),n=e.cancel.bind(e),i=e.setConfig.bind(e),s=e.useRequest.bind(e),a=e.useResponse.bind(e);return Object.assign(r,ue(F({},e),{instance:e,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:a}))}const Cn=Zn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),An=typeof window<"u";function Bm(t){const e={};return t?(t.forEach((r,n)=>{e[n]=typeof r=="string"?decodeURIComponent(r):r}),e):{}}class ao{constructor(e={}){Ee(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),Ee(this,"caches",{}),Ee(this,"types"),this.types={local:An?window.localStorage:this.caches,session:An?window.sessionStorage:this.caches,cache:this.caches},this.config(e)}config(e={}){this.options=Object.assign(this.options,e)}save(e,r,n={}){const{type:i,expired:s,prefix:a}=F(F({},this.options),n),o=Date.now(),u=a+e,c=this.types[i]||this.caches,l={value:r,timestamp:o,expired:s};c===this.caches?c[u]=l:c.setItem(u,JSON.stringify(l))}get(e,r={}){const{type:n,prefix:i}=F(F({},this.options),r),s=i+e,a=this.types[n]||this.caches;let o;if(a===this.caches)o=a[s];else{const h=a.getItem(s);if(h)try{o=JSON.parse(h)}catch(p){console.warn("[Storage] JSON.parse",p)}}if(!o)return null;const{value:u,timestamp:c,expired:l}=o;return l>0&&c+l<Date.now()?(this.remove(e,r),null):u}remove(e,r={}){const{type:n,prefix:i}=F(F({},this.options),r),s=this.types[n]||this.caches,a=i+e;s===this.caches?delete s[a]:s.removeItem(a)}clear(e={}){const{type:r}=F(F({},this.options),e),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const en=new ao;function oo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vr={exports:{}},Lm=vr.exports,Es;function Vm(){return Es||(Es=1,(function(t,e){(function(r,n){n(e,t)})(Lm,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function a(c){try{delete window[c]}catch(l){window[c]=void 0}}function o(c){var l=document.getElementById(c);l&&document.getElementsByTagName("head")[0].removeChild(l)}function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=c,p=l.timeout||i.timeout,f=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,v){var S=l.jsonpCallbackFunction||s(),b=f+"_"+S;window[S]=function(w){m({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),o(b),a(S)},h+=h.indexOf("?")===-1?"?":"&";var _=document.createElement("script");_.setAttribute("src",""+h+f+"="+S),l.charset&&_.setAttribute("charset",l.charset),l.nonce&&_.setAttribute("nonce",l.nonce),l.referrerPolicy&&_.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&_.setAttribute("crossorigin","true"),_.id=b,document.getElementsByTagName("head")[0].appendChild(_),d=setTimeout(function(){v(new Error("JSONP request to "+c+" timed out")),a(S),o(b),window[S]=function(){a(S)}},p),_.onerror=function(){v(new Error("JSONP request to "+c+" failed")),a(S),o(b),d&&clearTimeout(d)}})}n.exports=u})})(vr,vr.exports)),vr.exports}var jm=Vm();const Mm=oo(jm);function Fm(t){if(An){const{protocol:e,host:r,pathname:n}=location;return`${e}//${r}${t?n:""}`}else return null}function Um(t=""){const e=t.match(eo);return e?e[0]:""}function co(t){const e=[];for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push([r,encodeURIComponent(t[r])].join("="));return e.join("&")}function In(t,e,r){const n={};t=(t||location.search).replace(/^[^]*\?/,""),e=e||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+e+")([^\\"+r+"\\"+e+"]+)(?:\\"+r+"([^\\"+e+"]*))?","g");for(;(i=s.exec(t))!==null;)i[1]!==t&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function uo(t,e){e=typeof e=="string"?In(e):e;const r=t.split("?")[0],n=In(t),i=Object.assign({},n,e),s=co(i);return s?[r,s].join("?"):t}const Ft=Object.freeze(Object.defineProperty({__proto__:null,append:uo,getCurrentHost:Fm,getHost:Um,parse:In,stringify:co},Symbol.toStringTag,{value:"Module"}));function lo(r){return M(this,arguments,function*(t,e={}){const{query:n={}}=e;t.includes("${")&&(t=ug(t)(n||{}));const i=uo(t,n);return yield(yield Mm(i,e)).json()})}var tn,Ts;function Hm(){if(Ts)return tn;Ts=1,tn=function(n,i,s){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},o.type=i.type||"text/javascript",o.charset=i.charset||"utf8",o.async="async"in i?!!i.async:!0,o.src=n,i.attrs&&t(o,i.attrs),i.text&&(o.text=""+i.text);var u="onload"in o?e:r;u(o,s),o.onload||e(o,s),a.appendChild(o)};function t(n,i){for(var s in i)n.setAttribute(s,i[s])}function e(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return tn}var qm=Hm();const zm=oo(qm);function Cs(t,e={}){return new Promise((r,n)=>{const{library:i}=e;zm(t,e,(s,a)=>{s?n(s):r(i?window[i]:void 0)})})}const As={debug:-1,log:0,info:0,warn:1,error:2},Wm=function(t,e,r,n){return function(...i){if(e&&As[e]<=As[t]&&console[t].apply&&(n==="*"||r.startsWith(n)))return console[t].apply(console,Gm(i,r))}};function Gm(t,e){return e!=="*"&&(typeof t[0]=="string"?t[0]=`[${e}] ${t[0]}`:t=["["+e+"]"].concat(t)),t}function Km(t,e){if(!t)return{targetLevel:e.level,targetBizName:e.bizName};if(~t.indexOf(":")){const r=t.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:t,targetBizName:"*"}}const Jm={level:"warn",bizName:"*"};let Ym=class{constructor(e){Ee(this,"config"),Ee(this,"options"),this.options=F(F({},Jm),e);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Km(n,e)}_log(e){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Wm(e,r,i,n)}debug(...e){return this._log("debug")(...e)}log(...e){return this._log("log")(...e)}info(...e){return this._log("info")(...e)}warn(...e){return this._log("warn")(...e)}error(...e){return this._log("error")(...e)}};function Zm(t){return new Ym(t)}const ft=Zm({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.8 | MIT */function pr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)n!=="__proto__"&&(t[n]=r[n])}return t}var Qm={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Rn(t,e){function r(i,s,a){if(!(typeof document>"u")){a=pr({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var u in a)a[u]&&(o+="; "+u,a[u]!==!0&&(o+="="+a[u].split(";")[0]));return document.cookie=i+"="+t.write(s,i)+o}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},o=0;o<s.length;o++){var u=s[o].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(l in a||(a[l]=t.read(c,l)),i===l)break}catch(h){}}return i?a[i]:a}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",pr({},s,{expires:-1}))},withAttributes:function(i){return Rn(this.converter,pr({},this.attributes,i))},withConverter:function(i){return Rn(pr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Qn=Rn(Qm,{path:"/"});function Xm(t,e,r){Qn.set(t,e,r)}function ev(t){return Qn.get(t)}function tv(t,e){Qn.remove(t,e)}const rn=Object.freeze(Object.defineProperty({__proto__:null,get:ev,remove:tv,set:Xm},Symbol.toStringTag,{value:"Module"}));/**!
|
|
58
58
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
59
59
|
* @name @vtj/renderer
|
|
60
60
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
61
|
-
* @version 0.19.
|
|
61
|
+
* @version 0.19.14
|
|
62
62
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
63
|
-
*/const nn="0.19.
|
|
63
|
+
*/const nn="0.19.14";var se=(t=>(t.Runtime="Runtime",t.Design="Design",t.Raw="Raw",t.VNode="VNode",t))(se||{});const Is=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],rv=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],nv={String,Number,Boolean,Array,Object,Function,Date},yr="VtjPage",sn="VtjHomepage",ho="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(","),iv="component,slot".split(",");function fr(t,e){return t.map(r=>Gt(r)||r.startsWith("/")?r:`${e}${r}`)}function kr(t){return/\.css$/.test(t)}function Or(t){return/\.js$/.test(t)}function sv(t){return/\.json$/.test(t)}function av(t,e=!1){return e&&t.endsWith(".prod.js")?t.replace(".prod.js",".js"):t}function ov(t,e,r=!1){const n=t.filter(p=>!!p.enabled),i=[],s=[],a=[],o=[],u={},c={},l=[],h={};return n.forEach(({urls:p,assetsUrl:f,library:d,assetsLibrary:m,localeLibrary:v})=>{p==null||p.forEach(S=>{Or(S)&&i.push(av(S,r)),kr(S)&&s.push(S)}),d&&(o.push(d),u[d]=fr(p||[],e),v&&(c[d]=v)),f&&a.push(f),m&&l.push(m),d&&m&&(h[m]=d)}),{scripts:fr(i,e),css:fr(s,e),materials:fr(a,e),libraryExports:o,materialExports:lm(l),materialMapLibrary:h,libraryMap:u,libraryLocaleMap:c}}function cv(t,e){var s;const{name:r,parent:n,alias:i}=t;return n?(s=e[n])==null?void 0:s[i||r]:e[i||r]}function uv(t=[]){const e=t.filter(n=>kr(n)),r=t.filter(n=>Or(n));return{css:e,js:r}}function lv(t,e){const r=c=>{const l=[];let h=0;for(;h<c.length;){if(/\s/.test(c[h])){h++;continue}if(c.substring(h,h+2)==="/*"){const S=c.indexOf("*/",h+2);if(S!==-1){h=S+2;continue}}if(c[h]==="@"){const S=h;for(;h<c.length&&c[h]!=="{"&&c[h]!==";";)h++;const b=c.substring(S,h).trim(),_=b.includes("@keyframes");if(c[h]===";")l.push({type:"simple-at-rule",content:c.substring(S,h+1)}),h++;else if(c[h]==="{"){const w=h+1;let x=1;for(h++;h<c.length&&x>0;)c[h]==="{"?x++:c[h]==="}"&&x--,h++;const y=c.substring(S,h),T=c.substring(w,h-1);l.push({type:_?"keyframes":"at-rule",rule:b,content:y,inner:T})}continue}const p=h;for(;h<c.length&&c[h]!=="{";)h++;if(h>=c.length)break;const f=c.substring(p,h).trim();if(!f){h++;continue}const d=h+1;let m=1;for(h++;h<c.length&&m>0;)c[h]==="{"?m++:c[h]==="}"&&m--,h++;const v=c.substring(d,h-1);l.push({type:"rule",selector:f,content:v.trim()})}return l},n=c=>{const l=c.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(l)},i=c=>c.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(l,h,p)=>{const f=h.trim(),d=p.trim();return f?`${f}[${e}] ${d}`:`[${e}] ${d}`}),s=c=>{const l=c.trim();if(!l||l.includes(`[${e}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(l)||n(l))return l;const h=l.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(h){const[,p,f=""]=h,d=p.trim();return d?`${d}[${e}]${f}`:l}return`${l}[${e}]`},a=c=>i(c).split(",").map(l=>s(l)).filter(l=>l.trim()).join(", "),o=c=>c.map(l=>{switch(l.type){case"simple-at-rule":return l.content;case"keyframes":return l.content;case"at-rule":try{const p=r(l.inner),f=o(p);return`${l.rule} { ${f} }`}catch(p){return l.content}case"rule":if(!l.selector||!l.content)return"";const h=a(l.selector);return h.trim()?`${h} { ${l.content} }`:"";default:return""}}).filter(l=>l.trim()).join(" "),u=c=>c.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const c=t.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
|
|
64
64
|
`),l=r(c),h=o(l);return u(h)}catch(c){return console.error("CSS scoping failed:",c),console.error("Input CSS:",t),t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,l=>l).replace(/([^{}@]+)(?=\s*{)/g,l=>{const h=l.trim();return!h||h.startsWith("@")||h.includes(`[${e}]`)||n(h)?l:`${h}[${e}]`})}}const hv=750;function pv(t,e,r){let n;typeof t<"u"?n=t.innerWidth||t.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=hv;return e*n/i}function fv(t,e){let r=!1,n=!1,i=!1,s="";for(let a=0;a<e.length;a++){const o=e[a];if(o==="'"&&!n&&!i?r=!r:o==='"'&&!r&&!i?n=!n:e.substr(a,4).toLowerCase()==="url("&&!r&&!n?i=!0:o===")"&&i&&(i=!1),!r&&!n&&!i){const u=e.substr(a).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(u){const c=u[1],l=parseFloat(c),h=`${pv(t,l).toFixed(6).replace(/\.?0+$/,"")}px`;s+=h,a+=u[0].length-1;continue}}s+=o}return s}function po(t){return Ze(t)?t:JSON.stringify(t)}function Pr(t,e,r,n=!1){var f;const i=t.CSSStyleSheet,s=n?`data-v-${e}`:e,a=t.__uniConfig?fv(t,r):r,o=!!t.__uniConfig,u=t.document,c=!!((f=i==null?void 0:i.prototype)!=null&&f.replaceSync)&&!o,l=c?Array.from(u.adoptedStyleSheets||[]).find(d=>d.id===e):u.getElementById(e),h=`${s}
|
|
65
65
|
${a}`;if((l==null?void 0:l.__vtjSource)===h)return;const p=n?lv(a,s):a;if(c){const d=new i;d.id=e,d.__vtjSource=h,d.replaceSync(p);const m=u.adoptedStyleSheets||[],v=Array.from(m).filter(S=>S.id!==e);u.adoptedStyleSheets=[...v,d]}else{let d=l;d?d.innerHTML=p:(d=u.createElement("style"),d.id=e,d.innerHTML=p,u.head.appendChild(d)),d.__vtjSource=h}}function dv(t,e){return M(this,null,function*(){const r=yield globalThis.fetch(e).then(n=>n.text()).catch(()=>"");r&&Pr(globalThis,t,r)})}function fo(t,e=globalThis){const r=e.document,n=e.document.head;for(const i of t)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function go(n,i){return M(this,arguments,function*(t,e,r=globalThis){var u;const s=r.document,a=r.document.head;let o=r[e];if(o)return o.default||o;for(const c of t){const l=(u=s.getElementById)==null?void 0:u.call(s,c);if(l!=null&&l.__vtjLoading){yield l.__vtjLoading;continue}if(l)continue;const h=s.createElement("script");h.id=c,h.src=c,h.__vtjLoading=new Promise((p,f)=>{h.onload=()=>p(),h.onerror=d=>{var m;(m=h.remove)==null||m.call(h),f(d)}}),a.appendChild(h),yield h.__vtjLoading}return o=r[e],o?o.default||o:Promise.reject(null)})}function gv(t){return ge(t)&&Object.getOwnPropertyNames(t.prototype||{}).length===0||ge(t==null?void 0:t.install)}function mv(t){return iv.includes(t)}function vv(t){return ho.includes(t)}function Jt(t=globalThis){const e=globalThis==null?void 0:globalThis.Mock;if(e)return e;const r=t==null?void 0:t.Mock;if(r&&globalThis)return globalThis.Mock=r,r}function yv(t){return/^\([\s\S]*\)/.test(t.trim())}function bv(t){return/\w+\([\s\S]*\)$/.test(t.trim())}function _v(t){return t.includes("=")}var an={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},on="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",xv={5:on,"5module":on+" export import",6:on+" const class extends export import super"},wv=/^in(stanceof)?$/,Xn="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",mo="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Sv=new RegExp("["+Xn+"]"),Ev=new RegExp("["+Xn+mo+"]");Xn=mo=null;var vo=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],Tv=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function kn(t,e){for(var r=65536,n=0;n<e.length;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}}function ot(t,e){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&Sv.test(String.fromCharCode(t)):e===!1?!1:kn(t,vo)}function Rt(t,e){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&Ev.test(String.fromCharCode(t)):e===!1?!1:kn(t,vo)||kn(t,Tv)}var X=function(t,e){e===void 0&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function we(t,e){return new X(t,{beforeExpr:!0,binop:e})}var Se={beforeExpr:!0},xe={startsExpr:!0},ei={};function Q(t,e){return e===void 0&&(e={}),e.keyword=t,ei[t]=new X(t,e)}var g={num:new X("num",xe),regexp:new X("regexp",xe),string:new X("string",xe),name:new X("name",xe),eof:new X("eof"),bracketL:new X("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new X("]"),braceL:new X("{",{beforeExpr:!0,startsExpr:!0}),braceR:new X("}"),parenL:new X("(",{beforeExpr:!0,startsExpr:!0}),parenR:new X(")"),comma:new X(",",Se),semi:new X(";",Se),colon:new X(":",Se),dot:new X("."),question:new X("?",Se),questionDot:new X("?."),arrow:new X("=>",Se),template:new X("template"),invalidTemplate:new X("invalidTemplate"),ellipsis:new X("...",Se),backQuote:new X("`",xe),dollarBraceL:new X("${",{beforeExpr:!0,startsExpr:!0}),eq:new X("=",{beforeExpr:!0,isAssign:!0}),assign:new X("_=",{beforeExpr:!0,isAssign:!0}),incDec:new X("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new X("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:we("||",1),logicalAND:we("&&",2),bitwiseOR:we("|",3),bitwiseXOR:we("^",4),bitwiseAND:we("&",5),equality:we("==/!=/===/!==",6),relational:we("</>/<=/>=",7),bitShift:we("<</>>/>>>",8),plusMin:new X("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:we("%",10),star:we("*",10),slash:we("/",10),starstar:new X("**",{beforeExpr:!0}),coalesce:we("??",1),_break:Q("break"),_case:Q("case",Se),_catch:Q("catch"),_continue:Q("continue"),_debugger:Q("debugger"),_default:Q("default",Se),_do:Q("do",{isLoop:!0,beforeExpr:!0}),_else:Q("else",Se),_finally:Q("finally"),_for:Q("for",{isLoop:!0}),_function:Q("function",xe),_if:Q("if"),_return:Q("return",Se),_switch:Q("switch"),_throw:Q("throw",Se),_try:Q("try"),_var:Q("var"),_const:Q("const"),_while:Q("while",{isLoop:!0}),_with:Q("with"),_new:Q("new",{beforeExpr:!0,startsExpr:!0}),_this:Q("this",xe),_super:Q("super",xe),_class:Q("class",xe),_extends:Q("extends",Se),_export:Q("export"),_import:Q("import",xe),_null:Q("null",xe),_true:Q("true",xe),_false:Q("false",xe),_in:Q("in",{beforeExpr:!0,binop:7}),_instanceof:Q("instanceof",{beforeExpr:!0,binop:7}),_typeof:Q("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Q("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Q("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ke=/\r\n?|\n|\u2028|\u2029/,Yt=new RegExp(ke.source,"g");function er(t,e){return t===10||t===13||!e&&(t===8232||t===8233)}var yo=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Te=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,bo=Object.prototype,Cv=bo.hasOwnProperty,Av=bo.toString;function Dr(t,e){return Cv.call(t,e)}var Rs=Array.isArray||(function(t){return Av.call(t)==="[object Array]"});function dt(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var Zt=function(t,e){this.line=t,this.column=e};Zt.prototype.offset=function(t){return new Zt(this.line,this.column+t)};var $r=function(t,e,r){this.start=e,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function _o(t,e){for(var r=1,n=0;;){Yt.lastIndex=n;var i=Yt.exec(t);if(i&&i.index<e)++r,n=i.index+i[0].length;else return new Zt(r,e-n)}}var On={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function Iv(t){var e={};for(var r in On)e[r]=t&&Dr(t,r)?t[r]:On[r];if(e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),Rs(e.onToken)){var n=e.onToken;e.onToken=function(i){return n.push(i)}}return Rs(e.onComment)&&(e.onComment=Rv(e,e.onComment)),e}function Rv(t,e){return function(r,n,i,s,a,o){var u={type:r?"Block":"Line",value:n,start:i,end:s};t.locations&&(u.loc=new $r(this,a,o)),t.ranges&&(u.range=[i,s]),e.push(u)}}var Qt=1,tr=2,ti=Qt|tr,xo=4,wo=8,So=16,Eo=32,To=64,Co=128;function ri(t,e){return tr|(t?xo:0)|(e?wo:0)}var ks=0,ni=1,We=2,Ao=3,Io=4,Ro=5,oe=function(t,e,r){this.options=t=Iv(t),this.sourceFile=t.sourceFile,this.keywords=dt(xv[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";if(t.allowReserved!==!0){for(var i=t.ecmaVersion;!(n=an[i]);i--);t.sourceType==="module"&&(n+=" await")}this.reservedWords=dt(n);var s=(n?n+" ":"")+an.strict;this.reservedWordsStrict=dt(s),this.reservedWordsStrictBind=dt(s+" "+an.strictBind),this.input=String(e),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
|
|
66
66
|
`,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ke).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=g.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Qt),this.regexpState=null},yt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};oe.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};yt.inFunction.get=function(){return(this.currentVarScope().flags&tr)>0};yt.inGenerator.get=function(){return(this.currentVarScope().flags&wo)>0};yt.inAsync.get=function(){return(this.currentVarScope().flags&xo)>0};yt.allowSuper.get=function(){return(this.currentThisScope().flags&To)>0};yt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Co)>0};yt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};oe.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&tr)>0};oe.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var r=this,n=0;n<t.length;n++)r=t[n](r);return r};oe.parse=function(t,e){return new this(e,t).parse()};oe.parseExpressionAt=function(t,e,r){var n=new this(r,t,e);return n.nextToken(),n.parseExpression()};oe.tokenizer=function(t,e){return new this(e,t)};Object.defineProperties(oe.prototype,yt);var be=oe.prototype,kv=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;be.strictDirective=function(t){for(;;){Te.lastIndex=t,t+=Te.exec(this.input)[0].length;var e=kv.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){Te.lastIndex=t+e[0].length;var r=Te.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return i===";"||i==="}"||ke.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(n+1)==="=")}t+=e[0].length,Te.lastIndex=t,t+=Te.exec(this.input)[0].length,this.input[t]===";"&&t++}};be.eat=function(t){return this.type===t?(this.next(),!0):!1};be.isContextual=function(t){return this.type===g.name&&this.value===t&&!this.containsEsc};be.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};be.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};be.canInsertSemicolon=function(){return this.type===g.eof||this.type===g.braceR||ke.test(this.input.slice(this.lastTokEnd,this.start))};be.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};be.semicolon=function(){!this.eat(g.semi)&&!this.insertSemicolon()&&this.unexpected()};be.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0};be.expect=function(t){this.eat(t)||this.unexpected()};be.unexpected=function(t){this.raise(t!=null?t:this.start,"Unexpected token")};function Nr(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}be.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var r=e?t.parenthesizedAssign:t.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}};be.checkExpressionErrors=function(t,e){if(!t)return!1;var r=t.shorthandAssign,n=t.doubleProto;if(!e)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")};be.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};be.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var K=oe.prototype;K.parseTopLevel=function(t){var e={};for(t.body||(t.body=[]);this.type!==g.eof;){var r=this.parseStatement(null,!0,e);t.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var s=i[n];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var ii={kind:"loop"},Ov={kind:"switch"};K.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Te.lastIndex=this.pos;var e=Te.exec(this.input),r=this.pos+e[0].length,n=this.input.charCodeAt(r);if(n===91)return!0;if(t)return!1;if(n===123)return!0;if(ot(n,!0)){for(var i=r+1;Rt(this.input.charCodeAt(i),!0);)++i;var s=this.input.slice(r,i);if(!wv.test(s))return!0}return!1};K.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Te.lastIndex=this.pos;var t=Te.exec(this.input),e=this.pos+t[0].length;return!ke.test(this.input.slice(this.pos,e))&&this.input.slice(e,e+8)==="function"&&(e+8===this.input.length||!Rt(this.input.charAt(e+8)))};K.parseStatement=function(t,e,r){var n=this.type,i=this.startNode(),s;switch(this.isLet(t)&&(n=g._var,s="let"),n){case g._break:case g._continue:return this.parseBreakContinueStatement(i,n.keyword);case g._debugger:return this.parseDebuggerStatement(i);case g._do:return this.parseDoStatement(i);case g._for:return this.parseForStatement(i);case g._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!t);case g._class:return t&&this.unexpected(),this.parseClass(i,!0);case g._if:return this.parseIfStatement(i);case g._return:return this.parseReturnStatement(i);case g._switch:return this.parseSwitchStatement(i);case g._throw:return this.parseThrowStatement(i);case g._try:return this.parseTryStatement(i);case g._const:case g._var:return s=s||this.value,t&&s!=="var"&&this.unexpected(),this.parseVarStatement(i,s);case g._while:return this.parseWhileStatement(i);case g._with:return this.parseWithStatement(i);case g.braceL:return this.parseBlock(!0,i);case g.semi:return this.parseEmptyStatement(i);case g._export:case g._import:if(this.options.ecmaVersion>10&&n===g._import){Te.lastIndex=this.pos;var a=Te.exec(this.input),o=this.pos+a[0].length,u=this.input.charCodeAt(o);if(u===40||u===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===g._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!t);var c=this.value,l=this.parseExpression();return n===g.name&&l.type==="Identifier"&&this.eat(g.colon)?this.parseLabeledStatement(i,c,l,t):this.parseExpressionStatement(i,l)}};K.parseBreakContinueStatement=function(t,e){var r=e==="break";this.next(),this.eat(g.semi)||this.insertSemicolon()?t.label=null:this.type!==g.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var i=this.labels[n];if((t.label==null||i.name===t.label.name)&&(i.kind!=null&&(r||i.kind==="loop")||t.label&&r))break}return n===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,r?"BreakStatement":"ContinueStatement")};K.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};K.parseDoStatement=function(t){return this.next(),this.labels.push(ii),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(g._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(g.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")};K.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ii),this.enterScope(0),this.expect(g.parenL),this.type===g.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var r=this.isLet();if(this.type===g._var||this.type===g._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&n.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===g._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,n)):(e>-1&&this.unexpected(e),this.parseFor(t,n))}var s=new Nr,a=this.parseExpression(!0,s);return this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===g._in?e>-1&&this.unexpected(e):t.await=e>-1),this.toAssignable(a,!1,s),this.checkLVal(a),this.parseForIn(t,a)):(this.checkExpressionErrors(s,!0),e>-1&&this.unexpected(e),this.parseFor(t,a))};K.parseFunctionStatement=function(t,e,r){return this.next(),this.parseFunction(t,Ut|(r?0:Pn),!1,e)};K.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(g._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};K.parseReturnStatement=function(t){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")};K.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(g.braceL),this.labels.push(Ov),this.enterScope(0);for(var e,r=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var n=this.type===g._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),n?e.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,e.test=null),this.expect(g.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};K.parseThrowStatement=function(t){return this.next(),ke.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Pv=[];K.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===g._catch){var e=this.startNode();if(this.next(),this.eat(g.parenL)){e.param=this.parseBindingAtom();var r=e.param.type==="Identifier";this.enterScope(r?Eo:0),this.checkLVal(e.param,r?Io:We),this.expect(g.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0);e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(g._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")};K.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")};K.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(ii),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};K.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};K.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};K.parseLabeledStatement=function(t,e,r,n){for(var i=0,s=this.labels;i<s.length;i+=1){var a=s[i];a.name===e&&this.raise(r.start,"Label '"+e+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===g._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var c=this.labels[u];if(c.statementStart===t.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:e,kind:o,statementStart:this.start}),t.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")};K.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")};K.parseBlock=function(t,e,r){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(g.braceL),t&&this.enterScope(0);this.type!==g.braceR;){var n=this.parseStatement(null);e.body.push(n)}return r&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")};K.parseFor=function(t,e){return t.init=e,this.expect(g.semi),t.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),t.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};K.parseForIn=function(t,e){var r=this.type===g._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")?this.raise(e.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"):e.type==="AssignmentPattern"&&this.raise(e.start,"Invalid left-hand side in for-loop"),t.left=e,t.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(g.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,r?"ForInStatement":"ForOfStatement")};K.parseVar=function(t,e,r){for(t.declarations=[],t.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(g.eq)?n.init=this.parseMaybeAssign(e):r==="const"&&!(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():n.id.type!=="Identifier"&&!(e&&(this.type===g._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,t.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(g.comma))break}return t};K.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLVal(t.id,e==="var"?ni:We,!1)};var Ut=1,Pn=2,ko=4;K.parseFunction=function(t,e,r,n){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===g.star&&e&Pn&&this.unexpected(),t.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(t.async=!!n),e&Ut&&(t.id=e&ko&&this.type!==g.name?null:this.parseIdent(),t.id&&!(e&Pn)&&this.checkLVal(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?ni:We:Ao));var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ri(t.async,t.generator)),e&Ut||(t.id=this.type===g.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,r,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(t,e&Ut?"FunctionDeclaration":"FunctionExpression")};K.parseFunctionParams=function(t){this.expect(g.parenL),t.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};K.parseClass=function(t,e){this.next();var r=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var n=this.startNode(),i=!1;for(n.body=[],this.expect(g.braceL);this.type!==g.braceR;){var s=this.parseClassElement(t.superClass!==null);s&&(n.body.push(s),s.type==="MethodDefinition"&&s.kind==="constructor"&&(i&&this.raise(s.start,"Duplicate constructor in the same class"),i=!0))}return this.strict=r,this.next(),t.body=this.finishNode(n,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")};K.parseClassElement=function(t){var e=this;if(this.eat(g.semi))return null;var r=this.startNode(),n=function(u,c){c===void 0&&(c=!1);var l=e.start,h=e.startLoc;return e.eatContextual(u)?e.type!==g.parenL&&(!c||!e.canInsertSemicolon())?!0:(r.key&&e.unexpected(),r.computed=!1,r.key=e.startNodeAt(l,h),r.key.name=u,e.finishNode(r.key,"Identifier"),!1):!1};r.kind="method",r.static=n("static");var i=this.eat(g.star),s=!1;i||(this.options.ecmaVersion>=8&&n("async",!0)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(g.star)):n("get")?r.kind="get":n("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var a=r.key,o=!1;return!r.computed&&!r.static&&(a.type==="Identifier"&&a.name==="constructor"||a.type==="Literal"&&a.value==="constructor")?(r.kind!=="method"&&this.raise(a.start,"Constructor can't have get/set modifier"),i&&this.raise(a.start,"Constructor can't be a generator"),s&&this.raise(a.start,"Constructor can't be an async method"),r.kind="constructor",o=t):r.static&&a.type==="Identifier"&&a.name==="prototype"&&this.raise(a.start,"Classes may not have a static property named prototype"),this.parseClassMethod(r,i,s,o),r.kind==="get"&&r.value.params.length!==0&&this.raiseRecoverable(r.value.start,"getter should have no params"),r.kind==="set"&&r.value.params.length!==1&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r};K.parseClassMethod=function(t,e,r,n){return t.value=this.parseMethod(e,r,n),this.finishNode(t,"MethodDefinition")};K.parseClassId=function(t,e){this.type===g.name?(t.id=this.parseIdent(),e&&this.checkLVal(t.id,We,!1)):(e===!0&&this.unexpected(),t.id=null)};K.parseClassSuper=function(t){t.superClass=this.eat(g._extends)?this.parseExprSubscripts():null};K.parseExport=function(t,e){if(this.next(),this.eat(g.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseIdent(!0),this.checkExport(e,t.exported.name,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==g.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(g._default)){this.checkExport(e,"default",this.lastTokStart);var r;if(this.type===g._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),t.declaration=this.parseFunction(n,Ut|ko,!1,r)}else if(this.type===g._class){var i=this.startNode();t.declaration=this.parseClass(i,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(null),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==g.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var s=0,a=t.specifiers;s<a.length;s+=1){var o=a[s];this.checkUnreserved(o.local),this.checkLocalExport(o.local)}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};K.checkExport=function(t,e,r){t&&(Dr(t,e)&&this.raiseRecoverable(r,"Duplicate export '"+e+"'"),t[e]=!0)};K.checkPatternExport=function(t,e){var r=e.type;if(r==="Identifier")this.checkExport(t,e.name,e.start);else if(r==="ObjectPattern")for(var n=0,i=e.properties;n<i.length;n+=1){var s=i[n];this.checkPatternExport(t,s)}else if(r==="ArrayPattern")for(var a=0,o=e.elements;a<o.length;a+=1){var u=o[a];u&&this.checkPatternExport(t,u)}else r==="Property"?this.checkPatternExport(t,e.value):r==="AssignmentPattern"?this.checkPatternExport(t,e.left):r==="RestElement"?this.checkPatternExport(t,e.argument):r==="ParenthesizedExpression"&&this.checkPatternExport(t,e.expression)};K.checkVariableExport=function(t,e){if(t)for(var r=0,n=e;r<n.length;r+=1){var i=n[r];this.checkPatternExport(t,i.id)}};K.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};K.parseExportSpecifiers=function(t){var e=[],r=!0;for(this.expect(g.braceL);!this.eat(g.braceR);){if(r)r=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var n=this.startNode();n.local=this.parseIdent(!0),n.exported=this.eatContextual("as")?this.parseIdent(!0):n.local,this.checkExport(t,n.exported.name,n.exported.start),e.push(this.finishNode(n,"ExportSpecifier"))}return e};K.parseImport=function(t){return this.next(),this.type===g.string?(t.specifiers=Pv,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===g.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")};K.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===g.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLVal(r.local,We),t.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(g.comma))return t}if(this.type===g.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLVal(n.local,We),t.push(this.finishNode(n,"ImportNamespaceSpecifier")),t}for(this.expect(g.braceL);!this.eat(g.braceR);){if(e)e=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,We),t.push(this.finishNode(i,"ImportSpecifier"))}return t};K.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)};K.isDirectiveCandidate=function(t){return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var Qe=oe.prototype;Qe.toAssignable=function(t,e,r){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=t.properties;n<i.length;n+=1){var s=i[n];this.toAssignable(s,e),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,r);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return t};Qe.toAssignableList=function(t,e){for(var r=t.length,n=0;n<r;n++){var i=t[n];i&&this.toAssignable(i,e)}if(r){var s=t[r-1];this.options.ecmaVersion===6&&e&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return t};Qe.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")};Qe.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==g.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};Qe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case g.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(g.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case g.braceL:return this.parseObj(!0)}return this.parseIdent()};Qe.parseBindingList=function(t,e,r){for(var n=[],i=!0;!this.eat(t);)if(i?i=!1:this.expect(g.comma),e&&this.type===g.comma)n.push(null);else{if(r&&this.afterTrailingComma(t))break;if(this.type===g.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),n.push(s),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else{var a=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(a),n.push(a)}}return n};Qe.parseBindingListItem=function(t){return t};Qe.parseMaybeDefault=function(t,e,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(g.eq))return r;var n=this.startNodeAt(t,e);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")};Qe.checkLVal=function(t,e,r){switch(e===void 0&&(e=ks),t.type){case"Identifier":e===We&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(e?"Binding ":"Assigning to ")+t.name+" in strict mode"),r&&(Dr(r,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),r[t.name]=!0),e!==ks&&e!==Ro&&this.declareName(t.name,e,t.start);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":e&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ObjectPattern":for(var n=0,i=t.properties;n<i.length;n+=1){var s=i[n];this.checkLVal(s,e,r)}break;case"Property":this.checkLVal(t.value,e,r);break;case"ArrayPattern":for(var a=0,o=t.elements;a<o.length;a+=1){var u=o[a];u&&this.checkLVal(u,e,r)}break;case"AssignmentPattern":this.checkLVal(t.left,e,r);break;case"RestElement":this.checkLVal(t.argument,e,r);break;case"ParenthesizedExpression":this.checkLVal(t.expression,e,r);break;default:this.raise(t.start,(e?"Binding":"Assigning to")+" rvalue")}};var J=oe.prototype;J.checkPropClash=function(t,e,r){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var n=t.key,i;switch(n.type){case"Identifier":i=n.name;break;case"Literal":i=String(n.value);break;default:return}var s=t.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&s==="init"&&(e.proto&&(r?r.doubleProto<0&&(r.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),e.proto=!0);return}i="$"+i;var a=e[i];if(a){var o;s==="init"?o=this.strict&&a.init||a.get||a.set:o=a.init||a[s],o&&this.raiseRecoverable(n.start,"Redefinition of property")}else a=e[i]={init:!1,get:!1,set:!1};a[s]=!0}};J.parseExpression=function(t,e){var r=this.start,n=this.startLoc,i=this.parseMaybeAssign(t,e);if(this.type===g.comma){var s=this.startNodeAt(r,n);for(s.expressions=[i];this.eat(g.comma);)s.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(s,"SequenceExpression")}return i};J.parseMaybeAssign=function(t,e,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var n=!1,i=-1,s=-1;e?(i=e.parenthesizedAssign,s=e.trailingComma,e.parenthesizedAssign=e.trailingComma=-1):(e=new Nr,n=!0);var a=this.start,o=this.startLoc;(this.type===g.parenL||this.type===g.name)&&(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(t,e);if(r&&(u=r.call(this,u,a,o)),this.type.isAssign){var c=this.startNodeAt(a,o);return c.operator=this.value,c.left=this.type===g.eq?this.toAssignable(u,!1,e):u,n||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=c.left.start&&(e.shorthandAssign=-1),this.checkLVal(u),this.next(),c.right=this.parseMaybeAssign(t),this.finishNode(c,"AssignmentExpression")}else n&&this.checkExpressionErrors(e,!0);return i>-1&&(e.parenthesizedAssign=i),s>-1&&(e.trailingComma=s),u};J.parseMaybeConditional=function(t,e){var r=this.start,n=this.startLoc,i=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return i;if(this.eat(g.question)){var s=this.startNodeAt(r,n);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(g.colon),s.alternate=this.parseMaybeAssign(t),this.finishNode(s,"ConditionalExpression")}return i};J.parseExprOps=function(t,e){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(e,!1);return this.checkExpressionErrors(e)||i.start===r&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,r,n,-1,t)};J.parseExprOp=function(t,e,r,n,i){var s=this.type.binop;if(s!=null&&(!i||this.type!==g._in)&&s>n){var a=this.type===g.logicalOR||this.type===g.logicalAND,o=this.type===g.coalesce;o&&(s=g.logicalAND.binop);var u=this.value;this.next();var c=this.start,l=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1),c,l,s,i),p=this.buildBinary(e,r,t,h,u,a||o);return(a&&this.type===g.coalesce||o&&(this.type===g.logicalOR||this.type===g.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,e,r,n,i)}return t};J.buildBinary=function(t,e,r,n,i,s){var a=this.startNodeAt(t,e);return a.left=r,a.operator=i,a.right=n,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")};J.parseMaybeUnary=function(t,e){var r=this.start,n=this.startLoc,i;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),e=!0;else if(this.type.prefix){var s=this.startNode(),a=this.type===g.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),a?this.checkLVal(s.argument):this.strict&&s.operator==="delete"&&s.argument.type==="Identifier"?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):e=!0,i=this.finishNode(s,a?"UpdateExpression":"UnaryExpression")}else{if(i=this.parseExprSubscripts(t),this.checkExpressionErrors(t))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(r,n);o.operator=this.value,o.prefix=!1,o.argument=i,this.checkLVal(i),this.next(),i=this.finishNode(o,"UpdateExpression")}}return!e&&this.eat(g.starstar)?this.buildBinary(r,n,i,this.parseMaybeUnary(null,!1),"**",!1):i};J.parseExprSubscripts=function(t){var e=this.start,r=this.startLoc,n=this.parseExprAtom(t);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var i=this.parseSubscripts(n,e,r);return t&&i.type==="MemberExpression"&&(t.parenthesizedAssign>=i.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=i.start&&(t.parenthesizedBind=-1)),i};J.parseSubscripts=function(t,e,r,n){for(var i=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,s=!1;;){var a=this.parseSubscript(t,e,r,n,i,s);if(a.optional&&(s=!0),a===t||a.type==="ArrowFunctionExpression"){if(s){var o=this.startNodeAt(e,r);o.expression=a,a=this.finishNode(o,"ChainExpression")}return a}t=a}};J.parseSubscript=function(t,e,r,n,i,s){var a=this.options.ecmaVersion>=11,o=a&&this.eat(g.questionDot);n&&o&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var u=this.eat(g.bracketL);if(u||o&&this.type!==g.parenL&&this.type!==g.backQuote||this.eat(g.dot)){var c=this.startNodeAt(e,r);c.object=t,c.property=u?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),c.computed=!!u,u&&this.expect(g.bracketR),a&&(c.optional=o),t=this.finishNode(c,"MemberExpression")}else if(!n&&this.eat(g.parenL)){var l=new Nr,h=this.yieldPos,p=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var d=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,l);if(i&&!o&&!this.canInsertSemicolon()&&this.eat(g.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=p,this.awaitIdentPos=f,this.parseArrowExpression(this.startNodeAt(e,r),d,!0);this.checkExpressionErrors(l,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var m=this.startNodeAt(e,r);m.callee=t,m.arguments=d,a&&(m.optional=o),t=this.finishNode(m,"CallExpression")}else if(this.type===g.backQuote){(o||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(e,r);v.tag=t,v.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(v,"TaggedTemplateExpression")}return t};J.parseExprAtom=function(t){this.type===g.slash&&this.readRegexp();var e,r=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),e=this.startNode(),this.next(),this.type===g.parenL&&!this.allowDirectSuper&&this.raise(e.start,"super() call outside constructor of a subclass"),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(e,"Super");case g._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case g.name:var n=this.start,i=this.startLoc,s=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&a.name==="async"&&!this.canInsertSemicolon()&&this.eat(g._function))return this.parseFunction(this.startNodeAt(n,i),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt(n,i),[a],!1);if(this.options.ecmaVersion>=8&&a.name==="async"&&this.type===g.name&&!s)return a=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(g.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,i),[a],!0)}return a;case g.regexp:var o=this.value;return e=this.parseLiteral(o.value),e.regex={pattern:o.pattern,flags:o.flags},e;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return e=this.startNode(),e.value=this.type===g._null?null:this.type===g._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case g.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(r);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(t.parenthesizedAssign=u),t.parenthesizedBind<0&&(t.parenthesizedBind=u)),c;case g.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(g.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression");case g.braceL:return this.parseObj(!1,t);case g._function:return e=this.startNode(),this.next(),this.parseFunction(e,0);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();case g._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}};J.parseExprImport=function(){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var e=this.parseIdent(!0);switch(this.type){case g.parenL:return this.parseDynamicImport(t);case g.dot:return t.meta=e,this.parseImportMeta(t);default:this.unexpected()}};J.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(g.parenR)){var e=this.start;this.eat(g.comma)&&this.eat(g.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")};J.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")};J.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")};J.parseParenExpression=function(){this.expect(g.parenL);var t=this.parseExpression();return this.expect(g.parenR),t};J.parseParenAndDistinguishExpression=function(t){var e=this.start,r=this.startLoc,n,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s=this.start,a=this.startLoc,o=[],u=!0,c=!1,l=new Nr,h=this.yieldPos,p=this.awaitPos,f;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;)if(u?u=!1:this.expect(g.comma),i&&this.afterTrailingComma(g.parenR,!0)){c=!0;break}else if(this.type===g.ellipsis){f=this.start,o.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else o.push(this.parseMaybeAssign(!1,l,this.parseParenItem));var d=this.start,m=this.startLoc;if(this.expect(g.parenR),t&&!this.canInsertSemicolon()&&this.eat(g.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=p,this.parseParenArrowList(e,r,o);(!o.length||c)&&this.unexpected(this.lastTokStart),f&&this.unexpected(f),this.checkExpressionErrors(l,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,o.length>1?(n=this.startNodeAt(s,a),n.expressions=o,this.finishNodeAt(n,"SequenceExpression",d,m)):n=o[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(e,r);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}else return n};J.parseParenItem=function(t){return t};J.parseParenArrowList=function(t,e,r){return this.parseArrowExpression(this.startNodeAt(t,e),r)};var Dv=[];J.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(g.dot)){t.meta=e;var r=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(t.start,"'new.target' can only be used in functions"),this.finishNode(t,"MetaProperty")}var n=this.start,i=this.startLoc,s=this.type===g._import;return t.callee=this.parseSubscripts(this.parseExprAtom(),n,i,!0),s&&t.callee.type==="ImportExpression"&&this.raise(n,"Cannot use new with import()"),this.eat(g.parenL)?t.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Dv,this.finishNode(t,"NewExpression")};J.parseTemplateElement=function(t){var e=t.isTagged,r=this.startNode();return this.type===g.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
@@ -93,6 +93,6 @@ ${o}
|
|
|
93
93
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
94
94
|
* @name @vtj/uni
|
|
95
95
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
96
|
-
* @version 0.19.
|
|
96
|
+
* @version 0.19.14
|
|
97
97
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
98
98
|
*/const l1=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],Ms="/pages",h1="VTJ",p1="__UNI__1FC118B",f1="VTJ移动跨端项目",d1="1.0.0",g1="100",m1=!1,v1={},y1={enable:!1},b1="3",_1={name:h1,appid:p1,description:f1,versionName:d1,versionCode:g1,transformPx:m1,"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:v1,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:y1,vueVersion:b1},x1=[],w1={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},S1={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},E1={pages:x1,globalStyle:w1,easycom:S1};function T1(t){let{manifestJson:e={},pagesJson:r={},routes:n=[]}=t;const i=n.map(s=>{const{path:a,style:o,needLogin:u}=s;return{path:a,style:o,needLogin:u}});return ue(F({},t),{manifestJson:Object.assign({},_1,e),pagesJson:Object.assign({},E1,r,{pages:i})})}const Vn={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function Qo(t){const e={},r={black:"#000000",white:"#ffffff"};for(const n in t)Vn[n]&&(e[Vn[n]]=n==="navigationBarTextStyle"?r[t[n]]||r.black:t[n]);return e}function C1(t){const e={};for(const r in t)Vn[r]||(e[r]=t[r]);return e}function A1(t){var e,r;return((r=(e=t.h5)==null?void 0:e.router)==null?void 0:r.mode)||"hash"}function I1(t){var e,r,n;return{topWindow:!!((e=t.topWindow)!=null&&e.path),leftWindow:!!((r=t.leftWindow)!=null&&r.path),rightWindow:!!((n=t.rightWindow)!=null&&n.path)}}function R1(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function k1(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(s=>{var a;return((a=s.style)==null?void 0:a.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var a;return((a=s.style)==null?void 0:a.navigationStyle)==="custom"})&&(i=!0),i}function O1(t){var o;const e=k1(t),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=t,{globalStyle:i,pages:s=[]}=n;if(e)return r;r.navigationBar=!0;const a=(o=i==null?void 0:i.h5)==null?void 0:o.titleNView;return s.find(u=>{var c,l,h;return!!((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)!=null&&h.buttons.length)})&&(r.navigationBarButtons=!0),(a!=null&&a.searchInput||s.find(u=>{var c,l,h;return!!((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)!=null&&h.searchInput)}))&&(r.navigationBarSearchInput=!0),((a==null?void 0:a.type)==="transparent"||s.find(u=>{var c,l,h;return((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)==null?void 0:h.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function P1(t,e=window){var p,f,d,m;const{pagesJson:r={},manifestJson:n={}}=t,{topWindow:i,leftWindow:s,rightWindow:a}=I1(r),{navigationBar:o,navigationBarButtons:u,navigationBarSearchInput:c,navigationBarTransparent:l}=O1(t),h={__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__:A1(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(f=r.tabBar)==null?void 0:f.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((m=r.tabBar)!=null&&m.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:a,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:o,__UNI_FEATURE_PULL_DOWN_REFRESH__:R1(t),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:u,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:c,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:l};Object.entries(h).forEach(([v,S])=>{e[v]=S})}const D1="5.07";function $1(t,e=window){var h,p;const{pagesJson:r={},manifestJson:n={}}=t,{easycom:i={}}=r,{appid:s="",name:a="",versionCode:o="",versionName:u=""}=n,c=r.globalStyle,l=((h=n.h5)==null?void 0:h.router)||{};e.__uniConfig={easycom:i,globalStyle:ue(F({},C1(c)),{navigationBar:Qo(c),isNVue:!1}),compilerVersion:D1,appId:s,appName:a,appVersion:u,appVersionCode:String(o),async:F({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:F({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:F({mode:"hash",base:"/",assets:"assets",routerBase:l.base||"/"},l),darkmode:!1,themeConfig:{},tabBar:r.tabBar?F({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 N1(t,e=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:a,upx2px:o,setupPage:u}=t;e.UniServiceJSBridge=r,e.UniViewJSBridge=n,e.getApp=i,e.uni=s,e.wx=s,e.getCurrentPages=a,e.upx2px=o,e.__setupPage=c=>u(c)}function B1(t,e,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:a}=t,{PageComponent:o,setupPage:u,getApp:c}=e;return{mpType:"page",setup(){return M(this,null,function*(){var m,v;const h=((v=(m=c())==null?void 0:m.$route)==null?void 0:v.query)||{},{loader:p,component:f}=r,d=p?yield p(r):f||{};return()=>(n(),i(o,null,{page:s(()=>[a(u(d),Object.assign({},h,{ref:"page"}),null,512)]),_:1}))})}}}function L1(t,e,r){var f;const{path:n,style:i={},meta:s={},home:a,id:o}=e,u=((f=t.tabBar)==null?void 0:f.list)||[],c=u.findIndex(d=>{var m;return d.pagePath===n||((m=d.pagePath)==null?void 0:m.endsWith(o))}),l=u[c],h=!!l,p=r===0;return F({isTabBar:h,tabBarIndex:c,isQuit:a!=null?a:p,isEntry:a!=null?a:p,navigationBar:F({type:"default"},Qo(i)),isNVue:!1,route:l?l.pagePath:n},s)}function V1(t,e,r,n,i=window){const s=r.map((a,o)=>{const u=L1(n,a,o),c=B1(t,e,a),{path:l}=a;return{path:l,alias:l,meta:u,component:{render(){return t.h(t.Suspense,[t.h(c)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function j1(t,e,r=window){Pr(r,String(t),e)}function M1(t,e){e&&["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=e[r];t.component(r,n)})}function F1(t){const e=T1(t),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:a={},manifestJson:o={},window:u,css:c=""}=e;if(!i)return r.createApp(n);const{plugin:l,setupApp:h}=i;P1(e,u),$1(e,u),N1(i,u),V1(r,i,s,a,u),j1(o.appid||Date.now(),c,u);const p=r.createApp(h(n));return p.use(M1,i),p.use(l),p}function U1(t,e){const r={};return Object.entries(t).forEach(([n,i])=>{l1.includes(n)&&i&&(r[n]=e(i))}),r}function Fs(t,e){return()=>M(null,null,function*(){const r=yield t.getDsl(e);if(r){const{renderer:n}=t.createDslRenderer(r);return n}return null})}function H1(n){return M(this,arguments,function*(t,e=!1,r=Ms){var o,u,c;const i=((o=t.project)==null?void 0:o.pages)||[],s=[];for(const l of i){const h=((u=t.project)==null?void 0:u.homepage)===l.id;s.push({id:l.id,path:`${r}/${l.id}`,loader:Fs(t,l.id),style:F({navigationBarTitleText:l.title},l.style),needLogin:l.needLogin,home:h})}const a=s.find(l=>!!l.home)||s[0];if(a){const l=r===Ms?"/":r;s.unshift(ue(F({},a),{path:l}))}if(e){const l=((c=t.project)==null?void 0:c.blocks)||[];for(const h of l)s.push({id:h.id,path:`${r}/${h.id}`,loader:Fs(t,h.id),style:{navigationStyle:"custom"}})}return s})}function jn(){if(typeof uni<"u")return uni;if(typeof globalThis<"u"&&globalThis.uni)return globalThis.uni;if(typeof window<"u"&&window.uni)return window.uni}function q1(){const t=jn();return t!=null&&t.showLoading&&t.showLoading({title:"加载中...",mask:!0}),{close:()=>{const e=jn();e!=null&&e.hideLoading&&e.hideLoading()}}}function Xo(t,e="",r="warning"){return M(this,null,function*(){const n=jn();return n!=null&&n.showModal?n.showModal({title:e,content:t,showCancel:!1}):(typeof window<"u"&&window.alert(t),!0)})}function z1(t=se.Runtime){let e={};t===se.Runtime?e=Object.assign({}):e=Object.assign({});let r={};for(const[n,i]of Object.entries(e))r[n]=()=>Promise.resolve(i);return r}const W1=sy({loading:q1,notify:Xo}),ec=new u1(o1(Xo)),G1=z1(),{provider:K1,onReady:J1}=r1({nodeEnv:"production",mode:se.Runtime,modules:G1,materialPath:"../",adapter:W1,service:ec,dependencies:{Vue:()=>_i(()=>import("./@dcloudio-uni-h5-vue-ZHZeNOoM.js").then(t=>t.y),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>_i(()=>import("./vue-router-cjYR4veV.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),Y1=t=>M(null,null,function*(){const e=(yield ec.getExtension().catch(()=>null))||{},r=top||window,n=yield i1(e.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,a=t.project;if(!a)return;const o=a.uniConfig||{},u=U1(o,d=>Ae(d,window,!1,!0)),{manifestJson:c,pagesJson:l,css:h}=o,p=yield H1(t,!0),f=F1({Vue:i,App:u,UniH5:s,routes:p,css:h,manifestJson:c,pagesJson:l});f.use(t),n&&f.use(n,t),f.mount(document.body)});J1(()=>Y1(K1));
|
package/dist/uni/index.html
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<title></title>
|
|
45
45
|
<!--preload-links-->
|
|
46
46
|
<!--app-context-->
|
|
47
|
-
<script type="module" crossorigin src="./assets/index-
|
|
47
|
+
<script type="module" crossorigin src="./assets/index-DaRaISIB.js"></script>
|
|
48
48
|
<link rel="modulepreload" crossorigin href="./assets/axios-Cc-15rbk.js">
|
|
49
49
|
<link rel="modulepreload" crossorigin href="./assets/vue-DefuvV9N.js">
|
|
50
50
|
<link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-BN07FyFa.js">
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/pro",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.14",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"AI低代码",
|
|
7
7
|
"AI编程",
|
|
@@ -23,22 +23,22 @@
|
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"type": "module",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@vtj/
|
|
27
|
-
"@vtj/
|
|
28
|
-
"@vtj/designer": "~0.19.
|
|
29
|
-
"@vtj/materials": "~0.19.
|
|
30
|
-
"@vtj/uni": "~0.19.
|
|
31
|
-
"@vtj/renderer": "~0.19.
|
|
26
|
+
"@vtj/core": "~0.19.14",
|
|
27
|
+
"@vtj/local": "~0.19.14",
|
|
28
|
+
"@vtj/designer": "~0.19.14",
|
|
29
|
+
"@vtj/materials": "~0.19.14",
|
|
30
|
+
"@vtj/uni": "~0.19.14",
|
|
31
|
+
"@vtj/renderer": "~0.19.14"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"vite-plugin-vue-devtools": "~8.0.2",
|
|
35
35
|
"vue": "~3.5.37",
|
|
36
36
|
"vue-router": "~4.6.0",
|
|
37
|
-
"@vtj/charts": "~0.19.13",
|
|
38
37
|
"@vtj/cli": "~0.14.0",
|
|
39
|
-
"@vtj/
|
|
40
|
-
"@vtj/ui": "~0.19.
|
|
41
|
-
"@vtj/
|
|
38
|
+
"@vtj/charts": "~0.19.14",
|
|
39
|
+
"@vtj/ui": "~0.19.14",
|
|
40
|
+
"@vtj/icons": "~0.19.14",
|
|
41
|
+
"@vtj/utils": "~0.19.14"
|
|
42
42
|
},
|
|
43
43
|
"exports": {
|
|
44
44
|
"./vite": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var I=Object.defineProperty;var P=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var A=(n,e,t)=>e in n?I(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e)=>{for(var t in e||(e={}))N.call(e,t)&&A(n,t,e[t]);if(P)for(var t of P(e))Q.call(e,t)&&A(n,t,e[t]);return n};var d=(n,e,t)=>new Promise((_,r)=>{var l=o=>{try{i(t.next(o))}catch(p){r(p)}},s=o=>{try{i(t.throw(o))}catch(p){r(p)}},i=o=>o.done?_(o.value):Promise.resolve(o.value).then(l,s);i((t=t.apply(n,e)).next())});import{useRoute as V}from"./vue-router-Drd5teeV.js";import{y as W}from"./@vueuse-Jk9KQurp.js";import{Q as D,z as J,F as U,j as G,u as C,A as K,d as E}from"./Editor-BsY740gM-DVLHuLqp.js";import"./element-plus-BnQSNCX2.js";import"./vxe-Hv0pYDff.js";import{E as L,a as v,n as S,l as M}from"./utils-CavYcqo1.js";import{y as O,az as B,e as X,I as Y,r as Z,D as ee}from"./vue-wWzmtsAU.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-CxAZAsmx.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";const ae=O({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=V(),r=Z(),l=new D(J(S)),s=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=B(()=>new L(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:w="page",remote:g,auth:F,checkVersion:k=!0,enhance:j,platform:z="web"}=s||{},R=U({loading:M,notify:S,useTitle:W,alert:v,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),T=G($({alert:v},s==null?void 0:s.__ACCESS__)),b=()=>p==="hash",q=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);C.set("Switcher",{props:{onClick:a=>{const u=a.platform==="uniapp",c=location.pathname;let m=c===`${o}__vtj__/`?o:c;const f=a.currentFile;if(f&&f.type==="page"&&a.homepage!==f.id){const H=s.pageBasePath?`/${w}`:"",x=`${q(h)}${u?`pages${H}`:w}/${f.id}`;m=b()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),C.set("Previewer",{props:{path:(a,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${a.id}`:`${c}#/preview/${a.id}`}}});const y=new K($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:R,access:T,remote:g,auth:F,checkVersion:k,enhance:j,project:{platform:z}},i));return y.ready(()=>d(null,null,function*(){yield E(300),y.openFile(_.query.id)})),X(()=>_.query.id,a=>d(null,null,function*(){yield E(300),y.openFile(a)})),(a,u)=>(ee(),Y("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),xe=te(ae,[["__scopeId","data-v-f41f19f5"]]);export{xe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var u=Object.defineProperty;var p=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?u(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,l=(t,a)=>{for(var s in a||(a={}))O.call(a,s)&&g(t,s,a[s]);if(p)for(var s of p(a))T.call(a,s)&&g(t,s,a[s]);return t};var E=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var S=(t,a,s)=>new Promise((o,n)=>{var e=r=>{try{i(s.next(r))}catch(_){n(_)}},c=r=>{try{i(s.throw(r))}catch(_){n(_)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as h}from"./vue-wWzmtsAU.js";import{h as d,a as A,x as m,K as b,R as f,b as V,S as y,c as P,_ as R,v as M,w as D,A as L,e as N,f as B,g as k,X as w,U as x,i as K,k as H,l as v,m as G,n as U,o as C,p as Y,q as W,M as z,y as F,E as $,t as j,r as X,V as J,s as q,C as Z,D as Q,G as aa,$ as sa,H as ea,I as ta,J as ra,L as na,N as ia,P as oa,Z as _a,a0 as Ea,a1 as la,a2 as ca,a3 as ga,a4 as pa,a5 as Sa,a6 as Ia,a7 as ua,a8 as Oa,a9 as Ta,aa as ha,ab as da,ac as Aa,ad as ma,ae as ba,af as fa,ag as Va,ah as ya,ai as Pa,aj as Ra,ak as Ma,al as Da,am as La,an as Na,ao as Ba,ap as ka,aq as wa,ar as xa,as as Ka,at as Ha,au as va,av as Ga,aw as Ua,ax as Ca,ay as Ya,az as Wa,aA as za,u as Fa,aB as $a,aC as ja,aD as Xa,aE as Ja,aF as qa,aG as Za,aH as Qa,aI as as}from"./Editor-BsY740gM-DVLHuLqp.js";import{E as ss,a as es,b as ts}from"./element-plus-BnQSNCX2.js";import"./dayjs-CxR8wwn9.js";const rs=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:d,ActionMenu:A,Assets:m,Binder:b,Box:f,CodeIncrementalUpdater:V,DEVTOOLS_DEP:y,DepsManager:P,Designer:R,EVENT_MODIFIERS:M,Editor:D,Engine:L,EventBinder:N,GET_TOKENS_LINK:B,HOT_KEYS_DEP:k,Icon:w,Item:x,KEYBOARD_EVENT_LIST:K,MAX_TOKENS:H,MOBILE_SIZE:v,MOUSE_EVENT_LIST:G,NAME_REGEX:U,NPM_REGISTRY_URL:C,OpenApi:Y,PAD_SIZE:W,Panel:z,REPORT_API:F,RegionType:$,RegionWrapper:j,Renderer:X,SAVE_BLOCK_FILE_FINISH:J,SESSION_ID_KEY:q,STATE_KEY:Z,SetterManager:Q,SetterView:aa,SetterWrapper:sa,Simulator:ea,Skeleton:ta,SkeletonWrapper:ra,SlotsPicker:na,State:ia,TOOL_CONFIGS:oa,Tabs:_a,ToolRegistry:Ea,VERSION_REGEX:la,VTJ_DESIGNER_VERSION:ca,VUE_DEVTOOLS_FRAME_STATE_KEY:ga,VUE_DEVTOOLS_OVERLAY_PATH:pa,VUE_DEVTOOLS_PATH:Sa,VariableBinder:Ia,Viewer:ua,Viewport:Oa,WidgetGroup:Ta,WidgetManager:ha,WidgetWrapper:da,alert:Aa,builtInDeps:ma,builtInMaterials:ba,builtInSetters:fa,builtInWidgets:Va,codeIncrementalUpdater:ya,confirm:Pa,createSlotsPicker:Ra,defaultSetter:Ma,depsManager:Da,engineKey:La,expressionValidate:Na,getClassProperties:Ba,getComposableNames:ka,loading:wa,message:xa,normalizedStyle:Ka,notify:Ha,proxyContext:va,readJsonFile:Ga,regions:Ua,setterManager:Ca,setters:Ya,upgradeVersion:Wa,useEngine:za,widgetManager:Fa,widgets:$a},Symbol.toStringTag,{value:"Module"}));class ls{constructor(a){E(this,"urls",[]);E(this,"library","");E(this,"params",[]);E(this,"__BASE_PATH__","/");this.config=a;const s=l(l(l({},Xa),rs),ja),o={Vue:h,__VTJ_PRO__:s};for(const[_,I]of Object.entries(o))window[_]=I;const{extension:n,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:i,params:r=[]}=n||{};i&&(this.urls=c,this.library=i,this.params=r,this.__BASE_PATH__=e)}load(){return S(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Ja(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>qa(e)).map(e=>`${s}${e}`);if(Za(o),n.length){const e=yield Qa(n,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask","auth"];return as(this.config,a)}}function cs(){return ts.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function gs(t,a="",s="warning"){es({title:a,message:t,type:s})}function ps(t,a){return ss.alert(t,a)}export{ls as E,ps as a,cs as l,gs as n};
|