@pie-players/pie-tool-tts-inline 0.3.69 → 0.3.70

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 (2) hide show
  1. package/dist/tool-tts-inline.js +1337 -1310
  2. package/package.json +8 -8
@@ -1,13 +1,13 @@
1
1
  import { PIE_TTS_CONTROL_HANDOFF_EVENT as e, catalogOwnerContextFor as t, connectToolRegionScopeContext as n, connectToolRuntimeContext as r, connectToolShellContext as i, normalizeTTSSpeedControlOptions as a } from "@pie-players/pie-assessment-toolkit";
2
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/disclose-version.js
2
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/disclose-version.js
3
3
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
4
4
  //#endregion
5
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/constants.js
6
- var o = {}, s = Symbol("uninitialized"), c = "http://www.w3.org/1999/xhtml", l = Array.isArray, u = Array.prototype.indexOf, d = Array.prototype.includes, f = Array.from, p = Object.keys, m = Object.defineProperty, h = Object.getOwnPropertyDescriptor, g = Object.getOwnPropertyDescriptors, _ = Object.prototype, v = Array.prototype, y = Object.getPrototypeOf, b = Object.isExtensible, x = () => {};
7
- function S(e) {
5
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/constants.js
6
+ var o = {}, s = Symbol("uninitialized"), c = "http://www.w3.org/1999/xhtml", l = Array.isArray, u = Array.prototype.indexOf, d = Array.prototype.includes, f = Array.from, p = Object.keys, m = Object.defineProperty, h = Object.getOwnPropertyDescriptor, g = Object.getOwnPropertyDescriptors, _ = Object.prototype, v = Array.prototype, y = Object.getPrototypeOf, ee = Object.isExtensible, b = () => {};
7
+ function x(e) {
8
8
  for (var t = 0; t < e.length; t++) e[t]();
9
9
  }
10
- function ee() {
10
+ function te() {
11
11
  var e, t;
12
12
  return {
13
13
  promise: new Promise((n, r) => {
@@ -17,85 +17,47 @@ function ee() {
17
17
  reject: t
18
18
  };
19
19
  }
20
- var C = 1024, w = 2048, te = 4096, T = 8192, E = 16384, ne = 32768, re = 1 << 25, D = 65536, O = 1 << 19, ie = 1 << 20, k = 1 << 25, ae = 65536, oe = 1 << 21, A = 1 << 22, se = 1 << 23, j = Symbol("$state"), M = Symbol("legacy props"), N = Symbol(""), ce = Symbol("attributes"), le = Symbol("class"), ue = Symbol("style"), de = Symbol("text"), fe = new class extends Error {
20
+ var S = 1024, C = 2048, ne = 4096, w = 8192, T = 16384, re = 32768, ie = 1 << 25, E = 65536, D = 1 << 19, ae = 1 << 20, O = 1 << 25, oe = 65536, se = 1 << 21, k = 1 << 22, ce = 1 << 23, A = Symbol("$state"), j = Symbol("component"), M = Symbol("legacy props"), le = Symbol(""), ue = Symbol("attributes"), de = Symbol("class"), fe = Symbol("style"), pe = Symbol("text"), me = new class extends Error {
21
21
  name = "StaleReactionError";
22
22
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
23
- }(), pe = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
24
- //#endregion
25
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/errors.js
26
- function me() {
27
- throw Error("https://svelte.dev/e/async_derived_orphan");
28
- }
29
- function he(e, t, n) {
30
- throw Error("https://svelte.dev/e/each_key_duplicate");
31
- }
32
- function ge(e) {
33
- throw Error("https://svelte.dev/e/effect_in_teardown");
34
- }
35
- function _e() {
36
- throw Error("https://svelte.dev/e/effect_in_unowned_derived");
37
- }
38
- function ve(e) {
39
- throw Error("https://svelte.dev/e/effect_orphan");
40
- }
41
- function ye() {
42
- throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
43
- }
44
- function be() {
45
- throw Error("https://svelte.dev/e/hydration_failed");
46
- }
47
- function xe(e) {
48
- throw Error("https://svelte.dev/e/props_invalid_value");
49
- }
50
- function Se() {
51
- throw Error("https://svelte.dev/e/state_descriptors_fixed");
52
- }
53
- function Ce() {
54
- throw Error("https://svelte.dev/e/state_prototype_fixed");
55
- }
56
- function we() {
57
- throw Error("https://svelte.dev/e/state_unsafe_mutation");
58
- }
59
- function Te() {
60
- throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
61
- }
62
- function Ee() {
23
+ }(), he = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
24
+ function ge() {
63
25
  console.warn("https://svelte.dev/e/derived_inert");
64
26
  }
65
- function De(e) {
27
+ function _e(e) {
66
28
  console.warn("https://svelte.dev/e/hydration_mismatch");
67
29
  }
68
- function Oe() {
30
+ function ve() {
69
31
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
70
32
  }
71
33
  //#endregion
72
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/hydration.js
73
- var P = !1;
74
- function F(e) {
75
- P = e;
34
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/hydration.js
35
+ var N = !1;
36
+ function P(e) {
37
+ N = e;
76
38
  }
77
- var I;
78
- function L(e) {
79
- if (e === null) throw De(), o;
80
- return I = e;
39
+ var F;
40
+ function I(e) {
41
+ if (e === null) throw _e(), o;
42
+ return F = e;
81
43
  }
82
- function ke() {
83
- return L(/* @__PURE__ */ Zt(I));
44
+ function ye() {
45
+ return I(/* @__PURE__ */ qt(F));
84
46
  }
85
- function Ae(e) {
86
- if (P) {
87
- if (/* @__PURE__ */ Zt(I) !== null) throw De(), o;
88
- I = e;
47
+ function be(e) {
48
+ if (N) {
49
+ if (/* @__PURE__ */ qt(F) !== null) throw _e(), o;
50
+ F = e;
89
51
  }
90
52
  }
91
- function je(e = 1) {
92
- if (P) {
93
- for (var t = e, n = I; t--;) n = /* @__PURE__ */ Zt(n);
94
- I = n;
53
+ function xe(e = 1) {
54
+ if (N) {
55
+ for (var t = e, n = F; t--;) n = /* @__PURE__ */ qt(n);
56
+ F = n;
95
57
  }
96
58
  }
97
- function Me(e = !0) {
98
- for (var t = 0, n = I;;) {
59
+ function L(e = !0) {
60
+ for (var t = 0, n = F;;) {
99
61
  if (n.nodeType === 8) {
100
62
  var r = n.data;
101
63
  if (r === "]") {
@@ -103,32 +65,70 @@ function Me(e = !0) {
103
65
  --t;
104
66
  } else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
105
67
  }
106
- var i = /* @__PURE__ */ Zt(n);
68
+ var i = /* @__PURE__ */ qt(n);
107
69
  e && n.remove(), n = i;
108
70
  }
109
71
  }
110
- function Ne(e) {
111
- if (!e || e.nodeType !== 8) throw De(), o;
72
+ function Se(e) {
73
+ if (!e || e.nodeType !== 8) throw _e(), o;
112
74
  return e.data;
113
75
  }
114
76
  //#endregion
115
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/equality.js
116
- function Pe(e) {
77
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/equality.js
78
+ function Ce(e) {
117
79
  return e === this.v;
118
80
  }
119
- function Fe(e, t) {
81
+ function we(e, t) {
120
82
  return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
121
83
  }
122
- function Ie(e) {
123
- return !Fe(e, this.v);
84
+ function Te(e) {
85
+ return !we(e, this.v);
86
+ }
87
+ //#endregion
88
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/errors.js
89
+ function Ee() {
90
+ throw Error("https://svelte.dev/e/async_derived_orphan");
91
+ }
92
+ function De(e, t, n) {
93
+ throw Error("https://svelte.dev/e/each_key_duplicate");
94
+ }
95
+ function Oe(e) {
96
+ throw Error("https://svelte.dev/e/effect_in_teardown");
97
+ }
98
+ function ke() {
99
+ throw Error("https://svelte.dev/e/effect_in_unowned_derived");
100
+ }
101
+ function Ae(e) {
102
+ throw Error("https://svelte.dev/e/effect_orphan");
103
+ }
104
+ function je() {
105
+ throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
106
+ }
107
+ function Me() {
108
+ throw Error("https://svelte.dev/e/hydration_failed");
109
+ }
110
+ function Ne(e) {
111
+ throw Error("https://svelte.dev/e/props_invalid_value");
112
+ }
113
+ function Pe() {
114
+ throw Error("https://svelte.dev/e/state_descriptors_fixed");
115
+ }
116
+ function Fe() {
117
+ throw Error("https://svelte.dev/e/state_prototype_fixed");
118
+ }
119
+ function Ie() {
120
+ throw Error("https://svelte.dev/e/state_unsafe_mutation");
121
+ }
122
+ function Le() {
123
+ throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
124
124
  }
125
125
  //#endregion
126
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/context.js
126
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/context.js
127
127
  var R = null;
128
- function Le(e) {
128
+ function Re(e) {
129
129
  R = e;
130
130
  }
131
- function Re(e, t = !1, n) {
131
+ function ze(e, t = !1, n) {
132
132
  R = {
133
133
  p: R,
134
134
  i: !1,
@@ -140,343 +140,134 @@ function Re(e, t = !1, n) {
140
140
  l: null
141
141
  };
142
142
  }
143
- function ze(e) {
143
+ function Be(e) {
144
144
  var t = R, n = t.e;
145
145
  if (n !== null) {
146
146
  t.e = null;
147
- for (var r of n) fn(r);
147
+ for (var r of n) dn(r);
148
148
  }
149
- return e !== void 0 && (t.x = e), t.i = !0, R = t.p, e ?? {};
149
+ return e !== void 0 && (t.x = e), t.i = !0, R = t.p, Ve(e);
150
150
  }
151
- function Be() {
152
- return !0;
151
+ function Ve(e = {}) {
152
+ return m(e, j, { value: !0 }), e;
153
153
  }
154
- //#endregion
155
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/task.js
156
- var Ve = [];
157
154
  function He() {
158
- var e = Ve;
159
- Ve = [], S(e);
155
+ return !0;
160
156
  }
161
- function z(e) {
162
- if (Ve.length === 0 && !bt) {
163
- var t = Ve;
157
+ //#endregion
158
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/task.js
159
+ var Ue = [];
160
+ function We() {
161
+ var e = Ue;
162
+ Ue = [], x(e);
163
+ }
164
+ function Ge(e) {
165
+ if (Ue.length === 0 && !gt) {
166
+ var t = Ue;
164
167
  queueMicrotask(() => {
165
- t === Ve && He();
168
+ t === Ue && We();
166
169
  });
167
170
  }
168
- Ve.push(e);
169
- }
170
- function Ue() {
171
- for (; Ve.length > 0;) He();
172
- }
173
- function We(e) {
174
- var t = J;
175
- if (t === null) return K.f |= se, e;
176
- if (!(t.f & 32768) && !(t.f & 4)) throw e;
177
- Ge(e, t);
171
+ Ue.push(e);
178
172
  }
179
- function Ge(e, t) {
180
- if (!(t !== null && t.f & 16384)) {
181
- for (; t !== null;) {
182
- if (t.f & 128) {
183
- if (!(t.f & 32768)) throw e;
184
- try {
185
- t.b.error(e);
186
- return;
187
- } catch (t) {
188
- e = t;
189
- }
190
- }
191
- t = t.parent;
192
- }
193
- throw e;
194
- }
173
+ function Ke() {
174
+ for (; Ue.length > 0;) We();
195
175
  }
196
176
  //#endregion
197
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/status.js
198
- var Ke = ~(w | te | C);
199
- function B(e, t) {
200
- e.f = e.f & Ke | t;
177
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/status.js
178
+ var qe = ~(C | ne | S);
179
+ function z(e, t) {
180
+ e.f = e.f & qe | t;
201
181
  }
202
- function qe(e) {
203
- e.f & 512 || e.deps === null ? B(e, C) : B(e, te);
182
+ function Je(e) {
183
+ e.f & 512 || e.deps === null ? z(e, S) : z(e, ne);
204
184
  }
205
185
  //#endregion
206
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/utils.js
207
- function Je(e) {
208
- if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ae, Je(t.deps));
186
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/utils.js
187
+ function Ye(e) {
188
+ if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= oe, Ye(t.deps));
209
189
  }
210
- function Ye(e, t, n) {
211
- e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Je(e.deps), B(e, C);
190
+ function Xe(e, t, n) {
191
+ e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Ye(e.deps), z(e, S);
212
192
  }
213
193
  //#endregion
214
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/store.js
215
- var Xe = !1;
216
- function Ze(e) {
217
- var t = Xe;
194
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/store.js
195
+ var Ze = !1;
196
+ function Qe(e) {
197
+ var t = Ze;
218
198
  try {
219
- return Xe = !1, [e(), Xe];
199
+ return Ze = !1, [e(), Ze];
220
200
  } finally {
221
- Xe = t;
201
+ Ze = t;
222
202
  }
223
203
  }
224
204
  //#endregion
225
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
226
- function Qe(e) {
205
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
206
+ function $e(e) {
227
207
  var t = K, n = J;
228
- q(null), In(null);
208
+ q(null), Fn(null);
229
209
  try {
230
210
  return e();
231
211
  } finally {
232
- q(t), In(n);
212
+ q(t), Fn(n);
233
213
  }
234
214
  }
235
215
  //#endregion
236
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/reactivity/create-subscriber.js
237
- function $e(e) {
238
- let t = 0, n = Lt(0), r;
239
- return () => {
240
- ln() && (Z(n), _n(() => (t === 0 && (r = er(() => e(() => Vt(n)))), t += 1, () => {
241
- z(() => {
242
- --t, t === 0 && (r?.(), r = void 0, Vt(n));
243
- });
244
- })));
245
- };
246
- }
247
- //#endregion
248
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
249
- var et = D | O;
250
- function tt(e, t, n, r) {
251
- new nt(e, t, n, r);
252
- }
253
- var nt = class {
254
- parent;
255
- is_pending = !1;
256
- transform_error;
257
- #e;
258
- #t = P ? I : null;
259
- #n;
260
- #r;
261
- #i;
262
- #a = null;
263
- #o = null;
264
- #s = null;
265
- #c = null;
266
- #l = 0;
267
- #u = 0;
268
- #d = !1;
269
- #f = /* @__PURE__ */ new Set();
270
- #p = /* @__PURE__ */ new Set();
271
- #m = null;
272
- #h = $e(() => (this.#m = Lt(this.#l), () => {
273
- this.#m = null;
274
- }));
275
- constructor(e, t, n, r) {
276
- this.#e = e, this.#n = t, this.#r = (e) => {
277
- var t = J;
278
- t.b = this, t.f |= 128, n(e);
279
- }, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = yn(() => {
280
- if (P) {
281
- let e = this.#t;
282
- ke();
283
- let t = e.data === "[!";
284
- if (e.data.startsWith("[?")) {
285
- let t = JSON.parse(e.data.slice(2));
286
- this.#_(t);
287
- } else t ? this.#y() : this.#g();
288
- } else this.#b();
289
- }, et), P && (this.#e = I);
290
- }
291
- #g() {
292
- try {
293
- this.#a = bn(() => this.#r(this.#e));
294
- } catch (e) {
295
- this.error(e);
296
- }
297
- }
298
- #_(e) {
299
- let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
300
- z(r), t && (this.#s = bn(() => {
301
- t(this.#e, () => e, () => n);
302
- }));
303
- }
304
- #v(e) {
305
- var t = !1, n = !1;
306
- let r = () => {
307
- if (t) {
308
- Oe();
309
- return;
310
- }
311
- t = !0, n && Te(), this.#s !== null && En(this.#s, () => {
312
- this.#s = null;
313
- }), this.#S(() => {
314
- this.#b();
315
- });
316
- };
317
- return {
318
- reset: r,
319
- invoke_onerror: () => {
320
- try {
321
- n = !0, this.#n.onerror?.(e, r), n = !1;
322
- } catch (e) {
323
- Ge(e, this.#i && this.#i.parent);
324
- }
325
- }
326
- };
327
- }
328
- #y() {
329
- let e = this.#n.pending;
330
- e && (this.is_pending = !0, this.#o = bn(() => e(this.#e)), z(() => {
331
- var e = this.#c = document.createDocumentFragment(), t = Yt();
332
- e.append(t), this.#a = this.#S(() => bn(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, En(this.#o, () => {
333
- this.#o = null;
334
- }), this.#x(H));
335
- }));
336
- }
337
- #b() {
338
- try {
339
- if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = bn(() => {
340
- this.#r(this.#e);
341
- }), this.#u > 0) {
342
- var e = this.#c = document.createDocumentFragment();
343
- An(this.#a, e);
344
- let t = this.#n.pending;
345
- this.#o = bn(() => t(this.#e));
346
- } else this.#x(H);
347
- } catch (e) {
348
- this.error(e);
349
- }
350
- }
351
- #x(e) {
352
- this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
353
- }
354
- defer_effect(e) {
355
- Ye(e, this.#f, this.#p);
356
- }
357
- is_rendered() {
358
- return !this.is_pending && (!this.parent || this.parent.is_rendered());
359
- }
360
- has_pending_snippet() {
361
- return !!this.#n.pending;
362
- }
363
- #S(e) {
364
- var t = J, n = K, r = R;
365
- In(this.#i), q(this.#i), Le(this.#i.ctx);
366
- try {
367
- return Et.ensure(), e();
368
- } catch (e) {
369
- return We(e), null;
370
- } finally {
371
- In(t), q(n), Le(r);
372
- }
373
- }
374
- #C(e, t) {
375
- if (!this.has_pending_snippet()) {
376
- this.parent && this.parent.#C(e, t);
377
- return;
378
- }
379
- this.#u += e, this.#u === 0 && (this.#x(t), this.#o && En(this.#o, () => {
380
- this.#o = null;
381
- }), this.#c &&= (this.#e.before(this.#c), null));
382
- }
383
- update_pending_count(e, t) {
384
- this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, z(() => {
385
- this.#d = !1, this.#m && zt(this.#m, this.#l);
386
- }));
387
- }
388
- get_effect_pending() {
389
- return this.#h(), Z(this.#m);
390
- }
391
- error(e) {
392
- if (!this.#n.onerror && !this.#n.failed) throw e;
393
- H?.is_fork ? (this.#a && H.skip_effect(this.#a), this.#o && H.skip_effect(this.#o), this.#s && H.skip_effect(this.#s), H.oncommit(() => {
394
- this.#w(e);
395
- })) : this.#w(e);
396
- }
397
- #w(e) {
398
- this.#a &&= (G(this.#a), null), this.#o &&= (G(this.#o), null), this.#s &&= (G(this.#s), null), P && (L(this.#t), je(), L(Me()));
399
- let t = this.#n.failed, n = (e) => {
400
- let { reset: n, invoke_onerror: r } = this.#v(e);
401
- r(), t && (this.#s = this.#S(() => {
402
- try {
403
- return bn(() => {
404
- var r = J;
405
- r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
406
- });
407
- } catch (e) {
408
- return Ge(e, this.#i.parent), null;
409
- }
410
- }));
411
- };
412
- z(() => {
413
- var t;
414
- try {
415
- t = this.transform_error(e);
416
- } catch (e) {
417
- Ge(e, this.#i && this.#i.parent);
418
- return;
419
- }
420
- typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => Ge(e, this.#i && this.#i.parent)) : n(t);
421
- });
422
- }
423
- };
424
- //#endregion
425
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/async.js
426
- function rt(e, t, n, r) {
427
- let i = Be() ? st : ut;
216
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/async.js
217
+ function et(e, t, n, r) {
218
+ let i = He() ? it : st;
428
219
  var a = e.filter((e) => !e.settled), o = t.map(i);
429
220
  if (n.length === 0 && a.length === 0) {
430
221
  r(o);
431
222
  return;
432
223
  }
433
- var s = J, c = it(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
224
+ var s = J, c = tt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
434
225
  function u(e) {
435
226
  if (!(s.f & 16384)) {
436
227
  c();
437
228
  try {
438
229
  r([...o, ...e]);
439
230
  } catch (e) {
440
- Ge(e, s);
231
+ rn(e, s);
441
232
  }
442
- at();
233
+ nt();
443
234
  }
444
235
  }
445
- var d = ot();
236
+ var d = rt();
446
237
  if (n.length === 0) {
447
238
  l.then(() => u([])).finally(d);
448
239
  return;
449
240
  }
450
241
  function f() {
451
- Promise.all(n.map((e) => /* @__PURE__ */ lt(e))).then(u).catch((e) => Ge(e, s)).finally(d);
242
+ Promise.all(n.map((e) => /* @__PURE__ */ ot(e))).then(u).catch((e) => rn(e, s)).finally(d);
452
243
  }
453
244
  l ? l.then(() => {
454
- c(), f(), at();
245
+ c(), f(), nt();
455
246
  }) : f();
456
247
  }
457
- function it() {
458
- var e = J, t = K, n = R, r = H;
248
+ function tt() {
249
+ var e = J, t = K, n = R, r = V;
459
250
  return function(i = !0) {
460
- In(e), q(t), Le(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
251
+ Fn(e), q(t), Re(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
461
252
  };
462
253
  }
463
- function at(e = !0) {
464
- In(null), q(null), Le(null), e && H?.deactivate();
254
+ function nt(e = !0) {
255
+ Fn(null), q(null), Re(null), e && V?.deactivate();
465
256
  }
466
- function ot() {
467
- var e = J, t = e.b, n = H, r = !!t?.is_rendered();
257
+ function rt() {
258
+ var e = J, t = e.b, n = V, r = !!t?.is_rendered();
468
259
  return t?.update_pending_count(1, n), n.increment(r, e), () => {
469
260
  t?.update_pending_count(-1, n), n.decrement(r, e);
470
261
  };
471
262
  }
472
263
  /*#__NO_SIDE_EFFECTS__*/
473
- function st(e) {
474
- var t = 2 | w;
475
- return J !== null && (J.f |= O), {
264
+ function it(e) {
265
+ var t = 2 | C;
266
+ return J !== null && (J.f |= D), {
476
267
  ctx: R,
477
268
  deps: null,
478
269
  effects: null,
479
- equals: Pe,
270
+ equals: Ce,
480
271
  f: t,
481
272
  fn: e,
482
273
  reactions: null,
@@ -487,35 +278,35 @@ function st(e) {
487
278
  ac: null
488
279
  };
489
280
  }
490
- var ct = Symbol("obsolete");
281
+ var at = Symbol("obsolete");
491
282
  /*#__NO_SIDE_EFFECTS__*/
492
- function lt(e, t, n) {
283
+ function ot(e, t, n) {
493
284
  let r = J;
494
- r === null && me();
495
- var i = void 0, a = Lt(s), o = !K, c = /* @__PURE__ */ new Set();
496
- return gn(() => {
497
- var t = J, n = ee();
285
+ r === null && Ee();
286
+ var i = void 0, a = Nt(s), o = !K, c = /* @__PURE__ */ new Set();
287
+ return hn(() => {
288
+ var t = J, n = te();
498
289
  i = n.promise;
499
290
  try {
500
291
  Promise.resolve(e()).then(n.resolve, (e) => {
501
- e !== fe && n.reject(e);
502
- }).finally(at);
292
+ e !== me && n.reject(e);
293
+ }).finally(nt);
503
294
  } catch (e) {
504
- n.reject(e), at();
295
+ n.reject(e), nt();
505
296
  }
506
- var s = H;
297
+ var s = V;
507
298
  if (o) {
508
- if (t.f & 32768) var l = ot();
509
- if (r.b?.is_rendered()) s.async_deriveds.get(t)?.reject(ct);
510
- else for (let e of c.values()) e.reject(ct);
299
+ if (t.f & 32768) var l = rt();
300
+ if (r.b?.is_rendered()) s.async_deriveds.get(t)?.reject(at);
301
+ else for (let e of c.values()) e.reject(at);
511
302
  c.add(n), s.async_deriveds.set(t, n);
512
303
  }
513
304
  let u = (e, t = void 0) => {
514
- l?.(), c.delete(n), t !== ct && (s.activate(), t ? (a.f |= se, zt(a, t)) : (a.f & 8388608 && (a.f ^= se), zt(a, e)), s.deactivate());
305
+ l?.(), c.delete(n), t !== at && (s.activate(), t ? (a.f |= ce, Ft(a, t)) : (a.f & 8388608 && (a.f ^= ce), Ft(a, e)), s.deactivate());
515
306
  };
516
307
  n.promise.then(u, (e) => u(null, e || "unknown"));
517
- }), un(() => {
518
- for (let e of c) e.reject(ct);
308
+ }), ln(() => {
309
+ for (let e of c) e.reject(at);
519
310
  }), new Promise((e) => {
520
311
  function t(n) {
521
312
  function r() {
@@ -527,53 +318,53 @@ function lt(e, t, n) {
527
318
  });
528
319
  }
529
320
  /*#__NO_SIDE_EFFECTS__*/
530
- function V(e) {
531
- let t = /* @__PURE__ */ st(e);
532
- return Rn(t), t;
321
+ function B(e) {
322
+ let t = /* @__PURE__ */ it(e);
323
+ return Ln(t), t;
533
324
  }
534
325
  /*#__NO_SIDE_EFFECTS__*/
535
- function ut(e) {
536
- let t = /* @__PURE__ */ st(e);
537
- return t.equals = Ie, t;
326
+ function st(e) {
327
+ let t = /* @__PURE__ */ it(e);
328
+ return t.equals = Te, t;
538
329
  }
539
- function dt(e) {
330
+ function ct(e) {
540
331
  var t = e.effects;
541
332
  if (t !== null) {
542
333
  e.effects = null;
543
334
  for (var n = 0; n < t.length; n += 1) G(t[n]);
544
335
  }
545
336
  }
546
- function ft(e) {
337
+ function lt(e) {
547
338
  var t, n = J, r = e.parent;
548
- if (!Nn && r !== null && e.v !== s && r.f & 24576) return Ee(), e.v;
549
- In(r);
339
+ if (!Mn && r !== null && e.v !== s && r.f & 24576) return ge(), e.v;
340
+ Fn(r);
550
341
  try {
551
- e.f &= ~ae, dt(e), t = Jn(e);
342
+ e.f &= ~oe, ct(e), t = qn(e);
552
343
  } finally {
553
- In(n);
344
+ Fn(n);
554
345
  }
555
346
  return t;
556
347
  }
557
- function pt(e) {
558
- var t = ft(e);
559
- if (!e.equals(t) && (e.wv = Gn(), (!H?.is_fork || e.deps === null) && (H === null ? e.v = t : (H.capture(e, t, !0), _t?.capture(e, t, !0)), e.deps === null))) {
560
- B(e, C);
348
+ function ut(e) {
349
+ var t = lt(e);
350
+ if (!e.equals(t) && (e.wv = Wn(), (!V?.is_fork || e.deps === null) && (V === null ? e.v = t : (V.capture(e, t, !0), mt?.capture(e, t, !0)), e.deps === null))) {
351
+ z(e, S);
561
352
  return;
562
353
  }
563
- Nn || (vt === null ? qe(e) : (ln() || H?.is_fork) && vt.set(e, t));
354
+ Mn || (H === null ? Je(e) : (cn() || V?.is_fork) && H.set(e, t));
564
355
  }
565
- function mt(e) {
566
- if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Qe(() => {
567
- t.ac.abort(fe), t.ac = null;
568
- }), t.fn !== null && (t.teardown = x), Xn(t, 0), Sn(t));
356
+ function dt(e) {
357
+ if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && $e(() => {
358
+ t.ac.abort(me), t.ac = null;
359
+ }), t.fn !== null && (t.teardown = b), Xn(t, 0), xn(t));
569
360
  }
570
- function ht(e) {
361
+ function ft(e) {
571
362
  if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Zn(t);
572
363
  }
573
364
  //#endregion
574
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/batch.js
575
- var gt = null, H = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St = null, Ct = null, wt = 0, Tt = 1, Et = class e {
576
- id = Tt++;
365
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/batch.js
366
+ var pt = null, V = null, mt = null, H = null, ht = null, gt = !1, _t = !1, vt = null, yt = null, bt = 0, xt = 1, St = class e {
367
+ id = xt++;
577
368
  #e = !1;
578
369
  linked = !0;
579
370
  #t = null;
@@ -595,7 +386,7 @@ var gt = null, H = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
595
386
  is_fork = !1;
596
387
  #m = !1;
597
388
  constructor() {
598
- gt === null ? gt = this : (gt.#n = this, this.#t = gt), gt = this;
389
+ pt === null ? pt = this : (pt.#n = this, this.#t = pt), pt = this;
599
390
  }
600
391
  #h() {
601
392
  if (this.is_fork) return !0;
@@ -621,31 +412,31 @@ var gt = null, H = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
621
412
  var n = this.#f.get(e);
622
413
  if (n) {
623
414
  this.#f.delete(e);
624
- for (var r of n.d) B(r, w), t(r);
625
- for (r of n.m) B(r, te), t(r);
415
+ for (var r of n.d) z(r, C), t(r);
416
+ for (r of n.m) z(r, ne), t(r);
626
417
  }
627
418
  this.#p.add(e);
628
419
  }
629
420
  #g() {
630
- this.#e = !0, wt++ > 1e3 && (this.#x(), Ot());
631
- for (let e of this.#u) this.#d.delete(e), B(e, w), this.schedule(e);
632
- for (let e of this.#d) B(e, te), this.schedule(e);
421
+ this.#e = !0, bt++ > 1e3 && (this.#x(), wt());
422
+ for (let e of this.#u) this.#d.delete(e), z(e, C), this.schedule(e);
423
+ for (let e of this.#d) z(e, ne), this.schedule(e);
633
424
  let t = this.#c;
634
425
  this.#c = [], this.apply();
635
- var n = St = [], r = [], i = Ct = [];
426
+ var n = vt = [], r = [], i = yt = [];
636
427
  for (let e of t) try {
637
428
  this.#_(e, n, r);
638
429
  } catch (t) {
639
- throw Nt(e), this.#h() || this.discard(), t;
430
+ throw kt(e), this.#h() || this.discard(), t;
640
431
  }
641
- if (H = null, i.length > 0) {
432
+ if (V = null, i.length > 0) {
642
433
  var a = e.ensure();
643
434
  for (let e of i) a.schedule(e);
644
435
  }
645
- if (St = null, Ct = null, this.#h()) {
436
+ if (vt = null, yt = null, this.#h()) {
646
437
  this.#b(r), this.#b(n);
647
- for (let [e, t] of this.#f) Mt(e, t);
648
- i.length > 0 && H.#g();
438
+ for (let [e, t] of this.#f) Ot(e, t);
439
+ i.length > 0 && V.#g();
649
440
  return;
650
441
  }
651
442
  let o = this.#v();
@@ -655,22 +446,22 @@ var gt = null, H = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
655
446
  }
656
447
  this.#u.clear(), this.#d.clear();
657
448
  for (let e of this.#r) e(this);
658
- this.#r.clear(), _t = this, At(r), At(n), _t = null, this.#s?.resolve();
659
- var s = H;
449
+ this.#r.clear(), mt = this, Et(r), Et(n), mt = null, this.#s?.resolve();
450
+ var s = V;
660
451
  if (this.#a === 0 && (this.#c.length === 0 || s !== null) && this.#x(), this.#c.length > 0) {
661
452
  if (s !== null) {
662
453
  let e = s;
663
454
  e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
664
455
  } else s = this;
665
456
  }
666
- s !== null && (Ft.clear(), s.#g());
457
+ s !== null && (jt.clear(), s.#g());
667
458
  }
668
459
  #_(e, t, n) {
669
- e.f ^= C;
460
+ e.f ^= S;
670
461
  for (var r = e.first; r !== null;) {
671
462
  var i = r.f, a = !!(i & 96);
672
463
  if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
673
- a ? r.f ^= C : i & 4 ? t.push(r) : Kn(r) && (i & 16 && this.#d.add(r), Zn(r));
464
+ a ? r.f ^= S : i & 4 ? t.push(r) : Gn(r) && (i & 16 && this.#d.add(r), Zn(r));
674
465
  var o = r.first;
675
466
  if (o !== null) {
676
467
  r = o;
@@ -710,36 +501,36 @@ var gt = null, H = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
710
501
  if (r & 2) t(e);
711
502
  else {
712
503
  var i = e;
713
- r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), B(i, w), this.schedule(i));
504
+ r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), z(i, C), this.schedule(i));
714
505
  }
715
506
  }
716
507
  };
717
508
  for (let e of this.current.keys()) t(e);
718
- this.oncommit(() => e.discard()), e.#x(), H = this, this.#g();
509
+ this.oncommit(() => e.discard()), e.#x(), V = this, this.#g();
719
510
  }
720
511
  #b(e) {
721
- for (var t = 0; t < e.length; t += 1) Ye(e[t], this.#u, this.#d);
512
+ for (var t = 0; t < e.length; t += 1) Xe(e[t], this.#u, this.#d);
722
513
  }
723
514
  capture(e, t, n = !1) {
724
- e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), vt?.set(e, t)), this.is_fork || (e.v = t);
515
+ e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), H?.set(e, t)), this.is_fork || (e.v = t);
725
516
  }
726
517
  activate() {
727
- H = this;
518
+ V = this;
728
519
  }
729
520
  deactivate() {
730
- H = null, vt = null;
521
+ V = null, H = null;
731
522
  }
732
523
  flush() {
733
524
  try {
734
- xt = !0, H = this, this.#g();
525
+ _t = !0, V = this, this.#g();
735
526
  } finally {
736
- wt = 0, yt = null, St = null, Ct = null, xt = !1, H = null, vt = null, Ft.clear();
527
+ bt = 0, ht = null, vt = null, yt = null, _t = !1, V = null, H = null, jt.clear();
737
528
  }
738
529
  }
739
530
  discard() {
740
531
  for (let e of this.#i) e(this);
741
532
  this.#i.clear();
742
- for (let e of this.async_deriveds.values()) e.reject(ct);
533
+ for (let e of this.async_deriveds.values()) e.reject(at);
743
534
  this.#x(), this.#s?.resolve();
744
535
  }
745
536
  register_created_effect(e) {
@@ -756,7 +547,7 @@ var gt = null, H = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
756
547
  let e = this.#o.get(t) ?? 0;
757
548
  e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
758
549
  }
759
- this.#m || (this.#m = !0, z(() => {
550
+ this.#m || (this.#m = !0, Ge(() => {
760
551
  this.#m = !1, this.linked && this.flush();
761
552
  }));
762
553
  }
@@ -772,32 +563,32 @@ var gt = null, H = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
772
563
  this.#i.add(e);
773
564
  }
774
565
  settled() {
775
- return (this.#s ??= ee()).promise;
566
+ return (this.#s ??= te()).promise;
776
567
  }
777
568
  static ensure() {
778
- if (H === null) {
779
- let t = H = new e();
780
- !xt && !bt && z(() => {
569
+ if (V === null) {
570
+ let t = V = new e();
571
+ !_t && !gt && Ge(() => {
781
572
  t.#e || t.flush();
782
573
  });
783
574
  }
784
- return H;
575
+ return V;
785
576
  }
786
577
  apply() {
787
- vt = null;
578
+ H = null;
788
579
  }
789
580
  schedule(e) {
790
- if (yt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
581
+ if (ht = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
791
582
  e.b.defer_effect(e);
792
583
  return;
793
584
  }
794
585
  for (var t = e; t.parent !== null;) {
795
586
  t = t.parent;
796
587
  var n = t.f;
797
- if (St !== null && t === J && (K === null || !(K.f & 2))) return;
588
+ if (vt !== null && t === J && (K === null || !(K.f & 2))) return;
798
589
  if (n & 96) {
799
590
  if (!(n & 1024)) return;
800
- t.f ^= C;
591
+ t.f ^= S;
801
592
  }
802
593
  }
803
594
  this.#c.push(t);
@@ -805,152 +596,152 @@ var gt = null, H = null, _t = null, vt = null, yt = null, bt = !1, xt = !1, St =
805
596
  #x() {
806
597
  if (this.linked) {
807
598
  var e = this.#t, t = this.#n;
808
- e === null || (e.#n = t), t === null ? gt = e : t.#t = e, this.linked = !1;
599
+ e === null || (e.#n = t), t === null ? pt = e : t.#t = e, this.linked = !1;
809
600
  }
810
601
  }
811
602
  };
812
- function Dt(e) {
813
- var t = bt;
814
- bt = !0;
603
+ function Ct(e) {
604
+ var t = gt;
605
+ gt = !0;
815
606
  try {
816
607
  var n;
817
- for (e && (H !== null && !H.is_fork && H.flush(), n = e());;) {
818
- if (Ue(), H === null) return n;
819
- H.flush();
608
+ for (e && (V !== null && !V.is_fork && V.flush(), n = e());;) {
609
+ if (Ke(), V === null) return n;
610
+ V.flush();
820
611
  }
821
612
  } finally {
822
- bt = t;
613
+ gt = t;
823
614
  }
824
615
  }
825
- function Ot() {
616
+ function wt() {
826
617
  try {
827
- ye();
618
+ je();
828
619
  } catch (e) {
829
- Ge(e, yt);
620
+ rn(e, ht);
830
621
  }
831
622
  }
832
- var kt = null;
833
- function At(e) {
623
+ var Tt = null;
624
+ function Et(e) {
834
625
  var t = e.length;
835
626
  if (t !== 0) {
836
627
  for (var n = 0; n < t;) {
837
628
  var r = e[n++];
838
- if (!(r.f & 24576) && Kn(r) && (kt = /* @__PURE__ */ new Set(), Zn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Tn(r), kt?.size > 0)) {
839
- Ft.clear();
840
- for (let e of kt) {
629
+ if (!(r.f & 24576) && Gn(r) && (Tt = /* @__PURE__ */ new Set(), Zn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && wn(r), Tt?.size > 0)) {
630
+ jt.clear();
631
+ for (let e of Tt) {
841
632
  if (e.f & 24576) continue;
842
633
  let t = [e], n = e.parent;
843
- for (; n !== null;) kt.has(n) && (kt.delete(n), t.push(n)), n = n.parent;
634
+ for (; n !== null;) Tt.has(n) && (Tt.delete(n), t.push(n)), n = n.parent;
844
635
  for (let e = t.length - 1; e >= 0; e--) {
845
636
  let n = t[e];
846
637
  n.f & 24576 || Zn(n);
847
638
  }
848
639
  }
849
- kt.clear();
640
+ Tt.clear();
850
641
  }
851
642
  }
852
- kt = null;
643
+ Tt = null;
853
644
  }
854
645
  }
855
- function jt(e) {
856
- H.schedule(e);
646
+ function Dt(e) {
647
+ V.schedule(e);
857
648
  }
858
- function Mt(e, t) {
649
+ function Ot(e, t) {
859
650
  if (!(e.f & 32 && e.f & 1024)) {
860
- e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), B(e, C);
861
- for (var n = e.first; n !== null;) Mt(n, t), n = n.next;
651
+ e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), z(e, S);
652
+ for (var n = e.first; n !== null;) Ot(n, t), n = n.next;
862
653
  }
863
654
  }
864
- function Nt(e) {
865
- B(e, C);
866
- for (var t = e.first; t !== null;) Nt(t), t = t.next;
655
+ function kt(e) {
656
+ z(e, S);
657
+ for (var t = e.first; t !== null;) kt(t), t = t.next;
867
658
  }
868
659
  //#endregion
869
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/sources.js
870
- var Pt = /* @__PURE__ */ new Set(), Ft = /* @__PURE__ */ new Map(), It = !1;
871
- function Lt(e, t) {
660
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/sources.js
661
+ var At = /* @__PURE__ */ new Set(), jt = /* @__PURE__ */ new Map(), Mt = !1;
662
+ function Nt(e, t) {
872
663
  return {
873
664
  f: 0,
874
665
  v: e,
875
666
  reactions: null,
876
- equals: Pe,
667
+ equals: Ce,
877
668
  rv: 0,
878
669
  wv: 0
879
670
  };
880
671
  }
881
672
  /*#__NO_SIDE_EFFECTS__*/
882
673
  function U(e, t) {
883
- let n = Lt(e, t);
884
- return Rn(n), n;
674
+ let n = Nt(e, t);
675
+ return Ln(n), n;
885
676
  }
886
677
  /*#__NO_SIDE_EFFECTS__*/
887
- function Rt(e, t = !1, n = !0) {
888
- let r = Lt(e);
889
- return t || (r.equals = Ie), r;
678
+ function Pt(e, t = !1, n = !0) {
679
+ let r = Nt(e);
680
+ return t || (r.equals = Te), r;
890
681
  }
891
682
  function W(e, t, n = !1) {
892
- return K !== null && (!Fn || K.f & 131072) && Be() && K.f & 4325394 && (Ln === null || !Ln.has(e)) && we(), zt(e, n ? Ut(t) : t, Ct);
683
+ return K !== null && (!Pn || K.f & 131072) && He() && K.f & 4325394 && (In === null || !In.has(e)) && Ie(), Ft(e, n ? zt(t) : t, yt);
893
684
  }
894
- function zt(e, t, n = null) {
685
+ function Ft(e, t, n = null) {
895
686
  if (!e.equals(t)) {
896
- Nn ? Ft.set(e, t) : Ft.has(e) || Ft.set(e, e.v);
897
- var r = Et.ensure();
687
+ Mn ? jt.set(e, t) : jt.has(e) || jt.set(e, e.v);
688
+ var r = St.ensure();
898
689
  if (r.capture(e, t), e.f & 2) {
899
690
  let t = e;
900
- e.f & 2048 && ft(t), vt === null && qe(t);
691
+ e.f & 2048 && lt(t), H === null && Je(t);
901
692
  }
902
- e.wv = Gn(), Ht(e, w, n), Be() && J !== null && J.f & 1024 && !(J.f & 96) && (zn === null ? Bn([e]) : zn.push(e)), !r.is_fork && Pt.size > 0 && !It && Bt();
693
+ e.wv = Wn(), Rt(e, C, n), He() && J !== null && J.f & 1024 && !(J.f & 96) && (Rn === null ? zn([e]) : Rn.push(e)), !r.is_fork && At.size > 0 && !Mt && It();
903
694
  }
904
695
  return t;
905
696
  }
906
- function Bt() {
907
- It = !1;
908
- for (let e of Pt) {
909
- e.f & 1024 && B(e, te);
697
+ function It() {
698
+ Mt = !1;
699
+ for (let e of At) {
700
+ e.f & 1024 && z(e, ne);
910
701
  let t;
911
702
  try {
912
- t = Kn(e);
703
+ t = Gn(e);
913
704
  } catch {
914
705
  t = !0;
915
706
  }
916
707
  t && Zn(e);
917
708
  }
918
- Pt.clear();
709
+ At.clear();
919
710
  }
920
- function Vt(e) {
711
+ function Lt(e) {
921
712
  W(e, e.v + 1);
922
713
  }
923
- function Ht(e, t, n) {
714
+ function Rt(e, t, n) {
924
715
  var r = e.reactions;
925
- if (r !== null) for (var i = Be(), a = r.length, o = 0; o < a; o++) {
716
+ if (r !== null) for (var i = He(), a = r.length, o = 0; o < a; o++) {
926
717
  var s = r[o], c = s.f;
927
718
  if (!(!i && s === J)) {
928
- var l = (c & w) === 0;
929
- if (l && B(s, t), c & 131072) Pt.add(s);
719
+ var l = (c & C) === 0;
720
+ if (l && z(s, t), c & 131072) At.add(s);
930
721
  else if (c & 2) {
931
722
  var u = s;
932
- vt?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= ae), Ht(u, te, n));
723
+ H?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= oe), Rt(u, ne, n));
933
724
  } else if (l) {
934
725
  var d = s;
935
- c & 16 && kt !== null && kt.add(d), n === null ? jt(d) : n.push(d);
726
+ c & 16 && Tt !== null && Tt.add(d), n === null ? Dt(d) : n.push(d);
936
727
  }
937
728
  }
938
729
  }
939
730
  }
940
- function Ut(e) {
941
- if (typeof e != "object" || !e || j in e) return e;
731
+ function zt(e) {
732
+ if (typeof e != "object" || !e || A in e || j in e) return e;
942
733
  let t = y(e);
943
734
  if (t !== _ && t !== v) return e;
944
- var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */ U(0), a = null, o = Un, c = (e) => {
945
- if (Un === o) return e();
946
- var t = K, n = Un;
947
- q(null), Wn(o);
735
+ var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */ U(0), a = null, o = Hn, c = (e) => {
736
+ if (Hn === o) return e();
737
+ var t = K, n = Hn;
738
+ q(null), Un(o);
948
739
  var r = e();
949
- return q(t), Wn(n), r;
740
+ return q(t), Un(n), r;
950
741
  };
951
742
  return r && n.set("length", /* @__PURE__ */ U(e.length, a)), new Proxy(e, {
952
743
  defineProperty(e, t, r) {
953
- (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Se();
744
+ (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Pe();
954
745
  var i = n.get(t);
955
746
  return i === void 0 ? c(() => {
956
747
  var e = /* @__PURE__ */ U(r.value, a);
@@ -962,15 +753,15 @@ function Ut(e) {
962
753
  if (r === void 0) {
963
754
  if (t in e) {
964
755
  let e = c(() => /* @__PURE__ */ U(s, a));
965
- n.set(t, e), Vt(i);
756
+ n.set(t, e), Lt(i);
966
757
  }
967
- } else W(r, s), Vt(i);
758
+ } else W(r, s), Lt(i);
968
759
  return !0;
969
760
  },
970
761
  get(t, r, i) {
971
- if (r === j) return e;
762
+ if (r === A) return e;
972
763
  var o = n.get(r), l = r in t;
973
- if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */ U(Ut(l ? t[r] : s), a)), n.set(r, o)), o !== void 0) {
764
+ if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */ U(zt(l ? t[r] : s), a)), n.set(r, o)), o !== void 0) {
974
765
  var u = Z(o);
975
766
  return u === s ? void 0 : u;
976
767
  }
@@ -993,9 +784,9 @@ function Ut(e) {
993
784
  return r;
994
785
  },
995
786
  has(e, t) {
996
- if (t === j) return !0;
787
+ if (t === A) return !0;
997
788
  var r = n.get(t), i = r !== void 0 && r.v !== s || Reflect.has(e, t);
998
- return (r !== void 0 || J !== null && (!i || h(e, t)?.writable)) && (r === void 0 && (r = c(() => /* @__PURE__ */ U(i ? Ut(e[t]) : s, a)), n.set(t, r)), Z(r) === s) ? !1 : i;
789
+ return (r !== void 0 || J !== null && (!i || h(e, t)?.writable)) && (r === void 0 && (r = c(() => /* @__PURE__ */ U(i ? zt(e[t]) : s, a)), n.set(t, r)), Z(r) === s) ? !1 : i;
999
790
  },
1000
791
  set(e, t, o, l) {
1001
792
  var u = n.get(t), d = t in e;
@@ -1003,10 +794,10 @@ function Ut(e) {
1003
794
  var p = n.get(f + "");
1004
795
  p === void 0 ? f in e && (p = c(() => /* @__PURE__ */ U(s, a)), n.set(f + "", p)) : W(p, s);
1005
796
  }
1006
- if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */ U(void 0, a)), W(u, Ut(o)), n.set(t, u));
797
+ if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */ U(void 0, a)), W(u, zt(o)), n.set(t, u));
1007
798
  else {
1008
799
  d = u.v !== s;
1009
- var m = c(() => Ut(o));
800
+ var m = c(() => zt(o));
1010
801
  W(u, m);
1011
802
  }
1012
803
  var g = Reflect.getOwnPropertyDescriptor(e, t);
@@ -1015,7 +806,7 @@ function Ut(e) {
1015
806
  var _ = n.get("length"), v = Number(t);
1016
807
  Number.isInteger(v) && v >= _.v && W(_, v + 1);
1017
808
  }
1018
- Vt(i);
809
+ Lt(i);
1019
810
  }
1020
811
  return !0;
1021
812
  },
@@ -1029,97 +820,125 @@ function Ut(e) {
1029
820
  return t;
1030
821
  },
1031
822
  setPrototypeOf() {
1032
- Ce();
823
+ Fe();
1033
824
  }
1034
825
  });
1035
826
  }
1036
- var Wt, Gt, Kt, qt;
1037
- function Jt() {
1038
- if (Wt === void 0) {
1039
- Wt = window, Gt = /Firefox/.test(navigator.userAgent);
827
+ var Bt, Vt, Ht, Ut;
828
+ function Wt() {
829
+ if (Bt === void 0) {
830
+ Bt = window, Vt = /Firefox/.test(navigator.userAgent);
1040
831
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
1041
- Kt = h(t, "firstChild").get, qt = h(t, "nextSibling").get, b(e) && (e[le] = void 0, e[ce] = null, e[ue] = void 0, e.__e = void 0), b(n) && (n[de] = void 0);
832
+ Ht = h(t, "firstChild").get, Ut = h(t, "nextSibling").get, ee(e) && (e[de] = void 0, e[ue] = null, e[fe] = void 0, e.__e = void 0), ee(n) && (n[pe] = void 0);
1042
833
  }
1043
834
  }
1044
- function Yt(e = "") {
835
+ function Gt(e = "") {
1045
836
  return document.createTextNode(e);
1046
837
  }
1047
838
  /*@__NO_SIDE_EFFECTS__*/
1048
- function Xt(e) {
1049
- return Kt.call(e);
839
+ function Kt(e) {
840
+ return Ht.call(e);
1050
841
  }
1051
842
  /*@__NO_SIDE_EFFECTS__*/
1052
- function Zt(e) {
1053
- return qt.call(e);
843
+ function qt(e) {
844
+ return Ut.call(e);
1054
845
  }
1055
- function Qt(e, t) {
1056
- if (!P) return /* @__PURE__ */ Xt(e);
1057
- var n = /* @__PURE__ */ Xt(I);
1058
- if (n === null) n = I.appendChild(Yt());
846
+ function Jt(e, t) {
847
+ if (!N) return /* @__PURE__ */ Kt(e);
848
+ var n = /* @__PURE__ */ Kt(F);
849
+ if (n === null) n = F.appendChild(Gt());
1059
850
  else if (t && n.nodeType !== 3) {
1060
- var r = Yt();
1061
- return n?.before(r), L(r), r;
851
+ var r = Gt();
852
+ return n?.before(r), I(r), r;
1062
853
  }
1063
- return t && an(n), L(n), n;
854
+ return t && tn(n), I(n), n;
1064
855
  }
1065
- function $t(e, t = !1) {
1066
- if (!P) {
1067
- var n = /* @__PURE__ */ Xt(e);
1068
- return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Zt(n) : n;
856
+ function Yt(e, t = !1) {
857
+ if (!N) {
858
+ var n = /* @__PURE__ */ Kt(e);
859
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ qt(n) : n;
1069
860
  }
1070
861
  if (t) {
1071
- if (I?.nodeType !== 3) {
1072
- var r = Yt();
1073
- return I?.before(r), L(r), r;
862
+ if (F?.nodeType !== 3) {
863
+ var r = Gt();
864
+ return F?.before(r), I(r), r;
1074
865
  }
1075
- an(I);
866
+ tn(F);
1076
867
  }
1077
- return I;
868
+ return F;
1078
869
  }
1079
- function en(e, t = 1, n = !1) {
1080
- let r = P ? I : e;
1081
- for (var i; t--;) i = r, r = /* @__PURE__ */ Zt(r);
1082
- if (!P) return r;
870
+ function Xt(e, t = !1) {
871
+ if (!N) return /* @__PURE__ */ Kt(e);
872
+ var n = Jt(e, t);
873
+ return be(e), n;
874
+ }
875
+ function Zt(e, t = 1, n = !1) {
876
+ let r = N ? F : e;
877
+ for (var i; t--;) i = r, r = /* @__PURE__ */ qt(r);
878
+ if (!N) return r;
1083
879
  if (n) {
1084
880
  if (r?.nodeType !== 3) {
1085
- var a = Yt();
1086
- return r === null ? i?.after(a) : r.before(a), L(a), a;
881
+ var a = Gt();
882
+ return r === null ? i?.after(a) : r.before(a), I(a), a;
1087
883
  }
1088
- an(r);
884
+ tn(r);
1089
885
  }
1090
- return L(r), r;
886
+ return I(r), r;
1091
887
  }
1092
- function tn(e) {
888
+ function Qt(e) {
1093
889
  e.textContent = "";
1094
890
  }
1095
- function nn() {
891
+ function $t() {
1096
892
  return !1;
1097
893
  }
1098
- function rn(e, t, n) {
894
+ function en(e, t, n) {
1099
895
  return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
1100
896
  }
1101
- function an(e) {
897
+ function tn(e) {
1102
898
  if (e.nodeValue.length < 65536) return;
1103
899
  let t = e.nextSibling;
1104
900
  for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1105
901
  }
902
+ function nn(e) {
903
+ var t = J;
904
+ if (t === null) return K.f |= ce, e;
905
+ if (!(t.f & 32768) && !(t.f & 4)) throw e;
906
+ rn(e, t);
907
+ }
908
+ function rn(e, t) {
909
+ if (!(t !== null && t.f & 16384)) {
910
+ for (; t !== null;) {
911
+ if (t.f & 128 && !(t.f & 33570816)) {
912
+ if (!(t.f & 32768)) throw e;
913
+ try {
914
+ t.b.error(e);
915
+ return;
916
+ } catch (t) {
917
+ e = t;
918
+ }
919
+ }
920
+ t = t.parent;
921
+ }
922
+ throw e;
923
+ }
924
+ }
1106
925
  //#endregion
1107
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/effects.js
1108
- function on(e) {
1109
- J === null && (K === null && ve(e), _e()), Nn && ge(e);
926
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/effects.js
927
+ function an(e) {
928
+ J === null && (K === null && Ae(e), ke()), Mn && Oe(e);
1110
929
  }
1111
- function sn(e, t) {
930
+ function on(e, t) {
1112
931
  var n = t.last;
1113
932
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
1114
933
  }
1115
- function cn(e, t) {
934
+ function sn(e, t) {
1116
935
  var n = J;
1117
- n !== null && n.f & 8192 && (e |= T);
936
+ n !== null && n.f & 8192 && (e |= w);
1118
937
  var r = {
1119
938
  ctx: R,
1120
939
  deps: null,
1121
940
  nodes: null,
1122
- f: e | w | 512,
941
+ f: e | C | 512,
1123
942
  first: null,
1124
943
  fn: t,
1125
944
  last: null,
@@ -1131,103 +950,105 @@ function cn(e, t) {
1131
950
  wv: 0,
1132
951
  ac: null
1133
952
  };
1134
- H?.register_created_effect(r);
953
+ V?.register_created_effect(r);
1135
954
  var i = r;
1136
- if (e & 4) St === null ? Et.ensure().schedule(r) : St.push(r);
955
+ if (e & 4) vt === null ? St.ensure().schedule(r) : vt.push(r);
1137
956
  else if (t !== null) {
1138
957
  try {
1139
958
  Zn(r);
1140
959
  } catch (e) {
1141
960
  throw G(r), e;
1142
961
  }
1143
- i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= D));
962
+ i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= E));
1144
963
  }
1145
- if (i !== null && (i.parent = n, n !== null && sn(i, n), K !== null && K.f & 2 && !(e & 64))) {
964
+ if (i !== null && (i.parent = n, n !== null && on(i, n), K !== null && K.f & 2 && !(e & 64))) {
1146
965
  var a = K;
1147
966
  (a.effects ??= []).push(i);
1148
967
  }
1149
968
  return r;
1150
969
  }
1151
- function ln() {
1152
- return K !== null && !Fn;
970
+ function cn() {
971
+ return K !== null && !Pn;
1153
972
  }
1154
- function un(e) {
1155
- let t = cn(8, null);
1156
- return B(t, C), t.teardown = e, t;
973
+ function ln(e) {
974
+ let t = sn(8, null);
975
+ return z(t, S), t.teardown = e, t;
1157
976
  }
1158
- function dn(e) {
1159
- on("$effect");
977
+ function un(e) {
978
+ an("$effect");
1160
979
  var t = J.f;
1161
980
  if (!K && t & 32 && R !== null && !R.i) {
1162
981
  var n = R;
1163
982
  (n.e ??= []).push(e);
1164
- } else return fn(e);
983
+ } else return dn(e);
1165
984
  }
1166
- function fn(e) {
1167
- return cn(4 | ie, e);
985
+ function dn(e) {
986
+ return sn(4 | ae, e);
1168
987
  }
1169
- function pn(e) {
1170
- Et.ensure();
1171
- let t = cn(64 | O, e);
988
+ function fn(e) {
989
+ St.ensure();
990
+ let t = sn(64 | D, e);
1172
991
  return () => {
1173
992
  G(t);
1174
993
  };
1175
994
  }
1176
- function mn(e) {
1177
- Et.ensure();
1178
- let t = cn(64 | O, e);
995
+ function pn(e) {
996
+ St.ensure();
997
+ let t = sn(64 | D, e);
1179
998
  return (e = {}) => new Promise((n) => {
1180
- e.outro ? En(t, () => {
999
+ e.outro ? Tn(t, () => {
1181
1000
  G(t), n(void 0);
1182
1001
  }) : (G(t), n(void 0));
1183
1002
  });
1184
1003
  }
1185
- function hn(e) {
1186
- return cn(4, e);
1004
+ function mn(e) {
1005
+ return sn(4, e);
1187
1006
  }
1188
- function gn(e) {
1189
- return cn(A | O, e);
1007
+ function hn(e) {
1008
+ return sn(k | D, e);
1190
1009
  }
1191
- function _n(e, t = 0) {
1192
- return cn(8 | t, e);
1010
+ function gn(e, t = 0) {
1011
+ return sn(8 | t, e);
1193
1012
  }
1194
- function vn(e, t = [], n = [], r = []) {
1195
- rt(r, t, n, (t) => {
1196
- cn(8, () => {
1013
+ function _n(e, t = [], n = [], r = []) {
1014
+ et(r, t, n, (t) => {
1015
+ sn(8, () => {
1197
1016
  e(...t.map(Z));
1198
1017
  });
1199
1018
  });
1200
1019
  }
1201
- function yn(e, t = 0) {
1202
- return cn(16 | t, e);
1020
+ function vn(e, t = 0) {
1021
+ return sn(16 | t, e);
1203
1022
  }
1204
- function bn(e) {
1205
- return cn(32 | O, e);
1023
+ function yn(e) {
1024
+ return sn(32 | D, e);
1206
1025
  }
1207
- function xn(e) {
1026
+ function bn(e) {
1208
1027
  var t = e.teardown;
1209
1028
  if (t !== null) {
1210
- let e = Nn, n = K;
1211
- Pn(!0), q(null);
1029
+ let n = Mn, r = K;
1030
+ Nn(!0), q(null);
1212
1031
  try {
1213
1032
  t.call(null);
1033
+ } catch (t) {
1034
+ rn(t, e.parent);
1214
1035
  } finally {
1215
- Pn(e), q(n);
1036
+ Nn(n), q(r);
1216
1037
  }
1217
1038
  }
1218
1039
  }
1219
- function Sn(e, t = !1) {
1040
+ function xn(e, t = !1) {
1220
1041
  var n = e.first;
1221
1042
  for (e.first = e.last = null; n !== null;) {
1222
1043
  let e = n.ac;
1223
- e !== null && Qe(() => {
1224
- e.abort(fe);
1044
+ e !== null && $e(() => {
1045
+ e.abort(me);
1225
1046
  });
1226
1047
  var r = n.next;
1227
1048
  n.f & 64 ? n.parent = null : G(n, t), n = r;
1228
1049
  }
1229
1050
  }
1230
- function Cn(e) {
1051
+ function Sn(e) {
1231
1052
  for (var t = e.first; t !== null;) {
1232
1053
  var n = t.next;
1233
1054
  t.f & 32 || G(t), t = n;
@@ -1235,26 +1056,26 @@ function Cn(e) {
1235
1056
  }
1236
1057
  function G(e, t = !0) {
1237
1058
  var n = !1;
1238
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (wn(e.nodes.start, e.nodes.end), n = !0), e.f |= re, Sn(e, t && !n), Xn(e, 0);
1059
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Cn(e.nodes.start, e.nodes.end), n = !0), e.f |= ie, xn(e, t && !n), Xn(e, 0);
1239
1060
  var r = e.nodes && e.nodes.t;
1240
1061
  if (r !== null) for (let e of r) e.stop();
1241
- xn(e), e.f ^= re, e.f |= E;
1062
+ bn(e), e.f ^= ie, e.f |= T;
1242
1063
  var i = e.parent;
1243
- i !== null && i.first !== null && Tn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1064
+ i !== null && i.first !== null && wn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1244
1065
  }
1245
- function wn(e, t) {
1066
+ function Cn(e, t) {
1246
1067
  for (; e !== null;) {
1247
- var n = e === t ? null : /* @__PURE__ */ Zt(e);
1068
+ var n = e === t ? null : /* @__PURE__ */ qt(e);
1248
1069
  e.remove(), e = n;
1249
1070
  }
1250
1071
  }
1251
- function Tn(e) {
1072
+ function wn(e) {
1252
1073
  var t = e.parent, n = e.prev, r = e.next;
1253
1074
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1254
1075
  }
1255
- function En(e, t, n = !0) {
1076
+ function Tn(e, t, n = !0) {
1256
1077
  var r = [];
1257
- Dn(e, r, !0);
1078
+ e.f |= 256, En(e, r, !0);
1258
1079
  var i = () => {
1259
1080
  n && G(e), t && t();
1260
1081
  }, a = r.length;
@@ -1263,118 +1084,122 @@ function En(e, t, n = !0) {
1263
1084
  for (var s of r) s.out(o);
1264
1085
  } else i();
1265
1086
  }
1266
- function Dn(e, t, n) {
1087
+ function En(e, t, n) {
1267
1088
  if (!(e.f & 8192)) {
1268
- e.f ^= T;
1089
+ e.f ^= w;
1269
1090
  var r = e.nodes && e.nodes.t;
1270
1091
  if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
1271
1092
  for (var i = e.first; i !== null;) {
1272
1093
  var a = i.next;
1273
1094
  if (!(i.f & 64)) {
1274
1095
  var o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);
1275
- Dn(i, t, o ? n : !1);
1096
+ En(i, t, o ? n : !1);
1276
1097
  }
1277
1098
  i = a;
1278
1099
  }
1279
1100
  }
1280
1101
  }
1281
- function On(e) {
1282
- kn(e, !0);
1102
+ function Dn(e) {
1103
+ e.f &= -257, On(e, !0);
1283
1104
  }
1284
- function kn(e, t) {
1285
- if (e.f & 8192) {
1286
- e.f ^= T, e.f & 1024 || (B(e, w), Et.ensure().schedule(e));
1105
+ function On(e, t) {
1106
+ if (!(e.f & 256) && e.f & 8192) {
1107
+ e.f ^= w, e.f & 1024 || (z(e, C), St.ensure().schedule(e));
1287
1108
  for (var n = e.first; n !== null;) {
1288
1109
  var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
1289
- kn(n, i ? t : !1), n = r;
1110
+ On(n, i ? t : !1), n = r;
1290
1111
  }
1291
1112
  var a = e.nodes && e.nodes.t;
1292
1113
  if (a !== null) for (let e of a) (e.is_global || t) && e.in();
1293
1114
  }
1294
1115
  }
1295
- function An(e, t) {
1116
+ function kn(e, t) {
1296
1117
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
1297
- var i = n === r ? null : /* @__PURE__ */ Zt(n);
1118
+ var i = n === r ? null : /* @__PURE__ */ qt(n);
1298
1119
  t.append(n), n = i;
1299
1120
  }
1300
1121
  }
1301
1122
  //#endregion
1302
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/legacy.js
1303
- var jn = null, Mn = !1, Nn = !1;
1304
- function Pn(e) {
1305
- Nn = e;
1123
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/legacy.js
1124
+ var An = null, jn = !1, Mn = !1;
1125
+ function Nn(e) {
1126
+ Mn = e;
1306
1127
  }
1307
- var K = null, Fn = !1;
1128
+ var K = null, Pn = !1;
1308
1129
  function q(e) {
1309
1130
  K = e;
1310
1131
  }
1311
1132
  var J = null;
1312
- function In(e) {
1133
+ function Fn(e) {
1313
1134
  J = e;
1314
1135
  }
1315
- var Ln = null;
1316
- function Rn(e) {
1317
- K !== null && (Ln ??= /* @__PURE__ */ new Set()).add(e);
1136
+ var In = null;
1137
+ function Ln(e) {
1138
+ K !== null && (In ??= /* @__PURE__ */ new Set()).add(e);
1318
1139
  }
1319
- var Y = null, X = 0, zn = null;
1320
- function Bn(e) {
1321
- zn = e;
1140
+ var Y = null, X = 0, Rn = null;
1141
+ function zn(e) {
1142
+ Rn = e;
1322
1143
  }
1323
- var Vn = 1, Hn = 0, Un = Hn;
1324
- function Wn(e) {
1325
- Un = e;
1144
+ var Bn = 1, Vn = 0, Hn = Vn;
1145
+ function Un(e) {
1146
+ Hn = e;
1326
1147
  }
1327
- function Gn() {
1328
- return ++Vn;
1148
+ function Wn() {
1149
+ return ++Bn;
1329
1150
  }
1330
- function Kn(e) {
1151
+ function Gn(e) {
1331
1152
  var t = e.f;
1332
1153
  if (t & 2048) return !0;
1333
- if (t & 2 && (e.f &= ~ae), t & 4096) {
1154
+ if (t & 2 && (e.f &= ~oe), t & 4096) {
1334
1155
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1335
1156
  var a = n[i];
1336
- if (Kn(a) && pt(a), a.wv > e.wv) return !0;
1157
+ if (Gn(a) && ut(a), a.wv > e.wv) return !0;
1337
1158
  }
1338
- t & 512 && vt === null && B(e, C);
1159
+ t & 512 && H === null && z(e, S);
1339
1160
  }
1340
1161
  return !1;
1341
1162
  }
1342
- function qn(e, t, n = !0) {
1163
+ function Kn(e, t, n = !0) {
1343
1164
  var r = e.reactions;
1344
- if (r !== null && !(Ln !== null && Ln.has(e))) for (var i = 0; i < r.length; i++) {
1165
+ if (r !== null && !(In !== null && In.has(e))) for (var i = 0; i < r.length; i++) {
1345
1166
  var a = r[i];
1346
- a.f & 2 ? qn(a, t, !1) : t === a && (n ? B(a, w) : a.f & 1024 && B(a, te), jt(a));
1167
+ a.f & 2 ? Kn(a, t, !1) : t === a && (n ? z(a, C) : a.f & 1024 && z(a, ne), Dt(a));
1347
1168
  }
1348
1169
  }
1349
- function Jn(e) {
1350
- var t = Y, n = X, r = zn, i = K, a = Ln, o = R, s = Fn, c = Un, l = e.f;
1351
- Y = null, X = 0, zn = null, K = l & 96 ? null : e, Ln = null, Le(e.ctx), Fn = !1, Un = ++Hn, e.ac !== null && (Qe(() => {
1352
- e.ac.abort(fe);
1170
+ function qn(e) {
1171
+ var t = Y, n = X, r = Rn, i = K, a = In, o = R, s = Pn, c = Hn, l = e.f;
1172
+ Y = null, X = 0, Rn = null, K = l & 96 ? null : e, In = null, Re(e.ctx), Pn = !1, Hn = ++Vn, e.ac !== null && ($e(() => {
1173
+ e.ac.abort(me);
1353
1174
  }), e.ac = null);
1354
1175
  try {
1355
- e.f |= oe;
1176
+ e.f |= se;
1356
1177
  var u = e.fn, d = u();
1357
- e.f |= ne;
1358
- var f = e.deps, p = H?.is_fork;
1359
- if (Y !== null) {
1360
- var m;
1361
- if (p || Xn(e, X), f !== null && X > 0) for (f.length = X + Y.length, m = 0; m < Y.length; m++) f[X + m] = Y[m];
1362
- else e.deps = f = Y;
1363
- if (ln() && e.f & 512) for (m = X; m < f.length; m++) (f[m].reactions ??= []).push(e);
1364
- } else !p && f !== null && X < f.length && (Xn(e, X), f.length = X);
1365
- if (Be() && zn !== null && !Fn && f !== null && !(e.f & 6146)) for (m = 0; m < zn.length; m++) qn(zn[m], e);
1178
+ e.f |= re;
1179
+ var f = Jn(e);
1180
+ if (He() && Rn !== null && !Pn && f !== null && !(e.f & 6146)) for (var p = 0; p < Rn.length; p++) Kn(Rn[p], e);
1366
1181
  if (i !== null && i !== e) {
1367
- if (Hn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Hn;
1368
- if (t !== null) for (let e of t) e.rv = Hn;
1369
- zn !== null && (r === null ? r = zn : r.push(...zn));
1182
+ if (Vn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Vn;
1183
+ if (t !== null) for (let e of t) e.rv = Vn;
1184
+ Rn !== null && (r === null ? r = Rn : r.push(...Rn));
1370
1185
  }
1371
- return e.f & 8388608 && (e.f ^= se), d;
1372
- } catch (e) {
1373
- return We(e);
1186
+ return e.f & 8388608 && (e.f ^= ce), d;
1187
+ } catch (t) {
1188
+ return Jn(e), nn(t);
1374
1189
  } finally {
1375
- e.f ^= oe, Y = t, X = n, zn = r, K = i, Ln = a, Le(o), Fn = s, Un = c;
1190
+ e.f ^= se, Y = t, X = n, Rn = r, K = i, In = a, Re(o), Pn = s, Hn = c;
1376
1191
  }
1377
1192
  }
1193
+ function Jn(e) {
1194
+ var t = e.deps, n = V?.is_fork;
1195
+ if (Y !== null) {
1196
+ var r;
1197
+ if (n || Xn(e, X), t !== null && X > 0) for (t.length = X + Y.length, r = 0; r < Y.length; r++) t[X + r] = Y[r];
1198
+ else e.deps = t = Y;
1199
+ if (cn() && e.f & 512) for (r = X; r < t.length; r++) (t[r].reactions ??= []).push(e);
1200
+ } else !n && t !== null && X < t.length && (Xn(e, X), t.length = X);
1201
+ return t;
1202
+ }
1378
1203
  function Yn(e, t) {
1379
1204
  let n = t.reactions;
1380
1205
  if (n !== null) {
@@ -1386,9 +1211,9 @@ function Yn(e, t) {
1386
1211
  }
1387
1212
  if (n === null && t.f & 2 && (Y === null || !d.call(Y, t))) {
1388
1213
  var a = t;
1389
- a.f & 512 && (a.f ^= 512, a.f &= ~ae), a.v !== s && qe(a), a.ac !== null && Qe(() => {
1390
- a.ac.abort(fe), a.ac = null, B(a, w);
1391
- }), mt(a), Xn(a, 0);
1214
+ a.f & 512 && (a.f ^= 512, a.f &= ~oe), a.v !== s && Je(a), a.ac !== null && $e(() => {
1215
+ a.ac.abort(me), a.ac = null, z(a, C);
1216
+ }), dt(a), Xn(a, 0);
1392
1217
  }
1393
1218
  }
1394
1219
  function Xn(e, t) {
@@ -1398,66 +1223,66 @@ function Xn(e, t) {
1398
1223
  function Zn(e) {
1399
1224
  var t = e.f;
1400
1225
  if (!(t & 16384)) {
1401
- B(e, C);
1402
- var n = J, r = Mn;
1403
- J = e, Mn = !(t & 96);
1226
+ z(e, S);
1227
+ var n = J, r = jn;
1228
+ J = e, jn = !(t & 96);
1404
1229
  try {
1405
- t & 16777232 ? Cn(e) : Sn(e), xn(e);
1406
- var i = Jn(e);
1407
- e.teardown = typeof i == "function" ? i : null, e.wv = Vn;
1230
+ t & 16777232 ? Sn(e) : xn(e), bn(e);
1231
+ var i = qn(e);
1232
+ e.teardown = typeof i == "function" ? i : null, e.wv = Bn;
1408
1233
  } finally {
1409
- Mn = r, J = n;
1234
+ jn = r, J = n;
1410
1235
  }
1411
1236
  }
1412
1237
  }
1413
1238
  function Z(e) {
1414
1239
  var t = !!(e.f & 2);
1415
- if (jn?.add(e), K !== null && !Fn && !(J !== null && J.f & 16384) && (Ln === null || !Ln.has(e))) {
1240
+ if (An?.add(e), K !== null && !Pn && !(J !== null && J.f & 16384) && (In === null || !In.has(e))) {
1416
1241
  var n = K.deps;
1417
- if (K.f & 2097152) e.rv < Hn && (e.rv = Hn, Y === null && n !== null && n[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
1242
+ if (K.f & 2097152) e.rv < Vn && (e.rv = Vn, Y === null && n !== null && n[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
1418
1243
  else {
1419
1244
  K.deps ??= [], d.call(K.deps, e) || K.deps.push(e);
1420
1245
  var r = e.reactions;
1421
1246
  r === null ? e.reactions = [K] : d.call(r, K) || r.push(K);
1422
1247
  }
1423
1248
  }
1424
- if (Nn && Ft.has(e)) return Ft.get(e);
1249
+ if (Mn && jt.has(e)) return jt.get(e);
1425
1250
  if (t) {
1426
1251
  var i = e;
1427
- if (Nn) {
1252
+ if (Mn) {
1428
1253
  var a = i.v;
1429
- return (!(i.f & 1024) && i.reactions !== null || $n(i)) && (a = ft(i)), Ft.set(i, a), a;
1254
+ return (!(i.f & 1024) && i.reactions !== null || $n(i)) && (a = lt(i)), jt.set(i, a), a;
1430
1255
  }
1431
- var o = !(i.f & 512) && !Fn && K !== null && (Mn || !!(K.f & 512)), s = (i.f & ne) === 0;
1432
- Kn(i) && (o && (i.f |= 512), pt(i)), o && !s && (ht(i), Qn(i));
1256
+ var o = !(i.f & 512) && !Pn && K !== null && (jn || !!(K.f & 512)), s = (i.f & re) === 0;
1257
+ Gn(i) && (o && (i.f |= 512), ut(i)), o && !s && (ft(i), Qn(i));
1433
1258
  }
1434
- if (vt?.has(e)) return vt.get(e);
1259
+ if (H?.has(e)) return H.get(e);
1435
1260
  if (e.f & 8388608) throw e.v;
1436
1261
  return e.v;
1437
1262
  }
1438
1263
  function Qn(e) {
1439
- if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (ht(t), Qn(t));
1264
+ if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (ft(t), Qn(t));
1440
1265
  }
1441
1266
  function $n(e) {
1442
1267
  if (e.v === s) return !0;
1443
1268
  if (e.deps === null) return !1;
1444
- for (let t of e.deps) if (Ft.has(t) || t.f & 2 && $n(t)) return !0;
1269
+ for (let t of e.deps) if (jt.has(t) || t.f & 2 && $n(t)) return !0;
1445
1270
  return !1;
1446
1271
  }
1447
1272
  function er(e) {
1448
- var t = Fn;
1273
+ var t = Pn;
1449
1274
  try {
1450
- return Fn = !0, e();
1275
+ return Pn = !0, e();
1451
1276
  } finally {
1452
- Fn = t;
1277
+ Pn = t;
1453
1278
  }
1454
1279
  }
1455
1280
  function tr(e) {
1456
1281
  if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
1457
- if (j in e) nr(e);
1282
+ if (A in e) nr(e);
1458
1283
  else if (!Array.isArray(e)) for (let t in e) {
1459
1284
  let n = e[t];
1460
- typeof n == "object" && n && j in n && nr(n);
1285
+ typeof n == "object" && n && A in n && nr(n);
1461
1286
  }
1462
1287
  }
1463
1288
  }
@@ -1480,7 +1305,7 @@ function nr(e, t = /* @__PURE__ */ new Set()) {
1480
1305
  }
1481
1306
  }
1482
1307
  //#endregion
1483
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/events.js
1308
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/events.js
1484
1309
  var rr = Symbol("events"), ir = /* @__PURE__ */ new Set(), ar = /* @__PURE__ */ new Set();
1485
1310
  function or(e, t, n) {
1486
1311
  (t[rr] ??= {})[e] = n;
@@ -1514,7 +1339,7 @@ function ur(e) {
1514
1339
  }
1515
1340
  });
1516
1341
  var u = K, d = J;
1517
- q(null), In(null);
1342
+ q(null), Fn(null);
1518
1343
  try {
1519
1344
  for (var f, p = []; a !== null && a !== t;) {
1520
1345
  try {
@@ -1533,22 +1358,22 @@ function ur(e) {
1533
1358
  throw f;
1534
1359
  }
1535
1360
  } finally {
1536
- e[rr] = t, delete e.currentTarget, q(u), In(d);
1361
+ e[rr] = t, delete e.currentTarget, q(u), Fn(d);
1537
1362
  }
1538
1363
  }
1539
1364
  }
1540
1365
  //#endregion
1541
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/reconciler.js
1366
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/reconciler.js
1542
1367
  var dr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1543
1368
  function fr(e) {
1544
1369
  return dr?.createHTML(e) ?? e;
1545
1370
  }
1546
1371
  function pr(e) {
1547
- var t = rn("template");
1372
+ var t = en("template");
1548
1373
  return t.innerHTML = fr(e.replaceAll("<!>", "<!---->")), t.content;
1549
1374
  }
1550
1375
  //#endregion
1551
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/template.js
1376
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/template.js
1552
1377
  function mr(e, t) {
1553
1378
  var n = J;
1554
1379
  n.nodes === null && (n.nodes = {
@@ -1562,25 +1387,25 @@ function mr(e, t) {
1562
1387
  function hr(e, t) {
1563
1388
  var n = !!(t & 1), r = !!(t & 2), i, a = !e.startsWith("<!>");
1564
1389
  return () => {
1565
- if (P) return mr(I, null), I;
1566
- i === void 0 && (i = pr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Xt(i)));
1567
- var t = r || Gt ? document.importNode(i, !0) : i.cloneNode(!0);
1390
+ if (N) return mr(F, null), F;
1391
+ i === void 0 && (i = pr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Kt(i)));
1392
+ var t = r || Vt ? document.importNode(i, !0) : i.cloneNode(!0);
1568
1393
  if (n) {
1569
- var o = /* @__PURE__ */ Xt(t), s = t.lastChild;
1394
+ var o = /* @__PURE__ */ Kt(t), s = t.lastChild;
1570
1395
  mr(o, s);
1571
1396
  } else mr(t, t);
1572
1397
  return t;
1573
1398
  };
1574
1399
  }
1575
1400
  function gr() {
1576
- if (P) return mr(I, null), I;
1577
- var e = document.createDocumentFragment(), t = document.createComment(""), n = Yt();
1401
+ if (N) return mr(F, null), F;
1402
+ var e = document.createDocumentFragment(), t = document.createComment(""), n = Gt();
1578
1403
  return e.append(t, n), mr(t, n), e;
1579
1404
  }
1580
1405
  function _r(e, t) {
1581
- if (P) {
1406
+ if (N) {
1582
1407
  var n = J;
1583
- (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = I), ke();
1408
+ (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = F), ye();
1584
1409
  return;
1585
1410
  }
1586
1411
  e !== null && e.before(t);
@@ -1590,42 +1415,244 @@ var vr = ["touchstart", "touchmove"];
1590
1415
  function yr(e) {
1591
1416
  return vr.includes(e);
1592
1417
  }
1593
- function br(e, t) {
1418
+ //#endregion
1419
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/reactivity/create-subscriber.js
1420
+ function br(e) {
1421
+ let t = 0, n = Nt(0), r;
1422
+ return () => {
1423
+ cn() && (Z(n), gn(() => (t === 0 && (r = er(() => e(() => Lt(n)))), t += 1, () => {
1424
+ Ge(() => {
1425
+ --t, t === 0 && (r?.(), r = void 0, Lt(n));
1426
+ });
1427
+ })));
1428
+ };
1429
+ }
1430
+ //#endregion
1431
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1432
+ var xr = E | D;
1433
+ function Sr(e, t, n, r) {
1434
+ new Cr(e, t, n, r);
1435
+ }
1436
+ var Cr = class {
1437
+ parent;
1438
+ is_pending = !1;
1439
+ transform_error;
1440
+ #e;
1441
+ #t = N ? F : null;
1442
+ #n;
1443
+ #r;
1444
+ #i;
1445
+ #a = null;
1446
+ #o = null;
1447
+ #s = null;
1448
+ #c = null;
1449
+ #l = 0;
1450
+ #u = 0;
1451
+ #d = !1;
1452
+ #f = /* @__PURE__ */ new Set();
1453
+ #p = /* @__PURE__ */ new Set();
1454
+ #m = null;
1455
+ #h = br(() => (this.#m = Nt(this.#l), () => {
1456
+ this.#m = null;
1457
+ }));
1458
+ constructor(e, t, n, r) {
1459
+ this.#e = e, this.#n = t, this.#r = (e) => {
1460
+ var t = J;
1461
+ t.b = this, t.f |= 128, n(e);
1462
+ }, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = vn(() => {
1463
+ if (N) {
1464
+ let e = this.#t;
1465
+ ye();
1466
+ let t = e.data === "[!";
1467
+ if (e.data.startsWith("[?")) {
1468
+ let t = JSON.parse(e.data.slice(2));
1469
+ this.#_(t);
1470
+ } else t ? this.#y() : this.#g();
1471
+ } else this.#b();
1472
+ }, xr), N && (this.#e = F);
1473
+ }
1474
+ #g() {
1475
+ try {
1476
+ this.#a = yn(() => this.#r(this.#e));
1477
+ } catch (e) {
1478
+ this.error(e);
1479
+ }
1480
+ }
1481
+ #_(e) {
1482
+ let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
1483
+ Ge(r), t && (this.#s = yn(() => {
1484
+ t(this.#e, () => e, () => n);
1485
+ }));
1486
+ }
1487
+ #v(e) {
1488
+ var t = !1, n = !1;
1489
+ let r = () => {
1490
+ if (t) {
1491
+ ve();
1492
+ return;
1493
+ }
1494
+ t = !0, n && Le(), this.#s !== null && Tn(this.#s, () => {
1495
+ this.#s = null;
1496
+ }), this.#S(() => {
1497
+ this.#b();
1498
+ });
1499
+ };
1500
+ return {
1501
+ reset: r,
1502
+ invoke_onerror: () => {
1503
+ try {
1504
+ n = !0, this.#n.onerror?.(e, r), n = !1;
1505
+ } catch (e) {
1506
+ rn(e, this.#i && this.#i.parent);
1507
+ }
1508
+ }
1509
+ };
1510
+ }
1511
+ #y() {
1512
+ let e = this.#n.pending;
1513
+ e && (this.is_pending = !0, this.#o = yn(() => e(this.#e)), Ge(() => {
1514
+ var e = this.#c = document.createDocumentFragment(), t = Gt(), n = !1;
1515
+ if (e.append(t), this.#a = this.#S(() => {
1516
+ try {
1517
+ return yn(() => this.#r(t));
1518
+ } catch (e) {
1519
+ try {
1520
+ this.error(e), n = !0;
1521
+ } catch (e) {
1522
+ rn(e, this.#i.parent);
1523
+ }
1524
+ return null;
1525
+ }
1526
+ }), this.#a === null) {
1527
+ this.#c = null, n && this.#x(V);
1528
+ return;
1529
+ }
1530
+ this.#u === 0 && (this.#e.before(e), this.#c = null, Tn(this.#o, () => {
1531
+ this.#o = null;
1532
+ }), this.#x(V));
1533
+ }));
1534
+ }
1535
+ #b() {
1536
+ try {
1537
+ if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = yn(() => {
1538
+ this.#r(this.#e);
1539
+ }), this.#u > 0) {
1540
+ var e = this.#c = document.createDocumentFragment();
1541
+ kn(this.#a, e);
1542
+ let t = this.#n.pending;
1543
+ this.#o = yn(() => t(this.#e));
1544
+ } else this.#x(V);
1545
+ } catch (e) {
1546
+ this.error(e);
1547
+ }
1548
+ }
1549
+ #x(e) {
1550
+ this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
1551
+ }
1552
+ defer_effect(e) {
1553
+ Xe(e, this.#f, this.#p);
1554
+ }
1555
+ is_rendered() {
1556
+ return !this.is_pending && (!this.parent || this.parent.is_rendered());
1557
+ }
1558
+ has_pending_snippet() {
1559
+ return !!this.#n.pending;
1560
+ }
1561
+ #S(e) {
1562
+ var t = J, n = K, r = R;
1563
+ Fn(this.#i), q(this.#i), Re(this.#i.ctx);
1564
+ try {
1565
+ return St.ensure(), e();
1566
+ } finally {
1567
+ Fn(t), q(n), Re(r);
1568
+ }
1569
+ }
1570
+ #C(e, t) {
1571
+ if (!this.has_pending_snippet()) {
1572
+ this.parent && this.parent.#C(e, t);
1573
+ return;
1574
+ }
1575
+ this.#u += e, this.#u === 0 && (this.#x(t), this.#o && Tn(this.#o, () => {
1576
+ this.#o = null;
1577
+ }), this.#c &&= (this.#e.before(this.#c), null));
1578
+ }
1579
+ update_pending_count(e, t) {
1580
+ this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ge(() => {
1581
+ this.#d = !1, this.#m && Ft(this.#m, this.#l);
1582
+ }));
1583
+ }
1584
+ get_effect_pending() {
1585
+ return this.#h(), Z(this.#m);
1586
+ }
1587
+ error(e) {
1588
+ if (!this.#n.onerror && !this.#n.failed) throw e;
1589
+ V?.is_fork ? (this.#a && V.skip_effect(this.#a), this.#o && V.skip_effect(this.#o), this.#s && V.skip_effect(this.#s), V.oncommit(() => {
1590
+ this.#w(e);
1591
+ })) : this.#w(e);
1592
+ }
1593
+ #w(e) {
1594
+ this.#a &&= (G(this.#a), null), this.#o &&= (G(this.#o), null), this.#s &&= (G(this.#s), null), N && (I(this.#t), xe(), I(L()));
1595
+ let t = this.#n.failed, n = (e) => {
1596
+ let { reset: n, invoke_onerror: r } = this.#v(e);
1597
+ r(), t && (this.#s = this.#S(() => {
1598
+ try {
1599
+ return yn(() => {
1600
+ var r = J;
1601
+ r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
1602
+ });
1603
+ } catch (e) {
1604
+ return rn(e, this.#i.parent), null;
1605
+ }
1606
+ }));
1607
+ };
1608
+ Ge(() => {
1609
+ var t;
1610
+ try {
1611
+ t = this.transform_error(e);
1612
+ } catch (e) {
1613
+ rn(e, this.#i && this.#i.parent);
1614
+ return;
1615
+ }
1616
+ typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => rn(e, this.#i && this.#i.parent)) : n(t);
1617
+ });
1618
+ }
1619
+ };
1620
+ function wr(e, t) {
1594
1621
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1595
- n !== (e[de] ??= e.nodeValue) && (e[de] = n, e.nodeValue = `${n}`);
1622
+ n !== (e[pe] ??= e.nodeValue) && (e[pe] = n, e.nodeValue = `${n}`);
1596
1623
  }
1597
- function xr(e, t) {
1598
- return wr(e, t);
1624
+ function Tr(e, t) {
1625
+ return Or(e, t);
1599
1626
  }
1600
- function Sr(e, t) {
1601
- Jt(), t.intro = t.intro ?? !1;
1602
- let n = t.target, r = P, i = I;
1627
+ function Er(e, t) {
1628
+ Wt(), t.intro = t.intro ?? !1;
1629
+ let n = t.target, r = N, i = F;
1603
1630
  try {
1604
- for (var a = /* @__PURE__ */ Xt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ Zt(a);
1631
+ for (var a = /* @__PURE__ */ Kt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ qt(a);
1605
1632
  if (!a) throw o;
1606
- F(!0), L(a);
1607
- let r = wr(e, {
1633
+ P(!0), I(a);
1634
+ let r = Or(e, {
1608
1635
  ...t,
1609
1636
  anchor: a
1610
1637
  });
1611
- return F(!1), r;
1638
+ return P(!1), r;
1612
1639
  } catch (r) {
1613
1640
  if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
1614
- return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 && be(), Jt(), tn(n), F(!1), xr(e, t);
1641
+ return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 && Me(), Wt(), Qt(n), P(!1), Tr(e, t);
1615
1642
  } finally {
1616
- F(r), L(i);
1643
+ P(r), I(i);
1617
1644
  }
1618
1645
  }
1619
- var Cr = /* @__PURE__ */ new Map();
1620
- function wr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: s = !0, transformError: c }) {
1621
- Jt();
1622
- var l = void 0, u = mn(() => {
1623
- var s = n ?? t.appendChild(Yt());
1624
- tt(s, { pending: () => {} }, (t) => {
1625
- Re({});
1646
+ var Dr = /* @__PURE__ */ new Map();
1647
+ function Or(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: s = !0, transformError: c }) {
1648
+ Wt();
1649
+ var l = void 0, u = pn(() => {
1650
+ var s = n ?? t.appendChild(Gt());
1651
+ Sr(s, { pending: () => {} }, (t) => {
1652
+ ze({});
1626
1653
  var n = R;
1627
- if (a && (n.c = a), i && (r.$$events = i), P && mr(t, null), l = e(t, r) || {}, P && (J.nodes.end = I, I === null || I.nodeType !== 8 || I.data !== "]")) throw De(), o;
1628
- ze();
1654
+ if (a && (n.c = a), i && (r.$$events = i), N && mr(t, null), l = e(t, r) || Ve(), N && (J.nodes.end = F, F === null || F.nodeType !== 8 || F.data !== "]")) throw _e(), o;
1655
+ Be();
1629
1656
  }, c);
1630
1657
  var u = /* @__PURE__ */ new Set(), d = (e) => {
1631
1658
  for (var n = 0; n < e.length; n++) {
@@ -1634,8 +1661,8 @@ function wr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, int
1634
1661
  u.add(r);
1635
1662
  var i = yr(r);
1636
1663
  for (let e of [t, document]) {
1637
- var a = Cr.get(e);
1638
- a === void 0 && (a = /* @__PURE__ */ new Map(), Cr.set(e, a));
1664
+ var a = Dr.get(e);
1665
+ a === void 0 && (a = /* @__PURE__ */ new Map(), Dr.set(e, a));
1639
1666
  var o = a.get(r);
1640
1667
  o === void 0 ? (e.addEventListener(r, ur, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1641
1668
  }
@@ -1644,22 +1671,22 @@ function wr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, int
1644
1671
  };
1645
1672
  return d(f(ir)), ar.add(d), () => {
1646
1673
  for (var e of u) for (let n of [t, document]) {
1647
- var r = Cr.get(n), i = r.get(e);
1648
- --i == 0 ? (n.removeEventListener(e, ur), r.delete(e), r.size === 0 && Cr.delete(n)) : r.set(e, i);
1674
+ var r = Dr.get(n), i = r.get(e);
1675
+ --i == 0 ? (n.removeEventListener(e, ur), r.delete(e), r.size === 0 && Dr.delete(n)) : r.set(e, i);
1649
1676
  }
1650
1677
  ar.delete(d), s !== n && s.parentNode?.removeChild(s);
1651
1678
  };
1652
1679
  });
1653
- return Tr.set(l, u), l;
1680
+ return kr.set(l, u), l;
1654
1681
  }
1655
- var Tr = /* @__PURE__ */ new WeakMap();
1656
- function Er(e, t) {
1657
- let n = Tr.get(e);
1658
- return n ? (Tr.delete(e), n(t)) : Promise.resolve();
1682
+ var kr = /* @__PURE__ */ new WeakMap();
1683
+ function Ar(e, t) {
1684
+ let n = kr.get(e);
1685
+ return n ? (kr.delete(e), n(t)) : Promise.resolve();
1659
1686
  }
1660
1687
  //#endregion
1661
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1662
- var Dr = class {
1688
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1689
+ var jr = class {
1663
1690
  anchor;
1664
1691
  #e = /* @__PURE__ */ new Map();
1665
1692
  #t = /* @__PURE__ */ new Map();
@@ -1672,10 +1699,10 @@ var Dr = class {
1672
1699
  #a = (e) => {
1673
1700
  if (this.#e.has(e)) {
1674
1701
  var t = this.#e.get(e), n = this.#t.get(t);
1675
- if (n) On(n), this.#r.delete(t);
1702
+ if (n) Dn(n), this.#r.delete(t);
1676
1703
  else {
1677
1704
  var r = this.#n.get(t);
1678
- r && (On(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1705
+ r && (Dn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1679
1706
  }
1680
1707
  for (let [t, n] of this.#e) {
1681
1708
  if (this.#e.delete(t), t === e) break;
@@ -1687,14 +1714,14 @@ var Dr = class {
1687
1714
  let i = () => {
1688
1715
  if (Array.from(this.#e.values()).includes(e)) {
1689
1716
  var t = document.createDocumentFragment();
1690
- An(r, t), t.append(Yt()), this.#n.set(e, {
1717
+ kn(r, t), t.append(Gt()), this.#n.set(e, {
1691
1718
  effect: r,
1692
1719
  fragment: t
1693
1720
  });
1694
1721
  } else G(r);
1695
1722
  this.#r.delete(e), this.#t.delete(e);
1696
1723
  };
1697
- this.#i || !n ? (this.#r.add(e), En(r, i, !1)) : i();
1724
+ this.#i || !n ? (this.#r.add(e), Tn(r, i, !1)) : i();
1698
1725
  }
1699
1726
  }
1700
1727
  };
@@ -1704,41 +1731,41 @@ var Dr = class {
1704
1731
  for (let [e, n] of this.#n) t.includes(e) || (G(n.effect), this.#n.delete(e));
1705
1732
  };
1706
1733
  ensure(e, t) {
1707
- var n = H, r = nn();
1734
+ var n = V, r = $t();
1708
1735
  if (t && !this.#t.has(e) && !this.#n.has(e)) {
1709
1736
  if (r) {
1710
- var i = document.createDocumentFragment(), a = Yt();
1737
+ var i = document.createDocumentFragment(), a = Gt();
1711
1738
  i.append(a), this.#n.set(e, {
1712
- effect: bn(() => t(a)),
1739
+ effect: yn(() => t(a)),
1713
1740
  fragment: i
1714
1741
  });
1715
- } else this.#t.set(e, bn(() => t(this.anchor)));
1742
+ } else this.#t.set(e, yn(() => t(this.anchor)));
1716
1743
  }
1717
1744
  if (this.#e.set(n, e), r) {
1718
1745
  for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
1719
1746
  for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
1720
1747
  n.oncommit(this.#a), n.ondiscard(this.#o);
1721
- } else P && (this.anchor = I), this.#a(n);
1748
+ } else N && (this.anchor = F), this.#a(n);
1722
1749
  }
1723
1750
  };
1724
1751
  //#endregion
1725
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/blocks/if.js
1726
- function Or(e, t, n = !1) {
1752
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
1753
+ function Mr(e, t, n = !1) {
1727
1754
  var r;
1728
- P && (r = I, ke());
1729
- var i = new Dr(e), a = n ? D : 0;
1755
+ N && (r = F, ye());
1756
+ var i = new jr(e), a = n ? E : 0;
1730
1757
  function o(e, t) {
1731
- if (P) {
1732
- var n = Ne(r);
1758
+ if (N) {
1759
+ var n = Se(r);
1733
1760
  if (e !== parseInt(n.substring(1))) {
1734
- var a = Me();
1735
- L(a), i.anchor = a, F(!1), i.ensure(e, t), F(!0);
1761
+ var a = L();
1762
+ I(a), i.anchor = a, P(!1), i.ensure(e, t), P(!0);
1736
1763
  return;
1737
1764
  }
1738
1765
  }
1739
1766
  i.ensure(e, t);
1740
1767
  }
1741
- yn(() => {
1768
+ vn(() => {
1742
1769
  var e = !1;
1743
1770
  t((t, n = 0) => {
1744
1771
  e = !0, o(n, t);
@@ -1746,15 +1773,15 @@ function Or(e, t, n = !1) {
1746
1773
  }, a);
1747
1774
  }
1748
1775
  //#endregion
1749
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/blocks/each.js
1750
- function kr(e, t, n) {
1776
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/each.js
1777
+ function Nr(e, t, n) {
1751
1778
  for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
1752
1779
  let n = t[s];
1753
- En(n, () => {
1780
+ Tn(n, () => {
1754
1781
  if (a) {
1755
1782
  if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
1756
1783
  var t = e.outrogroups;
1757
- Ar(e, f(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
1784
+ Pr(e, f(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
1758
1785
  }
1759
1786
  } else --o;
1760
1787
  }, !1);
@@ -1763,15 +1790,15 @@ function kr(e, t, n) {
1763
1790
  var c = r.length === 0 && n !== null && e.pending.size === 0;
1764
1791
  if (c) {
1765
1792
  var l = n, u = l.parentNode;
1766
- tn(u), u.append(l), e.items.clear();
1793
+ Qt(u), u.append(l), e.items.clear();
1767
1794
  }
1768
- Ar(e, t, !c);
1795
+ Pr(e, t, !c);
1769
1796
  } else a = {
1770
1797
  pending: new Set(t),
1771
1798
  done: /* @__PURE__ */ new Set()
1772
1799
  }, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
1773
1800
  }
1774
- function Ar(e, t, n = !0) {
1801
+ function Pr(e, t, n = !0) {
1775
1802
  var r;
1776
1803
  if (e.pending.size > 0) {
1777
1804
  r = /* @__PURE__ */ new Set();
@@ -1779,23 +1806,23 @@ function Ar(e, t, n = !0) {
1779
1806
  }
1780
1807
  for (var i = 0; i < t.length; i++) {
1781
1808
  var a = t[i];
1782
- r?.has(a) ? (a.f |= k, An(a, document.createDocumentFragment())) : G(t[i], n);
1809
+ r?.has(a) ? (a.f |= O, kn(a, document.createDocumentFragment())) : G(t[i], n);
1783
1810
  }
1784
1811
  }
1785
- var jr;
1786
- function Mr(e, t, n, r, i, a = null) {
1812
+ var Fr;
1813
+ function Ir(e, t, n, r, i, a = null) {
1787
1814
  var o = e, s = /* @__PURE__ */ new Map();
1788
1815
  if (t & 4) {
1789
1816
  var c = e;
1790
- o = P ? L(/* @__PURE__ */ Xt(c)) : c.appendChild(Yt());
1817
+ o = N ? I(/* @__PURE__ */ Kt(c)) : c.appendChild(Gt());
1791
1818
  }
1792
- P && ke();
1793
- var u = null, d = /* @__PURE__ */ ut(() => {
1819
+ N && ye();
1820
+ var u = null, d = /* @__PURE__ */ st(() => {
1794
1821
  var e = n();
1795
1822
  return l(e) ? e : e == null ? [] : f(e);
1796
1823
  }), p, m = /* @__PURE__ */ new Map(), h = !0;
1797
1824
  function g(e) {
1798
- v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Pr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= k, Ir(u, null, o)) : On(u) : En(u, () => {
1825
+ v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, Rr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= O, Br(u, null, o)) : Dn(u) : Tn(u, () => {
1799
1826
  u = null;
1800
1827
  })));
1801
1828
  }
@@ -1803,23 +1830,23 @@ function Mr(e, t, n, r, i, a = null) {
1803
1830
  v.pending.delete(e);
1804
1831
  }
1805
1832
  var v = {
1806
- effect: yn(() => {
1833
+ effect: vn(() => {
1807
1834
  p = Z(d);
1808
1835
  var e = p.length;
1809
1836
  let c = !1;
1810
- P && Ne(o) === "[!" != (e === 0) && (o = Me(), L(o), F(!1), c = !0);
1811
- for (var l = /* @__PURE__ */ new Set(), f = H, v = nn(), y = 0; y < e; y += 1) {
1812
- P && I.nodeType === 8 && I.data === "]" && (o = I, c = !0, F(!1));
1813
- var b = p[y], x = r(b, y), S = h ? null : s.get(x);
1814
- S ? (S.v && zt(S.v, b), S.i && zt(S.i, y), v && f.unskip_effect(S.e)) : (S = Fr(s, h ? o : jr ??= Yt(), b, x, y, i, t, n), h || (S.e.f |= k), s.set(x, S)), l.add(x);
1837
+ N && Se(o) === "[!" != (e === 0) && (o = L(), I(o), P(!1), c = !0);
1838
+ for (var l = /* @__PURE__ */ new Set(), f = V, v = $t(), y = 0; y < e; y += 1) {
1839
+ N && F.nodeType === 8 && F.data === "]" && (o = F, c = !0, P(!1));
1840
+ var ee = p[y], b = r(ee, y), x = h ? null : s.get(b);
1841
+ x ? (x.v && Ft(x.v, ee), x.i && Ft(x.i, y), v && f.unskip_effect(x.e)) : (x = zr(s, h ? o : Fr ??= Gt(), ee, b, y, i, t, n), h || (x.e.f |= O), s.set(b, x)), l.add(b);
1815
1842
  }
1816
- if (e === 0 && a && !u && (h ? u = bn(() => a(o)) : (u = bn(() => a(jr ??= Yt())), u.f |= k)), e > l.size && he("", "", ""), P && e > 0 && L(Me()), !h) {
1843
+ if (e === 0 && a && !u && (h ? u = yn(() => a(o)) : (u = yn(() => a(Fr ??= Gt())), u.f |= O)), e > l.size && De("", "", ""), N && e > 0 && I(L()), !h) {
1817
1844
  if (m.set(f, l), v) {
1818
1845
  for (let [e, t] of s) l.has(e) || f.skip_effect(t.e);
1819
1846
  f.oncommit(g), f.ondiscard(_);
1820
1847
  } else g(f);
1821
1848
  }
1822
- c && F(!0), Z(d);
1849
+ c && P(!0), Z(d);
1823
1850
  }),
1824
1851
  flags: t,
1825
1852
  items: s,
@@ -1827,126 +1854,126 @@ function Mr(e, t, n, r, i, a = null) {
1827
1854
  outrogroups: null,
1828
1855
  fallback: u
1829
1856
  };
1830
- h = !1, P && (o = I);
1857
+ h = !1, N && (o = F);
1831
1858
  }
1832
- function Nr(e) {
1859
+ function Lr(e) {
1833
1860
  for (; e !== null && !(e.f & 32);) e = e.next;
1834
1861
  return e;
1835
1862
  }
1836
- function Pr(e, t, n, r, i) {
1837
- var a = !!(r & 8), o = t.length, s = e.items, c = Nr(e.effect.first), l, u = null, d, p = [], m = [], h, g, _, v;
1863
+ function Rr(e, t, n, r, i) {
1864
+ var a = !!(r & 8), o = t.length, s = e.items, c = Lr(e.effect.first), l, u = null, d, p = [], m = [], h, g, _, v;
1838
1865
  if (a) for (v = 0; v < o; v += 1) h = t[v], g = i(h, v), _ = s.get(g).e, _.f & 33554432 || (_.nodes?.a?.measure(), (d ??= /* @__PURE__ */ new Set()).add(_));
1839
1866
  for (v = 0; v < o; v += 1) {
1840
1867
  if (h = t[v], g = i(h, v), _ = s.get(g).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(_), t.done.delete(_);
1841
- if (_.f & 8192 && (On(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) {
1842
- if (_.f ^= k, _ === c) Ir(_, null, n);
1868
+ if (_.f & 8192 && (Dn(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) {
1869
+ if (_.f ^= O, _ === c) Br(_, null, n);
1843
1870
  else {
1844
1871
  var y = u ? u.next : c;
1845
- _ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Lr(e, u, _), Lr(e, _, y), Ir(_, y, n), u = _, p = [], m = [], c = Nr(u.next);
1872
+ _ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Vr(e, u, _), Vr(e, _, y), Br(_, y, n), u = _, p = [], m = [], c = Lr(u.next);
1846
1873
  continue;
1847
1874
  }
1848
1875
  }
1849
1876
  if (_ !== c) {
1850
1877
  if (l !== void 0 && l.has(_)) {
1851
1878
  if (p.length < m.length) {
1852
- var b = m[0], x;
1853
- u = b.prev;
1854
- var S = p[0], ee = p[p.length - 1];
1855
- for (x = 0; x < p.length; x += 1) Ir(p[x], b, n);
1856
- for (x = 0; x < m.length; x += 1) l.delete(m[x]);
1857
- Lr(e, S.prev, ee.next), Lr(e, u, S), Lr(e, ee, b), c = b, u = ee, --v, p = [], m = [];
1858
- } else l.delete(_), Ir(_, c, n), Lr(e, _.prev, _.next), Lr(e, _, u === null ? e.effect.first : u.next), Lr(e, u, _), u = _;
1879
+ var ee = m[0], b;
1880
+ u = ee.prev;
1881
+ var x = p[0], te = p[p.length - 1];
1882
+ for (b = 0; b < p.length; b += 1) Br(p[b], ee, n);
1883
+ for (b = 0; b < m.length; b += 1) l.delete(m[b]);
1884
+ Vr(e, x.prev, te.next), Vr(e, u, x), Vr(e, te, ee), c = ee, u = te, --v, p = [], m = [];
1885
+ } else l.delete(_), Br(_, c, n), Vr(e, _.prev, _.next), Vr(e, _, u === null ? e.effect.first : u.next), Vr(e, u, _), u = _;
1859
1886
  continue;
1860
1887
  }
1861
- for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = Nr(c.next);
1888
+ for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = Lr(c.next);
1862
1889
  if (c === null) continue;
1863
1890
  }
1864
- _.f & 33554432 || p.push(_), u = _, c = Nr(_.next);
1891
+ _.f & 33554432 || p.push(_), u = _, c = Lr(_.next);
1865
1892
  }
1866
1893
  if (e.outrogroups !== null) {
1867
- for (let t of e.outrogroups) t.pending.size === 0 && (Ar(e, f(t.done)), e.outrogroups?.delete(t));
1894
+ for (let t of e.outrogroups) t.pending.size === 0 && (Pr(e, f(t.done)), e.outrogroups?.delete(t));
1868
1895
  e.outrogroups.size === 0 && (e.outrogroups = null);
1869
1896
  }
1870
1897
  if (c !== null || l !== void 0) {
1871
- var C = [];
1872
- if (l !== void 0) for (_ of l) _.f & 8192 || C.push(_);
1873
- for (; c !== null;) !(c.f & 8192) && c !== e.fallback && C.push(c), c = Nr(c.next);
1874
- var w = C.length;
1875
- if (w > 0) {
1876
- var te = r & 4 && o === 0 ? n : null;
1898
+ var S = [];
1899
+ if (l !== void 0) for (_ of l) _.f & 8192 || S.push(_);
1900
+ for (; c !== null;) !(c.f & 8192) && c !== e.fallback && S.push(c), c = Lr(c.next);
1901
+ var C = S.length;
1902
+ if (C > 0) {
1903
+ var ne = r & 4 && o === 0 ? n : null;
1877
1904
  if (a) {
1878
- for (v = 0; v < w; v += 1) C[v].nodes?.a?.measure();
1879
- for (v = 0; v < w; v += 1) C[v].nodes?.a?.fix();
1905
+ for (v = 0; v < C; v += 1) S[v].nodes?.a?.measure();
1906
+ for (v = 0; v < C; v += 1) S[v].nodes?.a?.fix();
1880
1907
  }
1881
- kr(e, C, te);
1908
+ Nr(e, S, ne);
1882
1909
  }
1883
1910
  }
1884
- a && z(() => {
1911
+ a && Ge(() => {
1885
1912
  if (d !== void 0) for (_ of d) _.nodes?.a?.apply();
1886
1913
  });
1887
1914
  }
1888
- function Fr(e, t, n, r, i, a, o, s) {
1889
- var c = o & 1 ? o & 16 ? Lt(n) : /* @__PURE__ */ Rt(n, !1, !1) : null, l = o & 2 ? Lt(i) : null;
1915
+ function zr(e, t, n, r, i, a, o, s) {
1916
+ var c = o & 1 ? o & 16 ? Nt(n) : /* @__PURE__ */ Pt(n, !1, !1) : null, l = o & 2 ? Nt(i) : null;
1890
1917
  return {
1891
1918
  v: c,
1892
1919
  i: l,
1893
- e: bn(() => (a(t, c ?? n, l ?? i, s), () => {
1920
+ e: yn(() => (a(t, c ?? n, l ?? i, s), () => {
1894
1921
  e.delete(r);
1895
1922
  }))
1896
1923
  };
1897
1924
  }
1898
- function Ir(e, t, n) {
1925
+ function Br(e, t, n) {
1899
1926
  if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
1900
- var o = /* @__PURE__ */ Zt(r);
1927
+ var o = /* @__PURE__ */ qt(r);
1901
1928
  if (a.before(r), r === i) return;
1902
1929
  r = o;
1903
1930
  }
1904
1931
  }
1905
- function Lr(e, t, n) {
1932
+ function Vr(e, t, n) {
1906
1933
  t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
1907
1934
  }
1908
1935
  //#endregion
1909
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/css.js
1910
- function Rr(e, t) {
1911
- hn(() => {
1936
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/css.js
1937
+ function Hr(e, t) {
1938
+ mn(() => {
1912
1939
  e = J?.parent?.nodes?.start ?? e;
1913
1940
  var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
1914
1941
  if (!r.querySelector("#" + t.hash)) {
1915
- let e = rn("style");
1942
+ let e = en("style");
1916
1943
  e.id = t.hash, e.textContent = t.code, r.appendChild(e);
1917
1944
  }
1918
1945
  });
1919
1946
  }
1920
1947
  //#endregion
1921
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/actions.js
1922
- function zr(e, t, n) {
1923
- hn(() => {
1948
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/actions.js
1949
+ function Ur(e, t, n) {
1950
+ mn(() => {
1924
1951
  var r = er(() => t(e, n?.()) || {});
1925
1952
  if (n && r?.update) {
1926
1953
  var i = !1, a = {};
1927
- _n(() => {
1954
+ gn(() => {
1928
1955
  var e = n();
1929
- tr(e), i && Fe(a, e) && (a = e, r.update(e));
1956
+ tr(e), i && we(a, e) && (a = e, r.update(e));
1930
1957
  }), i = !0;
1931
1958
  }
1932
1959
  if (r?.destroy) return () => r.destroy();
1933
1960
  });
1934
1961
  }
1935
1962
  //#endregion
1936
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/shared/attributes.js
1937
- var Br = [..." \n\r\f\xA0\v"];
1938
- function Vr(e, t, n) {
1963
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/shared/attributes.js
1964
+ var Wr = [..." \n\r\f\xA0\v"];
1965
+ function Gr(e, t, n) {
1939
1966
  var r = e == null ? "" : "" + e;
1940
1967
  if (t && (r = r ? r + " " + t : t), n) {
1941
1968
  for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
1942
1969
  else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
1943
1970
  var s = o + a;
1944
- (o === 0 || Br.includes(r[o - 1])) && (s === r.length || Br.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
1971
+ (o === 0 || Wr.includes(r[o - 1])) && (s === r.length || Wr.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
1945
1972
  }
1946
1973
  }
1947
1974
  return r === "" ? null : r;
1948
1975
  }
1949
- function Hr(e, t = !1) {
1976
+ function Kr(e, t = !1) {
1950
1977
  var n = t ? " !important;" : ";", r = "";
1951
1978
  for (var i of Object.keys(e)) {
1952
1979
  var a = e[i];
@@ -1954,16 +1981,16 @@ function Hr(e, t = !1) {
1954
1981
  }
1955
1982
  return r;
1956
1983
  }
1957
- function Ur(e) {
1984
+ function qr(e) {
1958
1985
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
1959
1986
  }
1960
- function Wr(e, t) {
1987
+ function Jr(e, t) {
1961
1988
  if (t) {
1962
1989
  var n = "", r, i;
1963
1990
  if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
1964
1991
  e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
1965
1992
  var a = !1, o = 0, s = !1, c = [];
1966
- r && c.push(...Object.keys(r).map(Ur)), i && c.push(...Object.keys(i).map(Ur));
1993
+ r && c.push(...Object.keys(r).map(qr)), i && c.push(...Object.keys(i).map(qr));
1967
1994
  var l = 0, u = -1;
1968
1995
  let t = e.length;
1969
1996
  for (var d = 0; d < t; d++) {
@@ -1972,7 +1999,7 @@ function Wr(e, t) {
1972
1999
  if (f === ":" && u === -1) u = d;
1973
2000
  else if (f === ";" || d === t - 1) {
1974
2001
  if (u !== -1) {
1975
- var p = Ur(e.substring(l, u).trim());
2002
+ var p = qr(e.substring(l, u).trim());
1976
2003
  if (!c.includes(p)) {
1977
2004
  f !== ";" && d++;
1978
2005
  var m = e.substring(l, d).trim();
@@ -1984,17 +2011,17 @@ function Wr(e, t) {
1984
2011
  }
1985
2012
  }
1986
2013
  }
1987
- return r && (n += Hr(r)), i && (n += Hr(i, !0)), n = n.trim(), n === "" ? null : n;
2014
+ return r && (n += Kr(r)), i && (n += Kr(i, !0)), n = n.trim(), n === "" ? null : n;
1988
2015
  }
1989
2016
  return e == null ? null : String(e);
1990
2017
  }
1991
2018
  //#endregion
1992
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/class.js
1993
- function Gr(e, t, n, r, i, a) {
1994
- var o = e[le];
1995
- if (P || o !== n || o === void 0) {
1996
- var s = Vr(n, r, a);
1997
- (!P || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[le] = n;
2019
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/class.js
2020
+ function Yr(e, t, n, r, i, a) {
2021
+ var o = e[de];
2022
+ if (N || o !== n || o === void 0) {
2023
+ var s = Gr(n, r, a);
2024
+ (!N || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[de] = n;
1998
2025
  } else if (a && i !== a) for (var c in a) {
1999
2026
  var l = !!a[c];
2000
2027
  (i == null || l !== !!i[c]) && e.classList.toggle(c, l);
@@ -2002,73 +2029,73 @@ function Gr(e, t, n, r, i, a) {
2002
2029
  return a;
2003
2030
  }
2004
2031
  //#endregion
2005
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/style.js
2006
- function Kr(e, t = {}, n, r) {
2032
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/style.js
2033
+ function Xr(e, t = {}, n, r) {
2007
2034
  for (var i in n) {
2008
2035
  var a = n[i];
2009
2036
  t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
2010
2037
  }
2011
2038
  }
2012
- function qr(e, t, n, r) {
2013
- var i = e[ue];
2014
- if (P || i !== t) {
2015
- var a = Wr(t, r);
2016
- (!P || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[ue] = t;
2017
- } else r && (Array.isArray(r) ? (Kr(e, n?.[0], r[0]), Kr(e, n?.[1], r[1], "important")) : Kr(e, n, r));
2039
+ function Zr(e, t, n, r) {
2040
+ var i = e[fe];
2041
+ if (N || i !== t) {
2042
+ var a = Jr(t, r);
2043
+ (!N || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[fe] = t;
2044
+ } else r && (Array.isArray(r) ? (Xr(e, n?.[0], r[0]), Xr(e, n?.[1], r[1], "important")) : Xr(e, n, r));
2018
2045
  return r;
2019
2046
  }
2020
2047
  //#endregion
2021
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/attributes.js
2022
- var Jr = Symbol("is custom element"), Yr = Symbol("is html"), Xr = pe ? "link" : "LINK";
2048
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/attributes.js
2049
+ var Qr = Symbol("is custom element"), $r = Symbol("is html"), ei = he ? "link" : "LINK";
2023
2050
  function Q(e, t, n, r) {
2024
- var i = Qr(e);
2025
- P && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Xr) || i[t] !== (i[t] = n) && (t === "loading" && (e[N] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ei(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2051
+ var i = ni(e);
2052
+ N && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ei) || i[t] !== (i[t] = n) && (t === "loading" && (e[le] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ii(e).has(t) ? e[t] = n : e.setAttribute(t, n));
2026
2053
  }
2027
- function Zr(e, t, n) {
2054
+ function ti(e, t, n) {
2028
2055
  var r = K, i = J;
2029
- let a = P;
2030
- P && F(!1), q(null), In(null);
2056
+ let a = N;
2057
+ N && P(!1), q(null), Fn(null);
2031
2058
  try {
2032
- t !== "style" && ($r.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? ei(e).includes(t) : n && typeof n == "object") ? e[t] = n : Q(e, t, n == null ? n : String(n));
2059
+ t !== "style" && (ri.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? ii(e).has(t) : n && typeof n == "object") ? e[t] = n : Q(e, t, n == null ? n : String(n));
2033
2060
  } finally {
2034
- q(r), In(i), a && F(!0);
2061
+ q(r), Fn(i), a && P(!0);
2035
2062
  }
2036
2063
  }
2037
- function Qr(e) {
2038
- return e[ce] ??= {
2039
- [Jr]: e.nodeName.includes("-"),
2040
- [Yr]: e.namespaceURI === c
2064
+ function ni(e) {
2065
+ return e[ue] ??= {
2066
+ [Qr]: e.nodeName.includes("-"),
2067
+ [$r]: e.namespaceURI === c
2041
2068
  };
2042
2069
  }
2043
- var $r = /* @__PURE__ */ new Map();
2044
- function ei(e) {
2045
- var t = e.getAttribute("is") || e.nodeName, n = $r.get(t);
2070
+ var ri = /* @__PURE__ */ new Map();
2071
+ function ii(e) {
2072
+ var t = e.getAttribute("is") || e.nodeName, n = ri.get(t);
2046
2073
  if (n) return n;
2047
- $r.set(t, n = []);
2074
+ ri.set(t, n = /* @__PURE__ */ new Set());
2048
2075
  for (var r, i = e, a = Element.prototype; a !== i;) {
2049
- for (var o in r = g(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.push(o);
2076
+ for (var o in r = g(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.add(o);
2050
2077
  i = y(i);
2051
2078
  }
2052
2079
  return n;
2053
2080
  }
2054
2081
  //#endregion
2055
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
2056
- function ti(e, t) {
2057
- return e === t || e?.[j] === t;
2082
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
2083
+ function ai(e, t) {
2084
+ return e === t || e?.[A] === t;
2058
2085
  }
2059
- function ni(e = {}, t, n, r) {
2086
+ function oi(e = Ve(), t, n, r) {
2060
2087
  var i = R.r, a = J;
2061
- return hn(() => {
2088
+ return mn(() => {
2062
2089
  var o, s;
2063
- return _n(() => {
2090
+ return gn(() => {
2064
2091
  o = s, s = r?.() || [], er(() => {
2065
- ti(n(...s), e) || (t(e, ...s), o && ti(n(...o), e) && t(null, ...o));
2092
+ ai(n(...s), e) || (t(e, ...s), o && ai(n(...o), e) && t(null, ...o));
2066
2093
  });
2067
2094
  }), () => {
2068
2095
  let r = a;
2069
2096
  for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
2070
2097
  let o = () => {
2071
- s && ti(n(...s), e) && t(null, ...s);
2098
+ s && ai(n(...s), e) && t(null, ...s);
2072
2099
  }, c = r.teardown;
2073
2100
  r.teardown = () => {
2074
2101
  o(), c?.();
@@ -2077,16 +2104,16 @@ function ni(e = {}, t, n, r) {
2077
2104
  }), e;
2078
2105
  }
2079
2106
  //#endregion
2080
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/internal/client/reactivity/props.js
2081
- function ri(e, t, n, r) {
2082
- var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ st(r), Z(l)) : (c && (c = !1, s = o ? er(r) : r), s);
2107
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/props.js
2108
+ function si(e, t, n, r) {
2109
+ var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ it(r), Z(l)) : (c && (c = !1, s = o ? er(r) : r), s);
2083
2110
  let d;
2084
2111
  if (a) {
2085
- var f = j in e || M in e;
2112
+ var f = A in e || M in e;
2086
2113
  d = h(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
2087
2114
  }
2088
2115
  var p, m = !1;
2089
- a ? [p, m] = Ze(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && xe(t), d(p)));
2116
+ a ? [p, m] = Qe(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && Ne(t), d(p)));
2090
2117
  var g = i ? () => {
2091
2118
  var n = e[t];
2092
2119
  return n === void 0 ? u() : (c = !0, n);
@@ -2101,28 +2128,28 @@ function ri(e, t, n, r) {
2101
2128
  return arguments.length > 0 ? ((!i || !t || _ || m) && d(t ? g() : e), e) : g();
2102
2129
  });
2103
2130
  }
2104
- var v = !1, y = (n & 1 ? st : ut)(() => (v = !1, g()));
2131
+ var v = !1, y = (n & 1 ? it : st)(() => (v = !1, g()));
2105
2132
  a && Z(y);
2106
- var b = J;
2133
+ var ee = J;
2107
2134
  return (function(e, t) {
2108
2135
  if (arguments.length > 0) {
2109
- let n = t ? Z(y) : i && a ? Ut(e) : e;
2136
+ let n = t ? Z(y) : i && a ? zt(e) : e;
2110
2137
  return W(y, n), v = !0, s !== void 0 && (s = n), e;
2111
2138
  }
2112
- return Nn && v || b.f & 16384 ? y.v : Z(y);
2139
+ return Mn && v || ee.f & 16384 ? y.v : Z(y);
2113
2140
  });
2114
2141
  }
2115
2142
  //#endregion
2116
- //#region ../../node_modules/.bun/svelte@5.56.10/node_modules/svelte/src/legacy/legacy-client.js
2117
- function ii(e) {
2118
- return new ai(e);
2143
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/legacy/legacy-client.js
2144
+ function ci(e) {
2145
+ return new li(e);
2119
2146
  }
2120
- var ai = class {
2147
+ var li = class {
2121
2148
  #e;
2122
2149
  #t;
2123
2150
  constructor(e) {
2124
2151
  var t = /* @__PURE__ */ new Map(), n = (e, n) => {
2125
- var r = /* @__PURE__ */ Rt(n, !1, !1);
2152
+ var r = /* @__PURE__ */ Pt(n, !1, !1);
2126
2153
  return t.set(e, r), r;
2127
2154
  };
2128
2155
  let r = new Proxy({
@@ -2139,7 +2166,7 @@ var ai = class {
2139
2166
  return W(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2140
2167
  }
2141
2168
  });
2142
- this.#t = (e.hydrate ? Sr : xr)(e.component, {
2169
+ this.#t = (e.hydrate ? Er : Tr)(e.component, {
2143
2170
  target: e.target,
2144
2171
  anchor: e.anchor,
2145
2172
  props: r,
@@ -2147,7 +2174,7 @@ var ai = class {
2147
2174
  intro: e.intro ?? !1,
2148
2175
  recover: e.recover,
2149
2176
  transformError: e.transformError
2150
- }), (!e?.props?.$$host || e.sync === !1) && Dt(), this.#e = r.$$events;
2177
+ }), (!e?.props?.$$host || e.sync === !1) && Ct(), this.#e = r.$$events;
2151
2178
  for (let e of Object.keys(this.#t)) e !== "$set" && e !== "$destroy" && e !== "$on" && m(this, e, {
2152
2179
  get() {
2153
2180
  return this.#t[e];
@@ -2160,7 +2187,7 @@ var ai = class {
2160
2187
  this.#t.$set = (e) => {
2161
2188
  Object.assign(r, e);
2162
2189
  }, this.#t.$destroy = () => {
2163
- Er(this.#t);
2190
+ Ar(this.#t);
2164
2191
  };
2165
2192
  }
2166
2193
  $set(e) {
@@ -2176,8 +2203,8 @@ var ai = class {
2176
2203
  $destroy() {
2177
2204
  this.#t.$destroy();
2178
2205
  }
2179
- }, oi;
2180
- typeof HTMLElement == "function" && (oi = class extends HTMLElement {
2206
+ }, ui;
2207
+ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2181
2208
  $$ctor;
2182
2209
  $$s;
2183
2210
  $$c;
@@ -2210,18 +2237,18 @@ typeof HTMLElement == "function" && (oi = class extends HTMLElement {
2210
2237
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2211
2238
  function e(e) {
2212
2239
  return (t) => {
2213
- let n = rn("slot");
2240
+ let n = en("slot");
2214
2241
  e !== "default" && (n.name = e), _r(t, n);
2215
2242
  };
2216
2243
  }
2217
- let t = {}, n = ci(this);
2244
+ let t = {}, n = fi(this);
2218
2245
  for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
2219
2246
  for (let e of this.attributes) {
2220
2247
  let t = this.$$g_p(e.name);
2221
- t in this.$$d || (this.$$d[t] = si(t, e.value, this.$$p_d, "toProp"));
2248
+ t in this.$$d || (this.$$d[t] = di(t, e.value, this.$$p_d, "toProp"));
2222
2249
  }
2223
2250
  for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
2224
- this.$$c = ii({
2251
+ this.$$c = ci({
2225
2252
  component: this.$$ctor,
2226
2253
  target: this.$$shadowRoot || this,
2227
2254
  props: {
@@ -2229,13 +2256,13 @@ typeof HTMLElement == "function" && (oi = class extends HTMLElement {
2229
2256
  $$slots: t,
2230
2257
  $$host: this
2231
2258
  }
2232
- }), this.$$me = pn(() => {
2233
- _n(() => {
2259
+ }), this.$$me = fn(() => {
2260
+ gn(() => {
2234
2261
  this.$$r = !0;
2235
2262
  for (let e of p(this.$$c)) {
2236
2263
  if (!this.$$p_d[e]?.reflect) continue;
2237
2264
  this.$$d[e] = this.$$c[e];
2238
- let t = si(e, this.$$d[e], this.$$p_d, "toAttribute");
2265
+ let t = di(e, this.$$d[e], this.$$p_d, "toAttribute");
2239
2266
  t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
2240
2267
  }
2241
2268
  this.$$r = !1;
@@ -2249,7 +2276,7 @@ typeof HTMLElement == "function" && (oi = class extends HTMLElement {
2249
2276
  }
2250
2277
  }
2251
2278
  attributeChangedCallback(e, t, n) {
2252
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = si(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2279
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = di(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2253
2280
  }
2254
2281
  disconnectedCallback() {
2255
2282
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2260,7 +2287,7 @@ typeof HTMLElement == "function" && (oi = class extends HTMLElement {
2260
2287
  return p(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2261
2288
  }
2262
2289
  });
2263
- function si(e, t, n, r) {
2290
+ function di(e, t, n, r) {
2264
2291
  let i = n[e]?.type;
2265
2292
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
2266
2293
  if (r === "toAttribute") switch (i) {
@@ -2278,14 +2305,14 @@ function si(e, t, n, r) {
2278
2305
  default: return t;
2279
2306
  }
2280
2307
  }
2281
- function ci(e) {
2308
+ function fi(e) {
2282
2309
  let t = {};
2283
2310
  return e.childNodes.forEach((e) => {
2284
2311
  t[e.slot || "default"] = !0;
2285
2312
  }), t;
2286
2313
  }
2287
- function li(e, t, n, r, i, a) {
2288
- let o = class extends oi {
2314
+ function pi(e, t, n, r, i, a) {
2315
+ let o = class extends ui {
2289
2316
  constructor() {
2290
2317
  super(e, n, i), this.$$p_d = t;
2291
2318
  }
@@ -2299,7 +2326,7 @@ function li(e, t, n, r, i, a) {
2299
2326
  return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
2300
2327
  },
2301
2328
  set(n) {
2302
- n = si(e, n, t), this.$$d[e] = n;
2329
+ n = di(e, n, t), this.$$d[e] = n;
2303
2330
  var r = this.$$c;
2304
2331
  r && (h(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
2305
2332
  }
@@ -2312,37 +2339,37 @@ function li(e, t, n, r, i, a) {
2312
2339
  }
2313
2340
  //#endregion
2314
2341
  //#region ../players-shared/dist/components/vendor/nds/nds-icon-button.js
2315
- var ui = globalThis, di = ui.ShadowRoot && (ui.ShadyCSS === void 0 || ui.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, fi = Symbol(), pi = /* @__PURE__ */ new WeakMap(), mi = class {
2342
+ var mi = globalThis, hi = mi.ShadowRoot && (mi.ShadyCSS === void 0 || mi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, gi = Symbol(), _i = /* @__PURE__ */ new WeakMap(), vi = class {
2316
2343
  constructor(e, t, n) {
2317
- if (this._$cssResult$ = !0, n !== fi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
2344
+ if (this._$cssResult$ = !0, n !== gi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
2318
2345
  this.cssText = e, this.t = t;
2319
2346
  }
2320
2347
  get styleSheet() {
2321
2348
  let e = this.o, t = this.t;
2322
- if (di && e === void 0) {
2349
+ if (hi && e === void 0) {
2323
2350
  let n = t !== void 0 && t.length === 1;
2324
- n && (e = pi.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && pi.set(t, e));
2351
+ n && (e = _i.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && _i.set(t, e));
2325
2352
  }
2326
2353
  return e;
2327
2354
  }
2328
2355
  toString() {
2329
2356
  return this.cssText;
2330
2357
  }
2331
- }, hi = (e) => new mi(typeof e == "string" ? e : e + "", void 0, fi), gi = (e, t) => {
2332
- if (di) e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
2358
+ }, yi = (e) => new vi(typeof e == "string" ? e : e + "", void 0, gi), bi = (e, t) => {
2359
+ if (hi) e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
2333
2360
  else for (let n of t) {
2334
- let t = document.createElement("style"), r = ui.litNonce;
2361
+ let t = document.createElement("style"), r = mi.litNonce;
2335
2362
  r !== void 0 && t.setAttribute("nonce", r), t.textContent = n.cssText, e.appendChild(t);
2336
2363
  }
2337
- }, _i = di ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
2364
+ }, xi = hi ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
2338
2365
  let t = "";
2339
2366
  for (let n of e.cssRules) t += n.cssText;
2340
- return hi(t);
2341
- })(e) : e, { is: vi, defineProperty: yi, getOwnPropertyDescriptor: bi, getOwnPropertyNames: xi, getOwnPropertySymbols: Si, getPrototypeOf: Ci } = Object, wi = globalThis, Ti = wi.trustedTypes, Ei = Ti ? Ti.emptyScript : "", Di = wi.reactiveElementPolyfillSupport, Oi = (e, t) => e, ki = {
2367
+ return yi(t);
2368
+ })(e) : e, { is: Si, defineProperty: Ci, getOwnPropertyDescriptor: wi, getOwnPropertyNames: Ti, getOwnPropertySymbols: Ei, getPrototypeOf: Di } = Object, Oi = globalThis, ki = Oi.trustedTypes, Ai = ki ? ki.emptyScript : "", ji = Oi.reactiveElementPolyfillSupport, Mi = (e, t) => e, Ni = {
2342
2369
  toAttribute(e, t) {
2343
2370
  switch (t) {
2344
2371
  case Boolean:
2345
- e = e ? Ei : null;
2372
+ e = e ? Ai : null;
2346
2373
  break;
2347
2374
  case Object:
2348
2375
  case Array: e = e == null ? e : JSON.stringify(e);
@@ -2367,30 +2394,30 @@ var ui = globalThis, di = ui.ShadowRoot && (ui.ShadyCSS === void 0 || ui.ShadyCS
2367
2394
  }
2368
2395
  return n;
2369
2396
  }
2370
- }, Ai = (e, t) => !vi(e, t), ji = {
2397
+ }, Pi = (e, t) => !Si(e, t), Fi = {
2371
2398
  attribute: !0,
2372
2399
  type: String,
2373
- converter: ki,
2400
+ converter: Ni,
2374
2401
  reflect: !1,
2375
2402
  useDefault: !1,
2376
- hasChanged: Ai
2403
+ hasChanged: Pi
2377
2404
  };
2378
- Symbol.metadata ??= Symbol("metadata"), wi.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
2379
- var Mi = class extends HTMLElement {
2405
+ Symbol.metadata ??= Symbol("metadata"), Oi.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
2406
+ var Ii = class extends HTMLElement {
2380
2407
  static addInitializer(e) {
2381
2408
  this._$Ei(), (this.l ??= []).push(e);
2382
2409
  }
2383
2410
  static get observedAttributes() {
2384
2411
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
2385
2412
  }
2386
- static createProperty(e, t = ji) {
2413
+ static createProperty(e, t = Fi) {
2387
2414
  if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
2388
2415
  let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
2389
- r !== void 0 && yi(this.prototype, e, r);
2416
+ r !== void 0 && Ci(this.prototype, e, r);
2390
2417
  }
2391
2418
  }
2392
2419
  static getPropertyDescriptor(e, t, n) {
2393
- let { get: r, set: i } = bi(this.prototype, e) ?? {
2420
+ let { get: r, set: i } = wi(this.prototype, e) ?? {
2394
2421
  get() {
2395
2422
  return this[t];
2396
2423
  },
@@ -2409,17 +2436,17 @@ var Mi = class extends HTMLElement {
2409
2436
  };
2410
2437
  }
2411
2438
  static getPropertyOptions(e) {
2412
- return this.elementProperties.get(e) ?? ji;
2439
+ return this.elementProperties.get(e) ?? Fi;
2413
2440
  }
2414
2441
  static _$Ei() {
2415
- if (this.hasOwnProperty(Oi("elementProperties"))) return;
2416
- let e = Ci(this);
2442
+ if (this.hasOwnProperty(Mi("elementProperties"))) return;
2443
+ let e = Di(this);
2417
2444
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
2418
2445
  }
2419
2446
  static finalize() {
2420
- if (this.hasOwnProperty(Oi("finalized"))) return;
2421
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Oi("properties"))) {
2422
- let e = this.properties, t = [...xi(e), ...Si(e)];
2447
+ if (this.hasOwnProperty(Mi("finalized"))) return;
2448
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Mi("properties"))) {
2449
+ let e = this.properties, t = [...Ti(e), ...Ei(e)];
2423
2450
  for (let n of t) this.createProperty(n, e[n]);
2424
2451
  }
2425
2452
  let e = this[Symbol.metadata];
@@ -2438,8 +2465,8 @@ var Mi = class extends HTMLElement {
2438
2465
  let t = [];
2439
2466
  if (Array.isArray(e)) {
2440
2467
  let n = new Set(e.flat(1 / 0).reverse());
2441
- for (let e of n) t.unshift(_i(e));
2442
- } else e !== void 0 && t.push(_i(e));
2468
+ for (let e of n) t.unshift(xi(e));
2469
+ } else e !== void 0 && t.push(xi(e));
2443
2470
  return t;
2444
2471
  }
2445
2472
  static _$Eu(e, t) {
@@ -2465,7 +2492,7 @@ var Mi = class extends HTMLElement {
2465
2492
  }
2466
2493
  createRenderRoot() {
2467
2494
  let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
2468
- return gi(e, this.constructor.elementStyles), e;
2495
+ return bi(e, this.constructor.elementStyles), e;
2469
2496
  }
2470
2497
  connectedCallback() {
2471
2498
  this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
@@ -2480,14 +2507,14 @@ var Mi = class extends HTMLElement {
2480
2507
  _$ET(e, t) {
2481
2508
  let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
2482
2509
  if (r !== void 0 && n.reflect === !0) {
2483
- let i = (n.converter?.toAttribute === void 0 ? ki : n.converter).toAttribute(t, n.type);
2510
+ let i = (n.converter?.toAttribute === void 0 ? Ni : n.converter).toAttribute(t, n.type);
2484
2511
  this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
2485
2512
  }
2486
2513
  }
2487
2514
  _$AK(e, t) {
2488
2515
  let n = this.constructor, r = n._$Eh.get(e);
2489
2516
  if (r !== void 0 && this._$Em !== r) {
2490
- let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? ki : e.converter;
2517
+ let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? Ni : e.converter;
2491
2518
  this._$Em = r;
2492
2519
  let a = i.fromAttribute(t, e.type);
2493
2520
  this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
@@ -2496,7 +2523,7 @@ var Mi = class extends HTMLElement {
2496
2523
  requestUpdate(e, t, n) {
2497
2524
  if (e !== void 0) {
2498
2525
  let r = this.constructor, i = this[e];
2499
- if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? Ai)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
2526
+ if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? Pi)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
2500
2527
  this.C(e, t, n);
2501
2528
  }
2502
2529
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -2560,88 +2587,88 @@ var Mi = class extends HTMLElement {
2560
2587
  updated(e) {}
2561
2588
  firstUpdated(e) {}
2562
2589
  };
2563
- Mi.elementStyles = [], Mi.shadowRootOptions = { mode: "open" }, Mi[Oi("elementProperties")] = /* @__PURE__ */ new Map(), Mi[Oi("finalized")] = /* @__PURE__ */ new Map(), Di?.({ ReactiveElement: Mi }), (wi.reactiveElementVersions ??= []).push("2.1.1");
2564
- var Ni = globalThis, Pi = Ni.trustedTypes, Fi = Pi ? Pi.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Ii = "$lit$", Li = `lit$${Math.random().toFixed(9).slice(2)}$`, Ri = "?" + Li, zi = `<${Ri}>`, Bi = document, Vi = () => Bi.createComment(""), Hi = (e) => e === null || typeof e != "object" && typeof e != "function", Ui = Array.isArray, Wi = (e) => Ui(e) || typeof e?.[Symbol.iterator] == "function", Gi = "[ \n\f\r]", Ki = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qi = /-->/g, Ji = />/g, Yi = RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
2565
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Xi = /'/g, Zi = /"/g, Qi = /^(?:script|style|textarea|title)$/i, $i = ((e) => (t, ...n) => ({
2590
+ Ii.elementStyles = [], Ii.shadowRootOptions = { mode: "open" }, Ii[Mi("elementProperties")] = /* @__PURE__ */ new Map(), Ii[Mi("finalized")] = /* @__PURE__ */ new Map(), ji?.({ ReactiveElement: Ii }), (Oi.reactiveElementVersions ??= []).push("2.1.1");
2591
+ var Li = globalThis, Ri = Li.trustedTypes, zi = Ri ? Ri.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Bi = "$lit$", Vi = `lit$${Math.random().toFixed(9).slice(2)}$`, Hi = "?" + Vi, Ui = `<${Hi}>`, Wi = document, Gi = () => Wi.createComment(""), Ki = (e) => e === null || typeof e != "object" && typeof e != "function", qi = Array.isArray, Ji = (e) => qi(e) || typeof e?.[Symbol.iterator] == "function", Yi = "[ \n\f\r]", Xi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Zi = /-->/g, Qi = />/g, $i = RegExp(`>|${Yi}(?:([^\\s"'>=/]+)(${Yi}*=${Yi}*(?:[^
2592
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ea = /'/g, ta = /"/g, na = /^(?:script|style|textarea|title)$/i, ra = ((e) => (t, ...n) => ({
2566
2593
  _$litType$: e,
2567
2594
  strings: t,
2568
2595
  values: n
2569
- }))(1), ea = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), ta = /* @__PURE__ */ new WeakMap(), na = Bi.createTreeWalker(Bi, 129);
2570
- function ra(e, t) {
2571
- if (!Ui(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
2572
- return Fi === void 0 ? t : Fi.createHTML(t);
2596
+ }))(1), ia = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), aa = /* @__PURE__ */ new WeakMap(), oa = Wi.createTreeWalker(Wi, 129);
2597
+ function sa(e, t) {
2598
+ if (!qi(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
2599
+ return zi === void 0 ? t : zi.createHTML(t);
2573
2600
  }
2574
- var ia = (e, t) => {
2575
- let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Ki;
2601
+ var ca = (e, t) => {
2602
+ let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Xi;
2576
2603
  for (let t = 0; t < n; t++) {
2577
2604
  let n = e[t], s, c, l = -1, u = 0;
2578
- for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === Ki ? c[1] === "!--" ? o = qi : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = Yi) : (Qi.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = Yi) : o = Ji : o === Yi ? c[0] === ">" ? (o = i ?? Ki, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? Yi : c[3] === "\"" ? Zi : Xi) : o === Zi || o === Xi ? o = Yi : o === qi || o === Ji ? o = Ki : (o = Yi, i = void 0);
2579
- let d = o === Yi && e[t + 1].startsWith("/>") ? " " : "";
2580
- a += o === Ki ? n + zi : l >= 0 ? (r.push(s), n.slice(0, l) + Ii + n.slice(l) + Li + d) : n + Li + (l === -2 ? t : d);
2605
+ for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === Xi ? c[1] === "!--" ? o = Zi : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = $i) : (na.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = $i) : o = Qi : o === $i ? c[0] === ">" ? (o = i ?? Xi, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? $i : c[3] === "\"" ? ta : ea) : o === ta || o === ea ? o = $i : o === Zi || o === Qi ? o = Xi : (o = $i, i = void 0);
2606
+ let d = o === $i && e[t + 1].startsWith("/>") ? " " : "";
2607
+ a += o === Xi ? n + Ui : l >= 0 ? (r.push(s), n.slice(0, l) + Bi + n.slice(l) + Vi + d) : n + Vi + (l === -2 ? t : d);
2581
2608
  }
2582
- return [ra(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
2583
- }, aa = class e {
2609
+ return [sa(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
2610
+ }, la = class e {
2584
2611
  constructor({ strings: t, _$litType$: n }, r) {
2585
2612
  let i;
2586
2613
  this.parts = [];
2587
- let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = ia(t, n);
2588
- if (this.el = e.createElement(l, r), na.currentNode = this.el.content, n === 2 || n === 3) {
2614
+ let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = ca(t, n);
2615
+ if (this.el = e.createElement(l, r), oa.currentNode = this.el.content, n === 2 || n === 3) {
2589
2616
  let e = this.el.content.firstChild;
2590
2617
  e.replaceWith(...e.childNodes);
2591
2618
  }
2592
- for (; (i = na.nextNode()) !== null && c.length < s;) {
2619
+ for (; (i = oa.nextNode()) !== null && c.length < s;) {
2593
2620
  if (i.nodeType === 1) {
2594
- if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(Ii)) {
2595
- let t = u[o++], n = i.getAttribute(e).split(Li), r = /([.?@])?(.*)/.exec(t);
2621
+ if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(Bi)) {
2622
+ let t = u[o++], n = i.getAttribute(e).split(Vi), r = /([.?@])?(.*)/.exec(t);
2596
2623
  c.push({
2597
2624
  type: 1,
2598
2625
  index: a,
2599
2626
  name: r[2],
2600
2627
  strings: n,
2601
- ctor: r[1] === "." ? ua : r[1] === "?" ? da : r[1] === "@" ? fa : la
2628
+ ctor: r[1] === "." ? ma : r[1] === "?" ? ha : r[1] === "@" ? ga : pa
2602
2629
  }), i.removeAttribute(e);
2603
- } else e.startsWith(Li) && (c.push({
2630
+ } else e.startsWith(Vi) && (c.push({
2604
2631
  type: 6,
2605
2632
  index: a
2606
2633
  }), i.removeAttribute(e));
2607
- if (Qi.test(i.tagName)) {
2608
- let e = i.textContent.split(Li), t = e.length - 1;
2634
+ if (na.test(i.tagName)) {
2635
+ let e = i.textContent.split(Vi), t = e.length - 1;
2609
2636
  if (t > 0) {
2610
- i.textContent = Pi ? Pi.emptyScript : "";
2611
- for (let n = 0; n < t; n++) i.append(e[n], Vi()), na.nextNode(), c.push({
2637
+ i.textContent = Ri ? Ri.emptyScript : "";
2638
+ for (let n = 0; n < t; n++) i.append(e[n], Gi()), oa.nextNode(), c.push({
2612
2639
  type: 2,
2613
2640
  index: ++a
2614
2641
  });
2615
- i.append(e[t], Vi());
2642
+ i.append(e[t], Gi());
2616
2643
  }
2617
2644
  }
2618
2645
  } else if (i.nodeType === 8) {
2619
- if (i.data === Ri) c.push({
2646
+ if (i.data === Hi) c.push({
2620
2647
  type: 2,
2621
2648
  index: a
2622
2649
  });
2623
2650
  else {
2624
2651
  let e = -1;
2625
- for (; (e = i.data.indexOf(Li, e + 1)) !== -1;) c.push({
2652
+ for (; (e = i.data.indexOf(Vi, e + 1)) !== -1;) c.push({
2626
2653
  type: 7,
2627
2654
  index: a
2628
- }), e += Li.length - 1;
2655
+ }), e += Vi.length - 1;
2629
2656
  }
2630
2657
  }
2631
2658
  a++;
2632
2659
  }
2633
2660
  }
2634
2661
  static createElement(e, t) {
2635
- let n = Bi.createElement("template");
2662
+ let n = Wi.createElement("template");
2636
2663
  return n.innerHTML = e, n;
2637
2664
  }
2638
2665
  };
2639
- function oa(e, t, n = e, r) {
2640
- if (t === ea) return t;
2641
- let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = Hi(t) ? void 0 : t._$litDirective$;
2642
- return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = oa(e, i._$AS(e, t.values), i, r)), t;
2666
+ function ua(e, t, n = e, r) {
2667
+ if (t === ia) return t;
2668
+ let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = Ki(t) ? void 0 : t._$litDirective$;
2669
+ return i?.constructor !== a && (i?._$AO?.(!1), a === void 0 ? i = void 0 : (i = new a(e), i._$AT(e, n, r)), r === void 0 ? n._$Cl = i : (n._$Co ??= [])[r] = i), i !== void 0 && (t = ua(e, i._$AS(e, t.values), i, r)), t;
2643
2670
  }
2644
- var sa = class {
2671
+ var da = class {
2645
2672
  constructor(e, t) {
2646
2673
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
2647
2674
  }
@@ -2652,23 +2679,23 @@ var sa = class {
2652
2679
  return this._$AM._$AU;
2653
2680
  }
2654
2681
  u(e) {
2655
- let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? Bi).importNode(t, !0);
2656
- na.currentNode = r;
2657
- let i = na.nextNode(), a = 0, o = 0, s = n[0];
2682
+ let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? Wi).importNode(t, !0);
2683
+ oa.currentNode = r;
2684
+ let i = oa.nextNode(), a = 0, o = 0, s = n[0];
2658
2685
  for (; s !== void 0;) {
2659
2686
  if (a === s.index) {
2660
2687
  let t;
2661
- s.type === 2 ? t = new ca(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new pa(i, this, e)), this._$AV.push(t), s = n[++o];
2688
+ s.type === 2 ? t = new fa(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new _a(i, this, e)), this._$AV.push(t), s = n[++o];
2662
2689
  }
2663
- a !== s?.index && (i = na.nextNode(), a++);
2690
+ a !== s?.index && (i = oa.nextNode(), a++);
2664
2691
  }
2665
- return na.currentNode = Bi, r;
2692
+ return oa.currentNode = Wi, r;
2666
2693
  }
2667
2694
  p(e) {
2668
2695
  let t = 0;
2669
2696
  for (let n of this._$AV) n !== void 0 && (n.strings === void 0 ? n._$AI(e[t]) : (n._$AI(e, n, t), t += n.strings.length - 2)), t++;
2670
2697
  }
2671
- }, ca = class e {
2698
+ }, fa = class e {
2672
2699
  get _$AU() {
2673
2700
  return this._$AM?._$AU ?? this._$Cv;
2674
2701
  }
@@ -2686,7 +2713,7 @@ var sa = class {
2686
2713
  return this._$AB;
2687
2714
  }
2688
2715
  _$AI(e, t = this) {
2689
- e = oa(this, e, t), Hi(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== ea && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? Wi(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
2716
+ e = ua(this, e, t), Ki(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== ia && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? Ji(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
2690
2717
  }
2691
2718
  O(e) {
2692
2719
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -2695,24 +2722,24 @@ var sa = class {
2695
2722
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
2696
2723
  }
2697
2724
  _(e) {
2698
- this._$AH !== $ && Hi(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Bi.createTextNode(e)), this._$AH = e;
2725
+ this._$AH !== $ && Ki(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Wi.createTextNode(e)), this._$AH = e;
2699
2726
  }
2700
2727
  $(e) {
2701
- let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = aa.createElement(ra(n.h, n.h[0]), this.options)), n);
2728
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = la.createElement(sa(n.h, n.h[0]), this.options)), n);
2702
2729
  if (this._$AH?._$AD === r) this._$AH.p(t);
2703
2730
  else {
2704
- let e = new sa(r, this), n = e.u(this.options);
2731
+ let e = new da(r, this), n = e.u(this.options);
2705
2732
  e.p(t), this.T(n), this._$AH = e;
2706
2733
  }
2707
2734
  }
2708
2735
  _$AC(e) {
2709
- let t = ta.get(e.strings);
2710
- return t === void 0 && ta.set(e.strings, t = new aa(e)), t;
2736
+ let t = aa.get(e.strings);
2737
+ return t === void 0 && aa.set(e.strings, t = new la(e)), t;
2711
2738
  }
2712
2739
  k(t) {
2713
- Ui(this._$AH) || (this._$AH = [], this._$AR());
2740
+ qi(this._$AH) || (this._$AH = [], this._$AR());
2714
2741
  let n = this._$AH, r, i = 0;
2715
- for (let a of t) i === n.length ? n.push(r = new e(this.O(Vi()), this.O(Vi()), this, this.options)) : r = n[i], r._$AI(a), i++;
2742
+ for (let a of t) i === n.length ? n.push(r = new e(this.O(Gi()), this.O(Gi()), this, this.options)) : r = n[i], r._$AI(a), i++;
2716
2743
  i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
2717
2744
  }
2718
2745
  _$AR(e = this._$AA.nextSibling, t) {
@@ -2724,7 +2751,7 @@ var sa = class {
2724
2751
  setConnected(e) {
2725
2752
  this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
2726
2753
  }
2727
- }, la = class {
2754
+ }, pa = class {
2728
2755
  get tagName() {
2729
2756
  return this.element.tagName;
2730
2757
  }
@@ -2736,43 +2763,43 @@ var sa = class {
2736
2763
  }
2737
2764
  _$AI(e, t = this, n, r) {
2738
2765
  let i = this.strings, a = !1;
2739
- if (i === void 0) e = oa(this, e, t, 0), a = !Hi(e) || e !== this._$AH && e !== ea, a && (this._$AH = e);
2766
+ if (i === void 0) e = ua(this, e, t, 0), a = !Ki(e) || e !== this._$AH && e !== ia, a && (this._$AH = e);
2740
2767
  else {
2741
2768
  let r = e, o, s;
2742
- for (e = i[0], o = 0; o < i.length - 1; o++) s = oa(this, r[n + o], t, o), s === ea && (s = this._$AH[o]), a ||= !Hi(s) || s !== this._$AH[o], s === $ ? e = $ : e !== $ && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
2769
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = ua(this, r[n + o], t, o), s === ia && (s = this._$AH[o]), a ||= !Ki(s) || s !== this._$AH[o], s === $ ? e = $ : e !== $ && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
2743
2770
  }
2744
2771
  a && !r && this.j(e);
2745
2772
  }
2746
2773
  j(e) {
2747
2774
  e === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
2748
2775
  }
2749
- }, ua = class extends la {
2776
+ }, ma = class extends pa {
2750
2777
  constructor() {
2751
2778
  super(...arguments), this.type = 3;
2752
2779
  }
2753
2780
  j(e) {
2754
2781
  this.element[this.name] = e === $ ? void 0 : e;
2755
2782
  }
2756
- }, da = class extends la {
2783
+ }, ha = class extends pa {
2757
2784
  constructor() {
2758
2785
  super(...arguments), this.type = 4;
2759
2786
  }
2760
2787
  j(e) {
2761
2788
  this.element.toggleAttribute(this.name, !!e && e !== $);
2762
2789
  }
2763
- }, fa = class extends la {
2790
+ }, ga = class extends pa {
2764
2791
  constructor(e, t, n, r, i) {
2765
2792
  super(e, t, n, r, i), this.type = 5;
2766
2793
  }
2767
2794
  _$AI(e, t = this) {
2768
- if ((e = oa(this, e, t, 0) ?? $) === ea) return;
2795
+ if ((e = ua(this, e, t, 0) ?? $) === ia) return;
2769
2796
  let n = this._$AH, r = e === $ && n !== $ || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== $ && (n === $ || r);
2770
2797
  r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
2771
2798
  }
2772
2799
  handleEvent(e) {
2773
2800
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
2774
2801
  }
2775
- }, pa = class {
2802
+ }, _a = class {
2776
2803
  constructor(e, t, n) {
2777
2804
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
2778
2805
  }
@@ -2780,18 +2807,18 @@ var sa = class {
2780
2807
  return this._$AM._$AU;
2781
2808
  }
2782
2809
  _$AI(e) {
2783
- oa(this, e);
2810
+ ua(this, e);
2784
2811
  }
2785
- }, ma = Ni.litHtmlPolyfillSupport;
2786
- ma?.(aa, ca), (Ni.litHtmlVersions ??= []).push("3.3.1");
2787
- var ha = (e, t, n) => {
2812
+ }, va = Li.litHtmlPolyfillSupport;
2813
+ va?.(la, fa), (Li.litHtmlVersions ??= []).push("3.3.1");
2814
+ var ya = (e, t, n) => {
2788
2815
  let r = n?.renderBefore ?? t, i = r._$litPart$;
2789
2816
  if (i === void 0) {
2790
2817
  let e = n?.renderBefore ?? null;
2791
- r._$litPart$ = i = new ca(t.insertBefore(Vi(), e), e, void 0, n ?? {});
2818
+ r._$litPart$ = i = new fa(t.insertBefore(Gi(), e), e, void 0, n ?? {});
2792
2819
  }
2793
2820
  return i._$AI(e), i;
2794
- }, ga = globalThis, _a = class extends Mi {
2821
+ }, ba = globalThis, xa = class extends Ii {
2795
2822
  constructor() {
2796
2823
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
2797
2824
  }
@@ -2801,7 +2828,7 @@ var ha = (e, t, n) => {
2801
2828
  }
2802
2829
  update(e) {
2803
2830
  let t = this.render();
2804
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ha(t, this.renderRoot, this.renderOptions);
2831
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = ya(t, this.renderRoot, this.renderOptions);
2805
2832
  }
2806
2833
  connectedCallback() {
2807
2834
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -2810,23 +2837,23 @@ var ha = (e, t, n) => {
2810
2837
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
2811
2838
  }
2812
2839
  render() {
2813
- return ea;
2840
+ return ia;
2814
2841
  }
2815
2842
  };
2816
- _a._$litElement$ = !0, _a.finalized = !0, ga.litElementHydrateSupport?.({ LitElement: _a });
2817
- var va = ga.litElementPolyfillSupport;
2818
- va?.({ LitElement: _a }), (ga.litElementVersions ??= []).push("4.2.1");
2819
- var ya = (e) => (t, n) => {
2843
+ xa._$litElement$ = !0, xa.finalized = !0, ba.litElementHydrateSupport?.({ LitElement: xa });
2844
+ var Sa = ba.litElementPolyfillSupport;
2845
+ Sa?.({ LitElement: xa }), (ba.litElementVersions ??= []).push("4.2.1");
2846
+ var Ca = (e) => (t, n) => {
2820
2847
  n === void 0 ? customElements.get(e) || customElements.define(e, t) : n.addInitializer((() => {
2821
2848
  customElements.get(e) || customElements.define(e, t);
2822
2849
  }));
2823
- }, ba = {
2850
+ }, wa = {
2824
2851
  attribute: !0,
2825
2852
  type: String,
2826
- converter: ki,
2853
+ converter: Ni,
2827
2854
  reflect: !1,
2828
- hasChanged: Ai
2829
- }, xa = (e = ba, t, n) => {
2855
+ hasChanged: Pi
2856
+ }, Ta = (e = wa, t, n) => {
2830
2857
  let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
2831
2858
  if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
2832
2859
  let { name: r } = n;
@@ -2849,16 +2876,16 @@ var ya = (e) => (t, n) => {
2849
2876
  }
2850
2877
  throw Error("Unsupported decorator location: " + r);
2851
2878
  };
2852
- function Sa(e) {
2853
- return (t, n) => typeof n == "object" ? xa(e, t, n) : ((e, t, n) => {
2879
+ function Ea(e) {
2880
+ return (t, n) => typeof n == "object" ? Ta(e, t, n) : ((e, t, n) => {
2854
2881
  let r = t.hasOwnProperty(n);
2855
2882
  return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
2856
2883
  })(e, t, n);
2857
2884
  }
2858
- var Ca = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, Ta = (e, t, n, r) => {
2859
- for (var i = r > 1 ? void 0 : r ? wa(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
2860
- return r && i && Ca(t, n, i), i;
2861
- }, Ea = class extends _a {
2885
+ var Da = Object.defineProperty, Oa = Object.getOwnPropertyDescriptor, ka = (e, t, n, r) => {
2886
+ for (var i = r > 1 ? void 0 : r ? Oa(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
2887
+ return r && i && Da(t, n, i), i;
2888
+ }, Aa = class extends xa {
2862
2889
  constructor() {
2863
2890
  super(...arguments), this.variant = "primary", this.size = "default", this.type = "circle", this.state = "default", this.iconName = "home", this.disabled = !1, this.buttonAriaLabel = "Icon button";
2864
2891
  }
@@ -2899,7 +2926,7 @@ var Ca = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, Ta = (e, t
2899
2926
  }));
2900
2927
  }
2901
2928
  render() {
2902
- return $i`
2929
+ return ra`
2903
2930
  <style>
2904
2931
  nds-icon-button {
2905
2932
  display: inline-block;
@@ -3093,29 +3120,29 @@ var Ca = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, Ta = (e, t
3093
3120
  `;
3094
3121
  }
3095
3122
  };
3096
- Ta([Sa()], Ea.prototype, "variant", 2), Ta([Sa()], Ea.prototype, "size", 2), Ta([Sa()], Ea.prototype, "type", 2), Ta([Sa()], Ea.prototype, "state", 2), Ta([Sa({ attribute: "icon-name" })], Ea.prototype, "iconName", 2), Ta([Sa({ type: Boolean })], Ea.prototype, "disabled", 2), Ta([Sa({ attribute: "button-aria-label" })], Ea.prototype, "buttonAriaLabel", 2), Ta([Sa()], Ea.prototype, "shape", 1), Ea = Ta([ya("nds-icon-button")], Ea);
3123
+ ka([Ea()], Aa.prototype, "variant", 2), ka([Ea()], Aa.prototype, "size", 2), ka([Ea()], Aa.prototype, "type", 2), ka([Ea()], Aa.prototype, "state", 2), ka([Ea({ attribute: "icon-name" })], Aa.prototype, "iconName", 2), ka([Ea({ type: Boolean })], Aa.prototype, "disabled", 2), ka([Ea({ attribute: "button-aria-label" })], Aa.prototype, "buttonAriaLabel", 2), ka([Ea()], Aa.prototype, "shape", 1), Aa = ka([Ca("nds-icon-button")], Aa);
3097
3124
  //#endregion
3098
3125
  //#region ../players-shared/src/ui/zoom-compensation.ts
3099
- var Da = {
3126
+ var ja = {
3100
3127
  maxZoom: 2,
3101
3128
  minCompensation: .25
3102
3129
  };
3103
- function Oa(e, t) {
3130
+ function Ma(e, t) {
3104
3131
  let n = e / t;
3105
3132
  return Number.isFinite(n) && n > 0 ? n : 1;
3106
3133
  }
3107
- function ka(e, t, n) {
3134
+ function Na(e, t, n) {
3108
3135
  return Math.max(n, Math.min(1, t / e));
3109
3136
  }
3110
3137
  //#endregion
3111
3138
  //#region ../players-shared/src/ui/use-zoom-compensation.svelte.ts
3112
- function Aa(e) {
3139
+ function Pa(e) {
3113
3140
  let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */ U(1), i = /* @__PURE__ */ U(1);
3114
3141
  function a() {
3115
- let e = Oa(window.outerWidth, window.innerWidth);
3116
- W(i, e, !0), W(r, ka(e, t, n), !0);
3142
+ let e = Ma(window.outerWidth, window.innerWidth);
3143
+ W(i, e, !0), W(r, Na(e, t, n), !0);
3117
3144
  }
3118
- return dn(() => {
3145
+ return un(() => {
3119
3146
  if (!(typeof window > "u")) return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
3120
3147
  }), {
3121
3148
  get current() {
@@ -3128,11 +3155,11 @@ function Aa(e) {
3128
3155
  }
3129
3156
  //#endregion
3130
3157
  //#region ../players-shared/dist/i18n/language-tags.js
3131
- function ja(e) {
3158
+ function Fa(e) {
3132
3159
  return e ? e.trim().replace(/_/g, "-").split(/[.@]/)[0].toLowerCase() : "";
3133
3160
  }
3134
- function Ma(e) {
3135
- let t = ja(e);
3161
+ function Ia(e) {
3162
+ let t = Fa(e);
3136
3163
  if (!t) return [];
3137
3164
  let n = t.split("-"), r = [];
3138
3165
  for (let e = n.length; e > 0; e--) {
@@ -3141,15 +3168,15 @@ function Ma(e) {
3141
3168
  }
3142
3169
  return r;
3143
3170
  }
3144
- function Na(e, t) {
3145
- for (let n of Ma(e)) {
3146
- let e = t.find((e) => ja(e) === n);
3171
+ function La(e, t) {
3172
+ for (let n of Ia(e)) {
3173
+ let e = t.find((e) => Fa(e) === n);
3147
3174
  if (e != null) return e;
3148
3175
  }
3149
3176
  }
3150
3177
  //#endregion
3151
3178
  //#region ../players-shared/dist/i18n/messages/en-US.js
3152
- var Pa = {
3179
+ var Ra = {
3153
3180
  common: {
3154
3181
  close: "Close",
3155
3182
  cancel: "Cancel",
@@ -3648,7 +3675,7 @@ var Pa = {
3648
3675
  coordinatorUnavailable: "Toolkit coordinator is not available for text-to-speech updates."
3649
3676
  }
3650
3677
  }
3651
- }, Fa = "en-US", Ia = /* @__PURE__ */ new Set([
3678
+ }, za = "en-US", Ba = /* @__PURE__ */ new Set([
3652
3679
  "ar",
3653
3680
  "ckb",
3654
3681
  "dv",
@@ -3664,7 +3691,7 @@ var Pa = {
3664
3691
  "ug",
3665
3692
  "ur",
3666
3693
  "yi"
3667
- ]), La = /* @__PURE__ */ new Set([
3694
+ ]), Va = /* @__PURE__ */ new Set([
3668
3695
  "zero",
3669
3696
  "one",
3670
3697
  "two",
@@ -3672,20 +3699,20 @@ var Pa = {
3672
3699
  "many",
3673
3700
  "other"
3674
3701
  ]);
3675
- function Ra(e) {
3702
+ function Ha(e) {
3676
3703
  if (typeof e != "object" || !e) return !1;
3677
3704
  let t = Object.keys(e);
3678
- return t.length > 0 && t.every((e) => La.has(e));
3705
+ return t.length > 0 && t.every((e) => Va.has(e));
3679
3706
  }
3680
- function za(e) {
3707
+ function Ua(e) {
3681
3708
  try {
3682
3709
  let t = new Intl.Locale(e).textInfo;
3683
3710
  if (t?.direction === "rtl" || t?.direction === "ltr") return t.direction;
3684
3711
  } catch {}
3685
- let t = ja(e).split("-")[0] ?? "";
3686
- return Ia.has(t) ? "rtl" : "ltr";
3712
+ let t = Fa(e).split("-")[0] ?? "";
3713
+ return Ba.has(t) ? "rtl" : "ltr";
3687
3714
  }
3688
- var Ba = class e {
3715
+ var Wa = class e {
3689
3716
  static pluralRules = /* @__PURE__ */ new Map();
3690
3717
  locale;
3691
3718
  fallbackLocale;
@@ -3695,7 +3722,7 @@ var Ba = class e {
3695
3722
  listeners = /* @__PURE__ */ new Set();
3696
3723
  config;
3697
3724
  constructor(e = {}) {
3698
- this.config = { ...e }, this.fallbackLocale = Va(e.fallbackLocale) || "en-US", this.catalogs = /* @__PURE__ */ new Map([[Fa, Pa]]), this.customMessages = { ...e.customMessages ?? {} }, this.loading = /* @__PURE__ */ new Map(), this.locale = this.resolveLocaleTag(e.locale) ?? "en-US";
3725
+ this.config = { ...e }, this.fallbackLocale = Ga(e.fallbackLocale) || "en-US", this.catalogs = /* @__PURE__ */ new Map([[za, Ra]]), this.customMessages = { ...e.customMessages ?? {} }, this.loading = /* @__PURE__ */ new Map(), this.locale = this.resolveLocaleTag(e.locale) ?? "en-US";
3699
3726
  }
3700
3727
  async initialize(e) {
3701
3728
  if (this.config = {
@@ -3710,7 +3737,7 @@ var Ba = class e {
3710
3737
  async setLocale(e) {
3711
3738
  let t = this.resolveLocaleTag(e);
3712
3739
  if (!t) {
3713
- this.locale = Va(e) || "en-US", this.notify();
3740
+ this.locale = Ga(e) || "en-US", this.notify();
3714
3741
  return;
3715
3742
  }
3716
3743
  if (!this.catalogs.has(t)) {
@@ -3730,14 +3757,14 @@ var Ba = class e {
3730
3757
  }
3731
3758
  t(e, t) {
3732
3759
  let n = this.lookup(e);
3733
- return n === void 0 ? (this.config.onMissingKey?.(e, this.locale), e) : Ua(n, t);
3760
+ return n === void 0 ? (this.config.onMissingKey?.(e, this.locale), e) : qa(n, t);
3734
3761
  }
3735
3762
  plural(e, t) {
3736
3763
  let n = this.lookupNode(e);
3737
- return n === void 0 || !Ra(n) ? this.t(e, t) : Ua(n[this.selectPluralCategory(t.count)] ?? n.other, t);
3764
+ return n === void 0 || !Ha(n) ? this.t(e, t) : qa(n[this.selectPluralCategory(t.count)] ?? n.other, t);
3738
3765
  }
3739
3766
  getDirection() {
3740
- return za(this.locale);
3767
+ return Ua(this.locale);
3741
3768
  }
3742
3769
  getAvailableLocales() {
3743
3770
  return [.../* @__PURE__ */ new Set([
@@ -3759,11 +3786,11 @@ var Ba = class e {
3759
3786
  return this.lookup(e) !== void 0;
3760
3787
  }
3761
3788
  addCustomMessages(e, t) {
3762
- let n = Va(e);
3763
- this.customMessages[n] = Wa(this.customMessages[n] ?? {}, t), this.notify();
3789
+ let n = Ga(e);
3790
+ this.customMessages[n] = Ja(this.customMessages[n] ?? {}, t), this.notify();
3764
3791
  }
3765
3792
  withLocale(t) {
3766
- let n = this.resolveLocaleTag(t) ?? Va(t);
3793
+ let n = this.resolveLocaleTag(t) ?? Ga(t);
3767
3794
  if (n === this.locale) return this;
3768
3795
  let r = new e({
3769
3796
  ...this.config,
@@ -3775,14 +3802,14 @@ var Ba = class e {
3775
3802
  try {
3776
3803
  return new Intl.NumberFormat(this.locale, t).format(e);
3777
3804
  } catch {
3778
- return new Intl.NumberFormat(Fa, t).format(e);
3805
+ return new Intl.NumberFormat(za, t).format(e);
3779
3806
  }
3780
3807
  }
3781
3808
  formatDate(e, t) {
3782
3809
  try {
3783
3810
  return new Intl.DateTimeFormat(this.locale, t).format(e);
3784
3811
  } catch {
3785
- return new Intl.DateTimeFormat(Fa, t).format(e);
3812
+ return new Intl.DateTimeFormat(za, t).format(e);
3786
3813
  }
3787
3814
  }
3788
3815
  getBundle(e = this.locale) {
@@ -3792,15 +3819,15 @@ var Ba = class e {
3792
3819
  if (n) return {
3793
3820
  locale: t,
3794
3821
  translations: n,
3795
- direction: za(t)
3822
+ direction: Ua(t)
3796
3823
  };
3797
3824
  }
3798
3825
  resolveLocaleTag(e) {
3799
3826
  if (!e) return;
3800
- let t = this.getAvailableLocales(), n = Na(e, t);
3827
+ let t = this.getAvailableLocales(), n = La(e, t);
3801
3828
  if (n) return n;
3802
- let r = ja(e).split("-")[0];
3803
- if (r) return t.find((e) => ja(e).split("-")[0] === r);
3829
+ let r = Fa(e).split("-")[0];
3830
+ if (r) return t.find((e) => Fa(e).split("-")[0] === r);
3804
3831
  }
3805
3832
  async loadCatalog(e) {
3806
3833
  let t = this.config.loadCatalog;
@@ -3818,14 +3845,14 @@ var Ba = class e {
3818
3845
  this.catalogs.get(this.fallbackLocale)
3819
3846
  ];
3820
3847
  for (let n of t) {
3821
- let t = Ha(n, e);
3848
+ let t = Ka(n, e);
3822
3849
  if (t !== void 0) return t;
3823
3850
  }
3824
3851
  }
3825
3852
  lookup(e) {
3826
3853
  let t = this.lookupNode(e);
3827
3854
  if (typeof t == "string") return t;
3828
- if (t !== void 0 && Ra(t)) return t.other;
3855
+ if (t !== void 0 && Ha(t)) return t.other;
3829
3856
  }
3830
3857
  selectPluralCategory(t) {
3831
3858
  let n = e.pluralRules.get(this.locale);
@@ -3843,35 +3870,35 @@ var Ba = class e {
3843
3870
  for (let e of this.listeners) e();
3844
3871
  }
3845
3872
  };
3846
- function Va(e) {
3873
+ function Ga(e) {
3847
3874
  return e ? e.trim().replace(/_/g, "-") : "";
3848
3875
  }
3849
- function Ha(e, t) {
3876
+ function Ka(e, t) {
3850
3877
  if (!e) return;
3851
3878
  let n = e;
3852
3879
  for (let e of t.split(".")) if (typeof n != "object" || !n || (n = n[e], n === void 0)) return;
3853
3880
  return n;
3854
3881
  }
3855
- function Ua(e, t) {
3882
+ function qa(e, t) {
3856
3883
  return t ? e.replace(/\{(\w+)\}/g, (e, n) => {
3857
3884
  let r = t[n];
3858
3885
  return r == null ? e : String(r);
3859
3886
  }) : e;
3860
3887
  }
3861
- function Wa(e, t) {
3888
+ function Ja(e, t) {
3862
3889
  let n = { ...e };
3863
3890
  for (let [e, r] of Object.entries(t)) {
3864
3891
  let t = n[e];
3865
- n[e] = r && typeof r == "object" && t && typeof t == "object" ? Wa(t, r) : r;
3892
+ n[e] = r && typeof r == "object" && t && typeof t == "object" ? Ja(t, r) : r;
3866
3893
  }
3867
3894
  return n;
3868
3895
  }
3869
- var Ga;
3870
- function Ka() {
3871
- return Ga ||= new Ba(), Ga;
3896
+ var Ya;
3897
+ function Xa() {
3898
+ return Ya ||= new Wa(), Ya;
3872
3899
  }
3873
- function qa(e) {
3874
- let t = e?.i18n ?? Ka();
3900
+ function Za(e) {
3901
+ let t = e?.i18n ?? Xa();
3875
3902
  return {
3876
3903
  getLocale: () => t.getLocale(),
3877
3904
  setLocale: (e) => t.setLocale(e),
@@ -3884,15 +3911,15 @@ function qa(e) {
3884
3911
  }
3885
3912
  //#endregion
3886
3913
  //#region tool-tts-inline.svelte
3887
- var Ja = /* @__PURE__ */ hr("<nds-icon-button></nds-icon-button>", 2), Ya = /* @__PURE__ */ hr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), Xa = /* @__PURE__ */ hr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), Za = /* @__PURE__ */ hr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-18mzc0g\"><span class=\"pie-tool-tts-inline__speed-label svelte-18mzc0g\"> </span></button>"), Qa = /* @__PURE__ */ hr("<div role=\"radiogroup\"></div>"), $a = /* @__PURE__ */ hr("<div role=\"toolbar\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-backward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-forward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-stop=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), eo = /* @__PURE__ */ hr("<!> <!>", 1), to = /* @__PURE__ */ hr("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), no = {
3914
+ var Qa = /* @__PURE__ */ hr("<nds-icon-button></nds-icon-button>", 2), $a = /* @__PURE__ */ hr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), eo = /* @__PURE__ */ hr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-18mzc0g\"><!></span>"), to = /* @__PURE__ */ hr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-18mzc0g\"><span class=\"pie-tool-tts-inline__speed-label svelte-18mzc0g\"> </span></button>"), no = /* @__PURE__ */ hr("<div role=\"radiogroup\"></div>"), ro = /* @__PURE__ */ hr("<div role=\"toolbar\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-backward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-seek=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-forward pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button> <button type=\"button\" data-pie-tts-control=\"\" data-pie-tts-media=\"\" data-pie-tts-stop=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), io = /* @__PURE__ */ hr("<!> <!>", 1), ao = /* @__PURE__ */ hr("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), oo = {
3888
3915
  hash: "svelte-18mzc0g",
3889
3916
  code: "\n /* Lay the component out as a flex box, not the default inline custom element.\n As `display: inline` the host is blockified into a block flex item that\n wraps its content in a line box, so the inline-flex root sits on the text\n baseline — a zoom-shrunk play button then rides that baseline and drifts\n LOW versus the calculator button (whose flex-item wrapper has no line box).\n inline-flex + center removes the line box and keeps the trigger centered. */:host {display:inline-flex;align-items:center;}.pie-tool-tts-inline.svelte-18mzc0g {position:relative;display:inline-flex;align-items:center;\n /* Gap between trigger and panel lives outside the zoomed buttons, so it\n is compensated separately or it keeps growing with browser zoom. */gap:calc(0.5rem * var(--pie-tts-zoom-comp, 1));}.pie-tool-tts-inline--controls-row.svelte-18mzc0g {width:100%;justify-content:flex-end;}\n\n /* The play/pause trigger and the \"more\" overflow control are now\n <nds-icon-button> hosts; the NDS component owns their shape, colours,\n hover/active/focus states, and the filled active (`variant=\"primary\"`)\n appearance. This class only drives the host's size via NDS's own size\n custom properties (see the size variants below), so the light-DOM inner\n button matches the toolbar's md/sm/lg dimensions. */\n /* Freeze the play/pause button at its 200%-zoom appearance (factor is 1 at\n zoom <= 200%, so behaviour below that is unchanged). The zoom goes on this\n wrapper, not the nds-icon-button host — see the snippet. */.pie-tool-tts-inline__trigger-zoom.svelte-18mzc0g {display:inline-flex;zoom:var(--pie-tts-zoom-comp, 1);}.pie-tool-tts-inline__trigger.svelte-18mzc0g {display:inline-flex;\n /* Outer button size follows the toolbar size variants (below); the glyph\n keeps the NDS-native icon size (size=\"small\") so it isn't oversized. */--height-32: 2rem;\n /* Host-settable accent: the NDS tertiary glyph colour derives from\n --color-interactive-blue, remapped here to the same chain the panel\n paints with. It defaults through --pie-button-color so the glyph follows\n the active theme; the literal is the no-theme last resort. */--color-interactive-blue: var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));\n /* NDS palette bridge — keep in sync with the copies in\n assessment-toolkit ItemToolBar and section-player SectionItemsPane\n (asserted by scripts/check-theme-tokens.mjs). The vendored button\n paints its fill, its on-accent glyph, its hover ring and its focus\n ring from the NDS design-system palette, which no PIE theme sets, so\n a tertiary trigger kept a #f3f5f7 pill on every page — and once the\n glyph followed the theme, a light glyph landed on that light pill. */--color-new-gray: var(--pie-background-dark, #f3f5f7);--color-primary-white: var(--pie-white, #ffffff);--color-primary-black: var(--pie-text, #000000);--color-focus-blue: var(--pie-button-focus-outline, #2b87ff);}\n\n /* Non-NDS fallback trigger (host opted out of nds-icon-button). Inherits\n the plain `__control` box; only override to keep the round trigger\n shape and the themeable accent colour on its glyph. */.pie-tool-tts-inline__trigger--plain.svelte-18mzc0g {border-radius:50%;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}\n\n /* Active/open trigger hooks (PIE-727).\n ---------------------------------------------------------------------------\n README documents --pie-tool-trigger-active-background / -color /\n -border-color as the supported way to style this trigger while its panel is\n open, instead of overriding broad tokens like --pie-primary. The component\n had stopped honouring all three, so a host following the docs got nothing.\n These rules restore them, matching how tool-calculator-inline-desmos wires\n the same three hooks.\n ---------------------------------------------------------------------------\n Every fallback is the value this element already resolves to when the hook\n is unset, so adding these rules changes nothing by default. That is\n deliberate: unlike the calculator, this trigger has never had a filled\n active look, and introducing one here would restyle the control for every\n host. Hosts opt in by setting a hook; nobody is opted in by us.\n\n Keyed off [aria-expanded='true'], which the markup already maintains, so\n there is no new state to keep in sync. */.pie-tool-tts-inline__trigger--plain[aria-expanded=\"true\"].svelte-18mzc0g {\n /* All three fallbacks are `__control`'s chains, including the glyph colour.\n Not `--plain`'s: that rule also declares `color`, but `__control` repeats\n it further down the sheet at equal specificity, so `__control` wins and\n `--plain`'s accent declaration never applies. Measured in Chromium: the\n plain trigger's glyph is --pie-button-color either way. */background:var(\n --pie-tool-trigger-active-background,\n var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)))\n );color:var(\n --pie-tool-trigger-active-color,\n var(--pie-button-color, var(--pie-text, #222))\n );border-color:var(\n --pie-tool-trigger-active-border-color,\n var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)))\n );}\n\n /* NDS variant: its glyph colour derives from --color-interactive-blue, so the\n accent is remapped rather than painted, exactly as the base rule does. Only\n the foreground hook applies -- background and border are owned by the NDS\n button's own internals, and setting them on this host element would paint a\n box the tertiary button does not currently have. */.pie-tool-tts-inline__trigger:not(.pie-tool-tts-inline__trigger--plain)[aria-expanded=\"true\"].svelte-18mzc0g {--color-interactive-blue: var(\n --pie-tool-trigger-active-color,\n var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)))\n );}.pie-tool-tts-inline__control.svelte-18mzc0g:hover:not(:disabled) {background-color:var(--pie-button-hover-background-color, var(--pie-button-hover-bg, var(--pie-secondary-background, #f2f4f8)));transform:translateY(-1px);box-shadow:0 2px 6px color-mix(in srgb, var(--pie-shadow, #000) 14%, transparent);}.pie-tool-tts-inline__control.svelte-18mzc0g:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-18mzc0g:focus-visible {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;box-shadow:0 0 0 4px color-mix(in srgb, var(--pie-primary, #0066cc) 22%, transparent);}\n\n /* Activating play/pause deliberately KEEPS focus on the trigger while the\n controls panel opens beside it, so where focus sits has to stay visible —\n including after a pointer activation, where the browser suppresses\n :focus-visible and would paint no ring at all. Scoped to\n `:focus:not(:focus-visible)` so it only fills that gap: genuine keyboard\n focus keeps whatever the shared `__control` rule (plain trigger) or the NDS\n component (nds-icon-button) already paints, untouched.\n Two selectors because the two trigger variants focus different nodes: the\n plain fallback IS the button, while <nds-icon-button> holds focus on an\n inner light-DOM <button> that Lit creates — so it carries no Svelte scoping\n class and must be reached with :global(). */.pie-tool-tts-inline__trigger.svelte-18mzc0g:focus:not(:focus-visible),\n .pie-tool-tts-inline__trigger.svelte-18mzc0g button:focus:not(:focus-visible) {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;}.pie-tool-tts-inline__panel.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;\n /* Buttons inside are zoom-capped (see __control); compensate the panel's\n own spacing/height with the same factor so its chrome doesn't keep\n growing around the frozen buttons past 200%. */gap:calc(0.25rem * var(--pie-tts-zoom-comp, 1));box-sizing:border-box;min-height:calc(var(--pie-tts-controls-row-height, 2.875rem) * var(--pie-tts-zoom-comp, 1));padding:calc(0.25rem * var(--pie-tts-zoom-comp, 1)) calc(0.5rem * var(--pie-tts-zoom-comp, 1));background:var(--pie-surface, var(--pie-background, #fff));border:1px solid var(--pie-border, #d0d0d0);border-radius:0.5rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {\n /* Fixed so it escapes overflow-clipping ancestors; top / right /\n max-width are set inline by measureLeftAlignedOverlay(). */position:fixed;}.pie-tool-tts-inline__panel--row.svelte-18mzc0g {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-18mzc0g {display:inline-flex;align-items:center;justify-content:center;\n /* Cap each control (rewind / fast-forward / stop / speed) at its\n 200%-zoom size; matches the trigger and the passage/questions toggle. */zoom:var(--pie-tts-zoom-comp, 1);width:2rem;height:2rem;border:1px solid var(--pie-button-border-color, var(--pie-button-border, var(--pie-border, #c6c6c6)));border-radius:0.25rem;background:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #222));cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}\n\n /* Icon-only panel controls (rewind / fast-forward / stop) are round to match\n the circular NDS trigger; the pill-shaped speed radios keep square corners. */.pie-tool-tts-inline__control--secondary.svelte-18mzc0g {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-18mzc0g {display:inline-flex;flex-wrap:wrap;align-items:center;gap:calc(0.25rem * var(--pie-tts-zoom-comp, 1));}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;height:2rem;padding:0;font-size:1rem;font-weight:500;letter-spacing:0;white-space:nowrap;}.pie-tool-tts-inline__control--speed[aria-checked='true'].svelte-18mzc0g {border-color:var(--pie-primary, #1565c0);background:color-mix(in srgb, var(--pie-primary, #1565c0) 14%, var(--pie-background, #fff));color:var(--pie-primary, #1565c0);font-weight:600;}.pie-tool-tts-inline__speed-label.svelte-18mzc0g {line-height:1.2;\n /* Render speed labels lowercase regardless of the configured casing.\n Applied to the visible text only; the radio's accessible name comes\n from aria-label (option.ariaLabel), so screen readers still hear the\n canonical \"Slow speed\" / \"Normal speed\" / \"Fast speed\". */text-transform:lowercase;}\n\n /* Reserve the bold (selected) width — stacked popper only. Switching the\n selected speed there would otherwise change the label width and resize the\n fit-content card. The ghost is a zero-height, hidden grid row whose bold text\n sets the column width. The inline (roomy) row keeps its natural sizing. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__speed-label:where(.svelte-18mzc0g)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-18mzc0g:disabled {cursor:not-allowed;opacity:0.6;}\n\n /* ── Overlay layouts (floating-overlay + left-aligned) ──────────────────────\n The Knowledge-Check design keeps the controls on the surrounding\n Question/Passage header: a low-chrome card, icon-only media glyphs, and speed\n radios as plain text with the selected one lifted into a chip.\n\n Shape comes from that design; colour comes from the theme. The overlay used\n to paint literals (#146eb3 glyphs on a #fff card with a #f3f5f7 chip), which\n left a blue-on-white panel floating over every non-default theme — a DaisyUI\n `valentine` page rendered a pink player with a blue TTS panel. Each surface\n now defaults through a canonical token and keeps its literal only as the\n no-theme last resort.\n\n Foregrounds resolve through --pie-button-color (DaisyUI base-content), the\n one family whose contrast against the card is guaranteed in every shipped\n theme: --pie-primary and --pie-tertiary are `direct` mappings of DaisyUI\n slots chosen to pair with their own -content colour, so an accent glyph taken\n from either drops to 1.37:1 on `pastel` and 11 of 35 themes fall under 3:1.\n Selection is signalled by the chip and the bolder weight rather than by hue.\n\n Host knobs, all unchanged: --pie-tts-button-color (accent),\n --pie-tts-inline-muted-color, --pie-tts-selected-bg,\n --pie-selected-button-background/-border, --pie-tts-menu-shadow. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g,\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {min-height:0;height:calc(3rem * var(--pie-tts-zoom-comp, 1)); /* Figma: 48px */justify-content:center;gap:calc(0.375rem * var(--pie-tts-zoom-comp, 1));\n /* --pie-white is the surface role every built-in sets to its page colour\n (DaisyUI base-100; #000 under the dark theme). --pie-background is the\n page token, which a host may point at its own backdrop, and a floating\n card needs a surface it owns. */background:var(--pie-tts-selected-bg, var(--pie-surface, var(--pie-white, #fff)));\n /* The Figma card is shadow-only, but the shadow is black: once the card\n takes a dark theme's surface it has no visible edge left. A hairline\n derived from the text colour reads on either. Not --pie-border: a host\n that wants borderless controls sets that to transparent, which is\n exactly the case where the shadow is the only edge. --pie-tts-card-border\n is the opt-out (`transparent` restores the shadow-only card). */border:1px solid var(--pie-tts-card-border, color-mix(in srgb, var(--pie-text, #000) 15%, transparent));border-radius:0.5rem; /* Figma: --radius-8 (8px) */box-shadow:var(--pie-tts-menu-shadow, 0 1px 5px 0 rgba(0, 0, 0, 0.3));}\n\n /* Compact: the popper card holds the media row (rewind / fast-forward / stop)\n on top and the speed radios stacked below. The white card bg + shadow come\n from the shared overlay rule above; this only tunes the compact layout. */.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {gap:0;width:fit-content;min-width:calc(7.5rem * var(--pie-tts-zoom-comp, 1)); /* ~120px floor; grows with content beyond that */height:auto; /* stacked popper grows past the 48px roomy toolbar height */padding:0;}\n\n /* Media controls (rewind / fast-forward / stop): accent glyph, no chrome. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g) {border:0;background:transparent;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 12%, transparent);}\n\n /* Speed radios (inline / roomy): plain muted text with breathing room between\n options — min-width + side padding, matching the original inline spacing. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {min-width:2.75rem;padding:0 0.625rem;border:1px solid transparent;background:transparent;box-shadow:none;\n /* Unselected labels are text on the card, so they take the full text colour\n rather than a dimmed mix: DaisyUI only guarantees base-content against the\n surface, and `valentine` is 5.46:1 there — a 10% dim already lands under\n 4.5:1. Hosts that want them dimmer set --pie-tts-inline-muted-color. */color:var(--pie-tts-inline-muted-color, var(--pie-button-color, var(--pie-text, #5b6b73)));font-size:1rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g):hover:not(:disabled) {transform:none;box-shadow:none;background:color-mix(in srgb, var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222))) 8%, transparent);}\n\n /* Selected inline radio: \"chip\" treatment. Placed after the muted rule so it\n wins at equal specificity. The fill is --pie-button-active-bg, which the\n DaisyUI mapping already tunes (base-300 at 70% toward base-100) to hold\n base-content text at 4.5:1 in every shipped theme. */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:600;}\n\n /* ── Compact left-aligned overlay ───────────────────────────────────────────\n Inside the popper card the media controls occupy the top row and the speed\n radios drop onto their own full-width line below, stacked vertically.\n `order` puts the speeds after the media buttons even though they are first in\n the DOM; flex-basis:100% forces the wrap so media occupy the top line. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g {order:1;flex-basis:100%;flex-direction:column;align-items:center;gap:0.125rem;}\n\n /* In the card every option reads in the accent colour; the selected one is\n lifted into a bordered chip. Options size to their content and centre (no\n full-width stretch), keeping the popper compact. */.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {justify-content:center;width:auto;min-width:0;height:auto;padding:0.25rem 0.75rem;border:1px solid transparent;border-radius:0.5rem;background:transparent;box-shadow:none;color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-size:0.75rem;font-weight:500;}.pie-tool-tts-inline__speed-group--stacked.svelte-18mzc0g .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-18mzc0g) {border:1px solid var(--pie-selected-button-border, var(--pie-button-border, var(--pie-border, #d9dada)));border-radius:6px;background:var(--pie-selected-button-background, var(--pie-button-active-bg, #f3f5f7));color:var(--pie-tts-button-color, var(--pie-button-color, var(--pie-text, #222)));font-weight:700;}\n\n /* Trigger size variants set the NDS outer size (--height-32); the glyph keeps\n the NDS-native icon size (host renders size=\"small\"). */.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-18mzc0g {font-size:1rem;line-height:1;color:currentColor;}\n\n @media (max-width: 839px) {.pie-tool-tts-inline.svelte-18mzc0g {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-18mzc0g {padding:0;}\n\n /* NOTE: the trigger's --height-32 is intentionally NOT shrunk here. Browser\n zoom narrows the CSS viewport enough to trip this breakpoint, which would\n drop the play button to 1.75rem while the calculator button (furnished by\n the toolbar) stays 2rem, mismatching them under zoom. Size is governed by\n the zoom-compensation cap instead. */.pie-tool-tts-inline__control.svelte-18mzc0g {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;min-width:2.5rem;height:1.75rem;padding:0 0.5rem;}\n\n /* drop font-size on smaller screens */.pie-tool-tts-inline__panel--floating.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g .pie-tool-tts-inline__control--speed:where(.svelte-18mzc0g) {font-size:0.75rem;}\n }.pie-sr-only.svelte-18mzc0g {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}\n\n @media (prefers-reduced-motion: reduce) {.pie-tool-tts-inline__control.svelte-18mzc0g {transition:none !important;}\n }"
3890
3917
  };
3891
- function ro(o, s) {
3892
- Re(s, !0), Rr(o, no);
3893
- let c = ri(s, "catalogId", 7, ""), l = ri(s, "language", 7, "en-US"), u = ri(s, "size", 7, "md"), d = ri(s, "speedOptions", 7, void 0), f = ri(s, "showSingleSpeedOption", 7, !1), p = ri(s, "layoutMode", 7, "expanding-row"), m = typeof window < "u", h = "__pie_tts_inline_active_owner__", g = "pie-tts-inline-owner-change", _ = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], v = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", y = /font.?awesome|fa-?pro/i, b = !1, x = () => {
3894
- if (!(!m || b)) {
3895
- if (b = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
3918
+ function so(o, s) {
3919
+ ze(s, !0), Hr(o, oo);
3920
+ let c = si(s, "catalogId", 7, ""), l = si(s, "language", 7, "en-US"), u = si(s, "size", 7, "md"), d = si(s, "speedOptions", 7, void 0), f = si(s, "showSingleSpeedOption", 7, !1), p = si(s, "layoutMode", 7, "expanding-row"), m = typeof window < "u", h = "__pie_tts_inline_active_owner__", g = "pie-tts-inline-owner-change", _ = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], v = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", y = /font.?awesome|fa-?pro/i, ee = !1, b = () => {
3921
+ if (!(!m || ee)) {
3922
+ if (ee = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
3896
3923
  let e = document.createElement("link");
3897
3924
  e.rel = "stylesheet", e.href = "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap", document.head.appendChild(e);
3898
3925
  }
@@ -3908,12 +3935,12 @@ function ro(o, s) {
3908
3935
  }
3909
3936
  }
3910
3937
  }
3911
- }, S = "__pieFaTtsShadowInstalled", ee = (e) => {
3938
+ }, x = "__pieFaTtsShadowInstalled", te = (e) => {
3912
3939
  let t = e.getRootNode();
3913
3940
  if (!(t instanceof ShadowRoot)) return;
3914
3941
  let n = t;
3915
- if (n[S]) return;
3916
- n[S] = !0;
3942
+ if (n[x]) return;
3943
+ n[x] = !0;
3917
3944
  let r = /* @__PURE__ */ new Set(), i = (e) => {
3918
3945
  if (!e || r.has(e)) return;
3919
3946
  r.add(e);
@@ -3921,8 +3948,8 @@ function ro(o, s) {
3921
3948
  n.rel = "stylesheet", n.href = e, t.appendChild(n);
3922
3949
  }, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => y.test(e.href));
3923
3950
  for (let e of a) i(e.href);
3924
- }, C = (e) => {
3925
- x(), ee(e);
3951
+ }, S = (e) => {
3952
+ b(), te(e);
3926
3953
  let t = () => {
3927
3954
  for (let t of e.querySelectorAll("i.fa-light")) t.classList.remove("fa-light"), t.classList.add("fa-solid");
3928
3955
  };
@@ -3936,7 +3963,7 @@ function ro(o, s) {
3936
3963
  }), { destroy() {
3937
3964
  n.disconnect();
3938
3965
  } };
3939
- }, w = (e, t) => {
3966
+ }, C = (e, t) => {
3940
3967
  let n = t, r = () => {
3941
3968
  let t = e.querySelector("button");
3942
3969
  if (t) for (let [e, r] of Object.entries(n)) r == null ? t.removeAttribute(e) : t.setAttribute(e, r);
@@ -3954,61 +3981,61 @@ function ro(o, s) {
3954
3981
  i.disconnect();
3955
3982
  }
3956
3983
  };
3957
- }, te = (e) => (x(), ee(e), {}), T = /* @__PURE__ */ U(void 0), E = /* @__PURE__ */ U(void 0), ne = /* @__PURE__ */ U(null), re = /* @__PURE__ */ V(() => Z(ne)?.ndsIcons === !0), D = /* @__PURE__ */ V(() => qa(Z(ne))), O = /* @__PURE__ */ U(null), ie = /* @__PURE__ */ U(null), k = /* @__PURE__ */ V(() => Z(ne)?.ttsService), ae = /* @__PURE__ */ V(() => Z(ne)?.highlightCoordinator), oe = /* @__PURE__ */ V(() => Z(ie)?.scopeElement || Z(O)?.scopeElement || null), A = /* @__PURE__ */ U(!1), se = /* @__PURE__ */ U(!1), j = /* @__PURE__ */ U(!1), M = /* @__PURE__ */ U(!1), N = /* @__PURE__ */ U(""), ce = /* @__PURE__ */ U(null), le = /* @__PURE__ */ U(null), ue = /* @__PURE__ */ U(!1), de = /* @__PURE__ */ U(!1), fe = /* @__PURE__ */ U(!1), pe = null, me = /* @__PURE__ */ V(() => Z(ue) || Z(de)), he = null, ge = /* @__PURE__ */ V(() => a(d())), _e = /* @__PURE__ */ V(() => P(Z(ge))), ve = /* @__PURE__ */ V(() => Z(ge).length > 1 || f() ? Z(ge) : []), ye = /* @__PURE__ */ V(() => Z(ce) !== null && Z(le) === Z(_e) && Z(ge).some((e) => e.rate === Z(ce)) ? Z(ce) : F(Z(ge))), be = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, xe = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, Se = `${be}-controls`;
3958
- function Ce() {
3984
+ }, ne = (e) => (b(), te(e), {}), w = /* @__PURE__ */ U(void 0), T = /* @__PURE__ */ U(void 0), re = /* @__PURE__ */ U(null), ie = /* @__PURE__ */ B(() => Z(re)?.ndsIcons === !0), E = /* @__PURE__ */ B(() => Za(Z(re))), D = /* @__PURE__ */ U(null), ae = /* @__PURE__ */ U(null), O = /* @__PURE__ */ B(() => Z(re)?.ttsService), oe = /* @__PURE__ */ B(() => Z(re)?.highlightCoordinator), se = /* @__PURE__ */ B(() => Z(ae)?.scopeElement || Z(D)?.scopeElement || null), k = /* @__PURE__ */ U(!1), ce = /* @__PURE__ */ U(!1), A = /* @__PURE__ */ U(!1), j = /* @__PURE__ */ U(!1), M = /* @__PURE__ */ U(""), le = /* @__PURE__ */ U(null), ue = /* @__PURE__ */ U(null), de = /* @__PURE__ */ U(!1), fe = /* @__PURE__ */ U(!1), pe = /* @__PURE__ */ U(!1), me = null, he = /* @__PURE__ */ B(() => Z(de) || Z(fe)), ge = null, _e = /* @__PURE__ */ B(() => a(d())), ve = /* @__PURE__ */ B(() => Ee(Z(_e))), N = /* @__PURE__ */ B(() => Z(_e).length > 1 || f() ? Z(_e) : []), P = /* @__PURE__ */ B(() => Z(le) !== null && Z(ue) === Z(ve) && Z(_e).some((e) => e.rate === Z(le)) ? Z(le) : De(Z(_e))), F = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, I = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, ye = `${F}-controls`;
3985
+ function xe() {
3959
3986
  if (!m) return null;
3960
3987
  let e = window[h];
3961
3988
  return typeof e == "string" ? e : null;
3962
3989
  }
3963
- function we() {
3964
- return Ce() === be;
3990
+ function L() {
3991
+ return xe() === F;
3965
3992
  }
3966
- function Te(e, t) {
3993
+ function Se(e, t) {
3967
3994
  m && window.dispatchEvent(new CustomEvent(g, { detail: {
3968
3995
  ownerId: e,
3969
3996
  previousOwnerId: t
3970
3997
  } }));
3971
3998
  }
3972
- function Ee() {
3999
+ function Ce() {
3973
4000
  if (!m) return;
3974
- let e = Ce();
3975
- e !== be && (window[h] = be, Te(be, e));
4001
+ let e = xe();
4002
+ e !== F && (window[h] = F, Se(F, e));
3976
4003
  }
3977
- function De() {
3978
- m && Ce() === be && (delete window[h], Te(null, be));
4004
+ function we() {
4005
+ m && xe() === F && (delete window[h], Se(null, F));
3979
4006
  }
3980
- function Oe(e = "", t = !1) {
3981
- W(de, !1), W(j, !1), W(M, !1), W(A, t, !0), W(N, e, !0);
4007
+ function Te(e = "", t = !1) {
4008
+ W(fe, !1), W(A, !1), W(j, !1), W(k, t, !0), W(M, e, !0);
3982
4009
  }
3983
- function P(e) {
4010
+ function Ee(e) {
3984
4011
  return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
3985
4012
  }
3986
- function F(e) {
4013
+ function De(e) {
3987
4014
  return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
3988
4015
  }
3989
- async function I(e, t) {
4016
+ async function Oe(e, t) {
3990
4017
  if (typeof e.setPlaybackRate == "function") {
3991
4018
  await e.setPlaybackRate(t);
3992
4019
  return;
3993
4020
  }
3994
4021
  await e.updateSettings({ rate: t });
3995
4022
  }
3996
- function L() {
3997
- if (!Z(T) || !Z(E)) return !1;
3998
- let e = Z(T).getRootNode();
4023
+ function ke() {
4024
+ if (!Z(w) || !Z(T)) return !1;
4025
+ let e = Z(w).getRootNode();
3999
4026
  if (!(e instanceof ShadowRoot)) return !1;
4000
4027
  let t = e.activeElement;
4001
- return !!(t && Z(E).contains(t));
4028
+ return !!(t && Z(T).contains(t));
4002
4029
  }
4003
- function ke() {
4004
- if (!Z(E)) return !1;
4005
- let e = Z(E).getRootNode();
4030
+ function Ae() {
4031
+ if (!Z(T)) return !1;
4032
+ let e = Z(T).getRootNode();
4006
4033
  if (!(e instanceof ShadowRoot)) return !1;
4007
4034
  let t = e.activeElement;
4008
- return !t || !Z(E).contains(t) ? !1 : t.matches(R);
4035
+ return !t || !Z(T).contains(t) ? !1 : t.matches(Le);
4009
4036
  }
4010
4037
  function je() {
4011
- let e = Z(E)?.querySelector(Le);
4038
+ let e = Z(T)?.querySelector(R);
4012
4039
  if (e && !e.disabled) {
4013
4040
  e.focus();
4014
4041
  return;
@@ -4016,101 +4043,101 @@ function ro(o, s) {
4016
4043
  Me(!0);
4017
4044
  }
4018
4045
  function Me(e) {
4019
- if (!Z(T) || !e) return;
4020
- let t = Z(T).getRootNode();
4046
+ if (!Z(w) || !e) return;
4047
+ let t = Z(w).getRootNode();
4021
4048
  if (!(t instanceof ShadowRoot)) return;
4022
4049
  let n = t.querySelector(".pie-tool-tts-inline__trigger");
4023
4050
  (n?.querySelector("button") ?? n)?.focus();
4024
4051
  }
4025
- function Ne(e = Z(D).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
4026
- if (!Z(fe) && !(!Z(A) && !we())) {
4027
- W(fe, !0);
4052
+ function Ne(e = Z(E).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
4053
+ if (!Z(pe) && !(!Z(k) && !L())) {
4054
+ W(pe, !0);
4028
4055
  try {
4029
- let n = L();
4030
- we() && De(), Oe(e), Ke(), t && queueMicrotask(() => {
4056
+ let n = ke();
4057
+ L() && we(), Te(e), qe(), t && queueMicrotask(() => {
4031
4058
  Me(n);
4032
4059
  });
4033
4060
  } finally {
4034
- W(fe, !1);
4061
+ W(pe, !1);
4035
4062
  }
4036
4063
  }
4037
4064
  }
4038
- dn(() => {
4039
- if (Z(T)) return r(Z(T), (e) => {
4040
- W(ne, e, !0);
4065
+ un(() => {
4066
+ if (Z(w)) return r(Z(w), (e) => {
4067
+ W(re, e, !0);
4041
4068
  });
4042
- }), dn(() => {
4043
- if (!Z(T)) return;
4044
- let e = i(Z(T), (e) => {
4045
- W(O, e, !0);
4046
- }), t = n(Z(T), (e) => {
4047
- W(ie, e, !0);
4069
+ }), un(() => {
4070
+ if (!Z(w)) return;
4071
+ let e = i(Z(w), (e) => {
4072
+ W(D, e, !0);
4073
+ }), t = n(Z(w), (e) => {
4074
+ W(ae, e, !0);
4048
4075
  });
4049
4076
  return () => {
4050
4077
  t(), e();
4051
4078
  };
4052
- }), dn(() => {
4053
- if (!Z(k)) return;
4079
+ }), un(() => {
4080
+ if (!Z(O)) return;
4054
4081
  let e = (e) => {
4055
- if (!Z(A) || !we()) {
4056
- W(j, !1), W(M, !1);
4082
+ if (!Z(k) || !L()) {
4083
+ W(A, !1), W(j, !1);
4057
4084
  return;
4058
4085
  }
4059
- W(j, e === "playing" || e === "paused", !0), W(M, e === "paused");
4086
+ W(A, e === "playing" || e === "paused", !0), W(j, e === "paused");
4060
4087
  }, t = (t) => {
4061
- let n = String(t), r = ke();
4062
- e(n), n === "playing" && (Z(de) && W(N, Z(D).t("tools.textToSpeech.inline.started"), !0), W(de, !1)), (n === "error" || n === "idle") && W(de, !1), r && !Z(j) && queueMicrotask(je);
4088
+ let n = String(t), r = Ae();
4089
+ e(n), n === "playing" && (Z(fe) && W(M, Z(E).t("tools.textToSpeech.inline.started"), !0), W(fe, !1)), (n === "error" || n === "idle") && W(fe, !1), r && !Z(A) && queueMicrotask(je);
4063
4090
  };
4064
- return Z(k).onStateChange(xe, t), e(Z(k).getState()), () => {
4065
- Z(k).offStateChange(xe, t);
4091
+ return Z(O).onStateChange(I, t), e(Z(O).getState()), () => {
4092
+ Z(O).offStateChange(I, t);
4066
4093
  };
4067
- }), dn(() => {
4094
+ }), un(() => {
4068
4095
  if (!m) return;
4069
4096
  let e = (e) => {
4070
4097
  let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
4071
- n === be && t !== be && Ne(Z(D).t("tools.textToSpeech.inline.switchedSection"));
4098
+ n === F && t !== F && Ne(Z(E).t("tools.textToSpeech.inline.switchedSection"));
4072
4099
  };
4073
4100
  return window.addEventListener(g, e), () => {
4074
4101
  window.removeEventListener(g, e);
4075
4102
  };
4076
- }), dn(() => {
4103
+ }), un(() => {
4077
4104
  if (!m) return;
4078
4105
  let t = () => {
4079
- Ne(Z(D).t("tools.textToSpeech.inline.switchedSection"), !0);
4106
+ Ne(Z(E).t("tools.textToSpeech.inline.switchedSection"), !0);
4080
4107
  };
4081
4108
  return window.addEventListener(e, t), () => {
4082
4109
  window.removeEventListener(e, t);
4083
4110
  };
4084
- }), dn(() => () => {
4085
- De(), Ke();
4111
+ }), un(() => () => {
4112
+ we(), qe();
4086
4113
  });
4087
4114
  async function Pe() {
4088
- if (!Z(k)) return !1;
4115
+ if (!Z(O)) return !1;
4089
4116
  try {
4090
- return await Z(ne)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
4117
+ return await Z(re)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
4091
4118
  } catch (e) {
4092
4119
  return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
4093
4120
  }
4094
4121
  }
4095
- let Fe = "[data-pie-tts-speed-rate]", Ie = "[data-pie-tts-media]", R = "[data-pie-tts-seek]", Le = "[data-pie-tts-stop]";
4096
- function Be(e) {
4097
- return Z(E) ? Array.from(Z(E).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
4122
+ let Fe = "[data-pie-tts-speed-rate]", Ie = "[data-pie-tts-media]", Le = "[data-pie-tts-seek]", R = "[data-pie-tts-stop]";
4123
+ function Re(e) {
4124
+ return Z(T) ? Array.from(Z(T).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
4098
4125
  }
4099
4126
  function Ve(e, t) {
4100
- let n = Be(e);
4127
+ let n = Re(e);
4101
4128
  if (!n.length) return;
4102
4129
  let r = n[(t + n.length) % n.length];
4103
4130
  if (r.focus(), e !== Fe) return;
4104
- let i = Number(r.dataset.pieTtsSpeedRate), a = Z(ve).find((e) => e.rate === i);
4105
- a && $e(a);
4131
+ let i = Number(r.dataset.pieTtsSpeedRate), a = Z(N).find((e) => e.rate === i);
4132
+ a && et(a);
4106
4133
  }
4107
4134
  function He(e, t) {
4108
- let n = Be(e);
4135
+ let n = Re(e);
4109
4136
  if (!n.length) return;
4110
- let r = Z(E)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
4137
+ let r = Z(T)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
4111
4138
  Ve(e, a === -1 ? 0 : a + t);
4112
4139
  }
4113
- function z(e, t) {
4140
+ function Ue(e, t) {
4114
4141
  switch (t.key) {
4115
4142
  case "ArrowDown":
4116
4143
  case "ArrowRight":
@@ -4126,167 +4153,167 @@ function ro(o, s) {
4126
4153
  case "End": t.preventDefault(), Ve(e, -1);
4127
4154
  }
4128
4155
  }
4129
- function Ue() {
4130
- if (!Z(oe)) return null;
4131
- let e = Z(oe);
4156
+ function We() {
4157
+ if (!Z(se)) return null;
4158
+ let e = Z(se);
4132
4159
  if (e.getAttribute?.("data-region") === "content") return e;
4133
4160
  let t = e.querySelector?.("[data-region='content']");
4134
4161
  return t instanceof Element ? t : e;
4135
4162
  }
4136
- function We() {
4137
- if (Z(O)) return t({
4138
- kind: Z(O).kind,
4139
- assessmentId: Z(ne)?.assessmentId,
4140
- sectionId: Z(ne)?.sectionId,
4141
- itemId: Z(O).itemId,
4142
- canonicalItemId: Z(O).canonicalItemId || Z(O).itemId
4163
+ function Ge() {
4164
+ if (Z(D)) return t({
4165
+ kind: Z(D).kind,
4166
+ assessmentId: Z(re)?.assessmentId,
4167
+ sectionId: Z(re)?.sectionId,
4168
+ itemId: Z(D).itemId,
4169
+ canonicalItemId: Z(D).canonicalItemId || Z(D).itemId
4143
4170
  });
4144
4171
  }
4145
- function Ge(e) {
4146
- return Ke(), pe = Z(k)?.setHighlightTargetResolverProvider?.(() => ({
4172
+ function Ke(e) {
4173
+ return qe(), me = Z(O)?.setHighlightTargetResolverProvider?.(() => ({
4147
4174
  context: {
4148
- scopeElement: Z(ie)?.scopeElement || e || null,
4149
- kind: Z(O)?.kind,
4150
- itemId: Z(O)?.itemId,
4151
- canonicalItemId: Z(O)?.canonicalItemId,
4152
- contentKind: Z(O)?.contentKind,
4153
- regionPolicy: Z(O)?.regionPolicy
4175
+ scopeElement: Z(ae)?.scopeElement || e || null,
4176
+ kind: Z(D)?.kind,
4177
+ itemId: Z(D)?.itemId,
4178
+ canonicalItemId: Z(D)?.canonicalItemId,
4179
+ contentKind: Z(D)?.contentKind,
4180
+ regionPolicy: Z(D)?.regionPolicy
4154
4181
  },
4155
- resolver: Z(ie)?.ttsHighlightTargetResolver || null
4156
- })) || null, pe;
4182
+ resolver: Z(ae)?.ttsHighlightTargetResolver || null
4183
+ })) || null, me;
4157
4184
  }
4158
- function Ke(e = pe) {
4159
- e?.(), e === pe && (pe = null);
4185
+ function qe(e = me) {
4186
+ e?.(), e === me && (me = null);
4160
4187
  }
4161
- function B() {
4162
- if (!we()) return !1;
4163
- let e = String(Z(k)?.getState?.() || "");
4188
+ function z() {
4189
+ if (!L()) return !1;
4190
+ let e = String(Z(O)?.getState?.() || "");
4164
4191
  return e === "playing" || e === "paused" || e === "loading";
4165
4192
  }
4166
- function qe(e) {
4167
- let t = L();
4168
- Oe(Z(D).t("tools.textToSpeech.inline.startFailed")), we() && De(), Z(ae) && Z(ae).clearTTS(), Ke(e), t && queueMicrotask(() => {
4193
+ function Je(e) {
4194
+ let t = ke();
4195
+ Te(Z(E).t("tools.textToSpeech.inline.startFailed")), L() && we(), Z(oe) && Z(oe).clearTTS(), qe(e), t && queueMicrotask(() => {
4169
4196
  Me(!0);
4170
4197
  });
4171
4198
  }
4172
- async function Je() {
4173
- if (!Z(k)) return;
4174
- let e = null, t = Ue();
4199
+ async function Ye() {
4200
+ if (!Z(O)) return;
4201
+ let e = null, t = We();
4175
4202
  if (!t) {
4176
4203
  console.warn("[TTS Inline] No target container found from shell scope context");
4177
4204
  return;
4178
4205
  }
4179
4206
  try {
4180
- W(A, !0);
4207
+ W(k, !0);
4181
4208
  let n = t.textContent || "";
4182
4209
  if (!n) {
4183
4210
  console.warn("[TTS Inline] No text content found");
4184
4211
  return;
4185
4212
  }
4186
- Z(ae) && Z(k).setHighlightCoordinator && Z(k).setHighlightCoordinator(Z(ae)), await I(Z(k), Z(ye)), he = {
4187
- service: Z(k),
4188
- choicesKey: Z(_e)
4189
- }, e = Ge(t), Z(k).setRootElement?.(t), W(de, !0), W(N, Z(D).t("tools.textToSpeech.inline.starting"), !0), Z(k).speak(n, {
4213
+ Z(oe) && Z(O).setHighlightCoordinator && Z(O).setHighlightCoordinator(Z(oe)), await Oe(Z(O), Z(P)), ge = {
4214
+ service: Z(O),
4215
+ choicesKey: Z(ve)
4216
+ }, e = Ke(t), Z(O).setRootElement?.(t), W(fe, !0), W(M, Z(E).t("tools.textToSpeech.inline.starting"), !0), Z(O).speak(n, {
4190
4217
  catalogId: c() || void 0,
4191
- catalogContext: We(),
4218
+ catalogContext: Ge(),
4192
4219
  language: l(),
4193
4220
  contentElement: t
4194
4221
  }).catch((t) => {
4195
- console.error("[TTS Inline] Error:", t), qe(e);
4222
+ console.error("[TTS Inline] Error:", t), Je(e);
4196
4223
  }).finally(() => {
4197
- B() || Ke(e);
4224
+ z() || qe(e);
4198
4225
  });
4199
4226
  } catch (t) {
4200
- console.error("[TTS Inline] Error:", t), qe(e);
4227
+ console.error("[TTS Inline] Error:", t), Je(e);
4201
4228
  }
4202
4229
  }
4203
- async function Ye() {
4204
- if (Z(k) && !(Z(me) || we() && String(Z(k).getState?.() || "") === "loading")) {
4205
- if (we() && Z(M)) {
4206
- Z(k).resume(), W(N, Z(D).t("tools.textToSpeech.inline.resumed"), !0);
4230
+ async function Xe() {
4231
+ if (Z(O) && !(Z(he) || L() && String(Z(O).getState?.() || "") === "loading")) {
4232
+ if (L() && Z(j)) {
4233
+ Z(O).resume(), W(M, Z(E).t("tools.textToSpeech.inline.resumed"), !0);
4207
4234
  return;
4208
4235
  }
4209
- if (we() && Z(j) && !Z(M)) {
4210
- Z(k).pause(), W(N, Z(D).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
4236
+ if (L() && Z(A) && !Z(j)) {
4237
+ Z(O).pause(), W(M, Z(E).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
4211
4238
  return;
4212
4239
  }
4213
- if (!Z(ue)) {
4214
- W(ue, !0);
4240
+ if (!Z(de)) {
4241
+ W(de, !0);
4215
4242
  try {
4216
- if (W(N, Z(D).t("tools.textToSpeech.inline.initializing"), !0), !await Pe()) {
4217
- W(N, Z(D).t("tools.textToSpeech.inline.initFailed"), !0);
4243
+ if (W(M, Z(E).t("tools.textToSpeech.inline.initializing"), !0), !await Pe()) {
4244
+ W(M, Z(E).t("tools.textToSpeech.inline.initFailed"), !0);
4218
4245
  return;
4219
4246
  }
4220
- let e = String(Z(k).getState?.() || "");
4221
- (e === "playing" || e === "paused" || e === "loading") && !we() && Z(k).stop(), Ee(), await Je();
4247
+ let e = String(Z(O).getState?.() || "");
4248
+ (e === "playing" || e === "paused" || e === "loading") && !L() && Z(O).stop(), Ce(), await Ye();
4222
4249
  } finally {
4223
- W(ue, !1);
4250
+ W(de, !1);
4224
4251
  }
4225
4252
  }
4226
4253
  }
4227
4254
  }
4228
- function Xe() {
4229
- if (!Z(k)) return;
4230
- let e = L();
4231
- Z(k).stop(), De(), Oe(Z(D).t("tools.textToSpeech.inline.stopped")), Z(ae) && Z(ae).clearTTS(), Ke(), e && queueMicrotask(() => {
4255
+ function Ze() {
4256
+ if (!Z(O)) return;
4257
+ let e = ke();
4258
+ Z(O).stop(), we(), Te(Z(E).t("tools.textToSpeech.inline.stopped")), Z(oe) && Z(oe).clearTTS(), qe(), e && queueMicrotask(() => {
4232
4259
  Me(!0);
4233
4260
  });
4234
4261
  }
4235
- async function Ze() {
4236
- if (!(!Z(k) || !Z(j))) try {
4237
- await Z(k).seekForward?.(1), W(N, Z(D).t("tools.textToSpeech.inline.skippedForward"), !0);
4262
+ async function Qe() {
4263
+ if (!(!Z(O) || !Z(A))) try {
4264
+ await Z(O).seekForward?.(1), W(M, Z(E).t("tools.textToSpeech.inline.skippedForward"), !0);
4238
4265
  } catch (e) {
4239
- console.error("[TTS Inline] Seek forward failed:", e), W(N, Z(D).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
4266
+ console.error("[TTS Inline] Seek forward failed:", e), W(M, Z(E).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
4240
4267
  }
4241
4268
  }
4242
- async function Qe() {
4243
- if (!(!Z(k) || !Z(j))) try {
4244
- await Z(k).seekBackward?.(1), W(N, Z(D).t("tools.textToSpeech.inline.skippedBackward"), !0);
4269
+ async function $e() {
4270
+ if (!(!Z(O) || !Z(A))) try {
4271
+ await Z(O).seekBackward?.(1), W(M, Z(E).t("tools.textToSpeech.inline.skippedBackward"), !0);
4245
4272
  } catch (e) {
4246
- console.error("[TTS Inline] Seek backward failed:", e), W(N, Z(D).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
4273
+ console.error("[TTS Inline] Seek backward failed:", e), W(M, Z(E).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
4247
4274
  }
4248
4275
  }
4249
- async function $e(e) {
4250
- let t = Z(k);
4276
+ async function et(e) {
4277
+ let t = Z(O);
4251
4278
  if (!t) return;
4252
- if (Z(ye) === e.rate) {
4253
- W(N, Z(D).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4279
+ if (Z(P) === e.rate) {
4280
+ W(M, Z(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4254
4281
  return;
4255
4282
  }
4256
- let n = Z(ce), r = Z(le);
4257
- W(ce, e.rate, !0), W(le, Z(_e), !0), W(N, Z(D).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4283
+ let n = Z(le), r = Z(ue);
4284
+ W(le, e.rate, !0), W(ue, Z(ve), !0), W(M, Z(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4258
4285
  let i = {
4259
4286
  service: t,
4260
- choicesKey: Z(_e)
4287
+ choicesKey: Z(ve)
4261
4288
  };
4262
- he = i;
4289
+ ge = i;
4263
4290
  try {
4264
- await I(t, e.rate);
4291
+ await Oe(t, e.rate);
4265
4292
  } catch (e) {
4266
- he === i && (he = null), console.error("[TTS Inline] Playback speed change failed:", e), W(ce, n, !0), W(le, r, !0), W(N, Z(D).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
4293
+ ge === i && (ge = null), console.error("[TTS Inline] Playback speed change failed:", e), W(le, n, !0), W(ue, r, !0), W(M, Z(E).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
4267
4294
  }
4268
4295
  }
4269
- let et = /* @__PURE__ */ V(() => u() === "sm" ? "pie-tool-tts-inline__trigger--sm" : u() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), tt = /* @__PURE__ */ V(() => p() === "reserved-row" || p() === "expanding-row"), nt = /* @__PURE__ */ V(() => p() === "floating-overlay"), rt = /* @__PURE__ */ V(() => p() === "left-aligned"), it = /* @__PURE__ */ V(() => Z(nt) || Z(rt)), at = Aa(Da), ot = "[data-pie-tool-overlay-boundary]", st = /* @__PURE__ */ U(""), ct = /* @__PURE__ */ U(0);
4270
- dn(() => {
4271
- let e = Z(k), t = Z(_e), n = Z(j) || Z(M);
4272
- if (!e || !n || !we() || he?.service === e && he.choicesKey === t) return;
4296
+ let tt = /* @__PURE__ */ B(() => u() === "sm" ? "pie-tool-tts-inline__trigger--sm" : u() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), nt = /* @__PURE__ */ B(() => p() === "reserved-row" || p() === "expanding-row"), rt = /* @__PURE__ */ B(() => p() === "floating-overlay"), it = /* @__PURE__ */ B(() => p() === "left-aligned"), at = /* @__PURE__ */ B(() => Z(rt) || Z(it)), ot = Pa(ja), st = "[data-pie-tool-overlay-boundary]", ct = /* @__PURE__ */ U(""), lt = /* @__PURE__ */ U(0);
4297
+ un(() => {
4298
+ let e = Z(O), t = Z(ve), n = Z(A) || Z(j);
4299
+ if (!e || !n || !L() || ge?.service === e && ge.choicesKey === t) return;
4273
4300
  let r = {
4274
4301
  service: e,
4275
4302
  choicesKey: t
4276
4303
  };
4277
- he = r;
4304
+ ge = r;
4278
4305
  let i = !1;
4279
4306
  return queueMicrotask(() => {
4280
- if (i || he !== r) return;
4281
- let t = Z(ye);
4282
- I(e, t).catch((e) => {
4283
- he === r && (he = null), console.error("[TTS Inline] External playback speed sync failed:", e);
4307
+ if (i || ge !== r) return;
4308
+ let t = Z(P);
4309
+ Oe(e, t).catch((e) => {
4310
+ ge === r && (ge = null), console.error("[TTS Inline] External playback speed sync failed:", e);
4284
4311
  });
4285
4312
  }), () => {
4286
4313
  i = !0;
4287
4314
  };
4288
4315
  });
4289
- function lt(e, t) {
4316
+ function ut(e, t) {
4290
4317
  let n = e;
4291
4318
  for (; n;) {
4292
4319
  if (n.matches?.(t)) return n;
@@ -4294,56 +4321,56 @@ function ro(o, s) {
4294
4321
  }
4295
4322
  return null;
4296
4323
  }
4297
- function ut() {
4298
- let e = Z(T)?.getRootNode();
4324
+ function dt() {
4325
+ let e = Z(w)?.getRootNode();
4299
4326
  return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
4300
4327
  }
4301
- function dt(e) {
4328
+ function ft(e) {
4302
4329
  let t = window.getComputedStyle(e), n = parseFloat(t.columnGap || t.gap) || 0, r = (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0) + (parseFloat(t.borderLeftWidth) || 0) + (parseFloat(t.borderRightWidth) || 0), i = Array.from(e.children).filter((e) => window.getComputedStyle(e).display !== "none");
4303
4330
  return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
4304
4331
  }
4305
- function ft() {
4306
- let e = ut();
4307
- if (!e || !Z(E)) return;
4308
- let t = e.getBoundingClientRect(), n = lt(e, ot)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
4309
- if (!Z(se)) {
4310
- let e = dt(Z(E));
4311
- e > 0 && W(ct, e, !0);
4332
+ function pt() {
4333
+ let e = dt();
4334
+ if (!e || !Z(T)) return;
4335
+ let t = e.getBoundingClientRect(), n = ut(e, st)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
4336
+ if (!Z(ce)) {
4337
+ let e = ft(Z(T));
4338
+ e > 0 && W(lt, e, !0);
4312
4339
  }
4313
- W(se, Z(ct) > 0 && r < Z(ct), !0);
4314
- let i = Z(E).offsetHeight || t.height, a = Z(se) ? t.top : t.top + t.height / 2 - i / 2, o = window.innerWidth - t.left + 8;
4315
- W(st, `top: ${a}px; right: ${o}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
4340
+ W(ce, Z(lt) > 0 && r < Z(lt), !0);
4341
+ let i = Z(T).offsetHeight || t.height, a = Z(ce) ? t.top : t.top + t.height / 2 - i / 2, o = window.innerWidth - t.left + 8;
4342
+ W(ct, `top: ${a}px; right: ${o}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
4316
4343
  }
4317
- dn(() => {
4318
- if (!Z(rt) || !Z(A)) {
4319
- W(st, ""), W(se, !1), W(ct, 0);
4344
+ un(() => {
4345
+ if (!Z(it) || !Z(k)) {
4346
+ W(ct, ""), W(ce, !1), W(lt, 0);
4320
4347
  return;
4321
4348
  }
4322
4349
  if (typeof window > "u") return;
4323
4350
  let e = 0, t = () => {
4324
4351
  e ||= window.requestAnimationFrame(() => {
4325
- e = 0, ft();
4352
+ e = 0, pt();
4326
4353
  });
4327
4354
  };
4328
- ft(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
4329
- let n = ut(), r = new ResizeObserver(t);
4330
- n && r.observe(n), Z(E) && r.observe(Z(E));
4331
- let i = n ? lt(n, ot) : null;
4355
+ pt(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
4356
+ let n = dt(), r = new ResizeObserver(t);
4357
+ n && r.observe(n), Z(T) && r.observe(Z(T));
4358
+ let i = n ? ut(n, st) : null;
4332
4359
  i && r.observe(i);
4333
4360
  let a = i?.querySelector("[data-pie-tool-overlay-protect]");
4334
4361
  return a && r.observe(a), () => {
4335
4362
  e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
4336
4363
  };
4337
4364
  });
4338
- function pt() {
4339
- if (!Z(T)) return null;
4340
- let e = Z(T).getRootNode();
4365
+ function V() {
4366
+ if (!Z(w)) return null;
4367
+ let e = Z(w).getRootNode();
4341
4368
  return e instanceof ShadowRoot ? e.host : null;
4342
4369
  }
4343
- dn(() => {
4344
- let e = pt();
4370
+ un(() => {
4371
+ let e = V();
4345
4372
  if (!e) return;
4346
- let t = Z(A) === !0;
4373
+ let t = Z(k) === !0;
4347
4374
  e.setAttribute("data-active", t ? "true" : "false");
4348
4375
  let n = !1;
4349
4376
  return queueMicrotask(() => {
@@ -4361,128 +4388,128 @@ function ro(o, s) {
4361
4388
  return c();
4362
4389
  },
4363
4390
  set catalogId(e = "") {
4364
- c(e), Dt();
4391
+ c(e), Ct();
4365
4392
  },
4366
4393
  get language() {
4367
4394
  return l();
4368
4395
  },
4369
4396
  set language(e = "en-US") {
4370
- l(e), Dt();
4397
+ l(e), Ct();
4371
4398
  },
4372
4399
  get size() {
4373
4400
  return u();
4374
4401
  },
4375
4402
  set size(e = "md") {
4376
- u(e), Dt();
4403
+ u(e), Ct();
4377
4404
  },
4378
4405
  get speedOptions() {
4379
4406
  return d();
4380
4407
  },
4381
4408
  set speedOptions(e = void 0) {
4382
- d(e), Dt();
4409
+ d(e), Ct();
4383
4410
  },
4384
4411
  get showSingleSpeedOption() {
4385
4412
  return f();
4386
4413
  },
4387
4414
  set showSingleSpeedOption(e = !1) {
4388
- f(e), Dt();
4415
+ f(e), Ct();
4389
4416
  },
4390
4417
  get layoutMode() {
4391
4418
  return p();
4392
4419
  },
4393
4420
  set layoutMode(e = "expanding-row") {
4394
- p(e), Dt();
4421
+ p(e), Ct();
4395
4422
  }
4396
- }, ht = gr(), gt = $t(ht), H = (e) => {
4397
- var t = to();
4423
+ }, H = gr(), ht = Yt(H), gt = (e) => {
4424
+ var t = ao();
4398
4425
  let n;
4399
4426
  {
4400
4427
  let e = (e) => {
4401
- var t = Xa(), n = Qt(t), r = (e) => {
4402
- var t = Ja();
4403
- Zr(t, "type", "circle"), Zr(t, "size", "small"), Zr(t, "variant", "tertiary"), vn(() => Zr(t, "icon-name", Z(j) && !Z(M) ? "pause" : "play")), vn((e) => Zr(t, "button-aria-label", e), [() => Z(D).t(Z(j) && !Z(M) ? "tools.textToSpeech.inline.pauseA11y" : Z(M) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), vn(() => Zr(t, "disabled", !Z(k))), zr(t, (e) => C?.(e)), zr(t, (e, t) => w?.(e, t), () => ({
4404
- "aria-expanded": Z(A) ? "true" : "false",
4405
- "aria-controls": Z(A) ? Se : null,
4406
- "aria-pressed": Z(A) ? "true" : "false",
4407
- "aria-busy": Z(me) ? "true" : null
4408
- })), vn(() => Gr(t, 1, `pie-tool-tts-inline__trigger ${Z(et) ?? ""}`, "svelte-18mzc0g")), or("click", t, Ye), _r(e, t);
4428
+ var t = eo(), n = Jt(t), r = (e) => {
4429
+ var t = Qa();
4430
+ ti(t, "type", "circle"), ti(t, "size", "small"), ti(t, "variant", "tertiary"), _n(() => ti(t, "icon-name", Z(A) && !Z(j) ? "pause" : "play")), _n((e) => ti(t, "button-aria-label", e), [() => Z(E).t(Z(A) && !Z(j) ? "tools.textToSpeech.inline.pauseA11y" : Z(j) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), _n(() => ti(t, "disabled", !Z(O))), Ur(t, (e) => S?.(e)), Ur(t, (e, t) => C?.(e, t), () => ({
4431
+ "aria-expanded": Z(k) ? "true" : "false",
4432
+ "aria-controls": Z(k) ? ye : null,
4433
+ "aria-pressed": Z(k) ? "true" : "false",
4434
+ "aria-busy": Z(he) ? "true" : null
4435
+ })), _n(() => Yr(t, 1, `pie-tool-tts-inline__trigger ${Z(tt) ?? ""}`, "svelte-18mzc0g")), or("click", t, Xe), _r(e, t);
4409
4436
  }, i = (e) => {
4410
- var t = Ya(), n = Qt(t);
4411
- Ae(t), zr(t, (e) => te?.(e)), vn((e) => {
4412
- Gr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Z(et) ?? ""}`, "svelte-18mzc0g"), Q(t, "aria-expanded", Z(A) ? "true" : "false"), Q(t, "aria-controls", Z(A) ? Se : void 0), Q(t, "aria-pressed", Z(A) ? "true" : "false"), Q(t, "aria-label", e), Q(t, "aria-busy", Z(me) ? "true" : void 0), t.disabled = !Z(k), Gr(n, 1, `fa-solid ${Z(j) && !Z(M) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-18mzc0g");
4413
- }, [() => Z(D).t(Z(j) && !Z(M) ? "tools.textToSpeech.inline.pauseA11y" : Z(M) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), or("click", t, Ye), _r(e, t);
4437
+ var t = $a(), n = Xt(t);
4438
+ Ur(t, (e) => ne?.(e)), _n((e) => {
4439
+ Yr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Z(tt) ?? ""}`, "svelte-18mzc0g"), Q(t, "aria-expanded", Z(k) ? "true" : "false"), Q(t, "aria-controls", Z(k) ? ye : void 0), Q(t, "aria-pressed", Z(k) ? "true" : "false"), Q(t, "aria-label", e), Q(t, "aria-busy", Z(he) ? "true" : void 0), t.disabled = !Z(O), Yr(n, 1, `fa-solid ${Z(A) && !Z(j) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-18mzc0g");
4440
+ }, [() => Z(E).t(Z(A) && !Z(j) ? "tools.textToSpeech.inline.pauseA11y" : Z(j) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), or("click", t, Xe), _r(e, t);
4414
4441
  };
4415
- Or(n, (e) => {
4416
- Z(re) ? e(r) : e(i, -1);
4417
- }), Ae(t), _r(e, t);
4442
+ Mr(n, (e) => {
4443
+ Z(ie) ? e(r) : e(i, -1);
4444
+ }), be(t), _r(e, t);
4418
4445
  }, n = (e) => {
4419
- var t = gr(), n = $t(t), r = (e) => {
4420
- var t = $a();
4446
+ var t = gr(), n = Yt(t), r = (e) => {
4447
+ var t = ro();
4421
4448
  let n;
4422
- var r = Qt(t), i = (e) => {
4423
- var t = Qa();
4449
+ var r = Jt(t), i = (e) => {
4450
+ var t = no();
4424
4451
  let n;
4425
- Mr(t, 21, () => Z(ve), (e) => e.rate, (e, t) => {
4426
- var n = Za(), r = Qt(n), i = Qt(r, !0);
4427
- Ae(r), Ae(n), vn(() => {
4428
- Q(n, "data-pie-tts-speed-rate", Z(t).rate), Q(n, "tabindex", Z(ye) === Z(t).rate ? 0 : -1), Q(n, "aria-label", Z(t).ariaLabel), Q(n, "aria-checked", Z(ye) === Z(t).rate), n.disabled = !Z(k), Q(r, "data-label", Z(t).label), br(i, Z(t).label);
4429
- }), or("click", n, () => $e(Z(t))), or("keydown", n, (e) => z(Fe, e)), _r(e, n);
4430
- }), Ae(t), vn((e) => {
4431
- n = Gr(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": Z(se) }), Q(t, "aria-label", e);
4432
- }, [() => Z(D).t("tools.textToSpeech.inline.playbackSpeedA11y")]), _r(e, t);
4452
+ Ir(t, 21, () => Z(N), (e) => e.rate, (e, t) => {
4453
+ var n = to(), r = Jt(n), i = Xt(r, !0);
4454
+ be(n), _n(() => {
4455
+ Q(n, "data-pie-tts-speed-rate", Z(t).rate), Q(n, "tabindex", Z(P) === Z(t).rate ? 0 : -1), Q(n, "aria-label", Z(t).ariaLabel), Q(n, "aria-checked", Z(P) === Z(t).rate), n.disabled = !Z(O), Q(r, "data-label", Z(t).label), wr(i, Z(t).label);
4456
+ }), or("click", n, () => et(Z(t))), or("keydown", n, (e) => Ue(Fe, e)), _r(e, n);
4457
+ }), be(t), _n((e) => {
4458
+ n = Yr(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": Z(ce) }), Q(t, "aria-label", e);
4459
+ }, [() => Z(E).t("tools.textToSpeech.inline.playbackSpeedA11y")]), _r(e, t);
4433
4460
  };
4434
- Or(r, (e) => {
4435
- Z(ve).length > 0 && e(i);
4461
+ Mr(r, (e) => {
4462
+ Z(N).length > 0 && e(i);
4436
4463
  });
4437
- var a = en(r, 2), o = en(a, 2), s = en(o, 2);
4438
- Ae(t), ni(t, (e) => W(E, e), () => Z(E)), vn((e, r, i, c) => {
4439
- Q(t, "id", Se), n = Gr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
4440
- "pie-tool-tts-inline__panel--floating": Z(nt),
4441
- "pie-tool-tts-inline__panel--row": Z(tt),
4442
- "pie-tool-tts-inline__panel--left-aligned-inline": Z(rt),
4443
- "pie-tool-tts-inline__panel--compact": Z(rt) && Z(se)
4444
- }), qr(t, Z(rt) ? Z(st) : ""), Q(t, "aria-label", e), Q(a, "aria-label", r), a.disabled = !Z(k) || !Z(j), Q(o, "aria-label", i), o.disabled = !Z(k) || !Z(j), Q(s, "aria-label", c), s.disabled = !Z(k);
4464
+ var a = Zt(r, 2), o = Zt(a, 2), s = Zt(o, 2);
4465
+ be(t), oi(t, (e) => W(T, e), () => Z(T)), _n((e, r, i, c) => {
4466
+ Q(t, "id", ye), n = Yr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
4467
+ "pie-tool-tts-inline__panel--floating": Z(rt),
4468
+ "pie-tool-tts-inline__panel--row": Z(nt),
4469
+ "pie-tool-tts-inline__panel--left-aligned-inline": Z(it),
4470
+ "pie-tool-tts-inline__panel--compact": Z(it) && Z(ce)
4471
+ }), Zr(t, Z(it) ? Z(ct) : ""), Q(t, "aria-label", e), Q(a, "aria-label", r), a.disabled = !Z(O) || !Z(A), Q(o, "aria-label", i), o.disabled = !Z(O) || !Z(A), Q(s, "aria-label", c), s.disabled = !Z(O);
4445
4472
  }, [
4446
- () => Z(D).t("tools.textToSpeech.inline.controlsA11y"),
4447
- () => Z(D).t("tools.textToSpeech.inline.rewindA11y"),
4448
- () => Z(D).t("tools.textToSpeech.inline.fastForwardA11y"),
4449
- () => Z(D).t("tools.textToSpeech.inline.stopA11y")
4450
- ]), or("click", a, Qe), or("keydown", a, (e) => z(Ie, e)), or("click", o, Ze), or("keydown", o, (e) => z(Ie, e)), or("click", s, Xe), or("keydown", s, (e) => z(Ie, e)), _r(e, t);
4473
+ () => Z(E).t("tools.textToSpeech.inline.controlsA11y"),
4474
+ () => Z(E).t("tools.textToSpeech.inline.rewindA11y"),
4475
+ () => Z(E).t("tools.textToSpeech.inline.fastForwardA11y"),
4476
+ () => Z(E).t("tools.textToSpeech.inline.stopA11y")
4477
+ ]), or("click", a, $e), or("keydown", a, (e) => Ue(Ie, e)), or("click", o, Qe), or("keydown", o, (e) => Ue(Ie, e)), or("click", s, Ze), or("keydown", s, (e) => Ue(Ie, e)), _r(e, t);
4451
4478
  };
4452
- Or(n, (e) => {
4453
- Z(A) && e(r);
4479
+ Mr(n, (e) => {
4480
+ Z(k) && e(r);
4454
4481
  }), _r(e, t);
4455
4482
  };
4456
- var r = Qt(t), i = (t) => {
4457
- var r = eo(), i = $t(r);
4483
+ var r = Jt(t), i = (t) => {
4484
+ var r = io(), i = Yt(r);
4458
4485
  n(i);
4459
- var a = en(i, 2);
4486
+ var a = Zt(i, 2);
4460
4487
  e(a), _r(t, r);
4461
4488
  }, a = (t) => {
4462
- var r = eo(), i = $t(r);
4489
+ var r = io(), i = Yt(r);
4463
4490
  e(i);
4464
- var a = en(i, 2);
4491
+ var a = Zt(i, 2);
4465
4492
  n(a), _r(t, r);
4466
4493
  };
4467
- Or(r, (e) => {
4468
- Z(it) ? e(i) : e(a, -1);
4494
+ Mr(r, (e) => {
4495
+ Z(at) ? e(i) : e(a, -1);
4469
4496
  });
4470
- var o = en(r, 2), s = Qt(o, !0);
4471
- Ae(o), Ae(t), ni(t, (e) => W(T, e), () => Z(T)), vn(() => br(s, Z(N)));
4497
+ var o = Xt(Zt(r, 2), !0);
4498
+ be(t), oi(t, (e) => W(w, e), () => Z(w)), _n(() => wr(o, Z(M)));
4472
4499
  }
4473
- vn(() => {
4474
- n = Gr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
4475
- "pie-tool-tts-inline--controls-row": Z(tt),
4476
- "pie-tool-tts-inline--floating": Z(nt),
4477
- "pie-tool-tts-inline--left-aligned": Z(rt)
4478
- }), qr(t, `--pie-tts-zoom-comp: ${at.current};`);
4500
+ _n(() => {
4501
+ n = Yr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
4502
+ "pie-tool-tts-inline--controls-row": Z(nt),
4503
+ "pie-tool-tts-inline--floating": Z(rt),
4504
+ "pie-tool-tts-inline--left-aligned": Z(it)
4505
+ }), Zr(t, `--pie-tts-zoom-comp: ${ot.current};`);
4479
4506
  }), _r(e, t);
4480
4507
  };
4481
- return Or(gt, (e) => {
4482
- m && e(H);
4483
- }), _r(o, ht), ze(mt);
4508
+ return Mr(ht, (e) => {
4509
+ m && e(gt);
4510
+ }), _r(o, H), Be(mt);
4484
4511
  }
4485
- sr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", li(ro, {
4512
+ sr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", pi(so, {
4486
4513
  catalogId: {
4487
4514
  attribute: "catalog-id",
4488
4515
  type: "String"
@@ -4509,4 +4536,4 @@ sr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", li(ro, {
4509
4536
  }
4510
4537
  }, [], [], { mode: "open" }));
4511
4538
  //#endregion
4512
- export { ro as default };
4539
+ export { so as default };