@everymatrix/loyalty-rakeback 0.1.29 → 0.2.1

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.
@@ -5,50 +5,50 @@ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
5
5
  } });
6
6
  const is = "5";
7
7
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(is);
8
- const ss = 2, Pn = "[", kn = "[!", an = "[?", Cn = "]", nt = {}, j = Symbol("uninitialized"), Rn = !1;
9
- var as = Array.isArray, os = Array.prototype.indexOf, Wt = Array.prototype.includes, us = Array.from, Yt = Object.keys, it = Object.defineProperty, tt = Object.getOwnPropertyDescriptor, ls = Object.prototype, fs = Array.prototype, hs = Object.getPrototypeOf, on = Object.isExtensible;
10
- const $e = () => {
8
+ const ss = 2, Nn = "[", Pn = "[!", sn = "[?", kn = "]", Le = {}, j = Symbol("uninitialized"), Cn = !1;
9
+ var as = Array.isArray, os = Array.prototype.indexOf, Ot = Array.prototype.includes, us = Array.from, Yt = Object.keys, st = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, ls = Object.prototype, fs = Array.prototype, hs = Object.getPrototypeOf, an = Object.isExtensible;
10
+ const Ae = () => {
11
11
  };
12
- function In(e) {
12
+ function Rn(e) {
13
13
  for (var t = 0; t < e.length; t++)
14
14
  e[t]();
15
15
  }
16
- function Ln() {
16
+ function In() {
17
17
  var e, t, r = new Promise((n, i) => {
18
18
  e = n, t = i;
19
19
  });
20
20
  return { promise: r, resolve: e, reject: t };
21
21
  }
22
- const q = 2, st = 4, Nt = 8, Dn = 1 << 24, he = 16, ve = 32, xe = 64, xr = 128, jr = 256, pe = 512, V = 1024, L = 2048, ue = 4096, le = 8192, te = 16384, Ye = 32768, wr = 1 << 25, at = 65536, zt = 1 << 17, cs = 1 << 18, ze = 1 << 19, Un = 1 << 20, qt = 1 << 21, rt = 1 << 22, Ie = 1 << 23, hr = Symbol("$state"), Fn = Symbol("component"), ds = Symbol("legacy props"), ps = Symbol("attributes"), vs = Symbol("class"), ms = Symbol("style"), Sr = Symbol("text"), Pt = new class extends Error {
22
+ const Z = 2, at = 4, kt = 8, Ln = 1 << 24, he = 16, Ee = 32, $e = 64, wr = 128, Gr = 256, pe = 512, V = 1024, L = 2048, ue = 4096, le = 8192, q = 16384, ze = 32768, zt = 1 << 25, ot = 65536, qt = 1 << 17, cs = 1 << 18, qe = 1 << 19, Dn = 1 << 20, Zt = 1 << 21, nt = 1 << 22, Ie = 1 << 23, cr = Symbol("$state"), Un = Symbol("component"), ds = Symbol("legacy props"), ps = Symbol("attributes"), vs = Symbol("class"), ms = Symbol("style"), Sr = Symbol("text"), Ct = new class extends Error {
23
23
  name = "StaleReactionError";
24
24
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
25
- }(), rr = 3, nr = 8;
25
+ }(), nr = 3, ir = 8;
26
26
  function _s() {
27
27
  console.warn("https://svelte.dev/e/derived_inert");
28
28
  }
29
- function ir(e) {
29
+ function sr(e) {
30
30
  console.warn("https://svelte.dev/e/hydration_mismatch");
31
31
  }
32
32
  function bs() {
33
33
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
34
34
  }
35
35
  let D = !1;
36
- function et(e) {
36
+ function tt(e) {
37
37
  D = e;
38
38
  }
39
39
  let M;
40
- function me(e) {
40
+ function ve(e) {
41
41
  if (e === null)
42
- throw ir(), nt;
42
+ throw sr(), Le;
43
43
  return M = e;
44
44
  }
45
- function Vr() {
46
- return me(/* @__PURE__ */ Ne(M));
45
+ function jr() {
46
+ return ve(/* @__PURE__ */ Ne(M));
47
47
  }
48
48
  function Tr(e) {
49
49
  if (D) {
50
50
  if (/* @__PURE__ */ Ne(M) !== null)
51
- throw ir(), nt;
51
+ throw sr(), Le;
52
52
  M = e;
53
53
  }
54
54
  }
@@ -60,17 +60,17 @@ function gs(e = 1) {
60
60
  M = r;
61
61
  }
62
62
  }
63
- function Gn(e = !0) {
63
+ function Fn(e = !0) {
64
64
  for (var t = 0, r = M; ; ) {
65
- if (r.nodeType === nr) {
65
+ if (r.nodeType === ir) {
66
66
  var n = (
67
67
  /** @type {Comment} */
68
68
  r.data
69
69
  );
70
- if (n === Cn) {
70
+ if (n === kn) {
71
71
  if (t === 0) return r;
72
72
  t -= 1;
73
- } else (n === Pn || n === kn || // "[1", "[2", etc. for if blocks
73
+ } else (n === Nn || n === Pn || // "[1", "[2", etc. for if blocks
74
74
  n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
75
75
  }
76
76
  var i = (
@@ -80,9 +80,9 @@ function Gn(e = !0) {
80
80
  e && r.remove(), r = i;
81
81
  }
82
82
  }
83
- function ys(e) {
84
- if (!e || e.nodeType !== nr)
85
- throw ir(), nt;
83
+ function Gn(e) {
84
+ if (!e || e.nodeType !== ir)
85
+ throw sr(), Le;
86
86
  return (
87
87
  /** @type {Comment} */
88
88
  e.data
@@ -94,44 +94,44 @@ function jn(e) {
94
94
  function Vn(e, t) {
95
95
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
96
96
  }
97
- function Es(e) {
97
+ function ys(e) {
98
98
  return !Vn(e, this.v);
99
99
  }
100
- function xs() {
100
+ function Es() {
101
101
  throw new Error("https://svelte.dev/e/async_derived_orphan");
102
102
  }
103
- function ws(e) {
103
+ function xs(e) {
104
104
  throw new Error("https://svelte.dev/e/effect_in_teardown");
105
105
  }
106
- function Ss() {
106
+ function ws() {
107
107
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
108
108
  }
109
- function Ts(e) {
109
+ function Ss(e) {
110
110
  throw new Error("https://svelte.dev/e/effect_orphan");
111
111
  }
112
- function Hs() {
112
+ function Ts() {
113
113
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
114
114
  }
115
- function As() {
115
+ function Hs() {
116
116
  throw new Error("https://svelte.dev/e/hydration_failed");
117
117
  }
118
- function $s() {
118
+ function As() {
119
119
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
120
120
  }
121
- function Os() {
121
+ function $s() {
122
122
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
123
123
  }
124
- function Ms() {
124
+ function Os() {
125
125
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
126
126
  }
127
- function Bs() {
127
+ function Ms() {
128
128
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
129
129
  }
130
- let Ns = !1, re = null;
131
- function ot(e) {
130
+ let Bs = !1, re = null;
131
+ function ut(e) {
132
132
  re = e;
133
133
  }
134
- function Xr(e, t = !1, r) {
134
+ function Vr(e, t = !1, r) {
135
135
  re = {
136
136
  p: re,
137
137
  i: !1,
@@ -146,7 +146,7 @@ function Xr(e, t = !1, r) {
146
146
  l: null
147
147
  };
148
148
  }
149
- function Wr(e) {
149
+ function Xr(e) {
150
150
  var t = (
151
151
  /** @type {ComponentContext} */
152
152
  re
@@ -159,50 +159,50 @@ function Wr(e) {
159
159
  return e !== void 0 && (t.x = e), t.i = !0, re = t.p, Xn(e);
160
160
  }
161
161
  function Xn(e = {}) {
162
- return it(e, Fn, { value: !0 }), e;
162
+ return st(e, Un, { value: !0 }), e;
163
163
  }
164
164
  function Wn() {
165
165
  return !0;
166
166
  }
167
- let Ge = [];
167
+ let je = [];
168
168
  function Yn() {
169
- var e = Ge;
170
- Ge = [], In(e);
169
+ var e = je;
170
+ je = [], Rn(e);
171
171
  }
172
- function je(e) {
173
- if (Ge.length === 0 && !St) {
174
- var t = Ge;
172
+ function Ve(e) {
173
+ if (je.length === 0 && !Tt) {
174
+ var t = je;
175
175
  queueMicrotask(() => {
176
- t === Ge && Yn();
176
+ t === je && Yn();
177
177
  });
178
178
  }
179
- Ge.push(e);
179
+ je.push(e);
180
180
  }
181
- function Ps() {
182
- for (; Ge.length > 0; )
181
+ function Ns() {
182
+ for (; je.length > 0; )
183
183
  Yn();
184
184
  }
185
- const ks = -7169;
185
+ const Ps = -7169;
186
186
  function C(e, t) {
187
- e.f = e.f & ks | t;
187
+ e.f = e.f & Ps | t;
188
188
  }
189
- function Yr(e) {
189
+ function Wr(e) {
190
190
  e.f & pe || e.deps === null ? C(e, V) : C(e, ue);
191
191
  }
192
192
  function zn(e, t, r) {
193
193
  e.f & L ? t.add(e) : e.f & ue && r.add(e), C(e, V);
194
194
  }
195
- function sr(e) {
195
+ function ar(e) {
196
196
  var t = T, r = H;
197
- fe(null), we(null);
197
+ fe(null), xe(null);
198
198
  try {
199
199
  return e();
200
200
  } finally {
201
- fe(t), we(r);
201
+ fe(t), xe(r);
202
202
  }
203
203
  }
204
- function Cs(e, t, r, n) {
205
- const i = zr;
204
+ function ks(e, t, r, n) {
205
+ const i = Yr;
206
206
  var s = e.filter((d) => !d.settled), o = t.map(i);
207
207
  if (r.length === 0 && s.length === 0) {
208
208
  n(o);
@@ -211,16 +211,16 @@ function Cs(e, t, r, n) {
211
211
  var a = (
212
212
  /** @type {Effect} */
213
213
  H
214
- ), u = Rs(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((d) => d.promise)) : null;
214
+ ), u = Cs(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((d) => d.promise)) : null;
215
215
  function f(d) {
216
- if (!(a.f & te)) {
216
+ if (!(a.f & q)) {
217
217
  u();
218
218
  try {
219
219
  n([...o, ...d]);
220
220
  } catch (p) {
221
- be(p, a);
221
+ _e(p, a);
222
222
  }
223
- Zt();
223
+ Jt();
224
224
  }
225
225
  }
226
226
  var h = qn();
@@ -229,13 +229,17 @@ function Cs(e, t, r, n) {
229
229
  return;
230
230
  }
231
231
  function c() {
232
- Promise.all(r.map((d) => /* @__PURE__ */ Is(d))).then(f).catch((d) => be(d, a)).finally(h);
232
+ Promise.all(r.map((d) => /* @__PURE__ */ Rs(d))).then(f).catch((d) => _e(d, a)).finally(h);
233
233
  }
234
234
  l ? l.then(() => {
235
- u(), c(), Zt();
235
+ if (a.f & q) {
236
+ h();
237
+ return;
238
+ }
239
+ u(), c(), Jt();
236
240
  }) : c();
237
241
  }
238
- function Rs() {
242
+ function Cs() {
239
243
  var e = (
240
244
  /** @type {Effect} */
241
245
  H
@@ -244,11 +248,11 @@ function Rs() {
244
248
  $
245
249
  );
246
250
  return function(s = !0) {
247
- we(e), fe(t), ot(r), s && !(e.f & te) && (n?.activate(), n?.apply());
251
+ xe(e), fe(t), ut(r), s && !(e.f & q) && (n?.activate(), n?.apply());
248
252
  };
249
253
  }
250
- function Zt(e = !0) {
251
- we(null), fe(null), ot(null), e && $?.deactivate();
254
+ function Jt(e = !0) {
255
+ xe(null), fe(null), ut(null), e && $?.deactivate();
252
256
  }
253
257
  function qn() {
254
258
  var e = (
@@ -263,9 +267,9 @@ function qn() {
263
267
  };
264
268
  }
265
269
  // @__NO_SIDE_EFFECTS__
266
- function zr(e) {
267
- var t = q | L;
268
- return H !== null && (H.f |= ze), {
270
+ function Yr(e) {
271
+ var t = Z | L;
272
+ return H !== null && (H.f |= qe), {
269
273
  ctx: re,
270
274
  deps: null,
271
275
  effects: null,
@@ -283,59 +287,59 @@ function zr(e) {
283
287
  ac: null
284
288
  };
285
289
  }
286
- const Et = Symbol("obsolete");
290
+ const xt = Symbol("obsolete");
287
291
  // @__NO_SIDE_EFFECTS__
288
- function Is(e, t, r) {
292
+ function Rs(e, t, r) {
289
293
  let n = (
290
294
  /** @type {Effect | null} */
291
295
  H
292
296
  );
293
- n === null && xs();
297
+ n === null && Es();
294
298
  var i = (
295
299
  /** @type {Promise<V>} */
296
300
  /** @type {unknown} */
297
301
  void 0
298
- ), s = kt(
302
+ ), s = Rt(
299
303
  /** @type {V} */
300
304
  j
301
305
  ), o = !T, a = /* @__PURE__ */ new Set();
302
- return Ks(() => {
306
+ return Qs(() => {
303
307
  var u = (
304
308
  /** @type {Effect} */
305
309
  H
306
- ), l = Ln();
310
+ ), l = In();
307
311
  i = l.promise;
308
312
  try {
309
313
  Promise.resolve(e()).then(l.resolve, (d) => {
310
- d !== Pt && l.reject(d);
311
- }).finally(Zt);
314
+ d !== Ct && l.reject(d);
315
+ }).finally(Jt);
312
316
  } catch (d) {
313
- l.reject(d), Zt();
317
+ l.reject(d), Jt();
314
318
  }
315
319
  var f = (
316
320
  /** @type {Batch} */
317
321
  $
318
322
  );
319
323
  if (o) {
320
- if (u.f & Ye)
324
+ if (u.f & ze)
321
325
  var h = qn();
322
326
  if (
323
327
  // boundary can be null if the async derived is inside an $effect.root not connected to the component render tree
324
328
  n.b?.is_rendered()
325
329
  )
326
- f.async_deriveds.get(u)?.reject(Et);
330
+ f.async_deriveds.get(u)?.reject(xt);
327
331
  else
328
332
  for (const d of a.values())
329
- d.reject(Et);
333
+ d.reject(xt);
330
334
  a.add(l), f.async_deriveds.set(u, l);
331
335
  }
332
336
  const c = (d, p = void 0) => {
333
- h?.(), a.delete(l), p !== Et && (f.activate(), p ? (s.f |= Ie, Qt(s, p)) : (s.f & Ie && (s.f ^= Ie), Qt(s, d)), f.deactivate());
337
+ h?.(), a.delete(l), p !== xt && (f.activate(), p ? (s.f |= Ie, Kt(s, p)) : (s.f & Ie && (s.f ^= Ie), Kt(s, d)), f.deactivate());
334
338
  };
335
339
  l.promise.then(c, (d) => c(null, d || "unknown"));
336
340
  }), ui(() => {
337
341
  for (const u of a)
338
- u.reject(Et);
342
+ u.reject(xt);
339
343
  }), new Promise((u) => {
340
344
  function l(f) {
341
345
  function h() {
@@ -347,11 +351,11 @@ function Is(e, t, r) {
347
351
  });
348
352
  }
349
353
  // @__NO_SIDE_EFFECTS__
350
- function It(e) {
351
- const t = /* @__PURE__ */ zr(e);
354
+ function Dt(e) {
355
+ const t = /* @__PURE__ */ Yr(e);
352
356
  return _i(t), t;
353
357
  }
354
- function Ls(e) {
358
+ function Is(e) {
355
359
  var t = e.effects;
356
360
  if (t !== null) {
357
361
  e.effects = null;
@@ -362,44 +366,44 @@ function Ls(e) {
362
366
  );
363
367
  }
364
368
  }
365
- function qr(e) {
369
+ function zr(e) {
366
370
  var t, r = H, n = e.parent;
367
371
  if (!Be && n !== null && e.v !== j && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
368
- n.f & (te | le))
372
+ n.f & (q | le))
369
373
  return _s(), e.v;
370
- we(n);
374
+ xe(n);
371
375
  try {
372
- Ls(e), t = Ei(e);
376
+ Is(e), t = Ei(e);
373
377
  } finally {
374
- we(r);
378
+ xe(r);
375
379
  }
376
380
  return t;
377
381
  }
378
382
  function Zn(e) {
379
- var t = qr(e);
380
- if (!e.equals(t) && (e.wv = gi(), (!$?.is_fork || e.deps === null) && ($ !== null ? ($.capture(e, t, !0), Hr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
383
+ var t = zr(e);
384
+ if (!e.equals(t) && (e.wv = gi(), (!$?.is_fork || e.deps === null) && ($ !== null ? ($.capture(e, t, !0), it?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
381
385
  C(e, V);
382
386
  return;
383
387
  }
384
- Be || (ce !== null ? (en() || $?.is_fork) && ce.set(e, t) : Yr(e));
388
+ Be || (ce !== null ? (Kr() || $?.is_fork) && ce.set(e, t) : Wr(e));
385
389
  }
386
- function Ds(e) {
390
+ function Ls(e) {
387
391
  if (e.effects !== null)
388
392
  for (const t of e.effects)
389
- (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && sr(() => {
390
- t.ac.abort(Pt), t.ac = null;
391
- }), t.fn !== null && (t.teardown = $e), $t(t, 0), tn(t));
393
+ (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && ar(() => {
394
+ t.ac.abort(Ct), t.ac = null;
395
+ }), t.fn !== null && (t.teardown = Ae), Mt(t, 0), en(t));
392
396
  }
393
397
  function Jn(e) {
394
398
  if (e.effects !== null)
395
399
  for (const t of e.effects)
396
- t.teardown && t.fn !== null && lt(t);
400
+ t.teardown && t.fn !== null && ft(t);
397
401
  }
398
- let cr = null, Qe = null, $ = null, Hr = null, ce = null, Ar = null, St = !1, dr = !1, Tt = null, Ut = null;
399
- var un = 0;
400
- let Us = 1;
402
+ let dr = null, Ke = null, $ = null, it = null, ce = null, Hr = null, Tt = !1, pr = !1, Ht = null, Gt = null;
403
+ var on = 0;
404
+ let Ds = 1;
401
405
  class Oe {
402
- id = Us++;
406
+ id = Ds++;
403
407
  /** True as soon as `#process` was called */
404
408
  #e = !1;
405
409
  linked = !0;
@@ -464,7 +468,7 @@ class Oe {
464
468
  * Effects created while this batch was active.
465
469
  * @type {Effect[]}
466
470
  */
467
- #p = [];
471
+ #m = [];
468
472
  /**
469
473
  * Deferred effects (which run after async work has completed) that are DIRTY
470
474
  * @type {Set<Effect>}
@@ -487,13 +491,13 @@ class Oe {
487
491
  * Inverse of #skipped_branches which we need to tell prior batches to unskip them when committing
488
492
  * @type {Set<Effect>}
489
493
  */
490
- #m = /* @__PURE__ */ new Set();
494
+ #_ = /* @__PURE__ */ new Set();
491
495
  is_fork = !1;
492
496
  #h = !1;
493
497
  constructor() {
494
- Qe === null ? cr = Qe = this : (Qe.#r = this, this.#t = Qe), Qe = this;
498
+ Ke === null ? dr = Ke = this : (Ke.#r = this, this.#t = Ke), Ke = this;
495
499
  }
496
- #g() {
500
+ #E() {
497
501
  if (this.is_fork) return !0;
498
502
  for (const n of this.#n.keys()) {
499
503
  for (var t = n, r = !1; t.parent !== null; ) {
@@ -513,7 +517,7 @@ class Oe {
513
517
  * @param {Effect} effect
514
518
  */
515
519
  skip_effect(t) {
516
- this.#c.has(t) || this.#c.set(t, { d: [], m: [] }), this.#m.delete(t);
520
+ this.#c.has(t) || this.#c.set(t, { d: [], m: [] }), this.#_.delete(t);
517
521
  }
518
522
  /**
519
523
  * Remove an effect from the #skipped_branches map and reschedule
@@ -530,7 +534,7 @@ class Oe {
530
534
  for (i of n.m)
531
535
  C(i, ue), r(i);
532
536
  }
533
- this.#m.add(t);
537
+ this.#_.add(t);
534
538
  }
535
539
  /**
536
540
  * Convert the effects that were scheduled in this batch into the root effects
@@ -541,14 +545,14 @@ class Oe {
541
545
  * a single traversal — scheduling into other batches can never observe them
542
546
  * @returns {Effect[]}
543
547
  */
544
- #y() {
548
+ #x() {
545
549
  var t = [];
546
550
  for (const s of this.#s)
547
- if (!(s.f & te || !(s.f & (L | ue)))) {
551
+ if (!(s.f & q || !(s.f & (L | ue)))) {
548
552
  for (var r = s, n = !1; r.parent !== null; ) {
549
553
  r = r.parent;
550
554
  var i = r.f;
551
- if (i & (xe | ve)) {
555
+ if (i & ($e | Ee)) {
552
556
  if (!(i & V)) {
553
557
  n = !0;
554
558
  break;
@@ -560,20 +564,20 @@ class Oe {
560
564
  }
561
565
  return this.#s = [], t;
562
566
  }
563
- #_() {
567
+ #b() {
564
568
  this.#e = !0;
565
569
  for (const a of this.#l)
566
570
  this.#f.delete(a), C(a, L), this.schedule(a);
567
571
  for (const a of this.#f)
568
572
  C(a, ue), this.schedule(a);
569
573
  this.apply();
570
- for (var t = Tt = [], r = [], n = Ut = []; this.#s.length > 0; ) {
571
- un++ > 1e3 && (this.#v(), Fs());
572
- for (const a of this.#y())
574
+ for (var t = Ht = [], r = [], n = Gt = []; this.#s.length > 0; ) {
575
+ on++ > 1e3 && (this.#v(), Us());
576
+ for (const a of this.#x())
573
577
  try {
574
- this.#b(a, t, r);
578
+ this.#g(a, t, r);
575
579
  } catch (u) {
576
- throw ei(a), this.#g() || this.discard(), u;
580
+ throw ei(a), this.#E() || this.discard(), u;
577
581
  }
578
582
  }
579
583
  if ($ = null, n.length > 0) {
@@ -581,22 +585,22 @@ class Oe {
581
585
  for (const a of n)
582
586
  i.schedule(a);
583
587
  }
584
- if (Tt = null, Ut = null, this.#g()) {
585
- this.#d(r), this.#d(t);
588
+ if (Ht = null, Gt = null, this.#E()) {
589
+ this.#p(r), this.#p(t);
586
590
  for (const [a, u] of this.#c)
587
591
  Kn(a, u);
588
592
  n.length > 0 && /** @type {unknown} */
589
- $.#_();
593
+ $.#b();
590
594
  return;
591
595
  }
592
- const s = this.#w();
596
+ const s = this.#d();
593
597
  if (s) {
594
- this.#d(r), this.#d(t), s.#E(this);
598
+ this.#p(r), this.#p(t), s.#w(this);
595
599
  return;
596
600
  }
597
601
  this.#l.clear(), this.#f.clear();
598
602
  for (const a of this.#u) a(this);
599
- this.#u.clear(), Hr = this, ln(r), ln(t), Hr = null, this.#o?.resolve();
603
+ this.#u.clear(), it = this, un(r), un(t), it = null, this.#o?.resolve();
600
604
  var o = (
601
605
  /** @type {Batch | null} */
602
606
  /** @type {unknown} */
@@ -609,7 +613,7 @@ class Oe {
609
613
  this.#s = [];
610
614
  } else
611
615
  o = this;
612
- o !== null && (ye.clear(), o.#_());
616
+ o !== null && (ge.clear(), o.#b());
613
617
  }
614
618
  /**
615
619
  * Traverse the effect tree, executing effects or stashing
@@ -618,12 +622,12 @@ class Oe {
618
622
  * @param {Effect[]} effects
619
623
  * @param {Effect[]} render_effects
620
624
  */
621
- #b(t, r, n) {
625
+ #g(t, r, n) {
622
626
  t.f ^= V;
623
627
  for (var i = t.first; i !== null; ) {
624
- var s = i.f, o = (s & (ve | xe)) !== 0, a = o && (s & V) !== 0, u = a || (s & le) !== 0 || this.#c.has(i);
628
+ var s = i.f, o = (s & (Ee | $e)) !== 0, a = o && (s & V) !== 0, u = a || (s & le) !== 0 || this.#c.has(i);
625
629
  if (!u && i.fn !== null) {
626
- o ? i.f ^= V : s & st ? r.push(i) : Ct(i) && (s & he && this.#f.add(i), lt(i));
630
+ o ? i.f ^= V : s & at ? r.push(i) : It(i) && (s & he && this.#f.add(i), ft(i));
627
631
  var l = i.first;
628
632
  if (l !== null) {
629
633
  i = l;
@@ -640,7 +644,7 @@ class Oe {
640
644
  }
641
645
  }
642
646
  }
643
- #w() {
647
+ #d() {
644
648
  for (var t = this.#t; t !== null; ) {
645
649
  if (!t.is_fork) {
646
650
  for (const [r, [, n]] of this.current)
@@ -654,7 +658,7 @@ class Oe {
654
658
  /**
655
659
  * @param {Batch} batch
656
660
  */
657
- #E(t) {
661
+ #w(t) {
658
662
  for (const [n, i] of t.current)
659
663
  !this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
660
664
  for (const [n, i] of t.async_deriveds) {
@@ -664,10 +668,10 @@ class Oe {
664
668
  t.async_deriveds.clear(), this.transfer_effects(t.#l, t.#f);
665
669
  const r = (n) => {
666
670
  var i = n.reactions;
667
- if (i !== null && !(n.f & q && !(n.f & (L | ue))))
671
+ if (i !== null && !(n.f & Z && !(n.f & (L | ue))))
668
672
  for (const a of i) {
669
673
  var s = a.f;
670
- if (s & q)
674
+ if (s & Z)
671
675
  r(
672
676
  /** @type {Derived} */
673
677
  a
@@ -677,18 +681,18 @@ class Oe {
677
681
  /** @type {Effect} */
678
682
  a
679
683
  );
680
- s & (rt | he) && !this.async_deriveds.has(o) && (this.#f.delete(o), C(o, L), this.schedule(o));
684
+ s & (nt | he) && !this.async_deriveds.has(o) && (this.#f.delete(o), C(o, L), this.schedule(o));
681
685
  }
682
686
  }
683
687
  };
684
688
  for (const n of this.current.keys())
685
689
  r(n);
686
- this.oncommit(() => t.discard()), t.#v(), $ = this, this.#_();
690
+ this.oncommit(() => t.discard()), t.#v(), $ = this, this.#b();
687
691
  }
688
692
  /**
689
693
  * @param {Effect[]} effects
690
694
  */
691
- #d(t) {
695
+ #p(t) {
692
696
  for (var r = 0; r < t.length; r += 1)
693
697
  zn(t[r], this.#l, this.#f);
694
698
  }
@@ -710,26 +714,26 @@ class Oe {
710
714
  }
711
715
  flush() {
712
716
  try {
713
- dr = !0, $ = this, this.#_();
717
+ pr = !0, $ = this, this.#b();
714
718
  } finally {
715
- un = 0, Ar = null, Tt = null, Ut = null, dr = !1, $ = null, ce = null, ye.clear();
719
+ on = 0, Hr = null, Ht = null, Gt = null, pr = !1, $ = null, ce = null, ge.clear();
716
720
  }
717
721
  }
718
722
  discard() {
719
723
  for (const t of this.#i) t(this);
720
724
  this.#i.clear();
721
725
  for (const t of this.async_deriveds.values())
722
- t.reject(Et);
726
+ t.reject(xt);
723
727
  this.#v(), this.#o?.resolve();
724
728
  }
725
729
  /**
726
730
  * @param {Effect} effect
727
731
  */
728
732
  register_created_effect(t) {
729
- this.#p.push(t);
733
+ this.#m.push(t);
730
734
  }
731
- #x() {
732
- for (let h = cr; h !== null; h = h.#r) {
735
+ #y() {
736
+ for (let h = dr; h !== null; h = h.#r) {
733
737
  var t = h.id < this.id, r = [];
734
738
  for (const [c, [d, p]] of this.current) {
735
739
  if (h.current.has(c)) {
@@ -759,9 +763,9 @@ class Oe {
759
763
  t && h.discard();
760
764
  else if (r.length > 0) {
761
765
  if (t)
762
- for (const c of this.#m)
766
+ for (const c of this.#_)
763
767
  h.unskip_effect(c, (d) => {
764
- d.f & (he | rt) ? h.schedule(d) : h.#d([d]);
768
+ d.f & (he | nt) ? h.schedule(d) : h.#p([d]);
765
769
  });
766
770
  h.activate();
767
771
  var o = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
@@ -773,12 +777,12 @@ class Oe {
773
777
  return p ? p[0] !== d[0] || p[1] !== d[1] : !0;
774
778
  }).map(([c]) => c);
775
779
  if (l.length > 0)
776
- for (const c of this.#p)
777
- !(c.f & (te | le | zt)) && Zr(c, l, a) && (c.f & (rt | he) ? (C(c, L), h.schedule(c)) : h.#l.add(c));
780
+ for (const c of this.#m)
781
+ !(c.f & (q | le | qt)) && qr(c, l, a) && (c.f & (nt | he) ? (C(c, L), h.schedule(c)) : h.#l.add(c));
778
782
  if (h.#s.length > 0 && !h.#h) {
779
783
  h.apply();
780
- for (var f of h.#y())
781
- h.#b(f, [], []);
784
+ for (var f of h.#x())
785
+ h.#g(f, [], []);
782
786
  }
783
787
  h.deactivate();
784
788
  }
@@ -804,7 +808,7 @@ class Oe {
804
808
  let n = this.#n.get(r) ?? 0;
805
809
  n === 1 ? this.#n.delete(r) : this.#n.set(r, n - 1);
806
810
  }
807
- this.#h || (this.#h = !0, je(() => {
811
+ this.#h || (this.#h = !0, Ve(() => {
808
812
  this.#h = !1, this.linked && this.flush();
809
813
  }));
810
814
  }
@@ -828,12 +832,12 @@ class Oe {
828
832
  this.#i.add(t);
829
833
  }
830
834
  settled() {
831
- return (this.#o ??= Ln()).promise;
835
+ return (this.#o ??= In()).promise;
832
836
  }
833
837
  static ensure() {
834
838
  if ($ === null) {
835
839
  const t = $ = new Oe();
836
- !dr && !St && je(() => {
840
+ !pr && !Tt && Ve(() => {
837
841
  t.#e || t.flush();
838
842
  });
839
843
  }
@@ -850,7 +854,7 @@ class Oe {
850
854
  * @param {Effect} effect
851
855
  */
852
856
  schedule(t) {
853
- if (Ar = t, t.b?.is_pending && t.f & (st | Nt | Dn) && !(t.f & Ye)) {
857
+ if (Hr = t, t.b?.is_pending && t.f & (at | kt | Ln) && !(t.f & ze)) {
854
858
  t.b.defer_effect(t);
855
859
  return;
856
860
  }
@@ -859,82 +863,82 @@ class Oe {
859
863
  #v() {
860
864
  if (this.linked) {
861
865
  var t = this.#t, r = this.#r;
862
- t === null ? cr = r : t.#r = r, r === null ? Qe = t : r.#t = t, this.linked = !1;
866
+ t === null ? dr = r : t.#r = r, r === null ? Ke = t : r.#t = t, this.linked = !1;
863
867
  }
864
868
  }
865
869
  }
866
- function Ae(e) {
867
- var t = St;
868
- St = !0;
870
+ function He(e) {
871
+ var t = Tt, r = it;
872
+ it = null, Tt = !0;
869
873
  try {
870
- for (var r; ; ) {
871
- if (Ps(), $ === null)
874
+ for (var n; ; ) {
875
+ if (Ns(), $ === null)
872
876
  return (
873
877
  /** @type {T} */
874
- r
878
+ n
875
879
  );
876
880
  $.flush();
877
881
  }
878
882
  } finally {
879
- St = t;
883
+ Tt = t, it = r;
880
884
  }
881
885
  }
882
- function Fs() {
886
+ function Us() {
883
887
  try {
884
- Hs();
888
+ Ts();
885
889
  } catch (e) {
886
- be(e, Ar);
890
+ _e(e, Hr);
887
891
  }
888
892
  }
889
- let Te = null;
890
- function ln(e) {
893
+ let Se = null;
894
+ function un(e) {
891
895
  var t = e.length;
892
896
  if (t !== 0) {
893
897
  for (var r = 0; r < t; ) {
894
898
  var n = e[r++];
895
- if (!(n.f & (te | le)) && Ct(n) && (Te = /* @__PURE__ */ new Set(), lt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && di(n), Te?.size > 0)) {
896
- ye.clear();
897
- for (const i of Te) {
898
- if (i.f & (te | le)) continue;
899
+ if (!(n.f & (q | le)) && It(n) && (Se = /* @__PURE__ */ new Set(), ft(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && di(n), Se?.size > 0)) {
900
+ ge.clear();
901
+ for (const i of Se) {
902
+ if (i.f & (q | le)) continue;
899
903
  const s = [i];
900
904
  let o = i.parent;
901
905
  for (; o !== null; )
902
- Te.has(o) && (Te.delete(o), s.push(o)), o = o.parent;
906
+ Se.has(o) && (Se.delete(o), s.push(o)), o = o.parent;
903
907
  for (let a = s.length - 1; a >= 0; a--) {
904
908
  const u = s[a];
905
- u.f & (te | le) || lt(u);
909
+ u.f & (q | le) || ft(u);
906
910
  }
907
911
  }
908
- Te.clear();
912
+ Se.clear();
909
913
  }
910
914
  }
911
- Te = null;
915
+ Se = null;
912
916
  }
913
917
  }
914
918
  function Qn(e, t, r, n) {
915
919
  if (!r.has(e) && (r.add(e), e.reactions !== null))
916
920
  for (const i of e.reactions) {
917
921
  const s = i.f;
918
- s & q ? Qn(
922
+ s & Z ? Qn(
919
923
  /** @type {Derived} */
920
924
  i,
921
925
  t,
922
926
  r,
923
927
  n
924
- ) : s & (rt | he) && !(s & L) && Zr(i, t, n) && (C(i, L), Jr(
928
+ ) : s & (nt | he) && !(s & L) && qr(i, t, n) && (C(i, L), Zr(
925
929
  /** @type {Effect} */
926
930
  i
927
931
  ));
928
932
  }
929
933
  }
930
- function Zr(e, t, r) {
934
+ function qr(e, t, r) {
931
935
  const n = r.get(e);
932
936
  if (n !== void 0) return n;
933
937
  if (e.deps !== null)
934
938
  for (const i of e.deps) {
935
- if (Wt.call(t, i))
939
+ if (Ot.call(t, i))
936
940
  return !0;
937
- if (i.f & q && Zr(
941
+ if (i.f & Z && qr(
938
942
  /** @type {Derived} */
939
943
  i,
940
944
  t,
@@ -948,11 +952,11 @@ function Zr(e, t, r) {
948
952
  }
949
953
  return r.set(e, !1), !1;
950
954
  }
951
- function Jr(e) {
955
+ function Zr(e) {
952
956
  $.schedule(e);
953
957
  }
954
958
  function Kn(e, t) {
955
- if (!(e.f & ve && e.f & V)) {
959
+ if (!(e.f & Ee && e.f & V)) {
956
960
  e.f & L ? t.d.push(e) : e.f & ue && t.m.push(e), C(e, V);
957
961
  for (var r = e.first; r !== null; )
958
962
  Kn(r, t), r = r.next;
@@ -963,10 +967,10 @@ function ei(e) {
963
967
  for (var t = e.first; t !== null; )
964
968
  ei(t), t = t.next;
965
969
  }
966
- let Jt = /* @__PURE__ */ new Set();
967
- const ye = /* @__PURE__ */ new Map();
970
+ let Qt = /* @__PURE__ */ new Set();
971
+ const ge = /* @__PURE__ */ new Map();
968
972
  let ti = !1;
969
- function kt(e, t) {
973
+ function Rt(e, t) {
970
974
  var r = {
971
975
  f: 0,
972
976
  // TODO ideally we could skip this altogether, but it causes type errors
@@ -980,70 +984,70 @@ function kt(e, t) {
980
984
  }
981
985
  // @__NO_SIDE_EFFECTS__
982
986
  function oe(e, t) {
983
- const r = kt(e);
987
+ const r = Rt(e);
984
988
  return _i(r), r;
985
989
  }
986
990
  // @__NO_SIDE_EFFECTS__
987
991
  function ri(e, t = !1, r = !0) {
988
- const n = kt(e);
989
- return t || (n.equals = Es), n;
992
+ const n = Rt(e);
993
+ return t || (n.equals = ys), n;
990
994
  }
991
995
  function Y(e, t, r = !1) {
992
996
  T !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
993
997
  // to ensure we error if state is set inside an inspect effect
994
- (!de || T.f & zt) && Wn() && T.f & (q | he | rt | zt) && (Ee === null || !Ee.has(e)) && Ms();
995
- let n = r ? xt(t) : t;
996
- return Qt(e, n, Ut);
998
+ (!de || T.f & qt) && Wn() && T.f & (Z | he | nt | qt) && (ye === null || !ye.has(e)) && Os();
999
+ let n = r ? wt(t) : t;
1000
+ return Kt(e, n, Gt);
997
1001
  }
998
- var Fe = null, $r = 0;
999
- function Qt(e, t, r = null) {
1002
+ var Ge = null, Ar = 0;
1003
+ function Kt(e, t, r = null) {
1000
1004
  if (!e.equals(t)) {
1001
- Be ? ye.set(e, t) : ye.has(e) || ye.set(e, e.v);
1005
+ Be ? ge.set(e, t) : ge.has(e) || ge.set(e, e.v);
1002
1006
  var n = Oe.ensure();
1003
- if (n.capture(e, t), e.f & q) {
1007
+ if (n.capture(e, t), e.f & Z) {
1004
1008
  const i = (
1005
1009
  /** @type {Derived} */
1006
1010
  e
1007
1011
  );
1008
- e.f & L && qr(i), ce === null && Yr(i);
1012
+ e.f & L && zr(i), ce === null && Wr(i);
1009
1013
  }
1010
- e.wv = gi(), Fe = null, $r = 0, ni(e, L, r), Fe = null, H !== null && H.f & V && !(H.f & (ve | xe)) && (ae === null ? na([e]) : ae.push(e)), !n.is_fork && Jt.size > 0 && !ti && Gs();
1014
+ e.wv = gi(), Ge = null, Ar = 0, ni(e, L, r), Ge = null, H !== null && H.f & V && !(H.f & (Ee | $e)) && (ae === null ? ra([e]) : ae.push(e)), !n.is_fork && Qt.size > 0 && !ti && Fs();
1011
1015
  }
1012
1016
  return t;
1013
1017
  }
1014
- function Gs() {
1018
+ function Fs() {
1015
1019
  ti = !1;
1016
- for (const e of Jt) {
1020
+ for (const e of Qt) {
1017
1021
  e.f & V && C(e, ue);
1018
1022
  let t;
1019
1023
  try {
1020
- t = Ct(e);
1024
+ t = It(e);
1021
1025
  } catch {
1022
1026
  t = !0;
1023
1027
  }
1024
- t && lt(e);
1028
+ t && ft(e);
1025
1029
  }
1026
- Jt.clear();
1030
+ Qt.clear();
1027
1031
  }
1028
- function Ht(e) {
1032
+ function At(e) {
1029
1033
  Y(e, e.v + 1);
1030
1034
  }
1031
1035
  function ni(e, t, r) {
1032
1036
  var n = e.reactions;
1033
1037
  if (n !== null) {
1034
1038
  var i = n.length;
1035
- if ($r += i, $r > 1e5 && Fe === null && (Fe = /* @__PURE__ */ new Set()), Fe !== null) {
1036
- if (Fe.has(e)) return;
1037
- Fe.add(e);
1039
+ if (Ar += i, Ar > 1e5 && Ge === null && (Ge = /* @__PURE__ */ new Set()), Ge !== null) {
1040
+ if (Ge.has(e)) return;
1041
+ Ge.add(e);
1038
1042
  }
1039
1043
  for (var s = 0; s < i; s++) {
1040
1044
  var o = n[s], a = o.f, u = (a & L) === 0;
1041
- if (u && C(o, t), a & zt)
1042
- Jt.add(
1045
+ if (u && C(o, t), a & qt)
1046
+ Qt.add(
1043
1047
  /** @type {Effect} */
1044
1048
  o
1045
1049
  );
1046
- else if (a & q) {
1050
+ else if (a & Z) {
1047
1051
  var l = (
1048
1052
  /** @type {Derived} */
1049
1053
  o
@@ -1054,24 +1058,24 @@ function ni(e, t, r) {
1054
1058
  /** @type {Effect} */
1055
1059
  o
1056
1060
  );
1057
- a & he && Te !== null && Te.add(f), r !== null ? r.push(f) : Jr(f);
1061
+ a & he && Se !== null && Se.add(f), r !== null ? r.push(f) : Zr(f);
1058
1062
  }
1059
1063
  }
1060
1064
  }
1061
1065
  }
1062
- function xt(e) {
1063
- if (typeof e != "object" || e === null || hr in e || Fn in e)
1066
+ function wt(e) {
1067
+ if (typeof e != "object" || e === null || cr in e || Un in e)
1064
1068
  return e;
1065
1069
  const t = hs(e);
1066
1070
  if (t !== ls && t !== fs)
1067
1071
  return e;
1068
- var r = /* @__PURE__ */ new Map(), n = as(e), i = /* @__PURE__ */ oe(0), s = Xe, o = (a) => {
1069
- if (Xe === s)
1072
+ var r = /* @__PURE__ */ new Map(), n = as(e), i = /* @__PURE__ */ oe(0), s = We, o = (a) => {
1073
+ if (We === s)
1070
1074
  return a();
1071
- var u = T, l = Xe;
1072
- fe(null), vn(s);
1075
+ var u = T, l = We;
1076
+ fe(null), pn(s);
1073
1077
  var f = a();
1074
- return fe(u), vn(l), f;
1078
+ return fe(u), pn(l), f;
1075
1079
  };
1076
1080
  return n && r.set("length", /* @__PURE__ */ oe(
1077
1081
  /** @type {any[]} */
@@ -1081,7 +1085,7 @@ function xt(e) {
1081
1085
  e,
1082
1086
  {
1083
1087
  defineProperty(a, u, l) {
1084
- (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && $s();
1088
+ (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && As();
1085
1089
  var f = r.get(u);
1086
1090
  return f === void 0 ? o(() => {
1087
1091
  var h = /* @__PURE__ */ oe(l.value);
@@ -1093,18 +1097,18 @@ function xt(e) {
1093
1097
  if (l === void 0) {
1094
1098
  if (u in a) {
1095
1099
  const f = o(() => /* @__PURE__ */ oe(j));
1096
- r.set(u, f), Ht(i);
1100
+ r.set(u, f), At(i);
1097
1101
  }
1098
1102
  } else
1099
- Y(l, j), Ht(i);
1103
+ Y(l, j), At(i);
1100
1104
  return !0;
1101
1105
  },
1102
1106
  get(a, u, l) {
1103
- if (u === hr)
1107
+ if (u === cr)
1104
1108
  return e;
1105
1109
  var f = r.get(u), h = u in a;
1106
- if (f === void 0 && (!h || tt(a, u)?.writable) && (f = o(() => {
1107
- var d = xt(h ? a[u] : j), p = /* @__PURE__ */ oe(d);
1110
+ if (f === void 0 && (!h || rt(a, u)?.writable) && (f = o(() => {
1111
+ var d = wt(h ? a[u] : j), p = /* @__PURE__ */ oe(d);
1108
1112
  return p;
1109
1113
  }), r.set(u, f)), f !== void 0) {
1110
1114
  var c = O(f);
@@ -1132,12 +1136,12 @@ function xt(e) {
1132
1136
  return l;
1133
1137
  },
1134
1138
  has(a, u) {
1135
- if (u === hr)
1139
+ if (u === cr)
1136
1140
  return !0;
1137
1141
  var l = r.get(u), f = l !== void 0 && l.v !== j || Reflect.has(a, u);
1138
- if (l !== void 0 || H !== null && (!f || tt(a, u)?.writable)) {
1142
+ if (l !== void 0 || H !== null && (!f || rt(a, u)?.writable)) {
1139
1143
  l === void 0 && (l = o(() => {
1140
- var c = f ? xt(a[u]) : j, d = /* @__PURE__ */ oe(c);
1144
+ var c = f ? wt(a[u]) : j, d = /* @__PURE__ */ oe(c);
1141
1145
  return d;
1142
1146
  }), r.set(u, l));
1143
1147
  var h = O(l);
@@ -1155,10 +1159,10 @@ function xt(e) {
1155
1159
  p !== void 0 ? Y(p, j) : d in a && (p = o(() => /* @__PURE__ */ oe(j)), r.set(d + "", p));
1156
1160
  }
1157
1161
  if (h === void 0)
1158
- (!c || tt(a, u)?.writable) && (h = o(() => /* @__PURE__ */ oe(void 0)), Y(h, xt(l)), r.set(u, h));
1162
+ (!c || rt(a, u)?.writable) && (h = o(() => /* @__PURE__ */ oe(void 0)), Y(h, wt(l)), r.set(u, h));
1159
1163
  else {
1160
1164
  c = h.v !== j;
1161
- var w = o(() => xt(l));
1165
+ var w = o(() => wt(l));
1162
1166
  Y(h, w);
1163
1167
  }
1164
1168
  var P = Reflect.getOwnPropertyDescriptor(a, u);
@@ -1170,7 +1174,7 @@ function xt(e) {
1170
1174
  ), X = Number(u);
1171
1175
  Number.isInteger(X) && X >= G.v && Y(G, X + 1);
1172
1176
  }
1173
- Ht(i);
1177
+ At(i);
1174
1178
  }
1175
1179
  return !0;
1176
1180
  },
@@ -1185,24 +1189,24 @@ function xt(e) {
1185
1189
  return u;
1186
1190
  },
1187
1191
  setPrototypeOf() {
1188
- Os();
1192
+ $s();
1189
1193
  }
1190
1194
  }
1191
1195
  );
1192
1196
  }
1193
- var fn, ii, si, ai;
1194
- function Or() {
1195
- if (fn === void 0) {
1196
- fn = window, ii = /Firefox/.test(navigator.userAgent);
1197
+ var ln, ii, si, ai;
1198
+ function $r() {
1199
+ if (ln === void 0) {
1200
+ ln = window, ii = /Firefox/.test(navigator.userAgent);
1197
1201
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1198
- si = tt(t, "firstChild").get, ai = tt(t, "nextSibling").get, on(e) && (e[vs] = void 0, e[ps] = null, e[ms] = void 0, e.__e = void 0), on(r) && (r[Sr] = void 0);
1202
+ si = rt(t, "firstChild").get, ai = rt(t, "nextSibling").get, an(e) && (e[vs] = void 0, e[ps] = null, e[ms] = void 0, e.__e = void 0), an(r) && (r[Sr] = void 0);
1199
1203
  }
1200
1204
  }
1201
1205
  function Me(e = "") {
1202
1206
  return document.createTextNode(e);
1203
1207
  }
1204
1208
  // @__NO_SIDE_EFFECTS__
1205
- function ut(e) {
1209
+ function lt(e) {
1206
1210
  return (
1207
1211
  /** @type {TemplateNode | null} */
1208
1212
  si.call(e)
@@ -1215,45 +1219,45 @@ function Ne(e) {
1215
1219
  ai.call(e)
1216
1220
  );
1217
1221
  }
1218
- function Mr(e, t) {
1222
+ function Or(e, t) {
1219
1223
  if (!D)
1220
- return /* @__PURE__ */ ut(e);
1221
- var r = /* @__PURE__ */ ut(M);
1224
+ return /* @__PURE__ */ lt(e);
1225
+ var r = /* @__PURE__ */ lt(M);
1222
1226
  if (r === null)
1223
1227
  r = M.appendChild(Me());
1224
- else if (t && r.nodeType !== rr) {
1228
+ else if (t && r.nodeType !== nr) {
1225
1229
  var n = Me();
1226
- return r?.before(n), me(n), n;
1230
+ return r?.before(n), ve(n), n;
1227
1231
  }
1228
- return t && Kr(
1232
+ return t && Qr(
1229
1233
  /** @type {Text} */
1230
1234
  r
1231
- ), me(r), r;
1235
+ ), ve(r), r;
1232
1236
  }
1233
- function js(e, t = !1) {
1237
+ function Gs(e, t = !1) {
1234
1238
  if (!D) {
1235
- var r = /* @__PURE__ */ ut(e);
1239
+ var r = /* @__PURE__ */ lt(e);
1236
1240
  return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Ne(r) : r;
1237
1241
  }
1238
1242
  if (t) {
1239
- if (M?.nodeType !== rr) {
1243
+ if (M?.nodeType !== nr) {
1240
1244
  var n = Me();
1241
- return M?.before(n), me(n), n;
1245
+ return M?.before(n), ve(n), n;
1242
1246
  }
1243
- Kr(
1247
+ Qr(
1244
1248
  /** @type {Text} */
1245
1249
  M
1246
1250
  );
1247
1251
  }
1248
1252
  return M;
1249
1253
  }
1250
- function hn(e, t = !1) {
1254
+ function fn(e, t = !1) {
1251
1255
  if (!D)
1252
- return /* @__PURE__ */ ut(e);
1253
- var r = Mr(e, t);
1256
+ return /* @__PURE__ */ lt(e);
1257
+ var r = Or(e, t);
1254
1258
  return Tr(e), r;
1255
1259
  }
1256
- function Vs(e, t = 1, r = !1) {
1260
+ function js(e, t = 1, r = !1) {
1257
1261
  let n = D ? M : e;
1258
1262
  for (var i; t--; )
1259
1263
  i = n, n = /** @type {TemplateNode} */
@@ -1261,53 +1265,55 @@ function Vs(e, t = 1, r = !1) {
1261
1265
  if (!D)
1262
1266
  return n;
1263
1267
  if (r) {
1264
- if (n?.nodeType !== rr) {
1268
+ if (n?.nodeType !== nr) {
1265
1269
  var s = Me();
1266
- return n === null ? i?.after(s) : n.before(s), me(s), s;
1270
+ return n === null ? i?.after(s) : n.before(s), ve(s), s;
1267
1271
  }
1268
- Kr(
1272
+ Qr(
1269
1273
  /** @type {Text} */
1270
1274
  n
1271
1275
  );
1272
1276
  }
1273
- return me(n), n;
1277
+ return ve(n), n;
1274
1278
  }
1275
- function Xs(e) {
1279
+ function Vs(e) {
1276
1280
  e.textContent = "";
1277
1281
  }
1278
- function Ws() {
1282
+ function Xs() {
1279
1283
  return !1;
1280
1284
  }
1281
- function Qr(e, t, r) {
1285
+ function Jr(e, t, r) {
1282
1286
  return (
1283
1287
  /** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
1284
1288
  document.createElement(e)
1285
1289
  );
1286
1290
  }
1287
- function Kr(e) {
1291
+ function Qr(e) {
1288
1292
  if (
1289
1293
  /** @type {string} */
1290
1294
  e.nodeValue.length < 65536
1291
1295
  )
1292
1296
  return;
1293
1297
  let t = e.nextSibling;
1294
- for (; t !== null && t.nodeType === rr; )
1298
+ for (; t !== null && t.nodeType === nr; )
1295
1299
  t.remove(), e.nodeValue += /** @type {string} */
1296
1300
  t.nodeValue, t = e.nextSibling;
1297
1301
  }
1298
- function Ys(e) {
1302
+ function Ws(e) {
1299
1303
  var t = H;
1300
1304
  if (t === null)
1301
1305
  return T.f |= Ie, e;
1302
- if (!(t.f & Ye) && !(t.f & st))
1306
+ if (!(t.f & ze) && !(t.f & at))
1303
1307
  throw e;
1304
- be(e, t);
1308
+ _e(e, t);
1305
1309
  }
1306
- function be(e, t) {
1307
- if (!(t !== null && t.f & te)) {
1310
+ function _e(e, t) {
1311
+ if (e === Le)
1312
+ throw e;
1313
+ if (!(t !== null && t.f & q)) {
1308
1314
  for (; t !== null; ) {
1309
- if (t.f & xr && !(t.f & (te | wr))) {
1310
- if (!(t.f & Ye))
1315
+ if (t.f & wr && !(t.f & (q | zt))) {
1316
+ if (!(t.f & ze))
1311
1317
  throw e;
1312
1318
  try {
1313
1319
  t.b.error(e);
@@ -1322,13 +1328,13 @@ function be(e, t) {
1322
1328
  }
1323
1329
  }
1324
1330
  function oi(e) {
1325
- H === null && (T === null && Ts(), Ss()), Be && ws();
1331
+ H === null && (T === null && Ss(), ws()), Be && xs();
1326
1332
  }
1327
- function zs(e, t) {
1333
+ function Ys(e, t) {
1328
1334
  var r = t.last;
1329
1335
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1330
1336
  }
1331
- function _e(e, t) {
1337
+ function me(e, t) {
1332
1338
  var r = H;
1333
1339
  r !== null && r.f & le && (e |= le);
1334
1340
  var n = {
@@ -1349,18 +1355,18 @@ function _e(e, t) {
1349
1355
  };
1350
1356
  $?.register_created_effect(n);
1351
1357
  var i = n;
1352
- if (e & st)
1353
- Tt !== null ? Tt.push(n) : Oe.ensure().schedule(n);
1358
+ if (e & at)
1359
+ Ht !== null ? Ht.push(n) : Oe.ensure().schedule(n);
1354
1360
  else if (t !== null) {
1355
1361
  try {
1356
- lt(n);
1362
+ ft(n);
1357
1363
  } catch (o) {
1358
1364
  throw ne(n), o;
1359
1365
  }
1360
1366
  i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
1361
- !(i.f & ze) && (i = i.first, e & he && e & at && i !== null && (i.f |= at));
1367
+ !(i.f & qe) && (i = i.first, e & he && e & ot && i !== null && (i.f |= ot));
1362
1368
  }
1363
- if (i !== null && (i.parent = r, r !== null && zs(i, r), T !== null && T.f & q && !(e & xe))) {
1369
+ if (i !== null && (i.parent = r, r !== null && Ys(i, r), T !== null && T.f & Z && !(e & $e))) {
1364
1370
  var s = (
1365
1371
  /** @type {Derived} */
1366
1372
  T
@@ -1369,19 +1375,19 @@ function _e(e, t) {
1369
1375
  }
1370
1376
  return n;
1371
1377
  }
1372
- function en() {
1378
+ function Kr() {
1373
1379
  return T !== null && !de;
1374
1380
  }
1375
1381
  function ui(e) {
1376
- const t = _e(Nt, null);
1382
+ const t = me(kt, null);
1377
1383
  return C(t, V), t.teardown = e, t;
1378
1384
  }
1379
- function cn(e) {
1385
+ function hn(e) {
1380
1386
  oi();
1381
1387
  var t = (
1382
1388
  /** @type {Effect} */
1383
1389
  H.f
1384
- ), r = !T && (t & ve) !== 0 && re !== null && !re.i;
1390
+ ), r = !T && (t & Ee) !== 0 && re !== null && !re.i;
1385
1391
  if (r) {
1386
1392
  var n = (
1387
1393
  /** @type {ComponentContext} */
@@ -1392,97 +1398,97 @@ function cn(e) {
1392
1398
  return li(e);
1393
1399
  }
1394
1400
  function li(e) {
1395
- return _e(st | Un, e);
1401
+ return me(at | Dn, e);
1396
1402
  }
1397
- function qs(e) {
1398
- return oi(), _e(Nt | Un, e);
1403
+ function zs(e) {
1404
+ return oi(), me(kt | Dn, e);
1399
1405
  }
1400
- function Zs(e) {
1406
+ function qs(e) {
1401
1407
  Oe.ensure();
1402
- const t = _e(xe | ze, e);
1408
+ const t = me($e | qe, e);
1403
1409
  return () => {
1404
1410
  ne(t);
1405
1411
  };
1406
1412
  }
1407
- function Js(e) {
1413
+ function Zs(e) {
1408
1414
  Oe.ensure();
1409
- const t = _e(xe | ze, e);
1415
+ const t = me($e | qe, e);
1410
1416
  return (r = {}) => new Promise((n) => {
1411
- r.outro ? At(t, () => {
1417
+ r.outro ? $t(t, () => {
1412
1418
  ne(t), n(void 0);
1413
1419
  }) : (ne(t), n(void 0));
1414
1420
  });
1415
1421
  }
1416
- function Qs(e) {
1417
- return _e(st, e);
1422
+ function Js(e) {
1423
+ return me(at, e);
1418
1424
  }
1419
- function Ks(e) {
1420
- return _e(rt | ze, e);
1425
+ function Qs(e) {
1426
+ return me(nt | qe, e);
1421
1427
  }
1422
1428
  function fi(e, t = 0) {
1423
- return _e(Nt | t, e);
1429
+ return me(kt | t, e);
1424
1430
  }
1425
- function ea(e, t = [], r = [], n = []) {
1426
- Cs(n, t, r, (i) => {
1427
- _e(Nt, () => {
1431
+ function Ks(e, t = [], r = [], n = []) {
1432
+ ks(n, t, r, (i) => {
1433
+ me(kt, () => {
1428
1434
  e(...i.map(O));
1429
1435
  });
1430
1436
  });
1431
1437
  }
1432
1438
  function hi(e, t = 0) {
1433
- var r = _e(he | t, e);
1439
+ var r = me(he | t, e);
1434
1440
  return r;
1435
1441
  }
1436
- function He(e) {
1437
- return _e(ve | ze, e);
1442
+ function Te(e) {
1443
+ return me(Ee | qe, e);
1438
1444
  }
1439
1445
  function ci(e) {
1440
1446
  var t = e.teardown;
1441
1447
  if (t !== null) {
1442
1448
  const r = Be, n = T;
1443
- pn(!0), fe(null);
1449
+ dn(!0), fe(null);
1444
1450
  try {
1445
1451
  t.call(null);
1446
1452
  } catch (i) {
1447
- be(i, e.parent);
1453
+ _e(i, e.parent);
1448
1454
  } finally {
1449
- pn(r), fe(n);
1455
+ dn(r), fe(n);
1450
1456
  }
1451
1457
  }
1452
1458
  }
1453
- function tn(e, t = !1) {
1459
+ function en(e, t = !1) {
1454
1460
  var r = e.first;
1455
1461
  for (e.first = e.last = null; r !== null; ) {
1456
1462
  const i = r.ac;
1457
- i !== null && sr(() => {
1458
- i.abort(Pt);
1463
+ i !== null && ar(() => {
1464
+ i.abort(Ct);
1459
1465
  });
1460
1466
  var n = r.next;
1461
- r.f & xe ? r.parent = null : ne(r, t), r = n;
1467
+ r.f & $e ? r.parent = null : ne(r, t), r = n;
1462
1468
  }
1463
1469
  }
1464
- function ta(e) {
1470
+ function ea(e) {
1465
1471
  for (var t = e.first; t !== null; ) {
1466
1472
  var r = t.next;
1467
- t.f & ve || ne(t), t = r;
1473
+ t.f & Ee || ne(t), t = r;
1468
1474
  }
1469
1475
  }
1470
1476
  function ne(e, t = !0) {
1471
1477
  var r = !1;
1472
- (t || e.f & cs) && e.nodes !== null && e.nodes.end !== null && (ra(
1478
+ (t || e.f & cs) && e.nodes !== null && e.nodes.end !== null && (ta(
1473
1479
  e.nodes.start,
1474
1480
  /** @type {TemplateNode} */
1475
1481
  e.nodes.end
1476
- ), r = !0), e.f |= wr, tn(e, t && !r), $t(e, 0);
1482
+ ), r = !0), e.f |= zt, en(e, t && !r), Mt(e, 0);
1477
1483
  var n = e.nodes && e.nodes.t;
1478
1484
  if (n !== null)
1479
1485
  for (const s of n)
1480
1486
  s.stop();
1481
- ci(e), e.f ^= wr, e.f |= te;
1487
+ ci(e), e.f ^= zt, e.f |= q;
1482
1488
  var i = e.parent;
1483
1489
  i !== null && i.first !== null && di(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1484
1490
  }
1485
- function ra(e, t) {
1491
+ function ta(e, t) {
1486
1492
  for (; e !== null; ) {
1487
1493
  var r = e === t ? null : /* @__PURE__ */ Ne(e);
1488
1494
  e.remove(), e = r;
@@ -1492,9 +1498,9 @@ function di(e) {
1492
1498
  var t = e.parent, r = e.prev, n = e.next;
1493
1499
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1494
1500
  }
1495
- function At(e, t, r = !0) {
1501
+ function $t(e, t, r = !0) {
1496
1502
  var n = [];
1497
- e.f |= jr, pi(e, n, !0);
1503
+ e.f |= Gr, pi(e, n, !0);
1498
1504
  var i = () => {
1499
1505
  r && ne(e), t && t();
1500
1506
  }, s = n.length;
@@ -1514,25 +1520,25 @@ function pi(e, t, r) {
1514
1520
  (a.is_global || r) && t.push(a);
1515
1521
  for (var i = e.first; i !== null; ) {
1516
1522
  var s = i.next;
1517
- if (!(i.f & xe)) {
1518
- var o = (i.f & at) !== 0 || // If this is a branch effect without a block effect parent,
1523
+ if (!(i.f & $e)) {
1524
+ var o = (i.f & ot) !== 0 || // If this is a branch effect without a block effect parent,
1519
1525
  // it means the parent block effect was pruned. In that case,
1520
1526
  // transparency information was transferred to the branch effect.
1521
- (i.f & ve) !== 0 && (e.f & he) !== 0;
1527
+ (i.f & Ee) !== 0 && (e.f & he) !== 0;
1522
1528
  pi(i, t, o ? r : !1);
1523
1529
  }
1524
1530
  i = s;
1525
1531
  }
1526
1532
  }
1527
1533
  }
1528
- function dn(e) {
1529
- e.f &= ~jr, vi(e, !0);
1534
+ function cn(e) {
1535
+ e.f &= ~Gr, vi(e, !0);
1530
1536
  }
1531
1537
  function vi(e, t) {
1532
- if (!(e.f & jr) && e.f & le) {
1538
+ if (!(e.f & Gr) && e.f & le) {
1533
1539
  e.f ^= le, e.f & V || (C(e, L), Oe.ensure().schedule(e));
1534
1540
  for (var r = e.first; r !== null; ) {
1535
- var n = r.next, i = (r.f & at) !== 0 || (r.f & ve) !== 0;
1541
+ var n = r.next, i = (r.f & ot) !== 0 || (r.f & Ee) !== 0;
1536
1542
  vi(r, i ? t : !1), r = n;
1537
1543
  }
1538
1544
  var s = e.nodes && e.nodes.t;
@@ -1548,8 +1554,8 @@ function mi(e, t) {
1548
1554
  t.append(r), r = i;
1549
1555
  }
1550
1556
  }
1551
- let Ft = !1, Be = !1;
1552
- function pn(e) {
1557
+ let Be = !1;
1558
+ function dn(e) {
1553
1559
  Be = e;
1554
1560
  }
1555
1561
  let T = null, de = !1;
@@ -1557,25 +1563,25 @@ function fe(e) {
1557
1563
  T = e;
1558
1564
  }
1559
1565
  let H = null;
1560
- function we(e) {
1566
+ function xe(e) {
1561
1567
  H = e;
1562
1568
  }
1563
- let Ee = null;
1569
+ let ye = null;
1564
1570
  function _i(e) {
1565
- T !== null && (T.f & qt || T.f & q) && (Ee ??= /* @__PURE__ */ new Set()).add(e);
1571
+ T !== null && (T.f & Zt || T.f & Z) && (ye ??= /* @__PURE__ */ new Set()).add(e);
1566
1572
  }
1567
- let ee = null, ie = 0, ae = null;
1568
- function na(e) {
1573
+ let te = null, ie = 0, ae = null;
1574
+ function ra(e) {
1569
1575
  ae = e;
1570
1576
  }
1571
- let bi = 1, Ve = 0, Xe = Ve;
1572
- function vn(e) {
1573
- Xe = e;
1577
+ let bi = 1, Xe = 0, We = Xe;
1578
+ function pn(e) {
1579
+ We = e;
1574
1580
  }
1575
1581
  function gi() {
1576
1582
  return ++bi;
1577
1583
  }
1578
- function Ct(e) {
1584
+ function It(e) {
1579
1585
  var t = e.f;
1580
1586
  if (t & L)
1581
1587
  return !0;
@@ -1585,7 +1591,7 @@ function Ct(e) {
1585
1591
  e.deps
1586
1592
  ), n = r.length, i = 0; i < n; i++) {
1587
1593
  var s = r[i];
1588
- if (Ct(
1594
+ if (It(
1589
1595
  /** @type {Derived} */
1590
1596
  s
1591
1597
  ) && Zn(
@@ -1602,35 +1608,35 @@ function Ct(e) {
1602
1608
  }
1603
1609
  function yi(e, t, r = !0) {
1604
1610
  var n = e.reactions;
1605
- if (n !== null && !(Ee !== null && Ee.has(e)))
1611
+ if (n !== null && !(ye !== null && ye.has(e)))
1606
1612
  for (var i = 0; i < n.length; i++) {
1607
1613
  var s = n[i];
1608
- s.f & q ? yi(
1614
+ s.f & Z ? yi(
1609
1615
  /** @type {Derived} */
1610
1616
  s,
1611
1617
  t,
1612
1618
  !1
1613
- ) : t === s && (r ? C(s, L) : s.f & V && C(s, ue), Jr(
1619
+ ) : t === s && (r ? C(s, L) : s.f & V && C(s, ue), Zr(
1614
1620
  /** @type {Effect} */
1615
1621
  s
1616
1622
  ));
1617
1623
  }
1618
1624
  }
1619
1625
  function Ei(e) {
1620
- var t = ee, r = ie, n = ae, i = T, s = Ee, o = re, a = de, u = Xe, l = e.f;
1621
- ee = /** @type {null | Value[]} */
1622
- null, ie = 0, ae = null, T = l & (ve | xe) ? null : e, Ee = null, ot(e.ctx), de = !1, Xe = ++Ve, e.ac !== null && (sr(() => {
1623
- e.ac.abort(Pt);
1626
+ var t = te, r = ie, n = ae, i = T, s = ye, o = re, a = de, u = We, l = e.f;
1627
+ te = /** @type {null | Value[]} */
1628
+ null, ie = 0, ae = null, T = l & (Ee | $e) ? null : e, ye = null, ut(e.ctx), de = !1, We = ++Xe, e.ac !== null && (ar(() => {
1629
+ e.ac.abort(Ct);
1624
1630
  }), e.ac = null);
1625
1631
  try {
1626
- e.f |= qt;
1632
+ e.f |= Zt;
1627
1633
  var f = (
1628
1634
  /** @type {Function} */
1629
1635
  e.fn
1630
1636
  ), h = f();
1631
- e.f |= Ye;
1632
- var c = mn(e);
1633
- if (Wn() && ae !== null && !de && c !== null && !(e.f & (q | ue | L)))
1637
+ e.f |= ze;
1638
+ var c = vn(e);
1639
+ if (Wn() && ae !== null && !de && c !== null && !(e.f & (Z | ue | L)))
1634
1640
  for (var d = 0; d < /** @type {Source[]} */
1635
1641
  ae.length; d++)
1636
1642
  yi(
@@ -1639,38 +1645,38 @@ function Ei(e) {
1639
1645
  e
1640
1646
  );
1641
1647
  if (i !== null && i !== e) {
1642
- if (Ve++, i.deps !== null)
1648
+ if (Xe++, i.deps !== null)
1643
1649
  for (let p = 0; p < r; p += 1)
1644
- i.deps[p].rv = Ve;
1650
+ i.deps[p].rv = Xe;
1645
1651
  if (t !== null)
1646
1652
  for (const p of t)
1647
- p.rv = Ve;
1653
+ p.rv = Xe;
1648
1654
  ae !== null && (n === null ? n = ae : n.push(.../** @type {Source[]} */
1649
1655
  ae));
1650
1656
  }
1651
1657
  return e.f & Ie && (e.f ^= Ie), h;
1652
1658
  } catch (p) {
1653
- return mn(e), Ys(p);
1659
+ return vn(e), Ws(p);
1654
1660
  } finally {
1655
- e.f ^= qt, ee = t, ie = r, ae = n, T = i, Ee = s, ot(o), de = a, Xe = u;
1661
+ e.f ^= Zt, te = t, ie = r, ae = n, T = i, ye = s, ut(o), de = a, We = u;
1656
1662
  }
1657
1663
  }
1658
- function mn(e) {
1664
+ function vn(e) {
1659
1665
  var t = e.deps, r = $?.is_fork;
1660
- if (ee !== null) {
1666
+ if (te !== null) {
1661
1667
  var n;
1662
- if (r || $t(e, ie), t !== null && ie > 0)
1663
- for (t.length = ie + ee.length, n = 0; n < ee.length; n++)
1664
- t[ie + n] = ee[n];
1668
+ if (r || Mt(e, ie), t !== null && ie > 0)
1669
+ for (t.length = ie + te.length, n = 0; n < te.length; n++)
1670
+ t[ie + n] = te[n];
1665
1671
  else
1666
- e.deps = t = ee;
1667
- if (en() && e.f & pe)
1672
+ e.deps = t = te;
1673
+ if (Kr() && e.f & pe)
1668
1674
  for (n = ie; n < t.length; n++)
1669
1675
  (t[n].reactions ??= []).push(e);
1670
- } else !r && t !== null && ie < t.length && ($t(e, ie), t.length = ie);
1676
+ } else !r && t !== null && ie < t.length && (Mt(e, ie), t.length = ie);
1671
1677
  return t;
1672
1678
  }
1673
- function ia(e, t) {
1679
+ function na(e, t) {
1674
1680
  let r = t.reactions;
1675
1681
  if (r !== null) {
1676
1682
  var n = os.call(r, e);
@@ -1679,59 +1685,59 @@ function ia(e, t) {
1679
1685
  i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
1680
1686
  }
1681
1687
  }
1682
- if (r === null && t.f & q && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1688
+ if (r === null && t.f & Z && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1683
1689
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1684
1690
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1685
- (ee === null || !Wt.call(ee, t))) {
1691
+ (te === null || !Ot.call(te, t))) {
1686
1692
  var s = (
1687
1693
  /** @type {Derived} */
1688
1694
  t
1689
1695
  );
1690
- s.f & pe && (s.f ^= pe), s.v !== j && Yr(s), s.ac !== null && sr(() => {
1691
- s.ac.abort(Pt), s.ac = null, C(s, L);
1692
- }), Ds(s), $t(s, 0);
1696
+ s.f & pe && (s.f ^= pe), s.v !== j && Wr(s), s.ac !== null && ar(() => {
1697
+ s.ac.abort(Ct), s.ac = null, C(s, L);
1698
+ }), Ls(s), Mt(s, 0);
1693
1699
  }
1694
1700
  }
1695
- function $t(e, t) {
1701
+ function Mt(e, t) {
1696
1702
  var r = e.deps;
1697
1703
  if (r !== null)
1698
1704
  for (var n = t; n < r.length; n++)
1699
- ia(e, r[n]);
1705
+ na(e, r[n]);
1700
1706
  }
1701
- function lt(e) {
1707
+ function ft(e) {
1702
1708
  var t = e.f;
1703
- if (!(t & te)) {
1709
+ if (!(t & q)) {
1704
1710
  C(e, V);
1705
- var r = H, n = Ft;
1706
- H = e, Ft = (t & (ve | xe)) === 0;
1711
+ var r = H;
1712
+ H = e;
1707
1713
  try {
1708
- t & (he | Dn) ? ta(e) : tn(e), ci(e);
1709
- var i = Ei(e);
1710
- e.teardown = typeof i == "function" ? i : null, e.wv = bi;
1711
- var s;
1712
- Rn && Ns && e.f & L && e.deps;
1714
+ t & (he | Ln) ? ea(e) : en(e), ci(e);
1715
+ var n = Ei(e);
1716
+ e.teardown = typeof n == "function" ? n : null, e.wv = bi;
1717
+ var i;
1718
+ Cn && Bs && e.f & L && e.deps;
1713
1719
  } finally {
1714
- Ft = n, H = r;
1720
+ H = r;
1715
1721
  }
1716
1722
  }
1717
1723
  }
1718
1724
  function O(e) {
1719
- var t = e.f, r = (t & q) !== 0;
1725
+ var t = e.f, r = (t & Z) !== 0;
1720
1726
  if (T !== null && !de) {
1721
- var n = H !== null && (H.f & te) !== 0;
1722
- if (!n && (Ee === null || !Ee.has(e))) {
1727
+ var n = H !== null && (H.f & q) !== 0;
1728
+ if (!n && (ye === null || !ye.has(e))) {
1723
1729
  var i = T.deps;
1724
- if (T.f & qt)
1725
- e.rv < Ve && (e.rv = Ve, ee === null && i !== null && i[ie] === e ? ie++ : ee === null ? ee = [e] : ee.push(e));
1730
+ if (T.f & Zt)
1731
+ e.rv < Xe && (e.rv = Xe, te === null && i !== null && i[ie] === e ? ie++ : te === null ? te = [e] : te.push(e));
1726
1732
  else {
1727
- T.deps ??= [], Wt.call(T.deps, e) || T.deps.push(e);
1733
+ T.deps ??= [], Ot.call(T.deps, e) || T.deps.push(e);
1728
1734
  var s = e.reactions;
1729
- s === null ? e.reactions = [T] : Wt.call(s, T) || s.push(T);
1735
+ s === null ? e.reactions = [T] : Ot.call(s, T) || s.push(T);
1730
1736
  }
1731
1737
  }
1732
1738
  }
1733
- if (Be && ye.has(e))
1734
- return ye.get(e);
1739
+ if (Be && ge.has(e))
1740
+ return ge.get(e);
1735
1741
  if (r) {
1736
1742
  var o = (
1737
1743
  /** @type {Derived} */
@@ -1739,10 +1745,10 @@ function O(e) {
1739
1745
  );
1740
1746
  if (Be) {
1741
1747
  var a = o.v;
1742
- return (!(o.f & V) && o.reactions !== null || wi(o)) && (a = qr(o)), ye.set(o, a), a;
1748
+ return (!(o.f & V) && o.reactions !== null || wi(o)) && (a = zr(o)), ge.set(o, a), a;
1743
1749
  }
1744
- var u = (o.f & pe) === 0 && !de && T !== null && (Ft || (T.f & pe) !== 0), l = (o.f & Ye) === 0;
1745
- Ct(o) && (u && (o.f |= pe), Zn(o)), u && !l && (Jn(o), xi(o));
1750
+ var u = (o.f & pe) === 0 && !de && T !== null && (T.f & pe) !== 0, l = (o.f & ze) === 0;
1751
+ It(o) && (u && (o.f |= pe), Zn(o)), u && !l && (Jn(o), xi(o));
1746
1752
  }
1747
1753
  if (ce?.has(e))
1748
1754
  return ce.get(e);
@@ -1752,20 +1758,22 @@ function O(e) {
1752
1758
  }
1753
1759
  function xi(e) {
1754
1760
  if (e.f |= pe, e.deps !== null)
1755
- for (const t of e.deps)
1756
- (t.reactions ??= []).push(e), t.f & q && !(t.f & pe) && (Jn(
1761
+ for (const r of e.deps) {
1762
+ var t = r.reactions;
1763
+ t === null ? r.reactions = [e] : Ot.call(t, e) || t.push(e), r.f & Z && !(r.f & pe) && (Jn(
1757
1764
  /** @type {Derived} */
1758
- t
1765
+ r
1759
1766
  ), xi(
1760
1767
  /** @type {Derived} */
1761
- t
1768
+ r
1762
1769
  ));
1770
+ }
1763
1771
  }
1764
1772
  function wi(e) {
1765
1773
  if (e.v === j) return !0;
1766
1774
  if (e.deps === null) return !1;
1767
1775
  for (const t of e.deps)
1768
- if (ye.has(t) || t.f & q && wi(
1776
+ if (ge.has(t) || t.f & Z && wi(
1769
1777
  /** @type {Derived} */
1770
1778
  t
1771
1779
  ))
@@ -1780,18 +1788,18 @@ function Si(e) {
1780
1788
  de = t;
1781
1789
  }
1782
1790
  }
1783
- const wt = Symbol("events"), Ti = /* @__PURE__ */ new Set(), Br = /* @__PURE__ */ new Set();
1784
- function sa(e, t, r) {
1785
- (t[wt] ??= {})[e] = r;
1791
+ const St = Symbol("events"), Ti = /* @__PURE__ */ new Set(), Mr = /* @__PURE__ */ new Set();
1792
+ function ia(e, t, r) {
1793
+ (t[St] ??= {})[e] = r;
1786
1794
  }
1787
- function aa(e) {
1795
+ function sa(e) {
1788
1796
  for (var t = 0; t < e.length; t++)
1789
1797
  Ti.add(e[t]);
1790
- for (var r of Br)
1798
+ for (var r of Mr)
1791
1799
  r(e);
1792
1800
  }
1793
- let pr = null, vr = !1;
1794
- function _n(e) {
1801
+ let vr = null, mr = !1;
1802
+ function mn(e) {
1795
1803
  var t = this, r = (
1796
1804
  /** @type {Node} */
1797
1805
  t.ownerDocument
@@ -1799,15 +1807,15 @@ function _n(e) {
1799
1807
  /** @type {null | Element} */
1800
1808
  i[0] || e.target
1801
1809
  );
1802
- pr = e, vr || (vr = !0, setTimeout(() => {
1803
- vr = !1, pr = null;
1810
+ vr = e, mr || (mr = !0, setTimeout(() => {
1811
+ mr = !1, vr = null;
1804
1812
  }));
1805
- var o = 0, a = pr === e && e[wt];
1813
+ var o = 0, a = vr === e && e[St];
1806
1814
  if (a) {
1807
1815
  var u = i.indexOf(a);
1808
1816
  if (u !== -1 && (t === document || t === /** @type {any} */
1809
1817
  window)) {
1810
- e[wt] = t;
1818
+ e[St] = t;
1811
1819
  return;
1812
1820
  }
1813
1821
  var l = i.indexOf(t);
@@ -1817,18 +1825,18 @@ function _n(e) {
1817
1825
  }
1818
1826
  if (s = /** @type {Element} */
1819
1827
  i[o] || e.target, s !== t) {
1820
- it(e, "currentTarget", {
1828
+ st(e, "currentTarget", {
1821
1829
  configurable: !0,
1822
1830
  get() {
1823
1831
  return s || r;
1824
1832
  }
1825
1833
  });
1826
1834
  var f = T, h = H;
1827
- fe(null), we(null);
1835
+ fe(null), xe(null);
1828
1836
  try {
1829
1837
  for (var c, d = []; s !== null && s !== t; ) {
1830
1838
  try {
1831
- var p = s[wt]?.[n];
1839
+ var p = s[St]?.[n];
1832
1840
  p != null && (!/** @type {any} */
1833
1841
  s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1834
1842
  // -> the target could not have been disabled because it emits the event in the first place
@@ -1850,28 +1858,28 @@ function _n(e) {
1850
1858
  throw c;
1851
1859
  }
1852
1860
  } finally {
1853
- e[wt] = t, delete e.currentTarget, fe(f), we(h);
1861
+ e[St] = t, delete e.currentTarget, fe(f), xe(h);
1854
1862
  }
1855
1863
  }
1856
1864
  }
1857
- const oa = (
1865
+ const aa = (
1858
1866
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
1859
1867
  globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
1860
1868
  /** @param {string} html */
1861
1869
  createHTML: (e) => e
1862
1870
  })
1863
1871
  );
1864
- function ua(e) {
1872
+ function oa(e) {
1865
1873
  return (
1866
1874
  /** @type {string} */
1867
- oa?.createHTML(e) ?? e
1875
+ aa?.createHTML(e) ?? e
1868
1876
  );
1869
1877
  }
1870
- function la(e) {
1871
- var t = Qr("template");
1872
- return t.innerHTML = ua(e.replaceAll("<!>", "<!---->")), t.content;
1878
+ function ua(e) {
1879
+ var t = Jr("template");
1880
+ return t.innerHTML = oa(e.replaceAll("<!>", "<!---->")), t.content;
1873
1881
  }
1874
- function Ot(e, t) {
1882
+ function Bt(e, t) {
1875
1883
  var r = (
1876
1884
  /** @type {Effect} */
1877
1885
  H
@@ -1883,29 +1891,29 @@ function Hi(e, t) {
1883
1891
  var r = (t & ss) !== 0, n, i = !e.startsWith("<!>");
1884
1892
  return () => {
1885
1893
  if (D)
1886
- return Ot(M, null), M;
1887
- n === void 0 && (n = la(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
1888
- /* @__PURE__ */ ut(n));
1894
+ return Bt(M, null), M;
1895
+ n === void 0 && (n = ua(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
1896
+ /* @__PURE__ */ lt(n));
1889
1897
  var s = (
1890
1898
  /** @type {TemplateNode} */
1891
1899
  r || ii ? document.importNode(n, !0) : n.cloneNode(!0)
1892
1900
  );
1893
- return Ot(s, s), s;
1901
+ return Bt(s, s), s;
1894
1902
  };
1895
1903
  }
1896
- function fa() {
1904
+ function la() {
1897
1905
  if (D)
1898
- return Ot(M, null), M;
1906
+ return Bt(M, null), M;
1899
1907
  var e = document.createDocumentFragment(), t = document.createComment(""), r = Me();
1900
- return e.append(t, r), Ot(t, r), e;
1908
+ return e.append(t, r), Bt(t, r), e;
1901
1909
  }
1902
- function Gt(e, t) {
1910
+ function jt(e, t) {
1903
1911
  if (D) {
1904
1912
  var r = (
1905
1913
  /** @type {Effect & { nodes: EffectNodes }} */
1906
1914
  H
1907
1915
  );
1908
- (!(r.f & Ye) || r.nodes.end === null) && (r.nodes.end = M), Vr();
1916
+ (!(r.f & ze) || r.nodes.end === null) && (r.nodes.end = M), jr();
1909
1917
  return;
1910
1918
  }
1911
1919
  e !== null && e.before(
@@ -1913,25 +1921,25 @@ function Gt(e, t) {
1913
1921
  t
1914
1922
  );
1915
1923
  }
1916
- const ha = ["touchstart", "touchmove"];
1917
- function ca(e) {
1918
- return ha.includes(e);
1924
+ const fa = ["touchstart", "touchmove"];
1925
+ function ha(e) {
1926
+ return fa.includes(e);
1919
1927
  }
1920
- function da(e) {
1921
- let t = 0, r = kt(0), n;
1928
+ function ca(e) {
1929
+ let t = 0, r = Rt(0), n;
1922
1930
  return () => {
1923
- en() && (O(r), fi(() => (t === 0 && (n = Si(() => e(() => Ht(r)))), t += 1, () => {
1924
- je(() => {
1925
- t -= 1, t === 0 && (n?.(), n = void 0, Ht(r));
1931
+ Kr() && (O(r), fi(() => (t === 0 && (n = Si(() => e(() => At(r)))), t += 1, () => {
1932
+ Ve(() => {
1933
+ t -= 1, t === 0 && (n?.(), n = void 0, At(r));
1926
1934
  });
1927
1935
  })));
1928
1936
  };
1929
1937
  }
1930
- var pa = at | ze;
1931
- function va(e, t, r, n) {
1932
- new ma(e, t, r, n);
1938
+ var da = ot | qe;
1939
+ function pa(e, t, r, n) {
1940
+ new va(e, t, r, n);
1933
1941
  }
1934
- class ma {
1942
+ class va {
1935
1943
  /** @type {Boundary | null} */
1936
1944
  parent;
1937
1945
  is_pending = !1;
@@ -1959,13 +1967,13 @@ class ma {
1959
1967
  #o = null;
1960
1968
  /** @type {DocumentFragment | null} */
1961
1969
  #s = null;
1962
- #p = 0;
1970
+ #m = 0;
1963
1971
  #l = 0;
1964
1972
  #f = !1;
1965
1973
  /** @type {Set<Effect>} */
1966
1974
  #c = /* @__PURE__ */ new Set();
1967
1975
  /** @type {Set<Effect>} */
1968
- #m = /* @__PURE__ */ new Set();
1976
+ #_ = /* @__PURE__ */ new Set();
1969
1977
  /**
1970
1978
  * A source containing the number of pending async deriveds/expressions.
1971
1979
  * Only created if `$effect.pending()` is used inside the boundary,
@@ -1974,7 +1982,7 @@ class ma {
1974
1982
  * @type {Source<number> | null}
1975
1983
  */
1976
1984
  #h = null;
1977
- #g = da(() => (this.#h = kt(this.#p), () => {
1985
+ #E = ca(() => (this.#h = Rt(this.#m), () => {
1978
1986
  this.#h = null;
1979
1987
  }));
1980
1988
  /**
@@ -1989,27 +1997,27 @@ class ma {
1989
1997
  /** @type {Effect} */
1990
1998
  H
1991
1999
  );
1992
- o.b = this, o.f |= xr, n(s);
2000
+ o.b = this, o.f |= wr, n(s);
1993
2001
  }, this.parent = /** @type {Effect} */
1994
2002
  H.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = hi(() => {
1995
2003
  if (D) {
1996
- const s = (
1997
- /** @type {Comment} */
2004
+ const s = Gn(
2005
+ /** @type {TemplateNode} */
1998
2006
  this.#t
1999
2007
  );
2000
- Vr();
2001
- const o = s.data === kn;
2002
- if (s.data.startsWith(an)) {
2003
- const u = JSON.parse(s.data.slice(an.length));
2004
- this.#_(u);
2005
- } else o ? this.#w() : this.#y();
2008
+ jr();
2009
+ const o = s === Pn;
2010
+ if (s.startsWith(sn)) {
2011
+ const u = JSON.parse(s.slice(sn.length));
2012
+ this.#b(u);
2013
+ } else o ? this.#w() : this.#x();
2006
2014
  } else
2007
- this.#E();
2008
- }, pa), D && (this.#e = M);
2015
+ this.#p();
2016
+ }, da), D && (this.#e = M);
2009
2017
  }
2010
- #y() {
2018
+ #x() {
2011
2019
  try {
2012
- this.#a = He(() => this.#u(this.#e));
2020
+ this.#a = Te(() => this.#u(this.#e));
2013
2021
  } catch (t) {
2014
2022
  this.error(t);
2015
2023
  }
@@ -2017,9 +2025,9 @@ class ma {
2017
2025
  /**
2018
2026
  * @param {unknown} error The deserialized error from the server's hydration comment
2019
2027
  */
2020
- #_(t) {
2021
- const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#b(t);
2022
- je(i), r && (this.#o = He(() => {
2028
+ #b(t) {
2029
+ const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#g(t);
2030
+ Ve(i), r && (this.#o = Te(() => {
2023
2031
  r(
2024
2032
  this.#e,
2025
2033
  () => t,
@@ -2033,64 +2041,72 @@ class ma {
2033
2041
  * @param {unknown} error
2034
2042
  * @returns {{ reset: () => void, invoke_onerror: () => void }}
2035
2043
  */
2036
- #b(t) {
2044
+ #g(t) {
2037
2045
  var r = !1, n = !1;
2038
2046
  const i = () => {
2039
- if (r) {
2040
- bs();
2041
- return;
2047
+ if (!this.#d()) {
2048
+ if (r) {
2049
+ bs();
2050
+ return;
2051
+ }
2052
+ r = !0, n && Ms(), this.#o !== null && $t(this.#o, () => {
2053
+ this.#o = null;
2054
+ }), this.#v(() => {
2055
+ this.#p();
2056
+ });
2042
2057
  }
2043
- r = !0, n && Bs(), this.#o !== null && At(this.#o, () => {
2044
- this.#o = null;
2045
- }), this.#x(() => {
2046
- this.#E();
2047
- });
2048
2058
  };
2049
2059
  return { reset: i, invoke_onerror: () => {
2050
- try {
2051
- n = !0, this.#r.onerror?.(t, i), n = !1;
2052
- } catch (o) {
2053
- be(o, this.#i && this.#i.parent);
2054
- }
2060
+ if (!this.#d())
2061
+ try {
2062
+ n = !0, this.#r.onerror?.(t, i), n = !1;
2063
+ } catch (o) {
2064
+ _e(o, this.#i && this.#i.parent);
2065
+ }
2055
2066
  } };
2056
2067
  }
2068
+ #d() {
2069
+ return (this.#i.f & (q | zt)) !== 0;
2070
+ }
2057
2071
  #w() {
2058
2072
  const t = this.#r.pending;
2059
- t && (this.is_pending = !0, this.#n = He(() => t(this.#e)), je(() => {
2060
- var r = this.#s = document.createDocumentFragment(), n = Me(), i = !1;
2061
- if (r.append(n), this.#a = this.#x(() => {
2062
- try {
2063
- return He(() => this.#u(n));
2064
- } catch (s) {
2073
+ t && (this.is_pending = !0, this.#n = Te(() => t(this.#e)), Ve(() => {
2074
+ if (!this.#d()) {
2075
+ var r = this.#s = document.createDocumentFragment(), n = Me(), i = !1;
2076
+ if (r.append(n), this.#a = this.#v(() => {
2065
2077
  try {
2066
- this.error(s), i = !0;
2067
- } catch (o) {
2068
- be(o, this.#i.parent);
2078
+ return Te(() => this.#u(n));
2079
+ } catch (s) {
2080
+ try {
2081
+ this.error(s), i = !0;
2082
+ } catch (o) {
2083
+ _e(o, this.#i.parent);
2084
+ }
2085
+ return null;
2069
2086
  }
2070
- return null;
2087
+ }), this.#a === null) {
2088
+ this.#s = null, i && this.#y(
2089
+ /** @type {Batch} */
2090
+ $
2091
+ );
2092
+ return;
2071
2093
  }
2072
- }), this.#a === null) {
2073
- this.#s = null, i && this.#d(
2094
+ this.#l === 0 && (this.#e.before(r), this.#s = null, $t(
2095
+ /** @type {Effect} */
2096
+ this.#n,
2097
+ () => {
2098
+ this.#n = null;
2099
+ }
2100
+ ), this.#y(
2074
2101
  /** @type {Batch} */
2075
2102
  $
2076
- );
2077
- return;
2103
+ ));
2078
2104
  }
2079
- this.#l === 0 && (this.#e.before(r), this.#s = null, At(
2080
- /** @type {Effect} */
2081
- this.#n,
2082
- () => {
2083
- this.#n = null;
2084
- }
2085
- ), this.#d(
2086
- /** @type {Batch} */
2087
- $
2088
- ));
2089
2105
  }));
2090
2106
  }
2091
- #E() {
2107
+ #p() {
2092
2108
  try {
2093
- if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#p = 0, this.#a = He(() => {
2109
+ if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#m = 0, this.#a = Te(() => {
2094
2110
  this.#u(this.#e);
2095
2111
  }), this.#l > 0) {
2096
2112
  var t = this.#s = document.createDocumentFragment();
@@ -2099,9 +2115,9 @@ class ma {
2099
2115
  /** @type {(anchor: Node) => void} */
2100
2116
  this.#r.pending
2101
2117
  );
2102
- this.#n = He(() => r(this.#e));
2118
+ this.#n = Te(() => r(this.#e));
2103
2119
  } else
2104
- this.#d(
2120
+ this.#y(
2105
2121
  /** @type {Batch} */
2106
2122
  $
2107
2123
  );
@@ -2112,15 +2128,15 @@ class ma {
2112
2128
  /**
2113
2129
  * @param {Batch} batch
2114
2130
  */
2115
- #d(t) {
2116
- this.is_pending = !1, t.transfer_effects(this.#c, this.#m);
2131
+ #y(t) {
2132
+ this.is_pending = !1, t.transfer_effects(this.#c, this.#_);
2117
2133
  }
2118
2134
  /**
2119
2135
  * Defer an effect inside a pending boundary until the boundary resolves
2120
2136
  * @param {Effect} effect
2121
2137
  */
2122
2138
  defer_effect(t) {
2123
- zn(t, this.#c, this.#m);
2139
+ zn(t, this.#c, this.#_);
2124
2140
  }
2125
2141
  /**
2126
2142
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -2136,13 +2152,13 @@ class ma {
2136
2152
  * @template T
2137
2153
  * @param {() => T} fn
2138
2154
  */
2139
- #x(t) {
2155
+ #v(t) {
2140
2156
  var r = H, n = T, i = re;
2141
- we(this.#i), fe(this.#i), ot(this.#i.ctx);
2157
+ xe(this.#i), fe(this.#i), ut(this.#i.ctx);
2142
2158
  try {
2143
2159
  return Oe.ensure(), t();
2144
2160
  } finally {
2145
- we(r), fe(n), ot(i);
2161
+ xe(r), fe(n), ut(i);
2146
2162
  }
2147
2163
  }
2148
2164
  /**
@@ -2151,12 +2167,12 @@ class ma {
2151
2167
  * @param {1 | -1} d
2152
2168
  * @param {Batch} batch
2153
2169
  */
2154
- #v(t, r) {
2170
+ #S(t, r) {
2155
2171
  if (!this.has_pending_snippet()) {
2156
- this.parent && this.parent.#v(t, r);
2172
+ this.parent && this.parent.#S(t, r);
2157
2173
  return;
2158
2174
  }
2159
- this.#l += t, this.#l === 0 && (this.#d(r), this.#n && At(this.#n, () => {
2175
+ this.#l += t, this.#l === 0 && (this.#y(r), this.#n && $t(this.#n, () => {
2160
2176
  this.#n = null;
2161
2177
  }), this.#s && (this.#e.before(this.#s), this.#s = null));
2162
2178
  }
@@ -2168,50 +2184,51 @@ class ma {
2168
2184
  * @param {Batch} batch
2169
2185
  */
2170
2186
  update_pending_count(t, r) {
2171
- this.#v(t, r), this.#p += t, !(!this.#h || this.#f) && (this.#f = !0, je(() => {
2172
- this.#f = !1, this.#h && Qt(this.#h, this.#p);
2187
+ this.#S(t, r), this.#m += t, !(!this.#h || this.#f) && (this.#f = !0, Ve(() => {
2188
+ this.#f = !1, this.#h && Kt(this.#h, this.#m);
2173
2189
  }));
2174
2190
  }
2175
2191
  get_effect_pending() {
2176
- return this.#g(), O(
2192
+ return this.#E(), O(
2177
2193
  /** @type {Source<number>} */
2178
2194
  this.#h
2179
2195
  );
2180
2196
  }
2181
2197
  /** @param {unknown} error */
2182
2198
  error(t) {
2183
- if (!this.#r.onerror && !this.#r.failed)
2199
+ if (t === Le || !this.#r.onerror && !this.#r.failed)
2184
2200
  throw t;
2185
2201
  $?.is_fork ? (this.#a && $.skip_effect(this.#a), this.#n && $.skip_effect(this.#n), this.#o && $.skip_effect(this.#o), $.oncommit(() => {
2186
- this.#S(t);
2187
- })) : this.#S(t);
2202
+ this.#d() || this.#T(t);
2203
+ })) : this.#T(t);
2188
2204
  }
2189
2205
  /**
2190
2206
  * @param {unknown} error
2191
2207
  */
2192
- #S(t) {
2193
- this.#a && (ne(this.#a), this.#a = null), this.#n && (ne(this.#n), this.#n = null), this.#o && (ne(this.#o), this.#o = null), D && (me(
2208
+ #T(t) {
2209
+ this.#a && (ne(this.#a), this.#a = null), this.#n && (ne(this.#n), this.#n = null), this.#o && (ne(this.#o), this.#o = null), D && (ve(
2194
2210
  /** @type {TemplateNode} */
2195
2211
  this.#t
2196
- ), gs(), me(Gn()));
2212
+ ), gs(), ve(Fn()));
2197
2213
  let r = this.#r.failed;
2198
2214
  const n = (i) => {
2199
- const { reset: s, invoke_onerror: o } = this.#b(i);
2200
- o(), r && (this.#o = this.#x(() => {
2215
+ if (this.#d()) return;
2216
+ const { reset: s, invoke_onerror: o } = this.#g(i);
2217
+ o(), r && !this.#d() && (this.#o = this.#v(() => {
2201
2218
  try {
2202
- return He(() => {
2219
+ return Te(() => {
2203
2220
  var a = (
2204
2221
  /** @type {Effect} */
2205
2222
  H
2206
2223
  );
2207
- a.b = this, a.f |= xr, r(
2224
+ a.b = this, a.f |= wr, r(
2208
2225
  this.#e,
2209
2226
  () => i,
2210
2227
  () => s
2211
2228
  );
2212
2229
  });
2213
2230
  } catch (a) {
2214
- return be(
2231
+ return _e(
2215
2232
  a,
2216
2233
  /** @type {Effect} */
2217
2234
  this.#i.parent
@@ -2219,24 +2236,26 @@ class ma {
2219
2236
  }
2220
2237
  }));
2221
2238
  };
2222
- je(() => {
2223
- var i;
2224
- try {
2225
- i = this.transform_error(t);
2226
- } catch (s) {
2227
- be(s, this.#i && this.#i.parent);
2228
- return;
2239
+ Ve(() => {
2240
+ if (!this.#d()) {
2241
+ var i;
2242
+ try {
2243
+ i = this.transform_error(t);
2244
+ } catch (s) {
2245
+ _e(s, this.#i && this.#i.parent);
2246
+ return;
2247
+ }
2248
+ i !== null && typeof i == "object" && typeof /** @type {any} */
2249
+ i.then == "function" ? i.then(
2250
+ n,
2251
+ /** @param {unknown} e */
2252
+ (s) => _e(s, this.#i && this.#i.parent)
2253
+ ) : n(i);
2229
2254
  }
2230
- i !== null && typeof i == "object" && typeof /** @type {any} */
2231
- i.then == "function" ? i.then(
2232
- n,
2233
- /** @param {unknown} e */
2234
- (s) => be(s, this.#i && this.#i.parent)
2235
- ) : n(i);
2236
2255
  });
2237
2256
  }
2238
2257
  }
2239
- function bn(e, t) {
2258
+ function _n(e, t) {
2240
2259
  var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
2241
2260
  r !== /** @type {any} */
2242
2261
  (e[Sr] ??= e.nodeValue) && (e[Sr] = r, e.nodeValue = `${r}`);
@@ -2244,37 +2263,37 @@ function bn(e, t) {
2244
2263
  function Ai(e, t) {
2245
2264
  return $i(e, t);
2246
2265
  }
2247
- function _a(e, t) {
2248
- Or(), t.intro = t.intro ?? !1;
2266
+ function ma(e, t) {
2267
+ $r(), t.intro = t.intro ?? !1;
2249
2268
  const r = t.target, n = D, i = M;
2250
2269
  try {
2251
- for (var s = /* @__PURE__ */ ut(r); s && (s.nodeType !== nr || /** @type {Comment} */
2252
- s.data !== Pn); )
2270
+ for (var s = /* @__PURE__ */ lt(r); s && (s.nodeType !== ir || /** @type {Comment} */
2271
+ s.data !== Nn); )
2253
2272
  s = /* @__PURE__ */ Ne(s);
2254
2273
  if (!s)
2255
- throw nt;
2256
- et(!0), me(
2274
+ throw Le;
2275
+ tt(!0), ve(
2257
2276
  /** @type {Comment} */
2258
2277
  s
2259
2278
  );
2260
2279
  const o = $i(e, { ...t, anchor: s });
2261
- return et(!1), /** @type {Exports} */
2280
+ return tt(!1), /** @type {Exports} */
2262
2281
  o;
2263
2282
  } catch (o) {
2264
2283
  if (o instanceof Error && o.message.split(`
2265
2284
  `).some((a) => a.startsWith("https://svelte.dev/e/")))
2266
2285
  throw o;
2267
- return o !== nt && console.warn("Failed to hydrate: ", o), t.recover === !1 && As(), Or(), Xs(r), et(!1), Ai(e, t);
2286
+ return o !== Le && console.warn("Failed to hydrate: ", o), t.recover === !1 && Hs(), $r(), Vs(r), tt(!1), Ai(e, t);
2268
2287
  } finally {
2269
- et(n), me(i);
2288
+ tt(n), ve(i);
2270
2289
  }
2271
2290
  }
2272
- const Lt = /* @__PURE__ */ new Map();
2291
+ const Ut = /* @__PURE__ */ new Map();
2273
2292
  function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: o = !0, transformError: a }) {
2274
- Or();
2275
- var u = void 0, l = Js(() => {
2293
+ $r();
2294
+ var u = void 0, l = Zs(() => {
2276
2295
  var f = r ?? t.appendChild(Me());
2277
- va(
2296
+ pa(
2278
2297
  /** @type {TemplateNode} */
2279
2298
  f,
2280
2299
  {
@@ -2282,19 +2301,19 @@ function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
2282
2301
  }
2283
2302
  },
2284
2303
  (d) => {
2285
- Xr({});
2304
+ Vr({});
2286
2305
  var p = (
2287
2306
  /** @type {ComponentContext} */
2288
2307
  re
2289
2308
  );
2290
- if (s && (p.c = s), i && (n.$$events = i), D && Ot(
2309
+ if (s && (p.c = s), i && (n.$$events = i), D && Bt(
2291
2310
  /** @type {TemplateNode} */
2292
2311
  d,
2293
2312
  null
2294
- ), u = e(d, n) || Xn(), D && (H.nodes.end = M, M === null || M.nodeType !== nr || /** @type {Comment} */
2295
- M.data !== Cn))
2296
- throw ir(), nt;
2297
- Wr();
2313
+ ), u = e(d, n) || Xn(), D && (H.nodes.end = M, M === null || M.nodeType !== ir || /** @type {Comment} */
2314
+ M.data !== kn))
2315
+ throw sr(), Le;
2316
+ Xr();
2298
2317
  },
2299
2318
  a
2300
2319
  );
@@ -2303,39 +2322,39 @@ function $i(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
2303
2322
  var w = d[p];
2304
2323
  if (!h.has(w)) {
2305
2324
  h.add(w);
2306
- var P = ca(w);
2325
+ var P = ha(w);
2307
2326
  for (const U of [t, document]) {
2308
- var G = Lt.get(U);
2309
- G === void 0 && (G = /* @__PURE__ */ new Map(), Lt.set(U, G));
2327
+ var G = Ut.get(U);
2328
+ G === void 0 && (G = /* @__PURE__ */ new Map(), Ut.set(U, G));
2310
2329
  var X = G.get(w);
2311
- X === void 0 ? (U.addEventListener(w, _n, { passive: P }), G.set(w, 1)) : G.set(w, X + 1);
2330
+ X === void 0 ? (U.addEventListener(w, mn, { passive: P }), G.set(w, 1)) : G.set(w, X + 1);
2312
2331
  }
2313
2332
  }
2314
2333
  }
2315
2334
  };
2316
- return c(us(Ti)), Br.add(c), () => {
2335
+ return c(us(Ti)), Mr.add(c), () => {
2317
2336
  for (var d of h)
2318
2337
  for (const P of [t, document]) {
2319
2338
  var p = (
2320
2339
  /** @type {Map<string, number>} */
2321
- Lt.get(P)
2340
+ Ut.get(P)
2322
2341
  ), w = (
2323
2342
  /** @type {number} */
2324
2343
  p.get(d)
2325
2344
  );
2326
- --w == 0 ? (P.removeEventListener(d, _n), p.delete(d), p.size === 0 && Lt.delete(P)) : p.set(d, w);
2345
+ --w == 0 ? (P.removeEventListener(d, mn), p.delete(d), p.size === 0 && Ut.delete(P)) : p.set(d, w);
2327
2346
  }
2328
- Br.delete(c), f !== r && f.parentNode?.removeChild(f);
2347
+ Mr.delete(c), f !== r && f.parentNode?.removeChild(f);
2329
2348
  };
2330
2349
  });
2331
- return Nr.set(u, l), u;
2350
+ return Br.set(u, l), u;
2332
2351
  }
2333
- let Nr = /* @__PURE__ */ new WeakMap();
2334
- function ba(e, t) {
2335
- const r = Nr.get(e);
2336
- return r ? (Nr.delete(e), r(t)) : Promise.resolve();
2352
+ let Br = /* @__PURE__ */ new WeakMap();
2353
+ function _a(e, t) {
2354
+ const r = Br.get(e);
2355
+ return r ? (Br.delete(e), r(t)) : Promise.resolve();
2337
2356
  }
2338
- class ga {
2357
+ class ba {
2339
2358
  /** @type {TemplateNode} */
2340
2359
  anchor;
2341
2360
  /** @type {Map<Batch, Key>} */
@@ -2388,10 +2407,10 @@ class ga {
2388
2407
  this.#e.get(t)
2389
2408
  ), n = this.#t.get(r);
2390
2409
  if (n)
2391
- dn(n), this.#u.delete(r);
2410
+ cn(n), this.#u.delete(r);
2392
2411
  else {
2393
2412
  var i = this.#r.get(r);
2394
- i && (dn(i.effect), this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
2413
+ i && (cn(i.effect), this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
2395
2414
  }
2396
2415
  for (const [s, o] of this.#e) {
2397
2416
  if (this.#e.delete(s), s === t)
@@ -2409,7 +2428,7 @@ class ga {
2409
2428
  ne(o);
2410
2429
  this.#u.delete(s), this.#t.delete(s);
2411
2430
  };
2412
- this.#i || !n ? (this.#u.add(s), At(o, a, !1)) : a();
2431
+ this.#i || !n ? (this.#u.add(s), $t(o, a, !1)) : a();
2413
2432
  }
2414
2433
  }
2415
2434
  };
@@ -2431,18 +2450,18 @@ class ga {
2431
2450
  var n = (
2432
2451
  /** @type {Batch} */
2433
2452
  $
2434
- ), i = Ws();
2453
+ ), i = Xs();
2435
2454
  if (r && !this.#t.has(t) && !this.#r.has(t))
2436
2455
  if (i) {
2437
2456
  var s = document.createDocumentFragment(), o = Me();
2438
2457
  s.append(o), this.#r.set(t, {
2439
- effect: He(() => r(o)),
2458
+ effect: Te(() => r(o)),
2440
2459
  fragment: s
2441
2460
  });
2442
2461
  } else
2443
2462
  this.#t.set(
2444
2463
  t,
2445
- He(() => r(this.anchor))
2464
+ Te(() => r(this.anchor))
2446
2465
  );
2447
2466
  if (this.#e.set(n, t), i) {
2448
2467
  for (const [a, u] of this.#t)
@@ -2454,19 +2473,19 @@ class ga {
2454
2473
  D && (this.anchor = M), this.#a(n);
2455
2474
  }
2456
2475
  }
2457
- function ya(e, t, r = !1) {
2476
+ function ga(e, t, r = !1) {
2458
2477
  var n;
2459
- D && (n = M, Vr());
2460
- var i = new ga(e), s = r ? at : 0;
2478
+ D && (n = M, jr());
2479
+ var i = new ba(e), s = r ? ot : 0;
2461
2480
  function o(a, u) {
2462
2481
  if (D) {
2463
- var l = ys(
2482
+ var l = Gn(
2464
2483
  /** @type {TemplateNode} */
2465
2484
  n
2466
2485
  );
2467
2486
  if (a !== parseInt(l.substring(1))) {
2468
- var f = Gn();
2469
- me(f), i.anchor = f, et(!1), i.ensure(a, u), et(!0);
2487
+ var f = Fn();
2488
+ ve(f), i.anchor = f, tt(!1), i.ensure(a, u), tt(!0);
2470
2489
  return;
2471
2490
  }
2472
2491
  }
@@ -2479,8 +2498,8 @@ function ya(e, t, r = !1) {
2479
2498
  }), a || o(-1, null);
2480
2499
  }, s);
2481
2500
  }
2482
- function Ea(e, t) {
2483
- Qs(() => {
2501
+ function ya(e, t) {
2502
+ Js(() => {
2484
2503
  e = H?.parent?.nodes?.start ?? e;
2485
2504
  var r = e.getRootNode(), n = (
2486
2505
  /** @type {ShadowRoot} */
@@ -2494,14 +2513,14 @@ function Ea(e, t) {
2494
2513
  )
2495
2514
  );
2496
2515
  if (!n.querySelector("#" + t.hash)) {
2497
- const i = Qr("style");
2516
+ const i = Jr("style");
2498
2517
  i.id = t.hash, i.textContent = t.code, n.appendChild(i);
2499
2518
  }
2500
2519
  });
2501
2520
  }
2502
- function rn(e, t, r) {
2521
+ function tn(e, t, r) {
2503
2522
  if (e == null)
2504
- return t(void 0), r && r(void 0), $e;
2523
+ return t(void 0), r && r(void 0), Ae;
2505
2524
  const n = Si(
2506
2525
  () => e.subscribe(
2507
2526
  t,
@@ -2511,24 +2530,24 @@ function rn(e, t, r) {
2511
2530
  );
2512
2531
  return n.unsubscribe ? () => n.unsubscribe() : n;
2513
2532
  }
2514
- const Ke = [];
2515
- function xa(e, t) {
2533
+ const et = [];
2534
+ function Ea(e, t) {
2516
2535
  return {
2517
- subscribe: ar(e, t).subscribe
2536
+ subscribe: or(e, t).subscribe
2518
2537
  };
2519
2538
  }
2520
- function ar(e, t = $e) {
2539
+ function or(e, t = Ae) {
2521
2540
  let r = null;
2522
2541
  const n = /* @__PURE__ */ new Set();
2523
2542
  function i(a) {
2524
2543
  if (Vn(e, a) && (e = a, r)) {
2525
- const u = !Ke.length;
2544
+ const u = !et.length;
2526
2545
  for (const l of n)
2527
- l[1](), Ke.push(l, e);
2546
+ l[1](), et.push(l, e);
2528
2547
  if (u) {
2529
- for (let l = 0; l < Ke.length; l += 2)
2530
- Ke[l][0](Ke[l + 1]);
2531
- Ke.length = 0;
2548
+ for (let l = 0; l < et.length; l += 2)
2549
+ et[l][0](et[l + 1]);
2550
+ et.length = 0;
2532
2551
  }
2533
2552
  }
2534
2553
  }
@@ -2538,9 +2557,9 @@ function ar(e, t = $e) {
2538
2557
  e
2539
2558
  ));
2540
2559
  }
2541
- function o(a, u = $e) {
2560
+ function o(a, u = Ae) {
2542
2561
  const l = [a, u];
2543
- return n.add(l), n.size === 1 && (r = t(i, s) || $e), a(
2562
+ return n.add(l), n.size === 1 && (r = t(i, s) || Ae), a(
2544
2563
  /** @type {T} */
2545
2564
  e
2546
2565
  ), () => {
@@ -2549,23 +2568,23 @@ function ar(e, t = $e) {
2549
2568
  }
2550
2569
  return { set: i, update: s, subscribe: o };
2551
2570
  }
2552
- function pt(e, t, r) {
2571
+ function vt(e, t, r) {
2553
2572
  const n = !Array.isArray(e), i = n ? [e] : e;
2554
2573
  if (!i.every(Boolean))
2555
2574
  throw new Error("derived() expects stores as input, got a falsy value");
2556
2575
  const s = t.length < 2;
2557
- return xa(r, (o, a) => {
2576
+ return Ea(r, (o, a) => {
2558
2577
  let u = !1;
2559
2578
  const l = [];
2560
- let f = 0, h = $e;
2579
+ let f = 0, h = Ae;
2561
2580
  const c = () => {
2562
2581
  if (f)
2563
2582
  return;
2564
2583
  h();
2565
2584
  const p = t(n ? l[0] : l, o, a);
2566
- s ? o(p) : h = typeof p == "function" ? p : $e;
2585
+ s ? o(p) : h = typeof p == "function" ? p : Ae;
2567
2586
  }, d = i.map(
2568
- (p, w) => rn(
2587
+ (p, w) => tn(
2569
2588
  p,
2570
2589
  (P) => {
2571
2590
  l[w] = P, f &= ~(1 << w), u && c();
@@ -2576,39 +2595,39 @@ function pt(e, t, r) {
2576
2595
  )
2577
2596
  );
2578
2597
  return u = !0, c(), function() {
2579
- In(d), h(), u = !1;
2598
+ Rn(d), h(), u = !1;
2580
2599
  };
2581
2600
  });
2582
2601
  }
2583
- function wa(e) {
2602
+ function xa(e) {
2584
2603
  let t;
2585
- return rn(e, (r) => t = r)(), t;
2604
+ return tn(e, (r) => t = r)(), t;
2586
2605
  }
2587
- let Pr = Symbol("unmounted");
2588
- function Sa(e, t, r) {
2606
+ let Nr = Symbol("unmounted");
2607
+ function wa(e, t, r) {
2589
2608
  const n = r[t] ??= {
2590
2609
  store: null,
2591
2610
  source: /* @__PURE__ */ ri(void 0),
2592
- unsubscribe: $e
2611
+ unsubscribe: Ae
2593
2612
  };
2594
- if (n.store !== e && !(Pr in r))
2613
+ if (n.store !== e && !(Nr in r))
2595
2614
  if (n.unsubscribe(), n.store = e ?? null, e == null)
2596
- n.source.v = void 0, n.unsubscribe = $e;
2615
+ n.source.v = void 0, n.unsubscribe = Ae;
2597
2616
  else {
2598
2617
  var i = !0;
2599
- n.unsubscribe = rn(e, (s) => {
2618
+ n.unsubscribe = tn(e, (s) => {
2600
2619
  i ? n.source.v = s : Y(n.source, s);
2601
2620
  }), i = !1;
2602
2621
  }
2603
- return e && Pr in r ? wa(e) : O(n.source);
2622
+ return e && Nr in r ? xa(e) : O(n.source);
2604
2623
  }
2605
- function Ta() {
2624
+ function Sa() {
2606
2625
  const e = {};
2607
2626
  function t() {
2608
2627
  ui(() => {
2609
2628
  for (var r in e)
2610
2629
  e[r].unsubscribe();
2611
- it(e, Pr, {
2630
+ st(e, Nr, {
2612
2631
  enumerable: !1,
2613
2632
  value: !0
2614
2633
  });
@@ -2632,7 +2651,7 @@ function Ce(e, t, r, n) {
2632
2651
  );
2633
2652
  return c === void 0 ? o() : (s = !0, c);
2634
2653
  };
2635
- var l = !1, f = /* @__PURE__ */ zr(() => (l = !1, u())), h = (
2654
+ var l = !1, f = /* @__PURE__ */ Yr(() => (l = !1, u())), h = (
2636
2655
  /** @type {Effect} */
2637
2656
  H
2638
2657
  );
@@ -2643,14 +2662,14 @@ function Ce(e, t, r, n) {
2643
2662
  const p = d ? O(f) : c;
2644
2663
  return Y(f, p), l = !0, i !== void 0 && (i = p), c;
2645
2664
  }
2646
- return Be && l || h.f & te ? f.v : O(f);
2665
+ return Be && l || h.f & q ? f.v : O(f);
2647
2666
  }
2648
2667
  );
2649
2668
  }
2650
- function Ha(e) {
2651
- return new Aa(e);
2669
+ function Ta(e) {
2670
+ return new Ha(e);
2652
2671
  }
2653
- class Aa {
2672
+ class Ha {
2654
2673
  /** @type {any} */
2655
2674
  #e;
2656
2675
  /** @type {Record<string, any>} */
@@ -2679,7 +2698,7 @@ class Aa {
2679
2698
  }
2680
2699
  }
2681
2700
  );
2682
- this.#t = (t.hydrate ? _a : Ai)(t.component, {
2701
+ this.#t = (t.hydrate ? ma : Ai)(t.component, {
2683
2702
  target: t.target,
2684
2703
  anchor: t.anchor,
2685
2704
  props: i,
@@ -2687,9 +2706,9 @@ class Aa {
2687
2706
  intro: t.intro ?? !1,
2688
2707
  recover: t.recover,
2689
2708
  transformError: t.transformError
2690
- }), (!t?.props?.$$host || t.sync === !1) && Ae(), this.#e = i.$$events;
2709
+ }), (!t?.props?.$$host || t.sync === !1) && He(), this.#e = i.$$events;
2691
2710
  for (const s of Object.keys(this.#t))
2692
- s === "$set" || s === "$destroy" || s === "$on" || it(this, s, {
2711
+ s === "$set" || s === "$destroy" || s === "$on" || st(this, s, {
2693
2712
  get() {
2694
2713
  return this.#t[s];
2695
2714
  },
@@ -2703,7 +2722,7 @@ class Aa {
2703
2722
  (s) => {
2704
2723
  Object.assign(i, s);
2705
2724
  }, this.#t.$destroy = () => {
2706
- ba(this.#t);
2725
+ _a(this.#t);
2707
2726
  };
2708
2727
  }
2709
2728
  /** @param {Record<string, any>} props */
@@ -2788,22 +2807,22 @@ typeof HTMLElement == "function" && (Oi = class extends HTMLElement {
2788
2807
  if (this.$$cn = !0, !this.$$c) {
2789
2808
  let e = function(n) {
2790
2809
  return (i) => {
2791
- const s = Qr("slot");
2792
- n !== "default" && (s.name = n), Gt(i, s);
2810
+ const s = Jr("slot");
2811
+ n !== "default" && (s.name = n), jt(i, s);
2793
2812
  };
2794
2813
  };
2795
2814
  if (await Promise.resolve(), !this.$$cn || this.$$c)
2796
2815
  return;
2797
- const t = {}, r = $a(this);
2816
+ const t = {}, r = Aa(this);
2798
2817
  for (const n of this.$$s)
2799
2818
  n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
2800
2819
  for (const n of this.attributes) {
2801
2820
  const i = this.$$g_p(n.name);
2802
- i in this.$$d || (this.$$d[i] = jt(i, n.value, this.$$p_d, "toProp"));
2821
+ i in this.$$d || (this.$$d[i] = Vt(i, n.value, this.$$p_d, "toProp"));
2803
2822
  }
2804
2823
  for (const n in this.$$p_d)
2805
2824
  !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2806
- this.$$c = Ha({
2825
+ this.$$c = Ta({
2807
2826
  component: this.$$ctor,
2808
2827
  target: this.$$shadowRoot || this,
2809
2828
  props: {
@@ -2811,13 +2830,13 @@ typeof HTMLElement == "function" && (Oi = class extends HTMLElement {
2811
2830
  $$slots: t,
2812
2831
  $$host: this
2813
2832
  }
2814
- }), this.$$me = Zs(() => {
2833
+ }), this.$$me = qs(() => {
2815
2834
  fi(() => {
2816
2835
  this.$$r = !0;
2817
2836
  for (const n of Yt(this.$$c)) {
2818
2837
  if (!this.$$p_d[n]?.reflect) continue;
2819
2838
  this.$$d[n] = this.$$c[n];
2820
- const i = jt(
2839
+ const i = Vt(
2821
2840
  n,
2822
2841
  this.$$d[n],
2823
2842
  this.$$p_d,
@@ -2844,7 +2863,7 @@ typeof HTMLElement == "function" && (Oi = class extends HTMLElement {
2844
2863
  * @param {string} newValue
2845
2864
  */
2846
2865
  attributeChangedCallback(e, t, r) {
2847
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = jt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2866
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Vt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2848
2867
  }
2849
2868
  disconnectedCallback() {
2850
2869
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2860,7 +2879,7 @@ typeof HTMLElement == "function" && (Oi = class extends HTMLElement {
2860
2879
  ) || e;
2861
2880
  }
2862
2881
  });
2863
- function jt(e, t, r, n) {
2882
+ function Vt(e, t, r, n) {
2864
2883
  const i = r[e]?.type;
2865
2884
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
2866
2885
  return t;
@@ -2889,7 +2908,7 @@ function jt(e, t, r, n) {
2889
2908
  return t;
2890
2909
  }
2891
2910
  }
2892
- function $a(e) {
2911
+ function Aa(e) {
2893
2912
  const t = {};
2894
2913
  return e.childNodes.forEach((r) => {
2895
2914
  t[
@@ -2910,21 +2929,21 @@ function Mi(e, t, r, n, i, s) {
2910
2929
  }
2911
2930
  };
2912
2931
  return Yt(t).forEach((a) => {
2913
- it(o.prototype, a, {
2932
+ st(o.prototype, a, {
2914
2933
  get() {
2915
2934
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
2916
2935
  },
2917
2936
  set(u) {
2918
- u = jt(a, u, t), this.$$d[a] = u;
2937
+ u = Vt(a, u, t), this.$$d[a] = u;
2919
2938
  var l = this.$$c;
2920
2939
  if (l) {
2921
- var f = tt(l, a)?.get;
2940
+ var f = rt(l, a)?.get;
2922
2941
  f ? l[a] = u : l.$set({ [a]: u });
2923
2942
  }
2924
2943
  }
2925
2944
  });
2926
2945
  }), n.forEach((a) => {
2927
- it(o.prototype, a, {
2946
+ st(o.prototype, a, {
2928
2947
  get() {
2929
2948
  return this.$$c?.[a];
2930
2949
  }
@@ -2937,36 +2956,36 @@ class Bi extends Error {
2937
2956
  super(r), this.code = t, this.name = "ElevateApiError";
2938
2957
  }
2939
2958
  }
2940
- const Oa = async (e) => {
2959
+ const $a = async (e) => {
2941
2960
  const t = new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${e.locale ?? ""}`), r = new Headers({ "Content-Type": "application/json" });
2942
2961
  e.userSession && r.append("X-SessionId", e.userSession);
2943
2962
  const i = await (await fetch(t.href, { method: "GET", headers: r })).json();
2944
2963
  if (!i.success)
2945
2964
  throw new Bi(i.errorCode, i.errorMessage);
2946
2965
  return i.data;
2947
- }, Ma = async (e) => {
2966
+ }, Oa = async (e) => {
2948
2967
  const t = new URL(`${e.apiEndpoint}/elevate/rakeback/claim`), r = new Headers({ "Content-Type": "application/json" });
2949
2968
  e.userSession && r.append("X-Sessionid", e.userSession);
2950
2969
  const i = await (await fetch(t.href, { method: "PUT", headers: r, body: JSON.stringify({}) })).json();
2951
2970
  if (!i.success)
2952
2971
  throw new Bi(i.errorCode, i.errorMessage);
2953
2972
  };
2954
- var Ba = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2955
- function Na(e) {
2973
+ var Ma = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2974
+ function Ba(e) {
2956
2975
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2957
2976
  }
2958
- var Pa = { exports: {} };
2977
+ var Na = { exports: {} };
2959
2978
  (function(e, t) {
2960
2979
  (function(r, n) {
2961
2980
  e.exports = n();
2962
- })(Ba, function() {
2981
+ })(Ma, function() {
2963
2982
  var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", o = "second", a = "minute", u = "hour", l = "day", f = "week", h = "month", c = "quarter", d = "year", p = "date", w = "Invalid Date", P = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, G = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, X = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(y) {
2964
2983
  var _ = ["th", "st", "nd", "rd"], v = y % 100;
2965
2984
  return "[" + y + (_[(v - 20) % 10] || _[v] || _[0]) + "]";
2966
2985
  } }, U = function(y, _, v) {
2967
2986
  var g = String(y);
2968
2987
  return !g || g.length >= _ ? y : "" + Array(_ + 1 - g.length).join(v) + y;
2969
- }, Se = { s: U, z: function(y) {
2988
+ }, we = { s: U, z: function(y) {
2970
2989
  var _ = -y.utcOffset(), v = Math.abs(_), g = Math.floor(v / 60), m = v % 60;
2971
2990
  return (_ <= 0 ? "+" : "-") + U(g, 2, "0") + ":" + U(m, 2, "0");
2972
2991
  }, m: function y(_, v) {
@@ -2979,34 +2998,34 @@ var Pa = { exports: {} };
2979
2998
  return { M: h, y: d, w: f, d: l, D: p, h: u, m: a, s: o, ms: s, Q: c }[y] || String(y || "").toLowerCase().replace(/s$/, "");
2980
2999
  }, u: function(y) {
2981
3000
  return y === void 0;
2982
- } }, Z = "en", J = {};
2983
- J[Z] = X;
2984
- var Le = "$isDayjsObject", _t = function(y) {
2985
- return y instanceof R || !(!y || !y[Le]);
2986
- }, Ze = function y(_, v, g) {
3001
+ } }, J = "en", Q = {};
3002
+ Q[J] = X;
3003
+ var De = "$isDayjsObject", bt = function(y) {
3004
+ return y instanceof R || !(!y || !y[De]);
3005
+ }, Je = function y(_, v, g) {
2987
3006
  var m;
2988
- if (!_) return Z;
3007
+ if (!_) return J;
2989
3008
  if (typeof _ == "string") {
2990
3009
  var E = _.toLowerCase();
2991
- J[E] && (m = E), v && (J[E] = v, m = E);
3010
+ Q[E] && (m = E), v && (Q[E] = v, m = E);
2992
3011
  var x = _.split("-");
2993
3012
  if (!m && x.length > 1) return y(x[0]);
2994
3013
  } else {
2995
3014
  var B = _.name;
2996
- J[B] = _, m = B;
3015
+ Q[B] = _, m = B;
2997
3016
  }
2998
- return !g && m && (Z = m), m || !g && Z;
3017
+ return !g && m && (J = m), m || !g && J;
2999
3018
  }, F = function(y, _) {
3000
- if (_t(y)) return y.clone();
3019
+ if (bt(y)) return y.clone();
3001
3020
  var v = typeof _ == "object" ? _ : {};
3002
3021
  return v.date = y, v.args = arguments, new R(v);
3003
- }, b = Se;
3004
- b.l = Ze, b.i = _t, b.w = function(y, _) {
3022
+ }, b = we;
3023
+ b.l = Je, b.i = bt, b.w = function(y, _) {
3005
3024
  return F(y, { locale: _.$L, utc: _.$u, x: _.$x, $offset: _.$offset });
3006
3025
  };
3007
3026
  var R = function() {
3008
3027
  function y(v) {
3009
- this.$L = Ze(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[Le] = !0;
3028
+ this.$L = Je(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[De] = !0;
3010
3029
  }
3011
3030
  var _ = y.prototype;
3012
3031
  return _.parse = function(v) {
@@ -3045,29 +3064,29 @@ var Pa = { exports: {} };
3045
3064
  }, _.valueOf = function() {
3046
3065
  return this.$d.getTime();
3047
3066
  }, _.startOf = function(v, g) {
3048
- var m = this, E = !!b.u(g) || g, x = b.p(v), B = function(Ue, K) {
3049
- var ke = b.w(m.$u ? Date.UTC(m.$y, K, Ue) : new Date(m.$y, K, Ue), m);
3067
+ var m = this, E = !!b.u(g) || g, x = b.p(v), B = function(Fe, ee) {
3068
+ var ke = b.w(m.$u ? Date.UTC(m.$y, ee, Fe) : new Date(m.$y, ee, Fe), m);
3050
3069
  return E ? ke : ke.endOf(l);
3051
- }, I = function(Ue, K) {
3052
- return b.w(m.toDate()[Ue].apply(m.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(K)), m);
3053
- }, W = this.$W, z = this.$M, se = this.$D, Je = "set" + (this.$u ? "UTC" : "");
3070
+ }, I = function(Fe, ee) {
3071
+ return b.w(m.toDate()[Fe].apply(m.toDate("s"), (E ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ee)), m);
3072
+ }, W = this.$W, z = this.$M, se = this.$D, Qe = "set" + (this.$u ? "UTC" : "");
3054
3073
  switch (x) {
3055
3074
  case d:
3056
3075
  return E ? B(1, 0) : B(31, 11);
3057
3076
  case h:
3058
3077
  return E ? B(1, z) : B(0, z + 1);
3059
3078
  case f:
3060
- var De = this.$locale().weekStart || 0, bt = (W < De ? W + 7 : W) - De;
3061
- return B(E ? se - bt : se + (6 - bt), z);
3079
+ var Ue = this.$locale().weekStart || 0, gt = (W < Ue ? W + 7 : W) - Ue;
3080
+ return B(E ? se - gt : se + (6 - gt), z);
3062
3081
  case l:
3063
3082
  case p:
3064
- return I(Je + "Hours", 0);
3083
+ return I(Qe + "Hours", 0);
3065
3084
  case u:
3066
- return I(Je + "Minutes", 1);
3085
+ return I(Qe + "Minutes", 1);
3067
3086
  case a:
3068
- return I(Je + "Seconds", 2);
3087
+ return I(Qe + "Seconds", 2);
3069
3088
  case o:
3070
- return I(Je + "Milliseconds", 3);
3089
+ return I(Qe + "Milliseconds", 3);
3071
3090
  default:
3072
3091
  return this.clone();
3073
3092
  }
@@ -3102,17 +3121,17 @@ var Pa = { exports: {} };
3102
3121
  }, _.format = function(v) {
3103
3122
  var g = this, m = this.$locale();
3104
3123
  if (!this.isValid()) return m.invalidDate || w;
3105
- var E = v || "YYYY-MM-DDTHH:mm:ssZ", x = b.z(this), B = this.$H, I = this.$m, W = this.$M, z = m.weekdays, se = m.months, Je = m.meridiem, De = function(K, ke, gt, Rt) {
3106
- return K && (K[ke] || K(g, E)) || gt[ke].slice(0, Rt);
3107
- }, bt = function(K) {
3108
- return b.s(B % 12 || 12, K, "0");
3109
- }, Ue = Je || function(K, ke, gt) {
3110
- var Rt = K < 12 ? "AM" : "PM";
3111
- return gt ? Rt.toLowerCase() : Rt;
3124
+ var E = v || "YYYY-MM-DDTHH:mm:ssZ", x = b.z(this), B = this.$H, I = this.$m, W = this.$M, z = m.weekdays, se = m.months, Qe = m.meridiem, Ue = function(ee, ke, yt, Lt) {
3125
+ return ee && (ee[ke] || ee(g, E)) || yt[ke].slice(0, Lt);
3126
+ }, gt = function(ee) {
3127
+ return b.s(B % 12 || 12, ee, "0");
3128
+ }, Fe = Qe || function(ee, ke, yt) {
3129
+ var Lt = ee < 12 ? "AM" : "PM";
3130
+ return yt ? Lt.toLowerCase() : Lt;
3112
3131
  };
3113
- return E.replace(G, function(K, ke) {
3114
- return ke || function(gt) {
3115
- switch (gt) {
3132
+ return E.replace(G, function(ee, ke) {
3133
+ return ke || function(yt) {
3134
+ switch (yt) {
3116
3135
  case "YY":
3117
3136
  return String(g.$y).slice(-2);
3118
3137
  case "YYYY":
@@ -3122,9 +3141,9 @@ var Pa = { exports: {} };
3122
3141
  case "MM":
3123
3142
  return b.s(W + 1, 2, "0");
3124
3143
  case "MMM":
3125
- return De(m.monthsShort, W, se, 3);
3144
+ return Ue(m.monthsShort, W, se, 3);
3126
3145
  case "MMMM":
3127
- return De(se, W);
3146
+ return Ue(se, W);
3128
3147
  case "D":
3129
3148
  return g.$D;
3130
3149
  case "DD":
@@ -3132,9 +3151,9 @@ var Pa = { exports: {} };
3132
3151
  case "d":
3133
3152
  return String(g.$W);
3134
3153
  case "dd":
3135
- return De(m.weekdaysMin, g.$W, z, 2);
3154
+ return Ue(m.weekdaysMin, g.$W, z, 2);
3136
3155
  case "ddd":
3137
- return De(m.weekdaysShort, g.$W, z, 3);
3156
+ return Ue(m.weekdaysShort, g.$W, z, 3);
3138
3157
  case "dddd":
3139
3158
  return z[g.$W];
3140
3159
  case "H":
@@ -3142,13 +3161,13 @@ var Pa = { exports: {} };
3142
3161
  case "HH":
3143
3162
  return b.s(B, 2, "0");
3144
3163
  case "h":
3145
- return bt(1);
3164
+ return gt(1);
3146
3165
  case "hh":
3147
- return bt(2);
3166
+ return gt(2);
3148
3167
  case "a":
3149
- return Ue(B, I, !0);
3168
+ return Fe(B, I, !0);
3150
3169
  case "A":
3151
- return Ue(B, I, !1);
3170
+ return Fe(B, I, !1);
3152
3171
  case "m":
3153
3172
  return String(I);
3154
3173
  case "mm":
@@ -3163,7 +3182,7 @@ var Pa = { exports: {} };
3163
3182
  return x;
3164
3183
  }
3165
3184
  return null;
3166
- }(K) || x.replace(":", "");
3185
+ }(ee) || x.replace(":", "");
3167
3186
  });
3168
3187
  }, _.utcOffset = function() {
3169
3188
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
@@ -3203,10 +3222,10 @@ var Pa = { exports: {} };
3203
3222
  }, _.daysInMonth = function() {
3204
3223
  return this.endOf(h).$D;
3205
3224
  }, _.$locale = function() {
3206
- return J[this.$L];
3225
+ return Q[this.$L];
3207
3226
  }, _.locale = function(v, g) {
3208
3227
  if (!v) return this.$L;
3209
- var m = this.clone(), E = Ze(v, g, !0);
3228
+ var m = this.clone(), E = Je(v, g, !0);
3210
3229
  return E && (m.$L = E), m;
3211
3230
  }, _.clone = function() {
3212
3231
  return b.w(this.$d, this);
@@ -3226,15 +3245,15 @@ var Pa = { exports: {} };
3226
3245
  };
3227
3246
  }), F.extend = function(y, _) {
3228
3247
  return y.$i || (y(_, R, F), y.$i = !0), F;
3229
- }, F.locale = Ze, F.isDayjs = _t, F.unix = function(y) {
3248
+ }, F.locale = Je, F.isDayjs = bt, F.unix = function(y) {
3230
3249
  return F(1e3 * y);
3231
- }, F.en = J[Z], F.Ls = J, F.p = {}, F;
3250
+ }, F.en = Q[J], F.Ls = Q, F.p = {}, F;
3232
3251
  });
3233
- })(Pa);
3234
- const ka = (e, t = 2) => {
3252
+ })(Na);
3253
+ const Pa = (e, t = 2) => {
3235
3254
  const [r, n = ""] = e.toString().split(".");
3236
3255
  return t <= 0 ? r : `${r}.${n ? n.slice(0, t).padEnd(t, "0") : "0".repeat(t)}`;
3237
- }, Ca = (e, t = "en") => {
3256
+ }, ka = (e, t = "en") => {
3238
3257
  if (!e)
3239
3258
  return "";
3240
3259
  try {
@@ -3246,53 +3265,53 @@ const ka = (e, t = 2) => {
3246
3265
  } catch {
3247
3266
  return e;
3248
3267
  }
3249
- }, Ra = (e) => {
3268
+ }, Ca = (e) => {
3250
3269
  window.postMessage({ type: "Loyalty:RakebackClaimTrigger", points: e }, window.location.href);
3251
- }, Ia = (e) => {
3270
+ }, Ra = (e) => {
3252
3271
  window.postMessage({ type: "Loyalty:RakebackClaimSuccess", points: e }, window.location.href);
3253
- }, La = (e) => {
3272
+ }, Ia = (e) => {
3254
3273
  window.postMessage({ type: "Loyalty:RakebackClaimFailed", message: e }, window.location.href);
3255
- }, Da = () => {
3274
+ }, La = () => {
3256
3275
  window.postMessage({ type: "Loyalty:RakebackWalletMissing" }, window.location.href);
3257
3276
  };
3258
- var Ua = function(t) {
3259
- return Fa(t) && !Ga(t);
3277
+ var Da = function(t) {
3278
+ return Ua(t) && !Fa(t);
3260
3279
  };
3261
- function Fa(e) {
3280
+ function Ua(e) {
3262
3281
  return !!e && typeof e == "object";
3263
3282
  }
3264
- function Ga(e) {
3283
+ function Fa(e) {
3265
3284
  var t = Object.prototype.toString.call(e);
3266
- return t === "[object RegExp]" || t === "[object Date]" || Xa(e);
3285
+ return t === "[object RegExp]" || t === "[object Date]" || Va(e);
3267
3286
  }
3268
- var ja = typeof Symbol == "function" && Symbol.for, Va = ja ? Symbol.for("react.element") : 60103;
3269
- function Xa(e) {
3270
- return e.$$typeof === Va;
3287
+ var Ga = typeof Symbol == "function" && Symbol.for, ja = Ga ? Symbol.for("react.element") : 60103;
3288
+ function Va(e) {
3289
+ return e.$$typeof === ja;
3271
3290
  }
3272
- function Wa(e) {
3291
+ function Xa(e) {
3273
3292
  return Array.isArray(e) ? [] : {};
3274
3293
  }
3275
- function Mt(e, t) {
3276
- return t.clone !== !1 && t.isMergeableObject(e) ? ft(Wa(e), e, t) : e;
3294
+ function Nt(e, t) {
3295
+ return t.clone !== !1 && t.isMergeableObject(e) ? ht(Xa(e), e, t) : e;
3277
3296
  }
3278
- function Ya(e, t, r) {
3297
+ function Wa(e, t, r) {
3279
3298
  return e.concat(t).map(function(n) {
3280
- return Mt(n, r);
3299
+ return Nt(n, r);
3281
3300
  });
3282
3301
  }
3283
- function za(e, t) {
3302
+ function Ya(e, t) {
3284
3303
  if (!t.customMerge)
3285
- return ft;
3304
+ return ht;
3286
3305
  var r = t.customMerge(e);
3287
- return typeof r == "function" ? r : ft;
3306
+ return typeof r == "function" ? r : ht;
3288
3307
  }
3289
- function qa(e) {
3308
+ function za(e) {
3290
3309
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
3291
3310
  return Object.propertyIsEnumerable.call(e, t);
3292
3311
  }) : [];
3293
3312
  }
3294
- function gn(e) {
3295
- return Object.keys(e).concat(qa(e));
3313
+ function bn(e) {
3314
+ return Object.keys(e).concat(za(e));
3296
3315
  }
3297
3316
  function Ni(e, t) {
3298
3317
  try {
@@ -3301,57 +3320,57 @@ function Ni(e, t) {
3301
3320
  return !1;
3302
3321
  }
3303
3322
  }
3304
- function Za(e, t) {
3323
+ function qa(e, t) {
3305
3324
  return Ni(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
3306
3325
  }
3307
- function Ja(e, t, r) {
3326
+ function Za(e, t, r) {
3308
3327
  var n = {};
3309
- return r.isMergeableObject(e) && gn(e).forEach(function(i) {
3310
- n[i] = Mt(e[i], r);
3311
- }), gn(t).forEach(function(i) {
3312
- Za(e, i) || (Ni(e, i) && r.isMergeableObject(t[i]) ? n[i] = za(i, r)(e[i], t[i], r) : n[i] = Mt(t[i], r));
3328
+ return r.isMergeableObject(e) && bn(e).forEach(function(i) {
3329
+ n[i] = Nt(e[i], r);
3330
+ }), bn(t).forEach(function(i) {
3331
+ qa(e, i) || (Ni(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ya(i, r)(e[i], t[i], r) : n[i] = Nt(t[i], r));
3313
3332
  }), n;
3314
3333
  }
3315
- function ft(e, t, r) {
3316
- r = r || {}, r.arrayMerge = r.arrayMerge || Ya, r.isMergeableObject = r.isMergeableObject || Ua, r.cloneUnlessOtherwiseSpecified = Mt;
3334
+ function ht(e, t, r) {
3335
+ r = r || {}, r.arrayMerge = r.arrayMerge || Wa, r.isMergeableObject = r.isMergeableObject || Da, r.cloneUnlessOtherwiseSpecified = Nt;
3317
3336
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
3318
- return s ? n ? r.arrayMerge(e, t, r) : Ja(e, t, r) : Mt(t, r);
3337
+ return s ? n ? r.arrayMerge(e, t, r) : Za(e, t, r) : Nt(t, r);
3319
3338
  }
3320
- ft.all = function(t, r) {
3339
+ ht.all = function(t, r) {
3321
3340
  if (!Array.isArray(t))
3322
3341
  throw new Error("first argument should be an array");
3323
3342
  return t.reduce(function(n, i) {
3324
- return ft(n, i, r);
3343
+ return ht(n, i, r);
3325
3344
  }, {});
3326
3345
  };
3327
- var Qa = ft, Ka = Qa;
3328
- const eo = /* @__PURE__ */ Na(Ka);
3329
- var kr = function(e, t) {
3330
- return kr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
3346
+ var Ja = ht, Qa = Ja;
3347
+ const Ka = /* @__PURE__ */ Ba(Qa);
3348
+ var Pr = function(e, t) {
3349
+ return Pr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
3331
3350
  r.__proto__ = n;
3332
3351
  } || function(r, n) {
3333
3352
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
3334
- }, kr(e, t);
3353
+ }, Pr(e, t);
3335
3354
  };
3336
- function or(e, t) {
3355
+ function ur(e, t) {
3337
3356
  if (typeof t != "function" && t !== null)
3338
3357
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
3339
- kr(e, t);
3358
+ Pr(e, t);
3340
3359
  function r() {
3341
3360
  this.constructor = e;
3342
3361
  }
3343
3362
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
3344
3363
  }
3345
- var ge = function() {
3346
- return ge = Object.assign || function(t) {
3364
+ var be = function() {
3365
+ return be = Object.assign || function(t) {
3347
3366
  for (var r, n = 1, i = arguments.length; n < i; n++) {
3348
3367
  r = arguments[n];
3349
3368
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
3350
3369
  }
3351
3370
  return t;
3352
- }, ge.apply(this, arguments);
3371
+ }, be.apply(this, arguments);
3353
3372
  };
3354
- function to(e, t) {
3373
+ function eo(e, t) {
3355
3374
  var r = {};
3356
3375
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3357
3376
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -3359,23 +3378,23 @@ function to(e, t) {
3359
3378
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
3360
3379
  return r;
3361
3380
  }
3362
- function mr(e, t, r) {
3381
+ function _r(e, t, r) {
3363
3382
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
3364
3383
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
3365
3384
  return e.concat(s || Array.prototype.slice.call(t));
3366
3385
  }
3367
- function _r(e, t) {
3368
- var r = t && t.cache ? t.cache : uo, n = t && t.serializer ? t.serializer : ao, i = t && t.strategy ? t.strategy : io;
3386
+ function br(e, t) {
3387
+ var r = t && t.cache ? t.cache : oo, n = t && t.serializer ? t.serializer : so, i = t && t.strategy ? t.strategy : no;
3369
3388
  return i(e, {
3370
3389
  cache: r,
3371
3390
  serializer: n
3372
3391
  });
3373
3392
  }
3374
- function ro(e) {
3393
+ function to(e) {
3375
3394
  return e == null || typeof e == "number" || typeof e == "boolean";
3376
3395
  }
3377
- function no(e, t, r, n) {
3378
- var i = ro(n) ? n : r(n), s = t.get(i);
3396
+ function ro(e, t, r, n) {
3397
+ var i = to(n) ? n : r(n), s = t.get(i);
3379
3398
  return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
3380
3399
  }
3381
3400
  function Pi(e, t, r) {
@@ -3385,16 +3404,16 @@ function Pi(e, t, r) {
3385
3404
  function ki(e, t, r, n, i) {
3386
3405
  return r.bind(t, e, n, i);
3387
3406
  }
3388
- function io(e, t) {
3389
- var r = e.length === 1 ? no : Pi;
3407
+ function no(e, t) {
3408
+ var r = e.length === 1 ? ro : Pi;
3390
3409
  return ki(e, this, r, t.cache.create(), t.serializer);
3391
3410
  }
3392
- function so(e, t) {
3411
+ function io(e, t) {
3393
3412
  return ki(e, this, Pi, t.cache.create(), t.serializer);
3394
3413
  }
3395
- var ao = function() {
3414
+ var so = function() {
3396
3415
  return JSON.stringify(arguments);
3397
- }, oo = (
3416
+ }, ao = (
3398
3417
  /** @class */
3399
3418
  function() {
3400
3419
  function e() {
@@ -3406,20 +3425,20 @@ var ao = function() {
3406
3425
  this.cache[t] = r;
3407
3426
  }, e;
3408
3427
  }()
3409
- ), uo = {
3428
+ ), oo = {
3410
3429
  create: function() {
3411
- return new oo();
3430
+ return new ao();
3412
3431
  }
3413
- }, br = {
3414
- variadic: so
3415
- }, Kt = function() {
3416
- return Kt = Object.assign || function(t) {
3432
+ }, gr = {
3433
+ variadic: io
3434
+ }, er = function() {
3435
+ return er = Object.assign || function(t) {
3417
3436
  for (var r, n = 1, i = arguments.length; n < i; n++) {
3418
3437
  r = arguments[n];
3419
3438
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
3420
3439
  }
3421
3440
  return t;
3422
- }, Kt.apply(this, arguments);
3441
+ }, er.apply(this, arguments);
3423
3442
  };
3424
3443
  var S;
3425
3444
  (function(e) {
@@ -3429,14 +3448,14 @@ var N;
3429
3448
  (function(e) {
3430
3449
  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";
3431
3450
  })(N || (N = {}));
3432
- var ht;
3451
+ var ct;
3433
3452
  (function(e) {
3434
3453
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
3435
- })(ht || (ht = {}));
3436
- function yn(e) {
3454
+ })(ct || (ct = {}));
3455
+ function gn(e) {
3437
3456
  return e.type === N.literal;
3438
3457
  }
3439
- function lo(e) {
3458
+ function uo(e) {
3440
3459
  return e.type === N.argument;
3441
3460
  }
3442
3461
  function Ci(e) {
@@ -3454,22 +3473,22 @@ function Li(e) {
3454
3473
  function Di(e) {
3455
3474
  return e.type === N.plural;
3456
3475
  }
3457
- function fo(e) {
3476
+ function lo(e) {
3458
3477
  return e.type === N.pound;
3459
3478
  }
3460
3479
  function Ui(e) {
3461
3480
  return e.type === N.tag;
3462
3481
  }
3463
3482
  function Fi(e) {
3464
- return !!(e && typeof e == "object" && e.type === ht.number);
3483
+ return !!(e && typeof e == "object" && e.type === ct.number);
3465
3484
  }
3466
- function Cr(e) {
3467
- return !!(e && typeof e == "object" && e.type === ht.dateTime);
3485
+ function kr(e) {
3486
+ return !!(e && typeof e == "object" && e.type === ct.dateTime);
3468
3487
  }
3469
- var Gi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ho = /(?:[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;
3470
- function co(e) {
3488
+ var Gi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, fo = /(?:[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;
3489
+ function ho(e) {
3471
3490
  var t = {};
3472
- return e.replace(ho, function(r) {
3491
+ return e.replace(fo, function(r) {
3473
3492
  var n = r.length;
3474
3493
  switch (r[0]) {
3475
3494
  case "G":
@@ -3567,11 +3586,11 @@ var k = function() {
3567
3586
  return t;
3568
3587
  }, k.apply(this, arguments);
3569
3588
  };
3570
- var po = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
3571
- function vo(e) {
3589
+ var co = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
3590
+ function po(e) {
3572
3591
  if (e.length === 0)
3573
3592
  throw new Error("Number skeleton cannot be empty");
3574
- for (var t = e.split(po).filter(function(c) {
3593
+ for (var t = e.split(co).filter(function(c) {
3575
3594
  return c.length > 0;
3576
3595
  }), r = [], n = 0, i = t; n < i.length; n++) {
3577
3596
  var s = i[n], o = s.split("/");
@@ -3586,11 +3605,11 @@ function vo(e) {
3586
3605
  }
3587
3606
  return r;
3588
3607
  }
3589
- function mo(e) {
3608
+ function vo(e) {
3590
3609
  return e.replace(/^(.*?)-/, "");
3591
3610
  }
3592
- var En = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ji = /^(@+)?(\+|#+)?[rs]?$/g, _o = /(\*)(0+)|(#+)(0+)|(0+)/g, Vi = /^(0+)$/;
3593
- function xn(e) {
3611
+ var yn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ji = /^(@+)?(\+|#+)?[rs]?$/g, mo = /(\*)(0+)|(#+)(0+)|(0+)/g, Vi = /^(0+)$/;
3612
+ function En(e) {
3594
3613
  var t = {};
3595
3614
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ji, function(r, n, i) {
3596
3615
  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)), "";
@@ -3636,7 +3655,7 @@ function Xi(e) {
3636
3655
  };
3637
3656
  }
3638
3657
  }
3639
- function bo(e) {
3658
+ function _o(e) {
3640
3659
  var t;
3641
3660
  if (e[0] === "E" && e[1] === "E" ? (t = {
3642
3661
  notation: "engineering"
@@ -3650,11 +3669,11 @@ function bo(e) {
3650
3669
  }
3651
3670
  return t;
3652
3671
  }
3653
- function wn(e) {
3672
+ function xn(e) {
3654
3673
  var t = {}, r = Xi(e);
3655
3674
  return r || t;
3656
3675
  }
3657
- function go(e) {
3676
+ function bo(e) {
3658
3677
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
3659
3678
  var i = n[r];
3660
3679
  switch (i.stem) {
@@ -3678,7 +3697,7 @@ function go(e) {
3678
3697
  continue;
3679
3698
  case "measure-unit":
3680
3699
  case "unit":
3681
- t.style = "unit", t.unit = mo(i.options[0]);
3700
+ t.style = "unit", t.unit = vo(i.options[0]);
3682
3701
  continue;
3683
3702
  case "compact-short":
3684
3703
  case "K":
@@ -3690,12 +3709,12 @@ function go(e) {
3690
3709
  continue;
3691
3710
  case "scientific":
3692
3711
  t = k(k(k({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
3693
- return k(k({}, u), wn(l));
3712
+ return k(k({}, u), xn(l));
3694
3713
  }, {}));
3695
3714
  continue;
3696
3715
  case "engineering":
3697
3716
  t = k(k(k({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
3698
- return k(k({}, u), wn(l));
3717
+ return k(k({}, u), xn(l));
3699
3718
  }, {}));
3700
3719
  continue;
3701
3720
  case "notation-simple":
@@ -3740,7 +3759,7 @@ function go(e) {
3740
3759
  case "integer-width":
3741
3760
  if (i.options.length > 1)
3742
3761
  throw new RangeError("integer-width stems only accept a single optional option");
3743
- i.options[0].replace(_o, function(u, l, f, h, c, d) {
3762
+ i.options[0].replace(mo, function(u, l, f, h, c, d) {
3744
3763
  if (l)
3745
3764
  t.minimumIntegerDigits = f.length;
3746
3765
  else {
@@ -3757,28 +3776,28 @@ function go(e) {
3757
3776
  t.minimumIntegerDigits = i.stem.length;
3758
3777
  continue;
3759
3778
  }
3760
- if (En.test(i.stem)) {
3779
+ if (yn.test(i.stem)) {
3761
3780
  if (i.options.length > 1)
3762
3781
  throw new RangeError("Fraction-precision stems only accept a single optional option");
3763
- i.stem.replace(En, function(u, l, f, h, c, d) {
3782
+ i.stem.replace(yn, function(u, l, f, h, c, d) {
3764
3783
  return f === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
3765
3784
  });
3766
3785
  var s = i.options[0];
3767
- s === "w" ? t = k(k({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = k(k({}, t), xn(s)));
3786
+ s === "w" ? t = k(k({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = k(k({}, t), En(s)));
3768
3787
  continue;
3769
3788
  }
3770
3789
  if (ji.test(i.stem)) {
3771
- t = k(k({}, t), xn(i.stem));
3790
+ t = k(k({}, t), En(i.stem));
3772
3791
  continue;
3773
3792
  }
3774
3793
  var o = Xi(i.stem);
3775
3794
  o && (t = k(k({}, t), o));
3776
- var a = bo(i.stem);
3795
+ var a = _o(i.stem);
3777
3796
  a && (t = k(k({}, t), a));
3778
3797
  }
3779
3798
  return t;
3780
3799
  }
3781
- var Dt = {
3800
+ var Ft = {
3782
3801
  "001": [
3783
3802
  "H",
3784
3803
  "h"
@@ -5193,13 +5212,13 @@ var Dt = {
5193
5212
  "h"
5194
5213
  ]
5195
5214
  };
5196
- function yo(e, t) {
5215
+ function go(e, t) {
5197
5216
  for (var r = "", n = 0; n < e.length; n++) {
5198
5217
  var i = e.charAt(n);
5199
5218
  if (i === "j") {
5200
5219
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
5201
5220
  s++, n++;
5202
- var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = Eo(t);
5221
+ var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = yo(t);
5203
5222
  for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
5204
5223
  r += u;
5205
5224
  for (; o-- > 0; )
@@ -5208,7 +5227,7 @@ function yo(e, t) {
5208
5227
  }
5209
5228
  return r;
5210
5229
  }
5211
- function Eo(e) {
5230
+ function yo(e) {
5212
5231
  var t = e.hourCycle;
5213
5232
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
5214
5233
  e.hourCycles && // @ts-ignore
@@ -5227,23 +5246,23 @@ function Eo(e) {
5227
5246
  }
5228
5247
  var r = e.language, n;
5229
5248
  r !== "root" && (n = e.maximize().region);
5230
- var i = Dt[n || ""] || Dt[r || ""] || Dt["".concat(r, "-001")] || Dt["001"];
5249
+ var i = Ft[n || ""] || Ft[r || ""] || Ft["".concat(r, "-001")] || Ft["001"];
5231
5250
  return i[0];
5232
5251
  }
5233
- var gr, xo = new RegExp("^".concat(Gi.source, "*")), wo = new RegExp("".concat(Gi.source, "*$"));
5252
+ var yr, Eo = new RegExp("^".concat(Gi.source, "*")), xo = new RegExp("".concat(Gi.source, "*$"));
5234
5253
  function A(e, t) {
5235
5254
  return { start: e, end: t };
5236
5255
  }
5237
- var So = !!String.prototype.startsWith && "_a".startsWith("a", 1), To = !!String.fromCodePoint, Ho = !!Object.fromEntries, Ao = !!String.prototype.codePointAt, $o = !!String.prototype.trimStart, Oo = !!String.prototype.trimEnd, Mo = !!Number.isSafeInteger, Bo = Mo ? Number.isSafeInteger : function(e) {
5256
+ var wo = !!String.prototype.startsWith && "_a".startsWith("a", 1), So = !!String.fromCodePoint, To = !!Object.fromEntries, Ho = !!String.prototype.codePointAt, Ao = !!String.prototype.trimStart, $o = !!String.prototype.trimEnd, Oo = !!Number.isSafeInteger, Mo = Oo ? Number.isSafeInteger : function(e) {
5238
5257
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
5239
- }, Rr = !0;
5258
+ }, Cr = !0;
5240
5259
  try {
5241
- var No = Yi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5242
- Rr = ((gr = No.exec("a")) === null || gr === void 0 ? void 0 : gr[0]) === "a";
5260
+ var Bo = Yi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5261
+ Cr = ((yr = Bo.exec("a")) === null || yr === void 0 ? void 0 : yr[0]) === "a";
5243
5262
  } catch {
5244
- Rr = !1;
5263
+ Cr = !1;
5245
5264
  }
5246
- var Sn = So ? (
5265
+ var wn = wo ? (
5247
5266
  // Native
5248
5267
  function(t, r, n) {
5249
5268
  return t.startsWith(r, n);
@@ -5253,7 +5272,7 @@ var Sn = So ? (
5253
5272
  function(t, r, n) {
5254
5273
  return t.slice(n, n + r.length) === r;
5255
5274
  }
5256
- ), Ir = To ? String.fromCodePoint : (
5275
+ ), Rr = So ? String.fromCodePoint : (
5257
5276
  // IE11
5258
5277
  function() {
5259
5278
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -5265,9 +5284,9 @@ var Sn = So ? (
5265
5284
  }
5266
5285
  return n;
5267
5286
  }
5268
- ), Tn = (
5287
+ ), Sn = (
5269
5288
  // native
5270
- Ho ? Object.fromEntries : (
5289
+ To ? Object.fromEntries : (
5271
5290
  // Ponyfill
5272
5291
  function(t) {
5273
5292
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -5277,7 +5296,7 @@ var Sn = So ? (
5277
5296
  return r;
5278
5297
  }
5279
5298
  )
5280
- ), Wi = Ao ? (
5299
+ ), Wi = Ho ? (
5281
5300
  // Native
5282
5301
  function(t, r) {
5283
5302
  return t.codePointAt(r);
@@ -5291,7 +5310,7 @@ var Sn = So ? (
5291
5310
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
5292
5311
  }
5293
5312
  }
5294
- ), Po = $o ? (
5313
+ ), No = Ao ? (
5295
5314
  // Native
5296
5315
  function(t) {
5297
5316
  return t.trimStart();
@@ -5299,9 +5318,9 @@ var Sn = So ? (
5299
5318
  ) : (
5300
5319
  // Ponyfill
5301
5320
  function(t) {
5302
- return t.replace(xo, "");
5321
+ return t.replace(Eo, "");
5303
5322
  }
5304
- ), ko = Oo ? (
5323
+ ), Po = $o ? (
5305
5324
  // Native
5306
5325
  function(t) {
5307
5326
  return t.trimEnd();
@@ -5309,32 +5328,32 @@ var Sn = So ? (
5309
5328
  ) : (
5310
5329
  // Ponyfill
5311
5330
  function(t) {
5312
- return t.replace(wo, "");
5331
+ return t.replace(xo, "");
5313
5332
  }
5314
5333
  );
5315
5334
  function Yi(e, t) {
5316
5335
  return new RegExp(e, t);
5317
5336
  }
5318
- var Lr;
5319
- if (Rr) {
5320
- var Hn = Yi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5321
- Lr = function(t, r) {
5337
+ var Ir;
5338
+ if (Cr) {
5339
+ var Tn = Yi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5340
+ Ir = function(t, r) {
5322
5341
  var n;
5323
- Hn.lastIndex = r;
5324
- var i = Hn.exec(t);
5342
+ Tn.lastIndex = r;
5343
+ var i = Tn.exec(t);
5325
5344
  return (n = i[1]) !== null && n !== void 0 ? n : "";
5326
5345
  };
5327
5346
  } else
5328
- Lr = function(t, r) {
5347
+ Ir = function(t, r) {
5329
5348
  for (var n = []; ; ) {
5330
5349
  var i = Wi(t, r);
5331
- if (i === void 0 || zi(i) || Lo(i))
5350
+ if (i === void 0 || zi(i) || Io(i))
5332
5351
  break;
5333
5352
  n.push(i), r += i >= 65536 ? 2 : 1;
5334
5353
  }
5335
- return Ir.apply(void 0, n);
5354
+ return Rr.apply(void 0, n);
5336
5355
  };
5337
- var Co = (
5356
+ var ko = (
5338
5357
  /** @class */
5339
5358
  function() {
5340
5359
  function e(t, r) {
@@ -5365,7 +5384,7 @@ var Co = (
5365
5384
  if (n)
5366
5385
  break;
5367
5386
  return this.error(S.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
5368
- } else if (s === 60 && !this.ignoreTag && Dr(this.peek() || 0)) {
5387
+ } else if (s === 60 && !this.ignoreTag && Lr(this.peek() || 0)) {
5369
5388
  var o = this.parseTag(t, r);
5370
5389
  if (o.err)
5371
5390
  return o;
@@ -5398,7 +5417,7 @@ var Co = (
5398
5417
  return s;
5399
5418
  var o = s.val, a = this.clonePosition();
5400
5419
  if (this.bumpIf("</")) {
5401
- if (this.isEOF() || !Dr(this.char()))
5420
+ if (this.isEOF() || !Lr(this.char()))
5402
5421
  return this.error(S.INVALID_TAG, A(a, this.clonePosition()));
5403
5422
  var u = this.clonePosition(), l = this.parseTagName();
5404
5423
  return i !== l ? this.error(S.UNMATCHED_CLOSING_TAG, A(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -5416,7 +5435,7 @@ var Co = (
5416
5435
  return this.error(S.INVALID_TAG, A(n, this.clonePosition()));
5417
5436
  }, e.prototype.parseTagName = function() {
5418
5437
  var t = this.offset();
5419
- for (this.bump(); !this.isEOF() && Io(this.char()); )
5438
+ for (this.bump(); !this.isEOF() && Ro(this.char()); )
5420
5439
  this.bump();
5421
5440
  return this.message.slice(t, this.offset());
5422
5441
  }, e.prototype.parseLiteral = function(t, r) {
@@ -5445,7 +5464,7 @@ var Co = (
5445
5464
  };
5446
5465
  }, e.prototype.tryParseLeftAngleBracket = function() {
5447
5466
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
5448
- !Ro(this.peek() || 0)) ? (this.bump(), "<") : null;
5467
+ !Co(this.peek() || 0)) ? (this.bump(), "<") : null;
5449
5468
  }, e.prototype.tryParseQuote = function(t) {
5450
5469
  if (this.isEOF() || this.char() !== 39)
5451
5470
  return null;
@@ -5479,12 +5498,12 @@ var Co = (
5479
5498
  r.push(n);
5480
5499
  this.bump();
5481
5500
  }
5482
- return Ir.apply(void 0, r);
5501
+ return Rr.apply(void 0, r);
5483
5502
  }, e.prototype.tryParseUnquoted = function(t, r) {
5484
5503
  if (this.isEOF())
5485
5504
  return null;
5486
5505
  var n = this.char();
5487
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ir(n));
5506
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Rr(n));
5488
5507
  }, e.prototype.parseArgument = function(t, r) {
5489
5508
  var n = this.clonePosition();
5490
5509
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -5513,7 +5532,7 @@ var Co = (
5513
5532
  return this.error(S.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
5514
5533
  }
5515
5534
  }, e.prototype.parseIdentifierIfPossible = function() {
5516
- var t = this.clonePosition(), r = this.offset(), n = Lr(this.message, r), i = r + n.length;
5535
+ var t = this.clonePosition(), r = this.offset(), n = Ir(this.message, r), i = r + n.length;
5517
5536
  this.bumpTo(i);
5518
5537
  var s = this.clonePosition(), o = A(t, s);
5519
5538
  return { value: n, location: o };
@@ -5532,7 +5551,7 @@ var Co = (
5532
5551
  var f = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
5533
5552
  if (h.err)
5534
5553
  return h;
5535
- var c = ko(h.val);
5554
+ var c = Po(h.val);
5536
5555
  if (c.length === 0)
5537
5556
  return this.error(S.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
5538
5557
  var d = A(f, this.clonePosition());
@@ -5542,8 +5561,8 @@ var Co = (
5542
5561
  if (p.err)
5543
5562
  return p;
5544
5563
  var w = A(i, this.clonePosition());
5545
- if (l && Sn(l?.style, "::", 0)) {
5546
- var P = Po(l.style.slice(2));
5564
+ if (l && wn(l?.style, "::", 0)) {
5565
+ var P = No(l.style.slice(2));
5547
5566
  if (a === "number") {
5548
5567
  var h = this.parseNumberSkeletonFromString(P, l.styleLocation);
5549
5568
  return h.err ? h : {
@@ -5554,12 +5573,12 @@ var Co = (
5554
5573
  if (P.length === 0)
5555
5574
  return this.error(S.EXPECT_DATE_TIME_SKELETON, w);
5556
5575
  var G = P;
5557
- this.locale && (G = yo(P, this.locale));
5576
+ this.locale && (G = go(P, this.locale));
5558
5577
  var c = {
5559
- type: ht.dateTime,
5578
+ type: ct.dateTime,
5560
5579
  pattern: G,
5561
5580
  location: l.styleLocation,
5562
- parsedOptions: this.shouldParseSkeletons ? co(G) : {}
5581
+ parsedOptions: this.shouldParseSkeletons ? ho(G) : {}
5563
5582
  }, X = a === "date" ? N.date : N.time;
5564
5583
  return {
5565
5584
  val: { type: X, value: n, location: w, style: c },
@@ -5582,41 +5601,41 @@ var Co = (
5582
5601
  case "select": {
5583
5602
  var U = this.clonePosition();
5584
5603
  if (this.bumpSpace(), !this.bumpIf(","))
5585
- return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS, A(U, Kt({}, U)));
5604
+ return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS, A(U, er({}, U)));
5586
5605
  this.bumpSpace();
5587
- var Se = this.parseIdentifierIfPossible(), Z = 0;
5588
- if (a !== "select" && Se.value === "offset") {
5606
+ var we = this.parseIdentifierIfPossible(), J = 0;
5607
+ if (a !== "select" && we.value === "offset") {
5589
5608
  if (!this.bumpIf(":"))
5590
5609
  return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A(this.clonePosition(), this.clonePosition()));
5591
5610
  this.bumpSpace();
5592
5611
  var h = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
5593
5612
  if (h.err)
5594
5613
  return h;
5595
- this.bumpSpace(), Se = this.parseIdentifierIfPossible(), Z = h.val;
5614
+ this.bumpSpace(), we = this.parseIdentifierIfPossible(), J = h.val;
5596
5615
  }
5597
- var J = this.tryParsePluralOrSelectOptions(t, a, r, Se);
5598
- if (J.err)
5599
- return J;
5616
+ var Q = this.tryParsePluralOrSelectOptions(t, a, r, we);
5617
+ if (Q.err)
5618
+ return Q;
5600
5619
  var p = this.tryParseArgumentClose(i);
5601
5620
  if (p.err)
5602
5621
  return p;
5603
- var Le = A(i, this.clonePosition());
5622
+ var De = A(i, this.clonePosition());
5604
5623
  return a === "select" ? {
5605
5624
  val: {
5606
5625
  type: N.select,
5607
5626
  value: n,
5608
- options: Tn(J.val),
5609
- location: Le
5627
+ options: Sn(Q.val),
5628
+ location: De
5610
5629
  },
5611
5630
  err: null
5612
5631
  } : {
5613
5632
  val: {
5614
5633
  type: N.plural,
5615
5634
  value: n,
5616
- options: Tn(J.val),
5617
- offset: Z,
5635
+ options: Sn(Q.val),
5636
+ offset: J,
5618
5637
  pluralType: a === "plural" ? "cardinal" : "ordinal",
5619
- location: Le
5638
+ location: De
5620
5639
  },
5621
5640
  err: null
5622
5641
  };
@@ -5664,16 +5683,16 @@ var Co = (
5664
5683
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
5665
5684
  var n = [];
5666
5685
  try {
5667
- n = vo(t);
5686
+ n = po(t);
5668
5687
  } catch {
5669
5688
  return this.error(S.INVALID_NUMBER_SKELETON, r);
5670
5689
  }
5671
5690
  return {
5672
5691
  val: {
5673
- type: ht.number,
5692
+ type: ct.number,
5674
5693
  tokens: n,
5675
5694
  location: r,
5676
- parsedOptions: this.shouldParseSkeletons ? go(n) : {}
5695
+ parsedOptions: this.shouldParseSkeletons ? bo(n) : {}
5677
5696
  },
5678
5697
  err: null
5679
5698
  };
@@ -5721,7 +5740,7 @@ var Co = (
5721
5740
  break;
5722
5741
  }
5723
5742
  var u = A(i, this.clonePosition());
5724
- return s ? (o *= n, Bo(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
5743
+ return s ? (o *= n, Mo(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
5725
5744
  }, e.prototype.offset = function() {
5726
5745
  return this.position.offset;
5727
5746
  }, e.prototype.isEOF = function() {
@@ -5755,7 +5774,7 @@ var Co = (
5755
5774
  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);
5756
5775
  }
5757
5776
  }, e.prototype.bumpIf = function(t) {
5758
- if (Sn(this.message, t, this.offset())) {
5777
+ if (wn(this.message, t, this.offset())) {
5759
5778
  for (var r = 0; r < t.length; r++)
5760
5779
  this.bump();
5761
5780
  return !0;
@@ -5787,46 +5806,46 @@ var Co = (
5787
5806
  }, e;
5788
5807
  }()
5789
5808
  );
5790
- function Dr(e) {
5809
+ function Lr(e) {
5791
5810
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
5792
5811
  }
5793
- function Ro(e) {
5794
- return Dr(e) || e === 47;
5812
+ function Co(e) {
5813
+ return Lr(e) || e === 47;
5795
5814
  }
5796
- function Io(e) {
5815
+ function Ro(e) {
5797
5816
  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;
5798
5817
  }
5799
5818
  function zi(e) {
5800
5819
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
5801
5820
  }
5802
- function Lo(e) {
5821
+ function Io(e) {
5803
5822
  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;
5804
5823
  }
5805
- function Ur(e) {
5824
+ function Dr(e) {
5806
5825
  e.forEach(function(t) {
5807
5826
  if (delete t.location, Li(t) || Di(t))
5808
5827
  for (var r in t.options)
5809
- delete t.options[r].location, Ur(t.options[r].value);
5810
- else Ci(t) && Fi(t.style) || (Ri(t) || Ii(t)) && Cr(t.style) ? delete t.style.location : Ui(t) && Ur(t.children);
5828
+ delete t.options[r].location, Dr(t.options[r].value);
5829
+ else Ci(t) && Fi(t.style) || (Ri(t) || Ii(t)) && kr(t.style) ? delete t.style.location : Ui(t) && Dr(t.children);
5811
5830
  });
5812
5831
  }
5813
- function Do(e, t) {
5814
- t === void 0 && (t = {}), t = Kt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
5815
- var r = new Co(e, t).parse();
5832
+ function Lo(e, t) {
5833
+ t === void 0 && (t = {}), t = er({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
5834
+ var r = new ko(e, t).parse();
5816
5835
  if (r.err) {
5817
5836
  var n = SyntaxError(S[r.err.kind]);
5818
5837
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
5819
5838
  }
5820
- return t?.captureLocation || Ur(r.val), r.val;
5839
+ return t?.captureLocation || Dr(r.val), r.val;
5821
5840
  }
5822
- var ct;
5841
+ var dt;
5823
5842
  (function(e) {
5824
5843
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
5825
- })(ct || (ct = {}));
5826
- var ur = (
5844
+ })(dt || (dt = {}));
5845
+ var lr = (
5827
5846
  /** @class */
5828
5847
  function(e) {
5829
- or(t, e);
5848
+ ur(t, e);
5830
5849
  function t(r, n, i) {
5831
5850
  var s = e.call(this, r) || this;
5832
5851
  return s.code = n, s.originalMessage = i, s;
@@ -5835,93 +5854,93 @@ var ur = (
5835
5854
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
5836
5855
  }, t;
5837
5856
  }(Error)
5838
- ), An = (
5857
+ ), Hn = (
5839
5858
  /** @class */
5840
5859
  function(e) {
5841
- or(t, e);
5860
+ ur(t, e);
5842
5861
  function t(r, n, i, s) {
5843
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ct.INVALID_VALUE, s) || this;
5862
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), dt.INVALID_VALUE, s) || this;
5844
5863
  }
5845
5864
  return t;
5846
- }(ur)
5847
- ), Uo = (
5865
+ }(lr)
5866
+ ), Do = (
5848
5867
  /** @class */
5849
5868
  function(e) {
5850
- or(t, e);
5869
+ ur(t, e);
5851
5870
  function t(r, n, i) {
5852
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ct.INVALID_VALUE, i) || this;
5871
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), dt.INVALID_VALUE, i) || this;
5853
5872
  }
5854
5873
  return t;
5855
- }(ur)
5856
- ), Fo = (
5874
+ }(lr)
5875
+ ), Uo = (
5857
5876
  /** @class */
5858
5877
  function(e) {
5859
- or(t, e);
5878
+ ur(t, e);
5860
5879
  function t(r, n) {
5861
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ct.MISSING_VALUE, n) || this;
5880
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), dt.MISSING_VALUE, n) || this;
5862
5881
  }
5863
5882
  return t;
5864
- }(ur)
5865
- ), Q;
5883
+ }(lr)
5884
+ ), K;
5866
5885
  (function(e) {
5867
5886
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
5868
- })(Q || (Q = {}));
5869
- function Go(e) {
5887
+ })(K || (K = {}));
5888
+ function Fo(e) {
5870
5889
  return e.length < 2 ? e : e.reduce(function(t, r) {
5871
5890
  var n = t[t.length - 1];
5872
- return !n || n.type !== Q.literal || r.type !== Q.literal ? t.push(r) : n.value += r.value, t;
5891
+ return !n || n.type !== K.literal || r.type !== K.literal ? t.push(r) : n.value += r.value, t;
5873
5892
  }, []);
5874
5893
  }
5875
- function jo(e) {
5894
+ function Go(e) {
5876
5895
  return typeof e == "function";
5877
5896
  }
5878
- function Vt(e, t, r, n, i, s, o) {
5879
- if (e.length === 1 && yn(e[0]))
5897
+ function Xt(e, t, r, n, i, s, o) {
5898
+ if (e.length === 1 && gn(e[0]))
5880
5899
  return [
5881
5900
  {
5882
- type: Q.literal,
5901
+ type: K.literal,
5883
5902
  value: e[0].value
5884
5903
  }
5885
5904
  ];
5886
5905
  for (var a = [], u = 0, l = e; u < l.length; u++) {
5887
5906
  var f = l[u];
5888
- if (yn(f)) {
5907
+ if (gn(f)) {
5889
5908
  a.push({
5890
- type: Q.literal,
5909
+ type: K.literal,
5891
5910
  value: f.value
5892
5911
  });
5893
5912
  continue;
5894
5913
  }
5895
- if (fo(f)) {
5914
+ if (lo(f)) {
5896
5915
  typeof s == "number" && a.push({
5897
- type: Q.literal,
5916
+ type: K.literal,
5898
5917
  value: r.getNumberFormat(t).format(s)
5899
5918
  });
5900
5919
  continue;
5901
5920
  }
5902
5921
  var h = f.value;
5903
5922
  if (!(i && h in i))
5904
- throw new Fo(h, o);
5923
+ throw new Uo(h, o);
5905
5924
  var c = i[h];
5906
- if (lo(f)) {
5925
+ if (uo(f)) {
5907
5926
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
5908
- type: typeof c == "string" ? Q.literal : Q.object,
5927
+ type: typeof c == "string" ? K.literal : K.object,
5909
5928
  value: c
5910
5929
  });
5911
5930
  continue;
5912
5931
  }
5913
5932
  if (Ri(f)) {
5914
- var d = typeof f.style == "string" ? n.date[f.style] : Cr(f.style) ? f.style.parsedOptions : void 0;
5933
+ var d = typeof f.style == "string" ? n.date[f.style] : kr(f.style) ? f.style.parsedOptions : void 0;
5915
5934
  a.push({
5916
- type: Q.literal,
5935
+ type: K.literal,
5917
5936
  value: r.getDateTimeFormat(t, d).format(c)
5918
5937
  });
5919
5938
  continue;
5920
5939
  }
5921
5940
  if (Ii(f)) {
5922
- var d = typeof f.style == "string" ? n.time[f.style] : Cr(f.style) ? f.style.parsedOptions : n.time.medium;
5941
+ var d = typeof f.style == "string" ? n.time[f.style] : kr(f.style) ? f.style.parsedOptions : n.time.medium;
5923
5942
  a.push({
5924
- type: Q.literal,
5943
+ type: K.literal,
5925
5944
  value: r.getDateTimeFormat(t, d).format(c)
5926
5945
  });
5927
5946
  continue;
@@ -5929,61 +5948,61 @@ function Vt(e, t, r, n, i, s, o) {
5929
5948
  if (Ci(f)) {
5930
5949
  var d = typeof f.style == "string" ? n.number[f.style] : Fi(f.style) ? f.style.parsedOptions : void 0;
5931
5950
  d && d.scale && (c = c * (d.scale || 1)), a.push({
5932
- type: Q.literal,
5951
+ type: K.literal,
5933
5952
  value: r.getNumberFormat(t, d).format(c)
5934
5953
  });
5935
5954
  continue;
5936
5955
  }
5937
5956
  if (Ui(f)) {
5938
5957
  var p = f.children, w = f.value, P = i[w];
5939
- if (!jo(P))
5940
- throw new Uo(w, "function", o);
5941
- var G = Vt(p, t, r, n, i, s), X = P(G.map(function(Z) {
5942
- return Z.value;
5958
+ if (!Go(P))
5959
+ throw new Do(w, "function", o);
5960
+ var G = Xt(p, t, r, n, i, s), X = P(G.map(function(J) {
5961
+ return J.value;
5943
5962
  }));
5944
- Array.isArray(X) || (X = [X]), a.push.apply(a, X.map(function(Z) {
5963
+ Array.isArray(X) || (X = [X]), a.push.apply(a, X.map(function(J) {
5945
5964
  return {
5946
- type: typeof Z == "string" ? Q.literal : Q.object,
5947
- value: Z
5965
+ type: typeof J == "string" ? K.literal : K.object,
5966
+ value: J
5948
5967
  };
5949
5968
  }));
5950
5969
  }
5951
5970
  if (Li(f)) {
5952
5971
  var U = f.options[c] || f.options.other;
5953
5972
  if (!U)
5954
- throw new An(f.value, c, Object.keys(f.options), o);
5955
- a.push.apply(a, Vt(U.value, t, r, n, i));
5973
+ throw new Hn(f.value, c, Object.keys(f.options), o);
5974
+ a.push.apply(a, Xt(U.value, t, r, n, i));
5956
5975
  continue;
5957
5976
  }
5958
5977
  if (Di(f)) {
5959
5978
  var U = f.options["=".concat(c)];
5960
5979
  if (!U) {
5961
5980
  if (!Intl.PluralRules)
5962
- throw new ur(`Intl.PluralRules is not available in this environment.
5981
+ throw new lr(`Intl.PluralRules is not available in this environment.
5963
5982
  Try polyfilling it using "@formatjs/intl-pluralrules"
5964
- `, ct.MISSING_INTL_API, o);
5965
- var Se = r.getPluralRules(t, { type: f.pluralType }).select(c - (f.offset || 0));
5966
- U = f.options[Se] || f.options.other;
5983
+ `, dt.MISSING_INTL_API, o);
5984
+ var we = r.getPluralRules(t, { type: f.pluralType }).select(c - (f.offset || 0));
5985
+ U = f.options[we] || f.options.other;
5967
5986
  }
5968
5987
  if (!U)
5969
- throw new An(f.value, c, Object.keys(f.options), o);
5970
- a.push.apply(a, Vt(U.value, t, r, n, i, c - (f.offset || 0)));
5988
+ throw new Hn(f.value, c, Object.keys(f.options), o);
5989
+ a.push.apply(a, Xt(U.value, t, r, n, i, c - (f.offset || 0)));
5971
5990
  continue;
5972
5991
  }
5973
5992
  }
5974
- return Go(a);
5993
+ return Fo(a);
5975
5994
  }
5976
- function Vo(e, t) {
5977
- return t ? ge(ge(ge({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
5978
- return r[n] = ge(ge({}, e[n]), t[n] || {}), r;
5995
+ function jo(e, t) {
5996
+ return t ? be(be(be({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
5997
+ return r[n] = be(be({}, e[n]), t[n] || {}), r;
5979
5998
  }, {})) : e;
5980
5999
  }
5981
- function Xo(e, t) {
6000
+ function Vo(e, t) {
5982
6001
  return t ? Object.keys(e).reduce(function(r, n) {
5983
- return r[n] = Vo(e[n], t[n]), r;
5984
- }, ge({}, e)) : e;
6002
+ return r[n] = jo(e[n], t[n]), r;
6003
+ }, be({}, e)) : e;
5985
6004
  }
5986
- function yr(e) {
6005
+ function Er(e) {
5987
6006
  return {
5988
6007
  create: function() {
5989
6008
  return {
@@ -5997,39 +6016,39 @@ function yr(e) {
5997
6016
  }
5998
6017
  };
5999
6018
  }
6000
- function Wo(e) {
6019
+ function Xo(e) {
6001
6020
  return e === void 0 && (e = {
6002
6021
  number: {},
6003
6022
  dateTime: {},
6004
6023
  pluralRules: {}
6005
6024
  }), {
6006
- getNumberFormat: _r(function() {
6025
+ getNumberFormat: br(function() {
6007
6026
  for (var t, r = [], n = 0; n < arguments.length; n++)
6008
6027
  r[n] = arguments[n];
6009
- return new ((t = Intl.NumberFormat).bind.apply(t, mr([void 0], r, !1)))();
6028
+ return new ((t = Intl.NumberFormat).bind.apply(t, _r([void 0], r, !1)))();
6010
6029
  }, {
6011
- cache: yr(e.number),
6012
- strategy: br.variadic
6030
+ cache: Er(e.number),
6031
+ strategy: gr.variadic
6013
6032
  }),
6014
- getDateTimeFormat: _r(function() {
6033
+ getDateTimeFormat: br(function() {
6015
6034
  for (var t, r = [], n = 0; n < arguments.length; n++)
6016
6035
  r[n] = arguments[n];
6017
- return new ((t = Intl.DateTimeFormat).bind.apply(t, mr([void 0], r, !1)))();
6036
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, _r([void 0], r, !1)))();
6018
6037
  }, {
6019
- cache: yr(e.dateTime),
6020
- strategy: br.variadic
6038
+ cache: Er(e.dateTime),
6039
+ strategy: gr.variadic
6021
6040
  }),
6022
- getPluralRules: _r(function() {
6041
+ getPluralRules: br(function() {
6023
6042
  for (var t, r = [], n = 0; n < arguments.length; n++)
6024
6043
  r[n] = arguments[n];
6025
- return new ((t = Intl.PluralRules).bind.apply(t, mr([void 0], r, !1)))();
6044
+ return new ((t = Intl.PluralRules).bind.apply(t, _r([void 0], r, !1)))();
6026
6045
  }, {
6027
- cache: yr(e.pluralRules),
6028
- strategy: br.variadic
6046
+ cache: Er(e.pluralRules),
6047
+ strategy: gr.variadic
6029
6048
  })
6030
6049
  };
6031
6050
  }
6032
- var Yo = (
6051
+ var Wo = (
6033
6052
  /** @class */
6034
6053
  function() {
6035
6054
  function e(t, r, n, i) {
@@ -6044,11 +6063,11 @@ var Yo = (
6044
6063
  if (l.length === 1)
6045
6064
  return l[0].value;
6046
6065
  var f = l.reduce(function(h, c) {
6047
- return !h.length || c.type !== Q.literal || typeof h[h.length - 1] != "string" ? h.push(c.value) : h[h.length - 1] += c.value, h;
6066
+ return !h.length || c.type !== K.literal || typeof h[h.length - 1] != "string" ? h.push(c.value) : h[h.length - 1] += c.value, h;
6048
6067
  }, []);
6049
6068
  return f.length <= 1 ? f[0] || "" : f;
6050
6069
  }, this.formatToParts = function(u) {
6051
- return Vt(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
6070
+ return Xt(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
6052
6071
  }, this.resolvedOptions = function() {
6053
6072
  var u;
6054
6073
  return {
@@ -6061,13 +6080,13 @@ var Yo = (
6061
6080
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
6062
6081
  var o = i || {};
6063
6082
  o.formatters;
6064
- var a = to(o, ["formatters"]);
6065
- this.ast = e.__parse(t, ge(ge({}, a), { locale: this.resolvedLocale }));
6083
+ var a = eo(o, ["formatters"]);
6084
+ this.ast = e.__parse(t, be(be({}, a), { locale: this.resolvedLocale }));
6066
6085
  } else
6067
6086
  this.ast = t;
6068
6087
  if (!Array.isArray(this.ast))
6069
6088
  throw new TypeError("A message must be provided as a String or AST.");
6070
- this.formats = Xo(e.formats, n), this.formatters = i && i.formatters || Wo(this.formatterCache);
6089
+ this.formats = Vo(e.formats, n), this.formatters = i && i.formatters || Xo(this.formatterCache);
6071
6090
  }
6072
6091
  return Object.defineProperty(e, "defaultLocale", {
6073
6092
  get: function() {
@@ -6080,7 +6099,7 @@ var Yo = (
6080
6099
  var r = Intl.NumberFormat.supportedLocalesOf(t);
6081
6100
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
6082
6101
  }
6083
- }, e.__parse = Do, e.formats = {
6102
+ }, e.__parse = Lo, e.formats = {
6084
6103
  number: {
6085
6104
  integer: {
6086
6105
  maximumFractionDigits: 0
@@ -6141,7 +6160,7 @@ var Yo = (
6141
6160
  }, e;
6142
6161
  }()
6143
6162
  );
6144
- function zo(e, t) {
6163
+ function Yo(e, t) {
6145
6164
  if (t == null)
6146
6165
  return;
6147
6166
  if (t in e)
@@ -6162,36 +6181,36 @@ function zo(e, t) {
6162
6181
  n = void 0;
6163
6182
  return n;
6164
6183
  }
6165
- const Re = {}, qo = (e, t, r) => r && (t in Re || (Re[t] = {}), e in Re[t] || (Re[t][e] = r), r), qi = (e, t) => {
6184
+ const Re = {}, zo = (e, t, r) => r && (t in Re || (Re[t] = {}), e in Re[t] || (Re[t][e] = r), r), qi = (e, t) => {
6166
6185
  if (t == null)
6167
6186
  return;
6168
6187
  if (t in Re && e in Re[t])
6169
6188
  return Re[t][e];
6170
- const r = lr(t);
6189
+ const r = fr(t);
6171
6190
  for (let n = 0; n < r.length; n++) {
6172
- const i = r[n], s = Jo(i, e);
6191
+ const i = r[n], s = Zo(i, e);
6173
6192
  if (s)
6174
- return qo(e, t, s);
6193
+ return zo(e, t, s);
6175
6194
  }
6176
6195
  };
6177
- let nn;
6178
- const vt = ar({});
6179
- function Zo(e) {
6180
- return nn[e] || null;
6196
+ let rn;
6197
+ const mt = or({});
6198
+ function qo(e) {
6199
+ return rn[e] || null;
6181
6200
  }
6182
6201
  function Zi(e) {
6183
- return e in nn;
6202
+ return e in rn;
6184
6203
  }
6185
- function Jo(e, t) {
6204
+ function Zo(e, t) {
6186
6205
  if (!Zi(e))
6187
6206
  return null;
6188
- const r = Zo(e);
6189
- return zo(r, t);
6207
+ const r = qo(e);
6208
+ return Yo(r, t);
6190
6209
  }
6191
- function Qo(e) {
6210
+ function Jo(e) {
6192
6211
  if (e == null)
6193
6212
  return;
6194
- const t = lr(e);
6213
+ const t = fr(e);
6195
6214
  for (let r = 0; r < t.length; r++) {
6196
6215
  const n = t[r];
6197
6216
  if (Zi(n))
@@ -6199,55 +6218,55 @@ function Qo(e) {
6199
6218
  }
6200
6219
  }
6201
6220
  function Ji(e, ...t) {
6202
- delete Re[e], vt.update((r) => (r[e] = eo.all([r[e] || {}, ...t]), r));
6221
+ delete Re[e], mt.update((r) => (r[e] = Ka.all([r[e] || {}, ...t]), r));
6203
6222
  }
6204
- pt(
6205
- [vt],
6223
+ vt(
6224
+ [mt],
6206
6225
  ([e]) => Object.keys(e)
6207
6226
  );
6208
- vt.subscribe((e) => nn = e);
6209
- const Xt = {};
6210
- function Ko(e, t) {
6211
- Xt[e].delete(t), Xt[e].size === 0 && delete Xt[e];
6227
+ mt.subscribe((e) => rn = e);
6228
+ const Wt = {};
6229
+ function Qo(e, t) {
6230
+ Wt[e].delete(t), Wt[e].size === 0 && delete Wt[e];
6212
6231
  }
6213
6232
  function Qi(e) {
6214
- return Xt[e];
6233
+ return Wt[e];
6215
6234
  }
6216
- function eu(e) {
6217
- return lr(e).map((t) => {
6235
+ function Ko(e) {
6236
+ return fr(e).map((t) => {
6218
6237
  const r = Qi(t);
6219
6238
  return [t, r ? [...r] : []];
6220
6239
  }).filter(([, t]) => t.length > 0);
6221
6240
  }
6222
- function Fr(e) {
6223
- return e == null ? !1 : lr(e).some(
6241
+ function Ur(e) {
6242
+ return e == null ? !1 : fr(e).some(
6224
6243
  (t) => {
6225
6244
  var r;
6226
6245
  return (r = Qi(t)) == null ? void 0 : r.size;
6227
6246
  }
6228
6247
  );
6229
6248
  }
6230
- function tu(e, t) {
6249
+ function eu(e, t) {
6231
6250
  return Promise.all(
6232
- t.map((n) => (Ko(e, n), n().then((i) => i.default || i)))
6251
+ t.map((n) => (Qo(e, n), n().then((i) => i.default || i)))
6233
6252
  ).then((n) => Ji(e, ...n));
6234
6253
  }
6235
- const yt = {};
6254
+ const Et = {};
6236
6255
  function Ki(e) {
6237
- if (!Fr(e))
6238
- return e in yt ? yt[e] : Promise.resolve();
6239
- const t = eu(e);
6240
- return yt[e] = Promise.all(
6256
+ if (!Ur(e))
6257
+ return e in Et ? Et[e] : Promise.resolve();
6258
+ const t = Ko(e);
6259
+ return Et[e] = Promise.all(
6241
6260
  t.map(
6242
- ([r, n]) => tu(r, n)
6261
+ ([r, n]) => eu(r, n)
6243
6262
  )
6244
6263
  ).then(() => {
6245
- if (Fr(e))
6264
+ if (Ur(e))
6246
6265
  return Ki(e);
6247
- delete yt[e];
6248
- }), yt[e];
6266
+ delete Et[e];
6267
+ }), Et[e];
6249
6268
  }
6250
- const ru = {
6269
+ const tu = {
6251
6270
  number: {
6252
6271
  scientific: { notation: "scientific" },
6253
6272
  engineering: { notation: "engineering" },
@@ -6276,141 +6295,141 @@ const ru = {
6276
6295
  timeZoneName: "short"
6277
6296
  }
6278
6297
  }
6279
- }, nu = {
6298
+ }, ru = {
6280
6299
  fallbackLocale: null,
6281
6300
  loadingDelay: 200,
6282
- formats: ru,
6301
+ formats: tu,
6283
6302
  warnOnMissingMessages: !0,
6284
6303
  handleMissingMessage: void 0,
6285
6304
  ignoreTag: !0
6286
- }, iu = nu;
6287
- function dt() {
6288
- return iu;
6305
+ }, nu = ru;
6306
+ function pt() {
6307
+ return nu;
6289
6308
  }
6290
- const Er = ar(!1);
6291
- var su = Object.defineProperty, au = Object.defineProperties, ou = Object.getOwnPropertyDescriptors, $n = Object.getOwnPropertySymbols, uu = Object.prototype.hasOwnProperty, lu = Object.prototype.propertyIsEnumerable, On = (e, t, r) => t in e ? su(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fu = (e, t) => {
6309
+ const xr = or(!1);
6310
+ var iu = Object.defineProperty, su = Object.defineProperties, au = Object.getOwnPropertyDescriptors, An = Object.getOwnPropertySymbols, ou = Object.prototype.hasOwnProperty, uu = Object.prototype.propertyIsEnumerable, $n = (e, t, r) => t in e ? iu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lu = (e, t) => {
6292
6311
  for (var r in t || (t = {}))
6293
- uu.call(t, r) && On(e, r, t[r]);
6294
- if ($n)
6295
- for (var r of $n(t))
6296
- lu.call(t, r) && On(e, r, t[r]);
6312
+ ou.call(t, r) && $n(e, r, t[r]);
6313
+ if (An)
6314
+ for (var r of An(t))
6315
+ uu.call(t, r) && $n(e, r, t[r]);
6297
6316
  return e;
6298
- }, hu = (e, t) => au(e, ou(t));
6299
- let Gr;
6300
- const er = ar(null);
6301
- function Mn(e) {
6317
+ }, fu = (e, t) => su(e, au(t));
6318
+ let Fr;
6319
+ const tr = or(null);
6320
+ function On(e) {
6302
6321
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
6303
6322
  }
6304
- function lr(e, t = dt().fallbackLocale) {
6305
- const r = Mn(e);
6306
- return t ? [.../* @__PURE__ */ new Set([...r, ...Mn(t)])] : r;
6323
+ function fr(e, t = pt().fallbackLocale) {
6324
+ const r = On(e);
6325
+ return t ? [.../* @__PURE__ */ new Set([...r, ...On(t)])] : r;
6307
6326
  }
6308
- function qe() {
6309
- return Gr ?? void 0;
6327
+ function Ze() {
6328
+ return Fr ?? void 0;
6310
6329
  }
6311
- er.subscribe((e) => {
6312
- Gr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
6330
+ tr.subscribe((e) => {
6331
+ Fr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
6313
6332
  });
6314
- const cu = (e) => {
6315
- if (e && Qo(e) && Fr(e)) {
6316
- const { loadingDelay: t } = dt();
6333
+ const hu = (e) => {
6334
+ if (e && Jo(e) && Ur(e)) {
6335
+ const { loadingDelay: t } = pt();
6317
6336
  let r;
6318
- return typeof window < "u" && qe() != null && t ? r = window.setTimeout(
6319
- () => Er.set(!0),
6337
+ return typeof window < "u" && Ze() != null && t ? r = window.setTimeout(
6338
+ () => xr.set(!0),
6320
6339
  t
6321
- ) : Er.set(!0), Ki(e).then(() => {
6322
- er.set(e);
6340
+ ) : xr.set(!0), Ki(e).then(() => {
6341
+ tr.set(e);
6323
6342
  }).finally(() => {
6324
- clearTimeout(r), Er.set(!1);
6343
+ clearTimeout(r), xr.set(!1);
6325
6344
  });
6326
6345
  }
6327
- return er.set(e);
6328
- }, We = hu(fu({}, er), {
6329
- set: cu
6330
- }), fr = (e) => {
6346
+ return tr.set(e);
6347
+ }, Ye = fu(lu({}, tr), {
6348
+ set: hu
6349
+ }), hr = (e) => {
6331
6350
  const t = /* @__PURE__ */ Object.create(null);
6332
6351
  return (n) => {
6333
6352
  const i = JSON.stringify(n);
6334
6353
  return i in t ? t[i] : t[i] = e(n);
6335
6354
  };
6336
6355
  };
6337
- var du = Object.defineProperty, tr = Object.getOwnPropertySymbols, es = Object.prototype.hasOwnProperty, ts = Object.prototype.propertyIsEnumerable, Bn = (e, t, r) => t in e ? du(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, sn = (e, t) => {
6356
+ var cu = Object.defineProperty, rr = Object.getOwnPropertySymbols, es = Object.prototype.hasOwnProperty, ts = Object.prototype.propertyIsEnumerable, Mn = (e, t, r) => t in e ? cu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nn = (e, t) => {
6338
6357
  for (var r in t || (t = {}))
6339
- es.call(t, r) && Bn(e, r, t[r]);
6340
- if (tr)
6341
- for (var r of tr(t))
6342
- ts.call(t, r) && Bn(e, r, t[r]);
6358
+ es.call(t, r) && Mn(e, r, t[r]);
6359
+ if (rr)
6360
+ for (var r of rr(t))
6361
+ ts.call(t, r) && Mn(e, r, t[r]);
6343
6362
  return e;
6344
- }, mt = (e, t) => {
6363
+ }, _t = (e, t) => {
6345
6364
  var r = {};
6346
6365
  for (var n in e)
6347
6366
  es.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
6348
- if (e != null && tr)
6349
- for (var n of tr(e))
6367
+ if (e != null && rr)
6368
+ for (var n of rr(e))
6350
6369
  t.indexOf(n) < 0 && ts.call(e, n) && (r[n] = e[n]);
6351
6370
  return r;
6352
6371
  };
6353
- const Bt = (e, t) => {
6354
- const { formats: r } = dt();
6372
+ const Pt = (e, t) => {
6373
+ const { formats: r } = pt();
6355
6374
  if (e in r && t in r[e])
6356
6375
  return r[e][t];
6357
6376
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
6358
- }, pu = fr(
6377
+ }, du = hr(
6359
6378
  (e) => {
6360
- var t = e, { locale: r, format: n } = t, i = mt(t, ["locale", "format"]);
6379
+ var t = e, { locale: r, format: n } = t, i = _t(t, ["locale", "format"]);
6361
6380
  if (r == null)
6362
6381
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
6363
- return n && (i = Bt("number", n)), new Intl.NumberFormat(r, i);
6382
+ return n && (i = Pt("number", n)), new Intl.NumberFormat(r, i);
6364
6383
  }
6365
- ), vu = fr(
6384
+ ), pu = hr(
6366
6385
  (e) => {
6367
- var t = e, { locale: r, format: n } = t, i = mt(t, ["locale", "format"]);
6386
+ var t = e, { locale: r, format: n } = t, i = _t(t, ["locale", "format"]);
6368
6387
  if (r == null)
6369
6388
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
6370
- return n ? i = Bt("date", n) : Object.keys(i).length === 0 && (i = Bt("date", "short")), new Intl.DateTimeFormat(r, i);
6389
+ return n ? i = Pt("date", n) : Object.keys(i).length === 0 && (i = Pt("date", "short")), new Intl.DateTimeFormat(r, i);
6371
6390
  }
6372
- ), mu = fr(
6391
+ ), vu = hr(
6373
6392
  (e) => {
6374
- var t = e, { locale: r, format: n } = t, i = mt(t, ["locale", "format"]);
6393
+ var t = e, { locale: r, format: n } = t, i = _t(t, ["locale", "format"]);
6375
6394
  if (r == null)
6376
6395
  throw new Error(
6377
6396
  '[svelte-i18n] A "locale" must be set to format time values'
6378
6397
  );
6379
- return n ? i = Bt("time", n) : Object.keys(i).length === 0 && (i = Bt("time", "short")), new Intl.DateTimeFormat(r, i);
6398
+ return n ? i = Pt("time", n) : Object.keys(i).length === 0 && (i = Pt("time", "short")), new Intl.DateTimeFormat(r, i);
6380
6399
  }
6381
- ), _u = (e = {}) => {
6400
+ ), mu = (e = {}) => {
6382
6401
  var t = e, {
6383
- locale: r = qe()
6384
- } = t, n = mt(t, [
6402
+ locale: r = Ze()
6403
+ } = t, n = _t(t, [
6385
6404
  "locale"
6386
6405
  ]);
6387
- return pu(sn({ locale: r }, n));
6388
- }, bu = (e = {}) => {
6406
+ return du(nn({ locale: r }, n));
6407
+ }, _u = (e = {}) => {
6389
6408
  var t = e, {
6390
- locale: r = qe()
6391
- } = t, n = mt(t, [
6409
+ locale: r = Ze()
6410
+ } = t, n = _t(t, [
6392
6411
  "locale"
6393
6412
  ]);
6394
- return vu(sn({ locale: r }, n));
6395
- }, gu = (e = {}) => {
6413
+ return pu(nn({ locale: r }, n));
6414
+ }, bu = (e = {}) => {
6396
6415
  var t = e, {
6397
- locale: r = qe()
6398
- } = t, n = mt(t, [
6416
+ locale: r = Ze()
6417
+ } = t, n = _t(t, [
6399
6418
  "locale"
6400
6419
  ]);
6401
- return mu(sn({ locale: r }, n));
6402
- }, yu = fr(
6420
+ return vu(nn({ locale: r }, n));
6421
+ }, gu = hr(
6403
6422
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
6404
- (e, t = qe()) => new Yo(e, t, dt().formats, {
6405
- ignoreTag: dt().ignoreTag
6423
+ (e, t = Ze()) => new Wo(e, t, pt().formats, {
6424
+ ignoreTag: pt().ignoreTag
6406
6425
  })
6407
- ), Eu = (e, t = {}) => {
6426
+ ), yu = (e, t = {}) => {
6408
6427
  var r, n, i, s;
6409
6428
  let o = t;
6410
6429
  typeof e == "object" && (o = e, e = o.id);
6411
6430
  const {
6412
6431
  values: a,
6413
- locale: u = qe(),
6432
+ locale: u = Ze(),
6414
6433
  default: l
6415
6434
  } = o;
6416
6435
  if (u == null)
@@ -6419,7 +6438,7 @@ const Bt = (e, t) => {
6419
6438
  );
6420
6439
  let f = qi(e, u);
6421
6440
  if (!f)
6422
- f = (s = (i = (n = (r = dt()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
6441
+ f = (s = (i = (n = (r = pt()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
6423
6442
  else if (typeof f != "string")
6424
6443
  return console.warn(
6425
6444
  `[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.`
@@ -6428,7 +6447,7 @@ const Bt = (e, t) => {
6428
6447
  return f;
6429
6448
  let h = f;
6430
6449
  try {
6431
- h = yu(f, u).format(a);
6450
+ h = gu(f, u).format(a);
6432
6451
  } catch (c) {
6433
6452
  c instanceof Error && console.warn(
6434
6453
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -6436,20 +6455,20 @@ const Bt = (e, t) => {
6436
6455
  );
6437
6456
  }
6438
6457
  return h;
6439
- }, xu = (e, t) => gu(t).format(e), wu = (e, t) => bu(t).format(e), Su = (e, t) => _u(t).format(e), Tu = (e, t = qe()) => qi(e, t), Hu = pt([We, vt], () => Eu);
6440
- pt([We], () => xu);
6441
- pt([We], () => wu);
6442
- pt([We], () => Su);
6443
- pt([We, vt], () => Tu);
6444
- function Au({ withLocale: e, translations: t }) {
6445
- We.subscribe((r) => {
6446
- r == null && (vt.set(t), We.set(e));
6458
+ }, Eu = (e, t) => bu(t).format(e), xu = (e, t) => _u(t).format(e), wu = (e, t) => mu(t).format(e), Su = (e, t = Ze()) => qi(e, t), Tu = vt([Ye, mt], () => yu);
6459
+ vt([Ye], () => Eu);
6460
+ vt([Ye], () => xu);
6461
+ vt([Ye], () => wu);
6462
+ vt([Ye, mt], () => Su);
6463
+ function Hu({ withLocale: e, translations: t }) {
6464
+ Ye.subscribe((r) => {
6465
+ r == null && (mt.set(t), Ye.set(e));
6447
6466
  });
6448
6467
  }
6449
- function Nn(e, t) {
6468
+ function Bn(e, t) {
6450
6469
  Ji(e, t);
6451
6470
  }
6452
- const $u = {
6471
+ const Au = {
6453
6472
  en: {
6454
6473
  requestRakeback: "Request Rakeback"
6455
6474
  },
@@ -6471,9 +6490,9 @@ const $u = {
6471
6490
  hu: {
6472
6491
  requestRakeback: "Rakeback igénylése"
6473
6492
  }
6474
- }, Ou = "RakebackClaimConfirmed";
6475
- var Mu = /* @__PURE__ */ Hi('<div class="loyalty-rakeback-card svelte-bm1wev"><div class="loyalty-rakeback-card__content svelte-bm1wev"><span class="loyalty-rakeback-card__amount svelte-bm1wev"> </span> <button class="loyalty-rakeback-card__button svelte-bm1wev" type="button"> </button></div></div>'), Bu = /* @__PURE__ */ Hi('<div class="loyalty-rakeback-card svelte-bm1wev" aria-busy="true"><div class="loyalty-rakeback-card__content loyalty-rakeback-card__content--skeleton svelte-bm1wev"><span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--amount svelte-bm1wev"></span> <span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--button svelte-bm1wev"></span></div></div>');
6476
- const Nu = {
6493
+ }, $u = "RakebackClaimConfirmed";
6494
+ var Ou = /* @__PURE__ */ Hi('<div class="loyalty-rakeback-card svelte-bm1wev"><div class="loyalty-rakeback-card__content svelte-bm1wev"><span class="loyalty-rakeback-card__amount svelte-bm1wev"> </span> <button class="loyalty-rakeback-card__button svelte-bm1wev" type="button"> </button></div></div>'), Mu = /* @__PURE__ */ Hi('<div class="loyalty-rakeback-card svelte-bm1wev" aria-busy="true"><div class="loyalty-rakeback-card__content loyalty-rakeback-card__content--skeleton svelte-bm1wev"><span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--amount svelte-bm1wev"></span> <span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--button svelte-bm1wev"></span></div></div>');
6495
+ const Bu = {
6477
6496
  hash: "svelte-bm1wev",
6478
6497
  code: `.loyalty-rakeback-card.svelte-bm1wev {padding:14px 16px;display:inline-flex;flex-direction:column;background-color:var(--app-container-bg-default, #022652);border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));width:100%;box-sizing:border-box;}.loyalty-rakeback-card__content.svelte-bm1wev {display:flex;align-items:baseline;gap:8px;justify-content:space-between;}.loyalty-rakeback-card__amount.svelte-bm1wev {color:var(--text-default, #ffffff);font-size:16px;font-weight:700;line-height:140%;}.loyalty-rakeback-card__button.svelte-bm1wev {height:37px;border-radius:6px;border-width:1px;padding:10px 16px;cursor:pointer;background:var(--button-secondary-bg-default, rgba(251, 251, 251, 0.1));border:solid 1px var(--button-secondary-border-default, rgba(251, 251, 251, 0.05));font-size:12px;font-weight:700;color:var(--button-secondary-text-default, #ffffff);}.loyalty-rakeback-card__button.svelte-bm1wev:disabled {opacity:0.4;cursor:default;}.loyalty-rakeback-skeleton.svelte-bm1wev {display:block;border-radius:4px;background:linear-gradient(
6479
6498
  90deg,
@@ -6497,36 +6516,36 @@ const Nu = {
6497
6516
  }`
6498
6517
  };
6499
6518
  function rs(e, t) {
6500
- Xr(t, !0), Ea(e, Nu);
6501
- const r = () => Sa(Hu, "$_", n), [n, i] = Ta(), s = Ce(t, "apiEndpoint", 7, ""), o = Ce(t, "userSession", 7, ""), a = Ce(t, "locale", 7, ""), u = Ce(t, "translationUrl");
6502
- Au({ withLocale: a(), translations: {} }), Object.entries($u).forEach(([b, R]) => {
6503
- Nn(b, R);
6519
+ Vr(t, !0), ya(e, Bu);
6520
+ const r = () => wa(Tu, "$_", n), [n, i] = Sa(), s = Ce(t, "apiEndpoint", 7, ""), o = Ce(t, "userSession", 7, ""), a = Ce(t, "locale", 7, ""), u = Ce(t, "translationUrl");
6521
+ Hu({ withLocale: a(), translations: {} }), Object.entries(Au).forEach(([b, R]) => {
6522
+ Bn(b, R);
6504
6523
  });
6505
6524
  const l = () => {
6506
6525
  let b = new URL(u(), window.location.href);
6507
6526
  fetch(b.href).then((R) => R.json()).then((R) => {
6508
6527
  Object.keys(R).forEach((Pe) => {
6509
- Nn(Pe, R[Pe]);
6528
+ Bn(Pe, R[Pe]);
6510
6529
  });
6511
6530
  }).catch((R) => {
6512
6531
  console.log("loyalty rakeback translation url err:", R);
6513
6532
  });
6514
6533
  };
6515
- qs(() => {
6534
+ zs(() => {
6516
6535
  u() && l();
6517
6536
  });
6518
6537
  let f = /* @__PURE__ */ oe(void 0), h = /* @__PURE__ */ oe(!1), c = /* @__PURE__ */ oe(!1), d = /* @__PURE__ */ oe(!1);
6519
- const p = /* @__PURE__ */ It(() => O(f) ? ka(O(f).total.points <= 0 ? 0 : O(f).total.points, 2) : "0.00"), w = /* @__PURE__ */ It(() => Ca(O(f)?.currency ?? "", a())), P = /* @__PURE__ */ It(() => !!O(f)?.claimable), G = /* @__PURE__ */ It(() => O(h)), X = async () => {
6538
+ const p = /* @__PURE__ */ Dt(() => O(f) ? Pa(O(f).total.points <= 0 ? 0 : O(f).total.points, 2) : "0.00"), w = /* @__PURE__ */ Dt(() => ka(O(f)?.currency ?? "", a())), P = /* @__PURE__ */ Dt(() => !!O(f)?.claimable), G = /* @__PURE__ */ Dt(() => O(h)), X = async () => {
6520
6539
  if (!(!s() || !o())) {
6521
6540
  Y(d, !0);
6522
6541
  try {
6523
- const b = await Oa({
6542
+ const b = await $a({
6524
6543
  apiEndpoint: s(),
6525
6544
  userSession: o(),
6526
6545
  locale: a()
6527
6546
  });
6528
6547
  if (!b.rakebackWallet) {
6529
- Y(h, !1), Da();
6548
+ Y(h, !1), La();
6530
6549
  return;
6531
6550
  }
6532
6551
  Y(f, b.rakebackWallet, !0), Y(h, !0);
@@ -6537,79 +6556,79 @@ function rs(e, t) {
6537
6556
  }
6538
6557
  }
6539
6558
  }, U = () => {
6540
- !O(P) || O(c) || !O(f) || Ra(O(f).total.points);
6541
- }, Se = async () => {
6559
+ !O(P) || O(c) || !O(f) || Ca(O(f).total.points);
6560
+ }, we = async () => {
6542
6561
  if (!(!s() || !o() || !O(f))) {
6543
6562
  Y(c, !0);
6544
6563
  try {
6545
- await Ma({
6564
+ await Oa({
6546
6565
  apiEndpoint: s(),
6547
6566
  userSession: o(),
6548
6567
  locale: a()
6549
- }), await X(), Ia(O(f).total.points);
6568
+ }), await X(), Ra(O(f).total.points);
6550
6569
  } catch (b) {
6551
- console.error("Claim rakeback: ", b), La(b.message);
6570
+ console.error("Claim rakeback: ", b), Ia(b.message);
6552
6571
  } finally {
6553
6572
  Y(c, !1);
6554
6573
  }
6555
6574
  }
6556
6575
  };
6557
- cn(() => {
6576
+ hn(() => {
6558
6577
  s(), o(), a(), X();
6559
- }), cn(() => {
6578
+ }), hn(() => {
6560
6579
  const b = (R) => {
6561
- R.data?.type === Ou && Se();
6580
+ R.data?.type === $u && we();
6562
6581
  };
6563
6582
  return window.addEventListener("message", b), () => window.removeEventListener("message", b);
6564
6583
  });
6565
- var Z = {
6584
+ var J = {
6566
6585
  get apiEndpoint() {
6567
6586
  return s();
6568
6587
  },
6569
6588
  set apiEndpoint(b = "") {
6570
- s(b), Ae();
6589
+ s(b), He();
6571
6590
  },
6572
6591
  get userSession() {
6573
6592
  return o();
6574
6593
  },
6575
6594
  set userSession(b = "") {
6576
- o(b), Ae();
6595
+ o(b), He();
6577
6596
  },
6578
6597
  get locale() {
6579
6598
  return a();
6580
6599
  },
6581
6600
  set locale(b = "") {
6582
- a(b), Ae();
6601
+ a(b), He();
6583
6602
  },
6584
6603
  get translationUrl() {
6585
6604
  return u();
6586
6605
  },
6587
6606
  set translationUrl(b) {
6588
- u(b), Ae();
6607
+ u(b), He();
6589
6608
  }
6590
- }, J = fa(), Le = js(J);
6609
+ }, Q = la(), De = Gs(Q);
6591
6610
  {
6592
- var _t = (b) => {
6593
- var R = Mu(), Pe = Mr(R), y = Mr(Pe), _ = hn(y), v = Vs(y, 2), g = hn(v, !0);
6594
- Tr(Pe), Tr(R), ea(
6611
+ var bt = (b) => {
6612
+ var R = Ou(), Pe = Or(R), y = Or(Pe), _ = fn(y), v = js(y, 2), g = fn(v, !0);
6613
+ Tr(Pe), Tr(R), Ks(
6595
6614
  (m) => {
6596
- bn(_, `${O(p) ?? ""} ${O(w) ?? ""}`), v.disabled = O(c) || !O(P), bn(g, m);
6615
+ _n(_, `${O(p) ?? ""} ${O(w) ?? ""}`), v.disabled = O(c) || !O(P), _n(g, m);
6597
6616
  },
6598
6617
  [() => r()("requestRakeback")]
6599
- ), sa("click", v, U), Gt(b, R);
6600
- }, Ze = (b) => {
6601
- var R = Bu();
6602
- Gt(b, R);
6618
+ ), ia("click", v, U), jt(b, R);
6619
+ }, Je = (b) => {
6620
+ var R = Mu();
6621
+ jt(b, R);
6603
6622
  };
6604
- ya(Le, (b) => {
6605
- O(G) ? b(_t) : O(d) && b(Ze, 1);
6623
+ ga(De, (b) => {
6624
+ O(G) ? b(bt) : O(d) && b(Je, 1);
6606
6625
  });
6607
6626
  }
6608
- Gt(e, J);
6609
- var F = Wr(Z);
6627
+ jt(e, Q);
6628
+ var F = Xr(J);
6610
6629
  return i(), F;
6611
6630
  }
6612
- aa(["click"]);
6631
+ sa(["click"]);
6613
6632
  Mi(
6614
6633
  rs,
6615
6634
  {
@@ -6623,32 +6642,32 @@ Mi(
6623
6642
  { mode: "open" }
6624
6643
  );
6625
6644
  function ns(e, t) {
6626
- Xr(t, !0);
6645
+ Vr(t, !0);
6627
6646
  let r = Ce(t, "apiEndpoint", 7, ""), n = Ce(t, "userSession", 7, ""), i = Ce(t, "locale", 7, ""), s = Ce(t, "translationUrl");
6628
6647
  var o = {
6629
6648
  get apiEndpoint() {
6630
6649
  return r();
6631
6650
  },
6632
6651
  set apiEndpoint(a = "") {
6633
- r(a), Ae();
6652
+ r(a), He();
6634
6653
  },
6635
6654
  get userSession() {
6636
6655
  return n();
6637
6656
  },
6638
6657
  set userSession(a = "") {
6639
- n(a), Ae();
6658
+ n(a), He();
6640
6659
  },
6641
6660
  get locale() {
6642
6661
  return i();
6643
6662
  },
6644
6663
  set locale(a = "") {
6645
- i(a), Ae();
6664
+ i(a), He();
6646
6665
  },
6647
6666
  get translationUrl() {
6648
6667
  return s();
6649
6668
  },
6650
6669
  set translationUrl(a) {
6651
- s(a), Ae();
6670
+ s(a), He();
6652
6671
  }
6653
6672
  };
6654
6673
  return rs(e, {
@@ -6664,7 +6683,7 @@ function ns(e, t) {
6664
6683
  get translationUrl() {
6665
6684
  return s();
6666
6685
  }
6667
- }), Wr(o);
6686
+ }), Xr(o);
6668
6687
  }
6669
6688
  customElements.define("loyalty-rakeback", Mi(
6670
6689
  ns,
@@ -6677,11 +6696,11 @@ customElements.define("loyalty-rakeback", Mi(
6677
6696
  [],
6678
6697
  []
6679
6698
  ));
6680
- const ku = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6699
+ const Pu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6681
6700
  __proto__: null,
6682
6701
  default: ns
6683
6702
  }, Symbol.toStringTag, { value: "Module" }));
6684
6703
  export {
6685
6704
  rs as L,
6686
- ku as a
6705
+ Pu as a
6687
6706
  };