@dillingerstaffing/strand-svelte 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/README.md +56 -0
  2. package/dist/css/strand-ui.css +2583 -0
  3. package/dist/index.js +4154 -0
  4. package/dist/index.js.map +1 -0
  5. package/package.json +53 -0
  6. package/src/components/Alert/Alert.svelte +32 -0
  7. package/src/components/Alert/Alert.test.ts +64 -0
  8. package/src/components/Alert/index.ts +2 -0
  9. package/src/components/Avatar/Avatar.svelte +40 -0
  10. package/src/components/Avatar/Avatar.test.ts +55 -0
  11. package/src/components/Avatar/index.ts +2 -0
  12. package/src/components/Badge/Badge.svelte +41 -0
  13. package/src/components/Badge/Badge.test.ts +55 -0
  14. package/src/components/Badge/index.ts +2 -0
  15. package/src/components/Breadcrumb/Breadcrumb.svelte +29 -0
  16. package/src/components/Breadcrumb/Breadcrumb.test.ts +66 -0
  17. package/src/components/Breadcrumb/index.ts +2 -0
  18. package/src/components/Button/Button.svelte +55 -0
  19. package/src/components/Button/Button.test.ts +110 -0
  20. package/src/components/Button/index.ts +2 -0
  21. package/src/components/Card/Card.svelte +17 -0
  22. package/src/components/Card/Card.test.ts +32 -0
  23. package/src/components/Card/index.ts +2 -0
  24. package/src/components/Checkbox/Checkbox.svelte +62 -0
  25. package/src/components/Checkbox/Checkbox.test.ts +67 -0
  26. package/src/components/Checkbox/index.ts +2 -0
  27. package/src/components/CodeBlock/CodeBlock.svelte +14 -0
  28. package/src/components/CodeBlock/CodeBlock.test.ts +36 -0
  29. package/src/components/CodeBlock/index.ts +2 -0
  30. package/src/components/Container/Container.svelte +14 -0
  31. package/src/components/Container/Container.test.ts +23 -0
  32. package/src/components/Container/index.ts +2 -0
  33. package/src/components/DataReadout/DataReadout.svelte +19 -0
  34. package/src/components/DataReadout/DataReadout.test.ts +35 -0
  35. package/src/components/DataReadout/index.ts +2 -0
  36. package/src/components/Dialog/Dialog.svelte +131 -0
  37. package/src/components/Dialog/Dialog.test.ts +77 -0
  38. package/src/components/Dialog/index.ts +2 -0
  39. package/src/components/Divider/Divider.svelte +36 -0
  40. package/src/components/Divider/Divider.test.ts +34 -0
  41. package/src/components/Divider/index.ts +2 -0
  42. package/src/components/FormField/FormField.svelte +39 -0
  43. package/src/components/FormField/FormField.test.ts +58 -0
  44. package/src/components/FormField/index.ts +2 -0
  45. package/src/components/Grid/Grid.svelte +13 -0
  46. package/src/components/Grid/Grid.test.ts +32 -0
  47. package/src/components/Grid/index.ts +2 -0
  48. package/src/components/Input/Input.svelte +41 -0
  49. package/src/components/Input/Input.test.ts +64 -0
  50. package/src/components/Input/index.ts +2 -0
  51. package/src/components/Link/Link.svelte +17 -0
  52. package/src/components/Link/Link.test.ts +28 -0
  53. package/src/components/Link/index.ts +2 -0
  54. package/src/components/Nav/Nav.svelte +69 -0
  55. package/src/components/Nav/Nav.test.ts +75 -0
  56. package/src/components/Nav/index.ts +2 -0
  57. package/src/components/Progress/Progress.svelte +78 -0
  58. package/src/components/Progress/Progress.test.ts +58 -0
  59. package/src/components/Progress/index.ts +2 -0
  60. package/src/components/Radio/Radio.svelte +46 -0
  61. package/src/components/Radio/Radio.test.ts +52 -0
  62. package/src/components/Radio/index.ts +2 -0
  63. package/src/components/Section/Section.svelte +17 -0
  64. package/src/components/Section/Section.test.ts +29 -0
  65. package/src/components/Section/index.ts +2 -0
  66. package/src/components/Select/Select.svelte +45 -0
  67. package/src/components/Select/Select.test.ts +59 -0
  68. package/src/components/Select/index.ts +2 -0
  69. package/src/components/Skeleton/Skeleton.svelte +25 -0
  70. package/src/components/Skeleton/Skeleton.test.ts +44 -0
  71. package/src/components/Skeleton/index.ts +2 -0
  72. package/src/components/Slider/Slider.svelte +37 -0
  73. package/src/components/Slider/Slider.test.ts +45 -0
  74. package/src/components/Slider/index.ts +2 -0
  75. package/src/components/Spinner/Spinner.svelte +15 -0
  76. package/src/components/Spinner/Spinner.test.ts +38 -0
  77. package/src/components/Spinner/index.ts +2 -0
  78. package/src/components/Stack/Stack.svelte +27 -0
  79. package/src/components/Stack/Stack.test.ts +46 -0
  80. package/src/components/Stack/index.ts +2 -0
  81. package/src/components/Switch/Switch.svelte +48 -0
  82. package/src/components/Switch/Switch.test.ts +61 -0
  83. package/src/components/Switch/index.ts +2 -0
  84. package/src/components/Table/Table.svelte +67 -0
  85. package/src/components/Table/Table.test.ts +88 -0
  86. package/src/components/Table/index.ts +2 -0
  87. package/src/components/Tabs/Tabs.svelte +89 -0
  88. package/src/components/Tabs/Tabs.test.ts +66 -0
  89. package/src/components/Tabs/index.ts +2 -0
  90. package/src/components/Tag/Tag.svelte +33 -0
  91. package/src/components/Tag/Tag.test.ts +63 -0
  92. package/src/components/Tag/index.ts +2 -0
  93. package/src/components/Textarea/Textarea.svelte +53 -0
  94. package/src/components/Textarea/Textarea.test.ts +53 -0
  95. package/src/components/Textarea/index.ts +2 -0
  96. package/src/components/Toast/Toast.svelte +29 -0
  97. package/src/components/Toast/Toast.test.ts +60 -0
  98. package/src/components/Toast/ToastProvider.svelte +45 -0
  99. package/src/components/Toast/index.ts +5 -0
  100. package/src/components/Toast/useToast.ts +78 -0
  101. package/src/components/Tooltip/Tooltip.svelte +56 -0
  102. package/src/components/Tooltip/Tooltip.test.ts +50 -0
  103. package/src/components/Tooltip/index.ts +2 -0
  104. package/src/index.ts +46 -0
  105. package/src/test-setup.ts +7 -0
