@vue/reactivity 3.5.0-beta.1 → 3.5.0-beta.2

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-beta.1
2
+ * @vue/reactivity v3.5.0-beta.2
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -154,10 +154,8 @@ const EffectFlags = {
154
154
  "16": "DIRTY",
155
155
  "ALLOW_RECURSE": 32,
156
156
  "32": "ALLOW_RECURSE",
157
- "NO_BATCH": 64,
158
- "64": "NO_BATCH",
159
- "PAUSED": 128,
160
- "128": "PAUSED"
157
+ "PAUSED": 64,
158
+ "64": "PAUSED"
161
159
  };
162
160
  const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
163
161
  class ReactiveEffect {
@@ -189,11 +187,11 @@ class ReactiveEffect {
189
187
  }
190
188
  }
191
189
  pause() {
192
- this.flags |= 128;
190
+ this.flags |= 64;
193
191
  }
194
192
  resume() {
195
- if (this.flags & 128) {
196
- this.flags &= ~128;
193
+ if (this.flags & 64) {
194
+ this.flags &= ~64;
197
195
  if (pausedQueueEffects.has(this)) {
198
196
  pausedQueueEffects.delete(this);
199
197
  this.trigger();
@@ -207,9 +205,6 @@ class ReactiveEffect {
207
205
  if (this.flags & 2 && !(this.flags & 32)) {
208
206
  return;
209
207
  }
210
- if (this.flags & 64) {
211
- return this.trigger();
212
- }
213
208
  if (!(this.flags & 8)) {
214
209
  this.flags |= 8;
215
210
  this.nextEffect = batchedEffect;
@@ -253,7 +248,7 @@ class ReactiveEffect {
253
248
  }
254
249
  }
255
250
  trigger() {
256
- if (this.flags & 128) {
251
+ if (this.flags & 64) {
257
252
  pausedQueueEffects.add(this);
258
253
  } else if (this.scheduler) {
259
254
  this.scheduler();
@@ -283,6 +278,7 @@ function endBatch() {
283
278
  batchDepth--;
284
279
  return;
285
280
  }
281
+ batchDepth--;
286
282
  let error;
287
283
  while (batchedEffect) {
288
284
  let e = batchedEffect;
@@ -301,7 +297,6 @@ function endBatch() {
301
297
  e = next;
302
298
  }
303
299
  }
304
- batchDepth--;
305
300
  if (error) throw error;
306
301
  }
307
302
  function prepareDeps(sub) {
@@ -717,26 +712,26 @@ const arrayInstrumentations = {
717
712
  });
718
713
  },
719
714
  every(fn, thisArg) {
720
- return apply(this, "every", fn, thisArg);
715
+ return apply(this, "every", fn, thisArg, void 0, arguments);
721
716
  },
722
717
  filter(fn, thisArg) {
723
- return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive));
718
+ return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments);
724
719
  },
725
720
  find(fn, thisArg) {
726
- return apply(this, "find", fn, thisArg, toReactive);
721
+ return apply(this, "find", fn, thisArg, toReactive, arguments);
727
722
  },
728
723
  findIndex(fn, thisArg) {
729
- return apply(this, "findIndex", fn, thisArg);
724
+ return apply(this, "findIndex", fn, thisArg, void 0, arguments);
730
725
  },
731
726
  findLast(fn, thisArg) {
732
- return apply(this, "findLast", fn, thisArg, toReactive);
727
+ return apply(this, "findLast", fn, thisArg, toReactive, arguments);
733
728
  },
734
729
  findLastIndex(fn, thisArg) {
735
- return apply(this, "findLastIndex", fn, thisArg);
730
+ return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
736
731
  },
737
732
  // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
738
733
  forEach(fn, thisArg) {
739
- return apply(this, "forEach", fn, thisArg);
734
+ return apply(this, "forEach", fn, thisArg, void 0, arguments);
740
735
  },
741
736
  includes(...args) {
742
737
  return searchProxy(this, "includes", args);
@@ -752,7 +747,7 @@ const arrayInstrumentations = {
752
747
  return searchProxy(this, "lastIndexOf", args);
753
748
  },
754
749
  map(fn, thisArg) {
755
- return apply(this, "map", fn, thisArg);
750
+ return apply(this, "map", fn, thisArg, void 0, arguments);
756
751
  },
757
752
  pop() {
758
753
  return noTracking(this, "pop");
@@ -771,7 +766,7 @@ const arrayInstrumentations = {
771
766
  },
772
767
  // slice could use ARRAY_ITERATE but also seems to beg for range tracking
773
768
  some(fn, thisArg) {
774
- return apply(this, "some", fn, thisArg);
769
+ return apply(this, "some", fn, thisArg, void 0, arguments);
775
770
  },
776
771
  splice(...args) {
777
772
  return noTracking(this, "splice", args);
@@ -807,8 +802,13 @@ function iterator(self, method, wrapValue) {
807
802
  }
808
803
  return iter;
809
804
  }
810
- function apply(self, method, fn, thisArg, wrappedRetFn) {
805
+ const arrayProto = Array.prototype;
806
+ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
811
807
  const arr = shallowReadArray(self);
808
+ let methodFn;
809
+ if ((methodFn = arr[method]) !== arrayProto[method]) {
810
+ return methodFn.apply(arr, args);
811
+ }
812
812
  let needsWrap = false;
813
813
  let wrappedFn = fn;
814
814
  if (arr !== self) {
@@ -823,7 +823,7 @@ function apply(self, method, fn, thisArg, wrappedRetFn) {
823
823
  };
824
824
  }
825
825
  }
826
- const result = arr[method](wrappedFn, thisArg);
826
+ const result = methodFn.call(arr, wrappedFn, thisArg);
827
827
  return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
828
828
  }
829
829
  function reduce(self, method, fn, args) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/reactivity v3.5.0-beta.1
2
+ * @vue/reactivity v3.5.0-beta.2
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -144,10 +144,8 @@ const EffectFlags = {
144
144
  "16": "DIRTY",
145
145
  "ALLOW_RECURSE": 32,
146
146
  "32": "ALLOW_RECURSE",
147
- "NO_BATCH": 64,
148
- "64": "NO_BATCH",
149
- "PAUSED": 128,
150
- "128": "PAUSED"
147
+ "PAUSED": 64,
148
+ "64": "PAUSED"
151
149
  };
152
150
  const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
153
151
  class ReactiveEffect {
@@ -179,11 +177,11 @@ class ReactiveEffect {
179
177
  }
180
178
  }
181
179
  pause() {
182
- this.flags |= 128;
180
+ this.flags |= 64;
183
181
  }
184
182
  resume() {
185
- if (this.flags & 128) {
186
- this.flags &= ~128;
183
+ if (this.flags & 64) {
184
+ this.flags &= ~64;
187
185
  if (pausedQueueEffects.has(this)) {
188
186
  pausedQueueEffects.delete(this);
189
187
  this.trigger();
@@ -197,9 +195,6 @@ class ReactiveEffect {
197
195
  if (this.flags & 2 && !(this.flags & 32)) {
198
196
  return;
199
197
  }
200
- if (this.flags & 64) {
201
- return this.trigger();
202
- }
203
198
  if (!(this.flags & 8)) {
204
199
  this.flags |= 8;
205
200
  this.nextEffect = batchedEffect;
@@ -238,7 +233,7 @@ class ReactiveEffect {
238
233
  }
239
234
  }
240
235
  trigger() {
241
- if (this.flags & 128) {
236
+ if (this.flags & 64) {
242
237
  pausedQueueEffects.add(this);
243
238
  } else if (this.scheduler) {
244
239
  this.scheduler();
@@ -268,6 +263,7 @@ function endBatch() {
268
263
  batchDepth--;
269
264
  return;
270
265
  }
266
+ batchDepth--;
271
267
  let error;
272
268
  while (batchedEffect) {
273
269
  let e = batchedEffect;
@@ -286,7 +282,6 @@ function endBatch() {
286
282
  e = next;
287
283
  }
288
284
  }
289
- batchDepth--;
290
285
  if (error) throw error;
291
286
  }
292
287
  function prepareDeps(sub) {
@@ -658,26 +653,26 @@ const arrayInstrumentations = {
658
653
  });
659
654
  },
660
655
  every(fn, thisArg) {
661
- return apply(this, "every", fn, thisArg);
656
+ return apply(this, "every", fn, thisArg, void 0, arguments);
662
657
  },
663
658
  filter(fn, thisArg) {
664
- return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive));
659
+ return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments);
665
660
  },
666
661
  find(fn, thisArg) {
667
- return apply(this, "find", fn, thisArg, toReactive);
662
+ return apply(this, "find", fn, thisArg, toReactive, arguments);
668
663
  },
669
664
  findIndex(fn, thisArg) {
670
- return apply(this, "findIndex", fn, thisArg);
665
+ return apply(this, "findIndex", fn, thisArg, void 0, arguments);
671
666
  },
672
667
  findLast(fn, thisArg) {
673
- return apply(this, "findLast", fn, thisArg, toReactive);
668
+ return apply(this, "findLast", fn, thisArg, toReactive, arguments);
674
669
  },
675
670
  findLastIndex(fn, thisArg) {
676
- return apply(this, "findLastIndex", fn, thisArg);
671
+ return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
677
672
  },
678
673
  // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
679
674
  forEach(fn, thisArg) {
680
- return apply(this, "forEach", fn, thisArg);
675
+ return apply(this, "forEach", fn, thisArg, void 0, arguments);
681
676
  },
682
677
  includes(...args) {
683
678
  return searchProxy(this, "includes", args);
@@ -693,7 +688,7 @@ const arrayInstrumentations = {
693
688
  return searchProxy(this, "lastIndexOf", args);
694
689
  },
695
690
  map(fn, thisArg) {
696
- return apply(this, "map", fn, thisArg);
691
+ return apply(this, "map", fn, thisArg, void 0, arguments);
697
692
  },
698
693
  pop() {
699
694
  return noTracking(this, "pop");
@@ -712,7 +707,7 @@ const arrayInstrumentations = {
712
707
  },
713
708
  // slice could use ARRAY_ITERATE but also seems to beg for range tracking
714
709
  some(fn, thisArg) {
715
- return apply(this, "some", fn, thisArg);
710
+ return apply(this, "some", fn, thisArg, void 0, arguments);
716
711
  },
717
712
  splice(...args) {
718
713
  return noTracking(this, "splice", args);
@@ -748,8 +743,13 @@ function iterator(self, method, wrapValue) {
748
743
  }
749
744
  return iter;
750
745
  }
751
- function apply(self, method, fn, thisArg, wrappedRetFn) {
746
+ const arrayProto = Array.prototype;
747
+ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
752
748
  const arr = shallowReadArray(self);
749
+ let methodFn;
750
+ if ((methodFn = arr[method]) !== arrayProto[method]) {
751
+ return methodFn.apply(arr, args);
752
+ }
753
753
  let needsWrap = false;
754
754
  let wrappedFn = fn;
755
755
  if (arr !== self) {
@@ -764,7 +764,7 @@ function apply(self, method, fn, thisArg, wrappedRetFn) {
764
764
  };
765
765
  }
766
766
  }
767
- const result = arr[method](wrappedFn, thisArg);
767
+ const result = methodFn.call(arr, wrappedFn, thisArg);
768
768
  return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
769
769
  }
770
770
  function reduce(self, method, fn, args) {
@@ -278,8 +278,7 @@ export declare enum EffectFlags {
278
278
  NOTIFIED = 8,
279
279
  DIRTY = 16,
280
280
  ALLOW_RECURSE = 32,
281
- NO_BATCH = 64,
282
- PAUSED = 128
281
+ PAUSED = 64
283
282
  }
284
283
  /**
285
284
  * Subscriber is a type that tracks (or subscribes to) a list of deps.
@@ -342,16 +341,20 @@ export declare function resetTracking(): void;
342
341
  export declare function onEffectCleanup(fn: () => void, failSilently?: boolean): void;
343
342
 
344
343
  declare const ComputedRefSymbol: unique symbol;
345
- export interface ComputedRef<T = any> extends WritableComputedRef<T> {
346
- readonly value: T;
344
+ declare const WritableComputedRefSymbol: unique symbol;
345
+ interface BaseComputedRef<T, S = T> extends Ref<T, S> {
347
346
  [ComputedRefSymbol]: true;
348
- }
349
- export interface WritableComputedRef<T, S = T> extends Ref<T, S> {
350
347
  /**
351
348
  * @deprecated computed no longer uses effect
352
349
  */
353
350
  effect: ComputedRefImpl;
354
351
  }
352
+ export interface ComputedRef<T = any> extends BaseComputedRef<T> {
353
+ readonly value: T;
354
+ }
355
+ export interface WritableComputedRef<T, S = T> extends BaseComputedRef<T, S> {
356
+ [WritableComputedRefSymbol]: true;
357
+ }
355
358
  export type ComputedGetter<T> = (oldValue?: T) => T;
356
359
  export type ComputedSetter<T> = (newValue: T) => void;
357
360
  export interface WritableComputedOptions<T, S = T> {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/reactivity v3.5.0-beta.1
2
+ * @vue/reactivity v3.5.0-beta.2
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -190,10 +190,8 @@ const EffectFlags = {
190
190
  "16": "DIRTY",
191
191
  "ALLOW_RECURSE": 32,
192
192
  "32": "ALLOW_RECURSE",
193
- "NO_BATCH": 64,
194
- "64": "NO_BATCH",
195
- "PAUSED": 128,
196
- "128": "PAUSED"
193
+ "PAUSED": 64,
194
+ "64": "PAUSED"
197
195
  };
198
196
  const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
199
197
  class ReactiveEffect {
@@ -225,11 +223,11 @@ class ReactiveEffect {
225
223
  }
226
224
  }
227
225
  pause() {
228
- this.flags |= 128;
226
+ this.flags |= 64;
229
227
  }
230
228
  resume() {
231
- if (this.flags & 128) {
232
- this.flags &= ~128;
229
+ if (this.flags & 64) {
230
+ this.flags &= ~64;
233
231
  if (pausedQueueEffects.has(this)) {
234
232
  pausedQueueEffects.delete(this);
235
233
  this.trigger();
@@ -243,9 +241,6 @@ class ReactiveEffect {
243
241
  if (this.flags & 2 && !(this.flags & 32)) {
244
242
  return;
245
243
  }
246
- if (this.flags & 64) {
247
- return this.trigger();
248
- }
249
244
  if (!(this.flags & 8)) {
250
245
  this.flags |= 8;
251
246
  this.nextEffect = batchedEffect;
@@ -289,7 +284,7 @@ class ReactiveEffect {
289
284
  }
290
285
  }
291
286
  trigger() {
292
- if (this.flags & 128) {
287
+ if (this.flags & 64) {
293
288
  pausedQueueEffects.add(this);
294
289
  } else if (this.scheduler) {
295
290
  this.scheduler();
@@ -319,6 +314,7 @@ function endBatch() {
319
314
  batchDepth--;
320
315
  return;
321
316
  }
317
+ batchDepth--;
322
318
  let error;
323
319
  while (batchedEffect) {
324
320
  let e = batchedEffect;
@@ -337,7 +333,6 @@ function endBatch() {
337
333
  e = next;
338
334
  }
339
335
  }
340
- batchDepth--;
341
336
  if (error) throw error;
342
337
  }
343
338
  function prepareDeps(sub) {
@@ -753,26 +748,26 @@ const arrayInstrumentations = {
753
748
  });
754
749
  },
755
750
  every(fn, thisArg) {
756
- return apply(this, "every", fn, thisArg);
751
+ return apply(this, "every", fn, thisArg, void 0, arguments);
757
752
  },
758
753
  filter(fn, thisArg) {
759
- return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive));
754
+ return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments);
760
755
  },
761
756
  find(fn, thisArg) {
762
- return apply(this, "find", fn, thisArg, toReactive);
757
+ return apply(this, "find", fn, thisArg, toReactive, arguments);
763
758
  },
764
759
  findIndex(fn, thisArg) {
765
- return apply(this, "findIndex", fn, thisArg);
760
+ return apply(this, "findIndex", fn, thisArg, void 0, arguments);
766
761
  },
767
762
  findLast(fn, thisArg) {
768
- return apply(this, "findLast", fn, thisArg, toReactive);
763
+ return apply(this, "findLast", fn, thisArg, toReactive, arguments);
769
764
  },
770
765
  findLastIndex(fn, thisArg) {
771
- return apply(this, "findLastIndex", fn, thisArg);
766
+ return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
772
767
  },
773
768
  // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
774
769
  forEach(fn, thisArg) {
775
- return apply(this, "forEach", fn, thisArg);
770
+ return apply(this, "forEach", fn, thisArg, void 0, arguments);
776
771
  },
777
772
  includes(...args) {
778
773
  return searchProxy(this, "includes", args);
@@ -788,7 +783,7 @@ const arrayInstrumentations = {
788
783
  return searchProxy(this, "lastIndexOf", args);
789
784
  },
790
785
  map(fn, thisArg) {
791
- return apply(this, "map", fn, thisArg);
786
+ return apply(this, "map", fn, thisArg, void 0, arguments);
792
787
  },
793
788
  pop() {
794
789
  return noTracking(this, "pop");
@@ -807,7 +802,7 @@ const arrayInstrumentations = {
807
802
  },
808
803
  // slice could use ARRAY_ITERATE but also seems to beg for range tracking
809
804
  some(fn, thisArg) {
810
- return apply(this, "some", fn, thisArg);
805
+ return apply(this, "some", fn, thisArg, void 0, arguments);
811
806
  },
812
807
  splice(...args) {
813
808
  return noTracking(this, "splice", args);
@@ -843,8 +838,13 @@ function iterator(self, method, wrapValue) {
843
838
  }
844
839
  return iter;
845
840
  }
846
- function apply(self, method, fn, thisArg, wrappedRetFn) {
841
+ const arrayProto = Array.prototype;
842
+ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
847
843
  const arr = shallowReadArray(self);
844
+ let methodFn;
845
+ if ((methodFn = arr[method]) !== arrayProto[method]) {
846
+ return methodFn.apply(arr, args);
847
+ }
848
848
  let needsWrap = false;
849
849
  let wrappedFn = fn;
850
850
  if (arr !== self) {
@@ -859,7 +859,7 @@ function apply(self, method, fn, thisArg, wrappedRetFn) {
859
859
  };
860
860
  }
861
861
  }
862
- const result = arr[method](wrappedFn, thisArg);
862
+ const result = methodFn.call(arr, wrappedFn, thisArg);
863
863
  return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
864
864
  }
865
865
  function reduce(self, method, fn, args) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/reactivity v3.5.0-beta.1
2
+ * @vue/reactivity v3.5.0-beta.2
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
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};
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),o=e=>"function"==typeof e,u=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),v=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,_=(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",PAUSED:64,64:"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|=64}resume(){64&this.flags&&(this.flags&=-65,E.has(this)&&(E.delete(this),this.trigger()))}notify(){(!(2&this.flags)||32&this.flags)&&(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)O(e);this.deps=this.depsTail=void 0,K(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?E.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){A(this)&&this.run()}get dirty(){return A(this)}}let k=0;function T(){let e;if(k>1){k--;return}for(k--;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)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),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 A(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&!1===I(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function I(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||_(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 O(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)O(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 W(){N.push(j),j=!0}function C(){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){k++;try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()}finally{T()}}}let U=new WeakMap,F=Symbol(""),G=Symbol(""),H=Symbol("");function q(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 B(e,t,i,s,r,n){let o=U.get(e);if(!o){Y++;return}let u=[];if("clear"===t)u=[...o.values()];else{let r=l(e),n=r&&v(i);if(r&&"length"===i){let e=Number(s);o.forEach((t,i)=>{("length"===i||i===H||!h(i)&&i>=e)&&u.push(t)})}else{let s=e=>e&&u.push(e);switch(void 0!==i&&s(o.get(i)),n&&s(o.get(H)),t){case"add":r?n&&s(o.get("length")):(s(o.get(F)),a(e)&&s(o.get(G)));break;case"delete":!r&&(s(o.get(F)),a(e)&&s(o.get(G)));break;case"set":a(e)&&s(o.get(F))}}}for(let e of(k++,u))e.trigger();T()}function J(e){let t=eB(e);return t===e?t:(q(t,"iterate",H),eH(e)?t:t.map(eQ))}function Q(e){return q(e=eB(e),"iterate",H),e}let X={__proto__:null,[Symbol.iterator](){return Z(this,Symbol.iterator,eQ)},concat(...e){return J(this).concat(...e.map(e=>J(e)))},entries(){return Z(this,"entries",e=>(e[1]=eQ(e[1]),e))},every(e,t){return ee(this,"every",e,t,void 0,arguments)},filter(e,t){return ee(this,"filter",e,t,e=>e.map(eQ),arguments)},find(e,t){return ee(this,"find",e,t,eQ,arguments)},findIndex(e,t){return ee(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ee(this,"findLast",e,t,eQ,arguments)},findLastIndex(e,t){return ee(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ee(this,"forEach",e,t,void 0,arguments)},includes(...e){return ei(this,"includes",e)},indexOf(...e){return ei(this,"indexOf",e)},join(e){return J(this).join(e)},lastIndexOf(...e){return ei(this,"lastIndexOf",e)},map(e,t){return ee(this,"map",e,t,void 0,arguments)},pop(){return es(this,"pop")},push(...e){return es(this,"push",e)},reduce(e,...t){return et(this,"reduce",e,t)},reduceRight(e,...t){return et(this,"reduceRight",e,t)},shift(){return es(this,"shift")},some(e,t){return ee(this,"some",e,t,void 0,arguments)},splice(...e){return es(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 es(this,"unshift",e)},values(){return Z(this,"values",eQ)}};function Z(e,t,i){let s=Q(e),r=s[t]();return s===e||eH(e)||(r._next=r.next,r.next=()=>{let e=r._next();return e.value&&(e.value=i(e.value)),e}),r}let $=Array.prototype;function ee(e,t,i,s,r,n){let l;let a=Q(e);if((l=a[t])!==$[t])return l.apply(a,n);let o=!1,u=i;a!==e&&((o=!eH(e))?u=function(t,s){return i.call(this,eQ(t),s,e)}:i.length>2&&(u=function(t,s){return i.call(this,t,s,e)}));let h=l.call(a,u,s);return o&&r?r(h):h}function et(e,t,i,s){let r=Q(e),n=i;return r!==e&&(eH(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,eQ(s),r,e)}),r[t](n,...s)}function ei(e,t,i){let s=eB(e);q(s,"iterate",H);let r=s[t](...i);return(-1===r||!1===r)&&eq(i[0])?(i[0]=eB(i[0]),s[t](...i)):r}function es(e,t,i=[]){V(),k++;let s=eB(e)[t].apply(e,i);return T(),C(),s}let er=function(e,t){let i=new Set(e.split(","));return e=>i.has(e)}("__proto__,__v_isRef,__isVue"),en=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(h));function el(e){h(e)||(e=String(e));let t=eB(this);return q(t,"has",e),t.hasOwnProperty(e)}class ea{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:eW:r?eV:eN).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 el}let a=Reflect.get(e,t,eZ(e)?e:i);return(h(t)?en.has(t):er(t))?a:(s||q(e,"get",t),r)?a:eZ(a)?n&&v(t)?a:a.value:c(a)?s?eY(a):eM(a):a}}class eo extends ea{constructor(e=!1){super(!1,e)}set(e,t,i,s){let r=e[t];if(!this._isShallow){let t=eG(r);if(eH(i)||eG(i)||(r=eB(r),i=eB(i)),!l(e)&&eZ(r)&&!eZ(i))return!t&&(r.value=i,!0)}let a=l(e)&&v(t)?Number(t)<e.length:n(e,t),o=Reflect.set(e,t,i,s);return e===eB(s)&&(a?_(i,r)&&B(e,"set",t,i):B(e,"add",t,i)),o}deleteProperty(e,t){let i=n(e,t);e[t];let s=Reflect.deleteProperty(e,t);return s&&i&&B(e,"delete",t,void 0),s}has(e,t){let i=Reflect.has(e,t);return h(t)&&en.has(t)||q(e,"has",t),i}ownKeys(e){return q(e,"iterate",l(e)?"length":F),Reflect.ownKeys(e)}}class eu extends ea{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let eh=new eo,ec=new eu,ef=new eo(!0),ep=new eu(!0),ed=e=>e,ev=e=>Reflect.getPrototypeOf(e);function e_(e,t,i=!1,s=!1){let r=eB(e=e.__v_raw),n=eB(t);i||(_(t,n)&&q(r,"get",t),q(r,"get",n));let{has:l}=ev(r),a=s?ed:i?eX:eQ;return l.call(r,t)?a(e.get(t)):l.call(r,n)?a(e.get(n)):void(e!==r&&e.get(t))}function eg(e,t=!1){let i=this.__v_raw,s=eB(i),r=eB(e);return t||(_(e,r)&&q(s,"has",e),q(s,"has",r)),e===r?i.has(e):i.has(e)||i.has(r)}function ey(e,t=!1){return e=e.__v_raw,t||q(eB(e),"iterate",F),Reflect.get(e,"size",e)}function eR(e,t=!1){t||eH(e)||eG(e)||(e=eB(e));let i=eB(this);return ev(i).has.call(i,e)||(i.add(e),B(i,"add",e,e)),this}function ew(e,t,i=!1){i||eH(t)||eG(t)||(t=eB(t));let s=eB(this),{has:r,get:n}=ev(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?_(t,a)&&B(s,"set",e,t):B(s,"add",e,t),this}function eb(e){let t=eB(this),{has:i,get:s}=ev(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&&B(t,"delete",e,void 0),n}function eS(){let e=eB(this),t=0!==e.size,i=e.clear();return t&&B(e,"clear",void 0,void 0),i}function eE(e,t){return function(i,s){let r=this,n=r.__v_raw,l=eB(n),a=t?ed:e?eX:eQ;return e||q(l,"iterate",F),n.forEach((e,t)=>i.call(s,a(e),a(t),r))}}function ex(e,t,i){return function(...s){let r=this.__v_raw,n=eB(r),l=a(n),o="entries"===e||e===Symbol.iterator&&l,u=r[e](...s),h=i?ed:t?eX:eQ;return t||q(n,"iterate","keys"===e&&l?G:F),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:o?[h(e[0]),h(e[1])]:h(e),done:t}},[Symbol.iterator](){return this}}}}function ek(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[eT,em,eD,eA]=function(){let e={get(e){return e_(this,e)},get size(){return ey(this)},has:eg,add:eR,set:ew,delete:eb,clear:eS,forEach:eE(!1,!1)},t={get(e){return e_(this,e,!1,!0)},get size(){return ey(this)},has:eg,add(e){return eR.call(this,e,!0)},set(e,t){return ew.call(this,e,t,!0)},delete:eb,clear:eS,forEach:eE(!1,!0)},i={get(e){return e_(this,e,!0)},get size(){return ey(this,!0)},has(e){return eg.call(this,e,!0)},add:ek("add"),set:ek("set"),delete:ek("delete"),clear:ek("clear"),forEach:eE(!0,!1)},s={get(e){return e_(this,e,!0,!0)},get size(){return ey(this,!0)},has(e){return eg.call(this,e,!0)},add:ek("add"),set:ek("set"),delete:ek("delete"),clear:ek("clear"),forEach:eE(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=ex(r,!1,!1),i[r]=ex(r,!0,!1),t[r]=ex(r,!1,!0),s[r]=ex(r,!0,!0)}),[e,i,t,s]}();function eI(e,t){let i=t?e?eA:eD:e?em: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:eI(!1,!1)},eL={get:eI(!1,!0)},eP={get:eI(!0,!1)},ej={get:eI(!0,!0)},eN=new WeakMap,eV=new WeakMap,eW=new WeakMap,eC=new WeakMap;function eM(e){return eG(e)?e:eU(e,!1,eh,eO,eN)}function eK(e){return eU(e,!1,ef,eL,eV)}function eY(e){return eU(e,!0,ec,eP,eW)}function ez(e){return eU(e,!0,ep,ej,eC)}function eU(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 eF(e){return eG(e)?eF(e.__v_raw):!!(e&&e.__v_isReactive)}function eG(e){return!!(e&&e.__v_isReadonly)}function eH(e){return!!(e&&e.__v_isShallow)}function eq(e){return!!e&&!!e.__v_raw}function eB(e){let t=e&&e.__v_raw;return t?eB(t):e}function eJ(e){return Object.isExtensible(e)&&g(e,"__v_skip",!0),e}let eQ=e=>c(e)?eM(e):e,eX=e=>c(e)?eY(e):e;function eZ(e){return!!e&&!0===e.__v_isRef}function e$(e){return e1(e,!1)}function e0(e){return e1(e,!0)}function e1(e,t){return eZ(e)?e:new e2(e,t)}class e2{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: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||eH(e)||eG(e);_(e=i?e:eB(e),t)&&(this._rawValue=e,this._value=i?e:eQ(e),this.dep.trigger())}}function e6(e){e.dep.trigger()}function e4(e){return eZ(e)?e.value:e}function e3(e){return o(e)?e():e4(e)}let e8={get:(e,t,i)=>e4(Reflect.get(e,t,i)),set:(e,t,i,s)=>{let r=e[t];return eZ(r)&&!eZ(i)?(r.value=i,!0):Reflect.set(e,t,i,s)}};function e5(e){return eF(e)?e:new Proxy(e,e8)}class e7{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 e7(e)}function te(e){let t=l(e)?Array(e.length):{};for(let i in e)t[i]=tr(e,i);return t}class tt{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 ti{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 ts(e,t,i){return eZ(e)?e:o(e)?new ti(e):c(e)&&arguments.length>1?tr(e,t,i):e$(e)}function tr(e,t,i){let s=e[t];return eZ(s)?s:new tt(e,t,i)}class tn{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 I(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function tl(e,t,i=!1){let s,r;return o(e)?s=e:(s=e.get,r=e.set),new tn(s,r,i)}let ta={GET:"get",HAS:"has",ITERATE:"iterate"},to={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,ta as TrackOpTypes,to as TriggerOpTypes,tl as computed,e9 as customRef,L as effect,R as effectScope,W as enableTracking,w as getCurrentScope,eq as isProxy,eF as isReactive,eG as isReadonly,eZ as isRef,eH as isShallow,eJ as markRaw,M as onEffectCleanup,b as onScopeDispose,V as pauseTracking,e5 as proxyRefs,eM as reactive,J as reactiveReadArray,eY as readonly,e$ as ref,C as resetTracking,eK as shallowReactive,Q as shallowReadArray,ez as shallowReadonly,e0 as shallowRef,P as stop,eB as toRaw,eQ as toReactive,eX as toReadonly,ts as toRef,te as toRefs,e3 as toValue,q as track,B as trigger,e6 as triggerRef,e4 as unref};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/reactivity v3.5.0-beta.1
2
+ * @vue/reactivity v3.5.0-beta.2
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -150,10 +150,8 @@ const EffectFlags = {
150
150
  "16": "DIRTY",
151
151
  "ALLOW_RECURSE": 32,
152
152
  "32": "ALLOW_RECURSE",
153
- "NO_BATCH": 64,
154
- "64": "NO_BATCH",
155
- "PAUSED": 128,
156
- "128": "PAUSED"
153
+ "PAUSED": 64,
154
+ "64": "PAUSED"
157
155
  };
158
156
  const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
159
157
  class ReactiveEffect {
@@ -185,11 +183,11 @@ class ReactiveEffect {
185
183
  }
186
184
  }
187
185
  pause() {
188
- this.flags |= 128;
186
+ this.flags |= 64;
189
187
  }
190
188
  resume() {
191
- if (this.flags & 128) {
192
- this.flags &= ~128;
189
+ if (this.flags & 64) {
190
+ this.flags &= ~64;
193
191
  if (pausedQueueEffects.has(this)) {
194
192
  pausedQueueEffects.delete(this);
195
193
  this.trigger();
@@ -203,9 +201,6 @@ class ReactiveEffect {
203
201
  if (this.flags & 2 && !(this.flags & 32)) {
204
202
  return;
205
203
  }
206
- if (this.flags & 64) {
207
- return this.trigger();
208
- }
209
204
  if (!(this.flags & 8)) {
210
205
  this.flags |= 8;
211
206
  this.nextEffect = batchedEffect;
@@ -249,7 +244,7 @@ class ReactiveEffect {
249
244
  }
250
245
  }
251
246
  trigger() {
252
- if (this.flags & 128) {
247
+ if (this.flags & 64) {
253
248
  pausedQueueEffects.add(this);
254
249
  } else if (this.scheduler) {
255
250
  this.scheduler();
@@ -279,6 +274,7 @@ function endBatch() {
279
274
  batchDepth--;
280
275
  return;
281
276
  }
277
+ batchDepth--;
282
278
  let error;
283
279
  while (batchedEffect) {
284
280
  let e = batchedEffect;
@@ -297,7 +293,6 @@ function endBatch() {
297
293
  e = next;
298
294
  }
299
295
  }
300
- batchDepth--;
301
296
  if (error) throw error;
302
297
  }
303
298
  function prepareDeps(sub) {
@@ -717,26 +712,26 @@ const arrayInstrumentations = {
717
712
  });
718
713
  },
719
714
  every(fn, thisArg) {
720
- return apply(this, "every", fn, thisArg);
715
+ return apply(this, "every", fn, thisArg, void 0, arguments);
721
716
  },
722
717
  filter(fn, thisArg) {
723
- return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive));
718
+ return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments);
724
719
  },
725
720
  find(fn, thisArg) {
726
- return apply(this, "find", fn, thisArg, toReactive);
721
+ return apply(this, "find", fn, thisArg, toReactive, arguments);
727
722
  },
728
723
  findIndex(fn, thisArg) {
729
- return apply(this, "findIndex", fn, thisArg);
724
+ return apply(this, "findIndex", fn, thisArg, void 0, arguments);
730
725
  },
731
726
  findLast(fn, thisArg) {
732
- return apply(this, "findLast", fn, thisArg, toReactive);
727
+ return apply(this, "findLast", fn, thisArg, toReactive, arguments);
733
728
  },
734
729
  findLastIndex(fn, thisArg) {
735
- return apply(this, "findLastIndex", fn, thisArg);
730
+ return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
736
731
  },
737
732
  // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
738
733
  forEach(fn, thisArg) {
739
- return apply(this, "forEach", fn, thisArg);
734
+ return apply(this, "forEach", fn, thisArg, void 0, arguments);
740
735
  },
741
736
  includes(...args) {
742
737
  return searchProxy(this, "includes", args);
@@ -752,7 +747,7 @@ const arrayInstrumentations = {
752
747
  return searchProxy(this, "lastIndexOf", args);
753
748
  },
754
749
  map(fn, thisArg) {
755
- return apply(this, "map", fn, thisArg);
750
+ return apply(this, "map", fn, thisArg, void 0, arguments);
756
751
  },
757
752
  pop() {
758
753
  return noTracking(this, "pop");
@@ -771,7 +766,7 @@ const arrayInstrumentations = {
771
766
  },
772
767
  // slice could use ARRAY_ITERATE but also seems to beg for range tracking
773
768
  some(fn, thisArg) {
774
- return apply(this, "some", fn, thisArg);
769
+ return apply(this, "some", fn, thisArg, void 0, arguments);
775
770
  },
776
771
  splice(...args) {
777
772
  return noTracking(this, "splice", args);
@@ -807,8 +802,13 @@ function iterator(self, method, wrapValue) {
807
802
  }
808
803
  return iter;
809
804
  }
810
- function apply(self, method, fn, thisArg, wrappedRetFn) {
805
+ const arrayProto = Array.prototype;
806
+ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
811
807
  const arr = shallowReadArray(self);
808
+ let methodFn;
809
+ if ((methodFn = arr[method]) !== arrayProto[method]) {
810
+ return methodFn.apply(arr, args);
811
+ }
812
812
  let needsWrap = false;
813
813
  let wrappedFn = fn;
814
814
  if (arr !== self) {
@@ -823,7 +823,7 @@ function apply(self, method, fn, thisArg, wrappedRetFn) {
823
823
  };
824
824
  }
825
825
  }
826
- const result = arr[method](wrappedFn, thisArg);
826
+ const result = methodFn.call(arr, wrappedFn, thisArg);
827
827
  return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
828
828
  }
829
829
  function reduce(self, method, fn, args) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/reactivity v3.5.0-beta.1
2
+ * @vue/reactivity v3.5.0-beta.2
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -193,10 +193,8 @@ var VueReactivity = (function (exports) {
193
193
  "16": "DIRTY",
194
194
  "ALLOW_RECURSE": 32,
195
195
  "32": "ALLOW_RECURSE",
196
- "NO_BATCH": 64,
197
- "64": "NO_BATCH",
198
- "PAUSED": 128,
199
- "128": "PAUSED"
196
+ "PAUSED": 64,
197
+ "64": "PAUSED"
200
198
  };
201
199
  const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
202
200
  class ReactiveEffect {
@@ -228,11 +226,11 @@ var VueReactivity = (function (exports) {
228
226
  }
229
227
  }
230
228
  pause() {
231
- this.flags |= 128;
229
+ this.flags |= 64;
232
230
  }
233
231
  resume() {
234
- if (this.flags & 128) {
235
- this.flags &= ~128;
232
+ if (this.flags & 64) {
233
+ this.flags &= ~64;
236
234
  if (pausedQueueEffects.has(this)) {
237
235
  pausedQueueEffects.delete(this);
238
236
  this.trigger();
@@ -246,9 +244,6 @@ var VueReactivity = (function (exports) {
246
244
  if (this.flags & 2 && !(this.flags & 32)) {
247
245
  return;
248
246
  }
249
- if (this.flags & 64) {
250
- return this.trigger();
251
- }
252
247
  if (!(this.flags & 8)) {
253
248
  this.flags |= 8;
254
249
  this.nextEffect = batchedEffect;
@@ -292,7 +287,7 @@ var VueReactivity = (function (exports) {
292
287
  }
293
288
  }
294
289
  trigger() {
295
- if (this.flags & 128) {
290
+ if (this.flags & 64) {
296
291
  pausedQueueEffects.add(this);
297
292
  } else if (this.scheduler) {
298
293
  this.scheduler();
@@ -322,6 +317,7 @@ var VueReactivity = (function (exports) {
322
317
  batchDepth--;
323
318
  return;
324
319
  }
320
+ batchDepth--;
325
321
  let error;
326
322
  while (batchedEffect) {
327
323
  let e = batchedEffect;
@@ -340,7 +336,6 @@ var VueReactivity = (function (exports) {
340
336
  e = next;
341
337
  }
342
338
  }
343
- batchDepth--;
344
339
  if (error) throw error;
345
340
  }
346
341
  function prepareDeps(sub) {
@@ -756,26 +751,26 @@ var VueReactivity = (function (exports) {
756
751
  });
757
752
  },
758
753
  every(fn, thisArg) {
759
- return apply(this, "every", fn, thisArg);
754
+ return apply(this, "every", fn, thisArg, void 0, arguments);
760
755
  },
761
756
  filter(fn, thisArg) {
762
- return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive));
757
+ return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments);
763
758
  },
764
759
  find(fn, thisArg) {
765
- return apply(this, "find", fn, thisArg, toReactive);
760
+ return apply(this, "find", fn, thisArg, toReactive, arguments);
766
761
  },
767
762
  findIndex(fn, thisArg) {
768
- return apply(this, "findIndex", fn, thisArg);
763
+ return apply(this, "findIndex", fn, thisArg, void 0, arguments);
769
764
  },
770
765
  findLast(fn, thisArg) {
771
- return apply(this, "findLast", fn, thisArg, toReactive);
766
+ return apply(this, "findLast", fn, thisArg, toReactive, arguments);
772
767
  },
773
768
  findLastIndex(fn, thisArg) {
774
- return apply(this, "findLastIndex", fn, thisArg);
769
+ return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
775
770
  },
776
771
  // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
777
772
  forEach(fn, thisArg) {
778
- return apply(this, "forEach", fn, thisArg);
773
+ return apply(this, "forEach", fn, thisArg, void 0, arguments);
779
774
  },
780
775
  includes(...args) {
781
776
  return searchProxy(this, "includes", args);
@@ -791,7 +786,7 @@ var VueReactivity = (function (exports) {
791
786
  return searchProxy(this, "lastIndexOf", args);
792
787
  },
793
788
  map(fn, thisArg) {
794
- return apply(this, "map", fn, thisArg);
789
+ return apply(this, "map", fn, thisArg, void 0, arguments);
795
790
  },
796
791
  pop() {
797
792
  return noTracking(this, "pop");
@@ -810,7 +805,7 @@ var VueReactivity = (function (exports) {
810
805
  },
811
806
  // slice could use ARRAY_ITERATE but also seems to beg for range tracking
812
807
  some(fn, thisArg) {
813
- return apply(this, "some", fn, thisArg);
808
+ return apply(this, "some", fn, thisArg, void 0, arguments);
814
809
  },
815
810
  splice(...args) {
816
811
  return noTracking(this, "splice", args);
@@ -846,8 +841,13 @@ var VueReactivity = (function (exports) {
846
841
  }
847
842
  return iter;
848
843
  }
849
- function apply(self, method, fn, thisArg, wrappedRetFn) {
844
+ const arrayProto = Array.prototype;
845
+ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
850
846
  const arr = shallowReadArray(self);
847
+ let methodFn;
848
+ if ((methodFn = arr[method]) !== arrayProto[method]) {
849
+ return methodFn.apply(arr, args);
850
+ }
851
851
  let needsWrap = false;
852
852
  let wrappedFn = fn;
853
853
  if (arr !== self) {
@@ -862,7 +862,7 @@ var VueReactivity = (function (exports) {
862
862
  };
863
863
  }
864
864
  }
865
- const result = arr[method](wrappedFn, thisArg);
865
+ const result = methodFn.call(arr, wrappedFn, thisArg);
866
866
  return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
867
867
  }
868
868
  function reduce(self, method, fn, args) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/reactivity v3.5.0-beta.1
2
+ * @vue/reactivity v3.5.0-beta.2
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,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}({});
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),v=e=>d(e).slice(8,-1),_=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|=64}resume(){64&this.flags&&(this.flags&=-65,w.has(this)&&(w.delete(this),this.trigger()))}notify(){(!(2&this.flags)||32&this.flags)&&(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{k(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(){64&this.flags?w.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){T(this)&&this.run()}get dirty(){return T(this)}}let S=0;function E(){let e;if(S>1){S--;return}for(S--;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(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 k(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===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&&!T(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,k(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,I=[];function O(){I.push(A),A=!1}function L(){let e=I.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,W=Symbol(""),C=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&&_(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(W)),u(e)&&s(l.get(C)));break;case"delete":!r&&(s(l.get(W)),u(e)&&s(l.get(C)));break;case"set":u(e)&&s(l.get(W))}}}for(let e of(S++,o))e.trigger();E()}function z(e){let t=eM(e);return t===e?t:(K(t,"iterate",M),eW(e)?t:t.map(eK))}function U(e){return K(e=eM(e),"iterate",M),e}let F={__proto__:null,[Symbol.iterator](){return G(this,Symbol.iterator,eK)},concat(...e){return z(this).concat(...e.map(e=>z(e)))},entries(){return G(this,"entries",e=>(e[1]=eK(e[1]),e))},every(e,t){return q(this,"every",e,t,void 0,arguments)},filter(e,t){return q(this,"filter",e,t,e=>e.map(eK),arguments)},find(e,t){return q(this,"find",e,t,eK,arguments)},findIndex(e,t){return q(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return q(this,"findLast",e,t,eK,arguments)},findLastIndex(e,t){return q(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return q(this,"forEach",e,t,void 0,arguments)},includes(...e){return J(this,"includes",e)},indexOf(...e){return J(this,"indexOf",e)},join(e){return z(this).join(e)},lastIndexOf(...e){return J(this,"lastIndexOf",e)},map(e,t){return q(this,"map",e,t,void 0,arguments)},pop(){return Q(this,"pop")},push(...e){return Q(this,"push",e)},reduce(e,...t){return B(this,"reduce",e,t)},reduceRight(e,...t){return B(this,"reduceRight",e,t)},shift(){return Q(this,"shift")},some(e,t){return q(this,"some",e,t,void 0,arguments)},splice(...e){return Q(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 Q(this,"unshift",e)},values(){return G(this,"values",eK)}};function G(e,t,i){let s=U(e),r=s[t]();return s===e||eW(e)||(r._next=r.next,r.next=()=>{let e=r._next();return e.value&&(e.value=i(e.value)),e}),r}let H=Array.prototype;function q(e,t,i,s,r,n){let l;let a=U(e);if((l=a[t])!==H[t])return l.apply(a,n);let u=!1,o=i;a!==e&&((u=!eW(e))?o=function(t,s){return i.call(this,eK(t),s,e)}:i.length>2&&(o=function(t,s){return i.call(this,t,s,e)}));let h=l.call(a,o,s);return u&&r?r(h):h}function B(e,t,i,s){let r=U(e),n=i;return r!==e&&(eW(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,eK(s),r,e)}),r[t](n,...s)}function J(e,t,i){let s=eM(e);K(s,"iterate",M);let r=s[t](...i);return(-1===r||!1===r)&&eC(i[0])?(i[0]=eM(i[0]),s[t](...i)):r}function Q(e,t,i=[]){O(),S++;let s=eM(e)[t].apply(e,i);return E(),L(),s}let X=/*! #__NO_SIDE_EFFECTS__ */function(e,t){let i=new Set(e.split(","));return e=>i.has(e)}("__proto__,__v_isRef,__isVue"),Z=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(c));function $(e){c(e)||(e=String(e));let t=eM(this);return K(t,"has",e),t.hasOwnProperty(e)}class ee{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:eI:r?eA:eD).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 $}let l=Reflect.get(e,t,ez(e)?e:i);return(c(t)?Z.has(t):X(t))?l:(s||K(e,"get",t),r)?l:ez(l)?n&&_(t)?l:l.value:f(l)?s?eP(l):eL(l):l}}class et extends ee{constructor(e=!1){super(!1,e)}set(e,t,i,s){let r=e[t];if(!this._isShallow){let t=eV(r);if(eW(i)||eV(i)||(r=eM(r),i=eM(i)),!a(e)&&ez(r)&&!ez(i))return!t&&(r.value=i,!0)}let n=a(e)&&_(t)?Number(t)<e.length:l(e,t),u=Reflect.set(e,t,i,s);return e===eM(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)&&Z.has(t)||K(e,"has",t),i}ownKeys(e){return K(e,"iterate",a(e)?"length":W),Reflect.ownKeys(e)}}class ei extends ee{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}let es=new et,er=new ei,en=new et(!0),el=new ei(!0),ea=e=>e,eu=e=>Reflect.getPrototypeOf(e);function eo(e,t,i=!1,s=!1){let r=eM(e=e.__v_raw),n=eM(t);i||(g(t,n)&&K(r,"get",t),K(r,"get",n));let{has:l}=eu(r),a=s?ea:i?eY:eK;return l.call(r,t)?a(e.get(t)):l.call(r,n)?a(e.get(n)):void(e!==r&&e.get(t))}function eh(e,t=!1){let i=this.__v_raw,s=eM(i),r=eM(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 ec(e,t=!1){return e=e.__v_raw,t||K(eM(e),"iterate",W),Reflect.get(e,"size",e)}function ef(e,t=!1){t||eW(e)||eV(e)||(e=eM(e));let i=eM(this);return eu(i).has.call(i,e)||(i.add(e),Y(i,"add",e,e)),this}function ep(e,t,i=!1){i||eW(t)||eV(t)||(t=eM(t));let s=eM(this),{has:r,get:n}=eu(s),l=r.call(s,e);l||(e=eM(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 ed(e){let t=eM(this),{has:i,get:s}=eu(t),r=i.call(t,e);r||(e=eM(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 ev(){let e=eM(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=eM(n),a=t?ea:e?eY:eK;return e||K(l,"iterate",W),n.forEach((e,t)=>i.call(s,a(e),a(t),r))}}function eg(e,t,i){return function(...s){let r=this.__v_raw,n=eM(r),l=u(n),a="entries"===e||e===Symbol.iterator&&l,o=r[e](...s),h=i?ea:t?eY:eK;return t||K(n,"iterate","keys"===e&&l?C:W),{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 ey(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[eR,ew,eb,eS]=function(){let e={get(e){return eo(this,e)},get size(){return ec(this)},has:eh,add:ef,set:ep,delete:ed,clear:ev,forEach:e_(!1,!1)},t={get(e){return eo(this,e,!1,!0)},get size(){return ec(this)},has:eh,add(e){return ef.call(this,e,!0)},set(e,t){return ep.call(this,e,t,!0)},delete:ed,clear:ev,forEach:e_(!1,!0)},i={get(e){return eo(this,e,!0)},get size(){return ec(this,!0)},has(e){return eh.call(this,e,!0)},add:ey("add"),set:ey("set"),delete:ey("delete"),clear:ey("clear"),forEach:e_(!0,!1)},s={get(e){return eo(this,e,!0,!0)},get size(){return ec(this,!0)},has(e){return eh.call(this,e,!0)},add:ey("add"),set:ey("set"),delete:ey("delete"),clear:ey("clear"),forEach:e_(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=eg(r,!1,!1),i[r]=eg(r,!0,!1),t[r]=eg(r,!1,!0),s[r]=eg(r,!0,!0)}),[e,i,t,s]}();function eE(e,t){let i=t?e?eS:eb:e?ew:eR;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 ex={get:eE(!1,!1)},ek={get:eE(!1,!0)},eT={get:eE(!0,!1)},em={get:eE(!0,!0)},eD=new WeakMap,eA=new WeakMap,eI=new WeakMap,eO=new WeakMap;function eL(e){return eV(e)?e:ej(e,!1,es,ex,eD)}function eP(e){return ej(e,!0,er,eT,eI)}function ej(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}}(v(e));if(0===l)return e;let a=new Proxy(e,2===l?s:i);return r.set(e,a),a}function eN(e){return eV(e)?eN(e.__v_raw):!!(e&&e.__v_isReactive)}function eV(e){return!!(e&&e.__v_isReadonly)}function eW(e){return!!(e&&e.__v_isShallow)}function eC(e){return!!e&&!!e.__v_raw}function eM(e){let t=e&&e.__v_raw;return t?eM(t):e}let eK=e=>f(e)?eL(e):e,eY=e=>f(e)?eP(e):e;function ez(e){return!!e&&!0===e.__v_isRef}function eU(e){return eF(e,!1)}function eF(e,t){return ez(e)?e:new eG(e,t)}class eG{constructor(e,t){this.dep=new N,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:eM(e),this._value=t?e:eK(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,i=this.__v_isShallow||eW(e)||eV(e);g(e=i?e:eM(e),t)&&(this._rawValue=e,this._value=i?e:eK(e),this.dep.trigger())}}function eH(e){return ez(e)?e.value:e}let eq={get:(e,t,i)=>eH(Reflect.get(e,t,i)),set:(e,t,i,s)=>{let r=e[t];return ez(r)&&!ez(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 eJ{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=eM(this._object),t=this._key,null==(i=V.get(e))?void 0:i.get(t)}}class eQ{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 eX(e,t,i){let s=e[t];return ez(s)?s:new eJ(e,t,i)}class eZ{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",PAUSED:64,64:"PAUSED"},e.EffectScope=R,e.ITERATE_KEY=W,e.MAP_KEY_ITERATE_KEY=C,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 eZ(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(){I.push(A),A=!0},e.getCurrentScope=function(){return t},e.isProxy=eC,e.isReactive=eN,e.isReadonly=eV,e.isRef=ez,e.isShallow=eW,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=O,e.proxyRefs=function(e){return eN(e)?e:new Proxy(e,eq)},e.reactive=eL,e.reactiveReadArray=z,e.readonly=eP,e.ref=eU,e.resetTracking=L,e.shallowReactive=function(e){return ej(e,!1,en,ek,eA)},e.shallowReadArray=U,e.shallowReadonly=function(e){return ej(e,!0,el,em,eO)},e.shallowRef=function(e){return eF(e,!0)},e.stop=function(e){e.effect.stop()},e.toRaw=eM,e.toReactive=eK,e.toReadonly=eY,e.toRef=function(e,t,i){return ez(e)?e:o(e)?new eQ(e):f(e)&&arguments.length>1?eX(e,t,i):eU(e)},e.toRefs=function(e){let t=a(e)?Array(e.length):{};for(let i in e)t[i]=eX(e,i);return t},e.toValue=function(e){return o(e)?e():eH(e)},e.track=K,e.trigger=Y,e.triggerRef=function(e){e.dep.trigger()},e.unref=eH,e}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/reactivity",
3
- "version": "3.5.0-beta.1",
3
+ "version": "3.5.0-beta.2",
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-beta.1"
53
+ "@vue/shared": "3.5.0-beta.2"
54
54
  }
55
55
  }