@pie-players/pie-tool-tts-inline 0.3.74 → 0.3.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
1
  import { coerceBooleanAttributes as e } from "@pie-players/pie-players-shared/ui/attribute-coercion";
2
- import { PIE_TTS_CONTROL_HANDOFF_EVENT as t, catalogOwnerContextFor as n, connectToolRegionScopeContext as r, connectToolRuntimeContext as i, connectToolShellContext as a, normalizeTTSSpeedControlOptions as o } from "@pie-players/pie-assessment-toolkit";
2
+ import { PIE_TTS_CONTROL_HANDOFF_EVENT as t, catalogContextForShell as n, connectToolRegionScopeContext as r, connectToolRuntimeContext as i, connectToolShellContext as a, flatTextContent as o, normalizeTTSSpeedControlOptions as s, resolveContentRegion as c } from "@pie-players/pie-assessment-toolkit/tools/registration";
3
3
  import "@pie-players/pie-players-shared/nds-icon-button";
4
- import { resolveInterfaceI18n as s } from "@pie-players/pie-players-shared/i18n/provider";
4
+ import { resolveInterfaceI18n as l } from "@pie-players/pie-players-shared/i18n/provider";
5
5
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/disclose-version.js
6
6
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
7
7
  //#endregion
8
8
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/constants.js
9
- var c = {}, l = Symbol("uninitialized"), u = "http://www.w3.org/1999/xhtml", d = Array.isArray, f = Array.prototype.indexOf, p = Array.prototype.includes, m = Array.from, h = Object.keys, g = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, v = Object.getOwnPropertyDescriptors, y = Object.prototype, b = Array.prototype, x = Object.getPrototypeOf, S = Object.isExtensible, ee = () => {};
10
- function te(e) {
9
+ var u = {}, d = Symbol("uninitialized"), f = "http://www.w3.org/1999/xhtml", p = Array.isArray, m = Array.prototype.indexOf, h = Array.prototype.includes, g = Array.from, _ = Object.keys, v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, ee = Object.getOwnPropertyDescriptors, b = Object.prototype, x = Array.prototype, te = Object.getPrototypeOf, ne = Object.isExtensible, re = () => {};
10
+ function ie(e) {
11
11
  for (var t = 0; t < e.length; t++) e[t]();
12
12
  }
13
- function ne() {
13
+ function ae() {
14
14
  var e, t;
15
15
  return {
16
16
  promise: new Promise((n, r) => {
@@ -20,47 +20,47 @@ function ne() {
20
20
  reject: t
21
21
  };
22
22
  }
23
- var C = 1024, w = 2048, T = 4096, re = 8192, ie = 16384, E = 32768, D = 1 << 25, ae = 65536, O = 1 << 19, oe = 1 << 20, se = 1 << 25, k = 1 << 21, ce = 1 << 22, A = 1 << 23, j = Symbol("$state"), M = Symbol("component"), le = Symbol("legacy props"), ue = Symbol(""), de = Symbol("attributes"), fe = Symbol("class"), pe = Symbol("style"), me = Symbol("text"), he = new class extends Error {
23
+ var S = 1024, C = 2048, w = 4096, oe = 8192, se = 16384, T = 32768, ce = 1 << 25, le = 65536, E = 1 << 19, ue = 1 << 20, de = 1 << 25, D = 1 << 21, fe = 1 << 22, O = 1 << 23, k = Symbol("$state"), A = Symbol("component"), pe = Symbol("legacy props"), me = Symbol(""), he = Symbol("attributes"), ge = Symbol("class"), _e = Symbol("style"), ve = Symbol("text"), ye = new class extends Error {
24
24
  name = "StaleReactionError";
25
25
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
26
- }(), ge = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
27
- function _e() {
26
+ }(), be = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
27
+ function xe() {
28
28
  console.warn("https://svelte.dev/e/derived_inert");
29
29
  }
30
- function ve(e) {
30
+ function Se(e) {
31
31
  console.warn("https://svelte.dev/e/hydration_mismatch");
32
32
  }
33
- function ye() {
33
+ function Ce() {
34
34
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
35
35
  }
36
36
  //#endregion
37
37
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/hydration.js
38
- var N = !1;
39
- function P(e) {
40
- N = e;
38
+ var j = !1;
39
+ function M(e) {
40
+ j = e;
41
41
  }
42
- var F;
43
- function I(e) {
44
- if (e === null) throw ve(), c;
45
- return F = e;
42
+ var N;
43
+ function P(e) {
44
+ if (e === null) throw Se(), u;
45
+ return N = e;
46
46
  }
47
- function be() {
48
- return I(/* @__PURE__ */ qt(F));
47
+ function F() {
48
+ return P(/* @__PURE__ */ Yt(N));
49
49
  }
50
- function xe(e) {
51
- if (N) {
52
- if (/* @__PURE__ */ qt(F) !== null) throw ve(), c;
53
- F = e;
50
+ function we(e) {
51
+ if (j) {
52
+ if (/* @__PURE__ */ Yt(N) !== null) throw Se(), u;
53
+ N = e;
54
54
  }
55
55
  }
56
- function Se(e = 1) {
57
- if (N) {
58
- for (var t = e, n = F; t--;) n = /* @__PURE__ */ qt(n);
59
- F = n;
56
+ function Te(e = 1) {
57
+ if (j) {
58
+ for (var t = e, n = N; t--;) n = /* @__PURE__ */ Yt(n);
59
+ N = n;
60
60
  }
61
61
  }
62
- function Ce(e = !0) {
63
- for (var t = 0, n = F;;) {
62
+ function Ee(e = !0) {
63
+ for (var t = 0, n = N;;) {
64
64
  if (n.nodeType === 8) {
65
65
  var r = n.data;
66
66
  if (r === "]") {
@@ -68,72 +68,72 @@ function Ce(e = !0) {
68
68
  --t;
69
69
  } else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
70
70
  }
71
- var i = /* @__PURE__ */ qt(n);
71
+ var i = /* @__PURE__ */ Yt(n);
72
72
  e && n.remove(), n = i;
73
73
  }
74
74
  }
75
- function we(e) {
76
- if (!e || e.nodeType !== 8) throw ve(), c;
75
+ function De(e) {
76
+ if (!e || e.nodeType !== 8) throw Se(), u;
77
77
  return e.data;
78
78
  }
79
79
  //#endregion
80
80
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/equality.js
81
- function Te(e) {
81
+ function Oe(e) {
82
82
  return e === this.v;
83
83
  }
84
- function Ee(e, t) {
84
+ function ke(e, t) {
85
85
  return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
86
86
  }
87
- function De(e) {
88
- return !Ee(e, this.v);
87
+ function Ae(e) {
88
+ return !ke(e, this.v);
89
89
  }
90
90
  //#endregion
91
91
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/errors.js
92
- function Oe() {
92
+ function je() {
93
93
  throw Error("https://svelte.dev/e/async_derived_orphan");
94
94
  }
95
- function ke(e, t, n) {
95
+ function Me(e, t, n) {
96
96
  throw Error("https://svelte.dev/e/each_key_duplicate");
97
97
  }
98
- function Ae(e) {
98
+ function Ne(e) {
99
99
  throw Error("https://svelte.dev/e/effect_in_teardown");
100
100
  }
101
- function je() {
101
+ function Pe() {
102
102
  throw Error("https://svelte.dev/e/effect_in_unowned_derived");
103
103
  }
104
- function Me(e) {
104
+ function Fe(e) {
105
105
  throw Error("https://svelte.dev/e/effect_orphan");
106
106
  }
107
- function Ne() {
107
+ function Ie() {
108
108
  throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
109
109
  }
110
- function Pe() {
110
+ function Le() {
111
111
  throw Error("https://svelte.dev/e/hydration_failed");
112
112
  }
113
- function Fe(e) {
113
+ function Re(e) {
114
114
  throw Error("https://svelte.dev/e/props_invalid_value");
115
115
  }
116
- function Ie() {
116
+ function ze() {
117
117
  throw Error("https://svelte.dev/e/state_descriptors_fixed");
118
118
  }
119
- function Le() {
119
+ function Be() {
120
120
  throw Error("https://svelte.dev/e/state_prototype_fixed");
121
121
  }
122
- function Re() {
122
+ function Ve() {
123
123
  throw Error("https://svelte.dev/e/state_unsafe_mutation");
124
124
  }
125
- function ze() {
125
+ function He() {
126
126
  throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
127
127
  }
128
128
  //#endregion
129
129
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/context.js
130
- var L = null;
131
- function Be(e) {
132
- L = e;
130
+ var I = null;
131
+ function Ue(e) {
132
+ I = e;
133
133
  }
134
- function Ve(e, t = !1, n) {
135
- L = {
136
- p: L,
134
+ function We(e, t = !1, n) {
135
+ I = {
136
+ p: I,
137
137
  i: !1,
138
138
  c: null,
139
139
  e: null,
@@ -143,159 +143,159 @@ function Ve(e, t = !1, n) {
143
143
  l: null
144
144
  };
145
145
  }
146
- function He(e) {
147
- var t = L, n = t.e;
146
+ function Ge(e) {
147
+ var t = I, n = t.e;
148
148
  if (n !== null) {
149
149
  t.e = null;
150
- for (var r of n) dn(r);
150
+ for (var r of n) pn(r);
151
151
  }
152
- return e !== void 0 && (t.x = e), t.i = !0, L = t.p, Ue(e);
152
+ return e !== void 0 && (t.x = e), t.i = !0, I = t.p, Ke(e);
153
153
  }
154
- function Ue(e = {}) {
155
- return g(e, M, { value: !0 }), e;
154
+ function Ke(e = {}) {
155
+ return v(e, A, { value: !0 }), e;
156
156
  }
157
- function We() {
157
+ function qe() {
158
158
  return !0;
159
159
  }
160
160
  //#endregion
161
161
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/task.js
162
- var Ge = [];
163
- function Ke() {
164
- var e = Ge;
165
- Ge = [], te(e);
166
- }
167
- function qe(e) {
168
- if (Ge.length === 0 && !ht) {
169
- var t = Ge;
162
+ var Je = [];
163
+ function Ye() {
164
+ var e = Je;
165
+ Je = [], ie(e);
166
+ }
167
+ function L(e) {
168
+ if (Je.length === 0 && !_t) {
169
+ var t = Je;
170
170
  queueMicrotask(() => {
171
- t === Ge && Ke();
171
+ t === Je && Ye();
172
172
  });
173
173
  }
174
- Ge.push(e);
174
+ Je.push(e);
175
175
  }
176
- function Je() {
177
- for (; Ge.length > 0;) Ke();
176
+ function Xe() {
177
+ for (; Je.length > 0;) Ye();
178
178
  }
179
179
  //#endregion
180
180
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/status.js
181
- var Ye = ~(w | T | C);
181
+ var Ze = ~(C | w | S);
182
182
  function R(e, t) {
183
- e.f = e.f & Ye | t;
183
+ e.f = e.f & Ze | t;
184
184
  }
185
- function Xe(e) {
186
- e.f & 512 || e.deps === null ? R(e, C) : R(e, T);
185
+ function Qe(e) {
186
+ e.f & 512 || e.deps === null ? R(e, S) : R(e, w);
187
187
  }
188
188
  //#endregion
189
189
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/utils.js
190
- function Ze(e, t, n) {
191
- e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), R(e, C);
190
+ function $e(e, t, n) {
191
+ e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), R(e, S);
192
192
  }
193
193
  //#endregion
194
194
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
195
- function Qe(e) {
195
+ function et(e) {
196
196
  var t = q, n = Y;
197
- J(null), Pn(null);
197
+ J(null), In(null);
198
198
  try {
199
199
  return e();
200
200
  } finally {
201
- J(t), Pn(n);
201
+ J(t), In(n);
202
202
  }
203
203
  }
204
204
  //#endregion
205
205
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/async.js
206
- function $e(e, t, n, r) {
207
- let i = We() ? rt : ot;
206
+ function tt(e, t, n, r) {
207
+ let i = qe() ? at : ct;
208
208
  var a = e.filter((e) => !e.settled), o = t.map(i);
209
209
  if (n.length === 0 && a.length === 0) {
210
210
  r(o);
211
211
  return;
212
212
  }
213
- var s = Y, c = et(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
213
+ var s = Y, c = nt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
214
214
  function u(e) {
215
215
  if (!(s.f & 16384)) {
216
216
  c();
217
217
  try {
218
218
  r([...o, ...e]);
219
219
  } catch (e) {
220
- rn(e, s);
220
+ on(e, s);
221
221
  }
222
- tt();
222
+ rt();
223
223
  }
224
224
  }
225
- var d = nt();
225
+ var d = it();
226
226
  if (n.length === 0) {
227
227
  l.then(() => u([])).finally(d);
228
228
  return;
229
229
  }
230
230
  function f() {
231
- Promise.all(n.map((e) => /* @__PURE__ */ at(e))).then(u).catch((e) => rn(e, s)).finally(d);
231
+ Promise.all(n.map((e) => /* @__PURE__ */ st(e))).then(u).catch((e) => on(e, s)).finally(d);
232
232
  }
233
233
  l ? l.then(() => {
234
- c(), f(), tt();
234
+ c(), f(), rt();
235
235
  }) : f();
236
236
  }
237
- function et() {
238
- var e = Y, t = q, n = L, r = B;
237
+ function nt() {
238
+ var e = Y, t = q, n = I, r = B;
239
239
  return function(i = !0) {
240
- Pn(e), J(t), Be(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
240
+ In(e), J(t), Ue(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
241
241
  };
242
242
  }
243
- function tt(e = !0) {
244
- Pn(null), J(null), Be(null), e && B?.deactivate();
243
+ function rt(e = !0) {
244
+ In(null), J(null), Ue(null), e && B?.deactivate();
245
245
  }
246
- function nt() {
246
+ function it() {
247
247
  var e = Y, t = e.b, n = B, r = !!t?.is_rendered();
248
248
  return t?.update_pending_count(1, n), n.increment(r, e), () => {
249
249
  t?.update_pending_count(-1, n), n.decrement(r, e);
250
250
  };
251
251
  }
252
252
  /*#__NO_SIDE_EFFECTS__*/
253
- function rt(e) {
254
- var t = 2 | w;
255
- return Y !== null && (Y.f |= O), {
256
- ctx: L,
253
+ function at(e) {
254
+ var t = 2 | C;
255
+ return Y !== null && (Y.f |= E), {
256
+ ctx: I,
257
257
  deps: null,
258
258
  effects: null,
259
- equals: Te,
259
+ equals: Oe,
260
260
  f: t,
261
261
  fn: e,
262
262
  reactions: null,
263
263
  rv: 0,
264
- v: l,
264
+ v: d,
265
265
  wv: 0,
266
266
  parent: Y,
267
267
  ac: null
268
268
  };
269
269
  }
270
- var it = Symbol("obsolete");
270
+ var ot = Symbol("obsolete");
271
271
  /*#__NO_SIDE_EFFECTS__*/
272
- function at(e, t, n) {
272
+ function st(e, t, n) {
273
273
  let r = Y;
274
- r === null && Oe();
275
- var i = void 0, a = Mt(l), o = !q, s = /* @__PURE__ */ new Set();
276
- return hn(() => {
277
- var t = Y, n = ne();
274
+ r === null && je();
275
+ var i = void 0, a = Pt(d), o = !q, s = /* @__PURE__ */ new Set();
276
+ return _n(() => {
277
+ var t = Y, n = ae();
278
278
  i = n.promise;
279
279
  try {
280
280
  Promise.resolve(e()).then(n.resolve, (e) => {
281
- e !== he && n.reject(e);
282
- }).finally(tt);
281
+ e !== ye && n.reject(e);
282
+ }).finally(rt);
283
283
  } catch (e) {
284
- n.reject(e), tt();
284
+ n.reject(e), rt();
285
285
  }
286
286
  var c = B;
287
287
  if (o) {
288
- if (t.f & 32768) var l = nt();
289
- if (r.b?.is_rendered()) c.async_deriveds.get(t)?.reject(it);
290
- else for (let e of s.values()) e.reject(it);
288
+ if (t.f & 32768) var l = it();
289
+ if (r.b?.is_rendered()) c.async_deriveds.get(t)?.reject(ot);
290
+ else for (let e of s.values()) e.reject(ot);
291
291
  s.add(n), c.async_deriveds.set(t, n);
292
292
  }
293
293
  let u = (e, t = void 0) => {
294
- l?.(), s.delete(n), t !== it && (c.activate(), t ? (a.f |= A, It(a, t)) : (a.f & 8388608 && (a.f ^= A), It(a, e)), c.deactivate());
294
+ l?.(), s.delete(n), t !== ot && (c.activate(), t ? (a.f |= O, Rt(a, t)) : (a.f & 8388608 && (a.f ^= O), Rt(a, e)), c.deactivate());
295
295
  };
296
296
  n.promise.then(u, (e) => u(null, e || "unknown"));
297
- }), ln(() => {
298
- for (let e of s) e.reject(it);
297
+ }), dn(() => {
298
+ for (let e of s) e.reject(ot);
299
299
  }), new Promise((e) => {
300
300
  function t(n) {
301
301
  function r() {
@@ -308,52 +308,52 @@ function at(e, t, n) {
308
308
  }
309
309
  /*#__NO_SIDE_EFFECTS__*/
310
310
  function z(e) {
311
- let t = /* @__PURE__ */ rt(e);
312
- return In(t), t;
311
+ let t = /* @__PURE__ */ at(e);
312
+ return Rn(t), t;
313
313
  }
314
314
  /*#__NO_SIDE_EFFECTS__*/
315
- function ot(e) {
316
- let t = /* @__PURE__ */ rt(e);
317
- return t.equals = De, t;
315
+ function ct(e) {
316
+ let t = /* @__PURE__ */ at(e);
317
+ return t.equals = Ae, t;
318
318
  }
319
- function st(e) {
319
+ function lt(e) {
320
320
  var t = e.effects;
321
321
  if (t !== null) {
322
322
  e.effects = null;
323
323
  for (var n = 0; n < t.length; n += 1) K(t[n]);
324
324
  }
325
325
  }
326
- function ct(e) {
326
+ function ut(e) {
327
327
  var t, n = Y, r = e.parent;
328
- if (!jn && r !== null && e.v !== l && r.f & 24576) return _e(), e.v;
329
- Pn(r);
328
+ if (!Nn && r !== null && e.v !== d && r.f & 24576) return xe(), e.v;
329
+ In(r);
330
330
  try {
331
- st(e), t = Kn(e);
331
+ lt(e), t = Jn(e);
332
332
  } finally {
333
- Pn(n);
333
+ In(n);
334
334
  }
335
335
  return t;
336
336
  }
337
- function lt(e) {
338
- var t = ct(e);
339
- if (!e.equals(t) && (e.wv = Un(), (!B?.is_fork || e.deps === null) && (B === null ? e.v = t : (B.capture(e, t, !0), pt?.capture(e, t, !0)), e.deps === null))) {
340
- R(e, C);
337
+ function dt(e) {
338
+ var t = ut(e);
339
+ if (!e.equals(t) && (e.wv = Gn(), (!B?.is_fork || e.deps === null) && (B === null ? e.v = t : (B.capture(e, t, !0), ht?.capture(e, t, !0)), e.deps === null))) {
340
+ R(e, S);
341
341
  return;
342
342
  }
343
- jn || (V === null ? Xe(e) : (cn() || B?.is_fork) && V.set(e, t));
343
+ Nn || (V === null ? Qe(e) : (un() || B?.is_fork) && V.set(e, t));
344
344
  }
345
- function ut(e) {
346
- if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Qe(() => {
347
- t.ac.abort(he), t.ac = null;
348
- }), t.fn !== null && (t.teardown = ee), Yn(t, 0), bn(t));
345
+ function ft(e) {
346
+ if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && et(() => {
347
+ t.ac.abort(ye), t.ac = null;
348
+ }), t.fn !== null && (t.teardown = re), Zn(t, 0), Sn(t));
349
349
  }
350
- function dt(e) {
351
- if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Xn(t);
350
+ function pt(e) {
351
+ if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Qn(t);
352
352
  }
353
353
  //#endregion
354
354
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/batch.js
355
- var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t = null, vt = null, yt = 0, bt = 1, xt = class e {
356
- id = bt++;
355
+ var mt = null, B = null, ht = null, V = null, gt = null, _t = !1, vt = !1, yt = null, bt = null, xt = 0, St = 1, Ct = class e {
356
+ id = St++;
357
357
  #e = !1;
358
358
  linked = !0;
359
359
  #t = null;
@@ -375,7 +375,7 @@ var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t =
375
375
  is_fork = !1;
376
376
  #m = !1;
377
377
  constructor() {
378
- ft === null ? ft = this : (ft.#n = this, this.#t = ft), ft = this;
378
+ mt === null ? mt = this : (mt.#n = this, this.#t = mt), mt = this;
379
379
  }
380
380
  #h() {
381
381
  if (this.is_fork) return !0;
@@ -401,8 +401,8 @@ var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t =
401
401
  var n = this.#f.get(e);
402
402
  if (n) {
403
403
  this.#f.delete(e);
404
- for (var r of n.d) R(r, w), t(r);
405
- for (r of n.m) R(r, T), t(r);
404
+ for (var r of n.d) R(r, C), t(r);
405
+ for (r of n.m) R(r, w), t(r);
406
406
  }
407
407
  this.#p.add(e);
408
408
  }
@@ -417,7 +417,7 @@ var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t =
417
417
  n = !0;
418
418
  break;
419
419
  }
420
- t.f ^= C;
420
+ t.f ^= S;
421
421
  }
422
422
  }
423
423
  n || e.push(t);
@@ -426,24 +426,24 @@ var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t =
426
426
  }
427
427
  #_() {
428
428
  this.#e = !0;
429
- for (let e of this.#u) this.#d.delete(e), R(e, w), this.schedule(e);
430
- for (let e of this.#d) R(e, T), this.schedule(e);
429
+ for (let e of this.#u) this.#d.delete(e), R(e, C), this.schedule(e);
430
+ for (let e of this.#d) R(e, w), this.schedule(e);
431
431
  this.apply();
432
- for (var t = _t = [], n = [], r = vt = []; this.#c.length > 0;) {
433
- yt++ > 1e3 && (this.#S(), Ct());
432
+ for (var t = yt = [], n = [], r = bt = []; this.#c.length > 0;) {
433
+ xt++ > 1e3 && (this.#S(), Tt());
434
434
  for (let e of this.#g()) try {
435
435
  this.#v(e, t, n);
436
436
  } catch (t) {
437
- throw Ot(e), this.#h() || this.discard(), t;
437
+ throw At(e), this.#h() || this.discard(), t;
438
438
  }
439
439
  }
440
440
  if (B = null, r.length > 0) {
441
441
  var i = e.ensure();
442
442
  for (let e of r) i.schedule(e);
443
443
  }
444
- if (_t = null, vt = null, this.#h()) {
444
+ if (yt = null, bt = null, this.#h()) {
445
445
  this.#x(n), this.#x(t);
446
- for (let [e, t] of this.#f) Dt(e, t);
446
+ for (let [e, t] of this.#f) kt(e, t);
447
447
  r.length > 0 && B.#_();
448
448
  return;
449
449
  }
@@ -454,7 +454,7 @@ var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t =
454
454
  }
455
455
  this.#u.clear(), this.#d.clear();
456
456
  for (let e of this.#r) e(this);
457
- this.#r.clear(), pt = this, Tt(n), Tt(t), pt = null, this.#s?.resolve();
457
+ this.#r.clear(), ht = this, Dt(n), Dt(t), ht = null, this.#s?.resolve();
458
458
  var o = B;
459
459
  if (this.#a === 0 && (this.#c.length === 0 || o !== null) && this.#S(), this.#c.length > 0) {
460
460
  if (o !== null) {
@@ -462,14 +462,14 @@ var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t =
462
462
  this.#c = [];
463
463
  } else o = this;
464
464
  }
465
- o !== null && (At.clear(), o.#_());
465
+ o !== null && (Mt.clear(), o.#_());
466
466
  }
467
467
  #v(e, t, n) {
468
- e.f ^= C;
468
+ e.f ^= S;
469
469
  for (var r = e.first; r !== null;) {
470
470
  var i = r.f, a = !!(i & 96);
471
471
  if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
472
- a ? r.f ^= C : i & 4 ? t.push(r) : Wn(r) && (i & 16 && this.#d.add(r), Xn(r));
472
+ a ? r.f ^= S : i & 4 ? t.push(r) : Kn(r) && (i & 16 && this.#d.add(r), Qn(r));
473
473
  var o = r.first;
474
474
  if (o !== null) {
475
475
  r = o;
@@ -509,7 +509,7 @@ var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t =
509
509
  if (r & 2) t(e);
510
510
  else {
511
511
  var i = e;
512
- r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), R(i, w), this.schedule(i));
512
+ r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), R(i, C), this.schedule(i));
513
513
  }
514
514
  }
515
515
  };
@@ -517,10 +517,10 @@ var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t =
517
517
  this.oncommit(() => e.discard()), e.#S(), B = this, this.#_();
518
518
  }
519
519
  #x(e) {
520
- for (var t = 0; t < e.length; t += 1) Ze(e[t], this.#u, this.#d);
520
+ for (var t = 0; t < e.length; t += 1) $e(e[t], this.#u, this.#d);
521
521
  }
522
522
  capture(e, t, n = !1) {
523
- e.v !== l && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), V?.set(e, t)), this.is_fork || (e.v = t);
523
+ e.v !== d && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), V?.set(e, t)), this.is_fork || (e.v = t);
524
524
  }
525
525
  activate() {
526
526
  B = this;
@@ -530,15 +530,15 @@ var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t =
530
530
  }
531
531
  flush() {
532
532
  try {
533
- gt = !0, B = this, this.#_();
533
+ vt = !0, B = this, this.#_();
534
534
  } finally {
535
- yt = 0, mt = null, _t = null, vt = null, gt = !1, B = null, V = null, At.clear();
535
+ xt = 0, gt = null, yt = null, bt = null, vt = !1, B = null, V = null, Mt.clear();
536
536
  }
537
537
  }
538
538
  discard() {
539
539
  for (let e of this.#i) e(this);
540
540
  this.#i.clear();
541
- for (let e of this.async_deriveds.values()) e.reject(it);
541
+ for (let e of this.async_deriveds.values()) e.reject(ot);
542
542
  this.#S(), this.#s?.resolve();
543
543
  }
544
544
  register_created_effect(e) {
@@ -555,7 +555,7 @@ var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t =
555
555
  let e = this.#o.get(t) ?? 0;
556
556
  e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
557
557
  }
558
- this.#m || (this.#m = !0, qe(() => {
558
+ this.#m || (this.#m = !0, L(() => {
559
559
  this.#m = !1, this.linked && this.flush();
560
560
  }));
561
561
  }
@@ -571,12 +571,12 @@ var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t =
571
571
  this.#i.add(e);
572
572
  }
573
573
  settled() {
574
- return (this.#s ??= ne()).promise;
574
+ return (this.#s ??= ae()).promise;
575
575
  }
576
576
  static ensure() {
577
577
  if (B === null) {
578
578
  let t = B = new e();
579
- !gt && !ht && qe(() => {
579
+ !vt && !_t && L(() => {
580
580
  t.#e || t.flush();
581
581
  });
582
582
  }
@@ -586,7 +586,7 @@ var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t =
586
586
  V = null;
587
587
  }
588
588
  schedule(e) {
589
- if (mt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
589
+ if (gt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
590
590
  e.b.defer_effect(e);
591
591
  return;
592
592
  }
@@ -595,160 +595,160 @@ var ft = null, B = null, pt = null, V = null, mt = null, ht = !1, gt = !1, _t =
595
595
  #S() {
596
596
  if (this.linked) {
597
597
  var e = this.#t, t = this.#n;
598
- e === null || (e.#n = t), t === null ? ft = e : t.#t = e, this.linked = !1;
598
+ e === null || (e.#n = t), t === null ? mt = e : t.#t = e, this.linked = !1;
599
599
  }
600
600
  }
601
601
  };
602
- function St(e) {
603
- var t = ht;
604
- ht = !0;
602
+ function wt(e) {
603
+ var t = _t;
604
+ _t = !0;
605
605
  try {
606
606
  var n;
607
607
  for (e && (B !== null && !B.is_fork && B.flush(), n = e());;) {
608
- if (Je(), B === null) return n;
608
+ if (Xe(), B === null) return n;
609
609
  B.flush();
610
610
  }
611
611
  } finally {
612
- ht = t;
612
+ _t = t;
613
613
  }
614
614
  }
615
- function Ct() {
615
+ function Tt() {
616
616
  try {
617
- Ne();
617
+ Ie();
618
618
  } catch (e) {
619
- rn(e, mt);
619
+ on(e, gt);
620
620
  }
621
621
  }
622
- var wt = null;
623
- function Tt(e) {
622
+ var Et = null;
623
+ function Dt(e) {
624
624
  var t = e.length;
625
625
  if (t !== 0) {
626
626
  for (var n = 0; n < t;) {
627
627
  var r = e[n++];
628
- if (!(r.f & 24576) && Wn(r) && (wt = /* @__PURE__ */ new Set(), Xn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Cn(r), wt?.size > 0)) {
629
- At.clear();
630
- for (let e of wt) {
628
+ if (!(r.f & 24576) && Kn(r) && (Et = /* @__PURE__ */ new Set(), Qn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Tn(r), Et?.size > 0)) {
629
+ Mt.clear();
630
+ for (let e of Et) {
631
631
  if (e.f & 24576) continue;
632
632
  let t = [e], n = e.parent;
633
- for (; n !== null;) wt.has(n) && (wt.delete(n), t.push(n)), n = n.parent;
633
+ for (; n !== null;) Et.has(n) && (Et.delete(n), t.push(n)), n = n.parent;
634
634
  for (let e = t.length - 1; e >= 0; e--) {
635
635
  let n = t[e];
636
- n.f & 24576 || Xn(n);
636
+ n.f & 24576 || Qn(n);
637
637
  }
638
638
  }
639
- wt.clear();
639
+ Et.clear();
640
640
  }
641
641
  }
642
- wt = null;
642
+ Et = null;
643
643
  }
644
644
  }
645
- function Et(e) {
645
+ function Ot(e) {
646
646
  B.schedule(e);
647
647
  }
648
- function Dt(e, t) {
648
+ function kt(e, t) {
649
649
  if (!(e.f & 32 && e.f & 1024)) {
650
- e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), R(e, C);
651
- for (var n = e.first; n !== null;) Dt(n, t), n = n.next;
650
+ e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), R(e, S);
651
+ for (var n = e.first; n !== null;) kt(n, t), n = n.next;
652
652
  }
653
653
  }
654
- function Ot(e) {
655
- R(e, C);
656
- for (var t = e.first; t !== null;) Ot(t), t = t.next;
654
+ function At(e) {
655
+ R(e, S);
656
+ for (var t = e.first; t !== null;) At(t), t = t.next;
657
657
  }
658
658
  //#endregion
659
659
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/sources.js
660
- var kt = /* @__PURE__ */ new Set(), At = /* @__PURE__ */ new Map(), jt = !1;
661
- function Mt(e, t) {
660
+ var jt = /* @__PURE__ */ new Set(), Mt = /* @__PURE__ */ new Map(), Nt = !1;
661
+ function Pt(e, t) {
662
662
  return {
663
663
  f: 0,
664
664
  v: e,
665
665
  reactions: null,
666
- equals: Te,
666
+ equals: Oe,
667
667
  rv: 0,
668
668
  wv: 0
669
669
  };
670
670
  }
671
671
  /*#__NO_SIDE_EFFECTS__*/
672
672
  function H(e, t) {
673
- let n = Mt(e, t);
674
- return In(n), n;
673
+ let n = Pt(e, t);
674
+ return Rn(n), n;
675
675
  }
676
676
  /*#__NO_SIDE_EFFECTS__*/
677
- function Nt(e, t = !1, n = !0) {
678
- let r = Mt(e);
679
- return t || (r.equals = De), r;
677
+ function Ft(e, t = !1, n = !0) {
678
+ let r = Pt(e);
679
+ return t || (r.equals = Ae), r;
680
680
  }
681
681
  function U(e, t, n = !1) {
682
- return q !== null && (!Nn || q.f & 131072) && We() && q.f & 4325394 && (Fn === null || !Fn.has(e)) && Re(), It(e, n ? Bt(t) : t, vt);
682
+ return q !== null && (!Fn || q.f & 131072) && qe() && q.f & 4325394 && (Ln === null || !Ln.has(e)) && Ve(), Rt(e, n ? Ht(t) : t, bt);
683
683
  }
684
- var Pt = null, Ft = 0;
685
- function It(e, t, n = null) {
684
+ var It = null, Lt = 0;
685
+ function Rt(e, t, n = null) {
686
686
  if (!e.equals(t)) {
687
- jn ? At.set(e, t) : At.has(e) || At.set(e, e.v);
688
- var r = xt.ensure();
687
+ Nn ? Mt.set(e, t) : Mt.has(e) || Mt.set(e, e.v);
688
+ var r = Ct.ensure();
689
689
  if (r.capture(e, t), e.f & 2) {
690
690
  let t = e;
691
- e.f & 2048 && ct(t), V === null && Xe(t);
691
+ e.f & 2048 && ut(t), V === null && Qe(t);
692
692
  }
693
- e.wv = Un(), Pt = null, Ft = 0, zt(e, w, n), Pt = null, We() && Y !== null && Y.f & 1024 && !(Y.f & 96) && (Ln === null ? Rn([e]) : Ln.push(e)), !r.is_fork && kt.size > 0 && !jt && Lt();
693
+ e.wv = Gn(), It = null, Lt = 0, Vt(e, C, n), It = null, qe() && Y !== null && Y.f & 1024 && !(Y.f & 96) && (zn === null ? Bn([e]) : zn.push(e)), !r.is_fork && jt.size > 0 && !Nt && zt();
694
694
  }
695
695
  return t;
696
696
  }
697
- function Lt() {
698
- jt = !1;
699
- for (let e of kt) {
700
- e.f & 1024 && R(e, T);
697
+ function zt() {
698
+ Nt = !1;
699
+ for (let e of jt) {
700
+ e.f & 1024 && R(e, w);
701
701
  let t;
702
702
  try {
703
- t = Wn(e);
703
+ t = Kn(e);
704
704
  } catch {
705
705
  t = !0;
706
706
  }
707
- t && Xn(e);
707
+ t && Qn(e);
708
708
  }
709
- kt.clear();
709
+ jt.clear();
710
710
  }
711
- function Rt(e) {
711
+ function Bt(e) {
712
712
  U(e, e.v + 1);
713
713
  }
714
- function zt(e, t, n) {
714
+ function Vt(e, t, n) {
715
715
  var r = e.reactions;
716
716
  if (r !== null) {
717
- var i = We(), a = r.length;
718
- if (Ft += a, Ft > 1e5 && Pt === null && (Pt = /* @__PURE__ */ new Set()), Pt !== null) {
719
- if (Pt.has(e)) return;
720
- Pt.add(e);
717
+ var i = qe(), a = r.length;
718
+ if (Lt += a, Lt > 1e5 && It === null && (It = /* @__PURE__ */ new Set()), It !== null) {
719
+ if (It.has(e)) return;
720
+ It.add(e);
721
721
  }
722
722
  for (var o = 0; o < a; o++) {
723
723
  var s = r[o], c = s.f;
724
724
  if (i || s !== Y) {
725
- var l = (c & w) === 0;
726
- if (l && R(s, t), c & 131072) kt.add(s);
725
+ var l = (c & C) === 0;
726
+ if (l && R(s, t), c & 131072) jt.add(s);
727
727
  else if (c & 2) {
728
728
  var u = s;
729
- V?.delete(u), zt(u, T, n);
729
+ V?.delete(u), Vt(u, w, n);
730
730
  } else if (l) {
731
731
  var d = s;
732
- c & 16 && wt !== null && wt.add(d), n === null ? Et(d) : n.push(d);
732
+ c & 16 && Et !== null && Et.add(d), n === null ? Ot(d) : n.push(d);
733
733
  }
734
734
  }
735
735
  }
736
736
  }
737
737
  }
738
- function Bt(e) {
739
- if (typeof e != "object" || !e || j in e || M in e) return e;
740
- let t = x(e);
741
- if (t !== y && t !== b) return e;
742
- var n = /* @__PURE__ */ new Map(), r = d(e), i = /* @__PURE__ */ H(0), a = null, o = Vn, s = (e) => {
743
- if (Vn === o) return e();
744
- var t = q, n = Vn;
745
- J(null), Hn(o);
738
+ function Ht(e) {
739
+ if (typeof e != "object" || !e || k in e || A in e) return e;
740
+ let t = te(e);
741
+ if (t !== b && t !== x) return e;
742
+ var n = /* @__PURE__ */ new Map(), r = p(e), i = /* @__PURE__ */ H(0), a = null, o = Un, s = (e) => {
743
+ if (Un === o) return e();
744
+ var t = q, n = Un;
745
+ J(null), Wn(o);
746
746
  var r = e();
747
- return J(t), Hn(n), r;
747
+ return J(t), Wn(n), r;
748
748
  };
749
749
  return r && n.set("length", /* @__PURE__ */ H(e.length, a)), new Proxy(e, {
750
750
  defineProperty(e, t, r) {
751
- (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Ie();
751
+ (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && ze();
752
752
  var i = n.get(t);
753
753
  return i === void 0 ? s(() => {
754
754
  var e = /* @__PURE__ */ H(r.value, a);
@@ -759,18 +759,18 @@ function Bt(e) {
759
759
  var r = n.get(t);
760
760
  if (r === void 0) {
761
761
  if (t in e) {
762
- let e = s(() => /* @__PURE__ */ H(l, a));
763
- n.set(t, e), Rt(i);
762
+ let e = s(() => /* @__PURE__ */ H(d, a));
763
+ n.set(t, e), Bt(i);
764
764
  }
765
- } else U(r, l), Rt(i);
765
+ } else U(r, d), Bt(i);
766
766
  return !0;
767
767
  },
768
768
  get(t, r, i) {
769
- if (r === j) return e;
769
+ if (r === k) return e;
770
770
  var o = n.get(r), c = r in t;
771
- if (o === void 0 && (!c || _(t, r)?.writable) && (o = s(() => /* @__PURE__ */ H(Bt(c ? t[r] : l), a)), n.set(r, o)), o !== void 0) {
772
- var u = Q(o);
773
- return u === l ? void 0 : u;
771
+ if (o === void 0 && (!c || y(t, r)?.writable) && (o = s(() => /* @__PURE__ */ H(Ht(c ? t[r] : d), a)), n.set(r, o)), o !== void 0) {
772
+ var l = Q(o);
773
+ return l === d ? void 0 : l;
774
774
  }
775
775
  return Reflect.get(t, r, i);
776
776
  },
@@ -779,7 +779,7 @@ function Bt(e) {
779
779
  var r = Reflect.getOwnPropertyDescriptor(e, t), i = n.get(t);
780
780
  if (i !== void 0) {
781
781
  var a = Q(i);
782
- if (a === l) return;
782
+ if (a === d) return;
783
783
  if (r && "value" in r) r.value = a;
784
784
  else return {
785
785
  enumerable: !0,
@@ -791,29 +791,29 @@ function Bt(e) {
791
791
  return r;
792
792
  },
793
793
  has(e, t) {
794
- if (t === j) return !0;
795
- var r = n.get(t), i = r !== void 0 && r.v !== l || Reflect.has(e, t);
796
- return (r !== void 0 || Y !== null && (!i || _(e, t)?.writable)) && (r === void 0 && (r = s(() => /* @__PURE__ */ H(i ? Bt(e[t]) : l, a)), n.set(t, r)), Q(r) === l) ? !1 : i;
794
+ if (t === k) return !0;
795
+ var r = n.get(t), i = r !== void 0 && r.v !== d || Reflect.has(e, t);
796
+ return (r !== void 0 || Y !== null && (!i || y(e, t)?.writable)) && (r === void 0 && (r = s(() => /* @__PURE__ */ H(i ? Ht(e[t]) : d, a)), n.set(t, r)), Q(r) === d) ? !1 : i;
797
797
  },
798
798
  set(e, t, o, c) {
799
- var u = n.get(t), d = t in e;
800
- if (r && t === "length") for (var f = o; f < u.v; f += 1) {
799
+ var l = n.get(t), u = t in e;
800
+ if (r && t === "length") for (var f = o; f < l.v; f += 1) {
801
801
  var p = n.get(f + "");
802
- p === void 0 ? f in e && (p = s(() => /* @__PURE__ */ H(l, a)), n.set(f + "", p)) : U(p, l);
802
+ p === void 0 ? f in e && (p = s(() => /* @__PURE__ */ H(d, a)), n.set(f + "", p)) : U(p, d);
803
803
  }
804
- if (u === void 0) (!d || _(e, t)?.writable) && (u = s(() => /* @__PURE__ */ H(void 0, a)), U(u, Bt(o)), n.set(t, u));
804
+ if (l === void 0) (!u || y(e, t)?.writable) && (l = s(() => /* @__PURE__ */ H(void 0, a)), U(l, Ht(o)), n.set(t, l));
805
805
  else {
806
- d = u.v !== l;
807
- var m = s(() => Bt(o));
808
- U(u, m);
806
+ u = l.v !== d;
807
+ var m = s(() => Ht(o));
808
+ U(l, m);
809
809
  }
810
810
  var h = Reflect.getOwnPropertyDescriptor(e, t);
811
- if (h?.set && h.set.call(c, o), !d) {
811
+ if (h?.set && h.set.call(c, o), !u) {
812
812
  if (r && typeof t == "string") {
813
- var g = n.get("length"), v = Number(t);
814
- Number.isInteger(v) && v >= g.v && U(g, v + 1);
813
+ var g = n.get("length"), _ = Number(t);
814
+ Number.isInteger(_) && _ >= g.v && U(g, _ + 1);
815
815
  }
816
- Rt(i);
816
+ Bt(i);
817
817
  }
818
818
  return !0;
819
819
  },
@@ -821,98 +821,98 @@ function Bt(e) {
821
821
  Q(i);
822
822
  var t = Reflect.ownKeys(e).filter((e) => {
823
823
  var t = n.get(e);
824
- return t === void 0 || t.v !== l;
824
+ return t === void 0 || t.v !== d;
825
825
  });
826
- for (var [r, a] of n) a.v !== l && !(r in e) && t.push(r);
826
+ for (var [r, a] of n) a.v !== d && !(r in e) && t.push(r);
827
827
  return t;
828
828
  },
829
829
  setPrototypeOf() {
830
- Le();
830
+ Be();
831
831
  }
832
832
  });
833
833
  }
834
- var Vt, Ht, Ut, Wt;
835
- function Gt() {
836
- if (Vt === void 0) {
837
- Vt = window, Ht = /Firefox/.test(navigator.userAgent);
834
+ var Ut, Wt, Gt, Kt;
835
+ function qt() {
836
+ if (Ut === void 0) {
837
+ Ut = window, Wt = /Firefox/.test(navigator.userAgent);
838
838
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
839
- Ut = _(t, "firstChild").get, Wt = _(t, "nextSibling").get, S(e) && (e[fe] = void 0, e[de] = null, e[pe] = void 0, e.__e = void 0), S(n) && (n[me] = void 0);
839
+ Gt = y(t, "firstChild").get, Kt = y(t, "nextSibling").get, ne(e) && (e[ge] = void 0, e[he] = null, e[_e] = void 0, e.__e = void 0), ne(n) && (n[ve] = void 0);
840
840
  }
841
841
  }
842
842
  function W(e = "") {
843
843
  return document.createTextNode(e);
844
844
  }
845
845
  /*@__NO_SIDE_EFFECTS__*/
846
- function Kt(e) {
847
- return Ut.call(e);
846
+ function Jt(e) {
847
+ return Gt.call(e);
848
848
  }
849
849
  /*@__NO_SIDE_EFFECTS__*/
850
- function qt(e) {
851
- return Wt.call(e);
850
+ function Yt(e) {
851
+ return Kt.call(e);
852
852
  }
853
- function Jt(e, t) {
854
- if (!N) return /* @__PURE__ */ Kt(e);
855
- var n = /* @__PURE__ */ Kt(F);
856
- if (n === null) n = F.appendChild(W());
853
+ function Xt(e, t) {
854
+ if (!j) return /* @__PURE__ */ Jt(e);
855
+ var n = /* @__PURE__ */ Jt(N);
856
+ if (n === null) n = N.appendChild(W());
857
857
  else if (t && n.nodeType !== 3) {
858
858
  var r = W();
859
- return n?.before(r), I(r), r;
859
+ return n?.before(r), P(r), r;
860
860
  }
861
- return t && tn(n), I(n), n;
861
+ return t && rn(n), P(n), n;
862
862
  }
863
- function Yt(e, t = !1) {
864
- if (!N) {
865
- var n = /* @__PURE__ */ Kt(e);
866
- return n instanceof Comment && n.data === "" ? /* @__PURE__ */ qt(n) : n;
863
+ function Zt(e, t = !1) {
864
+ if (!j) {
865
+ var n = /* @__PURE__ */ Jt(e);
866
+ return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Yt(n) : n;
867
867
  }
868
868
  if (t) {
869
- if (F?.nodeType !== 3) {
869
+ if (N?.nodeType !== 3) {
870
870
  var r = W();
871
- return F?.before(r), I(r), r;
871
+ return N?.before(r), P(r), r;
872
872
  }
873
- tn(F);
873
+ rn(N);
874
874
  }
875
- return F;
875
+ return N;
876
876
  }
877
- function Xt(e, t = !1) {
878
- if (!N) return /* @__PURE__ */ Kt(e);
879
- var n = Jt(e, t);
880
- return xe(e), n;
877
+ function Qt(e, t = !1) {
878
+ if (!j) return /* @__PURE__ */ Jt(e);
879
+ var n = Xt(e, t);
880
+ return we(e), n;
881
881
  }
882
- function Zt(e, t = 1, n = !1) {
883
- let r = N ? F : e;
884
- for (var i; t--;) i = r, r = /* @__PURE__ */ qt(r);
885
- if (!N) return r;
882
+ function $t(e, t = 1, n = !1) {
883
+ let r = j ? N : e;
884
+ for (var i; t--;) i = r, r = /* @__PURE__ */ Yt(r);
885
+ if (!j) return r;
886
886
  if (n) {
887
887
  if (r?.nodeType !== 3) {
888
888
  var a = W();
889
- return r === null ? i?.after(a) : r.before(a), I(a), a;
889
+ return r === null ? i?.after(a) : r.before(a), P(a), a;
890
890
  }
891
- tn(r);
891
+ rn(r);
892
892
  }
893
- return I(r), r;
893
+ return P(r), r;
894
894
  }
895
- function Qt(e) {
895
+ function en(e) {
896
896
  e.textContent = "";
897
897
  }
898
- function $t() {
898
+ function tn() {
899
899
  return !1;
900
900
  }
901
- function en(e, t, n) {
901
+ function nn(e, t, n) {
902
902
  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);
903
903
  }
904
- function tn(e) {
904
+ function rn(e) {
905
905
  if (e.nodeValue.length < 65536) return;
906
906
  let t = e.nextSibling;
907
907
  for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
908
908
  }
909
- function nn(e) {
909
+ function an(e) {
910
910
  var t = Y;
911
- if (t === null) return q.f |= A, e;
911
+ if (t === null) return q.f |= O, e;
912
912
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
913
- rn(e, t);
913
+ on(e, t);
914
914
  }
915
- function rn(e, t) {
915
+ function on(e, t) {
916
916
  if (!(t !== null && t.f & 16384)) {
917
917
  for (; t !== null;) {
918
918
  if (t.f & 128 && !(t.f & 33570816)) {
@@ -931,21 +931,21 @@ function rn(e, t) {
931
931
  }
932
932
  //#endregion
933
933
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/effects.js
934
- function an(e) {
935
- Y === null && (q === null && Me(e), je()), jn && Ae(e);
934
+ function sn(e) {
935
+ Y === null && (q === null && Fe(e), Pe()), Nn && Ne(e);
936
936
  }
937
- function on(e, t) {
937
+ function cn(e, t) {
938
938
  var n = t.last;
939
939
  n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
940
940
  }
941
- function sn(e, t) {
941
+ function ln(e, t) {
942
942
  var n = Y;
943
- n !== null && n.f & 8192 && (e |= re);
943
+ n !== null && n.f & 8192 && (e |= oe);
944
944
  var r = {
945
- ctx: L,
945
+ ctx: I,
946
946
  deps: null,
947
947
  nodes: null,
948
- f: e | w | 512,
948
+ f: e | C | 512,
949
949
  first: null,
950
950
  fn: t,
951
951
  last: null,
@@ -959,103 +959,103 @@ function sn(e, t) {
959
959
  };
960
960
  B?.register_created_effect(r);
961
961
  var i = r;
962
- if (e & 4) _t === null ? xt.ensure().schedule(r) : _t.push(r);
962
+ if (e & 4) yt === null ? Ct.ensure().schedule(r) : yt.push(r);
963
963
  else if (t !== null) {
964
964
  try {
965
- Xn(r);
965
+ Qn(r);
966
966
  } catch (e) {
967
967
  throw K(r), e;
968
968
  }
969
- 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 |= ae));
969
+ 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 |= le));
970
970
  }
971
- if (i !== null && (i.parent = n, n !== null && on(i, n), q !== null && q.f & 2 && !(e & 64))) {
971
+ if (i !== null && (i.parent = n, n !== null && cn(i, n), q !== null && q.f & 2 && !(e & 64))) {
972
972
  var a = q;
973
973
  (a.effects ??= []).push(i);
974
974
  }
975
975
  return r;
976
976
  }
977
- function cn() {
978
- return q !== null && !Nn;
977
+ function un() {
978
+ return q !== null && !Fn;
979
979
  }
980
- function ln(e) {
981
- let t = sn(8, null);
982
- return R(t, C), t.teardown = e, t;
980
+ function dn(e) {
981
+ let t = ln(8, null);
982
+ return R(t, S), t.teardown = e, t;
983
983
  }
984
- function un(e) {
985
- an("$effect");
984
+ function fn(e) {
985
+ sn("$effect");
986
986
  var t = Y.f;
987
- if (!q && t & 32 && L !== null && !L.i) {
988
- var n = L;
987
+ if (!q && t & 32 && I !== null && !I.i) {
988
+ var n = I;
989
989
  (n.e ??= []).push(e);
990
- } else return dn(e);
990
+ } else return pn(e);
991
991
  }
992
- function dn(e) {
993
- return sn(4 | oe, e);
992
+ function pn(e) {
993
+ return ln(4 | ue, e);
994
994
  }
995
- function fn(e) {
996
- xt.ensure();
997
- let t = sn(64 | O, e);
995
+ function mn(e) {
996
+ Ct.ensure();
997
+ let t = ln(64 | E, e);
998
998
  return () => {
999
999
  K(t);
1000
1000
  };
1001
1001
  }
1002
- function pn(e) {
1003
- xt.ensure();
1004
- let t = sn(64 | O, e);
1002
+ function hn(e) {
1003
+ Ct.ensure();
1004
+ let t = ln(64 | E, e);
1005
1005
  return (e = {}) => new Promise((n) => {
1006
- e.outro ? wn(t, () => {
1006
+ e.outro ? En(t, () => {
1007
1007
  K(t), n(void 0);
1008
1008
  }) : (K(t), n(void 0));
1009
1009
  });
1010
1010
  }
1011
- function mn(e) {
1012
- return sn(4, e);
1011
+ function gn(e) {
1012
+ return ln(4, e);
1013
1013
  }
1014
- function hn(e) {
1015
- return sn(ce | O, e);
1014
+ function _n(e) {
1015
+ return ln(fe | E, e);
1016
1016
  }
1017
- function gn(e, t = 0) {
1018
- return sn(8 | t, e);
1017
+ function vn(e, t = 0) {
1018
+ return ln(8 | t, e);
1019
1019
  }
1020
- function _n(e, t = [], n = [], r = []) {
1021
- $e(r, t, n, (t) => {
1022
- sn(8, () => {
1020
+ function yn(e, t = [], n = [], r = []) {
1021
+ tt(r, t, n, (t) => {
1022
+ ln(8, () => {
1023
1023
  e(...t.map(Q));
1024
1024
  });
1025
1025
  });
1026
1026
  }
1027
- function vn(e, t = 0) {
1028
- return sn(16 | t, e);
1027
+ function bn(e, t = 0) {
1028
+ return ln(16 | t, e);
1029
1029
  }
1030
1030
  function G(e) {
1031
- return sn(32 | O, e);
1031
+ return ln(32 | E, e);
1032
1032
  }
1033
- function yn(e) {
1033
+ function xn(e) {
1034
1034
  var t = e.teardown;
1035
1035
  if (t !== null) {
1036
- let n = jn, r = q;
1037
- Mn(!0), J(null);
1036
+ let n = Nn, r = q;
1037
+ Pn(!0), J(null);
1038
1038
  try {
1039
1039
  t.call(null);
1040
1040
  } catch (t) {
1041
- rn(t, e.parent);
1041
+ on(t, e.parent);
1042
1042
  } finally {
1043
- Mn(n), J(r);
1043
+ Pn(n), J(r);
1044
1044
  }
1045
1045
  }
1046
1046
  }
1047
- function bn(e, t = !1) {
1047
+ function Sn(e, t = !1) {
1048
1048
  var n = e.first;
1049
1049
  for (e.first = e.last = null; n !== null;) {
1050
1050
  let e = n.ac;
1051
- e !== null && Qe(() => {
1052
- e.abort(he);
1051
+ e !== null && et(() => {
1052
+ e.abort(ye);
1053
1053
  });
1054
1054
  var r = n.next;
1055
1055
  n.f & 64 ? n.parent = null : K(n, t), n = r;
1056
1056
  }
1057
1057
  }
1058
- function xn(e) {
1058
+ function Cn(e) {
1059
1059
  for (var t = e.first; t !== null;) {
1060
1060
  var n = t.next;
1061
1061
  t.f & 32 || K(t), t = n;
@@ -1063,26 +1063,26 @@ function xn(e) {
1063
1063
  }
1064
1064
  function K(e, t = !0) {
1065
1065
  var n = !1;
1066
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Sn(e.nodes.start, e.nodes.end), n = !0), e.f |= D, bn(e, t && !n), Yn(e, 0);
1066
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (wn(e.nodes.start, e.nodes.end), n = !0), e.f |= ce, Sn(e, t && !n), Zn(e, 0);
1067
1067
  var r = e.nodes && e.nodes.t;
1068
1068
  if (r !== null) for (let e of r) e.stop();
1069
- yn(e), e.f ^= D, e.f |= ie;
1069
+ xn(e), e.f ^= ce, e.f |= se;
1070
1070
  var i = e.parent;
1071
- i !== null && i.first !== null && Cn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1071
+ 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;
1072
1072
  }
1073
- function Sn(e, t) {
1073
+ function wn(e, t) {
1074
1074
  for (; e !== null;) {
1075
- var n = e === t ? null : /* @__PURE__ */ qt(e);
1075
+ var n = e === t ? null : /* @__PURE__ */ Yt(e);
1076
1076
  e.remove(), e = n;
1077
1077
  }
1078
1078
  }
1079
- function Cn(e) {
1079
+ function Tn(e) {
1080
1080
  var t = e.parent, n = e.prev, r = e.next;
1081
1081
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1082
1082
  }
1083
- function wn(e, t, n = !0) {
1083
+ function En(e, t, n = !0) {
1084
1084
  var r = [];
1085
- e.f |= 256, Tn(e, r, !0);
1085
+ e.f |= 256, Dn(e, r, !0);
1086
1086
  var i = () => {
1087
1087
  n && K(e), t && t();
1088
1088
  }, a = r.length;
@@ -1091,217 +1091,217 @@ function wn(e, t, n = !0) {
1091
1091
  for (var s of r) s.out(o);
1092
1092
  } else i();
1093
1093
  }
1094
- function Tn(e, t, n) {
1094
+ function Dn(e, t, n) {
1095
1095
  if (!(e.f & 8192)) {
1096
- e.f ^= re;
1096
+ e.f ^= oe;
1097
1097
  var r = e.nodes && e.nodes.t;
1098
1098
  if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
1099
1099
  for (var i = e.first; i !== null;) {
1100
1100
  var a = i.next;
1101
1101
  if (!(i.f & 64)) {
1102
1102
  var o = !!(i.f & 65536) || !!(i.f & 32) && !!(e.f & 16);
1103
- Tn(i, t, o ? n : !1);
1103
+ Dn(i, t, o ? n : !1);
1104
1104
  }
1105
1105
  i = a;
1106
1106
  }
1107
1107
  }
1108
1108
  }
1109
- function En(e) {
1110
- e.f &= -257, Dn(e, !0);
1109
+ function On(e) {
1110
+ e.f &= -257, kn(e, !0);
1111
1111
  }
1112
- function Dn(e, t) {
1112
+ function kn(e, t) {
1113
1113
  if (!(e.f & 256) && e.f & 8192) {
1114
- e.f ^= re, e.f & 1024 || (R(e, w), xt.ensure().schedule(e));
1114
+ e.f ^= oe, e.f & 1024 || (R(e, C), Ct.ensure().schedule(e));
1115
1115
  for (var n = e.first; n !== null;) {
1116
1116
  var r = n.next, i = !!(n.f & 65536) || !!(n.f & 32);
1117
- Dn(n, i ? t : !1), n = r;
1117
+ kn(n, i ? t : !1), n = r;
1118
1118
  }
1119
1119
  var a = e.nodes && e.nodes.t;
1120
1120
  if (a !== null) for (let e of a) (e.is_global || t) && e.in();
1121
1121
  }
1122
1122
  }
1123
- function On(e, t) {
1123
+ function An(e, t) {
1124
1124
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
1125
- var i = n === r ? null : /* @__PURE__ */ qt(n);
1125
+ var i = n === r ? null : /* @__PURE__ */ Yt(n);
1126
1126
  t.append(n), n = i;
1127
1127
  }
1128
1128
  }
1129
1129
  //#endregion
1130
1130
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/legacy.js
1131
- var kn = null, An = !1, jn = !1;
1132
- function Mn(e) {
1133
- jn = e;
1131
+ var jn = null, Mn = !1, Nn = !1;
1132
+ function Pn(e) {
1133
+ Nn = e;
1134
1134
  }
1135
- var q = null, Nn = !1;
1135
+ var q = null, Fn = !1;
1136
1136
  function J(e) {
1137
1137
  q = e;
1138
1138
  }
1139
1139
  var Y = null;
1140
- function Pn(e) {
1141
- Y = e;
1142
- }
1143
- var Fn = null;
1144
1140
  function In(e) {
1145
- q !== null && (q.f & 2097152 || q.f & 2) && (Fn ??= /* @__PURE__ */ new Set()).add(e);
1141
+ Y = e;
1146
1142
  }
1147
- var X = null, Z = 0, Ln = null;
1143
+ var Ln = null;
1148
1144
  function Rn(e) {
1149
- Ln = e;
1150
- }
1151
- var zn = 1, Bn = 0, Vn = Bn;
1152
- function Hn(e) {
1153
- Vn = e;
1145
+ q !== null && (q.f & 2097152 || q.f & 2) && (Ln ??= /* @__PURE__ */ new Set()).add(e);
1154
1146
  }
1155
- function Un() {
1156
- return ++zn;
1147
+ var X = null, Z = 0, zn = null;
1148
+ function Bn(e) {
1149
+ zn = e;
1157
1150
  }
1151
+ var Vn = 1, Hn = 0, Un = Hn;
1158
1152
  function Wn(e) {
1153
+ Un = e;
1154
+ }
1155
+ function Gn() {
1156
+ return ++Vn;
1157
+ }
1158
+ function Kn(e) {
1159
1159
  var t = e.f;
1160
1160
  if (t & 2048) return !0;
1161
1161
  if (t & 4096) {
1162
1162
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1163
1163
  var a = n[i];
1164
- if (Wn(a) && lt(a), a.wv > e.wv) return !0;
1164
+ if (Kn(a) && dt(a), a.wv > e.wv) return !0;
1165
1165
  }
1166
- t & 512 && V === null && R(e, C);
1166
+ t & 512 && V === null && R(e, S);
1167
1167
  }
1168
1168
  return !1;
1169
1169
  }
1170
- function Gn(e, t, n = !0) {
1170
+ function qn(e, t, n = !0) {
1171
1171
  var r = e.reactions;
1172
- if (r !== null && !(Fn !== null && Fn.has(e))) for (var i = 0; i < r.length; i++) {
1172
+ if (r !== null && !(Ln !== null && Ln.has(e))) for (var i = 0; i < r.length; i++) {
1173
1173
  var a = r[i];
1174
- a.f & 2 ? Gn(a, t, !1) : t === a && (n ? R(a, w) : a.f & 1024 && R(a, T), Et(a));
1174
+ a.f & 2 ? qn(a, t, !1) : t === a && (n ? R(a, C) : a.f & 1024 && R(a, w), Ot(a));
1175
1175
  }
1176
1176
  }
1177
- function Kn(e) {
1178
- var t = X, n = Z, r = Ln, i = q, a = Fn, o = L, s = Nn, c = Vn, l = e.f;
1179
- X = null, Z = 0, Ln = null, q = l & 96 ? null : e, Fn = null, Be(e.ctx), Nn = !1, Vn = ++Bn, e.ac !== null && (Qe(() => {
1180
- e.ac.abort(he);
1177
+ function Jn(e) {
1178
+ var t = X, n = Z, r = zn, i = q, a = Ln, o = I, s = Fn, c = Un, l = e.f;
1179
+ X = null, Z = 0, zn = null, q = l & 96 ? null : e, Ln = null, Ue(e.ctx), Fn = !1, Un = ++Hn, e.ac !== null && (et(() => {
1180
+ e.ac.abort(ye);
1181
1181
  }), e.ac = null);
1182
1182
  try {
1183
- e.f |= k;
1183
+ e.f |= D;
1184
1184
  var u = e.fn, d = u();
1185
- e.f |= E;
1186
- var f = qn(e);
1187
- if (We() && Ln !== null && !Nn && f !== null && !(e.f & 6146)) for (var p = 0; p < Ln.length; p++) Gn(Ln[p], e);
1185
+ e.f |= T;
1186
+ var f = Yn(e);
1187
+ if (qe() && zn !== null && !Fn && f !== null && !(e.f & 6146)) for (var p = 0; p < zn.length; p++) qn(zn[p], e);
1188
1188
  if (i !== null && i !== e) {
1189
- if (Bn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Bn;
1190
- if (t !== null) for (let e of t) e.rv = Bn;
1191
- Ln !== null && (r === null ? r = Ln : r.push(...Ln));
1189
+ if (Hn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Hn;
1190
+ if (t !== null) for (let e of t) e.rv = Hn;
1191
+ zn !== null && (r === null ? r = zn : r.push(...zn));
1192
1192
  }
1193
- return e.f & 8388608 && (e.f ^= A), d;
1193
+ return e.f & 8388608 && (e.f ^= O), d;
1194
1194
  } catch (t) {
1195
- return qn(e), nn(t);
1195
+ return Yn(e), an(t);
1196
1196
  } finally {
1197
- e.f ^= k, X = t, Z = n, Ln = r, q = i, Fn = a, Be(o), Nn = s, Vn = c;
1197
+ e.f ^= D, X = t, Z = n, zn = r, q = i, Ln = a, Ue(o), Fn = s, Un = c;
1198
1198
  }
1199
1199
  }
1200
- function qn(e) {
1200
+ function Yn(e) {
1201
1201
  var t = e.deps, n = B?.is_fork;
1202
1202
  if (X !== null) {
1203
1203
  var r;
1204
- if (n || Yn(e, Z), t !== null && Z > 0) for (t.length = Z + X.length, r = 0; r < X.length; r++) t[Z + r] = X[r];
1204
+ if (n || Zn(e, Z), t !== null && Z > 0) for (t.length = Z + X.length, r = 0; r < X.length; r++) t[Z + r] = X[r];
1205
1205
  else e.deps = t = X;
1206
- if (cn() && e.f & 512) for (r = Z; r < t.length; r++) (t[r].reactions ??= []).push(e);
1207
- } else !n && t !== null && Z < t.length && (Yn(e, Z), t.length = Z);
1206
+ if (un() && e.f & 512) for (r = Z; r < t.length; r++) (t[r].reactions ??= []).push(e);
1207
+ } else !n && t !== null && Z < t.length && (Zn(e, Z), t.length = Z);
1208
1208
  return t;
1209
1209
  }
1210
- function Jn(e, t) {
1210
+ function Xn(e, t) {
1211
1211
  let n = t.reactions;
1212
1212
  if (n !== null) {
1213
- var r = f.call(n, e);
1213
+ var r = m.call(n, e);
1214
1214
  if (r !== -1) {
1215
1215
  var i = n.length - 1;
1216
1216
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
1217
1217
  }
1218
1218
  }
1219
- if (n === null && t.f & 2 && (X === null || !p.call(X, t))) {
1219
+ if (n === null && t.f & 2 && (X === null || !h.call(X, t))) {
1220
1220
  var a = t;
1221
- a.f & 512 && (a.f ^= 512), a.v !== l && Xe(a), a.ac !== null && Qe(() => {
1222
- a.ac.abort(he), a.ac = null, R(a, w);
1223
- }), ut(a), Yn(a, 0);
1221
+ a.f & 512 && (a.f ^= 512), a.v !== d && Qe(a), a.ac !== null && et(() => {
1222
+ a.ac.abort(ye), a.ac = null, R(a, C);
1223
+ }), ft(a), Zn(a, 0);
1224
1224
  }
1225
1225
  }
1226
- function Yn(e, t) {
1226
+ function Zn(e, t) {
1227
1227
  var n = e.deps;
1228
- if (n !== null) for (var r = t; r < n.length; r++) Jn(e, n[r]);
1228
+ if (n !== null) for (var r = t; r < n.length; r++) Xn(e, n[r]);
1229
1229
  }
1230
- function Xn(e) {
1230
+ function Qn(e) {
1231
1231
  var t = e.f;
1232
1232
  if (!(t & 16384)) {
1233
- R(e, C);
1234
- var n = Y, r = An;
1235
- Y = e, An = !(t & 96);
1233
+ R(e, S);
1234
+ var n = Y, r = Mn;
1235
+ Y = e, Mn = !(t & 96);
1236
1236
  try {
1237
- t & 16777232 ? xn(e) : bn(e), yn(e);
1238
- var i = Kn(e);
1239
- e.teardown = typeof i == "function" ? i : null, e.wv = zn;
1237
+ t & 16777232 ? Cn(e) : Sn(e), xn(e);
1238
+ var i = Jn(e);
1239
+ e.teardown = typeof i == "function" ? i : null, e.wv = Vn;
1240
1240
  } finally {
1241
- An = r, Y = n;
1241
+ Mn = r, Y = n;
1242
1242
  }
1243
1243
  }
1244
1244
  }
1245
1245
  function Q(e) {
1246
1246
  var t = !!(e.f & 2);
1247
- if (kn?.add(e), q !== null && !Nn && !(Y !== null && Y.f & 16384) && (Fn === null || !Fn.has(e))) {
1247
+ if (jn?.add(e), q !== null && !Fn && !(Y !== null && Y.f & 16384) && (Ln === null || !Ln.has(e))) {
1248
1248
  var n = q.deps;
1249
- if (q.f & 2097152) e.rv < Bn && (e.rv = Bn, X === null && n !== null && n[Z] === e ? Z++ : X === null ? X = [e] : X.push(e));
1249
+ if (q.f & 2097152) e.rv < Hn && (e.rv = Hn, X === null && n !== null && n[Z] === e ? Z++ : X === null ? X = [e] : X.push(e));
1250
1250
  else {
1251
- q.deps ??= [], p.call(q.deps, e) || q.deps.push(e);
1251
+ q.deps ??= [], h.call(q.deps, e) || q.deps.push(e);
1252
1252
  var r = e.reactions;
1253
- r === null ? e.reactions = [q] : p.call(r, q) || r.push(q);
1253
+ r === null ? e.reactions = [q] : h.call(r, q) || r.push(q);
1254
1254
  }
1255
1255
  }
1256
- if (jn && At.has(e)) return At.get(e);
1256
+ if (Nn && Mt.has(e)) return Mt.get(e);
1257
1257
  if (t) {
1258
1258
  var i = e;
1259
- if (jn) {
1259
+ if (Nn) {
1260
1260
  var a = i.v;
1261
- return (!(i.f & 1024) && i.reactions !== null || Qn(i)) && (a = ct(i)), At.set(i, a), a;
1261
+ return (!(i.f & 1024) && i.reactions !== null || er(i)) && (a = ut(i)), Mt.set(i, a), a;
1262
1262
  }
1263
- var o = !(i.f & 512) && !Nn && q !== null && (An || !!(q.f & 512)), s = (i.f & E) === 0;
1264
- Wn(i) && (o && (i.f |= 512), lt(i)), o && !s && (dt(i), Zn(i));
1263
+ var o = !(i.f & 512) && !Fn && q !== null && (Mn || !!(q.f & 512)), s = (i.f & T) === 0;
1264
+ Kn(i) && (o && (i.f |= 512), dt(i)), o && !s && (pt(i), $n(i));
1265
1265
  }
1266
1266
  if (V?.has(e)) return V.get(e);
1267
1267
  if (e.f & 8388608) throw e.v;
1268
1268
  return e.v;
1269
1269
  }
1270
- function Zn(e) {
1271
- if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (dt(t), Zn(t));
1270
+ function $n(e) {
1271
+ if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (pt(t), $n(t));
1272
1272
  }
1273
- function Qn(e) {
1274
- if (e.v === l) return !0;
1273
+ function er(e) {
1274
+ if (e.v === d) return !0;
1275
1275
  if (e.deps === null) return !1;
1276
- for (let t of e.deps) if (At.has(t) || t.f & 2 && Qn(t)) return !0;
1276
+ for (let t of e.deps) if (Mt.has(t) || t.f & 2 && er(t)) return !0;
1277
1277
  return !1;
1278
1278
  }
1279
- function $n(e) {
1280
- var t = Nn;
1279
+ function tr(e) {
1280
+ var t = Fn;
1281
1281
  try {
1282
- return Nn = !0, e();
1282
+ return Fn = !0, e();
1283
1283
  } finally {
1284
- Nn = t;
1284
+ Fn = t;
1285
1285
  }
1286
1286
  }
1287
- function er(e) {
1287
+ function nr(e) {
1288
1288
  if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
1289
- if (j in e) tr(e);
1289
+ if (k in e) rr(e);
1290
1290
  else if (!Array.isArray(e)) for (let t in e) {
1291
1291
  let n = e[t];
1292
- typeof n == "object" && n && j in n && tr(n);
1292
+ typeof n == "object" && n && k in n && rr(n);
1293
1293
  }
1294
1294
  }
1295
1295
  }
1296
- function tr(e, t = /* @__PURE__ */ new Set()) {
1296
+ function rr(e, t = /* @__PURE__ */ new Set()) {
1297
1297
  if (typeof e == "object" && e && !(e instanceof EventTarget) && !t.has(e)) {
1298
1298
  t.add(e), e instanceof Date && e.getTime();
1299
1299
  for (let n in e) try {
1300
- tr(e[n], t);
1300
+ rr(e[n], t);
1301
1301
  } catch {}
1302
- let n = x(e);
1302
+ let n = te(e);
1303
1303
  if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1304
- let t = v(n);
1304
+ let t = ee(n);
1305
1305
  for (let n in t) {
1306
1306
  let r = t[n].get;
1307
1307
  if (r) try {
@@ -1313,25 +1313,25 @@ function tr(e, t = /* @__PURE__ */ new Set()) {
1313
1313
  }
1314
1314
  //#endregion
1315
1315
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/events.js
1316
- var nr = Symbol("events"), rr = /* @__PURE__ */ new Set(), ir = /* @__PURE__ */ new Set();
1317
- function ar(e, t, n) {
1318
- (t[nr] ??= {})[e] = n;
1316
+ var ir = Symbol("events"), ar = /* @__PURE__ */ new Set(), or = /* @__PURE__ */ new Set();
1317
+ function sr(e, t, n) {
1318
+ (t[ir] ??= {})[e] = n;
1319
1319
  }
1320
- function or(e) {
1321
- for (var t = 0; t < e.length; t++) rr.add(e[t]);
1322
- for (var n of ir) n(e);
1320
+ function cr(e) {
1321
+ for (var t = 0; t < e.length; t++) ar.add(e[t]);
1322
+ for (var n of or) n(e);
1323
1323
  }
1324
- var sr = null, cr = !1;
1325
- function lr(e) {
1324
+ var lr = null, ur = !1;
1325
+ function dr(e) {
1326
1326
  var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
1327
- sr = e, cr || (cr = !0, setTimeout(() => {
1328
- cr = !1, sr = null;
1327
+ lr = e, ur || (ur = !0, setTimeout(() => {
1328
+ ur = !1, lr = null;
1329
1329
  }));
1330
- var o = 0, s = sr === e && e[nr];
1330
+ var o = 0, s = lr === e && e[ir];
1331
1331
  if (s) {
1332
1332
  var c = i.indexOf(s);
1333
1333
  if (c !== -1 && (t === document || t === window)) {
1334
- e[nr] = t;
1334
+ e[ir] = t;
1335
1335
  return;
1336
1336
  }
1337
1337
  var l = i.indexOf(t);
@@ -1339,18 +1339,18 @@ function lr(e) {
1339
1339
  c <= l && (o = c);
1340
1340
  }
1341
1341
  if (a = i[o] || e.target, a !== t) {
1342
- g(e, "currentTarget", {
1342
+ v(e, "currentTarget", {
1343
1343
  configurable: !0,
1344
1344
  get() {
1345
1345
  return a || n;
1346
1346
  }
1347
1347
  });
1348
1348
  var u = q, d = Y;
1349
- J(null), Pn(null);
1349
+ J(null), In(null);
1350
1350
  try {
1351
1351
  for (var f, p = []; a !== null && a !== t;) {
1352
1352
  try {
1353
- var m = a[nr]?.[r];
1353
+ var m = a[ir]?.[r];
1354
1354
  m != null && (!a.disabled || e.target === a) && m.call(a, e);
1355
1355
  } catch (e) {
1356
1356
  f ? p.push(e) : f = e;
@@ -1365,23 +1365,23 @@ function lr(e) {
1365
1365
  throw f;
1366
1366
  }
1367
1367
  } finally {
1368
- e[nr] = t, delete e.currentTarget, J(u), Pn(d);
1368
+ e[ir] = t, delete e.currentTarget, J(u), In(d);
1369
1369
  }
1370
1370
  }
1371
1371
  }
1372
1372
  //#endregion
1373
1373
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/reconciler.js
1374
- var ur = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1375
- function dr(e) {
1376
- return ur?.createHTML(e) ?? e;
1374
+ var fr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1375
+ function pr(e) {
1376
+ return fr?.createHTML(e) ?? e;
1377
1377
  }
1378
- function fr(e) {
1379
- var t = en("template");
1380
- return t.innerHTML = dr(e.replaceAll("<!>", "<!---->")), t.content;
1378
+ function mr(e) {
1379
+ var t = nn("template");
1380
+ return t.innerHTML = pr(e.replaceAll("<!>", "<!---->")), t.content;
1381
1381
  }
1382
1382
  //#endregion
1383
1383
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/template.js
1384
- function pr(e, t) {
1384
+ function hr(e, t) {
1385
1385
  var n = Y;
1386
1386
  n.nodes === null && (n.nodes = {
1387
1387
  start: e,
@@ -1391,61 +1391,61 @@ function pr(e, t) {
1391
1391
  });
1392
1392
  }
1393
1393
  /*#__NO_SIDE_EFFECTS__*/
1394
- function mr(e, t) {
1394
+ function gr(e, t) {
1395
1395
  var n = !!(t & 1), r = !!(t & 2), i, a = !e.startsWith("<!>");
1396
1396
  return () => {
1397
- if (N) return pr(F, null), F;
1398
- i === void 0 && (i = fr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Kt(i)));
1399
- var t = r || Ht ? document.importNode(i, !0) : i.cloneNode(!0);
1397
+ if (j) return hr(N, null), N;
1398
+ i === void 0 && (i = mr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Jt(i)));
1399
+ var t = r || Wt ? document.importNode(i, !0) : i.cloneNode(!0);
1400
1400
  if (n) {
1401
- var o = /* @__PURE__ */ Kt(t), s = t.lastChild;
1402
- pr(o, s);
1403
- } else pr(t, t);
1401
+ var o = /* @__PURE__ */ Jt(t), s = t.lastChild;
1402
+ hr(o, s);
1403
+ } else hr(t, t);
1404
1404
  return t;
1405
1405
  };
1406
1406
  }
1407
- function hr() {
1408
- if (N) return pr(F, null), F;
1407
+ function _r() {
1408
+ if (j) return hr(N, null), N;
1409
1409
  var e = document.createDocumentFragment(), t = document.createComment(""), n = W();
1410
- return e.append(t, n), pr(t, n), e;
1410
+ return e.append(t, n), hr(t, n), e;
1411
1411
  }
1412
- function gr(e, t) {
1413
- if (N) {
1412
+ function vr(e, t) {
1413
+ if (j) {
1414
1414
  var n = Y;
1415
- (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = F), be();
1415
+ (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = N), F();
1416
1416
  return;
1417
1417
  }
1418
1418
  e !== null && e.before(t);
1419
1419
  }
1420
1420
  [.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
1421
- var _r = ["touchstart", "touchmove"];
1422
- function vr(e) {
1423
- return _r.includes(e);
1421
+ var yr = ["touchstart", "touchmove"];
1422
+ function br(e) {
1423
+ return yr.includes(e);
1424
1424
  }
1425
1425
  //#endregion
1426
1426
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/create-subscriber.js
1427
- function yr(e) {
1428
- let t = 0, n = Mt(0), r;
1427
+ function xr(e) {
1428
+ let t = 0, n = Pt(0), r;
1429
1429
  return () => {
1430
- cn() && (Q(n), gn(() => (t === 0 && (r = $n(() => e(() => Rt(n)))), t += 1, () => {
1431
- qe(() => {
1432
- --t, t === 0 && (r?.(), r = void 0, Rt(n));
1430
+ un() && (Q(n), vn(() => (t === 0 && (r = tr(() => e(() => Bt(n)))), t += 1, () => {
1431
+ L(() => {
1432
+ --t, t === 0 && (r?.(), r = void 0, Bt(n));
1433
1433
  });
1434
1434
  })));
1435
1435
  };
1436
1436
  }
1437
1437
  //#endregion
1438
1438
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
1439
- var br = ae | O;
1440
- function xr(e, t, n, r) {
1441
- new Sr(e, t, n, r);
1439
+ var Sr = le | E;
1440
+ function Cr(e, t, n, r) {
1441
+ new wr(e, t, n, r);
1442
1442
  }
1443
- var Sr = class {
1443
+ var wr = class {
1444
1444
  parent;
1445
1445
  is_pending = !1;
1446
1446
  transform_error;
1447
1447
  #e;
1448
- #t = N ? F : null;
1448
+ #t = j ? N : null;
1449
1449
  #n;
1450
1450
  #r;
1451
1451
  #i;
@@ -1459,24 +1459,24 @@ var Sr = class {
1459
1459
  #f = /* @__PURE__ */ new Set();
1460
1460
  #p = /* @__PURE__ */ new Set();
1461
1461
  #m = null;
1462
- #h = yr(() => (this.#m = Mt(this.#l), () => {
1462
+ #h = xr(() => (this.#m = Pt(this.#l), () => {
1463
1463
  this.#m = null;
1464
1464
  }));
1465
1465
  constructor(e, t, n, r) {
1466
1466
  this.#e = e, this.#n = t, this.#r = (e) => {
1467
1467
  var t = Y;
1468
1468
  t.b = this, t.f |= 128, n(e);
1469
- }, this.parent = Y.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = vn(() => {
1470
- if (N) {
1469
+ }, this.parent = Y.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = bn(() => {
1470
+ if (j) {
1471
1471
  let e = this.#t;
1472
- be();
1472
+ F();
1473
1473
  let t = e.data === "[!";
1474
1474
  if (e.data.startsWith("[?")) {
1475
1475
  let t = JSON.parse(e.data.slice(2));
1476
1476
  this.#_(t);
1477
1477
  } else t ? this.#y() : this.#g();
1478
1478
  } else this.#b();
1479
- }, br), N && (this.#e = F);
1479
+ }, Sr), j && (this.#e = N);
1480
1480
  }
1481
1481
  #g() {
1482
1482
  try {
@@ -1487,7 +1487,7 @@ var Sr = class {
1487
1487
  }
1488
1488
  #_(e) {
1489
1489
  let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
1490
- qe(r), t && (this.#s = G(() => {
1490
+ L(r), t && (this.#s = G(() => {
1491
1491
  t(this.#e, () => e, () => n);
1492
1492
  }));
1493
1493
  }
@@ -1495,10 +1495,10 @@ var Sr = class {
1495
1495
  var t = !1, n = !1;
1496
1496
  let r = () => {
1497
1497
  if (t) {
1498
- ye();
1498
+ Ce();
1499
1499
  return;
1500
1500
  }
1501
- t = !0, n && ze(), this.#s !== null && wn(this.#s, () => {
1501
+ t = !0, n && He(), this.#s !== null && En(this.#s, () => {
1502
1502
  this.#s = null;
1503
1503
  }), this.#S(() => {
1504
1504
  this.#b();
@@ -1510,14 +1510,14 @@ var Sr = class {
1510
1510
  try {
1511
1511
  n = !0, this.#n.onerror?.(e, r), n = !1;
1512
1512
  } catch (e) {
1513
- rn(e, this.#i && this.#i.parent);
1513
+ on(e, this.#i && this.#i.parent);
1514
1514
  }
1515
1515
  }
1516
1516
  };
1517
1517
  }
1518
1518
  #y() {
1519
1519
  let e = this.#n.pending;
1520
- e && (this.is_pending = !0, this.#o = G(() => e(this.#e)), qe(() => {
1520
+ e && (this.is_pending = !0, this.#o = G(() => e(this.#e)), L(() => {
1521
1521
  var e = this.#c = document.createDocumentFragment(), t = W(), n = !1;
1522
1522
  if (e.append(t), this.#a = this.#S(() => {
1523
1523
  try {
@@ -1526,7 +1526,7 @@ var Sr = class {
1526
1526
  try {
1527
1527
  this.error(e), n = !0;
1528
1528
  } catch (e) {
1529
- rn(e, this.#i.parent);
1529
+ on(e, this.#i.parent);
1530
1530
  }
1531
1531
  return null;
1532
1532
  }
@@ -1534,7 +1534,7 @@ var Sr = class {
1534
1534
  this.#c = null, n && this.#x(B);
1535
1535
  return;
1536
1536
  }
1537
- this.#u === 0 && (this.#e.before(e), this.#c = null, wn(this.#o, () => {
1537
+ this.#u === 0 && (this.#e.before(e), this.#c = null, En(this.#o, () => {
1538
1538
  this.#o = null;
1539
1539
  }), this.#x(B));
1540
1540
  }));
@@ -1545,7 +1545,7 @@ var Sr = class {
1545
1545
  this.#r(this.#e);
1546
1546
  }), this.#u > 0) {
1547
1547
  var e = this.#c = document.createDocumentFragment();
1548
- On(this.#a, e);
1548
+ An(this.#a, e);
1549
1549
  let t = this.#n.pending;
1550
1550
  this.#o = G(() => t(this.#e));
1551
1551
  } else this.#x(B);
@@ -1557,7 +1557,7 @@ var Sr = class {
1557
1557
  this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
1558
1558
  }
1559
1559
  defer_effect(e) {
1560
- Ze(e, this.#f, this.#p);
1560
+ $e(e, this.#f, this.#p);
1561
1561
  }
1562
1562
  is_rendered() {
1563
1563
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -1566,12 +1566,12 @@ var Sr = class {
1566
1566
  return !!this.#n.pending;
1567
1567
  }
1568
1568
  #S(e) {
1569
- var t = Y, n = q, r = L;
1570
- Pn(this.#i), J(this.#i), Be(this.#i.ctx);
1569
+ var t = Y, n = q, r = I;
1570
+ In(this.#i), J(this.#i), Ue(this.#i.ctx);
1571
1571
  try {
1572
- return xt.ensure(), e();
1572
+ return Ct.ensure(), e();
1573
1573
  } finally {
1574
- Pn(t), J(n), Be(r);
1574
+ In(t), J(n), Ue(r);
1575
1575
  }
1576
1576
  }
1577
1577
  #C(e, t) {
@@ -1579,13 +1579,13 @@ var Sr = class {
1579
1579
  this.parent && this.parent.#C(e, t);
1580
1580
  return;
1581
1581
  }
1582
- this.#u += e, this.#u === 0 && (this.#x(t), this.#o && wn(this.#o, () => {
1582
+ this.#u += e, this.#u === 0 && (this.#x(t), this.#o && En(this.#o, () => {
1583
1583
  this.#o = null;
1584
1584
  }), this.#c &&= (this.#e.before(this.#c), null));
1585
1585
  }
1586
1586
  update_pending_count(e, t) {
1587
- this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, qe(() => {
1588
- this.#d = !1, this.#m && It(this.#m, this.#l);
1587
+ this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, L(() => {
1588
+ this.#d = !1, this.#m && Rt(this.#m, this.#l);
1589
1589
  }));
1590
1590
  }
1591
1591
  get_effect_pending() {
@@ -1598,7 +1598,7 @@ var Sr = class {
1598
1598
  })) : this.#w(e);
1599
1599
  }
1600
1600
  #w(e) {
1601
- this.#a &&= (K(this.#a), null), this.#o &&= (K(this.#o), null), this.#s &&= (K(this.#s), null), N && (I(this.#t), Se(), I(Ce()));
1601
+ this.#a &&= (K(this.#a), null), this.#o &&= (K(this.#o), null), this.#s &&= (K(this.#s), null), j && (P(this.#t), Te(), P(Ee()));
1602
1602
  let t = this.#n.failed, n = (e) => {
1603
1603
  let { reset: n, invoke_onerror: r } = this.#v(e);
1604
1604
  r(), t && (this.#s = this.#S(() => {
@@ -1608,92 +1608,92 @@ var Sr = class {
1608
1608
  r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
1609
1609
  });
1610
1610
  } catch (e) {
1611
- return rn(e, this.#i.parent), null;
1611
+ return on(e, this.#i.parent), null;
1612
1612
  }
1613
1613
  }));
1614
1614
  };
1615
- qe(() => {
1615
+ L(() => {
1616
1616
  var t;
1617
1617
  try {
1618
1618
  t = this.transform_error(e);
1619
1619
  } catch (e) {
1620
- rn(e, this.#i && this.#i.parent);
1620
+ on(e, this.#i && this.#i.parent);
1621
1621
  return;
1622
1622
  }
1623
- typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => rn(e, this.#i && this.#i.parent)) : n(t);
1623
+ typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => on(e, this.#i && this.#i.parent)) : n(t);
1624
1624
  });
1625
1625
  }
1626
1626
  };
1627
- function Cr(e, t) {
1627
+ function Tr(e, t) {
1628
1628
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1629
- n !== (e[me] ??= e.nodeValue) && (e[me] = n, e.nodeValue = `${n}`);
1629
+ n !== (e[ve] ??= e.nodeValue) && (e[ve] = n, e.nodeValue = `${n}`);
1630
1630
  }
1631
- function wr(e, t) {
1632
- return Dr(e, t);
1631
+ function Er(e, t) {
1632
+ return kr(e, t);
1633
1633
  }
1634
- function Tr(e, t) {
1635
- Gt(), t.intro = t.intro ?? !1;
1636
- let n = t.target, r = N, i = F;
1634
+ function Dr(e, t) {
1635
+ qt(), t.intro = t.intro ?? !1;
1636
+ let n = t.target, r = j, i = N;
1637
1637
  try {
1638
- for (var a = /* @__PURE__ */ Kt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ qt(a);
1639
- if (!a) throw c;
1640
- P(!0), I(a);
1641
- let r = Dr(e, {
1638
+ for (var a = /* @__PURE__ */ Jt(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ Yt(a);
1639
+ if (!a) throw u;
1640
+ M(!0), P(a);
1641
+ let r = kr(e, {
1642
1642
  ...t,
1643
1643
  anchor: a
1644
1644
  });
1645
- return P(!1), r;
1645
+ return M(!1), r;
1646
1646
  } catch (r) {
1647
1647
  if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
1648
- return r !== c && console.warn("Failed to hydrate: ", r), t.recover === !1 && Pe(), Gt(), Qt(n), P(!1), wr(e, t);
1648
+ return r !== u && console.warn("Failed to hydrate: ", r), t.recover === !1 && Le(), qt(), en(n), M(!1), Er(e, t);
1649
1649
  } finally {
1650
- P(r), I(i);
1650
+ M(r), P(i);
1651
1651
  }
1652
1652
  }
1653
- var Er = /* @__PURE__ */ new Map();
1654
- function Dr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: o = !0, transformError: s }) {
1655
- Gt();
1656
- var l = void 0, u = pn(() => {
1653
+ var Or = /* @__PURE__ */ new Map();
1654
+ function kr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: o = !0, transformError: s }) {
1655
+ qt();
1656
+ var c = void 0, l = hn(() => {
1657
1657
  var o = n ?? t.appendChild(W());
1658
- xr(o, { pending: () => {} }, (t) => {
1659
- Ve({});
1660
- var n = L;
1661
- if (a && (n.c = a), i && (r.$$events = i), N && pr(t, null), l = e(t, r) || Ue(), N && (Y.nodes.end = F, F === null || F.nodeType !== 8 || F.data !== "]")) throw ve(), c;
1662
- He();
1658
+ Cr(o, { pending: () => {} }, (t) => {
1659
+ We({});
1660
+ var n = I;
1661
+ if (a && (n.c = a), i && (r.$$events = i), j && hr(t, null), c = e(t, r) || Ke(), j && (Y.nodes.end = N, N === null || N.nodeType !== 8 || N.data !== "]")) throw Se(), u;
1662
+ Ge();
1663
1663
  }, s);
1664
- var u = /* @__PURE__ */ new Set(), d = (e) => {
1664
+ var l = /* @__PURE__ */ new Set(), d = (e) => {
1665
1665
  for (var n = 0; n < e.length; n++) {
1666
1666
  var r = e[n];
1667
- if (!u.has(r)) {
1668
- u.add(r);
1669
- var i = vr(r);
1667
+ if (!l.has(r)) {
1668
+ l.add(r);
1669
+ var i = br(r);
1670
1670
  for (let e of [t, document]) {
1671
- var a = Er.get(e);
1672
- a === void 0 && (a = /* @__PURE__ */ new Map(), Er.set(e, a));
1671
+ var a = Or.get(e);
1672
+ a === void 0 && (a = /* @__PURE__ */ new Map(), Or.set(e, a));
1673
1673
  var o = a.get(r);
1674
- o === void 0 ? (e.addEventListener(r, lr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1674
+ o === void 0 ? (e.addEventListener(r, dr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1675
1675
  }
1676
1676
  }
1677
1677
  }
1678
1678
  };
1679
- return d(m(rr)), ir.add(d), () => {
1680
- for (var e of u) for (let n of [t, document]) {
1681
- var r = Er.get(n), i = r.get(e);
1682
- --i == 0 ? (n.removeEventListener(e, lr), r.delete(e), r.size === 0 && Er.delete(n)) : r.set(e, i);
1679
+ return d(g(ar)), or.add(d), () => {
1680
+ for (var e of l) for (let n of [t, document]) {
1681
+ var r = Or.get(n), i = r.get(e);
1682
+ --i == 0 ? (n.removeEventListener(e, dr), r.delete(e), r.size === 0 && Or.delete(n)) : r.set(e, i);
1683
1683
  }
1684
- ir.delete(d), o !== n && o.parentNode?.removeChild(o);
1684
+ or.delete(d), o !== n && o.parentNode?.removeChild(o);
1685
1685
  };
1686
1686
  });
1687
- return Or.set(l, u), l;
1687
+ return Ar.set(c, l), c;
1688
1688
  }
1689
- var Or = /* @__PURE__ */ new WeakMap();
1690
- function kr(e, t) {
1691
- let n = Or.get(e);
1692
- return n ? (Or.delete(e), n(t)) : Promise.resolve();
1689
+ var Ar = /* @__PURE__ */ new WeakMap();
1690
+ function jr(e, t) {
1691
+ let n = Ar.get(e);
1692
+ return n ? (Ar.delete(e), n(t)) : Promise.resolve();
1693
1693
  }
1694
1694
  //#endregion
1695
1695
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js
1696
- var Ar = class {
1696
+ var Mr = class {
1697
1697
  anchor;
1698
1698
  #e = /* @__PURE__ */ new Map();
1699
1699
  #t = /* @__PURE__ */ new Map();
@@ -1706,10 +1706,10 @@ var Ar = class {
1706
1706
  #a = (e) => {
1707
1707
  if (this.#e.has(e)) {
1708
1708
  var t = this.#e.get(e), n = this.#t.get(t);
1709
- if (n) En(n), this.#r.delete(t);
1709
+ if (n) On(n), this.#r.delete(t);
1710
1710
  else {
1711
1711
  var r = this.#n.get(t);
1712
- r && (En(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1712
+ r && (On(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1713
1713
  }
1714
1714
  for (let [t, n] of this.#e) {
1715
1715
  if (this.#e.delete(t), t === e) break;
@@ -1721,14 +1721,14 @@ var Ar = class {
1721
1721
  let i = () => {
1722
1722
  if (Array.from(this.#e.values()).includes(e)) {
1723
1723
  var t = document.createDocumentFragment();
1724
- On(r, t), t.append(W()), this.#n.set(e, {
1724
+ An(r, t), t.append(W()), this.#n.set(e, {
1725
1725
  effect: r,
1726
1726
  fragment: t
1727
1727
  });
1728
1728
  } else K(r);
1729
1729
  this.#r.delete(e), this.#t.delete(e);
1730
1730
  };
1731
- this.#i || !n ? (this.#r.add(e), wn(r, i, !1)) : i();
1731
+ this.#i || !n ? (this.#r.add(e), En(r, i, !1)) : i();
1732
1732
  }
1733
1733
  }
1734
1734
  };
@@ -1738,7 +1738,7 @@ var Ar = class {
1738
1738
  for (let [e, n] of this.#n) t.includes(e) || (K(n.effect), this.#n.delete(e));
1739
1739
  };
1740
1740
  ensure(e, t) {
1741
- var n = B, r = $t();
1741
+ var n = B, r = tn();
1742
1742
  if (t && !this.#t.has(e) && !this.#n.has(e)) {
1743
1743
  if (r) {
1744
1744
  var i = document.createDocumentFragment(), a = W();
@@ -1752,27 +1752,27 @@ var Ar = class {
1752
1752
  for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
1753
1753
  for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
1754
1754
  n.oncommit(this.#a), n.ondiscard(this.#o);
1755
- } else N && (this.anchor = F), this.#a(n);
1755
+ } else j && (this.anchor = N), this.#a(n);
1756
1756
  }
1757
1757
  };
1758
1758
  //#endregion
1759
1759
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
1760
- function jr(e, t, n = !1) {
1760
+ function Nr(e, t, n = !1) {
1761
1761
  var r;
1762
- N && (r = F, be());
1763
- var i = new Ar(e), a = n ? ae : 0;
1762
+ j && (r = N, F());
1763
+ var i = new Mr(e), a = n ? le : 0;
1764
1764
  function o(e, t) {
1765
- if (N) {
1766
- var n = we(r);
1765
+ if (j) {
1766
+ var n = De(r);
1767
1767
  if (e !== parseInt(n.substring(1))) {
1768
- var a = Ce();
1769
- I(a), i.anchor = a, P(!1), i.ensure(e, t), P(!0);
1768
+ var a = Ee();
1769
+ P(a), i.anchor = a, M(!1), i.ensure(e, t), M(!0);
1770
1770
  return;
1771
1771
  }
1772
1772
  }
1773
1773
  i.ensure(e, t);
1774
1774
  }
1775
- vn(() => {
1775
+ bn(() => {
1776
1776
  var e = !1;
1777
1777
  t((t, n = 0) => {
1778
1778
  e = !0, o(n, t);
@@ -1781,14 +1781,14 @@ function jr(e, t, n = !1) {
1781
1781
  }
1782
1782
  //#endregion
1783
1783
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/each.js
1784
- function Mr(e, t, n) {
1784
+ function Pr(e, t, n) {
1785
1785
  for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
1786
1786
  let n = t[s];
1787
- wn(n, () => {
1787
+ En(n, () => {
1788
1788
  if (a) {
1789
1789
  if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
1790
1790
  var t = e.outrogroups;
1791
- Nr(e, m(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
1791
+ Fr(e, g(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
1792
1792
  }
1793
1793
  } else --o;
1794
1794
  }, !1);
@@ -1797,15 +1797,15 @@ function Mr(e, t, n) {
1797
1797
  var c = r.length === 0 && n !== null && e.pending.size === 0;
1798
1798
  if (c) {
1799
1799
  var l = n, u = l.parentNode;
1800
- Qt(u), u.append(l), e.items.clear();
1800
+ en(u), u.append(l), e.items.clear();
1801
1801
  }
1802
- Nr(e, t, !c);
1802
+ Fr(e, t, !c);
1803
1803
  } else a = {
1804
1804
  pending: new Set(t),
1805
1805
  done: /* @__PURE__ */ new Set()
1806
1806
  }, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
1807
1807
  }
1808
- function Nr(e, t, n = !0) {
1808
+ function Fr(e, t, n = !0) {
1809
1809
  var r;
1810
1810
  if (e.pending.size > 0) {
1811
1811
  r = /* @__PURE__ */ new Set();
@@ -1813,23 +1813,23 @@ function Nr(e, t, n = !0) {
1813
1813
  }
1814
1814
  for (var i = 0; i < t.length; i++) {
1815
1815
  var a = t[i];
1816
- r?.has(a) ? (a.f |= se, On(a, document.createDocumentFragment())) : K(t[i], n);
1816
+ r?.has(a) ? (a.f |= de, An(a, document.createDocumentFragment())) : K(t[i], n);
1817
1817
  }
1818
1818
  }
1819
- var Pr;
1820
- function Fr(e, t, n, r, i, a = null) {
1819
+ var Ir;
1820
+ function Lr(e, t, n, r, i, a = null) {
1821
1821
  var o = e, s = /* @__PURE__ */ new Map();
1822
1822
  if (t & 4) {
1823
1823
  var c = e;
1824
- o = N ? I(/* @__PURE__ */ Kt(c)) : c.appendChild(W());
1824
+ o = j ? P(/* @__PURE__ */ Jt(c)) : c.appendChild(W());
1825
1825
  }
1826
- N && be();
1827
- var l = null, u = /* @__PURE__ */ ot(() => {
1826
+ j && F();
1827
+ var l = null, u = /* @__PURE__ */ ct(() => {
1828
1828
  var e = n();
1829
- return d(e) ? e : e == null ? [] : m(e);
1830
- }), f, p = /* @__PURE__ */ new Map(), h = !0;
1831
- function g(e) {
1832
- v.effect.f & 16384 || (v.pending.delete(e), v.fallback = l, Lr(v, f, o, t, r), l !== null && (f.length === 0 ? l.f & 33554432 ? (l.f ^= se, zr(l, null, o)) : En(l) : wn(l, () => {
1829
+ return p(e) ? e : e == null ? [] : g(e);
1830
+ }), d, f = /* @__PURE__ */ new Map(), m = !0;
1831
+ function h(e) {
1832
+ v.effect.f & 16384 || (v.pending.delete(e), v.fallback = l, zr(v, d, o, t, r), l !== null && (d.length === 0 ? l.f & 33554432 ? (l.f ^= de, Vr(l, null, o)) : On(l) : En(l, () => {
1833
1833
  l = null;
1834
1834
  })));
1835
1835
  }
@@ -1837,90 +1837,90 @@ function Fr(e, t, n, r, i, a = null) {
1837
1837
  v.pending.delete(e);
1838
1838
  }
1839
1839
  var v = {
1840
- effect: vn(() => {
1841
- f = Q(u);
1842
- var e = f.length;
1840
+ effect: bn(() => {
1841
+ d = Q(u);
1842
+ var e = d.length;
1843
1843
  let c = !1;
1844
- N && we(o) === "[!" != (e === 0) && (o = Ce(), I(o), P(!1), c = !0);
1845
- for (var d = /* @__PURE__ */ new Set(), m = B, v = $t(), y = 0; y < e; y += 1) {
1846
- N && F.nodeType === 8 && F.data === "]" && (o = F, c = !0, P(!1));
1847
- var b = f[y], x = r(b, y), S = h ? null : s.get(x);
1848
- S ? (S.v && It(S.v, b), S.i && It(S.i, y), v && m.unskip_effect(S.e)) : (S = Rr(s, h ? o : Pr ??= W(), b, x, y, i, t, n), h || (S.e.f |= se), s.set(x, S)), d.add(x);
1844
+ j && De(o) === "[!" != (e === 0) && (o = Ee(), P(o), M(!1), c = !0);
1845
+ for (var p = /* @__PURE__ */ new Set(), g = B, v = tn(), y = 0; y < e; y += 1) {
1846
+ j && N.nodeType === 8 && N.data === "]" && (o = N, c = !0, M(!1));
1847
+ var ee = d[y], b = r(ee, y), x = m ? null : s.get(b);
1848
+ x ? (x.v && Rt(x.v, ee), x.i && Rt(x.i, y), v && g.unskip_effect(x.e)) : (x = Br(s, m ? o : Ir ??= W(), ee, b, y, i, t, n), m || (x.e.f |= de), s.set(b, x)), p.add(b);
1849
1849
  }
1850
- if (e === 0 && a && !l && (h ? l = G(() => a(o)) : (l = G(() => a(Pr ??= W())), l.f |= se)), e > d.size && ke("", "", ""), N && e > 0 && I(Ce()), !h) {
1851
- if (p.set(m, d), v) {
1852
- for (let [e, t] of s) d.has(e) || m.skip_effect(t.e);
1853
- m.oncommit(g), m.ondiscard(_);
1854
- } else g(m);
1850
+ if (e === 0 && a && !l && (m ? l = G(() => a(o)) : (l = G(() => a(Ir ??= W())), l.f |= de)), e > p.size && Me("", "", ""), j && e > 0 && P(Ee()), !m) {
1851
+ if (f.set(g, p), v) {
1852
+ for (let [e, t] of s) p.has(e) || g.skip_effect(t.e);
1853
+ g.oncommit(h), g.ondiscard(_);
1854
+ } else h(g);
1855
1855
  }
1856
- c && P(!0), Q(u);
1856
+ c && M(!0), Q(u);
1857
1857
  }),
1858
1858
  flags: t,
1859
1859
  items: s,
1860
- pending: p,
1860
+ pending: f,
1861
1861
  outrogroups: null,
1862
1862
  fallback: l
1863
1863
  };
1864
- h = !1, N && (o = F);
1864
+ m = !1, j && (o = N);
1865
1865
  }
1866
- function Ir(e) {
1866
+ function Rr(e) {
1867
1867
  for (; e !== null && !(e.f & 32);) e = e.next;
1868
1868
  return e;
1869
1869
  }
1870
- function Lr(e, t, n, r, i) {
1871
- var a = !!(r & 8), o = t.length, s = e.items, c = Ir(e.effect.first), l, u = null, d, f = [], p = [], h, g, _, v;
1872
- 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(_));
1870
+ function zr(e, t, n, r, i) {
1871
+ var a = !!(r & 8), o = t.length, s = e.items, c = Rr(e.effect.first), l, u = null, d, f = [], p = [], m, h, _, v;
1872
+ if (a) for (v = 0; v < o; v += 1) m = t[v], h = i(m, v), _ = s.get(h).e, _.f & 33554432 || (_.nodes?.a?.measure(), (d ??= /* @__PURE__ */ new Set()).add(_));
1873
1873
  for (v = 0; v < o; v += 1) {
1874
- 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(_);
1875
- if (_.f & 8192 && (En(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) {
1876
- if (_.f ^= se, _ === c) zr(_, null, n);
1874
+ if (m = t[v], h = i(m, v), _ = s.get(h).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(_), t.done.delete(_);
1875
+ if (_.f & 8192 && (On(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) {
1876
+ if (_.f ^= de, _ === c) Vr(_, null, n);
1877
1877
  else {
1878
1878
  var y = u ? u.next : c;
1879
- _ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Br(e, u, _), Br(e, _, y), zr(_, y, n), u = _, f = [], p = [], c = Ir(u.next);
1879
+ _ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Hr(e, u, _), Hr(e, _, y), Vr(_, y, n), u = _, f = [], p = [], c = Rr(u.next);
1880
1880
  continue;
1881
1881
  }
1882
1882
  }
1883
1883
  if (_ !== c) {
1884
1884
  if (l !== void 0 && l.has(_)) {
1885
1885
  if (f.length < p.length) {
1886
- var b = p[0], x;
1887
- u = b.prev;
1888
- var S = f[0], ee = f[f.length - 1];
1889
- for (x = 0; x < f.length; x += 1) zr(f[x], b, n);
1890
- for (x = 0; x < p.length; x += 1) l.delete(p[x]);
1891
- Br(e, S.prev, ee.next), Br(e, u, S), Br(e, ee, b), c = b, u = ee, --v, f = [], p = [];
1892
- } else l.delete(_), zr(_, c, n), Br(e, _.prev, _.next), Br(e, _, u === null ? e.effect.first : u.next), Br(e, u, _), u = _;
1886
+ var ee = p[0], b;
1887
+ u = ee.prev;
1888
+ var x = f[0], te = f[f.length - 1];
1889
+ for (b = 0; b < f.length; b += 1) Vr(f[b], ee, n);
1890
+ for (b = 0; b < p.length; b += 1) l.delete(p[b]);
1891
+ Hr(e, x.prev, te.next), Hr(e, u, x), Hr(e, te, ee), c = ee, u = te, --v, f = [], p = [];
1892
+ } else l.delete(_), Vr(_, c, n), Hr(e, _.prev, _.next), Hr(e, _, u === null ? e.effect.first : u.next), Hr(e, u, _), u = _;
1893
1893
  continue;
1894
1894
  }
1895
- for (f = [], p = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), p.push(c), c = Ir(c.next);
1895
+ for (f = [], p = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), p.push(c), c = Rr(c.next);
1896
1896
  if (c === null) continue;
1897
1897
  }
1898
- _.f & 33554432 || f.push(_), u = _, c = Ir(_.next);
1898
+ _.f & 33554432 || f.push(_), u = _, c = Rr(_.next);
1899
1899
  }
1900
1900
  if (e.outrogroups !== null) {
1901
- for (let t of e.outrogroups) t.pending.size === 0 && (Nr(e, m(t.done)), e.outrogroups?.delete(t));
1901
+ for (let t of e.outrogroups) t.pending.size === 0 && (Fr(e, g(t.done)), e.outrogroups?.delete(t));
1902
1902
  e.outrogroups.size === 0 && (e.outrogroups = null);
1903
1903
  }
1904
1904
  if (c !== null || l !== void 0) {
1905
- var te = [];
1906
- if (l !== void 0) for (_ of l) _.f & 8192 || te.push(_);
1907
- for (; c !== null;) !(c.f & 8192) && c !== e.fallback && te.push(c), c = Ir(c.next);
1908
- var ne = te.length;
1909
- if (ne > 0) {
1910
- var C = r & 4 && o === 0 ? n : null;
1905
+ var ne = [];
1906
+ if (l !== void 0) for (_ of l) _.f & 8192 || ne.push(_);
1907
+ for (; c !== null;) !(c.f & 8192) && c !== e.fallback && ne.push(c), c = Rr(c.next);
1908
+ var re = ne.length;
1909
+ if (re > 0) {
1910
+ var ie = r & 4 && o === 0 ? n : null;
1911
1911
  if (a) {
1912
- for (v = 0; v < ne; v += 1) te[v].nodes?.a?.measure();
1913
- for (v = 0; v < ne; v += 1) te[v].nodes?.a?.fix();
1912
+ for (v = 0; v < re; v += 1) ne[v].nodes?.a?.measure();
1913
+ for (v = 0; v < re; v += 1) ne[v].nodes?.a?.fix();
1914
1914
  }
1915
- Mr(e, te, C);
1915
+ Pr(e, ne, ie);
1916
1916
  }
1917
1917
  }
1918
- a && qe(() => {
1918
+ a && L(() => {
1919
1919
  if (d !== void 0) for (_ of d) _.nodes?.a?.apply();
1920
1920
  });
1921
1921
  }
1922
- function Rr(e, t, n, r, i, a, o, s) {
1923
- var c = o & 1 ? o & 16 ? Mt(n) : /* @__PURE__ */ Nt(n, !1, !1) : null, l = o & 2 ? Mt(i) : null;
1922
+ function Br(e, t, n, r, i, a, o, s) {
1923
+ var c = o & 1 ? o & 16 ? Pt(n) : /* @__PURE__ */ Ft(n, !1, !1) : null, l = o & 2 ? Pt(i) : null;
1924
1924
  return {
1925
1925
  v: c,
1926
1926
  i: l,
@@ -1929,38 +1929,38 @@ function Rr(e, t, n, r, i, a, o, s) {
1929
1929
  }))
1930
1930
  };
1931
1931
  }
1932
- function zr(e, t, n) {
1932
+ function Vr(e, t, n) {
1933
1933
  if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
1934
- var o = /* @__PURE__ */ qt(r);
1934
+ var o = /* @__PURE__ */ Yt(r);
1935
1935
  if (a.before(r), r === i) return;
1936
1936
  r = o;
1937
1937
  }
1938
1938
  }
1939
- function Br(e, t, n) {
1939
+ function Hr(e, t, n) {
1940
1940
  t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
1941
1941
  }
1942
1942
  //#endregion
1943
1943
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/css.js
1944
- function Vr(e, t) {
1945
- mn(() => {
1944
+ function Ur(e, t) {
1945
+ gn(() => {
1946
1946
  e = Y?.parent?.nodes?.start ?? e;
1947
1947
  var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
1948
1948
  if (!r.querySelector("#" + t.hash)) {
1949
- let e = en("style");
1949
+ let e = nn("style");
1950
1950
  e.id = t.hash, e.textContent = t.code, r.appendChild(e);
1951
1951
  }
1952
1952
  });
1953
1953
  }
1954
1954
  //#endregion
1955
1955
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/actions.js
1956
- function Hr(e, t, n) {
1957
- mn(() => {
1958
- var r = $n(() => t(e, n?.()) || {});
1956
+ function Wr(e, t, n) {
1957
+ gn(() => {
1958
+ var r = tr(() => t(e, n?.()) || {});
1959
1959
  if (n && r?.update) {
1960
1960
  var i = !1, a = {};
1961
- gn(() => {
1961
+ vn(() => {
1962
1962
  var e = n();
1963
- er(e), i && Ee(a, e) && (a = e, r.update(e));
1963
+ nr(e), i && ke(a, e) && (a = e, r.update(e));
1964
1964
  }), i = !0;
1965
1965
  }
1966
1966
  if (r?.destroy) return () => r.destroy();
@@ -1968,19 +1968,19 @@ function Hr(e, t, n) {
1968
1968
  }
1969
1969
  //#endregion
1970
1970
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/shared/attributes.js
1971
- var Ur = [..." \n\r\f\xA0\v"];
1972
- function Wr(e, t, n) {
1971
+ var Gr = [..." \n\r\f\xA0\v"];
1972
+ function Kr(e, t, n) {
1973
1973
  var r = e == null ? "" : "" + e;
1974
1974
  if (t && (r = r ? r + " " + t : t), n) {
1975
1975
  for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
1976
1976
  else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
1977
1977
  var s = o + a;
1978
- (o === 0 || Ur.includes(r[o - 1])) && (s === r.length || Ur.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
1978
+ (o === 0 || Gr.includes(r[o - 1])) && (s === r.length || Gr.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
1979
1979
  }
1980
1980
  }
1981
1981
  return r === "" ? null : r;
1982
1982
  }
1983
- function Gr(e, t = !1) {
1983
+ function qr(e, t = !1) {
1984
1984
  var n = t ? " !important;" : ";", r = "";
1985
1985
  for (var i of Object.keys(e)) {
1986
1986
  var a = e[i];
@@ -1988,16 +1988,16 @@ function Gr(e, t = !1) {
1988
1988
  }
1989
1989
  return r;
1990
1990
  }
1991
- function Kr(e) {
1991
+ function Jr(e) {
1992
1992
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
1993
1993
  }
1994
- function qr(e, t) {
1994
+ function Yr(e, t) {
1995
1995
  if (t) {
1996
1996
  var n = "", r, i;
1997
1997
  if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
1998
1998
  e = String(e).replaceAll(/\/\*.*?\*\//g, "").trim();
1999
1999
  var a = !1, o = 0, s = !1, c = [];
2000
- r && c.push(...Object.keys(r).map(Kr)), i && c.push(...Object.keys(i).map(Kr));
2000
+ r && c.push(...Object.keys(r).map(Jr)), i && c.push(...Object.keys(i).map(Jr));
2001
2001
  var l = 0, u = -1;
2002
2002
  let t = e.length;
2003
2003
  for (var d = 0; d < t; d++) {
@@ -2006,7 +2006,7 @@ function qr(e, t) {
2006
2006
  if (f === ":" && u === -1) u = d;
2007
2007
  else if (f === ";" || d === t - 1) {
2008
2008
  if (u !== -1) {
2009
- var p = Kr(e.substring(l, u).trim());
2009
+ var p = Jr(e.substring(l, u).trim());
2010
2010
  if (!c.includes(p)) {
2011
2011
  f !== ";" && d++;
2012
2012
  var m = e.substring(l, d).trim();
@@ -2018,17 +2018,17 @@ function qr(e, t) {
2018
2018
  }
2019
2019
  }
2020
2020
  }
2021
- return r && (n += Gr(r)), i && (n += Gr(i, !0)), n = n.trim(), n === "" ? null : n;
2021
+ return r && (n += qr(r)), i && (n += qr(i, !0)), n = n.trim(), n === "" ? null : n;
2022
2022
  }
2023
2023
  return e == null ? null : String(e);
2024
2024
  }
2025
2025
  //#endregion
2026
2026
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/class.js
2027
- function Jr(e, t, n, r, i, a) {
2028
- var o = e[fe];
2029
- if (N || o !== n || o === void 0) {
2030
- var s = Wr(n, r, a);
2031
- (!N || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[fe] = n;
2027
+ function Xr(e, t, n, r, i, a) {
2028
+ var o = e[ge];
2029
+ if (j || o !== n || o === void 0) {
2030
+ var s = Kr(n, r, a);
2031
+ (!j || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[ge] = n;
2032
2032
  } else if (a && i !== a) for (var c in a) {
2033
2033
  var l = !!a[c];
2034
2034
  (i == null || l !== !!i[c]) && e.classList.toggle(c, l);
@@ -2037,72 +2037,72 @@ function Jr(e, t, n, r, i, a) {
2037
2037
  }
2038
2038
  //#endregion
2039
2039
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/style.js
2040
- function Yr(e, t = {}, n, r) {
2040
+ function Zr(e, t = {}, n, r) {
2041
2041
  for (var i in n) {
2042
2042
  var a = n[i];
2043
2043
  t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
2044
2044
  }
2045
2045
  }
2046
- function Xr(e, t, n, r) {
2047
- var i = e[pe];
2048
- if (N || i !== t) {
2049
- var a = qr(t, r);
2050
- (!N || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[pe] = t;
2051
- } else r && (Array.isArray(r) ? (Yr(e, n?.[0], r[0]), Yr(e, n?.[1], r[1], "important")) : Yr(e, n, r));
2046
+ function Qr(e, t, n, r) {
2047
+ var i = e[_e];
2048
+ if (j || i !== t) {
2049
+ var a = Yr(t, r);
2050
+ (!j || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[_e] = t;
2051
+ } else r && (Array.isArray(r) ? (Zr(e, n?.[0], r[0]), Zr(e, n?.[1], r[1], "important")) : Zr(e, n, r));
2052
2052
  return r;
2053
2053
  }
2054
2054
  //#endregion
2055
2055
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/attributes.js
2056
- var Zr = Symbol("is custom element"), Qr = Symbol("is html"), $r = ge ? "link" : "LINK";
2056
+ var $r = Symbol("is custom element"), ei = Symbol("is html"), ti = be ? "link" : "LINK";
2057
2057
  function $(e, t, n, r) {
2058
- var i = ti(e);
2059
- N && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === $r) || i[t] !== (i[t] = n) && (t === "loading" && (e[ue] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ri(e).has(t) ? e[t] = n : e.setAttribute(t, n));
2058
+ var i = ri(e);
2059
+ j && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ti) || i[t] !== (i[t] = n) && (t === "loading" && (e[me] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ai(e).has(t) ? e[t] = n : e.setAttribute(t, n));
2060
2060
  }
2061
- function ei(e, t, n) {
2061
+ function ni(e, t, n) {
2062
2062
  var r = q, i = Y;
2063
- let a = N;
2064
- N && P(!1), J(null), Pn(null);
2063
+ let a = j;
2064
+ j && M(!1), J(null), In(null);
2065
2065
  try {
2066
- t !== "style" && (ni.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? ri(e).has(t) : n && typeof n == "object") ? e[t] = n : $(e, t, n == null ? n : String(n));
2066
+ t !== "style" && (ii.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? ai(e).has(t) : n && typeof n == "object") ? e[t] = n : $(e, t, n == null ? n : String(n));
2067
2067
  } finally {
2068
- J(r), Pn(i), a && P(!0);
2068
+ J(r), In(i), a && M(!0);
2069
2069
  }
2070
2070
  }
2071
- function ti(e) {
2072
- return e[de] ??= {
2073
- [Zr]: e.nodeName.includes("-"),
2074
- [Qr]: e.namespaceURI === u
2071
+ function ri(e) {
2072
+ return e[he] ??= {
2073
+ [$r]: e.nodeName.includes("-"),
2074
+ [ei]: e.namespaceURI === f
2075
2075
  };
2076
2076
  }
2077
- var ni = /* @__PURE__ */ new Map();
2078
- function ri(e) {
2079
- var t = e.getAttribute("is") || e.nodeName, n = ni.get(t);
2077
+ var ii = /* @__PURE__ */ new Map();
2078
+ function ai(e) {
2079
+ var t = e.getAttribute("is") || e.nodeName, n = ii.get(t);
2080
2080
  if (n) return n;
2081
- ni.set(t, n = /* @__PURE__ */ new Set());
2081
+ ii.set(t, n = /* @__PURE__ */ new Set());
2082
2082
  for (var r, i = e, a = Element.prototype; a !== i;) {
2083
- for (var o in r = v(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.add(o);
2084
- i = x(i);
2083
+ for (var o in r = ee(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.add(o);
2084
+ i = te(i);
2085
2085
  }
2086
2086
  return n;
2087
2087
  }
2088
2088
  //#endregion
2089
2089
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
2090
- function ii(e, t) {
2091
- return e === t || e?.[j] === t;
2090
+ function oi(e, t) {
2091
+ return e === t || e?.[k] === t;
2092
2092
  }
2093
- function ai(e = Ue(), t, n, r) {
2094
- var i = L.r, a = Y;
2095
- return mn(() => {
2093
+ function si(e = Ke(), t, n, r) {
2094
+ var i = I.r, a = Y;
2095
+ return gn(() => {
2096
2096
  var o, s;
2097
- return gn(() => {
2098
- o = s, s = r?.() || [], $n(() => {
2099
- ii(n(...s), e) || (t(e, ...s), o && ii(n(...o), e) && t(null, ...o));
2097
+ return vn(() => {
2098
+ o = s, s = r?.() || [], tr(() => {
2099
+ oi(n(...s), e) || (t(e, ...s), o && oi(n(...o), e) && t(null, ...o));
2100
2100
  });
2101
2101
  }), () => {
2102
2102
  let r = a;
2103
2103
  for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
2104
2104
  let o = () => {
2105
- s && ii(n(...s), e) && t(null, ...s);
2105
+ s && oi(n(...s), e) && t(null, ...s);
2106
2106
  }, c = r.teardown;
2107
2107
  r.teardown = () => {
2108
2108
  o(), c?.();
@@ -2112,26 +2112,26 @@ function ai(e = Ue(), t, n, r) {
2112
2112
  }
2113
2113
  //#endregion
2114
2114
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/store.js
2115
- var oi = !1;
2116
- function si(e) {
2117
- var t = oi;
2115
+ var ci = !1;
2116
+ function li(e) {
2117
+ var t = ci;
2118
2118
  try {
2119
- return oi = !1, [e(), oi];
2119
+ return ci = !1, [e(), ci];
2120
2120
  } finally {
2121
- oi = t;
2121
+ ci = t;
2122
2122
  }
2123
2123
  }
2124
2124
  //#endregion
2125
2125
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/props.js
2126
- function ci(e, t, n, r) {
2127
- var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ rt(r), Q(l)) : (c && (c = !1, s = o ? $n(r) : r), s);
2126
+ function ui(e, t, n, r) {
2127
+ var i = !0, a = !!(n & 8), o = !!(n & 16), s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ at(r), Q(l)) : (c && (c = !1, s = o ? tr(r) : r), s);
2128
2128
  let d;
2129
2129
  if (a) {
2130
- var f = j in e || le in e;
2131
- d = _(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
2130
+ var f = k in e || pe in e;
2131
+ d = y(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
2132
2132
  }
2133
2133
  var p, m = !1;
2134
- a ? [p, m] = si(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && Fe(t), d(p)));
2134
+ a ? [p, m] = li(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && Re(t), d(p)));
2135
2135
  var h = i ? () => {
2136
2136
  var n = e[t];
2137
2137
  return n === void 0 ? u() : (c = !0, n);
@@ -2146,28 +2146,28 @@ function ci(e, t, n, r) {
2146
2146
  return arguments.length > 0 ? ((!i || !t || g || m) && d(t ? h() : e), e) : h();
2147
2147
  });
2148
2148
  }
2149
- var v = !1, y = (n & 1 ? rt : ot)(() => (v = !1, h()));
2150
- a && Q(y);
2151
- var b = Y;
2149
+ var _ = !1, v = (n & 1 ? at : ct)(() => (_ = !1, h()));
2150
+ a && Q(v);
2151
+ var ee = Y;
2152
2152
  return (function(e, t) {
2153
2153
  if (arguments.length > 0) {
2154
- let n = t ? Q(y) : i && a ? Bt(e) : e;
2155
- return U(y, n), v = !0, s !== void 0 && (s = n), e;
2154
+ let n = t ? Q(v) : i && a ? Ht(e) : e;
2155
+ return U(v, n), _ = !0, s !== void 0 && (s = n), e;
2156
2156
  }
2157
- return jn && v || b.f & 16384 ? y.v : Q(y);
2157
+ return Nn && _ || ee.f & 16384 ? v.v : Q(v);
2158
2158
  });
2159
2159
  }
2160
2160
  //#endregion
2161
2161
  //#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/legacy/legacy-client.js
2162
- function li(e) {
2163
- return new ui(e);
2162
+ function di(e) {
2163
+ return new fi(e);
2164
2164
  }
2165
- var ui = class {
2165
+ var fi = class {
2166
2166
  #e;
2167
2167
  #t;
2168
2168
  constructor(e) {
2169
2169
  var t = /* @__PURE__ */ new Map(), n = (e, n) => {
2170
- var r = /* @__PURE__ */ Nt(n, !1, !1);
2170
+ var r = /* @__PURE__ */ Ft(n, !1, !1);
2171
2171
  return t.set(e, r), r;
2172
2172
  };
2173
2173
  let r = new Proxy({
@@ -2178,13 +2178,13 @@ var ui = class {
2178
2178
  return Q(t.get(r) ?? n(r, Reflect.get(e, r)));
2179
2179
  },
2180
2180
  has(e, r) {
2181
- return r === le || (Q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2181
+ return r === pe || (Q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2182
2182
  },
2183
2183
  set(e, r, i) {
2184
2184
  return U(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2185
2185
  }
2186
2186
  });
2187
- this.#t = (e.hydrate ? Tr : wr)(e.component, {
2187
+ this.#t = (e.hydrate ? Dr : Er)(e.component, {
2188
2188
  target: e.target,
2189
2189
  anchor: e.anchor,
2190
2190
  props: r,
@@ -2192,8 +2192,8 @@ var ui = class {
2192
2192
  intro: e.intro ?? !1,
2193
2193
  recover: e.recover,
2194
2194
  transformError: e.transformError
2195
- }), (!e?.props?.$$host || e.sync === !1) && St(), this.#e = r.$$events;
2196
- for (let e of Object.keys(this.#t)) e !== "$set" && e !== "$destroy" && e !== "$on" && g(this, e, {
2195
+ }), (!e?.props?.$$host || e.sync === !1) && wt(), this.#e = r.$$events;
2196
+ for (let e of Object.keys(this.#t)) e !== "$set" && e !== "$destroy" && e !== "$on" && v(this, e, {
2197
2197
  get() {
2198
2198
  return this.#t[e];
2199
2199
  },
@@ -2205,7 +2205,7 @@ var ui = class {
2205
2205
  this.#t.$set = (e) => {
2206
2206
  Object.assign(r, e);
2207
2207
  }, this.#t.$destroy = () => {
2208
- kr(this.#t);
2208
+ jr(this.#t);
2209
2209
  };
2210
2210
  }
2211
2211
  $set(e) {
@@ -2221,8 +2221,8 @@ var ui = class {
2221
2221
  $destroy() {
2222
2222
  this.#t.$destroy();
2223
2223
  }
2224
- }, di;
2225
- typeof HTMLElement == "function" && (di = class extends HTMLElement {
2224
+ }, pi;
2225
+ typeof HTMLElement == "function" && (pi = class extends HTMLElement {
2226
2226
  $$ctor;
2227
2227
  $$s;
2228
2228
  $$c;
@@ -2255,18 +2255,18 @@ typeof HTMLElement == "function" && (di = class extends HTMLElement {
2255
2255
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2256
2256
  function e(e) {
2257
2257
  return (t) => {
2258
- let n = en("slot");
2259
- e !== "default" && (n.name = e), gr(t, n);
2258
+ let n = nn("slot");
2259
+ e !== "default" && (n.name = e), vr(t, n);
2260
2260
  };
2261
2261
  }
2262
- let t = {}, n = pi(this);
2262
+ let t = {}, n = hi(this);
2263
2263
  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));
2264
2264
  for (let e of this.attributes) {
2265
2265
  let t = this.$$g_p(e.name);
2266
- t in this.$$d || (this.$$d[t] = fi(t, e.value, this.$$p_d, "toProp"));
2266
+ t in this.$$d || (this.$$d[t] = mi(t, e.value, this.$$p_d, "toProp"));
2267
2267
  }
2268
2268
  for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
2269
- this.$$c = li({
2269
+ this.$$c = di({
2270
2270
  component: this.$$ctor,
2271
2271
  target: this.$$shadowRoot || this,
2272
2272
  props: {
@@ -2274,13 +2274,13 @@ typeof HTMLElement == "function" && (di = class extends HTMLElement {
2274
2274
  $$slots: t,
2275
2275
  $$host: this
2276
2276
  }
2277
- }), this.$$me = fn(() => {
2278
- gn(() => {
2277
+ }), this.$$me = mn(() => {
2278
+ vn(() => {
2279
2279
  this.$$r = !0;
2280
- for (let e of h(this.$$c)) {
2280
+ for (let e of _(this.$$c)) {
2281
2281
  if (!this.$$p_d[e]?.reflect) continue;
2282
2282
  this.$$d[e] = this.$$c[e];
2283
- let t = fi(e, this.$$d[e], this.$$p_d, "toAttribute");
2283
+ let t = mi(e, this.$$d[e], this.$$p_d, "toAttribute");
2284
2284
  t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
2285
2285
  }
2286
2286
  this.$$r = !1;
@@ -2294,7 +2294,7 @@ typeof HTMLElement == "function" && (di = class extends HTMLElement {
2294
2294
  }
2295
2295
  }
2296
2296
  attributeChangedCallback(e, t, n) {
2297
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = fi(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2297
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = mi(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2298
2298
  }
2299
2299
  disconnectedCallback() {
2300
2300
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2302,10 +2302,10 @@ typeof HTMLElement == "function" && (di = class extends HTMLElement {
2302
2302
  });
2303
2303
  }
2304
2304
  $$g_p(e) {
2305
- return h(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2305
+ return _(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2306
2306
  }
2307
2307
  });
2308
- function fi(e, t, n, r) {
2308
+ function mi(e, t, n, r) {
2309
2309
  let i = n[e]?.type;
2310
2310
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
2311
2311
  if (r === "toAttribute") switch (i) {
@@ -2323,66 +2323,66 @@ function fi(e, t, n, r) {
2323
2323
  default: return t;
2324
2324
  }
2325
2325
  }
2326
- function pi(e) {
2326
+ function hi(e) {
2327
2327
  let t = {};
2328
2328
  return e.childNodes.forEach((e) => {
2329
2329
  t[e.slot || "default"] = !0;
2330
2330
  }), t;
2331
2331
  }
2332
- function mi(e, t, n, r, i, a) {
2333
- let o = class extends di {
2332
+ function gi(e, t, n, r, i, a) {
2333
+ let o = class extends pi {
2334
2334
  constructor() {
2335
2335
  super(e, n, i), this.$$p_d = t;
2336
2336
  }
2337
2337
  static get observedAttributes() {
2338
- return h(t).map((e) => (t[e].attribute || e).toLowerCase());
2338
+ return _(t).map((e) => (t[e].attribute || e).toLowerCase());
2339
2339
  }
2340
2340
  };
2341
- return h(t).forEach((e) => {
2342
- g(o.prototype, e, {
2341
+ return _(t).forEach((e) => {
2342
+ v(o.prototype, e, {
2343
2343
  get() {
2344
2344
  return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
2345
2345
  },
2346
2346
  set(n) {
2347
- n = fi(e, n, t), this.$$d[e] = n;
2347
+ n = mi(e, n, t), this.$$d[e] = n;
2348
2348
  var r = this.$$c;
2349
- r && (_(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
2349
+ r && (y(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
2350
2350
  }
2351
2351
  });
2352
2352
  }), r.forEach((e) => {
2353
- g(o.prototype, e, { get() {
2353
+ v(o.prototype, e, { get() {
2354
2354
  return this.$$c?.[e];
2355
2355
  } });
2356
2356
  }), a && (o = a(o)), e.element = o, o;
2357
2357
  }
2358
2358
  //#endregion
2359
2359
  //#region tool-tts-inline.svelte
2360
- var hi = /* @__PURE__ */ mr("<nds-icon-button></nds-icon-button>", 2), gi = /* @__PURE__ */ mr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), _i = /* @__PURE__ */ mr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-9msc39\"><!></span>"), vi = /* @__PURE__ */ mr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-9msc39\"><span class=\"pie-tool-tts-inline__speed-label svelte-9msc39\"> </span></button>"), yi = /* @__PURE__ */ mr("<div role=\"radiogroup\"></div>"), bi = /* @__PURE__ */ mr("<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-9msc39\"><i class=\"fa-solid fa-backward pie-tool-tts-inline__icon svelte-9msc39\" 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-9msc39\"><i class=\"fa-solid fa-forward pie-tool-tts-inline__icon svelte-9msc39\" 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-9msc39\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-9msc39\" aria-hidden=\"true\"></i></button></div>"), xi = /* @__PURE__ */ mr("<!> <!>", 1), Si = /* @__PURE__ */ mr("<div><!> <div class=\"pie-sr-only svelte-9msc39\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), Ci = {
2360
+ var _i = /* @__PURE__ */ gr("<nds-icon-button></nds-icon-button>", 2), vi = /* @__PURE__ */ gr("<button type=\"button\"><i aria-hidden=\"true\"></i></button>"), yi = /* @__PURE__ */ gr("<span class=\"pie-tool-tts-inline__trigger-zoom svelte-9msc39\"><!></span>"), bi = /* @__PURE__ */ gr("<button type=\"button\" role=\"radio\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-9msc39\"><span class=\"pie-tool-tts-inline__speed-label svelte-9msc39\"> </span></button>"), xi = /* @__PURE__ */ gr("<div role=\"radiogroup\"></div>"), Si = /* @__PURE__ */ gr("<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-9msc39\"><i class=\"fa-solid fa-backward pie-tool-tts-inline__icon svelte-9msc39\" 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-9msc39\"><i class=\"fa-solid fa-forward pie-tool-tts-inline__icon svelte-9msc39\" 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-9msc39\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-9msc39\" aria-hidden=\"true\"></i></button></div>"), Ci = /* @__PURE__ */ gr("<!> <!>", 1), wi = /* @__PURE__ */ gr("<div><!> <div class=\"pie-sr-only svelte-9msc39\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), Ti = {
2361
2361
  hash: "svelte-9msc39",
2362
- 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-9msc39 {position:relative;display:inline-flex;align-items:center;gap:0.5rem;}.pie-tool-tts-inline--controls-row.svelte-9msc39 {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-9msc39 {display:inline-flex;}.pie-tool-tts-inline__trigger.svelte-9msc39 {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-9msc39 {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-9msc39 {\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-9msc39 {--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-9msc39: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-9msc39:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-9msc39: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-9msc39:focus:not(:focus-visible),\n .pie-tool-tts-inline__trigger.svelte-9msc39 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-9msc39 {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-9msc39 {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 {\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-9msc39 {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-9msc39 {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-9msc39 {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-9msc39 {display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.25rem;}.pie-tool-tts-inline__control--speed.svelte-9msc39 {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-9msc39 {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-9msc39 {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-9msc39 .pie-tool-tts-inline__speed-label:where(.svelte-9msc39) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 .pie-tool-tts-inline__speed-label:where(.svelte-9msc39)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-9msc39: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-9msc39,\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 {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-9msc39 {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-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39) {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-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39):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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39):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-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39) {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-9msc39 {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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {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-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39) {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-9msc39 {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-9msc39 {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-9msc39 {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-9msc39 {font-size:1rem;line-height:1;color:currentColor;}\n\n @media (max-width: 839px) {.pie-tool-tts-inline.svelte-9msc39 {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-9msc39 {padding:0;}\n\n /* Keep trigger sizes consistent with the calculator at this breakpoint. */.pie-tool-tts-inline__control.svelte-9msc39:not(.pie-tool-tts-inline__trigger) {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-9msc39 .pie-tool-tts-inline__icon:where(.svelte-9msc39) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-9msc39 {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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {font-size:0.75rem;}\n }.pie-sr-only.svelte-9msc39 {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-9msc39 {transition:none !important;}\n }"
2362
+ 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-9msc39 {position:relative;display:inline-flex;align-items:center;gap:0.5rem;}.pie-tool-tts-inline--controls-row.svelte-9msc39 {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-9msc39 {display:inline-flex;}.pie-tool-tts-inline__trigger.svelte-9msc39 {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-9msc39 {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-9msc39 {\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, 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-9msc39 {--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-9msc39:hover:not(:disabled) {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-9msc39:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__control.svelte-9msc39: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-9msc39:focus:not(:focus-visible),\n .pie-tool-tts-inline__trigger.svelte-9msc39 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-9msc39 {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-9msc39 {position:absolute;z-index:2;top:50%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 {\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-9msc39 {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-9msc39 {display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid 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-9msc39 {border-radius:50%;}.pie-tool-tts-inline__speed-group.svelte-9msc39 {display:inline-flex;flex-wrap:wrap;align-items:center;gap:0.25rem;}.pie-tool-tts-inline__control--speed.svelte-9msc39 {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-9msc39 {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-9msc39 {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-9msc39 .pie-tool-tts-inline__speed-label:where(.svelte-9msc39) {display:inline-grid;justify-items:center;}.pie-tool-tts-inline__speed-group--stacked.svelte-9msc39 .pie-tool-tts-inline__speed-label:where(.svelte-9msc39)::before {content:attr(data-label);height:0;overflow:hidden;font-weight:700;visibility:hidden;}.pie-tool-tts-inline__control.svelte-9msc39: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-9msc39,\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 {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-9msc39 {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-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39) {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-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--secondary:where(.svelte-9msc39):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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39):hover:not(:disabled),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39):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-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39) {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-9msc39 {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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {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-9msc39 .pie-tool-tts-inline__control--speed[aria-checked='true']:where(.svelte-9msc39) {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-9msc39 {--height-32: 1.75rem;}.pie-tool-tts-inline__trigger--md.svelte-9msc39 {--height-32: 2rem;}.pie-tool-tts-inline__trigger--lg.svelte-9msc39 {--height-32: 2.5rem;}.pie-tool-tts-inline__icon.svelte-9msc39 {font-size:1rem;line-height:1;color:currentColor;}\n\n @media (max-width: 839px) {.pie-tool-tts-inline.svelte-9msc39 {gap:0.375rem;}.pie-tool-tts-inline__panel--compact.svelte-9msc39 {padding:0;}\n\n /* Keep trigger sizes consistent with the calculator at this breakpoint. */.pie-tool-tts-inline__control.svelte-9msc39:not(.pie-tool-tts-inline__trigger) {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__control.svelte-9msc39 .pie-tool-tts-inline__icon:where(.svelte-9msc39) {font-size:1rem;}.pie-tool-tts-inline__control--speed.svelte-9msc39 {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-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39),\n .pie-tool-tts-inline__panel--left-aligned-inline.svelte-9msc39 .pie-tool-tts-inline__control--speed:where(.svelte-9msc39) {font-size:0.75rem;}\n }.pie-sr-only.svelte-9msc39 {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-9msc39 {transition:none !important;}\n }"
2363
2363
  };
2364
- function wi(e, c) {
2365
- Ve(c, !0), Vr(e, Ci);
2366
- let l = ci(c, "catalogId", 7, ""), u = ci(c, "language", 7, "en-US"), d = ci(c, "size", 7, "md"), f = ci(c, "speedOptions", 7, void 0), p = ci(c, "showSingleSpeedOption", 7, !1), m = ci(c, "layoutMode", 7, "expanding-row"), h = typeof window < "u", g = "__pie_tts_inline_active_owner__", _ = "pie-tts-inline-owner-change", v = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], y = /font.?awesome|fa-?pro/i, b = (e) => {
2364
+ function Ei(e, u) {
2365
+ We(u, !0), Ur(e, Ti);
2366
+ let d = ui(u, "catalogId", 7, ""), f = ui(u, "language", 7, ""), p = ui(u, "size", 7, "md"), m = ui(u, "speedOptions", 7, void 0), h = ui(u, "showSingleSpeedOption", 7, !1), g = ui(u, "layoutMode", 7, "left-aligned"), _ = typeof window < "u", v = "__pie_tts_inline_active_owner__", y = "pie-tts-inline-owner-change", ee = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], b = /font.?awesome|fa-?pro/i, x = (e) => {
2367
2367
  if (document.querySelector(`link[href="${e}"]`)) return;
2368
2368
  let t = document.createElement("link");
2369
2369
  t.rel = "stylesheet", t.href = e, t.addEventListener("error", () => {
2370
2370
  t.dataset.pieLoadFailed = "";
2371
2371
  }, { once: !0 }), document.head.appendChild(t);
2372
- }, x = (e) => {
2373
- if (h && (e && !document.querySelector("link[href*=\"Roboto\"]") && b("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"), !Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).some((e) => y.test(e.href)) && (b("https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css"), e))) for (let e of v) b(e);
2374
- }, S = "__pieFaTtsShadowInstalled", ee = (e) => {
2372
+ }, te = (e) => {
2373
+ if (_ && (e && !document.querySelector("link[href*=\"Roboto\"]") && x("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"), !Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).some((e) => b.test(e.href)) && (x("https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css"), e))) for (let e of ee) x(e);
2374
+ }, ne = "__pieFaTtsShadowInstalled", re = (e) => {
2375
2375
  let t = e.getRootNode();
2376
2376
  if (!(t instanceof ShadowRoot)) return;
2377
2377
  let n = t;
2378
- if (n[S]) return;
2379
- n[S] = !0;
2378
+ if (n[ne]) return;
2379
+ n[ne] = !0;
2380
2380
  let r = /* @__PURE__ */ new Set(), i = (e) => {
2381
2381
  if (!e || r.has(e)) return;
2382
2382
  r.add(e);
2383
2383
  let n = document.createElement("link");
2384
2384
  n.rel = "stylesheet", n.href = e, t.appendChild(n);
2385
- }, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => y.test(e.href));
2385
+ }, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => b.test(e.href));
2386
2386
  for (let e of a) {
2387
2387
  if ("pieLoadFailed" in e.dataset) continue;
2388
2388
  if (e.sheet) {
@@ -2394,8 +2394,8 @@ function wi(e, c) {
2394
2394
  };
2395
2395
  e.addEventListener("load", t), e.addEventListener("error", t);
2396
2396
  }
2397
- }, te = (e) => {
2398
- x(!0), ee(e);
2397
+ }, ie = (e) => {
2398
+ te(!0), re(e);
2399
2399
  let t = () => {
2400
2400
  for (let t of e.querySelectorAll("i.fa-light")) t.classList.remove("fa-light"), t.classList.add("fa-solid");
2401
2401
  };
@@ -2409,7 +2409,7 @@ function wi(e, c) {
2409
2409
  }), { destroy() {
2410
2410
  n.disconnect();
2411
2411
  } };
2412
- }, ne = (e, t) => {
2412
+ }, ae = (e, t) => {
2413
2413
  let n = t, r = () => {
2414
2414
  let t = e.querySelector("button");
2415
2415
  if (t) for (let [e, r] of Object.entries(n)) r == null ? t.removeAttribute(e) : t.setAttribute(e, r);
@@ -2427,163 +2427,161 @@ function wi(e, c) {
2427
2427
  i.disconnect();
2428
2428
  }
2429
2429
  };
2430
- }, C = (e) => (x(!1), ee(e), {}), w = /* @__PURE__ */ H(void 0), T = /* @__PURE__ */ H(void 0), re = /* @__PURE__ */ H(null), ie = /* @__PURE__ */ z(() => Q(re)?.ndsIcons === !0), E = /* @__PURE__ */ z(() => s(Q(re))), D = /* @__PURE__ */ H(null), ae = /* @__PURE__ */ H(null), O = /* @__PURE__ */ z(() => Q(re)?.ttsService), oe = /* @__PURE__ */ z(() => Q(re)?.highlightCoordinator), se = /* @__PURE__ */ z(() => Q(ae)?.scopeElement || Q(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__ */ z(() => Q(de) || Q(fe)), ge = null, _e = /* @__PURE__ */ z(() => o(f())), ve = /* @__PURE__ */ z(() => De(Q(_e))), ye = /* @__PURE__ */ z(() => Q(_e).length > 1 || p() ? Q(_e) : []), N = /* @__PURE__ */ z(() => Q(le) !== null && Q(ue) === Q(ve) && Q(_e).some((e) => e.rate === Q(le)) ? Q(le) : Oe(Q(_e))), P = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, F = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, I = `${P}-controls`;
2431
- function be() {
2432
- if (!h) return null;
2433
- let e = window[g];
2430
+ }, S = (e) => (te(!1), re(e), {}), C = /* @__PURE__ */ H(void 0), w = /* @__PURE__ */ H(void 0), oe = /* @__PURE__ */ H(null), se = /* @__PURE__ */ z(() => Q(oe)?.ndsIcons === !0), T = /* @__PURE__ */ z(() => l(Q(oe))), ce = /* @__PURE__ */ H(null), le = /* @__PURE__ */ H(null), E = /* @__PURE__ */ z(() => Q(oe)?.ttsService), ue = /* @__PURE__ */ z(() => Q(oe)?.highlightCoordinator), de = /* @__PURE__ */ z(() => Q(le)?.scopeElement || Q(ce)?.scopeElement || null), D = /* @__PURE__ */ H(!1), fe = /* @__PURE__ */ H(!1), O = /* @__PURE__ */ H(!1), k = /* @__PURE__ */ H(!1), A = /* @__PURE__ */ H(""), pe = /* @__PURE__ */ H(null), me = /* @__PURE__ */ H(null), he = /* @__PURE__ */ H(!1), ge = /* @__PURE__ */ H(!1), _e = /* @__PURE__ */ H(!1), ve = null, ye = /* @__PURE__ */ z(() => Q(he) || Q(ge)), be = null, xe = /* @__PURE__ */ z(() => s(m())), Se = /* @__PURE__ */ z(() => ke(Q(xe))), Ce = /* @__PURE__ */ z(() => Q(xe).length > 1 || h() ? Q(xe) : []), j = /* @__PURE__ */ z(() => Q(pe) !== null && Q(me) === Q(Se) && Q(xe).some((e) => e.rate === Q(pe)) ? Q(pe) : Ae(Q(xe))), M = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, N = `${M}-controls`;
2431
+ function P() {
2432
+ if (!_) return null;
2433
+ let e = window[v];
2434
2434
  return typeof e == "string" ? e : null;
2435
2435
  }
2436
- function Se() {
2437
- return be() === P;
2436
+ function F() {
2437
+ return P() === M;
2438
2438
  }
2439
- function Ce(e, t) {
2440
- h && window.dispatchEvent(new CustomEvent(_, { detail: {
2439
+ function Te(e, t) {
2440
+ _ && window.dispatchEvent(new CustomEvent(y, { detail: {
2441
2441
  ownerId: e,
2442
2442
  previousOwnerId: t
2443
2443
  } }));
2444
2444
  }
2445
- function we() {
2446
- if (!h) return;
2447
- let e = be();
2448
- e !== P && (window[g] = P, Ce(P, e));
2445
+ function Ee() {
2446
+ if (!_) return;
2447
+ let e = P();
2448
+ e !== M && (window[v] = M, Te(M, e));
2449
2449
  }
2450
- function Te() {
2451
- h && be() === P && (delete window[g], Ce(null, P));
2450
+ function De() {
2451
+ _ && P() === M && (delete window[v], Te(null, M));
2452
2452
  }
2453
- function Ee(e = "", t = !1) {
2454
- U(fe, !1), U(A, !1), U(j, !1), U(k, t, !0), U(M, e, !0);
2453
+ function Oe(e = "", t = !1) {
2454
+ U(ge, !1), U(O, !1), U(k, !1), U(D, t, !0), U(A, e, !0);
2455
2455
  }
2456
- function De(e) {
2456
+ function ke(e) {
2457
2457
  return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
2458
2458
  }
2459
- function Oe(e) {
2459
+ function Ae(e) {
2460
2460
  return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
2461
2461
  }
2462
- async function ke(e, t) {
2462
+ async function je(e, t) {
2463
2463
  if (typeof e.setPlaybackRate == "function") {
2464
2464
  await e.setPlaybackRate(t);
2465
2465
  return;
2466
2466
  }
2467
2467
  await e.updateSettings({ rate: t });
2468
2468
  }
2469
- function Ae() {
2470
- if (!Q(w) || !Q(T)) return !1;
2471
- let e = Q(w).getRootNode();
2469
+ function Me() {
2470
+ if (!Q(C) || !Q(w)) return !1;
2471
+ let e = Q(C).getRootNode();
2472
2472
  if (!(e instanceof ShadowRoot)) return !1;
2473
2473
  let t = e.activeElement;
2474
- return !!(t && Q(T).contains(t));
2474
+ return !!(t && Q(w).contains(t));
2475
2475
  }
2476
- function je() {
2477
- if (!Q(T)) return !1;
2478
- let e = Q(T).getRootNode();
2476
+ function Ne() {
2477
+ if (!Q(w)) return !1;
2478
+ let e = Q(w).getRootNode();
2479
2479
  if (!(e instanceof ShadowRoot)) return !1;
2480
2480
  let t = e.activeElement;
2481
- return !t || !Q(T).contains(t) ? !1 : t.matches(Re);
2481
+ return !t || !Q(w).contains(t) ? !1 : t.matches(Be);
2482
2482
  }
2483
- function Me() {
2484
- let e = Q(T)?.querySelector(ze);
2483
+ function Pe() {
2484
+ let e = Q(w)?.querySelector(Ve);
2485
2485
  if (e && !e.disabled) {
2486
2486
  e.focus();
2487
2487
  return;
2488
2488
  }
2489
- Ne(!0);
2489
+ Fe(!0);
2490
2490
  }
2491
- function Ne(e) {
2492
- if (!Q(w) || !e) return;
2493
- let t = Q(w).getRootNode();
2491
+ function Fe(e) {
2492
+ if (!Q(C) || !e) return;
2493
+ let t = Q(C).getRootNode();
2494
2494
  if (!(t instanceof ShadowRoot)) return;
2495
2495
  let n = t.querySelector(".pie-tool-tts-inline__trigger");
2496
2496
  (n?.querySelector("button") ?? n)?.focus();
2497
2497
  }
2498
- function Pe(e = Q(E).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
2499
- if (!Q(pe) && (Q(k) || Se())) {
2500
- U(pe, !0);
2498
+ function Ie(e = Q(T).t("tools.textToSpeech.inline.switchedSection"), t = !1) {
2499
+ if (!Q(_e) && (Q(D) || F())) {
2500
+ U(_e, !0);
2501
2501
  try {
2502
- let n = Ae();
2503
- Se() && Te(), Ee(e), Je(), t && queueMicrotask(() => {
2504
- Ne(n);
2502
+ let n = Me();
2503
+ F() && De(), Oe(e), L(), t && queueMicrotask(() => {
2504
+ Fe(n);
2505
2505
  });
2506
2506
  } finally {
2507
- U(pe, !1);
2507
+ U(_e, !1);
2508
2508
  }
2509
2509
  }
2510
2510
  }
2511
- un(() => {
2512
- if (Q(w)) return i(Q(w), (e) => {
2513
- U(re, e, !0);
2511
+ fn(() => {
2512
+ if (Q(C)) return i(Q(C), (e) => {
2513
+ U(oe, e, !0);
2514
2514
  });
2515
- }), un(() => {
2516
- if (!Q(w)) return;
2517
- let e = a(Q(w), (e) => {
2518
- U(D, e, !0);
2519
- }), t = r(Q(w), (e) => {
2520
- U(ae, e, !0);
2515
+ }), fn(() => {
2516
+ if (!Q(C)) return;
2517
+ let e = a(Q(C), (e) => {
2518
+ U(ce, e, !0);
2519
+ }), t = r(Q(C), (e) => {
2520
+ U(le, e, !0);
2521
2521
  });
2522
2522
  return () => {
2523
2523
  t(), e();
2524
2524
  };
2525
- }), un(() => {
2526
- if (!Q(O)) return;
2525
+ }), fn(() => {
2526
+ if (!Q(E)) return;
2527
2527
  let e = (e) => {
2528
- if (!Q(k) || !Se()) {
2529
- U(A, !1), U(j, !1);
2528
+ if (!Q(D) || !F()) {
2529
+ U(O, !1), U(k, !1);
2530
2530
  return;
2531
2531
  }
2532
- U(A, e === "playing" || e === "paused", !0), U(j, e === "paused");
2533
- }, t = (t) => {
2534
- let n = String(t), r = je();
2535
- e(n), n === "playing" && (Q(fe) && U(M, Q(E).t("tools.textToSpeech.inline.started"), !0), U(fe, !1)), (n === "error" || n === "idle") && U(fe, !1), r && !Q(A) && queueMicrotask(Me);
2536
- };
2537
- return Q(O).onStateChange(F, t), e(Q(O).getState()), () => {
2538
- Q(O).offStateChange(F, t);
2539
- };
2540
- }), un(() => {
2541
- if (!h) return;
2532
+ U(O, e === "playing" || e === "paused", !0), U(k, e === "paused");
2533
+ }, t = Q(E).onStateChange((t) => {
2534
+ let n = String(t), r = Ne();
2535
+ e(n), n === "playing" && (Q(ge) && U(A, Q(T).t("tools.textToSpeech.inline.started"), !0), U(ge, !1)), (n === "error" || n === "idle") && U(ge, !1), r && !Q(O) && queueMicrotask(Pe);
2536
+ });
2537
+ return e(Q(E).getState()), t;
2538
+ }), fn(() => {
2539
+ if (!_) return;
2542
2540
  let e = (e) => {
2543
2541
  let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
2544
- n === P && t !== P && Pe(Q(E).t("tools.textToSpeech.inline.switchedSection"));
2542
+ n === M && t !== M && Ie(Q(T).t("tools.textToSpeech.inline.switchedSection"));
2545
2543
  };
2546
- return window.addEventListener(_, e), () => {
2547
- window.removeEventListener(_, e);
2544
+ return window.addEventListener(y, e), () => {
2545
+ window.removeEventListener(y, e);
2548
2546
  };
2549
- }), un(() => {
2550
- if (!h) return;
2547
+ }), fn(() => {
2548
+ if (!_) return;
2551
2549
  let e = () => {
2552
- Pe(Q(E).t("tools.textToSpeech.inline.switchedSection"), !0);
2550
+ Ie(Q(T).t("tools.textToSpeech.inline.switchedSection"), !0);
2553
2551
  };
2554
2552
  return window.addEventListener(t, e), () => {
2555
2553
  window.removeEventListener(t, e);
2556
2554
  };
2557
- }), un(() => () => {
2558
- Te(), Je();
2555
+ }), fn(() => () => {
2556
+ De(), L();
2559
2557
  });
2560
- async function Fe() {
2561
- if (!Q(O)) return !1;
2558
+ async function Le() {
2559
+ if (!Q(E)) return !1;
2562
2560
  try {
2563
- return await Q(re)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
2561
+ return await Q(oe)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
2564
2562
  } catch (e) {
2565
2563
  return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
2566
2564
  }
2567
2565
  }
2568
- let Ie = "[data-pie-tts-speed-rate]", Le = "[data-pie-tts-media]", Re = "[data-pie-tts-seek]", ze = "[data-pie-tts-stop]";
2569
- function L(e) {
2570
- return Q(T) ? Array.from(Q(T).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
2566
+ let Re = "[data-pie-tts-speed-rate]", ze = "[data-pie-tts-media]", Be = "[data-pie-tts-seek]", Ve = "[data-pie-tts-stop]";
2567
+ function He(e) {
2568
+ return Q(w) ? Array.from(Q(w).querySelectorAll(e)).filter((e) => !e.disabled && window.getComputedStyle(e).display !== "none") : [];
2571
2569
  }
2572
- function Be(e, t) {
2573
- let n = L(e);
2570
+ function I(e, t) {
2571
+ let n = He(e);
2574
2572
  if (!n.length) return;
2575
2573
  let r = n[(t + n.length) % n.length];
2576
- if (r.focus(), e !== Ie) return;
2577
- let i = Number(r.dataset.pieTtsSpeedRate), a = Q(ye).find((e) => e.rate === i);
2578
- a && tt(a);
2574
+ if (r.focus(), e !== Re) return;
2575
+ let i = Number(r.dataset.pieTtsSpeedRate), a = Q(Ce).find((e) => e.rate === i);
2576
+ a && nt(a);
2579
2577
  }
2580
2578
  function Ue(e, t) {
2581
- let n = L(e);
2579
+ let n = He(e);
2582
2580
  if (!n.length) return;
2583
- let r = Q(T)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
2584
- Be(e, a === -1 ? 0 : a + t);
2581
+ let r = Q(w)?.getRootNode(), i = r instanceof ShadowRoot ? r.activeElement : null, a = i ? n.indexOf(i) : -1;
2582
+ I(e, a === -1 ? 0 : a + t);
2585
2583
  }
2586
- function We(e, t) {
2584
+ function Ke(e, t) {
2587
2585
  switch (t.key) {
2588
2586
  case "ArrowDown":
2589
2587
  case "ArrowRight":
@@ -2594,172 +2592,163 @@ function wi(e, c) {
2594
2592
  t.preventDefault(), Ue(e, -1);
2595
2593
  break;
2596
2594
  case "Home":
2597
- t.preventDefault(), Be(e, 0);
2595
+ t.preventDefault(), I(e, 0);
2598
2596
  break;
2599
- case "End": t.preventDefault(), Be(e, -1);
2600
- }
2601
- }
2602
- function Ge() {
2603
- if (!Q(se)) return null;
2604
- let e = Q(se);
2605
- if (e.getAttribute?.("data-region") === "content") return e;
2606
- let t = e.querySelector?.("[data-region='content']");
2607
- return t instanceof Element ? t : e;
2608
- }
2609
- function Ke() {
2610
- if (Q(D)) return n({
2611
- kind: Q(D).kind,
2612
- assessmentId: Q(re)?.assessmentId,
2613
- sectionId: Q(re)?.sectionId,
2614
- itemId: Q(D).itemId,
2615
- canonicalItemId: Q(D).canonicalItemId || Q(D).itemId
2616
- });
2597
+ case "End": t.preventDefault(), I(e, -1);
2598
+ }
2599
+ }
2600
+ function qe() {
2601
+ return Q(de) ? c(Q(de)) : null;
2617
2602
  }
2618
- function qe(e) {
2619
- return Je(), me = Q(O)?.setHighlightTargetResolverProvider?.(() => ({
2603
+ function Je() {
2604
+ return Q(ce) ? n(Q(ce), Q(oe)) : void 0;
2605
+ }
2606
+ function Ye(e) {
2607
+ return L(), ve = Q(E)?.setHighlightTargetResolverProvider?.(() => ({
2620
2608
  context: {
2621
- scopeElement: Q(ae)?.scopeElement || e || null,
2622
- kind: Q(D)?.kind,
2623
- itemId: Q(D)?.itemId,
2624
- canonicalItemId: Q(D)?.canonicalItemId,
2625
- contentKind: Q(D)?.contentKind,
2626
- regionPolicy: Q(D)?.regionPolicy
2609
+ scopeElement: Q(le)?.scopeElement || e || null,
2610
+ kind: Q(ce)?.kind,
2611
+ itemId: Q(ce)?.itemId,
2612
+ canonicalItemId: Q(ce)?.canonicalItemId,
2613
+ contentKind: Q(ce)?.contentKind,
2614
+ regionPolicy: Q(ce)?.regionPolicy
2627
2615
  },
2628
- resolver: Q(ae)?.ttsHighlightTargetResolver || null
2629
- })) || null, me;
2616
+ resolver: Q(le)?.ttsHighlightTargetResolver || null
2617
+ })) || null, ve;
2630
2618
  }
2631
- function Je(e = me) {
2632
- e?.(), e === me && (me = null);
2619
+ function L(e = ve) {
2620
+ e?.(), e === ve && (ve = null);
2633
2621
  }
2634
- function Ye() {
2635
- if (!Se()) return !1;
2636
- let e = String(Q(O)?.getState?.() || "");
2622
+ function Xe() {
2623
+ if (!F()) return !1;
2624
+ let e = String(Q(E)?.getState?.() || "");
2637
2625
  return e === "playing" || e === "paused" || e === "loading";
2638
2626
  }
2639
- function R(e) {
2640
- let t = Ae();
2641
- Ee(Q(E).t("tools.textToSpeech.inline.startFailed")), Se() && Te(), Q(oe) && Q(oe).clearTTS(), Je(e), t && queueMicrotask(() => {
2642
- Ne(!0);
2627
+ function Ze(e) {
2628
+ let t = Me();
2629
+ Oe(Q(T).t("tools.textToSpeech.inline.startFailed")), F() && De(), Q(ue) && Q(ue).clearTTS(), L(e), t && queueMicrotask(() => {
2630
+ Fe(!0);
2643
2631
  });
2644
2632
  }
2645
- async function Xe() {
2646
- if (!Q(O)) return;
2647
- let e = null, t = Ge();
2633
+ async function R() {
2634
+ if (!Q(E)) return;
2635
+ let e = null, t = qe();
2648
2636
  if (!t) {
2649
2637
  console.warn("[TTS Inline] No target container found from shell scope context");
2650
2638
  return;
2651
2639
  }
2652
2640
  try {
2653
- U(k, !0);
2654
- let n = t.textContent || "";
2655
- if (!n) {
2641
+ if (U(D, !0), !o(t)) {
2656
2642
  console.warn("[TTS Inline] No text content found");
2657
2643
  return;
2658
2644
  }
2659
- Q(oe) && Q(O).setHighlightCoordinator && Q(O).setHighlightCoordinator(Q(oe)), await ke(Q(O), Q(N)), ge = {
2660
- service: Q(O),
2661
- choicesKey: Q(ve)
2662
- }, e = qe(t), Q(O).setRootElement?.(t), U(fe, !0), U(M, Q(E).t("tools.textToSpeech.inline.starting"), !0), Q(O).speak(n, {
2663
- catalogId: l() || void 0,
2664
- catalogContext: Ke(),
2665
- language: u(),
2666
- contentElement: t
2645
+ Q(ue) && Q(E).setHighlightCoordinator && Q(E).setHighlightCoordinator(Q(ue)), await je(Q(E), Q(j)), be = {
2646
+ service: Q(E),
2647
+ choicesKey: Q(Se)
2648
+ }, e = Ye(t), U(ge, !0), U(A, Q(T).t("tools.textToSpeech.inline.starting"), !0);
2649
+ let n = Q(E);
2650
+ n.speak(t, {
2651
+ catalogId: d() || void 0,
2652
+ catalogContext: Je(),
2653
+ language: f() || Q(oe)?.contentLanguage || void 0
2654
+ }).then(() => {
2655
+ Q(ge) && String(n.getState?.() || "") === "idle" && (U(ge, !1), U(A, ""));
2667
2656
  }).catch((t) => {
2668
- console.error("[TTS Inline] Error:", t), R(e);
2657
+ console.error("[TTS Inline] Error:", t), Ze(e);
2669
2658
  }).finally(() => {
2670
- Ye() || Je(e);
2659
+ Xe() || L(e);
2671
2660
  });
2672
2661
  } catch (t) {
2673
- console.error("[TTS Inline] Error:", t), R(e);
2662
+ console.error("[TTS Inline] Error:", t), Ze(e);
2674
2663
  }
2675
2664
  }
2676
- async function Ze() {
2677
- if (Q(O) && !(Q(he) || Se() && String(Q(O).getState?.() || "") === "loading")) {
2678
- if (Se() && Q(j)) {
2679
- Q(O).resume(), U(M, Q(E).t("tools.textToSpeech.inline.resumed"), !0);
2665
+ async function Qe() {
2666
+ if (Q(E) && !(Q(ye) || F() && String(Q(E).getState?.() || "") === "loading")) {
2667
+ if (F() && Q(k)) {
2668
+ Q(E).resume(), U(A, Q(T).t("tools.textToSpeech.inline.resumed"), !0);
2680
2669
  return;
2681
2670
  }
2682
- if (Se() && Q(A) && !Q(j)) {
2683
- Q(O).pause(), U(M, Q(E).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
2671
+ if (F() && Q(O) && !Q(k)) {
2672
+ Q(E).pause(), U(A, Q(T).t("tools.textToSpeech.inline.pausedAnnouncement"), !0);
2684
2673
  return;
2685
2674
  }
2686
- if (!Q(de)) {
2687
- U(de, !0);
2675
+ if (!Q(he)) {
2676
+ U(he, !0);
2688
2677
  try {
2689
- if (U(M, Q(E).t("tools.textToSpeech.inline.initializing"), !0), !await Fe()) {
2690
- U(M, Q(E).t("tools.textToSpeech.inline.initFailed"), !0);
2678
+ if (U(A, Q(T).t("tools.textToSpeech.inline.initializing"), !0), !await Le()) {
2679
+ U(A, Q(T).t("tools.textToSpeech.inline.initFailed"), !0);
2691
2680
  return;
2692
2681
  }
2693
- let e = String(Q(O).getState?.() || "");
2694
- (e === "playing" || e === "paused" || e === "loading") && !Se() && Q(O).stop(), we(), await Xe();
2682
+ let e = String(Q(E).getState?.() || "");
2683
+ (e === "playing" || e === "paused" || e === "loading") && !F() && Q(E).stop(), Ee(), await R();
2695
2684
  } finally {
2696
- U(de, !1);
2685
+ U(he, !1);
2697
2686
  }
2698
2687
  }
2699
2688
  }
2700
2689
  }
2701
- function Qe() {
2702
- if (!Q(O)) return;
2703
- let e = Ae();
2704
- Q(O).stop(), Te(), Ee(Q(E).t("tools.textToSpeech.inline.stopped")), Q(oe) && Q(oe).clearTTS(), Je(), e && queueMicrotask(() => {
2705
- Ne(!0);
2690
+ function $e() {
2691
+ if (!Q(E)) return;
2692
+ let e = Me();
2693
+ Q(E).stop(), De(), Oe(Q(T).t("tools.textToSpeech.inline.stopped")), Q(ue) && Q(ue).clearTTS(), L(), e && queueMicrotask(() => {
2694
+ Fe(!0);
2706
2695
  });
2707
2696
  }
2708
- async function $e() {
2709
- if (Q(O) && Q(A)) try {
2710
- await Q(O).seekForward?.(1), U(M, Q(E).t("tools.textToSpeech.inline.skippedForward"), !0);
2697
+ async function et() {
2698
+ if (Q(E) && Q(O)) try {
2699
+ await Q(E).seekForward(1), U(A, Q(T).t("tools.textToSpeech.inline.skippedForward"), !0);
2711
2700
  } catch (e) {
2712
- console.error("[TTS Inline] Seek forward failed:", e), U(M, Q(E).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
2701
+ console.error("[TTS Inline] Seek forward failed:", e), U(A, Q(T).t("tools.textToSpeech.inline.skipForwardFailed"), !0);
2713
2702
  }
2714
2703
  }
2715
- async function et() {
2716
- if (Q(O) && Q(A)) try {
2717
- await Q(O).seekBackward?.(1), U(M, Q(E).t("tools.textToSpeech.inline.skippedBackward"), !0);
2704
+ async function tt() {
2705
+ if (Q(E) && Q(O)) try {
2706
+ await Q(E).seekBackward(1), U(A, Q(T).t("tools.textToSpeech.inline.skippedBackward"), !0);
2718
2707
  } catch (e) {
2719
- console.error("[TTS Inline] Seek backward failed:", e), U(M, Q(E).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
2708
+ console.error("[TTS Inline] Seek backward failed:", e), U(A, Q(T).t("tools.textToSpeech.inline.skipBackwardFailed"), !0);
2720
2709
  }
2721
2710
  }
2722
- async function tt(e) {
2723
- let t = Q(O);
2711
+ async function nt(e) {
2712
+ let t = Q(E);
2724
2713
  if (!t) return;
2725
- if (Q(N) === e.rate) {
2726
- U(M, Q(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
2714
+ if (Q(j) === e.rate) {
2715
+ U(A, Q(T).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
2727
2716
  return;
2728
2717
  }
2729
- let n = Q(le), r = Q(ue);
2730
- U(le, e.rate, !0), U(ue, Q(ve), !0), U(M, Q(E).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
2718
+ let n = Q(pe), r = Q(me);
2719
+ U(pe, e.rate, !0), U(me, Q(Se), !0), U(A, Q(T).t("tools.textToSpeech.inline.speedAnnounce", { label: e.label }), !0);
2731
2720
  let i = {
2732
2721
  service: t,
2733
- choicesKey: Q(ve)
2722
+ choicesKey: Q(Se)
2734
2723
  };
2735
- ge = i;
2724
+ be = i;
2736
2725
  try {
2737
- await ke(t, e.rate);
2726
+ await je(t, e.rate);
2738
2727
  } catch (e) {
2739
- ge === i && (ge = null), console.error("[TTS Inline] Playback speed change failed:", e), U(le, n, !0), U(ue, r, !0), U(M, Q(E).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
2728
+ be === i && (be = null), console.error("[TTS Inline] Playback speed change failed:", e), U(pe, n, !0), U(me, r, !0), U(A, Q(T).t("tools.textToSpeech.inline.speedChangeFailed"), !0);
2740
2729
  }
2741
2730
  }
2742
- let nt = /* @__PURE__ */ z(() => d() === "sm" ? "pie-tool-tts-inline__trigger--sm" : d() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), rt = /* @__PURE__ */ z(() => m() === "reserved-row" || m() === "expanding-row"), it = /* @__PURE__ */ z(() => m() === "floating-overlay"), at = /* @__PURE__ */ z(() => m() === "left-aligned"), ot = /* @__PURE__ */ z(() => Q(it) || Q(at)), st = "[data-pie-tool-overlay-boundary]", ct = /* @__PURE__ */ H(""), lt = /* @__PURE__ */ H(0);
2743
- un(() => {
2744
- let e = Q(O), t = Q(ve), n = Q(A) || Q(j);
2745
- if (!e || !n || !Se() || ge?.service === e && ge.choicesKey === t) return;
2731
+ let rt = /* @__PURE__ */ z(() => p() === "sm" ? "pie-tool-tts-inline__trigger--sm" : p() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), it = /* @__PURE__ */ z(() => g() === "reserved-row" || g() === "expanding-row"), at = /* @__PURE__ */ z(() => g() === "floating-overlay"), ot = /* @__PURE__ */ z(() => g() === "left-aligned"), st = /* @__PURE__ */ z(() => Q(at) || Q(ot)), ct = "[data-pie-tool-overlay-boundary]", lt = /* @__PURE__ */ H(""), ut = /* @__PURE__ */ H(0);
2732
+ fn(() => {
2733
+ let e = Q(E), t = Q(Se), n = Q(O) || Q(k);
2734
+ if (!e || !n || !F() || be?.service === e && be.choicesKey === t) return;
2746
2735
  let r = {
2747
2736
  service: e,
2748
2737
  choicesKey: t
2749
2738
  };
2750
- ge = r;
2739
+ be = r;
2751
2740
  let i = !1;
2752
2741
  return queueMicrotask(() => {
2753
- if (i || ge !== r) return;
2754
- let t = Q(N);
2755
- ke(e, t).catch((e) => {
2756
- ge === r && (ge = null), console.error("[TTS Inline] External playback speed sync failed:", e);
2742
+ if (i || be !== r) return;
2743
+ let t = Q(j);
2744
+ je(e, t).catch((e) => {
2745
+ be === r && (be = null), console.error("[TTS Inline] External playback speed sync failed:", e);
2757
2746
  });
2758
2747
  }), () => {
2759
2748
  i = !0;
2760
2749
  };
2761
2750
  });
2762
- function ut(e, t) {
2751
+ function dt(e, t) {
2763
2752
  let n = e;
2764
2753
  for (; n;) {
2765
2754
  if (n.matches?.(t)) return n;
@@ -2767,37 +2756,37 @@ function wi(e, c) {
2767
2756
  }
2768
2757
  return null;
2769
2758
  }
2770
- function dt() {
2771
- let e = Q(w)?.getRootNode();
2759
+ function ft() {
2760
+ let e = Q(C)?.getRootNode();
2772
2761
  return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
2773
2762
  }
2774
- function ft(e) {
2763
+ function pt(e) {
2775
2764
  let t = window.getComputedStyle(e), n = parseFloat(t.columnGap || t.gap) || 0, r = (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0) + (parseFloat(t.borderLeftWidth) || 0) + (parseFloat(t.borderRightWidth) || 0), i = Array.from(e.children).filter((e) => window.getComputedStyle(e).display !== "none");
2776
2765
  return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
2777
2766
  }
2778
- function B() {
2779
- let e = dt();
2780
- if (!e || !Q(T)) return;
2781
- let t = e.getBoundingClientRect(), n = ut(e, st), r = n?.getBoundingClientRect().left ?? 0, i = Math.max(0, t.left - r - 16);
2782
- if (!Q(ce)) {
2783
- let e = ft(Q(T));
2784
- e > 0 && U(lt, e, !0);
2785
- }
2786
- U(ce, Q(lt) > 0 && i < Q(lt), !0);
2787
- let a = parseFloat(window.getComputedStyle(Q(T)).minWidth) || 0;
2788
- if (Q(ce) && i < a) {
2789
- 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(Q(T).offsetWidth, a), s = Math.max(r, Math.min(t.right - o, i - o));
2790
- U(ct, `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));`);
2767
+ function mt() {
2768
+ let e = ft();
2769
+ if (!e || !Q(w)) return;
2770
+ let t = e.getBoundingClientRect(), n = dt(e, ct), r = n?.getBoundingClientRect().left ?? 0, i = Math.max(0, t.left - r - 16);
2771
+ if (!Q(fe)) {
2772
+ let e = pt(Q(w));
2773
+ e > 0 && U(ut, e, !0);
2774
+ }
2775
+ U(fe, Q(ut) > 0 && i < Q(ut), !0);
2776
+ let a = parseFloat(window.getComputedStyle(Q(w)).minWidth) || 0;
2777
+ if (Q(fe) && i < a) {
2778
+ 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(Q(w).offsetWidth, a), s = Math.max(r, Math.min(t.right - o, i - o));
2779
+ U(lt, `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));`);
2791
2780
  return;
2792
2781
  }
2793
- let o = Q(T).offsetHeight || t.height, s = Q(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;
2794
- U(ct, `top: ${c}px; right: ${l}px; left: auto; max-width: min(${i}px, var(--pie-tts-left-aligned-panel-width, ${i}px));`);
2782
+ let o = Q(w).offsetHeight || t.height, s = Q(fe) ? 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;
2783
+ U(lt, `top: ${c}px; right: ${l}px; left: auto; max-width: min(${i}px, var(--pie-tts-left-aligned-panel-width, ${i}px));`);
2795
2784
  }
2796
- un(() => {
2797
- if (!(Q(at) && Q(k))) {
2785
+ fn(() => {
2786
+ if (!(Q(ot) && Q(D))) {
2798
2787
  let e = !1;
2799
2788
  return queueMicrotask(() => {
2800
- e || (U(ct, ""), U(ce, !1), U(lt, 0));
2789
+ e || (U(lt, ""), U(fe, !1), U(ut, 0));
2801
2790
  }), () => {
2802
2791
  e = !0;
2803
2792
  };
@@ -2805,28 +2794,28 @@ function wi(e, c) {
2805
2794
  if (typeof window > "u") return;
2806
2795
  let e = 0, t = () => {
2807
2796
  e ||= window.requestAnimationFrame(() => {
2808
- e = 0, B();
2797
+ e = 0, mt();
2809
2798
  });
2810
2799
  };
2811
2800
  t(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
2812
- let n = dt(), r = new ResizeObserver(t);
2813
- n && r.observe(n), Q(T) && r.observe(Q(T));
2814
- let i = n ? ut(n, st) : null;
2801
+ let n = ft(), r = new ResizeObserver(t);
2802
+ n && r.observe(n), Q(w) && r.observe(Q(w));
2803
+ let i = n ? dt(n, ct) : null;
2815
2804
  i && r.observe(i);
2816
2805
  let a = i?.querySelector("[data-pie-tool-overlay-protect]");
2817
2806
  return a && r.observe(a), () => {
2818
2807
  e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
2819
2808
  };
2820
2809
  });
2821
- function pt() {
2822
- if (!Q(w)) return null;
2823
- let e = Q(w).getRootNode();
2810
+ function B() {
2811
+ if (!Q(C)) return null;
2812
+ let e = Q(C).getRootNode();
2824
2813
  return e instanceof ShadowRoot ? e.host : null;
2825
2814
  }
2826
- un(() => {
2827
- let e = pt();
2815
+ fn(() => {
2816
+ let e = B();
2828
2817
  if (!e) return;
2829
- let t = Q(k) === !0;
2818
+ let t = Q(D) === !0;
2830
2819
  if (e.getAttribute("data-active") === "true" === t) return;
2831
2820
  let n = !1;
2832
2821
  return queueMicrotask(() => {
@@ -2839,131 +2828,131 @@ function wi(e, c) {
2839
2828
  n = !0;
2840
2829
  };
2841
2830
  });
2842
- var V = {
2831
+ var ht = {
2843
2832
  get catalogId() {
2844
- return l();
2833
+ return d();
2845
2834
  },
2846
2835
  set catalogId(e = "") {
2847
- l(e), St();
2836
+ d(e), wt();
2848
2837
  },
2849
2838
  get language() {
2850
- return u();
2839
+ return f();
2851
2840
  },
2852
- set language(e = "en-US") {
2853
- u(e), St();
2841
+ set language(e = "") {
2842
+ f(e), wt();
2854
2843
  },
2855
2844
  get size() {
2856
- return d();
2845
+ return p();
2857
2846
  },
2858
2847
  set size(e = "md") {
2859
- d(e), St();
2848
+ p(e), wt();
2860
2849
  },
2861
2850
  get speedOptions() {
2862
- return f();
2851
+ return m();
2863
2852
  },
2864
2853
  set speedOptions(e = void 0) {
2865
- f(e), St();
2854
+ m(e), wt();
2866
2855
  },
2867
2856
  get showSingleSpeedOption() {
2868
- return p();
2857
+ return h();
2869
2858
  },
2870
2859
  set showSingleSpeedOption(e = !1) {
2871
- p(e), St();
2860
+ h(e), wt();
2872
2861
  },
2873
2862
  get layoutMode() {
2874
- return m();
2863
+ return g();
2875
2864
  },
2876
- set layoutMode(e = "expanding-row") {
2877
- m(e), St();
2865
+ set layoutMode(e = "left-aligned") {
2866
+ g(e), wt();
2878
2867
  }
2879
- }, mt = hr(), ht = Yt(mt), gt = (e) => {
2880
- var t = Si();
2868
+ }, V = _r(), gt = Zt(V), _t = (e) => {
2869
+ var t = wi();
2881
2870
  let n;
2882
2871
  {
2883
2872
  let e = (e) => {
2884
- var t = _i(), n = Jt(t), r = (e) => {
2885
- var t = hi();
2886
- ei(t, "type", "circle"), ei(t, "size", "small"), ei(t, "variant", "tertiary"), _n(() => ei(t, "icon-name", Q(A) && !Q(j) ? "pause" : "play")), _n((e) => ei(t, "button-aria-label", e), [() => Q(E).t(Q(A) && !Q(j) ? "tools.textToSpeech.inline.pauseA11y" : Q(j) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), _n(() => ei(t, "disabled", !Q(O))), Hr(t, (e) => te?.(e)), Hr(t, (e, t) => ne?.(e, t), () => ({
2887
- "aria-expanded": Q(k) ? "true" : "false",
2888
- "aria-controls": Q(k) ? I : null,
2889
- "aria-pressed": Q(k) ? "true" : "false",
2890
- "aria-busy": Q(he) ? "true" : null
2891
- })), _n(() => Jr(t, 1, `pie-tool-tts-inline__trigger ${Q(nt) ?? ""}`, "svelte-9msc39")), ar("click", t, Ze), gr(e, t);
2873
+ var t = yi(), n = Xt(t), r = (e) => {
2874
+ var t = _i();
2875
+ ni(t, "type", "circle"), ni(t, "size", "small"), ni(t, "variant", "tertiary"), yn(() => ni(t, "icon-name", Q(O) && !Q(k) ? "pause" : "play")), yn((e) => ni(t, "button-aria-label", e), [() => Q(T).t(Q(O) && !Q(k) ? "tools.textToSpeech.inline.pauseA11y" : Q(k) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), yn(() => ni(t, "disabled", !Q(E))), Wr(t, (e) => ie?.(e)), Wr(t, (e, t) => ae?.(e, t), () => ({
2876
+ "aria-expanded": Q(D) ? "true" : "false",
2877
+ "aria-controls": Q(D) ? N : null,
2878
+ "aria-pressed": Q(D) ? "true" : "false",
2879
+ "aria-busy": Q(ye) ? "true" : null
2880
+ })), yn(() => Xr(t, 1, `pie-tool-tts-inline__trigger ${Q(rt) ?? ""}`, "svelte-9msc39")), sr("click", t, Qe), vr(e, t);
2892
2881
  }, i = (e) => {
2893
- var t = gi(), n = Xt(t);
2894
- Hr(t, (e) => C?.(e)), _n((e) => {
2895
- Jr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Q(nt) ?? ""}`, "svelte-9msc39"), $(t, "aria-expanded", Q(k) ? "true" : "false"), $(t, "aria-controls", Q(k) ? I : void 0), $(t, "aria-pressed", Q(k) ? "true" : "false"), $(t, "aria-label", e), $(t, "aria-busy", Q(he) ? "true" : void 0), t.disabled = !Q(O), Jr(n, 1, `fa-solid ${Q(A) && !Q(j) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-9msc39");
2896
- }, [() => Q(E).t(Q(A) && !Q(j) ? "tools.textToSpeech.inline.pauseA11y" : Q(j) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), ar("click", t, Ze), gr(e, t);
2882
+ var t = vi(), n = Qt(t);
2883
+ Wr(t, (e) => S?.(e)), yn((e) => {
2884
+ Xr(t, 1, `pie-tool-tts-inline__control pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--plain ${Q(rt) ?? ""}`, "svelte-9msc39"), $(t, "aria-expanded", Q(D) ? "true" : "false"), $(t, "aria-controls", Q(D) ? N : void 0), $(t, "aria-pressed", Q(D) ? "true" : "false"), $(t, "aria-label", e), $(t, "aria-busy", Q(ye) ? "true" : void 0), t.disabled = !Q(E), Xr(n, 1, `fa-solid ${Q(O) && !Q(k) ? "fa-pause" : "fa-play"} pie-tool-tts-inline__icon`, "svelte-9msc39");
2885
+ }, [() => Q(T).t(Q(O) && !Q(k) ? "tools.textToSpeech.inline.pauseA11y" : Q(k) ? "tools.textToSpeech.inline.resumeA11y" : "tools.textToSpeech.inline.playA11y")]), sr("click", t, Qe), vr(e, t);
2897
2886
  };
2898
- jr(n, (e) => {
2899
- Q(ie) ? e(r) : e(i, -1);
2900
- }), xe(t), gr(e, t);
2887
+ Nr(n, (e) => {
2888
+ Q(se) ? e(r) : e(i, -1);
2889
+ }), we(t), vr(e, t);
2901
2890
  }, n = (e) => {
2902
- var t = hr(), n = Yt(t), r = (e) => {
2903
- var t = bi();
2891
+ var t = _r(), n = Zt(t), r = (e) => {
2892
+ var t = Si();
2904
2893
  let n;
2905
- var r = Jt(t), i = (e) => {
2906
- var t = yi();
2894
+ var r = Xt(t), i = (e) => {
2895
+ var t = xi();
2907
2896
  let n;
2908
- Fr(t, 21, () => Q(ye), (e) => e.rate, (e, t) => {
2909
- var n = vi(), r = Jt(n), i = Xt(r, !0);
2910
- xe(n), _n(() => {
2911
- $(n, "data-pie-tts-speed-rate", Q(t).rate), $(n, "tabindex", Q(N) === Q(t).rate ? 0 : -1), $(n, "aria-label", Q(t).ariaLabel), $(n, "aria-checked", Q(N) === Q(t).rate), n.disabled = !Q(O), $(r, "data-label", Q(t).label), Cr(i, Q(t).label);
2912
- }), ar("click", n, () => tt(Q(t))), ar("keydown", n, (e) => We(Ie, e)), gr(e, n);
2913
- }), xe(t), _n((e) => {
2914
- n = Jr(t, 1, "pie-tool-tts-inline__speed-group svelte-9msc39", null, n, { "pie-tool-tts-inline__speed-group--stacked": Q(ce) }), $(t, "aria-label", e);
2915
- }, [() => Q(E).t("tools.textToSpeech.inline.playbackSpeedA11y")]), gr(e, t);
2897
+ Lr(t, 21, () => Q(Ce), (e) => e.rate, (e, t) => {
2898
+ var n = bi(), r = Xt(n), i = Qt(r, !0);
2899
+ we(n), yn(() => {
2900
+ $(n, "data-pie-tts-speed-rate", Q(t).rate), $(n, "tabindex", Q(j) === Q(t).rate ? 0 : -1), $(n, "aria-label", Q(t).ariaLabel), $(n, "aria-checked", Q(j) === Q(t).rate), n.disabled = !Q(E), $(r, "data-label", Q(t).label), Tr(i, Q(t).label);
2901
+ }), sr("click", n, () => nt(Q(t))), sr("keydown", n, (e) => Ke(Re, e)), vr(e, n);
2902
+ }), we(t), yn((e) => {
2903
+ n = Xr(t, 1, "pie-tool-tts-inline__speed-group svelte-9msc39", null, n, { "pie-tool-tts-inline__speed-group--stacked": Q(fe) }), $(t, "aria-label", e);
2904
+ }, [() => Q(T).t("tools.textToSpeech.inline.playbackSpeedA11y")]), vr(e, t);
2916
2905
  };
2917
- jr(r, (e) => {
2918
- Q(ye).length > 0 && e(i);
2906
+ Nr(r, (e) => {
2907
+ Q(Ce).length > 0 && e(i);
2919
2908
  });
2920
- var a = Zt(r, 2), o = Zt(a, 2), s = Zt(o, 2);
2921
- xe(t), ai(t, (e) => U(T, e), () => Q(T)), _n((e, r, i, c) => {
2922
- $(t, "id", I), n = Jr(t, 1, "pie-tool-tts-inline__panel svelte-9msc39", null, n, {
2923
- "pie-tool-tts-inline__panel--floating": Q(it),
2924
- "pie-tool-tts-inline__panel--row": Q(rt),
2925
- "pie-tool-tts-inline__panel--left-aligned-inline": Q(at),
2926
- "pie-tool-tts-inline__panel--compact": Q(at) && Q(ce)
2927
- }), Xr(t, Q(at) ? Q(ct) : ""), $(t, "aria-label", e), $(a, "aria-label", r), a.disabled = !Q(O) || !Q(A), $(o, "aria-label", i), o.disabled = !Q(O) || !Q(A), $(s, "aria-label", c), s.disabled = !Q(O);
2909
+ var a = $t(r, 2), o = $t(a, 2), s = $t(o, 2);
2910
+ we(t), si(t, (e) => U(w, e), () => Q(w)), yn((e, r, i, c) => {
2911
+ $(t, "id", N), n = Xr(t, 1, "pie-tool-tts-inline__panel svelte-9msc39", null, n, {
2912
+ "pie-tool-tts-inline__panel--floating": Q(at),
2913
+ "pie-tool-tts-inline__panel--row": Q(it),
2914
+ "pie-tool-tts-inline__panel--left-aligned-inline": Q(ot),
2915
+ "pie-tool-tts-inline__panel--compact": Q(ot) && Q(fe)
2916
+ }), Qr(t, Q(ot) ? Q(lt) : ""), $(t, "aria-label", e), $(a, "aria-label", r), a.disabled = !Q(E) || !Q(O), $(o, "aria-label", i), o.disabled = !Q(E) || !Q(O), $(s, "aria-label", c), s.disabled = !Q(E);
2928
2917
  }, [
2929
- () => Q(E).t("tools.textToSpeech.inline.controlsA11y"),
2930
- () => Q(E).t("tools.textToSpeech.inline.rewindA11y"),
2931
- () => Q(E).t("tools.textToSpeech.inline.fastForwardA11y"),
2932
- () => Q(E).t("tools.textToSpeech.inline.stopA11y")
2933
- ]), ar("click", a, et), ar("keydown", a, (e) => We(Le, e)), ar("click", o, $e), ar("keydown", o, (e) => We(Le, e)), ar("click", s, Qe), ar("keydown", s, (e) => We(Le, e)), gr(e, t);
2918
+ () => Q(T).t("tools.textToSpeech.inline.controlsA11y"),
2919
+ () => Q(T).t("tools.textToSpeech.inline.rewindA11y"),
2920
+ () => Q(T).t("tools.textToSpeech.inline.fastForwardA11y"),
2921
+ () => Q(T).t("tools.textToSpeech.inline.stopA11y")
2922
+ ]), sr("click", a, tt), sr("keydown", a, (e) => Ke(ze, e)), sr("click", o, et), sr("keydown", o, (e) => Ke(ze, e)), sr("click", s, $e), sr("keydown", s, (e) => Ke(ze, e)), vr(e, t);
2934
2923
  };
2935
- jr(n, (e) => {
2936
- Q(k) && e(r);
2937
- }), gr(e, t);
2924
+ Nr(n, (e) => {
2925
+ Q(D) && e(r);
2926
+ }), vr(e, t);
2938
2927
  };
2939
- var r = Jt(t), i = (t) => {
2940
- var r = xi(), i = Yt(r);
2928
+ var r = Xt(t), i = (t) => {
2929
+ var r = Ci(), i = Zt(r);
2941
2930
  n(i);
2942
- var a = Zt(i, 2);
2943
- e(a), gr(t, r);
2931
+ var a = $t(i, 2);
2932
+ e(a), vr(t, r);
2944
2933
  }, a = (t) => {
2945
- var r = xi(), i = Yt(r);
2934
+ var r = Ci(), i = Zt(r);
2946
2935
  e(i);
2947
- var a = Zt(i, 2);
2948
- n(a), gr(t, r);
2936
+ var a = $t(i, 2);
2937
+ n(a), vr(t, r);
2949
2938
  };
2950
- jr(r, (e) => {
2951
- Q(ot) ? e(i) : e(a, -1);
2939
+ Nr(r, (e) => {
2940
+ Q(st) ? e(i) : e(a, -1);
2952
2941
  });
2953
- var o = Xt(Zt(r, 2), !0);
2954
- xe(t), ai(t, (e) => U(w, e), () => Q(w)), _n(() => Cr(o, Q(M)));
2955
- }
2956
- _n(() => n = Jr(t, 1, "pie-tool-tts-inline svelte-9msc39", null, n, {
2957
- "pie-tool-tts-inline--controls-row": Q(rt),
2958
- "pie-tool-tts-inline--floating": Q(it),
2959
- "pie-tool-tts-inline--left-aligned": Q(at)
2960
- })), gr(e, t);
2942
+ var o = Qt($t(r, 2), !0);
2943
+ we(t), si(t, (e) => U(C, e), () => Q(C)), yn(() => Tr(o, Q(A)));
2944
+ }
2945
+ yn(() => n = Xr(t, 1, "pie-tool-tts-inline svelte-9msc39", null, n, {
2946
+ "pie-tool-tts-inline--controls-row": Q(it),
2947
+ "pie-tool-tts-inline--floating": Q(at),
2948
+ "pie-tool-tts-inline--left-aligned": Q(ot)
2949
+ })), vr(e, t);
2961
2950
  };
2962
- return jr(ht, (e) => {
2963
- h && e(gt);
2964
- }), gr(e, mt), He(V);
2951
+ return Nr(gt, (e) => {
2952
+ _ && e(_t);
2953
+ }), vr(e, V), Ge(ht);
2965
2954
  }
2966
- or(["click", "keydown"]), Ti("pie-tool-tts-inline", mi(wi, {
2955
+ cr(["click", "keydown"]), Di("pie-tool-tts-inline", gi(Ei, {
2967
2956
  catalogId: {
2968
2957
  attribute: "catalog-id",
2969
2958
  type: "String"
@@ -2989,8 +2978,8 @@ or(["click", "keydown"]), Ti("pie-tool-tts-inline", mi(wi, {
2989
2978
  type: "String"
2990
2979
  }
2991
2980
  }, [], [], { mode: "open" }, e));
2992
- function Ti(e, t) {
2981
+ function Di(e, t) {
2993
2982
  customElements.get(e) || customElements.define(e, t);
2994
2983
  }
2995
2984
  //#endregion
2996
- export { wi as default };
2985
+ export { Ei as default };