@pie-qti/player-elements 0.1.24 → 0.1.26

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