@everymatrix/loyalty-rakeback 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,131 +1,128 @@
1
- const vi = "5";
2
- typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(vi);
3
- const _i = 1, mi = 4, bi = 8, gi = 16, yi = 2, Xr = "[", ur = "[!", Wr = "]", Ce = {}, N = Symbol(), jt = !1;
4
- var Ei = Array.isArray, xi = Array.prototype.indexOf, wi = Array.from, bt = Object.keys, Ye = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, Ti = Object.prototype, Si = Array.prototype, Ai = Object.getPrototypeOf, wr = Object.isExtensible;
1
+ const Si = "5";
2
+ typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(Si);
3
+ const Hi = 2, Zr = "[", fr = "[!", Yr = "]", Me = {}, O = Symbol(), zt = !1;
4
+ var Ai = Array.isArray, Bi = Array.prototype.indexOf, Ni = Array.from, wt = Object.keys, rt = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, Oi = Object.prototype, Pi = Array.prototype, Ci = Object.getPrototypeOf, wr = Object.isExtensible;
5
5
  const pe = () => {
6
6
  };
7
- function qr(e) {
7
+ function Qr(e) {
8
8
  for (var t = 0; t < e.length; t++)
9
9
  e[t]();
10
10
  }
11
- function zr() {
11
+ function Jr() {
12
12
  var e, t, r = new Promise((n, i) => {
13
13
  e = n, t = i;
14
14
  });
15
15
  return { promise: r, resolve: e, reject: t };
16
16
  }
17
- const I = 2, Vt = 4, At = 8, Zr = 1 << 24, ue = 16, le = 32, be = 64, lr = 128, X = 512, R = 1024, M = 2048, fe = 4096, ee = 8192, ie = 16384, Ht = 32768, Le = 65536, Tr = 1 << 17, Yr = 1 << 18, Ae = 1 << 19, Hi = 1 << 20, Te = 32768, Xt = 1 << 21, fr = 1 << 22, ve = 1 << 23, dt = Symbol("$state"), Qr = Symbol("legacy props"), Oe = new class extends Error {
17
+ const C = 2, Tt = 4, ut = 8, Kr = 1 << 24, le = 16, fe = 32, be = 64, hr = 128, X = 512, I = 1024, L = 2048, he = 4096, ee = 8192, se = 16384, Ct = 32768, $e = 65536, Tr = 1 << 17, en = 1 << 18, Be = 1 << 19, tn = 1 << 20, He = 32768, qt = 1 << 21, cr = 1 << 22, ve = 1 << 23, Ut = Symbol("$state"), Ii = Symbol("legacy props"), Ie = new class extends Error {
18
18
  name = "StaleReactionError";
19
19
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
20
- }(), hr = 3, rt = 8;
21
- function Bi() {
20
+ }(), dr = 3, lt = 8;
21
+ function Ri() {
22
22
  throw new Error("https://svelte.dev/e/async_derived_orphan");
23
23
  }
24
- function Pi(e) {
24
+ function Li(e) {
25
25
  throw new Error("https://svelte.dev/e/effect_in_teardown");
26
26
  }
27
- function Oi() {
27
+ function Mi() {
28
28
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
29
29
  }
30
- function Ni(e) {
30
+ function $i(e) {
31
31
  throw new Error("https://svelte.dev/e/effect_orphan");
32
32
  }
33
- function Ii() {
33
+ function ki() {
34
34
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
35
35
  }
36
- function Ri() {
36
+ function Di() {
37
37
  throw new Error("https://svelte.dev/e/hydration_failed");
38
38
  }
39
- function Ci(e) {
40
- throw new Error("https://svelte.dev/e/props_invalid_value");
41
- }
42
- function Li() {
39
+ function Ui() {
43
40
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
44
41
  }
45
- function Mi() {
42
+ function Fi() {
46
43
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
47
44
  }
48
- function $i() {
45
+ function Gi() {
49
46
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
50
47
  }
51
- function Di() {
48
+ function ji() {
52
49
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
53
50
  }
54
- function Bt(e) {
51
+ function It(e) {
55
52
  console.warn("https://svelte.dev/e/hydration_mismatch");
56
53
  }
57
- function Ui() {
54
+ function Vi() {
58
55
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
59
56
  }
60
- let B = !1;
61
- function Ne(e) {
62
- B = e;
57
+ let A = !1;
58
+ function Re(e) {
59
+ A = e;
63
60
  }
64
61
  let x;
65
- function Q(e) {
62
+ function Y(e) {
66
63
  if (e === null)
67
- throw Bt(), Ce;
64
+ throw It(), Me;
68
65
  return x = e;
69
66
  }
70
- function cr() {
71
- return Q(/* @__PURE__ */ he(x));
67
+ function pr() {
68
+ return Y(/* @__PURE__ */ ce(x));
72
69
  }
73
- function at(e) {
74
- if (B) {
75
- if (/* @__PURE__ */ he(x) !== null)
76
- throw Bt(), Ce;
70
+ function dt(e) {
71
+ if (A) {
72
+ if (/* @__PURE__ */ ce(x) !== null)
73
+ throw It(), Me;
77
74
  x = e;
78
75
  }
79
76
  }
80
- function Fi(e = 1) {
81
- if (B) {
77
+ function Xi(e = 1) {
78
+ if (A) {
82
79
  for (var t = e, r = x; t--; )
83
80
  r = /** @type {TemplateNode} */
84
- /* @__PURE__ */ he(r);
81
+ /* @__PURE__ */ ce(r);
85
82
  x = r;
86
83
  }
87
84
  }
88
- function Jr(e = !0) {
85
+ function rn(e = !0) {
89
86
  for (var t = 0, r = x; ; ) {
90
- if (r.nodeType === rt) {
87
+ if (r.nodeType === lt) {
91
88
  var n = (
92
89
  /** @type {Comment} */
93
90
  r.data
94
91
  );
95
- if (n === Wr) {
92
+ if (n === Yr) {
96
93
  if (t === 0) return r;
97
94
  t -= 1;
98
- } else (n === Xr || n === ur) && (t += 1);
95
+ } else (n === Zr || n === fr) && (t += 1);
99
96
  }
100
97
  var i = (
101
98
  /** @type {TemplateNode} */
102
- /* @__PURE__ */ he(r)
99
+ /* @__PURE__ */ ce(r)
103
100
  );
104
101
  e && r.remove(), r = i;
105
102
  }
106
103
  }
107
- function ki(e) {
108
- if (!e || e.nodeType !== rt)
109
- throw Bt(), Ce;
104
+ function Wi(e) {
105
+ if (!e || e.nodeType !== lt)
106
+ throw It(), Me;
110
107
  return (
111
108
  /** @type {Comment} */
112
109
  e.data
113
110
  );
114
111
  }
115
- function Kr(e) {
112
+ function nn(e) {
116
113
  return e === this.v;
117
114
  }
118
- function en(e, t) {
115
+ function sn(e, t) {
119
116
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
120
117
  }
121
- function tn(e) {
122
- return !en(e, this.v);
118
+ function zi(e) {
119
+ return !sn(e, this.v);
123
120
  }
124
- let Gi = !1, W = null;
125
- function Me(e) {
121
+ let qi = !1, W = null;
122
+ function ke(e) {
126
123
  W = e;
127
124
  }
128
- function dr(e, t = !1, r) {
125
+ function an(e, t = !1, r) {
129
126
  W = {
130
127
  p: W,
131
128
  i: !1,
@@ -136,7 +133,7 @@ function dr(e, t = !1, r) {
136
133
  l: null
137
134
  };
138
135
  }
139
- function pr(e) {
136
+ function on(e) {
140
137
  var t = (
141
138
  /** @type {ComponentContext} */
142
139
  W
@@ -144,47 +141,47 @@ function pr(e) {
144
141
  if (r !== null) {
145
142
  t.e = null;
146
143
  for (var n of r)
147
- En(n);
144
+ An(n);
148
145
  }
149
146
  return e !== void 0 && (t.x = e), t.i = !0, W = t.p, e ?? /** @type {T} */
150
147
  {};
151
148
  }
152
- function rn() {
149
+ function un() {
153
150
  return !0;
154
151
  }
155
- let ge = [];
156
- function nn() {
157
- var e = ge;
158
- ge = [], qr(e);
152
+ let xe = [];
153
+ function ln() {
154
+ var e = xe;
155
+ xe = [], Qr(e);
159
156
  }
160
157
  function vr(e) {
161
- if (ge.length === 0 && !qe) {
162
- var t = ge;
158
+ if (xe.length === 0 && !Ke) {
159
+ var t = xe;
163
160
  queueMicrotask(() => {
164
- t === ge && nn();
161
+ t === xe && ln();
165
162
  });
166
163
  }
167
- ge.push(e);
164
+ xe.push(e);
168
165
  }
169
- function ji() {
170
- for (; ge.length > 0; )
171
- nn();
166
+ function Zi() {
167
+ for (; xe.length > 0; )
168
+ ln();
172
169
  }
173
- function sn(e) {
174
- var t = g;
170
+ function fn(e) {
171
+ var t = b;
175
172
  if (t === null)
176
173
  return _.f |= ve, e;
177
- if (t.f & Ht)
178
- $e(e, t);
174
+ if (t.f & Ct)
175
+ De(e, t);
179
176
  else {
180
- if (!(t.f & lr))
177
+ if (!(t.f & hr))
181
178
  throw e;
182
179
  t.b.error(e);
183
180
  }
184
181
  }
185
- function $e(e, t) {
182
+ function De(e, t) {
186
183
  for (; t !== null; ) {
187
- if (t.f & lr)
184
+ if (t.f & hr)
188
185
  try {
189
186
  t.b.error(e);
190
187
  return;
@@ -195,27 +192,27 @@ function $e(e, t) {
195
192
  }
196
193
  throw e;
197
194
  }
198
- const Vi = -7169;
199
- function P(e, t) {
200
- e.f = e.f & Vi | t;
195
+ const Yi = -7169;
196
+ function B(e, t) {
197
+ e.f = e.f & Yi | t;
201
198
  }
202
199
  function _r(e) {
203
- e.f & X || e.deps === null ? P(e, R) : P(e, fe);
200
+ e.f & X || e.deps === null ? B(e, I) : B(e, he);
204
201
  }
205
- function an(e) {
202
+ function hn(e) {
206
203
  if (e !== null)
207
204
  for (const t of e)
208
- !(t.f & I) || !(t.f & Te) || (t.f ^= Te, an(
205
+ !(t.f & C) || !(t.f & He) || (t.f ^= He, hn(
209
206
  /** @type {Derived} */
210
207
  t.deps
211
208
  ));
212
209
  }
213
- function on(e, t, r) {
214
- e.f & M ? t.add(e) : e.f & fe && r.add(e), an(e.deps), P(e, R);
210
+ function cn(e, t, r) {
211
+ e.f & L ? t.add(e) : e.f & he && r.add(e), hn(e.deps), B(e, I);
215
212
  }
216
- const ot = /* @__PURE__ */ new Set();
217
- let H = null, z = null, V = [], Pt = null, Wt = !1, qe = !1;
218
- class Z {
213
+ const pt = /* @__PURE__ */ new Set();
214
+ let H = null, z = null, V = [], Rt = null, Zt = !1, Ke = !1;
215
+ class q {
219
216
  committed = !1;
220
217
  /**
221
218
  * The current values of any sources that are updated in this batch
@@ -293,11 +290,11 @@ class Z {
293
290
  * @param {Effect[]} render_effects
294
291
  */
295
292
  #o(t, r, n) {
296
- t.f ^= R;
293
+ t.f ^= I;
297
294
  for (var i = t.first, s = null; i !== null; ) {
298
- var a = i.f, o = (a & (le | be)) !== 0, u = o && (a & R) !== 0, l = u || (a & ee) !== 0 || this.skipped_effects.has(i);
295
+ var a = i.f, o = (a & (fe | be)) !== 0, u = o && (a & I) !== 0, l = u || (a & ee) !== 0 || this.skipped_effects.has(i);
299
296
  if (!l && i.fn !== null) {
300
- o ? i.f ^= R : s !== null && a & (Vt | At | Zr) ? s.b.defer_effect(i) : a & Vt ? r.push(i) : it(i) && (a & ue && this.#i.add(i), Je(i));
297
+ o ? i.f ^= I : s !== null && a & (Tt | ut | Kr) ? s.b.defer_effect(i) : a & Tt ? r.push(i) : ht(i) && (a & le && this.#i.add(i), it(i));
301
298
  var f = i.first;
302
299
  if (f !== null) {
303
300
  i = f;
@@ -314,7 +311,7 @@ class Z {
314
311
  */
315
312
  #u(t) {
316
313
  for (var r = 0; r < t.length; r += 1)
317
- on(t[r], this.#i, this.#n);
314
+ cn(t[r], this.#i, this.#n);
318
315
  }
319
316
  /**
320
317
  * Associate a change to a given source with the current
@@ -323,7 +320,7 @@ class Z {
323
320
  * @param {any} value
324
321
  */
325
322
  capture(t, r) {
326
- r !== N && !this.previous.has(t) && this.previous.set(t, r), t.f & ve || (this.current.set(t, t.v), z?.set(t, t.v));
323
+ r !== O && !this.previous.has(t) && this.previous.set(t, r), t.f & ve || (this.current.set(t, t.v), z?.set(t, t.v));
327
324
  }
328
325
  activate() {
329
326
  H = this, this.apply();
@@ -333,7 +330,7 @@ class Z {
333
330
  }
334
331
  flush() {
335
332
  if (this.activate(), V.length > 0) {
336
- if (un(), H !== null && H !== this)
333
+ if (dn(), H !== null && H !== this)
337
334
  return;
338
335
  } else this.#r === 0 && this.process([]);
339
336
  this.deactivate();
@@ -350,10 +347,10 @@ class Z {
350
347
  this.#r === 0 && this.#f();
351
348
  }
352
349
  #f() {
353
- if (ot.size > 1) {
350
+ if (pt.size > 1) {
354
351
  this.previous.clear();
355
352
  var t = z, r = !0;
356
- for (const i of ot) {
353
+ for (const i of pt) {
357
354
  if (i === this) {
358
355
  r = !1;
359
356
  continue;
@@ -375,7 +372,7 @@ class Z {
375
372
  V = [];
376
373
  const o = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
377
374
  for (const l of s)
378
- ln(l, a, o, u);
375
+ pn(l, a, o, u);
379
376
  if (V.length > 0) {
380
377
  H = i, i.apply();
381
378
  for (const l of V)
@@ -387,7 +384,7 @@ class Z {
387
384
  }
388
385
  H = null, z = t;
389
386
  }
390
- this.committed = !0, ot.delete(this);
387
+ this.committed = !0, pt.delete(this);
391
388
  }
392
389
  /**
393
390
  *
@@ -405,9 +402,9 @@ class Z {
405
402
  }
406
403
  revive() {
407
404
  for (const t of this.#i)
408
- this.#n.delete(t), P(t, M), ae(t);
405
+ this.#n.delete(t), B(t, L), oe(t);
409
406
  for (const t of this.#n)
410
- P(t, fe), ae(t);
407
+ B(t, he), oe(t);
411
408
  this.flush();
412
409
  }
413
410
  /** @param {() => void} fn */
@@ -419,12 +416,12 @@ class Z {
419
416
  this.#t.add(t);
420
417
  }
421
418
  settled() {
422
- return (this.#a ??= zr()).promise;
419
+ return (this.#a ??= Jr()).promise;
423
420
  }
424
421
  static ensure() {
425
422
  if (H === null) {
426
- const t = H = new Z();
427
- ot.add(H), qe || Z.enqueue(() => {
423
+ const t = H = new q();
424
+ pt.add(H), Ke || q.enqueue(() => {
428
425
  H === t && t.flush();
429
426
  });
430
427
  }
@@ -437,94 +434,94 @@ class Z {
437
434
  apply() {
438
435
  }
439
436
  }
440
- function pt(e) {
441
- var t = qe;
442
- qe = !0;
437
+ function Ye(e) {
438
+ var t = Ke;
439
+ Ke = !0;
443
440
  try {
444
441
  for (var r; ; ) {
445
- if (ji(), V.length === 0 && (H?.flush(), V.length === 0))
446
- return Pt = null, /** @type {T} */
442
+ if (Zi(), V.length === 0 && (H?.flush(), V.length === 0))
443
+ return Rt = null, /** @type {T} */
447
444
  r;
448
- un();
445
+ dn();
449
446
  }
450
447
  } finally {
451
- qe = t;
448
+ Ke = t;
452
449
  }
453
450
  }
454
- function un() {
455
- var e = xe;
456
- Wt = !0;
451
+ function dn() {
452
+ var e = Te;
453
+ Zt = !0;
457
454
  var t = null;
458
455
  try {
459
456
  var r = 0;
460
- for (Et(!0); V.length > 0; ) {
461
- var n = Z.ensure();
457
+ for (At(!0); V.length > 0; ) {
458
+ var n = q.ensure();
462
459
  if (r++ > 1e3) {
463
460
  var i, s;
464
- Xi();
461
+ Qi();
465
462
  }
466
463
  n.process(V), _e.clear();
467
464
  }
468
465
  } finally {
469
- Wt = !1, Et(e), Pt = null;
466
+ Zt = !1, At(e), Rt = null;
470
467
  }
471
468
  }
472
- function Xi() {
469
+ function Qi() {
473
470
  try {
474
- Ii();
471
+ ki();
475
472
  } catch (e) {
476
- $e(e, Pt);
473
+ De(e, Rt);
477
474
  }
478
475
  }
479
- let re = null;
476
+ let ne = null;
480
477
  function Sr(e) {
481
478
  var t = e.length;
482
479
  if (t !== 0) {
483
480
  for (var r = 0; r < t; ) {
484
481
  var n = e[r++];
485
- if (!(n.f & (ie | ee)) && it(n) && (re = /* @__PURE__ */ new Set(), Je(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? An(n) : n.fn = null), re?.size > 0)) {
482
+ if (!(n.f & (se | ee)) && ht(n) && (ne = /* @__PURE__ */ new Set(), it(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? Cn(n) : n.fn = null), ne?.size > 0)) {
486
483
  _e.clear();
487
- for (const i of re) {
488
- if (i.f & (ie | ee)) continue;
484
+ for (const i of ne) {
485
+ if (i.f & (se | ee)) continue;
489
486
  const s = [i];
490
487
  let a = i.parent;
491
488
  for (; a !== null; )
492
- re.has(a) && (re.delete(a), s.push(a)), a = a.parent;
489
+ ne.has(a) && (ne.delete(a), s.push(a)), a = a.parent;
493
490
  for (let o = s.length - 1; o >= 0; o--) {
494
491
  const u = s[o];
495
- u.f & (ie | ee) || Je(u);
492
+ u.f & (se | ee) || it(u);
496
493
  }
497
494
  }
498
- re.clear();
495
+ ne.clear();
499
496
  }
500
497
  }
501
- re = null;
498
+ ne = null;
502
499
  }
503
500
  }
504
- function ln(e, t, r, n) {
501
+ function pn(e, t, r, n) {
505
502
  if (!r.has(e) && (r.add(e), e.reactions !== null))
506
503
  for (const i of e.reactions) {
507
504
  const s = i.f;
508
- s & I ? ln(
505
+ s & C ? pn(
509
506
  /** @type {Derived} */
510
507
  i,
511
508
  t,
512
509
  r,
513
510
  n
514
- ) : s & (fr | ue) && !(s & M) && fn(i, t, n) && (P(i, M), ae(
511
+ ) : s & (cr | le) && !(s & L) && vn(i, t, n) && (B(i, L), oe(
515
512
  /** @type {Effect} */
516
513
  i
517
514
  ));
518
515
  }
519
516
  }
520
- function fn(e, t, r) {
517
+ function vn(e, t, r) {
521
518
  const n = r.get(e);
522
519
  if (n !== void 0) return n;
523
520
  if (e.deps !== null)
524
521
  for (const i of e.deps) {
525
522
  if (t.includes(i))
526
523
  return !0;
527
- if (i.f & I && fn(
524
+ if (i.f & C && vn(
528
525
  /** @type {Derived} */
529
526
  i,
530
527
  t,
@@ -538,41 +535,41 @@ function fn(e, t, r) {
538
535
  }
539
536
  return r.set(e, !1), !1;
540
537
  }
541
- function ae(e) {
542
- for (var t = Pt = e; t.parent !== null; ) {
538
+ function oe(e) {
539
+ for (var t = Rt = e; t.parent !== null; ) {
543
540
  t = t.parent;
544
541
  var r = t.f;
545
- if (Wt && t === g && r & ue && !(r & Yr))
542
+ if (Zt && t === b && r & le && !(r & en))
546
543
  return;
547
- if (r & (be | le)) {
548
- if (!(r & R)) return;
549
- t.f ^= R;
544
+ if (r & (be | fe)) {
545
+ if (!(r & I)) return;
546
+ t.f ^= I;
550
547
  }
551
548
  }
552
549
  V.push(t);
553
550
  }
554
- function Wi(e) {
555
- let t = 0, r = nt(0), n;
551
+ function Ji(e) {
552
+ let t = 0, r = ft(0), n;
556
553
  return () => {
557
- br() && (y(r), xn(() => (t === 0 && (n = gr(() => e(() => ze(r)))), t += 1, () => {
554
+ gr() && (g(r), Bn(() => (t === 0 && (n = jn(() => e(() => et(r)))), t += 1, () => {
558
555
  vr(() => {
559
- t -= 1, t === 0 && (n?.(), n = void 0, ze(r));
556
+ t -= 1, t === 0 && (n?.(), n = void 0, et(r));
560
557
  });
561
558
  })));
562
559
  };
563
560
  }
564
- var qi = Le | Ae | lr;
565
- function zi(e, t, r) {
566
- new Zi(e, t, r);
561
+ var Ki = $e | Be | hr;
562
+ function es(e, t, r) {
563
+ new ts(e, t, r);
567
564
  }
568
- class Zi {
565
+ class ts {
569
566
  /** @type {Boundary | null} */
570
567
  parent;
571
568
  is_pending = !1;
572
569
  /** @type {TemplateNode} */
573
570
  #e;
574
571
  /** @type {TemplateNode | null} */
575
- #t = B ? x : null;
572
+ #t = A ? x : null;
576
573
  /** @type {BoundaryProps} */
577
574
  #r;
578
575
  /** @type {((anchor: Node) => void)} */
@@ -604,7 +601,7 @@ class Zi {
604
601
  * @type {Source<number> | null}
605
602
  */
606
603
  #c = null;
607
- #y = Wi(() => (this.#c = nt(this.#f), () => {
604
+ #y = Ji(() => (this.#c = ft(this.#f), () => {
608
605
  this.#c = null;
609
606
  }));
610
607
  /**
@@ -614,16 +611,16 @@ class Zi {
614
611
  */
615
612
  constructor(t, r, n) {
616
613
  this.#e = t, this.#r = r, this.#s = n, this.parent = /** @type {Effect} */
617
- g.b, this.is_pending = !!this.#r.pending, this.#a = wn(() => {
618
- if (g.b = this, B) {
614
+ b.b, this.is_pending = !!this.#r.pending, this.#a = Nn(() => {
615
+ if (b.b = this, A) {
619
616
  const s = this.#t;
620
- cr(), /** @type {Comment} */
621
- s.nodeType === rt && /** @type {Comment} */
622
- s.data === ur ? this.#x() : (this.#E(), this.#h === 0 && (this.is_pending = !1));
617
+ pr(), /** @type {Comment} */
618
+ s.nodeType === lt && /** @type {Comment} */
619
+ s.data === fr ? this.#x() : (this.#E(), this.#h === 0 && (this.is_pending = !1));
623
620
  } else {
624
621
  var i = this.#b();
625
622
  try {
626
- this.#i = ne(() => n(i));
623
+ this.#i = ie(() => n(i));
627
624
  } catch (s) {
628
625
  this.error(s);
629
626
  }
@@ -632,20 +629,20 @@ class Zi {
632
629
  return () => {
633
630
  this.#l?.remove();
634
631
  };
635
- }, qi), B && (this.#e = x);
632
+ }, Ki), A && (this.#e = x);
636
633
  }
637
634
  #E() {
638
635
  try {
639
- this.#i = ne(() => this.#s(this.#e));
636
+ this.#i = ie(() => this.#s(this.#e));
640
637
  } catch (t) {
641
638
  this.error(t);
642
639
  }
643
640
  }
644
641
  #x() {
645
642
  const t = this.#r.pending;
646
- t && (this.#n = ne(() => t(this.#e)), Z.enqueue(() => {
643
+ t && (this.#n = ie(() => t(this.#e)), q.enqueue(() => {
647
644
  var r = this.#b();
648
- this.#i = this.#_(() => (Z.ensure(), ne(() => this.#s(r)))), this.#h > 0 ? this.#m() : (Ze(
645
+ this.#i = this.#_(() => (q.ensure(), ie(() => this.#s(r)))), this.#h > 0 ? this.#m() : (tt(
649
646
  /** @type {Effect} */
650
647
  this.#n,
651
648
  () => {
@@ -656,14 +653,14 @@ class Zi {
656
653
  }
657
654
  #b() {
658
655
  var t = this.#e;
659
- return this.is_pending && (this.#l = oe(), this.#e.before(this.#l), t = this.#l), t;
656
+ return this.is_pending && (this.#l = ue(), this.#e.before(this.#l), t = this.#l), t;
660
657
  }
661
658
  /**
662
659
  * Defer an effect inside a pending boundary until the boundary resolves
663
660
  * @param {Effect} effect
664
661
  */
665
662
  defer_effect(t) {
666
- on(t, this.#p, this.#v);
663
+ cn(t, this.#p, this.#v);
667
664
  }
668
665
  /**
669
666
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -679,14 +676,14 @@ class Zi {
679
676
  * @param {() => Effect | null} fn
680
677
  */
681
678
  #_(t) {
682
- var r = g, n = _, i = W;
683
- te(this.#a), D(this.#a), Me(this.#a.ctx);
679
+ var r = b, n = _, i = W;
680
+ te(this.#a), $(this.#a), ke(this.#a.ctx);
684
681
  try {
685
682
  return t();
686
683
  } catch (s) {
687
- return sn(s), null;
684
+ return fn(s), null;
688
685
  } finally {
689
- te(r), D(n), Me(i);
686
+ te(r), $(n), ke(i);
690
687
  }
691
688
  }
692
689
  #m() {
@@ -697,7 +694,7 @@ class Zi {
697
694
  this.#i !== null && (this.#u = document.createDocumentFragment(), this.#u.append(
698
695
  /** @type {TemplateNode} */
699
696
  this.#l
700
- ), Pn(this.#i, this.#u)), this.#n === null && (this.#n = ne(() => t(this.#e)));
697
+ ), Ln(this.#i, this.#u)), this.#n === null && (this.#n = ie(() => t(this.#e)));
701
698
  }
702
699
  /**
703
700
  * Updates the pending count associated with the currently visible pending snippet,
@@ -712,10 +709,10 @@ class Zi {
712
709
  if (this.#h += t, this.#h === 0) {
713
710
  this.is_pending = !1;
714
711
  for (const r of this.#p)
715
- P(r, M), ae(r);
712
+ B(r, L), oe(r);
716
713
  for (const r of this.#v)
717
- P(r, fe), ae(r);
718
- this.#p.clear(), this.#v.clear(), this.#n && Ze(this.#n, () => {
714
+ B(r, he), oe(r);
715
+ this.#p.clear(), this.#v.clear(), this.#n && tt(this.#n, () => {
719
716
  this.#n = null;
720
717
  }), this.#u && (this.#e.before(this.#u), this.#u = null);
721
718
  }
@@ -727,10 +724,10 @@ class Zi {
727
724
  * @param {1 | -1} d
728
725
  */
729
726
  update_pending_count(t) {
730
- this.#g(t), this.#f += t, this.#c && yt(this.#c, this.#f);
727
+ this.#g(t), this.#f += t, this.#c && Ht(this.#c, this.#f);
731
728
  }
732
729
  get_effect_pending() {
733
- return this.#y(), y(
730
+ return this.#y(), g(
734
731
  /** @type {Source<number>} */
735
732
  this.#c
736
733
  );
@@ -741,33 +738,33 @@ class Zi {
741
738
  let n = this.#r.failed;
742
739
  if (this.#d || !r && !n)
743
740
  throw t;
744
- this.#i && (U(this.#i), this.#i = null), this.#n && (U(this.#n), this.#n = null), this.#o && (U(this.#o), this.#o = null), B && (Q(
741
+ this.#i && (k(this.#i), this.#i = null), this.#n && (k(this.#n), this.#n = null), this.#o && (k(this.#o), this.#o = null), A && (Y(
745
742
  /** @type {TemplateNode} */
746
743
  this.#t
747
- ), Fi(), Q(Jr()));
744
+ ), Xi(), Y(rn()));
748
745
  var i = !1, s = !1;
749
746
  const a = () => {
750
747
  if (i) {
751
- Ui();
748
+ Vi();
752
749
  return;
753
750
  }
754
- i = !0, s && Di(), Z.ensure(), this.#f = 0, this.#o !== null && Ze(this.#o, () => {
751
+ i = !0, s && ji(), q.ensure(), this.#f = 0, this.#o !== null && tt(this.#o, () => {
755
752
  this.#o = null;
756
- }), this.is_pending = this.has_pending_snippet(), this.#i = this.#_(() => (this.#d = !1, ne(() => this.#s(this.#e)))), this.#h > 0 ? this.#m() : this.is_pending = !1;
753
+ }), this.is_pending = this.has_pending_snippet(), this.#i = this.#_(() => (this.#d = !1, ie(() => this.#s(this.#e)))), this.#h > 0 ? this.#m() : this.is_pending = !1;
757
754
  };
758
755
  var o = _;
759
756
  try {
760
- D(null), s = !0, r?.(t, a), s = !1;
757
+ $(null), s = !0, r?.(t, a), s = !1;
761
758
  } catch (u) {
762
- $e(u, this.#a && this.#a.parent);
759
+ De(u, this.#a && this.#a.parent);
763
760
  } finally {
764
- D(o);
761
+ $(o);
765
762
  }
766
763
  n && vr(() => {
767
764
  this.#o = this.#_(() => {
768
- Z.ensure(), this.#d = !0;
765
+ q.ensure(), this.#d = !0;
769
766
  try {
770
- return ne(() => {
767
+ return ie(() => {
771
768
  n(
772
769
  this.#e,
773
770
  () => t,
@@ -775,7 +772,7 @@ class Zi {
775
772
  );
776
773
  });
777
774
  } catch (u) {
778
- return $e(
775
+ return De(
779
776
  u,
780
777
  /** @type {Effect} */
781
778
  this.#a.parent
@@ -787,27 +784,27 @@ class Zi {
787
784
  });
788
785
  }
789
786
  }
790
- function Yi(e, t, r, n) {
791
- const i = Ot;
787
+ function rs(e, t, r, n) {
788
+ const i = mr;
792
789
  if (r.length === 0 && e.length === 0) {
793
790
  n(t.map(i));
794
791
  return;
795
792
  }
796
793
  var s = H, a = (
797
794
  /** @type {Effect} */
798
- g
799
- ), o = Qi();
795
+ b
796
+ ), o = ns();
800
797
  function u() {
801
- Promise.all(r.map((l) => /* @__PURE__ */ Ji(l))).then((l) => {
798
+ Promise.all(r.map((l) => /* @__PURE__ */ is(l))).then((l) => {
802
799
  o();
803
800
  try {
804
801
  n([...t.map(i), ...l]);
805
802
  } catch (f) {
806
- a.f & ie || $e(f, a);
803
+ a.f & se || De(f, a);
807
804
  }
808
- s?.deactivate(), gt();
805
+ s?.deactivate(), St();
809
806
  }).catch((l) => {
810
- $e(l, a);
807
+ De(l, a);
811
808
  });
812
809
  }
813
810
  e.length > 0 ? Promise.all(e).then(() => {
@@ -815,50 +812,50 @@ function Yi(e, t, r, n) {
815
812
  try {
816
813
  return u();
817
814
  } finally {
818
- s?.deactivate(), gt();
815
+ s?.deactivate(), St();
819
816
  }
820
817
  }) : u();
821
818
  }
822
- function Qi() {
823
- var e = g, t = _, r = W, n = H;
819
+ function ns() {
820
+ var e = b, t = _, r = W, n = H;
824
821
  return function(s = !0) {
825
- te(e), D(t), Me(r), s && n?.activate();
822
+ te(e), $(t), ke(r), s && n?.activate();
826
823
  };
827
824
  }
828
- function gt() {
829
- te(null), D(null), Me(null);
825
+ function St() {
826
+ te(null), $(null), ke(null);
830
827
  }
831
828
  // @__NO_SIDE_EFFECTS__
832
- function Ot(e) {
833
- var t = I | M, r = _ !== null && _.f & I ? (
829
+ function mr(e) {
830
+ var t = C | L, r = _ !== null && _.f & C ? (
834
831
  /** @type {Derived} */
835
832
  _
836
833
  ) : null;
837
- return g !== null && (g.f |= Ae), {
834
+ return b !== null && (b.f |= Be), {
838
835
  ctx: W,
839
836
  deps: null,
840
837
  effects: null,
841
- equals: Kr,
838
+ equals: nn,
842
839
  f: t,
843
840
  fn: e,
844
841
  reactions: null,
845
842
  rv: 0,
846
843
  v: (
847
844
  /** @type {V} */
848
- N
845
+ O
849
846
  ),
850
847
  wv: 0,
851
- parent: r ?? g,
848
+ parent: r ?? b,
852
849
  ac: null
853
850
  };
854
851
  }
855
852
  // @__NO_SIDE_EFFECTS__
856
- function Ji(e, t, r) {
853
+ function is(e, t, r) {
857
854
  let n = (
858
855
  /** @type {Effect | null} */
859
- g
856
+ b
860
857
  );
861
- n === null && Bi();
858
+ n === null && Ri();
862
859
  var i = (
863
860
  /** @type {Boundary} */
864
861
  n.b
@@ -866,19 +863,19 @@ function Ji(e, t, r) {
866
863
  /** @type {Promise<V>} */
867
864
  /** @type {unknown} */
868
865
  void 0
869
- ), a = nt(
866
+ ), a = ft(
870
867
  /** @type {V} */
871
- N
868
+ O
872
869
  ), o = !_, u = /* @__PURE__ */ new Map();
873
- return fs(() => {
874
- var l = zr();
870
+ return vs(() => {
871
+ var l = Jr();
875
872
  s = l.promise;
876
873
  try {
877
874
  Promise.resolve(e()).then(l.resolve, l.reject).then(() => {
878
- f === H && f.committed && f.deactivate(), gt();
875
+ f === H && f.committed && f.deactivate(), St();
879
876
  });
880
877
  } catch (d) {
881
- l.reject(d), gt();
878
+ l.reject(d), St();
882
879
  }
883
880
  var f = (
884
881
  /** @type {Batch} */
@@ -886,24 +883,24 @@ function Ji(e, t, r) {
886
883
  );
887
884
  if (o) {
888
885
  var c = i.is_rendered();
889
- i.update_pending_count(1), f.increment(c), u.get(f)?.reject(Oe), u.delete(f), u.set(f, l);
886
+ i.update_pending_count(1), f.increment(c), u.get(f)?.reject(Ie), u.delete(f), u.set(f, l);
890
887
  }
891
888
  const h = (d, p = void 0) => {
892
889
  if (f.activate(), p)
893
- p !== Oe && (a.f |= ve, yt(a, p));
890
+ p !== Ie && (a.f |= ve, Ht(a, p));
894
891
  else {
895
- a.f & ve && (a.f ^= ve), yt(a, d);
896
- for (const [b, E] of u) {
897
- if (u.delete(b), b === f) break;
898
- E.reject(Oe);
892
+ a.f & ve && (a.f ^= ve), Ht(a, d);
893
+ for (const [E, T] of u) {
894
+ if (u.delete(E), E === f) break;
895
+ T.reject(Ie);
899
896
  }
900
897
  }
901
898
  o && (i.update_pending_count(-1), f.decrement(c));
902
899
  };
903
900
  l.promise.then(h, (d) => h(null, d || "unknown"));
904
- }), yn(() => {
901
+ }), Hn(() => {
905
902
  for (const l of u.values())
906
- l.reject(Oe);
903
+ l.reject(Ie);
907
904
  }), new Promise((l) => {
908
905
  function f(c) {
909
906
  function h() {
@@ -915,30 +912,25 @@ function Ji(e, t, r) {
915
912
  });
916
913
  }
917
914
  // @__NO_SIDE_EFFECTS__
918
- function ut(e) {
919
- const t = /* @__PURE__ */ Ot(e);
920
- return On(t), t;
915
+ function vt(e) {
916
+ const t = /* @__PURE__ */ mr(e);
917
+ return Mn(t), t;
921
918
  }
922
- // @__NO_SIDE_EFFECTS__
923
- function Ki(e) {
924
- const t = /* @__PURE__ */ Ot(e);
925
- return t.equals = tn, t;
926
- }
927
- function hn(e) {
919
+ function _n(e) {
928
920
  var t = e.effects;
929
921
  if (t !== null) {
930
922
  e.effects = null;
931
923
  for (var r = 0; r < t.length; r += 1)
932
- U(
924
+ k(
933
925
  /** @type {Effect} */
934
926
  t[r]
935
927
  );
936
928
  }
937
929
  }
938
- function es(e) {
930
+ function ss(e) {
939
931
  for (var t = e.parent; t !== null; ) {
940
- if (!(t.f & I))
941
- return t.f & ie ? null : (
932
+ if (!(t.f & C))
933
+ return t.f & se ? null : (
942
934
  /** @type {Effect} */
943
935
  t
944
936
  );
@@ -946,123 +938,123 @@ function es(e) {
946
938
  }
947
939
  return null;
948
940
  }
949
- function mr(e) {
950
- var t, r = g;
951
- te(es(e));
941
+ function br(e) {
942
+ var t, r = b;
943
+ te(ss(e));
952
944
  try {
953
- e.f &= ~Te, hn(e), t = Cn(e);
945
+ e.f &= ~He, _n(e), t = Un(e);
954
946
  } finally {
955
947
  te(r);
956
948
  }
957
949
  return t;
958
950
  }
959
- function cn(e) {
960
- var t = mr(e);
961
- if (!e.equals(t) && (e.wv = In(), (!H?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
962
- P(e, R);
951
+ function mn(e) {
952
+ var t = br(e);
953
+ if (!e.equals(t) && (e.wv = kn(), (!H?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
954
+ B(e, I);
963
955
  return;
964
956
  }
965
- me || (z !== null ? (br() || H?.is_fork) && z.set(e, t) : _r(e));
957
+ me || (z !== null ? (gr() || H?.is_fork) && z.set(e, t) : _r(e));
966
958
  }
967
- let qt = /* @__PURE__ */ new Set();
959
+ let Yt = /* @__PURE__ */ new Set();
968
960
  const _e = /* @__PURE__ */ new Map();
969
- let dn = !1;
970
- function nt(e, t) {
961
+ let bn = !1;
962
+ function ft(e, t) {
971
963
  var r = {
972
964
  f: 0,
973
965
  // TODO ideally we could skip this altogether, but it causes type errors
974
966
  v: e,
975
967
  reactions: null,
976
- equals: Kr,
968
+ equals: nn,
977
969
  rv: 0,
978
970
  wv: 0
979
971
  };
980
972
  return r;
981
973
  }
982
974
  // @__NO_SIDE_EFFECTS__
983
- function q(e, t) {
984
- const r = nt(e);
985
- return On(r), r;
975
+ function j(e, t) {
976
+ const r = ft(e);
977
+ return Mn(r), r;
986
978
  }
987
979
  // @__NO_SIDE_EFFECTS__
988
- function pn(e, t = !1, r = !0) {
989
- const n = nt(e);
990
- return t || (n.equals = tn), n;
980
+ function gn(e, t = !1, r = !0) {
981
+ const n = ft(e);
982
+ return t || (n.equals = zi), n;
991
983
  }
992
- function L(e, t, r = !1) {
984
+ function P(e, t, r = !1) {
993
985
  _ !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
994
986
  // to ensure we error if state is set inside an inspect effect
995
- (!Y || _.f & Tr) && rn() && _.f & (I | ue | fr | Tr) && !se?.includes(e) && $i();
996
- let n = r ? Ie(t) : t;
997
- return yt(e, n);
987
+ (!Z || _.f & Tr) && un() && _.f & (C | le | cr | Tr) && !ae?.includes(e) && Gi();
988
+ let n = r ? Qe(t) : t;
989
+ return Ht(e, n);
998
990
  }
999
- function yt(e, t) {
991
+ function Ht(e, t) {
1000
992
  if (!e.equals(t)) {
1001
993
  var r = e.v;
1002
994
  me ? _e.set(e, t) : _e.set(e, r), e.v = t;
1003
- var n = Z.ensure();
1004
- if (n.capture(e, r), e.f & I) {
995
+ var n = q.ensure();
996
+ if (n.capture(e, r), e.f & C) {
1005
997
  const i = (
1006
998
  /** @type {Derived} */
1007
999
  e
1008
1000
  );
1009
- e.f & M && mr(i), _r(i);
1001
+ e.f & L && br(i), _r(i);
1010
1002
  }
1011
- e.wv = In(), vn(e, M), g !== null && g.f & R && !(g.f & (le | be)) && (j === null ? vs([e]) : j.push(e)), !n.is_fork && qt.size > 0 && !dn && ts();
1003
+ e.wv = kn(), yn(e, L), b !== null && b.f & I && !(b.f & (fe | be)) && (G === null ? ys([e]) : G.push(e)), !n.is_fork && Yt.size > 0 && !bn && as();
1012
1004
  }
1013
1005
  return t;
1014
1006
  }
1015
- function ts() {
1016
- dn = !1;
1017
- var e = xe;
1018
- Et(!0);
1019
- const t = Array.from(qt);
1007
+ function as() {
1008
+ bn = !1;
1009
+ var e = Te;
1010
+ At(!0);
1011
+ const t = Array.from(Yt);
1020
1012
  try {
1021
1013
  for (const r of t)
1022
- r.f & R && P(r, fe), it(r) && Je(r);
1014
+ r.f & I && B(r, he), ht(r) && it(r);
1023
1015
  } finally {
1024
- Et(e);
1016
+ At(e);
1025
1017
  }
1026
- qt.clear();
1018
+ Yt.clear();
1027
1019
  }
1028
- function ze(e) {
1029
- L(e, e.v + 1);
1020
+ function et(e) {
1021
+ P(e, e.v + 1);
1030
1022
  }
1031
- function vn(e, t) {
1023
+ function yn(e, t) {
1032
1024
  var r = e.reactions;
1033
1025
  if (r !== null)
1034
1026
  for (var n = r.length, i = 0; i < n; i++) {
1035
- var s = r[i], a = s.f, o = (a & M) === 0;
1036
- if (o && P(s, t), a & I) {
1027
+ var s = r[i], a = s.f, o = (a & L) === 0;
1028
+ if (o && B(s, t), a & C) {
1037
1029
  var u = (
1038
1030
  /** @type {Derived} */
1039
1031
  s
1040
1032
  );
1041
- z?.delete(u), a & Te || (a & X && (s.f |= Te), vn(u, fe));
1042
- } else o && (a & ue && re !== null && re.add(
1033
+ z?.delete(u), a & He || (a & X && (s.f |= He), yn(u, he));
1034
+ } else o && (a & le && ne !== null && ne.add(
1043
1035
  /** @type {Effect} */
1044
1036
  s
1045
- ), ae(
1037
+ ), oe(
1046
1038
  /** @type {Effect} */
1047
1039
  s
1048
1040
  ));
1049
1041
  }
1050
1042
  }
1051
- function Ie(e) {
1052
- if (typeof e != "object" || e === null || dt in e)
1043
+ function Qe(e) {
1044
+ if (typeof e != "object" || e === null || Ut in e)
1053
1045
  return e;
1054
- const t = Ai(e);
1055
- if (t !== Ti && t !== Si)
1046
+ const t = Ci(e);
1047
+ if (t !== Oi && t !== Pi)
1056
1048
  return e;
1057
- var r = /* @__PURE__ */ new Map(), n = Ei(e), i = /* @__PURE__ */ q(0), s = we, a = (o) => {
1058
- if (we === s)
1049
+ var r = /* @__PURE__ */ new Map(), n = Ai(e), i = /* @__PURE__ */ j(0), s = Se, a = (o) => {
1050
+ if (Se === s)
1059
1051
  return o();
1060
- var u = _, l = we;
1061
- D(null), Pr(s);
1052
+ var u = _, l = Se;
1053
+ $(null), Or(s);
1062
1054
  var f = o();
1063
- return D(u), Pr(l), f;
1055
+ return $(u), Or(l), f;
1064
1056
  };
1065
- return n && r.set("length", /* @__PURE__ */ q(
1057
+ return n && r.set("length", /* @__PURE__ */ j(
1066
1058
  /** @type {any[]} */
1067
1059
  e.length
1068
1060
  )), new Proxy(
@@ -1070,34 +1062,34 @@ function Ie(e) {
1070
1062
  e,
1071
1063
  {
1072
1064
  defineProperty(o, u, l) {
1073
- (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Li();
1065
+ (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Ui();
1074
1066
  var f = r.get(u);
1075
1067
  return f === void 0 ? f = a(() => {
1076
- var c = /* @__PURE__ */ q(l.value);
1068
+ var c = /* @__PURE__ */ j(l.value);
1077
1069
  return r.set(u, c), c;
1078
- }) : L(f, l.value, !0), !0;
1070
+ }) : P(f, l.value, !0), !0;
1079
1071
  },
1080
1072
  deleteProperty(o, u) {
1081
1073
  var l = r.get(u);
1082
1074
  if (l === void 0) {
1083
1075
  if (u in o) {
1084
- const f = a(() => /* @__PURE__ */ q(N));
1085
- r.set(u, f), ze(i);
1076
+ const f = a(() => /* @__PURE__ */ j(O));
1077
+ r.set(u, f), et(i);
1086
1078
  }
1087
1079
  } else
1088
- L(l, N), ze(i);
1080
+ P(l, O), et(i);
1089
1081
  return !0;
1090
1082
  },
1091
1083
  get(o, u, l) {
1092
- if (u === dt)
1084
+ if (u === Ut)
1093
1085
  return e;
1094
1086
  var f = r.get(u), c = u in o;
1095
- if (f === void 0 && (!c || Ee(o, u)?.writable) && (f = a(() => {
1096
- var d = Ie(c ? o[u] : N), p = /* @__PURE__ */ q(d);
1087
+ if (f === void 0 && (!c || Le(o, u)?.writable) && (f = a(() => {
1088
+ var d = Qe(c ? o[u] : O), p = /* @__PURE__ */ j(d);
1097
1089
  return p;
1098
1090
  }), r.set(u, f)), f !== void 0) {
1099
- var h = y(f);
1100
- return h === N ? void 0 : h;
1091
+ var h = g(f);
1092
+ return h === O ? void 0 : h;
1101
1093
  }
1102
1094
  return Reflect.get(o, u, l);
1103
1095
  },
@@ -1105,10 +1097,10 @@ function Ie(e) {
1105
1097
  var l = Reflect.getOwnPropertyDescriptor(o, u);
1106
1098
  if (l && "value" in l) {
1107
1099
  var f = r.get(u);
1108
- f && (l.value = y(f));
1100
+ f && (l.value = g(f));
1109
1101
  } else if (l === void 0) {
1110
1102
  var c = r.get(u), h = c?.v;
1111
- if (c !== void 0 && h !== N)
1103
+ if (c !== void 0 && h !== O)
1112
1104
  return {
1113
1105
  enumerable: !0,
1114
1106
  configurable: !0,
@@ -1119,16 +1111,16 @@ function Ie(e) {
1119
1111
  return l;
1120
1112
  },
1121
1113
  has(o, u) {
1122
- if (u === dt)
1114
+ if (u === Ut)
1123
1115
  return !0;
1124
- var l = r.get(u), f = l !== void 0 && l.v !== N || Reflect.has(o, u);
1125
- if (l !== void 0 || g !== null && (!f || Ee(o, u)?.writable)) {
1116
+ var l = r.get(u), f = l !== void 0 && l.v !== O || Reflect.has(o, u);
1117
+ if (l !== void 0 || b !== null && (!f || Le(o, u)?.writable)) {
1126
1118
  l === void 0 && (l = a(() => {
1127
- var h = f ? Ie(o[u]) : N, d = /* @__PURE__ */ q(h);
1119
+ var h = f ? Qe(o[u]) : O, d = /* @__PURE__ */ j(h);
1128
1120
  return d;
1129
1121
  }), r.set(u, l));
1130
- var c = y(l);
1131
- if (c === N)
1122
+ var c = g(l);
1123
+ if (c === O)
1132
1124
  return !1;
1133
1125
  }
1134
1126
  return f;
@@ -1139,135 +1131,135 @@ function Ie(e) {
1139
1131
  for (var d = l; d < /** @type {Source<number>} */
1140
1132
  c.v; d += 1) {
1141
1133
  var p = r.get(d + "");
1142
- p !== void 0 ? L(p, N) : d in o && (p = a(() => /* @__PURE__ */ q(N)), r.set(d + "", p));
1134
+ p !== void 0 ? P(p, O) : d in o && (p = a(() => /* @__PURE__ */ j(O)), r.set(d + "", p));
1143
1135
  }
1144
1136
  if (c === void 0)
1145
- (!h || Ee(o, u)?.writable) && (c = a(() => /* @__PURE__ */ q(void 0)), L(c, Ie(l)), r.set(u, c));
1137
+ (!h || Le(o, u)?.writable) && (c = a(() => /* @__PURE__ */ j(void 0)), P(c, Qe(l)), r.set(u, c));
1146
1138
  else {
1147
- h = c.v !== N;
1148
- var b = a(() => Ie(l));
1149
- L(c, b);
1139
+ h = c.v !== O;
1140
+ var E = a(() => Qe(l));
1141
+ P(c, E);
1150
1142
  }
1151
- var E = Reflect.getOwnPropertyDescriptor(o, u);
1152
- if (E?.set && E.set.call(f, l), !h) {
1143
+ var T = Reflect.getOwnPropertyDescriptor(o, u);
1144
+ if (T?.set && T.set.call(f, l), !h) {
1153
1145
  if (n && typeof u == "string") {
1154
- var k = (
1146
+ var J = (
1155
1147
  /** @type {Source<number>} */
1156
1148
  r.get("length")
1157
- ), w = Number(u);
1158
- Number.isInteger(w) && w >= k.v && L(k, w + 1);
1149
+ ), D = Number(u);
1150
+ Number.isInteger(D) && D >= J.v && P(J, D + 1);
1159
1151
  }
1160
- ze(i);
1152
+ et(i);
1161
1153
  }
1162
1154
  return !0;
1163
1155
  },
1164
1156
  ownKeys(o) {
1165
- y(i);
1157
+ g(i);
1166
1158
  var u = Reflect.ownKeys(o).filter((c) => {
1167
1159
  var h = r.get(c);
1168
- return h === void 0 || h.v !== N;
1160
+ return h === void 0 || h.v !== O;
1169
1161
  });
1170
1162
  for (var [l, f] of r)
1171
- f.v !== N && !(l in o) && u.push(l);
1163
+ f.v !== O && !(l in o) && u.push(l);
1172
1164
  return u;
1173
1165
  },
1174
1166
  setPrototypeOf() {
1175
- Mi();
1167
+ Fi();
1176
1168
  }
1177
1169
  }
1178
1170
  );
1179
1171
  }
1180
- var Ar, _n, mn, bn;
1181
- function zt() {
1182
- if (Ar === void 0) {
1183
- Ar = window, _n = /Firefox/.test(navigator.userAgent);
1172
+ var Hr, En, xn, wn;
1173
+ function Qt() {
1174
+ if (Hr === void 0) {
1175
+ Hr = window, En = /Firefox/.test(navigator.userAgent);
1184
1176
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1185
- mn = Ee(t, "firstChild").get, bn = Ee(t, "nextSibling").get, wr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), wr(r) && (r.__t = void 0);
1177
+ xn = Le(t, "firstChild").get, wn = Le(t, "nextSibling").get, wr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), wr(r) && (r.__t = void 0);
1186
1178
  }
1187
1179
  }
1188
- function oe(e = "") {
1180
+ function ue(e = "") {
1189
1181
  return document.createTextNode(e);
1190
1182
  }
1191
1183
  // @__NO_SIDE_EFFECTS__
1192
- function Qe(e) {
1184
+ function nt(e) {
1193
1185
  return (
1194
1186
  /** @type {TemplateNode | null} */
1195
- mn.call(e)
1187
+ xn.call(e)
1196
1188
  );
1197
1189
  }
1198
1190
  // @__NO_SIDE_EFFECTS__
1199
- function he(e) {
1191
+ function ce(e) {
1200
1192
  return (
1201
1193
  /** @type {TemplateNode | null} */
1202
- bn.call(e)
1194
+ wn.call(e)
1203
1195
  );
1204
1196
  }
1205
- function lt(e, t) {
1206
- if (!B)
1207
- return /* @__PURE__ */ Qe(e);
1208
- var r = /* @__PURE__ */ Qe(x);
1197
+ function _t(e, t) {
1198
+ if (!A)
1199
+ return /* @__PURE__ */ nt(e);
1200
+ var r = /* @__PURE__ */ nt(x);
1209
1201
  if (r === null)
1210
- r = x.appendChild(oe());
1211
- else if (t && r.nodeType !== hr) {
1212
- var n = oe();
1213
- return r?.before(n), Q(n), n;
1202
+ r = x.appendChild(ue());
1203
+ else if (t && r.nodeType !== dr) {
1204
+ var n = ue();
1205
+ return r?.before(n), Y(n), n;
1214
1206
  }
1215
- return Q(r), r;
1207
+ return Y(r), r;
1216
1208
  }
1217
- function rs(e, t = !1) {
1218
- if (!B) {
1219
- var r = /* @__PURE__ */ Qe(e);
1220
- return r instanceof Comment && r.data === "" ? /* @__PURE__ */ he(r) : r;
1209
+ function Ar(e, t = !1) {
1210
+ if (!A) {
1211
+ var r = /* @__PURE__ */ nt(e);
1212
+ return r instanceof Comment && r.data === "" ? /* @__PURE__ */ ce(r) : r;
1221
1213
  }
1222
- if (t && x?.nodeType !== hr) {
1223
- var n = oe();
1224
- return x?.before(n), Q(n), n;
1214
+ if (t && x?.nodeType !== dr) {
1215
+ var n = ue();
1216
+ return x?.before(n), Y(n), n;
1225
1217
  }
1226
1218
  return x;
1227
1219
  }
1228
- function ns(e, t = 1, r = !1) {
1229
- let n = B ? x : e;
1220
+ function os(e, t = 1, r = !1) {
1221
+ let n = A ? x : e;
1230
1222
  for (var i; t--; )
1231
1223
  i = n, n = /** @type {TemplateNode} */
1232
- /* @__PURE__ */ he(n);
1233
- if (!B)
1224
+ /* @__PURE__ */ ce(n);
1225
+ if (!A)
1234
1226
  return n;
1235
- if (r && n?.nodeType !== hr) {
1236
- var s = oe();
1237
- return n === null ? i?.after(s) : n.before(s), Q(s), s;
1227
+ if (r && n?.nodeType !== dr) {
1228
+ var s = ue();
1229
+ return n === null ? i?.after(s) : n.before(s), Y(s), s;
1238
1230
  }
1239
- return Q(n), n;
1231
+ return Y(n), n;
1240
1232
  }
1241
- function is(e) {
1233
+ function us(e) {
1242
1234
  e.textContent = "";
1243
1235
  }
1244
- function ss() {
1236
+ function ls() {
1245
1237
  return !1;
1246
1238
  }
1247
- function gn(e) {
1248
- var t = _, r = g;
1249
- D(null), te(null);
1239
+ function Tn(e) {
1240
+ var t = _, r = b;
1241
+ $(null), te(null);
1250
1242
  try {
1251
1243
  return e();
1252
1244
  } finally {
1253
- D(t), te(r);
1245
+ $(t), te(r);
1254
1246
  }
1255
1247
  }
1256
- function as(e) {
1257
- g === null && (_ === null && Ni(), Oi()), me && Pi();
1248
+ function Sn(e) {
1249
+ b === null && (_ === null && $i(), Mi()), me && Li();
1258
1250
  }
1259
- function os(e, t) {
1251
+ function fs(e, t) {
1260
1252
  var r = t.last;
1261
1253
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1262
1254
  }
1263
- function ce(e, t, r) {
1264
- var n = g;
1255
+ function Q(e, t, r) {
1256
+ var n = b;
1265
1257
  n !== null && n.f & ee && (e |= ee);
1266
1258
  var i = {
1267
1259
  ctx: W,
1268
1260
  deps: null,
1269
1261
  nodes: null,
1270
- f: e | M | X,
1262
+ f: e | L | X,
1271
1263
  first: null,
1272
1264
  fn: t,
1273
1265
  last: null,
@@ -1281,14 +1273,14 @@ function ce(e, t, r) {
1281
1273
  };
1282
1274
  if (r)
1283
1275
  try {
1284
- Je(i), i.f |= Ht;
1276
+ it(i), i.f |= Ct;
1285
1277
  } catch (o) {
1286
- throw U(i), o;
1278
+ throw k(i), o;
1287
1279
  }
1288
- else t !== null && ae(i);
1280
+ else t !== null && oe(i);
1289
1281
  var s = i;
1290
1282
  if (r && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
1291
- !(s.f & Ae) && (s = s.first, e & ue && e & Le && s !== null && (s.f |= Le)), s !== null && (s.parent = n, n !== null && os(s, n), _ !== null && _.f & I && !(e & be))) {
1283
+ !(s.f & Be) && (s = s.first, e & le && e & $e && s !== null && (s.f |= $e)), s !== null && (s.parent = n, n !== null && fs(s, n), _ !== null && _.f & C && !(e & be))) {
1292
1284
  var a = (
1293
1285
  /** @type {Derived} */
1294
1286
  _
@@ -1297,19 +1289,19 @@ function ce(e, t, r) {
1297
1289
  }
1298
1290
  return i;
1299
1291
  }
1300
- function br() {
1301
- return _ !== null && !Y;
1292
+ function gr() {
1293
+ return _ !== null && !Z;
1302
1294
  }
1303
- function yn(e) {
1304
- const t = ce(At, null, !1);
1305
- return P(t, R), t.teardown = e, t;
1295
+ function Hn(e) {
1296
+ const t = Q(ut, null, !1);
1297
+ return B(t, I), t.teardown = e, t;
1306
1298
  }
1307
- function Hr(e) {
1308
- as();
1299
+ function Br(e) {
1300
+ Sn();
1309
1301
  var t = (
1310
1302
  /** @type {Effect} */
1311
- g.f
1312
- ), r = !_ && (t & le) !== 0 && (t & Ht) === 0;
1303
+ b.f
1304
+ ), r = !_ && (t & fe) !== 0 && (t & Ct) === 0;
1313
1305
  if (r) {
1314
1306
  var n = (
1315
1307
  /** @type {ComponentContext} */
@@ -1317,104 +1309,110 @@ function Hr(e) {
1317
1309
  );
1318
1310
  (n.e ??= []).push(e);
1319
1311
  } else
1320
- return En(e);
1312
+ return An(e);
1321
1313
  }
1322
- function En(e) {
1323
- return ce(Vt | Hi, e, !1);
1314
+ function An(e) {
1315
+ return Q(Tt | tn, e, !1);
1324
1316
  }
1325
- function us(e) {
1326
- Z.ensure();
1327
- const t = ce(be | Ae, e, !0);
1317
+ function hs(e) {
1318
+ return Sn(), Q(ut | tn, e, !0);
1319
+ }
1320
+ function cs(e) {
1321
+ q.ensure();
1322
+ const t = Q(be | Be, e, !0);
1328
1323
  return () => {
1329
- U(t);
1324
+ k(t);
1330
1325
  };
1331
1326
  }
1332
- function ls(e) {
1333
- Z.ensure();
1334
- const t = ce(be | Ae, e, !0);
1327
+ function ds(e) {
1328
+ q.ensure();
1329
+ const t = Q(be | Be, e, !0);
1335
1330
  return (r = {}) => new Promise((n) => {
1336
- r.outro ? Ze(t, () => {
1337
- U(t), n(void 0);
1338
- }) : (U(t), n(void 0));
1331
+ r.outro ? tt(t, () => {
1332
+ k(t), n(void 0);
1333
+ }) : (k(t), n(void 0));
1339
1334
  });
1340
1335
  }
1341
- function fs(e) {
1342
- return ce(fr | Ae, e, !0);
1336
+ function ps(e) {
1337
+ return Q(Tt, e, !1);
1338
+ }
1339
+ function vs(e) {
1340
+ return Q(cr | Be, e, !0);
1343
1341
  }
1344
- function xn(e, t = 0) {
1345
- return ce(At | t, e, !0);
1342
+ function Bn(e, t = 0) {
1343
+ return Q(ut | t, e, !0);
1346
1344
  }
1347
- function hs(e, t = [], r = [], n = []) {
1348
- Yi(n, t, r, (i) => {
1349
- ce(At, () => e(...i.map(y)), !0);
1345
+ function _s(e, t = [], r = [], n = []) {
1346
+ rs(n, t, r, (i) => {
1347
+ Q(ut, () => e(...i.map(g)), !0);
1350
1348
  });
1351
1349
  }
1352
- function wn(e, t = 0) {
1353
- var r = ce(ue | t, e, !0);
1350
+ function Nn(e, t = 0) {
1351
+ var r = Q(le | t, e, !0);
1354
1352
  return r;
1355
1353
  }
1356
- function ne(e) {
1357
- return ce(le | Ae, e, !0);
1354
+ function ie(e) {
1355
+ return Q(fe | Be, e, !0);
1358
1356
  }
1359
- function Tn(e) {
1357
+ function On(e) {
1360
1358
  var t = e.teardown;
1361
1359
  if (t !== null) {
1362
1360
  const r = me, n = _;
1363
- Br(!0), D(null);
1361
+ Nr(!0), $(null);
1364
1362
  try {
1365
1363
  t.call(null);
1366
1364
  } finally {
1367
- Br(r), D(n);
1365
+ Nr(r), $(n);
1368
1366
  }
1369
1367
  }
1370
1368
  }
1371
- function Sn(e, t = !1) {
1369
+ function Pn(e, t = !1) {
1372
1370
  var r = e.first;
1373
1371
  for (e.first = e.last = null; r !== null; ) {
1374
1372
  const i = r.ac;
1375
- i !== null && gn(() => {
1376
- i.abort(Oe);
1373
+ i !== null && Tn(() => {
1374
+ i.abort(Ie);
1377
1375
  });
1378
1376
  var n = r.next;
1379
- r.f & be ? r.parent = null : U(r, t), r = n;
1377
+ r.f & be ? r.parent = null : k(r, t), r = n;
1380
1378
  }
1381
1379
  }
1382
- function cs(e) {
1380
+ function ms(e) {
1383
1381
  for (var t = e.first; t !== null; ) {
1384
1382
  var r = t.next;
1385
- t.f & le || U(t), t = r;
1383
+ t.f & fe || k(t), t = r;
1386
1384
  }
1387
1385
  }
1388
- function U(e, t = !0) {
1386
+ function k(e, t = !0) {
1389
1387
  var r = !1;
1390
- (t || e.f & Yr) && e.nodes !== null && e.nodes.end !== null && (ds(
1388
+ (t || e.f & en) && e.nodes !== null && e.nodes.end !== null && (bs(
1391
1389
  e.nodes.start,
1392
1390
  /** @type {TemplateNode} */
1393
1391
  e.nodes.end
1394
- ), r = !0), Sn(e, t && !r), xt(e, 0), P(e, ie);
1392
+ ), r = !0), Pn(e, t && !r), Bt(e, 0), B(e, se);
1395
1393
  var n = e.nodes && e.nodes.t;
1396
1394
  if (n !== null)
1397
1395
  for (const s of n)
1398
1396
  s.stop();
1399
- Tn(e);
1397
+ On(e);
1400
1398
  var i = e.parent;
1401
- i !== null && i.first !== null && An(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1399
+ i !== null && i.first !== null && Cn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1402
1400
  }
1403
- function ds(e, t) {
1401
+ function bs(e, t) {
1404
1402
  for (; e !== null; ) {
1405
- var r = e === t ? null : /* @__PURE__ */ he(e);
1403
+ var r = e === t ? null : /* @__PURE__ */ ce(e);
1406
1404
  e.remove(), e = r;
1407
1405
  }
1408
1406
  }
1409
- function An(e) {
1407
+ function Cn(e) {
1410
1408
  var t = e.parent, r = e.prev, n = e.next;
1411
1409
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1412
1410
  }
1413
- function Ze(e, t, r = !0) {
1411
+ function tt(e, t, r = !0) {
1414
1412
  var n = [];
1415
- Hn(e, n, !0);
1413
+ In(e, n, !0);
1416
1414
  var i = () => {
1417
- r && U(e), t && t();
1415
+ r && k(e), t && t();
1418
1416
  }, s = n.length;
1419
1417
  if (s > 0) {
1420
1418
  var a = () => --s || i();
@@ -1423,7 +1421,7 @@ function Ze(e, t, r = !0) {
1423
1421
  } else
1424
1422
  i();
1425
1423
  }
1426
- function Hn(e, t, r) {
1424
+ function In(e, t, r) {
1427
1425
  if (!(e.f & ee)) {
1428
1426
  e.f ^= ee;
1429
1427
  var n = e.nodes && e.nodes.t;
@@ -1431,23 +1429,23 @@ function Hn(e, t, r) {
1431
1429
  for (const o of n)
1432
1430
  (o.is_global || r) && t.push(o);
1433
1431
  for (var i = e.first; i !== null; ) {
1434
- var s = i.next, a = (i.f & Le) !== 0 || // If this is a branch effect without a block effect parent,
1432
+ var s = i.next, a = (i.f & $e) !== 0 || // If this is a branch effect without a block effect parent,
1435
1433
  // it means the parent block effect was pruned. In that case,
1436
1434
  // transparency information was transferred to the branch effect.
1437
- (i.f & le) !== 0 && (e.f & ue) !== 0;
1438
- Hn(i, t, a ? r : !1), i = s;
1435
+ (i.f & fe) !== 0 && (e.f & le) !== 0;
1436
+ In(i, t, a ? r : !1), i = s;
1439
1437
  }
1440
1438
  }
1441
1439
  }
1442
- function ps(e) {
1443
- Bn(e, !0);
1440
+ function gs(e) {
1441
+ Rn(e, !0);
1444
1442
  }
1445
- function Bn(e, t) {
1443
+ function Rn(e, t) {
1446
1444
  if (e.f & ee) {
1447
- e.f ^= ee, e.f & R || (P(e, M), ae(e));
1445
+ e.f ^= ee, e.f & I || (B(e, L), oe(e));
1448
1446
  for (var r = e.first; r !== null; ) {
1449
- var n = r.next, i = (r.f & Le) !== 0 || (r.f & le) !== 0;
1450
- Bn(r, i ? t : !1), r = n;
1447
+ var n = r.next, i = (r.f & $e) !== 0 || (r.f & fe) !== 0;
1448
+ Rn(r, i ? t : !1), r = n;
1451
1449
  }
1452
1450
  var s = e.nodes && e.nodes.t;
1453
1451
  if (s !== null)
@@ -1455,58 +1453,58 @@ function Bn(e, t) {
1455
1453
  (a.is_global || t) && a.in();
1456
1454
  }
1457
1455
  }
1458
- function Pn(e, t) {
1456
+ function Ln(e, t) {
1459
1457
  if (e.nodes)
1460
1458
  for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
1461
- var i = r === n ? null : /* @__PURE__ */ he(r);
1459
+ var i = r === n ? null : /* @__PURE__ */ ce(r);
1462
1460
  t.append(r), r = i;
1463
1461
  }
1464
1462
  }
1465
- let xe = !1;
1466
- function Et(e) {
1467
- xe = e;
1463
+ let Te = !1;
1464
+ function At(e) {
1465
+ Te = e;
1468
1466
  }
1469
1467
  let me = !1;
1470
- function Br(e) {
1468
+ function Nr(e) {
1471
1469
  me = e;
1472
1470
  }
1473
- let _ = null, Y = !1;
1474
- function D(e) {
1471
+ let _ = null, Z = !1;
1472
+ function $(e) {
1475
1473
  _ = e;
1476
1474
  }
1477
- let g = null;
1475
+ let b = null;
1478
1476
  function te(e) {
1479
- g = e;
1477
+ b = e;
1480
1478
  }
1481
- let se = null;
1482
- function On(e) {
1483
- _ !== null && (se === null ? se = [e] : se.push(e));
1479
+ let ae = null;
1480
+ function Mn(e) {
1481
+ _ !== null && (ae === null ? ae = [e] : ae.push(e));
1484
1482
  }
1485
- let $ = null, F = 0, j = null;
1486
- function vs(e) {
1487
- j = e;
1483
+ let M = null, U = 0, G = null;
1484
+ function ys(e) {
1485
+ G = e;
1488
1486
  }
1489
- let Nn = 1, ye = 0, we = ye;
1490
- function Pr(e) {
1491
- we = e;
1487
+ let $n = 1, we = 0, Se = we;
1488
+ function Or(e) {
1489
+ Se = e;
1492
1490
  }
1493
- function In() {
1494
- return ++Nn;
1491
+ function kn() {
1492
+ return ++$n;
1495
1493
  }
1496
- function it(e) {
1494
+ function ht(e) {
1497
1495
  var t = e.f;
1498
- if (t & M)
1496
+ if (t & L)
1499
1497
  return !0;
1500
- if (t & I && (e.f &= ~Te), t & fe) {
1498
+ if (t & C && (e.f &= ~He), t & he) {
1501
1499
  for (var r = (
1502
1500
  /** @type {Value[]} */
1503
1501
  e.deps
1504
1502
  ), n = r.length, i = 0; i < n; i++) {
1505
1503
  var s = r[i];
1506
- if (it(
1504
+ if (ht(
1507
1505
  /** @type {Derived} */
1508
1506
  s
1509
- ) && cn(
1507
+ ) && mn(
1510
1508
  /** @type {Derived} */
1511
1509
  s
1512
1510
  ), s.wv > e.wv)
@@ -1514,125 +1512,125 @@ function it(e) {
1514
1512
  }
1515
1513
  t & X && // During time traveling we don't want to reset the status so that
1516
1514
  // traversal of the graph in the other batches still happens
1517
- z === null && P(e, R);
1515
+ z === null && B(e, I);
1518
1516
  }
1519
1517
  return !1;
1520
1518
  }
1521
- function Rn(e, t, r = !0) {
1519
+ function Dn(e, t, r = !0) {
1522
1520
  var n = e.reactions;
1523
- if (n !== null && !se?.includes(e))
1521
+ if (n !== null && !ae?.includes(e))
1524
1522
  for (var i = 0; i < n.length; i++) {
1525
1523
  var s = n[i];
1526
- s.f & I ? Rn(
1524
+ s.f & C ? Dn(
1527
1525
  /** @type {Derived} */
1528
1526
  s,
1529
1527
  t,
1530
1528
  !1
1531
- ) : t === s && (r ? P(s, M) : s.f & R && P(s, fe), ae(
1529
+ ) : t === s && (r ? B(s, L) : s.f & I && B(s, he), oe(
1532
1530
  /** @type {Effect} */
1533
1531
  s
1534
1532
  ));
1535
1533
  }
1536
1534
  }
1537
- function Cn(e) {
1538
- var t = $, r = F, n = j, i = _, s = se, a = W, o = Y, u = we, l = e.f;
1539
- $ = /** @type {null | Value[]} */
1540
- null, F = 0, j = null, _ = l & (le | be) ? null : e, se = null, Me(e.ctx), Y = !1, we = ++ye, e.ac !== null && (gn(() => {
1541
- e.ac.abort(Oe);
1535
+ function Un(e) {
1536
+ var t = M, r = U, n = G, i = _, s = ae, a = W, o = Z, u = Se, l = e.f;
1537
+ M = /** @type {null | Value[]} */
1538
+ null, U = 0, G = null, _ = l & (fe | be) ? null : e, ae = null, ke(e.ctx), Z = !1, Se = ++we, e.ac !== null && (Tn(() => {
1539
+ e.ac.abort(Ie);
1542
1540
  }), e.ac = null);
1543
1541
  try {
1544
- e.f |= Xt;
1542
+ e.f |= qt;
1545
1543
  var f = (
1546
1544
  /** @type {Function} */
1547
1545
  e.fn
1548
1546
  ), c = f(), h = e.deps;
1549
- if ($ !== null) {
1547
+ if (M !== null) {
1550
1548
  var d;
1551
- if (xt(e, F), h !== null && F > 0)
1552
- for (h.length = F + $.length, d = 0; d < $.length; d++)
1553
- h[F + d] = $[d];
1549
+ if (Bt(e, U), h !== null && U > 0)
1550
+ for (h.length = U + M.length, d = 0; d < M.length; d++)
1551
+ h[U + d] = M[d];
1554
1552
  else
1555
- e.deps = h = $;
1556
- if (br() && e.f & X)
1557
- for (d = F; d < h.length; d++)
1553
+ e.deps = h = M;
1554
+ if (gr() && e.f & X)
1555
+ for (d = U; d < h.length; d++)
1558
1556
  (h[d].reactions ??= []).push(e);
1559
- } else h !== null && F < h.length && (xt(e, F), h.length = F);
1560
- if (rn() && j !== null && !Y && h !== null && !(e.f & (I | fe | M)))
1557
+ } else h !== null && U < h.length && (Bt(e, U), h.length = U);
1558
+ if (un() && G !== null && !Z && h !== null && !(e.f & (C | he | L)))
1561
1559
  for (d = 0; d < /** @type {Source[]} */
1562
- j.length; d++)
1563
- Rn(
1564
- j[d],
1560
+ G.length; d++)
1561
+ Dn(
1562
+ G[d],
1565
1563
  /** @type {Effect} */
1566
1564
  e
1567
1565
  );
1568
1566
  if (i !== null && i !== e) {
1569
- if (ye++, i.deps !== null)
1567
+ if (we++, i.deps !== null)
1570
1568
  for (let p = 0; p < r; p += 1)
1571
- i.deps[p].rv = ye;
1569
+ i.deps[p].rv = we;
1572
1570
  if (t !== null)
1573
1571
  for (const p of t)
1574
- p.rv = ye;
1575
- j !== null && (n === null ? n = j : n.push(.../** @type {Source[]} */
1576
- j));
1572
+ p.rv = we;
1573
+ G !== null && (n === null ? n = G : n.push(.../** @type {Source[]} */
1574
+ G));
1577
1575
  }
1578
1576
  return e.f & ve && (e.f ^= ve), c;
1579
1577
  } catch (p) {
1580
- return sn(p);
1578
+ return fn(p);
1581
1579
  } finally {
1582
- e.f ^= Xt, $ = t, F = r, j = n, _ = i, se = s, Me(a), Y = o, we = u;
1580
+ e.f ^= qt, M = t, U = r, G = n, _ = i, ae = s, ke(a), Z = o, Se = u;
1583
1581
  }
1584
1582
  }
1585
- function _s(e, t) {
1583
+ function Es(e, t) {
1586
1584
  let r = t.reactions;
1587
1585
  if (r !== null) {
1588
- var n = xi.call(r, e);
1586
+ var n = Bi.call(r, e);
1589
1587
  if (n !== -1) {
1590
1588
  var i = r.length - 1;
1591
1589
  i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
1592
1590
  }
1593
1591
  }
1594
- if (r === null && t.f & I && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1592
+ if (r === null && t.f & C && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1595
1593
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1596
1594
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1597
- ($ === null || !$.includes(t))) {
1595
+ (M === null || !M.includes(t))) {
1598
1596
  var s = (
1599
1597
  /** @type {Derived} */
1600
1598
  t
1601
1599
  );
1602
- s.f & X && (s.f ^= X, s.f &= ~Te), _r(s), hn(s), xt(s, 0);
1600
+ s.f & X && (s.f ^= X, s.f &= ~He), _r(s), _n(s), Bt(s, 0);
1603
1601
  }
1604
1602
  }
1605
- function xt(e, t) {
1603
+ function Bt(e, t) {
1606
1604
  var r = e.deps;
1607
1605
  if (r !== null)
1608
1606
  for (var n = t; n < r.length; n++)
1609
- _s(e, r[n]);
1607
+ Es(e, r[n]);
1610
1608
  }
1611
- function Je(e) {
1609
+ function it(e) {
1612
1610
  var t = e.f;
1613
- if (!(t & ie)) {
1614
- P(e, R);
1615
- var r = g, n = xe;
1616
- g = e, xe = !0;
1611
+ if (!(t & se)) {
1612
+ B(e, I);
1613
+ var r = b, n = Te;
1614
+ b = e, Te = !0;
1617
1615
  try {
1618
- t & (ue | Zr) ? cs(e) : Sn(e), Tn(e);
1619
- var i = Cn(e);
1620
- e.teardown = typeof i == "function" ? i : null, e.wv = Nn;
1616
+ t & (le | Kr) ? ms(e) : Pn(e), On(e);
1617
+ var i = Un(e);
1618
+ e.teardown = typeof i == "function" ? i : null, e.wv = $n;
1621
1619
  var s;
1622
- jt && Gi && e.f & M && e.deps;
1620
+ zt && qi && e.f & L && e.deps;
1623
1621
  } finally {
1624
- xe = n, g = r;
1622
+ Te = n, b = r;
1625
1623
  }
1626
1624
  }
1627
1625
  }
1628
- function y(e) {
1629
- var t = e.f, r = (t & I) !== 0;
1630
- if (_ !== null && !Y) {
1631
- var n = g !== null && (g.f & ie) !== 0;
1632
- if (!n && !se?.includes(e)) {
1626
+ function g(e) {
1627
+ var t = e.f, r = (t & C) !== 0;
1628
+ if (_ !== null && !Z) {
1629
+ var n = b !== null && (b.f & se) !== 0;
1630
+ if (!n && !ae?.includes(e)) {
1633
1631
  var i = _.deps;
1634
- if (_.f & Xt)
1635
- e.rv < ye && (e.rv = ye, $ === null && i !== null && i[F] === e ? F++ : $ === null ? $ = [e] : $.push(e));
1632
+ if (_.f & qt)
1633
+ e.rv < we && (e.rv = we, M === null && i !== null && i[U] === e ? U++ : M === null ? M = [e] : M.push(e));
1636
1634
  else {
1637
1635
  (_.deps ??= []).push(e);
1638
1636
  var s = e.reactions;
@@ -1649,10 +1647,10 @@ function y(e) {
1649
1647
  );
1650
1648
  if (me) {
1651
1649
  var o = a.v;
1652
- return (!(a.f & R) && a.reactions !== null || Mn(a)) && (o = mr(a)), _e.set(a, o), o;
1650
+ return (!(a.f & I) && a.reactions !== null || Gn(a)) && (o = br(a)), _e.set(a, o), o;
1653
1651
  }
1654
- var u = (a.f & X) === 0 && !Y && _ !== null && (xe || (_.f & X) !== 0), l = a.deps === null;
1655
- it(a) && (u && (a.f |= X), cn(a)), u && !l && Ln(a);
1652
+ var u = (a.f & X) === 0 && !Z && _ !== null && (Te || (_.f & X) !== 0), l = a.deps === null;
1653
+ ht(a) && (u && (a.f |= X), mn(a)), u && !l && Fn(a);
1656
1654
  }
1657
1655
  if (z?.has(e))
1658
1656
  return z.get(e);
@@ -1660,44 +1658,44 @@ function y(e) {
1660
1658
  throw e.v;
1661
1659
  return e.v;
1662
1660
  }
1663
- function Ln(e) {
1661
+ function Fn(e) {
1664
1662
  if (e.deps !== null) {
1665
1663
  e.f |= X;
1666
1664
  for (const t of e.deps)
1667
- (t.reactions ??= []).push(e), t.f & I && !(t.f & X) && Ln(
1665
+ (t.reactions ??= []).push(e), t.f & C && !(t.f & X) && Fn(
1668
1666
  /** @type {Derived} */
1669
1667
  t
1670
1668
  );
1671
1669
  }
1672
1670
  }
1673
- function Mn(e) {
1674
- if (e.v === N) return !0;
1671
+ function Gn(e) {
1672
+ if (e.v === O) return !0;
1675
1673
  if (e.deps === null) return !1;
1676
1674
  for (const t of e.deps)
1677
- if (_e.has(t) || t.f & I && Mn(
1675
+ if (_e.has(t) || t.f & C && Gn(
1678
1676
  /** @type {Derived} */
1679
1677
  t
1680
1678
  ))
1681
1679
  return !0;
1682
1680
  return !1;
1683
1681
  }
1684
- function gr(e) {
1685
- var t = Y;
1682
+ function jn(e) {
1683
+ var t = Z;
1686
1684
  try {
1687
- return Y = !0, e();
1685
+ return Z = !0, e();
1688
1686
  } finally {
1689
- Y = t;
1687
+ Z = t;
1690
1688
  }
1691
1689
  }
1692
- const $n = /* @__PURE__ */ new Set(), Zt = /* @__PURE__ */ new Set();
1693
- function ms(e) {
1690
+ const Vn = /* @__PURE__ */ new Set(), Jt = /* @__PURE__ */ new Set();
1691
+ function xs(e) {
1694
1692
  for (var t = 0; t < e.length; t++)
1695
- $n.add(e[t]);
1696
- for (var r of Zt)
1693
+ Vn.add(e[t]);
1694
+ for (var r of Jt)
1697
1695
  r(e);
1698
1696
  }
1699
- let Or = null;
1700
- function ft(e) {
1697
+ let Pr = null;
1698
+ function mt(e) {
1701
1699
  var t = this, r = (
1702
1700
  /** @type {Node} */
1703
1701
  t.ownerDocument
@@ -1705,8 +1703,8 @@ function ft(e) {
1705
1703
  /** @type {null | Element} */
1706
1704
  i[0] || e.target
1707
1705
  );
1708
- Or = e;
1709
- var a = 0, o = Or === e && e.__root;
1706
+ Pr = e;
1707
+ var a = 0, o = Pr === e && e.__root;
1710
1708
  if (o) {
1711
1709
  var u = i.indexOf(o);
1712
1710
  if (u !== -1 && (t === document || t === /** @type {any} */
@@ -1721,82 +1719,82 @@ function ft(e) {
1721
1719
  }
1722
1720
  if (s = /** @type {Element} */
1723
1721
  i[a] || e.target, s !== t) {
1724
- Ye(e, "currentTarget", {
1722
+ rt(e, "currentTarget", {
1725
1723
  configurable: !0,
1726
1724
  get() {
1727
1725
  return s || r;
1728
1726
  }
1729
1727
  });
1730
- var f = _, c = g;
1731
- D(null), te(null);
1728
+ var f = _, c = b;
1729
+ $(null), te(null);
1732
1730
  try {
1733
1731
  for (var h, d = []; s !== null; ) {
1734
1732
  var p = s.assignedSlot || s.parentNode || /** @type {any} */
1735
1733
  s.host || null;
1736
1734
  try {
1737
- var b = s["__" + n];
1738
- b != null && (!/** @type {any} */
1735
+ var E = s["__" + n];
1736
+ E != null && (!/** @type {any} */
1739
1737
  s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1740
1738
  // -> the target could not have been disabled because it emits the event in the first place
1741
- e.target === s) && b.call(s, e);
1742
- } catch (E) {
1743
- h ? d.push(E) : h = E;
1739
+ e.target === s) && E.call(s, e);
1740
+ } catch (T) {
1741
+ h ? d.push(T) : h = T;
1744
1742
  }
1745
1743
  if (e.cancelBubble || p === t || p === null)
1746
1744
  break;
1747
1745
  s = p;
1748
1746
  }
1749
1747
  if (h) {
1750
- for (let E of d)
1748
+ for (let T of d)
1751
1749
  queueMicrotask(() => {
1752
- throw E;
1750
+ throw T;
1753
1751
  });
1754
1752
  throw h;
1755
1753
  }
1756
1754
  } finally {
1757
- e.__root = t, delete e.currentTarget, D(f), te(c);
1755
+ e.__root = t, delete e.currentTarget, $(f), te(c);
1758
1756
  }
1759
1757
  }
1760
1758
  }
1761
- function bs(e) {
1759
+ function ws(e) {
1762
1760
  var t = document.createElement("template");
1763
1761
  return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
1764
1762
  }
1765
- function Ke(e, t) {
1763
+ function st(e, t) {
1766
1764
  var r = (
1767
1765
  /** @type {Effect} */
1768
- g
1766
+ b
1769
1767
  );
1770
1768
  r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
1771
1769
  }
1772
1770
  // @__NO_SIDE_EFFECTS__
1773
- function gs(e, t) {
1774
- var r = (t & yi) !== 0, n, i = !e.startsWith("<!>");
1771
+ function Xn(e, t) {
1772
+ var r = (t & Hi) !== 0, n, i = !e.startsWith("<!>");
1775
1773
  return () => {
1776
- if (B)
1777
- return Ke(x, null), x;
1778
- n === void 0 && (n = bs(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
1779
- /* @__PURE__ */ Qe(n));
1774
+ if (A)
1775
+ return st(x, null), x;
1776
+ n === void 0 && (n = ws(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
1777
+ /* @__PURE__ */ nt(n));
1780
1778
  var s = (
1781
1779
  /** @type {TemplateNode} */
1782
- r || _n ? document.importNode(n, !0) : n.cloneNode(!0)
1780
+ r || En ? document.importNode(n, !0) : n.cloneNode(!0)
1783
1781
  );
1784
- return Ke(s, s), s;
1782
+ return st(s, s), s;
1785
1783
  };
1786
1784
  }
1787
- function ys() {
1788
- if (B)
1789
- return Ke(x, null), x;
1790
- var e = document.createDocumentFragment(), t = document.createComment(""), r = oe();
1791
- return e.append(t, r), Ke(t, r), e;
1785
+ function Cr() {
1786
+ if (A)
1787
+ return st(x, null), x;
1788
+ var e = document.createDocumentFragment(), t = document.createComment(""), r = ue();
1789
+ return e.append(t, r), st(t, r), e;
1792
1790
  }
1793
- function Yt(e, t) {
1794
- if (B) {
1791
+ function Je(e, t) {
1792
+ if (A) {
1795
1793
  var r = (
1796
1794
  /** @type {Effect & { nodes: EffectNodes }} */
1797
- g
1795
+ b
1798
1796
  );
1799
- (!(r.f & Ht) || r.nodes.end === null) && (r.nodes.end = x), cr();
1797
+ (!(r.f & Ct) || r.nodes.end === null) && (r.nodes.end = x), pr();
1800
1798
  return;
1801
1799
  }
1802
1800
  e !== null && e.before(
@@ -1804,61 +1802,61 @@ function Yt(e, t) {
1804
1802
  t
1805
1803
  );
1806
1804
  }
1807
- const Es = ["touchstart", "touchmove"];
1808
- function xs(e) {
1809
- return Es.includes(e);
1805
+ const Ts = ["touchstart", "touchmove"];
1806
+ function Ss(e) {
1807
+ return Ts.includes(e);
1810
1808
  }
1811
- function Nr(e, t) {
1809
+ function Ir(e, t) {
1812
1810
  var r = t == null ? "" : typeof t == "object" ? t + "" : t;
1813
1811
  r !== (e.__t ??= e.nodeValue) && (e.__t = r, e.nodeValue = r + "");
1814
1812
  }
1815
- function Dn(e, t) {
1816
- return Un(e, t);
1813
+ function Wn(e, t) {
1814
+ return zn(e, t);
1817
1815
  }
1818
- function ws(e, t) {
1819
- zt(), t.intro = t.intro ?? !1;
1820
- const r = t.target, n = B, i = x;
1816
+ function Hs(e, t) {
1817
+ Qt(), t.intro = t.intro ?? !1;
1818
+ const r = t.target, n = A, i = x;
1821
1819
  try {
1822
- for (var s = /* @__PURE__ */ Qe(r); s && (s.nodeType !== rt || /** @type {Comment} */
1823
- s.data !== Xr); )
1824
- s = /* @__PURE__ */ he(s);
1820
+ for (var s = /* @__PURE__ */ nt(r); s && (s.nodeType !== lt || /** @type {Comment} */
1821
+ s.data !== Zr); )
1822
+ s = /* @__PURE__ */ ce(s);
1825
1823
  if (!s)
1826
- throw Ce;
1827
- Ne(!0), Q(
1824
+ throw Me;
1825
+ Re(!0), Y(
1828
1826
  /** @type {Comment} */
1829
1827
  s
1830
1828
  );
1831
- const a = Un(e, { ...t, anchor: s });
1832
- return Ne(!1), /** @type {Exports} */
1829
+ const a = zn(e, { ...t, anchor: s });
1830
+ return Re(!1), /** @type {Exports} */
1833
1831
  a;
1834
1832
  } catch (a) {
1835
1833
  if (a instanceof Error && a.message.split(`
1836
1834
  `).some((o) => o.startsWith("https://svelte.dev/e/")))
1837
1835
  throw a;
1838
- return a !== Ce && console.warn("Failed to hydrate: ", a), t.recover === !1 && Ri(), zt(), is(r), Ne(!1), Dn(e, t);
1836
+ return a !== Me && console.warn("Failed to hydrate: ", a), t.recover === !1 && Di(), Qt(), us(r), Re(!1), Wn(e, t);
1839
1837
  } finally {
1840
- Ne(n), Q(i);
1838
+ Re(n), Y(i);
1841
1839
  }
1842
1840
  }
1843
- const Be = /* @__PURE__ */ new Map();
1844
- function Un(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0 }) {
1845
- zt();
1841
+ const Pe = /* @__PURE__ */ new Map();
1842
+ function zn(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0 }) {
1843
+ Qt();
1846
1844
  var o = /* @__PURE__ */ new Set(), u = (c) => {
1847
1845
  for (var h = 0; h < c.length; h++) {
1848
1846
  var d = c[h];
1849
1847
  if (!o.has(d)) {
1850
1848
  o.add(d);
1851
- var p = xs(d);
1852
- t.addEventListener(d, ft, { passive: p });
1853
- var b = Be.get(d);
1854
- b === void 0 ? (document.addEventListener(d, ft, { passive: p }), Be.set(d, 1)) : Be.set(d, b + 1);
1849
+ var p = Ss(d);
1850
+ t.addEventListener(d, mt, { passive: p });
1851
+ var E = Pe.get(d);
1852
+ E === void 0 ? (document.addEventListener(d, mt, { passive: p }), Pe.set(d, 1)) : Pe.set(d, E + 1);
1855
1853
  }
1856
1854
  }
1857
1855
  };
1858
- u(wi($n)), Zt.add(u);
1859
- var l = void 0, f = ls(() => {
1860
- var c = r ?? t.appendChild(oe());
1861
- return zi(
1856
+ u(Ni(Vn)), Jt.add(u);
1857
+ var l = void 0, f = ds(() => {
1858
+ var c = r ?? t.appendChild(ue());
1859
+ return es(
1862
1860
  /** @type {TemplateNode} */
1863
1861
  c,
1864
1862
  {
@@ -1867,42 +1865,42 @@ function Un(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
1867
1865
  },
1868
1866
  (h) => {
1869
1867
  if (s) {
1870
- dr({});
1868
+ an({});
1871
1869
  var d = (
1872
1870
  /** @type {ComponentContext} */
1873
1871
  W
1874
1872
  );
1875
1873
  d.c = s;
1876
1874
  }
1877
- if (i && (n.$$events = i), B && Ke(
1875
+ if (i && (n.$$events = i), A && st(
1878
1876
  /** @type {TemplateNode} */
1879
1877
  h,
1880
1878
  null
1881
- ), l = e(h, n) || {}, B && (g.nodes.end = x, x === null || x.nodeType !== rt || /** @type {Comment} */
1882
- x.data !== Wr))
1883
- throw Bt(), Ce;
1884
- s && pr();
1879
+ ), l = e(h, n) || {}, A && (b.nodes.end = x, x === null || x.nodeType !== lt || /** @type {Comment} */
1880
+ x.data !== Yr))
1881
+ throw It(), Me;
1882
+ s && on();
1885
1883
  }
1886
1884
  ), () => {
1887
1885
  for (var h of o) {
1888
- t.removeEventListener(h, ft);
1886
+ t.removeEventListener(h, mt);
1889
1887
  var d = (
1890
1888
  /** @type {number} */
1891
- Be.get(h)
1889
+ Pe.get(h)
1892
1890
  );
1893
- --d === 0 ? (document.removeEventListener(h, ft), Be.delete(h)) : Be.set(h, d);
1891
+ --d === 0 ? (document.removeEventListener(h, mt), Pe.delete(h)) : Pe.set(h, d);
1894
1892
  }
1895
- Zt.delete(u), c !== r && c.parentNode?.removeChild(c);
1893
+ Jt.delete(u), c !== r && c.parentNode?.removeChild(c);
1896
1894
  };
1897
1895
  });
1898
- return Qt.set(l, f), l;
1896
+ return Kt.set(l, f), l;
1899
1897
  }
1900
- let Qt = /* @__PURE__ */ new WeakMap();
1901
- function Ts(e, t) {
1902
- const r = Qt.get(e);
1903
- return r ? (Qt.delete(e), r(t)) : Promise.resolve();
1898
+ let Kt = /* @__PURE__ */ new WeakMap();
1899
+ function As(e, t) {
1900
+ const r = Kt.get(e);
1901
+ return r ? (Kt.delete(e), r(t)) : Promise.resolve();
1904
1902
  }
1905
- class Ss {
1903
+ class Bs {
1906
1904
  /** @type {TemplateNode} */
1907
1905
  anchor;
1908
1906
  /** @type {Map<Batch, Key>} */
@@ -1956,7 +1954,7 @@ class Ss {
1956
1954
  this.#e.get(t)
1957
1955
  ), n = this.#t.get(r);
1958
1956
  if (n)
1959
- ps(n), this.#s.delete(r);
1957
+ gs(n), this.#s.delete(r);
1960
1958
  else {
1961
1959
  var i = this.#r.get(r);
1962
1960
  i && (this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
@@ -1965,19 +1963,19 @@ class Ss {
1965
1963
  if (this.#e.delete(s), s === t)
1966
1964
  break;
1967
1965
  const o = this.#r.get(a);
1968
- o && (U(o.effect), this.#r.delete(a));
1966
+ o && (k(o.effect), this.#r.delete(a));
1969
1967
  }
1970
1968
  for (const [s, a] of this.#t) {
1971
1969
  if (s === r || this.#s.has(s)) continue;
1972
1970
  const o = () => {
1973
1971
  if (Array.from(this.#e.values()).includes(s)) {
1974
1972
  var l = document.createDocumentFragment();
1975
- Pn(a, l), l.append(oe()), this.#r.set(s, { effect: a, fragment: l });
1973
+ Ln(a, l), l.append(ue()), this.#r.set(s, { effect: a, fragment: l });
1976
1974
  } else
1977
- U(a);
1975
+ k(a);
1978
1976
  this.#s.delete(s), this.#t.delete(s);
1979
1977
  };
1980
- this.#a || !n ? (this.#s.add(s), Ze(a, o, !1)) : o();
1978
+ this.#a || !n ? (this.#s.add(s), tt(a, o, !1)) : o();
1981
1979
  }
1982
1980
  }
1983
1981
  };
@@ -1988,7 +1986,7 @@ class Ss {
1988
1986
  this.#e.delete(t);
1989
1987
  const r = Array.from(this.#e.values());
1990
1988
  for (const [n, i] of this.#r)
1991
- r.includes(n) || (U(i.effect), this.#r.delete(n));
1989
+ r.includes(n) || (k(i.effect), this.#r.delete(n));
1992
1990
  };
1993
1991
  /**
1994
1992
  *
@@ -1999,18 +1997,18 @@ class Ss {
1999
1997
  var n = (
2000
1998
  /** @type {Batch} */
2001
1999
  H
2002
- ), i = ss();
2000
+ ), i = ls();
2003
2001
  if (r && !this.#t.has(t) && !this.#r.has(t))
2004
2002
  if (i) {
2005
- var s = document.createDocumentFragment(), a = oe();
2003
+ var s = document.createDocumentFragment(), a = ue();
2006
2004
  s.append(a), this.#r.set(t, {
2007
- effect: ne(() => r(a)),
2005
+ effect: ie(() => r(a)),
2008
2006
  fragment: s
2009
2007
  });
2010
2008
  } else
2011
2009
  this.#t.set(
2012
2010
  t,
2013
- ne(() => r(this.anchor))
2011
+ ie(() => r(this.anchor))
2014
2012
  );
2015
2013
  if (this.#e.set(n, t), i) {
2016
2014
  for (const [o, u] of this.#t)
@@ -2019,34 +2017,53 @@ class Ss {
2019
2017
  o === t ? n.skipped_effects.delete(u.effect) : n.skipped_effects.add(u.effect);
2020
2018
  n.oncommit(this.#i), n.ondiscard(this.#n);
2021
2019
  } else
2022
- B && (this.anchor = x), this.#i();
2020
+ A && (this.anchor = x), this.#i();
2023
2021
  }
2024
2022
  }
2025
- function As(e, t, r = !1) {
2026
- B && cr();
2027
- var n = new Ss(e), i = r ? Le : 0;
2023
+ function Rr(e, t, r = !1) {
2024
+ A && pr();
2025
+ var n = new Bs(e), i = r ? $e : 0;
2028
2026
  function s(a, o) {
2029
- if (B) {
2030
- const l = ki(e) === ur;
2027
+ if (A) {
2028
+ const l = Wi(e) === fr;
2031
2029
  if (a === l) {
2032
- var u = Jr();
2033
- Q(u), n.anchor = u, Ne(!1), n.ensure(a, o), Ne(!0);
2030
+ var u = rn();
2031
+ Y(u), n.anchor = u, Re(!1), n.ensure(a, o), Re(!0);
2034
2032
  return;
2035
2033
  }
2036
2034
  }
2037
2035
  n.ensure(a, o);
2038
2036
  }
2039
- wn(() => {
2037
+ Nn(() => {
2040
2038
  var a = !1;
2041
2039
  t((o, u = !0) => {
2042
2040
  a = !0, s(u, o);
2043
2041
  }), a || s(!1, null);
2044
2042
  }, i);
2045
2043
  }
2044
+ function Ns(e, t) {
2045
+ ps(() => {
2046
+ var r = e.getRootNode(), n = (
2047
+ /** @type {ShadowRoot} */
2048
+ r.host ? (
2049
+ /** @type {ShadowRoot} */
2050
+ r
2051
+ ) : (
2052
+ /** @type {Document} */
2053
+ r.head ?? /** @type {Document} */
2054
+ r.ownerDocument.head
2055
+ )
2056
+ );
2057
+ if (!n.querySelector("#" + t.hash)) {
2058
+ const i = document.createElement("style");
2059
+ i.id = t.hash, i.textContent = t.code, n.appendChild(i);
2060
+ }
2061
+ });
2062
+ }
2046
2063
  function yr(e, t, r) {
2047
2064
  if (e == null)
2048
2065
  return t(void 0), r && r(void 0), pe;
2049
- const n = gr(
2066
+ const n = jn(
2050
2067
  () => e.subscribe(
2051
2068
  t,
2052
2069
  // @ts-expect-error
@@ -2055,24 +2072,24 @@ function yr(e, t, r) {
2055
2072
  );
2056
2073
  return n.unsubscribe ? () => n.unsubscribe() : n;
2057
2074
  }
2058
- const Pe = [];
2059
- function Hs(e, t) {
2075
+ const Ce = [];
2076
+ function Os(e, t) {
2060
2077
  return {
2061
- subscribe: Nt(e, t).subscribe
2078
+ subscribe: Lt(e, t).subscribe
2062
2079
  };
2063
2080
  }
2064
- function Nt(e, t = pe) {
2081
+ function Lt(e, t = pe) {
2065
2082
  let r = null;
2066
2083
  const n = /* @__PURE__ */ new Set();
2067
2084
  function i(o) {
2068
- if (en(e, o) && (e = o, r)) {
2069
- const u = !Pe.length;
2085
+ if (sn(e, o) && (e = o, r)) {
2086
+ const u = !Ce.length;
2070
2087
  for (const l of n)
2071
- l[1](), Pe.push(l, e);
2088
+ l[1](), Ce.push(l, e);
2072
2089
  if (u) {
2073
- for (let l = 0; l < Pe.length; l += 2)
2074
- Pe[l][0](Pe[l + 1]);
2075
- Pe.length = 0;
2090
+ for (let l = 0; l < Ce.length; l += 2)
2091
+ Ce[l][0](Ce[l + 1]);
2092
+ Ce.length = 0;
2076
2093
  }
2077
2094
  }
2078
2095
  }
@@ -2093,12 +2110,12 @@ function Nt(e, t = pe) {
2093
2110
  }
2094
2111
  return { set: i, update: s, subscribe: a };
2095
2112
  }
2096
- function Ge(e, t, r) {
2113
+ function Ve(e, t, r) {
2097
2114
  const n = !Array.isArray(e), i = n ? [e] : e;
2098
2115
  if (!i.every(Boolean))
2099
2116
  throw new Error("derived() expects stores as input, got a falsy value");
2100
2117
  const s = t.length < 2;
2101
- return Hs(r, (a, o) => {
2118
+ return Os(r, (a, o) => {
2102
2119
  let u = !1;
2103
2120
  const l = [];
2104
2121
  let f = 0, c = pe;
@@ -2109,50 +2126,50 @@ function Ge(e, t, r) {
2109
2126
  const p = t(n ? l[0] : l, a, o);
2110
2127
  s ? a(p) : c = typeof p == "function" ? p : pe;
2111
2128
  }, d = i.map(
2112
- (p, b) => yr(
2129
+ (p, E) => yr(
2113
2130
  p,
2114
- (E) => {
2115
- l[b] = E, f &= ~(1 << b), u && h();
2131
+ (T) => {
2132
+ l[E] = T, f &= ~(1 << E), u && h();
2116
2133
  },
2117
2134
  () => {
2118
- f |= 1 << b;
2135
+ f |= 1 << E;
2119
2136
  }
2120
2137
  )
2121
2138
  );
2122
2139
  return u = !0, h(), function() {
2123
- qr(d), c(), u = !1;
2140
+ Qr(d), c(), u = !1;
2124
2141
  };
2125
2142
  });
2126
2143
  }
2127
- function Bs(e) {
2144
+ function Ps(e) {
2128
2145
  let t;
2129
2146
  return yr(e, (r) => t = r)(), t;
2130
2147
  }
2131
- let ht = !1, Jt = Symbol();
2132
- function Ps(e, t, r) {
2148
+ let er = Symbol();
2149
+ function Cs(e, t, r) {
2133
2150
  const n = r[t] ??= {
2134
2151
  store: null,
2135
- source: /* @__PURE__ */ pn(void 0),
2152
+ source: /* @__PURE__ */ gn(void 0),
2136
2153
  unsubscribe: pe
2137
2154
  };
2138
- if (n.store !== e && !(Jt in r))
2155
+ if (n.store !== e && !(er in r))
2139
2156
  if (n.unsubscribe(), n.store = e ?? null, e == null)
2140
2157
  n.source.v = void 0, n.unsubscribe = pe;
2141
2158
  else {
2142
2159
  var i = !0;
2143
2160
  n.unsubscribe = yr(e, (s) => {
2144
- i ? n.source.v = s : L(n.source, s);
2161
+ i ? n.source.v = s : P(n.source, s);
2145
2162
  }), i = !1;
2146
2163
  }
2147
- return e && Jt in r ? Bs(e) : y(n.source);
2164
+ return e && er in r ? Ps(e) : g(n.source);
2148
2165
  }
2149
- function Os() {
2166
+ function Is() {
2150
2167
  const e = {};
2151
2168
  function t() {
2152
- yn(() => {
2169
+ Hn(() => {
2153
2170
  for (var r in e)
2154
2171
  e[r].unsubscribe();
2155
- Ye(e, Jt, {
2172
+ rt(e, er, {
2156
2173
  enumerable: !1,
2157
2174
  value: !0
2158
2175
  });
@@ -2160,74 +2177,41 @@ function Os() {
2160
2177
  }
2161
2178
  return [e, t];
2162
2179
  }
2163
- function Ns(e) {
2164
- var t = ht;
2165
- try {
2166
- return ht = !1, [e(), ht];
2167
- } finally {
2168
- ht = t;
2169
- }
2170
- }
2171
- function Re(e, t, r, n) {
2172
- var i = (r & bi) !== 0, s = (r & gi) !== 0, a = (
2173
- /** @type {V} */
2174
- n
2175
- ), o = !0, u = () => (o && (o = !1, a = s ? gr(
2176
- /** @type {() => V} */
2177
- n
2178
- ) : (
2180
+ function bt(e, t, r, n) {
2181
+ var i = (
2179
2182
  /** @type {V} */
2180
2183
  n
2181
- )), a), l;
2182
- if (i) {
2183
- var f = dt in e || Qr in e;
2184
- l = Ee(e, t)?.set ?? (f && t in e ? (w) => e[t] = w : void 0);
2185
- }
2186
- var c, h = !1;
2187
- i ? [c, h] = Ns(() => (
2188
- /** @type {V} */
2189
- e[t]
2190
- )) : c = /** @type {V} */
2191
- e[t], c === void 0 && n !== void 0 && (c = u(), l && (Ci(), l(c)));
2192
- var d;
2193
- if (d = () => {
2194
- var w = (
2184
+ ), s = !0, a = () => (s && (s = !1, i = /** @type {V} */
2185
+ n), i), o;
2186
+ o = /** @type {V} */
2187
+ e[t], o === void 0 && n !== void 0 && (o = a());
2188
+ var u;
2189
+ u = () => {
2190
+ var h = (
2195
2191
  /** @type {V} */
2196
2192
  e[t]
2197
2193
  );
2198
- return w === void 0 ? u() : (o = !0, w);
2199
- }, !(r & mi))
2200
- return d;
2201
- if (l) {
2202
- var p = e.$$legacy;
2203
- return (
2204
- /** @type {() => V} */
2205
- function(w, O) {
2206
- return arguments.length > 0 ? ((!O || p || h) && l(O ? d() : w), w) : d();
2207
- }
2208
- );
2209
- }
2210
- var b = !1, E = (r & _i ? Ot : Ki)(() => (b = !1, d()));
2211
- i && y(E);
2212
- var k = (
2194
+ return h === void 0 ? a() : (s = !0, h);
2195
+ };
2196
+ var l = !1, f = /* @__PURE__ */ mr(() => (l = !1, u())), c = (
2213
2197
  /** @type {Effect} */
2214
- g
2198
+ b
2215
2199
  );
2216
2200
  return (
2217
2201
  /** @type {() => V} */
2218
- function(w, O) {
2202
+ function(h, d) {
2219
2203
  if (arguments.length > 0) {
2220
- const J = O ? y(E) : i ? Ie(w) : w;
2221
- return L(E, J), b = !0, a !== void 0 && (a = J), w;
2204
+ const p = d ? g(f) : h;
2205
+ return P(f, p), l = !0, i !== void 0 && (i = p), h;
2222
2206
  }
2223
- return me && b || k.f & ie ? E.v : y(E);
2207
+ return me && l || c.f & se ? f.v : g(f);
2224
2208
  }
2225
2209
  );
2226
2210
  }
2227
- function Is(e) {
2228
- return new Rs(e);
2211
+ function Rs(e) {
2212
+ return new Ls(e);
2229
2213
  }
2230
- class Rs {
2214
+ class Ls {
2231
2215
  /** @type {any} */
2232
2216
  #e;
2233
2217
  /** @type {Record<string, any>} */
@@ -2239,33 +2223,33 @@ class Rs {
2239
2223
  */
2240
2224
  constructor(t) {
2241
2225
  var r = /* @__PURE__ */ new Map(), n = (s, a) => {
2242
- var o = /* @__PURE__ */ pn(a, !1, !1);
2226
+ var o = /* @__PURE__ */ gn(a, !1, !1);
2243
2227
  return r.set(s, o), o;
2244
2228
  };
2245
2229
  const i = new Proxy(
2246
2230
  { ...t.props || {}, $$events: {} },
2247
2231
  {
2248
2232
  get(s, a) {
2249
- return y(r.get(a) ?? n(a, Reflect.get(s, a)));
2233
+ return g(r.get(a) ?? n(a, Reflect.get(s, a)));
2250
2234
  },
2251
2235
  has(s, a) {
2252
- return a === Qr ? !0 : (y(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
2236
+ return a === Ii ? !0 : (g(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
2253
2237
  },
2254
2238
  set(s, a, o) {
2255
- return L(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
2239
+ return P(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
2256
2240
  }
2257
2241
  }
2258
2242
  );
2259
- this.#t = (t.hydrate ? ws : Dn)(t.component, {
2243
+ this.#t = (t.hydrate ? Hs : Wn)(t.component, {
2260
2244
  target: t.target,
2261
2245
  anchor: t.anchor,
2262
2246
  props: i,
2263
2247
  context: t.context,
2264
2248
  intro: t.intro ?? !1,
2265
2249
  recover: t.recover
2266
- }), (!t?.props?.$$host || t.sync === !1) && pt(), this.#e = i.$$events;
2250
+ }), (!t?.props?.$$host || t.sync === !1) && Ye(), this.#e = i.$$events;
2267
2251
  for (const s of Object.keys(this.#t))
2268
- s === "$set" || s === "$destroy" || s === "$on" || Ye(this, s, {
2252
+ s === "$set" || s === "$destroy" || s === "$on" || rt(this, s, {
2269
2253
  get() {
2270
2254
  return this.#t[s];
2271
2255
  },
@@ -2279,7 +2263,7 @@ class Rs {
2279
2263
  (s) => {
2280
2264
  Object.assign(i, s);
2281
2265
  }, this.#t.$destroy = () => {
2282
- Ts(this.#t);
2266
+ As(this.#t);
2283
2267
  };
2284
2268
  }
2285
2269
  /** @param {Record<string, any>} props */
@@ -2305,8 +2289,8 @@ class Rs {
2305
2289
  this.#t.$destroy();
2306
2290
  }
2307
2291
  }
2308
- let Fn;
2309
- typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
2292
+ let qn;
2293
+ typeof HTMLElement == "function" && (qn = class extends HTMLElement {
2310
2294
  /** The Svelte component constructor */
2311
2295
  $$ctor;
2312
2296
  /** Slots */
@@ -2363,21 +2347,21 @@ typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
2363
2347
  let e = function(n) {
2364
2348
  return (i) => {
2365
2349
  const s = document.createElement("slot");
2366
- n !== "default" && (s.name = n), Yt(i, s);
2350
+ n !== "default" && (s.name = n), Je(i, s);
2367
2351
  };
2368
2352
  };
2369
2353
  if (await Promise.resolve(), !this.$$cn || this.$$c)
2370
2354
  return;
2371
- const t = {}, r = Cs(this);
2355
+ const t = {}, r = Ms(this);
2372
2356
  for (const n of this.$$s)
2373
2357
  n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
2374
2358
  for (const n of this.attributes) {
2375
2359
  const i = this.$$g_p(n.name);
2376
- i in this.$$d || (this.$$d[i] = vt(i, n.value, this.$$p_d, "toProp"));
2360
+ i in this.$$d || (this.$$d[i] = yt(i, n.value, this.$$p_d, "toProp"));
2377
2361
  }
2378
2362
  for (const n in this.$$p_d)
2379
2363
  !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2380
- this.$$c = Is({
2364
+ this.$$c = Rs({
2381
2365
  component: this.$$ctor,
2382
2366
  target: this.shadowRoot || this,
2383
2367
  props: {
@@ -2385,13 +2369,13 @@ typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
2385
2369
  $$slots: t,
2386
2370
  $$host: this
2387
2371
  }
2388
- }), this.$$me = us(() => {
2389
- xn(() => {
2372
+ }), this.$$me = cs(() => {
2373
+ Bn(() => {
2390
2374
  this.$$r = !0;
2391
- for (const n of bt(this.$$c)) {
2375
+ for (const n of wt(this.$$c)) {
2392
2376
  if (!this.$$p_d[n]?.reflect) continue;
2393
2377
  this.$$d[n] = this.$$c[n];
2394
- const i = vt(
2378
+ const i = yt(
2395
2379
  n,
2396
2380
  this.$$d[n],
2397
2381
  this.$$p_d,
@@ -2418,7 +2402,7 @@ typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
2418
2402
  * @param {string} newValue
2419
2403
  */
2420
2404
  attributeChangedCallback(e, t, r) {
2421
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = vt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2405
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = yt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2422
2406
  }
2423
2407
  disconnectedCallback() {
2424
2408
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2429,12 +2413,12 @@ typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
2429
2413
  * @param {string} attribute_name
2430
2414
  */
2431
2415
  $$g_p(e) {
2432
- return bt(this.$$p_d).find(
2416
+ return wt(this.$$p_d).find(
2433
2417
  (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
2434
2418
  ) || e;
2435
2419
  }
2436
2420
  });
2437
- function vt(e, t, r, n) {
2421
+ function yt(e, t, r, n) {
2438
2422
  const i = r[e]?.type;
2439
2423
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
2440
2424
  return t;
@@ -2463,7 +2447,7 @@ function vt(e, t, r, n) {
2463
2447
  return t;
2464
2448
  }
2465
2449
  }
2466
- function Cs(e) {
2450
+ function Ms(e) {
2467
2451
  const t = {};
2468
2452
  return e.childNodes.forEach((r) => {
2469
2453
  t[
@@ -2472,33 +2456,33 @@ function Cs(e) {
2472
2456
  ] = !0;
2473
2457
  }), t;
2474
2458
  }
2475
- function Ls(e, t, r, n, i, s) {
2476
- let a = class extends Fn {
2459
+ function $s(e, t, r, n, i, s) {
2460
+ let a = class extends qn {
2477
2461
  constructor() {
2478
2462
  super(e, r, i), this.$$p_d = t;
2479
2463
  }
2480
2464
  static get observedAttributes() {
2481
- return bt(t).map(
2465
+ return wt(t).map(
2482
2466
  (o) => (t[o].attribute || o).toLowerCase()
2483
2467
  );
2484
2468
  }
2485
2469
  };
2486
- return bt(t).forEach((o) => {
2487
- Ye(a.prototype, o, {
2470
+ return wt(t).forEach((o) => {
2471
+ rt(a.prototype, o, {
2488
2472
  get() {
2489
2473
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
2490
2474
  },
2491
2475
  set(u) {
2492
- u = vt(o, u, t), this.$$d[o] = u;
2476
+ u = yt(o, u, t), this.$$d[o] = u;
2493
2477
  var l = this.$$c;
2494
2478
  if (l) {
2495
- var f = Ee(l, o)?.get;
2479
+ var f = Le(l, o)?.get;
2496
2480
  f ? l[o] = u : l.$set({ [o]: u });
2497
2481
  }
2498
2482
  }
2499
2483
  });
2500
2484
  }), n.forEach((o) => {
2501
- Ye(a.prototype, o, {
2485
+ rt(a.prototype, o, {
2502
2486
  get() {
2503
2487
  return this.$$c?.[o];
2504
2488
  }
@@ -2506,28 +2490,28 @@ function Ls(e, t, r, n, i, s) {
2506
2490
  }), e.element = /** @type {any} */
2507
2491
  a, a;
2508
2492
  }
2509
- class kn extends Error {
2493
+ class Zn extends Error {
2510
2494
  constructor(t, r) {
2511
2495
  super(r), this.code = t, this.name = "ElevateApiError";
2512
2496
  }
2513
2497
  }
2514
- const Ms = async (e) => {
2498
+ const ks = async (e) => {
2515
2499
  const t = new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${e.locale ?? ""}`), r = new Headers({ "Content-Type": "application/json" });
2516
2500
  e.userSession && r.append("X-SessionId", e.userSession);
2517
2501
  const i = await (await fetch(t.href, { method: "GET", headers: r })).json();
2518
2502
  if (!i.success)
2519
- throw new kn(i.errorCode, i.errorMessage);
2503
+ throw new Zn(i.errorCode, i.errorMessage);
2520
2504
  return i.data;
2521
- }, $s = async (e) => {
2505
+ }, Ds = async (e) => {
2522
2506
  const t = new URL(`${e.apiEndpoint}/elevate/rakeback/claim`), r = new Headers({ "Content-Type": "application/json" });
2523
2507
  e.userSession && r.append("X-Sessionid", e.userSession);
2524
2508
  const i = await (await fetch(t.href, { method: "PUT", headers: r, body: JSON.stringify({}) })).json();
2525
2509
  if (!i.success)
2526
- throw new kn(i.errorCode, i.errorMessage);
2527
- }, Ds = (e, t = 2) => {
2510
+ throw new Zn(i.errorCode, i.errorMessage);
2511
+ }, Us = (e, t = 2) => {
2528
2512
  const [r, n = ""] = e.toString().split(".");
2529
2513
  return t <= 0 ? r : `${r}.${n ? n.slice(0, t).padEnd(t, "0") : "0".repeat(t)}`;
2530
- }, Us = (e, t = "en") => {
2514
+ }, Fs = (e, t = "en") => {
2531
2515
  if (!e)
2532
2516
  return "";
2533
2517
  try {
@@ -2539,100 +2523,100 @@ const Ms = async (e) => {
2539
2523
  } catch {
2540
2524
  return e;
2541
2525
  }
2542
- }, Fs = (e) => {
2526
+ }, Gs = (e) => {
2543
2527
  window.postMessage({ type: "RakebackClaimTrigger", points: e }, window.location.href);
2544
- }, ks = (e) => {
2528
+ }, js = (e) => {
2545
2529
  window.postMessage({ type: "RakebackClaimSuccess", points: e }, window.location.href);
2546
- }, Gs = (e) => {
2530
+ }, Vs = (e) => {
2547
2531
  window.postMessage({ type: "RakebackClaimFailed", message: e }, window.location.href);
2548
- }, js = () => {
2532
+ }, Xs = () => {
2549
2533
  window.postMessage({ type: "RakebackWalletMissing" }, window.location.href);
2550
2534
  };
2551
- function Vs(e) {
2535
+ function Ws(e) {
2552
2536
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2553
2537
  }
2554
- var Xs = function(t) {
2555
- return Ws(t) && !qs(t);
2538
+ var zs = function(t) {
2539
+ return qs(t) && !Zs(t);
2556
2540
  };
2557
- function Ws(e) {
2541
+ function qs(e) {
2558
2542
  return !!e && typeof e == "object";
2559
2543
  }
2560
- function qs(e) {
2544
+ function Zs(e) {
2561
2545
  var t = Object.prototype.toString.call(e);
2562
- return t === "[object RegExp]" || t === "[object Date]" || Ys(e);
2546
+ return t === "[object RegExp]" || t === "[object Date]" || Js(e);
2563
2547
  }
2564
- var zs = typeof Symbol == "function" && Symbol.for, Zs = zs ? Symbol.for("react.element") : 60103;
2565
- function Ys(e) {
2566
- return e.$$typeof === Zs;
2548
+ var Ys = typeof Symbol == "function" && Symbol.for, Qs = Ys ? Symbol.for("react.element") : 60103;
2549
+ function Js(e) {
2550
+ return e.$$typeof === Qs;
2567
2551
  }
2568
- function Qs(e) {
2552
+ function Ks(e) {
2569
2553
  return Array.isArray(e) ? [] : {};
2570
2554
  }
2571
- function et(e, t) {
2572
- return t.clone !== !1 && t.isMergeableObject(e) ? De(Qs(e), e, t) : e;
2555
+ function at(e, t) {
2556
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Ks(e), e, t) : e;
2573
2557
  }
2574
- function Js(e, t, r) {
2558
+ function ea(e, t, r) {
2575
2559
  return e.concat(t).map(function(n) {
2576
- return et(n, r);
2560
+ return at(n, r);
2577
2561
  });
2578
2562
  }
2579
- function Ks(e, t) {
2563
+ function ta(e, t) {
2580
2564
  if (!t.customMerge)
2581
- return De;
2565
+ return Ue;
2582
2566
  var r = t.customMerge(e);
2583
- return typeof r == "function" ? r : De;
2567
+ return typeof r == "function" ? r : Ue;
2584
2568
  }
2585
- function ea(e) {
2569
+ function ra(e) {
2586
2570
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
2587
2571
  return Object.propertyIsEnumerable.call(e, t);
2588
2572
  }) : [];
2589
2573
  }
2590
- function Ir(e) {
2591
- return Object.keys(e).concat(ea(e));
2574
+ function Lr(e) {
2575
+ return Object.keys(e).concat(ra(e));
2592
2576
  }
2593
- function Gn(e, t) {
2577
+ function Yn(e, t) {
2594
2578
  try {
2595
2579
  return t in e;
2596
2580
  } catch {
2597
2581
  return !1;
2598
2582
  }
2599
2583
  }
2600
- function ta(e, t) {
2601
- return Gn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
2584
+ function na(e, t) {
2585
+ return Yn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
2602
2586
  }
2603
- function ra(e, t, r) {
2587
+ function ia(e, t, r) {
2604
2588
  var n = {};
2605
- return r.isMergeableObject(e) && Ir(e).forEach(function(i) {
2606
- n[i] = et(e[i], r);
2607
- }), Ir(t).forEach(function(i) {
2608
- ta(e, i) || (Gn(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ks(i, r)(e[i], t[i], r) : n[i] = et(t[i], r));
2589
+ return r.isMergeableObject(e) && Lr(e).forEach(function(i) {
2590
+ n[i] = at(e[i], r);
2591
+ }), Lr(t).forEach(function(i) {
2592
+ na(e, i) || (Yn(e, i) && r.isMergeableObject(t[i]) ? n[i] = ta(i, r)(e[i], t[i], r) : n[i] = at(t[i], r));
2609
2593
  }), n;
2610
2594
  }
2611
- function De(e, t, r) {
2612
- r = r || {}, r.arrayMerge = r.arrayMerge || Js, r.isMergeableObject = r.isMergeableObject || Xs, r.cloneUnlessOtherwiseSpecified = et;
2595
+ function Ue(e, t, r) {
2596
+ r = r || {}, r.arrayMerge = r.arrayMerge || ea, r.isMergeableObject = r.isMergeableObject || zs, r.cloneUnlessOtherwiseSpecified = at;
2613
2597
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
2614
- return s ? n ? r.arrayMerge(e, t, r) : ra(e, t, r) : et(t, r);
2598
+ return s ? n ? r.arrayMerge(e, t, r) : ia(e, t, r) : at(t, r);
2615
2599
  }
2616
- De.all = function(t, r) {
2600
+ Ue.all = function(t, r) {
2617
2601
  if (!Array.isArray(t))
2618
2602
  throw new Error("first argument should be an array");
2619
2603
  return t.reduce(function(n, i) {
2620
- return De(n, i, r);
2604
+ return Ue(n, i, r);
2621
2605
  }, {});
2622
2606
  };
2623
- var na = De, ia = na;
2624
- const sa = /* @__PURE__ */ Vs(ia);
2625
- var Kt = function(e, t) {
2626
- return Kt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
2607
+ var sa = Ue, aa = sa;
2608
+ const oa = /* @__PURE__ */ Ws(aa);
2609
+ var tr = function(e, t) {
2610
+ return tr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
2627
2611
  r.__proto__ = n;
2628
2612
  } || function(r, n) {
2629
2613
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
2630
- }, Kt(e, t);
2614
+ }, tr(e, t);
2631
2615
  };
2632
- function It(e, t) {
2616
+ function Mt(e, t) {
2633
2617
  if (typeof t != "function" && t !== null)
2634
2618
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
2635
- Kt(e, t);
2619
+ tr(e, t);
2636
2620
  function r() {
2637
2621
  this.constructor = e;
2638
2622
  }
@@ -2647,7 +2631,7 @@ var K = function() {
2647
2631
  return t;
2648
2632
  }, K.apply(this, arguments);
2649
2633
  };
2650
- function aa(e, t) {
2634
+ function ua(e, t) {
2651
2635
  var r = {};
2652
2636
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
2653
2637
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2655,42 +2639,42 @@ function aa(e, t) {
2655
2639
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
2656
2640
  return r;
2657
2641
  }
2658
- function $t(e, t, r) {
2642
+ function Ft(e, t, r) {
2659
2643
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
2660
2644
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
2661
2645
  return e.concat(s || Array.prototype.slice.call(t));
2662
2646
  }
2663
- function Dt(e, t) {
2664
- var r = t && t.cache ? t.cache : da, n = t && t.serializer ? t.serializer : ha, i = t && t.strategy ? t.strategy : la;
2647
+ function Gt(e, t) {
2648
+ var r = t && t.cache ? t.cache : va, n = t && t.serializer ? t.serializer : da, i = t && t.strategy ? t.strategy : ha;
2665
2649
  return i(e, {
2666
2650
  cache: r,
2667
2651
  serializer: n
2668
2652
  });
2669
2653
  }
2670
- function oa(e) {
2654
+ function la(e) {
2671
2655
  return e == null || typeof e == "number" || typeof e == "boolean";
2672
2656
  }
2673
- function ua(e, t, r, n) {
2674
- var i = oa(n) ? n : r(n), s = t.get(i);
2657
+ function fa(e, t, r, n) {
2658
+ var i = la(n) ? n : r(n), s = t.get(i);
2675
2659
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
2676
2660
  }
2677
- function jn(e, t, r) {
2661
+ function Qn(e, t, r) {
2678
2662
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
2679
2663
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
2680
2664
  }
2681
- function Vn(e, t, r, n, i) {
2665
+ function Jn(e, t, r, n, i) {
2682
2666
  return r.bind(t, e, n, i);
2683
2667
  }
2684
- function la(e, t) {
2685
- var r = e.length === 1 ? ua : jn;
2686
- return Vn(e, this, r, t.cache.create(), t.serializer);
2668
+ function ha(e, t) {
2669
+ var r = e.length === 1 ? fa : Qn;
2670
+ return Jn(e, this, r, t.cache.create(), t.serializer);
2687
2671
  }
2688
- function fa(e, t) {
2689
- return Vn(e, this, jn, t.cache.create(), t.serializer);
2672
+ function ca(e, t) {
2673
+ return Jn(e, this, Qn, t.cache.create(), t.serializer);
2690
2674
  }
2691
- var ha = function() {
2675
+ var da = function() {
2692
2676
  return JSON.stringify(arguments);
2693
- }, ca = (
2677
+ }, pa = (
2694
2678
  /** @class */
2695
2679
  function() {
2696
2680
  function e() {
@@ -2702,70 +2686,70 @@ var ha = function() {
2702
2686
  this.cache[t] = r;
2703
2687
  }, e;
2704
2688
  }()
2705
- ), da = {
2689
+ ), va = {
2706
2690
  create: function() {
2707
- return new ca();
2691
+ return new pa();
2708
2692
  }
2709
- }, Ut = {
2710
- variadic: fa
2711
- }, wt = function() {
2712
- return wt = Object.assign || function(t) {
2693
+ }, jt = {
2694
+ variadic: ca
2695
+ }, Nt = function() {
2696
+ return Nt = Object.assign || function(t) {
2713
2697
  for (var r, n = 1, i = arguments.length; n < i; n++) {
2714
2698
  r = arguments[n];
2715
2699
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
2716
2700
  }
2717
2701
  return t;
2718
- }, wt.apply(this, arguments);
2702
+ }, Nt.apply(this, arguments);
2719
2703
  };
2720
2704
  var v;
2721
2705
  (function(e) {
2722
2706
  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";
2723
2707
  })(v || (v = {}));
2724
- var S;
2708
+ var w;
2725
2709
  (function(e) {
2726
2710
  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";
2727
- })(S || (S = {}));
2728
- var Ue;
2711
+ })(w || (w = {}));
2712
+ var Fe;
2729
2713
  (function(e) {
2730
2714
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
2731
- })(Ue || (Ue = {}));
2732
- function Rr(e) {
2733
- return e.type === S.literal;
2715
+ })(Fe || (Fe = {}));
2716
+ function Mr(e) {
2717
+ return e.type === w.literal;
2734
2718
  }
2735
- function pa(e) {
2736
- return e.type === S.argument;
2719
+ function _a(e) {
2720
+ return e.type === w.argument;
2737
2721
  }
2738
- function Xn(e) {
2739
- return e.type === S.number;
2722
+ function Kn(e) {
2723
+ return e.type === w.number;
2740
2724
  }
2741
- function Wn(e) {
2742
- return e.type === S.date;
2725
+ function ei(e) {
2726
+ return e.type === w.date;
2743
2727
  }
2744
- function qn(e) {
2745
- return e.type === S.time;
2728
+ function ti(e) {
2729
+ return e.type === w.time;
2746
2730
  }
2747
- function zn(e) {
2748
- return e.type === S.select;
2731
+ function ri(e) {
2732
+ return e.type === w.select;
2749
2733
  }
2750
- function Zn(e) {
2751
- return e.type === S.plural;
2734
+ function ni(e) {
2735
+ return e.type === w.plural;
2752
2736
  }
2753
- function va(e) {
2754
- return e.type === S.pound;
2737
+ function ma(e) {
2738
+ return e.type === w.pound;
2755
2739
  }
2756
- function Yn(e) {
2757
- return e.type === S.tag;
2740
+ function ii(e) {
2741
+ return e.type === w.tag;
2758
2742
  }
2759
- function Qn(e) {
2760
- return !!(e && typeof e == "object" && e.type === Ue.number);
2743
+ function si(e) {
2744
+ return !!(e && typeof e == "object" && e.type === Fe.number);
2761
2745
  }
2762
- function er(e) {
2763
- return !!(e && typeof e == "object" && e.type === Ue.dateTime);
2746
+ function rr(e) {
2747
+ return !!(e && typeof e == "object" && e.type === Fe.dateTime);
2764
2748
  }
2765
- var Jn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _a = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
2766
- function ma(e) {
2749
+ var ai = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ba = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
2750
+ function ga(e) {
2767
2751
  var t = {};
2768
- return e.replace(_a, function(r) {
2752
+ return e.replace(ba, function(r) {
2769
2753
  var n = r.length;
2770
2754
  switch (r[0]) {
2771
2755
  case "G":
@@ -2854,20 +2838,20 @@ function ma(e) {
2854
2838
  return "";
2855
2839
  }), t;
2856
2840
  }
2857
- var A = function() {
2858
- return A = Object.assign || function(t) {
2841
+ var S = function() {
2842
+ return S = Object.assign || function(t) {
2859
2843
  for (var r, n = 1, i = arguments.length; n < i; n++) {
2860
2844
  r = arguments[n];
2861
2845
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
2862
2846
  }
2863
2847
  return t;
2864
- }, A.apply(this, arguments);
2848
+ }, S.apply(this, arguments);
2865
2849
  };
2866
- var ba = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2867
- function ga(e) {
2850
+ var ya = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2851
+ function Ea(e) {
2868
2852
  if (e.length === 0)
2869
2853
  throw new Error("Number skeleton cannot be empty");
2870
- for (var t = e.split(ba).filter(function(h) {
2854
+ for (var t = e.split(ya).filter(function(h) {
2871
2855
  return h.length > 0;
2872
2856
  }), r = [], n = 0, i = t; n < i.length; n++) {
2873
2857
  var s = i[n], a = s.split("/");
@@ -2882,17 +2866,17 @@ function ga(e) {
2882
2866
  }
2883
2867
  return r;
2884
2868
  }
2885
- function ya(e) {
2869
+ function xa(e) {
2886
2870
  return e.replace(/^(.*?)-/, "");
2887
2871
  }
2888
- var Cr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kn = /^(@+)?(\+|#+)?[rs]?$/g, Ea = /(\*)(0+)|(#+)(0+)|(0+)/g, ei = /^(0+)$/;
2889
- function Lr(e) {
2872
+ var $r = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, oi = /^(@+)?(\+|#+)?[rs]?$/g, wa = /(\*)(0+)|(#+)(0+)|(0+)/g, ui = /^(0+)$/;
2873
+ function kr(e) {
2890
2874
  var t = {};
2891
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kn, function(r, n, i) {
2875
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(oi, function(r, n, i) {
2892
2876
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
2893
2877
  }), t;
2894
2878
  }
2895
- function ti(e) {
2879
+ function li(e) {
2896
2880
  switch (e) {
2897
2881
  case "sign-auto":
2898
2882
  return {
@@ -2932,7 +2916,7 @@ function ti(e) {
2932
2916
  };
2933
2917
  }
2934
2918
  }
2935
- function xa(e) {
2919
+ function Ta(e) {
2936
2920
  var t;
2937
2921
  if (e[0] === "E" && e[1] === "E" ? (t = {
2938
2922
  notation: "engineering"
@@ -2940,17 +2924,17 @@ function xa(e) {
2940
2924
  notation: "scientific"
2941
2925
  }, e = e.slice(1)), t) {
2942
2926
  var r = e.slice(0, 2);
2943
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ei.test(e))
2927
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ui.test(e))
2944
2928
  throw new Error("Malformed concise eng/scientific notation");
2945
2929
  t.minimumIntegerDigits = e.length;
2946
2930
  }
2947
2931
  return t;
2948
2932
  }
2949
- function Mr(e) {
2950
- var t = {}, r = ti(e);
2933
+ function Dr(e) {
2934
+ var t = {}, r = li(e);
2951
2935
  return r || t;
2952
2936
  }
2953
- function wa(e) {
2937
+ function Sa(e) {
2954
2938
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
2955
2939
  var i = n[r];
2956
2940
  switch (i.stem) {
@@ -2974,7 +2958,7 @@ function wa(e) {
2974
2958
  continue;
2975
2959
  case "measure-unit":
2976
2960
  case "unit":
2977
- t.style = "unit", t.unit = ya(i.options[0]);
2961
+ t.style = "unit", t.unit = xa(i.options[0]);
2978
2962
  continue;
2979
2963
  case "compact-short":
2980
2964
  case "K":
@@ -2985,13 +2969,13 @@ function wa(e) {
2985
2969
  t.notation = "compact", t.compactDisplay = "long";
2986
2970
  continue;
2987
2971
  case "scientific":
2988
- t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
2989
- return A(A({}, u), Mr(l));
2972
+ t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
2973
+ return S(S({}, u), Dr(l));
2990
2974
  }, {}));
2991
2975
  continue;
2992
2976
  case "engineering":
2993
- t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
2994
- return A(A({}, u), Mr(l));
2977
+ t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
2978
+ return S(S({}, u), Dr(l));
2995
2979
  }, {}));
2996
2980
  continue;
2997
2981
  case "notation-simple":
@@ -3036,7 +3020,7 @@ function wa(e) {
3036
3020
  case "integer-width":
3037
3021
  if (i.options.length > 1)
3038
3022
  throw new RangeError("integer-width stems only accept a single optional option");
3039
- i.options[0].replace(Ea, function(u, l, f, c, h, d) {
3023
+ i.options[0].replace(wa, function(u, l, f, c, h, d) {
3040
3024
  if (l)
3041
3025
  t.minimumIntegerDigits = f.length;
3042
3026
  else {
@@ -3049,32 +3033,32 @@ function wa(e) {
3049
3033
  });
3050
3034
  continue;
3051
3035
  }
3052
- if (ei.test(i.stem)) {
3036
+ if (ui.test(i.stem)) {
3053
3037
  t.minimumIntegerDigits = i.stem.length;
3054
3038
  continue;
3055
3039
  }
3056
- if (Cr.test(i.stem)) {
3040
+ if ($r.test(i.stem)) {
3057
3041
  if (i.options.length > 1)
3058
3042
  throw new RangeError("Fraction-precision stems only accept a single optional option");
3059
- i.stem.replace(Cr, function(u, l, f, c, h, d) {
3043
+ i.stem.replace($r, function(u, l, f, c, h, d) {
3060
3044
  return f === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
3061
3045
  });
3062
3046
  var s = i.options[0];
3063
- s === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = A(A({}, t), Lr(s)));
3047
+ s === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = S(S({}, t), kr(s)));
3064
3048
  continue;
3065
3049
  }
3066
- if (Kn.test(i.stem)) {
3067
- t = A(A({}, t), Lr(i.stem));
3050
+ if (oi.test(i.stem)) {
3051
+ t = S(S({}, t), kr(i.stem));
3068
3052
  continue;
3069
3053
  }
3070
- var a = ti(i.stem);
3071
- a && (t = A(A({}, t), a));
3072
- var o = xa(i.stem);
3073
- o && (t = A(A({}, t), o));
3054
+ var a = li(i.stem);
3055
+ a && (t = S(S({}, t), a));
3056
+ var o = Ta(i.stem);
3057
+ o && (t = S(S({}, t), o));
3074
3058
  }
3075
3059
  return t;
3076
3060
  }
3077
- var ct = {
3061
+ var gt = {
3078
3062
  "001": [
3079
3063
  "H",
3080
3064
  "h"
@@ -4489,13 +4473,13 @@ var ct = {
4489
4473
  "h"
4490
4474
  ]
4491
4475
  };
4492
- function Ta(e, t) {
4476
+ function Ha(e, t) {
4493
4477
  for (var r = "", n = 0; n < e.length; n++) {
4494
4478
  var i = e.charAt(n);
4495
4479
  if (i === "j") {
4496
4480
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
4497
4481
  s++, n++;
4498
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = Sa(t);
4482
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = Aa(t);
4499
4483
  for ((l == "H" || l == "k") && (o = 0); o-- > 0; )
4500
4484
  r += u;
4501
4485
  for (; a-- > 0; )
@@ -4504,7 +4488,7 @@ function Ta(e, t) {
4504
4488
  }
4505
4489
  return r;
4506
4490
  }
4507
- function Sa(e) {
4491
+ function Aa(e) {
4508
4492
  var t = e.hourCycle;
4509
4493
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
4510
4494
  e.hourCycles && // @ts-ignore
@@ -4523,23 +4507,23 @@ function Sa(e) {
4523
4507
  }
4524
4508
  var r = e.language, n;
4525
4509
  r !== "root" && (n = e.maximize().region);
4526
- var i = ct[n || ""] || ct[r || ""] || ct["".concat(r, "-001")] || ct["001"];
4510
+ var i = gt[n || ""] || gt[r || ""] || gt["".concat(r, "-001")] || gt["001"];
4527
4511
  return i[0];
4528
4512
  }
4529
- var Ft, Aa = new RegExp("^".concat(Jn.source, "*")), Ha = new RegExp("".concat(Jn.source, "*$"));
4513
+ var Vt, Ba = new RegExp("^".concat(ai.source, "*")), Na = new RegExp("".concat(ai.source, "*$"));
4530
4514
  function m(e, t) {
4531
4515
  return { start: e, end: t };
4532
4516
  }
4533
- var Ba = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pa = !!String.fromCodePoint, Oa = !!Object.fromEntries, Na = !!String.prototype.codePointAt, Ia = !!String.prototype.trimStart, Ra = !!String.prototype.trimEnd, Ca = !!Number.isSafeInteger, La = Ca ? Number.isSafeInteger : function(e) {
4517
+ var Oa = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pa = !!String.fromCodePoint, Ca = !!Object.fromEntries, Ia = !!String.prototype.codePointAt, Ra = !!String.prototype.trimStart, La = !!String.prototype.trimEnd, Ma = !!Number.isSafeInteger, $a = Ma ? Number.isSafeInteger : function(e) {
4534
4518
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
4535
- }, tr = !0;
4519
+ }, nr = !0;
4536
4520
  try {
4537
- var Ma = ni("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4538
- tr = ((Ft = Ma.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
4521
+ var ka = hi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4522
+ nr = ((Vt = ka.exec("a")) === null || Vt === void 0 ? void 0 : Vt[0]) === "a";
4539
4523
  } catch {
4540
- tr = !1;
4524
+ nr = !1;
4541
4525
  }
4542
- var $r = Ba ? (
4526
+ var Ur = Oa ? (
4543
4527
  // Native
4544
4528
  function(t, r, n) {
4545
4529
  return t.startsWith(r, n);
@@ -4549,7 +4533,7 @@ var $r = Ba ? (
4549
4533
  function(t, r, n) {
4550
4534
  return t.slice(n, n + r.length) === r;
4551
4535
  }
4552
- ), rr = Pa ? String.fromCodePoint : (
4536
+ ), ir = Pa ? String.fromCodePoint : (
4553
4537
  // IE11
4554
4538
  function() {
4555
4539
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -4561,9 +4545,9 @@ var $r = Ba ? (
4561
4545
  }
4562
4546
  return n;
4563
4547
  }
4564
- ), Dr = (
4548
+ ), Fr = (
4565
4549
  // native
4566
- Oa ? Object.fromEntries : (
4550
+ Ca ? Object.fromEntries : (
4567
4551
  // Ponyfill
4568
4552
  function(t) {
4569
4553
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -4573,7 +4557,7 @@ var $r = Ba ? (
4573
4557
  return r;
4574
4558
  }
4575
4559
  )
4576
- ), ri = Na ? (
4560
+ ), fi = Ia ? (
4577
4561
  // Native
4578
4562
  function(t, r) {
4579
4563
  return t.codePointAt(r);
@@ -4587,7 +4571,7 @@ var $r = Ba ? (
4587
4571
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
4588
4572
  }
4589
4573
  }
4590
- ), $a = Ia ? (
4574
+ ), Da = Ra ? (
4591
4575
  // Native
4592
4576
  function(t) {
4593
4577
  return t.trimStart();
@@ -4595,9 +4579,9 @@ var $r = Ba ? (
4595
4579
  ) : (
4596
4580
  // Ponyfill
4597
4581
  function(t) {
4598
- return t.replace(Aa, "");
4582
+ return t.replace(Ba, "");
4599
4583
  }
4600
- ), Da = Ra ? (
4584
+ ), Ua = La ? (
4601
4585
  // Native
4602
4586
  function(t) {
4603
4587
  return t.trimEnd();
@@ -4605,32 +4589,32 @@ var $r = Ba ? (
4605
4589
  ) : (
4606
4590
  // Ponyfill
4607
4591
  function(t) {
4608
- return t.replace(Ha, "");
4592
+ return t.replace(Na, "");
4609
4593
  }
4610
4594
  );
4611
- function ni(e, t) {
4595
+ function hi(e, t) {
4612
4596
  return new RegExp(e, t);
4613
4597
  }
4614
- var nr;
4615
- if (tr) {
4616
- var Ur = ni("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4617
- nr = function(t, r) {
4598
+ var sr;
4599
+ if (nr) {
4600
+ var Gr = hi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4601
+ sr = function(t, r) {
4618
4602
  var n;
4619
- Ur.lastIndex = r;
4620
- var i = Ur.exec(t);
4603
+ Gr.lastIndex = r;
4604
+ var i = Gr.exec(t);
4621
4605
  return (n = i[1]) !== null && n !== void 0 ? n : "";
4622
4606
  };
4623
4607
  } else
4624
- nr = function(t, r) {
4608
+ sr = function(t, r) {
4625
4609
  for (var n = []; ; ) {
4626
- var i = ri(t, r);
4627
- if (i === void 0 || ii(i) || Ga(i))
4610
+ var i = fi(t, r);
4611
+ if (i === void 0 || ci(i) || Va(i))
4628
4612
  break;
4629
4613
  n.push(i), r += i >= 65536 ? 2 : 1;
4630
4614
  }
4631
- return rr.apply(void 0, n);
4615
+ return ir.apply(void 0, n);
4632
4616
  };
4633
- var Ua = (
4617
+ var Fa = (
4634
4618
  /** @class */
4635
4619
  function() {
4636
4620
  function e(t, r) {
@@ -4654,14 +4638,14 @@ var Ua = (
4654
4638
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
4655
4639
  var o = this.clonePosition();
4656
4640
  this.bump(), i.push({
4657
- type: S.pound,
4641
+ type: w.pound,
4658
4642
  location: m(o, this.clonePosition())
4659
4643
  });
4660
4644
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
4661
4645
  if (n)
4662
4646
  break;
4663
4647
  return this.error(v.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
4664
- } else if (s === 60 && !this.ignoreTag && ir(this.peek() || 0)) {
4648
+ } else if (s === 60 && !this.ignoreTag && ar(this.peek() || 0)) {
4665
4649
  var a = this.parseTag(t, r);
4666
4650
  if (a.err)
4667
4651
  return a;
@@ -4682,7 +4666,7 @@ var Ua = (
4682
4666
  if (this.bumpSpace(), this.bumpIf("/>"))
4683
4667
  return {
4684
4668
  val: {
4685
- type: S.literal,
4669
+ type: w.literal,
4686
4670
  value: "<".concat(i, "/>"),
4687
4671
  location: m(n, this.clonePosition())
4688
4672
  },
@@ -4694,12 +4678,12 @@ var Ua = (
4694
4678
  return s;
4695
4679
  var a = s.val, o = this.clonePosition();
4696
4680
  if (this.bumpIf("</")) {
4697
- if (this.isEOF() || !ir(this.char()))
4681
+ if (this.isEOF() || !ar(this.char()))
4698
4682
  return this.error(v.INVALID_TAG, m(o, this.clonePosition()));
4699
4683
  var u = this.clonePosition(), l = this.parseTagName();
4700
4684
  return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, m(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
4701
4685
  val: {
4702
- type: S.tag,
4686
+ type: w.tag,
4703
4687
  value: i,
4704
4688
  children: a,
4705
4689
  location: m(n, this.clonePosition())
@@ -4712,7 +4696,7 @@ var Ua = (
4712
4696
  return this.error(v.INVALID_TAG, m(n, this.clonePosition()));
4713
4697
  }, e.prototype.parseTagName = function() {
4714
4698
  var t = this.offset();
4715
- for (this.bump(); !this.isEOF() && ka(this.char()); )
4699
+ for (this.bump(); !this.isEOF() && ja(this.char()); )
4716
4700
  this.bump();
4717
4701
  return this.message.slice(t, this.offset());
4718
4702
  }, e.prototype.parseLiteral = function(t, r) {
@@ -4736,12 +4720,12 @@ var Ua = (
4736
4720
  }
4737
4721
  var u = m(n, this.clonePosition());
4738
4722
  return {
4739
- val: { type: S.literal, value: i, location: u },
4723
+ val: { type: w.literal, value: i, location: u },
4740
4724
  err: null
4741
4725
  };
4742
4726
  }, e.prototype.tryParseLeftAngleBracket = function() {
4743
4727
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
4744
- !Fa(this.peek() || 0)) ? (this.bump(), "<") : null;
4728
+ !Ga(this.peek() || 0)) ? (this.bump(), "<") : null;
4745
4729
  }, e.prototype.tryParseQuote = function(t) {
4746
4730
  if (this.isEOF() || this.char() !== 39)
4747
4731
  return null;
@@ -4775,12 +4759,12 @@ var Ua = (
4775
4759
  r.push(n);
4776
4760
  this.bump();
4777
4761
  }
4778
- return rr.apply(void 0, r);
4762
+ return ir.apply(void 0, r);
4779
4763
  }, e.prototype.tryParseUnquoted = function(t, r) {
4780
4764
  if (this.isEOF())
4781
4765
  return null;
4782
4766
  var n = this.char();
4783
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), rr(n));
4767
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ir(n));
4784
4768
  }, e.prototype.parseArgument = function(t, r) {
4785
4769
  var n = this.clonePosition();
4786
4770
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -4796,7 +4780,7 @@ var Ua = (
4796
4780
  case 125:
4797
4781
  return this.bump(), {
4798
4782
  val: {
4799
- type: S.argument,
4783
+ type: w.argument,
4800
4784
  // value does not include the opening and closing braces.
4801
4785
  value: i,
4802
4786
  location: m(n, this.clonePosition())
@@ -4809,7 +4793,7 @@ var Ua = (
4809
4793
  return this.error(v.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
4810
4794
  }
4811
4795
  }, e.prototype.parseIdentifierIfPossible = function() {
4812
- var t = this.clonePosition(), r = this.offset(), n = nr(this.message, r), i = r + n.length;
4796
+ var t = this.clonePosition(), r = this.offset(), n = sr(this.message, r), i = r + n.length;
4813
4797
  this.bumpTo(i);
4814
4798
  var s = this.clonePosition(), a = m(t, s);
4815
4799
  return { value: n, location: a };
@@ -4828,7 +4812,7 @@ var Ua = (
4828
4812
  var f = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
4829
4813
  if (c.err)
4830
4814
  return c;
4831
- var h = Da(c.val);
4815
+ var h = Ua(c.val);
4832
4816
  if (h.length === 0)
4833
4817
  return this.error(v.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
4834
4818
  var d = m(f, this.clonePosition());
@@ -4837,37 +4821,37 @@ var Ua = (
4837
4821
  var p = this.tryParseArgumentClose(i);
4838
4822
  if (p.err)
4839
4823
  return p;
4840
- var b = m(i, this.clonePosition());
4841
- if (l && $r(l?.style, "::", 0)) {
4842
- var E = $a(l.style.slice(2));
4824
+ var E = m(i, this.clonePosition());
4825
+ if (l && Ur(l?.style, "::", 0)) {
4826
+ var T = Da(l.style.slice(2));
4843
4827
  if (o === "number") {
4844
- var c = this.parseNumberSkeletonFromString(E, l.styleLocation);
4828
+ var c = this.parseNumberSkeletonFromString(T, l.styleLocation);
4845
4829
  return c.err ? c : {
4846
- val: { type: S.number, value: n, location: b, style: c.val },
4830
+ val: { type: w.number, value: n, location: E, style: c.val },
4847
4831
  err: null
4848
4832
  };
4849
4833
  } else {
4850
- if (E.length === 0)
4851
- return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
4852
- var k = E;
4853
- this.locale && (k = Ta(E, this.locale));
4834
+ if (T.length === 0)
4835
+ return this.error(v.EXPECT_DATE_TIME_SKELETON, E);
4836
+ var J = T;
4837
+ this.locale && (J = Ha(T, this.locale));
4854
4838
  var h = {
4855
- type: Ue.dateTime,
4856
- pattern: k,
4839
+ type: Fe.dateTime,
4840
+ pattern: J,
4857
4841
  location: l.styleLocation,
4858
- parsedOptions: this.shouldParseSkeletons ? ma(k) : {}
4859
- }, w = o === "date" ? S.date : S.time;
4842
+ parsedOptions: this.shouldParseSkeletons ? ga(J) : {}
4843
+ }, D = o === "date" ? w.date : w.time;
4860
4844
  return {
4861
- val: { type: w, value: n, location: b, style: h },
4845
+ val: { type: D, value: n, location: E, style: h },
4862
4846
  err: null
4863
4847
  };
4864
4848
  }
4865
4849
  }
4866
4850
  return {
4867
4851
  val: {
4868
- type: o === "number" ? S.number : o === "date" ? S.date : S.time,
4852
+ type: o === "number" ? w.number : o === "date" ? w.date : w.time,
4869
4853
  value: n,
4870
- location: b,
4854
+ location: E,
4871
4855
  style: (s = l?.style) !== null && s !== void 0 ? s : null
4872
4856
  },
4873
4857
  err: null
@@ -4876,43 +4860,43 @@ var Ua = (
4876
4860
  case "plural":
4877
4861
  case "selectordinal":
4878
4862
  case "select": {
4879
- var O = this.clonePosition();
4863
+ var F = this.clonePosition();
4880
4864
  if (this.bumpSpace(), !this.bumpIf(","))
4881
- return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, m(O, wt({}, O)));
4865
+ return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, m(F, Nt({}, F)));
4882
4866
  this.bumpSpace();
4883
- var J = this.parseIdentifierIfPossible(), T = 0;
4884
- if (o !== "select" && J.value === "offset") {
4867
+ var ge = this.parseIdentifierIfPossible(), re = 0;
4868
+ if (o !== "select" && ge.value === "offset") {
4885
4869
  if (!this.bumpIf(":"))
4886
4870
  return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
4887
4871
  this.bumpSpace();
4888
4872
  var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
4889
4873
  if (c.err)
4890
4874
  return c;
4891
- this.bumpSpace(), J = this.parseIdentifierIfPossible(), T = c.val;
4875
+ this.bumpSpace(), ge = this.parseIdentifierIfPossible(), re = c.val;
4892
4876
  }
4893
- var G = this.tryParsePluralOrSelectOptions(t, o, r, J);
4894
- if (G.err)
4895
- return G;
4877
+ var ye = this.tryParsePluralOrSelectOptions(t, o, r, ge);
4878
+ if (ye.err)
4879
+ return ye;
4896
4880
  var p = this.tryParseArgumentClose(i);
4897
4881
  if (p.err)
4898
4882
  return p;
4899
- var Xe = m(i, this.clonePosition());
4883
+ var ct = m(i, this.clonePosition());
4900
4884
  return o === "select" ? {
4901
4885
  val: {
4902
- type: S.select,
4886
+ type: w.select,
4903
4887
  value: n,
4904
- options: Dr(G.val),
4905
- location: Xe
4888
+ options: Fr(ye.val),
4889
+ location: ct
4906
4890
  },
4907
4891
  err: null
4908
4892
  } : {
4909
4893
  val: {
4910
- type: S.plural,
4894
+ type: w.plural,
4911
4895
  value: n,
4912
- options: Dr(G.val),
4913
- offset: T,
4896
+ options: Fr(ye.val),
4897
+ offset: re,
4914
4898
  pluralType: o === "plural" ? "cardinal" : "ordinal",
4915
- location: Xe
4899
+ location: ct
4916
4900
  },
4917
4901
  err: null
4918
4902
  };
@@ -4960,16 +4944,16 @@ var Ua = (
4960
4944
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
4961
4945
  var n = [];
4962
4946
  try {
4963
- n = ga(t);
4947
+ n = Ea(t);
4964
4948
  } catch {
4965
4949
  return this.error(v.INVALID_NUMBER_SKELETON, r);
4966
4950
  }
4967
4951
  return {
4968
4952
  val: {
4969
- type: Ue.number,
4953
+ type: Fe.number,
4970
4954
  tokens: n,
4971
4955
  location: r,
4972
- parsedOptions: this.shouldParseSkeletons ? wa(n) : {}
4956
+ parsedOptions: this.shouldParseSkeletons ? Sa(n) : {}
4973
4957
  },
4974
4958
  err: null
4975
4959
  };
@@ -4994,9 +4978,9 @@ var Ua = (
4994
4978
  var p = this.parseMessage(t + 1, r, n);
4995
4979
  if (p.err)
4996
4980
  return p;
4997
- var b = this.tryParseArgumentClose(d);
4998
- if (b.err)
4999
- return b;
4981
+ var E = this.tryParseArgumentClose(d);
4982
+ if (E.err)
4983
+ return E;
5000
4984
  o.push([
5001
4985
  l,
5002
4986
  {
@@ -5017,7 +5001,7 @@ var Ua = (
5017
5001
  break;
5018
5002
  }
5019
5003
  var u = m(i, this.clonePosition());
5020
- return s ? (a *= n, La(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
5004
+ return s ? (a *= n, $a(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
5021
5005
  }, e.prototype.offset = function() {
5022
5006
  return this.position.offset;
5023
5007
  }, e.prototype.isEOF = function() {
@@ -5032,7 +5016,7 @@ var Ua = (
5032
5016
  var t = this.position.offset;
5033
5017
  if (t >= this.message.length)
5034
5018
  throw Error("out of bound");
5035
- var r = ri(this.message, t);
5019
+ var r = fi(this.message, t);
5036
5020
  if (r === void 0)
5037
5021
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
5038
5022
  return r;
@@ -5051,7 +5035,7 @@ var Ua = (
5051
5035
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
5052
5036
  }
5053
5037
  }, e.prototype.bumpIf = function(t) {
5054
- if ($r(this.message, t, this.offset())) {
5038
+ if (Ur(this.message, t, this.offset())) {
5055
5039
  for (var r = 0; r < t.length; r++)
5056
5040
  this.bump();
5057
5041
  return !0;
@@ -5073,7 +5057,7 @@ var Ua = (
5073
5057
  break;
5074
5058
  }
5075
5059
  }, e.prototype.bumpSpace = function() {
5076
- for (; !this.isEOF() && ii(this.char()); )
5060
+ for (; !this.isEOF() && ci(this.char()); )
5077
5061
  this.bump();
5078
5062
  }, e.prototype.peek = function() {
5079
5063
  if (this.isEOF())
@@ -5083,46 +5067,46 @@ var Ua = (
5083
5067
  }, e;
5084
5068
  }()
5085
5069
  );
5086
- function ir(e) {
5070
+ function ar(e) {
5087
5071
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
5088
5072
  }
5089
- function Fa(e) {
5090
- return ir(e) || e === 47;
5073
+ function Ga(e) {
5074
+ return ar(e) || e === 47;
5091
5075
  }
5092
- function ka(e) {
5076
+ function ja(e) {
5093
5077
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
5094
5078
  }
5095
- function ii(e) {
5079
+ function ci(e) {
5096
5080
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
5097
5081
  }
5098
- function Ga(e) {
5082
+ function Va(e) {
5099
5083
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
5100
5084
  }
5101
- function sr(e) {
5085
+ function or(e) {
5102
5086
  e.forEach(function(t) {
5103
- if (delete t.location, zn(t) || Zn(t))
5087
+ if (delete t.location, ri(t) || ni(t))
5104
5088
  for (var r in t.options)
5105
- delete t.options[r].location, sr(t.options[r].value);
5106
- else Xn(t) && Qn(t.style) || (Wn(t) || qn(t)) && er(t.style) ? delete t.style.location : Yn(t) && sr(t.children);
5089
+ delete t.options[r].location, or(t.options[r].value);
5090
+ else Kn(t) && si(t.style) || (ei(t) || ti(t)) && rr(t.style) ? delete t.style.location : ii(t) && or(t.children);
5107
5091
  });
5108
5092
  }
5109
- function ja(e, t) {
5110
- t === void 0 && (t = {}), t = wt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
5111
- var r = new Ua(e, t).parse();
5093
+ function Xa(e, t) {
5094
+ t === void 0 && (t = {}), t = Nt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
5095
+ var r = new Fa(e, t).parse();
5112
5096
  if (r.err) {
5113
5097
  var n = SyntaxError(v[r.err.kind]);
5114
5098
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
5115
5099
  }
5116
- return t?.captureLocation || sr(r.val), r.val;
5100
+ return t?.captureLocation || or(r.val), r.val;
5117
5101
  }
5118
- var Fe;
5102
+ var Ge;
5119
5103
  (function(e) {
5120
5104
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
5121
- })(Fe || (Fe = {}));
5122
- var Rt = (
5105
+ })(Ge || (Ge = {}));
5106
+ var $t = (
5123
5107
  /** @class */
5124
5108
  function(e) {
5125
- It(t, e);
5109
+ Mt(t, e);
5126
5110
  function t(r, n, i) {
5127
5111
  var s = e.call(this, r) || this;
5128
5112
  return s.code = n, s.originalMessage = i, s;
@@ -5131,155 +5115,155 @@ var Rt = (
5131
5115
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
5132
5116
  }, t;
5133
5117
  }(Error)
5134
- ), Fr = (
5118
+ ), jr = (
5135
5119
  /** @class */
5136
5120
  function(e) {
5137
- It(t, e);
5121
+ Mt(t, e);
5138
5122
  function t(r, n, i, s) {
5139
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Fe.INVALID_VALUE, s) || this;
5123
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, s) || this;
5140
5124
  }
5141
5125
  return t;
5142
- }(Rt)
5143
- ), Va = (
5126
+ }($t)
5127
+ ), Wa = (
5144
5128
  /** @class */
5145
5129
  function(e) {
5146
- It(t, e);
5130
+ Mt(t, e);
5147
5131
  function t(r, n, i) {
5148
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Fe.INVALID_VALUE, i) || this;
5132
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ge.INVALID_VALUE, i) || this;
5149
5133
  }
5150
5134
  return t;
5151
- }(Rt)
5152
- ), Xa = (
5135
+ }($t)
5136
+ ), za = (
5153
5137
  /** @class */
5154
5138
  function(e) {
5155
- It(t, e);
5139
+ Mt(t, e);
5156
5140
  function t(r, n) {
5157
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Fe.MISSING_VALUE, n) || this;
5141
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ge.MISSING_VALUE, n) || this;
5158
5142
  }
5159
5143
  return t;
5160
- }(Rt)
5161
- ), C;
5144
+ }($t)
5145
+ ), R;
5162
5146
  (function(e) {
5163
5147
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
5164
- })(C || (C = {}));
5165
- function Wa(e) {
5148
+ })(R || (R = {}));
5149
+ function qa(e) {
5166
5150
  return e.length < 2 ? e : e.reduce(function(t, r) {
5167
5151
  var n = t[t.length - 1];
5168
- return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
5152
+ return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
5169
5153
  }, []);
5170
5154
  }
5171
- function qa(e) {
5155
+ function Za(e) {
5172
5156
  return typeof e == "function";
5173
5157
  }
5174
- function _t(e, t, r, n, i, s, a) {
5175
- if (e.length === 1 && Rr(e[0]))
5158
+ function Et(e, t, r, n, i, s, a) {
5159
+ if (e.length === 1 && Mr(e[0]))
5176
5160
  return [
5177
5161
  {
5178
- type: C.literal,
5162
+ type: R.literal,
5179
5163
  value: e[0].value
5180
5164
  }
5181
5165
  ];
5182
5166
  for (var o = [], u = 0, l = e; u < l.length; u++) {
5183
5167
  var f = l[u];
5184
- if (Rr(f)) {
5168
+ if (Mr(f)) {
5185
5169
  o.push({
5186
- type: C.literal,
5170
+ type: R.literal,
5187
5171
  value: f.value
5188
5172
  });
5189
5173
  continue;
5190
5174
  }
5191
- if (va(f)) {
5175
+ if (ma(f)) {
5192
5176
  typeof s == "number" && o.push({
5193
- type: C.literal,
5177
+ type: R.literal,
5194
5178
  value: r.getNumberFormat(t).format(s)
5195
5179
  });
5196
5180
  continue;
5197
5181
  }
5198
5182
  var c = f.value;
5199
5183
  if (!(i && c in i))
5200
- throw new Xa(c, a);
5184
+ throw new za(c, a);
5201
5185
  var h = i[c];
5202
- if (pa(f)) {
5186
+ if (_a(f)) {
5203
5187
  (!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), o.push({
5204
- type: typeof h == "string" ? C.literal : C.object,
5188
+ type: typeof h == "string" ? R.literal : R.object,
5205
5189
  value: h
5206
5190
  });
5207
5191
  continue;
5208
5192
  }
5209
- if (Wn(f)) {
5210
- var d = typeof f.style == "string" ? n.date[f.style] : er(f.style) ? f.style.parsedOptions : void 0;
5193
+ if (ei(f)) {
5194
+ var d = typeof f.style == "string" ? n.date[f.style] : rr(f.style) ? f.style.parsedOptions : void 0;
5211
5195
  o.push({
5212
- type: C.literal,
5196
+ type: R.literal,
5213
5197
  value: r.getDateTimeFormat(t, d).format(h)
5214
5198
  });
5215
5199
  continue;
5216
5200
  }
5217
- if (qn(f)) {
5218
- var d = typeof f.style == "string" ? n.time[f.style] : er(f.style) ? f.style.parsedOptions : n.time.medium;
5201
+ if (ti(f)) {
5202
+ var d = typeof f.style == "string" ? n.time[f.style] : rr(f.style) ? f.style.parsedOptions : n.time.medium;
5219
5203
  o.push({
5220
- type: C.literal,
5204
+ type: R.literal,
5221
5205
  value: r.getDateTimeFormat(t, d).format(h)
5222
5206
  });
5223
5207
  continue;
5224
5208
  }
5225
- if (Xn(f)) {
5226
- var d = typeof f.style == "string" ? n.number[f.style] : Qn(f.style) ? f.style.parsedOptions : void 0;
5209
+ if (Kn(f)) {
5210
+ var d = typeof f.style == "string" ? n.number[f.style] : si(f.style) ? f.style.parsedOptions : void 0;
5227
5211
  d && d.scale && (h = h * (d.scale || 1)), o.push({
5228
- type: C.literal,
5212
+ type: R.literal,
5229
5213
  value: r.getNumberFormat(t, d).format(h)
5230
5214
  });
5231
5215
  continue;
5232
5216
  }
5233
- if (Yn(f)) {
5234
- var p = f.children, b = f.value, E = i[b];
5235
- if (!qa(E))
5236
- throw new Va(b, "function", a);
5237
- var k = _t(p, t, r, n, i, s), w = E(k.map(function(T) {
5238
- return T.value;
5217
+ if (ii(f)) {
5218
+ var p = f.children, E = f.value, T = i[E];
5219
+ if (!Za(T))
5220
+ throw new Wa(E, "function", a);
5221
+ var J = Et(p, t, r, n, i, s), D = T(J.map(function(re) {
5222
+ return re.value;
5239
5223
  }));
5240
- Array.isArray(w) || (w = [w]), o.push.apply(o, w.map(function(T) {
5224
+ Array.isArray(D) || (D = [D]), o.push.apply(o, D.map(function(re) {
5241
5225
  return {
5242
- type: typeof T == "string" ? C.literal : C.object,
5243
- value: T
5226
+ type: typeof re == "string" ? R.literal : R.object,
5227
+ value: re
5244
5228
  };
5245
5229
  }));
5246
5230
  }
5247
- if (zn(f)) {
5248
- var O = f.options[h] || f.options.other;
5249
- if (!O)
5250
- throw new Fr(f.value, h, Object.keys(f.options), a);
5251
- o.push.apply(o, _t(O.value, t, r, n, i));
5231
+ if (ri(f)) {
5232
+ var F = f.options[h] || f.options.other;
5233
+ if (!F)
5234
+ throw new jr(f.value, h, Object.keys(f.options), a);
5235
+ o.push.apply(o, Et(F.value, t, r, n, i));
5252
5236
  continue;
5253
5237
  }
5254
- if (Zn(f)) {
5255
- var O = f.options["=".concat(h)];
5256
- if (!O) {
5238
+ if (ni(f)) {
5239
+ var F = f.options["=".concat(h)];
5240
+ if (!F) {
5257
5241
  if (!Intl.PluralRules)
5258
- throw new Rt(`Intl.PluralRules is not available in this environment.
5242
+ throw new $t(`Intl.PluralRules is not available in this environment.
5259
5243
  Try polyfilling it using "@formatjs/intl-pluralrules"
5260
- `, Fe.MISSING_INTL_API, a);
5261
- var J = r.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
5262
- O = f.options[J] || f.options.other;
5244
+ `, Ge.MISSING_INTL_API, a);
5245
+ var ge = r.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
5246
+ F = f.options[ge] || f.options.other;
5263
5247
  }
5264
- if (!O)
5265
- throw new Fr(f.value, h, Object.keys(f.options), a);
5266
- o.push.apply(o, _t(O.value, t, r, n, i, h - (f.offset || 0)));
5248
+ if (!F)
5249
+ throw new jr(f.value, h, Object.keys(f.options), a);
5250
+ o.push.apply(o, Et(F.value, t, r, n, i, h - (f.offset || 0)));
5267
5251
  continue;
5268
5252
  }
5269
5253
  }
5270
- return Wa(o);
5254
+ return qa(o);
5271
5255
  }
5272
- function za(e, t) {
5256
+ function Ya(e, t) {
5273
5257
  return t ? K(K(K({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
5274
5258
  return r[n] = K(K({}, e[n]), t[n] || {}), r;
5275
5259
  }, {})) : e;
5276
5260
  }
5277
- function Za(e, t) {
5261
+ function Qa(e, t) {
5278
5262
  return t ? Object.keys(e).reduce(function(r, n) {
5279
- return r[n] = za(e[n], t[n]), r;
5263
+ return r[n] = Ya(e[n], t[n]), r;
5280
5264
  }, K({}, e)) : e;
5281
5265
  }
5282
- function kt(e) {
5266
+ function Xt(e) {
5283
5267
  return {
5284
5268
  create: function() {
5285
5269
  return {
@@ -5293,39 +5277,39 @@ function kt(e) {
5293
5277
  }
5294
5278
  };
5295
5279
  }
5296
- function Ya(e) {
5280
+ function Ja(e) {
5297
5281
  return e === void 0 && (e = {
5298
5282
  number: {},
5299
5283
  dateTime: {},
5300
5284
  pluralRules: {}
5301
5285
  }), {
5302
- getNumberFormat: Dt(function() {
5286
+ getNumberFormat: Gt(function() {
5303
5287
  for (var t, r = [], n = 0; n < arguments.length; n++)
5304
5288
  r[n] = arguments[n];
5305
- return new ((t = Intl.NumberFormat).bind.apply(t, $t([void 0], r, !1)))();
5289
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ft([void 0], r, !1)))();
5306
5290
  }, {
5307
- cache: kt(e.number),
5308
- strategy: Ut.variadic
5291
+ cache: Xt(e.number),
5292
+ strategy: jt.variadic
5309
5293
  }),
5310
- getDateTimeFormat: Dt(function() {
5294
+ getDateTimeFormat: Gt(function() {
5311
5295
  for (var t, r = [], n = 0; n < arguments.length; n++)
5312
5296
  r[n] = arguments[n];
5313
- return new ((t = Intl.DateTimeFormat).bind.apply(t, $t([void 0], r, !1)))();
5297
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ft([void 0], r, !1)))();
5314
5298
  }, {
5315
- cache: kt(e.dateTime),
5316
- strategy: Ut.variadic
5299
+ cache: Xt(e.dateTime),
5300
+ strategy: jt.variadic
5317
5301
  }),
5318
- getPluralRules: Dt(function() {
5302
+ getPluralRules: Gt(function() {
5319
5303
  for (var t, r = [], n = 0; n < arguments.length; n++)
5320
5304
  r[n] = arguments[n];
5321
- return new ((t = Intl.PluralRules).bind.apply(t, $t([void 0], r, !1)))();
5305
+ return new ((t = Intl.PluralRules).bind.apply(t, Ft([void 0], r, !1)))();
5322
5306
  }, {
5323
- cache: kt(e.pluralRules),
5324
- strategy: Ut.variadic
5307
+ cache: Xt(e.pluralRules),
5308
+ strategy: jt.variadic
5325
5309
  })
5326
5310
  };
5327
5311
  }
5328
- var Qa = (
5312
+ var Ka = (
5329
5313
  /** @class */
5330
5314
  function() {
5331
5315
  function e(t, r, n, i) {
@@ -5340,11 +5324,11 @@ var Qa = (
5340
5324
  if (l.length === 1)
5341
5325
  return l[0].value;
5342
5326
  var f = l.reduce(function(c, h) {
5343
- return !c.length || h.type !== C.literal || typeof c[c.length - 1] != "string" ? c.push(h.value) : c[c.length - 1] += h.value, c;
5327
+ return !c.length || h.type !== R.literal || typeof c[c.length - 1] != "string" ? c.push(h.value) : c[c.length - 1] += h.value, c;
5344
5328
  }, []);
5345
5329
  return f.length <= 1 ? f[0] || "" : f;
5346
5330
  }, this.formatToParts = function(u) {
5347
- return _t(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
5331
+ return Et(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
5348
5332
  }, this.resolvedOptions = function() {
5349
5333
  var u;
5350
5334
  return {
@@ -5357,13 +5341,13 @@ var Qa = (
5357
5341
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
5358
5342
  var a = i || {};
5359
5343
  a.formatters;
5360
- var o = aa(a, ["formatters"]);
5344
+ var o = ua(a, ["formatters"]);
5361
5345
  this.ast = e.__parse(t, K(K({}, o), { locale: this.resolvedLocale }));
5362
5346
  } else
5363
5347
  this.ast = t;
5364
5348
  if (!Array.isArray(this.ast))
5365
5349
  throw new TypeError("A message must be provided as a String or AST.");
5366
- this.formats = Za(e.formats, n), this.formatters = i && i.formatters || Ya(this.formatterCache);
5350
+ this.formats = Qa(e.formats, n), this.formatters = i && i.formatters || Ja(this.formatterCache);
5367
5351
  }
5368
5352
  return Object.defineProperty(e, "defaultLocale", {
5369
5353
  get: function() {
@@ -5376,7 +5360,7 @@ var Qa = (
5376
5360
  var r = Intl.NumberFormat.supportedLocalesOf(t);
5377
5361
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
5378
5362
  }
5379
- }, e.__parse = ja, e.formats = {
5363
+ }, e.__parse = Xa, e.formats = {
5380
5364
  number: {
5381
5365
  integer: {
5382
5366
  maximumFractionDigits: 0
@@ -5437,7 +5421,7 @@ var Qa = (
5437
5421
  }, e;
5438
5422
  }()
5439
5423
  );
5440
- function Ja(e, t) {
5424
+ function eo(e, t) {
5441
5425
  if (t == null)
5442
5426
  return;
5443
5427
  if (t in e)
@@ -5458,92 +5442,92 @@ function Ja(e, t) {
5458
5442
  n = void 0;
5459
5443
  return n;
5460
5444
  }
5461
- const de = {}, Ka = (e, t, r) => r && (t in de || (de[t] = {}), e in de[t] || (de[t][e] = r), r), si = (e, t) => {
5445
+ const de = {}, to = (e, t, r) => r && (t in de || (de[t] = {}), e in de[t] || (de[t][e] = r), r), di = (e, t) => {
5462
5446
  if (t == null)
5463
5447
  return;
5464
5448
  if (t in de && e in de[t])
5465
5449
  return de[t][e];
5466
- const r = Ct(t);
5450
+ const r = kt(t);
5467
5451
  for (let n = 0; n < r.length; n++) {
5468
- const i = r[n], s = to(i, e);
5452
+ const i = r[n], s = no(i, e);
5469
5453
  if (s)
5470
- return Ka(e, t, s);
5454
+ return to(e, t, s);
5471
5455
  }
5472
5456
  };
5473
5457
  let Er;
5474
- const je = Nt({});
5475
- function eo(e) {
5458
+ const Xe = Lt({});
5459
+ function ro(e) {
5476
5460
  return Er[e] || null;
5477
5461
  }
5478
- function ai(e) {
5462
+ function pi(e) {
5479
5463
  return e in Er;
5480
5464
  }
5481
- function to(e, t) {
5482
- if (!ai(e))
5465
+ function no(e, t) {
5466
+ if (!pi(e))
5483
5467
  return null;
5484
- const r = eo(e);
5485
- return Ja(r, t);
5468
+ const r = ro(e);
5469
+ return eo(r, t);
5486
5470
  }
5487
- function ro(e) {
5471
+ function io(e) {
5488
5472
  if (e == null)
5489
5473
  return;
5490
- const t = Ct(e);
5474
+ const t = kt(e);
5491
5475
  for (let r = 0; r < t.length; r++) {
5492
5476
  const n = t[r];
5493
- if (ai(n))
5477
+ if (pi(n))
5494
5478
  return n;
5495
5479
  }
5496
5480
  }
5497
- function oi(e, ...t) {
5498
- delete de[e], je.update((r) => (r[e] = sa.all([r[e] || {}, ...t]), r));
5481
+ function vi(e, ...t) {
5482
+ delete de[e], Xe.update((r) => (r[e] = oa.all([r[e] || {}, ...t]), r));
5499
5483
  }
5500
- Ge(
5501
- [je],
5484
+ Ve(
5485
+ [Xe],
5502
5486
  ([e]) => Object.keys(e)
5503
5487
  );
5504
- je.subscribe((e) => Er = e);
5505
- const mt = {};
5506
- function no(e, t) {
5507
- mt[e].delete(t), mt[e].size === 0 && delete mt[e];
5488
+ Xe.subscribe((e) => Er = e);
5489
+ const xt = {};
5490
+ function so(e, t) {
5491
+ xt[e].delete(t), xt[e].size === 0 && delete xt[e];
5508
5492
  }
5509
- function ui(e) {
5510
- return mt[e];
5493
+ function _i(e) {
5494
+ return xt[e];
5511
5495
  }
5512
- function io(e) {
5513
- return Ct(e).map((t) => {
5514
- const r = ui(t);
5496
+ function ao(e) {
5497
+ return kt(e).map((t) => {
5498
+ const r = _i(t);
5515
5499
  return [t, r ? [...r] : []];
5516
5500
  }).filter(([, t]) => t.length > 0);
5517
5501
  }
5518
- function ar(e) {
5519
- return e == null ? !1 : Ct(e).some(
5502
+ function ur(e) {
5503
+ return e == null ? !1 : kt(e).some(
5520
5504
  (t) => {
5521
5505
  var r;
5522
- return (r = ui(t)) == null ? void 0 : r.size;
5506
+ return (r = _i(t)) == null ? void 0 : r.size;
5523
5507
  }
5524
5508
  );
5525
5509
  }
5526
- function so(e, t) {
5510
+ function oo(e, t) {
5527
5511
  return Promise.all(
5528
- t.map((n) => (no(e, n), n().then((i) => i.default || i)))
5529
- ).then((n) => oi(e, ...n));
5530
- }
5531
- const We = {};
5532
- function li(e) {
5533
- if (!ar(e))
5534
- return e in We ? We[e] : Promise.resolve();
5535
- const t = io(e);
5536
- return We[e] = Promise.all(
5512
+ t.map((n) => (so(e, n), n().then((i) => i.default || i)))
5513
+ ).then((n) => vi(e, ...n));
5514
+ }
5515
+ const Ze = {};
5516
+ function mi(e) {
5517
+ if (!ur(e))
5518
+ return e in Ze ? Ze[e] : Promise.resolve();
5519
+ const t = ao(e);
5520
+ return Ze[e] = Promise.all(
5537
5521
  t.map(
5538
- ([r, n]) => so(r, n)
5522
+ ([r, n]) => oo(r, n)
5539
5523
  )
5540
5524
  ).then(() => {
5541
- if (ar(e))
5542
- return li(e);
5543
- delete We[e];
5544
- }), We[e];
5525
+ if (ur(e))
5526
+ return mi(e);
5527
+ delete Ze[e];
5528
+ }), Ze[e];
5545
5529
  }
5546
- const ao = {
5530
+ const uo = {
5547
5531
  number: {
5548
5532
  scientific: { notation: "scientific" },
5549
5533
  engineering: { notation: "engineering" },
@@ -5572,150 +5556,150 @@ const ao = {
5572
5556
  timeZoneName: "short"
5573
5557
  }
5574
5558
  }
5575
- }, oo = {
5559
+ }, lo = {
5576
5560
  fallbackLocale: null,
5577
5561
  loadingDelay: 200,
5578
- formats: ao,
5562
+ formats: uo,
5579
5563
  warnOnMissingMessages: !0,
5580
5564
  handleMissingMessage: void 0,
5581
5565
  ignoreTag: !0
5582
- }, uo = oo;
5583
- function ke() {
5584
- return uo;
5566
+ }, fo = lo;
5567
+ function je() {
5568
+ return fo;
5585
5569
  }
5586
- const Gt = Nt(!1);
5587
- var lo = Object.defineProperty, fo = Object.defineProperties, ho = Object.getOwnPropertyDescriptors, kr = Object.getOwnPropertySymbols, co = Object.prototype.hasOwnProperty, po = Object.prototype.propertyIsEnumerable, Gr = (e, t, r) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vo = (e, t) => {
5570
+ const Wt = Lt(!1);
5571
+ var ho = Object.defineProperty, co = Object.defineProperties, po = Object.getOwnPropertyDescriptors, Vr = Object.getOwnPropertySymbols, vo = Object.prototype.hasOwnProperty, _o = Object.prototype.propertyIsEnumerable, Xr = (e, t, r) => t in e ? ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mo = (e, t) => {
5588
5572
  for (var r in t || (t = {}))
5589
- co.call(t, r) && Gr(e, r, t[r]);
5590
- if (kr)
5591
- for (var r of kr(t))
5592
- po.call(t, r) && Gr(e, r, t[r]);
5573
+ vo.call(t, r) && Xr(e, r, t[r]);
5574
+ if (Vr)
5575
+ for (var r of Vr(t))
5576
+ _o.call(t, r) && Xr(e, r, t[r]);
5593
5577
  return e;
5594
- }, _o = (e, t) => fo(e, ho(t));
5595
- let or;
5596
- const Tt = Nt(null);
5597
- function jr(e) {
5578
+ }, bo = (e, t) => co(e, po(t));
5579
+ let lr;
5580
+ const Ot = Lt(null);
5581
+ function Wr(e) {
5598
5582
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
5599
5583
  }
5600
- function Ct(e, t = ke().fallbackLocale) {
5601
- const r = jr(e);
5602
- return t ? [.../* @__PURE__ */ new Set([...r, ...jr(t)])] : r;
5584
+ function kt(e, t = je().fallbackLocale) {
5585
+ const r = Wr(e);
5586
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Wr(t)])] : r;
5603
5587
  }
5604
- function He() {
5605
- return or ?? void 0;
5588
+ function Ne() {
5589
+ return lr ?? void 0;
5606
5590
  }
5607
- Tt.subscribe((e) => {
5608
- or = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
5591
+ Ot.subscribe((e) => {
5592
+ lr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
5609
5593
  });
5610
- const mo = (e) => {
5611
- if (e && ro(e) && ar(e)) {
5612
- const { loadingDelay: t } = ke();
5594
+ const go = (e) => {
5595
+ if (e && io(e) && ur(e)) {
5596
+ const { loadingDelay: t } = je();
5613
5597
  let r;
5614
- return typeof window < "u" && He() != null && t ? r = window.setTimeout(
5615
- () => Gt.set(!0),
5598
+ return typeof window < "u" && Ne() != null && t ? r = window.setTimeout(
5599
+ () => Wt.set(!0),
5616
5600
  t
5617
- ) : Gt.set(!0), li(e).then(() => {
5618
- Tt.set(e);
5601
+ ) : Wt.set(!0), mi(e).then(() => {
5602
+ Ot.set(e);
5619
5603
  }).finally(() => {
5620
- clearTimeout(r), Gt.set(!1);
5604
+ clearTimeout(r), Wt.set(!1);
5621
5605
  });
5622
5606
  }
5623
- return Tt.set(e);
5624
- }, Se = _o(vo({}, Tt), {
5625
- set: mo
5626
- }), Lt = (e) => {
5607
+ return Ot.set(e);
5608
+ }, Ae = bo(mo({}, Ot), {
5609
+ set: go
5610
+ }), Dt = (e) => {
5627
5611
  const t = /* @__PURE__ */ Object.create(null);
5628
5612
  return (n) => {
5629
5613
  const i = JSON.stringify(n);
5630
5614
  return i in t ? t[i] : t[i] = e(n);
5631
5615
  };
5632
5616
  };
5633
- var bo = Object.defineProperty, St = Object.getOwnPropertySymbols, fi = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, Vr = (e, t, r) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xr = (e, t) => {
5617
+ var yo = Object.defineProperty, Pt = Object.getOwnPropertySymbols, bi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, zr = (e, t, r) => t in e ? yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xr = (e, t) => {
5634
5618
  for (var r in t || (t = {}))
5635
- fi.call(t, r) && Vr(e, r, t[r]);
5636
- if (St)
5637
- for (var r of St(t))
5638
- hi.call(t, r) && Vr(e, r, t[r]);
5619
+ bi.call(t, r) && zr(e, r, t[r]);
5620
+ if (Pt)
5621
+ for (var r of Pt(t))
5622
+ gi.call(t, r) && zr(e, r, t[r]);
5639
5623
  return e;
5640
- }, Ve = (e, t) => {
5624
+ }, We = (e, t) => {
5641
5625
  var r = {};
5642
5626
  for (var n in e)
5643
- fi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
5644
- if (e != null && St)
5645
- for (var n of St(e))
5646
- t.indexOf(n) < 0 && hi.call(e, n) && (r[n] = e[n]);
5627
+ bi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
5628
+ if (e != null && Pt)
5629
+ for (var n of Pt(e))
5630
+ t.indexOf(n) < 0 && gi.call(e, n) && (r[n] = e[n]);
5647
5631
  return r;
5648
5632
  };
5649
- const tt = (e, t) => {
5650
- const { formats: r } = ke();
5633
+ const ot = (e, t) => {
5634
+ const { formats: r } = je();
5651
5635
  if (e in r && t in r[e])
5652
5636
  return r[e][t];
5653
5637
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
5654
- }, go = Lt(
5638
+ }, Eo = Dt(
5655
5639
  (e) => {
5656
- var t = e, { locale: r, format: n } = t, i = Ve(t, ["locale", "format"]);
5640
+ var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
5657
5641
  if (r == null)
5658
5642
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
5659
- return n && (i = tt("number", n)), new Intl.NumberFormat(r, i);
5643
+ return n && (i = ot("number", n)), new Intl.NumberFormat(r, i);
5660
5644
  }
5661
- ), yo = Lt(
5645
+ ), xo = Dt(
5662
5646
  (e) => {
5663
- var t = e, { locale: r, format: n } = t, i = Ve(t, ["locale", "format"]);
5647
+ var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
5664
5648
  if (r == null)
5665
5649
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
5666
- return n ? i = tt("date", n) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(r, i);
5650
+ return n ? i = ot("date", n) : Object.keys(i).length === 0 && (i = ot("date", "short")), new Intl.DateTimeFormat(r, i);
5667
5651
  }
5668
- ), Eo = Lt(
5652
+ ), wo = Dt(
5669
5653
  (e) => {
5670
- var t = e, { locale: r, format: n } = t, i = Ve(t, ["locale", "format"]);
5654
+ var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
5671
5655
  if (r == null)
5672
5656
  throw new Error(
5673
5657
  '[svelte-i18n] A "locale" must be set to format time values'
5674
5658
  );
5675
- return n ? i = tt("time", n) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(r, i);
5659
+ return n ? i = ot("time", n) : Object.keys(i).length === 0 && (i = ot("time", "short")), new Intl.DateTimeFormat(r, i);
5676
5660
  }
5677
- ), xo = (e = {}) => {
5661
+ ), To = (e = {}) => {
5678
5662
  var t = e, {
5679
- locale: r = He()
5680
- } = t, n = Ve(t, [
5663
+ locale: r = Ne()
5664
+ } = t, n = We(t, [
5681
5665
  "locale"
5682
5666
  ]);
5683
- return go(xr({ locale: r }, n));
5684
- }, wo = (e = {}) => {
5667
+ return Eo(xr({ locale: r }, n));
5668
+ }, So = (e = {}) => {
5685
5669
  var t = e, {
5686
- locale: r = He()
5687
- } = t, n = Ve(t, [
5670
+ locale: r = Ne()
5671
+ } = t, n = We(t, [
5688
5672
  "locale"
5689
5673
  ]);
5690
- return yo(xr({ locale: r }, n));
5691
- }, To = (e = {}) => {
5674
+ return xo(xr({ locale: r }, n));
5675
+ }, Ho = (e = {}) => {
5692
5676
  var t = e, {
5693
- locale: r = He()
5694
- } = t, n = Ve(t, [
5677
+ locale: r = Ne()
5678
+ } = t, n = We(t, [
5695
5679
  "locale"
5696
5680
  ]);
5697
- return Eo(xr({ locale: r }, n));
5698
- }, So = Lt(
5681
+ return wo(xr({ locale: r }, n));
5682
+ }, Ao = Dt(
5699
5683
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
5700
- (e, t = He()) => new Qa(e, t, ke().formats, {
5701
- ignoreTag: ke().ignoreTag
5684
+ (e, t = Ne()) => new Ka(e, t, je().formats, {
5685
+ ignoreTag: je().ignoreTag
5702
5686
  })
5703
- ), Ao = (e, t = {}) => {
5687
+ ), Bo = (e, t = {}) => {
5704
5688
  var r, n, i, s;
5705
5689
  let a = t;
5706
5690
  typeof e == "object" && (a = e, e = a.id);
5707
5691
  const {
5708
5692
  values: o,
5709
- locale: u = He(),
5693
+ locale: u = Ne(),
5710
5694
  default: l
5711
5695
  } = a;
5712
5696
  if (u == null)
5713
5697
  throw new Error(
5714
5698
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
5715
5699
  );
5716
- let f = si(e, u);
5700
+ let f = di(e, u);
5717
5701
  if (!f)
5718
- f = (s = (i = (n = (r = ke()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
5702
+ f = (s = (i = (n = (r = je()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
5719
5703
  else if (typeof f != "string")
5720
5704
  return console.warn(
5721
5705
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -5724,7 +5708,7 @@ const tt = (e, t) => {
5724
5708
  return f;
5725
5709
  let c = f;
5726
5710
  try {
5727
- c = So(f, u).format(o);
5711
+ c = Ao(f, u).format(o);
5728
5712
  } catch (h) {
5729
5713
  h instanceof Error && console.warn(
5730
5714
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -5732,135 +5716,194 @@ const tt = (e, t) => {
5732
5716
  );
5733
5717
  }
5734
5718
  return c;
5735
- }, Ho = (e, t) => To(t).format(e), Bo = (e, t) => wo(t).format(e), Po = (e, t) => xo(t).format(e), Oo = (e, t = He()) => si(e, t), No = Ge([Se, je], () => Ao);
5736
- Ge([Se], () => Ho);
5737
- Ge([Se], () => Bo);
5738
- Ge([Se], () => Po);
5739
- Ge([Se, je], () => Oo);
5740
- function Io({ withLocale: e, translations: t }) {
5741
- Se.subscribe((r) => {
5742
- r == null && (je.set(t), Se.set(e));
5719
+ }, No = (e, t) => Ho(t).format(e), Oo = (e, t) => So(t).format(e), Po = (e, t) => To(t).format(e), Co = (e, t = Ne()) => di(e, t), Io = Ve([Ae, Xe], () => Bo);
5720
+ Ve([Ae], () => No);
5721
+ Ve([Ae], () => Oo);
5722
+ Ve([Ae], () => Po);
5723
+ Ve([Ae, Xe], () => Co);
5724
+ function Ro({ withLocale: e, translations: t }) {
5725
+ Ae.subscribe((r) => {
5726
+ r == null && (Xe.set(t), Ae.set(e));
5743
5727
  });
5744
5728
  }
5745
- function Ro(e, t) {
5746
- oi(e, t);
5729
+ function qr(e, t) {
5730
+ vi(e, t);
5747
5731
  }
5748
- const Co = {
5732
+ const Lo = {
5749
5733
  en: {
5750
5734
  requestRackBack: "Request Rackeback"
5751
5735
  },
5752
5736
  tr: {
5753
5737
  requestRackBack: "Request Rackeback"
5754
5738
  }
5755
- }, Lo = "RakebackClaimConfirmed";
5756
- var Mo = /* @__PURE__ */ gs('<div class="loyalty-rakeback-card svelte-1jfnm2j"><div class="loyalty-rakeback-card__content svelte-1jfnm2j"><span class="loyalty-rakeback-card__amount svelte-1jfnm2j"> </span> <button class="loyalty-rakeback-card__button svelte-1jfnm2j" type="button"> </button></div></div>');
5757
- function $o(e, t) {
5758
- dr(t, !0);
5759
- const r = () => Ps(No, "$_", n), [n, i] = Os(), s = Re(t, "apiEndpoint", 3, ""), a = Re(t, "userSession", 3, ""), o = Re(t, "locale", 3, "");
5760
- Io({ withLocale: o(), translations: {} }), Object.entries(Co).forEach(([T, G]) => {
5761
- Ro(T, G);
5739
+ }, Mo = "RakebackClaimConfirmed";
5740
+ var $o = /* @__PURE__ */ Xn('<div class="loyalty-rakeback-card svelte-7aljj5"><div class="loyalty-rakeback-card__content svelte-7aljj5"><span class="loyalty-rakeback-card__amount svelte-7aljj5"> </span> <button class="loyalty-rakeback-card__button svelte-7aljj5" type="button"> </button></div></div>'), ko = /* @__PURE__ */ Xn('<div class="loyalty-rakeback-card svelte-7aljj5" aria-busy="true"><div class="loyalty-rakeback-card__content loyalty-rakeback-card__content--skeleton svelte-7aljj5"><span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--amount svelte-7aljj5"></span> <span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--button svelte-7aljj5"></span></div></div>');
5741
+ const Do = {
5742
+ hash: "svelte-7aljj5",
5743
+ code: `.loyalty-rakeback-card.svelte-7aljj5 {padding:14px 16px;display:inline-flex;flex-direction:column;background-color:var(--app-container-bg-default, #022652);border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));width:100%;box-sizing:border-box;}.loyalty-rakeback-card__content.svelte-7aljj5 {display:flex;align-items:baseline;gap:8px;justify-content:space-between;}.loyalty-rakeback-card__amount.svelte-7aljj5 {color:var(--text-default, #ffffff);font-size:16px;font-weight:700;line-height:140%;}.loyalty-rakeback-card__button.svelte-7aljj5 {height:37px;border-radius:6px;border-width:1px;padding:10px 16px;cursor:pointer;background:var(--button-secondary-bg-default, rgba(251, 251, 251, 0.1));border:solid 1px var(--button-secondary-border-default, rgba(251, 251, 251, 0.05));font-size:12px;font-weight:700;color:var(--button-secondary-text-default, #ffffff);}.loyalty-rakeback-card__button.svelte-7aljj5:disabled {opacity:0.4;cursor:default;}.loyalty-rakeback-skeleton.svelte-7aljj5 {display:block;border-radius:4px;background:linear-gradient(
5744
+ 90deg,
5745
+ var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 0%,
5746
+ color-mix(in srgb, var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 80%, white) 50%,
5747
+ var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 100%
5748
+ );background-size:400% 100%;
5749
+ animation: svelte-7aljj5-loyalty-rakeback-shimmer 1.4s ease infinite;}.loyalty-rakeback-card__content--skeleton.svelte-7aljj5 {align-items:center;}.loyalty-rakeback-skeleton--amount.svelte-7aljj5 {width:120px;height:22px;}.loyalty-rakeback-skeleton--button.svelte-7aljj5 {width:110px;height:37px;border-radius:6px;}
5750
+
5751
+ @keyframes svelte-7aljj5-loyalty-rakeback-shimmer {
5752
+ 0% {
5753
+ background-position: 100% 50%;
5754
+ }
5755
+ 100% {
5756
+ background-position: 0 50%;
5757
+ }
5758
+ }
5759
+
5760
+ @media (prefers-reduced-motion: reduce) {.loyalty-rakeback-skeleton.svelte-7aljj5 {
5761
+ animation: none;}
5762
+ }`
5763
+ };
5764
+ function Uo(e, t) {
5765
+ an(t, !0), Ns(e, Do);
5766
+ const r = () => Cs(Io, "$_", n), [n, i] = Is(), s = bt(t, "apiEndpoint", 7, ""), a = bt(t, "userSession", 7, ""), o = bt(t, "locale", 7, ""), u = bt(t, "translationUrl");
5767
+ Ro({ withLocale: o(), translations: {} }), Object.entries(Lo).forEach(([y, N]) => {
5768
+ qr(y, N);
5762
5769
  });
5763
- let u = /* @__PURE__ */ q(void 0), l = /* @__PURE__ */ q(!1), f = /* @__PURE__ */ q(!1);
5764
- const c = /* @__PURE__ */ ut(() => y(u) ? Ds(y(u).total.points <= 0 ? 0 : y(u).total.points, 2) : "0.00"), h = /* @__PURE__ */ ut(() => Us(y(u)?.currency ?? "", o())), d = /* @__PURE__ */ ut(() => !!y(u)?.claimable), p = /* @__PURE__ */ ut(() => y(l)), b = async () => {
5765
- if (!(!s() || !a()))
5770
+ const l = () => {
5771
+ let y = new URL(u(), window.location.href);
5772
+ fetch(y.href).then((N) => N.json()).then((N) => {
5773
+ Object.keys(N).forEach((Ee) => {
5774
+ qr(Ee, N[Ee]);
5775
+ });
5776
+ }).catch((N) => {
5777
+ console.log("loyalty rakeback translation url err:", N);
5778
+ });
5779
+ };
5780
+ hs(() => {
5781
+ u() && l();
5782
+ });
5783
+ let f = /* @__PURE__ */ j(void 0), c = /* @__PURE__ */ j(!1), h = /* @__PURE__ */ j(!1), d = /* @__PURE__ */ j(!1);
5784
+ const p = /* @__PURE__ */ vt(() => g(f) ? Us(g(f).total.points <= 0 ? 0 : g(f).total.points, 2) : "0.00"), E = /* @__PURE__ */ vt(() => Fs(g(f)?.currency ?? "", o())), T = /* @__PURE__ */ vt(() => !!g(f)?.claimable), J = /* @__PURE__ */ vt(() => g(c)), D = async () => {
5785
+ if (!(!s() || !a())) {
5786
+ P(d, !0);
5766
5787
  try {
5767
- const T = await Ms({
5788
+ const y = await ks({
5768
5789
  apiEndpoint: s(),
5769
5790
  userSession: a(),
5770
5791
  locale: o()
5771
5792
  });
5772
- if (!T.rakebackWallet) {
5773
- L(l, !1), js();
5793
+ if (!y.rakebackWallet) {
5794
+ P(c, !1), Xs();
5774
5795
  return;
5775
5796
  }
5776
- L(u, T.rakebackWallet, !0), L(l, !0);
5777
- } catch (T) {
5778
- console.error("Failed to load rakeback info:", T);
5797
+ P(f, y.rakebackWallet, !0), P(c, !0);
5798
+ } catch (y) {
5799
+ console.error("Failed to load rakeback info:", y);
5800
+ } finally {
5801
+ P(d, !1);
5779
5802
  }
5780
- }, E = () => {
5781
- !y(d) || y(f) || !y(u) || Fs(y(u).total.points);
5782
- }, k = async () => {
5783
- if (!(!s() || !a() || !y(u))) {
5784
- L(f, !0);
5803
+ }
5804
+ }, F = () => {
5805
+ !g(T) || g(h) || !g(f) || Gs(g(f).total.points);
5806
+ }, ge = async () => {
5807
+ if (!(!s() || !a() || !g(f))) {
5808
+ P(h, !0);
5785
5809
  try {
5786
- await $s({
5810
+ await Ds({
5787
5811
  apiEndpoint: s(),
5788
5812
  userSession: a(),
5789
5813
  locale: o()
5790
- }), await b(), ks(y(u).total.points);
5791
- } catch (T) {
5792
- console.error("Claim rakeback: ", T), Gs(T.message);
5814
+ }), await D(), js(g(f).total.points);
5815
+ } catch (y) {
5816
+ console.error("Claim rakeback: ", y), Vs(y.message);
5793
5817
  } finally {
5794
- L(f, !1);
5818
+ P(h, !1);
5795
5819
  }
5796
5820
  }
5797
5821
  };
5798
- Hr(() => {
5799
- s(), a(), o(), b();
5800
- }), Hr(() => {
5801
- const T = (G) => {
5802
- G.data?.type === Lo && k();
5822
+ Br(() => {
5823
+ s(), a(), o(), D();
5824
+ }), Br(() => {
5825
+ const y = (N) => {
5826
+ N.data?.type === Mo && ge();
5803
5827
  };
5804
- return window.addEventListener("message", T), () => window.removeEventListener("message", T);
5828
+ return window.addEventListener("message", y), () => window.removeEventListener("message", y);
5805
5829
  });
5806
- var w = ys(), O = rs(w);
5807
- {
5808
- var J = (T) => {
5809
- var G = Mo(), Xe = lt(G), Mt = lt(Xe), ci = lt(Mt);
5810
- at(Mt);
5811
- var st = ns(Mt, 2);
5812
- st.__click = E;
5813
- var di = lt(st, !0);
5814
- at(st), at(Xe), at(G), hs(
5815
- (pi) => {
5816
- Nr(ci, `${y(c) ?? ""} ${y(h) ?? ""}`), st.disabled = y(f) || !y(d), Nr(di, pi);
5817
- },
5818
- [() => r()("requestRackBack")]
5819
- ), Yt(T, G);
5820
- };
5821
- As(O, (T) => {
5822
- y(p) && T(J);
5823
- });
5824
- }
5825
- Yt(e, w), pr(), i();
5826
- }
5827
- ms(["click"]);
5828
- function Do(e, t) {
5829
- dr(t, !0);
5830
- const r = Re(t, "apiEndpoint", 7), n = Re(t, "userSession", 7), i = Re(t, "locale", 7);
5831
- var s = {
5830
+ var re = {
5832
5831
  get apiEndpoint() {
5833
- return r();
5832
+ return s();
5834
5833
  },
5835
- set apiEndpoint(a) {
5836
- r(a), pt();
5834
+ set apiEndpoint(y = "") {
5835
+ s(y), Ye();
5837
5836
  },
5838
5837
  get userSession() {
5839
- return n();
5838
+ return a();
5840
5839
  },
5841
- set userSession(a) {
5842
- n(a), pt();
5840
+ set userSession(y = "") {
5841
+ a(y), Ye();
5843
5842
  },
5844
5843
  get locale() {
5845
- return i();
5844
+ return o();
5846
5845
  },
5847
- set locale(a) {
5848
- i(a), pt();
5849
- }
5850
- };
5851
- return $o(e, {
5852
- get apiEndpoint() {
5853
- return r();
5846
+ set locale(y = "") {
5847
+ o(y), Ye();
5854
5848
  },
5855
- get userSession() {
5856
- return n();
5849
+ get translationUrl() {
5850
+ return u();
5857
5851
  },
5858
- get locale() {
5859
- return i();
5852
+ set translationUrl(y) {
5853
+ u(y), Ye();
5860
5854
  }
5861
- }), pr(s);
5855
+ }, ye = Cr(), ct = Ar(ye);
5856
+ {
5857
+ var yi = (y) => {
5858
+ var N = $o(), Ee = _t(N), ze = _t(Ee), qe = _t(ze);
5859
+ dt(ze);
5860
+ var Oe = os(ze, 2);
5861
+ Oe.__click = F;
5862
+ var wi = _t(Oe, !0);
5863
+ dt(Oe), dt(Ee), dt(N), _s(
5864
+ (Ti) => {
5865
+ Ir(qe, `${g(p) ?? ""} ${g(E) ?? ""}`), Oe.disabled = g(h) || !g(T), Ir(wi, Ti);
5866
+ },
5867
+ [() => r()("requestRackBack")]
5868
+ ), Je(y, N);
5869
+ }, Ei = (y) => {
5870
+ var N = Cr(), Ee = Ar(N);
5871
+ {
5872
+ var ze = (qe) => {
5873
+ var Oe = ko();
5874
+ Je(qe, Oe);
5875
+ };
5876
+ Rr(
5877
+ Ee,
5878
+ (qe) => {
5879
+ g(d) && qe(ze);
5880
+ },
5881
+ !0
5882
+ );
5883
+ }
5884
+ Je(y, N);
5885
+ };
5886
+ Rr(ct, (y) => {
5887
+ g(J) ? y(yi) : y(Ei, !1);
5888
+ });
5889
+ }
5890
+ Je(e, ye);
5891
+ var xi = on(re);
5892
+ return i(), xi;
5862
5893
  }
5863
- customElements.define("loyalty-rakeback", Ls(Do, { apiEndpoint: {}, userSession: {}, locale: {} }, [], [], !1));
5894
+ xs(["click"]);
5895
+ customElements.define("loyalty-rakeback", $s(
5896
+ Uo,
5897
+ {
5898
+ apiEndpoint: {},
5899
+ userSession: {},
5900
+ locale: {},
5901
+ translationUrl: {}
5902
+ },
5903
+ [],
5904
+ [],
5905
+ !1
5906
+ ));
5864
5907
  export {
5865
- Do as L
5908
+ Uo as L
5866
5909
  };