@vtj/pro 0.13.23 → 0.13.24
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/{@element-plus-icons-vue-Bs81Xeyi.js → @element-plus-icons-vue-DE0zzihg.js} +1 -1
- package/dist/assets/@vueuse-BpC0PsDL.js +1 -0
- package/dist/assets/Editor-CLb3krdP-C8r-IoQB.js +307 -0
- package/dist/assets/auth-BU1g2m9V.js +1 -0
- package/dist/assets/element-plus-Ls1uDfNj.js +12 -0
- package/dist/assets/index-Bcin0Mcb.js +2 -0
- package/dist/assets/index-Ce7h16Vb.css +1 -0
- package/dist/assets/index-TDxfKkT3.js +1 -0
- package/dist/assets/lodash-es-KLPqz5pm.js +1 -0
- package/dist/assets/page-XeGEQ6Gx.js +2 -0
- package/dist/assets/preview-DBbWvSmA.js +2 -0
- package/dist/assets/shared-CcA2kMdO.js +12 -0
- package/dist/assets/{uni-page-CU2x9oBI.js → uni-page-B0qhTPS3.js} +1 -1
- package/dist/assets/utils-BgbpVBXT.js +1 -0
- package/dist/assets/{vue-DMnDC9ZE.js → vue-DgQ6LK_p.js} +1 -1
- package/dist/assets/{vue-router-ewcyuiJO.js → vue-router-CMJRGE5e.js} +2 -2
- package/dist/assets/{vxe-CUfKLI0g.js → vxe-3kB2iE1H.js} +1 -1
- package/dist/index.html +10 -10
- package/dist/uni/assets/{index-BpxuZr4v.js → index-Do95VDVa.js} +4 -4
- package/dist/uni/index.html +1 -1
- package/package.json +11 -11
- package/src/extension.ts +1 -8
- package/dist/assets/@vueuse-WKVogrsa.js +0 -1
- package/dist/assets/Editor-DXsCBRiC-D33HbIh-.js +0 -317
- package/dist/assets/auth-qKk5TEEw.js +0 -1
- package/dist/assets/element-plus-Ah0xLs8C.js +0 -13
- package/dist/assets/index-B9w6VXQs.js +0 -1
- package/dist/assets/index-CrVHlN_5.css +0 -1
- package/dist/assets/index-DylXIfBJ.js +0 -2
- package/dist/assets/lodash-es-D-A_gPnj.js +0 -1
- package/dist/assets/page-Bik-KS-X.js +0 -2
- package/dist/assets/preview-BVRIzTIz.js +0 -2
- package/dist/assets/shared-CiMZBXIr.js +0 -25
- package/dist/assets/utils-BgH3gXg6.js +0 -1
- package/src/.vtj/files/19sisjqn.json +0 -134
- package/src/.vtj/files/59sitlse.json +0 -75
- package/src/.vtj/histories/19sisjqn/29sisspz.json +0 -125
- package/src/.vtj/histories/19sisjqn/49sisvom.json +0 -138
- package/src/.vtj/histories/19sisjqn.json +0 -13
- package/src/.vtj/histories/59sitlse/29siy19o.json +0 -68
- package/src/.vtj/histories/59sitlse/49siy569.json +0 -79
- package/src/.vtj/histories/59sitlse/b9situxg.json +0 -89
- package/src/.vtj/histories/59sitlse/d9siu04b.json +0 -102
- package/src/.vtj/histories/59sitlse/f9siu2fm.json +0 -120
- package/src/.vtj/histories/59sitlse/g9siu5xn.json +0 -42
- package/src/.vtj/histories/59sitlse/i9siulxs.json +0 -55
- package/src/.vtj/histories/59sitlse.json +0 -33
- package/src/.vtj/materials/@vtj/pro.json +0 -7832
- package/src/.vtj/projects/@vtj/pro.json +0 -264
- /package/dist/assets/{Editor-DXsCBRiC-CF39O6J0.css → Editor-CLb3krdP-CF39O6J0.css} +0 -0
package/dist/index.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<meta http-equiv="Expires" content="0"/>
|
|
10
10
|
<title>低代码设计器 - VTJ.PRO</title>
|
|
11
11
|
<script>
|
|
12
|
-
var __BUILD_TIME__ = '
|
|
12
|
+
var __BUILD_TIME__ = '1757665372977';
|
|
13
13
|
(function () {
|
|
14
14
|
const regex = /<!--{{(\d*)}}-->/;
|
|
15
15
|
window.fetch('?t=' + Date.now()).then(async (res) => {
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
});
|
|
26
26
|
})();
|
|
27
27
|
</script>
|
|
28
|
-
<!--{{
|
|
28
|
+
<!--{{1757665372977}}-->
|
|
29
29
|
|
|
30
|
-
<script type="module" crossorigin src="./assets/index-
|
|
31
|
-
<link rel="modulepreload" crossorigin href="./assets/vue-
|
|
32
|
-
<link rel="modulepreload" crossorigin href="./assets
|
|
33
|
-
<link rel="modulepreload" crossorigin href="./assets/@vueuse-WKVogrsa.js">
|
|
34
|
-
<link rel="modulepreload" crossorigin href="./assets/@element-plus-icons-vue-Bs81Xeyi.js">
|
|
35
|
-
<link rel="modulepreload" crossorigin href="./assets/shared-CiMZBXIr.js">
|
|
30
|
+
<script type="module" crossorigin src="./assets/index-Bcin0Mcb.js"></script>
|
|
31
|
+
<link rel="modulepreload" crossorigin href="./assets/vue-DgQ6LK_p.js">
|
|
32
|
+
<link rel="modulepreload" crossorigin href="./assets/@vueuse-BpC0PsDL.js">
|
|
36
33
|
<link rel="modulepreload" crossorigin href="./assets/dayjs-C1e0w4cr.js">
|
|
37
|
-
<link rel="modulepreload" crossorigin href="./assets
|
|
34
|
+
<link rel="modulepreload" crossorigin href="./assets/@element-plus-icons-vue-DE0zzihg.js">
|
|
35
|
+
<link rel="modulepreload" crossorigin href="./assets/lodash-es-KLPqz5pm.js">
|
|
36
|
+
<link rel="modulepreload" crossorigin href="./assets/shared-CcA2kMdO.js">
|
|
37
|
+
<link rel="modulepreload" crossorigin href="./assets/element-plus-Ls1uDfNj.js">
|
|
38
38
|
<link rel="modulepreload" crossorigin href="./assets/monaco-editor-xcHgnT1C.js">
|
|
39
|
-
<link rel="modulepreload" crossorigin href="./assets/vue-router-
|
|
39
|
+
<link rel="modulepreload" crossorigin href="./assets/vue-router-CMJRGE5e.js">
|
|
40
40
|
<link rel="stylesheet" crossorigin href="./assets/element-plus-BAo4E1qD.css">
|
|
41
41
|
<link rel="stylesheet" crossorigin href="./assets/monaco-editor-Cpw7ccEV.css">
|
|
42
42
|
<link rel="stylesheet" crossorigin href="./assets/index-1XTA0ffa.css">
|
|
@@ -46,7 +46,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
46
46
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
47
47
|
* @name @vtj/core
|
|
48
48
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
49
|
-
* @version 0.13.
|
|
49
|
+
* @version 0.13.24
|
|
50
50
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
51
51
|
*/const cg="VueMaterial",lg="VueRouterMaterial",fg={[cg]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[lg]:["RouterView","RouterLink"]};let hg=class{constructor(){z(this,"listeners",[]);z(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}};var pg=Object.defineProperty,dg=(e,t,r)=>t in e?pg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ft=(e,t,r)=>dg(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();const gg=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gg));function $o(e,t){return function(){return e.apply(t,arguments)}}const{toString:mg}=Object.prototype,{getPrototypeOf:_n}=Object,{iterator:sr,toStringTag:Oo}=Symbol,or=(e=>t=>{const r=mg.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),vt=e=>(e=e.toLowerCase(),t=>or(t)===e),ar=e=>t=>typeof t===e,{isArray:ce}=Array,Ee=ar("undefined");function Re(e){return e!==null&&!Ee(e)&&e.constructor!==null&&!Ee(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jo=vt("ArrayBuffer");function yg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jo(e.buffer),t}const vg=ar("string"),at=ar("function"),Do=ar("number"),Ae=e=>e!==null&&typeof e=="object",bg=e=>e===!0||e===!1,Ve=e=>{if(or(e)!=="object")return!1;const t=_n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Oo in e)&&!(sr in e)},wg=e=>{if(!Ae(e)||Re(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},_g=vt("Date"),Eg=vt("File"),Sg=vt("Blob"),xg=vt("FileList"),Tg=e=>Ae(e)&&at(e.pipe),Rg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=or(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},Ag=vt("URLSearchParams"),[$g,Og,jg,Dg]=["ReadableStream","Request","Response","Headers"].map(vt),Bg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $e(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ce(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(Re(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let u;for(n=0;n<o;n++)u=s[n],t.call(null,e[u],u,e)}}function Bo(e,t){if(Re(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Co=e=>!Ee(e)&&e!==Vt;function Jr(){const{caseless:e}=Co(this)&&this||{},t={},r=(n,i)=>{const s=e&&Bo(t,i)||i;Ve(t[s])&&Ve(n)?t[s]=Jr(t[s],n):Ve(n)?t[s]=Jr({},n):ce(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&$e(arguments[n],r);return t}const Cg=(e,t,r,{allOwnKeys:n}={})=>($e(t,(i,s)=>{r&&at(i)?e[s]=$o(i,r):e[s]=i},{allOwnKeys:n}),e),Ng=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Pg=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Ig=(e,t,r,n)=>{let i,s,o;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=r!==!1&&_n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kg=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Fg=e=>{if(!e)return null;if(ce(e))return e;let t=e.length;if(!Do(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Mg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_n(Uint8Array)),Ug=(e,t)=>{const r=(e&&e[sr]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},Lg=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Vg=vt("HTMLFormElement"),Hg=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),ki=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),qg=vt("RegExp"),No=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};$e(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},zg=e=>{No(e,(t,r)=>{if(at(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(at(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Kg=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return ce(e)?n(e):n(String(e).split(t)),r},Wg=()=>{},Jg=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Yg(e){return!!(e&&at(e.append)&&e[Oo]==="FormData"&&e[sr])}const Gg=e=>{const t=new Array(10),r=(n,i)=>{if(Ae(n)){if(t.indexOf(n)>=0)return;if(Re(n))return n;if(!("toJSON"in n)){t[i]=n;const s=ce(n)?[]:{};return $e(n,(o,u)=>{const l=r(o,i+1);!Ee(l)&&(s[u]=l)}),t[i]=void 0,s}}return n};return r(e,0)},Zg=vt("AsyncFunction"),Xg=e=>e&&(Ae(e)||at(e))&&at(e.then)&&at(e.catch),Po=((e,t)=>e?setImmediate:t?((r,n)=>(Vt.addEventListener("message",({source:i,data:s})=>{i===Vt&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Vt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",at(Vt.postMessage)),Qg=typeof queueMicrotask<"u"?queueMicrotask.bind(Vt):typeof process<"u"&&process.nextTick||Po,tm=e=>e!=null&&at(e[sr]),R={isArray:ce,isArrayBuffer:jo,isBuffer:Re,isFormData:Rg,isArrayBufferView:yg,isString:vg,isNumber:Do,isBoolean:bg,isObject:Ae,isPlainObject:Ve,isEmptyObject:wg,isReadableStream:$g,isRequest:Og,isResponse:jg,isHeaders:Dg,isUndefined:Ee,isDate:_g,isFile:Eg,isBlob:Sg,isRegExp:qg,isFunction:at,isStream:Tg,isURLSearchParams:Ag,isTypedArray:Mg,isFileList:xg,forEach:$e,merge:Jr,extend:Cg,trim:Bg,stripBOM:Ng,inherits:Pg,toFlatObject:Ig,kindOf:or,kindOfTest:vt,endsWith:kg,toArray:Fg,forEachEntry:Ug,matchAll:Lg,isHTMLForm:Vg,hasOwnProperty:ki,hasOwnProp:ki,reduceDescriptors:No,freezeMethods:zg,toObjectSet:Kg,toCamelCase:Hg,noop:Wg,toFiniteNumber:Jg,findKey:Bo,global:Vt,isContextDefined:Co,isSpecCompliantForm:Yg,toJSONObject:Gg,isAsyncFn:Zg,isThenable:Xg,setImmediate:Po,asap:Qg,isIterable:tm};function W(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}R.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});const Io=W.prototype,ko={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ko[e]={value:e}});Object.defineProperties(W,ko);Object.defineProperty(Io,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,s)=>{const o=Object.create(Io);return R.toFlatObject(e,o,function(u){return u!==Error.prototype},u=>u!=="isAxiosError"),W.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const em=null;function Yr(e){return R.isPlainObject(e)||R.isArray(e)}function Fo(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Fi(e,t,r){return e?e.concat(t).map(function(n,i){return n=Fo(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function rm(e){return R.isArray(e)&&!e.some(Yr)}const nm=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function ur(e,t,r){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,d){return!R.isUndefined(d[h])});const n=r.metaTokens,i=r.visitor||a,s=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(R.isDate(h))return h.toISOString();if(R.isBoolean(h))return h.toString();if(!u&&R.isBlob(h))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(h)||R.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function a(h,d,g){let b=h;if(h&&!g&&typeof h=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(R.isArray(h)&&rm(h)||(R.isFileList(h)||R.endsWith(d,"[]"))&&(b=R.toArray(h)))return d=Fo(d),b.forEach(function(_,y){!(R.isUndefined(_)||_===null)&&t.append(o===!0?Fi([d],y,s):o===null?d:d+"[]",l(_))}),!1}return Yr(h)?!0:(t.append(Fi(g,d,s),l(h)),!1)}const c=[],f=Object.assign(nm,{defaultVisitor:a,convertValue:l,isVisitable:Yr});function p(h,d){if(!R.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(h),R.forEach(h,function(g,b){(!(R.isUndefined(g)||g===null)&&i.call(t,g,R.isString(b)?b.trim():b,d,f))===!0&&p(g,d?d.concat(b):[b])}),c.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Mi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function En(e,t){this._pairs=[],e&&ur(e,this,t)}const Mo=En.prototype;Mo.append=function(e,t){this._pairs.push([e,t])};Mo.toString=function(e){const t=e?function(r){return e.call(this,r,Mi)}:Mi;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function im(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Uo(e,t,r){if(!t)return e;const n=r&&r.encode||im;R.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=R.isURLSearchParams(t)?t.toString():new En(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let Ui=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(r){r!==null&&t(r)})}};const Lo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sm=typeof URLSearchParams<"u"?URLSearchParams:En,om=typeof FormData<"u"?FormData:null,am=typeof Blob<"u"?Blob:null,um={isBrowser:!0,classes:{URLSearchParams:sm,FormData:om,Blob:am},protocols:["http","https","file","blob","url","data"]},Sn=typeof window<"u"&&typeof document<"u",Gr=typeof navigator=="object"&&navigator||void 0,cm=Sn&&(!Gr||["ReactNative","NativeScript","NS"].indexOf(Gr.product)<0),lm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fm=Sn&&window.location.href||"http://localhost",hm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Sn,hasStandardBrowserEnv:cm,hasStandardBrowserWebWorkerEnv:lm,navigator:Gr,origin:fm},Symbol.toStringTag,{value:"Module"})),nt=V(V({},hm),um);function pm(e,t){return ur(e,new nt.classes.URLSearchParams,V({visitor:function(r,n,i,s){return nt.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function dm(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gm(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function Vo(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=r.length;return o=!o&&R.isArray(i)?i.length:o,l?(R.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!R.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&R.isArray(i[o])&&(i[o]=gm(i[o])),!u)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,i)=>{t(dm(n),i,r,0)}),r}return null}function mm(e,t,r){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Oe={transitional:Lo,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return n?JSON.stringify(Vo(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pm(e,this.formSerializer).toString();if((s=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ur(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),mm(e)):e}],transformResponse:[function(e){const t=this.transitional||Oe.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{Oe.headers[e]={}});const ym=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vm=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
52
52
|
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&ym[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Li=Symbol("internals");function ge(e){return e&&String(e).trim().toLowerCase()}function He(e){return e===!1||e==null?e:R.isArray(e)?e.map(He):String(e)}function bm(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const wm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Tr(e,t,r,n,i){if(R.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!R.isString(t)){if(R.isString(n))return t.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(t)}}function _m(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Em(e,t){const r=R.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let ut=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(u,l,a){const c=ge(l);if(!c)throw new Error("header name must be a non-empty string");const f=R.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||l]=He(u))}const o=(u,l)=>R.forEach(u,(a,c)=>s(a,c,l));if(R.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(R.isString(t)&&(t=t.trim())&&!wm(t))o(vm(t),r);else if(R.isObject(t)&&R.isIterable(t)){let u={},l,a;for(const c of t){if(!R.isArray(c))throw TypeError("Object iterator must return a key-value pair");u[a=c[0]]=(l=u[a])?R.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(u,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=ge(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return bm(i);if(R.isFunction(r))return r.call(this,i,n);if(R.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ge(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Tr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=ge(o),o){const u=R.findKey(n,o);u&&(!r||Tr(n,n[u],u,r))&&(delete n[u],i=!0)}}return R.isArray(t)?t.forEach(s):s(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!t||Tr(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return R.forEach(this,(i,s)=>{const o=R.findKey(n,s);if(o){r[o]=He(i),delete r[s];return}const u=t?_m(s):String(s).trim();u!==s&&delete r[s],r[u]=He(i),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&R.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
@@ -57,9 +57,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
57
57
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
58
58
|
* @name @vtj/renderer
|
|
59
59
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
60
|
-
* @version 0.13.
|
|
60
|
+
* @version 0.13.24
|
|
61
61
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
62
|
-
*/const Dr="0.13.
|
|
62
|
+
*/const Dr="0.13.24";var tt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(tt||{});const es=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],y1=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],v1={String,Number,Boolean,Array,Object,Function,Date},We="VtjPage",Br="VtjHomepage",b1="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(","),w1="component,slot".split(",");function Me(e,t){return e.map(r=>Ge(r)||r.startsWith("/")?r:`${t}${r}`)}function fr(e){return/\.css$/.test(e)}function hr(e){return/\.js$/.test(e)}function _1(e){return/\.json$/.test(e)}function E1(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function S1(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:g,localeLibrary:b})=>{p==null||p.forEach(_=>{hr(_)&&i.push(E1(_,r)),fr(_)&&s.push(_)}),d&&(u.push(d),l[d]=Me(p||[],t),b&&(a[d]=b)),h&&o.push(h),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:Me(i,t),css:Me(s,t),materials:Me(o,t),libraryExports:u,materialExports:Yd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function x1(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function T1(e=[]){const t=e.filter(n=>fr(n)),r=e.filter(n=>hr(n));return{css:t,js:r}}function R1(e,t){const r=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const _=a.indexOf("*/",f+2);if(_!==-1){f=_+2;continue}}if(a[f]==="@"){const _=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const y=a.substring(_,f).trim(),v=y.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(_,f+1)}),f++;else if(a[f]==="{"){const w=f+1;let E=1;for(f++;f<a.length&&E>0;)a[f]==="{"?E++:a[f]==="}"&&E--,f++;const m=a.substring(_,f),x=a.substring(w,f-1);c.push({type:v?"keyframes":"at-rule",rule:y,content:m,inner:x})}continue}const p=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const h=a.substring(p,f).trim();if(!h){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const b=a.substring(d,f-1);c.push({type:"rule",selector:h,content:b.trim()})}return c},n=a=>{const c=a.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=a=>a.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,p)=>{const h=f.trim(),d=p.trim();return h?`${h}[${t}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${t}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,p,h=""]=f,d=p.trim();return d?`${d}[${t}]${h}`:c}return`${c}[${t}]`},o=a=>i(a).split(",").map(c=>s(c)).filter(c=>c.trim()).join(", "),u=a=>a.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const p=r(c.inner),h=u(p);return`${c.rule} { ${h} }`}catch(p){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=o(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=a=>a.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const a=e.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
|
|
63
63
|
`),c=r(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",e),e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${t}]`)||n(f)?c:`${f}[${t}]`})}}function ia(e){return Ct(e)?e:JSON.stringify(e)}function pr(e,t,r,n=!1){const i=e.CSSStyleSheet,s=n?`data-v-${t}`:t,o=n?R1(r,s):r;if(i.prototype.replaceSync){const u=new i;u.id=t,u.replaceSync(o);const l=e.document,a=l.adoptedStyleSheets,c=Array.from(a).filter(f=>f.id!==t);l.adoptedStyleSheets=[...c,u]}else{const u=e.document;let l=u.getElementById(t);l?l.innerHTML=o:(l=u.createElement("style"),l.id=t,l.innerHTML=o,u.head.appendChild(l))}}function A1(e,t){return k(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&pr(window,e,r)})}function sa(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function oa(n,i){return k(this,arguments,function*(e,t,r=window){const s=r.document,o=r.document.head;let u=r[t];return u?u.default||u:new Promise((l,a)=>{for(const c of e){const f=s.createElement("script");f.src=c,f.onload=()=>{u=r[t],u?l(u.default||u):a(null)},f.onerror=p=>{a(p)},o.appendChild(f)}})})}function $1(e){return zt(e)&&Object.getOwnPropertyNames(e.prototype||{}).length===0||zt(e==null?void 0:e.install)}function O1(e){return w1.includes(e)}function j1(e){return b1.includes(e)}function Se(e=window){const t=window==null?void 0:window.Mock;if(t)return t;const r=e==null?void 0:e.Mock;if(r&&window)return window.Mock=r,r}function xe(e,t,r=!1,n=!1,i=!1){var s;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let u=(e.value||"").trim();i||(u=u.replace(/this(\W|$)/g,(a,c)=>`__self${c}`)),u=o.join(`
|
|
64
64
|
`)+u;const l=i?`
|
|
65
65
|
${u}
|
|
@@ -69,6 +69,6 @@ ${u}
|
|
|
69
69
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
70
70
|
* @name @vtj/uni
|
|
71
71
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
72
|
-
* @version 0.13.
|
|
72
|
+
* @version 0.13.24
|
|
73
73
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
74
74
|
*/const j0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],rs="/pages",D0="VTJ",B0="__UNI__1FC118B",C0="VTJ移动跨端项目",N0="1.0.0",P0="100",I0=!1,k0={},F0={enable:!1},M0="3",U0={name:D0,appid:B0,description:C0,versionName:N0,versionCode:P0,transformPx:I0,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:k0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:F0,vueVersion:M0},L0=[],V0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},H0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},q0={pages:L0,globalStyle:V0,easycom:H0};function z0(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return et(V({},e),{manifestJson:Object.assign({},U0,t),pagesJson:Object.assign({},q0,r,{pages:i})})}const ln={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function da(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)ln[n]&&(t[ln[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function K0(e){const t={};for(const r in e)ln[r]||(t[r]=e[r]);return t}function W0(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function J0(e){var t,r,n;return{topWindow:!!((t=e.topWindow)!=null&&t.path),leftWindow:!!((r=e.leftWindow)!=null&&r.path),rightWindow:!!((n=e.rightWindow)!=null&&n.path)}}function Y0(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function G0(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function Z0(e){var u;const t=G0(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:s=[]}=n;if(t)return r;r.navigationBar=!0;const o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function X0(e,t=window){var p,h,d,g;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:s,rightWindow:o}=J0(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=Z0(e),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:W0(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(h=r.tabBar)==null?void 0:h.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((g=r.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:Y0(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([b,_])=>{t[b]=_})}const Q0="4.76";function ty(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:et(V({},K0(a)),{navigationBar:da(a),isNVue:!1}),compilerVersion:Q0,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function ey(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=o,t.upx2px=u,t.__setupPage=a=>l(a)}function ry(e,t,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=e,{PageComponent:u,setupPage:l,getApp:a}=t;return{mpType:"page",setup(){return k(this,null,function*(){var g,b;const f=((b=(g=a())==null?void 0:g.$route)==null?void 0:b.query)||{},{loader:p,component:h}=r,d=p?yield p(r):h||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function ny(e,t,r){var h;const{path:n,style:i={},meta:s={},home:o,id:u}=t,l=((h=e.tabBar)==null?void 0:h.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,p=r===0;return V({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:p,isEntry:o!=null?o:p,navigationBar:V({type:"default"},da(i)),isNVue:!1,route:c?c.pagePath:n},s)}function iy(e,t,r,n,i=window){const s=r.map((o,u)=>{const l=ny(n,o,u),a=ry(e,t,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return e.h(e.Suspense,[e.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function sy(e,t,r=window){pr(r,String(e),t)}function oy(e,t){t&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(r=>{const n=t[r];e.component(r,n)})}function ay(e){const t=z0(e),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=t;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;X0(t,l),ty(t,l),ey(i,l),iy(r,i,s,o,l),sy(u.appid||Date.now(),a,l);const p=r.createApp(f(n));return p.use(oy,i),p.use(c),p}function uy(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{j0.includes(n)&&i&&(r[n]=t(i))}),r}function ns(e,t){return()=>k(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function cy(n){return k(this,arguments,function*(e,t=!1,r=rs){var u,l,a;const i=((u=e.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=e.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:ns(e,c.id),style:V({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=r===rs?"/":r;s.unshift(et(V({},o),{path:c}))}if(t){const c=((a=e.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:ns(e,f.id),style:{navigationStyle:"custom"}})}return s})}function ly(){var e;return(e=window.uni)!=null&&e.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ga(e,t="",r="warning"){return k(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:e,showCancel:!1}):Promise.reject(new Error("window.uni.showModal is undefined"))})}function fy(e=tt.Runtime){let t={};e===tt.Runtime?t=Object.assign({}):t=Object.assign({});let r={};for(const[n,i]of Object.entries(t))r[n]=()=>Promise.resolve(i);return r}const hy=C1({loading:ly,notify:ga}),ma=new O0(A0(ga)),py=fy(),{provider:dy,onReady:gy}=E0({nodeEnv:"production",mode:tt.Runtime,modules:py,materialPath:"../",adapter:hy,service:ma,dependencies:{Vue:()=>jn(()=>import("./@dcloudio-uni-h5-vue-BtM9Eyib.js").then(e=>e.z),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>jn(()=>import("./vue-router-CbZ0Q__O.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),my=e=>k(null,null,function*(){const t=(yield ma.getExtension().catch(()=>null))||{},r=top||window,n=yield x0(t.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=e.project;if(!o)return;const u=o.uniConfig||{},l=uy(u,d=>pt(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,p=yield cy(e,!0),h=ay({Vue:i,App:l,UniH5:s,routes:p,css:f,manifestJson:a,pagesJson:c});h.use(e),n&&h.use(n,e),h.mount(document.body)});gy(()=>my(dy));
|
package/dist/uni/index.html
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<title></title>
|
|
24
24
|
<!--preload-links-->
|
|
25
25
|
<!--app-context-->
|
|
26
|
-
<script type="module" crossorigin src="./assets/index-
|
|
26
|
+
<script type="module" crossorigin src="./assets/index-Do95VDVa.js"></script>
|
|
27
27
|
<link rel="modulepreload" crossorigin href="./assets/vue-BK7aLblh.js">
|
|
28
28
|
<link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-Cc-Ey1iB.js">
|
|
29
29
|
<link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-BtM9Eyib.js">
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/pro",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.24",
|
|
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.13.
|
|
25
|
-
"@vtj/
|
|
26
|
-
"@vtj/renderer": "~0.13.
|
|
27
|
-
"@vtj/
|
|
28
|
-
"@vtj/uni": "~0.13.
|
|
29
|
-
"@vtj/
|
|
24
|
+
"@vtj/core": "~0.13.24",
|
|
25
|
+
"@vtj/local": "~0.13.24",
|
|
26
|
+
"@vtj/renderer": "~0.13.24",
|
|
27
|
+
"@vtj/materials": "~0.13.24",
|
|
28
|
+
"@vtj/uni": "~0.13.24",
|
|
29
|
+
"@vtj/designer": "~0.13.24"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"vue": "~3.5.5",
|
|
33
33
|
"vue-router": "~4.5.0",
|
|
34
|
+
"@vtj/icons": "~0.13.24",
|
|
34
35
|
"@vtj/cli": "~0.12.12",
|
|
35
|
-
"@vtj/
|
|
36
|
-
"@vtj/
|
|
37
|
-
"@vtj/
|
|
38
|
-
"@vtj/utils": "~0.13.23"
|
|
36
|
+
"@vtj/ui": "~0.13.24",
|
|
37
|
+
"@vtj/utils": "~0.13.24",
|
|
38
|
+
"@vtj/charts": "~0.13.24"
|
|
39
39
|
},
|
|
40
40
|
"exports": {
|
|
41
41
|
"./vite": {
|
package/src/extension.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import * as Vue from 'vue';
|
|
2
2
|
import * as core from '@vtj/core';
|
|
3
3
|
import * as VtjUtils from '@vtj/utils';
|
|
4
|
-
import * as VtjUI from '@vtj/ui';
|
|
5
4
|
import * as designer from '@vtj/designer';
|
|
6
5
|
import * as renderer from '@vtj/renderer';
|
|
7
|
-
import * as VtjIcons from '@vtj/icons';
|
|
8
|
-
import * as ElementPlus from 'element-plus';
|
|
9
6
|
import type { VTJConfig } from '@vtj/core';
|
|
10
7
|
import type { EngineOptions } from '@vtj/designer';
|
|
11
8
|
|
|
@@ -28,11 +25,7 @@ export class Extension {
|
|
|
28
25
|
};
|
|
29
26
|
const globals: Record<string, any> = {
|
|
30
27
|
Vue,
|
|
31
|
-
__VTJ_PRO__
|
|
32
|
-
VtjUtils,
|
|
33
|
-
VtjIcons,
|
|
34
|
-
VtjUI,
|
|
35
|
-
ElementPlus
|
|
28
|
+
__VTJ_PRO__
|
|
36
29
|
};
|
|
37
30
|
for (const [name, value] of Object.entries(globals)) {
|
|
38
31
|
(window as any)[name] = value;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var qe=Object.defineProperty,Ze=Object.defineProperties;var et=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var ye=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var ge=(e,t,n)=>t in e?qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||(t={}))ye.call(t,n)&&ge(e,n,t[n]);if(q)for(var n of q(t))we.call(t,n)&&ge(e,n,t[n]);return e},Q=(e,t)=>Ze(e,et(t));var G=(e,t)=>{var n={};for(var r in e)ye.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&q)for(var r of q(e))t.indexOf(r)<0&&we.call(e,r)&&(n[r]=e[r]);return n};import{g as Ie,b as De,s as M,w as Le,r as ne,e as b,f as E,h as P,u as ae,i as U,j as le,n as ce,k as te,l as be,m as fe,t as tt,p as nt,q as _,v as ze,x as rt}from"./vue-DMnDC9ZE.js";var ot=Object.defineProperty,st=Object.defineProperties,it=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,_e=(e,t,n)=>t in e?ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lt=(e,t)=>{for(var n in t||(t={}))ut.call(t,n)&&_e(e,n,t[n]);if(Oe)for(var n of Oe(t))at.call(t,n)&&_e(e,n,t[n]);return e},ct=(e,t)=>st(e,it(t));function vn(e,t){var n;const r=M();return Le(()=>{r.value=e()},ct(lt({},t),{flush:(n=void 0)!=null?n:"sync"})),ne(r)}var Se;const re=typeof window!="undefined",ft=e=>typeof e!="undefined",ue=e=>typeof e=="function",dt=e=>typeof e=="string",pn=(e,t,n)=>Math.min(n,Math.max(t,e)),j=()=>{},vt=re&&((Se=window==null?void 0:window.navigator)==null?void 0:Se.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function X(e){return typeof e=="function"?e():ae(e)}function Fe(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}function pt(e,t={}){let n,r,o=j;const s=i=>{clearTimeout(i),o(),o=j};return i=>{const a=X(e),f=X(t.maxWait);return n&&s(n),a<=0||f!==void 0&&f<=0?(r&&(s(r),r=null),Promise.resolve(i())):new Promise((v,l)=>{o=t.rejectOnCancel?l:v,f&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,v(i())},f)),n=setTimeout(()=>{r&&s(r),r=null,v(i())},a)})}}function mt(e,t=!0,n=!0,r=!1){let o=0,s,u=!0,i=j,a;const f=()=>{s&&(clearTimeout(s),s=void 0,i(),i=j)};return l=>{const c=X(e),d=Date.now()-o,p=()=>a=l();return f(),c<=0?(o=Date.now(),p()):(d>c&&(n||!u)?(o=Date.now(),p()):t&&(a=new Promise((g,h)=>{i=r?h:g,s=setTimeout(()=>{o=Date.now(),u=!0,g(p()),f()},Math.max(0,c-d))})),!n&&!s&&(s=setTimeout(()=>u=!0,c)),u=!1,a)}}function ht(e){return e}function gt(e,t){let n,r,o;const s=b(!0),u=()=>{s.value=!0,o()};P(e,u,{flush:"sync"});const i=ue(t)?t:t.get,a=ue(t)?void 0:t.set,f=fe((v,l)=>(r=v,o=l,{get(){return s.value&&(n=i(),s.value=!1),r(),n},set(c){a==null||a(c)}}));return Object.isExtensible(f)&&(f.trigger=u),f}function K(e){return Ie()?(De(e),!0):!1}function yt(e){if(!te(e))return be(e);const t=new Proxy({},{get(n,r,o){return ae(Reflect.get(e.value,r,o))},set(n,r,o){return te(e.value[r])&&!te(o)?e.value[r].value=o:e.value[r]=o,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return be(t)}function mn(e){return yt(E(e))}function wt(e,t=200,n={}){return Fe(pt(t,n),e)}function hn(e,t=200,n={}){const r=b(e.value),o=wt(()=>{r.value=e.value},t,n);return P(e,()=>o()),r}function gn(e,t=200,n=!1,r=!0,o=!1){return Fe(mt(t,n,r,o),e)}function de(e,t=!0){U()?le(e):t?e():ce(e)}function yn(e,t,n={}){const{immediate:r=!0}=n,o=b(!1);let s=null;function u(){s&&(clearTimeout(s),s=null)}function i(){o.value=!1,u()}function a(...f){u(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...f)},X(t))}return r&&(o.value=!0,re&&a()),K(i),{isPending:ne(o),start:a,stop:i}}function I(e){var t;const n=X(e);return(t=n==null?void 0:n.$el)!=null?t:n}const H=re?window:void 0,bt=re?window.document:void 0;function F(...e){let t,n,r,o;if(dt(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=H):[t,n,r,o]=e,!t)return j;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],u=()=>{s.forEach(v=>v()),s.length=0},i=(v,l,c,d)=>(v.addEventListener(l,c,d),()=>v.removeEventListener(l,c,d)),a=P(()=>[I(t),X(o)],([v,l])=>{u(),v&&s.push(...n.flatMap(c=>r.map(d=>i(v,c,d,l))))},{immediate:!0,flush:"post"}),f=()=>{a(),u()};return K(f),f}let xe=!1;function wn(e,t,n={}){const{window:r=H,ignore:o=[],capture:s=!0,detectIframe:u=!1}=n;if(!r)return;vt&&!xe&&(xe=!0,Array.from(r.document.body.children).forEach(c=>c.addEventListener("click",j)));let i=!0;const a=c=>o.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(p=>p===c.target||c.composedPath().includes(p));{const p=I(d);return p&&(c.target===p||c.composedPath().includes(p))}}),v=[F(r,"click",c=>{const d=I(e);if(!(!d||d===c.target||c.composedPath().includes(d))){if(c.detail===0&&(i=!a(c)),!i){i=!0;return}t(c)}},{passive:!0,capture:s}),F(r,"pointerdown",c=>{const d=I(e);d&&(i=!c.composedPath().includes(d)&&!a(c))},{passive:!0}),u&&F(r,"blur",c=>{var d;const p=I(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(c)})].filter(Boolean);return()=>v.forEach(c=>c())}function bn(e={}){var t;const{window:n=H}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,o=gt(()=>null,()=>r==null?void 0:r.activeElement);return n&&(F(n,"blur",s=>{s.relatedTarget===null&&o.trigger()},!0),F(n,"focus",o.trigger,!0)),o}function ve(e,t=!1){const n=b(),r=()=>n.value=!!e();return r(),de(r,t),n}function Ot(e){return JSON.parse(JSON.stringify(e))}const Ee=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Pe="__vueuse_ssr_handlers__";Ee[Pe]=Ee[Pe]||{};function On(e,t,{window:n=H,initialValue:r=""}={}){const o=b(r),s=E(()=>{var u;return I(t)||((u=n==null?void 0:n.document)==null?void 0:u.documentElement)});return P([s,()=>X(e)],([u,i])=>{var a;if(u&&n){const f=(a=n.getComputedStyle(u).getPropertyValue(i))==null?void 0:a.trim();o.value=f||r}},{immediate:!0}),P(o,u=>{var i;(i=s.value)!=null&&i.style&&s.value.style.setProperty(X(e),u)}),o}function _n({document:e=bt}={}){if(!e)return b("visible");const t=b(e.visibilityState);return F(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Te=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,xt=(e,t)=>{var n={};for(var r in e)_t.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Te)for(var r of Te(e))t.indexOf(r)<0&&St.call(e,r)&&(n[r]=e[r]);return n};function ke(e,t,n={}){const r=n,{window:o=H}=r,s=xt(r,["window"]);let u;const i=ve(()=>o&&"ResizeObserver"in o),a=()=>{u&&(u.disconnect(),u=void 0)},f=P(()=>I(e),l=>{a(),i.value&&o&&l&&(u=new ResizeObserver(t),u.observe(l,s))},{immediate:!0,flush:"post"}),v=()=>{a(),f()};return K(v),{isSupported:i,stop:v}}function Sn(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:s=!0}=t,u=b(0),i=b(0),a=b(0),f=b(0),v=b(0),l=b(0),c=b(0),d=b(0);function p(){const g=I(e);if(!g){n&&(u.value=0,i.value=0,a.value=0,f.value=0,v.value=0,l.value=0,c.value=0,d.value=0);return}const h=g.getBoundingClientRect();u.value=h.height,i.value=h.bottom,a.value=h.left,f.value=h.right,v.value=h.top,l.value=h.width,c.value=h.x,d.value=h.y}return ke(e,p),P(()=>I(e),g=>!g&&p()),o&&F("scroll",p,{capture:!0,passive:!0}),r&&F("resize",p,{passive:!0}),de(()=>{s&&p()}),{height:u,bottom:i,left:a,right:f,top:v,width:l,x:c,y:d,update:p}}function xn(e,t={width:0,height:0},n={}){const{window:r=H,box:o="content-box"}=n,s=E(()=>{var a,f;return(f=(a=I(e))==null?void 0:a.namespaceURI)==null?void 0:f.includes("svg")}),u=b(t.width),i=b(t.height);return ke(e,([a])=>{const f=o==="border-box"?a.borderBoxSize:o==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(r&&s.value){const v=I(e);if(v){const l=r.getComputedStyle(v);u.value=parseFloat(l.width),i.value=parseFloat(l.height)}}else if(f){const v=Array.isArray(f)?f:[f];u.value=v.reduce((l,{inlineSize:c})=>l+c,0),i.value=v.reduce((l,{blockSize:c})=>l+c,0)}else u.value=a.contentRect.width,i.value=a.contentRect.height},n),P(()=>I(e),a=>{u.value=a?t.width:0,i.value=a?t.height:0}),{width:u,height:i}}function En(e,t,n={}){const{root:r,rootMargin:o="0px",threshold:s=.1,window:u=H}=n,i=ve(()=>u&&"IntersectionObserver"in u);let a=j;const f=i.value?P(()=>({el:I(e),root:I(r)}),({el:l,root:c})=>{if(a(),!l)return;const d=new IntersectionObserver(t,{root:c,rootMargin:o,threshold:s});d.observe(l),a=()=>{d.disconnect(),a=j}},{immediate:!0,flush:"post"}):j,v=()=>{a(),f()};return K(v),{isSupported:i,stop:v}}var Ce=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Tt=(e,t)=>{var n={};for(var r in e)Et.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ce)for(var r of Ce(e))t.indexOf(r)<0&&Pt.call(e,r)&&(n[r]=e[r]);return n};function Pn(e,t,n={}){const r=n,{window:o=H}=r,s=Tt(r,["window"]);let u;const i=ve(()=>o&&"MutationObserver"in o),a=()=>{u&&(u.disconnect(),u=void 0)},f=P(()=>I(e),l=>{a(),i.value&&o&&l&&(u=new MutationObserver(t),u.observe(l,s))},{immediate:!0}),v=()=>{a(),f()};return K(v),{isSupported:i,stop:v}}var Me;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Me||(Me={}));var Ct=Object.defineProperty,We=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,$e=(e,t,n)=>t in e?Ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$t=(e,t)=>{for(var n in t||(t={}))Mt.call(t,n)&&$e(e,n,t[n]);if(We)for(var n of We(t))Wt.call(t,n)&&$e(e,n,t[n]);return e};const At={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]};$t({linear:ht},At);function Tn(e,t,n,r={}){var o,s,u;const{clone:i=!1,passive:a=!1,eventName:f,deep:v=!1,defaultValue:l}=r,c=U(),d=n||(c==null?void 0:c.emit)||((o=c==null?void 0:c.$emit)==null?void 0:o.bind(c))||((u=(s=c==null?void 0:c.proxy)==null?void 0:s.$emit)==null?void 0:u.bind(c==null?void 0:c.proxy));let p=f;t||(t="modelValue"),p=f||p||`update:${t.toString()}`;const g=y=>i?ue(i)?i(y):Ot(y):y,h=()=>ft(e[t])?g(e[t]):l;if(a){const y=h(),O=b(y);return P(()=>e[t],x=>O.value=g(x)),P(O,x=>{(x!==e[t]||v)&&d(p,x)},{deep:v}),O}else return E({get(){return h()},set(y){d(p,y)}})}function Cn({window:e=H}={}){if(!e)return b(!1);const t=b(e.document.hasFocus());return F(e,"blur",()=>{t.value=!1}),F(e,"focus",()=>{t.value=!0}),t}function Mn(e={}){const{window:t=H,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:s=!0}=e,u=b(n),i=b(r),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(),de(a),F("resize",a,{passive:!0}),o&&F("orientationchange",a,{passive:!0}),{width:u,height:i}}function oe(e){return Ie()?(De(e),!0):!1}const ie=new WeakMap,Rt=(...e)=>{var t;const n=e[0],r=(t=U())==null?void 0:t.proxy;if(r==null&&!ze())throw new Error("injectLocal must be called in setup");return r&&ie.has(r)&&n in ie.get(r)?ie.get(r)[n]:rt(...e)},pe=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const It=e=>e!=null,Dt=Object.prototype.toString,Lt=e=>Dt.call(e)==="[object Object]",zt=()=>{};function me(...e){if(e.length!==1)return tt(...e);const t=e[0];return typeof t=="function"?ne(fe(()=>({get:t,set:zt}))):b(t)}function Ft(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const Ne=e=>e();function kt(e=Ne,t={}){const{initialState:n="active"}=t,r=me(n==="active");function o(){r.value=!1}function s(){r.value=!0}const u=(...i)=>{r.value&&e(...i)};return{isActive:ne(r),pause:o,resume:s,eventFilter:u}}function Ae(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function J(e){return Array.isArray(e)?e:[e]}function Nt(e){return U()}function Vt(e,t,n={}){const s=n,{eventFilter:r=Ne}=s,o=G(s,["eventFilter"]);return P(e,Ft(r,t),o)}function Bt(e,t,n={}){const l=n,{eventFilter:r,initialState:o="active"}=l,s=G(l,["eventFilter","initialState"]),{eventFilter:u,pause:i,resume:a,isActive:f}=kt(r,{initialState:o});return{stop:Vt(e,t,Q(V({},s),{eventFilter:u})),pause:i,resume:a,isActive:f}}function Ht(e,t={}){if(!te(e))return nt(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=fe(()=>({get(){return e.value[r]},set(o){var s;if((s=_(t.replaceRef))!=null?s:!0)if(Array.isArray(e.value)){const i=[...e.value];i[r]=o,e.value=i}else{const i=Q(V({},e.value),{[r]:o});Object.setPrototypeOf(i,Object.getPrototypeOf(e.value)),e.value=i}else e.value[r]=o}}));return n}function se(e,t=!0,n){Nt()?le(e,n):t?e():ce(e)}function jt(e,t,n){return P(e,t,Q(V({},n),{immediate:!0}))}const N=pe?window:void 0,Xt=pe?window.document:void 0;function B(e){var t;const n=_(e);return(t=n==null?void 0:n.$el)!=null?t:n}function z(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},r=(i,a,f,v)=>(i.addEventListener(a,f,v),()=>i.removeEventListener(a,f,v)),o=E(()=>{const i=J(_(e[0])).filter(a=>a!=null);return i.every(a=>typeof a!="string")?i:void 0}),s=jt(()=>{var i,a;return[(a=(i=o.value)==null?void 0:i.map(f=>B(f)))!=null?a:[N].filter(f=>f!=null),J(_(o.value?e[1]:e[0])),J(ae(o.value?e[2]:e[1])),_(o.value?e[3]:e[2])]},([i,a,f,v])=>{if(n(),!(i!=null&&i.length)||!(a!=null&&a.length)||!(f!=null&&f.length))return;const l=Lt(v)?V({},v):v;t.push(...i.flatMap(c=>a.flatMap(d=>f.map(p=>r(c,d,p,l)))))},{flush:"post"}),u=()=>{s(),n()};return oe(n),u}function Yt(){const e=M(!1),t=U();return t&&le(()=>{e.value=!0},t),e}function he(e){const t=Yt();return E(()=>(t.value,!!e()))}function Ve(e,t,n={}){const c=n,{window:r=N}=c,o=G(c,["window"]);let s;const u=he(()=>r&&"MutationObserver"in r),i=()=>{s&&(s.disconnect(),s=void 0)},a=E(()=>{const d=_(e),p=J(d).map(B).filter(It);return new Set(p)}),f=P(a,d=>{i(),u.value&&d.size&&(s=new MutationObserver(t),d.forEach(p=>s.observe(p,o)))},{immediate:!0,flush:"post"}),v=()=>s==null?void 0:s.takeRecords(),l=()=>{f(),i()};return oe(l),{isSupported:u,stop:l,takeRecords:v}}const Qt=Symbol("vueuse-ssr-width");function Gt(){const e=ze()?Rt(Qt,null):null;return typeof e=="number"?e:void 0}function Jt(e,t={}){const{window:n=N,ssrWidth:r=Gt()}=t,o=he(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),s=M(typeof r=="number"),u=M(),i=M(!1),a=f=>{i.value=f.matches};return Le(()=>{if(s.value){s.value=!o.value;const f=_(e).split(",");i.value=f.some(v=>{const l=v.includes("not all"),c=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let p=!!(c||d);return c&&p&&(p=r>=Ae(c[1])),d&&p&&(p=r<=Ae(d[1])),l?!p:p});return}o.value&&(u.value=n.matchMedia(_(e)),i.value=u.value.matches)}),z(u,"change",a,{passive:!0}),E(()=>i.value)}const Z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ee="__vueuse_ssr_handlers__",Ut=Kt();function Kt(){return ee in Z||(Z[ee]=Z[ee]||{}),Z[ee]}function Be(e,t){return Ut[e]||t}function qt(e){return Jt("(prefers-color-scheme: dark)",e)}function Zt(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 en={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()}},Re="vueuse-storage";function tn(e,t,n,r={}){var o;const{flush:s="pre",deep:u=!0,listenToStorageChanges:i=!0,writeDefaults:a=!0,mergeDefaults:f=!1,shallow:v,window:l=N,eventFilter:c,onError:d=w=>{console.error(w)},initOnMounted:p}=r,g=(v?M:b)(typeof t=="function"?t():t),h=E(()=>_(e));if(!n)try{n=Be("getDefaultStorage",()=>{var w;return(w=N)==null?void 0:w.localStorage})()}catch(w){d(w)}if(!n)return g;const y=_(t),O=Zt(y),x=(o=r.serializer)!=null?o:en[O],{pause:$,resume:W}=Bt(g,w=>A(w),{flush:s,deep:u,eventFilter:c});P(h,()=>L(),{flush:s});let D=!1;const m=w=>{p&&!D||L(w)},S=w=>{p&&!D||Y(w)};l&&i&&(n instanceof Storage?z(l,"storage",m,{passive:!0}):z(l,Re,S)),p?se(()=>{D=!0,L()}):L();function T(w,R){if(l){const k={key:h.value,oldValue:w,newValue:R,storageArea:n};l.dispatchEvent(n instanceof Storage?new StorageEvent("storage",k):new CustomEvent(Re,{detail:k}))}}function A(w){try{const R=n.getItem(h.value);if(w==null)T(R,null),n.removeItem(h.value);else{const k=x.write(w);R!==k&&(n.setItem(h.value,k),T(R,k))}}catch(R){d(R)}}function C(w){const R=w?w.newValue:n.getItem(h.value);if(R==null)return a&&y!=null&&n.setItem(h.value,x.write(y)),y;if(!w&&f){const k=x.read(R);return typeof f=="function"?f(k,y):O==="object"&&!Array.isArray(k)?V(V({},y),k):k}else return typeof R!="string"?R:x.read(R)}function L(w){if(!(w&&w.storageArea!==n)){if(w&&w.key==null){g.value=y;return}if(!(w&&w.key!==h.value)){$();try{const R=x.write(g.value);(w===void 0||(w==null?void 0:w.newValue)!==R)&&(g.value=C(w))}catch(R){d(R)}finally{w?ce(W):W()}}}}function Y(w){L(w.detail)}return g}const nn="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function rn(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=N,storage:s,storageKey:u="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:a,emitAuto:f,disableTransition:v=!0}=e,l=V({auto:"",light:"light",dark:"dark"},e.modes||{}),c=qt({window:o}),d=E(()=>c.value?"dark":"light"),p=a||(u==null?me(r):tn(u,r,s,{window:o,listenToStorageChanges:i})),g=E(()=>p.value==="auto"?d.value:p.value),h=Be("updateHTMLAttrs",($,W,D)=>{const m=typeof $=="string"?o==null?void 0:o.document.querySelector($):B($);if(!m)return;const S=new Set,T=new Set;let A=null;if(W==="class"){const L=D.split(/\s/g);Object.values(l).flatMap(Y=>(Y||"").split(/\s/g)).filter(Boolean).forEach(Y=>{L.includes(Y)?S.add(Y):T.add(Y)})}else A={key:W,value:D};if(S.size===0&&T.size===0&&A===null)return;let C;v&&(C=o.document.createElement("style"),C.appendChild(document.createTextNode(nn)),o.document.head.appendChild(C));for(const L of S)m.classList.add(L);for(const L of T)m.classList.remove(L);A&&m.setAttribute(A.key,A.value),v&&(o.getComputedStyle(C).opacity,document.head.removeChild(C))});function y($){var W;h(t,n,(W=l[$])!=null?W:$)}function O($){e.onChanged?e.onChanged($,y):y($)}P(g,O,{flush:"post",immediate:!0}),se(()=>O(g.value));const x=E({get(){return f?p.value:g.value},set($){p.value=$}});return Object.assign(x,{store:p,system:d,state:g})}function Wn(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=rn(Q(V({},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}})),o=E(()=>r.system.value);return E({get(){return r.value==="dark"},set(u){const i=u?"dark":"light";o.value===i?r.value="auto":r.value=i}})}function $n(e,t={}){var n;const{pointerTypes:r,preventDefault:o,stopPropagation:s,exact:u,onMove:i,onEnd:a,onStart:f,initialValue:v,axis:l="both",draggingElement:c=N,containerElement:d,handle:p=e,buttons:g=[0]}=t,h=b((n=_(v))!=null?n:{x:0,y:0}),y=b(),O=m=>r?r.includes(m.pointerType):!0,x=m=>{_(o)&&m.preventDefault(),_(s)&&m.stopPropagation()},$=m=>{var S;if(!_(g).includes(m.button)||_(t.disabled)||!O(m)||_(u)&&m.target!==_(e))return;const T=_(d),A=(S=T==null?void 0:T.getBoundingClientRect)==null?void 0:S.call(T),C=_(e).getBoundingClientRect(),L={x:m.clientX-(T?C.left-A.left+T.scrollLeft:C.left),y:m.clientY-(T?C.top-A.top+T.scrollTop:C.top)};(f==null?void 0:f(L,m))!==!1&&(y.value=L,x(m))},W=m=>{if(_(t.disabled)||!O(m)||!y.value)return;const S=_(d),T=_(e).getBoundingClientRect();let{x:A,y:C}=h.value;(l==="x"||l==="both")&&(A=m.clientX-y.value.x,S&&(A=Math.min(Math.max(0,A),S.scrollWidth-T.width))),(l==="y"||l==="both")&&(C=m.clientY-y.value.y,S&&(C=Math.min(Math.max(0,C),S.scrollHeight-T.height))),h.value={x:A,y:C},i==null||i(h.value,m),x(m)},D=m=>{_(t.disabled)||!O(m)||y.value&&(y.value=void 0,a==null||a(h.value,m),x(m))};if(pe){const m=()=>{var S;return{capture:(S=t.capture)!=null?S:!0,passive:!_(o)}};z(p,"pointerdown",$,m),z(c,"pointermove",W,m),z(c,"pointerup",D,m)}return Q(V({},Ht(h)),{position:h,isDragging:E(()=>!!y.value),style:E(()=>`left:${h.value.x}px;top:${h.value.y}px;`)})}function He(e,t,n={}){const l=n,{window:r=N}=l,o=G(l,["window"]);let s;const u=he(()=>r&&"ResizeObserver"in r),i=()=>{s&&(s.disconnect(),s=void 0)},a=E(()=>{const c=_(e);return Array.isArray(c)?c.map(d=>B(d)):[B(c)]}),f=P(a,c=>{if(i(),u.value&&r){s=new ResizeObserver(t);for(const d of c)d&&s.observe(d,o)}},{immediate:!0,flush:"post"}),v=()=>{i(),f()};return oe(v),{isSupported:u,stop:v}}function on(e,t={width:0,height:0},n={}){const{window:r=N,box:o="content-box"}=n,s=E(()=>{var l,c;return(c=(l=B(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),u=M(t.width),i=M(t.height),{stop:a}=He(e,([l])=>{const c=o==="border-box"?l.borderBoxSize:o==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(r&&s.value){const d=B(e);if(d){const p=d.getBoundingClientRect();u.value=p.width,i.value=p.height}}else if(c){const d=J(c);u.value=d.reduce((p,{inlineSize:g})=>p+g,0),i.value=d.reduce((p,{blockSize:g})=>p+g,0)}else u.value=l.contentRect.width,i.value=l.contentRect.height},n);se(()=>{const l=B(e);l&&(u.value="offsetWidth"in l?l.offsetWidth:t.width,i.value="offsetHeight"in l?l.offsetHeight:t.height)});const f=P(()=>B(e),l=>{u.value=l?t.width:0,i.value=l?t.height:0});function v(){a(),f()}return{width:u,height:i,stop:v}}const sn={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 un(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:s=N,target:u=s,scroll:i=!0,eventFilter:a}=e;let f=null,v=0,l=0;const c=M(o.x),d=M(o.y),p=M(null),g=typeof t=="function"?t:sn[t],h=m=>{const S=g(m);f=m,S&&([c.value,d.value]=S,p.value="mouse"),s&&(v=s.scrollX,l=s.scrollY)},y=m=>{if(m.touches.length>0){const S=g(m.touches[0]);S&&([c.value,d.value]=S,p.value="touch")}},O=()=>{if(!f||!s)return;const m=g(f);f instanceof MouseEvent&&m&&(c.value=m[0]+s.scrollX-v,d.value=m[1]+s.scrollY-l)},x=()=>{c.value=o.x,d.value=o.y},$=a?m=>a(()=>h(m),{}):m=>h(m),W=a?m=>a(()=>y(m),{}):m=>y(m),D=a?()=>a(()=>O(),{}):()=>O();if(u){const m={passive:!0};z(u,["mousemove","dragover"],$,m),n&&t!=="movement"&&(z(u,["touchstart","touchmove"],W,m),r&&z(u,"touchend",x,m)),i&&t==="page"&&z(s,"scroll",D,m)}return{x:c,y:d,sourceType:p}}function An(e,t={}){const{windowResize:n=!0,windowScroll:r=!0,handleOutside:o=!0,window:s=N}=t,u=t.type||"page",{x:i,y:a,sourceType:f}=un(t),v=M(e!=null?e:s==null?void 0:s.document.body),l=M(0),c=M(0),d=M(0),p=M(0),g=M(0),h=M(0),y=M(!0);function O(){if(!s)return;const W=B(v);if(!W||!(W instanceof Element))return;const{left:D,top:m,width:S,height:T}=W.getBoundingClientRect();d.value=D+(u==="page"?s.pageXOffset:0),p.value=m+(u==="page"?s.pageYOffset:0),g.value=T,h.value=S;const A=i.value-d.value,C=a.value-p.value;y.value=S===0||T===0||A<0||C<0||A>S||C>T,(o||!y.value)&&(l.value=A,c.value=C)}const x=[];function $(){x.forEach(W=>W()),x.length=0}if(se(()=>{O()}),s){const{stop:W}=He(v,O),{stop:D}=Ve(v,O,{attributeFilter:["style","class"]}),m=P([v,i,a],O);x.push(W,D,m),z(document,"mouseleave",()=>y.value=!0,{passive:!0}),r&&x.push(z("scroll",O,{capture:!0,passive:!0})),n&&x.push(z("resize",O,{passive:!0}))}return{x:i,y:a,sourceType:f,elementX:l,elementY:c,elementPositionX:d,elementPositionY:p,elementHeight:g,elementWidth:h,isOutside:y,stop:$}}function Rn(e=null,t={}){var n,r,o;const{document:s=Xt,restoreOnUnmount:u=l=>l}=t,i=(n=s==null?void 0:s.title)!=null?n:"",a=me((r=e!=null?e:s==null?void 0:s.title)!=null?r:null),f=!!(e&&typeof e=="function");function v(l){if(!("titleTemplate"in t))return l;const c=t.titleTemplate||"%s";return typeof c=="function"?c(l):_(c).replace(/%s/g,l)}return P(a,(l,c)=>{l!==c&&s&&(s.title=v(l!=null?l:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!f&&Ve((o=s.head)==null?void 0:o.querySelector("title"),()=>{s&&s.title!==a.value&&(a.value=v(s.title))},{childList:!0}),oe(()=>{if(u){const l=u(i,a.value||"");l!=null&&s&&(s.title=l)}}),a}function In(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:s,currentList:u,containerRef:i}="itemHeight"in t?cn(t,e):ln(t,e);return{list:u,scrollTo:o,containerProps:{ref:i,onScroll:()=>{s()},style:n},wrapperProps:r}}function je(e){const t=M(null),n=on(t),r=b([]),o=M(e);return{state:b({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function Xe(e,t,n){return r=>{if(typeof n=="number")return Math.ceil(r/n);const{start:o=0}=e.value;let s=0,u=0;for(let i=o;i<t.value.length;i++){const a=n(i);if(s+=a,u=i,s>r)break}return u-o}}function Ye(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let r=0,o=0;for(let s=0;s<e.value.length;s++){const u=t(s);if(r+=u,r>=n){o=s;break}}return o+1}}function Qe(e,t,n,r,{containerRef:o,state:s,currentList:u,source:i}){return()=>{const a=o.value;if(a){const f=n(e==="vertical"?a.scrollTop:a.scrollLeft),v=r(e==="vertical"?a.clientHeight:a.clientWidth),l=f-t,c=f+v+t;s.value={start:l<0?0:l,end:c>i.value.length?i.value.length:c},u.value=i.value.slice(s.value.start,s.value.end).map((d,p)=>({data:d,index:p+s.value.start}))}}}function Ge(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((o,s,u)=>o+e(u),0)}function Je(e,t,n,r){P([e.width,e.height,()=>_(t),n],()=>{r()})}function Ue(e,t){return E(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,r,o)=>n+e(o),0))}const an={horizontal:"scrollLeft",vertical:"scrollTop"};function Ke(e,t,n,r){return o=>{r.value&&(r.value[an[e]]=n(o),t())}}function ln(e,t){const n=je(t),{state:r,source:o,currentList:s,size:u,containerRef:i}=n,a={overflowX:"auto"},{itemWidth:f,overscan:v=5}=e,l=Xe(r,o,f),c=Ye(o,f),d=Qe("horizontal",v,c,l,n),p=Ge(f,o),g=E(()=>p(r.value.start)),h=Ue(f,o);Je(u,t,i,d);const y=Ke("horizontal",d,p,i),O=E(()=>({style:{height:"100%",width:`${h.value-g.value}px`,marginLeft:`${g.value}px`,display:"flex"}}));return{scrollTo:y,calculateRange:d,wrapperProps:O,containerStyle:a,currentList:s,containerRef:i}}function cn(e,t){const n=je(t),{state:r,source:o,currentList:s,size:u,containerRef:i}=n,a={overflowY:"auto"},{itemHeight:f,overscan:v=5}=e,l=Xe(r,o,f),c=Ye(o,f),d=Qe("vertical",v,c,l,n),p=Ge(f,o),g=E(()=>p(r.value.start)),h=Ue(f,o);Je(u,t,i,d);const y=Ke("vertical",d,p,i),O=E(()=>({style:{width:"100%",height:`${h.value-g.value}px`,marginTop:`${g.value}px`}}));return{calculateRange:d,scrollTo:y,containerStyle:a,wrapperProps:O,currentList:s,containerRef:i}}export{z as A,In as B,on as C,Wn as D,Sn as a,F as b,vn as c,ke as d,I as e,gn as f,On as g,yn as h,re as i,pn as j,hn as k,En as l,vt as m,Pn as n,wn as o,_n as p,Cn as q,mn as r,Tn as s,K as t,Mn as u,bn as v,xn as w,Rn as x,$n as y,An as z};
|