@everymatrix/loyalty-points-card 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,182 +1,177 @@
1
- const ni = "5";
2
- typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(ni);
3
- let gt = !1, ii = !1;
4
- function si() {
5
- gt = !0;
6
- }
7
- si();
8
- const oi = 2, Mr = "[", $r = "[!", Dr = "]", Ve = {}, H = Symbol(), $t = !1;
9
- var ai = Array.isArray, ui = Array.prototype.indexOf, li = Array.from, lt = Object.keys, Xe = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, fi = Object.prototype, hi = Array.prototype, ci = Object.getPrototypeOf, dr = Object.isExtensible;
10
- const oe = () => {
1
+ const ti = "5";
2
+ typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(ti);
3
+ const ri = 2, Cr = "[", $r = "[!", Mr = "]", ze = {}, B = Symbol(), Dt = !1;
4
+ var ni = Array.isArray, ii = Array.prototype.indexOf, si = Array.from, ft = Object.keys, qe = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, oi = Object.prototype, ai = Array.prototype, ui = Object.getPrototypeOf, cr = Object.isExtensible;
5
+ const ae = () => {
11
6
  };
12
- function Ur(e) {
7
+ function Dr(e) {
13
8
  for (var t = 0; t < e.length; t++)
14
9
  e[t]();
15
10
  }
16
- function Gr() {
11
+ function Ur() {
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, Dt = 4, yt = 8, Fr = 1 << 24, re = 16, ce = 32, de = 64, tr = 128, k = 512, I = 1024, $ = 2048, ne = 4096, ae = 8192, ue = 16384, Et = 32768, ft = 65536, pr = 1 << 17, jr = 1 << 18, we = 1 << 19, di = 1 << 20, ye = 32768, Ut = 1 << 21, rr = 1 << 22, le = 1 << 23, Pt = Symbol("$state"), pi = Symbol("legacy props"), Ae = new class extends Error {
17
+ const P = 2, ht = 4, Et = 8, Fr = 1 << 24, ie = 16, de = 32, pe = 64, tr = 128, V = 512, I = 1024, M = 2048, se = 4096, ue = 8192, te = 16384, xt = 32768, ct = 65536, dr = 1 << 17, Gr = 1 << 18, Se = 1 << 19, li = 1 << 20, we = 32768, Ut = 1 << 21, rr = 1 << 22, le = 1 << 23, Nt = Symbol("$state"), fi = 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
- }(), kr = 3, xt = 8;
26
- function vi() {
20
+ }(), jr = 3, wt = 8;
21
+ function hi() {
27
22
  throw new Error("https://svelte.dev/e/async_derived_orphan");
28
23
  }
29
- function _i(e) {
24
+ function ci(e) {
30
25
  throw new Error("https://svelte.dev/e/effect_in_teardown");
31
26
  }
32
- function mi() {
27
+ function di() {
33
28
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
34
29
  }
35
- function bi(e) {
30
+ function pi(e) {
36
31
  throw new Error("https://svelte.dev/e/effect_orphan");
37
32
  }
38
- function gi() {
33
+ function vi() {
39
34
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
40
35
  }
41
- function yi() {
36
+ function _i() {
42
37
  throw new Error("https://svelte.dev/e/hydration_failed");
43
38
  }
44
- function Ei() {
39
+ function mi() {
45
40
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
46
41
  }
47
- function xi() {
42
+ function bi() {
48
43
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
49
44
  }
50
- function wi() {
45
+ function gi() {
51
46
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
52
47
  }
53
- function Ti() {
48
+ function yi() {
54
49
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
55
50
  }
56
51
  function nr(e) {
57
52
  console.warn("https://svelte.dev/e/hydration_mismatch");
58
53
  }
59
- function Si() {
54
+ function Ei() {
60
55
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
61
56
  }
62
57
  let L = !1;
63
- function et(e) {
58
+ function tt(e) {
64
59
  L = e;
65
60
  }
66
61
  let S;
67
- function te(e) {
62
+ function ne(e) {
68
63
  if (e === null)
69
- throw nr(), Ve;
64
+ throw nr(), ze;
70
65
  return S = e;
71
66
  }
72
- function Vr() {
73
- return te(/* @__PURE__ */ pe(S));
67
+ function kr() {
68
+ return ne(/* @__PURE__ */ ve(S));
74
69
  }
75
- function De(e) {
70
+ function Ge(e) {
76
71
  if (L) {
77
- if (/* @__PURE__ */ pe(S) !== null)
78
- throw nr(), Ve;
72
+ if (/* @__PURE__ */ ve(S) !== null)
73
+ throw nr(), ze;
79
74
  S = e;
80
75
  }
81
76
  }
82
- function Hi(e = 1) {
77
+ function xi(e = 1) {
83
78
  if (L) {
84
79
  for (var t = e, r = S; t--; )
85
80
  r = /** @type {TemplateNode} */
86
- /* @__PURE__ */ pe(r);
81
+ /* @__PURE__ */ ve(r);
87
82
  S = r;
88
83
  }
89
84
  }
90
- function Ai(e = !0) {
85
+ function wi(e = !0) {
91
86
  for (var t = 0, r = S; ; ) {
92
- if (r.nodeType === xt) {
87
+ if (r.nodeType === wt) {
93
88
  var n = (
94
89
  /** @type {Comment} */
95
90
  r.data
96
91
  );
97
- if (n === Dr) {
92
+ if (n === Mr) {
98
93
  if (t === 0) return r;
99
94
  t -= 1;
100
- } else (n === Mr || n === $r) && (t += 1);
95
+ } else (n === Cr || n === $r) && (t += 1);
101
96
  }
102
97
  var i = (
103
98
  /** @type {TemplateNode} */
104
- /* @__PURE__ */ pe(r)
99
+ /* @__PURE__ */ ve(r)
105
100
  );
106
101
  e && r.remove(), r = i;
107
102
  }
108
103
  }
109
- function Xr(e) {
104
+ function Vr(e) {
110
105
  return e === this.v;
111
106
  }
112
- function Wr(e, t) {
107
+ function Xr(e, t) {
113
108
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
114
109
  }
115
- function zr(e) {
116
- return !Wr(e, this.v);
110
+ function Ti(e) {
111
+ return !Xr(e, this.v);
117
112
  }
118
- let B = null;
119
- function Pe(e) {
120
- B = e;
113
+ let Si = !1, X = null;
114
+ function Le(e) {
115
+ X = e;
121
116
  }
122
- function qr(e, t = !1, r) {
123
- B = {
124
- p: B,
117
+ function Wr(e, t = !1, r) {
118
+ X = {
119
+ p: X,
125
120
  i: !1,
126
121
  c: null,
127
122
  e: null,
128
123
  s: e,
129
124
  x: null,
130
- l: gt && !t ? { s: null, u: null, $: [] } : null
125
+ l: null
131
126
  };
132
127
  }
133
- function Zr(e) {
128
+ function zr(e) {
134
129
  var t = (
135
130
  /** @type {ComponentContext} */
136
- B
131
+ X
137
132
  ), r = t.e;
138
133
  if (r !== null) {
139
134
  t.e = null;
140
135
  for (var n of r)
141
- vn(n);
136
+ dn(n);
142
137
  }
143
- return t.i = !0, B = t.p, /** @type {T} */
138
+ return e !== void 0 && (t.x = e), t.i = !0, X = t.p, e ?? /** @type {T} */
144
139
  {};
145
140
  }
146
- function Ye() {
147
- return !gt || B !== null && B.l === null;
141
+ function qr() {
142
+ return !0;
148
143
  }
149
- let _e = [];
150
- function Yr() {
151
- var e = _e;
152
- _e = [], Ur(e);
144
+ let ge = [];
145
+ function Zr() {
146
+ var e = ge;
147
+ ge = [], Dr(e);
153
148
  }
154
149
  function ir(e) {
155
- if (_e.length === 0 && !je) {
156
- var t = _e;
150
+ if (ge.length === 0 && !Xe) {
151
+ var t = ge;
157
152
  queueMicrotask(() => {
158
- t === _e && Yr();
153
+ t === ge && Zr();
159
154
  });
160
155
  }
161
- _e.push(e);
156
+ ge.push(e);
162
157
  }
163
- function Bi() {
164
- for (; _e.length > 0; )
165
- Yr();
158
+ function Hi() {
159
+ for (; ge.length > 0; )
160
+ Zr();
166
161
  }
167
- function Qr(e) {
162
+ function Yr(e) {
168
163
  var t = g;
169
164
  if (t === null)
170
165
  return m.f |= le, e;
171
- if (t.f & Et)
172
- Ne(e, t);
166
+ if (t.f & xt)
167
+ Ie(e, t);
173
168
  else {
174
169
  if (!(t.f & tr))
175
170
  throw e;
176
171
  t.b.error(e);
177
172
  }
178
173
  }
179
- function Ne(e, t) {
174
+ function Ie(e, t) {
180
175
  for (; t !== null; ) {
181
176
  if (t.f & tr)
182
177
  try {
@@ -189,27 +184,27 @@ function Ne(e, t) {
189
184
  }
190
185
  throw e;
191
186
  }
192
- const Pi = -7169;
187
+ const Ai = -7169;
193
188
  function N(e, t) {
194
- e.f = e.f & Pi | t;
189
+ e.f = e.f & Ai | t;
195
190
  }
196
191
  function sr(e) {
197
- e.f & k || e.deps === null ? N(e, I) : N(e, ne);
192
+ e.f & V || e.deps === null ? N(e, I) : N(e, se);
198
193
  }
199
- function Jr(e) {
194
+ function Qr(e) {
200
195
  if (e !== null)
201
196
  for (const t of e)
202
- !(t.f & P) || !(t.f & ye) || (t.f ^= ye, Jr(
197
+ !(t.f & P) || !(t.f & we) || (t.f ^= we, Qr(
203
198
  /** @type {Derived} */
204
199
  t.deps
205
200
  ));
206
201
  }
207
- function Kr(e, t, r) {
208
- e.f & $ ? t.add(e) : e.f & ne && r.add(e), Jr(e.deps), N(e, I);
202
+ function Jr(e, t, r) {
203
+ e.f & M ? t.add(e) : e.f & se && r.add(e), Qr(e.deps), N(e, I);
209
204
  }
210
- const tt = /* @__PURE__ */ new Set();
211
- let T = null, X = null, j = [], wt = null, Gt = !1, je = !1;
212
- class W {
205
+ const rt = /* @__PURE__ */ new Set();
206
+ let T = null, W = null, k = [], Tt = null, Ft = !1, Xe = !1;
207
+ class z {
213
208
  committed = !1;
214
209
  /**
215
210
  * The current values of any sources that are updated in this batch
@@ -273,11 +268,11 @@ class W {
273
268
  * @param {Effect[]} root_effects
274
269
  */
275
270
  process(t) {
276
- j = [], this.apply();
271
+ k = [], this.apply();
277
272
  var r = [], n = [];
278
273
  for (const i of t)
279
274
  this.#o(i, r, n);
280
- this.is_fork || this.#l(), this.is_deferred() ? (this.#u(n), this.#u(r)) : (T = null, vr(n), vr(r), this.#s?.resolve()), X = null;
275
+ this.is_fork || this.#l(), this.is_deferred() ? (this.#u(n), this.#u(r)) : (T = null, pr(n), pr(r), this.#s?.resolve()), W = null;
281
276
  }
282
277
  /**
283
278
  * Traverse the effect tree, executing effects or stashing
@@ -289,9 +284,9 @@ class W {
289
284
  #o(t, r, n) {
290
285
  t.f ^= I;
291
286
  for (var i = t.first, s = null; i !== null; ) {
292
- var o = i.f, a = (o & (ce | de)) !== 0, l = a && (o & I) !== 0, u = l || (o & ae) !== 0 || this.skipped_effects.has(i);
287
+ var o = i.f, a = (o & (de | pe)) !== 0, l = a && (o & I) !== 0, u = l || (o & ue) !== 0 || this.skipped_effects.has(i);
293
288
  if (!u && i.fn !== null) {
294
- a ? i.f ^= I : s !== null && o & (Dt | yt | Fr) ? s.b.defer_effect(i) : o & Dt ? r.push(i) : Je(i) && (o & re && this.#n.add(i), ze(i));
289
+ a ? i.f ^= I : s !== null && o & (ht | Et | Fr) ? s.b.defer_effect(i) : o & ht ? r.push(i) : et(i) && (o & ie && this.#n.add(i), Ye(i));
295
290
  var f = i.first;
296
291
  if (f !== null) {
297
292
  i = f;
@@ -308,7 +303,7 @@ class W {
308
303
  */
309
304
  #u(t) {
310
305
  for (var r = 0; r < t.length; r += 1)
311
- Kr(t[r], this.#n, this.#r);
306
+ Jr(t[r], this.#n, this.#r);
312
307
  }
313
308
  /**
314
309
  * Associate a change to a given source with the current
@@ -317,17 +312,17 @@ class W {
317
312
  * @param {any} value
318
313
  */
319
314
  capture(t, r) {
320
- r !== H && !this.previous.has(t) && this.previous.set(t, r), t.f & le || (this.current.set(t, t.v), X?.set(t, t.v));
315
+ r !== B && !this.previous.has(t) && this.previous.set(t, r), t.f & le || (this.current.set(t, t.v), W?.set(t, t.v));
321
316
  }
322
317
  activate() {
323
318
  T = this, this.apply();
324
319
  }
325
320
  deactivate() {
326
- T === this && (T = null, X = null);
321
+ T === this && (T = null, W = null);
327
322
  }
328
323
  flush() {
329
- if (this.activate(), j.length > 0) {
330
- if (tn(), T !== null && T !== this)
324
+ if (this.activate(), k.length > 0) {
325
+ if (Kr(), T !== null && T !== this)
331
326
  return;
332
327
  } else this.#i === 0 && this.process([]);
333
328
  this.deactivate();
@@ -344,10 +339,10 @@ class W {
344
339
  this.#i === 0 && this.#f();
345
340
  }
346
341
  #f() {
347
- if (tt.size > 1) {
342
+ if (rt.size > 1) {
348
343
  this.previous.clear();
349
- var t = X, r = !0;
350
- for (const i of tt) {
344
+ var t = W, r = !0;
345
+ for (const i of rt) {
351
346
  if (i === this) {
352
347
  r = !1;
353
348
  continue;
@@ -365,23 +360,23 @@ class W {
365
360
  continue;
366
361
  const o = [...i.current.keys()].filter((a) => !this.current.has(a));
367
362
  if (o.length > 0) {
368
- var n = j;
369
- j = [];
363
+ var n = k;
364
+ k = [];
370
365
  const a = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
371
366
  for (const u of s)
372
- rn(u, o, a, l);
373
- if (j.length > 0) {
367
+ en(u, o, a, l);
368
+ if (k.length > 0) {
374
369
  T = i, i.apply();
375
- for (const u of j)
370
+ for (const u of k)
376
371
  i.#o(u, [], []);
377
372
  i.deactivate();
378
373
  }
379
- j = n;
374
+ k = n;
380
375
  }
381
376
  }
382
- T = null, X = t;
377
+ T = null, W = t;
383
378
  }
384
- this.committed = !0, tt.delete(this);
379
+ this.committed = !0, rt.delete(this);
385
380
  }
386
381
  /**
387
382
  *
@@ -399,9 +394,9 @@ class W {
399
394
  }
400
395
  revive() {
401
396
  for (const t of this.#n)
402
- this.#r.delete(t), N(t, $), he(t);
397
+ this.#r.delete(t), N(t, M), he(t);
403
398
  for (const t of this.#r)
404
- N(t, ne), he(t);
399
+ N(t, se), he(t);
405
400
  this.flush();
406
401
  }
407
402
  /** @param {() => void} fn */
@@ -413,12 +408,12 @@ class W {
413
408
  this.#t.add(t);
414
409
  }
415
410
  settled() {
416
- return (this.#s ??= Gr()).promise;
411
+ return (this.#s ??= Ur()).promise;
417
412
  }
418
413
  static ensure() {
419
414
  if (T === null) {
420
- const t = T = new W();
421
- tt.add(T), je || W.enqueue(() => {
415
+ const t = T = new z();
416
+ rt.add(T), Xe || z.enqueue(() => {
422
417
  T === t && t.flush();
423
418
  });
424
419
  }
@@ -431,94 +426,94 @@ class W {
431
426
  apply() {
432
427
  }
433
428
  }
434
- function en(e) {
435
- var t = je;
436
- je = !0;
429
+ function Ne(e) {
430
+ var t = Xe;
431
+ Xe = !0;
437
432
  try {
438
433
  for (var r; ; ) {
439
- if (Bi(), j.length === 0 && (T?.flush(), j.length === 0))
440
- return wt = null, /** @type {T} */
434
+ if (Hi(), k.length === 0 && (T?.flush(), k.length === 0))
435
+ return Tt = null, /** @type {T} */
441
436
  r;
442
- tn();
437
+ Kr();
443
438
  }
444
439
  } finally {
445
- je = t;
440
+ Xe = t;
446
441
  }
447
442
  }
448
- function tn() {
449
- var e = be;
450
- Gt = !0;
443
+ function Kr() {
444
+ var e = Ee;
445
+ Ft = !0;
451
446
  var t = null;
452
447
  try {
453
448
  var r = 0;
454
- for (pt(!0); j.length > 0; ) {
455
- var n = W.ensure();
449
+ for (_t(!0); k.length > 0; ) {
450
+ var n = z.ensure();
456
451
  if (r++ > 1e3) {
457
452
  var i, s;
458
- Ni();
453
+ Bi();
459
454
  }
460
- n.process(j), fe.clear();
455
+ n.process(k), fe.clear();
461
456
  }
462
457
  } finally {
463
- Gt = !1, pt(e), wt = null;
458
+ Ft = !1, _t(e), Tt = null;
464
459
  }
465
460
  }
466
- function Ni() {
461
+ function Bi() {
467
462
  try {
468
- gi();
463
+ vi();
469
464
  } catch (e) {
470
- Ne(e, wt);
465
+ Ie(e, Tt);
471
466
  }
472
467
  }
473
- let K = null;
474
- function vr(e) {
468
+ let ee = null;
469
+ function pr(e) {
475
470
  var t = e.length;
476
471
  if (t !== 0) {
477
472
  for (var r = 0; r < t; ) {
478
473
  var n = e[r++];
479
- if (!(n.f & (ue | ae)) && Je(n) && (K = /* @__PURE__ */ new Set(), ze(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? gn(n) : n.fn = null), K?.size > 0)) {
474
+ if (!(n.f & (te | ue)) && et(n) && (ee = /* @__PURE__ */ new Set(), Ye(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? mn(n) : n.fn = null), ee?.size > 0)) {
480
475
  fe.clear();
481
- for (const i of K) {
482
- if (i.f & (ue | ae)) continue;
476
+ for (const i of ee) {
477
+ if (i.f & (te | ue)) continue;
483
478
  const s = [i];
484
479
  let o = i.parent;
485
480
  for (; o !== null; )
486
- K.has(o) && (K.delete(o), s.push(o)), o = o.parent;
481
+ ee.has(o) && (ee.delete(o), s.push(o)), o = o.parent;
487
482
  for (let a = s.length - 1; a >= 0; a--) {
488
483
  const l = s[a];
489
- l.f & (ue | ae) || ze(l);
484
+ l.f & (te | ue) || Ye(l);
490
485
  }
491
486
  }
492
- K.clear();
487
+ ee.clear();
493
488
  }
494
489
  }
495
- K = null;
490
+ ee = null;
496
491
  }
497
492
  }
498
- function rn(e, t, r, n) {
493
+ function en(e, t, r, n) {
499
494
  if (!r.has(e) && (r.add(e), e.reactions !== null))
500
495
  for (const i of e.reactions) {
501
496
  const s = i.f;
502
- s & P ? rn(
497
+ s & P ? en(
503
498
  /** @type {Derived} */
504
499
  i,
505
500
  t,
506
501
  r,
507
502
  n
508
- ) : s & (rr | re) && !(s & $) && nn(i, t, n) && (N(i, $), he(
503
+ ) : s & (rr | ie) && !(s & M) && tn(i, t, n) && (N(i, M), he(
509
504
  /** @type {Effect} */
510
505
  i
511
506
  ));
512
507
  }
513
508
  }
514
- function nn(e, t, r) {
509
+ function tn(e, t, r) {
515
510
  const n = r.get(e);
516
511
  if (n !== void 0) return n;
517
512
  if (e.deps !== null)
518
513
  for (const i of e.deps) {
519
514
  if (t.includes(i))
520
515
  return !0;
521
- if (i.f & P && nn(
516
+ if (i.f & P && tn(
522
517
  /** @type {Derived} */
523
518
  i,
524
519
  t,
@@ -533,33 +528,33 @@ function nn(e, t, r) {
533
528
  return r.set(e, !1), !1;
534
529
  }
535
530
  function he(e) {
536
- for (var t = wt = e; t.parent !== null; ) {
531
+ for (var t = Tt = e; t.parent !== null; ) {
537
532
  t = t.parent;
538
533
  var r = t.f;
539
- if (Gt && t === g && r & re && !(r & jr))
534
+ if (Ft && t === g && r & ie && !(r & Gr))
540
535
  return;
541
- if (r & (de | ce)) {
536
+ if (r & (pe | de)) {
542
537
  if (!(r & I)) return;
543
538
  t.f ^= I;
544
539
  }
545
540
  }
546
- j.push(t);
541
+ k.push(t);
547
542
  }
548
- function Oi(e) {
549
- let t = 0, r = Qe(0), n;
543
+ function Pi(e) {
544
+ let t = 0, r = Ke(0), n;
550
545
  return () => {
551
- ur() && (x(r), _n(() => (t === 0 && (n = Bn(() => e(() => ke(r)))), t += 1, () => {
546
+ ur() && (y(r), pn(() => (t === 0 && (n = Hn(() => e(() => We(r)))), t += 1, () => {
552
547
  ir(() => {
553
- t -= 1, t === 0 && (n?.(), n = void 0, ke(r));
548
+ t -= 1, t === 0 && (n?.(), n = void 0, We(r));
554
549
  });
555
550
  })));
556
551
  };
557
552
  }
558
- var Li = ft | we | tr;
559
- function Ii(e, t, r) {
560
- new Ri(e, t, r);
553
+ var Ni = ct | Se | tr;
554
+ function Oi(e, t, r) {
555
+ new Li(e, t, r);
561
556
  }
562
- class Ri {
557
+ class Li {
563
558
  /** @type {Boundary | null} */
564
559
  parent;
565
560
  is_pending = !1;
@@ -598,7 +593,7 @@ class Ri {
598
593
  * @type {Source<number> | null}
599
594
  */
600
595
  #c = null;
601
- #y = Oi(() => (this.#c = Qe(this.#f), () => {
596
+ #y = Pi(() => (this.#c = Ke(this.#f), () => {
602
597
  this.#c = null;
603
598
  }));
604
599
  /**
@@ -608,16 +603,16 @@ class Ri {
608
603
  */
609
604
  constructor(t, r, n) {
610
605
  this.#e = t, this.#i = r, this.#a = n, this.parent = /** @type {Effect} */
611
- g.b, this.is_pending = !!this.#i.pending, this.#s = Zi(() => {
606
+ g.b, this.is_pending = !!this.#i.pending, this.#s = zi(() => {
612
607
  if (g.b = this, L) {
613
608
  const s = this.#t;
614
- Vr(), /** @type {Comment} */
615
- s.nodeType === xt && /** @type {Comment} */
609
+ kr(), /** @type {Comment} */
610
+ s.nodeType === wt && /** @type {Comment} */
616
611
  s.data === $r ? this.#x() : (this.#E(), this.#h === 0 && (this.is_pending = !1));
617
612
  } else {
618
613
  var i = this.#b();
619
614
  try {
620
- this.#n = ve(() => n(i));
615
+ this.#n = be(() => n(i));
621
616
  } catch (s) {
622
617
  this.error(s);
623
618
  }
@@ -626,20 +621,20 @@ class Ri {
626
621
  return () => {
627
622
  this.#l?.remove();
628
623
  };
629
- }, Li), L && (this.#e = S);
624
+ }, Ni), L && (this.#e = S);
630
625
  }
631
626
  #E() {
632
627
  try {
633
- this.#n = ve(() => this.#a(this.#e));
628
+ this.#n = be(() => this.#a(this.#e));
634
629
  } catch (t) {
635
630
  this.error(t);
636
631
  }
637
632
  }
638
633
  #x() {
639
634
  const t = this.#i.pending;
640
- t && (this.#r = ve(() => t(this.#e)), W.enqueue(() => {
635
+ t && (this.#r = be(() => t(this.#e)), z.enqueue(() => {
641
636
  var r = this.#b();
642
- this.#n = this.#_(() => (W.ensure(), ve(() => this.#a(r)))), this.#h > 0 ? this.#m() : (st(
637
+ this.#n = this.#_(() => (z.ensure(), be(() => this.#a(r)))), this.#h > 0 ? this.#m() : (ot(
643
638
  /** @type {Effect} */
644
639
  this.#r,
645
640
  () => {
@@ -650,14 +645,14 @@ class Ri {
650
645
  }
651
646
  #b() {
652
647
  var t = this.#e;
653
- return this.is_pending && (this.#l = We(), this.#e.before(this.#l), t = this.#l), t;
648
+ return this.is_pending && (this.#l = Ze(), this.#e.before(this.#l), t = this.#l), t;
654
649
  }
655
650
  /**
656
651
  * Defer an effect inside a pending boundary until the boundary resolves
657
652
  * @param {Effect} effect
658
653
  */
659
654
  defer_effect(t) {
660
- Kr(t, this.#p, this.#v);
655
+ Jr(t, this.#p, this.#v);
661
656
  }
662
657
  /**
663
658
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -673,14 +668,14 @@ class Ri {
673
668
  * @param {() => Effect | null} fn
674
669
  */
675
670
  #_(t) {
676
- var r = g, n = m, i = B;
677
- J(this.#s), M(this.#s), Pe(this.#s.ctx);
671
+ var r = g, n = m, i = X;
672
+ Q(this.#s), $(this.#s), Le(this.#s.ctx);
678
673
  try {
679
674
  return t();
680
675
  } catch (s) {
681
- return Qr(s), null;
676
+ return Yr(s), null;
682
677
  } finally {
683
- J(r), M(n), Pe(i);
678
+ Q(r), $(n), Le(i);
684
679
  }
685
680
  }
686
681
  #m() {
@@ -691,7 +686,7 @@ class Ri {
691
686
  this.#n !== null && (this.#u = document.createDocumentFragment(), this.#u.append(
692
687
  /** @type {TemplateNode} */
693
688
  this.#l
694
- ), Ji(this.#n, this.#u)), this.#r === null && (this.#r = ve(() => t(this.#e)));
689
+ ), Yi(this.#n, this.#u)), this.#r === null && (this.#r = be(() => t(this.#e)));
695
690
  }
696
691
  /**
697
692
  * Updates the pending count associated with the currently visible pending snippet,
@@ -706,10 +701,10 @@ class Ri {
706
701
  if (this.#h += t, this.#h === 0) {
707
702
  this.is_pending = !1;
708
703
  for (const r of this.#p)
709
- N(r, $), he(r);
704
+ N(r, M), he(r);
710
705
  for (const r of this.#v)
711
- N(r, ne), he(r);
712
- this.#p.clear(), this.#v.clear(), this.#r && st(this.#r, () => {
706
+ N(r, se), he(r);
707
+ this.#p.clear(), this.#v.clear(), this.#r && ot(this.#r, () => {
713
708
  this.#r = null;
714
709
  }), this.#u && (this.#e.before(this.#u), this.#u = null);
715
710
  }
@@ -721,10 +716,10 @@ class Ri {
721
716
  * @param {1 | -1} d
722
717
  */
723
718
  update_pending_count(t) {
724
- this.#g(t), this.#f += t, this.#c && ct(this.#c, this.#f);
719
+ this.#g(t), this.#f += t, this.#c && pt(this.#c, this.#f);
725
720
  }
726
721
  get_effect_pending() {
727
- return this.#y(), x(
722
+ return this.#y(), y(
728
723
  /** @type {Source<number>} */
729
724
  this.#c
730
725
  );
@@ -735,33 +730,33 @@ class Ri {
735
730
  let n = this.#i.failed;
736
731
  if (this.#d || !r && !n)
737
732
  throw t;
738
- this.#n && (q(this.#n), this.#n = null), this.#r && (q(this.#r), this.#r = null), this.#o && (q(this.#o), this.#o = null), L && (te(
733
+ this.#n && (Z(this.#n), this.#n = null), this.#r && (Z(this.#r), this.#r = null), this.#o && (Z(this.#o), this.#o = null), L && (ne(
739
734
  /** @type {TemplateNode} */
740
735
  this.#t
741
- ), Hi(), te(Ai()));
736
+ ), xi(), ne(wi()));
742
737
  var i = !1, s = !1;
743
738
  const o = () => {
744
739
  if (i) {
745
- Si();
740
+ Ei();
746
741
  return;
747
742
  }
748
- i = !0, s && Ti(), W.ensure(), this.#f = 0, this.#o !== null && st(this.#o, () => {
743
+ i = !0, s && yi(), z.ensure(), this.#f = 0, this.#o !== null && ot(this.#o, () => {
749
744
  this.#o = null;
750
- }), this.is_pending = this.has_pending_snippet(), this.#n = this.#_(() => (this.#d = !1, ve(() => this.#a(this.#e)))), this.#h > 0 ? this.#m() : this.is_pending = !1;
745
+ }), this.is_pending = this.has_pending_snippet(), this.#n = this.#_(() => (this.#d = !1, be(() => this.#a(this.#e)))), this.#h > 0 ? this.#m() : this.is_pending = !1;
751
746
  };
752
747
  var a = m;
753
748
  try {
754
- M(null), s = !0, r?.(t, o), s = !1;
749
+ $(null), s = !0, r?.(t, o), s = !1;
755
750
  } catch (l) {
756
- Ne(l, this.#s && this.#s.parent);
751
+ Ie(l, this.#s && this.#s.parent);
757
752
  } finally {
758
- M(a);
753
+ $(a);
759
754
  }
760
755
  n && ir(() => {
761
756
  this.#o = this.#_(() => {
762
- W.ensure(), this.#d = !0;
757
+ z.ensure(), this.#d = !0;
763
758
  try {
764
- return ve(() => {
759
+ return be(() => {
765
760
  n(
766
761
  this.#e,
767
762
  () => t,
@@ -769,7 +764,7 @@ class Ri {
769
764
  );
770
765
  });
771
766
  } catch (l) {
772
- return Ne(
767
+ return Ie(
773
768
  l,
774
769
  /** @type {Effect} */
775
770
  this.#s.parent
@@ -781,8 +776,8 @@ class Ri {
781
776
  });
782
777
  }
783
778
  }
784
- function Ci(e, t, r, n) {
785
- const i = Ye() ? or : Di;
779
+ function Ii(e, t, r, n) {
780
+ const i = or;
786
781
  if (r.length === 0 && e.length === 0) {
787
782
  n(t.map(i));
788
783
  return;
@@ -790,18 +785,18 @@ function Ci(e, t, r, n) {
790
785
  var s = T, o = (
791
786
  /** @type {Effect} */
792
787
  g
793
- ), a = Mi();
788
+ ), a = Ri();
794
789
  function l() {
795
- Promise.all(r.map((u) => /* @__PURE__ */ $i(u))).then((u) => {
790
+ Promise.all(r.map((u) => /* @__PURE__ */ Ci(u))).then((u) => {
796
791
  a();
797
792
  try {
798
793
  n([...t.map(i), ...u]);
799
794
  } catch (f) {
800
- o.f & ue || Ne(f, o);
795
+ o.f & te || Ie(f, o);
801
796
  }
802
- s?.deactivate(), ht();
797
+ s?.deactivate(), dt();
803
798
  }).catch((u) => {
804
- Ne(u, o);
799
+ Ie(u, o);
805
800
  });
806
801
  }
807
802
  e.length > 0 ? Promise.all(e).then(() => {
@@ -809,37 +804,37 @@ function Ci(e, t, r, n) {
809
804
  try {
810
805
  return l();
811
806
  } finally {
812
- s?.deactivate(), ht();
807
+ s?.deactivate(), dt();
813
808
  }
814
809
  }) : l();
815
810
  }
816
- function Mi() {
817
- var e = g, t = m, r = B, n = T;
811
+ function Ri() {
812
+ var e = g, t = m, r = X, n = T;
818
813
  return function(s = !0) {
819
- J(e), M(t), Pe(r), s && n?.activate();
814
+ Q(e), $(t), Le(r), s && n?.activate();
820
815
  };
821
816
  }
822
- function ht() {
823
- J(null), M(null), Pe(null);
817
+ function dt() {
818
+ Q(null), $(null), Le(null);
824
819
  }
825
820
  // @__NO_SIDE_EFFECTS__
826
821
  function or(e) {
827
- var t = P | $, r = m !== null && m.f & P ? (
822
+ var t = P | M, r = m !== null && m.f & P ? (
828
823
  /** @type {Derived} */
829
824
  m
830
825
  ) : null;
831
- return g !== null && (g.f |= we), {
832
- ctx: B,
826
+ return g !== null && (g.f |= Se), {
827
+ ctx: X,
833
828
  deps: null,
834
829
  effects: null,
835
- equals: Xr,
830
+ equals: Vr,
836
831
  f: t,
837
832
  fn: e,
838
833
  reactions: null,
839
834
  rv: 0,
840
835
  v: (
841
836
  /** @type {V} */
842
- H
837
+ B
843
838
  ),
844
839
  wv: 0,
845
840
  parent: r ?? g,
@@ -847,12 +842,12 @@ function or(e) {
847
842
  };
848
843
  }
849
844
  // @__NO_SIDE_EFFECTS__
850
- function $i(e, t, r) {
845
+ function Ci(e, t, r) {
851
846
  let n = (
852
847
  /** @type {Effect | null} */
853
848
  g
854
849
  );
855
- n === null && vi();
850
+ n === null && hi();
856
851
  var i = (
857
852
  /** @type {Boundary} */
858
853
  n.b
@@ -860,19 +855,19 @@ function $i(e, t, r) {
860
855
  /** @type {Promise<V>} */
861
856
  /** @type {unknown} */
862
857
  void 0
863
- ), o = Qe(
858
+ ), o = Ke(
864
859
  /** @type {V} */
865
- H
860
+ B
866
861
  ), a = !m, l = /* @__PURE__ */ new Map();
867
- return zi(() => {
868
- var u = Gr();
862
+ return Xi(() => {
863
+ var u = Ur();
869
864
  s = u.promise;
870
865
  try {
871
866
  Promise.resolve(e()).then(u.resolve, u.reject).then(() => {
872
- f === T && f.committed && f.deactivate(), ht();
867
+ f === T && f.committed && f.deactivate(), dt();
873
868
  });
874
869
  } catch (d) {
875
- u.reject(d), ht();
870
+ u.reject(d), dt();
876
871
  }
877
872
  var f = (
878
873
  /** @type {Batch} */
@@ -880,24 +875,24 @@ function $i(e, t, r) {
880
875
  );
881
876
  if (a) {
882
877
  var c = i.is_rendered();
883
- i.update_pending_count(1), f.increment(c), l.get(f)?.reject(Ae), l.delete(f), l.set(f, u);
878
+ i.update_pending_count(1), f.increment(c), l.get(f)?.reject(Pe), l.delete(f), l.set(f, u);
884
879
  }
885
880
  const h = (d, p = void 0) => {
886
881
  if (f.activate(), p)
887
- p !== Ae && (o.f |= le, ct(o, p));
882
+ p !== Pe && (o.f |= le, pt(o, p));
888
883
  else {
889
- o.f & le && (o.f ^= le), ct(o, d);
890
- for (const [v, E] of l) {
884
+ o.f & le && (o.f ^= le), pt(o, d);
885
+ for (const [v, x] of l) {
891
886
  if (l.delete(v), v === f) break;
892
- E.reject(Ae);
887
+ x.reject(Pe);
893
888
  }
894
889
  }
895
890
  a && (i.update_pending_count(-1), f.decrement(c));
896
891
  };
897
892
  u.promise.then(h, (d) => h(null, d || "unknown"));
898
- }), pn(() => {
893
+ }), cn(() => {
899
894
  for (const u of l.values())
900
- u.reject(Ae);
895
+ u.reject(Pe);
901
896
  }), new Promise((u) => {
902
897
  function f(c) {
903
898
  function h() {
@@ -909,30 +904,25 @@ function $i(e, t, r) {
909
904
  });
910
905
  }
911
906
  // @__NO_SIDE_EFFECTS__
912
- function Nt(e) {
913
- const t = /* @__PURE__ */ or(e);
914
- return En(t), t;
915
- }
916
- // @__NO_SIDE_EFFECTS__
917
- function Di(e) {
907
+ function Ot(e) {
918
908
  const t = /* @__PURE__ */ or(e);
919
- return t.equals = zr, t;
909
+ return gn(t), t;
920
910
  }
921
- function sn(e) {
911
+ function rn(e) {
922
912
  var t = e.effects;
923
913
  if (t !== null) {
924
914
  e.effects = null;
925
915
  for (var r = 0; r < t.length; r += 1)
926
- q(
916
+ Z(
927
917
  /** @type {Effect} */
928
918
  t[r]
929
919
  );
930
920
  }
931
921
  }
932
- function Ui(e) {
922
+ function $i(e) {
933
923
  for (var t = e.parent; t !== null; ) {
934
924
  if (!(t.f & P))
935
- return t.f & ue ? null : (
925
+ return t.f & te ? null : (
936
926
  /** @type {Effect} */
937
927
  t
938
928
  );
@@ -942,32 +932,32 @@ function Ui(e) {
942
932
  }
943
933
  function ar(e) {
944
934
  var t, r = g;
945
- J(Ui(e));
935
+ Q($i(e));
946
936
  try {
947
- e.f &= ~ye, sn(e), t = Sn(e);
937
+ e.f &= ~we, rn(e), t = wn(e);
948
938
  } finally {
949
- J(r);
939
+ Q(r);
950
940
  }
951
941
  return t;
952
942
  }
953
- function on(e) {
943
+ function nn(e) {
954
944
  var t = ar(e);
955
- if (!e.equals(t) && (e.wv = wn(), (!T?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
945
+ if (!e.equals(t) && (e.wv = En(), (!T?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
956
946
  N(e, I);
957
947
  return;
958
948
  }
959
- Ee || (X !== null ? (ur() || T?.is_fork) && X.set(e, t) : sr(e));
949
+ ce || (W !== null ? (ur() || T?.is_fork) && W.set(e, t) : sr(e));
960
950
  }
961
- let Ft = /* @__PURE__ */ new Set();
951
+ let Gt = /* @__PURE__ */ new Set();
962
952
  const fe = /* @__PURE__ */ new Map();
963
- let an = !1;
964
- function Qe(e, t) {
953
+ let sn = !1;
954
+ function Ke(e, t) {
965
955
  var r = {
966
956
  f: 0,
967
957
  // TODO ideally we could skip this altogether, but it causes type errors
968
958
  v: e,
969
959
  reactions: null,
970
- equals: Xr,
960
+ equals: Vr,
971
961
  rv: 0,
972
962
  wv: 0
973
963
  };
@@ -975,89 +965,86 @@ function Qe(e, t) {
975
965
  }
976
966
  // @__NO_SIDE_EFFECTS__
977
967
  function R(e, t) {
978
- const r = Qe(e);
979
- return En(r), r;
968
+ const r = Ke(e);
969
+ return gn(r), r;
980
970
  }
981
971
  // @__NO_SIDE_EFFECTS__
982
- function un(e, t = !1, r = !0) {
983
- const n = Qe(e);
984
- return t || (n.equals = zr), gt && r && B !== null && B.l !== null && (B.l.s ??= []).push(n), n;
972
+ function on(e, t = !1, r = !0) {
973
+ const n = Ke(e);
974
+ return t || (n.equals = Ti), n;
985
975
  }
986
- function A(e, t, r = !1) {
976
+ function H(e, t, r = !1) {
987
977
  m !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
988
978
  // to ensure we error if state is set inside an inspect effect
989
- (!z || m.f & pr) && Ye() && m.f & (P | re | rr | pr) && !ee?.includes(e) && wi();
990
- let n = r ? Fe(t) : t;
991
- return ct(e, n);
979
+ (!q || m.f & dr) && qr() && m.f & (P | ie | rr | dr) && !re?.includes(e) && gi();
980
+ let n = r ? Ve(t) : t;
981
+ return pt(e, n);
992
982
  }
993
- function ct(e, t) {
983
+ function pt(e, t) {
994
984
  if (!e.equals(t)) {
995
985
  var r = e.v;
996
- Ee ? fe.set(e, t) : fe.set(e, r), e.v = t;
997
- var n = W.ensure();
986
+ ce ? fe.set(e, t) : fe.set(e, r), e.v = t;
987
+ var n = z.ensure();
998
988
  if (n.capture(e, r), e.f & P) {
999
989
  const i = (
1000
990
  /** @type {Derived} */
1001
991
  e
1002
992
  );
1003
- e.f & $ && ar(i), sr(i);
993
+ e.f & M && ar(i), sr(i);
1004
994
  }
1005
- e.wv = wn(), ln(e, $), Ye() && g !== null && g.f & I && !(g.f & (ce | de)) && (F === null ? Ki([e]) : F.push(e)), !n.is_fork && Ft.size > 0 && !an && Gi();
995
+ e.wv = En(), an(e, M), g !== null && g.f & I && !(g.f & (de | pe)) && (j === null ? Qi([e]) : j.push(e)), !n.is_fork && Gt.size > 0 && !sn && Mi();
1006
996
  }
1007
997
  return t;
1008
998
  }
1009
- function Gi() {
1010
- an = !1;
1011
- var e = be;
1012
- pt(!0);
1013
- const t = Array.from(Ft);
999
+ function Mi() {
1000
+ sn = !1;
1001
+ var e = Ee;
1002
+ _t(!0);
1003
+ const t = Array.from(Gt);
1014
1004
  try {
1015
1005
  for (const r of t)
1016
- r.f & I && N(r, ne), Je(r) && ze(r);
1006
+ r.f & I && N(r, se), et(r) && Ye(r);
1017
1007
  } finally {
1018
- pt(e);
1008
+ _t(e);
1019
1009
  }
1020
- Ft.clear();
1010
+ Gt.clear();
1021
1011
  }
1022
- function ke(e) {
1023
- A(e, e.v + 1);
1012
+ function We(e) {
1013
+ H(e, e.v + 1);
1024
1014
  }
1025
- function ln(e, t) {
1015
+ function an(e, t) {
1026
1016
  var r = e.reactions;
1027
1017
  if (r !== null)
1028
- for (var n = Ye(), i = r.length, s = 0; s < i; s++) {
1029
- var o = r[s], a = o.f;
1030
- if (!(!n && o === g)) {
1031
- var l = (a & $) === 0;
1032
- if (l && N(o, t), a & P) {
1033
- var u = (
1034
- /** @type {Derived} */
1035
- o
1036
- );
1037
- X?.delete(u), a & ye || (a & k && (o.f |= ye), ln(u, ne));
1038
- } else l && (a & re && K !== null && K.add(
1039
- /** @type {Effect} */
1040
- o
1041
- ), he(
1042
- /** @type {Effect} */
1043
- o
1044
- ));
1045
- }
1018
+ for (var n = r.length, i = 0; i < n; i++) {
1019
+ var s = r[i], o = s.f, a = (o & M) === 0;
1020
+ if (a && N(s, t), o & P) {
1021
+ var l = (
1022
+ /** @type {Derived} */
1023
+ s
1024
+ );
1025
+ W?.delete(l), o & we || (o & V && (s.f |= we), an(l, se));
1026
+ } else a && (o & ie && ee !== null && ee.add(
1027
+ /** @type {Effect} */
1028
+ s
1029
+ ), he(
1030
+ /** @type {Effect} */
1031
+ s
1032
+ ));
1046
1033
  }
1047
1034
  }
1048
- function Fe(e) {
1049
- if (typeof e != "object" || e === null || Pt in e)
1035
+ function Ve(e) {
1036
+ if (typeof e != "object" || e === null || Nt in e)
1050
1037
  return e;
1051
- const t = ci(e);
1052
- if (t !== fi && t !== hi)
1038
+ const t = ui(e);
1039
+ if (t !== oi && t !== ai)
1053
1040
  return e;
1054
- var r = /* @__PURE__ */ new Map(), n = ai(e), i = /* @__PURE__ */ R(0), s = ge, o = (a) => {
1055
- if (ge === s)
1041
+ var r = /* @__PURE__ */ new Map(), n = ni(e), i = /* @__PURE__ */ R(0), s = xe, o = (a) => {
1042
+ if (xe === s)
1056
1043
  return a();
1057
- var l = m, u = ge;
1058
- M(null), gr(s);
1044
+ var l = m, u = xe;
1045
+ $(null), br(s);
1059
1046
  var f = a();
1060
- return M(l), gr(u), f;
1047
+ return $(l), br(u), f;
1061
1048
  };
1062
1049
  return n && r.set("length", /* @__PURE__ */ R(
1063
1050
  /** @type {any[]} */
@@ -1067,34 +1054,34 @@ function Fe(e) {
1067
1054
  e,
1068
1055
  {
1069
1056
  defineProperty(a, l, u) {
1070
- (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Ei();
1057
+ (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && mi();
1071
1058
  var f = r.get(l);
1072
1059
  return f === void 0 ? f = o(() => {
1073
1060
  var c = /* @__PURE__ */ R(u.value);
1074
1061
  return r.set(l, c), c;
1075
- }) : A(f, u.value, !0), !0;
1062
+ }) : H(f, u.value, !0), !0;
1076
1063
  },
1077
1064
  deleteProperty(a, l) {
1078
1065
  var u = r.get(l);
1079
1066
  if (u === void 0) {
1080
1067
  if (l in a) {
1081
- const f = o(() => /* @__PURE__ */ R(H));
1082
- r.set(l, f), ke(i);
1068
+ const f = o(() => /* @__PURE__ */ R(B));
1069
+ r.set(l, f), We(i);
1083
1070
  }
1084
1071
  } else
1085
- A(u, H), ke(i);
1072
+ H(u, B), We(i);
1086
1073
  return !0;
1087
1074
  },
1088
1075
  get(a, l, u) {
1089
- if (l === Pt)
1076
+ if (l === Nt)
1090
1077
  return e;
1091
1078
  var f = r.get(l), c = l in a;
1092
- if (f === void 0 && (!c || Be(a, l)?.writable) && (f = o(() => {
1093
- var d = Fe(c ? a[l] : H), p = /* @__PURE__ */ R(d);
1079
+ if (f === void 0 && (!c || Oe(a, l)?.writable) && (f = o(() => {
1080
+ var d = Ve(c ? a[l] : B), p = /* @__PURE__ */ R(d);
1094
1081
  return p;
1095
1082
  }), r.set(l, f)), f !== void 0) {
1096
- var h = x(f);
1097
- return h === H ? void 0 : h;
1083
+ var h = y(f);
1084
+ return h === B ? void 0 : h;
1098
1085
  }
1099
1086
  return Reflect.get(a, l, u);
1100
1087
  },
@@ -1102,10 +1089,10 @@ function Fe(e) {
1102
1089
  var u = Reflect.getOwnPropertyDescriptor(a, l);
1103
1090
  if (u && "value" in u) {
1104
1091
  var f = r.get(l);
1105
- f && (u.value = x(f));
1092
+ f && (u.value = y(f));
1106
1093
  } else if (u === void 0) {
1107
1094
  var c = r.get(l), h = c?.v;
1108
- if (c !== void 0 && h !== H)
1095
+ if (c !== void 0 && h !== B)
1109
1096
  return {
1110
1097
  enumerable: !0,
1111
1098
  configurable: !0,
@@ -1116,16 +1103,16 @@ function Fe(e) {
1116
1103
  return u;
1117
1104
  },
1118
1105
  has(a, l) {
1119
- if (l === Pt)
1106
+ if (l === Nt)
1120
1107
  return !0;
1121
- var u = r.get(l), f = u !== void 0 && u.v !== H || Reflect.has(a, l);
1122
- if (u !== void 0 || g !== null && (!f || Be(a, l)?.writable)) {
1108
+ var u = r.get(l), f = u !== void 0 && u.v !== B || Reflect.has(a, l);
1109
+ if (u !== void 0 || g !== null && (!f || Oe(a, l)?.writable)) {
1123
1110
  u === void 0 && (u = o(() => {
1124
- var h = f ? Fe(a[l]) : H, d = /* @__PURE__ */ R(h);
1111
+ var h = f ? Ve(a[l]) : B, d = /* @__PURE__ */ R(h);
1125
1112
  return d;
1126
1113
  }), r.set(l, u));
1127
- var c = x(u);
1128
- if (c === H)
1114
+ var c = y(u);
1115
+ if (c === B)
1129
1116
  return !1;
1130
1117
  }
1131
1118
  return f;
@@ -1136,121 +1123,121 @@ function Fe(e) {
1136
1123
  for (var d = u; d < /** @type {Source<number>} */
1137
1124
  c.v; d += 1) {
1138
1125
  var p = r.get(d + "");
1139
- p !== void 0 ? A(p, H) : d in a && (p = o(() => /* @__PURE__ */ R(H)), r.set(d + "", p));
1126
+ p !== void 0 ? H(p, B) : d in a && (p = o(() => /* @__PURE__ */ R(B)), r.set(d + "", p));
1140
1127
  }
1141
1128
  if (c === void 0)
1142
- (!h || Be(a, l)?.writable) && (c = o(() => /* @__PURE__ */ R(void 0)), A(c, Fe(u)), r.set(l, c));
1129
+ (!h || Oe(a, l)?.writable) && (c = o(() => /* @__PURE__ */ R(void 0)), H(c, Ve(u)), r.set(l, c));
1143
1130
  else {
1144
- h = c.v !== H;
1145
- var v = o(() => Fe(u));
1146
- A(c, v);
1131
+ h = c.v !== B;
1132
+ var v = o(() => Ve(u));
1133
+ H(c, v);
1147
1134
  }
1148
- var E = Reflect.getOwnPropertyDescriptor(a, l);
1149
- if (E?.set && E.set.call(f, u), !h) {
1135
+ var x = Reflect.getOwnPropertyDescriptor(a, l);
1136
+ if (x?.set && x.set.call(f, u), !h) {
1150
1137
  if (n && typeof l == "string") {
1151
- var Z = (
1138
+ var F = (
1152
1139
  /** @type {Source<number>} */
1153
1140
  r.get("length")
1154
- ), D = Number(l);
1155
- Number.isInteger(D) && D >= Z.v && A(Z, D + 1);
1141
+ ), G = Number(l);
1142
+ Number.isInteger(G) && G >= F.v && H(F, G + 1);
1156
1143
  }
1157
- ke(i);
1144
+ We(i);
1158
1145
  }
1159
1146
  return !0;
1160
1147
  },
1161
1148
  ownKeys(a) {
1162
- x(i);
1149
+ y(i);
1163
1150
  var l = Reflect.ownKeys(a).filter((c) => {
1164
1151
  var h = r.get(c);
1165
- return h === void 0 || h.v !== H;
1152
+ return h === void 0 || h.v !== B;
1166
1153
  });
1167
1154
  for (var [u, f] of r)
1168
- f.v !== H && !(u in a) && l.push(u);
1155
+ f.v !== B && !(u in a) && l.push(u);
1169
1156
  return l;
1170
1157
  },
1171
1158
  setPrototypeOf() {
1172
- xi();
1159
+ bi();
1173
1160
  }
1174
1161
  }
1175
1162
  );
1176
1163
  }
1177
- var _r, fn, hn, cn;
1164
+ var vr, un, ln, fn;
1178
1165
  function jt() {
1179
- if (_r === void 0) {
1180
- _r = window, fn = /Firefox/.test(navigator.userAgent);
1166
+ if (vr === void 0) {
1167
+ vr = window, un = /Firefox/.test(navigator.userAgent);
1181
1168
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1182
- hn = Be(t, "firstChild").get, cn = Be(t, "nextSibling").get, dr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), dr(r) && (r.__t = void 0);
1169
+ ln = Oe(t, "firstChild").get, fn = Oe(t, "nextSibling").get, cr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), cr(r) && (r.__t = void 0);
1183
1170
  }
1184
1171
  }
1185
- function We(e = "") {
1172
+ function Ze(e = "") {
1186
1173
  return document.createTextNode(e);
1187
1174
  }
1188
1175
  // @__NO_SIDE_EFFECTS__
1189
- function dt(e) {
1176
+ function vt(e) {
1190
1177
  return (
1191
1178
  /** @type {TemplateNode | null} */
1192
- hn.call(e)
1179
+ ln.call(e)
1193
1180
  );
1194
1181
  }
1195
1182
  // @__NO_SIDE_EFFECTS__
1196
- function pe(e) {
1183
+ function ve(e) {
1197
1184
  return (
1198
1185
  /** @type {TemplateNode | null} */
1199
- cn.call(e)
1186
+ fn.call(e)
1200
1187
  );
1201
1188
  }
1202
- function Ue(e, t) {
1189
+ function je(e, t) {
1203
1190
  if (!L)
1204
- return /* @__PURE__ */ dt(e);
1205
- var r = /* @__PURE__ */ dt(S);
1191
+ return /* @__PURE__ */ vt(e);
1192
+ var r = /* @__PURE__ */ vt(S);
1206
1193
  if (r === null)
1207
- r = S.appendChild(We());
1208
- else if (t && r.nodeType !== kr) {
1209
- var n = We();
1210
- return r?.before(n), te(n), n;
1194
+ r = S.appendChild(Ze());
1195
+ else if (t && r.nodeType !== jr) {
1196
+ var n = Ze();
1197
+ return r?.before(n), ne(n), n;
1211
1198
  }
1212
- return te(r), r;
1199
+ return ne(r), r;
1213
1200
  }
1214
- function Fi(e, t = 1, r = !1) {
1201
+ function Di(e, t = 1, r = !1) {
1215
1202
  let n = L ? S : e;
1216
1203
  for (var i; t--; )
1217
1204
  i = n, n = /** @type {TemplateNode} */
1218
- /* @__PURE__ */ pe(n);
1205
+ /* @__PURE__ */ ve(n);
1219
1206
  if (!L)
1220
1207
  return n;
1221
- if (r && n?.nodeType !== kr) {
1222
- var s = We();
1223
- return n === null ? i?.after(s) : n.before(s), te(s), s;
1208
+ if (r && n?.nodeType !== jr) {
1209
+ var s = Ze();
1210
+ return n === null ? i?.after(s) : n.before(s), ne(s), s;
1224
1211
  }
1225
- return te(n), n;
1212
+ return ne(n), n;
1226
1213
  }
1227
- function ji(e) {
1214
+ function Ui(e) {
1228
1215
  e.textContent = "";
1229
1216
  }
1230
- function dn(e) {
1217
+ function hn(e) {
1231
1218
  var t = m, r = g;
1232
- M(null), J(null);
1219
+ $(null), Q(null);
1233
1220
  try {
1234
1221
  return e();
1235
1222
  } finally {
1236
- M(t), J(r);
1223
+ $(t), Q(r);
1237
1224
  }
1238
1225
  }
1239
- function ki(e) {
1240
- g === null && (m === null && bi(), mi()), Ee && _i();
1226
+ function Fi(e) {
1227
+ g === null && (m === null && pi(), di()), ce && ci();
1241
1228
  }
1242
- function Vi(e, t) {
1229
+ function Gi(e, t) {
1243
1230
  var r = t.last;
1244
1231
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1245
1232
  }
1246
- function ie(e, t, r) {
1233
+ function J(e, t, r) {
1247
1234
  var n = g;
1248
- n !== null && n.f & ae && (e |= ae);
1235
+ n !== null && n.f & ue && (e |= ue);
1249
1236
  var i = {
1250
- ctx: B,
1237
+ ctx: X,
1251
1238
  deps: null,
1252
1239
  nodes: null,
1253
- f: e | $ | k,
1240
+ f: e | M | V,
1254
1241
  first: null,
1255
1242
  fn: t,
1256
1243
  last: null,
@@ -1264,14 +1251,14 @@ function ie(e, t, r) {
1264
1251
  };
1265
1252
  if (r)
1266
1253
  try {
1267
- ze(i), i.f |= Et;
1254
+ Ye(i), i.f |= xt;
1268
1255
  } catch (a) {
1269
- throw q(i), a;
1256
+ throw Z(i), a;
1270
1257
  }
1271
1258
  else t !== null && he(i);
1272
1259
  var s = i;
1273
1260
  if (r && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
1274
- !(s.f & we) && (s = s.first, e & re && e & ft && s !== null && (s.f |= ft)), s !== null && (s.parent = n, n !== null && Vi(s, n), m !== null && m.f & P && !(e & de))) {
1261
+ !(s.f & Se) && (s = s.first, e & ie && e & ct && s !== null && (s.f |= ct)), s !== null && (s.parent = n, n !== null && Gi(s, n), m !== null && m.f & P && !(e & pe))) {
1275
1262
  var o = (
1276
1263
  /** @type {Derived} */
1277
1264
  m
@@ -1281,123 +1268,126 @@ function ie(e, t, r) {
1281
1268
  return i;
1282
1269
  }
1283
1270
  function ur() {
1284
- return m !== null && !z;
1271
+ return m !== null && !q;
1285
1272
  }
1286
- function pn(e) {
1287
- const t = ie(yt, null, !1);
1273
+ function cn(e) {
1274
+ const t = J(Et, null, !1);
1288
1275
  return N(t, I), t.teardown = e, t;
1289
1276
  }
1290
- function mr(e) {
1291
- ki();
1277
+ function _r(e) {
1278
+ Fi();
1292
1279
  var t = (
1293
1280
  /** @type {Effect} */
1294
1281
  g.f
1295
- ), r = !m && (t & ce) !== 0 && (t & Et) === 0;
1282
+ ), r = !m && (t & de) !== 0 && (t & xt) === 0;
1296
1283
  if (r) {
1297
1284
  var n = (
1298
1285
  /** @type {ComponentContext} */
1299
- B
1286
+ X
1300
1287
  );
1301
1288
  (n.e ??= []).push(e);
1302
1289
  } else
1303
- return vn(e);
1290
+ return dn(e);
1304
1291
  }
1305
- function vn(e) {
1306
- return ie(Dt | di, e, !1);
1292
+ function dn(e) {
1293
+ return J(ht | li, e, !1);
1307
1294
  }
1308
- function Xi(e) {
1309
- W.ensure();
1310
- const t = ie(de | we, e, !0);
1295
+ function ji(e) {
1296
+ z.ensure();
1297
+ const t = J(pe | Se, e, !0);
1311
1298
  return () => {
1312
- q(t);
1299
+ Z(t);
1313
1300
  };
1314
1301
  }
1315
- function Wi(e) {
1316
- W.ensure();
1317
- const t = ie(de | we, e, !0);
1302
+ function ki(e) {
1303
+ z.ensure();
1304
+ const t = J(pe | Se, e, !0);
1318
1305
  return (r = {}) => new Promise((n) => {
1319
- r.outro ? st(t, () => {
1320
- q(t), n(void 0);
1321
- }) : (q(t), n(void 0));
1306
+ r.outro ? ot(t, () => {
1307
+ Z(t), n(void 0);
1308
+ }) : (Z(t), n(void 0));
1322
1309
  });
1323
1310
  }
1324
- function zi(e) {
1325
- return ie(rr | we, e, !0);
1311
+ function Vi(e) {
1312
+ return J(ht, e, !1);
1313
+ }
1314
+ function Xi(e) {
1315
+ return J(rr | Se, e, !0);
1326
1316
  }
1327
- function _n(e, t = 0) {
1328
- return ie(yt | t, e, !0);
1317
+ function pn(e, t = 0) {
1318
+ return J(Et | t, e, !0);
1329
1319
  }
1330
- function qi(e, t = [], r = [], n = []) {
1331
- Ci(n, t, r, (i) => {
1332
- ie(yt, () => e(...i.map(x)), !0);
1320
+ function Wi(e, t = [], r = [], n = []) {
1321
+ Ii(n, t, r, (i) => {
1322
+ J(Et, () => e(...i.map(y)), !0);
1333
1323
  });
1334
1324
  }
1335
- function Zi(e, t = 0) {
1336
- var r = ie(re | t, e, !0);
1325
+ function zi(e, t = 0) {
1326
+ var r = J(ie | t, e, !0);
1337
1327
  return r;
1338
1328
  }
1339
- function ve(e) {
1340
- return ie(ce | we, e, !0);
1329
+ function be(e) {
1330
+ return J(de | Se, e, !0);
1341
1331
  }
1342
- function mn(e) {
1332
+ function vn(e) {
1343
1333
  var t = e.teardown;
1344
1334
  if (t !== null) {
1345
- const r = Ee, n = m;
1346
- br(!0), M(null);
1335
+ const r = ce, n = m;
1336
+ mr(!0), $(null);
1347
1337
  try {
1348
1338
  t.call(null);
1349
1339
  } finally {
1350
- br(r), M(n);
1340
+ mr(r), $(n);
1351
1341
  }
1352
1342
  }
1353
1343
  }
1354
- function bn(e, t = !1) {
1344
+ function _n(e, t = !1) {
1355
1345
  var r = e.first;
1356
1346
  for (e.first = e.last = null; r !== null; ) {
1357
1347
  const i = r.ac;
1358
- i !== null && dn(() => {
1359
- i.abort(Ae);
1348
+ i !== null && hn(() => {
1349
+ i.abort(Pe);
1360
1350
  });
1361
1351
  var n = r.next;
1362
- r.f & de ? r.parent = null : q(r, t), r = n;
1352
+ r.f & pe ? r.parent = null : Z(r, t), r = n;
1363
1353
  }
1364
1354
  }
1365
- function Yi(e) {
1355
+ function qi(e) {
1366
1356
  for (var t = e.first; t !== null; ) {
1367
1357
  var r = t.next;
1368
- t.f & ce || q(t), t = r;
1358
+ t.f & de || Z(t), t = r;
1369
1359
  }
1370
1360
  }
1371
- function q(e, t = !0) {
1361
+ function Z(e, t = !0) {
1372
1362
  var r = !1;
1373
- (t || e.f & jr) && e.nodes !== null && e.nodes.end !== null && (Qi(
1363
+ (t || e.f & Gr) && e.nodes !== null && e.nodes.end !== null && (Zi(
1374
1364
  e.nodes.start,
1375
1365
  /** @type {TemplateNode} */
1376
1366
  e.nodes.end
1377
- ), r = !0), bn(e, t && !r), vt(e, 0), N(e, ue);
1367
+ ), r = !0), _n(e, t && !r), mt(e, 0), N(e, te);
1378
1368
  var n = e.nodes && e.nodes.t;
1379
1369
  if (n !== null)
1380
1370
  for (const s of n)
1381
1371
  s.stop();
1382
- mn(e);
1372
+ vn(e);
1383
1373
  var i = e.parent;
1384
- i !== null && i.first !== null && gn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1374
+ i !== null && i.first !== null && mn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1385
1375
  }
1386
- function Qi(e, t) {
1376
+ function Zi(e, t) {
1387
1377
  for (; e !== null; ) {
1388
- var r = e === t ? null : /* @__PURE__ */ pe(e);
1378
+ var r = e === t ? null : /* @__PURE__ */ ve(e);
1389
1379
  e.remove(), e = r;
1390
1380
  }
1391
1381
  }
1392
- function gn(e) {
1382
+ function mn(e) {
1393
1383
  var t = e.parent, r = e.prev, n = e.next;
1394
1384
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1395
1385
  }
1396
- function st(e, t, r = !0) {
1386
+ function ot(e, t, r = !0) {
1397
1387
  var n = [];
1398
- yn(e, n, !0);
1388
+ bn(e, n, !0);
1399
1389
  var i = () => {
1400
- r && q(e), t && t();
1390
+ r && Z(e), t && t();
1401
1391
  }, s = n.length;
1402
1392
  if (s > 0) {
1403
1393
  var o = () => --s || i();
@@ -1406,106 +1396,106 @@ function st(e, t, r = !0) {
1406
1396
  } else
1407
1397
  i();
1408
1398
  }
1409
- function yn(e, t, r) {
1410
- if (!(e.f & ae)) {
1411
- e.f ^= ae;
1399
+ function bn(e, t, r) {
1400
+ if (!(e.f & ue)) {
1401
+ e.f ^= ue;
1412
1402
  var n = e.nodes && e.nodes.t;
1413
1403
  if (n !== null)
1414
1404
  for (const a of n)
1415
1405
  (a.is_global || r) && t.push(a);
1416
1406
  for (var i = e.first; i !== null; ) {
1417
- var s = i.next, o = (i.f & ft) !== 0 || // If this is a branch effect without a block effect parent,
1407
+ var s = i.next, o = (i.f & ct) !== 0 || // If this is a branch effect without a block effect parent,
1418
1408
  // it means the parent block effect was pruned. In that case,
1419
1409
  // transparency information was transferred to the branch effect.
1420
- (i.f & ce) !== 0 && (e.f & re) !== 0;
1421
- yn(i, t, o ? r : !1), i = s;
1410
+ (i.f & de) !== 0 && (e.f & ie) !== 0;
1411
+ bn(i, t, o ? r : !1), i = s;
1422
1412
  }
1423
1413
  }
1424
1414
  }
1425
- function Ji(e, t) {
1415
+ function Yi(e, t) {
1426
1416
  if (e.nodes)
1427
1417
  for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
1428
- var i = r === n ? null : /* @__PURE__ */ pe(r);
1418
+ var i = r === n ? null : /* @__PURE__ */ ve(r);
1429
1419
  t.append(r), r = i;
1430
1420
  }
1431
1421
  }
1432
- let be = !1;
1433
- function pt(e) {
1434
- be = e;
1435
- }
1436
1422
  let Ee = !1;
1437
- function br(e) {
1423
+ function _t(e) {
1438
1424
  Ee = e;
1439
1425
  }
1440
- let m = null, z = !1;
1441
- function M(e) {
1426
+ let ce = !1;
1427
+ function mr(e) {
1428
+ ce = e;
1429
+ }
1430
+ let m = null, q = !1;
1431
+ function $(e) {
1442
1432
  m = e;
1443
1433
  }
1444
1434
  let g = null;
1445
- function J(e) {
1435
+ function Q(e) {
1446
1436
  g = e;
1447
1437
  }
1448
- let ee = null;
1449
- function En(e) {
1450
- m !== null && (ee === null ? ee = [e] : ee.push(e));
1438
+ let re = null;
1439
+ function gn(e) {
1440
+ m !== null && (re === null ? re = [e] : re.push(e));
1451
1441
  }
1452
- let C = null, U = 0, F = null;
1453
- function Ki(e) {
1454
- F = e;
1442
+ let C = null, U = 0, j = null;
1443
+ function Qi(e) {
1444
+ j = e;
1455
1445
  }
1456
- let xn = 1, me = 0, ge = me;
1457
- function gr(e) {
1458
- ge = e;
1446
+ let yn = 1, ye = 0, xe = ye;
1447
+ function br(e) {
1448
+ xe = e;
1459
1449
  }
1460
- function wn() {
1461
- return ++xn;
1450
+ function En() {
1451
+ return ++yn;
1462
1452
  }
1463
- function Je(e) {
1453
+ function et(e) {
1464
1454
  var t = e.f;
1465
- if (t & $)
1455
+ if (t & M)
1466
1456
  return !0;
1467
- if (t & P && (e.f &= ~ye), t & ne) {
1457
+ if (t & P && (e.f &= ~we), t & se) {
1468
1458
  for (var r = (
1469
1459
  /** @type {Value[]} */
1470
1460
  e.deps
1471
1461
  ), n = r.length, i = 0; i < n; i++) {
1472
1462
  var s = r[i];
1473
- if (Je(
1463
+ if (et(
1474
1464
  /** @type {Derived} */
1475
1465
  s
1476
- ) && on(
1466
+ ) && nn(
1477
1467
  /** @type {Derived} */
1478
1468
  s
1479
1469
  ), s.wv > e.wv)
1480
1470
  return !0;
1481
1471
  }
1482
- t & k && // During time traveling we don't want to reset the status so that
1472
+ t & V && // During time traveling we don't want to reset the status so that
1483
1473
  // traversal of the graph in the other batches still happens
1484
- X === null && N(e, I);
1474
+ W === null && N(e, I);
1485
1475
  }
1486
1476
  return !1;
1487
1477
  }
1488
- function Tn(e, t, r = !0) {
1478
+ function xn(e, t, r = !0) {
1489
1479
  var n = e.reactions;
1490
- if (n !== null && !ee?.includes(e))
1480
+ if (n !== null && !re?.includes(e))
1491
1481
  for (var i = 0; i < n.length; i++) {
1492
1482
  var s = n[i];
1493
- s.f & P ? Tn(
1483
+ s.f & P ? xn(
1494
1484
  /** @type {Derived} */
1495
1485
  s,
1496
1486
  t,
1497
1487
  !1
1498
- ) : t === s && (r ? N(s, $) : s.f & I && N(s, ne), he(
1488
+ ) : t === s && (r ? N(s, M) : s.f & I && N(s, se), he(
1499
1489
  /** @type {Effect} */
1500
1490
  s
1501
1491
  ));
1502
1492
  }
1503
1493
  }
1504
- function Sn(e) {
1505
- var t = C, r = U, n = F, i = m, s = ee, o = B, a = z, l = ge, u = e.f;
1494
+ function wn(e) {
1495
+ var t = C, r = U, n = j, i = m, s = re, o = X, a = q, l = xe, u = e.f;
1506
1496
  C = /** @type {null | Value[]} */
1507
- null, U = 0, F = null, m = u & (ce | de) ? null : e, ee = null, Pe(e.ctx), z = !1, ge = ++me, e.ac !== null && (dn(() => {
1508
- e.ac.abort(Ae);
1497
+ null, U = 0, j = null, m = u & (de | pe) ? null : e, re = null, Le(e.ctx), q = !1, xe = ++ye, e.ac !== null && (hn(() => {
1498
+ e.ac.abort(Pe);
1509
1499
  }), e.ac = null);
1510
1500
  try {
1511
1501
  e.f |= Ut;
@@ -1515,44 +1505,44 @@ function Sn(e) {
1515
1505
  ), c = f(), h = e.deps;
1516
1506
  if (C !== null) {
1517
1507
  var d;
1518
- if (vt(e, U), h !== null && U > 0)
1508
+ if (mt(e, U), h !== null && U > 0)
1519
1509
  for (h.length = U + C.length, d = 0; d < C.length; d++)
1520
1510
  h[U + d] = C[d];
1521
1511
  else
1522
1512
  e.deps = h = C;
1523
- if (ur() && e.f & k)
1513
+ if (ur() && e.f & V)
1524
1514
  for (d = U; d < h.length; d++)
1525
1515
  (h[d].reactions ??= []).push(e);
1526
- } else h !== null && U < h.length && (vt(e, U), h.length = U);
1527
- if (Ye() && F !== null && !z && h !== null && !(e.f & (P | ne | $)))
1516
+ } else h !== null && U < h.length && (mt(e, U), h.length = U);
1517
+ if (qr() && j !== null && !q && h !== null && !(e.f & (P | se | M)))
1528
1518
  for (d = 0; d < /** @type {Source[]} */
1529
- F.length; d++)
1530
- Tn(
1531
- F[d],
1519
+ j.length; d++)
1520
+ xn(
1521
+ j[d],
1532
1522
  /** @type {Effect} */
1533
1523
  e
1534
1524
  );
1535
1525
  if (i !== null && i !== e) {
1536
- if (me++, i.deps !== null)
1526
+ if (ye++, i.deps !== null)
1537
1527
  for (let p = 0; p < r; p += 1)
1538
- i.deps[p].rv = me;
1528
+ i.deps[p].rv = ye;
1539
1529
  if (t !== null)
1540
1530
  for (const p of t)
1541
- p.rv = me;
1542
- F !== null && (n === null ? n = F : n.push(.../** @type {Source[]} */
1543
- F));
1531
+ p.rv = ye;
1532
+ j !== null && (n === null ? n = j : n.push(.../** @type {Source[]} */
1533
+ j));
1544
1534
  }
1545
1535
  return e.f & le && (e.f ^= le), c;
1546
1536
  } catch (p) {
1547
- return Qr(p);
1537
+ return Yr(p);
1548
1538
  } finally {
1549
- e.f ^= Ut, C = t, U = r, F = n, m = i, ee = s, Pe(o), z = a, ge = l;
1539
+ e.f ^= Ut, C = t, U = r, j = n, m = i, re = s, Le(o), q = a, xe = l;
1550
1540
  }
1551
1541
  }
1552
- function es(e, t) {
1542
+ function Ji(e, t) {
1553
1543
  let r = t.reactions;
1554
1544
  if (r !== null) {
1555
- var n = ui.call(r, e);
1545
+ var n = ii.call(r, e);
1556
1546
  if (n !== -1) {
1557
1547
  var i = r.length - 1;
1558
1548
  i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
@@ -1566,43 +1556,43 @@ function es(e, t) {
1566
1556
  /** @type {Derived} */
1567
1557
  t
1568
1558
  );
1569
- s.f & k && (s.f ^= k, s.f &= ~ye), sr(s), sn(s), vt(s, 0);
1559
+ s.f & V && (s.f ^= V, s.f &= ~we), sr(s), rn(s), mt(s, 0);
1570
1560
  }
1571
1561
  }
1572
- function vt(e, t) {
1562
+ function mt(e, t) {
1573
1563
  var r = e.deps;
1574
1564
  if (r !== null)
1575
1565
  for (var n = t; n < r.length; n++)
1576
- es(e, r[n]);
1566
+ Ji(e, r[n]);
1577
1567
  }
1578
- function ze(e) {
1568
+ function Ye(e) {
1579
1569
  var t = e.f;
1580
- if (!(t & ue)) {
1570
+ if (!(t & te)) {
1581
1571
  N(e, I);
1582
- var r = g, n = be;
1583
- g = e, be = !0;
1572
+ var r = g, n = Ee;
1573
+ g = e, Ee = !0;
1584
1574
  try {
1585
- t & (re | Fr) ? Yi(e) : bn(e), mn(e);
1586
- var i = Sn(e);
1587
- e.teardown = typeof i == "function" ? i : null, e.wv = xn;
1575
+ t & (ie | Fr) ? qi(e) : _n(e), vn(e);
1576
+ var i = wn(e);
1577
+ e.teardown = typeof i == "function" ? i : null, e.wv = yn;
1588
1578
  var s;
1589
- $t && ii && e.f & $ && e.deps;
1579
+ Dt && Si && e.f & M && e.deps;
1590
1580
  } finally {
1591
- be = n, g = r;
1581
+ Ee = n, g = r;
1592
1582
  }
1593
1583
  }
1594
1584
  }
1595
- async function ts() {
1596
- await Promise.resolve(), en();
1585
+ async function Ki() {
1586
+ await Promise.resolve(), Ne();
1597
1587
  }
1598
- function x(e) {
1588
+ function y(e) {
1599
1589
  var t = e.f, r = (t & P) !== 0;
1600
- if (m !== null && !z) {
1601
- var n = g !== null && (g.f & ue) !== 0;
1602
- if (!n && !ee?.includes(e)) {
1590
+ if (m !== null && !q) {
1591
+ var n = g !== null && (g.f & te) !== 0;
1592
+ if (!n && !re?.includes(e)) {
1603
1593
  var i = m.deps;
1604
1594
  if (m.f & Ut)
1605
- e.rv < me && (e.rv = me, C === null && i !== null && i[U] === e ? U++ : C === null ? C = [e] : C.push(e));
1595
+ e.rv < ye && (e.rv = ye, C === null && i !== null && i[U] === e ? U++ : C === null ? C = [e] : C.push(e));
1606
1596
  else {
1607
1597
  (m.deps ??= []).push(e);
1608
1598
  var s = e.reactions;
@@ -1610,58 +1600,58 @@ function x(e) {
1610
1600
  }
1611
1601
  }
1612
1602
  }
1613
- if (Ee && fe.has(e))
1603
+ if (ce && fe.has(e))
1614
1604
  return fe.get(e);
1615
1605
  if (r) {
1616
1606
  var o = (
1617
1607
  /** @type {Derived} */
1618
1608
  e
1619
1609
  );
1620
- if (Ee) {
1610
+ if (ce) {
1621
1611
  var a = o.v;
1622
- return (!(o.f & I) && o.reactions !== null || An(o)) && (a = ar(o)), fe.set(o, a), a;
1612
+ return (!(o.f & I) && o.reactions !== null || Sn(o)) && (a = ar(o)), fe.set(o, a), a;
1623
1613
  }
1624
- var l = (o.f & k) === 0 && !z && m !== null && (be || (m.f & k) !== 0), u = o.deps === null;
1625
- Je(o) && (l && (o.f |= k), on(o)), l && !u && Hn(o);
1614
+ var l = (o.f & V) === 0 && !q && m !== null && (Ee || (m.f & V) !== 0), u = o.deps === null;
1615
+ et(o) && (l && (o.f |= V), nn(o)), l && !u && Tn(o);
1626
1616
  }
1627
- if (X?.has(e))
1628
- return X.get(e);
1617
+ if (W?.has(e))
1618
+ return W.get(e);
1629
1619
  if (e.f & le)
1630
1620
  throw e.v;
1631
1621
  return e.v;
1632
1622
  }
1633
- function Hn(e) {
1623
+ function Tn(e) {
1634
1624
  if (e.deps !== null) {
1635
- e.f |= k;
1625
+ e.f |= V;
1636
1626
  for (const t of e.deps)
1637
- (t.reactions ??= []).push(e), t.f & P && !(t.f & k) && Hn(
1627
+ (t.reactions ??= []).push(e), t.f & P && !(t.f & V) && Tn(
1638
1628
  /** @type {Derived} */
1639
1629
  t
1640
1630
  );
1641
1631
  }
1642
1632
  }
1643
- function An(e) {
1644
- if (e.v === H) return !0;
1633
+ function Sn(e) {
1634
+ if (e.v === B) return !0;
1645
1635
  if (e.deps === null) return !1;
1646
1636
  for (const t of e.deps)
1647
- if (fe.has(t) || t.f & P && An(
1637
+ if (fe.has(t) || t.f & P && Sn(
1648
1638
  /** @type {Derived} */
1649
1639
  t
1650
1640
  ))
1651
1641
  return !0;
1652
1642
  return !1;
1653
1643
  }
1654
- function Bn(e) {
1655
- var t = z;
1644
+ function Hn(e) {
1645
+ var t = q;
1656
1646
  try {
1657
- return z = !0, e();
1647
+ return q = !0, e();
1658
1648
  } finally {
1659
- z = t;
1649
+ q = t;
1660
1650
  }
1661
1651
  }
1662
- const rs = /* @__PURE__ */ new Set(), yr = /* @__PURE__ */ new Set();
1663
- let Er = null;
1664
- function rt(e) {
1652
+ const es = /* @__PURE__ */ new Set(), gr = /* @__PURE__ */ new Set();
1653
+ let yr = null;
1654
+ function nt(e) {
1665
1655
  var t = this, r = (
1666
1656
  /** @type {Node} */
1667
1657
  t.ownerDocument
@@ -1669,8 +1659,8 @@ function rt(e) {
1669
1659
  /** @type {null | Element} */
1670
1660
  i[0] || e.target
1671
1661
  );
1672
- Er = e;
1673
- var o = 0, a = Er === e && e.__root;
1662
+ yr = e;
1663
+ var o = 0, a = yr === e && e.__root;
1674
1664
  if (a) {
1675
1665
  var l = i.indexOf(a);
1676
1666
  if (l !== -1 && (t === document || t === /** @type {any} */
@@ -1685,14 +1675,14 @@ function rt(e) {
1685
1675
  }
1686
1676
  if (s = /** @type {Element} */
1687
1677
  i[o] || e.target, s !== t) {
1688
- Xe(e, "currentTarget", {
1678
+ qe(e, "currentTarget", {
1689
1679
  configurable: !0,
1690
1680
  get() {
1691
1681
  return s || r;
1692
1682
  }
1693
1683
  });
1694
1684
  var f = m, c = g;
1695
- M(null), J(null);
1685
+ $(null), Q(null);
1696
1686
  try {
1697
1687
  for (var h, d = []; s !== null; ) {
1698
1688
  var p = s.assignedSlot || s.parentNode || /** @type {any} */
@@ -1703,26 +1693,26 @@ function rt(e) {
1703
1693
  s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1704
1694
  // -> the target could not have been disabled because it emits the event in the first place
1705
1695
  e.target === s) && v.call(s, e);
1706
- } catch (E) {
1707
- h ? d.push(E) : h = E;
1696
+ } catch (x) {
1697
+ h ? d.push(x) : h = x;
1708
1698
  }
1709
1699
  if (e.cancelBubble || p === t || p === null)
1710
1700
  break;
1711
1701
  s = p;
1712
1702
  }
1713
1703
  if (h) {
1714
- for (let E of d)
1704
+ for (let x of d)
1715
1705
  queueMicrotask(() => {
1716
- throw E;
1706
+ throw x;
1717
1707
  });
1718
1708
  throw h;
1719
1709
  }
1720
1710
  } finally {
1721
- e.__root = t, delete e.currentTarget, M(f), J(c);
1711
+ e.__root = t, delete e.currentTarget, $(f), Q(c);
1722
1712
  }
1723
1713
  }
1724
1714
  }
1725
- function ns(e) {
1715
+ function ts(e) {
1726
1716
  var t = document.createElement("template");
1727
1717
  return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
1728
1718
  }
@@ -1734,27 +1724,27 @@ function kt(e, t) {
1734
1724
  r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
1735
1725
  }
1736
1726
  // @__NO_SIDE_EFFECTS__
1737
- function is(e, t) {
1738
- var r = (t & oi) !== 0, n, i = !e.startsWith("<!>");
1727
+ function rs(e, t) {
1728
+ var r = (t & ri) !== 0, n, i = !e.startsWith("<!>");
1739
1729
  return () => {
1740
1730
  if (L)
1741
1731
  return kt(S, null), S;
1742
- n === void 0 && (n = ns(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
1743
- /* @__PURE__ */ dt(n));
1732
+ n === void 0 && (n = ts(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
1733
+ /* @__PURE__ */ vt(n));
1744
1734
  var s = (
1745
1735
  /** @type {TemplateNode} */
1746
- r || fn ? document.importNode(n, !0) : n.cloneNode(!0)
1736
+ r || un ? document.importNode(n, !0) : n.cloneNode(!0)
1747
1737
  );
1748
1738
  return kt(s, s), s;
1749
1739
  };
1750
1740
  }
1751
- function Pn(e, t) {
1741
+ function An(e, t) {
1752
1742
  if (L) {
1753
1743
  var r = (
1754
1744
  /** @type {Effect & { nodes: EffectNodes }} */
1755
1745
  g
1756
1746
  );
1757
- (!(r.f & Et) || r.nodes.end === null) && (r.nodes.end = S), Vr();
1747
+ (!(r.f & xt) || r.nodes.end === null) && (r.nodes.end = S), kr();
1758
1748
  return;
1759
1749
  }
1760
1750
  e !== null && e.before(
@@ -1762,61 +1752,61 @@ function Pn(e, t) {
1762
1752
  t
1763
1753
  );
1764
1754
  }
1765
- const ss = ["touchstart", "touchmove"];
1766
- function os(e) {
1767
- return ss.includes(e);
1755
+ const ns = ["touchstart", "touchmove"];
1756
+ function is(e) {
1757
+ return ns.includes(e);
1768
1758
  }
1769
- function xr(e, t) {
1759
+ function Er(e, t) {
1770
1760
  var r = t == null ? "" : typeof t == "object" ? t + "" : t;
1771
1761
  r !== (e.__t ??= e.nodeValue) && (e.__t = r, e.nodeValue = r + "");
1772
1762
  }
1773
- function Nn(e, t) {
1774
- return On(e, t);
1763
+ function Bn(e, t) {
1764
+ return Pn(e, t);
1775
1765
  }
1776
- function as(e, t) {
1766
+ function ss(e, t) {
1777
1767
  jt(), t.intro = t.intro ?? !1;
1778
1768
  const r = t.target, n = L, i = S;
1779
1769
  try {
1780
- for (var s = /* @__PURE__ */ dt(r); s && (s.nodeType !== xt || /** @type {Comment} */
1781
- s.data !== Mr); )
1782
- s = /* @__PURE__ */ pe(s);
1770
+ for (var s = /* @__PURE__ */ vt(r); s && (s.nodeType !== wt || /** @type {Comment} */
1771
+ s.data !== Cr); )
1772
+ s = /* @__PURE__ */ ve(s);
1783
1773
  if (!s)
1784
- throw Ve;
1785
- et(!0), te(
1774
+ throw ze;
1775
+ tt(!0), ne(
1786
1776
  /** @type {Comment} */
1787
1777
  s
1788
1778
  );
1789
- const o = On(e, { ...t, anchor: s });
1790
- return et(!1), /** @type {Exports} */
1779
+ const o = Pn(e, { ...t, anchor: s });
1780
+ return tt(!1), /** @type {Exports} */
1791
1781
  o;
1792
1782
  } catch (o) {
1793
1783
  if (o instanceof Error && o.message.split(`
1794
1784
  `).some((a) => a.startsWith("https://svelte.dev/e/")))
1795
1785
  throw o;
1796
- return o !== Ve && console.warn("Failed to hydrate: ", o), t.recover === !1 && yi(), jt(), ji(r), et(!1), Nn(e, t);
1786
+ return o !== ze && console.warn("Failed to hydrate: ", o), t.recover === !1 && _i(), jt(), Ui(r), tt(!1), Bn(e, t);
1797
1787
  } finally {
1798
- et(n), te(i);
1788
+ tt(n), ne(i);
1799
1789
  }
1800
1790
  }
1801
- const Se = /* @__PURE__ */ new Map();
1802
- function On(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0 }) {
1791
+ const Ae = /* @__PURE__ */ new Map();
1792
+ function Pn(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0 }) {
1803
1793
  jt();
1804
1794
  var a = /* @__PURE__ */ new Set(), l = (c) => {
1805
1795
  for (var h = 0; h < c.length; h++) {
1806
1796
  var d = c[h];
1807
1797
  if (!a.has(d)) {
1808
1798
  a.add(d);
1809
- var p = os(d);
1810
- t.addEventListener(d, rt, { passive: p });
1811
- var v = Se.get(d);
1812
- v === void 0 ? (document.addEventListener(d, rt, { passive: p }), Se.set(d, 1)) : Se.set(d, v + 1);
1799
+ var p = is(d);
1800
+ t.addEventListener(d, nt, { passive: p });
1801
+ var v = Ae.get(d);
1802
+ v === void 0 ? (document.addEventListener(d, nt, { passive: p }), Ae.set(d, 1)) : Ae.set(d, v + 1);
1813
1803
  }
1814
1804
  }
1815
1805
  };
1816
- l(li(rs)), yr.add(l);
1817
- var u = void 0, f = Wi(() => {
1818
- var c = r ?? t.appendChild(We());
1819
- return Ii(
1806
+ l(si(es)), gr.add(l);
1807
+ var u = void 0, f = ki(() => {
1808
+ var c = r ?? t.appendChild(Ze());
1809
+ return Oi(
1820
1810
  /** @type {TemplateNode} */
1821
1811
  c,
1822
1812
  {
@@ -1825,10 +1815,10 @@ function On(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
1825
1815
  },
1826
1816
  (h) => {
1827
1817
  if (s) {
1828
- qr({});
1818
+ Wr({});
1829
1819
  var d = (
1830
1820
  /** @type {ComponentContext} */
1831
- B
1821
+ X
1832
1822
  );
1833
1823
  d.c = s;
1834
1824
  }
@@ -1836,34 +1826,53 @@ function On(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
1836
1826
  /** @type {TemplateNode} */
1837
1827
  h,
1838
1828
  null
1839
- ), u = e(h, n) || {}, L && (g.nodes.end = S, S === null || S.nodeType !== xt || /** @type {Comment} */
1840
- S.data !== Dr))
1841
- throw nr(), Ve;
1842
- s && Zr();
1829
+ ), u = e(h, n) || {}, L && (g.nodes.end = S, S === null || S.nodeType !== wt || /** @type {Comment} */
1830
+ S.data !== Mr))
1831
+ throw nr(), ze;
1832
+ s && zr();
1843
1833
  }
1844
1834
  ), () => {
1845
1835
  for (var h of a) {
1846
- t.removeEventListener(h, rt);
1836
+ t.removeEventListener(h, nt);
1847
1837
  var d = (
1848
1838
  /** @type {number} */
1849
- Se.get(h)
1839
+ Ae.get(h)
1850
1840
  );
1851
- --d === 0 ? (document.removeEventListener(h, rt), Se.delete(h)) : Se.set(h, d);
1841
+ --d === 0 ? (document.removeEventListener(h, nt), Ae.delete(h)) : Ae.set(h, d);
1852
1842
  }
1853
- yr.delete(l), c !== r && c.parentNode?.removeChild(c);
1843
+ gr.delete(l), c !== r && c.parentNode?.removeChild(c);
1854
1844
  };
1855
1845
  });
1856
1846
  return Vt.set(u, f), u;
1857
1847
  }
1858
1848
  let Vt = /* @__PURE__ */ new WeakMap();
1859
- function us(e, t) {
1849
+ function os(e, t) {
1860
1850
  const r = Vt.get(e);
1861
1851
  return r ? (Vt.delete(e), r(t)) : Promise.resolve();
1862
1852
  }
1853
+ function as(e, t) {
1854
+ Vi(() => {
1855
+ var r = e.getRootNode(), n = (
1856
+ /** @type {ShadowRoot} */
1857
+ r.host ? (
1858
+ /** @type {ShadowRoot} */
1859
+ r
1860
+ ) : (
1861
+ /** @type {Document} */
1862
+ r.head ?? /** @type {Document} */
1863
+ r.ownerDocument.head
1864
+ )
1865
+ );
1866
+ if (!n.querySelector("#" + t.hash)) {
1867
+ const i = document.createElement("style");
1868
+ i.id = t.hash, i.textContent = t.code, n.appendChild(i);
1869
+ }
1870
+ });
1871
+ }
1863
1872
  function lr(e, t, r) {
1864
1873
  if (e == null)
1865
- return t(void 0), r && r(void 0), oe;
1866
- const n = Bn(
1874
+ return t(void 0), r && r(void 0), ae;
1875
+ const n = Hn(
1867
1876
  () => e.subscribe(
1868
1877
  t,
1869
1878
  // @ts-expect-error
@@ -1872,24 +1881,24 @@ function lr(e, t, r) {
1872
1881
  );
1873
1882
  return n.unsubscribe ? () => n.unsubscribe() : n;
1874
1883
  }
1875
- const He = [];
1876
- function ls(e, t) {
1884
+ const Be = [];
1885
+ function us(e, t) {
1877
1886
  return {
1878
- subscribe: Tt(e, t).subscribe
1887
+ subscribe: St(e, t).subscribe
1879
1888
  };
1880
1889
  }
1881
- function Tt(e, t = oe) {
1890
+ function St(e, t = ae) {
1882
1891
  let r = null;
1883
1892
  const n = /* @__PURE__ */ new Set();
1884
1893
  function i(a) {
1885
- if (Wr(e, a) && (e = a, r)) {
1886
- const l = !He.length;
1894
+ if (Xr(e, a) && (e = a, r)) {
1895
+ const l = !Be.length;
1887
1896
  for (const u of n)
1888
- u[1](), He.push(u, e);
1897
+ u[1](), Be.push(u, e);
1889
1898
  if (l) {
1890
- for (let u = 0; u < He.length; u += 2)
1891
- He[u][0](He[u + 1]);
1892
- He.length = 0;
1899
+ for (let u = 0; u < Be.length; u += 2)
1900
+ Be[u][0](Be[u + 1]);
1901
+ Be.length = 0;
1893
1902
  }
1894
1903
  }
1895
1904
  }
@@ -1899,9 +1908,9 @@ function Tt(e, t = oe) {
1899
1908
  e
1900
1909
  ));
1901
1910
  }
1902
- function o(a, l = oe) {
1911
+ function o(a, l = ae) {
1903
1912
  const u = [a, l];
1904
- return n.add(u), n.size === 1 && (r = t(i, s) || oe), a(
1913
+ return n.add(u), n.size === 1 && (r = t(i, s) || ae), a(
1905
1914
  /** @type {T} */
1906
1915
  e
1907
1916
  ), () => {
@@ -1910,26 +1919,26 @@ function Tt(e, t = oe) {
1910
1919
  }
1911
1920
  return { set: i, update: s, subscribe: o };
1912
1921
  }
1913
- function Ce(e, t, r) {
1922
+ function De(e, t, r) {
1914
1923
  const n = !Array.isArray(e), i = n ? [e] : e;
1915
1924
  if (!i.every(Boolean))
1916
1925
  throw new Error("derived() expects stores as input, got a falsy value");
1917
1926
  const s = t.length < 2;
1918
- return ls(r, (o, a) => {
1927
+ return us(r, (o, a) => {
1919
1928
  let l = !1;
1920
1929
  const u = [];
1921
- let f = 0, c = oe;
1930
+ let f = 0, c = ae;
1922
1931
  const h = () => {
1923
1932
  if (f)
1924
1933
  return;
1925
1934
  c();
1926
1935
  const p = t(n ? u[0] : u, o, a);
1927
- s ? o(p) : c = typeof p == "function" ? p : oe;
1936
+ s ? o(p) : c = typeof p == "function" ? p : ae;
1928
1937
  }, d = i.map(
1929
1938
  (p, v) => lr(
1930
1939
  p,
1931
- (E) => {
1932
- u[v] = E, f &= ~(1 << v), l && h();
1940
+ (x) => {
1941
+ u[v] = x, f &= ~(1 << v), l && h();
1933
1942
  },
1934
1943
  () => {
1935
1944
  f |= 1 << v;
@@ -1937,39 +1946,39 @@ function Ce(e, t, r) {
1937
1946
  )
1938
1947
  );
1939
1948
  return l = !0, h(), function() {
1940
- Ur(d), c(), l = !1;
1949
+ Dr(d), c(), l = !1;
1941
1950
  };
1942
1951
  });
1943
1952
  }
1944
- function fs(e) {
1953
+ function ls(e) {
1945
1954
  let t;
1946
1955
  return lr(e, (r) => t = r)(), t;
1947
1956
  }
1948
1957
  let Xt = Symbol();
1949
- function hs(e, t, r) {
1958
+ function fs(e, t, r) {
1950
1959
  const n = r[t] ??= {
1951
1960
  store: null,
1952
- source: /* @__PURE__ */ un(void 0),
1953
- unsubscribe: oe
1961
+ source: /* @__PURE__ */ on(void 0),
1962
+ unsubscribe: ae
1954
1963
  };
1955
1964
  if (n.store !== e && !(Xt in r))
1956
1965
  if (n.unsubscribe(), n.store = e ?? null, e == null)
1957
- n.source.v = void 0, n.unsubscribe = oe;
1966
+ n.source.v = void 0, n.unsubscribe = ae;
1958
1967
  else {
1959
1968
  var i = !0;
1960
1969
  n.unsubscribe = lr(e, (s) => {
1961
- i ? n.source.v = s : A(n.source, s);
1970
+ i ? n.source.v = s : H(n.source, s);
1962
1971
  }), i = !1;
1963
1972
  }
1964
- return e && Xt in r ? fs(e) : x(n.source);
1973
+ return e && Xt in r ? ls(e) : y(n.source);
1965
1974
  }
1966
- function cs() {
1975
+ function hs() {
1967
1976
  const e = {};
1968
1977
  function t() {
1969
- pn(() => {
1978
+ cn(() => {
1970
1979
  for (var r in e)
1971
1980
  e[r].unsubscribe();
1972
- Xe(e, Xt, {
1981
+ qe(e, Xt, {
1973
1982
  enumerable: !1,
1974
1983
  value: !0
1975
1984
  });
@@ -1977,7 +1986,7 @@ function cs() {
1977
1986
  }
1978
1987
  return [e, t];
1979
1988
  }
1980
- function nt(e, t, r, n) {
1989
+ function it(e, t, r, n) {
1981
1990
  var i = (
1982
1991
  /** @type {V} */
1983
1992
  n
@@ -1986,18 +1995,32 @@ function nt(e, t, r, n) {
1986
1995
  a = /** @type {V} */
1987
1996
  e[t], a === void 0 && n !== void 0 && (a = o());
1988
1997
  var l;
1989
- return l = () => {
1990
- var u = (
1998
+ l = () => {
1999
+ var h = (
1991
2000
  /** @type {V} */
1992
2001
  e[t]
1993
2002
  );
1994
- return u === void 0 ? o() : (s = !0, u);
1995
- }, l;
2003
+ return h === void 0 ? o() : (s = !0, h);
2004
+ };
2005
+ var u = !1, f = /* @__PURE__ */ or(() => (u = !1, l())), c = (
2006
+ /** @type {Effect} */
2007
+ g
2008
+ );
2009
+ return (
2010
+ /** @type {() => V} */
2011
+ function(h, d) {
2012
+ if (arguments.length > 0) {
2013
+ const p = d ? y(f) : h;
2014
+ return H(f, p), u = !0, i !== void 0 && (i = p), h;
2015
+ }
2016
+ return ce && u || c.f & te ? f.v : y(f);
2017
+ }
2018
+ );
1996
2019
  }
1997
- function ds(e) {
1998
- return new ps(e);
2020
+ function cs(e) {
2021
+ return new ds(e);
1999
2022
  }
2000
- class ps {
2023
+ class ds {
2001
2024
  /** @type {any} */
2002
2025
  #e;
2003
2026
  /** @type {Record<string, any>} */
@@ -2009,33 +2032,33 @@ class ps {
2009
2032
  */
2010
2033
  constructor(t) {
2011
2034
  var r = /* @__PURE__ */ new Map(), n = (s, o) => {
2012
- var a = /* @__PURE__ */ un(o, !1, !1);
2035
+ var a = /* @__PURE__ */ on(o, !1, !1);
2013
2036
  return r.set(s, a), a;
2014
2037
  };
2015
2038
  const i = new Proxy(
2016
2039
  { ...t.props || {}, $$events: {} },
2017
2040
  {
2018
2041
  get(s, o) {
2019
- return x(r.get(o) ?? n(o, Reflect.get(s, o)));
2042
+ return y(r.get(o) ?? n(o, Reflect.get(s, o)));
2020
2043
  },
2021
2044
  has(s, o) {
2022
- return o === pi ? !0 : (x(r.get(o) ?? n(o, Reflect.get(s, o))), Reflect.has(s, o));
2045
+ return o === fi ? !0 : (y(r.get(o) ?? n(o, Reflect.get(s, o))), Reflect.has(s, o));
2023
2046
  },
2024
2047
  set(s, o, a) {
2025
- return A(r.get(o) ?? n(o, a), a), Reflect.set(s, o, a);
2048
+ return H(r.get(o) ?? n(o, a), a), Reflect.set(s, o, a);
2026
2049
  }
2027
2050
  }
2028
2051
  );
2029
- this.#t = (t.hydrate ? as : Nn)(t.component, {
2052
+ this.#t = (t.hydrate ? ss : Bn)(t.component, {
2030
2053
  target: t.target,
2031
2054
  anchor: t.anchor,
2032
2055
  props: i,
2033
2056
  context: t.context,
2034
2057
  intro: t.intro ?? !1,
2035
2058
  recover: t.recover
2036
- }), (!t?.props?.$$host || t.sync === !1) && en(), this.#e = i.$$events;
2059
+ }), (!t?.props?.$$host || t.sync === !1) && Ne(), this.#e = i.$$events;
2037
2060
  for (const s of Object.keys(this.#t))
2038
- s === "$set" || s === "$destroy" || s === "$on" || Xe(this, s, {
2061
+ s === "$set" || s === "$destroy" || s === "$on" || qe(this, s, {
2039
2062
  get() {
2040
2063
  return this.#t[s];
2041
2064
  },
@@ -2049,7 +2072,7 @@ class ps {
2049
2072
  (s) => {
2050
2073
  Object.assign(i, s);
2051
2074
  }, this.#t.$destroy = () => {
2052
- us(this.#t);
2075
+ os(this.#t);
2053
2076
  };
2054
2077
  }
2055
2078
  /** @param {Record<string, any>} props */
@@ -2075,8 +2098,8 @@ class ps {
2075
2098
  this.#t.$destroy();
2076
2099
  }
2077
2100
  }
2078
- let Ln;
2079
- typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
2101
+ let Nn;
2102
+ typeof HTMLElement == "function" && (Nn = class extends HTMLElement {
2080
2103
  /** The Svelte component constructor */
2081
2104
  $$ctor;
2082
2105
  /** Slots */
@@ -2133,21 +2156,21 @@ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
2133
2156
  let e = function(n) {
2134
2157
  return (i) => {
2135
2158
  const s = document.createElement("slot");
2136
- n !== "default" && (s.name = n), Pn(i, s);
2159
+ n !== "default" && (s.name = n), An(i, s);
2137
2160
  };
2138
2161
  };
2139
2162
  if (await Promise.resolve(), !this.$$cn || this.$$c)
2140
2163
  return;
2141
- const t = {}, r = vs(this);
2164
+ const t = {}, r = ps(this);
2142
2165
  for (const n of this.$$s)
2143
2166
  n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
2144
2167
  for (const n of this.attributes) {
2145
2168
  const i = this.$$g_p(n.name);
2146
- i in this.$$d || (this.$$d[i] = ot(i, n.value, this.$$p_d, "toProp"));
2169
+ i in this.$$d || (this.$$d[i] = at(i, n.value, this.$$p_d, "toProp"));
2147
2170
  }
2148
2171
  for (const n in this.$$p_d)
2149
2172
  !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2150
- this.$$c = ds({
2173
+ this.$$c = cs({
2151
2174
  component: this.$$ctor,
2152
2175
  target: this.shadowRoot || this,
2153
2176
  props: {
@@ -2155,13 +2178,13 @@ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
2155
2178
  $$slots: t,
2156
2179
  $$host: this
2157
2180
  }
2158
- }), this.$$me = Xi(() => {
2159
- _n(() => {
2181
+ }), this.$$me = ji(() => {
2182
+ pn(() => {
2160
2183
  this.$$r = !0;
2161
- for (const n of lt(this.$$c)) {
2184
+ for (const n of ft(this.$$c)) {
2162
2185
  if (!this.$$p_d[n]?.reflect) continue;
2163
2186
  this.$$d[n] = this.$$c[n];
2164
- const i = ot(
2187
+ const i = at(
2165
2188
  n,
2166
2189
  this.$$d[n],
2167
2190
  this.$$p_d,
@@ -2188,7 +2211,7 @@ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
2188
2211
  * @param {string} newValue
2189
2212
  */
2190
2213
  attributeChangedCallback(e, t, r) {
2191
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ot(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2214
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = at(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2192
2215
  }
2193
2216
  disconnectedCallback() {
2194
2217
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2199,12 +2222,12 @@ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
2199
2222
  * @param {string} attribute_name
2200
2223
  */
2201
2224
  $$g_p(e) {
2202
- return lt(this.$$p_d).find(
2225
+ return ft(this.$$p_d).find(
2203
2226
  (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
2204
2227
  ) || e;
2205
2228
  }
2206
2229
  });
2207
- function ot(e, t, r, n) {
2230
+ function at(e, t, r, n) {
2208
2231
  const i = r[e]?.type;
2209
2232
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
2210
2233
  return t;
@@ -2233,7 +2256,7 @@ function ot(e, t, r, n) {
2233
2256
  return t;
2234
2257
  }
2235
2258
  }
2236
- function vs(e) {
2259
+ function ps(e) {
2237
2260
  const t = {};
2238
2261
  return e.childNodes.forEach((r) => {
2239
2262
  t[
@@ -2242,33 +2265,33 @@ function vs(e) {
2242
2265
  ] = !0;
2243
2266
  }), t;
2244
2267
  }
2245
- function _s(e, t, r, n, i, s) {
2246
- let o = class extends Ln {
2268
+ function vs(e, t, r, n, i, s) {
2269
+ let o = class extends Nn {
2247
2270
  constructor() {
2248
2271
  super(e, r, i), this.$$p_d = t;
2249
2272
  }
2250
2273
  static get observedAttributes() {
2251
- return lt(t).map(
2274
+ return ft(t).map(
2252
2275
  (a) => (t[a].attribute || a).toLowerCase()
2253
2276
  );
2254
2277
  }
2255
2278
  };
2256
- return lt(t).forEach((a) => {
2257
- Xe(o.prototype, a, {
2279
+ return ft(t).forEach((a) => {
2280
+ qe(o.prototype, a, {
2258
2281
  get() {
2259
2282
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
2260
2283
  },
2261
2284
  set(l) {
2262
- l = ot(a, l, t), this.$$d[a] = l;
2285
+ l = at(a, l, t), this.$$d[a] = l;
2263
2286
  var u = this.$$c;
2264
2287
  if (u) {
2265
- var f = Be(u, a)?.get;
2288
+ var f = Oe(u, a)?.get;
2266
2289
  f ? u[a] = l : u.$set({ [a]: l });
2267
2290
  }
2268
2291
  }
2269
2292
  });
2270
2293
  }), n.forEach((a) => {
2271
- Xe(o.prototype, a, {
2294
+ qe(o.prototype, a, {
2272
2295
  get() {
2273
2296
  return this.$$c?.[a];
2274
2297
  }
@@ -2276,162 +2299,162 @@ function _s(e, t, r, n, i, s) {
2276
2299
  }), e.element = /** @type {any} */
2277
2300
  o, o;
2278
2301
  }
2279
- class ms extends Error {
2302
+ class _s extends Error {
2280
2303
  constructor(t, r) {
2281
2304
  super(r), this.code = t, this.name = "ElevateApiError";
2282
2305
  }
2283
2306
  }
2284
- const bs = async (e) => {
2307
+ const ms = async (e) => {
2285
2308
  const t = new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${e.locale ?? ""}`), r = new Headers({ "Content-Type": "application/json" });
2286
2309
  e.userSession && r.append("X-SessionId", e.userSession);
2287
2310
  const i = await (await fetch(t.href, { method: "GET", headers: r })).json();
2288
2311
  if (!i.success)
2289
- throw new ms(i.errorCode, i.errorMessage);
2312
+ throw new _s(i.errorCode, i.errorMessage);
2290
2313
  return i.data;
2291
- }, gs = async (e) => {
2314
+ }, bs = async (e) => {
2292
2315
  const t = new URL(`${e.apiEndpoint}/elevate/levels?language=${e.locale ?? ""}`);
2293
2316
  return (await (await fetch(t.href, { method: "GET" })).json()).data;
2294
- }, ys = (e, t) => {
2317
+ }, gs = (e, t) => {
2295
2318
  const r = [...e].sort((i, s) => i.firstEntryPoints > s.firstEntryPoints ? 1 : -1);
2296
2319
  let n = 0;
2297
2320
  return r.forEach((i, s) => {
2298
2321
  t > i.firstEntryPoints && (n = s);
2299
2322
  }), n;
2300
- }, Es = (e) => {
2323
+ }, ys = (e) => {
2301
2324
  window.postMessage({ type: "GamificationXpUpdated", points: e }, window.location.href);
2302
- }, xs = (e) => {
2325
+ }, Es = (e) => {
2303
2326
  let t = /* @__PURE__ */ R(void 0), r = /* @__PURE__ */ R(void 0), n = /* @__PURE__ */ R(void 0), i = /* @__PURE__ */ R(void 0), s = /* @__PURE__ */ R(!1), o = /* @__PURE__ */ R(void 0);
2304
2327
  const a = async () => {
2305
2328
  const { apiEndpoint: l, userSession: u, locale: f, loadLevels: c, onLevelLoaded: h } = e();
2306
2329
  if (!(!l || !u)) {
2307
- A(s, !0), A(o, void 0);
2330
+ H(s, !0), H(o, void 0);
2308
2331
  try {
2309
2332
  const d = [
2310
- bs({ apiEndpoint: l, userSession: u, locale: f }).then((p) => {
2311
- Es(p.level?.loyaltyPoints);
2333
+ ms({ apiEndpoint: l, userSession: u, locale: f }).then((p) => {
2334
+ ys(p.level?.loyaltyPoints);
2312
2335
  const v = p.level;
2313
- v.name = v.presentation?.displayName || v.name, v.spendablePoints = p.spendableWallet?.total.points || 0, A(t, v, !0), A(n, p.loyaltyWallet?.total, !0), A(i, p.spendableWallet?.total, !0), h?.({ elevateLevel: v }), h?.({
2336
+ v.name = v.presentation?.displayName || v.name, v.spendablePoints = p.spendableWallet?.total.points || 0, H(t, v, !0), H(n, p.loyaltyWallet?.total, !0), H(i, p.spendableWallet?.total, !0), h?.({ elevateLevel: v }), h?.({
2314
2337
  elevateLevelWalletTotal: p.spendableWallet?.total,
2315
2338
  loyaltyWalletTotal: p.loyaltyWallet?.total
2316
2339
  });
2317
2340
  })
2318
2341
  ];
2319
- c && d.push(gs({ apiEndpoint: l, userSession: u, locale: f }).then((p) => {
2320
- A(r, p, !0);
2321
- })), await Promise.all(d), await ts(), x(r) && x(t) && h?.({
2322
- calculatedLevelFlag: ys(x(r), x(t).loyaltyPoints ?? 0)
2342
+ c && d.push(bs({ apiEndpoint: l, userSession: u, locale: f }).then((p) => {
2343
+ H(r, p, !0);
2344
+ })), await Promise.all(d), await Ki(), y(r) && y(t) && h?.({
2345
+ calculatedLevelFlag: gs(y(r), y(t).loyaltyPoints ?? 0)
2323
2346
  });
2324
2347
  } catch (d) {
2325
- A(o, d, !0), console.error("Failed to load elevate info:", d);
2348
+ H(o, d, !0), console.error("Failed to load elevate info:", d);
2326
2349
  } finally {
2327
- A(s, !1);
2350
+ H(s, !1);
2328
2351
  }
2329
2352
  }
2330
2353
  };
2331
- return mr(() => {
2354
+ return _r(() => {
2332
2355
  const { apiEndpoint: l, userSession: u, locale: f, loadLevels: c } = e();
2333
2356
  a();
2334
- }), mr(() => {
2357
+ }), _r(() => {
2335
2358
  const l = () => {
2336
2359
  a();
2337
2360
  };
2338
2361
  return window.addEventListener("redeemRewardButton", l), () => window.removeEventListener("redeemRewardButton", l);
2339
2362
  }), {
2340
2363
  get playerElevateLevel() {
2341
- return x(t);
2364
+ return y(t);
2342
2365
  },
2343
2366
  get levels() {
2344
- return x(r);
2367
+ return y(r);
2345
2368
  },
2346
2369
  get loyaltyWalletTotal() {
2347
- return x(n);
2370
+ return y(n);
2348
2371
  },
2349
2372
  get spendableWalletTotal() {
2350
- return x(i);
2373
+ return y(i);
2351
2374
  },
2352
2375
  get loading() {
2353
- return x(s);
2376
+ return y(s);
2354
2377
  },
2355
2378
  get error() {
2356
- return x(o);
2379
+ return y(o);
2357
2380
  },
2358
2381
  reload: a
2359
2382
  };
2360
2383
  };
2361
- function ws(e) {
2384
+ function xs(e) {
2362
2385
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2363
2386
  }
2364
- var Ts = function(t) {
2365
- return Ss(t) && !Hs(t);
2387
+ var ws = function(t) {
2388
+ return Ts(t) && !Ss(t);
2366
2389
  };
2367
- function Ss(e) {
2390
+ function Ts(e) {
2368
2391
  return !!e && typeof e == "object";
2369
2392
  }
2370
- function Hs(e) {
2393
+ function Ss(e) {
2371
2394
  var t = Object.prototype.toString.call(e);
2372
- return t === "[object RegExp]" || t === "[object Date]" || Ps(e);
2395
+ return t === "[object RegExp]" || t === "[object Date]" || Bs(e);
2373
2396
  }
2374
- var As = typeof Symbol == "function" && Symbol.for, Bs = As ? Symbol.for("react.element") : 60103;
2375
- function Ps(e) {
2376
- return e.$$typeof === Bs;
2397
+ var Hs = typeof Symbol == "function" && Symbol.for, As = Hs ? Symbol.for("react.element") : 60103;
2398
+ function Bs(e) {
2399
+ return e.$$typeof === As;
2377
2400
  }
2378
- function Ns(e) {
2401
+ function Ps(e) {
2379
2402
  return Array.isArray(e) ? [] : {};
2380
2403
  }
2381
- function qe(e, t) {
2382
- return t.clone !== !1 && t.isMergeableObject(e) ? Oe(Ns(e), e, t) : e;
2404
+ function Qe(e, t) {
2405
+ return t.clone !== !1 && t.isMergeableObject(e) ? Re(Ps(e), e, t) : e;
2383
2406
  }
2384
- function Os(e, t, r) {
2407
+ function Ns(e, t, r) {
2385
2408
  return e.concat(t).map(function(n) {
2386
- return qe(n, r);
2409
+ return Qe(n, r);
2387
2410
  });
2388
2411
  }
2389
- function Ls(e, t) {
2412
+ function Os(e, t) {
2390
2413
  if (!t.customMerge)
2391
- return Oe;
2414
+ return Re;
2392
2415
  var r = t.customMerge(e);
2393
- return typeof r == "function" ? r : Oe;
2416
+ return typeof r == "function" ? r : Re;
2394
2417
  }
2395
- function Is(e) {
2418
+ function Ls(e) {
2396
2419
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
2397
2420
  return Object.propertyIsEnumerable.call(e, t);
2398
2421
  }) : [];
2399
2422
  }
2400
- function wr(e) {
2401
- return Object.keys(e).concat(Is(e));
2423
+ function xr(e) {
2424
+ return Object.keys(e).concat(Ls(e));
2402
2425
  }
2403
- function In(e, t) {
2426
+ function On(e, t) {
2404
2427
  try {
2405
2428
  return t in e;
2406
2429
  } catch {
2407
2430
  return !1;
2408
2431
  }
2409
2432
  }
2410
- function Rs(e, t) {
2411
- return In(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
2433
+ function Is(e, t) {
2434
+ return On(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
2412
2435
  }
2413
- function Cs(e, t, r) {
2436
+ function Rs(e, t, r) {
2414
2437
  var n = {};
2415
- return r.isMergeableObject(e) && wr(e).forEach(function(i) {
2416
- n[i] = qe(e[i], r);
2417
- }), wr(t).forEach(function(i) {
2418
- Rs(e, i) || (In(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ls(i, r)(e[i], t[i], r) : n[i] = qe(t[i], r));
2438
+ return r.isMergeableObject(e) && xr(e).forEach(function(i) {
2439
+ n[i] = Qe(e[i], r);
2440
+ }), xr(t).forEach(function(i) {
2441
+ Is(e, i) || (On(e, i) && r.isMergeableObject(t[i]) ? n[i] = Os(i, r)(e[i], t[i], r) : n[i] = Qe(t[i], r));
2419
2442
  }), n;
2420
2443
  }
2421
- function Oe(e, t, r) {
2422
- r = r || {}, r.arrayMerge = r.arrayMerge || Os, r.isMergeableObject = r.isMergeableObject || Ts, r.cloneUnlessOtherwiseSpecified = qe;
2444
+ function Re(e, t, r) {
2445
+ r = r || {}, r.arrayMerge = r.arrayMerge || Ns, r.isMergeableObject = r.isMergeableObject || ws, r.cloneUnlessOtherwiseSpecified = Qe;
2423
2446
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
2424
- return s ? n ? r.arrayMerge(e, t, r) : Cs(e, t, r) : qe(t, r);
2447
+ return s ? n ? r.arrayMerge(e, t, r) : Rs(e, t, r) : Qe(t, r);
2425
2448
  }
2426
- Oe.all = function(t, r) {
2449
+ Re.all = function(t, r) {
2427
2450
  if (!Array.isArray(t))
2428
2451
  throw new Error("first argument should be an array");
2429
2452
  return t.reduce(function(n, i) {
2430
- return Oe(n, i, r);
2453
+ return Re(n, i, r);
2431
2454
  }, {});
2432
2455
  };
2433
- var Ms = Oe, $s = Ms;
2434
- const Ds = /* @__PURE__ */ ws($s);
2456
+ var Cs = Re, $s = Cs;
2457
+ const Ms = /* @__PURE__ */ xs($s);
2435
2458
  var Wt = function(e, t) {
2436
2459
  return Wt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
2437
2460
  r.__proto__ = n;
@@ -2439,7 +2462,7 @@ var Wt = function(e, t) {
2439
2462
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
2440
2463
  }, Wt(e, t);
2441
2464
  };
2442
- function St(e, t) {
2465
+ function Ht(e, t) {
2443
2466
  if (typeof t != "function" && t !== null)
2444
2467
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
2445
2468
  Wt(e, t);
@@ -2448,16 +2471,16 @@ function St(e, t) {
2448
2471
  }
2449
2472
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
2450
2473
  }
2451
- var Q = function() {
2452
- return Q = Object.assign || function(t) {
2474
+ var Y = function() {
2475
+ return Y = Object.assign || function(t) {
2453
2476
  for (var r, n = 1, i = arguments.length; n < i; n++) {
2454
2477
  r = arguments[n];
2455
2478
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
2456
2479
  }
2457
2480
  return t;
2458
- }, Q.apply(this, arguments);
2481
+ }, Y.apply(this, arguments);
2459
2482
  };
2460
- function Us(e, t) {
2483
+ function Ds(e, t) {
2461
2484
  var r = {};
2462
2485
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
2463
2486
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2465,42 +2488,42 @@ function Us(e, t) {
2465
2488
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
2466
2489
  return r;
2467
2490
  }
2468
- function Ot(e, t, r) {
2491
+ function Lt(e, t, r) {
2469
2492
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
2470
2493
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
2471
2494
  return e.concat(s || Array.prototype.slice.call(t));
2472
2495
  }
2473
- function Lt(e, t) {
2474
- var r = t && t.cache ? t.cache : Ws, n = t && t.serializer ? t.serializer : Vs, i = t && t.strategy ? t.strategy : js;
2496
+ function It(e, t) {
2497
+ var r = t && t.cache ? t.cache : Xs, n = t && t.serializer ? t.serializer : ks, i = t && t.strategy ? t.strategy : Gs;
2475
2498
  return i(e, {
2476
2499
  cache: r,
2477
2500
  serializer: n
2478
2501
  });
2479
2502
  }
2480
- function Gs(e) {
2503
+ function Us(e) {
2481
2504
  return e == null || typeof e == "number" || typeof e == "boolean";
2482
2505
  }
2483
2506
  function Fs(e, t, r, n) {
2484
- var i = Gs(n) ? n : r(n), s = t.get(i);
2507
+ var i = Us(n) ? n : r(n), s = t.get(i);
2485
2508
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
2486
2509
  }
2487
- function Rn(e, t, r) {
2510
+ function Ln(e, t, r) {
2488
2511
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
2489
2512
  return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
2490
2513
  }
2491
- function Cn(e, t, r, n, i) {
2514
+ function In(e, t, r, n, i) {
2492
2515
  return r.bind(t, e, n, i);
2493
2516
  }
2494
- function js(e, t) {
2495
- var r = e.length === 1 ? Fs : Rn;
2496
- return Cn(e, this, r, t.cache.create(), t.serializer);
2517
+ function Gs(e, t) {
2518
+ var r = e.length === 1 ? Fs : Ln;
2519
+ return In(e, this, r, t.cache.create(), t.serializer);
2497
2520
  }
2498
- function ks(e, t) {
2499
- return Cn(e, this, Rn, t.cache.create(), t.serializer);
2521
+ function js(e, t) {
2522
+ return In(e, this, Ln, t.cache.create(), t.serializer);
2500
2523
  }
2501
- var Vs = function() {
2524
+ var ks = function() {
2502
2525
  return JSON.stringify(arguments);
2503
- }, Xs = (
2526
+ }, Vs = (
2504
2527
  /** @class */
2505
2528
  function() {
2506
2529
  function e() {
@@ -2512,70 +2535,70 @@ var Vs = function() {
2512
2535
  this.cache[t] = r;
2513
2536
  }, e;
2514
2537
  }()
2515
- ), Ws = {
2538
+ ), Xs = {
2516
2539
  create: function() {
2517
- return new Xs();
2540
+ return new Vs();
2518
2541
  }
2519
- }, It = {
2520
- variadic: ks
2521
- }, _t = function() {
2522
- return _t = Object.assign || function(t) {
2542
+ }, Rt = {
2543
+ variadic: js
2544
+ }, bt = function() {
2545
+ return bt = Object.assign || function(t) {
2523
2546
  for (var r, n = 1, i = arguments.length; n < i; n++) {
2524
2547
  r = arguments[n];
2525
2548
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
2526
2549
  }
2527
2550
  return t;
2528
- }, _t.apply(this, arguments);
2551
+ }, bt.apply(this, arguments);
2529
2552
  };
2530
2553
  var _;
2531
2554
  (function(e) {
2532
2555
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
2533
2556
  })(_ || (_ = {}));
2534
- var y;
2557
+ var E;
2535
2558
  (function(e) {
2536
2559
  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";
2537
- })(y || (y = {}));
2538
- var Le;
2560
+ })(E || (E = {}));
2561
+ var Ce;
2539
2562
  (function(e) {
2540
2563
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
2541
- })(Le || (Le = {}));
2542
- function Tr(e) {
2543
- return e.type === y.literal;
2564
+ })(Ce || (Ce = {}));
2565
+ function wr(e) {
2566
+ return e.type === E.literal;
2544
2567
  }
2545
- function zs(e) {
2546
- return e.type === y.argument;
2568
+ function Ws(e) {
2569
+ return e.type === E.argument;
2547
2570
  }
2548
- function Mn(e) {
2549
- return e.type === y.number;
2571
+ function Rn(e) {
2572
+ return e.type === E.number;
2573
+ }
2574
+ function Cn(e) {
2575
+ return e.type === E.date;
2550
2576
  }
2551
2577
  function $n(e) {
2552
- return e.type === y.date;
2578
+ return e.type === E.time;
2553
2579
  }
2554
- function Dn(e) {
2555
- return e.type === y.time;
2580
+ function Mn(e) {
2581
+ return e.type === E.select;
2556
2582
  }
2557
- function Un(e) {
2558
- return e.type === y.select;
2583
+ function Dn(e) {
2584
+ return e.type === E.plural;
2559
2585
  }
2560
- function Gn(e) {
2561
- return e.type === y.plural;
2586
+ function zs(e) {
2587
+ return e.type === E.pound;
2562
2588
  }
2563
- function qs(e) {
2564
- return e.type === y.pound;
2589
+ function Un(e) {
2590
+ return e.type === E.tag;
2565
2591
  }
2566
2592
  function Fn(e) {
2567
- return e.type === y.tag;
2568
- }
2569
- function jn(e) {
2570
- return !!(e && typeof e == "object" && e.type === Le.number);
2593
+ return !!(e && typeof e == "object" && e.type === Ce.number);
2571
2594
  }
2572
2595
  function zt(e) {
2573
- return !!(e && typeof e == "object" && e.type === Le.dateTime);
2596
+ return !!(e && typeof e == "object" && e.type === Ce.dateTime);
2574
2597
  }
2575
- var kn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zs = /(?:[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;
2576
- function Ys(e) {
2598
+ var Gn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, qs = /(?:[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;
2599
+ function Zs(e) {
2577
2600
  var t = {};
2578
- return e.replace(Zs, function(r) {
2601
+ return e.replace(qs, function(r) {
2579
2602
  var n = r.length;
2580
2603
  switch (r[0]) {
2581
2604
  case "G":
@@ -2673,11 +2696,11 @@ var w = function() {
2673
2696
  return t;
2674
2697
  }, w.apply(this, arguments);
2675
2698
  };
2676
- var Qs = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2677
- function Js(e) {
2699
+ var Ys = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2700
+ function Qs(e) {
2678
2701
  if (e.length === 0)
2679
2702
  throw new Error("Number skeleton cannot be empty");
2680
- for (var t = e.split(Qs).filter(function(h) {
2703
+ for (var t = e.split(Ys).filter(function(h) {
2681
2704
  return h.length > 0;
2682
2705
  }), r = [], n = 0, i = t; n < i.length; n++) {
2683
2706
  var s = i[n], o = s.split("/");
@@ -2692,17 +2715,17 @@ function Js(e) {
2692
2715
  }
2693
2716
  return r;
2694
2717
  }
2695
- function Ks(e) {
2718
+ function Js(e) {
2696
2719
  return e.replace(/^(.*?)-/, "");
2697
2720
  }
2698
- var Sr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vn = /^(@+)?(\+|#+)?[rs]?$/g, eo = /(\*)(0+)|(#+)(0+)|(0+)/g, Xn = /^(0+)$/;
2699
- function Hr(e) {
2721
+ var Tr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jn = /^(@+)?(\+|#+)?[rs]?$/g, Ks = /(\*)(0+)|(#+)(0+)|(0+)/g, kn = /^(0+)$/;
2722
+ function Sr(e) {
2700
2723
  var t = {};
2701
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vn, function(r, n, i) {
2724
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jn, function(r, n, i) {
2702
2725
  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)), "";
2703
2726
  }), t;
2704
2727
  }
2705
- function Wn(e) {
2728
+ function Vn(e) {
2706
2729
  switch (e) {
2707
2730
  case "sign-auto":
2708
2731
  return {
@@ -2742,7 +2765,7 @@ function Wn(e) {
2742
2765
  };
2743
2766
  }
2744
2767
  }
2745
- function to(e) {
2768
+ function eo(e) {
2746
2769
  var t;
2747
2770
  if (e[0] === "E" && e[1] === "E" ? (t = {
2748
2771
  notation: "engineering"
@@ -2750,17 +2773,17 @@ function to(e) {
2750
2773
  notation: "scientific"
2751
2774
  }, e = e.slice(1)), t) {
2752
2775
  var r = e.slice(0, 2);
2753
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xn.test(e))
2776
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kn.test(e))
2754
2777
  throw new Error("Malformed concise eng/scientific notation");
2755
2778
  t.minimumIntegerDigits = e.length;
2756
2779
  }
2757
2780
  return t;
2758
2781
  }
2759
- function Ar(e) {
2760
- var t = {}, r = Wn(e);
2782
+ function Hr(e) {
2783
+ var t = {}, r = Vn(e);
2761
2784
  return r || t;
2762
2785
  }
2763
- function ro(e) {
2786
+ function to(e) {
2764
2787
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
2765
2788
  var i = n[r];
2766
2789
  switch (i.stem) {
@@ -2784,7 +2807,7 @@ function ro(e) {
2784
2807
  continue;
2785
2808
  case "measure-unit":
2786
2809
  case "unit":
2787
- t.style = "unit", t.unit = Ks(i.options[0]);
2810
+ t.style = "unit", t.unit = Js(i.options[0]);
2788
2811
  continue;
2789
2812
  case "compact-short":
2790
2813
  case "K":
@@ -2796,12 +2819,12 @@ function ro(e) {
2796
2819
  continue;
2797
2820
  case "scientific":
2798
2821
  t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
2799
- return w(w({}, l), Ar(u));
2822
+ return w(w({}, l), Hr(u));
2800
2823
  }, {}));
2801
2824
  continue;
2802
2825
  case "engineering":
2803
2826
  t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
2804
- return w(w({}, l), Ar(u));
2827
+ return w(w({}, l), Hr(u));
2805
2828
  }, {}));
2806
2829
  continue;
2807
2830
  case "notation-simple":
@@ -2846,7 +2869,7 @@ function ro(e) {
2846
2869
  case "integer-width":
2847
2870
  if (i.options.length > 1)
2848
2871
  throw new RangeError("integer-width stems only accept a single optional option");
2849
- i.options[0].replace(eo, function(l, u, f, c, h, d) {
2872
+ i.options[0].replace(Ks, function(l, u, f, c, h, d) {
2850
2873
  if (u)
2851
2874
  t.minimumIntegerDigits = f.length;
2852
2875
  else {
@@ -2859,32 +2882,32 @@ function ro(e) {
2859
2882
  });
2860
2883
  continue;
2861
2884
  }
2862
- if (Xn.test(i.stem)) {
2885
+ if (kn.test(i.stem)) {
2863
2886
  t.minimumIntegerDigits = i.stem.length;
2864
2887
  continue;
2865
2888
  }
2866
- if (Sr.test(i.stem)) {
2889
+ if (Tr.test(i.stem)) {
2867
2890
  if (i.options.length > 1)
2868
2891
  throw new RangeError("Fraction-precision stems only accept a single optional option");
2869
- i.stem.replace(Sr, function(l, u, f, c, h, d) {
2892
+ i.stem.replace(Tr, function(l, u, f, c, h, d) {
2870
2893
  return f === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
2871
2894
  });
2872
2895
  var s = i.options[0];
2873
- s === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = w(w({}, t), Hr(s)));
2896
+ s === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = w(w({}, t), Sr(s)));
2874
2897
  continue;
2875
2898
  }
2876
- if (Vn.test(i.stem)) {
2877
- t = w(w({}, t), Hr(i.stem));
2899
+ if (jn.test(i.stem)) {
2900
+ t = w(w({}, t), Sr(i.stem));
2878
2901
  continue;
2879
2902
  }
2880
- var o = Wn(i.stem);
2903
+ var o = Vn(i.stem);
2881
2904
  o && (t = w(w({}, t), o));
2882
- var a = to(i.stem);
2905
+ var a = eo(i.stem);
2883
2906
  a && (t = w(w({}, t), a));
2884
2907
  }
2885
2908
  return t;
2886
2909
  }
2887
- var it = {
2910
+ var st = {
2888
2911
  "001": [
2889
2912
  "H",
2890
2913
  "h"
@@ -4299,13 +4322,13 @@ var it = {
4299
4322
  "h"
4300
4323
  ]
4301
4324
  };
4302
- function no(e, t) {
4325
+ function ro(e, t) {
4303
4326
  for (var r = "", n = 0; n < e.length; n++) {
4304
4327
  var i = e.charAt(n);
4305
4328
  if (i === "j") {
4306
4329
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
4307
4330
  s++, n++;
4308
- var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = io(t);
4331
+ var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = no(t);
4309
4332
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
4310
4333
  r += l;
4311
4334
  for (; o-- > 0; )
@@ -4314,7 +4337,7 @@ function no(e, t) {
4314
4337
  }
4315
4338
  return r;
4316
4339
  }
4317
- function io(e) {
4340
+ function no(e) {
4318
4341
  var t = e.hourCycle;
4319
4342
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
4320
4343
  e.hourCycles && // @ts-ignore
@@ -4333,23 +4356,23 @@ function io(e) {
4333
4356
  }
4334
4357
  var r = e.language, n;
4335
4358
  r !== "root" && (n = e.maximize().region);
4336
- var i = it[n || ""] || it[r || ""] || it["".concat(r, "-001")] || it["001"];
4359
+ var i = st[n || ""] || st[r || ""] || st["".concat(r, "-001")] || st["001"];
4337
4360
  return i[0];
4338
4361
  }
4339
- var Rt, so = new RegExp("^".concat(kn.source, "*")), oo = new RegExp("".concat(kn.source, "*$"));
4362
+ var Ct, io = new RegExp("^".concat(Gn.source, "*")), so = new RegExp("".concat(Gn.source, "*$"));
4340
4363
  function b(e, t) {
4341
4364
  return { start: e, end: t };
4342
4365
  }
4343
- var ao = !!String.prototype.startsWith && "_a".startsWith("a", 1), uo = !!String.fromCodePoint, lo = !!Object.fromEntries, fo = !!String.prototype.codePointAt, ho = !!String.prototype.trimStart, co = !!String.prototype.trimEnd, po = !!Number.isSafeInteger, vo = po ? Number.isSafeInteger : function(e) {
4366
+ var oo = !!String.prototype.startsWith && "_a".startsWith("a", 1), ao = !!String.fromCodePoint, uo = !!Object.fromEntries, lo = !!String.prototype.codePointAt, fo = !!String.prototype.trimStart, ho = !!String.prototype.trimEnd, co = !!Number.isSafeInteger, po = co ? Number.isSafeInteger : function(e) {
4344
4367
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
4345
4368
  }, qt = !0;
4346
4369
  try {
4347
- var _o = qn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4348
- qt = ((Rt = _o.exec("a")) === null || Rt === void 0 ? void 0 : Rt[0]) === "a";
4370
+ var vo = Wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4371
+ qt = ((Ct = vo.exec("a")) === null || Ct === void 0 ? void 0 : Ct[0]) === "a";
4349
4372
  } catch {
4350
4373
  qt = !1;
4351
4374
  }
4352
- var Br = ao ? (
4375
+ var Ar = oo ? (
4353
4376
  // Native
4354
4377
  function(t, r, n) {
4355
4378
  return t.startsWith(r, n);
@@ -4359,7 +4382,7 @@ var Br = ao ? (
4359
4382
  function(t, r, n) {
4360
4383
  return t.slice(n, n + r.length) === r;
4361
4384
  }
4362
- ), Zt = uo ? String.fromCodePoint : (
4385
+ ), Zt = ao ? String.fromCodePoint : (
4363
4386
  // IE11
4364
4387
  function() {
4365
4388
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -4371,9 +4394,9 @@ var Br = ao ? (
4371
4394
  }
4372
4395
  return n;
4373
4396
  }
4374
- ), Pr = (
4397
+ ), Br = (
4375
4398
  // native
4376
- lo ? Object.fromEntries : (
4399
+ uo ? Object.fromEntries : (
4377
4400
  // Ponyfill
4378
4401
  function(t) {
4379
4402
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -4383,7 +4406,7 @@ var Br = ao ? (
4383
4406
  return r;
4384
4407
  }
4385
4408
  )
4386
- ), zn = fo ? (
4409
+ ), Xn = lo ? (
4387
4410
  // Native
4388
4411
  function(t, r) {
4389
4412
  return t.codePointAt(r);
@@ -4397,7 +4420,7 @@ var Br = ao ? (
4397
4420
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
4398
4421
  }
4399
4422
  }
4400
- ), mo = ho ? (
4423
+ ), _o = fo ? (
4401
4424
  // Native
4402
4425
  function(t) {
4403
4426
  return t.trimStart();
@@ -4405,9 +4428,9 @@ var Br = ao ? (
4405
4428
  ) : (
4406
4429
  // Ponyfill
4407
4430
  function(t) {
4408
- return t.replace(so, "");
4431
+ return t.replace(io, "");
4409
4432
  }
4410
- ), bo = co ? (
4433
+ ), mo = ho ? (
4411
4434
  // Native
4412
4435
  function(t) {
4413
4436
  return t.trimEnd();
@@ -4415,32 +4438,32 @@ var Br = ao ? (
4415
4438
  ) : (
4416
4439
  // Ponyfill
4417
4440
  function(t) {
4418
- return t.replace(oo, "");
4441
+ return t.replace(so, "");
4419
4442
  }
4420
4443
  );
4421
- function qn(e, t) {
4444
+ function Wn(e, t) {
4422
4445
  return new RegExp(e, t);
4423
4446
  }
4424
4447
  var Yt;
4425
4448
  if (qt) {
4426
- var Nr = qn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4449
+ var Pr = Wn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
4427
4450
  Yt = function(t, r) {
4428
4451
  var n;
4429
- Nr.lastIndex = r;
4430
- var i = Nr.exec(t);
4452
+ Pr.lastIndex = r;
4453
+ var i = Pr.exec(t);
4431
4454
  return (n = i[1]) !== null && n !== void 0 ? n : "";
4432
4455
  };
4433
4456
  } else
4434
4457
  Yt = function(t, r) {
4435
4458
  for (var n = []; ; ) {
4436
- var i = zn(t, r);
4437
- if (i === void 0 || Zn(i) || xo(i))
4459
+ var i = Xn(t, r);
4460
+ if (i === void 0 || zn(i) || Eo(i))
4438
4461
  break;
4439
4462
  n.push(i), r += i >= 65536 ? 2 : 1;
4440
4463
  }
4441
4464
  return Zt.apply(void 0, n);
4442
4465
  };
4443
- var go = (
4466
+ var bo = (
4444
4467
  /** @class */
4445
4468
  function() {
4446
4469
  function e(t, r) {
@@ -4464,7 +4487,7 @@ var go = (
4464
4487
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
4465
4488
  var a = this.clonePosition();
4466
4489
  this.bump(), i.push({
4467
- type: y.pound,
4490
+ type: E.pound,
4468
4491
  location: b(a, this.clonePosition())
4469
4492
  });
4470
4493
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
@@ -4492,7 +4515,7 @@ var go = (
4492
4515
  if (this.bumpSpace(), this.bumpIf("/>"))
4493
4516
  return {
4494
4517
  val: {
4495
- type: y.literal,
4518
+ type: E.literal,
4496
4519
  value: "<".concat(i, "/>"),
4497
4520
  location: b(n, this.clonePosition())
4498
4521
  },
@@ -4509,7 +4532,7 @@ var go = (
4509
4532
  var l = this.clonePosition(), u = this.parseTagName();
4510
4533
  return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
4511
4534
  val: {
4512
- type: y.tag,
4535
+ type: E.tag,
4513
4536
  value: i,
4514
4537
  children: o,
4515
4538
  location: b(n, this.clonePosition())
@@ -4522,7 +4545,7 @@ var go = (
4522
4545
  return this.error(_.INVALID_TAG, b(n, this.clonePosition()));
4523
4546
  }, e.prototype.parseTagName = function() {
4524
4547
  var t = this.offset();
4525
- for (this.bump(); !this.isEOF() && Eo(this.char()); )
4548
+ for (this.bump(); !this.isEOF() && yo(this.char()); )
4526
4549
  this.bump();
4527
4550
  return this.message.slice(t, this.offset());
4528
4551
  }, e.prototype.parseLiteral = function(t, r) {
@@ -4546,12 +4569,12 @@ var go = (
4546
4569
  }
4547
4570
  var l = b(n, this.clonePosition());
4548
4571
  return {
4549
- val: { type: y.literal, value: i, location: l },
4572
+ val: { type: E.literal, value: i, location: l },
4550
4573
  err: null
4551
4574
  };
4552
4575
  }, e.prototype.tryParseLeftAngleBracket = function() {
4553
4576
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
4554
- !yo(this.peek() || 0)) ? (this.bump(), "<") : null;
4577
+ !go(this.peek() || 0)) ? (this.bump(), "<") : null;
4555
4578
  }, e.prototype.tryParseQuote = function(t) {
4556
4579
  if (this.isEOF() || this.char() !== 39)
4557
4580
  return null;
@@ -4606,7 +4629,7 @@ var go = (
4606
4629
  case 125:
4607
4630
  return this.bump(), {
4608
4631
  val: {
4609
- type: y.argument,
4632
+ type: E.argument,
4610
4633
  // value does not include the opening and closing braces.
4611
4634
  value: i,
4612
4635
  location: b(n, this.clonePosition())
@@ -4638,7 +4661,7 @@ var go = (
4638
4661
  var f = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
4639
4662
  if (c.err)
4640
4663
  return c;
4641
- var h = bo(c.val);
4664
+ var h = mo(c.val);
4642
4665
  if (h.length === 0)
4643
4666
  return this.error(_.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
4644
4667
  var d = b(f, this.clonePosition());
@@ -4648,34 +4671,34 @@ var go = (
4648
4671
  if (p.err)
4649
4672
  return p;
4650
4673
  var v = b(i, this.clonePosition());
4651
- if (u && Br(u?.style, "::", 0)) {
4652
- var E = mo(u.style.slice(2));
4674
+ if (u && Ar(u?.style, "::", 0)) {
4675
+ var x = _o(u.style.slice(2));
4653
4676
  if (a === "number") {
4654
- var c = this.parseNumberSkeletonFromString(E, u.styleLocation);
4677
+ var c = this.parseNumberSkeletonFromString(x, u.styleLocation);
4655
4678
  return c.err ? c : {
4656
- val: { type: y.number, value: n, location: v, style: c.val },
4679
+ val: { type: E.number, value: n, location: v, style: c.val },
4657
4680
  err: null
4658
4681
  };
4659
4682
  } else {
4660
- if (E.length === 0)
4683
+ if (x.length === 0)
4661
4684
  return this.error(_.EXPECT_DATE_TIME_SKELETON, v);
4662
- var Z = E;
4663
- this.locale && (Z = no(E, this.locale));
4685
+ var F = x;
4686
+ this.locale && (F = ro(x, this.locale));
4664
4687
  var h = {
4665
- type: Le.dateTime,
4666
- pattern: Z,
4688
+ type: Ce.dateTime,
4689
+ pattern: F,
4667
4690
  location: u.styleLocation,
4668
- parsedOptions: this.shouldParseSkeletons ? Ys(Z) : {}
4669
- }, D = a === "date" ? y.date : y.time;
4691
+ parsedOptions: this.shouldParseSkeletons ? Zs(F) : {}
4692
+ }, G = a === "date" ? E.date : E.time;
4670
4693
  return {
4671
- val: { type: D, value: n, location: v, style: h },
4694
+ val: { type: G, value: n, location: v, style: h },
4672
4695
  err: null
4673
4696
  };
4674
4697
  }
4675
4698
  }
4676
4699
  return {
4677
4700
  val: {
4678
- type: a === "number" ? y.number : a === "date" ? y.date : y.time,
4701
+ type: a === "number" ? E.number : a === "date" ? E.date : E.time,
4679
4702
  value: n,
4680
4703
  location: v,
4681
4704
  style: (s = u?.style) !== null && s !== void 0 ? s : null
@@ -4686,43 +4709,43 @@ var go = (
4686
4709
  case "plural":
4687
4710
  case "selectordinal":
4688
4711
  case "select": {
4689
- var G = this.clonePosition();
4712
+ var D = this.clonePosition();
4690
4713
  if (this.bumpSpace(), !this.bumpIf(","))
4691
- return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, b(G, _t({}, G)));
4714
+ return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, b(D, bt({}, D)));
4692
4715
  this.bumpSpace();
4693
- var Y = this.parseIdentifierIfPossible(), V = 0;
4694
- if (a !== "select" && Y.value === "offset") {
4716
+ var _e = this.parseIdentifierIfPossible(), K = 0;
4717
+ if (a !== "select" && _e.value === "offset") {
4695
4718
  if (!this.bumpIf(":"))
4696
4719
  return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
4697
4720
  this.bumpSpace();
4698
4721
  var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
4699
4722
  if (c.err)
4700
4723
  return c;
4701
- this.bumpSpace(), Y = this.parseIdentifierIfPossible(), V = c.val;
4724
+ this.bumpSpace(), _e = this.parseIdentifierIfPossible(), K = c.val;
4702
4725
  }
4703
- var Ke = this.tryParsePluralOrSelectOptions(t, a, r, Y);
4704
- if (Ke.err)
4705
- return Ke;
4726
+ var A = this.tryParsePluralOrSelectOptions(t, a, r, _e);
4727
+ if (A.err)
4728
+ return A;
4706
4729
  var p = this.tryParseArgumentClose(i);
4707
4730
  if (p.err)
4708
4731
  return p;
4709
- var cr = b(i, this.clonePosition());
4732
+ var me = b(i, this.clonePosition());
4710
4733
  return a === "select" ? {
4711
4734
  val: {
4712
- type: y.select,
4735
+ type: E.select,
4713
4736
  value: n,
4714
- options: Pr(Ke.val),
4715
- location: cr
4737
+ options: Br(A.val),
4738
+ location: me
4716
4739
  },
4717
4740
  err: null
4718
4741
  } : {
4719
4742
  val: {
4720
- type: y.plural,
4743
+ type: E.plural,
4721
4744
  value: n,
4722
- options: Pr(Ke.val),
4723
- offset: V,
4745
+ options: Br(A.val),
4746
+ offset: K,
4724
4747
  pluralType: a === "plural" ? "cardinal" : "ordinal",
4725
- location: cr
4748
+ location: me
4726
4749
  },
4727
4750
  err: null
4728
4751
  };
@@ -4770,16 +4793,16 @@ var go = (
4770
4793
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
4771
4794
  var n = [];
4772
4795
  try {
4773
- n = Js(t);
4796
+ n = Qs(t);
4774
4797
  } catch {
4775
4798
  return this.error(_.INVALID_NUMBER_SKELETON, r);
4776
4799
  }
4777
4800
  return {
4778
4801
  val: {
4779
- type: Le.number,
4802
+ type: Ce.number,
4780
4803
  tokens: n,
4781
4804
  location: r,
4782
- parsedOptions: this.shouldParseSkeletons ? ro(n) : {}
4805
+ parsedOptions: this.shouldParseSkeletons ? to(n) : {}
4783
4806
  },
4784
4807
  err: null
4785
4808
  };
@@ -4827,7 +4850,7 @@ var go = (
4827
4850
  break;
4828
4851
  }
4829
4852
  var l = b(i, this.clonePosition());
4830
- return s ? (o *= n, vo(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
4853
+ return s ? (o *= n, po(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
4831
4854
  }, e.prototype.offset = function() {
4832
4855
  return this.position.offset;
4833
4856
  }, e.prototype.isEOF = function() {
@@ -4842,7 +4865,7 @@ var go = (
4842
4865
  var t = this.position.offset;
4843
4866
  if (t >= this.message.length)
4844
4867
  throw Error("out of bound");
4845
- var r = zn(this.message, t);
4868
+ var r = Xn(this.message, t);
4846
4869
  if (r === void 0)
4847
4870
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
4848
4871
  return r;
@@ -4861,7 +4884,7 @@ var go = (
4861
4884
  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);
4862
4885
  }
4863
4886
  }, e.prototype.bumpIf = function(t) {
4864
- if (Br(this.message, t, this.offset())) {
4887
+ if (Ar(this.message, t, this.offset())) {
4865
4888
  for (var r = 0; r < t.length; r++)
4866
4889
  this.bump();
4867
4890
  return !0;
@@ -4883,7 +4906,7 @@ var go = (
4883
4906
  break;
4884
4907
  }
4885
4908
  }, e.prototype.bumpSpace = function() {
4886
- for (; !this.isEOF() && Zn(this.char()); )
4909
+ for (; !this.isEOF() && zn(this.char()); )
4887
4910
  this.bump();
4888
4911
  }, e.prototype.peek = function() {
4889
4912
  if (this.isEOF())
@@ -4896,43 +4919,43 @@ var go = (
4896
4919
  function Qt(e) {
4897
4920
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
4898
4921
  }
4899
- function yo(e) {
4922
+ function go(e) {
4900
4923
  return Qt(e) || e === 47;
4901
4924
  }
4902
- function Eo(e) {
4925
+ function yo(e) {
4903
4926
  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;
4904
4927
  }
4905
- function Zn(e) {
4928
+ function zn(e) {
4906
4929
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
4907
4930
  }
4908
- function xo(e) {
4931
+ function Eo(e) {
4909
4932
  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;
4910
4933
  }
4911
4934
  function Jt(e) {
4912
4935
  e.forEach(function(t) {
4913
- if (delete t.location, Un(t) || Gn(t))
4936
+ if (delete t.location, Mn(t) || Dn(t))
4914
4937
  for (var r in t.options)
4915
4938
  delete t.options[r].location, Jt(t.options[r].value);
4916
- else Mn(t) && jn(t.style) || ($n(t) || Dn(t)) && zt(t.style) ? delete t.style.location : Fn(t) && Jt(t.children);
4939
+ else Rn(t) && Fn(t.style) || (Cn(t) || $n(t)) && zt(t.style) ? delete t.style.location : Un(t) && Jt(t.children);
4917
4940
  });
4918
4941
  }
4919
- function wo(e, t) {
4920
- t === void 0 && (t = {}), t = _t({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
4921
- var r = new go(e, t).parse();
4942
+ function xo(e, t) {
4943
+ t === void 0 && (t = {}), t = bt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
4944
+ var r = new bo(e, t).parse();
4922
4945
  if (r.err) {
4923
4946
  var n = SyntaxError(_[r.err.kind]);
4924
4947
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
4925
4948
  }
4926
4949
  return t?.captureLocation || Jt(r.val), r.val;
4927
4950
  }
4928
- var Ie;
4951
+ var $e;
4929
4952
  (function(e) {
4930
4953
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
4931
- })(Ie || (Ie = {}));
4932
- var Ht = (
4954
+ })($e || ($e = {}));
4955
+ var At = (
4933
4956
  /** @class */
4934
4957
  function(e) {
4935
- St(t, e);
4958
+ Ht(t, e);
4936
4959
  function t(r, n, i) {
4937
4960
  var s = e.call(this, r) || this;
4938
4961
  return s.code = n, s.originalMessage = i, s;
@@ -4941,48 +4964,48 @@ var Ht = (
4941
4964
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
4942
4965
  }, t;
4943
4966
  }(Error)
4944
- ), Or = (
4967
+ ), Nr = (
4945
4968
  /** @class */
4946
4969
  function(e) {
4947
- St(t, e);
4970
+ Ht(t, e);
4948
4971
  function t(r, n, i, s) {
4949
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ie.INVALID_VALUE, s) || this;
4972
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, s) || this;
4950
4973
  }
4951
4974
  return t;
4952
- }(Ht)
4953
- ), To = (
4975
+ }(At)
4976
+ ), wo = (
4954
4977
  /** @class */
4955
4978
  function(e) {
4956
- St(t, e);
4979
+ Ht(t, e);
4957
4980
  function t(r, n, i) {
4958
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ie.INVALID_VALUE, i) || this;
4981
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), $e.INVALID_VALUE, i) || this;
4959
4982
  }
4960
4983
  return t;
4961
- }(Ht)
4962
- ), So = (
4984
+ }(At)
4985
+ ), To = (
4963
4986
  /** @class */
4964
4987
  function(e) {
4965
- St(t, e);
4988
+ Ht(t, e);
4966
4989
  function t(r, n) {
4967
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ie.MISSING_VALUE, n) || this;
4990
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), $e.MISSING_VALUE, n) || this;
4968
4991
  }
4969
4992
  return t;
4970
- }(Ht)
4993
+ }(At)
4971
4994
  ), O;
4972
4995
  (function(e) {
4973
4996
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
4974
4997
  })(O || (O = {}));
4975
- function Ho(e) {
4998
+ function So(e) {
4976
4999
  return e.length < 2 ? e : e.reduce(function(t, r) {
4977
5000
  var n = t[t.length - 1];
4978
5001
  return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
4979
5002
  }, []);
4980
5003
  }
4981
- function Ao(e) {
5004
+ function Ho(e) {
4982
5005
  return typeof e == "function";
4983
5006
  }
4984
- function at(e, t, r, n, i, s, o) {
4985
- if (e.length === 1 && Tr(e[0]))
5007
+ function ut(e, t, r, n, i, s, o) {
5008
+ if (e.length === 1 && wr(e[0]))
4986
5009
  return [
4987
5010
  {
4988
5011
  type: O.literal,
@@ -4991,14 +5014,14 @@ function at(e, t, r, n, i, s, o) {
4991
5014
  ];
4992
5015
  for (var a = [], l = 0, u = e; l < u.length; l++) {
4993
5016
  var f = u[l];
4994
- if (Tr(f)) {
5017
+ if (wr(f)) {
4995
5018
  a.push({
4996
5019
  type: O.literal,
4997
5020
  value: f.value
4998
5021
  });
4999
5022
  continue;
5000
5023
  }
5001
- if (qs(f)) {
5024
+ if (zs(f)) {
5002
5025
  typeof s == "number" && a.push({
5003
5026
  type: O.literal,
5004
5027
  value: r.getNumberFormat(t).format(s)
@@ -5007,16 +5030,16 @@ function at(e, t, r, n, i, s, o) {
5007
5030
  }
5008
5031
  var c = f.value;
5009
5032
  if (!(i && c in i))
5010
- throw new So(c, o);
5033
+ throw new To(c, o);
5011
5034
  var h = i[c];
5012
- if (zs(f)) {
5035
+ if (Ws(f)) {
5013
5036
  (!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
5014
5037
  type: typeof h == "string" ? O.literal : O.object,
5015
5038
  value: h
5016
5039
  });
5017
5040
  continue;
5018
5041
  }
5019
- if ($n(f)) {
5042
+ if (Cn(f)) {
5020
5043
  var d = typeof f.style == "string" ? n.date[f.style] : zt(f.style) ? f.style.parsedOptions : void 0;
5021
5044
  a.push({
5022
5045
  type: O.literal,
@@ -5024,7 +5047,7 @@ function at(e, t, r, n, i, s, o) {
5024
5047
  });
5025
5048
  continue;
5026
5049
  }
5027
- if (Dn(f)) {
5050
+ if ($n(f)) {
5028
5051
  var d = typeof f.style == "string" ? n.time[f.style] : zt(f.style) ? f.style.parsedOptions : n.time.medium;
5029
5052
  a.push({
5030
5053
  type: O.literal,
@@ -5032,64 +5055,64 @@ function at(e, t, r, n, i, s, o) {
5032
5055
  });
5033
5056
  continue;
5034
5057
  }
5035
- if (Mn(f)) {
5036
- var d = typeof f.style == "string" ? n.number[f.style] : jn(f.style) ? f.style.parsedOptions : void 0;
5058
+ if (Rn(f)) {
5059
+ var d = typeof f.style == "string" ? n.number[f.style] : Fn(f.style) ? f.style.parsedOptions : void 0;
5037
5060
  d && d.scale && (h = h * (d.scale || 1)), a.push({
5038
5061
  type: O.literal,
5039
5062
  value: r.getNumberFormat(t, d).format(h)
5040
5063
  });
5041
5064
  continue;
5042
5065
  }
5043
- if (Fn(f)) {
5044
- var p = f.children, v = f.value, E = i[v];
5045
- if (!Ao(E))
5046
- throw new To(v, "function", o);
5047
- var Z = at(p, t, r, n, i, s), D = E(Z.map(function(V) {
5048
- return V.value;
5066
+ if (Un(f)) {
5067
+ var p = f.children, v = f.value, x = i[v];
5068
+ if (!Ho(x))
5069
+ throw new wo(v, "function", o);
5070
+ var F = ut(p, t, r, n, i, s), G = x(F.map(function(K) {
5071
+ return K.value;
5049
5072
  }));
5050
- Array.isArray(D) || (D = [D]), a.push.apply(a, D.map(function(V) {
5073
+ Array.isArray(G) || (G = [G]), a.push.apply(a, G.map(function(K) {
5051
5074
  return {
5052
- type: typeof V == "string" ? O.literal : O.object,
5053
- value: V
5075
+ type: typeof K == "string" ? O.literal : O.object,
5076
+ value: K
5054
5077
  };
5055
5078
  }));
5056
5079
  }
5057
- if (Un(f)) {
5058
- var G = f.options[h] || f.options.other;
5059
- if (!G)
5060
- throw new Or(f.value, h, Object.keys(f.options), o);
5061
- a.push.apply(a, at(G.value, t, r, n, i));
5080
+ if (Mn(f)) {
5081
+ var D = f.options[h] || f.options.other;
5082
+ if (!D)
5083
+ throw new Nr(f.value, h, Object.keys(f.options), o);
5084
+ a.push.apply(a, ut(D.value, t, r, n, i));
5062
5085
  continue;
5063
5086
  }
5064
- if (Gn(f)) {
5065
- var G = f.options["=".concat(h)];
5066
- if (!G) {
5087
+ if (Dn(f)) {
5088
+ var D = f.options["=".concat(h)];
5089
+ if (!D) {
5067
5090
  if (!Intl.PluralRules)
5068
- throw new Ht(`Intl.PluralRules is not available in this environment.
5091
+ throw new At(`Intl.PluralRules is not available in this environment.
5069
5092
  Try polyfilling it using "@formatjs/intl-pluralrules"
5070
- `, Ie.MISSING_INTL_API, o);
5071
- var Y = r.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
5072
- G = f.options[Y] || f.options.other;
5093
+ `, $e.MISSING_INTL_API, o);
5094
+ var _e = r.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
5095
+ D = f.options[_e] || f.options.other;
5073
5096
  }
5074
- if (!G)
5075
- throw new Or(f.value, h, Object.keys(f.options), o);
5076
- a.push.apply(a, at(G.value, t, r, n, i, h - (f.offset || 0)));
5097
+ if (!D)
5098
+ throw new Nr(f.value, h, Object.keys(f.options), o);
5099
+ a.push.apply(a, ut(D.value, t, r, n, i, h - (f.offset || 0)));
5077
5100
  continue;
5078
5101
  }
5079
5102
  }
5080
- return Ho(a);
5103
+ return So(a);
5081
5104
  }
5082
- function Bo(e, t) {
5083
- return t ? Q(Q(Q({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
5084
- return r[n] = Q(Q({}, e[n]), t[n] || {}), r;
5105
+ function Ao(e, t) {
5106
+ return t ? Y(Y(Y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
5107
+ return r[n] = Y(Y({}, e[n]), t[n] || {}), r;
5085
5108
  }, {})) : e;
5086
5109
  }
5087
- function Po(e, t) {
5110
+ function Bo(e, t) {
5088
5111
  return t ? Object.keys(e).reduce(function(r, n) {
5089
- return r[n] = Bo(e[n], t[n]), r;
5090
- }, Q({}, e)) : e;
5112
+ return r[n] = Ao(e[n], t[n]), r;
5113
+ }, Y({}, e)) : e;
5091
5114
  }
5092
- function Ct(e) {
5115
+ function $t(e) {
5093
5116
  return {
5094
5117
  create: function() {
5095
5118
  return {
@@ -5103,39 +5126,39 @@ function Ct(e) {
5103
5126
  }
5104
5127
  };
5105
5128
  }
5106
- function No(e) {
5129
+ function Po(e) {
5107
5130
  return e === void 0 && (e = {
5108
5131
  number: {},
5109
5132
  dateTime: {},
5110
5133
  pluralRules: {}
5111
5134
  }), {
5112
- getNumberFormat: Lt(function() {
5135
+ getNumberFormat: It(function() {
5113
5136
  for (var t, r = [], n = 0; n < arguments.length; n++)
5114
5137
  r[n] = arguments[n];
5115
- return new ((t = Intl.NumberFormat).bind.apply(t, Ot([void 0], r, !1)))();
5138
+ return new ((t = Intl.NumberFormat).bind.apply(t, Lt([void 0], r, !1)))();
5116
5139
  }, {
5117
- cache: Ct(e.number),
5118
- strategy: It.variadic
5140
+ cache: $t(e.number),
5141
+ strategy: Rt.variadic
5119
5142
  }),
5120
- getDateTimeFormat: Lt(function() {
5143
+ getDateTimeFormat: It(function() {
5121
5144
  for (var t, r = [], n = 0; n < arguments.length; n++)
5122
5145
  r[n] = arguments[n];
5123
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ot([void 0], r, !1)))();
5146
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Lt([void 0], r, !1)))();
5124
5147
  }, {
5125
- cache: Ct(e.dateTime),
5126
- strategy: It.variadic
5148
+ cache: $t(e.dateTime),
5149
+ strategy: Rt.variadic
5127
5150
  }),
5128
- getPluralRules: Lt(function() {
5151
+ getPluralRules: It(function() {
5129
5152
  for (var t, r = [], n = 0; n < arguments.length; n++)
5130
5153
  r[n] = arguments[n];
5131
- return new ((t = Intl.PluralRules).bind.apply(t, Ot([void 0], r, !1)))();
5154
+ return new ((t = Intl.PluralRules).bind.apply(t, Lt([void 0], r, !1)))();
5132
5155
  }, {
5133
- cache: Ct(e.pluralRules),
5134
- strategy: It.variadic
5156
+ cache: $t(e.pluralRules),
5157
+ strategy: Rt.variadic
5135
5158
  })
5136
5159
  };
5137
5160
  }
5138
- var Oo = (
5161
+ var No = (
5139
5162
  /** @class */
5140
5163
  function() {
5141
5164
  function e(t, r, n, i) {
@@ -5154,7 +5177,7 @@ var Oo = (
5154
5177
  }, []);
5155
5178
  return f.length <= 1 ? f[0] || "" : f;
5156
5179
  }, this.formatToParts = function(l) {
5157
- return at(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
5180
+ return ut(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
5158
5181
  }, this.resolvedOptions = function() {
5159
5182
  var l;
5160
5183
  return {
@@ -5167,13 +5190,13 @@ var Oo = (
5167
5190
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
5168
5191
  var o = i || {};
5169
5192
  o.formatters;
5170
- var a = Us(o, ["formatters"]);
5171
- this.ast = e.__parse(t, Q(Q({}, a), { locale: this.resolvedLocale }));
5193
+ var a = Ds(o, ["formatters"]);
5194
+ this.ast = e.__parse(t, Y(Y({}, a), { locale: this.resolvedLocale }));
5172
5195
  } else
5173
5196
  this.ast = t;
5174
5197
  if (!Array.isArray(this.ast))
5175
5198
  throw new TypeError("A message must be provided as a String or AST.");
5176
- this.formats = Po(e.formats, n), this.formatters = i && i.formatters || No(this.formatterCache);
5199
+ this.formats = Bo(e.formats, n), this.formatters = i && i.formatters || Po(this.formatterCache);
5177
5200
  }
5178
5201
  return Object.defineProperty(e, "defaultLocale", {
5179
5202
  get: function() {
@@ -5186,7 +5209,7 @@ var Oo = (
5186
5209
  var r = Intl.NumberFormat.supportedLocalesOf(t);
5187
5210
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
5188
5211
  }
5189
- }, e.__parse = wo, e.formats = {
5212
+ }, e.__parse = xo, e.formats = {
5190
5213
  number: {
5191
5214
  integer: {
5192
5215
  maximumFractionDigits: 0
@@ -5247,7 +5270,7 @@ var Oo = (
5247
5270
  }, e;
5248
5271
  }()
5249
5272
  );
5250
- function Lo(e, t) {
5273
+ function Oo(e, t) {
5251
5274
  if (t == null)
5252
5275
  return;
5253
5276
  if (t in e)
@@ -5268,92 +5291,92 @@ function Lo(e, t) {
5268
5291
  n = void 0;
5269
5292
  return n;
5270
5293
  }
5271
- const se = {}, Io = (e, t, r) => r && (t in se || (se[t] = {}), e in se[t] || (se[t][e] = r), r), Yn = (e, t) => {
5294
+ const oe = {}, Lo = (e, t, r) => r && (t in oe || (oe[t] = {}), e in oe[t] || (oe[t][e] = r), r), qn = (e, t) => {
5272
5295
  if (t == null)
5273
5296
  return;
5274
- if (t in se && e in se[t])
5275
- return se[t][e];
5276
- const r = At(t);
5297
+ if (t in oe && e in oe[t])
5298
+ return oe[t][e];
5299
+ const r = Bt(t);
5277
5300
  for (let n = 0; n < r.length; n++) {
5278
- const i = r[n], s = Co(i, e);
5301
+ const i = r[n], s = Ro(i, e);
5279
5302
  if (s)
5280
- return Io(e, t, s);
5303
+ return Lo(e, t, s);
5281
5304
  }
5282
5305
  };
5283
5306
  let fr;
5284
- const Me = Tt({});
5285
- function Ro(e) {
5307
+ const Ue = St({});
5308
+ function Io(e) {
5286
5309
  return fr[e] || null;
5287
5310
  }
5288
- function Qn(e) {
5311
+ function Zn(e) {
5289
5312
  return e in fr;
5290
5313
  }
5291
- function Co(e, t) {
5292
- if (!Qn(e))
5314
+ function Ro(e, t) {
5315
+ if (!Zn(e))
5293
5316
  return null;
5294
- const r = Ro(e);
5295
- return Lo(r, t);
5317
+ const r = Io(e);
5318
+ return Oo(r, t);
5296
5319
  }
5297
- function Mo(e) {
5320
+ function Co(e) {
5298
5321
  if (e == null)
5299
5322
  return;
5300
- const t = At(e);
5323
+ const t = Bt(e);
5301
5324
  for (let r = 0; r < t.length; r++) {
5302
5325
  const n = t[r];
5303
- if (Qn(n))
5326
+ if (Zn(n))
5304
5327
  return n;
5305
5328
  }
5306
5329
  }
5307
- function Jn(e, ...t) {
5308
- delete se[e], Me.update((r) => (r[e] = Ds.all([r[e] || {}, ...t]), r));
5330
+ function Yn(e, ...t) {
5331
+ delete oe[e], Ue.update((r) => (r[e] = Ms.all([r[e] || {}, ...t]), r));
5309
5332
  }
5310
- Ce(
5311
- [Me],
5333
+ De(
5334
+ [Ue],
5312
5335
  ([e]) => Object.keys(e)
5313
5336
  );
5314
- Me.subscribe((e) => fr = e);
5315
- const ut = {};
5337
+ Ue.subscribe((e) => fr = e);
5338
+ const lt = {};
5316
5339
  function $o(e, t) {
5317
- ut[e].delete(t), ut[e].size === 0 && delete ut[e];
5340
+ lt[e].delete(t), lt[e].size === 0 && delete lt[e];
5318
5341
  }
5319
- function Kn(e) {
5320
- return ut[e];
5342
+ function Qn(e) {
5343
+ return lt[e];
5321
5344
  }
5322
- function Do(e) {
5323
- return At(e).map((t) => {
5324
- const r = Kn(t);
5345
+ function Mo(e) {
5346
+ return Bt(e).map((t) => {
5347
+ const r = Qn(t);
5325
5348
  return [t, r ? [...r] : []];
5326
5349
  }).filter(([, t]) => t.length > 0);
5327
5350
  }
5328
5351
  function Kt(e) {
5329
- return e == null ? !1 : At(e).some(
5352
+ return e == null ? !1 : Bt(e).some(
5330
5353
  (t) => {
5331
5354
  var r;
5332
- return (r = Kn(t)) == null ? void 0 : r.size;
5355
+ return (r = Qn(t)) == null ? void 0 : r.size;
5333
5356
  }
5334
5357
  );
5335
5358
  }
5336
- function Uo(e, t) {
5359
+ function Do(e, t) {
5337
5360
  return Promise.all(
5338
5361
  t.map((n) => ($o(e, n), n().then((i) => i.default || i)))
5339
- ).then((n) => Jn(e, ...n));
5362
+ ).then((n) => Yn(e, ...n));
5340
5363
  }
5341
- const Ge = {};
5342
- function ei(e) {
5364
+ const ke = {};
5365
+ function Jn(e) {
5343
5366
  if (!Kt(e))
5344
- return e in Ge ? Ge[e] : Promise.resolve();
5345
- const t = Do(e);
5346
- return Ge[e] = Promise.all(
5367
+ return e in ke ? ke[e] : Promise.resolve();
5368
+ const t = Mo(e);
5369
+ return ke[e] = Promise.all(
5347
5370
  t.map(
5348
- ([r, n]) => Uo(r, n)
5371
+ ([r, n]) => Do(r, n)
5349
5372
  )
5350
5373
  ).then(() => {
5351
5374
  if (Kt(e))
5352
- return ei(e);
5353
- delete Ge[e];
5354
- }), Ge[e];
5375
+ return Jn(e);
5376
+ delete ke[e];
5377
+ }), ke[e];
5355
5378
  }
5356
- const Go = {
5379
+ const Uo = {
5357
5380
  number: {
5358
5381
  scientific: { notation: "scientific" },
5359
5382
  engineering: { notation: "engineering" },
@@ -5385,147 +5408,147 @@ const Go = {
5385
5408
  }, Fo = {
5386
5409
  fallbackLocale: null,
5387
5410
  loadingDelay: 200,
5388
- formats: Go,
5411
+ formats: Uo,
5389
5412
  warnOnMissingMessages: !0,
5390
5413
  handleMissingMessage: void 0,
5391
5414
  ignoreTag: !0
5392
- }, jo = Fo;
5393
- function Re() {
5394
- return jo;
5415
+ }, Go = Fo;
5416
+ function Me() {
5417
+ return Go;
5395
5418
  }
5396
- const Mt = Tt(!1);
5397
- var ko = Object.defineProperty, Vo = Object.defineProperties, Xo = Object.getOwnPropertyDescriptors, Lr = Object.getOwnPropertySymbols, Wo = Object.prototype.hasOwnProperty, zo = Object.prototype.propertyIsEnumerable, Ir = (e, t, r) => t in e ? ko(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qo = (e, t) => {
5419
+ const Mt = St(!1);
5420
+ var jo = Object.defineProperty, ko = Object.defineProperties, Vo = Object.getOwnPropertyDescriptors, Or = Object.getOwnPropertySymbols, Xo = Object.prototype.hasOwnProperty, Wo = Object.prototype.propertyIsEnumerable, Lr = (e, t, r) => t in e ? jo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zo = (e, t) => {
5398
5421
  for (var r in t || (t = {}))
5399
- Wo.call(t, r) && Ir(e, r, t[r]);
5400
- if (Lr)
5401
- for (var r of Lr(t))
5402
- zo.call(t, r) && Ir(e, r, t[r]);
5422
+ Xo.call(t, r) && Lr(e, r, t[r]);
5423
+ if (Or)
5424
+ for (var r of Or(t))
5425
+ Wo.call(t, r) && Lr(e, r, t[r]);
5403
5426
  return e;
5404
- }, Zo = (e, t) => Vo(e, Xo(t));
5427
+ }, qo = (e, t) => ko(e, Vo(t));
5405
5428
  let er;
5406
- const mt = Tt(null);
5407
- function Rr(e) {
5429
+ const gt = St(null);
5430
+ function Ir(e) {
5408
5431
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
5409
5432
  }
5410
- function At(e, t = Re().fallbackLocale) {
5411
- const r = Rr(e);
5412
- return t ? [.../* @__PURE__ */ new Set([...r, ...Rr(t)])] : r;
5433
+ function Bt(e, t = Me().fallbackLocale) {
5434
+ const r = Ir(e);
5435
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Ir(t)])] : r;
5413
5436
  }
5414
- function Te() {
5437
+ function He() {
5415
5438
  return er ?? void 0;
5416
5439
  }
5417
- mt.subscribe((e) => {
5440
+ gt.subscribe((e) => {
5418
5441
  er = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
5419
5442
  });
5420
- const Yo = (e) => {
5421
- if (e && Mo(e) && Kt(e)) {
5422
- const { loadingDelay: t } = Re();
5443
+ const Zo = (e) => {
5444
+ if (e && Co(e) && Kt(e)) {
5445
+ const { loadingDelay: t } = Me();
5423
5446
  let r;
5424
- return typeof window < "u" && Te() != null && t ? r = window.setTimeout(
5447
+ return typeof window < "u" && He() != null && t ? r = window.setTimeout(
5425
5448
  () => Mt.set(!0),
5426
5449
  t
5427
- ) : Mt.set(!0), ei(e).then(() => {
5428
- mt.set(e);
5450
+ ) : Mt.set(!0), Jn(e).then(() => {
5451
+ gt.set(e);
5429
5452
  }).finally(() => {
5430
5453
  clearTimeout(r), Mt.set(!1);
5431
5454
  });
5432
5455
  }
5433
- return mt.set(e);
5434
- }, xe = Zo(qo({}, mt), {
5435
- set: Yo
5436
- }), Bt = (e) => {
5456
+ return gt.set(e);
5457
+ }, Te = qo(zo({}, gt), {
5458
+ set: Zo
5459
+ }), Pt = (e) => {
5437
5460
  const t = /* @__PURE__ */ Object.create(null);
5438
5461
  return (n) => {
5439
5462
  const i = JSON.stringify(n);
5440
5463
  return i in t ? t[i] : t[i] = e(n);
5441
5464
  };
5442
5465
  };
5443
- var Qo = Object.defineProperty, bt = Object.getOwnPropertySymbols, ti = Object.prototype.hasOwnProperty, ri = Object.prototype.propertyIsEnumerable, Cr = (e, t, r) => t in e ? Qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hr = (e, t) => {
5466
+ var Yo = Object.defineProperty, yt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, ei = Object.prototype.propertyIsEnumerable, Rr = (e, t, r) => t in e ? Yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hr = (e, t) => {
5444
5467
  for (var r in t || (t = {}))
5445
- ti.call(t, r) && Cr(e, r, t[r]);
5446
- if (bt)
5447
- for (var r of bt(t))
5448
- ri.call(t, r) && Cr(e, r, t[r]);
5468
+ Kn.call(t, r) && Rr(e, r, t[r]);
5469
+ if (yt)
5470
+ for (var r of yt(t))
5471
+ ei.call(t, r) && Rr(e, r, t[r]);
5449
5472
  return e;
5450
- }, $e = (e, t) => {
5473
+ }, Fe = (e, t) => {
5451
5474
  var r = {};
5452
5475
  for (var n in e)
5453
- ti.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
5454
- if (e != null && bt)
5455
- for (var n of bt(e))
5456
- t.indexOf(n) < 0 && ri.call(e, n) && (r[n] = e[n]);
5476
+ Kn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
5477
+ if (e != null && yt)
5478
+ for (var n of yt(e))
5479
+ t.indexOf(n) < 0 && ei.call(e, n) && (r[n] = e[n]);
5457
5480
  return r;
5458
5481
  };
5459
- const Ze = (e, t) => {
5460
- const { formats: r } = Re();
5482
+ const Je = (e, t) => {
5483
+ const { formats: r } = Me();
5461
5484
  if (e in r && t in r[e])
5462
5485
  return r[e][t];
5463
5486
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
5464
- }, Jo = Bt(
5487
+ }, Qo = Pt(
5465
5488
  (e) => {
5466
- var t = e, { locale: r, format: n } = t, i = $e(t, ["locale", "format"]);
5489
+ var t = e, { locale: r, format: n } = t, i = Fe(t, ["locale", "format"]);
5467
5490
  if (r == null)
5468
5491
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
5469
- return n && (i = Ze("number", n)), new Intl.NumberFormat(r, i);
5492
+ return n && (i = Je("number", n)), new Intl.NumberFormat(r, i);
5470
5493
  }
5471
- ), Ko = Bt(
5494
+ ), Jo = Pt(
5472
5495
  (e) => {
5473
- var t = e, { locale: r, format: n } = t, i = $e(t, ["locale", "format"]);
5496
+ var t = e, { locale: r, format: n } = t, i = Fe(t, ["locale", "format"]);
5474
5497
  if (r == null)
5475
5498
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
5476
- return n ? i = Ze("date", n) : Object.keys(i).length === 0 && (i = Ze("date", "short")), new Intl.DateTimeFormat(r, i);
5499
+ return n ? i = Je("date", n) : Object.keys(i).length === 0 && (i = Je("date", "short")), new Intl.DateTimeFormat(r, i);
5477
5500
  }
5478
- ), ea = Bt(
5501
+ ), Ko = Pt(
5479
5502
  (e) => {
5480
- var t = e, { locale: r, format: n } = t, i = $e(t, ["locale", "format"]);
5503
+ var t = e, { locale: r, format: n } = t, i = Fe(t, ["locale", "format"]);
5481
5504
  if (r == null)
5482
5505
  throw new Error(
5483
5506
  '[svelte-i18n] A "locale" must be set to format time values'
5484
5507
  );
5485
- return n ? i = Ze("time", n) : Object.keys(i).length === 0 && (i = Ze("time", "short")), new Intl.DateTimeFormat(r, i);
5508
+ return n ? i = Je("time", n) : Object.keys(i).length === 0 && (i = Je("time", "short")), new Intl.DateTimeFormat(r, i);
5486
5509
  }
5487
- ), ta = (e = {}) => {
5510
+ ), ea = (e = {}) => {
5488
5511
  var t = e, {
5489
- locale: r = Te()
5490
- } = t, n = $e(t, [
5512
+ locale: r = He()
5513
+ } = t, n = Fe(t, [
5491
5514
  "locale"
5492
5515
  ]);
5493
- return Jo(hr({ locale: r }, n));
5494
- }, ra = (e = {}) => {
5516
+ return Qo(hr({ locale: r }, n));
5517
+ }, ta = (e = {}) => {
5495
5518
  var t = e, {
5496
- locale: r = Te()
5497
- } = t, n = $e(t, [
5519
+ locale: r = He()
5520
+ } = t, n = Fe(t, [
5498
5521
  "locale"
5499
5522
  ]);
5500
- return Ko(hr({ locale: r }, n));
5501
- }, na = (e = {}) => {
5523
+ return Jo(hr({ locale: r }, n));
5524
+ }, ra = (e = {}) => {
5502
5525
  var t = e, {
5503
- locale: r = Te()
5504
- } = t, n = $e(t, [
5526
+ locale: r = He()
5527
+ } = t, n = Fe(t, [
5505
5528
  "locale"
5506
5529
  ]);
5507
- return ea(hr({ locale: r }, n));
5508
- }, ia = Bt(
5530
+ return Ko(hr({ locale: r }, n));
5531
+ }, na = Pt(
5509
5532
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
5510
- (e, t = Te()) => new Oo(e, t, Re().formats, {
5511
- ignoreTag: Re().ignoreTag
5533
+ (e, t = He()) => new No(e, t, Me().formats, {
5534
+ ignoreTag: Me().ignoreTag
5512
5535
  })
5513
- ), sa = (e, t = {}) => {
5536
+ ), ia = (e, t = {}) => {
5514
5537
  var r, n, i, s;
5515
5538
  let o = t;
5516
5539
  typeof e == "object" && (o = e, e = o.id);
5517
5540
  const {
5518
5541
  values: a,
5519
- locale: l = Te(),
5542
+ locale: l = He(),
5520
5543
  default: u
5521
5544
  } = o;
5522
5545
  if (l == null)
5523
5546
  throw new Error(
5524
5547
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
5525
5548
  );
5526
- let f = Yn(e, l);
5549
+ let f = qn(e, l);
5527
5550
  if (!f)
5528
- f = (s = (i = (n = (r = Re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
5551
+ f = (s = (i = (n = (r = Me()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
5529
5552
  else if (typeof f != "string")
5530
5553
  return console.warn(
5531
5554
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -5534,7 +5557,7 @@ const Ze = (e, t) => {
5534
5557
  return f;
5535
5558
  let c = f;
5536
5559
  try {
5537
- c = ia(f, l).format(a);
5560
+ c = na(f, l).format(a);
5538
5561
  } catch (h) {
5539
5562
  h instanceof Error && console.warn(
5540
5563
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -5542,20 +5565,20 @@ const Ze = (e, t) => {
5542
5565
  );
5543
5566
  }
5544
5567
  return c;
5545
- }, oa = (e, t) => na(t).format(e), aa = (e, t) => ra(t).format(e), ua = (e, t) => ta(t).format(e), la = (e, t = Te()) => Yn(e, t), fa = Ce([xe, Me], () => sa);
5546
- Ce([xe], () => oa);
5547
- Ce([xe], () => aa);
5548
- Ce([xe], () => ua);
5549
- Ce([xe, Me], () => la);
5550
- function ha({ withLocale: e, translations: t }) {
5551
- xe.subscribe((r) => {
5552
- r == null && (Me.set(t), xe.set(e));
5568
+ }, sa = (e, t) => ra(t).format(e), oa = (e, t) => ta(t).format(e), aa = (e, t) => ea(t).format(e), ua = (e, t = He()) => qn(e, t), la = De([Te, Ue], () => ia);
5569
+ De([Te], () => sa);
5570
+ De([Te], () => oa);
5571
+ De([Te], () => aa);
5572
+ De([Te, Ue], () => ua);
5573
+ function fa({ withLocale: e, translations: t }) {
5574
+ Te.subscribe((r) => {
5575
+ r == null && (Ue.set(t), Te.set(e));
5553
5576
  });
5554
5577
  }
5555
- function ca(e, t) {
5556
- Jn(e, t);
5578
+ function ha(e, t) {
5579
+ Yn(e, t);
5557
5580
  }
5558
- const da = {
5581
+ const ca = {
5559
5582
  en: {
5560
5583
  tokens: "Tokens",
5561
5584
  tokenBalance: "Token Balance",
@@ -5567,36 +5590,76 @@ const da = {
5567
5590
  requestRakeback: "Rakeback Talebi"
5568
5591
  }
5569
5592
  };
5570
- var pa = /* @__PURE__ */ is('<div class="loyalty-points svelte-stu6z8"><div class="loyalty-points__content svelte-stu6z8"><div class="loyalty-points__value svelte-stu6z8"><span class="loyalty-points__amount svelte-stu6z8"> </span> <span class="loyalty-points__description svelte-stu6z8"> </span></div></div></div>');
5593
+ var da = /* @__PURE__ */ rs('<div class="loyalty-points svelte-x3lw9i"><div class="loyalty-points__content svelte-x3lw9i"><div class="loyalty-points__value svelte-x3lw9i"><span class="loyalty-points__amount svelte-x3lw9i"> </span> <span class="loyalty-points__description svelte-x3lw9i"> </span></div></div></div>');
5594
+ const pa = {
5595
+ hash: "svelte-x3lw9i",
5596
+ code: ".loyalty-points.svelte-x3lw9i {padding:11px 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-points__content.svelte-x3lw9i {display:flex;align-items:center;justify-content:space-between;gap:12px;}.loyalty-points__value.svelte-x3lw9i {display:flex;flex-direction:column;gap:6px;}.loyalty-points__amount.svelte-x3lw9i {color:var(--text-default, #FFFFFF);font-size:16px;font-weight:700;line-height:140%;}.loyalty-points__description.svelte-x3lw9i {color:var(--text-subtle, #DFE3E8);font-size:14px;font-weight:400;}"
5597
+ };
5571
5598
  function va(e, t) {
5572
- qr(t, !0);
5573
- const r = () => hs(fa, "$_", n), [n, i] = cs(), s = nt(t, "apiEndpoint", 3, ""), o = nt(t, "userSession", 3, ""), a = nt(t, "locale", 3, ""), l = nt(t, "onLevelLoaded", 3, (Y) => {
5599
+ Wr(t, !0), as(e, pa);
5600
+ const r = () => fs(la, "$_", n), [n, i] = hs(), s = it(t, "apiEndpoint", 7, ""), o = it(t, "userSession", 7, ""), a = it(t, "locale", 7, ""), l = it(t, "onLevelLoaded", 7, (A) => {
5574
5601
  });
5575
- ha({ withLocale: a(), translations: {} }), Object.entries(da).forEach(([Y, V]) => {
5576
- ca(Y, V);
5602
+ fa({ withLocale: a(), translations: {} }), Object.entries(ca).forEach(([A, me]) => {
5603
+ ha(A, me);
5577
5604
  });
5578
- const u = xs(() => ({
5605
+ const u = Es(() => ({
5579
5606
  apiEndpoint: s(),
5580
5607
  userSession: o(),
5581
5608
  locale: a(),
5582
5609
  loadLevels: !1,
5583
5610
  onLevelLoaded: l()
5584
- })), f = /* @__PURE__ */ Nt(() => u.spendableWalletTotal), c = /* @__PURE__ */ Nt(() => x(f)?.points ?? 0), h = /* @__PURE__ */ Nt(() => x(c).toLocaleString());
5585
- var d = pa(), p = Ue(d), v = Ue(p), E = Ue(v), Z = Ue(E);
5586
- De(E);
5587
- var D = Fi(E, 2), G = Ue(D, !0);
5588
- De(D), De(v), De(p), De(d), qi(
5589
- (Y, V) => {
5590
- xr(Z, `${x(h) ?? ""}
5591
- ${Y ?? ""}`), xr(G, V);
5611
+ })), f = /* @__PURE__ */ Ot(() => u.spendableWalletTotal), c = /* @__PURE__ */ Ot(() => y(f)?.points ?? 0), h = /* @__PURE__ */ Ot(() => y(c).toLocaleString());
5612
+ var d = {
5613
+ get apiEndpoint() {
5614
+ return s();
5615
+ },
5616
+ set apiEndpoint(A = "") {
5617
+ s(A), Ne();
5618
+ },
5619
+ get userSession() {
5620
+ return o();
5621
+ },
5622
+ set userSession(A = "") {
5623
+ o(A), Ne();
5624
+ },
5625
+ get locale() {
5626
+ return a();
5627
+ },
5628
+ set locale(A = "") {
5629
+ a(A), Ne();
5630
+ },
5631
+ get onLevelLoaded() {
5632
+ return l();
5633
+ },
5634
+ set onLevelLoaded(A = (me) => {
5635
+ }) {
5636
+ l(A), Ne();
5637
+ }
5638
+ }, p = da(), v = je(p), x = je(v), F = je(x), G = je(F);
5639
+ Ge(F);
5640
+ var D = Di(F, 2), _e = je(D, !0);
5641
+ Ge(D), Ge(x), Ge(v), Ge(p), Wi(
5642
+ (A, me) => {
5643
+ Er(G, `${y(h) ?? ""}
5644
+ ${A ?? ""}`), Er(_e, me);
5592
5645
  },
5593
5646
  [() => r()("tokens"), () => r()("tokenBalance")]
5594
- ), Pn(e, d), Zr(), i();
5595
- }
5596
- function _a(e) {
5597
- va(e, {});
5598
- }
5599
- customElements.define("loyalty-points-card", _s(_a, {}, [], [], !1));
5647
+ ), An(e, p);
5648
+ var K = zr(d);
5649
+ return i(), K;
5650
+ }
5651
+ customElements.define("loyalty-points-card", vs(
5652
+ va,
5653
+ {
5654
+ apiEndpoint: {},
5655
+ userSession: {},
5656
+ locale: {},
5657
+ onLevelLoaded: {}
5658
+ },
5659
+ [],
5660
+ [],
5661
+ !1
5662
+ ));
5600
5663
  export {
5601
- _a as L
5664
+ va as L
5602
5665
  };