zabi-components 1.0.11 → 2.0.2

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,3073 +0,0 @@
1
- var Tn = Object.defineProperty;
2
- var vr = (t) => {
3
- throw TypeError(t);
4
- };
5
- var kn = (t, e, r) => e in t ? Tn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
- var Vt = (t, e, r) => kn(t, typeof e != "symbol" ? e + "" : e, r), Me = (t, e, r) => e.has(t) || vr("Cannot " + r);
7
- var k = (t, e, r) => (Me(t, e, "read from private field"), r ? r.call(t) : e.get(t)), j = (t, e, r) => e.has(t) ? vr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), ft = (t, e, r, n) => (Me(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), at = (t, e, r) => (Me(t, e, "access private method"), r);
8
- var xr;
9
- typeof window < "u" && ((xr = window.__svelte ?? (window.__svelte = {})).v ?? (xr.v = /* @__PURE__ */ new Set())).add("5");
10
- let te = !1, Nn = !1;
11
- function Cn() {
12
- te = !0;
13
- }
14
- Cn();
15
- const he = 1, pe = 2, Mr = 4, On = 8, $n = 16, Pn = 1, In = 2, Rn = 4, xn = 8, Mn = 16, Ln = 4, Dn = 1, Fn = 2, C = Symbol(), jn = "http://www.w3.org/1999/xhtml", Un = "http://www.w3.org/2000/svg", qn = "@attach", Lr = !1;
16
- var ge = Array.isArray, Vn = Array.prototype.indexOf, Dr = Array.from, Ue = Object.defineProperty, ht = Object.getOwnPropertyDescriptor, Fr = Object.getOwnPropertyDescriptors, Bn = Object.prototype, Wn = Array.prototype, Ke = Object.getPrototypeOf;
17
- function At(t) {
18
- return typeof t == "function";
19
- }
20
- const H = () => {
21
- };
22
- function Hn(t) {
23
- return t();
24
- }
25
- function qe(t) {
26
- for (var e = 0; e < t.length; e++)
27
- t[e]();
28
- }
29
- function jr() {
30
- var t, e, r = new Promise((n, i) => {
31
- t = n, e = i;
32
- });
33
- return { promise: r, resolve: t, reject: e };
34
- }
35
- function Yn(t, e) {
36
- if (Array.isArray(t))
37
- return t;
38
- if (!(Symbol.iterator in t))
39
- return Array.from(t);
40
- const r = [];
41
- for (const n of t)
42
- if (r.push(n), r.length === e) break;
43
- return r;
44
- }
45
- const L = 2, Ze = 4, we = 8, dt = 16, et = 32, Dt = 64, Ur = 128, q = 256, oe = 512, $ = 1024, F = 2048, rt = 4096, Y = 8192, bt = 16384, be = 32768, yt = 65536, dr = 1 << 17, zn = 1 << 18, ye = 1 << 19, qr = 1 << 20, Ve = 1 << 21, me = 1 << 22, pt = 1 << 23, K = Symbol("$state"), Vr = Symbol("legacy props"), Gn = Symbol(""), Yt = new class extends Error {
46
- constructor() {
47
- super(...arguments);
48
- Vt(this, "name", "StaleReactionError");
49
- Vt(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
50
- }
51
- }();
52
- function Kn() {
53
- throw new Error("https://svelte.dev/e/async_derived_orphan");
54
- }
55
- function Zn(t) {
56
- throw new Error("https://svelte.dev/e/effect_in_teardown");
57
- }
58
- function Xn() {
59
- throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
60
- }
61
- function Jn(t) {
62
- throw new Error("https://svelte.dev/e/effect_orphan");
63
- }
64
- function Qn() {
65
- throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
66
- }
67
- function ti(t) {
68
- throw new Error("https://svelte.dev/e/props_invalid_value");
69
- }
70
- function ei() {
71
- throw new Error("https://svelte.dev/e/state_descriptors_fixed");
72
- }
73
- function ri() {
74
- throw new Error("https://svelte.dev/e/state_prototype_fixed");
75
- }
76
- function ni() {
77
- throw new Error("https://svelte.dev/e/state_unsafe_mutation");
78
- }
79
- function ii() {
80
- console.warn("https://svelte.dev/e/select_multiple_invalid_value");
81
- }
82
- let fi = !1;
83
- function Br(t) {
84
- return t === this.v;
85
- }
86
- function ai(t, e) {
87
- return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
88
- }
89
- function Wr(t) {
90
- return !ai(t, this.v);
91
- }
92
- let O = null;
93
- function ce(t) {
94
- O = t;
95
- }
96
- function Ee(t, e = !1, r) {
97
- O = {
98
- p: O,
99
- c: null,
100
- e: null,
101
- s: t,
102
- x: null,
103
- l: te && !e ? { s: null, u: null, $: [] } : null
104
- };
105
- }
106
- function Se(t) {
107
- var e = (
108
- /** @type {ComponentContext} */
109
- O
110
- ), r = e.e;
111
- if (r !== null) {
112
- e.e = null;
113
- for (var n of r)
114
- Qr(n);
115
- }
116
- return t !== void 0 && (e.x = t), O = e.p, t ?? /** @type {T} */
117
- {};
118
- }
119
- function ee() {
120
- return !te || O !== null && O.l === null;
121
- }
122
- let Tt = [];
123
- function si() {
124
- var t = Tt;
125
- Tt = [], qe(t);
126
- }
127
- function Ft(t) {
128
- if (Tt.length === 0) {
129
- var e = Tt;
130
- queueMicrotask(() => {
131
- e === Tt && si();
132
- });
133
- }
134
- Tt.push(t);
135
- }
136
- const li = /* @__PURE__ */ new WeakMap();
137
- function ui(t) {
138
- var e = T;
139
- if (e === null)
140
- return A.f |= pt, t;
141
- if ((e.f & be) === 0) {
142
- if ((e.f & Ur) === 0)
143
- throw !e.parent && t instanceof Error && Hr(t), t;
144
- e.b.error(t);
145
- } else
146
- ve(t, e);
147
- }
148
- function ve(t, e) {
149
- for (; e !== null; ) {
150
- if ((e.f & Ur) !== 0)
151
- try {
152
- e.b.error(t);
153
- return;
154
- } catch (r) {
155
- t = r;
156
- }
157
- e = e.parent;
158
- }
159
- throw t instanceof Error && Hr(t), t;
160
- }
161
- function Hr(t) {
162
- const e = li.get(t);
163
- e && (Ue(t, "message", {
164
- value: e.message
165
- }), Ue(t, "stack", {
166
- value: e.stack
167
- }));
168
- }
169
- const ae = /* @__PURE__ */ new Set();
170
- let N = null, _r = /* @__PURE__ */ new Set(), lt = [], Xe = null, Be = !1;
171
- var Ot, $t, ut, Xt, Pt, It, _t, Rt, Jt, Qt, V, We, ue, He;
172
- const Nt = class Nt {
173
- constructor() {
174
- j(this, V);
175
- /**
176
- * The current values of any sources that are updated in this batch
177
- * They keys of this map are identical to `this.#previous`
178
- * @type {Map<Source, any>}
179
- */
180
- Vt(this, "current", /* @__PURE__ */ new Map());
181
- /**
182
- * The values of any sources that are updated in this batch _before_ those updates took place.
183
- * They keys of this map are identical to `this.#current`
184
- * @type {Map<Source, any>}
185
- */
186
- j(this, Ot, /* @__PURE__ */ new Map());
187
- /**
188
- * When the batch is committed (and the DOM is updated), we need to remove old branches
189
- * and append new ones by calling the functions added inside (if/each/key/etc) blocks
190
- * @type {Set<() => void>}
191
- */
192
- j(this, $t, /* @__PURE__ */ new Set());
193
- /**
194
- * The number of async effects that are currently in flight
195
- */
196
- j(this, ut, 0);
197
- /**
198
- * A deferred that resolves when the batch is committed, used with `settled()`
199
- * TODO replace with Promise.withResolvers once supported widely enough
200
- * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
201
- */
202
- j(this, Xt, null);
203
- /**
204
- * Async effects inside a newly-created `<svelte:boundary>`
205
- * — these do not prevent the batch from committing
206
- * @type {Effect[]}
207
- */
208
- j(this, Pt, []);
209
- /**
210
- * Template effects and `$effect.pre` effects, which run when
211
- * a batch is committed
212
- * @type {Effect[]}
213
- */
214
- j(this, It, []);
215
- /**
216
- * The same as `#render_effects`, but for `$effect` (which runs after)
217
- * @type {Effect[]}
218
- */
219
- j(this, _t, []);
220
- /**
221
- * Block effects, which may need to re-run on subsequent flushes
222
- * in order to update internal sources (e.g. each block items)
223
- * @type {Effect[]}
224
- */
225
- j(this, Rt, []);
226
- /**
227
- * Deferred effects (which run after async work has completed) that are DIRTY
228
- * @type {Effect[]}
229
- */
230
- j(this, Jt, []);
231
- /**
232
- * Deferred effects that are MAYBE_DIRTY
233
- * @type {Effect[]}
234
- */
235
- j(this, Qt, []);
236
- /**
237
- * A set of branches that still exist, but will be destroyed when this batch
238
- * is committed — we skip over these during `process`
239
- * @type {Set<Effect>}
240
- */
241
- Vt(this, "skipped_effects", /* @__PURE__ */ new Set());
242
- }
243
- /**
244
- *
245
- * @param {Effect[]} root_effects
246
- */
247
- process(e) {
248
- var f;
249
- lt = [];
250
- var r = Nt.apply(this);
251
- for (const a of e)
252
- at(this, V, We).call(this, a);
253
- if (k(this, ut) === 0) {
254
- at(this, V, He).call(this);
255
- var n = k(this, It), i = k(this, _t);
256
- ft(this, It, []), ft(this, _t, []), ft(this, Rt, []), N = null, hr(n), hr(i), (f = k(this, Xt)) == null || f.resolve();
257
- } else
258
- at(this, V, ue).call(this, k(this, It)), at(this, V, ue).call(this, k(this, _t)), at(this, V, ue).call(this, k(this, Rt));
259
- r();
260
- for (const a of k(this, Pt))
261
- Mt(a);
262
- ft(this, Pt, []);
263
- }
264
- /**
265
- * Associate a change to a given source with the current
266
- * batch, noting its previous and current values
267
- * @param {Source} source
268
- * @param {any} value
269
- */
270
- capture(e, r) {
271
- k(this, Ot).has(e) || k(this, Ot).set(e, r), this.current.set(e, e.v);
272
- }
273
- activate() {
274
- N = this;
275
- }
276
- deactivate() {
277
- N = null;
278
- for (const e of _r)
279
- if (_r.delete(e), e(), N !== null)
280
- break;
281
- }
282
- flush() {
283
- if (lt.length > 0) {
284
- if (this.activate(), oi(), N !== null && N !== this)
285
- return;
286
- } else k(this, ut) === 0 && at(this, V, He).call(this);
287
- this.deactivate();
288
- }
289
- increment() {
290
- ft(this, ut, k(this, ut) + 1);
291
- }
292
- decrement() {
293
- if (ft(this, ut, k(this, ut) - 1), k(this, ut) === 0) {
294
- for (const e of k(this, Jt))
295
- I(e, F), wt(e);
296
- for (const e of k(this, Qt))
297
- I(e, rt), wt(e);
298
- this.flush();
299
- } else
300
- this.deactivate();
301
- }
302
- /** @param {() => void} fn */
303
- add_callback(e) {
304
- k(this, $t).add(e);
305
- }
306
- settled() {
307
- return (k(this, Xt) ?? ft(this, Xt, jr())).promise;
308
- }
309
- static ensure() {
310
- if (N === null) {
311
- const e = N = new Nt();
312
- ae.add(N), Nt.enqueue(() => {
313
- N === e && e.flush();
314
- });
315
- }
316
- return N;
317
- }
318
- /** @param {() => void} task */
319
- static enqueue(e) {
320
- Ft(e);
321
- }
322
- /**
323
- * @param {Batch} current_batch
324
- */
325
- static apply(e) {
326
- return H;
327
- }
328
- };
329
- Ot = new WeakMap(), $t = new WeakMap(), ut = new WeakMap(), Xt = new WeakMap(), Pt = new WeakMap(), It = new WeakMap(), _t = new WeakMap(), Rt = new WeakMap(), Jt = new WeakMap(), Qt = new WeakMap(), V = new WeakSet(), /**
330
- * Traverse the effect tree, executing effects or stashing
331
- * them for later execution as appropriate
332
- * @param {Effect} root
333
- */
334
- We = function(e) {
335
- var l;
336
- e.f ^= $;
337
- for (var r = e.first; r !== null; ) {
338
- var n = r.f, i = (n & (et | Dt)) !== 0, f = i && (n & $) !== 0, a = f || (n & Y) !== 0 || this.skipped_effects.has(r);
339
- if (!a && r.fn !== null) {
340
- i ? r.f ^= $ : (n & Ze) !== 0 ? k(this, _t).push(r) : (n & $) === 0 && ((n & me) !== 0 && ((l = r.b) != null && l.is_pending()) ? k(this, Pt).push(r) : ie(r) && ((r.f & dt) !== 0 && k(this, Rt).push(r), Mt(r)));
341
- var u = r.first;
342
- if (u !== null) {
343
- r = u;
344
- continue;
345
- }
346
- }
347
- var s = r.parent;
348
- for (r = r.next; r === null && s !== null; )
349
- r = s.next, s = s.parent;
350
- }
351
- }, /**
352
- * @param {Effect[]} effects
353
- */
354
- ue = function(e) {
355
- for (const r of e)
356
- ((r.f & F) !== 0 ? k(this, Jt) : k(this, Qt)).push(r), I(r, $);
357
- e.length = 0;
358
- }, /**
359
- * Append and remove branches to/from the DOM
360
- */
361
- He = function() {
362
- var e;
363
- for (const r of k(this, $t))
364
- r();
365
- if (k(this, $t).clear(), ae.size > 1) {
366
- k(this, Ot).clear();
367
- let r = !0;
368
- for (const n of ae) {
369
- if (n === this) {
370
- r = !1;
371
- continue;
372
- }
373
- for (const [i, f] of this.current) {
374
- if (n.current.has(i))
375
- if (r)
376
- n.current.set(i, f);
377
- else
378
- continue;
379
- Yr(i);
380
- }
381
- if (lt.length > 0) {
382
- N = n;
383
- const i = Nt.apply(n);
384
- for (const f of lt)
385
- at(e = n, V, We).call(e, f);
386
- lt = [], i();
387
- }
388
- }
389
- N = null;
390
- }
391
- ae.delete(this);
392
- };
393
- let de = Nt;
394
- function oi() {
395
- var t = Ct;
396
- Be = !0;
397
- try {
398
- var e = 0;
399
- for (br(!0); lt.length > 0; ) {
400
- var r = de.ensure();
401
- if (e++ > 1e3) {
402
- var n, i;
403
- ci();
404
- }
405
- r.process(lt), ct.clear();
406
- }
407
- } finally {
408
- Be = !1, br(t), Xe = null;
409
- }
410
- }
411
- function ci() {
412
- try {
413
- Qn();
414
- } catch (t) {
415
- ve(t, Xe);
416
- }
417
- }
418
- let X = null;
419
- function hr(t) {
420
- var e = t.length;
421
- if (e !== 0) {
422
- for (var r = 0; r < e; ) {
423
- var n = t[r++];
424
- if ((n.f & (bt | Y)) === 0 && ie(n) && (X = [], Mt(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null && n.ac === null ? rn(n) : n.fn = null), (X == null ? void 0 : X.length) > 0)) {
425
- ct.clear();
426
- for (const i of X)
427
- Mt(i);
428
- X = [];
429
- }
430
- }
431
- X = null;
432
- }
433
- }
434
- function Yr(t) {
435
- if (t.reactions !== null)
436
- for (const e of t.reactions) {
437
- const r = e.f;
438
- (r & L) !== 0 ? Yr(
439
- /** @type {Derived} */
440
- e
441
- ) : (r & (me | dt)) !== 0 && (I(e, F), wt(
442
- /** @type {Effect} */
443
- e
444
- ));
445
- }
446
- }
447
- function wt(t) {
448
- for (var e = Xe = t; e.parent !== null; ) {
449
- e = e.parent;
450
- var r = e.f;
451
- if (Be && e === T && (r & dt) !== 0)
452
- return;
453
- if ((r & (Dt | et)) !== 0) {
454
- if ((r & $) === 0) return;
455
- e.f ^= $;
456
- }
457
- }
458
- lt.push(e);
459
- }
460
- function zr(t, e, r) {
461
- const n = ee() ? re : Je;
462
- if (e.length === 0) {
463
- r(t.map(n));
464
- return;
465
- }
466
- var i = N, f = (
467
- /** @type {Effect} */
468
- T
469
- ), a = vi();
470
- Promise.all(e.map((u) => /* @__PURE__ */ di(u))).then((u) => {
471
- i == null || i.activate(), a();
472
- try {
473
- r([...t.map(n), ...u]);
474
- } catch (s) {
475
- (f.f & bt) === 0 && ve(s, f);
476
- }
477
- i == null || i.deactivate(), Gr();
478
- }).catch((u) => {
479
- ve(u, f);
480
- });
481
- }
482
- function vi() {
483
- var t = T, e = A, r = O, n = N;
484
- return function() {
485
- vt(t), Z(e), ce(r), n == null || n.activate();
486
- };
487
- }
488
- function Gr() {
489
- vt(null), Z(null), ce(null);
490
- }
491
- // @__NO_SIDE_EFFECTS__
492
- function re(t) {
493
- var e = L | F, r = A !== null && (A.f & L) !== 0 ? (
494
- /** @type {Derived} */
495
- A
496
- ) : null;
497
- return T === null || r !== null && (r.f & q) !== 0 ? e |= q : T.f |= ye, {
498
- ctx: O,
499
- deps: null,
500
- effects: null,
501
- equals: Br,
502
- f: e,
503
- fn: t,
504
- reactions: null,
505
- rv: 0,
506
- v: (
507
- /** @type {V} */
508
- C
509
- ),
510
- wv: 0,
511
- parent: r ?? T,
512
- ac: null
513
- };
514
- }
515
- // @__NO_SIDE_EFFECTS__
516
- function di(t, e) {
517
- let r = (
518
- /** @type {Effect | null} */
519
- T
520
- );
521
- r === null && Kn();
522
- var n = (
523
- /** @type {Boundary} */
524
- r.b
525
- ), i = (
526
- /** @type {Promise<V>} */
527
- /** @type {unknown} */
528
- void 0
529
- ), f = zt(
530
- /** @type {V} */
531
- C
532
- ), a = !A, u = /* @__PURE__ */ new Map();
533
- return Ci(() => {
534
- var d;
535
- var s = jr();
536
- i = s.promise;
537
- try {
538
- Promise.resolve(t()).then(s.resolve, s.reject);
539
- } catch (_) {
540
- s.reject(_);
541
- }
542
- var l = (
543
- /** @type {Batch} */
544
- N
545
- ), o = n.is_pending();
546
- a && (n.update_pending_count(1), o || (l.increment(), (d = u.get(l)) == null || d.reject(Yt), u.set(l, s)));
547
- const v = (_, c = void 0) => {
548
- o || l.activate(), c ? c !== Yt && (f.f |= pt, Gt(f, c)) : ((f.f & pt) !== 0 && (f.f ^= pt), Gt(f, _)), a && (n.update_pending_count(-1), o || l.decrement()), Gr();
549
- };
550
- s.promise.then(v, (_) => v(null, _ || "unknown"));
551
- }), ke(() => {
552
- for (const s of u.values())
553
- s.reject(Yt);
554
- }), new Promise((s) => {
555
- function l(o) {
556
- function v() {
557
- o === i ? s(f) : l(i);
558
- }
559
- o.then(v, v);
560
- }
561
- l(i);
562
- });
563
- }
564
- // @__NO_SIDE_EFFECTS__
565
- function _i(t) {
566
- const e = /* @__PURE__ */ re(t);
567
- return an(e), e;
568
- }
569
- // @__NO_SIDE_EFFECTS__
570
- function Je(t) {
571
- const e = /* @__PURE__ */ re(t);
572
- return e.equals = Wr, e;
573
- }
574
- function Kr(t) {
575
- var e = t.effects;
576
- if (e !== null) {
577
- t.effects = null;
578
- for (var r = 0; r < e.length; r += 1)
579
- B(
580
- /** @type {Effect} */
581
- e[r]
582
- );
583
- }
584
- }
585
- function hi(t) {
586
- for (var e = t.parent; e !== null; ) {
587
- if ((e.f & L) === 0)
588
- return (
589
- /** @type {Effect} */
590
- e
591
- );
592
- e = e.parent;
593
- }
594
- return null;
595
- }
596
- function Qe(t) {
597
- var e, r = T;
598
- vt(hi(t));
599
- try {
600
- Kr(t), e = on(t);
601
- } finally {
602
- vt(r);
603
- }
604
- return e;
605
- }
606
- function Zr(t) {
607
- var e = Qe(t);
608
- if (t.equals(e) || (t.v = e, t.wv = ln()), !St) {
609
- var r = (ot || (t.f & q) !== 0) && t.deps !== null ? rt : $;
610
- I(t, r);
611
- }
612
- }
613
- const ct = /* @__PURE__ */ new Map();
614
- function zt(t, e) {
615
- var r = {
616
- f: 0,
617
- // TODO ideally we could skip this altogether, but it causes type errors
618
- v: t,
619
- reactions: null,
620
- equals: Br,
621
- rv: 0,
622
- wv: 0
623
- };
624
- return r;
625
- }
626
- // @__NO_SIDE_EFFECTS__
627
- function st(t, e) {
628
- const r = zt(t);
629
- return an(r), r;
630
- }
631
- // @__NO_SIDE_EFFECTS__
632
- function pi(t, e = !1, r = !0) {
633
- var i;
634
- const n = zt(t);
635
- return e || (n.equals = Wr), te && r && O !== null && O.l !== null && ((i = O.l).s ?? (i.s = [])).push(n), n;
636
- }
637
- function yf(t, e) {
638
- return J(
639
- t,
640
- Ut(() => P(t))
641
- ), e;
642
- }
643
- function J(t, e, r = !1) {
644
- A !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
645
- // to ensure we error if state is set inside an inspect effect
646
- (!G || (A.f & dr) !== 0) && ee() && (A.f & (L | dt | me | dr)) !== 0 && !(x != null && x.includes(t)) && ni();
647
- let n = r ? kt(e) : e;
648
- return Gt(t, n);
649
- }
650
- function Gt(t, e) {
651
- if (!t.equals(e)) {
652
- var r = t.v;
653
- St ? ct.set(t, e) : ct.set(t, r), t.v = e;
654
- var n = de.ensure();
655
- n.capture(t, r), (t.f & L) !== 0 && ((t.f & F) !== 0 && Qe(
656
- /** @type {Derived} */
657
- t
658
- ), I(t, (t.f & q) === 0 ? $ : rt)), t.wv = ln(), Xr(t, F), ee() && T !== null && (T.f & $) !== 0 && (T.f & (et | Dt)) === 0 && (U === null ? Pi([t]) : U.push(t));
659
- }
660
- return e;
661
- }
662
- function Le(t) {
663
- J(t, t.v + 1);
664
- }
665
- function Xr(t, e) {
666
- var r = t.reactions;
667
- if (r !== null)
668
- for (var n = ee(), i = r.length, f = 0; f < i; f++) {
669
- var a = r[f], u = a.f;
670
- if (!(!n && a === T)) {
671
- var s = (u & F) === 0;
672
- s && I(a, e), (u & L) !== 0 ? Xr(
673
- /** @type {Derived} */
674
- a,
675
- rt
676
- ) : s && ((u & dt) !== 0 && X !== null && X.push(
677
- /** @type {Effect} */
678
- a
679
- ), wt(
680
- /** @type {Effect} */
681
- a
682
- ));
683
- }
684
- }
685
- }
686
- function kt(t) {
687
- if (typeof t != "object" || t === null || K in t)
688
- return t;
689
- const e = Ke(t);
690
- if (e !== Bn && e !== Wn)
691
- return t;
692
- var r = /* @__PURE__ */ new Map(), n = ge(t), i = /* @__PURE__ */ st(0), f = gt, a = (u) => {
693
- if (gt === f)
694
- return u();
695
- var s = A, l = gt;
696
- Z(null), mr(f);
697
- var o = u();
698
- return Z(s), mr(l), o;
699
- };
700
- return n && r.set("length", /* @__PURE__ */ st(
701
- /** @type {any[]} */
702
- t.length
703
- )), new Proxy(
704
- /** @type {any} */
705
- t,
706
- {
707
- defineProperty(u, s, l) {
708
- (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && ei();
709
- var o = r.get(s);
710
- return o === void 0 ? o = a(() => {
711
- var v = /* @__PURE__ */ st(l.value);
712
- return r.set(s, v), v;
713
- }) : J(o, l.value, !0), !0;
714
- },
715
- deleteProperty(u, s) {
716
- var l = r.get(s);
717
- if (l === void 0) {
718
- if (s in u) {
719
- const o = a(() => /* @__PURE__ */ st(C));
720
- r.set(s, o), Le(i);
721
- }
722
- } else
723
- J(l, C), Le(i);
724
- return !0;
725
- },
726
- get(u, s, l) {
727
- var _;
728
- if (s === K)
729
- return t;
730
- var o = r.get(s), v = s in u;
731
- if (o === void 0 && (!v || (_ = ht(u, s)) != null && _.writable) && (o = a(() => {
732
- var c = kt(v ? u[s] : C), h = /* @__PURE__ */ st(c);
733
- return h;
734
- }), r.set(s, o)), o !== void 0) {
735
- var d = P(o);
736
- return d === C ? void 0 : d;
737
- }
738
- return Reflect.get(u, s, l);
739
- },
740
- getOwnPropertyDescriptor(u, s) {
741
- var l = Reflect.getOwnPropertyDescriptor(u, s);
742
- if (l && "value" in l) {
743
- var o = r.get(s);
744
- o && (l.value = P(o));
745
- } else if (l === void 0) {
746
- var v = r.get(s), d = v == null ? void 0 : v.v;
747
- if (v !== void 0 && d !== C)
748
- return {
749
- enumerable: !0,
750
- configurable: !0,
751
- value: d,
752
- writable: !0
753
- };
754
- }
755
- return l;
756
- },
757
- has(u, s) {
758
- var d;
759
- if (s === K)
760
- return !0;
761
- var l = r.get(s), o = l !== void 0 && l.v !== C || Reflect.has(u, s);
762
- if (l !== void 0 || T !== null && (!o || (d = ht(u, s)) != null && d.writable)) {
763
- l === void 0 && (l = a(() => {
764
- var _ = o ? kt(u[s]) : C, c = /* @__PURE__ */ st(_);
765
- return c;
766
- }), r.set(s, l));
767
- var v = P(l);
768
- if (v === C)
769
- return !1;
770
- }
771
- return o;
772
- },
773
- set(u, s, l, o) {
774
- var w;
775
- var v = r.get(s), d = s in u;
776
- if (n && s === "length")
777
- for (var _ = l; _ < /** @type {Source<number>} */
778
- v.v; _ += 1) {
779
- var c = r.get(_ + "");
780
- c !== void 0 ? J(c, C) : _ in u && (c = a(() => /* @__PURE__ */ st(C)), r.set(_ + "", c));
781
- }
782
- if (v === void 0)
783
- (!d || (w = ht(u, s)) != null && w.writable) && (v = a(() => /* @__PURE__ */ st(void 0)), J(v, kt(l)), r.set(s, v));
784
- else {
785
- d = v.v !== C;
786
- var h = a(() => kt(l));
787
- J(v, h);
788
- }
789
- var p = Reflect.getOwnPropertyDescriptor(u, s);
790
- if (p != null && p.set && p.set.call(o, l), !d) {
791
- if (n && typeof s == "string") {
792
- var g = (
793
- /** @type {Source<number>} */
794
- r.get("length")
795
- ), S = Number(s);
796
- Number.isInteger(S) && S >= g.v && J(g, S + 1);
797
- }
798
- Le(i);
799
- }
800
- return !0;
801
- },
802
- ownKeys(u) {
803
- P(i);
804
- var s = Reflect.ownKeys(u).filter((v) => {
805
- var d = r.get(v);
806
- return d === void 0 || d.v !== C;
807
- });
808
- for (var [l, o] of r)
809
- o.v !== C && !(l in u) && s.push(l);
810
- return s;
811
- },
812
- setPrototypeOf() {
813
- ri();
814
- }
815
- }
816
- );
817
- }
818
- function pr(t) {
819
- try {
820
- if (t !== null && typeof t == "object" && K in t)
821
- return t[K];
822
- } catch {
823
- }
824
- return t;
825
- }
826
- function gi(t, e) {
827
- return Object.is(pr(t), pr(e));
828
- }
829
- var wi, bi, yi;
830
- function mt(t = "") {
831
- return document.createTextNode(t);
832
- }
833
- // @__NO_SIDE_EFFECTS__
834
- function xt(t) {
835
- return bi.call(t);
836
- }
837
- // @__NO_SIDE_EFFECTS__
838
- function Ae(t) {
839
- return yi.call(t);
840
- }
841
- function mi(t, e) {
842
- return /* @__PURE__ */ xt(t);
843
- }
844
- function Te(t, e = !1) {
845
- {
846
- var r = (
847
- /** @type {DocumentFragment} */
848
- /* @__PURE__ */ xt(
849
- /** @type {Node} */
850
- t
851
- )
852
- );
853
- return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Ae(r) : r;
854
- }
855
- }
856
- function Ei(t, e = 1, r = !1) {
857
- let n = t;
858
- for (; e--; )
859
- n = /** @type {TemplateNode} */
860
- /* @__PURE__ */ Ae(n);
861
- return n;
862
- }
863
- function Si(t) {
864
- t.textContent = "";
865
- }
866
- function tr() {
867
- return !1;
868
- }
869
- function Ai(t, e) {
870
- if (e) {
871
- const r = document.body;
872
- t.autofocus = !0, Ft(() => {
873
- document.activeElement === r && t.focus();
874
- });
875
- }
876
- }
877
- let gr = !1;
878
- function Ti() {
879
- gr || (gr = !0, document.addEventListener(
880
- "reset",
881
- (t) => {
882
- Promise.resolve().then(() => {
883
- var e;
884
- if (!t.defaultPrevented)
885
- for (
886
- const r of
887
- /**@type {HTMLFormElement} */
888
- t.target.elements
889
- )
890
- (e = r.__on_r) == null || e.call(r);
891
- });
892
- },
893
- // In the capture phase to guarantee we get noticed of it (no possiblity of stopPropagation)
894
- { capture: !0 }
895
- ));
896
- }
897
- function jt(t) {
898
- var e = A, r = T;
899
- Z(null), vt(null);
900
- try {
901
- return t();
902
- } finally {
903
- Z(e), vt(r);
904
- }
905
- }
906
- function mf(t, e, r, n = r) {
907
- t.addEventListener(e, () => jt(r));
908
- const i = t.__on_r;
909
- i ? t.__on_r = () => {
910
- i(), n(!0);
911
- } : t.__on_r = () => n(!0), Ti();
912
- }
913
- function Jr(t) {
914
- T === null && A === null && Jn(), A !== null && (A.f & q) !== 0 && T === null && Xn(), St && Zn();
915
- }
916
- function ki(t, e) {
917
- var r = e.last;
918
- r === null ? e.last = e.first = t : (r.next = t, t.prev = r, e.last = t);
919
- }
920
- function nt(t, e, r, n = !0) {
921
- var i = T;
922
- i !== null && (i.f & Y) !== 0 && (t |= Y);
923
- var f = {
924
- ctx: O,
925
- deps: null,
926
- nodes_start: null,
927
- nodes_end: null,
928
- f: t | F,
929
- first: null,
930
- fn: e,
931
- last: null,
932
- next: null,
933
- parent: i,
934
- b: i && i.b,
935
- prev: null,
936
- teardown: null,
937
- transitions: null,
938
- wv: 0,
939
- ac: null
940
- };
941
- if (r)
942
- try {
943
- Mt(f), f.f |= be;
944
- } catch (s) {
945
- throw B(f), s;
946
- }
947
- else e !== null && wt(f);
948
- if (n) {
949
- var a = f;
950
- if (r && a.deps === null && a.teardown === null && a.nodes_start === null && a.first === a.last && // either `null`, or a singular child
951
- (a.f & ye) === 0 && (a = a.first), a !== null && (a.parent = i, i !== null && ki(a, i), A !== null && (A.f & L) !== 0 && (t & Dt) === 0)) {
952
- var u = (
953
- /** @type {Derived} */
954
- A
955
- );
956
- (u.effects ?? (u.effects = [])).push(a);
957
- }
958
- }
959
- return f;
960
- }
961
- function ke(t) {
962
- const e = nt(we, null, !1);
963
- return I(e, $), e.teardown = t, e;
964
- }
965
- function wr(t) {
966
- Jr();
967
- var e = (
968
- /** @type {Effect} */
969
- T.f
970
- ), r = !A && (e & et) !== 0 && (e & be) === 0;
971
- if (r) {
972
- var n = (
973
- /** @type {ComponentContext} */
974
- O
975
- );
976
- (n.e ?? (n.e = [])).push(t);
977
- } else
978
- return Qr(t);
979
- }
980
- function Qr(t) {
981
- return nt(Ze | qr, t, !1);
982
- }
983
- function Ni(t) {
984
- return Jr(), nt(we | qr, t, !0);
985
- }
986
- function ne(t) {
987
- return nt(Ze, t, !1);
988
- }
989
- function Ef(t, e) {
990
- var r = (
991
- /** @type {ComponentContextLegacy} */
992
- O
993
- ), n = { effect: null, ran: !1, deps: t };
994
- r.l.$.push(n), n.effect = er(() => {
995
- t(), !n.ran && (n.ran = !0, Ut(e));
996
- });
997
- }
998
- function Sf() {
999
- var t = (
1000
- /** @type {ComponentContextLegacy} */
1001
- O
1002
- );
1003
- er(() => {
1004
- for (var e of t.l.$) {
1005
- e.deps();
1006
- var r = e.effect;
1007
- (r.f & $) !== 0 && I(r, rt), ie(r) && Mt(r), e.ran = !1;
1008
- }
1009
- });
1010
- }
1011
- function Ci(t) {
1012
- return nt(me | ye, t, !0);
1013
- }
1014
- function er(t, e = 0) {
1015
- return nt(we | e, t, !0);
1016
- }
1017
- function Af(t, e = [], r = []) {
1018
- zr(e, r, (n) => {
1019
- nt(we, () => t(...n.map(P)), !0);
1020
- });
1021
- }
1022
- function Et(t, e = 0) {
1023
- var r = nt(dt | e, t, !0);
1024
- return r;
1025
- }
1026
- function tt(t, e = !0) {
1027
- return nt(et | ye, t, !0, e);
1028
- }
1029
- function tn(t) {
1030
- var e = t.teardown;
1031
- if (e !== null) {
1032
- const r = St, n = A;
1033
- yr(!0), Z(null);
1034
- try {
1035
- e.call(null);
1036
- } finally {
1037
- yr(r), Z(n);
1038
- }
1039
- }
1040
- }
1041
- function en(t, e = !1) {
1042
- var r = t.first;
1043
- for (t.first = t.last = null; r !== null; ) {
1044
- const i = r.ac;
1045
- i !== null && jt(() => {
1046
- i.abort(Yt);
1047
- });
1048
- var n = r.next;
1049
- (r.f & Dt) !== 0 ? r.parent = null : B(r, e), r = n;
1050
- }
1051
- }
1052
- function Oi(t) {
1053
- for (var e = t.first; e !== null; ) {
1054
- var r = e.next;
1055
- (e.f & et) === 0 && B(e), e = r;
1056
- }
1057
- }
1058
- function B(t, e = !0) {
1059
- var r = !1;
1060
- (e || (t.f & zn) !== 0) && t.nodes_start !== null && t.nodes_end !== null && ($i(
1061
- t.nodes_start,
1062
- /** @type {TemplateNode} */
1063
- t.nodes_end
1064
- ), r = !0), en(t, e && !r), _e(t, 0), I(t, bt);
1065
- var n = t.transitions;
1066
- if (n !== null)
1067
- for (const f of n)
1068
- f.stop();
1069
- tn(t);
1070
- var i = t.parent;
1071
- i !== null && i.first !== null && rn(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = t.ac = null;
1072
- }
1073
- function $i(t, e) {
1074
- for (; t !== null; ) {
1075
- var r = t === e ? null : (
1076
- /** @type {TemplateNode} */
1077
- /* @__PURE__ */ Ae(t)
1078
- );
1079
- t.remove(), t = r;
1080
- }
1081
- }
1082
- function rn(t) {
1083
- var e = t.parent, r = t.prev, n = t.next;
1084
- r !== null && (r.next = n), n !== null && (n.prev = r), e !== null && (e.first === t && (e.first = n), e.last === t && (e.last = r));
1085
- }
1086
- function Ne(t, e) {
1087
- var r = [];
1088
- rr(t, r, !0), nn(r, () => {
1089
- B(t), e && e();
1090
- });
1091
- }
1092
- function nn(t, e) {
1093
- var r = t.length;
1094
- if (r > 0) {
1095
- var n = () => --r || e();
1096
- for (var i of t)
1097
- i.out(n);
1098
- } else
1099
- e();
1100
- }
1101
- function rr(t, e, r) {
1102
- if ((t.f & Y) === 0) {
1103
- if (t.f ^= Y, t.transitions !== null)
1104
- for (const a of t.transitions)
1105
- (a.is_global || r) && e.push(a);
1106
- for (var n = t.first; n !== null; ) {
1107
- var i = n.next, f = (n.f & yt) !== 0 || (n.f & et) !== 0;
1108
- rr(n, e, f ? r : !1), n = i;
1109
- }
1110
- }
1111
- }
1112
- function Ce(t) {
1113
- fn(t, !0);
1114
- }
1115
- function fn(t, e) {
1116
- if ((t.f & Y) !== 0) {
1117
- t.f ^= Y, (t.f & $) === 0 && (I(t, F), wt(t));
1118
- for (var r = t.first; r !== null; ) {
1119
- var n = r.next, i = (r.f & yt) !== 0 || (r.f & et) !== 0;
1120
- fn(r, i ? e : !1), r = n;
1121
- }
1122
- if (t.transitions !== null)
1123
- for (const f of t.transitions)
1124
- (f.is_global || e) && f.in();
1125
- }
1126
- }
1127
- let Ct = !1;
1128
- function br(t) {
1129
- Ct = t;
1130
- }
1131
- let St = !1;
1132
- function yr(t) {
1133
- St = t;
1134
- }
1135
- let A = null, G = !1;
1136
- function Z(t) {
1137
- A = t;
1138
- }
1139
- let T = null;
1140
- function vt(t) {
1141
- T = t;
1142
- }
1143
- let x = null;
1144
- function an(t) {
1145
- A !== null && (x === null ? x = [t] : x.push(t));
1146
- }
1147
- let R = null, D = 0, U = null;
1148
- function Pi(t) {
1149
- U = t;
1150
- }
1151
- let sn = 1, Kt = 0, gt = Kt;
1152
- function mr(t) {
1153
- gt = t;
1154
- }
1155
- let ot = !1;
1156
- function ln() {
1157
- return ++sn;
1158
- }
1159
- function ie(t) {
1160
- var v;
1161
- var e = t.f;
1162
- if ((e & F) !== 0)
1163
- return !0;
1164
- if ((e & rt) !== 0) {
1165
- var r = t.deps, n = (e & q) !== 0;
1166
- if (r !== null) {
1167
- var i, f, a = (e & oe) !== 0, u = n && T !== null && !ot, s = r.length;
1168
- if ((a || u) && (T === null || (T.f & bt) === 0)) {
1169
- var l = (
1170
- /** @type {Derived} */
1171
- t
1172
- ), o = l.parent;
1173
- for (i = 0; i < s; i++)
1174
- f = r[i], (a || !((v = f == null ? void 0 : f.reactions) != null && v.includes(l))) && (f.reactions ?? (f.reactions = [])).push(l);
1175
- a && (l.f ^= oe), u && o !== null && (o.f & q) === 0 && (l.f ^= q);
1176
- }
1177
- for (i = 0; i < s; i++)
1178
- if (f = r[i], ie(
1179
- /** @type {Derived} */
1180
- f
1181
- ) && Zr(
1182
- /** @type {Derived} */
1183
- f
1184
- ), f.wv > t.wv)
1185
- return !0;
1186
- }
1187
- (!n || T !== null && !ot) && I(t, $);
1188
- }
1189
- return !1;
1190
- }
1191
- function un(t, e, r = !0) {
1192
- var n = t.reactions;
1193
- if (n !== null && !(x != null && x.includes(t)))
1194
- for (var i = 0; i < n.length; i++) {
1195
- var f = n[i];
1196
- (f.f & L) !== 0 ? un(
1197
- /** @type {Derived} */
1198
- f,
1199
- e,
1200
- !1
1201
- ) : e === f && (r ? I(f, F) : (f.f & $) !== 0 && I(f, rt), wt(
1202
- /** @type {Effect} */
1203
- f
1204
- ));
1205
- }
1206
- }
1207
- function on(t) {
1208
- var h;
1209
- var e = R, r = D, n = U, i = A, f = ot, a = x, u = O, s = G, l = gt, o = t.f;
1210
- R = /** @type {null | Value[]} */
1211
- null, D = 0, U = null, ot = (o & q) !== 0 && (G || !Ct || A === null), A = (o & (et | Dt)) === 0 ? t : null, x = null, ce(t.ctx), G = !1, gt = ++Kt, t.ac !== null && (jt(() => {
1212
- t.ac.abort(Yt);
1213
- }), t.ac = null);
1214
- try {
1215
- t.f |= Ve;
1216
- var v = (
1217
- /** @type {Function} */
1218
- t.fn
1219
- ), d = v(), _ = t.deps;
1220
- if (R !== null) {
1221
- var c;
1222
- if (_e(t, D), _ !== null && D > 0)
1223
- for (_.length = D + R.length, c = 0; c < R.length; c++)
1224
- _[D + c] = R[c];
1225
- else
1226
- t.deps = _ = R;
1227
- if (!ot || // Deriveds that already have reactions can cleanup, so we still add them as reactions
1228
- (o & L) !== 0 && /** @type {import('#client').Derived} */
1229
- t.reactions !== null)
1230
- for (c = D; c < _.length; c++)
1231
- ((h = _[c]).reactions ?? (h.reactions = [])).push(t);
1232
- } else _ !== null && D < _.length && (_e(t, D), _.length = D);
1233
- if (ee() && U !== null && !G && _ !== null && (t.f & (L | rt | F)) === 0)
1234
- for (c = 0; c < /** @type {Source[]} */
1235
- U.length; c++)
1236
- un(
1237
- U[c],
1238
- /** @type {Effect} */
1239
- t
1240
- );
1241
- return i !== null && i !== t && (Kt++, U !== null && (n === null ? n = U : n.push(.../** @type {Source[]} */
1242
- U))), (t.f & pt) !== 0 && (t.f ^= pt), d;
1243
- } catch (p) {
1244
- return ui(p);
1245
- } finally {
1246
- t.f ^= Ve, R = e, D = r, U = n, A = i, ot = f, x = a, ce(u), G = s, gt = l;
1247
- }
1248
- }
1249
- function Ii(t, e) {
1250
- let r = e.reactions;
1251
- if (r !== null) {
1252
- var n = Vn.call(r, t);
1253
- if (n !== -1) {
1254
- var i = r.length - 1;
1255
- i === 0 ? r = e.reactions = null : (r[n] = r[i], r.pop());
1256
- }
1257
- }
1258
- r === null && (e.f & L) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1259
- // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1260
- // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1261
- (R === null || !R.includes(e)) && (I(e, rt), (e.f & (q | oe)) === 0 && (e.f ^= oe), Kr(
1262
- /** @type {Derived} **/
1263
- e
1264
- ), _e(
1265
- /** @type {Derived} **/
1266
- e,
1267
- 0
1268
- ));
1269
- }
1270
- function _e(t, e) {
1271
- var r = t.deps;
1272
- if (r !== null)
1273
- for (var n = e; n < r.length; n++)
1274
- Ii(t, r[n]);
1275
- }
1276
- function Mt(t) {
1277
- var e = t.f;
1278
- if ((e & bt) === 0) {
1279
- I(t, $);
1280
- var r = T, n = Ct;
1281
- T = t, Ct = !0;
1282
- try {
1283
- (e & dt) !== 0 ? Oi(t) : en(t), tn(t);
1284
- var i = on(t);
1285
- t.teardown = typeof i == "function" ? i : null, t.wv = sn;
1286
- var f;
1287
- Lr && Nn && (t.f & F) !== 0 && t.deps;
1288
- } finally {
1289
- Ct = n, T = r;
1290
- }
1291
- }
1292
- }
1293
- function P(t) {
1294
- var e = t.f, r = (e & L) !== 0;
1295
- if (A !== null && !G) {
1296
- var n = T !== null && (T.f & bt) !== 0;
1297
- if (!n && !(x != null && x.includes(t))) {
1298
- var i = A.deps;
1299
- if ((A.f & Ve) !== 0)
1300
- t.rv < Kt && (t.rv = Kt, R === null && i !== null && i[D] === t ? D++ : R === null ? R = [t] : (!ot || !R.includes(t)) && R.push(t));
1301
- else {
1302
- (A.deps ?? (A.deps = [])).push(t);
1303
- var f = t.reactions;
1304
- f === null ? t.reactions = [A] : f.includes(A) || f.push(A);
1305
- }
1306
- }
1307
- } else if (r && /** @type {Derived} */
1308
- t.deps === null && /** @type {Derived} */
1309
- t.effects === null) {
1310
- var a = (
1311
- /** @type {Derived} */
1312
- t
1313
- ), u = a.parent;
1314
- u !== null && (u.f & q) === 0 && (a.f ^= q);
1315
- }
1316
- if (St) {
1317
- if (ct.has(t))
1318
- return ct.get(t);
1319
- if (r) {
1320
- a = /** @type {Derived} */
1321
- t;
1322
- var s = a.v;
1323
- return ((a.f & $) === 0 && a.reactions !== null || cn(a)) && (s = Qe(a)), ct.set(a, s), s;
1324
- }
1325
- } else r && (a = /** @type {Derived} */
1326
- t, ie(a) && Zr(a));
1327
- if ((t.f & pt) !== 0)
1328
- throw t.v;
1329
- return t.v;
1330
- }
1331
- function cn(t) {
1332
- if (t.v === C) return !0;
1333
- if (t.deps === null) return !1;
1334
- for (const e of t.deps)
1335
- if (ct.has(e) || (e.f & L) !== 0 && cn(
1336
- /** @type {Derived} */
1337
- e
1338
- ))
1339
- return !0;
1340
- return !1;
1341
- }
1342
- function Ut(t) {
1343
- var e = G;
1344
- try {
1345
- return G = !0, t();
1346
- } finally {
1347
- G = e;
1348
- }
1349
- }
1350
- const Ri = -7169;
1351
- function I(t, e) {
1352
- t.f = t.f & Ri | e;
1353
- }
1354
- function xi(t) {
1355
- if (!(typeof t != "object" || !t || t instanceof EventTarget)) {
1356
- if (K in t)
1357
- Ye(t);
1358
- else if (!Array.isArray(t))
1359
- for (let e in t) {
1360
- const r = t[e];
1361
- typeof r == "object" && r && K in r && Ye(r);
1362
- }
1363
- }
1364
- }
1365
- function Ye(t, e = /* @__PURE__ */ new Set()) {
1366
- if (typeof t == "object" && t !== null && // We don't want to traverse DOM elements
1367
- !(t instanceof EventTarget) && !e.has(t)) {
1368
- e.add(t), t instanceof Date && t.getTime();
1369
- for (let n in t)
1370
- try {
1371
- Ye(t[n], e);
1372
- } catch {
1373
- }
1374
- const r = Ke(t);
1375
- if (r !== Object.prototype && r !== Array.prototype && r !== Map.prototype && r !== Set.prototype && r !== Date.prototype) {
1376
- const n = Fr(r);
1377
- for (let i in n) {
1378
- const f = n[i].get;
1379
- if (f)
1380
- try {
1381
- f.call(t);
1382
- } catch {
1383
- }
1384
- }
1385
- }
1386
- }
1387
- }
1388
- const Mi = /* @__PURE__ */ new Set(), Li = /* @__PURE__ */ new Set();
1389
- function vn(t, e, r, n = {}) {
1390
- function i(f) {
1391
- if (n.capture || Fi.call(e, f), !f.cancelBubble)
1392
- return jt(() => r == null ? void 0 : r.call(this, f));
1393
- }
1394
- return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? Ft(() => {
1395
- e.addEventListener(t, i, n);
1396
- }) : e.addEventListener(t, i, n), i;
1397
- }
1398
- function Tf(t, e, r, n, i) {
1399
- var f = { capture: n, passive: i }, a = vn(t, e, r, f);
1400
- (e === document.body || // @ts-ignore
1401
- e === window || // @ts-ignore
1402
- e === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
1403
- e instanceof HTMLMediaElement) && ke(() => {
1404
- e.removeEventListener(t, a, f);
1405
- });
1406
- }
1407
- function Di(t) {
1408
- for (var e = 0; e < t.length; e++)
1409
- Mi.add(t[e]);
1410
- for (var r of Li)
1411
- r(t);
1412
- }
1413
- let Er = null;
1414
- function Fi(t) {
1415
- var S;
1416
- var e = this, r = (
1417
- /** @type {Node} */
1418
- e.ownerDocument
1419
- ), n = t.type, i = ((S = t.composedPath) == null ? void 0 : S.call(t)) || [], f = (
1420
- /** @type {null | Element} */
1421
- i[0] || t.target
1422
- );
1423
- Er = t;
1424
- var a = 0, u = Er === t && t.__root;
1425
- if (u) {
1426
- var s = i.indexOf(u);
1427
- if (s !== -1 && (e === document || e === /** @type {any} */
1428
- window)) {
1429
- t.__root = e;
1430
- return;
1431
- }
1432
- var l = i.indexOf(e);
1433
- if (l === -1)
1434
- return;
1435
- s <= l && (a = s);
1436
- }
1437
- if (f = /** @type {Element} */
1438
- i[a] || t.target, f !== e) {
1439
- Ue(t, "currentTarget", {
1440
- configurable: !0,
1441
- get() {
1442
- return f || r;
1443
- }
1444
- });
1445
- var o = A, v = T;
1446
- Z(null), vt(null);
1447
- try {
1448
- for (var d, _ = []; f !== null; ) {
1449
- var c = f.assignedSlot || f.parentNode || /** @type {any} */
1450
- f.host || null;
1451
- try {
1452
- var h = f["__" + n];
1453
- if (h != null && (!/** @type {any} */
1454
- f.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1455
- // -> the target could not have been disabled because it emits the event in the first place
1456
- t.target === f))
1457
- if (ge(h)) {
1458
- var [p, ...g] = h;
1459
- p.apply(f, [t, ...g]);
1460
- } else
1461
- h.call(f, t);
1462
- } catch (w) {
1463
- d ? _.push(w) : d = w;
1464
- }
1465
- if (t.cancelBubble || c === e || c === null)
1466
- break;
1467
- f = c;
1468
- }
1469
- if (d) {
1470
- for (let w of _)
1471
- queueMicrotask(() => {
1472
- throw w;
1473
- });
1474
- throw d;
1475
- }
1476
- } finally {
1477
- t.__root = e, delete t.currentTarget, Z(o), vt(v);
1478
- }
1479
- }
1480
- }
1481
- function dn(t) {
1482
- var e = document.createElement("template");
1483
- return e.innerHTML = t.replaceAll("<!>", "<!---->"), e.content;
1484
- }
1485
- function Lt(t, e) {
1486
- var r = (
1487
- /** @type {Effect} */
1488
- T
1489
- );
1490
- r.nodes_start === null && (r.nodes_start = t, r.nodes_end = e);
1491
- }
1492
- // @__NO_SIDE_EFFECTS__
1493
- function kf(t, e) {
1494
- var r = (e & Dn) !== 0, n = (e & Fn) !== 0, i, f = !t.startsWith("<!>");
1495
- return () => {
1496
- i === void 0 && (i = dn(f ? t : "<!>" + t), r || (i = /** @type {Node} */
1497
- /* @__PURE__ */ xt(i)));
1498
- var a = (
1499
- /** @type {TemplateNode} */
1500
- n || wi ? document.importNode(i, !0) : i.cloneNode(!0)
1501
- );
1502
- if (r) {
1503
- var u = (
1504
- /** @type {TemplateNode} */
1505
- /* @__PURE__ */ xt(a)
1506
- ), s = (
1507
- /** @type {TemplateNode} */
1508
- a.lastChild
1509
- );
1510
- Lt(u, s);
1511
- } else
1512
- Lt(a, a);
1513
- return a;
1514
- };
1515
- }
1516
- // @__NO_SIDE_EFFECTS__
1517
- function ji(t, e, r = "svg") {
1518
- var n = !t.startsWith("<!>"), i = `<${r}>${n ? t : "<!>" + t}</${r}>`, f;
1519
- return () => {
1520
- if (!f) {
1521
- var a = (
1522
- /** @type {DocumentFragment} */
1523
- dn(i)
1524
- ), u = (
1525
- /** @type {Element} */
1526
- /* @__PURE__ */ xt(a)
1527
- );
1528
- f = /** @type {Element} */
1529
- /* @__PURE__ */ xt(u);
1530
- }
1531
- var s = (
1532
- /** @type {TemplateNode} */
1533
- f.cloneNode(!0)
1534
- );
1535
- return Lt(s, s), s;
1536
- };
1537
- }
1538
- // @__NO_SIDE_EFFECTS__
1539
- function Ui(t, e) {
1540
- return /* @__PURE__ */ ji(t, e, "svg");
1541
- }
1542
- function Nf(t = "") {
1543
- {
1544
- var e = mt(t + "");
1545
- return Lt(e, e), e;
1546
- }
1547
- }
1548
- function Oe() {
1549
- var t = document.createDocumentFragment(), e = document.createComment(""), r = mt();
1550
- return t.append(e, r), Lt(e, r), t;
1551
- }
1552
- function Zt(t, e) {
1553
- t !== null && t.before(
1554
- /** @type {Node} */
1555
- e
1556
- );
1557
- }
1558
- function qi(t) {
1559
- return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
1560
- }
1561
- const Vi = [
1562
- "beforeinput",
1563
- "click",
1564
- "change",
1565
- "dblclick",
1566
- "contextmenu",
1567
- "focusin",
1568
- "focusout",
1569
- "input",
1570
- "keydown",
1571
- "keyup",
1572
- "mousedown",
1573
- "mousemove",
1574
- "mouseout",
1575
- "mouseover",
1576
- "mouseup",
1577
- "pointerdown",
1578
- "pointermove",
1579
- "pointerout",
1580
- "pointerover",
1581
- "pointerup",
1582
- "touchend",
1583
- "touchmove",
1584
- "touchstart"
1585
- ];
1586
- function Bi(t) {
1587
- return Vi.includes(t);
1588
- }
1589
- const Wi = {
1590
- // no `class: 'className'` because we handle that separately
1591
- formnovalidate: "formNoValidate",
1592
- ismap: "isMap",
1593
- nomodule: "noModule",
1594
- playsinline: "playsInline",
1595
- readonly: "readOnly",
1596
- defaultvalue: "defaultValue",
1597
- defaultchecked: "defaultChecked",
1598
- srcobject: "srcObject",
1599
- novalidate: "noValidate",
1600
- allowfullscreen: "allowFullscreen",
1601
- disablepictureinpicture: "disablePictureInPicture",
1602
- disableremoteplayback: "disableRemotePlayback"
1603
- };
1604
- function Hi(t) {
1605
- return t = t.toLowerCase(), Wi[t] ?? t;
1606
- }
1607
- let _n = !0;
1608
- function Sr(t) {
1609
- _n = t;
1610
- }
1611
- function Cf(t, e) {
1612
- var r = e == null ? "" : typeof e == "object" ? e + "" : e;
1613
- r !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = r, t.nodeValue = r + "");
1614
- }
1615
- function $e(t, e, ...r) {
1616
- var n = t, i = H, f;
1617
- Et(() => {
1618
- i !== (i = e()) && (f && (B(f), f = null), f = tt(() => (
1619
- /** @type {SnippetFn} */
1620
- i(n, ...r)
1621
- )));
1622
- }, yt);
1623
- }
1624
- function Of(t, e, r = !1) {
1625
- var n = t, i = null, f = null, a = C, u = r ? yt : 0, s = !1;
1626
- const l = (_, c = !0) => {
1627
- s = !0, d(c, _);
1628
- };
1629
- var o = null;
1630
- function v() {
1631
- o !== null && (o.lastChild.remove(), n.before(o), o = null);
1632
- var _ = a ? i : f, c = a ? f : i;
1633
- _ && Ce(_), c && Ne(c, () => {
1634
- a ? f = null : i = null;
1635
- });
1636
- }
1637
- const d = (_, c) => {
1638
- if (a !== (a = _)) {
1639
- var h = tr(), p = n;
1640
- if (h && (o = document.createDocumentFragment(), o.append(p = mt())), a ? i ?? (i = c && tt(() => c(p))) : f ?? (f = c && tt(() => c(p))), h) {
1641
- var g = (
1642
- /** @type {Batch} */
1643
- N
1644
- ), S = a ? i : f, w = a ? f : i;
1645
- S && g.skipped_effects.delete(S), w && g.skipped_effects.add(w), g.add_callback(v);
1646
- } else
1647
- v();
1648
- }
1649
- };
1650
- Et(() => {
1651
- s = !1, e(l), s || d(null, null);
1652
- }, u);
1653
- }
1654
- function Yi(t, e) {
1655
- return e;
1656
- }
1657
- function zi(t, e, r) {
1658
- for (var n = t.items, i = [], f = e.length, a = 0; a < f; a++)
1659
- rr(e[a].e, i, !0);
1660
- var u = f > 0 && i.length === 0 && r !== null;
1661
- if (u) {
1662
- var s = (
1663
- /** @type {Element} */
1664
- /** @type {Element} */
1665
- r.parentNode
1666
- );
1667
- Si(s), s.append(
1668
- /** @type {Element} */
1669
- r
1670
- ), n.clear(), z(t, e[0].prev, e[f - 1].next);
1671
- }
1672
- nn(i, () => {
1673
- for (var l = 0; l < f; l++) {
1674
- var o = e[l];
1675
- u || (n.delete(o.k), z(t, o.prev, o.next)), B(o.e, !u);
1676
- }
1677
- });
1678
- }
1679
- function Gi(t, e, r, n, i, f = null) {
1680
- var a = t, u = { flags: e, items: /* @__PURE__ */ new Map(), first: null }, s = (e & Mr) !== 0;
1681
- if (s) {
1682
- var l = (
1683
- /** @type {Element} */
1684
- t
1685
- );
1686
- a = l.appendChild(mt());
1687
- }
1688
- var o = null, v = !1, d = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ Je(() => {
1689
- var g = r();
1690
- return ge(g) ? g : g == null ? [] : Dr(g);
1691
- }), c, h;
1692
- function p() {
1693
- Ki(
1694
- h,
1695
- c,
1696
- u,
1697
- d,
1698
- a,
1699
- i,
1700
- e,
1701
- n,
1702
- r
1703
- ), f !== null && (c.length === 0 ? o ? Ce(o) : o = tt(() => f(a)) : o !== null && Ne(o, () => {
1704
- o = null;
1705
- }));
1706
- }
1707
- Et(() => {
1708
- h ?? (h = /** @type {Effect} */
1709
- T), c = /** @type {V[]} */
1710
- P(_);
1711
- var g = c.length;
1712
- if (!(v && g === 0)) {
1713
- v = g === 0;
1714
- var S, w, b, E;
1715
- if (tr()) {
1716
- var y = /* @__PURE__ */ new Set(), m = (
1717
- /** @type {Batch} */
1718
- N
1719
- );
1720
- for (w = 0; w < g; w += 1) {
1721
- b = c[w], E = n(b, w);
1722
- var M = u.items.get(E) ?? d.get(E);
1723
- M ? (e & (he | pe)) !== 0 && hn(M, b, w, e) : (S = pn(
1724
- null,
1725
- u,
1726
- null,
1727
- null,
1728
- b,
1729
- E,
1730
- w,
1731
- i,
1732
- e,
1733
- r,
1734
- !0
1735
- ), d.set(E, S)), y.add(E);
1736
- }
1737
- for (const [W, Ie] of u.items)
1738
- y.has(W) || m.skipped_effects.add(Ie.e);
1739
- m.add_callback(p);
1740
- } else
1741
- p();
1742
- P(_);
1743
- }
1744
- });
1745
- }
1746
- function Ki(t, e, r, n, i, f, a, u, s) {
1747
- var sr, lr, ur, or;
1748
- var l = (a & On) !== 0, o = (a & (he | pe)) !== 0, v = e.length, d = r.items, _ = r.first, c = _, h, p = null, g, S = [], w = [], b, E, y, m;
1749
- if (l)
1750
- for (m = 0; m < v; m += 1)
1751
- b = e[m], E = u(b, m), y = d.get(E), y !== void 0 && ((sr = y.a) == null || sr.measure(), (g ?? (g = /* @__PURE__ */ new Set())).add(y));
1752
- for (m = 0; m < v; m += 1) {
1753
- if (b = e[m], E = u(b, m), y = d.get(E), y === void 0) {
1754
- var M = n.get(E);
1755
- if (M !== void 0) {
1756
- n.delete(E), d.set(E, M);
1757
- var W = p ? p.next : c;
1758
- z(r, p, M), z(r, M, W), De(M, W, i), p = M;
1759
- } else {
1760
- var Ie = c ? (
1761
- /** @type {TemplateNode} */
1762
- c.e.nodes_start
1763
- ) : i;
1764
- p = pn(
1765
- Ie,
1766
- r,
1767
- p,
1768
- p === null ? r.first : p.next,
1769
- b,
1770
- E,
1771
- m,
1772
- f,
1773
- a,
1774
- s
1775
- );
1776
- }
1777
- d.set(E, p), S = [], w = [], c = p.next;
1778
- continue;
1779
- }
1780
- if (o && hn(y, b, m, a), (y.e.f & Y) !== 0 && (Ce(y.e), l && ((lr = y.a) == null || lr.unfix(), (g ?? (g = /* @__PURE__ */ new Set())).delete(y))), y !== c) {
1781
- if (h !== void 0 && h.has(y)) {
1782
- if (S.length < w.length) {
1783
- var fe = w[0], it;
1784
- p = fe.prev;
1785
- var ar = S[0], Re = S[S.length - 1];
1786
- for (it = 0; it < S.length; it += 1)
1787
- De(S[it], fe, i);
1788
- for (it = 0; it < w.length; it += 1)
1789
- h.delete(w[it]);
1790
- z(r, ar.prev, Re.next), z(r, p, ar), z(r, Re, fe), c = fe, p = Re, m -= 1, S = [], w = [];
1791
- } else
1792
- h.delete(y), De(y, c, i), z(r, y.prev, y.next), z(r, y, p === null ? r.first : p.next), z(r, p, y), p = y;
1793
- continue;
1794
- }
1795
- for (S = [], w = []; c !== null && c.k !== E; )
1796
- (c.e.f & Y) === 0 && (h ?? (h = /* @__PURE__ */ new Set())).add(c), w.push(c), c = c.next;
1797
- if (c === null)
1798
- continue;
1799
- y = c;
1800
- }
1801
- S.push(y), p = y, c = y.next;
1802
- }
1803
- if (c !== null || h !== void 0) {
1804
- for (var qt = h === void 0 ? [] : Dr(h); c !== null; )
1805
- (c.e.f & Y) === 0 && qt.push(c), c = c.next;
1806
- var xe = qt.length;
1807
- if (xe > 0) {
1808
- var Sn = (a & Mr) !== 0 && v === 0 ? i : null;
1809
- if (l) {
1810
- for (m = 0; m < xe; m += 1)
1811
- (ur = qt[m].a) == null || ur.measure();
1812
- for (m = 0; m < xe; m += 1)
1813
- (or = qt[m].a) == null || or.fix();
1814
- }
1815
- zi(r, qt, Sn);
1816
- }
1817
- }
1818
- l && Ft(() => {
1819
- var cr;
1820
- if (g !== void 0)
1821
- for (y of g)
1822
- (cr = y.a) == null || cr.apply();
1823
- }), t.first = r.first && r.first.e, t.last = p && p.e;
1824
- for (var An of n.values())
1825
- B(An.e);
1826
- n.clear();
1827
- }
1828
- function hn(t, e, r, n) {
1829
- (n & he) !== 0 && Gt(t.v, e), (n & pe) !== 0 ? Gt(
1830
- /** @type {Value<number>} */
1831
- t.i,
1832
- r
1833
- ) : t.i = r;
1834
- }
1835
- function pn(t, e, r, n, i, f, a, u, s, l, o) {
1836
- var v = (s & he) !== 0, d = (s & $n) === 0, _ = v ? d ? /* @__PURE__ */ pi(i, !1, !1) : zt(i) : i, c = (s & pe) === 0 ? a : zt(a), h = {
1837
- i: c,
1838
- v: _,
1839
- k: f,
1840
- a: null,
1841
- // @ts-expect-error
1842
- e: null,
1843
- prev: r,
1844
- next: n
1845
- };
1846
- try {
1847
- if (t === null) {
1848
- var p = document.createDocumentFragment();
1849
- p.append(t = mt());
1850
- }
1851
- return h.e = tt(() => u(
1852
- /** @type {Node} */
1853
- t,
1854
- _,
1855
- c,
1856
- l
1857
- ), fi), h.e.prev = r && r.e, h.e.next = n && n.e, r === null ? o || (e.first = h) : (r.next = h, r.e.next = h.e), n !== null && (n.prev = h, n.e.prev = h.e), h;
1858
- } finally {
1859
- }
1860
- }
1861
- function De(t, e, r) {
1862
- for (var n = t.next ? (
1863
- /** @type {TemplateNode} */
1864
- t.next.e.nodes_start
1865
- ) : r, i = e ? (
1866
- /** @type {TemplateNode} */
1867
- e.e.nodes_start
1868
- ) : r, f = (
1869
- /** @type {TemplateNode} */
1870
- t.e.nodes_start
1871
- ); f !== null && f !== n; ) {
1872
- var a = (
1873
- /** @type {TemplateNode} */
1874
- /* @__PURE__ */ Ae(f)
1875
- );
1876
- i.before(f), f = a;
1877
- }
1878
- }
1879
- function z(t, e, r) {
1880
- e === null ? t.first = r : (e.next = r, e.e.next = r && r.e), r !== null && (r.prev = e, r.e.prev = e && e.e);
1881
- }
1882
- function $f(t, e, r, n, i) {
1883
- var u;
1884
- var f = (u = e.$$slots) == null ? void 0 : u[r], a = !1;
1885
- f === !0 && (f = e[r === "default" ? "children" : r], a = !0), f === void 0 ? i !== null && i(t) : f(t, a ? () => n : n);
1886
- }
1887
- function Pf(t) {
1888
- const e = {};
1889
- t.children && (e.default = !0);
1890
- for (const r in t.$$slots)
1891
- e[r] = !0;
1892
- return e;
1893
- }
1894
- function If(t, e, r) {
1895
- var n = t, i, f, a = null, u = null;
1896
- function s() {
1897
- f && (Ne(f), f = null), a && (a.lastChild.remove(), n.before(a), a = null), f = u, u = null;
1898
- }
1899
- Et(() => {
1900
- if (i !== (i = e())) {
1901
- var l = tr();
1902
- if (i) {
1903
- var o = n;
1904
- l && (a = document.createDocumentFragment(), a.append(o = mt()), f && N.skipped_effects.add(f)), u = tt(() => r(o, i));
1905
- }
1906
- l ? N.add_callback(s) : s();
1907
- }
1908
- }, yt);
1909
- }
1910
- function Zi(t, e, r, n, i, f) {
1911
- var a, u, s = null, l = (
1912
- /** @type {TemplateNode} */
1913
- t
1914
- ), o;
1915
- Et(() => {
1916
- const v = e() || null;
1917
- var d = Un;
1918
- v !== a && (o && (v === null ? Ne(o, () => {
1919
- o = null, u = null;
1920
- }) : v === u ? Ce(o) : (B(o), Sr(!1))), v && v !== u && (o = tt(() => {
1921
- if (s = document.createElementNS(d, v), Lt(s, s), n) {
1922
- var _ = (
1923
- /** @type {TemplateNode} */
1924
- s.appendChild(mt())
1925
- );
1926
- n(s, _);
1927
- }
1928
- T.nodes_end = s, l.before(s);
1929
- })), a = v, a && (u = a), Sr(!0));
1930
- }, yt);
1931
- }
1932
- function Rf(t, e) {
1933
- ne(() => {
1934
- var r = t.getRootNode(), n = (
1935
- /** @type {ShadowRoot} */
1936
- r.host ? (
1937
- /** @type {ShadowRoot} */
1938
- r
1939
- ) : (
1940
- /** @type {Document} */
1941
- r.head ?? /** @type {Document} */
1942
- r.ownerDocument.head
1943
- )
1944
- );
1945
- if (!n.querySelector("#" + e.hash)) {
1946
- const i = document.createElement("style");
1947
- i.id = e.hash, i.textContent = e.code, n.appendChild(i);
1948
- }
1949
- });
1950
- }
1951
- function Xi(t, e) {
1952
- var r = void 0, n;
1953
- Et(() => {
1954
- r !== (r = e()) && (n && (B(n), n = null), r && (n = tt(() => {
1955
- ne(() => (
1956
- /** @type {(node: Element) => void} */
1957
- r(t)
1958
- ));
1959
- })));
1960
- });
1961
- }
1962
- function gn(t) {
1963
- var e, r, n = "";
1964
- if (typeof t == "string" || typeof t == "number") n += t;
1965
- else if (typeof t == "object") if (Array.isArray(t)) {
1966
- var i = t.length;
1967
- for (e = 0; e < i; e++) t[e] && (r = gn(t[e])) && (n && (n += " "), n += r);
1968
- } else for (r in t) t[r] && (n && (n += " "), n += r);
1969
- return n;
1970
- }
1971
- function Ji() {
1972
- for (var t, e, r = 0, n = "", i = arguments.length; r < i; r++) (t = arguments[r]) && (e = gn(t)) && (n && (n += " "), n += e);
1973
- return n;
1974
- }
1975
- function Qi(t) {
1976
- return typeof t == "object" ? Ji(t) : t ?? "";
1977
- }
1978
- const Ar = [...`
1979
- \r\f \v\uFEFF`];
1980
- function tf(t, e, r) {
1981
- var n = t == null ? "" : "" + t;
1982
- if (e && (n = n ? n + " " + e : e), r) {
1983
- for (var i in r)
1984
- if (r[i])
1985
- n = n ? n + " " + i : i;
1986
- else if (n.length)
1987
- for (var f = i.length, a = 0; (a = n.indexOf(i, a)) >= 0; ) {
1988
- var u = a + f;
1989
- (a === 0 || Ar.includes(n[a - 1])) && (u === n.length || Ar.includes(n[u])) ? n = (a === 0 ? "" : n.substring(0, a)) + n.substring(u + 1) : a = u;
1990
- }
1991
- }
1992
- return n === "" ? null : n;
1993
- }
1994
- function Tr(t, e = !1) {
1995
- var r = e ? " !important;" : ";", n = "";
1996
- for (var i in t) {
1997
- var f = t[i];
1998
- f != null && f !== "" && (n += " " + i + ": " + f + r);
1999
- }
2000
- return n;
2001
- }
2002
- function Fe(t) {
2003
- return t[0] !== "-" || t[1] !== "-" ? t.toLowerCase() : t;
2004
- }
2005
- function ef(t, e) {
2006
- if (e) {
2007
- var r = "", n, i;
2008
- if (Array.isArray(e) ? (n = e[0], i = e[1]) : n = e, t) {
2009
- t = String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
2010
- var f = !1, a = 0, u = !1, s = [];
2011
- n && s.push(...Object.keys(n).map(Fe)), i && s.push(...Object.keys(i).map(Fe));
2012
- var l = 0, o = -1;
2013
- const h = t.length;
2014
- for (var v = 0; v < h; v++) {
2015
- var d = t[v];
2016
- if (u ? d === "/" && t[v - 1] === "*" && (u = !1) : f ? f === d && (f = !1) : d === "/" && t[v + 1] === "*" ? u = !0 : d === '"' || d === "'" ? f = d : d === "(" ? a++ : d === ")" && a--, !u && f === !1 && a === 0) {
2017
- if (d === ":" && o === -1)
2018
- o = v;
2019
- else if (d === ";" || v === h - 1) {
2020
- if (o !== -1) {
2021
- var _ = Fe(t.substring(l, o).trim());
2022
- if (!s.includes(_)) {
2023
- d !== ";" && v++;
2024
- var c = t.substring(l, v).trim();
2025
- r += " " + c + ";";
2026
- }
2027
- }
2028
- l = v + 1, o = -1;
2029
- }
2030
- }
2031
- }
2032
- }
2033
- return n && (r += Tr(n)), i && (r += Tr(i, !0)), r = r.trim(), r === "" ? null : r;
2034
- }
2035
- return t == null ? null : String(t);
2036
- }
2037
- function rf(t, e, r, n, i, f) {
2038
- var a = t.__className;
2039
- if (a !== r || a === void 0) {
2040
- var u = tf(r, n, f);
2041
- u == null ? t.removeAttribute("class") : e ? t.className = u : t.setAttribute("class", u), t.__className = r;
2042
- } else if (f && i !== f)
2043
- for (var s in f) {
2044
- var l = !!f[s];
2045
- (i == null || l !== !!i[s]) && t.classList.toggle(s, l);
2046
- }
2047
- return f;
2048
- }
2049
- function je(t, e = {}, r, n) {
2050
- for (var i in r) {
2051
- var f = r[i];
2052
- e[i] !== f && (r[i] == null ? t.style.removeProperty(i) : t.style.setProperty(i, f, n));
2053
- }
2054
- }
2055
- function nf(t, e, r, n) {
2056
- var i = t.__style;
2057
- if (i !== e) {
2058
- var f = ef(e, n);
2059
- f == null ? t.removeAttribute("style") : t.style.cssText = f, t.__style = e;
2060
- } else n && (Array.isArray(n) ? (je(t, r == null ? void 0 : r[0], n[0]), je(t, r == null ? void 0 : r[1], n[1], "important")) : je(t, r, n));
2061
- return n;
2062
- }
2063
- function ze(t, e, r = !1) {
2064
- if (t.multiple) {
2065
- if (e == null)
2066
- return;
2067
- if (!ge(e))
2068
- return ii();
2069
- for (var n of t.options)
2070
- n.selected = e.includes(kr(n));
2071
- return;
2072
- }
2073
- for (n of t.options) {
2074
- var i = kr(n);
2075
- if (gi(i, e)) {
2076
- n.selected = !0;
2077
- return;
2078
- }
2079
- }
2080
- (!r || e !== void 0) && (t.selectedIndex = -1);
2081
- }
2082
- function ff(t) {
2083
- var e = new MutationObserver(() => {
2084
- ze(t, t.__value);
2085
- });
2086
- e.observe(t, {
2087
- // Listen to option element changes
2088
- childList: !0,
2089
- subtree: !0,
2090
- // because of <optgroup>
2091
- // Listen to option element value attribute changes
2092
- // (doesn't get notified of select value changes,
2093
- // because that property is not reflected as an attribute)
2094
- attributes: !0,
2095
- attributeFilter: ["value"]
2096
- }), ke(() => {
2097
- e.disconnect();
2098
- });
2099
- }
2100
- function kr(t) {
2101
- return "__value" in t ? t.__value : t.value;
2102
- }
2103
- const Bt = Symbol("class"), Wt = Symbol("style"), wn = Symbol("is custom element"), bn = Symbol("is html");
2104
- function xf(t, e) {
2105
- var r = nr(t);
2106
- r.value === (r.value = // treat null and undefined the same for the initial value
2107
- e ?? void 0) || // @ts-expect-error
2108
- // `progress` elements always need their value set when it's `0`
2109
- t.value === e && (e !== 0 || t.nodeName !== "PROGRESS") || (t.value = e ?? "");
2110
- }
2111
- function af(t, e) {
2112
- e ? t.hasAttribute("selected") || t.setAttribute("selected", "") : t.removeAttribute("selected");
2113
- }
2114
- function Nr(t, e, r, n) {
2115
- var i = nr(t);
2116
- i[e] !== (i[e] = r) && (e === "loading" && (t[Gn] = r), r == null ? t.removeAttribute(e) : typeof r != "string" && yn(t).includes(e) ? t[e] = r : t.setAttribute(e, r));
2117
- }
2118
- function sf(t, e, r, n, i = !1, f = !1) {
2119
- var a = nr(t), u = a[wn], s = !a[bn], l = e || {}, o = t.tagName === "OPTION";
2120
- for (var v in e)
2121
- v in r || (r[v] = null);
2122
- r.class ? r.class = Qi(r.class) : (n || r[Bt]) && (r.class = null), r[Wt] && (r.style ?? (r.style = null));
2123
- var d = yn(t);
2124
- for (const w in r) {
2125
- let b = r[w];
2126
- if (o && w === "value" && b == null) {
2127
- t.value = t.__value = "", l[w] = b;
2128
- continue;
2129
- }
2130
- if (w === "class") {
2131
- var _ = t.namespaceURI === "http://www.w3.org/1999/xhtml";
2132
- rf(t, _, b, n, e == null ? void 0 : e[Bt], r[Bt]), l[w] = b, l[Bt] = r[Bt];
2133
- continue;
2134
- }
2135
- if (w === "style") {
2136
- nf(t, b, e == null ? void 0 : e[Wt], r[Wt]), l[w] = b, l[Wt] = r[Wt];
2137
- continue;
2138
- }
2139
- var c = l[w];
2140
- if (!(b === c && !(b === void 0 && t.hasAttribute(w)))) {
2141
- l[w] = b;
2142
- var h = w[0] + w[1];
2143
- if (h !== "$$")
2144
- if (h === "on") {
2145
- const E = {}, y = "$$" + w;
2146
- let m = w.slice(2);
2147
- var p = Bi(m);
2148
- if (qi(m) && (m = m.slice(0, -7), E.capture = !0), !p && c) {
2149
- if (b != null) continue;
2150
- t.removeEventListener(m, l[y], E), l[y] = null;
2151
- }
2152
- if (b != null)
2153
- if (p)
2154
- t[`__${m}`] = b, Di([m]);
2155
- else {
2156
- let M = function(W) {
2157
- l[w].call(this, W);
2158
- };
2159
- l[y] = vn(m, t, M, E);
2160
- }
2161
- else p && (t[`__${m}`] = void 0);
2162
- } else if (w === "style")
2163
- Nr(t, w, b);
2164
- else if (w === "autofocus")
2165
- Ai(
2166
- /** @type {HTMLElement} */
2167
- t,
2168
- !!b
2169
- );
2170
- else if (!u && (w === "__value" || w === "value" && b != null))
2171
- t.value = t.__value = b;
2172
- else if (w === "selected" && o)
2173
- af(
2174
- /** @type {HTMLOptionElement} */
2175
- t,
2176
- b
2177
- );
2178
- else {
2179
- var g = w;
2180
- s || (g = Hi(g));
2181
- var S = g === "defaultValue" || g === "defaultChecked";
2182
- if (b == null && !u && !S)
2183
- if (a[w] = null, g === "value" || g === "checked") {
2184
- let E = (
2185
- /** @type {HTMLInputElement} */
2186
- t
2187
- );
2188
- const y = e === void 0;
2189
- if (g === "value") {
2190
- let m = E.defaultValue;
2191
- E.removeAttribute(g), E.defaultValue = m, E.value = E.__value = y ? m : null;
2192
- } else {
2193
- let m = E.defaultChecked;
2194
- E.removeAttribute(g), E.defaultChecked = m, E.checked = y ? m : !1;
2195
- }
2196
- } else
2197
- t.removeAttribute(w);
2198
- else S || d.includes(g) && (u || typeof b != "string") ? (t[g] = b, g in a && (a[g] = C)) : typeof b != "function" && Nr(t, g, b);
2199
- }
2200
- }
2201
- }
2202
- return l;
2203
- }
2204
- function Cr(t, e, r = [], n = [], i, f = !1, a = !1) {
2205
- zr(r, n, (u) => {
2206
- var s = void 0, l = {}, o = t.nodeName === "SELECT", v = !1;
2207
- if (Et(() => {
2208
- var _ = e(...u.map(P)), c = sf(
2209
- t,
2210
- s,
2211
- _,
2212
- i,
2213
- f,
2214
- a
2215
- );
2216
- v && o && "value" in _ && ze(
2217
- /** @type {HTMLSelectElement} */
2218
- t,
2219
- _.value
2220
- );
2221
- for (let p of Object.getOwnPropertySymbols(l))
2222
- _[p] || B(l[p]);
2223
- for (let p of Object.getOwnPropertySymbols(_)) {
2224
- var h = _[p];
2225
- p.description === qn && (!s || h !== s[p]) && (l[p] && B(l[p]), l[p] = tt(() => Xi(t, () => h))), c[p] = h;
2226
- }
2227
- s = c;
2228
- }), o) {
2229
- var d = (
2230
- /** @type {HTMLSelectElement} */
2231
- t
2232
- );
2233
- ne(() => {
2234
- ze(
2235
- d,
2236
- /** @type {Record<string | symbol, any>} */
2237
- s.value,
2238
- !0
2239
- ), ff(d);
2240
- });
2241
- }
2242
- v = !0;
2243
- });
2244
- }
2245
- function nr(t) {
2246
- return (
2247
- /** @type {Record<string | symbol, unknown>} **/
2248
- // @ts-expect-error
2249
- t.__attributes ?? (t.__attributes = {
2250
- [wn]: t.nodeName.includes("-"),
2251
- [bn]: t.namespaceURI === jn
2252
- })
2253
- );
2254
- }
2255
- var Or = /* @__PURE__ */ new Map();
2256
- function yn(t) {
2257
- var e = t.getAttribute("is") || t.nodeName, r = Or.get(e);
2258
- if (r) return r;
2259
- Or.set(e, r = []);
2260
- for (var n, i = t, f = Element.prototype; f !== i; ) {
2261
- n = Fr(i);
2262
- for (var a in n)
2263
- n[a].set && r.push(a);
2264
- i = Ke(i);
2265
- }
2266
- return r;
2267
- }
2268
- const lf = () => performance.now(), Q = {
2269
- // don't access requestAnimationFrame eagerly outside method
2270
- // this allows basic testing of user code without JSDOM
2271
- // bunder will eval and remove ternary when the user's app is built
2272
- tick: (
2273
- /** @param {any} _ */
2274
- (t) => requestAnimationFrame(t)
2275
- ),
2276
- now: () => lf(),
2277
- tasks: /* @__PURE__ */ new Set()
2278
- };
2279
- function mn() {
2280
- const t = Q.now();
2281
- Q.tasks.forEach((e) => {
2282
- e.c(t) || (Q.tasks.delete(e), e.f());
2283
- }), Q.tasks.size !== 0 && Q.tick(mn);
2284
- }
2285
- function uf(t) {
2286
- let e;
2287
- return Q.tasks.size === 0 && Q.tick(mn), {
2288
- promise: new Promise((r) => {
2289
- Q.tasks.add(e = { c: t, f: r });
2290
- }),
2291
- abort() {
2292
- Q.tasks.delete(e);
2293
- }
2294
- };
2295
- }
2296
- function se(t, e) {
2297
- jt(() => {
2298
- t.dispatchEvent(new CustomEvent(e));
2299
- });
2300
- }
2301
- function of(t) {
2302
- if (t === "float") return "cssFloat";
2303
- if (t === "offset") return "cssOffset";
2304
- if (t.startsWith("--")) return t;
2305
- const e = t.split("-");
2306
- return e.length === 1 ? e[0] : e[0] + e.slice(1).map(
2307
- /** @param {any} word */
2308
- (r) => r[0].toUpperCase() + r.slice(1)
2309
- ).join("");
2310
- }
2311
- function $r(t) {
2312
- const e = {}, r = t.split(";");
2313
- for (const n of r) {
2314
- const [i, f] = n.split(":");
2315
- if (!i || f === void 0) break;
2316
- const a = of(i.trim());
2317
- e[a] = f.trim();
2318
- }
2319
- return e;
2320
- }
2321
- const cf = (t) => t;
2322
- function Mf(t, e, r, n) {
2323
- var i = (t & Ln) !== 0, f = "both", a, u = e.inert, s = e.style.overflow, l, o;
2324
- function v() {
2325
- return jt(() => a ?? (a = r()(e, (n == null ? void 0 : n()) ?? /** @type {P} */
2326
- {}, {
2327
- direction: f
2328
- })));
2329
- }
2330
- var d = {
2331
- is_global: i,
2332
- in() {
2333
- e.inert = u, se(e, "introstart"), l = Ge(e, v(), o, 1, () => {
2334
- se(e, "introend"), l == null || l.abort(), l = a = void 0, e.style.overflow = s;
2335
- });
2336
- },
2337
- out(p) {
2338
- e.inert = !0, se(e, "outrostart"), o = Ge(e, v(), l, 0, () => {
2339
- se(e, "outroend"), p == null || p();
2340
- });
2341
- },
2342
- stop: () => {
2343
- l == null || l.abort(), o == null || o.abort();
2344
- }
2345
- }, _ = (
2346
- /** @type {Effect} */
2347
- T
2348
- );
2349
- if ((_.transitions ?? (_.transitions = [])).push(d), _n) {
2350
- var c = i;
2351
- if (!c) {
2352
- for (var h = (
2353
- /** @type {Effect | null} */
2354
- _.parent
2355
- ); h && (h.f & yt) !== 0; )
2356
- for (; (h = h.parent) && (h.f & dt) === 0; )
2357
- ;
2358
- c = !h || (h.f & be) !== 0;
2359
- }
2360
- c && ne(() => {
2361
- Ut(() => d.in());
2362
- });
2363
- }
2364
- }
2365
- function Ge(t, e, r, n, i) {
2366
- var f = n === 1;
2367
- if (At(e)) {
2368
- var a, u = !1;
2369
- return Ft(() => {
2370
- if (!u) {
2371
- var p = e({ direction: f ? "in" : "out" });
2372
- a = Ge(t, p, r, n, i);
2373
- }
2374
- }), {
2375
- abort: () => {
2376
- u = !0, a == null || a.abort();
2377
- },
2378
- deactivate: () => a.deactivate(),
2379
- reset: () => a.reset(),
2380
- t: () => a.t()
2381
- };
2382
- }
2383
- if (r == null || r.deactivate(), !(e != null && e.duration))
2384
- return i(), {
2385
- abort: H,
2386
- deactivate: H,
2387
- reset: H,
2388
- t: () => n
2389
- };
2390
- const { delay: s = 0, css: l, tick: o, easing: v = cf } = e;
2391
- var d = [];
2392
- if (f && r === void 0 && (o && o(0, 1), l)) {
2393
- var _ = $r(l(0, 1));
2394
- d.push(_, _);
2395
- }
2396
- var c = () => 1 - n, h = t.animate(d, { duration: s, fill: "forwards" });
2397
- return h.onfinish = () => {
2398
- h.cancel();
2399
- var p = (r == null ? void 0 : r.t()) ?? 1 - n;
2400
- r == null || r.abort();
2401
- var g = n - p, S = (
2402
- /** @type {number} */
2403
- e.duration * Math.abs(g)
2404
- ), w = [];
2405
- if (S > 0) {
2406
- var b = !1;
2407
- if (l)
2408
- for (var E = Math.ceil(S / 16.666666666666668), y = 0; y <= E; y += 1) {
2409
- var m = p + g * v(y / E), M = $r(l(m, 1 - m));
2410
- w.push(M), b || (b = M.overflow === "hidden");
2411
- }
2412
- b && (t.style.overflow = "hidden"), c = () => {
2413
- var W = (
2414
- /** @type {number} */
2415
- /** @type {globalThis.Animation} */
2416
- h.currentTime
2417
- );
2418
- return p + g * v(W / S);
2419
- }, o && uf(() => {
2420
- if (h.playState !== "running") return !1;
2421
- var W = c();
2422
- return o(W, 1 - W), !0;
2423
- });
2424
- }
2425
- h = t.animate(w, { duration: S, fill: "forwards" }), h.onfinish = () => {
2426
- c = () => n, o == null || o(n, 1 - n), i();
2427
- };
2428
- }, {
2429
- abort: () => {
2430
- h && (h.cancel(), h.effect = null, h.onfinish = H);
2431
- },
2432
- deactivate: () => {
2433
- i = H;
2434
- },
2435
- reset: () => {
2436
- n === 0 && (o == null || o(1, 0));
2437
- },
2438
- t: () => c()
2439
- };
2440
- }
2441
- function Lf(t, e, r) {
2442
- var n = ht(t, e);
2443
- n && n.set && (t[e] = r, ke(() => {
2444
- t[e] = null;
2445
- }));
2446
- }
2447
- function Pr(t, e) {
2448
- return t === e || (t == null ? void 0 : t[K]) === e;
2449
- }
2450
- function Df(t = {}, e, r, n) {
2451
- return ne(() => {
2452
- var i, f;
2453
- return er(() => {
2454
- i = f, f = [], Ut(() => {
2455
- t !== r(...f) && (e(t, ...f), i && Pr(r(...i), t) && e(null, ...i));
2456
- });
2457
- }), () => {
2458
- Ft(() => {
2459
- f && Pr(r(...f), t) && e(null, ...f);
2460
- });
2461
- };
2462
- }), t;
2463
- }
2464
- function Ff(t = !1) {
2465
- const e = (
2466
- /** @type {ComponentContextLegacy} */
2467
- O
2468
- ), r = e.l.u;
2469
- if (!r) return;
2470
- let n = () => xi(e.s);
2471
- if (t) {
2472
- let i = 0, f = (
2473
- /** @type {Record<string, any>} */
2474
- {}
2475
- );
2476
- const a = /* @__PURE__ */ re(() => {
2477
- let u = !1;
2478
- const s = e.s;
2479
- for (const l in s)
2480
- s[l] !== f[l] && (f[l] = s[l], u = !0);
2481
- return u && i++, i;
2482
- });
2483
- n = () => P(a);
2484
- }
2485
- r.b.length && Ni(() => {
2486
- Ir(e, n), qe(r.b);
2487
- }), wr(() => {
2488
- const i = Ut(() => r.m.map(Hn));
2489
- return () => {
2490
- for (const f of i)
2491
- typeof f == "function" && f();
2492
- };
2493
- }), r.a.length && wr(() => {
2494
- Ir(e, n), qe(r.a);
2495
- });
2496
- }
2497
- function Ir(t, e) {
2498
- if (t.l.s)
2499
- for (const r of t.l.s) P(r);
2500
- e();
2501
- }
2502
- let le = !1;
2503
- function vf(t) {
2504
- var e = le;
2505
- try {
2506
- return le = !1, [t(), le];
2507
- } finally {
2508
- le = e;
2509
- }
2510
- }
2511
- const df = {
2512
- get(t, e) {
2513
- if (!t.exclude.includes(e))
2514
- return t.props[e];
2515
- },
2516
- set(t, e) {
2517
- return !1;
2518
- },
2519
- getOwnPropertyDescriptor(t, e) {
2520
- if (!t.exclude.includes(e) && e in t.props)
2521
- return {
2522
- enumerable: !0,
2523
- configurable: !0,
2524
- value: t.props[e]
2525
- };
2526
- },
2527
- has(t, e) {
2528
- return t.exclude.includes(e) ? !1 : e in t.props;
2529
- },
2530
- ownKeys(t) {
2531
- return Reflect.ownKeys(t.props).filter((e) => !t.exclude.includes(e));
2532
- }
2533
- };
2534
- // @__NO_SIDE_EFFECTS__
2535
- function Pe(t, e, r) {
2536
- return new Proxy(
2537
- { props: t, exclude: e },
2538
- df
2539
- );
2540
- }
2541
- const _f = {
2542
- get(t, e) {
2543
- let r = t.props.length;
2544
- for (; r--; ) {
2545
- let n = t.props[r];
2546
- if (At(n) && (n = n()), typeof n == "object" && n !== null && e in n) return n[e];
2547
- }
2548
- },
2549
- set(t, e, r) {
2550
- let n = t.props.length;
2551
- for (; n--; ) {
2552
- let i = t.props[n];
2553
- At(i) && (i = i());
2554
- const f = ht(i, e);
2555
- if (f && f.set)
2556
- return f.set(r), !0;
2557
- }
2558
- return !1;
2559
- },
2560
- getOwnPropertyDescriptor(t, e) {
2561
- let r = t.props.length;
2562
- for (; r--; ) {
2563
- let n = t.props[r];
2564
- if (At(n) && (n = n()), typeof n == "object" && n !== null && e in n) {
2565
- const i = ht(n, e);
2566
- return i && !i.configurable && (i.configurable = !0), i;
2567
- }
2568
- }
2569
- },
2570
- has(t, e) {
2571
- if (e === K || e === Vr) return !1;
2572
- for (let r of t.props)
2573
- if (At(r) && (r = r()), r != null && e in r) return !0;
2574
- return !1;
2575
- },
2576
- ownKeys(t) {
2577
- const e = [];
2578
- for (let r of t.props)
2579
- if (At(r) && (r = r()), !!r) {
2580
- for (const n in r)
2581
- e.includes(n) || e.push(n);
2582
- for (const n of Object.getOwnPropertySymbols(r))
2583
- e.includes(n) || e.push(n);
2584
- }
2585
- return e;
2586
- }
2587
- };
2588
- function ir(...t) {
2589
- return new Proxy({ props: t }, _f);
2590
- }
2591
- function Ht(t, e, r, n) {
2592
- var w;
2593
- var i = !te || (r & In) !== 0, f = (r & xn) !== 0, a = (r & Mn) !== 0, u = (
2594
- /** @type {V} */
2595
- n
2596
- ), s = !0, l = () => (s && (s = !1, u = a ? Ut(
2597
- /** @type {() => V} */
2598
- n
2599
- ) : (
2600
- /** @type {V} */
2601
- n
2602
- )), u), o;
2603
- if (f) {
2604
- var v = K in t || Vr in t;
2605
- o = ((w = ht(t, e)) == null ? void 0 : w.set) ?? (v && e in t ? (b) => t[e] = b : void 0);
2606
- }
2607
- var d, _ = !1;
2608
- f ? [d, _] = vf(() => (
2609
- /** @type {V} */
2610
- t[e]
2611
- )) : d = /** @type {V} */
2612
- t[e], d === void 0 && n !== void 0 && (d = l(), o && (i && ti(), o(d)));
2613
- var c;
2614
- if (i ? c = () => {
2615
- var b = (
2616
- /** @type {V} */
2617
- t[e]
2618
- );
2619
- return b === void 0 ? l() : (s = !0, b);
2620
- } : c = () => {
2621
- var b = (
2622
- /** @type {V} */
2623
- t[e]
2624
- );
2625
- return b !== void 0 && (u = /** @type {V} */
2626
- void 0), b === void 0 ? u : b;
2627
- }, i && (r & Rn) === 0)
2628
- return c;
2629
- if (o) {
2630
- var h = t.$$legacy;
2631
- return (
2632
- /** @type {() => V} */
2633
- (function(b, E) {
2634
- return arguments.length > 0 ? ((!i || !E || h || _) && o(E ? c() : b), b) : c();
2635
- })
2636
- );
2637
- }
2638
- var p = !1, g = ((r & Pn) !== 0 ? re : Je)(() => (p = !1, c()));
2639
- f && P(g);
2640
- var S = (
2641
- /** @type {Effect} */
2642
- T
2643
- );
2644
- return (
2645
- /** @type {() => V} */
2646
- (function(b, E) {
2647
- if (arguments.length > 0) {
2648
- const y = E ? P(g) : i && f ? kt(b) : b;
2649
- return J(g, y), p = !0, u !== void 0 && (u = y), b;
2650
- }
2651
- return St && p || (S.f & bt) !== 0 ? g.v : P(g);
2652
- })
2653
- );
2654
- }
2655
- const hf = (t) => t;
2656
- function En(t) {
2657
- const e = t - 1;
2658
- return e * e * e + 1;
2659
- }
2660
- function Rr(t) {
2661
- const e = typeof t == "string" && t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
2662
- return e ? [parseFloat(e[1]), e[2] || "px"] : [
2663
- /** @type {number} */
2664
- t,
2665
- "px"
2666
- ];
2667
- }
2668
- function jf(t, { delay: e = 0, duration: r = 400, easing: n = hf } = {}) {
2669
- const i = +getComputedStyle(t).opacity;
2670
- return {
2671
- delay: e,
2672
- duration: r,
2673
- easing: n,
2674
- css: (f) => `opacity: ${f * i}`
2675
- };
2676
- }
2677
- function Uf(t, { delay: e = 0, duration: r = 400, easing: n = En, x: i = 0, y: f = 0, opacity: a = 0 } = {}) {
2678
- const u = getComputedStyle(t), s = +u.opacity, l = u.transform === "none" ? "" : u.transform, o = s * (1 - a), [v, d] = Rr(i), [_, c] = Rr(f);
2679
- return {
2680
- delay: e,
2681
- duration: r,
2682
- easing: n,
2683
- css: (h, p) => `
2684
- transform: ${l} translate(${(1 - h) * v}${d}, ${(1 - h) * _}${c});
2685
- opacity: ${s - o * p}`
2686
- };
2687
- }
2688
- function qf(t, { delay: e = 0, duration: r = 400, easing: n = En, axis: i = "y" } = {}) {
2689
- const f = getComputedStyle(t), a = +f.opacity, u = i === "y" ? "height" : "width", s = parseFloat(f[u]), l = i === "y" ? ["top", "bottom"] : ["left", "right"], o = l.map(
2690
- (g) => (
2691
- /** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
2692
- `${g[0].toUpperCase()}${g.slice(1)}`
2693
- )
2694
- ), v = parseFloat(f[`padding${o[0]}`]), d = parseFloat(f[`padding${o[1]}`]), _ = parseFloat(f[`margin${o[0]}`]), c = parseFloat(f[`margin${o[1]}`]), h = parseFloat(
2695
- f[`border${o[0]}Width`]
2696
- ), p = parseFloat(
2697
- f[`border${o[1]}Width`]
2698
- );
2699
- return {
2700
- delay: e,
2701
- duration: r,
2702
- easing: n,
2703
- css: (g) => `overflow: hidden;opacity: ${Math.min(g * 20, 1) * a};${u}: ${g * s}px;padding-${l[0]}: ${g * v}px;padding-${l[1]}: ${g * d}px;margin-${l[0]}: ${g * _}px;margin-${l[1]}: ${g * c}px;border-${l[0]}-width: ${g * h}px;border-${l[1]}-width: ${g * p}px;min-${u}: 0`
2704
- };
2705
- }
2706
- /**
2707
- * @license @lucide/svelte v0.544.0 - ISC
2708
- *
2709
- * ISC License
2710
- *
2711
- * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.
2712
- *
2713
- * Permission to use, copy, modify, and/or distribute this software for any
2714
- * purpose with or without fee is hereby granted, provided that the above
2715
- * copyright notice and this permission notice appear in all copies.
2716
- *
2717
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
2718
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
2719
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
2720
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
2721
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
2722
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
2723
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2724
- *
2725
- * ---
2726
- *
2727
- * The MIT License (MIT) (for portions derived from Feather)
2728
- *
2729
- * Copyright (c) 2013-2023 Cole Bemis
2730
- *
2731
- * Permission is hereby granted, free of charge, to any person obtaining a copy
2732
- * of this software and associated documentation files (the "Software"), to deal
2733
- * in the Software without restriction, including without limitation the rights
2734
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2735
- * copies of the Software, and to permit persons to whom the Software is
2736
- * furnished to do so, subject to the following conditions:
2737
- *
2738
- * The above copyright notice and this permission notice shall be included in all
2739
- * copies or substantial portions of the Software.
2740
- *
2741
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2742
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2743
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2744
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2745
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2746
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2747
- * SOFTWARE.
2748
- *
2749
- */
2750
- const pf = {
2751
- xmlns: "http://www.w3.org/2000/svg",
2752
- width: 24,
2753
- height: 24,
2754
- viewBox: "0 0 24 24",
2755
- fill: "none",
2756
- stroke: "currentColor",
2757
- "stroke-width": 2,
2758
- "stroke-linecap": "round",
2759
- "stroke-linejoin": "round"
2760
- };
2761
- var gf = /* @__PURE__ */ Ui("<svg><!><!></svg>");
2762
- function fr(t, e) {
2763
- Ee(e, !0);
2764
- const r = Ht(e, "color", 3, "currentColor"), n = Ht(e, "size", 3, 24), i = Ht(e, "strokeWidth", 3, 2), f = Ht(e, "absoluteStrokeWidth", 3, !1), a = Ht(e, "iconNode", 19, () => []), u = /* @__PURE__ */ Pe(e, [
2765
- "$$slots",
2766
- "$$events",
2767
- "$$legacy",
2768
- "name",
2769
- "color",
2770
- "size",
2771
- "strokeWidth",
2772
- "absoluteStrokeWidth",
2773
- "iconNode",
2774
- "children"
2775
- ]);
2776
- var s = gf();
2777
- Cr(
2778
- s,
2779
- (v) => ({
2780
- ...pf,
2781
- ...u,
2782
- width: n(),
2783
- height: n(),
2784
- stroke: r(),
2785
- "stroke-width": v,
2786
- class: [
2787
- "lucide-icon lucide",
2788
- e.name && `lucide-${e.name}`,
2789
- e.class
2790
- ]
2791
- }),
2792
- [
2793
- () => f() ? Number(i()) * 24 / Number(n()) : i()
2794
- ]
2795
- );
2796
- var l = mi(s);
2797
- Gi(l, 17, a, Yi, (v, d) => {
2798
- var _ = /* @__PURE__ */ _i(() => Yn(P(d), 2));
2799
- let c = () => P(_)[0], h = () => P(_)[1];
2800
- var p = Oe(), g = Te(p);
2801
- Zi(g, c, !0, (S, w) => {
2802
- Cr(S, () => ({ ...h() }));
2803
- }), Zt(v, p);
2804
- });
2805
- var o = Ei(l);
2806
- $e(o, () => e.children ?? H), Zt(t, s), Se();
2807
- }
2808
- function Vf(t, e) {
2809
- Ee(e, !0);
2810
- /**
2811
- * @license @lucide/svelte v0.544.0 - ISC
2812
- *
2813
- * ISC License
2814
- *
2815
- * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.
2816
- *
2817
- * Permission to use, copy, modify, and/or distribute this software for any
2818
- * purpose with or without fee is hereby granted, provided that the above
2819
- * copyright notice and this permission notice appear in all copies.
2820
- *
2821
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
2822
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
2823
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
2824
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
2825
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
2826
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
2827
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2828
- *
2829
- * ---
2830
- *
2831
- * The MIT License (MIT) (for portions derived from Feather)
2832
- *
2833
- * Copyright (c) 2013-2023 Cole Bemis
2834
- *
2835
- * Permission is hereby granted, free of charge, to any person obtaining a copy
2836
- * of this software and associated documentation files (the "Software"), to deal
2837
- * in the Software without restriction, including without limitation the rights
2838
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2839
- * copies of the Software, and to permit persons to whom the Software is
2840
- * furnished to do so, subject to the following conditions:
2841
- *
2842
- * The above copyright notice and this permission notice shall be included in all
2843
- * copies or substantial portions of the Software.
2844
- *
2845
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2846
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2847
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2848
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2849
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2850
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2851
- * SOFTWARE.
2852
- *
2853
- */
2854
- let r = /* @__PURE__ */ Pe(e, ["$$slots", "$$events", "$$legacy"]);
2855
- const n = [
2856
- ["circle", { cx: "12", cy: "12", r: "10" }],
2857
- ["line", { x1: "12", x2: "12", y1: "8", y2: "12" }],
2858
- [
2859
- "line",
2860
- { x1: "12", x2: "12.01", y1: "16", y2: "16" }
2861
- ]
2862
- ];
2863
- fr(t, ir(
2864
- { name: "circle-alert" },
2865
- () => r,
2866
- {
2867
- get iconNode() {
2868
- return n;
2869
- },
2870
- children: (i, f) => {
2871
- var a = Oe(), u = Te(a);
2872
- $e(u, () => e.children ?? H), Zt(i, a);
2873
- },
2874
- $$slots: { default: !0 }
2875
- }
2876
- )), Se();
2877
- }
2878
- function Bf(t, e) {
2879
- Ee(e, !0);
2880
- /**
2881
- * @license @lucide/svelte v0.544.0 - ISC
2882
- *
2883
- * ISC License
2884
- *
2885
- * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.
2886
- *
2887
- * Permission to use, copy, modify, and/or distribute this software for any
2888
- * purpose with or without fee is hereby granted, provided that the above
2889
- * copyright notice and this permission notice appear in all copies.
2890
- *
2891
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
2892
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
2893
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
2894
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
2895
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
2896
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
2897
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2898
- *
2899
- * ---
2900
- *
2901
- * The MIT License (MIT) (for portions derived from Feather)
2902
- *
2903
- * Copyright (c) 2013-2023 Cole Bemis
2904
- *
2905
- * Permission is hereby granted, free of charge, to any person obtaining a copy
2906
- * of this software and associated documentation files (the "Software"), to deal
2907
- * in the Software without restriction, including without limitation the rights
2908
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2909
- * copies of the Software, and to permit persons to whom the Software is
2910
- * furnished to do so, subject to the following conditions:
2911
- *
2912
- * The above copyright notice and this permission notice shall be included in all
2913
- * copies or substantial portions of the Software.
2914
- *
2915
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2916
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2917
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2918
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2919
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2920
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2921
- * SOFTWARE.
2922
- *
2923
- */
2924
- let r = /* @__PURE__ */ Pe(e, ["$$slots", "$$events", "$$legacy"]);
2925
- const n = [
2926
- ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335" }],
2927
- ["path", { d: "m9 11 3 3L22 4" }]
2928
- ];
2929
- fr(t, ir(
2930
- { name: "circle-check-big" },
2931
- () => r,
2932
- {
2933
- get iconNode() {
2934
- return n;
2935
- },
2936
- children: (i, f) => {
2937
- var a = Oe(), u = Te(a);
2938
- $e(u, () => e.children ?? H), Zt(i, a);
2939
- },
2940
- $$slots: { default: !0 }
2941
- }
2942
- )), Se();
2943
- }
2944
- function Wf(t, e) {
2945
- Ee(e, !0);
2946
- /**
2947
- * @license @lucide/svelte v0.544.0 - ISC
2948
- *
2949
- * ISC License
2950
- *
2951
- * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.
2952
- *
2953
- * Permission to use, copy, modify, and/or distribute this software for any
2954
- * purpose with or without fee is hereby granted, provided that the above
2955
- * copyright notice and this permission notice appear in all copies.
2956
- *
2957
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
2958
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
2959
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
2960
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
2961
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
2962
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
2963
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2964
- *
2965
- * ---
2966
- *
2967
- * The MIT License (MIT) (for portions derived from Feather)
2968
- *
2969
- * Copyright (c) 2013-2023 Cole Bemis
2970
- *
2971
- * Permission is hereby granted, free of charge, to any person obtaining a copy
2972
- * of this software and associated documentation files (the "Software"), to deal
2973
- * in the Software without restriction, including without limitation the rights
2974
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2975
- * copies of the Software, and to permit persons to whom the Software is
2976
- * furnished to do so, subject to the following conditions:
2977
- *
2978
- * The above copyright notice and this permission notice shall be included in all
2979
- * copies or substantial portions of the Software.
2980
- *
2981
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2982
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2983
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2984
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2985
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2986
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2987
- * SOFTWARE.
2988
- *
2989
- */
2990
- let r = /* @__PURE__ */ Pe(e, ["$$slots", "$$events", "$$legacy"]);
2991
- const n = [
2992
- ["path", { d: "M18 6 6 18" }],
2993
- ["path", { d: "m6 6 12 12" }]
2994
- ];
2995
- fr(t, ir(
2996
- { name: "x" },
2997
- () => r,
2998
- {
2999
- get iconNode() {
3000
- return n;
3001
- },
3002
- children: (i, f) => {
3003
- var a = Oe(), u = Te(a);
3004
- $e(u, () => e.children ?? H), Zt(i, a);
3005
- },
3006
- $$slots: { default: !0 }
3007
- }
3008
- )), Se();
3009
- }
3010
- export {
3011
- Cr as $,
3012
- jf as A,
3013
- Cf as B,
3014
- Ef as C,
3015
- Sf as D,
3016
- Gi as E,
3017
- Qi as F,
3018
- Lf as G,
3019
- ir as H,
3020
- fr as I,
3021
- $e as J,
3022
- H as K,
3023
- Pe as L,
3024
- If as M,
3025
- Vf as N,
3026
- Bf as O,
3027
- nf as P,
3028
- Nf as Q,
3029
- yf as R,
3030
- Yi as S,
3031
- T,
3032
- $i as U,
3033
- dn as V,
3034
- Lt as W,
3035
- Wf as X,
3036
- xt as Y,
3037
- Pf as Z,
3038
- Je as _,
3039
- Rf as a,
3040
- mf as a0,
3041
- er as a1,
3042
- qf as a2,
3043
- _i as a3,
3044
- Yn as a4,
3045
- xf as a5,
3046
- ff as a6,
3047
- ze as a7,
3048
- Te as b,
3049
- Of as c,
3050
- Df as d,
3051
- Tf as e,
3052
- kf as f,
3053
- Zt as g,
3054
- Se as h,
3055
- Ff as i,
3056
- Ee as j,
3057
- J as k,
3058
- P as l,
3059
- pi as m,
3060
- mi as n,
3061
- Ei as o,
3062
- Ht as p,
3063
- rf as q,
3064
- xi as r,
3065
- $f as s,
3066
- Af as t,
3067
- Ut as u,
3068
- Nr as v,
3069
- Oe as w,
3070
- Ui as x,
3071
- Mf as y,
3072
- Uf as z
3073
- };