@everymatrix/loyalty-shop 0.1.23 → 0.1.24

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.
Files changed (23) hide show
  1. package/components/LoyaltyPagination-BISbknCY.cjs +14 -0
  2. package/components/{LoyaltyPagination-o3rQCgms.js → LoyaltyPagination-BZk1S01e.js} +1493 -1467
  3. package/components/{LoyaltyPagination-D7m97E0W.js → LoyaltyPagination-CfB2kCYx.js} +819 -793
  4. package/components/LoyaltyPagination-n22faI_k.cjs +14 -0
  5. package/components/{LoyaltyPointsCard-5kjF6xRz.cjs → LoyaltyPointsCard-Bk2oWu8Y.cjs} +1 -1
  6. package/components/{LoyaltyPointsCard-46BqNZEK.cjs → LoyaltyPointsCard-C4TY5Odb.cjs} +1 -1
  7. package/components/{LoyaltyPointsCard-SZEIZzo0.js → LoyaltyPointsCard-DgrWMn_V.js} +1 -1
  8. package/components/{LoyaltyPointsCard-CdBEe40I.js → LoyaltyPointsCard-jP0P8jiI.js} +1 -1
  9. package/components/{LoyaltyShop-WqEP7fBO.cjs → LoyaltyShop-9D4_2iLM.cjs} +1 -1
  10. package/components/{LoyaltyShop-DTaj_V0H.cjs → LoyaltyShop-BYXBV-P0.cjs} +1 -1
  11. package/components/{LoyaltyShop-Jn3qrA-n.js → LoyaltyShop-CUN0MKDN.js} +4 -4
  12. package/components/{LoyaltyShop-ttYCQMVa.js → LoyaltyShop-D-Gsl4ZM.js} +4 -4
  13. package/components/{LoyaltyShopItem-CJk-XfSP.cjs → LoyaltyShopItem-CC3RrQxC.cjs} +1 -1
  14. package/components/{LoyaltyShopItem-6udy8eXZ.js → LoyaltyShopItem-DF8vUi7m.js} +3 -3
  15. package/components/{LoyaltyShopItem-IvsEBlK0.cjs → LoyaltyShopItem-WgDbYlQa.cjs} +1 -1
  16. package/components/{LoyaltyShopItem-DVSebOOP.js → LoyaltyShopItem-bTc7oBXE.js} +3 -3
  17. package/es2015/loyalty-shop.cjs +1 -1
  18. package/es2015/loyalty-shop.js +2 -2
  19. package/esnext/loyalty-shop.cjs +1 -1
  20. package/esnext/loyalty-shop.js +2 -2
  21. package/package.json +1 -1
  22. package/components/LoyaltyPagination-ChnSUs6d.cjs +0 -14
  23. package/components/LoyaltyPagination-DzmuO9_8.cjs +0 -14
@@ -5,21 +5,21 @@ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
5
5
  } });
6
6
  const Ps = "5";
7
7
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(Ps);
8
- const $s = 1, Is = 2, ni = 4, Bs = 8, Ls = 16, Cs = 1, Rs = 2, ii = "[", on = "[!", On = "[?", un = "]", dt = {}, J = Symbol("uninitialized"), Ds = "http://www.w3.org/1999/xhtml", si = !1;
9
- var ai = Array.isArray, Us = Array.prototype.indexOf, er = Array.prototype.includes, dr = Array.from, tr = Object.keys, pt = Object.defineProperty, ft = Object.getOwnPropertyDescriptor, Fs = Object.getOwnPropertyDescriptors, Gs = Object.prototype, ks = Array.prototype, oi = Object.getPrototypeOf, Nn = Object.isExtensible;
8
+ const $s = 1, Is = 2, ii = 4, Bs = 8, Ls = 16, Cs = 1, Rs = 2, si = "[", un = "[!", Nn = "[?", ln = "]", ct = {}, J = Symbol("uninitialized"), Ds = "http://www.w3.org/1999/xhtml", ai = !1;
9
+ var oi = Array.isArray, Us = Array.prototype.indexOf, er = Array.prototype.includes, dr = Array.from, tr = Object.keys, dt = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, Fs = Object.getOwnPropertyDescriptors, Gs = Object.prototype, ks = Array.prototype, ui = Object.getPrototypeOf, Pn = Object.isExtensible;
10
10
  const Ce = () => {
11
11
  };
