@hintergrund/ui 0.1.10 → 0.1.14

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,29 +1,29 @@
1
1
  typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(e) {
2
2
  return Promise.resolve().then(e);
3
3
  } });
4
- const Qn = "5";
5
- typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(Qn);
6
- const Rs = 1, Os = 2, Ms = 4, Cs = 8, Is = 16, er = 1, tr = 2, nr = 4, rr = 8, sr = 16, Ps = 1, Ls = 2, Ds = 4, ir = 1, ar = 2, Jt = "[", Xt = "[!", Ft = "[?", Zt = "]", ke = {}, A = /* @__PURE__ */ Symbol(), Qt = "http://www.w3.org/1999/xhtml", Fs = "http://www.w3.org/2000/svg", js = "http://www.w3.org/1998/Math/MathML", fr = !1;
7
- var lr = Array.isArray, or = Array.prototype.indexOf, Ne = Array.prototype.includes, ur = Array.from, Qe = Object.keys, je = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, en = Object.getOwnPropertyDescriptors, cr = Object.prototype, hr = Array.prototype, Tt = Object.getPrototypeOf, jt = Object.isExtensible;
8
- function Ie(e) {
4
+ const Jn = "5";
5
+ typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(Jn);
6
+ const $s = 1, Es = 2, Ts = 4, Ss = 8, ks = 16, As = 1, Ns = 2, xs = 4, Rs = 8, Os = 16, Ms = 1, Cs = 2, Is = 4, Xn = 1, Zn = 2, Wt = "[", Kt = "[!", Pt = "[?", Jt = "]", Se = {}, T = /* @__PURE__ */ Symbol(), Xt = "http://www.w3.org/1999/xhtml", Ps = "http://www.w3.org/2000/svg", Ls = "http://www.w3.org/1998/Math/MathML", Qn = !1;
7
+ var er = Array.isArray, tr = Array.prototype.indexOf, ke = Array.prototype.includes, nr = Array.from, Ke = Object.keys, Le = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, Zt = Object.getOwnPropertyDescriptors, rr = Object.prototype, sr = Array.prototype, Tt = Object.getPrototypeOf, Lt = Object.isExtensible;
8
+ function Ds(e) {
9
9
  return typeof e == "function";
10
10
  }
11
- const ge = () => {
11
+ const _e = () => {
12
12
  };
13
- function Hs(e) {
13
+ function Fs(e) {
14
14
  return e();
15
15
  }
16
- function dr(e) {
16
+ function ir(e) {
17
17
  for (var t = 0; t < e.length; t++)
18
18
  e[t]();
19
19
  }
20
- function tn() {
20
+ function Qt() {
21
21
  var e, t, n = new Promise((r, s) => {
22
22
  e = r, t = s;
23
23
  });
24
24
  return { promise: n, resolve: e, reject: t };
25
25
  }
26
- function Bs(e, t) {
26
+ function js(e, t) {
27
27
  if (Array.isArray(e))
28
28
  return e;
29
29
  if (!(Symbol.iterator in e))
@@ -33,147 +33,147 @@ function Bs(e, t) {
33
33
  if (n.push(r), n.length === t) break;
34
34
  return n;
35
35
  }
36
- const x = 2, xe = 4, qe = 8, nn = 1 << 24, W = 16, J = 32, ne = 64, ct = 128, D = 512, T = 1024, N = 2048, Y = 4096, F = 8192, j = 16384, de = 32768, Ht = 1 << 25, Re = 65536, ht = 1 << 17, _r = 1 << 18, $e = 1 << 19, rn = 1 << 20, qs = 1 << 25, we = 65536, et = 1 << 21, He = 1 << 22, ce = 1 << 23, te = /* @__PURE__ */ Symbol("$state"), St = /* @__PURE__ */ Symbol("legacy props"), vr = /* @__PURE__ */ Symbol(""), Q = new class extends Error {
36
+ const A = 2, Ae = 4, je = 8, en = 1 << 24, z = 16, J = 32, ee = 64, ct = 128, I = 512, E = 1024, S = 2048, V = 4096, P = 8192, B = 16384, oe = 32768, Dt = 1 << 25, Ne = 65536, ht = 1 << 17, ar = 1 << 18, me = 1 << 19, tn = 1 << 20, Hs = 1 << 25, ge = 65536, Je = 1 << 21, De = 1 << 22, fe = 1 << 23, ve = /* @__PURE__ */ Symbol("$state"), fr = /* @__PURE__ */ Symbol("legacy props"), lr = /* @__PURE__ */ Symbol(""), Q = new class extends Error {
37
37
  name = "StaleReactionError";
38
38
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
39
- }(), sn = (
39
+ }(), nn = (
40
40
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
41
41
  !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
42
- ), Ve = 3, rt = 8;
43
- function pr(e) {
42
+ ), He = 3, Qe = 8;
43
+ function or(e) {
44
44
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
45
45
  }
46
- function gr() {
46
+ function ur() {
47
47
  throw new Error("https://svelte.dev/e/async_derived_orphan");
48
48
  }
49
- function Us(e, t, n) {
49
+ function Bs(e, t, n) {
50
50
  throw new Error("https://svelte.dev/e/each_key_duplicate");
51
51
  }
52
- function br(e) {
52
+ function cr(e) {
53
53
  throw new Error("https://svelte.dev/e/effect_in_teardown");
54
54
  }
55
- function yr() {
55
+ function hr() {
56
56
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
57
57
  }
58
- function wr(e) {
58
+ function dr(e) {
59
59
  throw new Error("https://svelte.dev/e/effect_orphan");
60
60
  }
61
- function mr() {
61
+ function _r() {
62
62
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
63
63
  }
64
- function $r() {
64
+ function vr() {
65
65
  throw new Error("https://svelte.dev/e/hydration_failed");
66
66
  }
67
- function Er(e) {
67
+ function Vs(e) {
68
68
  throw new Error("https://svelte.dev/e/props_invalid_value");
69
69
  }
70
- function Tr() {
70
+ function pr() {
71
71
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
72
72
  }
73
- function Sr() {
73
+ function br() {
74
74
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
75
75
  }
76
- function Ar() {
76
+ function gr() {
77
77
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
78
78
  }
79
- function kr() {
79
+ function yr() {
80
80
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
81
81
  }
82
- function Nr() {
82
+ function mr() {
83
83
  console.warn("https://svelte.dev/e/derived_inert");
84
84
  }
85
- function st(e) {
85
+ function et(e) {
86
86
  console.warn("https://svelte.dev/e/hydration_mismatch");
87
87
  }
88
- function Ys() {
88
+ function Us() {
89
89
  console.warn("https://svelte.dev/e/select_multiple_invalid_value");
90
90
  }
91
- function xr() {
91
+ function wr() {
92
92
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
93
93
  }
94
- let b = !1;
95
- function oe(e) {
96
- b = e;
94
+ let g = !1;
95
+ function ie(e) {
96
+ g = e;
97
97
  }
98
98
  let y;
99
- function B(e) {
99
+ function D(e) {
100
100
  if (e === null)
101
- throw st(), ke;
101
+ throw et(), Se;
102
102
  return y = e;
103
103
  }
104
- function At() {
105
- return B(/* @__PURE__ */ ae(y));
104
+ function St() {
105
+ return D(/* @__PURE__ */ re(y));
106
106
  }
107
- function Gs(e) {
108
- if (b) {
109
- if (/* @__PURE__ */ ae(y) !== null)
110
- throw st(), ke;
107
+ function Ys(e) {
108
+ if (g) {
109
+ if (/* @__PURE__ */ re(y) !== null)
110
+ throw et(), Se;
111
111
  y = e;
112
112
  }
113
113
  }
114
- function Rr(e = 1) {
115
- if (b) {
114
+ function $r(e = 1) {
115
+ if (g) {
116
116
  for (var t = e, n = y; t--; )
117
117
  n = /** @type {TemplateNode} */
118
- /* @__PURE__ */ ae(n);
118
+ /* @__PURE__ */ re(n);
119
119
  y = n;
120
120
  }
121
121
  }
122
- function an(e = !0) {
122
+ function rn(e = !0) {
123
123
  for (var t = 0, n = y; ; ) {
124
- if (n.nodeType === rt) {
124
+ if (n.nodeType === Qe) {
125
125
  var r = (
126
126
  /** @type {Comment} */
127
127
  n.data
128
128
  );
129
- if (r === Zt) {
129
+ if (r === Jt) {
130
130
  if (t === 0) return n;
131
131
  t -= 1;
132
- } else (r === Jt || r === Xt || // "[1", "[2", etc. for if blocks
132
+ } else (r === Wt || r === Kt || // "[1", "[2", etc. for if blocks
133
133
  r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
134
134
  }
135
135
  var s = (
136
136
  /** @type {TemplateNode} */
137
- /* @__PURE__ */ ae(n)
137
+ /* @__PURE__ */ re(n)
138
138
  );
139
139
  e && n.remove(), n = s;
140
140
  }
141
141
  }
142
- function Or(e) {
143
- if (!e || e.nodeType !== rt)
144
- throw st(), ke;
142
+ function Er(e) {
143
+ if (!e || e.nodeType !== Qe)
144
+ throw et(), Se;
145
145
  return (
146
146
  /** @type {Comment} */
147
147
  e.data
148
148
  );
149
149
  }
150
- function fn(e) {
150
+ function sn(e) {
151
151
  return e === this.v;
152
152
  }
153
- function ln(e, t) {
153
+ function an(e, t) {
154
154
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
155
155
  }
156
- function on(e) {
157
- return !ln(e, this.v);
156
+ function fn(e) {
157
+ return !an(e, this.v);
158
158
  }
159
- let Ue = !1, Mr = !1;
160
- function zs() {
161
- Ue = !0;
159
+ let tt = !1, Tr = !1;
160
+ function Gs() {
161
+ tt = !0;
162
162
  }
163
163
  let $ = null;
164
- function Oe(e) {
164
+ function xe(e) {
165
165
  $ = e;
166
166
  }
167
- function Ws(e) {
167
+ function zs(e) {
168
168
  return (
169
169
  /** @type {T} */
170
- un().get(e)
170
+ ln().get(e)
171
171
  );
172
172
  }
173
- function Ks(e, t) {
174
- return un().set(e, t), t;
173
+ function Ws(e, t) {
174
+ return ln().set(e, t), t;
175
175
  }
176
- function Cr(e, t = !1, n) {
176
+ function Sr(e, t = !1, n) {
177
177
  $ = {
178
178
  p: $,
179
179
  i: !1,
@@ -183,12 +183,12 @@ function Cr(e, t = !1, n) {
183
183
  x: null,
184
184
  r: (
185
185
  /** @type {Effect} */
186
- v
186
+ _
187
187
  ),
188
- l: Ue && !t ? { s: null, u: null, $: [] } : null
188
+ l: tt && !t ? { s: null, u: null, $: [] } : null
189
189
  };
190
190
  }
191
- function Ir(e) {
191
+ function kr(e) {
192
192
  var t = (
193
193
  /** @type {ComponentContext} */
194
194
  $
@@ -196,18 +196,18 @@ function Ir(e) {
196
196
  if (n !== null) {
197
197
  t.e = null;
198
198
  for (var r of n)
199
- Cn(r);
199
+ Rn(r);
200
200
  }
201
201
  return e !== void 0 && (t.x = e), t.i = !0, $ = t.p, e ?? /** @type {T} */
202
202
  {};
203
203
  }
204
- function Ye() {
205
- return !Ue || $ !== null && $.l === null;
204
+ function qe() {
205
+ return !tt || $ !== null && $.l === null;
206
206
  }
207
- function un(e) {
208
- return $ === null && pr(), $.c ??= new Map(Pr($) || void 0);
207
+ function ln(e) {
208
+ return $ === null && or(), $.c ??= new Map(Ar($) || void 0);
209
209
  }
210
- function Pr(e) {
210
+ function Ar(e) {
211
211
  let t = e.p;
212
212
  for (; t !== null; ) {
213
213
  const n = t.c;
@@ -217,36 +217,36 @@ function Pr(e) {
217
217
  }
218
218
  return null;
219
219
  }
220
- let ve = [];
221
- function cn() {
222
- var e = ve;
223
- ve = [], dr(e);
220
+ let he = [];
221
+ function on() {
222
+ var e = he;
223
+ he = [], ir(e);
224
224
  }
225
- function he(e) {
226
- if (ve.length === 0 && !Le) {
227
- var t = ve;
225
+ function W(e) {
226
+ if (he.length === 0 && !Ce) {
227
+ var t = he;
228
228
  queueMicrotask(() => {
229
- t === ve && cn();
229
+ t === he && on();
230
230
  });
231
231
  }
232
- ve.push(e);
232
+ he.push(e);
233
233
  }
234
- function Lr() {
235
- for (; ve.length > 0; )
236
- cn();
234
+ function Nr() {
235
+ for (; he.length > 0; )
236
+ on();
237
237
  }
238
- function hn(e) {
239
- var t = v;
238
+ function un(e) {
239
+ var t = _;
240
240
  if (t === null)
241
- return g.f |= ce, e;
242
- if ((t.f & de) === 0 && (t.f & xe) === 0)
241
+ return b.f |= fe, e;
242
+ if ((t.f & oe) === 0 && (t.f & Ae) === 0)
243
243
  throw e;
244
- ue(e, t);
244
+ ae(e, t);
245
245
  }
246
- function ue(e, t) {
246
+ function ae(e, t) {
247
247
  for (; t !== null; ) {
248
248
  if ((t.f & ct) !== 0) {
249
- if ((t.f & de) === 0)
249
+ if ((t.f & oe) === 0)
250
250
  throw e;
251
251
  try {
252
252
  t.b.error(e);
@@ -259,28 +259,28 @@ function ue(e, t) {
259
259
  }
260
260
  throw e;
261
261
  }
262
- const Dr = -7169;
263
- function m(e, t) {
264
- e.f = e.f & Dr | t;
262
+ const xr = -7169;
263
+ function w(e, t) {
264
+ e.f = e.f & xr | t;
265
265
  }
266
266
  function kt(e) {
267
- (e.f & D) !== 0 || e.deps === null ? m(e, T) : m(e, Y);
267
+ (e.f & I) !== 0 || e.deps === null ? w(e, E) : w(e, V);
268
268
  }
269
- function dn(e) {
269
+ function cn(e) {
270
270
  if (e !== null)
271
271
  for (const t of e)
272
- (t.f & x) === 0 || (t.f & we) === 0 || (t.f ^= we, dn(
272
+ (t.f & A) === 0 || (t.f & ge) === 0 || (t.f ^= ge, cn(
273
273
  /** @type {Derived} */
274
274
  t.deps
275
275
  ));
276
276
  }
277
- function _n(e, t, n) {
278
- (e.f & N) !== 0 ? t.add(e) : (e.f & Y) !== 0 && n.add(e), dn(e.deps), m(e, T);
277
+ function hn(e, t, n) {
278
+ (e.f & S) !== 0 ? t.add(e) : (e.f & V) !== 0 && n.add(e), cn(e.deps), w(e, E);
279
279
  }
280
- function vn(e, t, n) {
280
+ function dn(e, t, n) {
281
281
  if (e == null)
282
- return t(void 0), ge;
283
- const r = Ce(
282
+ return t(void 0), _e;
283
+ const r = Ve(
284
284
  () => e.subscribe(
285
285
  t,
286
286
  // @ts-expect-error
@@ -289,24 +289,24 @@ function vn(e, t, n) {
289
289
  );
290
290
  return r.unsubscribe ? () => r.unsubscribe() : r;
291
291
  }
292
- const Te = [];
293
- function Js(e, t) {
292
+ const $e = [];
293
+ function Ks(e, t) {
294
294
  return {
295
- subscribe: Fr(e, t).subscribe
295
+ subscribe: Rr(e, t).subscribe
296
296
  };
297
297
  }
298
- function Fr(e, t = ge) {
298
+ function Rr(e, t = _e) {
299
299
  let n = null;
300
300
  const r = /* @__PURE__ */ new Set();
301
301
  function s(a) {
302
- if (ln(e, a) && (e = a, n)) {
303
- const l = !Te.length;
302
+ if (an(e, a) && (e = a, n)) {
303
+ const l = !$e.length;
304
304
  for (const o of r)
305
- o[1](), Te.push(o, e);
305
+ o[1](), $e.push(o, e);
306
306
  if (l) {
307
- for (let o = 0; o < Te.length; o += 2)
308
- Te[o][0](Te[o + 1]);
309
- Te.length = 0;
307
+ for (let o = 0; o < $e.length; o += 2)
308
+ $e[o][0]($e[o + 1]);
309
+ $e.length = 0;
310
310
  }
311
311
  }
312
312
  }
@@ -316,9 +316,9 @@ function Fr(e, t = ge) {
316
316
  e
317
317
  ));
318
318
  }
319
- function f(a, l = ge) {
319
+ function f(a, l = _e) {
320
320
  const o = [a, l];
321
- return r.add(o), r.size === 1 && (n = t(s, i) || ge), a(
321
+ return r.add(o), r.size === 1 && (n = t(s, i) || _e), a(
322
322
  /** @type {T} */
323
323
  e
324
324
  ), () => {
@@ -327,38 +327,38 @@ function Fr(e, t = ge) {
327
327
  }
328
328
  return { set: s, update: i, subscribe: f };
329
329
  }
330
- function jr(e) {
330
+ function Or(e) {
331
331
  let t;
332
- return vn(e, (n) => t = n)(), t;
332
+ return dn(e, (n) => t = n)(), t;
333
333
  }
334
- let dt = !1, We = !1, _t = /* @__PURE__ */ Symbol();
335
- function Xs(e, t, n) {
334
+ let dt = !1, Ue = !1, _t = /* @__PURE__ */ Symbol();
335
+ function Js(e, t, n) {
336
336
  const r = n[t] ??= {
337
337
  store: null,
338
- source: /* @__PURE__ */ Sn(void 0),
339
- unsubscribe: ge
338
+ source: /* @__PURE__ */ $n(void 0),
339
+ unsubscribe: _e
340
340
  };
341
341
  if (r.store !== e && !(_t in n))
342
342
  if (r.unsubscribe(), r.store = e ?? null, e == null)
343
- r.source.v = void 0, r.unsubscribe = ge;
343
+ r.source.v = void 0, r.unsubscribe = _e;
344
344
  else {
345
345
  var s = !0;
346
- r.unsubscribe = vn(e, (i) => {
347
- s ? r.source.v = i : q(r.source, i);
346
+ r.unsubscribe = dn(e, (i) => {
347
+ s ? r.source.v = i : G(r.source, i);
348
348
  }), s = !1;
349
349
  }
350
- return e && _t in n ? jr(e) : O(r.source);
350
+ return e && _t in n ? Or(e) : q(r.source);
351
351
  }
352
- function Zs(e, t) {
353
- return Hr(e, t), t;
352
+ function Xs(e, t) {
353
+ return Mr(e, t), t;
354
354
  }
355
- function Qs() {
355
+ function Zs() {
356
356
  const e = {};
357
357
  function t() {
358
- It(() => {
358
+ it(() => {
359
359
  for (var n in e)
360
360
  e[n].unsubscribe();
361
- je(e, _t, {
361
+ Le(e, _t, {
362
362
  enumerable: !1,
363
363
  value: !0
364
364
  });
@@ -366,7 +366,7 @@ function Qs() {
366
366
  }
367
367
  return [e, t];
368
368
  }
369
- function Hr(e, t) {
369
+ function Mr(e, t) {
370
370
  dt = !0;
371
371
  try {
372
372
  e.set(t);
@@ -374,20 +374,20 @@ function Hr(e, t) {
374
374
  dt = !1;
375
375
  }
376
376
  }
377
- function Br(e) {
378
- var t = We;
377
+ function Qs(e) {
378
+ var t = Ue;
379
379
  try {
380
- return We = !1, [e(), We];
380
+ return Ue = !1, [e(), Ue];
381
381
  } finally {
382
- We = t;
382
+ Ue = t;
383
383
  }
384
384
  }
385
- const _e = /* @__PURE__ */ new Set();
386
- let p = null, V = null, vt = null, Le = !1, lt = !1, Se = null, Je = null;
387
- var Bt = 0;
388
- let qr = 1;
389
- class re {
390
- id = qr++;
385
+ const ce = /* @__PURE__ */ new Set();
386
+ let p = null, j = null, vt = null, Ce = !1, ft = !1, Ee = null, Ge = null;
387
+ var Ft = 0;
388
+ let Cr = 1;
389
+ class te {
390
+ id = Cr++;
391
391
  /**
392
392
  * The current values of any signals that are updated in this batch.
393
393
  * Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
@@ -473,7 +473,7 @@ class re {
473
473
  #c() {
474
474
  return this.is_fork || this.#s.size > 0;
475
475
  }
476
- #b() {
476
+ #g() {
477
477
  for (const r of this.#d)
478
478
  for (const s of r.#s.keys()) {
479
479
  for (var t = !1, n = s; n.parent !== null; ) {
@@ -506,41 +506,41 @@ class re {
506
506
  if (r) {
507
507
  this.#l.delete(t);
508
508
  for (var s of r.d)
509
- m(s, N), n(s);
509
+ w(s, S), n(s);
510
510
  for (s of r.m)
511
- m(s, Y), n(s);
511
+ w(s, V), n(s);
512
512
  }
513
513
  this.#h.add(t);
514
514
  }
515
515
  #v() {
516
- if (Bt++ > 1e3 && (_e.delete(this), Vr()), !this.#c()) {
516
+ if (Ft++ > 1e3 && (ce.delete(this), Ir()), !this.#c()) {
517
517
  for (const a of this.#o)
518
- this.#u.delete(a), m(a, N), this.schedule(a);
518
+ this.#u.delete(a), w(a, S), this.schedule(a);
519
519
  for (const a of this.#u)
520
- m(a, Y), this.schedule(a);
520
+ w(a, V), this.schedule(a);
521
521
  }
522
522
  const t = this.#n;
523
523
  this.#n = [], this.apply();
524
- var n = Se = [], r = [], s = Je = [];
524
+ var n = Ee = [], r = [], s = Ge = [];
525
525
  for (const a of t)
526
526
  try {
527
- this.#g(a, n, r);
527
+ this.#b(a, n, r);
528
528
  } catch (l) {
529
- throw yn(a), l;
529
+ throw bn(a), l;
530
530
  }
531
531
  if (p = null, s.length > 0) {
532
- var i = re.ensure();
532
+ var i = te.ensure();
533
533
  for (const a of s)
534
534
  i.schedule(a);
535
535
  }
536
- if (Se = null, Je = null, this.#c() || this.#b()) {
536
+ if (Ee = null, Ge = null, this.#c() || this.#g()) {
537
537
  this.#p(r), this.#p(n);
538
538
  for (const [a, l] of this.#l)
539
- bn(a, l);
539
+ pn(a, l);
540
540
  } else {
541
- this.#i.size === 0 && _e.delete(this), this.#o.clear(), this.#u.clear();
541
+ this.#i.size === 0 && ce.delete(this), this.#o.clear(), this.#u.clear();
542
542
  for (const a of this.#e) a(this);
543
- this.#e.clear(), qt(r), qt(n), this.#a?.resolve();
543
+ this.#e.clear(), jt(r), jt(n), this.#a?.resolve();
544
544
  }
545
545
  var f = (
546
546
  /** @type {Batch | null} */
@@ -551,7 +551,7 @@ class re {
551
551
  const a = f ??= this;
552
552
  a.#n.push(...this.#n.filter((l) => !a.#n.includes(l)));
553
553
  }
554
- f !== null && (_e.add(f), f.#v());
554
+ f !== null && (ce.add(f), f.#v());
555
555
  }
556
556
  /**
557
557
  * Traverse the effect tree, executing effects or stashing
@@ -560,12 +560,12 @@ class re {
560
560
  * @param {Effect[]} effects
561
561
  * @param {Effect[]} render_effects
562
562
  */
563
- #g(t, n, r) {
564
- t.f ^= T;
563
+ #b(t, n, r) {
564
+ t.f ^= E;
565
565
  for (var s = t.first; s !== null; ) {
566
- var i = s.f, f = (i & (J | ne)) !== 0, a = f && (i & T) !== 0, l = a || (i & F) !== 0 || this.#l.has(s);
566
+ var i = s.f, f = (i & (J | ee)) !== 0, a = f && (i & E) !== 0, l = a || (i & P) !== 0 || this.#l.has(s);
567
567
  if (!l && s.fn !== null) {
568
- f ? s.f ^= T : (i & xe) !== 0 ? n.push(s) : Me(s) && ((i & W) !== 0 && this.#u.add(s), me(s));
568
+ f ? s.f ^= E : (i & Ae) !== 0 ? n.push(s) : Re(s) && ((i & z) !== 0 && this.#u.add(s), ye(s));
569
569
  var o = s.first;
570
570
  if (o !== null) {
571
571
  s = o;
@@ -587,7 +587,7 @@ class re {
587
587
  */
588
588
  #p(t) {
589
589
  for (var n = 0; n < t.length; n += 1)
590
- _n(t[n], this.#o, this.#u);
590
+ hn(t[n], this.#o, this.#u);
591
591
  }
592
592
  /**
593
593
  * Associate a change to a given source with the current
@@ -597,24 +597,24 @@ class re {
597
597
  * @param {boolean} [is_derived]
598
598
  */
599
599
  capture(t, n, r = !1) {
600
- t.v !== A && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & ce) === 0 && (this.current.set(t, [n, r]), V?.set(t, n)), this.is_fork || (t.v = n);
600
+ t.v !== T && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & fe) === 0 && (this.current.set(t, [n, r]), j?.set(t, n)), this.is_fork || (t.v = n);
601
601
  }
602
602
  activate() {
603
603
  p = this;
604
604
  }
605
605
  deactivate() {
606
- p = null, V = null;
606
+ p = null, j = null;
607
607
  }
608
608
  flush() {
609
609
  try {
610
- lt = !0, p = this, this.#v();
610
+ ft = !0, p = this, this.#v();
611
611
  } finally {
612
- Bt = 0, vt = null, Se = null, Je = null, lt = !1, p = null, V = null, be.clear();
612
+ Ft = 0, vt = null, Ee = null, Ge = null, ft = !1, p = null, j = null, pe.clear();
613
613
  }
614
614
  }
615
615
  discard() {
616
616
  for (const t of this.#r) t(this);
617
- this.#r.clear(), this.#t.clear(), _e.delete(this);
617
+ this.#r.clear(), this.#t.clear(), ce.delete(this);
618
618
  }
619
619
  /**
620
620
  * @param {Effect} effect
@@ -623,16 +623,16 @@ class re {
623
623
  this.#f.push(t);
624
624
  }
625
625
  #y() {
626
- for (const u of _e) {
626
+ for (const u of ce) {
627
627
  var t = u.id < this.id, n = [];
628
- for (const [c, [h, _]] of this.current) {
628
+ for (const [c, [h, v]] of this.current) {
629
629
  if (u.current.has(c)) {
630
630
  var r = (
631
631
  /** @type {[any, boolean]} */
632
632
  u.current.get(c)[0]
633
633
  );
634
634
  if (t && h !== r)
635
- u.current.set(c, [h, _]);
635
+ u.current.set(c, [h, v]);
636
636
  else
637
637
  continue;
638
638
  }
@@ -645,12 +645,12 @@ class re {
645
645
  if (t)
646
646
  for (const c of this.#h)
647
647
  u.unskip_effect(c, (h) => {
648
- (h.f & (W | He)) !== 0 ? u.schedule(h) : u.#p([h]);
648
+ (h.f & (z | De)) !== 0 ? u.schedule(h) : u.#p([h]);
649
649
  });
650
650
  u.activate();
651
651
  var i = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Map();
652
652
  for (var a of n)
653
- gn(a, s, i, f);
653
+ vn(a, s, i, f);
654
654
  f = /* @__PURE__ */ new Map();
655
655
  var l = [...u.current.keys()].filter(
656
656
  (c) => this.current.has(c) ? (
@@ -659,17 +659,17 @@ class re {
659
659
  ) : !0
660
660
  );
661
661
  for (const c of this.#f)
662
- (c.f & (j | F | ht)) === 0 && Nt(c, l, f) && ((c.f & (He | W)) !== 0 ? (m(c, N), u.schedule(c)) : u.#o.add(c));
662
+ (c.f & (B | P | ht)) === 0 && At(c, l, f) && ((c.f & (De | z)) !== 0 ? (w(c, S), u.schedule(c)) : u.#o.add(c));
663
663
  if (u.#n.length > 0) {
664
664
  u.apply();
665
665
  for (var o of u.#n)
666
- u.#g(o, [], []);
666
+ u.#b(o, [], []);
667
667
  u.#n = [];
668
668
  }
669
669
  u.deactivate();
670
670
  }
671
671
  }
672
- for (const u of _e)
672
+ for (const u of ce)
673
673
  u.#d.has(this) && (u.#d.delete(this), u.#d.size === 0 && !u.#c() && (u.activate(), u.#v()));
674
674
  }
675
675
  /**
@@ -694,7 +694,7 @@ class re {
694
694
  let i = this.#s.get(n) ?? 0;
695
695
  i === 1 ? this.#s.delete(n) : this.#s.set(n, i - 1);
696
696
  }
697
- this.#_ || r || (this.#_ = !0, he(() => {
697
+ this.#_ || r || (this.#_ = !0, W(() => {
698
698
  this.#_ = !1, this.flush();
699
699
  }));
700
700
  }
@@ -726,12 +726,12 @@ class re {
726
726
  this.#t.clear();
727
727
  }
728
728
  settled() {
729
- return (this.#a ??= tn()).promise;
729
+ return (this.#a ??= Qt()).promise;
730
730
  }
731
731
  static ensure() {
732
732
  if (p === null) {
733
- const t = p = new re();
734
- lt || (_e.add(p), Le || he(() => {
733
+ const t = p = new te();
734
+ ft || (ce.add(p), Ce || W(() => {
735
735
  p === t && t.flush();
736
736
  }));
737
737
  }
@@ -739,7 +739,7 @@ class re {
739
739
  }
740
740
  apply() {
741
741
  {
742
- V = null;
742
+ j = null;
743
743
  return;
744
744
  }
745
745
  }
@@ -748,30 +748,30 @@ class re {
748
748
  * @param {Effect} effect
749
749
  */
750
750
  schedule(t) {
751
- if (vt = t, t.b?.is_pending && (t.f & (xe | qe | nn)) !== 0 && (t.f & de) === 0) {
751
+ if (vt = t, t.b?.is_pending && (t.f & (Ae | je | en)) !== 0 && (t.f & oe) === 0) {
752
752
  t.b.defer_effect(t);
753
753
  return;
754
754
  }
755
755
  for (var n = t; n.parent !== null; ) {
756
756
  n = n.parent;
757
757
  var r = n.f;
758
- if (Se !== null && n === v && (g === null || (g.f & x) === 0) && !dt)
758
+ if (Ee !== null && n === _ && (b === null || (b.f & A) === 0) && !dt)
759
759
  return;
760
- if ((r & (ne | J)) !== 0) {
761
- if ((r & T) === 0)
760
+ if ((r & (ee | J)) !== 0) {
761
+ if ((r & E) === 0)
762
762
  return;
763
- n.f ^= T;
763
+ n.f ^= E;
764
764
  }
765
765
  }
766
766
  this.#n.push(n);
767
767
  }
768
768
  }
769
- function pn(e) {
770
- var t = Le;
771
- Le = !0;
769
+ function _n(e) {
770
+ var t = Ce;
771
+ Ce = !0;
772
772
  try {
773
773
  for (var n; ; ) {
774
- if (Lr(), p === null)
774
+ if (Nr(), p === null)
775
775
  return (
776
776
  /** @type {T} */
777
777
  n
@@ -779,33 +779,33 @@ function pn(e) {
779
779
  p.flush();
780
780
  }
781
781
  } finally {
782
- Le = t;
782
+ Ce = t;
783
783
  }
784
784
  }
785
- function Vr() {
785
+ function Ir() {
786
786
  try {
787
- mr();
787
+ _r();
788
788
  } catch (e) {
789
- ue(e, vt);
789
+ ae(e, vt);
790
790
  }
791
791
  }
792
792
  let X = null;
793
- function qt(e) {
793
+ function jt(e) {
794
794
  var t = e.length;
795
795
  if (t !== 0) {
796
796
  for (var n = 0; n < t; ) {
797
797
  var r = e[n++];
798
- if ((r.f & (j | F)) === 0 && Me(r) && (X = /* @__PURE__ */ new Set(), me(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Ln(r), X?.size > 0)) {
799
- be.clear();
798
+ if ((r.f & (B | P)) === 0 && Re(r) && (X = /* @__PURE__ */ new Set(), ye(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Cn(r), X?.size > 0)) {
799
+ pe.clear();
800
800
  for (const s of X) {
801
- if ((s.f & (j | F)) !== 0) continue;
801
+ if ((s.f & (B | P)) !== 0) continue;
802
802
  const i = [s];
803
803
  let f = s.parent;
804
804
  for (; f !== null; )
805
805
  X.has(f) && (X.delete(f), i.push(f)), f = f.parent;
806
806
  for (let a = i.length - 1; a >= 0; a--) {
807
807
  const l = i[a];
808
- (l.f & (j | F)) === 0 && me(l);
808
+ (l.f & (B | P)) === 0 && ye(l);
809
809
  }
810
810
  }
811
811
  X.clear();
@@ -814,30 +814,30 @@ function qt(e) {
814
814
  X = null;
815
815
  }
816
816
  }
817
- function gn(e, t, n, r) {
817
+ function vn(e, t, n, r) {
818
818
  if (!n.has(e) && (n.add(e), e.reactions !== null))
819
819
  for (const s of e.reactions) {
820
820
  const i = s.f;
821
- (i & x) !== 0 ? gn(
821
+ (i & A) !== 0 ? vn(
822
822
  /** @type {Derived} */
823
823
  s,
824
824
  t,
825
825
  n,
826
826
  r
827
- ) : (i & (He | W)) !== 0 && (i & N) === 0 && Nt(s, t, r) && (m(s, N), xt(
827
+ ) : (i & (De | z)) !== 0 && (i & S) === 0 && At(s, t, r) && (w(s, S), Nt(
828
828
  /** @type {Effect} */
829
829
  s
830
830
  ));
831
831
  }
832
832
  }
833
- function Nt(e, t, n) {
833
+ function At(e, t, n) {
834
834
  const r = n.get(e);
835
835
  if (r !== void 0) return r;
836
836
  if (e.deps !== null)
837
837
  for (const s of e.deps) {
838
- if (Ne.call(t, s))
838
+ if (ke.call(t, s))
839
839
  return !0;
840
- if ((s.f & x) !== 0 && Nt(
840
+ if ((s.f & A) !== 0 && At(
841
841
  /** @type {Derived} */
842
842
  s,
843
843
  t,
@@ -851,36 +851,36 @@ function Nt(e, t, n) {
851
851
  }
852
852
  return n.set(e, !1), !1;
853
853
  }
854
- function xt(e) {
854
+ function Nt(e) {
855
855
  p.schedule(e);
856
856
  }
857
- function bn(e, t) {
858
- if (!((e.f & J) !== 0 && (e.f & T) !== 0)) {
859
- (e.f & N) !== 0 ? t.d.push(e) : (e.f & Y) !== 0 && t.m.push(e), m(e, T);
857
+ function pn(e, t) {
858
+ if (!((e.f & J) !== 0 && (e.f & E) !== 0)) {
859
+ (e.f & S) !== 0 ? t.d.push(e) : (e.f & V) !== 0 && t.m.push(e), w(e, E);
860
860
  for (var n = e.first; n !== null; )
861
- bn(n, t), n = n.next;
861
+ pn(n, t), n = n.next;
862
862
  }
863
863
  }
864
- function yn(e) {
865
- m(e, T);
864
+ function bn(e) {
865
+ w(e, E);
866
866
  for (var t = e.first; t !== null; )
867
- yn(t), t = t.next;
867
+ bn(t), t = t.next;
868
868
  }
869
- function Ur(e) {
870
- let t = 0, n = Ge(0), r;
869
+ function Pr(e) {
870
+ let t = 0, n = Be(0), r;
871
871
  return () => {
872
- Ct() && (O(n), Ee(() => (t === 0 && (r = Ce(() => e(() => De(n)))), t += 1, () => {
873
- he(() => {
874
- t -= 1, t === 0 && (r?.(), r = void 0, De(n));
872
+ Mt() && (q(n), ue(() => (t === 0 && (r = Ve(() => e(() => Ie(n)))), t += 1, () => {
873
+ W(() => {
874
+ t -= 1, t === 0 && (r?.(), r = void 0, Ie(n));
875
875
  });
876
876
  })));
877
877
  };
878
878
  }
879
- var Yr = Re | $e;
880
- function Gr(e, t, n, r) {
881
- new zr(e, t, n, r);
879
+ var Lr = Ne | me;
880
+ function Dr(e, t, n, r) {
881
+ new Fr(e, t, n, r);
882
882
  }
883
- class zr {
883
+ class Fr {
884
884
  /** @type {Boundary | null} */
885
885
  parent;
886
886
  is_pending = !1;
@@ -893,7 +893,7 @@ class zr {
893
893
  /** @type {TemplateNode} */
894
894
  #e;
895
895
  /** @type {TemplateNode | null} */
896
- #r = b ? y : null;
896
+ #r = g ? y : null;
897
897
  /** @type {BoundaryProps} */
898
898
  #t;
899
899
  /** @type {((anchor: Node) => void)} */
@@ -923,7 +923,7 @@ class zr {
923
923
  * @type {Source<number> | null}
924
924
  */
925
925
  #c = null;
926
- #b = Ur(() => (this.#c = Ge(this.#u), () => {
926
+ #g = Pr(() => (this.#c = Be(this.#u), () => {
927
927
  this.#c = null;
928
928
  }));
929
929
  /**
@@ -936,25 +936,25 @@ class zr {
936
936
  this.#e = t, this.#t = n, this.#i = (i) => {
937
937
  var f = (
938
938
  /** @type {Effect} */
939
- v
939
+ _
940
940
  );
941
941
  f.b = this, f.f |= ct, r(i);
942
942
  }, this.parent = /** @type {Effect} */
943
- v.b, this.transform_error = s ?? this.parent?.transform_error ?? ((i) => i), this.#s = In(() => {
944
- if (b) {
943
+ _.b, this.transform_error = s ?? this.parent?.transform_error ?? ((i) => i), this.#s = On(() => {
944
+ if (g) {
945
945
  const i = (
946
946
  /** @type {Comment} */
947
947
  this.#r
948
948
  );
949
- At();
950
- const f = i.data === Xt;
951
- if (i.data.startsWith(Ft)) {
952
- const l = JSON.parse(i.data.slice(Ft.length));
953
- this.#g(l);
949
+ St();
950
+ const f = i.data === Kt;
951
+ if (i.data.startsWith(Pt)) {
952
+ const l = JSON.parse(i.data.slice(Pt.length));
953
+ this.#b(l);
954
954
  } else f ? this.#p() : this.#v();
955
955
  } else
956
956
  this.#y();
957
- }, Yr), b && (this.#e = y);
957
+ }, Lr), g && (this.#e = y);
958
958
  }
959
959
  #v() {
960
960
  try {
@@ -966,7 +966,7 @@ class zr {
966
966
  /**
967
967
  * @param {unknown} error The deserialized error from the server's hydration comment
968
968
  */
969
- #g(t) {
969
+ #b(t) {
970
970
  const n = this.#t.failed;
971
971
  n && (this.#f = Z(() => {
972
972
  n(
@@ -979,15 +979,15 @@ class zr {
979
979
  }
980
980
  #p() {
981
981
  const t = this.#t.pending;
982
- t && (this.is_pending = !0, this.#n = Z(() => t(this.#e)), he(() => {
983
- var n = this.#o = document.createDocumentFragment(), r = G();
984
- n.append(r), this.#a = this.#m(() => Z(() => this.#i(r))), this.#l === 0 && (this.#e.before(n), this.#o = null, Fe(
982
+ t && (this.is_pending = !0, this.#n = Z(() => t(this.#e)), W(() => {
983
+ var n = this.#o = document.createDocumentFragment(), r = U();
984
+ n.append(r), this.#a = this.#w(() => Z(() => this.#i(r))), this.#l === 0 && (this.#e.before(n), this.#o = null, Pe(
985
985
  /** @type {Effect} */
986
986
  this.#n,
987
987
  () => {
988
988
  this.#n = null;
989
989
  }
990
- ), this.#w(
990
+ ), this.#m(
991
991
  /** @type {Batch} */
992
992
  p
993
993
  ));
@@ -999,14 +999,14 @@ class zr {
999
999
  this.#i(this.#e);
1000
1000
  }), this.#l > 0) {
1001
1001
  var t = this.#o = document.createDocumentFragment();
1002
- jn(this.#a, t);
1002
+ Ln(this.#a, t);
1003
1003
  const n = (
1004
1004
  /** @type {(anchor: Node) => void} */
1005
1005
  this.#t.pending
1006
1006
  );
1007
1007
  this.#n = Z(() => n(this.#e));
1008
1008
  } else
1009
- this.#w(
1009
+ this.#m(
1010
1010
  /** @type {Batch} */
1011
1011
  p
1012
1012
  );
@@ -1017,7 +1017,7 @@ class zr {
1017
1017
  /**
1018
1018
  * @param {Batch} batch
1019
1019
  */
1020
- #w(t) {
1020
+ #m(t) {
1021
1021
  this.is_pending = !1, t.transfer_effects(this.#_, this.#d);
1022
1022
  }
1023
1023
  /**
@@ -1025,7 +1025,7 @@ class zr {
1025
1025
  * @param {Effect} effect
1026
1026
  */
1027
1027
  defer_effect(t) {
1028
- _n(t, this.#_, this.#d);
1028
+ hn(t, this.#_, this.#d);
1029
1029
  }
1030
1030
  /**
1031
1031
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -1041,15 +1041,15 @@ class zr {
1041
1041
  * @template T
1042
1042
  * @param {() => T} fn
1043
1043
  */
1044
- #m(t) {
1045
- var n = v, r = g, s = $;
1046
- I(this.#s), C(this.#s), Oe(this.#s.ctx);
1044
+ #w(t) {
1045
+ var n = _, r = b, s = $;
1046
+ O(this.#s), R(this.#s), xe(this.#s.ctx);
1047
1047
  try {
1048
- return re.ensure(), t();
1048
+ return te.ensure(), t();
1049
1049
  } catch (i) {
1050
- return hn(i), null;
1050
+ return un(i), null;
1051
1051
  } finally {
1052
- I(n), C(r), Oe(s);
1052
+ O(n), R(r), xe(s);
1053
1053
  }
1054
1054
  }
1055
1055
  /**
@@ -1063,7 +1063,7 @@ class zr {
1063
1063
  this.parent && this.parent.#$(t, n);
1064
1064
  return;
1065
1065
  }
1066
- this.#l += t, this.#l === 0 && (this.#w(n), this.#n && Fe(this.#n, () => {
1066
+ this.#l += t, this.#l === 0 && (this.#m(n), this.#n && Pe(this.#n, () => {
1067
1067
  this.#n = null;
1068
1068
  }), this.#o && (this.#e.before(this.#o), this.#o = null));
1069
1069
  }
@@ -1075,12 +1075,12 @@ class zr {
1075
1075
  * @param {Batch} batch
1076
1076
  */
1077
1077
  update_pending_count(t, n) {
1078
- this.#$(t, n), this.#u += t, !(!this.#c || this.#h) && (this.#h = !0, he(() => {
1079
- this.#h = !1, this.#c && nt(this.#c, this.#u);
1078
+ this.#$(t, n), this.#u += t, !(!this.#c || this.#h) && (this.#h = !0, W(() => {
1079
+ this.#h = !1, this.#c && Ze(this.#c, this.#u);
1080
1080
  }));
1081
1081
  }
1082
1082
  get_effect_pending() {
1083
- return this.#b(), O(
1083
+ return this.#g(), q(
1084
1084
  /** @type {Source<number>} */
1085
1085
  this.#c
1086
1086
  );
@@ -1097,35 +1097,35 @@ class zr {
1097
1097
  * @param {unknown} error
1098
1098
  */
1099
1099
  #E(t) {
1100
- this.#a && (M(this.#a), this.#a = null), this.#n && (M(this.#n), this.#n = null), this.#f && (M(this.#f), this.#f = null), b && (B(
1100
+ this.#a && (x(this.#a), this.#a = null), this.#n && (x(this.#n), this.#n = null), this.#f && (x(this.#f), this.#f = null), g && (D(
1101
1101
  /** @type {TemplateNode} */
1102
1102
  this.#r
1103
- ), Rr(), B(an()));
1103
+ ), $r(), D(rn()));
1104
1104
  var n = this.#t.onerror;
1105
1105
  let r = this.#t.failed;
1106
1106
  var s = !1, i = !1;
1107
1107
  const f = () => {
1108
1108
  if (s) {
1109
- xr();
1109
+ wr();
1110
1110
  return;
1111
1111
  }
1112
- s = !0, i && kr(), this.#f !== null && Fe(this.#f, () => {
1112
+ s = !0, i && yr(), this.#f !== null && Pe(this.#f, () => {
1113
1113
  this.#f = null;
1114
- }), this.#m(() => {
1114
+ }), this.#w(() => {
1115
1115
  this.#y();
1116
1116
  });
1117
1117
  }, a = (l) => {
1118
1118
  try {
1119
1119
  i = !0, n?.(l, f), i = !1;
1120
1120
  } catch (o) {
1121
- ue(o, this.#s && this.#s.parent);
1121
+ ae(o, this.#s && this.#s.parent);
1122
1122
  }
1123
- r && (this.#f = this.#m(() => {
1123
+ r && (this.#f = this.#w(() => {
1124
1124
  try {
1125
1125
  return Z(() => {
1126
1126
  var o = (
1127
1127
  /** @type {Effect} */
1128
- v
1128
+ _
1129
1129
  );
1130
1130
  o.b = this, o.f |= ct, r(
1131
1131
  this.#e,
@@ -1134,7 +1134,7 @@ class zr {
1134
1134
  );
1135
1135
  });
1136
1136
  } catch (o) {
1137
- return ue(
1137
+ return ae(
1138
1138
  o,
1139
1139
  /** @type {Effect} */
1140
1140
  this.#s.parent
@@ -1142,25 +1142,25 @@ class zr {
1142
1142
  }
1143
1143
  }));
1144
1144
  };
1145
- he(() => {
1145
+ W(() => {
1146
1146
  var l;
1147
1147
  try {
1148
1148
  l = this.transform_error(t);
1149
1149
  } catch (o) {
1150
- ue(o, this.#s && this.#s.parent);
1150
+ ae(o, this.#s && this.#s.parent);
1151
1151
  return;
1152
1152
  }
1153
1153
  l !== null && typeof l == "object" && typeof /** @type {any} */
1154
1154
  l.then == "function" ? l.then(
1155
1155
  a,
1156
1156
  /** @param {unknown} e */
1157
- (o) => ue(o, this.#s && this.#s.parent)
1157
+ (o) => ae(o, this.#s && this.#s.parent)
1158
1158
  ) : a(l);
1159
1159
  });
1160
1160
  }
1161
1161
  }
1162
- function Wr(e, t, n, r) {
1163
- const s = Ye() ? it : mn;
1162
+ function jr(e, t, n, r) {
1163
+ const s = qe() ? xt : Br;
1164
1164
  var i = e.filter((h) => !h.settled);
1165
1165
  if (n.length === 0 && i.length === 0) {
1166
1166
  r(t.map(s));
@@ -1168,48 +1168,48 @@ function Wr(e, t, n, r) {
1168
1168
  }
1169
1169
  var f = (
1170
1170
  /** @type {Effect} */
1171
- v
1172
- ), a = Kr(), l = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((h) => h.promise)) : null;
1171
+ _
1172
+ ), a = Hr(), l = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((h) => h.promise)) : null;
1173
1173
  function o(h) {
1174
1174
  a();
1175
1175
  try {
1176
1176
  r(h);
1177
- } catch (_) {
1178
- (f.f & j) === 0 && ue(_, f);
1177
+ } catch (v) {
1178
+ (f.f & B) === 0 && ae(v, f);
1179
1179
  }
1180
- tt();
1180
+ Xe();
1181
1181
  }
1182
1182
  if (n.length === 0) {
1183
1183
  l.then(() => o(t.map(s)));
1184
1184
  return;
1185
1185
  }
1186
- var u = wn();
1186
+ var u = gn();
1187
1187
  function c() {
1188
- Promise.all(n.map((h) => /* @__PURE__ */ Jr(h))).then((h) => o([...t.map(s), ...h])).catch((h) => ue(h, f)).finally(() => u());
1188
+ Promise.all(n.map((h) => /* @__PURE__ */ qr(h))).then((h) => o([...t.map(s), ...h])).catch((h) => ae(h, f)).finally(() => u());
1189
1189
  }
1190
1190
  l ? l.then(() => {
1191
- a(), c(), tt();
1191
+ a(), c(), Xe();
1192
1192
  }) : c();
1193
1193
  }
1194
- function Kr() {
1194
+ function Hr() {
1195
1195
  var e = (
1196
1196
  /** @type {Effect} */
1197
- v
1198
- ), t = g, n = $, r = (
1197
+ _
1198
+ ), t = b, n = $, r = (
1199
1199
  /** @type {Batch} */
1200
1200
  p
1201
1201
  );
1202
1202
  return function(i = !0) {
1203
- I(e), C(t), Oe(n), i && (e.f & j) === 0 && (r?.activate(), r?.apply());
1203
+ O(e), R(t), xe(n), i && (e.f & B) === 0 && (r?.activate(), r?.apply());
1204
1204
  };
1205
1205
  }
1206
- function tt(e = !0) {
1207
- I(null), C(null), Oe(null), e && p?.deactivate();
1206
+ function Xe(e = !0) {
1207
+ O(null), R(null), xe(null), e && p?.deactivate();
1208
1208
  }
1209
- function wn() {
1209
+ function gn() {
1210
1210
  var e = (
1211
1211
  /** @type {Effect} */
1212
- v
1212
+ _
1213
1213
  ), t = (
1214
1214
  /** @type {Boundary} */
1215
1215
  e.b
@@ -1222,91 +1222,91 @@ function wn() {
1222
1222
  };
1223
1223
  }
1224
1224
  // @__NO_SIDE_EFFECTS__
1225
- function it(e) {
1226
- var t = x | N;
1227
- return v !== null && (v.f |= $e), {
1225
+ function xt(e) {
1226
+ var t = A | S;
1227
+ return _ !== null && (_.f |= me), {
1228
1228
  ctx: $,
1229
1229
  deps: null,
1230
1230
  effects: null,
1231
- equals: fn,
1231
+ equals: sn,
1232
1232
  f: t,
1233
1233
  fn: e,
1234
1234
  reactions: null,
1235
1235
  rv: 0,
1236
1236
  v: (
1237
1237
  /** @type {V} */
1238
- A
1238
+ T
1239
1239
  ),
1240
1240
  wv: 0,
1241
- parent: v,
1241
+ parent: _,
1242
1242
  ac: null
1243
1243
  };
1244
1244
  }
1245
1245
  // @__NO_SIDE_EFFECTS__
1246
- function Jr(e, t, n) {
1246
+ function qr(e, t, n) {
1247
1247
  let r = (
1248
1248
  /** @type {Effect | null} */
1249
- v
1249
+ _
1250
1250
  );
1251
- r === null && gr();
1251
+ r === null && ur();
1252
1252
  var s = (
1253
1253
  /** @type {Promise<V>} */
1254
1254
  /** @type {unknown} */
1255
1255
  void 0
1256
- ), i = Ge(
1256
+ ), i = Be(
1257
1257
  /** @type {V} */
1258
- A
1259
- ), f = !g, a = /* @__PURE__ */ new Map();
1260
- return is(() => {
1258
+ T
1259
+ ), f = !b, a = /* @__PURE__ */ new Map();
1260
+ return Zr(() => {
1261
1261
  var l = (
1262
1262
  /** @type {Effect} */
1263
- v
1264
- ), o = tn();
1263
+ _
1264
+ ), o = Qt();
1265
1265
  s = o.promise;
1266
1266
  try {
1267
- Promise.resolve(e()).then(o.resolve, o.reject).finally(tt);
1268
- } catch (_) {
1269
- o.reject(_), tt();
1267
+ Promise.resolve(e()).then(o.resolve, o.reject).finally(Xe);
1268
+ } catch (v) {
1269
+ o.reject(v), Xe();
1270
1270
  }
1271
1271
  var u = (
1272
1272
  /** @type {Batch} */
1273
1273
  p
1274
1274
  );
1275
1275
  if (f) {
1276
- if ((l.f & de) !== 0)
1277
- var c = wn();
1276
+ if ((l.f & oe) !== 0)
1277
+ var c = gn();
1278
1278
  if (
1279
1279
  /** @type {Boundary} */
1280
1280
  r.b.is_rendered()
1281
1281
  )
1282
1282
  a.get(u)?.reject(Q), a.delete(u);
1283
1283
  else {
1284
- for (const _ of a.values())
1285
- _.reject(Q);
1284
+ for (const v of a.values())
1285
+ v.reject(Q);
1286
1286
  a.clear();
1287
1287
  }
1288
1288
  a.set(u, o);
1289
1289
  }
1290
- const h = (_, d = void 0) => {
1290
+ const h = (v, d = void 0) => {
1291
1291
  if (c) {
1292
- var w = d === Q;
1293
- c(w);
1292
+ var m = d === Q;
1293
+ c(m);
1294
1294
  }
1295
- if (!(d === Q || (l.f & j) !== 0)) {
1295
+ if (!(d === Q || (l.f & B) !== 0)) {
1296
1296
  if (u.activate(), d)
1297
- i.f |= ce, nt(i, d);
1297
+ i.f |= fe, Ze(i, d);
1298
1298
  else {
1299
- (i.f & ce) !== 0 && (i.f ^= ce), nt(i, _);
1300
- for (const [E, k] of a) {
1301
- if (a.delete(E), E === u) break;
1302
- k.reject(Q);
1299
+ (i.f & fe) !== 0 && (i.f ^= fe), Ze(i, v);
1300
+ for (const [k, F] of a) {
1301
+ if (a.delete(k), k === u) break;
1302
+ F.reject(Q);
1303
1303
  }
1304
1304
  }
1305
1305
  u.deactivate();
1306
1306
  }
1307
1307
  };
1308
- o.promise.then(h, (_) => h(null, _ || "unknown"));
1309
- }), It(() => {
1308
+ o.promise.then(h, (v) => h(null, v || "unknown"));
1309
+ }), it(() => {
1310
1310
  for (const l of a.values())
1311
1311
  l.reject(Q);
1312
1312
  }), new Promise((l) => {
@@ -1321,153 +1321,153 @@ function Jr(e, t, n) {
1321
1321
  }
1322
1322
  // @__NO_SIDE_EFFECTS__
1323
1323
  function ei(e) {
1324
- const t = /* @__PURE__ */ it(e);
1325
- return Hn(t), t;
1324
+ const t = /* @__PURE__ */ xt(e);
1325
+ return Dn(t), t;
1326
1326
  }
1327
1327
  // @__NO_SIDE_EFFECTS__
1328
- function mn(e) {
1329
- const t = /* @__PURE__ */ it(e);
1330
- return t.equals = on, t;
1328
+ function Br(e) {
1329
+ const t = /* @__PURE__ */ xt(e);
1330
+ return t.equals = fn, t;
1331
1331
  }
1332
- function Xr(e) {
1332
+ function Vr(e) {
1333
1333
  var t = e.effects;
1334
1334
  if (t !== null) {
1335
1335
  e.effects = null;
1336
1336
  for (var n = 0; n < t.length; n += 1)
1337
- M(
1337
+ x(
1338
1338
  /** @type {Effect} */
1339
1339
  t[n]
1340
1340
  );
1341
1341
  }
1342
1342
  }
1343
1343
  function Rt(e) {
1344
- var t, n = v, r = e.parent;
1345
- if (!ie && r !== null && (r.f & (j | F)) !== 0)
1346
- return Nr(), e.v;
1347
- I(r);
1344
+ var t, n = _, r = e.parent;
1345
+ if (!le && r !== null && (r.f & (B | P)) !== 0)
1346
+ return mr(), e.v;
1347
+ O(r);
1348
1348
  try {
1349
- e.f &= ~we, Xr(e), t = Un(e);
1349
+ e.f &= ~ge, Vr(e), t = qn(e);
1350
1350
  } finally {
1351
- I(n);
1351
+ O(n);
1352
1352
  }
1353
1353
  return t;
1354
1354
  }
1355
- function $n(e) {
1355
+ function yn(e) {
1356
1356
  var t = Rt(e);
1357
- if (!e.equals(t) && (e.wv = qn(), (!p?.is_fork || e.deps === null) && (p !== null ? p.capture(e, t, !0) : e.v = t, e.deps === null))) {
1358
- m(e, T);
1357
+ if (!e.equals(t) && (e.wv = jn(), (!p?.is_fork || e.deps === null) && (p !== null ? p.capture(e, t, !0) : e.v = t, e.deps === null))) {
1358
+ w(e, E);
1359
1359
  return;
1360
1360
  }
1361
- ie || (V !== null ? (Ct() || p?.is_fork) && V.set(e, t) : kt(e));
1361
+ le || (j !== null ? (Mt() || p?.is_fork) && j.set(e, t) : kt(e));
1362
1362
  }
1363
- function Zr(e) {
1363
+ function Ur(e) {
1364
1364
  if (e.effects !== null)
1365
1365
  for (const t of e.effects)
1366
- (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Q), t.teardown = ge, t.ac = null, Be(t, 0), Pt(t));
1366
+ (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Q), t.teardown = _e, t.ac = null, Fe(t, 0), Ct(t));
1367
1367
  }
1368
- function En(e) {
1368
+ function mn(e) {
1369
1369
  if (e.effects !== null)
1370
1370
  for (const t of e.effects)
1371
- t.teardown && me(t);
1371
+ t.teardown && ye(t);
1372
1372
  }
1373
1373
  let pt = /* @__PURE__ */ new Set();
1374
- const be = /* @__PURE__ */ new Map();
1375
- let Tn = !1;
1376
- function Ge(e, t) {
1374
+ const pe = /* @__PURE__ */ new Map();
1375
+ let wn = !1;
1376
+ function Be(e, t) {
1377
1377
  var n = {
1378
1378
  f: 0,
1379
1379
  // TODO ideally we could skip this altogether, but it causes type errors
1380
1380
  v: e,
1381
1381
  reactions: null,
1382
- equals: fn,
1382
+ equals: sn,
1383
1383
  rv: 0,
1384
1384
  wv: 0
1385
1385
  };
1386
1386
  return n;
1387
1387
  }
1388
1388
  // @__NO_SIDE_EFFECTS__
1389
- function le(e, t) {
1390
- const n = Ge(e);
1391
- return Hn(n), n;
1389
+ function se(e, t) {
1390
+ const n = Be(e);
1391
+ return Dn(n), n;
1392
1392
  }
1393
1393
  // @__NO_SIDE_EFFECTS__
1394
- function Sn(e, t = !1, n = !0) {
1395
- const r = Ge(e);
1396
- return t || (r.equals = on), Ue && n && $ !== null && $.l !== null && ($.l.s ??= []).push(r), r;
1394
+ function $n(e, t = !1, n = !0) {
1395
+ const r = Be(e);
1396
+ return t || (r.equals = fn), tt && n && $ !== null && $.l !== null && ($.l.s ??= []).push(r), r;
1397
1397
  }
1398
- function q(e, t, n = !1) {
1399
- g !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1398
+ function G(e, t, n = !1) {
1399
+ b !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1400
1400
  // to ensure we error if state is set inside an inspect effect
1401
- (!U || (g.f & ht) !== 0) && Ye() && (g.f & (x | W | He | ht)) !== 0 && (H === null || !Ne.call(H, e)) && Ar();
1402
- let r = n ? Ae(t) : t;
1403
- return nt(e, r, Je);
1401
+ (!H || (b.f & ht) !== 0) && qe() && (b.f & (A | z | De | ht)) !== 0 && (L === null || !ke.call(L, e)) && gr();
1402
+ let r = n ? Oe(t) : t;
1403
+ return Ze(e, r, Ge);
1404
1404
  }
1405
- function nt(e, t, n = null) {
1405
+ function Ze(e, t, n = null) {
1406
1406
  if (!e.equals(t)) {
1407
- be.set(e, ie ? t : e.v);
1408
- var r = re.ensure();
1409
- if (r.capture(e, t), (e.f & x) !== 0) {
1407
+ pe.set(e, le ? t : e.v);
1408
+ var r = te.ensure();
1409
+ if (r.capture(e, t), (e.f & A) !== 0) {
1410
1410
  const s = (
1411
1411
  /** @type {Derived} */
1412
1412
  e
1413
1413
  );
1414
- (e.f & N) !== 0 && Rt(s), V === null && kt(s);
1414
+ (e.f & S) !== 0 && Rt(s), j === null && kt(s);
1415
1415
  }
1416
- e.wv = qn(), An(e, N, n), Ye() && v !== null && (v.f & T) !== 0 && (v.f & (J | ne)) === 0 && (L === null ? os([e]) : L.push(e)), !r.is_fork && pt.size > 0 && !Tn && Qr();
1416
+ e.wv = jn(), En(e, S, n), qe() && _ !== null && (_.f & E) !== 0 && (_.f & (J | ee)) === 0 && (C === null ? ns([e]) : C.push(e)), !r.is_fork && pt.size > 0 && !wn && Yr();
1417
1417
  }
1418
1418
  return t;
1419
1419
  }
1420
- function Qr() {
1421
- Tn = !1;
1420
+ function Yr() {
1421
+ wn = !1;
1422
1422
  for (const e of pt)
1423
- (e.f & T) !== 0 && m(e, Y), Me(e) && me(e);
1423
+ (e.f & E) !== 0 && w(e, V), Re(e) && ye(e);
1424
1424
  pt.clear();
1425
1425
  }
1426
1426
  function ti(e, t = 1) {
1427
- var n = O(e), r = t === 1 ? n++ : n--;
1428
- return q(e, n), r;
1427
+ var n = q(e), r = t === 1 ? n++ : n--;
1428
+ return G(e, n), r;
1429
1429
  }
1430
- function De(e) {
1431
- q(e, e.v + 1);
1430
+ function Ie(e) {
1431
+ G(e, e.v + 1);
1432
1432
  }
1433
- function An(e, t, n) {
1433
+ function En(e, t, n) {
1434
1434
  var r = e.reactions;
1435
1435
  if (r !== null)
1436
- for (var s = Ye(), i = r.length, f = 0; f < i; f++) {
1436
+ for (var s = qe(), i = r.length, f = 0; f < i; f++) {
1437
1437
  var a = r[f], l = a.f;
1438
- if (!(!s && a === v)) {
1439
- var o = (l & N) === 0;
1440
- if (o && m(a, t), (l & x) !== 0) {
1438
+ if (!(!s && a === _)) {
1439
+ var o = (l & S) === 0;
1440
+ if (o && w(a, t), (l & A) !== 0) {
1441
1441
  var u = (
1442
1442
  /** @type {Derived} */
1443
1443
  a
1444
1444
  );
1445
- V?.delete(u), (l & we) === 0 && (l & D && (v === null || (v.f & et) === 0) && (a.f |= we), An(u, Y, n));
1445
+ j?.delete(u), (l & ge) === 0 && (l & I && (_ === null || (_.f & Je) === 0) && (a.f |= ge), En(u, V, n));
1446
1446
  } else if (o) {
1447
1447
  var c = (
1448
1448
  /** @type {Effect} */
1449
1449
  a
1450
1450
  );
1451
- (l & W) !== 0 && X !== null && X.add(c), n !== null ? n.push(c) : xt(c);
1451
+ (l & z) !== 0 && X !== null && X.add(c), n !== null ? n.push(c) : Nt(c);
1452
1452
  }
1453
1453
  }
1454
1454
  }
1455
1455
  }
1456
- function Ae(e) {
1457
- if (typeof e != "object" || e === null || te in e)
1456
+ function Oe(e) {
1457
+ if (typeof e != "object" || e === null || ve in e)
1458
1458
  return e;
1459
1459
  const t = Tt(e);
1460
- if (t !== cr && t !== hr)
1460
+ if (t !== rr && t !== sr)
1461
1461
  return e;
1462
- var n = /* @__PURE__ */ new Map(), r = lr(e), s = /* @__PURE__ */ le(0), i = ye, f = (a) => {
1463
- if (ye === i)
1462
+ var n = /* @__PURE__ */ new Map(), r = er(e), s = /* @__PURE__ */ se(0), i = be, f = (a) => {
1463
+ if (be === i)
1464
1464
  return a();
1465
- var l = g, o = ye;
1466
- C(null), zt(i);
1465
+ var l = b, o = be;
1466
+ R(null), Ut(i);
1467
1467
  var u = a();
1468
- return C(l), zt(o), u;
1468
+ return R(l), Ut(o), u;
1469
1469
  };
1470
- return r && n.set("length", /* @__PURE__ */ le(
1470
+ return r && n.set("length", /* @__PURE__ */ se(
1471
1471
  /** @type {any[]} */
1472
1472
  e.length
1473
1473
  )), new Proxy(
@@ -1475,34 +1475,34 @@ function Ae(e) {
1475
1475
  e,
1476
1476
  {
1477
1477
  defineProperty(a, l, o) {
1478
- (!("value" in o) || o.configurable === !1 || o.enumerable === !1 || o.writable === !1) && Tr();
1478
+ (!("value" in o) || o.configurable === !1 || o.enumerable === !1 || o.writable === !1) && pr();
1479
1479
  var u = n.get(l);
1480
1480
  return u === void 0 ? f(() => {
1481
- var c = /* @__PURE__ */ le(o.value);
1481
+ var c = /* @__PURE__ */ se(o.value);
1482
1482
  return n.set(l, c), c;
1483
- }) : q(u, o.value, !0), !0;
1483
+ }) : G(u, o.value, !0), !0;
1484
1484
  },
1485
1485
  deleteProperty(a, l) {
1486
1486
  var o = n.get(l);
1487
1487
  if (o === void 0) {
1488
1488
  if (l in a) {
1489
- const u = f(() => /* @__PURE__ */ le(A));
1490
- n.set(l, u), De(s);
1489
+ const u = f(() => /* @__PURE__ */ se(T));
1490
+ n.set(l, u), Ie(s);
1491
1491
  }
1492
1492
  } else
1493
- q(o, A), De(s);
1493
+ G(o, T), Ie(s);
1494
1494
  return !0;
1495
1495
  },
1496
1496
  get(a, l, o) {
1497
- if (l === te)
1497
+ if (l === ve)
1498
1498
  return e;
1499
1499
  var u = n.get(l), c = l in a;
1500
- if (u === void 0 && (!c || ee(a, l)?.writable) && (u = f(() => {
1501
- var _ = Ae(c ? a[l] : A), d = /* @__PURE__ */ le(_);
1500
+ if (u === void 0 && (!c || Te(a, l)?.writable) && (u = f(() => {
1501
+ var v = Oe(c ? a[l] : T), d = /* @__PURE__ */ se(v);
1502
1502
  return d;
1503
1503
  }), n.set(l, u)), u !== void 0) {
1504
- var h = O(u);
1505
- return h === A ? void 0 : h;
1504
+ var h = q(u);
1505
+ return h === T ? void 0 : h;
1506
1506
  }
1507
1507
  return Reflect.get(a, l, o);
1508
1508
  },
@@ -1510,10 +1510,10 @@ function Ae(e) {
1510
1510
  var o = Reflect.getOwnPropertyDescriptor(a, l);
1511
1511
  if (o && "value" in o) {
1512
1512
  var u = n.get(l);
1513
- u && (o.value = O(u));
1513
+ u && (o.value = q(u));
1514
1514
  } else if (o === void 0) {
1515
1515
  var c = n.get(l), h = c?.v;
1516
- if (c !== void 0 && h !== A)
1516
+ if (c !== void 0 && h !== T)
1517
1517
  return {
1518
1518
  enumerable: !0,
1519
1519
  configurable: !0,
@@ -1524,16 +1524,16 @@ function Ae(e) {
1524
1524
  return o;
1525
1525
  },
1526
1526
  has(a, l) {
1527
- if (l === te)
1527
+ if (l === ve)
1528
1528
  return !0;
1529
- var o = n.get(l), u = o !== void 0 && o.v !== A || Reflect.has(a, l);
1530
- if (o !== void 0 || v !== null && (!u || ee(a, l)?.writable)) {
1529
+ var o = n.get(l), u = o !== void 0 && o.v !== T || Reflect.has(a, l);
1530
+ if (o !== void 0 || _ !== null && (!u || Te(a, l)?.writable)) {
1531
1531
  o === void 0 && (o = f(() => {
1532
- var h = u ? Ae(a[l]) : A, _ = /* @__PURE__ */ le(h);
1533
- return _;
1532
+ var h = u ? Oe(a[l]) : T, v = /* @__PURE__ */ se(h);
1533
+ return v;
1534
1534
  }), n.set(l, o));
1535
- var c = O(o);
1536
- if (c === A)
1535
+ var c = q(o);
1536
+ if (c === T)
1537
1537
  return !1;
1538
1538
  }
1539
1539
  return u;
@@ -1541,163 +1541,163 @@ function Ae(e) {
1541
1541
  set(a, l, o, u) {
1542
1542
  var c = n.get(l), h = l in a;
1543
1543
  if (r && l === "length")
1544
- for (var _ = o; _ < /** @type {Source<number>} */
1545
- c.v; _ += 1) {
1546
- var d = n.get(_ + "");
1547
- d !== void 0 ? q(d, A) : _ in a && (d = f(() => /* @__PURE__ */ le(A)), n.set(_ + "", d));
1544
+ for (var v = o; v < /** @type {Source<number>} */
1545
+ c.v; v += 1) {
1546
+ var d = n.get(v + "");
1547
+ d !== void 0 ? G(d, T) : v in a && (d = f(() => /* @__PURE__ */ se(T)), n.set(v + "", d));
1548
1548
  }
1549
1549
  if (c === void 0)
1550
- (!h || ee(a, l)?.writable) && (c = f(() => /* @__PURE__ */ le(void 0)), q(c, Ae(o)), n.set(l, c));
1550
+ (!h || Te(a, l)?.writable) && (c = f(() => /* @__PURE__ */ se(void 0)), G(c, Oe(o)), n.set(l, c));
1551
1551
  else {
1552
- h = c.v !== A;
1553
- var w = f(() => Ae(o));
1554
- q(c, w);
1552
+ h = c.v !== T;
1553
+ var m = f(() => Oe(o));
1554
+ G(c, m);
1555
1555
  }
1556
- var E = Reflect.getOwnPropertyDescriptor(a, l);
1557
- if (E?.set && E.set.call(u, o), !h) {
1556
+ var k = Reflect.getOwnPropertyDescriptor(a, l);
1557
+ if (k?.set && k.set.call(u, o), !h) {
1558
1558
  if (r && typeof l == "string") {
1559
- var k = (
1559
+ var F = (
1560
1560
  /** @type {Source<number>} */
1561
1561
  n.get("length")
1562
- ), fe = Number(l);
1563
- Number.isInteger(fe) && fe >= k.v && q(k, fe + 1);
1562
+ ), we = Number(l);
1563
+ Number.isInteger(we) && we >= F.v && G(F, we + 1);
1564
1564
  }
1565
- De(s);
1565
+ Ie(s);
1566
1566
  }
1567
1567
  return !0;
1568
1568
  },
1569
1569
  ownKeys(a) {
1570
- O(s);
1570
+ q(s);
1571
1571
  var l = Reflect.ownKeys(a).filter((c) => {
1572
1572
  var h = n.get(c);
1573
- return h === void 0 || h.v !== A;
1573
+ return h === void 0 || h.v !== T;
1574
1574
  });
1575
1575
  for (var [o, u] of n)
1576
- u.v !== A && !(o in a) && l.push(o);
1576
+ u.v !== T && !(o in a) && l.push(o);
1577
1577
  return l;
1578
1578
  },
1579
1579
  setPrototypeOf() {
1580
- Sr();
1580
+ br();
1581
1581
  }
1582
1582
  }
1583
1583
  );
1584
1584
  }
1585
- function Vt(e) {
1585
+ function Ht(e) {
1586
1586
  try {
1587
- if (e !== null && typeof e == "object" && te in e)
1588
- return e[te];
1587
+ if (e !== null && typeof e == "object" && ve in e)
1588
+ return e[ve];
1589
1589
  } catch {
1590
1590
  }
1591
1591
  return e;
1592
1592
  }
1593
- function ni(e, t) {
1594
- return Object.is(Vt(e), Vt(t));
1593
+ function Gr(e, t) {
1594
+ return Object.is(Ht(e), Ht(t));
1595
1595
  }
1596
- var Ut, kn, Nn, xn;
1597
- function gt() {
1598
- if (Ut === void 0) {
1599
- Ut = window, kn = /Firefox/.test(navigator.userAgent);
1596
+ var qt, Tn, Sn, kn;
1597
+ function bt() {
1598
+ if (qt === void 0) {
1599
+ qt = window, Tn = /Firefox/.test(navigator.userAgent);
1600
1600
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
1601
- Nn = ee(t, "firstChild").get, xn = ee(t, "nextSibling").get, jt(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), jt(n) && (n.__t = void 0);
1601
+ Sn = Te(t, "firstChild").get, kn = Te(t, "nextSibling").get, Lt(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Lt(n) && (n.__t = void 0);
1602
1602
  }
1603
1603
  }
1604
- function G(e = "") {
1604
+ function U(e = "") {
1605
1605
  return document.createTextNode(e);
1606
1606
  }
1607
1607
  // @__NO_SIDE_EFFECTS__
1608
- function se(e) {
1608
+ function ne(e) {
1609
1609
  return (
1610
1610
  /** @type {TemplateNode | null} */
1611
- Nn.call(e)
1611
+ Sn.call(e)
1612
1612
  );
1613
1613
  }
1614
1614
  // @__NO_SIDE_EFFECTS__
1615
- function ae(e) {
1615
+ function re(e) {
1616
1616
  return (
1617
1617
  /** @type {TemplateNode | null} */
1618
- xn.call(e)
1618
+ kn.call(e)
1619
1619
  );
1620
1620
  }
1621
- function ri(e, t) {
1622
- if (!b)
1623
- return /* @__PURE__ */ se(e);
1624
- var n = /* @__PURE__ */ se(y);
1621
+ function ni(e, t) {
1622
+ if (!g)
1623
+ return /* @__PURE__ */ ne(e);
1624
+ var n = /* @__PURE__ */ ne(y);
1625
1625
  if (n === null)
1626
- n = y.appendChild(G());
1627
- else if (t && n.nodeType !== Ve) {
1628
- var r = G();
1629
- return n?.before(r), B(r), r;
1626
+ n = y.appendChild(U());
1627
+ else if (t && n.nodeType !== He) {
1628
+ var r = U();
1629
+ return n?.before(r), D(r), r;
1630
1630
  }
1631
- return t && at(
1631
+ return t && nt(
1632
1632
  /** @type {Text} */
1633
1633
  n
1634
- ), B(n), n;
1634
+ ), D(n), n;
1635
1635
  }
1636
- function si(e, t = !1) {
1637
- if (!b) {
1638
- var n = /* @__PURE__ */ se(e);
1639
- return n instanceof Comment && n.data === "" ? /* @__PURE__ */ ae(n) : n;
1636
+ function ri(e, t = !1) {
1637
+ if (!g) {
1638
+ var n = /* @__PURE__ */ ne(e);
1639
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ re(n) : n;
1640
1640
  }
1641
1641
  if (t) {
1642
- if (y?.nodeType !== Ve) {
1643
- var r = G();
1644
- return y?.before(r), B(r), r;
1642
+ if (y?.nodeType !== He) {
1643
+ var r = U();
1644
+ return y?.before(r), D(r), r;
1645
1645
  }
1646
- at(
1646
+ nt(
1647
1647
  /** @type {Text} */
1648
1648
  y
1649
1649
  );
1650
1650
  }
1651
1651
  return y;
1652
1652
  }
1653
- function ii(e, t = 1, n = !1) {
1654
- let r = b ? y : e;
1653
+ function si(e, t = 1, n = !1) {
1654
+ let r = g ? y : e;
1655
1655
  for (var s; t--; )
1656
1656
  s = r, r = /** @type {TemplateNode} */
1657
- /* @__PURE__ */ ae(r);
1658
- if (!b)
1657
+ /* @__PURE__ */ re(r);
1658
+ if (!g)
1659
1659
  return r;
1660
1660
  if (n) {
1661
- if (r?.nodeType !== Ve) {
1662
- var i = G();
1663
- return r === null ? s?.after(i) : r.before(i), B(i), i;
1661
+ if (r?.nodeType !== He) {
1662
+ var i = U();
1663
+ return r === null ? s?.after(i) : r.before(i), D(i), i;
1664
1664
  }
1665
- at(
1665
+ nt(
1666
1666
  /** @type {Text} */
1667
1667
  r
1668
1668
  );
1669
1669
  }
1670
- return B(r), r;
1670
+ return D(r), r;
1671
1671
  }
1672
- function Rn(e) {
1672
+ function An(e) {
1673
1673
  e.textContent = "";
1674
1674
  }
1675
- function es() {
1675
+ function zr() {
1676
1676
  return !1;
1677
1677
  }
1678
1678
  function Ot(e, t, n) {
1679
1679
  return (
1680
1680
  /** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
1681
- document.createElementNS(t ?? Qt, e, void 0)
1681
+ document.createElementNS(t ?? Xt, e, void 0)
1682
1682
  );
1683
1683
  }
1684
- function at(e) {
1684
+ function nt(e) {
1685
1685
  if (
1686
1686
  /** @type {string} */
1687
1687
  e.nodeValue.length < 65536
1688
1688
  )
1689
1689
  return;
1690
1690
  let t = e.nextSibling;
1691
- for (; t !== null && t.nodeType === Ve; )
1691
+ for (; t !== null && t.nodeType === He; )
1692
1692
  t.remove(), e.nodeValue += /** @type {string} */
1693
1693
  t.nodeValue, t = e.nextSibling;
1694
1694
  }
1695
- function ai(e) {
1696
- b && /* @__PURE__ */ se(e) !== null && Rn(e);
1695
+ function ii(e) {
1696
+ g && /* @__PURE__ */ ne(e) !== null && An(e);
1697
1697
  }
1698
- let Yt = !1;
1699
- function On() {
1700
- Yt || (Yt = !0, document.addEventListener(
1698
+ let Bt = !1;
1699
+ function Nn() {
1700
+ Bt || (Bt = !0, document.addEventListener(
1701
1701
  "reset",
1702
1702
  (e) => {
1703
1703
  Promise.resolve().then(() => {
@@ -1714,37 +1714,37 @@ function On() {
1714
1714
  { capture: !0 }
1715
1715
  ));
1716
1716
  }
1717
- function ft(e) {
1718
- var t = g, n = v;
1719
- C(null), I(null);
1717
+ function rt(e) {
1718
+ var t = b, n = _;
1719
+ R(null), O(null);
1720
1720
  try {
1721
1721
  return e();
1722
1722
  } finally {
1723
- C(t), I(n);
1723
+ R(t), O(n);
1724
1724
  }
1725
1725
  }
1726
- function Mt(e, t, n, r = n) {
1727
- e.addEventListener(t, () => ft(n));
1726
+ function st(e, t, n, r = n) {
1727
+ e.addEventListener(t, () => rt(n));
1728
1728
  const s = e.__on_r;
1729
1729
  s ? e.__on_r = () => {
1730
1730
  s(), r(!0);
1731
- } : e.__on_r = () => r(!0), On();
1731
+ } : e.__on_r = () => r(!0), Nn();
1732
1732
  }
1733
- function Mn(e) {
1734
- v === null && (g === null && wr(), yr()), ie && br();
1733
+ function xn(e) {
1734
+ _ === null && (b === null && dr(), hr()), le && cr();
1735
1735
  }
1736
- function ts(e, t) {
1736
+ function Wr(e, t) {
1737
1737
  var n = t.last;
1738
1738
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1739
1739
  }
1740
- function z(e, t) {
1741
- var n = v;
1742
- n !== null && (n.f & F) !== 0 && (e |= F);
1740
+ function Y(e, t) {
1741
+ var n = _;
1742
+ n !== null && (n.f & P) !== 0 && (e |= P);
1743
1743
  var r = {
1744
1744
  ctx: $,
1745
1745
  deps: null,
1746
1746
  nodes: null,
1747
- f: e | N | D,
1747
+ f: e | S | I,
1748
1748
  first: null,
1749
1749
  fn: t,
1750
1750
  last: null,
@@ -1758,39 +1758,39 @@ function z(e, t) {
1758
1758
  };
1759
1759
  p?.register_created_effect(r);
1760
1760
  var s = r;
1761
- if ((e & xe) !== 0)
1762
- Se !== null ? Se.push(r) : re.ensure().schedule(r);
1761
+ if ((e & Ae) !== 0)
1762
+ Ee !== null ? Ee.push(r) : te.ensure().schedule(r);
1763
1763
  else if (t !== null) {
1764
1764
  try {
1765
- me(r);
1765
+ ye(r);
1766
1766
  } catch (f) {
1767
- throw M(r), f;
1767
+ throw x(r), f;
1768
1768
  }
1769
1769
  s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
1770
- (s.f & $e) === 0 && (s = s.first, (e & W) !== 0 && (e & Re) !== 0 && s !== null && (s.f |= Re));
1770
+ (s.f & me) === 0 && (s = s.first, (e & z) !== 0 && (e & Ne) !== 0 && s !== null && (s.f |= Ne));
1771
1771
  }
1772
- if (s !== null && (s.parent = n, n !== null && ts(s, n), g !== null && (g.f & x) !== 0 && (e & ne) === 0)) {
1772
+ if (s !== null && (s.parent = n, n !== null && Wr(s, n), b !== null && (b.f & A) !== 0 && (e & ee) === 0)) {
1773
1773
  var i = (
1774
1774
  /** @type {Derived} */
1775
- g
1775
+ b
1776
1776
  );
1777
1777
  (i.effects ??= []).push(s);
1778
1778
  }
1779
1779
  return r;
1780
1780
  }
1781
- function Ct() {
1782
- return g !== null && !U;
1781
+ function Mt() {
1782
+ return b !== null && !H;
1783
1783
  }
1784
- function It(e) {
1785
- const t = z(qe, null);
1786
- return m(t, T), t.teardown = e, t;
1784
+ function it(e) {
1785
+ const t = Y(je, null);
1786
+ return w(t, E), t.teardown = e, t;
1787
1787
  }
1788
- function fi(e) {
1789
- Mn();
1788
+ function ai(e) {
1789
+ xn();
1790
1790
  var t = (
1791
1791
  /** @type {Effect} */
1792
- v.f
1793
- ), n = !g && (t & J) !== 0 && (t & de) === 0;
1792
+ _.f
1793
+ ), n = !b && (t & J) !== 0 && (t & oe) === 0;
1794
1794
  if (n) {
1795
1795
  var r = (
1796
1796
  /** @type {ComponentContext} */
@@ -1798,143 +1798,143 @@ function fi(e) {
1798
1798
  );
1799
1799
  (r.e ??= []).push(e);
1800
1800
  } else
1801
- return Cn(e);
1801
+ return Rn(e);
1802
1802
  }
1803
- function Cn(e) {
1804
- return z(xe | rn, e);
1803
+ function Rn(e) {
1804
+ return Y(Ae | tn, e);
1805
1805
  }
1806
- function li(e) {
1807
- return Mn(), z(qe | rn, e);
1806
+ function fi(e) {
1807
+ return xn(), Y(je | tn, e);
1808
1808
  }
1809
- function ns(e) {
1810
- re.ensure();
1811
- const t = z(ne | $e, e);
1809
+ function Kr(e) {
1810
+ te.ensure();
1811
+ const t = Y(ee | me, e);
1812
1812
  return () => {
1813
- M(t);
1813
+ x(t);
1814
1814
  };
1815
1815
  }
1816
- function rs(e) {
1817
- re.ensure();
1818
- const t = z(ne | $e, e);
1816
+ function Jr(e) {
1817
+ te.ensure();
1818
+ const t = Y(ee | me, e);
1819
1819
  return (n = {}) => new Promise((r) => {
1820
- n.outro ? Fe(t, () => {
1821
- M(t), r(void 0);
1822
- }) : (M(t), r(void 0));
1820
+ n.outro ? Pe(t, () => {
1821
+ x(t), r(void 0);
1822
+ }) : (x(t), r(void 0));
1823
1823
  });
1824
1824
  }
1825
- function ss(e) {
1826
- return z(xe, e);
1825
+ function Xr(e) {
1826
+ return Y(Ae, e);
1827
1827
  }
1828
- function oi(e, t) {
1828
+ function li(e, t) {
1829
1829
  var n = (
1830
1830
  /** @type {ComponentContextLegacy} */
1831
1831
  $
1832
1832
  ), r = { effect: null, ran: !1, deps: e };
1833
- n.l.$.push(r), r.effect = Ee(() => {
1833
+ n.l.$.push(r), r.effect = ue(() => {
1834
1834
  if (e(), !r.ran) {
1835
1835
  r.ran = !0;
1836
1836
  var s = (
1837
1837
  /** @type {Effect} */
1838
- v
1838
+ _
1839
1839
  );
1840
1840
  try {
1841
- I(s.parent), Ce(t);
1841
+ O(s.parent), Ve(t);
1842
1842
  } finally {
1843
- I(s);
1843
+ O(s);
1844
1844
  }
1845
1845
  }
1846
1846
  });
1847
1847
  }
1848
- function ui() {
1848
+ function oi() {
1849
1849
  var e = (
1850
1850
  /** @type {ComponentContextLegacy} */
1851
1851
  $
1852
1852
  );
1853
- Ee(() => {
1853
+ ue(() => {
1854
1854
  for (var t of e.l.$) {
1855
1855
  t.deps();
1856
1856
  var n = t.effect;
1857
- (n.f & T) !== 0 && n.deps !== null && m(n, Y), Me(n) && me(n), t.ran = !1;
1857
+ (n.f & E) !== 0 && n.deps !== null && w(n, V), Re(n) && ye(n), t.ran = !1;
1858
1858
  }
1859
1859
  });
1860
1860
  }
1861
- function is(e) {
1862
- return z(He | $e, e);
1861
+ function Zr(e) {
1862
+ return Y(De | me, e);
1863
1863
  }
1864
- function Ee(e, t = 0) {
1865
- return z(qe | t, e);
1864
+ function ue(e, t = 0) {
1865
+ return Y(je | t, e);
1866
1866
  }
1867
- function ci(e, t = [], n = [], r = []) {
1868
- Wr(r, t, n, (s) => {
1869
- z(qe, () => e(...s.map(O)));
1867
+ function ui(e, t = [], n = [], r = []) {
1868
+ jr(r, t, n, (s) => {
1869
+ Y(je, () => e(...s.map(q)));
1870
1870
  });
1871
1871
  }
1872
- function In(e, t = 0) {
1873
- var n = z(W | t, e);
1872
+ function On(e, t = 0) {
1873
+ var n = Y(z | t, e);
1874
1874
  return n;
1875
1875
  }
1876
1876
  function Z(e) {
1877
- return z(J | $e, e);
1877
+ return Y(J | me, e);
1878
1878
  }
1879
- function Pn(e) {
1879
+ function Mn(e) {
1880
1880
  var t = e.teardown;
1881
1881
  if (t !== null) {
1882
- const n = ie, r = g;
1883
- Gt(!0), C(null);
1882
+ const n = le, r = b;
1883
+ Vt(!0), R(null);
1884
1884
  try {
1885
1885
  t.call(null);
1886
1886
  } finally {
1887
- Gt(n), C(r);
1887
+ Vt(n), R(r);
1888
1888
  }
1889
1889
  }
1890
1890
  }
1891
- function Pt(e, t = !1) {
1891
+ function Ct(e, t = !1) {
1892
1892
  var n = e.first;
1893
1893
  for (e.first = e.last = null; n !== null; ) {
1894
1894
  const s = n.ac;
1895
- s !== null && ft(() => {
1895
+ s !== null && rt(() => {
1896
1896
  s.abort(Q);
1897
1897
  });
1898
1898
  var r = n.next;
1899
- (n.f & ne) !== 0 ? n.parent = null : M(n, t), n = r;
1899
+ (n.f & ee) !== 0 ? n.parent = null : x(n, t), n = r;
1900
1900
  }
1901
1901
  }
1902
- function as(e) {
1902
+ function Qr(e) {
1903
1903
  for (var t = e.first; t !== null; ) {
1904
1904
  var n = t.next;
1905
- (t.f & J) === 0 && M(t), t = n;
1905
+ (t.f & J) === 0 && x(t), t = n;
1906
1906
  }
1907
1907
  }
1908
- function M(e, t = !0) {
1908
+ function x(e, t = !0) {
1909
1909
  var n = !1;
1910
- (t || (e.f & _r) !== 0) && e.nodes !== null && e.nodes.end !== null && (fs(
1910
+ (t || (e.f & ar) !== 0) && e.nodes !== null && e.nodes.end !== null && (es(
1911
1911
  e.nodes.start,
1912
1912
  /** @type {TemplateNode} */
1913
1913
  e.nodes.end
1914
- ), n = !0), m(e, Ht), Pt(e, t && !n), Be(e, 0);
1914
+ ), n = !0), w(e, Dt), Ct(e, t && !n), Fe(e, 0);
1915
1915
  var r = e.nodes && e.nodes.t;
1916
1916
  if (r !== null)
1917
1917
  for (const i of r)
1918
1918
  i.stop();
1919
- Pn(e), e.f ^= Ht, e.f |= j;
1919
+ Mn(e), e.f ^= Dt, e.f |= B;
1920
1920
  var s = e.parent;
1921
- s !== null && s.first !== null && Ln(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1921
+ s !== null && s.first !== null && Cn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1922
1922
  }
1923
- function fs(e, t) {
1923
+ function es(e, t) {
1924
1924
  for (; e !== null; ) {
1925
- var n = e === t ? null : /* @__PURE__ */ ae(e);
1925
+ var n = e === t ? null : /* @__PURE__ */ re(e);
1926
1926
  e.remove(), e = n;
1927
1927
  }
1928
1928
  }
1929
- function Ln(e) {
1929
+ function Cn(e) {
1930
1930
  var t = e.parent, n = e.prev, r = e.next;
1931
1931
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1932
1932
  }
1933
- function Fe(e, t, n = !0) {
1933
+ function Pe(e, t, n = !0) {
1934
1934
  var r = [];
1935
- Dn(e, r, !0);
1935
+ In(e, r, !0);
1936
1936
  var s = () => {
1937
- n && M(e), t && t();
1937
+ n && x(e), t && t();
1938
1938
  }, i = r.length;
1939
1939
  if (i > 0) {
1940
1940
  var f = () => --i || s();
@@ -1943,35 +1943,35 @@ function Fe(e, t, n = !0) {
1943
1943
  } else
1944
1944
  s();
1945
1945
  }
1946
- function Dn(e, t, n) {
1947
- if ((e.f & F) === 0) {
1948
- e.f ^= F;
1946
+ function In(e, t, n) {
1947
+ if ((e.f & P) === 0) {
1948
+ e.f ^= P;
1949
1949
  var r = e.nodes && e.nodes.t;
1950
1950
  if (r !== null)
1951
1951
  for (const a of r)
1952
1952
  (a.is_global || n) && t.push(a);
1953
1953
  for (var s = e.first; s !== null; ) {
1954
1954
  var i = s.next;
1955
- if ((s.f & ne) === 0) {
1956
- var f = (s.f & Re) !== 0 || // If this is a branch effect without a block effect parent,
1955
+ if ((s.f & ee) === 0) {
1956
+ var f = (s.f & Ne) !== 0 || // If this is a branch effect without a block effect parent,
1957
1957
  // it means the parent block effect was pruned. In that case,
1958
1958
  // transparency information was transferred to the branch effect.
1959
- (s.f & J) !== 0 && (e.f & W) !== 0;
1960
- Dn(s, t, f ? n : !1);
1959
+ (s.f & J) !== 0 && (e.f & z) !== 0;
1960
+ In(s, t, f ? n : !1);
1961
1961
  }
1962
1962
  s = i;
1963
1963
  }
1964
1964
  }
1965
1965
  }
1966
- function ls(e) {
1967
- Fn(e, !0);
1966
+ function ts(e) {
1967
+ Pn(e, !0);
1968
1968
  }
1969
- function Fn(e, t) {
1970
- if ((e.f & F) !== 0) {
1971
- e.f ^= F, (e.f & T) === 0 && (m(e, N), re.ensure().schedule(e));
1969
+ function Pn(e, t) {
1970
+ if ((e.f & P) !== 0) {
1971
+ e.f ^= P, (e.f & E) === 0 && (w(e, S), te.ensure().schedule(e));
1972
1972
  for (var n = e.first; n !== null; ) {
1973
- var r = n.next, s = (n.f & Re) !== 0 || (n.f & J) !== 0;
1974
- Fn(n, s ? t : !1), n = r;
1973
+ var r = n.next, s = (n.f & Ne) !== 0 || (n.f & J) !== 0;
1974
+ Pn(n, s ? t : !1), n = r;
1975
1975
  }
1976
1976
  var i = e.nodes && e.nodes.t;
1977
1977
  if (i !== null)
@@ -1979,265 +1979,265 @@ function Fn(e, t) {
1979
1979
  (f.is_global || t) && f.in();
1980
1980
  }
1981
1981
  }
1982
- function jn(e, t) {
1982
+ function Ln(e, t) {
1983
1983
  if (e.nodes)
1984
1984
  for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
1985
- var s = n === r ? null : /* @__PURE__ */ ae(n);
1985
+ var s = n === r ? null : /* @__PURE__ */ re(n);
1986
1986
  t.append(n), n = s;
1987
1987
  }
1988
1988
  }
1989
- let Xe = !1, ie = !1;
1990
- function Gt(e) {
1991
- ie = e;
1989
+ let ze = !1, le = !1;
1990
+ function Vt(e) {
1991
+ le = e;
1992
1992
  }
1993
- let g = null, U = !1;
1994
- function C(e) {
1995
- g = e;
1993
+ let b = null, H = !1;
1994
+ function R(e) {
1995
+ b = e;
1996
1996
  }
1997
- let v = null;
1998
- function I(e) {
1999
- v = e;
1997
+ let _ = null;
1998
+ function O(e) {
1999
+ _ = e;
2000
2000
  }
2001
- let H = null;
2002
- function Hn(e) {
2003
- g !== null && (H === null ? H = [e] : H.push(e));
2001
+ let L = null;
2002
+ function Dn(e) {
2003
+ b !== null && (L === null ? L = [e] : L.push(e));
2004
2004
  }
2005
- let R = null, P = 0, L = null;
2006
- function os(e) {
2007
- L = e;
2005
+ let N = null, M = 0, C = null;
2006
+ function ns(e) {
2007
+ C = e;
2008
2008
  }
2009
- let Bn = 1, pe = 0, ye = pe;
2010
- function zt(e) {
2011
- ye = e;
2009
+ let Fn = 1, de = 0, be = de;
2010
+ function Ut(e) {
2011
+ be = e;
2012
2012
  }
2013
- function qn() {
2014
- return ++Bn;
2013
+ function jn() {
2014
+ return ++Fn;
2015
2015
  }
2016
- function Me(e) {
2016
+ function Re(e) {
2017
2017
  var t = e.f;
2018
- if ((t & N) !== 0)
2018
+ if ((t & S) !== 0)
2019
2019
  return !0;
2020
- if (t & x && (e.f &= ~we), (t & Y) !== 0) {
2020
+ if (t & A && (e.f &= ~ge), (t & V) !== 0) {
2021
2021
  for (var n = (
2022
2022
  /** @type {Value[]} */
2023
2023
  e.deps
2024
2024
  ), r = n.length, s = 0; s < r; s++) {
2025
2025
  var i = n[s];
2026
- if (Me(
2026
+ if (Re(
2027
2027
  /** @type {Derived} */
2028
2028
  i
2029
- ) && $n(
2029
+ ) && yn(
2030
2030
  /** @type {Derived} */
2031
2031
  i
2032
2032
  ), i.wv > e.wv)
2033
2033
  return !0;
2034
2034
  }
2035
- (t & D) !== 0 && // During time traveling we don't want to reset the status so that
2035
+ (t & I) !== 0 && // During time traveling we don't want to reset the status so that
2036
2036
  // traversal of the graph in the other batches still happens
2037
- V === null && m(e, T);
2037
+ j === null && w(e, E);
2038
2038
  }
2039
2039
  return !1;
2040
2040
  }
2041
- function Vn(e, t, n = !0) {
2041
+ function Hn(e, t, n = !0) {
2042
2042
  var r = e.reactions;
2043
- if (r !== null && !(H !== null && Ne.call(H, e)))
2043
+ if (r !== null && !(L !== null && ke.call(L, e)))
2044
2044
  for (var s = 0; s < r.length; s++) {
2045
2045
  var i = r[s];
2046
- (i.f & x) !== 0 ? Vn(
2046
+ (i.f & A) !== 0 ? Hn(
2047
2047
  /** @type {Derived} */
2048
2048
  i,
2049
2049
  t,
2050
2050
  !1
2051
- ) : t === i && (n ? m(i, N) : (i.f & T) !== 0 && m(i, Y), xt(
2051
+ ) : t === i && (n ? w(i, S) : (i.f & E) !== 0 && w(i, V), Nt(
2052
2052
  /** @type {Effect} */
2053
2053
  i
2054
2054
  ));
2055
2055
  }
2056
2056
  }
2057
- function Un(e) {
2058
- var t = R, n = P, r = L, s = g, i = H, f = $, a = U, l = ye, o = e.f;
2059
- R = /** @type {null | Value[]} */
2060
- null, P = 0, L = null, g = (o & (J | ne)) === 0 ? e : null, H = null, Oe(e.ctx), U = !1, ye = ++pe, e.ac !== null && (ft(() => {
2057
+ function qn(e) {
2058
+ var t = N, n = M, r = C, s = b, i = L, f = $, a = H, l = be, o = e.f;
2059
+ N = /** @type {null | Value[]} */
2060
+ null, M = 0, C = null, b = (o & (J | ee)) === 0 ? e : null, L = null, xe(e.ctx), H = !1, be = ++de, e.ac !== null && (rt(() => {
2061
2061
  e.ac.abort(Q);
2062
2062
  }), e.ac = null);
2063
2063
  try {
2064
- e.f |= et;
2064
+ e.f |= Je;
2065
2065
  var u = (
2066
2066
  /** @type {Function} */
2067
2067
  e.fn
2068
2068
  ), c = u();
2069
- e.f |= de;
2070
- var h = e.deps, _ = p?.is_fork;
2071
- if (R !== null) {
2069
+ e.f |= oe;
2070
+ var h = e.deps, v = p?.is_fork;
2071
+ if (N !== null) {
2072
2072
  var d;
2073
- if (_ || Be(e, P), h !== null && P > 0)
2074
- for (h.length = P + R.length, d = 0; d < R.length; d++)
2075
- h[P + d] = R[d];
2073
+ if (v || Fe(e, M), h !== null && M > 0)
2074
+ for (h.length = M + N.length, d = 0; d < N.length; d++)
2075
+ h[M + d] = N[d];
2076
2076
  else
2077
- e.deps = h = R;
2078
- if (Ct() && (e.f & D) !== 0)
2079
- for (d = P; d < h.length; d++)
2077
+ e.deps = h = N;
2078
+ if (Mt() && (e.f & I) !== 0)
2079
+ for (d = M; d < h.length; d++)
2080
2080
  (h[d].reactions ??= []).push(e);
2081
- } else !_ && h !== null && P < h.length && (Be(e, P), h.length = P);
2082
- if (Ye() && L !== null && !U && h !== null && (e.f & (x | Y | N)) === 0)
2081
+ } else !v && h !== null && M < h.length && (Fe(e, M), h.length = M);
2082
+ if (qe() && C !== null && !H && h !== null && (e.f & (A | V | S)) === 0)
2083
2083
  for (d = 0; d < /** @type {Source[]} */
2084
- L.length; d++)
2085
- Vn(
2086
- L[d],
2084
+ C.length; d++)
2085
+ Hn(
2086
+ C[d],
2087
2087
  /** @type {Effect} */
2088
2088
  e
2089
2089
  );
2090
2090
  if (s !== null && s !== e) {
2091
- if (pe++, s.deps !== null)
2092
- for (let w = 0; w < n; w += 1)
2093
- s.deps[w].rv = pe;
2091
+ if (de++, s.deps !== null)
2092
+ for (let m = 0; m < n; m += 1)
2093
+ s.deps[m].rv = de;
2094
2094
  if (t !== null)
2095
- for (const w of t)
2096
- w.rv = pe;
2097
- L !== null && (r === null ? r = L : r.push(.../** @type {Source[]} */
2098
- L));
2099
- }
2100
- return (e.f & ce) !== 0 && (e.f ^= ce), c;
2101
- } catch (w) {
2102
- return hn(w);
2095
+ for (const m of t)
2096
+ m.rv = de;
2097
+ C !== null && (r === null ? r = C : r.push(.../** @type {Source[]} */
2098
+ C));
2099
+ }
2100
+ return (e.f & fe) !== 0 && (e.f ^= fe), c;
2101
+ } catch (m) {
2102
+ return un(m);
2103
2103
  } finally {
2104
- e.f ^= et, R = t, P = n, L = r, g = s, H = i, Oe(f), U = a, ye = l;
2104
+ e.f ^= Je, N = t, M = n, C = r, b = s, L = i, xe(f), H = a, be = l;
2105
2105
  }
2106
2106
  }
2107
- function us(e, t) {
2107
+ function rs(e, t) {
2108
2108
  let n = t.reactions;
2109
2109
  if (n !== null) {
2110
- var r = or.call(n, e);
2110
+ var r = tr.call(n, e);
2111
2111
  if (r !== -1) {
2112
2112
  var s = n.length - 1;
2113
2113
  s === 0 ? n = t.reactions = null : (n[r] = n[s], n.pop());
2114
2114
  }
2115
2115
  }
2116
- if (n === null && (t.f & x) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
2116
+ if (n === null && (t.f & A) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
2117
2117
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
2118
2118
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
2119
- (R === null || !Ne.call(R, t))) {
2119
+ (N === null || !ke.call(N, t))) {
2120
2120
  var i = (
2121
2121
  /** @type {Derived} */
2122
2122
  t
2123
2123
  );
2124
- (i.f & D) !== 0 && (i.f ^= D, i.f &= ~we), i.v !== A && kt(i), Zr(i), Be(i, 0);
2124
+ (i.f & I) !== 0 && (i.f ^= I, i.f &= ~ge), i.v !== T && kt(i), Ur(i), Fe(i, 0);
2125
2125
  }
2126
2126
  }
2127
- function Be(e, t) {
2127
+ function Fe(e, t) {
2128
2128
  var n = e.deps;
2129
2129
  if (n !== null)
2130
2130
  for (var r = t; r < n.length; r++)
2131
- us(e, n[r]);
2131
+ rs(e, n[r]);
2132
2132
  }
2133
- function me(e) {
2133
+ function ye(e) {
2134
2134
  var t = e.f;
2135
- if ((t & j) === 0) {
2136
- m(e, T);
2137
- var n = v, r = Xe;
2138
- v = e, Xe = !0;
2135
+ if ((t & B) === 0) {
2136
+ w(e, E);
2137
+ var n = _, r = ze;
2138
+ _ = e, ze = !0;
2139
2139
  try {
2140
- (t & (W | nn)) !== 0 ? as(e) : Pt(e), Pn(e);
2141
- var s = Un(e);
2142
- e.teardown = typeof s == "function" ? s : null, e.wv = Bn;
2140
+ (t & (z | en)) !== 0 ? Qr(e) : Ct(e), Mn(e);
2141
+ var s = qn(e);
2142
+ e.teardown = typeof s == "function" ? s : null, e.wv = Fn;
2143
2143
  var i;
2144
- fr && Mr && (e.f & N) !== 0 && e.deps;
2144
+ Qn && Tr && (e.f & S) !== 0 && e.deps;
2145
2145
  } finally {
2146
- Xe = r, v = n;
2146
+ ze = r, _ = n;
2147
2147
  }
2148
2148
  }
2149
2149
  }
2150
- async function cs() {
2151
- await Promise.resolve(), pn();
2150
+ async function ss() {
2151
+ await Promise.resolve(), _n();
2152
2152
  }
2153
- function O(e) {
2154
- var t = e.f, n = (t & x) !== 0;
2155
- if (g !== null && !U) {
2156
- var r = v !== null && (v.f & j) !== 0;
2157
- if (!r && (H === null || !Ne.call(H, e))) {
2158
- var s = g.deps;
2159
- if ((g.f & et) !== 0)
2160
- e.rv < pe && (e.rv = pe, R === null && s !== null && s[P] === e ? P++ : R === null ? R = [e] : R.push(e));
2153
+ function q(e) {
2154
+ var t = e.f, n = (t & A) !== 0;
2155
+ if (b !== null && !H) {
2156
+ var r = _ !== null && (_.f & B) !== 0;
2157
+ if (!r && (L === null || !ke.call(L, e))) {
2158
+ var s = b.deps;
2159
+ if ((b.f & Je) !== 0)
2160
+ e.rv < de && (e.rv = de, N === null && s !== null && s[M] === e ? M++ : N === null ? N = [e] : N.push(e));
2161
2161
  else {
2162
- (g.deps ??= []).push(e);
2162
+ (b.deps ??= []).push(e);
2163
2163
  var i = e.reactions;
2164
- i === null ? e.reactions = [g] : Ne.call(i, g) || i.push(g);
2164
+ i === null ? e.reactions = [b] : ke.call(i, b) || i.push(b);
2165
2165
  }
2166
2166
  }
2167
2167
  }
2168
- if (ie && be.has(e))
2169
- return be.get(e);
2168
+ if (le && pe.has(e))
2169
+ return pe.get(e);
2170
2170
  if (n) {
2171
2171
  var f = (
2172
2172
  /** @type {Derived} */
2173
2173
  e
2174
2174
  );
2175
- if (ie) {
2175
+ if (le) {
2176
2176
  var a = f.v;
2177
- return ((f.f & T) === 0 && f.reactions !== null || Gn(f)) && (a = Rt(f)), be.set(f, a), a;
2177
+ return ((f.f & E) === 0 && f.reactions !== null || Vn(f)) && (a = Rt(f)), pe.set(f, a), a;
2178
2178
  }
2179
- var l = (f.f & D) === 0 && !U && g !== null && (Xe || (g.f & D) !== 0), o = (f.f & de) === 0;
2180
- Me(f) && (l && (f.f |= D), $n(f)), l && !o && (En(f), Yn(f));
2179
+ var l = (f.f & I) === 0 && !H && b !== null && (ze || (b.f & I) !== 0), o = (f.f & oe) === 0;
2180
+ Re(f) && (l && (f.f |= I), yn(f)), l && !o && (mn(f), Bn(f));
2181
2181
  }
2182
- if (V?.has(e))
2183
- return V.get(e);
2184
- if ((e.f & ce) !== 0)
2182
+ if (j?.has(e))
2183
+ return j.get(e);
2184
+ if ((e.f & fe) !== 0)
2185
2185
  throw e.v;
2186
2186
  return e.v;
2187
2187
  }
2188
- function Yn(e) {
2189
- if (e.f |= D, e.deps !== null)
2188
+ function Bn(e) {
2189
+ if (e.f |= I, e.deps !== null)
2190
2190
  for (const t of e.deps)
2191
- (t.reactions ??= []).push(e), (t.f & x) !== 0 && (t.f & D) === 0 && (En(
2191
+ (t.reactions ??= []).push(e), (t.f & A) !== 0 && (t.f & I) === 0 && (mn(
2192
2192
  /** @type {Derived} */
2193
2193
  t
2194
- ), Yn(
2194
+ ), Bn(
2195
2195
  /** @type {Derived} */
2196
2196
  t
2197
2197
  ));
2198
2198
  }
2199
- function Gn(e) {
2200
- if (e.v === A) return !0;
2199
+ function Vn(e) {
2200
+ if (e.v === T) return !0;
2201
2201
  if (e.deps === null) return !1;
2202
2202
  for (const t of e.deps)
2203
- if (be.has(t) || (t.f & x) !== 0 && Gn(
2203
+ if (pe.has(t) || (t.f & A) !== 0 && Vn(
2204
2204
  /** @type {Derived} */
2205
2205
  t
2206
2206
  ))
2207
2207
  return !0;
2208
2208
  return !1;
2209
2209
  }
2210
- function Ce(e) {
2211
- var t = U;
2210
+ function Ve(e) {
2211
+ var t = H;
2212
2212
  try {
2213
- return U = !0, e();
2213
+ return H = !0, e();
2214
2214
  } finally {
2215
- U = t;
2215
+ H = t;
2216
2216
  }
2217
2217
  }
2218
- function hi(e) {
2218
+ function ci(e) {
2219
2219
  if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
2220
- if (te in e)
2221
- bt(e);
2220
+ if (ve in e)
2221
+ gt(e);
2222
2222
  else if (!Array.isArray(e))
2223
2223
  for (let t in e) {
2224
2224
  const n = e[t];
2225
- typeof n == "object" && n && te in n && bt(n);
2225
+ typeof n == "object" && n && ve in n && gt(n);
2226
2226
  }
2227
2227
  }
2228
2228
  }
2229
- function bt(e, t = /* @__PURE__ */ new Set()) {
2229
+ function gt(e, t = /* @__PURE__ */ new Set()) {
2230
2230
  if (typeof e == "object" && e !== null && // We don't want to traverse DOM elements
2231
2231
  !(e instanceof EventTarget) && !t.has(e)) {
2232
2232
  t.add(e), e instanceof Date && e.getTime();
2233
2233
  for (let r in e)
2234
2234
  try {
2235
- bt(e[r], t);
2235
+ gt(e[r], t);
2236
2236
  } catch {
2237
2237
  }
2238
2238
  const n = Tt(e);
2239
2239
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
2240
- const r = en(n);
2240
+ const r = Zt(n);
2241
2241
  for (let s in r) {
2242
2242
  const i = r[s].get;
2243
2243
  if (i)
@@ -2249,44 +2249,44 @@ function bt(e, t = /* @__PURE__ */ new Set()) {
2249
2249
  }
2250
2250
  }
2251
2251
  }
2252
- const Pe = /* @__PURE__ */ Symbol("events"), zn = /* @__PURE__ */ new Set(), yt = /* @__PURE__ */ new Set();
2253
- function di(e) {
2254
- if (!b) return;
2252
+ const Me = /* @__PURE__ */ Symbol("events"), Un = /* @__PURE__ */ new Set(), yt = /* @__PURE__ */ new Set();
2253
+ function hi(e) {
2254
+ if (!g) return;
2255
2255
  e.removeAttribute("onload"), e.removeAttribute("onerror");
2256
2256
  const t = e.__e;
2257
2257
  t !== void 0 && (e.__e = void 0, queueMicrotask(() => {
2258
2258
  e.isConnected && e.dispatchEvent(t);
2259
2259
  }));
2260
2260
  }
2261
- function hs(e, t, n, r = {}) {
2261
+ function is(e, t, n, r = {}) {
2262
2262
  function s(i) {
2263
- if (r.capture || wt.call(t, i), !i.cancelBubble)
2264
- return ft(() => n?.call(this, i));
2263
+ if (r.capture || mt.call(t, i), !i.cancelBubble)
2264
+ return rt(() => n?.call(this, i));
2265
2265
  }
2266
- return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? he(() => {
2266
+ return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? W(() => {
2267
2267
  t.addEventListener(e, s, r);
2268
2268
  }) : t.addEventListener(e, s, r), s;
2269
2269
  }
2270
- function _i(e, t, n, r, s) {
2271
- var i = { capture: r, passive: s }, f = hs(e, t, n, i);
2270
+ function di(e, t, n, r, s) {
2271
+ var i = { capture: r, passive: s }, f = is(e, t, n, i);
2272
2272
  (t === document.body || // @ts-ignore
2273
2273
  t === window || // @ts-ignore
2274
2274
  t === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
2275
- t instanceof HTMLMediaElement) && It(() => {
2275
+ t instanceof HTMLMediaElement) && it(() => {
2276
2276
  t.removeEventListener(e, f, i);
2277
2277
  });
2278
2278
  }
2279
- function vi(e, t, n) {
2280
- (t[Pe] ??= {})[e] = n;
2279
+ function _i(e, t, n) {
2280
+ (t[Me] ??= {})[e] = n;
2281
2281
  }
2282
- function pi(e) {
2282
+ function vi(e) {
2283
2283
  for (var t = 0; t < e.length; t++)
2284
- zn.add(e[t]);
2284
+ Un.add(e[t]);
2285
2285
  for (var n of yt)
2286
2286
  n(e);
2287
2287
  }
2288
- let Wt = null;
2289
- function wt(e) {
2288
+ let Yt = null;
2289
+ function mt(e) {
2290
2290
  var t = this, n = (
2291
2291
  /** @type {Node} */
2292
2292
  t.ownerDocument
@@ -2294,13 +2294,13 @@ function wt(e) {
2294
2294
  /** @type {null | Element} */
2295
2295
  s[0] || e.target
2296
2296
  );
2297
- Wt = e;
2298
- var f = 0, a = Wt === e && e[Pe];
2297
+ Yt = e;
2298
+ var f = 0, a = Yt === e && e[Me];
2299
2299
  if (a) {
2300
2300
  var l = s.indexOf(a);
2301
2301
  if (l !== -1 && (t === document || t === /** @type {any} */
2302
2302
  window)) {
2303
- e[Pe] = t;
2303
+ e[Me] = t;
2304
2304
  return;
2305
2305
  }
2306
2306
  var o = s.indexOf(t);
@@ -2310,83 +2310,83 @@ function wt(e) {
2310
2310
  }
2311
2311
  if (i = /** @type {Element} */
2312
2312
  s[f] || e.target, i !== t) {
2313
- je(e, "currentTarget", {
2313
+ Le(e, "currentTarget", {
2314
2314
  configurable: !0,
2315
2315
  get() {
2316
2316
  return i || n;
2317
2317
  }
2318
2318
  });
2319
- var u = g, c = v;
2320
- C(null), I(null);
2319
+ var u = b, c = _;
2320
+ R(null), O(null);
2321
2321
  try {
2322
- for (var h, _ = []; i !== null; ) {
2322
+ for (var h, v = []; i !== null; ) {
2323
2323
  var d = i.assignedSlot || i.parentNode || /** @type {any} */
2324
2324
  i.host || null;
2325
2325
  try {
2326
- var w = i[Pe]?.[r];
2327
- w != null && (!/** @type {any} */
2326
+ var m = i[Me]?.[r];
2327
+ m != null && (!/** @type {any} */
2328
2328
  i.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
2329
2329
  // -> the target could not have been disabled because it emits the event in the first place
2330
- e.target === i) && w.call(i, e);
2331
- } catch (E) {
2332
- h ? _.push(E) : h = E;
2330
+ e.target === i) && m.call(i, e);
2331
+ } catch (k) {
2332
+ h ? v.push(k) : h = k;
2333
2333
  }
2334
2334
  if (e.cancelBubble || d === t || d === null)
2335
2335
  break;
2336
2336
  i = d;
2337
2337
  }
2338
2338
  if (h) {
2339
- for (let E of _)
2339
+ for (let k of v)
2340
2340
  queueMicrotask(() => {
2341
- throw E;
2341
+ throw k;
2342
2342
  });
2343
2343
  throw h;
2344
2344
  }
2345
2345
  } finally {
2346
- e[Pe] = t, delete e.currentTarget, C(u), I(c);
2346
+ e[Me] = t, delete e.currentTarget, R(u), O(c);
2347
2347
  }
2348
2348
  }
2349
2349
  }
2350
- const ds = (
2350
+ const as = (
2351
2351
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
2352
2352
  globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
2353
2353
  /** @param {string} html */
2354
2354
  createHTML: (e) => e
2355
2355
  })
2356
2356
  );
2357
- function _s(e) {
2357
+ function fs(e) {
2358
2358
  return (
2359
2359
  /** @type {string} */
2360
- ds?.createHTML(e) ?? e
2360
+ as?.createHTML(e) ?? e
2361
2361
  );
2362
2362
  }
2363
- function Wn(e) {
2363
+ function Yn(e) {
2364
2364
  var t = Ot("template");
2365
- return t.innerHTML = _s(e.replaceAll("<!>", "<!---->")), t.content;
2365
+ return t.innerHTML = fs(e.replaceAll("<!>", "<!---->")), t.content;
2366
2366
  }
2367
2367
  function K(e, t) {
2368
2368
  var n = (
2369
2369
  /** @type {Effect} */
2370
- v
2370
+ _
2371
2371
  );
2372
2372
  n.nodes === null && (n.nodes = { start: e, end: t, a: null, t: null });
2373
2373
  }
2374
2374
  // @__NO_SIDE_EFFECTS__
2375
- function gi(e, t) {
2376
- var n = (t & ir) !== 0, r = (t & ar) !== 0, s, i = !e.startsWith("<!>");
2375
+ function pi(e, t) {
2376
+ var n = (t & Xn) !== 0, r = (t & Zn) !== 0, s, i = !e.startsWith("<!>");
2377
2377
  return () => {
2378
- if (b)
2378
+ if (g)
2379
2379
  return K(y, null), y;
2380
- s === void 0 && (s = Wn(i ? e : "<!>" + e), n || (s = /** @type {TemplateNode} */
2381
- /* @__PURE__ */ se(s)));
2380
+ s === void 0 && (s = Yn(i ? e : "<!>" + e), n || (s = /** @type {TemplateNode} */
2381
+ /* @__PURE__ */ ne(s)));
2382
2382
  var f = (
2383
2383
  /** @type {TemplateNode} */
2384
- r || kn ? document.importNode(s, !0) : s.cloneNode(!0)
2384
+ r || Tn ? document.importNode(s, !0) : s.cloneNode(!0)
2385
2385
  );
2386
2386
  if (n) {
2387
2387
  var a = (
2388
2388
  /** @type {TemplateNode} */
2389
- /* @__PURE__ */ se(f)
2389
+ /* @__PURE__ */ ne(f)
2390
2390
  ), l = (
2391
2391
  /** @type {TemplateNode} */
2392
2392
  f.lastChild
@@ -2398,21 +2398,21 @@ function gi(e, t) {
2398
2398
  };
2399
2399
  }
2400
2400
  // @__NO_SIDE_EFFECTS__
2401
- function vs(e, t, n = "svg") {
2401
+ function ls(e, t, n = "svg") {
2402
2402
  var r = !e.startsWith("<!>"), s = `<${n}>${r ? e : "<!>" + e}</${n}>`, i;
2403
2403
  return () => {
2404
- if (b)
2404
+ if (g)
2405
2405
  return K(y, null), y;
2406
2406
  if (!i) {
2407
2407
  var f = (
2408
2408
  /** @type {DocumentFragment} */
2409
- Wn(s)
2409
+ Yn(s)
2410
2410
  ), a = (
2411
2411
  /** @type {Element} */
2412
- /* @__PURE__ */ se(f)
2412
+ /* @__PURE__ */ ne(f)
2413
2413
  );
2414
2414
  i = /** @type {Element} */
2415
- /* @__PURE__ */ se(a);
2415
+ /* @__PURE__ */ ne(a);
2416
2416
  }
2417
2417
  var l = (
2418
2418
  /** @type {TemplateNode} */
@@ -2423,32 +2423,32 @@ function vs(e, t, n = "svg") {
2423
2423
  }
2424
2424
  // @__NO_SIDE_EFFECTS__
2425
2425
  function bi(e, t) {
2426
- return /* @__PURE__ */ vs(e, t, "svg");
2426
+ return /* @__PURE__ */ ls(e, t, "svg");
2427
2427
  }
2428
- function yi(e = "") {
2429
- if (!b) {
2430
- var t = G(e + "");
2428
+ function gi(e = "") {
2429
+ if (!g) {
2430
+ var t = U(e + "");
2431
2431
  return K(t, t), t;
2432
2432
  }
2433
2433
  var n = y;
2434
- return n.nodeType !== Ve ? (n.before(n = G()), B(n)) : at(
2434
+ return n.nodeType !== He ? (n.before(n = U()), D(n)) : nt(
2435
2435
  /** @type {Text} */
2436
2436
  n
2437
2437
  ), K(n, n), n;
2438
2438
  }
2439
- function wi() {
2440
- if (b)
2439
+ function yi() {
2440
+ if (g)
2441
2441
  return K(y, null), y;
2442
- var e = document.createDocumentFragment(), t = document.createComment(""), n = G();
2442
+ var e = document.createDocumentFragment(), t = document.createComment(""), n = U();
2443
2443
  return e.append(t, n), K(t, n), e;
2444
2444
  }
2445
- function ps(e, t) {
2446
- if (b) {
2445
+ function os(e, t) {
2446
+ if (g) {
2447
2447
  var n = (
2448
2448
  /** @type {Effect & { nodes: EffectNodes }} */
2449
- v
2449
+ _
2450
2450
  );
2451
- ((n.f & de) === 0 || n.nodes.end === null) && (n.nodes.end = y), At();
2451
+ ((n.f & oe) === 0 || n.nodes.end === null) && (n.nodes.end = y), St();
2452
2452
  return;
2453
2453
  }
2454
2454
  e !== null && e.before(
@@ -2456,110 +2456,110 @@ function ps(e, t) {
2456
2456
  t
2457
2457
  );
2458
2458
  }
2459
- const gs = ["touchstart", "touchmove"];
2460
- function bs(e) {
2461
- return gs.includes(e);
2459
+ const us = ["touchstart", "touchmove"];
2460
+ function cs(e) {
2461
+ return us.includes(e);
2462
2462
  }
2463
- let Kt = !0;
2463
+ let Gt = !0;
2464
2464
  function mi(e, t) {
2465
2465
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
2466
2466
  n !== (e.__t ??= e.nodeValue) && (e.__t = n, e.nodeValue = `${n}`);
2467
2467
  }
2468
- function Kn(e, t) {
2469
- return Jn(e, t);
2468
+ function Gn(e, t) {
2469
+ return zn(e, t);
2470
2470
  }
2471
- function ys(e, t) {
2472
- gt(), t.intro = t.intro ?? !1;
2473
- const n = t.target, r = b, s = y;
2471
+ function hs(e, t) {
2472
+ bt(), t.intro = t.intro ?? !1;
2473
+ const n = t.target, r = g, s = y;
2474
2474
  try {
2475
- for (var i = /* @__PURE__ */ se(n); i && (i.nodeType !== rt || /** @type {Comment} */
2476
- i.data !== Jt); )
2477
- i = /* @__PURE__ */ ae(i);
2475
+ for (var i = /* @__PURE__ */ ne(n); i && (i.nodeType !== Qe || /** @type {Comment} */
2476
+ i.data !== Wt); )
2477
+ i = /* @__PURE__ */ re(i);
2478
2478
  if (!i)
2479
- throw ke;
2480
- oe(!0), B(
2479
+ throw Se;
2480
+ ie(!0), D(
2481
2481
  /** @type {Comment} */
2482
2482
  i
2483
2483
  );
2484
- const f = Jn(e, { ...t, anchor: i });
2485
- return oe(!1), /** @type {Exports} */
2484
+ const f = zn(e, { ...t, anchor: i });
2485
+ return ie(!1), /** @type {Exports} */
2486
2486
  f;
2487
2487
  } catch (f) {
2488
2488
  if (f instanceof Error && f.message.split(`
2489
2489
  `).some((a) => a.startsWith("https://svelte.dev/e/")))
2490
2490
  throw f;
2491
- return f !== ke && console.warn("Failed to hydrate: ", f), t.recover === !1 && $r(), gt(), Rn(n), oe(!1), Kn(e, t);
2491
+ return f !== Se && console.warn("Failed to hydrate: ", f), t.recover === !1 && vr(), bt(), An(n), ie(!1), Gn(e, t);
2492
2492
  } finally {
2493
- oe(r), B(s);
2493
+ ie(r), D(s);
2494
2494
  }
2495
2495
  }
2496
- const Ke = /* @__PURE__ */ new Map();
2497
- function Jn(e, { target: t, anchor: n, props: r = {}, events: s, context: i, intro: f = !0, transformError: a }) {
2498
- gt();
2499
- var l = void 0, o = rs(() => {
2500
- var u = n ?? t.appendChild(G());
2501
- Gr(
2496
+ const Ye = /* @__PURE__ */ new Map();
2497
+ function zn(e, { target: t, anchor: n, props: r = {}, events: s, context: i, intro: f = !0, transformError: a }) {
2498
+ bt();
2499
+ var l = void 0, o = Jr(() => {
2500
+ var u = n ?? t.appendChild(U());
2501
+ Dr(
2502
2502
  /** @type {TemplateNode} */
2503
2503
  u,
2504
2504
  {
2505
2505
  pending: () => {
2506
2506
  }
2507
2507
  },
2508
- (_) => {
2509
- Cr({});
2508
+ (v) => {
2509
+ Sr({});
2510
2510
  var d = (
2511
2511
  /** @type {ComponentContext} */
2512
2512
  $
2513
2513
  );
2514
- if (i && (d.c = i), s && (r.$$events = s), b && K(
2514
+ if (i && (d.c = i), s && (r.$$events = s), g && K(
2515
2515
  /** @type {TemplateNode} */
2516
- _,
2516
+ v,
2517
2517
  null
2518
- ), Kt = f, l = e(_, r) || {}, Kt = !0, b && (v.nodes.end = y, y === null || y.nodeType !== rt || /** @type {Comment} */
2519
- y.data !== Zt))
2520
- throw st(), ke;
2521
- Ir();
2518
+ ), Gt = f, l = e(v, r) || {}, Gt = !0, g && (_.nodes.end = y, y === null || y.nodeType !== Qe || /** @type {Comment} */
2519
+ y.data !== Jt))
2520
+ throw et(), Se;
2521
+ kr();
2522
2522
  },
2523
2523
  a
2524
2524
  );
2525
- var c = /* @__PURE__ */ new Set(), h = (_) => {
2526
- for (var d = 0; d < _.length; d++) {
2527
- var w = _[d];
2528
- if (!c.has(w)) {
2529
- c.add(w);
2530
- var E = bs(w);
2531
- for (const S of [t, document]) {
2532
- var k = Ke.get(S);
2533
- k === void 0 && (k = /* @__PURE__ */ new Map(), Ke.set(S, k));
2534
- var fe = k.get(w);
2535
- fe === void 0 ? (S.addEventListener(w, wt, { passive: E }), k.set(w, 1)) : k.set(w, fe + 1);
2525
+ var c = /* @__PURE__ */ new Set(), h = (v) => {
2526
+ for (var d = 0; d < v.length; d++) {
2527
+ var m = v[d];
2528
+ if (!c.has(m)) {
2529
+ c.add(m);
2530
+ var k = cs(m);
2531
+ for (const at of [t, document]) {
2532
+ var F = Ye.get(at);
2533
+ F === void 0 && (F = /* @__PURE__ */ new Map(), Ye.set(at, F));
2534
+ var we = F.get(m);
2535
+ we === void 0 ? (at.addEventListener(m, mt, { passive: k }), F.set(m, 1)) : F.set(m, we + 1);
2536
2536
  }
2537
2537
  }
2538
2538
  }
2539
2539
  };
2540
- return h(ur(zn)), yt.add(h), () => {
2541
- for (var _ of c)
2542
- for (const E of [t, document]) {
2540
+ return h(nr(Un)), yt.add(h), () => {
2541
+ for (var v of c)
2542
+ for (const k of [t, document]) {
2543
2543
  var d = (
2544
2544
  /** @type {Map<string, number>} */
2545
- Ke.get(E)
2546
- ), w = (
2545
+ Ye.get(k)
2546
+ ), m = (
2547
2547
  /** @type {number} */
2548
- d.get(_)
2548
+ d.get(v)
2549
2549
  );
2550
- --w == 0 ? (E.removeEventListener(_, wt), d.delete(_), d.size === 0 && Ke.delete(E)) : d.set(_, w);
2550
+ --m == 0 ? (k.removeEventListener(v, mt), d.delete(v), d.size === 0 && Ye.delete(k)) : d.set(v, m);
2551
2551
  }
2552
2552
  yt.delete(h), u !== n && u.parentNode?.removeChild(u);
2553
2553
  };
2554
2554
  });
2555
- return mt.set(l, o), l;
2555
+ return wt.set(l, o), l;
2556
2556
  }
2557
- let mt = /* @__PURE__ */ new WeakMap();
2558
- function ws(e, t) {
2559
- const n = mt.get(e);
2560
- return n ? (mt.delete(e), n(t)) : Promise.resolve();
2557
+ let wt = /* @__PURE__ */ new WeakMap();
2558
+ function ds(e, t) {
2559
+ const n = wt.get(e);
2560
+ return n ? (wt.delete(e), n(t)) : Promise.resolve();
2561
2561
  }
2562
- class ms {
2562
+ class _s {
2563
2563
  /** @type {TemplateNode} */
2564
2564
  anchor;
2565
2565
  /** @type {Map<Batch, Key>} */
@@ -2612,7 +2612,7 @@ class ms {
2612
2612
  this.#e.get(t)
2613
2613
  ), r = this.#r.get(n);
2614
2614
  if (r)
2615
- ls(r), this.#i.delete(n);
2615
+ ts(r), this.#i.delete(n);
2616
2616
  else {
2617
2617
  var s = this.#t.get(n);
2618
2618
  s && (this.#r.set(n, s.effect), this.#t.delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), r = s.effect);
@@ -2621,19 +2621,19 @@ class ms {
2621
2621
  if (this.#e.delete(i), i === t)
2622
2622
  break;
2623
2623
  const a = this.#t.get(f);
2624
- a && (M(a.effect), this.#t.delete(f));
2624
+ a && (x(a.effect), this.#t.delete(f));
2625
2625
  }
2626
2626
  for (const [i, f] of this.#r) {
2627
2627
  if (i === n || this.#i.has(i)) continue;
2628
2628
  const a = () => {
2629
2629
  if (Array.from(this.#e.values()).includes(i)) {
2630
2630
  var o = document.createDocumentFragment();
2631
- jn(f, o), o.append(G()), this.#t.set(i, { effect: f, fragment: o });
2631
+ Ln(f, o), o.append(U()), this.#t.set(i, { effect: f, fragment: o });
2632
2632
  } else
2633
- M(f);
2633
+ x(f);
2634
2634
  this.#i.delete(i), this.#r.delete(i);
2635
2635
  };
2636
- this.#s || !r ? (this.#i.add(i), Fe(f, a, !1)) : a();
2636
+ this.#s || !r ? (this.#i.add(i), Pe(f, a, !1)) : a();
2637
2637
  }
2638
2638
  }
2639
2639
  };
@@ -2644,7 +2644,7 @@ class ms {
2644
2644
  this.#e.delete(t);
2645
2645
  const n = Array.from(this.#e.values());
2646
2646
  for (const [r, s] of this.#t)
2647
- n.includes(r) || (M(s.effect), this.#t.delete(r));
2647
+ n.includes(r) || (x(s.effect), this.#t.delete(r));
2648
2648
  };
2649
2649
  /**
2650
2650
  *
@@ -2655,10 +2655,10 @@ class ms {
2655
2655
  var r = (
2656
2656
  /** @type {Batch} */
2657
2657
  p
2658
- ), s = es();
2658
+ ), s = zr();
2659
2659
  if (n && !this.#r.has(t) && !this.#t.has(t))
2660
2660
  if (s) {
2661
- var i = document.createDocumentFragment(), f = G();
2661
+ var i = document.createDocumentFragment(), f = U();
2662
2662
  i.append(f), this.#t.set(t, {
2663
2663
  effect: Z(() => n(f)),
2664
2664
  fragment: i
@@ -2675,36 +2675,36 @@ class ms {
2675
2675
  a === t ? r.unskip_effect(l.effect) : r.skip_effect(l.effect);
2676
2676
  r.oncommit(this.#a), r.ondiscard(this.#n);
2677
2677
  } else
2678
- b && (this.anchor = y), this.#a(r);
2678
+ g && (this.anchor = y), this.#a(r);
2679
2679
  }
2680
2680
  }
2681
- function $i(e, t, n = !1) {
2681
+ function wi(e, t, n = !1) {
2682
2682
  var r;
2683
- b && (r = y, At());
2684
- var s = new ms(e), i = n ? Re : 0;
2683
+ g && (r = y, St());
2684
+ var s = new _s(e), i = n ? Ne : 0;
2685
2685
  function f(a, l) {
2686
- if (b) {
2687
- var o = Or(
2686
+ if (g) {
2687
+ var o = Er(
2688
2688
  /** @type {TemplateNode} */
2689
2689
  r
2690
2690
  );
2691
2691
  if (a !== parseInt(o.substring(1))) {
2692
- var u = an();
2693
- B(u), s.anchor = u, oe(!1), s.ensure(a, l), oe(!0);
2692
+ var u = rn();
2693
+ D(u), s.anchor = u, ie(!1), s.ensure(a, l), ie(!0);
2694
2694
  return;
2695
2695
  }
2696
2696
  }
2697
2697
  s.ensure(a, l);
2698
2698
  }
2699
- In(() => {
2699
+ On(() => {
2700
2700
  var a = !1;
2701
2701
  t((l, o = 0) => {
2702
2702
  a = !0, f(o, l);
2703
2703
  }), a || f(-1, null);
2704
2704
  }, i);
2705
2705
  }
2706
- function Ei(e, t) {
2707
- ss(() => {
2706
+ function $i(e, t) {
2707
+ Xr(() => {
2708
2708
  var n = e.getRootNode(), r = (
2709
2709
  /** @type {ShadowRoot} */
2710
2710
  n.host ? (
@@ -2722,9 +2722,9 @@ function Ei(e, t) {
2722
2722
  }
2723
2723
  });
2724
2724
  }
2725
- const $s = /* @__PURE__ */ Symbol("is custom element"), Es = /* @__PURE__ */ Symbol("is html"), Ts = sn ? "link" : "LINK", Ss = sn ? "progress" : "PROGRESS";
2726
- function Ti(e) {
2727
- if (b) {
2725
+ const vs = /* @__PURE__ */ Symbol("is custom element"), ps = /* @__PURE__ */ Symbol("is html"), bs = nn ? "link" : "LINK", gs = nn ? "progress" : "PROGRESS";
2726
+ function Ei(e) {
2727
+ if (g) {
2728
2728
  var t = !1, n = () => {
2729
2729
  if (!t) {
2730
2730
  if (t = !0, e.hasAttribute("value")) {
@@ -2737,68 +2737,68 @@ function Ti(e) {
2737
2737
  }
2738
2738
  }
2739
2739
  };
2740
- e.__on_r = n, he(n), On();
2740
+ e.__on_r = n, W(n), Nn();
2741
2741
  }
2742
2742
  }
2743
- function Si(e, t) {
2744
- var n = Lt(e);
2743
+ function Ti(e, t) {
2744
+ var n = It(e);
2745
2745
  n.value === (n.value = // treat null and undefined the same for the initial value
2746
2746
  t ?? void 0) || // @ts-expect-error
2747
2747
  // `progress` elements always need their value set when it's `0`
2748
- e.value === t && (t !== 0 || e.nodeName !== Ss) || (e.value = t ?? "");
2748
+ e.value === t && (t !== 0 || e.nodeName !== gs) || (e.value = t ?? "");
2749
2749
  }
2750
- function Ai(e, t) {
2751
- var n = Lt(e);
2750
+ function Si(e, t) {
2751
+ var n = It(e);
2752
2752
  n.checked !== (n.checked = // treat null and undefined the same for the initial value
2753
2753
  t ?? void 0) && (e.checked = t);
2754
2754
  }
2755
2755
  function $t(e, t, n, r) {
2756
- var s = Lt(e);
2757
- b && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Ts) || s[t] !== (s[t] = n) && (t === "loading" && (e[vr] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Xn(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2756
+ var s = It(e);
2757
+ g && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === bs) || s[t] !== (s[t] = n) && (t === "loading" && (e[lr] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && Wn(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2758
2758
  }
2759
2759
  function ki(e, t, n) {
2760
- var r = g, s = v;
2761
- let i = b;
2762
- b && oe(!1), C(null), I(null);
2760
+ var r = b, s = _;
2761
+ let i = g;
2762
+ g && ie(!1), R(null), O(null);
2763
2763
  try {
2764
2764
  // `style` should use `set_attribute` rather than the setter
2765
2765
  t !== "style" && // Don't compute setters for custom elements while they aren't registered yet,
2766
2766
  // because during their upgrade/instantiation they might add more setters.
2767
2767
  // Instead, fall back to a simple "an object, then set as property" heuristic.
2768
2768
  (Et.has(e.getAttribute("is") || e.nodeName) || // customElements may not be available in browser extension contexts
2769
- !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? Xn(e).includes(t) : n && typeof n == "object") ? e[t] = n : $t(e, t, n == null ? n : String(n));
2769
+ !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? Wn(e).includes(t) : n && typeof n == "object") ? e[t] = n : $t(e, t, n == null ? n : String(n));
2770
2770
  } finally {
2771
- C(r), I(s), i && oe(!0);
2771
+ R(r), O(s), i && ie(!0);
2772
2772
  }
2773
2773
  }
2774
- function Lt(e) {
2774
+ function It(e) {
2775
2775
  return (
2776
2776
  /** @type {Record<string | symbol, unknown>} **/
2777
2777
  // @ts-expect-error
2778
2778
  e.__attributes ??= {
2779
- [$s]: e.nodeName.includes("-"),
2780
- [Es]: e.namespaceURI === Qt
2779
+ [vs]: e.nodeName.includes("-"),
2780
+ [ps]: e.namespaceURI === Xt
2781
2781
  }
2782
2782
  );
2783
2783
  }
2784
2784
  var Et = /* @__PURE__ */ new Map();
2785
- function Xn(e) {
2785
+ function Wn(e) {
2786
2786
  var t = e.getAttribute("is") || e.nodeName, n = Et.get(t);
2787
2787
  if (n) return n;
2788
2788
  Et.set(t, n = []);
2789
2789
  for (var r, s = e, i = Element.prototype; i !== s; ) {
2790
- r = en(s);
2790
+ r = Zt(s);
2791
2791
  for (var f in r)
2792
2792
  r[f].set && n.push(f);
2793
2793
  s = Tt(s);
2794
2794
  }
2795
2795
  return n;
2796
2796
  }
2797
- function Ni(e, t, n = t) {
2797
+ function Ai(e, t, n = t) {
2798
2798
  var r = /* @__PURE__ */ new WeakSet();
2799
- Mt(e, "input", async (s) => {
2799
+ st(e, "input", async (s) => {
2800
2800
  var i = s ? e.defaultValue : e.value;
2801
- if (i = ot(e) ? ut(i) : i, n(i), p !== null && r.add(p), await cs(), i !== (i = t())) {
2801
+ if (i = ot(e) ? ut(i) : i, n(i), p !== null && r.add(p), await ss(), i !== (i = t())) {
2802
2802
  var f = e.selectionStart, a = e.selectionEnd, l = e.value.length;
2803
2803
  if (e.value = i ?? "", a !== null) {
2804
2804
  var o = e.value.length;
@@ -2807,9 +2807,9 @@ function Ni(e, t, n = t) {
2807
2807
  }
2808
2808
  }), // If we are hydrating and the value has since changed,
2809
2809
  // then use the updated value from the input instead.
2810
- (b && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
2810
+ (g && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
2811
2811
  // TODO Svelte 6: remove input.value check and set to empty string?
2812
- Ce(t) == null && e.value) && (n(ot(e) ? ut(e.value) : e.value), p !== null && r.add(p)), Ee(() => {
2812
+ Ve(t) == null && e.value) && (n(ot(e) ? ut(e.value) : e.value), p !== null && r.add(p)), ue(() => {
2813
2813
  var s = t();
2814
2814
  if (e === document.activeElement) {
2815
2815
  var i = (
@@ -2822,18 +2822,64 @@ function Ni(e, t, n = t) {
2822
2822
  ot(e) && s === ut(e.value) || e.type === "date" && !s && !e.value || s !== e.value && (e.value = s ?? "");
2823
2823
  });
2824
2824
  }
2825
+ const lt = /* @__PURE__ */ new Set();
2826
+ function Ni(e, t, n, r, s = r) {
2827
+ var i = n.getAttribute("type") === "checkbox", f = e;
2828
+ let a = !1;
2829
+ if (t !== null)
2830
+ for (var l of t)
2831
+ f = f[l] ??= [];
2832
+ f.push(n), st(
2833
+ n,
2834
+ "change",
2835
+ () => {
2836
+ var o = n.__value;
2837
+ i && (o = zt(f, o, n.checked)), s(o);
2838
+ },
2839
+ // TODO better default value handling
2840
+ () => s(i ? [] : null)
2841
+ ), ue(() => {
2842
+ var o = r();
2843
+ if (g && n.defaultChecked !== n.checked) {
2844
+ a = !0;
2845
+ return;
2846
+ }
2847
+ i ? (o = o || [], n.checked = o.includes(n.__value)) : n.checked = Gr(n.__value, o);
2848
+ }), it(() => {
2849
+ var o = f.indexOf(n);
2850
+ o !== -1 && f.splice(o, 1);
2851
+ }), lt.has(f) || (lt.add(f), W(() => {
2852
+ f.sort((o, u) => o.compareDocumentPosition(u) === 4 ? -1 : 1), lt.delete(f);
2853
+ })), W(() => {
2854
+ if (a) {
2855
+ var o;
2856
+ if (i)
2857
+ o = zt(f, o, n.checked);
2858
+ else {
2859
+ var u = f.find((c) => c.checked);
2860
+ o = u?.__value;
2861
+ }
2862
+ s(o);
2863
+ }
2864
+ });
2865
+ }
2825
2866
  function xi(e, t, n = t) {
2826
- Mt(e, "change", (r) => {
2867
+ st(e, "change", (r) => {
2827
2868
  var s = r ? e.defaultChecked : e.checked;
2828
2869
  n(s);
2829
2870
  }), // If we are hydrating and the value has since changed,
2830
2871
  // then use the update value from the input instead.
2831
- (b && e.defaultChecked !== e.checked || // If defaultChecked is set, then checked == defaultChecked
2832
- Ce(t) == null) && n(e.checked), Ee(() => {
2872
+ (g && e.defaultChecked !== e.checked || // If defaultChecked is set, then checked == defaultChecked
2873
+ Ve(t) == null) && n(e.checked), ue(() => {
2833
2874
  var r = t();
2834
2875
  e.checked = !!r;
2835
2876
  });
2836
2877
  }
2878
+ function zt(e, t, n) {
2879
+ for (var r = /* @__PURE__ */ new Set(), s = 0; s < e.length; s += 1)
2880
+ e[s].checked && r.add(e[s].__value);
2881
+ return n || r.delete(t), Array.from(r);
2882
+ }
2837
2883
  function ot(e) {
2838
2884
  var t = e.type;
2839
2885
  return t === "number" || t === "range";
@@ -2842,132 +2888,18 @@ function ut(e) {
2842
2888
  return e === "" ? null : +e;
2843
2889
  }
2844
2890
  function Ri(e, t, n = t) {
2845
- Mt(e, "change", () => {
2891
+ st(e, "change", () => {
2846
2892
  n(e.files);
2847
2893
  }), // If we are hydrating and the value has since changed,
2848
2894
  // then use the updated value from the input instead.
2849
- b && e.files && n(e.files), Ee(() => {
2895
+ g && e.files && n(e.files), ue(() => {
2850
2896
  e.files = t();
2851
2897
  });
2852
2898
  }
2853
- const As = {
2854
- get(e, t) {
2855
- let n = e.props.length;
2856
- for (; n--; ) {
2857
- let r = e.props[n];
2858
- if (Ie(r) && (r = r()), typeof r == "object" && r !== null && t in r) return r[t];
2859
- }
2860
- },
2861
- set(e, t, n) {
2862
- let r = e.props.length;
2863
- for (; r--; ) {
2864
- let s = e.props[r];
2865
- Ie(s) && (s = s());
2866
- const i = ee(s, t);
2867
- if (i && i.set)
2868
- return i.set(n), !0;
2869
- }
2870
- return !1;
2871
- },
2872
- getOwnPropertyDescriptor(e, t) {
2873
- let n = e.props.length;
2874
- for (; n--; ) {
2875
- let r = e.props[n];
2876
- if (Ie(r) && (r = r()), typeof r == "object" && r !== null && t in r) {
2877
- const s = ee(r, t);
2878
- return s && !s.configurable && (s.configurable = !0), s;
2879
- }
2880
- }
2881
- },
2882
- has(e, t) {
2883
- if (t === te || t === St) return !1;
2884
- for (let n of e.props)
2885
- if (Ie(n) && (n = n()), n != null && t in n) return !0;
2886
- return !1;
2887
- },
2888
- ownKeys(e) {
2889
- const t = [];
2890
- for (let n of e.props)
2891
- if (Ie(n) && (n = n()), !!n) {
2892
- for (const r in n)
2893
- t.includes(r) || t.push(r);
2894
- for (const r of Object.getOwnPropertySymbols(n))
2895
- t.includes(r) || t.push(r);
2896
- }
2897
- return t;
2898
- }
2899
- };
2900
- function Oi(...e) {
2901
- return new Proxy({ props: e }, As);
2899
+ function ys(e) {
2900
+ return new ms(e);
2902
2901
  }
2903
- function Mi(e, t, n, r) {
2904
- var s = !Ue || (n & tr) !== 0, i = (n & rr) !== 0, f = (n & sr) !== 0, a = (
2905
- /** @type {V} */
2906
- r
2907
- ), l = !0, o = () => (l && (l = !1, a = f ? Ce(
2908
- /** @type {() => V} */
2909
- r
2910
- ) : (
2911
- /** @type {V} */
2912
- r
2913
- )), a);
2914
- let u;
2915
- if (i) {
2916
- var c = te in e || St in e;
2917
- u = ee(e, t)?.set ?? (c && t in e ? (S) => e[t] = S : void 0);
2918
- }
2919
- var h, _ = !1;
2920
- i ? [h, _] = Br(() => (
2921
- /** @type {V} */
2922
- e[t]
2923
- )) : h = /** @type {V} */
2924
- e[t], h === void 0 && r !== void 0 && (h = o(), u && (s && Er(), u(h)));
2925
- var d;
2926
- if (s ? d = () => {
2927
- var S = (
2928
- /** @type {V} */
2929
- e[t]
2930
- );
2931
- return S === void 0 ? o() : (l = !0, S);
2932
- } : d = () => {
2933
- var S = (
2934
- /** @type {V} */
2935
- e[t]
2936
- );
2937
- return S !== void 0 && (a = /** @type {V} */
2938
- void 0), S === void 0 ? a : S;
2939
- }, s && (n & nr) === 0)
2940
- return d;
2941
- if (u) {
2942
- var w = e.$$legacy;
2943
- return (
2944
- /** @type {() => V} */
2945
- (function(S, ze) {
2946
- return arguments.length > 0 ? ((!s || !ze || w || _) && u(ze ? d() : S), S) : d();
2947
- })
2948
- );
2949
- }
2950
- var E = !1, k = ((n & er) !== 0 ? it : mn)(() => (E = !1, d()));
2951
- i && O(k);
2952
- var fe = (
2953
- /** @type {Effect} */
2954
- v
2955
- );
2956
- return (
2957
- /** @type {() => V} */
2958
- (function(S, ze) {
2959
- if (arguments.length > 0) {
2960
- const Dt = ze ? O(k) : s && i ? Ae(S) : S;
2961
- return q(k, Dt), E = !0, a !== void 0 && (a = Dt), S;
2962
- }
2963
- return ie && E || (fe.f & j) !== 0 ? k.v : O(k);
2964
- })
2965
- );
2966
- }
2967
- function ks(e) {
2968
- return new Ns(e);
2969
- }
2970
- class Ns {
2902
+ class ms {
2971
2903
  /** @type {any} */
2972
2904
  #e;
2973
2905
  /** @type {Record<string, any>} */
@@ -2979,24 +2911,24 @@ class Ns {
2979
2911
  */
2980
2912
  constructor(t) {
2981
2913
  var n = /* @__PURE__ */ new Map(), r = (i, f) => {
2982
- var a = /* @__PURE__ */ Sn(f, !1, !1);
2914
+ var a = /* @__PURE__ */ $n(f, !1, !1);
2983
2915
  return n.set(i, a), a;
2984
2916
  };
2985
2917
  const s = new Proxy(
2986
2918
  { ...t.props || {}, $$events: {} },
2987
2919
  {
2988
2920
  get(i, f) {
2989
- return O(n.get(f) ?? r(f, Reflect.get(i, f)));
2921
+ return q(n.get(f) ?? r(f, Reflect.get(i, f)));
2990
2922
  },
2991
2923
  has(i, f) {
2992
- return f === St ? !0 : (O(n.get(f) ?? r(f, Reflect.get(i, f))), Reflect.has(i, f));
2924
+ return f === fr ? !0 : (q(n.get(f) ?? r(f, Reflect.get(i, f))), Reflect.has(i, f));
2993
2925
  },
2994
2926
  set(i, f, a) {
2995
- return q(n.get(f) ?? r(f, a), a), Reflect.set(i, f, a);
2927
+ return G(n.get(f) ?? r(f, a), a), Reflect.set(i, f, a);
2996
2928
  }
2997
2929
  }
2998
2930
  );
2999
- this.#r = (t.hydrate ? ys : Kn)(t.component, {
2931
+ this.#r = (t.hydrate ? hs : Gn)(t.component, {
3000
2932
  target: t.target,
3001
2933
  anchor: t.anchor,
3002
2934
  props: s,
@@ -3004,9 +2936,9 @@ class Ns {
3004
2936
  intro: t.intro ?? !1,
3005
2937
  recover: t.recover,
3006
2938
  transformError: t.transformError
3007
- }), (!t?.props?.$$host || t.sync === !1) && pn(), this.#e = s.$$events;
2939
+ }), (!t?.props?.$$host || t.sync === !1) && _n(), this.#e = s.$$events;
3008
2940
  for (const i of Object.keys(this.#r))
3009
- i === "$set" || i === "$destroy" || i === "$on" || je(this, i, {
2941
+ i === "$set" || i === "$destroy" || i === "$on" || Le(this, i, {
3010
2942
  get() {
3011
2943
  return this.#r[i];
3012
2944
  },
@@ -3020,7 +2952,7 @@ class Ns {
3020
2952
  (i) => {
3021
2953
  Object.assign(s, i);
3022
2954
  }, this.#r.$destroy = () => {
3023
- ws(this.#r);
2955
+ ds(this.#r);
3024
2956
  };
3025
2957
  }
3026
2958
  /** @param {Record<string, any>} props */
@@ -3046,8 +2978,8 @@ class Ns {
3046
2978
  this.#r.$destroy();
3047
2979
  }
3048
2980
  }
3049
- let Zn;
3050
- typeof HTMLElement == "function" && (Zn = class extends HTMLElement {
2981
+ let Kn;
2982
+ typeof HTMLElement == "function" && (Kn = class extends HTMLElement {
3051
2983
  /** The Svelte component constructor */
3052
2984
  $$ctor;
3053
2985
  /** Slots */
@@ -3106,21 +3038,21 @@ typeof HTMLElement == "function" && (Zn = class extends HTMLElement {
3106
3038
  let e = function(r) {
3107
3039
  return (s) => {
3108
3040
  const i = Ot("slot");
3109
- r !== "default" && (i.name = r), ps(s, i);
3041
+ r !== "default" && (i.name = r), os(s, i);
3110
3042
  };
3111
3043
  };
3112
3044
  if (await Promise.resolve(), !this.$$cn || this.$$c)
3113
3045
  return;
3114
- const t = {}, n = xs(this);
3046
+ const t = {}, n = ws(this);
3115
3047
  for (const r of this.$$s)
3116
3048
  r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
3117
3049
  for (const r of this.attributes) {
3118
3050
  const s = this.$$g_p(r.name);
3119
- s in this.$$d || (this.$$d[s] = Ze(s, r.value, this.$$p_d, "toProp"));
3051
+ s in this.$$d || (this.$$d[s] = We(s, r.value, this.$$p_d, "toProp"));
3120
3052
  }
3121
3053
  for (const r in this.$$p_d)
3122
3054
  !(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
3123
- this.$$c = ks({
3055
+ this.$$c = ys({
3124
3056
  component: this.$$ctor,
3125
3057
  target: this.$$shadowRoot || this,
3126
3058
  props: {
@@ -3128,13 +3060,13 @@ typeof HTMLElement == "function" && (Zn = class extends HTMLElement {
3128
3060
  $$slots: t,
3129
3061
  $$host: this
3130
3062
  }
3131
- }), this.$$me = ns(() => {
3132
- Ee(() => {
3063
+ }), this.$$me = Kr(() => {
3064
+ ue(() => {
3133
3065
  this.$$r = !0;
3134
- for (const r of Qe(this.$$c)) {
3066
+ for (const r of Ke(this.$$c)) {
3135
3067
  if (!this.$$p_d[r]?.reflect) continue;
3136
3068
  this.$$d[r] = this.$$c[r];
3137
- const s = Ze(
3069
+ const s = We(
3138
3070
  r,
3139
3071
  this.$$d[r],
3140
3072
  this.$$p_d,
@@ -3161,7 +3093,7 @@ typeof HTMLElement == "function" && (Zn = class extends HTMLElement {
3161
3093
  * @param {string} newValue
3162
3094
  */
3163
3095
  attributeChangedCallback(e, t, n) {
3164
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ze(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
3096
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = We(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
3165
3097
  }
3166
3098
  disconnectedCallback() {
3167
3099
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -3172,12 +3104,12 @@ typeof HTMLElement == "function" && (Zn = class extends HTMLElement {
3172
3104
  * @param {string} attribute_name
3173
3105
  */
3174
3106
  $$g_p(e) {
3175
- return Qe(this.$$p_d).find(
3107
+ return Ke(this.$$p_d).find(
3176
3108
  (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
3177
3109
  ) || e;
3178
3110
  }
3179
3111
  });
3180
- function Ze(e, t, n, r) {
3112
+ function We(e, t, n, r) {
3181
3113
  const s = n[e]?.type;
3182
3114
  if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
3183
3115
  return t;
@@ -3207,7 +3139,7 @@ function Ze(e, t, n, r) {
3207
3139
  return t;
3208
3140
  }
3209
3141
  }
3210
- function xs(e) {
3142
+ function ws(e) {
3211
3143
  const t = {};
3212
3144
  return e.childNodes.forEach((n) => {
3213
3145
  t[
@@ -3216,33 +3148,33 @@ function xs(e) {
3216
3148
  ] = !0;
3217
3149
  }), t;
3218
3150
  }
3219
- function Ci(e, t, n, r, s, i) {
3220
- let f = class extends Zn {
3151
+ function Oi(e, t, n, r, s, i) {
3152
+ let f = class extends Kn {
3221
3153
  constructor() {
3222
3154
  super(e, n, s), this.$$p_d = t;
3223
3155
  }
3224
3156
  static get observedAttributes() {
3225
- return Qe(t).map(
3157
+ return Ke(t).map(
3226
3158
  (a) => (t[a].attribute || a).toLowerCase()
3227
3159
  );
3228
3160
  }
3229
3161
  };
3230
- return Qe(t).forEach((a) => {
3231
- je(f.prototype, a, {
3162
+ return Ke(t).forEach((a) => {
3163
+ Le(f.prototype, a, {
3232
3164
  get() {
3233
3165
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
3234
3166
  },
3235
3167
  set(l) {
3236
- l = Ze(a, l, t), this.$$d[a] = l;
3168
+ l = We(a, l, t), this.$$d[a] = l;
3237
3169
  var o = this.$$c;
3238
3170
  if (o) {
3239
- var u = ee(o, a)?.get;
3171
+ var u = Te(o, a)?.get;
3240
3172
  u ? o[a] = l : o.$set({ [a]: l });
3241
3173
  }
3242
3174
  }
3243
3175
  });
3244
3176
  }), r.forEach((a) => {
3245
- je(f.prototype, a, {
3177
+ Le(f.prototype, a, {
3246
3178
  get() {
3247
3179
  return this.$$c?.[a];
3248
3180
  }
@@ -3251,142 +3183,151 @@ function Ci(e, t, n, r, s, i) {
3251
3183
  f, f;
3252
3184
  }
3253
3185
  export {
3254
- si as $,
3255
- ae as A,
3256
- ms as B,
3257
- rt as C,
3258
- se as D,
3259
- Re as E,
3260
- Ee as F,
3261
- hi as G,
3262
- Jt as H,
3263
- ln as I,
3264
- Mt as J,
3186
+ wi as $,
3187
+ re as A,
3188
+ _s as B,
3189
+ Qe as C,
3190
+ ne as D,
3191
+ Ne as E,
3192
+ ue as F,
3193
+ ci as G,
3194
+ Wt as H,
3195
+ an as I,
3196
+ st as J,
3265
3197
  p as K,
3266
- It as L,
3267
- Ys as M,
3268
- ni as N,
3198
+ it as L,
3199
+ Us as M,
3200
+ Gr as N,
3269
3201
  $ as O,
3270
- li as P,
3271
- fi as Q,
3272
- de as R,
3273
- Hs as S,
3274
- Ds as T,
3275
- dr as U,
3276
- O as V,
3277
- it as W,
3278
- pi as X,
3279
- Ci as Y,
3280
- Ei as Z,
3281
- Mi as _,
3282
- Ye as a,
3283
- j as a$,
3284
- $i as a0,
3285
- ci as a1,
3286
- vi as a2,
3287
- _i as a3,
3288
- ps as a4,
3289
- Ir as a5,
3290
- gi as a6,
3291
- Cr as a7,
3292
- ii as a8,
3293
- le as a9,
3294
- xi as aA,
3295
- tn as aB,
3296
- zs as aC,
3297
- Qs as aD,
3202
+ fi as P,
3203
+ ai as Q,
3204
+ oe as R,
3205
+ Fs as S,
3206
+ Is as T,
3207
+ ir as U,
3208
+ q as V,
3209
+ xt as W,
3210
+ vi as X,
3211
+ Oi as Y,
3212
+ $i as Z,
3213
+ ri as _,
3214
+ qe as a,
3215
+ ts as a$,
3216
+ ui as a0,
3217
+ _i as a1,
3218
+ di as a2,
3219
+ os as a3,
3220
+ kr as a4,
3221
+ pi as a5,
3222
+ Sr as a6,
3223
+ si as a7,
3224
+ se as a8,
3225
+ ei as a9,
3226
+ Qt as aA,
3227
+ Gs as aB,
3228
+ Zs as aC,
3229
+ Js as aD,
3298
3230
  Xs as aE,
3299
- Zs as aF,
3300
- Fr as aG,
3231
+ Rr as aF,
3232
+ li as aG,
3301
3233
  oi as aH,
3302
- ui as aI,
3303
- Sn as aJ,
3304
- mn as aK,
3305
- Oi as aL,
3306
- Js as aM,
3307
- fr as aN,
3308
- pr as aO,
3309
- Ue as aP,
3310
- nt as aQ,
3311
- Z as aR,
3312
- Us as aS,
3313
- es as aT,
3314
- ur as aU,
3315
- Os as aV,
3316
- Ge as aW,
3317
- Rs as aX,
3318
- Is as aY,
3319
- qs as aZ,
3320
- Ms as a_,
3321
- ei as aa,
3322
- ri as ab,
3323
- pn as ac,
3324
- Gs as ad,
3325
- q as ae,
3326
- $t as af,
3327
- mi as ag,
3328
- Ti as ah,
3329
- Ai as ai,
3330
- Si as aj,
3331
- Ni as ak,
3332
- yi as al,
3333
- Rr as am,
3334
- wi as an,
3335
- ki as ao,
3336
- Ae as ap,
3234
+ $n as aI,
3235
+ Br as aJ,
3236
+ Ks as aK,
3237
+ Qn as aL,
3238
+ Ni as aM,
3239
+ or as aN,
3240
+ tt as aO,
3241
+ Ze as aP,
3242
+ Z as aQ,
3243
+ Bs as aR,
3244
+ zr as aS,
3245
+ nr as aT,
3246
+ Es as aU,
3247
+ Be as aV,
3248
+ $s as aW,
3249
+ ks as aX,
3250
+ Hs as aY,
3251
+ Ts as aZ,
3252
+ B as a_,
3253
+ ni as aa,
3254
+ _n as ab,
3255
+ Ys as ac,
3256
+ G as ad,
3257
+ $t as ae,
3258
+ mi as af,
3259
+ Ei as ag,
3260
+ Si as ah,
3261
+ Ti as ai,
3262
+ Ai as aj,
3263
+ gi as ak,
3264
+ $r as al,
3265
+ yi as am,
3266
+ ki as an,
3267
+ Oe as ao,
3268
+ zs as ap,
3337
3269
  Ws as aq,
3338
- Ks as ar,
3339
- ai as as,
3340
- Ut as at,
3341
- di as au,
3342
- Ri as av,
3343
- bi as aw,
3344
- cs as ax,
3345
- ti as ay,
3346
- Bs as az,
3347
- In as b,
3348
- ls as b0,
3349
- Fe as b1,
3350
- F as b2,
3351
- J as b3,
3352
- Cs as b4,
3353
- Rn as b5,
3354
- jn as b6,
3355
- M as b7,
3356
- Xt as b8,
3357
- Zt as b9,
3358
- K as ba,
3359
- fs as bb,
3360
- st as bc,
3361
- ke as bd,
3362
- Ot as be,
3363
- Fs as bf,
3364
- js as bg,
3365
- Ht as bh,
3366
- te as bi,
3367
- ns as bj,
3368
- At as c,
3369
- B as d,
3370
- oe as e,
3270
+ ii as ar,
3271
+ qt as as,
3272
+ hi as at,
3273
+ Ri as au,
3274
+ bi as av,
3275
+ ss as aw,
3276
+ ti as ax,
3277
+ js as ay,
3278
+ xi as az,
3279
+ On as b,
3280
+ Pe as b0,
3281
+ P as b1,
3282
+ J as b2,
3283
+ Ss as b3,
3284
+ An as b4,
3285
+ Ln as b5,
3286
+ x as b6,
3287
+ Kt as b7,
3288
+ Jt as b8,
3289
+ K as b9,
3290
+ es as ba,
3291
+ et as bb,
3292
+ Se as bc,
3293
+ Ot as bd,
3294
+ Ps as be,
3295
+ Ls as bf,
3296
+ Dt as bg,
3297
+ ve as bh,
3298
+ Kr as bi,
3299
+ le as bj,
3300
+ fr as bk,
3301
+ Te as bl,
3302
+ Qs as bm,
3303
+ Vs as bn,
3304
+ xs as bo,
3305
+ As as bp,
3306
+ Rs as bq,
3307
+ Ns as br,
3308
+ Os as bs,
3309
+ St as c,
3310
+ D as d,
3311
+ ie as e,
3371
3312
  y as f,
3372
3313
  Tt as g,
3373
- b as h,
3374
- lr as i,
3375
- v as j,
3376
- W as k,
3377
- ss as l,
3378
- Ie as m,
3379
- ge as n,
3380
- cr as o,
3381
- Kt as p,
3382
- he as q,
3383
- Or as r,
3384
- an as s,
3385
- Ps as t,
3386
- Ce as u,
3387
- Ls as v,
3388
- ft as w,
3389
- G as x,
3390
- _r as y,
3391
- $e as z
3314
+ g as h,
3315
+ er as i,
3316
+ _ as j,
3317
+ z as k,
3318
+ Xr as l,
3319
+ Ds as m,
3320
+ _e as n,
3321
+ rr as o,
3322
+ Gt as p,
3323
+ W as q,
3324
+ Er as r,
3325
+ rn as s,
3326
+ Ms as t,
3327
+ Ve as u,
3328
+ Cs as v,
3329
+ rt as w,
3330
+ U as x,
3331
+ ar as y,
3332
+ me as z
3392
3333
  };