package/dist/index.js ADDED
@@ -0,0 +1,4154 @@
1
+ var ia = Object.defineProperty;
2
+ var Hn = (e) => {
3
+ throw TypeError(e);
4
+ };
5
+ var sa = (e, t, n) => t in e ? ia(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var qe = (e, t, n) => sa(e, typeof t != "symbol" ? t + "" : t, n), ln = (e, t, n) => t.has(e) || Hn("Cannot " + n);
7
+ var x = (e, t, n) => (ln(e, t, "read from private field"), n ? n.call(e) : t.get(e)), X = (e, t, n) => t.has(e) ? Hn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Ze = (e, t, n, r) => (ln(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), _e = (e, t, n) => (ln(e, t, "access private method"), n);
8
+ import { setContext as la, getContext as oa, onDestroy as fr, tick as fa } from "svelte";
9
+ import { writable as ua } from "svelte/store";
10
+ const da = "5";
11
+ var sr;
12
+ typeof window < "u" && ((sr = window.__svelte ?? (window.__svelte = {})).v ?? (sr.v = /* @__PURE__ */ new Set())).add(da);
13
+ let Lt = !1, ca = !1;
14
+ function va() {
15
+ Lt = !0;
16
+ }
17
+ va();
18
+ const _a = 1, ha = 2, ur = 4, ga = 8, pa = 16, ba = 1, wa = 2, dr = 4, ma = 8, ya = 16, ka = 1, Ea = 2, re = Symbol(), cr = "http://www.w3.org/1999/xhtml", xa = "@attach", Ta = !1;
19
+ var Tn = Array.isArray, Sa = Array.prototype.indexOf, _t = Array.prototype.includes, Sn = Array.from, Aa = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, vr = Object.getOwnPropertyDescriptors, $a = Object.prototype, Ca = Array.prototype, An = Object.getPrototypeOf;
20
+ const Pa = () => {
21
+ };
22
+ function Oa(e) {
23
+ return e();
24
+ }
25
+ function vn(e) {
26
+ for (var t = 0; t < e.length; t++)
27
+ e[t]();
28
+ }
29
+ function _r() {
30
+ var e, t, n = new Promise((r, a) => {
31
+ e = r, t = a;
32
+ });
33
+ return { promise: n, resolve: e, reject: t };
34
+ }
35
+ const ae = 2, ht = 4, Nt = 8, $n = 1 << 24, Fe = 16, Ae = 32, gt = 64, za = 128, me = 512, J = 1024, se = 2048, $e = 4096, de = 8192, be = 16384, st = 32768, _n = 1 << 25, At = 65536, hn = 1 << 17, ja = 1 << 18, tn = 1 << 19, hr = 1 << 20, ze = 1 << 25, rt = 65536, gn = 1 << 21, nn = 1 << 22, Ye = 1 << 23, Be = Symbol("$state"), Ia = Symbol("legacy props"), Ra = Symbol(""), De = new class extends Error {
36
+ constructor() {
37
+ super(...arguments);
38
+ qe(this, "name", "StaleReactionError");
39
+ qe(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
40
+ }
41
+ }();
42
+ var lr;
43
+ const gr = (
44
+ // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
45
+ !!((lr = globalThis.document) != null && lr.contentType) && /* @__PURE__ */ globalThis.document.contentType.includes("xml")
46
+ );
47
+ function Ma() {
48
+ throw new Error("https://svelte.dev/e/async_derived_orphan");
49
+ }
50
+ function Da(e, t, n) {
51
+ throw new Error("https://svelte.dev/e/each_key_duplicate");
52
+ }
53
+ function La(e) {
54
+ throw new Error("https://svelte.dev/e/effect_in_teardown");
55
+ }
56
+ function Na() {
57
+ throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
58
+ }
59
+ function Ba(e) {
60
+ throw new Error("https://svelte.dev/e/effect_orphan");
61
+ }
62
+ function Fa() {
63
+ throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
64
+ }
65
+ function qa(e) {
66
+ throw new Error("https://svelte.dev/e/props_invalid_value");
67
+ }
68
+ function Ua() {
69
+ throw new Error("https://svelte.dev/e/state_descriptors_fixed");
70
+ }
71
+ function Ha() {
72
+ throw new Error("https://svelte.dev/e/state_prototype_fixed");
73
+ }
74
+ function Va() {
75
+ throw new Error("https://svelte.dev/e/state_unsafe_mutation");
76
+ }
77
+ function Ka() {
78
+ console.warn("https://svelte.dev/e/select_multiple_invalid_value");
79
+ }
80
+ function pr(e) {
81
+ return e === this.v;
82
+ }
83
+ function Ya(e, t) {
84
+ return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
85
+ }
86
+ function br(e) {
87
+ return !Ya(e, this.v);
88
+ }
89
+ let ee = null;
90
+ function Zt(e) {
91
+ ee = e;
92
+ }
93
+ function U(e, t = !1, n) {
94
+ ee = {
95
+ p: ee,
96
+ i: !1,
97
+ c: null,
98
+ e: null,
99
+ s: e,
100
+ x: null,
101
+ r: (
102
+ /** @type {Effect} */
103
+ B
104
+ ),
105
+ l: Lt && !t ? { s: null, u: null, $: [] } : null
106
+ };
107
+ }
108
+ function H(e) {
109
+ var t = (
110
+ /** @type {ComponentContext} */
111
+ ee
112
+ ), n = t.e;
113
+ if (n !== null) {
114
+ t.e = null;
115
+ for (var r of n)
116
+ Ir(r);
117
+ }
118
+ return t.i = !0, ee = t.p, /** @type {T} */
119
+ {};
120
+ }
121
+ function Bt() {
122
+ return !Lt || ee !== null && ee.l === null;
123
+ }
124
+ let ot = [];
125
+ function Ga() {
126
+ var e = ot;
127
+ ot = [], vn(e);
128
+ }
129
+ function $t(e) {
130
+ if (ot.length === 0) {
131
+ var t = ot;
132
+ queueMicrotask(() => {
133
+ t === ot && Ga();
134
+ });
135
+ }
136
+ ot.push(e);
137
+ }
138
+ function Wa(e) {
139
+ var t = B;
140
+ if (t === null)
141
+ return L.f |= Ye, e;
142
+ if ((t.f & st) === 0 && (t.f & ht) === 0)
143
+ throw e;
144
+ Xt(e, t);
145
+ }
146
+ function Xt(e, t) {
147
+ for (; t !== null; ) {
148
+ if ((t.f & za) !== 0) {
149
+ if ((t.f & st) === 0)
150
+ throw e;
151
+ try {
152
+ t.b.error(e);
153
+ return;
154
+ } catch (n) {
155
+ e = n;
156
+ }
157
+ }
158
+ t = t.parent;
159
+ }
160
+ throw e;
161
+ }
162
+ const Za = -7169;
163
+ function Z(e, t) {
164
+ e.f = e.f & Za | t;
165
+ }
166
+ function Cn(e) {
167
+ (e.f & me) !== 0 || e.deps === null ? Z(e, J) : Z(e, $e);
168
+ }
169
+ function wr(e) {
170
+ if (e !== null)
171
+ for (const t of e)
172
+ (t.f & ae) === 0 || (t.f & rt) === 0 || (t.f ^= rt, wr(
173
+ /** @type {Derived} */
174
+ t.deps
175
+ ));
176
+ }
177
+ function Xa(e, t, n) {
178
+ (e.f & se) !== 0 ? t.add(e) : (e.f & $e) !== 0 && n.add(e), wr(e.deps), Z(e, J);
179
+ }
180
+ let Ht = !1;
181
+ function Ja(e) {
182
+ var t = Ht;
183
+ try {
184
+ return Ht = !1, [e(), Ht];
185
+ } finally {
186
+ Ht = t;
187
+ }
188
+ }
189
+ const Ue = /* @__PURE__ */ new Set();
190
+ let N = null, ie = null, pn = null, on = !1, ft = null, Kt = null;
191
+ var Vn = 0;
192
+ let Qa = 1;
193
+ var dt, ct, Le, Ce, It, ge, Rt, Ke, Ne, Pe, vt, Qe, Q, Yt, mr, Gt, bn, wn, yr;
194
+ const Qt = class Qt {
195
+ constructor() {
196
+ X(this, Q);
197
+ qe(this, "id", Qa++);
198
+ /**
199
+ * The current values of any signals that are updated in this batch.
200
+ * Tuple format: [value, is_derived] (note: is_derived is false for deriveds, too, if they were overridden via assignment)
201
+ * They keys of this map are identical to `this.#previous`
202
+ * @type {Map<Value, [any, boolean]>}
203
+ */
204
+ qe(this, "current", /* @__PURE__ */ new Map());
205
+ /**
206
+ * The values of any signals (sources and deriveds) that are updated in this batch _before_ those updates took place.
207
+ * They keys of this map are identical to `this.#current`
208
+ * @type {Map<Value, any>}
209
+ */
210
+ qe(this, "previous", /* @__PURE__ */ new Map());
211
+ /**
212
+ * When the batch is committed (and the DOM is updated), we need to remove old branches
213
+ * and append new ones by calling the functions added inside (if/each/key/etc) blocks
214
+ * @type {Set<(batch: Batch) => void>}
215
+ */
216
+ X(this, dt, /* @__PURE__ */ new Set());
217
+ /**
218
+ * If a fork is discarded, we need to destroy any effects that are no longer needed
219
+ * @type {Set<(batch: Batch) => void>}
220
+ */
221
+ X(this, ct, /* @__PURE__ */ new Set());
222
+ /**
223
+ * Async effects that are currently in flight
224
+ * @type {Map<Effect, number>}
225
+ */
226
+ X(this, Le, /* @__PURE__ */ new Map());
227
+ /**
228
+ * Async effects that are currently in flight, _not_ inside a pending boundary
229
+ * @type {Map<Effect, number>}
230
+ */
231
+ X(this, Ce, /* @__PURE__ */ new Map());
232
+ /**
233
+ * A deferred that resolves when the batch is committed, used with `settled()`
234
+ * TODO replace with Promise.withResolvers once supported widely enough
235
+ * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
236
+ */
237
+ X(this, It, null);
238
+ /**
239
+ * The root effects that need to be flushed
240
+ * @type {Effect[]}
241
+ */
242
+ X(this, ge, []);
243
+ /**
244
+ * Effects created while this batch was active.
245
+ * @type {Effect[]}
246
+ */
247
+ X(this, Rt, []);
248
+ /**
249
+ * Deferred effects (which run after async work has completed) that are DIRTY
250
+ * @type {Set<Effect>}
251
+ */
252
+ X(this, Ke, /* @__PURE__ */ new Set());
253
+ /**
254
+ * Deferred effects that are MAYBE_DIRTY
255
+ * @type {Set<Effect>}
256
+ */
257
+ X(this, Ne, /* @__PURE__ */ new Set());
258
+ /**
259
+ * A map of branches that still exist, but will be destroyed when this batch
260
+ * is committed — we skip over these during `process`.
261
+ * The value contains child effects that were dirty/maybe_dirty before being reset,
262
+ * so they can be rescheduled if the branch survives.
263
+ * @type {Map<Effect, { d: Effect[], m: Effect[] }>}
264
+ */
265
+ X(this, Pe, /* @__PURE__ */ new Map());
266
+ qe(this, "is_fork", !1);
267
+ X(this, vt, !1);
268
+ /** @type {Set<Batch>} */
269
+ X(this, Qe, /* @__PURE__ */ new Set());
270
+ }
271
+ /**
272
+ * Add an effect to the #skipped_branches map and reset its children
273
+ * @param {Effect} effect
274
+ */
275
+ skip_effect(t) {
276
+ x(this, Pe).has(t) || x(this, Pe).set(t, { d: [], m: [] });
277
+ }
278
+ /**
279
+ * Remove an effect from the #skipped_branches map and reschedule
280
+ * any tracked dirty/maybe_dirty child effects
281
+ * @param {Effect} effect
282
+ */
283
+ unskip_effect(t) {
284
+ var n = x(this, Pe).get(t);
285
+ if (n) {
286
+ x(this, Pe).delete(t);
287
+ for (var r of n.d)
288
+ Z(r, se), this.schedule(r);
289
+ for (r of n.m)
290
+ Z(r, $e), this.schedule(r);
291
+ }
292
+ }
293
+ /**
294
+ * Associate a change to a given source with the current
295
+ * batch, noting its previous and current values
296
+ * @param {Value} source
297
+ * @param {any} old_value
298
+ * @param {boolean} [is_derived]
299
+ */
300
+ capture(t, n, r = !1) {
301
+ n !== re && !this.previous.has(t) && this.previous.set(t, n), (t.f & Ye) === 0 && (this.current.set(t, [t.v, r]), ie == null || ie.set(t, t.v));
302
+ }
303
+ activate() {
304
+ N = this;
305
+ }
306
+ deactivate() {
307
+ N = null, ie = null;
308
+ }
309
+ flush() {
310
+ try {
311
+ on = !0, N = this, _e(this, Q, Gt).call(this);
312
+ } finally {
313
+ Vn = 0, pn = null, ft = null, Kt = null, on = !1, N = null, ie = null, Ge.clear();
314
+ }
315
+ }
316
+ discard() {
317
+ for (const t of x(this, ct)) t(this);
318
+ x(this, ct).clear(), Ue.delete(this);
319
+ }
320
+ /**
321
+ * @param {Effect} effect
322
+ */
323
+ register_created_effect(t) {
324
+ x(this, Rt).push(t);
325
+ }
326
+ /**
327
+ * @param {boolean} blocking
328
+ * @param {Effect} effect
329
+ */
330
+ increment(t, n) {
331
+ let r = x(this, Le).get(n) ?? 0;
332
+ if (x(this, Le).set(n, r + 1), t) {
333
+ let a = x(this, Ce).get(n) ?? 0;
334
+ x(this, Ce).set(n, a + 1);
335
+ }
336
+ }
337
+ /**
338
+ * @param {boolean} blocking
339
+ * @param {Effect} effect
340
+ * @param {boolean} skip - whether to skip updates (because this is triggered by a stale reaction)
341
+ */
342
+ decrement(t, n, r) {
343
+ let a = x(this, Le).get(n) ?? 0;
344
+ if (a === 1 ? x(this, Le).delete(n) : x(this, Le).set(n, a - 1), t) {
345
+ let i = x(this, Ce).get(n) ?? 0;
346
+ i === 1 ? x(this, Ce).delete(n) : x(this, Ce).set(n, i - 1);
347
+ }
348
+ x(this, vt) || r || (Ze(this, vt, !0), $t(() => {
349
+ Ze(this, vt, !1), this.flush();
350
+ }));
351
+ }
352
+ /**
353
+ * @param {Set<Effect>} dirty_effects
354
+ * @param {Set<Effect>} maybe_dirty_effects
355
+ */
356
+ transfer_effects(t, n) {
357
+ for (const r of t)
358
+ x(this, Ke).add(r);
359
+ for (const r of n)
360
+ x(this, Ne).add(r);
361
+ t.clear(), n.clear();
362
+ }
363
+ /** @param {(batch: Batch) => void} fn */
364
+ oncommit(t) {
365
+ x(this, dt).add(t);
366
+ }
367
+ /** @param {(batch: Batch) => void} fn */
368
+ ondiscard(t) {
369
+ x(this, ct).add(t);
370
+ }
371
+ settled() {
372
+ return (x(this, It) ?? Ze(this, It, _r())).promise;
373
+ }
374
+ static ensure() {
375
+ if (N === null) {
376
+ const t = N = new Qt();
377
+ on || (Ue.add(N), $t(() => {
378
+ N === t && t.flush();
379
+ }));
380
+ }
381
+ return N;
382
+ }
383
+ apply() {
384
+ {
385
+ ie = null;
386
+ return;
387
+ }
388
+ }
389
+ /**
390
+ *
391
+ * @param {Effect} effect
392
+ */
393
+ schedule(t) {
394
+ var a;
395
+ if (pn = t, (a = t.b) != null && a.is_pending && (t.f & (ht | Nt | $n)) !== 0 && (t.f & st) === 0) {
396
+ t.b.defer_effect(t);
397
+ return;
398
+ }
399
+ for (var n = t; n.parent !== null; ) {
400
+ n = n.parent;
401
+ var r = n.f;
402
+ if (ft !== null && n === B && (L === null || (L.f & ae) === 0))
403
+ return;
404
+ if ((r & (gt | Ae)) !== 0) {
405
+ if ((r & J) === 0)
406
+ return;
407
+ n.f ^= J;
408
+ }
409
+ }
410
+ x(this, ge).push(n);
411
+ }
412
+ };
413
+ dt = new WeakMap(), ct = new WeakMap(), Le = new WeakMap(), Ce = new WeakMap(), It = new WeakMap(), ge = new WeakMap(), Rt = new WeakMap(), Ke = new WeakMap(), Ne = new WeakMap(), Pe = new WeakMap(), vt = new WeakMap(), Qe = new WeakMap(), Q = new WeakSet(), Yt = function() {
414
+ return this.is_fork || x(this, Ce).size > 0;
415
+ }, mr = function() {
416
+ for (const r of x(this, Qe))
417
+ for (const a of x(r, Ce).keys()) {
418
+ for (var t = !1, n = a; n.parent !== null; ) {
419
+ if (x(this, Pe).has(n)) {
420
+ t = !0;
421
+ break;
422
+ }
423
+ n = n.parent;
424
+ }
425
+ if (!t)
426
+ return !0;
427
+ }
428
+ return !1;
429
+ }, Gt = function() {
430
+ var o, l;
431
+ if (Vn++ > 1e3 && (Ue.delete(this), ei()), !_e(this, Q, Yt).call(this)) {
432
+ for (const f of x(this, Ke))
433
+ x(this, Ne).delete(f), Z(f, se), this.schedule(f);
434
+ for (const f of x(this, Ne))
435
+ Z(f, $e), this.schedule(f);
436
+ }
437
+ const t = x(this, ge);
438
+ Ze(this, ge, []), this.apply();
439
+ var n = ft = [], r = [], a = Kt = [];
440
+ for (const f of t)
441
+ try {
442
+ _e(this, Q, bn).call(this, f, n, r);
443
+ } catch (c) {
444
+ throw xr(f), c;
445
+ }
446
+ if (N = null, a.length > 0) {
447
+ var i = Qt.ensure();
448
+ for (const f of a)
449
+ i.schedule(f);
450
+ }
451
+ if (ft = null, Kt = null, _e(this, Q, Yt).call(this) || _e(this, Q, mr).call(this)) {
452
+ _e(this, Q, wn).call(this, r), _e(this, Q, wn).call(this, n);
453
+ for (const [f, c] of x(this, Pe))
454
+ Er(f, c);
455
+ } else {
456
+ x(this, Le).size === 0 && Ue.delete(this), x(this, Ke).clear(), x(this, Ne).clear();
457
+ for (const f of x(this, dt)) f(this);
458
+ x(this, dt).clear(), Kn(r), Kn(n), (o = x(this, It)) == null || o.resolve();
459
+ }
460
+ var s = (
461
+ /** @type {Batch | null} */
462
+ /** @type {unknown} */
463
+ N
464
+ );
465
+ if (x(this, ge).length > 0) {
466
+ const f = s ?? (s = this);
467
+ x(f, ge).push(...x(this, ge).filter((c) => !x(f, ge).includes(c)));
468
+ }
469
+ s !== null && (Ue.add(s), _e(l = s, Q, Gt).call(l)), Ue.has(this) || _e(this, Q, yr).call(this);
470
+ }, /**
471
+ * Traverse the effect tree, executing effects or stashing
472
+ * them for later execution as appropriate
473
+ * @param {Effect} root
474
+ * @param {Effect[]} effects
475
+ * @param {Effect[]} render_effects
476
+ */
477
+ bn = function(t, n, r) {
478
+ t.f ^= J;
479
+ for (var a = t.first; a !== null; ) {
480
+ var i = a.f, s = (i & (Ae | gt)) !== 0, o = s && (i & J) !== 0, l = o || (i & de) !== 0 || x(this, Pe).has(a);
481
+ if (!l && a.fn !== null) {
482
+ s ? a.f ^= J : (i & ht) !== 0 ? n.push(a) : mt(a) && ((i & Fe) !== 0 && x(this, Ne).add(a), it(a));
483
+ var f = a.first;
484
+ if (f !== null) {
485
+ a = f;
486
+ continue;
487
+ }
488
+ }
489
+ for (; a !== null; ) {
490
+ var c = a.next;
491
+ if (c !== null) {
492
+ a = c;
493
+ break;
494
+ }
495
+ a = a.parent;
496
+ }
497
+ }
498
+ }, /**
499
+ * @param {Effect[]} effects
500
+ */
501
+ wn = function(t) {
502
+ for (var n = 0; n < t.length; n += 1)
503
+ Xa(t[n], x(this, Ke), x(this, Ne));
504
+ }, yr = function() {
505
+ var c, h, d;
506
+ for (const p of Ue) {
507
+ var t = p.id < this.id, n = [];
508
+ for (const [_, [b, v]] of this.current) {
509
+ if (p.current.has(_)) {
510
+ var r = (
511
+ /** @type {[any, boolean]} */
512
+ p.current.get(_)[0]
513
+ );
514
+ if (t && b !== r)
515
+ p.current.set(_, [b, v]);
516
+ else
517
+ continue;
518
+ }
519
+ n.push(_);
520
+ }
521
+ var a = [...p.current.keys()].filter((_) => !this.current.has(_));
522
+ if (a.length === 0)
523
+ t && p.discard();
524
+ else if (n.length > 0) {
525
+ p.activate();
526
+ var i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
527
+ for (var o of n)
528
+ kr(o, a, i, s);
529
+ s = /* @__PURE__ */ new Map();
530
+ var l = [...p.current.keys()].filter(
531
+ (_) => this.current.has(_) ? (
532
+ /** @type {[any, boolean]} */
533
+ this.current.get(_)[0] !== _
534
+ ) : !0
535
+ );
536
+ for (const _ of x(this, Rt))
537
+ (_.f & (be | de | hn)) === 0 && Pn(_, l, s) && ((_.f & (nn | Fe)) !== 0 ? (Z(_, se), p.schedule(_)) : x(p, Ke).add(_));
538
+ if (x(p, ge).length > 0) {
539
+ p.apply();
540
+ for (var f of x(p, ge))
541
+ _e(c = p, Q, bn).call(c, f, [], []);
542
+ Ze(p, ge, []);
543
+ }
544
+ p.deactivate();
545
+ }
546
+ }
547
+ for (const p of Ue)
548
+ x(p, Qe).has(this) && (x(p, Qe).delete(this), x(p, Qe).size === 0 && !_e(h = p, Q, Yt).call(h) && (p.activate(), _e(d = p, Q, Gt).call(d)));
549
+ };
550
+ let Ct = Qt;
551
+ function ei() {
552
+ try {
553
+ Fa();
554
+ } catch (e) {
555
+ Xt(e, pn);
556
+ }
557
+ }
558
+ let xe = null;
559
+ function Kn(e) {
560
+ var t = e.length;
561
+ if (t !== 0) {
562
+ for (var n = 0; n < t; ) {
563
+ var r = e[n++];
564
+ if ((r.f & (be | de)) === 0 && mt(r) && (xe = /* @__PURE__ */ new Set(), it(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Lr(r), (xe == null ? void 0 : xe.size) > 0)) {
565
+ Ge.clear();
566
+ for (const a of xe) {
567
+ if ((a.f & (be | de)) !== 0) continue;
568
+ const i = [a];
569
+ let s = a.parent;
570
+ for (; s !== null; )
571
+ xe.has(s) && (xe.delete(s), i.push(s)), s = s.parent;
572
+ for (let o = i.length - 1; o >= 0; o--) {
573
+ const l = i[o];
574
+ (l.f & (be | de)) === 0 && it(l);
575
+ }
576
+ }
577
+ xe.clear();
578
+ }
579
+ }
580
+ xe = null;
581
+ }
582
+ }
583
+ function kr(e, t, n, r) {
584
+ if (!n.has(e) && (n.add(e), e.reactions !== null))
585
+ for (const a of e.reactions) {
586
+ const i = a.f;
587
+ (i & ae) !== 0 ? kr(
588
+ /** @type {Derived} */
589
+ a,
590
+ t,
591
+ n,
592
+ r
593
+ ) : (i & (nn | Fe)) !== 0 && (i & se) === 0 && Pn(a, t, r) && (Z(a, se), On(
594
+ /** @type {Effect} */
595
+ a
596
+ ));
597
+ }
598
+ }
599
+ function Pn(e, t, n) {
600
+ const r = n.get(e);
601
+ if (r !== void 0) return r;
602
+ if (e.deps !== null)
603
+ for (const a of e.deps) {
604
+ if (_t.call(t, a))
605
+ return !0;
606
+ if ((a.f & ae) !== 0 && Pn(
607
+ /** @type {Derived} */
608
+ a,
609
+ t,
610
+ n
611
+ ))
612
+ return n.set(
613
+ /** @type {Derived} */
614
+ a,
615
+ !0
616
+ ), !0;
617
+ }
618
+ return n.set(e, !1), !1;
619
+ }
620
+ function On(e) {
621
+ N.schedule(e);
622
+ }
623
+ function Er(e, t) {
624
+ if (!((e.f & Ae) !== 0 && (e.f & J) !== 0)) {
625
+ (e.f & se) !== 0 ? t.d.push(e) : (e.f & $e) !== 0 && t.m.push(e), Z(e, J);
626
+ for (var n = e.first; n !== null; )
627
+ Er(n, t), n = n.next;
628
+ }
629
+ }
630
+ function xr(e) {
631
+ Z(e, J);
632
+ for (var t = e.first; t !== null; )
633
+ xr(t), t = t.next;
634
+ }
635
+ function Tr(e, t, n, r) {
636
+ const a = Bt() ? rn : Pt;
637
+ var i = e.filter((d) => !d.settled);
638
+ if (n.length === 0 && i.length === 0) {
639
+ r(t.map(a));
640
+ return;
641
+ }
642
+ var s = (
643
+ /** @type {Effect} */
644
+ B
645
+ ), o = ti(), l = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((d) => d.promise)) : null;
646
+ function f(d) {
647
+ o();
648
+ try {
649
+ r(d);
650
+ } catch (p) {
651
+ (s.f & be) === 0 && Xt(p, s);
652
+ }
653
+ Jt();
654
+ }
655
+ if (n.length === 0) {
656
+ l.then(() => f(t.map(a)));
657
+ return;
658
+ }
659
+ var c = Sr();
660
+ function h() {
661
+ Promise.all(n.map((d) => /* @__PURE__ */ ni(d))).then((d) => f([...t.map(a), ...d])).catch((d) => Xt(d, s)).finally(() => c());
662
+ }
663
+ l ? l.then(() => {
664
+ o(), h(), Jt();
665
+ }) : h();
666
+ }
667
+ function ti() {
668
+ var e = (
669
+ /** @type {Effect} */
670
+ B
671
+ ), t = L, n = ee, r = (
672
+ /** @type {Batch} */
673
+ N
674
+ );
675
+ return function(i = !0) {
676
+ Ee(e), Ie(t), Zt(n), i && (e.f & be) === 0 && (r == null || r.activate(), r == null || r.apply());
677
+ };
678
+ }
679
+ function Jt(e = !0) {
680
+ Ee(null), Ie(null), Zt(null), e && (N == null || N.deactivate());
681
+ }
682
+ function Sr() {
683
+ var e = (
684
+ /** @type {Effect} */
685
+ B
686
+ ), t = (
687
+ /** @type {Boundary} */
688
+ e.b
689
+ ), n = (
690
+ /** @type {Batch} */
691
+ N
692
+ ), r = t.is_rendered();
693
+ return t.update_pending_count(1, n), n.increment(r, e), (a = !1) => {
694
+ t.update_pending_count(-1, n), n.decrement(r, e, a);
695
+ };
696
+ }
697
+ // @__NO_SIDE_EFFECTS__
698
+ function rn(e) {
699
+ var t = ae | se, n = L !== null && (L.f & ae) !== 0 ? (
700
+ /** @type {Derived} */
701
+ L
702
+ ) : null;
703
+ return B !== null && (B.f |= tn), {
704
+ ctx: ee,
705
+ deps: null,
706
+ effects: null,
707
+ equals: pr,
708
+ f: t,
709
+ fn: e,
710
+ reactions: null,
711
+ rv: 0,
712
+ v: (
713
+ /** @type {V} */
714
+ re
715
+ ),
716
+ wv: 0,
717
+ parent: n ?? B,
718
+ ac: null
719
+ };
720
+ }
721
+ // @__NO_SIDE_EFFECTS__
722
+ function ni(e, t, n) {
723
+ let r = (
724
+ /** @type {Effect | null} */
725
+ B
726
+ );
727
+ r === null && Ma();
728
+ var a = (
729
+ /** @type {Promise<V>} */
730
+ /** @type {unknown} */
731
+ void 0
732
+ ), i = pt(
733
+ /** @type {V} */
734
+ re
735
+ ), s = !L, o = /* @__PURE__ */ new Map();
736
+ return gi(() => {
737
+ var p;
738
+ var l = (
739
+ /** @type {Effect} */
740
+ B
741
+ ), f = _r();
742
+ a = f.promise;
743
+ try {
744
+ Promise.resolve(e()).then(f.resolve, f.reject).finally(Jt);
745
+ } catch (_) {
746
+ f.reject(_), Jt();
747
+ }
748
+ var c = (
749
+ /** @type {Batch} */
750
+ N
751
+ );
752
+ if (s) {
753
+ if ((l.f & st) !== 0)
754
+ var h = Sr();
755
+ if (
756
+ /** @type {Boundary} */
757
+ r.b.is_rendered()
758
+ )
759
+ (p = o.get(c)) == null || p.reject(De), o.delete(c);
760
+ else {
761
+ for (const _ of o.values())
762
+ _.reject(De);
763
+ o.clear();
764
+ }
765
+ o.set(c, f);
766
+ }
767
+ const d = (_, b = void 0) => {
768
+ if (h) {
769
+ var v = b === De;
770
+ h(v);
771
+ }
772
+ if (!(b === De || (l.f & be) !== 0)) {
773
+ if (c.activate(), b)
774
+ i.f |= Ye, Ot(i, b);
775
+ else {
776
+ (i.f & Ye) !== 0 && (i.f ^= Ye), Ot(i, _);
777
+ for (const [g, k] of o) {
778
+ if (o.delete(g), g === c) break;
779
+ k.reject(De);
780
+ }
781
+ }
782
+ c.deactivate();
783
+ }
784
+ };
785
+ f.promise.then(d, (_) => d(null, _ || "unknown"));
786
+ }), In(() => {
787
+ for (const l of o.values())
788
+ l.reject(De);
789
+ }), new Promise((l) => {
790
+ function f(c) {
791
+ function h() {
792
+ c === a ? l(i) : f(a);
793
+ }
794
+ c.then(h, h);
795
+ }
796
+ f(a);
797
+ });
798
+ }
799
+ // @__NO_SIDE_EFFECTS__
800
+ function Pt(e) {
801
+ const t = /* @__PURE__ */ rn(e);
802
+ return t.equals = br, t;
803
+ }
804
+ function ri(e) {
805
+ var t = e.effects;
806
+ if (t !== null) {
807
+ e.effects = null;
808
+ for (var n = 0; n < t.length; n += 1)
809
+ ye(
810
+ /** @type {Effect} */
811
+ t[n]
812
+ );
813
+ }
814
+ }
815
+ function ai(e) {
816
+ for (var t = e.parent; t !== null; ) {
817
+ if ((t.f & ae) === 0)
818
+ return (t.f & be) === 0 ? (
819
+ /** @type {Effect} */
820
+ t
821
+ ) : null;
822
+ t = t.parent;
823
+ }
824
+ return null;
825
+ }
826
+ function zn(e) {
827
+ var t, n = B;
828
+ Ee(ai(e));
829
+ try {
830
+ e.f &= ~rt, ri(e), t = Vr(e);
831
+ } finally {
832
+ Ee(n);
833
+ }
834
+ return t;
835
+ }
836
+ function Ar(e) {
837
+ var t = e.v, n = zn(e);
838
+ if (!e.equals(n) && (e.wv = Ur(), (!(N != null && N.is_fork) || e.deps === null) && (e.v = n, N == null || N.capture(e, t, !0), e.deps === null))) {
839
+ Z(e, J);
840
+ return;
841
+ }
842
+ We || (ie !== null ? (jr() || N != null && N.is_fork) && ie.set(e, n) : Cn(e));
843
+ }
844
+ function ii(e) {
845
+ var t, n;
846
+ if (e.effects !== null)
847
+ for (const r of e.effects)
848
+ (r.teardown || r.ac) && ((t = r.teardown) == null || t.call(r), (n = r.ac) == null || n.abort(De), r.teardown = Pa, r.ac = null, zt(r, 0), Dn(r));
849
+ }
850
+ function $r(e) {
851
+ if (e.effects !== null)
852
+ for (const t of e.effects)
853
+ t.teardown && it(t);
854
+ }
855
+ let mn = /* @__PURE__ */ new Set();
856
+ const Ge = /* @__PURE__ */ new Map();
857
+ let Cr = !1;
858
+ function pt(e, t) {
859
+ var n = {
860
+ f: 0,
861
+ // TODO ideally we could skip this altogether, but it causes type errors
862
+ v: e,
863
+ reactions: null,
864
+ equals: pr,
865
+ rv: 0,
866
+ wv: 0
867
+ };
868
+ return n;
869
+ }
870
+ // @__NO_SIDE_EFFECTS__
871
+ function He(e, t) {
872
+ const n = pt(e);
873
+ return wi(n), n;
874
+ }
875
+ // @__NO_SIDE_EFFECTS__
876
+ function z(e, t = !1, n = !0) {
877
+ var a;
878
+ const r = pt(e);
879
+ return t || (r.equals = br), Lt && n && ee !== null && ee.l !== null && ((a = ee.l).s ?? (a.s = [])).push(r), r;
880
+ }
881
+ function yn(e, t) {
882
+ return P(
883
+ e,
884
+ D(() => u(e))
885
+ ), t;
886
+ }
887
+ function P(e, t, n = !1) {
888
+ L !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
889
+ // to ensure we error if state is set inside an inspect effect
890
+ (!Se || (L.f & hn) !== 0) && Bt() && (L.f & (ae | Fe | nn | hn)) !== 0 && (ke === null || !_t.call(ke, e)) && Va();
891
+ let r = n ? ut(t) : t;
892
+ return Ot(e, r, Kt);
893
+ }
894
+ function Ot(e, t, n = null) {
895
+ if (!e.equals(t)) {
896
+ var r = e.v;
897
+ We ? Ge.set(e, t) : Ge.set(e, r), e.v = t;
898
+ var a = Ct.ensure();
899
+ if (a.capture(e, r), (e.f & ae) !== 0) {
900
+ const i = (
901
+ /** @type {Derived} */
902
+ e
903
+ );
904
+ (e.f & se) !== 0 && zn(i), ie === null && Cn(i);
905
+ }
906
+ e.wv = Ur(), Pr(e, se, n), Bt() && B !== null && (B.f & J) !== 0 && (B.f & (Ae | gt)) === 0 && (we === null ? mi([e]) : we.push(e)), !a.is_fork && mn.size > 0 && !Cr && si();
907
+ }
908
+ return t;
909
+ }
910
+ function si() {
911
+ Cr = !1;
912
+ for (const e of mn)
913
+ (e.f & J) !== 0 && Z(e, $e), mt(e) && it(e);
914
+ mn.clear();
915
+ }
916
+ function Yn(e, t = 1) {
917
+ var n = u(e), r = t === 1 ? n++ : n--;
918
+ return P(e, n), r;
919
+ }
920
+ function fn(e) {
921
+ P(e, e.v + 1);
922
+ }
923
+ function Pr(e, t, n) {
924
+ var r = e.reactions;
925
+ if (r !== null)
926
+ for (var a = Bt(), i = r.length, s = 0; s < i; s++) {
927
+ var o = r[s], l = o.f;
928
+ if (!(!a && o === B)) {
929
+ var f = (l & se) === 0;
930
+ if (f && Z(o, t), (l & ae) !== 0) {
931
+ var c = (
932
+ /** @type {Derived} */
933
+ o
934
+ );
935
+ ie == null || ie.delete(c), (l & rt) === 0 && (l & me && (o.f |= rt), Pr(c, $e, n));
936
+ } else if (f) {
937
+ var h = (
938
+ /** @type {Effect} */
939
+ o
940
+ );
941
+ (l & Fe) !== 0 && xe !== null && xe.add(h), n !== null ? n.push(h) : On(h);
942
+ }
943
+ }
944
+ }
945
+ }
946
+ function ut(e) {
947
+ if (typeof e != "object" || e === null || Be in e)
948
+ return e;
949
+ const t = An(e);
950
+ if (t !== $a && t !== Ca)
951
+ return e;
952
+ var n = /* @__PURE__ */ new Map(), r = Tn(e), a = /* @__PURE__ */ He(0), i = nt, s = (o) => {
953
+ if (nt === i)
954
+ return o();
955
+ var l = L, f = nt;
956
+ Ie(null), Xn(i);
957
+ var c = o();
958
+ return Ie(l), Xn(f), c;
959
+ };
960
+ return r && n.set("length", /* @__PURE__ */ He(
961
+ /** @type {any[]} */
962
+ e.length
963
+ )), new Proxy(
964
+ /** @type {any} */
965
+ e,
966
+ {
967
+ defineProperty(o, l, f) {
968
+ (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Ua();
969
+ var c = n.get(l);
970
+ return c === void 0 ? s(() => {
971
+ var h = /* @__PURE__ */ He(f.value);
972
+ return n.set(l, h), h;
973
+ }) : P(c, f.value, !0), !0;
974
+ },
975
+ deleteProperty(o, l) {
976
+ var f = n.get(l);
977
+ if (f === void 0) {
978
+ if (l in o) {
979
+ const c = s(() => /* @__PURE__ */ He(re));
980
+ n.set(l, c), fn(a);
981
+ }
982
+ } else
983
+ P(f, re), fn(a);
984
+ return !0;
985
+ },
986
+ get(o, l, f) {
987
+ var p;
988
+ if (l === Be)
989
+ return e;
990
+ var c = n.get(l), h = l in o;
991
+ if (c === void 0 && (!h || (p = Vt(o, l)) != null && p.writable) && (c = s(() => {
992
+ var _ = ut(h ? o[l] : re), b = /* @__PURE__ */ He(_);
993
+ return b;
994
+ }), n.set(l, c)), c !== void 0) {
995
+ var d = u(c);
996
+ return d === re ? void 0 : d;
997
+ }
998
+ return Reflect.get(o, l, f);
999
+ },
1000
+ getOwnPropertyDescriptor(o, l) {
1001
+ var f = Reflect.getOwnPropertyDescriptor(o, l);
1002
+ if (f && "value" in f) {
1003
+ var c = n.get(l);
1004
+ c && (f.value = u(c));
1005
+ } else if (f === void 0) {
1006
+ var h = n.get(l), d = h == null ? void 0 : h.v;
1007
+ if (h !== void 0 && d !== re)
1008
+ return {
1009
+ enumerable: !0,
1010
+ configurable: !0,
1011
+ value: d,
1012
+ writable: !0
1013
+ };
1014
+ }
1015
+ return f;
1016
+ },
1017
+ has(o, l) {
1018
+ var d;
1019
+ if (l === Be)
1020
+ return !0;
1021
+ var f = n.get(l), c = f !== void 0 && f.v !== re || Reflect.has(o, l);
1022
+ if (f !== void 0 || B !== null && (!c || (d = Vt(o, l)) != null && d.writable)) {
1023
+ f === void 0 && (f = s(() => {
1024
+ var p = c ? ut(o[l]) : re, _ = /* @__PURE__ */ He(p);
1025
+ return _;
1026
+ }), n.set(l, f));
1027
+ var h = u(f);
1028
+ if (h === re)
1029
+ return !1;
1030
+ }
1031
+ return c;
1032
+ },
1033
+ set(o, l, f, c) {
1034
+ var y;
1035
+ var h = n.get(l), d = l in o;
1036
+ if (r && l === "length")
1037
+ for (var p = f; p < /** @type {Source<number>} */
1038
+ h.v; p += 1) {
1039
+ var _ = n.get(p + "");
1040
+ _ !== void 0 ? P(_, re) : p in o && (_ = s(() => /* @__PURE__ */ He(re)), n.set(p + "", _));
1041
+ }
1042
+ if (h === void 0)
1043
+ (!d || (y = Vt(o, l)) != null && y.writable) && (h = s(() => /* @__PURE__ */ He(void 0)), P(h, ut(f)), n.set(l, h));
1044
+ else {
1045
+ d = h.v !== re;
1046
+ var b = s(() => ut(f));
1047
+ P(h, b);
1048
+ }
1049
+ var v = Reflect.getOwnPropertyDescriptor(o, l);
1050
+ if (v != null && v.set && v.set.call(c, f), !d) {
1051
+ if (r && typeof l == "string") {
1052
+ var g = (
1053
+ /** @type {Source<number>} */
1054
+ n.get("length")
1055
+ ), k = Number(l);
1056
+ Number.isInteger(k) && k >= g.v && P(g, k + 1);
1057
+ }
1058
+ fn(a);
1059
+ }
1060
+ return !0;
1061
+ },
1062
+ ownKeys(o) {
1063
+ u(a);
1064
+ var l = Reflect.ownKeys(o).filter((h) => {
1065
+ var d = n.get(h);
1066
+ return d === void 0 || d.v !== re;
1067
+ });
1068
+ for (var [f, c] of n)
1069
+ c.v !== re && !(f in o) && l.push(f);
1070
+ return l;
1071
+ },
1072
+ setPrototypeOf() {
1073
+ Ha();
1074
+ }
1075
+ }
1076
+ );
1077
+ }
1078
+ function Gn(e) {
1079
+ try {
1080
+ if (e !== null && typeof e == "object" && Be in e)
1081
+ return e[Be];
1082
+ } catch {
1083
+ }
1084
+ return e;
1085
+ }
1086
+ function li(e, t) {
1087
+ return Object.is(Gn(e), Gn(t));
1088
+ }
1089
+ var oi, fi, ui;
1090
+ function tt(e = "") {
1091
+ return document.createTextNode(e);
1092
+ }
1093
+ // @__NO_SIDE_EFFECTS__
1094
+ function bt(e) {
1095
+ return (
1096
+ /** @type {TemplateNode | null} */
1097
+ fi.call(e)
1098
+ );
1099
+ }
1100
+ // @__NO_SIDE_EFFECTS__
1101
+ function Ft(e) {
1102
+ return (
1103
+ /** @type {TemplateNode | null} */
1104
+ ui.call(e)
1105
+ );
1106
+ }
1107
+ function T(e, t) {
1108
+ return /* @__PURE__ */ bt(e);
1109
+ }
1110
+ function wt(e, t = !1) {
1111
+ {
1112
+ var n = /* @__PURE__ */ bt(e);
1113
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Ft(n) : n;
1114
+ }
1115
+ }
1116
+ function F(e, t = 1, n = !1) {
1117
+ let r = e;
1118
+ for (; t--; )
1119
+ r = /** @type {TemplateNode} */
1120
+ /* @__PURE__ */ Ft(r);
1121
+ return r;
1122
+ }
1123
+ function di(e) {
1124
+ e.textContent = "";
1125
+ }
1126
+ function Or() {
1127
+ return !1;
1128
+ }
1129
+ function ci(e, t, n) {
1130
+ return (
1131
+ /** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
1132
+ document.createElementNS(cr, e, void 0)
1133
+ );
1134
+ }
1135
+ function vi(e, t) {
1136
+ if (t) {
1137
+ const n = document.body;
1138
+ e.autofocus = !0, $t(() => {
1139
+ document.activeElement === n && e.focus();
1140
+ });
1141
+ }
1142
+ }
1143
+ function jn(e) {
1144
+ var t = L, n = B;
1145
+ Ie(null), Ee(null);
1146
+ try {
1147
+ return e();
1148
+ } finally {
1149
+ Ie(t), Ee(n);
1150
+ }
1151
+ }
1152
+ function zr(e) {
1153
+ B === null && (L === null && Ba(), Na()), We && La();
1154
+ }
1155
+ function _i(e, t) {
1156
+ var n = t.last;
1157
+ n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1158
+ }
1159
+ function Re(e, t) {
1160
+ var n = B;
1161
+ n !== null && (n.f & de) !== 0 && (e |= de);
1162
+ var r = {
1163
+ ctx: ee,
1164
+ deps: null,
1165
+ nodes: null,
1166
+ f: e | se | me,
1167
+ first: null,
1168
+ fn: t,
1169
+ last: null,
1170
+ next: null,
1171
+ parent: n,
1172
+ b: n && n.b,
1173
+ prev: null,
1174
+ teardown: null,
1175
+ wv: 0,
1176
+ ac: null
1177
+ };
1178
+ N == null || N.register_created_effect(r);
1179
+ var a = r;
1180
+ if ((e & ht) !== 0)
1181
+ ft !== null ? ft.push(r) : Ct.ensure().schedule(r);
1182
+ else if (t !== null) {
1183
+ try {
1184
+ it(r);
1185
+ } catch (s) {
1186
+ throw ye(r), s;
1187
+ }
1188
+ a.deps === null && a.teardown === null && a.nodes === null && a.first === a.last && // either `null`, or a singular child
1189
+ (a.f & tn) === 0 && (a = a.first, (e & Fe) !== 0 && (e & At) !== 0 && a !== null && (a.f |= At));
1190
+ }
1191
+ if (a !== null && (a.parent = n, n !== null && _i(a, n), L !== null && (L.f & ae) !== 0 && (e & gt) === 0)) {
1192
+ var i = (
1193
+ /** @type {Derived} */
1194
+ L
1195
+ );
1196
+ (i.effects ?? (i.effects = [])).push(a);
1197
+ }
1198
+ return r;
1199
+ }
1200
+ function jr() {
1201
+ return L !== null && !Se;
1202
+ }
1203
+ function In(e) {
1204
+ const t = Re(Nt, null);
1205
+ return Z(t, J), t.teardown = e, t;
1206
+ }
1207
+ function Wn(e) {
1208
+ zr();
1209
+ var t = (
1210
+ /** @type {Effect} */
1211
+ B.f
1212
+ ), n = !L && (t & Ae) !== 0 && (t & st) === 0;
1213
+ if (n) {
1214
+ var r = (
1215
+ /** @type {ComponentContext} */
1216
+ ee
1217
+ );
1218
+ (r.e ?? (r.e = [])).push(e);
1219
+ } else
1220
+ return Ir(e);
1221
+ }
1222
+ function Ir(e) {
1223
+ return Re(ht | hr, e);
1224
+ }
1225
+ function hi(e) {
1226
+ return zr(), Re(Nt | hr, e);
1227
+ }
1228
+ function Rn(e) {
1229
+ return Re(ht, e);
1230
+ }
1231
+ function R(e, t) {
1232
+ var n = (
1233
+ /** @type {ComponentContextLegacy} */
1234
+ ee
1235
+ ), r = { effect: null, ran: !1, deps: e };
1236
+ n.l.$.push(r), r.effect = Mn(() => {
1237
+ if (e(), !r.ran) {
1238
+ r.ran = !0;
1239
+ var a = (
1240
+ /** @type {Effect} */
1241
+ B
1242
+ );
1243
+ try {
1244
+ Ee(a.parent), D(t);
1245
+ } finally {
1246
+ Ee(a);
1247
+ }
1248
+ }
1249
+ });
1250
+ }
1251
+ function G() {
1252
+ var e = (
1253
+ /** @type {ComponentContextLegacy} */
1254
+ ee
1255
+ );
1256
+ Mn(() => {
1257
+ for (var t of e.l.$) {
1258
+ t.deps();
1259
+ var n = t.effect;
1260
+ (n.f & J) !== 0 && n.deps !== null && Z(n, $e), mt(n) && it(n), t.ran = !1;
1261
+ }
1262
+ });
1263
+ }
1264
+ function gi(e) {
1265
+ return Re(nn | tn, e);
1266
+ }
1267
+ function Mn(e, t = 0) {
1268
+ return Re(Nt | t, e);
1269
+ }
1270
+ function M(e, t = [], n = [], r = []) {
1271
+ Tr(r, t, n, (a) => {
1272
+ Re(Nt, () => e(...a.map(u)));
1273
+ });
1274
+ }
1275
+ function Rr(e, t = 0) {
1276
+ var n = Re(Fe | t, e);
1277
+ return n;
1278
+ }
1279
+ function Mr(e, t = 0) {
1280
+ var n = Re($n | t, e);
1281
+ return n;
1282
+ }
1283
+ function at(e) {
1284
+ return Re(Ae | tn, e);
1285
+ }
1286
+ function Dr(e) {
1287
+ var t = e.teardown;
1288
+ if (t !== null) {
1289
+ const n = We, r = L;
1290
+ Zn(!0), Ie(null);
1291
+ try {
1292
+ t.call(null);
1293
+ } finally {
1294
+ Zn(n), Ie(r);
1295
+ }
1296
+ }
1297
+ }
1298
+ function Dn(e, t = !1) {
1299
+ var n = e.first;
1300
+ for (e.first = e.last = null; n !== null; ) {
1301
+ const a = n.ac;
1302
+ a !== null && jn(() => {
1303
+ a.abort(De);
1304
+ });
1305
+ var r = n.next;
1306
+ (n.f & gt) !== 0 ? n.parent = null : ye(n, t), n = r;
1307
+ }
1308
+ }
1309
+ function pi(e) {
1310
+ for (var t = e.first; t !== null; ) {
1311
+ var n = t.next;
1312
+ (t.f & Ae) === 0 && ye(t), t = n;
1313
+ }
1314
+ }
1315
+ function ye(e, t = !0) {
1316
+ var n = !1;
1317
+ (t || (e.f & ja) !== 0) && e.nodes !== null && e.nodes.end !== null && (bi(
1318
+ e.nodes.start,
1319
+ /** @type {TemplateNode} */
1320
+ e.nodes.end
1321
+ ), n = !0), Z(e, _n), Dn(e, t && !n), zt(e, 0);
1322
+ var r = e.nodes && e.nodes.t;
1323
+ if (r !== null)
1324
+ for (const i of r)
1325
+ i.stop();
1326
+ Dr(e), e.f ^= _n, e.f |= be;
1327
+ var a = e.parent;
1328
+ a !== null && a.first !== null && Lr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1329
+ }
1330
+ function bi(e, t) {
1331
+ for (; e !== null; ) {
1332
+ var n = e === t ? null : /* @__PURE__ */ Ft(e);
1333
+ e.remove(), e = n;
1334
+ }
1335
+ }
1336
+ function Lr(e) {
1337
+ var t = e.parent, n = e.prev, r = e.next;
1338
+ n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1339
+ }
1340
+ function Ln(e, t, n = !0) {
1341
+ var r = [];
1342
+ Nr(e, r, !0);
1343
+ var a = () => {
1344
+ n && ye(e), t && t();
1345
+ }, i = r.length;
1346
+ if (i > 0) {
1347
+ var s = () => --i || a();
1348
+ for (var o of r)
1349
+ o.out(s);
1350
+ } else
1351
+ a();
1352
+ }
1353
+ function Nr(e, t, n) {
1354
+ if ((e.f & de) === 0) {
1355
+ e.f ^= de;
1356
+ var r = e.nodes && e.nodes.t;
1357
+ if (r !== null)
1358
+ for (const o of r)
1359
+ (o.is_global || n) && t.push(o);
1360
+ for (var a = e.first; a !== null; ) {
1361
+ var i = a.next, s = (a.f & At) !== 0 || // If this is a branch effect without a block effect parent,
1362
+ // it means the parent block effect was pruned. In that case,
1363
+ // transparency information was transferred to the branch effect.
1364
+ (a.f & Ae) !== 0 && (e.f & Fe) !== 0;
1365
+ Nr(a, t, s ? n : !1), a = i;
1366
+ }
1367
+ }
1368
+ }
1369
+ function Nn(e) {
1370
+ Br(e, !0);
1371
+ }
1372
+ function Br(e, t) {
1373
+ if ((e.f & de) !== 0) {
1374
+ e.f ^= de, (e.f & J) === 0 && (Z(e, se), Ct.ensure().schedule(e));
1375
+ for (var n = e.first; n !== null; ) {
1376
+ var r = n.next, a = (n.f & At) !== 0 || (n.f & Ae) !== 0;
1377
+ Br(n, a ? t : !1), n = r;
1378
+ }
1379
+ var i = e.nodes && e.nodes.t;
1380
+ if (i !== null)
1381
+ for (const s of i)
1382
+ (s.is_global || t) && s.in();
1383
+ }
1384
+ }
1385
+ function Fr(e, t) {
1386
+ if (e.nodes)
1387
+ for (var n = e.nodes.start, r = e.nodes.end; n !== null; ) {
1388
+ var a = n === r ? null : /* @__PURE__ */ Ft(n);
1389
+ t.append(n), n = a;
1390
+ }
1391
+ }
1392
+ let Wt = !1, We = !1;
1393
+ function Zn(e) {
1394
+ We = e;
1395
+ }
1396
+ let L = null, Se = !1;
1397
+ function Ie(e) {
1398
+ L = e;
1399
+ }
1400
+ let B = null;
1401
+ function Ee(e) {
1402
+ B = e;
1403
+ }
1404
+ let ke = null;
1405
+ function wi(e) {
1406
+ L !== null && (ke === null ? ke = [e] : ke.push(e));
1407
+ }
1408
+ let ue = null, he = 0, we = null;
1409
+ function mi(e) {
1410
+ we = e;
1411
+ }
1412
+ let qr = 1, Xe = 0, nt = Xe;
1413
+ function Xn(e) {
1414
+ nt = e;
1415
+ }
1416
+ function Ur() {
1417
+ return ++qr;
1418
+ }
1419
+ function mt(e) {
1420
+ var t = e.f;
1421
+ if ((t & se) !== 0)
1422
+ return !0;
1423
+ if (t & ae && (e.f &= ~rt), (t & $e) !== 0) {
1424
+ for (var n = (
1425
+ /** @type {Value[]} */
1426
+ e.deps
1427
+ ), r = n.length, a = 0; a < r; a++) {
1428
+ var i = n[a];
1429
+ if (mt(
1430
+ /** @type {Derived} */
1431
+ i
1432
+ ) && Ar(
1433
+ /** @type {Derived} */
1434
+ i
1435
+ ), i.wv > e.wv)
1436
+ return !0;
1437
+ }
1438
+ (t & me) !== 0 && // During time traveling we don't want to reset the status so that
1439
+ // traversal of the graph in the other batches still happens
1440
+ ie === null && Z(e, J);
1441
+ }
1442
+ return !1;
1443
+ }
1444
+ function Hr(e, t, n = !0) {
1445
+ var r = e.reactions;
1446
+ if (r !== null && !(ke !== null && _t.call(ke, e)))
1447
+ for (var a = 0; a < r.length; a++) {
1448
+ var i = r[a];
1449
+ (i.f & ae) !== 0 ? Hr(
1450
+ /** @type {Derived} */
1451
+ i,
1452
+ t,
1453
+ !1
1454
+ ) : t === i && (n ? Z(i, se) : (i.f & J) !== 0 && Z(i, $e), On(
1455
+ /** @type {Effect} */
1456
+ i
1457
+ ));
1458
+ }
1459
+ }
1460
+ function Vr(e) {
1461
+ var b;
1462
+ var t = ue, n = he, r = we, a = L, i = ke, s = ee, o = Se, l = nt, f = e.f;
1463
+ ue = /** @type {null | Value[]} */
1464
+ null, he = 0, we = null, L = (f & (Ae | gt)) === 0 ? e : null, ke = null, Zt(e.ctx), Se = !1, nt = ++Xe, e.ac !== null && (jn(() => {
1465
+ e.ac.abort(De);
1466
+ }), e.ac = null);
1467
+ try {
1468
+ e.f |= gn;
1469
+ var c = (
1470
+ /** @type {Function} */
1471
+ e.fn
1472
+ ), h = c();
1473
+ e.f |= st;
1474
+ var d = e.deps, p = N == null ? void 0 : N.is_fork;
1475
+ if (ue !== null) {
1476
+ var _;
1477
+ if (p || zt(e, he), d !== null && he > 0)
1478
+ for (d.length = he + ue.length, _ = 0; _ < ue.length; _++)
1479
+ d[he + _] = ue[_];
1480
+ else
1481
+ e.deps = d = ue;
1482
+ if (jr() && (e.f & me) !== 0)
1483
+ for (_ = he; _ < d.length; _++)
1484
+ ((b = d[_]).reactions ?? (b.reactions = [])).push(e);
1485
+ } else !p && d !== null && he < d.length && (zt(e, he), d.length = he);
1486
+ if (Bt() && we !== null && !Se && d !== null && (e.f & (ae | $e | se)) === 0)
1487
+ for (_ = 0; _ < /** @type {Source[]} */
1488
+ we.length; _++)
1489
+ Hr(
1490
+ we[_],
1491
+ /** @type {Effect} */
1492
+ e
1493
+ );
1494
+ if (a !== null && a !== e) {
1495
+ if (Xe++, a.deps !== null)
1496
+ for (let v = 0; v < n; v += 1)
1497
+ a.deps[v].rv = Xe;
1498
+ if (t !== null)
1499
+ for (const v of t)
1500
+ v.rv = Xe;
1501
+ we !== null && (r === null ? r = we : r.push(.../** @type {Source[]} */
1502
+ we));
1503
+ }
1504
+ return (e.f & Ye) !== 0 && (e.f ^= Ye), h;
1505
+ } catch (v) {
1506
+ return Wa(v);
1507
+ } finally {
1508
+ e.f ^= gn, ue = t, he = n, we = r, L = a, ke = i, Zt(s), Se = o, nt = l;
1509
+ }
1510
+ }
1511
+ function yi(e, t) {
1512
+ let n = t.reactions;
1513
+ if (n !== null) {
1514
+ var r = Sa.call(n, e);
1515
+ if (r !== -1) {
1516
+ var a = n.length - 1;
1517
+ a === 0 ? n = t.reactions = null : (n[r] = n[a], n.pop());
1518
+ }
1519
+ }
1520
+ if (n === null && (t.f & ae) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1521
+ // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1522
+ // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1523
+ (ue === null || !_t.call(ue, t))) {
1524
+ var i = (
1525
+ /** @type {Derived} */
1526
+ t
1527
+ );
1528
+ (i.f & me) !== 0 && (i.f ^= me, i.f &= ~rt), Cn(i), ii(i), zt(i, 0);
1529
+ }
1530
+ }
1531
+ function zt(e, t) {
1532
+ var n = e.deps;
1533
+ if (n !== null)
1534
+ for (var r = t; r < n.length; r++)
1535
+ yi(e, n[r]);
1536
+ }
1537
+ function it(e) {
1538
+ var t = e.f;
1539
+ if ((t & be) === 0) {
1540
+ Z(e, J);
1541
+ var n = B, r = Wt;
1542
+ B = e, Wt = !0;
1543
+ try {
1544
+ (t & (Fe | $n)) !== 0 ? pi(e) : Dn(e), Dr(e);
1545
+ var a = Vr(e);
1546
+ e.teardown = typeof a == "function" ? a : null, e.wv = qr;
1547
+ var i;
1548
+ Ta && ca && (e.f & se) !== 0 && e.deps;
1549
+ } finally {
1550
+ Wt = r, B = n;
1551
+ }
1552
+ }
1553
+ }
1554
+ function u(e) {
1555
+ var t = e.f, n = (t & ae) !== 0;
1556
+ if (L !== null && !Se) {
1557
+ var r = B !== null && (B.f & be) !== 0;
1558
+ if (!r && (ke === null || !_t.call(ke, e))) {
1559
+ var a = L.deps;
1560
+ if ((L.f & gn) !== 0)
1561
+ e.rv < Xe && (e.rv = Xe, ue === null && a !== null && a[he] === e ? he++ : ue === null ? ue = [e] : ue.push(e));
1562
+ else {
1563
+ (L.deps ?? (L.deps = [])).push(e);
1564
+ var i = e.reactions;
1565
+ i === null ? e.reactions = [L] : _t.call(i, L) || i.push(L);
1566
+ }
1567
+ }
1568
+ }
1569
+ if (We && Ge.has(e))
1570
+ return Ge.get(e);
1571
+ if (n) {
1572
+ var s = (
1573
+ /** @type {Derived} */
1574
+ e
1575
+ );
1576
+ if (We) {
1577
+ var o = s.v;
1578
+ return ((s.f & J) === 0 && s.reactions !== null || Yr(s)) && (o = zn(s)), Ge.set(s, o), o;
1579
+ }
1580
+ var l = (s.f & me) === 0 && !Se && L !== null && (Wt || (L.f & me) !== 0), f = (s.f & st) === 0;
1581
+ mt(s) && (l && (s.f |= me), Ar(s)), l && !f && ($r(s), Kr(s));
1582
+ }
1583
+ if (ie != null && ie.has(e))
1584
+ return ie.get(e);
1585
+ if ((e.f & Ye) !== 0)
1586
+ throw e.v;
1587
+ return e.v;
1588
+ }
1589
+ function Kr(e) {
1590
+ if (e.f |= me, e.deps !== null)
1591
+ for (const t of e.deps)
1592
+ (t.reactions ?? (t.reactions = [])).push(e), (t.f & ae) !== 0 && (t.f & me) === 0 && ($r(
1593
+ /** @type {Derived} */
1594
+ t
1595
+ ), Kr(
1596
+ /** @type {Derived} */
1597
+ t
1598
+ ));
1599
+ }
1600
+ function Yr(e) {
1601
+ if (e.v === re) return !0;
1602
+ if (e.deps === null) return !1;
1603
+ for (const t of e.deps)
1604
+ if (Ge.has(t) || (t.f & ae) !== 0 && Yr(
1605
+ /** @type {Derived} */
1606
+ t
1607
+ ))
1608
+ return !0;
1609
+ return !1;
1610
+ }
1611
+ function D(e) {
1612
+ var t = Se;
1613
+ try {
1614
+ return Se = !0, e();
1615
+ } finally {
1616
+ Se = t;
1617
+ }
1618
+ }
1619
+ function A(e) {
1620
+ if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
1621
+ if (Be in e)
1622
+ kn(e);
1623
+ else if (!Array.isArray(e))
1624
+ for (let t in e) {
1625
+ const n = e[t];
1626
+ typeof n == "object" && n && Be in n && kn(n);
1627
+ }
1628
+ }
1629
+ }
1630
+ function kn(e, t = /* @__PURE__ */ new Set()) {
1631
+ if (typeof e == "object" && e !== null && // We don't want to traverse DOM elements
1632
+ !(e instanceof EventTarget) && !t.has(e)) {
1633
+ t.add(e), e instanceof Date && e.getTime();
1634
+ for (let r in e)
1635
+ try {
1636
+ kn(e[r], t);
1637
+ } catch {
1638
+ }
1639
+ const n = An(e);
1640
+ if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1641
+ const r = vr(n);
1642
+ for (let a in r) {
1643
+ const i = r[a].get;
1644
+ if (i)
1645
+ try {
1646
+ i.call(e);
1647
+ } catch {
1648
+ }
1649
+ }
1650
+ }
1651
+ }
1652
+ }
1653
+ const Je = Symbol("events"), ki = /* @__PURE__ */ new Set(), Ei = /* @__PURE__ */ new Set();
1654
+ function Gr(e, t, n, r = {}) {
1655
+ function a(i) {
1656
+ if (r.capture || Si.call(t, i), !i.cancelBubble)
1657
+ return jn(() => n == null ? void 0 : n.call(this, i));
1658
+ }
1659
+ return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? $t(() => {
1660
+ t.addEventListener(e, a, r);
1661
+ }) : t.addEventListener(e, a, r), a;
1662
+ }
1663
+ function W(e, t, n, r, a) {
1664
+ var i = { capture: r, passive: a }, s = Gr(e, t, n, i);
1665
+ (t === document.body || // @ts-ignore
1666
+ t === window || // @ts-ignore
1667
+ t === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
1668
+ t instanceof HTMLMediaElement) && In(() => {
1669
+ t.removeEventListener(e, s, i);
1670
+ });
1671
+ }
1672
+ function xi(e, t, n) {
1673
+ (t[Je] ?? (t[Je] = {}))[e] = n;
1674
+ }
1675
+ function Ti(e) {
1676
+ for (var t = 0; t < e.length; t++)
1677
+ ki.add(e[t]);
1678
+ for (var n of Ei)
1679
+ n(e);
1680
+ }
1681
+ let Jn = null;
1682
+ function Si(e) {
1683
+ var v, g;
1684
+ var t = this, n = (
1685
+ /** @type {Node} */
1686
+ t.ownerDocument
1687
+ ), r = e.type, a = ((v = e.composedPath) == null ? void 0 : v.call(e)) || [], i = (
1688
+ /** @type {null | Element} */
1689
+ a[0] || e.target
1690
+ );
1691
+ Jn = e;
1692
+ var s = 0, o = Jn === e && e[Je];
1693
+ if (o) {
1694
+ var l = a.indexOf(o);
1695
+ if (l !== -1 && (t === document || t === /** @type {any} */
1696
+ window)) {
1697
+ e[Je] = t;
1698
+ return;
1699
+ }
1700
+ var f = a.indexOf(t);
1701
+ if (f === -1)
1702
+ return;
1703
+ l <= f && (s = l);
1704
+ }
1705
+ if (i = /** @type {Element} */
1706
+ a[s] || e.target, i !== t) {
1707
+ Aa(e, "currentTarget", {
1708
+ configurable: !0,
1709
+ get() {
1710
+ return i || n;
1711
+ }
1712
+ });
1713
+ var c = L, h = B;
1714
+ Ie(null), Ee(null);
1715
+ try {
1716
+ for (var d, p = []; i !== null; ) {
1717
+ var _ = i.assignedSlot || i.parentNode || /** @type {any} */
1718
+ i.host || null;
1719
+ try {
1720
+ var b = (g = i[Je]) == null ? void 0 : g[r];
1721
+ b != null && (!/** @type {any} */
1722
+ i.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1723
+ // -> the target could not have been disabled because it emits the event in the first place
1724
+ e.target === i) && b.call(i, e);
1725
+ } catch (k) {
1726
+ d ? p.push(k) : d = k;
1727
+ }
1728
+ if (e.cancelBubble || _ === t || _ === null)
1729
+ break;
1730
+ i = _;
1731
+ }
1732
+ if (d) {
1733
+ for (let k of p)
1734
+ queueMicrotask(() => {
1735
+ throw k;
1736
+ });
1737
+ throw d;
1738
+ }
1739
+ } finally {
1740
+ e[Je] = t, delete e.currentTarget, Ie(c), Ee(h);
1741
+ }
1742
+ }
1743
+ }
1744
+ var or;
1745
+ const un = (
1746
+ // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
1747
+ ((or = globalThis == null ? void 0 : globalThis.window) == null ? void 0 : or.trustedTypes) && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
1748
+ /** @param {string} html */
1749
+ createHTML: (e) => e
1750
+ })
1751
+ );
1752
+ function Ai(e) {
1753
+ return (
1754
+ /** @type {string} */
1755
+ (un == null ? void 0 : un.createHTML(e)) ?? e
1756
+ );
1757
+ }
1758
+ function Wr(e) {
1759
+ var t = ci("template");
1760
+ return t.innerHTML = Ai(e.replaceAll("<!>", "<!---->")), t.content;
1761
+ }
1762
+ function jt(e, t) {
1763
+ var n = (
1764
+ /** @type {Effect} */
1765
+ B
1766
+ );
1767
+ n.nodes === null && (n.nodes = { start: e, end: t, a: null, t: null });
1768
+ }
1769
+ // @__NO_SIDE_EFFECTS__
1770
+ function $(e, t) {
1771
+ var n = (t & ka) !== 0, r = (t & Ea) !== 0, a, i = !e.startsWith("<!>");
1772
+ return () => {
1773
+ a === void 0 && (a = Wr(i ? e : "<!>" + e), n || (a = /** @type {TemplateNode} */
1774
+ /* @__PURE__ */ bt(a)));
1775
+ var s = (
1776
+ /** @type {TemplateNode} */
1777
+ r || oi ? document.importNode(a, !0) : a.cloneNode(!0)
1778
+ );
1779
+ if (n) {
1780
+ var o = (
1781
+ /** @type {TemplateNode} */
1782
+ /* @__PURE__ */ bt(s)
1783
+ ), l = (
1784
+ /** @type {TemplateNode} */
1785
+ s.lastChild
1786
+ );
1787
+ jt(o, l);
1788
+ } else
1789
+ jt(s, s);
1790
+ return s;
1791
+ };
1792
+ }
1793
+ // @__NO_SIDE_EFFECTS__
1794
+ function $i(e, t, n = "svg") {
1795
+ var r = !e.startsWith("<!>"), a = `<${n}>${r ? e : "<!>" + e}</${n}>`, i;
1796
+ return () => {
1797
+ if (!i) {
1798
+ var s = (
1799
+ /** @type {DocumentFragment} */
1800
+ Wr(a)
1801
+ ), o = (
1802
+ /** @type {Element} */
1803
+ /* @__PURE__ */ bt(s)
1804
+ );
1805
+ i = /** @type {Element} */
1806
+ /* @__PURE__ */ bt(o);
1807
+ }
1808
+ var l = (
1809
+ /** @type {TemplateNode} */
1810
+ i.cloneNode(!0)
1811
+ );
1812
+ return jt(l, l), l;
1813
+ };
1814
+ }
1815
+ // @__NO_SIDE_EFFECTS__
1816
+ function Zr(e, t) {
1817
+ return /* @__PURE__ */ $i(e, t, "svg");
1818
+ }
1819
+ function Xr(e = "") {
1820
+ {
1821
+ var t = tt(e + "");
1822
+ return jt(t, t), t;
1823
+ }
1824
+ }
1825
+ function qt() {
1826
+ var e = document.createDocumentFragment(), t = document.createComment(""), n = tt();
1827
+ return e.append(t, n), jt(t, n), e;
1828
+ }
1829
+ function S(e, t) {
1830
+ e !== null && e.before(
1831
+ /** @type {Node} */
1832
+ t
1833
+ );
1834
+ }
1835
+ function Ci(e) {
1836
+ return e.endsWith("capture") && e !== "gotpointercapture" && e !== "lostpointercapture";
1837
+ }
1838
+ const Pi = [
1839
+ "beforeinput",
1840
+ "click",
1841
+ "change",
1842
+ "dblclick",
1843
+ "contextmenu",
1844
+ "focusin",
1845
+ "focusout",
1846
+ "input",
1847
+ "keydown",
1848
+ "keyup",
1849
+ "mousedown",
1850
+ "mousemove",
1851
+ "mouseout",
1852
+ "mouseover",
1853
+ "mouseup",
1854
+ "pointerdown",
1855
+ "pointermove",
1856
+ "pointerout",
1857
+ "pointerover",
1858
+ "pointerup",
1859
+ "touchend",
1860
+ "touchmove",
1861
+ "touchstart"
1862
+ ];
1863
+ function Oi(e) {
1864
+ return Pi.includes(e);
1865
+ }
1866
+ const zi = {
1867
+ // no `class: 'className'` because we handle that separately
1868
+ formnovalidate: "formNoValidate",
1869
+ ismap: "isMap",
1870
+ nomodule: "noModule",
1871
+ playsinline: "playsInline",
1872
+ readonly: "readOnly",
1873
+ defaultvalue: "defaultValue",
1874
+ defaultchecked: "defaultChecked",
1875
+ srcobject: "srcObject",
1876
+ novalidate: "noValidate",
1877
+ allowfullscreen: "allowFullscreen",
1878
+ disablepictureinpicture: "disablePictureInPicture",
1879
+ disableremoteplayback: "disableRemotePlayback"
1880
+ };
1881
+ function ji(e) {
1882
+ return e = e.toLowerCase(), zi[e] ?? e;
1883
+ }
1884
+ function V(e, t) {
1885
+ var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1886
+ n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = `${n}`);
1887
+ }
1888
+ var Te, Oe, pe, et, Mt, Dt, en;
1889
+ class Ii {
1890
+ /**
1891
+ * @param {TemplateNode} anchor
1892
+ * @param {boolean} transition
1893
+ */
1894
+ constructor(t, n = !0) {
1895
+ /** @type {TemplateNode} */
1896
+ qe(this, "anchor");
1897
+ /** @type {Map<Batch, Key>} */
1898
+ X(this, Te, /* @__PURE__ */ new Map());
1899
+ /**
1900
+ * Map of keys to effects that are currently rendered in the DOM.
1901
+ * These effects are visible and actively part of the document tree.
1902
+ * Example:
1903
+ * ```
1904
+ * {#if condition}
1905
+ * foo
1906
+ * {:else}
1907
+ * bar
1908
+ * {/if}
1909
+ * ```
1910
+ * Can result in the entries `true->Effect` and `false->Effect`
1911
+ * @type {Map<Key, Effect>}
1912
+ */
1913
+ X(this, Oe, /* @__PURE__ */ new Map());
1914
+ /**
1915
+ * Similar to #onscreen with respect to the keys, but contains branches that are not yet
1916
+ * in the DOM, because their insertion is deferred.
1917
+ * @type {Map<Key, Branch>}
1918
+ */
1919
+ X(this, pe, /* @__PURE__ */ new Map());
1920
+ /**
1921
+ * Keys of effects that are currently outroing
1922
+ * @type {Set<Key>}
1923
+ */
1924
+ X(this, et, /* @__PURE__ */ new Set());
1925
+ /**
1926
+ * Whether to pause (i.e. outro) on change, or destroy immediately.
1927
+ * This is necessary for `<svelte:element>`
1928
+ */
1929
+ X(this, Mt, !0);
1930
+ /**
1931
+ * @param {Batch} batch
1932
+ */
1933
+ X(this, Dt, (t) => {
1934
+ if (x(this, Te).has(t)) {
1935
+ var n = (
1936
+ /** @type {Key} */
1937
+ x(this, Te).get(t)
1938
+ ), r = x(this, Oe).get(n);
1939
+ if (r)
1940
+ Nn(r), x(this, et).delete(n);
1941
+ else {
1942
+ var a = x(this, pe).get(n);
1943
+ a && (x(this, Oe).set(n, a.effect), x(this, pe).delete(n), a.fragment.lastChild.remove(), this.anchor.before(a.fragment), r = a.effect);
1944
+ }
1945
+ for (const [i, s] of x(this, Te)) {
1946
+ if (x(this, Te).delete(i), i === t)
1947
+ break;
1948
+ const o = x(this, pe).get(s);
1949
+ o && (ye(o.effect), x(this, pe).delete(s));
1950
+ }
1951
+ for (const [i, s] of x(this, Oe)) {
1952
+ if (i === n || x(this, et).has(i)) continue;
1953
+ const o = () => {
1954
+ if (Array.from(x(this, Te).values()).includes(i)) {
1955
+ var f = document.createDocumentFragment();
1956
+ Fr(s, f), f.append(tt()), x(this, pe).set(i, { effect: s, fragment: f });
1957
+ } else
1958
+ ye(s);
1959
+ x(this, et).delete(i), x(this, Oe).delete(i);
1960
+ };
1961
+ x(this, Mt) || !r ? (x(this, et).add(i), Ln(s, o, !1)) : o();
1962
+ }
1963
+ }
1964
+ });
1965
+ /**
1966
+ * @param {Batch} batch
1967
+ */
1968
+ X(this, en, (t) => {
1969
+ x(this, Te).delete(t);
1970
+ const n = Array.from(x(this, Te).values());
1971
+ for (const [r, a] of x(this, pe))
1972
+ n.includes(r) || (ye(a.effect), x(this, pe).delete(r));
1973
+ });
1974
+ this.anchor = t, Ze(this, Mt, n);
1975
+ }
1976
+ /**
1977
+ *
1978
+ * @param {any} key
1979
+ * @param {null | ((target: TemplateNode) => void)} fn
1980
+ */
1981
+ ensure(t, n) {
1982
+ var r = (
1983
+ /** @type {Batch} */
1984
+ N
1985
+ ), a = Or();
1986
+ if (n && !x(this, Oe).has(t) && !x(this, pe).has(t))
1987
+ if (a) {
1988
+ var i = document.createDocumentFragment(), s = tt();
1989
+ i.append(s), x(this, pe).set(t, {
1990
+ effect: at(() => n(s)),
1991
+ fragment: i
1992
+ });
1993
+ } else
1994
+ x(this, Oe).set(
1995
+ t,
1996
+ at(() => n(this.anchor))
1997
+ );
1998
+ if (x(this, Te).set(r, t), a) {
1999
+ for (const [o, l] of x(this, Oe))
2000
+ o === t ? r.unskip_effect(l) : r.skip_effect(l);
2001
+ for (const [o, l] of x(this, pe))
2002
+ o === t ? r.unskip_effect(l.effect) : r.skip_effect(l.effect);
2003
+ r.oncommit(x(this, Dt)), r.ondiscard(x(this, en));
2004
+ } else
2005
+ x(this, Dt).call(this, r);
2006
+ }
2007
+ }
2008
+ Te = new WeakMap(), Oe = new WeakMap(), pe = new WeakMap(), et = new WeakMap(), Mt = new WeakMap(), Dt = new WeakMap(), en = new WeakMap();
2009
+ function Y(e, t, n = !1) {
2010
+ var r = new Ii(e), a = n ? At : 0;
2011
+ function i(s, o) {
2012
+ r.ensure(s, o);
2013
+ }
2014
+ Rr(() => {
2015
+ var s = !1;
2016
+ t((o, l = 0) => {
2017
+ s = !0, i(l, o);
2018
+ }), s || i(-1, null);
2019
+ }, a);
2020
+ }
2021
+ function Ri(e, t) {
2022
+ return t;
2023
+ }
2024
+ function Mi(e, t, n) {
2025
+ for (var r = [], a = t.length, i, s = t.length, o = 0; o < a; o++) {
2026
+ let h = t[o];
2027
+ Ln(
2028
+ h,
2029
+ () => {
2030
+ if (i) {
2031
+ if (i.pending.delete(h), i.done.add(h), i.pending.size === 0) {
2032
+ var d = (
2033
+ /** @type {Set<EachOutroGroup>} */
2034
+ e.outrogroups
2035
+ );
2036
+ En(e, Sn(i.done)), d.delete(i), d.size === 0 && (e.outrogroups = null);
2037
+ }
2038
+ } else
2039
+ s -= 1;
2040
+ },
2041
+ !1
2042
+ );
2043
+ }
2044
+ if (s === 0) {
2045
+ var l = r.length === 0 && n !== null;
2046
+ if (l) {
2047
+ var f = (
2048
+ /** @type {Element} */
2049
+ n
2050
+ ), c = (
2051
+ /** @type {Element} */
2052
+ f.parentNode
2053
+ );
2054
+ di(c), c.append(f), e.items.clear();
2055
+ }
2056
+ En(e, t, !l);
2057
+ } else
2058
+ i = {
2059
+ pending: new Set(t),
2060
+ done: /* @__PURE__ */ new Set()
2061
+ }, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(i);
2062
+ }
2063
+ function En(e, t, n = !0) {
2064
+ var r;
2065
+ if (e.pending.size > 0) {
2066
+ r = /* @__PURE__ */ new Set();
2067
+ for (const s of e.pending.values())
2068
+ for (const o of s)
2069
+ r.add(
2070
+ /** @type {EachItem} */
2071
+ e.items.get(o).e
2072
+ );
2073
+ }
2074
+ for (var a = 0; a < t.length; a++) {
2075
+ var i = t[a];
2076
+ if (r != null && r.has(i)) {
2077
+ i.f |= ze;
2078
+ const s = document.createDocumentFragment();
2079
+ Fr(i, s);
2080
+ } else
2081
+ ye(t[a], n);
2082
+ }
2083
+ }
2084
+ var Qn;
2085
+ function je(e, t, n, r, a, i = null) {
2086
+ var s = e, o = /* @__PURE__ */ new Map(), l = (t & ur) !== 0;
2087
+ if (l) {
2088
+ var f = (
2089
+ /** @type {Element} */
2090
+ e
2091
+ );
2092
+ s = f.appendChild(tt());
2093
+ }
2094
+ var c = null, h = /* @__PURE__ */ Pt(() => {
2095
+ var y = n();
2096
+ return Tn(y) ? y : y == null ? [] : Sn(y);
2097
+ }), d, p = /* @__PURE__ */ new Map(), _ = !0;
2098
+ function b(y) {
2099
+ (k.effect.f & be) === 0 && (k.pending.delete(y), k.fallback = c, Di(k, d, s, t, r), c !== null && (d.length === 0 ? (c.f & ze) === 0 ? Nn(c) : (c.f ^= ze, St(c, null, s)) : Ln(c, () => {
2100
+ c = null;
2101
+ })));
2102
+ }
2103
+ function v(y) {
2104
+ k.pending.delete(y);
2105
+ }
2106
+ var g = Rr(() => {
2107
+ d = /** @type {V[]} */
2108
+ u(h);
2109
+ for (var y = d.length, w = /* @__PURE__ */ new Set(), E = (
2110
+ /** @type {Batch} */
2111
+ N
2112
+ ), C = Or(), j = 0; j < y; j += 1) {
2113
+ var ne = d[j], ce = r(ne, j), fe = _ ? null : o.get(ce);
2114
+ fe ? (fe.v && Ot(fe.v, ne), fe.i && Ot(fe.i, j), C && E.unskip_effect(fe.e)) : (fe = Li(
2115
+ o,
2116
+ _ ? s : Qn ?? (Qn = tt()),
2117
+ ne,
2118
+ ce,
2119
+ j,
2120
+ a,
2121
+ t,
2122
+ n
2123
+ ), _ || (fe.e.f |= ze), o.set(ce, fe)), w.add(ce);
2124
+ }
2125
+ if (y === 0 && i && !c && (_ ? c = at(() => i(s)) : (c = at(() => i(Qn ?? (Qn = tt()))), c.f |= ze)), y > w.size && Da(), !_)
2126
+ if (p.set(E, w), C) {
2127
+ for (const [lt, ve] of o)
2128
+ w.has(lt) || E.skip_effect(ve.e);
2129
+ E.oncommit(b), E.ondiscard(v);
2130
+ } else
2131
+ b(E);
2132
+ u(h);
2133
+ }), k = { effect: g, items: o, pending: p, outrogroups: null, fallback: c };
2134
+ _ = !1;
2135
+ }
2136
+ function Et(e) {
2137
+ for (; e !== null && (e.f & Ae) === 0; )
2138
+ e = e.next;
2139
+ return e;
2140
+ }
2141
+ function Di(e, t, n, r, a) {
2142
+ var fe, lt, ve, yt, kt, Ut, Bn, Fn, qn;
2143
+ var i = (r & ga) !== 0, s = t.length, o = e.items, l = Et(e.effect.first), f, c = null, h, d = [], p = [], _, b, v, g;
2144
+ if (i)
2145
+ for (g = 0; g < s; g += 1)
2146
+ _ = t[g], b = a(_, g), v = /** @type {EachItem} */
2147
+ o.get(b).e, (v.f & ze) === 0 && ((lt = (fe = v.nodes) == null ? void 0 : fe.a) == null || lt.measure(), (h ?? (h = /* @__PURE__ */ new Set())).add(v));
2148
+ for (g = 0; g < s; g += 1) {
2149
+ if (_ = t[g], b = a(_, g), v = /** @type {EachItem} */
2150
+ o.get(b).e, e.outrogroups !== null)
2151
+ for (const Me of e.outrogroups)
2152
+ Me.pending.delete(v), Me.done.delete(v);
2153
+ if ((v.f & de) !== 0 && (Nn(v), i && ((yt = (ve = v.nodes) == null ? void 0 : ve.a) == null || yt.unfix(), (h ?? (h = /* @__PURE__ */ new Set())).delete(v))), (v.f & ze) !== 0)
2154
+ if (v.f ^= ze, v === l)
2155
+ St(v, null, n);
2156
+ else {
2157
+ var k = c ? c.next : l;
2158
+ v === e.effect.last && (e.effect.last = v.prev), v.prev && (v.prev.next = v.next), v.next && (v.next.prev = v.prev), Ve(e, c, v), Ve(e, v, k), St(v, k, n), c = v, d = [], p = [], l = Et(c.next);
2159
+ continue;
2160
+ }
2161
+ if (v !== l) {
2162
+ if (f !== void 0 && f.has(v)) {
2163
+ if (d.length < p.length) {
2164
+ var y = p[0], w;
2165
+ c = y.prev;
2166
+ var E = d[0], C = d[d.length - 1];
2167
+ for (w = 0; w < d.length; w += 1)
2168
+ St(d[w], y, n);
2169
+ for (w = 0; w < p.length; w += 1)
2170
+ f.delete(p[w]);
2171
+ Ve(e, E.prev, C.next), Ve(e, c, E), Ve(e, C, y), l = y, c = C, g -= 1, d = [], p = [];
2172
+ } else
2173
+ f.delete(v), St(v, l, n), Ve(e, v.prev, v.next), Ve(e, v, c === null ? e.effect.first : c.next), Ve(e, c, v), c = v;
2174
+ continue;
2175
+ }
2176
+ for (d = [], p = []; l !== null && l !== v; )
2177
+ (f ?? (f = /* @__PURE__ */ new Set())).add(l), p.push(l), l = Et(l.next);
2178
+ if (l === null)
2179
+ continue;
2180
+ }
2181
+ (v.f & ze) === 0 && d.push(v), c = v, l = Et(v.next);
2182
+ }
2183
+ if (e.outrogroups !== null) {
2184
+ for (const Me of e.outrogroups)
2185
+ Me.pending.size === 0 && (En(e, Sn(Me.done)), (kt = e.outrogroups) == null || kt.delete(Me));
2186
+ e.outrogroups.size === 0 && (e.outrogroups = null);
2187
+ }
2188
+ if (l !== null || f !== void 0) {
2189
+ var j = [];
2190
+ if (f !== void 0)
2191
+ for (v of f)
2192
+ (v.f & de) === 0 && j.push(v);
2193
+ for (; l !== null; )
2194
+ (l.f & de) === 0 && l !== e.fallback && j.push(l), l = Et(l.next);
2195
+ var ne = j.length;
2196
+ if (ne > 0) {
2197
+ var ce = (r & ur) !== 0 && s === 0 ? n : null;
2198
+ if (i) {
2199
+ for (g = 0; g < ne; g += 1)
2200
+ (Bn = (Ut = j[g].nodes) == null ? void 0 : Ut.a) == null || Bn.measure();
2201
+ for (g = 0; g < ne; g += 1)
2202
+ (qn = (Fn = j[g].nodes) == null ? void 0 : Fn.a) == null || qn.fix();
2203
+ }
2204
+ Mi(e, j, ce);
2205
+ }
2206
+ }
2207
+ i && $t(() => {
2208
+ var Me, Un;
2209
+ if (h !== void 0)
2210
+ for (v of h)
2211
+ (Un = (Me = v.nodes) == null ? void 0 : Me.a) == null || Un.apply();
2212
+ });
2213
+ }
2214
+ function Li(e, t, n, r, a, i, s, o) {
2215
+ var l = (s & _a) !== 0 ? (s & pa) === 0 ? /* @__PURE__ */ z(n, !1, !1) : pt(n) : null, f = (s & ha) !== 0 ? pt(a) : null;
2216
+ return {
2217
+ v: l,
2218
+ i: f,
2219
+ e: at(() => (i(t, l ?? n, f ?? a, o), () => {
2220
+ e.delete(r);
2221
+ }))
2222
+ };
2223
+ }
2224
+ function St(e, t, n) {
2225
+ if (e.nodes)
2226
+ for (var r = e.nodes.start, a = e.nodes.end, i = t && (t.f & ze) === 0 ? (
2227
+ /** @type {EffectNodes} */
2228
+ t.nodes.start
2229
+ ) : n; r !== null; ) {
2230
+ var s = (
2231
+ /** @type {TemplateNode} */
2232
+ /* @__PURE__ */ Ft(r)
2233
+ );
2234
+ if (i.before(r), r === a)
2235
+ return;
2236
+ r = s;
2237
+ }
2238
+ }
2239
+ function Ve(e, t, n) {
2240
+ t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
2241
+ }
2242
+ function te(e, t, n, r, a) {
2243
+ var o;
2244
+ var i = (o = t.$$slots) == null ? void 0 : o[n], s = !1;
2245
+ i === !0 && (i = t[n === "default" ? "children" : n], s = !0), i === void 0 || i(e, s ? () => r : r);
2246
+ }
2247
+ function Jr(e) {
2248
+ const t = {};
2249
+ e.children && (t.default = !0);
2250
+ for (const n in e.$$slots)
2251
+ t[n] = !0;
2252
+ return t;
2253
+ }
2254
+ function Ni(e, t) {
2255
+ var n = void 0, r;
2256
+ Mr(() => {
2257
+ n !== (n = t()) && (r && (ye(r), r = null), n && (r = at(() => {
2258
+ Rn(() => (
2259
+ /** @type {(node: Element) => void} */
2260
+ n(e)
2261
+ ));
2262
+ })));
2263
+ });
2264
+ }
2265
+ function Qr(e) {
2266
+ var t, n, r = "";
2267
+ if (typeof e == "string" || typeof e == "number") r += e;
2268
+ else if (typeof e == "object") if (Array.isArray(e)) {
2269
+ var a = e.length;
2270
+ for (t = 0; t < a; t++) e[t] && (n = Qr(e[t])) && (r && (r += " "), r += n);
2271
+ } else for (n in e) e[n] && (r && (r += " "), r += n);
2272
+ return r;
2273
+ }
2274
+ function Bi() {
2275
+ for (var e, t, n = 0, r = "", a = arguments.length; n < a; n++) (e = arguments[n]) && (t = Qr(e)) && (r && (r += " "), r += t);
2276
+ return r;
2277
+ }
2278
+ function le(e) {
2279
+ return typeof e == "object" ? Bi(e) : e ?? "";
2280
+ }
2281
+ const er = [...`
2282
+ \r\f \v\uFEFF`];
2283
+ function Fi(e, t, n) {
2284
+ var r = e == null ? "" : "" + e;
2285
+ if (n) {
2286
+ for (var a of Object.keys(n))
2287
+ if (n[a])
2288
+ r = r ? r + " " + a : a;
2289
+ else if (r.length)
2290
+ for (var i = a.length, s = 0; (s = r.indexOf(a, s)) >= 0; ) {
2291
+ var o = s + i;
2292
+ (s === 0 || er.includes(r[s - 1])) && (o === r.length || er.includes(r[o])) ? r = (s === 0 ? "" : r.substring(0, s)) + r.substring(o + 1) : s = o;
2293
+ }
2294
+ }
2295
+ return r === "" ? null : r;
2296
+ }
2297
+ function tr(e, t = !1) {
2298
+ var n = t ? " !important;" : ";", r = "";
2299
+ for (var a of Object.keys(e)) {
2300
+ var i = e[a];
2301
+ i != null && i !== "" && (r += " " + a + ": " + i + n);
2302
+ }
2303
+ return r;
2304
+ }
2305
+ function dn(e) {
2306
+ return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
2307
+ }
2308
+ function qi(e, t) {
2309
+ if (t) {
2310
+ var n = "", r, a;
2311
+ if (Array.isArray(t) ? (r = t[0], a = t[1]) : r = t, e) {
2312
+ e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
2313
+ var i = !1, s = 0, o = !1, l = [];
2314
+ r && l.push(...Object.keys(r).map(dn)), a && l.push(...Object.keys(a).map(dn));
2315
+ var f = 0, c = -1;
2316
+ const b = e.length;
2317
+ for (var h = 0; h < b; h++) {
2318
+ var d = e[h];
2319
+ if (o ? d === "/" && e[h - 1] === "*" && (o = !1) : i ? i === d && (i = !1) : d === "/" && e[h + 1] === "*" ? o = !0 : d === '"' || d === "'" ? i = d : d === "(" ? s++ : d === ")" && s--, !o && i === !1 && s === 0) {
2320
+ if (d === ":" && c === -1)
2321
+ c = h;
2322
+ else if (d === ";" || h === b - 1) {
2323
+ if (c !== -1) {
2324
+ var p = dn(e.substring(f, c).trim());
2325
+ if (!l.includes(p)) {
2326
+ d !== ";" && h++;
2327
+ var _ = e.substring(f, h).trim();
2328
+ n += " " + _ + ";";
2329
+ }
2330
+ }
2331
+ f = h + 1, c = -1;
2332
+ }
2333
+ }
2334
+ }
2335
+ }
2336
+ return r && (n += tr(r)), a && (n += tr(a, !0)), n = n.trim(), n === "" ? null : n;
2337
+ }
2338
+ return e == null ? null : String(e);
2339
+ }
2340
+ function oe(e, t, n, r, a, i) {
2341
+ var s = e.__className;
2342
+ if (s !== n || s === void 0) {
2343
+ var o = Fi(n, r, i);
2344
+ o == null ? e.removeAttribute("class") : t ? e.className = o : e.setAttribute("class", o), e.__className = n;
2345
+ } else if (i && a !== i)
2346
+ for (var l in i) {
2347
+ var f = !!i[l];
2348
+ (a == null || f !== !!a[l]) && e.classList.toggle(l, f);
2349
+ }
2350
+ return i;
2351
+ }
2352
+ function cn(e, t = {}, n, r) {
2353
+ for (var a in n) {
2354
+ var i = n[a];
2355
+ t[a] !== i && (n[a] == null ? e.style.removeProperty(a) : e.style.setProperty(a, i, r));
2356
+ }
2357
+ }
2358
+ function an(e, t, n, r) {
2359
+ var a = e.__style;
2360
+ if (a !== t) {
2361
+ var i = qi(t, r);
2362
+ i == null ? e.removeAttribute("style") : e.style.cssText = i, e.__style = t;
2363
+ } else r && (Array.isArray(r) ? (cn(e, n == null ? void 0 : n[0], r[0]), cn(e, n == null ? void 0 : n[1], r[1], "important")) : cn(e, n, r));
2364
+ return r;
2365
+ }
2366
+ function xn(e, t, n = !1) {
2367
+ if (e.multiple) {
2368
+ if (t == null)
2369
+ return;
2370
+ if (!Tn(t))
2371
+ return Ka();
2372
+ for (var r of e.options)
2373
+ r.selected = t.includes(nr(r));
2374
+ return;
2375
+ }
2376
+ for (r of e.options) {
2377
+ var a = nr(r);
2378
+ if (li(a, t)) {
2379
+ r.selected = !0;
2380
+ return;
2381
+ }
2382
+ }
2383
+ (!n || t !== void 0) && (e.selectedIndex = -1);
2384
+ }
2385
+ function Ui(e) {
2386
+ var t = new MutationObserver(() => {
2387
+ xn(e, e.__value);
2388
+ });
2389
+ t.observe(e, {
2390
+ // Listen to option element changes
2391
+ childList: !0,
2392
+ subtree: !0,
2393
+ // because of <optgroup>
2394
+ // Listen to option element value attribute changes
2395
+ // (doesn't get notified of select value changes,
2396
+ // because that property is not reflected as an attribute)
2397
+ attributes: !0,
2398
+ attributeFilter: ["value"]
2399
+ }), In(() => {
2400
+ t.disconnect();
2401
+ });
2402
+ }
2403
+ function nr(e) {
2404
+ return "__value" in e ? e.__value : e.value;
2405
+ }
2406
+ const xt = Symbol("class"), Tt = Symbol("style"), ea = Symbol("is custom element"), ta = Symbol("is html"), Hi = gr ? "option" : "OPTION", Vi = gr ? "select" : "SELECT";
2407
+ function Ki(e, t) {
2408
+ t ? e.hasAttribute("selected") || e.setAttribute("selected", "") : e.removeAttribute("selected");
2409
+ }
2410
+ function I(e, t, n, r) {
2411
+ var a = na(e);
2412
+ a[t] !== (a[t] = n) && (t === "loading" && (e[Ra] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ra(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2413
+ }
2414
+ function Yi(e, t, n, r, a = !1, i = !1) {
2415
+ var s = na(e), o = s[ea], l = !s[ta], f = t || {}, c = e.nodeName === Hi;
2416
+ for (var h in t)
2417
+ h in n || (n[h] = null);
2418
+ n.class ? n.class = le(n.class) : n[xt] && (n.class = null), n[Tt] && (n.style ?? (n.style = null));
2419
+ var d = ra(e);
2420
+ for (const y in n) {
2421
+ let w = n[y];
2422
+ if (c && y === "value" && w == null) {
2423
+ e.value = e.__value = "", f[y] = w;
2424
+ continue;
2425
+ }
2426
+ if (y === "class") {
2427
+ var p = e.namespaceURI === "http://www.w3.org/1999/xhtml";
2428
+ oe(e, p, w, r, t == null ? void 0 : t[xt], n[xt]), f[y] = w, f[xt] = n[xt];
2429
+ continue;
2430
+ }
2431
+ if (y === "style") {
2432
+ an(e, w, t == null ? void 0 : t[Tt], n[Tt]), f[y] = w, f[Tt] = n[Tt];
2433
+ continue;
2434
+ }
2435
+ var _ = f[y];
2436
+ if (!(w === _ && !(w === void 0 && e.hasAttribute(y)))) {
2437
+ f[y] = w;
2438
+ var b = y[0] + y[1];
2439
+ if (b !== "$$")
2440
+ if (b === "on") {
2441
+ const E = {}, C = "$$" + y;
2442
+ let j = y.slice(2);
2443
+ var v = Oi(j);
2444
+ if (Ci(j) && (j = j.slice(0, -7), E.capture = !0), !v && _) {
2445
+ if (w != null) continue;
2446
+ e.removeEventListener(j, f[C], E), f[C] = null;
2447
+ }
2448
+ if (v)
2449
+ xi(j, e, w), Ti([j]);
2450
+ else if (w != null) {
2451
+ let ne = function(ce) {
2452
+ f[y].call(this, ce);
2453
+ };
2454
+ f[C] = Gr(j, e, ne, E);
2455
+ }
2456
+ } else if (y === "style")
2457
+ I(e, y, w);
2458
+ else if (y === "autofocus")
2459
+ vi(
2460
+ /** @type {HTMLElement} */
2461
+ e,
2462
+ !!w
2463
+ );
2464
+ else if (!o && (y === "__value" || y === "value" && w != null))
2465
+ e.value = e.__value = w;
2466
+ else if (y === "selected" && c)
2467
+ Ki(
2468
+ /** @type {HTMLOptionElement} */
2469
+ e,
2470
+ w
2471
+ );
2472
+ else {
2473
+ var g = y;
2474
+ l || (g = ji(g));
2475
+ var k = g === "defaultValue" || g === "defaultChecked";
2476
+ if (w == null && !o && !k)
2477
+ if (s[y] = null, g === "value" || g === "checked") {
2478
+ let E = (
2479
+ /** @type {HTMLInputElement} */
2480
+ e
2481
+ );
2482
+ const C = t === void 0;
2483
+ if (g === "value") {
2484
+ let j = E.defaultValue;
2485
+ E.removeAttribute(g), E.defaultValue = j, E.value = E.__value = C ? j : null;
2486
+ } else {
2487
+ let j = E.defaultChecked;
2488
+ E.removeAttribute(g), E.defaultChecked = j, E.checked = C ? j : !1;
2489
+ }
2490
+ } else
2491
+ e.removeAttribute(y);
2492
+ else k || d.includes(g) && (o || typeof w != "string") ? (e[g] = w, g in s && (s[g] = re)) : typeof w != "function" && I(e, g, w);
2493
+ }
2494
+ }
2495
+ }
2496
+ return f;
2497
+ }
2498
+ function q(e, t, n = [], r = [], a = [], i, s = !1, o = !1) {
2499
+ Tr(a, n, r, (l) => {
2500
+ var f = void 0, c = {}, h = e.nodeName === Vi, d = !1;
2501
+ if (Mr(() => {
2502
+ var _ = t(...l.map(u)), b = Yi(
2503
+ e,
2504
+ f,
2505
+ _,
2506
+ i,
2507
+ s,
2508
+ o
2509
+ );
2510
+ d && h && "value" in _ && xn(
2511
+ /** @type {HTMLSelectElement} */
2512
+ e,
2513
+ _.value
2514
+ );
2515
+ for (let g of Object.getOwnPropertySymbols(c))
2516
+ _[g] || ye(c[g]);
2517
+ for (let g of Object.getOwnPropertySymbols(_)) {
2518
+ var v = _[g];
2519
+ g.description === xa && (!f || v !== f[g]) && (c[g] && ye(c[g]), c[g] = at(() => Ni(e, () => v))), b[g] = v;
2520
+ }
2521
+ f = b;
2522
+ }), h) {
2523
+ var p = (
2524
+ /** @type {HTMLSelectElement} */
2525
+ e
2526
+ );
2527
+ Rn(() => {
2528
+ xn(
2529
+ p,
2530
+ /** @type {Record<string | symbol, any>} */
2531
+ f.value,
2532
+ !0
2533
+ ), Ui(p);
2534
+ });
2535
+ }
2536
+ d = !0;
2537
+ });
2538
+ }
2539
+ function na(e) {
2540
+ return (
2541
+ /** @type {Record<string | symbol, unknown>} **/
2542
+ // @ts-expect-error
2543
+ e.__attributes ?? (e.__attributes = {
2544
+ [ea]: e.nodeName.includes("-"),
2545
+ [ta]: e.namespaceURI === cr
2546
+ })
2547
+ );
2548
+ }
2549
+ var rr = /* @__PURE__ */ new Map();
2550
+ function ra(e) {
2551
+ var t = e.getAttribute("is") || e.nodeName, n = rr.get(t);
2552
+ if (n) return n;
2553
+ rr.set(t, n = []);
2554
+ for (var r, a = e, i = Element.prototype; i !== a; ) {
2555
+ r = vr(a);
2556
+ for (var s in r)
2557
+ r[s].set && n.push(s);
2558
+ a = An(a);
2559
+ }
2560
+ return n;
2561
+ }
2562
+ function ar(e, t) {
2563
+ return e === t || (e == null ? void 0 : e[Be]) === t;
2564
+ }
2565
+ function sn(e = {}, t, n, r) {
2566
+ var a = (
2567
+ /** @type {ComponentContext} */
2568
+ ee.r
2569
+ ), i = (
2570
+ /** @type {Effect} */
2571
+ B
2572
+ );
2573
+ return Rn(() => {
2574
+ var s, o;
2575
+ return Mn(() => {
2576
+ s = o, o = [], D(() => {
2577
+ e !== n(...o) && (t(e, ...o), s && ar(n(...s), e) && t(null, ...s));
2578
+ });
2579
+ }), () => {
2580
+ let l = i;
2581
+ for (; l !== a && l.parent !== null && l.parent.f & _n; )
2582
+ l = l.parent;
2583
+ const f = () => {
2584
+ o && ar(n(...o), e) && t(null, ...o);
2585
+ }, c = l.teardown;
2586
+ l.teardown = () => {
2587
+ f(), c == null || c();
2588
+ };
2589
+ };
2590
+ }), e;
2591
+ }
2592
+ function K(e = !1) {
2593
+ const t = (
2594
+ /** @type {ComponentContextLegacy} */
2595
+ ee
2596
+ ), n = t.l.u;
2597
+ if (!n) return;
2598
+ let r = () => A(t.s);
2599
+ if (e) {
2600
+ let a = 0, i = (
2601
+ /** @type {Record<string, any>} */
2602
+ {}
2603
+ );
2604
+ const s = /* @__PURE__ */ rn(() => {
2605
+ let o = !1;
2606
+ const l = t.s;
2607
+ for (const f in l)
2608
+ l[f] !== i[f] && (i[f] = l[f], o = !0);
2609
+ return o && a++, a;
2610
+ });
2611
+ r = () => u(s);
2612
+ }
2613
+ n.b.length && hi(() => {
2614
+ ir(t, r), vn(n.b);
2615
+ }), Wn(() => {
2616
+ const a = D(() => n.m.map(Oa));
2617
+ return () => {
2618
+ for (const i of a)
2619
+ typeof i == "function" && i();
2620
+ };
2621
+ }), n.a.length && Wn(() => {
2622
+ ir(t, r), vn(n.a);
2623
+ });
2624
+ }
2625
+ function ir(e, t) {
2626
+ if (e.l.s)
2627
+ for (const n of e.l.s) u(n);
2628
+ t();
2629
+ }
2630
+ const Gi = {
2631
+ get(e, t) {
2632
+ if (!e.exclude.includes(t))
2633
+ return u(e.version), t in e.special ? e.special[t]() : e.props[t];
2634
+ },
2635
+ set(e, t, n) {
2636
+ if (!(t in e.special)) {
2637
+ var r = B;
2638
+ try {
2639
+ Ee(e.parent_effect), e.special[t] = m(
2640
+ {
2641
+ get [t]() {
2642
+ return e.props[t];
2643
+ }
2644
+ },
2645
+ /** @type {string} */
2646
+ t,
2647
+ dr
2648
+ );
2649
+ } finally {
2650
+ Ee(r);
2651
+ }
2652
+ }
2653
+ return e.special[t](n), Yn(e.version), !0;
2654
+ },
2655
+ getOwnPropertyDescriptor(e, t) {
2656
+ if (!e.exclude.includes(t) && t in e.props)
2657
+ return {
2658
+ enumerable: !0,
2659
+ configurable: !0,
2660
+ value: e.props[t]
2661
+ };
2662
+ },
2663
+ deleteProperty(e, t) {
2664
+ return e.exclude.includes(t) || (e.exclude.push(t), Yn(e.version)), !0;
2665
+ },
2666
+ has(e, t) {
2667
+ return e.exclude.includes(t) ? !1 : t in e.props;
2668
+ },
2669
+ ownKeys(e) {
2670
+ return Reflect.ownKeys(e.props).filter((t) => !e.exclude.includes(t));
2671
+ }
2672
+ };
2673
+ function O(e, t) {
2674
+ return new Proxy(
2675
+ {
2676
+ props: e,
2677
+ exclude: t,
2678
+ special: {},
2679
+ version: pt(0),
2680
+ // TODO this is only necessary because we need to track component
2681
+ // destruction inside `prop`, because of `bind:this`, but it
2682
+ // seems likely that we can simplify `bind:this` instead
2683
+ parent_effect: (
2684
+ /** @type {Effect} */
2685
+ B
2686
+ )
2687
+ },
2688
+ Gi
2689
+ );
2690
+ }
2691
+ function m(e, t, n, r) {
2692
+ var y;
2693
+ var a = !Lt || (n & wa) !== 0, i = (n & ma) !== 0, s = (n & ya) !== 0, o = (
2694
+ /** @type {V} */
2695
+ r
2696
+ ), l = !0, f = () => (l && (l = !1, o = s ? D(
2697
+ /** @type {() => V} */
2698
+ r
2699
+ ) : (
2700
+ /** @type {V} */
2701
+ r
2702
+ )), o);
2703
+ let c;
2704
+ if (i) {
2705
+ var h = Be in e || Ia in e;
2706
+ c = ((y = Vt(e, t)) == null ? void 0 : y.set) ?? (h && t in e ? (w) => e[t] = w : void 0);
2707
+ }
2708
+ var d, p = !1;
2709
+ i ? [d, p] = Ja(() => (
2710
+ /** @type {V} */
2711
+ e[t]
2712
+ )) : d = /** @type {V} */
2713
+ e[t], d === void 0 && r !== void 0 && (d = f(), c && (a && qa(), c(d)));
2714
+ var _;
2715
+ if (a ? _ = () => {
2716
+ var w = (
2717
+ /** @type {V} */
2718
+ e[t]
2719
+ );
2720
+ return w === void 0 ? f() : (l = !0, w);
2721
+ } : _ = () => {
2722
+ var w = (
2723
+ /** @type {V} */
2724
+ e[t]
2725
+ );
2726
+ return w !== void 0 && (o = /** @type {V} */
2727
+ void 0), w === void 0 ? o : w;
2728
+ }, a && (n & dr) === 0)
2729
+ return _;
2730
+ if (c) {
2731
+ var b = e.$$legacy;
2732
+ return (
2733
+ /** @type {() => V} */
2734
+ (function(w, E) {
2735
+ return arguments.length > 0 ? ((!a || !E || b || p) && c(E ? _() : w), w) : _();
2736
+ })
2737
+ );
2738
+ }
2739
+ var v = !1, g = ((n & ba) !== 0 ? rn : Pt)(() => (v = !1, _()));
2740
+ i && u(g);
2741
+ var k = (
2742
+ /** @type {Effect} */
2743
+ B
2744
+ );
2745
+ return (
2746
+ /** @type {() => V} */
2747
+ (function(w, E) {
2748
+ if (arguments.length > 0) {
2749
+ const C = E ? u(g) : a && i ? ut(w) : w;
2750
+ return P(g, C), v = !0, o !== void 0 && (o = C), w;
2751
+ }
2752
+ return We && v || (k.f & be) !== 0 ? g.v : u(g);
2753
+ })
2754
+ );
2755
+ }
2756
+ var Wi = /* @__PURE__ */ $('<span class="strand-btn__spinner" aria-hidden="true"></span>'), Zi = /* @__PURE__ */ $('<button><!> <span class="strand-btn__content"><!></span></button>');
2757
+ function ml(e, t) {
2758
+ U(t, !1);
2759
+ const n = /* @__PURE__ */ z(), r = /* @__PURE__ */ z();
2760
+ let a = m(t, "variant", 8, "primary"), i = m(t, "size", 8, "md"), s = m(t, "loading", 8, !1), o = m(t, "iconOnly", 8, !1), l = m(t, "type", 8, "button"), f = m(t, "disabled", 8, !1), c = m(t, "fullWidth", 8, !1), h = m(t, "onclick", 8, void 0);
2761
+ function d(k) {
2762
+ !u(n) && h() && h()(k);
2763
+ }
2764
+ R(() => (A(f()), A(s())), () => {
2765
+ P(n, f() || s());
2766
+ }), R(
2767
+ () => (A(a()), A(i()), A(o()), A(c()), A(s())),
2768
+ () => {
2769
+ P(r, [
2770
+ "strand-btn",
2771
+ `strand-btn--${a()}`,
2772
+ `strand-btn--${i()}`,
2773
+ o() && "strand-btn--icon-only",
2774
+ c() && "strand-btn--full-width",
2775
+ s() && "strand-btn--loading"
2776
+ ].filter(Boolean).join(" "));
2777
+ }
2778
+ ), G(), K();
2779
+ var p = Zi(), _ = T(p);
2780
+ {
2781
+ var b = (k) => {
2782
+ var y = Wi();
2783
+ S(k, y);
2784
+ };
2785
+ Y(_, (k) => {
2786
+ s() && k(b);
2787
+ });
2788
+ }
2789
+ var v = F(_, 2), g = T(v);
2790
+ te(g, t, "default", {}), M(() => {
2791
+ I(p, "type", l()), oe(p, 1, le(u(r))), p.disabled = u(n), I(p, "aria-disabled", u(n) ? "true" : void 0), I(p, "aria-busy", s() ? "true" : void 0), an(v, s() ? "visibility: hidden" : void 0);
2792
+ }), W("click", p, d), S(e, p), H();
2793
+ }
2794
+ var Xi = /* @__PURE__ */ $('<span class="strand-input__leading" aria-hidden="true"><!></span>'), Ji = /* @__PURE__ */ $('<span class="strand-input__trailing" aria-hidden="true"><!></span>'), Qi = /* @__PURE__ */ $("<div><!> <input/> <!></div>");
2795
+ function yl(e, t) {
2796
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["type", "error", "disabled", "hasLeading", "hasTrailing"]);
2797
+ U(t, !1);
2798
+ const a = /* @__PURE__ */ z();
2799
+ let i = m(t, "type", 8, "text"), s = m(t, "error", 8, !1), o = m(t, "disabled", 8, !1), l = m(t, "hasLeading", 8, !1), f = m(t, "hasTrailing", 8, !1);
2800
+ R(
2801
+ () => (A(s()), A(o()), A(l()), A(f())),
2802
+ () => {
2803
+ P(a, [
2804
+ "strand-input",
2805
+ s() && "strand-input--error",
2806
+ o() && "strand-input--disabled",
2807
+ l() && "strand-input--has-leading",
2808
+ f() && "strand-input--has-trailing"
2809
+ ].filter(Boolean).join(" "));
2810
+ }
2811
+ ), G(), K();
2812
+ var c = Qi(), h = T(c);
2813
+ {
2814
+ var d = (v) => {
2815
+ var g = Xi(), k = T(g);
2816
+ te(k, t, "leading", {}), S(v, g);
2817
+ };
2818
+ Y(h, (v) => {
2819
+ l() && v(d);
2820
+ });
2821
+ }
2822
+ var p = F(h, 2);
2823
+ q(
2824
+ p,
2825
+ () => ({
2826
+ type: i(),
2827
+ class: "strand-input__field",
2828
+ disabled: o(),
2829
+ "aria-invalid": s() ? "true" : void 0,
2830
+ ...r
2831
+ }),
2832
+ void 0,
2833
+ void 0,
2834
+ void 0,
2835
+ void 0,
2836
+ !0
2837
+ );
2838
+ var _ = F(p, 2);
2839
+ {
2840
+ var b = (v) => {
2841
+ var g = Ji(), k = T(g);
2842
+ te(k, t, "trailing", {}), S(v, g);
2843
+ };
2844
+ Y(_, (v) => {
2845
+ f() && v(b);
2846
+ });
2847
+ }
2848
+ M(() => oe(c, 1, le(u(a)))), S(e, c), H();
2849
+ }
2850
+ var es = /* @__PURE__ */ $('<span class="strand-textarea__count" aria-live="polite"> </span>'), ts = /* @__PURE__ */ $("<div><textarea></textarea> <!></div>");
2851
+ function kl(e, t) {
2852
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, [
2853
+ "autoResize",
2854
+ "showCount",
2855
+ "error",
2856
+ "maxLength",
2857
+ "disabled",
2858
+ "value"
2859
+ ]);
2860
+ U(t, !1);
2861
+ const a = /* @__PURE__ */ z(), i = /* @__PURE__ */ z();
2862
+ let s = m(t, "autoResize", 8, !1), o = m(t, "showCount", 8, !1), l = m(t, "error", 8, !1), f = m(t, "maxLength", 8, void 0), c = m(t, "disabled", 8, !1), h = m(t, "value", 12, ""), d = /* @__PURE__ */ z();
2863
+ function p(k) {
2864
+ const y = k.target;
2865
+ h(y.value), s() && u(d) && (yn(d, u(d).style.height = "auto"), yn(d, u(d).style.height = `${u(d).scrollHeight}px`));
2866
+ }
2867
+ R(
2868
+ () => (A(l()), A(c()), A(s())),
2869
+ () => {
2870
+ P(a, [
2871
+ "strand-textarea",
2872
+ l() && "strand-textarea--error",
2873
+ c() && "strand-textarea--disabled",
2874
+ s() && "strand-textarea--auto-resize"
2875
+ ].filter(Boolean).join(" "));
2876
+ }
2877
+ ), R(() => A(h()), () => {
2878
+ P(i, typeof h() == "string" ? h().length : 0);
2879
+ }), G(), K();
2880
+ var _ = ts(), b = T(_);
2881
+ q(b, () => ({
2882
+ class: "strand-textarea__field",
2883
+ disabled: c(),
2884
+ "aria-invalid": l() ? "true" : void 0,
2885
+ maxlength: f(),
2886
+ value: h(),
2887
+ ...r
2888
+ })), sn(b, (k) => P(d, k), () => u(d));
2889
+ var v = F(b, 2);
2890
+ {
2891
+ var g = (k) => {
2892
+ var y = es(), w = T(y);
2893
+ M(() => V(w, `${u(i) ?? ""}/${f() ?? ""}`)), S(k, y);
2894
+ };
2895
+ Y(v, (k) => {
2896
+ o() && f() != null && k(g);
2897
+ });
2898
+ }
2899
+ M(() => oe(_, 1, le(u(a)))), W("input", b, p), S(e, _), H();
2900
+ }
2901
+ var ns = /* @__PURE__ */ $('<option disabled=""> </option>'), rs = /* @__PURE__ */ $("<option> </option>"), as = /* @__PURE__ */ $('<div><select><!><!></select> <span class="strand-select__arrow" aria-hidden="true"></span></div>');
2902
+ function El(e, t) {
2903
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, [
2904
+ "options",
2905
+ "disabled",
2906
+ "value",
2907
+ "error",
2908
+ "placeholder",
2909
+ "onchange"
2910
+ ]);
2911
+ U(t, !1);
2912
+ const a = /* @__PURE__ */ z();
2913
+ let i = m(t, "options", 24, () => []), s = m(t, "disabled", 8, !1), o = m(t, "value", 8, void 0), l = m(t, "error", 8, !1), f = m(t, "placeholder", 8, void 0), c = m(t, "onchange", 8, void 0);
2914
+ R(() => (A(l()), A(s())), () => {
2915
+ P(a, [
2916
+ "strand-select",
2917
+ l() && "strand-select--error",
2918
+ s() && "strand-select--disabled"
2919
+ ].filter(Boolean).join(" "));
2920
+ }), G(), K();
2921
+ var h = as(), d = T(h);
2922
+ q(d, () => ({
2923
+ class: "strand-select__field",
2924
+ value: o(),
2925
+ disabled: s(),
2926
+ "aria-invalid": l() ? "true" : void 0,
2927
+ ...r
2928
+ }));
2929
+ var p = T(d);
2930
+ {
2931
+ var _ = (v) => {
2932
+ var g = ns(), k = T(g);
2933
+ g.value = g.__value = "", M(() => V(k, f())), S(v, g);
2934
+ };
2935
+ Y(p, (v) => {
2936
+ f() && v(_);
2937
+ });
2938
+ }
2939
+ var b = F(p);
2940
+ je(b, 1, i, (v) => v.value, (v, g) => {
2941
+ var k = rs(), y = T(k), w = {};
2942
+ M(() => {
2943
+ V(y, (u(g), D(() => u(g).label))), w !== (w = (u(g), D(() => u(g).value))) && (k.value = (k.__value = (u(g), D(() => u(g).value))) ?? "");
2944
+ }), S(v, k);
2945
+ }), M(() => oe(h, 1, le(u(a)))), W("change", d, function(...v) {
2946
+ var g;
2947
+ (g = c()) == null || g.apply(this, v);
2948
+ }), S(e, h), H();
2949
+ }
2950
+ var is = /* @__PURE__ */ Zr('<svg class="strand-checkbox__icon" viewBox="0 0 16 16" fill="none"><line x1="4" y1="8" x2="12" y2="8" stroke="currentColor" stroke-width="2" stroke-linecap="round"></line></svg>'), ss = /* @__PURE__ */ Zr('<svg class="strand-checkbox__icon" viewBox="0 0 16 16" fill="none"><path d="M3.5 8L6.5 11L12.5 5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>'), ls = /* @__PURE__ */ $('<span class="strand-checkbox__label"> </span>'), os = /* @__PURE__ */ $('<label><input/> <span class="strand-checkbox__control" aria-hidden="true"><!></span> <!></label>');
2951
+ function xl(e, t) {
2952
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["checked", "indeterminate", "disabled", "label", "onchange"]);
2953
+ U(t, !1);
2954
+ const a = /* @__PURE__ */ z(), i = /* @__PURE__ */ z();
2955
+ let s = m(t, "checked", 8, !1), o = m(t, "indeterminate", 8, !1), l = m(t, "disabled", 8, !1), f = m(t, "label", 8, void 0), c = m(t, "onchange", 8, void 0), h = /* @__PURE__ */ z();
2956
+ function d(E) {
2957
+ var C;
2958
+ l() || (C = c()) == null || C(E);
2959
+ }
2960
+ R(
2961
+ () => (A(s()), A(o()), A(l())),
2962
+ () => {
2963
+ P(a, [
2964
+ "strand-checkbox",
2965
+ s() && "strand-checkbox--checked",
2966
+ o() && "strand-checkbox--indeterminate",
2967
+ l() && "strand-checkbox--disabled"
2968
+ ].filter(Boolean).join(" "));
2969
+ }
2970
+ ), R(
2971
+ () => (A(o()), A(s())),
2972
+ () => {
2973
+ P(i, o() ? "mixed" : s() ? "true" : "false");
2974
+ }
2975
+ ), R(() => (u(h), A(o())), () => {
2976
+ u(h) && yn(h, u(h).indeterminate = o());
2977
+ }), G(), K();
2978
+ var p = os(), _ = T(p);
2979
+ q(
2980
+ _,
2981
+ () => ({
2982
+ type: "checkbox",
2983
+ class: "strand-checkbox__native",
2984
+ checked: s(),
2985
+ disabled: l(),
2986
+ "aria-checked": u(i),
2987
+ role: "checkbox",
2988
+ ...r
2989
+ }),
2990
+ void 0,
2991
+ void 0,
2992
+ void 0,
2993
+ void 0,
2994
+ !0
2995
+ ), sn(_, (E) => P(h, E), () => u(h));
2996
+ var b = F(_, 2), v = T(b);
2997
+ {
2998
+ var g = (E) => {
2999
+ var C = is();
3000
+ S(E, C);
3001
+ }, k = (E) => {
3002
+ var C = ss();
3003
+ S(E, C);
3004
+ };
3005
+ Y(v, (E) => {
3006
+ o() ? E(g) : s() && E(k, 1);
3007
+ });
3008
+ }
3009
+ var y = F(b, 2);
3010
+ {
3011
+ var w = (E) => {
3012
+ var C = ls(), j = T(C);
3013
+ M(() => V(j, f())), S(E, C);
3014
+ };
3015
+ Y(y, (E) => {
3016
+ f() && E(w);
3017
+ });
3018
+ }
3019
+ M(() => oe(p, 1, le(u(a)))), W("change", _, d), S(e, p), H();
3020
+ }
3021
+ var fs = /* @__PURE__ */ $('<span class="strand-radio__label"> </span>'), us = /* @__PURE__ */ $('<label><input/> <span class="strand-radio__control" aria-hidden="true"><span class="strand-radio__dot"></span></span> <!></label>');
3022
+ function Tl(e, t) {
3023
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["checked", "disabled", "label", "name", "value", "onchange"]);
3024
+ U(t, !1);
3025
+ const a = /* @__PURE__ */ z();
3026
+ let i = m(t, "checked", 8, !1), s = m(t, "disabled", 8, !1), o = m(t, "label", 8, void 0), l = m(t, "name", 8, void 0), f = m(t, "value", 8, void 0), c = m(t, "onchange", 8, void 0);
3027
+ function h(v) {
3028
+ var g;
3029
+ s() || (g = c()) == null || g(v);
3030
+ }
3031
+ R(() => (A(i()), A(s())), () => {
3032
+ P(a, [
3033
+ "strand-radio",
3034
+ i() && "strand-radio--checked",
3035
+ s() && "strand-radio--disabled"
3036
+ ].filter(Boolean).join(" "));
3037
+ }), G(), K();
3038
+ var d = us(), p = T(d);
3039
+ q(
3040
+ p,
3041
+ () => ({
3042
+ type: "radio",
3043
+ class: "strand-radio__native",
3044
+ checked: i(),
3045
+ disabled: s(),
3046
+ name: l(),
3047
+ value: f(),
3048
+ ...r
3049
+ }),
3050
+ void 0,
3051
+ void 0,
3052
+ void 0,
3053
+ void 0,
3054
+ !0
3055
+ );
3056
+ var _ = F(p, 4);
3057
+ {
3058
+ var b = (v) => {
3059
+ var g = fs(), k = T(g);
3060
+ M(() => V(k, o())), S(v, g);
3061
+ };
3062
+ Y(_, (v) => {
3063
+ o() && v(b);
3064
+ });
3065
+ }
3066
+ M(() => oe(d, 1, le(u(a)))), W("change", p, h), S(e, d), H();
3067
+ }
3068
+ var ds = /* @__PURE__ */ $('<span class="strand-switch__label"> </span>'), cs = /* @__PURE__ */ $('<label><button><span class="strand-switch__thumb" aria-hidden="true"></span></button> <!></label>');
3069
+ function Sl(e, t) {
3070
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["checked", "disabled", "label", "onchange"]);
3071
+ U(t, !1);
3072
+ const a = /* @__PURE__ */ z();
3073
+ let i = m(t, "checked", 8, !1), s = m(t, "disabled", 8, !1), o = m(t, "label", 8, void 0), l = m(t, "onchange", 8, void 0);
3074
+ function f() {
3075
+ var b;
3076
+ s() || (b = l()) == null || b(!i());
3077
+ }
3078
+ function c(b) {
3079
+ var v;
3080
+ (b.key === " " || b.key === "Enter") && !s() && (b.preventDefault(), (v = l()) == null || v(!i()));
3081
+ }
3082
+ R(() => (A(i()), A(s())), () => {
3083
+ P(a, [
3084
+ "strand-switch",
3085
+ i() && "strand-switch--checked",
3086
+ s() && "strand-switch--disabled"
3087
+ ].filter(Boolean).join(" "));
3088
+ }), G(), K();
3089
+ var h = cs(), d = T(h);
3090
+ q(d, () => ({
3091
+ type: "button",
3092
+ role: "switch",
3093
+ class: "strand-switch__track",
3094
+ "aria-checked": i() ? "true" : "false",
3095
+ disabled: s(),
3096
+ ...r
3097
+ }));
3098
+ var p = F(d, 2);
3099
+ {
3100
+ var _ = (b) => {
3101
+ var v = ds(), g = T(v);
3102
+ M(() => V(g, o())), S(b, v);
3103
+ };
3104
+ Y(p, (b) => {
3105
+ o() && b(_);
3106
+ });
3107
+ }
3108
+ M(() => oe(h, 1, le(u(a)))), W("click", d, f), W("keydown", d, c), S(e, h), H();
3109
+ }
3110
+ var vs = /* @__PURE__ */ $("<div><input/></div>");
3111
+ function Al(e, t) {
3112
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["min", "max", "step", "value", "disabled", "onchange"]);
3113
+ U(t, !1);
3114
+ const a = /* @__PURE__ */ z();
3115
+ let i = m(t, "min", 8, 0), s = m(t, "max", 8, 100), o = m(t, "step", 8, 1), l = m(t, "value", 8, void 0), f = m(t, "disabled", 8, !1), c = m(t, "onchange", 8, void 0);
3116
+ R(() => A(f()), () => {
3117
+ P(a, ["strand-slider", f() && "strand-slider--disabled"].filter(Boolean).join(" "));
3118
+ }), G(), K();
3119
+ var h = vs(), d = T(h);
3120
+ q(
3121
+ d,
3122
+ () => ({
3123
+ type: "range",
3124
+ class: "strand-slider__field",
3125
+ min: i(),
3126
+ max: s(),
3127
+ step: o(),
3128
+ value: l(),
3129
+ disabled: f(),
3130
+ "aria-valuemin": i(),
3131
+ "aria-valuemax": s(),
3132
+ "aria-valuenow": l(),
3133
+ ...r
3134
+ }),
3135
+ void 0,
3136
+ void 0,
3137
+ void 0,
3138
+ void 0,
3139
+ !0
3140
+ ), M(() => oe(h, 1, le(u(a)))), W("change", d, function(...p) {
3141
+ var _;
3142
+ (_ = c()) == null || _.apply(this, p);
3143
+ }), S(e, h), H();
3144
+ }
3145
+ var _s = /* @__PURE__ */ $('<span class="strand-form-field__required" aria-hidden="true">*</span>'), hs = /* @__PURE__ */ $('<p class="strand-form-field__error" role="alert"> </p>'), gs = /* @__PURE__ */ $('<p class="strand-form-field__hint"> </p>'), ps = /* @__PURE__ */ $('<div><label class="strand-form-field__label"> <!></label> <div class="strand-form-field__control"><!></div> <!></div>');
3146
+ function $l(e, t) {
3147
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["label", "htmlFor", "hint", "error", "required"]);
3148
+ U(t, !1);
3149
+ const a = /* @__PURE__ */ z();
3150
+ let i = m(t, "label", 8), s = m(t, "htmlFor", 8), o = m(t, "hint", 8, void 0), l = m(t, "error", 8, void 0), f = m(t, "required", 8, !1);
3151
+ R(() => A(l()), () => {
3152
+ P(a, ["strand-form-field", l() && "strand-form-field--error"].filter(Boolean).join(" "));
3153
+ }), G(), K();
3154
+ var c = ps();
3155
+ q(c, () => ({ class: u(a), ...r }));
3156
+ var h = T(c), d = T(h), p = F(d);
3157
+ {
3158
+ var _ = (w) => {
3159
+ var E = _s();
3160
+ S(w, E);
3161
+ };
3162
+ Y(p, (w) => {
3163
+ f() && w(_);
3164
+ });
3165
+ }
3166
+ var b = F(h, 2), v = T(b);
3167
+ te(v, t, "default", {});
3168
+ var g = F(b, 2);
3169
+ {
3170
+ var k = (w) => {
3171
+ var E = hs(), C = T(E);
3172
+ M(() => {
3173
+ I(E, "id", `${s()}-error`), V(C, l());
3174
+ }), S(w, E);
3175
+ }, y = (w) => {
3176
+ var E = gs(), C = T(E);
3177
+ M(() => {
3178
+ I(E, "id", `${s()}-hint`), V(C, o());
3179
+ }), S(w, E);
3180
+ };
3181
+ Y(g, (w) => {
3182
+ l() ? w(k) : o() && w(y, 1);
3183
+ });
3184
+ }
3185
+ M(() => {
3186
+ I(h, "for", s()), V(d, `${i() ?? ""} `);
3187
+ }), S(e, c), H();
3188
+ }
3189
+ var bs = /* @__PURE__ */ $("<div><!></div>");
3190
+ function Cl(e, t) {
3191
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["variant", "padding"]);
3192
+ U(t, !1);
3193
+ const a = /* @__PURE__ */ z();
3194
+ let i = m(t, "variant", 8, "elevated"), s = m(t, "padding", 8, "md");
3195
+ R(() => (A(i()), A(s())), () => {
3196
+ P(a, [
3197
+ "strand-card",
3198
+ `strand-card--${i()}`,
3199
+ `strand-card--pad-${s()}`
3200
+ ].filter(Boolean).join(" "));
3201
+ }), G(), K();
3202
+ var o = bs();
3203
+ q(o, () => ({ class: u(a), ...r }));
3204
+ var l = T(o);
3205
+ te(l, t, "default", {}), S(e, o), H();
3206
+ }
3207
+ var ws = /* @__PURE__ */ $('<span><!> <span role="status"><!></span></span>');
3208
+ function Pl(e, t) {
3209
+ const n = Jr(t), r = O(t, ["children", "$$slots", "$$events", "$$legacy"]), a = O(r, ["variant", "status", "count", "maxCount"]);
3210
+ U(t, !1);
3211
+ const i = /* @__PURE__ */ z(), s = /* @__PURE__ */ z(), o = /* @__PURE__ */ z(), l = /* @__PURE__ */ z(), f = /* @__PURE__ */ z();
3212
+ let c = m(t, "variant", 8, "count"), h = m(t, "status", 8, "default"), d = m(t, "count", 8, void 0), p = m(t, "maxCount", 8, 99);
3213
+ R(
3214
+ () => (A(c()), A(d()), A(p())),
3215
+ () => {
3216
+ P(i, c() === "count" ? d() != null && d() > p() ? `${p()}+` : d() : null);
3217
+ }
3218
+ ), R(() => (A(c()), A(d())), () => {
3219
+ P(s, c() === "dot" ? "Status indicator" : d() != null ? `${d()} notifications` : void 0);
3220
+ }), R(() => (A(c()), A(h())), () => {
3221
+ P(o, [
3222
+ "strand-badge__indicator",
3223
+ `strand-badge--${c()}`,
3224
+ `strand-badge--${h()}`
3225
+ ].filter(Boolean).join(" "));
3226
+ }), R(() => {
3227
+ }, () => {
3228
+ P(l, n.default);
3229
+ }), R(() => u(l), () => {
3230
+ P(f, u(l) ? ["strand-badge"].filter(Boolean).join(" ") : ["strand-badge", "strand-badge--inline"].filter(Boolean).join(" "));
3231
+ }), G(), K();
3232
+ var _ = ws();
3233
+ q(_, () => ({ class: u(f), ...a }));
3234
+ var b = T(_);
3235
+ {
3236
+ var v = (w) => {
3237
+ var E = qt(), C = wt(E);
3238
+ te(C, t, "default", {}), S(w, E);
3239
+ };
3240
+ Y(b, (w) => {
3241
+ u(l) && w(v);
3242
+ });
3243
+ }
3244
+ var g = F(b, 2), k = T(g);
3245
+ {
3246
+ var y = (w) => {
3247
+ var E = Xr();
3248
+ M(() => V(E, u(i))), S(w, E);
3249
+ };
3250
+ Y(k, (w) => {
3251
+ u(i) != null && w(y);
3252
+ });
3253
+ }
3254
+ M(() => {
3255
+ oe(g, 1, le(u(o))), I(g, "aria-label", u(s));
3256
+ }), S(e, _), H();
3257
+ }
3258
+ var ms = /* @__PURE__ */ $('<img class="strand-avatar__img"/>'), ys = /* @__PURE__ */ $('<span class="strand-avatar__initials" aria-hidden="true"> </span>'), ks = /* @__PURE__ */ $("<div><!></div>");
3259
+ function Ol(e, t) {
3260
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["src", "alt", "initials", "size"]);
3261
+ U(t, !1);
3262
+ const a = /* @__PURE__ */ z(), i = /* @__PURE__ */ z(), s = /* @__PURE__ */ z();
3263
+ let o = m(t, "src", 8, void 0), l = m(t, "alt", 8, ""), f = m(t, "initials", 8, ""), c = m(t, "size", 8, "md"), h = /* @__PURE__ */ z(!1);
3264
+ function d() {
3265
+ P(h, !0);
3266
+ }
3267
+ R(() => (A(o()), u(h)), () => {
3268
+ P(a, o() && !u(h));
3269
+ }), R(() => A(f()), () => {
3270
+ P(i, f().slice(0, 2).toUpperCase());
3271
+ }), R(() => A(c()), () => {
3272
+ P(s, ["strand-avatar", `strand-avatar--${c()}`].filter(Boolean).join(" "));
3273
+ }), G(), K();
3274
+ var p = ks();
3275
+ q(p, () => ({
3276
+ class: u(s),
3277
+ role: "img",
3278
+ "aria-label": l() || u(i),
3279
+ ...r
3280
+ }));
3281
+ var _ = T(p);
3282
+ {
3283
+ var b = (g) => {
3284
+ var k = ms();
3285
+ M(() => {
3286
+ I(k, "src", o()), I(k, "alt", l());
3287
+ }), W("error", k, d), S(g, k);
3288
+ }, v = (g) => {
3289
+ var k = ys(), y = T(k);
3290
+ M(() => V(y, u(i))), S(g, k);
3291
+ };
3292
+ Y(_, (g) => {
3293
+ u(a) ? g(b) : g(v, -1);
3294
+ });
3295
+ }
3296
+ S(e, p), H();
3297
+ }
3298
+ var Es = /* @__PURE__ */ $('<button type="button" class="strand-tag__remove" aria-label="Remove"><svg width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true"><path d="M3 3l6 6M9 3l-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button>'), xs = /* @__PURE__ */ $('<span><span class="strand-tag__text"><!></span> <!></span>');
3299
+ function zl(e, t) {
3300
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["variant", "status", "removable", "onremove"]);
3301
+ U(t, !1);
3302
+ const a = /* @__PURE__ */ z();
3303
+ let i = m(t, "variant", 8, "solid"), s = m(t, "status", 8, "default"), o = m(t, "removable", 8, !1), l = m(t, "onremove", 8, void 0);
3304
+ R(() => (A(i()), A(s())), () => {
3305
+ P(a, [
3306
+ "strand-tag",
3307
+ `strand-tag--${i()}`,
3308
+ `strand-tag--${s()}`
3309
+ ].filter(Boolean).join(" "));
3310
+ }), G(), K();
3311
+ var f = xs();
3312
+ q(f, () => ({ class: u(a), ...r }));
3313
+ var c = T(f), h = T(c);
3314
+ te(h, t, "default", {});
3315
+ var d = F(c, 2);
3316
+ {
3317
+ var p = (_) => {
3318
+ var b = Es();
3319
+ W("click", b, () => {
3320
+ var v;
3321
+ return (v = l()) == null ? void 0 : v();
3322
+ }), S(_, b);
3323
+ };
3324
+ Y(d, (_) => {
3325
+ o() && _(p);
3326
+ });
3327
+ }
3328
+ S(e, f), H();
3329
+ }
3330
+ var Ts = /* @__PURE__ */ $('<button type="button" class="strand-table__sort-btn"> <span class="strand-table__sort-indicator" aria-hidden="true"> </span></button>'), Ss = /* @__PURE__ */ $('<th class="strand-table__th"><!></th>'), As = /* @__PURE__ */ $('<td class="strand-table__td"> </td>'), $s = /* @__PURE__ */ $('<tr class="strand-table__row"></tr>'), Cs = /* @__PURE__ */ $('<div><table class="strand-table"><thead class="strand-table__head"><tr></tr></thead><tbody class="strand-table__body"></tbody></table></div>');
3331
+ function jl(e, t) {
3332
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["columns", "data", "onsort"]);
3333
+ U(t, !1);
3334
+ let a = m(t, "columns", 24, () => []), i = m(t, "data", 24, () => []), s = m(t, "onsort", 8, void 0), o = /* @__PURE__ */ z(null), l = /* @__PURE__ */ z("asc");
3335
+ function f(b) {
3336
+ var g;
3337
+ const v = u(o) === b && u(l) === "asc" ? "desc" : "asc";
3338
+ P(o, b), P(l, v), (g = s()) == null || g(b, v);
3339
+ }
3340
+ K();
3341
+ var c = Cs();
3342
+ q(c, () => ({ class: "strand-table-wrapper", ...r }));
3343
+ var h = T(c), d = T(h), p = T(d);
3344
+ je(p, 5, a, (b) => b.key, (b, v) => {
3345
+ var g = Ss(), k = T(g);
3346
+ {
3347
+ var y = (E) => {
3348
+ var C = Ts(), j = T(C), ne = F(j), ce = T(ne);
3349
+ M(() => {
3350
+ I(C, "aria-label", (u(v), D(() => `Sort by ${u(v).header}`))), V(j, `${u(v), D(() => u(v).header) ?? ""} `), V(ce, (u(o), u(v), u(l), D(() => u(o) === u(v).key ? u(l) === "asc" ? "↑" : "↓" : "↕")));
3351
+ }), W("click", C, () => f(u(v).key)), S(E, C);
3352
+ }, w = (E) => {
3353
+ var C = Xr();
3354
+ M(() => V(C, (u(v), D(() => u(v).header)))), S(E, C);
3355
+ };
3356
+ Y(k, (E) => {
3357
+ u(v), D(() => u(v).sortable) ? E(y) : E(w, -1);
3358
+ });
3359
+ }
3360
+ M(() => an(g, (u(v), D(() => u(v).width ? `width: ${u(v).width}` : void 0)))), S(b, g);
3361
+ });
3362
+ var _ = F(d);
3363
+ je(_, 5, i, Ri, (b, v) => {
3364
+ var g = $s();
3365
+ je(g, 5, a, (k) => k.key, (k, y) => {
3366
+ var w = As(), E = T(w);
3367
+ M(() => V(E, (u(v), u(y), D(() => u(v)[u(y).key])))), S(k, w);
3368
+ }), S(b, g);
3369
+ }), S(e, c), H();
3370
+ }
3371
+ var Ps = /* @__PURE__ */ $('<div><span class="strand-data-readout__label"> </span> <span class="strand-data-readout__value"> </span></div>');
3372
+ function Il(e, t) {
3373
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["label", "value", "size"]);
3374
+ U(t, !1);
3375
+ const a = /* @__PURE__ */ z();
3376
+ let i = m(t, "label", 8), s = m(t, "value", 8), o = m(t, "size", 8, void 0);
3377
+ R(() => A(o()), () => {
3378
+ P(a, [
3379
+ "strand-data-readout",
3380
+ o() && o() !== "md" ? `strand-data-readout--${o()}` : ""
3381
+ ].filter(Boolean).join(" "));
3382
+ }), G(), K();
3383
+ var l = Ps();
3384
+ q(l, () => ({ class: u(a), ...r }));
3385
+ var f = T(l), c = T(f), h = F(f, 2), d = T(h);
3386
+ M(() => {
3387
+ V(c, i()), V(d, s());
3388
+ }), S(e, l), H();
3389
+ }
3390
+ var Os = /* @__PURE__ */ $('<span class="strand-code-block__label"> </span>'), zs = /* @__PURE__ */ $('<div><!> <pre class="strand-code-block__pre"><code> </code></pre></div>');
3391
+ function Rl(e, t) {
3392
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["code", "language"]);
3393
+ let a = m(t, "code", 8), i = m(t, "language", 8, void 0);
3394
+ var s = zs();
3395
+ q(s, () => ({ class: "strand-code-block", ...r }));
3396
+ var o = T(s);
3397
+ {
3398
+ var l = (d) => {
3399
+ var p = Os(), _ = T(p);
3400
+ M(() => V(_, i())), S(d, p);
3401
+ };
3402
+ Y(o, (d) => {
3403
+ i() && d(l);
3404
+ });
3405
+ }
3406
+ var f = F(o, 2), c = T(f), h = T(c);
3407
+ M(() => V(h, a())), S(e, s);
3408
+ }
3409
+ var js = /* @__PURE__ */ $("<div><!></div>");
3410
+ function Ml(e, t) {
3411
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["direction", "gap", "align", "justify", "wrap"]);
3412
+ U(t, !1);
3413
+ const a = /* @__PURE__ */ z(), i = /* @__PURE__ */ z();
3414
+ let s = m(t, "direction", 8, "vertical"), o = m(t, "gap", 8, 4), l = m(t, "align", 8, "stretch"), f = m(t, "justify", 8, void 0), c = m(t, "wrap", 8, !1);
3415
+ R(
3416
+ () => (A(s()), A(l()), A(f()), A(c())),
3417
+ () => {
3418
+ P(a, [
3419
+ "strand-stack",
3420
+ `strand-stack--${s()}`,
3421
+ l() !== "stretch" && `strand-stack--align-${l()}`,
3422
+ f() && `strand-stack--justify-${f()}`,
3423
+ c() && "strand-stack--wrap"
3424
+ ].filter(Boolean).join(" "));
3425
+ }
3426
+ ), R(() => A(o()), () => {
3427
+ P(i, `gap: var(--strand-space-${o()});`);
3428
+ }), G(), K();
3429
+ var h = js();
3430
+ q(h, () => ({
3431
+ class: u(a),
3432
+ style: u(i),
3433
+ ...r
3434
+ }));
3435
+ var d = T(h);
3436
+ te(d, t, "default", {}), S(e, h), H();
3437
+ }
3438
+ var Is = /* @__PURE__ */ $("<div><!></div>");
3439
+ function Dl(e, t) {
3440
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["columns", "gap"]);
3441
+ U(t, !1);
3442
+ const a = /* @__PURE__ */ z();
3443
+ let i = m(t, "columns", 8, 1), s = m(t, "gap", 8, 4);
3444
+ R(() => (A(i()), A(s())), () => {
3445
+ P(a, `grid-template-columns: repeat(${i()}, 1fr); gap: var(--strand-space-${s()});`);
3446
+ }), G();
3447
+ var o = Is();
3448
+ q(o, () => ({
3449
+ class: "strand-grid",
3450
+ style: u(a),
3451
+ ...r
3452
+ }));
3453
+ var l = T(o);
3454
+ te(l, t, "default", {}), S(e, o), H();
3455
+ }
3456
+ var Rs = /* @__PURE__ */ $("<div><!></div>");
3457
+ function Ll(e, t) {
3458
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["size"]);
3459
+ U(t, !1);
3460
+ const a = /* @__PURE__ */ z();
3461
+ let i = m(t, "size", 8, "default");
3462
+ R(() => A(i()), () => {
3463
+ P(a, ["strand-container", `strand-container--${i()}`].filter(Boolean).join(" "));
3464
+ }), G(), K();
3465
+ var s = Rs();
3466
+ q(s, () => ({ class: u(a), ...r }));
3467
+ var o = T(s);
3468
+ te(o, t, "default", {}), S(e, s), H();
3469
+ }
3470
+ var Ms = /* @__PURE__ */ $("<div></div>"), Ds = /* @__PURE__ */ $('<div><span class="strand-divider__line"></span> <span class="strand-divider__label"> </span> <span class="strand-divider__line"></span></div>'), Ls = /* @__PURE__ */ $("<hr/>");
3471
+ function Nl(e, t) {
3472
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["direction", "label"]);
3473
+ U(t, !1);
3474
+ const a = /* @__PURE__ */ z();
3475
+ let i = m(t, "direction", 8, "horizontal"), s = m(t, "label", 8, void 0);
3476
+ R(() => A(i()), () => {
3477
+ P(a, i() === "vertical");
3478
+ }), G(), K();
3479
+ var o = qt(), l = wt(o);
3480
+ {
3481
+ var f = (d) => {
3482
+ var p = Ms();
3483
+ q(
3484
+ p,
3485
+ (_) => ({
3486
+ role: "separator",
3487
+ "aria-orientation": "vertical",
3488
+ class: _,
3489
+ ...r
3490
+ }),
3491
+ [
3492
+ () => D(() => ["strand-divider", "strand-divider--vertical"].join(" "))
3493
+ ]
3494
+ ), S(d, p);
3495
+ }, c = (d) => {
3496
+ var p = Ds();
3497
+ q(
3498
+ p,
3499
+ (v) => ({
3500
+ role: "separator",
3501
+ "aria-orientation": "horizontal",
3502
+ class: v,
3503
+ ...r
3504
+ }),
3505
+ [
3506
+ () => D(() => [
3507
+ "strand-divider",
3508
+ "strand-divider--horizontal",
3509
+ "strand-divider--labeled"
3510
+ ].join(" "))
3511
+ ]
3512
+ );
3513
+ var _ = F(T(p), 2), b = T(_);
3514
+ M(() => V(b, s())), S(d, p);
3515
+ }, h = (d) => {
3516
+ var p = Ls();
3517
+ q(
3518
+ p,
3519
+ (_) => ({
3520
+ role: "separator",
3521
+ "aria-orientation": "horizontal",
3522
+ class: _,
3523
+ ...r
3524
+ }),
3525
+ [
3526
+ () => D(() => ["strand-divider", "strand-divider--horizontal"].join(" "))
3527
+ ]
3528
+ ), S(d, p);
3529
+ };
3530
+ Y(l, (d) => {
3531
+ u(a) ? d(f) : s() ? d(c, 1) : d(h, -1);
3532
+ });
3533
+ }
3534
+ S(e, o), H();
3535
+ }
3536
+ var Ns = /* @__PURE__ */ $("<section><!></section>");
3537
+ function Bl(e, t) {
3538
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["variant", "background"]);
3539
+ U(t, !1);
3540
+ const a = /* @__PURE__ */ z();
3541
+ let i = m(t, "variant", 8, "standard"), s = m(t, "background", 8, "primary");
3542
+ R(
3543
+ () => (A(i()), A(s())),
3544
+ () => {
3545
+ P(a, [
3546
+ "strand-section",
3547
+ `strand-section--${i()}`,
3548
+ `strand-section--bg-${s()}`
3549
+ ].filter(Boolean).join(" "));
3550
+ }
3551
+ ), G(), K();
3552
+ var o = Ns();
3553
+ q(o, () => ({ class: u(a), ...r }));
3554
+ var l = T(o);
3555
+ te(l, t, "default", {}), S(e, o), H();
3556
+ }
3557
+ var Bs = /* @__PURE__ */ $("<a><!></a>");
3558
+ function Fl(e, t) {
3559
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["href", "external"]);
3560
+ let a = m(t, "href", 8), i = m(t, "external", 8, !1);
3561
+ var s = Bs();
3562
+ q(s, () => ({
3563
+ href: a(),
3564
+ class: "strand-link",
3565
+ target: i() ? "_blank" : void 0,
3566
+ rel: i() ? "noopener noreferrer" : void 0,
3567
+ ...r
3568
+ }));
3569
+ var o = T(s);
3570
+ te(o, t, "default", {}), S(e, s);
3571
+ }
3572
+ var Fs = /* @__PURE__ */ $('<button role="tab" type="button"> </button>'), qs = /* @__PURE__ */ $('<div role="tabpanel"><!></div>'), Us = /* @__PURE__ */ $('<div><div role="tablist"></div> <!></div>');
3573
+ function ql(e, t) {
3574
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["tabs", "activeTab", "onchange"]);
3575
+ U(t, !1);
3576
+ let a = m(t, "tabs", 24, () => []), i = m(t, "activeTab", 8), s = m(t, "onchange", 8, void 0), o = /* @__PURE__ */ z();
3577
+ function l(_) {
3578
+ var b;
3579
+ (b = s()) == null || b(_);
3580
+ }
3581
+ function f(_) {
3582
+ var v, g, k;
3583
+ const b = a()[_];
3584
+ if (b) {
3585
+ (v = s()) == null || v(b.id);
3586
+ const y = (g = u(o)) == null ? void 0 : g.querySelectorAll('[role="tab"]');
3587
+ (k = y == null ? void 0 : y[_]) == null || k.focus();
3588
+ }
3589
+ }
3590
+ function c(_) {
3591
+ const b = a().findIndex((g) => g.id === i());
3592
+ let v = null;
3593
+ switch (_.key) {
3594
+ case "ArrowRight":
3595
+ v = (b + 1) % a().length;
3596
+ break;
3597
+ case "ArrowLeft":
3598
+ v = (b - 1 + a().length) % a().length;
3599
+ break;
3600
+ case "Home":
3601
+ v = 0;
3602
+ break;
3603
+ case "End":
3604
+ v = a().length - 1;
3605
+ break;
3606
+ default:
3607
+ return;
3608
+ }
3609
+ _.preventDefault(), f(v);
3610
+ }
3611
+ K();
3612
+ var h = Us();
3613
+ q(h, () => ({ class: "strand-tabs", ...r }));
3614
+ var d = T(h);
3615
+ je(d, 5, a, (_) => _.id, (_, b) => {
3616
+ const v = /* @__PURE__ */ Pt(() => (u(b), A(i()), D(() => u(b).id === i())));
3617
+ var g = Fs(), k = T(g);
3618
+ M(
3619
+ (y) => {
3620
+ I(g, "id", (u(b), D(() => `tab-${u(b).id}`))), oe(g, 1, y), I(g, "aria-selected", u(v) ? "true" : "false"), I(g, "aria-controls", (u(b), D(() => `panel-${u(b).id}`))), I(g, "tabindex", u(v) ? 0 : -1), V(k, (u(b), D(() => u(b).label)));
3621
+ },
3622
+ [
3623
+ () => le((A(u(v)), D(() => [
3624
+ "strand-tabs__tab",
3625
+ u(v) && "strand-tabs__tab--active"
3626
+ ].filter(Boolean).join(" "))))
3627
+ ]
3628
+ ), W("click", g, () => l(u(b).id)), S(_, g);
3629
+ }), sn(d, (_) => P(o, _), () => u(o));
3630
+ var p = F(d, 2);
3631
+ je(p, 1, a, (_) => _.id, (_, b) => {
3632
+ const v = /* @__PURE__ */ Pt(() => (u(b), A(i()), D(() => u(b).id === i())));
3633
+ var g = qs();
3634
+ I(g, "tabindex", 0);
3635
+ var k = T(g);
3636
+ {
3637
+ var y = (w) => {
3638
+ var E = qt(), C = wt(E);
3639
+ te(C, t, "default", {}), S(w, E);
3640
+ };
3641
+ Y(k, (w) => {
3642
+ u(v) && w(y);
3643
+ });
3644
+ }
3645
+ M(() => {
3646
+ I(g, "id", (u(b), D(() => `panel-${u(b).id}`))), I(g, "aria-labelledby", (u(b), D(() => `tab-${u(b).id}`))), I(g, "hidden", !u(v));
3647
+ }), S(_, g);
3648
+ }), W("keydown", d, c), S(e, h), H();
3649
+ }
3650
+ var Hs = /* @__PURE__ */ $('<span class="strand-breadcrumb__separator" aria-hidden="true"> </span>'), Vs = /* @__PURE__ */ $('<span class="strand-breadcrumb__current" aria-current="page"> </span>'), Ks = /* @__PURE__ */ $('<a class="strand-breadcrumb__link"> </a>'), Ys = /* @__PURE__ */ $('<li class="strand-breadcrumb__item"><!> <!></li>'), Gs = /* @__PURE__ */ $('<nav><ol class="strand-breadcrumb__list"></ol></nav>');
3651
+ function Ul(e, t) {
3652
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["items", "separator"]);
3653
+ U(t, !1);
3654
+ let a = m(t, "items", 24, () => []), i = m(t, "separator", 8, "/");
3655
+ K();
3656
+ var s = Gs();
3657
+ q(s, () => ({
3658
+ "aria-label": "Breadcrumb",
3659
+ class: "strand-breadcrumb",
3660
+ ...r
3661
+ }));
3662
+ var o = T(s);
3663
+ je(o, 7, a, (l, f) => l.label + f, (l, f, c) => {
3664
+ var h = Ys(), d = T(h);
3665
+ {
3666
+ var p = (g) => {
3667
+ var k = Hs(), y = T(k);
3668
+ M(() => V(y, i())), S(g, k);
3669
+ };
3670
+ Y(d, (g) => {
3671
+ u(c) > 0 && g(p);
3672
+ });
3673
+ }
3674
+ var _ = F(d, 2);
3675
+ {
3676
+ var b = (g) => {
3677
+ var k = Vs(), y = T(k);
3678
+ M(() => V(y, (u(f), D(() => u(f).label)))), S(g, k);
3679
+ }, v = (g) => {
3680
+ var k = Ks(), y = T(k);
3681
+ M(() => {
3682
+ I(k, "href", (u(f), D(() => u(f).href))), V(y, (u(f), D(() => u(f).label)));
3683
+ }), S(g, k);
3684
+ };
3685
+ Y(_, (g) => {
3686
+ A(u(c)), A(a()), D(() => u(c) === a().length - 1) ? g(b) : g(v, -1);
3687
+ });
3688
+ }
3689
+ S(l, h);
3690
+ }), S(e, s), H();
3691
+ }
3692
+ var Ws = /* @__PURE__ */ $('<div class="strand-nav__logo"><!></div>'), Zs = /* @__PURE__ */ $("<a> </a>"), Xs = /* @__PURE__ */ $('<div class="strand-nav__actions"><!></div>'), Js = /* @__PURE__ */ $("<a> </a>"), Qs = /* @__PURE__ */ $('<div class="strand-nav__mobile-menu"></div>'), el = /* @__PURE__ */ $('<nav><div class="strand-nav__inner"><!> <div class="strand-nav__items"></div> <!> <button type="button" class="strand-nav__hamburger"><span class="strand-nav__hamburger-icon" aria-hidden="true"></span></button></div> <!></nav>');
3693
+ function Hl(e, t) {
3694
+ const n = Jr(t), r = O(t, ["children", "$$slots", "$$events", "$$legacy"]), a = O(r, ["items"]);
3695
+ U(t, !1);
3696
+ let i = m(t, "items", 24, () => []), s = /* @__PURE__ */ z(!1);
3697
+ function o() {
3698
+ P(s, !u(s));
3699
+ }
3700
+ K();
3701
+ var l = el();
3702
+ q(l, () => ({
3703
+ class: "strand-nav",
3704
+ "aria-label": "Main navigation",
3705
+ ...a
3706
+ }));
3707
+ var f = T(l), c = T(f);
3708
+ {
3709
+ var h = (k) => {
3710
+ var y = Ws(), w = T(y);
3711
+ te(w, t, "logo", {}), S(k, y);
3712
+ };
3713
+ Y(c, (k) => {
3714
+ D(() => n.logo) && k(h);
3715
+ });
3716
+ }
3717
+ var d = F(c, 2);
3718
+ je(d, 5, i, (k) => k.href, (k, y) => {
3719
+ var w = Zs(), E = T(w);
3720
+ M(
3721
+ (C) => {
3722
+ I(w, "href", (u(y), D(() => u(y).href))), oe(w, 1, C), I(w, "aria-current", (u(y), D(() => u(y).active ? "page" : void 0))), V(E, (u(y), D(() => u(y).label)));
3723
+ },
3724
+ [
3725
+ () => le((u(y), D(() => [
3726
+ "strand-nav__link",
3727
+ u(y).active && "strand-nav__link--active"
3728
+ ].filter(Boolean).join(" "))))
3729
+ ]
3730
+ ), S(k, w);
3731
+ });
3732
+ var p = F(d, 2);
3733
+ {
3734
+ var _ = (k) => {
3735
+ var y = Xs(), w = T(y);
3736
+ te(w, t, "actions", {}), S(k, y);
3737
+ };
3738
+ Y(p, (k) => {
3739
+ D(() => n.actions) && k(_);
3740
+ });
3741
+ }
3742
+ var b = F(p, 2), v = F(f, 2);
3743
+ {
3744
+ var g = (k) => {
3745
+ var y = Qs();
3746
+ je(y, 5, i, (w) => w.href, (w, E) => {
3747
+ var C = Js(), j = T(C);
3748
+ M(
3749
+ (ne) => {
3750
+ I(C, "href", (u(E), D(() => u(E).href))), oe(C, 1, ne), I(C, "aria-current", (u(E), D(() => u(E).active ? "page" : void 0))), V(j, (u(E), D(() => u(E).label)));
3751
+ },
3752
+ [
3753
+ () => le((u(E), D(() => [
3754
+ "strand-nav__mobile-link",
3755
+ u(E).active && "strand-nav__mobile-link--active"
3756
+ ].filter(Boolean).join(" "))))
3757
+ ]
3758
+ ), S(w, C);
3759
+ }), S(k, y);
3760
+ };
3761
+ Y(v, (k) => {
3762
+ u(s) && k(g);
3763
+ });
3764
+ }
3765
+ M(() => {
3766
+ I(b, "aria-expanded", u(s) ? "true" : "false"), I(b, "aria-label", u(s) ? "Close menu" : "Menu");
3767
+ }), W("click", b, o), S(e, l), H();
3768
+ }
3769
+ var tl = /* @__PURE__ */ $('<div><span class="strand-toast__message"> </span> <button type="button" class="strand-toast__dismiss" aria-label="Dismiss">&#215;</button></div>');
3770
+ function Vl(e, t) {
3771
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["status", "message", "ondismiss"]);
3772
+ U(t, !1);
3773
+ const a = /* @__PURE__ */ z(), i = /* @__PURE__ */ z();
3774
+ let s = m(t, "status", 8, "info"), o = m(t, "message", 8), l = m(t, "ondismiss", 8, void 0);
3775
+ R(() => A(s()), () => {
3776
+ P(a, s() === "error" || s() === "warning");
3777
+ }), R(() => A(s()), () => {
3778
+ P(i, ["strand-toast", `strand-toast--${s()}`].filter(Boolean).join(" "));
3779
+ }), G(), K();
3780
+ var f = tl();
3781
+ q(f, () => ({
3782
+ class: u(i),
3783
+ role: "status",
3784
+ "aria-live": u(a) ? "assertive" : "polite",
3785
+ ...r
3786
+ }));
3787
+ var c = T(f), h = T(c), d = F(c, 2);
3788
+ M(() => V(h, o())), W("click", d, () => {
3789
+ var p;
3790
+ return (p = l()) == null ? void 0 : p();
3791
+ }), S(e, f), H();
3792
+ }
3793
+ /*! Strand Svelte | MIT License | dillingerstaffing.com */
3794
+ const aa = Symbol("StrandToast");
3795
+ let nl = 0;
3796
+ function rl() {
3797
+ const e = ua([]), t = /* @__PURE__ */ new Map();
3798
+ function n(i) {
3799
+ const s = t.get(i);
3800
+ s !== void 0 && (clearTimeout(s), t.delete(i)), e.update((o) => o.filter((l) => l.id !== i));
3801
+ }
3802
+ function r(i) {
3803
+ const s = {
3804
+ id: ++nl,
3805
+ message: i.message,
3806
+ status: i.status ?? "info",
3807
+ duration: i.duration ?? 5e3
3808
+ };
3809
+ if (e.update((o) => [...o, s]), s.duration > 0) {
3810
+ const o = setTimeout(() => {
3811
+ n(s.id);
3812
+ }, s.duration);
3813
+ t.set(s.id, o);
3814
+ }
3815
+ }
3816
+ const a = {
3817
+ toasts: e,
3818
+ toast: r,
3819
+ removeToast: n
3820
+ };
3821
+ return la(aa, a), a;
3822
+ }
3823
+ function Kl() {
3824
+ const e = oa(aa);
3825
+ if (!e)
3826
+ throw new Error("getToastContext must be used within a ToastProvider");
3827
+ return e;
3828
+ }
3829
+ var al = /* @__PURE__ */ $('<div role="status"><span class="strand-toast__message"> </span> <button type="button" class="strand-toast__dismiss" aria-label="Dismiss">&#215;</button></div>'), il = /* @__PURE__ */ $('<div class="strand-toast__container"></div>'), sl = /* @__PURE__ */ $("<!> <!>", 1);
3830
+ function Yl(e, t) {
3831
+ U(t, !1);
3832
+ const n = rl(), { toasts: r, removeToast: a } = n;
3833
+ let i = /* @__PURE__ */ z([]);
3834
+ const s = r.subscribe((d) => {
3835
+ P(i, d);
3836
+ });
3837
+ function o(d) {
3838
+ return d === "error" || d === "warning";
3839
+ }
3840
+ fr(() => {
3841
+ s();
3842
+ }), K();
3843
+ var l = sl(), f = wt(l);
3844
+ te(f, t, "default", {});
3845
+ var c = F(f, 2);
3846
+ {
3847
+ var h = (d) => {
3848
+ var p = il();
3849
+ je(p, 5, () => u(i), (_) => _.id, (_, b) => {
3850
+ var v = al(), g = T(v), k = T(g), y = F(g, 2);
3851
+ M(
3852
+ (w, E) => {
3853
+ oe(v, 1, w), I(v, "aria-live", E), V(k, u(b).message);
3854
+ },
3855
+ [
3856
+ () => le(["strand-toast", `strand-toast--${u(b).status}`].join(" ")),
3857
+ () => o(u(b).status) ? "assertive" : "polite"
3858
+ ]
3859
+ ), W("click", y, () => a(u(b).id)), S(_, v);
3860
+ }), S(d, p);
3861
+ };
3862
+ Y(c, (d) => {
3863
+ u(i).length > 0 && d(h);
3864
+ });
3865
+ }
3866
+ S(e, l), H();
3867
+ }
3868
+ var ll = /* @__PURE__ */ $('<button type="button" class="strand-alert__dismiss" aria-label="Dismiss">&#215;</button>'), ol = /* @__PURE__ */ $('<div><div class="strand-alert__content"><!></div> <!></div>');
3869
+ function Gl(e, t) {
3870
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["status", "dismissible", "ondismiss"]);
3871
+ U(t, !1);
3872
+ const a = /* @__PURE__ */ z(), i = /* @__PURE__ */ z();
3873
+ let s = m(t, "status", 8, "info"), o = m(t, "dismissible", 8, !1), l = m(t, "ondismiss", 8, void 0);
3874
+ R(() => A(s()), () => {
3875
+ P(a, s() === "error" || s() === "warning" ? "alert" : "status");
3876
+ }), R(() => A(s()), () => {
3877
+ P(i, ["strand-alert", `strand-alert--${s()}`].filter(Boolean).join(" "));
3878
+ }), G(), K();
3879
+ var f = ol();
3880
+ q(f, () => ({ class: u(i), role: u(a), ...r }));
3881
+ var c = T(f), h = T(c);
3882
+ te(h, t, "default", {});
3883
+ var d = F(c, 2);
3884
+ {
3885
+ var p = (_) => {
3886
+ var b = ll();
3887
+ W("click", b, () => {
3888
+ var v;
3889
+ return (v = l()) == null ? void 0 : v();
3890
+ }), S(_, b);
3891
+ };
3892
+ Y(d, (_) => {
3893
+ o() && _(p);
3894
+ });
3895
+ }
3896
+ S(e, f), H();
3897
+ }
3898
+ var fl = /* @__PURE__ */ $('<div class="strand-dialog__header"><h2 class="strand-dialog__title"> </h2></div>'), ul = /* @__PURE__ */ $('<div class="strand-dialog__backdrop"><div class="strand-dialog__panel" role="dialog" aria-modal="true"><!> <button type="button" class="strand-dialog__close" aria-label="Close">&#215;</button> <div class="strand-dialog__body"><!></div></div></div>');
3899
+ function Wl(e, t) {
3900
+ U(t, !1);
3901
+ let n = m(t, "open", 8, !1), r = m(t, "title", 8, void 0), a = m(t, "closeOnOutsideClick", 8, !0), i = m(t, "closeOnEscape", 8, !0), s = m(t, "onclose", 8, void 0);
3902
+ const o = 'a[href], button:not(:disabled), textarea:not(:disabled), input:not(:disabled), select:not(:disabled), [tabindex]:not([tabindex="-1"])';
3903
+ let l = 0;
3904
+ const f = `strand-dialog-title-${++l}`;
3905
+ let c = /* @__PURE__ */ z(), h = null, d = "";
3906
+ async function p() {
3907
+ if (h = document.activeElement, d = document.body.style.overflow, document.body.style.overflow = "hidden", await fa(), u(c)) {
3908
+ const w = u(c).querySelectorAll(o);
3909
+ w.length > 0 ? w[0].focus() : u(c).focus();
3910
+ }
3911
+ }
3912
+ function _() {
3913
+ d !== void 0 && (document.body.style.overflow = d), h && h instanceof HTMLElement && h.focus();
3914
+ }
3915
+ function b(w) {
3916
+ var E;
3917
+ if (w.key === "Escape" && i()) {
3918
+ w.stopPropagation(), (E = s()) == null || E();
3919
+ return;
3920
+ }
3921
+ if (w.key === "Tab" && u(c)) {
3922
+ const C = Array.from(u(c).querySelectorAll(o));
3923
+ if (C.length === 0) return;
3924
+ const j = C[0], ne = C[C.length - 1];
3925
+ w.shiftKey ? document.activeElement === j && (w.preventDefault(), ne.focus()) : document.activeElement === ne && (w.preventDefault(), j.focus());
3926
+ }
3927
+ }
3928
+ function v(w) {
3929
+ var E;
3930
+ a() && w.target === w.currentTarget && ((E = s()) == null || E());
3931
+ }
3932
+ fr(() => {
3933
+ n() && (document.body.style.overflow = d);
3934
+ }), R(() => A(n()), () => {
3935
+ n() ? p() : _();
3936
+ }), G(), K();
3937
+ var g = qt(), k = wt(g);
3938
+ {
3939
+ var y = (w) => {
3940
+ var E = ul(), C = T(E);
3941
+ I(C, "tabindex", -1);
3942
+ var j = T(C);
3943
+ {
3944
+ var ne = (ve) => {
3945
+ var yt = fl(), kt = T(yt), Ut = T(kt);
3946
+ M(() => {
3947
+ I(kt, "id", f), V(Ut, r());
3948
+ }), S(ve, yt);
3949
+ };
3950
+ Y(j, (ve) => {
3951
+ r() && ve(ne);
3952
+ });
3953
+ }
3954
+ var ce = F(j, 2), fe = F(ce, 2), lt = T(fe);
3955
+ te(lt, t, "default", {}), sn(C, (ve) => P(c, ve), () => u(c)), M(() => I(C, "aria-labelledby", r() ? f : void 0)), W("click", ce, () => {
3956
+ var ve;
3957
+ return (ve = s()) == null ? void 0 : ve();
3958
+ }), W("click", E, v), W("keydown", E, b), S(w, E);
3959
+ };
3960
+ Y(k, (w) => {
3961
+ n() && w(y);
3962
+ });
3963
+ }
3964
+ S(e, g), H();
3965
+ }
3966
+ var dl = /* @__PURE__ */ $('<span><!> <span role="tooltip"> </span></span>');
3967
+ function Zl(e, t) {
3968
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["content", "position", "delay"]);
3969
+ U(t, !1);
3970
+ const a = /* @__PURE__ */ z();
3971
+ let i = m(t, "content", 8), s = m(t, "position", 8, "top"), o = m(t, "delay", 8, 200), l = /* @__PURE__ */ z(!1), f = null, c = 0;
3972
+ const h = `strand-tooltip-${++c}`;
3973
+ function d() {
3974
+ f = setTimeout(
3975
+ () => {
3976
+ P(l, !0);
3977
+ },
3978
+ o()
3979
+ );
3980
+ }
3981
+ function p() {
3982
+ f !== null && (clearTimeout(f), f = null), P(l, !1);
3983
+ }
3984
+ R(() => (A(s()), u(l)), () => {
3985
+ P(a, [
3986
+ "strand-tooltip",
3987
+ `strand-tooltip--${s()}`,
3988
+ u(l) && "strand-tooltip--visible"
3989
+ ].filter(Boolean).join(" "));
3990
+ }), G(), K();
3991
+ var _ = dl();
3992
+ q(_, () => ({
3993
+ class: "strand-tooltip__wrapper",
3994
+ "aria-describedby": h,
3995
+ ...r
3996
+ }));
3997
+ var b = T(_);
3998
+ te(b, t, "default", {});
3999
+ var v = F(b, 2), g = T(v);
4000
+ M(() => {
4001
+ I(v, "id", h), oe(v, 1, le(u(a))), I(v, "aria-hidden", !u(l)), V(g, i());
4002
+ }), W("mouseenter", _, d), W("mouseleave", _, p), W("focus", _, d), W("blur", _, p), S(e, _), H();
4003
+ }
4004
+ var cl = /* @__PURE__ */ $('<div><svg class="strand-progress__ring"><circle fill="none" class="strand-progress__track"></circle><circle fill="none" stroke-linecap="round" class="strand-progress__fill"></circle></svg></div>'), vl = /* @__PURE__ */ $('<div><div class="strand-progress__fill"></div></div>');
4005
+ function Xl(e, t) {
4006
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["variant", "value", "size"]);
4007
+ U(t, !1);
4008
+ const a = /* @__PURE__ */ z(), i = /* @__PURE__ */ z(), s = /* @__PURE__ */ z(), o = /* @__PURE__ */ z(), l = /* @__PURE__ */ z(), f = /* @__PURE__ */ z();
4009
+ let c = m(t, "variant", 8, "bar"), h = m(t, "value", 8, void 0), d = m(t, "size", 8, "md");
4010
+ const p = { sm: 24, md: 40, lg: 56 }, _ = 3;
4011
+ R(() => A(h()), () => {
4012
+ P(a, h() != null);
4013
+ }), R(
4014
+ () => (A(c()), A(d()), u(a)),
4015
+ () => {
4016
+ P(i, [
4017
+ "strand-progress",
4018
+ `strand-progress--${c()}`,
4019
+ `strand-progress--${d()}`,
4020
+ !u(a) && "strand-progress--indeterminate"
4021
+ ].filter(Boolean).join(" "));
4022
+ }
4023
+ ), R(() => A(d()), () => {
4024
+ P(s, p[d()] ?? p.md);
4025
+ }), R(() => u(s), () => {
4026
+ P(o, (u(s) - _) / 2);
4027
+ }), R(() => u(o), () => {
4028
+ P(l, 2 * Math.PI * u(o));
4029
+ }), R(
4030
+ () => (u(a), u(l), A(h())),
4031
+ () => {
4032
+ P(f, u(a) ? u(l) - u(l) * h() / 100 : 0);
4033
+ }
4034
+ ), G(), K();
4035
+ var b = qt(), v = wt(b);
4036
+ {
4037
+ var g = (y) => {
4038
+ var w = cl();
4039
+ q(w, () => ({
4040
+ class: u(i),
4041
+ role: "progressbar",
4042
+ "aria-valuemin": 0,
4043
+ "aria-valuemax": 100,
4044
+ "aria-valuenow": u(a) ? h() : void 0,
4045
+ ...r
4046
+ }));
4047
+ var E = T(w), C = T(E);
4048
+ I(C, "stroke-width", _);
4049
+ var j = F(C);
4050
+ I(j, "stroke-width", _), M(() => {
4051
+ I(E, "width", u(s)), I(E, "height", u(s)), I(E, "viewBox", `0 0 ${u(s)} ${u(s)}`), I(C, "cx", u(s) / 2), I(C, "cy", u(s) / 2), I(C, "r", u(o)), I(j, "cx", u(s) / 2), I(j, "cy", u(s) / 2), I(j, "r", u(o)), I(j, "stroke-dasharray", u(l)), I(j, "stroke-dashoffset", u(a) ? u(f) : void 0), I(j, "transform", `rotate(-90 ${u(s) / 2} ${u(s) / 2})`);
4052
+ }), S(y, w);
4053
+ }, k = (y) => {
4054
+ var w = vl();
4055
+ q(w, () => ({
4056
+ class: u(i),
4057
+ role: "progressbar",
4058
+ "aria-valuemin": 0,
4059
+ "aria-valuemax": 100,
4060
+ "aria-valuenow": u(a) ? h() : void 0,
4061
+ ...r
4062
+ }));
4063
+ var E = T(w);
4064
+ M(() => an(E, u(a) ? `width: ${h()}%` : void 0)), S(y, w);
4065
+ };
4066
+ Y(v, (y) => {
4067
+ c() === "ring" ? y(g) : y(k, -1);
4068
+ });
4069
+ }
4070
+ S(e, b), H();
4071
+ }
4072
+ var _l = /* @__PURE__ */ $('<span><span class="strand-spinner__ring" aria-hidden="true"></span> <span class="strand-spinner__sr-only">Loading</span></span>');
4073
+ function Jl(e, t) {
4074
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["size"]);
4075
+ U(t, !1);
4076
+ const a = /* @__PURE__ */ z();
4077
+ let i = m(t, "size", 8, "md");
4078
+ R(() => A(i()), () => {
4079
+ P(a, ["strand-spinner", `strand-spinner--${i()}`].filter(Boolean).join(" "));
4080
+ }), G(), K();
4081
+ var s = _l();
4082
+ q(s, () => ({ class: u(a), role: "status", ...r })), S(e, s), H();
4083
+ }
4084
+ var hl = /* @__PURE__ */ $("<div></div>");
4085
+ function Ql(e, t) {
4086
+ const n = O(t, ["children", "$$slots", "$$events", "$$legacy"]), r = O(n, ["variant", "width", "height"]);
4087
+ U(t, !1);
4088
+ const a = /* @__PURE__ */ z(), i = /* @__PURE__ */ z(), s = /* @__PURE__ */ z(), o = /* @__PURE__ */ z();
4089
+ let l = m(t, "variant", 8, "text"), f = m(t, "width", 8, void 0), c = m(t, "height", 8, void 0);
4090
+ R(() => (A(f()), A(l())), () => {
4091
+ P(a, f() ?? (l() === "text" ? "100%" : void 0));
4092
+ }), R(
4093
+ () => (A(l()), u(a), A(c())),
4094
+ () => {
4095
+ P(i, l() === "circle" ? u(a) : c());
4096
+ }
4097
+ ), R(() => A(l()), () => {
4098
+ P(s, [
4099
+ "strand-skeleton",
4100
+ `strand-skeleton--${l()}`,
4101
+ "strand-skeleton--shimmer"
4102
+ ].filter(Boolean).join(" "));
4103
+ }), R(() => (u(a), u(i)), () => {
4104
+ P(o, [
4105
+ u(a) ? `width: ${u(a)}` : "",
4106
+ u(i) ? `height: ${u(i)}` : ""
4107
+ ].filter(Boolean).join("; "));
4108
+ }), G(), K();
4109
+ var h = hl();
4110
+ q(h, () => ({
4111
+ class: u(s),
4112
+ "aria-hidden": "true",
4113
+ style: u(o) || void 0,
4114
+ ...r
4115
+ })), S(e, h), H();
4116
+ }
4117
+ export {
4118
+ Gl as Alert,
4119
+ Ol as Avatar,
4120
+ Pl as Badge,
4121
+ Ul as Breadcrumb,
4122
+ ml as Button,
4123
+ Cl as Card,
4124
+ xl as Checkbox,
4125
+ Rl as CodeBlock,
4126
+ Ll as Container,
4127
+ Il as DataReadout,
4128
+ Wl as Dialog,
4129
+ Nl as Divider,
4130
+ $l as FormField,
4131
+ Dl as Grid,
4132
+ yl as Input,
4133
+ Fl as Link,
4134
+ Hl as Nav,
4135
+ Xl as Progress,
4136
+ Tl as Radio,
4137
+ Bl as Section,
4138
+ El as Select,
4139
+ Ql as Skeleton,
4140
+ Al as Slider,
4141
+ Jl as Spinner,
4142
+ Ml as Stack,
4143
+ Sl as Switch,
4144
+ jl as Table,
4145
+ ql as Tabs,
4146
+ zl as Tag,
4147
+ kl as Textarea,
4148
+ Vl as Toast,
4149
+ Yl as ToastProvider,
4150
+ Zl as Tooltip,
4151
+ rl as createToastContext,
4152
+ Kl as getToastContext
4153
+ };
4154
+ //# sourceMappingURL=index.js.map