@everymatrix/loyalty-level 0.2.8 → 0.2.10

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.
@@ -19,7 +19,7 @@ function pi() {
19
19
  });
20
20
  return { promise: r, resolve: e, reject: t };
21
21
  }
22
- const ee = 2, vt = 4, zt = 8, vi = 1 << 24, be = 16, we = 32, Ue = 64, kr = 128, vn = 256, xe = 512, Z = 1024, W = 2048, _e = 4096, se = 8192, J = 16384, nt = 32768, jt = 1 << 25, _t = 65536, sr = 1 << 17, Fs = 1 << 18, it = 1 << 19, _i = 1 << 20, Ie = 1 << 25, ar = 1 << 21, ht = 1 << 22, We = 1 << 23, ct = Symbol("$state"), mi = Symbol("component"), Gs = Symbol("legacy props"), ks = Symbol(""), gi = Symbol("attributes"), jr = Symbol("class"), js = Symbol("style"), Vr = Symbol("text"), Yt = new class extends Error {
22
+ const ee = 2, vt = 4, zt = 8, vi = 1 << 24, be = 16, we = 32, Ue = 64, kr = 128, vn = 256, xe = 512, Z = 1024, F = 2048, ce = 4096, se = 8192, J = 16384, nt = 32768, jt = 1 << 25, _t = 65536, sr = 1 << 17, Fs = 1 << 18, it = 1 << 19, _i = 1 << 20, Ie = 1 << 25, ar = 1 << 21, ht = 1 << 22, We = 1 << 23, ct = Symbol("$state"), mi = Symbol("component"), Gs = Symbol("legacy props"), ks = Symbol(""), gi = Symbol("attributes"), jr = Symbol("class"), js = Symbol("style"), Vr = Symbol("text"), Yt = new class extends Error {
23
23
  name = "StaleReactionError";
24
24
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
25
25
  }(), Vs = (
@@ -35,36 +35,36 @@ function Zt(e) {
35
35
  function Ws() {
36
36
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
37
37
  }
38
- let I = !1;
38
+ let $ = !1;
39
39
  function Be(e) {
40
- I = e;
40
+ $ = e;
41
41
  }
42
- let $;
42
+ let L;
43
43
  function ue(e) {
44
44
  if (e === null)
45
45
  throw Zt(), De;
46
- return $ = e;
46
+ return L = e;
47
47
  }
48
48
  function mt() {
49
- return ue(/* @__PURE__ */ Se($));
49
+ return ue(/* @__PURE__ */ Se(L));
50
50
  }
51
51
  function Xr(e) {
52
- if (I) {
53
- if (/* @__PURE__ */ Se($) !== null)
52
+ if ($) {
53
+ if (/* @__PURE__ */ Se(L) !== null)
54
54
  throw Zt(), De;
55
- $ = e;
55
+ L = e;
56
56
  }
57
57
  }
58
58
  function zs(e = 1) {
59
- if (I) {
60
- for (var t = e, r = $; t--; )
59
+ if ($) {
60
+ for (var t = e, r = L; t--; )
61
61
  r = /** @type {TemplateNode} */
62
62
  /* @__PURE__ */ Se(r);
63
- $ = r;
63
+ L = r;
64
64
  }
65
65
  }
66
66
  function or(e = !0) {
67
- for (var t = 0, r = $; ; ) {
67
+ for (var t = 0, r = L; ; ) {
68
68
  if (r.nodeType === St) {
69
69
  var n = (
70
70
  /** @type {Comment} */
@@ -189,17 +189,17 @@ function aa() {
189
189
  xi();
190
190
  }
191
191
  const oa = -7169;
192
- function V(e, t) {
192
+ function W(e, t) {
193
193
  e.f = e.f & oa | t;
194
194
  }
195
195
  function En(e) {
196
- e.f & xe || e.deps === null ? V(e, Z) : V(e, _e);
196
+ e.f & xe || e.deps === null ? W(e, Z) : W(e, ce);
197
197
  }
198
- function wi(e, t, r) {
199
- e.f & W ? t.add(e) : e.f & _e && r.add(e), V(e, Z);
198
+ function wi(e, t) {
199
+ e.f & F ? t.set(e, F) : e.f & ce && t.get(e) !== F && t.set(e, ce), W(e, Z);
200
200
  }
201
201
  function mr(e) {
202
- var t = O, r = H;
202
+ var t = M, r = H;
203
203
  me(null), $e(null);
204
204
  try {
205
205
  return e();
@@ -249,7 +249,7 @@ function la() {
249
249
  var e = (
250
250
  /** @type {Effect} */
251
251
  H
252
- ), t = O, r = ae, n = (
252
+ ), t = M, r = ae, n = (
253
253
  /** @type {Batch} */
254
254
  P
255
255
  );
@@ -274,7 +274,7 @@ function Ti() {
274
274
  }
275
275
  // @__NO_SIDE_EFFECTS__
276
276
  function gr(e) {
277
- var t = ee | W;
277
+ var t = ee | F;
278
278
  return H !== null && (H.f |= it), {
279
279
  ctx: ae,
280
280
  deps: null,
@@ -308,7 +308,7 @@ function fa(e, t, r) {
308
308
  ), s = rt(
309
309
  /** @type {V} */
310
310
  Y
311
- ), a = !O, o = /* @__PURE__ */ new Set();
311
+ ), a = !M, o = /* @__PURE__ */ new Set();
312
312
  return xa(() => {
313
313
  var u = (
314
314
  /** @type {Effect} */
@@ -393,7 +393,7 @@ function xn(e) {
393
393
  function Si(e) {
394
394
  var t = xn(e);
395
395
  if (!e.equals(t) && (e.wv = zi(), (!P?.is_fork || e.deps === null) && (P !== null ? (P.capture(e, t, !0), dt?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
396
- V(e, Z);
396
+ W(e, Z);
397
397
  return;
398
398
  }
399
399
  Ge || (ye !== null ? (Hn() || P?.is_fork) && ye.set(e, t) : En(e));
@@ -416,24 +416,24 @@ let pa = 1;
416
416
  class Fe {
417
417
  id = pa++;
418
418
  /** True as soon as `#process` was called */
419
- #e = !1;
419
+ started = !1;
420
420
  linked = !0;
421
421
  /** @type {Batch | null} */
422
- #t = null;
422
+ prev = null;
423
423
  /** @type {Batch | null} */
424
- #r = null;
424
+ next = null;
425
425
  /** @type {Map<Effect, ReturnType<typeof deferred<any>>>} */
426
426
  async_deriveds = /* @__PURE__ */ new Map();
427
427
  /**
428
428
  * The current values of any signals that are updated in this batch.
429
429
  * Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
430
- * They keys of this map are identical to `this.#previous`
430
+ * The keys of this map are identical to `this.previous`
431
431
  * @type {Map<Value, [any, boolean]>}
432
432
  */
433
433
  current = /* @__PURE__ */ new Map();
434
434
  /**
435
435
  * The values of any signals (sources and deriveds) that are updated in this batch _before_ those updates took place.
436
- * They keys of this map are identical to `this.#current`
436
+ * The keys of this map are identical to `this.current`
437
437
  * @type {Map<Value, any>}
438
438
  */
439
439
  previous = /* @__PURE__ */ new Map();
@@ -442,27 +442,27 @@ class Fe {
442
442
  * and append new ones by calling the functions added inside (if/each/key/etc) blocks
443
443
  * @type {Set<(batch: Batch) => void>}
444
444
  */
445
- #u = /* @__PURE__ */ new Set();
445
+ #e = /* @__PURE__ */ new Set();
446
446
  /**
447
447
  * If a fork is discarded, we need to destroy any effects that are no longer needed
448
448
  * @type {Set<(batch: Batch) => void>}
449
449
  */
450
- #i = /* @__PURE__ */ new Set();
450
+ #t = /* @__PURE__ */ new Set();
451
451
  /**
452
452
  * The number of async effects that are currently in flight
453
453
  */
454
- #a = 0;
454
+ #r = 0;
455
455
  /**
456
456
  * Async effects that are currently in flight, _not_ inside a pending boundary
457
457
  * @type {Map<Effect, number>}
458
458
  */
459
- #n = /* @__PURE__ */ new Map();
459
+ #o = /* @__PURE__ */ new Map();
460
460
  /**
461
461
  * A deferred that resolves when the batch is committed, used with `settled()`
462
462
  * TODO replace with Promise.withResolvers once supported widely enough
463
463
  * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
464
464
  */
465
- #o = null;
465
+ #n = null;
466
466
  /**
467
467
  * Effects that were scheduled in this batch but not yet 'resolved' into the
468
468
  * root effects that need to be flushed. Resolving — the upwards traversal that
@@ -474,22 +474,17 @@ class Fe {
474
474
  * May contain duplicates — deduplication happens during resolving
475
475
  * @type {Effect[]}
476
476
  */
477
- #s = [];
477
+ #i = [];
478
478
  /**
479
479
  * Effects created while this batch was active.
480
480
  * @type {Effect[]}
481
481
  */
482
- #_ = [];
483
- /**
484
- * Deferred effects (which run after async work has completed) that are DIRTY
485
- * @type {Set<Effect>}
486
- */
487
- #l = /* @__PURE__ */ new Set();
482
+ #a = [];
488
483
  /**
489
- * Deferred effects that are MAYBE_DIRTY
490
- * @type {Set<Effect>}
484
+ * Deferred effects (which run after async work has completed) and their status (DIRTY or MAYBE_DIRTY)
485
+ * @type {Map<Effect, number>}
491
486
  */
492
- #f = /* @__PURE__ */ new Set();
487
+ #s = /* @__PURE__ */ new Map();
493
488
  /**
494
489
  * A map of branches that still exist, but will be destroyed when this batch
495
490
  * is committed — we skip over these during `process`.
@@ -497,30 +492,34 @@ class Fe {
497
492
  * so they can be rescheduled if the branch survives.
498
493
  * @type {Map<Effect, { d: Effect[], m: Effect[] }>}
499
494
  */
500
- #c = /* @__PURE__ */ new Map();
495
+ #u = /* @__PURE__ */ new Map();
501
496
  /**
502
497
  * Inverse of #skipped_branches which we need to tell prior batches to unskip them when committing
503
498
  * @type {Set<Effect>}
504
499
  */
505
- #m = /* @__PURE__ */ new Set();
500
+ #d = /* @__PURE__ */ new Set();
506
501
  is_fork = !1;
507
- #h = !1;
502
+ #l = !1;
508
503
  constructor() {
509
- ot === null ? Mr = ot = this : (ot.#r = this, this.#t = ot), ot = this;
504
+ ot === null ? Mr = ot = this : (ot.next = this, this.prev = ot), ot = this;
510
505
  }
511
- #E() {
506
+ #v() {
512
507
  if (this.is_fork) return !0;
513
- for (const n of this.#n.keys()) {
514
- for (var t = n, r = !1; t.parent !== null; ) {
515
- if (this.#c.has(t)) {
516
- r = !0;
517
- break;
518
- }
519
- t = t.parent;
520
- }
521
- if (!r)
508
+ for (const t of this.#o.keys())
509
+ if (!this.#m(t))
522
510
  return !0;
523
- }
511
+ return !1;
512
+ }
513
+ /**
514
+ * Whether `effect` is inside a branch that this batch skips
515
+ * @param {Effect} effect
516
+ */
517
+ #m(t) {
518
+ for (var r = (
519
+ /** @type {Effect | null} */
520
+ t
521
+ ); r !== null; r = r.parent)
522
+ if (this.#u.has(r)) return !0;
524
523
  return !1;
525
524
  }
526
525
  /**
@@ -528,7 +527,7 @@ class Fe {
528
527
  * @param {Effect} effect
529
528
  */
530
529
  skip_effect(t) {
531
- this.#c.has(t) || this.#c.set(t, { d: [], m: [] }), this.#m.delete(t);
530
+ this.#u.has(t) || this.#u.set(t, { d: [], m: [] }), this.#d.delete(t);
532
531
  }
533
532
  /**
534
533
  * Remove an effect from the #skipped_branches map and reschedule
@@ -537,15 +536,15 @@ class Fe {
537
536
  * @param {(e: Effect) => void} callback
538
537
  */
539
538
  unskip_effect(t, r = (n) => this.schedule(n)) {
540
- var n = this.#c.get(t);
539
+ var n = this.#u.get(t);
541
540
  if (n) {
542
- this.#c.delete(t);
541
+ this.#u.delete(t);
543
542
  for (var i of n.d)
544
- V(i, W), r(i);
543
+ W(i, F), r(i);
545
544
  for (i of n.m)
546
- V(i, _e), r(i);
545
+ W(i, ce), r(i);
547
546
  }
548
- this.#m.add(t);
547
+ this.#d.add(t);
549
548
  }
550
549
  /**
551
550
  * Convert the effects that were scheduled in this batch into the root effects
@@ -556,10 +555,10 @@ class Fe {
556
555
  * a single traversal — scheduling into other batches can never observe them
557
556
  * @returns {Effect[]}
558
557
  */
559
- #x() {
558
+ #f() {
560
559
  var t = [];
561
- for (const s of this.#s)
562
- if (!(s.f & J || !(s.f & (W | _e)))) {
560
+ for (const s of this.#i)
561
+ if (!(s.f & J || !(s.f & (F | ce)))) {
563
562
  for (var r = s, n = !1; r.parent !== null; ) {
564
563
  r = r.parent;
565
564
  var i = r.f;
@@ -573,22 +572,20 @@ class Fe {
573
572
  }
574
573
  n || t.push(r);
575
574
  }
576
- return this.#s = [], t;
575
+ return this.#i = [], t;
577
576
  }
578
- #g() {
579
- this.#e = !0;
580
- for (const o of this.#l)
581
- this.#f.delete(o), V(o, W), this.schedule(o);
582
- for (const o of this.#f)
583
- V(o, _e), this.schedule(o);
577
+ #_() {
578
+ this.started = !0;
579
+ for (const [o, u] of this.#s)
580
+ W(o, u), this.schedule(o);
584
581
  this.apply();
585
- for (var t = Ut = [], r = [], n = er = []; this.#s.length > 0; ) {
586
- Rn++ > 1e3 && (this.#v(), va());
587
- for (const o of this.#x())
582
+ for (var t = Ut = [], r = [], n = er = []; this.#i.length > 0; ) {
583
+ Rn++ > 1e3 && (this.#c(), va());
584
+ for (const o of this.#f())
588
585
  try {
589
- this.#b(o, t, r);
586
+ this.#g(o, t, r);
590
587
  } catch (u) {
591
- throw Oi(o), this.#E() || this.discard(), u;
588
+ throw Oi(o), this.#v() || this.discard(), u;
592
589
  }
593
590
  }
594
591
  if (P = null, n.length > 0) {
@@ -596,35 +593,28 @@ class Fe {
596
593
  for (const o of n)
597
594
  i.schedule(o);
598
595
  }
599
- if (Ut = null, er = null, this.#E()) {
596
+ if (Ut = null, er = null, this.#v()) {
600
597
  this.#p(r), this.#p(t);
601
- for (const [o, u] of this.#c)
598
+ for (const [o, u] of this.#u)
602
599
  Mi(o, u);
603
600
  n.length > 0 && /** @type {unknown} */
604
- P.#g();
601
+ P.#_();
605
602
  return;
606
603
  }
607
- const s = this.#d();
604
+ const s = this.#y();
608
605
  if (s) {
609
- this.#p(r), this.#p(t), s.#w(this);
606
+ this.#p(r), this.#p(t), s.#h(this);
610
607
  return;
611
608
  }
612
- this.#l.clear(), this.#f.clear();
613
- for (const o of this.#u) o(this);
614
- this.#u.clear(), dt = this, Dn(r), Dn(t), dt = null, this.#o?.resolve();
609
+ this.#s.clear();
610
+ for (const o of this.#e) o(this);
611
+ this.#e.clear(), dt = this, Dn(r), Dn(t), dt = null, this.#n?.resolve();
615
612
  var a = (
616
613
  /** @type {Batch | null} */
617
614
  /** @type {unknown} */
618
615
  P
619
616
  );
620
- if (this.#a === 0 && (this.#s.length === 0 || a !== null) && this.#v(), this.#s.length > 0)
621
- if (a !== null) {
622
- for (const o of this.#s)
623
- a.#s.push(o);
624
- this.#s = [];
625
- } else
626
- a = this;
627
- a !== null && (Ne.clear(), a.#g());
617
+ this.#r === 0 && (this.#i.length === 0 || a !== null) && this.#c(), a !== null && (Ne.clear(), a.#_());
628
618
  }
629
619
  /**
630
620
  * Traverse the effect tree, executing effects or stashing
@@ -633,12 +623,12 @@ class Fe {
633
623
  * @param {Effect[]} effects
634
624
  * @param {Effect[]} render_effects
635
625
  */
636
- #b(t, r, n) {
626
+ #g(t, r, n) {
637
627
  t.f ^= Z;
638
628
  for (var i = t.first; i !== null; ) {
639
- var s = i.f, a = (s & (we | Ue)) !== 0, o = a && (s & Z) !== 0, u = o || (s & se) !== 0 || this.#c.has(i);
629
+ var s = i.f, a = (s & (we | Ue)) !== 0, o = a && (s & Z) !== 0, u = o || (s & se) !== 0 || this.#u.has(i);
640
630
  if (!u && i.fn !== null) {
641
- a ? i.f ^= Z : s & vt ? r.push(i) : qt(i) && (s & be && this.#f.add(i), yt(i));
631
+ a ? i.f ^= Z : s & vt ? r.push(i) : qt(i) && (s & be && this.add_dirty_reaction(i, ce), yt(i));
642
632
  var l = i.first;
643
633
  if (l !== null) {
644
634
  i = l;
@@ -655,31 +645,32 @@ class Fe {
655
645
  }
656
646
  }
657
647
  }
658
- #d() {
659
- for (var t = this.#t; t !== null; ) {
660
- if (!t.is_fork) {
661
- for (const [r, [, n]] of this.current)
662
- if (t.current.has(r) && !n)
663
- return t;
664
- }
665
- t = t.#t;
666
- }
648
+ #y() {
649
+ for (var t = this.prev; t !== null; t = t.prev)
650
+ if (!t.is_fork && this.#b(t)) return t;
667
651
  return null;
668
652
  }
653
+ /** @param {Batch} batch */
654
+ #b(t) {
655
+ for (const [r, [, n]] of this.current)
656
+ if (!n && t.current.has(r))
657
+ return !0;
658
+ return !1;
659
+ }
669
660
  /**
670
661
  * @param {Batch} batch
671
662
  */
672
- #w(t) {
663
+ #h(t) {
673
664
  for (const [n, i] of t.current)
674
665
  !this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
675
666
  for (const [n, i] of t.async_deriveds) {
676
667
  const s = this.async_deriveds.get(n);
677
668
  s && i.promise.then(s.resolve).catch(s.reject);
678
669
  }
679
- t.async_deriveds.clear(), this.transfer_effects(t.#l, t.#f);
670
+ t.async_deriveds.clear(), this.transfer_reactions(t.#s);
680
671
  const r = (n) => {
681
672
  var i = n.reactions;
682
- if (i !== null && !(n.f & ee && !(n.f & (W | _e))))
673
+ if (i !== null && !(n.f & ee && !(n.f & (F | ce))))
683
674
  for (const o of i) {
684
675
  var s = o.f;
685
676
  if (s & ee)
@@ -692,20 +683,20 @@ class Fe {
692
683
  /** @type {Effect} */
693
684
  o
694
685
  );
695
- s & (ht | be) && !this.async_deriveds.has(a) && (this.#f.delete(a), V(a, W), this.schedule(a));
686
+ s & (ht | be) && !this.async_deriveds.has(a) && (this.#s.delete(a), W(a, F), this.schedule(a));
696
687
  }
697
688
  }
698
689
  };
699
690
  for (const n of this.current.keys())
700
691
  r(n);
701
- this.oncommit(() => t.discard()), t.#v(), P = this, this.#g();
692
+ this.oncommit(() => t.discard()), t.#c(), P = this, this.#_();
702
693
  }
703
694
  /**
704
695
  * @param {Effect[]} effects
705
696
  */
706
697
  #p(t) {
707
698
  for (var r = 0; r < t.length; r += 1)
708
- wi(t[r], this.#l, this.#f);
699
+ wi(t[r], this.#s);
709
700
  }
710
701
  /**
711
702
  * Associate a change to a given source with the current
@@ -725,26 +716,26 @@ class Fe {
725
716
  }
726
717
  flush() {
727
718
  try {
728
- Or = !0, P = this, this.#g();
719
+ Or = !0, P = this, this.#_();
729
720
  } finally {
730
721
  Rn = 0, Wr = null, Ut = null, er = null, Or = !1, P = null, ye = null, Ne.clear();
731
722
  }
732
723
  }
733
724
  discard() {
734
- for (const t of this.#i) t(this);
735
- this.#i.clear();
725
+ for (const t of this.#t) t(this);
726
+ this.#t.clear();
736
727
  for (const t of this.async_deriveds.values())
737
728
  t.reject(It);
738
- this.#v(), this.#o?.resolve();
729
+ this.#c(), this.#n?.resolve();
739
730
  }
740
731
  /**
741
732
  * @param {Effect} effect
742
733
  */
743
734
  register_created_effect(t) {
744
- this.#_.push(t);
735
+ this.#a.push(t);
745
736
  }
746
- #y() {
747
- for (let h = Mr; h !== null; h = h.#r) {
737
+ #E() {
738
+ for (let h = Mr; h !== null; h = h.next) {
748
739
  var t = h.id < this.id, r = [];
749
740
  for (const [d, [p, c]] of this.current) {
750
741
  if (h.current.has(d)) {
@@ -768,13 +759,13 @@ class Fe {
768
759
  (d) => !/** @type {[any, boolean]} */
769
760
  h.current.get(d)[1]
770
761
  );
771
- if (!(!h.#e || i.length === 0)) {
762
+ if (!(!h.started || i.length === 0)) {
772
763
  var s = i.filter((d) => !this.current.has(d));
773
764
  if (s.length === 0)
774
765
  t && h.discard();
775
766
  else if (r.length > 0) {
776
767
  if (t)
777
- for (const d of this.#m)
768
+ for (const d of this.#d)
778
769
  h.unskip_effect(d, (p) => {
779
770
  p.f & (be | ht) ? h.schedule(p) : h.#p([p]);
780
771
  });
@@ -788,12 +779,12 @@ class Fe {
788
779
  return c ? c[0] !== p[0] || c[1] !== p[1] : !0;
789
780
  }).map(([d]) => d);
790
781
  if (l.length > 0)
791
- for (const d of this.#_)
792
- !(d.f & (J | se | sr)) && wn(d, l, o) && (d.f & (ht | be) ? (V(d, W), h.schedule(d)) : h.#l.add(d));
793
- if (h.#s.length > 0 && !h.#h) {
782
+ for (const d of this.#a)
783
+ !(d.f & (J | se | sr)) && wn(d, l, o) && (d.f & (ht | be) ? (W(d, F), h.schedule(d)) : h.add_dirty_reaction(d, F));
784
+ if (h.#i.length > 0 && !h.#l) {
794
785
  h.apply();
795
- for (var f of h.#x())
796
- h.#b(f, [], []);
786
+ for (var f of h.#f())
787
+ h.#g(f, [], []);
797
788
  }
798
789
  h.deactivate();
799
790
  }
@@ -805,9 +796,9 @@ class Fe {
805
796
  * @param {Effect} effect
806
797
  */
807
798
  increment(t, r) {
808
- if (this.#a += 1, t) {
809
- let n = this.#n.get(r) ?? 0;
810
- this.#n.set(r, n + 1);
799
+ if (this.#r += 1, t) {
800
+ let n = this.#o.get(r) ?? 0;
801
+ this.#o.set(r, n + 1);
811
802
  }
812
803
  }
813
804
  /**
@@ -815,41 +806,45 @@ class Fe {
815
806
  * @param {Effect} effect
816
807
  */
817
808
  decrement(t, r) {
818
- if (this.#a -= 1, t) {
819
- let n = this.#n.get(r) ?? 0;
820
- n === 1 ? this.#n.delete(r) : this.#n.set(r, n - 1);
809
+ if (this.#r -= 1, t) {
810
+ let n = this.#o.get(r) ?? 0;
811
+ n === 1 ? this.#o.delete(r) : this.#o.set(r, n - 1);
821
812
  }
822
- this.#h || (this.#h = !0, Qe(() => {
823
- this.#h = !1, this.linked && this.flush();
813
+ this.#l || (this.#l = !0, Qe(() => {
814
+ this.#l = !1, this.linked && this.flush();
824
815
  }));
825
816
  }
826
817
  /**
827
- * @param {Set<Effect>} dirty_effects
828
- * @param {Set<Effect>} maybe_dirty_effects
818
+ * @param {Map<Effect, number>} dirty_reactions
819
+ */
820
+ transfer_reactions(t) {
821
+ for (const [r, n] of t)
822
+ this.add_dirty_reaction(r, n);
823
+ t.clear();
824
+ }
825
+ /**
826
+ * @param {Effect} effect
827
+ * @param {number} status
829
828
  */
830
- transfer_effects(t, r) {
831
- for (const n of t)
832
- this.#l.add(n);
833
- for (const n of r)
834
- this.#f.add(n);
835
- t.clear(), r.clear();
829
+ add_dirty_reaction(t, r) {
830
+ (r === F || this.#s.get(t) !== F) && this.#s.set(t, r);
836
831
  }
837
832
  /** @param {(batch: Batch) => void} fn */
838
833
  oncommit(t) {
839
- this.#u.add(t);
834
+ this.#e.add(t);
840
835
  }
841
836
  /** @param {(batch: Batch) => void} fn */
842
837
  ondiscard(t) {
843
- this.#i.add(t);
838
+ this.#t.add(t);
844
839
  }
845
840
  settled() {
846
- return (this.#o ??= pi()).promise;
841
+ return (this.#n ??= pi()).promise;
847
842
  }
848
843
  static ensure() {
849
844
  if (P === null) {
850
845
  const t = P = new Fe();
851
846
  !Or && !Dt && Qe(() => {
852
- t.#e || t.flush();
847
+ t.started || t.flush();
853
848
  });
854
849
  }
855
850
  return P;
@@ -869,16 +864,16 @@ class Fe {
869
864
  t.b.defer_effect(t);
870
865
  return;
871
866
  }
872
- this.#s.push(t);
867
+ this.#i.push(t);
873
868
  }
874
- #v() {
869
+ #c() {
875
870
  if (this.linked) {
876
- var t = this.#t, r = this.#r;
877
- t === null ? Mr = r : t.#r = r, r === null ? ot = t : r.#t = t, this.linked = !1;
871
+ var t = this.prev, r = this.next;
872
+ t === null ? Mr = r : t.next = r, r === null ? ot = t : r.prev = t, this.linked = !1;
878
873
  }
879
874
  }
880
875
  }
881
- function pe(e) {
876
+ function ve(e) {
882
877
  var t = Dt, r = dt;
883
878
  dt = null, Dt = !0;
884
879
  try {
@@ -936,7 +931,7 @@ function Hi(e, t, r, n) {
936
931
  t,
937
932
  r,
938
933
  n
939
- ) : s & (ht | be) && !(s & W) && wn(i, t, n) && (V(i, W), Tn(
934
+ ) : s & (ht | be) && !(s & F) && wn(i, t, n) && (W(i, F), Tn(
940
935
  /** @type {Effect} */
941
936
  i
942
937
  ));
@@ -968,13 +963,13 @@ function Tn(e) {
968
963
  }
969
964
  function Mi(e, t) {
970
965
  if (!(e.f & we && e.f & Z)) {
971
- e.f & W ? t.d.push(e) : e.f & _e && t.m.push(e), V(e, Z);
966
+ e.f & F ? t.d.push(e) : e.f & ce && t.m.push(e), W(e, Z);
972
967
  for (var r = e.first; r !== null; )
973
968
  Mi(r, t), r = r.next;
974
969
  }
975
970
  }
976
971
  function Oi(e) {
977
- V(e, Z);
972
+ W(e, Z);
978
973
  for (var t = e.first; t !== null; )
979
974
  Oi(t), t = t.next;
980
975
  }
@@ -984,7 +979,6 @@ let Ni = !1;
984
979
  function rt(e, t) {
985
980
  var r = {
986
981
  f: 0,
987
- // TODO ideally we could skip this altogether, but it causes type errors
988
982
  v: e,
989
983
  reactions: null,
990
984
  equals: bi,
@@ -1004,9 +998,9 @@ function Sn(e, t = !1, r = !0) {
1004
998
  return t || (n.equals = yi), n;
1005
999
  }
1006
1000
  function z(e, t, r = !1) {
1007
- O !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1001
+ M !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1008
1002
  // to ensure we error if state is set inside an inspect effect
1009
- (!Ee || O.f & sr) && Ei() && O.f & (ee | be | ht | sr) && (Pe === null || !Pe.has(e)) && na();
1003
+ (!Ee || M.f & sr) && Ei() && M.f & (ee | be | ht | sr) && (Pe === null || !Pe.has(e)) && na();
1010
1004
  let n = r ? Bt(t) : t;
1011
1005
  return bt(e, n, er);
1012
1006
  }
@@ -1020,16 +1014,16 @@ function bt(e, t, r = null) {
1020
1014
  /** @type {Derived} */
1021
1015
  e
1022
1016
  );
1023
- e.f & W && xn(i), ye === null && En(i);
1017
+ e.f & F && xn(i), ye === null && En(i);
1024
1018
  }
1025
- e.wv = zi(), qe = null, zr = 0, Pi(e, W, r), qe = null, H !== null && H.f & Z && !(H.f & (we | Ue)) && (ce === null ? Ta([e]) : ce.push(e)), !n.is_fork && lr.size > 0 && !Ni && _a();
1019
+ e.wv = zi(), qe = null, zr = 0, Pi(e, F, r), qe = null, H !== null && H.f & Z && !(H.f & (we | Ue)) && (de === null ? Ta([e]) : de.push(e)), !n.is_fork && lr.size > 0 && !Ni && _a();
1026
1020
  }
1027
1021
  return t;
1028
1022
  }
1029
1023
  function _a() {
1030
1024
  Ni = !1;
1031
1025
  for (const e of lr) {
1032
- e.f & Z && V(e, _e);
1026
+ e.f & Z && W(e, ce);
1033
1027
  let t;
1034
1028
  try {
1035
1029
  t = qt(e);
@@ -1052,8 +1046,8 @@ function Pi(e, t, r) {
1052
1046
  qe.add(e);
1053
1047
  }
1054
1048
  for (var s = 0; s < i; s++) {
1055
- var a = n[s], o = a.f, u = (o & W) === 0;
1056
- if (u && V(a, t), o & sr)
1049
+ var a = n[s], o = a.f, u = (o & F) === 0;
1050
+ if (u && W(a, t), o & sr)
1057
1051
  lr.add(
1058
1052
  /** @type {Effect} */
1059
1053
  a
@@ -1063,7 +1057,7 @@ function Pi(e, t, r) {
1063
1057
  /** @type {Derived} */
1064
1058
  a
1065
1059
  );
1066
- ye?.delete(l), Pi(l, _e, r);
1060
+ ye?.delete(l), Pi(l, ce, r);
1067
1061
  } else if (u) {
1068
1062
  var f = (
1069
1063
  /** @type {Effect} */
@@ -1083,7 +1077,7 @@ function Bt(e) {
1083
1077
  var r = /* @__PURE__ */ new Map(), n = hi(e), i = /* @__PURE__ */ ie(0), s = tt, a = (o) => {
1084
1078
  if (tt === s)
1085
1079
  return o();
1086
- var u = O, l = tt;
1080
+ var u = M, l = tt;
1087
1081
  me(null), kn(s);
1088
1082
  var f = o();
1089
1083
  return me(u), kn(l), f;
@@ -1150,7 +1144,7 @@ function Bt(e) {
1150
1144
  if (u === ct)
1151
1145
  return !0;
1152
1146
  var l = r.get(u), f = l !== void 0 && l.v !== Y || Reflect.has(o, u);
1153
- if (l !== void 0 || H !== null && (!f || ft(o, u)?.writable)) {
1147
+ if (l !== void 0 || (H !== null || M !== null) && (!f || ft(o, u)?.writable)) {
1154
1148
  l === void 0 && (l = a(() => {
1155
1149
  var d = f ? Bt(o[u]) : Y, p = /* @__PURE__ */ ie(d);
1156
1150
  return p;
@@ -1179,11 +1173,11 @@ function Bt(e) {
1179
1173
  var A = Reflect.getOwnPropertyDescriptor(o, u);
1180
1174
  if (A?.set && A.set.call(f, l), !d) {
1181
1175
  if (n && typeof u == "string") {
1182
- var L = (
1176
+ var I = (
1183
1177
  /** @type {Source<number>} */
1184
1178
  r.get("length")
1185
1179
  ), B = Number(u);
1186
- Number.isInteger(B) && B >= L.v && z(L, B + 1);
1180
+ Number.isInteger(B) && B >= I.v && z(I, B + 1);
1187
1181
  }
1188
1182
  Ft(i);
1189
1183
  }
@@ -1217,7 +1211,7 @@ function Te(e = "") {
1217
1211
  return document.createTextNode(e);
1218
1212
  }
1219
1213
  // @__NO_SIDE_EFFECTS__
1220
- function ve(e) {
1214
+ function _e(e) {
1221
1215
  return (
1222
1216
  /** @type {TemplateNode | null} */
1223
1217
  Li.call(e)
@@ -1231,11 +1225,11 @@ function Se(e) {
1231
1225
  );
1232
1226
  }
1233
1227
  function Zr(e, t) {
1234
- if (!I)
1235
- return /* @__PURE__ */ ve(e);
1236
- var r = /* @__PURE__ */ ve($);
1228
+ if (!$)
1229
+ return /* @__PURE__ */ _e(e);
1230
+ var r = /* @__PURE__ */ _e(L);
1237
1231
  if (r === null)
1238
- r = $.appendChild(Te());
1232
+ r = L.appendChild(Te());
1239
1233
  else if (t && r.nodeType !== _r) {
1240
1234
  var n = Te();
1241
1235
  return r?.before(n), ue(n), n;
@@ -1246,34 +1240,34 @@ function Zr(e, t) {
1246
1240
  ), ue(r), r;
1247
1241
  }
1248
1242
  function ma(e, t = !1) {
1249
- if (!I) {
1250
- var r = /* @__PURE__ */ ve(e);
1243
+ if (!$) {
1244
+ var r = /* @__PURE__ */ _e(e);
1251
1245
  return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Se(r) : r;
1252
1246
  }
1253
1247
  if (t) {
1254
- if ($?.nodeType !== _r) {
1248
+ if (L?.nodeType !== _r) {
1255
1249
  var n = Te();
1256
- return $?.before(n), ue(n), n;
1250
+ return L?.before(n), ue(n), n;
1257
1251
  }
1258
1252
  An(
1259
1253
  /** @type {Text} */
1260
- $
1254
+ L
1261
1255
  );
1262
1256
  }
1263
- return $;
1257
+ return L;
1264
1258
  }
1265
1259
  function Nr(e, t = !1) {
1266
- if (!I)
1267
- return /* @__PURE__ */ ve(e);
1260
+ if (!$)
1261
+ return /* @__PURE__ */ _e(e);
1268
1262
  var r = Zr(e, t);
1269
1263
  return Xr(e), r;
1270
1264
  }
1271
1265
  function Fn(e, t = 1, r = !1) {
1272
- let n = I ? $ : e;
1266
+ let n = $ ? L : e;
1273
1267
  for (var i; t--; )
1274
1268
  i = n, n = /** @type {TemplateNode} */
1275
1269
  /* @__PURE__ */ Se(n);
1276
- if (!I)
1270
+ if (!$)
1277
1271
  return n;
1278
1272
  if (r) {
1279
1273
  if (n?.nodeType !== _r) {
@@ -1316,7 +1310,7 @@ function An(e) {
1316
1310
  function ga(e) {
1317
1311
  var t = H;
1318
1312
  if (t === null)
1319
- return O.f |= We, e;
1313
+ return M.f |= We, e;
1320
1314
  if (!(t.f & nt) && !(t.f & vt))
1321
1315
  throw e;
1322
1316
  He(e, t);
@@ -1342,7 +1336,7 @@ function He(e, t) {
1342
1336
  }
1343
1337
  }
1344
1338
  function Ri(e) {
1345
- H === null && (O === null && Qs(), Js()), Ge && qs();
1339
+ H === null && (M === null && Qs(), Js()), Ge && qs();
1346
1340
  }
1347
1341
  function ba(e, t) {
1348
1342
  var r = t.last;
@@ -1355,7 +1349,7 @@ function Ae(e, t) {
1355
1349
  ctx: ae,
1356
1350
  deps: null,
1357
1351
  nodes: null,
1358
- f: e | W | xe,
1352
+ f: e | F | xe,
1359
1353
  first: null,
1360
1354
  fn: t,
1361
1355
  last: null,
@@ -1380,28 +1374,28 @@ function Ae(e, t) {
1380
1374
  i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
1381
1375
  !(i.f & it) && (i = i.first, e & be && e & _t && i !== null && (i.f |= _t));
1382
1376
  }
1383
- if (i !== null && (i.parent = r, r !== null && ba(i, r), O !== null && O.f & ee && !(e & Ue))) {
1377
+ if (i !== null && (i.parent = r, r !== null && ba(i, r), M !== null && M.f & ee && !(e & Ue))) {
1384
1378
  var s = (
1385
1379
  /** @type {Derived} */
1386
- O
1380
+ M
1387
1381
  );
1388
1382
  (s.effects ??= []).push(i);
1389
1383
  }
1390
1384
  return n;
1391
1385
  }
1392
1386
  function Hn() {
1393
- return O !== null && !Ee;
1387
+ return M !== null && !Ee;
1394
1388
  }
1395
1389
  function Di(e) {
1396
1390
  const t = Ae(zt, null);
1397
- return V(t, Z), t.teardown = e, t;
1391
+ return W(t, Z), t.teardown = e, t;
1398
1392
  }
1399
1393
  function fr(e) {
1400
1394
  Ri();
1401
1395
  var t = (
1402
1396
  /** @type {Effect} */
1403
1397
  H.f
1404
- ), r = !O && (t & we) !== 0 && ae !== null && !ae.i;
1398
+ ), r = !M && (t & we) !== 0 && ae !== null && !ae.i;
1405
1399
  if (r) {
1406
1400
  var n = (
1407
1401
  /** @type {ComponentContext} */
@@ -1453,13 +1447,13 @@ function On(e, t = 0) {
1453
1447
  var r = Ae(be | t, e);
1454
1448
  return r;
1455
1449
  }
1456
- function de(e) {
1450
+ function pe(e) {
1457
1451
  return Ae(we | it, e);
1458
1452
  }
1459
1453
  function Fi(e) {
1460
1454
  var t = e.teardown;
1461
1455
  if (t !== null) {
1462
- const r = Ge, n = O;
1456
+ const r = Ge, n = M;
1463
1457
  Gn(!0), me(null);
1464
1458
  try {
1465
1459
  t.call(null);
@@ -1550,7 +1544,7 @@ function hr(e) {
1550
1544
  }
1551
1545
  function Vi(e, t) {
1552
1546
  if (!(e.f & vn) && e.f & se) {
1553
- e.f ^= se, e.f & Z || (V(e, W), Fe.ensure().schedule(e));
1547
+ e.f ^= se, e.f & Z || (W(e, F), Fe.ensure().schedule(e));
1554
1548
  for (var r = e.first; r !== null; ) {
1555
1549
  var n = r.next, i = (r.f & _t) !== 0 || (r.f & we) !== 0;
1556
1550
  Vi(r, i ? t : !1), r = n;
@@ -1572,9 +1566,9 @@ let Ge = !1;
1572
1566
  function Gn(e) {
1573
1567
  Ge = e;
1574
1568
  }
1575
- let O = null, Ee = !1;
1569
+ let M = null, Ee = !1;
1576
1570
  function me(e) {
1577
- O = e;
1571
+ M = e;
1578
1572
  }
1579
1573
  let H = null;
1580
1574
  function $e(e) {
@@ -1582,11 +1576,11 @@ function $e(e) {
1582
1576
  }
1583
1577
  let Pe = null;
1584
1578
  function Xi(e) {
1585
- O !== null && (O.f & ar || O.f & ee) && (Pe ??= /* @__PURE__ */ new Set()).add(e);
1579
+ M !== null && (M.f & ar || M.f & ee) && (Pe ??= /* @__PURE__ */ new Set()).add(e);
1586
1580
  }
1587
- let fe = null, he = 0, ce = null;
1581
+ let fe = null, he = 0, de = null;
1588
1582
  function Ta(e) {
1589
- ce = e;
1583
+ de = e;
1590
1584
  }
1591
1585
  let Wi = 1, Ke = 0, tt = Ke;
1592
1586
  function kn(e) {
@@ -1597,9 +1591,9 @@ function zi() {
1597
1591
  }
1598
1592
  function qt(e) {
1599
1593
  var t = e.f;
1600
- if (t & W)
1594
+ if (t & F)
1601
1595
  return !0;
1602
- if (t & _e) {
1596
+ if (t & ce) {
1603
1597
  for (var r = (
1604
1598
  /** @type {Value[]} */
1605
1599
  e.deps
@@ -1616,7 +1610,7 @@ function qt(e) {
1616
1610
  }
1617
1611
  t & xe && // During time traveling we don't want to reset the status so that
1618
1612
  // traversal of the graph in the other batches still happens
1619
- ye === null && V(e, Z);
1613
+ ye === null && W(e, Z);
1620
1614
  }
1621
1615
  return !1;
1622
1616
  }
@@ -1630,16 +1624,16 @@ function Yi(e, t, r = !0) {
1630
1624
  s,
1631
1625
  t,
1632
1626
  !1
1633
- ) : t === s && (r ? V(s, W) : s.f & Z && V(s, _e), Tn(
1627
+ ) : t === s && (r ? W(s, F) : s.f & Z && W(s, ce), Tn(
1634
1628
  /** @type {Effect} */
1635
1629
  s
1636
1630
  ));
1637
1631
  }
1638
1632
  }
1639
1633
  function Zi(e) {
1640
- var t = fe, r = he, n = ce, i = O, s = Pe, a = ae, o = Ee, u = tt, l = e.f;
1634
+ var t = fe, r = he, n = de, i = M, s = Pe, a = ae, o = Ee, u = tt, l = e.f;
1641
1635
  fe = /** @type {null | Value[]} */
1642
- null, he = 0, ce = null, O = l & (we | Ue) ? null : e, Pe = null, gt(e.ctx), Ee = !1, tt = ++Ke, e.ac !== null && (mr(() => {
1636
+ null, he = 0, de = null, M = l & (we | Ue) ? null : e, Pe = null, gt(e.ctx), Ee = !1, tt = ++Ke, e.ac !== null && (mr(() => {
1643
1637
  e.ac.abort(Yt);
1644
1638
  }), e.ac = null);
1645
1639
  try {
@@ -1650,11 +1644,11 @@ function Zi(e) {
1650
1644
  ), h = f();
1651
1645
  e.f |= nt;
1652
1646
  var d = jn(e);
1653
- if (Ei() && ce !== null && !Ee && d !== null && !(e.f & (ee | _e | W)))
1647
+ if (Ei() && de !== null && !Ee && d !== null && !(e.f & (ee | ce | F)))
1654
1648
  for (var p = 0; p < /** @type {Source[]} */
1655
- ce.length; p++)
1649
+ de.length; p++)
1656
1650
  Yi(
1657
- ce[p],
1651
+ de[p],
1658
1652
  /** @type {Effect} */
1659
1653
  e
1660
1654
  );
@@ -1665,14 +1659,14 @@ function Zi(e) {
1665
1659
  if (t !== null)
1666
1660
  for (const c of t)
1667
1661
  c.rv = Ke;
1668
- ce !== null && (n === null ? n = ce : n.push(.../** @type {Source[]} */
1669
- ce));
1662
+ de !== null && (n === null ? n = de : n.push(.../** @type {Source[]} */
1663
+ de));
1670
1664
  }
1671
1665
  return e.f & We && (e.f ^= We), h;
1672
1666
  } catch (c) {
1673
1667
  return jn(e), ga(c);
1674
1668
  } finally {
1675
- e.f ^= ar, fe = t, he = r, ce = n, O = i, Pe = s, gt(a), Ee = o, tt = u;
1669
+ e.f ^= ar, fe = t, he = r, de = n, M = i, Pe = s, gt(a), Ee = o, tt = u;
1676
1670
  }
1677
1671
  }
1678
1672
  function jn(e) {
@@ -1708,7 +1702,7 @@ function Sa(e, t) {
1708
1702
  t
1709
1703
  );
1710
1704
  s.f & xe && (s.f ^= xe), s.v !== Y && En(s), s.ac !== null && mr(() => {
1711
- s.ac.abort(Yt), s.ac = null, V(s, W);
1705
+ s.ac.abort(Yt), s.ac = null, W(s, F);
1712
1706
  }), da(s), Vt(s, 0);
1713
1707
  }
1714
1708
  }
@@ -1721,7 +1715,7 @@ function Vt(e, t) {
1721
1715
  function yt(e) {
1722
1716
  var t = e.f;
1723
1717
  if (!(t & J)) {
1724
- V(e, Z);
1718
+ W(e, Z);
1725
1719
  var r = H;
1726
1720
  H = e;
1727
1721
  try {
@@ -1729,27 +1723,27 @@ function yt(e) {
1729
1723
  var n = Zi(e);
1730
1724
  e.teardown = typeof n == "function" ? n : null, e.wv = Wi;
1731
1725
  var i;
1732
- fi && sa && e.f & W && e.deps;
1726
+ fi && sa && e.f & F && e.deps;
1733
1727
  } finally {
1734
1728
  H = r;
1735
1729
  }
1736
1730
  }
1737
1731
  }
1738
1732
  async function Aa() {
1739
- await Promise.resolve(), pe();
1733
+ await Promise.resolve(), ve();
1740
1734
  }
1741
1735
  function E(e) {
1742
1736
  var t = e.f, r = (t & ee) !== 0;
1743
- if (O !== null && !Ee) {
1737
+ if (M !== null && !Ee) {
1744
1738
  var n = H !== null && (H.f & J) !== 0;
1745
1739
  if (!n && (Pe === null || !Pe.has(e))) {
1746
- var i = O.deps;
1747
- if (O.f & ar)
1740
+ var i = M.deps;
1741
+ if (M.f & ar)
1748
1742
  e.rv < Ke && (e.rv = Ke, fe === null && i !== null && i[he] === e ? he++ : fe === null ? fe = [e] : fe.push(e));
1749
1743
  else {
1750
- O.deps ??= [], kt.call(O.deps, e) || O.deps.push(e);
1744
+ M.deps ??= [], kt.call(M.deps, e) || M.deps.push(e);
1751
1745
  var s = e.reactions;
1752
- s === null ? e.reactions = [O] : kt.call(s, O) || s.push(O);
1746
+ s === null ? e.reactions = [M] : kt.call(s, M) || s.push(M);
1753
1747
  }
1754
1748
  }
1755
1749
  }
@@ -1764,7 +1758,7 @@ function E(e) {
1764
1758
  var o = a.v;
1765
1759
  return (!(a.f & Z) && a.reactions !== null || Ji(a)) && (o = xn(a)), Ne.set(a, o), o;
1766
1760
  }
1767
- var u = (a.f & xe) === 0 && !Ee && O !== null && (O.f & xe) !== 0, l = (a.f & nt) === 0;
1761
+ var u = (a.f & xe) === 0 && !Ee && M !== null && (M.f & xe) !== 0, l = (a.f & nt) === 0;
1768
1762
  qt(a) && (u && (a.f |= xe), Si(a)), u && !l && (Ai(a), qi(a));
1769
1763
  }
1770
1764
  if (ye?.has(e))
@@ -1882,7 +1876,7 @@ function Vn(e) {
1882
1876
  return s || r;
1883
1877
  }
1884
1878
  });
1885
- var f = O, h = H;
1879
+ var f = M, h = H;
1886
1880
  me(null), $e(null);
1887
1881
  try {
1888
1882
  for (var d, p = []; s !== null && s !== t; ) {
@@ -1941,10 +1935,10 @@ function Re(e, t) {
1941
1935
  function xr(e, t) {
1942
1936
  var r = (t & Ls) !== 0, n = (t & Is) !== 0, i, s = !e.startsWith("<!>");
1943
1937
  return () => {
1944
- if (I)
1945
- return Re($, null), $;
1938
+ if ($)
1939
+ return Re(L, null), L;
1946
1940
  i === void 0 && (i = Pa(s ? e : "<!>" + e), r || (i = /** @type {TemplateNode} */
1947
- /* @__PURE__ */ ve(i)));
1941
+ /* @__PURE__ */ _e(i)));
1948
1942
  var a = (
1949
1943
  /** @type {TemplateNode} */
1950
1944
  n || $i ? document.importNode(i, !0) : i.cloneNode(!0)
@@ -1952,7 +1946,7 @@ function xr(e, t) {
1952
1946
  if (r) {
1953
1947
  var o = (
1954
1948
  /** @type {TemplateNode} */
1955
- /* @__PURE__ */ ve(a)
1949
+ /* @__PURE__ */ _e(a)
1956
1950
  ), u = (
1957
1951
  /** @type {TemplateNode} */
1958
1952
  a.lastChild
@@ -1964,18 +1958,18 @@ function xr(e, t) {
1964
1958
  };
1965
1959
  }
1966
1960
  function $a() {
1967
- if (I)
1968
- return Re($, null), $;
1961
+ if ($)
1962
+ return Re(L, null), L;
1969
1963
  var e = document.createDocumentFragment(), t = document.createComment(""), r = Te();
1970
1964
  return e.append(t, r), Re(t, r), e;
1971
1965
  }
1972
1966
  function lt(e, t) {
1973
- if (I) {
1967
+ if ($) {
1974
1968
  var r = (
1975
1969
  /** @type {Effect & { nodes: EffectNodes }} */
1976
1970
  H
1977
1971
  );
1978
- (!(r.f & nt) || r.nodes.end === null) && (r.nodes.end = $), mt();
1972
+ (!(r.f & nt) || r.nodes.end === null) && (r.nodes.end = L), mt();
1979
1973
  return;
1980
1974
  }
1981
1975
  e !== null && e.before(
@@ -2014,28 +2008,26 @@ class Da {
2014
2008
  /** @type {TemplateNode} */
2015
2009
  #e;
2016
2010
  /** @type {TemplateNode | null} */
2017
- #t = I ? $ : null;
2011
+ #t = $ ? L : null;
2018
2012
  /** @type {BoundaryProps} */
2019
2013
  #r;
2020
2014
  /** @type {((anchor: Node) => void)} */
2021
- #u;
2015
+ #o;
2022
2016
  /** @type {Effect} */
2023
- #i;
2017
+ #n;
2024
2018
  /** @type {Effect | null} */
2025
- #a = null;
2019
+ #i = null;
2026
2020
  /** @type {Effect | null} */
2027
- #n = null;
2021
+ #a = null;
2028
2022
  /** @type {Effect | null} */
2029
- #o = null;
2030
- /** @type {DocumentFragment | null} */
2031
2023
  #s = null;
2032
- #_ = 0;
2024
+ /** @type {DocumentFragment | null} */
2025
+ #u = null;
2026
+ #d = 0;
2033
2027
  #l = 0;
2034
- #f = !1;
2035
- /** @type {Set<Effect>} */
2036
- #c = /* @__PURE__ */ new Set();
2037
- /** @type {Set<Effect>} */
2038
- #m = /* @__PURE__ */ new Set();
2028
+ #v = !1;
2029
+ /** @type {Map<Effect, number>} */
2030
+ #m = /* @__PURE__ */ new Map();
2039
2031
  /**
2040
2032
  * A source containing the number of pending async deriveds/expressions.
2041
2033
  * Only created if `$effect.pending()` is used inside the boundary,
@@ -2043,9 +2035,9 @@ class Da {
2043
2035
  * calls followed by no-op flushes
2044
2036
  * @type {Source<number> | null}
2045
2037
  */
2046
- #h = null;
2047
- #E = Ba(() => (this.#h = rt(this.#_), () => {
2048
- this.#h = null;
2038
+ #f = null;
2039
+ #_ = Ba(() => (this.#f = rt(this.#d), () => {
2040
+ this.#f = null;
2049
2041
  }));
2050
2042
  /**
2051
2043
  * @param {TemplateNode} node
@@ -2054,15 +2046,15 @@ class Da {
2054
2046
  * @param {((error: unknown) => unknown) | undefined} [transform_error]
2055
2047
  */
2056
2048
  constructor(t, r, n, i) {
2057
- this.#e = t, this.#r = r, this.#u = (s) => {
2049
+ this.#e = t, this.#r = r, this.#o = (s) => {
2058
2050
  var a = (
2059
2051
  /** @type {Effect} */
2060
2052
  H
2061
2053
  );
2062
2054
  a.b = this, a.f |= kr, n(s);
2063
2055
  }, this.parent = /** @type {Effect} */
2064
- H.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = On(() => {
2065
- if (I) {
2056
+ H.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#n = On(() => {
2057
+ if ($) {
2066
2058
  const s = _n(
2067
2059
  /** @type {TemplateNode} */
2068
2060
  this.#t
@@ -2071,15 +2063,15 @@ class Da {
2071
2063
  const a = s === cn;
2072
2064
  if (s.startsWith(Bn)) {
2073
2065
  const u = JSON.parse(s.slice(Bn.length));
2074
- this.#g(u);
2075
- } else a ? this.#w() : this.#x();
2066
+ this.#y(u);
2067
+ } else a ? this.#p() : this.#g();
2076
2068
  } else
2077
- this.#p();
2078
- }, Ca), I && (this.#e = $);
2069
+ this.#E();
2070
+ }, Ca), $ && (this.#e = L);
2079
2071
  }
2080
- #x() {
2072
+ #g() {
2081
2073
  try {
2082
- this.#a = de(() => this.#u(this.#e));
2074
+ this.#i = pe(() => this.#o(this.#e));
2083
2075
  } catch (t) {
2084
2076
  this.error(t);
2085
2077
  }
@@ -2087,9 +2079,9 @@ class Da {
2087
2079
  /**
2088
2080
  * @param {unknown} error The deserialized error from the server's hydration comment
2089
2081
  */
2090
- #g(t) {
2082
+ #y(t) {
2091
2083
  const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#b(t);
2092
- Qe(i), r && (this.#o = de(() => {
2084
+ Qe(i), r && (this.#s = pe(() => {
2093
2085
  r(
2094
2086
  this.#e,
2095
2087
  () => t,
@@ -2106,80 +2098,80 @@ class Da {
2106
2098
  #b(t) {
2107
2099
  var r = !1, n = !1;
2108
2100
  const i = () => {
2109
- if (!this.#d()) {
2101
+ if (!this.#h()) {
2110
2102
  if (r) {
2111
2103
  Ws();
2112
2104
  return;
2113
2105
  }
2114
- r = !0, n && ia(), this.#o !== null && et(this.#o, () => {
2115
- this.#o = null;
2116
- }), this.#v(() => {
2117
- this.#p();
2106
+ r = !0, n && ia(), this.#s !== null && et(this.#s, () => {
2107
+ this.#s = null;
2108
+ }), this.#x(() => {
2109
+ this.#E();
2118
2110
  });
2119
2111
  }
2120
2112
  };
2121
2113
  return { reset: i, invoke_onerror: () => {
2122
- if (!this.#d())
2114
+ if (!this.#h())
2123
2115
  try {
2124
2116
  n = !0, this.#r.onerror?.(t, i), n = !1;
2125
2117
  } catch (a) {
2126
- He(a, this.#i && this.#i.parent);
2118
+ He(a, this.#n && this.#n.parent);
2127
2119
  }
2128
2120
  } };
2129
2121
  }
2130
- #d() {
2131
- return (this.#i.f & (J | jt)) !== 0;
2122
+ #h() {
2123
+ return (this.#n.f & (J | jt)) !== 0;
2132
2124
  }
2133
- #w() {
2125
+ #p() {
2134
2126
  const t = this.#r.pending;
2135
- t && (this.is_pending = !0, this.#n = de(() => t(this.#e)), Qe(() => {
2136
- if (!this.#d()) {
2137
- var r = this.#s = document.createDocumentFragment(), n = Te(), i = !1;
2138
- if (r.append(n), this.#a = this.#v(() => {
2127
+ t && (this.is_pending = !0, this.#a = pe(() => t(this.#e)), Qe(() => {
2128
+ if (!this.#h()) {
2129
+ var r = this.#u = document.createDocumentFragment(), n = Te(), i = !1;
2130
+ if (r.append(n), this.#i = this.#x(() => {
2139
2131
  try {
2140
- return de(() => this.#u(n));
2132
+ return pe(() => this.#o(n));
2141
2133
  } catch (s) {
2142
2134
  try {
2143
2135
  this.error(s), i = !0;
2144
2136
  } catch (a) {
2145
- He(a, this.#i.parent);
2137
+ He(a, this.#n.parent);
2146
2138
  }
2147
2139
  return null;
2148
2140
  }
2149
- }), this.#a === null) {
2150
- this.#s = null, i && this.#y(
2141
+ }), this.#i === null) {
2142
+ this.#u = null, i && this.#c(
2151
2143
  /** @type {Batch} */
2152
2144
  P
2153
2145
  );
2154
2146
  return;
2155
2147
  }
2156
- this.#l === 0 && (this.#e.before(r), this.#s = null, et(
2148
+ this.#l === 0 && (this.#e.before(r), this.#u = null, et(
2157
2149
  /** @type {Effect} */
2158
- this.#n,
2150
+ this.#a,
2159
2151
  () => {
2160
- this.#n = null;
2152
+ this.#a = null;
2161
2153
  }
2162
- ), this.#y(
2154
+ ), this.#c(
2163
2155
  /** @type {Batch} */
2164
2156
  P
2165
2157
  ));
2166
2158
  }
2167
2159
  }));
2168
2160
  }
2169
- #p() {
2161
+ #E() {
2170
2162
  try {
2171
- if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#_ = 0, this.#a = de(() => {
2172
- this.#u(this.#e);
2163
+ if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#d = 0, this.#i = pe(() => {
2164
+ this.#o(this.#e);
2173
2165
  }), this.#l > 0) {
2174
- var t = this.#s = document.createDocumentFragment();
2175
- Pn(this.#a, t);
2166
+ var t = this.#u = document.createDocumentFragment();
2167
+ Pn(this.#i, t);
2176
2168
  const r = (
2177
2169
  /** @type {(anchor: Node) => void} */
2178
2170
  this.#r.pending
2179
2171
  );
2180
- this.#n = de(() => r(this.#e));
2172
+ this.#a = pe(() => r(this.#e));
2181
2173
  } else
2182
- this.#y(
2174
+ this.#c(
2183
2175
  /** @type {Batch} */
2184
2176
  P
2185
2177
  );
@@ -2190,15 +2182,15 @@ class Da {
2190
2182
  /**
2191
2183
  * @param {Batch} batch
2192
2184
  */
2193
- #y(t) {
2194
- this.is_pending = !1, t.transfer_effects(this.#c, this.#m);
2185
+ #c(t) {
2186
+ this.is_pending = !1, t.transfer_reactions(this.#m);
2195
2187
  }
2196
2188
  /**
2197
2189
  * Defer an effect inside a pending boundary until the boundary resolves
2198
2190
  * @param {Effect} effect
2199
2191
  */
2200
2192
  defer_effect(t) {
2201
- wi(t, this.#c, this.#m);
2193
+ wi(t, this.#m);
2202
2194
  }
2203
2195
  /**
2204
2196
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -2214,9 +2206,9 @@ class Da {
2214
2206
  * @template T
2215
2207
  * @param {() => T} fn
2216
2208
  */
2217
- #v(t) {
2218
- var r = H, n = O, i = ae;
2219
- $e(this.#i), me(this.#i), gt(this.#i.ctx);
2209
+ #x(t) {
2210
+ var r = H, n = M, i = ae;
2211
+ $e(this.#n), me(this.#n), gt(this.#n.ctx);
2220
2212
  try {
2221
2213
  return Fe.ensure(), t();
2222
2214
  } finally {
@@ -2229,14 +2221,14 @@ class Da {
2229
2221
  * @param {1 | -1} d
2230
2222
  * @param {Batch} batch
2231
2223
  */
2232
- #T(t, r) {
2224
+ #w(t, r) {
2233
2225
  if (!this.has_pending_snippet()) {
2234
- this.parent && this.parent.#T(t, r);
2226
+ this.parent && this.parent.#w(t, r);
2235
2227
  return;
2236
2228
  }
2237
- this.#l += t, this.#l === 0 && (this.#y(r), this.#n && et(this.#n, () => {
2238
- this.#n = null;
2239
- }), this.#s && (this.#e.before(this.#s), this.#s = null));
2229
+ this.#l += t, this.#l === 0 && (this.#c(r), this.#a && et(this.#a, () => {
2230
+ this.#a = null;
2231
+ }), this.#u && (this.#e.before(this.#u), this.#u = null));
2240
2232
  }
2241
2233
  /**
2242
2234
  * Update the source that powers `$effect.pending()` inside this boundary,
@@ -2246,39 +2238,39 @@ class Da {
2246
2238
  * @param {Batch} batch
2247
2239
  */
2248
2240
  update_pending_count(t, r) {
2249
- this.#T(t, r), this.#_ += t, !(!this.#h || this.#f) && (this.#f = !0, Qe(() => {
2250
- this.#f = !1, this.#h && bt(this.#h, this.#_);
2241
+ this.#w(t, r), this.#d += t, !(!this.#f || this.#v) && (this.#v = !0, Qe(() => {
2242
+ this.#v = !1, this.#f && bt(this.#f, this.#d);
2251
2243
  }));
2252
2244
  }
2253
2245
  get_effect_pending() {
2254
- return this.#E(), E(
2246
+ return this.#_(), E(
2255
2247
  /** @type {Source<number>} */
2256
- this.#h
2248
+ this.#f
2257
2249
  );
2258
2250
  }
2259
2251
  /** @param {unknown} error */
2260
2252
  error(t) {
2261
2253
  if (t === De || !this.#r.onerror && !this.#r.failed)
2262
2254
  throw t;
2263
- P?.is_fork ? (this.#a && P.skip_effect(this.#a), this.#n && P.skip_effect(this.#n), this.#o && P.skip_effect(this.#o), P.oncommit(() => {
2264
- this.#d() || this.#S(t);
2265
- })) : this.#S(t);
2255
+ P?.is_fork ? (this.#i && P.skip_effect(this.#i), this.#a && P.skip_effect(this.#a), this.#s && P.skip_effect(this.#s), P.oncommit(() => {
2256
+ this.#h() || this.#T(t);
2257
+ })) : this.#T(t);
2266
2258
  }
2267
2259
  /**
2268
2260
  * @param {unknown} error
2269
2261
  */
2270
- #S(t) {
2271
- this.#a && (oe(this.#a), this.#a = null), this.#n && (oe(this.#n), this.#n = null), this.#o && (oe(this.#o), this.#o = null), I && (ue(
2262
+ #T(t) {
2263
+ this.#i && (oe(this.#i), this.#i = null), this.#a && (oe(this.#a), this.#a = null), this.#s && (oe(this.#s), this.#s = null), $ && (ue(
2272
2264
  /** @type {TemplateNode} */
2273
2265
  this.#t
2274
2266
  ), zs(), ue(or()));
2275
2267
  let r = this.#r.failed;
2276
2268
  const n = (i) => {
2277
- if (this.#d()) return;
2269
+ if (this.#h()) return;
2278
2270
  const { reset: s, invoke_onerror: a } = this.#b(i);
2279
- a(), r && !this.#d() && (this.#o = this.#v(() => {
2271
+ a(), r && !this.#h() && (this.#s = this.#x(() => {
2280
2272
  try {
2281
- return de(() => {
2273
+ return pe(() => {
2282
2274
  var o = (
2283
2275
  /** @type {Effect} */
2284
2276
  H
@@ -2293,25 +2285,25 @@ class Da {
2293
2285
  return He(
2294
2286
  o,
2295
2287
  /** @type {Effect} */
2296
- this.#i.parent
2288
+ this.#n.parent
2297
2289
  ), null;
2298
2290
  }
2299
2291
  }));
2300
2292
  };
2301
2293
  Qe(() => {
2302
- if (!this.#d()) {
2294
+ if (!this.#h()) {
2303
2295
  var i;
2304
2296
  try {
2305
2297
  i = this.transform_error(t);
2306
2298
  } catch (s) {
2307
- He(s, this.#i && this.#i.parent);
2299
+ He(s, this.#n && this.#n.parent);
2308
2300
  return;
2309
2301
  }
2310
2302
  i !== null && typeof i == "object" && typeof /** @type {any} */
2311
2303
  i.then == "function" ? i.then(
2312
2304
  n,
2313
2305
  /** @param {unknown} e */
2314
- (s) => He(s, this.#i && this.#i.parent)
2306
+ (s) => He(s, this.#n && this.#n.parent)
2315
2307
  ) : n(i);
2316
2308
  }
2317
2309
  });
@@ -2327,9 +2319,9 @@ function Ki(e, t) {
2327
2319
  }
2328
2320
  function Ua(e, t) {
2329
2321
  Yr(), t.intro = t.intro ?? !1;
2330
- const r = t.target, n = I, i = $;
2322
+ const r = t.target, n = $, i = L;
2331
2323
  try {
2332
- for (var s = /* @__PURE__ */ ve(r); s && (s.nodeType !== St || /** @type {Comment} */
2324
+ for (var s = /* @__PURE__ */ _e(r); s && (s.nodeType !== St || /** @type {Comment} */
2333
2325
  s.data !== ui); )
2334
2326
  s = /* @__PURE__ */ Se(s);
2335
2327
  if (!s)
@@ -2368,12 +2360,12 @@ function es(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
2368
2360
  /** @type {ComponentContext} */
2369
2361
  ae
2370
2362
  );
2371
- if (s && (c.c = s), i && (n.$$events = i), I && Re(
2363
+ if (s && (c.c = s), i && (n.$$events = i), $ && Re(
2372
2364
  /** @type {TemplateNode} */
2373
2365
  p,
2374
2366
  null
2375
- ), u = e(p, n) || yn(), I && (H.nodes.end = $, $ === null || $.nodeType !== St || /** @type {Comment} */
2376
- $.data !== dn))
2367
+ ), u = e(p, n) || yn(), $ && (H.nodes.end = L, L === null || L.nodeType !== St || /** @type {Comment} */
2368
+ L.data !== dn))
2377
2369
  throw Zt(), De;
2378
2370
  bn();
2379
2371
  },
@@ -2386,10 +2378,10 @@ function es(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
2386
2378
  h.add(g);
2387
2379
  var A = Ia(g);
2388
2380
  for (const D of [t, document]) {
2389
- var L = Qt.get(D);
2390
- L === void 0 && (L = /* @__PURE__ */ new Map(), Qt.set(D, L));
2391
- var B = L.get(g);
2392
- B === void 0 ? (D.addEventListener(g, Vn, { passive: A }), L.set(g, 1)) : L.set(g, B + 1);
2381
+ var I = Qt.get(D);
2382
+ I === void 0 && (I = /* @__PURE__ */ new Map(), Qt.set(D, I));
2383
+ var B = I.get(g);
2384
+ B === void 0 ? (D.addEventListener(g, Vn, { passive: A }), I.set(g, 1)) : I.set(g, B + 1);
2393
2385
  }
2394
2386
  }
2395
2387
  }
@@ -2446,30 +2438,30 @@ class Ga {
2446
2438
  * Keys of effects that are currently outroing
2447
2439
  * @type {Set<Key>}
2448
2440
  */
2449
- #u = /* @__PURE__ */ new Set();
2441
+ #o = /* @__PURE__ */ new Set();
2450
2442
  /**
2451
2443
  * Whether to pause (i.e. outro) on change, or destroy immediately.
2452
2444
  * This is necessary for `<svelte:element>`
2453
2445
  */
2454
- #i = !0;
2446
+ #n = !0;
2455
2447
  /**
2456
2448
  * @param {TemplateNode} anchor
2457
2449
  * @param {boolean} transition
2458
2450
  */
2459
2451
  constructor(t, r = !0) {
2460
- this.anchor = t, this.#i = r;
2452
+ this.anchor = t, this.#n = r;
2461
2453
  }
2462
2454
  /**
2463
2455
  * @param {Batch} batch
2464
2456
  */
2465
- #a = (t) => {
2457
+ #i = (t) => {
2466
2458
  if (this.#e.has(t)) {
2467
2459
  var r = (
2468
2460
  /** @type {Key} */
2469
2461
  this.#e.get(t)
2470
2462
  ), n = this.#t.get(r);
2471
2463
  if (n)
2472
- hr(n), this.#u.delete(r);
2464
+ hr(n), this.#o.delete(r);
2473
2465
  else {
2474
2466
  var i = this.#r.get(r);
2475
2467
  i && (hr(i.effect), this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
@@ -2481,23 +2473,23 @@ class Ga {
2481
2473
  o && (oe(o.effect), this.#r.delete(a));
2482
2474
  }
2483
2475
  for (const [s, a] of this.#t) {
2484
- if (s === r || this.#u.has(s)) continue;
2476
+ if (s === r || this.#o.has(s)) continue;
2485
2477
  const o = () => {
2486
2478
  if (Array.from(this.#e.values()).includes(s)) {
2487
2479
  var l = document.createDocumentFragment();
2488
2480
  Pn(a, l), l.append(Te()), this.#r.set(s, { effect: a, fragment: l });
2489
2481
  } else
2490
2482
  oe(a);
2491
- this.#u.delete(s), this.#t.delete(s);
2483
+ this.#o.delete(s), this.#t.delete(s);
2492
2484
  };
2493
- this.#i || !n ? (this.#u.add(s), et(a, o, !1)) : o();
2485
+ this.#n || !n ? (this.#o.add(s), et(a, o, !1)) : o();
2494
2486
  }
2495
2487
  }
2496
2488
  };
2497
2489
  /**
2498
2490
  * @param {Batch} batch
2499
2491
  */
2500
- #n = (t) => {
2492
+ #a = (t) => {
2501
2493
  this.#e.delete(t);
2502
2494
  const r = Array.from(this.#e.values());
2503
2495
  for (const [n, i] of this.#r)
@@ -2517,30 +2509,30 @@ class Ga {
2517
2509
  if (i) {
2518
2510
  var s = document.createDocumentFragment(), a = Te();
2519
2511
  s.append(a), this.#r.set(t, {
2520
- effect: de(() => r(a)),
2512
+ effect: pe(() => r(a)),
2521
2513
  fragment: s
2522
2514
  });
2523
2515
  } else
2524
2516
  this.#t.set(
2525
2517
  t,
2526
- de(() => r(this.anchor))
2518
+ pe(() => r(this.anchor))
2527
2519
  );
2528
2520
  if (this.#e.set(n, t), i) {
2529
2521
  for (const [o, u] of this.#t)
2530
2522
  o === t ? n.unskip_effect(u) : n.skip_effect(u);
2531
2523
  for (const [o, u] of this.#r)
2532
2524
  o === t ? n.unskip_effect(u.effect) : n.skip_effect(u.effect);
2533
- n.oncommit(this.#a), n.ondiscard(this.#n);
2525
+ n.oncommit(this.#i), n.ondiscard(this.#a);
2534
2526
  } else
2535
- I && (this.anchor = $), this.#a(n);
2527
+ $ && (this.anchor = L), this.#i(n);
2536
2528
  }
2537
2529
  }
2538
2530
  function Xn(e, t, r = !1) {
2539
2531
  var n;
2540
- I && (n = $, mt());
2532
+ $ && (n = L, mt());
2541
2533
  var i = new Ga(e), s = r ? _t : 0;
2542
2534
  function a(o, u) {
2543
- if (I) {
2535
+ if ($) {
2544
2536
  var l = _n(
2545
2537
  /** @type {TemplateNode} */
2546
2538
  n
@@ -2626,7 +2618,7 @@ function en(e, t, r = !0) {
2626
2618
  var Wn;
2627
2619
  function Va(e, t, r, n, i, s = null) {
2628
2620
  var a = e, o = /* @__PURE__ */ new Map();
2629
- I && mt();
2621
+ $ && mt();
2630
2622
  var u = null, l = /* @__PURE__ */ ha(() => {
2631
2623
  var A = r();
2632
2624
  return (
@@ -2637,8 +2629,8 @@ function Va(e, t, r, n, i, s = null) {
2637
2629
  function d(A) {
2638
2630
  if (!(g.effect.f & J)) {
2639
2631
  g.pending.delete(A);
2640
- var L = E(l);
2641
- g.fallback = u, Xa(g, L, a, t, n), u !== null && (L.length === 0 ? u.f & Ie ? (u.f ^= Ie, Rt(u, null, a)) : hr(u) : et(u, () => {
2632
+ var I = E(l);
2633
+ g.fallback = u, Xa(g, I, a, t, n), u !== null && (I.length === 0 ? u.f & Ie ? (u.f ^= Ie, Rt(u, null, a)) : hr(u) : et(u, () => {
2642
2634
  u = null;
2643
2635
  }));
2644
2636
  }
@@ -2650,19 +2642,19 @@ function Va(e, t, r, n, i, s = null) {
2650
2642
  var A = (
2651
2643
  /** @type {V[]} */
2652
2644
  E(l)
2653
- ), L = A.length;
2645
+ ), I = A.length;
2654
2646
  let B = !1;
2655
- if (I) {
2647
+ if ($) {
2656
2648
  var D = _n(a) === cn;
2657
- D !== (L === 0) && (a = or(), ue(a), Be(!1), B = !0);
2649
+ D !== (I === 0) && (a = or(), ue(a), Be(!1), B = !0);
2658
2650
  }
2659
2651
  for (var q = /* @__PURE__ */ new Set(), R = (
2660
2652
  /** @type {Batch} */
2661
2653
  P
2662
- ), X = Ci(), Q = 0; Q < L; Q += 1) {
2663
- I && $.nodeType === St && /** @type {Comment} */
2664
- $.data === dn && (a = /** @type {Comment} */
2665
- $, B = !0, Be(!1));
2654
+ ), X = Ci(), Q = 0; Q < I; Q += 1) {
2655
+ $ && L.nodeType === St && /** @type {Comment} */
2656
+ L.data === dn && (a = /** @type {Comment} */
2657
+ L, B = !0, Be(!1));
2666
2658
  var K = A[Q], ge = n(K, Q), y = h ? null : o.get(ge);
2667
2659
  y ? (y.v && bt(y.v, K), y.i && bt(y.i, Q), X && R.unskip_effect(y.e)) : (y = Wa(
2668
2660
  o,
@@ -2675,7 +2667,7 @@ function Va(e, t, r, n, i, s = null) {
2675
2667
  r
2676
2668
  ), h || (y.e.f |= Ie), o.set(ge, y)), q.add(ge);
2677
2669
  }
2678
- if (L === 0 && s && !u && (h ? u = de(() => s(a)) : (u = de(() => s(Wn ??= Te())), u.f |= Ie)), L > q.size && Zs(), I && L > 0 && ue(or()), !h)
2670
+ if (I === 0 && s && !u && (h ? u = pe(() => s(a)) : (u = pe(() => s(Wn ??= Te())), u.f |= Ie)), I > q.size && Zs(), $ && I > 0 && ue(or()), !h)
2679
2671
  if (f.set(R, q), X) {
2680
2672
  for (const [w, te] of o)
2681
2673
  q.has(w) || R.skip_effect(te.e);
@@ -2684,7 +2676,7 @@ function Va(e, t, r, n, i, s = null) {
2684
2676
  d(R);
2685
2677
  B && Be(!0), E(l);
2686
2678
  }), g = { effect: c, items: o, pending: f, outrogroups: null, fallback: u };
2687
- h = !1, I && (a = $);
2679
+ h = !1, $ && (a = L);
2688
2680
  }
2689
2681
  function $t(e) {
2690
2682
  for (; e !== null && !(e.f & we); )
@@ -2709,14 +2701,14 @@ function Xa(e, t, r, n, i) {
2709
2701
  if (c !== o) {
2710
2702
  if (u !== void 0 && u.has(c)) {
2711
2703
  if (f.length < h.length) {
2712
- var L = h[0], B;
2713
- l = L.prev;
2704
+ var I = h[0], B;
2705
+ l = I.prev;
2714
2706
  var D = f[0], q = f[f.length - 1];
2715
2707
  for (B = 0; B < f.length; B += 1)
2716
- Rt(f[B], L, r);
2708
+ Rt(f[B], I, r);
2717
2709
  for (B = 0; B < h.length; B += 1)
2718
2710
  u.delete(h[B]);
2719
- Ve(e, D.prev, q.next), Ve(e, l, D), Ve(e, q, L), o = L, l = q, g -= 1, f = [], h = [];
2711
+ Ve(e, D.prev, q.next), Ve(e, l, D), Ve(e, q, I), o = I, l = q, g -= 1, f = [], h = [];
2720
2712
  } else
2721
2713
  u.delete(c), Rt(c, o, r), Ve(e, c.prev, c.next), Ve(e, c, l === null ? e.effect.first : l.next), Ve(e, l, c), l = c;
2722
2714
  continue;
@@ -2752,7 +2744,7 @@ function Wa(e, t, r, n, i, s, a, o) {
2752
2744
  return {
2753
2745
  v: u,
2754
2746
  i: l,
2755
- e: de(() => (s(t, u ?? r, l ?? i, o), () => {
2747
+ e: pe(() => (s(t, u ?? r, l ?? i, o), () => {
2756
2748
  e.delete(n);
2757
2749
  }))
2758
2750
  };
@@ -2782,7 +2774,7 @@ function vl(e, t, r = !1, n = !1, i = !1, s = !1) {
2782
2774
  /** @type {Element} */
2783
2775
  e
2784
2776
  );
2785
- I && (a = ue(/* @__PURE__ */ ve(u)));
2777
+ $ && (a = ue(/* @__PURE__ */ _e(u)));
2786
2778
  }
2787
2779
  qr(() => {
2788
2780
  var l = (
@@ -2790,14 +2782,14 @@ function vl(e, t, r = !1, n = !1, i = !1, s = !1) {
2790
2782
  H
2791
2783
  );
2792
2784
  if (o === (o = t() ?? "")) {
2793
- I && mt();
2785
+ $ && mt();
2794
2786
  return;
2795
2787
  }
2796
- if (r && !I) {
2788
+ if (r && !$) {
2797
2789
  l.nodes = null, u.innerHTML = /** @type {string} */
2798
2790
  o, o !== "" && Re(
2799
2791
  /** @type {TemplateNode} */
2800
- /* @__PURE__ */ ve(u),
2792
+ /* @__PURE__ */ _e(u),
2801
2793
  /** @type {TemplateNode} */
2802
2794
  u.lastChild
2803
2795
  );
@@ -2808,14 +2800,14 @@ function vl(e, t, r = !1, n = !1, i = !1, s = !1) {
2808
2800
  /** @type {TemplateNode} */
2809
2801
  l.nodes.end
2810
2802
  ), l.nodes = null), o !== "") {
2811
- if (I) {
2812
- $.data;
2803
+ if ($) {
2804
+ L.data;
2813
2805
  for (var f = mt(), h = f; f !== null && (f.nodeType !== St || /** @type {Comment} */
2814
2806
  f.data !== ""); )
2815
2807
  h = f, f = /* @__PURE__ */ Se(f);
2816
2808
  if (f === null)
2817
2809
  throw Zt(), De;
2818
- Re($, h), a = ue(f);
2810
+ Re(L, h), a = ue(f);
2819
2811
  return;
2820
2812
  }
2821
2813
  var d = n ? Bs : i ? Cs : void 0, p = (
@@ -2830,14 +2822,14 @@ function vl(e, t, r = !1, n = !1, i = !1, s = !1) {
2830
2822
  );
2831
2823
  if (Re(
2832
2824
  /** @type {TemplateNode} */
2833
- /* @__PURE__ */ ve(c),
2825
+ /* @__PURE__ */ _e(c),
2834
2826
  /** @type {TemplateNode} */
2835
2827
  c.lastChild
2836
2828
  ), n || i)
2837
- for (; /* @__PURE__ */ ve(c); )
2829
+ for (; /* @__PURE__ */ _e(c); )
2838
2830
  a.before(
2839
2831
  /** @type {TemplateNode} */
2840
- /* @__PURE__ */ ve(c)
2832
+ /* @__PURE__ */ _e(c)
2841
2833
  );
2842
2834
  else
2843
2835
  a.before(c);
@@ -2905,9 +2897,9 @@ function Za(e, t, r, n, i, s) {
2905
2897
  /** @type {any} */
2906
2898
  e[jr]
2907
2899
  );
2908
- if (I || a !== r || a === void 0) {
2900
+ if ($ || a !== r || a === void 0) {
2909
2901
  var o = Ya(r, n, s);
2910
- (!I || o !== e.getAttribute("class")) && (o == null ? e.removeAttribute("class") : e.className = o), e[jr] = r;
2902
+ (!$ || o !== e.getAttribute("class")) && (o == null ? e.removeAttribute("class") : e.className = o), e[jr] = r;
2911
2903
  } else if (s && i !== s)
2912
2904
  for (var u in s) {
2913
2905
  var l = !!s[u];
@@ -2918,7 +2910,10 @@ function Za(e, t, r, n, i, s) {
2918
2910
  const qa = Symbol("is custom element"), Ja = Symbol("is html"), Qa = Vs ? "link" : "LINK";
2919
2911
  function ml(e, t, r, n) {
2920
2912
  var i = Ka(e);
2921
- I && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Qa) || i[t] !== (i[t] = r) && (t === "loading" && (e[ks] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && eo(e).has(t) ? e[t] = r : e.setAttribute(t, r));
2913
+ if (!($ && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Qa))) {
2914
+ var s = i[t];
2915
+ s !== (i[t] = r) && (t === "loading" && (e[ks] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && eo(e).has(t) ? e[t] = r : $ && (typeof r == "number" || typeof r == "boolean") && s === String(r) || e.setAttribute(t, r));
2916
+ }
2922
2917
  }
2923
2918
  function Ka(e) {
2924
2919
  return (
@@ -3162,7 +3157,7 @@ class ao {
3162
3157
  intro: t.intro ?? !1,
3163
3158
  recover: t.recover,
3164
3159
  transformError: t.transformError
3165
- }), (!t?.props?.$$host || t.sync === !1) && pe(), this.#e = i.$$events;
3160
+ }), (!t?.props?.$$host || t.sync === !1) && ve(), this.#e = i.$$events;
3166
3161
  for (const s of Object.keys(this.#t))
3167
3162
  s === "$set" || s === "$destroy" || s === "$on" || pt(this, s, {
3168
3163
  get() {
@@ -3438,7 +3433,7 @@ var vo = { exports: {} };
3438
3433
  (function(r, n) {
3439
3434
  e.exports = n();
3440
3435
  })(co, function() {
3441
- var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", u = "hour", l = "day", f = "week", h = "month", d = "quarter", p = "year", c = "date", g = "Invalid Date", A = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, B = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(x) {
3436
+ var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", u = "hour", l = "day", f = "week", h = "month", d = "quarter", p = "year", c = "date", g = "Invalid Date", A = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, B = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(x) {
3442
3437
  var m = ["th", "st", "nd", "rd"], v = x % 100;
3443
3438
  return "[" + x + (m[(v - 20) % 10] || m[v] || m[0]) + "]";
3444
3439
  } }, D = function(x, m, v) {
@@ -3496,8 +3491,8 @@ var vo = { exports: {} };
3496
3491
  if (typeof _ == "string" && !/Z$/i.test(_)) {
3497
3492
  var S = _.match(A);
3498
3493
  if (S) {
3499
- var C = S[2] - 1 || 0, G = (S[7] || "0").substring(0, 3);
3500
- return T ? new Date(Date.UTC(S[1], C, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, G)) : new Date(S[1], C, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, G);
3494
+ var C = S[2] - 1 || 0, k = (S[7] || "0").substring(0, 3);
3495
+ return T ? new Date(Date.UTC(S[1], C, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, k)) : new Date(S[1], C, S[3] || 1, S[4] || 0, S[5] || 0, S[6] || 0, k);
3501
3496
  }
3502
3497
  }
3503
3498
  return new Date(_);
@@ -3526,37 +3521,37 @@ var vo = { exports: {} };
3526
3521
  var _ = this, T = !!w.u(b) || b, S = w.p(v), C = function(Ze, le) {
3527
3522
  var je = w.w(_.$u ? Date.UTC(_.$y, le, Ze) : new Date(_.$y, le, Ze), _);
3528
3523
  return T ? je : je.endOf(l);
3529
- }, G = function(Ze, le) {
3524
+ }, k = function(Ze, le) {
3530
3525
  return w.w(_.toDate()[Ze].apply(_.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(le)), _);
3531
- }, U = this.$W, k = this.$M, re = this.$D, ke = "set" + (this.$u ? "UTC" : "");
3526
+ }, U = this.$W, j = this.$M, re = this.$D, ke = "set" + (this.$u ? "UTC" : "");
3532
3527
  switch (S) {
3533
3528
  case p:
3534
3529
  return T ? C(1, 0) : C(31, 11);
3535
3530
  case h:
3536
- return T ? C(1, k) : C(0, k + 1);
3531
+ return T ? C(1, j) : C(0, j + 1);
3537
3532
  case f:
3538
3533
  var Ye = this.$locale().weekStart || 0, Nt = (U < Ye ? U + 7 : U) - Ye;
3539
- return C(T ? re - Nt : re + (6 - Nt), k);
3534
+ return C(T ? re - Nt : re + (6 - Nt), j);
3540
3535
  case l:
3541
3536
  case c:
3542
- return G(ke + "Hours", 0);
3537
+ return k(ke + "Hours", 0);
3543
3538
  case u:
3544
- return G(ke + "Minutes", 1);
3539
+ return k(ke + "Minutes", 1);
3545
3540
  case o:
3546
- return G(ke + "Seconds", 2);
3541
+ return k(ke + "Seconds", 2);
3547
3542
  case a:
3548
- return G(ke + "Milliseconds", 3);
3543
+ return k(ke + "Milliseconds", 3);
3549
3544
  default:
3550
3545
  return this.clone();
3551
3546
  }
3552
3547
  }, m.endOf = function(v) {
3553
3548
  return this.startOf(v, !1);
3554
3549
  }, m.$set = function(v, b) {
3555
- var _, T = w.p(v), S = "set" + (this.$u ? "UTC" : ""), C = (_ = {}, _[l] = S + "Date", _[c] = S + "Date", _[h] = S + "Month", _[p] = S + "FullYear", _[u] = S + "Hours", _[o] = S + "Minutes", _[a] = S + "Seconds", _[s] = S + "Milliseconds", _)[T], G = T === l ? this.$D + (b - this.$W) : b;
3550
+ var _, T = w.p(v), S = "set" + (this.$u ? "UTC" : ""), C = (_ = {}, _[l] = S + "Date", _[c] = S + "Date", _[h] = S + "Month", _[p] = S + "FullYear", _[u] = S + "Hours", _[o] = S + "Minutes", _[a] = S + "Seconds", _[s] = S + "Milliseconds", _)[T], k = T === l ? this.$D + (b - this.$W) : b;
3556
3551
  if (T === h || T === p) {
3557
3552
  var U = this.clone().set(c, 1);
3558
- U.$d[C](G), U.init(), this.$d = U.set(c, Math.min(this.$D, U.daysInMonth())).$d;
3559
- } else C && this.$d[C](G);
3553
+ U.$d[C](k), U.init(), this.$d = U.set(c, Math.min(this.$D, U.daysInMonth())).$d;
3554
+ } else C && this.$d[C](k);
3560
3555
  return this.init(), this;
3561
3556
  }, m.set = function(v, b) {
3562
3557
  return this.clone().$set(v, b);
@@ -3565,22 +3560,22 @@ var vo = { exports: {} };
3565
3560
  }, m.add = function(v, b) {
3566
3561
  var _, T = this;
3567
3562
  v = Number(v);
3568
- var S = w.p(b), C = function(k) {
3563
+ var S = w.p(b), C = function(j) {
3569
3564
  var re = y(T);
3570
- return w.w(re.date(re.date() + Math.round(k * v)), T);
3565
+ return w.w(re.date(re.date() + Math.round(j * v)), T);
3571
3566
  };
3572
3567
  if (S === h) return this.set(h, this.$M + v);
3573
3568
  if (S === p) return this.set(p, this.$y + v);
3574
3569
  if (S === l) return C(1);
3575
3570
  if (S === f) return C(7);
3576
- var G = (_ = {}, _[o] = n, _[u] = i, _[a] = r, _)[S] || 1, U = this.$d.getTime() + v * G;
3571
+ var k = (_ = {}, _[o] = n, _[u] = i, _[a] = r, _)[S] || 1, U = this.$d.getTime() + v * k;
3577
3572
  return w.w(U, this);
3578
3573
  }, m.subtract = function(v, b) {
3579
3574
  return this.add(-1 * v, b);
3580
3575
  }, m.format = function(v) {
3581
3576
  var b = this, _ = this.$locale();
3582
3577
  if (!this.isValid()) return _.invalidDate || g;
3583
- var T = v || "YYYY-MM-DDTHH:mm:ssZ", S = w.z(this), C = this.$H, G = this.$m, U = this.$M, k = _.weekdays, re = _.months, ke = _.meridiem, Ye = function(le, je, Pt, Jt) {
3578
+ var T = v || "YYYY-MM-DDTHH:mm:ssZ", S = w.z(this), C = this.$H, k = this.$m, U = this.$M, j = _.weekdays, re = _.months, ke = _.meridiem, Ye = function(le, je, Pt, Jt) {
3584
3579
  return le && (le[je] || le(b, T)) || Pt[je].slice(0, Jt);
3585
3580
  }, Nt = function(le) {
3586
3581
  return w.s(C % 12 || 12, le, "0");
@@ -3588,7 +3583,7 @@ var vo = { exports: {} };
3588
3583
  var Jt = le < 12 ? "AM" : "PM";
3589
3584
  return Pt ? Jt.toLowerCase() : Jt;
3590
3585
  };
3591
- return T.replace(L, function(le, je) {
3586
+ return T.replace(I, function(le, je) {
3592
3587
  return je || function(Pt) {
3593
3588
  switch (Pt) {
3594
3589
  case "YY":
@@ -3610,11 +3605,11 @@ var vo = { exports: {} };
3610
3605
  case "d":
3611
3606
  return String(b.$W);
3612
3607
  case "dd":
3613
- return Ye(_.weekdaysMin, b.$W, k, 2);
3608
+ return Ye(_.weekdaysMin, b.$W, j, 2);
3614
3609
  case "ddd":
3615
- return Ye(_.weekdaysShort, b.$W, k, 3);
3610
+ return Ye(_.weekdaysShort, b.$W, j, 3);
3616
3611
  case "dddd":
3617
- return k[b.$W];
3612
+ return j[b.$W];
3618
3613
  case "H":
3619
3614
  return String(C);
3620
3615
  case "HH":
@@ -3624,13 +3619,13 @@ var vo = { exports: {} };
3624
3619
  case "hh":
3625
3620
  return Nt(2);
3626
3621
  case "a":
3627
- return Ze(C, G, !0);
3622
+ return Ze(C, k, !0);
3628
3623
  case "A":
3629
- return Ze(C, G, !1);
3624
+ return Ze(C, k, !1);
3630
3625
  case "m":
3631
- return String(G);
3626
+ return String(k);
3632
3627
  case "mm":
3633
- return w.s(G, 2, "0");
3628
+ return w.s(k, 2, "0");
3634
3629
  case "s":
3635
3630
  return String(b.$s);
3636
3631
  case "ss":
@@ -3646,8 +3641,8 @@ var vo = { exports: {} };
3646
3641
  }, m.utcOffset = function() {
3647
3642
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3648
3643
  }, m.diff = function(v, b, _) {
3649
- var T, S = this, C = w.p(b), G = y(v), U = (G.utcOffset() - this.utcOffset()) * n, k = this - G, re = function() {
3650
- return w.m(S, G);
3644
+ var T, S = this, C = w.p(b), k = y(v), U = (k.utcOffset() - this.utcOffset()) * n, j = this - k, re = function() {
3645
+ return w.m(S, k);
3651
3646
  };
3652
3647
  switch (C) {
3653
3648
  case p:
@@ -3660,22 +3655,22 @@ var vo = { exports: {} };
3660
3655
  T = re() / 3;
3661
3656
  break;
3662
3657
  case f:
3663
- T = (k - U) / 6048e5;
3658
+ T = (j - U) / 6048e5;
3664
3659
  break;
3665
3660
  case l:
3666
- T = (k - U) / 864e5;
3661
+ T = (j - U) / 864e5;
3667
3662
  break;
3668
3663
  case u:
3669
- T = k / i;
3664
+ T = j / i;
3670
3665
  break;
3671
3666
  case o:
3672
- T = k / n;
3667
+ T = j / n;
3673
3668
  break;
3674
3669
  case a:
3675
- T = k / r;
3670
+ T = j / r;
3676
3671
  break;
3677
3672
  default:
3678
- T = k;
3673
+ T = j;
3679
3674
  }
3680
3675
  return _ ? T : w.a(T);
3681
3676
  }, m.daysInMonth = function() {
@@ -3878,44 +3873,44 @@ var Co = function() {
3878
3873
  return t;
3879
3874
  }, cr.apply(this, arguments);
3880
3875
  };
3881
- var M;
3876
+ var O;
3882
3877
  (function(e) {
3883
3878
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
3884
- })(M || (M = {}));
3885
- var F;
3879
+ })(O || (O = {}));
3880
+ var G;
3886
3881
  (function(e) {
3887
3882
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
3888
- })(F || (F = {}));
3883
+ })(G || (G = {}));
3889
3884
  var xt;
3890
3885
  (function(e) {
3891
3886
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
3892
3887
  })(xt || (xt = {}));
3893
3888
  function qn(e) {
3894
- return e.type === F.literal;
3889
+ return e.type === G.literal;
3895
3890
  }
3896
3891
  function Uo(e) {
3897
- return e.type === F.argument;
3892
+ return e.type === G.argument;
3898
3893
  }
3899
3894
  function as(e) {
3900
- return e.type === F.number;
3895
+ return e.type === G.number;
3901
3896
  }
3902
3897
  function os(e) {
3903
- return e.type === F.date;
3898
+ return e.type === G.date;
3904
3899
  }
3905
3900
  function us(e) {
3906
- return e.type === F.time;
3901
+ return e.type === G.time;
3907
3902
  }
3908
3903
  function ls(e) {
3909
- return e.type === F.select;
3904
+ return e.type === G.select;
3910
3905
  }
3911
3906
  function fs(e) {
3912
- return e.type === F.plural;
3907
+ return e.type === G.plural;
3913
3908
  }
3914
3909
  function Fo(e) {
3915
- return e.type === F.pound;
3910
+ return e.type === G.pound;
3916
3911
  }
3917
3912
  function hs(e) {
3918
- return e.type === F.tag;
3913
+ return e.type === G.tag;
3919
3914
  }
3920
3915
  function cs(e) {
3921
3916
  return !!(e && typeof e == "object" && e.type === xt.number);
@@ -4015,14 +4010,14 @@ function ko(e) {
4015
4010
  return "";
4016
4011
  }), t;
4017
4012
  }
4018
- var j = function() {
4019
- return j = Object.assign || function(t) {
4013
+ var V = function() {
4014
+ return V = Object.assign || function(t) {
4020
4015
  for (var r, n = 1, i = arguments.length; n < i; n++) {
4021
4016
  r = arguments[n];
4022
4017
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
4023
4018
  }
4024
4019
  return t;
4025
- }, j.apply(this, arguments);
4020
+ }, V.apply(this, arguments);
4026
4021
  };
4027
4022
  var jo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
4028
4023
  function Vo(e) {
@@ -4146,13 +4141,13 @@ function Yo(e) {
4146
4141
  t.notation = "compact", t.compactDisplay = "long";
4147
4142
  continue;
4148
4143
  case "scientific":
4149
- t = j(j(j({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
4150
- return j(j({}, u), Kn(l));
4144
+ t = V(V(V({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
4145
+ return V(V({}, u), Kn(l));
4151
4146
  }, {}));
4152
4147
  continue;
4153
4148
  case "engineering":
4154
- t = j(j(j({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
4155
- return j(j({}, u), Kn(l));
4149
+ t = V(V(V({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
4150
+ return V(V({}, u), Kn(l));
4156
4151
  }, {}));
4157
4152
  continue;
4158
4153
  case "notation-simple":
@@ -4221,17 +4216,17 @@ function Yo(e) {
4221
4216
  return f === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && p ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
4222
4217
  });
4223
4218
  var s = i.options[0];
4224
- s === "w" ? t = j(j({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = j(j({}, t), Qn(s)));
4219
+ s === "w" ? t = V(V({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = V(V({}, t), Qn(s)));
4225
4220
  continue;
4226
4221
  }
4227
4222
  if (ps.test(i.stem)) {
4228
- t = j(j({}, t), Qn(i.stem));
4223
+ t = V(V({}, t), Qn(i.stem));
4229
4224
  continue;
4230
4225
  }
4231
4226
  var a = _s(i.stem);
4232
- a && (t = j(j({}, t), a));
4227
+ a && (t = V(V({}, t), a));
4233
4228
  var o = zo(i.stem);
4234
- o && (t = j(j({}, t), o));
4229
+ o && (t = V(V({}, t), o));
4235
4230
  }
4236
4231
  return t;
4237
4232
  }
@@ -5815,13 +5810,13 @@ var fu = (
5815
5810
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
5816
5811
  var o = this.clonePosition();
5817
5812
  this.bump(), i.push({
5818
- type: F.pound,
5813
+ type: G.pound,
5819
5814
  location: N(o, this.clonePosition())
5820
5815
  });
5821
5816
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
5822
5817
  if (n)
5823
5818
  break;
5824
- return this.error(M.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
5819
+ return this.error(O.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
5825
5820
  } else if (s === 60 && !this.ignoreTag && un(this.peek() || 0)) {
5826
5821
  var a = this.parseTag(t, r);
5827
5822
  if (a.err)
@@ -5843,7 +5838,7 @@ var fu = (
5843
5838
  if (this.bumpSpace(), this.bumpIf("/>"))
5844
5839
  return {
5845
5840
  val: {
5846
- type: F.literal,
5841
+ type: G.literal,
5847
5842
  value: "<".concat(i, "/>"),
5848
5843
  location: N(n, this.clonePosition())
5849
5844
  },
@@ -5856,21 +5851,21 @@ var fu = (
5856
5851
  var a = s.val, o = this.clonePosition();
5857
5852
  if (this.bumpIf("</")) {
5858
5853
  if (this.isEOF() || !un(this.char()))
5859
- return this.error(M.INVALID_TAG, N(o, this.clonePosition()));
5854
+ return this.error(O.INVALID_TAG, N(o, this.clonePosition()));
5860
5855
  var u = this.clonePosition(), l = this.parseTagName();
5861
- return i !== l ? this.error(M.UNMATCHED_CLOSING_TAG, N(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
5856
+ return i !== l ? this.error(O.UNMATCHED_CLOSING_TAG, N(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
5862
5857
  val: {
5863
- type: F.tag,
5858
+ type: G.tag,
5864
5859
  value: i,
5865
5860
  children: a,
5866
5861
  location: N(n, this.clonePosition())
5867
5862
  },
5868
5863
  err: null
5869
- } : this.error(M.INVALID_TAG, N(o, this.clonePosition())));
5864
+ } : this.error(O.INVALID_TAG, N(o, this.clonePosition())));
5870
5865
  } else
5871
- return this.error(M.UNCLOSED_TAG, N(n, this.clonePosition()));
5866
+ return this.error(O.UNCLOSED_TAG, N(n, this.clonePosition()));
5872
5867
  } else
5873
- return this.error(M.INVALID_TAG, N(n, this.clonePosition()));
5868
+ return this.error(O.INVALID_TAG, N(n, this.clonePosition()));
5874
5869
  }, e.prototype.parseTagName = function() {
5875
5870
  var t = this.offset();
5876
5871
  for (this.bump(); !this.isEOF() && cu(this.char()); )
@@ -5897,7 +5892,7 @@ var fu = (
5897
5892
  }
5898
5893
  var u = N(n, this.clonePosition());
5899
5894
  return {
5900
- val: { type: F.literal, value: i, location: u },
5895
+ val: { type: G.literal, value: i, location: u },
5901
5896
  err: null
5902
5897
  };
5903
5898
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -5945,19 +5940,19 @@ var fu = (
5945
5940
  }, e.prototype.parseArgument = function(t, r) {
5946
5941
  var n = this.clonePosition();
5947
5942
  if (this.bump(), this.bumpSpace(), this.isEOF())
5948
- return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
5943
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
5949
5944
  if (this.char() === 125)
5950
- return this.bump(), this.error(M.EMPTY_ARGUMENT, N(n, this.clonePosition()));
5945
+ return this.bump(), this.error(O.EMPTY_ARGUMENT, N(n, this.clonePosition()));
5951
5946
  var i = this.parseIdentifierIfPossible().value;
5952
5947
  if (!i)
5953
- return this.error(M.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
5948
+ return this.error(O.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
5954
5949
  if (this.bumpSpace(), this.isEOF())
5955
- return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
5950
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
5956
5951
  switch (this.char()) {
5957
5952
  case 125:
5958
5953
  return this.bump(), {
5959
5954
  val: {
5960
- type: F.argument,
5955
+ type: G.argument,
5961
5956
  // value does not include the opening and closing braces.
5962
5957
  value: i,
5963
5958
  location: N(n, this.clonePosition())
@@ -5965,9 +5960,9 @@ var fu = (
5965
5960
  err: null
5966
5961
  };
5967
5962
  case 44:
5968
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
5963
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
5969
5964
  default:
5970
- return this.error(M.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
5965
+ return this.error(O.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
5971
5966
  }
5972
5967
  }, e.prototype.parseIdentifierIfPossible = function() {
5973
5968
  var t = this.clonePosition(), r = this.offset(), n = on(this.message, r), i = r + n.length;
@@ -5978,7 +5973,7 @@ var fu = (
5978
5973
  var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, u = this.clonePosition();
5979
5974
  switch (o) {
5980
5975
  case "":
5981
- return this.error(M.EXPECT_ARGUMENT_TYPE, N(a, u));
5976
+ return this.error(O.EXPECT_ARGUMENT_TYPE, N(a, u));
5982
5977
  case "number":
5983
5978
  case "date":
5984
5979
  case "time": {
@@ -5991,7 +5986,7 @@ var fu = (
5991
5986
  return h;
5992
5987
  var d = lu(h.val);
5993
5988
  if (d.length === 0)
5994
- return this.error(M.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
5989
+ return this.error(O.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
5995
5990
  var p = N(f, this.clonePosition());
5996
5991
  l = { style: d, styleLocation: p };
5997
5992
  }
@@ -6004,20 +5999,20 @@ var fu = (
6004
5999
  if (o === "number") {
6005
6000
  var h = this.parseNumberSkeletonFromString(A, l.styleLocation);
6006
6001
  return h.err ? h : {
6007
- val: { type: F.number, value: n, location: g, style: h.val },
6002
+ val: { type: G.number, value: n, location: g, style: h.val },
6008
6003
  err: null
6009
6004
  };
6010
6005
  } else {
6011
6006
  if (A.length === 0)
6012
- return this.error(M.EXPECT_DATE_TIME_SKELETON, g);
6013
- var L = A;
6014
- this.locale && (L = Zo(A, this.locale));
6007
+ return this.error(O.EXPECT_DATE_TIME_SKELETON, g);
6008
+ var I = A;
6009
+ this.locale && (I = Zo(A, this.locale));
6015
6010
  var d = {
6016
6011
  type: xt.dateTime,
6017
- pattern: L,
6012
+ pattern: I,
6018
6013
  location: l.styleLocation,
6019
- parsedOptions: this.shouldParseSkeletons ? ko(L) : {}
6020
- }, B = o === "date" ? F.date : F.time;
6014
+ parsedOptions: this.shouldParseSkeletons ? ko(I) : {}
6015
+ }, B = o === "date" ? G.date : G.time;
6021
6016
  return {
6022
6017
  val: { type: B, value: n, location: g, style: d },
6023
6018
  err: null
@@ -6026,7 +6021,7 @@ var fu = (
6026
6021
  }
6027
6022
  return {
6028
6023
  val: {
6029
- type: o === "number" ? F.number : o === "date" ? F.date : F.time,
6024
+ type: o === "number" ? G.number : o === "date" ? G.date : G.time,
6030
6025
  value: n,
6031
6026
  location: g,
6032
6027
  style: (s = l?.style) !== null && s !== void 0 ? s : null
@@ -6039,14 +6034,14 @@ var fu = (
6039
6034
  case "select": {
6040
6035
  var D = this.clonePosition();
6041
6036
  if (this.bumpSpace(), !this.bumpIf(","))
6042
- return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS, N(D, cr({}, D)));
6037
+ return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, N(D, cr({}, D)));
6043
6038
  this.bumpSpace();
6044
6039
  var q = this.parseIdentifierIfPossible(), R = 0;
6045
6040
  if (o !== "select" && q.value === "offset") {
6046
6041
  if (!this.bumpIf(":"))
6047
- return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
6042
+ return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
6048
6043
  this.bumpSpace();
6049
- var h = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
6044
+ var h = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
6050
6045
  if (h.err)
6051
6046
  return h;
6052
6047
  this.bumpSpace(), q = this.parseIdentifierIfPossible(), R = h.val;
@@ -6060,7 +6055,7 @@ var fu = (
6060
6055
  var Q = N(i, this.clonePosition());
6061
6056
  return o === "select" ? {
6062
6057
  val: {
6063
- type: F.select,
6058
+ type: G.select,
6064
6059
  value: n,
6065
6060
  options: ti(X.val),
6066
6061
  location: Q
@@ -6068,7 +6063,7 @@ var fu = (
6068
6063
  err: null
6069
6064
  } : {
6070
6065
  val: {
6071
- type: F.plural,
6066
+ type: G.plural,
6072
6067
  value: n,
6073
6068
  options: ti(X.val),
6074
6069
  offset: R,
@@ -6079,10 +6074,10 @@ var fu = (
6079
6074
  };
6080
6075
  }
6081
6076
  default:
6082
- return this.error(M.INVALID_ARGUMENT_TYPE, N(a, u));
6077
+ return this.error(O.INVALID_ARGUMENT_TYPE, N(a, u));
6083
6078
  }
6084
6079
  }, e.prototype.tryParseArgumentClose = function(t) {
6085
- return this.isEOF() || this.char() !== 125 ? this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE, N(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
6080
+ return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, N(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
6086
6081
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
6087
6082
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
6088
6083
  var n = this.char();
@@ -6091,7 +6086,7 @@ var fu = (
6091
6086
  this.bump();
6092
6087
  var i = this.clonePosition();
6093
6088
  if (!this.bumpUntil("'"))
6094
- return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, N(i, this.clonePosition()));
6089
+ return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, N(i, this.clonePosition()));
6095
6090
  this.bump();
6096
6091
  break;
6097
6092
  }
@@ -6123,7 +6118,7 @@ var fu = (
6123
6118
  try {
6124
6119
  n = Vo(t);
6125
6120
  } catch {
6126
- return this.error(M.INVALID_NUMBER_SKELETON, r);
6121
+ return this.error(O.INVALID_NUMBER_SKELETON, r);
6127
6122
  }
6128
6123
  return {
6129
6124
  val: {
@@ -6139,7 +6134,7 @@ var fu = (
6139
6134
  if (l.length === 0) {
6140
6135
  var h = this.clonePosition();
6141
6136
  if (r !== "select" && this.bumpIf("=")) {
6142
- var d = this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR, M.INVALID_PLURAL_ARGUMENT_SELECTOR);
6137
+ var d = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
6143
6138
  if (d.err)
6144
6139
  return d;
6145
6140
  f = N(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
@@ -6147,11 +6142,11 @@ var fu = (
6147
6142
  break;
6148
6143
  }
6149
6144
  if (u.has(l))
6150
- return this.error(r === "select" ? M.DUPLICATE_SELECT_ARGUMENT_SELECTOR : M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
6145
+ return this.error(r === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
6151
6146
  l === "other" && (a = !0), this.bumpSpace();
6152
6147
  var p = this.clonePosition();
6153
6148
  if (!this.bumpIf("{"))
6154
- return this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
6149
+ return this.error(r === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
6155
6150
  var c = this.parseMessage(t + 1, r, n);
6156
6151
  if (c.err)
6157
6152
  return c;
@@ -6166,7 +6161,7 @@ var fu = (
6166
6161
  }
6167
6162
  ]), u.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, f = s.location;
6168
6163
  }
6169
- return o.length === 0 ? this.error(r === "select" ? M.EXPECT_SELECT_ARGUMENT_SELECTOR : M.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(M.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
6164
+ return o.length === 0 ? this.error(r === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(O.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
6170
6165
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
6171
6166
  var n = 1, i = this.clonePosition();
6172
6167
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -6271,7 +6266,7 @@ function pu(e, t) {
6271
6266
  t === void 0 && (t = {}), t = cr({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
6272
6267
  var r = new fu(e, t).parse();
6273
6268
  if (r.err) {
6274
- var n = SyntaxError(M[r.err.kind]);
6269
+ var n = SyntaxError(O[r.err.kind]);
6275
6270
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
6276
6271
  }
6277
6272
  return t?.captureLocation || ln(r.val), r.val;
@@ -6395,7 +6390,7 @@ function rr(e, t, r, n, i, s, a) {
6395
6390
  var c = f.children, g = f.value, A = i[g];
6396
6391
  if (!gu(A))
6397
6392
  throw new vu(g, "function", a);
6398
- var L = rr(c, t, r, n, i, s), B = A(L.map(function(R) {
6393
+ var I = rr(c, t, r, n, i, s), B = A(I.map(function(R) {
6399
6394
  return R.value;
6400
6395
  }));
6401
6396
  Array.isArray(B) || (B = [B]), o.push.apply(o, B.map(function(R) {
@@ -7027,61 +7022,61 @@ function Hs(e, t) {
7027
7022
  };
7028
7023
  return z(g, y.matches, !0), y.addEventListener("change", w), () => y.removeEventListener("change", w);
7029
7024
  });
7030
- const A = (y, w, te) => y <= (te ? ol : al) ? Array.from({ length: y }, (v, b) => b) : w <= 1 || w >= y - 2 ? [0, 1, "ellipsis", y - 2, y - 1] : [0, "ellipsis", w, "ellipsis", y - 1], L = /* @__PURE__ */ at(() => A(E(p), E(c), E(g))), B = (y) => u()(y * E(h)), D = () => u()(Math.max(0, E(c) - 1) * E(h)), q = () => u()(Math.min(E(p) - 1, E(c) + 1) * E(h));
7025
+ const A = (y, w, te) => y <= (te ? ol : al) ? Array.from({ length: y }, (v, b) => b) : w <= 1 || w >= y - 2 ? [0, 1, "ellipsis", y - 2, y - 1] : [0, "ellipsis", w, "ellipsis", y - 1], I = /* @__PURE__ */ at(() => A(E(p), E(c), E(g))), B = (y) => u()(y * E(h)), D = () => u()(Math.max(0, E(c) - 1) * E(h)), q = () => u()(Math.min(E(p) - 1, E(c) + 1) * E(h));
7031
7026
  var R = {
7032
7027
  get offset() {
7033
7028
  return s();
7034
7029
  },
7035
7030
  set offset(y = 0) {
7036
- s(y), pe();
7031
+ s(y), ve();
7037
7032
  },
7038
7033
  get limit() {
7039
7034
  return a();
7040
7035
  },
7041
7036
  set limit(y = Gt) {
7042
- a(y), pe();
7037
+ a(y), ve();
7043
7038
  },
7044
7039
  get total() {
7045
7040
  return o();
7046
7041
  },
7047
7042
  set total(y = 0) {
7048
- o(y), pe();
7043
+ o(y), ve();
7049
7044
  },
7050
7045
  get onPageChange() {
7051
7046
  return u();
7052
7047
  },
7053
7048
  set onPageChange(y = (w) => {
7054
7049
  }) {
7055
- u(y), pe();
7050
+ u(y), ve();
7056
7051
  },
7057
7052
  get locale() {
7058
7053
  return l();
7059
7054
  },
7060
7055
  set locale(y = "en") {
7061
- l(y), pe();
7056
+ l(y), ve();
7062
7057
  }
7063
7058
  }, X = hl(), Q = Zr(X);
7064
7059
  {
7065
7060
  var K = (y) => {
7066
7061
  var w = fl(), te = Zr(w), Ot = Nr(te, !0), x = Fn(te, 2);
7067
- Va(x, 17, () => E(L), ka, (b, _) => {
7062
+ Va(x, 17, () => E(I), ka, (b, _) => {
7068
7063
  var T = $a(), S = ma(T);
7069
7064
  {
7070
7065
  var C = (U) => {
7071
- var k = ul();
7072
- lt(U, k);
7073
- }, G = (U) => {
7074
- var k = ll();
7066
+ var j = ul();
7067
+ lt(U, j);
7068
+ }, k = (U) => {
7069
+ var j = ll();
7075
7070
  let re;
7076
- var ke = Nr(k, !0);
7071
+ var ke = Nr(j, !0);
7077
7072
  qr(() => {
7078
- re = Za(k, 1, "loyalty-pagination__btn", null, re, {
7073
+ re = Za(j, 1, "loyalty-pagination__btn", null, re, {
7079
7074
  "loyalty-pagination__btn--active": E(_) === E(c)
7080
7075
  }), Ir(ke, E(_) + 1);
7081
- }), Pr("click", k, () => B(E(_))), lt(U, k);
7076
+ }), Pr("click", j, () => B(E(_))), lt(U, j);
7082
7077
  };
7083
7078
  Xn(S, (U) => {
7084
- E(_) === "ellipsis" ? U(C) : U(G, -1);
7079
+ E(_) === "ellipsis" ? U(C) : U(k, -1);
7085
7080
  });
7086
7081
  }
7087
7082
  lt(b, T);
@@ -7124,31 +7119,31 @@ function Ms(e, t) {
7124
7119
  return r();
7125
7120
  },
7126
7121
  set offset(u = 0) {
7127
- r(u), pe();
7122
+ r(u), ve();
7128
7123
  },
7129
7124
  get limit() {
7130
7125
  return n();
7131
7126
  },
7132
7127
  set limit(u = Gt) {
7133
- n(u), pe();
7128
+ n(u), ve();
7134
7129
  },
7135
7130
  get total() {
7136
7131
  return i();
7137
7132
  },
7138
7133
  set total(u = 0) {
7139
- i(u), pe();
7134
+ i(u), ve();
7140
7135
  },
7141
7136
  get onPageChange() {
7142
7137
  return s();
7143
7138
  },
7144
7139
  set onPageChange(u) {
7145
- s(u), pe();
7140
+ s(u), ve();
7146
7141
  },
7147
7142
  get locale() {
7148
7143
  return a();
7149
7144
  },
7150
7145
  set locale(u = "en") {
7151
- a(u), pe();
7146
+ a(u), ve();
7152
7147
  }
7153
7148
  };
7154
7149
  return Hs(e, {
@@ -7226,7 +7221,7 @@ export {
7226
7221
  rl as s,
7227
7222
  xr as t,
7228
7223
  fr as u,
7229
- pe as v,
7224
+ ve as v,
7230
7225
  io as w,
7231
7226
  Zr as x,
7232
7227
  Xr as y,