@vue/reactivity 3.5.0-alpha.5 → 3.5.0-beta.1

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/reactivity v3.5.0-alpha.5
2
+ * @vue/reactivity v3.5.0-beta.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -29,6 +29,7 @@ class EffectScope {
29
29
  * @internal
30
30
  */
31
31
  this.cleanups = [];
32
+ this._isPaused = false;
32
33
  this.parent = activeEffectScope;
33
34
  if (!detached && activeEffectScope) {
34
35
  this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
@@ -39,6 +40,37 @@ class EffectScope {
39
40
  get active() {
40
41
  return this._active;
41
42
  }
43
+ pause() {
44
+ if (this._active) {
45
+ this._isPaused = true;
46
+ if (this.scopes) {
47
+ for (let i = 0, l = this.scopes.length; i < l; i++) {
48
+ this.scopes[i].pause();
49
+ }
50
+ }
51
+ for (let i = 0, l = this.effects.length; i < l; i++) {
52
+ this.effects[i].pause();
53
+ }
54
+ }
55
+ }
56
+ /**
57
+ * Resumes the effect scope, including all child scopes and effects.
58
+ */
59
+ resume() {
60
+ if (this._active) {
61
+ if (this._isPaused) {
62
+ this._isPaused = false;
63
+ if (this.scopes) {
64
+ for (let i = 0, l = this.scopes.length; i < l; i++) {
65
+ this.scopes[i].resume();
66
+ }
67
+ }
68
+ for (let i = 0, l = this.effects.length; i < l; i++) {
69
+ this.effects[i].resume();
70
+ }
71
+ }
72
+ }
73
+ }
42
74
  run(fn) {
43
75
  if (this._active) {
44
76
  const currentEffectScope = activeEffectScope;
@@ -123,8 +155,11 @@ const EffectFlags = {
123
155
  "ALLOW_RECURSE": 32,
124
156
  "32": "ALLOW_RECURSE",
125
157
  "NO_BATCH": 64,
126
- "64": "NO_BATCH"
158
+ "64": "NO_BATCH",
159
+ "PAUSED": 128,
160
+ "128": "PAUSED"
127
161
  };
162
+ const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
128
163
  class ReactiveEffect {
129
164
  constructor(fn) {
130
165
  this.fn = fn;
@@ -153,6 +188,18 @@ class ReactiveEffect {
153
188
  activeEffectScope.effects.push(this);
154
189
  }
155
190
  }
191
+ pause() {
192
+ this.flags |= 128;
193
+ }
194
+ resume() {
195
+ if (this.flags & 128) {
196
+ this.flags &= ~128;
197
+ if (pausedQueueEffects.has(this)) {
198
+ pausedQueueEffects.delete(this);
199
+ this.trigger();
200
+ }
201
+ }
202
+ }
156
203
  /**
157
204
  * @internal
158
205
  */
@@ -206,7 +253,9 @@ class ReactiveEffect {
206
253
  }
207
254
  }
208
255
  trigger() {
209
- if (this.scheduler) {
256
+ if (this.flags & 128) {
257
+ pausedQueueEffects.add(this);
258
+ } else if (this.scheduler) {
210
259
  this.scheduler();
211
260
  } else {
212
261
  this.runIfDirty();
@@ -539,9 +588,15 @@ function addSub(link) {
539
588
  link.dep.subs = link;
540
589
  }
541
590
  const targetMap = /* @__PURE__ */ new WeakMap();
542
- const ITERATE_KEY = Symbol("Object iterate" );
543
- const MAP_KEY_ITERATE_KEY = Symbol("Map keys iterate" );
544
- const ARRAY_ITERATE_KEY = Symbol("Array iterate" );
591
+ const ITERATE_KEY = Symbol(
592
+ "Object iterate"
593
+ );
594
+ const MAP_KEY_ITERATE_KEY = Symbol(
595
+ "Map keys iterate"
596
+ );
597
+ const ARRAY_ITERATE_KEY = Symbol(
598
+ "Array iterate"
599
+ );
545
600
  function track(target, type, key) {
546
601
  if (shouldTrack && activeSub) {
547
602
  let depsMap = targetMap.get(target);
@@ -831,7 +886,7 @@ class BaseReactiveHandler {
831
886
  return isShallow2;
832
887
  } else if (key === "__v_raw") {
833
888
  if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
834
- // this means the reciever is a user proxy of the reactive proxy
889
+ // this means the receiver is a user proxy of the reactive proxy
835
890
  Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
836
891
  return target;
837
892
  }
@@ -955,9 +1010,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
955
1010
  }
956
1011
  const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
957
1012
  const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
958
- const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(
959
- true
960
- );
1013
+ const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
961
1014
  const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
962
1015
 
963
1016
  const toShallow = (value) => value;
@@ -1452,13 +1505,14 @@ function proxyRefs(objectWithRefs) {
1452
1505
  class CustomRefImpl {
1453
1506
  constructor(factory) {
1454
1507
  this["__v_isRef"] = true;
1508
+ this._value = void 0;
1455
1509
  const dep = this.dep = new Dep();
1456
1510
  const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep));
1457
1511
  this._get = get;
1458
1512
  this._set = set;
1459
1513
  }
1460
1514
  get value() {
1461
- return this._get();
1515
+ return this._value = this._get();
1462
1516
  }
1463
1517
  set value(newVal) {
1464
1518
  this._set(newVal);
@@ -1483,10 +1537,11 @@ class ObjectRefImpl {
1483
1537
  this._key = _key;
1484
1538
  this._defaultValue = _defaultValue;
1485
1539
  this["__v_isRef"] = true;
1540
+ this._value = void 0;
1486
1541
  }
1487
1542
  get value() {
1488
1543
  const val = this._object[this._key];
1489
- return val === void 0 ? this._defaultValue : val;
1544
+ return this._value = val === void 0 ? this._defaultValue : val;
1490
1545
  }
1491
1546
  set value(newVal) {
1492
1547
  this._object[this._key] = newVal;
@@ -1500,9 +1555,10 @@ class GetterRefImpl {
1500
1555
  this._getter = _getter;
1501
1556
  this["__v_isRef"] = true;
1502
1557
  this["__v_isReadonly"] = true;
1558
+ this._value = void 0;
1503
1559
  }
1504
1560
  get value() {
1505
- return this._getter();
1561
+ return this._value = this._getter();
1506
1562
  }
1507
1563
  }
1508
1564
  function toRef(source, key, defaultValue) {
@@ -1536,7 +1592,8 @@ class ComputedRefImpl {
1536
1592
  /**
1537
1593
  * @internal
1538
1594
  */
1539
- this["__v_isRef"] = true;
1595
+ this.__v_isRef = true;
1596
+ // TODO isolatedDeclarations "__v_isReadonly"
1540
1597
  // A computed is also a subscriber that tracks other deps
1541
1598
  /**
1542
1599
  * @internal
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/reactivity v3.5.0-alpha.5
2
+ * @vue/reactivity v3.5.0-beta.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -25,6 +25,7 @@ class EffectScope {
25
25
  * @internal
26
26
  */
27
27
  this.cleanups = [];
28
+ this._isPaused = false;
28
29
  this.parent = activeEffectScope;
29
30
  if (!detached && activeEffectScope) {
30
31
  this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
@@ -35,6 +36,37 @@ class EffectScope {
35
36
  get active() {
36
37
  return this._active;
37
38
  }
39
+ pause() {
40
+ if (this._active) {
41
+ this._isPaused = true;
42
+ if (this.scopes) {
43
+ for (let i = 0, l = this.scopes.length; i < l; i++) {
44
+ this.scopes[i].pause();
45
+ }
46
+ }
47
+ for (let i = 0, l = this.effects.length; i < l; i++) {
48
+ this.effects[i].pause();
49
+ }
50
+ }
51
+ }
52
+ /**
53
+ * Resumes the effect scope, including all child scopes and effects.
54
+ */
55
+ resume() {
56
+ if (this._active) {
57
+ if (this._isPaused) {
58
+ this._isPaused = false;
59
+ if (this.scopes) {
60
+ for (let i = 0, l = this.scopes.length; i < l; i++) {
61
+ this.scopes[i].resume();
62
+ }
63
+ }
64
+ for (let i = 0, l = this.effects.length; i < l; i++) {
65
+ this.effects[i].resume();
66
+ }
67
+ }
68
+ }
69
+ }
38
70
  run(fn) {
39
71
  if (this._active) {
40
72
  const currentEffectScope = activeEffectScope;
@@ -113,8 +145,11 @@ const EffectFlags = {
113
145
  "ALLOW_RECURSE": 32,
114
146
  "32": "ALLOW_RECURSE",
115
147
  "NO_BATCH": 64,
116
- "64": "NO_BATCH"
148
+ "64": "NO_BATCH",
149
+ "PAUSED": 128,
150
+ "128": "PAUSED"
117
151
  };
152
+ const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
118
153
  class ReactiveEffect {
119
154
  constructor(fn) {
120
155
  this.fn = fn;
@@ -143,6 +178,18 @@ class ReactiveEffect {
143
178
  activeEffectScope.effects.push(this);
144
179
  }
145
180
  }
181
+ pause() {
182
+ this.flags |= 128;
183
+ }
184
+ resume() {
185
+ if (this.flags & 128) {
186
+ this.flags &= ~128;
187
+ if (pausedQueueEffects.has(this)) {
188
+ pausedQueueEffects.delete(this);
189
+ this.trigger();
190
+ }
191
+ }
192
+ }
146
193
  /**
147
194
  * @internal
148
195
  */
@@ -191,7 +238,9 @@ class ReactiveEffect {
191
238
  }
192
239
  }
193
240
  trigger() {
194
- if (this.scheduler) {
241
+ if (this.flags & 128) {
242
+ pausedQueueEffects.add(this);
243
+ } else if (this.scheduler) {
195
244
  this.scheduler();
196
245
  } else {
197
246
  this.runIfDirty();
@@ -491,9 +540,15 @@ function addSub(link) {
491
540
  link.dep.subs = link;
492
541
  }
493
542
  const targetMap = /* @__PURE__ */ new WeakMap();
494
- const ITERATE_KEY = Symbol("");
495
- const MAP_KEY_ITERATE_KEY = Symbol("");
496
- const ARRAY_ITERATE_KEY = Symbol("");
543
+ const ITERATE_KEY = Symbol(
544
+ ""
545
+ );
546
+ const MAP_KEY_ITERATE_KEY = Symbol(
547
+ ""
548
+ );
549
+ const ARRAY_ITERATE_KEY = Symbol(
550
+ ""
551
+ );
497
552
  function track(target, type, key) {
498
553
  if (shouldTrack && activeSub) {
499
554
  let depsMap = targetMap.get(target);
@@ -772,7 +827,7 @@ class BaseReactiveHandler {
772
827
  return isShallow2;
773
828
  } else if (key === "__v_raw") {
774
829
  if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
775
- // this means the reciever is a user proxy of the reactive proxy
830
+ // this means the receiver is a user proxy of the reactive proxy
776
831
  Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
777
832
  return target;
778
833
  }
@@ -884,9 +939,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
884
939
  }
885
940
  const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
886
941
  const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
887
- const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(
888
- true
889
- );
942
+ const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
890
943
  const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
891
944
 
892
945
  const toShallow = (value) => value;
@@ -1338,13 +1391,14 @@ function proxyRefs(objectWithRefs) {
1338
1391
  class CustomRefImpl {
1339
1392
  constructor(factory) {
1340
1393
  this["__v_isRef"] = true;
1394
+ this._value = void 0;
1341
1395
  const dep = this.dep = new Dep();
1342
1396
  const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep));
1343
1397
  this._get = get;
1344
1398
  this._set = set;
1345
1399
  }
1346
1400
  get value() {
1347
- return this._get();
1401
+ return this._value = this._get();
1348
1402
  }
1349
1403
  set value(newVal) {
1350
1404
  this._set(newVal);
@@ -1366,10 +1420,11 @@ class ObjectRefImpl {
1366
1420
  this._key = _key;
1367
1421
  this._defaultValue = _defaultValue;
1368
1422
  this["__v_isRef"] = true;
1423
+ this._value = void 0;
1369
1424
  }
1370
1425
  get value() {
1371
1426
  const val = this._object[this._key];
1372
- return val === void 0 ? this._defaultValue : val;
1427
+ return this._value = val === void 0 ? this._defaultValue : val;
1373
1428
  }
1374
1429
  set value(newVal) {
1375
1430
  this._object[this._key] = newVal;
@@ -1383,9 +1438,10 @@ class GetterRefImpl {
1383
1438
  this._getter = _getter;
1384
1439
  this["__v_isRef"] = true;
1385
1440
  this["__v_isReadonly"] = true;
1441
+ this._value = void 0;
1386
1442
  }
1387
1443
  get value() {
1388
- return this._getter();
1444
+ return this._value = this._getter();
1389
1445
  }
1390
1446
  }
1391
1447
  function toRef(source, key, defaultValue) {
@@ -1419,7 +1475,8 @@ class ComputedRefImpl {
1419
1475
  /**
1420
1476
  * @internal
1421
1477
  */
1422
- this["__v_isRef"] = true;
1478
+ this.__v_isRef = true;
1479
+ // TODO isolatedDeclarations "__v_isReadonly"
1423
1480
  // A computed is also a subscriber that tracks other deps
1424
1481
  /**
1425
1482
  * @internal
@@ -22,8 +22,8 @@ export declare enum ReactiveFlags {
22
22
 
23
23
  export type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRefSimple<T>;
24
24
  declare const ReactiveMarkerSymbol: unique symbol;
25
- export declare class ReactiveMarker {
26
- private [ReactiveMarkerSymbol]?;
25
+ export interface ReactiveMarker {
26
+ [ReactiveMarkerSymbol]?: void;
27
27
  }
28
28
  export type Reactive<T> = UnwrapNestedRefs<T> & (T extends readonly any[] ? ReactiveMarker : {});
29
29
  /**
@@ -278,7 +278,8 @@ export declare enum EffectFlags {
278
278
  NOTIFIED = 8,
279
279
  DIRTY = 16,
280
280
  ALLOW_RECURSE = 32,
281
- NO_BATCH = 64
281
+ NO_BATCH = 64,
282
+ PAUSED = 128
282
283
  }
283
284
  /**
284
285
  * Subscriber is a type that tracks (or subscribes to) a list of deps.
@@ -292,6 +293,8 @@ export declare class ReactiveEffect<T = any> implements Subscriber, ReactiveEffe
292
293
  onTrack?: (event: DebuggerEvent) => void;
293
294
  onTrigger?: (event: DebuggerEvent) => void;
294
295
  constructor(fn: () => T);
296
+ pause(): void;
297
+ resume(): void;
295
298
  run(): T;
296
299
  stop(): void;
297
300
  trigger(): void;
@@ -343,7 +346,7 @@ export interface ComputedRef<T = any> extends WritableComputedRef<T> {
343
346
  readonly value: T;
344
347
  [ComputedRefSymbol]: true;
345
348
  }
346
- export interface WritableComputedRef<T> extends Ref<T> {
349
+ export interface WritableComputedRef<T, S = T> extends Ref<T, S> {
347
350
  /**
348
351
  * @deprecated computed no longer uses effect
349
352
  */
@@ -351,9 +354,9 @@ export interface WritableComputedRef<T> extends Ref<T> {
351
354
  }
352
355
  export type ComputedGetter<T> = (oldValue?: T) => T;
353
356
  export type ComputedSetter<T> = (newValue: T) => void;
354
- export interface WritableComputedOptions<T> {
357
+ export interface WritableComputedOptions<T, S = T> {
355
358
  get: ComputedGetter<T>;
356
- set: ComputedSetter<T>;
359
+ set: ComputedSetter<S>;
357
360
  }
358
361
  /**
359
362
  * @private exported by @vue/reactivity for Vue core use, but not exported from
@@ -366,8 +369,8 @@ export declare class ComputedRefImpl<T = any> implements Subscriber {
366
369
  onTrack?: (event: DebuggerEvent) => void;
367
370
  onTrigger?: (event: DebuggerEvent) => void;
368
371
  constructor(fn: ComputedGetter<T>, setter: ComputedSetter<T> | undefined, isSSR: boolean);
369
- get value(): any;
370
- set value(newValue: any);
372
+ get value(): T;
373
+ set value(newValue: T);
371
374
  }
372
375
  /**
373
376
  * Takes a getter function and returns a readonly reactive ref object for the
@@ -403,7 +406,7 @@ export declare class ComputedRefImpl<T = any> implements Subscriber {
403
406
  * @see {@link https://vuejs.org/api/reactivity-core.html#computed}
404
407
  */
405
408
  export declare function computed<T>(getter: ComputedGetter<T>, debugOptions?: DebuggerOptions): ComputedRef<T>;
406
- export declare function computed<T>(options: WritableComputedOptions<T>, debugOptions?: DebuggerOptions): WritableComputedRef<T>;
409
+ export declare function computed<T, S = T>(options: WritableComputedOptions<T, S>, debugOptions?: DebuggerOptions): WritableComputedRef<T, S>;
407
410
 
408
411
  declare const RefSymbol: unique symbol;
409
412
  declare const RawSymbol: unique symbol;
@@ -431,7 +434,7 @@ export declare function isRef<T>(r: Ref<T> | unknown): r is Ref<T>;
431
434
  * @param value - The object to wrap in the ref.
432
435
  * @see {@link https://vuejs.org/api/reactivity-core.html#ref}
433
436
  */
434
- export declare function ref<T>(value: T): Ref<UnwrapRef<T>, UnwrapRef<T> | T>;
437
+ export declare function ref<T>(value: T): [T] extends [Ref] ? IfAny<T, Ref<T>, T> : Ref<UnwrapRef<T>, UnwrapRef<T> | T>;
435
438
  export declare function ref<T = any>(): Ref<T | undefined>;
436
439
  declare const ShallowRefMarker: unique symbol;
437
440
  export type ShallowRef<T = any> = Ref<T> & {
@@ -482,8 +485,8 @@ export declare function shallowRef<T = any>(): ShallowRef<T | undefined>;
482
485
  * @see {@link https://vuejs.org/api/reactivity-advanced.html#triggerref}
483
486
  */
484
487
  export declare function triggerRef(ref: Ref): void;
485
- export type MaybeRef<T = any> = T | Ref<T>;
486
- export type MaybeRefOrGetter<T = any> = MaybeRef<T> | (() => T);
488
+ export type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>;
489
+ export type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T);
487
490
  /**
488
491
  * Returns the inner value if the argument is a ref, otherwise return the
489
492
  * argument itself. This is a sugar function for
@@ -500,7 +503,7 @@ export type MaybeRefOrGetter<T = any> = MaybeRef<T> | (() => T);
500
503
  * @param ref - Ref or plain value to be converted into the plain value.
501
504
  * @see {@link https://vuejs.org/api/reactivity-utilities.html#unref}
502
505
  */
503
- export declare function unref<T>(ref: MaybeRef<T> | ComputedRef<T> | ShallowRef<T>): T;
506
+ export declare function unref<T>(ref: MaybeRef<T> | ComputedRef<T>): T;
504
507
  /**
505
508
  * Normalizes values / refs / getters to values.
506
509
  * This is similar to {@link unref()}, except that it also normalizes getters.
@@ -517,7 +520,7 @@ export declare function unref<T>(ref: MaybeRef<T> | ComputedRef<T> | ShallowRef<
517
520
  * @param source - A getter, an existing ref, or a non-function value.
518
521
  * @see {@link https://vuejs.org/api/reactivity-utilities.html#tovalue}
519
522
  */
520
- export declare function toValue<T>(source: MaybeRefOrGetter<T> | ComputedRef<T> | ShallowRef<T>): T;
523
+ export declare function toValue<T>(source: MaybeRefOrGetter<T>): T;
521
524
  /**
522
525
  * Returns a proxy for the given object that shallowly unwraps properties that
523
526
  * are refs. If the object already is reactive, it's returned as-is. If not, a
@@ -654,8 +657,14 @@ export declare function trigger(target: object, type: TriggerOpTypes, key?: unkn
654
657
 
655
658
  export declare class EffectScope {
656
659
  detached: boolean;
660
+ private _isPaused;
657
661
  constructor(detached?: boolean);
658
662
  get active(): boolean;
663
+ pause(): void;
664
+ /**
665
+ * Resumes the effect scope, including all child scopes and effects.
666
+ */
667
+ resume(): void;
659
668
  run<T>(fn: () => T): T | undefined;
660
669
  stop(fromParent?: boolean): void;
661
670
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/reactivity v3.5.0-alpha.5
2
+ * @vue/reactivity v3.5.0-beta.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -65,6 +65,7 @@ class EffectScope {
65
65
  * @internal
66
66
  */
67
67
  this.cleanups = [];
68
+ this._isPaused = false;
68
69
  this.parent = activeEffectScope;
69
70
  if (!detached && activeEffectScope) {
70
71
  this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
@@ -75,6 +76,37 @@ class EffectScope {
75
76
  get active() {
76
77
  return this._active;
77
78
  }
79
+ pause() {
80
+ if (this._active) {
81
+ this._isPaused = true;
82
+ if (this.scopes) {
83
+ for (let i = 0, l = this.scopes.length; i < l; i++) {
84
+ this.scopes[i].pause();
85
+ }
86
+ }
87
+ for (let i = 0, l = this.effects.length; i < l; i++) {
88
+ this.effects[i].pause();
89
+ }
90
+ }
91
+ }
92
+ /**
93
+ * Resumes the effect scope, including all child scopes and effects.
94
+ */
95
+ resume() {
96
+ if (this._active) {
97
+ if (this._isPaused) {
98
+ this._isPaused = false;
99
+ if (this.scopes) {
100
+ for (let i = 0, l = this.scopes.length; i < l; i++) {
101
+ this.scopes[i].resume();
102
+ }
103
+ }
104
+ for (let i = 0, l = this.effects.length; i < l; i++) {
105
+ this.effects[i].resume();
106
+ }
107
+ }
108
+ }
109
+ }
78
110
  run(fn) {
79
111
  if (this._active) {
80
112
  const currentEffectScope = activeEffectScope;
@@ -159,8 +191,11 @@ const EffectFlags = {
159
191
  "ALLOW_RECURSE": 32,
160
192
  "32": "ALLOW_RECURSE",
161
193
  "NO_BATCH": 64,
162
- "64": "NO_BATCH"
194
+ "64": "NO_BATCH",
195
+ "PAUSED": 128,
196
+ "128": "PAUSED"
163
197
  };
198
+ const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
164
199
  class ReactiveEffect {
165
200
  constructor(fn) {
166
201
  this.fn = fn;
@@ -189,6 +224,18 @@ class ReactiveEffect {
189
224
  activeEffectScope.effects.push(this);
190
225
  }
191
226
  }
227
+ pause() {
228
+ this.flags |= 128;
229
+ }
230
+ resume() {
231
+ if (this.flags & 128) {
232
+ this.flags &= ~128;
233
+ if (pausedQueueEffects.has(this)) {
234
+ pausedQueueEffects.delete(this);
235
+ this.trigger();
236
+ }
237
+ }
238
+ }
192
239
  /**
193
240
  * @internal
194
241
  */
@@ -242,7 +289,9 @@ class ReactiveEffect {
242
289
  }
243
290
  }
244
291
  trigger() {
245
- if (this.scheduler) {
292
+ if (this.flags & 128) {
293
+ pausedQueueEffects.add(this);
294
+ } else if (this.scheduler) {
246
295
  this.scheduler();
247
296
  } else {
248
297
  this.runIfDirty();
@@ -575,9 +624,15 @@ function addSub(link) {
575
624
  link.dep.subs = link;
576
625
  }
577
626
  const targetMap = /* @__PURE__ */ new WeakMap();
578
- const ITERATE_KEY = Symbol("Object iterate" );
579
- const MAP_KEY_ITERATE_KEY = Symbol("Map keys iterate" );
580
- const ARRAY_ITERATE_KEY = Symbol("Array iterate" );
627
+ const ITERATE_KEY = Symbol(
628
+ "Object iterate"
629
+ );
630
+ const MAP_KEY_ITERATE_KEY = Symbol(
631
+ "Map keys iterate"
632
+ );
633
+ const ARRAY_ITERATE_KEY = Symbol(
634
+ "Array iterate"
635
+ );
581
636
  function track(target, type, key) {
582
637
  if (shouldTrack && activeSub) {
583
638
  let depsMap = targetMap.get(target);
@@ -867,7 +922,7 @@ class BaseReactiveHandler {
867
922
  return isShallow2;
868
923
  } else if (key === "__v_raw") {
869
924
  if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
870
- // this means the reciever is a user proxy of the reactive proxy
925
+ // this means the receiver is a user proxy of the reactive proxy
871
926
  Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
872
927
  return target;
873
928
  }
@@ -991,9 +1046,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
991
1046
  }
992
1047
  const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
993
1048
  const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
994
- const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(
995
- true
996
- );
1049
+ const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
997
1050
  const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
998
1051
 
999
1052
  const toShallow = (value) => value;
@@ -1488,13 +1541,14 @@ function proxyRefs(objectWithRefs) {
1488
1541
  class CustomRefImpl {
1489
1542
  constructor(factory) {
1490
1543
  this["__v_isRef"] = true;
1544
+ this._value = void 0;
1491
1545
  const dep = this.dep = new Dep();
1492
1546
  const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep));
1493
1547
  this._get = get;
1494
1548
  this._set = set;
1495
1549
  }
1496
1550
  get value() {
1497
- return this._get();
1551
+ return this._value = this._get();
1498
1552
  }
1499
1553
  set value(newVal) {
1500
1554
  this._set(newVal);
@@ -1519,10 +1573,11 @@ class ObjectRefImpl {
1519
1573
  this._key = _key;
1520
1574
  this._defaultValue = _defaultValue;
1521
1575
  this["__v_isRef"] = true;
1576
+ this._value = void 0;
1522
1577
  }
1523
1578
  get value() {
1524
1579
  const val = this._object[this._key];
1525
- return val === void 0 ? this._defaultValue : val;
1580
+ return this._value = val === void 0 ? this._defaultValue : val;
1526
1581
  }
1527
1582
  set value(newVal) {
1528
1583
  this._object[this._key] = newVal;
@@ -1536,9 +1591,10 @@ class GetterRefImpl {
1536
1591
  this._getter = _getter;
1537
1592
  this["__v_isRef"] = true;
1538
1593
  this["__v_isReadonly"] = true;
1594
+ this._value = void 0;
1539
1595
  }
1540
1596
  get value() {
1541
- return this._getter();
1597
+ return this._value = this._getter();
1542
1598
  }
1543
1599
  }
1544
1600
  function toRef(source, key, defaultValue) {
@@ -1572,7 +1628,8 @@ class ComputedRefImpl {
1572
1628
  /**
1573
1629
  * @internal
1574
1630
  */
1575
- this["__v_isRef"] = true;
1631
+ this.__v_isRef = true;
1632
+ // TODO isolatedDeclarations "__v_isReadonly"
1576
1633
  // A computed is also a subscriber that tracks other deps
1577
1634
  /**
1578
1635
  * @internal
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/reactivity v3.5.0-alpha.5
2
+ * @vue/reactivity v3.5.0-beta.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */let e,t,i;let r=Object.assign,s=Object.prototype.hasOwnProperty,n=(e,t)=>s.call(e,t),l=Array.isArray,a=e=>"[object Map]"===p(e),o=e=>"function"==typeof e,u=e=>"string"==typeof e,c=e=>"symbol"==typeof e,h=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,p=e=>f.call(e),d=e=>p(e).slice(8,-1),_=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=(e,t)=>!Object.is(e,t),g=(e,t,i,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:i})};class y{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=e,!t&&e&&(this.index=(e.scopes||(e.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){let i=e;try{return e=this,t()}finally{e=i}}}on(){e=this}off(){e=this.parent}stop(e){if(this._active){let t,i;for(t=0,i=this.effects.length;t<i;t++)this.effects[t].stop();for(t=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function R(e){return new y(e)}function w(){return e}function b(t,i=!1){e&&e.cleanups.push(t)}let S={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",NO_BATCH:64,64:"NO_BATCH"};class x{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,e&&e.active&&e.effects.push(this)}notify(){if(!(2&this.flags)||32&this.flags){if(64&this.flags)return this.trigger();8&this.flags||(this.flags|=8,this.nextEffect=i,i=this)}}run(){if(!(1&this.flags))return this.fn();this.flags|=2,M(this),k(this);let e=t,i=j;t=this,j=!0;try{return this.fn()}finally{D(this),t=e,j=i,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)O(e);this.deps=this.depsTail=void 0,M(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){m(this)&&this.run()}get dirty(){return m(this)}}let E=0;function T(){let e;if(E>1){E--;return}for(;i;){let t=i;for(i=void 0;t;){let i=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=i}}if(E--,e)throw e}function k(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function D(e){let t;let i=e.depsTail;for(let e=i;e;e=e.prevDep)-1===e.version?(e===i&&(i=e.prevDep),O(e),function(e){let{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}(e)):t=e,e.dep.activeLink=e.prevActiveLink,e.prevActiveLink=void 0;e.deps=t,e.depsTail=i}function m(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&!1===A(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function A(e){if(2&e.flags)return!1;if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===K))return;e.globalVersion=K;let i=e.dep;if(e.flags|=2,i.version>0&&!e.isSSR&&!m(e)){e.flags&=-3;return}let r=t,s=j;t=e,j=!0;try{k(e);let t=e.fn();(0===i.version||v(t,e._value))&&(e._value=t,i.version++)}catch(e){throw i.version++,e}finally{t=r,j=s,D(e),e.flags&=-3}}function O(e){let{dep:t,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),t.subs===e&&(t.subs=i),!t.subs&&t.computed){t.computed.flags&=-5;for(let e=t.computed.deps;e;e=e.nextDep)O(e)}}function I(e,t){e.effect instanceof x&&(e=e.effect.fn);let i=new x(e);t&&r(i,t);try{i.run()}catch(e){throw i.stop(),e}let s=i.run.bind(i);return s.effect=i,s}function L(e){e.effect.stop()}let j=!0,N=[];function P(){N.push(j),j=!1}function V(){N.push(j),j=!0}function C(){let e=N.pop();j=void 0===e||e}function W(e,i=!1){t instanceof x&&(t.cleanup=e)}function M(e){let{cleanup:i}=e;if(e.cleanup=void 0,i){let e=t;t=void 0;try{i()}finally{t=e}}}let K=0;class Y{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!t||!j)return;let i=this.activeLink;if(void 0===i||i.sub!==t)i=this.activeLink={dep:this,sub:t,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},t.deps?(i.prevDep=t.depsTail,t.depsTail.nextDep=i,t.depsTail=i):t.deps=t.depsTail=i,4&t.flags&&function e(t){let i=t.dep.computed;if(i&&!t.dep.subs){i.flags|=20;for(let t=i.deps;t;t=t.nextDep)e(t)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}(i);else if(-1===i.version&&(i.version=this.version,i.nextDep)){let e=i.nextDep;e.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=e),i.prevDep=t.depsTail,i.nextDep=void 0,t.depsTail.nextDep=i,t.depsTail=i,t.deps===i&&(t.deps=e)}return i}trigger(e){this.version++,K++,this.notify(e)}notify(e){E++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{T()}}}let z=new WeakMap,F=Symbol(""),G=Symbol(""),H=Symbol("");function U(e,i,r){if(j&&t){let t=z.get(e);t||z.set(e,t=new Map);let i=t.get(r);i||t.set(r,i=new Y),i.track()}}function B(e,t,i,r,s,n){let o=z.get(e);if(!o){K++;return}let u=[];if("clear"===t)u=[...o.values()];else{let s=l(e),n=s&&_(i);if(s&&"length"===i){let e=Number(r);o.forEach((t,i)=>{("length"===i||i===H||!c(i)&&i>=e)&&u.push(t)})}else{let r=e=>e&&u.push(e);switch(void 0!==i&&r(o.get(i)),n&&r(o.get(H)),t){case"add":s?n&&r(o.get("length")):(r(o.get(F)),a(e)&&r(o.get(G)));break;case"delete":!s&&(r(o.get(F)),a(e)&&r(o.get(G)));break;case"set":a(e)&&r(o.get(F))}}}for(let e of(E++,u))e.trigger();T()}function q(e){let t=eU(e);return t===e?t:(U(t,"iterate",H),eG(e)?t:t.map(eq))}function J(e){return U(e=eU(e),"iterate",H),e}let Q={__proto__:null,[Symbol.iterator](){return X(this,Symbol.iterator,eq)},concat(...e){return q(this).concat(...e.map(e=>q(e)))},entries(){return X(this,"entries",e=>(e[1]=eq(e[1]),e))},every(e,t){return Z(this,"every",e,t)},filter(e,t){return Z(this,"filter",e,t,e=>e.map(eq))},find(e,t){return Z(this,"find",e,t,eq)},findIndex(e,t){return Z(this,"findIndex",e,t)},findLast(e,t){return Z(this,"findLast",e,t,eq)},findLastIndex(e,t){return Z(this,"findLastIndex",e,t)},forEach(e,t){return Z(this,"forEach",e,t)},includes(...e){return ee(this,"includes",e)},indexOf(...e){return ee(this,"indexOf",e)},join(e){return q(this).join(e)},lastIndexOf(...e){return ee(this,"lastIndexOf",e)},map(e,t){return Z(this,"map",e,t)},pop(){return et(this,"pop")},push(...e){return et(this,"push",e)},reduce(e,...t){return $(this,"reduce",e,t)},reduceRight(e,...t){return $(this,"reduceRight",e,t)},shift(){return et(this,"shift")},some(e,t){return Z(this,"some",e,t)},splice(...e){return et(this,"splice",e)},toReversed(){return q(this).toReversed()},toSorted(e){return q(this).toSorted(e)},toSpliced(...e){return q(this).toSpliced(...e)},unshift(...e){return et(this,"unshift",e)},values(){return X(this,"values",eq)}};function X(e,t,i){let r=J(e),s=r[t]();return r===e||eG(e)||(s._next=s.next,s.next=()=>{let e=s._next();return e.value&&(e.value=i(e.value)),e}),s}function Z(e,t,i,r,s){let n=J(e),l=!1,a=i;n!==e&&((l=!eG(e))?a=function(t,r){return i.call(this,eq(t),r,e)}:i.length>2&&(a=function(t,r){return i.call(this,t,r,e)}));let o=n[t](a,r);return l&&s?s(o):o}function $(e,t,i,r){let s=J(e),n=i;return s!==e&&(eG(e)?i.length>3&&(n=function(t,r,s){return i.call(this,t,r,s,e)}):n=function(t,r,s){return i.call(this,t,eq(r),s,e)}),s[t](n,...r)}function ee(e,t,i){let r=eU(e);U(r,"iterate",H);let s=r[t](...i);return(-1===s||!1===s)&&eH(i[0])?(i[0]=eU(i[0]),r[t](...i)):s}function et(e,t,i=[]){P(),E++;let r=eU(e)[t].apply(e,i);return T(),C(),r}let ei=function(e,t){let i=new Set(e.split(","));return e=>i.has(e)}("__proto__,__v_isRef,__isVue"),er=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(c));function es(e){c(e)||(e=String(e));let t=eU(this);return U(t,"has",e),t.hasOwnProperty(e)}class en{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){let r=this._isReadonly,s=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return s;if("__v_raw"===t)return i===(r?s?eV:eP:s?eN:ej).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;let n=l(e);if(!r){let e;if(n&&(e=Q[t]))return e;if("hasOwnProperty"===t)return es}let a=Reflect.get(e,t,eQ(e)?e:i);return(c(t)?er.has(t):ei(t))?a:(r||U(e,"get",t),s)?a:eQ(a)?n&&_(t)?a:a.value:h(a)?r?eM(a):eC(a):a}}class el extends en{constructor(e=!1){super(!1,e)}set(e,t,i,r){let s=e[t];if(!this._isShallow){let t=eF(s);if(eG(i)||eF(i)||(s=eU(s),i=eU(i)),!l(e)&&eQ(s)&&!eQ(i))return!t&&(s.value=i,!0)}let a=l(e)&&_(t)?Number(t)<e.length:n(e,t),o=Reflect.set(e,t,i,r);return e===eU(r)&&(a?v(i,s)&&B(e,"set",t,i):B(e,"add",t,i)),o}deleteProperty(e,t){let i=n(e,t);e[t];let r=Reflect.deleteProperty(e,t);return r&&i&&B(e,"delete",t,void 0),r}has(e,t){let i=Reflect.has(e,t);return c(t)&&er.has(t)||U(e,"has",t),i}ownKeys(e){return U(e,"iterate",l(e)?"length":F),Reflect.ownKeys(e)}}class ea extends en{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let eo=new el,eu=new ea,ec=new el(!0),eh=new ea(!0),ef=e=>e,ep=e=>Reflect.getPrototypeOf(e);function ed(e,t,i=!1,r=!1){let s=eU(e=e.__v_raw),n=eU(t);i||(v(t,n)&&U(s,"get",t),U(s,"get",n));let{has:l}=ep(s),a=r?ef:i?eJ:eq;return l.call(s,t)?a(e.get(t)):l.call(s,n)?a(e.get(n)):void(e!==s&&e.get(t))}function e_(e,t=!1){let i=this.__v_raw,r=eU(i),s=eU(e);return t||(v(e,s)&&U(r,"has",e),U(r,"has",s)),e===s?i.has(e):i.has(e)||i.has(s)}function ev(e,t=!1){return e=e.__v_raw,t||U(eU(e),"iterate",F),Reflect.get(e,"size",e)}function eg(e,t=!1){t||eG(e)||eF(e)||(e=eU(e));let i=eU(this);return ep(i).has.call(i,e)||(i.add(e),B(i,"add",e,e)),this}function ey(e,t,i=!1){i||eG(t)||eF(t)||(t=eU(t));let r=eU(this),{has:s,get:n}=ep(r),l=s.call(r,e);l||(e=eU(e),l=s.call(r,e));let a=n.call(r,e);return r.set(e,t),l?v(t,a)&&B(r,"set",e,t):B(r,"add",e,t),this}function eR(e){let t=eU(this),{has:i,get:r}=ep(t),s=i.call(t,e);s||(e=eU(e),s=i.call(t,e)),r&&r.call(t,e);let n=t.delete(e);return s&&B(t,"delete",e,void 0),n}function ew(){let e=eU(this),t=0!==e.size,i=e.clear();return t&&B(e,"clear",void 0,void 0),i}function eb(e,t){return function(i,r){let s=this,n=s.__v_raw,l=eU(n),a=t?ef:e?eJ:eq;return e||U(l,"iterate",F),n.forEach((e,t)=>i.call(r,a(e),a(t),s))}}function eS(e,t,i){return function(...r){let s=this.__v_raw,n=eU(s),l=a(n),o="entries"===e||e===Symbol.iterator&&l,u=s[e](...r),c=i?ef:t?eJ:eq;return t||U(n,"iterate","keys"===e&&l?G:F),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:o?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function ex(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[eE,eT,ek,eD]=function(){let e={get(e){return ed(this,e)},get size(){return ev(this)},has:e_,add:eg,set:ey,delete:eR,clear:ew,forEach:eb(!1,!1)},t={get(e){return ed(this,e,!1,!0)},get size(){return ev(this)},has:e_,add(e){return eg.call(this,e,!0)},set(e,t){return ey.call(this,e,t,!0)},delete:eR,clear:ew,forEach:eb(!1,!0)},i={get(e){return ed(this,e,!0)},get size(){return ev(this,!0)},has(e){return e_.call(this,e,!0)},add:ex("add"),set:ex("set"),delete:ex("delete"),clear:ex("clear"),forEach:eb(!0,!1)},r={get(e){return ed(this,e,!0,!0)},get size(){return ev(this,!0)},has(e){return e_.call(this,e,!0)},add:ex("add"),set:ex("set"),delete:ex("delete"),clear:ex("clear"),forEach:eb(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=eS(s,!1,!1),i[s]=eS(s,!0,!1),t[s]=eS(s,!1,!0),r[s]=eS(s,!0,!0)}),[e,i,t,r]}();function em(e,t){let i=t?e?eD:ek:e?eT:eE;return(t,r,s)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(n(i,r)&&r in t?i:t,r,s)}let eA={get:em(!1,!1)},eO={get:em(!1,!0)},eI={get:em(!0,!1)},eL={get:em(!0,!0)},ej=new WeakMap,eN=new WeakMap,eP=new WeakMap,eV=new WeakMap;function eC(e){return eF(e)?e:eY(e,!1,eo,eA,ej)}function eW(e){return eY(e,!1,ec,eO,eN)}function eM(e){return eY(e,!0,eu,eI,eP)}function eK(e){return eY(e,!0,eh,eL,eV)}function eY(e,t,i,r,s){if(!h(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let n=s.get(e);if(n)return n;let l=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(d(e));if(0===l)return e;let a=new Proxy(e,2===l?r:i);return s.set(e,a),a}function ez(e){return eF(e)?ez(e.__v_raw):!!(e&&e.__v_isReactive)}function eF(e){return!!(e&&e.__v_isReadonly)}function eG(e){return!!(e&&e.__v_isShallow)}function eH(e){return!!e&&!!e.__v_raw}function eU(e){let t=e&&e.__v_raw;return t?eU(t):e}function eB(e){return Object.isExtensible(e)&&g(e,"__v_skip",!0),e}let eq=e=>h(e)?eC(e):e,eJ=e=>h(e)?eM(e):e;function eQ(e){return!!e&&!0===e.__v_isRef}function eX(e){return e$(e,!1)}function eZ(e){return e$(e,!0)}function e$(e,t){return eQ(e)?e:new e0(e,t)}class e0{constructor(e,t){this.dep=new Y,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:eU(e),this._value=t?e:eq(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,i=this.__v_isShallow||eG(e)||eF(e);v(e=i?e:eU(e),t)&&(this._rawValue=e,this._value=i?e:eq(e),this.dep.trigger())}}function e1(e){e.dep.trigger()}function e2(e){return eQ(e)?e.value:e}function e6(e){return o(e)?e():e2(e)}let e3={get:(e,t,i)=>e2(Reflect.get(e,t,i)),set:(e,t,i,r)=>{let s=e[t];return eQ(s)&&!eQ(i)?(s.value=i,!0):Reflect.set(e,t,i,r)}};function e4(e){return ez(e)?e:new Proxy(e,e3)}class e8{constructor(e){this.__v_isRef=!0;let t=this.dep=new Y,{get:i,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=i,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}function e5(e){return new e8(e)}function e7(e){let t=l(e)?Array(e.length):{};for(let i in e)t[i]=ti(e,i);return t}class e9{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0}get value(){let e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){var e,t,i;return e=eU(this._object),t=this._key,null==(i=z.get(e))?void 0:i.get(t)}}class te{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function tt(e,t,i){return eQ(e)?e:o(e)?new te(e):h(e)&&arguments.length>1?ti(e,t,i):eX(e)}function ti(e,t,i){let r=e[t];return eQ(r)?r:new e9(e,t,i)}class tr{constructor(e,t,i){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Y(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=K-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=i}notify(){t!==this&&(this.flags|=16,this.dep.notify())}get value(){let e=this.dep.track();return A(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function ts(e,t,i=!1){let r,s;return o(e)?r=e:(r=e.get,s=e.set),new tr(r,s,i)}let tn={GET:"get",HAS:"has",ITERATE:"iterate"},tl={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},ta={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"};export{H as ARRAY_ITERATE_KEY,S as EffectFlags,y as EffectScope,F as ITERATE_KEY,G as MAP_KEY_ITERATE_KEY,x as ReactiveEffect,ta as ReactiveFlags,tn as TrackOpTypes,tl as TriggerOpTypes,ts as computed,e5 as customRef,I as effect,R as effectScope,V as enableTracking,w as getCurrentScope,eH as isProxy,ez as isReactive,eF as isReadonly,eQ as isRef,eG as isShallow,eB as markRaw,W as onEffectCleanup,b as onScopeDispose,P as pauseTracking,e4 as proxyRefs,eC as reactive,q as reactiveReadArray,eM as readonly,eX as ref,C as resetTracking,eW as shallowReactive,J as shallowReadArray,eK as shallowReadonly,eZ as shallowRef,L as stop,eU as toRaw,eq as toReactive,eJ as toReadonly,tt as toRef,e7 as toRefs,e6 as toValue,U as track,B as trigger,e1 as triggerRef,e2 as unref};
5
+ **//*! #__NO_SIDE_EFFECTS__ */let e,t,i;let s=Object.assign,r=Object.prototype.hasOwnProperty,n=(e,t)=>r.call(e,t),l=Array.isArray,a=e=>"[object Map]"===p(e),u=e=>"function"==typeof e,o=e=>"string"==typeof e,h=e=>"symbol"==typeof e,c=e=>null!==e&&"object"==typeof e,f=Object.prototype.toString,p=e=>f.call(e),d=e=>p(e).slice(8,-1),_=e=>o(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=(e,t)=>!Object.is(e,t),g=(e,t,i,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:i})};class y{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=e,!t&&e&&(this.index=(e.scopes||(e.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){if(this._isPaused=!0,this.scopes)for(let e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(let e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){if(this._isPaused=!1,this.scopes)for(let e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(let e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(t){if(this._active){let i=e;try{return e=this,t()}finally{e=i}}}on(){e=this}off(){e=this.parent}stop(e){if(this._active){let t,i;for(t=0,i=this.effects.length;t<i;t++)this.effects[t].stop();for(t=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function R(e){return new y(e)}function w(){return e}function b(t,i=!1){e&&e.cleanups.push(t)}let S={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",NO_BATCH:64,64:"NO_BATCH",PAUSED:128,128:"PAUSED"},E=new WeakSet;class x{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,e&&e.active&&e.effects.push(this)}pause(){this.flags|=128}resume(){128&this.flags&&(this.flags&=-129,E.has(this)&&(E.delete(this),this.trigger()))}notify(){if(!(2&this.flags)||32&this.flags){if(64&this.flags)return this.trigger();8&this.flags||(this.flags|=8,this.nextEffect=i,i=this)}}run(){if(!(1&this.flags))return this.fn();this.flags|=2,K(this),m(this);let e=t,i=j;t=this,j=!0;try{return this.fn()}finally{D(this),t=e,j=i,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)I(e);this.deps=this.depsTail=void 0,K(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){128&this.flags?E.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){A(this)&&this.run()}get dirty(){return A(this)}}let T=0;function k(){let e;if(T>1){T--;return}for(;i;){let t=i;for(i=void 0;t;){let i=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=i}}if(T--,e)throw e}function m(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function D(e){let t;let i=e.depsTail;for(let e=i;e;e=e.prevDep)-1===e.version?(e===i&&(i=e.prevDep),I(e),function(e){let{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}(e)):t=e,e.dep.activeLink=e.prevActiveLink,e.prevActiveLink=void 0;e.deps=t,e.depsTail=i}function A(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&!1===O(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function O(e){if(2&e.flags)return!1;if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===Y))return;e.globalVersion=Y;let i=e.dep;if(e.flags|=2,i.version>0&&!e.isSSR&&!A(e)){e.flags&=-3;return}let s=t,r=j;t=e,j=!0;try{m(e);let t=e.fn();(0===i.version||v(t,e._value))&&(e._value=t,i.version++)}catch(e){throw i.version++,e}finally{t=s,j=r,D(e),e.flags&=-3}}function I(e){let{dep:t,prevSub:i,nextSub:s}=e;if(i&&(i.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=i,e.nextSub=void 0),t.subs===e&&(t.subs=i),!t.subs&&t.computed){t.computed.flags&=-5;for(let e=t.computed.deps;e;e=e.nextDep)I(e)}}function L(e,t){e.effect instanceof x&&(e=e.effect.fn);let i=new x(e);t&&s(i,t);try{i.run()}catch(e){throw i.stop(),e}let r=i.run.bind(i);return r.effect=i,r}function P(e){e.effect.stop()}let j=!0,N=[];function V(){N.push(j),j=!1}function C(){N.push(j),j=!0}function W(){let e=N.pop();j=void 0===e||e}function M(e,i=!1){t instanceof x&&(t.cleanup=e)}function K(e){let{cleanup:i}=e;if(e.cleanup=void 0,i){let e=t;t=void 0;try{i()}finally{t=e}}}let Y=0;class z{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!t||!j)return;let i=this.activeLink;if(void 0===i||i.sub!==t)i=this.activeLink={dep:this,sub:t,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},t.deps?(i.prevDep=t.depsTail,t.depsTail.nextDep=i,t.depsTail=i):t.deps=t.depsTail=i,4&t.flags&&function e(t){let i=t.dep.computed;if(i&&!t.dep.subs){i.flags|=20;for(let t=i.deps;t;t=t.nextDep)e(t)}let s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}(i);else if(-1===i.version&&(i.version=this.version,i.nextDep)){let e=i.nextDep;e.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=e),i.prevDep=t.depsTail,i.nextDep=void 0,t.depsTail.nextDep=i,t.depsTail=i,t.deps===i&&(t.deps=e)}return i}trigger(e){this.version++,Y++,this.notify(e)}notify(e){T++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{k()}}}let U=new WeakMap,F=Symbol(""),G=Symbol(""),H=Symbol("");function B(e,i,s){if(j&&t){let t=U.get(e);t||U.set(e,t=new Map);let i=t.get(s);i||t.set(s,i=new z),i.track()}}function q(e,t,i,s,r,n){let u=U.get(e);if(!u){Y++;return}let o=[];if("clear"===t)o=[...u.values()];else{let r=l(e),n=r&&_(i);if(r&&"length"===i){let e=Number(s);u.forEach((t,i)=>{("length"===i||i===H||!h(i)&&i>=e)&&o.push(t)})}else{let s=e=>e&&o.push(e);switch(void 0!==i&&s(u.get(i)),n&&s(u.get(H)),t){case"add":r?n&&s(u.get("length")):(s(u.get(F)),a(e)&&s(u.get(G)));break;case"delete":!r&&(s(u.get(F)),a(e)&&s(u.get(G)));break;case"set":a(e)&&s(u.get(F))}}}for(let e of(T++,o))e.trigger();k()}function J(e){let t=eB(e);return t===e?t:(B(t,"iterate",H),eG(e)?t:t.map(eJ))}function Q(e){return B(e=eB(e),"iterate",H),e}let X={__proto__:null,[Symbol.iterator](){return Z(this,Symbol.iterator,eJ)},concat(...e){return J(this).concat(...e.map(e=>J(e)))},entries(){return Z(this,"entries",e=>(e[1]=eJ(e[1]),e))},every(e,t){return $(this,"every",e,t)},filter(e,t){return $(this,"filter",e,t,e=>e.map(eJ))},find(e,t){return $(this,"find",e,t,eJ)},findIndex(e,t){return $(this,"findIndex",e,t)},findLast(e,t){return $(this,"findLast",e,t,eJ)},findLastIndex(e,t){return $(this,"findLastIndex",e,t)},forEach(e,t){return $(this,"forEach",e,t)},includes(...e){return et(this,"includes",e)},indexOf(...e){return et(this,"indexOf",e)},join(e){return J(this).join(e)},lastIndexOf(...e){return et(this,"lastIndexOf",e)},map(e,t){return $(this,"map",e,t)},pop(){return ei(this,"pop")},push(...e){return ei(this,"push",e)},reduce(e,...t){return ee(this,"reduce",e,t)},reduceRight(e,...t){return ee(this,"reduceRight",e,t)},shift(){return ei(this,"shift")},some(e,t){return $(this,"some",e,t)},splice(...e){return ei(this,"splice",e)},toReversed(){return J(this).toReversed()},toSorted(e){return J(this).toSorted(e)},toSpliced(...e){return J(this).toSpliced(...e)},unshift(...e){return ei(this,"unshift",e)},values(){return Z(this,"values",eJ)}};function Z(e,t,i){let s=Q(e),r=s[t]();return s===e||eG(e)||(r._next=r.next,r.next=()=>{let e=r._next();return e.value&&(e.value=i(e.value)),e}),r}function $(e,t,i,s,r){let n=Q(e),l=!1,a=i;n!==e&&((l=!eG(e))?a=function(t,s){return i.call(this,eJ(t),s,e)}:i.length>2&&(a=function(t,s){return i.call(this,t,s,e)}));let u=n[t](a,s);return l&&r?r(u):u}function ee(e,t,i,s){let r=Q(e),n=i;return r!==e&&(eG(e)?i.length>3&&(n=function(t,s,r){return i.call(this,t,s,r,e)}):n=function(t,s,r){return i.call(this,t,eJ(s),r,e)}),r[t](n,...s)}function et(e,t,i){let s=eB(e);B(s,"iterate",H);let r=s[t](...i);return(-1===r||!1===r)&&eH(i[0])?(i[0]=eB(i[0]),s[t](...i)):r}function ei(e,t,i=[]){V(),T++;let s=eB(e)[t].apply(e,i);return k(),W(),s}let es=function(e,t){let i=new Set(e.split(","));return e=>i.has(e)}("__proto__,__v_isRef,__isVue"),er=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(h));function en(e){h(e)||(e=String(e));let t=eB(this);return B(t,"has",e),t.hasOwnProperty(e)}class el{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){let s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return i===(s?r?eC:eV:r?eN:ej).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;let n=l(e);if(!s){let e;if(n&&(e=X[t]))return e;if("hasOwnProperty"===t)return en}let a=Reflect.get(e,t,eX(e)?e:i);return(h(t)?er.has(t):es(t))?a:(s||B(e,"get",t),r)?a:eX(a)?n&&_(t)?a:a.value:c(a)?s?eK(a):eW(a):a}}class ea extends el{constructor(e=!1){super(!1,e)}set(e,t,i,s){let r=e[t];if(!this._isShallow){let t=eF(r);if(eG(i)||eF(i)||(r=eB(r),i=eB(i)),!l(e)&&eX(r)&&!eX(i))return!t&&(r.value=i,!0)}let a=l(e)&&_(t)?Number(t)<e.length:n(e,t),u=Reflect.set(e,t,i,s);return e===eB(s)&&(a?v(i,r)&&q(e,"set",t,i):q(e,"add",t,i)),u}deleteProperty(e,t){let i=n(e,t);e[t];let s=Reflect.deleteProperty(e,t);return s&&i&&q(e,"delete",t,void 0),s}has(e,t){let i=Reflect.has(e,t);return h(t)&&er.has(t)||B(e,"has",t),i}ownKeys(e){return B(e,"iterate",l(e)?"length":F),Reflect.ownKeys(e)}}class eu extends el{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let eo=new ea,eh=new eu,ec=new ea(!0),ef=new eu(!0),ep=e=>e,ed=e=>Reflect.getPrototypeOf(e);function e_(e,t,i=!1,s=!1){let r=eB(e=e.__v_raw),n=eB(t);i||(v(t,n)&&B(r,"get",t),B(r,"get",n));let{has:l}=ed(r),a=s?ep:i?eQ:eJ;return l.call(r,t)?a(e.get(t)):l.call(r,n)?a(e.get(n)):void(e!==r&&e.get(t))}function ev(e,t=!1){let i=this.__v_raw,s=eB(i),r=eB(e);return t||(v(e,r)&&B(s,"has",e),B(s,"has",r)),e===r?i.has(e):i.has(e)||i.has(r)}function eg(e,t=!1){return e=e.__v_raw,t||B(eB(e),"iterate",F),Reflect.get(e,"size",e)}function ey(e,t=!1){t||eG(e)||eF(e)||(e=eB(e));let i=eB(this);return ed(i).has.call(i,e)||(i.add(e),q(i,"add",e,e)),this}function eR(e,t,i=!1){i||eG(t)||eF(t)||(t=eB(t));let s=eB(this),{has:r,get:n}=ed(s),l=r.call(s,e);l||(e=eB(e),l=r.call(s,e));let a=n.call(s,e);return s.set(e,t),l?v(t,a)&&q(s,"set",e,t):q(s,"add",e,t),this}function ew(e){let t=eB(this),{has:i,get:s}=ed(t),r=i.call(t,e);r||(e=eB(e),r=i.call(t,e)),s&&s.call(t,e);let n=t.delete(e);return r&&q(t,"delete",e,void 0),n}function eb(){let e=eB(this),t=0!==e.size,i=e.clear();return t&&q(e,"clear",void 0,void 0),i}function eS(e,t){return function(i,s){let r=this,n=r.__v_raw,l=eB(n),a=t?ep:e?eQ:eJ;return e||B(l,"iterate",F),n.forEach((e,t)=>i.call(s,a(e),a(t),r))}}function eE(e,t,i){return function(...s){let r=this.__v_raw,n=eB(r),l=a(n),u="entries"===e||e===Symbol.iterator&&l,o=r[e](...s),h=i?ep:t?eQ:eJ;return t||B(n,"iterate","keys"===e&&l?G:F),{next(){let{value:e,done:t}=o.next();return t?{value:e,done:t}:{value:u?[h(e[0]),h(e[1])]:h(e),done:t}},[Symbol.iterator](){return this}}}}function ex(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[eT,ek,em,eD]=function(){let e={get(e){return e_(this,e)},get size(){return eg(this)},has:ev,add:ey,set:eR,delete:ew,clear:eb,forEach:eS(!1,!1)},t={get(e){return e_(this,e,!1,!0)},get size(){return eg(this)},has:ev,add(e){return ey.call(this,e,!0)},set(e,t){return eR.call(this,e,t,!0)},delete:ew,clear:eb,forEach:eS(!1,!0)},i={get(e){return e_(this,e,!0)},get size(){return eg(this,!0)},has(e){return ev.call(this,e,!0)},add:ex("add"),set:ex("set"),delete:ex("delete"),clear:ex("clear"),forEach:eS(!0,!1)},s={get(e){return e_(this,e,!0,!0)},get size(){return eg(this,!0)},has(e){return ev.call(this,e,!0)},add:ex("add"),set:ex("set"),delete:ex("delete"),clear:ex("clear"),forEach:eS(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=eE(r,!1,!1),i[r]=eE(r,!0,!1),t[r]=eE(r,!1,!0),s[r]=eE(r,!0,!0)}),[e,i,t,s]}();function eA(e,t){let i=t?e?eD:em:e?ek:eT;return(t,s,r)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(n(i,s)&&s in t?i:t,s,r)}let eO={get:eA(!1,!1)},eI={get:eA(!1,!0)},eL={get:eA(!0,!1)},eP={get:eA(!0,!0)},ej=new WeakMap,eN=new WeakMap,eV=new WeakMap,eC=new WeakMap;function eW(e){return eF(e)?e:ez(e,!1,eo,eO,ej)}function eM(e){return ez(e,!1,ec,eI,eN)}function eK(e){return ez(e,!0,eh,eL,eV)}function eY(e){return ez(e,!0,ef,eP,eC)}function ez(e,t,i,s,r){if(!c(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let n=r.get(e);if(n)return n;let l=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(d(e));if(0===l)return e;let a=new Proxy(e,2===l?s:i);return r.set(e,a),a}function eU(e){return eF(e)?eU(e.__v_raw):!!(e&&e.__v_isReactive)}function eF(e){return!!(e&&e.__v_isReadonly)}function eG(e){return!!(e&&e.__v_isShallow)}function eH(e){return!!e&&!!e.__v_raw}function eB(e){let t=e&&e.__v_raw;return t?eB(t):e}function eq(e){return Object.isExtensible(e)&&g(e,"__v_skip",!0),e}let eJ=e=>c(e)?eW(e):e,eQ=e=>c(e)?eK(e):e;function eX(e){return!!e&&!0===e.__v_isRef}function eZ(e){return e0(e,!1)}function e$(e){return e0(e,!0)}function e0(e,t){return eX(e)?e:new e1(e,t)}class e1{constructor(e,t){this.dep=new z,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:eB(e),this._value=t?e:eJ(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,i=this.__v_isShallow||eG(e)||eF(e);v(e=i?e:eB(e),t)&&(this._rawValue=e,this._value=i?e:eJ(e),this.dep.trigger())}}function e2(e){e.dep.trigger()}function e8(e){return eX(e)?e.value:e}function e6(e){return u(e)?e():e8(e)}let e3={get:(e,t,i)=>e8(Reflect.get(e,t,i)),set:(e,t,i,s)=>{let r=e[t];return eX(r)&&!eX(i)?(r.value=i,!0):Reflect.set(e,t,i,s)}};function e4(e){return eU(e)?e:new Proxy(e,e3)}class e5{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new z,{get:i,set:s}=e(t.track.bind(t),t.trigger.bind(t));this._get=i,this._set=s}get value(){return this._value=this._get()}set value(e){this._set(e)}}function e9(e){return new e5(e)}function e7(e){let t=l(e)?Array(e.length):{};for(let i in e)t[i]=ts(e,i);return t}class te{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){let e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){var e,t,i;return e=eB(this._object),t=this._key,null==(i=U.get(e))?void 0:i.get(t)}}class tt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ti(e,t,i){return eX(e)?e:u(e)?new tt(e):c(e)&&arguments.length>1?ts(e,t,i):eZ(e)}function ts(e,t,i){let s=e[t];return eX(s)?s:new te(e,t,i)}class tr{constructor(e,t,i){this.fn=e,this.setter=t,this._value=void 0,this.dep=new z(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Y-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=i}notify(){t!==this&&(this.flags|=16,this.dep.notify())}get value(){let e=this.dep.track();return O(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function tn(e,t,i=!1){let s,r;return u(e)?s=e:(s=e.get,r=e.set),new tr(s,r,i)}let tl={GET:"get",HAS:"has",ITERATE:"iterate"},ta={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},tu={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"};export{H as ARRAY_ITERATE_KEY,S as EffectFlags,y as EffectScope,F as ITERATE_KEY,G as MAP_KEY_ITERATE_KEY,x as ReactiveEffect,tu as ReactiveFlags,tl as TrackOpTypes,ta as TriggerOpTypes,tn as computed,e9 as customRef,L as effect,R as effectScope,C as enableTracking,w as getCurrentScope,eH as isProxy,eU as isReactive,eF as isReadonly,eX as isRef,eG as isShallow,eq as markRaw,M as onEffectCleanup,b as onScopeDispose,V as pauseTracking,e4 as proxyRefs,eW as reactive,J as reactiveReadArray,eK as readonly,eZ as ref,W as resetTracking,eM as shallowReactive,Q as shallowReadArray,eY as shallowReadonly,e$ as shallowRef,P as stop,eB as toRaw,eJ as toReactive,eQ as toReadonly,ti as toRef,e7 as toRefs,e6 as toValue,B as track,q as trigger,e2 as triggerRef,e8 as unref};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/reactivity v3.5.0-alpha.5
2
+ * @vue/reactivity v3.5.0-beta.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -25,6 +25,7 @@ class EffectScope {
25
25
  * @internal
26
26
  */
27
27
  this.cleanups = [];
28
+ this._isPaused = false;
28
29
  this.parent = activeEffectScope;
29
30
  if (!detached && activeEffectScope) {
30
31
  this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
@@ -35,6 +36,37 @@ class EffectScope {
35
36
  get active() {
36
37
  return this._active;
37
38
  }
39
+ pause() {
40
+ if (this._active) {
41
+ this._isPaused = true;
42
+ if (this.scopes) {
43
+ for (let i = 0, l = this.scopes.length; i < l; i++) {
44
+ this.scopes[i].pause();
45
+ }
46
+ }
47
+ for (let i = 0, l = this.effects.length; i < l; i++) {
48
+ this.effects[i].pause();
49
+ }
50
+ }
51
+ }
52
+ /**
53
+ * Resumes the effect scope, including all child scopes and effects.
54
+ */
55
+ resume() {
56
+ if (this._active) {
57
+ if (this._isPaused) {
58
+ this._isPaused = false;
59
+ if (this.scopes) {
60
+ for (let i = 0, l = this.scopes.length; i < l; i++) {
61
+ this.scopes[i].resume();
62
+ }
63
+ }
64
+ for (let i = 0, l = this.effects.length; i < l; i++) {
65
+ this.effects[i].resume();
66
+ }
67
+ }
68
+ }
69
+ }
38
70
  run(fn) {
39
71
  if (this._active) {
40
72
  const currentEffectScope = activeEffectScope;
@@ -119,8 +151,11 @@ const EffectFlags = {
119
151
  "ALLOW_RECURSE": 32,
120
152
  "32": "ALLOW_RECURSE",
121
153
  "NO_BATCH": 64,
122
- "64": "NO_BATCH"
154
+ "64": "NO_BATCH",
155
+ "PAUSED": 128,
156
+ "128": "PAUSED"
123
157
  };
158
+ const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
124
159
  class ReactiveEffect {
125
160
  constructor(fn) {
126
161
  this.fn = fn;
@@ -149,6 +184,18 @@ class ReactiveEffect {
149
184
  activeEffectScope.effects.push(this);
150
185
  }
151
186
  }
187
+ pause() {
188
+ this.flags |= 128;
189
+ }
190
+ resume() {
191
+ if (this.flags & 128) {
192
+ this.flags &= ~128;
193
+ if (pausedQueueEffects.has(this)) {
194
+ pausedQueueEffects.delete(this);
195
+ this.trigger();
196
+ }
197
+ }
198
+ }
152
199
  /**
153
200
  * @internal
154
201
  */
@@ -202,7 +249,9 @@ class ReactiveEffect {
202
249
  }
203
250
  }
204
251
  trigger() {
205
- if (this.scheduler) {
252
+ if (this.flags & 128) {
253
+ pausedQueueEffects.add(this);
254
+ } else if (this.scheduler) {
206
255
  this.scheduler();
207
256
  } else {
208
257
  this.runIfDirty();
@@ -535,9 +584,15 @@ function addSub(link) {
535
584
  link.dep.subs = link;
536
585
  }
537
586
  const targetMap = /* @__PURE__ */ new WeakMap();
538
- const ITERATE_KEY = Symbol(!!(process.env.NODE_ENV !== "production") ? "Object iterate" : "");
539
- const MAP_KEY_ITERATE_KEY = Symbol(!!(process.env.NODE_ENV !== "production") ? "Map keys iterate" : "");
540
- const ARRAY_ITERATE_KEY = Symbol(!!(process.env.NODE_ENV !== "production") ? "Array iterate" : "");
587
+ const ITERATE_KEY = Symbol(
588
+ !!(process.env.NODE_ENV !== "production") ? "Object iterate" : ""
589
+ );
590
+ const MAP_KEY_ITERATE_KEY = Symbol(
591
+ !!(process.env.NODE_ENV !== "production") ? "Map keys iterate" : ""
592
+ );
593
+ const ARRAY_ITERATE_KEY = Symbol(
594
+ !!(process.env.NODE_ENV !== "production") ? "Array iterate" : ""
595
+ );
541
596
  function track(target, type, key) {
542
597
  if (shouldTrack && activeSub) {
543
598
  let depsMap = targetMap.get(target);
@@ -831,7 +886,7 @@ class BaseReactiveHandler {
831
886
  return isShallow2;
832
887
  } else if (key === "__v_raw") {
833
888
  if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
834
- // this means the reciever is a user proxy of the reactive proxy
889
+ // this means the receiver is a user proxy of the reactive proxy
835
890
  Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
836
891
  return target;
837
892
  }
@@ -955,9 +1010,7 @@ class ReadonlyReactiveHandler extends BaseReactiveHandler {
955
1010
  }
956
1011
  const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
957
1012
  const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
958
- const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(
959
- true
960
- );
1013
+ const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
961
1014
  const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
962
1015
 
963
1016
  const toShallow = (value) => value;
@@ -1458,13 +1511,14 @@ function proxyRefs(objectWithRefs) {
1458
1511
  class CustomRefImpl {
1459
1512
  constructor(factory) {
1460
1513
  this["__v_isRef"] = true;
1514
+ this._value = void 0;
1461
1515
  const dep = this.dep = new Dep();
1462
1516
  const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep));
1463
1517
  this._get = get;
1464
1518
  this._set = set;
1465
1519
  }
1466
1520
  get value() {
1467
- return this._get();
1521
+ return this._value = this._get();
1468
1522
  }
1469
1523
  set value(newVal) {
1470
1524
  this._set(newVal);
@@ -1489,10 +1543,11 @@ class ObjectRefImpl {
1489
1543
  this._key = _key;
1490
1544
  this._defaultValue = _defaultValue;
1491
1545
  this["__v_isRef"] = true;
1546
+ this._value = void 0;
1492
1547
  }
1493
1548
  get value() {
1494
1549
  const val = this._object[this._key];
1495
- return val === void 0 ? this._defaultValue : val;
1550
+ return this._value = val === void 0 ? this._defaultValue : val;
1496
1551
  }
1497
1552
  set value(newVal) {
1498
1553
  this._object[this._key] = newVal;
@@ -1506,9 +1561,10 @@ class GetterRefImpl {
1506
1561
  this._getter = _getter;
1507
1562
  this["__v_isRef"] = true;
1508
1563
  this["__v_isReadonly"] = true;
1564
+ this._value = void 0;
1509
1565
  }
1510
1566
  get value() {
1511
- return this._getter();
1567
+ return this._value = this._getter();
1512
1568
  }
1513
1569
  }
1514
1570
  function toRef(source, key, defaultValue) {
@@ -1542,7 +1598,8 @@ class ComputedRefImpl {
1542
1598
  /**
1543
1599
  * @internal
1544
1600
  */
1545
- this["__v_isRef"] = true;
1601
+ this.__v_isRef = true;
1602
+ // TODO isolatedDeclarations "__v_isReadonly"
1546
1603
  // A computed is also a subscriber that tracks other deps
1547
1604
  /**
1548
1605
  * @internal
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/reactivity v3.5.0-alpha.5
2
+ * @vue/reactivity v3.5.0-beta.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -68,6 +68,7 @@ var VueReactivity = (function (exports) {
68
68
  * @internal
69
69
  */
70
70
  this.cleanups = [];
71
+ this._isPaused = false;
71
72
  this.parent = activeEffectScope;
72
73
  if (!detached && activeEffectScope) {
73
74
  this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
@@ -78,6 +79,37 @@ var VueReactivity = (function (exports) {
78
79
  get active() {
79
80
  return this._active;
80
81
  }
82
+ pause() {
83
+ if (this._active) {
84
+ this._isPaused = true;
85
+ if (this.scopes) {
86
+ for (let i = 0, l = this.scopes.length; i < l; i++) {
87
+ this.scopes[i].pause();
88
+ }
89
+ }
90
+ for (let i = 0, l = this.effects.length; i < l; i++) {
91
+ this.effects[i].pause();
92
+ }
93
+ }
94
+ }
95
+ /**
96
+ * Resumes the effect scope, including all child scopes and effects.
97
+ */
98
+ resume() {
99
+ if (this._active) {
100
+ if (this._isPaused) {
101
+ this._isPaused = false;
102
+ if (this.scopes) {
103
+ for (let i = 0, l = this.scopes.length; i < l; i++) {
104
+ this.scopes[i].resume();
105
+ }
106
+ }
107
+ for (let i = 0, l = this.effects.length; i < l; i++) {
108
+ this.effects[i].resume();
109
+ }
110
+ }
111
+ }
112
+ }
81
113
  run(fn) {
82
114
  if (this._active) {
83
115
  const currentEffectScope = activeEffectScope;
@@ -162,8 +194,11 @@ var VueReactivity = (function (exports) {
162
194
  "ALLOW_RECURSE": 32,
163
195
  "32": "ALLOW_RECURSE",
164
196
  "NO_BATCH": 64,
165
- "64": "NO_BATCH"
197
+ "64": "NO_BATCH",
198
+ "PAUSED": 128,
199
+ "128": "PAUSED"
166
200
  };
201
+ const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
167
202
  class ReactiveEffect {
168
203
  constructor(fn) {
169
204
  this.fn = fn;
@@ -192,6 +227,18 @@ var VueReactivity = (function (exports) {
192
227
  activeEffectScope.effects.push(this);
193
228
  }
194
229
  }
230
+ pause() {
231
+ this.flags |= 128;
232
+ }
233
+ resume() {
234
+ if (this.flags & 128) {
235
+ this.flags &= ~128;
236
+ if (pausedQueueEffects.has(this)) {
237
+ pausedQueueEffects.delete(this);
238
+ this.trigger();
239
+ }
240
+ }
241
+ }
195
242
  /**
196
243
  * @internal
197
244
  */
@@ -245,7 +292,9 @@ var VueReactivity = (function (exports) {
245
292
  }
246
293
  }
247
294
  trigger() {
248
- if (this.scheduler) {
295
+ if (this.flags & 128) {
296
+ pausedQueueEffects.add(this);
297
+ } else if (this.scheduler) {
249
298
  this.scheduler();
250
299
  } else {
251
300
  this.runIfDirty();
@@ -578,9 +627,15 @@ var VueReactivity = (function (exports) {
578
627
  link.dep.subs = link;
579
628
  }
580
629
  const targetMap = /* @__PURE__ */ new WeakMap();
581
- const ITERATE_KEY = Symbol("Object iterate" );
582
- const MAP_KEY_ITERATE_KEY = Symbol("Map keys iterate" );
583
- const ARRAY_ITERATE_KEY = Symbol("Array iterate" );
630
+ const ITERATE_KEY = Symbol(
631
+ "Object iterate"
632
+ );
633
+ const MAP_KEY_ITERATE_KEY = Symbol(
634
+ "Map keys iterate"
635
+ );
636
+ const ARRAY_ITERATE_KEY = Symbol(
637
+ "Array iterate"
638
+ );
584
639
  function track(target, type, key) {
585
640
  if (shouldTrack && activeSub) {
586
641
  let depsMap = targetMap.get(target);
@@ -870,7 +925,7 @@ var VueReactivity = (function (exports) {
870
925
  return isShallow2;
871
926
  } else if (key === "__v_raw") {
872
927
  if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
873
- // this means the reciever is a user proxy of the reactive proxy
928
+ // this means the receiver is a user proxy of the reactive proxy
874
929
  Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
875
930
  return target;
876
931
  }
@@ -994,9 +1049,7 @@ var VueReactivity = (function (exports) {
994
1049
  }
995
1050
  const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
996
1051
  const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
997
- const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(
998
- true
999
- );
1052
+ const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
1000
1053
  const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
1001
1054
 
1002
1055
  const toShallow = (value) => value;
@@ -1491,13 +1544,14 @@ var VueReactivity = (function (exports) {
1491
1544
  class CustomRefImpl {
1492
1545
  constructor(factory) {
1493
1546
  this["__v_isRef"] = true;
1547
+ this._value = void 0;
1494
1548
  const dep = this.dep = new Dep();
1495
1549
  const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep));
1496
1550
  this._get = get;
1497
1551
  this._set = set;
1498
1552
  }
1499
1553
  get value() {
1500
- return this._get();
1554
+ return this._value = this._get();
1501
1555
  }
1502
1556
  set value(newVal) {
1503
1557
  this._set(newVal);
@@ -1522,10 +1576,11 @@ var VueReactivity = (function (exports) {
1522
1576
  this._key = _key;
1523
1577
  this._defaultValue = _defaultValue;
1524
1578
  this["__v_isRef"] = true;
1579
+ this._value = void 0;
1525
1580
  }
1526
1581
  get value() {
1527
1582
  const val = this._object[this._key];
1528
- return val === void 0 ? this._defaultValue : val;
1583
+ return this._value = val === void 0 ? this._defaultValue : val;
1529
1584
  }
1530
1585
  set value(newVal) {
1531
1586
  this._object[this._key] = newVal;
@@ -1539,9 +1594,10 @@ var VueReactivity = (function (exports) {
1539
1594
  this._getter = _getter;
1540
1595
  this["__v_isRef"] = true;
1541
1596
  this["__v_isReadonly"] = true;
1597
+ this._value = void 0;
1542
1598
  }
1543
1599
  get value() {
1544
- return this._getter();
1600
+ return this._value = this._getter();
1545
1601
  }
1546
1602
  }
1547
1603
  function toRef(source, key, defaultValue) {
@@ -1575,7 +1631,8 @@ var VueReactivity = (function (exports) {
1575
1631
  /**
1576
1632
  * @internal
1577
1633
  */
1578
- this["__v_isRef"] = true;
1634
+ this.__v_isRef = true;
1635
+ // TODO isolatedDeclarations "__v_isReadonly"
1579
1636
  // A computed is also a subscriber that tracks other deps
1580
1637
  /**
1581
1638
  * @internal
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/reactivity v3.5.0-alpha.5
2
+ * @vue/reactivity v3.5.0-beta.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/var VueReactivity=function(e){"use strict";let t,i,r;let s=Object.assign,n=Object.prototype.hasOwnProperty,l=(e,t)=>n.call(e,t),a=Array.isArray,u=e=>"[object Map]"===d(e),o=e=>"function"==typeof e,c=e=>"string"==typeof e,h=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,d=e=>p.call(e),_=e=>d(e).slice(8,-1),v=e=>c(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,g=(e,t)=>!Object.is(e,t),y=(e,t,i,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:i})};class R{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=t,!e&&t&&(this.index=(t.scopes||(t.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){let i=t;try{return t=this,e()}finally{t=i}}}on(){t=this}off(){t=this.parent}stop(e){if(this._active){let t,i;for(t=0,i=this.effects.length;t<i;t++)this.effects[t].stop();for(t=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}class w{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,t&&t.active&&t.effects.push(this)}notify(){if(!(2&this.flags)||32&this.flags){if(64&this.flags)return this.trigger();8&this.flags||(this.flags|=8,this.nextEffect=r,r=this)}}run(){if(!(1&this.flags))return this.fn();this.flags|=2,L(this),E(this);let e=i,t=m;i=this,m=!0;try{return this.fn()}finally{x(this),i=e,m=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)D(e);this.deps=this.depsTail=void 0,L(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){T(this)&&this.run()}get dirty(){return T(this)}}let b=0;function S(){let e;if(b>1){b--;return}for(;r;){let t=r;for(r=void 0;t;){let i=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=i}}if(b--,e)throw e}function E(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function x(e){let t;let i=e.depsTail;for(let e=i;e;e=e.prevDep)-1===e.version?(e===i&&(i=e.prevDep),D(e),function(e){let{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}(e)):t=e,e.dep.activeLink=e.prevActiveLink,e.prevActiveLink=void 0;e.deps=t,e.depsTail=i}function T(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&!1===k(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function k(e){if(2&e.flags)return!1;if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===j))return;e.globalVersion=j;let t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!T(e)){e.flags&=-3;return}let r=i,s=m;i=e,m=!0;try{E(e);let i=e.fn();(0===t.version||g(i,e._value))&&(e._value=i,t.version++)}catch(e){throw t.version++,e}finally{i=r,m=s,x(e),e.flags&=-3}}function D(e){let{dep:t,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),t.subs===e&&(t.subs=i),!t.subs&&t.computed){t.computed.flags&=-5;for(let e=t.computed.deps;e;e=e.nextDep)D(e)}}let m=!0,A=[];function O(){A.push(m),m=!1}function I(){let e=A.pop();m=void 0===e||e}function L(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=i;i=void 0;try{t()}finally{i=e}}}let j=0;class N{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!i||!m)return;let t=this.activeLink;if(void 0===t||t.sub!==i)t=this.activeLink={dep:this,sub:i,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},i.deps?(t.prevDep=i.depsTail,i.depsTail.nextDep=t,i.depsTail=t):i.deps=i.depsTail=t,4&i.flags&&function e(t){let i=t.dep.computed;if(i&&!t.dep.subs){i.flags|=20;for(let t=i.deps;t;t=t.nextDep)e(t)}let r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=i.depsTail,t.nextDep=void 0,i.depsTail.nextDep=t,i.depsTail=t,i.deps===t&&(i.deps=e)}return t}trigger(e){this.version++,j++,this.notify(e)}notify(e){b++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{S()}}}let P=new WeakMap,V=Symbol(""),C=Symbol(""),W=Symbol("");function M(e,t,r){if(m&&i){let t=P.get(e);t||P.set(e,t=new Map);let i=t.get(r);i||t.set(r,i=new N),i.track()}}function K(e,t,i,r,s,n){let l=P.get(e);if(!l){j++;return}let o=[];if("clear"===t)o=[...l.values()];else{let s=a(e),n=s&&v(i);if(s&&"length"===i){let e=Number(r);l.forEach((t,i)=>{("length"===i||i===W||!h(i)&&i>=e)&&o.push(t)})}else{let r=e=>e&&o.push(e);switch(void 0!==i&&r(l.get(i)),n&&r(l.get(W)),t){case"add":s?n&&r(l.get("length")):(r(l.get(V)),u(e)&&r(l.get(C)));break;case"delete":!s&&(r(l.get(V)),u(e)&&r(l.get(C)));break;case"set":u(e)&&r(l.get(V))}}}for(let e of(b++,o))e.trigger();S()}function Y(e){let t=eC(e);return t===e?t:(M(t,"iterate",W),eP(e)?t:t.map(eW))}function z(e){return M(e=eC(e),"iterate",W),e}let F={__proto__:null,[Symbol.iterator](){return G(this,Symbol.iterator,eW)},concat(...e){return Y(this).concat(...e.map(e=>Y(e)))},entries(){return G(this,"entries",e=>(e[1]=eW(e[1]),e))},every(e,t){return H(this,"every",e,t)},filter(e,t){return H(this,"filter",e,t,e=>e.map(eW))},find(e,t){return H(this,"find",e,t,eW)},findIndex(e,t){return H(this,"findIndex",e,t)},findLast(e,t){return H(this,"findLast",e,t,eW)},findLastIndex(e,t){return H(this,"findLastIndex",e,t)},forEach(e,t){return H(this,"forEach",e,t)},includes(...e){return B(this,"includes",e)},indexOf(...e){return B(this,"indexOf",e)},join(e){return Y(this).join(e)},lastIndexOf(...e){return B(this,"lastIndexOf",e)},map(e,t){return H(this,"map",e,t)},pop(){return q(this,"pop")},push(...e){return q(this,"push",e)},reduce(e,...t){return U(this,"reduce",e,t)},reduceRight(e,...t){return U(this,"reduceRight",e,t)},shift(){return q(this,"shift")},some(e,t){return H(this,"some",e,t)},splice(...e){return q(this,"splice",e)},toReversed(){return Y(this).toReversed()},toSorted(e){return Y(this).toSorted(e)},toSpliced(...e){return Y(this).toSpliced(...e)},unshift(...e){return q(this,"unshift",e)},values(){return G(this,"values",eW)}};function G(e,t,i){let r=z(e),s=r[t]();return r===e||eP(e)||(s._next=s.next,s.next=()=>{let e=s._next();return e.value&&(e.value=i(e.value)),e}),s}function H(e,t,i,r,s){let n=z(e),l=!1,a=i;n!==e&&((l=!eP(e))?a=function(t,r){return i.call(this,eW(t),r,e)}:i.length>2&&(a=function(t,r){return i.call(this,t,r,e)}));let u=n[t](a,r);return l&&s?s(u):u}function U(e,t,i,r){let s=z(e),n=i;return s!==e&&(eP(e)?i.length>3&&(n=function(t,r,s){return i.call(this,t,r,s,e)}):n=function(t,r,s){return i.call(this,t,eW(r),s,e)}),s[t](n,...r)}function B(e,t,i){let r=eC(e);M(r,"iterate",W);let s=r[t](...i);return(-1===s||!1===s)&&eV(i[0])?(i[0]=eC(i[0]),r[t](...i)):s}function q(e,t,i=[]){O(),b++;let r=eC(e)[t].apply(e,i);return S(),I(),r}let J=/*! #__NO_SIDE_EFFECTS__ */function(e,t){let i=new Set(e.split(","));return e=>i.has(e)}("__proto__,__v_isRef,__isVue"),Q=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(h));function X(e){h(e)||(e=String(e));let t=eC(this);return M(t,"has",e),t.hasOwnProperty(e)}class Z{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){let r=this._isReadonly,s=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return s;if("__v_raw"===t)return i===(r?s?eA:em:s?eD:ek).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;let n=a(e);if(!r){let e;if(n&&(e=F[t]))return e;if("hasOwnProperty"===t)return X}let l=Reflect.get(e,t,eK(e)?e:i);return(h(t)?Q.has(t):J(t))?l:(r||M(e,"get",t),s)?l:eK(l)?n&&v(t)?l:l.value:f(l)?r?eI(l):eO(l):l}}class $ extends Z{constructor(e=!1){super(!1,e)}set(e,t,i,r){let s=e[t];if(!this._isShallow){let t=eN(s);if(eP(i)||eN(i)||(s=eC(s),i=eC(i)),!a(e)&&eK(s)&&!eK(i))return!t&&(s.value=i,!0)}let n=a(e)&&v(t)?Number(t)<e.length:l(e,t),u=Reflect.set(e,t,i,r);return e===eC(r)&&(n?g(i,s)&&K(e,"set",t,i):K(e,"add",t,i)),u}deleteProperty(e,t){let i=l(e,t);e[t];let r=Reflect.deleteProperty(e,t);return r&&i&&K(e,"delete",t,void 0),r}has(e,t){let i=Reflect.has(e,t);return h(t)&&Q.has(t)||M(e,"has",t),i}ownKeys(e){return M(e,"iterate",a(e)?"length":V),Reflect.ownKeys(e)}}class ee extends Z{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let et=new $,ei=new ee,er=new $(!0),es=new ee(!0),en=e=>e,el=e=>Reflect.getPrototypeOf(e);function ea(e,t,i=!1,r=!1){let s=eC(e=e.__v_raw),n=eC(t);i||(g(t,n)&&M(s,"get",t),M(s,"get",n));let{has:l}=el(s),a=r?en:i?eM:eW;return l.call(s,t)?a(e.get(t)):l.call(s,n)?a(e.get(n)):void(e!==s&&e.get(t))}function eu(e,t=!1){let i=this.__v_raw,r=eC(i),s=eC(e);return t||(g(e,s)&&M(r,"has",e),M(r,"has",s)),e===s?i.has(e):i.has(e)||i.has(s)}function eo(e,t=!1){return e=e.__v_raw,t||M(eC(e),"iterate",V),Reflect.get(e,"size",e)}function ec(e,t=!1){t||eP(e)||eN(e)||(e=eC(e));let i=eC(this);return el(i).has.call(i,e)||(i.add(e),K(i,"add",e,e)),this}function eh(e,t,i=!1){i||eP(t)||eN(t)||(t=eC(t));let r=eC(this),{has:s,get:n}=el(r),l=s.call(r,e);l||(e=eC(e),l=s.call(r,e));let a=n.call(r,e);return r.set(e,t),l?g(t,a)&&K(r,"set",e,t):K(r,"add",e,t),this}function ef(e){let t=eC(this),{has:i,get:r}=el(t),s=i.call(t,e);s||(e=eC(e),s=i.call(t,e)),r&&r.call(t,e);let n=t.delete(e);return s&&K(t,"delete",e,void 0),n}function ep(){let e=eC(this),t=0!==e.size,i=e.clear();return t&&K(e,"clear",void 0,void 0),i}function ed(e,t){return function(i,r){let s=this,n=s.__v_raw,l=eC(n),a=t?en:e?eM:eW;return e||M(l,"iterate",V),n.forEach((e,t)=>i.call(r,a(e),a(t),s))}}function e_(e,t,i){return function(...r){let s=this.__v_raw,n=eC(s),l=u(n),a="entries"===e||e===Symbol.iterator&&l,o=s[e](...r),c=i?en:t?eM:eW;return t||M(n,"iterate","keys"===e&&l?C:V),{next(){let{value:e,done:t}=o.next();return t?{value:e,done:t}:{value:a?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function ev(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[eg,ey,eR,ew]=function(){let e={get(e){return ea(this,e)},get size(){return eo(this)},has:eu,add:ec,set:eh,delete:ef,clear:ep,forEach:ed(!1,!1)},t={get(e){return ea(this,e,!1,!0)},get size(){return eo(this)},has:eu,add(e){return ec.call(this,e,!0)},set(e,t){return eh.call(this,e,t,!0)},delete:ef,clear:ep,forEach:ed(!1,!0)},i={get(e){return ea(this,e,!0)},get size(){return eo(this,!0)},has(e){return eu.call(this,e,!0)},add:ev("add"),set:ev("set"),delete:ev("delete"),clear:ev("clear"),forEach:ed(!0,!1)},r={get(e){return ea(this,e,!0,!0)},get size(){return eo(this,!0)},has(e){return eu.call(this,e,!0)},add:ev("add"),set:ev("set"),delete:ev("delete"),clear:ev("clear"),forEach:ed(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=e_(s,!1,!1),i[s]=e_(s,!0,!1),t[s]=e_(s,!1,!0),r[s]=e_(s,!0,!0)}),[e,i,t,r]}();function eb(e,t){let i=t?e?ew:eR:e?ey:eg;return(t,r,s)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(l(i,r)&&r in t?i:t,r,s)}let eS={get:eb(!1,!1)},eE={get:eb(!1,!0)},ex={get:eb(!0,!1)},eT={get:eb(!0,!0)},ek=new WeakMap,eD=new WeakMap,em=new WeakMap,eA=new WeakMap;function eO(e){return eN(e)?e:eL(e,!1,et,eS,ek)}function eI(e){return eL(e,!0,ei,ex,em)}function eL(e,t,i,r,s){if(!f(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let n=s.get(e);if(n)return n;let l=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(_(e));if(0===l)return e;let a=new Proxy(e,2===l?r:i);return s.set(e,a),a}function ej(e){return eN(e)?ej(e.__v_raw):!!(e&&e.__v_isReactive)}function eN(e){return!!(e&&e.__v_isReadonly)}function eP(e){return!!(e&&e.__v_isShallow)}function eV(e){return!!e&&!!e.__v_raw}function eC(e){let t=e&&e.__v_raw;return t?eC(t):e}let eW=e=>f(e)?eO(e):e,eM=e=>f(e)?eI(e):e;function eK(e){return!!e&&!0===e.__v_isRef}function eY(e){return ez(e,!1)}function ez(e,t){return eK(e)?e:new eF(e,t)}class eF{constructor(e,t){this.dep=new N,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:eC(e),this._value=t?e:eW(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,i=this.__v_isShallow||eP(e)||eN(e);g(e=i?e:eC(e),t)&&(this._rawValue=e,this._value=i?e:eW(e),this.dep.trigger())}}function eG(e){return eK(e)?e.value:e}let eH={get:(e,t,i)=>eG(Reflect.get(e,t,i)),set:(e,t,i,r)=>{let s=e[t];return eK(s)&&!eK(i)?(s.value=i,!0):Reflect.set(e,t,i,r)}};class eU{constructor(e){this.__v_isRef=!0;let t=this.dep=new N,{get:i,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=i,this._set=r}get value(){return this._get()}set value(e){this._set(e)}}class eB{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0}get value(){let e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){var e,t,i;return e=eC(this._object),t=this._key,null==(i=P.get(e))?void 0:i.get(t)}}class eq{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function eJ(e,t,i){let r=e[t];return eK(r)?r:new eB(e,t,i)}class eQ{constructor(e,t,i){this.fn=e,this.setter=t,this._value=void 0,this.dep=new N(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=j-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=i}notify(){i!==this&&(this.flags|=16,this.dep.notify())}get value(){let e=this.dep.track();return k(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}return e.ARRAY_ITERATE_KEY=W,e.EffectFlags={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",NO_BATCH:64,64:"NO_BATCH"},e.EffectScope=R,e.ITERATE_KEY=V,e.MAP_KEY_ITERATE_KEY=C,e.ReactiveEffect=w,e.ReactiveFlags={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},e.TrackOpTypes={GET:"get",HAS:"has",ITERATE:"iterate"},e.TriggerOpTypes={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},e.computed=function(e,t,i=!1){let r,s;return o(e)?r=e:(r=e.get,s=e.set),new eQ(r,s,i)},e.customRef=function(e){return new eU(e)},e.effect=function(e,t){e.effect instanceof w&&(e=e.effect.fn);let i=new w(e);t&&s(i,t);try{i.run()}catch(e){throw i.stop(),e}let r=i.run.bind(i);return r.effect=i,r},e.effectScope=function(e){return new R(e)},e.enableTracking=function(){A.push(m),m=!0},e.getCurrentScope=function(){return t},e.isProxy=eV,e.isReactive=ej,e.isReadonly=eN,e.isRef=eK,e.isShallow=eP,e.markRaw=function(e){return Object.isExtensible(e)&&y(e,"__v_skip",!0),e},e.onEffectCleanup=function(e,t=!1){i instanceof w&&(i.cleanup=e)},e.onScopeDispose=function(e,i=!1){t&&t.cleanups.push(e)},e.pauseTracking=O,e.proxyRefs=function(e){return ej(e)?e:new Proxy(e,eH)},e.reactive=eO,e.reactiveReadArray=Y,e.readonly=eI,e.ref=eY,e.resetTracking=I,e.shallowReactive=function(e){return eL(e,!1,er,eE,eD)},e.shallowReadArray=z,e.shallowReadonly=function(e){return eL(e,!0,es,eT,eA)},e.shallowRef=function(e){return ez(e,!0)},e.stop=function(e){e.effect.stop()},e.toRaw=eC,e.toReactive=eW,e.toReadonly=eM,e.toRef=function(e,t,i){return eK(e)?e:o(e)?new eq(e):f(e)&&arguments.length>1?eJ(e,t,i):eY(e)},e.toRefs=function(e){let t=a(e)?Array(e.length):{};for(let i in e)t[i]=eJ(e,i);return t},e.toValue=function(e){return o(e)?e():eG(e)},e.track=M,e.trigger=K,e.triggerRef=function(e){e.dep.trigger()},e.unref=eG,e}({});
5
+ **/var VueReactivity=function(e){"use strict";let t,i,s;let r=Object.assign,n=Object.prototype.hasOwnProperty,l=(e,t)=>n.call(e,t),a=Array.isArray,u=e=>"[object Map]"===d(e),o=e=>"function"==typeof e,h=e=>"string"==typeof e,c=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,d=e=>p.call(e),_=e=>d(e).slice(8,-1),v=e=>h(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,g=(e,t)=>!Object.is(e,t),y=(e,t,i,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:i})};class R{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=t,!e&&t&&(this.index=(t.scopes||(t.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){if(this._isPaused=!0,this.scopes)for(let e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(let e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){if(this._isPaused=!1,this.scopes)for(let e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(let e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let i=t;try{return t=this,e()}finally{t=i}}}on(){t=this}off(){t=this.parent}stop(e){if(this._active){let t,i;for(t=0,i=this.effects.length;t<i;t++)this.effects[t].stop();for(t=0,i=this.cleanups.length;t<i;t++)this.cleanups[t]();if(this.scopes)for(t=0,i=this.scopes.length;t<i;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}let w=new WeakSet;class b{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,t&&t.active&&t.effects.push(this)}pause(){this.flags|=128}resume(){128&this.flags&&(this.flags&=-129,w.has(this)&&(w.delete(this),this.trigger()))}notify(){if(!(2&this.flags)||32&this.flags){if(64&this.flags)return this.trigger();8&this.flags||(this.flags|=8,this.nextEffect=s,s=this)}}run(){if(!(1&this.flags))return this.fn();this.flags|=2,P(this),x(this);let e=i,t=A;i=this,A=!0;try{return this.fn()}finally{T(this),i=e,A=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)D(e);this.deps=this.depsTail=void 0,P(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){128&this.flags?w.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){k(this)&&this.run()}get dirty(){return k(this)}}let S=0;function E(){let e;if(S>1){S--;return}for(;s;){let t=s;for(s=void 0;t;){let i=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=i}}if(S--,e)throw e}function x(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function T(e){let t;let i=e.depsTail;for(let e=i;e;e=e.prevDep)-1===e.version?(e===i&&(i=e.prevDep),D(e),function(e){let{prevDep:t,nextDep:i}=e;t&&(t.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=t,e.nextDep=void 0)}(e)):t=e,e.dep.activeLink=e.prevActiveLink,e.prevActiveLink=void 0;e.deps=t,e.depsTail=i}function k(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&!1===m(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function m(e){if(2&e.flags)return!1;if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===j))return;e.globalVersion=j;let t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!k(e)){e.flags&=-3;return}let s=i,r=A;i=e,A=!0;try{x(e);let i=e.fn();(0===t.version||g(i,e._value))&&(e._value=i,t.version++)}catch(e){throw t.version++,e}finally{i=s,A=r,T(e),e.flags&=-3}}function D(e){let{dep:t,prevSub:i,nextSub:s}=e;if(i&&(i.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=i,e.nextSub=void 0),t.subs===e&&(t.subs=i),!t.subs&&t.computed){t.computed.flags&=-5;for(let e=t.computed.deps;e;e=e.nextDep)D(e)}}let A=!0,O=[];function I(){O.push(A),A=!1}function L(){let e=O.pop();A=void 0===e||e}function P(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=i;i=void 0;try{t()}finally{i=e}}}let j=0;class N{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!i||!A)return;let t=this.activeLink;if(void 0===t||t.sub!==i)t=this.activeLink={dep:this,sub:i,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},i.deps?(t.prevDep=i.depsTail,i.depsTail.nextDep=t,i.depsTail=t):i.deps=i.depsTail=t,4&i.flags&&function e(t){let i=t.dep.computed;if(i&&!t.dep.subs){i.flags|=20;for(let t=i.deps;t;t=t.nextDep)e(t)}let s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=i.depsTail,t.nextDep=void 0,i.depsTail.nextDep=t,i.depsTail=t,i.deps===t&&(i.deps=e)}return t}trigger(e){this.version++,j++,this.notify(e)}notify(e){S++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{E()}}}let V=new WeakMap,C=Symbol(""),W=Symbol(""),M=Symbol("");function K(e,t,s){if(A&&i){let t=V.get(e);t||V.set(e,t=new Map);let i=t.get(s);i||t.set(s,i=new N),i.track()}}function Y(e,t,i,s,r,n){let l=V.get(e);if(!l){j++;return}let o=[];if("clear"===t)o=[...l.values()];else{let r=a(e),n=r&&v(i);if(r&&"length"===i){let e=Number(s);l.forEach((t,i)=>{("length"===i||i===M||!c(i)&&i>=e)&&o.push(t)})}else{let s=e=>e&&o.push(e);switch(void 0!==i&&s(l.get(i)),n&&s(l.get(M)),t){case"add":r?n&&s(l.get("length")):(s(l.get(C)),u(e)&&s(l.get(W)));break;case"delete":!r&&(s(l.get(C)),u(e)&&s(l.get(W)));break;case"set":u(e)&&s(l.get(C))}}}for(let e of(S++,o))e.trigger();E()}function z(e){let t=eW(e);return t===e?t:(K(t,"iterate",M),eV(e)?t:t.map(eM))}function U(e){return K(e=eW(e),"iterate",M),e}let F={__proto__:null,[Symbol.iterator](){return G(this,Symbol.iterator,eM)},concat(...e){return z(this).concat(...e.map(e=>z(e)))},entries(){return G(this,"entries",e=>(e[1]=eM(e[1]),e))},every(e,t){return H(this,"every",e,t)},filter(e,t){return H(this,"filter",e,t,e=>e.map(eM))},find(e,t){return H(this,"find",e,t,eM)},findIndex(e,t){return H(this,"findIndex",e,t)},findLast(e,t){return H(this,"findLast",e,t,eM)},findLastIndex(e,t){return H(this,"findLastIndex",e,t)},forEach(e,t){return H(this,"forEach",e,t)},includes(...e){return q(this,"includes",e)},indexOf(...e){return q(this,"indexOf",e)},join(e){return z(this).join(e)},lastIndexOf(...e){return q(this,"lastIndexOf",e)},map(e,t){return H(this,"map",e,t)},pop(){return J(this,"pop")},push(...e){return J(this,"push",e)},reduce(e,...t){return B(this,"reduce",e,t)},reduceRight(e,...t){return B(this,"reduceRight",e,t)},shift(){return J(this,"shift")},some(e,t){return H(this,"some",e,t)},splice(...e){return J(this,"splice",e)},toReversed(){return z(this).toReversed()},toSorted(e){return z(this).toSorted(e)},toSpliced(...e){return z(this).toSpliced(...e)},unshift(...e){return J(this,"unshift",e)},values(){return G(this,"values",eM)}};function G(e,t,i){let s=U(e),r=s[t]();return s===e||eV(e)||(r._next=r.next,r.next=()=>{let e=r._next();return e.value&&(e.value=i(e.value)),e}),r}function H(e,t,i,s,r){let n=U(e),l=!1,a=i;n!==e&&((l=!eV(e))?a=function(t,s){return i.call(this,eM(t),s,e)}:i.length>2&&(a=function(t,s){return i.call(this,t,s,e)}));let u=n[t](a,s);return l&&r?r(u):u}function B(e,t,i,s){let r=U(e),n=i;return r!==e&&(eV(e)?i.length>3&&(n=function(t,s,r){return i.call(this,t,s,r,e)}):n=function(t,s,r){return i.call(this,t,eM(s),r,e)}),r[t](n,...s)}function q(e,t,i){let s=eW(e);K(s,"iterate",M);let r=s[t](...i);return(-1===r||!1===r)&&eC(i[0])?(i[0]=eW(i[0]),s[t](...i)):r}function J(e,t,i=[]){I(),S++;let s=eW(e)[t].apply(e,i);return E(),L(),s}let Q=/*! #__NO_SIDE_EFFECTS__ */function(e,t){let i=new Set(e.split(","));return e=>i.has(e)}("__proto__,__v_isRef,__isVue"),X=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(c));function Z(e){c(e)||(e=String(e));let t=eW(this);return K(t,"has",e),t.hasOwnProperty(e)}class ${constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,i){let s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return i===(s?r?eO:eA:r?eD:em).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;let n=a(e);if(!s){let e;if(n&&(e=F[t]))return e;if("hasOwnProperty"===t)return Z}let l=Reflect.get(e,t,eY(e)?e:i);return(c(t)?X.has(t):Q(t))?l:(s||K(e,"get",t),r)?l:eY(l)?n&&v(t)?l:l.value:f(l)?s?eL(l):eI(l):l}}class ee extends ${constructor(e=!1){super(!1,e)}set(e,t,i,s){let r=e[t];if(!this._isShallow){let t=eN(r);if(eV(i)||eN(i)||(r=eW(r),i=eW(i)),!a(e)&&eY(r)&&!eY(i))return!t&&(r.value=i,!0)}let n=a(e)&&v(t)?Number(t)<e.length:l(e,t),u=Reflect.set(e,t,i,s);return e===eW(s)&&(n?g(i,r)&&Y(e,"set",t,i):Y(e,"add",t,i)),u}deleteProperty(e,t){let i=l(e,t);e[t];let s=Reflect.deleteProperty(e,t);return s&&i&&Y(e,"delete",t,void 0),s}has(e,t){let i=Reflect.has(e,t);return c(t)&&X.has(t)||K(e,"has",t),i}ownKeys(e){return K(e,"iterate",a(e)?"length":C),Reflect.ownKeys(e)}}class et extends ${constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let ei=new ee,es=new et,er=new ee(!0),en=new et(!0),el=e=>e,ea=e=>Reflect.getPrototypeOf(e);function eu(e,t,i=!1,s=!1){let r=eW(e=e.__v_raw),n=eW(t);i||(g(t,n)&&K(r,"get",t),K(r,"get",n));let{has:l}=ea(r),a=s?el:i?eK:eM;return l.call(r,t)?a(e.get(t)):l.call(r,n)?a(e.get(n)):void(e!==r&&e.get(t))}function eo(e,t=!1){let i=this.__v_raw,s=eW(i),r=eW(e);return t||(g(e,r)&&K(s,"has",e),K(s,"has",r)),e===r?i.has(e):i.has(e)||i.has(r)}function eh(e,t=!1){return e=e.__v_raw,t||K(eW(e),"iterate",C),Reflect.get(e,"size",e)}function ec(e,t=!1){t||eV(e)||eN(e)||(e=eW(e));let i=eW(this);return ea(i).has.call(i,e)||(i.add(e),Y(i,"add",e,e)),this}function ef(e,t,i=!1){i||eV(t)||eN(t)||(t=eW(t));let s=eW(this),{has:r,get:n}=ea(s),l=r.call(s,e);l||(e=eW(e),l=r.call(s,e));let a=n.call(s,e);return s.set(e,t),l?g(t,a)&&Y(s,"set",e,t):Y(s,"add",e,t),this}function ep(e){let t=eW(this),{has:i,get:s}=ea(t),r=i.call(t,e);r||(e=eW(e),r=i.call(t,e)),s&&s.call(t,e);let n=t.delete(e);return r&&Y(t,"delete",e,void 0),n}function ed(){let e=eW(this),t=0!==e.size,i=e.clear();return t&&Y(e,"clear",void 0,void 0),i}function e_(e,t){return function(i,s){let r=this,n=r.__v_raw,l=eW(n),a=t?el:e?eK:eM;return e||K(l,"iterate",C),n.forEach((e,t)=>i.call(s,a(e),a(t),r))}}function ev(e,t,i){return function(...s){let r=this.__v_raw,n=eW(r),l=u(n),a="entries"===e||e===Symbol.iterator&&l,o=r[e](...s),h=i?el:t?eK:eM;return t||K(n,"iterate","keys"===e&&l?W:C),{next(){let{value:e,done:t}=o.next();return t?{value:e,done:t}:{value:a?[h(e[0]),h(e[1])]:h(e),done:t}},[Symbol.iterator](){return this}}}}function eg(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[ey,eR,ew,eb]=function(){let e={get(e){return eu(this,e)},get size(){return eh(this)},has:eo,add:ec,set:ef,delete:ep,clear:ed,forEach:e_(!1,!1)},t={get(e){return eu(this,e,!1,!0)},get size(){return eh(this)},has:eo,add(e){return ec.call(this,e,!0)},set(e,t){return ef.call(this,e,t,!0)},delete:ep,clear:ed,forEach:e_(!1,!0)},i={get(e){return eu(this,e,!0)},get size(){return eh(this,!0)},has(e){return eo.call(this,e,!0)},add:eg("add"),set:eg("set"),delete:eg("delete"),clear:eg("clear"),forEach:e_(!0,!1)},s={get(e){return eu(this,e,!0,!0)},get size(){return eh(this,!0)},has(e){return eo.call(this,e,!0)},add:eg("add"),set:eg("set"),delete:eg("delete"),clear:eg("clear"),forEach:e_(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=ev(r,!1,!1),i[r]=ev(r,!0,!1),t[r]=ev(r,!1,!0),s[r]=ev(r,!0,!0)}),[e,i,t,s]}();function eS(e,t){let i=t?e?eb:ew:e?eR:ey;return(t,s,r)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(l(i,s)&&s in t?i:t,s,r)}let eE={get:eS(!1,!1)},ex={get:eS(!1,!0)},eT={get:eS(!0,!1)},ek={get:eS(!0,!0)},em=new WeakMap,eD=new WeakMap,eA=new WeakMap,eO=new WeakMap;function eI(e){return eN(e)?e:eP(e,!1,ei,eE,em)}function eL(e){return eP(e,!0,es,eT,eA)}function eP(e,t,i,s,r){if(!f(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let n=r.get(e);if(n)return n;let l=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(_(e));if(0===l)return e;let a=new Proxy(e,2===l?s:i);return r.set(e,a),a}function ej(e){return eN(e)?ej(e.__v_raw):!!(e&&e.__v_isReactive)}function eN(e){return!!(e&&e.__v_isReadonly)}function eV(e){return!!(e&&e.__v_isShallow)}function eC(e){return!!e&&!!e.__v_raw}function eW(e){let t=e&&e.__v_raw;return t?eW(t):e}let eM=e=>f(e)?eI(e):e,eK=e=>f(e)?eL(e):e;function eY(e){return!!e&&!0===e.__v_isRef}function ez(e){return eU(e,!1)}function eU(e,t){return eY(e)?e:new eF(e,t)}class eF{constructor(e,t){this.dep=new N,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:eW(e),this._value=t?e:eM(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,i=this.__v_isShallow||eV(e)||eN(e);g(e=i?e:eW(e),t)&&(this._rawValue=e,this._value=i?e:eM(e),this.dep.trigger())}}function eG(e){return eY(e)?e.value:e}let eH={get:(e,t,i)=>eG(Reflect.get(e,t,i)),set:(e,t,i,s)=>{let r=e[t];return eY(r)&&!eY(i)?(r.value=i,!0):Reflect.set(e,t,i,s)}};class eB{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new N,{get:i,set:s}=e(t.track.bind(t),t.trigger.bind(t));this._get=i,this._set=s}get value(){return this._value=this._get()}set value(e){this._set(e)}}class eq{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){let e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){var e,t,i;return e=eW(this._object),t=this._key,null==(i=V.get(e))?void 0:i.get(t)}}class eJ{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function eQ(e,t,i){let s=e[t];return eY(s)?s:new eq(e,t,i)}class eX{constructor(e,t,i){this.fn=e,this.setter=t,this._value=void 0,this.dep=new N(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=j-1,this.effect=this,this.__v_isReadonly=!t,this.isSSR=i}notify(){i!==this&&(this.flags|=16,this.dep.notify())}get value(){let e=this.dep.track();return m(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}return e.ARRAY_ITERATE_KEY=M,e.EffectFlags={ACTIVE:1,1:"ACTIVE",RUNNING:2,2:"RUNNING",TRACKING:4,4:"TRACKING",NOTIFIED:8,8:"NOTIFIED",DIRTY:16,16:"DIRTY",ALLOW_RECURSE:32,32:"ALLOW_RECURSE",NO_BATCH:64,64:"NO_BATCH",PAUSED:128,128:"PAUSED"},e.EffectScope=R,e.ITERATE_KEY=C,e.MAP_KEY_ITERATE_KEY=W,e.ReactiveEffect=b,e.ReactiveFlags={SKIP:"__v_skip",IS_REACTIVE:"__v_isReactive",IS_READONLY:"__v_isReadonly",IS_SHALLOW:"__v_isShallow",RAW:"__v_raw",IS_REF:"__v_isRef"},e.TrackOpTypes={GET:"get",HAS:"has",ITERATE:"iterate"},e.TriggerOpTypes={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},e.computed=function(e,t,i=!1){let s,r;return o(e)?s=e:(s=e.get,r=e.set),new eX(s,r,i)},e.customRef=function(e){return new eB(e)},e.effect=function(e,t){e.effect instanceof b&&(e=e.effect.fn);let i=new b(e);t&&r(i,t);try{i.run()}catch(e){throw i.stop(),e}let s=i.run.bind(i);return s.effect=i,s},e.effectScope=function(e){return new R(e)},e.enableTracking=function(){O.push(A),A=!0},e.getCurrentScope=function(){return t},e.isProxy=eC,e.isReactive=ej,e.isReadonly=eN,e.isRef=eY,e.isShallow=eV,e.markRaw=function(e){return Object.isExtensible(e)&&y(e,"__v_skip",!0),e},e.onEffectCleanup=function(e,t=!1){i instanceof b&&(i.cleanup=e)},e.onScopeDispose=function(e,i=!1){t&&t.cleanups.push(e)},e.pauseTracking=I,e.proxyRefs=function(e){return ej(e)?e:new Proxy(e,eH)},e.reactive=eI,e.reactiveReadArray=z,e.readonly=eL,e.ref=ez,e.resetTracking=L,e.shallowReactive=function(e){return eP(e,!1,er,ex,eD)},e.shallowReadArray=U,e.shallowReadonly=function(e){return eP(e,!0,en,ek,eO)},e.shallowRef=function(e){return eU(e,!0)},e.stop=function(e){e.effect.stop()},e.toRaw=eW,e.toReactive=eM,e.toReadonly=eK,e.toRef=function(e,t,i){return eY(e)?e:o(e)?new eJ(e):f(e)&&arguments.length>1?eQ(e,t,i):ez(e)},e.toRefs=function(e){let t=a(e)?Array(e.length):{};for(let i in e)t[i]=eQ(e,i);return t},e.toValue=function(e){return o(e)?e():eG(e)},e.track=K,e.trigger=Y,e.triggerRef=function(e){e.dep.trigger()},e.unref=eG,e}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/reactivity",
3
- "version": "3.5.0-alpha.5",
3
+ "version": "3.5.0-beta.1",
4
4
  "description": "@vue/reactivity",
5
5
  "main": "index.js",
6
6
  "module": "dist/reactivity.esm-bundler.js",
@@ -50,6 +50,6 @@
50
50
  },
51
51
  "homepage": "https://github.com/vuejs/core/tree/main/packages/reactivity#readme",
52
52
  "dependencies": {
53
- "@vue/shared": "3.5.0-alpha.5"
53
+ "@vue/shared": "3.5.0-beta.1"
54
54
  }
55
55
  }