wevu 6.6.3 → 6.6.5
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/index.d.mts +7 -2
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -396,6 +396,8 @@ interface InternalRuntimeStateFields {
|
|
|
396
396
|
$wevu?: RuntimeInstance<any, any, any>;
|
|
397
397
|
__wevuHooks?: Record<string, any>;
|
|
398
398
|
__wevuExposed?: Record<string, any>;
|
|
399
|
+
__wevuAttrs?: Record<string, any>;
|
|
400
|
+
__wevuPropKeys?: string[];
|
|
399
401
|
__wevuTemplateRefs?: unknown[];
|
|
400
402
|
__wevuTemplateRefMap?: Map<string, Ref<any>>;
|
|
401
403
|
__wevuTemplateRefsPending?: boolean;
|
|
@@ -490,11 +492,11 @@ interface SetupContext<D extends object, C extends ComputedDefinitions, M extend
|
|
|
490
492
|
*/
|
|
491
493
|
expose: (exposed: Record<string, any>) => void;
|
|
492
494
|
/**
|
|
493
|
-
* Vue 3 对齐:attrs
|
|
495
|
+
* Vue 3 对齐:attrs(小程序场景为非 props 属性集合)
|
|
494
496
|
*/
|
|
495
497
|
attrs: Record<string, any>;
|
|
496
498
|
/**
|
|
497
|
-
* Vue 3 对齐:slots
|
|
499
|
+
* Vue 3 对齐:slots(小程序场景为只读空对象兜底,不提供可调用 slot 函数)
|
|
498
500
|
*/
|
|
499
501
|
slots: Record<string, any>;
|
|
500
502
|
}
|
|
@@ -1219,6 +1221,9 @@ declare function defineOptions<D extends object = Record<string, any>, C extends
|
|
|
1219
1221
|
* defineSlots 声明 slots 类型。
|
|
1220
1222
|
* 用于限定插槽名称与插槽参数结构。
|
|
1221
1223
|
*
|
|
1224
|
+
* 注意:在小程序运行时,`useSlots()` 当前仅返回空对象兜底;
|
|
1225
|
+
* 因此 `defineSlots()` 主要提供类型约束,不等价于 Web Vue 的运行时 slot 函数语义。
|
|
1226
|
+
*
|
|
1222
1227
|
* @example
|
|
1223
1228
|
* ```ts
|
|
1224
1229
|
* const slots = defineSlots<{
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=Promise.resolve(),t=new Set;let n=!1,r=!1;function i(){r=!1,n=!0;try{t.forEach(e=>e())}finally{t.clear(),n=!1}}function a(a){t.add(a),!n&&!r&&(r=!0,e.then(i))}function o(t){return t?e.then(t):e}function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(e,t){if(s(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(s(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function l(e){var t=c(e,`string`);return s(t)==`symbol`?t:t+``}function u(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=new WeakMap;let f=null;const p=[];let m=0;const h=new Set;function g(){m++}function _(){for(;h.size;){let e=Array.from(h);h.clear();for(let t of e)t()}}function v(){m!==0&&(m--,m===0&&_())}function y(e){g();try{return e()}finally{v()}}function b(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function x(e){var t;e.active&&(e.active=!1,b(e),(t=e.onStop)==null||t.call(e))}let S;var ee=class{constructor(e=!1){if(this.detached=e,u(this,`active`,!0),u(this,`effects`,[]),u(this,`cleanups`,[]),u(this,`parent`,void 0),u(this,`scopes`,void 0),!e&&S){var t;this.parent=S,((t=S).scopes||(t.scopes=[])).push(this)}}run(e){if(!this.active)return;let t=S;S=this;try{return e()}finally{S=t}}stop(){var e;if(this.active){this.active=!1;for(let e of this.effects)x(e);this.effects.length=0;for(let e of this.cleanups)e();if(this.cleanups.length=0,this.scopes){for(let e of this.scopes)e.stop();this.scopes.length=0}if((e=this.parent)!=null&&e.scopes){let e=this.parent.scopes.indexOf(this);e>=0&&this.parent.scopes.splice(e,1)}this.parent=void 0}}};function C(e=!1){return new ee(e)}function w(){return S}function T(e){S!=null&&S.active&&S.cleanups.push(e)}function E(e){S!=null&&S.active&&S.effects.push(e)}function D(e,t={}){let n=function(){if(!n.active||n._running)return e();b(n);try{return n._running=!0,p.push(n),f=n,e()}finally{var t;p.pop(),f=(t=p[p.length-1])==null?null:t,n._running=!1}};return n.deps=[],n.scheduler=t.scheduler,n.onStop=t.onStop,n.active=!0,n._running=!1,n._fn=e,n}function O(e,t={}){let n=D(e,t);return E(n),t.lazy||n(),n}function k(e,t){if(!f)return;let n=d.get(e);n||(n=new Map,d.set(e,n));let r=n.get(t);r||(r=new Set,n.set(t,r)),r.has(f)||(r.add(f),f.deps.push(r))}function A(e){if(e.scheduler){e.scheduler();return}if(m>0){h.add(e);return}e()}function j(e,t){let n=d.get(e);if(!n)return;let r=n.get(t);if(!r)return;let i=new Set;r.forEach(e=>{e!==f&&i.add(e)}),i.forEach(A)}function M(e){f&&(e.has(f)||(e.add(f),f.deps.push(e)))}function te(e){new Set(e).forEach(A)}const N=new Set;function ne(e){N.add(e)}function P(e){N.delete(e)}const F=new WeakMap,I=new WeakMap,L=new WeakMap,R=new WeakMap,z=new WeakSet,B=new WeakMap,re=new WeakMap;function ie(e){let t=re.get(e);return t||(t=new Set,re.set(e,t)),t}function ae(e,t){ie(e).add(t)}function V(e){var t;I.set(e,((t=I.get(e))==null?0:t)+1)}function oe(e){var t;return(t=I.get(e))==null?0:t}function se(e){let t=new Set,n=[e];for(let e=0;e<2e3&&n.length;e++){let e=n.pop(),r=R.get(e);if(r)for(let e of r.keys())t.has(e)||(t.add(e),V(e),n.push(e))}}function ce(e){let t=R.get(e);if(!t){z.delete(e),L.delete(e);return}let n,r,i=0;for(let[e,a]of t){for(let t of a){if(i+=1,i>1)break;n=e,r=t}if(i>1)break}if(i===1&&n&&r){z.delete(e),L.set(e,{parent:n,key:r});return}z.add(e),L.delete(e)}function le(e,t,n){if(typeof n!=`string`){z.add(e),L.delete(e);return}if(N.size){var r;let n=(r=F.get(t))==null?t:r;ae(n,t),ae(n,e)}let i=R.get(e);i||(i=new Map,R.set(e,i));let a=i.get(t);a||(a=new Set,i.set(t,a)),a.add(n),ce(e)}function ue(e,t,n){let r=R.get(e);if(!r)return;let i=r.get(t);i&&(i.delete(n),i.size||r.delete(t),r.size||R.delete(e),ce(e))}function de(e,t){if(t===e)return[];if(z.has(t))return;let n=[],r=t;for(let t=0;t<2e3;t++){if(r===e)return n.reverse();if(z.has(r))return;let t=L.get(r);if(!t||typeof t.key!=`string`)return;n.push(t.key),r=t.parent}}let H=function(e){return e.IS_REACTIVE=`__r_isReactive`,e.RAW=`__r_raw`,e.SKIP=`__r_skip`,e}({});function U(e){return typeof e==`object`&&!!e}const W=Symbol(`wevu.version`);function fe(e){if(!e)return!1;let t=e.charCodeAt(0);if(t<48||t>57)return!1;let n=Number(e);return Number.isInteger(n)&&n>=0&&String(n)===e}function G(e){var t;return(t=e==null?void 0:e[H.RAW])==null?e:t}const K=new WeakMap,pe=new WeakMap,me=new WeakMap;function he(e,t){let n=G(e);B.set(n,``),ae(n,n);let r=t==null?void 0:t.shouldIncludeTopKey,i=typeof(t==null?void 0:t.maxDepth)==`number`?Math.max(0,Math.floor(t.maxDepth)):1/0,a=typeof(t==null?void 0:t.maxKeys)==`number`?Math.max(0,Math.floor(t.maxKeys)):1/0,o=new WeakSet,s=[{current:n,path:``,depth:0}],c=0;for(;s.length;){let e=s.pop();if(o.has(e.current)||(o.add(e.current),B.set(e.current,e.path),ae(n,e.current),c+=1,c>=a)||e.depth>=i||Array.isArray(e.current))continue;let t=Object.entries(e.current);for(let[i,a]of t){if(e.path===``&&r&&!r(i)||!U(a)||a[H.SKIP])continue;let t=G(a);if(F.has(t)||F.set(t,n),le(t,e.current,i),!z.has(t)){let n=e.path?`${e.path}.${i}`:i;B.set(t,n)}ae(n,t),s.push({current:t,path:e.path?`${e.path}.${i}`:i,depth:e.depth+1})}}}function ge(e){let t=G(e),n=re.get(t);if(!n){B.delete(t);return}for(let e of n)L.delete(e),R.delete(e),B.delete(e),z.delete(e),F.delete(e),I.delete(e);re.delete(t)}function _e(e){k(G(e),W)}const ve={get(e,t,n){if(t===H.IS_REACTIVE)return!0;if(t===H.RAW)return e;let r=Reflect.get(e,t,n);return k(e,t),r},set(e,t,n,r){let i=Reflect.get(e,t,r),a=Reflect.set(e,t,n,r);return Object.is(i,n)||(j(e,t),j(e,W),V(e)),a},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return n&&r&&(j(e,t),j(e,W),V(e)),r},ownKeys(e){return k(e,Symbol.iterator),k(e,W),Reflect.ownKeys(e)}};function ye(e){if(!U(e))return e;let t=me.get(e);if(t)return t;if(e[H.IS_REACTIVE])return e;let n=new Proxy(e,ve);return me.set(e,n),pe.set(n,e),I.has(e)||I.set(e,0),n}function be(e){let t=G(e);return me.has(t)}function xe(e){return oe(G(e))}function Se(e,t,n){var r;if(!N.size||typeof t!=`string`||t.startsWith(`__r_`))return;let i=(r=F.get(e))==null?e:r,a=Array.isArray(e)&&(t===`length`||fe(t))?`array`:`property`,o=de(i,e);if(!o){let r=new Set,o=R.get(e);if(o)for(let[e,t]of o){var s;let n=B.get(e),a=n?n.split(`.`,1)[0]:void 0,o=a||(s=de(i,e))==null?void 0:s[0];for(let e of t){var c;typeof e==`string`&&r.add((c=a==null?o:a)==null?e:c)}}else r.add(t);for(let e of N)e({root:i,kind:a,op:n,path:void 0,fallbackTopKeys:r.size?Array.from(r):void 0});return}let l=o.findIndex(e=>fe(e));if(l!==-1){let e=o.slice(0,l).join(`.`)||void 0;for(let t of N)t({root:i,kind:`array`,op:n,path:e});return}let u=o.length?o.join(`.`):``,d=a===`array`?u||void 0:u?`${u}.${t}`:t;for(let e of N)e({root:i,kind:a,op:n,path:d})}const Ce={get(e,t,n){if(t===H.IS_REACTIVE)return!0;if(t===H.RAW)return e;let r=Reflect.get(e,t,n);if(k(e,t),U(r)){var i,a;if(r[H.SKIP])return r;let n=(i=F.get(e))==null?e:i,o=(a=r==null?void 0:r[H.RAW])==null?r:a;F.has(o)||F.set(o,n),le(o,e,t);let s=B.get(e);if(N.size&&typeof t==`string`&&s!=null&&!z.has(o)){let e=s?`${s}.${t}`:t;B.set(o,e)}return we(r)}return r},set(e,t,n,r){let i=Array.isArray(e),a=i?e.length:0,o=Reflect.get(e,t,r),s=Reflect.set(e,t,n,r);if(!Object.is(o,n)){var c;let r=U(o)?(c=o==null?void 0:o[H.RAW])==null?o:c:void 0;if(r&&ue(r,e,t),U(n)&&!n[H.SKIP]){var l,u;let r=(l=F.get(e))==null?e:l,i=(u=n==null?void 0:n[H.RAW])==null?n:u;F.has(i)||F.set(i,r),le(i,e,t);let a=B.get(e);if(N.size&&typeof t==`string`&&a!=null&&!z.has(i)){let e=a?`${a}.${t}`:t;B.set(i,e)}}j(e,t),i&&typeof t==`string`&&fe(t)&&Number(t)>=a&&j(e,`length`),j(e,W),V(e),se(e);let s=F.get(e);s&&s!==e&&(j(s,W),V(s)),Se(e,t,`set`)}return s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=n?e[t]:void 0,i=Reflect.deleteProperty(e,t);if(n&&i){var a;let n=U(r)?(a=r==null?void 0:r[H.RAW])==null?r:a:void 0;n&&ue(n,e,t),j(e,t),j(e,W),V(e),se(e);let i=F.get(e);i&&i!==e&&(j(i,W),V(i)),Se(e,t,`delete`)}return i},ownKeys(e){return k(e,Symbol.iterator),k(e,W),Reflect.ownKeys(e)}};function we(e){if(!U(e))return e;let t=K.get(e);if(t)return t;if(e[H.IS_REACTIVE])return e;let n=new Proxy(e,Ce);return K.set(e,n),pe.set(n,e),I.has(e)||I.set(e,0),F.has(e)||F.set(e,e),n}function q(e){return!!(e&&e[H.IS_REACTIVE])}function Te(e){return U(e)?we(e):e}function Ee(e){return U(e)&&Object.defineProperty(e,H.SKIP,{value:!0,configurable:!0,enumerable:!1,writable:!0}),e}function De(e){return U(e)&&H.SKIP in e}const Oe=`__v_isRef`;function ke(e){try{Object.defineProperty(e,Oe,{value:!0,configurable:!0})}catch(t){e[Oe]=!0}return e}function J(e){return!!(e&&typeof e==`object`&&e[Oe]===!0)}var Ae=class{constructor(e){u(this,`_value`,void 0),u(this,`_rawValue`,void 0),u(this,`dep`,void 0),ke(this),this._rawValue=e,this._value=Te(e)}get value(){return this.dep||(this.dep=new Set),M(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=Te(e),this.dep&&te(this.dep))}};function je(e){return J(e)?e:Ee(new Ae(e))}function Me(e){return J(e)?e.value:e}function Ne(e){return typeof e==`function`?e():Me(e)}var Pe=class{constructor(e,t){u(this,`_getValue`,void 0),u(this,`_setValue`,void 0),u(this,`dep`,void 0),ke(this);let n=t,r=()=>{this.dep||(this.dep=new Set),M(this.dep)},i=()=>{this.dep&&te(this.dep)},a=e=>e===void 0&&n!==void 0?n:e;if(typeof e==`function`){let t=e(r,i);this._getValue=()=>a(t.get()),this._setValue=e=>t.set(e);return}let o=e;this._getValue=()=>(r(),a(o.get())),this._setValue=e=>{o.set(e),i()}}get value(){return this._getValue()}set value(e){this._setValue(e)}};function Fe(e,t){return Ee(new Pe(e,t))}function Ie(e){let t,n;typeof e==`function`?(t=e,n=()=>{throw Error(`计算属性是只读的`)}):(t=e.get,n=e.set);let r,i=!0,a,o={get value(){return i&&(r=a(),i=!1),k(o,`value`),r},set value(e){n(e)}};return ke(o),a=O(t,{lazy:!0,scheduler:()=>{i||(i=!0,j(o,`value`))}}),o}function Le(e){if(J(e)){let t=e;return ke({get value(){return t.value},set value(e){throw Error(`无法给只读 ref 赋值`)}})}return U(e)?new Proxy(e,{set(){throw Error(`无法在只读对象上设置属性`)},deleteProperty(){throw Error(`无法在只读对象上删除属性`)},defineProperty(){throw Error(`无法在只读对象上定义属性`)},get(e,t,n){return Reflect.get(e,t,n)}}):e}function Re(e,t){return Fe((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function ze(e){return J(e)&&typeof e.value!=`function`}function Be(e){if(J(e)){let t=e.dep;if(t){te(t);return}e.value=e.value}}function Ve(e,t,n){let r=e[t];return J(r)?r:Fe((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function He(e){q(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=Ve(e,n);return t}function Ue(e,t=1/0,n=new Map){if(t<=0||!U(e))return e;if(J(e))return Ue(e.value,t-1,n),e;if(e[H.SKIP])return e;let r=n.get(e);if(r!==void 0&&r>=t)return e;n.set(e,t);let i=t-1;if(Array.isArray(e)||e instanceof Map||e instanceof Set)return e.forEach(e=>Ue(e,i,n)),e;let a=q(e)&&t!==1/0?G(e):e;for(let t in a)Ue(e[t],i,n);return e}let We=`version`;function Ge(e){We=e}function Ke(){return We}function qe(e,t,n={}){var r,i;let s,c=q(e),l=Array.isArray(e)&&!c,u=e=>{if(typeof e==`function`)return e();if(J(e))return e.value;if(q(e))return e;throw Error(`无效的 watch 源`)};if(l){let t=e;s=()=>t.map(e=>u(e))}else if(typeof e==`function`)s=e;else if(J(e))s=()=>e.value;else if(c)s=()=>e;else throw Error(`无效的 watch 源`);let d=l?e.some(e=>q(e)):c,f=(r=n.deep)==null?d:r,p=f===!0||typeof f==`number`,m=typeof f==`number`?f:f?1/0:0;if(p){let e=s;s=()=>{let t=e();return l&&Array.isArray(t)?t.map(e=>We===`version`&&q(e)?(_e(e),e):Ue(e,m)):We===`version`&&q(t)?(_e(t),t):Ue(t,m)}}let h,g=e=>{h=e},_,v,y=!1,b=0,S,ee=n.once?(e,n,r)=>{t(e,n,r),S()}:t,C=(i=n.flush)==null?`pre`:i,w=b,E=()=>k(w),D=(e,t)=>{if(w=b,n.scheduler){let r=w;n.scheduler(()=>e(r),t);return}if(C===`sync`){E();return}if(C===`post`){o(()=>a(E));return}t?E():a(E)},k=e=>{if(!v.active||y||e!==b)return;let t=v();h==null||h(),ee(t,_,g),_=t};v=O(()=>s(),{scheduler:()=>{y||D(k,!1)},lazy:!0});let A=()=>{h==null||h(),h=void 0,x(v)};return S=A,S.stop=A,S.pause=()=>{y||(y=!0,b+=1)},S.resume=()=>{!y||!v.active||(y=!1,_=v())},n.immediate?k(b):_=v(),T(S),S}function Je(e,t={}){var n;let r,i=e=>{r=e},s,c=!1,l=0,u=(n=t.flush)==null?`pre`:n,d=l,f=e=>{!s.active||c||e!==l||s()},p=()=>f(d),m=e=>{if(d=l,u===`sync`){p();return}if(u===`post`){o(()=>a(p));return}e?p():a(p)};s=O(()=>{r==null||r(),r=void 0,e(i)},{lazy:!0,scheduler:()=>{c||m(!1)}}),m(!0);let h=()=>{r==null||r(),r=void 0,x(s)},g=h;return g.stop=h,g.pause=()=>{c||(c=!0,l+=1)},g.resume=()=>{!c||!s.active||(c=!1,m(!0))},T(g),g}function Ye(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Xe(e){if(e==null)return e;if(typeof e==`object`){if(`detail`in e&&e.detail&&`value`in e.detail)return e.detail.value;if(`target`in e&&e.target&&`value`in e.target)return e.target.value}return e}function Ze(e){let t=Object.create(null),n=Object.create(null),r=new Set;return{computedRefs:t,computedSetters:n,dirtyComputedKeys:r,createTrackedComputed:(t,n,i)=>{let a,o=!0,s,c={get value(){return o&&(a=s(),o=!1),k(c,`value`),a},set value(e){if(!i)throw Error(`计算属性是只读的`);i(e)}};return ke(c),s=O(n,{lazy:!0,scheduler:()=>{o||(o=!0,e.setDataStrategy===`patch`&&e.includeComputed&&r.add(t),j(c,`value`))}}),c},computedProxy:new Proxy({},{get(e,n){if(typeof n==`string`&&t[n])return t[n].value},has(e,n){return typeof n==`string`&&!!t[n]},ownKeys(){return Object.keys(t)},getOwnPropertyDescriptor(e,n){if(typeof n==`string`&&t[n])return{configurable:!0,enumerable:!0,value:t[n].value}}})}}function Qe(e){let{state:t,computedDefs:n,methodDefs:r,appConfig:i,includeComputed:a,setDataStrategy:o}=e,s={},{computedRefs:c,computedSetters:l,dirtyComputedKeys:u,createTrackedComputed:d,computedProxy:f}=Ze({includeComputed:a,setDataStrategy:o}),p=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(n===`$state`)return t;if(n===`$computed`)return f;if(Object.prototype.hasOwnProperty.call(s,n))return s[n];if(c[n])return c[n].value;if(Object.prototype.hasOwnProperty.call(i.globalProperties,n))return i.globalProperties[n]}return Reflect.get(e,n,r)},set(e,t,n,r){return typeof t==`string`&&c[t]?(Ye(l,t,n),!0):Reflect.set(e,t,n,r)},has(e,t){return typeof t==`string`&&(c[t]||Object.prototype.hasOwnProperty.call(s,t))?!0:Reflect.has(e,t)},ownKeys(e){let t=new Set;return Reflect.ownKeys(e).forEach(e=>{t.add(e)}),Object.keys(s).forEach(e=>t.add(e)),Object.keys(c).forEach(e=>t.add(e)),Array.from(t)},getOwnPropertyDescriptor(e,t){if(Reflect.has(e,t))return Object.getOwnPropertyDescriptor(e,t);if(typeof t==`string`){if(c[t])return{configurable:!0,enumerable:!0,get(){return c[t].value},set(e){Ye(l,t,e)}};if(Object.prototype.hasOwnProperty.call(s,t))return{configurable:!0,enumerable:!1,value:s[t]}}}});return Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`){s[e]=(...e)=>t.apply(p,e);return}e===`__weapp_vite_inline_map`&&t&&typeof t==`object`&&(s[e]=t)}),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=d(e,()=>t.call(p));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(p);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(p);a?(l[e]=a,c[e]=d(e,n,a)):c[e]=d(e,n)}}),{boundMethods:s,computedRefs:c,computedSetters:l,dirtyComputedKeys:u,computedProxy:f,publicInstance:p}}const $e=Symbol(`wevu.noSetData`);function Y(e){return Object.defineProperty(e,$e,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function et(e){return typeof e==`object`&&!!e&&e[$e]===!0}function tt(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function X(e,t=new WeakMap,n){var r,i;let a=Me(e);if(typeof a==`bigint`){let e=Number(a);return Number.isSafeInteger(e)?e:a.toString()}if(typeof a==`symbol`)return a.toString();if(typeof a==`function`)return;if(typeof a!=`object`||!a)return a;if(et(a))return;let o=q(a)?G(a):a,s=(r=n==null?void 0:n._depth)==null?typeof(n==null?void 0:n.maxDepth)==`number`?Math.max(0,Math.floor(n.maxDepth)):1/0:r,c=(i=n==null?void 0:n._budget)==null?typeof(n==null?void 0:n.maxKeys)==`number`?{keys:Math.max(0,Math.floor(n.maxKeys))}:{keys:1/0}:i;if(s<=0||c.keys<=0)return o;let l=n==null?void 0:n.cache;if(l){let e=xe(o),t=l.get(o);if(t&&t.version===e)return t.value}if(t.has(o))return t.get(o);if(o instanceof Date)return o.getTime();if(o instanceof RegExp)return o.toString();if(o instanceof Map){let e=[];return t.set(o,e),o.forEach((n,r)=>{e.push([X(r,t),X(n,t)])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push(X(n,t))}),e}if(typeof ArrayBuffer<`u`){if(o instanceof ArrayBuffer)return o.byteLength;if(ArrayBuffer.isView(o)){let e=o;if(typeof e[Symbol.iterator]==`function`){let n=Array.from(e);return t.set(o,n),n.map(e=>X(e,t))}let n=Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return t.set(o,n),n}}if(o instanceof Error)return{name:o.name,message:o.message};if(Array.isArray(o)){let e=[];return t.set(o,e),o.forEach((r,i)=>{let a=X(r,t,{...n,_depth:s-1,_budget:c});e[i]=a===void 0?null:a}),l&&l.set(o,{version:xe(o),value:e}),e}let u={};return t.set(o,u),Object.keys(o).forEach(e=>{if(--c.keys,c.keys<=0)return;let r=X(o[e],t,{...n,_depth:s-1,_budget:c});r!==void 0&&(u[e]=r)}),l&&l.set(o,{version:xe(o),value:u}),u}function nt(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function rt(e,t,n){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i of r)if(!Object.prototype.hasOwnProperty.call(t,i)||!n(e[i],t[i]))return!1;return!0}function it(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?nt(e,t,it):tt(e)&&tt(t)?rt(e,t,it):!1}function at(e){return e===void 0?null:e}function ot(e,t,n,r){if(!it(e,t)){if(tt(e)&&tt(t)){for(let i of Object.keys(t)){if(!Object.prototype.hasOwnProperty.call(e,i)){r[`${n}.${i}`]=at(t[i]);continue}ot(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))Object.prototype.hasOwnProperty.call(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){nt(e,t,it)||(r[n]=at(t));return}r[n]=at(t)}}function st(e,t){let n={};for(let r of Object.keys(t))ot(e[r],t[r],r,n);for(let r of Object.keys(e))Object.prototype.hasOwnProperty.call(t,r)||(n[r]=null);return n}function ct(e){let t=Object.keys(e).sort();if(t.length<=1)return e;let n=Object.create(null),r=[];for(let i of t){for(;r.length;){let e=r[r.length-1];if(i.startsWith(e))break;r.pop()}r.length||(n[i]=e[i],r.push(`${i}.`))}return n}function lt(e,t,n){if(t<=0)return t+1;if(e===null)return 4;let r=typeof e;if(r===`string`)return 2+e.length;if(r===`number`)return Number.isFinite(e)?String(e).length:4;if(r===`boolean`)return e?4:5;if(r===`undefined`||r===`function`||r===`symbol`||r!==`object`||n.has(e))return 4;if(n.add(e),Array.isArray(e)){let r=2;for(let i=0;i<e.length;i++)if(i&&(r+=1),r+=lt(e[i],t-r,n),r>t)return r;return r}let i=2;for(let[r,a]of Object.entries(e))if(i>2&&(i+=1),i+=2+r.length+1,i+=lt(a,t-i,n),i>t)return i;return i}function ut(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=lt(e,n+1,new WeakSet);if(i>n)return{fallback:!0,estimatedBytes:i,bytes:void 0};if(i>=n*.85&&r>2)try{let t=JSON.stringify(e).length;return{fallback:t>n,estimatedBytes:i,bytes:t}}catch(e){return{fallback:!1,estimatedBytes:i,bytes:void 0}}return{fallback:!1,estimatedBytes:i,bytes:void 0}}function dt(e){let{input:t,entryMap:n,getPlainByPath:r,mergeSiblingThreshold:i,mergeSiblingSkipArray:a,mergeSiblingMaxParentBytes:o,mergeSiblingMaxInflationRatio:s}=e;if(!i)return{out:t,merged:0};let c=Object.keys(t);if(c.length<i)return{out:t,merged:0};let l=new Map,u=new Set;for(let e of c){var d;let r=n.get(e);if(!r)continue;if(t[e]===null||r.op===`delete`){let t=e.lastIndexOf(`.`);t>0&&u.add(e.slice(0,t));continue}let i=e.lastIndexOf(`.`);if(i<=0)continue;let a=e.slice(0,i),o=(d=l.get(a))==null?[]:d;o.push(e),l.set(a,o)}let f=Array.from(l.entries()).filter(([e,t])=>t.length>=i&&!u.has(e)).sort((e,t)=>t[0].split(`.`).length-e[0].split(`.`).length);if(!f.length)return{out:t,merged:0};let p=Object.create(null);Object.assign(p,t);let m=0,h=new WeakMap,g=e=>{if(e&&typeof e==`object`){let t=h.get(e);if(t!==void 0)return t;let n=lt(e,1/0,new WeakSet);return h.set(e,n),n}return lt(e,1/0,new WeakSet)},_=(e,t)=>2+e.length+1+g(t);for(let[e,t]of f){if(Object.prototype.hasOwnProperty.call(p,e))continue;let n=t.filter(e=>Object.prototype.hasOwnProperty.call(p,e));if(n.length<i)continue;let c=r(e);if(!(a&&Array.isArray(c))&&!(o!==1/0&&_(e,c)>o)){if(s!==1/0){let t=0;for(let e of n)t+=_(e,p[e]);if(_(e,c)>t*s)continue}p[e]=c;for(let e of n)delete p[e];m+=1}}return{out:p,merged:m}}function ft(e){return e===void 0?null:e}function pt(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function mt(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}if(!pt(e)||!pt(t))return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function ht(e,t,n,r){if(Object.is(e,t))return!0;if(n<=0)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!ht(e[i],t[i],n-1,r))return!1;return!0}if(!pt(e)||!pt(t))return!1;let i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let a of i)if(--r.keys,r.keys<=0||!Object.prototype.hasOwnProperty.call(t,a)||!ht(e[a],t[a],n-1,r))return!1;return!0}function gt(e,t,n,r){let i=t.split(`.`).filter(Boolean);if(!i.length)return;let a=e;for(let e=0;e<i.length-1;e++){let t=i[e];(!Object.prototype.hasOwnProperty.call(a,t)||a[t]==null||typeof a[t]!=`object`)&&(a[t]=Object.create(null)),a=a[t]}let o=i[i.length-1];if(r===`delete`)try{delete a[o]}catch(e){a[o]=null}else a[o]=n}function _t(e){let{state:t,computedRefs:n,includeComputed:r,shouldIncludeKey:i,plainCache:a,toPlainMaxDepth:o,toPlainMaxKeys:s}=e,c=new WeakMap,l=Object.create(null),u=Number.isFinite(s)?{keys:s}:void 0,d=q(t)?G(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=X(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=X(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function vt(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:a,computedCompareMaxDepth:o,computedCompareMaxKeys:s,currentAdapter:c,shouldIncludeKey:l,maxPatchKeys:u,maxPayloadBytes:d,mergeSiblingThreshold:f,mergeSiblingMaxInflationRatio:p,mergeSiblingMaxParentBytes:m,mergeSiblingSkipArray:h,elevateTopKeyThreshold:g,toPlainMaxDepth:_,toPlainMaxKeys:v,plainCache:y,pendingPatches:b,fallbackTopKeys:x,latestSnapshot:S,latestComputedSnapshot:ee,needsFullSnapshot:C,emitDebug:w,runDiffUpdate:T}=e;if(b.size>u){C.value=!0;let e=b.size;b.clear(),r.clear(),w({mode:`diff`,reason:`maxPatchKeys`,pendingPatchKeys:e,payloadKeys:0}),T(`maxPatchKeys`);return}let E=new WeakMap,D=new Map,O=Object.create(null),k=Array.from(b.entries());if(Number.isFinite(g)&&g>0){let e=new Map;for(let[t]of k){var A;let n=t.split(`.`,1)[0];e.set(n,((A=e.get(n))==null?0:A)+1)}for(let[t,n]of e)n>=g&&x.add(t)}let j=k.filter(([e])=>{for(let t of x)if(e===t||e.startsWith(`${t}.`))return!1;return!0}),M=new Map(j);b.clear();let te=e=>{let n=e.split(`.`).filter(Boolean),r=t;for(let e of n){if(r==null)return r;r=r[e]}return r},N=e=>{if(D.has(e))return D.get(e);let t=ft(X(te(e),E,{cache:y,maxDepth:_,maxKeys:v}));return D.set(e,t),t};if(x.size){for(let e of x)l(e)&&(O[e]=N(e),M.set(e,{kind:`property`,op:`set`}));x.clear()}for(let[e,t]of j){if((t.kind===`array`?`set`:t.op)===`delete`){O[e]=null;continue}O[e]=N(e)}let ne=0;if(i&&r.size){let e=Object.create(null),t=Array.from(r);r.clear(),ne=t.length;for(let r of t){if(!l(r))continue;let t=X(n[r].value,E,{cache:y,maxDepth:_,maxKeys:v}),i=ee[r];(a===`deep`?ht(i,t,o,{keys:s}):a===`shallow`?mt(i,t):Object.is(i,t))||(e[r]=ft(t),ee[r]=t)}Object.assign(O,e)}let P=ct(O),F=0;if(f){let e=dt({input:P,entryMap:M,getPlainByPath:N,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});F=e.merged,P=ct(e.out)}let I=ut(P,d),L=I.fallback;if(w({mode:L?`diff`:`patch`,reason:L?`maxPayloadBytes`:`patch`,pendingPatchKeys:j.length,payloadKeys:Object.keys(P).length,mergedSiblingParents:F||void 0,computedDirtyKeys:ne||void 0,estimatedBytes:I.estimatedBytes,bytes:I.bytes}),L){C.value=!0,b.clear(),r.clear(),T(`maxPayloadBytes`);return}if(Object.keys(P).length){for(let[e,t]of Object.entries(P)){let n=M.get(e);n?gt(S,e,t,n.kind===`array`?`set`:n.op):gt(S,e,t,`set`)}if(typeof c.setData==`function`){let e=c.setData(P);e&&typeof e.then==`function`&&e.catch(()=>{})}w({mode:`patch`,reason:`patch`,pendingPatchKeys:j.length,payloadKeys:Object.keys(P).length})}}function yt(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,setDataStrategy:a,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,debug:b,debugWhen:x,debugSampleRate:S,runTracker:ee,isMounted:C}=e,w=new WeakMap,T={},E=Object.create(null),D={value:a===`patch`},O=new Map,k=new Set,A=e=>{if(!b)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if(!(x===`fallback`&&!t)&&!(S<1&&Math.random()>S))try{b(e)}catch(e){}},j=()=>_t({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:w,toPlainMaxDepth:v,toPlainMaxKeys:y}),M=(e=`diff`)=>{let t=j(),o=st(T,t);if(T=t,D.value=!1,O.clear(),a===`patch`&&i){E=Object.create(null);for(let e of Object.keys(n))u(e)&&(E[e]=t[e]);r.clear()}if(Object.keys(o).length){if(typeof l.setData==`function`){let e=l.setData(o);e&&typeof e.then==`function`&&e.catch(()=>{})}A({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(o).length})}};return{job:e=>{C()&&(ee(),a===`patch`&&!D.value?vt({state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,plainCache:w,pendingPatches:O,fallbackTopKeys:k,latestSnapshot:T,latestComputedSnapshot:E,needsFullSnapshot:D,emitDebug:A,runDiffUpdate:M}):M(D.value?`needsFullSnapshot`:`diff`))},mutationRecorder:(e,t)=>{if(!C()||e.root!==t)return;if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)k.add(t);else D.value=!0;return}let n=e.path.split(`.`,1)[0];u(n)&&O.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>a===`patch`?j():{...T},getLatestSnapshot:()=>T}}function bt(e){var t,n,r,i,a;let o=(t=e==null?void 0:e.includeComputed)==null?!0:t,s=(n=e==null?void 0:e.strategy)==null?`diff`:n,c=typeof(e==null?void 0:e.maxPatchKeys)==`number`?Math.max(0,e.maxPatchKeys):1/0,l=typeof(e==null?void 0:e.maxPayloadBytes)==`number`?Math.max(0,e.maxPayloadBytes):1/0,u=typeof(e==null?void 0:e.mergeSiblingThreshold)==`number`?Math.max(2,Math.floor(e.mergeSiblingThreshold)):0,d=typeof(e==null?void 0:e.mergeSiblingMaxInflationRatio)==`number`?Math.max(0,e.mergeSiblingMaxInflationRatio):1.25,f=typeof(e==null?void 0:e.mergeSiblingMaxParentBytes)==`number`?Math.max(0,e.mergeSiblingMaxParentBytes):1/0,p=(r=e==null?void 0:e.mergeSiblingSkipArray)==null?!0:r,m=(i=e==null?void 0:e.computedCompare)==null?s===`patch`?`deep`:`reference`:i,h=typeof(e==null?void 0:e.computedCompareMaxDepth)==`number`?Math.max(0,Math.floor(e.computedCompareMaxDepth)):4,g=typeof(e==null?void 0:e.computedCompareMaxKeys)==`number`?Math.max(0,Math.floor(e.computedCompareMaxKeys)):200,_=e==null?void 0:e.prelinkMaxDepth,v=e==null?void 0:e.prelinkMaxKeys,y=e==null?void 0:e.debug,b=(a=e==null?void 0:e.debugWhen)==null?`fallback`:a,x=typeof(e==null?void 0:e.debugSampleRate)==`number`?Math.min(1,Math.max(0,e.debugSampleRate)):1,S=typeof(e==null?void 0:e.elevateTopKeyThreshold)==`number`?Math.max(0,Math.floor(e.elevateTopKeyThreshold)):1/0,ee=typeof(e==null?void 0:e.toPlainMaxDepth)==`number`?Math.max(0,Math.floor(e.toPlainMaxDepth)):1/0,C=typeof(e==null?void 0:e.toPlainMaxKeys)==`number`?Math.max(0,Math.floor(e.toPlainMaxKeys)):1/0,w=Array.isArray(e==null?void 0:e.pick)&&e.pick.length>0?new Set(e.pick):void 0,T=Array.isArray(e==null?void 0:e.omit)&&e.omit.length>0?new Set(e.omit):void 0;return{includeComputed:o,setDataStrategy:s,maxPatchKeys:c,maxPayloadBytes:l,mergeSiblingThreshold:u,mergeSiblingMaxInflationRatio:d,mergeSiblingMaxParentBytes:f,mergeSiblingSkipArray:p,computedCompare:m,computedCompareMaxDepth:h,computedCompareMaxKeys:g,prelinkMaxDepth:_,prelinkMaxKeys:v,debug:y,debugWhen:b,debugSampleRate:x,elevateTopKeyThreshold:S,toPlainMaxDepth:ee,toPlainMaxKeys:C,pickSet:w,omitSet:T,shouldIncludeKey:e=>!(w&&!w.has(e)||T&&T.has(e))}}function xt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function St(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Ct(e,t,n){let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];(r[n]==null||typeof r[n]!=`object`)&&(r[n]={}),r=r[n]}r[t[t.length-1]]=n}function wt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])Ye(n,a,i);else{let t=e[a];J(t)?t.value=i:e[a]=i}return}if(t[a]){Ye(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),Ct(e[a],o,i)}function Tt(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function Et(e){return Xe(e)}function Dt(e,t,n,r){return(i,a)=>{let o=St(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Tt(e,o),c=e=>{wt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:Et,formatter:e=>e,...a};return{get value(){return s()},set value(e){c(e)},update(e){c(e)},model(e){let t={...l,...e},n=`on${xt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}const Ot=`__wevuDefaultsScope`;let kt={};function At(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function jt(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=At(e.setData),i=At(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=At(e.options),o=At(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function Mt(e,t){return jt(e,t)}function Nt(e,t){return{app:jt(e.app,t.app),component:jt(e.component,t.component)}}function Pt(e){kt=Nt(kt,e)}function Ft(){kt={}}function It(e){return Mt(kt.app,e)}function Lt(e){return Mt(kt.component,e)}let Rt,zt;function Bt(){return Rt}function Vt(e){Rt=e}function Ht(){return zt}function Ut(e){zt=e}function Z(e){if(!Rt)throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return Rt}function Wt(e){return e.__wevuHooks||(e.__wevuHooks=Object.create(null)),e.__wevuHooks}function Q(e,t,n,{single:r=!1}={}){let i=Wt(e);if(r)i[t]=n;else{var a;((a=i[t])==null?i[t]=[]:a).push(n)}}function Gt(e,t){var n,r;let i=(r=(n=e).__wevuShareHookBridges)==null?n.__wevuShareHookBridges=Object.create(null):r;if(typeof i[t]==`function`)return;let a=e[t],o=function(...e){var n;let r=this.__wevuHooks,i=r==null?void 0:r[t],o=this.__wevu,s=(n=o==null?void 0:o.proxy)==null?this:n,c;if(typeof i==`function`)try{c=i.apply(s,e)}catch(e){c=void 0}else if(Array.isArray(i))for(let t of i)try{c=t.apply(s,e)}catch(e){}if(c!==void 0)return c;if(typeof a==`function`)return a.apply(this,e)};i[t]=o,e[t]=o}function Kt(e){var t;let n=typeof wx<`u`?wx:void 0;if(!n||typeof n.showShareMenu!=`function`)return;let r=(t=e.__wevuHooks)==null?{}:t,i=typeof r.onShareAppMessage==`function`,a=typeof r.onShareTimeline==`function`;if(!i&&!a)return;let o=[`shareAppMessage`];a&&o.push(`shareTimeline`);try{n.showShareMenu({withShareTicket:!0,menus:o})}catch(e){}}function $(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(Array.isArray(a))for(let e of a)try{e.apply(s,n)}catch(e){}else if(typeof a==`function`)try{a.apply(s,n)}catch(e){}}function qt(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(typeof a==`function`)try{return a.apply(s,n)}catch(e){return}if(Array.isArray(a)){let e;for(let t of a)try{e=t.apply(s,n)}catch(e){}return e}}function Jt(e){Q(Z(`onLaunch`),`onLaunch`,e)}function Yt(e){Q(Z(`onPageNotFound`),`onPageNotFound`,e)}function Xt(e){Q(Z(`onUnhandledRejection`),`onUnhandledRejection`,e)}function Zt(e){Q(Z(`onThemeChange`),`onThemeChange`,e)}function Qt(e){Q(Z(`onShow`),`onShow`,e)}function $t(e){Q(Z(`onLoad`),`onLoad`,e)}function en(e){Q(Z(`onHide`),`onHide`,e)}function tn(e){Q(Z(`onUnload`),`onUnload`,e)}function nn(e){Q(Z(`onReady`),`onReady`,e)}function rn(e){Q(Z(`onPullDownRefresh`),`onPullDownRefresh`,e)}function an(e){Q(Z(`onReachBottom`),`onReachBottom`,e)}function on(e){Q(Z(`onPageScroll`),`onPageScroll`,e)}function sn(e){Q(Z(`onRouteDone`),`onRouteDone`,e)}function cn(e){Q(Z(`onTabItemTap`),`onTabItemTap`,e)}function ln(e){Q(Z(`onResize`),`onResize`,e)}function un(e){Q(Z(`onMoved`),`onMoved`,e)}function dn(e){Q(Z(`onError`),`onError`,e)}function fn(e){Q(Z(`onSaveExitState`),`onSaveExitState`,e,{single:!0})}function pn(e){let t=Z(`onShareAppMessage`);Q(t,`onShareAppMessage`,e,{single:!0}),Gt(t,`onShareAppMessage`),Kt(t)}function mn(e){let t=Z(`onShareTimeline`);Q(t,`onShareTimeline`,e,{single:!0}),Gt(t,`onShareTimeline`),Kt(t)}function hn(e){let t=Z(`onAddToFavorites`);Q(t,`onAddToFavorites`,e,{single:!0}),Gt(t,`onAddToFavorites`)}function gn(e){Q(Z(`onMounted`),`onReady`,e)}function _n(e){Q(Z(`onUpdated`),`__wevuOnUpdated`,e)}function vn(e){Z(`onBeforeUnmount`),e()}function yn(e){Q(Z(`onUnmounted`),`onUnload`,e)}function bn(e){Z(`onBeforeMount`),e()}function xn(e){Q(Z(`onBeforeUpdate`),`__wevuOnBeforeUpdate`,e)}function Sn(e){let t=Z(`onErrorCaptured`);Q(t,`onError`,n=>e(n,t,``))}function Cn(e){Q(Z(`onActivated`),`onShow`,e)}function wn(e){Q(Z(`onDeactivated`),`onHide`,e)}function Tn(e){Z(`onServerPrefetch`)}function En(e,t){$(e,t===`before`?`__wevuOnBeforeUpdate`:`__wevuOnUpdated`)}function Dn(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function On(e,t,n,r){var i,a,o,s;let c=(i=(a=n==null||(o=n.currentTarget)==null?void 0:o.dataset)==null?n==null||(s=n.target)==null?void 0:s.dataset:a)==null?{}:i,l=c==null?void 0:c.wvInlineId;if(l&&r){let t=r[l];if(t&&typeof t.fn==`function`){let r={},i=Array.isArray(t.keys)?t.keys:[];for(let e=0;e<i.length;e+=1){let t=i[e];r[t]=c==null?void 0:c[`wvS${e}`]}let a=t.fn(e,r,n);return typeof a==`function`?a.call(e,n):a}}let u=typeof t==`string`?t:void 0;if(!u)return;let d=c==null?void 0:c.wvArgs,f=[];if(Array.isArray(d))f=d;else if(typeof d==`string`)try{f=JSON.parse(d)}catch(e){try{f=JSON.parse(Dn(d))}catch(e){f=[]}}Array.isArray(f)||(f=[]);let p=f.map(e=>e===`$event`?n:e),m=e==null?void 0:e[u];if(typeof m==`function`)return m.apply(e,p)}const kn=new Map;let An=0;function jn(){return An+=1,`wv${An}`}function Mn(e,t,n){var r;let i=(r=kn.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(i.snapshot=t,i.proxy=n,kn.set(e,i),i.subscribers.size)for(let e of i.subscribers)try{e(t,n)}catch(e){}}function Nn(e){kn.delete(e)}function Pn(e,t){var n;let r=(n=kn.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return r.subscribers.add(t),kn.set(e,r),()=>{let n=kn.get(e);n&&n.subscribers.delete(t)}}function Fn(e){var t;return(t=kn.get(e))==null?void 0:t.proxy}function In(e){var t;return(t=kn.get(e))==null?void 0:t.snapshot}function Ln(e,t,n){var r;try{t.state.__wvOwnerId=n}catch(e){}try{e.__wvOwnerId=n}catch(e){}let i=typeof t.snapshot==`function`?t.snapshot():{},a=(r=e.__wevuProps)==null?e.properties:r;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Mn(n,i,t.proxy)}function Rn(e){return e.kind===`component`}function zn(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return J(r)?r.value:r},set(e,t,n,r){let i=e[t];return J(i)&&!J(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function Bn(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=zn(t);try{Object.defineProperty(e,`__wevuExposeProxy`,{value:r,configurable:!0,enumerable:!1,writable:!1}),Object.defineProperty(e,`__wevuExposeRaw`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuExposeProxy=r,e.__wevuExposeRaw=t}return r}function Vn(e,t){if(!t||typeof t!=`object`)return e;let n=t;return Y(new Proxy(e,{get(e,t,r){return Reflect.has(e,t)?Reflect.get(e,t,r):n[t]},set(e,t,r,i){return t in n?(n[t]=r,!0):Reflect.set(e,t,r,i)},has(e,t){return Reflect.has(e,t)||t in n},ownKeys(e){return Array.from(new Set([...Reflect.ownKeys(e),...Reflect.ownKeys(n)]))},getOwnPropertyDescriptor(e,t){return Reflect.has(e,t)?Object.getOwnPropertyDescriptor(e,t):Object.getOwnPropertyDescriptor(n,t)}}))}function Hn(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n.__wevuExposed;return r&&typeof r==`object`?Bn(n,r):(t=n.__wevu)!=null&&t.proxy?n.__wevu.proxy:e}function Un(e){return e.__wevuTemplateRefMap}function Wn(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function Gn(e,t){var n,r;let i=(n=(r=e.__wevu)==null?void 0:r.proxy)==null?e:n,a;if(t.get)try{a=t.get.call(i)}catch(e){a=void 0}return a==null&&t.name&&(a=t.name),typeof a==`function`?{type:`function`,fn:a}:J(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function Kn(e){var t,n;let r=(t=(n=e.__wevu)==null?void 0:n.state)==null?e:t,i=r.$refs;if(i&&typeof i==`object`)return i;let a=Y(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function qn(e){let t=e;return t&&typeof t.createSelectorQuery==`function`?t.createSelectorQuery():typeof wx<`u`&&typeof wx.createSelectorQuery==`function`?wx.createSelectorQuery().in(t):null}function Jn(e,t,n,r,i){let a=qn(e);return a?(r(n.multiple?a.selectAll(t):a.select(t)),new Promise(e=>{a.exec(t=>{var r;let a=Array.isArray(t)?t[0]:null;if(n.index!=null&&Array.isArray(a)){var o;a=(o=a[n.index])==null?null:o}if(i){var s;i((s=a)==null?null:s)}e((r=a)==null?null:r)})})):(i&&i(null),Promise.resolve(null))}function Yn(e,t,n){return Y({selector:t,boundingClientRect:r=>Jn(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>Jn(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>Jn(e,t,n,e=>e.fields(r),i),node:r=>Jn(e,t,n,e=>e.node(),r)})}function Xn(e,t){let n=e;if(!n)return t.inFor?Y([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return Y((Array.isArray(r)?r:[]).map((n,r)=>Vn(Yn(e,t.selector,{multiple:!0,index:r}),Hn(n))))}return Y([])}let r=Yn(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?Vn(r,Hn(n.selectComponent(t.selector))):r}function Zn(e,t,n){return t.inFor?Y((Array.isArray(n)?n:[]).map((n,r)=>Yn(e,t.selector,{multiple:!0,index:r}))):n?Yn(e,t.selector,{multiple:!1}):null}function Qn(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(!e.__wevuReadyCalled){t==null||t();return}if(!e.__wevu){t==null||t();return}let r=Un(e),i=n.filter(e=>!Rn(e)),a=n.filter(e=>Rn(e)).map(t=>({binding:t,value:Xn(e,t)})),o=n=>{var i,a;let o=Kn(e),s=new Map,c=new Set,l=(i=(a=e.__wevu)==null?void 0:a.proxy)==null?e:i;n.forEach(t=>{let n=t.binding,r=t.value,i=Gn(e,n);if(i.type===`function`){n.inFor&&Array.isArray(r)?r.length?r.forEach(e=>i.fn.call(l,e)):i.fn.call(l,null):i.fn.call(l,r==null?null:r);return}if(i.type===`ref`){i.ref.value=r;return}if(i.type===`name`){var a;c.add(i.name);let e=(a=s.get(i.name))==null?{values:[],count:0,hasFor:!1}:a;e.count+=1,e.hasFor=e.hasFor||n.inFor,n.inFor?Array.isArray(r)&&e.values.push(...r):r!=null&&e.values.push(r),s.set(i.name,e)}});for(let[e,t]of s){let n;n=t.values.length?t.hasFor||t.values.length>1||t.count>1?Y(t.values):t.values[0]:t.hasFor?Y([]):null,o[e]=n,Wn(r,e,n)}for(let e of Object.keys(o))c.has(e)||delete o[e];t==null||t()};if(!i.length){o(a);return}let s=qn(e);if(!s){o(a);return}let c=[];for(let e of i)(e.inFor?s.selectAll(e.selector):s.select(e.selector)).boundingClientRect(),c.push({binding:e});s.exec(t=>{let n=c.map((n,r)=>{let i=Array.isArray(t)?t[r]:null;return{binding:n.binding,value:Zn(e,n.binding,i)}});o([...a,...n])})}function $n(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(t){var r;let n=(r=e.__wevuTemplateRefsCallbacks)==null?[]:r;n.push(t),e.__wevuTemplateRefsCallbacks||Object.defineProperty(e,`__wevuTemplateRefsCallbacks`,{value:n,configurable:!0,enumerable:!1,writable:!0})}e.__wevuTemplateRefsPending||(e.__wevuTemplateRefsPending=!0,o(()=>{e.__wevuTemplateRefsPending=!1,Qn(e,()=>{let t=e.__wevuTemplateRefsCallbacks;!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function er(e){var t,n;let r=e.__wevuTemplateRefs;if(!r||!r.length)return;let i=Kn(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=Un(e);for(let t of r){let n=Gn(e,t),r=t.inFor?Y([]):null;if(n.type===`function`){n.fn.call(a,null);continue}if(n.type===`ref`){n.ref.value=r;continue}n.type===`name`&&(o.add(n.name),i[n.name]=r,Wn(s,n.name,r))}for(let e of Object.keys(i))o.has(e)||delete i[e]}function tr(e,t,n){var r;if(typeof e!=`function`)return;let i=(r=n==null?void 0:n.runtime)==null?{methods:Object.create(null),state:{},proxy:{},watch:()=>()=>{},bindModel:()=>{}}:r;return n&&(n.runtime=i),e(t,{...n==null?{}:n,runtime:i})}function nr(e,t,n){if(typeof e==`function`)return{handler:e.bind(t.proxy),options:{}};if(typeof e==`string`){var r,i;let a=(r=(i=t.methods)==null?void 0:i[e])==null?n[e]:r;return typeof a==`function`?{handler:a.bind(t.proxy),options:{}}:void 0}if(!e||typeof e!=`object`)return;let a=nr(e.handler,t,n);if(!a)return;let o={...a.options};return e.immediate!==void 0&&(o.immediate=e.immediate),e.deep!==void 0&&(o.deep=e.deep),{handler:a.handler,options:o}}function rr(e,t){let n=t.split(`.`).map(e=>e.trim()).filter(Boolean);return n.length?()=>{let t=e;for(let e of n){if(t==null)return t;t=t[e]}return t}:()=>e}function ir(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=nr(o,e,n);if(!t)continue;let s=rr(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function ar(e,t,n,r,i){var a,o,s,c,l;if(e.__wevu)return e.__wevu;let u=jn(),d=i!=null&&i.deferSetData?(e=>{let t,n=!1,r={setData(r){if(!n){var i;t={...(i=t)==null?{}:i,...r};return}if(typeof e.setData==`function`)return e.setData(r)}};return r.__wevu_enableSetData=()=>{if(n=!0,t&&Object.keys(t).length&&typeof e.setData==`function`){let n=t;t=void 0,e.setData(n)}},r})(e):{setData(t){if(typeof e.setData==`function`)return e.setData(t)}},f,p=()=>{var t;if(!f||typeof f.snapshot!=`function`)return;let n=f.snapshot(),r=(t=e.__wevuProps)==null?e.properties:t;if(r&&typeof r==`object`)for(let[e,t]of Object.entries(r))n[e]=t;Mn(u,n,f.proxy)},m={...d,setData(t){let n=d.setData(t);return p(),$n(e),n}},h=t.mount({...m});f=h;let g=(a=h==null?void 0:h.proxy)==null?{}:a,_=(o=h==null?void 0:h.state)==null?{}:o;if(!(h!=null&&h.methods))try{h.methods=Object.create(null)}catch(e){}let v=(s=h==null?void 0:h.methods)==null?Object.create(null):s,y=(c=h==null?void 0:h.watch)==null?(()=>()=>{}):c,b=(l=h==null?void 0:h.bindModel)==null?(()=>{}):l,x={...h==null?{}:h,state:_,proxy:g,methods:v,watch:y,bindModel:b};if(Object.defineProperty(e,`$wevu`,{value:x,configurable:!0,enumerable:!1,writable:!1}),e.__wevu=x,Ln(e,x,u),n){let t=ir(x,n,e);t.length&&(e.__wevuWatchStops=t)}if(r){let t=ye({...e.properties||{}});try{Object.defineProperty(e,`__wevuProps`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuProps=t}let n={props:t,runtime:x,state:_,proxy:g,bindModel:b.bind(x),watch:y.bind(x),instance:e,emit:(t,n,r)=>{typeof e.triggerEvent==`function`&&e.triggerEvent(t,n,r)},expose:t=>{e.__wevuExposed=t},attrs:{},slots:Object.create(null)};Vt(e),Ut(n);try{let e=tr(r,t,n);e&&typeof e==`object`&&Object.keys(e).forEach(t=>{let n=e[t];typeof n==`function`?h.methods[t]=(...e)=>n.apply(h.proxy,e):h.state[t]=n})}finally{Ut(void 0),Vt(void 0)}}try{let t=h.methods;for(let n of Object.keys(t))typeof e[n]!=`function`&&(e[n]=function(...e){var t;let r=(t=this.$wevu)==null||(t=t.methods)==null?void 0:t[n];if(typeof r==`function`)return r.apply(this.$wevu.proxy,e)})}catch(e){}return h}function or(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function sr(e){let t=e.__wevu,n=e.__wvOwnerId;n&&Nn(n),er(e),t&&e.__wevuHooks&&$(e,`onUnload`,[]),e.__wevuHooks&&(e.__wevuHooks=void 0);let r=e.__wevuWatchStops;if(Array.isArray(r))for(let e of r)try{e()}catch(e){}e.__wevuWatchStops=void 0,t&&t.unmount(),delete e.__wevu,`$wevu`in e&&delete e.$wevu}function cr(e,t,n,r,i){var a;if(typeof App!=`function`)throw TypeError(`createApp 需要全局 App 构造器可用`);let o=Object.keys(t==null?{}:t),s={...i};s.globalData=(a=s.globalData)==null?{}:a,s.__weapp_vite_inline||(s.__weapp_vite_inline=function(e){var t,n,r,i,a;let o=(t=e==null||(n=e.currentTarget)==null?void 0:n.dataset)==null?e==null||(r=e.target)==null?void 0:r.dataset:t,s=o==null?void 0:o.wvHandler,c=this.__wevu;return On((i=c==null?void 0:c.proxy)==null?this:i,s,e,c==null||(a=c.methods)==null?void 0:a.__weapp_vite_inline_map)});let c=s.onLaunch;s.onLaunch=function(...t){ar(this,e,n,r),$(this,`onLaunch`,t),typeof c==`function`&&c.apply(this,t)};let l=s.onShow;s.onShow=function(...e){$(this,`onShow`,e),typeof l==`function`&&l.apply(this,e)};let u=s.onHide;s.onHide=function(...e){$(this,`onHide`,e),typeof u==`function`&&u.apply(this,e)};let d=s.onError;s.onError=function(...e){$(this,`onError`,e),typeof d==`function`&&d.apply(this,e)};let f=s.onPageNotFound;s.onPageNotFound=function(...e){$(this,`onPageNotFound`,e),typeof f==`function`&&f.apply(this,e)};let p=s.onUnhandledRejection;s.onUnhandledRejection=function(...e){$(this,`onUnhandledRejection`,e),typeof p==`function`&&p.apply(this,e)};let m=s.onThemeChange;s.onThemeChange=function(...e){$(this,`onThemeChange`,e),typeof m==`function`&&m.apply(this,e)};for(let e of o){let t=s[e];s[e]=function(...n){var r;let i=this.__wevu,a,o=i==null||(r=i.methods)==null?void 0:r[e];return o&&(a=o.apply(i.proxy,n)),typeof t==`function`?t.apply(this,n):a}}App(s)}function lr(e){let{features:t,userOnSaveExitState:n,userOnPullDownRefresh:r,userOnReachBottom:i,userOnPageScroll:a,userOnRouteDone:o,userOnTabItemTap:s,userOnResize:c,userOnShareAppMessage:l,userOnShareTimeline:u,userOnAddToFavorites:d}=e,f=typeof r==`function`||!!t.enableOnPullDownRefresh,p=typeof i==`function`||!!t.enableOnReachBottom,m=typeof a==`function`||!!t.enableOnPageScroll,h=typeof o==`function`||!!t.enableOnRouteDone,g=typeof s==`function`||!!t.enableOnTabItemTap,_=typeof c==`function`||!!t.enableOnResize,v=typeof u==`function`||!!t.enableOnShareTimeline,y=typeof l==`function`||!!t.enableOnShareAppMessage,b=typeof d==`function`||!!t.enableOnAddToFavorites,x=typeof n==`function`||!!t.enableOnSaveExitState,S=()=>{};return{enableOnPullDownRefresh:f,enableOnReachBottom:p,enableOnPageScroll:m,enableOnRouteDone:h,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:y,enableOnShareTimeline:v,enableOnAddToFavorites:b,enableOnSaveExitState:x,effectiveOnSaveExitState:typeof n==`function`?n:(()=>({data:void 0})),effectiveOnPullDownRefresh:typeof r==`function`?r:S,effectiveOnReachBottom:typeof i==`function`?i:S,effectiveOnPageScroll:typeof a==`function`?a:S,effectiveOnRouteDone:typeof o==`function`?o:S,effectiveOnTabItemTap:typeof s==`function`?s:S,effectiveOnResize:typeof c==`function`?c:S,effectiveOnShareAppMessage:typeof l==`function`?l:S,effectiveOnShareTimeline:typeof u==`function`?u:S,effectiveOnAddToFavorites:typeof d==`function`?d:(()=>({}))}}let ur=!1,dr;function fr(e){let t=e.options;if(t&&typeof t==`object`)return t;if(typeof getCurrentPages==`function`){let e=getCurrentPages(),t=Array.isArray(e)?e[e.length-1]:void 0,n=t&&typeof t==`object`?t.options:void 0;if(n&&typeof n==`object`)return n}return{}}function pr(){if(ur)return;ur=!0;let e=typeof wx<`u`?wx:void 0;if(!e||typeof e!=`object`)return;let t=e.startPullDownRefresh;typeof t==`function`&&(e.startPullDownRefresh=function(...e){let n=t.apply(this,e);return dr&&$(dr,`onPullDownRefresh`,[]),n});let n=e.pageScrollTo;typeof n==`function`&&(e.pageScrollTo=function(e,...t){let r=n.apply(this,[e,...t]);return dr&&$(dr,`onPageScroll`,[e==null?{}:e]),r})}function mr(e){let{enableOnShareAppMessage:t,enableOnShareTimeline:n}=e;if(!t&&!n)return;let r=typeof wx<`u`?wx:void 0;if(!r||typeof r.showShareMenu!=`function`)return;let i=e=>{try{r.showShareMenu(e)}catch(e){}};if(!(t||n))return;let a=[`shareAppMessage`];n&&a.push(`shareTimeline`),i({withShareTicket:!0,menus:a})}function hr(e){let{runtimeApp:t,watch:n,setup:r,userOnLoad:i,userOnUnload:a,userOnShow:o,userOnHide:s,userOnReady:c,isPage:l,enableOnSaveExitState:u,enableOnPullDownRefresh:d,enableOnReachBottom:f,enableOnPageScroll:p,enableOnRouteDone:m,enableOnTabItemTap:h,enableOnResize:g,enableOnShareAppMessage:_,enableOnShareTimeline:v,enableOnAddToFavorites:y,effectiveOnSaveExitState:b,effectiveOnPullDownRefresh:x,effectiveOnReachBottom:S,effectiveOnPageScroll:ee,effectiveOnRouteDone:C,effectiveOnTabItemTap:w,effectiveOnResize:T,effectiveOnShareAppMessage:E,effectiveOnShareTimeline:D,effectiveOnAddToFavorites:O,hasHook:k}=e,A={onLoad(...e){if(!this.__wevuOnLoadCalled&&(this.__wevuOnLoadCalled=!0,ar(this,t,n,r),or(this),l&&mr({enableOnShareAppMessage:_,enableOnShareTimeline:v}),$(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&dr===this&&(dr=void 0),sr(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(pr(),dr=this,this.__wevuOnLoadCalled||A.onLoad.call(this,fr(this)),mr({enableOnShareAppMessage:_,enableOnShareTimeline:v}),this.__wevuRouteDoneCalled=!1),$(this,`onShow`,e),typeof o==`function`)return o.apply(this,e);if(l&&m&&this.__wevuReadyCalled&&!this.__wevuRouteDoneCalled){var t;return(t=A.onRouteDone)==null?void 0:t.call(this)}},onHide(...e){if(l&&dr===this&&(dr=void 0),$(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this.__wevuOnLoadCalled||A.onLoad.call(this,fr(this)),mr({enableOnShareAppMessage:_,enableOnShareTimeline:v})),!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,$n(this,()=>{if($(this,`onReady`,e),typeof c==`function`&&c.apply(this,e),l&&m&&!this.__wevuRouteDoneCalled){var t;(t=A.onRouteDone)==null||t.call(this)}});return}if(typeof c==`function`)return c.apply(this,e)}};return u&&(A.onSaveExitState=function(...e){let t=qt(this,`onSaveExitState`,e);return t===void 0?b.apply(this,e):t}),d&&(A.onPullDownRefresh=function(...e){if($(this,`onPullDownRefresh`,e),!k(this,`onPullDownRefresh`))return x.apply(this,e)}),f&&(A.onReachBottom=function(...e){if($(this,`onReachBottom`,e),!k(this,`onReachBottom`))return S.apply(this,e)}),p&&(A.onPageScroll=function(...e){if($(this,`onPageScroll`,e),!k(this,`onPageScroll`))return ee.apply(this,e)}),m&&(A.onRouteDone=function(...e){if(this.__wevuRouteDoneCalled=!0,$(this,`onRouteDone`,e),!k(this,`onRouteDone`))return C.apply(this,e)}),h&&(A.onTabItemTap=function(...e){if($(this,`onTabItemTap`,e),!k(this,`onTabItemTap`))return w.apply(this,e)}),g&&(A.onResize=function(...e){if($(this,`onResize`,e),!k(this,`onResize`))return T.apply(this,e)}),_&&(A.onShareAppMessage=function(...e){let t=qt(this,`onShareAppMessage`,e);return t===void 0?E.apply(this,e):t}),v&&(A.onShareTimeline=function(...e){let t=qt(this,`onShareTimeline`,e);return t===void 0?D.apply(this,e):t}),y&&(A.onAddToFavorites=function(...e){let t=qt(this,`onAddToFavorites`,e);return t===void 0?O.apply(this,e):t}),A}function gr(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r.__weapp_vite_inline||(r.__weapp_vite_inline=function(e){var t,n,r,i,a;let o=(t=e==null||(n=e.currentTarget)==null?void 0:n.dataset)==null?e==null||(r=e.target)==null?void 0:r.dataset:t,s=o==null?void 0:o.wvHandler,c=this.__wevu;return On((i=c==null?void 0:c.proxy)==null?this:i,s,e,c==null||(a=c.methods)==null?void 0:a.__weapp_vite_inline_map)}),r.__weapp_vite_model||(r.__weapp_vite_model=function(e){var t,n,r;let i=(t=e==null||(n=e.currentTarget)==null||(n=n.dataset)==null?void 0:n.wvModel)==null?e==null||(r=e.target)==null||(r=r.dataset)==null?void 0:r.wvModel:t;if(typeof i!=`string`||!i)return;let a=this.__wevu;if(!a||typeof a.bindModel!=`function`)return;let o=Xe(e);try{a.bindModel(i).update(o)}catch(e){}}),!r.__weapp_vite_owner&&typeof(n==null?void 0:n.__weapp_vite_owner)==`function`&&(r.__weapp_vite_owner=n.__weapp_vite_owner);let i=Object.keys(n==null?{}:n);for(let e of i){if(e.startsWith(`__weapp_vite_`))continue;let t=r[e];r[e]=function(...n){var r;let i=this.__wevu,a,o=i==null||(r=i.methods)==null?void 0:r[e];if(o&&(a=o.apply(i.proxy,n)),typeof t==`function`){let e=t.apply(this,n);return e===void 0?a:e}return a}}return{finalMethods:r}}function _r(e){var t;let n=e.__wevu,r=e.__wvOwnerId;if(!n||!r||typeof n.snapshot!=`function`)return;let i=n.snapshot(),a=(t=e.__wevuProps)==null?e.properties:t;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Mn(r,i,n.proxy)}function vr(e){let{restOptions:t,userObservers:n}=e,r=e=>{let t=e.__wevuProps,n=e.properties;if(!t||typeof t!=`object`||!n||typeof n!=`object`)return;let r=n,i=Object.keys(t);for(let e of i)if(!Object.prototype.hasOwnProperty.call(r,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(r))try{t[e]=n}catch(e){}_r(e)},i=(e,t,n)=>{let r=e.__wevuProps;if(!(!r||typeof r!=`object`)){try{r[t]=n}catch(e){}_r(e)}},a=t.properties&&typeof t.properties==`object`?Object.keys(t.properties):[],o={};if(a.length)for(let e of a)o[e]=function(t){i(this,e,t)};let s={...n==null?{}:n};for(let[e,t]of Object.entries(o)){let n=s[e];typeof n==`function`?s[e]=function(...e){n.apply(this,e),t.apply(this,e)}:s[e]=t}return{syncWevuPropsFromInstance:r,finalObservers:s}}function yr(e,t,n,r,i){var a,o;let{methods:s={},lifetimes:c={},pageLifetimes:l={},options:u={},...d}=i,f=d.onLoad,p=d.onUnload,m=d.onShow,h=d.onHide,g=d.onReady,_=d.onSaveExitState,v=d.onPullDownRefresh,y=d.onReachBottom,b=d.onPageScroll,x=d.onRouteDone,S=d.onTabItemTap,ee=d.onResize,C=d.onShareAppMessage,w=d.onShareTimeline,T=d.onAddToFavorites,E=(a=d.features)==null?{}:a,D=!!d.__wevu_isPage||Object.keys(E==null?{}:E).length>0,O={...d},k=O.__wevuTemplateRefs;delete O.__wevuTemplateRefs;let A=O.observers,j=O.setupLifecycle===`created`?`created`:`attached`;delete O.setupLifecycle;let M=O.created;delete O.features,delete O.created,delete O.onLoad,delete O.onUnload,delete O.onShow,delete O.onHide,delete O.onReady;let{enableOnPullDownRefresh:te,enableOnReachBottom:N,enableOnPageScroll:ne,enableOnRouteDone:P,enableOnTabItemTap:F,enableOnResize:I,enableOnShareAppMessage:L,enableOnShareTimeline:R,enableOnAddToFavorites:z,enableOnSaveExitState:B,effectiveOnSaveExitState:re,effectiveOnPullDownRefresh:ie,effectiveOnReachBottom:ae,effectiveOnPageScroll:V,effectiveOnRouteDone:oe,effectiveOnTabItemTap:se,effectiveOnResize:ce,effectiveOnShareAppMessage:le,effectiveOnShareTimeline:ue,effectiveOnAddToFavorites:de}=lr({features:E,userOnSaveExitState:_,userOnPullDownRefresh:v,userOnReachBottom:y,userOnPageScroll:b,userOnRouteDone:x,userOnTabItemTap:S,userOnResize:ee,userOnShareAppMessage:C,userOnShareTimeline:w,userOnAddToFavorites:T}),H=(e,t)=>{let n=e.__wevuHooks;if(!n)return!1;let r=n[t];return r?Array.isArray(r)?r.length>0:typeof r==`function`:!1};{let e=O.export;O.export=function(){var t;let n=(t=this.__wevuExposed)==null?{}:t,r=typeof e==`function`?e.call(this):{};return r&&typeof r==`object`&&!Array.isArray(r)?{...n,...r}:r==null?n:r}}let U={multipleSlots:(o=u.multipleSlots)==null?!0:o,...u},{syncWevuPropsFromInstance:W,finalObservers:fe}=vr({restOptions:O,userObservers:A}),{finalMethods:G}=gr({userMethods:s,runtimeMethods:t}),K=hr({runtimeApp:e,watch:n,setup:r,userOnLoad:f,userOnUnload:p,userOnShow:m,userOnHide:h,userOnReady:g,isPage:D,enableOnSaveExitState:B,enableOnPullDownRefresh:te,enableOnReachBottom:N,enableOnPageScroll:ne,enableOnRouteDone:P,enableOnTabItemTap:F,enableOnResize:I,enableOnShareAppMessage:L,enableOnShareTimeline:R,enableOnAddToFavorites:z,effectiveOnSaveExitState:re,effectiveOnPullDownRefresh:ie,effectiveOnReachBottom:ae,effectiveOnPageScroll:V,effectiveOnRouteDone:oe,effectiveOnTabItemTap:se,effectiveOnResize:ce,effectiveOnShareAppMessage:le,effectiveOnShareTimeline:ue,effectiveOnAddToFavorites:de,hasHook:H}),pe={};if(D)for(let e of[`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=K[e];typeof t==`function`&&typeof G[e]!=`function`&&(pe[e]=function(...e){return t.apply(this,e)})}Component({...O,...K,observers:fe,lifetimes:{...c,created:function(...t){Array.isArray(k)&&k.length&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:k,configurable:!0,enumerable:!1,writable:!1}),j===`created`&&(ar(this,e,n,r,{deferSetData:!0}),W(this)),typeof M==`function`&&M.apply(this,t),typeof c.created==`function`&&c.created.apply(this,t)},moved:function(...e){$(this,`onMoved`,e),typeof c.moved==`function`&&c.moved.apply(this,e)},attached:function(...t){Array.isArray(k)&&k.length&&!this.__wevuTemplateRefs&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:k,configurable:!0,enumerable:!1,writable:!1}),(j!==`created`||!this.__wevu)&&ar(this,e,n,r),W(this),j===`created`&&or(this),typeof c.attached==`function`&&c.attached.apply(this,t)},ready:function(...e){if(D&&typeof K.onReady==`function`){K.onReady.call(this,...e),typeof c.ready==`function`&&c.ready.apply(this,e);return}if(!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,W(this),$n(this,()=>{$(this,`onReady`,e),typeof c.ready==`function`&&c.ready.apply(this,e)});return}typeof c.ready==`function`&&c.ready.apply(this,e)},detached:function(...e){if(D&&typeof K.onUnload==`function`){K.onUnload.call(this,...e),typeof c.detached==`function`&&c.detached.apply(this,e);return}er(this),sr(this),typeof c.detached==`function`&&c.detached.apply(this,e)},error:function(...e){$(this,`onError`,e),typeof c.error==`function`&&c.error.apply(this,e)}},pageLifetimes:{...l,show:function(...e){if(D&&typeof K.onShow==`function`){K.onShow.call(this,...e),typeof l.show==`function`&&l.show.apply(this,e);return}$(this,`onShow`,e),typeof l.show==`function`&&l.show.apply(this,e)},hide:function(...e){if(D&&typeof K.onHide==`function`){K.onHide.call(this,...e),typeof l.hide==`function`&&l.hide.apply(this,e);return}$(this,`onHide`,e),typeof l.hide==`function`&&l.hide.apply(this,e)},resize:function(...e){if(D&&typeof K.onResize==`function`){K.onResize.call(this,...e),typeof l.resize==`function`&&l.resize.apply(this,e);return}$(this,`onResize`,e),typeof l.resize==`function`&&l.resize.apply(this,e)}},methods:{...pe,...G},options:U})}function br(e){let{[Ot]:t,data:n,computed:r,methods:i,setData:o,watch:s,setup:c,...l}=e[Ot]===`component`?e:It(e),u=i==null?{}:i,d=r==null?{}:r,f=new Set,p={globalProperties:{}},m={mount(e){let t=we((n==null?(()=>({})):n)()),r=d,i=u,s=!0,c=[],{includeComputed:l,setDataStrategy:f,maxPatchKeys:m,maxPayloadBytes:h,mergeSiblingThreshold:g,mergeSiblingMaxInflationRatio:_,mergeSiblingMaxParentBytes:v,mergeSiblingSkipArray:y,computedCompare:b,computedCompareMaxDepth:S,computedCompareMaxKeys:ee,prelinkMaxDepth:C,prelinkMaxKeys:w,debug:T,debugWhen:E,debugSampleRate:D,elevateTopKeyThreshold:k,toPlainMaxDepth:A,toPlainMaxKeys:j,shouldIncludeKey:M}=bt(o),{boundMethods:te,computedRefs:N,computedSetters:F,dirtyComputedKeys:I,computedProxy:L,publicInstance:R}=Qe({state:t,computedDefs:r,methodDefs:i,appConfig:p,includeComputed:l,setDataStrategy:f}),z=e==null?{setData:()=>{}}:e,B=G(t),re,ie=yt({state:t,computedRefs:N,dirtyComputedKeys:I,includeComputed:l,setDataStrategy:f,computedCompare:b,computedCompareMaxDepth:S,computedCompareMaxKeys:ee,currentAdapter:z,shouldIncludeKey:M,maxPatchKeys:m,maxPayloadBytes:h,mergeSiblingThreshold:g,mergeSiblingMaxInflationRatio:_,mergeSiblingMaxParentBytes:v,mergeSiblingSkipArray:y,elevateTopKeyThreshold:k,toPlainMaxDepth:A,toPlainMaxKeys:j,debug:T,debugWhen:E,debugSampleRate:D,runTracker:()=>re==null?void 0:re(),isMounted:()=>s}),ae=()=>ie.job(B),V=e=>ie.mutationRecorder(e,B);re=O(()=>{_e(t),Object.keys(t).forEach(e=>{let n=t[e];J(n)?n.value:q(n)&&_e(n)})},{lazy:!0,scheduler:()=>a(ae)}),ae(),c.push(()=>x(re)),f===`patch`&&(he(t,{shouldIncludeTopKey:M,maxDepth:C,maxKeys:w}),ne(V),c.push(()=>P(V)),c.push(()=>ge(t)));function oe(e,t,n){let r=qe(e,(e,n)=>t(e,n),n);return c.push(r),()=>{r();let e=c.indexOf(r);e>=0&&c.splice(e,1)}}return{get state(){return t},get proxy(){return R},get methods(){return te},get computed(){return L},get adapter(){return z},bindModel:Dt(R,t,N,F),watch:oe,snapshot:()=>ie.snapshot(),unmount:()=>{s&&(s=!1,c.forEach(e=>{try{e()}catch(e){}}),c.length=0)}}},use(e,...t){if(!e||f.has(e))return m;if(f.add(e),typeof e==`function`)e(m,...t);else if(typeof e.install==`function`)e.install(m,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return m},config:p};if(typeof App==`function`){let e=typeof wx<`u`?wx:typeof my<`u`?my:void 0,t=(e==null?void 0:e.__wxConfig)!==void 0,n=`__wevuAppRegistered`;t&&e&&e[n]||(t&&e&&(e[n]=!0),cr(m,i==null?{}:i,s,c,l))}return m}function xr(e,t,n){let r=e.properties,i=n==null?r&&typeof r==`object`?r:void 0:n,a=e=>{let t={...e==null?{}:e};return Object.prototype.hasOwnProperty.call(t,`__wvSlotOwnerId`)||(t.__wvSlotOwnerId={type:String,value:``}),Object.prototype.hasOwnProperty.call(t,`__wvSlotScope`)||(t.__wvSlotScope={type:null,value:null}),t};if(i||!t){let{properties:t,...n}=e;return{...n,properties:a(i)}}let o={};return Object.entries(t).forEach(([e,t])=>{if(t!=null){if(Array.isArray(t)||typeof t==`function`){o[e]={type:t};return}if(typeof t==`object`){if(e.endsWith(`Modifiers`)&&Object.keys(t).length===0){o[e]={type:Object,value:{}};return}let n={};`type`in t&&t.type!==void 0&&(n.type=t.type);let r=`default`in t?t.default:t.value;r!==void 0&&(n.value=typeof r==`function`?r():r),o[e]=n}}}),{...e,properties:a(o)}}function Sr(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function Cr(e){var t,n,r;let i=(t=e==null||(n=e.currentTarget)==null||(n=n.dataset)==null?void 0:n.wvArgs)==null?e==null||(r=e.target)==null||(r=r.dataset)==null?void 0:r.wvArgs:t,a=[];if(Array.isArray(i))a=i;else if(typeof i==`string`)try{a=JSON.parse(i)}catch(e){try{a=JSON.parse(Sr(i))}catch(e){a=[]}}return Array.isArray(a)||(a=[]),a.map(t=>t===`$event`?e:t)}function wr(e){if(!e||typeof e!=`object`)return{};if(Array.isArray(e)){let t={};for(let n=0;n<e.length;n+=2){let r=e[n];typeof r==`string`&&r&&(t[r]=e[n+1])}return t}return e}function Tr(e,t){var n,r;let i=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotScope`)?t.__wvSlotScope:e==null||(n=e.properties)==null?void 0:n.__wvSlotScope,a=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotProps`)?t.__wvSlotProps:e==null||(r=e.properties)==null?void 0:r.__wvSlotProps,o=wr(i),s=wr(a),c={...o,...s};typeof(e==null?void 0:e.setData)==`function`&&e.setData({__wvSlotPropsData:c})}function Er(e){let t={properties:{__wvOwnerId:{type:String,value:``},__wvSlotProps:{type:null,value:null,observer(e){Tr(this,{__wvSlotProps:e})}},__wvSlotScope:{type:null,value:null,observer(e){Tr(this,{__wvSlotScope:e})}}},data:()=>({__wvOwner:{},__wvSlotPropsData:{}}),lifetimes:{attached(){var e,t;let n=(e=(t=this.properties)==null?void 0:t.__wvOwnerId)==null?``:e;if(Tr(this),!n)return;let r=(e,t)=>{this.__wvOwnerProxy=t,typeof this.setData==`function`&&this.setData({__wvOwner:e||{}})};this.__wvOwnerUnsub=Pn(n,r);let i=In(n);i&&r(i,Fn(n))},detached(){typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerProxy=void 0}},methods:{__weapp_vite_owner(e){var t,n,r,i,a,o,s;let c=this.__wvOwnerProxy,l=(t=this.__wevu)==null||(t=t.methods)==null?void 0:t.__weapp_vite_inline_map,u=On(c,(n=e==null||(r=e.currentTarget)==null||(r=r.dataset)==null?void 0:r.wvHandler)==null?e==null||(i=e.target)==null||(i=i.dataset)==null?void 0:i.wvHandler:n,e,l);if(u!==void 0)return u;if(!c)return;let d=(a=e==null||(o=e.currentTarget)==null||(o=o.dataset)==null?void 0:o.wvHandler)==null?e==null||(s=e.target)==null||(s=s.dataset)==null?void 0:s.wvHandler:a;if(typeof d!=`string`||!d)return;let f=c==null?void 0:c[d];if(typeof f!=`function`)return;let p=Cr(e);return f.apply(c,p)}}};return e!=null&&e.computed&&Object.keys(e.computed).length>0&&(t.computed=e.computed),e!=null&&e.inlineMap&&Object.keys(e.inlineMap).length>0&&(t.methods={...t.methods,__weapp_vite_inline_map:e.inlineMap}),t}function Dr(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Or(e){return typeof e!=`object`||!e||J(e)||q(e)||Array.isArray(e)?!0:Dr(e)}function kr(e,t,n){var r,i;let a=(r=e==null?void 0:e.methods)==null?Object.create(null):r,o=(i=e==null?void 0:e.state)==null?Object.create(null):i,s=q(o)?G(o):o;if(e&&!e.methods)try{e.methods=a}catch(e){}if(e&&!e.state)try{e.state=o}catch(e){}if(Object.keys(n).forEach(r=>{let i=n[r];if(typeof i==`function`)a[r]=(...t)=>{var n;return i.apply((n=e==null?void 0:e.proxy)==null?e:n,t)};else if(i===t||!Or(i))try{Object.defineProperty(s,r,{value:i,configurable:!0,enumerable:!1,writable:!0})}catch(e){o[r]=i}else o[r]=i}),e){var c,l;e.methods=(c=e.methods)==null?a:c,e.state=(l=e.state)==null?o:l}}let Ar;function jr(){let e=typeof globalThis<`u`,t=typeof wx<`u`?wx:typeof my<`u`?my:e?globalThis:void 0;if(!t)return;let n=t;!n.__weapp_vite_createScopedSlotComponent&&Ar&&(n.__weapp_vite_createScopedSlotComponent=Ar)}function Mr(e){jr();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Lt(e),u=br({data:n,computed:r,methods:i,setData:a,[Ot]:`component`}),d=(e,t)=>{let n=tr(s,e,t);return n&&t&&kr(t.runtime,t.instance,n),n},f=xr(l,c),p={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:f};return yr(u,i==null?{}:i,o,d,f),{__wevu_runtime:u,__wevu_options:p}}function Nr(e){jr();let{properties:t,props:n,...r}=e;Mr(xr(r,n,t))}function Pr(e){Nr(Er(e))}Ar=Pr,jr();const Fr=Symbol(`wevu.provideScope`),Ir=new Map;function Lr(e,t){let n=Bt();if(n){let r=n[Fr];r||(r=new Map,n[Fr]=r),r.set(e,t)}else Ir.set(e,t)}function Rr(e,t){let n=Bt();if(n){let t=n;for(;t;){let n=t[Fr];if(n&&n.has(e))return n.get(e);t=null}}if(Ir.has(e))return Ir.get(e);if(arguments.length>=2)return t;throw Error(`wevu.inject:未找到对应 key 的值`)}function zr(e,t){Ir.set(e,t)}function Br(e,t){if(Ir.has(e))return Ir.get(e);if(arguments.length>=2)return t;throw Error(`injectGlobal():未找到对应 key 的 provider:${String(e)}`)}const Vr=/\B([A-Z])/g;function Hr(e){return e?e.startsWith(`--`)?e:e.replace(Vr,`-$1`).toLowerCase():``}function Ur(e,t){if(!t)return e;if(!e)return t;let n=e;n.endsWith(`;`)||(n+=`;`);let r=t.startsWith(`;`)?t.slice(1):t;return n+r}function Wr(e){let t=``;for(let n of Object.keys(e)){let r=Me(e[n]);if(r==null)continue;let i=Hr(n);if(Array.isArray(r))for(let e of r){let n=Me(e);n!=null&&(t=Ur(t,`${i}:${n}`))}else t=Ur(t,`${i}:${r}`)}return t}function Gr(e){let t=Me(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=Gr(n);t&&(e=Ur(e,t))}return e}return typeof t==`object`?Wr(t):``}function Kr(e){let t=Me(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=Kr(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))Me(t[e])&&(n+=`${e} `);return n.trim()}return n}function qr(){var e;let t=Ht();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function Jr(){var e;let t=Ht();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?Object.create(null):e}function Yr(e){let t=e.__wevuTemplateRefMap;if(t)return t;let n=new Map;try{Object.defineProperty(e,`__wevuTemplateRefMap`,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuTemplateRefMap=n}return n}function Xr(e){let t=Bt();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=Yr(t),i=r.get(n);if(i)return i;let a=Re(null);return r.set(n,a),a}function Zr(e,t){let n=Ht();if(!n)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let r=n.emit,i=`update:${t}`;return Fe({get:()=>e==null?void 0:e[t],set:e=>{r==null||r(i,e)}})}function Qr(e){let t=Bt();if(!(t!=null&&t.__wevu)||typeof t.__wevu.bindModel!=`function`)throw Error(`useBindModel() 必须在 setup() 的同步阶段调用`);let n=t.__wevu.bindModel.bind(t.__wevu),r=((t,r)=>e?n(t,{...e,...r}):n(t,r));return r.model=(e,t)=>r(e).model(t),r.value=(t,n)=>{var i;let a={...e,...n},o=(i=a==null?void 0:a.valueProp)==null?`value`:i;return r.model(t,n)[o]},r.on=(t,n)=>{var i;let a={...e,...n},o=`on${xt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function $r(e,t){return e==null?t:t==null?e:Array.isArray(e)&&Array.isArray(t)?Array.from(new Set([...e,...t])):typeof e==`object`&&typeof t==`object`?{...e,...t}:t}function ei(e,t,n,r){return function(...i){let a=[],o=[],s=e=>a.push(e),c=e=>o.push(e);r.forEach(n=>{try{n({name:t,store:e,args:i,after:s,onError:c})}catch(e){}});let l;try{l=n.apply(e,i)}catch(e){throw o.forEach(t=>t(e)),e}let u=e=>(a.forEach(t=>t(e)),e);return l&&typeof l.then==`function`?l.then(e=>u(e),e=>(o.forEach(t=>t(e)),Promise.reject(e))):u(l)}}function ti(e){return typeof e==`object`&&!!e}function ni(e){if(!ti(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function ri(e,t){for(let n in t)e[n]=t[n]}function ii(e){if(Array.isArray(e))return e.map(e=>ii(e));if(ni(e)){let t={};for(let n in e)t[n]=ii(e[n]);return t}return e}function ai(e,t){if(Array.isArray(e)&&Array.isArray(t)){e.length=0,t.forEach((t,n)=>{e[n]=ii(t)});return}if(ti(t)){for(let n in e)n in t||delete e[n];for(let n in t){let r=t[n],i=e[n];if(Array.isArray(r)&&Array.isArray(i)){ai(i,r);continue}if(ni(r)&&ni(i)){ai(i,r);continue}e[n]=ii(r)}}}function oi(e,t,n,r){let i={$id:e};Object.defineProperty(i,`$state`,{get(){return t},set(e){t&&ti(e)&&(ri(t,e),n(`patch object`))}}),i.$patch=e=>{if(!t){typeof e==`function`?(e(i),n(`patch function`)):(ri(i,e),n(`patch object`));return}typeof e==`function`?(e(t),n(`patch function`)):(ri(t,e),n(`patch object`))},r&&(i.$reset=()=>r());let a=new Set;i.$subscribe=(e,t)=>(a.add(e),()=>a.delete(e));let o=new Set;return i.$onAction=e=>(o.add(e),()=>o.delete(e)),{api:i,subs:a,actionSubs:o}}function si(){let e={_stores:new Map,_plugins:[],install(e){},use(t){return typeof t==`function`&&e._plugins.push(t),e}};return si._instance=e,e}const ci=Object.prototype.hasOwnProperty;function li(e){return J(e)&&ci.call(e,`dep`)}function ui(e){return q(e)?ii(G(e)):li(e)?ii(e.value):ii(e)}function di(e,t){let n,r=!1,i=si._instance;return function(){var a,o,s;if(r&&n)return n;if(r=!0,typeof t==`function`){var c;let r=t(),a=()=>{},o=new Map;Object.keys(r).forEach(e=>{let t=r[e];typeof t==`function`||e.startsWith(`$`)||J(t)&&!li(t)||o.set(e,ui(t))});let s=oi(e,void 0,e=>a(e),()=>{o.forEach((e,t)=>{let r=n[t];if(li(r)){r.value=ii(e);return}if(q(r)){ai(r,e);return}J(r)||(n[t]=ii(e))}),a(`patch object`)}),l=!1,u=s.api.$patch;if(s.api.$patch=e=>{l=!0;try{u(e)}finally{l=!1}},typeof s.api.$reset==`function`){let e=s.api.$reset;s.api.$reset=()=>{l=!0;try{e()}finally{l=!1}}}a=t=>{s.subs.forEach(r=>{try{r({type:t,storeId:e},n)}catch(e){}})},n=Object.assign({},r);for(let e of Object.getOwnPropertyNames(s.api)){let t=Object.getOwnPropertyDescriptor(s.api,e);t&&(e===`$state`?Object.defineProperty(n,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return s.api.$state},set(e){l=!0;try{s.api.$state=e}finally{l=!1}}}):Object.defineProperty(n,e,t))}let d=[];if(Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`&&!e.startsWith(`$`)){n[e]=ei(n,e,t,s.actionSubs);return}if(li(t)){d.push(t);return}if(q(t)){d.push(t);return}if(!J(t)&&!e.startsWith(`$`)){let r=t;Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get(){return r},set(e){r=e,l||a(`direct`)}})}}),d.length>0){let e=!1;O(()=>{if(d.forEach(e=>{li(e)?e.value:_e(e)}),!e){e=!0;return}l||a(`direct`)})}let f=(c=i==null?void 0:i._plugins)==null?[]:c;for(let e of f)try{e({store:n})}catch(e){}return n}let l=t,u=l.state?l.state():{},d=we(u),f=ii(G(u)),p=()=>{},m=oi(e,d,e=>p(e),()=>{ai(d,f),p(`patch object`)}),h=!1,g=m.api.$patch;if(m.api.$patch=e=>{h=!0;try{g(e)}finally{h=!1}},typeof m.api.$reset==`function`){let e=m.api.$reset;m.api.$reset=()=>{h=!0;try{e()}finally{h=!1}}}p=t=>{m.subs.forEach(n=>{try{n({type:t,storeId:e},d)}catch(e){}})};let _={};for(let e of Object.getOwnPropertyNames(m.api)){let t=Object.getOwnPropertyDescriptor(m.api,e);t&&(e===`$state`?Object.defineProperty(_,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return m.api.$state},set(e){h=!0;try{m.api.$state=e}finally{h=!1}}}):Object.defineProperty(_,e,t))}let v=(a=l.getters)==null?{}:a,y={};Object.keys(v).forEach(e=>{let t=v[e];if(typeof t==`function`){let n=Ie(()=>t.call(_,d));y[e]=n,Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return n.value}})}});let b=(o=l.actions)==null?{}:o;Object.keys(b).forEach(e=>{let t=b[e];typeof t==`function`&&(_[e]=ei(_,e,(...e)=>t.apply(_,e),m.actionSubs))}),Object.keys(d).forEach(e=>{Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return d[e]},set(t){d[e]=t}})});let x=!1;O(()=>{if(_e(d),!x){x=!0;return}h||p(`direct`)}),n=_;let S=(s=i==null?void 0:i._plugins)==null?[]:s;for(let e of S)try{e({store:n})}catch(e){}return n}}function fi(e){let t={};for(let n in e){let r=e[n];if(typeof r==`function`){t[n]=r;continue}J(r)?t[n]=r:t[n]=Ie({get:()=>e[n],set:t=>{e[n]=t}})}return t}export{ne as addMutationRecorder,y as batch,$ as callHookList,qt as callHookReturn,En as callUpdateHooks,Ie as computed,br as createApp,si as createStore,Nr as createWevuComponent,Pr as createWevuScopedSlotComponent,Mr as defineComponent,di as defineStore,O as effect,C as effectScope,v as endBatch,Bt as getCurrentInstance,w as getCurrentScope,Ht as getCurrentSetupContext,Ke as getDeepWatchStrategy,xe as getReactiveVersion,Rr as inject,Br as injectGlobal,et as isNoSetData,De as isRaw,q as isReactive,J as isRef,be as isShallowReactive,ze as isShallowRef,Y as markNoSetData,Ee as markRaw,$r as mergeModels,ar as mountRuntimeInstance,o as nextTick,Kr as normalizeClass,Gr as normalizeStyle,Cn as onActivated,hn as onAddToFavorites,bn as onBeforeMount,vn as onBeforeUnmount,xn as onBeforeUpdate,wn as onDeactivated,dn as onError,Sn as onErrorCaptured,en as onHide,Jt as onLaunch,$t as onLoad,gn as onMounted,un as onMoved,Yt as onPageNotFound,on as onPageScroll,rn as onPullDownRefresh,an as onReachBottom,nn as onReady,ln as onResize,sn as onRouteDone,fn as onSaveExitState,T as onScopeDispose,Tn as onServerPrefetch,pn as onShareAppMessage,mn as onShareTimeline,Qt as onShow,cn as onTabItemTap,Zt as onThemeChange,Xt as onUnhandledRejection,tn as onUnload,yn as onUnmounted,_n as onUpdated,he as prelinkReactiveTree,Lr as provide,zr as provideGlobal,we as reactive,Le as readonly,je as ref,cr as registerApp,yr as registerComponent,P as removeMutationRecorder,Ft as resetWevuDefaults,tr as runSetupFunction,Vt as setCurrentInstance,Ut as setCurrentSetupContext,Ge as setDeepWatchStrategy,Pt as setWevuDefaults,ye as shallowReactive,Re as shallowRef,g as startBatch,x as stop,fi as storeToRefs,sr as teardownRuntimeInstance,G as toRaw,Ve as toRef,He as toRefs,Ne as toValue,_e as touchReactive,Ue as traverse,Be as triggerRef,Me as unref,qr as useAttrs,Qr as useBindModel,Zr as useModel,Jr as useSlots,Xr as useTemplateRef,qe as watch,Je as watchEffect};
|
|
1
|
+
const e=Promise.resolve(),t=new Set;let n=!1,r=!1;function i(){r=!1,n=!0;try{t.forEach(e=>e())}finally{t.clear(),n=!1}}function a(a){t.add(a),!n&&!r&&(r=!0,e.then(i))}function o(t){return t?e.then(t):e}function s(e){"@babel/helpers - typeof";return s=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},s(e)}function c(e,t){if(s(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(s(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function l(e){var t=c(e,`string`);return s(t)==`symbol`?t:t+``}function u(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=new WeakMap;let f=null;const p=[];let m=0;const h=new Set;function g(){m++}function _(){for(;h.size;){let e=Array.from(h);h.clear();for(let t of e)t()}}function v(){m!==0&&(m--,m===0&&_())}function y(e){g();try{return e()}finally{v()}}function b(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function x(e){var t;e.active&&(e.active=!1,b(e),(t=e.onStop)==null||t.call(e))}let S;var C=class{constructor(e=!1){if(this.detached=e,u(this,`active`,!0),u(this,`effects`,[]),u(this,`cleanups`,[]),u(this,`parent`,void 0),u(this,`scopes`,void 0),!e&&S){var t;this.parent=S,((t=S).scopes||(t.scopes=[])).push(this)}}run(e){if(!this.active)return;let t=S;S=this;try{return e()}finally{S=t}}stop(){var e;if(this.active){this.active=!1;for(let e of this.effects)x(e);this.effects.length=0;for(let e of this.cleanups)e();if(this.cleanups.length=0,this.scopes){for(let e of this.scopes)e.stop();this.scopes.length=0}if((e=this.parent)!=null&&e.scopes){let e=this.parent.scopes.indexOf(this);e>=0&&this.parent.scopes.splice(e,1)}this.parent=void 0}}};function w(e=!1){return new C(e)}function T(){return S}function E(e){S!=null&&S.active&&S.cleanups.push(e)}function D(e){S!=null&&S.active&&S.effects.push(e)}function O(e,t={}){let n=function(){if(!n.active||n._running)return e();b(n);try{return n._running=!0,p.push(n),f=n,e()}finally{var t;p.pop(),f=(t=p[p.length-1])==null?null:t,n._running=!1}};return n.deps=[],n.scheduler=t.scheduler,n.onStop=t.onStop,n.active=!0,n._running=!1,n._fn=e,n}function k(e,t={}){let n=O(e,t);return D(n),t.lazy||n(),n}function A(e,t){if(!f)return;let n=d.get(e);n||(n=new Map,d.set(e,n));let r=n.get(t);r||(r=new Set,n.set(t,r)),r.has(f)||(r.add(f),f.deps.push(r))}function j(e){if(e.scheduler){e.scheduler();return}if(m>0){h.add(e);return}e()}function M(e,t){let n=d.get(e);if(!n)return;let r=n.get(t);if(!r)return;let i=new Set;r.forEach(e=>{e!==f&&i.add(e)}),i.forEach(j)}function N(e){f&&(e.has(f)||(e.add(f),f.deps.push(e)))}function ee(e){new Set(e).forEach(j)}const P=new Set;function te(e){P.add(e)}function F(e){P.delete(e)}const I=new WeakMap,L=new WeakMap,R=new WeakMap,z=new WeakMap,B=new WeakSet,V=new WeakMap,ne=new WeakMap;function re(e){let t=ne.get(e);return t||(t=new Set,ne.set(e,t)),t}function ie(e,t){re(e).add(t)}function ae(e){var t;L.set(e,((t=L.get(e))==null?0:t)+1)}function oe(e){var t;return(t=L.get(e))==null?0:t}function se(e){let t=new Set,n=[e];for(let e=0;e<2e3&&n.length;e++){let e=n.pop(),r=z.get(e);if(r)for(let e of r.keys())t.has(e)||(t.add(e),ae(e),n.push(e))}}function ce(e){let t=z.get(e);if(!t){B.delete(e),R.delete(e);return}let n,r,i=0;for(let[e,a]of t){for(let t of a){if(i+=1,i>1)break;n=e,r=t}if(i>1)break}if(i===1&&n&&r){B.delete(e),R.set(e,{parent:n,key:r});return}B.add(e),R.delete(e)}function le(e,t,n){if(typeof n!=`string`){B.add(e),R.delete(e);return}if(P.size){var r;let n=(r=I.get(t))==null?t:r;ie(n,t),ie(n,e)}let i=z.get(e);i||(i=new Map,z.set(e,i));let a=i.get(t);a||(a=new Set,i.set(t,a)),a.add(n),ce(e)}function ue(e,t,n){let r=z.get(e);if(!r)return;let i=r.get(t);i&&(i.delete(n),i.size||r.delete(t),r.size||z.delete(e),ce(e))}function de(e,t){if(t===e)return[];if(B.has(t))return;let n=[],r=t;for(let t=0;t<2e3;t++){if(r===e)return n.reverse();if(B.has(r))return;let t=R.get(r);if(!t||typeof t.key!=`string`)return;n.push(t.key),r=t.parent}}let H=function(e){return e.IS_REACTIVE=`__r_isReactive`,e.RAW=`__r_raw`,e.SKIP=`__r_skip`,e}({});function U(e){return typeof e==`object`&&!!e}const W=Symbol(`wevu.version`);function fe(e){if(!e)return!1;let t=e.charCodeAt(0);if(t<48||t>57)return!1;let n=Number(e);return Number.isInteger(n)&&n>=0&&String(n)===e}function G(e){var t;return(t=e==null?void 0:e[H.RAW])==null?e:t}const pe=new WeakMap,K=new WeakMap,me=new WeakMap;function he(e,t){let n=G(e);V.set(n,``),ie(n,n);let r=t==null?void 0:t.shouldIncludeTopKey,i=typeof(t==null?void 0:t.maxDepth)==`number`?Math.max(0,Math.floor(t.maxDepth)):1/0,a=typeof(t==null?void 0:t.maxKeys)==`number`?Math.max(0,Math.floor(t.maxKeys)):1/0,o=new WeakSet,s=[{current:n,path:``,depth:0}],c=0;for(;s.length;){let e=s.pop();if(o.has(e.current)||(o.add(e.current),V.set(e.current,e.path),ie(n,e.current),c+=1,c>=a)||e.depth>=i||Array.isArray(e.current))continue;let t=Object.entries(e.current);for(let[i,a]of t){if(e.path===``&&r&&!r(i)||!U(a)||a[H.SKIP])continue;let t=G(a);if(I.has(t)||I.set(t,n),le(t,e.current,i),!B.has(t)){let n=e.path?`${e.path}.${i}`:i;V.set(t,n)}ie(n,t),s.push({current:t,path:e.path?`${e.path}.${i}`:i,depth:e.depth+1})}}}function ge(e){let t=G(e),n=ne.get(t);if(!n){V.delete(t);return}for(let e of n)R.delete(e),z.delete(e),V.delete(e),B.delete(e),I.delete(e),L.delete(e);ne.delete(t)}function _e(e){A(G(e),W)}const ve={get(e,t,n){if(t===H.IS_REACTIVE)return!0;if(t===H.RAW)return e;let r=Reflect.get(e,t,n);return A(e,t),r},set(e,t,n,r){let i=Reflect.get(e,t,r),a=Reflect.set(e,t,n,r);return Object.is(i,n)||(M(e,t),M(e,W),ae(e)),a},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=Reflect.deleteProperty(e,t);return n&&r&&(M(e,t),M(e,W),ae(e)),r},ownKeys(e){return A(e,Symbol.iterator),A(e,W),Reflect.ownKeys(e)}};function ye(e){if(!U(e))return e;let t=me.get(e);if(t)return t;if(e[H.IS_REACTIVE])return e;let n=new Proxy(e,ve);return me.set(e,n),K.set(n,e),L.has(e)||L.set(e,0),n}function be(e){let t=G(e);return me.has(t)}function xe(e){return oe(G(e))}function Se(e,t,n){var r;if(!P.size||typeof t!=`string`||t.startsWith(`__r_`))return;let i=(r=I.get(e))==null?e:r,a=Array.isArray(e)&&(t===`length`||fe(t))?`array`:`property`,o=de(i,e);if(!o){let r=new Set,o=z.get(e);if(o)for(let[e,t]of o){var s;let n=V.get(e),a=n?n.split(`.`,1)[0]:void 0,o=a||(s=de(i,e))==null?void 0:s[0];for(let e of t){var c;typeof e==`string`&&r.add((c=a==null?o:a)==null?e:c)}}else r.add(t);for(let e of P)e({root:i,kind:a,op:n,path:void 0,fallbackTopKeys:r.size?Array.from(r):void 0});return}let l=o.findIndex(e=>fe(e));if(l!==-1){let e=o.slice(0,l).join(`.`)||void 0;for(let t of P)t({root:i,kind:`array`,op:n,path:e});return}let u=o.length?o.join(`.`):``,d=a===`array`?u||void 0:u?`${u}.${t}`:t;for(let e of P)e({root:i,kind:a,op:n,path:d})}const Ce={get(e,t,n){if(t===H.IS_REACTIVE)return!0;if(t===H.RAW)return e;let r=Reflect.get(e,t,n);if(A(e,t),U(r)){var i,a;if(r[H.SKIP])return r;let n=(i=I.get(e))==null?e:i,o=(a=r==null?void 0:r[H.RAW])==null?r:a;I.has(o)||I.set(o,n),le(o,e,t);let s=V.get(e);if(P.size&&typeof t==`string`&&s!=null&&!B.has(o)){let e=s?`${s}.${t}`:t;V.set(o,e)}return we(r)}return r},set(e,t,n,r){let i=Array.isArray(e),a=i?e.length:0,o=Reflect.get(e,t,r),s=Reflect.set(e,t,n,r);if(!Object.is(o,n)){var c;let r=U(o)?(c=o==null?void 0:o[H.RAW])==null?o:c:void 0;if(r&&ue(r,e,t),U(n)&&!n[H.SKIP]){var l,u;let r=(l=I.get(e))==null?e:l,i=(u=n==null?void 0:n[H.RAW])==null?n:u;I.has(i)||I.set(i,r),le(i,e,t);let a=V.get(e);if(P.size&&typeof t==`string`&&a!=null&&!B.has(i)){let e=a?`${a}.${t}`:t;V.set(i,e)}}M(e,t),i&&typeof t==`string`&&fe(t)&&Number(t)>=a&&M(e,`length`),M(e,W),ae(e),se(e);let s=I.get(e);s&&s!==e&&(M(s,W),ae(s)),Se(e,t,`set`)}return s},deleteProperty(e,t){let n=Object.prototype.hasOwnProperty.call(e,t),r=n?e[t]:void 0,i=Reflect.deleteProperty(e,t);if(n&&i){var a;let n=U(r)?(a=r==null?void 0:r[H.RAW])==null?r:a:void 0;n&&ue(n,e,t),M(e,t),M(e,W),ae(e),se(e);let i=I.get(e);i&&i!==e&&(M(i,W),ae(i)),Se(e,t,`delete`)}return i},ownKeys(e){return A(e,Symbol.iterator),A(e,W),Reflect.ownKeys(e)}};function we(e){if(!U(e))return e;let t=pe.get(e);if(t)return t;if(e[H.IS_REACTIVE])return e;let n=new Proxy(e,Ce);return pe.set(e,n),K.set(n,e),L.has(e)||L.set(e,0),I.has(e)||I.set(e,e),n}function q(e){return!!(e&&e[H.IS_REACTIVE])}function Te(e){return U(e)?we(e):e}function Ee(e){return U(e)&&Object.defineProperty(e,H.SKIP,{value:!0,configurable:!0,enumerable:!1,writable:!0}),e}function De(e){return U(e)&&H.SKIP in e}const Oe=`__v_isRef`;function ke(e){try{Object.defineProperty(e,Oe,{value:!0,configurable:!0})}catch(t){e[Oe]=!0}return e}function J(e){return!!(e&&typeof e==`object`&&e[Oe]===!0)}var Ae=class{constructor(e){u(this,`_value`,void 0),u(this,`_rawValue`,void 0),u(this,`dep`,void 0),ke(this),this._rawValue=e,this._value=Te(e)}get value(){return this.dep||(this.dep=new Set),N(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=Te(e),this.dep&&ee(this.dep))}};function je(e){return J(e)?e:Ee(new Ae(e))}function Me(e){return J(e)?e.value:e}function Ne(e){return typeof e==`function`?e():Me(e)}var Pe=class{constructor(e,t){u(this,`_getValue`,void 0),u(this,`_setValue`,void 0),u(this,`dep`,void 0),ke(this);let n=t,r=()=>{this.dep||(this.dep=new Set),N(this.dep)},i=()=>{this.dep&&ee(this.dep)},a=e=>e===void 0&&n!==void 0?n:e;if(typeof e==`function`){let t=e(r,i);this._getValue=()=>a(t.get()),this._setValue=e=>t.set(e);return}let o=e;this._getValue=()=>(r(),a(o.get())),this._setValue=e=>{o.set(e),i()}}get value(){return this._getValue()}set value(e){this._setValue(e)}};function Fe(e,t){return Ee(new Pe(e,t))}function Ie(e){let t,n;typeof e==`function`?(t=e,n=()=>{throw Error(`计算属性是只读的`)}):(t=e.get,n=e.set);let r,i=!0,a,o={get value(){return i&&(r=a(),i=!1),A(o,`value`),r},set value(e){n(e)}};return ke(o),a=k(t,{lazy:!0,scheduler:()=>{i||(i=!0,M(o,`value`))}}),o}function Le(e){if(J(e)){let t=e;return ke({get value(){return t.value},set value(e){throw Error(`无法给只读 ref 赋值`)}})}return U(e)?new Proxy(e,{set(){throw Error(`无法在只读对象上设置属性`)},deleteProperty(){throw Error(`无法在只读对象上删除属性`)},defineProperty(){throw Error(`无法在只读对象上定义属性`)},get(e,t,n){return Reflect.get(e,t,n)}}):e}function Re(e,t){return Fe((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function ze(e){return J(e)&&typeof e.value!=`function`}function Be(e){if(J(e)){let t=e.dep;if(t){ee(t);return}e.value=e.value}}function Ve(e,t,n){let r=e[t];return J(r)?r:Fe((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function He(e){q(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=Ve(e,n);return t}function Ue(e,t=1/0,n=new Map){if(t<=0||!U(e))return e;if(J(e))return Ue(e.value,t-1,n),e;if(e[H.SKIP])return e;let r=n.get(e);if(r!==void 0&&r>=t)return e;n.set(e,t);let i=t-1;if(Array.isArray(e)||e instanceof Map||e instanceof Set)return e.forEach(e=>Ue(e,i,n)),e;let a=q(e)&&t!==1/0?G(e):e;for(let t in a)Ue(e[t],i,n);return e}let We=`version`;function Ge(e){We=e}function Ke(){return We}function qe(e,t,n={}){var r,i;let s,c=q(e),l=Array.isArray(e)&&!c,u=e=>{if(typeof e==`function`)return e();if(J(e))return e.value;if(q(e))return e;throw Error(`无效的 watch 源`)};if(l){let t=e;s=()=>t.map(e=>u(e))}else if(typeof e==`function`)s=e;else if(J(e))s=()=>e.value;else if(c)s=()=>e;else throw Error(`无效的 watch 源`);let d=l?e.some(e=>q(e)):c,f=(r=n.deep)==null?d:r,p=f===!0||typeof f==`number`,m=typeof f==`number`?f:f?1/0:0;if(p){let e=s;s=()=>{let t=e();return l&&Array.isArray(t)?t.map(e=>We===`version`&&q(e)?(_e(e),e):Ue(e,m)):We===`version`&&q(t)?(_e(t),t):Ue(t,m)}}let h,g=e=>{h=e},_,v,y=!1,b=0,S,C=n.once?(e,n,r)=>{t(e,n,r),S()}:t,w=(i=n.flush)==null?`pre`:i,T=b,D=e=>{if(!v.active||y||e!==b)return;let t=v();h==null||h(),C(t,_,g),_=t},O=()=>D(T),A=(e,t)=>{if(T=b,n.scheduler){let r=T;n.scheduler(()=>e(r),t);return}if(w===`sync`){O();return}if(w===`post`){o(()=>a(O));return}t?O():a(O)};v=k(()=>s(),{scheduler:()=>{y||A(D,!1)},lazy:!0});let j=()=>{h==null||h(),h=void 0,x(v)};return S=j,S.stop=j,S.pause=()=>{y||(y=!0,b+=1)},S.resume=()=>{!y||!v.active||(y=!1,_=v())},n.immediate?D(b):_=v(),E(S),S}function Je(e,t={}){var n;let r,i=e=>{r=e},s,c=!1,l=0,u=(n=t.flush)==null?`pre`:n,d=l,f=e=>{!s.active||c||e!==l||s()},p=()=>f(d),m=e=>{if(d=l,u===`sync`){p();return}if(u===`post`){o(()=>a(p));return}e?p():a(p)};s=k(()=>{r==null||r(),r=void 0,e(i)},{lazy:!0,scheduler:()=>{c||m(!1)}}),m(!0);let h=()=>{r==null||r(),r=void 0,x(s)},g=h;return g.stop=h,g.pause=()=>{c||(c=!0,l+=1)},g.resume=()=>{!c||!s.active||(c=!1,m(!0))},E(g),g}function Ye(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Xe(e){if(e==null)return e;if(typeof e==`object`){if(`detail`in e&&e.detail&&`value`in e.detail)return e.detail.value;if(`target`in e&&e.target&&`value`in e.target)return e.target.value}return e}function Ze(e){let t=Object.create(null),n=Object.create(null),r=new Set;return{computedRefs:t,computedSetters:n,dirtyComputedKeys:r,createTrackedComputed:(t,n,i)=>{let a,o=!0,s,c={get value(){return o&&(a=s(),o=!1),A(c,`value`),a},set value(e){if(!i)throw Error(`计算属性是只读的`);i(e)}};return ke(c),s=k(n,{lazy:!0,scheduler:()=>{o||(o=!0,e.setDataStrategy===`patch`&&e.includeComputed&&r.add(t),M(c,`value`))}}),c},computedProxy:new Proxy({},{get(e,n){if(typeof n==`string`&&t[n])return t[n].value},has(e,n){return typeof n==`string`&&!!t[n]},ownKeys(){return Object.keys(t)},getOwnPropertyDescriptor(e,n){if(typeof n==`string`&&t[n])return{configurable:!0,enumerable:!0,value:t[n].value}}})}}function Qe(e){let{state:t,computedDefs:n,methodDefs:r,appConfig:i,includeComputed:a,setDataStrategy:o}=e,s={},{computedRefs:c,computedSetters:l,dirtyComputedKeys:u,createTrackedComputed:d,computedProxy:f}=Ze({includeComputed:a,setDataStrategy:o}),p=je(0),m=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(p.value,n===`$state`)return t;if(n===`$computed`)return f;if(Object.prototype.hasOwnProperty.call(s,n))return s[n];if(c[n])return c[n].value;if(Object.prototype.hasOwnProperty.call(i.globalProperties,n))return i.globalProperties[n]}return Reflect.get(e,n,r)},set(e,t,n,r){return typeof t==`string`&&c[t]?(Ye(l,t,n),!0):Reflect.set(e,t,n,r)},has(e,t){return typeof t==`string`&&(c[t]||Object.prototype.hasOwnProperty.call(s,t))?!0:Reflect.has(e,t)},ownKeys(e){let t=new Set;return Reflect.ownKeys(e).forEach(e=>{t.add(e)}),Object.keys(s).forEach(e=>t.add(e)),Object.keys(c).forEach(e=>t.add(e)),Array.from(t)},getOwnPropertyDescriptor(e,t){if(Reflect.has(e,t))return Object.getOwnPropertyDescriptor(e,t);if(typeof t==`string`){if(c[t])return{configurable:!0,enumerable:!0,get(){return c[t].value},set(e){Ye(l,t,e)}};if(Object.prototype.hasOwnProperty.call(s,t))return{configurable:!0,enumerable:!1,value:s[t]}}}});return Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`){s[e]=(...e)=>t.apply(m,e);return}e===`__weapp_vite_inline_map`&&t&&typeof t==`object`&&(s[e]=t)}),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=d(e,()=>t.call(m));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(m);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(m);a?(l[e]=a,c[e]=d(e,n,a)):c[e]=d(e,n)}}),{boundMethods:s,computedRefs:c,computedSetters:l,dirtyComputedKeys:u,computedProxy:f,publicInstance:m,touchSetupMethodsVersion(){p.value+=1}}}const $e=Symbol(`wevu.noSetData`);function Y(e){return Object.defineProperty(e,$e,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function et(e){return typeof e==`object`&&!!e&&e[$e]===!0}function tt(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function X(e,t=new WeakMap,n){var r,i;let a=Me(e);if(typeof a==`bigint`){let e=Number(a);return Number.isSafeInteger(e)?e:a.toString()}if(typeof a==`symbol`)return a.toString();if(typeof a==`function`)return;if(typeof a!=`object`||!a)return a;if(et(a))return;let o=q(a)?G(a):a,s=(r=n==null?void 0:n._depth)==null?typeof(n==null?void 0:n.maxDepth)==`number`?Math.max(0,Math.floor(n.maxDepth)):1/0:r,c=(i=n==null?void 0:n._budget)==null?typeof(n==null?void 0:n.maxKeys)==`number`?{keys:Math.max(0,Math.floor(n.maxKeys))}:{keys:1/0}:i;if(s<=0||c.keys<=0)return o;let l=n==null?void 0:n.cache;if(l){let e=xe(o),t=l.get(o);if(t&&t.version===e)return t.value}if(t.has(o))return t.get(o);if(o instanceof Date)return o.getTime();if(o instanceof RegExp)return o.toString();if(o instanceof Map){let e=[];return t.set(o,e),o.forEach((n,r)=>{e.push([X(r,t),X(n,t)])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push(X(n,t))}),e}if(typeof ArrayBuffer<`u`){if(o instanceof ArrayBuffer)return o.byteLength;if(ArrayBuffer.isView(o)){let e=o;if(typeof e[Symbol.iterator]==`function`){let n=Array.from(e);return t.set(o,n),n.map(e=>X(e,t))}let n=Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));return t.set(o,n),n}}if(o instanceof Error)return{name:o.name,message:o.message};if(Array.isArray(o)){let e=[];return t.set(o,e),o.forEach((r,i)=>{let a=X(r,t,{...n,_depth:s-1,_budget:c});e[i]=a===void 0?null:a}),l&&l.set(o,{version:xe(o),value:e}),e}let u={};return t.set(o,u),Object.keys(o).forEach(e=>{if(--c.keys,c.keys<=0)return;let r=X(o[e],t,{...n,_depth:s-1,_budget:c});r!==void 0&&(u[e]=r)}),l&&l.set(o,{version:xe(o),value:u}),u}function nt(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function rt(e,t,n){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i of r)if(!Object.prototype.hasOwnProperty.call(t,i)||!n(e[i],t[i]))return!1;return!0}function it(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?nt(e,t,it):tt(e)&&tt(t)?rt(e,t,it):!1}function at(e){return e===void 0?null:e}function ot(e,t,n,r){if(!it(e,t)){if(tt(e)&&tt(t)){for(let i of Object.keys(t)){if(!Object.prototype.hasOwnProperty.call(e,i)){r[`${n}.${i}`]=at(t[i]);continue}ot(e[i],t[i],`${n}.${i}`,r)}for(let i of Object.keys(e))Object.prototype.hasOwnProperty.call(t,i)||(r[`${n}.${i}`]=null);return}if(Array.isArray(e)&&Array.isArray(t)){nt(e,t,it)||(r[n]=at(t));return}r[n]=at(t)}}function st(e,t){let n={};for(let r of Object.keys(t))ot(e[r],t[r],r,n);for(let r of Object.keys(e))Object.prototype.hasOwnProperty.call(t,r)||(n[r]=null);return n}function ct(e){let t=Object.keys(e).sort();if(t.length<=1)return e;let n=Object.create(null),r=[];for(let i of t){for(;r.length;){let e=r[r.length-1];if(i.startsWith(e))break;r.pop()}r.length||(n[i]=e[i],r.push(`${i}.`))}return n}function lt(e,t,n){if(t<=0)return t+1;if(e===null)return 4;let r=typeof e;if(r===`string`)return 2+e.length;if(r===`number`)return Number.isFinite(e)?String(e).length:4;if(r===`boolean`)return e?4:5;if(r===`undefined`||r===`function`||r===`symbol`||r!==`object`||n.has(e))return 4;if(n.add(e),Array.isArray(e)){let r=2;for(let i=0;i<e.length;i++)if(i&&(r+=1),r+=lt(e[i],t-r,n),r>t)return r;return r}let i=2;for(let[r,a]of Object.entries(e))if(i>2&&(i+=1),i+=2+r.length+1,i+=lt(a,t-i,n),i>t)return i;return i}function ut(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=lt(e,n+1,new WeakSet);if(i>n)return{fallback:!0,estimatedBytes:i,bytes:void 0};if(i>=n*.85&&r>2)try{let t=JSON.stringify(e).length;return{fallback:t>n,estimatedBytes:i,bytes:t}}catch(e){return{fallback:!1,estimatedBytes:i,bytes:void 0}}return{fallback:!1,estimatedBytes:i,bytes:void 0}}function dt(e){let{input:t,entryMap:n,getPlainByPath:r,mergeSiblingThreshold:i,mergeSiblingSkipArray:a,mergeSiblingMaxParentBytes:o,mergeSiblingMaxInflationRatio:s}=e;if(!i)return{out:t,merged:0};let c=Object.keys(t);if(c.length<i)return{out:t,merged:0};let l=new Map,u=new Set;for(let e of c){var d;let r=n.get(e);if(!r)continue;if(t[e]===null||r.op===`delete`){let t=e.lastIndexOf(`.`);t>0&&u.add(e.slice(0,t));continue}let i=e.lastIndexOf(`.`);if(i<=0)continue;let a=e.slice(0,i),o=(d=l.get(a))==null?[]:d;o.push(e),l.set(a,o)}let f=Array.from(l.entries()).filter(([e,t])=>t.length>=i&&!u.has(e)).sort((e,t)=>t[0].split(`.`).length-e[0].split(`.`).length);if(!f.length)return{out:t,merged:0};let p=Object.create(null);Object.assign(p,t);let m=0,h=new WeakMap,g=e=>{if(e&&typeof e==`object`){let t=h.get(e);if(t!==void 0)return t;let n=lt(e,1/0,new WeakSet);return h.set(e,n),n}return lt(e,1/0,new WeakSet)},_=(e,t)=>2+e.length+1+g(t);for(let[e,t]of f){if(Object.prototype.hasOwnProperty.call(p,e))continue;let n=t.filter(e=>Object.prototype.hasOwnProperty.call(p,e));if(n.length<i)continue;let c=r(e);if(!(a&&Array.isArray(c))&&!(o!==1/0&&_(e,c)>o)){if(s!==1/0){let t=0;for(let e of n)t+=_(e,p[e]);if(_(e,c)>t*s)continue}p[e]=c;for(let e of n)delete p[e];m+=1}}return{out:p,merged:m}}function ft(e){return e===void 0?null:e}function pt(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function mt(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}if(!pt(e)||!pt(t))return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}function ht(e,t,n,r){if(Object.is(e,t))return!0;if(n<=0)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!ht(e[i],t[i],n-1,r))return!1;return!0}if(!pt(e)||!pt(t))return!1;let i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let a of i)if(--r.keys,r.keys<=0||!Object.prototype.hasOwnProperty.call(t,a)||!ht(e[a],t[a],n-1,r))return!1;return!0}function gt(e,t,n,r){let i=t.split(`.`).filter(Boolean);if(!i.length)return;let a=e;for(let e=0;e<i.length-1;e++){let t=i[e];(!Object.prototype.hasOwnProperty.call(a,t)||a[t]==null||typeof a[t]!=`object`)&&(a[t]=Object.create(null)),a=a[t]}let o=i[i.length-1];if(r===`delete`)try{delete a[o]}catch(e){a[o]=null}else a[o]=n}function _t(e){let{state:t,computedRefs:n,includeComputed:r,shouldIncludeKey:i,plainCache:a,toPlainMaxDepth:o,toPlainMaxKeys:s}=e,c=new WeakMap,l=Object.create(null),u=Number.isFinite(s)?{keys:s}:void 0,d=q(t)?G(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=X(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=X(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function vt(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:a,computedCompareMaxDepth:o,computedCompareMaxKeys:s,currentAdapter:c,shouldIncludeKey:l,maxPatchKeys:u,maxPayloadBytes:d,mergeSiblingThreshold:f,mergeSiblingMaxInflationRatio:p,mergeSiblingMaxParentBytes:m,mergeSiblingSkipArray:h,elevateTopKeyThreshold:g,toPlainMaxDepth:_,toPlainMaxKeys:v,plainCache:y,pendingPatches:b,fallbackTopKeys:x,latestSnapshot:S,latestComputedSnapshot:C,needsFullSnapshot:w,emitDebug:T,runDiffUpdate:E}=e;if(b.size>u){w.value=!0;let e=b.size;b.clear(),r.clear(),T({mode:`diff`,reason:`maxPatchKeys`,pendingPatchKeys:e,payloadKeys:0}),E(`maxPatchKeys`);return}let D=new WeakMap,O=new Map,k=Object.create(null),A=Array.from(b.entries());if(Number.isFinite(g)&&g>0){let e=new Map;for(let[t]of A){var j;let n=t.split(`.`,1)[0];e.set(n,((j=e.get(n))==null?0:j)+1)}for(let[t,n]of e)n>=g&&x.add(t)}let M=A.filter(([e])=>{for(let t of x)if(e===t||e.startsWith(`${t}.`))return!1;return!0}),N=new Map(M);b.clear();let ee=e=>{let n=e.split(`.`).filter(Boolean),r=t;for(let e of n){if(r==null)return r;r=r[e]}return r},P=e=>{if(O.has(e))return O.get(e);let t=ft(X(ee(e),D,{cache:y,maxDepth:_,maxKeys:v}));return O.set(e,t),t};if(x.size){for(let e of x)l(e)&&(k[e]=P(e),N.set(e,{kind:`property`,op:`set`}));x.clear()}for(let[e,t]of M){if((t.kind===`array`?`set`:t.op)===`delete`){k[e]=null;continue}k[e]=P(e)}let te=0;if(i&&r.size){let e=Object.create(null),t=Array.from(r);r.clear(),te=t.length;for(let r of t){if(!l(r))continue;let t=X(n[r].value,D,{cache:y,maxDepth:_,maxKeys:v}),i=C[r];(a===`deep`?ht(i,t,o,{keys:s}):a===`shallow`?mt(i,t):Object.is(i,t))||(e[r]=ft(t),C[r]=t)}Object.assign(k,e)}let F=ct(k),I=0;if(f){let e=dt({input:F,entryMap:N,getPlainByPath:P,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});I=e.merged,F=ct(e.out)}let L=ut(F,d),R=L.fallback;if(T({mode:R?`diff`:`patch`,reason:R?`maxPayloadBytes`:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(F).length,mergedSiblingParents:I||void 0,computedDirtyKeys:te||void 0,estimatedBytes:L.estimatedBytes,bytes:L.bytes}),R){w.value=!0,b.clear(),r.clear(),E(`maxPayloadBytes`);return}if(Object.keys(F).length){for(let[e,t]of Object.entries(F)){let n=N.get(e);n?gt(S,e,t,n.kind===`array`?`set`:n.op):gt(S,e,t,`set`)}if(typeof c.setData==`function`){let e=c.setData(F);e&&typeof e.then==`function`&&e.catch(()=>{})}T({mode:`patch`,reason:`patch`,pendingPatchKeys:M.length,payloadKeys:Object.keys(F).length})}}function yt(e){let{state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,setDataStrategy:a,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,debug:b,debugWhen:x,debugSampleRate:S,runTracker:C,isMounted:w}=e,T=new WeakMap,E={},D=Object.create(null),O={value:a===`patch`},k=new Map,A=new Set,j=e=>{if(!b)return;let t=e.reason!==`patch`&&e.reason!==`diff`;if(!(x===`fallback`&&!t)&&!(S<1&&Math.random()>S))try{b(e)}catch(e){}},M=()=>_t({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:T,toPlainMaxDepth:v,toPlainMaxKeys:y}),N=(e=`diff`)=>{let t=M(),o=st(E,t);if(E=t,O.value=!1,k.clear(),a===`patch`&&i){D=Object.create(null);for(let e of Object.keys(n))u(e)&&(D[e]=t[e]);r.clear()}if(Object.keys(o).length){if(typeof l.setData==`function`){let e=l.setData(o);e&&typeof e.then==`function`&&e.catch(()=>{})}j({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(o).length})}};return{job:e=>{w()&&(C(),a===`patch`&&!O.value?vt({state:t,computedRefs:n,dirtyComputedKeys:r,includeComputed:i,computedCompare:o,computedCompareMaxDepth:s,computedCompareMaxKeys:c,currentAdapter:l,shouldIncludeKey:u,maxPatchKeys:d,maxPayloadBytes:f,mergeSiblingThreshold:p,mergeSiblingMaxInflationRatio:m,mergeSiblingMaxParentBytes:h,mergeSiblingSkipArray:g,elevateTopKeyThreshold:_,toPlainMaxDepth:v,toPlainMaxKeys:y,plainCache:T,pendingPatches:k,fallbackTopKeys:A,latestSnapshot:E,latestComputedSnapshot:D,needsFullSnapshot:O,emitDebug:j,runDiffUpdate:N}):N(O.value?`needsFullSnapshot`:`diff`))},mutationRecorder:(e,t)=>{if(!w()||e.root!==t)return;if(!e.path){if(Array.isArray(e.fallbackTopKeys)&&e.fallbackTopKeys.length)for(let t of e.fallbackTopKeys)A.add(t);else O.value=!0;return}let n=e.path.split(`.`,1)[0];u(n)&&k.set(e.path,{kind:e.kind,op:e.op})},snapshot:()=>a===`patch`?M():{...E},getLatestSnapshot:()=>E}}function bt(e){var t,n,r,i,a;let o=(t=e==null?void 0:e.includeComputed)==null?!0:t,s=(n=e==null?void 0:e.strategy)==null?`diff`:n,c=typeof(e==null?void 0:e.maxPatchKeys)==`number`?Math.max(0,e.maxPatchKeys):1/0,l=typeof(e==null?void 0:e.maxPayloadBytes)==`number`?Math.max(0,e.maxPayloadBytes):1/0,u=typeof(e==null?void 0:e.mergeSiblingThreshold)==`number`?Math.max(2,Math.floor(e.mergeSiblingThreshold)):0,d=typeof(e==null?void 0:e.mergeSiblingMaxInflationRatio)==`number`?Math.max(0,e.mergeSiblingMaxInflationRatio):1.25,f=typeof(e==null?void 0:e.mergeSiblingMaxParentBytes)==`number`?Math.max(0,e.mergeSiblingMaxParentBytes):1/0,p=(r=e==null?void 0:e.mergeSiblingSkipArray)==null?!0:r,m=(i=e==null?void 0:e.computedCompare)==null?s===`patch`?`deep`:`reference`:i,h=typeof(e==null?void 0:e.computedCompareMaxDepth)==`number`?Math.max(0,Math.floor(e.computedCompareMaxDepth)):4,g=typeof(e==null?void 0:e.computedCompareMaxKeys)==`number`?Math.max(0,Math.floor(e.computedCompareMaxKeys)):200,_=e==null?void 0:e.prelinkMaxDepth,v=e==null?void 0:e.prelinkMaxKeys,y=e==null?void 0:e.debug,b=(a=e==null?void 0:e.debugWhen)==null?`fallback`:a,x=typeof(e==null?void 0:e.debugSampleRate)==`number`?Math.min(1,Math.max(0,e.debugSampleRate)):1,S=typeof(e==null?void 0:e.elevateTopKeyThreshold)==`number`?Math.max(0,Math.floor(e.elevateTopKeyThreshold)):1/0,C=typeof(e==null?void 0:e.toPlainMaxDepth)==`number`?Math.max(0,Math.floor(e.toPlainMaxDepth)):1/0,w=typeof(e==null?void 0:e.toPlainMaxKeys)==`number`?Math.max(0,Math.floor(e.toPlainMaxKeys)):1/0,T=Array.isArray(e==null?void 0:e.pick)&&e.pick.length>0?new Set(e.pick):void 0,E=Array.isArray(e==null?void 0:e.omit)&&e.omit.length>0?new Set(e.omit):void 0;return{includeComputed:o,setDataStrategy:s,maxPatchKeys:c,maxPayloadBytes:l,mergeSiblingThreshold:u,mergeSiblingMaxInflationRatio:d,mergeSiblingMaxParentBytes:f,mergeSiblingSkipArray:p,computedCompare:m,computedCompareMaxDepth:h,computedCompareMaxKeys:g,prelinkMaxDepth:_,prelinkMaxKeys:v,debug:y,debugWhen:b,debugSampleRate:x,elevateTopKeyThreshold:S,toPlainMaxDepth:C,toPlainMaxKeys:w,pickSet:T,omitSet:E,shouldIncludeKey:e=>!(T&&!T.has(e)||E&&E.has(e))}}function xt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function St(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Ct(e,t,n){let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];(r[n]==null||typeof r[n]!=`object`)&&(r[n]={}),r=r[n]}r[t[t.length-1]]=n}function wt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])Ye(n,a,i);else{let t=e[a];J(t)?t.value=i:e[a]=i}return}if(t[a]){Ye(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),Ct(e[a],o,i)}function Tt(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function Et(e){return Xe(e)}function Dt(e,t,n,r){return(i,a)=>{let o=St(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Tt(e,o),c=e=>{wt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:Et,formatter:e=>e,...a};return{get value(){return s()},set value(e){c(e)},update(e){c(e)},model(e){let t={...l,...e},n=`on${xt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}const Ot=`__wevuDefaultsScope`;let kt={};function At(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function jt(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=At(e.setData),i=At(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=At(e.options),o=At(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function Mt(e,t){return jt(e,t)}function Nt(e,t){return{app:jt(e.app,t.app),component:jt(e.component,t.component)}}function Pt(e){kt=Nt(kt,e)}function Ft(){kt={}}function It(e){return Mt(kt.app,e)}function Lt(e){return Mt(kt.component,e)}let Rt,zt;function Bt(){return Rt}function Vt(e){Rt=e}function Ht(){return zt}function Ut(e){zt=e}function Z(e){if(!Rt)throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return Rt}function Wt(e){return e.__wevuHooks||(e.__wevuHooks=Object.create(null)),e.__wevuHooks}function Q(e,t,n,{single:r=!1}={}){let i=Wt(e);if(r)i[t]=n;else{var a;((a=i[t])==null?i[t]=[]:a).push(n)}}function Gt(e,t){var n,r;let i=(r=(n=e).__wevuShareHookBridges)==null?n.__wevuShareHookBridges=Object.create(null):r;if(typeof i[t]==`function`)return;let a=e[t],o=function(...e){var n;let r=this.__wevuHooks,i=r==null?void 0:r[t],o=this.__wevu,s=(n=o==null?void 0:o.proxy)==null?this:n,c;if(typeof i==`function`)try{c=i.apply(s,e)}catch(e){c=void 0}else if(Array.isArray(i))for(let t of i)try{c=t.apply(s,e)}catch(e){}if(c!==void 0)return c;if(typeof a==`function`)return a.apply(this,e)};i[t]=o,e[t]=o}function Kt(e){var t;let n=typeof wx<`u`?wx:void 0;if(!n||typeof n.showShareMenu!=`function`)return;let r=(t=e.__wevuHooks)==null?{}:t,i=typeof r.onShareAppMessage==`function`,a=typeof r.onShareTimeline==`function`;if(!i&&!a)return;let o=[`shareAppMessage`];a&&o.push(`shareTimeline`);try{n.showShareMenu({withShareTicket:!0,menus:o})}catch(e){}}function $(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(Array.isArray(a))for(let e of a)try{e.apply(s,n)}catch(e){}else if(typeof a==`function`)try{a.apply(s,n)}catch(e){}}function qt(e,t,n=[]){var r;let i=e.__wevuHooks;if(!i)return;let a=i[t];if(!a)return;let o=e.__wevu,s=(r=o==null?void 0:o.proxy)==null?e:r;if(typeof a==`function`)try{return a.apply(s,n)}catch(e){return}if(Array.isArray(a)){let e;for(let t of a)try{e=t.apply(s,n)}catch(e){}return e}}function Jt(e){Q(Z(`onLaunch`),`onLaunch`,e)}function Yt(e){Q(Z(`onPageNotFound`),`onPageNotFound`,e)}function Xt(e){Q(Z(`onUnhandledRejection`),`onUnhandledRejection`,e)}function Zt(e){Q(Z(`onThemeChange`),`onThemeChange`,e)}function Qt(e){Q(Z(`onShow`),`onShow`,e)}function $t(e){Q(Z(`onLoad`),`onLoad`,e)}function en(e){Q(Z(`onHide`),`onHide`,e)}function tn(e){Q(Z(`onUnload`),`onUnload`,e)}function nn(e){Q(Z(`onReady`),`onReady`,e)}function rn(e){Q(Z(`onPullDownRefresh`),`onPullDownRefresh`,e)}function an(e){Q(Z(`onReachBottom`),`onReachBottom`,e)}function on(e){Q(Z(`onPageScroll`),`onPageScroll`,e)}function sn(e){Q(Z(`onRouteDone`),`onRouteDone`,e)}function cn(e){Q(Z(`onTabItemTap`),`onTabItemTap`,e)}function ln(e){Q(Z(`onResize`),`onResize`,e)}function un(e){Q(Z(`onMoved`),`onMoved`,e)}function dn(e){Q(Z(`onError`),`onError`,e)}function fn(e){Q(Z(`onSaveExitState`),`onSaveExitState`,e,{single:!0})}function pn(e){let t=Z(`onShareAppMessage`);Q(t,`onShareAppMessage`,e,{single:!0}),Gt(t,`onShareAppMessage`),Kt(t)}function mn(e){let t=Z(`onShareTimeline`);Q(t,`onShareTimeline`,e,{single:!0}),Gt(t,`onShareTimeline`),Kt(t)}function hn(e){let t=Z(`onAddToFavorites`);Q(t,`onAddToFavorites`,e,{single:!0}),Gt(t,`onAddToFavorites`)}function gn(e){Q(Z(`onMounted`),`onReady`,e)}function _n(e){Q(Z(`onUpdated`),`__wevuOnUpdated`,e)}function vn(e){Z(`onBeforeUnmount`),e()}function yn(e){Q(Z(`onUnmounted`),`onUnload`,e)}function bn(e){Z(`onBeforeMount`),e()}function xn(e){Q(Z(`onBeforeUpdate`),`__wevuOnBeforeUpdate`,e)}function Sn(e){let t=Z(`onErrorCaptured`);Q(t,`onError`,n=>e(n,t,``))}function Cn(e){Q(Z(`onActivated`),`onShow`,e)}function wn(e){Q(Z(`onDeactivated`),`onHide`,e)}function Tn(e){Z(`onServerPrefetch`)}function En(e,t){$(e,t===`before`?`__wevuOnBeforeUpdate`:`__wevuOnUpdated`)}function Dn(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function On(e,t,n,r){var i,a,o,s;let c=(i=(a=n==null||(o=n.currentTarget)==null?void 0:o.dataset)==null?n==null||(s=n.target)==null?void 0:s.dataset:a)==null?{}:i,l=c==null?void 0:c.wvInlineId;if(l&&r){let t=r[l];if(t&&typeof t.fn==`function`){let r={},i=Array.isArray(t.keys)?t.keys:[];for(let e=0;e<i.length;e+=1){let t=i[e];r[t]=c==null?void 0:c[`wvS${e}`]}let a=t.fn(e,r,n);return typeof a==`function`?a.call(e,n):a}}let u=typeof t==`string`?t:void 0;if(!u)return;let d=c==null?void 0:c.wvArgs,f=[];if(Array.isArray(d))f=d;else if(typeof d==`string`)try{f=JSON.parse(d)}catch(e){try{f=JSON.parse(Dn(d))}catch(e){f=[]}}Array.isArray(f)||(f=[]);let p=f.map(e=>e===`$event`?n:e),m=e==null?void 0:e[u];if(typeof m==`function`)return m.apply(e,p)}const kn=new Map;let An=0;function jn(){return An+=1,`wv${An}`}function Mn(e,t,n){var r;let i=(r=kn.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(i.snapshot=t,i.proxy=n,kn.set(e,i),i.subscribers.size)for(let e of i.subscribers)try{e(t,n)}catch(e){}}function Nn(e){kn.delete(e)}function Pn(e,t){var n;let r=(n=kn.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return r.subscribers.add(t),kn.set(e,r),()=>{let n=kn.get(e);n&&n.subscribers.delete(t)}}function Fn(e){var t;return(t=kn.get(e))==null?void 0:t.proxy}function In(e){var t;return(t=kn.get(e))==null?void 0:t.snapshot}function Ln(e,t,n){var r;try{t.state.__wvOwnerId=n}catch(e){}try{e.__wvOwnerId=n}catch(e){}let i=typeof t.snapshot==`function`?t.snapshot():{},a=(r=e.__wevuProps)==null?e.properties:r;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Mn(n,i,t.proxy)}function Rn(e){return e.kind===`component`}function zn(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return J(r)?r.value:r},set(e,t,n,r){let i=e[t];return J(i)&&!J(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function Bn(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=zn(t);try{Object.defineProperty(e,`__wevuExposeProxy`,{value:r,configurable:!0,enumerable:!1,writable:!1}),Object.defineProperty(e,`__wevuExposeRaw`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuExposeProxy=r,e.__wevuExposeRaw=t}return r}function Vn(e,t){if(!t||typeof t!=`object`)return e;let n=t;return Y(new Proxy(e,{get(e,t,r){return Reflect.has(e,t)?Reflect.get(e,t,r):n[t]},set(e,t,r,i){return t in n?(n[t]=r,!0):Reflect.set(e,t,r,i)},has(e,t){return Reflect.has(e,t)||t in n},ownKeys(e){return Array.from(new Set([...Reflect.ownKeys(e),...Reflect.ownKeys(n)]))},getOwnPropertyDescriptor(e,t){return Reflect.has(e,t)?Object.getOwnPropertyDescriptor(e,t):Object.getOwnPropertyDescriptor(n,t)}}))}function Hn(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n.__wevuExposed;return r&&typeof r==`object`?Bn(n,r):(t=n.__wevu)!=null&&t.proxy?n.__wevu.proxy:e}function Un(e){return e.__wevuTemplateRefMap}function Wn(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function Gn(e,t){var n,r;let i=(n=(r=e.__wevu)==null?void 0:r.proxy)==null?e:n,a;if(t.get)try{a=t.get.call(i)}catch(e){a=void 0}return a==null&&t.name&&(a=t.name),typeof a==`function`?{type:`function`,fn:a}:J(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function Kn(e){var t,n;let r=(t=(n=e.__wevu)==null?void 0:n.state)==null?e:t,i=r.$refs;if(i&&typeof i==`object`)return i;let a=Y(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function qn(e){let t=e;return t&&typeof t.createSelectorQuery==`function`?t.createSelectorQuery():typeof wx<`u`&&typeof wx.createSelectorQuery==`function`?wx.createSelectorQuery().in(t):null}function Jn(e,t,n,r,i){let a=qn(e);return a?(r(n.multiple?a.selectAll(t):a.select(t)),new Promise(e=>{a.exec(t=>{var r;let a=Array.isArray(t)?t[0]:null;if(n.index!=null&&Array.isArray(a)){var o;a=(o=a[n.index])==null?null:o}if(i){var s;i((s=a)==null?null:s)}e((r=a)==null?null:r)})})):(i&&i(null),Promise.resolve(null))}function Yn(e,t,n){return Y({selector:t,boundingClientRect:r=>Jn(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>Jn(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>Jn(e,t,n,e=>e.fields(r),i),node:r=>Jn(e,t,n,e=>e.node(),r)})}function Xn(e,t){let n=e;if(!n)return t.inFor?Y([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return Y((Array.isArray(r)?r:[]).map((n,r)=>Vn(Yn(e,t.selector,{multiple:!0,index:r}),Hn(n))))}return Y([])}let r=Yn(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?Vn(r,Hn(n.selectComponent(t.selector))):r}function Zn(e,t,n){return t.inFor?Y((Array.isArray(n)?n:[]).map((n,r)=>Yn(e,t.selector,{multiple:!0,index:r}))):n?Yn(e,t.selector,{multiple:!1}):null}function Qn(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(!e.__wevuReadyCalled){t==null||t();return}if(!e.__wevu){t==null||t();return}let r=Un(e),i=n.filter(e=>!Rn(e)),a=n.filter(e=>Rn(e)).map(t=>({binding:t,value:Xn(e,t)})),o=n=>{var i,a;let o=Kn(e),s=new Map,c=new Set,l=(i=(a=e.__wevu)==null?void 0:a.proxy)==null?e:i;n.forEach(t=>{let n=t.binding,r=t.value,i=Gn(e,n);if(i.type===`function`){n.inFor&&Array.isArray(r)?r.length?r.forEach(e=>i.fn.call(l,e)):i.fn.call(l,null):i.fn.call(l,r==null?null:r);return}if(i.type===`ref`){i.ref.value=r;return}if(i.type===`name`){var a;c.add(i.name);let e=(a=s.get(i.name))==null?{values:[],count:0,hasFor:!1}:a;e.count+=1,e.hasFor=e.hasFor||n.inFor,n.inFor?Array.isArray(r)&&e.values.push(...r):r!=null&&e.values.push(r),s.set(i.name,e)}});for(let[e,t]of s){let n;n=t.values.length?t.hasFor||t.values.length>1||t.count>1?Y(t.values):t.values[0]:t.hasFor?Y([]):null,o[e]=n,Wn(r,e,n)}for(let e of Object.keys(o))c.has(e)||delete o[e];t==null||t()};if(!i.length){o(a);return}let s=qn(e);if(!s){o(a);return}let c=[];for(let e of i)(e.inFor?s.selectAll(e.selector):s.select(e.selector)).boundingClientRect(),c.push({binding:e});s.exec(t=>{let n=c.map((n,r)=>{let i=Array.isArray(t)?t[r]:null;return{binding:n.binding,value:Zn(e,n.binding,i)}});o([...a,...n])})}function $n(e,t){let n=e.__wevuTemplateRefs;if(!n||!n.length){t==null||t();return}if(t){var r;let n=(r=e.__wevuTemplateRefsCallbacks)==null?[]:r;n.push(t),e.__wevuTemplateRefsCallbacks||Object.defineProperty(e,`__wevuTemplateRefsCallbacks`,{value:n,configurable:!0,enumerable:!1,writable:!0})}e.__wevuTemplateRefsPending||(e.__wevuTemplateRefsPending=!0,o(()=>{e.__wevuTemplateRefsPending=!1,Qn(e,()=>{let t=e.__wevuTemplateRefsCallbacks;!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function er(e){var t,n;let r=e.__wevuTemplateRefs;if(!r||!r.length)return;let i=Kn(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=Un(e);for(let t of r){let n=Gn(e,t),r=t.inFor?Y([]):null;if(n.type===`function`){n.fn.call(a,null);continue}if(n.type===`ref`){n.ref.value=r;continue}n.type===`name`&&(o.add(n.name),i[n.name]=r,Wn(s,n.name,r))}for(let e of Object.keys(i))o.has(e)||delete i[e]}function tr(e,t,n){var r;if(typeof e!=`function`)return;let i=(r=n==null?void 0:n.runtime)==null?{methods:Object.create(null),state:{},proxy:{},watch:()=>()=>{},bindModel:()=>{}}:r;return n&&(n.runtime=i),e(t,{...n==null?{}:n,runtime:i})}function nr(e,t,n){if(typeof e==`function`)return{handler:e.bind(t.proxy),options:{}};if(typeof e==`string`){var r,i;let a=(r=(i=t.methods)==null?void 0:i[e])==null?n[e]:r;return typeof a==`function`?{handler:a.bind(t.proxy),options:{}}:void 0}if(!e||typeof e!=`object`)return;let a=nr(e.handler,t,n);if(!a)return;let o={...a.options};return e.immediate!==void 0&&(o.immediate=e.immediate),e.deep!==void 0&&(o.deep=e.deep),{handler:a.handler,options:o}}function rr(e,t){let n=t.split(`.`).map(e=>e.trim()).filter(Boolean);return n.length?()=>{let t=e;for(let e of n){if(t==null)return t;t=t[e]}return t}:()=>e}function ir(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=nr(o,e,n);if(!t)continue;let s=rr(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function ar(){return Object.freeze(Object.create(null))}function or(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function sr(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e.__wevu)return e.__wevu;let p=jn(),m=i!=null&&i.deferSetData?(e=>{let t,n=!1,r={setData(r){if(!n){var i;t={...(i=t)==null?{}:i,...r};return}if(typeof e.setData==`function`)return e.setData(r)}};return r.__wevu_enableSetData=()=>{if(n=!0,t&&Object.keys(t).length&&typeof e.setData==`function`){let n=t;t=void 0,e.setData(n)}},r})(e):{setData(t){if(typeof e.setData==`function`)return e.setData(t)}},h,g=()=>{var t;if(!h||typeof h.snapshot!=`function`)return;let n=h.snapshot(),r=(t=e.__wevuProps)==null?e.properties:t;if(r&&typeof r==`object`)for(let[e,t]of Object.entries(r))n[e]=t;Mn(p,n,h.proxy)},_={...m,setData(t){let n=m.setData(t);return g(),$n(e),n}},v=t.mount({..._});h=v;let y=(a=v==null?void 0:v.proxy)==null?{}:a,b=(o=v==null?void 0:v.state)==null?{}:o,x=(s=v==null?void 0:v.computed)==null?Object.create(null):s;if(!(v!=null&&v.methods))try{v.methods=Object.create(null)}catch(e){}let S=(c=v==null?void 0:v.methods)==null?Object.create(null):c,C=(l=v==null?void 0:v.watch)==null?(()=>or()):l,w=(u=v==null?void 0:v.bindModel)==null?(()=>{}):u,T={...v==null?{}:v,state:b,proxy:y,methods:S,computed:x,watch:C,bindModel:w,snapshot:(d=v==null?void 0:v.snapshot)==null?(()=>Object.create(null)):d,unmount:(f=v==null?void 0:v.unmount)==null?(()=>{}):f};if(Object.defineProperty(e,`$wevu`,{value:T,configurable:!0,enumerable:!1,writable:!1}),e.__wevu=T,Ln(e,T,p),n){let t=ir(T,n,e);t.length&&(e.__wevuWatchStops=t)}if(r){let t=ye({...e.properties||{}});try{Object.defineProperty(e,`__wevuProps`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuProps=t}let n=ye(Object.create(null)),i=new Set(Array.isArray(e.__wevuPropKeys)?e.__wevuPropKeys:[]),a=e=>typeof b==`object`&&!!b&&Object.prototype.hasOwnProperty.call(b,e);(()=>{let t=e.properties&&typeof e.properties==`object`?e.properties:void 0;for(let e of Object.keys(n))(!t||!Object.prototype.hasOwnProperty.call(t,e)||i.has(e)||a(e))&&delete n[e];if(t)for(let[e,r]of Object.entries(t))i.has(e)||a(e)||(n[e]=r)})();try{Object.defineProperty(e,`__wevuAttrs`,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuAttrs=n}let o={props:t,runtime:T,state:b,proxy:y,bindModel:w.bind(T),watch:C.bind(T),instance:e,emit:(t,n,r)=>{typeof e.triggerEvent==`function`&&e.triggerEvent(t,n,r)},expose:t=>{e.__wevuExposed=t},attrs:n,slots:ar()};Vt(e),Ut(o);try{let e=tr(r,t,o),n=!1;if(e&&typeof e==`object`&&Object.keys(e).forEach(t=>{let r=e[t];typeof r==`function`?(v.methods[t]=(...e)=>r.apply(v.proxy,e),n=!0):v.state[t]=r}),n){var E;(E=v.__wevu_touchSetupMethodsVersion)==null||E.call(v)}}finally{Ut(void 0),Vt(void 0)}}try{let t=v.methods;for(let n of Object.keys(t))typeof e[n]!=`function`&&(e[n]=function(...e){var t;let r=(t=this.$wevu)==null||(t=t.methods)==null?void 0:t[n];if(typeof r==`function`)return r.apply(this.$wevu.proxy,e)})}catch(e){}return v}function cr(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function lr(e){let t=e.__wevu,n=e.__wvOwnerId;n&&Nn(n),er(e),t&&e.__wevuHooks&&$(e,`onUnload`,[]),e.__wevuHooks&&(e.__wevuHooks=void 0);let r=e.__wevuWatchStops;if(Array.isArray(r))for(let e of r)try{e()}catch(e){}e.__wevuWatchStops=void 0,t&&t.unmount(),delete e.__wevu,`$wevu`in e&&delete e.$wevu}function ur(e,t,n,r,i){var a;if(typeof App!=`function`)throw TypeError(`createApp 需要全局 App 构造器可用`);let o=Object.keys(t==null?{}:t),s={...i};s.globalData=(a=s.globalData)==null?{}:a,s.__weapp_vite_inline||(s.__weapp_vite_inline=function(e){var t,n,r,i,a;let o=(t=e==null||(n=e.currentTarget)==null?void 0:n.dataset)==null?e==null||(r=e.target)==null?void 0:r.dataset:t,s=o==null?void 0:o.wvHandler,c=this.__wevu;return On((i=c==null?void 0:c.proxy)==null?this:i,s,e,c==null||(a=c.methods)==null?void 0:a.__weapp_vite_inline_map)});let c=s.onLaunch;s.onLaunch=function(...t){sr(this,e,n,r),$(this,`onLaunch`,t),typeof c==`function`&&c.apply(this,t)};let l=s.onShow;s.onShow=function(...e){$(this,`onShow`,e),typeof l==`function`&&l.apply(this,e)};let u=s.onHide;s.onHide=function(...e){$(this,`onHide`,e),typeof u==`function`&&u.apply(this,e)};let d=s.onError;s.onError=function(...e){$(this,`onError`,e),typeof d==`function`&&d.apply(this,e)};let f=s.onPageNotFound;s.onPageNotFound=function(...e){$(this,`onPageNotFound`,e),typeof f==`function`&&f.apply(this,e)};let p=s.onUnhandledRejection;s.onUnhandledRejection=function(...e){$(this,`onUnhandledRejection`,e),typeof p==`function`&&p.apply(this,e)};let m=s.onThemeChange;s.onThemeChange=function(...e){$(this,`onThemeChange`,e),typeof m==`function`&&m.apply(this,e)};for(let e of o){let t=s[e];s[e]=function(...n){var r;let i=this.__wevu,a,o=i==null||(r=i.methods)==null?void 0:r[e];return o&&(a=o.apply(i.proxy,n)),typeof t==`function`?t.apply(this,n):a}}App(s)}function dr(e){let{features:t,userOnSaveExitState:n,userOnPullDownRefresh:r,userOnReachBottom:i,userOnPageScroll:a,userOnRouteDone:o,userOnTabItemTap:s,userOnResize:c,userOnShareAppMessage:l,userOnShareTimeline:u,userOnAddToFavorites:d}=e,f=typeof r==`function`||!!t.enableOnPullDownRefresh,p=typeof i==`function`||!!t.enableOnReachBottom,m=typeof a==`function`||!!t.enableOnPageScroll,h=typeof o==`function`||!!t.enableOnRouteDone,g=typeof s==`function`||!!t.enableOnTabItemTap,_=typeof c==`function`||!!t.enableOnResize,v=typeof u==`function`||!!t.enableOnShareTimeline,y=typeof l==`function`||!!t.enableOnShareAppMessage,b=typeof d==`function`||!!t.enableOnAddToFavorites,x=typeof n==`function`||!!t.enableOnSaveExitState,S=()=>{};return{enableOnPullDownRefresh:f,enableOnReachBottom:p,enableOnPageScroll:m,enableOnRouteDone:h,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:y,enableOnShareTimeline:v,enableOnAddToFavorites:b,enableOnSaveExitState:x,effectiveOnSaveExitState:typeof n==`function`?n:(()=>({data:void 0})),effectiveOnPullDownRefresh:typeof r==`function`?r:S,effectiveOnReachBottom:typeof i==`function`?i:S,effectiveOnPageScroll:typeof a==`function`?a:S,effectiveOnRouteDone:typeof o==`function`?o:S,effectiveOnTabItemTap:typeof s==`function`?s:S,effectiveOnResize:typeof c==`function`?c:S,effectiveOnShareAppMessage:typeof l==`function`?l:S,effectiveOnShareTimeline:typeof u==`function`?u:S,effectiveOnAddToFavorites:typeof d==`function`?d:(()=>({}))}}let fr=!1,pr;function mr(e){let t=e.options;if(t&&typeof t==`object`)return t;if(typeof getCurrentPages==`function`){let e=getCurrentPages(),t=Array.isArray(e)?e[e.length-1]:void 0,n=t&&typeof t==`object`?t.options:void 0;if(n&&typeof n==`object`)return n}return{}}function hr(){if(fr)return;fr=!0;let e=typeof wx<`u`?wx:void 0;if(!e||typeof e!=`object`)return;let t=e.startPullDownRefresh;typeof t==`function`&&(e.startPullDownRefresh=function(...e){let n=t.apply(this,e);return pr&&$(pr,`onPullDownRefresh`,[]),n});let n=e.pageScrollTo;typeof n==`function`&&(e.pageScrollTo=function(e,...t){let r=n.apply(this,[e,...t]);return pr&&$(pr,`onPageScroll`,[e==null?{}:e]),r})}function gr(e){let{enableOnShareAppMessage:t,enableOnShareTimeline:n}=e;if(!t&&!n)return;let r=typeof wx<`u`?wx:void 0;if(!r||typeof r.showShareMenu!=`function`)return;let i=e=>{try{r.showShareMenu(e)}catch(e){}};if(!(t||n))return;let a=[`shareAppMessage`];n&&a.push(`shareTimeline`),i({withShareTicket:!0,menus:a})}function _r(e){let{runtimeApp:t,watch:n,setup:r,userOnLoad:i,userOnUnload:a,userOnShow:o,userOnHide:s,userOnReady:c,isPage:l,enableOnSaveExitState:u,enableOnPullDownRefresh:d,enableOnReachBottom:f,enableOnPageScroll:p,enableOnRouteDone:m,enableOnTabItemTap:h,enableOnResize:g,enableOnShareAppMessage:_,enableOnShareTimeline:v,enableOnAddToFavorites:y,effectiveOnSaveExitState:b,effectiveOnPullDownRefresh:x,effectiveOnReachBottom:S,effectiveOnPageScroll:C,effectiveOnRouteDone:w,effectiveOnTabItemTap:T,effectiveOnResize:E,effectiveOnShareAppMessage:D,effectiveOnShareTimeline:O,effectiveOnAddToFavorites:k,hasHook:A}=e,j={onLoad(...e){if(!this.__wevuOnLoadCalled&&(this.__wevuOnLoadCalled=!0,sr(this,t,n,r),cr(this),l&&gr({enableOnShareAppMessage:_,enableOnShareTimeline:v}),$(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&pr===this&&(pr=void 0),lr(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(hr(),pr=this,this.__wevuOnLoadCalled||j.onLoad.call(this,mr(this)),gr({enableOnShareAppMessage:_,enableOnShareTimeline:v}),this.__wevuRouteDoneCalled=!1),$(this,`onShow`,e),typeof o==`function`)return o.apply(this,e);if(l&&m&&this.__wevuReadyCalled&&!this.__wevuRouteDoneCalled){var t;return(t=j.onRouteDone)==null?void 0:t.call(this)}},onHide(...e){if(l&&pr===this&&(pr=void 0),$(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this.__wevuOnLoadCalled||j.onLoad.call(this,mr(this)),gr({enableOnShareAppMessage:_,enableOnShareTimeline:v})),!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,$n(this,()=>{if($(this,`onReady`,e),typeof c==`function`&&c.apply(this,e),l&&m&&!this.__wevuRouteDoneCalled){var t;(t=j.onRouteDone)==null||t.call(this)}});return}if(typeof c==`function`)return c.apply(this,e)}};return u&&(j.onSaveExitState=function(...e){let t=qt(this,`onSaveExitState`,e);return t===void 0?b.apply(this,e):t}),d&&(j.onPullDownRefresh=function(...e){if($(this,`onPullDownRefresh`,e),!A(this,`onPullDownRefresh`))return x.apply(this,e)}),f&&(j.onReachBottom=function(...e){if($(this,`onReachBottom`,e),!A(this,`onReachBottom`))return S.apply(this,e)}),p&&(j.onPageScroll=function(...e){if($(this,`onPageScroll`,e),!A(this,`onPageScroll`))return C.apply(this,e)}),m&&(j.onRouteDone=function(...e){if(this.__wevuRouteDoneCalled=!0,$(this,`onRouteDone`,e),!A(this,`onRouteDone`))return w.apply(this,e)}),h&&(j.onTabItemTap=function(...e){if($(this,`onTabItemTap`,e),!A(this,`onTabItemTap`))return T.apply(this,e)}),g&&(j.onResize=function(...e){if($(this,`onResize`,e),!A(this,`onResize`))return E.apply(this,e)}),_&&(j.onShareAppMessage=function(...e){let t=qt(this,`onShareAppMessage`,e);return t===void 0?D.apply(this,e):t}),v&&(j.onShareTimeline=function(...e){let t=qt(this,`onShareTimeline`,e);return t===void 0?O.apply(this,e):t}),y&&(j.onAddToFavorites=function(...e){let t=qt(this,`onAddToFavorites`,e);return t===void 0?k.apply(this,e):t}),j}function vr(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r.__weapp_vite_inline||(r.__weapp_vite_inline=function(e){var t,n,r,i,a;let o=(t=e==null||(n=e.currentTarget)==null?void 0:n.dataset)==null?e==null||(r=e.target)==null?void 0:r.dataset:t,s=o==null?void 0:o.wvHandler,c=this.__wevu;return On((i=c==null?void 0:c.proxy)==null?this:i,s,e,c==null||(a=c.methods)==null?void 0:a.__weapp_vite_inline_map)}),r.__weapp_vite_model||(r.__weapp_vite_model=function(e){var t,n,r;let i=(t=e==null||(n=e.currentTarget)==null||(n=n.dataset)==null?void 0:n.wvModel)==null?e==null||(r=e.target)==null||(r=r.dataset)==null?void 0:r.wvModel:t;if(typeof i!=`string`||!i)return;let a=this.__wevu;if(!a||typeof a.bindModel!=`function`)return;let o=Xe(e);try{a.bindModel(i).update(o)}catch(e){}}),!r.__weapp_vite_owner&&typeof(n==null?void 0:n.__weapp_vite_owner)==`function`&&(r.__weapp_vite_owner=n.__weapp_vite_owner);let i=Object.keys(n==null?{}:n);for(let e of i){if(e.startsWith(`__weapp_vite_`))continue;let t=r[e];r[e]=function(...n){var r;let i=this.__wevu,a,o=i==null||(r=i.methods)==null?void 0:r[e];if(o&&(a=o.apply(i.proxy,n)),typeof t==`function`){let e=t.apply(this,n);return e===void 0?a:e}return a}}return{finalMethods:r}}function yr(e){var t;let n=e.__wevu,r=e.__wvOwnerId;if(!n||!r||typeof n.snapshot!=`function`)return;let i=n.snapshot(),a=(t=e.__wevuProps)==null?e.properties:t;if(a&&typeof a==`object`)for(let[e,t]of Object.entries(a))i[e]=t;Mn(r,i,n.proxy)}function br(e){let{restOptions:t,userObservers:n}=e,r=t.properties&&typeof t.properties==`object`?Object.keys(t.properties):[],i=new Set(r),a=e=>{try{Object.defineProperty(e,`__wevuPropKeys`,{value:r,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuPropKeys=r}},o=e=>{let t=e.__wevuAttrs;if(!t||typeof t!=`object`)return;let n=t=>{var n;let r=(n=e.__wevu)==null?void 0:n.state;return typeof r==`object`&&!!r&&Object.prototype.hasOwnProperty.call(r,t)},r=e.properties,a=r&&typeof r==`object`?r:void 0,o=Object.keys(t);for(let e of o)if(!a||!Object.prototype.hasOwnProperty.call(a,e)||i.has(e)||n(e))try{delete t[e]}catch(e){}if(!a){yr(e);return}for(let[e,r]of Object.entries(a))if(!(i.has(e)||n(e)))try{t[e]=r}catch(e){}yr(e)},s=e=>{let t=e.__wevuProps,n=e.properties;if(t&&typeof t==`object`&&n&&typeof n==`object`){let r=n,i=Object.keys(t);for(let e of i)if(!Object.prototype.hasOwnProperty.call(r,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(r))try{t[e]=n}catch(e){}yr(e)}o(e)},c=(e,t,n)=>{let r=e.__wevuProps;if(!(!r||typeof r!=`object`)){try{r[t]=n}catch(e){}yr(e),o(e)}},l={};if(r.length)for(let e of r)l[e]=function(t){c(this,e,t)};let u={...n==null?{}:n};for(let[e,t]of Object.entries(l)){let n=u[e];typeof n==`function`?u[e]=function(...e){n.apply(this,e),t.apply(this,e)}:u[e]=t}let d=u[`**`];return u[`**`]=function(...e){typeof d==`function`&&d.apply(this,e),s(this)},{attachWevuPropKeys:a,syncWevuPropsFromInstance:s,finalObservers:u}}function xr(e,t,n,r,i){var a,o;let{methods:s={},lifetimes:c={},pageLifetimes:l={},options:u={},...d}=i,f=d.onLoad,p=d.onUnload,m=d.onShow,h=d.onHide,g=d.onReady,_=d.onSaveExitState,v=d.onPullDownRefresh,y=d.onReachBottom,b=d.onPageScroll,x=d.onRouteDone,S=d.onTabItemTap,C=d.onResize,w=d.onShareAppMessage,T=d.onShareTimeline,E=d.onAddToFavorites,D=(a=d.features)==null?{}:a,O=!!d.__wevu_isPage||Object.keys(D==null?{}:D).length>0,k={...d},A=k.__wevuTemplateRefs;delete k.__wevuTemplateRefs;let j=k.observers,M=k.setupLifecycle===`created`?`created`:`attached`;delete k.setupLifecycle;let N=k.created;delete k.features,delete k.created,delete k.onLoad,delete k.onUnload,delete k.onShow,delete k.onHide,delete k.onReady;let{enableOnPullDownRefresh:ee,enableOnReachBottom:P,enableOnPageScroll:te,enableOnRouteDone:F,enableOnTabItemTap:I,enableOnResize:L,enableOnShareAppMessage:R,enableOnShareTimeline:z,enableOnAddToFavorites:B,enableOnSaveExitState:V,effectiveOnSaveExitState:ne,effectiveOnPullDownRefresh:re,effectiveOnReachBottom:ie,effectiveOnPageScroll:ae,effectiveOnRouteDone:oe,effectiveOnTabItemTap:se,effectiveOnResize:ce,effectiveOnShareAppMessage:le,effectiveOnShareTimeline:ue,effectiveOnAddToFavorites:de}=dr({features:D,userOnSaveExitState:_,userOnPullDownRefresh:v,userOnReachBottom:y,userOnPageScroll:b,userOnRouteDone:x,userOnTabItemTap:S,userOnResize:C,userOnShareAppMessage:w,userOnShareTimeline:T,userOnAddToFavorites:E}),H=(e,t)=>{let n=e.__wevuHooks;if(!n)return!1;let r=n[t];return r?Array.isArray(r)?r.length>0:typeof r==`function`:!1};{let e=k.export;k.export=function(){var t;let n=(t=this.__wevuExposed)==null?{}:t,r=typeof e==`function`?e.call(this):{};return r&&typeof r==`object`&&!Array.isArray(r)?{...n,...r}:r==null?n:r}}let U={multipleSlots:(o=u.multipleSlots)==null?!0:o,...u},{attachWevuPropKeys:W,syncWevuPropsFromInstance:fe,finalObservers:G}=br({restOptions:k,userObservers:j}),{finalMethods:pe}=vr({userMethods:s,runtimeMethods:t}),K=_r({runtimeApp:e,watch:n,setup:r,userOnLoad:f,userOnUnload:p,userOnShow:m,userOnHide:h,userOnReady:g,isPage:O,enableOnSaveExitState:V,enableOnPullDownRefresh:ee,enableOnReachBottom:P,enableOnPageScroll:te,enableOnRouteDone:F,enableOnTabItemTap:I,enableOnResize:L,enableOnShareAppMessage:R,enableOnShareTimeline:z,enableOnAddToFavorites:B,effectiveOnSaveExitState:ne,effectiveOnPullDownRefresh:re,effectiveOnReachBottom:ie,effectiveOnPageScroll:ae,effectiveOnRouteDone:oe,effectiveOnTabItemTap:se,effectiveOnResize:ce,effectiveOnShareAppMessage:le,effectiveOnShareTimeline:ue,effectiveOnAddToFavorites:de,hasHook:H}),me={};if(O)for(let e of[`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=K[e];typeof t==`function`&&typeof pe[e]!=`function`&&(me[e]=function(...e){return t.apply(this,e)})}Component({...k,...K,observers:G,lifetimes:{...c,created:function(...t){Array.isArray(A)&&A.length&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:A,configurable:!0,enumerable:!1,writable:!1}),W(this),M===`created`&&(sr(this,e,n,r,{deferSetData:!0}),fe(this)),typeof N==`function`&&N.apply(this,t),typeof c.created==`function`&&c.created.apply(this,t)},moved:function(...e){$(this,`onMoved`,e),typeof c.moved==`function`&&c.moved.apply(this,e)},attached:function(...t){Array.isArray(A)&&A.length&&!this.__wevuTemplateRefs&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:A,configurable:!0,enumerable:!1,writable:!1}),W(this),(M!==`created`||!this.__wevu)&&sr(this,e,n,r),fe(this),M===`created`&&cr(this),typeof c.attached==`function`&&c.attached.apply(this,t)},ready:function(...e){if(O&&typeof K.onReady==`function`){K.onReady.call(this,...e),typeof c.ready==`function`&&c.ready.apply(this,e);return}if(!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,fe(this),$n(this,()=>{$(this,`onReady`,e),typeof c.ready==`function`&&c.ready.apply(this,e)});return}typeof c.ready==`function`&&c.ready.apply(this,e)},detached:function(...e){if(O&&typeof K.onUnload==`function`){K.onUnload.call(this,...e),typeof c.detached==`function`&&c.detached.apply(this,e);return}er(this),lr(this),typeof c.detached==`function`&&c.detached.apply(this,e)},error:function(...e){$(this,`onError`,e),typeof c.error==`function`&&c.error.apply(this,e)}},pageLifetimes:{...l,show:function(...e){if(O&&typeof K.onShow==`function`){K.onShow.call(this,...e),typeof l.show==`function`&&l.show.apply(this,e);return}$(this,`onShow`,e),typeof l.show==`function`&&l.show.apply(this,e)},hide:function(...e){if(O&&typeof K.onHide==`function`){K.onHide.call(this,...e),typeof l.hide==`function`&&l.hide.apply(this,e);return}$(this,`onHide`,e),typeof l.hide==`function`&&l.hide.apply(this,e)},resize:function(...e){if(O&&typeof K.onResize==`function`){K.onResize.call(this,...e),typeof l.resize==`function`&&l.resize.apply(this,e);return}$(this,`onResize`,e),typeof l.resize==`function`&&l.resize.apply(this,e)}},methods:{...me,...pe},options:U})}function Sr(e,t){let n=(()=>{e()});return n.stop=()=>n(),n.pause=()=>{var e;t==null||(e=t.pause)==null||e.call(t)},n.resume=()=>{var e;t==null||(e=t.resume)==null||e.call(t)},n}function Cr(e){let{[Ot]:t,data:n,computed:r,methods:i,setData:o,watch:s,setup:c,...l}=e[Ot]===`component`?e:It(e),u=i==null?{}:i,d=r==null?{}:r,f=new Set,p={globalProperties:{}},m={mount(e){let t=we((n==null?(()=>({})):n)()),r=d,i=u,s=!0,c=[],{includeComputed:l,setDataStrategy:f,maxPatchKeys:m,maxPayloadBytes:h,mergeSiblingThreshold:g,mergeSiblingMaxInflationRatio:_,mergeSiblingMaxParentBytes:v,mergeSiblingSkipArray:y,computedCompare:b,computedCompareMaxDepth:S,computedCompareMaxKeys:C,prelinkMaxDepth:w,prelinkMaxKeys:T,debug:E,debugWhen:D,debugSampleRate:O,elevateTopKeyThreshold:A,toPlainMaxDepth:j,toPlainMaxKeys:M,shouldIncludeKey:N}=bt(o),{boundMethods:ee,computedRefs:P,computedSetters:I,dirtyComputedKeys:L,computedProxy:R,publicInstance:z,touchSetupMethodsVersion:B}=Qe({state:t,computedDefs:r,methodDefs:i,appConfig:p,includeComputed:l,setDataStrategy:f}),V=e==null?{setData:()=>{}}:e,ne=G(t),re,ie=yt({state:t,computedRefs:P,dirtyComputedKeys:L,includeComputed:l,setDataStrategy:f,computedCompare:b,computedCompareMaxDepth:S,computedCompareMaxKeys:C,currentAdapter:V,shouldIncludeKey:N,maxPatchKeys:m,maxPayloadBytes:h,mergeSiblingThreshold:g,mergeSiblingMaxInflationRatio:_,mergeSiblingMaxParentBytes:v,mergeSiblingSkipArray:y,elevateTopKeyThreshold:A,toPlainMaxDepth:j,toPlainMaxKeys:M,debug:E,debugWhen:D,debugSampleRate:O,runTracker:()=>re==null?void 0:re(),isMounted:()=>s}),ae=()=>ie.job(ne),oe=e=>ie.mutationRecorder(e,ne);re=k(()=>{_e(t),Object.keys(t).forEach(e=>{let n=t[e];J(n)?n.value:q(n)&&_e(n)})},{lazy:!0,scheduler:()=>a(ae)}),ae(),c.push(Sr(()=>x(re))),f===`patch`&&(he(t,{shouldIncludeTopKey:N,maxDepth:w,maxKeys:T}),te(oe),c.push(Sr(()=>F(oe))),c.push(Sr(()=>ge(t))));function se(e,t,n){let r=qe(e,(e,n)=>t(e,n),n);return c.push(r),Sr(()=>{r();let e=c.indexOf(r);e>=0&&c.splice(e,1)},r)}return{get state(){return t},get proxy(){return z},get methods(){return ee},get computed(){return R},get adapter(){return V},bindModel:Dt(z,t,P,I),watch:se,snapshot:()=>ie.snapshot(),unmount:()=>{s&&(s=!1,c.forEach(e=>{try{e()}catch(e){}}),c.length=0)},__wevu_touchSetupMethodsVersion:B}},use(e,...t){if(!e||f.has(e))return m;if(f.add(e),typeof e==`function`)e(m,...t);else if(typeof e.install==`function`)e.install(m,...t);else throw TypeError(`插件必须是函数,或包含 install 方法的对象`);return m},config:p};if(typeof App==`function`){let e=typeof globalThis<`u`?globalThis:void 0,t=typeof wx<`u`?wx:e==null?void 0:e.my,n=(t==null?void 0:t.__wxConfig)!==void 0,r=`__wevuAppRegistered`;n&&t&&t[r]||(n&&t&&(t[r]=!0),ur(m,i==null?{}:i,s,c,l))}return m}function wr(e,t,n){let r=e.properties,i=n==null?r&&typeof r==`object`?r:void 0:n,a=e=>{let t={...e==null?{}:e};return Object.prototype.hasOwnProperty.call(t,`__wvSlotOwnerId`)||(t.__wvSlotOwnerId={type:String,value:``}),Object.prototype.hasOwnProperty.call(t,`__wvSlotScope`)||(t.__wvSlotScope={type:null,value:null}),t};if(i||!t){let{properties:t,...n}=e;return{...n,properties:a(i)}}let o={};return Object.entries(t).forEach(([e,t])=>{if(t!=null){if(Array.isArray(t)||typeof t==`function`){o[e]={type:t};return}if(typeof t==`object`){if(e.endsWith(`Modifiers`)&&Object.keys(t).length===0){o[e]={type:Object,value:{}};return}let n={};`type`in t&&t.type!==void 0&&(n.type=t.type);let r=`default`in t?t.default:t.value;r!==void 0&&(n.value=typeof r==`function`?r():r),o[e]=n}}}),{...e,properties:a(o)}}function Tr(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function Er(e){var t,n,r;let i=(t=e==null||(n=e.currentTarget)==null||(n=n.dataset)==null?void 0:n.wvArgs)==null?e==null||(r=e.target)==null||(r=r.dataset)==null?void 0:r.wvArgs:t,a=[];if(Array.isArray(i))a=i;else if(typeof i==`string`)try{a=JSON.parse(i)}catch(e){try{a=JSON.parse(Tr(i))}catch(e){a=[]}}return Array.isArray(a)||(a=[]),a.map(t=>t===`$event`?e:t)}function Dr(e){if(!e||typeof e!=`object`)return{};if(Array.isArray(e)){let t={};for(let n=0;n<e.length;n+=2){let r=e[n];typeof r==`string`&&r&&(t[r]=e[n+1])}return t}return e}function Or(e,t){var n,r;let i=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotScope`)?t.__wvSlotScope:e==null||(n=e.properties)==null?void 0:n.__wvSlotScope,a=Object.prototype.hasOwnProperty.call(t==null?{}:t,`__wvSlotProps`)?t.__wvSlotProps:e==null||(r=e.properties)==null?void 0:r.__wvSlotProps,o=Dr(i),s=Dr(a),c={...o,...s};typeof(e==null?void 0:e.setData)==`function`&&e.setData({__wvSlotPropsData:c})}function kr(e){let t={properties:{__wvOwnerId:{type:String,value:``},__wvSlotProps:{type:null,value:null,observer(e){Or(this,{__wvSlotProps:e})}},__wvSlotScope:{type:null,value:null,observer(e){Or(this,{__wvSlotScope:e})}}},data:()=>({__wvOwner:{},__wvSlotPropsData:{}}),lifetimes:{attached(){var e,t;let n=(e=(t=this.properties)==null?void 0:t.__wvOwnerId)==null?``:e;if(Or(this),!n)return;let r=(e,t)=>{this.__wvOwnerProxy=t,typeof this.setData==`function`&&this.setData({__wvOwner:e||{}})};this.__wvOwnerUnsub=Pn(n,r);let i=In(n);i&&r(i,Fn(n))},detached(){typeof this.__wvOwnerUnsub==`function`&&this.__wvOwnerUnsub(),this.__wvOwnerUnsub=void 0,this.__wvOwnerProxy=void 0}},methods:{__weapp_vite_owner(e){var t,n,r,i,a,o,s;let c=this.__wvOwnerProxy,l=(t=this.__wevu)==null||(t=t.methods)==null?void 0:t.__weapp_vite_inline_map,u=On(c,(n=e==null||(r=e.currentTarget)==null||(r=r.dataset)==null?void 0:r.wvHandler)==null?e==null||(i=e.target)==null||(i=i.dataset)==null?void 0:i.wvHandler:n,e,l);if(u!==void 0)return u;if(!c)return;let d=(a=e==null||(o=e.currentTarget)==null||(o=o.dataset)==null?void 0:o.wvHandler)==null?e==null||(s=e.target)==null||(s=s.dataset)==null?void 0:s.wvHandler:a;if(typeof d!=`string`||!d)return;let f=c==null?void 0:c[d];if(typeof f!=`function`)return;let p=Er(e);return f.apply(c,p)}}};return e!=null&&e.computed&&Object.keys(e.computed).length>0&&(t.computed=e.computed),e!=null&&e.inlineMap&&Object.keys(e.inlineMap).length>0&&(t.methods={...t.methods,__weapp_vite_inline_map:e.inlineMap}),t}function Ar(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function jr(e){return typeof e!=`object`||!e||J(e)||q(e)||Array.isArray(e)?!0:Ar(e)}function Mr(e,t,n){var r,i;let a=(r=e==null?void 0:e.methods)==null?Object.create(null):r,o=(i=e==null?void 0:e.state)==null?Object.create(null):i,s=q(o)?G(o):o,c=!1;if(e&&!e.methods)try{e.methods=a}catch(e){}if(e&&!e.state)try{e.state=o}catch(e){}if(Object.keys(n).forEach(r=>{let i=n[r];if(typeof i==`function`)a[r]=(...t)=>{var n;return i.apply((n=e==null?void 0:e.proxy)==null?e:n,t)},c=!0;else if(i===t||!jr(i))try{Object.defineProperty(s,r,{value:i,configurable:!0,enumerable:!1,writable:!0})}catch(e){o[r]=i}else o[r]=i}),e){var l,u;if(e.methods=(l=e.methods)==null?a:l,e.state=(u=e.state)==null?o:u,c){var d;(d=e.__wevu_touchSetupMethodsVersion)==null||d.call(e)}}}let Nr;function Pr(){var e;let t=typeof globalThis<`u`,n=t?globalThis:void 0,r=typeof wx<`u`?wx:(e=n==null?void 0:n.my)==null?t?globalThis:void 0:e;if(!r)return;let i=r;!i.__weapp_vite_createScopedSlotComponent&&Nr&&(i.__weapp_vite_createScopedSlotComponent=Nr)}function Fr(e){Pr();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Lt(e),u=Cr({data:n,computed:r,methods:i,setData:a,[Ot]:`component`}),d=(e,t)=>{let n=tr(s,e,t);return n&&t&&Mr(t.runtime,t.instance,n),n},f=wr(l,c),p={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:f};return xr(u,i==null?{}:i,o,d,f),{__wevu_runtime:u,__wevu_options:p}}function Ir(e){Pr();let{properties:t,props:n,...r}=e;Fr(wr(r,n,t))}function Lr(e){Ir(kr(e))}Nr=Lr,Pr();const Rr=Symbol(`wevu.provideScope`),zr=new Map;function Br(e,t){let n=Bt();if(n){let r=n[Rr];r||(r=new Map,n[Rr]=r),r.set(e,t)}else zr.set(e,t)}function Vr(e,t){let n=Bt();if(n){let t=n;for(;t;){let n=t[Rr];if(n&&n.has(e))return n.get(e);t=null}}if(zr.has(e))return zr.get(e);if(arguments.length>=2)return t;throw Error(`wevu.inject:未找到对应 key 的值`)}function Hr(e,t){zr.set(e,t)}function Ur(e,t){if(zr.has(e))return zr.get(e);if(arguments.length>=2)return t;throw Error(`injectGlobal():未找到对应 key 的 provider:${String(e)}`)}const Wr=/\B([A-Z])/g;function Gr(e){return e?e.startsWith(`--`)?e:e.replace(Wr,`-$1`).toLowerCase():``}function Kr(e,t){if(!t)return e;if(!e)return t;let n=e;n.endsWith(`;`)||(n+=`;`);let r=t.startsWith(`;`)?t.slice(1):t;return n+r}function qr(e){let t=``;for(let n of Object.keys(e)){let r=Me(e[n]);if(r==null)continue;let i=Gr(n);if(Array.isArray(r))for(let e of r){let n=Me(e);n!=null&&(t=Kr(t,`${i}:${n}`))}else t=Kr(t,`${i}:${r}`)}return t}function Jr(e){let t=Me(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=Jr(n);t&&(e=Kr(e,t))}return e}return typeof t==`object`?qr(t):``}function Yr(e){let t=Me(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=Yr(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))Me(t[e])&&(n+=`${e} `);return n.trim()}return n}const Xr=Object.freeze(Object.create(null));function Zr(){var e;let t=Ht();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function Qr(){var e;let t=Ht();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?Xr:e}function $r(e){let t=e.__wevuTemplateRefMap;if(t)return t;let n=new Map;try{Object.defineProperty(e,`__wevuTemplateRefMap`,{value:n,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuTemplateRefMap=n}return n}function ei(e){let t=Bt();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=$r(t),i=r.get(n);if(i)return i;let a=Re(null);return r.set(n,a),a}function ti(e,t){let n=Ht();if(!n)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let r=n.emit,i=`update:${t}`;return Fe({get:()=>e==null?void 0:e[t],set:e=>{r==null||r(i,e)}})}function ni(e){let t=Bt();if(!(t!=null&&t.__wevu)||typeof t.__wevu.bindModel!=`function`)throw Error(`useBindModel() 必须在 setup() 的同步阶段调用`);let n=t.__wevu.bindModel.bind(t.__wevu),r=((t,r)=>e?n(t,{...e,...r}):n(t,r));return r.model=(e,t)=>r(e).model(t),r.value=(t,n)=>{var i;let a={...e,...n},o=(i=a==null?void 0:a.valueProp)==null?`value`:i;return r.model(t,n)[o]},r.on=(t,n)=>{var i;let a={...e,...n},o=`on${xt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function ri(e,t){return e==null?t:t==null?e:Array.isArray(e)&&Array.isArray(t)?Array.from(new Set([...e,...t])):typeof e==`object`&&typeof t==`object`?{...e,...t}:t}function ii(e,t,n,r){return function(...i){let a=[],o=[],s=e=>a.push(e),c=e=>o.push(e);r.forEach(n=>{try{n({name:t,store:e,args:i,after:s,onError:c})}catch(e){}});let l;try{l=n.apply(e,i)}catch(e){throw o.forEach(t=>t(e)),e}let u=e=>(a.forEach(t=>t(e)),e);return l&&typeof l.then==`function`?l.then(e=>u(e),e=>(o.forEach(t=>t(e)),Promise.reject(e))):u(l)}}function ai(e){return typeof e==`object`&&!!e}function oi(e){if(!ai(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function si(e,t){for(let n in t)e[n]=t[n]}function ci(e){if(Array.isArray(e))return e.map(e=>ci(e));if(oi(e)){let t={};for(let n in e)t[n]=ci(e[n]);return t}return e}function li(e,t){if(Array.isArray(e)&&Array.isArray(t)){e.length=0,t.forEach((t,n)=>{e[n]=ci(t)});return}if(ai(t)){for(let n in e)n in t||delete e[n];for(let n in t){let r=t[n],i=e[n];if(Array.isArray(r)&&Array.isArray(i)){li(i,r);continue}if(oi(r)&&oi(i)){li(i,r);continue}e[n]=ci(r)}}}function ui(e,t,n,r){let i={$id:e};Object.defineProperty(i,`$state`,{get(){return t},set(e){t&&ai(e)&&(si(t,e),n(`patch object`))}}),i.$patch=e=>{if(!t){typeof e==`function`?(e(i),n(`patch function`)):(si(i,e),n(`patch object`));return}typeof e==`function`?(e(t),n(`patch function`)):(si(t,e),n(`patch object`))},r&&(i.$reset=()=>r());let a=new Set;i.$subscribe=(e,t)=>(a.add(e),()=>a.delete(e));let o=new Set;return i.$onAction=e=>(o.add(e),()=>o.delete(e)),{api:i,subs:a,actionSubs:o}}function di(){let e={_stores:new Map,_plugins:[],install(e){},use(t){return typeof t==`function`&&e._plugins.push(t),e}};return di._instance=e,e}const fi=Object.prototype.hasOwnProperty;function pi(e){return J(e)&&fi.call(e,`dep`)}function mi(e){return q(e)?ci(G(e)):pi(e)?ci(e.value):ci(e)}function hi(e,t,n){let r=!1;return i=>{if(!r){r=!0;try{let r=n();t.forEach(t=>{try{t({type:i,storeId:e},r)}catch(e){}})}finally{r=!1}}}}function gi(e,t){let n,r=!1,i=di._instance;return function(){var a,o,s;if(r&&n)return n;if(r=!0,typeof t==`function`){var c;let r=t(),a=()=>{},o=new Map;Object.keys(r).forEach(e=>{let t=r[e];typeof t==`function`||e.startsWith(`$`)||J(t)&&!pi(t)||o.set(e,mi(t))});let s=ui(e,void 0,e=>a(e),()=>{o.forEach((e,t)=>{let r=n[t];if(pi(r)){r.value=ci(e);return}if(q(r)){li(r,e);return}J(r)||(n[t]=ci(e))}),a(`patch object`)}),l=!1,u=s.api.$patch;if(s.api.$patch=e=>{l=!0;try{u(e)}finally{l=!1}},typeof s.api.$reset==`function`){let e=s.api.$reset;s.api.$reset=()=>{l=!0;try{e()}finally{l=!1}}}a=hi(e,s.subs,()=>n),n=Object.assign({},r);for(let e of Object.getOwnPropertyNames(s.api)){let t=Object.getOwnPropertyDescriptor(s.api,e);t&&(e===`$state`?Object.defineProperty(n,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return s.api.$state},set(e){l=!0;try{s.api.$state=e}finally{l=!1}}}):Object.defineProperty(n,e,t))}let d=[];Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`&&!e.startsWith(`$`)){n[e]=ii(n,e,t,s.actionSubs);return}if(pi(t)){d.push(t);return}if(q(t)){d.push(t);return}if(!J(t)&&!e.startsWith(`$`)){let r=t;Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get(){return r},set(e){r=e,l||a(`direct`)}})}});let f=!1;if(d.length>0){let e=!1;k(()=>{if(d.forEach(e=>{pi(e)?e.value:_e(e)}),!e){e=!0;return}if(!l&&!f){f=!0;try{a(`direct`)}finally{f=!1}}})}let p=(c=i==null?void 0:i._plugins)==null?[]:c;for(let e of p)try{e({store:n})}catch(e){}return n}let l=t,u=l.state?l.state():{},d=we(u),f=ci(G(u)),p=()=>{},m=ui(e,d,e=>p(e),()=>{li(d,f),p(`patch object`)}),h=!1,g=m.api.$patch;if(m.api.$patch=e=>{h=!0;try{g(e)}finally{h=!1}},typeof m.api.$reset==`function`){let e=m.api.$reset;m.api.$reset=()=>{h=!0;try{e()}finally{h=!1}}}p=hi(e,m.subs,()=>d);let _={};for(let e of Object.getOwnPropertyNames(m.api)){let t=Object.getOwnPropertyDescriptor(m.api,e);t&&(e===`$state`?Object.defineProperty(_,e,{enumerable:t.enumerable,configurable:t.configurable,get(){return m.api.$state},set(e){h=!0;try{m.api.$state=e}finally{h=!1}}}):Object.defineProperty(_,e,t))}let v=(a=l.getters)==null?{}:a,y={};Object.keys(v).forEach(e=>{let t=v[e];if(typeof t==`function`){let n=Ie(()=>t.call(_,d));y[e]=n,Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return n.value}})}});let b=(o=l.actions)==null?{}:o;Object.keys(b).forEach(e=>{let t=b[e];typeof t==`function`&&(_[e]=ii(_,e,(...e)=>t.apply(_,e),m.actionSubs))}),Object.keys(d).forEach(e=>{Object.defineProperty(_,e,{enumerable:!0,configurable:!0,get(){return d[e]},set(t){d[e]=t}})});let x=!1,S=!1;k(()=>{if(_e(d),!x){x=!0;return}if(!h&&!S){S=!0;try{p(`direct`)}finally{S=!1}}}),n=_;let C=(s=i==null?void 0:i._plugins)==null?[]:s;for(let e of C)try{e({store:n})}catch(e){}return n}}function _i(e){let t={};for(let n in e){let r=e[n];if(typeof r==`function`){t[n]=r;continue}J(r)?t[n]=r:t[n]=Ie({get:()=>e[n],set:t=>{e[n]=t}})}return t}export{te as addMutationRecorder,y as batch,$ as callHookList,qt as callHookReturn,En as callUpdateHooks,Ie as computed,Cr as createApp,di as createStore,Ir as createWevuComponent,Lr as createWevuScopedSlotComponent,Fr as defineComponent,gi as defineStore,k as effect,w as effectScope,v as endBatch,Bt as getCurrentInstance,T as getCurrentScope,Ht as getCurrentSetupContext,Ke as getDeepWatchStrategy,xe as getReactiveVersion,Vr as inject,Ur as injectGlobal,et as isNoSetData,De as isRaw,q as isReactive,J as isRef,be as isShallowReactive,ze as isShallowRef,Y as markNoSetData,Ee as markRaw,ri as mergeModels,sr as mountRuntimeInstance,o as nextTick,Yr as normalizeClass,Jr as normalizeStyle,Cn as onActivated,hn as onAddToFavorites,bn as onBeforeMount,vn as onBeforeUnmount,xn as onBeforeUpdate,wn as onDeactivated,dn as onError,Sn as onErrorCaptured,en as onHide,Jt as onLaunch,$t as onLoad,gn as onMounted,un as onMoved,Yt as onPageNotFound,on as onPageScroll,rn as onPullDownRefresh,an as onReachBottom,nn as onReady,ln as onResize,sn as onRouteDone,fn as onSaveExitState,E as onScopeDispose,Tn as onServerPrefetch,pn as onShareAppMessage,mn as onShareTimeline,Qt as onShow,cn as onTabItemTap,Zt as onThemeChange,Xt as onUnhandledRejection,tn as onUnload,yn as onUnmounted,_n as onUpdated,he as prelinkReactiveTree,Br as provide,Hr as provideGlobal,we as reactive,Le as readonly,je as ref,ur as registerApp,xr as registerComponent,F as removeMutationRecorder,Ft as resetWevuDefaults,tr as runSetupFunction,Vt as setCurrentInstance,Ut as setCurrentSetupContext,Ge as setDeepWatchStrategy,Pt as setWevuDefaults,ye as shallowReactive,Re as shallowRef,g as startBatch,x as stop,_i as storeToRefs,lr as teardownRuntimeInstance,G as toRaw,Ve as toRef,He as toRefs,Ne as toValue,_e as touchReactive,Ue as traverse,Be as triggerRef,Me as unref,Zr as useAttrs,ni as useBindModel,ti as useModel,Qr as useSlots,ei as useTemplateRef,qe as watch,Je as watchEffect};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wevu",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.6.
|
|
4
|
+
"version": "6.6.5",
|
|
5
5
|
"description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"vue": "^3.5.28",
|
|
70
|
-
"@wevu/compiler": "6.6.
|
|
70
|
+
"@wevu/compiler": "6.6.5"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"dev": "tsdown -w",
|