@everymatrix/loyalty-rakeback 0.1.5 → 0.1.7

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,190 +1,185 @@
1
- const di = "5";
2
- typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(di);
3
- let wt = !1, pi = !1;
4
- function vi() {
5
- wt = !0;
6
- }
7
- vi();
8
- const _i = 2, Gr = "[", or = "[!", jr = "]", Ie = {}, N = Symbol(), Gt = !1;
9
- var mi = Array.isArray, bi = Array.prototype.indexOf, gi = Array.from, vt = Object.keys, Ze = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, yi = Object.prototype, Ei = Array.prototype, xi = Object.getPrototypeOf, yr = Object.isExtensible;
10
- const ce = () => {
1
+ const pi = "5";
2
+ typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(pi);
3
+ const vi = 2, jr = "[", or = "[!", Vr = "]", Re = {}, N = Symbol(), jt = !1;
4
+ var _i = Array.isArray, mi = Array.prototype.indexOf, bi = Array.from, _t = Object.keys, Ye = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, gi = Object.prototype, yi = Array.prototype, Ei = Object.getPrototypeOf, Er = Object.isExtensible;
5
+ const de = () => {
11
6
  };
12
- function Vr(e) {
7
+ function Xr(e) {
13
8
  for (var t = 0; t < e.length; t++)
14
9
  e[t]();
15
10
  }
16
- function Xr() {
11
+ function Wr() {
17
12
  var e, t, r = new Promise((n, i) => {
18
13
  e = n, t = i;
19
14
  });
20
15
  return { promise: r, resolve: e, reject: t };
21
16
  }
22
- const P = 2, jt = 4, Tt = 8, Wr = 1 << 24, ae = 16, oe = 32, _e = 64, ur = 128, X = 512, I = 1024, R = 2048, ue = 4096, K = 8192, de = 16384, St = 32768, Ce = 65536, Er = 1 << 17, qr = 1 << 18, Se = 1 << 19, wi = 1 << 20, xe = 32768, Vt = 1 << 21, lr = 1 << 22, pe = 1 << 23, Rt = Symbol("$state"), Ti = Symbol("legacy props"), Ne = new class extends Error {
17
+ const O = 2, mt = 4, St = 8, qr = 1 << 24, ue = 16, le = 32, me = 64, ur = 128, j = 512, P = 1024, R = 2048, fe = 4096, J = 8192, ie = 16384, Ht = 32768, Le = 65536, xr = 1 << 17, zr = 1 << 18, He = 1 << 19, xi = 1 << 20, Te = 32768, Vt = 1 << 21, lr = 1 << 22, pe = 1 << 23, Lt = Symbol("$state"), wi = Symbol("legacy props"), Pe = new class extends Error {
23
18
  name = "StaleReactionError";
24
19
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
25
- }(), fr = 3, tt = 8;
26
- function Si() {
20
+ }(), fr = 3, rt = 8;
21
+ function Ti() {
27
22
  throw new Error("https://svelte.dev/e/async_derived_orphan");
28
23
  }
29
- function Hi(e) {
24
+ function Si(e) {
30
25
  throw new Error("https://svelte.dev/e/effect_in_teardown");
31
26
  }
32
- function Ai() {
27
+ function Hi() {
33
28
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
34
29
  }
35
- function Bi(e) {
30
+ function Ai(e) {
36
31
  throw new Error("https://svelte.dev/e/effect_orphan");
37
32
  }
38
- function Ni() {
33
+ function Bi() {
39
34
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
40
35
  }
41
- function Oi() {
36
+ function Ni() {
42
37
  throw new Error("https://svelte.dev/e/hydration_failed");
43
38
  }
44
- function Pi() {
39
+ function Oi() {
45
40
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
46
41
  }
47
- function Ii() {
42
+ function Pi() {
48
43
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
49
44
  }
50
45
  function Ci() {
51
46
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
52
47
  }
53
- function Ri() {
48
+ function Ii() {
54
49
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
55
50
  }
56
- function Ht(e) {
51
+ function At(e) {
57
52
  console.warn("https://svelte.dev/e/hydration_mismatch");
58
53
  }
59
- function Li() {
54
+ function Ri() {
60
55
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
61
56
  }
62
57
  let A = !1;
63
- function Oe(e) {
58
+ function Ce(e) {
64
59
  A = e;
65
60
  }
66
61
  let E;
67
- function Y(e) {
62
+ function Z(e) {
68
63
  if (e === null)
69
- throw Ht(), Ie;
64
+ throw At(), Re;
70
65
  return E = e;
71
66
  }
72
67
  function hr() {
73
- return Y(/* @__PURE__ */ le(E));
68
+ return Z(/* @__PURE__ */ he(E));
74
69
  }
75
70
  function at(e) {
76
71
  if (A) {
77
- if (/* @__PURE__ */ le(E) !== null)
78
- throw Ht(), Ie;
72
+ if (/* @__PURE__ */ he(E) !== null)
73
+ throw At(), Re;
79
74
  E = e;
80
75
  }
81
76
  }
82
- function Mi(e = 1) {
77
+ function Li(e = 1) {
83
78
  if (A) {
84
79
  for (var t = e, r = E; t--; )
85
80
  r = /** @type {TemplateNode} */
86
- /* @__PURE__ */ le(r);
81
+ /* @__PURE__ */ he(r);
87
82
  E = r;
88
83
  }
89
84
  }
90
- function zr(e = !0) {
85
+ function Zr(e = !0) {
91
86
  for (var t = 0, r = E; ; ) {
92
- if (r.nodeType === tt) {
87
+ if (r.nodeType === rt) {
93
88
  var n = (
94
89
  /** @type {Comment} */
95
90
  r.data
96
91
  );
97
- if (n === jr) {
92
+ if (n === Vr) {
98
93
  if (t === 0) return r;
99
94
  t -= 1;
100
- } else (n === Gr || n === or) && (t += 1);
95
+ } else (n === jr || n === or) && (t += 1);
101
96
  }
102
97
  var i = (
103
98
  /** @type {TemplateNode} */
104
- /* @__PURE__ */ le(r)
99
+ /* @__PURE__ */ he(r)
105
100
  );
106
101
  e && r.remove(), r = i;
107
102
  }
108
103
  }
109
- function $i(e) {
110
- if (!e || e.nodeType !== tt)
111
- throw Ht(), Ie;
104
+ function Mi(e) {
105
+ if (!e || e.nodeType !== rt)
106
+ throw At(), Re;
112
107
  return (
113
108
  /** @type {Comment} */
114
109
  e.data
115
110
  );
116
111
  }
117
- function Zr(e) {
112
+ function Yr(e) {
118
113
  return e === this.v;
119
114
  }
120
- function Yr(e, t) {
115
+ function Qr(e, t) {
121
116
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
122
117
  }
123
- function Qr(e) {
124
- return !Yr(e, this.v);
118
+ function $i(e) {
119
+ return !Qr(e, this.v);
125
120
  }
126
- let O = null;
127
- function Re(e) {
128
- O = e;
121
+ let Di = !1, V = null;
122
+ function Me(e) {
123
+ V = e;
129
124
  }
130
125
  function Jr(e, t = !1, r) {
131
- O = {
132
- p: O,
126
+ V = {
127
+ p: V,
133
128
  i: !1,
134
129
  c: null,
135
130
  e: null,
136
131
  s: e,
137
132
  x: null,
138
- l: wt && !t ? { s: null, u: null, $: [] } : null
133
+ l: null
139
134
  };
140
135
  }
141
136
  function Kr(e) {
142
137
  var t = (
143
138
  /** @type {ComponentContext} */
144
- O
139
+ V
145
140
  ), r = t.e;
146
141
  if (r !== null) {
147
142
  t.e = null;
148
143
  for (var n of r)
149
- bn(n);
144
+ gn(n);
150
145
  }
151
- return t.i = !0, O = t.p, /** @type {T} */
146
+ return e !== void 0 && (t.x = e), t.i = !0, V = t.p, e ?? /** @type {T} */
152
147
  {};
153
148
  }
154
- function rt() {
155
- return !wt || O !== null && O.l === null;
156
- }
157
- let be = [];
158
149
  function en() {
159
- var e = be;
160
- be = [], Vr(e);
150
+ return !0;
151
+ }
152
+ let ye = [];
153
+ function tn() {
154
+ var e = ye;
155
+ ye = [], Xr(e);
161
156
  }
162
157
  function cr(e) {
163
- if (be.length === 0 && !We) {
164
- var t = be;
158
+ if (ye.length === 0 && !qe) {
159
+ var t = ye;
165
160
  queueMicrotask(() => {
166
- t === be && en();
161
+ t === ye && tn();
167
162
  });
168
163
  }
169
- be.push(e);
164
+ ye.push(e);
170
165
  }
171
- function Di() {
172
- for (; be.length > 0; )
173
- en();
166
+ function Fi() {
167
+ for (; ye.length > 0; )
168
+ tn();
174
169
  }
175
- function tn(e) {
170
+ function rn(e) {
176
171
  var t = b;
177
172
  if (t === null)
178
173
  return _.f |= pe, e;
179
- if (t.f & St)
180
- Le(e, t);
174
+ if (t.f & Ht)
175
+ $e(e, t);
181
176
  else {
182
177
  if (!(t.f & ur))
183
178
  throw e;
184
179
  t.b.error(e);
185
180
  }
186
181
  }
187
- function Le(e, t) {
182
+ function $e(e, t) {
188
183
  for (; t !== null; ) {
189
184
  if (t.f & ur)
190
185
  try {
@@ -197,27 +192,27 @@ function Le(e, t) {
197
192
  }
198
193
  throw e;
199
194
  }
200
- const Ui = -7169;
195
+ const ki = -7169;
201
196
  function B(e, t) {
202
- e.f = e.f & Ui | t;
197
+ e.f = e.f & ki | t;
203
198
  }
204
199
  function dr(e) {
205
- e.f & X || e.deps === null ? B(e, I) : B(e, ue);
200
+ e.f & j || e.deps === null ? B(e, P) : B(e, fe);
206
201
  }
207
- function rn(e) {
202
+ function nn(e) {
208
203
  if (e !== null)
209
204
  for (const t of e)
210
- !(t.f & P) || !(t.f & xe) || (t.f ^= xe, rn(
205
+ !(t.f & O) || !(t.f & Te) || (t.f ^= Te, nn(
211
206
  /** @type {Derived} */
212
207
  t.deps
213
208
  ));
214
209
  }
215
- function nn(e, t, r) {
216
- e.f & R ? t.add(e) : e.f & ue && r.add(e), rn(e.deps), B(e, I);
210
+ function sn(e, t, r) {
211
+ e.f & R ? t.add(e) : e.f & fe && r.add(e), nn(e.deps), B(e, P);
217
212
  }
218
213
  const ot = /* @__PURE__ */ new Set();
219
- let S = null, q = null, V = [], At = null, Xt = !1, We = !1;
220
- class z {
214
+ let S = null, W = null, G = [], Bt = null, Xt = !1, qe = !1;
215
+ class q {
221
216
  committed = !1;
222
217
  /**
223
218
  * The current values of any sources that are updated in this batch
@@ -281,11 +276,11 @@ class z {
281
276
  * @param {Effect[]} root_effects
282
277
  */
283
278
  process(t) {
284
- V = [], this.apply();
279
+ G = [], this.apply();
285
280
  var r = [], n = [];
286
281
  for (const i of t)
287
282
  this.#o(i, r, n);
288
- this.is_fork || this.#l(), this.is_deferred() ? (this.#u(n), this.#u(r)) : (S = null, xr(n), xr(r), this.#a?.resolve()), q = null;
283
+ this.is_fork || this.#l(), this.is_deferred() ? (this.#u(n), this.#u(r)) : (S = null, wr(n), wr(r), this.#a?.resolve()), W = null;
289
284
  }
290
285
  /**
291
286
  * Traverse the effect tree, executing effects or stashing
@@ -295,11 +290,11 @@ class z {
295
290
  * @param {Effect[]} render_effects
296
291
  */
297
292
  #o(t, r, n) {
298
- t.f ^= I;
293
+ t.f ^= P;
299
294
  for (var i = t.first, s = null; i !== null; ) {
300
- var a = i.f, o = (a & (oe | _e)) !== 0, u = o && (a & I) !== 0, l = u || (a & K) !== 0 || this.skipped_effects.has(i);
295
+ var a = i.f, o = (a & (le | me)) !== 0, u = o && (a & P) !== 0, l = u || (a & J) !== 0 || this.skipped_effects.has(i);
301
296
  if (!l && i.fn !== null) {
302
- o ? i.f ^= I : s !== null && a & (jt | Tt | Wr) ? s.b.defer_effect(i) : a & jt ? r.push(i) : it(i) && (a & ae && this.#i.add(i), Qe(i));
297
+ o ? i.f ^= P : s !== null && a & (mt | St | qr) ? s.b.defer_effect(i) : a & mt ? r.push(i) : it(i) && (a & ue && this.#i.add(i), Je(i));
303
298
  var f = i.first;
304
299
  if (f !== null) {
305
300
  i = f;
@@ -316,7 +311,7 @@ class z {
316
311
  */
317
312
  #u(t) {
318
313
  for (var r = 0; r < t.length; r += 1)
319
- nn(t[r], this.#i, this.#n);
314
+ sn(t[r], this.#i, this.#n);
320
315
  }
321
316
  /**
322
317
  * Associate a change to a given source with the current
@@ -325,17 +320,17 @@ class z {
325
320
  * @param {any} value
326
321
  */
327
322
  capture(t, r) {
328
- r !== N && !this.previous.has(t) && this.previous.set(t, r), t.f & pe || (this.current.set(t, t.v), q?.set(t, t.v));
323
+ r !== N && !this.previous.has(t) && this.previous.set(t, r), t.f & pe || (this.current.set(t, t.v), W?.set(t, t.v));
329
324
  }
330
325
  activate() {
331
326
  S = this, this.apply();
332
327
  }
333
328
  deactivate() {
334
- S === this && (S = null, q = null);
329
+ S === this && (S = null, W = null);
335
330
  }
336
331
  flush() {
337
- if (this.activate(), V.length > 0) {
338
- if (sn(), S !== null && S !== this)
332
+ if (this.activate(), G.length > 0) {
333
+ if (an(), S !== null && S !== this)
339
334
  return;
340
335
  } else this.#r === 0 && this.process([]);
341
336
  this.deactivate();
@@ -354,7 +349,7 @@ class z {
354
349
  #f() {
355
350
  if (ot.size > 1) {
356
351
  this.previous.clear();
357
- var t = q, r = !0;
352
+ var t = W, r = !0;
358
353
  for (const i of ot) {
359
354
  if (i === this) {
360
355
  r = !1;
@@ -373,21 +368,21 @@ class z {
373
368
  continue;
374
369
  const a = [...i.current.keys()].filter((o) => !this.current.has(o));
375
370
  if (a.length > 0) {
376
- var n = V;
377
- V = [];
371
+ var n = G;
372
+ G = [];
378
373
  const o = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
379
374
  for (const l of s)
380
- an(l, a, o, u);
381
- if (V.length > 0) {
375
+ on(l, a, o, u);
376
+ if (G.length > 0) {
382
377
  S = i, i.apply();
383
- for (const l of V)
378
+ for (const l of G)
384
379
  i.#o(l, [], []);
385
380
  i.deactivate();
386
381
  }
387
- V = n;
382
+ G = n;
388
383
  }
389
384
  }
390
- S = null, q = t;
385
+ S = null, W = t;
391
386
  }
392
387
  this.committed = !0, ot.delete(this);
393
388
  }
@@ -407,9 +402,9 @@ class z {
407
402
  }
408
403
  revive() {
409
404
  for (const t of this.#i)
410
- this.#n.delete(t), B(t, R), ie(t);
405
+ this.#n.delete(t), B(t, R), ae(t);
411
406
  for (const t of this.#n)
412
- B(t, ue), ie(t);
407
+ B(t, fe), ae(t);
413
408
  this.flush();
414
409
  }
415
410
  /** @param {() => void} fn */
@@ -421,12 +416,12 @@ class z {
421
416
  this.#t.add(t);
422
417
  }
423
418
  settled() {
424
- return (this.#a ??= Xr()).promise;
419
+ return (this.#a ??= Wr()).promise;
425
420
  }
426
421
  static ensure() {
427
422
  if (S === null) {
428
- const t = S = new z();
429
- ot.add(S), We || z.enqueue(() => {
423
+ const t = S = new q();
424
+ ot.add(S), qe || q.enqueue(() => {
430
425
  S === t && t.flush();
431
426
  });
432
427
  }
@@ -439,94 +434,94 @@ class z {
439
434
  apply() {
440
435
  }
441
436
  }
442
- function Fi(e) {
443
- var t = We;
444
- We = !0;
437
+ function ct(e) {
438
+ var t = qe;
439
+ qe = !0;
445
440
  try {
446
441
  for (var r; ; ) {
447
- if (Di(), V.length === 0 && (S?.flush(), V.length === 0))
448
- return At = null, /** @type {T} */
442
+ if (Fi(), G.length === 0 && (S?.flush(), G.length === 0))
443
+ return Bt = null, /** @type {T} */
449
444
  r;
450
- sn();
445
+ an();
451
446
  }
452
447
  } finally {
453
- We = t;
448
+ qe = t;
454
449
  }
455
450
  }
456
- function sn() {
457
- var e = ye;
451
+ function an() {
452
+ var e = xe;
458
453
  Xt = !0;
459
454
  var t = null;
460
455
  try {
461
456
  var r = 0;
462
- for (bt(!0); V.length > 0; ) {
463
- var n = z.ensure();
457
+ for (yt(!0); G.length > 0; ) {
458
+ var n = q.ensure();
464
459
  if (r++ > 1e3) {
465
460
  var i, s;
466
- ki();
461
+ Ui();
467
462
  }
468
- n.process(V), ve.clear();
463
+ n.process(G), ve.clear();
469
464
  }
470
465
  } finally {
471
- Xt = !1, bt(e), At = null;
466
+ Xt = !1, yt(e), Bt = null;
472
467
  }
473
468
  }
474
- function ki() {
469
+ function Ui() {
475
470
  try {
476
- Ni();
471
+ Bi();
477
472
  } catch (e) {
478
- Le(e, At);
473
+ $e(e, Bt);
479
474
  }
480
475
  }
481
- let te = null;
482
- function xr(e) {
476
+ let re = null;
477
+ function wr(e) {
483
478
  var t = e.length;
484
479
  if (t !== 0) {
485
480
  for (var r = 0; r < t; ) {
486
481
  var n = e[r++];
487
- if (!(n.f & (de | K)) && it(n) && (te = /* @__PURE__ */ new Set(), Qe(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? wn(n) : n.fn = null), te?.size > 0)) {
482
+ if (!(n.f & (ie | J)) && it(n) && (re = /* @__PURE__ */ new Set(), Je(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? Tn(n) : n.fn = null), re?.size > 0)) {
488
483
  ve.clear();
489
- for (const i of te) {
490
- if (i.f & (de | K)) continue;
484
+ for (const i of re) {
485
+ if (i.f & (ie | J)) continue;
491
486
  const s = [i];
492
487
  let a = i.parent;
493
488
  for (; a !== null; )
494
- te.has(a) && (te.delete(a), s.push(a)), a = a.parent;
489
+ re.has(a) && (re.delete(a), s.push(a)), a = a.parent;
495
490
  for (let o = s.length - 1; o >= 0; o--) {
496
491
  const u = s[o];
497
- u.f & (de | K) || Qe(u);
492
+ u.f & (ie | J) || Je(u);
498
493
  }
499
494
  }
500
- te.clear();
495
+ re.clear();
501
496
  }
502
497
  }
503
- te = null;
498
+ re = null;
504
499
  }
505
500
  }
506
- function an(e, t, r, n) {
501
+ function on(e, t, r, n) {
507
502
  if (!r.has(e) && (r.add(e), e.reactions !== null))
508
503
  for (const i of e.reactions) {
509
504
  const s = i.f;
510
- s & P ? an(
505
+ s & O ? on(
511
506
  /** @type {Derived} */
512
507
  i,
513
508
  t,
514
509
  r,
515
510
  n
516
- ) : s & (lr | ae) && !(s & R) && on(i, t, n) && (B(i, R), ie(
511
+ ) : s & (lr | ue) && !(s & R) && un(i, t, n) && (B(i, R), ae(
517
512
  /** @type {Effect} */
518
513
  i
519
514
  ));
520
515
  }
521
516
  }
522
- function on(e, t, r) {
517
+ function un(e, t, r) {
523
518
  const n = r.get(e);
524
519
  if (n !== void 0) return n;
525
520
  if (e.deps !== null)
526
521
  for (const i of e.deps) {
527
522
  if (t.includes(i))
528
523
  return !0;
529
- if (i.f & P && on(
524
+ if (i.f & O && un(
530
525
  /** @type {Derived} */
531
526
  i,
532
527
  t,
@@ -540,30 +535,30 @@ function on(e, t, r) {
540
535
  }
541
536
  return r.set(e, !1), !1;
542
537
  }
543
- function ie(e) {
544
- for (var t = At = e; t.parent !== null; ) {
538
+ function ae(e) {
539
+ for (var t = Bt = e; t.parent !== null; ) {
545
540
  t = t.parent;
546
541
  var r = t.f;
547
- if (Xt && t === b && r & ae && !(r & qr))
542
+ if (Xt && t === b && r & ue && !(r & zr))
548
543
  return;
549
- if (r & (_e | oe)) {
550
- if (!(r & I)) return;
551
- t.f ^= I;
544
+ if (r & (me | le)) {
545
+ if (!(r & P)) return;
546
+ t.f ^= P;
552
547
  }
553
548
  }
554
- V.push(t);
549
+ G.push(t);
555
550
  }
556
551
  function Gi(e) {
557
552
  let t = 0, r = nt(0), n;
558
553
  return () => {
559
- _r() && (y(r), gn(() => (t === 0 && (n = Rn(() => e(() => qe(r)))), t += 1, () => {
554
+ _r() && (g(r), yn(() => (t === 0 && (n = Ln(() => e(() => ze(r)))), t += 1, () => {
560
555
  cr(() => {
561
- t -= 1, t === 0 && (n?.(), n = void 0, qe(r));
556
+ t -= 1, t === 0 && (n?.(), n = void 0, ze(r));
562
557
  });
563
558
  })));
564
559
  };
565
560
  }
566
- var ji = Ce | Se | ur;
561
+ var ji = Le | He | ur;
567
562
  function Vi(e, t, r) {
568
563
  new Xi(e, t, r);
569
564
  }
@@ -616,16 +611,16 @@ class Xi {
616
611
  */
617
612
  constructor(t, r, n) {
618
613
  this.#e = t, this.#r = r, this.#s = n, this.parent = /** @type {Effect} */
619
- b.b, this.is_pending = !!this.#r.pending, this.#a = yn(() => {
614
+ b.b, this.is_pending = !!this.#r.pending, this.#a = En(() => {
620
615
  if (b.b = this, A) {
621
616
  const s = this.#t;
622
617
  hr(), /** @type {Comment} */
623
- s.nodeType === tt && /** @type {Comment} */
618
+ s.nodeType === rt && /** @type {Comment} */
624
619
  s.data === or ? this.#x() : (this.#E(), this.#h === 0 && (this.is_pending = !1));
625
620
  } else {
626
621
  var i = this.#b();
627
622
  try {
628
- this.#i = re(() => n(i));
623
+ this.#i = ne(() => n(i));
629
624
  } catch (s) {
630
625
  this.error(s);
631
626
  }
@@ -638,16 +633,16 @@ class Xi {
638
633
  }
639
634
  #E() {
640
635
  try {
641
- this.#i = re(() => this.#s(this.#e));
636
+ this.#i = ne(() => this.#s(this.#e));
642
637
  } catch (t) {
643
638
  this.error(t);
644
639
  }
645
640
  }
646
641
  #x() {
647
642
  const t = this.#r.pending;
648
- t && (this.#n = re(() => t(this.#e)), z.enqueue(() => {
643
+ t && (this.#n = ne(() => t(this.#e)), q.enqueue(() => {
649
644
  var r = this.#b();
650
- this.#i = this.#_(() => (z.ensure(), re(() => this.#s(r)))), this.#h > 0 ? this.#m() : (ze(
645
+ this.#i = this.#_(() => (q.ensure(), ne(() => this.#s(r)))), this.#h > 0 ? this.#m() : (Ze(
651
646
  /** @type {Effect} */
652
647
  this.#n,
653
648
  () => {
@@ -658,14 +653,14 @@ class Xi {
658
653
  }
659
654
  #b() {
660
655
  var t = this.#e;
661
- return this.is_pending && (this.#l = se(), this.#e.before(this.#l), t = this.#l), t;
656
+ return this.is_pending && (this.#l = oe(), this.#e.before(this.#l), t = this.#l), t;
662
657
  }
663
658
  /**
664
659
  * Defer an effect inside a pending boundary until the boundary resolves
665
660
  * @param {Effect} effect
666
661
  */
667
662
  defer_effect(t) {
668
- nn(t, this.#p, this.#v);
663
+ sn(t, this.#p, this.#v);
669
664
  }
670
665
  /**
671
666
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -681,14 +676,14 @@ class Xi {
681
676
  * @param {() => Effect | null} fn
682
677
  */
683
678
  #_(t) {
684
- var r = b, n = _, i = O;
685
- ee(this.#a), $(this.#a), Re(this.#a.ctx);
679
+ var r = b, n = _, i = V;
680
+ K(this.#a), M(this.#a), Me(this.#a.ctx);
686
681
  try {
687
682
  return t();
688
683
  } catch (s) {
689
- return tn(s), null;
684
+ return rn(s), null;
690
685
  } finally {
691
- ee(r), $(n), Re(i);
686
+ K(r), M(n), Me(i);
692
687
  }
693
688
  }
694
689
  #m() {
@@ -699,7 +694,7 @@ class Xi {
699
694
  this.#i !== null && (this.#u = document.createDocumentFragment(), this.#u.append(
700
695
  /** @type {TemplateNode} */
701
696
  this.#l
702
- ), Hn(this.#i, this.#u)), this.#n === null && (this.#n = re(() => t(this.#e)));
697
+ ), An(this.#i, this.#u)), this.#n === null && (this.#n = ne(() => t(this.#e)));
703
698
  }
704
699
  /**
705
700
  * Updates the pending count associated with the currently visible pending snippet,
@@ -714,10 +709,10 @@ class Xi {
714
709
  if (this.#h += t, this.#h === 0) {
715
710
  this.is_pending = !1;
716
711
  for (const r of this.#p)
717
- B(r, R), ie(r);
712
+ B(r, R), ae(r);
718
713
  for (const r of this.#v)
719
- B(r, ue), ie(r);
720
- this.#p.clear(), this.#v.clear(), this.#n && ze(this.#n, () => {
714
+ B(r, fe), ae(r);
715
+ this.#p.clear(), this.#v.clear(), this.#n && Ze(this.#n, () => {
721
716
  this.#n = null;
722
717
  }), this.#u && (this.#e.before(this.#u), this.#u = null);
723
718
  }
@@ -729,10 +724,10 @@ class Xi {
729
724
  * @param {1 | -1} d
730
725
  */
731
726
  update_pending_count(t) {
732
- this.#g(t), this.#f += t, this.#c && mt(this.#c, this.#f);
727
+ this.#g(t), this.#f += t, this.#c && gt(this.#c, this.#f);
733
728
  }
734
729
  get_effect_pending() {
735
- return this.#y(), y(
730
+ return this.#y(), g(
736
731
  /** @type {Source<number>} */
737
732
  this.#c
738
733
  );
@@ -743,33 +738,33 @@ class Xi {
743
738
  let n = this.#r.failed;
744
739
  if (this.#d || !r && !n)
745
740
  throw t;
746
- this.#i && (D(this.#i), this.#i = null), this.#n && (D(this.#n), this.#n = null), this.#o && (D(this.#o), this.#o = null), A && (Y(
741
+ this.#i && ($(this.#i), this.#i = null), this.#n && ($(this.#n), this.#n = null), this.#o && ($(this.#o), this.#o = null), A && (Z(
747
742
  /** @type {TemplateNode} */
748
743
  this.#t
749
- ), Mi(), Y(zr()));
744
+ ), Li(), Z(Zr()));
750
745
  var i = !1, s = !1;
751
746
  const a = () => {
752
747
  if (i) {
753
- Li();
748
+ Ri();
754
749
  return;
755
750
  }
756
- i = !0, s && Ri(), z.ensure(), this.#f = 0, this.#o !== null && ze(this.#o, () => {
751
+ i = !0, s && Ii(), q.ensure(), this.#f = 0, this.#o !== null && Ze(this.#o, () => {
757
752
  this.#o = null;
758
- }), this.is_pending = this.has_pending_snippet(), this.#i = this.#_(() => (this.#d = !1, re(() => 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, ne(() => this.#s(this.#e)))), this.#h > 0 ? this.#m() : this.is_pending = !1;
759
754
  };
760
755
  var o = _;
761
756
  try {
762
- $(null), s = !0, r?.(t, a), s = !1;
757
+ M(null), s = !0, r?.(t, a), s = !1;
763
758
  } catch (u) {
764
- Le(u, this.#a && this.#a.parent);
759
+ $e(u, this.#a && this.#a.parent);
765
760
  } finally {
766
- $(o);
761
+ M(o);
767
762
  }
768
763
  n && cr(() => {
769
764
  this.#o = this.#_(() => {
770
- z.ensure(), this.#d = !0;
765
+ q.ensure(), this.#d = !0;
771
766
  try {
772
- return re(() => {
767
+ return ne(() => {
773
768
  n(
774
769
  this.#e,
775
770
  () => t,
@@ -777,7 +772,7 @@ class Xi {
777
772
  );
778
773
  });
779
774
  } catch (u) {
780
- return Le(
775
+ return $e(
781
776
  u,
782
777
  /** @type {Effect} */
783
778
  this.#a.parent
@@ -790,7 +785,7 @@ class Xi {
790
785
  }
791
786
  }
792
787
  function Wi(e, t, r, n) {
793
- const i = rt() ? pr : Zi;
788
+ const i = pr;
794
789
  if (r.length === 0 && e.length === 0) {
795
790
  n(t.map(i));
796
791
  return;
@@ -805,11 +800,11 @@ function Wi(e, t, r, n) {
805
800
  try {
806
801
  n([...t.map(i), ...l]);
807
802
  } catch (f) {
808
- a.f & de || Le(f, a);
803
+ a.f & ie || $e(f, a);
809
804
  }
810
- s?.deactivate(), _t();
805
+ s?.deactivate(), bt();
811
806
  }).catch((l) => {
812
- Le(l, a);
807
+ $e(l, a);
813
808
  });
814
809
  }
815
810
  e.length > 0 ? Promise.all(e).then(() => {
@@ -817,30 +812,30 @@ function Wi(e, t, r, n) {
817
812
  try {
818
813
  return u();
819
814
  } finally {
820
- s?.deactivate(), _t();
815
+ s?.deactivate(), bt();
821
816
  }
822
817
  }) : u();
823
818
  }
824
819
  function qi() {
825
- var e = b, t = _, r = O, n = S;
820
+ var e = b, t = _, r = V, n = S;
826
821
  return function(s = !0) {
827
- ee(e), $(t), Re(r), s && n?.activate();
822
+ K(e), M(t), Me(r), s && n?.activate();
828
823
  };
829
824
  }
830
- function _t() {
831
- ee(null), $(null), Re(null);
825
+ function bt() {
826
+ K(null), M(null), Me(null);
832
827
  }
833
828
  // @__NO_SIDE_EFFECTS__
834
829
  function pr(e) {
835
- var t = P | R, r = _ !== null && _.f & P ? (
830
+ var t = O | R, r = _ !== null && _.f & O ? (
836
831
  /** @type {Derived} */
837
832
  _
838
833
  ) : null;
839
- return b !== null && (b.f |= Se), {
840
- ctx: O,
834
+ return b !== null && (b.f |= He), {
835
+ ctx: V,
841
836
  deps: null,
842
837
  effects: null,
843
- equals: Zr,
838
+ equals: Yr,
844
839
  f: t,
845
840
  fn: e,
846
841
  reactions: null,
@@ -860,7 +855,7 @@ function zi(e, t, r) {
860
855
  /** @type {Effect | null} */
861
856
  b
862
857
  );
863
- n === null && Si();
858
+ n === null && Ti();
864
859
  var i = (
865
860
  /** @type {Boundary} */
866
861
  n.b
@@ -873,14 +868,14 @@ function zi(e, t, r) {
873
868
  N
874
869
  ), o = !_, u = /* @__PURE__ */ new Map();
875
870
  return as(() => {
876
- var l = Xr();
871
+ var l = Wr();
877
872
  s = l.promise;
878
873
  try {
879
874
  Promise.resolve(e()).then(l.resolve, l.reject).then(() => {
880
- f === S && f.committed && f.deactivate(), _t();
875
+ f === S && f.committed && f.deactivate(), bt();
881
876
  });
882
877
  } catch (d) {
883
- l.reject(d), _t();
878
+ l.reject(d), bt();
884
879
  }
885
880
  var f = (
886
881
  /** @type {Batch} */
@@ -888,24 +883,24 @@ function zi(e, t, r) {
888
883
  );
889
884
  if (o) {
890
885
  var c = i.is_rendered();
891
- i.update_pending_count(1), f.increment(c), u.get(f)?.reject(Ne), u.delete(f), u.set(f, l);
886
+ i.update_pending_count(1), f.increment(c), u.get(f)?.reject(Pe), u.delete(f), u.set(f, l);
892
887
  }
893
888
  const h = (d, p = void 0) => {
894
889
  if (f.activate(), p)
895
- p !== Ne && (a.f |= pe, mt(a, p));
890
+ p !== Pe && (a.f |= pe, gt(a, p));
896
891
  else {
897
- a.f & pe && (a.f ^= pe), mt(a, d);
898
- for (const [g, H] of u) {
899
- if (u.delete(g), g === f) break;
900
- H.reject(Ne);
892
+ a.f & pe && (a.f ^= pe), gt(a, d);
893
+ for (const [y, H] of u) {
894
+ if (u.delete(y), y === f) break;
895
+ H.reject(Pe);
901
896
  }
902
897
  }
903
898
  o && (i.update_pending_count(-1), f.decrement(c));
904
899
  };
905
900
  l.promise.then(h, (d) => h(null, d || "unknown"));
906
- }), mn(() => {
901
+ }), bn(() => {
907
902
  for (const l of u.values())
908
- l.reject(Ne);
903
+ l.reject(Pe);
909
904
  }), new Promise((l) => {
910
905
  function f(c) {
911
906
  function h() {
@@ -919,28 +914,23 @@ function zi(e, t, r) {
919
914
  // @__NO_SIDE_EFFECTS__
920
915
  function ut(e) {
921
916
  const t = /* @__PURE__ */ pr(e);
922
- return An(t), t;
917
+ return Bn(t), t;
923
918
  }
924
- // @__NO_SIDE_EFFECTS__
925
- function Zi(e) {
926
- const t = /* @__PURE__ */ pr(e);
927
- return t.equals = Qr, t;
928
- }
929
- function un(e) {
919
+ function ln(e) {
930
920
  var t = e.effects;
931
921
  if (t !== null) {
932
922
  e.effects = null;
933
923
  for (var r = 0; r < t.length; r += 1)
934
- D(
924
+ $(
935
925
  /** @type {Effect} */
936
926
  t[r]
937
927
  );
938
928
  }
939
929
  }
940
- function Yi(e) {
930
+ function Zi(e) {
941
931
  for (var t = e.parent; t !== null; ) {
942
- if (!(t.f & P))
943
- return t.f & de ? null : (
932
+ if (!(t.f & O))
933
+ return t.f & ie ? null : (
944
934
  /** @type {Effect} */
945
935
  t
946
936
  );
@@ -950,124 +940,121 @@ function Yi(e) {
950
940
  }
951
941
  function vr(e) {
952
942
  var t, r = b;
953
- ee(Yi(e));
943
+ K(Zi(e));
954
944
  try {
955
- e.f &= ~xe, un(e), t = Pn(e);
945
+ e.f &= ~Te, ln(e), t = Cn(e);
956
946
  } finally {
957
- ee(r);
947
+ K(r);
958
948
  }
959
949
  return t;
960
950
  }
961
- function ln(e) {
951
+ function fn(e) {
962
952
  var t = vr(e);
963
- if (!e.equals(t) && (e.wv = Nn(), (!S?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
964
- B(e, I);
953
+ if (!e.equals(t) && (e.wv = On(), (!S?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
954
+ B(e, P);
965
955
  return;
966
956
  }
967
- we || (q !== null ? (_r() || S?.is_fork) && q.set(e, t) : dr(e));
957
+ _e || (W !== null ? (_r() || S?.is_fork) && W.set(e, t) : dr(e));
968
958
  }
969
959
  let Wt = /* @__PURE__ */ new Set();
970
960
  const ve = /* @__PURE__ */ new Map();
971
- let fn = !1;
961
+ let hn = !1;
972
962
  function nt(e, t) {
973
963
  var r = {
974
964
  f: 0,
975
965
  // TODO ideally we could skip this altogether, but it causes type errors
976
966
  v: e,
977
967
  reactions: null,
978
- equals: Zr,
968
+ equals: Yr,
979
969
  rv: 0,
980
970
  wv: 0
981
971
  };
982
972
  return r;
983
973
  }
984
974
  // @__NO_SIDE_EFFECTS__
985
- function W(e, t) {
975
+ function X(e, t) {
986
976
  const r = nt(e);
987
- return An(r), r;
977
+ return Bn(r), r;
988
978
  }
989
979
  // @__NO_SIDE_EFFECTS__
990
- function hn(e, t = !1, r = !0) {
980
+ function cn(e, t = !1, r = !0) {
991
981
  const n = nt(e);
992
- return t || (n.equals = Qr), wt && r && O !== null && O.l !== null && (O.l.s ??= []).push(n), n;
982
+ return t || (n.equals = $i), n;
993
983
  }
994
- function M(e, t, r = !1) {
984
+ function I(e, t, r = !1) {
995
985
  _ !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
996
986
  // to ensure we error if state is set inside an inspect effect
997
- (!Z || _.f & Er) && rt() && _.f & (P | ae | lr | Er) && !ne?.includes(e) && Ci();
998
- let n = r ? Xe(t) : t;
999
- return mt(e, n);
987
+ (!z || _.f & xr) && en() && _.f & (O | ue | lr | xr) && !se?.includes(e) && Ci();
988
+ let n = r ? We(t) : t;
989
+ return gt(e, n);
1000
990
  }
1001
- function mt(e, t) {
991
+ function gt(e, t) {
1002
992
  if (!e.equals(t)) {
1003
993
  var r = e.v;
1004
- we ? ve.set(e, t) : ve.set(e, r), e.v = t;
1005
- var n = z.ensure();
1006
- if (n.capture(e, r), e.f & P) {
994
+ _e ? ve.set(e, t) : ve.set(e, r), e.v = t;
995
+ var n = q.ensure();
996
+ if (n.capture(e, r), e.f & O) {
1007
997
  const i = (
1008
998
  /** @type {Derived} */
1009
999
  e
1010
1000
  );
1011
1001
  e.f & R && vr(i), dr(i);
1012
1002
  }
1013
- e.wv = Nn(), cn(e, R), rt() && b !== null && b.f & I && !(b.f & (oe | _e)) && (j === null ? hs([e]) : j.push(e)), !n.is_fork && Wt.size > 0 && !fn && Qi();
1003
+ e.wv = On(), dn(e, R), b !== null && b.f & P && !(b.f & (le | me)) && (U === null ? hs([e]) : U.push(e)), !n.is_fork && Wt.size > 0 && !hn && Yi();
1014
1004
  }
1015
1005
  return t;
1016
1006
  }
1017
- function Qi() {
1018
- fn = !1;
1019
- var e = ye;
1020
- bt(!0);
1007
+ function Yi() {
1008
+ hn = !1;
1009
+ var e = xe;
1010
+ yt(!0);
1021
1011
  const t = Array.from(Wt);
1022
1012
  try {
1023
1013
  for (const r of t)
1024
- r.f & I && B(r, ue), it(r) && Qe(r);
1014
+ r.f & P && B(r, fe), it(r) && Je(r);
1025
1015
  } finally {
1026
- bt(e);
1016
+ yt(e);
1027
1017
  }
1028
1018
  Wt.clear();
1029
1019
  }
1030
- function qe(e) {
1031
- M(e, e.v + 1);
1020
+ function ze(e) {
1021
+ I(e, e.v + 1);
1032
1022
  }
1033
- function cn(e, t) {
1023
+ function dn(e, t) {
1034
1024
  var r = e.reactions;
1035
1025
  if (r !== null)
1036
- for (var n = rt(), i = r.length, s = 0; s < i; s++) {
1037
- var a = r[s], o = a.f;
1038
- if (!(!n && a === b)) {
1039
- var u = (o & R) === 0;
1040
- if (u && B(a, t), o & P) {
1041
- var l = (
1042
- /** @type {Derived} */
1043
- a
1044
- );
1045
- q?.delete(l), o & xe || (o & X && (a.f |= xe), cn(l, ue));
1046
- } else u && (o & ae && te !== null && te.add(
1047
- /** @type {Effect} */
1048
- a
1049
- ), ie(
1050
- /** @type {Effect} */
1051
- a
1052
- ));
1053
- }
1026
+ for (var n = r.length, i = 0; i < n; i++) {
1027
+ var s = r[i], a = s.f, o = (a & R) === 0;
1028
+ if (o && B(s, t), a & O) {
1029
+ var u = (
1030
+ /** @type {Derived} */
1031
+ s
1032
+ );
1033
+ W?.delete(u), a & Te || (a & j && (s.f |= Te), dn(u, fe));
1034
+ } else o && (a & ue && re !== null && re.add(
1035
+ /** @type {Effect} */
1036
+ s
1037
+ ), ae(
1038
+ /** @type {Effect} */
1039
+ s
1040
+ ));
1054
1041
  }
1055
1042
  }
1056
- function Xe(e) {
1057
- if (typeof e != "object" || e === null || Rt in e)
1043
+ function We(e) {
1044
+ if (typeof e != "object" || e === null || Lt in e)
1058
1045
  return e;
1059
- const t = xi(e);
1060
- if (t !== yi && t !== Ei)
1046
+ const t = Ei(e);
1047
+ if (t !== gi && t !== yi)
1061
1048
  return e;
1062
- var r = /* @__PURE__ */ new Map(), n = mi(e), i = /* @__PURE__ */ W(0), s = Ee, a = (o) => {
1063
- if (Ee === s)
1049
+ var r = /* @__PURE__ */ new Map(), n = _i(e), i = /* @__PURE__ */ X(0), s = we, a = (o) => {
1050
+ if (we === s)
1064
1051
  return o();
1065
- var u = _, l = Ee;
1066
- $(null), Hr(s);
1052
+ var u = _, l = we;
1053
+ M(null), Ar(s);
1067
1054
  var f = o();
1068
- return $(u), Hr(l), f;
1055
+ return M(u), Ar(l), f;
1069
1056
  };
1070
- return n && r.set("length", /* @__PURE__ */ W(
1057
+ return n && r.set("length", /* @__PURE__ */ X(
1071
1058
  /** @type {any[]} */
1072
1059
  e.length
1073
1060
  )), new Proxy(
@@ -1075,33 +1062,33 @@ function Xe(e) {
1075
1062
  e,
1076
1063
  {
1077
1064
  defineProperty(o, u, l) {
1078
- (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Pi();
1065
+ (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Oi();
1079
1066
  var f = r.get(u);
1080
1067
  return f === void 0 ? f = a(() => {
1081
- var c = /* @__PURE__ */ W(l.value);
1068
+ var c = /* @__PURE__ */ X(l.value);
1082
1069
  return r.set(u, c), c;
1083
- }) : M(f, l.value, !0), !0;
1070
+ }) : I(f, l.value, !0), !0;
1084
1071
  },
1085
1072
  deleteProperty(o, u) {
1086
1073
  var l = r.get(u);
1087
1074
  if (l === void 0) {
1088
1075
  if (u in o) {
1089
- const f = a(() => /* @__PURE__ */ W(N));
1090
- r.set(u, f), qe(i);
1076
+ const f = a(() => /* @__PURE__ */ X(N));
1077
+ r.set(u, f), ze(i);
1091
1078
  }
1092
1079
  } else
1093
- M(l, N), qe(i);
1080
+ I(l, N), ze(i);
1094
1081
  return !0;
1095
1082
  },
1096
1083
  get(o, u, l) {
1097
- if (u === Rt)
1084
+ if (u === Lt)
1098
1085
  return e;
1099
1086
  var f = r.get(u), c = u in o;
1100
- if (f === void 0 && (!c || Pe(o, u)?.writable) && (f = a(() => {
1101
- var d = Xe(c ? o[u] : N), p = /* @__PURE__ */ W(d);
1087
+ if (f === void 0 && (!c || Ie(o, u)?.writable) && (f = a(() => {
1088
+ var d = We(c ? o[u] : N), p = /* @__PURE__ */ X(d);
1102
1089
  return p;
1103
1090
  }), r.set(u, f)), f !== void 0) {
1104
- var h = y(f);
1091
+ var h = g(f);
1105
1092
  return h === N ? void 0 : h;
1106
1093
  }
1107
1094
  return Reflect.get(o, u, l);
@@ -1110,7 +1097,7 @@ function Xe(e) {
1110
1097
  var l = Reflect.getOwnPropertyDescriptor(o, u);
1111
1098
  if (l && "value" in l) {
1112
1099
  var f = r.get(u);
1113
- f && (l.value = y(f));
1100
+ f && (l.value = g(f));
1114
1101
  } else if (l === void 0) {
1115
1102
  var c = r.get(u), h = c?.v;
1116
1103
  if (c !== void 0 && h !== N)
@@ -1124,15 +1111,15 @@ function Xe(e) {
1124
1111
  return l;
1125
1112
  },
1126
1113
  has(o, u) {
1127
- if (u === Rt)
1114
+ if (u === Lt)
1128
1115
  return !0;
1129
1116
  var l = r.get(u), f = l !== void 0 && l.v !== N || Reflect.has(o, u);
1130
- if (l !== void 0 || b !== null && (!f || Pe(o, u)?.writable)) {
1117
+ if (l !== void 0 || b !== null && (!f || Ie(o, u)?.writable)) {
1131
1118
  l === void 0 && (l = a(() => {
1132
- var h = f ? Xe(o[u]) : N, d = /* @__PURE__ */ W(h);
1119
+ var h = f ? We(o[u]) : N, d = /* @__PURE__ */ X(h);
1133
1120
  return d;
1134
1121
  }), r.set(u, l));
1135
- var c = y(l);
1122
+ var c = g(l);
1136
1123
  if (c === N)
1137
1124
  return !1;
1138
1125
  }
@@ -1144,30 +1131,30 @@ function Xe(e) {
1144
1131
  for (var d = l; d < /** @type {Source<number>} */
1145
1132
  c.v; d += 1) {
1146
1133
  var p = r.get(d + "");
1147
- p !== void 0 ? M(p, N) : d in o && (p = a(() => /* @__PURE__ */ W(N)), r.set(d + "", p));
1134
+ p !== void 0 ? I(p, N) : d in o && (p = a(() => /* @__PURE__ */ X(N)), r.set(d + "", p));
1148
1135
  }
1149
1136
  if (c === void 0)
1150
- (!h || Pe(o, u)?.writable) && (c = a(() => /* @__PURE__ */ W(void 0)), M(c, Xe(l)), r.set(u, c));
1137
+ (!h || Ie(o, u)?.writable) && (c = a(() => /* @__PURE__ */ X(void 0)), I(c, We(l)), r.set(u, c));
1151
1138
  else {
1152
1139
  h = c.v !== N;
1153
- var g = a(() => Xe(l));
1154
- M(c, g);
1140
+ var y = a(() => We(l));
1141
+ I(c, y);
1155
1142
  }
1156
1143
  var H = Reflect.getOwnPropertyDescriptor(o, u);
1157
1144
  if (H?.set && H.set.call(f, l), !h) {
1158
1145
  if (n && typeof u == "string") {
1159
- var Q = (
1146
+ var Y = (
1160
1147
  /** @type {Source<number>} */
1161
1148
  r.get("length")
1162
- ), U = Number(u);
1163
- Number.isInteger(U) && U >= Q.v && M(Q, U + 1);
1149
+ ), k = Number(u);
1150
+ Number.isInteger(k) && k >= Y.v && I(Y, k + 1);
1164
1151
  }
1165
- qe(i);
1152
+ ze(i);
1166
1153
  }
1167
1154
  return !0;
1168
1155
  },
1169
1156
  ownKeys(o) {
1170
- y(i);
1157
+ g(i);
1171
1158
  var u = Reflect.ownKeys(o).filter((c) => {
1172
1159
  var h = r.get(c);
1173
1160
  return h === void 0 || h.v !== N;
@@ -1177,102 +1164,102 @@ function Xe(e) {
1177
1164
  return u;
1178
1165
  },
1179
1166
  setPrototypeOf() {
1180
- Ii();
1167
+ Pi();
1181
1168
  }
1182
1169
  }
1183
1170
  );
1184
1171
  }
1185
- var wr, dn, pn, vn;
1172
+ var Tr, pn, vn, _n;
1186
1173
  function qt() {
1187
- if (wr === void 0) {
1188
- wr = window, dn = /Firefox/.test(navigator.userAgent);
1174
+ if (Tr === void 0) {
1175
+ Tr = window, pn = /Firefox/.test(navigator.userAgent);
1189
1176
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1190
- pn = Pe(t, "firstChild").get, vn = Pe(t, "nextSibling").get, yr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), yr(r) && (r.__t = void 0);
1177
+ vn = Ie(t, "firstChild").get, _n = Ie(t, "nextSibling").get, Er(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Er(r) && (r.__t = void 0);
1191
1178
  }
1192
1179
  }
1193
- function se(e = "") {
1180
+ function oe(e = "") {
1194
1181
  return document.createTextNode(e);
1195
1182
  }
1196
1183
  // @__NO_SIDE_EFFECTS__
1197
- function Ye(e) {
1184
+ function Qe(e) {
1198
1185
  return (
1199
1186
  /** @type {TemplateNode | null} */
1200
- pn.call(e)
1187
+ vn.call(e)
1201
1188
  );
1202
1189
  }
1203
1190
  // @__NO_SIDE_EFFECTS__
1204
- function le(e) {
1191
+ function he(e) {
1205
1192
  return (
1206
1193
  /** @type {TemplateNode | null} */
1207
- vn.call(e)
1194
+ _n.call(e)
1208
1195
  );
1209
1196
  }
1210
1197
  function lt(e, t) {
1211
1198
  if (!A)
1212
- return /* @__PURE__ */ Ye(e);
1213
- var r = /* @__PURE__ */ Ye(E);
1199
+ return /* @__PURE__ */ Qe(e);
1200
+ var r = /* @__PURE__ */ Qe(E);
1214
1201
  if (r === null)
1215
- r = E.appendChild(se());
1202
+ r = E.appendChild(oe());
1216
1203
  else if (t && r.nodeType !== fr) {
1217
- var n = se();
1218
- return r?.before(n), Y(n), n;
1204
+ var n = oe();
1205
+ return r?.before(n), Z(n), n;
1219
1206
  }
1220
- return Y(r), r;
1207
+ return Z(r), r;
1221
1208
  }
1222
- function Ji(e, t = !1) {
1209
+ function Qi(e, t = !1) {
1223
1210
  if (!A) {
1224
- var r = /* @__PURE__ */ Ye(e);
1225
- return r instanceof Comment && r.data === "" ? /* @__PURE__ */ le(r) : r;
1211
+ var r = /* @__PURE__ */ Qe(e);
1212
+ return r instanceof Comment && r.data === "" ? /* @__PURE__ */ he(r) : r;
1226
1213
  }
1227
1214
  if (t && E?.nodeType !== fr) {
1228
- var n = se();
1229
- return E?.before(n), Y(n), n;
1215
+ var n = oe();
1216
+ return E?.before(n), Z(n), n;
1230
1217
  }
1231
1218
  return E;
1232
1219
  }
1233
- function Ki(e, t = 1, r = !1) {
1220
+ function Ji(e, t = 1, r = !1) {
1234
1221
  let n = A ? E : e;
1235
1222
  for (var i; t--; )
1236
1223
  i = n, n = /** @type {TemplateNode} */
1237
- /* @__PURE__ */ le(n);
1224
+ /* @__PURE__ */ he(n);
1238
1225
  if (!A)
1239
1226
  return n;
1240
1227
  if (r && n?.nodeType !== fr) {
1241
- var s = se();
1242
- return n === null ? i?.after(s) : n.before(s), Y(s), s;
1228
+ var s = oe();
1229
+ return n === null ? i?.after(s) : n.before(s), Z(s), s;
1243
1230
  }
1244
- return Y(n), n;
1231
+ return Z(n), n;
1245
1232
  }
1246
- function es(e) {
1233
+ function Ki(e) {
1247
1234
  e.textContent = "";
1248
1235
  }
1249
- function ts() {
1236
+ function es() {
1250
1237
  return !1;
1251
1238
  }
1252
- function _n(e) {
1239
+ function mn(e) {
1253
1240
  var t = _, r = b;
1254
- $(null), ee(null);
1241
+ M(null), K(null);
1255
1242
  try {
1256
1243
  return e();
1257
1244
  } finally {
1258
- $(t), ee(r);
1245
+ M(t), K(r);
1259
1246
  }
1260
1247
  }
1261
- function rs(e) {
1262
- b === null && (_ === null && Bi(), Ai()), we && Hi();
1248
+ function ts(e) {
1249
+ b === null && (_ === null && Ai(), Hi()), _e && Si();
1263
1250
  }
1264
- function ns(e, t) {
1251
+ function rs(e, t) {
1265
1252
  var r = t.last;
1266
1253
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1267
1254
  }
1268
- function fe(e, t, r) {
1255
+ function ee(e, t, r) {
1269
1256
  var n = b;
1270
- n !== null && n.f & K && (e |= K);
1257
+ n !== null && n.f & J && (e |= J);
1271
1258
  var i = {
1272
- ctx: O,
1259
+ ctx: V,
1273
1260
  deps: null,
1274
1261
  nodes: null,
1275
- f: e | R | X,
1262
+ f: e | R | j,
1276
1263
  first: null,
1277
1264
  fn: t,
1278
1265
  last: null,
@@ -1286,14 +1273,14 @@ function fe(e, t, r) {
1286
1273
  };
1287
1274
  if (r)
1288
1275
  try {
1289
- Qe(i), i.f |= St;
1276
+ Je(i), i.f |= Ht;
1290
1277
  } catch (o) {
1291
- throw D(i), o;
1278
+ throw $(i), o;
1292
1279
  }
1293
- else t !== null && ie(i);
1280
+ else t !== null && ae(i);
1294
1281
  var s = i;
1295
1282
  if (r && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
1296
- !(s.f & Se) && (s = s.first, e & ae && e & Ce && s !== null && (s.f |= Ce)), s !== null && (s.parent = n, n !== null && ns(s, n), _ !== null && _.f & P && !(e & _e))) {
1283
+ !(s.f & He) && (s = s.first, e & ue && e & Le && s !== null && (s.f |= Le)), s !== null && (s.parent = n, n !== null && rs(s, n), _ !== null && _.f & O && !(e & me))) {
1297
1284
  var a = (
1298
1285
  /** @type {Derived} */
1299
1286
  _
@@ -1303,123 +1290,126 @@ function fe(e, t, r) {
1303
1290
  return i;
1304
1291
  }
1305
1292
  function _r() {
1306
- return _ !== null && !Z;
1293
+ return _ !== null && !z;
1307
1294
  }
1308
- function mn(e) {
1309
- const t = fe(Tt, null, !1);
1310
- return B(t, I), t.teardown = e, t;
1295
+ function bn(e) {
1296
+ const t = ee(St, null, !1);
1297
+ return B(t, P), t.teardown = e, t;
1311
1298
  }
1312
- function Tr(e) {
1313
- rs();
1299
+ function Sr(e) {
1300
+ ts();
1314
1301
  var t = (
1315
1302
  /** @type {Effect} */
1316
1303
  b.f
1317
- ), r = !_ && (t & oe) !== 0 && (t & St) === 0;
1304
+ ), r = !_ && (t & le) !== 0 && (t & Ht) === 0;
1318
1305
  if (r) {
1319
1306
  var n = (
1320
1307
  /** @type {ComponentContext} */
1321
- O
1308
+ V
1322
1309
  );
1323
1310
  (n.e ??= []).push(e);
1324
1311
  } else
1325
- return bn(e);
1312
+ return gn(e);
1326
1313
  }
1327
- function bn(e) {
1328
- return fe(jt | wi, e, !1);
1314
+ function gn(e) {
1315
+ return ee(mt | xi, e, !1);
1329
1316
  }
1330
- function is(e) {
1331
- z.ensure();
1332
- const t = fe(_e | Se, e, !0);
1317
+ function ns(e) {
1318
+ q.ensure();
1319
+ const t = ee(me | He, e, !0);
1333
1320
  return () => {
1334
- D(t);
1321
+ $(t);
1335
1322
  };
1336
1323
  }
1337
- function ss(e) {
1338
- z.ensure();
1339
- const t = fe(_e | Se, e, !0);
1324
+ function is(e) {
1325
+ q.ensure();
1326
+ const t = ee(me | He, e, !0);
1340
1327
  return (r = {}) => new Promise((n) => {
1341
- r.outro ? ze(t, () => {
1342
- D(t), n(void 0);
1343
- }) : (D(t), n(void 0));
1328
+ r.outro ? Ze(t, () => {
1329
+ $(t), n(void 0);
1330
+ }) : ($(t), n(void 0));
1344
1331
  });
1345
1332
  }
1333
+ function ss(e) {
1334
+ return ee(mt, e, !1);
1335
+ }
1346
1336
  function as(e) {
1347
- return fe(lr | Se, e, !0);
1337
+ return ee(lr | He, e, !0);
1348
1338
  }
1349
- function gn(e, t = 0) {
1350
- return fe(Tt | t, e, !0);
1339
+ function yn(e, t = 0) {
1340
+ return ee(St | t, e, !0);
1351
1341
  }
1352
1342
  function os(e, t = [], r = [], n = []) {
1353
1343
  Wi(n, t, r, (i) => {
1354
- fe(Tt, () => e(...i.map(y)), !0);
1344
+ ee(St, () => e(...i.map(g)), !0);
1355
1345
  });
1356
1346
  }
1357
- function yn(e, t = 0) {
1358
- var r = fe(ae | t, e, !0);
1347
+ function En(e, t = 0) {
1348
+ var r = ee(ue | t, e, !0);
1359
1349
  return r;
1360
1350
  }
1361
- function re(e) {
1362
- return fe(oe | Se, e, !0);
1351
+ function ne(e) {
1352
+ return ee(le | He, e, !0);
1363
1353
  }
1364
- function En(e) {
1354
+ function xn(e) {
1365
1355
  var t = e.teardown;
1366
1356
  if (t !== null) {
1367
- const r = we, n = _;
1368
- Sr(!0), $(null);
1357
+ const r = _e, n = _;
1358
+ Hr(!0), M(null);
1369
1359
  try {
1370
1360
  t.call(null);
1371
1361
  } finally {
1372
- Sr(r), $(n);
1362
+ Hr(r), M(n);
1373
1363
  }
1374
1364
  }
1375
1365
  }
1376
- function xn(e, t = !1) {
1366
+ function wn(e, t = !1) {
1377
1367
  var r = e.first;
1378
1368
  for (e.first = e.last = null; r !== null; ) {
1379
1369
  const i = r.ac;
1380
- i !== null && _n(() => {
1381
- i.abort(Ne);
1370
+ i !== null && mn(() => {
1371
+ i.abort(Pe);
1382
1372
  });
1383
1373
  var n = r.next;
1384
- r.f & _e ? r.parent = null : D(r, t), r = n;
1374
+ r.f & me ? r.parent = null : $(r, t), r = n;
1385
1375
  }
1386
1376
  }
1387
1377
  function us(e) {
1388
1378
  for (var t = e.first; t !== null; ) {
1389
1379
  var r = t.next;
1390
- t.f & oe || D(t), t = r;
1380
+ t.f & le || $(t), t = r;
1391
1381
  }
1392
1382
  }
1393
- function D(e, t = !0) {
1383
+ function $(e, t = !0) {
1394
1384
  var r = !1;
1395
- (t || e.f & qr) && e.nodes !== null && e.nodes.end !== null && (ls(
1385
+ (t || e.f & zr) && e.nodes !== null && e.nodes.end !== null && (ls(
1396
1386
  e.nodes.start,
1397
1387
  /** @type {TemplateNode} */
1398
1388
  e.nodes.end
1399
- ), r = !0), xn(e, t && !r), gt(e, 0), B(e, de);
1389
+ ), r = !0), wn(e, t && !r), Et(e, 0), B(e, ie);
1400
1390
  var n = e.nodes && e.nodes.t;
1401
1391
  if (n !== null)
1402
1392
  for (const s of n)
1403
1393
  s.stop();
1404
- En(e);
1394
+ xn(e);
1405
1395
  var i = e.parent;
1406
- i !== null && i.first !== null && wn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1396
+ i !== null && i.first !== null && Tn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1407
1397
  }
1408
1398
  function ls(e, t) {
1409
1399
  for (; e !== null; ) {
1410
- var r = e === t ? null : /* @__PURE__ */ le(e);
1400
+ var r = e === t ? null : /* @__PURE__ */ he(e);
1411
1401
  e.remove(), e = r;
1412
1402
  }
1413
1403
  }
1414
- function wn(e) {
1404
+ function Tn(e) {
1415
1405
  var t = e.parent, r = e.prev, n = e.next;
1416
1406
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1417
1407
  }
1418
- function ze(e, t, r = !0) {
1408
+ function Ze(e, t, r = !0) {
1419
1409
  var n = [];
1420
- Tn(e, n, !0);
1410
+ Sn(e, n, !0);
1421
1411
  var i = () => {
1422
- r && D(e), t && t();
1412
+ r && $(e), t && t();
1423
1413
  }, s = n.length;
1424
1414
  if (s > 0) {
1425
1415
  var a = () => --s || i();
@@ -1428,31 +1418,31 @@ function ze(e, t, r = !0) {
1428
1418
  } else
1429
1419
  i();
1430
1420
  }
1431
- function Tn(e, t, r) {
1432
- if (!(e.f & K)) {
1433
- e.f ^= K;
1421
+ function Sn(e, t, r) {
1422
+ if (!(e.f & J)) {
1423
+ e.f ^= J;
1434
1424
  var n = e.nodes && e.nodes.t;
1435
1425
  if (n !== null)
1436
1426
  for (const o of n)
1437
1427
  (o.is_global || r) && t.push(o);
1438
1428
  for (var i = e.first; i !== null; ) {
1439
- var s = i.next, a = (i.f & Ce) !== 0 || // If this is a branch effect without a block effect parent,
1429
+ var s = i.next, a = (i.f & Le) !== 0 || // If this is a branch effect without a block effect parent,
1440
1430
  // it means the parent block effect was pruned. In that case,
1441
1431
  // transparency information was transferred to the branch effect.
1442
- (i.f & oe) !== 0 && (e.f & ae) !== 0;
1443
- Tn(i, t, a ? r : !1), i = s;
1432
+ (i.f & le) !== 0 && (e.f & ue) !== 0;
1433
+ Sn(i, t, a ? r : !1), i = s;
1444
1434
  }
1445
1435
  }
1446
1436
  }
1447
1437
  function fs(e) {
1448
- Sn(e, !0);
1438
+ Hn(e, !0);
1449
1439
  }
1450
- function Sn(e, t) {
1451
- if (e.f & K) {
1452
- e.f ^= K, e.f & I || (B(e, R), ie(e));
1440
+ function Hn(e, t) {
1441
+ if (e.f & J) {
1442
+ e.f ^= J, e.f & P || (B(e, R), ae(e));
1453
1443
  for (var r = e.first; r !== null; ) {
1454
- var n = r.next, i = (r.f & Ce) !== 0 || (r.f & oe) !== 0;
1455
- Sn(r, i ? t : !1), r = n;
1444
+ var n = r.next, i = (r.f & Le) !== 0 || (r.f & le) !== 0;
1445
+ Hn(r, i ? t : !1), r = n;
1456
1446
  }
1457
1447
  var s = e.nodes && e.nodes.t;
1458
1448
  if (s !== null)
@@ -1460,49 +1450,49 @@ function Sn(e, t) {
1460
1450
  (a.is_global || t) && a.in();
1461
1451
  }
1462
1452
  }
1463
- function Hn(e, t) {
1453
+ function An(e, t) {
1464
1454
  if (e.nodes)
1465
1455
  for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
1466
- var i = r === n ? null : /* @__PURE__ */ le(r);
1456
+ var i = r === n ? null : /* @__PURE__ */ he(r);
1467
1457
  t.append(r), r = i;
1468
1458
  }
1469
1459
  }
1470
- let ye = !1;
1471
- function bt(e) {
1472
- ye = e;
1460
+ let xe = !1;
1461
+ function yt(e) {
1462
+ xe = e;
1473
1463
  }
1474
- let we = !1;
1475
- function Sr(e) {
1476
- we = e;
1464
+ let _e = !1;
1465
+ function Hr(e) {
1466
+ _e = e;
1477
1467
  }
1478
- let _ = null, Z = !1;
1479
- function $(e) {
1468
+ let _ = null, z = !1;
1469
+ function M(e) {
1480
1470
  _ = e;
1481
1471
  }
1482
1472
  let b = null;
1483
- function ee(e) {
1473
+ function K(e) {
1484
1474
  b = e;
1485
1475
  }
1486
- let ne = null;
1487
- function An(e) {
1488
- _ !== null && (ne === null ? ne = [e] : ne.push(e));
1476
+ let se = null;
1477
+ function Bn(e) {
1478
+ _ !== null && (se === null ? se = [e] : se.push(e));
1489
1479
  }
1490
- let L = null, F = 0, j = null;
1480
+ let L = null, F = 0, U = null;
1491
1481
  function hs(e) {
1492
- j = e;
1482
+ U = e;
1493
1483
  }
1494
- let Bn = 1, ge = 0, Ee = ge;
1495
- function Hr(e) {
1496
- Ee = e;
1484
+ let Nn = 1, Ee = 0, we = Ee;
1485
+ function Ar(e) {
1486
+ we = e;
1497
1487
  }
1498
- function Nn() {
1499
- return ++Bn;
1488
+ function On() {
1489
+ return ++Nn;
1500
1490
  }
1501
1491
  function it(e) {
1502
1492
  var t = e.f;
1503
1493
  if (t & R)
1504
1494
  return !0;
1505
- if (t & P && (e.f &= ~xe), t & ue) {
1495
+ if (t & O && (e.f &= ~Te), t & fe) {
1506
1496
  for (var r = (
1507
1497
  /** @type {Value[]} */
1508
1498
  e.deps
@@ -1511,39 +1501,39 @@ function it(e) {
1511
1501
  if (it(
1512
1502
  /** @type {Derived} */
1513
1503
  s
1514
- ) && ln(
1504
+ ) && fn(
1515
1505
  /** @type {Derived} */
1516
1506
  s
1517
1507
  ), s.wv > e.wv)
1518
1508
  return !0;
1519
1509
  }
1520
- t & X && // During time traveling we don't want to reset the status so that
1510
+ t & j && // During time traveling we don't want to reset the status so that
1521
1511
  // traversal of the graph in the other batches still happens
1522
- q === null && B(e, I);
1512
+ W === null && B(e, P);
1523
1513
  }
1524
1514
  return !1;
1525
1515
  }
1526
- function On(e, t, r = !0) {
1516
+ function Pn(e, t, r = !0) {
1527
1517
  var n = e.reactions;
1528
- if (n !== null && !ne?.includes(e))
1518
+ if (n !== null && !se?.includes(e))
1529
1519
  for (var i = 0; i < n.length; i++) {
1530
1520
  var s = n[i];
1531
- s.f & P ? On(
1521
+ s.f & O ? Pn(
1532
1522
  /** @type {Derived} */
1533
1523
  s,
1534
1524
  t,
1535
1525
  !1
1536
- ) : t === s && (r ? B(s, R) : s.f & I && B(s, ue), ie(
1526
+ ) : t === s && (r ? B(s, R) : s.f & P && B(s, fe), ae(
1537
1527
  /** @type {Effect} */
1538
1528
  s
1539
1529
  ));
1540
1530
  }
1541
1531
  }
1542
- function Pn(e) {
1543
- var t = L, r = F, n = j, i = _, s = ne, a = O, o = Z, u = Ee, l = e.f;
1532
+ function Cn(e) {
1533
+ var t = L, r = F, n = U, i = _, s = se, a = V, o = z, u = we, l = e.f;
1544
1534
  L = /** @type {null | Value[]} */
1545
- null, F = 0, j = null, _ = l & (oe | _e) ? null : e, ne = null, Re(e.ctx), Z = !1, Ee = ++ge, e.ac !== null && (_n(() => {
1546
- e.ac.abort(Ne);
1535
+ null, F = 0, U = null, _ = l & (le | me) ? null : e, se = null, Me(e.ctx), z = !1, we = ++Ee, e.ac !== null && (mn(() => {
1536
+ e.ac.abort(Pe);
1547
1537
  }), e.ac = null);
1548
1538
  try {
1549
1539
  e.f |= Vt;
@@ -1553,50 +1543,50 @@ function Pn(e) {
1553
1543
  ), c = f(), h = e.deps;
1554
1544
  if (L !== null) {
1555
1545
  var d;
1556
- if (gt(e, F), h !== null && F > 0)
1546
+ if (Et(e, F), h !== null && F > 0)
1557
1547
  for (h.length = F + L.length, d = 0; d < L.length; d++)
1558
1548
  h[F + d] = L[d];
1559
1549
  else
1560
1550
  e.deps = h = L;
1561
- if (_r() && e.f & X)
1551
+ if (_r() && e.f & j)
1562
1552
  for (d = F; d < h.length; d++)
1563
1553
  (h[d].reactions ??= []).push(e);
1564
- } else h !== null && F < h.length && (gt(e, F), h.length = F);
1565
- if (rt() && j !== null && !Z && h !== null && !(e.f & (P | ue | R)))
1554
+ } else h !== null && F < h.length && (Et(e, F), h.length = F);
1555
+ if (en() && U !== null && !z && h !== null && !(e.f & (O | fe | R)))
1566
1556
  for (d = 0; d < /** @type {Source[]} */
1567
- j.length; d++)
1568
- On(
1569
- j[d],
1557
+ U.length; d++)
1558
+ Pn(
1559
+ U[d],
1570
1560
  /** @type {Effect} */
1571
1561
  e
1572
1562
  );
1573
1563
  if (i !== null && i !== e) {
1574
- if (ge++, i.deps !== null)
1564
+ if (Ee++, i.deps !== null)
1575
1565
  for (let p = 0; p < r; p += 1)
1576
- i.deps[p].rv = ge;
1566
+ i.deps[p].rv = Ee;
1577
1567
  if (t !== null)
1578
1568
  for (const p of t)
1579
- p.rv = ge;
1580
- j !== null && (n === null ? n = j : n.push(.../** @type {Source[]} */
1581
- j));
1569
+ p.rv = Ee;
1570
+ U !== null && (n === null ? n = U : n.push(.../** @type {Source[]} */
1571
+ U));
1582
1572
  }
1583
1573
  return e.f & pe && (e.f ^= pe), c;
1584
1574
  } catch (p) {
1585
- return tn(p);
1575
+ return rn(p);
1586
1576
  } finally {
1587
- e.f ^= Vt, L = t, F = r, j = n, _ = i, ne = s, Re(a), Z = o, Ee = u;
1577
+ e.f ^= Vt, L = t, F = r, U = n, _ = i, se = s, Me(a), z = o, we = u;
1588
1578
  }
1589
1579
  }
1590
1580
  function cs(e, t) {
1591
1581
  let r = t.reactions;
1592
1582
  if (r !== null) {
1593
- var n = bi.call(r, e);
1583
+ var n = mi.call(r, e);
1594
1584
  if (n !== -1) {
1595
1585
  var i = r.length - 1;
1596
1586
  i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
1597
1587
  }
1598
1588
  }
1599
- if (r === null && t.f & P && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1589
+ if (r === null && t.f & O && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1600
1590
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1601
1591
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1602
1592
  (L === null || !L.includes(t))) {
@@ -1604,40 +1594,40 @@ function cs(e, t) {
1604
1594
  /** @type {Derived} */
1605
1595
  t
1606
1596
  );
1607
- s.f & X && (s.f ^= X, s.f &= ~xe), dr(s), un(s), gt(s, 0);
1597
+ s.f & j && (s.f ^= j, s.f &= ~Te), dr(s), ln(s), Et(s, 0);
1608
1598
  }
1609
1599
  }
1610
- function gt(e, t) {
1600
+ function Et(e, t) {
1611
1601
  var r = e.deps;
1612
1602
  if (r !== null)
1613
1603
  for (var n = t; n < r.length; n++)
1614
1604
  cs(e, r[n]);
1615
1605
  }
1616
- function Qe(e) {
1606
+ function Je(e) {
1617
1607
  var t = e.f;
1618
- if (!(t & de)) {
1619
- B(e, I);
1620
- var r = b, n = ye;
1621
- b = e, ye = !0;
1608
+ if (!(t & ie)) {
1609
+ B(e, P);
1610
+ var r = b, n = xe;
1611
+ b = e, xe = !0;
1622
1612
  try {
1623
- t & (ae | Wr) ? us(e) : xn(e), En(e);
1624
- var i = Pn(e);
1625
- e.teardown = typeof i == "function" ? i : null, e.wv = Bn;
1613
+ t & (ue | qr) ? us(e) : wn(e), xn(e);
1614
+ var i = Cn(e);
1615
+ e.teardown = typeof i == "function" ? i : null, e.wv = Nn;
1626
1616
  var s;
1627
- Gt && pi && e.f & R && e.deps;
1617
+ jt && Di && e.f & R && e.deps;
1628
1618
  } finally {
1629
- ye = n, b = r;
1619
+ xe = n, b = r;
1630
1620
  }
1631
1621
  }
1632
1622
  }
1633
- function y(e) {
1634
- var t = e.f, r = (t & P) !== 0;
1635
- if (_ !== null && !Z) {
1636
- var n = b !== null && (b.f & de) !== 0;
1637
- if (!n && !ne?.includes(e)) {
1623
+ function g(e) {
1624
+ var t = e.f, r = (t & O) !== 0;
1625
+ if (_ !== null && !z) {
1626
+ var n = b !== null && (b.f & ie) !== 0;
1627
+ if (!n && !se?.includes(e)) {
1638
1628
  var i = _.deps;
1639
1629
  if (_.f & Vt)
1640
- e.rv < ge && (e.rv = ge, L === null && i !== null && i[F] === e ? F++ : L === null ? L = [e] : L.push(e));
1630
+ e.rv < Ee && (e.rv = Ee, L === null && i !== null && i[F] === e ? F++ : L === null ? L = [e] : L.push(e));
1641
1631
  else {
1642
1632
  (_.deps ??= []).push(e);
1643
1633
  var s = e.reactions;
@@ -1645,63 +1635,63 @@ function y(e) {
1645
1635
  }
1646
1636
  }
1647
1637
  }
1648
- if (we && ve.has(e))
1638
+ if (_e && ve.has(e))
1649
1639
  return ve.get(e);
1650
1640
  if (r) {
1651
1641
  var a = (
1652
1642
  /** @type {Derived} */
1653
1643
  e
1654
1644
  );
1655
- if (we) {
1645
+ if (_e) {
1656
1646
  var o = a.v;
1657
- return (!(a.f & I) && a.reactions !== null || Cn(a)) && (o = vr(a)), ve.set(a, o), o;
1647
+ return (!(a.f & P) && a.reactions !== null || Rn(a)) && (o = vr(a)), ve.set(a, o), o;
1658
1648
  }
1659
- var u = (a.f & X) === 0 && !Z && _ !== null && (ye || (_.f & X) !== 0), l = a.deps === null;
1660
- it(a) && (u && (a.f |= X), ln(a)), u && !l && In(a);
1649
+ var u = (a.f & j) === 0 && !z && _ !== null && (xe || (_.f & j) !== 0), l = a.deps === null;
1650
+ it(a) && (u && (a.f |= j), fn(a)), u && !l && In(a);
1661
1651
  }
1662
- if (q?.has(e))
1663
- return q.get(e);
1652
+ if (W?.has(e))
1653
+ return W.get(e);
1664
1654
  if (e.f & pe)
1665
1655
  throw e.v;
1666
1656
  return e.v;
1667
1657
  }
1668
1658
  function In(e) {
1669
1659
  if (e.deps !== null) {
1670
- e.f |= X;
1660
+ e.f |= j;
1671
1661
  for (const t of e.deps)
1672
- (t.reactions ??= []).push(e), t.f & P && !(t.f & X) && In(
1662
+ (t.reactions ??= []).push(e), t.f & O && !(t.f & j) && In(
1673
1663
  /** @type {Derived} */
1674
1664
  t
1675
1665
  );
1676
1666
  }
1677
1667
  }
1678
- function Cn(e) {
1668
+ function Rn(e) {
1679
1669
  if (e.v === N) return !0;
1680
1670
  if (e.deps === null) return !1;
1681
1671
  for (const t of e.deps)
1682
- if (ve.has(t) || t.f & P && Cn(
1672
+ if (ve.has(t) || t.f & O && Rn(
1683
1673
  /** @type {Derived} */
1684
1674
  t
1685
1675
  ))
1686
1676
  return !0;
1687
1677
  return !1;
1688
1678
  }
1689
- function Rn(e) {
1690
- var t = Z;
1679
+ function Ln(e) {
1680
+ var t = z;
1691
1681
  try {
1692
- return Z = !0, e();
1682
+ return z = !0, e();
1693
1683
  } finally {
1694
- Z = t;
1684
+ z = t;
1695
1685
  }
1696
1686
  }
1697
- const Ln = /* @__PURE__ */ new Set(), zt = /* @__PURE__ */ new Set();
1687
+ const Mn = /* @__PURE__ */ new Set(), zt = /* @__PURE__ */ new Set();
1698
1688
  function ds(e) {
1699
1689
  for (var t = 0; t < e.length; t++)
1700
- Ln.add(e[t]);
1690
+ Mn.add(e[t]);
1701
1691
  for (var r of zt)
1702
1692
  r(e);
1703
1693
  }
1704
- let Ar = null;
1694
+ let Br = null;
1705
1695
  function ft(e) {
1706
1696
  var t = this, r = (
1707
1697
  /** @type {Node} */
@@ -1710,8 +1700,8 @@ function ft(e) {
1710
1700
  /** @type {null | Element} */
1711
1701
  i[0] || e.target
1712
1702
  );
1713
- Ar = e;
1714
- var a = 0, o = Ar === e && e.__root;
1703
+ Br = e;
1704
+ var a = 0, o = Br === e && e.__root;
1715
1705
  if (o) {
1716
1706
  var u = i.indexOf(o);
1717
1707
  if (u !== -1 && (t === document || t === /** @type {any} */
@@ -1726,24 +1716,24 @@ function ft(e) {
1726
1716
  }
1727
1717
  if (s = /** @type {Element} */
1728
1718
  i[a] || e.target, s !== t) {
1729
- Ze(e, "currentTarget", {
1719
+ Ye(e, "currentTarget", {
1730
1720
  configurable: !0,
1731
1721
  get() {
1732
1722
  return s || r;
1733
1723
  }
1734
1724
  });
1735
1725
  var f = _, c = b;
1736
- $(null), ee(null);
1726
+ M(null), K(null);
1737
1727
  try {
1738
1728
  for (var h, d = []; s !== null; ) {
1739
1729
  var p = s.assignedSlot || s.parentNode || /** @type {any} */
1740
1730
  s.host || null;
1741
1731
  try {
1742
- var g = s["__" + n];
1743
- g != null && (!/** @type {any} */
1732
+ var y = s["__" + n];
1733
+ y != null && (!/** @type {any} */
1744
1734
  s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1745
1735
  // -> the target could not have been disabled because it emits the event in the first place
1746
- e.target === s) && g.call(s, e);
1736
+ e.target === s) && y.call(s, e);
1747
1737
  } catch (H) {
1748
1738
  h ? d.push(H) : h = H;
1749
1739
  }
@@ -1759,7 +1749,7 @@ function ft(e) {
1759
1749
  throw h;
1760
1750
  }
1761
1751
  } finally {
1762
- e.__root = t, delete e.currentTarget, $(f), ee(c);
1752
+ e.__root = t, delete e.currentTarget, M(f), K(c);
1763
1753
  }
1764
1754
  }
1765
1755
  }
@@ -1767,7 +1757,7 @@ function ps(e) {
1767
1757
  var t = document.createElement("template");
1768
1758
  return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
1769
1759
  }
1770
- function Je(e, t) {
1760
+ function Ke(e, t) {
1771
1761
  var r = (
1772
1762
  /** @type {Effect} */
1773
1763
  b
@@ -1776,24 +1766,24 @@ function Je(e, t) {
1776
1766
  }
1777
1767
  // @__NO_SIDE_EFFECTS__
1778
1768
  function vs(e, t) {
1779
- var r = (t & _i) !== 0, n, i = !e.startsWith("<!>");
1769
+ var r = (t & vi) !== 0, n, i = !e.startsWith("<!>");
1780
1770
  return () => {
1781
1771
  if (A)
1782
- return Je(E, null), E;
1772
+ return Ke(E, null), E;
1783
1773
  n === void 0 && (n = ps(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
1784
- /* @__PURE__ */ Ye(n));
1774
+ /* @__PURE__ */ Qe(n));
1785
1775
  var s = (
1786
1776
  /** @type {TemplateNode} */
1787
- r || dn ? document.importNode(n, !0) : n.cloneNode(!0)
1777
+ r || pn ? document.importNode(n, !0) : n.cloneNode(!0)
1788
1778
  );
1789
- return Je(s, s), s;
1779
+ return Ke(s, s), s;
1790
1780
  };
1791
1781
  }
1792
1782
  function _s() {
1793
1783
  if (A)
1794
- return Je(E, null), E;
1795
- var e = document.createDocumentFragment(), t = document.createComment(""), r = se();
1796
- return e.append(t, r), Je(t, r), e;
1784
+ return Ke(E, null), E;
1785
+ var e = document.createDocumentFragment(), t = document.createComment(""), r = oe();
1786
+ return e.append(t, r), Ke(t, r), e;
1797
1787
  }
1798
1788
  function Zt(e, t) {
1799
1789
  if (A) {
@@ -1801,7 +1791,7 @@ function Zt(e, t) {
1801
1791
  /** @type {Effect & { nodes: EffectNodes }} */
1802
1792
  b
1803
1793
  );
1804
- (!(r.f & St) || r.nodes.end === null) && (r.nodes.end = E), hr();
1794
+ (!(r.f & Ht) || r.nodes.end === null) && (r.nodes.end = E), hr();
1805
1795
  return;
1806
1796
  }
1807
1797
  e !== null && e.before(
@@ -1813,40 +1803,40 @@ const ms = ["touchstart", "touchmove"];
1813
1803
  function bs(e) {
1814
1804
  return ms.includes(e);
1815
1805
  }
1816
- function Br(e, t) {
1806
+ function Nr(e, t) {
1817
1807
  var r = t == null ? "" : typeof t == "object" ? t + "" : t;
1818
1808
  r !== (e.__t ??= e.nodeValue) && (e.__t = r, e.nodeValue = r + "");
1819
1809
  }
1820
- function Mn(e, t) {
1821
- return $n(e, t);
1810
+ function $n(e, t) {
1811
+ return Dn(e, t);
1822
1812
  }
1823
1813
  function gs(e, t) {
1824
1814
  qt(), t.intro = t.intro ?? !1;
1825
1815
  const r = t.target, n = A, i = E;
1826
1816
  try {
1827
- for (var s = /* @__PURE__ */ Ye(r); s && (s.nodeType !== tt || /** @type {Comment} */
1828
- s.data !== Gr); )
1829
- s = /* @__PURE__ */ le(s);
1817
+ for (var s = /* @__PURE__ */ Qe(r); s && (s.nodeType !== rt || /** @type {Comment} */
1818
+ s.data !== jr); )
1819
+ s = /* @__PURE__ */ he(s);
1830
1820
  if (!s)
1831
- throw Ie;
1832
- Oe(!0), Y(
1821
+ throw Re;
1822
+ Ce(!0), Z(
1833
1823
  /** @type {Comment} */
1834
1824
  s
1835
1825
  );
1836
- const a = $n(e, { ...t, anchor: s });
1837
- return Oe(!1), /** @type {Exports} */
1826
+ const a = Dn(e, { ...t, anchor: s });
1827
+ return Ce(!1), /** @type {Exports} */
1838
1828
  a;
1839
1829
  } catch (a) {
1840
1830
  if (a instanceof Error && a.message.split(`
1841
1831
  `).some((o) => o.startsWith("https://svelte.dev/e/")))
1842
1832
  throw a;
1843
- return a !== Ie && console.warn("Failed to hydrate: ", a), t.recover === !1 && Oi(), qt(), es(r), Oe(!1), Mn(e, t);
1833
+ return a !== Re && console.warn("Failed to hydrate: ", a), t.recover === !1 && Ni(), qt(), Ki(r), Ce(!1), $n(e, t);
1844
1834
  } finally {
1845
- Oe(n), Y(i);
1835
+ Ce(n), Z(i);
1846
1836
  }
1847
1837
  }
1848
- const Ae = /* @__PURE__ */ new Map();
1849
- function $n(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0 }) {
1838
+ const Ne = /* @__PURE__ */ new Map();
1839
+ function Dn(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0 }) {
1850
1840
  qt();
1851
1841
  var o = /* @__PURE__ */ new Set(), u = (c) => {
1852
1842
  for (var h = 0; h < c.length; h++) {
@@ -1855,14 +1845,14 @@ function $n(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
1855
1845
  o.add(d);
1856
1846
  var p = bs(d);
1857
1847
  t.addEventListener(d, ft, { passive: p });
1858
- var g = Ae.get(d);
1859
- g === void 0 ? (document.addEventListener(d, ft, { passive: p }), Ae.set(d, 1)) : Ae.set(d, g + 1);
1848
+ var y = Ne.get(d);
1849
+ y === void 0 ? (document.addEventListener(d, ft, { passive: p }), Ne.set(d, 1)) : Ne.set(d, y + 1);
1860
1850
  }
1861
1851
  }
1862
1852
  };
1863
- u(gi(Ln)), zt.add(u);
1864
- var l = void 0, f = ss(() => {
1865
- var c = r ?? t.appendChild(se());
1853
+ u(bi(Mn)), zt.add(u);
1854
+ var l = void 0, f = is(() => {
1855
+ var c = r ?? t.appendChild(oe());
1866
1856
  return Vi(
1867
1857
  /** @type {TemplateNode} */
1868
1858
  c,
@@ -1875,17 +1865,17 @@ function $n(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
1875
1865
  Jr({});
1876
1866
  var d = (
1877
1867
  /** @type {ComponentContext} */
1878
- O
1868
+ V
1879
1869
  );
1880
1870
  d.c = s;
1881
1871
  }
1882
- if (i && (n.$$events = i), A && Je(
1872
+ if (i && (n.$$events = i), A && Ke(
1883
1873
  /** @type {TemplateNode} */
1884
1874
  h,
1885
1875
  null
1886
- ), l = e(h, n) || {}, A && (b.nodes.end = E, E === null || E.nodeType !== tt || /** @type {Comment} */
1887
- E.data !== jr))
1888
- throw Ht(), Ie;
1876
+ ), l = e(h, n) || {}, A && (b.nodes.end = E, E === null || E.nodeType !== rt || /** @type {Comment} */
1877
+ E.data !== Vr))
1878
+ throw At(), Re;
1889
1879
  s && Kr();
1890
1880
  }
1891
1881
  ), () => {
@@ -1893,9 +1883,9 @@ function $n(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
1893
1883
  t.removeEventListener(h, ft);
1894
1884
  var d = (
1895
1885
  /** @type {number} */
1896
- Ae.get(h)
1886
+ Ne.get(h)
1897
1887
  );
1898
- --d === 0 ? (document.removeEventListener(h, ft), Ae.delete(h)) : Ae.set(h, d);
1888
+ --d === 0 ? (document.removeEventListener(h, ft), Ne.delete(h)) : Ne.set(h, d);
1899
1889
  }
1900
1890
  zt.delete(u), c !== r && c.parentNode?.removeChild(c);
1901
1891
  };
@@ -1970,19 +1960,19 @@ class Es {
1970
1960
  if (this.#e.delete(s), s === t)
1971
1961
  break;
1972
1962
  const o = this.#r.get(a);
1973
- o && (D(o.effect), this.#r.delete(a));
1963
+ o && ($(o.effect), this.#r.delete(a));
1974
1964
  }
1975
1965
  for (const [s, a] of this.#t) {
1976
1966
  if (s === r || this.#s.has(s)) continue;
1977
1967
  const o = () => {
1978
1968
  if (Array.from(this.#e.values()).includes(s)) {
1979
1969
  var l = document.createDocumentFragment();
1980
- Hn(a, l), l.append(se()), this.#r.set(s, { effect: a, fragment: l });
1970
+ An(a, l), l.append(oe()), this.#r.set(s, { effect: a, fragment: l });
1981
1971
  } else
1982
- D(a);
1972
+ $(a);
1983
1973
  this.#s.delete(s), this.#t.delete(s);
1984
1974
  };
1985
- this.#a || !n ? (this.#s.add(s), ze(a, o, !1)) : o();
1975
+ this.#a || !n ? (this.#s.add(s), Ze(a, o, !1)) : o();
1986
1976
  }
1987
1977
  }
1988
1978
  };
@@ -1993,7 +1983,7 @@ class Es {
1993
1983
  this.#e.delete(t);
1994
1984
  const r = Array.from(this.#e.values());
1995
1985
  for (const [n, i] of this.#r)
1996
- r.includes(n) || (D(i.effect), this.#r.delete(n));
1986
+ r.includes(n) || ($(i.effect), this.#r.delete(n));
1997
1987
  };
1998
1988
  /**
1999
1989
  *
@@ -2004,18 +1994,18 @@ class Es {
2004
1994
  var n = (
2005
1995
  /** @type {Batch} */
2006
1996
  S
2007
- ), i = ts();
1997
+ ), i = es();
2008
1998
  if (r && !this.#t.has(t) && !this.#r.has(t))
2009
1999
  if (i) {
2010
- var s = document.createDocumentFragment(), a = se();
2000
+ var s = document.createDocumentFragment(), a = oe();
2011
2001
  s.append(a), this.#r.set(t, {
2012
- effect: re(() => r(a)),
2002
+ effect: ne(() => r(a)),
2013
2003
  fragment: s
2014
2004
  });
2015
2005
  } else
2016
2006
  this.#t.set(
2017
2007
  t,
2018
- re(() => r(this.anchor))
2008
+ ne(() => r(this.anchor))
2019
2009
  );
2020
2010
  if (this.#e.set(n, t), i) {
2021
2011
  for (const [o, u] of this.#t)
@@ -2029,29 +2019,48 @@ class Es {
2029
2019
  }
2030
2020
  function xs(e, t, r = !1) {
2031
2021
  A && hr();
2032
- var n = new Es(e), i = r ? Ce : 0;
2022
+ var n = new Es(e), i = r ? Le : 0;
2033
2023
  function s(a, o) {
2034
2024
  if (A) {
2035
- const l = $i(e) === or;
2025
+ const l = Mi(e) === or;
2036
2026
  if (a === l) {
2037
- var u = zr();
2038
- Y(u), n.anchor = u, Oe(!1), n.ensure(a, o), Oe(!0);
2027
+ var u = Zr();
2028
+ Z(u), n.anchor = u, Ce(!1), n.ensure(a, o), Ce(!0);
2039
2029
  return;
2040
2030
  }
2041
2031
  }
2042
2032
  n.ensure(a, o);
2043
2033
  }
2044
- yn(() => {
2034
+ En(() => {
2045
2035
  var a = !1;
2046
2036
  t((o, u = !0) => {
2047
2037
  a = !0, s(u, o);
2048
2038
  }), a || s(!1, null);
2049
2039
  }, i);
2050
2040
  }
2041
+ function ws(e, t) {
2042
+ ss(() => {
2043
+ var r = e.getRootNode(), n = (
2044
+ /** @type {ShadowRoot} */
2045
+ r.host ? (
2046
+ /** @type {ShadowRoot} */
2047
+ r
2048
+ ) : (
2049
+ /** @type {Document} */
2050
+ r.head ?? /** @type {Document} */
2051
+ r.ownerDocument.head
2052
+ )
2053
+ );
2054
+ if (!n.querySelector("#" + t.hash)) {
2055
+ const i = document.createElement("style");
2056
+ i.id = t.hash, i.textContent = t.code, n.appendChild(i);
2057
+ }
2058
+ });
2059
+ }
2051
2060
  function mr(e, t, r) {
2052
2061
  if (e == null)
2053
- return t(void 0), r && r(void 0), ce;
2054
- const n = Rn(
2062
+ return t(void 0), r && r(void 0), de;
2063
+ const n = Ln(
2055
2064
  () => e.subscribe(
2056
2065
  t,
2057
2066
  // @ts-expect-error
@@ -2060,24 +2069,24 @@ function mr(e, t, r) {
2060
2069
  );
2061
2070
  return n.unsubscribe ? () => n.unsubscribe() : n;
2062
2071
  }
2063
- const Be = [];
2064
- function ws(e, t) {
2072
+ const Oe = [];
2073
+ function Ts(e, t) {
2065
2074
  return {
2066
- subscribe: Bt(e, t).subscribe
2075
+ subscribe: Nt(e, t).subscribe
2067
2076
  };
2068
2077
  }
2069
- function Bt(e, t = ce) {
2078
+ function Nt(e, t = de) {
2070
2079
  let r = null;
2071
2080
  const n = /* @__PURE__ */ new Set();
2072
2081
  function i(o) {
2073
- if (Yr(e, o) && (e = o, r)) {
2074
- const u = !Be.length;
2082
+ if (Qr(e, o) && (e = o, r)) {
2083
+ const u = !Oe.length;
2075
2084
  for (const l of n)
2076
- l[1](), Be.push(l, e);
2085
+ l[1](), Oe.push(l, e);
2077
2086
  if (u) {
2078
- for (let l = 0; l < Be.length; l += 2)
2079
- Be[l][0](Be[l + 1]);
2080
- Be.length = 0;
2087
+ for (let l = 0; l < Oe.length; l += 2)
2088
+ Oe[l][0](Oe[l + 1]);
2089
+ Oe.length = 0;
2081
2090
  }
2082
2091
  }
2083
2092
  }
@@ -2087,9 +2096,9 @@ function Bt(e, t = ce) {
2087
2096
  e
2088
2097
  ));
2089
2098
  }
2090
- function a(o, u = ce) {
2099
+ function a(o, u = de) {
2091
2100
  const l = [o, u];
2092
- return n.add(l), n.size === 1 && (r = t(i, s) || ce), o(
2101
+ return n.add(l), n.size === 1 && (r = t(i, s) || de), o(
2093
2102
  /** @type {T} */
2094
2103
  e
2095
2104
  ), () => {
@@ -2098,66 +2107,66 @@ function Bt(e, t = ce) {
2098
2107
  }
2099
2108
  return { set: i, update: s, subscribe: a };
2100
2109
  }
2101
- function Fe(e, t, r) {
2110
+ function Ge(e, t, r) {
2102
2111
  const n = !Array.isArray(e), i = n ? [e] : e;
2103
2112
  if (!i.every(Boolean))
2104
2113
  throw new Error("derived() expects stores as input, got a falsy value");
2105
2114
  const s = t.length < 2;
2106
- return ws(r, (a, o) => {
2115
+ return Ts(r, (a, o) => {
2107
2116
  let u = !1;
2108
2117
  const l = [];
2109
- let f = 0, c = ce;
2118
+ let f = 0, c = de;
2110
2119
  const h = () => {
2111
2120
  if (f)
2112
2121
  return;
2113
2122
  c();
2114
2123
  const p = t(n ? l[0] : l, a, o);
2115
- s ? a(p) : c = typeof p == "function" ? p : ce;
2124
+ s ? a(p) : c = typeof p == "function" ? p : de;
2116
2125
  }, d = i.map(
2117
- (p, g) => mr(
2126
+ (p, y) => mr(
2118
2127
  p,
2119
2128
  (H) => {
2120
- l[g] = H, f &= ~(1 << g), u && h();
2129
+ l[y] = H, f &= ~(1 << y), u && h();
2121
2130
  },
2122
2131
  () => {
2123
- f |= 1 << g;
2132
+ f |= 1 << y;
2124
2133
  }
2125
2134
  )
2126
2135
  );
2127
2136
  return u = !0, h(), function() {
2128
- Vr(d), c(), u = !1;
2137
+ Xr(d), c(), u = !1;
2129
2138
  };
2130
2139
  });
2131
2140
  }
2132
- function Ts(e) {
2141
+ function Ss(e) {
2133
2142
  let t;
2134
2143
  return mr(e, (r) => t = r)(), t;
2135
2144
  }
2136
2145
  let Qt = Symbol();
2137
- function Ss(e, t, r) {
2146
+ function Hs(e, t, r) {
2138
2147
  const n = r[t] ??= {
2139
2148
  store: null,
2140
- source: /* @__PURE__ */ hn(void 0),
2141
- unsubscribe: ce
2149
+ source: /* @__PURE__ */ cn(void 0),
2150
+ unsubscribe: de
2142
2151
  };
2143
2152
  if (n.store !== e && !(Qt in r))
2144
2153
  if (n.unsubscribe(), n.store = e ?? null, e == null)
2145
- n.source.v = void 0, n.unsubscribe = ce;
2154
+ n.source.v = void 0, n.unsubscribe = de;
2146
2155
  else {
2147
2156
  var i = !0;
2148
2157
  n.unsubscribe = mr(e, (s) => {
2149
- i ? n.source.v = s : M(n.source, s);
2158
+ i ? n.source.v = s : I(n.source, s);
2150
2159
  }), i = !1;
2151
2160
  }
2152
- return e && Qt in r ? Ts(e) : y(n.source);
2161
+ return e && Qt in r ? Ss(e) : g(n.source);
2153
2162
  }
2154
- function Hs() {
2163
+ function As() {
2155
2164
  const e = {};
2156
2165
  function t() {
2157
- mn(() => {
2166
+ bn(() => {
2158
2167
  for (var r in e)
2159
2168
  e[r].unsubscribe();
2160
- Ze(e, Qt, {
2169
+ Ye(e, Qt, {
2161
2170
  enumerable: !1,
2162
2171
  value: !0
2163
2172
  });
@@ -2165,7 +2174,7 @@ function Hs() {
2165
2174
  }
2166
2175
  return [e, t];
2167
2176
  }
2168
- function Lt(e, t, r, n) {
2177
+ function Mt(e, t, r, n) {
2169
2178
  var i = (
2170
2179
  /** @type {V} */
2171
2180
  n
@@ -2174,18 +2183,32 @@ function Lt(e, t, r, n) {
2174
2183
  o = /** @type {V} */
2175
2184
  e[t], o === void 0 && n !== void 0 && (o = a());
2176
2185
  var u;
2177
- return u = () => {
2178
- var l = (
2186
+ u = () => {
2187
+ var h = (
2179
2188
  /** @type {V} */
2180
2189
  e[t]
2181
2190
  );
2182
- return l === void 0 ? a() : (s = !0, l);
2183
- }, u;
2191
+ return h === void 0 ? a() : (s = !0, h);
2192
+ };
2193
+ var l = !1, f = /* @__PURE__ */ pr(() => (l = !1, u())), c = (
2194
+ /** @type {Effect} */
2195
+ b
2196
+ );
2197
+ return (
2198
+ /** @type {() => V} */
2199
+ function(h, d) {
2200
+ if (arguments.length > 0) {
2201
+ const p = d ? g(f) : h;
2202
+ return I(f, p), l = !0, i !== void 0 && (i = p), h;
2203
+ }
2204
+ return _e && l || c.f & ie ? f.v : g(f);
2205
+ }
2206
+ );
2184
2207
  }
2185
- function As(e) {
2186
- return new Bs(e);
2208
+ function Bs(e) {
2209
+ return new Ns(e);
2187
2210
  }
2188
- class Bs {
2211
+ class Ns {
2189
2212
  /** @type {any} */
2190
2213
  #e;
2191
2214
  /** @type {Record<string, any>} */
@@ -2197,33 +2220,33 @@ class Bs {
2197
2220
  */
2198
2221
  constructor(t) {
2199
2222
  var r = /* @__PURE__ */ new Map(), n = (s, a) => {
2200
- var o = /* @__PURE__ */ hn(a, !1, !1);
2223
+ var o = /* @__PURE__ */ cn(a, !1, !1);
2201
2224
  return r.set(s, o), o;
2202
2225
  };
2203
2226
  const i = new Proxy(
2204
2227
  { ...t.props || {}, $$events: {} },
2205
2228
  {
2206
2229
  get(s, a) {
2207
- return y(r.get(a) ?? n(a, Reflect.get(s, a)));
2230
+ return g(r.get(a) ?? n(a, Reflect.get(s, a)));
2208
2231
  },
2209
2232
  has(s, a) {
2210
- return a === Ti ? !0 : (y(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
2233
+ return a === wi ? !0 : (g(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
2211
2234
  },
2212
2235
  set(s, a, o) {
2213
- return M(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
2236
+ return I(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
2214
2237
  }
2215
2238
  }
2216
2239
  );
2217
- this.#t = (t.hydrate ? gs : Mn)(t.component, {
2240
+ this.#t = (t.hydrate ? gs : $n)(t.component, {
2218
2241
  target: t.target,
2219
2242
  anchor: t.anchor,
2220
2243
  props: i,
2221
2244
  context: t.context,
2222
2245
  intro: t.intro ?? !1,
2223
2246
  recover: t.recover
2224
- }), (!t?.props?.$$host || t.sync === !1) && Fi(), this.#e = i.$$events;
2247
+ }), (!t?.props?.$$host || t.sync === !1) && ct(), this.#e = i.$$events;
2225
2248
  for (const s of Object.keys(this.#t))
2226
- s === "$set" || s === "$destroy" || s === "$on" || Ze(this, s, {
2249
+ s === "$set" || s === "$destroy" || s === "$on" || Ye(this, s, {
2227
2250
  get() {
2228
2251
  return this.#t[s];
2229
2252
  },
@@ -2263,8 +2286,8 @@ class Bs {
2263
2286
  this.#t.$destroy();
2264
2287
  }
2265
2288
  }
2266
- let Dn;
2267
- typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
2289
+ let Fn;
2290
+ typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
2268
2291
  /** The Svelte component constructor */
2269
2292
  $$ctor;
2270
2293
  /** Slots */
@@ -2326,16 +2349,16 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
2326
2349
  };
2327
2350
  if (await Promise.resolve(), !this.$$cn || this.$$c)
2328
2351
  return;
2329
- const t = {}, r = Ns(this);
2352
+ const t = {}, r = Os(this);
2330
2353
  for (const n of this.$$s)
2331
2354
  n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
2332
2355
  for (const n of this.attributes) {
2333
2356
  const i = this.$$g_p(n.name);
2334
- i in this.$$d || (this.$$d[i] = ct(i, n.value, this.$$p_d, "toProp"));
2357
+ i in this.$$d || (this.$$d[i] = dt(i, n.value, this.$$p_d, "toProp"));
2335
2358
  }
2336
2359
  for (const n in this.$$p_d)
2337
2360
  !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2338
- this.$$c = As({
2361
+ this.$$c = Bs({
2339
2362
  component: this.$$ctor,
2340
2363
  target: this.shadowRoot || this,
2341
2364
  props: {
@@ -2343,13 +2366,13 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
2343
2366
  $$slots: t,
2344
2367
  $$host: this
2345
2368
  }
2346
- }), this.$$me = is(() => {
2347
- gn(() => {
2369
+ }), this.$$me = ns(() => {
2370
+ yn(() => {
2348
2371
  this.$$r = !0;
2349
- for (const n of vt(this.$$c)) {
2372
+ for (const n of _t(this.$$c)) {
2350
2373
  if (!this.$$p_d[n]?.reflect) continue;
2351
2374
  this.$$d[n] = this.$$c[n];
2352
- const i = ct(
2375
+ const i = dt(
2353
2376
  n,
2354
2377
  this.$$d[n],
2355
2378
  this.$$p_d,
@@ -2376,7 +2399,7 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
2376
2399
  * @param {string} newValue
2377
2400
  */
2378
2401
  attributeChangedCallback(e, t, r) {
2379
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ct(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2402
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = dt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2380
2403
  }
2381
2404
  disconnectedCallback() {
2382
2405
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2387,12 +2410,12 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
2387
2410
  * @param {string} attribute_name
2388
2411
  */
2389
2412
  $$g_p(e) {
2390
- return vt(this.$$p_d).find(
2413
+ return _t(this.$$p_d).find(
2391
2414
  (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
2392
2415
  ) || e;
2393
2416
  }
2394
2417
  });
2395
- function ct(e, t, r, n) {
2418
+ function dt(e, t, r, n) {
2396
2419
  const i = r[e]?.type;
2397
2420
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
2398
2421
  return t;
@@ -2421,7 +2444,7 @@ function ct(e, t, r, n) {
2421
2444
  return t;
2422
2445
  }
2423
2446
  }
2424
- function Ns(e) {
2447
+ function Os(e) {
2425
2448
  const t = {};
2426
2449
  return e.childNodes.forEach((r) => {
2427
2450
  t[
@@ -2430,33 +2453,33 @@ function Ns(e) {
2430
2453
  ] = !0;
2431
2454
  }), t;
2432
2455
  }
2433
- function Os(e, t, r, n, i, s) {
2434
- let a = class extends Dn {
2456
+ function Ps(e, t, r, n, i, s) {
2457
+ let a = class extends Fn {
2435
2458
  constructor() {
2436
2459
  super(e, r, i), this.$$p_d = t;
2437
2460
  }
2438
2461
  static get observedAttributes() {
2439
- return vt(t).map(
2462
+ return _t(t).map(
2440
2463
  (o) => (t[o].attribute || o).toLowerCase()
2441
2464
  );
2442
2465
  }
2443
2466
  };
2444
- return vt(t).forEach((o) => {
2445
- Ze(a.prototype, o, {
2467
+ return _t(t).forEach((o) => {
2468
+ Ye(a.prototype, o, {
2446
2469
  get() {
2447
2470
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
2448
2471
  },
2449
2472
  set(u) {
2450
- u = ct(o, u, t), this.$$d[o] = u;
2473
+ u = dt(o, u, t), this.$$d[o] = u;
2451
2474
  var l = this.$$c;
2452
2475
  if (l) {
2453
- var f = Pe(l, o)?.get;
2476
+ var f = Ie(l, o)?.get;
2454
2477
  f ? l[o] = u : l.$set({ [o]: u });
2455
2478
  }
2456
2479
  }
2457
2480
  });
2458
2481
  }), n.forEach((o) => {
2459
- Ze(a.prototype, o, {
2482
+ Ye(a.prototype, o, {
2460
2483
  get() {
2461
2484
  return this.$$c?.[o];
2462
2485
  }
@@ -2464,28 +2487,28 @@ function Os(e, t, r, n, i, s) {
2464
2487
  }), e.element = /** @type {any} */
2465
2488
  a, a;
2466
2489
  }
2467
- class Un extends Error {
2490
+ class kn extends Error {
2468
2491
  constructor(t, r) {
2469
2492
  super(r), this.code = t, this.name = "ElevateApiError";
2470
2493
  }
2471
2494
  }
2472
- const Ps = async (e) => {
2495
+ const Cs = async (e) => {
2473
2496
  const t = new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${e.locale ?? ""}`), r = new Headers({ "Content-Type": "application/json" });
2474
2497
  e.userSession && r.append("X-SessionId", e.userSession);
2475
2498
  const i = await (await fetch(t.href, { method: "GET", headers: r })).json();
2476
2499
  if (!i.success)
2477
- throw new Un(i.errorCode, i.errorMessage);
2500
+ throw new kn(i.errorCode, i.errorMessage);
2478
2501
  return i.data;
2479
2502
  }, Is = async (e) => {
2480
2503
  const t = new URL(`${e.apiEndpoint}/elevate/rakeback/claim`), r = new Headers({ "Content-Type": "application/json" });
2481
2504
  e.userSession && r.append("X-Sessionid", e.userSession);
2482
2505
  const i = await (await fetch(t.href, { method: "PUT", headers: r, body: JSON.stringify({}) })).json();
2483
2506
  if (!i.success)
2484
- throw new Un(i.errorCode, i.errorMessage);
2485
- }, Cs = (e, t = 2) => {
2507
+ throw new kn(i.errorCode, i.errorMessage);
2508
+ }, Rs = (e, t = 2) => {
2486
2509
  const [r, n = ""] = e.toString().split(".");
2487
2510
  return t <= 0 ? r : `${r}.${n ? n.slice(0, t).padEnd(t, "0") : "0".repeat(t)}`;
2488
- }, Rs = (e, t = "en") => {
2511
+ }, Ls = (e, t = "en") => {
2489
2512
  if (!e)
2490
2513
  return "";
2491
2514
  try {
@@ -2497,89 +2520,89 @@ const Ps = async (e) => {
2497
2520
  } catch {
2498
2521
  return e;
2499
2522
  }
2500
- }, Ls = (e) => {
2501
- window.postMessage({ type: "RakebackClaimTrigger", points: e }, window.location.href);
2502
2523
  }, Ms = (e) => {
2503
- window.postMessage({ type: "RakebackClaimSuccess", points: e }, window.location.href);
2524
+ window.postMessage({ type: "RakebackClaimTrigger", points: e }, window.location.href);
2504
2525
  }, $s = (e) => {
2526
+ window.postMessage({ type: "RakebackClaimSuccess", points: e }, window.location.href);
2527
+ }, Ds = (e) => {
2505
2528
  window.postMessage({ type: "RakebackClaimFailed", message: e }, window.location.href);
2506
- }, Ds = () => {
2529
+ }, Fs = () => {
2507
2530
  window.postMessage({ type: "RakebackWalletMissing" }, window.location.href);
2508
2531
  };
2509
- function Us(e) {
2532
+ function ks(e) {
2510
2533
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2511
2534
  }
2512
- var Fs = function(t) {
2513
- return ks(t) && !Gs(t);
2535
+ var Us = function(t) {
2536
+ return Gs(t) && !js(t);
2514
2537
  };
2515
- function ks(e) {
2538
+ function Gs(e) {
2516
2539
  return !!e && typeof e == "object";
2517
2540
  }
2518
- function Gs(e) {
2541
+ function js(e) {
2519
2542
  var t = Object.prototype.toString.call(e);
2520
- return t === "[object RegExp]" || t === "[object Date]" || Xs(e);
2521
- }
2522
- var js = typeof Symbol == "function" && Symbol.for, Vs = js ? Symbol.for("react.element") : 60103;
2523
- function Xs(e) {
2524
- return e.$$typeof === Vs;
2543
+ return t === "[object RegExp]" || t === "[object Date]" || Ws(e);
2525
2544
  }
2545
+ var Vs = typeof Symbol == "function" && Symbol.for, Xs = Vs ? Symbol.for("react.element") : 60103;
2526
2546
  function Ws(e) {
2547
+ return e.$$typeof === Xs;
2548
+ }
2549
+ function qs(e) {
2527
2550
  return Array.isArray(e) ? [] : {};
2528
2551
  }
2529
- function Ke(e, t) {
2530
- return t.clone !== !1 && t.isMergeableObject(e) ? Me(Ws(e), e, t) : e;
2552
+ function et(e, t) {
2553
+ return t.clone !== !1 && t.isMergeableObject(e) ? De(qs(e), e, t) : e;
2531
2554
  }
2532
- function qs(e, t, r) {
2555
+ function zs(e, t, r) {
2533
2556
  return e.concat(t).map(function(n) {
2534
- return Ke(n, r);
2557
+ return et(n, r);
2535
2558
  });
2536
2559
  }
2537
- function zs(e, t) {
2560
+ function Zs(e, t) {
2538
2561
  if (!t.customMerge)
2539
- return Me;
2562
+ return De;
2540
2563
  var r = t.customMerge(e);
2541
- return typeof r == "function" ? r : Me;
2564
+ return typeof r == "function" ? r : De;
2542
2565
  }
2543
- function Zs(e) {
2566
+ function Ys(e) {
2544
2567
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
2545
2568
  return Object.propertyIsEnumerable.call(e, t);
2546
2569
  }) : [];
2547
2570
  }
2548
- function Nr(e) {
2549
- return Object.keys(e).concat(Zs(e));
2571
+ function Or(e) {
2572
+ return Object.keys(e).concat(Ys(e));
2550
2573
  }
2551
- function Fn(e, t) {
2574
+ function Un(e, t) {
2552
2575
  try {
2553
2576
  return t in e;
2554
2577
  } catch {
2555
2578
  return !1;
2556
2579
  }
2557
2580
  }
2558
- function Ys(e, t) {
2559
- return Fn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
2581
+ function Qs(e, t) {
2582
+ return Un(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
2560
2583
  }
2561
- function Qs(e, t, r) {
2584
+ function Js(e, t, r) {
2562
2585
  var n = {};
2563
- return r.isMergeableObject(e) && Nr(e).forEach(function(i) {
2564
- n[i] = Ke(e[i], r);
2565
- }), Nr(t).forEach(function(i) {
2566
- Ys(e, i) || (Fn(e, i) && r.isMergeableObject(t[i]) ? n[i] = zs(i, r)(e[i], t[i], r) : n[i] = Ke(t[i], r));
2586
+ return r.isMergeableObject(e) && Or(e).forEach(function(i) {
2587
+ n[i] = et(e[i], r);
2588
+ }), Or(t).forEach(function(i) {
2589
+ Qs(e, i) || (Un(e, i) && r.isMergeableObject(t[i]) ? n[i] = Zs(i, r)(e[i], t[i], r) : n[i] = et(t[i], r));
2567
2590
  }), n;
2568
2591
  }
2569
- function Me(e, t, r) {
2570
- r = r || {}, r.arrayMerge = r.arrayMerge || qs, r.isMergeableObject = r.isMergeableObject || Fs, r.cloneUnlessOtherwiseSpecified = Ke;
2592
+ function De(e, t, r) {
2593
+ r = r || {}, r.arrayMerge = r.arrayMerge || zs, r.isMergeableObject = r.isMergeableObject || Us, r.cloneUnlessOtherwiseSpecified = et;
2571
2594
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
2572
- return s ? n ? r.arrayMerge(e, t, r) : Qs(e, t, r) : Ke(t, r);
2595
+ return s ? n ? r.arrayMerge(e, t, r) : Js(e, t, r) : et(t, r);
2573
2596
  }
2574
- Me.all = function(t, r) {
2597
+ De.all = function(t, r) {
2575
2598
  if (!Array.isArray(t))
2576
2599
  throw new Error("first argument should be an array");
2577
2600
  return t.reduce(function(n, i) {
2578
- return Me(n, i, r);
2601
+ return De(n, i, r);
2579
2602
  }, {});
2580
2603
  };
2581
- var Js = Me, Ks = Js;
2582
- const ea = /* @__PURE__ */ Us(Ks);
2604
+ var Ks = De, ea = Ks;
2605
+ const ta = /* @__PURE__ */ ks(ea);
2583
2606
  var Jt = function(e, t) {
2584
2607
  return Jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
2585
2608
  r.__proto__ = n;
@@ -2587,7 +2610,7 @@ var Jt = function(e, t) {
2587
2610
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
2588
2611
  }, Jt(e, t);
2589
2612
  };
2590
- function Nt(e, t) {
2613
+ function Ot(e, t) {
2591
2614
  if (typeof t != "function" && t !== null)
2592
2615
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
2593
2616
  Jt(e, t);
@@ -2596,16 +2619,16 @@ function Nt(e, t) {
2596
2619
  }
2597
2620
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
2598
2621
  }
2599
- var J = function() {
2600
- return J = Object.assign || function(t) {
2622
+ var Q = function() {
2623
+ return Q = Object.assign || function(t) {
2601
2624
  for (var r, n = 1, i = arguments.length; n < i; n++) {
2602
2625
  r = arguments[n];
2603
2626
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
2604
2627
  }
2605
2628
  return t;
2606
- }, J.apply(this, arguments);
2629
+ }, Q.apply(this, arguments);
2607
2630
  };
2608
- function ta(e, t) {
2631
+ function ra(e, t) {
2609
2632
  var r = {};
2610
2633
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
2611
2634
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2613,42 +2636,42 @@ function ta(e, t) {
2613
2636
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
2614
2637
  return r;
2615
2638
  }
2616
- function Mt(e, t, r) {
2639
+ function $t(e, t, r) {
2617
2640
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
2618
2641
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
2619
2642
  return e.concat(s || Array.prototype.slice.call(t));
2620
2643
  }
2621
- function $t(e, t) {
2622
- var r = t && t.cache ? t.cache : ua, n = t && t.serializer ? t.serializer : aa, i = t && t.strategy ? t.strategy : ia;
2644
+ function Dt(e, t) {
2645
+ var r = t && t.cache ? t.cache : la, n = t && t.serializer ? t.serializer : oa, i = t && t.strategy ? t.strategy : sa;
2623
2646
  return i(e, {
2624
2647
  cache: r,
2625
2648
  serializer: n
2626
2649
  });
2627
2650
  }
2628
- function ra(e) {
2651
+ function na(e) {
2629
2652
  return e == null || typeof e == "number" || typeof e == "boolean";
2630
2653
  }
2631
- function na(e, t, r, n) {
2632
- var i = ra(n) ? n : r(n), s = t.get(i);
2654
+ function ia(e, t, r, n) {
2655
+ var i = na(n) ? n : r(n), s = t.get(i);
2633
2656
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
2634
2657
  }
2635
- function kn(e, t, r) {
2658
+ function Gn(e, t, r) {
2636
2659
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
2637
2660
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
2638
2661
  }
2639
- function Gn(e, t, r, n, i) {
2662
+ function jn(e, t, r, n, i) {
2640
2663
  return r.bind(t, e, n, i);
2641
2664
  }
2642
- function ia(e, t) {
2643
- var r = e.length === 1 ? na : kn;
2644
- return Gn(e, this, r, t.cache.create(), t.serializer);
2645
- }
2646
2665
  function sa(e, t) {
2647
- return Gn(e, this, kn, t.cache.create(), t.serializer);
2666
+ var r = e.length === 1 ? ia : Gn;
2667
+ return jn(e, this, r, t.cache.create(), t.serializer);
2648
2668
  }
2649
- var aa = function() {
2669
+ function aa(e, t) {
2670
+ return jn(e, this, Gn, t.cache.create(), t.serializer);
2671
+ }
2672
+ var oa = function() {
2650
2673
  return JSON.stringify(arguments);
2651
- }, oa = (
2674
+ }, ua = (
2652
2675
  /** @class */
2653
2676
  function() {
2654
2677
  function e() {
@@ -2660,20 +2683,20 @@ var aa = function() {
2660
2683
  this.cache[t] = r;
2661
2684
  }, e;
2662
2685
  }()
2663
- ), ua = {
2686
+ ), la = {
2664
2687
  create: function() {
2665
- return new oa();
2688
+ return new ua();
2666
2689
  }
2667
- }, Dt = {
2668
- variadic: sa
2669
- }, yt = function() {
2670
- return yt = Object.assign || function(t) {
2690
+ }, Ft = {
2691
+ variadic: aa
2692
+ }, xt = function() {
2693
+ return xt = Object.assign || function(t) {
2671
2694
  for (var r, n = 1, i = arguments.length; n < i; n++) {
2672
2695
  r = arguments[n];
2673
2696
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
2674
2697
  }
2675
2698
  return t;
2676
- }, yt.apply(this, arguments);
2699
+ }, xt.apply(this, arguments);
2677
2700
  };
2678
2701
  var v;
2679
2702
  (function(e) {
@@ -2683,47 +2706,47 @@ var w;
2683
2706
  (function(e) {
2684
2707
  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";
2685
2708
  })(w || (w = {}));
2686
- var $e;
2709
+ var Fe;
2687
2710
  (function(e) {
2688
2711
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
2689
- })($e || ($e = {}));
2690
- function Or(e) {
2712
+ })(Fe || (Fe = {}));
2713
+ function Pr(e) {
2691
2714
  return e.type === w.literal;
2692
2715
  }
2693
- function la(e) {
2716
+ function fa(e) {
2694
2717
  return e.type === w.argument;
2695
2718
  }
2696
- function jn(e) {
2719
+ function Vn(e) {
2697
2720
  return e.type === w.number;
2698
2721
  }
2699
- function Vn(e) {
2722
+ function Xn(e) {
2700
2723
  return e.type === w.date;
2701
2724
  }
2702
- function Xn(e) {
2725
+ function Wn(e) {
2703
2726
  return e.type === w.time;
2704
2727
  }
2705
- function Wn(e) {
2728
+ function qn(e) {
2706
2729
  return e.type === w.select;
2707
2730
  }
2708
- function qn(e) {
2731
+ function zn(e) {
2709
2732
  return e.type === w.plural;
2710
2733
  }
2711
- function fa(e) {
2734
+ function ha(e) {
2712
2735
  return e.type === w.pound;
2713
2736
  }
2714
- function zn(e) {
2737
+ function Zn(e) {
2715
2738
  return e.type === w.tag;
2716
2739
  }
2717
- function Zn(e) {
2718
- return !!(e && typeof e == "object" && e.type === $e.number);
2740
+ function Yn(e) {
2741
+ return !!(e && typeof e == "object" && e.type === Fe.number);
2719
2742
  }
2720
2743
  function Kt(e) {
2721
- return !!(e && typeof e == "object" && e.type === $e.dateTime);
2744
+ return !!(e && typeof e == "object" && e.type === Fe.dateTime);
2722
2745
  }
2723
- var Yn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ha = /(?:[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;
2724
- function ca(e) {
2746
+ var Qn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ca = /(?:[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;
2747
+ function da(e) {
2725
2748
  var t = {};
2726
- return e.replace(ha, function(r) {
2749
+ return e.replace(ca, function(r) {
2727
2750
  var n = r.length;
2728
2751
  switch (r[0]) {
2729
2752
  case "G":
@@ -2821,11 +2844,11 @@ var T = function() {
2821
2844
  return t;
2822
2845
  }, T.apply(this, arguments);
2823
2846
  };
2824
- var da = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2825
- function pa(e) {
2847
+ var pa = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2848
+ function va(e) {
2826
2849
  if (e.length === 0)
2827
2850
  throw new Error("Number skeleton cannot be empty");
2828
- for (var t = e.split(da).filter(function(h) {
2851
+ for (var t = e.split(pa).filter(function(h) {
2829
2852
  return h.length > 0;
2830
2853
  }), r = [], n = 0, i = t; n < i.length; n++) {
2831
2854
  var s = i[n], a = s.split("/");
@@ -2840,17 +2863,17 @@ function pa(e) {
2840
2863
  }
2841
2864
  return r;
2842
2865
  }
2843
- function va(e) {
2866
+ function _a(e) {
2844
2867
  return e.replace(/^(.*?)-/, "");
2845
2868
  }
2846
- var Pr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qn = /^(@+)?(\+|#+)?[rs]?$/g, _a = /(\*)(0+)|(#+)(0+)|(0+)/g, Jn = /^(0+)$/;
2869
+ var Cr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jn = /^(@+)?(\+|#+)?[rs]?$/g, ma = /(\*)(0+)|(#+)(0+)|(0+)/g, Kn = /^(0+)$/;
2847
2870
  function Ir(e) {
2848
2871
  var t = {};
2849
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qn, function(r, n, i) {
2872
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jn, function(r, n, i) {
2850
2873
  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)), "";
2851
2874
  }), t;
2852
2875
  }
2853
- function Kn(e) {
2876
+ function ei(e) {
2854
2877
  switch (e) {
2855
2878
  case "sign-auto":
2856
2879
  return {
@@ -2890,7 +2913,7 @@ function Kn(e) {
2890
2913
  };
2891
2914
  }
2892
2915
  }
2893
- function ma(e) {
2916
+ function ba(e) {
2894
2917
  var t;
2895
2918
  if (e[0] === "E" && e[1] === "E" ? (t = {
2896
2919
  notation: "engineering"
@@ -2898,17 +2921,17 @@ function ma(e) {
2898
2921
  notation: "scientific"
2899
2922
  }, e = e.slice(1)), t) {
2900
2923
  var r = e.slice(0, 2);
2901
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jn.test(e))
2924
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Kn.test(e))
2902
2925
  throw new Error("Malformed concise eng/scientific notation");
2903
2926
  t.minimumIntegerDigits = e.length;
2904
2927
  }
2905
2928
  return t;
2906
2929
  }
2907
- function Cr(e) {
2908
- var t = {}, r = Kn(e);
2930
+ function Rr(e) {
2931
+ var t = {}, r = ei(e);
2909
2932
  return r || t;
2910
2933
  }
2911
- function ba(e) {
2934
+ function ga(e) {
2912
2935
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
2913
2936
  var i = n[r];
2914
2937
  switch (i.stem) {
@@ -2932,7 +2955,7 @@ function ba(e) {
2932
2955
  continue;
2933
2956
  case "measure-unit":
2934
2957
  case "unit":
2935
- t.style = "unit", t.unit = va(i.options[0]);
2958
+ t.style = "unit", t.unit = _a(i.options[0]);
2936
2959
  continue;
2937
2960
  case "compact-short":
2938
2961
  case "K":
@@ -2944,12 +2967,12 @@ function ba(e) {
2944
2967
  continue;
2945
2968
  case "scientific":
2946
2969
  t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
2947
- return T(T({}, u), Cr(l));
2970
+ return T(T({}, u), Rr(l));
2948
2971
  }, {}));
2949
2972
  continue;
2950
2973
  case "engineering":
2951
2974
  t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
2952
- return T(T({}, u), Cr(l));
2975
+ return T(T({}, u), Rr(l));
2953
2976
  }, {}));
2954
2977
  continue;
2955
2978
  case "notation-simple":
@@ -2994,7 +3017,7 @@ function ba(e) {
2994
3017
  case "integer-width":
2995
3018
  if (i.options.length > 1)
2996
3019
  throw new RangeError("integer-width stems only accept a single optional option");
2997
- i.options[0].replace(_a, function(u, l, f, c, h, d) {
3020
+ i.options[0].replace(ma, function(u, l, f, c, h, d) {
2998
3021
  if (l)
2999
3022
  t.minimumIntegerDigits = f.length;
3000
3023
  else {
@@ -3007,27 +3030,27 @@ function ba(e) {
3007
3030
  });
3008
3031
  continue;
3009
3032
  }
3010
- if (Jn.test(i.stem)) {
3033
+ if (Kn.test(i.stem)) {
3011
3034
  t.minimumIntegerDigits = i.stem.length;
3012
3035
  continue;
3013
3036
  }
3014
- if (Pr.test(i.stem)) {
3037
+ if (Cr.test(i.stem)) {
3015
3038
  if (i.options.length > 1)
3016
3039
  throw new RangeError("Fraction-precision stems only accept a single optional option");
3017
- i.stem.replace(Pr, function(u, l, f, c, h, d) {
3040
+ i.stem.replace(Cr, function(u, l, f, c, h, d) {
3018
3041
  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), "";
3019
3042
  });
3020
3043
  var s = i.options[0];
3021
3044
  s === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = T(T({}, t), Ir(s)));
3022
3045
  continue;
3023
3046
  }
3024
- if (Qn.test(i.stem)) {
3047
+ if (Jn.test(i.stem)) {
3025
3048
  t = T(T({}, t), Ir(i.stem));
3026
3049
  continue;
3027
3050
  }
3028
- var a = Kn(i.stem);
3051
+ var a = ei(i.stem);
3029
3052
  a && (t = T(T({}, t), a));
3030
- var o = ma(i.stem);
3053
+ var o = ba(i.stem);
3031
3054
  o && (t = T(T({}, t), o));
3032
3055
  }
3033
3056
  return t;
@@ -4447,13 +4470,13 @@ var ht = {
4447
4470
  "h"
4448
4471
  ]
4449
4472
  };
4450
- function ga(e, t) {
4473
+ function ya(e, t) {
4451
4474
  for (var r = "", n = 0; n < e.length; n++) {
4452
4475
  var i = e.charAt(n);
4453
4476
  if (i === "j") {
4454
4477
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
4455
4478
  s++, n++;
4456
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = ya(t);
4479
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = Ea(t);
4457
4480
  for ((l == "H" || l == "k") && (o = 0); o-- > 0; )
4458
4481
  r += u;
4459
4482
  for (; a-- > 0; )
@@ -4462,7 +4485,7 @@ function ga(e, t) {
4462
4485
  }
4463
4486
  return r;
4464
4487
  }
4465
- function ya(e) {
4488
+ function Ea(e) {
4466
4489
  var t = e.hourCycle;
4467
4490
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
4468
4491
  e.hourCycles && // @ts-ignore
@@ -4484,20 +4507,20 @@ function ya(e) {
4484
4507
  var i = ht[n || ""] || ht[r || ""] || ht["".concat(r, "-001")] || ht["001"];
4485
4508
  return i[0];
4486
4509
  }
4487
- var Ut, Ea = new RegExp("^".concat(Yn.source, "*")), xa = new RegExp("".concat(Yn.source, "*$"));
4510
+ var kt, xa = new RegExp("^".concat(Qn.source, "*")), wa = new RegExp("".concat(Qn.source, "*$"));
4488
4511
  function m(e, t) {
4489
4512
  return { start: e, end: t };
4490
4513
  }
4491
- var wa = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ta = !!String.fromCodePoint, Sa = !!Object.fromEntries, Ha = !!String.prototype.codePointAt, Aa = !!String.prototype.trimStart, Ba = !!String.prototype.trimEnd, Na = !!Number.isSafeInteger, Oa = Na ? Number.isSafeInteger : function(e) {
4514
+ var Ta = !!String.prototype.startsWith && "_a".startsWith("a", 1), Sa = !!String.fromCodePoint, Ha = !!Object.fromEntries, Aa = !!String.prototype.codePointAt, Ba = !!String.prototype.trimStart, Na = !!String.prototype.trimEnd, Oa = !!Number.isSafeInteger, Pa = Oa ? Number.isSafeInteger : function(e) {
4492
4515
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
4493
4516
  }, er = !0;
4494
4517
  try {
4495
- var Pa = ti("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4496
- er = ((Ut = Pa.exec("a")) === null || Ut === void 0 ? void 0 : Ut[0]) === "a";
4518
+ var Ca = ri("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4519
+ er = ((kt = Ca.exec("a")) === null || kt === void 0 ? void 0 : kt[0]) === "a";
4497
4520
  } catch {
4498
4521
  er = !1;
4499
4522
  }
4500
- var Rr = wa ? (
4523
+ var Lr = Ta ? (
4501
4524
  // Native
4502
4525
  function(t, r, n) {
4503
4526
  return t.startsWith(r, n);
@@ -4507,7 +4530,7 @@ var Rr = wa ? (
4507
4530
  function(t, r, n) {
4508
4531
  return t.slice(n, n + r.length) === r;
4509
4532
  }
4510
- ), tr = Ta ? String.fromCodePoint : (
4533
+ ), tr = Sa ? String.fromCodePoint : (
4511
4534
  // IE11
4512
4535
  function() {
4513
4536
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -4519,9 +4542,9 @@ var Rr = wa ? (
4519
4542
  }
4520
4543
  return n;
4521
4544
  }
4522
- ), Lr = (
4545
+ ), Mr = (
4523
4546
  // native
4524
- Sa ? Object.fromEntries : (
4547
+ Ha ? Object.fromEntries : (
4525
4548
  // Ponyfill
4526
4549
  function(t) {
4527
4550
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -4531,7 +4554,7 @@ var Rr = wa ? (
4531
4554
  return r;
4532
4555
  }
4533
4556
  )
4534
- ), ei = Ha ? (
4557
+ ), ti = Aa ? (
4535
4558
  // Native
4536
4559
  function(t, r) {
4537
4560
  return t.codePointAt(r);
@@ -4545,7 +4568,7 @@ var Rr = wa ? (
4545
4568
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
4546
4569
  }
4547
4570
  }
4548
- ), Ia = Aa ? (
4571
+ ), Ia = Ba ? (
4549
4572
  // Native
4550
4573
  function(t) {
4551
4574
  return t.trimStart();
@@ -4553,9 +4576,9 @@ var Rr = wa ? (
4553
4576
  ) : (
4554
4577
  // Ponyfill
4555
4578
  function(t) {
4556
- return t.replace(Ea, "");
4579
+ return t.replace(xa, "");
4557
4580
  }
4558
- ), Ca = Ba ? (
4581
+ ), Ra = Na ? (
4559
4582
  // Native
4560
4583
  function(t) {
4561
4584
  return t.trimEnd();
@@ -4563,32 +4586,32 @@ var Rr = wa ? (
4563
4586
  ) : (
4564
4587
  // Ponyfill
4565
4588
  function(t) {
4566
- return t.replace(xa, "");
4589
+ return t.replace(wa, "");
4567
4590
  }
4568
4591
  );
4569
- function ti(e, t) {
4592
+ function ri(e, t) {
4570
4593
  return new RegExp(e, t);
4571
4594
  }
4572
4595
  var rr;
4573
4596
  if (er) {
4574
- var Mr = ti("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4597
+ var $r = ri("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4575
4598
  rr = function(t, r) {
4576
4599
  var n;
4577
- Mr.lastIndex = r;
4578
- var i = Mr.exec(t);
4600
+ $r.lastIndex = r;
4601
+ var i = $r.exec(t);
4579
4602
  return (n = i[1]) !== null && n !== void 0 ? n : "";
4580
4603
  };
4581
4604
  } else
4582
4605
  rr = function(t, r) {
4583
4606
  for (var n = []; ; ) {
4584
- var i = ei(t, r);
4585
- if (i === void 0 || ri(i) || $a(i))
4607
+ var i = ti(t, r);
4608
+ if (i === void 0 || ni(i) || Da(i))
4586
4609
  break;
4587
4610
  n.push(i), r += i >= 65536 ? 2 : 1;
4588
4611
  }
4589
4612
  return tr.apply(void 0, n);
4590
4613
  };
4591
- var Ra = (
4614
+ var La = (
4592
4615
  /** @class */
4593
4616
  function() {
4594
4617
  function e(t, r) {
@@ -4670,7 +4693,7 @@ var Ra = (
4670
4693
  return this.error(v.INVALID_TAG, m(n, this.clonePosition()));
4671
4694
  }, e.prototype.parseTagName = function() {
4672
4695
  var t = this.offset();
4673
- for (this.bump(); !this.isEOF() && Ma(this.char()); )
4696
+ for (this.bump(); !this.isEOF() && $a(this.char()); )
4674
4697
  this.bump();
4675
4698
  return this.message.slice(t, this.offset());
4676
4699
  }, e.prototype.parseLiteral = function(t, r) {
@@ -4699,7 +4722,7 @@ var Ra = (
4699
4722
  };
4700
4723
  }, e.prototype.tryParseLeftAngleBracket = function() {
4701
4724
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
4702
- !La(this.peek() || 0)) ? (this.bump(), "<") : null;
4725
+ !Ma(this.peek() || 0)) ? (this.bump(), "<") : null;
4703
4726
  }, e.prototype.tryParseQuote = function(t) {
4704
4727
  if (this.isEOF() || this.char() !== 39)
4705
4728
  return null;
@@ -4786,7 +4809,7 @@ var Ra = (
4786
4809
  var f = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
4787
4810
  if (c.err)
4788
4811
  return c;
4789
- var h = Ca(c.val);
4812
+ var h = Ra(c.val);
4790
4813
  if (h.length === 0)
4791
4814
  return this.error(v.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
4792
4815
  var d = m(f, this.clonePosition());
@@ -4795,28 +4818,28 @@ var Ra = (
4795
4818
  var p = this.tryParseArgumentClose(i);
4796
4819
  if (p.err)
4797
4820
  return p;
4798
- var g = m(i, this.clonePosition());
4799
- if (l && Rr(l?.style, "::", 0)) {
4821
+ var y = m(i, this.clonePosition());
4822
+ if (l && Lr(l?.style, "::", 0)) {
4800
4823
  var H = Ia(l.style.slice(2));
4801
4824
  if (o === "number") {
4802
4825
  var c = this.parseNumberSkeletonFromString(H, l.styleLocation);
4803
4826
  return c.err ? c : {
4804
- val: { type: w.number, value: n, location: g, style: c.val },
4827
+ val: { type: w.number, value: n, location: y, style: c.val },
4805
4828
  err: null
4806
4829
  };
4807
4830
  } else {
4808
4831
  if (H.length === 0)
4809
- return this.error(v.EXPECT_DATE_TIME_SKELETON, g);
4810
- var Q = H;
4811
- this.locale && (Q = ga(H, this.locale));
4832
+ return this.error(v.EXPECT_DATE_TIME_SKELETON, y);
4833
+ var Y = H;
4834
+ this.locale && (Y = ya(H, this.locale));
4812
4835
  var h = {
4813
- type: $e.dateTime,
4814
- pattern: Q,
4836
+ type: Fe.dateTime,
4837
+ pattern: Y,
4815
4838
  location: l.styleLocation,
4816
- parsedOptions: this.shouldParseSkeletons ? ca(Q) : {}
4817
- }, U = o === "date" ? w.date : w.time;
4839
+ parsedOptions: this.shouldParseSkeletons ? da(Y) : {}
4840
+ }, k = o === "date" ? w.date : w.time;
4818
4841
  return {
4819
- val: { type: U, value: n, location: g, style: h },
4842
+ val: { type: k, value: n, location: y, style: h },
4820
4843
  err: null
4821
4844
  };
4822
4845
  }
@@ -4825,7 +4848,7 @@ var Ra = (
4825
4848
  val: {
4826
4849
  type: o === "number" ? w.number : o === "date" ? w.date : w.time,
4827
4850
  value: n,
4828
- location: g,
4851
+ location: y,
4829
4852
  style: (s = l?.style) !== null && s !== void 0 ? s : null
4830
4853
  },
4831
4854
  err: null
@@ -4834,43 +4857,43 @@ var Ra = (
4834
4857
  case "plural":
4835
4858
  case "selectordinal":
4836
4859
  case "select": {
4837
- var k = this.clonePosition();
4860
+ var D = this.clonePosition();
4838
4861
  if (this.bumpSpace(), !this.bumpIf(","))
4839
- return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, m(k, yt({}, k)));
4862
+ return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, m(D, xt({}, D)));
4840
4863
  this.bumpSpace();
4841
- var me = this.parseIdentifierIfPossible(), x = 0;
4842
- if (o !== "select" && me.value === "offset") {
4864
+ var be = this.parseIdentifierIfPossible(), te = 0;
4865
+ if (o !== "select" && be.value === "offset") {
4843
4866
  if (!this.bumpIf(":"))
4844
4867
  return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
4845
4868
  this.bumpSpace();
4846
4869
  var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
4847
4870
  if (c.err)
4848
4871
  return c;
4849
- this.bumpSpace(), me = this.parseIdentifierIfPossible(), x = c.val;
4872
+ this.bumpSpace(), be = this.parseIdentifierIfPossible(), te = c.val;
4850
4873
  }
4851
- var G = this.tryParsePluralOrSelectOptions(t, o, r, me);
4852
- if (G.err)
4853
- return G;
4874
+ var Be = this.tryParsePluralOrSelectOptions(t, o, r, be);
4875
+ if (Be.err)
4876
+ return Be;
4854
4877
  var p = this.tryParseArgumentClose(i);
4855
4878
  if (p.err)
4856
4879
  return p;
4857
- var je = m(i, this.clonePosition());
4880
+ var x = m(i, this.clonePosition());
4858
4881
  return o === "select" ? {
4859
4882
  val: {
4860
4883
  type: w.select,
4861
4884
  value: n,
4862
- options: Lr(G.val),
4863
- location: je
4885
+ options: Mr(Be.val),
4886
+ location: x
4864
4887
  },
4865
4888
  err: null
4866
4889
  } : {
4867
4890
  val: {
4868
4891
  type: w.plural,
4869
4892
  value: n,
4870
- options: Lr(G.val),
4871
- offset: x,
4893
+ options: Mr(Be.val),
4894
+ offset: te,
4872
4895
  pluralType: o === "plural" ? "cardinal" : "ordinal",
4873
- location: je
4896
+ location: x
4874
4897
  },
4875
4898
  err: null
4876
4899
  };
@@ -4918,16 +4941,16 @@ var Ra = (
4918
4941
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
4919
4942
  var n = [];
4920
4943
  try {
4921
- n = pa(t);
4944
+ n = va(t);
4922
4945
  } catch {
4923
4946
  return this.error(v.INVALID_NUMBER_SKELETON, r);
4924
4947
  }
4925
4948
  return {
4926
4949
  val: {
4927
- type: $e.number,
4950
+ type: Fe.number,
4928
4951
  tokens: n,
4929
4952
  location: r,
4930
- parsedOptions: this.shouldParseSkeletons ? ba(n) : {}
4953
+ parsedOptions: this.shouldParseSkeletons ? ga(n) : {}
4931
4954
  },
4932
4955
  err: null
4933
4956
  };
@@ -4952,9 +4975,9 @@ var Ra = (
4952
4975
  var p = this.parseMessage(t + 1, r, n);
4953
4976
  if (p.err)
4954
4977
  return p;
4955
- var g = this.tryParseArgumentClose(d);
4956
- if (g.err)
4957
- return g;
4978
+ var y = this.tryParseArgumentClose(d);
4979
+ if (y.err)
4980
+ return y;
4958
4981
  o.push([
4959
4982
  l,
4960
4983
  {
@@ -4975,7 +4998,7 @@ var Ra = (
4975
4998
  break;
4976
4999
  }
4977
5000
  var u = m(i, this.clonePosition());
4978
- return s ? (a *= n, Oa(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
5001
+ return s ? (a *= n, Pa(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
4979
5002
  }, e.prototype.offset = function() {
4980
5003
  return this.position.offset;
4981
5004
  }, e.prototype.isEOF = function() {
@@ -4990,7 +5013,7 @@ var Ra = (
4990
5013
  var t = this.position.offset;
4991
5014
  if (t >= this.message.length)
4992
5015
  throw Error("out of bound");
4993
- var r = ei(this.message, t);
5016
+ var r = ti(this.message, t);
4994
5017
  if (r === void 0)
4995
5018
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
4996
5019
  return r;
@@ -5009,7 +5032,7 @@ var Ra = (
5009
5032
  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);
5010
5033
  }
5011
5034
  }, e.prototype.bumpIf = function(t) {
5012
- if (Rr(this.message, t, this.offset())) {
5035
+ if (Lr(this.message, t, this.offset())) {
5013
5036
  for (var r = 0; r < t.length; r++)
5014
5037
  this.bump();
5015
5038
  return !0;
@@ -5031,7 +5054,7 @@ var Ra = (
5031
5054
  break;
5032
5055
  }
5033
5056
  }, e.prototype.bumpSpace = function() {
5034
- for (; !this.isEOF() && ri(this.char()); )
5057
+ for (; !this.isEOF() && ni(this.char()); )
5035
5058
  this.bump();
5036
5059
  }, e.prototype.peek = function() {
5037
5060
  if (this.isEOF())
@@ -5044,43 +5067,43 @@ var Ra = (
5044
5067
  function nr(e) {
5045
5068
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
5046
5069
  }
5047
- function La(e) {
5070
+ function Ma(e) {
5048
5071
  return nr(e) || e === 47;
5049
5072
  }
5050
- function Ma(e) {
5073
+ function $a(e) {
5051
5074
  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;
5052
5075
  }
5053
- function ri(e) {
5076
+ function ni(e) {
5054
5077
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
5055
5078
  }
5056
- function $a(e) {
5079
+ function Da(e) {
5057
5080
  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;
5058
5081
  }
5059
5082
  function ir(e) {
5060
5083
  e.forEach(function(t) {
5061
- if (delete t.location, Wn(t) || qn(t))
5084
+ if (delete t.location, qn(t) || zn(t))
5062
5085
  for (var r in t.options)
5063
5086
  delete t.options[r].location, ir(t.options[r].value);
5064
- else jn(t) && Zn(t.style) || (Vn(t) || Xn(t)) && Kt(t.style) ? delete t.style.location : zn(t) && ir(t.children);
5087
+ else Vn(t) && Yn(t.style) || (Xn(t) || Wn(t)) && Kt(t.style) ? delete t.style.location : Zn(t) && ir(t.children);
5065
5088
  });
5066
5089
  }
5067
- function Da(e, t) {
5068
- t === void 0 && (t = {}), t = yt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
5069
- var r = new Ra(e, t).parse();
5090
+ function Fa(e, t) {
5091
+ t === void 0 && (t = {}), t = xt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
5092
+ var r = new La(e, t).parse();
5070
5093
  if (r.err) {
5071
5094
  var n = SyntaxError(v[r.err.kind]);
5072
5095
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
5073
5096
  }
5074
5097
  return t?.captureLocation || ir(r.val), r.val;
5075
5098
  }
5076
- var De;
5099
+ var ke;
5077
5100
  (function(e) {
5078
5101
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
5079
- })(De || (De = {}));
5080
- var Ot = (
5102
+ })(ke || (ke = {}));
5103
+ var Pt = (
5081
5104
  /** @class */
5082
5105
  function(e) {
5083
- Nt(t, e);
5106
+ Ot(t, e);
5084
5107
  function t(r, n, i) {
5085
5108
  var s = e.call(this, r) || this;
5086
5109
  return s.code = n, s.originalMessage = i, s;
@@ -5089,48 +5112,48 @@ var Ot = (
5089
5112
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
5090
5113
  }, t;
5091
5114
  }(Error)
5092
- ), $r = (
5115
+ ), Dr = (
5093
5116
  /** @class */
5094
5117
  function(e) {
5095
- Nt(t, e);
5118
+ Ot(t, e);
5096
5119
  function t(r, n, i, s) {
5097
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), De.INVALID_VALUE, s) || this;
5120
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ke.INVALID_VALUE, s) || this;
5098
5121
  }
5099
5122
  return t;
5100
- }(Ot)
5101
- ), Ua = (
5123
+ }(Pt)
5124
+ ), ka = (
5102
5125
  /** @class */
5103
5126
  function(e) {
5104
- Nt(t, e);
5127
+ Ot(t, e);
5105
5128
  function t(r, n, i) {
5106
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), De.INVALID_VALUE, i) || this;
5129
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ke.INVALID_VALUE, i) || this;
5107
5130
  }
5108
5131
  return t;
5109
- }(Ot)
5110
- ), Fa = (
5132
+ }(Pt)
5133
+ ), Ua = (
5111
5134
  /** @class */
5112
5135
  function(e) {
5113
- Nt(t, e);
5136
+ Ot(t, e);
5114
5137
  function t(r, n) {
5115
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), De.MISSING_VALUE, n) || this;
5138
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ke.MISSING_VALUE, n) || this;
5116
5139
  }
5117
5140
  return t;
5118
- }(Ot)
5141
+ }(Pt)
5119
5142
  ), C;
5120
5143
  (function(e) {
5121
5144
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
5122
5145
  })(C || (C = {}));
5123
- function ka(e) {
5146
+ function Ga(e) {
5124
5147
  return e.length < 2 ? e : e.reduce(function(t, r) {
5125
5148
  var n = t[t.length - 1];
5126
5149
  return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
5127
5150
  }, []);
5128
5151
  }
5129
- function Ga(e) {
5152
+ function ja(e) {
5130
5153
  return typeof e == "function";
5131
5154
  }
5132
- function dt(e, t, r, n, i, s, a) {
5133
- if (e.length === 1 && Or(e[0]))
5155
+ function pt(e, t, r, n, i, s, a) {
5156
+ if (e.length === 1 && Pr(e[0]))
5134
5157
  return [
5135
5158
  {
5136
5159
  type: C.literal,
@@ -5139,14 +5162,14 @@ function dt(e, t, r, n, i, s, a) {
5139
5162
  ];
5140
5163
  for (var o = [], u = 0, l = e; u < l.length; u++) {
5141
5164
  var f = l[u];
5142
- if (Or(f)) {
5165
+ if (Pr(f)) {
5143
5166
  o.push({
5144
5167
  type: C.literal,
5145
5168
  value: f.value
5146
5169
  });
5147
5170
  continue;
5148
5171
  }
5149
- if (fa(f)) {
5172
+ if (ha(f)) {
5150
5173
  typeof s == "number" && o.push({
5151
5174
  type: C.literal,
5152
5175
  value: r.getNumberFormat(t).format(s)
@@ -5155,16 +5178,16 @@ function dt(e, t, r, n, i, s, a) {
5155
5178
  }
5156
5179
  var c = f.value;
5157
5180
  if (!(i && c in i))
5158
- throw new Fa(c, a);
5181
+ throw new Ua(c, a);
5159
5182
  var h = i[c];
5160
- if (la(f)) {
5183
+ if (fa(f)) {
5161
5184
  (!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), o.push({
5162
5185
  type: typeof h == "string" ? C.literal : C.object,
5163
5186
  value: h
5164
5187
  });
5165
5188
  continue;
5166
5189
  }
5167
- if (Vn(f)) {
5190
+ if (Xn(f)) {
5168
5191
  var d = typeof f.style == "string" ? n.date[f.style] : Kt(f.style) ? f.style.parsedOptions : void 0;
5169
5192
  o.push({
5170
5193
  type: C.literal,
@@ -5172,7 +5195,7 @@ function dt(e, t, r, n, i, s, a) {
5172
5195
  });
5173
5196
  continue;
5174
5197
  }
5175
- if (Xn(f)) {
5198
+ if (Wn(f)) {
5176
5199
  var d = typeof f.style == "string" ? n.time[f.style] : Kt(f.style) ? f.style.parsedOptions : n.time.medium;
5177
5200
  o.push({
5178
5201
  type: C.literal,
@@ -5180,64 +5203,64 @@ function dt(e, t, r, n, i, s, a) {
5180
5203
  });
5181
5204
  continue;
5182
5205
  }
5183
- if (jn(f)) {
5184
- var d = typeof f.style == "string" ? n.number[f.style] : Zn(f.style) ? f.style.parsedOptions : void 0;
5206
+ if (Vn(f)) {
5207
+ var d = typeof f.style == "string" ? n.number[f.style] : Yn(f.style) ? f.style.parsedOptions : void 0;
5185
5208
  d && d.scale && (h = h * (d.scale || 1)), o.push({
5186
5209
  type: C.literal,
5187
5210
  value: r.getNumberFormat(t, d).format(h)
5188
5211
  });
5189
5212
  continue;
5190
5213
  }
5191
- if (zn(f)) {
5192
- var p = f.children, g = f.value, H = i[g];
5193
- if (!Ga(H))
5194
- throw new Ua(g, "function", a);
5195
- var Q = dt(p, t, r, n, i, s), U = H(Q.map(function(x) {
5196
- return x.value;
5214
+ if (Zn(f)) {
5215
+ var p = f.children, y = f.value, H = i[y];
5216
+ if (!ja(H))
5217
+ throw new ka(y, "function", a);
5218
+ var Y = pt(p, t, r, n, i, s), k = H(Y.map(function(te) {
5219
+ return te.value;
5197
5220
  }));
5198
- Array.isArray(U) || (U = [U]), o.push.apply(o, U.map(function(x) {
5221
+ Array.isArray(k) || (k = [k]), o.push.apply(o, k.map(function(te) {
5199
5222
  return {
5200
- type: typeof x == "string" ? C.literal : C.object,
5201
- value: x
5223
+ type: typeof te == "string" ? C.literal : C.object,
5224
+ value: te
5202
5225
  };
5203
5226
  }));
5204
5227
  }
5205
- if (Wn(f)) {
5206
- var k = f.options[h] || f.options.other;
5207
- if (!k)
5208
- throw new $r(f.value, h, Object.keys(f.options), a);
5209
- o.push.apply(o, dt(k.value, t, r, n, i));
5228
+ if (qn(f)) {
5229
+ var D = f.options[h] || f.options.other;
5230
+ if (!D)
5231
+ throw new Dr(f.value, h, Object.keys(f.options), a);
5232
+ o.push.apply(o, pt(D.value, t, r, n, i));
5210
5233
  continue;
5211
5234
  }
5212
- if (qn(f)) {
5213
- var k = f.options["=".concat(h)];
5214
- if (!k) {
5235
+ if (zn(f)) {
5236
+ var D = f.options["=".concat(h)];
5237
+ if (!D) {
5215
5238
  if (!Intl.PluralRules)
5216
- throw new Ot(`Intl.PluralRules is not available in this environment.
5239
+ throw new Pt(`Intl.PluralRules is not available in this environment.
5217
5240
  Try polyfilling it using "@formatjs/intl-pluralrules"
5218
- `, De.MISSING_INTL_API, a);
5219
- var me = r.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
5220
- k = f.options[me] || f.options.other;
5241
+ `, ke.MISSING_INTL_API, a);
5242
+ var be = r.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
5243
+ D = f.options[be] || f.options.other;
5221
5244
  }
5222
- if (!k)
5223
- throw new $r(f.value, h, Object.keys(f.options), a);
5224
- o.push.apply(o, dt(k.value, t, r, n, i, h - (f.offset || 0)));
5245
+ if (!D)
5246
+ throw new Dr(f.value, h, Object.keys(f.options), a);
5247
+ o.push.apply(o, pt(D.value, t, r, n, i, h - (f.offset || 0)));
5225
5248
  continue;
5226
5249
  }
5227
5250
  }
5228
- return ka(o);
5251
+ return Ga(o);
5229
5252
  }
5230
- function ja(e, t) {
5231
- return t ? J(J(J({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
5232
- return r[n] = J(J({}, e[n]), t[n] || {}), r;
5253
+ function Va(e, t) {
5254
+ return t ? Q(Q(Q({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
5255
+ return r[n] = Q(Q({}, e[n]), t[n] || {}), r;
5233
5256
  }, {})) : e;
5234
5257
  }
5235
- function Va(e, t) {
5258
+ function Xa(e, t) {
5236
5259
  return t ? Object.keys(e).reduce(function(r, n) {
5237
- return r[n] = ja(e[n], t[n]), r;
5238
- }, J({}, e)) : e;
5260
+ return r[n] = Va(e[n], t[n]), r;
5261
+ }, Q({}, e)) : e;
5239
5262
  }
5240
- function Ft(e) {
5263
+ function Ut(e) {
5241
5264
  return {
5242
5265
  create: function() {
5243
5266
  return {
@@ -5251,39 +5274,39 @@ function Ft(e) {
5251
5274
  }
5252
5275
  };
5253
5276
  }
5254
- function Xa(e) {
5277
+ function Wa(e) {
5255
5278
  return e === void 0 && (e = {
5256
5279
  number: {},
5257
5280
  dateTime: {},
5258
5281
  pluralRules: {}
5259
5282
  }), {
5260
- getNumberFormat: $t(function() {
5283
+ getNumberFormat: Dt(function() {
5261
5284
  for (var t, r = [], n = 0; n < arguments.length; n++)
5262
5285
  r[n] = arguments[n];
5263
- return new ((t = Intl.NumberFormat).bind.apply(t, Mt([void 0], r, !1)))();
5286
+ return new ((t = Intl.NumberFormat).bind.apply(t, $t([void 0], r, !1)))();
5264
5287
  }, {
5265
- cache: Ft(e.number),
5266
- strategy: Dt.variadic
5288
+ cache: Ut(e.number),
5289
+ strategy: Ft.variadic
5267
5290
  }),
5268
- getDateTimeFormat: $t(function() {
5291
+ getDateTimeFormat: Dt(function() {
5269
5292
  for (var t, r = [], n = 0; n < arguments.length; n++)
5270
5293
  r[n] = arguments[n];
5271
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Mt([void 0], r, !1)))();
5294
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, $t([void 0], r, !1)))();
5272
5295
  }, {
5273
- cache: Ft(e.dateTime),
5274
- strategy: Dt.variadic
5296
+ cache: Ut(e.dateTime),
5297
+ strategy: Ft.variadic
5275
5298
  }),
5276
- getPluralRules: $t(function() {
5299
+ getPluralRules: Dt(function() {
5277
5300
  for (var t, r = [], n = 0; n < arguments.length; n++)
5278
5301
  r[n] = arguments[n];
5279
- return new ((t = Intl.PluralRules).bind.apply(t, Mt([void 0], r, !1)))();
5302
+ return new ((t = Intl.PluralRules).bind.apply(t, $t([void 0], r, !1)))();
5280
5303
  }, {
5281
- cache: Ft(e.pluralRules),
5282
- strategy: Dt.variadic
5304
+ cache: Ut(e.pluralRules),
5305
+ strategy: Ft.variadic
5283
5306
  })
5284
5307
  };
5285
5308
  }
5286
- var Wa = (
5309
+ var qa = (
5287
5310
  /** @class */
5288
5311
  function() {
5289
5312
  function e(t, r, n, i) {
@@ -5302,7 +5325,7 @@ var Wa = (
5302
5325
  }, []);
5303
5326
  return f.length <= 1 ? f[0] || "" : f;
5304
5327
  }, this.formatToParts = function(u) {
5305
- return dt(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
5328
+ return pt(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
5306
5329
  }, this.resolvedOptions = function() {
5307
5330
  var u;
5308
5331
  return {
@@ -5315,13 +5338,13 @@ var Wa = (
5315
5338
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
5316
5339
  var a = i || {};
5317
5340
  a.formatters;
5318
- var o = ta(a, ["formatters"]);
5319
- this.ast = e.__parse(t, J(J({}, o), { locale: this.resolvedLocale }));
5341
+ var o = ra(a, ["formatters"]);
5342
+ this.ast = e.__parse(t, Q(Q({}, o), { locale: this.resolvedLocale }));
5320
5343
  } else
5321
5344
  this.ast = t;
5322
5345
  if (!Array.isArray(this.ast))
5323
5346
  throw new TypeError("A message must be provided as a String or AST.");
5324
- this.formats = Va(e.formats, n), this.formatters = i && i.formatters || Xa(this.formatterCache);
5347
+ this.formats = Xa(e.formats, n), this.formatters = i && i.formatters || Wa(this.formatterCache);
5325
5348
  }
5326
5349
  return Object.defineProperty(e, "defaultLocale", {
5327
5350
  get: function() {
@@ -5334,7 +5357,7 @@ var Wa = (
5334
5357
  var r = Intl.NumberFormat.supportedLocalesOf(t);
5335
5358
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
5336
5359
  }
5337
- }, e.__parse = Da, e.formats = {
5360
+ }, e.__parse = Fa, e.formats = {
5338
5361
  number: {
5339
5362
  integer: {
5340
5363
  maximumFractionDigits: 0
@@ -5395,7 +5418,7 @@ var Wa = (
5395
5418
  }, e;
5396
5419
  }()
5397
5420
  );
5398
- function qa(e, t) {
5421
+ function za(e, t) {
5399
5422
  if (t == null)
5400
5423
  return;
5401
5424
  if (t in e)
@@ -5416,92 +5439,92 @@ function qa(e, t) {
5416
5439
  n = void 0;
5417
5440
  return n;
5418
5441
  }
5419
- const he = {}, za = (e, t, r) => r && (t in he || (he[t] = {}), e in he[t] || (he[t][e] = r), r), ni = (e, t) => {
5442
+ const ce = {}, Za = (e, t, r) => r && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = r), r), ii = (e, t) => {
5420
5443
  if (t == null)
5421
5444
  return;
5422
- if (t in he && e in he[t])
5423
- return he[t][e];
5424
- const r = Pt(t);
5445
+ if (t in ce && e in ce[t])
5446
+ return ce[t][e];
5447
+ const r = Ct(t);
5425
5448
  for (let n = 0; n < r.length; n++) {
5426
- const i = r[n], s = Ya(i, e);
5449
+ const i = r[n], s = Qa(i, e);
5427
5450
  if (s)
5428
- return za(e, t, s);
5451
+ return Za(e, t, s);
5429
5452
  }
5430
5453
  };
5431
5454
  let br;
5432
- const ke = Bt({});
5433
- function Za(e) {
5455
+ const je = Nt({});
5456
+ function Ya(e) {
5434
5457
  return br[e] || null;
5435
5458
  }
5436
- function ii(e) {
5459
+ function si(e) {
5437
5460
  return e in br;
5438
5461
  }
5439
- function Ya(e, t) {
5440
- if (!ii(e))
5462
+ function Qa(e, t) {
5463
+ if (!si(e))
5441
5464
  return null;
5442
- const r = Za(e);
5443
- return qa(r, t);
5465
+ const r = Ya(e);
5466
+ return za(r, t);
5444
5467
  }
5445
- function Qa(e) {
5468
+ function Ja(e) {
5446
5469
  if (e == null)
5447
5470
  return;
5448
- const t = Pt(e);
5471
+ const t = Ct(e);
5449
5472
  for (let r = 0; r < t.length; r++) {
5450
5473
  const n = t[r];
5451
- if (ii(n))
5474
+ if (si(n))
5452
5475
  return n;
5453
5476
  }
5454
5477
  }
5455
- function si(e, ...t) {
5456
- delete he[e], ke.update((r) => (r[e] = ea.all([r[e] || {}, ...t]), r));
5478
+ function ai(e, ...t) {
5479
+ delete ce[e], je.update((r) => (r[e] = ta.all([r[e] || {}, ...t]), r));
5457
5480
  }
5458
- Fe(
5459
- [ke],
5481
+ Ge(
5482
+ [je],
5460
5483
  ([e]) => Object.keys(e)
5461
5484
  );
5462
- ke.subscribe((e) => br = e);
5463
- const pt = {};
5464
- function Ja(e, t) {
5465
- pt[e].delete(t), pt[e].size === 0 && delete pt[e];
5485
+ je.subscribe((e) => br = e);
5486
+ const vt = {};
5487
+ function Ka(e, t) {
5488
+ vt[e].delete(t), vt[e].size === 0 && delete vt[e];
5466
5489
  }
5467
- function ai(e) {
5468
- return pt[e];
5490
+ function oi(e) {
5491
+ return vt[e];
5469
5492
  }
5470
- function Ka(e) {
5471
- return Pt(e).map((t) => {
5472
- const r = ai(t);
5493
+ function eo(e) {
5494
+ return Ct(e).map((t) => {
5495
+ const r = oi(t);
5473
5496
  return [t, r ? [...r] : []];
5474
5497
  }).filter(([, t]) => t.length > 0);
5475
5498
  }
5476
5499
  function sr(e) {
5477
- return e == null ? !1 : Pt(e).some(
5500
+ return e == null ? !1 : Ct(e).some(
5478
5501
  (t) => {
5479
5502
  var r;
5480
- return (r = ai(t)) == null ? void 0 : r.size;
5503
+ return (r = oi(t)) == null ? void 0 : r.size;
5481
5504
  }
5482
5505
  );
5483
5506
  }
5484
- function eo(e, t) {
5507
+ function to(e, t) {
5485
5508
  return Promise.all(
5486
- t.map((n) => (Ja(e, n), n().then((i) => i.default || i)))
5487
- ).then((n) => si(e, ...n));
5509
+ t.map((n) => (Ka(e, n), n().then((i) => i.default || i)))
5510
+ ).then((n) => ai(e, ...n));
5488
5511
  }
5489
- const Ve = {};
5490
- function oi(e) {
5512
+ const Xe = {};
5513
+ function ui(e) {
5491
5514
  if (!sr(e))
5492
- return e in Ve ? Ve[e] : Promise.resolve();
5493
- const t = Ka(e);
5494
- return Ve[e] = Promise.all(
5515
+ return e in Xe ? Xe[e] : Promise.resolve();
5516
+ const t = eo(e);
5517
+ return Xe[e] = Promise.all(
5495
5518
  t.map(
5496
- ([r, n]) => eo(r, n)
5519
+ ([r, n]) => to(r, n)
5497
5520
  )
5498
5521
  ).then(() => {
5499
5522
  if (sr(e))
5500
- return oi(e);
5501
- delete Ve[e];
5502
- }), Ve[e];
5523
+ return ui(e);
5524
+ delete Xe[e];
5525
+ }), Xe[e];
5503
5526
  }
5504
- const to = {
5527
+ const ro = {
5505
5528
  number: {
5506
5529
  scientific: { notation: "scientific" },
5507
5530
  engineering: { notation: "engineering" },
@@ -5530,57 +5553,57 @@ const to = {
5530
5553
  timeZoneName: "short"
5531
5554
  }
5532
5555
  }
5533
- }, ro = {
5556
+ }, no = {
5534
5557
  fallbackLocale: null,
5535
5558
  loadingDelay: 200,
5536
- formats: to,
5559
+ formats: ro,
5537
5560
  warnOnMissingMessages: !0,
5538
5561
  handleMissingMessage: void 0,
5539
5562
  ignoreTag: !0
5540
- }, no = ro;
5563
+ }, io = no;
5541
5564
  function Ue() {
5542
- return no;
5565
+ return io;
5543
5566
  }
5544
- const kt = Bt(!1);
5545
- var io = Object.defineProperty, so = Object.defineProperties, ao = Object.getOwnPropertyDescriptors, Dr = Object.getOwnPropertySymbols, oo = Object.prototype.hasOwnProperty, uo = Object.prototype.propertyIsEnumerable, Ur = (e, t, r) => t in e ? io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lo = (e, t) => {
5567
+ const Gt = Nt(!1);
5568
+ var so = Object.defineProperty, ao = Object.defineProperties, oo = Object.getOwnPropertyDescriptors, Fr = Object.getOwnPropertySymbols, uo = Object.prototype.hasOwnProperty, lo = Object.prototype.propertyIsEnumerable, kr = (e, t, r) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fo = (e, t) => {
5546
5569
  for (var r in t || (t = {}))
5547
- oo.call(t, r) && Ur(e, r, t[r]);
5548
- if (Dr)
5549
- for (var r of Dr(t))
5550
- uo.call(t, r) && Ur(e, r, t[r]);
5570
+ uo.call(t, r) && kr(e, r, t[r]);
5571
+ if (Fr)
5572
+ for (var r of Fr(t))
5573
+ lo.call(t, r) && kr(e, r, t[r]);
5551
5574
  return e;
5552
- }, fo = (e, t) => so(e, ao(t));
5575
+ }, ho = (e, t) => ao(e, oo(t));
5553
5576
  let ar;
5554
- const Et = Bt(null);
5555
- function Fr(e) {
5577
+ const wt = Nt(null);
5578
+ function Ur(e) {
5556
5579
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
5557
5580
  }
5558
- function Pt(e, t = Ue().fallbackLocale) {
5559
- const r = Fr(e);
5560
- return t ? [.../* @__PURE__ */ new Set([...r, ...Fr(t)])] : r;
5581
+ function Ct(e, t = Ue().fallbackLocale) {
5582
+ const r = Ur(e);
5583
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Ur(t)])] : r;
5561
5584
  }
5562
- function He() {
5585
+ function Ae() {
5563
5586
  return ar ?? void 0;
5564
5587
  }
5565
- Et.subscribe((e) => {
5588
+ wt.subscribe((e) => {
5566
5589
  ar = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
5567
5590
  });
5568
- const ho = (e) => {
5569
- if (e && Qa(e) && sr(e)) {
5591
+ const co = (e) => {
5592
+ if (e && Ja(e) && sr(e)) {
5570
5593
  const { loadingDelay: t } = Ue();
5571
5594
  let r;
5572
- return typeof window < "u" && He() != null && t ? r = window.setTimeout(
5573
- () => kt.set(!0),
5595
+ return typeof window < "u" && Ae() != null && t ? r = window.setTimeout(
5596
+ () => Gt.set(!0),
5574
5597
  t
5575
- ) : kt.set(!0), oi(e).then(() => {
5576
- Et.set(e);
5598
+ ) : Gt.set(!0), ui(e).then(() => {
5599
+ wt.set(e);
5577
5600
  }).finally(() => {
5578
- clearTimeout(r), kt.set(!1);
5601
+ clearTimeout(r), Gt.set(!1);
5579
5602
  });
5580
5603
  }
5581
- return Et.set(e);
5582
- }, Te = fo(lo({}, Et), {
5583
- set: ho
5604
+ return wt.set(e);
5605
+ }, Se = ho(fo({}, wt), {
5606
+ set: co
5584
5607
  }), It = (e) => {
5585
5608
  const t = /* @__PURE__ */ Object.create(null);
5586
5609
  return (n) => {
@@ -5588,90 +5611,90 @@ const ho = (e) => {
5588
5611
  return i in t ? t[i] : t[i] = e(n);
5589
5612
  };
5590
5613
  };
5591
- var co = Object.defineProperty, xt = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, li = Object.prototype.propertyIsEnumerable, kr = (e, t, r) => t in e ? co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gr = (e, t) => {
5614
+ var po = Object.defineProperty, Tt = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, fi = Object.prototype.propertyIsEnumerable, Gr = (e, t, r) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gr = (e, t) => {
5592
5615
  for (var r in t || (t = {}))
5593
- ui.call(t, r) && kr(e, r, t[r]);
5594
- if (xt)
5595
- for (var r of xt(t))
5596
- li.call(t, r) && kr(e, r, t[r]);
5616
+ li.call(t, r) && Gr(e, r, t[r]);
5617
+ if (Tt)
5618
+ for (var r of Tt(t))
5619
+ fi.call(t, r) && Gr(e, r, t[r]);
5597
5620
  return e;
5598
- }, Ge = (e, t) => {
5621
+ }, Ve = (e, t) => {
5599
5622
  var r = {};
5600
5623
  for (var n in e)
5601
- ui.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
5602
- if (e != null && xt)
5603
- for (var n of xt(e))
5604
- t.indexOf(n) < 0 && li.call(e, n) && (r[n] = e[n]);
5624
+ li.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
5625
+ if (e != null && Tt)
5626
+ for (var n of Tt(e))
5627
+ t.indexOf(n) < 0 && fi.call(e, n) && (r[n] = e[n]);
5605
5628
  return r;
5606
5629
  };
5607
- const et = (e, t) => {
5630
+ const tt = (e, t) => {
5608
5631
  const { formats: r } = Ue();
5609
5632
  if (e in r && t in r[e])
5610
5633
  return r[e][t];
5611
5634
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
5612
- }, po = It(
5635
+ }, vo = It(
5613
5636
  (e) => {
5614
- var t = e, { locale: r, format: n } = t, i = Ge(t, ["locale", "format"]);
5637
+ var t = e, { locale: r, format: n } = t, i = Ve(t, ["locale", "format"]);
5615
5638
  if (r == null)
5616
5639
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
5617
- return n && (i = et("number", n)), new Intl.NumberFormat(r, i);
5640
+ return n && (i = tt("number", n)), new Intl.NumberFormat(r, i);
5618
5641
  }
5619
- ), vo = It(
5642
+ ), _o = It(
5620
5643
  (e) => {
5621
- var t = e, { locale: r, format: n } = t, i = Ge(t, ["locale", "format"]);
5644
+ var t = e, { locale: r, format: n } = t, i = Ve(t, ["locale", "format"]);
5622
5645
  if (r == null)
5623
5646
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
5624
- return n ? i = et("date", n) : Object.keys(i).length === 0 && (i = et("date", "short")), new Intl.DateTimeFormat(r, i);
5647
+ return n ? i = tt("date", n) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(r, i);
5625
5648
  }
5626
- ), _o = It(
5649
+ ), mo = It(
5627
5650
  (e) => {
5628
- var t = e, { locale: r, format: n } = t, i = Ge(t, ["locale", "format"]);
5651
+ var t = e, { locale: r, format: n } = t, i = Ve(t, ["locale", "format"]);
5629
5652
  if (r == null)
5630
5653
  throw new Error(
5631
5654
  '[svelte-i18n] A "locale" must be set to format time values'
5632
5655
  );
5633
- return n ? i = et("time", n) : Object.keys(i).length === 0 && (i = et("time", "short")), new Intl.DateTimeFormat(r, i);
5656
+ return n ? i = tt("time", n) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(r, i);
5634
5657
  }
5635
- ), mo = (e = {}) => {
5658
+ ), bo = (e = {}) => {
5636
5659
  var t = e, {
5637
- locale: r = He()
5638
- } = t, n = Ge(t, [
5639
- "locale"
5640
- ]);
5641
- return po(gr({ locale: r }, n));
5642
- }, bo = (e = {}) => {
5643
- var t = e, {
5644
- locale: r = He()
5645
- } = t, n = Ge(t, [
5660
+ locale: r = Ae()
5661
+ } = t, n = Ve(t, [
5646
5662
  "locale"
5647
5663
  ]);
5648
5664
  return vo(gr({ locale: r }, n));
5649
5665
  }, go = (e = {}) => {
5650
5666
  var t = e, {
5651
- locale: r = He()
5652
- } = t, n = Ge(t, [
5667
+ locale: r = Ae()
5668
+ } = t, n = Ve(t, [
5653
5669
  "locale"
5654
5670
  ]);
5655
5671
  return _o(gr({ locale: r }, n));
5656
- }, yo = It(
5672
+ }, yo = (e = {}) => {
5673
+ var t = e, {
5674
+ locale: r = Ae()
5675
+ } = t, n = Ve(t, [
5676
+ "locale"
5677
+ ]);
5678
+ return mo(gr({ locale: r }, n));
5679
+ }, Eo = It(
5657
5680
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
5658
- (e, t = He()) => new Wa(e, t, Ue().formats, {
5681
+ (e, t = Ae()) => new qa(e, t, Ue().formats, {
5659
5682
  ignoreTag: Ue().ignoreTag
5660
5683
  })
5661
- ), Eo = (e, t = {}) => {
5684
+ ), xo = (e, t = {}) => {
5662
5685
  var r, n, i, s;
5663
5686
  let a = t;
5664
5687
  typeof e == "object" && (a = e, e = a.id);
5665
5688
  const {
5666
5689
  values: o,
5667
- locale: u = He(),
5690
+ locale: u = Ae(),
5668
5691
  default: l
5669
5692
  } = a;
5670
5693
  if (u == null)
5671
5694
  throw new Error(
5672
5695
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
5673
5696
  );
5674
- let f = ni(e, u);
5697
+ let f = ii(e, u);
5675
5698
  if (!f)
5676
5699
  f = (s = (i = (n = (r = Ue()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
5677
5700
  else if (typeof f != "string")
@@ -5682,7 +5705,7 @@ const et = (e, t) => {
5682
5705
  return f;
5683
5706
  let c = f;
5684
5707
  try {
5685
- c = yo(f, u).format(o);
5708
+ c = Eo(f, u).format(o);
5686
5709
  } catch (h) {
5687
5710
  h instanceof Error && console.warn(
5688
5711
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -5690,103 +5713,125 @@ const et = (e, t) => {
5690
5713
  );
5691
5714
  }
5692
5715
  return c;
5693
- }, xo = (e, t) => go(t).format(e), wo = (e, t) => bo(t).format(e), To = (e, t) => mo(t).format(e), So = (e, t = He()) => ni(e, t), Ho = Fe([Te, ke], () => Eo);
5694
- Fe([Te], () => xo);
5695
- Fe([Te], () => wo);
5696
- Fe([Te], () => To);
5697
- Fe([Te, ke], () => So);
5698
- function Ao({ withLocale: e, translations: t }) {
5699
- Te.subscribe((r) => {
5700
- r == null && (ke.set(t), Te.set(e));
5716
+ }, wo = (e, t) => yo(t).format(e), To = (e, t) => go(t).format(e), So = (e, t) => bo(t).format(e), Ho = (e, t = Ae()) => ii(e, t), Ao = Ge([Se, je], () => xo);
5717
+ Ge([Se], () => wo);
5718
+ Ge([Se], () => To);
5719
+ Ge([Se], () => So);
5720
+ Ge([Se, je], () => Ho);
5721
+ function Bo({ withLocale: e, translations: t }) {
5722
+ Se.subscribe((r) => {
5723
+ r == null && (je.set(t), Se.set(e));
5701
5724
  });
5702
5725
  }
5703
- function Bo(e, t) {
5704
- si(e, t);
5726
+ function No(e, t) {
5727
+ ai(e, t);
5705
5728
  }
5706
- const No = {
5729
+ const Oo = {
5707
5730
  en: {
5708
5731
  requestRackBack: "Request Rackeback"
5709
5732
  },
5710
5733
  tr: {
5711
5734
  requestRackBack: "Request Rackeback"
5712
5735
  }
5713
- }, Oo = "RakebackClaimConfirmed";
5714
- var Po = /* @__PURE__ */ vs('<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>');
5715
- function Io(e, t) {
5716
- Jr(t, !0);
5717
- const r = () => Ss(Ho, "$_", n), [n, i] = Hs(), s = Lt(t, "apiEndpoint", 3, ""), a = Lt(t, "userSession", 3, ""), o = Lt(t, "locale", 3, "");
5718
- Ao({ withLocale: o(), translations: {} }), Object.entries(No).forEach(([x, G]) => {
5719
- Bo(x, G);
5736
+ }, Po = "RakebackClaimConfirmed";
5737
+ var Co = /* @__PURE__ */ vs('<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>');
5738
+ const Io = {
5739
+ hash: "svelte-7aljj5",
5740
+ 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;}"
5741
+ };
5742
+ function Ro(e, t) {
5743
+ Jr(t, !0), ws(e, Io);
5744
+ const r = () => Hs(Ao, "$_", n), [n, i] = As(), s = Mt(t, "apiEndpoint", 7, ""), a = Mt(t, "userSession", 7, ""), o = Mt(t, "locale", 7, "");
5745
+ Bo({ withLocale: o(), translations: {} }), Object.entries(Oo).forEach(([x, ge]) => {
5746
+ No(x, ge);
5720
5747
  });
5721
- let u = /* @__PURE__ */ W(void 0), l = /* @__PURE__ */ W(!1), f = /* @__PURE__ */ W(!1);
5722
- const c = /* @__PURE__ */ ut(() => y(u) ? Cs(y(u).total.points <= 0 ? 0 : y(u).total.points, 2) : "0.00"), h = /* @__PURE__ */ ut(() => Rs(y(u)?.currency ?? "", o())), d = /* @__PURE__ */ ut(() => !!y(u)?.claimable), p = /* @__PURE__ */ ut(() => y(l)), g = async () => {
5748
+ let u = /* @__PURE__ */ X(void 0), l = /* @__PURE__ */ X(!1), f = /* @__PURE__ */ X(!1);
5749
+ const c = /* @__PURE__ */ ut(() => g(u) ? Rs(g(u).total.points <= 0 ? 0 : g(u).total.points, 2) : "0.00"), h = /* @__PURE__ */ ut(() => Ls(g(u)?.currency ?? "", o())), d = /* @__PURE__ */ ut(() => !!g(u)?.claimable), p = /* @__PURE__ */ ut(() => g(l)), y = async () => {
5723
5750
  if (!(!s() || !a()))
5724
5751
  try {
5725
- const x = await Ps({
5752
+ const x = await Cs({
5726
5753
  apiEndpoint: s(),
5727
5754
  userSession: a(),
5728
5755
  locale: o()
5729
5756
  });
5730
5757
  if (!x.rakebackWallet) {
5731
- M(l, !1), Ds();
5758
+ I(l, !1), Fs();
5732
5759
  return;
5733
5760
  }
5734
- M(u, x.rakebackWallet, !0), M(l, !0);
5761
+ I(u, x.rakebackWallet, !0), I(l, !0);
5735
5762
  } catch (x) {
5736
5763
  console.error("Failed to load rakeback info:", x);
5737
5764
  }
5738
5765
  }, H = () => {
5739
- !y(d) || y(f) || !y(u) || Ls(y(u).total.points);
5740
- }, Q = async () => {
5741
- if (!(!s() || !a() || !y(u))) {
5742
- M(f, !0);
5766
+ !g(d) || g(f) || !g(u) || Ms(g(u).total.points);
5767
+ }, Y = async () => {
5768
+ if (!(!s() || !a() || !g(u))) {
5769
+ I(f, !0);
5743
5770
  try {
5744
5771
  await Is({
5745
5772
  apiEndpoint: s(),
5746
5773
  userSession: a(),
5747
5774
  locale: o()
5748
- }), await g(), Ms(y(u).total.points);
5775
+ }), await y(), $s(g(u).total.points);
5749
5776
  } catch (x) {
5750
- console.error("Claim rakeback: ", x), $s(x.message);
5777
+ console.error("Claim rakeback: ", x), Ds(x.message);
5751
5778
  } finally {
5752
- M(f, !1);
5779
+ I(f, !1);
5753
5780
  }
5754
5781
  }
5755
5782
  };
5756
- Tr(() => {
5757
- s(), a(), o(), g();
5758
- }), Tr(() => {
5759
- const x = (G) => {
5760
- G.data?.type === Oo && Q();
5783
+ Sr(() => {
5784
+ s(), a(), o(), y();
5785
+ }), Sr(() => {
5786
+ const x = (ge) => {
5787
+ ge.data?.type === Po && Y();
5761
5788
  };
5762
5789
  return window.addEventListener("message", x), () => window.removeEventListener("message", x);
5763
5790
  });
5764
- var U = _s(), k = Ji(U);
5791
+ var k = {
5792
+ get apiEndpoint() {
5793
+ return s();
5794
+ },
5795
+ set apiEndpoint(x = "") {
5796
+ s(x), ct();
5797
+ },
5798
+ get userSession() {
5799
+ return a();
5800
+ },
5801
+ set userSession(x = "") {
5802
+ a(x), ct();
5803
+ },
5804
+ get locale() {
5805
+ return o();
5806
+ },
5807
+ set locale(x = "") {
5808
+ o(x), ct();
5809
+ }
5810
+ }, D = _s(), be = Qi(D);
5765
5811
  {
5766
- var me = (x) => {
5767
- var G = Po(), je = lt(G), Ct = lt(je), fi = lt(Ct);
5768
- at(Ct);
5769
- var st = Ki(Ct, 2);
5812
+ var te = (x) => {
5813
+ var ge = Co(), yr = lt(ge), Rt = lt(yr), hi = lt(Rt);
5814
+ at(Rt);
5815
+ var st = Ji(Rt, 2);
5770
5816
  st.__click = H;
5771
- var hi = lt(st, !0);
5772
- at(st), at(je), at(G), os(
5773
- (ci) => {
5774
- Br(fi, `${y(c) ?? ""} ${y(h) ?? ""}`), st.disabled = y(f) || !y(d), Br(hi, ci);
5817
+ var ci = lt(st, !0);
5818
+ at(st), at(yr), at(ge), os(
5819
+ (di) => {
5820
+ Nr(hi, `${g(c) ?? ""} ${g(h) ?? ""}`), st.disabled = g(f) || !g(d), Nr(ci, di);
5775
5821
  },
5776
5822
  [() => r()("requestRackBack")]
5777
- ), Zt(x, G);
5823
+ ), Zt(x, ge);
5778
5824
  };
5779
- xs(k, (x) => {
5780
- y(p) && x(me);
5825
+ xs(be, (x) => {
5826
+ g(p) && x(te);
5781
5827
  });
5782
5828
  }
5783
- Zt(e, U), Kr(), i();
5829
+ Zt(e, D);
5830
+ var Be = Kr(k);
5831
+ return i(), Be;
5784
5832
  }
5785
5833
  ds(["click"]);
5786
- function Co(e) {
5787
- Io(e, {});
5788
- }
5789
- customElements.define("loyalty-rakeback", Os(Co, {}, [], [], !1));
5834
+ customElements.define("loyalty-rakeback", Ps(Ro, { apiEndpoint: {}, userSession: {}, locale: {} }, [], [], !1));
5790
5835
  export {
5791
- Co as L
5836
+ Ro as L
5792
5837
  };