12
- function ui(e) {
12
+ function li(e) {
13
13
  for (var t = 0; t < e.length; t++)
14
14
  e[t]();
15
15
  }
16
- function li() {
16
+ function fi() {
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 K = 2, vt = 4, Gt = 8, fi = 1 << 24, ye = 16, ge = 32, Pe = 64, Ur = 128, ln = 256, _e = 512, Q = 1024, q = 2048, we = 4096, ie = 8192, le = 16384, rt = 32768, rr = 1 << 25, _t = 65536, nr = 1 << 17, js = 1 << 18, nt = 1 << 19, hi = 1 << 20, Me = 1 << 25, et = 65536, ir = 1 << 21, ht = 1 << 22, Ve = 1 << 23, zt = Symbol("$state"), ci = Symbol("component"), Vs = Symbol("legacy props"), Xs = Symbol(""), di = Symbol("attributes"), Fr = Symbol("class"), Ws = Symbol("style"), Gr = Symbol("text"), kt = new class extends Error {
22
+ const K = 2, pt = 4, Gt = 8, hi = 1 << 24, ye = 16, ge = 32, Pe = 64, Ur = 128, fn = 256, we = 512, Q = 1024, z = 2048, _e = 4096, ie = 8192, se = 16384, rt = 32768, rr = 1 << 25, vt = 65536, nr = 1 << 17, js = 1 << 18, nt = 1 << 19, ci = 1 << 20, Me = 1 << 25, ir = 1 << 21, ft = 1 << 22, Ve = 1 << 23, zt = Symbol("$state"), di = Symbol("component"), Vs = Symbol("legacy props"), Xs = Symbol(""), pi = Symbol("attributes"), Fr = Symbol("class"), Ws = Symbol("style"), Gr = Symbol("text"), kt = new class extends Error {
23
23
  name = "StaleReactionError";
24
24
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
25
25
  }(), Ys = (
@@ -42,7 +42,7 @@ function Le(e) {
42
42
  let B;
43
43
  function fe(e) {
44
44
  if (e === null)
45
- throw vr(), dt;
45
+ throw vr(), ct;
46
46
  return B = e;
47
47
  }
48
48
  function _r() {
@@ -51,7 +51,7 @@ function _r() {
51
51
  function kr(e) {
52
52
  if (L) {
53
53
  if (/* @__PURE__ */ Ie(B) !== null)
54
- throw vr(), dt;
54
+ throw vr(), ct;
55
55
  B = e;
56
56
  }
57
57
  }
@@ -70,10 +70,10 @@ function sr(e = !0) {
70
70
  /** @type {Comment} */
71
71
  r.data
72
72
  );
73
- if (n === un) {
73
+ if (n === ln) {
74
74
  if (t === 0) return r;
75
75
  t -= 1;
76
- } else (n === ii || n === on || // "[1", "[2", etc. for if blocks
76
+ } else (n === si || n === un || // "[1", "[2", etc. for if blocks
77
77
  n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
78
78
  }
79
79
  var i = (
@@ -83,22 +83,22 @@ function sr(e = !0) {
83
83
  e && r.remove(), r = i;
84
84
  }
85
85
  }
86
- function pi(e) {
86
+ function vi(e) {
87
87
  if (!e || e.nodeType !== jt)
88
- throw vr(), dt;
88
+ throw vr(), ct;
89
89
  return (
90
90
  /** @type {Comment} */
91
91
  e.data
92
92
  );
93
93
  }
94
- function vi(e) {
94
+ function _i(e) {
95
95
  return e === this.v;
96
96
  }
97
- function _i(e, t) {
97
+ function mi(e, t) {
98
98
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
99
99
  }
100
- function mi(e) {
101
- return !_i(e, this.v);
100
+ function gi(e) {
101
+ return !mi(e, this.v);
102
102
  }
103
103
  function Js() {
104
104
  throw new Error("https://svelte.dev/e/async_derived_orphan");
@@ -133,13 +133,13 @@ function aa() {
133
133
  function oa() {
134
134
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
135
135
  }
136
- let ua = !1, se = null;
137
- function mt(e) {
138
- se = e;
136
+ let ua = !1, ae = null;
137
+ function _t(e) {
138
+ ae = e;
139
139
  }
140
- function fn(e, t = !1, r) {
141
- se = {
142
- p: se,
140
+ function hn(e, t = !1, r) {
141
+ ae = {
142
+ p: ae,
143
143
  i: !1,
144
144
  c: null,
145
145
  e: null,
@@ -152,178 +152,53 @@ function fn(e, t = !1, r) {
152
152
  l: null
153
153
  };
154
154
  }
155
- function hn(e) {
155
+ function cn(e) {
156
156
  var t = (
157
157
  /** @type {ComponentContext} */
158
- se
158
+ ae
159
159
  ), r = t.e;
160
160
  if (r !== null) {
161
161
  t.e = null;
162
162
  for (var n of r)
163
163
  Ri(n);
164
164
  }
165
- return e !== void 0 && (t.x = e), t.i = !0, se = t.p, cn(e);
165
+ return e !== void 0 && (t.x = e), t.i = !0, ae = t.p, dn(e);
166
166
  }
167
- function cn(e = {}) {
168
- return pt(e, ci, { value: !0 }), e;
167
+ function dn(e = {}) {
168
+ return dt(e, di, { value: !0 }), e;
169
169
  }
170
- function gi() {
170
+ function bi() {
171
171
  return !0;
172
172
  }
173
- let qe = [];
174
- function bi() {
175
- var e = qe;
176
- qe = [], ui(e);
173
+ let Je = [];
174
+ function yi() {
175
+ var e = Je;
176
+ Je = [], li(e);
177
177
  }
178
178
  function ke(e) {
179
- if (qe.length === 0 && !Lt) {
180
- var t = qe;
179
+ if (Je.length === 0 && !Bt) {
180
+ var t = Je;
181
181
  queueMicrotask(() => {
182
- t === qe && bi();
182
+ t === Je && yi();
183
183
  });
184
184
  }
185
- qe.push(e);
185
+ Je.push(e);
186
186
  }
187
187
  function la() {
188
- for (; qe.length > 0; )
189
- bi();
188
+ for (; Je.length > 0; )
189
+ yi();
190
190
  }
191
191
  const fa = -7169;
192
192
  function W(e, t) {
193
193
  e.f = e.f & fa | t;
194
194
  }
195
- function dn(e) {
196
- e.f & _e || e.deps === null ? W(e, Q) : W(e, we);
197
- }
198
- function yi(e) {
199
- if (e !== null)
200
- for (const t of e)
201
- !(t.f & K) || !(t.f & et) || (t.f ^= et, yi(
202
- /** @type {Derived} */
203
- t.deps
204
- ));
195
+ function pn(e) {
196
+ e.f & we || e.deps === null ? W(e, Q) : W(e, _e);
205
197
  }
206
198
  function Ei(e, t, r) {
207
- e.f & q ? t.add(e) : e.f & we && r.add(e), yi(e.deps), W(e, Q);
199
+ e.f & z ? t.add(e) : e.f & _e && r.add(e), W(e, Q);
208
200
  }
209
- function pn(e, t, r) {
210
- if (e == null)
211
- return t(void 0), r && r(void 0), Ce;
212
- const n = An(
213
- () => e.subscribe(
214
- t,
215
- // @ts-expect-error
216
- r
217
- )
218
- );
219
- return n.unsubscribe ? () => n.unsubscribe() : n;
220
- }
221
- const st = [];
222
- function ha(e, t) {
223
- return {
224
- subscribe: mr(e, t).subscribe
225
- };
226
- }
227
- function mr(e, t = Ce) {
228
- let r = null;
229
- const n = /* @__PURE__ */ new Set();
230
- function i(o) {
231
- if (_i(e, o) && (e = o, r)) {
232
- const u = !st.length;
233
- for (const l of n)
234
- l[1](), st.push(l, e);
235
- if (u) {
236
- for (let l = 0; l < st.length; l += 2)
237
- st[l][0](st[l + 1]);
238
- st.length = 0;
239
- }
240
- }
241
- }
242
- function s(o) {
243
- i(o(
244
- /** @type {T} */
245
- e
246
- ));
247
- }
248
- function a(o, u = Ce) {
249
- const l = [o, u];
250
- return n.add(l), n.size === 1 && (r = t(i, s) || Ce), o(
251
- /** @type {T} */
252
- e
253
- ), () => {
254
- n.delete(l), n.size === 0 && r && (r(), r = null);
255
- };
256
- }
257
- return { set: i, update: s, subscribe: a };
258
- }
259
- function Tt(e, t, r) {
260
- const n = !Array.isArray(e), i = n ? [e] : e;
261
- if (!i.every(Boolean))
262
- throw new Error("derived() expects stores as input, got a falsy value");
263
- const s = t.length < 2;
264
- return ha(r, (a, o) => {
265
- let u = !1;
266
- const l = [];
267
- let f = 0, h = Ce;
268
- const c = () => {
269
- if (f)
270
- return;
271
- h();
272
- const p = t(n ? l[0] : l, a, o);
273
- s ? a(p) : h = typeof p == "function" ? p : Ce;
274
- }, d = i.map(
275
- (p, E) => pn(
276
- p,
277
- (m) => {
278
- l[E] = m, f &= ~(1 << E), u && c();
279
- },
280
- () => {
281
- f |= 1 << E;
282
- }
283
- )
284
- );
285
- return u = !0, c(), function() {
286
- ui(d), h(), u = !1;
287
- };
288
- });
289
- }
290
- function ca(e) {
291
- let t;
292
- return pn(e, (r) => t = r)(), t;
293
- }
294
- let jr = Symbol("unmounted");
295
- function da(e, t, r) {
296
- const n = r[t] ??= {
297
- store: null,
298
- source: /* @__PURE__ */ gn(void 0),
299
- unsubscribe: Ce
300
- };
301
- if (n.store !== e && !(jr in r))
302
- if (n.unsubscribe(), n.store = e ?? null, e == null)
303
- n.source.v = void 0, n.unsubscribe = Ce;
304
- else {
305
- var i = !0;
306
- n.unsubscribe = pn(e, (s) => {
307
- i ? n.source.v = s : Z(n.source, s);
308
- }), i = !1;
309
- }
310
- return e && jr in r ? ca(e) : w(n.source);
311
- }
312
- function pa() {
313
- const e = {};
314
- function t() {
315
- Ci(() => {
316
- for (var r in e)
317
- e[r].unsubscribe();
318
- pt(e, jr, {
319
- enumerable: !1,
320
- value: !0
321
- });
322
- });
323
- }
324
- return [e, t];
325
- }
326
- function gr(e) {
201
+ function mr(e) {
327
202
  var t = P, r = O;
328
203
  be(null), $e(null);
329
204
  try {
@@ -332,8 +207,8 @@ function gr(e) {
332
207
  be(t), $e(r);
333
208
  }
334
209
  }
335
- function va(e, t, r, n) {
336
- const i = br;
210
+ function ha(e, t, r, n) {
211
+ const i = gr;
337
212
  var s = e.filter((d) => !d.settled), a = t.map(i);
338
213
  if (r.length === 0 && s.length === 0) {
339
214
  n(a);
@@ -342,9 +217,9 @@ function va(e, t, r, n) {
342
217
  var o = (
343
218
  /** @type {Effect} */
344
219
  O
345
- ), u = _a(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((d) => d.promise)) : null;
220
+ ), u = ca(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((d) => d.promise)) : null;
346
221
  function f(d) {
347
- if (!(o.f & le)) {
222
+ if (!(o.f & se)) {
348
223
  u();
349
224
  try {
350
225
  n([...a, ...d]);
@@ -360,26 +235,26 @@ function va(e, t, r, n) {
360
235
  return;
361
236
  }
362
237
  function c() {
363
- Promise.all(r.map((d) => /* @__PURE__ */ ma(d))).then(f).catch((d) => Se(d, o)).finally(h);
238
+ Promise.all(r.map((d) => /* @__PURE__ */ da(d))).then(f).catch((d) => Se(d, o)).finally(h);
364
239
  }
365
240
  l ? l.then(() => {
366
241
  u(), c(), ar();
367
242
  }) : c();
368
243
  }
369
- function _a() {
244
+ function ca() {
370
245
  var e = (
371
246
  /** @type {Effect} */
372
247
  O
373
- ), t = P, r = se, n = (
248
+ ), t = P, r = ae, n = (
374
249
  /** @type {Batch} */
375
250
  I
376
251
  );
377
252
  return function(s = !0) {
378
- $e(e), be(t), mt(r), s && !(e.f & le) && (n?.activate(), n?.apply());
253
+ $e(e), be(t), _t(r), s && !(e.f & se) && (n?.activate(), n?.apply());
379
254
  };
380
255
  }
381
256
  function ar(e = !0) {
382
- $e(null), be(null), mt(null), e && I?.deactivate();
257
+ $e(null), be(null), _t(null), e && I?.deactivate();
383
258
  }
384
259
  function xi() {
385
260
  var e = (
@@ -394,13 +269,13 @@ function xi() {
394
269
  };
395
270
  }
396
271
  // @__NO_SIDE_EFFECTS__
397
- function br(e) {
398
- var t = K | q;
272
+ function gr(e) {
273
+ var t = K | z;
399
274
  return O !== null && (O.f |= nt), {
400
- ctx: se,
275
+ ctx: ae,
401
276
  deps: null,
402
277
  effects: null,
403
- equals: vi,
278
+ equals: _i,
404
279
  f: t,
405
280
  fn: e,
406
281
  reactions: null,
@@ -414,9 +289,9 @@ function br(e) {
414
289
  ac: null
415
290
  };
416
291
  }
417
- const Pt = Symbol("obsolete");
292
+ const Nt = Symbol("obsolete");
418
293
  // @__NO_SIDE_EFFECTS__
419
- function ma(e, t, r) {
294
+ function da(e, t, r) {
420
295
  let n = (
421
296
  /** @type {Effect | null} */
422
297
  O
@@ -430,11 +305,11 @@ function ma(e, t, r) {
430
305
  /** @type {V} */
431
306
  J
432
307
  ), a = !P, o = /* @__PURE__ */ new Set();
433
- return Oa(() => {
308
+ return Sa(() => {
434
309
  var u = (
435
310
  /** @type {Effect} */
436
311
  O
437
- ), l = li();
312
+ ), l = fi();
438
313
  i = l.promise;
439
314
  try {
440
315
  Promise.resolve(e()).then(l.resolve, (d) => {
@@ -454,19 +329,19 @@ function ma(e, t, r) {
454
329
  // boundary can be null if the async derived is inside an $effect.root not connected to the component render tree
455
330
  n.b?.is_rendered()
456
331
  )
457
- f.async_deriveds.get(u)?.reject(Pt);
332
+ f.async_deriveds.get(u)?.reject(Nt);
458
333
  else
459
334
  for (const d of o.values())
460
- d.reject(Pt);
335
+ d.reject(Nt);
461
336
  o.add(l), f.async_deriveds.set(u, l);
462
337
  }
463
338
  const c = (d, p = void 0) => {
464
- h?.(), o.delete(l), p !== Pt && (f.activate(), p ? (s.f |= Ve, gt(s, p)) : (s.f & Ve && (s.f ^= Ve), gt(s, d)), f.deactivate());
339
+ h?.(), o.delete(l), p !== Nt && (f.activate(), p ? (s.f |= Ve, mt(s, p)) : (s.f & Ve && (s.f ^= Ve), mt(s, d)), f.deactivate());
465
340
  };
466
341
  l.promise.then(c, (d) => c(null, d || "unknown"));
467
342
  }), Ci(() => {
468
343
  for (const u of o)
469
- u.reject(Pt);
344
+ u.reject(Nt);
470
345
  }), new Promise((u) => {
471
346
  function l(f) {
472
347
  function h() {
@@ -478,21 +353,21 @@ function ma(e, t, r) {
478
353
  });
479
354
  }
480
355
  // @__NO_SIDE_EFFECTS__
481
- function at(e) {
482
- const t = /* @__PURE__ */ br(e);
356
+ function st(e) {
357
+ const t = /* @__PURE__ */ gr(e);
483
358
  return ji(t), t;
484
359
  }
485
360
  // @__NO_SIDE_EFFECTS__
486
- function ga(e) {
487
- const t = /* @__PURE__ */ br(e);
488
- return t.equals = mi, t;
361
+ function pa(e) {
362
+ const t = /* @__PURE__ */ gr(e);
363
+ return t.equals = gi, t;
489
364
  }
490
- function ba(e) {
365
+ function va(e) {
491
366
  var t = e.effects;
492
367
  if (t !== null) {
493
368
  e.effects = null;
494
369
  for (var r = 0; r < t.length; r += 1)
495
- ae(
370
+ oe(
496
371
  /** @type {Effect} */
497
372
  t[r]
498
373
  );
@@ -501,11 +376,11 @@ function ba(e) {
501
376
  function vn(e) {
502
377
  var t, r = O, n = e.parent;
503
378
  if (!De && n !== null && e.v !== J && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
504
- n.f & (le | ie))
379
+ n.f & (se | ie))
505
380
  return zs(), e.v;
506
381
  $e(n);
507
382
  try {
508
- e.f &= ~et, ba(e), t = Yi(e);
383
+ va(e), t = Yi(e);
509
384
  } finally {
510
385
  $e(r);
511
386
  }
@@ -513,29 +388,29 @@ function vn(e) {
513
388
  }
514
389
  function wi(e) {
515
390
  var t = vn(e);
516
- if (!e.equals(t) && (e.wv = Xi(), (!I?.is_fork || e.deps === null) && (I !== null ? (I.capture(e, t, !0), Vr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
391
+ if (!e.equals(t) && (e.wv = Xi(), (!I?.is_fork || e.deps === null) && (I !== null ? (I.capture(e, t, !0), jr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
517
392
  W(e, Q);
518
393
  return;
519
394
  }
520
- De || (Ee !== null ? (En() || I?.is_fork) && Ee.set(e, t) : dn(e));
395
+ De || (Ee !== null ? (En() || I?.is_fork) && Ee.set(e, t) : pn(e));
521
396
  }
522
- function ya(e) {
397
+ function _a(e) {
523
398
  if (e.effects !== null)
524
399
  for (const t of e.effects)
525
- (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && gr(() => {
400
+ (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && mr(() => {
526
401
  t.ac.abort(kt), t.ac = null;
527
402
  }), t.fn !== null && (t.teardown = Ce), Dt(t, 0), Tn(t));
528
403
  }
529
404
  function Ti(e) {
530
405
  if (e.effects !== null)
531
406
  for (const t of e.effects)
532
- t.teardown && t.fn !== null && bt(t);
407
+ t.teardown && t.fn !== null && gt(t);
533
408
  }
534
- let Sr = null, ot = null, I = null, Vr = null, Ee = null, Xr = null, Lt = !1, Ar = !1, lt = null, Zt = null;
535
- var Pn = 0;
536
- let Ea = 1;
409
+ let Sr = null, at = null, I = null, jr = null, Ee = null, Vr = null, Bt = !1, Ar = !1, Lt = null, Zt = null;
410
+ var $n = 0;
411
+ let ma = 1;
537
412
  class Re {
538
- id = Ea++;
413
+ id = ma++;
539
414
  /** True as soon as `#process` was called */
540
415
  #e = !1;
541
416
  linked = !0;
@@ -585,7 +460,14 @@ class Re {
585
460
  */
586
461
  #o = null;
587
462
  /**
588
- * The root effects that need to be flushed
463
+ * Effects that were scheduled in this batch but not yet 'resolved' into the
464
+ * root effects that need to be flushed. Resolving — the upwards traversal that
465
+ * marks the path to each effect on the shared effect tree (see #resolve) — is
466
+ * deferred until the batch is processed, so that the markers are created and
467
+ * consumed within a single traversal. Scheduling into other batches (which can
468
+ * happen concurrently, e.g. while a batch is committed) can therefore never
469
+ * observe (and be confused by) this batch's markers.
470
+ * May contain duplicates — deduplication happens during resolving
589
471
  * @type {Effect[]}
590
472
  */
591
473
  #s = [];
@@ -593,7 +475,7 @@ class Re {
593
475
  * Effects created while this batch was active.
594
476
  * @type {Effect[]}
595
477
  */
596
- #v = [];
478
+ #p = [];
597
479
  /**
598
480
  * Deferred effects (which run after async work has completed) that are DIRTY
599
481
  * @type {Set<Effect>}
@@ -620,7 +502,7 @@ class Re {
620
502
  is_fork = !1;
621
503
  #h = !1;
622
504
  constructor() {
623
- ot === null ? Sr = ot = this : (ot.#r = this, this.#t = ot), ot = this;
505
+ at === null ? Sr = at = this : (at.#r = this, this.#t = at), at = this;
624
506
  }
625
507
  #b() {
626
508
  if (this.is_fork) return !0;
@@ -655,60 +537,90 @@ class Re {
655
537
  if (n) {
656
538
  this.#c.delete(t);
657
539
  for (var i of n.d)
658
- W(i, q), r(i);
540
+ W(i, z), r(i);
659
541
  for (i of n.m)
660
- W(i, we), r(i);
542
+ W(i, _e), r(i);
661
543
  }
662
544
  this.#_.add(t);
663
545
  }
664
- #m() {
665
- this.#e = !0, Pn++ > 1e3 && (this.#p(), xa());
666
- for (const u of this.#l)
667
- this.#f.delete(u), W(u, q), this.schedule(u);
668
- for (const u of this.#f)
669
- W(u, we), this.schedule(u);
670
- const t = this.#s;
671
- this.#s = [], this.apply();
672
- var r = lt = [], n = [], i = Zt = [];
673
- for (const u of t)
674
- try {
675
- this.#y(u, r, n);
676
- } catch (l) {
677
- throw Hi(u), this.#b() || this.discard(), l;
546
+ /**
547
+ * Convert the effects that were scheduled in this batch into the root effects
548
+ * that need to be traversed, marking the path to each effect (by clearing the
549
+ * `CLEAN` flag on ancestor branches) so that the traversal can find them.
550
+ * This happens right before traversal rather than at scheduling time, so that
551
+ * the markers left on the (shared) effect tree are created and consumed within
552
+ * a single traversal — scheduling into other batches can never observe them
553
+ * @returns {Effect[]}
554
+ */
555
+ #y() {
556
+ var t = [];
557
+ for (const s of this.#s)
558
+ if (!(s.f & se || !(s.f & (z | _e)))) {
559
+ for (var r = s, n = !1; r.parent !== null; ) {
560
+ r = r.parent;
561
+ var i = r.f;
562
+ if (i & (Pe | ge)) {
563
+ if (!(i & Q)) {
564
+ n = !0;
565
+ break;
566
+ }
567
+ r.f ^= Q;
568
+ }
569
+ }
570
+ n || t.push(r);
678
571
  }
679
- if (I = null, i.length > 0) {
680
- var s = Re.ensure();
681
- for (const u of i)
682
- s.schedule(u);
572
+ return this.#s = [], t;
573
+ }
574
+ #m() {
575
+ this.#e = !0;
576
+ for (const o of this.#l)
577
+ this.#f.delete(o), W(o, z), this.schedule(o);
578
+ for (const o of this.#f)
579
+ W(o, _e), this.schedule(o);
580
+ this.apply();
581
+ for (var t = Lt = [], r = [], n = Zt = []; this.#s.length > 0; ) {
582
+ $n++ > 1e3 && (this.#v(), ga());
583
+ for (const o of this.#y())
584
+ try {
585
+ this.#g(o, t, r);
586
+ } catch (u) {
587
+ throw Hi(o), this.#b() || this.discard(), u;
588
+ }
589
+ }
590
+ if (I = null, n.length > 0) {
591
+ var i = Re.ensure();
592
+ for (const o of n)
593
+ i.schedule(o);
683
594
  }
684
- if (lt = null, Zt = null, this.#b()) {
685
- this.#d(n), this.#d(r);
686
- for (const [u, l] of this.#c)
687
- Ai(u, l);
688
- i.length > 0 && /** @type {unknown} */
595
+ if (Lt = null, Zt = null, this.#b()) {
596
+ this.#d(r), this.#d(t);
597
+ for (const [o, u] of this.#c)
598
+ Ai(o, u);
599
+ n.length > 0 && /** @type {unknown} */
689
600
  I.#m();
690
601
  return;
691
602
  }
692
- const a = this.#E();
693
- if (a) {
694
- this.#d(n), this.#d(r), a.#x(this);
603
+ const s = this.#w();
604
+ if (s) {
605
+ this.#d(r), this.#d(t), s.#E(this);
695
606
  return;
696
607
  }
697
608
  this.#l.clear(), this.#f.clear();
698
- for (const u of this.#u) u(this);
699
- this.#u.clear(), Vr = this, $n(n), $n(r), Vr = null, this.#o?.resolve();
700
- var o = (
609
+ for (const o of this.#u) o(this);
610
+ this.#u.clear(), jr = this, In(r), In(t), jr = null, this.#o?.resolve();
611
+ var a = (
701
612
  /** @type {Batch | null} */
702
613
  /** @type {unknown} */
703
614
  I
704
615
  );
705
- if (this.#a === 0 && (this.#s.length === 0 || o !== null) && this.#p(), this.#s.length > 0)
706
- if (o !== null) {
707
- const u = o;
708
- u.#s.push(...this.#s.filter((l) => !u.#s.includes(l)));
616
+ if (this.#a === 0 && (this.#s.length === 0 || a !== null) && this.#v(), this.#s.length > 0)
617
+ if (a !== null) {
618
+ for (const o of this.#s)
619
+ a.#s.push(o);
620
+ this.#s = [];
709
621
  } else
710
- o = this;
711
- o !== null && (Oe.clear(), o.#m());
622
+ a = this;
623
+ a !== null && (Oe.clear(), a.#m());
712
624
  }
713
625
  /**
714
626
  * Traverse the effect tree, executing effects or stashing
@@ -717,12 +629,12 @@ class Re {
717
629
  * @param {Effect[]} effects
718
630
  * @param {Effect[]} render_effects
719
631
  */
720
- #y(t, r, n) {
632
+ #g(t, r, n) {
721
633
  t.f ^= Q;
722
634
  for (var i = t.first; i !== null; ) {
723
635
  var s = i.f, a = (s & (ge | Pe)) !== 0, o = a && (s & Q) !== 0, u = o || (s & ie) !== 0 || this.#c.has(i);
724
636
  if (!u && i.fn !== null) {
725
- a ? i.f ^= Q : s & vt ? r.push(i) : Vt(i) && (s & ye && this.#f.add(i), bt(i));
637
+ a ? i.f ^= Q : s & pt ? r.push(i) : Vt(i) && (s & ye && this.#f.add(i), gt(i));
726
638
  var l = i.first;
727
639
  if (l !== null) {
728
640
  i = l;
@@ -739,7 +651,7 @@ class Re {
739
651
  }
740
652
  }
741
653
  }
742
- #E() {
654
+ #w() {
743
655
  for (var t = this.#t; t !== null; ) {
744
656
  if (!t.is_fork) {
745
657
  for (const [r, [, n]] of this.current)
@@ -753,7 +665,7 @@ class Re {
753
665
  /**
754
666
  * @param {Batch} batch
755
667
  */
756
- #x(t) {
668
+ #E(t) {
757
669
  for (const [n, i] of t.current)
758
670
  !this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
759
671
  for (const [n, i] of t.async_deriveds) {
@@ -763,7 +675,7 @@ class Re {
763
675
  t.async_deriveds.clear(), this.transfer_effects(t.#l, t.#f);
764
676
  const r = (n) => {
765
677
  var i = n.reactions;
766
- if (i !== null && !(n.f & K && !(n.f & (q | we))))
678
+ if (i !== null && !(n.f & K && !(n.f & (z | _e))))
767
679
  for (const o of i) {
768
680
  var s = o.f;
769
681
  if (s & K)
@@ -776,13 +688,13 @@ class Re {
776
688
  /** @type {Effect} */
777
689
  o
778
690
  );
779
- s & (ht | ye) && !this.async_deriveds.has(a) && (this.#f.delete(a), W(a, q), this.schedule(a));
691
+ s & (ft | ye) && !this.async_deriveds.has(a) && (this.#f.delete(a), W(a, z), this.schedule(a));
780
692
  }
781
693
  }
782
694
  };
783
695
  for (const n of this.current.keys())
784
696
  r(n);
785
- this.oncommit(() => t.discard()), t.#p(), I = this, this.#m();
697
+ this.oncommit(() => t.discard()), t.#v(), I = this, this.#m();
786
698
  }
787
699
  /**
788
700
  * @param {Effect[]} effects
@@ -811,23 +723,23 @@ class Re {
811
723
  try {
812
724
  Ar = !0, I = this, this.#m();
813
725
  } finally {
814
- Pn = 0, Xr = null, lt = null, Zt = null, Ar = !1, I = null, Ee = null, Oe.clear();
726
+ $n = 0, Vr = null, Lt = null, Zt = null, Ar = !1, I = null, Ee = null, Oe.clear();
815
727
  }
816
728
  }
817
729
  discard() {
818
730
  for (const t of this.#i) t(this);
819
731
  this.#i.clear();
820
732
  for (const t of this.async_deriveds.values())
821
- t.reject(Pt);
822
- this.#p(), this.#o?.resolve();
733
+ t.reject(Nt);
734
+ this.#v(), this.#o?.resolve();
823
735
  }
824
736
  /**
825
737
  * @param {Effect} effect
826
738
  */
827
739
  register_created_effect(t) {
828
- this.#v.push(t);
740
+ this.#p.push(t);
829
741
  }
830
- #g() {
742
+ #x() {
831
743
  for (let h = Sr; h !== null; h = h.#r) {
832
744
  var t = h.id < this.id, r = [];
833
745
  for (const [c, [d, p]] of this.current) {
@@ -860,7 +772,7 @@ class Re {
860
772
  if (t)
861
773
  for (const c of this.#_)
862
774
  h.unskip_effect(c, (d) => {
863
- d.f & (ye | ht) ? h.schedule(d) : h.#d([d]);
775
+ d.f & (ye | ft) ? h.schedule(d) : h.#d([d]);
864
776
  });
865
777
  h.activate();
866
778
  var a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
@@ -872,13 +784,12 @@ class Re {
872
784
  return p ? p[0] !== d[0] || p[1] !== d[1] : !0;
873
785
  }).map(([c]) => c);
874
786
  if (l.length > 0)
875
- for (const c of this.#v)
876
- !(c.f & (le | ie | nr)) && _n(c, l, o) && (c.f & (ht | ye) ? (W(c, q), h.schedule(c)) : h.#l.add(c));
787
+ for (const c of this.#p)
788
+ !(c.f & (se | ie | nr)) && _n(c, l, o) && (c.f & (ft | ye) ? (W(c, z), h.schedule(c)) : h.#l.add(c));
877
789
  if (h.#s.length > 0 && !h.#h) {
878
790
  h.apply();
879
- for (var f of h.#s)
880
- h.#y(f, [], []);
881
- h.#s = [];
791
+ for (var f of h.#y())
792
+ h.#g(f, [], []);
882
793
  }
883
794
  h.deactivate();
884
795
  }
@@ -928,12 +839,12 @@ class Re {
928
839
  this.#i.add(t);
929
840
  }
930
841
  settled() {
931
- return (this.#o ??= li()).promise;
842
+ return (this.#o ??= fi()).promise;
932
843
  }
933
844
  static ensure() {
934
845
  if (I === null) {
935
846
  const t = I = new Re();
936
- !Ar && !Lt && ke(() => {
847
+ !Ar && !Bt && ke(() => {
937
848
  t.#e || t.flush();
938
849
  });
939
850
  }
@@ -950,33 +861,22 @@ class Re {
950
861
  * @param {Effect} effect
951
862
  */
952
863
  schedule(t) {
953
- if (Xr = t, t.b?.is_pending && t.f & (vt | Gt | fi) && !(t.f & rt)) {
864
+ if (Vr = t, t.b?.is_pending && t.f & (pt | Gt | hi) && !(t.f & rt)) {
954
865
  t.b.defer_effect(t);
955
866
  return;
956
867
  }
957
- for (var r = t; r.parent !== null; ) {
958
- r = r.parent;
959
- var n = r.f;
960
- if (lt !== null && r === O && (P === null || !(P.f & K)))
961
- return;
962
- if (n & (Pe | ge)) {
963
- if (!(n & Q))
964
- return;
965
- r.f ^= Q;
966
- }
967
- }
968
- this.#s.push(r);
868
+ this.#s.push(t);
969
869
  }
970
- #p() {
870
+ #v() {
971
871
  if (this.linked) {
972
872
  var t = this.#t, r = this.#r;
973
- t === null ? Sr = r : t.#r = r, r === null ? ot = t : r.#t = t, this.linked = !1;
873
+ t === null ? Sr = r : t.#r = r, r === null ? at = t : r.#t = t, this.linked = !1;
974
874
  }
975
875
  }
976
876
  }
977
877
  function ve(e) {
978
- var t = Lt;
979
- Lt = !0;
878
+ var t = Bt;
879
+ Bt = !0;
980
880
  try {
981
881
  for (var r; ; ) {
982
882
  if (la(), I === null)
@@ -987,33 +887,33 @@ function ve(e) {
987
887
  I.flush();
988
888
  }
989
889
  } finally {
990
- Lt = t;
890
+ Bt = t;
991
891
  }
992
892
  }
993
- function xa() {
893
+ function ga() {
994
894
  try {
995
895
  ra();
996
896
  } catch (e) {
997
- Se(e, Xr);
897
+ Se(e, Vr);
998
898
  }
999
899
  }
1000
900
  let Be = null;
1001
- function $n(e) {
901
+ function In(e) {
1002
902
  var t = e.length;
1003
903
  if (t !== 0) {
1004
904
  for (var r = 0; r < t; ) {
1005
905
  var n = e[r++];
1006
- if (!(n.f & (le | ie)) && Vt(n) && (Be = /* @__PURE__ */ new Set(), bt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Fi(n), Be?.size > 0)) {
906
+ if (!(n.f & (se | ie)) && Vt(n) && (Be = /* @__PURE__ */ new Set(), gt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Fi(n), Be?.size > 0)) {
1007
907
  Oe.clear();
1008
908
  for (const i of Be) {
1009
- if (i.f & (le | ie)) continue;
909
+ if (i.f & (se | ie)) continue;
1010
910
  const s = [i];
1011
911
  let a = i.parent;
1012
912
  for (; a !== null; )
1013
913
  Be.has(a) && (Be.delete(a), s.push(a)), a = a.parent;
1014
914
  for (let o = s.length - 1; o >= 0; o--) {
1015
915
  const u = s[o];
1016
- u.f & (le | ie) || bt(u);
916
+ u.f & (se | ie) || gt(u);
1017
917
  }
1018
918
  }
1019
919
  Be.clear();
@@ -1032,7 +932,7 @@ function Si(e, t, r, n) {
1032
932
  t,
1033
933
  r,
1034
934
  n
1035
- ) : s & (ht | ye) && !(s & q) && _n(i, t, n) && (W(i, q), mn(
935
+ ) : s & (ft | ye) && !(s & z) && _n(i, t, n) && (W(i, z), mn(
1036
936
  /** @type {Effect} */
1037
937
  i
1038
938
  ));
@@ -1064,7 +964,7 @@ function mn(e) {
1064
964
  }
1065
965
  function Ai(e, t) {
1066
966
  if (!(e.f & ge && e.f & Q)) {
1067
- e.f & q ? t.d.push(e) : e.f & we && t.m.push(e), W(e, Q);
967
+ e.f & z ? t.d.push(e) : e.f & _e && t.m.push(e), W(e, Q);
1068
968
  for (var r = e.first; r !== null; )
1069
969
  Ai(r, t), r = r.next;
1070
970
  }
@@ -1083,7 +983,7 @@ function tt(e, t) {
1083
983
  // TODO ideally we could skip this altogether, but it causes type errors
1084
984
  v: e,
1085
985
  reactions: null,
1086
- equals: vi,
986
+ equals: _i,
1087
987
  rv: 0,
1088
988
  wv: 0
1089
989
  };
@@ -1097,16 +997,17 @@ function ne(e, t) {
1097
997
  // @__NO_SIDE_EFFECTS__
1098
998
  function gn(e, t = !1, r = !0) {
1099
999
  const n = tt(e);
1100
- return t || (n.equals = mi), n;
1000
+ return t || (n.equals = gi), n;
1101
1001
  }
1102
- function Z(e, t, r = !1) {
1002
+ function q(e, t, r = !1) {
1103
1003
  P !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1104
1004
  // to ensure we error if state is set inside an inspect effect
1105
- (!xe || P.f & nr) && gi() && P.f & (K | ye | ht | nr) && (Ne === null || !Ne.has(e)) && aa();
1106
- let n = r ? $t(t) : t;
1107
- return gt(e, n, Zt);
1005
+ (!xe || P.f & nr) && bi() && P.f & (K | ye | ft | nr) && (Ne === null || !Ne.has(e)) && aa();
1006
+ let n = r ? Pt(t) : t;
1007
+ return mt(e, n, Zt);
1108
1008
  }
1109
- function gt(e, t, r = null) {
1009
+ var qe = null, Xr = 0;
1010
+ function mt(e, t, r = null) {
1110
1011
  if (!e.equals(t)) {
1111
1012
  De ? Oe.set(e, t) : Oe.has(e) || Oe.set(e, e.v);
1112
1013
  var n = Re.ensure();
@@ -1115,34 +1016,39 @@ function gt(e, t, r = null) {
1115
1016
  /** @type {Derived} */
1116
1017
  e
1117
1018
  );
1118
- e.f & q && vn(i), Ee === null && dn(i);
1019
+ e.f & z && vn(i), Ee === null && pn(i);
1119
1020
  }
1120
- e.wv = Xi(), Oi(e, q, r), O !== null && O.f & Q && !(O.f & (ge | Pe)) && (de === null ? $a([e]) : de.push(e)), !n.is_fork && or.size > 0 && !Mi && wa();
1021
+ e.wv = Xi(), qe = null, Xr = 0, Oi(e, z, r), qe = null, O !== null && O.f & Q && !(O.f & (ge | Pe)) && (de === null ? Ma([e]) : de.push(e)), !n.is_fork && or.size > 0 && !Mi && ba();
1121
1022
  }
1122
1023
  return t;
1123
1024
  }
1124
- function wa() {
1025
+ function ba() {
1125
1026
  Mi = !1;
1126
1027
  for (const e of or) {
1127
- e.f & Q && W(e, we);
1028
+ e.f & Q && W(e, _e);
1128
1029
  let t;
1129
1030
  try {
1130
1031
  t = Vt(e);
1131
1032
  } catch {
1132
1033
  t = !0;
1133
1034
  }
1134
- t && bt(e);
1035
+ t && gt(e);
1135
1036
  }
1136
1037
  or.clear();
1137
1038
  }
1138
1039
  function Ct(e) {
1139
- Z(e, e.v + 1);
1040
+ q(e, e.v + 1);
1140
1041
  }
1141
1042
  function Oi(e, t, r) {
1142
1043
  var n = e.reactions;
1143
- if (n !== null)
1144
- for (var i = n.length, s = 0; s < i; s++) {
1145
- var a = n[s], o = a.f, u = (o & q) === 0;
1044
+ if (n !== null) {
1045
+ var i = n.length;
1046
+ if (Xr += i, Xr > 1e5 && qe === null && (qe = /* @__PURE__ */ new Set()), qe !== null) {
1047
+ if (qe.has(e)) return;
1048
+ qe.add(e);
1049
+ }
1050
+ for (var s = 0; s < i; s++) {
1051
+ var a = n[s], o = a.f, u = (o & z) === 0;
1146
1052
  if (u && W(a, t), o & nr)
1147
1053
  or.add(
1148
1054
  /** @type {Effect} */
@@ -1153,7 +1059,7 @@ function Oi(e, t, r) {
1153
1059
  /** @type {Derived} */
1154
1060
  a
1155
1061
  );
1156
- Ee?.delete(l), o & et || (o & _e && (O === null || !(O.f & ir)) && (a.f |= et), Oi(l, we, r));
1062
+ Ee?.delete(l), Oi(l, _e, r);
1157
1063
  } else if (u) {
1158
1064
  var f = (
1159
1065
  /** @type {Effect} */
@@ -1162,20 +1068,21 @@ function Oi(e, t, r) {
1162
1068
  o & ye && Be !== null && Be.add(f), r !== null ? r.push(f) : mn(f);
1163
1069
  }
1164
1070
  }
1071
+ }
1165
1072
  }
1166
- function $t(e) {
1167
- if (typeof e != "object" || e === null || zt in e || ci in e)
1073
+ function Pt(e) {
1074
+ if (typeof e != "object" || e === null || zt in e || di in e)
1168
1075
  return e;
1169
- const t = oi(e);
1076
+ const t = ui(e);
1170
1077
  if (t !== Gs && t !== ks)
1171
1078
  return e;
1172
- var r = /* @__PURE__ */ new Map(), n = ai(e), i = /* @__PURE__ */ ne(0), s = Ke, a = (o) => {
1173
- if (Ke === s)
1079
+ var r = /* @__PURE__ */ new Map(), n = oi(e), i = /* @__PURE__ */ ne(0), s = et, a = (o) => {
1080
+ if (et === s)
1174
1081
  return o();
1175
- var u = P, l = Ke;
1176
- be(null), Rn(s);
1082
+ var u = P, l = et;
1083
+ be(null), Dn(s);
1177
1084
  var f = o();
1178
- return be(u), Rn(l), f;
1085
+ return be(u), Dn(l), f;
1179
1086
  };
1180
1087
  return n && r.set("length", /* @__PURE__ */ ne(
1181
1088
  /** @type {any[]} */
@@ -1190,7 +1097,7 @@ function $t(e) {
1190
1097
  return f === void 0 ? a(() => {
1191
1098
  var h = /* @__PURE__ */ ne(l.value);
1192
1099
  return r.set(u, h), h;
1193
- }) : Z(f, l.value, !0), !0;
1100
+ }) : q(f, l.value, !0), !0;
1194
1101
  },
1195
1102
  deleteProperty(o, u) {
1196
1103
  var l = r.get(u);
@@ -1200,15 +1107,15 @@ function $t(e) {
1200
1107
  r.set(u, f), Ct(i);
1201
1108
  }
1202
1109
  } else
1203
- Z(l, J), Ct(i);
1110
+ q(l, J), Ct(i);
1204
1111
  return !0;
1205
1112
  },
1206
1113
  get(o, u, l) {
1207
1114
  if (u === zt)
1208
1115
  return e;
1209
1116
  var f = r.get(u), h = u in o;
1210
- if (f === void 0 && (!h || ft(o, u)?.writable) && (f = a(() => {
1211
- var d = $t(h ? o[u] : J), p = /* @__PURE__ */ ne(d);
1117
+ if (f === void 0 && (!h || lt(o, u)?.writable) && (f = a(() => {
1118
+ var d = Pt(h ? o[u] : J), p = /* @__PURE__ */ ne(d);
1212
1119
  return p;
1213
1120
  }), r.set(u, f)), f !== void 0) {
1214
1121
  var c = w(f);
@@ -1217,17 +1124,19 @@ function $t(e) {
1217
1124
  return Reflect.get(o, u, l);
1218
1125
  },
1219
1126
  getOwnPropertyDescriptor(o, u) {
1220
- var l = Reflect.getOwnPropertyDescriptor(o, u);
1221
- if (l && "value" in l) {
1222
- var f = r.get(u);
1223
- f && (l.value = w(f));
1224
- } else if (l === void 0) {
1225
- var h = r.get(u), c = h?.v;
1226
- if (h !== void 0 && c !== J)
1127
+ this.has?.(o, u);
1128
+ var l = Reflect.getOwnPropertyDescriptor(o, u), f = r.get(u);
1129
+ if (f !== void 0) {
1130
+ var h = w(f);
1131
+ if (h === J)
1132
+ return;
1133
+ if (l && "value" in l)
1134
+ l.value = h;
1135
+ else
1227
1136
  return {
1228
1137
  enumerable: !0,
1229
1138
  configurable: !0,
1230
- value: c,
1139
+ value: h,
1231
1140
  writable: !0
1232
1141
  };
1233
1142
  }
@@ -1237,9 +1146,9 @@ function $t(e) {
1237
1146
  if (u === zt)
1238
1147
  return !0;
1239
1148
  var l = r.get(u), f = l !== void 0 && l.v !== J || Reflect.has(o, u);
1240
- if (l !== void 0 || O !== null && (!f || ft(o, u)?.writable)) {
1149
+ if (l !== void 0 || O !== null && (!f || lt(o, u)?.writable)) {
1241
1150
  l === void 0 && (l = a(() => {
1242
- var c = f ? $t(o[u]) : J, d = /* @__PURE__ */ ne(c);
1151
+ var c = f ? Pt(o[u]) : J, d = /* @__PURE__ */ ne(c);
1243
1152
  return d;
1244
1153
  }), r.set(u, l));
1245
1154
  var h = w(l);
@@ -1254,14 +1163,14 @@ function $t(e) {
1254
1163
  for (var d = l; d < /** @type {Source<number>} */
1255
1164
  h.v; d += 1) {
1256
1165
  var p = r.get(d + "");
1257
- p !== void 0 ? Z(p, J) : d in o && (p = a(() => /* @__PURE__ */ ne(J)), r.set(d + "", p));
1166
+ p !== void 0 ? q(p, J) : d in o && (p = a(() => /* @__PURE__ */ ne(J)), r.set(d + "", p));
1258
1167
  }
1259
1168
  if (h === void 0)
1260
- (!c || ft(o, u)?.writable) && (h = a(() => /* @__PURE__ */ ne(void 0)), Z(h, $t(l)), r.set(u, h));
1169
+ (!c || lt(o, u)?.writable) && (h = a(() => /* @__PURE__ */ ne(void 0)), q(h, Pt(l)), r.set(u, h));
1261
1170
  else {
1262
1171
  c = h.v !== J;
1263
- var E = a(() => $t(l));
1264
- Z(h, E);
1172
+ var E = a(() => Pt(l));
1173
+ q(h, E);
1265
1174
  }
1266
1175
  var m = Reflect.getOwnPropertyDescriptor(o, u);
1267
1176
  if (m?.set && m.set.call(f, l), !c) {
@@ -1270,7 +1179,7 @@ function $t(e) {
1270
1179
  /** @type {Source<number>} */
1271
1180
  r.get("length")
1272
1181
  ), R = Number(u);
1273
- Number.isInteger(R) && R >= H.v && Z(H, R + 1);
1182
+ Number.isInteger(R) && R >= H.v && q(H, R + 1);
1274
1183
  }
1275
1184
  Ct(i);
1276
1185
  }
@@ -1292,12 +1201,12 @@ function $t(e) {
1292
1201
  }
1293
1202
  );
1294
1203
  }
1295
- var In, Ni, Pi, $i;
1204
+ var Bn, Ni, Pi, $i;
1296
1205
  function Wr() {
1297
- if (In === void 0) {
1298
- In = window, Ni = /Firefox/.test(navigator.userAgent);
1206
+ if (Bn === void 0) {
1207
+ Bn = window, Ni = /Firefox/.test(navigator.userAgent);
1299
1208
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1300
- Pi = ft(t, "firstChild").get, $i = ft(t, "nextSibling").get, Nn(e) && (e[Fr] = void 0, e[di] = null, e[Ws] = void 0, e.__e = void 0), Nn(r) && (r[Gr] = void 0);
1209
+ Pi = lt(t, "firstChild").get, $i = lt(t, "nextSibling").get, Pn(e) && (e[Fr] = void 0, e[pi] = null, e[Ws] = void 0, e.__e = void 0), Pn(r) && (r[Gr] = void 0);
1301
1210
  }
1302
1211
  }
1303
1212
  function me(e = "") {
@@ -1332,7 +1241,7 @@ function Yr(e, t) {
1332
1241
  r
1333
1242
  ), fe(r), r;
1334
1243
  }
1335
- function Ta(e, t = !1) {
1244
+ function ya(e, t = !1) {
1336
1245
  if (!L) {
1337
1246
  var r = /* @__PURE__ */ Xe(e);
1338
1247
  return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Ie(r) : r;
@@ -1355,7 +1264,7 @@ function Hr(e, t = !1) {
1355
1264
  var r = Yr(e, t);
1356
1265
  return kr(e), r;
1357
1266
  }
1358
- function Bn(e, t = 1, r = !1) {
1267
+ function Ln(e, t = 1, r = !1) {
1359
1268
  let n = L ? B : e;
1360
1269
  for (var i; t--; )
1361
1270
  i = n, n = /** @type {TemplateNode} */
@@ -1397,18 +1306,18 @@ function yn(e) {
1397
1306
  t.remove(), e.nodeValue += /** @type {string} */
1398
1307
  t.nodeValue, t = e.nextSibling;
1399
1308
  }
1400
- function Sa(e) {
1309
+ function Ea(e) {
1401
1310
  var t = O;
1402
1311
  if (t === null)
1403
1312
  return P.f |= Ve, e;
1404
- if (!(t.f & rt) && !(t.f & vt))
1313
+ if (!(t.f & rt) && !(t.f & pt))
1405
1314
  throw e;
1406
1315
  Se(e, t);
1407
1316
  }
1408
1317
  function Se(e, t) {
1409
- if (!(t !== null && t.f & le)) {
1318
+ if (!(t !== null && t.f & se)) {
1410
1319
  for (; t !== null; ) {
1411
- if (t.f & Ur && !(t.f & (le | rr))) {
1320
+ if (t.f & Ur && !(t.f & (se | rr))) {
1412
1321
  if (!(t.f & rt))
1413
1322
  throw e;
1414
1323
  try {
@@ -1426,7 +1335,7 @@ function Se(e, t) {
1426
1335
  function Li(e) {
1427
1336
  O === null && (P === null && ta(), ea()), De && Ks();
1428
1337
  }
1429
- function Aa(e, t) {
1338
+ function xa(e, t) {
1430
1339
  var r = t.last;
1431
1340
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1432
1341
  }
@@ -1434,10 +1343,10 @@ function Te(e, t) {
1434
1343
  var r = O;
1435
1344
  r !== null && r.f & ie && (e |= ie);
1436
1345
  var n = {
1437
- ctx: se,
1346
+ ctx: ae,
1438
1347
  deps: null,
1439
1348
  nodes: null,
1440
- f: e | q | _e,
1349
+ f: e | z | we,
1441
1350
  first: null,
1442
1351
  fn: t,
1443
1352
  last: null,
@@ -1451,18 +1360,18 @@ function Te(e, t) {
1451
1360
  };
1452
1361
  I?.register_created_effect(n);
1453
1362
  var i = n;
1454
- if (e & vt)
1455
- lt !== null ? lt.push(n) : Re.ensure().schedule(n);
1363
+ if (e & pt)
1364
+ Lt !== null ? Lt.push(n) : Re.ensure().schedule(n);
1456
1365
  else if (t !== null) {
1457
1366
  try {
1458
- bt(n);
1367
+ gt(n);
1459
1368
  } catch (a) {
1460
- throw ae(n), a;
1369
+ throw oe(n), a;
1461
1370
  }
1462
1371
  i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
1463
- !(i.f & nt) && (i = i.first, e & ye && e & _t && i !== null && (i.f |= _t));
1372
+ !(i.f & nt) && (i = i.first, e & ye && e & vt && i !== null && (i.f |= vt));
1464
1373
  }
1465
- if (i !== null && (i.parent = r, r !== null && Aa(i, r), P !== null && P.f & K && !(e & Pe))) {
1374
+ if (i !== null && (i.parent = r, r !== null && xa(i, r), P !== null && P.f & K && !(e & Pe))) {
1466
1375
  var s = (
1467
1376
  /** @type {Derived} */
1468
1377
  P
@@ -1483,49 +1392,49 @@ function ur(e) {
1483
1392
  var t = (
1484
1393
  /** @type {Effect} */
1485
1394
  O.f
1486
- ), r = !P && (t & ge) !== 0 && se !== null && !se.i;
1395
+ ), r = !P && (t & ge) !== 0 && ae !== null && !ae.i;
1487
1396
  if (r) {
1488
1397
  var n = (
1489
1398
  /** @type {ComponentContext} */
1490
- se
1399
+ ae
1491
1400
  );
1492
1401
  (n.e ??= []).push(e);
1493
1402
  } else
1494
1403
  return Ri(e);
1495
1404
  }
1496
1405
  function Ri(e) {
1497
- return Te(vt | hi, e);
1406
+ return Te(pt | ci, e);
1498
1407
  }
1499
1408
  function ml(e) {
1500
- return Li(), Te(Gt | hi, e);
1409
+ return Li(), Te(Gt | ci, e);
1501
1410
  }
1502
- function Ha(e) {
1411
+ function wa(e) {
1503
1412
  Re.ensure();
1504
1413
  const t = Te(Pe | nt, e);
1505
1414
  return () => {
1506
- ae(t);
1415
+ oe(t);
1507
1416
  };
1508
1417
  }
1509
- function Ma(e) {
1418
+ function Ta(e) {
1510
1419
  Re.ensure();
1511
1420
  const t = Te(Pe | nt, e);
1512
1421
  return (r = {}) => new Promise((n) => {
1513
- r.outro ? Qe(t, () => {
1514
- ae(t), n(void 0);
1515
- }) : (ae(t), n(void 0));
1422
+ r.outro ? Ke(t, () => {
1423
+ oe(t), n(void 0);
1424
+ }) : (oe(t), n(void 0));
1516
1425
  });
1517
1426
  }
1518
1427
  function Di(e) {
1519
- return Te(vt, e);
1428
+ return Te(pt, e);
1520
1429
  }
1521
- function Oa(e) {
1522
- return Te(ht | nt, e);
1430
+ function Sa(e) {
1431
+ return Te(ft | nt, e);
1523
1432
  }
1524
1433
  function xn(e, t = 0) {
1525
1434
  return Te(Gt | t, e);
1526
1435
  }
1527
- function Ln(e, t = [], r = [], n = []) {
1528
- va(n, t, r, (i) => {
1436
+ function Cn(e, t = [], r = [], n = []) {
1437
+ ha(n, t, r, (i) => {
1529
1438
  Te(Gt, () => {
1530
1439
  e(...i.map(w));
1531
1440
  });
@@ -1542,13 +1451,13 @@ function Ui(e) {
1542
1451
  var t = e.teardown;
1543
1452
  if (t !== null) {
1544
1453
  const r = De, n = P;
1545
- Cn(!0), be(null);
1454
+ Rn(!0), be(null);
1546
1455
  try {
1547
1456
  t.call(null);
1548
1457
  } catch (i) {
1549
1458
  Se(i, e.parent);
1550
1459
  } finally {
1551
- Cn(r), be(n);
1460
+ Rn(r), be(n);
1552
1461
  }
1553
1462
  }
1554
1463
  }
@@ -1556,22 +1465,22 @@ function Tn(e, t = !1) {
1556
1465
  var r = e.first;
1557
1466
  for (e.first = e.last = null; r !== null; ) {
1558
1467
  const i = r.ac;
1559
- i !== null && gr(() => {
1468
+ i !== null && mr(() => {
1560
1469
  i.abort(kt);
1561
1470
  });
1562
1471
  var n = r.next;
1563
- r.f & Pe ? r.parent = null : ae(r, t), r = n;
1472
+ r.f & Pe ? r.parent = null : oe(r, t), r = n;
1564
1473
  }
1565
1474
  }
1566
- function Na(e) {
1475
+ function Aa(e) {
1567
1476
  for (var t = e.first; t !== null; ) {
1568
1477
  var r = t.next;
1569
- t.f & ge || ae(t), t = r;
1478
+ t.f & ge || oe(t), t = r;
1570
1479
  }
1571
1480
  }
1572
- function ae(e, t = !0) {
1481
+ function oe(e, t = !0) {
1573
1482
  var r = !1;
1574
- (t || e.f & js) && e.nodes !== null && e.nodes.end !== null && (Pa(
1483
+ (t || e.f & js) && e.nodes !== null && e.nodes.end !== null && (Ha(
1575
1484
  e.nodes.start,
1576
1485
  /** @type {TemplateNode} */
1577
1486
  e.nodes.end
@@ -1580,11 +1489,11 @@ function ae(e, t = !0) {
1580
1489
  if (n !== null)
1581
1490
  for (const s of n)
1582
1491
  s.stop();
1583
- Ui(e), e.f ^= rr, e.f |= le;
1492
+ Ui(e), e.f ^= rr, e.f |= se;
1584
1493
  var i = e.parent;
1585
1494
  i !== null && i.first !== null && Fi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1586
1495
  }
1587
- function Pa(e, t) {
1496
+ function Ha(e, t) {
1588
1497
  for (; e !== null; ) {
1589
1498
  var r = e === t ? null : /* @__PURE__ */ Ie(e);
1590
1499
  e.remove(), e = r;
@@ -1594,11 +1503,11 @@ function Fi(e) {
1594
1503
  var t = e.parent, r = e.prev, n = e.next;
1595
1504
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1596
1505
  }
1597
- function Qe(e, t, r = !0) {
1506
+ function Ke(e, t, r = !0) {
1598
1507
  var n = [];
1599
- e.f |= ln, Gi(e, n, !0);
1508
+ e.f |= fn, Gi(e, n, !0);
1600
1509
  var i = () => {
1601
- r && ae(e), t && t();
1510
+ r && oe(e), t && t();
1602
1511
  }, s = n.length;
1603
1512
  if (s > 0) {
1604
1513
  var a = () => --s || i();
@@ -1617,7 +1526,7 @@ function Gi(e, t, r) {
1617
1526
  for (var i = e.first; i !== null; ) {
1618
1527
  var s = i.next;
1619
1528
  if (!(i.f & Pe)) {
1620
- var a = (i.f & _t) !== 0 || // If this is a branch effect without a block effect parent,
1529
+ var a = (i.f & vt) !== 0 || // If this is a branch effect without a block effect parent,
1621
1530
  // it means the parent block effect was pruned. In that case,
1622
1531
  // transparency information was transferred to the branch effect.
1623
1532
  (i.f & ge) !== 0 && (e.f & ye) !== 0;
@@ -1628,13 +1537,13 @@ function Gi(e, t, r) {
1628
1537
  }
1629
1538
  }
1630
1539
  function lr(e) {
1631
- e.f &= ~ln, ki(e, !0);
1540
+ e.f &= ~fn, ki(e, !0);
1632
1541
  }
1633
1542
  function ki(e, t) {
1634
- if (!(e.f & ln) && e.f & ie) {
1635
- e.f ^= ie, e.f & Q || (W(e, q), Re.ensure().schedule(e));
1543
+ if (!(e.f & fn) && e.f & ie) {
1544
+ e.f ^= ie, e.f & Q || (W(e, z), Re.ensure().schedule(e));
1636
1545
  for (var r = e.first; r !== null; ) {
1637
- var n = r.next, i = (r.f & _t) !== 0 || (r.f & ge) !== 0;
1546
+ var n = r.next, i = (r.f & vt) !== 0 || (r.f & ge) !== 0;
1638
1547
  ki(r, i ? t : !1), r = n;
1639
1548
  }
1640
1549
  var s = e.nodes && e.nodes.t;
@@ -1651,7 +1560,7 @@ function Sn(e, t) {
1651
1560
  }
1652
1561
  }
1653
1562
  let qt = !1, De = !1;
1654
- function Cn(e) {
1563
+ function Rn(e) {
1655
1564
  De = e;
1656
1565
  }
1657
1566
  let P = null, xe = !1;
@@ -1664,24 +1573,24 @@ function $e(e) {
1664
1573
  }
1665
1574
  let Ne = null;
1666
1575
  function ji(e) {
1667
- P !== null && (Ne ??= /* @__PURE__ */ new Set()).add(e);
1576
+ P !== null && (P.f & ir || P.f & K) && (Ne ??= /* @__PURE__ */ new Set()).add(e);
1668
1577
  }
1669
- let ue = null, he = 0, de = null;
1670
- function $a(e) {
1578
+ let le = null, he = 0, de = null;
1579
+ function Ma(e) {
1671
1580
  de = e;
1672
1581
  }
1673
- let Vi = 1, Je = 0, Ke = Je;
1674
- function Rn(e) {
1675
- Ke = e;
1582
+ let Vi = 1, Qe = 0, et = Qe;
1583
+ function Dn(e) {
1584
+ et = e;
1676
1585
  }
1677
1586
  function Xi() {
1678
1587
  return ++Vi;
1679
1588
  }
1680
1589
  function Vt(e) {
1681
1590
  var t = e.f;
1682
- if (t & q)
1591
+ if (t & z)
1683
1592
  return !0;
1684
- if (t & K && (e.f &= ~et), t & we) {
1593
+ if (t & _e) {
1685
1594
  for (var r = (
1686
1595
  /** @type {Value[]} */
1687
1596
  e.deps
@@ -1696,7 +1605,7 @@ function Vt(e) {
1696
1605
  ), s.wv > e.wv)
1697
1606
  return !0;
1698
1607
  }
1699
- t & _e && // During time traveling we don't want to reset the status so that
1608
+ t & we && // During time traveling we don't want to reset the status so that
1700
1609
  // traversal of the graph in the other batches still happens
1701
1610
  Ee === null && W(e, Q);
1702
1611
  }
@@ -1712,16 +1621,16 @@ function Wi(e, t, r = !0) {
1712
1621
  s,
1713
1622
  t,
1714
1623
  !1
1715
- ) : t === s && (r ? W(s, q) : s.f & Q && W(s, we), mn(
1624
+ ) : t === s && (r ? W(s, z) : s.f & Q && W(s, _e), mn(
1716
1625
  /** @type {Effect} */
1717
1626
  s
1718
1627
  ));
1719
1628
  }
1720
1629
  }
1721
1630
  function Yi(e) {
1722
- var t = ue, r = he, n = de, i = P, s = Ne, a = se, o = xe, u = Ke, l = e.f;
1723
- ue = /** @type {null | Value[]} */
1724
- null, he = 0, de = null, P = l & (ge | Pe) ? null : e, Ne = null, mt(e.ctx), xe = !1, Ke = ++Je, e.ac !== null && (gr(() => {
1631
+ var t = le, r = he, n = de, i = P, s = Ne, a = ae, o = xe, u = et, l = e.f;
1632
+ le = /** @type {null | Value[]} */
1633
+ null, he = 0, de = null, P = l & (ge | Pe) ? null : e, Ne = null, _t(e.ctx), xe = !1, et = ++Qe, e.ac !== null && (mr(() => {
1725
1634
  e.ac.abort(kt);
1726
1635
  }), e.ac = null);
1727
1636
  try {
@@ -1731,8 +1640,8 @@ function Yi(e) {
1731
1640
  e.fn
1732
1641
  ), h = f();
1733
1642
  e.f |= rt;
1734
- var c = Dn(e);
1735
- if (gi() && de !== null && !xe && c !== null && !(e.f & (K | we | q)))
1643
+ var c = Un(e);
1644
+ if (bi() && de !== null && !xe && c !== null && !(e.f & (K | _e | z)))
1736
1645
  for (var d = 0; d < /** @type {Source[]} */
1737
1646
  de.length; d++)
1738
1647
  Wi(
@@ -1741,38 +1650,38 @@ function Yi(e) {
1741
1650
  e
1742
1651
  );
1743
1652
  if (i !== null && i !== e) {
1744
- if (Je++, i.deps !== null)
1653
+ if (Qe++, i.deps !== null)
1745
1654
  for (let p = 0; p < r; p += 1)
1746
- i.deps[p].rv = Je;
1655
+ i.deps[p].rv = Qe;
1747
1656
  if (t !== null)
1748
1657
  for (const p of t)
1749
- p.rv = Je;
1658
+ p.rv = Qe;
1750
1659
  de !== null && (n === null ? n = de : n.push(.../** @type {Source[]} */
1751
1660
  de));
1752
1661
  }
1753
1662
  return e.f & Ve && (e.f ^= Ve), h;
1754
1663
  } catch (p) {
1755
- return Dn(e), Sa(p);
1664
+ return Un(e), Ea(p);
1756
1665
  } finally {
1757
- e.f ^= ir, ue = t, he = r, de = n, P = i, Ne = s, mt(a), xe = o, Ke = u;
1666
+ e.f ^= ir, le = t, he = r, de = n, P = i, Ne = s, _t(a), xe = o, et = u;
1758
1667
  }
1759
1668
  }
1760
- function Dn(e) {
1669
+ function Un(e) {
1761
1670
  var t = e.deps, r = I?.is_fork;
1762
- if (ue !== null) {
1671
+ if (le !== null) {
1763
1672
  var n;
1764
1673
  if (r || Dt(e, he), t !== null && he > 0)
1765
- for (t.length = he + ue.length, n = 0; n < ue.length; n++)
1766
- t[he + n] = ue[n];
1674
+ for (t.length = he + le.length, n = 0; n < le.length; n++)
1675
+ t[he + n] = le[n];
1767
1676
  else
1768
- e.deps = t = ue;
1769
- if (En() && e.f & _e)
1677
+ e.deps = t = le;
1678
+ if (En() && e.f & we)
1770
1679
  for (n = he; n < t.length; n++)
1771
1680
  (t[n].reactions ??= []).push(e);
1772
1681
  } else !r && t !== null && he < t.length && (Dt(e, he), t.length = he);
1773
1682
  return t;
1774
1683
  }
1775
- function Ia(e, t) {
1684
+ function Oa(e, t) {
1776
1685
  let r = t.reactions;
1777
1686
  if (r !== null) {
1778
1687
  var n = Us.call(r, e);
@@ -1784,50 +1693,50 @@ function Ia(e, t) {
1784
1693
  if (r === null && t.f & K && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1785
1694
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1786
1695
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1787
- (ue === null || !er.call(ue, t))) {
1696
+ (le === null || !er.call(le, t))) {
1788
1697
  var s = (
1789
1698
  /** @type {Derived} */
1790
1699
  t
1791
1700
  );
1792
- s.f & _e && (s.f ^= _e, s.f &= ~et), s.v !== J && dn(s), s.ac !== null && gr(() => {
1793
- s.ac.abort(kt), s.ac = null, W(s, q);
1794
- }), ya(s), Dt(s, 0);
1701
+ s.f & we && (s.f ^= we), s.v !== J && pn(s), s.ac !== null && mr(() => {
1702
+ s.ac.abort(kt), s.ac = null, W(s, z);
1703
+ }), _a(s), Dt(s, 0);
1795
1704
  }
1796
1705
  }
1797
1706
  function Dt(e, t) {
1798
1707
  var r = e.deps;
1799
1708
  if (r !== null)
1800
1709
  for (var n = t; n < r.length; n++)
1801
- Ia(e, r[n]);
1710
+ Oa(e, r[n]);
1802
1711
  }
1803
- function bt(e) {
1712
+ function gt(e) {
1804
1713
  var t = e.f;
1805
- if (!(t & le)) {
1714
+ if (!(t & se)) {
1806
1715
  W(e, Q);
1807
1716
  var r = O, n = qt;
1808
1717
  O = e, qt = (t & (ge | Pe)) === 0;
1809
1718
  try {
1810
- t & (ye | fi) ? Na(e) : Tn(e), Ui(e);
1719
+ t & (ye | hi) ? Aa(e) : Tn(e), Ui(e);
1811
1720
  var i = Yi(e);
1812
1721
  e.teardown = typeof i == "function" ? i : null, e.wv = Vi;
1813
1722
  var s;
1814
- si && ua && e.f & q && e.deps;
1723
+ ai && ua && e.f & z && e.deps;
1815
1724
  } finally {
1816
1725
  qt = n, O = r;
1817
1726
  }
1818
1727
  }
1819
1728
  }
1820
- async function Ba() {
1729
+ async function Na() {
1821
1730
  await Promise.resolve(), ve();
1822
1731
  }
1823
1732
  function w(e) {
1824
1733
  var t = e.f, r = (t & K) !== 0;
1825
1734
  if (P !== null && !xe) {
1826
- var n = O !== null && (O.f & le) !== 0;
1735
+ var n = O !== null && (O.f & se) !== 0;
1827
1736
  if (!n && (Ne === null || !Ne.has(e))) {
1828
1737
  var i = P.deps;
1829
1738
  if (P.f & ir)
1830
- e.rv < Je && (e.rv = Je, ue === null && i !== null && i[he] === e ? he++ : ue === null ? ue = [e] : ue.push(e));
1739
+ e.rv < Qe && (e.rv = Qe, le === null && i !== null && i[he] === e ? he++ : le === null ? le = [e] : le.push(e));
1831
1740
  else {
1832
1741
  P.deps ??= [], er.call(P.deps, e) || P.deps.push(e);
1833
1742
  var s = e.reactions;
@@ -1846,8 +1755,8 @@ function w(e) {
1846
1755
  var o = a.v;
1847
1756
  return (!(a.f & Q) && a.reactions !== null || Zi(a)) && (o = vn(a)), Oe.set(a, o), o;
1848
1757
  }
1849
- var u = (a.f & _e) === 0 && !xe && P !== null && (qt || (P.f & _e) !== 0), l = (a.f & rt) === 0;
1850
- Vt(a) && (u && (a.f |= _e), wi(a)), u && !l && (Ti(a), zi(a));
1758
+ var u = (a.f & we) === 0 && !xe && P !== null && (qt || (P.f & we) !== 0), l = (a.f & rt) === 0;
1759
+ Vt(a) && (u && (a.f |= we), wi(a)), u && !l && (Ti(a), zi(a));
1851
1760
  }
1852
1761
  if (Ee?.has(e))
1853
1762
  return Ee.get(e);
@@ -1856,9 +1765,9 @@ function w(e) {
1856
1765
  return e.v;
1857
1766
  }
1858
1767
  function zi(e) {
1859
- if (e.f |= _e, e.deps !== null)
1768
+ if (e.f |= we, e.deps !== null)
1860
1769
  for (const t of e.deps)
1861
- (t.reactions ??= []).push(e), t.f & K && !(t.f & _e) && (Ti(
1770
+ (t.reactions ??= []).push(e), t.f & K && !(t.f & we) && (Ti(
1862
1771
  /** @type {Derived} */
1863
1772
  t
1864
1773
  ), zi(
@@ -1885,18 +1794,18 @@ function An(e) {
1885
1794
  xe = t;
1886
1795
  }
1887
1796
  }
1888
- const It = Symbol("events"), qi = /* @__PURE__ */ new Set(), zr = /* @__PURE__ */ new Set();
1797
+ const $t = Symbol("events"), qi = /* @__PURE__ */ new Set(), zr = /* @__PURE__ */ new Set();
1889
1798
  function Mr(e, t, r) {
1890
- (t[It] ??= {})[e] = r;
1799
+ (t[$t] ??= {})[e] = r;
1891
1800
  }
1892
- function La(e) {
1801
+ function Pa(e) {
1893
1802
  for (var t = 0; t < e.length; t++)
1894
1803
  qi.add(e[t]);
1895
1804
  for (var r of zr)
1896
1805
  r(e);
1897
1806
  }
1898
1807
  let Or = null, Nr = !1;
1899
- function Un(e) {
1808
+ function Fn(e) {
1900
1809
  var t = this, r = (
1901
1810
  /** @type {Node} */
1902
1811
  t.ownerDocument
@@ -1907,12 +1816,12 @@ function Un(e) {
1907
1816
  Or = e, Nr || (Nr = !0, setTimeout(() => {
1908
1817
  Nr = !1, Or = null;
1909
1818
  }));
1910
- var a = 0, o = Or === e && e[It];
1819
+ var a = 0, o = Or === e && e[$t];
1911
1820
  if (o) {
1912
1821
  var u = i.indexOf(o);
1913
1822
  if (u !== -1 && (t === document || t === /** @type {any} */
1914
1823
  window)) {
1915
- e[It] = t;
1824
+ e[$t] = t;
1916
1825
  return;
1917
1826
  }
1918
1827
  var l = i.indexOf(t);
@@ -1922,7 +1831,7 @@ function Un(e) {
1922
1831
  }
1923
1832
  if (s = /** @type {Element} */
1924
1833
  i[a] || e.target, s !== t) {
1925
- pt(e, "currentTarget", {
1834
+ dt(e, "currentTarget", {
1926
1835
  configurable: !0,
1927
1836
  get() {
1928
1837
  return s || r;
@@ -1933,7 +1842,7 @@ function Un(e) {
1933
1842
  try {
1934
1843
  for (var c, d = []; s !== null && s !== t; ) {
1935
1844
  try {
1936
- var p = s[It]?.[n];
1845
+ var p = s[$t]?.[n];
1937
1846
  p != null && (!/** @type {any} */
1938
1847
  s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1939
1848
  // -> the target could not have been disabled because it emits the event in the first place
@@ -1955,28 +1864,28 @@ function Un(e) {
1955
1864
  throw c;
1956
1865
  }
1957
1866
  } finally {
1958
- e[It] = t, delete e.currentTarget, be(f), $e(h);
1867
+ e[$t] = t, delete e.currentTarget, be(f), $e(h);
1959
1868
  }
1960
1869
  }
1961
1870
  }
1962
- const Ca = (
1871
+ const $a = (
1963
1872
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
1964
1873
  globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
1965
1874
  /** @param {string} html */
1966
1875
  createHTML: (e) => e
1967
1876
  })
1968
1877
  );
1969
- function Ra(e) {
1878
+ function Ia(e) {
1970
1879
  return (
1971
1880
  /** @type {string} */
1972
- Ca?.createHTML(e) ?? e
1881
+ $a?.createHTML(e) ?? e
1973
1882
  );
1974
1883
  }
1975
- function Da(e) {
1884
+ function Ba(e) {
1976
1885
  var t = bn("template");
1977
- return t.innerHTML = Ra(e.replaceAll("<!>", "<!---->")), t.content;
1886
+ return t.innerHTML = Ia(e.replaceAll("<!>", "<!---->")), t.content;
1978
1887
  }
1979
- function ct(e, t) {
1888
+ function ht(e, t) {
1980
1889
  var r = (
1981
1890
  /** @type {Effect} */
1982
1891
  O
@@ -1984,12 +1893,12 @@ function ct(e, t) {
1984
1893
  r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
1985
1894
  }
1986
1895
  // @__NO_SIDE_EFFECTS__
1987
- function yr(e, t) {
1896
+ function br(e, t) {
1988
1897
  var r = (t & Cs) !== 0, n = (t & Rs) !== 0, i, s = !e.startsWith("<!>");
1989
1898
  return () => {
1990
1899
  if (L)
1991
- return ct(B, null), B;
1992
- i === void 0 && (i = Da(s ? e : "<!>" + e), r || (i = /** @type {TemplateNode} */
1900
+ return ht(B, null), B;
1901
+ i === void 0 && (i = Ba(s ? e : "<!>" + e), r || (i = /** @type {TemplateNode} */
1993
1902
  /* @__PURE__ */ Xe(i)));
1994
1903
  var a = (
1995
1904
  /** @type {TemplateNode} */
@@ -2003,17 +1912,17 @@ function yr(e, t) {
2003
1912
  /** @type {TemplateNode} */
2004
1913
  a.lastChild
2005
1914
  );
2006
- ct(o, u);
1915
+ ht(o, u);
2007
1916
  } else
2008
- ct(a, a);
1917
+ ht(a, a);
2009
1918
  return a;
2010
1919
  };
2011
1920
  }
2012
- function Ua() {
1921
+ function La() {
2013
1922
  if (L)
2014
- return ct(B, null), B;
1923
+ return ht(B, null), B;
2015
1924
  var e = document.createDocumentFragment(), t = document.createComment(""), r = me();
2016
- return e.append(t, r), ct(t, r), e;
1925
+ return e.append(t, r), ht(t, r), e;
2017
1926
  }
2018
1927
  function ut(e, t) {
2019
1928
  if (L) {
@@ -2029,11 +1938,11 @@ function ut(e, t) {
2029
1938
  t
2030
1939
  );
2031
1940
  }
2032
- const Fa = ["touchstart", "touchmove"];
2033
- function Ga(e) {
2034
- return Fa.includes(e);
1941
+ const Ca = ["touchstart", "touchmove"];
1942
+ function Ra(e) {
1943
+ return Ca.includes(e);
2035
1944
  }
2036
- function ka(e) {
1945
+ function Da(e) {
2037
1946
  let t = 0, r = tt(0), n;
2038
1947
  return () => {
2039
1948
  En() && (w(r), xn(() => (t === 0 && (n = An(() => e(() => Ct(r)))), t += 1, () => {
@@ -2043,11 +1952,11 @@ function ka(e) {
2043
1952
  })));
2044
1953
  };
2045
1954
  }
2046
- var ja = _t | nt;
2047
- function Va(e, t, r, n) {
2048
- new Xa(e, t, r, n);
1955
+ var Ua = vt | nt;
1956
+ function Fa(e, t, r, n) {
1957
+ new Ga(e, t, r, n);
2049
1958
  }
2050
- class Xa {
1959
+ class Ga {
2051
1960
  /** @type {Boundary | null} */
2052
1961
  parent;
2053
1962
  is_pending = !1;
@@ -2075,7 +1984,7 @@ class Xa {
2075
1984
  #o = null;
2076
1985
  /** @type {DocumentFragment | null} */
2077
1986
  #s = null;
2078
- #v = 0;
1987
+ #p = 0;
2079
1988
  #l = 0;
2080
1989
  #f = !1;
2081
1990
  /** @type {Set<Effect>} */
@@ -2090,7 +1999,7 @@ class Xa {
2090
1999
  * @type {Source<number> | null}
2091
2000
  */
2092
2001
  #h = null;
2093
- #b = ka(() => (this.#h = tt(this.#v), () => {
2002
+ #b = Da(() => (this.#h = tt(this.#p), () => {
2094
2003
  this.#h = null;
2095
2004
  }));
2096
2005
  /**
@@ -2114,16 +2023,16 @@ class Xa {
2114
2023
  this.#t
2115
2024
  );
2116
2025
  _r();
2117
- const a = s.data === on;
2118
- if (s.data.startsWith(On)) {
2119
- const u = JSON.parse(s.data.slice(On.length));
2120
- this.#y(u);
2121
- } else a ? this.#x() : this.#m();
2026
+ const a = s.data === un;
2027
+ if (s.data.startsWith(Nn)) {
2028
+ const u = JSON.parse(s.data.slice(Nn.length));
2029
+ this.#m(u);
2030
+ } else a ? this.#w() : this.#y();
2122
2031
  } else
2123
- this.#d();
2124
- }, ja), L && (this.#e = B);
2032
+ this.#E();
2033
+ }, Ua), L && (this.#e = B);
2125
2034
  }
2126
- #m() {
2035
+ #y() {
2127
2036
  try {
2128
2037
  this.#a = pe(() => this.#u(this.#e));
2129
2038
  } catch (t) {
@@ -2133,8 +2042,8 @@ class Xa {
2133
2042
  /**
2134
2043
  * @param {unknown} error The deserialized error from the server's hydration comment
2135
2044
  */
2136
- #y(t) {
2137
- const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#E(t);
2045
+ #m(t) {
2046
+ const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#g(t);
2138
2047
  ke(i), r && (this.#o = pe(() => {
2139
2048
  r(
2140
2049
  this.#e,
@@ -2149,17 +2058,17 @@ class Xa {
2149
2058
  * @param {unknown} error
2150
2059
  * @returns {{ reset: () => void, invoke_onerror: () => void }}
2151
2060
  */
2152
- #E(t) {
2061
+ #g(t) {
2153
2062
  var r = !1, n = !1;
2154
2063
  const i = () => {
2155
2064
  if (r) {
2156
2065
  Zs();
2157
2066
  return;
2158
2067
  }
2159
- r = !0, n && oa(), this.#o !== null && Qe(this.#o, () => {
2068
+ r = !0, n && oa(), this.#o !== null && Ke(this.#o, () => {
2160
2069
  this.#o = null;
2161
- }), this.#p(() => {
2162
- this.#d();
2070
+ }), this.#x(() => {
2071
+ this.#E();
2163
2072
  });
2164
2073
  };
2165
2074
  return { reset: i, invoke_onerror: () => {
@@ -2170,11 +2079,11 @@ class Xa {
2170
2079
  }
2171
2080
  } };
2172
2081
  }
2173
- #x() {
2082
+ #w() {
2174
2083
  const t = this.#r.pending;
2175
2084
  t && (this.is_pending = !0, this.#n = pe(() => t(this.#e)), ke(() => {
2176
2085
  var r = this.#s = document.createDocumentFragment(), n = me(), i = !1;
2177
- if (r.append(n), this.#a = this.#p(() => {
2086
+ if (r.append(n), this.#a = this.#x(() => {
2178
2087
  try {
2179
2088
  return pe(() => this.#u(n));
2180
2089
  } catch (s) {
@@ -2186,27 +2095,27 @@ class Xa {
2186
2095
  return null;
2187
2096
  }
2188
2097
  }), this.#a === null) {
2189
- this.#s = null, i && this.#g(
2098
+ this.#s = null, i && this.#d(
2190
2099
  /** @type {Batch} */
2191
2100
  I
2192
2101
  );
2193
2102
  return;
2194
2103
  }
2195
- this.#l === 0 && (this.#e.before(r), this.#s = null, Qe(
2104
+ this.#l === 0 && (this.#e.before(r), this.#s = null, Ke(
2196
2105
  /** @type {Effect} */
2197
2106
  this.#n,
2198
2107
  () => {
2199
2108
  this.#n = null;
2200
2109
  }
2201
- ), this.#g(
2110
+ ), this.#d(
2202
2111
  /** @type {Batch} */
2203
2112
  I
2204
2113
  ));
2205
2114
  }));
2206
2115
  }
2207
- #d() {
2116
+ #E() {
2208
2117
  try {
2209
- if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#v = 0, this.#a = pe(() => {
2118
+ if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#p = 0, this.#a = pe(() => {
2210
2119
  this.#u(this.#e);
2211
2120
  }), this.#l > 0) {
2212
2121
  var t = this.#s = document.createDocumentFragment();
@@ -2217,7 +2126,7 @@ class Xa {
2217
2126
  );
2218
2127
  this.#n = pe(() => r(this.#e));
2219
2128
  } else
2220
- this.#g(
2129
+ this.#d(
2221
2130
  /** @type {Batch} */
2222
2131
  I
2223
2132
  );
@@ -2228,7 +2137,7 @@ class Xa {
2228
2137
  /**
2229
2138
  * @param {Batch} batch
2230
2139
  */
2231
- #g(t) {
2140
+ #d(t) {
2232
2141
  this.is_pending = !1, t.transfer_effects(this.#c, this.#_);
2233
2142
  }
2234
2143
  /**
@@ -2252,13 +2161,13 @@ class Xa {
2252
2161
  * @template T
2253
2162
  * @param {() => T} fn
2254
2163
  */
2255
- #p(t) {
2256
- var r = O, n = P, i = se;
2257
- $e(this.#i), be(this.#i), mt(this.#i.ctx);
2164
+ #x(t) {
2165
+ var r = O, n = P, i = ae;
2166
+ $e(this.#i), be(this.#i), _t(this.#i.ctx);
2258
2167
  try {
2259
2168
  return Re.ensure(), t();
2260
2169
  } finally {
2261
- $e(r), be(n), mt(i);
2170
+ $e(r), be(n), _t(i);
2262
2171
  }
2263
2172
  }
2264
2173
  /**
@@ -2267,12 +2176,12 @@ class Xa {
2267
2176
  * @param {1 | -1} d
2268
2177
  * @param {Batch} batch
2269
2178
  */
2270
- #w(t, r) {
2179
+ #v(t, r) {
2271
2180
  if (!this.has_pending_snippet()) {
2272
- this.parent && this.parent.#w(t, r);
2181
+ this.parent && this.parent.#v(t, r);
2273
2182
  return;
2274
2183
  }
2275
- this.#l += t, this.#l === 0 && (this.#g(r), this.#n && Qe(this.#n, () => {
2184
+ this.#l += t, this.#l === 0 && (this.#d(r), this.#n && Ke(this.#n, () => {
2276
2185
  this.#n = null;
2277
2186
  }), this.#s && (this.#e.before(this.#s), this.#s = null));
2278
2187
  }
@@ -2284,8 +2193,8 @@ class Xa {
2284
2193
  * @param {Batch} batch
2285
2194
  */
2286
2195
  update_pending_count(t, r) {
2287
- this.#w(t, r), this.#v += t, !(!this.#h || this.#f) && (this.#f = !0, ke(() => {
2288
- this.#f = !1, this.#h && gt(this.#h, this.#v);
2196
+ this.#v(t, r), this.#p += t, !(!this.#h || this.#f) && (this.#f = !0, ke(() => {
2197
+ this.#f = !1, this.#h && mt(this.#h, this.#p);
2289
2198
  }));
2290
2199
  }
2291
2200
  get_effect_pending() {
@@ -2306,14 +2215,14 @@ class Xa {
2306
2215
  * @param {unknown} error
2307
2216
  */
2308
2217
  #T(t) {
2309
- this.#a && (ae(this.#a), this.#a = null), this.#n && (ae(this.#n), this.#n = null), this.#o && (ae(this.#o), this.#o = null), L && (fe(
2218
+ this.#a && (oe(this.#a), this.#a = null), this.#n && (oe(this.#n), this.#n = null), this.#o && (oe(this.#o), this.#o = null), L && (fe(
2310
2219
  /** @type {TemplateNode} */
2311
2220
  this.#t
2312
2221
  ), qs(), fe(sr()));
2313
2222
  let r = this.#r.failed;
2314
2223
  const n = (i) => {
2315
- const { reset: s, invoke_onerror: a } = this.#E(i);
2316
- a(), r && (this.#o = this.#p(() => {
2224
+ const { reset: s, invoke_onerror: a } = this.#g(i);
2225
+ a(), r && (this.#o = this.#x(() => {
2317
2226
  try {
2318
2227
  return pe(() => {
2319
2228
  var o = (
@@ -2360,15 +2269,15 @@ function Pr(e, t) {
2360
2269
  function Ji(e, t) {
2361
2270
  return Qi(e, t);
2362
2271
  }
2363
- function Wa(e, t) {
2272
+ function ka(e, t) {
2364
2273
  Wr(), t.intro = t.intro ?? !1;
2365
2274
  const r = t.target, n = L, i = B;
2366
2275
  try {
2367
2276
  for (var s = /* @__PURE__ */ Xe(r); s && (s.nodeType !== jt || /** @type {Comment} */
2368
- s.data !== ii); )
2277
+ s.data !== si); )
2369
2278
  s = /* @__PURE__ */ Ie(s);
2370
2279
  if (!s)
2371
- throw dt;
2280
+ throw ct;
2372
2281
  Le(!0), fe(
2373
2282
  /** @type {Comment} */
2374
2283
  s
@@ -2380,7 +2289,7 @@ function Wa(e, t) {
2380
2289
  if (a instanceof Error && a.message.split(`
2381
2290
  `).some((o) => o.startsWith("https://svelte.dev/e/")))
2382
2291
  throw a;
2383
- return a !== dt && console.warn("Failed to hydrate: ", a), t.recover === !1 && na(), Wr(), Ii(r), Le(!1), Ji(e, t);
2292
+ return a !== ct && console.warn("Failed to hydrate: ", a), t.recover === !1 && na(), Wr(), Ii(r), Le(!1), Ji(e, t);
2384
2293
  } finally {
2385
2294
  Le(n), fe(i);
2386
2295
  }
@@ -2388,9 +2297,9 @@ function Wa(e, t) {
2388
2297
  const Wt = /* @__PURE__ */ new Map();
2389
2298
  function Qi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0, transformError: o }) {
2390
2299
  Wr();
2391
- var u = void 0, l = Ma(() => {
2300
+ var u = void 0, l = Ta(() => {
2392
2301
  var f = r ?? t.appendChild(me());
2393
- Va(
2302
+ Fa(
2394
2303
  /** @type {TemplateNode} */
2395
2304
  f,
2396
2305
  {
@@ -2398,19 +2307,19 @@ function Qi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
2398
2307
  }
2399
2308
  },
2400
2309
  (d) => {
2401
- fn({});
2310
+ hn({});
2402
2311
  var p = (
2403
2312
  /** @type {ComponentContext} */
2404
- se
2313
+ ae
2405
2314
  );
2406
- if (s && (p.c = s), i && (n.$$events = i), L && ct(
2315
+ if (s && (p.c = s), i && (n.$$events = i), L && ht(
2407
2316
  /** @type {TemplateNode} */
2408
2317
  d,
2409
2318
  null
2410
- ), u = e(d, n) || cn(), L && (O.nodes.end = B, B === null || B.nodeType !== jt || /** @type {Comment} */
2411
- B.data !== un))
2412
- throw vr(), dt;
2413
- hn();
2319
+ ), u = e(d, n) || dn(), L && (O.nodes.end = B, B === null || B.nodeType !== jt || /** @type {Comment} */
2320
+ B.data !== ln))
2321
+ throw vr(), ct;
2322
+ cn();
2414
2323
  },
2415
2324
  o
2416
2325
  );
@@ -2419,12 +2328,12 @@ function Qi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
2419
2328
  var E = d[p];
2420
2329
  if (!h.has(E)) {
2421
2330
  h.add(E);
2422
- var m = Ga(E);
2331
+ var m = Ra(E);
2423
2332
  for (const M of [t, document]) {
2424
2333
  var H = Wt.get(M);
2425
2334
  H === void 0 && (H = /* @__PURE__ */ new Map(), Wt.set(M, H));
2426
2335
  var R = H.get(E);
2427
- R === void 0 ? (M.addEventListener(E, Un, { passive: m }), H.set(E, 1)) : H.set(E, R + 1);
2336
+ R === void 0 ? (M.addEventListener(E, Fn, { passive: m }), H.set(E, 1)) : H.set(E, R + 1);
2428
2337
  }
2429
2338
  }
2430
2339
  }
@@ -2439,7 +2348,7 @@ function Qi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
2439
2348
  /** @type {number} */
2440
2349
  p.get(d)
2441
2350
  );
2442
- --E == 0 ? (m.removeEventListener(d, Un), p.delete(d), p.size === 0 && Wt.delete(m)) : p.set(d, E);
2351
+ --E == 0 ? (m.removeEventListener(d, Fn), p.delete(d), p.size === 0 && Wt.delete(m)) : p.set(d, E);
2443
2352
  }
2444
2353
  zr.delete(c), f !== r && f.parentNode?.removeChild(f);
2445
2354
  };
@@ -2447,11 +2356,11 @@ function Qi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
2447
2356
  return Zr.set(u, l), u;
2448
2357
  }
2449
2358
  let Zr = /* @__PURE__ */ new WeakMap();
2450
- function Ya(e, t) {
2359
+ function ja(e, t) {
2451
2360
  const r = Zr.get(e);
2452
2361
  return r ? (Zr.delete(e), r(t)) : Promise.resolve();
2453
2362
  }
2454
- class za {
2363
+ class Va {
2455
2364
  /** @type {TemplateNode} */
2456
2365
  anchor;
2457
2366
  /** @type {Map<Batch, Key>} */
@@ -2513,7 +2422,7 @@ class za {
2513
2422
  if (this.#e.delete(s), s === t)
2514
2423
  break;
2515
2424
  const o = this.#r.get(a);
2516
- o && (ae(o.effect), this.#r.delete(a));
2425
+ o && (oe(o.effect), this.#r.delete(a));
2517
2426
  }
2518
2427
  for (const [s, a] of this.#t) {
2519
2428
  if (s === r || this.#u.has(s)) continue;
@@ -2522,10 +2431,10 @@ class za {
2522
2431
  var l = document.createDocumentFragment();
2523
2432
  Sn(a, l), l.append(me()), this.#r.set(s, { effect: a, fragment: l });
2524
2433
  } else
2525
- ae(a);
2434
+ oe(a);
2526
2435
  this.#u.delete(s), this.#t.delete(s);
2527
2436
  };
2528
- this.#i || !n ? (this.#u.add(s), Qe(a, o, !1)) : o();
2437
+ this.#i || !n ? (this.#u.add(s), Ke(a, o, !1)) : o();
2529
2438
  }
2530
2439
  }
2531
2440
  };
@@ -2536,7 +2445,7 @@ class za {
2536
2445
  this.#e.delete(t);
2537
2446
  const r = Array.from(this.#e.values());
2538
2447
  for (const [n, i] of this.#r)
2539
- r.includes(n) || (ae(i.effect), this.#r.delete(n));
2448
+ r.includes(n) || (oe(i.effect), this.#r.delete(n));
2540
2449
  };
2541
2450
  /**
2542
2451
  *
@@ -2570,13 +2479,13 @@ class za {
2570
2479
  L && (this.anchor = B), this.#a(n);
2571
2480
  }
2572
2481
  }
2573
- function Fn(e, t, r = !1) {
2482
+ function Gn(e, t, r = !1) {
2574
2483
  var n;
2575
2484
  L && (n = B, _r());
2576
- var i = new za(e), s = r ? _t : 0;
2485
+ var i = new Va(e), s = r ? vt : 0;
2577
2486
  function a(o, u) {
2578
2487
  if (L) {
2579
- var l = pi(
2488
+ var l = vi(
2580
2489
  /** @type {TemplateNode} */
2581
2490
  n
2582
2491
  );
@@ -2595,13 +2504,13 @@ function Fn(e, t, r = !1) {
2595
2504
  }), o || a(-1, null);
2596
2505
  }, s);
2597
2506
  }
2598
- function Za(e, t) {
2507
+ function Xa(e, t) {
2599
2508
  return t;
2600
2509
  }
2601
- function qa(e, t, r) {
2510
+ function Wa(e, t, r) {
2602
2511
  for (var n = [], i = t.length, s, a = t.length, o = 0; o < i; o++) {
2603
2512
  let h = t[o];
2604
- Qe(
2513
+ Ke(
2605
2514
  h,
2606
2515
  () => {
2607
2516
  if (s) {
@@ -2655,12 +2564,12 @@ function qr(e, t, r = !0) {
2655
2564
  const a = document.createDocumentFragment();
2656
2565
  Sn(s, a);
2657
2566
  } else
2658
- ae(t[i], r);
2567
+ oe(t[i], r);
2659
2568
  }
2660
2569
  }
2661
- var Gn;
2662
- function Ja(e, t, r, n, i, s = null) {
2663
- var a = e, o = /* @__PURE__ */ new Map(), u = (t & ni) !== 0;
2570
+ var kn;
2571
+ function Ya(e, t, r, n, i, s = null) {
2572
+ var a = e, o = /* @__PURE__ */ new Map(), u = (t & ii) !== 0;
2664
2573
  if (u) {
2665
2574
  var l = (
2666
2575
  /** @type {Element} */
@@ -2669,15 +2578,15 @@ function Ja(e, t, r, n, i, s = null) {
2669
2578
  a = L ? fe(/* @__PURE__ */ Xe(l)) : l.appendChild(me());
2670
2579
  }
2671
2580
  L && _r();
2672
- var f = null, h = /* @__PURE__ */ ga(() => {
2581
+ var f = null, h = /* @__PURE__ */ pa(() => {
2673
2582
  var M = r();
2674
2583
  return (
2675
2584
  /** @type {V[]} */
2676
- ai(M) ? M : M == null ? [] : dr(M)
2585
+ oi(M) ? M : M == null ? [] : dr(M)
2677
2586
  );
2678
2587
  }), c, d = /* @__PURE__ */ new Map(), p = !0;
2679
2588
  function E(M) {
2680
- R.effect.f & le || (R.pending.delete(M), R.fallback = f, Qa(R, c, a, t, n), f !== null && (c.length === 0 ? f.f & Me ? (f.f ^= Me, Bt(f, null, a)) : lr(f) : Qe(f, () => {
2589
+ R.effect.f & se || (R.pending.delete(M), R.fallback = f, za(R, c, a, t, n), f !== null && (c.length === 0 ? f.f & Me ? (f.f ^= Me, It(f, null, a)) : lr(f) : Ke(f, () => {
2681
2590
  f = null;
2682
2591
  })));
2683
2592
  }
@@ -2690,20 +2599,20 @@ function Ja(e, t, r, n, i, s = null) {
2690
2599
  var M = c.length;
2691
2600
  let V = !1;
2692
2601
  if (L) {
2693
- var z = pi(a) === on;
2694
- z !== (M === 0) && (a = sr(), fe(a), Le(!1), V = !0);
2602
+ var Z = vi(a) === un;
2603
+ Z !== (M === 0) && (a = sr(), fe(a), Le(!1), V = !0);
2695
2604
  }
2696
2605
  for (var D = /* @__PURE__ */ new Set(), Y = (
2697
2606
  /** @type {Batch} */
2698
2607
  I
2699
2608
  ), ce = Bi(), ee = 0; ee < M; ee += 1) {
2700
2609
  L && B.nodeType === jt && /** @type {Comment} */
2701
- B.data === un && (a = /** @type {Comment} */
2610
+ B.data === ln && (a = /** @type {Comment} */
2702
2611
  B, V = !0, Le(!1));
2703
2612
  var b = c[ee], T = n(b, ee), G = p ? null : o.get(T);
2704
- G ? (G.v && gt(G.v, b), G.i && gt(G.i, ee), ce && Y.unskip_effect(G.e)) : (G = Ka(
2613
+ G ? (G.v && mt(G.v, b), G.i && mt(G.i, ee), ce && Y.unskip_effect(G.e)) : (G = Za(
2705
2614
  o,
2706
- p ? a : Gn ??= me(),
2615
+ p ? a : kn ??= me(),
2707
2616
  b,
2708
2617
  T,
2709
2618
  ee,
@@ -2712,7 +2621,7 @@ function Ja(e, t, r, n, i, s = null) {
2712
2621
  r
2713
2622
  ), p || (G.e.f |= Me), o.set(T, G)), D.add(T);
2714
2623
  }
2715
- if (M === 0 && s && !f && (p ? f = pe(() => s(a)) : (f = pe(() => s(Gn ??= me())), f.f |= Me)), M > D.size && Qs(), L && M > 0 && fe(sr()), !p)
2624
+ if (M === 0 && s && !f && (p ? f = pe(() => s(a)) : (f = pe(() => s(kn ??= me())), f.f |= Me)), M > D.size && Qs(), L && M > 0 && fe(sr()), !p)
2716
2625
  if (d.set(Y, D), ce) {
2717
2626
  for (const [Ye, x] of o)
2718
2627
  D.has(Ye) || Y.skip_effect(x.e);
@@ -2723,13 +2632,13 @@ function Ja(e, t, r, n, i, s = null) {
2723
2632
  }), R = { effect: H, items: o, pending: d, outrogroups: null, fallback: f };
2724
2633
  p = !1, L && (a = B);
2725
2634
  }
2726
- function Ot(e) {
2635
+ function Mt(e) {
2727
2636
  for (; e !== null && !(e.f & ge); )
2728
2637
  e = e.next;
2729
2638
  return e;
2730
2639
  }
2731
- function Qa(e, t, r, n, i) {
2732
- var s = (n & Bs) !== 0, a = t.length, o = e.items, u = Ot(e.effect.first), l, f = null, h, c = [], d = [], p, E, m, H;
2640
+ function za(e, t, r, n, i) {
2641
+ var s = (n & Bs) !== 0, a = t.length, o = e.items, u = Mt(e.effect.first), l, f = null, h, c = [], d = [], p, E, m, H;
2733
2642
  if (s)
2734
2643
  for (H = 0; H < a; H += 1)
2735
2644
  p = t[H], E = i(p, H), m = /** @type {EachItem} */
@@ -2741,10 +2650,10 @@ function Qa(e, t, r, n, i) {
2741
2650
  b.pending.delete(m), b.done.delete(m);
2742
2651
  if (m.f & ie && (lr(m), s && (m.nodes?.a?.unfix(), (h ??= /* @__PURE__ */ new Set()).delete(m))), m.f & Me)
2743
2652
  if (m.f ^= Me, m === u)
2744
- Bt(m, null, r);
2653
+ It(m, null, r);
2745
2654
  else {
2746
2655
  var R = f ? f.next : u;
2747
- m === e.effect.last && (e.effect.last = m.prev), m.prev && (m.prev.next = m.next), m.next && (m.next.prev = m.prev), Ge(e, f, m), Ge(e, m, R), Bt(m, R, r), f = m, c = [], d = [], u = Ot(f.next);
2656
+ m === e.effect.last && (e.effect.last = m.prev), m.prev && (m.prev.next = m.next), m.next && (m.next.prev = m.prev), Ge(e, f, m), Ge(e, m, R), It(m, R, r), f = m, c = [], d = [], u = Mt(f.next);
2748
2657
  continue;
2749
2658
  }
2750
2659
  if (m !== u) {
@@ -2752,22 +2661,22 @@ function Qa(e, t, r, n, i) {
2752
2661
  if (c.length < d.length) {
2753
2662
  var M = d[0], V;
2754
2663
  f = M.prev;
2755
- var z = c[0], D = c[c.length - 1];
2664
+ var Z = c[0], D = c[c.length - 1];
2756
2665
  for (V = 0; V < c.length; V += 1)
2757
- Bt(c[V], M, r);
2666
+ It(c[V], M, r);
2758
2667
  for (V = 0; V < d.length; V += 1)
2759
2668
  l.delete(d[V]);
2760
- Ge(e, z.prev, D.next), Ge(e, f, z), Ge(e, D, M), u = M, f = D, H -= 1, c = [], d = [];
2669
+ Ge(e, Z.prev, D.next), Ge(e, f, Z), Ge(e, D, M), u = M, f = D, H -= 1, c = [], d = [];
2761
2670
  } else
2762
- l.delete(m), Bt(m, u, r), Ge(e, m.prev, m.next), Ge(e, m, f === null ? e.effect.first : f.next), Ge(e, f, m), f = m;
2671
+ l.delete(m), It(m, u, r), Ge(e, m.prev, m.next), Ge(e, m, f === null ? e.effect.first : f.next), Ge(e, f, m), f = m;
2763
2672
  continue;
2764
2673
  }
2765
2674
  for (c = [], d = []; u !== null && u !== m; )
2766
- (l ??= /* @__PURE__ */ new Set()).add(u), d.push(u), u = Ot(u.next);
2675
+ (l ??= /* @__PURE__ */ new Set()).add(u), d.push(u), u = Mt(u.next);
2767
2676
  if (u === null)
2768
2677
  continue;
2769
2678
  }
2770
- m.f & Me || c.push(m), f = m, u = Ot(m.next);
2679
+ m.f & Me || c.push(m), f = m, u = Mt(m.next);
2771
2680
  }
2772
2681
  if (e.outrogroups !== null) {
2773
2682
  for (const b of e.outrogroups)
@@ -2780,17 +2689,17 @@ function Qa(e, t, r, n, i) {
2780
2689
  for (m of l)
2781
2690
  m.f & ie || Y.push(m);
2782
2691
  for (; u !== null; )
2783
- !(u.f & ie) && u !== e.fallback && Y.push(u), u = Ot(u.next);
2692
+ !(u.f & ie) && u !== e.fallback && Y.push(u), u = Mt(u.next);
2784
2693
  var ce = Y.length;
2785
2694
  if (ce > 0) {
2786
- var ee = n & ni && a === 0 ? r : null;
2695
+ var ee = n & ii && a === 0 ? r : null;
2787
2696
  if (s) {
2788
2697
  for (H = 0; H < ce; H += 1)
2789
2698
  Y[H].nodes?.a?.measure();
2790
2699
  for (H = 0; H < ce; H += 1)
2791
2700
  Y[H].nodes?.a?.fix();
2792
2701
  }
2793
- qa(e, Y, ee);
2702
+ Wa(e, Y, ee);
2794
2703
  }
2795
2704
  }
2796
2705
  s && ke(() => {
@@ -2799,7 +2708,7 @@ function Qa(e, t, r, n, i) {
2799
2708
  m.nodes?.a?.apply();
2800
2709
  });
2801
2710
  }
2802
- function Ka(e, t, r, n, i, s, a, o) {
2711
+ function Za(e, t, r, n, i, s, a, o) {
2803
2712
  var u = a & $s ? a & Ls ? tt(r) : /* @__PURE__ */ gn(r, !1, !1) : null, l = a & Is ? tt(i) : null;
2804
2713
  return {
2805
2714
  v: u,
@@ -2809,7 +2718,7 @@ function Ka(e, t, r, n, i, s, a, o) {
2809
2718
  }))
2810
2719
  };
2811
2720
  }
2812
- function Bt(e, t, r) {
2721
+ function It(e, t, r) {
2813
2722
  if (e.nodes)
2814
2723
  for (var n = e.nodes.start, i = e.nodes.end, s = t && !(t.f & Me) ? (
2815
2724
  /** @type {EffectNodes} */
@@ -2827,7 +2736,7 @@ function Bt(e, t, r) {
2827
2736
  function Ge(e, t, r) {
2828
2737
  t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
2829
2738
  }
2830
- function eo(e, t) {
2739
+ function qa(e, t) {
2831
2740
  Di(() => {
2832
2741
  e = O?.parent?.nodes?.start ?? e;
2833
2742
  var r = e.getRootNode(), n = (
@@ -2847,9 +2756,9 @@ function eo(e, t) {
2847
2756
  }
2848
2757
  });
2849
2758
  }
2850
- const kn = [...`
2759
+ const jn = [...`
2851
2760
  \r\f \v\uFEFF`];
2852
- function to(e, t, r) {
2761
+ function Ja(e, t, r) {
2853
2762
  var n = e == null ? "" : "" + e;
2854
2763
  if (r) {
2855
2764
  for (var i of Object.keys(r))
@@ -2858,18 +2767,18 @@ function to(e, t, r) {
2858
2767
  else if (n.length)
2859
2768
  for (var s = i.length, a = 0; (a = n.indexOf(i, a)) >= 0; ) {
2860
2769
  var o = a + s;
2861
- (a === 0 || kn.includes(n[a - 1])) && (o === n.length || kn.includes(n[o])) ? n = (a === 0 ? "" : n.substring(0, a)) + n.substring(o + 1) : a = o;
2770
+ (a === 0 || jn.includes(n[a - 1])) && (o === n.length || jn.includes(n[o])) ? n = (a === 0 ? "" : n.substring(0, a)) + n.substring(o + 1) : a = o;
2862
2771
  }
2863
2772
  }
2864
2773
  return n === "" ? null : n;
2865
2774
  }
2866
- function ro(e, t, r, n, i, s) {
2775
+ function Qa(e, t, r, n, i, s) {
2867
2776
  var a = (
2868
2777
  /** @type {any} */
2869
2778
  e[Fr]
2870
2779
  );
2871
2780
  if (L || a !== r || a === void 0) {
2872
- var o = to(r, n, s);
2781
+ var o = Ja(r, n, s);
2873
2782
  (!L || o !== e.getAttribute("class")) && (o == null ? e.removeAttribute("class") : e.className = o), e[Fr] = r;
2874
2783
  } else if (s && i !== s)
2875
2784
  for (var u in s) {
@@ -2878,42 +2787,42 @@ function ro(e, t, r, n, i, s) {
2878
2787
  }
2879
2788
  return s;
2880
2789
  }
2881
- const no = Symbol("is custom element"), io = Symbol("is html"), so = Ys ? "link" : "LINK";
2790
+ const Ka = Symbol("is custom element"), eo = Symbol("is html"), to = Ys ? "link" : "LINK";
2882
2791
  function gl(e, t, r, n) {
2883
- var i = ao(e);
2884
- L && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === so) || i[t] !== (i[t] = r) && (t === "loading" && (e[Xs] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && oo(e).has(t) ? e[t] = r : e.setAttribute(t, r));
2792
+ var i = ro(e);
2793
+ L && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === to) || i[t] !== (i[t] = r) && (t === "loading" && (e[Xs] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && no(e).has(t) ? e[t] = r : e.setAttribute(t, r));
2885
2794
  }
2886
- function ao(e) {
2795
+ function ro(e) {
2887
2796
  return (
2888
2797
  /** @type {Record<string | symbol, unknown>} **/
2889
2798
  /** @type {any} */
2890
- e[di] ??= {
2891
- [no]: e.nodeName.includes("-"),
2892
- [io]: e.namespaceURI === Ds
2799
+ e[pi] ??= {
2800
+ [Ka]: e.nodeName.includes("-"),
2801
+ [eo]: e.namespaceURI === Ds
2893
2802
  }
2894
2803
  );
2895
2804
  }
2896
- var jn = /* @__PURE__ */ new Map();
2897
- function oo(e) {
2898
- var t = e.getAttribute("is") || e.nodeName, r = jn.get(t);
2805
+ var Vn = /* @__PURE__ */ new Map();
2806
+ function no(e) {
2807
+ var t = e.getAttribute("is") || e.nodeName, r = Vn.get(t);
2899
2808
  if (r) return r;
2900
- jn.set(t, r = /* @__PURE__ */ new Set());
2809
+ Vn.set(t, r = /* @__PURE__ */ new Set());
2901
2810
  for (var n, i = e, s = Element.prototype; s !== i; ) {
2902
2811
  n = Fs(i);
2903
2812
  for (var a in n)
2904
2813
  n[a].set && // better safe than sorry, we don't want spread attributes to mess with HTML content
2905
2814
  a !== "innerHTML" && a !== "textContent" && a !== "innerText" && r.add(a);
2906
- i = oi(i);
2815
+ i = ui(i);
2907
2816
  }
2908
2817
  return r;
2909
2818
  }
2910
2819
  function $r(e, t) {
2911
2820
  return e === t || e?.[zt] === t;
2912
2821
  }
2913
- function bl(e = cn(), t, r, n) {
2822
+ function bl(e = dn(), t, r, n) {
2914
2823
  var i = (
2915
2824
  /** @type {ComponentContext} */
2916
- se.r
2825
+ ae.r
2917
2826
  ), s = (
2918
2827
  /** @type {Effect} */
2919
2828
  O
@@ -2937,6 +2846,123 @@ function bl(e = cn(), t, r, n) {
2937
2846
  };
2938
2847
  }), e;
2939
2848
  }
2849
+ function Hn(e, t, r) {
2850
+ if (e == null)
2851
+ return t(void 0), r && r(void 0), Ce;
2852
+ const n = An(
2853
+ () => e.subscribe(
2854
+ t,
2855
+ // @ts-expect-error
2856
+ r
2857
+ )
2858
+ );
2859
+ return n.unsubscribe ? () => n.unsubscribe() : n;
2860
+ }
2861
+ const ot = [];
2862
+ function io(e, t) {
2863
+ return {
2864
+ subscribe: yr(e, t).subscribe
2865
+ };
2866
+ }
2867
+ function yr(e, t = Ce) {
2868
+ let r = null;
2869
+ const n = /* @__PURE__ */ new Set();
2870
+ function i(o) {
2871
+ if (mi(e, o) && (e = o, r)) {
2872
+ const u = !ot.length;
2873
+ for (const l of n)
2874
+ l[1](), ot.push(l, e);
2875
+ if (u) {
2876
+ for (let l = 0; l < ot.length; l += 2)
2877
+ ot[l][0](ot[l + 1]);
2878
+ ot.length = 0;
2879
+ }
2880
+ }
2881
+ }
2882
+ function s(o) {
2883
+ i(o(
2884
+ /** @type {T} */
2885
+ e
2886
+ ));
2887
+ }
2888
+ function a(o, u = Ce) {
2889
+ const l = [o, u];
2890
+ return n.add(l), n.size === 1 && (r = t(i, s) || Ce), o(
2891
+ /** @type {T} */
2892
+ e
2893
+ ), () => {
2894
+ n.delete(l), n.size === 0 && r && (r(), r = null);
2895
+ };
2896
+ }
2897
+ return { set: i, update: s, subscribe: a };
2898
+ }
2899
+ function wt(e, t, r) {
2900
+ const n = !Array.isArray(e), i = n ? [e] : e;
2901
+ if (!i.every(Boolean))
2902
+ throw new Error("derived() expects stores as input, got a falsy value");
2903
+ const s = t.length < 2;
2904
+ return io(r, (a, o) => {
2905
+ let u = !1;
2906
+ const l = [];
2907
+ let f = 0, h = Ce;
2908
+ const c = () => {
2909
+ if (f)
2910
+ return;
2911
+ h();
2912
+ const p = t(n ? l[0] : l, a, o);
2913
+ s ? a(p) : h = typeof p == "function" ? p : Ce;
2914
+ }, d = i.map(
2915
+ (p, E) => Hn(
2916
+ p,
2917
+ (m) => {
2918
+ l[E] = m, f &= ~(1 << E), u && c();
2919
+ },
2920
+ () => {
2921
+ f |= 1 << E;
2922
+ }
2923
+ )
2924
+ );
2925
+ return u = !0, c(), function() {
2926
+ li(d), h(), u = !1;
2927
+ };
2928
+ });
2929
+ }
2930
+ function so(e) {
2931
+ let t;
2932
+ return Hn(e, (r) => t = r)(), t;
2933
+ }
2934
+ let Jr = Symbol("unmounted");
2935
+ function ao(e, t, r) {
2936
+ const n = r[t] ??= {
2937
+ store: null,
2938
+ source: /* @__PURE__ */ gn(void 0),
2939
+ unsubscribe: Ce
2940
+ };
2941
+ if (n.store !== e && !(Jr in r))
2942
+ if (n.unsubscribe(), n.store = e ?? null, e == null)
2943
+ n.source.v = void 0, n.unsubscribe = Ce;
2944
+ else {
2945
+ var i = !0;
2946
+ n.unsubscribe = Hn(e, (s) => {
2947
+ i ? n.source.v = s : q(n.source, s);
2948
+ }), i = !1;
2949
+ }
2950
+ return e && Jr in r ? so(e) : w(n.source);
2951
+ }
2952
+ function oo() {
2953
+ const e = {};
2954
+ function t() {
2955
+ Ci(() => {
2956
+ for (var r in e)
2957
+ e[r].unsubscribe();
2958
+ dt(e, Jr, {
2959
+ enumerable: !1,
2960
+ value: !0
2961
+ });
2962
+ });
2963
+ }
2964
+ return [e, t];
2965
+ }
2940
2966
  function Ae(e, t, r, n) {
2941
2967
  var i = (
2942
2968
  /** @type {V} */
@@ -2953,7 +2979,7 @@ function Ae(e, t, r, n) {
2953
2979
  );
2954
2980
  return c === void 0 ? a() : (s = !0, c);
2955
2981
  };
2956
- var l = !1, f = /* @__PURE__ */ br(() => (l = !1, u())), h = (
2982
+ var l = !1, f = /* @__PURE__ */ gr(() => (l = !1, u())), h = (
2957
2983
  /** @type {Effect} */
2958
2984
  O
2959
2985
  );
@@ -2962,9 +2988,9 @@ function Ae(e, t, r, n) {
2962
2988
  function(c, d) {
2963
2989
  if (arguments.length > 0) {
2964
2990
  const p = d ? w(f) : c;
2965
- return Z(f, p), l = !0, i !== void 0 && (i = p), c;
2991
+ return q(f, p), l = !0, i !== void 0 && (i = p), c;
2966
2992
  }
2967
- return De && l || h.f & le ? f.v : w(f);
2993
+ return De && l || h.f & se ? f.v : w(f);
2968
2994
  }
2969
2995
  );
2970
2996
  }
@@ -2996,11 +3022,11 @@ class lo {
2996
3022
  return a === Vs ? !0 : (w(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
2997
3023
  },
2998
3024
  set(s, a, o) {
2999
- return Z(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
3025
+ return q(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
3000
3026
  }
3001
3027
  }
3002
3028
  );
3003
- this.#t = (t.hydrate ? Wa : Ji)(t.component, {
3029
+ this.#t = (t.hydrate ? ka : Ji)(t.component, {
3004
3030
  target: t.target,
3005
3031
  anchor: t.anchor,
3006
3032
  props: i,
@@ -3010,7 +3036,7 @@ class lo {
3010
3036
  transformError: t.transformError
3011
3037
  }), (!t?.props?.$$host || t.sync === !1) && ve(), this.#e = i.$$events;
3012
3038
  for (const s of Object.keys(this.#t))
3013
- s === "$set" || s === "$destroy" || s === "$on" || pt(this, s, {
3039
+ s === "$set" || s === "$destroy" || s === "$on" || dt(this, s, {
3014
3040
  get() {
3015
3041
  return this.#t[s];
3016
3042
  },
@@ -3024,7 +3050,7 @@ class lo {
3024
3050
  (s) => {
3025
3051
  Object.assign(i, s);
3026
3052
  }, this.#t.$destroy = () => {
3027
- Ya(this.#t);
3053
+ ja(this.#t);
3028
3054
  };
3029
3055
  }
3030
3056
  /** @param {Record<string, any>} props */
@@ -3132,7 +3158,7 @@ typeof HTMLElement == "function" && (Ki = class extends HTMLElement {
3132
3158
  $$slots: t,
3133
3159
  $$host: this
3134
3160
  }
3135
- }), this.$$me = Ha(() => {
3161
+ }), this.$$me = wa(() => {
3136
3162
  xn(() => {
3137
3163
  this.$$r = !0;
3138
3164
  for (const n of tr(this.$$c)) {
@@ -3231,7 +3257,7 @@ function es(e, t, r, n, i, s) {
3231
3257
  }
3232
3258
  };
3233
3259
  return tr(t).forEach((o) => {
3234
- pt(a.prototype, o, {
3260
+ dt(a.prototype, o, {
3235
3261
  get() {
3236
3262
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
3237
3263
  },
@@ -3239,13 +3265,13 @@ function es(e, t, r, n, i, s) {
3239
3265
  u = Jt(o, u, t), this.$$d[o] = u;
3240
3266
  var l = this.$$c;
3241
3267
  if (l) {
3242
- var f = ft(l, o)?.get;
3268
+ var f = lt(l, o)?.get;
3243
3269
  f ? l[o] = u : l.$set({ [o]: u });
3244
3270
  }
3245
3271
  }
3246
3272
  });
3247
3273
  }), n.forEach((o) => {
3248
- pt(a.prototype, o, {
3274
+ dt(a.prototype, o, {
3249
3275
  get() {
3250
3276
  return this.$$c?.[o];
3251
3277
  }
@@ -3321,13 +3347,13 @@ var is = { exports: {} };
3321
3347
  return { M: h, y: d, w: f, d: l, D: p, h: u, m: o, s: a, ms: s, Q: c }[x] || String(x || "").toLowerCase().replace(/s$/, "");
3322
3348
  }, u: function(x) {
3323
3349
  return x === void 0;
3324
- } }, z = "en", D = {};
3325
- D[z] = R;
3350
+ } }, Z = "en", D = {};
3351
+ D[Z] = R;
3326
3352
  var Y = "$isDayjsObject", ce = function(x) {
3327
3353
  return x instanceof G || !(!x || !x[Y]);
3328
3354
  }, ee = function x(g, v, y) {
3329
3355
  var _;
3330
- if (!g) return z;
3356
+ if (!g) return Z;
3331
3357
  if (typeof g == "string") {
3332
3358
  var S = g.toLowerCase();
3333
3359
  D[S] && (_ = S), v && (D[S] = v, _ = S);
@@ -3337,7 +3363,7 @@ var is = { exports: {} };
3337
3363
  var C = g.name;
3338
3364
  D[C] = g, _ = C;
3339
3365
  }
3340
- return !y && _ && (z = _), _ || !y && z;
3366
+ return !y && _ && (Z = _), _ || !y && Z;
3341
3367
  }, b = function(x, g) {
3342
3368
  if (ce(x)) return x.clone();
3343
3369
  var v = typeof g == "object" ? g : {};
@@ -3387,11 +3413,11 @@ var is = { exports: {} };
3387
3413
  }, g.valueOf = function() {
3388
3414
  return this.$d.getTime();
3389
3415
  }, g.startOf = function(v, y) {
3390
- var _ = this, S = !!T.u(y) || y, A = T.p(v), C = function(Ze, oe) {
3391
- var Fe = T.w(_.$u ? Date.UTC(_.$y, oe, Ze) : new Date(_.$y, oe, Ze), _);
3416
+ var _ = this, S = !!T.u(y) || y, A = T.p(v), C = function(Ze, ue) {
3417
+ var Fe = T.w(_.$u ? Date.UTC(_.$y, ue, Ze) : new Date(_.$y, ue, Ze), _);
3392
3418
  return S ? Fe : Fe.endOf(l);
3393
- }, k = function(Ze, oe) {
3394
- return T.w(_.toDate()[Ze].apply(_.toDate("s"), (S ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(oe)), _);
3419
+ }, k = function(Ze, ue) {
3420
+ return T.w(_.toDate()[Ze].apply(_.toDate("s"), (S ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ue)), _);
3395
3421
  }, U = this.$W, j = this.$M, te = this.$D, Ue = "set" + (this.$u ? "UTC" : "");
3396
3422
  switch (A) {
3397
3423
  case d:
@@ -3399,8 +3425,8 @@ var is = { exports: {} };
3399
3425
  case h:
3400
3426
  return S ? C(1, j) : C(0, j + 1);
3401
3427
  case f:
3402
- var ze = this.$locale().weekStart || 0, Ht = (U < ze ? U + 7 : U) - ze;
3403
- return C(S ? te - Ht : te + (6 - Ht), j);
3428
+ var ze = this.$locale().weekStart || 0, At = (U < ze ? U + 7 : U) - ze;
3429
+ return C(S ? te - At : te + (6 - At), j);
3404
3430
  case l:
3405
3431
  case p:
3406
3432
  return k(Ue + "Hours", 0);
@@ -3444,17 +3470,17 @@ var is = { exports: {} };
3444
3470
  }, g.format = function(v) {
3445
3471
  var y = this, _ = this.$locale();
3446
3472
  if (!this.isValid()) return _.invalidDate || E;
3447
- var S = v || "YYYY-MM-DDTHH:mm:ssZ", A = T.z(this), C = this.$H, k = this.$m, U = this.$M, j = _.weekdays, te = _.months, Ue = _.meridiem, ze = function(oe, Fe, Mt, Xt) {
3448
- return oe && (oe[Fe] || oe(y, S)) || Mt[Fe].slice(0, Xt);
3449
- }, Ht = function(oe) {
3450
- return T.s(C % 12 || 12, oe, "0");
3451
- }, Ze = Ue || function(oe, Fe, Mt) {
3452
- var Xt = oe < 12 ? "AM" : "PM";
3453
- return Mt ? Xt.toLowerCase() : Xt;
3473
+ var S = v || "YYYY-MM-DDTHH:mm:ssZ", A = T.z(this), C = this.$H, k = this.$m, U = this.$M, j = _.weekdays, te = _.months, Ue = _.meridiem, ze = function(ue, Fe, Ht, Xt) {
3474
+ return ue && (ue[Fe] || ue(y, S)) || Ht[Fe].slice(0, Xt);
3475
+ }, At = function(ue) {
3476
+ return T.s(C % 12 || 12, ue, "0");
3477
+ }, Ze = Ue || function(ue, Fe, Ht) {
3478
+ var Xt = ue < 12 ? "AM" : "PM";
3479
+ return Ht ? Xt.toLowerCase() : Xt;
3454
3480
  };
3455
- return S.replace(H, function(oe, Fe) {
3456
- return Fe || function(Mt) {
3457
- switch (Mt) {
3481
+ return S.replace(H, function(ue, Fe) {
3482
+ return Fe || function(Ht) {
3483
+ switch (Ht) {
3458
3484
  case "YY":
3459
3485
  return String(y.$y).slice(-2);
3460
3486
  case "YYYY":
@@ -3484,9 +3510,9 @@ var is = { exports: {} };
3484
3510
  case "HH":
3485
3511
  return T.s(C, 2, "0");
3486
3512
  case "h":
3487
- return Ht(1);
3513
+ return At(1);
3488
3514
  case "hh":
3489
- return Ht(2);
3515
+ return At(2);
3490
3516
  case "a":
3491
3517
  return Ze(C, k, !0);
3492
3518
  case "A":
@@ -3505,7 +3531,7 @@ var is = { exports: {} };
3505
3531
  return A;
3506
3532
  }
3507
3533
  return null;
3508
- }(oe) || A.replace(":", "");
3534
+ }(ue) || A.replace(":", "");
3509
3535
  });
3510
3536
  }, g.utcOffset = function() {
3511
3537
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
@@ -3570,7 +3596,7 @@ var is = { exports: {} };
3570
3596
  return x.$i || (x(g, G, b), x.$i = !0), b;
3571
3597
  }, b.locale = ee, b.isDayjs = ce, b.unix = function(x) {
3572
3598
  return b(1e3 * x);
3573
- }, b.en = D[z], b.Ls = D, b.p = {}, b;
3599
+ }, b.en = D[Z], b.Ls = D, b.p = {}, b;
3574
3600
  });
3575
3601
  })(is);
3576
3602
  var mo = is.exports;
@@ -3606,7 +3632,7 @@ function So(e) {
3606
3632
  return Array.isArray(e) ? [] : {};
3607
3633
  }
3608
3634
  function Ut(e, t) {
3609
- return t.clone !== !1 && t.isMergeableObject(e) ? yt(So(e), e, t) : e;
3635
+ return t.clone !== !1 && t.isMergeableObject(e) ? bt(So(e), e, t) : e;
3610
3636
  }
3611
3637
  function Ao(e, t, r) {
3612
3638
  return e.concat(t).map(function(n) {
@@ -3615,16 +3641,16 @@ function Ao(e, t, r) {
3615
3641
  }
3616
3642
  function Ho(e, t) {
3617
3643
  if (!t.customMerge)
3618
- return yt;
3644
+ return bt;
3619
3645
  var r = t.customMerge(e);
3620
- return typeof r == "function" ? r : yt;
3646
+ return typeof r == "function" ? r : bt;
3621
3647
  }
3622
3648
  function Mo(e) {
3623
3649
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
3624
3650
  return Object.propertyIsEnumerable.call(e, t);
3625
3651
  }) : [];
3626
3652
  }
3627
- function Vn(e) {
3653
+ function Xn(e) {
3628
3654
  return Object.keys(e).concat(Mo(e));
3629
3655
  }
3630
3656
  function ss(e, t) {
@@ -3639,37 +3665,37 @@ function Oo(e, t) {
3639
3665
  }
3640
3666
  function No(e, t, r) {
3641
3667
  var n = {};
3642
- return r.isMergeableObject(e) && Vn(e).forEach(function(i) {
3668
+ return r.isMergeableObject(e) && Xn(e).forEach(function(i) {
3643
3669
  n[i] = Ut(e[i], r);
3644
- }), Vn(t).forEach(function(i) {
3670
+ }), Xn(t).forEach(function(i) {
3645
3671
  Oo(e, i) || (ss(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ho(i, r)(e[i], t[i], r) : n[i] = Ut(t[i], r));
3646
3672
  }), n;
3647
3673
  }
3648
- function yt(e, t, r) {
3674
+ function bt(e, t, r) {
3649
3675
  r = r || {}, r.arrayMerge = r.arrayMerge || Ao, r.isMergeableObject = r.isMergeableObject || bo, r.cloneUnlessOtherwiseSpecified = Ut;
3650
3676
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
3651
3677
  return s ? n ? r.arrayMerge(e, t, r) : No(e, t, r) : Ut(t, r);
3652
3678
  }
3653
- yt.all = function(t, r) {
3679
+ bt.all = function(t, r) {
3654
3680
  if (!Array.isArray(t))
3655
3681
  throw new Error("first argument should be an array");
3656
3682
  return t.reduce(function(n, i) {
3657
- return yt(n, i, r);
3683
+ return bt(n, i, r);
3658
3684
  }, {});
3659
3685
  };
3660
- var Po = yt, $o = Po;
3686
+ var Po = bt, $o = Po;
3661
3687
  const Io = /* @__PURE__ */ ns($o);
3662
- var Jr = function(e, t) {
3663
- return Jr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
3688
+ var Qr = function(e, t) {
3689
+ return Qr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
3664
3690
  r.__proto__ = n;
3665
3691
  } || function(r, n) {
3666
3692
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
3667
- }, Jr(e, t);
3693
+ }, Qr(e, t);
3668
3694
  };
3669
3695
  function Er(e, t) {
3670
3696
  if (typeof t != "function" && t !== null)
3671
3697
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
3672
- Jr(e, t);
3698
+ Qr(e, t);
3673
3699
  function r() {
3674
3700
  this.constructor = e;
3675
3701
  }
@@ -3762,11 +3788,11 @@ var F;
3762
3788
  (function(e) {
3763
3789
  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";
3764
3790
  })(F || (F = {}));
3765
- var Et;
3791
+ var yt;
3766
3792
  (function(e) {
3767
3793
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
3768
- })(Et || (Et = {}));
3769
- function Xn(e) {
3794
+ })(yt || (yt = {}));
3795
+ function Wn(e) {
3770
3796
  return e.type === F.literal;
3771
3797
  }
3772
3798
  function ko(e) {
@@ -3794,10 +3820,10 @@ function ds(e) {
3794
3820
  return e.type === F.tag;
3795
3821
  }
3796
3822
  function ps(e) {
3797
- return !!(e && typeof e == "object" && e.type === Et.number);
3823
+ return !!(e && typeof e == "object" && e.type === yt.number);
3798
3824
  }
3799
- function Qr(e) {
3800
- return !!(e && typeof e == "object" && e.type === Et.dateTime);
3825
+ function Kr(e) {
3826
+ return !!(e && typeof e == "object" && e.type === yt.dateTime);
3801
3827
  }
3802
3828
  var vs = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Vo = /(?:[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;
3803
3829
  function Xo(e) {
@@ -3922,8 +3948,8 @@ function Yo(e) {
3922
3948
  function zo(e) {
3923
3949
  return e.replace(/^(.*?)-/, "");
3924
3950
  }
3925
- var Wn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, _s = /^(@+)?(\+|#+)?[rs]?$/g, Zo = /(\*)(0+)|(#+)(0+)|(0+)/g, ms = /^(0+)$/;
3926
- function Yn(e) {
3951
+ var Yn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, _s = /^(@+)?(\+|#+)?[rs]?$/g, Zo = /(\*)(0+)|(#+)(0+)|(0+)/g, ms = /^(0+)$/;
3952
+ function zn(e) {
3927
3953
  var t = {};
3928
3954
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(_s, function(r, n, i) {
3929
3955
  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)), "";
@@ -3983,7 +4009,7 @@ function qo(e) {
3983
4009
  }
3984
4010
  return t;
3985
4011
  }
3986
- function zn(e) {
4012
+ function Zn(e) {
3987
4013
  var t = {}, r = gs(e);
3988
4014
  return r || t;
3989
4015
  }
@@ -4023,12 +4049,12 @@ function Jo(e) {
4023
4049
  continue;
4024
4050
  case "scientific":
4025
4051
  t = X(X(X({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
4026
- return X(X({}, u), zn(l));
4052
+ return X(X({}, u), Zn(l));
4027
4053
  }, {}));
4028
4054
  continue;
4029
4055
  case "engineering":
4030
4056
  t = X(X(X({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
4031
- return X(X({}, u), zn(l));
4057
+ return X(X({}, u), Zn(l));
4032
4058
  }, {}));
4033
4059
  continue;
4034
4060
  case "notation-simple":
@@ -4090,18 +4116,18 @@ function Jo(e) {
4090
4116
  t.minimumIntegerDigits = i.stem.length;
4091
4117
  continue;
4092
4118
  }
4093
- if (Wn.test(i.stem)) {
4119
+ if (Yn.test(i.stem)) {
4094
4120
  if (i.options.length > 1)
4095
4121
  throw new RangeError("Fraction-precision stems only accept a single optional option");
4096
- i.stem.replace(Wn, function(u, l, f, h, c, d) {
4122
+ i.stem.replace(Yn, function(u, l, f, h, c, d) {
4097
4123
  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), "";
4098
4124
  });
4099
4125
  var s = i.options[0];
4100
- s === "w" ? t = X(X({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = X(X({}, t), Yn(s)));
4126
+ s === "w" ? t = X(X({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = X(X({}, t), zn(s)));
4101
4127
  continue;
4102
4128
  }
4103
4129
  if (_s.test(i.stem)) {
4104
- t = X(X({}, t), Yn(i.stem));
4130
+ t = X(X({}, t), zn(i.stem));
4105
4131
  continue;
4106
4132
  }
4107
4133
  var a = gs(i.stem);
@@ -5569,14 +5595,14 @@ function $(e, t) {
5569
5595
  }
5570
5596
  var ru = !!String.prototype.startsWith && "_a".startsWith("a", 1), nu = !!String.fromCodePoint, iu = !!Object.fromEntries, su = !!String.prototype.codePointAt, au = !!String.prototype.trimStart, ou = !!String.prototype.trimEnd, uu = !!Number.isSafeInteger, lu = uu ? Number.isSafeInteger : function(e) {
5571
5597
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
5572
- }, Kr = !0;
5598
+ }, en = !0;
5573
5599
  try {
5574
5600
  var fu = ys("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5575
- Kr = ((Cr = fu.exec("a")) === null || Cr === void 0 ? void 0 : Cr[0]) === "a";
5601
+ en = ((Cr = fu.exec("a")) === null || Cr === void 0 ? void 0 : Cr[0]) === "a";
5576
5602
  } catch {
5577
- Kr = !1;
5603
+ en = !1;
5578
5604
  }
5579
- var Zn = ru ? (
5605
+ var qn = ru ? (
5580
5606
  // Native
5581
5607
  function(t, r, n) {
5582
5608
  return t.startsWith(r, n);
@@ -5586,7 +5612,7 @@ var Zn = ru ? (
5586
5612
  function(t, r, n) {
5587
5613
  return t.slice(n, n + r.length) === r;
5588
5614
  }
5589
- ), en = nu ? String.fromCodePoint : (
5615
+ ), tn = nu ? String.fromCodePoint : (
5590
5616
  // IE11
5591
5617
  function() {
5592
5618
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -5598,7 +5624,7 @@ var Zn = ru ? (
5598
5624
  }
5599
5625
  return n;
5600
5626
  }
5601
- ), qn = (
5627
+ ), Jn = (
5602
5628
  // native
5603
5629
  iu ? Object.fromEntries : (
5604
5630
  // Ponyfill
@@ -5648,24 +5674,24 @@ var Zn = ru ? (
5648
5674
  function ys(e, t) {
5649
5675
  return new RegExp(e, t);
5650
5676
  }
5651
- var tn;
5652
- if (Kr) {
5653
- var Jn = ys("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5654
- tn = function(t, r) {
5677
+ var rn;
5678
+ if (en) {
5679
+ var Qn = ys("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
5680
+ rn = function(t, r) {
5655
5681
  var n;
5656
- Jn.lastIndex = r;
5657
- var i = Jn.exec(t);
5682
+ Qn.lastIndex = r;
5683
+ var i = Qn.exec(t);
5658
5684
  return (n = i[1]) !== null && n !== void 0 ? n : "";
5659
5685
  };
5660
5686
  } else
5661
- tn = function(t, r) {
5687
+ rn = function(t, r) {
5662
5688
  for (var n = []; ; ) {
5663
5689
  var i = bs(t, r);
5664
5690
  if (i === void 0 || Es(i) || _u(i))
5665
5691
  break;
5666
5692
  n.push(i), r += i >= 65536 ? 2 : 1;
5667
5693
  }
5668
- return en.apply(void 0, n);
5694
+ return tn.apply(void 0, n);
5669
5695
  };
5670
5696
  var du = (
5671
5697
  /** @class */
@@ -5698,7 +5724,7 @@ var du = (
5698
5724
  if (n)
5699
5725
  break;
5700
5726
  return this.error(N.UNMATCHED_CLOSING_TAG, $(this.clonePosition(), this.clonePosition()));
5701
- } else if (s === 60 && !this.ignoreTag && rn(this.peek() || 0)) {
5727
+ } else if (s === 60 && !this.ignoreTag && nn(this.peek() || 0)) {
5702
5728
  var a = this.parseTag(t, r);
5703
5729
  if (a.err)
5704
5730
  return a;
@@ -5731,7 +5757,7 @@ var du = (
5731
5757
  return s;
5732
5758
  var a = s.val, o = this.clonePosition();
5733
5759
  if (this.bumpIf("</")) {
5734
- if (this.isEOF() || !rn(this.char()))
5760
+ if (this.isEOF() || !nn(this.char()))
5735
5761
  return this.error(N.INVALID_TAG, $(o, this.clonePosition()));
5736
5762
  var u = this.clonePosition(), l = this.parseTagName();
5737
5763
  return i !== l ? this.error(N.UNMATCHED_CLOSING_TAG, $(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -5812,12 +5838,12 @@ var du = (
5812
5838
  r.push(n);
5813
5839
  this.bump();
5814
5840
  }
5815
- return en.apply(void 0, r);
5841
+ return tn.apply(void 0, r);
5816
5842
  }, e.prototype.tryParseUnquoted = function(t, r) {
5817
5843
  if (this.isEOF())
5818
5844
  return null;
5819
5845
  var n = this.char();
5820
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), en(n));
5846
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), tn(n));
5821
5847
  }, e.prototype.parseArgument = function(t, r) {
5822
5848
  var n = this.clonePosition();
5823
5849
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -5846,7 +5872,7 @@ var du = (
5846
5872
  return this.error(N.MALFORMED_ARGUMENT, $(n, this.clonePosition()));
5847
5873
  }
5848
5874
  }, e.prototype.parseIdentifierIfPossible = function() {
5849
- var t = this.clonePosition(), r = this.offset(), n = tn(this.message, r), i = r + n.length;
5875
+ var t = this.clonePosition(), r = this.offset(), n = rn(this.message, r), i = r + n.length;
5850
5876
  this.bumpTo(i);
5851
5877
  var s = this.clonePosition(), a = $(t, s);
5852
5878
  return { value: n, location: a };
@@ -5875,7 +5901,7 @@ var du = (
5875
5901
  if (p.err)
5876
5902
  return p;
5877
5903
  var E = $(i, this.clonePosition());
5878
- if (l && Zn(l?.style, "::", 0)) {
5904
+ if (l && qn(l?.style, "::", 0)) {
5879
5905
  var m = hu(l.style.slice(2));
5880
5906
  if (o === "number") {
5881
5907
  var h = this.parseNumberSkeletonFromString(m, l.styleLocation);
@@ -5889,7 +5915,7 @@ var du = (
5889
5915
  var H = m;
5890
5916
  this.locale && (H = Qo(m, this.locale));
5891
5917
  var c = {
5892
- type: Et.dateTime,
5918
+ type: yt.dateTime,
5893
5919
  pattern: H,
5894
5920
  location: l.styleLocation,
5895
5921
  parsedOptions: this.shouldParseSkeletons ? Xo(H) : {}
@@ -5917,7 +5943,7 @@ var du = (
5917
5943
  if (this.bumpSpace(), !this.bumpIf(","))
5918
5944
  return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS, $(M, fr({}, M)));
5919
5945
  this.bumpSpace();
5920
- var V = this.parseIdentifierIfPossible(), z = 0;
5946
+ var V = this.parseIdentifierIfPossible(), Z = 0;
5921
5947
  if (o !== "select" && V.value === "offset") {
5922
5948
  if (!this.bumpIf(":"))
5923
5949
  return this.error(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, $(this.clonePosition(), this.clonePosition()));
@@ -5925,7 +5951,7 @@ var du = (
5925
5951
  var h = this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
5926
5952
  if (h.err)
5927
5953
  return h;
5928
- this.bumpSpace(), V = this.parseIdentifierIfPossible(), z = h.val;
5954
+ this.bumpSpace(), V = this.parseIdentifierIfPossible(), Z = h.val;
5929
5955
  }
5930
5956
  var D = this.tryParsePluralOrSelectOptions(t, o, r, V);
5931
5957
  if (D.err)
@@ -5938,7 +5964,7 @@ var du = (
5938
5964
  val: {
5939
5965
  type: F.select,
5940
5966
  value: n,
5941
- options: qn(D.val),
5967
+ options: Jn(D.val),
5942
5968
  location: Y
5943
5969
  },
5944
5970
  err: null
@@ -5946,8 +5972,8 @@ var du = (
5946
5972
  val: {
5947
5973
  type: F.plural,
5948
5974
  value: n,
5949
- options: qn(D.val),
5950
- offset: z,
5975
+ options: Jn(D.val),
5976
+ offset: Z,
5951
5977
  pluralType: o === "plural" ? "cardinal" : "ordinal",
5952
5978
  location: Y
5953
5979
  },
@@ -6003,7 +6029,7 @@ var du = (
6003
6029
  }
6004
6030
  return {
6005
6031
  val: {
6006
- type: Et.number,
6032
+ type: yt.number,
6007
6033
  tokens: n,
6008
6034
  location: r,
6009
6035
  parsedOptions: this.shouldParseSkeletons ? Jo(n) : {}
@@ -6088,7 +6114,7 @@ var du = (
6088
6114
  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);
6089
6115
  }
6090
6116
  }, e.prototype.bumpIf = function(t) {
6091
- if (Zn(this.message, t, this.offset())) {
6117
+ if (qn(this.message, t, this.offset())) {
6092
6118
  for (var r = 0; r < t.length; r++)
6093
6119
  this.bump();
6094
6120
  return !0;
@@ -6120,11 +6146,11 @@ var du = (
6120
6146
  }, e;
6121
6147
  }()
6122
6148
  );
6123
- function rn(e) {
6149
+ function nn(e) {
6124
6150
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
6125
6151
  }
6126
6152
  function pu(e) {
6127
- return rn(e) || e === 47;
6153
+ return nn(e) || e === 47;
6128
6154
  }
6129
6155
  function vu(e) {
6130
6156
  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;
@@ -6135,12 +6161,12 @@ function Es(e) {
6135
6161
  function _u(e) {
6136
6162
  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;
6137
6163
  }
6138
- function nn(e) {
6164
+ function sn(e) {
6139
6165
  e.forEach(function(t) {
6140
6166
  if (delete t.location, hs(t) || cs(t))
6141
6167
  for (var r in t.options)
6142
- delete t.options[r].location, nn(t.options[r].value);
6143
- else us(t) && ps(t.style) || (ls(t) || fs(t)) && Qr(t.style) ? delete t.style.location : ds(t) && nn(t.children);
6168
+ delete t.options[r].location, sn(t.options[r].value);
6169
+ else us(t) && ps(t.style) || (ls(t) || fs(t)) && Kr(t.style) ? delete t.style.location : ds(t) && sn(t.children);
6144
6170
  });
6145
6171
  }
6146
6172
  function mu(e, t) {
@@ -6150,12 +6176,12 @@ function mu(e, t) {
6150
6176
  var n = SyntaxError(N[r.err.kind]);
6151
6177
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
6152
6178
  }
6153
- return t?.captureLocation || nn(r.val), r.val;
6179
+ return t?.captureLocation || sn(r.val), r.val;
6154
6180
  }
6155
- var xt;
6181
+ var Et;
6156
6182
  (function(e) {
6157
6183
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
6158
- })(xt || (xt = {}));
6184
+ })(Et || (Et = {}));
6159
6185
  var xr = (
6160
6186
  /** @class */
6161
6187
  function(e) {
@@ -6168,12 +6194,12 @@ var xr = (
6168
6194
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
6169
6195
  }, t;
6170
6196
  }(Error)
6171
- ), Qn = (
6197
+ ), Kn = (
6172
6198
  /** @class */
6173
6199
  function(e) {
6174
6200
  Er(t, e);
6175
6201
  function t(r, n, i, s) {
6176
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), xt.INVALID_VALUE, s) || this;
6202
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Et.INVALID_VALUE, s) || this;
6177
6203
  }
6178
6204
  return t;
6179
6205
  }(xr)
@@ -6182,7 +6208,7 @@ var xr = (
6182
6208
  function(e) {
6183
6209
  Er(t, e);
6184
6210
  function t(r, n, i) {
6185
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), xt.INVALID_VALUE, i) || this;
6211
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Et.INVALID_VALUE, i) || this;
6186
6212
  }
6187
6213
  return t;
6188
6214
  }(xr)
@@ -6191,7 +6217,7 @@ var xr = (
6191
6217
  function(e) {
6192
6218
  Er(t, e);
6193
6219
  function t(r, n) {
6194
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), xt.MISSING_VALUE, n) || this;
6220
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Et.MISSING_VALUE, n) || this;
6195
6221
  }
6196
6222
  return t;
6197
6223
  }(xr)
@@ -6209,7 +6235,7 @@ function Eu(e) {
6209
6235
  return typeof e == "function";
6210
6236
  }
6211
6237
  function Qt(e, t, r, n, i, s, a) {
6212
- if (e.length === 1 && Xn(e[0]))
6238
+ if (e.length === 1 && Wn(e[0]))
6213
6239
  return [
6214
6240
  {
6215
6241
  type: re.literal,
@@ -6218,7 +6244,7 @@ function Qt(e, t, r, n, i, s, a) {
6218
6244
  ];
6219
6245
  for (var o = [], u = 0, l = e; u < l.length; u++) {
6220
6246
  var f = l[u];
6221
- if (Xn(f)) {
6247
+ if (Wn(f)) {
6222
6248
  o.push({
6223
6249
  type: re.literal,
6224
6250
  value: f.value
@@ -6244,7 +6270,7 @@ function Qt(e, t, r, n, i, s, a) {
6244
6270
  continue;
6245
6271
  }
6246
6272
  if (ls(f)) {
6247
- var d = typeof f.style == "string" ? n.date[f.style] : Qr(f.style) ? f.style.parsedOptions : void 0;
6273
+ var d = typeof f.style == "string" ? n.date[f.style] : Kr(f.style) ? f.style.parsedOptions : void 0;
6248
6274
  o.push({
6249
6275
  type: re.literal,
6250
6276
  value: r.getDateTimeFormat(t, d).format(c)
@@ -6252,7 +6278,7 @@ function Qt(e, t, r, n, i, s, a) {
6252
6278
  continue;
6253
6279
  }
6254
6280
  if (fs(f)) {
6255
- var d = typeof f.style == "string" ? n.time[f.style] : Qr(f.style) ? f.style.parsedOptions : n.time.medium;
6281
+ var d = typeof f.style == "string" ? n.time[f.style] : Kr(f.style) ? f.style.parsedOptions : n.time.medium;
6256
6282
  o.push({
6257
6283
  type: re.literal,
6258
6284
  value: r.getDateTimeFormat(t, d).format(c)
@@ -6271,20 +6297,20 @@ function Qt(e, t, r, n, i, s, a) {
6271
6297
  var p = f.children, E = f.value, m = i[E];
6272
6298
  if (!Eu(m))
6273
6299
  throw new gu(E, "function", a);
6274
- var H = Qt(p, t, r, n, i, s), R = m(H.map(function(z) {
6275
- return z.value;
6300
+ var H = Qt(p, t, r, n, i, s), R = m(H.map(function(Z) {
6301
+ return Z.value;
6276
6302
  }));
6277
- Array.isArray(R) || (R = [R]), o.push.apply(o, R.map(function(z) {
6303
+ Array.isArray(R) || (R = [R]), o.push.apply(o, R.map(function(Z) {
6278
6304
  return {
6279
- type: typeof z == "string" ? re.literal : re.object,
6280
- value: z
6305
+ type: typeof Z == "string" ? re.literal : re.object,
6306
+ value: Z
6281
6307
  };
6282
6308
  }));
6283
6309
  }
6284
6310
  if (hs(f)) {
6285
6311
  var M = f.options[c] || f.options.other;
6286
6312
  if (!M)
6287
- throw new Qn(f.value, c, Object.keys(f.options), a);
6313
+ throw new Kn(f.value, c, Object.keys(f.options), a);
6288
6314
  o.push.apply(o, Qt(M.value, t, r, n, i));
6289
6315
  continue;
6290
6316
  }
@@ -6294,12 +6320,12 @@ function Qt(e, t, r, n, i, s, a) {
6294
6320
  if (!Intl.PluralRules)
6295
6321
  throw new xr(`Intl.PluralRules is not available in this environment.
6296
6322
  Try polyfilling it using "@formatjs/intl-pluralrules"
6297
- `, xt.MISSING_INTL_API, a);
6323
+ `, Et.MISSING_INTL_API, a);
6298
6324
  var V = r.getPluralRules(t, { type: f.pluralType }).select(c - (f.offset || 0));
6299
6325
  M = f.options[V] || f.options.other;
6300
6326
  }
6301
6327
  if (!M)
6302
- throw new Qn(f.value, c, Object.keys(f.options), a);
6328
+ throw new Kn(f.value, c, Object.keys(f.options), a);
6303
6329
  o.push.apply(o, Qt(M.value, t, r, n, i, c - (f.offset || 0)));
6304
6330
  continue;
6305
6331
  }
@@ -6507,13 +6533,13 @@ const je = {}, Hu = (e, t, r) => r && (t in je || (je[t] = {}), e in je[t] || (j
6507
6533
  return Hu(e, t, s);
6508
6534
  }
6509
6535
  };
6510
- let Hn;
6511
- const St = mr({});
6536
+ let Mn;
6537
+ const Tt = yr({});
6512
6538
  function Mu(e) {
6513
- return Hn[e] || null;
6539
+ return Mn[e] || null;
6514
6540
  }
6515
6541
  function ws(e) {
6516
- return e in Hn;
6542
+ return e in Mn;
6517
6543
  }
6518
6544
  function Ou(e, t) {
6519
6545
  if (!ws(e))
@@ -6532,13 +6558,13 @@ function Nu(e) {
6532
6558
  }
6533
6559
  }
6534
6560
  function Ts(e, ...t) {
6535
- delete je[e], St.update((r) => (r[e] = Io.all([r[e] || {}, ...t]), r));
6561
+ delete je[e], Tt.update((r) => (r[e] = Io.all([r[e] || {}, ...t]), r));
6536
6562
  }
6537
- Tt(
6538
- [St],
6563
+ wt(
6564
+ [Tt],
6539
6565
  ([e]) => Object.keys(e)
6540
6566
  );
6541
- St.subscribe((e) => Hn = e);
6567
+ Tt.subscribe((e) => Mn = e);
6542
6568
  const Kt = {};
6543
6569
  function Pu(e, t) {
6544
6570
  Kt[e].delete(t), Kt[e].size === 0 && delete Kt[e];
@@ -6552,7 +6578,7 @@ function $u(e) {
6552
6578
  return [t, r ? [...r] : []];
6553
6579
  }).filter(([, t]) => t.length > 0);
6554
6580
  }
6555
- function sn(e) {
6581
+ function an(e) {
6556
6582
  return e == null ? !1 : wr(e).some(
6557
6583
  (t) => {
6558
6584
  var r;
@@ -6565,20 +6591,20 @@ function Iu(e, t) {
6565
6591
  t.map((n) => (Pu(e, n), n().then((i) => i.default || i)))
6566
6592
  ).then((n) => Ts(e, ...n));
6567
6593
  }
6568
- const Nt = {};
6594
+ const Ot = {};
6569
6595
  function As(e) {
6570
- if (!sn(e))
6571
- return e in Nt ? Nt[e] : Promise.resolve();
6596
+ if (!an(e))
6597
+ return e in Ot ? Ot[e] : Promise.resolve();
6572
6598
  const t = $u(e);
6573
- return Nt[e] = Promise.all(
6599
+ return Ot[e] = Promise.all(
6574
6600
  t.map(
6575
6601
  ([r, n]) => Iu(r, n)
6576
6602
  )
6577
6603
  ).then(() => {
6578
- if (sn(e))
6604
+ if (an(e))
6579
6605
  return As(e);
6580
- delete Nt[e];
6581
- }), Nt[e];
6606
+ delete Ot[e];
6607
+ }), Ot[e];
6582
6608
  }
6583
6609
  const Bu = {
6584
6610
  number: {
@@ -6617,36 +6643,36 @@ const Bu = {
6617
6643
  handleMissingMessage: void 0,
6618
6644
  ignoreTag: !0
6619
6645
  }, Cu = Lu;
6620
- function wt() {
6646
+ function xt() {
6621
6647
  return Cu;
6622
6648
  }
6623
- const Dr = mr(!1);
6624
- var Ru = Object.defineProperty, Du = Object.defineProperties, Uu = Object.getOwnPropertyDescriptors, Kn = Object.getOwnPropertySymbols, Fu = Object.prototype.hasOwnProperty, Gu = Object.prototype.propertyIsEnumerable, ei = (e, t, r) => t in e ? Ru(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ku = (e, t) => {
6649
+ const Dr = yr(!1);
6650
+ var Ru = Object.defineProperty, Du = Object.defineProperties, Uu = Object.getOwnPropertyDescriptors, ei = Object.getOwnPropertySymbols, Fu = Object.prototype.hasOwnProperty, Gu = Object.prototype.propertyIsEnumerable, ti = (e, t, r) => t in e ? Ru(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ku = (e, t) => {
6625
6651
  for (var r in t || (t = {}))
6626
- Fu.call(t, r) && ei(e, r, t[r]);
6627
- if (Kn)
6628
- for (var r of Kn(t))
6629
- Gu.call(t, r) && ei(e, r, t[r]);
6652
+ Fu.call(t, r) && ti(e, r, t[r]);
6653
+ if (ei)
6654
+ for (var r of ei(t))
6655
+ Gu.call(t, r) && ti(e, r, t[r]);
6630
6656
  return e;
6631
6657
  }, ju = (e, t) => Du(e, Uu(t));
6632
- let an;
6633
- const hr = mr(null);
6634
- function ti(e) {
6658
+ let on;
6659
+ const hr = yr(null);
6660
+ function ri(e) {
6635
6661
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
6636
6662
  }
6637
- function wr(e, t = wt().fallbackLocale) {
6638
- const r = ti(e);
6639
- return t ? [.../* @__PURE__ */ new Set([...r, ...ti(t)])] : r;
6663
+ function wr(e, t = xt().fallbackLocale) {
6664
+ const r = ri(e);
6665
+ return t ? [.../* @__PURE__ */ new Set([...r, ...ri(t)])] : r;
6640
6666
  }
6641
6667
  function it() {
6642
- return an ?? void 0;
6668
+ return on ?? void 0;
6643
6669
  }
6644
6670
  hr.subscribe((e) => {
6645
- an = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
6671
+ on = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
6646
6672
  });
6647
6673
  const Vu = (e) => {
6648
- if (e && Nu(e) && sn(e)) {
6649
- const { loadingDelay: t } = wt();
6674
+ if (e && Nu(e) && an(e)) {
6675
+ const { loadingDelay: t } = xt();
6650
6676
  let r;
6651
6677
  return typeof window < "u" && it() != null && t ? r = window.setTimeout(
6652
6678
  () => Dr.set(!0),
@@ -6667,14 +6693,14 @@ const Vu = (e) => {
6667
6693
  return i in t ? t[i] : t[i] = e(n);
6668
6694
  };
6669
6695
  };
6670
- var Xu = Object.defineProperty, cr = Object.getOwnPropertySymbols, Hs = Object.prototype.hasOwnProperty, Ms = Object.prototype.propertyIsEnumerable, ri = (e, t, r) => t in e ? Xu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mn = (e, t) => {
6696
+ var Xu = Object.defineProperty, cr = Object.getOwnPropertySymbols, Hs = Object.prototype.hasOwnProperty, Ms = Object.prototype.propertyIsEnumerable, ni = (e, t, r) => t in e ? Xu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, On = (e, t) => {
6671
6697
  for (var r in t || (t = {}))
6672
- Hs.call(t, r) && ri(e, r, t[r]);
6698
+ Hs.call(t, r) && ni(e, r, t[r]);
6673
6699
  if (cr)
6674
6700
  for (var r of cr(t))
6675
- Ms.call(t, r) && ri(e, r, t[r]);
6701
+ Ms.call(t, r) && ni(e, r, t[r]);
6676
6702
  return e;
6677
- }, At = (e, t) => {
6703
+ }, St = (e, t) => {
6678
6704
  var r = {};
6679
6705
  for (var n in e)
6680
6706
  Hs.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -6684,27 +6710,27 @@ var Xu = Object.defineProperty, cr = Object.getOwnPropertySymbols, Hs = Object.p
6684
6710
  return r;
6685
6711
  };
6686
6712
  const Ft = (e, t) => {
6687
- const { formats: r } = wt();
6713
+ const { formats: r } = xt();
6688
6714
  if (e in r && t in r[e])
6689
6715
  return r[e][t];
6690
6716
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
6691
6717
  }, Wu = Tr(
6692
6718
  (e) => {
6693
- var t = e, { locale: r, format: n } = t, i = At(t, ["locale", "format"]);
6719
+ var t = e, { locale: r, format: n } = t, i = St(t, ["locale", "format"]);
6694
6720
  if (r == null)
6695
6721
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
6696
6722
  return n && (i = Ft("number", n)), new Intl.NumberFormat(r, i);
6697
6723
  }
6698
6724
  ), Yu = Tr(
6699
6725
  (e) => {
6700
- var t = e, { locale: r, format: n } = t, i = At(t, ["locale", "format"]);
6726
+ var t = e, { locale: r, format: n } = t, i = St(t, ["locale", "format"]);
6701
6727
  if (r == null)
6702
6728
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
6703
6729
  return n ? i = Ft("date", n) : Object.keys(i).length === 0 && (i = Ft("date", "short")), new Intl.DateTimeFormat(r, i);
6704
6730
  }
6705
6731
  ), zu = Tr(
6706
6732
  (e) => {
6707
- var t = e, { locale: r, format: n } = t, i = At(t, ["locale", "format"]);
6733
+ var t = e, { locale: r, format: n } = t, i = St(t, ["locale", "format"]);
6708
6734
  if (r == null)
6709
6735
  throw new Error(
6710
6736
  '[svelte-i18n] A "locale" must be set to format time values'
@@ -6714,28 +6740,28 @@ const Ft = (e, t) => {
6714
6740
  ), Zu = (e = {}) => {
6715
6741
  var t = e, {
6716
6742
  locale: r = it()
6717
- } = t, n = At(t, [
6743
+ } = t, n = St(t, [
6718
6744
  "locale"
6719
6745
  ]);
6720
- return Wu(Mn({ locale: r }, n));
6746
+ return Wu(On({ locale: r }, n));
6721
6747
  }, qu = (e = {}) => {
6722
6748
  var t = e, {
6723
6749
  locale: r = it()
6724
- } = t, n = At(t, [
6750
+ } = t, n = St(t, [
6725
6751
  "locale"
6726
6752
  ]);
6727
- return Yu(Mn({ locale: r }, n));
6753
+ return Yu(On({ locale: r }, n));
6728
6754
  }, Ju = (e = {}) => {
6729
6755
  var t = e, {
6730
6756
  locale: r = it()
6731
- } = t, n = At(t, [
6757
+ } = t, n = St(t, [
6732
6758
  "locale"
6733
6759
  ]);
6734
- return zu(Mn({ locale: r }, n));
6760
+ return zu(On({ locale: r }, n));
6735
6761
  }, Qu = Tr(
6736
6762
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
6737
- (e, t = it()) => new Su(e, t, wt().formats, {
6738
- ignoreTag: wt().ignoreTag
6763
+ (e, t = it()) => new Su(e, t, xt().formats, {
6764
+ ignoreTag: xt().ignoreTag
6739
6765
  })
6740
6766
  ), Ku = (e, t = {}) => {
6741
6767
  var r, n, i, s;
@@ -6752,7 +6778,7 @@ const Ft = (e, t) => {
6752
6778
  );
6753
6779
  let f = xs(e, u);
6754
6780
  if (!f)
6755
- f = (s = (i = (n = (r = wt()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
6781
+ f = (s = (i = (n = (r = xt()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
6756
6782
  else if (typeof f != "string")
6757
6783
  return console.warn(
6758
6784
  `[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.`
@@ -6769,14 +6795,14 @@ const Ft = (e, t) => {
6769
6795
  );
6770
6796
  }
6771
6797
  return h;
6772
- }, el = (e, t) => Ju(t).format(e), tl = (e, t) => qu(t).format(e), rl = (e, t) => Zu(t).format(e), nl = (e, t = it()) => xs(e, t), il = Tt([We, St], () => Ku);
6773
- Tt([We], () => el);
6774
- Tt([We], () => tl);
6775
- Tt([We], () => rl);
6776
- Tt([We, St], () => nl);
6798
+ }, el = (e, t) => Ju(t).format(e), tl = (e, t) => qu(t).format(e), rl = (e, t) => Zu(t).format(e), nl = (e, t = it()) => xs(e, t), il = wt([We, Tt], () => Ku);
6799
+ wt([We], () => el);
6800
+ wt([We], () => tl);
6801
+ wt([We], () => rl);
6802
+ wt([We, Tt], () => nl);
6777
6803
  function sl({ withLocale: e, translations: t }) {
6778
6804
  We.subscribe((r) => {
6779
- r == null && (St.set(t), We.set(e));
6805
+ r == null && (Tt.set(t), We.set(e));
6780
6806
  });
6781
6807
  }
6782
6808
  function al(e, t) {
@@ -6790,26 +6816,26 @@ const Il = (e) => {
6790
6816
  const o = async () => {
6791
6817
  const { apiEndpoint: u, userSession: l, locale: f, loadLevels: h, onLevelLoaded: c } = e();
6792
6818
  if (!(!u || !l)) {
6793
- Z(s, !0), Z(a, void 0);
6819
+ q(s, !0), q(a, void 0);
6794
6820
  try {
6795
6821
  const d = [
6796
6822
  ho({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
6797
6823
  const E = p.level;
6798
- E.name = E.presentation?.displayName || E.name, E.spendablePoints = p.spendableWallet?.total.points || 0, Z(t, E, !0), Z(n, p.loyaltyWallet?.total, !0), Z(i, p.spendableWallet?.total, !0), c?.({ elevateLevel: E }), c?.({
6824
+ E.name = E.presentation?.displayName || E.name, E.spendablePoints = p.spendableWallet?.total.points || 0, q(t, E, !0), q(n, p.loyaltyWallet?.total, !0), q(i, p.spendableWallet?.total, !0), c?.({ elevateLevel: E }), c?.({
6799
6825
  elevateLevelWalletTotal: p.spendableWallet?.total,
6800
6826
  loyaltyWalletTotal: p.loyaltyWallet?.total
6801
6827
  });
6802
6828
  })
6803
6829
  ];
6804
6830
  h && d.push(co({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
6805
- Z(r, p, !0);
6806
- })), await Promise.all(d), await Ba(), w(r) && w(t) && c?.({
6831
+ q(r, p, !0);
6832
+ })), await Promise.all(d), await Na(), w(r) && w(t) && c?.({
6807
6833
  calculatedLevelFlag: vo(w(r), w(t).loyaltyPoints ?? 0)
6808
6834
  });
6809
6835
  } catch (d) {
6810
- Z(a, d, !0), console.error("Failed to load elevate info:", d);
6836
+ q(a, d, !0), console.error("Failed to load elevate info:", d);
6811
6837
  } finally {
6812
- Z(s, !1);
6838
+ q(s, !1);
6813
6839
  }
6814
6840
  }
6815
6841
  };
@@ -6872,7 +6898,7 @@ const Il = (e) => {
6872
6898
  next: "Következő"
6873
6899
  }
6874
6900
  }, Rt = 10, ll = 7, fl = 4;
6875
- var hl = /* @__PURE__ */ yr('<span class="loyalty-pagination__ellipsis svelte-1op0ean" aria-hidden="true">...</span>'), cl = /* @__PURE__ */ yr('<button type="button"> </button>'), dl = /* @__PURE__ */ yr('<div class="loyalty-pagination__pages svelte-1op0ean"><button class="loyalty-pagination__btn loyalty-pagination__btn--prev svelte-1op0ean" type="button"> </button> <!> <button class="loyalty-pagination__btn loyalty-pagination__btn--next svelte-1op0ean" type="button"> </button></div>'), pl = /* @__PURE__ */ yr('<div class="loyalty-pagination svelte-1op0ean"><!></div>');
6901
+ var hl = /* @__PURE__ */ br('<span class="loyalty-pagination__ellipsis svelte-1op0ean" aria-hidden="true">...</span>'), cl = /* @__PURE__ */ br('<button type="button"> </button>'), dl = /* @__PURE__ */ br('<div class="loyalty-pagination__pages svelte-1op0ean"><button class="loyalty-pagination__btn loyalty-pagination__btn--prev svelte-1op0ean" type="button"> </button> <!> <button class="loyalty-pagination__btn loyalty-pagination__btn--next svelte-1op0ean" type="button"> </button></div>'), pl = /* @__PURE__ */ br('<div class="loyalty-pagination svelte-1op0ean"><!></div>');
6876
6902
  const vl = {
6877
6903
  hash: "svelte-1op0ean",
6878
6904
  code: `.loyalty-pagination.svelte-1op0ean {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;box-sizing:border-box;width:100%;}
@@ -6887,24 +6913,24 @@ const vl = {
6887
6913
  .loyalty-pagination__btn--next.svelte-1op0ean:not(:disabled) {color:var(--text-default, #dfe3e8);}`
6888
6914
  };
6889
6915
  function Os(e, t) {
6890
- fn(t, !0), eo(e, vl);
6891
- const r = () => da(il, "$_", n), [n, i] = pa(), s = Ae(t, "offset", 7, 0), a = Ae(t, "limit", 7, Rt), o = Ae(t, "total", 7, 0), u = Ae(t, "onPageChange", 7, (b) => {
6916
+ hn(t, !0), qa(e, vl);
6917
+ const r = () => ao(il, "$_", n), [n, i] = oo(), s = Ae(t, "offset", 7, 0), a = Ae(t, "limit", 7, Rt), o = Ae(t, "total", 7, 0), u = Ae(t, "onPageChange", 7, (b) => {
6892
6918
  }), l = Ae(t, "locale", 7, "en");
6893
6919
  sl({ withLocale: l(), translations: {} }), Object.entries(ul).forEach(([b, T]) => {
6894
6920
  al(b, T);
6895
6921
  }), ur(() => {
6896
6922
  ol(l() ?? "en");
6897
6923
  });
6898
- const f = /* @__PURE__ */ at(() => Number(s()) || 0), h = /* @__PURE__ */ at(() => Number(a()) || Rt), c = /* @__PURE__ */ at(() => Number(o()) || 0), d = /* @__PURE__ */ at(() => Math.max(1, Math.ceil(w(c) / Math.max(1, w(h))))), p = /* @__PURE__ */ at(() => w(h) > 0 ? Math.floor(w(f) / w(h)) : 0);
6924
+ const f = /* @__PURE__ */ st(() => Number(s()) || 0), h = /* @__PURE__ */ st(() => Number(a()) || Rt), c = /* @__PURE__ */ st(() => Number(o()) || 0), d = /* @__PURE__ */ st(() => Math.max(1, Math.ceil(w(c) / Math.max(1, w(h))))), p = /* @__PURE__ */ st(() => w(h) > 0 ? Math.floor(w(f) / w(h)) : 0);
6899
6925
  let E = /* @__PURE__ */ ne(!1);
6900
6926
  ur(() => {
6901
6927
  const b = window.matchMedia("(max-width: 767px)"), T = (G) => {
6902
- Z(E, G.matches, !0);
6928
+ q(E, G.matches, !0);
6903
6929
  };
6904
- return Z(E, b.matches, !0), b.addEventListener("change", T), () => b.removeEventListener("change", T);
6930
+ return q(E, b.matches, !0), b.addEventListener("change", T), () => b.removeEventListener("change", T);
6905
6931
  });
6906
- const m = (b, T, G) => b <= (G ? fl : ll) ? Array.from({ length: b }, (v, y) => y) : T <= 1 || T >= b - 2 ? [0, 1, "ellipsis", b - 2, b - 1] : [0, "ellipsis", T, "ellipsis", b - 1], H = /* @__PURE__ */ at(() => m(w(d), w(p), w(E))), R = (b) => u()(b * w(h)), M = () => u()(Math.max(0, w(p) - 1) * w(h)), V = () => u()(Math.min(w(d) - 1, w(p) + 1) * w(h));
6907
- var z = {
6932
+ const m = (b, T, G) => b <= (G ? fl : ll) ? Array.from({ length: b }, (v, y) => y) : T <= 1 || T >= b - 2 ? [0, 1, "ellipsis", b - 2, b - 1] : [0, "ellipsis", T, "ellipsis", b - 1], H = /* @__PURE__ */ st(() => m(w(d), w(p), w(E))), R = (b) => u()(b * w(h)), M = () => u()(Math.max(0, w(p) - 1) * w(h)), V = () => u()(Math.min(w(d) - 1, w(p) + 1) * w(h));
6933
+ var Z = {
6908
6934
  get offset() {
6909
6935
  return s();
6910
6936
  },
@@ -6939,9 +6965,9 @@ function Os(e, t) {
6939
6965
  }, D = pl(), Y = Yr(D);
6940
6966
  {
6941
6967
  var ce = (b) => {
6942
- var T = dl(), G = Yr(T), Ye = Hr(G, !0), x = Bn(G, 2);
6943
- Ja(x, 17, () => w(H), Za, (y, _) => {
6944
- var S = Ua(), A = Ta(S);
6968
+ var T = dl(), G = Yr(T), Ye = Hr(G, !0), x = Ln(G, 2);
6969
+ Ya(x, 17, () => w(H), Xa, (y, _) => {
6970
+ var S = La(), A = ya(S);
6945
6971
  {
6946
6972
  var C = (U) => {
6947
6973
  var j = hl();
@@ -6950,35 +6976,35 @@ function Os(e, t) {
6950
6976
  var j = cl();
6951
6977
  let te;
6952
6978
  var Ue = Hr(j, !0);
6953
- Ln(() => {
6954
- te = ro(j, 1, "loyalty-pagination__btn svelte-1op0ean", null, te, {
6979
+ Cn(() => {
6980
+ te = Qa(j, 1, "loyalty-pagination__btn svelte-1op0ean", null, te, {
6955
6981
  "loyalty-pagination__btn--active": w(_) === w(p)
6956
6982
  }), Pr(Ue, w(_) + 1);
6957
6983
  }), Mr("click", j, () => R(w(_))), ut(U, j);
6958
6984
  };
6959
- Fn(A, (U) => {
6985
+ Gn(A, (U) => {
6960
6986
  w(_) === "ellipsis" ? U(C) : U(k, -1);
6961
6987
  });
6962
6988
  }
6963
6989
  ut(y, S);
6964
6990
  });
6965
- var g = Bn(x, 2), v = Hr(g, !0);
6966
- kr(T), Ln(
6991
+ var g = Ln(x, 2), v = Hr(g, !0);
6992
+ kr(T), Cn(
6967
6993
  (y, _) => {
6968
6994
  G.disabled = w(p) <= 0, Pr(Ye, y), g.disabled = w(p) >= w(d) - 1, Pr(v, _);
6969
6995
  },
6970
6996
  [() => r()("prev"), () => r()("next")]
6971
6997
  ), Mr("click", G, M), Mr("click", g, V), ut(b, T);
6972
6998
  };
6973
- Fn(Y, (b) => {
6999
+ Gn(Y, (b) => {
6974
7000
  w(d) > 1 && b(ce);
6975
7001
  });
6976
7002
  }
6977
7003
  kr(D), ut(e, D);
6978
- var ee = hn(z);
7004
+ var ee = cn(Z);
6979
7005
  return i(), ee;
6980
7006
  }
6981
- La(["click"]);
7007
+ Pa(["click"]);
6982
7008
  es(
6983
7009
  Os,
6984
7010
  {
@@ -6993,7 +7019,7 @@ es(
6993
7019
  { mode: "open" }
6994
7020
  );
6995
7021
  function Ns(e, t) {
6996
- fn(t, !0);
7022
+ hn(t, !0);
6997
7023
  let r = Ae(t, "offset", 7, 0), n = Ae(t, "limit", 7, Rt), i = Ae(t, "total", 7, 0), s = Ae(t, "onPageChange"), a = Ae(t, "locale", 7, "en");
6998
7024
  var o = {
6999
7025
  get offset() {
@@ -7043,7 +7069,7 @@ function Ns(e, t) {
7043
7069
  get locale() {
7044
7070
  return a();
7045
7071
  }
7046
- }), hn(o);
7072
+ }), cn(o);
7047
7073
  }
7048
7074
  customElements.define("loyalty-pagination", es(
7049
7075
  Ns,
@@ -7064,11 +7090,11 @@ const Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7064
7090
  export {
7065
7091
  il as $,
7066
7092
  ne as A,
7067
- $t as B,
7093
+ Pt as B,
7068
7094
  ml as C,
7069
7095
  wl as D,
7070
7096
  ur as E,
7071
- Z as F,
7097
+ q as F,
7072
7098
  Sl as G,
7073
7099
  yl as H,
7074
7100
  Al as I,
@@ -7082,37 +7108,37 @@ export {
7082
7108
  po as Q,
7083
7109
  Tl as R,
7084
7110
  El as S,
7085
- Ja as T,
7086
- Za as U,
7087
- ro as V,
7111
+ Ya as T,
7112
+ Xa as U,
7113
+ Qa as V,
7088
7114
  Os as W,
7089
7115
  bl as X,
7090
7116
  Ml as Y,
7091
7117
  Bl as Z,
7092
- eo as a,
7118
+ qa as a,
7093
7119
  Ae as b,
7094
7120
  es as c,
7095
7121
  al as d,
7096
7122
  Il as e,
7097
- Ua as f,
7098
- Ta as g,
7123
+ La as f,
7124
+ ya as g,
7099
7125
  ut as h,
7100
- Fn as i,
7101
- hn as j,
7126
+ Gn as i,
7127
+ cn as j,
7102
7128
  ve as k,
7103
- pa as l,
7129
+ oo as l,
7104
7130
  w as m,
7105
7131
  Yr as n,
7106
7132
  Hr as o,
7107
- fn as p,
7108
- Bn as q,
7133
+ hn as p,
7134
+ Ln as q,
7109
7135
  kr as r,
7110
7136
  sl as s,
7111
- Ln as t,
7112
- at as u,
7137
+ Cn as t,
7138
+ st as u,
7113
7139
  Pr as v,
7114
- yr as w,
7115
- da as x,
7140
+ br as w,
7141
+ ao as x,
7116
7142
  Hl as y,
7117
- La as z
7143
+ Pa as z
7118
7144
  };