@vtj/pro 0.12.39 → 0.12.41

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.
Files changed (44) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  12. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +21 -21
  13. package/dist/@vtj/materials/deps/@vueuse/core/index.iife.min.js +1 -1
  14. package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
  15. package/dist/@vtj/materials/deps/element-plus/index.full.min.js +20 -20
  16. package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
  17. package/dist/@vtj/materials/deps/xe-utils/xe-utils.umd.min.js +1 -1
  18. package/dist/assets/@vueuse-_x9SZ0wC.js +1 -0
  19. package/dist/assets/{Editor-CYQNUi8W-BulRDd7p.js → Editor-Cem79x1z-B0FbIGz_.js} +76 -76
  20. package/dist/assets/auth-CxsuWlW8.js +1 -0
  21. package/dist/assets/element-plus-CaArhaoJ.js +13 -0
  22. package/dist/assets/element-plus-DcTadS-P.css +1 -0
  23. package/dist/assets/index-Br15Vo-G.js +1 -0
  24. package/dist/assets/{index-RGdSyKbb.js → index-PIr9Nf4v.js} +2 -2
  25. package/dist/assets/{monaco-editor-B5WqzYTl.js → monaco-editor-CrbCX11s.js} +1 -1
  26. package/dist/assets/page-BxNDj8xf.js +2 -0
  27. package/dist/assets/preview-DyIzdC5P.js +2 -0
  28. package/dist/assets/utils-2MyngnUY.js +1 -0
  29. package/dist/assets/{vxe-CWcmrjam.js → vxe-BdykRz5w.js} +4 -4
  30. package/dist/index.html +7 -7
  31. package/dist/uni/assets/{@dcloudio-uni-h5-vue-aeVRcOfZ.js → @dcloudio-uni-h5-vue-BEVv3z-t.js} +1 -1
  32. package/dist/uni/assets/{index-EESVcAQh.js → index-jt8jH6xK.js} +30 -30
  33. package/dist/uni/assets/{vue-router-DVjQ9Lh0.js → vue-router-5EIDvL-H.js} +1 -1
  34. package/dist/uni/index.html +3 -3
  35. package/package.json +12 -12
  36. package/dist/assets/@vueuse-vmN9qs5b.js +0 -1
  37. package/dist/assets/auth-C4ygULpe.js +0 -1
  38. package/dist/assets/element-plus-EFxNtExC.css +0 -1
  39. package/dist/assets/element-plus-XVJlWyfz.js +0 -13
  40. package/dist/assets/index-CDJPH36v.js +0 -1
  41. package/dist/assets/page-9pEin-yb.js +0 -2
  42. package/dist/assets/preview-DlnxbhBA.js +0 -2
  43. package/dist/assets/utils-CT1D4Iet.js +0 -1
  44. /package/dist/assets/{Editor-CYQNUi8W-BN1eKDXZ.css → Editor-Cem79x1z-BN1eKDXZ.css} +0 -0
