wevu 6.6.12 → 6.6.13
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 +102 -12
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -106,9 +106,14 @@ interface PrelinkReactiveTreeOptions {
|
|
|
106
106
|
maxDepth?: number;
|
|
107
107
|
maxKeys?: number;
|
|
108
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* 预链接响应式树结构,供运行时差量路径追踪使用。
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
109
113
|
declare function prelinkReactiveTree(root: object, options?: PrelinkReactiveTreeOptions): void;
|
|
110
114
|
/**
|
|
111
115
|
* 让 effect 订阅整个对象的“版本号”,无需深度遍历即可对任何字段变化做出响应。
|
|
116
|
+
* @internal
|
|
112
117
|
*/
|
|
113
118
|
declare function touchReactive(target: object): void;
|
|
114
119
|
//#endregion
|
|
@@ -137,6 +142,10 @@ declare function isShallowReactive(value: unknown): boolean;
|
|
|
137
142
|
declare function toRaw<T>(observed: T): T;
|
|
138
143
|
//#endregion
|
|
139
144
|
//#region src/reactivity/reactive.d.ts
|
|
145
|
+
/**
|
|
146
|
+
* 读取响应式版本号(框架内部调试能力)。
|
|
147
|
+
* @internal
|
|
148
|
+
*/
|
|
140
149
|
declare function getReactiveVersion(target: object): number;
|
|
141
150
|
declare function reactive<T extends object>(target: T): T;
|
|
142
151
|
declare function isReactive(value: unknown): boolean;
|
|
@@ -236,6 +245,10 @@ type ToRef<T> = T extends Ref<any> ? T : Ref<T>;
|
|
|
236
245
|
type ToRefs<T extends object> = { [K in keyof T]: ToRef<T[K]> };
|
|
237
246
|
//#endregion
|
|
238
247
|
//#region src/reactivity/traverse.d.ts
|
|
248
|
+
/**
|
|
249
|
+
* 深度遍历工具(框架内部依赖收集使用)。
|
|
250
|
+
* @internal
|
|
251
|
+
*/
|
|
239
252
|
declare function traverse(value: any, depth?: number, seen?: Map<object, number>): any;
|
|
240
253
|
//#endregion
|
|
241
254
|
//#region src/reactivity/watch.d.ts
|
|
@@ -267,7 +280,15 @@ interface WatchStopHandle {
|
|
|
267
280
|
resume: () => void;
|
|
268
281
|
}
|
|
269
282
|
type DeepWatchStrategy = 'version' | 'traverse';
|
|
283
|
+
/**
|
|
284
|
+
* 设置深度 watch 内部策略(测试/框架内部使用)。
|
|
285
|
+
* @internal
|
|
286
|
+
*/
|
|
270
287
|
declare function setDeepWatchStrategy(strategy: DeepWatchStrategy): void;
|
|
288
|
+
/**
|
|
289
|
+
* 获取深度 watch 内部策略(测试/框架内部使用)。
|
|
290
|
+
* @internal
|
|
291
|
+
*/
|
|
271
292
|
declare function getDeepWatchStrategy(): DeepWatchStrategy;
|
|
272
293
|
declare function watch<T, Immediate extends Readonly<boolean> = false>(source: WatchSource<T>, cb: WatchCallback<T, MaybeUndefined<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
273
294
|
declare function watch<T extends object, Immediate extends Readonly<boolean> = false>(source: T extends ReadonlyArray<any> ? never : T, cb: WatchCallback<T, MaybeUndefined<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
@@ -425,11 +446,12 @@ type PropMethod<T, TConstructor = any> = [T] extends [((...args: any) => any) |
|
|
|
425
446
|
readonly prototype: TConstructor;
|
|
426
447
|
} : never;
|
|
427
448
|
type PropConstructor<T = any> = {
|
|
428
|
-
new (...args: any[]): T &
|
|
449
|
+
new (...args: any[]): T & {};
|
|
429
450
|
} | {
|
|
430
451
|
(): T;
|
|
431
452
|
} | PropMethod<T>;
|
|
432
|
-
type PropType<T> = PropConstructor<T> | PropConstructor<T>[];
|
|
453
|
+
type PropType<T> = PropConstructor<T> | (PropConstructor<T> | null)[];
|
|
454
|
+
type Prop<T, D = T> = PropOptions<T, D> | PropType<T>;
|
|
433
455
|
type ComponentPropsOptions = Record<string, PropOptions<any> | PropType<any> | null>;
|
|
434
456
|
interface NativeTypeHint<T = any> {
|
|
435
457
|
readonly __wevuNativeType?: T;
|
|
@@ -437,16 +459,16 @@ interface NativeTypeHint<T = any> {
|
|
|
437
459
|
type NativePropsOptions = Record<string, WechatMiniprogram.Component.AllProperty | NativeTypeHint<any>>;
|
|
438
460
|
type NativePropType<T = any, C extends WechatMiniprogram.Component.ShortProperty = StringConstructor> = C & NativeTypeHint<T>;
|
|
439
461
|
type NativeTypedProperty<T = any, P extends WechatMiniprogram.Component.AllProperty = WechatMiniprogram.Component.AllProperty> = P & NativeTypeHint<T>;
|
|
440
|
-
interface PropOptions<T = any> {
|
|
462
|
+
interface PropOptions<T = any, D = T> {
|
|
441
463
|
type?: PropType<T> | true | null;
|
|
442
464
|
/**
|
|
443
465
|
* 默认值(对齐 Vue 的 `default`;会被赋给小程序 property 的 `value`)
|
|
444
466
|
*/
|
|
445
|
-
default?:
|
|
467
|
+
default?: D | (() => D);
|
|
446
468
|
/**
|
|
447
469
|
* 小程序 `value` 的别名
|
|
448
470
|
*/
|
|
449
|
-
value?:
|
|
471
|
+
value?: D | (() => D);
|
|
450
472
|
required?: boolean;
|
|
451
473
|
}
|
|
452
474
|
type HasDefault<T> = T extends {
|
|
@@ -462,10 +484,18 @@ type RequiredKeys<T> = { [K in keyof T]: T[K] extends {
|
|
|
462
484
|
} ? K : HasDefault<T[K]> extends true ? K : IsBooleanProp<T[K]> extends true ? K : never }[keyof T];
|
|
463
485
|
type OptionalKeys<T> = Exclude<keyof T, RequiredKeys<T>>;
|
|
464
486
|
type DefaultKeys<T> = { [K in keyof T]: HasDefault<T[K]> extends true ? K : IsBooleanProp<T[K]> extends true ? K : never }[keyof T];
|
|
465
|
-
type
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
487
|
+
type IfAny$1<T, Y, N> = 0 extends (1 & T) ? Y : N;
|
|
488
|
+
type InferPropType<O, NullAsAny = true> = [O] extends [null] ? NullAsAny extends true ? any : null : [O] extends [{
|
|
489
|
+
type: null | true;
|
|
490
|
+
}] ? any : [O] extends [ObjectConstructor | {
|
|
491
|
+
type: ObjectConstructor;
|
|
492
|
+
}] ? Record<string, any> : [O] extends [BooleanConstructor | {
|
|
493
|
+
type: BooleanConstructor;
|
|
494
|
+
}] ? boolean : [O] extends [DateConstructor | {
|
|
495
|
+
type: DateConstructor;
|
|
496
|
+
}] ? Date : [O] extends [(infer U)[] | {
|
|
497
|
+
type: (infer U)[];
|
|
498
|
+
}] ? U extends DateConstructor ? Date | InferPropType<U, false> : InferPropType<U, false> : [O] extends [Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? IfAny$1<V, V, D> : V : V : O;
|
|
469
499
|
type IsUnion<T, U = T> = T extends any ? ([U] extends [T] ? false : true) : never;
|
|
470
500
|
type WidenLiteral<T> = T extends string ? string extends T ? string : IsUnion<T> extends true ? T : string : T extends number ? number extends T ? number : IsUnion<T> extends true ? T : number : T extends boolean ? boolean extends T ? boolean : IsUnion<T> extends true ? T : boolean : T;
|
|
471
501
|
type NativeInferByCtor<C> = C extends readonly any[] ? NativeInferByCtor<C[number]> : C extends StringConstructor ? string : C extends NumberConstructor ? number : C extends BooleanConstructor ? boolean : C extends DateConstructor ? Date : C extends ArrayConstructor ? any[] : C extends ObjectConstructor ? Record<string, any> : C extends null ? any : C extends PropConstructor<infer V> ? V : any;
|
|
@@ -759,6 +789,13 @@ interface PageFeatures {
|
|
|
759
789
|
* 启用路由动画完成事件(注入 `onRouteDone`)。
|
|
760
790
|
*/
|
|
761
791
|
enableOnRouteDone?: boolean;
|
|
792
|
+
/**
|
|
793
|
+
* 启用 onReady 阶段的 routeDone 兜底补发。
|
|
794
|
+
*
|
|
795
|
+
* 默认关闭:保持与微信小程序平台事件更一致的行为。
|
|
796
|
+
* 仅当个别 IDE/基础库未派发 routeDone 且业务确实依赖该时机时再开启。
|
|
797
|
+
*/
|
|
798
|
+
enableOnRouteDoneFallback?: boolean;
|
|
762
799
|
/**
|
|
763
800
|
* 启用 Tab 点击事件(注入 `onTabItemTap`)。
|
|
764
801
|
*/
|
|
@@ -914,10 +951,15 @@ declare function defineComponent<P extends ComponentPropsOptions = ComponentProp
|
|
|
914
951
|
* 从 Vue SFC 选项创建 wevu 组件,供 weapp-vite 编译产物直接调用的兼容入口。
|
|
915
952
|
*
|
|
916
953
|
* @param options 组件选项,可能包含小程序特有的 properties
|
|
954
|
+
* @internal
|
|
917
955
|
*/
|
|
918
956
|
declare function createWevuComponent<D extends object, C extends ComputedDefinitions, M extends MethodDefinitions>(options: DefineComponentOptions<ComponentPropsOptions, D, C, M> & {
|
|
919
957
|
properties?: WechatMiniprogram.Component.PropertyOption;
|
|
920
958
|
}): void;
|
|
959
|
+
/**
|
|
960
|
+
* scoped slot 兼容组件入口(编译产物内部使用)。
|
|
961
|
+
* @internal
|
|
962
|
+
*/
|
|
921
963
|
declare function createWevuScopedSlotComponent(overrides?: {
|
|
922
964
|
computed?: ComputedDefinitions;
|
|
923
965
|
inlineMap?: InlineExpressionMap;
|
|
@@ -925,10 +967,26 @@ declare function createWevuScopedSlotComponent(overrides?: {
|
|
|
925
967
|
//#endregion
|
|
926
968
|
//#region src/runtime/hooks.d.ts
|
|
927
969
|
declare function getCurrentInstance<T extends InternalRuntimeState = InternalRuntimeState>(): T | undefined;
|
|
970
|
+
/**
|
|
971
|
+
* 设置当前运行时实例(框架内部使用)。
|
|
972
|
+
* @internal
|
|
973
|
+
*/
|
|
928
974
|
declare function setCurrentInstance(inst: InternalRuntimeState | undefined): void;
|
|
929
975
|
declare function getCurrentSetupContext<T = any>(): T | undefined;
|
|
976
|
+
/**
|
|
977
|
+
* 设置当前 setup 上下文(框架内部使用)。
|
|
978
|
+
* @internal
|
|
979
|
+
*/
|
|
930
980
|
declare function setCurrentSetupContext(ctx: any | undefined): void;
|
|
981
|
+
/**
|
|
982
|
+
* 调用批量 hook(框架内部调度入口)。
|
|
983
|
+
* @internal
|
|
984
|
+
*/
|
|
931
985
|
declare function callHookList(target: InternalRuntimeState, name: string, args?: any[]): void;
|
|
986
|
+
/**
|
|
987
|
+
* 调用返回值型 hook(框架内部调度入口)。
|
|
988
|
+
* @internal
|
|
989
|
+
*/
|
|
932
990
|
declare function callHookReturn(target: InternalRuntimeState, name: string, args?: any[]): any;
|
|
933
991
|
declare function onLaunch(handler: (options: WechatMiniprogram.App.LaunchShowOption) => void): void;
|
|
934
992
|
declare function onPageNotFound(handler: (options: WechatMiniprogram.App.PageNotFoundOption) => void): void;
|
|
@@ -947,6 +1005,8 @@ declare function onRouteDone(handler: WechatMiniprogram.Page.ILifetime['onRouteD
|
|
|
947
1005
|
declare function onTabItemTap(handler: (opt: WechatMiniprogram.Page.ITabItemTapOption) => void): void;
|
|
948
1006
|
declare function onResize(handler: (opt: WechatMiniprogram.Page.IResizeOption) => void): void;
|
|
949
1007
|
declare function onMoved(handler: () => void): void;
|
|
1008
|
+
declare function onAttached(handler: () => void): void;
|
|
1009
|
+
declare function onDetached(handler: () => void): void;
|
|
950
1010
|
declare function onError(handler: (err: any) => void): void;
|
|
951
1011
|
declare function onSaveExitState(handler: () => WechatMiniprogram.Page.ISaveExitState): void;
|
|
952
1012
|
declare function onShareAppMessage(handler: WechatMiniprogram.Page.ILifetime['onShareAppMessage']): void;
|
|
@@ -995,6 +1055,10 @@ declare function onDeactivated(handler: () => void): void;
|
|
|
995
1055
|
* 小程序无此场景,保留空实现以保持 API 兼容。
|
|
996
1056
|
*/
|
|
997
1057
|
declare function onServerPrefetch(_handler: () => void): void;
|
|
1058
|
+
/**
|
|
1059
|
+
* 派发更新阶段钩子(框架内部调度入口)。
|
|
1060
|
+
* @internal
|
|
1061
|
+
*/
|
|
998
1062
|
declare function callUpdateHooks(target: InternalRuntimeState, phase: 'before' | 'after'): void;
|
|
999
1063
|
//#endregion
|
|
1000
1064
|
//#region src/runtime/noSetData.d.ts
|
|
@@ -1037,11 +1101,17 @@ declare function provide<T>(key: any, value: T): void;
|
|
|
1037
1101
|
*/
|
|
1038
1102
|
declare function inject<T>(key: any, defaultValue?: T): T;
|
|
1039
1103
|
/**
|
|
1040
|
-
*
|
|
1104
|
+
* 全局注入值,适用于历史兼容场景。
|
|
1105
|
+
*
|
|
1106
|
+
* @deprecated 已弃用,仅用于兼容/过渡。推荐优先使用 `provide()`,
|
|
1107
|
+
* 在无实例上下文时 `provide()` 会自动回落到全局存储。
|
|
1041
1108
|
*/
|
|
1042
1109
|
declare function provideGlobal<T>(key: any, value: T): void;
|
|
1043
1110
|
/**
|
|
1044
|
-
*
|
|
1111
|
+
* 从全局存储读取值,适用于历史兼容场景。
|
|
1112
|
+
*
|
|
1113
|
+
* @deprecated 已弃用,仅用于兼容/过渡。推荐优先使用 `inject()`,
|
|
1114
|
+
* 在无实例上下文时 `inject()` 会自动从全局存储读取。
|
|
1045
1115
|
*/
|
|
1046
1116
|
declare function injectGlobal<T>(key: any, defaultValue?: T): T;
|
|
1047
1117
|
//#endregion
|
|
@@ -1055,22 +1125,42 @@ type WatchDescriptor = WatchHandler | string | {
|
|
|
1055
1125
|
type WatchMap = Record<string, WatchDescriptor>;
|
|
1056
1126
|
//#endregion
|
|
1057
1127
|
//#region src/runtime/register/app.d.ts
|
|
1128
|
+
/**
|
|
1129
|
+
* 注册 App 入口(框架内部使用)。
|
|
1130
|
+
* @internal
|
|
1131
|
+
*/
|
|
1058
1132
|
declare function registerApp<D extends object, C extends ComputedDefinitions, M extends MethodDefinitions>(runtimeApp: RuntimeApp<D, C, M>, methods: MethodDefinitions, watch: WatchMap | undefined, setup: DefineAppOptions<D, C, M>['setup'], mpOptions: MiniProgramAppOptions): void;
|
|
1059
1133
|
//#endregion
|
|
1060
1134
|
//#region src/runtime/register/component.d.ts
|
|
1135
|
+
/**
|
|
1136
|
+
* 注册组件入口(框架内部使用)。
|
|
1137
|
+
* @internal
|
|
1138
|
+
*/
|
|
1061
1139
|
declare function registerComponent<D extends object, C extends ComputedDefinitions, M extends MethodDefinitions>(runtimeApp: RuntimeApp<D, C, M>, methods: MethodDefinitions, watch: WatchMap | undefined, setup: DefineComponentOptions<ComponentPropsOptions, D, C, M>['setup'], mpOptions: MiniProgramComponentRawOptions): void;
|
|
1062
1140
|
//#endregion
|
|
1063
1141
|
//#region src/runtime/register/runtimeInstance.d.ts
|
|
1064
1142
|
type RuntimeSetupFunction<D extends object, C extends ComputedDefinitions, M extends MethodDefinitions> = DefineComponentOptions<ComponentPropsOptions, D, C, M>['setup'] | DefineAppOptions<D, C, M>['setup'];
|
|
1143
|
+
/**
|
|
1144
|
+
* 挂载运行时实例(框架内部注册流程使用)。
|
|
1145
|
+
* @internal
|
|
1146
|
+
*/
|
|
1065
1147
|
declare function mountRuntimeInstance<D extends object, C extends ComputedDefinitions, M extends MethodDefinitions>(target: InternalRuntimeState, runtimeApp: RuntimeApp<D, C, M>, watchMap: WatchMap | undefined, setup?: RuntimeSetupFunction<D, C, M>, options?: {
|
|
1066
1148
|
deferSetData?: boolean;
|
|
1067
1149
|
}): RuntimeInstance<D, C, M>;
|
|
1150
|
+
/**
|
|
1151
|
+
* 卸载运行时实例(框架内部注册流程使用)。
|
|
1152
|
+
* @internal
|
|
1153
|
+
*/
|
|
1068
1154
|
declare function teardownRuntimeInstance(target: InternalRuntimeState): void;
|
|
1069
1155
|
//#endregion
|
|
1070
1156
|
//#region src/runtime/register/setup.d.ts
|
|
1071
1157
|
type SetupRunner = {
|
|
1072
1158
|
bivarianceHack: (props: Record<string, any>, ctx: any) => any;
|
|
1073
1159
|
}['bivarianceHack'];
|
|
1160
|
+
/**
|
|
1161
|
+
* 执行 setup 函数并注入运行时上下文(框架内部使用)。
|
|
1162
|
+
* @internal
|
|
1163
|
+
*/
|
|
1074
1164
|
declare function runSetupFunction(setup: SetupRunner | undefined, props: Record<string, any>, context: any): unknown;
|
|
1075
1165
|
//#endregion
|
|
1076
1166
|
//#region src/runtime/template.d.ts
|
|
@@ -1443,4 +1533,4 @@ type StoreToRefsResult<T extends Record<string, any>> = { [K in keyof T]: T[K] e
|
|
|
1443
1533
|
*/
|
|
1444
1534
|
declare function storeToRefs<T extends Record<string, any>>(store: T): StoreToRefsResult<T>;
|
|
1445
1535
|
//#endregion
|
|
1446
|
-
export { ActionContext, ActionSubscriber, type AllowedComponentProps, type AppConfig, type ComponentCustomProps, ComponentDefinition, type ComponentOptionsMixin, type ComponentPropsOptions, type ComponentPublicInstance, ComponentTypeEmits, type ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, type CreateAppOptions, CustomRefFactory, CustomRefOptions, CustomRefSource, type DefineAppOptions, type DefineComponent, type DefineComponentOptions, DefineModelModifiers, DefineModelTransformOptions, DefineStoreOptions, EffectScope, EmitFn, EmitsOptions, type ExtractComputed, type ExtractDefaultPropTypes, type ExtractMethods, type ExtractPropTypes, type ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, type InferNativePropType, type InferNativeProps, type InferPropType, type InferProps, type InternalRuntimeState, type InternalRuntimeStateFields, MapSources, MaybeRef, MaybeRefOrGetter, MaybeUndefined, type MethodDefinitions, type MiniProgramAdapter, type MiniProgramAppOptions, type MiniProgramBehaviorIdentifier, type MiniProgramComponentBehaviorOptions, type MiniProgramComponentOptions, type MiniProgramComponentRawOptions, type MiniProgramInstance, type MiniProgramPageLifetimes, type ModelBinding, type ModelBindingOptions, type ModelBindingPayload, ModelModifiers, MultiWatchSources, type MutationKind, type MutationOp, type MutationRecord, MutationType, type NativeComponent, type NativePropType, type NativePropsOptions, type NativeTypeHint, type NativeTypedProperty, type ObjectDirective, OnCleanup, type PageFeatures, type PrelinkReactiveTreeOptions, type PropConstructor, type PropOptions, type PropType, type PublicProps, Ref, type RuntimeApp, type RuntimeInstance, type SetDataDebugInfo, type SetDataSnapshotOptions, type SetupContext, type SetupContextNativeInstance, type SetupFunction, ShallowRef, type ShallowUnwrapRef, StoreManager, StoreSubscribeOptions, StoreToRefsResult, SubscriptionCallback, TemplateRef, TemplateRefValue, TemplateRefs, ToRefs, type TriggerEventOptions, UseModelOptions, type VNode, type VNodeProps, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, WevuComponentConstructor, WevuDefaults, WevuGlobalComponents, WevuGlobalDirectives, type WevuPlugin, WritableComputedOptions, WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getReactiveVersion, inject, injectGlobal, isNoSetData, isRaw, isReactive, isRef, isShallowReactive, isShallowRef, markNoSetData, markRaw, mergeModels, mountRuntimeInstance, nextTick, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, prelinkReactiveTree, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, removeMutationRecorder, resetWevuDefaults, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, setWevuDefaults, shallowReactive, shallowRef, startBatch, stop, storeToRefs, teardownRuntimeInstance, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, useAttrs, useBindModel, useModel, useNativeInstance, useSlots, useTemplateRef, watch, watchEffect, withDefaults };
|
|
1536
|
+
export { ActionContext, ActionSubscriber, type AllowedComponentProps, type AppConfig, type ComponentCustomProps, ComponentDefinition, type ComponentOptionsMixin, type ComponentPropsOptions, type ComponentPublicInstance, ComponentTypeEmits, type ComputedDefinitions, ComputedGetter, ComputedRef, ComputedSetter, type CreateAppOptions, CustomRefFactory, CustomRefOptions, CustomRefSource, type DefineAppOptions, type DefineComponent, type DefineComponentOptions, DefineModelModifiers, DefineModelTransformOptions, DefineStoreOptions, EffectScope, EmitFn, EmitsOptions, type ExtractComputed, type ExtractDefaultPropTypes, type ExtractMethods, type ExtractPropTypes, type ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, type InferNativePropType, type InferNativeProps, type InferPropType, type InferProps, type InternalRuntimeState, type InternalRuntimeStateFields, MapSources, MaybeRef, MaybeRefOrGetter, MaybeUndefined, type MethodDefinitions, type MiniProgramAdapter, type MiniProgramAppOptions, type MiniProgramBehaviorIdentifier, type MiniProgramComponentBehaviorOptions, type MiniProgramComponentOptions, type MiniProgramComponentRawOptions, type MiniProgramInstance, type MiniProgramPageLifetimes, type ModelBinding, type ModelBindingOptions, type ModelBindingPayload, ModelModifiers, MultiWatchSources, type MutationKind, type MutationOp, type MutationRecord, MutationType, type NativeComponent, type NativePropType, type NativePropsOptions, type NativeTypeHint, type NativeTypedProperty, type ObjectDirective, OnCleanup, type PageFeatures, type PrelinkReactiveTreeOptions, type PropConstructor, type PropOptions, type PropType, type PublicProps, Ref, type RuntimeApp, type RuntimeInstance, type SetDataDebugInfo, type SetDataSnapshotOptions, type SetupContext, type SetupContextNativeInstance, type SetupFunction, ShallowRef, type ShallowUnwrapRef, StoreManager, StoreSubscribeOptions, StoreToRefsResult, SubscriptionCallback, TemplateRef, TemplateRefValue, TemplateRefs, ToRefs, type TriggerEventOptions, UseModelOptions, type VNode, type VNodeProps, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, WevuComponentConstructor, WevuDefaults, WevuGlobalComponents, WevuGlobalDirectives, type WevuPlugin, WritableComputedOptions, WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSlots, defineStore, effect, effectScope, endBatch, getCurrentInstance, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getReactiveVersion, inject, injectGlobal, isNoSetData, isRaw, isReactive, isRef, isShallowReactive, isShallowRef, markNoSetData, markRaw, mergeModels, mountRuntimeInstance, nextTick, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, prelinkReactiveTree, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, removeMutationRecorder, resetWevuDefaults, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, setWevuDefaults, shallowReactive, shallowRef, startBatch, stop, storeToRefs, teardownRuntimeInstance, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, useAttrs, useBindModel, useModel, useNativeInstance, useSlots, useTemplateRef, watch, watchEffect, withDefaults };
|
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 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 ee(e){f&&(e.has(f)||(e.add(f),f.deps.push(e)))}function N(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 H(e){var t;L.set(e,((t=L.get(e))==null?0:t)+1)}function ae(e){var t;return(t=L.get(e))==null?0:t}function oe(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),H(e),n.push(e))}}function se(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 ce(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),se(e)}function le(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),se(e))}function ue(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 U=function(e){return e.IS_REACTIVE=`__r_isReactive`,e.RAW=`__r_raw`,e.SKIP=`__r_skip`,e}({});function W(e){return typeof e==`object`&&!!e}const de=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[U.RAW])==null?e:t}const pe=new WeakMap,me=new WeakMap,he=new WeakMap;function ge(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)||!W(a)||a[U.SKIP])continue;let t=G(a);if(I.has(t)||I.set(t,n),ce(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 _e(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 K(e){A(G(e),de)}const ve={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.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,de),H(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,de),H(e)),r},ownKeys(e){return A(e,Symbol.iterator),A(e,de),Reflect.ownKeys(e)}};function ye(e){if(!W(e))return e;let t=he.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,ve);return he.set(e,n),me.set(n,e),L.has(e)||L.set(e,0),n}function be(e){let t=G(e);return he.has(t)}function q(e){return ae(G(e))}function xe(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=ue(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=ue(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 Se={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.RAW)return e;let r=Reflect.get(e,t,n);if(A(e,t),W(r)){var i,a;if(r[U.SKIP])return r;let n=(i=I.get(e))==null?e:i,o=(a=r==null?void 0:r[U.RAW])==null?r:a;I.has(o)||I.set(o,n),ce(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 Ce(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=W(o)?(c=o==null?void 0:o[U.RAW])==null?o:c:void 0;if(r&&le(r,e,t),W(n)&&!n[U.SKIP]){var l,u;let r=(l=I.get(e))==null?e:l,i=(u=n==null?void 0:n[U.RAW])==null?n:u;I.has(i)||I.set(i,r),ce(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,de),H(e),oe(e);let s=I.get(e);s&&s!==e&&(M(s,de),H(s)),xe(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=W(r)?(a=r==null?void 0:r[U.RAW])==null?r:a:void 0;n&&le(n,e,t),M(e,t),M(e,de),H(e),oe(e);let i=I.get(e);i&&i!==e&&(M(i,de),H(i)),xe(e,t,`delete`)}return i},ownKeys(e){return A(e,Symbol.iterator),A(e,de),Reflect.ownKeys(e)}};function Ce(e){if(!W(e))return e;let t=pe.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,Se);return pe.set(e,n),me.set(n,e),L.has(e)||L.set(e,0),I.has(e)||I.set(e,e),n}function J(e){return!!(e&&e[U.IS_REACTIVE])}function we(e){return W(e)?Ce(e):e}function Te(e){return W(e)&&Object.defineProperty(e,U.SKIP,{value:!0,configurable:!0,enumerable:!1,writable:!0}),e}function Ee(e){return W(e)&&U.SKIP in e}const De=`__v_isRef`;function Oe(e){try{Object.defineProperty(e,De,{value:!0,configurable:!0})}catch(t){e[De]=!0}return e}function Y(e){return!!(e&&typeof e==`object`&&e[De]===!0)}var ke=class{constructor(e){u(this,`_value`,void 0),u(this,`_rawValue`,void 0),u(this,`dep`,void 0),Oe(this),this._rawValue=e,this._value=we(e)}get value(){return this.dep||(this.dep=new Set),ee(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=we(e),this.dep&&N(this.dep))}};function Ae(e){return Y(e)?e:Te(new ke(e))}function je(e){return Y(e)?e.value:e}function Me(e){return typeof e==`function`?e():je(e)}var Ne=class{constructor(e,t){u(this,`_getValue`,void 0),u(this,`_setValue`,void 0),u(this,`dep`,void 0),Oe(this);let n=t,r=()=>{this.dep||(this.dep=new Set),ee(this.dep)},i=()=>{this.dep&&N(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 Pe(e,t){return Te(new Ne(e,t))}function Fe(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 Oe(o),a=k(t,{lazy:!0,scheduler:()=>{i||(i=!0,M(o,`value`))}}),o}function Ie(e){if(Y(e)){let t=e;return Oe({get value(){return t.value},set value(e){throw Error(`无法给只读 ref 赋值`)}})}return W(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 Le(e,t){return Pe((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function Re(e){return Y(e)&&typeof e.value!=`function`}function ze(e){if(Y(e)){let t=e.dep;if(t){N(t);return}e.value=e.value}}function Be(e,t,n){let r=e[t];return Y(r)?r:Pe((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function Ve(e){J(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=Be(e,n);return t}function He(e,t=1/0,n=new Map){if(t<=0||!W(e))return e;if(Y(e))return He(e.value,t-1,n),e;if(e[U.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=>He(e,i,n)),e;let a=J(e)&&t!==1/0?G(e):e;for(let t in a)He(e[t],i,n);return e}let Ue=`version`;function We(e){Ue=e}function Ge(){return Ue}function Ke(e,t,n={}){var r,i;let s,c=J(e),l=Array.isArray(e)&&!c,u=e=>{if(typeof e==`function`)return e();if(Y(e))return e.value;if(J(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(Y(e))s=()=>e.value;else if(c)s=()=>e;else throw Error(`无效的 watch 源`);let d=l?e.some(e=>J(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=>Ue===`version`&&J(e)?(K(e),e):He(e,m)):Ue===`version`&&J(t)?(K(t),t):He(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 qe(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 Je(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Ye(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}const Xe=`__wevu_native_bridge__`;function Ze(e){try{Object.defineProperty(e,Xe,{value:!0,configurable:!1,enumerable:!1,writable:!1})}catch(t){e[Xe]=!0}}function Qe(e){return typeof e==`function`&&!!e[Xe]}function $e(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 Oe(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 et(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}=$e({includeComputed:a,setDataStrategy:o}),p=Ae(0),m=(e,t)=>{let n=G(e),r=n.__wevuRuntime,i=r==null?void 0:r.proxy,a=(e,t)=>{let n=e[t];return Qe(n)},o=n=>!(!n||typeof n!=`object`||n===e||n===t||n===i||a(n,`triggerEvent`)||a(n,`createSelectorQuery`)||a(n,`setData`)),s=n.__wevuNativeInstance;if(o(s))return s;let c=r==null?void 0:r.instance;if(o(c))return c},h=e=>{if(Object.prototype.hasOwnProperty.call(s,e))return;let n=(...n)=>{let r=m(t,t);if(!r)return;let i=Reflect.get(r,e);if(typeof i==`function`)return i.apply(r,n)};Ze(n),s[e]=n},g=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(p.value,n===`data`||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]}if(!Reflect.has(e,n)){let t=m(e,r);if(t&&Reflect.has(t,n)){let e=Reflect.get(t,n);return typeof e==`function`?e.bind(t):e}}return Reflect.get(e,n,r)},set(e,t,n,r){if(typeof t==`string`&&c[t])return Je(l,t,n),!0;if(Reflect.has(e,t))return Reflect.set(e,t,n,r);let i=m(e,r);return i&&Reflect.has(i,t)?Reflect.set(i,t,n):Reflect.set(e,t,n,r)},has(e,t){if(t===`data`||typeof t==`string`&&(c[t]||Object.prototype.hasOwnProperty.call(s,t)))return!0;let n=m(e,e);return n&&Reflect.has(n,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,n){if(Reflect.has(e,n))return Object.getOwnPropertyDescriptor(e,n);if(typeof n==`string`){if(n===`data`)return{configurable:!0,enumerable:!1,get(){return t}};if(c[n])return{configurable:!0,enumerable:!0,get(){return c[n].value},set(e){Je(l,n,e)}};if(Object.prototype.hasOwnProperty.call(s,n))return{configurable:!0,enumerable:!1,value:s[n]}}}});return Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`){s[e]=(...e)=>t.apply(g,e);return}e===`__weapp_vite_inline_map`&&t&&typeof t==`object`&&(s[e]=t)}),h(`triggerEvent`),h(`createSelectorQuery`),h(`setData`),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=d(e,()=>t.call(g));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(g);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(g);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:g,touchSetupMethodsVersion(){p.value+=1}}}const tt=Symbol(`wevu.noSetData`);function X(e){return Object.defineProperty(e,tt,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function nt(e){return typeof e==`object`&&!!e&&e[tt]===!0}function rt(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function it(e,t=new WeakMap,n){var r,i;let a=je(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(nt(a))return;let o=J(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=q(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([it(r,t),it(n,t)])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push(it(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=>it(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=it(r,t,{...n,_depth:s-1,_budget:c});e[i]=a===void 0?null:a}),l&&l.set(o,{version:q(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=it(o[e],t,{...n,_depth:s-1,_budget:c});r!==void 0&&(u[e]=r)}),l&&l.set(o,{version:q(o),value:u}),u}function at(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 ot(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 st(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?at(e,t,st):rt(e)&&rt(t)?ot(e,t,st):!1}function ct(e){return e===void 0?null:e}function lt(e,t,n,r){if(!st(e,t)){if(rt(e)&&rt(t)){for(let i of Object.keys(t)){if(!Object.prototype.hasOwnProperty.call(e,i)){r[`${n}.${i}`]=ct(t[i]);continue}lt(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)){at(e,t,st)||(r[n]=ct(t));return}r[n]=ct(t)}}function ut(e,t){let n={};for(let r of Object.keys(t))lt(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 dt(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 ft(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+=ft(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+=ft(a,t-i,n),i>t)return i;return i}function pt(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=ft(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 mt(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=ft(e,1/0,new WeakSet);return h.set(e,n),n}return ft(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 ht(e){return e===void 0?null:e}function gt(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function _t(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(!gt(e)||!gt(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 vt(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(!vt(e[i],t[i],n-1,r))return!1;return!0}if(!gt(e)||!gt(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)||!vt(e[a],t[a],n-1,r))return!1;return!0}function yt(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 bt(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=J(t)?G(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=it(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=it(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function xt(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}),ee=new Map(M);b.clear();let N=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=ht(it(N(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),ee.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=it(n[r].value,D,{cache:y,maxDepth:_,maxKeys:v}),i=C[r];(a===`deep`?vt(i,t,o,{keys:s}):a===`shallow`?_t(i,t):Object.is(i,t))||(e[r]=ht(t),C[r]=t)}Object.assign(k,e)}let F=dt(k),I=0;if(f){let e=mt({input:F,entryMap:ee,getPlainByPath:P,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});I=e.merged,F=dt(e.out)}let L=pt(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=ee.get(e);n?yt(S,e,t,n.kind===`array`?`set`:n.op):yt(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 St(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=>{let n=[];for(let r of Object.keys(t)){if(!u(r))continue;let i=t[r],a=Y(i)?i.value:i;!a||typeof a!=`object`||G(a)===e&&n.push(r)}return n},M=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){}},ee=()=>bt({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:T,toPlainMaxDepth:v,toPlainMaxKeys:y}),N=(e=`diff`)=>{let t=ee(),o=ut(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(()=>{})}M({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(o).length})}};return{job:e=>{w()&&(C(),a===`patch`&&!O.value?xt({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:M,runDiffUpdate:N}):N(O.value?`needsFullSnapshot`:`diff`))},mutationRecorder:(e,t)=>{if(!w())return;if(e.root!==t){let t=j(e.root);if(t.length)for(let e of t)A.add(e);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`?ee():{...E},getLatestSnapshot:()=>E}}function Ct(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 wt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function Tt(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Et(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 Dt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])Je(n,a,i);else{let t=e[a];Y(t)?t.value=i:e[a]=i}return}if(t[a]){Je(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),Et(e[a],o,i)}function Ot(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function kt(e){return Ye(e)}function At(e,t,n,r){return(i,a)=>{let o=Tt(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Ot(e,o),c=e=>{Dt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:kt,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${wt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}const jt=`__wevuDefaultsScope`;let Mt={};function Nt(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function Pt(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=Nt(e.setData),i=Nt(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=Nt(e.options),o=Nt(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function Ft(e,t){return Pt(e,t)}function It(e,t){return{app:Pt(e.app,t.app),component:Pt(e.component,t.component)}}function Lt(e){Mt=It(Mt,e)}function Rt(){Mt={}}function zt(e){return Ft(Mt.app,e)}function Bt(e){return Ft(Mt.component,e)}function Vt(){if(!(typeof globalThis>`u`))return globalThis}function Ht(){var e;let t=Vt(),n=(e=import.meta.env)==null?void 0:e.PLATFORM;if(n===`tt`)return t==null?void 0:t.tt;if(n===`alipay`||n===`my`)return t==null?void 0:t.my;if(n===`weapp`||n===`wx`)return t==null?void 0:t.wx;if(t!=null&&t.wx)return t.wx;if(t!=null&&t.my)return t.my;if(t!=null&&t.tt)return t.tt}function Ut(){var e;return(e=Ht())==null?Vt():e}let Wt,Gt;function Kt(){return Wt}function qt(e){Wt=e}function Jt(){return Gt}function Yt(e){Gt=e}function Z(e){if(!Wt)throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return Wt}function Xt(e){return e.__wevuHooks||(e.__wevuHooks=Object.create(null)),e.__wevuHooks}function Q(e,t,n,{single:r=!1}={}){let i=Xt(e);if(r)i[t]=n;else{var a;((a=i[t])==null?i[t]=[]:a).push(n)}}function Zt(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 Qt(e){var t;let n=Ht();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 $t(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 en(e){Q(Z(`onLaunch`),`onLaunch`,e)}function tn(e){Q(Z(`onPageNotFound`),`onPageNotFound`,e)}function nn(e){Q(Z(`onUnhandledRejection`),`onUnhandledRejection`,e)}function rn(e){Q(Z(`onThemeChange`),`onThemeChange`,e)}function an(e){Q(Z(`onShow`),`onShow`,e)}function on(e){Q(Z(`onLoad`),`onLoad`,e)}function sn(e){Q(Z(`onHide`),`onHide`,e)}function cn(e){Q(Z(`onUnload`),`onUnload`,e)}function ln(e){Q(Z(`onReady`),`onReady`,e)}function un(e){Q(Z(`onPullDownRefresh`),`onPullDownRefresh`,e)}function dn(e){Q(Z(`onReachBottom`),`onReachBottom`,e)}function fn(e){Q(Z(`onPageScroll`),`onPageScroll`,e)}function pn(e){Q(Z(`onRouteDone`),`onRouteDone`,e)}function mn(e){Q(Z(`onTabItemTap`),`onTabItemTap`,e)}function hn(e){Q(Z(`onResize`),`onResize`,e)}function gn(e){Q(Z(`onMoved`),`onMoved`,e)}function _n(e){Q(Z(`onError`),`onError`,e)}function vn(e){Q(Z(`onSaveExitState`),`onSaveExitState`,e,{single:!0})}function yn(e){let t=Z(`onShareAppMessage`);Q(t,`onShareAppMessage`,e,{single:!0}),Zt(t,`onShareAppMessage`),Qt(t)}function bn(e){let t=Z(`onShareTimeline`);Q(t,`onShareTimeline`,e,{single:!0}),Zt(t,`onShareTimeline`),Qt(t)}function xn(e){let t=Z(`onAddToFavorites`);Q(t,`onAddToFavorites`,e,{single:!0}),Zt(t,`onAddToFavorites`)}function Sn(e){Q(Z(`onMounted`),`onReady`,e)}function Cn(e){Q(Z(`onUpdated`),`__wevuOnUpdated`,e)}function wn(e){Z(`onBeforeUnmount`),e()}function Tn(e){Q(Z(`onUnmounted`),`onUnload`,e)}function En(e){Z(`onBeforeMount`),e()}function Dn(e){Q(Z(`onBeforeUpdate`),`__wevuOnBeforeUpdate`,e)}function On(e){let t=Z(`onErrorCaptured`);Q(t,`onError`,n=>e(n,t,``))}function kn(e){Q(Z(`onActivated`),`onShow`,e)}function An(e){Q(Z(`onDeactivated`),`onHide`,e)}function jn(e){Z(`onServerPrefetch`)}function Mn(e,t){$(e,t===`before`?`__wevuOnBeforeUpdate`:`__wevuOnUpdated`)}function Nn(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function Pn(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`&&e.trim()){let t=Number(e);if(Number.isFinite(t))return t}}function Fn(e){return e.trim().replace(/[^a-z0-9]+/gi,`-`).replace(/^-+|-+$/g,``).toLowerCase()}function In(e,t){let n=Fn(typeof(t==null?void 0:t.type)==`string`?t.type:``);if(!n)return;let r=n.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase());if(r)return`${e}${r[0].toUpperCase()}${r.slice(1)}`}function Ln(e,t,n){let r=In(t,n);return r&&(e==null?void 0:e[r])!==void 0?e[r]:e==null?void 0:e[t]}function Rn(e,t){let n=Ln(e,`wvEventDetail`,t);return n===!0||n===1||n===`1`||n===`true`}function zn(e,t){return!Rn(t,e)||!e||typeof e!=`object`||!(`detail`in e)||e.detail===void 0?e:e.detail}function Bn(e,t){if(!t)return;let n=t.split(`.`).filter(Boolean),r=Y(e)?e.value:e;for(let e of n){if(Y(r)&&(r=r.value),r==null)return;r=r[e]}return Y(r)?r.value:r}function Vn(e){if(typeof e!=`object`||!e||Y(e)||J(e))return e;try{return Ce(e)}catch(t){return e}}function Hn(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=zn(n,c),u=Ln(c,`wvInlineId`,n);if(u&&r){let t=r[u];if(t&&typeof t.fn==`function`){let n={},r=Array.isArray(t.keys)?t.keys:[];for(let e=0;e<r.length;e+=1){let t=r[e];n[t]=c==null?void 0:c[`wvS${e}`]}let i=Array.isArray(t.indexKeys)?t.indexKeys:[];for(let e=0;e<i.length;e+=1){let t=i[e],r=Pn(c==null?void 0:c[`wvI${e}`]);r!==void 0&&(n[t]=r)}let a=Array.isArray(t.scopeResolvers)?t.scopeResolvers:[];for(let t=0;t<r.length;t+=1){let i=r[t],o=a[t];try{let t;if(typeof o==`function`)t=o(e,n,l);else if(o&&typeof o==`object`&&o.type===`for-item`){let r=n[o.indexKey],i=Bn(e,o.path);t=i==null?void 0:i[r]}else continue;t!==void 0&&(n[i]=Vn(t))}catch(e){}}let o=t.fn(e,n,l);return typeof o==`function`?o.call(e,l):o}}let d=Ln(c,`wvHandler`,n),f=typeof t==`string`&&t?t:typeof d==`string`?d:void 0;if(!f)return;let p=Ln(c,`wvArgs`,n),m=[];if(Array.isArray(p))m=p;else if(typeof p==`string`)try{m=JSON.parse(p)}catch(e){try{m=JSON.parse(Nn(p))}catch(e){m=[]}}Array.isArray(m)||(m=[]);let h=m.map(e=>e===`$event`?l:e),g=e==null?void 0:e[f];if(typeof g==`function`)return g.apply(e,h)}const Un=new Map;let Wn=0;function Gn(){return Wn+=1,`wv${Wn}`}function Kn(e,t,n){var r;let i=(r=Un.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(i.snapshot=t,i.proxy=n,Un.set(e,i),i.subscribers.size)for(let e of i.subscribers)try{e(t,n)}catch(e){}}function qn(e){Un.delete(e)}function Jn(e,t){var n;let r=(n=Un.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return r.subscribers.add(t),Un.set(e,r),()=>{let n=Un.get(e);n&&n.subscribers.delete(t)}}function Yn(e){var t;return(t=Un.get(e))==null?void 0:t.proxy}function Xn(e){var t;return(t=Un.get(e))==null?void 0:t.snapshot}function Zn(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;Kn(n,i,t.proxy)}function Qn(e){return e.kind===`component`}function $n(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return Y(r)?r.value:r},set(e,t,n,r){let i=e[t];return Y(i)&&!Y(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function er(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=$n(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 tr(e,t){if(!t||typeof t!=`object`)return e;let n=t;return X(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 nr(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n.__wevuExposed;return r&&typeof r==`object`?er(n,r):(t=n.__wevu)!=null&&t.proxy?n.__wevu.proxy:e}function rr(e){return e.__wevuTemplateRefMap}function ir(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function ar(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}:Y(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function or(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=X(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function sr(e){let t=e;if(t&&typeof t.createSelectorQuery==`function`)return t.createSelectorQuery();let n=Ht();return n&&typeof n.createSelectorQuery==`function`?n.createSelectorQuery().in(t):null}function cr(e,t,n,r,i){let a=sr(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 lr(e,t,n){return X({selector:t,boundingClientRect:r=>cr(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>cr(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>cr(e,t,n,e=>e.fields(r),i),node:r=>cr(e,t,n,e=>e.node(),r)})}function ur(e,t){let n=e;if(!n)return t.inFor?X([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return X((Array.isArray(r)?r:[]).map((n,r)=>tr(lr(e,t.selector,{multiple:!0,index:r}),nr(n))))}return X([])}let r=lr(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?tr(r,nr(n.selectComponent(t.selector))):r}function dr(e,t,n){return t.inFor?X((Array.isArray(n)?n:[]).map((n,r)=>lr(e,t.selector,{multiple:!0,index:r}))):n?lr(e,t.selector,{multiple:!1}):null}function fr(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=rr(e),i=n.filter(e=>!Qn(e)),a=n.filter(e=>Qn(e)).map(t=>({binding:t,value:ur(e,t)})),o=n=>{var i,a;let o=or(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=ar(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?X(t.values):t.values[0]:t.hasFor?X([]):null,o[e]=n,ir(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=sr(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:dr(e,n.binding,i)}});o([...a,...n])})}function pr(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,fr(e,()=>{let t=e.__wevuTemplateRefsCallbacks;!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function mr(e){var t,n;let r=e.__wevuTemplateRefs;if(!r||!r.length)return;let i=or(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=rr(e);for(let t of r){let n=ar(e,t),r=t.inFor?X([]):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,ir(s,n.name,r))}for(let e of Object.keys(i))o.has(e)||delete i[e]}function hr(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 gr(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=gr(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 _r(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 vr(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=gr(o,e,n);if(!t)continue;let s=_r(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function yr(){return Object.freeze(Object.create(null))}function br(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function xr(e){try{return X(e)}catch(t){return e}}function Sr(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:Object.prototype.hasOwnProperty.call(e,`bubbles`)||Object.prototype.hasOwnProperty.call(e,`composed`)||Object.prototype.hasOwnProperty.call(e,`capturePhase`)}function Cr(e){if(e.length===0)return{detail:void 0,options:void 0};if(e.length===1)return{detail:e[0],options:void 0};let t=e[e.length-1];if(Sr(t)){let n=e.slice(0,-1);return{detail:n.length<=1?n[0]:n,options:t}}return{detail:e,options:void 0}}const wr=[`triggerEvent`,`createSelectorQuery`,`setData`],Tr=`__wevuSetupContextInstance`;function Er(e,t,n){let r=e==null?void 0:e.state,i=r&&typeof r==`object`?G(r):void 0,a=e==null?void 0:e.proxy,o=e=>{let r=e[n];if(typeof r!=`function`)return!1;if(Qe(r))return!0;let i=t[n];return typeof i==`function`&&r===i},s=e=>!e||typeof e!=`object`||e===t||e===a||o(e)?!1:typeof e[n]==`function`,c=i?i.__wevuNativeInstance:void 0;if(s(c))return c;let l=e==null?void 0:e.instance;if(s(l))return l}function Dr(e,t,n){Ze(n);try{Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(r){e[t]=n}}function Or(e,t){let n=e[Tr];if(n&&typeof n==`object`)return n;let r=Object.create(null),i=n=>{let r=Er(t,e,n);if(r)return r;let i=e[n];if(typeof i==`function`&&!Qe(i))return e};Dr(r,`triggerEvent`,(...e)=>{let[t,n,r]=e,a=i(`triggerEvent`);a&&typeof a.triggerEvent==`function`&&(e.length>=3?a.triggerEvent(t,n,r):a.triggerEvent(t,n))}),Dr(r,`createSelectorQuery`,()=>{var n;let r=i(`createSelectorQuery`);if(r&&typeof r.createSelectorQuery==`function`)return r.createSelectorQuery();let a=Ht();if(!a||typeof a.createSelectorQuery!=`function`)return;let o=a.createSelectorQuery();if(!o||typeof o.in!=`function`)return o;let s=(n=Er(t,e,`setData`))==null?e:n;return o.in(s)}),Dr(r,`setData`,(e,n)=>{let r=i(`setData`);if(r&&typeof r.setData==`function`)return r.setData(e,n);let a=t==null?void 0:t.adapter,o=typeof(a==null?void 0:a.setData)==`function`?a.setData(e):void 0;return typeof n==`function`&&n(),o});let a=xr(new Proxy(r,{get(t,n,r){if(Reflect.has(t,n))return Reflect.get(t,n,r);let i=e[n];return typeof i==`function`?i.bind(e):i},has(t,n){return Reflect.has(t,n)||n in e},set(t,n,r){return Reflect.has(t,n)?(t[n]=r,!0):(e[n]=r,!0)}}));try{Object.defineProperty(e,Tr,{value:a,configurable:!0,enumerable:!1,writable:!0})}catch(t){e[Tr]=a}return a}function kr(e,t){try{Object.defineProperty(e,`__wevuProps`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuProps=t}}function Ar(e,t){try{Object.defineProperty(e,`__wevuNativeInstance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e.__wevuNativeInstance=t}}function jr(e,t){try{Object.defineProperty(e,`__wevuRuntime`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e.__wevuRuntime=t}}function Mr(e,t){try{Object.defineProperty(e,`instance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){try{e.instance=t}catch(e){}}}function Nr(e){let t=e[Tr],n=t&&typeof t.setData==`function`?t.setData:void 0;if(typeof n==`function`&&!Qe(n))return n;let r=e.setData;if(typeof r==`function`&&!Qe(r))return r}function Pr(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function Fr(e,t,n){try{return t.call(e,n)}catch(t){let n=Pr(e);throw Error(`[wevu] setData failed (${n}): ${t instanceof Error?t.message:String(t)}`)}}function Ir(e,t){let n=Object.keys(e);for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r))try{delete e[r]}catch(e){}for(let[n,r]of Object.entries(t))e[n]=r}function Lr(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e.__wevu)return e.__wevu;xr(e);let p=Gn(),m=i!=null&&i.deferSetData?(e=>{let t,n=!1,r={setData(r){if(!n){var i;t={...(i=t)==null?{}:i,...r};return}let a=Nr(e);if(a)return Fr(e,a,r)}};return r.__wevu_enableSetData=()=>{n=!0;let r=Nr(e);if(t&&Object.keys(t).length&&r){let n=t;t=void 0,Fr(e,r,n)}},r})(e):{setData(t){let n=Nr(e);if(n)return Fr(e,n,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;Kn(p,n,h.proxy)},_={...m,setData(t){let n=m.setData(t);return g(),pr(e),n}},v=t.mount({..._});h=v,Mr(v,e);let y=(a=v==null?void 0:v.proxy)==null?{}:a,b=(o=v==null?void 0:v.state)==null?{}:o;b&&typeof b==`object`&&(jr(b,v),Ar(b,e));let 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?(()=>br()):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,Zn(e,T,p),n){let t=vr(T,n,e);t.length&&(e.__wevuWatchStops=t)}if(r){let t=e.properties||{},n=b&&typeof b==`object`?b.__wevuProps:void 0,i=n&&typeof n==`object`?n:ye({});Ir(i,t),b&&typeof b==`object`&&kr(b,i);try{Object.defineProperty(e,`__wevuProps`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuProps=i}let a=ye(Object.create(null)),o=new Set(Array.isArray(e.__wevuPropKeys)?e.__wevuPropKeys:[]),s=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(a))(!t||!Object.prototype.hasOwnProperty.call(t,e)||o.has(e)||s(e))&&delete a[e];if(t)for(let[e,n]of Object.entries(t))o.has(e)||s(e)||(a[e]=n)})();try{Object.defineProperty(e,`__wevuAttrs`,{value:a,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuAttrs=a}let c=Or(e,T),l={props:i,runtime:T,state:b,proxy:y,bindModel:w.bind(T),watch:C.bind(T),instance:c,emit:(e,...t)=>{let{detail:n,options:r}=Cr(t);c.triggerEvent(e,n,r)},expose:t=>{e.__wevuExposed=t},attrs:a,slots:yr()};qt(e),Yt(l);try{let e=hr(r,i,l),t=!1;if(e&&typeof e==`object`){let n=J(v.state)?G(v.state):v.state;Object.keys(e).forEach(r=>{let i=e[r];if(typeof i==`function`)v.methods[r]=(...e)=>i.apply(v.proxy,e),t=!0;else{if(o.has(r)){let e=i;try{Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){let t=n.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let i=n.__wevuProps;if(!(!i||typeof i!=`object`))try{i[r]=t}catch(e){}}})}catch(e){v.state[r]=i}return}v.state[r]=i}})}if(t){var E;(E=v.__wevu_touchSetupMethodsVersion)==null||E.call(v)}}finally{Yt(void 0),qt(void 0)}}try{let t=v.methods;for(let n of Object.keys(t))wr.includes(n)||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 Rr(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function zr(e){let t=e.__wevu,n=e.__wvOwnerId;n&&qn(n),mr(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 Br(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;let r=this.__wevu;return Hn((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n.__weapp_vite_inline_map)});let c=s.onLaunch;s.onLaunch=function(...t){Lr(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 Vr(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 Hr=!1,Ur;function Wr(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 Gr(){if(Hr)return;Hr=!0;let e=Ht();if(!e||typeof e!=`object`)return;let t=e.startPullDownRefresh;typeof t==`function`&&(e.startPullDownRefresh=function(...e){let n=t.apply(this,e);return Ur&&$(Ur,`onPullDownRefresh`,[]),n});let n=e.pageScrollTo;typeof n==`function`&&(e.pageScrollTo=function(e,...t){let r=n.apply(this,[e,...t]);return Ur&&$(Ur,`onPageScroll`,[e==null?{}:e]),r})}function Kr(e){let{enableOnShareAppMessage:t,enableOnShareTimeline:n}=e;if(!t&&!n)return;let r=Ht();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 qr(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,Lr(this,t,n,r),Rr(this),l&&Kr({enableOnShareAppMessage:_,enableOnShareTimeline:v}),$(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&Ur===this&&(Ur=void 0),zr(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(Gr(),Ur=this,this.__wevuOnLoadCalled||j.onLoad.call(this,Wr(this)),Kr({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&&Ur===this&&(Ur=void 0),$(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this.__wevuOnLoadCalled||j.onLoad.call(this,Wr(this)),Kr({enableOnShareAppMessage:_,enableOnShareTimeline:v})),!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,pr(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=$t(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=$t(this,`onShareAppMessage`,e);return t===void 0?D.apply(this,e):t}),v&&(j.onShareTimeline=function(...e){let t=$t(this,`onShareTimeline`,e);return t===void 0?O.apply(this,e):t}),y&&(j.onAddToFavorites=function(...e){let t=$t(this,`onAddToFavorites`,e);return t===void 0?k.apply(this,e):t}),j}function Jr(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r.__weapp_vite_inline||(r.__weapp_vite_inline=function(e){var t,n;let r=this.__wevu;return Hn((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n.__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=Ye(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);function a(e){let t=e.__wevu;if(t)return t;let n=e.$state;if(n&&typeof n==`object`)return n.__wevuRuntime}function o(e,t){if((e==null?void 0:e.proxy)===t)return;let n=e==null?void 0:e.proxy,r=e=>{let r=t[e];if(typeof r!=`function`)return!1;let i=n==null?void 0:n[e];return typeof i==`function`&&r===i};if(r(`triggerEvent`)||r(`createSelectorQuery`)||r(`setData`)||!(typeof t.triggerEvent==`function`||typeof t.createSelectorQuery==`function`||typeof t.setData==`function`))return;let i=e==null?void 0:e.state;if(!(!i||typeof i!=`object`)&&t.$state!==i)try{Object.defineProperty(i,`__wevuNativeInstance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){i.__wevuNativeInstance=t}}for(let e of i){if(e.startsWith(`__weapp_vite_`))continue;let t=r[e];r[e]=function(...n){var r;let i=a(this);o(i,this);let s,c=i==null||(r=i.methods)==null?void 0:r[e];if(c&&(s=c.apply(i.proxy,n)),typeof t==`function`){let e=t.apply(this,n);return e===void 0?s:e}return s}}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;Kn(r,i,n.proxy)}function Xr(e){let{restOptions:t,userObservers:n}=e,r=`__wevuPendingPropValues`,i=t.properties&&typeof t.properties==`object`?Object.keys(t.properties):[],a=new Set(i),o=e=>{try{Object.defineProperty(e,`__wevuPropKeys`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuPropKeys=i}},s=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,i=r&&typeof r==`object`?r:void 0,o=Object.keys(t);for(let e of o)if(!i||!Object.prototype.hasOwnProperty.call(i,e)||a.has(e)||n(e))try{delete t[e]}catch(e){}if(!i){Yr(e);return}for(let[e,r]of Object.entries(i))if(!(a.has(e)||n(e)))try{t[e]=r}catch(e){}Yr(e)},c=e=>{let t=e.__wevuProps,n=e.properties,i=e[r];if(t&&typeof t==`object`&&n&&typeof n==`object`){let r=n,a=Object.keys(t);for(let e of a)if(!Object.prototype.hasOwnProperty.call(r,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(r)){let r=i&&Object.prototype.hasOwnProperty.call(i,e)?i[e]:n;try{t[e]=r}catch(e){}}if(i){for(let[e,n]of Object.entries(i))if(!Object.prototype.hasOwnProperty.call(r,e))try{t[e]=n}catch(e){}}Yr(e)}i&&delete e[r],s(e)},l=(e,t,n)=>{var i,a;let o=e.__wevuProps;if(!o||typeof o!=`object`)return;try{o[t]=n}catch(e){}let c=(a=(i=e)[r])==null?i[r]=Object.create(null):a;c[t]=n,Yr(e),s(e)},u={};if(i.length)for(let e of i)u[e]=function(t){l(this,e,t)};let d={...n==null?{}:n};for(let[e,t]of Object.entries(u)){let n=d[e];typeof n==`function`?d[e]=function(...e){n.apply(this,e),t.apply(this,e)}:d[e]=t}let f=d[`**`];return d[`**`]=function(...e){typeof f==`function`&&f.apply(this,e),c(this)},{attachWevuPropKeys:o,syncWevuPropsFromInstance:c,finalObservers:d}}function Zr(e,t,n,r,i){var a,o;let s=(e,t=new WeakMap)=>{if(!e||typeof e!=`object`)return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=[];t.set(e,n);for(let r of e)n.push(s(r,t));return n}let n={};t.set(e,n);for(let[r,i]of Object.entries(e))n[r]=s(i,t);return n},c=e=>{let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`},{methods:l={},lifetimes:u={},pageLifetimes:d={},options:f={},...p}=i,m=p.onLoad,h=p.onUnload,g=p.onShow,_=p.onHide,v=p.onReady,y=p.onSaveExitState,b=p.onPullDownRefresh,x=p.onReachBottom,S=p.onPageScroll,C=p.onRouteDone,w=p.onTabItemTap,T=p.onResize,E=p.onShareAppMessage,D=p.onShareTimeline,O=p.onAddToFavorites,k=(a=p.features)==null?{}:a,A=[m,h,g,_,v,y,b,x,S,C,w,T,E,D,O].some(e=>typeof e==`function`),j=!!p.__wevu_isPage||Object.keys(k==null?{}:k).length>0||A,M={...p},ee=new Set([`behaviors`,`relations`,`externalClasses`,`options`,`properties`,`observers`,`pureDataPattern`,`virtualHost`,`definitionFilter`,`export`,`__wevuTemplateRefs`,`setupLifecycle`,`features`,`__wevu_isPage`]),N=[];for(let[e,t]of Object.entries(M))ee.has(e)||typeof t!=`function`&&(N.push([e,t]),delete M[e]);let P=e=>{if(N.length){for(let[t,n]of N)if(!Object.prototype.hasOwnProperty.call(e,t))try{e[t]=s(n)}catch(e){}}},te=new Set([`export`,`definitionFilter`,`onLoad`,`onUnload`,`onShow`,`onHide`,`onReady`,`onSaveExitState`,`onPullDownRefresh`,`onReachBottom`,`onPageScroll`,`onRouteDone`,`onTabItemTap`,`onResize`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]),F={};for(let[e,t]of Object.entries(M))typeof t!=`function`||te.has(e)||(F[e]=t,delete M[e]);let I=M.__wevuTemplateRefs;delete M.__wevuTemplateRefs;let L=M.observers,R=M.setupLifecycle===`created`?`created`:`attached`;delete M.setupLifecycle;let z=M.created;delete M.features,delete M.created,delete M.onLoad,delete M.onUnload,delete M.onShow,delete M.onHide,delete M.onReady;let{enableOnPullDownRefresh:B,enableOnReachBottom:V,enableOnPageScroll:ne,enableOnRouteDone:re,enableOnTabItemTap:ie,enableOnResize:H,enableOnShareAppMessage:ae,enableOnShareTimeline:oe,enableOnAddToFavorites:se,enableOnSaveExitState:ce,effectiveOnSaveExitState:le,effectiveOnPullDownRefresh:ue,effectiveOnReachBottom:U,effectiveOnPageScroll:W,effectiveOnRouteDone:de,effectiveOnTabItemTap:fe,effectiveOnResize:G,effectiveOnShareAppMessage:pe,effectiveOnShareTimeline:me,effectiveOnAddToFavorites:he}=Vr({features:k,userOnSaveExitState:y,userOnPullDownRefresh:b,userOnReachBottom:x,userOnPageScroll:S,userOnRouteDone:C,userOnTabItemTap:w,userOnResize:T,userOnShareAppMessage:E,userOnShareTimeline:D,userOnAddToFavorites:O}),ge=(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=M.export;M.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 _e={multipleSlots:(o=f.multipleSlots)==null?!0:o,...f},{attachWevuPropKeys:K,syncWevuPropsFromInstance:ve,finalObservers:ye}=Xr({restOptions:M,userObservers:L}),{finalMethods:be}=Jr({userMethods:{...F,...l},runtimeMethods:t}),q=qr({runtimeApp:e,watch:n,setup:r,userOnLoad:m,userOnUnload:h,userOnShow:g,userOnHide:_,userOnReady:v,isPage:j,enableOnSaveExitState:ce,enableOnPullDownRefresh:B,enableOnReachBottom:V,enableOnPageScroll:ne,enableOnRouteDone:re,enableOnTabItemTap:ie,enableOnResize:H,enableOnShareAppMessage:ae,enableOnShareTimeline:oe,enableOnAddToFavorites:se,effectiveOnSaveExitState:le,effectiveOnPullDownRefresh:ue,effectiveOnReachBottom:U,effectiveOnPageScroll:W,effectiveOnRouteDone:de,effectiveOnTabItemTap:fe,effectiveOnResize:G,effectiveOnShareAppMessage:pe,effectiveOnShareTimeline:me,effectiveOnAddToFavorites:he,hasHook:ge}),xe={};if(j)for(let e of[`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=q[e];typeof t==`function`&&typeof be[e]!=`function`&&(xe[e]=function(...e){return t.apply(this,e)})}Component({...M,...q,observers:ye,lifetimes:{...u,created:function(...t){if(P(this),Array.isArray(I)&&I.length&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:I,configurable:!0,enumerable:!1,writable:!1}),K(this),R===`created`){try{Lr(this,e,n,r,{deferSetData:!0})}catch(e){let t=c(this);throw Error(`[wevu] mount runtime failed in created (${t}): ${e instanceof Error?e.message:String(e)}`)}ve(this)}typeof z==`function`&&z.apply(this,t),typeof u.created==`function`&&u.created.apply(this,t)},moved:function(...e){$(this,`onMoved`,e),typeof u.moved==`function`&&u.moved.apply(this,e)},attached:function(...t){if(P(this),Array.isArray(I)&&I.length&&!this.__wevuTemplateRefs&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:I,configurable:!0,enumerable:!1,writable:!1}),K(this),R!==`created`||!this.__wevu)try{Lr(this,e,n,r)}catch(e){let t=c(this);throw Error(`[wevu] mount runtime failed in attached (${t}): ${e instanceof Error?e.message:String(e)}`)}ve(this),R===`created`&&Rr(this),typeof u.attached==`function`&&u.attached.apply(this,t)},ready:function(...e){if(j&&typeof q.onReady==`function`){q.onReady.call(this,...e),typeof u.ready==`function`&&u.ready.apply(this,e);return}if(!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,ve(this),pr(this,()=>{$(this,`onReady`,e),typeof u.ready==`function`&&u.ready.apply(this,e)});return}typeof u.ready==`function`&&u.ready.apply(this,e)},detached:function(...e){if(j&&typeof q.onUnload==`function`){q.onUnload.call(this,...e),typeof u.detached==`function`&&u.detached.apply(this,e);return}mr(this),zr(this),typeof u.detached==`function`&&u.detached.apply(this,e)},error:function(...e){$(this,`onError`,e),typeof u.error==`function`&&u.error.apply(this,e)}},pageLifetimes:{...d,show:function(...e){if(j&&typeof q.onShow==`function`){q.onShow.call(this,...e),typeof d.show==`function`&&d.show.apply(this,e);return}$(this,`onShow`,e),typeof d.show==`function`&&d.show.apply(this,e)},hide:function(...e){if(j&&typeof q.onHide==`function`){q.onHide.call(this,...e),typeof d.hide==`function`&&d.hide.apply(this,e);return}$(this,`onHide`,e),typeof d.hide==`function`&&d.hide.apply(this,e)},resize:function(...e){if(j&&typeof q.onResize==`function`){q.onResize.call(this,...e),typeof d.resize==`function`&&d.resize.apply(this,e);return}$(this,`onResize`,e),typeof d.resize==`function`&&d.resize.apply(this,e)}},methods:{...xe,...be},options:_e})}function Qr(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 $r(e){let{[jt]:t,data:n,computed:r,methods:i,setData:o,watch:s,setup:c,...l}=e[jt]===`component`?e:zt(e),u=i==null?{}:i,d=r==null?{}:r,f=new Set,p={globalProperties:{}},m={mount(e){let t=(n==null?(()=>({})):n)();if(t&&typeof t==`object`&&!Object.prototype.hasOwnProperty.call(t,`__wevuProps`))try{Object.defineProperty(t,`__wevuProps`,{value:ye(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let r=Ce(t),i=d,s=u,c=!0,l=[],{includeComputed:f,setDataStrategy:m,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,prelinkMaxDepth:T,prelinkMaxKeys:E,debug:D,debugWhen:O,debugSampleRate:A,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,shouldIncludeKey:N}=Ct(o),{boundMethods:P,computedRefs:I,computedSetters:L,dirtyComputedKeys:R,computedProxy:z,publicInstance:B,touchSetupMethodsVersion:V}=et({state:r,computedDefs:i,methodDefs:s,appConfig:p,includeComputed:f,setDataStrategy:m}),ne=e==null?{setData:()=>{}}:e,re=G(r),ie,H=St({state:r,computedRefs:I,dirtyComputedKeys:R,includeComputed:f,setDataStrategy:m,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,currentAdapter:ne,shouldIncludeKey:N,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,debug:D,debugWhen:O,debugSampleRate:A,runTracker:()=>ie==null?void 0:ie(),isMounted:()=>c}),ae=()=>H.job(re),oe=e=>H.mutationRecorder(e,re);ie=k(()=>{K(r);let e=r.__wevuProps;J(e)&&K(e);let t=r.__wevuAttrs;J(t)&&K(t),Object.keys(r).forEach(e=>{let t=r[e];if(Y(t)){let e=t.value;J(e)&&K(e)}else J(t)&&K(t)})},{lazy:!0,scheduler:()=>a(ae)}),ae(),l.push(Qr(()=>x(ie))),m===`patch`&&(ge(r,{shouldIncludeTopKey:N,maxDepth:T,maxKeys:E}),te(oe),l.push(Qr(()=>F(oe))),l.push(Qr(()=>_e(r))));function se(e,t,n){let r=Ke(e,(e,n)=>t(e,n),n);return l.push(r),Qr(()=>{r();let e=l.indexOf(r);e>=0&&l.splice(e,1)},r)}let ce={get state(){return r},get proxy(){return B},get methods(){return P},get computed(){return z},get adapter(){return ne},bindModel:At(B,r,I,L),watch:se,snapshot:()=>H.snapshot(),unmount:()=>{c&&(c=!1,l.forEach(e=>{try{e()}catch(e){}}),l.length=0)}};try{Object.defineProperty(ce,`__wevu_touchSetupMethodsVersion`,{value:V,configurable:!0,enumerable:!1,writable:!1})}catch(e){ce.__wevu_touchSetupMethodsVersion=V}return ce},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=Ht(),t=(e==null?void 0:e.__wxConfig)!==void 0,n=`__wevuAppRegistered`;t&&e&&e[n]||(t&&e&&(e[n]=!0),Br(m,i==null?{}:i,s,c,l))}return m}function ei(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 ti(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function ni(e){var t,n,r,i;let a=Ln((t=(n=e==null||(r=e.currentTarget)==null?void 0:r.dataset)==null?e==null||(i=e.target)==null?void 0:i.dataset:n)==null?{}:t,`wvArgs`,e),o=[];if(Array.isArray(a))o=a;else if(typeof a==`string`)try{o=JSON.parse(a)}catch(e){try{o=JSON.parse(ti(a))}catch(e){o=[]}}return Array.isArray(o)||(o=[]),o.map(t=>t===`$event`?e:t)}function ri(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 ii(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=ri(i),s=ri(a),c={...o,...s};typeof(e==null?void 0:e.setData)==`function`&&e.setData({__wvSlotPropsData:c})}function ai(e){let t={properties:{__wvOwnerId:{type:String,value:``},__wvSlotProps:{type:null,value:null,observer(e){ii(this,{__wvSlotProps:e})}},__wvSlotScope:{type:null,value:null,observer(e){ii(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(ii(this),!n)return;let r=(e,t)=>{this.__wvOwnerProxy=t,typeof this.setData==`function`&&this.setData({__wvOwner:e||{}})};this.__wvOwnerUnsub=Jn(n,r);let i=Xn(n);i&&r(i,Yn(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;let o=this.__wvOwnerProxy,s=Hn(o,void 0,e,(t=this.__wevu)==null||(t=t.methods)==null?void 0:t.__weapp_vite_inline_map);if(s!==void 0)return s;if(!o)return;let c=Ln((n=(r=e==null||(i=e.currentTarget)==null?void 0:i.dataset)==null?e==null||(a=e.target)==null?void 0:a.dataset:r)==null?{}:n,`wvHandler`,e);if(typeof c!=`string`||!c)return;let l=o==null?void 0:o[c];if(typeof l!=`function`)return;let u=ni(e);return l.apply(o,u)}}};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 oi(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function si(e){return typeof e!=`object`||!e||Y(e)||J(e)||Array.isArray(e)?!0:oi(e)}function ci(e,t,n){var r,i;let a=new Set(Array.isArray(t==null?void 0:t.__wevuPropKeys)?t.__wevuPropKeys:[]),o=(r=e==null?void 0:e.methods)==null?Object.create(null):r,s=(i=e==null?void 0:e.state)==null?Object.create(null):i,c=J(s)?G(s):s,l=!1;if(e&&!e.methods)try{e.methods=o}catch(e){}if(e&&!e.state)try{e.state=s}catch(e){}if(Object.keys(n).forEach(r=>{let i=n[r];if(typeof i==`function`)o[r]=(...t)=>{var n;return i.apply((n=e==null?void 0:e.proxy)==null?e:n,t)},l=!0;else{if(a.has(r)){let e=i;try{Object.defineProperty(c,r,{configurable:!0,enumerable:!1,get(){let t=c.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let n=c.__wevuProps;if(!(!n||typeof n!=`object`))try{n[r]=t}catch(e){}}})}catch(e){s[r]=i}return}if(i===t||!si(i))try{Object.defineProperty(c,r,{value:i,configurable:!0,enumerable:!1,writable:!0})}catch(e){s[r]=i}else s[r]=i}}),e){var u,d;if(e.methods=(u=e.methods)==null?o:u,e.state=(d=e.state)==null?s:d,l){var f;(f=e.__wevu_touchSetupMethodsVersion)==null||f.call(e)}}}let li;function ui(){let e=Ut();if(!e)return;let t=e;!t.__weapp_vite_createScopedSlotComponent&&li&&(t.__weapp_vite_createScopedSlotComponent=li)}function di(e){ui();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Bt(e),u=$r({data:n,computed:r,methods:i,setData:a,[jt]:`component`}),d=(e,t)=>{let n=hr(s,e,t);return n&&t&&ci(t.runtime,t.instance,n),n},f=ei(l,c),p={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:f};return Zr(u,i==null?{}:i,o,d,f),{__wevu_runtime:u,__wevu_options:p}}function fi(e){ui();let{properties:t,props:n,...r}=e;di(ei(r,n,t))}function pi(e){fi(ai(e))}li=pi,ui();const mi=Symbol(`wevu.provideScope`),hi=new Map;function gi(e,t){let n=Kt();if(n){let r=n[mi];r||(r=new Map,n[mi]=r),r.set(e,t)}else hi.set(e,t)}function _i(e,t){let n=Kt();if(n){let t=n;for(;t;){let n=t[mi];if(n&&n.has(e))return n.get(e);t=null}}if(hi.has(e))return hi.get(e);if(arguments.length>=2)return t;throw Error(`wevu.inject:未找到对应 key 的值`)}function vi(e,t){hi.set(e,t)}function yi(e,t){if(hi.has(e))return hi.get(e);if(arguments.length>=2)return t;throw Error(`injectGlobal():未找到对应 key 的 provider:${String(e)}`)}const bi=/\B([A-Z])/g;function xi(e){return e?e.startsWith(`--`)?e:e.replace(bi,`-$1`).toLowerCase():``}function Si(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 Ci(e){let t=``;for(let n of Object.keys(e)){let r=je(e[n]);if(r==null)continue;let i=xi(n);if(Array.isArray(r))for(let e of r){let n=je(e);n!=null&&(t=Si(t,`${i}:${n}`))}else t=Si(t,`${i}:${r}`)}return t}function wi(e){let t=je(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=wi(n);t&&(e=Si(e,t))}return e}return typeof t==`object`?Ci(t):``}function Ti(e){let t=je(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=Ti(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))je(t[e])&&(n+=`${e} `);return n.trim()}return n}const Ei=Object.freeze(Object.create(null));function Di(){var e;let t=Jt();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function Oi(){var e;let t=Jt();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?Ei:e}function ki(){let e=Jt();if(!(e!=null&&e.instance))throw Error(`useNativeInstance() 必须在 setup() 的同步阶段调用`);return e.instance}function Ai(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 ji(e){let t=Kt();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=Ai(t),i=r.get(n);if(i)return i;let a=Le(null);return r.set(n,a),a}const Mi=Object.freeze(Object.create(null));function Ni(e,t){let n=t===`modelValue`?`modelModifiers`:`${t}Modifiers`,r=e==null?void 0:e[n];return!r||typeof r!=`object`?Mi:r}function Pi(e,t){let n=e;try{Object.defineProperty(n,Symbol.iterator,{configurable:!0,value:()=>{let e=0;return{next:()=>e===0?(e+=1,{value:n,done:!1}):e===1?(e+=1,{value:t(),done:!1}):{value:void 0,done:!0}}}})}catch(e){}return n}function Fi(e,t,n={}){let r=Jt();if(!r)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let i=r.emit,a=`update:${t}`,o=()=>Ni(e,t);return Pi(Pe({get:()=>{let r=e==null?void 0:e[t];return n.get?n.get(r,o()):r},set:e=>{let t=n.set?n.set(e,o()):e;i==null||i(a,t)}}),o)}function Ii(e){let t=Kt();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${wt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function Li(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 Ri(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 zi(e){return typeof e==`object`&&!!e}function Bi(e){if(!zi(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Vi(e,t){for(let n in t)e[n]=t[n]}function Hi(e){if(Array.isArray(e))return e.map(e=>Hi(e));if(Bi(e)){let t={};for(let n in e)t[n]=Hi(e[n]);return t}return e}function Ui(e,t){if(Array.isArray(e)&&Array.isArray(t)){e.length=0,t.forEach((t,n)=>{e[n]=Hi(t)});return}if(zi(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)){Ui(i,r);continue}if(Bi(r)&&Bi(i)){Ui(i,r);continue}e[n]=Hi(r)}}}function Wi(e,t,n,r){let i={$id:e};Object.defineProperty(i,`$state`,{get(){return t},set(e){t&&zi(e)&&(Vi(t,e),n(`patch object`))}}),i.$patch=e=>{if(!t){typeof e==`function`?(e(i),n(`patch function`)):(Vi(i,e),n(`patch object`));return}typeof e==`function`?(e(t),n(`patch function`)):(Vi(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 Gi(){let e={_stores:new Map,_plugins:[],install(e){},use(t){return typeof t==`function`&&e._plugins.push(t),e}};return Gi._instance=e,e}const Ki=Object.prototype.hasOwnProperty;function qi(e){return Y(e)&&Ki.call(e,`dep`)}function Ji(e){return J(e)?Hi(G(e)):qi(e)?Hi(e.value):Hi(e)}function Yi(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 Xi(e,t){let n,r=!1,i=Gi._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(`$`)||Y(t)&&!qi(t)||o.set(e,Ji(t))});let s=Wi(e,void 0,e=>a(e),()=>{o.forEach((e,t)=>{let r=n[t];if(qi(r)){r.value=Hi(e);return}if(J(r)){Ui(r,e);return}Y(r)||(n[t]=Hi(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=Yi(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]=Ri(n,e,t,s.actionSubs);return}if(qi(t)){d.push(t);return}if(J(t)){d.push(t);return}if(!Y(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=>{qi(e)?e.value:K(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=Ce(u),f=Hi(G(u)),p=()=>{},m=Wi(e,d,e=>p(e),()=>{Ui(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=Yi(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=Fe(()=>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]=Ri(_,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(K(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 Zi(e){let t={};for(let n in e){let r=e[n];if(typeof r==`function`){t[n]=r;continue}Y(r)?t[n]=r:t[n]=Fe({get:()=>e[n],set:t=>{e[n]=t}})}return t}export{te as addMutationRecorder,y as batch,$ as callHookList,$t as callHookReturn,Mn as callUpdateHooks,Fe as computed,$r as createApp,Gi as createStore,fi as createWevuComponent,pi as createWevuScopedSlotComponent,Pe as customRef,di as defineComponent,Xi as defineStore,k as effect,w as effectScope,v as endBatch,Kt as getCurrentInstance,T as getCurrentScope,Jt as getCurrentSetupContext,Ge as getDeepWatchStrategy,q as getReactiveVersion,_i as inject,yi as injectGlobal,nt as isNoSetData,Ee as isRaw,J as isReactive,Y as isRef,be as isShallowReactive,Re as isShallowRef,X as markNoSetData,Te as markRaw,Li as mergeModels,Lr as mountRuntimeInstance,o as nextTick,Ti as normalizeClass,wi as normalizeStyle,kn as onActivated,xn as onAddToFavorites,En as onBeforeMount,wn as onBeforeUnmount,Dn as onBeforeUpdate,An as onDeactivated,_n as onError,On as onErrorCaptured,sn as onHide,en as onLaunch,on as onLoad,Sn as onMounted,gn as onMoved,tn as onPageNotFound,fn as onPageScroll,un as onPullDownRefresh,dn as onReachBottom,ln as onReady,hn as onResize,pn as onRouteDone,vn as onSaveExitState,E as onScopeDispose,jn as onServerPrefetch,yn as onShareAppMessage,bn as onShareTimeline,an as onShow,mn as onTabItemTap,rn as onThemeChange,nn as onUnhandledRejection,cn as onUnload,Tn as onUnmounted,Cn as onUpdated,ge as prelinkReactiveTree,gi as provide,vi as provideGlobal,Ce as reactive,Ie as readonly,Ae as ref,Br as registerApp,Zr as registerComponent,F as removeMutationRecorder,Rt as resetWevuDefaults,hr as runSetupFunction,qt as setCurrentInstance,Yt as setCurrentSetupContext,We as setDeepWatchStrategy,Lt as setWevuDefaults,ye as shallowReactive,Le as shallowRef,g as startBatch,x as stop,Zi as storeToRefs,zr as teardownRuntimeInstance,G as toRaw,Be as toRef,Ve as toRefs,Me as toValue,K as touchReactive,He as traverse,ze as triggerRef,je as unref,Di as useAttrs,Ii as useBindModel,Fi as useModel,ki as useNativeInstance,Oi as useSlots,ji as useTemplateRef,Ke as watch,qe 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 ee(e){f&&(e.has(f)||(e.add(f),f.deps.push(e)))}function N(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 H(e){var t;L.set(e,((t=L.get(e))==null?0:t)+1)}function ae(e){var t;return(t=L.get(e))==null?0:t}function oe(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),H(e),n.push(e))}}function se(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 ce(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),se(e)}function le(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),se(e))}function ue(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 U=function(e){return e.IS_REACTIVE=`__r_isReactive`,e.RAW=`__r_raw`,e.SKIP=`__r_skip`,e}({});function W(e){return typeof e==`object`&&!!e}const de=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[U.RAW])==null?e:t}const pe=new WeakMap,me=new WeakMap,he=new WeakMap;function ge(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)||!W(a)||a[U.SKIP])continue;let t=G(a);if(I.has(t)||I.set(t,n),ce(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 _e(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 K(e){A(G(e),de)}const ve={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.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,de),H(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,de),H(e)),r},ownKeys(e){return A(e,Symbol.iterator),A(e,de),Reflect.ownKeys(e)}};function ye(e){if(!W(e))return e;let t=he.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,ve);return he.set(e,n),me.set(n,e),L.has(e)||L.set(e,0),n}function be(e){let t=G(e);return he.has(t)}function xe(e){return ae(G(e))}function q(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=ue(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=ue(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 Se={get(e,t,n){if(t===U.IS_REACTIVE)return!0;if(t===U.RAW)return e;let r=Reflect.get(e,t,n);if(A(e,t),W(r)){var i,a;if(r[U.SKIP])return r;let n=(i=I.get(e))==null?e:i,o=(a=r==null?void 0:r[U.RAW])==null?r:a;I.has(o)||I.set(o,n),ce(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 Ce(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=W(o)?(c=o==null?void 0:o[U.RAW])==null?o:c:void 0;if(r&&le(r,e,t),W(n)&&!n[U.SKIP]){var l,u;let r=(l=I.get(e))==null?e:l,i=(u=n==null?void 0:n[U.RAW])==null?n:u;I.has(i)||I.set(i,r),ce(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,de),H(e),oe(e);let s=I.get(e);s&&s!==e&&(M(s,de),H(s)),q(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=W(r)?(a=r==null?void 0:r[U.RAW])==null?r:a:void 0;n&&le(n,e,t),M(e,t),M(e,de),H(e),oe(e);let i=I.get(e);i&&i!==e&&(M(i,de),H(i)),q(e,t,`delete`)}return i},ownKeys(e){return A(e,Symbol.iterator),A(e,de),Reflect.ownKeys(e)}};function Ce(e){if(!W(e))return e;let t=pe.get(e);if(t)return t;if(e[U.IS_REACTIVE])return e;let n=new Proxy(e,Se);return pe.set(e,n),me.set(n,e),L.has(e)||L.set(e,0),I.has(e)||I.set(e,e),n}function J(e){return!!(e&&e[U.IS_REACTIVE])}function we(e){return W(e)?Ce(e):e}function Te(e){return W(e)&&Object.defineProperty(e,U.SKIP,{value:!0,configurable:!0,enumerable:!1,writable:!0}),e}function Ee(e){return W(e)&&U.SKIP in e}const De=`__v_isRef`;function Oe(e){try{Object.defineProperty(e,De,{value:!0,configurable:!0})}catch(t){e[De]=!0}return e}function Y(e){return!!(e&&typeof e==`object`&&e[De]===!0)}var ke=class{constructor(e){u(this,`_value`,void 0),u(this,`_rawValue`,void 0),u(this,`dep`,void 0),Oe(this),this._rawValue=e,this._value=we(e)}get value(){return this.dep||(this.dep=new Set),ee(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=we(e),this.dep&&N(this.dep))}};function Ae(e){return Y(e)?e:Te(new ke(e))}function je(e){return Y(e)?e.value:e}function Me(e){return typeof e==`function`?e():je(e)}var Ne=class{constructor(e,t){u(this,`_getValue`,void 0),u(this,`_setValue`,void 0),u(this,`dep`,void 0),Oe(this);let n=t,r=()=>{this.dep||(this.dep=new Set),ee(this.dep)},i=()=>{this.dep&&N(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 Pe(e,t){return Te(new Ne(e,t))}function Fe(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 Oe(o),a=k(t,{lazy:!0,scheduler:()=>{i||(i=!0,M(o,`value`))}}),o}function Ie(e){if(Y(e)){let t=e;return Oe({get value(){return t.value},set value(e){throw Error(`无法给只读 ref 赋值`)}})}return W(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 Le(e,t){return Pe((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),t)}function Re(e){return Y(e)&&typeof e.value!=`function`}function ze(e){if(Y(e)){let t=e.dep;if(t){N(t);return}e.value=e.value}}function Be(e,t,n){let r=e[t];return Y(r)?r:Pe((n,r)=>({get(){return n(),e[t]},set(n){e[t]=n,r()}}),n)}function Ve(e){J(e)||console.warn(`toRefs() 需要响应式对象,但收到的是普通对象。`);let t=Array.isArray(e)?Array.from({length:e.length}):{};for(let n in e)t[n]=Be(e,n);return t}function He(e,t=1/0,n=new Map){if(t<=0||!W(e))return e;if(Y(e))return He(e.value,t-1,n),e;if(e[U.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=>He(e,i,n)),e;let a=J(e)&&t!==1/0?G(e):e;for(let t in a)He(e[t],i,n);return e}let Ue=`version`;function We(e){Ue=e}function Ge(){return Ue}function Ke(e,t,n={}){var r,i;let s,c=J(e),l=Array.isArray(e)&&!c,u=e=>{if(typeof e==`function`)return e();if(Y(e))return e.value;if(J(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(Y(e))s=()=>e.value;else if(c)s=()=>e;else throw Error(`无效的 watch 源`);let d=l?e.some(e=>J(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=>Ue===`version`&&J(e)?(K(e),e):He(e,m)):Ue===`version`&&J(t)?(K(t),t):He(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 qe(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 Je(e,t,n){let r=e[t];if(!r)throw Error(`计算属性 "${t}" 是只读的`);r(n)}function Ye(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}const Xe=`__wevu_native_bridge__`;function Ze(e){try{Object.defineProperty(e,Xe,{value:!0,configurable:!1,enumerable:!1,writable:!1})}catch(t){e[Xe]=!0}}function Qe(e){return typeof e==`function`&&!!e[Xe]}function $e(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 Oe(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 et(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}=$e({includeComputed:a,setDataStrategy:o}),p=Ae(0),m=(e,t)=>{let n=G(e),r=n.__wevuRuntime,i=r==null?void 0:r.proxy,a=(e,t)=>{let n=e[t];return Qe(n)},o=n=>!(!n||typeof n!=`object`||n===e||n===t||n===i||a(n,`triggerEvent`)||a(n,`createSelectorQuery`)||a(n,`setData`)),s=n.__wevuNativeInstance;if(o(s))return s;let c=r==null?void 0:r.instance;if(o(c))return c},h=e=>{if(Object.prototype.hasOwnProperty.call(s,e))return;let n=(...n)=>{let r=m(t,t);if(!r)return;let i=Reflect.get(r,e);if(typeof i==`function`)return i.apply(r,n)};Ze(n),s[e]=n},g=new Proxy(t,{get(e,n,r){if(typeof n==`string`){if(p.value,n===`data`||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]}if(!Reflect.has(e,n)){let t=m(e,r);if(t&&Reflect.has(t,n)){let e=Reflect.get(t,n);return typeof e==`function`?e.bind(t):e}}return Reflect.get(e,n,r)},set(e,t,n,r){if(typeof t==`string`&&c[t])return Je(l,t,n),!0;if(Reflect.has(e,t))return Reflect.set(e,t,n,r);let i=m(e,r);return i&&Reflect.has(i,t)?Reflect.set(i,t,n):Reflect.set(e,t,n,r)},has(e,t){if(t===`data`||typeof t==`string`&&(c[t]||Object.prototype.hasOwnProperty.call(s,t)))return!0;let n=m(e,e);return n&&Reflect.has(n,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,n){if(Reflect.has(e,n))return Object.getOwnPropertyDescriptor(e,n);if(typeof n==`string`){if(n===`data`)return{configurable:!0,enumerable:!1,get(){return t}};if(c[n])return{configurable:!0,enumerable:!0,get(){return c[n].value},set(e){Je(l,n,e)}};if(Object.prototype.hasOwnProperty.call(s,n))return{configurable:!0,enumerable:!1,value:s[n]}}}});return Object.keys(r).forEach(e=>{let t=r[e];if(typeof t==`function`){s[e]=(...e)=>t.apply(g,e);return}e===`__weapp_vite_inline_map`&&t&&typeof t==`object`&&(s[e]=t)}),h(`triggerEvent`),h(`createSelectorQuery`),h(`setData`),Object.keys(n).forEach(e=>{let t=n[e];if(typeof t==`function`)c[e]=d(e,()=>t.call(g));else{var r,i;let n=(r=t.get)==null?void 0:r.bind(g);if(!n)throw Error(`计算属性 "${e}" 需要提供 getter`);let a=(i=t.set)==null?void 0:i.bind(g);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:g,touchSetupMethodsVersion(){p.value+=1}}}const tt=Symbol(`wevu.noSetData`);function X(e){return Object.defineProperty(e,tt,{value:!0,configurable:!0,enumerable:!1,writable:!1}),e}function nt(e){return typeof e==`object`&&!!e&&e[tt]===!0}function rt(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function it(e,t=new WeakMap,n){var r,i;let a=je(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(nt(a))return;let o=J(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([it(r,t),it(n,t)])}),e}if(o instanceof Set){let e=[];return t.set(o,e),o.forEach(n=>{e.push(it(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=>it(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=it(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=it(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 at(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 ot(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 st(e,t){return Object.is(e,t)?!0:Array.isArray(e)&&Array.isArray(t)?at(e,t,st):rt(e)&&rt(t)?ot(e,t,st):!1}function ct(e){return e===void 0?null:e}function lt(e,t,n,r){if(!st(e,t)){if(rt(e)&&rt(t)){for(let i of Object.keys(t)){if(!Object.prototype.hasOwnProperty.call(e,i)){r[`${n}.${i}`]=ct(t[i]);continue}lt(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)){at(e,t,st)||(r[n]=ct(t));return}r[n]=ct(t)}}function ut(e,t){let n={};for(let r of Object.keys(t))lt(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 dt(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 ft(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+=ft(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+=ft(a,t-i,n),i>t)return i;return i}function pt(e,t){if(t===1/0)return{fallback:!1,estimatedBytes:void 0,bytes:void 0};let n=t,r=Object.keys(e).length,i=ft(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 mt(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=ft(e,1/0,new WeakSet);return h.set(e,n),n}return ft(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 ht(e){return e===void 0?null:e}function gt(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function _t(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(!gt(e)||!gt(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 vt(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(!vt(e[i],t[i],n-1,r))return!1;return!0}if(!gt(e)||!gt(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)||!vt(e[a],t[a],n-1,r))return!1;return!0}function yt(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 bt(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=J(t)?G(t):t,f=Object.keys(d),p=r?Object.keys(n):[];for(let e of f)i(e)&&(l[e]=it(d[e],c,{cache:a,maxDepth:o,_budget:u}));for(let e of p)i(e)&&(l[e]=it(n[e].value,c,{cache:a,maxDepth:o,_budget:u}));return l}function xt(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}),ee=new Map(M);b.clear();let N=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=ht(it(N(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),ee.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=it(n[r].value,D,{cache:y,maxDepth:_,maxKeys:v}),i=C[r];(a===`deep`?vt(i,t,o,{keys:s}):a===`shallow`?_t(i,t):Object.is(i,t))||(e[r]=ht(t),C[r]=t)}Object.assign(k,e)}let F=dt(k),I=0;if(f){let e=mt({input:F,entryMap:ee,getPlainByPath:P,mergeSiblingThreshold:f,mergeSiblingSkipArray:h,mergeSiblingMaxParentBytes:m,mergeSiblingMaxInflationRatio:p});I=e.merged,F=dt(e.out)}let L=pt(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=ee.get(e);n?yt(S,e,t,n.kind===`array`?`set`:n.op):yt(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 St(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=>{let n=[];for(let r of Object.keys(t)){if(!u(r))continue;let i=t[r],a=Y(i)?i.value:i;!a||typeof a!=`object`||G(a)===e&&n.push(r)}return n},M=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){}},ee=()=>bt({state:t,computedRefs:n,includeComputed:i,shouldIncludeKey:u,plainCache:T,toPlainMaxDepth:v,toPlainMaxKeys:y}),N=(e=`diff`)=>{let t=ee(),o=ut(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(()=>{})}M({mode:`diff`,reason:e,pendingPatchKeys:0,payloadKeys:Object.keys(o).length})}};return{job:e=>{w()&&(C(),a===`patch`&&!O.value?xt({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:M,runDiffUpdate:N}):N(O.value?`needsFullSnapshot`:`diff`))},mutationRecorder:(e,t)=>{if(!w())return;if(e.root!==t){let t=j(e.root);if(t.length)for(let e of t)A.add(e);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`?ee():{...E},getLatestSnapshot:()=>E}}function Ct(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 wt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function Tt(e){return e?e.split(`.`).map(e=>e.trim()).filter(Boolean):[]}function Et(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 Dt(e,t,n,r,i){if(!r.length)return;let[a,...o]=r;if(!o.length){if(t[a])Je(n,a,i);else{let t=e[a];Y(t)?t.value=i:e[a]=i}return}if(t[a]){Je(n,a,i);return}(e[a]==null||typeof e[a]!=`object`)&&(e[a]={}),Et(e[a],o,i)}function Ot(e,t){return t.reduce((e,t)=>e==null?e:e[t],e)}function kt(e){return Ye(e)}function At(e,t,n,r){return(i,a)=>{let o=Tt(i);if(!o.length)throw Error(`bindModel 需要非空路径`);let s=()=>Ot(e,o),c=e=>{Dt(t,n,r,o,e)},l={event:`input`,valueProp:`value`,parser:kt,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${wt(t.event)}`,r=e=>{c(t.parser(e))};return{[t.valueProp]:t.formatter(s()),[n]:r}}}}}const jt=`__wevuDefaultsScope`;let Mt={};function Nt(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function Pt(e,t){if(!e)return t;if(!t)return e;let n={...e,...t},r=Nt(e.setData),i=Nt(t.setData);(r||i)&&(n.setData={...r==null?{}:r,...i==null?{}:i});let a=Nt(e.options),o=Nt(t.options);return(a||o)&&(n.options={...a==null?{}:a,...o==null?{}:o}),n}function Ft(e,t){return Pt(e,t)}function It(e,t){return{app:Pt(e.app,t.app),component:Pt(e.component,t.component)}}function Lt(e){Mt=It(Mt,e)}function Rt(){Mt={}}function zt(e){return Ft(Mt.app,e)}function Bt(e){return Ft(Mt.component,e)}function Vt(){if(!(typeof globalThis>`u`))return globalThis}function Ht(){var e;let t=Vt(),n=(e=import.meta.env)==null?void 0:e.PLATFORM;if(n===`tt`)return t==null?void 0:t.tt;if(n===`alipay`||n===`my`)return t==null?void 0:t.my;if(n===`weapp`||n===`wx`)return t==null?void 0:t.wx;if(t!=null&&t.wx)return t.wx;if(t!=null&&t.my)return t.my;if(t!=null&&t.tt)return t.tt}function Ut(){var e;return(e=Ht())==null?Vt():e}let Wt,Gt;function Kt(){return Wt}function qt(e){Wt=e}function Jt(){return Gt}function Yt(e){Gt=e}function Z(e){if(!Wt)throw Error(`${e}() 必须在 setup() 的同步阶段调用`);return Wt}function Xt(e){return e.__wevuHooks||(e.__wevuHooks=Object.create(null)),e.__wevuHooks}function Q(e,t,n,{single:r=!1}={}){let i=Xt(e);if(r)i[t]=n;else{var a;((a=i[t])==null?i[t]=[]:a).push(n)}}function Zt(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 Qt(e){var t;let n=Ht();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 $t(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 en(e){Q(Z(`onLaunch`),`onLaunch`,e)}function tn(e){Q(Z(`onPageNotFound`),`onPageNotFound`,e)}function nn(e){Q(Z(`onUnhandledRejection`),`onUnhandledRejection`,e)}function rn(e){Q(Z(`onThemeChange`),`onThemeChange`,e)}function an(e){Q(Z(`onShow`),`onShow`,e)}function on(e){Q(Z(`onLoad`),`onLoad`,e)}function sn(e){Q(Z(`onHide`),`onHide`,e)}function cn(e){Q(Z(`onUnload`),`onUnload`,e)}function ln(e){Q(Z(`onReady`),`onReady`,e)}function un(e){Q(Z(`onPullDownRefresh`),`onPullDownRefresh`,e)}function dn(e){Q(Z(`onReachBottom`),`onReachBottom`,e)}function fn(e){Q(Z(`onPageScroll`),`onPageScroll`,e)}function pn(e){Q(Z(`onRouteDone`),`onRouteDone`,e)}function mn(e){Q(Z(`onTabItemTap`),`onTabItemTap`,e)}function hn(e){Q(Z(`onResize`),`onResize`,e)}function gn(e){Q(Z(`onMoved`),`onMoved`,e)}function _n(e){Q(Z(`onAttached`),`onAttached`,e)}function vn(e){Q(Z(`onDetached`),`onDetached`,e)}function yn(e){Q(Z(`onError`),`onError`,e)}function bn(e){Q(Z(`onSaveExitState`),`onSaveExitState`,e,{single:!0})}function xn(e){let t=Z(`onShareAppMessage`);Q(t,`onShareAppMessage`,e,{single:!0}),Zt(t,`onShareAppMessage`),Qt(t)}function Sn(e){let t=Z(`onShareTimeline`);Q(t,`onShareTimeline`,e,{single:!0}),Zt(t,`onShareTimeline`),Qt(t)}function Cn(e){let t=Z(`onAddToFavorites`);Q(t,`onAddToFavorites`,e,{single:!0}),Zt(t,`onAddToFavorites`)}function wn(e){Q(Z(`onMounted`),`onReady`,e)}function Tn(e){Q(Z(`onUpdated`),`__wevuOnUpdated`,e)}function En(e){Z(`onBeforeUnmount`),e()}function Dn(e){Q(Z(`onUnmounted`),`onUnload`,e)}function On(e){Z(`onBeforeMount`),e()}function kn(e){Q(Z(`onBeforeUpdate`),`__wevuOnBeforeUpdate`,e)}function An(e){let t=Z(`onErrorCaptured`);Q(t,`onError`,n=>e(n,t,``))}function jn(e){Q(Z(`onActivated`),`onShow`,e)}function Mn(e){Q(Z(`onDeactivated`),`onHide`,e)}function Nn(e){Z(`onServerPrefetch`)}function Pn(e,t){$(e,t===`before`?`__wevuOnBeforeUpdate`:`__wevuOnUpdated`)}function Fn(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function In(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`&&e.trim()){let t=Number(e);if(Number.isFinite(t))return t}}function Ln(e){return e.trim().replace(/[^a-z0-9]+/gi,`-`).replace(/^-+|-+$/g,``).toLowerCase()}function Rn(e,t){let n=Ln(typeof(t==null?void 0:t.type)==`string`?t.type:``);if(!n)return;let r=n.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase());if(r)return`${e}${r[0].toUpperCase()}${r.slice(1)}`}function zn(e,t,n){let r=Rn(t,n);return r&&(e==null?void 0:e[r])!==void 0?e[r]:e==null?void 0:e[t]}function Bn(e,t){let n=zn(e,`wvEventDetail`,t);return n===!0||n===1||n===`1`||n===`true`}function Vn(e,t){return!Bn(t,e)||!e||typeof e!=`object`||!(`detail`in e)||e.detail===void 0?e:e.detail}function Hn(e,t){if(!t)return;let n=t.split(`.`).filter(Boolean),r=Y(e)?e.value:e;for(let e of n){if(Y(r)&&(r=r.value),r==null)return;r=r[e]}return Y(r)?r.value:r}function Un(e){if(typeof e!=`object`||!e||Y(e)||J(e))return e;try{return Ce(e)}catch(t){return e}}function Wn(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=Vn(n,c),u=zn(c,`wvInlineId`,n);if(u&&r){let t=r[u];if(t&&typeof t.fn==`function`){let n={},r=Array.isArray(t.keys)?t.keys:[];for(let e=0;e<r.length;e+=1){let t=r[e];n[t]=c==null?void 0:c[`wvS${e}`]}let i=Array.isArray(t.indexKeys)?t.indexKeys:[];for(let e=0;e<i.length;e+=1){let t=i[e],r=In(c==null?void 0:c[`wvI${e}`]);r!==void 0&&(n[t]=r)}let a=Array.isArray(t.scopeResolvers)?t.scopeResolvers:[];for(let t=0;t<r.length;t+=1){let i=r[t],o=a[t];try{let t;if(typeof o==`function`)t=o(e,n,l);else if(o&&typeof o==`object`&&o.type===`for-item`){let r=n[o.indexKey],i=Hn(e,o.path);t=i==null?void 0:i[r]}else continue;t!==void 0&&(n[i]=Un(t))}catch(e){}}let o=t.fn(e,n,l);return typeof o==`function`?o.call(e,l):o}}let d=zn(c,`wvHandler`,n),f=typeof t==`string`&&t?t:typeof d==`string`?d:void 0;if(!f)return;let p=zn(c,`wvArgs`,n),m=[];if(Array.isArray(p))m=p;else if(typeof p==`string`)try{m=JSON.parse(p)}catch(e){try{m=JSON.parse(Fn(p))}catch(e){m=[]}}Array.isArray(m)||(m=[]);let h=m.map(e=>e===`$event`?l:e),g=e==null?void 0:e[f];if(typeof g==`function`)return g.apply(e,h)}const Gn=new Map;let Kn=0;function qn(){return Kn+=1,`wv${Kn}`}function Jn(e,t,n){var r;let i=(r=Gn.get(e))==null?{snapshot:{},proxy:n,subscribers:new Set}:r;if(i.snapshot=t,i.proxy=n,Gn.set(e,i),i.subscribers.size)for(let e of i.subscribers)try{e(t,n)}catch(e){}}function Yn(e){Gn.delete(e)}function Xn(e,t){var n;let r=(n=Gn.get(e))==null?{snapshot:{},proxy:void 0,subscribers:new Set}:n;return r.subscribers.add(t),Gn.set(e,r),()=>{let n=Gn.get(e);n&&n.subscribers.delete(t)}}function Zn(e){var t;return(t=Gn.get(e))==null?void 0:t.proxy}function Qn(e){var t;return(t=Gn.get(e))==null?void 0:t.snapshot}function $n(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;Jn(n,i,t.proxy)}function er(e){return e.kind===`component`}function tr(e){return new Proxy(e,{get(e,t,n){let r=Reflect.get(e,t,n);return Y(r)?r.value:r},set(e,t,n,r){let i=e[t];return Y(i)&&!Y(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}})}function nr(e,t){let n=e.__wevuExposeProxy;if(n&&e.__wevuExposeRaw===t)return n;let r=tr(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 rr(e,t){if(!t||typeof t!=`object`)return e;let n=t;return X(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 ir(e){var t;if(!e||typeof e!=`object`)return e==null?null:e;let n=e,r=n.__wevuExposed;return r&&typeof r==`object`?nr(n,r):(t=n.__wevu)!=null&&t.proxy?n.__wevu.proxy:e}function ar(e){return e.__wevuTemplateRefMap}function or(e,t,n){if(!e)return;let r=e.get(t);r&&(r.value=n)}function sr(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}:Y(a)?{type:`ref`,ref:a}:typeof a==`string`&&a?{type:`name`,name:a}:t.name?{type:`name`,name:t.name}:{type:`skip`}}function cr(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=X(Object.create(null));return Object.defineProperty(r,`$refs`,{value:a,configurable:!0,enumerable:!1,writable:!1}),a}function lr(e){let t=e;if(t&&typeof t.createSelectorQuery==`function`)return t.createSelectorQuery();let n=Ht();return n&&typeof n.createSelectorQuery==`function`?n.createSelectorQuery().in(t):null}function ur(e,t,n,r,i){let a=lr(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 dr(e,t,n){return X({selector:t,boundingClientRect:r=>ur(e,t,n,e=>e.boundingClientRect(),r),scrollOffset:r=>ur(e,t,n,e=>e.scrollOffset(),r),fields:(r,i)=>ur(e,t,n,e=>e.fields(r),i),node:r=>ur(e,t,n,e=>e.node(),r)})}function fr(e,t){let n=e;if(!n)return t.inFor?X([]):null;if(t.inFor){if(typeof n.selectAllComponents==`function`){let r=n.selectAllComponents(t.selector);return X((Array.isArray(r)?r:[]).map((n,r)=>rr(dr(e,t.selector,{multiple:!0,index:r}),ir(n))))}return X([])}let r=dr(e,t.selector,{multiple:!1});return typeof n.selectComponent==`function`?rr(r,ir(n.selectComponent(t.selector))):r}function pr(e,t,n){return t.inFor?X((Array.isArray(n)?n:[]).map((n,r)=>dr(e,t.selector,{multiple:!0,index:r}))):n?dr(e,t.selector,{multiple:!1}):null}function mr(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=ar(e),i=n.filter(e=>!er(e)),a=n.filter(e=>er(e)).map(t=>({binding:t,value:fr(e,t)})),o=n=>{var i,a;let o=cr(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=sr(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?X(t.values):t.values[0]:t.hasFor?X([]):null,o[e]=n,or(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=lr(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:pr(e,n.binding,i)}});o([...a,...n])})}function hr(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,mr(e,()=>{let t=e.__wevuTemplateRefsCallbacks;!t||!t.length||t.splice(0).forEach(e=>{try{e()}catch(e){}})})}))}function gr(e){var t,n;let r=e.__wevuTemplateRefs;if(!r||!r.length)return;let i=cr(e),a=(t=(n=e.__wevu)==null?void 0:n.proxy)==null?e:t,o=new Set,s=ar(e);for(let t of r){let n=sr(e,t),r=t.inFor?X([]):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,or(s,n.name,r))}for(let e of Object.keys(i))o.has(e)||delete i[e]}function _r(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 vr(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=vr(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 yr(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 br(e,t,n){let r=[],i=e.proxy;for(let[a,o]of Object.entries(t)){let t=vr(o,e,n);if(!t)continue;let s=yr(i,a),c=e.watch(s,t.handler,t.options);r.push(c)}return r}function xr(){return Object.freeze(Object.create(null))}function Sr(){let e=(()=>{});return e.stop=()=>{},e.pause=()=>{},e.resume=()=>{},e}function Cr(e){try{return X(e)}catch(t){return e}}function wr(e){return!e||typeof e!=`object`||Array.isArray(e)?!1:Object.prototype.hasOwnProperty.call(e,`bubbles`)||Object.prototype.hasOwnProperty.call(e,`composed`)||Object.prototype.hasOwnProperty.call(e,`capturePhase`)}function Tr(e){if(e.length===0)return{detail:void 0,options:void 0};if(e.length===1)return{detail:e[0],options:void 0};let t=e[e.length-1];if(wr(t)){let n=e.slice(0,-1);return{detail:n.length<=1?n[0]:n,options:t}}return{detail:e,options:void 0}}const Er=[`triggerEvent`,`createSelectorQuery`,`setData`],Dr=`__wevuSetupContextInstance`;function Or(e,t,n){let r=e==null?void 0:e.state,i=r&&typeof r==`object`?G(r):void 0,a=e==null?void 0:e.proxy,o=e=>{let r=e[n];if(typeof r!=`function`)return!1;if(Qe(r))return!0;let i=t[n];return typeof i==`function`&&r===i},s=e=>!e||typeof e!=`object`||e===t||e===a||o(e)?!1:typeof e[n]==`function`,c=i?i.__wevuNativeInstance:void 0;if(s(c))return c;let l=e==null?void 0:e.instance;if(s(l))return l}function kr(e,t,n){Ze(n);try{Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!1,writable:!0})}catch(r){e[t]=n}}function Ar(e,t){let n=e[Dr];if(n&&typeof n==`object`)return n;let r=Object.create(null),i=n=>{let r=Or(t,e,n);if(r)return r;let i=e[n];if(typeof i==`function`&&!Qe(i))return e};kr(r,`triggerEvent`,(...e)=>{let[t,n,r]=e,a=i(`triggerEvent`);a&&typeof a.triggerEvent==`function`&&(e.length>=3?a.triggerEvent(t,n,r):a.triggerEvent(t,n))}),kr(r,`createSelectorQuery`,()=>{var n;let r=i(`createSelectorQuery`);if(r&&typeof r.createSelectorQuery==`function`)return r.createSelectorQuery();let a=Ht();if(!a||typeof a.createSelectorQuery!=`function`)return;let o=a.createSelectorQuery();if(!o||typeof o.in!=`function`)return o;let s=(n=Or(t,e,`setData`))==null?e:n;return o.in(s)}),kr(r,`setData`,(e,n)=>{let r=i(`setData`);if(r&&typeof r.setData==`function`)return r.setData(e,n);let a=t==null?void 0:t.adapter,o=typeof(a==null?void 0:a.setData)==`function`?a.setData(e):void 0;return typeof n==`function`&&n(),o});let a=Cr(new Proxy(r,{get(t,n,r){if(Reflect.has(t,n))return Reflect.get(t,n,r);let i=e[n];return typeof i==`function`?i.bind(e):i},has(t,n){return Reflect.has(t,n)||n in e},set(t,n,r){return Reflect.has(t,n)?(t[n]=r,!0):(e[n]=r,!0)}}));try{Object.defineProperty(e,Dr,{value:a,configurable:!0,enumerable:!1,writable:!0})}catch(t){e[Dr]=a}return a}function jr(e,t){try{Object.defineProperty(e,`__wevuProps`,{value:t,configurable:!0,enumerable:!1,writable:!1})}catch(n){e.__wevuProps=t}}function Mr(e,t){try{Object.defineProperty(e,`__wevuNativeInstance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e.__wevuNativeInstance=t}}function Nr(e,t){try{Object.defineProperty(e,`__wevuRuntime`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){e.__wevuRuntime=t}}function Pr(e,t){try{Object.defineProperty(e,`instance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(n){try{e.instance=t}catch(e){}}}function Fr(e){let t=e[Dr],n=t&&typeof t.setData==`function`?t.setData:void 0;if(typeof n==`function`&&!Qe(n))return n;let r=e.setData;if(typeof r==`function`&&!Qe(r))return r}function Ir(e){let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`}function Lr(e,t,n){try{return t.call(e,n)}catch(t){let n=Ir(e);throw Error(`[wevu] setData failed (${n}): ${t instanceof Error?t.message:String(t)}`)}}function Rr(e,t){let n=Object.keys(e);for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r))try{delete e[r]}catch(e){}for(let[n,r]of Object.entries(t))e[n]=r}function zr(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e.__wevu)return e.__wevu;Cr(e);let p=qn(),m=i!=null&&i.deferSetData?(e=>{let t,n=!1,r={setData(r){if(!n){var i;t={...(i=t)==null?{}:i,...r};return}let a=Fr(e);if(a)return Lr(e,a,r)}};return r.__wevu_enableSetData=()=>{n=!0;let r=Fr(e);if(t&&Object.keys(t).length&&r){let n=t;t=void 0,Lr(e,r,n)}},r})(e):{setData(t){let n=Fr(e);if(n)return Lr(e,n,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;Jn(p,n,h.proxy)},_={...m,setData(t){let n=m.setData(t);return g(),hr(e),n}},v=t.mount({..._});h=v,Pr(v,e);let y=(a=v==null?void 0:v.proxy)==null?{}:a,b=(o=v==null?void 0:v.state)==null?{}:o;b&&typeof b==`object`&&(Nr(b,v),Mr(b,e));let 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?(()=>Sr()):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,$n(e,T,p),n){let t=br(T,n,e);t.length&&(e.__wevuWatchStops=t)}if(r){let t=e.properties||{},n=b&&typeof b==`object`?b.__wevuProps:void 0,i=n&&typeof n==`object`?n:ye({});Rr(i,t),b&&typeof b==`object`&&jr(b,i);try{Object.defineProperty(e,`__wevuProps`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuProps=i}let a=ye(Object.create(null)),o=new Set(Array.isArray(e.__wevuPropKeys)?e.__wevuPropKeys:[]),s=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(a))(!t||!Object.prototype.hasOwnProperty.call(t,e)||o.has(e)||s(e))&&delete a[e];if(t)for(let[e,n]of Object.entries(t))o.has(e)||s(e)||(a[e]=n)})();try{Object.defineProperty(e,`__wevuAttrs`,{value:a,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuAttrs=a}let c=Ar(e,T),l={props:i,runtime:T,state:b,proxy:y,bindModel:w.bind(T),watch:C.bind(T),instance:c,emit:(e,...t)=>{let{detail:n,options:r}=Tr(t);c.triggerEvent(e,n,r)},expose:t=>{e.__wevuExposed=t},attrs:a,slots:xr()};qt(e),Yt(l);try{let e=_r(r,i,l),t=!1;if(e&&typeof e==`object`){let n=J(v.state)?G(v.state):v.state;Object.keys(e).forEach(r=>{let i=e[r];if(typeof i==`function`)v.methods[r]=(...e)=>i.apply(v.proxy,e),t=!0;else{if(o.has(r)){let e=i;try{Object.defineProperty(n,r,{configurable:!0,enumerable:!1,get(){let t=n.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let i=n.__wevuProps;if(!(!i||typeof i!=`object`))try{i[r]=t}catch(e){}}})}catch(e){v.state[r]=i}return}v.state[r]=i}})}if(t){var E;(E=v.__wevu_touchSetupMethodsVersion)==null||E.call(v)}}finally{Yt(void 0),qt(void 0)}}try{let t=v.methods;for(let n of Object.keys(t))Er.includes(n)||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 Br(e){var t;let n=(t=e.__wevu)==null?void 0:t.adapter;n&&typeof n.__wevu_enableSetData==`function`&&n.__wevu_enableSetData()}function Vr(e){let t=e.__wevu,n=e.__wvOwnerId;n&&Yn(n),gr(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 Hr(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;let r=this.__wevu;return Wn((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n.__weapp_vite_inline_map)});let c=s.onLaunch;s.onLaunch=function(...t){zr(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 Ur(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=!!t.enableOnRouteDoneFallback,_=typeof s==`function`||!!t.enableOnTabItemTap,v=typeof c==`function`||!!t.enableOnResize,y=typeof u==`function`||!!t.enableOnShareTimeline,b=typeof l==`function`||!!t.enableOnShareAppMessage,x=typeof d==`function`||!!t.enableOnAddToFavorites,S=typeof n==`function`||!!t.enableOnSaveExitState,C=()=>{};return{enableOnPullDownRefresh:f,enableOnReachBottom:p,enableOnPageScroll:m,enableOnRouteDone:h,enableOnRouteDoneFallback:g,enableOnTabItemTap:_,enableOnResize:v,enableOnShareAppMessage:b,enableOnShareTimeline:y,enableOnAddToFavorites:x,enableOnSaveExitState:S,effectiveOnSaveExitState:typeof n==`function`?n:(()=>({data:void 0})),effectiveOnPullDownRefresh:typeof r==`function`?r:C,effectiveOnReachBottom:typeof i==`function`?i:C,effectiveOnPageScroll:typeof a==`function`?a:C,effectiveOnRouteDone:typeof o==`function`?o:C,effectiveOnTabItemTap:typeof s==`function`?s:C,effectiveOnResize:typeof c==`function`?c:C,effectiveOnShareAppMessage:typeof l==`function`?l:C,effectiveOnShareTimeline:typeof u==`function`?u:C,effectiveOnAddToFavorites:typeof d==`function`?d:(()=>({}))}}let Wr=!1,Gr;function Kr(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 qr(){if(Wr)return;Wr=!0;let e=Ht();if(!e||typeof e!=`object`)return;let t=e.startPullDownRefresh;typeof t==`function`&&(e.startPullDownRefresh=function(...e){let n=t.apply(this,e);return Gr&&$(Gr,`onPullDownRefresh`,[]),n});let n=e.pageScrollTo;typeof n==`function`&&(e.pageScrollTo=function(e,...t){let r=n.apply(this,[e,...t]);return Gr&&$(Gr,`onPageScroll`,[e==null?{}:e]),r})}function Jr(e){let{enableOnShareAppMessage:t,enableOnShareTimeline:n}=e;if(!t&&!n)return;let r=Ht();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 Yr(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,enableOnRouteDoneFallback:h,enableOnTabItemTap:g,enableOnResize:_,enableOnShareAppMessage:v,enableOnShareTimeline:y,enableOnAddToFavorites:b,effectiveOnSaveExitState:x,effectiveOnPullDownRefresh:S,effectiveOnReachBottom:C,effectiveOnPageScroll:w,effectiveOnRouteDone:T,effectiveOnTabItemTap:E,effectiveOnResize:D,effectiveOnShareAppMessage:O,effectiveOnShareTimeline:k,effectiveOnAddToFavorites:A,hasHook:j}=e,M={onLoad(...e){if(!this.__wevuOnLoadCalled&&(this.__wevuOnLoadCalled=!0,zr(this,t,n,r),Br(this),l&&Jr({enableOnShareAppMessage:v,enableOnShareTimeline:y}),$(this,`onLoad`,e),typeof i==`function`))return i.apply(this,e)},onUnload(...e){if(l&&Gr===this&&(Gr=void 0),Vr(this),typeof a==`function`)return a.apply(this,e)},onShow(...e){if(l&&(qr(),Gr=this,this.__wevuOnLoadCalled||M.onLoad.call(this,Kr(this)),Jr({enableOnShareAppMessage:v,enableOnShareTimeline:y}),this.__wevuRouteDoneCalled=!1),$(this,`onShow`,e),typeof o==`function`)return o.apply(this,e)},onHide(...e){if(l&&Gr===this&&(Gr=void 0),$(this,`onHide`,e),typeof s==`function`)return s.apply(this,e)},onReady(...e){if(l&&(this.__wevuOnLoadCalled||M.onLoad.call(this,Kr(this)),Jr({enableOnShareAppMessage:v,enableOnShareTimeline:y})),!this.__wevuReadyCalled){if(this.__wevuReadyCalled=!0,l&&m&&h){let e=this;setTimeout(()=>{if(!e.__wevuRouteDoneCalled){var t;(t=M.onRouteDone)==null||t.call(e)}},0)}hr(this,()=>{$(this,`onReady`,e),typeof c==`function`&&c.apply(this,e)});return}if(typeof c==`function`)return c.apply(this,e)}};return u&&(M.onSaveExitState=function(...e){let t=$t(this,`onSaveExitState`,e);return t===void 0?x.apply(this,e):t}),d&&(M.onPullDownRefresh=function(...e){if($(this,`onPullDownRefresh`,e),!j(this,`onPullDownRefresh`))return S.apply(this,e)}),f&&(M.onReachBottom=function(...e){if($(this,`onReachBottom`,e),!j(this,`onReachBottom`))return C.apply(this,e)}),p&&(M.onPageScroll=function(...e){if($(this,`onPageScroll`,e),!j(this,`onPageScroll`))return w.apply(this,e)}),m&&(M.onRouteDone=function(...e){if(!this.__wevuRouteDoneInTick&&(this.__wevuRouteDoneInTick=!0,Promise.resolve().then(()=>{this.__wevuRouteDoneInTick=!1}),this.__wevuRouteDoneCalled=!0,$(this,`onRouteDone`,e),!j(this,`onRouteDone`)))return T.apply(this,e)}),g&&(M.onTabItemTap=function(...e){if($(this,`onTabItemTap`,e),!j(this,`onTabItemTap`))return E.apply(this,e)}),_&&(M.onResize=function(...e){if($(this,`onResize`,e),!j(this,`onResize`))return D.apply(this,e)}),v&&(M.onShareAppMessage=function(...e){let t=$t(this,`onShareAppMessage`,e);return t===void 0?O.apply(this,e):t}),y&&(M.onShareTimeline=function(...e){let t=$t(this,`onShareTimeline`,e);return t===void 0?k.apply(this,e):t}),b&&(M.onAddToFavorites=function(...e){let t=$t(this,`onAddToFavorites`,e);return t===void 0?A.apply(this,e):t}),M}function Xr(e){let{userMethods:t,runtimeMethods:n}=e,r={...t};r.__weapp_vite_inline||(r.__weapp_vite_inline=function(e){var t,n;let r=this.__wevu;return Wn((t=r==null?void 0:r.proxy)==null?this:t,void 0,e,r==null||(n=r.methods)==null?void 0:n.__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=Ye(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);function a(e){let t=e.__wevu;if(t)return t;let n=e.$state;if(n&&typeof n==`object`)return n.__wevuRuntime}function o(e,t){if((e==null?void 0:e.proxy)===t)return;let n=e==null?void 0:e.proxy,r=e=>{let r=t[e];if(typeof r!=`function`)return!1;let i=n==null?void 0:n[e];return typeof i==`function`&&r===i};if(r(`triggerEvent`)||r(`createSelectorQuery`)||r(`setData`)||!(typeof t.triggerEvent==`function`||typeof t.createSelectorQuery==`function`||typeof t.setData==`function`))return;let i=e==null?void 0:e.state;if(!(!i||typeof i!=`object`)&&t.$state!==i)try{Object.defineProperty(i,`__wevuNativeInstance`,{value:t,configurable:!0,enumerable:!1,writable:!0})}catch(e){i.__wevuNativeInstance=t}}for(let e of i){if(e.startsWith(`__weapp_vite_`))continue;let t=r[e];r[e]=function(...n){var r;let i=a(this);o(i,this);let s,c=i==null||(r=i.methods)==null?void 0:r[e];if(c&&(s=c.apply(i.proxy,n)),typeof t==`function`){let e=t.apply(this,n);return e===void 0?s:e}return s}}return{finalMethods:r}}function Zr(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;Jn(r,i,n.proxy)}function Qr(e){let{restOptions:t,userObservers:n}=e,r=`__wevuPendingPropValues`,i=t.properties&&typeof t.properties==`object`?Object.keys(t.properties):[],a=new Set(i),o=e=>{try{Object.defineProperty(e,`__wevuPropKeys`,{value:i,configurable:!0,enumerable:!1,writable:!1})}catch(t){e.__wevuPropKeys=i}},s=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,i=r&&typeof r==`object`?r:void 0,o=Object.keys(t);for(let e of o)if(!i||!Object.prototype.hasOwnProperty.call(i,e)||a.has(e)||n(e))try{delete t[e]}catch(e){}if(!i){Zr(e);return}for(let[e,r]of Object.entries(i))if(!(a.has(e)||n(e)))try{t[e]=r}catch(e){}Zr(e)},c=e=>{let t=e.__wevuProps,n=e.properties,i=e[r];if(t&&typeof t==`object`&&n&&typeof n==`object`){let r=n,a=Object.keys(t);for(let e of a)if(!Object.prototype.hasOwnProperty.call(r,e))try{delete t[e]}catch(e){}for(let[e,n]of Object.entries(r)){let r=i&&Object.prototype.hasOwnProperty.call(i,e)?i[e]:n;try{t[e]=r}catch(e){}}if(i){for(let[e,n]of Object.entries(i))if(!Object.prototype.hasOwnProperty.call(r,e))try{t[e]=n}catch(e){}}Zr(e)}i&&delete e[r],s(e)},l=(e,t,n)=>{var i,a;let o=e.__wevuProps;if(!o||typeof o!=`object`)return;try{o[t]=n}catch(e){}let c=(a=(i=e)[r])==null?i[r]=Object.create(null):a;c[t]=n,Zr(e),s(e)},u={};if(i.length)for(let e of i)u[e]=function(t){l(this,e,t)};let d={...n==null?{}:n};for(let[e,t]of Object.entries(u)){let n=d[e];typeof n==`function`?d[e]=function(...e){n.apply(this,e),t.apply(this,e)}:d[e]=t}let f=d[`**`];return d[`**`]=function(...e){typeof f==`function`&&f.apply(this,e),c(this)},{attachWevuPropKeys:o,syncWevuPropsFromInstance:c,finalObservers:d}}function $r(e,t,n,r,i){var a,o;let s=(e,t=new WeakMap)=>{if(!e||typeof e!=`object`)return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=[];t.set(e,n);for(let r of e)n.push(s(r,t));return n}let n={};t.set(e,n);for(let[r,i]of Object.entries(e))n[r]=s(i,t);return n},c=e=>{let t=e.route;if(typeof t==`string`&&t)return t;let n=e.is;return typeof n==`string`&&n?n:`unknown`},{methods:l={},lifetimes:u={},pageLifetimes:d={},options:f={},...p}=i,m=p.onLoad,h=p.onUnload,g=p.onShow,_=p.onHide,v=p.onReady,y=p.onSaveExitState,b=p.onPullDownRefresh,x=p.onReachBottom,S=p.onPageScroll,C=p.onRouteDone,w=p.onTabItemTap,T=p.onResize,E=p.onShareAppMessage,D=p.onShareTimeline,O=p.onAddToFavorites,k=(a=p.features)==null?{}:a,A=[m,h,g,_,v,y,b,x,S,C,w,T,E,D,O].some(e=>typeof e==`function`),j=!!p.__wevu_isPage||Object.keys(k==null?{}:k).length>0||A,M={...p},ee=new Set([`behaviors`,`relations`,`externalClasses`,`options`,`properties`,`observers`,`pureDataPattern`,`virtualHost`,`definitionFilter`,`export`,`__wevuTemplateRefs`,`setupLifecycle`,`features`,`__wevu_isPage`]),N=[];for(let[e,t]of Object.entries(M))ee.has(e)||typeof t!=`function`&&(N.push([e,t]),delete M[e]);let P=e=>{if(N.length){for(let[t,n]of N)if(!Object.prototype.hasOwnProperty.call(e,t))try{e[t]=s(n)}catch(e){}}},te=new Set([`export`,`definitionFilter`,`onLoad`,`onUnload`,`onShow`,`onHide`,`onReady`,`onSaveExitState`,`onPullDownRefresh`,`onReachBottom`,`onPageScroll`,`onRouteDone`,`onTabItemTap`,`onResize`,`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]),F={};for(let[e,t]of Object.entries(M))typeof t!=`function`||te.has(e)||(F[e]=t,delete M[e]);let I=M.__wevuTemplateRefs;delete M.__wevuTemplateRefs;let L=M.observers,R=M.setupLifecycle===`created`?`created`:`attached`;delete M.setupLifecycle;let z=M.created;delete M.features,delete M.created,delete M.onLoad,delete M.onUnload,delete M.onShow,delete M.onHide,delete M.onReady;let{enableOnPullDownRefresh:B,enableOnReachBottom:V,enableOnPageScroll:ne,enableOnRouteDone:re,enableOnRouteDoneFallback:ie,enableOnTabItemTap:H,enableOnResize:ae,enableOnShareAppMessage:oe,enableOnShareTimeline:se,enableOnAddToFavorites:ce,enableOnSaveExitState:le,effectiveOnSaveExitState:ue,effectiveOnPullDownRefresh:U,effectiveOnReachBottom:W,effectiveOnPageScroll:de,effectiveOnRouteDone:fe,effectiveOnTabItemTap:G,effectiveOnResize:pe,effectiveOnShareAppMessage:me,effectiveOnShareTimeline:he,effectiveOnAddToFavorites:ge}=Ur({features:k,userOnSaveExitState:y,userOnPullDownRefresh:b,userOnReachBottom:x,userOnPageScroll:S,userOnRouteDone:C,userOnTabItemTap:w,userOnResize:T,userOnShareAppMessage:E,userOnShareTimeline:D,userOnAddToFavorites:O}),_e=(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=M.export;M.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 K={multipleSlots:(o=f.multipleSlots)==null?!0:o,...f},{attachWevuPropKeys:ve,syncWevuPropsFromInstance:ye,finalObservers:be}=Qr({restOptions:M,userObservers:L}),{finalMethods:xe}=Xr({userMethods:{...F,...l},runtimeMethods:t}),q=Yr({runtimeApp:e,watch:n,setup:r,userOnLoad:m,userOnUnload:h,userOnShow:g,userOnHide:_,userOnReady:v,isPage:j,enableOnSaveExitState:le,enableOnPullDownRefresh:B,enableOnReachBottom:V,enableOnPageScroll:ne,enableOnRouteDone:re,enableOnRouteDoneFallback:ie,enableOnTabItemTap:H,enableOnResize:ae,enableOnShareAppMessage:oe,enableOnShareTimeline:se,enableOnAddToFavorites:ce,effectiveOnSaveExitState:ue,effectiveOnPullDownRefresh:U,effectiveOnReachBottom:W,effectiveOnPageScroll:de,effectiveOnRouteDone:fe,effectiveOnTabItemTap:G,effectiveOnResize:pe,effectiveOnShareAppMessage:me,effectiveOnShareTimeline:he,effectiveOnAddToFavorites:ge,hasHook:_e}),Se={};if(j)for(let e of[`onShareAppMessage`,`onShareTimeline`,`onAddToFavorites`]){let t=q[e];typeof t==`function`&&typeof xe[e]!=`function`&&(Se[e]=function(...e){return t.apply(this,e)})}Component({...M,...q,observers:be,lifetimes:{...u,created:function(...t){if(P(this),Array.isArray(I)&&I.length&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:I,configurable:!0,enumerable:!1,writable:!1}),ve(this),R===`created`){try{zr(this,e,n,r,{deferSetData:!0})}catch(e){let t=c(this);throw Error(`[wevu] mount runtime failed in created (${t}): ${e instanceof Error?e.message:String(e)}`)}ye(this)}typeof z==`function`&&z.apply(this,t),typeof u.created==`function`&&u.created.apply(this,t)},moved:function(...e){$(this,`onMoved`,e),typeof u.moved==`function`&&u.moved.apply(this,e)},attached:function(...t){if(P(this),Array.isArray(I)&&I.length&&!this.__wevuTemplateRefs&&Object.defineProperty(this,`__wevuTemplateRefs`,{value:I,configurable:!0,enumerable:!1,writable:!1}),ve(this),R!==`created`||!this.__wevu)try{zr(this,e,n,r)}catch(e){let t=c(this);throw Error(`[wevu] mount runtime failed in attached (${t}): ${e instanceof Error?e.message:String(e)}`)}ye(this),R===`created`&&Br(this),$(this,`onAttached`,t),typeof u.attached==`function`&&u.attached.apply(this,t)},ready:function(...e){if(j&&typeof q.onReady==`function`){q.onReady.call(this,...e),typeof u.ready==`function`&&u.ready.apply(this,e);return}if(!this.__wevuReadyCalled){this.__wevuReadyCalled=!0,ye(this),hr(this,()=>{$(this,`onReady`,e),typeof u.ready==`function`&&u.ready.apply(this,e)});return}typeof u.ready==`function`&&u.ready.apply(this,e)},detached:function(...e){if($(this,`onDetached`,e),j&&typeof q.onUnload==`function`){q.onUnload.call(this,...e),typeof u.detached==`function`&&u.detached.apply(this,e);return}gr(this),Vr(this),typeof u.detached==`function`&&u.detached.apply(this,e)},error:function(...e){$(this,`onError`,e),typeof u.error==`function`&&u.error.apply(this,e)}},pageLifetimes:{...d,show:function(...e){if(j&&typeof q.onShow==`function`){q.onShow.call(this,...e),typeof d.show==`function`&&d.show.apply(this,e);return}$(this,`onShow`,e),typeof d.show==`function`&&d.show.apply(this,e)},hide:function(...e){if(j&&typeof q.onHide==`function`){q.onHide.call(this,...e),typeof d.hide==`function`&&d.hide.apply(this,e);return}$(this,`onHide`,e),typeof d.hide==`function`&&d.hide.apply(this,e)},resize:function(...e){if(j&&typeof q.onResize==`function`){q.onResize.call(this,...e),typeof d.resize==`function`&&d.resize.apply(this,e);return}$(this,`onResize`,e),typeof d.resize==`function`&&d.resize.apply(this,e)},routeDone:function(...e){if(j&&typeof q.onRouteDone==`function`){q.onRouteDone.call(this,...e),typeof d.routeDone==`function`&&d.routeDone.apply(this,e);return}$(this,`onRouteDone`,e),typeof d.routeDone==`function`&&d.routeDone.apply(this,e)}},methods:{...Se,...xe},options:K})}function ei(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 ti(e){let{[jt]:t,data:n,computed:r,methods:i,setData:o,watch:s,setup:c,...l}=e[jt]===`component`?e:zt(e),u=i==null?{}:i,d=r==null?{}:r,f=new Set,p={globalProperties:{}},m={mount(e){let t=(n==null?(()=>({})):n)();if(t&&typeof t==`object`&&!Object.prototype.hasOwnProperty.call(t,`__wevuProps`))try{Object.defineProperty(t,`__wevuProps`,{value:ye(Object.create(null)),configurable:!0,enumerable:!1,writable:!1})}catch(e){}let r=Ce(t),i=d,s=u,c=!0,l=[],{includeComputed:f,setDataStrategy:m,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,prelinkMaxDepth:T,prelinkMaxKeys:E,debug:D,debugWhen:O,debugSampleRate:A,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,shouldIncludeKey:N}=Ct(o),{boundMethods:P,computedRefs:I,computedSetters:L,dirtyComputedKeys:R,computedProxy:z,publicInstance:B,touchSetupMethodsVersion:V}=et({state:r,computedDefs:i,methodDefs:s,appConfig:p,includeComputed:f,setDataStrategy:m}),ne=e==null?{setData:()=>{}}:e,re=G(r),ie,H=St({state:r,computedRefs:I,dirtyComputedKeys:R,includeComputed:f,setDataStrategy:m,computedCompare:S,computedCompareMaxDepth:C,computedCompareMaxKeys:w,currentAdapter:ne,shouldIncludeKey:N,maxPatchKeys:h,maxPayloadBytes:g,mergeSiblingThreshold:_,mergeSiblingMaxInflationRatio:v,mergeSiblingMaxParentBytes:y,mergeSiblingSkipArray:b,elevateTopKeyThreshold:j,toPlainMaxDepth:M,toPlainMaxKeys:ee,debug:D,debugWhen:O,debugSampleRate:A,runTracker:()=>ie==null?void 0:ie(),isMounted:()=>c}),ae=()=>H.job(re),oe=e=>H.mutationRecorder(e,re);ie=k(()=>{K(r);let e=r.__wevuProps;J(e)&&K(e);let t=r.__wevuAttrs;J(t)&&K(t),Object.keys(r).forEach(e=>{let t=r[e];if(Y(t)){let e=t.value;J(e)&&K(e)}else J(t)&&K(t)})},{lazy:!0,scheduler:()=>a(ae)}),ae(),l.push(ei(()=>x(ie))),m===`patch`&&(ge(r,{shouldIncludeTopKey:N,maxDepth:T,maxKeys:E}),te(oe),l.push(ei(()=>F(oe))),l.push(ei(()=>_e(r))));function se(e,t,n){let r=Ke(e,(e,n)=>t(e,n),n);return l.push(r),ei(()=>{r();let e=l.indexOf(r);e>=0&&l.splice(e,1)},r)}let ce={get state(){return r},get proxy(){return B},get methods(){return P},get computed(){return z},get adapter(){return ne},bindModel:At(B,r,I,L),watch:se,snapshot:()=>H.snapshot(),unmount:()=>{c&&(c=!1,l.forEach(e=>{try{e()}catch(e){}}),l.length=0)}};try{Object.defineProperty(ce,`__wevu_touchSetupMethodsVersion`,{value:V,configurable:!0,enumerable:!1,writable:!1})}catch(e){ce.__wevu_touchSetupMethodsVersion=V}return ce},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=Ht(),t=(e==null?void 0:e.__wxConfig)!==void 0,n=`__wevuAppRegistered`;t&&e&&e[n]||(t&&e&&(e[n]=!0),Hr(m,i==null?{}:i,s,c,l))}return m}function ni(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 ri(e){return e.replace(/&/g,`&`).replace(/"/g,`"`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function ii(e){var t,n,r,i;let a=zn((t=(n=e==null||(r=e.currentTarget)==null?void 0:r.dataset)==null?e==null||(i=e.target)==null?void 0:i.dataset:n)==null?{}:t,`wvArgs`,e),o=[];if(Array.isArray(a))o=a;else if(typeof a==`string`)try{o=JSON.parse(a)}catch(e){try{o=JSON.parse(ri(a))}catch(e){o=[]}}return Array.isArray(o)||(o=[]),o.map(t=>t===`$event`?e:t)}function ai(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 oi(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=ai(i),s=ai(a),c={...o,...s};typeof(e==null?void 0:e.setData)==`function`&&e.setData({__wvSlotPropsData:c})}function si(e){let t={properties:{__wvOwnerId:{type:String,value:``},__wvSlotProps:{type:null,value:null,observer(e){oi(this,{__wvSlotProps:e})}},__wvSlotScope:{type:null,value:null,observer(e){oi(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(oi(this),!n)return;let r=(e,t)=>{this.__wvOwnerProxy=t,typeof this.setData==`function`&&this.setData({__wvOwner:e||{}})};this.__wvOwnerUnsub=Xn(n,r);let i=Qn(n);i&&r(i,Zn(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;let o=this.__wvOwnerProxy,s=Wn(o,void 0,e,(t=this.__wevu)==null||(t=t.methods)==null?void 0:t.__weapp_vite_inline_map);if(s!==void 0)return s;if(!o)return;let c=zn((n=(r=e==null||(i=e.currentTarget)==null?void 0:i.dataset)==null?e==null||(a=e.target)==null?void 0:a.dataset:r)==null?{}:n,`wvHandler`,e);if(typeof c!=`string`||!c)return;let l=o==null?void 0:o[c];if(typeof l!=`function`)return;let u=ii(e);return l.apply(o,u)}}};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 ci(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function li(e){return typeof e!=`object`||!e||Y(e)||J(e)||Array.isArray(e)?!0:ci(e)}function ui(e,t,n){var r,i;let a=new Set(Array.isArray(t==null?void 0:t.__wevuPropKeys)?t.__wevuPropKeys:[]),o=(r=e==null?void 0:e.methods)==null?Object.create(null):r,s=(i=e==null?void 0:e.state)==null?Object.create(null):i,c=J(s)?G(s):s,l=!1;if(e&&!e.methods)try{e.methods=o}catch(e){}if(e&&!e.state)try{e.state=s}catch(e){}if(Object.keys(n).forEach(r=>{let i=n[r];if(typeof i==`function`)o[r]=(...t)=>{var n;return i.apply((n=e==null?void 0:e.proxy)==null?e:n,t)},l=!0;else{if(a.has(r)){let e=i;try{Object.defineProperty(c,r,{configurable:!0,enumerable:!1,get(){let t=c.__wevuProps;return t&&typeof t==`object`&&Object.prototype.hasOwnProperty.call(t,r)?t[r]:e},set(t){e=t;let n=c.__wevuProps;if(!(!n||typeof n!=`object`))try{n[r]=t}catch(e){}}})}catch(e){s[r]=i}return}if(i===t||!li(i))try{Object.defineProperty(c,r,{value:i,configurable:!0,enumerable:!1,writable:!0})}catch(e){s[r]=i}else s[r]=i}}),e){var u,d;if(e.methods=(u=e.methods)==null?o:u,e.state=(d=e.state)==null?s:d,l){var f;(f=e.__wevu_touchSetupMethodsVersion)==null||f.call(e)}}}let di;function fi(){let e=Ut();if(!e)return;let t=e;!t.__weapp_vite_createScopedSlotComponent&&di&&(t.__weapp_vite_createScopedSlotComponent=di)}function pi(e){fi();let{__typeProps:t,data:n,computed:r,methods:i,setData:a,watch:o,setup:s,props:c,...l}=Bt(e),u=ti({data:n,computed:r,methods:i,setData:a,[jt]:`component`}),d=(e,t)=>{let n=_r(s,e,t);return n&&t&&ui(t.runtime,t.instance,n),n},f=ni(l,c),p={data:n,computed:r,methods:i,setData:a,watch:o,setup:d,mpOptions:f};return $r(u,i==null?{}:i,o,d,f),{__wevu_runtime:u,__wevu_options:p}}function mi(e){fi();let{properties:t,props:n,...r}=e;pi(ni(r,n,t))}function hi(e){mi(si(e))}di=hi,fi();const gi=Symbol(`wevu.provideScope`),_i=new Map;function vi(e,t){let n=Kt();if(n){let r=n[gi];r||(r=new Map,n[gi]=r),r.set(e,t)}else _i.set(e,t)}function yi(e,t){let n=Kt();if(n){let t=n;for(;t;){let n=t[gi];if(n&&n.has(e))return n.get(e);t=null}}if(_i.has(e))return _i.get(e);if(arguments.length>=2)return t;throw Error(`wevu.inject:未找到对应 key 的值`)}function bi(e,t){_i.set(e,t)}function xi(e,t){if(_i.has(e))return _i.get(e);if(arguments.length>=2)return t;throw Error(`injectGlobal():未找到对应 key 的 provider:${String(e)}`)}const Si=/\B([A-Z])/g;function Ci(e){return e?e.startsWith(`--`)?e:e.replace(Si,`-$1`).toLowerCase():``}function wi(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 Ti(e){let t=``;for(let n of Object.keys(e)){let r=je(e[n]);if(r==null)continue;let i=Ci(n);if(Array.isArray(r))for(let e of r){let n=je(e);n!=null&&(t=wi(t,`${i}:${n}`))}else t=wi(t,`${i}:${r}`)}return t}function Ei(e){let t=je(e);if(t==null)return``;if(typeof t==`string`)return t;if(Array.isArray(t)){let e=``;for(let n of t){let t=Ei(n);t&&(e=wi(e,t))}return e}return typeof t==`object`?Ti(t):``}function Di(e){let t=je(e),n=``;if(!t)return n;if(typeof t==`string`)return t;if(Array.isArray(t)){for(let e of t){let t=Di(e);t&&(n+=`${t} `)}return n.trim()}if(typeof t==`object`){for(let e of Object.keys(t))je(t[e])&&(n+=`${e} `);return n.trim()}return n}const Oi=Object.freeze(Object.create(null));function ki(){var e;let t=Jt();if(!t)throw Error(`useAttrs() 必须在 setup() 的同步阶段调用`);return(e=t.attrs)==null?{}:e}function Ai(){var e;let t=Jt();if(!t)throw Error(`useSlots() 必须在 setup() 的同步阶段调用`);return(e=t.slots)==null?Oi:e}function ji(){let e=Jt();if(!(e!=null&&e.instance))throw Error(`useNativeInstance() 必须在 setup() 的同步阶段调用`);return e.instance}function Mi(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 Ni(e){let t=Kt();if(!t)throw Error(`useTemplateRef() 必须在 setup() 的同步阶段调用`);let n=typeof e==`string`?e.trim():``;if(!n)throw Error(`useTemplateRef() 需要传入有效的模板 ref 名称`);let r=Mi(t),i=r.get(n);if(i)return i;let a=Le(null);return r.set(n,a),a}const Pi=Object.freeze(Object.create(null));function Fi(e,t){let n=t===`modelValue`?`modelModifiers`:`${t}Modifiers`,r=e==null?void 0:e[n];return!r||typeof r!=`object`?Pi:r}function Ii(e,t){let n=e;try{Object.defineProperty(n,Symbol.iterator,{configurable:!0,value:()=>{let e=0;return{next:()=>e===0?(e+=1,{value:n,done:!1}):e===1?(e+=1,{value:t(),done:!1}):{value:void 0,done:!0}}}})}catch(e){}return n}function Li(e,t,n={}){let r=Jt();if(!r)throw Error(`useModel() 必须在 setup() 的同步阶段调用`);let i=r.emit,a=`update:${t}`,o=()=>Fi(e,t);return Ii(Pe({get:()=>{let r=e==null?void 0:e[t];return n.get?n.get(r,o()):r},set:e=>{let t=n.set?n.set(e,o()):e;i==null||i(a,t)}}),o)}function Ri(e){let t=Kt();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${wt((i=a==null?void 0:a.event)==null?`input`:i)}`;return r.model(t,n)[o]},r}function zi(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 Bi(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 Vi(e){return typeof e==`object`&&!!e}function Hi(e){if(!Vi(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Ui(e,t){for(let n in t)e[n]=t[n]}function Wi(e){if(Array.isArray(e))return e.map(e=>Wi(e));if(Hi(e)){let t={};for(let n in e)t[n]=Wi(e[n]);return t}return e}function Gi(e,t){if(Array.isArray(e)&&Array.isArray(t)){e.length=0,t.forEach((t,n)=>{e[n]=Wi(t)});return}if(Vi(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)){Gi(i,r);continue}if(Hi(r)&&Hi(i)){Gi(i,r);continue}e[n]=Wi(r)}}}function Ki(e,t,n,r){let i={$id:e};Object.defineProperty(i,`$state`,{get(){return t},set(e){t&&Vi(e)&&(Ui(t,e),n(`patch object`))}}),i.$patch=e=>{if(!t){typeof e==`function`?(e(i),n(`patch function`)):(Ui(i,e),n(`patch object`));return}typeof e==`function`?(e(t),n(`patch function`)):(Ui(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 qi(){let e={_stores:new Map,_plugins:[],install(e){},use(t){return typeof t==`function`&&e._plugins.push(t),e}};return qi._instance=e,e}const Ji=Object.prototype.hasOwnProperty;function Yi(e){return Y(e)&&Ji.call(e,`dep`)}function Xi(e){return J(e)?Wi(G(e)):Yi(e)?Wi(e.value):Wi(e)}function Zi(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 Qi(e,t){let n,r=!1,i=qi._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(`$`)||Y(t)&&!Yi(t)||o.set(e,Xi(t))});let s=Ki(e,void 0,e=>a(e),()=>{o.forEach((e,t)=>{let r=n[t];if(Yi(r)){r.value=Wi(e);return}if(J(r)){Gi(r,e);return}Y(r)||(n[t]=Wi(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=Zi(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]=Bi(n,e,t,s.actionSubs);return}if(Yi(t)){d.push(t);return}if(J(t)){d.push(t);return}if(!Y(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=>{Yi(e)?e.value:K(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=Ce(u),f=Wi(G(u)),p=()=>{},m=Ki(e,d,e=>p(e),()=>{Gi(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=Zi(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=Fe(()=>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]=Bi(_,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(K(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}Y(r)?t[n]=r:t[n]=Fe({get:()=>e[n],set:t=>{e[n]=t}})}return t}export{te as addMutationRecorder,y as batch,$ as callHookList,$t as callHookReturn,Pn as callUpdateHooks,Fe as computed,ti as createApp,qi as createStore,mi as createWevuComponent,hi as createWevuScopedSlotComponent,Pe as customRef,pi as defineComponent,Qi as defineStore,k as effect,w as effectScope,v as endBatch,Kt as getCurrentInstance,T as getCurrentScope,Jt as getCurrentSetupContext,Ge as getDeepWatchStrategy,xe as getReactiveVersion,yi as inject,xi as injectGlobal,nt as isNoSetData,Ee as isRaw,J as isReactive,Y as isRef,be as isShallowReactive,Re as isShallowRef,X as markNoSetData,Te as markRaw,zi as mergeModels,zr as mountRuntimeInstance,o as nextTick,Di as normalizeClass,Ei as normalizeStyle,jn as onActivated,Cn as onAddToFavorites,_n as onAttached,On as onBeforeMount,En as onBeforeUnmount,kn as onBeforeUpdate,Mn as onDeactivated,vn as onDetached,yn as onError,An as onErrorCaptured,sn as onHide,en as onLaunch,on as onLoad,wn as onMounted,gn as onMoved,tn as onPageNotFound,fn as onPageScroll,un as onPullDownRefresh,dn as onReachBottom,ln as onReady,hn as onResize,pn as onRouteDone,bn as onSaveExitState,E as onScopeDispose,Nn as onServerPrefetch,xn as onShareAppMessage,Sn as onShareTimeline,an as onShow,mn as onTabItemTap,rn as onThemeChange,nn as onUnhandledRejection,cn as onUnload,Dn as onUnmounted,Tn as onUpdated,ge as prelinkReactiveTree,vi as provide,bi as provideGlobal,Ce as reactive,Ie as readonly,Ae as ref,Hr as registerApp,$r as registerComponent,F as removeMutationRecorder,Rt as resetWevuDefaults,_r as runSetupFunction,qt as setCurrentInstance,Yt as setCurrentSetupContext,We as setDeepWatchStrategy,Lt as setWevuDefaults,ye as shallowReactive,Le as shallowRef,g as startBatch,x as stop,$i as storeToRefs,Vr as teardownRuntimeInstance,G as toRaw,Be as toRef,Ve as toRefs,Me as toValue,K as touchReactive,He as traverse,ze as triggerRef,je as unref,ki as useAttrs,Ri as useBindModel,Li as useModel,ji as useNativeInstance,Ai as useSlots,Ni as useTemplateRef,Ke as watch,qe 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.13",
|
|
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.29",
|
|
70
|
-
"@wevu/compiler": "6.6.
|
|
70
|
+
"@wevu/compiler": "6.6.13"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"dev": "tsdown -w",
|