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

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 +1253 -1248
  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__ */ Jt(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__ */ Jt(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__ */ Jt(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__ */ Jt(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,
@@ -136,386 +136,177 @@ function Re(e, t = !1, n) {
136
136
  e: null,
137
137
  s: e,
138
138
  x: null,
139
- r: J,
139
+ r: q,
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
147
  for (var r of n) fn(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 && !_t) {
166
+ var t = Ue;
164
167
  queueMicrotask(() => {
165
- t === Ve && He();
168
+ t === Ue && We();
166
169
  });
167
170
  }
168
- Ve.push(e);
171
+ Ue.push(e);
169
172
  }
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);
178
- }
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) {
227
- var t = K, n = J;
228
- q(null), In(null);
205
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
206
+ function $e(e) {
207
+ var t = G, n = q;
208
+ K(null), In(null);
229
209
  try {
230
210
  return e();
231
211
  } finally {
232
- q(t), In(n);
212
+ K(t), In(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 = q, 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
+ an(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) => an(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 = q, t = G, 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
+ In(e), K(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
+ In(null), K(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 = q, 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 q !== null && (q.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,
483
274
  rv: 0,
484
275
  v: s,
485
276
  wv: 0,
486
- parent: J,
277
+ parent: q,
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) {
493
- let r = J;
494
- r === null && me();
495
- var i = void 0, a = Lt(s), o = !K, c = /* @__PURE__ */ new Set();
283
+ function ot(e, t, n) {
284
+ let r = q;
285
+ r === null && Ee();
286
+ var i = void 0, a = Pt(s), o = !G, c = /* @__PURE__ */ new Set();
496
287
  return gn(() => {
497
- var t = J, n = ee();
288
+ var t = q, 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, It(a, t)) : (a.f & 8388608 && (a.f ^= ce), It(a, e)), s.deactivate());
515
306
  };
516
307
  n.promise.then(u, (e) => u(null, e || "unknown"));
517
308
  }), un(() => {
518
- for (let e of c) e.reject(ct);
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);
321
+ function B(e) {
322
+ let t = /* @__PURE__ */ it(e);
532
323
  return Rn(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
- for (var n = 0; n < t.length; n += 1) G(t[n]);
334
+ for (var n = 0; n < t.length; n += 1) W(t[n]);
544
335
  }
545
336
  }
546
- function ft(e) {
547
- var t, n = J, r = e.parent;
548
- if (!Nn && r !== null && e.v !== s && r.f & 24576) return Ee(), e.v;
337
+ function lt(e) {
338
+ var t, n = q, r = e.parent;
339
+ if (!Nn && r !== null && e.v !== s && r.f & 24576) return ge(), e.v;
549
340
  In(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
344
  In(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
+ Nn || (ht === null ? Je(e) : (ln() || V?.is_fork) && ht.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), Sn(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, ht = null, gt = null, _t = !1, vt = !1, yt = null, bt = null, xt = 0, St = 1, Ct = class e {
367
+ id = St++;
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, xt++ > 1e3 && (this.#x(), Tt());
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 = yt = [], r = [], i = bt = [];
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 At(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 (yt = null, bt = 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) kt(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, Dt(r), Dt(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 && (Mt.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]), ht?.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, ht = null;
731
522
  }
732
523
  flush() {
733
524
  try {
734
- xt = !0, H = this, this.#g();
525
+ vt = !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
+ xt = 0, gt = null, yt = null, bt = null, vt = !1, V = null, ht = null, Mt.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
+ !vt && !_t && 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
+ ht = null;
788
579
  }
789
580
  schedule(e) {
790
- if (yt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
581
+ if (gt = 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 (yt !== null && t === q && (G === null || !(G.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,172 +596,172 @@ 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 wt(e) {
604
+ var t = _t;
605
+ _t = !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
+ _t = t;
823
614
  }
824
615
  }
825
- function Ot() {
616
+ function Tt() {
826
617
  try {
827
- ye();
618
+ je();
828
619
  } catch (e) {
829
- Ge(e, yt);
620
+ an(e, gt);
830
621
  }
831
622
  }
832
- var kt = null;
833
- function At(e) {
623
+ var Et = null;
624
+ function Dt(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) && (Et = /* @__PURE__ */ new Set(), Zn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Tn(r), Et?.size > 0)) {
630
+ Mt.clear();
631
+ for (let e of Et) {
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;) Et.has(n) && (Et.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
+ Et.clear();
850
641
  }
851
642
  }
852
- kt = null;
643
+ Et = null;
853
644
  }
854
645
  }
855
- function jt(e) {
856
- H.schedule(e);
646
+ function Ot(e) {
647
+ V.schedule(e);
857
648
  }
858
- function Mt(e, t) {
649
+ function kt(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;) kt(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 At(e) {
656
+ z(e, S);
657
+ for (var t = e.first; t !== null;) At(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 jt = /* @__PURE__ */ new Set(), Mt = /* @__PURE__ */ new Map(), Nt = !1;
662
+ function Pt(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
- function U(e, t) {
883
- let n = Lt(e, t);
673
+ function H(e, t) {
674
+ let n = Pt(e, t);
884
675
  return Rn(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 Ft(e, t = !1, n = !0) {
679
+ let r = Pt(e);
680
+ return t || (r.equals = Te), r;
890
681
  }
891
- 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);
682
+ function U(e, t, n = !1) {
683
+ return G !== null && (!Fn || G.f & 131072) && He() && G.f & 4325394 && (Ln === null || !Ln.has(e)) && Ie(), It(e, n ? Bt(t) : t, bt);
893
684
  }
894
- function zt(e, t, n = null) {
685
+ function It(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
+ Nn ? Mt.set(e, t) : Mt.has(e) || Mt.set(e, e.v);
688
+ var r = Ct.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), ht === 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(), zt(e, C, n), He() && q !== null && q.f & 1024 && !(q.f & 96) && (X === null ? zn([e]) : X.push(e)), !r.is_fork && jt.size > 0 && !Nt && Lt();
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 Lt() {
698
+ Nt = !1;
699
+ for (let e of jt) {
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
+ jt.clear();
919
710
  }
920
- function Vt(e) {
921
- W(e, e.v + 1);
711
+ function Rt(e) {
712
+ U(e, e.v + 1);
922
713
  }
923
- function Ht(e, t, n) {
714
+ function zt(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
- if (!(!i && s === J)) {
928
- var l = (c & w) === 0;
929
- if (l && B(s, t), c & 131072) Pt.add(s);
718
+ if (!(!i && s === q)) {
719
+ var l = (c & C) === 0;
720
+ if (l && z(s, t), c & 131072) jt.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
+ ht?.delete(u), c & 65536 || (c & 512 && (q === null || !(q.f & 2097152)) && (s.f |= oe), zt(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 && Et !== null && Et.add(d), n === null ? Ot(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 Bt(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__ */ H(0), a = null, o = Hn, c = (e) => {
736
+ if (Hn === o) return e();
737
+ var t = G, n = Hn;
738
+ K(null), Un(o);
948
739
  var r = e();
949
- return q(t), Wn(n), r;
740
+ return K(t), Un(n), r;
950
741
  };
951
- return r && n.set("length", /* @__PURE__ */ U(e.length, a)), new Proxy(e, {
742
+ return r && n.set("length", /* @__PURE__ */ H(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
- var e = /* @__PURE__ */ U(r.value, a);
747
+ var e = /* @__PURE__ */ H(r.value, a);
957
748
  return n.set(t, e), e;
958
- }) : W(i, r.value, !0), !0;
749
+ }) : U(i, r.value, !0), !0;
959
750
  },
960
751
  deleteProperty(e, t) {
961
752
  var r = n.get(t);
962
753
  if (r === void 0) {
963
754
  if (t in e) {
964
- let e = c(() => /* @__PURE__ */ U(s, a));
965
- n.set(t, e), Vt(i);
755
+ let e = c(() => /* @__PURE__ */ H(s, a));
756
+ n.set(t, e), Rt(i);
966
757
  }
967
- } else W(r, s), Vt(i);
758
+ } else U(r, s), Rt(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__ */ H(Bt(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,29 +784,29 @@ 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 || q !== null && (!i || h(e, t)?.writable)) && (r === void 0 && (r = c(() => /* @__PURE__ */ H(i ? Bt(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;
1002
793
  if (r && t === "length") for (var f = o; f < u.v; f += 1) {
1003
794
  var p = n.get(f + "");
1004
- p === void 0 ? f in e && (p = c(() => /* @__PURE__ */ U(s, a)), n.set(f + "", p)) : W(p, s);
795
+ p === void 0 ? f in e && (p = c(() => /* @__PURE__ */ H(s, a)), n.set(f + "", p)) : U(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__ */ H(void 0, a)), U(u, Bt(o)), n.set(t, u));
1007
798
  else {
1008
799
  d = u.v !== s;
1009
- var m = c(() => Ut(o));
1010
- W(u, m);
800
+ var m = c(() => Bt(o));
801
+ U(u, m);
1011
802
  }
1012
803
  var g = Reflect.getOwnPropertyDescriptor(e, t);
1013
804
  if (g?.set && g.set.call(l, o), !d) {
1014
805
  if (r && typeof t == "string") {
1015
806
  var _ = n.get("length"), v = Number(t);
1016
- Number.isInteger(v) && v >= _.v && W(_, v + 1);
807
+ Number.isInteger(v) && v >= _.v && U(_, v + 1);
1017
808
  }
1018
- Vt(i);
809
+ Rt(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 Vt, Ht, Ut, Wt;
828
+ function Gt() {
829
+ if (Vt === void 0) {
830
+ Vt = window, Ht = /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
+ Ut = h(t, "firstChild").get, Wt = 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 Kt(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 qt(e) {
840
+ return Ut.call(e);
1050
841
  }
1051
842
  /*@__NO_SIDE_EFFECTS__*/
1052
- function Zt(e) {
1053
- return qt.call(e);
843
+ function Jt(e) {
844
+ return Wt.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 Yt(e, t) {
847
+ if (!N) return /* @__PURE__ */ qt(e);
848
+ var n = /* @__PURE__ */ qt(F);
849
+ if (n === null) n = F.appendChild(Kt());
1059
850
  else if (t && n.nodeType !== 3) {
1060
- var r = Yt();
1061
- return n?.before(r), L(r), r;
851
+ var r = Kt();
852
+ return n?.before(r), I(r), r;
1062
853
  }
1063
- return t && an(n), L(n), n;
854
+ return t && nn(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 Xt(e, t = !1) {
857
+ if (!N) {
858
+ var n = /* @__PURE__ */ qt(e);
859
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Jt(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 = Kt();
864
+ return F?.before(r), I(r), r;
1074
865
  }
1075
- an(I);
866
+ nn(F);
1076
867
  }
1077
- return I;
868
+ return F;
869
+ }
870
+ function Zt(e, t = !1) {
871
+ if (!N) return /* @__PURE__ */ qt(e);
872
+ var n = Yt(e, t);
873
+ return be(e), n;
1078
874
  }
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;
875
+ function Qt(e, t = 1, n = !1) {
876
+ let r = N ? F : e;
877
+ for (var i; t--;) i = r, r = /* @__PURE__ */ Jt(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 = Kt();
882
+ return r === null ? i?.after(a) : r.before(a), I(a), a;
1087
883
  }
1088
- an(r);
884
+ nn(r);
1089
885
  }
1090
- return L(r), r;
886
+ return I(r), r;
1091
887
  }
1092
- function tn(e) {
888
+ function $t(e) {
1093
889
  e.textContent = "";
1094
890
  }
1095
- function nn() {
891
+ function en() {
1096
892
  return !1;
1097
893
  }
1098
- function rn(e, t, n) {
894
+ function tn(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 nn(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 rn(e) {
903
+ var t = q;
904
+ if (t === null) return G.f |= ce, e;
905
+ if (!(t.f & 32768) && !(t.f & 4)) throw e;
906
+ an(e, t);
907
+ }
908
+ function an(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
926
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/effects.js
1108
927
  function on(e) {
1109
- J === null && (K === null && ve(e), _e()), Nn && ge(e);
928
+ q === null && (G === null && Ae(e), ke()), Nn && Oe(e);
1110
929
  }
1111
930
  function sn(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
934
  function cn(e, t) {
1116
- var n = J;
1117
- n !== null && n.f & 8192 && (e |= T);
935
+ var n = q;
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,68 +950,68 @@ 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) yt === null ? Ct.ensure().schedule(r) : yt.push(r);
1137
956
  else if (t !== null) {
1138
957
  try {
1139
958
  Zn(r);
1140
959
  } catch (e) {
1141
- throw G(r), e;
960
+ throw W(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))) {
1146
- var a = K;
964
+ if (i !== null && (i.parent = n, n !== null && sn(i, n), G !== null && G.f & 2 && !(e & 64))) {
965
+ var a = G;
1147
966
  (a.effects ??= []).push(i);
1148
967
  }
1149
968
  return r;
1150
969
  }
1151
970
  function ln() {
1152
- return K !== null && !Fn;
971
+ return G !== null && !Fn;
1153
972
  }
1154
973
  function un(e) {
1155
974
  let t = cn(8, null);
1156
- return B(t, C), t.teardown = e, t;
975
+ return z(t, S), t.teardown = e, t;
1157
976
  }
1158
977
  function dn(e) {
1159
978
  on("$effect");
1160
- var t = J.f;
1161
- if (!K && t & 32 && R !== null && !R.i) {
979
+ var t = q.f;
980
+ if (!G && t & 32 && R !== null && !R.i) {
1162
981
  var n = R;
1163
982
  (n.e ??= []).push(e);
1164
983
  } else return fn(e);
1165
984
  }
1166
985
  function fn(e) {
1167
- return cn(4 | ie, e);
986
+ return cn(4 | ae, e);
1168
987
  }
1169
988
  function pn(e) {
1170
- Et.ensure();
1171
- let t = cn(64 | O, e);
989
+ Ct.ensure();
990
+ let t = cn(64 | D, e);
1172
991
  return () => {
1173
- G(t);
992
+ W(t);
1174
993
  };
1175
994
  }
1176
995
  function mn(e) {
1177
- Et.ensure();
1178
- let t = cn(64 | O, e);
996
+ Ct.ensure();
997
+ let t = cn(64 | D, e);
1179
998
  return (e = {}) => new Promise((n) => {
1180
999
  e.outro ? En(t, () => {
1181
- G(t), n(void 0);
1182
- }) : (G(t), n(void 0));
1000
+ W(t), n(void 0);
1001
+ }) : (W(t), n(void 0));
1183
1002
  });
1184
1003
  }
1185
1004
  function hn(e) {
1186
1005
  return cn(4, e);
1187
1006
  }
1188
1007
  function gn(e) {
1189
- return cn(A | O, e);
1008
+ return cn(k | D, e);
1190
1009
  }
1191
1010
  function _n(e, t = 0) {
1192
1011
  return cn(8 | t, e);
1193
1012
  }
1194
1013
  function vn(e, t = [], n = [], r = []) {
1195
- rt(r, t, n, (t) => {
1014
+ et(r, t, n, (t) => {
1196
1015
  cn(8, () => {
1197
1016
  e(...t.map(Z));
1198
1017
  });
@@ -1202,17 +1021,19 @@ function yn(e, t = 0) {
1202
1021
  return cn(16 | t, e);
1203
1022
  }
1204
1023
  function bn(e) {
1205
- return cn(32 | O, e);
1024
+ return cn(32 | D, e);
1206
1025
  }
1207
1026
  function xn(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 = Nn, r = G;
1030
+ Pn(!0), K(null);
1212
1031
  try {
1213
1032
  t.call(null);
1033
+ } catch (t) {
1034
+ an(t, e.parent);
1214
1035
  } finally {
1215
- Pn(e), q(n);
1036
+ Pn(n), K(r);
1216
1037
  }
1217
1038
  }
1218
1039
  }
@@ -1220,31 +1041,31 @@ function Sn(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
- n.f & 64 ? n.parent = null : G(n, t), n = r;
1048
+ n.f & 64 ? n.parent = null : W(n, t), n = r;
1228
1049
  }
1229
1050
  }
1230
1051
  function Cn(e) {
1231
1052
  for (var t = e.first; t !== null;) {
1232
1053
  var n = t.next;
1233
- t.f & 32 || G(t), t = n;
1054
+ t.f & 32 || W(t), t = n;
1234
1055
  }
1235
1056
  }
1236
- function G(e, t = !0) {
1057
+ function W(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 && (wn(e.nodes.start, e.nodes.end), n = !0), e.f |= ie, Sn(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
+ xn(e), e.f ^= ie, e.f |= T;
1242
1063
  var i = e.parent;
1243
1064
  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;
1244
1065
  }
1245
1066
  function wn(e, t) {
1246
1067
  for (; e !== null;) {
1247
- var n = e === t ? null : /* @__PURE__ */ Zt(e);
1068
+ var n = e === t ? null : /* @__PURE__ */ Jt(e);
1248
1069
  e.remove(), e = n;
1249
1070
  }
1250
1071
  }
@@ -1254,9 +1075,9 @@ function Tn(e) {
1254
1075
  }
1255
1076
  function En(e, t, n = !0) {
1256
1077
  var r = [];
1257
- Dn(e, r, !0);
1078
+ e.f |= 256, Dn(e, r, !0);
1258
1079
  var i = () => {
1259
- n && G(e), t && t();
1080
+ n && W(e), t && t();
1260
1081
  }, a = r.length;
1261
1082
  if (a > 0) {
1262
1083
  var o = () => --a || i();
@@ -1265,7 +1086,7 @@ function En(e, t, n = !0) {
1265
1086
  }
1266
1087
  function Dn(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;) {
@@ -1279,11 +1100,11 @@ function Dn(e, t, n) {
1279
1100
  }
1280
1101
  }
1281
1102
  function On(e) {
1282
- kn(e, !0);
1103
+ e.f &= -257, kn(e, !0);
1283
1104
  }
1284
1105
  function kn(e, t) {
1285
- if (e.f & 8192) {
1286
- e.f ^= T, e.f & 1024 || (B(e, w), Et.ensure().schedule(e));
1106
+ if (!(e.f & 256) && e.f & 8192) {
1107
+ e.f ^= w, e.f & 1024 || (z(e, C), Ct.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
1110
  kn(n, i ? t : !1), n = r;
@@ -1294,87 +1115,91 @@ function kn(e, t) {
1294
1115
  }
1295
1116
  function An(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__ */ Jt(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
1123
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/legacy.js
1303
1124
  var jn = null, Mn = !1, Nn = !1;
1304
1125
  function Pn(e) {
1305
1126
  Nn = e;
1306
1127
  }
1307
- var K = null, Fn = !1;
1308
- function q(e) {
1309
- K = e;
1128
+ var G = null, Fn = !1;
1129
+ function K(e) {
1130
+ G = e;
1310
1131
  }
1311
- var J = null;
1132
+ var q = null;
1312
1133
  function In(e) {
1313
- J = e;
1134
+ q = e;
1314
1135
  }
1315
1136
  var Ln = null;
1316
1137
  function Rn(e) {
1317
- K !== null && (Ln ??= /* @__PURE__ */ new Set()).add(e);
1138
+ G !== null && (Ln ??= /* @__PURE__ */ new Set()).add(e);
1318
1139
  }
1319
- var Y = null, X = 0, zn = null;
1320
- function Bn(e) {
1321
- zn = e;
1140
+ var J = null, Y = 0, X = null;
1141
+ function zn(e) {
1142
+ X = 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 && ht === 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
1165
  if (r !== null && !(Ln !== null && Ln.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), Ot(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 = J, n = Y, r = X, i = G, a = Ln, o = R, s = Fn, c = Hn, l = e.f;
1172
+ J = null, Y = 0, X = null, G = l & 96 ? null : e, Ln = null, Re(e.ctx), Fn = !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() && X !== null && !Fn && f !== null && !(e.f & 6146)) for (var p = 0; p < X.length; p++) Kn(X[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
+ X !== null && (r === null ? r = X : r.push(...X));
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), rn(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, J = t, Y = n, X = r, G = i, Ln = a, Re(o), Fn = s, Hn = c;
1376
1191
  }
1377
1192
  }
1193
+ function Jn(e) {
1194
+ var t = e.deps, n = V?.is_fork;
1195
+ if (J !== null) {
1196
+ var r;
1197
+ if (n || Xn(e, Y), t !== null && Y > 0) for (t.length = Y + J.length, r = 0; r < J.length; r++) t[Y + r] = J[r];
1198
+ else e.deps = t = J;
1199
+ if (ln() && e.f & 512) for (r = Y; r < t.length; r++) (t[r].reactions ??= []).push(e);
1200
+ } else !n && t !== null && Y < t.length && (Xn(e, Y), t.length = Y);
1201
+ return t;
1202
+ }
1378
1203
  function Yn(e, t) {
1379
1204
  let n = t.reactions;
1380
1205
  if (n !== null) {
@@ -1384,11 +1209,11 @@ function Yn(e, t) {
1384
1209
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
1385
1210
  }
1386
1211
  }
1387
- if (n === null && t.f & 2 && (Y === null || !d.call(Y, t))) {
1212
+ if (n === null && t.f & 2 && (J === null || !d.call(J, 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,50 +1223,50 @@ 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 = q, r = Mn;
1228
+ q = e, Mn = !(t & 96);
1404
1229
  try {
1405
1230
  t & 16777232 ? Cn(e) : Sn(e), xn(e);
1406
- var i = Jn(e);
1407
- e.teardown = typeof i == "function" ? i : null, e.wv = Vn;
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
+ Mn = r, q = 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))) {
1416
- 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));
1240
+ if (jn?.add(e), G !== null && !Fn && !(q !== null && q.f & 16384) && (Ln === null || !Ln.has(e))) {
1241
+ var n = G.deps;
1242
+ if (G.f & 2097152) e.rv < Vn && (e.rv = Vn, J === null && n !== null && n[Y] === e ? Y++ : J === null ? J = [e] : J.push(e));
1418
1243
  else {
1419
- K.deps ??= [], d.call(K.deps, e) || K.deps.push(e);
1244
+ G.deps ??= [], d.call(G.deps, e) || G.deps.push(e);
1420
1245
  var r = e.reactions;
1421
- r === null ? e.reactions = [K] : d.call(r, K) || r.push(K);
1246
+ r === null ? e.reactions = [G] : d.call(r, G) || r.push(G);
1422
1247
  }
1423
1248
  }
1424
- if (Nn && Ft.has(e)) return Ft.get(e);
1249
+ if (Nn && Mt.has(e)) return Mt.get(e);
1425
1250
  if (t) {
1426
1251
  var i = e;
1427
1252
  if (Nn) {
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)), Mt.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) && !Fn && G !== null && (Mn || !!(G.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 (ht?.has(e)) return ht.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 (Mt.has(t) || t.f & 2 && $n(t)) return !0;
1445
1270
  return !1;
1446
1271
  }
1447
1272
  function er(e) {
@@ -1454,10 +1279,10 @@ function er(e) {
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;
@@ -1513,8 +1338,8 @@ function ur(e) {
1513
1338
  return a || n;
1514
1339
  }
1515
1340
  });
1516
- var u = K, d = J;
1517
- q(null), In(null);
1341
+ var u = G, d = q;
1342
+ K(null), In(null);
1518
1343
  try {
1519
1344
  for (var f, p = []; a !== null && a !== t;) {
1520
1345
  try {
@@ -1533,24 +1358,24 @@ 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, K(u), In(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 = tn("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
- var n = J;
1378
+ var n = q;
1554
1379
  n.nodes === null && (n.nodes = {
1555
1380
  start: e,
1556
1381
  end: t,
@@ -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__ */ qt(i)));
1392
+ var t = r || Ht ? document.importNode(i, !0) : i.cloneNode(!0);
1568
1393
  if (n) {
1569
- var o = /* @__PURE__ */ Xt(t), s = t.lastChild;
1394
+ var o = /* @__PURE__ */ qt(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 = Kt();
1578
1403
  return e.append(t, n), mr(t, n), e;
1579
1404
  }
1580
1405
  function _r(e, t) {
1581
- if (P) {
1582
- var n = J;
1583
- (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = I), ke();
1406
+ if (N) {
1407
+ var n = q;
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 = Pt(0), r;
1422
+ return () => {
1423
+ ln() && (Z(n), _n(() => (t === 0 && (r = er(() => e(() => Rt(n)))), t += 1, () => {
1424
+ Ge(() => {
1425
+ --t, t === 0 && (r?.(), r = void 0, Rt(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 = Pt(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 = q;
1461
+ t.b = this, t.f |= 128, n(e);
1462
+ }, this.parent = q.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = yn(() => {
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 = bn(() => 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 = bn(() => {
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 && En(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
+ an(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 = bn(() => e(this.#e)), Ge(() => {
1514
+ var e = this.#c = document.createDocumentFragment(), t = Kt(), n = !1;
1515
+ if (e.append(t), this.#a = this.#S(() => {
1516
+ try {
1517
+ return bn(() => this.#r(t));
1518
+ } catch (e) {
1519
+ try {
1520
+ this.error(e), n = !0;
1521
+ } catch (e) {
1522
+ an(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, En(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 = bn(() => {
1538
+ this.#r(this.#e);
1539
+ }), this.#u > 0) {
1540
+ var e = this.#c = document.createDocumentFragment();
1541
+ An(this.#a, e);
1542
+ let t = this.#n.pending;
1543
+ this.#o = bn(() => 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 = q, n = G, r = R;
1563
+ In(this.#i), K(this.#i), Re(this.#i.ctx);
1564
+ try {
1565
+ return Ct.ensure(), e();
1566
+ } finally {
1567
+ In(t), K(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 && En(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 && It(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 &&= (W(this.#a), null), this.#o &&= (W(this.#o), null), this.#s &&= (W(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 bn(() => {
1600
+ var r = q;
1601
+ r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
1602
+ });
1603
+ } catch (e) {
1604
+ return an(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
+ an(e, this.#i && this.#i.parent);
1614
+ return;
1615
+ }
1616
+ typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => an(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
+ Gt(), 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__ */ qt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ Jt(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(), Gt(), $t(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();
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
+ Gt();
1622
1649
  var l = void 0, u = mn(() => {
1623
- var s = n ?? t.appendChild(Yt());
1624
- tt(s, { pending: () => {} }, (t) => {
1625
- Re({});
1650
+ var s = n ?? t.appendChild(Kt());
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 && (q.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();
@@ -1680,18 +1707,18 @@ var Dr = class {
1680
1707
  for (let [t, n] of this.#e) {
1681
1708
  if (this.#e.delete(t), t === e) break;
1682
1709
  let r = this.#n.get(n);
1683
- r && (G(r.effect), this.#n.delete(n));
1710
+ r && (W(r.effect), this.#n.delete(n));
1684
1711
  }
1685
1712
  for (let [e, r] of this.#t) {
1686
1713
  if (e === t || this.#r.has(e)) continue;
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
+ An(r, t), t.append(Kt()), this.#n.set(e, {
1691
1718
  effect: r,
1692
1719
  fragment: t
1693
1720
  });
1694
- } else G(r);
1721
+ } else W(r);
1695
1722
  this.#r.delete(e), this.#t.delete(e);
1696
1723
  };
1697
1724
  this.#i || !n ? (this.#r.add(e), En(r, i, !1)) : i();
@@ -1701,13 +1728,13 @@ var Dr = class {
1701
1728
  #o = (e) => {
1702
1729
  this.#e.delete(e);
1703
1730
  let t = Array.from(this.#e.values());
1704
- for (let [e, n] of this.#n) t.includes(e) || (G(n.effect), this.#n.delete(e));
1731
+ for (let [e, n] of this.#n) t.includes(e) || (W(n.effect), this.#n.delete(e));
1705
1732
  };
1706
1733
  ensure(e, t) {
1707
- var n = H, r = nn();
1734
+ var n = V, r = en();
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 = Kt();
1711
1738
  i.append(a), this.#n.set(e, {
1712
1739
  effect: bn(() => t(a)),
1713
1740
  fragment: i
@@ -1718,21 +1745,21 @@ var Dr = class {
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
  }
@@ -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
1780
  En(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
+ $t(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, An(a, document.createDocumentFragment())) : W(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__ */ qt(c)) : c.appendChild(Kt());
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)) : On(u) : En(u, () => {
1799
1826
  u = null;
1800
1827
  })));
1801
1828
  }
@@ -1807,19 +1834,19 @@ function Mr(e, t, n, r, i, a = null) {
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 = en(), 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 && It(x.v, ee), x.i && It(x.i, y), v && f.unskip_effect(x.e)) : (x = zr(s, h ? o : Fr ??= Kt(), 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 = bn(() => a(o)) : (u = bn(() => a(Fr ??= Kt())), 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,66 +1854,66 @@ 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
1868
  if (_.f & 8192 && (On(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) {
1842
- if (_.f ^= k, _ === c) Ir(_, null, n);
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 ? Pt(n) : /* @__PURE__ */ Ft(n, !1, !1) : null, l = o & 2 ? Pt(i) : null;
1890
1917
  return {
1891
1918
  v: c,
1892
1919
  i: l,
@@ -1895,58 +1922,58 @@ function Fr(e, t, n, r, i, a, o, s) {
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__ */ Jt(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) {
1936
+ //#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/css.js
1937
+ function Hr(e, t) {
1911
1938
  hn(() => {
1912
- e = J?.parent?.nodes?.start ?? e;
1939
+ e = q?.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 = tn("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) {
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) {
1923
1950
  hn(() => {
1924
1951
  var r = er(() => t(e, n?.()) || {});
1925
1952
  if (n && r?.update) {
1926
1953
  var i = !1, a = {};
1927
1954
  _n(() => {
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) {
2028
- var r = K, i = J;
2029
- let a = P;
2030
- P && F(!1), q(null), In(null);
2054
+ function ti(e, t, n) {
2055
+ var r = G, i = q;
2056
+ let a = N;
2057
+ N && P(!1), K(null), In(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
+ K(r), In(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) {
2060
- var i = R.r, a = J;
2086
+ function oi(e = Ve(), t, n, r) {
2087
+ var i = R.r, a = q;
2061
2088
  return hn(() => {
2062
2089
  var o, s;
2063
2090
  return _n(() => {
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 = q;
2107
2134
  return (function(e, t) {
2108
2135
  if (arguments.length > 0) {
2109
- let n = t ? Z(y) : i && a ? Ut(e) : e;
2110
- return W(y, n), v = !0, s !== void 0 && (s = n), e;
2136
+ let n = t ? Z(y) : i && a ? Bt(e) : e;
2137
+ return U(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 Nn && 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__ */ Ft(n, !1, !1);
2126
2153
  return t.set(e, r), r;
2127
2154
  };
2128
2155
  let r = new Proxy({
@@ -2136,10 +2163,10 @@ var ai = class {
2136
2163
  return r === M || (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2137
2164
  },
2138
2165
  set(e, r, i) {
2139
- return W(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2166
+ return U(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) && wt(), 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 = tn("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: {
@@ -2235,7 +2262,7 @@ typeof HTMLElement == "function" && (oi = class extends HTMLElement {
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,39 +3120,7 @@ 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);
3097
- //#endregion
3098
- //#region ../players-shared/src/ui/zoom-compensation.ts
3099
- var Da = {
3100
- maxZoom: 2,
3101
- minCompensation: .25
3102
- };
3103
- function Oa(e, t) {
3104
- let n = e / t;
3105
- return Number.isFinite(n) && n > 0 ? n : 1;
3106
- }
3107
- function ka(e, t, n) {
3108
- return Math.max(n, Math.min(1, t / e));
3109
- }
3110
- //#endregion
3111
- //#region ../players-shared/src/ui/use-zoom-compensation.svelte.ts
3112
- function Aa(e) {
3113
- let { maxZoom: t, minCompensation: n } = e, r = /* @__PURE__ */ U(1), i = /* @__PURE__ */ U(1);
3114
- function a() {
3115
- let e = Oa(window.outerWidth, window.innerWidth);
3116
- W(i, e, !0), W(r, ka(e, t, n), !0);
3117
- }
3118
- return dn(() => {
3119
- if (!(typeof window > "u")) return a(), window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
3120
- }), {
3121
- get current() {
3122
- return Z(r);
3123
- },
3124
- get zoom() {
3125
- return Z(i);
3126
- }
3127
- };
3128
- }
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);
3129
3124
  //#endregion
3130
3125
  //#region ../players-shared/dist/i18n/language-tags.js
3131
3126
  function ja(e) {
@@ -3211,7 +3206,9 @@ var Pa = {
3211
3206
  resizePassageAndMediaA11y: "Resize passage and media panels",
3212
3207
  assessment: {
3213
3208
  sectionPosition: "Section {position} of {total}",
3214
- noSections: "No sections"
3209
+ noSections: "No sections",
3210
+ loadFailed: "The assessment could not be loaded. Try again.",
3211
+ restoreFailed: "Your saved answers for this section could not be restored. Try again."
3215
3212
  },
3216
3213
  formative: {
3217
3214
  checkAnswer: "Check answer",
@@ -3886,13 +3883,13 @@ function qa(e) {
3886
3883
  //#region tool-tts-inline.svelte
3887
3884
  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 = {
3888
3885
  hash: "svelte-18mzc0g",
3889
- 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 }"
3886
+ 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 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;gap:0.5rem;}.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. */.pie-tool-tts-inline__trigger-zoom.svelte-18mzc0g {display:inline-flex;}.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;gap:0.25rem;box-sizing:border-box;min-height:var(--pie-tts-controls-row-height, 2.875rem);padding:0.25rem 0.5rem;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;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:0.25rem;}.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:3rem; /* Figma: 48px */justify-content:center;gap:0.375rem;\n /* The raised surface is certified with control text and focus rings.\n --pie-white remains the fallback for hosts with no surface token. */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:7.5rem; /* ~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: the raised surface has little contrast margin\n in `valentine`. 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 /* Keep trigger sizes consistent with the calculator at this breakpoint. */.pie-tool-tts-inline__control.svelte-18mzc0g:not(.pie-tool-tts-inline__trigger) {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
3887
  };
3891
3888
  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\"]")) {
3889
+ ze(s, !0), Hr(o, no);
3890
+ 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 = () => {
3891
+ if (!(!m || ee)) {
3892
+ if (ee = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
3896
3893
  let e = document.createElement("link");
3897
3894
  e.rel = "stylesheet", e.href = "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap", document.head.appendChild(e);
3898
3895
  }
@@ -3908,12 +3905,12 @@ function ro(o, s) {
3908
3905
  }
3909
3906
  }
3910
3907
  }
3911
- }, S = "__pieFaTtsShadowInstalled", ee = (e) => {
3908
+ }, x = "__pieFaTtsShadowInstalled", te = (e) => {
3912
3909
  let t = e.getRootNode();
3913
3910
  if (!(t instanceof ShadowRoot)) return;
3914
3911
  let n = t;
3915
- if (n[S]) return;
3916
- n[S] = !0;
3912
+ if (n[x]) return;
3913
+ n[x] = !0;
3917
3914
  let r = /* @__PURE__ */ new Set(), i = (e) => {
3918
3915
  if (!e || r.has(e)) return;
3919
3916
  r.add(e);
@@ -3921,8 +3918,8 @@ function ro(o, s) {
3921
3918
  n.rel = "stylesheet", n.href = e, t.appendChild(n);
3922
3919
  }, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => y.test(e.href));
3923
3920
  for (let e of a) i(e.href);
3924
- }, C = (e) => {
3925
- x(), ee(e);
3921
+ }, S = (e) => {
3922
+ b(), te(e);
3926
3923
  let t = () => {
3927
3924
  for (let t of e.querySelectorAll("i.fa-light")) t.classList.remove("fa-light"), t.classList.add("fa-solid");
3928
3925
  };
@@ -3936,7 +3933,7 @@ function ro(o, s) {
3936
3933
  }), { destroy() {
3937
3934
  n.disconnect();
3938
3935
  } };
3939
- }, w = (e, t) => {
3936
+ }, C = (e, t) => {
3940
3937
  let n = t, r = () => {
3941
3938
  let t = e.querySelector("button");
3942
3939
  if (t) for (let [e, r] of Object.entries(n)) r == null ? t.removeAttribute(e) : t.setAttribute(e, r);
@@ -3954,61 +3951,61 @@ function ro(o, s) {
3954
3951
  i.disconnect();
3955
3952
  }
3956
3953
  };
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() {
3954
+ }, ne = (e) => (b(), te(e), {}), w = /* @__PURE__ */ H(void 0), T = /* @__PURE__ */ H(void 0), re = /* @__PURE__ */ H(null), ie = /* @__PURE__ */ B(() => Z(re)?.ndsIcons === !0), E = /* @__PURE__ */ B(() => qa(Z(re))), D = /* @__PURE__ */ H(null), ae = /* @__PURE__ */ H(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__ */ H(!1), ce = /* @__PURE__ */ H(!1), A = /* @__PURE__ */ H(!1), j = /* @__PURE__ */ H(!1), M = /* @__PURE__ */ H(""), le = /* @__PURE__ */ H(null), ue = /* @__PURE__ */ H(null), de = /* @__PURE__ */ H(!1), fe = /* @__PURE__ */ H(!1), pe = /* @__PURE__ */ H(!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`;
3955
+ function xe() {
3959
3956
  if (!m) return null;
3960
3957
  let e = window[h];
3961
3958
  return typeof e == "string" ? e : null;
3962
3959
  }
3963
- function we() {
3964
- return Ce() === be;
3960
+ function L() {
3961
+ return xe() === F;
3965
3962
  }
3966
- function Te(e, t) {
3963
+ function Se(e, t) {
3967
3964
  m && window.dispatchEvent(new CustomEvent(g, { detail: {
3968
3965
  ownerId: e,
3969
3966
  previousOwnerId: t
3970
3967
  } }));
3971
3968
  }
3972
- function Ee() {
3969
+ function Ce() {
3973
3970
  if (!m) return;
3974
- let e = Ce();
3975
- e !== be && (window[h] = be, Te(be, e));
3971
+ let e = xe();
3972
+ e !== F && (window[h] = F, Se(F, e));
3976
3973
  }
3977
- function De() {
3978
- m && Ce() === be && (delete window[h], Te(null, be));
3974
+ function we() {
3975
+ m && xe() === F && (delete window[h], Se(null, F));
3979
3976
  }
3980
- function Oe(e = "", t = !1) {
3981
- W(de, !1), W(j, !1), W(M, !1), W(A, t, !0), W(N, e, !0);
3977
+ function Te(e = "", t = !1) {
3978
+ U(fe, !1), U(A, !1), U(j, !1), U(k, t, !0), U(M, e, !0);
3982
3979
  }
3983
- function P(e) {
3980
+ function Ee(e) {
3984
3981
  return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
3985
3982
  }
3986
- function F(e) {
3983
+ function De(e) {
3987
3984
  return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
3988
3985
  }
3989
- async function I(e, t) {
3986
+ async function Oe(e, t) {
3990
3987
  if (typeof e.setPlaybackRate == "function") {
3991
3988
  await e.setPlaybackRate(t);
3992
3989
  return;
3993
3990
  }
3994
3991
  await e.updateSettings({ rate: t });
3995
3992
  }
3996
- function L() {
3997
- if (!Z(T) || !Z(E)) return !1;
3998
- let e = Z(T).getRootNode();
3993
+ function ke() {
3994
+ if (!Z(w) || !Z(T)) return !1;
3995
+ let e = Z(w).getRootNode();
3999
3996
  if (!(e instanceof ShadowRoot)) return !1;
4000
3997
  let t = e.activeElement;
4001
- return !!(t && Z(E).contains(t));
3998
+ return !!(t && Z(T).contains(t));
4002
3999
  }
4003
- function ke() {
4004
- if (!Z(E)) return !1;
4005
- let e = Z(E).getRootNode();
4000
+ function Ae() {
4001
+ if (!Z(T)) return !1;
4002
+ let e = Z(T).getRootNode();
4006
4003
  if (!(e instanceof ShadowRoot)) return !1;
4007
4004
  let t = e.activeElement;
4008
- return !t || !Z(E).contains(t) ? !1 : t.matches(R);
4005
+ return !t || !Z(T).contains(t) ? !1 : t.matches(Le);
4009
4006
  }
4010
4007
  function je() {
4011
- let e = Z(E)?.querySelector(Le);
4008
+ let e = Z(T)?.querySelector(R);
4012
4009
  if (e && !e.disabled) {
4013
4010
  e.focus();
4014
4011
  return;
@@ -4016,59 +4013,59 @@ function ro(o, s) {
4016
4013
  Me(!0);
4017
4014
  }
4018
4015
  function Me(e) {
4019
- if (!Z(T) || !e) return;
4020
- let t = Z(T).getRootNode();
4016
+ if (!Z(w) || !e) return;
4017
+ let t = Z(w).getRootNode();
4021
4018
  if (!(t instanceof ShadowRoot)) return;
4022
4019
  let n = t.querySelector(".pie-tool-tts-inline__trigger");
4023
4020
  (n?.querySelector("button") ?? n)?.focus();
4024
4021
  }
4025
- function Ne(e = Z(D).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
4026
- if (!Z(fe) && !(!Z(A) && !we())) {
4027
- W(fe, !0);
4022
+ function Ne(e = Z(E).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
4023
+ if (!Z(pe) && !(!Z(k) && !L())) {
4024
+ U(pe, !0);
4028
4025
  try {
4029
- let n = L();
4030
- we() && De(), Oe(e), Ke(), t && queueMicrotask(() => {
4026
+ let n = ke();
4027
+ L() && we(), Te(e), qe(), t && queueMicrotask(() => {
4031
4028
  Me(n);
4032
4029
  });
4033
4030
  } finally {
4034
- W(fe, !1);
4031
+ U(pe, !1);
4035
4032
  }
4036
4033
  }
4037
4034
  }
4038
4035
  dn(() => {
4039
- if (Z(T)) return r(Z(T), (e) => {
4040
- W(ne, e, !0);
4036
+ if (Z(w)) return r(Z(w), (e) => {
4037
+ U(re, e, !0);
4041
4038
  });
4042
4039
  }), 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);
4040
+ if (!Z(w)) return;
4041
+ let e = i(Z(w), (e) => {
4042
+ U(D, e, !0);
4043
+ }), t = n(Z(w), (e) => {
4044
+ U(ae, e, !0);
4048
4045
  });
4049
4046
  return () => {
4050
4047
  t(), e();
4051
4048
  };
4052
4049
  }), dn(() => {
4053
- if (!Z(k)) return;
4050
+ if (!Z(O)) return;
4054
4051
  let e = (e) => {
4055
- if (!Z(A) || !we()) {
4056
- W(j, !1), W(M, !1);
4052
+ if (!Z(k) || !L()) {
4053
+ U(A, !1), U(j, !1);
4057
4054
  return;
4058
4055
  }
4059
- W(j, e === "playing" || e === "paused", !0), W(M, e === "paused");
4056
+ U(A, e === "playing" || e === "paused", !0), U(j, e === "paused");
4060
4057
  }, 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);
4058
+ let n = String(t), r = Ae();
4059
+ e(n), n === "playing" && (Z(fe) && U(M, Z(E).t("tools.textToSpeech.inline.started"), !0), U(fe, !1)), (n === "error" || n === "idle") && U(fe, !1), r && !Z(A) && queueMicrotask(je);
4063
4060
  };
4064
- return Z(k).onStateChange(xe, t), e(Z(k).getState()), () => {
4065
- Z(k).offStateChange(xe, t);
4061
+ return Z(O).onStateChange(I, t), e(Z(O).getState()), () => {
4062
+ Z(O).offStateChange(I, t);
4066
4063
  };
4067
4064
  }), dn(() => {
4068
4065
  if (!m) return;
4069
4066
  let e = (e) => {
4070
4067
  let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
4071
- n === be && t !== be && Ne(Z(D).t("tools.textToSpeech.inline.switchedSection"));
4068
+ n === F && t !== F && Ne(Z(E).t("tools.textToSpeech.inline.switchedSection"));
4072
4069
  };
4073
4070
  return window.addEventListener(g, e), () => {
4074
4071
  window.removeEventListener(g, e);
@@ -4076,41 +4073,41 @@ function ro(o, s) {
4076
4073
  }), dn(() => {
4077
4074
  if (!m) return;
4078
4075
  let t = () => {
4079
- Ne(Z(D).t("tools.textToSpeech.inline.switchedSection"), !0);
4076
+ Ne(Z(E).t("tools.textToSpeech.inline.switchedSection"), !0);
4080
4077
  };
4081
4078
  return window.addEventListener(e, t), () => {
4082
4079
  window.removeEventListener(e, t);
4083
4080
  };
4084
4081
  }), dn(() => () => {
4085
- De(), Ke();
4082
+ we(), qe();
4086
4083
  });
4087
4084
  async function Pe() {
4088
- if (!Z(k)) return !1;
4085
+ if (!Z(O)) return !1;
4089
4086
  try {
4090
- return await Z(ne)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
4087
+ return await Z(re)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
4091
4088
  } catch (e) {
4092
4089
  return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
4093
4090
  }
4094
4091
  }
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") : [];
4092
+ let Fe = "[data-pie-tts-speed-rate]", Ie = "[data-pie-tts-media]", Le = "[data-pie-tts-seek]", R = "[data-pie-tts-stop]";
4093
+ function Re(e) {
4094
+ return Z(T) ? Array.from(Z(T).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
4098
4095
  }
4099
4096
  function Ve(e, t) {
4100
- let n = Be(e);
4097
+ let n = Re(e);
4101
4098
  if (!n.length) return;
4102
4099
  let r = n[(t + n.length) % n.length];
4103
4100
  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);
4101
+ let i = Number(r.dataset.pieTtsSpeedRate), a = Z(N).find((e) => e.rate === i);
4102
+ a && et(a);
4106
4103
  }
4107
4104
  function He(e, t) {
4108
- let n = Be(e);
4105
+ let n = Re(e);
4109
4106
  if (!n.length) return;
4110
- let r = Z(E)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
4107
+ let r = Z(T)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
4111
4108
  Ve(e, a === -1 ? 0 : a + t);
4112
4109
  }
4113
- function z(e, t) {
4110
+ function Ue(e, t) {
4114
4111
  switch (t.key) {
4115
4112
  case "ArrowDown":
4116
4113
  case "ArrowRight":
@@ -4126,161 +4123,161 @@ function ro(o, s) {
4126
4123
  case "End": t.preventDefault(), Ve(e, -1);
4127
4124
  }
4128
4125
  }
4129
- function Ue() {
4130
- if (!Z(oe)) return null;
4131
- let e = Z(oe);
4126
+ function We() {
4127
+ if (!Z(se)) return null;
4128
+ let e = Z(se);
4132
4129
  if (e.getAttribute?.("data-region") === "content") return e;
4133
4130
  let t = e.querySelector?.("[data-region='content']");
4134
4131
  return t instanceof Element ? t : e;
4135
4132
  }
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
4133
+ function Ge() {
4134
+ if (Z(D)) return t({
4135
+ kind: Z(D).kind,
4136
+ assessmentId: Z(re)?.assessmentId,
4137
+ sectionId: Z(re)?.sectionId,
4138
+ itemId: Z(D).itemId,
4139
+ canonicalItemId: Z(D).canonicalItemId || Z(D).itemId
4143
4140
  });
4144
4141
  }
4145
- function Ge(e) {
4146
- return Ke(), pe = Z(k)?.setHighlightTargetResolverProvider?.(() => ({
4142
+ function Ke(e) {
4143
+ return qe(), me = Z(O)?.setHighlightTargetResolverProvider?.(() => ({
4147
4144
  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
4145
+ scopeElement: Z(ae)?.scopeElement || e || null,
4146
+ kind: Z(D)?.kind,
4147
+ itemId: Z(D)?.itemId,
4148
+ canonicalItemId: Z(D)?.canonicalItemId,
4149
+ contentKind: Z(D)?.contentKind,
4150
+ regionPolicy: Z(D)?.regionPolicy
4154
4151
  },
4155
- resolver: Z(ie)?.ttsHighlightTargetResolver || null
4156
- })) || null, pe;
4152
+ resolver: Z(ae)?.ttsHighlightTargetResolver || null
4153
+ })) || null, me;
4157
4154
  }
4158
- function Ke(e = pe) {
4159
- e?.(), e === pe && (pe = null);
4155
+ function qe(e = me) {
4156
+ e?.(), e === me && (me = null);
4160
4157
  }
4161
- function B() {
4162
- if (!we()) return !1;
4163
- let e = String(Z(k)?.getState?.() || "");
4158
+ function z() {
4159
+ if (!L()) return !1;
4160
+ let e = String(Z(O)?.getState?.() || "");
4164
4161
  return e === "playing" || e === "paused" || e === "loading";
4165
4162
  }
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(() => {
4163
+ function Je(e) {
4164
+ let t = ke();
4165
+ Te(Z(E).t("tools.textToSpeech.inline.startFailed")), L() && we(), Z(oe) && Z(oe).clearTTS(), qe(e), t && queueMicrotask(() => {
4169
4166
  Me(!0);
4170
4167
  });
4171
4168
  }
4172
- async function Je() {
4173
- if (!Z(k)) return;
4174
- let e = null, t = Ue();
4169
+ async function Ye() {
4170
+ if (!Z(O)) return;
4171
+ let e = null, t = We();
4175
4172
  if (!t) {
4176
4173
  console.warn("[TTS Inline] No target container found from shell scope context");
4177
4174
  return;
4178
4175
  }
4179
4176
  try {
4180
- W(A, !0);
4177
+ U(k, !0);
4181
4178
  let n = t.textContent || "";
4182
4179
  if (!n) {
4183
4180
  console.warn("[TTS Inline] No text content found");
4184
4181
  return;
4185
4182
  }
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, {
4183
+ Z(oe) && Z(O).setHighlightCoordinator && Z(O).setHighlightCoordinator(Z(oe)), await Oe(Z(O), Z(P)), ge = {
4184
+ service: Z(O),
4185
+ choicesKey: Z(ve)
4186
+ }, e = Ke(t), Z(O).setRootElement?.(t), U(fe, !0), U(M, Z(E).t("tools.textToSpeech.inline.starting"), !0), Z(O).speak(n, {
4190
4187
  catalogId: c() || void 0,
4191
- catalogContext: We(),
4188
+ catalogContext: Ge(),
4192
4189
  language: l(),
4193
4190
  contentElement: t
4194
4191
  }).catch((t) => {
4195
- console.error("[TTS Inline] Error:", t), qe(e);
4192
+ console.error("[TTS Inline] Error:", t), Je(e);
4196
4193
  }).finally(() => {
4197
- B() || Ke(e);
4194
+ z() || qe(e);
4198
4195
  });
4199
4196
  } catch (t) {
4200
- console.error("[TTS Inline] Error:", t), qe(e);
4197
+ console.error("[TTS Inline] Error:", t), Je(e);
4201
4198
  }
4202
4199
  }
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);
4200
+ async function Xe() {
4201
+ if (Z(O) && !(Z(he) || L() && String(Z(O).getState?.() || "") === "loading")) {
4202
+ if (L() && Z(j)) {
4203
+ Z(O).resume(), U(M, Z(E).t("tools.textToSpeech.inline.resumed"), !0);
4207
4204
  return;
4208
4205
  }
4209
- if (we() && Z(j) && !Z(M)) {
4210
- Z(k).pause(), W(N, Z(D).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
4206
+ if (L() && Z(A) && !Z(j)) {
4207
+ Z(O).pause(), U(M, Z(E).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
4211
4208
  return;
4212
4209
  }
4213
- if (!Z(ue)) {
4214
- W(ue, !0);
4210
+ if (!Z(de)) {
4211
+ U(de, !0);
4215
4212
  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);
4213
+ if (U(M, Z(E).t("tools.textToSpeech.inline.initializing"), !0), !await Pe()) {
4214
+ U(M, Z(E).t("tools.textToSpeech.inline.initFailed"), !0);
4218
4215
  return;
4219
4216
  }
4220
- let e = String(Z(k).getState?.() || "");
4221
- (e === "playing" || e === "paused" || e === "loading") && !we() && Z(k).stop(), Ee(), await Je();
4217
+ let e = String(Z(O).getState?.() || "");
4218
+ (e === "playing" || e === "paused" || e === "loading") && !L() && Z(O).stop(), Ce(), await Ye();
4222
4219
  } finally {
4223
- W(ue, !1);
4220
+ U(de, !1);
4224
4221
  }
4225
4222
  }
4226
4223
  }
4227
4224
  }
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(() => {
4225
+ function Ze() {
4226
+ if (!Z(O)) return;
4227
+ let e = ke();
4228
+ Z(O).stop(), we(), Te(Z(E).t("tools.textToSpeech.inline.stopped")), Z(oe) && Z(oe).clearTTS(), qe(), e && queueMicrotask(() => {
4232
4229
  Me(!0);
4233
4230
  });
4234
4231
  }
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);
4232
+ async function Qe() {
4233
+ if (!(!Z(O) || !Z(A))) try {
4234
+ await Z(O).seekForward?.(1), U(M, Z(E).t("tools.textToSpeech.inline.skippedForward"), !0);
4238
4235
  } catch (e) {
4239
- console.error("[TTS Inline] Seek forward failed:", e), W(N, Z(D).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
4236
+ console.error("[TTS Inline] Seek forward failed:", e), U(M, Z(E).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
4240
4237
  }
4241
4238
  }
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);
4239
+ async function $e() {
4240
+ if (!(!Z(O) || !Z(A))) try {
4241
+ await Z(O).seekBackward?.(1), U(M, Z(E).t("tools.textToSpeech.inline.skippedBackward"), !0);
4245
4242
  } catch (e) {
4246
- console.error("[TTS Inline] Seek backward failed:", e), W(N, Z(D).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
4243
+ console.error("[TTS Inline] Seek backward failed:", e), U(M, Z(E).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
4247
4244
  }
4248
4245
  }
4249
- async function $e(e) {
4250
- let t = Z(k);
4246
+ async function et(e) {
4247
+ let t = Z(O);
4251
4248
  if (!t) return;
4252
- if (Z(ye) === e.rate) {
4253
- W(N, Z(D).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4249
+ if (Z(P) === e.rate) {
4250
+ U(M, Z(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4254
4251
  return;
4255
4252
  }
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);
4253
+ let n = Z(le), r = Z(ue);
4254
+ U(le, e.rate, !0), U(ue, Z(ve), !0), U(M, Z(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
4258
4255
  let i = {
4259
4256
  service: t,
4260
- choicesKey: Z(_e)
4257
+ choicesKey: Z(ve)
4261
4258
  };
4262
- he = i;
4259
+ ge = i;
4263
4260
  try {
4264
- await I(t, e.rate);
4261
+ await Oe(t, e.rate);
4265
4262
  } 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);
4263
+ ge === i && (ge = null), console.error("[TTS Inline] Playback speed change failed:", e), U(le, n, !0), U(ue, r, !0), U(M, Z(E).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
4267
4264
  }
4268
4265
  }
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);
4266
+ 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 = "[data-pie-tool-overlay-boundary]", st = /* @__PURE__ */ H(""), ct = /* @__PURE__ */ H(0);
4270
4267
  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;
4268
+ let e = Z(O), t = Z(ve), n = Z(A) || Z(j);
4269
+ if (!e || !n || !L() || ge?.service === e && ge.choicesKey === t) return;
4273
4270
  let r = {
4274
4271
  service: e,
4275
4272
  choicesKey: t
4276
4273
  };
4277
- he = r;
4274
+ ge = r;
4278
4275
  let i = !1;
4279
4276
  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);
4277
+ if (i || ge !== r) return;
4278
+ let t = Z(P);
4279
+ Oe(e, t).catch((e) => {
4280
+ ge === r && (ge = null), console.error("[TTS Inline] External playback speed sync failed:", e);
4284
4281
  });
4285
4282
  }), () => {
4286
4283
  i = !0;
@@ -4295,7 +4292,7 @@ function ro(o, s) {
4295
4292
  return null;
4296
4293
  }
4297
4294
  function ut() {
4298
- let e = Z(T)?.getRootNode();
4295
+ let e = Z(w)?.getRootNode();
4299
4296
  return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
4300
4297
  }
4301
4298
  function dt(e) {
@@ -4304,20 +4301,30 @@ function ro(o, s) {
4304
4301
  }
4305
4302
  function ft() {
4306
4303
  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);
4304
+ if (!e || !Z(T)) return;
4305
+ let t = e.getBoundingClientRect(), n = lt(e, ot), r = n?.getBoundingClientRect().left ?? 0, i = Math.max(0, t.left - r - 16);
4306
+ if (!Z(ce)) {
4307
+ let e = dt(Z(T));
4308
+ e > 0 && U(ct, e, !0);
4309
+ }
4310
+ U(ce, Z(ct) > 0 && i < Z(ct), !0);
4311
+ let a = parseFloat(window.getComputedStyle(Z(T)).minWidth) || 0;
4312
+ if (Z(ce) && i < a) {
4313
+ let e = n?.getBoundingClientRect(), r = Math.max(0, e?.left ?? 0) + 8, i = Math.min(window.innerWidth, e?.right ?? window.innerWidth) - 8, a = Math.max(0, i - r), o = Math.min(Z(T).offsetWidth, a), s = Math.max(r, Math.min(t.right - o, i - o));
4314
+ U(st, `top: ${t.bottom + 8}px; left: ${s}px; right: auto; min-width: min(7.5rem, ${a}px); max-width: min(${a}px, var(--pie-tts-left-aligned-panel-width, ${a}px));`);
4315
+ return;
4312
4316
  }
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));`);
4317
+ let o = Z(T).offsetHeight || t.height, s = Z(ce) ? t.top : t.top + t.height / 2 - o / 2, c = t.bottom > 0 && t.top < window.innerHeight ? Math.max(8, Math.min(s, window.innerHeight - o - 8)) : s, l = window.innerWidth - t.left + 8;
4318
+ U(st, `top: ${c}px; right: ${l}px; left: auto; max-width: min(${i}px, var(--pie-tts-left-aligned-panel-width, ${i}px));`);
4316
4319
  }
4317
4320
  dn(() => {
4318
- if (!Z(rt) || !Z(A)) {
4319
- W(st, ""), W(se, !1), W(ct, 0);
4320
- return;
4321
+ if (!(Z(it) && Z(k))) {
4322
+ let e = !1;
4323
+ return queueMicrotask(() => {
4324
+ e || (U(st, ""), U(ce, !1), U(ct, 0));
4325
+ }), () => {
4326
+ e = !0;
4327
+ };
4321
4328
  }
4322
4329
  if (typeof window > "u") return;
4323
4330
  let e = 0, t = () => {
@@ -4325,9 +4332,9 @@ function ro(o, s) {
4325
4332
  e = 0, ft();
4326
4333
  });
4327
4334
  };
4328
- ft(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
4335
+ t(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
4329
4336
  let n = ut(), r = new ResizeObserver(t);
4330
- n && r.observe(n), Z(E) && r.observe(Z(E));
4337
+ n && r.observe(n), Z(T) && r.observe(Z(T));
4331
4338
  let i = n ? lt(n, ot) : null;
4332
4339
  i && r.observe(i);
4333
4340
  let a = i?.querySelector("[data-pie-tool-overlay-protect]");
@@ -4336,14 +4343,14 @@ function ro(o, s) {
4336
4343
  };
4337
4344
  });
4338
4345
  function pt() {
4339
- if (!Z(T)) return null;
4340
- let e = Z(T).getRootNode();
4346
+ if (!Z(w)) return null;
4347
+ let e = Z(w).getRootNode();
4341
4348
  return e instanceof ShadowRoot ? e.host : null;
4342
4349
  }
4343
4350
  dn(() => {
4344
4351
  let e = pt();
4345
4352
  if (!e) return;
4346
- let t = Z(A) === !0;
4353
+ let t = Z(k) === !0;
4347
4354
  e.setAttribute("data-active", t ? "true" : "false");
4348
4355
  let n = !1;
4349
4356
  return queueMicrotask(() => {
@@ -4356,133 +4363,131 @@ function ro(o, s) {
4356
4363
  n = !0;
4357
4364
  };
4358
4365
  });
4359
- var mt = {
4366
+ var V = {
4360
4367
  get catalogId() {
4361
4368
  return c();
4362
4369
  },
4363
4370
  set catalogId(e = "") {
4364
- c(e), Dt();
4371
+ c(e), wt();
4365
4372
  },
4366
4373
  get language() {
4367
4374
  return l();
4368
4375
  },
4369
4376
  set language(e = "en-US") {
4370
- l(e), Dt();
4377
+ l(e), wt();
4371
4378
  },
4372
4379
  get size() {
4373
4380
  return u();
4374
4381
  },
4375
4382
  set size(e = "md") {
4376
- u(e), Dt();
4383
+ u(e), wt();
4377
4384
  },
4378
4385
  get speedOptions() {
4379
4386
  return d();
4380
4387
  },
4381
4388
  set speedOptions(e = void 0) {
4382
- d(e), Dt();
4389
+ d(e), wt();
4383
4390
  },
4384
4391
  get showSingleSpeedOption() {
4385
4392
  return f();
4386
4393
  },
4387
4394
  set showSingleSpeedOption(e = !1) {
4388
- f(e), Dt();
4395
+ f(e), wt();
4389
4396
  },
4390
4397
  get layoutMode() {
4391
4398
  return p();
4392
4399
  },
4393
4400
  set layoutMode(e = "expanding-row") {
4394
- p(e), Dt();
4401
+ p(e), wt();
4395
4402
  }
4396
- }, ht = gr(), gt = $t(ht), H = (e) => {
4403
+ }, mt = gr(), ht = Xt(mt), gt = (e) => {
4397
4404
  var t = to();
4398
4405
  let n;
4399
4406
  {
4400
4407
  let e = (e) => {
4401
- var t = Xa(), n = Qt(t), r = (e) => {
4408
+ var t = Xa(), n = Yt(t), r = (e) => {
4402
4409
  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);
4410
+ ti(t, "type", "circle"), ti(t, "size", "small"), ti(t, "variant", "tertiary"), vn(() => ti(t, "icon-name", Z(A) && !Z(j) ? "pause" : "play")), vn((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")]), vn(() => ti(t, "disabled", !Z(O))), Ur(t, (e) => S?.(e)), Ur(t, (e, t) => C?.(e, t), () => ({
4411
+ "aria-expanded": Z(k) ? "true" : "false",
4412
+ "aria-controls": Z(k) ? ye : null,
4413
+ "aria-pressed": Z(k) ? "true" : "false",
4414
+ "aria-busy": Z(he) ? "true" : null
4415
+ })), vn(() => Yr(t, 1, `pie-tool-tts-inline__trigger ${Z(tt) ?? ""}`, "svelte-18mzc0g")), or("click", t, Xe), _r(e, t);
4409
4416
  }, 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);
4417
+ var t = Ya(), n = Zt(t);
4418
+ Ur(t, (e) => ne?.(e)), vn((e) => {
4419
+ 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");
4420
+ }, [() => 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
4421
  };
4415
- Or(n, (e) => {
4416
- Z(re) ? e(r) : e(i, -1);
4417
- }), Ae(t), _r(e, t);
4422
+ Mr(n, (e) => {
4423
+ Z(ie) ? e(r) : e(i, -1);
4424
+ }), be(t), _r(e, t);
4418
4425
  }, n = (e) => {
4419
- var t = gr(), n = $t(t), r = (e) => {
4426
+ var t = gr(), n = Xt(t), r = (e) => {
4420
4427
  var t = $a();
4421
4428
  let n;
4422
- var r = Qt(t), i = (e) => {
4429
+ var r = Yt(t), i = (e) => {
4423
4430
  var t = Qa();
4424
4431
  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);
4432
+ Ir(t, 21, () => Z(N), (e) => e.rate, (e, t) => {
4433
+ var n = Za(), r = Yt(n), i = Zt(r, !0);
4434
+ be(n), vn(() => {
4435
+ 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);
4436
+ }), or("click", n, () => et(Z(t))), or("keydown", n, (e) => Ue(Fe, e)), _r(e, n);
4437
+ }), be(t), vn((e) => {
4438
+ 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);
4439
+ }, [() => Z(E).t("tools.textToSpeech.inline.playbackSpeedA11y")]), _r(e, t);
4433
4440
  };
4434
- Or(r, (e) => {
4435
- Z(ve).length > 0 && e(i);
4441
+ Mr(r, (e) => {
4442
+ Z(N).length > 0 && e(i);
4436
4443
  });
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);
4444
+ var a = Qt(r, 2), o = Qt(a, 2), s = Qt(o, 2);
4445
+ be(t), oi(t, (e) => U(T, e), () => Z(T)), vn((e, r, i, c) => {
4446
+ Q(t, "id", ye), n = Yr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
4447
+ "pie-tool-tts-inline__panel--floating": Z(rt),
4448
+ "pie-tool-tts-inline__panel--row": Z(nt),
4449
+ "pie-tool-tts-inline__panel--left-aligned-inline": Z(it),
4450
+ "pie-tool-tts-inline__panel--compact": Z(it) && Z(ce)
4451
+ }), Zr(t, Z(it) ? Z(st) : ""), 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
4452
  }, [
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);
4453
+ () => Z(E).t("tools.textToSpeech.inline.controlsA11y"),
4454
+ () => Z(E).t("tools.textToSpeech.inline.rewindA11y"),
4455
+ () => Z(E).t("tools.textToSpeech.inline.fastForwardA11y"),
4456
+ () => Z(E).t("tools.textToSpeech.inline.stopA11y")
4457
+ ]), 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
4458
  };
4452
- Or(n, (e) => {
4453
- Z(A) && e(r);
4459
+ Mr(n, (e) => {
4460
+ Z(k) && e(r);
4454
4461
  }), _r(e, t);
4455
4462
  };
4456
- var r = Qt(t), i = (t) => {
4457
- var r = eo(), i = $t(r);
4463
+ var r = Yt(t), i = (t) => {
4464
+ var r = eo(), i = Xt(r);
4458
4465
  n(i);
4459
- var a = en(i, 2);
4466
+ var a = Qt(i, 2);
4460
4467
  e(a), _r(t, r);
4461
4468
  }, a = (t) => {
4462
- var r = eo(), i = $t(r);
4469
+ var r = eo(), i = Xt(r);
4463
4470
  e(i);
4464
- var a = en(i, 2);
4471
+ var a = Qt(i, 2);
4465
4472
  n(a), _r(t, r);
4466
4473
  };
4467
- Or(r, (e) => {
4468
- Z(it) ? e(i) : e(a, -1);
4474
+ Mr(r, (e) => {
4475
+ Z(at) ? e(i) : e(a, -1);
4469
4476
  });
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)));
4477
+ var o = Zt(Qt(r, 2), !0);
4478
+ be(t), oi(t, (e) => U(w, e), () => Z(w)), vn(() => wr(o, Z(M)));
4472
4479
  }
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};`);
4479
- }), _r(e, t);
4480
+ vn(() => n = Yr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
4481
+ "pie-tool-tts-inline--controls-row": Z(nt),
4482
+ "pie-tool-tts-inline--floating": Z(rt),
4483
+ "pie-tool-tts-inline--left-aligned": Z(it)
4484
+ })), _r(e, t);
4480
4485
  };
4481
- return Or(gt, (e) => {
4482
- m && e(H);
4483
- }), _r(o, ht), ze(mt);
4486
+ return Mr(ht, (e) => {
4487
+ m && e(gt);
4488
+ }), _r(o, mt), Be(V);
4484
4489
  }
4485
- sr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", li(ro, {
4490
+ sr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", pi(ro, {
4486
4491
  catalogId: {
4487
4492
  attribute: "catalog-id",
4488
4493
  type: "String"