@@ -1,4 +1,4 @@
1
- import{d as Ve,c as I,p as le,r as ut,w as ft,h as Ue,s as ht,i as j,u as Y,a as pt,o as dt,b as mt,e as gt,n as vt,f as yt}from"./@dcloudio-uni-h5-vue-aeVRcOfZ.js";import"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-VStmjWbh.js";/*!
1
+ import{d as Ve,c as I,p as le,r as ut,w as ft,h as Ue,s as ht,i as j,u as Y,a as pt,o as dt,b as mt,e as gt,n as vt,f as yt}from"./@dcloudio-uni-h5-vue-BEVv3z-t.js";import"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-VStmjWbh.js";/*!
2
2
  * vue-router v4.5.1
3
3
  * (c) 2025 Eduardo San Martin Morote
4
4
  * @license MIT
@@ -13,11 +13,11 @@
13
13
  <title></title>
14
14
  <!--preload-links-->
15
15
  <!--app-context-->
16
- <script type="module" crossorigin src="./assets/index-EESVcAQh.js"></script>
16
+ <script type="module" crossorigin src="./assets/index-jt8jH6xK.js"></script>
17
17
  <link rel="modulepreload" crossorigin href="./assets/vue-BK7aLblh.js">
18
18
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-VStmjWbh.js">
19
- <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-aeVRcOfZ.js">
20
- <link rel="modulepreload" crossorigin href="./assets/vue-router-DVjQ9Lh0.js">
19
+ <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-BEVv3z-t.js">
20
+ <link rel="modulepreload" crossorigin href="./assets/vue-router-5EIDvL-H.js">
21
21
  </head>
22
22
  <body>
23
23
  <div id="app"><!--app-html--></div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/pro",
3
3
  "private": false,
4
- "version": "0.12.39",
4
+ "version": "0.12.41",
5
5
  "keywords": [
6
6
  "低代码引擎",
7
7
  "LowCode Engine",
@@ -21,21 +21,21 @@
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "dependencies": {
24
- "@vtj/core": "~0.12.39",
25
- "@vtj/designer": "~0.12.39",
26
- "@vtj/local": "~0.12.39",
27
- "@vtj/renderer": "~0.12.39",
28
- "@vtj/uni": "~0.12.39",
29
- "@vtj/materials": "~0.12.39"
24
+ "@vtj/core": "~0.12.41",
25
+ "@vtj/designer": "~0.12.41",
26
+ "@vtj/local": "~0.12.41",
27
+ "@vtj/materials": "~0.12.41",
28
+ "@vtj/renderer": "~0.12.41",
29
+ "@vtj/uni": "~0.12.41"
30
30
  },
31
31
  "devDependencies": {
32
32
  "vue": "~3.5.5",
33
33
  "vue-router": "~4.5.0",
34
- "@vtj/cli": "~0.12.4",
35
- "@vtj/icons": "~0.12.39",
36
- "@vtj/charts": "~0.12.39",
37
- "@vtj/ui": "~0.12.39",
38
- "@vtj/utils": "~0.12.39"
34
+ "@vtj/cli": "~0.12.5",
35
+ "@vtj/icons": "~0.12.41",
36
+ "@vtj/charts": "~0.12.41",
37
+ "@vtj/ui": "~0.12.41",
38
+ "@vtj/utils": "~0.12.41"
39
39
  },
40
40
  "exports": {
41
41
  "./vite": {
@@ -1 +0,0 @@
1
- var Be=Object.defineProperty,Xe=Object.defineProperties;var Ye=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable;var fe=(e,t,n)=>t in e?Be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))de.call(t,n)&&fe(e,n,t[n]);if(J)for(var n of J(t))ve.call(t,n)&&fe(e,n,t[n]);return e},H=(e,t)=>Xe(e,Ye(t));var X=(e,t)=>{var n={};for(var o in e)de.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&J)for(var o of J(e))t.indexOf(o)<0&&ve.call(e,o)&&(n[o]=e[o]);return n};import{g as Te,b as Ce,s as x,w as We,r as K,e as O,f as $,h as Q,i as oe,n as re,u as $e,j as se,k as T,t as Qe,l as Je,m as Ge,p as b,q as Me,v as Ue}from"./vue-BfodOvnP.js";var Ke=Object.defineProperty,qe=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,me=(e,t,n)=>t in e?Ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nt=(e,t)=>{for(var n in t||(t={}))et.call(t,n)&&me(e,n,t[n]);if(pe)for(var n of pe(t))tt.call(t,n)&&me(e,n,t[n]);return e},ot=(e,t)=>qe(e,Ze(t));function an(e,t){var n;const o=x();return We(()=>{o.value=e()},ot(nt({},t),{flush:(n=void 0)!=null?n:"sync"})),K(o)}var he;const q=typeof window!="undefined",rt=e=>typeof e!="undefined",ne=e=>typeof e=="function",st=e=>typeof e=="string",B=()=>{},it=q&&((he=window==null?void 0:window.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function V(e){return typeof e=="function"?e():$e(e)}function Re(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}function ut(e,t={}){let n,o,r=B;const s=i=>{clearTimeout(i),r(),r=B};return i=>{const a=V(e),f=V(t.maxWait);return n&&s(n),a<=0||f!==void 0&&f<=0?(o&&(s(o),o=null),Promise.resolve(i())):new Promise((p,c)=>{r=t.rejectOnCancel?c:p,f&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,p(i())},f)),n=setTimeout(()=>{o&&s(o),o=null,p(i())},a)})}}function at(e,t=!0,n=!0,o=!1){let r=0,s,u=!0,i=B,a;const f=()=>{s&&(clearTimeout(s),s=void 0,i(),i=B)};return c=>{const l=V(e),d=Date.now()-r,v=()=>a=c();return f(),l<=0?(r=Date.now(),v()):(d>l&&(n||!u)?(r=Date.now(),v()):t&&(a=new Promise((h,y)=>{i=o?y:h,s=setTimeout(()=>{r=Date.now(),u=!0,h(v()),f()},Math.max(0,l-d))})),!n&&!s&&(s=setTimeout(()=>u=!0,l)),u=!1,a)}}function lt(e){return e}function ct(e,t){let n,o,r;const s=O(!0),u=()=>{s.value=!0,r()};$(e,u,{flush:"sync"});const i=ne(t)?t:t.get,a=ne(t)?void 0:t.set,f=se((p,c)=>(o=p,r=c,{get(){return s.value&&(n=i(),s.value=!1),o(),n},set(l){a==null||a(l)}}));return Object.isExtensible(f)&&(f.trigger=u),f}function Z(e){return Te()?(Ce(e),!0):!1}function ft(e,t=200,n={}){return Re(ut(t,n),e)}function ln(e,t=200,n={}){const o=O(e.value),r=ft(()=>{o.value=e.value},t,n);return $(e,()=>r()),o}function cn(e,t=200,n=!1,o=!0,r=!1){return Re(at(t,n,o,r),e)}function ie(e,t=!0){Q()?oe(e):t?e():re(e)}function fn(e,t,n={}){const{immediate:o=!0}=n,r=O(!1);let s=null;function u(){s&&(clearTimeout(s),s=null)}function i(){r.value=!1,u()}function a(...f){u(),r.value=!0,s=setTimeout(()=>{r.value=!1,s=null,e(...f)},V(t))}return o&&(r.value=!0,q&&a()),Z(i),{isPending:K(r),start:a,stop:i}}function N(e){var t;const n=V(e);return(t=n==null?void 0:n.$el)!=null?t:n}const j=q?window:void 0,dt=q?window.document:void 0;function D(...e){let t,n,o,r;if(st(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=j):[t,n,o,r]=e,!t)return B;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],u=()=>{s.forEach(p=>p()),s.length=0},i=(p,c,l,d)=>(p.addEventListener(c,l,d),()=>p.removeEventListener(c,l,d)),a=$(()=>[N(t),V(r)],([p,c])=>{u(),p&&s.push(...n.flatMap(l=>o.map(d=>i(p,l,d,c))))},{immediate:!0,flush:"post"}),f=()=>{a(),u()};return Z(f),f}let ge=!1;function dn(e,t,n={}){const{window:o=j,ignore:r=[],capture:s=!0,detectIframe:u=!1}=n;if(!o)return;it&&!ge&&(ge=!0,Array.from(o.document.body.children).forEach(l=>l.addEventListener("click",B)));let i=!0;const a=l=>r.some(d=>{if(typeof d=="string")return Array.from(o.document.querySelectorAll(d)).some(v=>v===l.target||l.composedPath().includes(v));{const v=N(d);return v&&(l.target===v||l.composedPath().includes(v))}}),p=[D(o,"click",l=>{const d=N(e);if(!(!d||d===l.target||l.composedPath().includes(d))){if(l.detail===0&&(i=!a(l)),!i){i=!0;return}t(l)}},{passive:!0,capture:s}),D(o,"pointerdown",l=>{const d=N(e);d&&(i=!l.composedPath().includes(d)&&!a(l))},{passive:!0}),u&&D(o,"blur",l=>{var d;const v=N(e);((d=o.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(v!=null&&v.contains(o.document.activeElement))&&t(l)})].filter(Boolean);return()=>p.forEach(l=>l())}function vn(e={}){var t;const{window:n=j}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,r=ct(()=>null,()=>o==null?void 0:o.activeElement);return n&&(D(n,"blur",s=>{s.relatedTarget===null&&r.trigger()},!0),D(n,"focus",r.trigger,!0)),r}function Ae(e,t=!1){const n=O(),o=()=>n.value=!!e();return o(),ie(o,t),n}function vt(e){return JSON.parse(JSON.stringify(e))}const ye=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},we="__vueuse_ssr_handlers__";ye[we]=ye[we]||{};function pn(e,t,{window:n=j,initialValue:o=""}={}){const r=O(o),s=T(()=>{var u;return N(t)||((u=n==null?void 0:n.document)==null?void 0:u.documentElement)});return $([s,()=>V(e)],([u,i])=>{var a;if(u&&n){const f=(a=n.getComputedStyle(u).getPropertyValue(i))==null?void 0:a.trim();r.value=f||o}},{immediate:!0}),$(r,u=>{var i;(i=s.value)!=null&&i.style&&s.value.style.setProperty(V(e),u)}),r}function mn({document:e=dt}={}){if(!e)return O("visible");const t=O(e.visibilityState);return D(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var be=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,ht=(e,t)=>{var n={};for(var o in e)pt.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&be)for(var o of be(e))t.indexOf(o)<0&&mt.call(e,o)&&(n[o]=e[o]);return n};function gt(e,t,n={}){const o=n,{window:r=j}=o,s=ht(o,["window"]);let u;const i=Ae(()=>r&&"ResizeObserver"in r),a=()=>{u&&(u.disconnect(),u=void 0)},f=$(()=>N(e),c=>{a(),i.value&&r&&c&&(u=new ResizeObserver(t),u.observe(c,s))},{immediate:!0,flush:"post"}),p=()=>{a(),f()};return Z(p),{isSupported:i,stop:p}}function hn(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:r=!0,immediate:s=!0}=t,u=O(0),i=O(0),a=O(0),f=O(0),p=O(0),c=O(0),l=O(0),d=O(0);function v(){const h=N(e);if(!h){n&&(u.value=0,i.value=0,a.value=0,f.value=0,p.value=0,c.value=0,l.value=0,d.value=0);return}const y=h.getBoundingClientRect();u.value=y.height,i.value=y.bottom,a.value=y.left,f.value=y.right,p.value=y.top,c.value=y.width,l.value=y.x,d.value=y.y}return gt(e,v),$(()=>N(e),h=>!h&&v()),r&&D("scroll",v,{capture:!0,passive:!0}),o&&D("resize",v,{passive:!0}),ie(()=>{s&&v()}),{height:u,bottom:i,left:a,right:f,top:p,width:c,x:l,y:d,update:v}}var Oe=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,bt=(e,t)=>{var n={};for(var o in e)yt.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Oe)for(var o of Oe(e))t.indexOf(o)<0&&wt.call(e,o)&&(n[o]=e[o]);return n};function gn(e,t,n={}){const o=n,{window:r=j}=o,s=bt(o,["window"]);let u;const i=Ae(()=>r&&"MutationObserver"in r),a=()=>{u&&(u.disconnect(),u=void 0)},f=$(()=>N(e),c=>{a(),i.value&&r&&c&&(u=new MutationObserver(t),u.observe(c,s))},{immediate:!0}),p=()=>{a(),f()};return Z(p),{isSupported:i,stop:p}}var _e;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(_e||(_e={}));var Ot=Object.defineProperty,Se=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Ee=(e,t,n)=>t in e?Ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Et=(e,t)=>{for(var n in t||(t={}))_t.call(t,n)&&Ee(e,n,t[n]);if(Se)for(var n of Se(t))St.call(t,n)&&Ee(e,n,t[n]);return e};const Pt={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Et({linear:lt},Pt);function yn(e,t,n,o={}){var r,s,u;const{clone:i=!1,passive:a=!1,eventName:f,deep:p=!1,defaultValue:c}=o,l=Q(),d=n||(l==null?void 0:l.emit)||((r=l==null?void 0:l.$emit)==null?void 0:r.bind(l))||((u=(s=l==null?void 0:l.proxy)==null?void 0:s.$emit)==null?void 0:u.bind(l==null?void 0:l.proxy));let v=f;t||(t="modelValue"),v=f||v||`update:${t.toString()}`;const h=w=>i?ne(i)?i(w):vt(w):w,y=()=>rt(e[t])?h(e[t]):c;if(a){const w=y(),S=O(w);return $(()=>e[t],C=>S.value=h(C)),$(S,C=>{(C!==e[t]||p)&&d(v,C)},{deep:p}),S}else return T({get(){return y()},set(w){d(v,w)}})}function wn({window:e=j}={}){if(!e)return O(!1);const t=O(e.document.hasFocus());return D(e,"blur",()=>{t.value=!1}),D(e,"focus",()=>{t.value=!0}),t}function bn(e={}){const{window:t=j,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,u=O(n),i=O(o),a=()=>{t&&(s?(u.value=t.innerWidth,i.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return a(),ie(a),D("resize",a,{passive:!0}),r&&D("orientationchange",a,{passive:!0}),{width:u,height:i}}function ee(e){return Te()?(Ce(e),!0):!1}const te=new WeakMap,xt=(...e)=>{var t;const n=e[0],o=(t=Q())==null?void 0:t.proxy;if(o==null&&!Me())throw new Error("injectLocal must be called in setup");return o&&te.has(o)&&n in te.get(o)?te.get(o)[n]:Ue(...e)},ue=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Tt=e=>e!=null,Ct=Object.prototype.toString,Wt=e=>Ct.call(e)==="[object Object]",$t=()=>{};function ae(...e){if(e.length!==1)return Qe(...e);const t=e[0];return typeof t=="function"?K(se(()=>({get:t,set:$t}))):O(t)}function Mt(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const Ie=e=>e();function Rt(e=Ie,t={}){const{initialState:n="active"}=t,o=ae(n==="active");function r(){o.value=!1}function s(){o.value=!0}const u=(...i)=>{o.value&&e(...i)};return{isActive:K(o),pause:r,resume:s,eventFilter:u}}function Pe(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Y(e){return Array.isArray(e)?e:[e]}function At(e){return Q()}function It(e,t,n={}){const s=n,{eventFilter:o=Ie}=s,r=X(s,["eventFilter"]);return $(e,Mt(o,t),r)}function Dt(e,t,n={}){const c=n,{eventFilter:o,initialState:r="active"}=c,s=X(c,["eventFilter","initialState"]),{eventFilter:u,pause:i,resume:a,isActive:f}=Rt(o,{initialState:r});return{stop:It(e,t,H(F({},s),{eventFilter:u})),pause:i,resume:a,isActive:f}}function Lt(e,t={}){if(!Je(e))return Ge(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=se(()=>({get(){return e.value[o]},set(r){var s;if((s=b(t.replaceRef))!=null?s:!0)if(Array.isArray(e.value)){const i=[...e.value];i[o]=r,e.value=i}else{const i=H(F({},e.value),{[o]:r});Object.setPrototypeOf(i,Object.getPrototypeOf(e.value)),e.value=i}else e.value[o]=r}}));return n}function le(e,t=!0,n){At()?oe(e,n):t?e():re(e)}function kt(e,t,n){return $(e,t,H(F({},n),{immediate:!0}))}const k=ue?window:void 0,Ft=ue?window.document:void 0;function z(e){var t;const n=b(e);return(t=n==null?void 0:n.$el)!=null?t:n}function L(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},o=(i,a,f,p)=>(i.addEventListener(a,f,p),()=>i.removeEventListener(a,f,p)),r=T(()=>{const i=Y(b(e[0])).filter(a=>a!=null);return i.every(a=>typeof a!="string")?i:void 0}),s=kt(()=>{var i,a;return[(a=(i=r.value)==null?void 0:i.map(f=>z(f)))!=null?a:[k].filter(f=>f!=null),Y(b(r.value?e[1]:e[0])),Y($e(r.value?e[2]:e[1])),b(r.value?e[3]:e[2])]},([i,a,f,p])=>{if(n(),!(i!=null&&i.length)||!(a!=null&&a.length)||!(f!=null&&f.length))return;const c=Wt(p)?F({},p):p;t.push(...i.flatMap(l=>a.flatMap(d=>f.map(v=>o(l,d,v,c)))))},{flush:"post"}),u=()=>{s(),n()};return ee(n),u}function Nt(){const e=x(!1),t=Q();return t&&oe(()=>{e.value=!0},t),e}function ce(e){const t=Nt();return T(()=>(t.value,!!e()))}function zt(e,t,n={}){const l=n,{window:o=k}=l,r=X(l,["window"]);let s;const u=ce(()=>o&&"MutationObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},a=T(()=>{const d=b(e),v=Y(d).map(z).filter(Tt);return new Set(v)}),f=$(()=>a.value,d=>{i(),u.value&&d.size&&(s=new MutationObserver(t),d.forEach(v=>s.observe(v,r)))},{immediate:!0,flush:"post"}),p=()=>s==null?void 0:s.takeRecords(),c=()=>{f(),i()};return ee(c),{isSupported:u,stop:c,takeRecords:p}}const Vt=Symbol("vueuse-ssr-width");function jt(){const e=Me()?xt(Vt,null):null;return typeof e=="number"?e:void 0}function Ht(e,t={}){const{window:n=k,ssrWidth:o=jt()}=t,r=ce(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),s=x(typeof o=="number"),u=x(),i=x(!1),a=f=>{i.value=f.matches};return We(()=>{if(s.value){s.value=!r.value;const f=b(e).split(",");i.value=f.some(p=>{const c=p.includes("not all"),l=p.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=p.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let v=!!(l||d);return l&&v&&(v=o>=Pe(l[1])),d&&v&&(v=o<=Pe(d[1])),c?!v:v});return}r.value&&(u.value=n.matchMedia(b(e)),i.value=u.value.matches)}),L(u,"change",a,{passive:!0}),T(()=>i.value)}const G=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},U="__vueuse_ssr_handlers__",Bt=Xt();function Xt(){return U in G||(G[U]=G[U]||{}),G[U]}function De(e,t){return Bt[e]||t}function Yt(e){return Ht("(prefers-color-scheme: dark)",e)}function Qt(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Jt={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},xe="vueuse-storage";function Gt(e,t,n,o={}){var r;const{flush:s="pre",deep:u=!0,listenToStorageChanges:i=!0,writeDefaults:a=!0,mergeDefaults:f=!1,shallow:p,window:c=k,eventFilter:l,onError:d=g=>{console.error(g)},initOnMounted:v}=o,h=(p?x:O)(typeof t=="function"?t():t),y=T(()=>b(e));if(!n)try{n=De("getDefaultStorage",()=>{var g;return(g=k)==null?void 0:g.localStorage})()}catch(g){d(g)}if(!n)return h;const w=b(t),S=Qt(w),C=(r=o.serializer)!=null?r:Jt[S],{pause:P,resume:R}=Dt(h,()=>m(h.value),{flush:s,deep:u,eventFilter:l});$(y,()=>W(),{flush:s}),c&&i&&le(()=>{n instanceof Storage?L(c,"storage",W,{passive:!0}):L(c,xe,A),v&&W()}),v||W();function I(g,_){if(c){const M={key:y.value,oldValue:g,newValue:_,storageArea:n};c.dispatchEvent(n instanceof Storage?new StorageEvent("storage",M):new CustomEvent(xe,{detail:M}))}}function m(g){try{const _=n.getItem(y.value);if(g==null)I(_,null),n.removeItem(y.value);else{const M=C.write(g);_!==M&&(n.setItem(y.value,M),I(_,M))}}catch(_){d(_)}}function E(g){const _=g?g.newValue:n.getItem(y.value);if(_==null)return a&&w!=null&&n.setItem(y.value,C.write(w)),w;if(!g&&f){const M=C.read(_);return typeof f=="function"?f(M,w):S==="object"&&!Array.isArray(M)?F(F({},w),M):M}else return typeof _!="string"?_:C.read(_)}function W(g){if(!(g&&g.storageArea!==n)){if(g&&g.key==null){h.value=w;return}if(!(g&&g.key!==y.value)){P();try{(g==null?void 0:g.newValue)!==C.write(h.value)&&(h.value=E(g))}catch(_){d(_)}finally{g?re(R):R()}}}}function A(g){W(g.detail)}return h}const Ut="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Kt(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=k,storage:s,storageKey:u="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:a,emitAuto:f,disableTransition:p=!0}=e,c=F({auto:"",light:"light",dark:"dark"},e.modes||{}),l=Yt({window:r}),d=T(()=>l.value?"dark":"light"),v=a||(u==null?ae(o):Gt(u,o,s,{window:r,listenToStorageChanges:i})),h=T(()=>v.value==="auto"?d.value:v.value),y=De("updateHTMLAttrs",(P,R,I)=>{const m=typeof P=="string"?r==null?void 0:r.document.querySelector(P):z(P);if(!m)return;const E=new Set,W=new Set;let A=null;if(R==="class"){const _=I.split(/\s/g);Object.values(c).flatMap(M=>(M||"").split(/\s/g)).filter(Boolean).forEach(M=>{_.includes(M)?E.add(M):W.add(M)})}else A={key:R,value:I};if(E.size===0&&W.size===0&&A===null)return;let g;p&&(g=r.document.createElement("style"),g.appendChild(document.createTextNode(Ut)),r.document.head.appendChild(g));for(const _ of E)m.classList.add(_);for(const _ of W)m.classList.remove(_);A&&m.setAttribute(A.key,A.value),p&&(r.getComputedStyle(g).opacity,document.head.removeChild(g))});function w(P){var R;y(t,n,(R=c[P])!=null?R:P)}function S(P){e.onChanged?e.onChanged(P,w):w(P)}$(h,S,{flush:"post",immediate:!0}),le(()=>S(h.value));const C=T({get(){return f?v.value:h.value},set(P){v.value=P}});return Object.assign(C,{store:v,system:d,state:h})}function On(e={}){const{valueDark:t="dark",valueLight:n=""}=e,o=Kt(H(F({},e),{onChanged:(u,i)=>{var a;e.onChanged?(a=e.onChanged)==null||a.call(e,u==="dark",i,u):i(u)},modes:{dark:t,light:n}})),r=T(()=>o.system.value);return T({get(){return o.value==="dark"},set(u){const i=u?"dark":"light";r.value===i?o.value="auto":o.value=i}})}function _n(e,t={}){var n;const{pointerTypes:o,preventDefault:r,stopPropagation:s,exact:u,onMove:i,onEnd:a,onStart:f,initialValue:p,axis:c="both",draggingElement:l=k,containerElement:d,handle:v=e,buttons:h=[0]}=t,y=O((n=b(p))!=null?n:{x:0,y:0}),w=O(),S=m=>o?o.includes(m.pointerType):!0,C=m=>{b(r)&&m.preventDefault(),b(s)&&m.stopPropagation()},P=m=>{var E;if(!b(h).includes(m.button)||b(t.disabled)||!S(m)||b(u)&&m.target!==b(e))return;const W=b(d),A=(E=W==null?void 0:W.getBoundingClientRect)==null?void 0:E.call(W),g=b(e).getBoundingClientRect(),_={x:m.clientX-(W?g.left-A.left+W.scrollLeft:g.left),y:m.clientY-(W?g.top-A.top+W.scrollTop:g.top)};(f==null?void 0:f(_,m))!==!1&&(w.value=_,C(m))},R=m=>{if(b(t.disabled)||!S(m)||!w.value)return;const E=b(d),W=b(e).getBoundingClientRect();let{x:A,y:g}=y.value;(c==="x"||c==="both")&&(A=m.clientX-w.value.x,E&&(A=Math.min(Math.max(0,A),E.scrollWidth-W.width))),(c==="y"||c==="both")&&(g=m.clientY-w.value.y,E&&(g=Math.min(Math.max(0,g),E.scrollHeight-W.height))),y.value={x:A,y:g},i==null||i(y.value,m),C(m)},I=m=>{b(t.disabled)||!S(m)||w.value&&(w.value=void 0,a==null||a(y.value,m),C(m))};if(ue){const m=()=>{var E;return{capture:(E=t.capture)!=null?E:!0,passive:!b(r)}};L(v,"pointerdown",P,m),L(l,"pointermove",R,m),L(l,"pointerup",I,m)}return H(F({},Lt(y)),{position:y,isDragging:T(()=>!!w.value),style:T(()=>`left:${y.value.x}px;top:${y.value.y}px;`)})}function qt(e,t,n={}){const c=n,{window:o=k}=c,r=X(c,["window"]);let s;const u=ce(()=>o&&"ResizeObserver"in o),i=()=>{s&&(s.disconnect(),s=void 0)},a=T(()=>{const l=b(e);return Array.isArray(l)?l.map(d=>z(d)):[z(l)]}),f=$(a,l=>{if(i(),u.value&&o){s=new ResizeObserver(t);for(const d of l)d&&s.observe(d,r)}},{immediate:!0,flush:"post"}),p=()=>{i(),f()};return ee(p),{isSupported:u,stop:p}}function Zt(e,t={width:0,height:0},n={}){const{window:o=k,box:r="content-box"}=n,s=T(()=>{var c,l;return(l=(c=z(e))==null?void 0:c.namespaceURI)==null?void 0:l.includes("svg")}),u=x(t.width),i=x(t.height),{stop:a}=qt(e,([c])=>{const l=r==="border-box"?c.borderBoxSize:r==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(o&&s.value){const d=z(e);if(d){const v=d.getBoundingClientRect();u.value=v.width,i.value=v.height}}else if(l){const d=Y(l);u.value=d.reduce((v,{inlineSize:h})=>v+h,0),i.value=d.reduce((v,{blockSize:h})=>v+h,0)}else u.value=c.contentRect.width,i.value=c.contentRect.height},n);le(()=>{const c=z(e);c&&(u.value="offsetWidth"in c?c.offsetWidth:t.width,i.value="offsetHeight"in c?c.offsetHeight:t.height)});const f=$(()=>z(e),c=>{u.value=c?t.width:0,i.value=c?t.height:0});function p(){a(),f()}return{width:u,height:i,stop:p}}const en={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function tn(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:r={x:0,y:0},window:s=k,target:u=s,scroll:i=!0,eventFilter:a}=e;let f=null,p=0,c=0;const l=x(r.x),d=x(r.y),v=x(null),h=typeof t=="function"?t:en[t],y=m=>{const E=h(m);f=m,E&&([l.value,d.value]=E,v.value="mouse"),s&&(p=s.scrollX,c=s.scrollY)},w=m=>{if(m.touches.length>0){const E=h(m.touches[0]);E&&([l.value,d.value]=E,v.value="touch")}},S=()=>{if(!f||!s)return;const m=h(f);f instanceof MouseEvent&&m&&(l.value=m[0]+s.scrollX-p,d.value=m[1]+s.scrollY-c)},C=()=>{l.value=r.x,d.value=r.y},P=a?m=>a(()=>y(m),{}):m=>y(m),R=a?m=>a(()=>w(m),{}):m=>w(m),I=a?()=>a(()=>S(),{}):()=>S();if(u){const m={passive:!0};L(u,["mousemove","dragover"],P,m),n&&t!=="movement"&&(L(u,["touchstart","touchmove"],R,m),o&&L(u,"touchend",C,m)),i&&t==="page"&&L(s,"scroll",I,m)}return{x:l,y:d,sourceType:v}}function Sn(e,t={}){const{handleOutside:n=!0,window:o=k}=t,r=t.type||"page",{x:s,y:u,sourceType:i}=tn(t),a=x(e!=null?e:o==null?void 0:o.document.body),f=x(0),p=x(0),c=x(0),l=x(0),d=x(0),v=x(0),h=x(!0);let y=()=>{};return o&&(y=$([a,s,u],()=>{const w=z(a);if(!w||!(w instanceof Element))return;const{left:S,top:C,width:P,height:R}=w.getBoundingClientRect();c.value=S+(r==="page"?o.pageXOffset:0),l.value=C+(r==="page"?o.pageYOffset:0),d.value=R,v.value=P;const I=s.value-c.value,m=u.value-l.value;h.value=P===0||R===0||I<0||m<0||I>P||m>R,(n||!h.value)&&(f.value=I,p.value=m)},{immediate:!0}),L(document,"mouseleave",()=>h.value=!0,{passive:!0})),{x:s,y:u,sourceType:i,elementX:f,elementY:p,elementPositionX:c,elementPositionY:l,elementHeight:d,elementWidth:v,isOutside:h,stop:y}}function En(e=null,t={}){var n,o,r;const{document:s=Ft,restoreOnUnmount:u=c=>c}=t,i=(n=s==null?void 0:s.title)!=null?n:"",a=ae((o=e!=null?e:s==null?void 0:s.title)!=null?o:null),f=!!(e&&typeof e=="function");function p(c){if(!("titleTemplate"in t))return c;const l=t.titleTemplate||"%s";return typeof l=="function"?l(c):b(l).replace(/%s/g,c)}return $(a,(c,l)=>{c!==l&&s&&(s.title=p(c!=null?c:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!f&&zt((r=s.head)==null?void 0:r.querySelector("title"),()=>{s&&s.title!==a.value&&(a.value=p(s.title))},{childList:!0}),ee(()=>{if(u){const c=u(i,a.value||"");c!=null&&s&&(s.title=c)}}),a}function Pn(e,t){const{containerStyle:n,wrapperProps:o,scrollTo:r,calculateRange:s,currentList:u,containerRef:i}="itemHeight"in t?rn(t,e):on(t,e);return{list:u,scrollTo:r,containerProps:{ref:i,onScroll:()=>{s()},style:n},wrapperProps:o}}function Le(e){const t=x(null),n=Zt(t),o=O([]),r=x(e);return{state:O({start:0,end:10}),source:r,currentList:o,size:n,containerRef:t}}function ke(e,t,n){return o=>{if(typeof n=="number")return Math.ceil(o/n);const{start:r=0}=e.value;let s=0,u=0;for(let i=r;i<t.value.length;i++){const a=n(i);if(s+=a,u=i,s>o)break}return u-r}}function Fe(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let o=0,r=0;for(let s=0;s<e.value.length;s++){const u=t(s);if(o+=u,o>=n){r=s;break}}return r+1}}function Ne(e,t,n,o,{containerRef:r,state:s,currentList:u,source:i}){return()=>{const a=r.value;if(a){const f=n(e==="vertical"?a.scrollTop:a.scrollLeft),p=o(e==="vertical"?a.clientHeight:a.clientWidth),c=f-t,l=f+p+t;s.value={start:c<0?0:c,end:l>i.value.length?i.value.length:l},u.value=i.value.slice(s.value.start,s.value.end).map((d,v)=>({data:d,index:v+s.value.start}))}}}function ze(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((r,s,u)=>r+e(u),0)}function Ve(e,t,n,o){$([e.width,e.height,t,n],()=>{o()})}function je(e,t){return T(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,o,r)=>n+e(r),0))}const nn={horizontal:"scrollLeft",vertical:"scrollTop"};function He(e,t,n,o){return r=>{o.value&&(o.value[nn[e]]=n(r),t())}}function on(e,t){const n=Le(t),{state:o,source:r,currentList:s,size:u,containerRef:i}=n,a={overflowX:"auto"},{itemWidth:f,overscan:p=5}=e,c=ke(o,r,f),l=Fe(r,f),d=Ne("horizontal",p,l,c,n),v=ze(f,r),h=T(()=>v(o.value.start)),y=je(f,r);Ve(u,t,i,d);const w=He("horizontal",d,v,i),S=T(()=>({style:{height:"100%",width:`${y.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}}));return{scrollTo:w,calculateRange:d,wrapperProps:S,containerStyle:a,currentList:s,containerRef:i}}function rn(e,t){const n=Le(t),{state:o,source:r,currentList:s,size:u,containerRef:i}=n,a={overflowY:"auto"},{itemHeight:f,overscan:p=5}=e,c=ke(o,r,f),l=Fe(r,f),d=Ne("vertical",p,l,c,n),v=ze(f,r),h=T(()=>v(o.value.start)),y=je(f,r);Ve(u,t,i,d);const w=He("vertical",d,v,i),S=T(()=>({style:{width:"100%",height:`${y.value-h.value}px`,marginTop:`${h.value}px`}}));return{calculateRange:d,scrollTo:w,containerStyle:a,wrapperProps:S,currentList:s,containerRef:i}}export{hn as a,D as b,an as c,gt as d,N as e,cn as f,pn as g,fn as h,q as i,it as j,gn as k,mn as l,wn as m,yn as n,dn as o,vn as p,En as q,ln as r,_n as s,Z as t,bn as u,Sn as v,L as w,Pn as x,Zt as y,On as z};
@@ -1 +0,0 @@
1
- var C=Object.defineProperty;var f=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var y=(o,t,e)=>t in o?C(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,l=(o,t)=>{for(var e in t||(t={}))B.call(t,e)&&y(o,e,t[e]);if(f)for(var e of f(t))A.call(t,e)&&y(o,e,t[e]);return o};var p=(o,t,e)=>new Promise((i,s)=>{var a=r=>{try{n(e.next(r))}catch(c){s(c)}},m=r=>{try{n(e.throw(r))}catch(c){s(c)}},n=r=>r.done?i(r.value):Promise.resolve(r.value).then(a,m);n((e=e.apply(o,t)).next())});import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{p as I,B as v,a3 as h,o as E,ay as $,y as g}from"./Editor-CYQNUi8W-BulRDd7p.js";import{useRoute as q}from"./vue-router-BO40Wv73.js";import{d as k,ay as x,c as R,o as w,K as S,O as K,u as _}from"./vue-BfodOvnP.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-vmN9qs5b.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-B5WqzYTl.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-CRGRqvsv.js";import"./marked-BQZxLJfc.js";const N={class:"loading"},O=k({__name:"Auth",props:{remote:{},access:{}},setup(o){return p(this,null,function*(){let t,e;const i=o,s=I(l(l({alert:h},v),i.access)),a=q(),m=c=>p(null,null,function*(){const d=`${i.remote||E}/api/open/user/${c}`,u=yield $(d).catch(()=>null);return!u||!u.success?(yield h("登录失败"),null):u.data}),n=a.query.token,r=n?([t,e]=x(()=>m(n)),t=yield t,e(),t):null;if(r)try{s.login(r);const c=a.query.redirect;location.href=decodeURIComponent(c||"/")}catch(c){location.reload()}return(c,d)=>(w(),R("div",N,"正在登录中..."))})}}),U=L(O,[["__scopeId","data-v-720ff9d2"]]),Z=k({__name:"auth",setup(o){return p(this,null,function*(){let t,e;const i=new g,s=([t,e]=x(()=>i.getExtension().catch(()=>null)),t=yield t,e(),t),a=s==null?void 0:s.remote,m=s==null?void 0:s.__ACCESS__;return(n,r)=>_(a)?(w(),S(_(U),{key:0,remote:_(a),access:_(m)},null,8,["remote","access"])):K("",!0)})}});export{Z as default};