@vueuse/shared 14.0.0 → 14.1.0
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.ts +25 -24
- package/dist/index.iife.js +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue0 from "vue";
|
|
2
|
-
import { ComponentInternalInstance, ComputedGetter, ComputedRef, InjectionKey, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, ShallowUnwrapRef as ShallowUnwrapRef$1, ToRef, ToRefs, UnwrapNestedRefs, UnwrapRef, WatchCallback, WatchHandle, WatchOptions, WatchOptionsBase, WatchSource, WatchStopHandle, WritableComputedOptions, WritableComputedRef, getCurrentInstance, inject } from "vue";
|
|
2
|
+
import { ComponentInternalInstance, ComputedGetter, ComputedRef, InjectionKey, MaybeRef, MaybeRefOrGetter, MultiWatchSources, MultiWatchSources as MultiWatchSources$1, Ref, ShallowRef, ShallowUnwrapRef as ShallowUnwrapRef$1, ToRef, ToRefs, UnwrapNestedRefs, UnwrapRef, WatchCallback, WatchHandle, WatchOptions, WatchOptionsBase, WatchSource, WatchStopHandle, WritableComputedOptions, WritableComputedRef, getCurrentInstance, inject } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region computedEager/index.d.ts
|
|
5
5
|
type ComputedEagerOptions = WatchOptionsBase;
|
|
@@ -31,8 +31,8 @@ interface ComputedWithControlRefExtra {
|
|
|
31
31
|
interface ComputedRefWithControl<T$1> extends ComputedRef<T$1>, ComputedWithControlRefExtra {}
|
|
32
32
|
interface WritableComputedRefWithControl<T$1> extends WritableComputedRef<T$1>, ComputedWithControlRefExtra {}
|
|
33
33
|
type ComputedWithControlRef<T$1 = any> = ComputedRefWithControl<T$1> | WritableComputedRefWithControl<T$1>;
|
|
34
|
-
declare function computedWithControl<T$1
|
|
35
|
-
declare function computedWithControl<T$1
|
|
34
|
+
declare function computedWithControl<T$1>(source: WatchSource | MultiWatchSources$1, fn: ComputedGetter<T$1>, options?: WatchOptions): ComputedRefWithControl<T$1>;
|
|
35
|
+
declare function computedWithControl<T$1>(source: WatchSource | MultiWatchSources$1, fn: WritableComputedOptions<T$1>, options?: WatchOptions): WritableComputedRefWithControl<T$1>;
|
|
36
36
|
/** @deprecated use `computedWithControl` instead */
|
|
37
37
|
declare const controlledComputed: typeof computedWithControl;
|
|
38
38
|
//#endregion
|
|
@@ -48,10 +48,7 @@ type AnyFn = (...args: any[]) => any;
|
|
|
48
48
|
/**
|
|
49
49
|
* A ref that allow to set null or undefined
|
|
50
50
|
*/
|
|
51
|
-
type RemovableRef<T$1> =
|
|
52
|
-
get value(): T$1;
|
|
53
|
-
set value(value: T$1 | null | undefined);
|
|
54
|
-
};
|
|
51
|
+
type RemovableRef<T$1> = Ref<T$1, T$1 | null | undefined>;
|
|
55
52
|
/**
|
|
56
53
|
* Maybe it's a computed ref, or a readonly value, or a getter function
|
|
57
54
|
*/
|
|
@@ -128,7 +125,6 @@ interface ConfigurableFlushSync {
|
|
|
128
125
|
*/
|
|
129
126
|
flush?: WatchOptionFlush;
|
|
130
127
|
}
|
|
131
|
-
type MultiWatchSources = (WatchSource<unknown> | object)[];
|
|
132
128
|
type MapSources<T$1> = { [K in keyof T$1]: T$1[K] extends WatchSource<infer V> ? V : never };
|
|
133
129
|
type MapOldSources<T$1, Immediate> = { [K in keyof T$1]: T$1[K] extends WatchSource<infer V> ? Immediate extends true ? V | undefined : V : never };
|
|
134
130
|
type Mutable<T$1> = { -readonly [P in keyof T$1]: T$1[P] };
|
|
@@ -167,7 +163,7 @@ type EventHookReturn<T$1> = EventHook<T$1>;
|
|
|
167
163
|
declare function createEventHook<T$1 = any>(): EventHookReturn<T$1>;
|
|
168
164
|
//#endregion
|
|
169
165
|
//#region utils/filters.d.ts
|
|
170
|
-
type FunctionArgs<Args extends any[] = any[], Return =
|
|
166
|
+
type FunctionArgs<Args extends any[] = any[], Return = unknown> = (...args: Args) => Return;
|
|
171
167
|
interface FunctionWrapperOptions<Args extends any[] = any[], This = any> {
|
|
172
168
|
fn: FunctionArgs<Args, This>;
|
|
173
169
|
args: Args;
|
|
@@ -309,7 +305,7 @@ declare const clamp: (n: number, min: number, max: number) => number;
|
|
|
309
305
|
declare const noop: () => void;
|
|
310
306
|
declare const rand: (min: number, max: number) => number;
|
|
311
307
|
declare const hasOwn: <T extends object, K extends keyof T>(val: T, key: K) => key is K;
|
|
312
|
-
declare const isIOS: boolean
|
|
308
|
+
declare const isIOS: boolean;
|
|
313
309
|
//#endregion
|
|
314
310
|
//#region utils/port.d.ts
|
|
315
311
|
declare const hyphenate: (str: string) => string;
|
|
@@ -1016,6 +1012,7 @@ declare function useArrayMap<T$1, U$1 = T$1>(list: MaybeRefOrGetter<MaybeRefOrGe
|
|
|
1016
1012
|
//#endregion
|
|
1017
1013
|
//#region useArrayReduce/index.d.ts
|
|
1018
1014
|
type UseArrayReducer<PV, CV, R$1> = (previousValue: PV, currentValue: CV, currentIndex: number) => R$1;
|
|
1015
|
+
type UseArrayReduceReturn<T$1 = any> = ComputedRef<T$1>;
|
|
1019
1016
|
/**
|
|
1020
1017
|
* Reactive `Array.reduce`
|
|
1021
1018
|
*
|
|
@@ -1027,7 +1024,7 @@ type UseArrayReducer<PV, CV, R$1> = (previousValue: PV, currentValue: CV, curren
|
|
|
1027
1024
|
*
|
|
1028
1025
|
* @__NO_SIDE_EFFECTS__
|
|
1029
1026
|
*/
|
|
1030
|
-
declare function useArrayReduce<T$1>(list: MaybeRefOrGetter<MaybeRefOrGetter<T$1>[]>, reducer: UseArrayReducer<T$1, T$1, T$1>):
|
|
1027
|
+
declare function useArrayReduce<T$1>(list: MaybeRefOrGetter<MaybeRefOrGetter<T$1>[]>, reducer: UseArrayReducer<T$1, T$1, T$1>): UseArrayReduceReturn<T$1>;
|
|
1031
1028
|
/**
|
|
1032
1029
|
* Reactive `Array.reduce`
|
|
1033
1030
|
*
|
|
@@ -1040,7 +1037,7 @@ declare function useArrayReduce<T$1>(list: MaybeRefOrGetter<MaybeRefOrGetter<T$1
|
|
|
1040
1037
|
*
|
|
1041
1038
|
* @__NO_SIDE_EFFECTS__
|
|
1042
1039
|
*/
|
|
1043
|
-
declare function useArrayReduce<T$1, U$1>(list: MaybeRefOrGetter<MaybeRefOrGetter<T$1>[]>, reducer: UseArrayReducer<U$1, T$1, U$1>, initialValue: MaybeRefOrGetter<U$1>):
|
|
1040
|
+
declare function useArrayReduce<T$1, U$1>(list: MaybeRefOrGetter<MaybeRefOrGetter<T$1>[]>, reducer: UseArrayReducer<U$1, T$1, U$1>, initialValue: MaybeRefOrGetter<U$1>): UseArrayReduceReturn<U$1>;
|
|
1044
1041
|
//#endregion
|
|
1045
1042
|
//#region useArraySome/index.d.ts
|
|
1046
1043
|
type UseArraySomeReturn = ComputedRef<boolean>;
|
|
@@ -1302,9 +1299,13 @@ interface UseTimeoutOptions<Controls extends boolean> extends UseTimeoutFnOption
|
|
|
1302
1299
|
*/
|
|
1303
1300
|
callback?: Fn;
|
|
1304
1301
|
}
|
|
1305
|
-
type
|
|
1302
|
+
type UseTimeoutReturn = ComputedRef<boolean> | {
|
|
1306
1303
|
readonly ready: ComputedRef<boolean>;
|
|
1307
1304
|
} & Stoppable;
|
|
1305
|
+
/**
|
|
1306
|
+
* @deprecated use UseTimeoutReturn instead
|
|
1307
|
+
*/
|
|
1308
|
+
type UseTimoutReturn = UseTimeoutReturn;
|
|
1308
1309
|
/**
|
|
1309
1310
|
* Update value after a given time with controls.
|
|
1310
1311
|
*
|
|
@@ -1377,7 +1378,7 @@ declare function watchArray<T$1, Immediate extends Readonly<boolean> = false>(so
|
|
|
1377
1378
|
//#endregion
|
|
1378
1379
|
//#region watchWithFilter/index.d.ts
|
|
1379
1380
|
interface WatchWithFilterOptions<Immediate> extends WatchOptions<Immediate>, ConfigurableEventFilter {}
|
|
1380
|
-
declare function watchWithFilter<T$1 extends Readonly<
|
|
1381
|
+
declare function watchWithFilter<T$1 extends Readonly<MultiWatchSources$1>, Immediate extends Readonly<boolean> = false>(sources: [...T$1], cb: WatchCallback<MapSources<T$1>, MapOldSources<T$1, Immediate>>, options?: WatchWithFilterOptions<Immediate>): WatchHandle;
|
|
1381
1382
|
declare function watchWithFilter<T$1, Immediate extends Readonly<boolean> = false>(source: WatchSource<T$1>, cb: WatchCallback<T$1, Immediate extends true ? T$1 | undefined : T$1>, options?: WatchWithFilterOptions<Immediate>): WatchHandle;
|
|
1382
1383
|
declare function watchWithFilter<T$1 extends object, Immediate extends Readonly<boolean> = false>(source: T$1, cb: WatchCallback<T$1, Immediate extends true ? T$1 | undefined : T$1>, options?: WatchWithFilterOptions<Immediate>): WatchHandle;
|
|
1383
1384
|
//#endregion
|
|
@@ -1391,21 +1392,21 @@ interface WatchAtMostReturn {
|
|
|
1391
1392
|
resume: () => void;
|
|
1392
1393
|
count: ShallowRef<number>;
|
|
1393
1394
|
}
|
|
1394
|
-
declare function watchAtMost<T$1 extends Readonly<
|
|
1395
|
+
declare function watchAtMost<T$1 extends Readonly<MultiWatchSources$1>, Immediate extends Readonly<boolean> = false>(sources: [...T$1], cb: WatchCallback<MapSources<T$1>, MapOldSources<T$1, Immediate>>, options: WatchAtMostOptions<Immediate>): WatchAtMostReturn;
|
|
1395
1396
|
declare function watchAtMost<T$1, Immediate extends Readonly<boolean> = false>(sources: WatchSource<T$1>, cb: WatchCallback<T$1, Immediate extends true ? T$1 | undefined : T$1>, options: WatchAtMostOptions<Immediate>): WatchAtMostReturn;
|
|
1396
1397
|
//#endregion
|
|
1397
1398
|
//#region watchDebounced/index.d.ts
|
|
1398
1399
|
interface WatchDebouncedOptions<Immediate> extends WatchOptions<Immediate>, DebounceFilterOptions {
|
|
1399
1400
|
debounce?: MaybeRefOrGetter<number>;
|
|
1400
1401
|
}
|
|
1401
|
-
declare function watchDebounced<T$1 extends Readonly<
|
|
1402
|
+
declare function watchDebounced<T$1 extends Readonly<MultiWatchSources$1>, Immediate extends Readonly<boolean> = false>(sources: [...T$1], cb: WatchCallback<MapSources<T$1>, MapOldSources<T$1, Immediate>>, options?: WatchDebouncedOptions<Immediate>): WatchHandle;
|
|
1402
1403
|
declare function watchDebounced<T$1, Immediate extends Readonly<boolean> = false>(source: WatchSource<T$1>, cb: WatchCallback<T$1, Immediate extends true ? T$1 | undefined : T$1>, options?: WatchDebouncedOptions<Immediate>): WatchHandle;
|
|
1403
1404
|
declare function watchDebounced<T$1 extends object, Immediate extends Readonly<boolean> = false>(source: T$1, cb: WatchCallback<T$1, Immediate extends true ? T$1 | undefined : T$1>, options?: WatchDebouncedOptions<Immediate>): WatchHandle;
|
|
1404
1405
|
/** @deprecated use `watchDebounced` instead */
|
|
1405
1406
|
declare const debouncedWatch: typeof watchDebounced;
|
|
1406
1407
|
//#endregion
|
|
1407
1408
|
//#region watchDeep/index.d.ts
|
|
1408
|
-
declare function watchDeep<T$1 extends Readonly<
|
|
1409
|
+
declare function watchDeep<T$1 extends Readonly<MultiWatchSources$1>, Immediate extends Readonly<boolean> = false>(source: [...T$1], cb: WatchCallback<MapSources<T$1>, MapOldSources<T$1, Immediate>>, options?: Omit<WatchOptions<Immediate>, 'deep'>): WatchHandle;
|
|
1409
1410
|
declare function watchDeep<T$1, Immediate extends Readonly<boolean> = false>(source: WatchSource<T$1>, cb: WatchCallback<T$1, Immediate extends true ? T$1 | undefined : T$1>, options?: Omit<WatchOptions<Immediate>, 'deep'>): WatchHandle;
|
|
1410
1411
|
declare function watchDeep<T$1 extends object, Immediate extends Readonly<boolean> = false>(source: T$1, cb: WatchCallback<T$1, Immediate extends true ? T$1 | undefined : T$1>, options?: Omit<WatchOptions<Immediate>, 'deep'>): WatchHandle;
|
|
1411
1412
|
//#endregion
|
|
@@ -1417,19 +1418,19 @@ interface WatchIgnorableReturn {
|
|
|
1417
1418
|
ignorePrevAsyncUpdates: IgnoredPrevAsyncUpdates;
|
|
1418
1419
|
stop: WatchStopHandle;
|
|
1419
1420
|
}
|
|
1420
|
-
declare function watchIgnorable<T$1 extends Readonly<
|
|
1421
|
+
declare function watchIgnorable<T$1 extends Readonly<MultiWatchSources$1>, Immediate extends Readonly<boolean> = false>(sources: [...T$1], cb: WatchCallback<MapSources<T$1>, MapOldSources<T$1, Immediate>>, options?: WatchWithFilterOptions<Immediate>): WatchIgnorableReturn;
|
|
1421
1422
|
declare function watchIgnorable<T$1, Immediate extends Readonly<boolean> = false>(source: WatchSource<T$1>, cb: WatchCallback<T$1, Immediate extends true ? T$1 | undefined : T$1>, options?: WatchWithFilterOptions<Immediate>): WatchIgnorableReturn;
|
|
1422
1423
|
declare function watchIgnorable<T$1 extends object, Immediate extends Readonly<boolean> = false>(source: T$1, cb: WatchCallback<T$1, Immediate extends true ? T$1 | undefined : T$1>, options?: WatchWithFilterOptions<Immediate>): WatchIgnorableReturn;
|
|
1423
1424
|
/** @deprecated use `watchIgnorable` instead */
|
|
1424
1425
|
declare const ignorableWatch: typeof watchIgnorable;
|
|
1425
1426
|
//#endregion
|
|
1426
1427
|
//#region watchImmediate/index.d.ts
|
|
1427
|
-
declare function watchImmediate<T$1 extends Readonly<
|
|
1428
|
+
declare function watchImmediate<T$1 extends Readonly<MultiWatchSources$1>>(source: [...T$1], cb: WatchCallback<MapSources<T$1>, MapOldSources<T$1, true>>, options?: Omit<WatchOptions<true>, 'immediate'>): WatchHandle;
|
|
1428
1429
|
declare function watchImmediate<T$1>(source: WatchSource<T$1>, cb: WatchCallback<T$1, T$1 | undefined>, options?: Omit<WatchOptions<true>, 'immediate'>): WatchHandle;
|
|
1429
1430
|
declare function watchImmediate<T$1 extends object>(source: T$1, cb: WatchCallback<T$1, T$1 | undefined>, options?: Omit<WatchOptions<true>, 'immediate'>): WatchHandle;
|
|
1430
1431
|
//#endregion
|
|
1431
1432
|
//#region watchOnce/index.d.ts
|
|
1432
|
-
declare function watchOnce<T$1 extends Readonly<
|
|
1433
|
+
declare function watchOnce<T$1 extends Readonly<MultiWatchSources$1>>(source: [...T$1], cb: WatchCallback<MapSources<T$1>, MapOldSources<T$1, true>>, options?: Omit<WatchOptions<true>, 'once'>): WatchHandle;
|
|
1433
1434
|
declare function watchOnce<T$1>(source: WatchSource<T$1>, cb: WatchCallback<T$1, T$1 | undefined>, options?: Omit<WatchOptions<true>, 'once'>): WatchHandle;
|
|
1434
1435
|
declare function watchOnce<T$1 extends object>(source: T$1, cb: WatchCallback<T$1, T$1 | undefined>, options?: Omit<WatchOptions<true>, 'once'>): WatchHandle;
|
|
1435
1436
|
//#endregion
|
|
@@ -1441,7 +1442,7 @@ type WatchPausableOptions<Immediate> = WatchWithFilterOptions<Immediate> & Pausa
|
|
|
1441
1442
|
/**
|
|
1442
1443
|
* @deprecated This function will be removed in future version.
|
|
1443
1444
|
*/
|
|
1444
|
-
declare function watchPausable<T$1 extends Readonly<
|
|
1445
|
+
declare function watchPausable<T$1 extends Readonly<MultiWatchSources$1>, Immediate extends Readonly<boolean> = false>(sources: [...T$1], cb: WatchCallback<MapSources<T$1>, MapOldSources<T$1, Immediate>>, options?: WatchPausableOptions<Immediate>): WatchPausableReturn;
|
|
1445
1446
|
declare function watchPausable<T$1, Immediate extends Readonly<boolean> = false>(source: WatchSource<T$1>, cb: WatchCallback<T$1, Immediate extends true ? T$1 | undefined : T$1>, options?: WatchPausableOptions<Immediate>): WatchPausableReturn;
|
|
1446
1447
|
declare function watchPausable<T$1 extends object, Immediate extends Readonly<boolean> = false>(source: T$1, cb: WatchCallback<T$1, Immediate extends true ? T$1 | undefined : T$1>, options?: WatchPausableOptions<Immediate>): WatchPausableReturn;
|
|
1447
1448
|
/** @deprecated use `watchPausable` instead */
|
|
@@ -1453,7 +1454,7 @@ interface WatchThrottledOptions<Immediate> extends WatchOptions<Immediate> {
|
|
|
1453
1454
|
trailing?: boolean;
|
|
1454
1455
|
leading?: boolean;
|
|
1455
1456
|
}
|
|
1456
|
-
declare function watchThrottled<T$1 extends Readonly<
|
|
1457
|
+
declare function watchThrottled<T$1 extends Readonly<MultiWatchSources$1>, Immediate extends Readonly<boolean> = false>(sources: [...T$1], cb: WatchCallback<MapSources<T$1>, MapOldSources<T$1, Immediate>>, options?: WatchThrottledOptions<Immediate>): WatchHandle;
|
|
1457
1458
|
declare function watchThrottled<T$1, Immediate extends Readonly<boolean> = false>(source: WatchSource<T$1>, cb: WatchCallback<T$1, Immediate extends true ? T$1 | undefined : T$1>, options?: WatchThrottledOptions<Immediate>): WatchHandle;
|
|
1458
1459
|
declare function watchThrottled<T$1 extends object, Immediate extends Readonly<boolean> = false>(source: T$1, cb: WatchCallback<T$1, Immediate extends true ? T$1 | undefined : T$1>, options?: WatchThrottledOptions<Immediate>): WatchHandle;
|
|
1459
1460
|
/** @deprecated use `watchThrottled` instead */
|
|
@@ -1466,7 +1467,7 @@ interface WatchTriggerableReturn<FnReturnT = void> extends WatchIgnorableReturn
|
|
|
1466
1467
|
}
|
|
1467
1468
|
type OnCleanup = (cleanupFn: () => void) => void;
|
|
1468
1469
|
type WatchTriggerableCallback<V$1 = any, OV = any, R$1 = void> = (value: V$1, oldValue: OV, onCleanup: OnCleanup) => R$1;
|
|
1469
|
-
declare function watchTriggerable<T$1 extends Readonly<
|
|
1470
|
+
declare function watchTriggerable<T$1 extends Readonly<MultiWatchSources$1>, FnReturnT>(sources: [...T$1], cb: WatchTriggerableCallback<MapSources<T$1>, MapOldSources<T$1, true>, FnReturnT>, options?: WatchWithFilterOptions<boolean>): WatchTriggerableReturn<FnReturnT>;
|
|
1470
1471
|
declare function watchTriggerable<T$1, FnReturnT>(source: WatchSource<T$1>, cb: WatchTriggerableCallback<T$1, T$1 | undefined, FnReturnT>, options?: WatchWithFilterOptions<boolean>): WatchTriggerableReturn<FnReturnT>;
|
|
1471
1472
|
declare function watchTriggerable<T$1 extends object, FnReturnT>(source: T$1, cb: WatchTriggerableCallback<T$1, T$1 | undefined, FnReturnT>, options?: WatchWithFilterOptions<boolean>): WatchTriggerableReturn<FnReturnT>;
|
|
1472
1473
|
//#endregion
|
|
@@ -1488,4 +1489,4 @@ interface WheneverOptions extends WatchOptions {
|
|
|
1488
1489
|
*/
|
|
1489
1490
|
declare function whenever<T$1>(source: WatchSource<T$1 | false | null | undefined>, cb: WatchCallback<T$1>, options?: WheneverOptions): vue0.WatchHandle;
|
|
1490
1491
|
//#endregion
|
|
1491
|
-
export { AnyFn, ArgumentsType, Arrayable, Awaitable, Awaited, ComputedEagerOptions, ComputedEagerReturn, ComputedRefWithControl, ComputedWithControlRef, ComputedWithControlRefExtra, ConfigurableEventFilter, ConfigurableFlush, ConfigurableFlushSync, ControlledRefOptions, CreateGlobalStateReturn, CreateInjectionStateOptions, CreateInjectionStateReturn, CreateRefReturn, DateLike, DebounceFilterOptions, DeepMaybeRef, ElementOf, EventFilter, EventHook, EventHookOff, EventHookOn, EventHookReturn, EventHookTrigger, ExtendRefOptions, ExtendRefReturn, Fn, FunctionArgs, FunctionWrapperOptions, IfAny, IgnoredPrevAsyncUpdates, IgnoredUpdater, InstanceProxy, IsAny, IsDefinedReturn, ManualResetRefReturn, MapOldSources, MapSources, MultiWatchSources, Mutable, Pausable, PausableFilterOptions, Promisify, PromisifyFn, ProvideLocalReturn, Reactified, ReactifyNested, ReactifyObjectOptions, ReactifyObjectReturn, ReactifyOptions, ReactifyReturn, ReactiveComputedReturn, ReactiveOmitPredicate, ReactiveOmitReturn, ReactivePickPredicate, ReactivePickReturn, ReadonlyRefOrGetter, RefAutoResetReturn, RefDebouncedReturn, RefThrottledReturn, RemovableRef, ShallowOrDeepRef, ShallowUnwrapRef, SharedComposableReturn, SingletonPromiseReturn, Stoppable, SyncRefOptions, SyncRefsOptions, ThrottleFilterOptions, TimerHandle, ToRefsOptions, ToggleFn, UntilArrayInstance, UntilBaseInstance, UntilToMatchOptions, UntilValueInstance, UseArrayDifferenceOptions, UseArrayDifferenceReturn, UseArrayEveryReturn, UseArrayFilterReturn, UseArrayFindIndexReturn, UseArrayFindLastReturn, UseArrayFindReturn, UseArrayIncludesComparatorFn, UseArrayIncludesOptions, UseArrayIncludesReturn, UseArrayJoinReturn, UseArrayMapReturn, UseArrayReducer, UseArraySomeReturn, UseArrayUniqueReturn, UseCounterOptions, UseCounterReturn, UseDateFormatOptions, UseDateFormatReturn, UseDebounceFnReturn, UseIntervalControls, UseIntervalFnOptions, UseIntervalFnReturn, UseIntervalOptions, UseIntervalReturn, UseLastChangedOptions, UseLastChangedReturn, UseTimeoutFnOptions, UseTimeoutFnReturn, UseTimeoutOptions, UseTimoutReturn, UseToNumberOptions, UseToggleOptions, UseToggleReturn, WatchArrayCallback, WatchAtMostOptions, WatchAtMostReturn, WatchDebouncedOptions, WatchIgnorableReturn, WatchOptionFlush, WatchPausableOptions, WatchPausableReturn, WatchThrottledOptions, WatchTriggerableCallback, WatchTriggerableReturn, WatchWithFilterOptions, WheneverOptions, WritableComputedRefWithControl, assert, autoResetRef, bypassFilter, camelize, clamp, computedEager, computedWithControl, containsProp, controlledComputed, controlledRef, createEventHook, createFilterWrapper, createGlobalState, createInjectionState, createReactiveFn, createRef, createSharedComposable, createSingletonPromise, debounceFilter, debouncedRef, debouncedWatch, eagerComputed, extendRef, formatDate, get, getLifeCycleTarget, hasOwn, hyphenate, identity, ignorableWatch, increaseWithUnit, injectLocal, invoke, isClient, isDef, isDefined, isIOS, isObject, isWorker, makeDestructurable, noop, normalizeDate, notNullish, now, objectEntries, objectOmit, objectPick, pausableFilter, pausableWatch, promiseTimeout, provideLocal, pxValue, rand, reactify, reactifyObject, reactiveComputed, reactiveOmit, reactivePick, refAutoReset, refDebounced, refDefault, refManualReset, refThrottled, refWithControl, set, syncRef, syncRefs, throttleFilter, throttledRef, throttledWatch, timestamp, toArray, toReactive, toRef, toRefs, tryOnBeforeMount, tryOnBeforeUnmount, tryOnMounted, tryOnScopeDispose, tryOnUnmounted, until, useArrayDifference, useArrayEvery, useArrayFilter, useArrayFind, useArrayFindIndex, useArrayFindLast, useArrayIncludes, useArrayJoin, useArrayMap, useArrayReduce, useArraySome, useArrayUnique, useCounter, useDateFormat, useDebounce, useDebounceFn, useInterval, useIntervalFn, useLastChanged, useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useToNumber, useToString, useToggle, watchArray, watchAtMost, watchDebounced, watchDeep, watchIgnorable, watchImmediate, watchOnce, watchPausable, watchThrottled, watchTriggerable, watchWithFilter, whenever };
|
|
1492
|
+
export { AnyFn, ArgumentsType, Arrayable, Awaitable, Awaited, ComputedEagerOptions, ComputedEagerReturn, ComputedRefWithControl, ComputedWithControlRef, ComputedWithControlRefExtra, ConfigurableEventFilter, ConfigurableFlush, ConfigurableFlushSync, ControlledRefOptions, CreateGlobalStateReturn, CreateInjectionStateOptions, CreateInjectionStateReturn, CreateRefReturn, DateLike, DebounceFilterOptions, DeepMaybeRef, ElementOf, EventFilter, EventHook, EventHookOff, EventHookOn, EventHookReturn, EventHookTrigger, ExtendRefOptions, ExtendRefReturn, Fn, FunctionArgs, FunctionWrapperOptions, IfAny, IgnoredPrevAsyncUpdates, IgnoredUpdater, InstanceProxy, IsAny, IsDefinedReturn, ManualResetRefReturn, MapOldSources, MapSources, type MultiWatchSources, Mutable, Pausable, PausableFilterOptions, Promisify, PromisifyFn, ProvideLocalReturn, Reactified, ReactifyNested, ReactifyObjectOptions, ReactifyObjectReturn, ReactifyOptions, ReactifyReturn, ReactiveComputedReturn, ReactiveOmitPredicate, ReactiveOmitReturn, ReactivePickPredicate, ReactivePickReturn, ReadonlyRefOrGetter, RefAutoResetReturn, RefDebouncedReturn, RefThrottledReturn, RemovableRef, ShallowOrDeepRef, ShallowUnwrapRef, SharedComposableReturn, SingletonPromiseReturn, Stoppable, SyncRefOptions, SyncRefsOptions, ThrottleFilterOptions, TimerHandle, ToRefsOptions, ToggleFn, UntilArrayInstance, UntilBaseInstance, UntilToMatchOptions, UntilValueInstance, UseArrayDifferenceOptions, UseArrayDifferenceReturn, UseArrayEveryReturn, UseArrayFilterReturn, UseArrayFindIndexReturn, UseArrayFindLastReturn, UseArrayFindReturn, UseArrayIncludesComparatorFn, UseArrayIncludesOptions, UseArrayIncludesReturn, UseArrayJoinReturn, UseArrayMapReturn, UseArrayReduceReturn, UseArrayReducer, UseArraySomeReturn, UseArrayUniqueReturn, UseCounterOptions, UseCounterReturn, UseDateFormatOptions, UseDateFormatReturn, UseDebounceFnReturn, UseIntervalControls, UseIntervalFnOptions, UseIntervalFnReturn, UseIntervalOptions, UseIntervalReturn, UseLastChangedOptions, UseLastChangedReturn, UseTimeoutFnOptions, UseTimeoutFnReturn, UseTimeoutOptions, UseTimeoutReturn, UseTimoutReturn, UseToNumberOptions, UseToggleOptions, UseToggleReturn, WatchArrayCallback, WatchAtMostOptions, WatchAtMostReturn, WatchDebouncedOptions, WatchIgnorableReturn, WatchOptionFlush, WatchPausableOptions, WatchPausableReturn, WatchThrottledOptions, WatchTriggerableCallback, WatchTriggerableReturn, WatchWithFilterOptions, WheneverOptions, WritableComputedRefWithControl, assert, autoResetRef, bypassFilter, camelize, clamp, computedEager, computedWithControl, containsProp, controlledComputed, controlledRef, createEventHook, createFilterWrapper, createGlobalState, createInjectionState, createReactiveFn, createRef, createSharedComposable, createSingletonPromise, debounceFilter, debouncedRef, debouncedWatch, eagerComputed, extendRef, formatDate, get, getLifeCycleTarget, hasOwn, hyphenate, identity, ignorableWatch, increaseWithUnit, injectLocal, invoke, isClient, isDef, isDefined, isIOS, isObject, isWorker, makeDestructurable, noop, normalizeDate, notNullish, now, objectEntries, objectOmit, objectPick, pausableFilter, pausableWatch, promiseTimeout, provideLocal, pxValue, rand, reactify, reactifyObject, reactiveComputed, reactiveOmit, reactivePick, refAutoReset, refDebounced, refDefault, refManualReset, refThrottled, refWithControl, set, syncRef, syncRefs, throttleFilter, throttledRef, throttledWatch, timestamp, toArray, toReactive, toRef, toRefs, tryOnBeforeMount, tryOnBeforeUnmount, tryOnMounted, tryOnScopeDispose, tryOnUnmounted, until, useArrayDifference, useArrayEvery, useArrayFilter, useArrayFind, useArrayFindIndex, useArrayFindLast, useArrayIncludes, useArrayJoin, useArrayMap, useArrayReduce, useArraySome, useArrayUnique, useCounter, useDateFormat, useDebounce, useDebounceFn, useInterval, useIntervalFn, useLastChanged, useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useToNumber, useToString, useToggle, watchArray, watchAtMost, watchDebounced, watchDeep, watchIgnorable, watchImmediate, watchOnce, watchPausable, watchThrottled, watchTriggerable, watchWithFilter, whenever };
|
package/dist/index.iife.js
CHANGED
|
@@ -287,7 +287,7 @@ vue = __toESM(vue);
|
|
|
287
287
|
const isIOS = /* @__PURE__ */ getIsIOS();
|
|
288
288
|
function getIsIOS() {
|
|
289
289
|
var _window, _window2, _window3;
|
|
290
|
-
return isClient && ((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.maxTouchPoints) > 2 && /iPad|Macintosh/.test((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.navigator.userAgent));
|
|
290
|
+
return isClient && !!((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.maxTouchPoints) > 2 && /iPad|Macintosh/.test((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.navigator.userAgent));
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
//#endregion
|
package/dist/index.iife.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e};t=((e,t,i)=>(i=e==null?{}:n(o(e)),c(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)))(t);function l(e,n){var r;let i=(0,t.shallowRef)();return(0,t.watchEffect)(()=>{i.value=e()},{...n,flush:(r=n==null?void 0:n.flush)==null?`sync`:r}),(0,t.readonly)(i)}let u=l;function d(e,n,r={}){let i,a,o,s=!0,c=()=>{s=!0,o()};(0,t.watch)(e,c,{flush:`sync`,...r});let l=typeof n==`function`?n:n.get,u=typeof n==`function`?void 0:n.set,d=(0,t.customRef)((e,t)=>(a=e,o=t,{get(){return s&&(i=l(i),s=!1),a(),i},set(e){u==null||u(e)}}));return d.trigger=c,d}let f=d;function p(e,n){return(0,t.getCurrentScope)()?((0,t.onScopeDispose)(e,n),!0):!1}function m(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return p(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t))),clear:()=>{e.clear()}}}function h(e){let n=!1,r,i=(0,t.effectScope)(!0);return((...t)=>(n||(r=i.run(()=>e(...t)),n=!0),r))}let g=new WeakMap,_=(...e)=>{var n;let r=e[0],i=(n=(0,t.getCurrentInstance)())==null?void 0:n.proxy,a=i==null?(0,t.getCurrentScope)():i;if(a==null&&!(0,t.hasInjectionContext)())throw Error(`injectLocal must be called in setup`);return a&&g.has(a)&&r in g.get(a)?g.get(a)[r]:(0,t.inject)(...e)};function v(e,n){var r;let i=(r=(0,t.getCurrentInstance)())==null?void 0:r.proxy,a=i==null?(0,t.getCurrentScope)():i;if(a==null)throw Error(`provideLocal must be called in setup`);g.has(a)||g.set(a,Object.create(null));let o=g.get(a);return o[e]=n,(0,t.provide)(e,n)}function ee(e,t){let n=(t==null?void 0:t.injectionKey)||Symbol(e.name||`InjectionState`),r=t==null?void 0:t.defaultValue;return[(...t)=>{let r=e(...t);return v(n,r),r},()=>_(n,r)]}function te(e,n){return n===!0?(0,t.ref)(e):(0,t.shallowRef)(e)}let y=typeof window<`u`&&typeof document<`u`,ne=typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope,re=e=>e!==void 0,ie=e=>e!=null,ae=(e,...t)=>{e||console.warn(...t)},oe=Object.prototype.toString,b=e=>oe.call(e)===`[object Object]`,se=()=>Date.now(),x=()=>+Date.now(),ce=(e,t,n)=>Math.min(n,Math.max(t,e)),S=()=>{},le=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e),ue=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),de=fe();function fe(){var e,t,n;return y&&((e=window)==null||(e=e.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)==null?void 0:n.navigator.userAgent))}function C(...e){if(e.length!==1)return(0,t.toRef)(...e);let n=e[0];return typeof n==`function`?(0,t.readonly)((0,t.customRef)(()=>({get:n,set:S}))):(0,t.ref)(n)}function w(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}let T=e=>e();function E(e,n={}){let r,i,a=S,o=e=>{clearTimeout(e),a(),a=S},s;return c=>{let l=(0,t.toValue)(e),u=(0,t.toValue)(n.maxWait);return r&&o(r),l<=0||u!==void 0&&u<=0?(i&&(o(i),i=void 0),Promise.resolve(c())):new Promise((e,t)=>{a=n.rejectOnCancel?t:e,s=c,u&&!i&&(i=setTimeout(()=>{r&&o(r),i=void 0,e(s())},u)),r=setTimeout(()=>{i&&o(i),i=void 0,e(c())},l)})}}function D(...e){let n=0,r,i=!0,a=S,o,s,c,l,u;!(0,t.isRef)(e[0])&&typeof e[0]==`object`?{delay:s,trailing:c=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[s,c=!0,l=!0,u=!1]=e;let d=()=>{r&&(clearTimeout(r),r=void 0,a(),a=S)};return e=>{let f=(0,t.toValue)(s),p=Date.now()-n,m=()=>o=e();return d(),f<=0?(n=Date.now(),m()):(p>f?(n=Date.now(),(l||!i)&&m()):c&&(o=new Promise((e,t)=>{a=u?t:e,r=setTimeout(()=>{n=Date.now(),i=!0,e(m()),d()},Math.max(0,f-p))})),!l&&!r&&(r=setTimeout(()=>i=!0,f)),i=!1,o)}}function O(e=T,n={}){let{initialState:r=`active`}=n,i=C(r===`active`);function a(){i.value=!1}function o(){i.value=!0}return{isActive:(0,t.readonly)(i),pause:a,resume:o,eventFilter:(...t)=>{i.value&&e(...t)}}}function k(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(()=>i(n),e):setTimeout(r,e)})}function pe(e){return e}function me(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function he(e){return e()}function A(e,...t){return t.some(t=>t in e)}function ge(e,t){var n;if(typeof e==`number`)return e+t;let r=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||``,i=e.slice(r.length),a=Number.parseFloat(r)+t;return Number.isNaN(a)?e:a+i}function _e(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function ve(e,t,n=!1){return t.reduce((t,r)=>(r in e&&(!n||e[r]!==void 0)&&(t[r]=e[r]),t),{})}function ye(e,t,n=!1){return Object.fromEntries(Object.entries(e).filter(([e,r])=>(!n||r!==void 0)&&!t.includes(e)))}function be(e){return Object.entries(e)}function j(e){return Array.isArray(e)?e:[e]}function M(e){let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))}let xe=/\B([A-Z])/g,Se=M(e=>e.replace(xe,`-$1`).toLowerCase()),Ce=/-(\w)/g,we=M(e=>e.replace(Ce,(e,t)=>t?t.toUpperCase():``));function N(e){return e||(0,t.getCurrentInstance)()}function Te(e){if(!y)return e;let n=0,r,i,a=()=>{--n,i&&n<=0&&(i.stop(),r=void 0,i=void 0)};return((...o)=>(n+=1,i||(i=(0,t.effectScope)(!0),r=i.run(()=>e(...o))),p(a),r))}function P(e,n,{enumerable:r=!1,unwrap:i=!0}={}){for(let[a,o]of Object.entries(n))a!==`value`&&((0,t.isRef)(o)&&i?Object.defineProperty(e,a,{get(){return o.value},set(e){o.value=e},enumerable:r}):Object.defineProperty(e,a,{value:o,enumerable:r}));return e}function Ee(e,n){return n==null?(0,t.unref)(e):(0,t.unref)(e)[n]}function De(e){return(0,t.unref)(e)!=null}function Oe(e,t){if(typeof Symbol<`u`){let n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}else return Object.assign([...t],e)}function F(e,n){let r=(n==null?void 0:n.computedGetter)===!1?t.unref:t.toValue;return function(...n){return(0,t.computed)(()=>e.apply(this,n.map(e=>r(e))))}}let ke=F;function Ae(e,t={}){let n=[],r;if(Array.isArray(t))n=t;else{r=t;let{includeOwnProperties:i=!0}=t;n.push(...Object.keys(e)),i&&n.push(...Object.getOwnPropertyNames(e))}return Object.fromEntries(n.map(t=>{let n=e[t];return[t,typeof n==`function`?F(n.bind(e),r):n]}))}function I(e){return(0,t.isRef)(e)?(0,t.reactive)(new Proxy({},{get(n,r,i){return(0,t.unref)(Reflect.get(e.value,r,i))},set(n,r,i){return(0,t.isRef)(e.value[r])&&!(0,t.isRef)(i)?e.value[r].value=i:e.value[r]=i,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):(0,t.reactive)(e)}function L(e){return I((0,t.computed)(e))}function je(e,...n){let r=n.flat(),i=r[0];return L(()=>typeof i==`function`?Object.fromEntries(Object.entries((0,t.toRefs)(e)).filter(([e,n])=>!i((0,t.toValue)(n),e))):Object.fromEntries(Object.entries((0,t.toRefs)(e)).filter(e=>!r.includes(e[0]))))}function Me(e,...n){let r=n.flat(),i=r[0];return L(()=>typeof i==`function`?Object.fromEntries(Object.entries((0,t.toRefs)(e)).filter(([e,n])=>i((0,t.toValue)(n),e))):Object.fromEntries(r.map(t=>[t,C(e,t)])))}function R(e,n=1e4){return(0,t.customRef)((r,i)=>{let a=(0,t.toValue)(e),o,s=()=>setTimeout(()=>{a=(0,t.toValue)(e),i()},(0,t.toValue)(n));return p(()=>{clearTimeout(o)}),{get(){return r(),a},set(e){a=e,i(),clearTimeout(o),o=s()}}})}let Ne=R;function z(e,t=200,n={}){return w(E(t,n),e)}function B(e,n=200,r={}){let i=(0,t.ref)((0,t.toValue)(e)),a=z(()=>{i.value=e.value},n,r);return(0,t.watch)(e,()=>a()),(0,t.shallowReadonly)(i)}let Pe=B,Fe=B;function Ie(e,n){return(0,t.computed)({get(){var t;return(t=e.value)==null?n:t},set(t){e.value=t}})}function Le(e){let n=(0,t.toValue)(e),r,i=()=>{n=(0,t.toValue)(e),r()},a=(0,t.customRef)((e,t)=>(r=t,{get(){return e(),n},set(e){n=e,r()}}));return a.reset=i,a}function V(e,t=200,n=!1,r=!0,i=!1){return w(D(t,n,r,i),e)}function H(e,n=200,r=!0,i=!0){if(n<=0)return e;let a=(0,t.ref)((0,t.toValue)(e)),o=V(()=>{a.value=e.value},n,r,i);return(0,t.watch)(e,()=>o()),a}let Re=H,ze=H;function U(e,n={}){let r=e,i,a,o=(0,t.customRef)((e,t)=>(i=e,a=t,{get(){return s()},set(e){c(e)}}));function s(e=!0){return e&&i(),r}function c(e,t=!0){var i,o;if(e===r)return;let s=r;((i=n.onBeforeChange)==null?void 0:i.call(n,e,s))!==!1&&(r=e,(o=n.onChanged)==null||o.call(n,e,s),t&&a())}return P(o,{get:s,set:c,untrackedGet:()=>s(!1),silentSet:e=>c(e,!1),peek:()=>s(!1),lay:e=>c(e,!1)},{enumerable:!0})}let Be=U;function Ve(...e){if(e.length===2){let[t,n]=e;t.value=n}if(e.length===3){let[t,n,r]=e;t[n]=r}}function W(e,n,r={}){let{eventFilter:i=T,...a}=r;return(0,t.watch)(e,w(i,n),a)}function G(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=O(r,{initialState:i});return{stop:W(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}let K=G;function He(e,t,...[n]){let{flush:r=`sync`,deep:i=!1,immediate:a=!0,direction:o=`both`,transform:s={}}=n||{},c=[],l=`ltr`in s&&s.ltr||(e=>e),u=`rtl`in s&&s.rtl||(e=>e);return(o===`both`||o===`ltr`)&&c.push(K(e,e=>{c.forEach(e=>e.pause()),t.value=l(e),c.forEach(e=>e.resume())},{flush:r,deep:i,immediate:a})),(o===`both`||o===`rtl`)&&c.push(K(t,t=>{c.forEach(e=>e.pause()),e.value=u(t),c.forEach(e=>e.resume())},{flush:r,deep:i,immediate:a})),()=>{c.forEach(e=>e.stop())}}function Ue(e,n,r={}){let{flush:i=`sync`,deep:a=!1,immediate:o=!0}=r,s=j(n);return(0,t.watch)(e,e=>s.forEach(t=>t.value=e),{flush:i,deep:a,immediate:o})}function We(e,n={}){if(!(0,t.isRef)(e))return(0,t.toRefs)(e);let r=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let i in e.value)r[i]=(0,t.customRef)(()=>({get(){return e.value[i]},set(r){var a;if((a=(0,t.toValue)(n.replaceRef))==null||a)if(Array.isArray(e.value)){let t=[...e.value];t[i]=r,e.value=t}else{let t={...e.value,[i]:r};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}else e.value[i]=r}}));return r}function Ge(e,n=!0,r){N(r)?(0,t.onBeforeMount)(e,r):n?e():(0,t.nextTick)(e)}function Ke(e,n){N(n)&&(0,t.onBeforeUnmount)(e,n)}function qe(e,n=!0,r){N(r)?(0,t.onMounted)(e,r):n?e():(0,t.nextTick)(e)}function Je(e,n){N(n)&&(0,t.onUnmounted)(e,n)}function q(e,n=!1){function r(r,{flush:i=`sync`,deep:a=!1,timeout:o,throwOnTimeout:s}={}){let c=null,l=[new Promise(o=>{c=(0,t.watch)(e,e=>{r(e)!==n&&(c?c():(0,t.nextTick)(()=>c==null?void 0:c()),o(e))},{flush:i,deep:a,immediate:!0})})];return o!=null&&l.push(k(o,s).then(()=>(0,t.toValue)(e)).finally(()=>c==null?void 0:c())),Promise.race(l)}function i(i,a){if(!(0,t.isRef)(i))return r(e=>e===i,a);let{flush:o=`sync`,deep:s=!1,timeout:c,throwOnTimeout:l}=a==null?{}:a,u=null,d=[new Promise(r=>{u=(0,t.watch)([e,i],([e,i])=>{n!==(e===i)&&(u?u():(0,t.nextTick)(()=>u==null?void 0:u()),r(e))},{flush:o,deep:s,immediate:!0})})];return c!=null&&d.push(k(c,l).then(()=>(0,t.toValue)(e)).finally(()=>(u==null||u(),(0,t.toValue)(e)))),Promise.race(d)}function a(e){return r(e=>!!e,e)}function o(e){return i(null,e)}function s(e){return i(void 0,e)}function c(e){return r(Number.isNaN,e)}function l(e,n){return r(n=>{let r=Array.from(n);return r.includes(e)||r.includes((0,t.toValue)(e))},n)}function u(e){return d(1,e)}function d(e=1,t){let n=-1;return r(()=>(n+=1,n>=e),t)}return Array.isArray((0,t.toValue)(e))?{toMatch:r,toContains:l,changed:u,changedTimes:d,get not(){return q(e,!n)}}:{toMatch:r,toBe:i,toBeTruthy:a,toBeNull:o,toBeNaN:c,toBeUndefined:s,changed:u,changedTimes:d,get not(){return q(e,!n)}}}function Ye(e){return q(e)}function Xe(e,t){return e===t}function Ze(...e){var n,r;let i=e[0],a=e[1],o=(n=e[2])==null?Xe:n,{symmetric:s=!1}=(r=e[3])==null?{}:r;if(typeof o==`string`){let e=o;o=(t,n)=>t[e]===n[e]}let c=(0,t.computed)(()=>(0,t.toValue)(i).filter(e=>(0,t.toValue)(a).findIndex(t=>o(e,t))===-1));if(s){let e=(0,t.computed)(()=>(0,t.toValue)(a).filter(e=>(0,t.toValue)(i).findIndex(t=>o(e,t))===-1));return(0,t.computed)(()=>s?[...(0,t.toValue)(c),...(0,t.toValue)(e)]:(0,t.toValue)(c))}else return c}function Qe(e,n){return(0,t.computed)(()=>(0,t.toValue)(e).every((e,r,i)=>n((0,t.toValue)(e),r,i)))}function $e(e,n){return(0,t.computed)(()=>(0,t.toValue)(e).map(e=>(0,t.toValue)(e)).filter(n))}function et(e,n){return(0,t.computed)(()=>(0,t.toValue)((0,t.toValue)(e).find((e,r,i)=>n((0,t.toValue)(e),r,i))))}function tt(e,n){return(0,t.computed)(()=>(0,t.toValue)(e).findIndex((e,r,i)=>n((0,t.toValue)(e),r,i)))}function nt(e,t){let n=e.length;for(;n-- >0;)if(t(e[n],n,e))return e[n]}function rt(e,n){return(0,t.computed)(()=>(0,t.toValue)(Array.prototype.findLast?(0,t.toValue)(e).findLast((e,r,i)=>n((0,t.toValue)(e),r,i)):nt((0,t.toValue)(e),(e,r,i)=>n((0,t.toValue)(e),r,i))))}function it(e){return b(e)&&A(e,`formIndex`,`comparator`)}function at(...e){var n;let r=e[0],i=e[1],a=e[2],o=0;if(it(a)){var s;o=(s=a.fromIndex)==null?0:s,a=a.comparator}if(typeof a==`string`){let e=a;a=(n,r)=>n[e]===(0,t.toValue)(r)}return a=(n=a)==null?((e,n)=>e===(0,t.toValue)(n)):n,(0,t.computed)(()=>(0,t.toValue)(r).slice(o).some((e,n,r)=>a((0,t.toValue)(e),(0,t.toValue)(i),n,(0,t.toValue)(r))))}function ot(e,n){return(0,t.computed)(()=>(0,t.toValue)(e).map(e=>(0,t.toValue)(e)).join((0,t.toValue)(n)))}function st(e,n){return(0,t.computed)(()=>(0,t.toValue)(e).map(e=>(0,t.toValue)(e)).map(n))}function ct(e,n,...r){let i=(e,r,i)=>n((0,t.toValue)(e),(0,t.toValue)(r),i);return(0,t.computed)(()=>{let n=(0,t.toValue)(e);return r.length?n.reduce(i,typeof r[0]==`function`?(0,t.toValue)(r[0]()):(0,t.toValue)(r[0])):n.reduce(i)})}function lt(e,n){return(0,t.computed)(()=>(0,t.toValue)(e).some((e,r,i)=>n((0,t.toValue)(e),r,i)))}function ut(e){return Array.from(new Set(e))}function dt(e,t){return e.reduce((n,r)=>(n.some(n=>t(r,n,e))||n.push(r),n),[])}function ft(e,n){return(0,t.computed)(()=>{let r=(0,t.toValue)(e).map(e=>(0,t.toValue)(e));return n?dt(r,n):ut(r)})}function pt(e=0,n={}){let r=(0,t.unref)(e),i=(0,t.shallowRef)(e),{max:a=1/0,min:o=-1/0}=n,s=(e=1)=>i.value=Math.max(Math.min(a,i.value+e),o),c=(e=1)=>i.value=Math.min(Math.max(o,i.value-e),a),l=()=>i.value,u=e=>i.value=Math.max(o,Math.min(a,e));return{count:(0,t.shallowReadonly)(i),inc:s,dec:c,get:l,set:u,reset:(e=r)=>(r=e,u(e))}}let mt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,ht=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|z{1,4}|SSS/g;function gt(e,t,n,r){let i=e<12?`AM`:`PM`;return r&&(i=i.split(``).reduce((e,t)=>e+=`${t}.`,``)),n?i.toLowerCase():i}function J(e){let t=[`th`,`st`,`nd`,`rd`],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function Y(e,n,r={}){var i;let a=e.getFullYear(),o=e.getMonth(),s=e.getDate(),c=e.getHours(),l=e.getMinutes(),u=e.getSeconds(),d=e.getMilliseconds(),f=e.getDay(),p=(i=r.customMeridiem)==null?gt:i,m=e=>{var t;return(t=e.split(` `)[1])==null?``:t},h={Yo:()=>J(a),YY:()=>String(a).slice(-2),YYYY:()=>a,M:()=>o+1,Mo:()=>J(o+1),MM:()=>`${o+1}`.padStart(2,`0`),MMM:()=>e.toLocaleDateString((0,t.toValue)(r.locales),{month:`short`}),MMMM:()=>e.toLocaleDateString((0,t.toValue)(r.locales),{month:`long`}),D:()=>String(s),Do:()=>J(s),DD:()=>`${s}`.padStart(2,`0`),H:()=>String(c),Ho:()=>J(c),HH:()=>`${c}`.padStart(2,`0`),h:()=>`${c%12||12}`.padStart(1,`0`),ho:()=>J(c%12||12),hh:()=>`${c%12||12}`.padStart(2,`0`),m:()=>String(l),mo:()=>J(l),mm:()=>`${l}`.padStart(2,`0`),s:()=>String(u),so:()=>J(u),ss:()=>`${u}`.padStart(2,`0`),SSS:()=>`${d}`.padStart(3,`0`),d:()=>f,dd:()=>e.toLocaleDateString((0,t.toValue)(r.locales),{weekday:`narrow`}),ddd:()=>e.toLocaleDateString((0,t.toValue)(r.locales),{weekday:`short`}),dddd:()=>e.toLocaleDateString((0,t.toValue)(r.locales),{weekday:`long`}),A:()=>p(c,l),AA:()=>p(c,l,!1,!0),a:()=>p(c,l,!0),aa:()=>p(c,l,!0,!0),z:()=>m(e.toLocaleDateString((0,t.toValue)(r.locales),{timeZoneName:`shortOffset`})),zz:()=>m(e.toLocaleDateString((0,t.toValue)(r.locales),{timeZoneName:`shortOffset`})),zzz:()=>m(e.toLocaleDateString((0,t.toValue)(r.locales),{timeZoneName:`shortOffset`})),zzzz:()=>m(e.toLocaleDateString((0,t.toValue)(r.locales),{timeZoneName:`longOffset`}))};return n.replace(ht,(e,t)=>{var n,r;return(n=t==null?(r=h[e])==null?void 0:r.call(h):t)==null?e:n})}function X(e){if(e===null)return new Date(NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e==`string`&&!/Z$/i.test(e)){let t=e.match(mt);if(t){let e=t[2]-1||0,n=(t[7]||`0`).substring(0,3);return new Date(t[1],e,t[3]||1,t[4]||0,t[5]||0,t[6]||0,n)}}return new Date(e)}function _t(e,n=`HH:mm:ss`,r={}){return(0,t.computed)(()=>Y(X((0,t.toValue)(e)),(0,t.toValue)(n),r))}function Z(e,n=1e3,r={}){let{immediate:i=!0,immediateCallback:a=!1}=r,o=null,s=(0,t.shallowRef)(!1);function c(){o&&(clearInterval(o),o=null)}function l(){s.value=!1,c()}function u(){let r=(0,t.toValue)(n);r<=0||(s.value=!0,a&&e(),c(),s.value&&(o=setInterval(e,r)))}return i&&y&&u(),((0,t.isRef)(n)||typeof n==`function`)&&p((0,t.watch)(n,()=>{s.value&&y&&u()})),p(l),{isActive:(0,t.shallowReadonly)(s),pause:l,resume:u}}function vt(e=1e3,n={}){let{controls:r=!1,immediate:i=!0,callback:a}=n,o=(0,t.shallowRef)(0),s=()=>o.value+=1,c=()=>{o.value=0},l=Z(a?()=>{s(),a(o.value)}:s,e,{immediate:i});return r?{counter:(0,t.shallowReadonly)(o),reset:c,...l}:(0,t.shallowReadonly)(o)}function yt(e,n={}){var r;let i=(0,t.shallowRef)((r=n.initialValue)==null?null:r);return(0,t.watch)(e,()=>i.value=x(),n),(0,t.shallowReadonly)(i)}function bt(e,n,r={}){let{immediate:i=!0,immediateCallback:a=!1}=r,o=(0,t.shallowRef)(!1),s;function c(){s&&(clearTimeout(s),s=void 0)}function l(){o.value=!1,c()}function u(...r){a&&e(),c(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=void 0,e(...r)},(0,t.toValue)(n))}return i&&(o.value=!0,y&&u()),p(l),{isPending:(0,t.shallowReadonly)(o),start:u,stop:l}}function xt(e=1e3,n={}){let{controls:r=!1,callback:i}=n,a=bt(i==null?S:i,e,n),o=(0,t.computed)(()=>!a.isPending.value);return r?{ready:o,...a}:o}function St(e,n={}){let{method:r=`parseFloat`,radix:i,nanToZero:a}=n;return(0,t.computed)(()=>{let n=(0,t.toValue)(e);return typeof r==`function`?n=r(n):typeof n==`string`&&(n=Number[r](n,i)),a&&Number.isNaN(n)&&(n=0),n})}function Ct(e){return(0,t.computed)(()=>`${(0,t.toValue)(e)}`)}function wt(e=!1,n={}){let{truthyValue:r=!0,falsyValue:i=!1}=n,a=(0,t.isRef)(e),o=(0,t.shallowRef)(e);function s(e){if(arguments.length)return o.value=e,o.value;{let e=(0,t.toValue)(r);return o.value=o.value===e?(0,t.toValue)(i):e,o.value}}return a?s:[o,s]}function Tt(e,n,r){let i=r!=null&&r.immediate?[]:[...typeof e==`function`?e():Array.isArray(e)?e:(0,t.toValue)(e)];return(0,t.watch)(e,(e,t,r)=>{let a=Array.from({length:i.length}),o=[];for(let t of e){let e=!1;for(let n=0;n<i.length;n++)if(!a[n]&&t===i[n]){a[n]=!0,e=!0;break}e||o.push(t)}let s=i.filter((e,t)=>!a[t]);n(e,i,o,s,r),i=[...e]},r)}function Et(e,n,r){let{count:i,...a}=r,o=(0,t.shallowRef)(0),{stop:s,resume:c,pause:l}=W(e,(...e)=>{o.value+=1,o.value>=(0,t.toValue)(i)&&(0,t.nextTick)(()=>s()),n(...e)},a);return{count:o,stop:s,resume:c,pause:l}}function Dt(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return W(e,t,{...a,eventFilter:E(r,{maxWait:i})})}let Ot=Dt;function kt(e,n,r){return(0,t.watch)(e,n,{...r,deep:!0})}function Q(e,n,r={}){let{eventFilter:i=T,...a}=r,o=w(i,n),s,c,l;if(a.flush===`sync`){let n=!1;c=()=>{},s=e=>{n=!0,e(),n=!1},l=(0,t.watch)(e,(...e)=>{n||o(...e)},a)}else{let n=[],r=0,i=0;c=()=>{r=i},n.push((0,t.watch)(e,()=>{i++},{...a,flush:`sync`})),s=e=>{let t=i;e(),r+=i-t},n.push((0,t.watch)(e,(...e)=>{let t=r>0&&r===i;r=0,i=0,!t&&o(...e)},a)),l=()=>{n.forEach(e=>e())}}return{stop:l,ignoreUpdates:s,ignorePrevAsyncUpdates:c}}let At=Q;function jt(e,n,r){return(0,t.watch)(e,n,{...r,immediate:!0})}function Mt(e,n,r){return(0,t.watch)(e,n,{...r,once:!0})}function $(e,t,n={}){let{throttle:r=0,trailing:i=!0,leading:a=!0,...o}=n;return W(e,t,{...o,eventFilter:D(r,i,a)})}let Nt=$;function Pt(e,t,n={}){let r;function i(){if(!r)return;let e=r;r=void 0,e()}function a(e){r=e}let o=(e,n)=>(i(),t(e,n,a)),s=Q(e,o,n),{ignoreUpdates:c}=s,l=()=>{let t;return c(()=>{t=o(Ft(e),It(e))}),t};return{...s,trigger:l}}function Ft(e){return(0,t.isReactive)(e)?e:Array.isArray(e)?e.map(e=>(0,t.toValue)(e)):(0,t.toValue)(e)}function It(e){return Array.isArray(e)?e.map(()=>void 0):void 0}function Lt(e,n,r){let i=(0,t.watch)(e,(e,a,o)=>{e&&(r!=null&&r.once&&(0,t.nextTick)(()=>i()),n(e,a,o))},{...r,once:!1});return i}e.assert=ae,e.autoResetRef=Ne,e.bypassFilter=T,e.camelize=we,e.clamp=ce,e.computedEager=l,e.computedWithControl=d,e.containsProp=A,e.controlledComputed=f,e.controlledRef=Be,e.createEventHook=m,e.createFilterWrapper=w,e.createGlobalState=h,e.createInjectionState=ee,e.createReactiveFn=ke,e.createRef=te,e.createSharedComposable=Te,e.createSingletonPromise=me,e.debounceFilter=E,e.debouncedRef=Pe,e.debouncedWatch=Ot,e.eagerComputed=u,e.extendRef=P,e.formatDate=Y,e.get=Ee,e.getLifeCycleTarget=N,e.hasOwn=ue,e.hyphenate=Se,e.identity=pe,e.ignorableWatch=At,e.increaseWithUnit=ge,e.injectLocal=_,e.invoke=he,e.isClient=y,e.isDef=re,e.isDefined=De,e.isIOS=de,e.isObject=b,e.isWorker=ne,e.makeDestructurable=Oe,e.noop=S,e.normalizeDate=X,e.notNullish=ie,e.now=se,e.objectEntries=be,e.objectOmit=ye,e.objectPick=ve,e.pausableFilter=O,e.pausableWatch=K,e.promiseTimeout=k,e.provideLocal=v,e.pxValue=_e,e.rand=le,e.reactify=F,e.reactifyObject=Ae,e.reactiveComputed=L,e.reactiveOmit=je,e.reactivePick=Me,e.refAutoReset=R,e.refDebounced=B,e.refDefault=Ie,e.refManualReset=Le,e.refThrottled=H,e.refWithControl=U,e.set=Ve,e.syncRef=He,e.syncRefs=Ue,e.throttleFilter=D,e.throttledRef=Re,e.throttledWatch=Nt,e.timestamp=x,e.toArray=j,e.toReactive=I,e.toRef=C,e.toRefs=We,e.tryOnBeforeMount=Ge,e.tryOnBeforeUnmount=Ke,e.tryOnMounted=qe,e.tryOnScopeDispose=p,e.tryOnUnmounted=Je,e.until=Ye,e.useArrayDifference=Ze,e.useArrayEvery=Qe,e.useArrayFilter=$e,e.useArrayFind=et,e.useArrayFindIndex=tt,e.useArrayFindLast=rt,e.useArrayIncludes=at,e.useArrayJoin=ot,e.useArrayMap=st,e.useArrayReduce=ct,e.useArraySome=lt,e.useArrayUnique=ft,e.useCounter=pt,e.useDateFormat=_t,e.useDebounce=Fe,e.useDebounceFn=z,e.useInterval=vt,e.useIntervalFn=Z,e.useLastChanged=yt,e.useThrottle=ze,e.useThrottleFn=V,e.useTimeout=xt,e.useTimeoutFn=bt,e.useToNumber=St,e.useToString=Ct,e.useToggle=wt,e.watchArray=Tt,e.watchAtMost=Et,e.watchDebounced=Dt,e.watchDeep=kt,e.watchIgnorable=Q,e.watchImmediate=jt,e.watchOnce=Mt,e.watchPausable=G,e.watchThrottled=$,e.watchTriggerable=Pt,e.watchWithFilter=W,e.whenever=Lt})(this.VueUse=this.VueUse||{},Vue);
|
|
1
|
+
(function(e,t){var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e};t=((e,t,i)=>(i=e==null?{}:n(o(e)),c(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)))(t);function l(e,n){var r;let i=(0,t.shallowRef)();return(0,t.watchEffect)(()=>{i.value=e()},{...n,flush:(r=n==null?void 0:n.flush)==null?`sync`:r}),(0,t.readonly)(i)}let u=l;function d(e,n,r={}){let i,a,o,s=!0,c=()=>{s=!0,o()};(0,t.watch)(e,c,{flush:`sync`,...r});let l=typeof n==`function`?n:n.get,u=typeof n==`function`?void 0:n.set,d=(0,t.customRef)((e,t)=>(a=e,o=t,{get(){return s&&(i=l(i),s=!1),a(),i},set(e){u==null||u(e)}}));return d.trigger=c,d}let f=d;function p(e,n){return(0,t.getCurrentScope)()?((0,t.onScopeDispose)(e,n),!0):!1}function m(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return p(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t))),clear:()=>{e.clear()}}}function h(e){let n=!1,r,i=(0,t.effectScope)(!0);return((...t)=>(n||(r=i.run(()=>e(...t)),n=!0),r))}let g=new WeakMap,_=(...e)=>{var n;let r=e[0],i=(n=(0,t.getCurrentInstance)())==null?void 0:n.proxy,a=i==null?(0,t.getCurrentScope)():i;if(a==null&&!(0,t.hasInjectionContext)())throw Error(`injectLocal must be called in setup`);return a&&g.has(a)&&r in g.get(a)?g.get(a)[r]:(0,t.inject)(...e)};function v(e,n){var r;let i=(r=(0,t.getCurrentInstance)())==null?void 0:r.proxy,a=i==null?(0,t.getCurrentScope)():i;if(a==null)throw Error(`provideLocal must be called in setup`);g.has(a)||g.set(a,Object.create(null));let o=g.get(a);return o[e]=n,(0,t.provide)(e,n)}function ee(e,t){let n=(t==null?void 0:t.injectionKey)||Symbol(e.name||`InjectionState`),r=t==null?void 0:t.defaultValue;return[(...t)=>{let r=e(...t);return v(n,r),r},()=>_(n,r)]}function te(e,n){return n===!0?(0,t.ref)(e):(0,t.shallowRef)(e)}let y=typeof window<`u`&&typeof document<`u`,ne=typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope,re=e=>e!==void 0,ie=e=>e!=null,ae=(e,...t)=>{e||console.warn(...t)},oe=Object.prototype.toString,b=e=>oe.call(e)===`[object Object]`,se=()=>Date.now(),x=()=>+Date.now(),ce=(e,t,n)=>Math.min(n,Math.max(t,e)),S=()=>{},le=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e),ue=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),de=fe();function fe(){var e,t,n;return y&&!!(!((e=window)==null||(e=e.navigator)==null)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)==null?void 0:n.navigator.userAgent))}function C(...e){if(e.length!==1)return(0,t.toRef)(...e);let n=e[0];return typeof n==`function`?(0,t.readonly)((0,t.customRef)(()=>({get:n,set:S}))):(0,t.ref)(n)}function w(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}let T=e=>e();function E(e,n={}){let r,i,a=S,o=e=>{clearTimeout(e),a(),a=S},s;return c=>{let l=(0,t.toValue)(e),u=(0,t.toValue)(n.maxWait);return r&&o(r),l<=0||u!==void 0&&u<=0?(i&&(o(i),i=void 0),Promise.resolve(c())):new Promise((e,t)=>{a=n.rejectOnCancel?t:e,s=c,u&&!i&&(i=setTimeout(()=>{r&&o(r),i=void 0,e(s())},u)),r=setTimeout(()=>{i&&o(i),i=void 0,e(c())},l)})}}function D(...e){let n=0,r,i=!0,a=S,o,s,c,l,u;!(0,t.isRef)(e[0])&&typeof e[0]==`object`?{delay:s,trailing:c=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[s,c=!0,l=!0,u=!1]=e;let d=()=>{r&&(clearTimeout(r),r=void 0,a(),a=S)};return e=>{let f=(0,t.toValue)(s),p=Date.now()-n,m=()=>o=e();return d(),f<=0?(n=Date.now(),m()):(p>f?(n=Date.now(),(l||!i)&&m()):c&&(o=new Promise((e,t)=>{a=u?t:e,r=setTimeout(()=>{n=Date.now(),i=!0,e(m()),d()},Math.max(0,f-p))})),!l&&!r&&(r=setTimeout(()=>i=!0,f)),i=!1,o)}}function O(e=T,n={}){let{initialState:r=`active`}=n,i=C(r===`active`);function a(){i.value=!1}function o(){i.value=!0}return{isActive:(0,t.readonly)(i),pause:a,resume:o,eventFilter:(...t)=>{i.value&&e(...t)}}}function k(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(()=>i(n),e):setTimeout(r,e)})}function pe(e){return e}function me(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function he(e){return e()}function A(e,...t){return t.some(t=>t in e)}function ge(e,t){var n;if(typeof e==`number`)return e+t;let r=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||``,i=e.slice(r.length),a=Number.parseFloat(r)+t;return Number.isNaN(a)?e:a+i}function _e(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function ve(e,t,n=!1){return t.reduce((t,r)=>(r in e&&(!n||e[r]!==void 0)&&(t[r]=e[r]),t),{})}function ye(e,t,n=!1){return Object.fromEntries(Object.entries(e).filter(([e,r])=>(!n||r!==void 0)&&!t.includes(e)))}function be(e){return Object.entries(e)}function j(e){return Array.isArray(e)?e:[e]}function M(e){let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))}let xe=/\B([A-Z])/g,Se=M(e=>e.replace(xe,`-$1`).toLowerCase()),Ce=/-(\w)/g,we=M(e=>e.replace(Ce,(e,t)=>t?t.toUpperCase():``));function N(e){return e||(0,t.getCurrentInstance)()}function Te(e){if(!y)return e;let n=0,r,i,a=()=>{--n,i&&n<=0&&(i.stop(),r=void 0,i=void 0)};return((...o)=>(n+=1,i||(i=(0,t.effectScope)(!0),r=i.run(()=>e(...o))),p(a),r))}function P(e,n,{enumerable:r=!1,unwrap:i=!0}={}){for(let[a,o]of Object.entries(n))a!==`value`&&((0,t.isRef)(o)&&i?Object.defineProperty(e,a,{get(){return o.value},set(e){o.value=e},enumerable:r}):Object.defineProperty(e,a,{value:o,enumerable:r}));return e}function Ee(e,n){return n==null?(0,t.unref)(e):(0,t.unref)(e)[n]}function De(e){return(0,t.unref)(e)!=null}function Oe(e,t){if(typeof Symbol<`u`){let n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}else return Object.assign([...t],e)}function F(e,n){let r=(n==null?void 0:n.computedGetter)===!1?t.unref:t.toValue;return function(...n){return(0,t.computed)(()=>e.apply(this,n.map(e=>r(e))))}}let ke=F;function Ae(e,t={}){let n=[],r;if(Array.isArray(t))n=t;else{r=t;let{includeOwnProperties:i=!0}=t;n.push(...Object.keys(e)),i&&n.push(...Object.getOwnPropertyNames(e))}return Object.fromEntries(n.map(t=>{let n=e[t];return[t,typeof n==`function`?F(n.bind(e),r):n]}))}function I(e){return(0,t.isRef)(e)?(0,t.reactive)(new Proxy({},{get(n,r,i){return(0,t.unref)(Reflect.get(e.value,r,i))},set(n,r,i){return(0,t.isRef)(e.value[r])&&!(0,t.isRef)(i)?e.value[r].value=i:e.value[r]=i,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):(0,t.reactive)(e)}function L(e){return I((0,t.computed)(e))}function je(e,...n){let r=n.flat(),i=r[0];return L(()=>typeof i==`function`?Object.fromEntries(Object.entries((0,t.toRefs)(e)).filter(([e,n])=>!i((0,t.toValue)(n),e))):Object.fromEntries(Object.entries((0,t.toRefs)(e)).filter(e=>!r.includes(e[0]))))}function Me(e,...n){let r=n.flat(),i=r[0];return L(()=>typeof i==`function`?Object.fromEntries(Object.entries((0,t.toRefs)(e)).filter(([e,n])=>i((0,t.toValue)(n),e))):Object.fromEntries(r.map(t=>[t,C(e,t)])))}function R(e,n=1e4){return(0,t.customRef)((r,i)=>{let a=(0,t.toValue)(e),o,s=()=>setTimeout(()=>{a=(0,t.toValue)(e),i()},(0,t.toValue)(n));return p(()=>{clearTimeout(o)}),{get(){return r(),a},set(e){a=e,i(),clearTimeout(o),o=s()}}})}let Ne=R;function z(e,t=200,n={}){return w(E(t,n),e)}function B(e,n=200,r={}){let i=(0,t.ref)((0,t.toValue)(e)),a=z(()=>{i.value=e.value},n,r);return(0,t.watch)(e,()=>a()),(0,t.shallowReadonly)(i)}let Pe=B,Fe=B;function Ie(e,n){return(0,t.computed)({get(){var t;return(t=e.value)==null?n:t},set(t){e.value=t}})}function Le(e){let n=(0,t.toValue)(e),r,i=()=>{n=(0,t.toValue)(e),r()},a=(0,t.customRef)((e,t)=>(r=t,{get(){return e(),n},set(e){n=e,r()}}));return a.reset=i,a}function V(e,t=200,n=!1,r=!0,i=!1){return w(D(t,n,r,i),e)}function H(e,n=200,r=!0,i=!0){if(n<=0)return e;let a=(0,t.ref)((0,t.toValue)(e)),o=V(()=>{a.value=e.value},n,r,i);return(0,t.watch)(e,()=>o()),a}let Re=H,ze=H;function U(e,n={}){let r=e,i,a,o=(0,t.customRef)((e,t)=>(i=e,a=t,{get(){return s()},set(e){c(e)}}));function s(e=!0){return e&&i(),r}function c(e,t=!0){var i,o;if(e===r)return;let s=r;((i=n.onBeforeChange)==null?void 0:i.call(n,e,s))!==!1&&(r=e,(o=n.onChanged)==null||o.call(n,e,s),t&&a())}return P(o,{get:s,set:c,untrackedGet:()=>s(!1),silentSet:e=>c(e,!1),peek:()=>s(!1),lay:e=>c(e,!1)},{enumerable:!0})}let Be=U;function Ve(...e){if(e.length===2){let[t,n]=e;t.value=n}if(e.length===3){let[t,n,r]=e;t[n]=r}}function W(e,n,r={}){let{eventFilter:i=T,...a}=r;return(0,t.watch)(e,w(i,n),a)}function G(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=O(r,{initialState:i});return{stop:W(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}let K=G;function He(e,t,...[n]){let{flush:r=`sync`,deep:i=!1,immediate:a=!0,direction:o=`both`,transform:s={}}=n||{},c=[],l=`ltr`in s&&s.ltr||(e=>e),u=`rtl`in s&&s.rtl||(e=>e);return(o===`both`||o===`ltr`)&&c.push(K(e,e=>{c.forEach(e=>e.pause()),t.value=l(e),c.forEach(e=>e.resume())},{flush:r,deep:i,immediate:a})),(o===`both`||o===`rtl`)&&c.push(K(t,t=>{c.forEach(e=>e.pause()),e.value=u(t),c.forEach(e=>e.resume())},{flush:r,deep:i,immediate:a})),()=>{c.forEach(e=>e.stop())}}function Ue(e,n,r={}){let{flush:i=`sync`,deep:a=!1,immediate:o=!0}=r,s=j(n);return(0,t.watch)(e,e=>s.forEach(t=>t.value=e),{flush:i,deep:a,immediate:o})}function We(e,n={}){if(!(0,t.isRef)(e))return(0,t.toRefs)(e);let r=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(let i in e.value)r[i]=(0,t.customRef)(()=>({get(){return e.value[i]},set(r){var a;if((a=(0,t.toValue)(n.replaceRef))==null||a)if(Array.isArray(e.value)){let t=[...e.value];t[i]=r,e.value=t}else{let t={...e.value,[i]:r};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}else e.value[i]=r}}));return r}function Ge(e,n=!0,r){N(r)?(0,t.onBeforeMount)(e,r):n?e():(0,t.nextTick)(e)}function Ke(e,n){N(n)&&(0,t.onBeforeUnmount)(e,n)}function qe(e,n=!0,r){N(r)?(0,t.onMounted)(e,r):n?e():(0,t.nextTick)(e)}function Je(e,n){N(n)&&(0,t.onUnmounted)(e,n)}function q(e,n=!1){function r(r,{flush:i=`sync`,deep:a=!1,timeout:o,throwOnTimeout:s}={}){let c=null,l=[new Promise(o=>{c=(0,t.watch)(e,e=>{r(e)!==n&&(c?c():(0,t.nextTick)(()=>c==null?void 0:c()),o(e))},{flush:i,deep:a,immediate:!0})})];return o!=null&&l.push(k(o,s).then(()=>(0,t.toValue)(e)).finally(()=>c==null?void 0:c())),Promise.race(l)}function i(i,a){if(!(0,t.isRef)(i))return r(e=>e===i,a);let{flush:o=`sync`,deep:s=!1,timeout:c,throwOnTimeout:l}=a==null?{}:a,u=null,d=[new Promise(r=>{u=(0,t.watch)([e,i],([e,i])=>{n!==(e===i)&&(u?u():(0,t.nextTick)(()=>u==null?void 0:u()),r(e))},{flush:o,deep:s,immediate:!0})})];return c!=null&&d.push(k(c,l).then(()=>(0,t.toValue)(e)).finally(()=>(u==null||u(),(0,t.toValue)(e)))),Promise.race(d)}function a(e){return r(e=>!!e,e)}function o(e){return i(null,e)}function s(e){return i(void 0,e)}function c(e){return r(Number.isNaN,e)}function l(e,n){return r(n=>{let r=Array.from(n);return r.includes(e)||r.includes((0,t.toValue)(e))},n)}function u(e){return d(1,e)}function d(e=1,t){let n=-1;return r(()=>(n+=1,n>=e),t)}return Array.isArray((0,t.toValue)(e))?{toMatch:r,toContains:l,changed:u,changedTimes:d,get not(){return q(e,!n)}}:{toMatch:r,toBe:i,toBeTruthy:a,toBeNull:o,toBeNaN:c,toBeUndefined:s,changed:u,changedTimes:d,get not(){return q(e,!n)}}}function Ye(e){return q(e)}function Xe(e,t){return e===t}function Ze(...e){var n,r;let i=e[0],a=e[1],o=(n=e[2])==null?Xe:n,{symmetric:s=!1}=(r=e[3])==null?{}:r;if(typeof o==`string`){let e=o;o=(t,n)=>t[e]===n[e]}let c=(0,t.computed)(()=>(0,t.toValue)(i).filter(e=>(0,t.toValue)(a).findIndex(t=>o(e,t))===-1));if(s){let e=(0,t.computed)(()=>(0,t.toValue)(a).filter(e=>(0,t.toValue)(i).findIndex(t=>o(e,t))===-1));return(0,t.computed)(()=>s?[...(0,t.toValue)(c),...(0,t.toValue)(e)]:(0,t.toValue)(c))}else return c}function Qe(e,n){return(0,t.computed)(()=>(0,t.toValue)(e).every((e,r,i)=>n((0,t.toValue)(e),r,i)))}function $e(e,n){return(0,t.computed)(()=>(0,t.toValue)(e).map(e=>(0,t.toValue)(e)).filter(n))}function et(e,n){return(0,t.computed)(()=>(0,t.toValue)((0,t.toValue)(e).find((e,r,i)=>n((0,t.toValue)(e),r,i))))}function tt(e,n){return(0,t.computed)(()=>(0,t.toValue)(e).findIndex((e,r,i)=>n((0,t.toValue)(e),r,i)))}function nt(e,t){let n=e.length;for(;n-- >0;)if(t(e[n],n,e))return e[n]}function rt(e,n){return(0,t.computed)(()=>(0,t.toValue)(Array.prototype.findLast?(0,t.toValue)(e).findLast((e,r,i)=>n((0,t.toValue)(e),r,i)):nt((0,t.toValue)(e),(e,r,i)=>n((0,t.toValue)(e),r,i))))}function it(e){return b(e)&&A(e,`formIndex`,`comparator`)}function at(...e){var n;let r=e[0],i=e[1],a=e[2],o=0;if(it(a)){var s;o=(s=a.fromIndex)==null?0:s,a=a.comparator}if(typeof a==`string`){let e=a;a=(n,r)=>n[e]===(0,t.toValue)(r)}return a=(n=a)==null?((e,n)=>e===(0,t.toValue)(n)):n,(0,t.computed)(()=>(0,t.toValue)(r).slice(o).some((e,n,r)=>a((0,t.toValue)(e),(0,t.toValue)(i),n,(0,t.toValue)(r))))}function ot(e,n){return(0,t.computed)(()=>(0,t.toValue)(e).map(e=>(0,t.toValue)(e)).join((0,t.toValue)(n)))}function st(e,n){return(0,t.computed)(()=>(0,t.toValue)(e).map(e=>(0,t.toValue)(e)).map(n))}function ct(e,n,...r){let i=(e,r,i)=>n((0,t.toValue)(e),(0,t.toValue)(r),i);return(0,t.computed)(()=>{let n=(0,t.toValue)(e);return r.length?n.reduce(i,typeof r[0]==`function`?(0,t.toValue)(r[0]()):(0,t.toValue)(r[0])):n.reduce(i)})}function lt(e,n){return(0,t.computed)(()=>(0,t.toValue)(e).some((e,r,i)=>n((0,t.toValue)(e),r,i)))}function ut(e){return Array.from(new Set(e))}function dt(e,t){return e.reduce((n,r)=>(n.some(n=>t(r,n,e))||n.push(r),n),[])}function ft(e,n){return(0,t.computed)(()=>{let r=(0,t.toValue)(e).map(e=>(0,t.toValue)(e));return n?dt(r,n):ut(r)})}function pt(e=0,n={}){let r=(0,t.unref)(e),i=(0,t.shallowRef)(e),{max:a=1/0,min:o=-1/0}=n,s=(e=1)=>i.value=Math.max(Math.min(a,i.value+e),o),c=(e=1)=>i.value=Math.min(Math.max(o,i.value-e),a),l=()=>i.value,u=e=>i.value=Math.max(o,Math.min(a,e));return{count:(0,t.shallowReadonly)(i),inc:s,dec:c,get:l,set:u,reset:(e=r)=>(r=e,u(e))}}let mt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,ht=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|z{1,4}|SSS/g;function gt(e,t,n,r){let i=e<12?`AM`:`PM`;return r&&(i=i.split(``).reduce((e,t)=>e+=`${t}.`,``)),n?i.toLowerCase():i}function J(e){let t=[`th`,`st`,`nd`,`rd`],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function Y(e,n,r={}){var i;let a=e.getFullYear(),o=e.getMonth(),s=e.getDate(),c=e.getHours(),l=e.getMinutes(),u=e.getSeconds(),d=e.getMilliseconds(),f=e.getDay(),p=(i=r.customMeridiem)==null?gt:i,m=e=>{var t;return(t=e.split(` `)[1])==null?``:t},h={Yo:()=>J(a),YY:()=>String(a).slice(-2),YYYY:()=>a,M:()=>o+1,Mo:()=>J(o+1),MM:()=>`${o+1}`.padStart(2,`0`),MMM:()=>e.toLocaleDateString((0,t.toValue)(r.locales),{month:`short`}),MMMM:()=>e.toLocaleDateString((0,t.toValue)(r.locales),{month:`long`}),D:()=>String(s),Do:()=>J(s),DD:()=>`${s}`.padStart(2,`0`),H:()=>String(c),Ho:()=>J(c),HH:()=>`${c}`.padStart(2,`0`),h:()=>`${c%12||12}`.padStart(1,`0`),ho:()=>J(c%12||12),hh:()=>`${c%12||12}`.padStart(2,`0`),m:()=>String(l),mo:()=>J(l),mm:()=>`${l}`.padStart(2,`0`),s:()=>String(u),so:()=>J(u),ss:()=>`${u}`.padStart(2,`0`),SSS:()=>`${d}`.padStart(3,`0`),d:()=>f,dd:()=>e.toLocaleDateString((0,t.toValue)(r.locales),{weekday:`narrow`}),ddd:()=>e.toLocaleDateString((0,t.toValue)(r.locales),{weekday:`short`}),dddd:()=>e.toLocaleDateString((0,t.toValue)(r.locales),{weekday:`long`}),A:()=>p(c,l),AA:()=>p(c,l,!1,!0),a:()=>p(c,l,!0),aa:()=>p(c,l,!0,!0),z:()=>m(e.toLocaleDateString((0,t.toValue)(r.locales),{timeZoneName:`shortOffset`})),zz:()=>m(e.toLocaleDateString((0,t.toValue)(r.locales),{timeZoneName:`shortOffset`})),zzz:()=>m(e.toLocaleDateString((0,t.toValue)(r.locales),{timeZoneName:`shortOffset`})),zzzz:()=>m(e.toLocaleDateString((0,t.toValue)(r.locales),{timeZoneName:`longOffset`}))};return n.replace(ht,(e,t)=>{var n,r;return(n=t==null?(r=h[e])==null?void 0:r.call(h):t)==null?e:n})}function X(e){if(e===null)return new Date(NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e==`string`&&!/Z$/i.test(e)){let t=e.match(mt);if(t){let e=t[2]-1||0,n=(t[7]||`0`).substring(0,3);return new Date(t[1],e,t[3]||1,t[4]||0,t[5]||0,t[6]||0,n)}}return new Date(e)}function _t(e,n=`HH:mm:ss`,r={}){return(0,t.computed)(()=>Y(X((0,t.toValue)(e)),(0,t.toValue)(n),r))}function Z(e,n=1e3,r={}){let{immediate:i=!0,immediateCallback:a=!1}=r,o=null,s=(0,t.shallowRef)(!1);function c(){o&&(clearInterval(o),o=null)}function l(){s.value=!1,c()}function u(){let r=(0,t.toValue)(n);r<=0||(s.value=!0,a&&e(),c(),s.value&&(o=setInterval(e,r)))}return i&&y&&u(),((0,t.isRef)(n)||typeof n==`function`)&&p((0,t.watch)(n,()=>{s.value&&y&&u()})),p(l),{isActive:(0,t.shallowReadonly)(s),pause:l,resume:u}}function vt(e=1e3,n={}){let{controls:r=!1,immediate:i=!0,callback:a}=n,o=(0,t.shallowRef)(0),s=()=>o.value+=1,c=()=>{o.value=0},l=Z(a?()=>{s(),a(o.value)}:s,e,{immediate:i});return r?{counter:(0,t.shallowReadonly)(o),reset:c,...l}:(0,t.shallowReadonly)(o)}function yt(e,n={}){var r;let i=(0,t.shallowRef)((r=n.initialValue)==null?null:r);return(0,t.watch)(e,()=>i.value=x(),n),(0,t.shallowReadonly)(i)}function bt(e,n,r={}){let{immediate:i=!0,immediateCallback:a=!1}=r,o=(0,t.shallowRef)(!1),s;function c(){s&&(clearTimeout(s),s=void 0)}function l(){o.value=!1,c()}function u(...r){a&&e(),c(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=void 0,e(...r)},(0,t.toValue)(n))}return i&&(o.value=!0,y&&u()),p(l),{isPending:(0,t.shallowReadonly)(o),start:u,stop:l}}function xt(e=1e3,n={}){let{controls:r=!1,callback:i}=n,a=bt(i==null?S:i,e,n),o=(0,t.computed)(()=>!a.isPending.value);return r?{ready:o,...a}:o}function St(e,n={}){let{method:r=`parseFloat`,radix:i,nanToZero:a}=n;return(0,t.computed)(()=>{let n=(0,t.toValue)(e);return typeof r==`function`?n=r(n):typeof n==`string`&&(n=Number[r](n,i)),a&&Number.isNaN(n)&&(n=0),n})}function Ct(e){return(0,t.computed)(()=>`${(0,t.toValue)(e)}`)}function wt(e=!1,n={}){let{truthyValue:r=!0,falsyValue:i=!1}=n,a=(0,t.isRef)(e),o=(0,t.shallowRef)(e);function s(e){if(arguments.length)return o.value=e,o.value;{let e=(0,t.toValue)(r);return o.value=o.value===e?(0,t.toValue)(i):e,o.value}}return a?s:[o,s]}function Tt(e,n,r){let i=r!=null&&r.immediate?[]:[...typeof e==`function`?e():Array.isArray(e)?e:(0,t.toValue)(e)];return(0,t.watch)(e,(e,t,r)=>{let a=Array.from({length:i.length}),o=[];for(let t of e){let e=!1;for(let n=0;n<i.length;n++)if(!a[n]&&t===i[n]){a[n]=!0,e=!0;break}e||o.push(t)}let s=i.filter((e,t)=>!a[t]);n(e,i,o,s,r),i=[...e]},r)}function Et(e,n,r){let{count:i,...a}=r,o=(0,t.shallowRef)(0),{stop:s,resume:c,pause:l}=W(e,(...e)=>{o.value+=1,o.value>=(0,t.toValue)(i)&&(0,t.nextTick)(()=>s()),n(...e)},a);return{count:o,stop:s,resume:c,pause:l}}function Dt(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return W(e,t,{...a,eventFilter:E(r,{maxWait:i})})}let Ot=Dt;function kt(e,n,r){return(0,t.watch)(e,n,{...r,deep:!0})}function Q(e,n,r={}){let{eventFilter:i=T,...a}=r,o=w(i,n),s,c,l;if(a.flush===`sync`){let n=!1;c=()=>{},s=e=>{n=!0,e(),n=!1},l=(0,t.watch)(e,(...e)=>{n||o(...e)},a)}else{let n=[],r=0,i=0;c=()=>{r=i},n.push((0,t.watch)(e,()=>{i++},{...a,flush:`sync`})),s=e=>{let t=i;e(),r+=i-t},n.push((0,t.watch)(e,(...e)=>{let t=r>0&&r===i;r=0,i=0,!t&&o(...e)},a)),l=()=>{n.forEach(e=>e())}}return{stop:l,ignoreUpdates:s,ignorePrevAsyncUpdates:c}}let At=Q;function jt(e,n,r){return(0,t.watch)(e,n,{...r,immediate:!0})}function Mt(e,n,r){return(0,t.watch)(e,n,{...r,once:!0})}function $(e,t,n={}){let{throttle:r=0,trailing:i=!0,leading:a=!0,...o}=n;return W(e,t,{...o,eventFilter:D(r,i,a)})}let Nt=$;function Pt(e,t,n={}){let r;function i(){if(!r)return;let e=r;r=void 0,e()}function a(e){r=e}let o=(e,n)=>(i(),t(e,n,a)),s=Q(e,o,n),{ignoreUpdates:c}=s,l=()=>{let t;return c(()=>{t=o(Ft(e),It(e))}),t};return{...s,trigger:l}}function Ft(e){return(0,t.isReactive)(e)?e:Array.isArray(e)?e.map(e=>(0,t.toValue)(e)):(0,t.toValue)(e)}function It(e){return Array.isArray(e)?e.map(()=>void 0):void 0}function Lt(e,n,r){let i=(0,t.watch)(e,(e,a,o)=>{e&&(r!=null&&r.once&&(0,t.nextTick)(()=>i()),n(e,a,o))},{...r,once:!1});return i}e.assert=ae,e.autoResetRef=Ne,e.bypassFilter=T,e.camelize=we,e.clamp=ce,e.computedEager=l,e.computedWithControl=d,e.containsProp=A,e.controlledComputed=f,e.controlledRef=Be,e.createEventHook=m,e.createFilterWrapper=w,e.createGlobalState=h,e.createInjectionState=ee,e.createReactiveFn=ke,e.createRef=te,e.createSharedComposable=Te,e.createSingletonPromise=me,e.debounceFilter=E,e.debouncedRef=Pe,e.debouncedWatch=Ot,e.eagerComputed=u,e.extendRef=P,e.formatDate=Y,e.get=Ee,e.getLifeCycleTarget=N,e.hasOwn=ue,e.hyphenate=Se,e.identity=pe,e.ignorableWatch=At,e.increaseWithUnit=ge,e.injectLocal=_,e.invoke=he,e.isClient=y,e.isDef=re,e.isDefined=De,e.isIOS=de,e.isObject=b,e.isWorker=ne,e.makeDestructurable=Oe,e.noop=S,e.normalizeDate=X,e.notNullish=ie,e.now=se,e.objectEntries=be,e.objectOmit=ye,e.objectPick=ve,e.pausableFilter=O,e.pausableWatch=K,e.promiseTimeout=k,e.provideLocal=v,e.pxValue=_e,e.rand=le,e.reactify=F,e.reactifyObject=Ae,e.reactiveComputed=L,e.reactiveOmit=je,e.reactivePick=Me,e.refAutoReset=R,e.refDebounced=B,e.refDefault=Ie,e.refManualReset=Le,e.refThrottled=H,e.refWithControl=U,e.set=Ve,e.syncRef=He,e.syncRefs=Ue,e.throttleFilter=D,e.throttledRef=Re,e.throttledWatch=Nt,e.timestamp=x,e.toArray=j,e.toReactive=I,e.toRef=C,e.toRefs=We,e.tryOnBeforeMount=Ge,e.tryOnBeforeUnmount=Ke,e.tryOnMounted=qe,e.tryOnScopeDispose=p,e.tryOnUnmounted=Je,e.until=Ye,e.useArrayDifference=Ze,e.useArrayEvery=Qe,e.useArrayFilter=$e,e.useArrayFind=et,e.useArrayFindIndex=tt,e.useArrayFindLast=rt,e.useArrayIncludes=at,e.useArrayJoin=ot,e.useArrayMap=st,e.useArrayReduce=ct,e.useArraySome=lt,e.useArrayUnique=ft,e.useCounter=pt,e.useDateFormat=_t,e.useDebounce=Fe,e.useDebounceFn=z,e.useInterval=vt,e.useIntervalFn=Z,e.useLastChanged=yt,e.useThrottle=ze,e.useThrottleFn=V,e.useTimeout=xt,e.useTimeoutFn=bt,e.useToNumber=St,e.useToString=Ct,e.useToggle=wt,e.watchArray=Tt,e.watchAtMost=Et,e.watchDebounced=Dt,e.watchDeep=kt,e.watchIgnorable=Q,e.watchImmediate=jt,e.watchOnce=Mt,e.watchPausable=G,e.watchThrottled=$,e.watchTriggerable=Pt,e.watchWithFilter=W,e.whenever=Lt})(this.VueUse=this.VueUse||{},Vue);
|
package/dist/index.js
CHANGED
|
@@ -262,7 +262,7 @@ const hasOwn = (val, key) => Object.prototype.hasOwnProperty.call(val, key);
|
|
|
262
262
|
const isIOS = /* @__PURE__ */ getIsIOS();
|
|
263
263
|
function getIsIOS() {
|
|
264
264
|
var _window, _window2, _window3;
|
|
265
|
-
return isClient && ((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.maxTouchPoints) > 2 && /iPad|Macintosh/.test((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.navigator.userAgent));
|
|
265
|
+
return isClient && !!((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.maxTouchPoints) > 2 && /iPad|Macintosh/.test((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.navigator.userAgent));
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
//#endregion
|