@everymatrix/loyalty-marketing-content 0.1.6 → 0.1.8

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