@nil-/xit 0.1.26 → 0.1.28

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,774 +1,1000 @@
1
1
  import "./internal/client.js";
2
- var $n = Array.isArray, rt = Array.from, Tr = Object.keys, at = Object.defineProperty, dn = Object.getOwnPropertyDescriptor, it = Object.getOwnPropertyDescriptors, ot = Object.prototype, st = Array.prototype, Hn = Object.getPrototypeOf;
3
- function Ar(n) {
4
- return typeof n == "function";
2
+ const Pe = !1;
3
+ var Ne = Array.isArray, cn = Array.from, Fr = Object.keys, _n = Object.defineProperty, de = Object.getOwnPropertyDescriptor, dn = Object.getOwnPropertyDescriptors, vt = Object.prototype, vn = Array.prototype, Oe = Object.getPrototypeOf;
4
+ function $r(e) {
5
+ return typeof e == "function";
5
6
  }
6
- const ut = () => {
7
+ const pn = () => {
7
8
  };
8
- function Sr(n) {
9
- return typeof (n == null ? void 0 : n.then) == "function";
9
+ function Br(e) {
10
+ return typeof (e == null ? void 0 : e.then) == "function";
10
11
  }
11
- function kr(n) {
12
- return n();
12
+ function Hr(e) {
13
+ return e();
13
14
  }
14
- function se(n) {
15
- for (var e = 0; e < n.length; e++)
16
- n[e]();
15
+ function pt(e) {
16
+ for (var t = 0; t < e.length; t++)
17
+ e[t]();
17
18
  }
18
- function xr(n, e, t = !1) {
19
- return n === void 0 ? t ? (
19
+ function Yr() {
20
+ var e, t, n = new Promise((r, s) => {
21
+ e = r, t = s;
22
+ });
23
+ return { promise: n, resolve: e, reject: t };
24
+ }
25
+ function Vr(e, t, n = !1) {
26
+ return e === void 0 ? n ? (
20
27
  /** @type {() => V} */
21
- e()
28
+ t()
22
29
  ) : (
23
30
  /** @type {V} */
24
- e
25
- ) : n;
31
+ t
32
+ ) : e;
33
+ }
34
+ const S = 2, ht = 4, be = 8, ze = 16, M = 32, ge = 64, qe = 128, X = 256, xe = 512, g = 1024, F = 2048, ie = 4096, oe = 8192, ue = 16384, hn = 32768, Ke = 65536, yn = 1 << 17, mn = 1 << 18, yt = 1 << 19, mt = 1 << 20, V = Symbol("$state"), wt = Symbol("$state metadata"), Ur = Symbol("legacy props"), Wr = Symbol(""), wn = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback;
35
+ let ke = !1, Ce = !1, Fe = [], $e = [];
36
+ function bt() {
37
+ ke = !1;
38
+ const e = Fe.slice();
39
+ Fe = [], pt(e);
26
40
  }
27
- const ue = !1, R = 2, le = 4, mn = 8, Bn = 16, M = 32, kn = 64, G = 128, Tn = 256, b = 512, $ = 1024, on = 2048, rn = 4096, wn = 8192, lt = 16384, Vn = 32768, ft = 65536, ct = 1 << 17, fe = 1 << 18, ce = 1 << 19, W = Symbol("$state"), _e = Symbol("$state metadata"), Nr = Symbol(""), _t = typeof requestIdleCallback > "u" ? (n) => setTimeout(n, 1) : requestIdleCallback;
28
- let An = !1, Sn = !1, On = [], Dn = [];
29
- function de() {
30
- An = !1;
31
- const n = On.slice();
32
- On = [], se(n);
41
+ function gt() {
42
+ Ce = !1;
43
+ const e = $e.slice();
44
+ $e = [], pt(e);
33
45
  }
34
- function ve() {
35
- Sn = !1;
36
- const n = Dn.slice();
37
- Dn = [], se(n);
46
+ function Et(e) {
47
+ ke || (ke = !0, queueMicrotask(bt)), Fe.push(e);
38
48
  }
39
- function pe(n) {
40
- An || (An = !0, queueMicrotask(de)), On.push(n);
49
+ function jr(e) {
50
+ Ce || (Ce = !0, wn(gt)), $e.push(e);
41
51
  }
42
- function Cr(n) {
43
- Sn || (Sn = !0, _t(ve)), Dn.push(n);
52
+ function bn() {
53
+ ke && bt(), Ce && gt();
44
54
  }
45
- function dt() {
46
- An && de(), Sn && ve();
55
+ function Gr(e, t) {
56
+ console.warn("https://svelte.dev/e/assignment_value_stale");
47
57
  }
48
- function Ir(n, e) {
49
- console.warn("binding_property_non_reactive");
58
+ function zr(e, t) {
59
+ console.warn("https://svelte.dev/e/binding_property_non_reactive");
50
60
  }
51
- function Or(n) {
52
- console.warn("console_log_state");
61
+ function Kr(e) {
62
+ console.warn("https://svelte.dev/e/console_log_state");
53
63
  }
54
- function vt(n, e) {
55
- console.warn("event_handler_invalid");
64
+ function gn(e, t) {
65
+ console.warn("https://svelte.dev/e/event_handler_invalid");
56
66
  }
57
- function Un(n) {
58
- console.warn("hydration_mismatch");
67
+ function Je(e) {
68
+ console.warn("https://svelte.dev/e/hydration_mismatch");
59
69
  }
60
- function pt(n, e, t) {
61
- console.warn("ownership_invalid_binding");
70
+ function En(e, t, n) {
71
+ console.warn("https://svelte.dev/e/ownership_invalid_binding");
62
72
  }
63
- function he(n) {
64
- console.warn("state_proxy_equality_mismatch");
73
+ function Tt(e) {
74
+ console.warn("https://svelte.dev/e/state_proxy_equality_mismatch");
65
75
  }
66
- const Dr = 1, Rr = 2, Lr = 4, Mr = 8, Pr = 16, qr = 1, Fr = 4, $r = 8, Hr = 16, Br = 1, Vr = 2, Ur = 4, ye = 1, ht = 2, Yn = "[", yt = "[!", me = "]", vn = {}, T = Symbol(), Q = Symbol("filename"), Yr = Symbol("hmr"), Wr = "http://www.w3.org/2000/svg", pn = {}, mt = /at (?:.+ \()?(.+):(\d+):(\d+)\)?$/, wt = /@(.+):(\d+):(\d+)$/;
67
- function Wn() {
68
- const n = new Error().stack;
69
- if (!n) return null;
70
- const e = [];
71
- for (const t of n.split(`
76
+ const Jr = 1, Xr = 2, Zr = 4, Qr = 8, es = 16, ts = 1, ns = 4, rs = 8, ss = 16, os = 1, as = 2, is = 4, At = 1, Tn = 2, Xe = "[", An = "[!", St = "]", ve = {}, E = Symbol(), te = Symbol("filename"), us = Symbol("hmr"), ls = "http://www.w3.org/2000/svg", pe = {}, Sn = /at (?:.+ \()?(.+):(\d+):(\d+)\)?$/, xn = /@(.+):(\d+):(\d+)$/;
77
+ function Ze() {
78
+ const e = new Error().stack;
79
+ if (!e) return null;
80
+ const t = [];
81
+ for (const n of e.split(`
72
82
  `)) {
73
- let r = mt.exec(t) ?? wt.exec(t);
74
- r && e.push({
83
+ let r = Sn.exec(n) ?? xn.exec(n);
84
+ r && t.push({
75
85
  file: r[1],
76
86
  line: +r[2],
77
87
  column: +r[3]
78
88
  });
79
89
  }
80
- return e;
90
+ return t;
81
91
  }
82
- function Gr() {
83
- var e;
84
- const n = (e = Wn()) == null ? void 0 : e.slice(4);
85
- if (!n) return null;
86
- for (let t = 0; t < n.length; t++) {
87
- const r = n[t], a = pn[r.file];
88
- if (!a) {
89
- if (t === 0) return null;
92
+ function fs() {
93
+ var t;
94
+ const e = (t = Ze()) == null ? void 0 : t.slice(4);
95
+ if (!e) return null;
96
+ for (let n = 0; n < e.length; n++) {
97
+ const r = e[n], s = pe[r.file];
98
+ if (!s) {
99
+ if (n === 0) return null;
90
100
  continue;
91
101
  }
92
- for (const i of a)
93
- if (i.start.line < r.line && i.end.line > r.line)
94
- return i.component;
102
+ for (const o of s) {
103
+ if (o.end == null)
104
+ return null;
105
+ if (o.start.line < r.line && o.end.line > r.line)
106
+ return o.component;
107
+ }
95
108
  }
96
109
  return null;
97
110
  }
98
- const In = Symbol("ADD_OWNER");
99
- function Kr() {
100
- var e, t;
101
- const n = (e = Wn()) == null ? void 0 : e[2];
102
- n && (pn[t = n.file] ?? (pn[t] = [])).push({
103
- start: n,
111
+ const Me = Symbol("ADD_OWNER");
112
+ function cs() {
113
+ var t, n;
114
+ const e = (t = Ze()) == null ? void 0 : t[2];
115
+ e && (pe[n = e.file] ?? (pe[n] = [])).push({
116
+ start: e,
104
117
  // @ts-expect-error
105
118
  end: null,
106
119
  // @ts-expect-error we add the component at the end, since HMR will overwrite the function
107
120
  component: null
108
121
  });
109
122
  }
110
- function jr(n) {
111
- var t;
112
- const e = (t = Wn()) == null ? void 0 : t[2];
113
- if (e) {
114
- const r = pn[e.file], a = r[r.length - 1];
115
- a.end = e, a.component = n;
123
+ function _s(e) {
124
+ var n;
125
+ const t = (n = Ze()) == null ? void 0 : n[2];
126
+ if (t) {
127
+ const r = pe[t.file], s = r[r.length - 1];
128
+ s.end = t, s.component = e;
116
129
  }
117
130
  }
118
- function Et(n, e, t = !1, r = !1) {
119
- if (n && !t) {
120
- const a = jn, i = n[_e];
121
- if (i && !we(i, a)) {
122
- let o = Ee(i);
123
- e[Q] !== a[Q] && !r && pt(a[Q], e[Q], o[Q]);
131
+ function kn(e, t, n = !1, r = !1) {
132
+ if (e && !n) {
133
+ const s = tt, o = e[wt];
134
+ if (o && !xt(o, s)) {
135
+ let a = kt(o);
136
+ t[te] !== s[te] && !r && En(s[te], t[te], a[te]);
124
137
  }
125
138
  }
126
- Rn(n, e, /* @__PURE__ */ new Set());
139
+ Be(e, t, /* @__PURE__ */ new Set());
127
140
  }
128
- function zr(n, e, t = !1) {
129
- er(() => {
130
- Et(n(), e, !1, t);
141
+ function ds(e, t, n = !1) {
142
+ vr(() => {
143
+ kn(e(), t, !1, n);
131
144
  });
132
145
  }
133
- function Rn(n, e, t) {
146
+ function Be(e, t, n) {
134
147
  const r = (
135
148
  /** @type {ProxyMetadata} */
136
- n == null ? void 0 : n[_e]
149
+ e == null ? void 0 : e[wt]
137
150
  );
138
151
  if (r)
139
- "owners" in r && r.owners != null && r.owners.add(e);
140
- else if (n && typeof n == "object") {
141
- if (t.has(n)) return;
142
- if (t.add(n), In in n && n[In])
143
- Cn(() => {
144
- n[In](e);
152
+ "owners" in r && r.owners != null && r.owners.add(t);
153
+ else if (e && typeof e == "object") {
154
+ if (n.has(e)) return;
155
+ if (n.add(e), Me in e && e[Me])
156
+ Le(() => {
157
+ e[Me](t);
145
158
  });
146
159
  else {
147
- var a = Hn(n);
148
- if (a === Object.prototype)
149
- for (const i in n)
150
- Rn(n[i], e, t);
151
- else if (a === Array.prototype)
152
- for (let i = 0; i < n.length; i += 1)
153
- Rn(n[i], e, t);
160
+ var s = Oe(e);
161
+ if (s === Object.prototype)
162
+ for (const o in e)
163
+ Be(e[o], t, n);
164
+ else if (s === Array.prototype)
165
+ for (let o = 0; o < e.length; o += 1)
166
+ Be(e[o], t, n);
154
167
  }
155
168
  }
156
169
  }
157
- function we(n, e) {
158
- return n.owners === null ? !0 : n.owners.has(e) || n.parent !== null && we(n.parent, e);
170
+ function xt(e, t) {
171
+ return e.owners === null ? !0 : e.owners.has(t) || e.parent !== null && xt(e.parent, t);
159
172
  }
160
- function Ee(n) {
161
- var e;
162
- return ((e = n == null ? void 0 : n.owners) == null ? void 0 : e.values().next().value) ?? Ee(
173
+ function kt(e) {
174
+ var t;
175
+ return ((t = e == null ? void 0 : e.owners) == null ? void 0 : t.values().next().value) ?? kt(
163
176
  /** @type {ProxyMetadata} */
164
- n.parent
177
+ e.parent
165
178
  );
166
179
  }
167
- function Zr(n) {
168
- n();
180
+ function vs(e) {
181
+ e();
169
182
  }
170
- function be(n) {
171
- return n === this.v;
183
+ function Ct(e) {
184
+ return e === this.v;
172
185
  }
173
- function bt(n, e) {
174
- return n != n ? e == e : n !== e || n !== null && typeof n == "object" || typeof n == "function";
186
+ function Cn(e, t) {
187
+ return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
175
188
  }
176
- function ge(n) {
177
- return !bt(n, this.v);
189
+ function ps(e, t) {
190
+ return e !== t;
178
191
  }
179
- function Jr(n, e, t) {
180
- throw new Error("bind_invalid_export");
192
+ function Nt(e) {
193
+ return !Cn(e, this.v);
181
194
  }
182
- function Qr(n, e, t) {
183
- throw new Error("bind_not_bindable");
195
+ function hs(e, t, n) {
196
+ throw new Error("https://svelte.dev/e/bind_invalid_export");
184
197
  }
185
- function Xr(n, e, t) {
186
- throw new Error("component_api_changed");
198
+ function ys(e, t, n) {
199
+ throw new Error("https://svelte.dev/e/bind_not_bindable");
187
200
  }
188
- function na(n, e) {
189
- throw new Error("component_api_invalid_new");
201
+ function ms(e, t, n) {
202
+ throw new Error("https://svelte.dev/e/component_api_changed");
190
203
  }
191
- function ea(n, e, t) {
192
- throw new Error("each_key_duplicate");
204
+ function ws(e, t) {
205
+ throw new Error("https://svelte.dev/e/component_api_invalid_new");
193
206
  }
194
- function gt(n) {
195
- throw new Error("effect_in_teardown");
207
+ function bs(e, t, n) {
208
+ throw new Error("https://svelte.dev/e/each_key_duplicate");
196
209
  }
197
- function Tt() {
198
- throw new Error("effect_in_unowned_derived");
210
+ function Nn(e) {
211
+ throw new Error("https://svelte.dev/e/effect_in_teardown");
199
212
  }
200
- function At(n) {
201
- throw new Error("effect_orphan");
213
+ function On() {
214
+ throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
202
215
  }
203
- function St() {
204
- throw new Error("effect_update_depth_exceeded");
216
+ function In(e) {
217
+ throw new Error("https://svelte.dev/e/effect_orphan");
205
218
  }
206
- function kt() {
207
- throw new Error("hydration_failed");
219
+ function Dn() {
220
+ throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
208
221
  }
209
- function Te(n) {
210
- throw new Error("lifecycle_legacy_only");
222
+ function Rn() {
223
+ throw new Error("https://svelte.dev/e/hydration_failed");
211
224
  }
212
- function ta(n) {
213
- throw new Error("props_invalid_value");
225
+ function Ot(e) {
226
+ throw new Error("https://svelte.dev/e/lifecycle_legacy_only");
227
+ }
228
+ function gs(e) {
229
+ throw new Error("https://svelte.dev/e/props_invalid_value");
230
+ }
231
+ function Ln() {
232
+ throw new Error("https://svelte.dev/e/state_descriptors_fixed");
233
+ }
234
+ function Mn() {
235
+ throw new Error("https://svelte.dev/e/state_prototype_fixed");
214
236
  }
215
- function xt() {
216
- throw new Error("state_descriptors_fixed");
237
+ function Pn() {
238
+ throw new Error("https://svelte.dev/e/state_unsafe_local_read");
217
239
  }
218
- function Nt() {
219
- throw new Error("state_prototype_fixed");
240
+ function qn() {
241
+ throw new Error("https://svelte.dev/e/state_unsafe_mutation");
220
242
  }
221
- function Ct() {
222
- throw new Error("state_unsafe_local_read");
243
+ let Fn = !1, $n = !1;
244
+ function Es(e) {
245
+ console.warn("https://svelte.dev/e/dynamic_void_element_content");
223
246
  }
224
- function It() {
225
- throw new Error("state_unsafe_mutation");
247
+ const Bn = [];
248
+ function Hn(e, t = !1) {
249
+ return Ae(e, /* @__PURE__ */ new Map(), "", Bn);
226
250
  }
227
- let Ot = !1;
228
- function O(n) {
229
- return {
251
+ function Ae(e, t, n, r, s = null) {
252
+ if (typeof e == "object" && e !== null) {
253
+ var o = t.get(e);
254
+ if (o !== void 0) return o;
255
+ if (e instanceof Map) return (
256
+ /** @type {Snapshot<T>} */
257
+ new Map(e)
258
+ );
259
+ if (e instanceof Set) return (
260
+ /** @type {Snapshot<T>} */
261
+ new Set(e)
262
+ );
263
+ if (Ne(e)) {
264
+ var a = (
265
+ /** @type {Snapshot<any>} */
266
+ Array(e.length)
267
+ );
268
+ t.set(e, a), s !== null && t.set(s, a);
269
+ for (var c = 0; c < e.length; c += 1) {
270
+ var u = e[c];
271
+ c in e && (a[c] = Ae(u, t, n, r));
272
+ }
273
+ return a;
274
+ }
275
+ if (Oe(e) === vt) {
276
+ a = {}, t.set(e, a), s !== null && t.set(s, a);
277
+ for (var i in e)
278
+ a[i] = Ae(e[i], t, n, r);
279
+ return a;
280
+ }
281
+ if (e instanceof Date)
282
+ return (
283
+ /** @type {Snapshot<T>} */
284
+ structuredClone(e)
285
+ );
286
+ if (typeof /** @type {T & { toJSON?: any } } */
287
+ e.toJSON == "function")
288
+ return Ae(
289
+ /** @type {T & { toJSON(): any } } */
290
+ e.toJSON(),
291
+ t,
292
+ n,
293
+ r,
294
+ // Associate the instance with the toJSON clone
295
+ e
296
+ );
297
+ }
298
+ if (e instanceof EventTarget)
299
+ return (
300
+ /** @type {Snapshot<T>} */
301
+ e
302
+ );
303
+ try {
304
+ return (
305
+ /** @type {Snapshot<T>} */
306
+ structuredClone(e)
307
+ );
308
+ } catch {
309
+ return (
310
+ /** @type {Snapshot<T>} */
311
+ e
312
+ );
313
+ }
314
+ }
315
+ let H = null;
316
+ function He(e, t) {
317
+ const n = e.debug, r = e.trace_need_increase ? e.trace_v : e.v;
318
+ if (r === E)
319
+ return;
320
+ if (n) {
321
+ var s = P, o = /* @__PURE__ */ new Set();
322
+ lt(o);
323
+ try {
324
+ G(() => {
325
+ n();
326
+ });
327
+ } finally {
328
+ lt(s);
329
+ }
330
+ if (o.size > 0) {
331
+ for (const f of o)
332
+ He(f);
333
+ return;
334
+ }
335
+ }
336
+ const a = e.f & S ? "$derived" : "$state", c = (
337
+ /** @type {Reaction} */
338
+ y
339
+ ), u = e.version > c.version || c.version === 0 ? "dirty" : "clean";
340
+ if (console.groupCollapsed(
341
+ `%c${a}`,
342
+ u !== "clean" ? "color: CornflowerBlue; font-weight: bold" : "color: grey; font-weight: bold",
343
+ typeof r == "object" && r !== null && V in r ? Hn(r, !0) : r
344
+ ), a === "$derived") {
345
+ const f = new Set(
346
+ /** @type {Derived} */
347
+ e.deps
348
+ );
349
+ for (const _ of f)
350
+ He(_);
351
+ }
352
+ e.created && console.log(e.created), e.updated && console.log(e.updated);
353
+ const i = t == null ? void 0 : t.read;
354
+ if (i && i.length > 0)
355
+ for (var l of i)
356
+ console.log(l);
357
+ console.groupEnd();
358
+ }
359
+ function Ts(e, t) {
360
+ var n = H;
361
+ try {
362
+ H = { entries: /* @__PURE__ */ new Map(), reaction: y };
363
+ var r = performance.now(), s = t(), o = (performance.now() - r).toFixed(2);
364
+ if (!_r())
365
+ console.log(`${e()} %cran outside of an effect (${o}ms)`, "color: grey");
366
+ else if (H.entries.size === 0)
367
+ console.log(`${e()} %cno reactive dependencies (${o}ms)`, "color: grey");
368
+ else {
369
+ console.group(`${e()} %c(${o}ms)`, "color: grey");
370
+ var a = H.entries;
371
+ H = null;
372
+ for (const [u, i] of a)
373
+ He(u, i);
374
+ console.groupEnd();
375
+ }
376
+ if (n !== null && H !== null)
377
+ for (const [u, i] of H.entries) {
378
+ var c = n.get(u);
379
+ c === void 0 ? n.set(u, i) : c.read.push(...i.read);
380
+ }
381
+ return s;
382
+ } finally {
383
+ H = n;
384
+ }
385
+ }
386
+ function D(e, t) {
387
+ var n = {
230
388
  f: 0,
231
389
  // TODO ideally we could skip this altogether, but it causes type errors
232
- v: n,
390
+ v: e,
233
391
  reactions: null,
234
- equals: be,
392
+ equals: Ct,
235
393
  version: 0
236
394
  };
395
+ return n;
237
396
  }
238
- function ra(n) {
239
- return /* @__PURE__ */ Ae(O(n));
397
+ function As(e) {
398
+ return /* @__PURE__ */ It(D(e));
240
399
  }
241
400
  // @__NO_SIDE_EFFECTS__
242
- function Dt(n, e = !1) {
243
- const t = O(n);
244
- return e || (t.equals = ge), t;
401
+ function Yn(e, t = !1) {
402
+ const n = D(e);
403
+ return t || (n.equals = Nt), n;
245
404
  }
246
- function aa(n, e = !1) {
247
- return /* @__PURE__ */ Ae(/* @__PURE__ */ Dt(n, e));
405
+ function Ss(e, t = !1) {
406
+ return /* @__PURE__ */ It(/* @__PURE__ */ Yn(e, t));
248
407
  }
249
408
  // @__NO_SIDE_EFFECTS__
250
- function Ae(n) {
251
- return y !== null && y.f & R && (D === null ? Pt([n]) : D.push(n)), n;
409
+ function It(e) {
410
+ return y !== null && y.f & S && (R === null ? jn([e]) : R.push(e)), e;
252
411
  }
253
- function ne(n, e) {
254
- return x(
255
- n,
256
- ln(() => P(n))
257
- ), e;
412
+ function xs(e, t) {
413
+ return C(
414
+ e,
415
+ G(() => q(e))
416
+ ), t;
258
417
  }
259
- function x(n, e) {
260
- return y !== null && Ft() && y.f & (R | Bn) && // If the source was created locally within the current derived, then
418
+ function C(e, t) {
419
+ return y !== null && zn() && y.f & (S | ze) && // If the source was created locally within the current derived, then
261
420
  // we allow the mutation.
262
- (D === null || !D.includes(n)) && It(), Rt(n, e);
421
+ (R === null || !R.includes(e)) && qn(), Ye(e, t);
263
422
  }
264
- function Rt(n, e) {
265
- return n.equals(e) || (n.v = e, n.version = Oe(), Se(n, $), v !== null && v.f & b && !(v.f & M) && (E !== null && E.includes(n) ? (I(v, $), xn(v)) : F === null ? qt([n]) : F.push(n))), e;
423
+ function Ye(e, t) {
424
+ return e.equals(t) || (e.v, e.v = t, e.version = Ft(), Dt(e, F), v !== null && v.f & g && !(v.f & M) && (b !== null && b.includes(e) ? (I(v, F), De(v)) : U === null ? Gn([e]) : U.push(e))), t;
266
425
  }
267
- function Se(n, e) {
268
- var t = n.reactions;
269
- if (t !== null)
270
- for (var r = t.length, a = 0; a < r; a++) {
271
- var i = t[a], o = i.f;
272
- o & $ || (I(i, e), o & (b | G) && (o & R ? Se(
426
+ function Dt(e, t) {
427
+ var n = e.reactions;
428
+ if (n !== null)
429
+ for (var r = n.length, s = 0; s < r; s++) {
430
+ var o = n[s], a = o.f;
431
+ a & F || (I(o, t), a & (g | X) && (a & S ? Dt(
273
432
  /** @type {Derived} */
274
- i,
275
- on
276
- ) : xn(
433
+ o,
434
+ ie
435
+ ) : De(
277
436
  /** @type {Effect} */
278
- i
437
+ o
279
438
  )));
280
439
  }
281
440
  }
282
441
  // @__NO_SIDE_EFFECTS__
283
- function Lt(n) {
284
- var e = R | $;
285
- v === null ? e |= G : v.f |= ce;
286
- const t = {
442
+ function Vn(e) {
443
+ var t = S | F;
444
+ v === null ? t |= X : v.f |= mt;
445
+ var n = y !== null && y.f & S ? (
446
+ /** @type {Derived} */
447
+ y
448
+ ) : null;
449
+ const r = {
287
450
  children: null,
288
- ctx: h,
451
+ ctx: p,
289
452
  deps: null,
290
- equals: be,
291
- f: e,
292
- fn: n,
453
+ equals: Ct,
454
+ f: t,
455
+ fn: e,
293
456
  reactions: null,
294
457
  v: (
295
458
  /** @type {V} */
296
459
  null
297
460
  ),
298
461
  version: 0,
299
- parent: v
462
+ parent: n ?? v
300
463
  };
301
- if (y !== null && y.f & R) {
302
- var r = (
303
- /** @type {Derived} */
304
- y
305
- );
306
- (r.children ?? (r.children = [])).push(t);
307
- }
308
- return t;
464
+ return n !== null && (n.children ?? (n.children = [])).push(r), r;
309
465
  }
310
466
  // @__NO_SIDE_EFFECTS__
311
- function ia(n) {
312
- const e = /* @__PURE__ */ Lt(n);
313
- return e.equals = ge, e;
314
- }
315
- function ke(n) {
316
- var e = n.children;
317
- if (e !== null) {
318
- n.children = null;
319
- for (var t = 0; t < e.length; t += 1) {
320
- var r = e[t];
321
- r.f & R ? Gn(
467
+ function ks(e) {
468
+ const t = /* @__PURE__ */ Vn(e);
469
+ return t.equals = Nt, t;
470
+ }
471
+ function Rt(e) {
472
+ var t = e.children;
473
+ if (t !== null) {
474
+ e.children = null;
475
+ for (var n = 0; n < t.length; n += 1) {
476
+ var r = t[n];
477
+ r.f & S ? Qe(
322
478
  /** @type {Derived} */
323
479
  r
324
- ) : j(
480
+ ) : B(
325
481
  /** @type {Effect} */
326
482
  r
327
483
  );
328
484
  }
329
485
  }
330
486
  }
331
- function xe(n) {
332
- var e, t = v;
333
- B(n.parent);
487
+ function Un(e) {
488
+ for (var t = e.parent; t !== null; ) {
489
+ if (!(t.f & S))
490
+ return (
491
+ /** @type {Effect} */
492
+ t
493
+ );
494
+ t = t.parent;
495
+ }
496
+ return null;
497
+ }
498
+ function Lt(e) {
499
+ var t, n = v;
500
+ j(Un(e));
334
501
  try {
335
- ke(n), e = De(n);
502
+ Rt(e), t = $t(e);
336
503
  } finally {
337
- B(t);
504
+ j(n);
338
505
  }
339
- return e;
506
+ return t;
340
507
  }
341
- function Ne(n) {
342
- var e = xe(n), t = (Y || n.f & G) && n.deps !== null ? on : b;
343
- I(n, t), n.equals(e) || (n.v = e, n.version = Oe());
508
+ function Mt(e) {
509
+ var t = Lt(e), n = (Y || e.f & X) && e.deps !== null ? ie : g;
510
+ I(e, n), e.equals(t) || (e.v = t, e.version = Ft());
344
511
  }
345
- function Gn(n) {
346
- ke(n), yn(n, 0), I(n, wn), n.v = n.children = n.deps = n.ctx = n.reactions = null;
512
+ function Qe(e) {
513
+ Rt(e), we(e, 0), I(e, ue), e.v = e.children = e.deps = e.ctx = e.reactions = null;
347
514
  }
348
- function oa() {
349
- throw new Error("invalid_default_snippet");
515
+ function Cs() {
516
+ throw new Error("https://svelte.dev/e/invalid_default_snippet");
350
517
  }
351
- function sn(n) {
352
- throw new Error("lifecycle_outside_component");
518
+ function le(e) {
519
+ throw new Error("https://svelte.dev/e/lifecycle_outside_component");
353
520
  }
354
- function sa(n) {
355
- throw new Error("store_invalid_shape");
521
+ function Ns(e) {
522
+ throw new Error("https://svelte.dev/e/store_invalid_shape");
356
523
  }
357
- function ua() {
358
- throw new Error("svelte_element_invalid_this_value");
524
+ function Os() {
525
+ throw new Error("https://svelte.dev/e/svelte_element_invalid_this_value");
359
526
  }
360
- const Ce = 0, Mt = 1;
361
- let gn = Ce, hn = !1, en = !1, Kn = !1;
362
- function ee(n) {
363
- en = n;
527
+ const Pt = 0, Wn = 1;
528
+ let he = !1, Se = Pt, ye = !1, me = null, re = !1, et = !1;
529
+ function it(e) {
530
+ re = e;
364
531
  }
365
- function te(n) {
366
- Kn = n;
532
+ function ut(e) {
533
+ et = e;
367
534
  }
368
- let U = [], tn = 0;
535
+ let J = [], se = 0;
369
536
  let y = null;
370
- function H(n) {
371
- y = n;
537
+ function W(e) {
538
+ y = e;
372
539
  }
373
540
  let v = null;
374
- function B(n) {
375
- v = n;
541
+ function j(e) {
542
+ v = e;
376
543
  }
377
- let D = null;
378
- function Pt(n) {
379
- D = n;
544
+ let R = null;
545
+ function jn(e) {
546
+ R = e;
380
547
  }
381
- let E = null, A = 0, F = null;
382
- function qt(n) {
383
- F = n;
548
+ let b = null, A = 0, U = null;
549
+ function Gn(e) {
550
+ U = e;
384
551
  }
385
- let Ie = 0, Y = !1, cn = !1, X = /* @__PURE__ */ new Set(), h = null;
386
- function la(n) {
387
- h = n;
552
+ let qt = 1, Y = !1, P = null;
553
+ function lt(e) {
554
+ P = e;
388
555
  }
389
- let jn = null;
390
- function re(n) {
391
- jn = n;
556
+ let p = null;
557
+ function Is(e) {
558
+ p = e;
392
559
  }
393
- function Oe() {
394
- return ++Ie;
560
+ let tt = null;
561
+ function ft(e) {
562
+ tt = e;
395
563
  }
396
564
  function Ft() {
397
- return !Ot;
565
+ return ++qt;
398
566
  }
399
- function un(n) {
400
- var o, c;
401
- var e = n.f;
402
- if (e & $)
567
+ function zn() {
568
+ return !Fn;
569
+ }
570
+ function fe(e) {
571
+ var i;
572
+ var t = e.f;
573
+ if (t & F)
403
574
  return !0;
404
- if (e & on) {
405
- var t = n.deps, r = (e & G) !== 0;
406
- if (t !== null) {
407
- var a;
408
- if (e & Tn) {
409
- for (a = 0; a < t.length; a++)
410
- ((o = t[a]).reactions ?? (o.reactions = [])).push(n);
411
- n.f ^= Tn;
575
+ if (t & ie) {
576
+ var n = e.deps, r = (t & X) !== 0;
577
+ if (n !== null) {
578
+ var s, o, a = (t & xe) !== 0, c = r && v !== null && !Y, u = n.length;
579
+ if (a || c) {
580
+ for (s = 0; s < u; s++)
581
+ o = n[s], (a || !((i = o == null ? void 0 : o.reactions) != null && i.includes(e))) && (o.reactions ?? (o.reactions = [])).push(e);
582
+ a && (e.f ^= xe);
412
583
  }
413
- for (a = 0; a < t.length; a++) {
414
- var i = t[a];
415
- if (un(
584
+ for (s = 0; s < u; s++)
585
+ if (o = n[s], fe(
416
586
  /** @type {Derived} */
417
- i
418
- ) && Ne(
587
+ o
588
+ ) && Mt(
419
589
  /** @type {Derived} */
420
- i
421
- ), r && v !== null && !Y && !((c = i == null ? void 0 : i.reactions) != null && c.includes(n)) && (i.reactions ?? (i.reactions = [])).push(n), i.version > n.version)
590
+ o
591
+ ), o.version > e.version)
422
592
  return !0;
423
- }
424
593
  }
425
- r || I(n, b);
594
+ (!r || v !== null && !Y) && I(e, g);
426
595
  }
427
596
  return !1;
428
597
  }
429
- function $t(n, e, t) {
430
- throw n;
598
+ function Kn(e, t) {
599
+ for (var n = t; n !== null; ) {
600
+ if (n.f & qe)
601
+ try {
602
+ n.fn(e);
603
+ return;
604
+ } catch {
605
+ n.f ^= qe;
606
+ }
607
+ n = n.parent;
608
+ }
609
+ throw he = !1, e;
610
+ }
611
+ function Jn(e) {
612
+ return (e.f & ue) === 0 && (e.parent === null || (e.parent.f & qe) === 0);
613
+ }
614
+ function Ds() {
615
+ he = !1;
431
616
  }
432
- function De(n) {
617
+ function Ie(e, t, n, r) {
618
+ if (he) {
619
+ if (n === null && (he = !1), Jn(t))
620
+ throw e;
621
+ return;
622
+ }
623
+ n !== null && (he = !0);
624
+ {
625
+ Kn(e, t);
626
+ return;
627
+ }
628
+ }
629
+ function $t(e) {
433
630
  var _;
434
- var e = E, t = A, r = F, a = y, i = Y, o = D, c = h, u = n.f;
435
- E = /** @type {null | Value[]} */
436
- null, A = 0, F = null, y = u & (M | kn) ? null : n, Y = !en && (u & G) !== 0, D = null, h = n.ctx;
631
+ var t = b, n = A, r = U, s = y, o = Y, a = R, c = p, u = e.f;
632
+ b = /** @type {null | Value[]} */
633
+ null, A = 0, U = null, y = u & (M | ge) ? null : e, Y = !re && (u & X) !== 0, R = null, p = e.ctx;
437
634
  try {
438
- var s = (
635
+ var i = (
439
636
  /** @type {Function} */
440
- (0, n.fn)()
441
- ), l = n.deps;
442
- if (E !== null) {
637
+ (0, e.fn)()
638
+ ), l = e.deps;
639
+ if (b !== null) {
443
640
  var f;
444
- if (yn(n, A), l !== null && A > 0)
445
- for (l.length = A + E.length, f = 0; f < E.length; f++)
446
- l[A + f] = E[f];
641
+ if (we(e, A), l !== null && A > 0)
642
+ for (l.length = A + b.length, f = 0; f < b.length; f++)
643
+ l[A + f] = b[f];
447
644
  else
448
- n.deps = l = E;
645
+ e.deps = l = b;
449
646
  if (!Y)
450
647
  for (f = A; f < l.length; f++)
451
- ((_ = l[f]).reactions ?? (_.reactions = [])).push(n);
452
- } else l !== null && A < l.length && (yn(n, A), l.length = A);
453
- return s;
648
+ ((_ = l[f]).reactions ?? (_.reactions = [])).push(e);
649
+ } else l !== null && A < l.length && (we(e, A), l.length = A);
650
+ return i;
454
651
  } finally {
455
- E = e, A = t, F = r, y = a, Y = i, D = o, h = c;
652
+ b = t, A = n, U = r, y = s, Y = o, R = a, p = c;
456
653
  }
457
654
  }
458
- function Ht(n, e) {
459
- let t = e.reactions;
460
- if (t !== null) {
461
- var r = t.indexOf(n);
655
+ function Xn(e, t) {
656
+ let n = t.reactions;
657
+ if (n !== null) {
658
+ var r = n.indexOf(e);
462
659
  if (r !== -1) {
463
- var a = t.length - 1;
464
- a === 0 ? t = e.reactions = null : (t[r] = t[a], t.pop());
660
+ var s = n.length - 1;
661
+ s === 0 ? n = t.reactions = null : (n[r] = n[s], n.pop());
465
662
  }
466
663
  }
467
- t === null && e.f & R && // Destroying a child effect while updating a parent effect can cause a dependency to appear
664
+ n === null && t.f & S && // Destroying a child effect while updating a parent effect can cause a dependency to appear
468
665
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
469
666
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
470
- (E === null || !E.includes(e)) && (I(e, on), e.f & (G | Tn) || (e.f ^= Tn), yn(
667
+ (b === null || !b.includes(t)) && (I(t, ie), t.f & (X | xe) || (t.f ^= xe), we(
471
668
  /** @type {Derived} **/
472
- e,
669
+ t,
473
670
  0
474
671
  ));
475
672
  }
476
- function yn(n, e) {
477
- var t = n.deps;
478
- if (t !== null)
479
- for (var r = e; r < t.length; r++)
480
- Ht(n, t[r]);
481
- }
482
- function En(n) {
483
- var e = n.f;
484
- if (!(e & wn)) {
485
- I(n, b);
486
- var t = v;
487
- v = n;
673
+ function we(e, t) {
674
+ var n = e.deps;
675
+ if (n !== null)
676
+ for (var r = t; r < n.length; r++)
677
+ Xn(e, n[r]);
678
+ }
679
+ function Ee(e) {
680
+ var t = e.f;
681
+ if (!(t & ue)) {
682
+ I(e, g);
683
+ var n = v, r = p;
684
+ v = e;
488
685
  try {
489
- e & Bn ? rr(n) : Ye(n), Ue(n), Ve(n);
490
- var r = De(n);
491
- n.teardown = typeof r == "function" ? r : null, n.version = Ie;
492
- } catch (a) {
493
- $t(
494
- /** @type {Error} */
495
- a
496
- );
686
+ t & ze ? hr(e) : Xt(e), Jt(e), Kt(e);
687
+ var s = $t(e);
688
+ e.teardown = typeof s == "function" ? s : null, e.version = qt;
689
+ var o = e.deps, a;
690
+ Pe && $n && e.f & F;
691
+ } catch (c) {
692
+ Ie(c, e, n, r || e.ctx);
497
693
  } finally {
498
- v = t;
694
+ v = n;
499
695
  }
500
696
  }
501
697
  }
502
- function Re() {
503
- tn > 1e3 && (tn = 0, St()), tn++;
504
- }
505
- function Le(n) {
506
- var e = n.length;
507
- if (e !== 0) {
508
- Re();
509
- var t = en;
510
- en = !0;
698
+ function Bt() {
699
+ if (se > 1e3) {
700
+ se = 0;
701
+ try {
702
+ Dn();
703
+ } catch (e) {
704
+ if (me !== null)
705
+ Ie(e, me, null);
706
+ else
707
+ throw e;
708
+ }
709
+ }
710
+ se++;
711
+ }
712
+ function Ht(e) {
713
+ var t = e.length;
714
+ if (t !== 0) {
715
+ Bt();
716
+ var n = re;
717
+ re = !0;
511
718
  try {
512
- for (var r = 0; r < e; r++) {
513
- var a = n[r];
514
- a.f & b || (a.f ^= b);
515
- var i = [];
516
- Me(a, i), Bt(i);
719
+ for (var r = 0; r < t; r++) {
720
+ var s = e[r];
721
+ s.f & g || (s.f ^= g);
722
+ var o = [];
723
+ Yt(s, o), Zn(o);
517
724
  }
518
725
  } finally {
519
- en = t;
726
+ re = n;
520
727
  }
521
728
  }
522
729
  }
523
- function Bt(n) {
524
- var e = n.length;
525
- if (e !== 0)
526
- for (var t = 0; t < e; t++) {
527
- var r = n[t];
528
- !(r.f & (wn | rn)) && un(r) && (En(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? We(r) : r.fn = null));
730
+ function Zn(e) {
731
+ var t = e.length;
732
+ if (t !== 0)
733
+ for (var n = 0; n < t; n++) {
734
+ var r = e[n];
735
+ if (!(r.f & (ue | oe)))
736
+ try {
737
+ fe(r) && (Ee(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? Zt(r) : r.fn = null));
738
+ } catch (s) {
739
+ Ie(s, r, null, r.ctx);
740
+ }
529
741
  }
530
742
  }
531
- function Vt() {
532
- if (hn = !1, tn > 1001)
743
+ function Qn() {
744
+ if (ye = !1, se > 1001)
533
745
  return;
534
- const n = U;
535
- U = [], Le(n), hn || (tn = 0);
536
- }
537
- function xn(n) {
538
- gn === Ce && (hn || (hn = !0, queueMicrotask(Vt)));
539
- for (var e = n; e.parent !== null; ) {
540
- e = e.parent;
541
- var t = e.f;
542
- if (t & (kn | M)) {
543
- if (!(t & b)) return;
544
- e.f ^= b;
746
+ const e = J;
747
+ J = [], Ht(e), ye || (se = 0, me = null);
748
+ }
749
+ function De(e) {
750
+ Se === Pt && (ye || (ye = !0, queueMicrotask(Qn))), me = e;
751
+ for (var t = e; t.parent !== null; ) {
752
+ t = t.parent;
753
+ var n = t.f;
754
+ if (n & (ge | M)) {
755
+ if (!(n & g)) return;
756
+ t.f ^= g;
545
757
  }
546
758
  }
547
- U.push(e);
548
- }
549
- function Me(n, e) {
550
- var t = n.first, r = [];
551
- n: for (; t !== null; ) {
552
- var a = t.f, i = (a & M) !== 0, o = i && (a & b) !== 0;
553
- if (!o && !(a & rn))
554
- if (a & mn) {
555
- i ? t.f ^= b : un(t) && En(t);
556
- var c = t.first;
557
- if (c !== null) {
558
- t = c;
759
+ J.push(t);
760
+ }
761
+ function Yt(e, t) {
762
+ var n = e.first, r = [];
763
+ e: for (; n !== null; ) {
764
+ var s = n.f, o = (s & M) !== 0, a = o && (s & g) !== 0, c = n.next;
765
+ if (!a && !(s & oe))
766
+ if (s & be) {
767
+ if (o)
768
+ n.f ^= g;
769
+ else
770
+ try {
771
+ fe(n) && Ee(n);
772
+ } catch (f) {
773
+ Ie(f, n, null, n.ctx);
774
+ }
775
+ var u = n.first;
776
+ if (u !== null) {
777
+ n = u;
559
778
  continue;
560
779
  }
561
- } else a & le && r.push(t);
562
- var u = t.next;
563
- if (u === null) {
564
- let f = t.parent;
780
+ } else s & ht && r.push(n);
781
+ if (c === null) {
782
+ let f = n.parent;
565
783
  for (; f !== null; ) {
566
- if (n === f)
567
- break n;
568
- var s = f.next;
569
- if (s !== null) {
570
- t = s;
571
- continue n;
784
+ if (e === f)
785
+ break e;
786
+ var i = f.next;
787
+ if (i !== null) {
788
+ n = i;
789
+ continue e;
572
790
  }
573
791
  f = f.parent;
574
792
  }
575
793
  }
576
- t = u;
794
+ n = c;
577
795
  }
578
796
  for (var l = 0; l < r.length; l++)
579
- c = r[l], e.push(c), Me(c, e);
797
+ u = r[l], t.push(u), Yt(u, t);
580
798
  }
581
- function zn(n) {
582
- var e = gn, t = U;
799
+ function nt(e) {
800
+ var t = Se, n = J;
583
801
  try {
584
- Re();
585
- const a = [];
586
- gn = Mt, U = a, hn = !1, Le(t);
587
- var r = n == null ? void 0 : n();
588
- return dt(), (U.length > 0 || a.length > 0) && zn(), tn = 0, r;
802
+ Bt();
803
+ const s = [];
804
+ Se = Wn, J = s, ye = !1, Ht(n);
805
+ var r = e == null ? void 0 : e();
806
+ return bn(), (J.length > 0 || s.length > 0) && nt(), se = 0, me = null, r;
589
807
  } finally {
590
- gn = e, U = t;
808
+ Se = t, J = n;
591
809
  }
592
810
  }
593
- async function Ut() {
594
- await Promise.resolve(), zn();
811
+ async function er() {
812
+ await Promise.resolve(), nt();
595
813
  }
596
- function P(n) {
597
- var c;
598
- var e = n.f, t = (e & R) !== 0;
599
- if (t && e & wn) {
600
- var r = xe(
814
+ function q(e) {
815
+ var l;
816
+ var t = e.f, n = (t & S) !== 0;
817
+ if (n && t & ue) {
818
+ var r = Lt(
601
819
  /** @type {Derived} */
602
- n
820
+ e
603
821
  );
604
- return Gn(
822
+ return Qe(
605
823
  /** @type {Derived} */
606
- n
824
+ e
607
825
  ), r;
608
826
  }
609
- if (cn && X.add(n), y !== null) {
610
- D !== null && D.includes(n) && Ct();
611
- var a = y.deps;
612
- E === null && a !== null && a[A] === n ? A++ : E === null ? E = [n] : E.push(n), F !== null && v !== null && v.f & b && !(v.f & M) && F.includes(n) && (I(v, $), xn(v));
613
- } else if (t && /** @type {Derived} */
614
- n.deps === null) {
615
- var i = (
827
+ if (P !== null && P.add(e), y !== null) {
828
+ R !== null && R.includes(e) && Pn();
829
+ var s = y.deps;
830
+ b === null && s !== null && s[A] === e ? A++ : b === null ? b = [e] : b.push(e), U !== null && v !== null && v.f & g && !(v.f & M) && U.includes(e) && (I(v, F), De(v));
831
+ } else if (n && /** @type {Derived} */
832
+ e.deps === null)
833
+ for (var o = (
616
834
  /** @type {Derived} */
617
- n
618
- ), o = i.parent;
619
- o !== null && !((c = o.deriveds) != null && c.includes(i)) && (o.deriveds ?? (o.deriveds = [])).push(i);
620
- }
621
- return t && (i = /** @type {Derived} */
622
- n, un(i) && Ne(i)), n.v;
835
+ e
836
+ ), a = o.parent, c = o; a !== null; )
837
+ if (a.f & S) {
838
+ var u = (
839
+ /** @type {Derived} */
840
+ a
841
+ );
842
+ c = u, a = u.parent;
843
+ } else {
844
+ var i = (
845
+ /** @type {Effect} */
846
+ a
847
+ );
848
+ (l = i.deriveds) != null && l.includes(c) || (i.deriveds ?? (i.deriveds = [])).push(c);
849
+ break;
850
+ }
851
+ return n && (o = /** @type {Derived} */
852
+ e, fe(o) && Mt(o)), e.v;
623
853
  }
624
- function fa(n) {
625
- return n && P(n);
854
+ function Rs(e) {
855
+ return e && q(e);
626
856
  }
627
- function ca(n) {
628
- var e = cn, t = X;
629
- cn = !0, X = /* @__PURE__ */ new Set();
630
- var r = X, a;
857
+ function tr(e) {
858
+ var t = P;
859
+ P = /* @__PURE__ */ new Set();
860
+ var n = P, r;
631
861
  try {
632
- ln(n);
862
+ if (G(e), t !== null)
863
+ for (r of P)
864
+ t.add(r);
633
865
  } finally {
634
- if (cn = e, cn)
635
- for (a of X)
636
- t.add(a);
637
- X = t;
866
+ P = t;
638
867
  }
639
- for (a of r)
640
- if (a.f & ft)
868
+ return n;
869
+ }
870
+ function Ls(e) {
871
+ var t = tr(() => G(e));
872
+ for (var n of t)
873
+ if (n.f & yn)
641
874
  for (
642
- const i of
875
+ const r of
643
876
  /** @type {Derived} */
644
- a.deps || []
877
+ n.deps || []
645
878
  )
646
- i.f & R || ne(
647
- i,
648
- null
649
- /* doesnt matter */
650
- );
879
+ r.f & S || Ye(r, r.v);
651
880
  else
652
- ne(
653
- a,
654
- null
655
- /* doesnt matter */
656
- );
881
+ Ye(n, n.v);
657
882
  }
658
- function ln(n) {
659
- const e = y;
883
+ function G(e) {
884
+ const t = y;
660
885
  try {
661
- return y = null, n();
886
+ return y = null, e();
662
887
  } finally {
663
- y = e;
888
+ y = t;
664
889
  }
665
890
  }
666
- const Yt = ~($ | on | b);
667
- function I(n, e) {
668
- n.f = n.f & Yt | e;
891
+ const nr = ~(F | ie | g);
892
+ function I(e, t) {
893
+ e.f = e.f & nr | t;
669
894
  }
670
- function Wt(n) {
895
+ function rr(e) {
671
896
  return (
672
897
  /** @type {T} */
673
- Nn().get(n)
898
+ Re().get(e)
674
899
  );
675
900
  }
676
- function Gt(n, e) {
677
- return Nn().set(n, e), e;
901
+ function sr(e, t) {
902
+ return Re().set(e, t), t;
678
903
  }
679
- function Kt(n) {
680
- return Nn().has(n);
904
+ function or(e) {
905
+ return Re().has(e);
681
906
  }
682
- function jt() {
683
- return Nn();
907
+ function ar() {
908
+ return Re();
684
909
  }
685
- function Nn(n) {
686
- return h === null && sn(), h.c ?? (h.c = new Map(zt(h) || void 0));
910
+ function Re(e) {
911
+ return p === null && le(), p.c ?? (p.c = new Map(ir(p) || void 0));
687
912
  }
688
- function zt(n) {
689
- let e = n.p;
690
- for (; e !== null; ) {
691
- const t = e.c;
692
- if (t !== null)
693
- return t;
694
- e = e.p;
913
+ function ir(e) {
914
+ let t = e.p;
915
+ for (; t !== null; ) {
916
+ const n = t.c;
917
+ if (n !== null)
918
+ return n;
919
+ t = t.p;
695
920
  }
696
921
  return null;
697
922
  }
698
- function _a(n, e = 1) {
699
- var t = +P(n);
700
- return x(n, t + e), t;
923
+ function Ms(e, t = 1) {
924
+ var n = q(e), r = t === 1 ? n++ : n--;
925
+ return C(e, n), r;
701
926
  }
702
- function da(n, e = 1) {
703
- return x(n, +P(n) + e);
927
+ function Ps(e, t = 1) {
928
+ var n = q(e);
929
+ return C(e, t === 1 ? ++n : --n);
704
930
  }
705
- function va(n, e) {
706
- var t = {};
707
- for (var r in n)
708
- e.includes(r) || (t[r] = n[r]);
709
- return t;
931
+ function qs(e, t) {
932
+ var n = {};
933
+ for (var r in e)
934
+ t.includes(r) || (n[r] = e[r]);
935
+ return n;
710
936
  }
711
- function Zt(n, e = !1, t) {
712
- h = {
713
- p: h,
937
+ function ur(e, t = !1, n) {
938
+ p = {
939
+ p,
714
940
  c: null,
715
941
  e: null,
716
942
  m: !1,
717
- s: n,
943
+ s: e,
718
944
  x: null,
719
945
  l: null
720
946
  };
721
947
  }
722
- function Jt(n) {
723
- const e = h;
724
- if (e !== null) {
725
- n !== void 0 && (e.x = n);
726
- const o = e.e;
727
- if (o !== null) {
728
- var t = v, r = y;
729
- e.e = null;
948
+ function lr(e) {
949
+ const t = p;
950
+ if (t !== null) {
951
+ e !== void 0 && (t.x = e);
952
+ const a = t.e;
953
+ if (a !== null) {
954
+ var n = v, r = y;
955
+ t.e = null;
730
956
  try {
731
- for (var a = 0; a < o.length; a++) {
732
- var i = o[a];
733
- B(i.effect), H(i.reaction), He(i.fn);
957
+ for (var s = 0; s < a.length; s++) {
958
+ var o = a[s];
959
+ j(o.effect), W(o.reaction), Gt(o.fn);
734
960
  }
735
961
  } finally {
736
- B(t), H(r);
962
+ j(n), W(r);
737
963
  }
738
964
  }
739
- h = e.p, e.m = !0;
965
+ p = t.p, t.m = !0;
740
966
  }
741
- return n || /** @type {T} */
967
+ return e || /** @type {T} */
742
968
  {};
743
969
  }
744
- function pa(n) {
745
- if (!(typeof n != "object" || !n || n instanceof EventTarget)) {
746
- if (W in n)
747
- Ln(n);
748
- else if (!Array.isArray(n))
749
- for (let e in n) {
750
- const t = n[e];
751
- typeof t == "object" && t && W in t && Ln(t);
970
+ function Fs(e) {
971
+ if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
972
+ if (V in e)
973
+ Ve(e);
974
+ else if (!Array.isArray(e))
975
+ for (let t in e) {
976
+ const n = e[t];
977
+ typeof n == "object" && n && V in n && Ve(n);
752
978
  }
753
979
  }
754
980
  }
755
- function Ln(n, e = /* @__PURE__ */ new Set()) {
756
- if (typeof n == "object" && n !== null && // We don't want to traverse DOM elements
757
- !(n instanceof EventTarget) && !e.has(n)) {
758
- e.add(n), n instanceof Date && n.getTime();
759
- for (let r in n)
981
+ function Ve(e, t = /* @__PURE__ */ new Set()) {
982
+ if (typeof e == "object" && e !== null && // We don't want to traverse DOM elements
983
+ !(e instanceof EventTarget) && !t.has(e)) {
984
+ t.add(e), e instanceof Date && e.getTime();
985
+ for (let r in e)
760
986
  try {
761
- Ln(n[r], e);
987
+ Ve(e[r], t);
762
988
  } catch {
763
989
  }
764
- const t = Hn(n);
765
- if (t !== Object.prototype && t !== Array.prototype && t !== Map.prototype && t !== Set.prototype && t !== Date.prototype) {
766
- const r = it(t);
767
- for (let a in r) {
768
- const i = r[a].get;
769
- if (i)
990
+ const n = Oe(e);
991
+ if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
992
+ const r = dn(n);
993
+ for (let s in r) {
994
+ const o = r[s].get;
995
+ if (o)
770
996
  try {
771
- i.call(n);
997
+ o.call(e);
772
998
  } catch {
773
999
  }
774
1000
  }
@@ -776,1272 +1002,1307 @@ function Ln(n, e = /* @__PURE__ */ new Set()) {
776
1002
  }
777
1003
  }
778
1004
  let m = !1;
779
- function nn(n) {
780
- m = n;
1005
+ function ne(e) {
1006
+ m = e;
781
1007
  }
782
1008
  let d;
783
- function C(n) {
784
- if (n === null)
785
- throw Un(), vn;
786
- return d = n;
1009
+ function O(e) {
1010
+ if (e === null)
1011
+ throw Je(), ve;
1012
+ return d = e;
787
1013
  }
788
- function Zn() {
789
- return C(
1014
+ function rt() {
1015
+ return O(
790
1016
  /** @type {TemplateNode} */
791
1017
  /* @__PURE__ */ L(d)
792
1018
  );
793
1019
  }
794
- function ha(n) {
1020
+ function $s(e) {
795
1021
  if (m) {
796
1022
  if (/* @__PURE__ */ L(d) !== null)
797
- throw Un(), vn;
798
- d = n;
1023
+ throw Je(), ve;
1024
+ d = e;
799
1025
  }
800
1026
  }
801
- function ya(n) {
802
- m && (d = n.content);
1027
+ function Bs(e) {
1028
+ m && (d = e.content);
803
1029
  }
804
- function ma(n = 1) {
1030
+ function Hs(e = 1) {
805
1031
  if (m) {
806
- for (var e = n, t = d; e--; )
807
- t = /** @type {TemplateNode} */
808
- /* @__PURE__ */ L(t);
809
- d = t;
1032
+ for (var t = e, n = d; t--; )
1033
+ n = /** @type {TemplateNode} */
1034
+ /* @__PURE__ */ L(n);
1035
+ d = n;
810
1036
  }
811
1037
  }
812
- function wa() {
813
- for (var n = 0, e = d; ; ) {
814
- if (e.nodeType === 8) {
815
- var t = (
1038
+ function Ys() {
1039
+ for (var e = 0, t = d; ; ) {
1040
+ if (t.nodeType === 8) {
1041
+ var n = (
816
1042
  /** @type {Comment} */
817
- e.data
1043
+ t.data
818
1044
  );
819
- if (t === me) {
820
- if (n === 0) return e;
821
- n -= 1;
822
- } else (t === Yn || t === yt) && (n += 1);
1045
+ if (n === St) {
1046
+ if (e === 0) return t;
1047
+ e -= 1;
1048
+ } else (n === Xe || n === An) && (e += 1);
823
1049
  }
824
1050
  var r = (
825
1051
  /** @type {TemplateNode} */
826
- /* @__PURE__ */ L(e)
1052
+ /* @__PURE__ */ L(t)
827
1053
  );
828
- e.remove(), e = r;
1054
+ t.remove(), t = r;
829
1055
  }
830
1056
  }
831
- function fn(n, e = null, t) {
832
- if (typeof n != "object" || n === null || W in n)
833
- return n;
834
- const r = Hn(n);
835
- if (r !== ot && r !== st)
836
- return n;
837
- var a = /* @__PURE__ */ new Map(), i = $n(n), o = O(0);
838
- i && a.set("length", O(
1057
+ function ce(e, t = null, n) {
1058
+ if (typeof e != "object" || e === null || V in e)
1059
+ return e;
1060
+ const r = Oe(e);
1061
+ if (r !== vt && r !== vn)
1062
+ return e;
1063
+ var s = /* @__PURE__ */ new Map(), o = Ne(e), a = D(0);
1064
+ o && s.set("length", D(
839
1065
  /** @type {any[]} */
840
- n.length
1066
+ e.length
841
1067
  ));
842
1068
  var c;
843
1069
  return new Proxy(
844
1070
  /** @type {any} */
845
- n,
1071
+ e,
846
1072
  {
847
- defineProperty(u, s, l) {
848
- (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && xt();
849
- var f = a.get(s);
850
- return f === void 0 ? (f = O(l.value), a.set(s, f)) : x(f, fn(l.value, c)), !0;
1073
+ defineProperty(u, i, l) {
1074
+ (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Ln();
1075
+ var f = s.get(i);
1076
+ return f === void 0 ? (f = D(l.value), s.set(i, f)) : C(f, ce(l.value, c)), !0;
851
1077
  },
852
- deleteProperty(u, s) {
853
- var l = a.get(s);
1078
+ deleteProperty(u, i) {
1079
+ var l = s.get(i);
854
1080
  if (l === void 0)
855
- s in u && a.set(s, O(T));
1081
+ i in u && s.set(i, D(E));
856
1082
  else {
857
- if (i && typeof s == "string") {
1083
+ if (o && typeof i == "string") {
858
1084
  var f = (
859
1085
  /** @type {Source<number>} */
860
- a.get("length")
861
- ), _ = Number(s);
862
- Number.isInteger(_) && _ < f.v && x(f, _);
1086
+ s.get("length")
1087
+ ), _ = Number(i);
1088
+ Number.isInteger(_) && _ < f.v && C(f, _);
863
1089
  }
864
- x(l, T), ae(o);
1090
+ C(l, E), ct(a);
865
1091
  }
866
1092
  return !0;
867
1093
  },
868
- get(u, s, l) {
1094
+ get(u, i, l) {
869
1095
  var w;
870
- if (s === W)
871
- return n;
872
- var f = a.get(s), _ = s in u;
873
- if (f === void 0 && (!_ || (w = dn(u, s)) != null && w.writable) && (f = O(fn(_ ? u[s] : T, c)), a.set(s, f)), f !== void 0) {
874
- var p = P(f);
875
- return p === T ? void 0 : p;
1096
+ if (i === V)
1097
+ return e;
1098
+ var f = s.get(i), _ = i in u;
1099
+ if (f === void 0 && (!_ || (w = de(u, i)) != null && w.writable) && (f = D(ce(_ ? u[i] : E, c)), s.set(i, f)), f !== void 0) {
1100
+ var h = q(f);
1101
+ return h === E ? void 0 : h;
876
1102
  }
877
- return Reflect.get(u, s, l);
1103
+ return Reflect.get(u, i, l);
878
1104
  },
879
- getOwnPropertyDescriptor(u, s) {
880
- var l = Reflect.getOwnPropertyDescriptor(u, s);
1105
+ getOwnPropertyDescriptor(u, i) {
1106
+ var l = Reflect.getOwnPropertyDescriptor(u, i);
881
1107
  if (l && "value" in l) {
882
- var f = a.get(s);
883
- f && (l.value = P(f));
1108
+ var f = s.get(i);
1109
+ f && (l.value = q(f));
884
1110
  } else if (l === void 0) {
885
- var _ = a.get(s), p = _ == null ? void 0 : _.v;
886
- if (_ !== void 0 && p !== T)
1111
+ var _ = s.get(i), h = _ == null ? void 0 : _.v;
1112
+ if (_ !== void 0 && h !== E)
887
1113
  return {
888
1114
  enumerable: !0,
889
1115
  configurable: !0,
890
- value: p,
1116
+ value: h,
891
1117
  writable: !0
892
1118
  };
893
1119
  }
894
1120
  return l;
895
1121
  },
896
- has(u, s) {
897
- var p;
898
- if (s === W)
1122
+ has(u, i) {
1123
+ var h;
1124
+ if (i === V)
899
1125
  return !0;
900
- var l = a.get(s), f = l !== void 0 && l.v !== T || Reflect.has(u, s);
901
- if (l !== void 0 || v !== null && (!f || (p = dn(u, s)) != null && p.writable)) {
902
- l === void 0 && (l = O(f ? fn(u[s], c) : T), a.set(s, l));
903
- var _ = P(l);
904
- if (_ === T)
1126
+ var l = s.get(i), f = l !== void 0 && l.v !== E || Reflect.has(u, i);
1127
+ if (l !== void 0 || v !== null && (!f || (h = de(u, i)) != null && h.writable)) {
1128
+ l === void 0 && (l = D(f ? ce(u[i], c) : E), s.set(i, l));
1129
+ var _ = q(l);
1130
+ if (_ === E)
905
1131
  return !1;
906
1132
  }
907
1133
  return f;
908
1134
  },
909
- set(u, s, l, f) {
910
- var V;
911
- var _ = a.get(s), p = s in u;
912
- if (i && s === "length")
1135
+ set(u, i, l, f) {
1136
+ var K;
1137
+ var _ = s.get(i), h = i in u;
1138
+ if (o && i === "length")
913
1139
  for (var w = l; w < /** @type {Source<number>} */
914
1140
  _.v; w += 1) {
915
- var S = a.get(w + "");
916
- S !== void 0 ? x(S, T) : w in u && (S = O(T), a.set(w + "", S));
1141
+ var x = s.get(w + "");
1142
+ x !== void 0 ? C(x, E) : w in u && (x = D(E), s.set(w + "", x));
917
1143
  }
918
- _ === void 0 ? (!p || (V = dn(u, s)) != null && V.writable) && (_ = O(void 0), x(_, fn(l, c)), a.set(s, _)) : (p = _.v !== T, x(_, fn(l, c)));
919
- var z = Reflect.getOwnPropertyDescriptor(u, s);
920
- if (z != null && z.set && z.set.call(f, l), !p) {
921
- if (i && typeof s == "string") {
922
- var bn = (
1144
+ _ === void 0 ? (!h || (K = de(u, i)) != null && K.writable) && (_ = D(void 0), C(_, ce(l, c)), s.set(i, _)) : (h = _.v !== E, C(_, ce(l, c)));
1145
+ var Z = Reflect.getOwnPropertyDescriptor(u, i);
1146
+ if (Z != null && Z.set && Z.set.call(f, l), !h) {
1147
+ if (o && typeof i == "string") {
1148
+ var Te = (
923
1149
  /** @type {Source<number>} */
924
- a.get("length")
925
- ), Z = Number(s);
926
- Number.isInteger(Z) && Z >= bn.v && x(bn, Z + 1);
1150
+ s.get("length")
1151
+ ), Q = Number(i);
1152
+ Number.isInteger(Q) && Q >= Te.v && C(Te, Q + 1);
927
1153
  }
928
- ae(o);
1154
+ ct(a);
929
1155
  }
930
1156
  return !0;
931
1157
  },
932
1158
  ownKeys(u) {
933
- P(o);
934
- var s = Reflect.ownKeys(u).filter((_) => {
935
- var p = a.get(_);
936
- return p === void 0 || p.v !== T;
1159
+ q(a);
1160
+ var i = Reflect.ownKeys(u).filter((_) => {
1161
+ var h = s.get(_);
1162
+ return h === void 0 || h.v !== E;
937
1163
  });
938
- for (var [l, f] of a)
939
- f.v !== T && !(l in u) && s.push(l);
940
- return s;
1164
+ for (var [l, f] of s)
1165
+ f.v !== E && !(l in u) && i.push(l);
1166
+ return i;
941
1167
  },
942
1168
  setPrototypeOf() {
943
- Nt();
1169
+ Mn();
944
1170
  }
945
1171
  }
946
1172
  );
947
1173
  }
948
- function ae(n, e = 1) {
949
- x(n, n.v + e);
1174
+ function ct(e, t = 1) {
1175
+ C(e, e.v + t);
950
1176
  }
951
- function an(n) {
952
- return n !== null && typeof n == "object" && W in n ? n[W] : n;
1177
+ function ae(e) {
1178
+ return e !== null && typeof e == "object" && V in e ? e[V] : e;
953
1179
  }
954
- function Ea(n, e) {
955
- return Object.is(an(n), an(e));
1180
+ function Vs(e, t) {
1181
+ return Object.is(ae(e), ae(t));
956
1182
  }
957
- function ba(n, e, t = !0) {
1183
+ function Us(e, t, n = !0) {
958
1184
  try {
959
- n === e != (an(n) === an(e)) && he(t ? "===" : "!==");
1185
+ e === t != (ae(e) === ae(t)) && Tt(n ? "===" : "!==");
960
1186
  } catch {
961
1187
  }
962
- return n === e === t;
1188
+ return e === t === n;
963
1189
  }
964
- function ga(n, e, t = !0) {
965
- return n == e != (an(n) == an(e)) && he(), n == e === t;
1190
+ function Ws(e, t, n = !0) {
1191
+ return e == t != (ae(e) == ae(t)) && Tt(), e == t === n;
966
1192
  }
967
- var ie, Qt, Pe, qe;
968
- function Mn() {
969
- if (ie === void 0) {
970
- ie = window, Qt = document;
971
- var n = Element.prototype, e = Node.prototype;
972
- Pe = dn(e, "firstChild").get, qe = dn(e, "nextSibling").get, n.__click = void 0, n.__className = "", n.__attributes = null, n.__styles = null, n.__e = void 0, Text.prototype.__t = void 0;
1193
+ var _t, fr, Vt, Ut;
1194
+ function Ue() {
1195
+ if (_t === void 0) {
1196
+ _t = window, fr = document;
1197
+ var e = Element.prototype, t = Node.prototype;
1198
+ Vt = de(t, "firstChild").get, Ut = de(t, "nextSibling").get, e.__click = void 0, e.__className = "", e.__attributes = null, e.__styles = null, e.__e = void 0, Text.prototype.__t = void 0;
973
1199
  }
974
1200
  }
975
- function q(n = "") {
976
- return document.createTextNode(n);
1201
+ function $(e = "") {
1202
+ return document.createTextNode(e);
977
1203
  }
978
1204
  // @__NO_SIDE_EFFECTS__
979
- function g(n) {
980
- return Pe.call(n);
1205
+ function T(e) {
1206
+ return Vt.call(e);
981
1207
  }
982
1208
  // @__NO_SIDE_EFFECTS__
983
- function L(n) {
984
- return qe.call(n);
1209
+ function L(e) {
1210
+ return Ut.call(e);
985
1211
  }
986
- function Ta(n, e) {
1212
+ function js(e, t) {
987
1213
  if (!m)
988
- return /* @__PURE__ */ g(n);
989
- var t = (
1214
+ return /* @__PURE__ */ T(e);
1215
+ var n = (
990
1216
  /** @type {TemplateNode} */
991
- /* @__PURE__ */ g(d)
1217
+ /* @__PURE__ */ T(d)
992
1218
  );
993
- if (t === null)
994
- t = d.appendChild(q());
995
- else if (e && t.nodeType !== 3) {
996
- var r = q();
997
- return t == null || t.before(r), C(r), r;
1219
+ if (n === null)
1220
+ n = d.appendChild($());
1221
+ else if (t && n.nodeType !== 3) {
1222
+ var r = $();
1223
+ return n == null || n.before(r), O(r), r;
998
1224
  }
999
- return C(t), t;
1225
+ return O(n), n;
1000
1226
  }
1001
- function Aa(n, e) {
1227
+ function Gs(e, t) {
1002
1228
  if (!m) {
1003
- var t = (
1229
+ var n = (
1004
1230
  /** @type {DocumentFragment} */
1005
- /* @__PURE__ */ g(
1231
+ /* @__PURE__ */ T(
1006
1232
  /** @type {Node} */
1007
- n
1233
+ e
1008
1234
  )
1009
1235
  );
1010
- return t instanceof Comment && t.data === "" ? /* @__PURE__ */ L(t) : t;
1236
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ L(n) : n;
1011
1237
  }
1012
- if (e && (d == null ? void 0 : d.nodeType) !== 3) {
1013
- var r = q();
1014
- return d == null || d.before(r), C(r), r;
1238
+ if (t && (d == null ? void 0 : d.nodeType) !== 3) {
1239
+ var r = $();
1240
+ return d == null || d.before(r), O(r), r;
1015
1241
  }
1016
1242
  return d;
1017
1243
  }
1018
- function Sa(n, e = 1, t = !1) {
1019
- let r = m ? d : n;
1020
- for (; e--; )
1021
- r = /** @type {TemplateNode} */
1244
+ function zs(e, t = 1, n = !1) {
1245
+ let r = m ? d : e;
1246
+ for (var s; t--; )
1247
+ s = r, r = /** @type {TemplateNode} */
1022
1248
  /* @__PURE__ */ L(r);
1023
1249
  if (!m)
1024
1250
  return r;
1025
- var a = r.nodeType;
1026
- if (t && a !== 3) {
1027
- var i = q();
1028
- return r == null || r.before(i), C(i), i;
1251
+ var o = r == null ? void 0 : r.nodeType;
1252
+ if (n && o !== 3) {
1253
+ var a = $();
1254
+ return r === null ? s == null || s.after(a) : r.before(a), O(a), a;
1029
1255
  }
1030
- return C(r), /** @type {TemplateNode} */
1256
+ return O(r), /** @type {TemplateNode} */
1031
1257
  r;
1032
1258
  }
1033
- function Fe(n) {
1034
- n.textContent = "";
1259
+ function Wt(e) {
1260
+ e.textContent = "";
1035
1261
  }
1036
- function $e(n) {
1037
- v === null && y === null && At(), y !== null && y.f & G && Tt(), Kn && gt();
1262
+ function jt(e) {
1263
+ v === null && y === null && In(), y !== null && y.f & X && On(), et && Nn();
1038
1264
  }
1039
- function Xt(n, e) {
1040
- var t = e.last;
1041
- t === null ? e.last = e.first = n : (t.next = n, n.prev = t, e.last = n);
1265
+ function cr(e, t) {
1266
+ var n = t.last;
1267
+ n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1042
1268
  }
1043
- function K(n, e, t, r = !0) {
1044
- var a = (n & kn) !== 0, i = v, o = {
1045
- ctx: h,
1269
+ function z(e, t, n, r = !0) {
1270
+ var s = (e & ge) !== 0, o = v, a = {
1271
+ ctx: p,
1046
1272
  deps: null,
1047
1273
  deriveds: null,
1048
1274
  nodes_start: null,
1049
1275
  nodes_end: null,
1050
- f: n | $,
1276
+ f: e | F,
1051
1277
  first: null,
1052
- fn: e,
1278
+ fn: t,
1053
1279
  last: null,
1054
1280
  next: null,
1055
- parent: a ? null : i,
1281
+ parent: s ? null : o,
1056
1282
  prev: null,
1057
1283
  teardown: null,
1058
1284
  transitions: null,
1059
1285
  version: 0
1060
1286
  };
1061
- if (t) {
1062
- var c = en;
1287
+ if (n) {
1288
+ var c = re;
1063
1289
  try {
1064
- ee(!0), En(o), o.f |= lt;
1290
+ it(!0), Ee(a), a.f |= hn;
1065
1291
  } catch (l) {
1066
- throw j(o), l;
1292
+ throw B(a), l;
1067
1293
  } finally {
1068
- ee(c);
1294
+ it(c);
1069
1295
  }
1070
- } else e !== null && xn(o);
1071
- var u = t && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & ce) === 0;
1072
- if (!u && !a && r && (i !== null && Xt(o, i), y !== null && y.f & R)) {
1073
- var s = (
1296
+ } else t !== null && De(a);
1297
+ var u = n && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & mt) === 0;
1298
+ if (!u && !s && r && (o !== null && cr(a, o), y !== null && y.f & S)) {
1299
+ var i = (
1074
1300
  /** @type {Derived} */
1075
1301
  y
1076
1302
  );
1077
- (s.children ?? (s.children = [])).push(o);
1303
+ (i.children ?? (i.children = [])).push(a);
1078
1304
  }
1079
- return o;
1305
+ return a;
1080
1306
  }
1081
- function ka() {
1307
+ function _r() {
1082
1308
  return y === null ? !1 : !Y;
1083
1309
  }
1084
- function Jn(n) {
1085
- const e = K(mn, null, !1);
1086
- return I(e, b), e.teardown = n, e;
1310
+ function st(e) {
1311
+ const t = z(be, null, !1);
1312
+ return I(t, g), t.teardown = e, t;
1087
1313
  }
1088
- function nr(n) {
1089
- $e();
1090
- var e = v !== null && (v.f & M) !== 0 && h !== null && !h.m;
1091
- if (e) {
1092
- var t = (
1314
+ function dr(e) {
1315
+ jt();
1316
+ var t = v !== null && (v.f & M) !== 0 && p !== null && !p.m;
1317
+ if (t) {
1318
+ var n = (
1093
1319
  /** @type {ComponentContext} */
1094
- h
1320
+ p
1095
1321
  );
1096
- (t.e ?? (t.e = [])).push({
1097
- fn: n,
1322
+ (n.e ?? (n.e = [])).push({
1323
+ fn: e,
1098
1324
  effect: v,
1099
1325
  reaction: y
1100
1326
  });
1101
1327
  } else {
1102
- var r = He(n);
1328
+ var r = Gt(e);
1103
1329
  return r;
1104
1330
  }
1105
1331
  }
1106
- function er(n) {
1107
- return $e(), Cn(n);
1332
+ function vr(e) {
1333
+ return jt(), Le(e);
1108
1334
  }
1109
- function xa(n) {
1110
- return K(ct, n, !0);
1335
+ function Ks(e) {
1336
+ return z(mn, e, !0);
1111
1337
  }
1112
- function tr(n) {
1113
- const e = K(kn, n, !0);
1338
+ function Js(e) {
1339
+ const t = z(ge, e, !0);
1114
1340
  return () => {
1115
- j(e);
1341
+ B(t);
1116
1342
  };
1117
1343
  }
1118
- function He(n) {
1119
- return K(le, n, !1);
1344
+ function pr(e) {
1345
+ const t = z(ge, e, !0);
1346
+ return (n = {}) => new Promise((r) => {
1347
+ n.outro ? yr(t, () => {
1348
+ B(t), r(void 0);
1349
+ }) : (B(t), r(void 0));
1350
+ });
1120
1351
  }
1121
- function Na(n, e) {
1122
- var t = (
1352
+ function Gt(e) {
1353
+ return z(ht, e, !1);
1354
+ }
1355
+ function Xs(e, t) {
1356
+ var n = (
1123
1357
  /** @type {ComponentContextLegacy} */
1124
- h
1358
+ p
1125
1359
  ), r = { effect: null, ran: !1 };
1126
- t.l.r1.push(r), r.effect = Cn(() => {
1127
- n(), !r.ran && (r.ran = !0, x(t.l.r2, !0), ln(e));
1360
+ n.l.r1.push(r), r.effect = Le(() => {
1361
+ e(), !r.ran && (r.ran = !0, C(n.l.r2, !0), G(t));
1128
1362
  });
1129
1363
  }
1130
- function Ca() {
1131
- var n = (
1364
+ function Zs() {
1365
+ var e = (
1132
1366
  /** @type {ComponentContextLegacy} */
1133
- h
1367
+ p
1134
1368
  );
1135
- Cn(() => {
1136
- if (P(n.l.r2)) {
1137
- for (var e of n.l.r1) {
1138
- var t = e.effect;
1139
- t.f & b && I(t, on), un(t) && En(t), e.ran = !1;
1369
+ Le(() => {
1370
+ if (q(e.l.r2)) {
1371
+ for (var t of e.l.r1) {
1372
+ var n = t.effect;
1373
+ n.f & g && I(n, ie), fe(n) && Ee(n), t.ran = !1;
1140
1374
  }
1141
- n.l.r2.v = !1;
1375
+ e.l.r2.v = !1;
1142
1376
  }
1143
1377
  });
1144
1378
  }
1145
- function Cn(n) {
1146
- return K(mn, n, !0);
1379
+ function Le(e) {
1380
+ return z(be, e, !0);
1147
1381
  }
1148
- function Ia(n) {
1149
- return Qn(n);
1382
+ function Qs(e) {
1383
+ return ot(e);
1150
1384
  }
1151
- function Qn(n, e = 0) {
1152
- return K(mn | Bn | e, n, !0);
1385
+ function ot(e, t = 0) {
1386
+ return z(be | ze | t, e, !0);
1153
1387
  }
1154
- function Be(n, e = !0) {
1155
- return K(mn | M, n, !0, e);
1388
+ function zt(e, t = !0) {
1389
+ return z(be | M, e, !0, t);
1156
1390
  }
1157
- function Ve(n) {
1158
- var e = n.teardown;
1159
- if (e !== null) {
1160
- const t = Kn, r = y;
1161
- te(!0), H(null);
1391
+ function Kt(e) {
1392
+ var t = e.teardown;
1393
+ if (t !== null) {
1394
+ const n = et, r = y;
1395
+ ut(!0), W(null);
1162
1396
  try {
1163
- e.call(null);
1397
+ t.call(null);
1164
1398
  } finally {
1165
- te(t), H(r);
1399
+ ut(n), W(r);
1166
1400
  }
1167
1401
  }
1168
1402
  }
1169
- function Ue(n) {
1170
- var e = n.deriveds;
1171
- if (e !== null) {
1172
- n.deriveds = null;
1173
- for (var t = 0; t < e.length; t += 1)
1174
- Gn(e[t]);
1403
+ function Jt(e) {
1404
+ var t = e.deriveds;
1405
+ if (t !== null) {
1406
+ e.deriveds = null;
1407
+ for (var n = 0; n < t.length; n += 1)
1408
+ Qe(t[n]);
1175
1409
  }
1176
1410
  }
1177
- function Ye(n, e = !1) {
1178
- var t = n.first;
1179
- for (n.first = n.last = null; t !== null; ) {
1180
- var r = t.next;
1181
- j(t, e), t = r;
1411
+ function Xt(e, t = !1) {
1412
+ var n = e.first;
1413
+ for (e.first = e.last = null; n !== null; ) {
1414
+ var r = n.next;
1415
+ B(n, t), n = r;
1182
1416
  }
1183
1417
  }
1184
- function rr(n) {
1185
- for (var e = n.first; e !== null; ) {
1186
- var t = e.next;
1187
- e.f & M || j(e), e = t;
1418
+ function hr(e) {
1419
+ for (var t = e.first; t !== null; ) {
1420
+ var n = t.next;
1421
+ t.f & M || B(t), t = n;
1188
1422
  }
1189
1423
  }
1190
- function j(n, e = !0) {
1191
- var t = !1;
1192
- if ((e || n.f & fe) && n.nodes_start !== null) {
1193
- for (var r = n.nodes_start, a = n.nodes_end; r !== null; ) {
1194
- var i = r === a ? null : (
1424
+ function B(e, t = !0) {
1425
+ var n = !1;
1426
+ if ((t || e.f & yt) && e.nodes_start !== null) {
1427
+ for (var r = e.nodes_start, s = e.nodes_end; r !== null; ) {
1428
+ var o = r === s ? null : (
1195
1429
  /** @type {TemplateNode} */
1196
1430
  /* @__PURE__ */ L(r)
1197
1431
  );
1198
- r.remove(), r = i;
1432
+ r.remove(), r = o;
1199
1433
  }
1200
- t = !0;
1434
+ n = !0;
1201
1435
  }
1202
- Ye(n, e && !t), Ue(n), yn(n, 0), I(n, wn);
1203
- var o = n.transitions;
1204
- if (o !== null)
1205
- for (const u of o)
1436
+ Xt(e, t && !n), Jt(e), we(e, 0), I(e, ue);
1437
+ var a = e.transitions;
1438
+ if (a !== null)
1439
+ for (const u of a)
1206
1440
  u.stop();
1207
- Ve(n);
1208
- var c = n.parent;
1209
- c !== null && c.first !== null && We(n), n.next = n.prev = n.teardown = n.ctx = n.deps = n.parent = n.fn = n.nodes_start = n.nodes_end = null;
1210
- }
1211
- function We(n) {
1212
- var e = n.parent, t = n.prev, r = n.next;
1213
- t !== null && (t.next = r), r !== null && (r.prev = t), e !== null && (e.first === n && (e.first = r), e.last === n && (e.last = t));
1214
- }
1215
- function Oa(n, e) {
1216
- var t = [];
1217
- Ge(n, t, !0), ar(t, () => {
1218
- j(n), e && e();
1441
+ Kt(e);
1442
+ var c = e.parent;
1443
+ c !== null && c.first !== null && Zt(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = null;
1444
+ }
1445
+ function Zt(e) {
1446
+ var t = e.parent, n = e.prev, r = e.next;
1447
+ n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1448
+ }
1449
+ function yr(e, t) {
1450
+ var n = [];
1451
+ Qt(e, n, !0), mr(n, () => {
1452
+ B(e), t && t();
1219
1453
  });
1220
1454
  }
1221
- function ar(n, e) {
1222
- var t = n.length;
1223
- if (t > 0) {
1224
- var r = () => --t || e();
1225
- for (var a of n)
1226
- a.out(r);
1455
+ function mr(e, t) {
1456
+ var n = e.length;
1457
+ if (n > 0) {
1458
+ var r = () => --n || t();
1459
+ for (var s of e)
1460
+ s.out(r);
1227
1461
  } else
1228
- e();
1229
- }
1230
- function Ge(n, e, t) {
1231
- if (!(n.f & rn)) {
1232
- if (n.f ^= rn, n.transitions !== null)
1233
- for (const o of n.transitions)
1234
- (o.is_global || t) && e.push(o);
1235
- for (var r = n.first; r !== null; ) {
1236
- var a = r.next, i = (r.f & Vn) !== 0 || (r.f & M) !== 0;
1237
- Ge(r, e, i ? t : !1), r = a;
1462
+ t();
1463
+ }
1464
+ function Qt(e, t, n) {
1465
+ if (!(e.f & oe)) {
1466
+ if (e.f ^= oe, e.transitions !== null)
1467
+ for (const a of e.transitions)
1468
+ (a.is_global || n) && t.push(a);
1469
+ for (var r = e.first; r !== null; ) {
1470
+ var s = r.next, o = (r.f & Ke) !== 0 || (r.f & M) !== 0;
1471
+ Qt(r, t, o ? n : !1), r = s;
1238
1472
  }
1239
1473
  }
1240
1474
  }
1241
- function Da(n) {
1242
- Ke(n, !0);
1475
+ function eo(e) {
1476
+ en(e, !0);
1243
1477
  }
1244
- function Ke(n, e) {
1245
- if (n.f & rn) {
1246
- un(n) && En(n), n.f ^= rn;
1247
- for (var t = n.first; t !== null; ) {
1248
- var r = t.next, a = (t.f & Vn) !== 0 || (t.f & M) !== 0;
1249
- Ke(t, a ? e : !1), t = r;
1478
+ function en(e, t) {
1479
+ if (e.f & oe) {
1480
+ fe(e) && Ee(e), e.f ^= oe;
1481
+ for (var n = e.first; n !== null; ) {
1482
+ var r = n.next, s = (n.f & Ke) !== 0 || (n.f & M) !== 0;
1483
+ en(n, s ? t : !1), n = r;
1250
1484
  }
1251
- if (n.transitions !== null)
1252
- for (const i of n.transitions)
1253
- (i.is_global || e) && i.in();
1485
+ if (e.transitions !== null)
1486
+ for (const o of e.transitions)
1487
+ (o.is_global || t) && o.in();
1254
1488
  }
1255
1489
  }
1256
- function Ra(n, e) {
1257
- if (e) {
1258
- const t = document.body;
1259
- n.autofocus = !0, pe(() => {
1260
- document.activeElement === t && n.focus();
1490
+ const wr = [
1491
+ "area",
1492
+ "base",
1493
+ "br",
1494
+ "col",
1495
+ "command",
1496
+ "embed",
1497
+ "hr",
1498
+ "img",
1499
+ "input",
1500
+ "keygen",
1501
+ "link",
1502
+ "meta",
1503
+ "param",
1504
+ "source",
1505
+ "track",
1506
+ "wbr"
1507
+ ];
1508
+ function to(e) {
1509
+ return wr.includes(e) || e.toLowerCase() === "!doctype";
1510
+ }
1511
+ function no(e) {
1512
+ return e.endsWith("capture") && e !== "gotpointercapture" && e !== "lostpointercapture";
1513
+ }
1514
+ const br = [
1515
+ "beforeinput",
1516
+ "click",
1517
+ "change",
1518
+ "dblclick",
1519
+ "contextmenu",
1520
+ "focusin",
1521
+ "focusout",
1522
+ "input",
1523
+ "keydown",
1524
+ "keyup",
1525
+ "mousedown",
1526
+ "mousemove",
1527
+ "mouseout",
1528
+ "mouseover",
1529
+ "mouseup",
1530
+ "pointerdown",
1531
+ "pointermove",
1532
+ "pointerout",
1533
+ "pointerover",
1534
+ "pointerup",
1535
+ "touchend",
1536
+ "touchmove",
1537
+ "touchstart"
1538
+ ];
1539
+ function ro(e) {
1540
+ return br.includes(e);
1541
+ }
1542
+ const gr = {
1543
+ // no `class: 'className'` because we handle that separately
1544
+ formnovalidate: "formNoValidate",
1545
+ ismap: "isMap",
1546
+ nomodule: "noModule",
1547
+ playsinline: "playsInline",
1548
+ readonly: "readOnly",
1549
+ defaultvalue: "defaultValue",
1550
+ defaultchecked: "defaultChecked",
1551
+ srcobject: "srcObject"
1552
+ };
1553
+ function so(e) {
1554
+ return e = e.toLowerCase(), gr[e] ?? e;
1555
+ }
1556
+ const Er = ["touchstart", "touchmove"];
1557
+ function Tr(e) {
1558
+ return Er.includes(e);
1559
+ }
1560
+ const Ar = (
1561
+ /** @type {const} */
1562
+ ["textarea", "script", "style", "title"]
1563
+ );
1564
+ function oo(e) {
1565
+ return Ar.includes(
1566
+ /** @type {RAW_TEXT_ELEMENTS[number]} */
1567
+ e
1568
+ );
1569
+ }
1570
+ function ao(e) {
1571
+ return e == null ? void 0 : e.replace(/\//g, "/​");
1572
+ }
1573
+ function io(e, t) {
1574
+ if (t) {
1575
+ const n = document.body;
1576
+ e.autofocus = !0, Et(() => {
1577
+ document.activeElement === n && e.focus();
1261
1578
  });
1262
1579
  }
1263
1580
  }
1264
- function La(n) {
1265
- m && /* @__PURE__ */ g(n) !== null && Fe(n);
1581
+ function uo(e) {
1582
+ m && /* @__PURE__ */ T(e) !== null && Wt(e);
1266
1583
  }
1267
- let oe = !1;
1268
- function ir() {
1269
- oe || (oe = !0, document.addEventListener(
1584
+ let dt = !1;
1585
+ function Sr() {
1586
+ dt || (dt = !0, document.addEventListener(
1270
1587
  "reset",
1271
- (n) => {
1588
+ (e) => {
1272
1589
  Promise.resolve().then(() => {
1273
- var e;
1274
- if (!n.defaultPrevented)
1590
+ var t;
1591
+ if (!e.defaultPrevented)
1275
1592
  for (
1276
- const t of
1593
+ const n of
1277
1594
  /**@type {HTMLFormElement} */
1278
- n.target.elements
1595
+ e.target.elements
1279
1596
  )
1280
- (e = t.__on_r) == null || e.call(t);
1597
+ (t = n.__on_r) == null || t.call(n);
1281
1598
  });
1282
1599
  },
1283
1600
  // In the capture phase to guarantee we get noticed of it (no possiblity of stopPropagation)
1284
1601
  { capture: !0 }
1285
1602
  ));
1286
1603
  }
1287
- function Ma(n, e, t, r = !0) {
1288
- r && t();
1289
- for (var a of e)
1290
- n.addEventListener(a, t);
1291
- Jn(() => {
1292
- for (var i of e)
1293
- n.removeEventListener(i, t);
1604
+ function lo(e, t, n, r = !0) {
1605
+ r && n();
1606
+ for (var s of t)
1607
+ e.addEventListener(s, n);
1608
+ st(() => {
1609
+ for (var o of t)
1610
+ e.removeEventListener(o, n);
1294
1611
  });
1295
1612
  }
1296
- function je(n) {
1297
- var e = y, t = v;
1298
- H(null), B(null);
1613
+ function tn(e) {
1614
+ var t = y, n = v;
1615
+ W(null), j(null);
1299
1616
  try {
1300
- return n();
1617
+ return e();
1301
1618
  } finally {
1302
- H(e), B(t);
1619
+ W(t), j(n);
1303
1620
  }
1304
1621
  }
1305
- function Pa(n, e, t, r = t) {
1306
- n.addEventListener(e, () => je(t));
1307
- const a = n.__on_r;
1308
- a ? n.__on_r = () => {
1309
- a(), r();
1310
- } : n.__on_r = r, ir();
1622
+ function fo(e, t, n, r = n) {
1623
+ e.addEventListener(t, () => tn(n));
1624
+ const s = e.__on_r;
1625
+ s ? e.__on_r = () => {
1626
+ s(), r(!0);
1627
+ } : e.__on_r = () => r(!0), Sr();
1311
1628
  }
1312
- const ze = /* @__PURE__ */ new Set(), Pn = /* @__PURE__ */ new Set();
1313
- function qa(n) {
1629
+ const nn = /* @__PURE__ */ new Set(), We = /* @__PURE__ */ new Set();
1630
+ function co(e) {
1314
1631
  if (!m) return;
1315
- n.onload && n.removeAttribute("onload"), n.onerror && n.removeAttribute("onerror");
1316
- const e = n.__e;
1317
- e !== void 0 && (n.__e = void 0, queueMicrotask(() => {
1318
- n.isConnected && n.dispatchEvent(e);
1632
+ e.onload && e.removeAttribute("onload"), e.onerror && e.removeAttribute("onerror");
1633
+ const t = e.__e;
1634
+ t !== void 0 && (e.__e = void 0, queueMicrotask(() => {
1635
+ e.isConnected && e.dispatchEvent(t);
1319
1636
  }));
1320
1637
  }
1321
- function Ze(n, e, t, r) {
1322
- function a(i) {
1323
- if (r.capture || _n.call(e, i), !i.cancelBubble)
1324
- return je(() => t.call(this, i));
1638
+ function rn(e, t, n, r) {
1639
+ function s(o) {
1640
+ if (r.capture || _e.call(t, o), !o.cancelBubble)
1641
+ return tn(() => n.call(this, o));
1325
1642
  }
1326
- return n.startsWith("pointer") || n.startsWith("touch") || n === "wheel" ? pe(() => {
1327
- e.addEventListener(n, a, r);
1328
- }) : e.addEventListener(n, a, r), a;
1643
+ return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Et(() => {
1644
+ t.addEventListener(e, s, r);
1645
+ }) : t.addEventListener(e, s, r), s;
1329
1646
  }
1330
- function Fa(n, e, t, r = {}) {
1331
- var a = Ze(e, n, t, r);
1647
+ function _o(e, t, n, r = {}) {
1648
+ var s = rn(t, e, n, r);
1332
1649
  return () => {
1333
- n.removeEventListener(e, a, r);
1650
+ e.removeEventListener(t, s, r);
1334
1651
  };
1335
1652
  }
1336
- function $a(n, e, t, r, a) {
1337
- var i = { capture: r, passive: a }, o = Ze(n, e, t, i);
1338
- (e === document.body || e === window || e === document) && Jn(() => {
1339
- e.removeEventListener(n, o, i);
1653
+ function vo(e, t, n, r, s) {
1654
+ var o = { capture: r, passive: s }, a = rn(e, t, n, o);
1655
+ (t === document.body || t === window || t === document) && st(() => {
1656
+ t.removeEventListener(e, a, o);
1340
1657
  });
1341
1658
  }
1342
- function Ha(n) {
1343
- for (var e = 0; e < n.length; e++)
1344
- ze.add(n[e]);
1345
- for (var t of Pn)
1346
- t(n);
1659
+ function po(e) {
1660
+ for (var t = 0; t < e.length; t++)
1661
+ nn.add(e[t]);
1662
+ for (var n of We)
1663
+ n(e);
1347
1664
  }
1348
- function _n(n) {
1349
- var Z;
1350
- var e = this, t = (
1665
+ function _e(e) {
1666
+ var Q;
1667
+ var t = this, n = (
1351
1668
  /** @type {Node} */
1352
- e.ownerDocument
1353
- ), r = n.type, a = ((Z = n.composedPath) == null ? void 0 : Z.call(n)) || [], i = (
1669
+ t.ownerDocument
1670
+ ), r = e.type, s = ((Q = e.composedPath) == null ? void 0 : Q.call(e)) || [], o = (
1354
1671
  /** @type {null | Element} */
1355
- a[0] || n.target
1356
- ), o = 0, c = n.__root;
1672
+ s[0] || e.target
1673
+ ), a = 0, c = e.__root;
1357
1674
  if (c) {
1358
- var u = a.indexOf(c);
1359
- if (u !== -1 && (e === document || e === /** @type {any} */
1675
+ var u = s.indexOf(c);
1676
+ if (u !== -1 && (t === document || t === /** @type {any} */
1360
1677
  window)) {
1361
- n.__root = e;
1678
+ e.__root = t;
1362
1679
  return;
1363
1680
  }
1364
- var s = a.indexOf(e);
1365
- if (s === -1)
1681
+ var i = s.indexOf(t);
1682
+ if (i === -1)
1366
1683
  return;
1367
- u <= s && (o = u);
1684
+ u <= i && (a = u);
1368
1685
  }
1369
- if (i = /** @type {Element} */
1370
- a[o] || n.target, i !== e) {
1371
- at(n, "currentTarget", {
1686
+ if (o = /** @type {Element} */
1687
+ s[a] || e.target, o !== t) {
1688
+ _n(e, "currentTarget", {
1372
1689
  configurable: !0,
1373
1690
  get() {
1374
- return i || t;
1691
+ return o || n;
1375
1692
  }
1376
1693
  });
1377
1694
  var l = y, f = v;
1378
- H(null), B(null);
1695
+ W(null), j(null);
1379
1696
  try {
1380
- for (var _, p = []; i !== null; ) {
1381
- var w = i.assignedSlot || i.parentNode || /** @type {any} */
1382
- i.host || null;
1697
+ for (var _, h = []; o !== null; ) {
1698
+ var w = o.assignedSlot || o.parentNode || /** @type {any} */
1699
+ o.host || null;
1383
1700
  try {
1384
- var S = i["__" + r];
1385
- if (S !== void 0 && !/** @type {any} */
1386
- i.disabled)
1387
- if ($n(S)) {
1388
- var [z, ...bn] = S;
1389
- z.apply(i, [n, ...bn]);
1701
+ var x = o["__" + r];
1702
+ if (x !== void 0 && !/** @type {any} */
1703
+ o.disabled)
1704
+ if (Ne(x)) {
1705
+ var [Z, ...Te] = x;
1706
+ Z.apply(o, [e, ...Te]);
1390
1707
  } else
1391
- S.call(i, n);
1392
- } catch (V) {
1393
- _ ? p.push(V) : _ = V;
1708
+ x.call(o, e);
1709
+ } catch (K) {
1710
+ _ ? h.push(K) : _ = K;
1394
1711
  }
1395
- if (n.cancelBubble || w === e || w === null)
1712
+ if (e.cancelBubble || w === t || w === null)
1396
1713
  break;
1397
- i = w;
1714
+ o = w;
1398
1715
  }
1399
1716
  if (_) {
1400
- for (let V of p)
1717
+ for (let K of h)
1401
1718
  queueMicrotask(() => {
1402
- throw V;
1719
+ throw K;
1403
1720
  });
1404
1721
  throw _;
1405
1722
  }
1406
1723
  } finally {
1407
- n.__root = e, delete n.currentTarget, H(l), B(f);
1724
+ e.__root = t, delete e.currentTarget, W(l), j(f);
1408
1725
  }
1409
1726
  }
1410
1727
  }
1411
- function Ba(n, e, t, r, a, i = !1, o = !1) {
1728
+ function ho(e, t, n, r, s, o = !1, a = !1) {
1412
1729
  let c, u;
1413
1730
  try {
1414
- c = n();
1415
- } catch (s) {
1416
- u = s;
1731
+ c = e();
1732
+ } catch (i) {
1733
+ u = i;
1417
1734
  }
1418
1735
  if (typeof c == "function")
1419
- c.apply(e, t);
1420
- else if (i || c != null || u) {
1421
- const s = r == null ? void 0 : r[Q];
1422
- if (a ? `${s}${a[0]}${a[1]}` : `${s}`, t[0].type, vt(), u)
1736
+ c.apply(t, n);
1737
+ else if (o || c != null || u) {
1738
+ const i = r == null ? void 0 : r[te];
1739
+ if (s ? `${i}${s[0]}${s[1]}` : `${i}`, n[0].type, gn(), u)
1423
1740
  throw u;
1424
1741
  }
1425
1742
  }
1426
1743
  let k;
1427
- function or() {
1744
+ function xr() {
1428
1745
  k = void 0;
1429
1746
  }
1430
- function Va(n) {
1431
- let e = null, t = m;
1747
+ function yo(e) {
1748
+ let t = null, n = m;
1432
1749
  var r;
1433
1750
  if (m) {
1434
- for (e = d, k === void 0 && (k = /** @type {TemplateNode} */
1435
- /* @__PURE__ */ g(document.head)); k !== null && (k.nodeType !== 8 || /** @type {Comment} */
1436
- k.data !== Yn); )
1751
+ for (t = d, k === void 0 && (k = /** @type {TemplateNode} */
1752
+ /* @__PURE__ */ T(document.head)); k !== null && (k.nodeType !== 8 || /** @type {Comment} */
1753
+ k.data !== Xe); )
1437
1754
  k = /** @type {TemplateNode} */
1438
1755
  /* @__PURE__ */ L(k);
1439
- k === null ? nn(!1) : k = C(
1756
+ k === null ? ne(!1) : k = O(
1440
1757
  /** @type {TemplateNode} */
1441
1758
  /* @__PURE__ */ L(k)
1442
1759
  );
1443
1760
  }
1444
- m || (r = document.head.appendChild(q()));
1761
+ m || (r = document.head.appendChild($()));
1445
1762
  try {
1446
- Qn(() => n(r), fe);
1763
+ ot(() => e(r), yt);
1447
1764
  } finally {
1448
- t && (nn(!0), k = d, C(
1765
+ n && (ne(!0), k = d, O(
1449
1766
  /** @type {TemplateNode} */
1450
- e
1767
+ t
1451
1768
  ));
1452
1769
  }
1453
1770
  }
1454
- function Xn(n) {
1455
- var e = document.createElement("template");
1456
- return e.innerHTML = n, e.content;
1771
+ function at(e) {
1772
+ var t = document.createElement("template");
1773
+ return t.innerHTML = e, t.content;
1457
1774
  }
1458
- function N(n, e) {
1459
- var t = (
1775
+ function N(e, t) {
1776
+ var n = (
1460
1777
  /** @type {Effect} */
1461
1778
  v
1462
1779
  );
1463
- t.nodes_start === null && (t.nodes_start = n, t.nodes_end = e);
1780
+ n.nodes_start === null && (n.nodes_start = e, n.nodes_end = t);
1464
1781
  }
1465
1782
  // @__NO_SIDE_EFFECTS__
1466
- function sr(n, e) {
1467
- var t = (e & ye) !== 0, r = (e & ht) !== 0, a, i = !n.startsWith("<!>");
1783
+ function kr(e, t) {
1784
+ var n = (t & At) !== 0, r = (t & Tn) !== 0, s, o = !e.startsWith("<!>");
1468
1785
  return () => {
1469
1786
  if (m)
1470
1787
  return N(d, null), d;
1471
- a === void 0 && (a = Xn(i ? n : "<!>" + n), t || (a = /** @type {Node} */
1472
- /* @__PURE__ */ g(a)));
1473
- var o = (
1788
+ s === void 0 && (s = at(o ? e : "<!>" + e), n || (s = /** @type {Node} */
1789
+ /* @__PURE__ */ T(s)));
1790
+ var a = (
1474
1791
  /** @type {TemplateNode} */
1475
- r ? document.importNode(a, !0) : a.cloneNode(!0)
1792
+ r ? document.importNode(s, !0) : s.cloneNode(!0)
1476
1793
  );
1477
- if (t) {
1794
+ if (n) {
1478
1795
  var c = (
1479
1796
  /** @type {TemplateNode} */
1480
- /* @__PURE__ */ g(o)
1797
+ /* @__PURE__ */ T(a)
1481
1798
  ), u = (
1482
1799
  /** @type {TemplateNode} */
1483
- o.lastChild
1800
+ a.lastChild
1484
1801
  );
1485
1802
  N(c, u);
1486
1803
  } else
1487
- N(o, o);
1488
- return o;
1804
+ N(a, a);
1805
+ return a;
1489
1806
  };
1490
1807
  }
1491
1808
  // @__NO_SIDE_EFFECTS__
1492
- function Ua(n, e) {
1493
- var t = /* @__PURE__ */ sr(n, e);
1494
- return () => Qe(
1809
+ function mo(e, t) {
1810
+ var n = /* @__PURE__ */ kr(e, t);
1811
+ return () => on(
1495
1812
  /** @type {Element | DocumentFragment} */
1496
- t()
1813
+ n()
1497
1814
  );
1498
1815
  }
1499
1816
  // @__NO_SIDE_EFFECTS__
1500
- function Je(n, e, t = "svg") {
1501
- var r = !n.startsWith("<!>"), a = (e & ye) !== 0, i = `<${t}>${r ? n : "<!>" + n}</${t}>`, o;
1817
+ function sn(e, t, n = "svg") {
1818
+ var r = !e.startsWith("<!>"), s = (t & At) !== 0, o = `<${n}>${r ? e : "<!>" + e}</${n}>`, a;
1502
1819
  return () => {
1503
1820
  if (m)
1504
1821
  return N(d, null), d;
1505
- if (!o) {
1822
+ if (!a) {
1506
1823
  var c = (
1507
1824
  /** @type {DocumentFragment} */
1508
- Xn(i)
1825
+ at(o)
1509
1826
  ), u = (
1510
1827
  /** @type {Element} */
1511
- /* @__PURE__ */ g(c)
1828
+ /* @__PURE__ */ T(c)
1512
1829
  );
1513
- if (a)
1514
- for (o = document.createDocumentFragment(); /* @__PURE__ */ g(u); )
1515
- o.appendChild(
1830
+ if (s)
1831
+ for (a = document.createDocumentFragment(); /* @__PURE__ */ T(u); )
1832
+ a.appendChild(
1516
1833
  /** @type {Node} */
1517
- /* @__PURE__ */ g(u)
1834
+ /* @__PURE__ */ T(u)
1518
1835
  );
1519
1836
  else
1520
- o = /** @type {Element} */
1521
- /* @__PURE__ */ g(u);
1837
+ a = /** @type {Element} */
1838
+ /* @__PURE__ */ T(u);
1522
1839
  }
1523
- var s = (
1840
+ var i = (
1524
1841
  /** @type {TemplateNode} */
1525
- o.cloneNode(!0)
1842
+ a.cloneNode(!0)
1526
1843
  );
1527
- if (a) {
1844
+ if (s) {
1528
1845
  var l = (
1529
1846
  /** @type {TemplateNode} */
1530
- /* @__PURE__ */ g(s)
1847
+ /* @__PURE__ */ T(i)
1531
1848
  ), f = (
1532
1849
  /** @type {TemplateNode} */
1533
- s.lastChild
1850
+ i.lastChild
1534
1851
  );
1535
1852
  N(l, f);
1536
1853
  } else
1537
- N(s, s);
1538
- return s;
1854
+ N(i, i);
1855
+ return i;
1539
1856
  };
1540
1857
  }
1541
1858
  // @__NO_SIDE_EFFECTS__
1542
- function Ya(n, e) {
1543
- var t = /* @__PURE__ */ Je(n, e);
1544
- return () => Qe(
1859
+ function wo(e, t) {
1860
+ var n = /* @__PURE__ */ sn(e, t);
1861
+ return () => on(
1545
1862
  /** @type {Element | DocumentFragment} */
1546
- t()
1863
+ n()
1547
1864
  );
1548
1865
  }
1549
1866
  // @__NO_SIDE_EFFECTS__
1550
- function Wa(n, e) {
1551
- return /* @__PURE__ */ Je(n, e, "math");
1867
+ function bo(e, t) {
1868
+ return /* @__PURE__ */ sn(e, t, "math");
1552
1869
  }
1553
- function Qe(n) {
1554
- if (m) return n;
1555
- const e = n.nodeType === 11, t = (
1870
+ function on(e) {
1871
+ if (m) return e;
1872
+ const t = e.nodeType === 11, n = (
1556
1873
  /** @type {HTMLElement} */
1557
- n.tagName === "SCRIPT" ? [
1874
+ e.tagName === "SCRIPT" ? [
1558
1875
  /** @type {HTMLScriptElement} */
1559
- n
1560
- ] : n.querySelectorAll("script")
1876
+ e
1877
+ ] : e.querySelectorAll("script")
1561
1878
  ), r = (
1562
1879
  /** @type {Effect} */
1563
1880
  v
1564
1881
  );
1565
- for (const i of t) {
1566
- const o = document.createElement("script");
1567
- for (var a of i.attributes)
1568
- o.setAttribute(a.name, a.value);
1569
- o.textContent = i.textContent, (e ? n.firstChild === i : n === i) && (r.nodes_start = o), (e ? n.lastChild === i : n === i) && (r.nodes_end = o), i.replaceWith(o);
1882
+ for (const o of n) {
1883
+ const a = document.createElement("script");
1884
+ for (var s of o.attributes)
1885
+ a.setAttribute(s.name, s.value);
1886
+ a.textContent = o.textContent, (t ? e.firstChild === o : e === o) && (r.nodes_start = a), (t ? e.lastChild === o : e === o) && (r.nodes_end = a), o.replaceWith(a);
1570
1887
  }
1571
- return n;
1888
+ return e;
1572
1889
  }
1573
- function Ga(n = "") {
1890
+ function go(e = "") {
1574
1891
  if (!m) {
1575
- var e = q(n + "");
1576
- return N(e, e), e;
1892
+ var t = $(e + "");
1893
+ return N(t, t), t;
1577
1894
  }
1578
- var t = d;
1579
- return t.nodeType !== 3 && (t.before(t = q()), C(t)), N(t, t), t;
1895
+ var n = d;
1896
+ return n.nodeType !== 3 && (n.before(n = $()), O(n)), N(n, n), n;
1580
1897
  }
1581
- function Ka() {
1898
+ function Eo() {
1582
1899
  if (m)
1583
1900
  return N(d, null), d;
1584
- var n = document.createDocumentFragment(), e = document.createComment(""), t = q();
1585
- return n.append(e, t), N(e, t), n;
1901
+ var e = document.createDocumentFragment(), t = document.createComment(""), n = $();
1902
+ return e.append(t, n), N(t, n), e;
1586
1903
  }
1587
- function ja(n, e) {
1904
+ function To(e, t) {
1588
1905
  if (m) {
1589
- v.nodes_end = d, Zn();
1906
+ v.nodes_end = d, rt();
1590
1907
  return;
1591
1908
  }
1592
- n !== null && n.before(
1909
+ e !== null && e.before(
1593
1910
  /** @type {Node} */
1594
- e
1911
+ t
1595
1912
  );
1596
1913
  }
1597
- const ur = [
1598
- "area",
1599
- "base",
1600
- "br",
1601
- "col",
1602
- "command",
1603
- "embed",
1604
- "hr",
1605
- "img",
1606
- "input",
1607
- "keygen",
1608
- "link",
1609
- "meta",
1610
- "param",
1611
- "source",
1612
- "track",
1613
- "wbr"
1614
- ];
1615
- function za(n) {
1616
- return ur.includes(n) || n.toLowerCase() === "!doctype";
1617
- }
1618
- function Za(n) {
1619
- return n.endsWith("capture") && n !== "gotpointercapture" && n !== "lostpointercapture";
1620
- }
1621
- const lr = [
1622
- "beforeinput",
1623
- "click",
1624
- "change",
1625
- "dblclick",
1626
- "contextmenu",
1627
- "focusin",
1628
- "focusout",
1629
- "input",
1630
- "keydown",
1631
- "keyup",
1632
- "mousedown",
1633
- "mousemove",
1634
- "mouseout",
1635
- "mouseover",
1636
- "mouseup",
1637
- "pointerdown",
1638
- "pointermove",
1639
- "pointerout",
1640
- "pointerover",
1641
- "pointerup",
1642
- "touchend",
1643
- "touchmove",
1644
- "touchstart"
1645
- ];
1646
- function Ja(n) {
1647
- return lr.includes(n);
1648
- }
1649
- const fr = {
1650
- // no `class: 'className'` because we handle that separately
1651
- formnovalidate: "formNoValidate",
1652
- ismap: "isMap",
1653
- nomodule: "noModule",
1654
- playsinline: "playsInline",
1655
- readonly: "readOnly"
1656
- };
1657
- function Qa(n) {
1658
- return n = n.toLowerCase(), fr[n] ?? n;
1659
- }
1660
- const cr = ["touchstart", "touchmove"];
1661
- function _r(n) {
1662
- return cr.includes(n);
1663
- }
1664
- let qn = !0;
1665
- function Xa(n) {
1666
- qn = n;
1914
+ let je = !0;
1915
+ function Ao(e) {
1916
+ je = e;
1667
1917
  }
1668
- function ni(n, e) {
1669
- var t = e == null ? "" : typeof e == "object" ? e + "" : e;
1670
- t !== (n.__t ?? (n.__t = n.nodeValue)) && (n.__t = t, n.nodeValue = t == null ? "" : t + "");
1918
+ function So(e, t) {
1919
+ var n = t == null ? "" : typeof t == "object" ? t + "" : t;
1920
+ n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = n == null ? "" : n + "");
1671
1921
  }
1672
- function Xe(n, e) {
1673
- return nt(n, e);
1922
+ function an(e, t) {
1923
+ return un(e, t);
1674
1924
  }
1675
- function dr(n, e) {
1676
- Mn(), e.intro = e.intro ?? !1;
1677
- const t = e.target, r = m, a = d;
1925
+ function Cr(e, t) {
1926
+ Ue(), t.intro = t.intro ?? !1;
1927
+ const n = t.target, r = m, s = d;
1678
1928
  try {
1679
- for (var i = (
1929
+ for (var o = (
1680
1930
  /** @type {TemplateNode} */
1681
- /* @__PURE__ */ g(t)
1682
- ); i && (i.nodeType !== 8 || /** @type {Comment} */
1683
- i.data !== Yn); )
1684
- i = /** @type {TemplateNode} */
1685
- /* @__PURE__ */ L(i);
1686
- if (!i)
1687
- throw vn;
1688
- nn(!0), C(
1931
+ /* @__PURE__ */ T(n)
1932
+ ); o && (o.nodeType !== 8 || /** @type {Comment} */
1933
+ o.data !== Xe); )
1934
+ o = /** @type {TemplateNode} */
1935
+ /* @__PURE__ */ L(o);
1936
+ if (!o)
1937
+ throw ve;
1938
+ ne(!0), O(
1689
1939
  /** @type {Comment} */
1690
- i
1691
- ), Zn();
1692
- const o = nt(n, { ...e, anchor: i });
1940
+ o
1941
+ ), rt();
1942
+ const a = un(e, { ...t, anchor: o });
1693
1943
  if (d === null || d.nodeType !== 8 || /** @type {Comment} */
1694
- d.data !== me)
1695
- throw Un(), vn;
1696
- return nn(!1), /** @type {Exports} */
1697
- o;
1698
- } catch (o) {
1699
- if (o === vn)
1700
- return e.recover === !1 && kt(), Mn(), Fe(t), nn(!1), Xe(n, e);
1701
- throw o;
1944
+ d.data !== St)
1945
+ throw Je(), ve;
1946
+ return ne(!1), /** @type {Exports} */
1947
+ a;
1948
+ } catch (a) {
1949
+ if (a === ve)
1950
+ return t.recover === !1 && Rn(), Ue(), Wt(n), ne(!1), an(e, t);
1951
+ throw a;
1702
1952
  } finally {
1703
- nn(r), C(a), or();
1953
+ ne(r), O(s), xr();
1704
1954
  }
1705
1955
  }
1706
- const J = /* @__PURE__ */ new Map();
1707
- function nt(n, { target: e, anchor: t, props: r = {}, events: a, context: i, intro: o = !0 }) {
1708
- Mn();
1956
+ const ee = /* @__PURE__ */ new Map();
1957
+ function un(e, { target: t, anchor: n, props: r = {}, events: s, context: o, intro: a = !0 }) {
1958
+ Ue();
1709
1959
  var c = /* @__PURE__ */ new Set(), u = (f) => {
1710
1960
  for (var _ = 0; _ < f.length; _++) {
1711
- var p = f[_];
1712
- if (!c.has(p)) {
1713
- c.add(p);
1714
- var w = _r(p);
1715
- e.addEventListener(p, _n, { passive: w });
1716
- var S = J.get(p);
1717
- S === void 0 ? (document.addEventListener(p, _n, { passive: w }), J.set(p, 1)) : J.set(p, S + 1);
1961
+ var h = f[_];
1962
+ if (!c.has(h)) {
1963
+ c.add(h);
1964
+ var w = Tr(h);
1965
+ t.addEventListener(h, _e, { passive: w });
1966
+ var x = ee.get(h);
1967
+ x === void 0 ? (document.addEventListener(h, _e, { passive: w }), ee.set(h, 1)) : ee.set(h, x + 1);
1718
1968
  }
1719
1969
  }
1720
1970
  };
1721
- u(rt(ze)), Pn.add(u);
1722
- var s = void 0, l = tr(() => {
1723
- var f = t ?? e.appendChild(q());
1724
- return Be(() => {
1725
- if (i) {
1726
- Zt({});
1971
+ u(cn(nn)), We.add(u);
1972
+ var i = void 0, l = pr(() => {
1973
+ var f = n ?? t.appendChild($());
1974
+ return zt(() => {
1975
+ if (o) {
1976
+ ur({});
1727
1977
  var _ = (
1728
1978
  /** @type {ComponentContext} */
1729
- h
1979
+ p
1730
1980
  );
1731
- _.c = i;
1981
+ _.c = o;
1732
1982
  }
1733
- a && (r.$$events = a), m && N(
1983
+ s && (r.$$events = s), m && N(
1734
1984
  /** @type {TemplateNode} */
1735
1985
  f,
1736
1986
  null
1737
- ), qn = o, s = n(f, r) || {}, qn = !0, m && (v.nodes_end = d), i && Jt();
1987
+ ), je = a, i = e(f, r) || {}, je = !0, m && (v.nodes_end = d), o && lr();
1738
1988
  }), () => {
1739
1989
  var w;
1740
1990
  for (var _ of c) {
1741
- e.removeEventListener(_, _n);
1742
- var p = (
1991
+ t.removeEventListener(_, _e);
1992
+ var h = (
1743
1993
  /** @type {number} */
1744
- J.get(_)
1994
+ ee.get(_)
1745
1995
  );
1746
- --p === 0 ? (document.removeEventListener(_, _n), J.delete(_)) : J.set(_, p);
1996
+ --h === 0 ? (document.removeEventListener(_, _e), ee.delete(_)) : ee.set(_, h);
1747
1997
  }
1748
- Pn.delete(u), Fn.delete(s), f !== t && ((w = f.parentNode) == null || w.removeChild(f));
1998
+ We.delete(u), f !== n && ((w = f.parentNode) == null || w.removeChild(f));
1749
1999
  };
1750
2000
  });
1751
- return Fn.set(s, l), s;
2001
+ return Ge.set(i, l), i;
1752
2002
  }
1753
- let Fn = /* @__PURE__ */ new WeakMap();
1754
- function vr(n) {
1755
- const e = Fn.get(n);
1756
- e && e();
2003
+ let Ge = /* @__PURE__ */ new WeakMap();
2004
+ function Nr(e, t) {
2005
+ const n = Ge.get(e);
2006
+ return n ? (Ge.delete(e), n(t)) : Promise.resolve();
1757
2007
  }
1758
- function ei(n, e, ...t) {
1759
- var r = n, a = ut, i;
1760
- Qn(() => {
1761
- a !== (a = e()) && (i && (j(i), i = null), i = Be(() => (
2008
+ function xo(e, t, ...n) {
2009
+ var r = e, s = pn, o;
2010
+ ot(() => {
2011
+ s !== (s = t()) && (o && (B(o), o = null), o = zt(() => (
1762
2012
  /** @type {SnippetFn} */
1763
- a(r, ...t)
2013
+ s(r, ...n)
1764
2014
  )));
1765
- }, Vn), m && (r = d);
2015
+ }, Ke), m && (r = d);
1766
2016
  }
1767
- function ti(n, e) {
1768
- return (t, ...r) => {
1769
- var a = jn;
1770
- re(n);
2017
+ function ko(e, t) {
2018
+ return (n, ...r) => {
2019
+ var s = tt;
2020
+ ft(e);
1771
2021
  try {
1772
- return e(t, ...r);
2022
+ return t(n, ...r);
1773
2023
  } finally {
1774
- re(a);
2024
+ ft(s);
1775
2025
  }
1776
2026
  };
1777
2027
  }
1778
- function pr(n) {
1779
- return (e, ...t) => {
2028
+ function Or(e) {
2029
+ return (t, ...n) => {
1780
2030
  var u;
1781
- var r = n(...t), a;
2031
+ var r = e(...n), s;
1782
2032
  if (m)
1783
- a = /** @type {Element} */
1784
- d, Zn();
2033
+ s = /** @type {Element} */
2034
+ d, rt();
1785
2035
  else {
1786
- var i = r.render().trim(), o = Xn(i);
1787
- a = /** @type {Element} */
1788
- /* @__PURE__ */ g(o), e.before(a);
2036
+ var o = r.render().trim(), a = at(o);
2037
+ s = /** @type {Element} */
2038
+ /* @__PURE__ */ T(a), t.before(s);
1789
2039
  }
1790
- const c = (u = r.setup) == null ? void 0 : u.call(r, a);
1791
- N(a, a), typeof c == "function" && Jn(c);
2040
+ const c = (u = r.setup) == null ? void 0 : u.call(r, s);
2041
+ N(s, s), typeof c == "function" && st(c);
1792
2042
  };
1793
2043
  }
1794
- function et(n) {
1795
- h === null && sn(), nr(() => {
1796
- const e = ln(n);
1797
- if (typeof e == "function") return (
2044
+ function ln(e) {
2045
+ p === null && le(), dr(() => {
2046
+ const t = G(e);
2047
+ if (typeof t == "function") return (
1798
2048
  /** @type {() => void} */
1799
- e
2049
+ t
1800
2050
  );
1801
2051
  });
1802
2052
  }
1803
- function hr(n) {
1804
- h === null && sn(), et(() => () => ln(n));
2053
+ function Ir(e) {
2054
+ p === null && le(), ln(() => () => G(e));
1805
2055
  }
1806
- function yr(n, e, { bubbles: t = !1, cancelable: r = !1 } = {}) {
1807
- return new CustomEvent(n, { detail: e, bubbles: t, cancelable: r });
2056
+ function Dr(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
2057
+ return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
1808
2058
  }
1809
- function mr() {
1810
- const n = h;
1811
- return n === null && sn(), (e, t, r) => {
1812
- var i;
1813
- const a = (
2059
+ function Rr() {
2060
+ const e = p;
2061
+ return e === null && le(), (t, n, r) => {
2062
+ var o;
2063
+ const s = (
1814
2064
  /** @type {Record<string, Function | Function[]>} */
1815
- (i = n.s.$$events) == null ? void 0 : i[
2065
+ (o = e.s.$$events) == null ? void 0 : o[
1816
2066
  /** @type {any} */
1817
- e
2067
+ t
1818
2068
  ]
1819
2069
  );
1820
- if (a) {
1821
- const o = $n(a) ? a.slice() : [a], c = yr(
2070
+ if (s) {
2071
+ const a = Ne(s) ? s.slice() : [s], c = Dr(
1822
2072
  /** @type {string} */
1823
- e,
1824
2073
  t,
2074
+ n,
1825
2075
  r
1826
2076
  );
1827
- for (const u of o)
1828
- u.call(n.x, c);
2077
+ for (const u of a)
2078
+ u.call(e.x, c);
1829
2079
  return !c.defaultPrevented;
1830
2080
  }
1831
2081
  return !0;
1832
2082
  };
1833
2083
  }
1834
- function wr(n) {
1835
- h === null && sn(), h.l === null && Te(), tt(h).b.push(n);
2084
+ function Lr(e) {
2085
+ p === null && le(), p.l === null && Ot(), fn(p).b.push(e);
1836
2086
  }
1837
- function Er(n) {
1838
- h === null && sn(), h.l === null && Te(), tt(h).a.push(n);
2087
+ function Mr(e) {
2088
+ p === null && le(), p.l === null && Ot(), fn(p).a.push(e);
1839
2089
  }
1840
- function tt(n) {
1841
- var e = (
2090
+ function fn(e) {
2091
+ var t = (
1842
2092
  /** @type {ComponentContextLegacy} */
1843
- n.l
2093
+ e.l
1844
2094
  );
1845
- return e.u ?? (e.u = { a: [], b: [], m: [] });
2095
+ return t.u ?? (t.u = { a: [], b: [], m: [] });
1846
2096
  }
1847
- function br(n) {
1848
- zn(n);
2097
+ function Pr(e) {
2098
+ nt(e);
1849
2099
  }
1850
- const ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2100
+ const Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1851
2101
  __proto__: null,
1852
- afterUpdate: Er,
1853
- beforeUpdate: wr,
1854
- createEventDispatcher: mr,
1855
- createRawSnippet: pr,
1856
- flushSync: br,
1857
- getAllContexts: jt,
1858
- getContext: Wt,
1859
- hasContext: Kt,
1860
- hydrate: dr,
1861
- mount: Xe,
1862
- onDestroy: hr,
1863
- onMount: et,
1864
- setContext: Gt,
1865
- tick: Ut,
1866
- unmount: vr,
1867
- untrack: ln
2102
+ afterUpdate: Mr,
2103
+ beforeUpdate: Lr,
2104
+ createEventDispatcher: Rr,
2105
+ createRawSnippet: Or,
2106
+ flushSync: Pr,
2107
+ getAllContexts: ar,
2108
+ getContext: rr,
2109
+ hasContext: or,
2110
+ hydrate: Cr,
2111
+ mount: an,
2112
+ onDestroy: Ir,
2113
+ onMount: ln,
2114
+ setContext: sr,
2115
+ tick: er,
2116
+ unmount: Nr,
2117
+ untrack: G
1868
2118
  }, Symbol.toStringTag, { value: "Module" }));
1869
2119
  export {
1870
- v as $,
1871
- Hn as A,
1872
- ot as B,
1873
- $e as C,
1874
- xa as D,
1875
- Vn as E,
1876
- Q as F,
1877
- Zn as G,
1878
- Yn as H,
1879
- Sr as I,
1880
- Rt as J,
1881
- pe as K,
1882
- B as L,
1883
- H as M,
1884
- la as N,
1885
- Da as O,
1886
- Oa as P,
1887
- zn as Q,
1888
- wa as R,
1889
- C as S,
1890
- nn as T,
1891
- T as U,
1892
- Jn as V,
1893
- g as W,
1894
- q as X,
1895
- Lr as Y,
1896
- rt as Z,
1897
- rn as _,
1898
- bt as a,
1899
- at as a$,
1900
- Dr as a0,
1901
- Rr as a1,
1902
- Ge as a2,
1903
- Fe as a3,
1904
- ar as a4,
1905
- y as a5,
1906
- Mr as a6,
1907
- Dt as a7,
1908
- Pr as a8,
1909
- L as a9,
1910
- Ea as aA,
1911
- dn as aB,
1912
- W as aC,
1913
- je as aD,
1914
- er as aE,
1915
- nr as aF,
1916
- kr as aG,
1917
- Lt as aH,
1918
- ta as aI,
1919
- Fr as aJ,
1920
- ge as aK,
1921
- cn as aL,
1922
- fn as aM,
1923
- _a as aN,
1924
- M as aO,
1925
- kn as aP,
1926
- qr as aQ,
1927
- Ot as aR,
1928
- $r as aS,
1929
- Hr as aT,
1930
- Jr as aU,
1931
- Qr as aV,
1932
- jn as aW,
1933
- ea as aX,
1934
- Ir as aY,
1935
- dr as aZ,
1936
- Xe as a_,
1937
- Un as aa,
1938
- vn as ab,
1939
- N as ac,
1940
- Xn as ad,
1941
- Wr as ae,
1942
- He as af,
1943
- pa as ag,
1944
- Cr as ah,
1945
- ir as ai,
1946
- Nr as aj,
1947
- Za as ak,
1948
- Ze as al,
1949
- Ha as am,
1950
- Ra as an,
1951
- Qa as ao,
1952
- Ja as ap,
1953
- it as aq,
1954
- qn as ar,
1955
- Bn as as,
1956
- lt as at,
1957
- Ar as au,
1958
- Br as av,
1959
- Vr as aw,
1960
- Ur as ax,
1961
- Ma as ay,
1962
- Pa as az,
1963
- Cn as b,
1964
- vr as b0,
1965
- Tr as b1,
1966
- ja as b2,
1967
- za as b3,
1968
- ua as b4,
1969
- sa as b5,
1970
- Or as b6,
1971
- In as b7,
1972
- Et as b8,
1973
- Kr as b9,
1974
- ra as bA,
1975
- ni as bB,
1976
- fa as bC,
1977
- ca as bD,
1978
- da as bE,
1979
- va as bF,
1980
- Jt as bG,
1981
- Zt as bH,
1982
- Ln as bI,
1983
- jt as bJ,
1984
- Wt as bK,
1985
- Gt as bL,
1986
- Kt as bM,
1987
- Ta as bN,
1988
- Aa as bO,
1989
- Sa as bP,
1990
- ie as bQ,
1991
- Qt as bR,
1992
- xr as bS,
1993
- oa as bT,
1994
- ba as bU,
1995
- ga as bV,
1996
- ri as bW,
1997
- jr as ba,
1998
- zr as bb,
1999
- Zr as bc,
2000
- ei as bd,
2001
- ti as be,
2002
- Va as bf,
2003
- Ba as bg,
2004
- $a as bh,
2005
- qa as bi,
2006
- La as bj,
2007
- ya as bk,
2008
- ma as bl,
2009
- ha as bm,
2010
- Ka as bn,
2011
- Je as bo,
2012
- Ya as bp,
2013
- Wa as bq,
2014
- sr as br,
2015
- Ua as bs,
2016
- Ga as bt,
2017
- ia as bu,
2018
- Na as bv,
2019
- Ca as bw,
2020
- Ia as bx,
2021
- aa as by,
2022
- ne as bz,
2023
- ka as c,
2024
- O as d,
2025
- tr as e,
2026
- yt as f,
2027
- P as g,
2028
- m as h,
2029
- me as i,
2030
- Yr as j,
2031
- Qn as k,
2032
- Be as l,
2033
- d as m,
2034
- ut as n,
2035
- Fa as o,
2036
- j as p,
2037
- Xa as q,
2038
- se as r,
2039
- x as s,
2040
- Ut as t,
2041
- ln as u,
2042
- na as v,
2043
- h as w,
2044
- Gr as x,
2045
- Xr as y,
2046
- $n as z
2120
+ Ne as $,
2121
+ fs as A,
2122
+ ms as B,
2123
+ jt as C,
2124
+ Ks as D,
2125
+ Ke as E,
2126
+ te as F,
2127
+ Hn as G,
2128
+ Xe as H,
2129
+ rt as I,
2130
+ Br as J,
2131
+ Ye as K,
2132
+ Et as L,
2133
+ j as M,
2134
+ W as N,
2135
+ Is as O,
2136
+ eo as P,
2137
+ yr as Q,
2138
+ nt as R,
2139
+ Ys as S,
2140
+ O as T,
2141
+ E as U,
2142
+ ne as V,
2143
+ ps as W,
2144
+ st as X,
2145
+ T as Y,
2146
+ $ as Z,
2147
+ Zr as _,
2148
+ C as a,
2149
+ Hs as a$,
2150
+ cn as a0,
2151
+ oe as a1,
2152
+ v as a2,
2153
+ Jr as a3,
2154
+ Xr as a4,
2155
+ Qt as a5,
2156
+ Wt as a6,
2157
+ mr as a7,
2158
+ y as a8,
2159
+ Qr as a9,
2160
+ os as aA,
2161
+ as as aB,
2162
+ is as aC,
2163
+ lo as aD,
2164
+ fo as aE,
2165
+ Vs as aF,
2166
+ de as aG,
2167
+ V as aH,
2168
+ tn as aI,
2169
+ vr as aJ,
2170
+ dr as aK,
2171
+ Hr as aL,
2172
+ Vn as aM,
2173
+ gs as aN,
2174
+ ns as aO,
2175
+ Nt as aP,
2176
+ P as aQ,
2177
+ ce as aR,
2178
+ Ms as aS,
2179
+ Ur as aT,
2180
+ M as aU,
2181
+ ge as aV,
2182
+ ts as aW,
2183
+ Fn as aX,
2184
+ rs as aY,
2185
+ ss as aZ,
2186
+ qe as a_,
2187
+ Yn as aa,
2188
+ es as ab,
2189
+ L as ac,
2190
+ Je as ad,
2191
+ ve as ae,
2192
+ N as af,
2193
+ at as ag,
2194
+ ls as ah,
2195
+ oo as ai,
2196
+ Gt as aj,
2197
+ Fs as ak,
2198
+ jr as al,
2199
+ Sr as am,
2200
+ Wr as an,
2201
+ no as ao,
2202
+ rn as ap,
2203
+ po as aq,
2204
+ io as ar,
2205
+ so as as,
2206
+ Oe as at,
2207
+ ro as au,
2208
+ dn as av,
2209
+ je as aw,
2210
+ ze as ax,
2211
+ hn as ay,
2212
+ $r as az,
2213
+ Le as b,
2214
+ _t as b$,
2215
+ Ds as b0,
2216
+ Ie as b1,
2217
+ hs as b2,
2218
+ ys as b3,
2219
+ tt as b4,
2220
+ bs as b5,
2221
+ zr as b6,
2222
+ Cr as b7,
2223
+ an as b8,
2224
+ _n as b9,
2225
+ wo as bA,
2226
+ bo as bB,
2227
+ kr as bC,
2228
+ mo as bD,
2229
+ go as bE,
2230
+ ks as bF,
2231
+ Xs as bG,
2232
+ Zs as bH,
2233
+ Qs as bI,
2234
+ Ss as bJ,
2235
+ xs as bK,
2236
+ As as bL,
2237
+ So as bM,
2238
+ Rs as bN,
2239
+ Ls as bO,
2240
+ Ps as bP,
2241
+ qs as bQ,
2242
+ lr as bR,
2243
+ ur as bS,
2244
+ Ve as bT,
2245
+ ar as bU,
2246
+ rr as bV,
2247
+ sr as bW,
2248
+ or as bX,
2249
+ js as bY,
2250
+ Gs as bZ,
2251
+ zs as b_,
2252
+ Nr as ba,
2253
+ Fr as bb,
2254
+ To as bc,
2255
+ to as bd,
2256
+ Es as be,
2257
+ Os as bf,
2258
+ Ns as bg,
2259
+ Kr as bh,
2260
+ Me as bi,
2261
+ kn as bj,
2262
+ cs as bk,
2263
+ _s as bl,
2264
+ ds as bm,
2265
+ vs as bn,
2266
+ Ts as bo,
2267
+ xo as bp,
2268
+ ko as bq,
2269
+ yo as br,
2270
+ ho as bs,
2271
+ vo as bt,
2272
+ co as bu,
2273
+ uo as bv,
2274
+ Bs as bw,
2275
+ $s as bx,
2276
+ Eo as by,
2277
+ sn as bz,
2278
+ D as c,
2279
+ fr as c0,
2280
+ Vr as c1,
2281
+ Cs as c2,
2282
+ Us as c3,
2283
+ Ws as c4,
2284
+ Co as c5,
2285
+ Js as d,
2286
+ _r as e,
2287
+ Yr as f,
2288
+ q as g,
2289
+ Gr as h,
2290
+ ao as i,
2291
+ m as j,
2292
+ An as k,
2293
+ St as l,
2294
+ us as m,
2295
+ pn as n,
2296
+ _o as o,
2297
+ ot as p,
2298
+ zt as q,
2299
+ pt as r,
2300
+ Cn as s,
2301
+ er as t,
2302
+ G as u,
2303
+ d as v,
2304
+ B as w,
2305
+ Ao as x,
2306
+ ws as y,
2307
+ p as z
2047
2308
  };