@pie-players/pie-tool-tts-inline 0.3.56 → 0.3.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/tool-tts-inline.js +1789 -992
  2. package/package.json +4 -3
@@ -3,11 +3,11 @@ import { PIE_TTS_CONTROL_HANDOFF_EVENT as e, connectToolRegionScopeContext as t,
3
3
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
4
4
  //#endregion
5
5
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/constants.js
6
- var a = {}, o = Symbol("uninitialized"), s = "http://www.w3.org/1999/xhtml", c = Array.isArray, l = Array.prototype.indexOf, u = Array.prototype.includes, d = Array.from, f = Object.keys, p = Object.defineProperty, m = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyDescriptors, g = Object.prototype, _ = Array.prototype, v = Object.getPrototypeOf, y = Object.isExtensible, b = () => {};
7
- function x(e) {
6
+ var a = {}, o = Symbol("uninitialized"), s = "http://www.w3.org/1999/xhtml", c = Array.isArray, l = Array.prototype.indexOf, u = Array.prototype.includes, d = Array.from, f = Object.keys, p = Object.defineProperty, m = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyDescriptors, g = Object.prototype, _ = Array.prototype, v = Object.getPrototypeOf, y = Object.isExtensible, ee = () => {};
7
+ function b(e) {
8
8
  for (var t = 0; t < e.length; t++) e[t]();
9
9
  }
10
- function S() {
10
+ function x() {
11
11
  var e, t;
12
12
  return {
13
13
  promise: new Promise((n, r) => {
@@ -17,85 +17,85 @@ function S() {
17
17
  reject: t
18
18
  };
19
19
  }
20
- var C = 1024, w = 2048, T = 4096, E = 8192, D = 16384, O = 32768, ee = 1 << 25, te = 65536, k = 1 << 19, ne = 1 << 20, re = 1 << 25, ie = 65536, ae = 1 << 21, oe = 1 << 22, se = 1 << 23, A = Symbol("$state"), ce = Symbol("legacy props"), le = Symbol(""), ue = Symbol("attributes"), j = Symbol("class"), de = Symbol("style"), fe = Symbol("text"), pe = new class extends Error {
20
+ var S = 1024, C = 2048, w = 4096, T = 8192, te = 16384, E = 32768, ne = 1 << 25, D = 65536, O = 1 << 19, re = 1 << 20, k = 1 << 25, ie = 65536, A = 1 << 21, ae = 1 << 22, j = 1 << 23, M = Symbol("$state"), oe = Symbol("legacy props"), se = Symbol(""), ce = Symbol("attributes"), le = Symbol("class"), ue = Symbol("style"), de = Symbol("text"), fe = new class extends Error {
21
21
  name = "StaleReactionError";
22
22
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
23
- }(), me = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
23
+ }(), pe = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
24
24
  //#endregion
25
25
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/errors.js
26
- function he() {
26
+ function me() {
27
27
  throw Error("https://svelte.dev/e/async_derived_orphan");
28
28
  }
29
- function ge(e, t, n) {
29
+ function he(e, t, n) {
30
30
  throw Error("https://svelte.dev/e/each_key_duplicate");
31
31
  }
32
- function _e(e) {
32
+ function ge(e) {
33
33
  throw Error("https://svelte.dev/e/effect_in_teardown");
34
34
  }
35
- function ve() {
35
+ function _e() {
36
36
  throw Error("https://svelte.dev/e/effect_in_unowned_derived");
37
37
  }
38
- function ye(e) {
38
+ function ve(e) {
39
39
  throw Error("https://svelte.dev/e/effect_orphan");
40
40
  }
41
- function be() {
41
+ function ye() {
42
42
  throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
43
43
  }
44
- function xe() {
44
+ function be() {
45
45
  throw Error("https://svelte.dev/e/hydration_failed");
46
46
  }
47
- function Se(e) {
47
+ function xe(e) {
48
48
  throw Error("https://svelte.dev/e/props_invalid_value");
49
49
  }
50
- function Ce() {
50
+ function Se() {
51
51
  throw Error("https://svelte.dev/e/state_descriptors_fixed");
52
52
  }
53
- function we() {
53
+ function Ce() {
54
54
  throw Error("https://svelte.dev/e/state_prototype_fixed");
55
55
  }
56
- function Te() {
56
+ function we() {
57
57
  throw Error("https://svelte.dev/e/state_unsafe_mutation");
58
58
  }
59
- function Ee() {
59
+ function Te() {
60
60
  throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
61
61
  }
62
- function De() {
62
+ function Ee() {
63
63
  console.warn("https://svelte.dev/e/derived_inert");
64
64
  }
65
- function Oe(e) {
65
+ function De(e) {
66
66
  console.warn("https://svelte.dev/e/hydration_mismatch");
67
67
  }
68
- function ke() {
68
+ function Oe() {
69
69
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
70
70
  }
71
71
  //#endregion
72
72
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/hydration.js
73
- var M = !1;
74
- function Ae(e) {
75
- M = e;
76
- }
77
- var N;
73
+ var N = !1;
78
74
  function P(e) {
79
- if (e === null) throw Oe(), a;
80
- return N = e;
75
+ N = e;
81
76
  }
82
- function je() {
83
- return P(/* @__PURE__ */ tn(N));
77
+ var F;
78
+ function I(e) {
79
+ if (e === null) throw De(), a;
80
+ return F = e;
84
81
  }
85
- function Me(e) {
86
- if (M) {
87
- if (/* @__PURE__ */ tn(N) !== null) throw Oe(), a;
88
- N = e;
82
+ function ke() {
83
+ return I(/* @__PURE__ */ tn(F));
84
+ }
85
+ function Ae(e) {
86
+ if (N) {
87
+ if (/* @__PURE__ */ tn(F) !== null) throw De(), a;
88
+ F = e;
89
89
  }
90
90
  }
91
- function Ne(e = 1) {
92
- if (M) {
93
- for (var t = e, n = N; t--;) n = /* @__PURE__ */ tn(n);
94
- N = n;
91
+ function je(e = 1) {
92
+ if (N) {
93
+ for (var t = e, n = F; t--;) n = /* @__PURE__ */ tn(n);
94
+ F = n;
95
95
  }
96
96
  }
97
- function Pe(e = !0) {
98
- for (var t = 0, n = N;;) {
97
+ function Me(e = !0) {
98
+ for (var t = 0, n = F;;) {
99
99
  if (n.nodeType === 8) {
100
100
  var r = n.data;
101
101
  if (r === "]") {
@@ -107,80 +107,80 @@ function Pe(e = !0) {
107
107
  e && n.remove(), n = i;
108
108
  }
109
109
  }
110
- function Fe(e) {
111
- if (!e || e.nodeType !== 8) throw Oe(), a;
110
+ function Ne(e) {
111
+ if (!e || e.nodeType !== 8) throw De(), a;
112
112
  return e.data;
113
113
  }
114
114
  //#endregion
115
115
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/equality.js
116
- function Ie(e) {
116
+ function Pe(e) {
117
117
  return e === this.v;
118
118
  }
119
- function Le(e, t) {
119
+ function Fe(e, t) {
120
120
  return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
121
121
  }
122
- function Re(e) {
123
- return !Le(e, this.v);
122
+ function Ie(e) {
123
+ return !Fe(e, this.v);
124
124
  }
125
125
  //#endregion
126
126
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/flags/index.js
127
- var F = !1, ze = !1, I = null;
128
- function Be(e) {
129
- I = e;
127
+ var Le = !1, Re = !1, L = null;
128
+ function ze(e) {
129
+ L = e;
130
130
  }
131
- function Ve(e, t = !1, n) {
132
- I = {
133
- p: I,
131
+ function Be(e, t = !1, n) {
132
+ L = {
133
+ p: L,
134
134
  i: !1,
135
135
  c: null,
136
136
  e: null,
137
137
  s: e,
138
138
  x: null,
139
139
  r: J,
140
- l: ze && !t ? {
140
+ l: Re && !t ? {
141
141
  s: null,
142
142
  u: null,
143
143
  $: []
144
144
  } : null
145
145
  };
146
146
  }
147
- function He(e) {
148
- var t = I, n = t.e;
147
+ function Ve(e) {
148
+ var t = L, n = t.e;
149
149
  if (n !== null) {
150
150
  t.e = null;
151
151
  for (var r of n) _n(r);
152
152
  }
153
- return e !== void 0 && (t.x = e), t.i = !0, I = t.p, e ?? {};
153
+ return e !== void 0 && (t.x = e), t.i = !0, L = t.p, e ?? {};
154
154
  }
155
- function Ue() {
156
- return !ze || I !== null && I.l === null;
155
+ function He() {
156
+ return !Re || L !== null && L.l === null;
157
157
  }
158
158
  //#endregion
159
159
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/task.js
160
- var We = [];
161
- function Ge() {
162
- var e = We;
163
- We = [], x(e);
164
- }
165
- function Ke(e) {
166
- if (We.length === 0 && !st) {
167
- var t = We;
160
+ var Ue = [];
161
+ function We() {
162
+ var e = Ue;
163
+ Ue = [], b(e);
164
+ }
165
+ function Ge(e) {
166
+ if (Ue.length === 0 && !at) {
167
+ var t = Ue;
168
168
  queueMicrotask(() => {
169
- t === We && Ge();
169
+ t === Ue && We();
170
170
  });
171
171
  }
172
- We.push(e);
172
+ Ue.push(e);
173
173
  }
174
- function qe() {
175
- for (; We.length > 0;) Ge();
174
+ function Ke() {
175
+ for (; Ue.length > 0;) We();
176
176
  }
177
- function Je(e) {
177
+ function qe(e) {
178
178
  var t = J;
179
- if (t === null) return q.f |= se, e;
179
+ if (t === null) return K.f |= j, e;
180
180
  if (!(t.f & 32768) && !(t.f & 4)) throw e;
181
- Ye(e, t);
181
+ R(e, t);
182
182
  }
183
- function Ye(e, t) {
183
+ function R(e, t) {
184
184
  for (; t !== null;) {
185
185
  if (t.f & 128) {
186
186
  if (!(t.f & 32768)) throw e;
@@ -197,36 +197,36 @@ function Ye(e, t) {
197
197
  }
198
198
  //#endregion
199
199
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/status.js
200
- var Xe = ~(w | T | C);
201
- function L(e, t) {
202
- e.f = e.f & Xe | t;
200
+ var Je = ~(C | w | S);
201
+ function z(e, t) {
202
+ e.f = e.f & Je | t;
203
203
  }
204
- function Ze(e) {
205
- e.f & 512 || e.deps === null ? L(e, C) : L(e, T);
204
+ function Ye(e) {
205
+ e.f & 512 || e.deps === null ? z(e, S) : z(e, w);
206
206
  }
207
207
  //#endregion
208
208
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/utils.js
209
- function Qe(e) {
210
- if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ie, Qe(t.deps));
209
+ function Xe(e) {
210
+ if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ie, Xe(t.deps));
211
211
  }
212
- function $e(e, t, n) {
213
- e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Qe(e.deps), L(e, C);
212
+ function Ze(e, t, n) {
213
+ e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Xe(e.deps), z(e, S);
214
214
  }
215
215
  //#endregion
216
216
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/store.js
217
- var et = !1, tt = !1;
218
- function nt(e) {
219
- var t = tt;
217
+ var Qe = !1, $e = !1;
218
+ function et(e) {
219
+ var t = $e;
220
220
  try {
221
- return tt = !1, [e(), tt];
221
+ return $e = !1, [e(), $e];
222
222
  } finally {
223
- tt = t;
223
+ $e = t;
224
224
  }
225
225
  }
226
226
  //#endregion
227
227
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/batch.js
228
- var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct = !1, lt = null, ut = null, dt = 0, ft = 1, pt = class e {
229
- id = ft++;
228
+ var tt = null, nt = null, B = null, rt = null, V = null, it = null, at = !1, ot = !1, st = null, ct = null, lt = 0, ut = 1, dt = class e {
229
+ id = ut++;
230
230
  #e = !1;
231
231
  linked = !0;
232
232
  #t = null;
@@ -248,7 +248,7 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
248
248
  is_fork = !1;
249
249
  #m = !1;
250
250
  constructor() {
251
- it === null ? rt = it = this : (it.#n = this, this.#t = it), it = this;
251
+ nt === null ? tt = nt = this : (nt.#n = this, this.#t = nt), nt = this;
252
252
  }
253
253
  #h() {
254
254
  if (this.is_fork) return !0;
@@ -274,31 +274,31 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
274
274
  var n = this.#f.get(e);
275
275
  if (n) {
276
276
  this.#f.delete(e);
277
- for (var r of n.d) L(r, w), t(r);
278
- for (r of n.m) L(r, T), t(r);
277
+ for (var r of n.d) z(r, C), t(r);
278
+ for (r of n.m) z(r, w), t(r);
279
279
  }
280
280
  this.#p.add(e);
281
281
  }
282
282
  #g() {
283
- this.#e = !0, dt++ > 1e3 && (this.#S(), ht());
284
- for (let e of this.#u) this.#d.delete(e), L(e, w), this.schedule(e);
285
- for (let e of this.#d) L(e, T), this.schedule(e);
283
+ this.#e = !0, lt++ > 1e3 && (this.#S(), pt());
284
+ for (let e of this.#u) this.#d.delete(e), z(e, C), this.schedule(e);
285
+ for (let e of this.#d) z(e, w), this.schedule(e);
286
286
  let t = this.#c;
287
287
  this.#c = [], this.apply();
288
- var n = lt = [], r = [], i = ut = [];
288
+ var n = st = [], r = [], i = ct = [];
289
289
  for (let e of t) try {
290
290
  this.#_(e, n, r);
291
291
  } catch (t) {
292
- throw St(e), this.#h() || this.discard(), t;
292
+ throw bt(e), this.#h() || this.discard(), t;
293
293
  }
294
- if (R = null, i.length > 0) {
294
+ if (B = null, i.length > 0) {
295
295
  var a = e.ensure();
296
296
  for (let e of i) a.schedule(e);
297
297
  }
298
- if (lt = null, ut = null, this.#h()) {
298
+ if (st = null, ct = null, this.#h()) {
299
299
  this.#b(r), this.#b(n);
300
- for (let [e, t] of this.#f) xt(e, t);
301
- i.length > 0 && R.#g();
300
+ for (let [e, t] of this.#f) yt(e, t);
301
+ i.length > 0 && B.#g();
302
302
  return;
303
303
  }
304
304
  let o = this.#v();
@@ -308,20 +308,20 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
308
308
  }
309
309
  this.#u.clear(), this.#d.clear();
310
310
  for (let e of this.#r) e(this);
311
- this.#r.clear(), at = this, _t(r), _t(n), at = null, this.#s?.resolve();
312
- var s = R;
313
- if (this.#a === 0 && (this.#c.length === 0 || s !== null) && (this.#S(), F && (this.#x(), R = s)), this.#c.length > 0) if (s !== null) {
311
+ this.#r.clear(), rt = this, ht(r), ht(n), rt = null, this.#s?.resolve();
312
+ var s = B;
313
+ if (this.#a === 0 && (this.#c.length === 0 || s !== null) && (this.#S(), Le && (this.#x(), B = s)), this.#c.length > 0) if (s !== null) {
314
314
  let e = s;
315
315
  e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
316
316
  } else s = this;
317
317
  s !== null && s.#g();
318
318
  }
319
319
  #_(e, t, n) {
320
- e.f ^= C;
320
+ e.f ^= S;
321
321
  for (var r = e.first; r !== null;) {
322
322
  var i = r.f, a = (i & 96) != 0;
323
323
  if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
324
- a ? r.f ^= C : i & 4 ? t.push(r) : F && i & 16777224 ? n.push(r) : Zn(r) && (i & 16 && this.#d.add(r), nr(r));
324
+ a ? r.f ^= S : i & 4 ? t.push(r) : Le && i & 16777224 ? n.push(r) : Xn(r) && (i & 16 && this.#d.add(r), tr(r));
325
325
  var o = r.first;
326
326
  if (o !== null) {
327
327
  r = o;
@@ -361,30 +361,30 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
361
361
  if (r & 2) t(e);
362
362
  else {
363
363
  var i = e;
364
- r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), L(i, w), this.schedule(i));
364
+ r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), z(i, C), this.schedule(i));
365
365
  }
366
366
  }
367
367
  };
368
368
  for (let e of this.current.keys()) t(e);
369
- this.oncommit(() => e.discard()), e.#S(), R = this, this.#g();
369
+ this.oncommit(() => e.discard()), e.#S(), B = this, this.#g();
370
370
  }
371
371
  #b(e) {
372
- for (var t = 0; t < e.length; t += 1) $e(e[t], this.#u, this.#d);
372
+ for (var t = 0; t < e.length; t += 1) Ze(e[t], this.#u, this.#d);
373
373
  }
374
374
  capture(e, t, n = !1) {
375
- e.v !== o && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), z?.set(e, t)), this.is_fork || (e.v = t);
375
+ e.v !== o && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), V?.set(e, t)), this.is_fork || (e.v = t);
376
376
  }
377
377
  activate() {
378
- R = this;
378
+ B = this;
379
379
  }
380
380
  deactivate() {
381
- R = null, z = null;
381
+ B = null, V = null;
382
382
  }
383
383
  flush() {
384
384
  try {
385
- ct = !0, R = this, this.#g();
385
+ ot = !0, B = this, this.#g();
386
386
  } finally {
387
- dt = 0, ot = null, lt = null, ut = null, ct = !1, R = null, z = null, Vt.clear();
387
+ lt = 0, it = null, st = null, ct = null, ot = !1, B = null, V = null, zt.clear();
388
388
  }
389
389
  }
390
390
  discard() {
@@ -395,7 +395,7 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
395
395
  this.#l.push(e);
396
396
  }
397
397
  #x() {
398
- for (let l = rt; l !== null; l = l.#n) {
398
+ for (let l = tt; l !== null; l = l.#n) {
399
399
  var e = l.id < this.id, t = [];
400
400
  for (let [r, [i, a]] of this.current) {
401
401
  if (l.current.has(r)) {
@@ -418,13 +418,13 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
418
418
  });
419
419
  l.activate();
420
420
  var i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
421
- for (var o of t) vt(o, r, i, a);
421
+ for (var o of t) gt(o, r, i, a);
422
422
  a = /* @__PURE__ */ new Map();
423
423
  var s = [...l.current].filter(([e, t]) => {
424
424
  let n = this.current.get(e);
425
425
  return n ? n[0] !== t[0] || n[1] !== t[1] : !0;
426
426
  }).map(([e]) => e);
427
- if (s.length > 0) for (let e of this.#l) !(e.f & 155648) && yt(e, s, a) && (e.f & 4194320 ? (L(e, w), l.schedule(e)) : l.#u.add(e));
427
+ if (s.length > 0) for (let e of this.#l) !(e.f & 155648) && _t(e, s, a) && (e.f & 4194320 ? (z(e, C), l.schedule(e)) : l.#u.add(e));
428
428
  if (l.#c.length > 0 && !l.#m) {
429
429
  l.apply();
430
430
  for (var c of l.#c) l.#_(c, [], []);
@@ -446,7 +446,7 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
446
446
  let e = this.#o.get(t) ?? 0;
447
447
  e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
448
448
  }
449
- this.#m || (this.#m = !0, Ke(() => {
449
+ this.#m || (this.#m = !0, Ge(() => {
450
450
  this.#m = !1, this.linked && this.flush();
451
451
  }));
452
452
  }
@@ -462,25 +462,25 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
462
462
  this.#i.add(e);
463
463
  }
464
464
  settled() {
465
- return (this.#s ??= S()).promise;
465
+ return (this.#s ??= x()).promise;
466
466
  }
467
467
  static ensure() {
468
- if (R === null) {
469
- let t = R = new e();
470
- !ct && !st && Ke(() => {
468
+ if (B === null) {
469
+ let t = B = new e();
470
+ !ot && !at && Ge(() => {
471
471
  t.#e || t.flush();
472
472
  });
473
473
  }
474
- return R;
474
+ return B;
475
475
  }
476
476
  apply() {
477
- if (!F || !this.is_fork && this.#t === null && this.#n === null) {
478
- z = null;
477
+ if (!Le || !this.is_fork && this.#t === null && this.#n === null) {
478
+ V = null;
479
479
  return;
480
480
  }
481
- z = /* @__PURE__ */ new Map();
482
- for (let [e, [t]] of this.current) z.set(e, t);
483
- for (let t = rt; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
481
+ V = /* @__PURE__ */ new Map();
482
+ for (let [e, [t]] of this.current) V.set(e, t);
483
+ for (let t = tt; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
484
484
  var e = !1;
485
485
  if (t.id < this.id) {
486
486
  for (let [n, [, r]] of t.current) if (!r && this.current.has(n)) {
@@ -488,21 +488,21 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
488
488
  break;
489
489
  }
490
490
  }
491
- if (!e) for (let [e, n] of t.previous) z.has(e) || z.set(e, n);
491
+ if (!e) for (let [e, n] of t.previous) V.has(e) || V.set(e, n);
492
492
  }
493
493
  }
494
494
  schedule(e) {
495
- if (ot = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
495
+ if (it = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
496
496
  e.b.defer_effect(e);
497
497
  return;
498
498
  }
499
499
  for (var t = e; t.parent !== null;) {
500
500
  t = t.parent;
501
501
  var n = t.f;
502
- if (lt !== null && t === J && (F || (q === null || !(q.f & 2)) && !et)) return;
502
+ if (st !== null && t === J && (Le || (K === null || !(K.f & 2)) && !Qe)) return;
503
503
  if (n & 96) {
504
504
  if (!(n & 1024)) return;
505
- t.f ^= C;
505
+ t.f ^= S;
506
506
  }
507
507
  }
508
508
  this.#c.push(t);
@@ -510,105 +510,105 @@ var rt = null, it = null, R = null, at = null, z = null, ot = null, st = !1, ct
510
510
  #S() {
511
511
  if (this.linked) {
512
512
  var e = this.#t, t = this.#n;
513
- e === null ? rt = t : e.#n = t, t === null ? it = e : t.#t = e, this.linked = !1;
513
+ e === null ? tt = t : e.#n = t, t === null ? nt = e : t.#t = e, this.linked = !1;
514
514
  }
515
515
  }
516
516
  };
517
- function mt(e) {
518
- var t = st;
519
- st = !0;
517
+ function ft(e) {
518
+ var t = at;
519
+ at = !0;
520
520
  try {
521
521
  var n;
522
- for (e && (R !== null && !R.is_fork && R.flush(), n = e());;) {
523
- if (qe(), R === null) return n;
524
- R.flush();
522
+ for (e && (B !== null && !B.is_fork && B.flush(), n = e());;) {
523
+ if (Ke(), B === null) return n;
524
+ B.flush();
525
525
  }
526
526
  } finally {
527
- st = t;
527
+ at = t;
528
528
  }
529
529
  }
530
- function ht() {
530
+ function pt() {
531
531
  try {
532
- be();
532
+ ye();
533
533
  } catch (e) {
534
- Ye(e, ot);
534
+ R(e, it);
535
535
  }
536
536
  }
537
- var gt = null;
538
- function _t(e) {
537
+ var mt = null;
538
+ function ht(e) {
539
539
  var t = e.length;
540
540
  if (t !== 0) {
541
541
  for (var n = 0; n < t;) {
542
542
  var r = e[n++];
543
- if (!(r.f & 24576) && Zn(r) && (gt = /* @__PURE__ */ new Set(), nr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && kn(r), gt?.size > 0)) {
544
- Vt.clear();
545
- for (let e of gt) {
543
+ if (!(r.f & 24576) && Xn(r) && (mt = /* @__PURE__ */ new Set(), tr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && An(r), mt?.size > 0)) {
544
+ zt.clear();
545
+ for (let e of mt) {
546
546
  if (e.f & 24576) continue;
547
547
  let t = [e], n = e.parent;
548
- for (; n !== null;) gt.has(n) && (gt.delete(n), t.push(n)), n = n.parent;
548
+ for (; n !== null;) mt.has(n) && (mt.delete(n), t.push(n)), n = n.parent;
549
549
  for (let e = t.length - 1; e >= 0; e--) {
550
550
  let n = t[e];
551
- n.f & 24576 || nr(n);
551
+ n.f & 24576 || tr(n);
552
552
  }
553
553
  }
554
- gt.clear();
554
+ mt.clear();
555
555
  }
556
556
  }
557
- gt = null;
557
+ mt = null;
558
558
  }
559
559
  }
560
- function vt(e, t, n, r) {
560
+ function gt(e, t, n, r) {
561
561
  if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
562
562
  let e = i.f;
563
- e & 2 ? vt(i, t, n, r) : e & 4194320 && !(e & 2048) && yt(i, t, r) && (L(i, w), bt(i));
563
+ e & 2 ? gt(i, t, n, r) : e & 4194320 && !(e & 2048) && _t(i, t, r) && (z(i, C), vt(i));
564
564
  }
565
565
  }
566
- function yt(e, t, n) {
566
+ function _t(e, t, n) {
567
567
  let r = n.get(e);
568
568
  if (r !== void 0) return r;
569
569
  if (e.deps !== null) for (let r of e.deps) {
570
570
  if (u.call(t, r)) return !0;
571
- if (r.f & 2 && yt(r, t, n)) return n.set(r, !0), !0;
571
+ if (r.f & 2 && _t(r, t, n)) return n.set(r, !0), !0;
572
572
  }
573
573
  return n.set(e, !1), !1;
574
574
  }
575
- function bt(e) {
576
- R.schedule(e);
575
+ function vt(e) {
576
+ B.schedule(e);
577
577
  }
578
- function xt(e, t) {
578
+ function yt(e, t) {
579
579
  if (!(e.f & 32 && e.f & 1024)) {
580
- e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), L(e, C);
581
- for (var n = e.first; n !== null;) xt(n, t), n = n.next;
580
+ e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), z(e, S);
581
+ for (var n = e.first; n !== null;) yt(n, t), n = n.next;
582
582
  }
583
583
  }
584
- function St(e) {
585
- L(e, C);
586
- for (var t = e.first; t !== null;) St(t), t = t.next;
584
+ function bt(e) {
585
+ z(e, S);
586
+ for (var t = e.first; t !== null;) bt(t), t = t.next;
587
587
  }
588
588
  //#endregion
589
589
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/reactivity/create-subscriber.js
590
- function Ct(e) {
591
- let t = 0, n = Ut(0), r;
590
+ function xt(e) {
591
+ let t = 0, n = Vt(0), r;
592
592
  return () => {
593
- mn() && (Z(n), Sn(() => (t === 0 && (r = ar(() => e(() => qt(n)))), t += 1, () => {
594
- Ke(() => {
595
- --t, t === 0 && (r?.(), r = void 0, qt(n));
593
+ mn() && (Q(n), Sn(() => (t === 0 && (r = ir(() => e(() => Gt(n)))), t += 1, () => {
594
+ Ge(() => {
595
+ --t, t === 0 && (r?.(), r = void 0, Gt(n));
596
596
  });
597
597
  })));
598
598
  };
599
599
  }
600
600
  //#endregion
601
601
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
602
- var wt = te | k;
603
- function Tt(e, t, n, r) {
604
- new Et(e, t, n, r);
602
+ var St = D | O;
603
+ function Ct(e, t, n, r) {
604
+ new wt(e, t, n, r);
605
605
  }
606
- var Et = class {
606
+ var wt = class {
607
607
  parent;
608
608
  is_pending = !1;
609
609
  transform_error;
610
610
  #e;
611
- #t = M ? N : null;
611
+ #t = N ? F : null;
612
612
  #n;
613
613
  #r;
614
614
  #i;
@@ -622,7 +622,7 @@ var Et = class {
622
622
  #f = /* @__PURE__ */ new Set();
623
623
  #p = /* @__PURE__ */ new Set();
624
624
  #m = null;
625
- #h = Ct(() => (this.#m = Ut(this.#l), () => {
625
+ #h = xt(() => (this.#m = Vt(this.#l), () => {
626
626
  this.#m = null;
627
627
  }));
628
628
  constructor(e, t, n, r) {
@@ -630,49 +630,49 @@ var Et = class {
630
630
  var t = J;
631
631
  t.b = this, t.f |= 128, n(e);
632
632
  }, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = wn(() => {
633
- if (M) {
633
+ if (N) {
634
634
  let e = this.#t;
635
- je();
635
+ ke();
636
636
  let t = e.data === "[!";
637
637
  if (e.data.startsWith("[?")) {
638
638
  let t = JSON.parse(e.data.slice(2));
639
639
  this.#_(t);
640
640
  } else t ? this.#v() : this.#g();
641
641
  } else this.#y();
642
- }, wt), M && (this.#e = N);
642
+ }, St), N && (this.#e = F);
643
643
  }
644
644
  #g() {
645
645
  try {
646
- this.#a = G(() => this.#r(this.#e));
646
+ this.#a = Tn(() => this.#r(this.#e));
647
647
  } catch (e) {
648
648
  this.error(e);
649
649
  }
650
650
  }
651
651
  #_(e) {
652
652
  let t = this.#n.failed;
653
- t && (this.#s = G(() => {
653
+ t && (this.#s = Tn(() => {
654
654
  t(this.#e, () => e, () => () => {});
655
655
  }));
656
656
  }
657
657
  #v() {
658
658
  let e = this.#n.pending;
659
- e && (this.is_pending = !0, this.#o = G(() => e(this.#e)), Ke(() => {
660
- var e = this.#c = document.createDocumentFragment(), t = U();
661
- e.append(t), this.#a = this.#x(() => G(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, An(this.#o, () => {
659
+ e && (this.is_pending = !0, this.#o = Tn(() => e(this.#e)), Ge(() => {
660
+ var e = this.#c = document.createDocumentFragment(), t = $t();
661
+ e.append(t), this.#a = this.#x(() => Tn(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, jn(this.#o, () => {
662
662
  this.#o = null;
663
- }), this.#b(R));
663
+ }), this.#b(B));
664
664
  }));
665
665
  }
666
666
  #y() {
667
667
  try {
668
- if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = G(() => {
668
+ if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = Tn(() => {
669
669
  this.#r(this.#e);
670
670
  }), this.#u > 0) {
671
671
  var e = this.#c = document.createDocumentFragment();
672
- Pn(this.#a, e);
672
+ Fn(this.#a, e);
673
673
  let t = this.#n.pending;
674
- this.#o = G(() => t(this.#e));
675
- } else this.#b(R);
674
+ this.#o = Tn(() => t(this.#e));
675
+ } else this.#b(B);
676
676
  } catch (e) {
677
677
  this.error(e);
678
678
  }
@@ -681,7 +681,7 @@ var Et = class {
681
681
  this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
682
682
  }
683
683
  defer_effect(e) {
684
- $e(e, this.#f, this.#p);
684
+ Ze(e, this.#f, this.#p);
685
685
  }
686
686
  is_rendered() {
687
687
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -690,14 +690,14 @@ var Et = class {
690
690
  return !!this.#n.pending;
691
691
  }
692
692
  #x(e) {
693
- var t = J, n = q, r = I;
694
- Vn(this.#i), Bn(this.#i), Be(this.#i.ctx);
693
+ var t = J, n = K, r = L;
694
+ Y(this.#i), q(this.#i), ze(this.#i.ctx);
695
695
  try {
696
- return pt.ensure(), e();
696
+ return dt.ensure(), e();
697
697
  } catch (e) {
698
- return Je(e), null;
698
+ return qe(e), null;
699
699
  } finally {
700
- Vn(t), Bn(n), Be(r);
700
+ Y(t), q(n), ze(r);
701
701
  }
702
702
  }
703
703
  #S(e, t) {
@@ -705,35 +705,35 @@ var Et = class {
705
705
  this.parent && this.parent.#S(e, t);
706
706
  return;
707
707
  }
708
- this.#u += e, this.#u === 0 && (this.#b(t), this.#o && An(this.#o, () => {
708
+ this.#u += e, this.#u === 0 && (this.#b(t), this.#o && jn(this.#o, () => {
709
709
  this.#o = null;
710
710
  }), this.#c &&= (this.#e.before(this.#c), null));
711
711
  }
712
712
  update_pending_count(e, t) {
713
- this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ke(() => {
714
- this.#d = !1, this.#m && Gt(this.#m, this.#l);
713
+ this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ge(() => {
714
+ this.#d = !1, this.#m && Ut(this.#m, this.#l);
715
715
  }));
716
716
  }
717
717
  get_effect_pending() {
718
- return this.#h(), Z(this.#m);
718
+ return this.#h(), Q(this.#m);
719
719
  }
720
720
  error(e) {
721
721
  if (!this.#n.onerror && !this.#n.failed) throw e;
722
- R?.is_fork ? (this.#a && R.skip_effect(this.#a), this.#o && R.skip_effect(this.#o), this.#s && R.skip_effect(this.#s), R.oncommit(() => {
722
+ B?.is_fork ? (this.#a && B.skip_effect(this.#a), this.#o && B.skip_effect(this.#o), this.#s && B.skip_effect(this.#s), B.oncommit(() => {
723
723
  this.#C(e);
724
724
  })) : this.#C(e);
725
725
  }
726
726
  #C(e) {
727
- this.#a &&= (K(this.#a), null), this.#o &&= (K(this.#o), null), this.#s &&= (K(this.#s), null), M && (P(this.#t), Ne(), P(Pe()));
727
+ this.#a &&= (G(this.#a), null), this.#o &&= (G(this.#o), null), this.#s &&= (G(this.#s), null), N && (I(this.#t), je(), I(Me()));
728
728
  var t = this.#n.onerror;
729
729
  let n = this.#n.failed;
730
730
  var r = !1, i = !1;
731
731
  let a = () => {
732
732
  if (r) {
733
- ke();
733
+ Oe();
734
734
  return;
735
735
  }
736
- r = !0, i && Ee(), this.#s !== null && An(this.#s, () => {
736
+ r = !0, i && Te(), this.#s !== null && jn(this.#s, () => {
737
737
  this.#s = null;
738
738
  }), this.#x(() => {
739
739
  this.#y();
@@ -742,87 +742,87 @@ var Et = class {
742
742
  try {
743
743
  i = !0, t?.(e, a), i = !1;
744
744
  } catch (e) {
745
- Ye(e, this.#i && this.#i.parent);
745
+ R(e, this.#i && this.#i.parent);
746
746
  }
747
747
  n && (this.#s = this.#x(() => {
748
748
  try {
749
- return G(() => {
749
+ return Tn(() => {
750
750
  var t = J;
751
751
  t.b = this, t.f |= 128, n(this.#e, () => e, () => a);
752
752
  });
753
753
  } catch (e) {
754
- return Ye(e, this.#i.parent), null;
754
+ return R(e, this.#i.parent), null;
755
755
  }
756
756
  }));
757
757
  };
758
- Ke(() => {
758
+ Ge(() => {
759
759
  var t;
760
760
  try {
761
761
  t = this.transform_error(e);
762
762
  } catch (e) {
763
- Ye(e, this.#i && this.#i.parent);
763
+ R(e, this.#i && this.#i.parent);
764
764
  return;
765
765
  }
766
- typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) => Ye(e, this.#i && this.#i.parent)) : o(t);
766
+ typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) => R(e, this.#i && this.#i.parent)) : o(t);
767
767
  });
768
768
  }
769
769
  };
770
770
  //#endregion
771
771
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/async.js
772
- function Dt(e, t, n, r) {
773
- let i = Ue() ? jt : Pt;
772
+ function Tt(e, t, n, r) {
773
+ let i = He() ? kt : Mt;
774
774
  var a = e.filter((e) => !e.settled);
775
775
  if (n.length === 0 && a.length === 0) {
776
776
  r(t.map(i));
777
777
  return;
778
778
  }
779
- var o = J, s = Ot(), c = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
779
+ var o = J, s = Et(), c = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
780
780
  function l(e) {
781
781
  if (!(o.f & 16384)) {
782
782
  s();
783
783
  try {
784
784
  r(e);
785
785
  } catch (e) {
786
- Ye(e, o);
786
+ R(e, o);
787
787
  }
788
- kt();
788
+ Dt();
789
789
  }
790
790
  }
791
- var u = At();
791
+ var u = Ot();
792
792
  if (n.length === 0) {
793
793
  c.then(() => l(t.map(i))).finally(u);
794
794
  return;
795
795
  }
796
796
  function d() {
797
- Promise.all(n.map((e) => /* @__PURE__ */ Nt(e))).then((e) => l([...t.map(i), ...e])).catch((e) => Ye(e, o)).finally(u);
797
+ Promise.all(n.map((e) => /* @__PURE__ */ jt(e))).then((e) => l([...t.map(i), ...e])).catch((e) => R(e, o)).finally(u);
798
798
  }
799
799
  c ? c.then(() => {
800
- s(), d(), kt();
800
+ s(), d(), Dt();
801
801
  }) : d();
802
802
  }
803
- function Ot() {
804
- var e = J, t = q, n = I, r = R;
803
+ function Et() {
804
+ var e = J, t = K, n = L, r = B;
805
805
  return function(i = !0) {
806
- Vn(e), Bn(t), Be(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
806
+ Y(e), q(t), ze(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
807
807
  };
808
808
  }
809
- function kt(e = !0) {
810
- Vn(null), Bn(null), Be(null), e && R?.deactivate();
809
+ function Dt(e = !0) {
810
+ Y(null), q(null), ze(null), e && B?.deactivate();
811
811
  }
812
- function At() {
813
- var e = J, t = e.b, n = R, r = !!t?.is_rendered();
812
+ function Ot() {
813
+ var e = J, t = e.b, n = B, r = !!t?.is_rendered();
814
814
  return t?.update_pending_count(1, n), n.increment(r, e), () => {
815
815
  t?.update_pending_count(-1, n), n.decrement(r, e);
816
816
  };
817
817
  }
818
- /* @__NO_SIDE_EFFECTS__ */
819
- function jt(e) {
820
- var t = 2 | w;
821
- return J !== null && (J.f |= k), {
822
- ctx: I,
818
+ /*#__NO_SIDE_EFFECTS__*/
819
+ function kt(e) {
820
+ var t = 2 | C;
821
+ return J !== null && (J.f |= O), {
822
+ ctx: L,
823
823
  deps: null,
824
824
  effects: null,
825
- equals: Ie,
825
+ equals: Pe,
826
826
  f: t,
827
827
  fn: e,
828
828
  reactions: null,
@@ -833,35 +833,35 @@ function jt(e) {
833
833
  ac: null
834
834
  };
835
835
  }
836
- var Mt = Symbol("obsolete");
837
- /* @__NO_SIDE_EFFECTS__ */
838
- function Nt(e, t, n) {
836
+ var At = Symbol("obsolete");
837
+ /*#__NO_SIDE_EFFECTS__*/
838
+ function jt(e, t, n) {
839
839
  let r = J;
840
- r === null && he();
841
- var i = void 0, a = Ut(o), s = !q, c = /* @__PURE__ */ new Set();
840
+ r === null && me();
841
+ var i = void 0, a = Vt(o), s = !K, c = /* @__PURE__ */ new Set();
842
842
  return xn(() => {
843
- var t = J, n = S();
843
+ var t = J, n = x();
844
844
  i = n.promise;
845
845
  try {
846
846
  Promise.resolve(e()).then(n.resolve, (e) => {
847
- e !== pe && n.reject(e);
848
- }).finally(kt);
847
+ e !== fe && n.reject(e);
848
+ }).finally(Dt);
849
849
  } catch (e) {
850
- n.reject(e), kt();
850
+ n.reject(e), Dt();
851
851
  }
852
- var o = R;
852
+ var o = B;
853
853
  if (s) {
854
- if (t.f & 32768) var l = At();
855
- if (r.b?.is_rendered()) o.async_deriveds.get(t)?.reject(Mt);
856
- else for (let e of c.values()) e.reject(Mt);
854
+ if (t.f & 32768) var l = Ot();
855
+ if (r.b?.is_rendered()) o.async_deriveds.get(t)?.reject(At);
856
+ else for (let e of c.values()) e.reject(At);
857
857
  c.add(n), o.async_deriveds.set(t, n);
858
858
  }
859
859
  let u = (e, t = void 0) => {
860
- l?.(), c.delete(n), t !== Mt && (o.activate(), t ? (a.f |= se, Gt(a, t)) : (a.f & 8388608 && (a.f ^= se), Gt(a, e)), o.deactivate());
860
+ l?.(), c.delete(n), t !== At && (o.activate(), t ? (a.f |= j, Ut(a, t)) : (a.f & 8388608 && (a.f ^= j), Ut(a, e)), o.deactivate());
861
861
  };
862
862
  n.promise.then(u, (e) => u(null, e || "unknown"));
863
863
  }), hn(() => {
864
- for (let e of c) e.reject(Mt);
864
+ for (let e of c) e.reject(At);
865
865
  }), new Promise((e) => {
866
866
  function t(n) {
867
867
  function r() {
@@ -872,155 +872,155 @@ function Nt(e, t, n) {
872
872
  t(i);
873
873
  });
874
874
  }
875
- /* @__NO_SIDE_EFFECTS__ */
876
- function B(e) {
877
- let t = /* @__PURE__ */ jt(e);
878
- return F || Un(t), t;
875
+ /*#__NO_SIDE_EFFECTS__*/
876
+ function H(e) {
877
+ let t = /* @__PURE__ */ kt(e);
878
+ return Le || Hn(t), t;
879
879
  }
880
- /* @__NO_SIDE_EFFECTS__ */
881
- function Pt(e) {
882
- let t = /* @__PURE__ */ jt(e);
883
- return t.equals = Re, t;
880
+ /*#__NO_SIDE_EFFECTS__*/
881
+ function Mt(e) {
882
+ let t = /* @__PURE__ */ kt(e);
883
+ return t.equals = Ie, t;
884
884
  }
885
- function Ft(e) {
885
+ function Nt(e) {
886
886
  var t = e.effects;
887
887
  if (t !== null) {
888
888
  e.effects = null;
889
- for (var n = 0; n < t.length; n += 1) K(t[n]);
889
+ for (var n = 0; n < t.length; n += 1) G(t[n]);
890
890
  }
891
891
  }
892
- function It(e) {
892
+ function Pt(e) {
893
893
  var t, n = J, r = e.parent;
894
- if (!Ln && r !== null && e.v !== o && r.f & 24576) return De(), e.v;
895
- Vn(r);
894
+ if (!Rn && r !== null && e.v !== o && r.f & 24576) return Ee(), e.v;
895
+ Y(r);
896
896
  try {
897
- e.f &= ~ie, Ft(e), t = $n(e);
897
+ e.f &= ~ie, Nt(e), t = Qn(e);
898
898
  } finally {
899
- Vn(n);
899
+ Y(n);
900
900
  }
901
901
  return t;
902
902
  }
903
- function Lt(e) {
904
- var t = It(e);
905
- if (!e.equals(t) && (e.wv = Xn(), (!R?.is_fork || e.deps === null) && (R === null ? e.v = t : (R.capture(e, t, !0), at?.capture(e, t, !0)), e.deps === null))) {
906
- L(e, C);
903
+ function Ft(e) {
904
+ var t = Pt(e);
905
+ if (!e.equals(t) && (e.wv = Yn(), (!B?.is_fork || e.deps === null) && (B === null ? e.v = t : (B.capture(e, t, !0), rt?.capture(e, t, !0)), e.deps === null))) {
906
+ z(e, S);
907
907
  return;
908
908
  }
909
- Ln || (z === null ? Ze(e) : (mn() || R?.is_fork) && z.set(e, t));
909
+ Rn || (V === null ? Ye(e) : (mn() || B?.is_fork) && V.set(e, t));
910
910
  }
911
- function Rt(e) {
912
- if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(pe), t.fn !== null && (t.teardown = b), t.ac = null, tr(t, 0), En(t));
911
+ function It(e) {
912
+ if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(fe), t.fn !== null && (t.teardown = ee), t.ac = null, er(t, 0), Dn(t));
913
913
  }
914
- function zt(e) {
915
- if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && nr(t);
914
+ function Lt(e) {
915
+ if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && tr(t);
916
916
  }
917
917
  //#endregion
918
918
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/sources.js
919
- var Bt = /* @__PURE__ */ new Set(), Vt = /* @__PURE__ */ new Map(), Ht = !1;
920
- function Ut(e, t) {
919
+ var Rt = /* @__PURE__ */ new Set(), zt = /* @__PURE__ */ new Map(), Bt = !1;
920
+ function Vt(e, t) {
921
921
  return {
922
922
  f: 0,
923
923
  v: e,
924
924
  reactions: null,
925
- equals: Ie,
925
+ equals: Pe,
926
926
  rv: 0,
927
927
  wv: 0
928
928
  };
929
929
  }
930
- /* @__NO_SIDE_EFFECTS__ */
931
- function V(e, t) {
932
- let n = Ut(e, t);
933
- return Un(n), n;
930
+ /*#__NO_SIDE_EFFECTS__*/
931
+ function U(e, t) {
932
+ let n = Vt(e, t);
933
+ return Hn(n), n;
934
934
  }
935
- /* @__NO_SIDE_EFFECTS__ */
936
- function Wt(e, t = !1, n = !0) {
937
- let r = Ut(e);
938
- return t || (r.equals = Re), ze && n && I !== null && I.l !== null && (I.l.s ??= []).push(r), r;
935
+ /*#__NO_SIDE_EFFECTS__*/
936
+ function Ht(e, t = !1, n = !0) {
937
+ let r = Vt(e);
938
+ return t || (r.equals = Ie), Re && n && L !== null && L.l !== null && (L.l.s ??= []).push(r), r;
939
939
  }
940
- function H(e, t, n = !1) {
941
- return q !== null && (!zn || q.f & 131072) && Ue() && q.f & 4325394 && (Hn === null || !Hn.has(e)) && Te(), Gt(e, n ? Yt(t) : t, ut);
940
+ function W(e, t, n = !1) {
941
+ return K !== null && (!Bn || K.f & 131072) && He() && K.f & 4325394 && (Vn === null || !Vn.has(e)) && we(), Ut(e, n ? qt(t) : t, ct);
942
942
  }
943
- function Gt(e, t, n = null) {
943
+ function Ut(e, t, n = null) {
944
944
  if (!e.equals(t)) {
945
- Vt.set(e, Ln ? t : e.v);
946
- var r = pt.ensure();
945
+ zt.set(e, Rn ? t : e.v);
946
+ var r = dt.ensure();
947
947
  if (r.capture(e, t), e.f & 2) {
948
948
  let t = e;
949
- e.f & 2048 && It(t), z === null && Ze(t);
949
+ e.f & 2048 && Pt(t), V === null && Ye(t);
950
950
  }
951
- e.wv = Xn(), Jt(e, w, n), Ue() && J !== null && J.f & 1024 && !(J.f & 96) && (Wn === null ? Gn([e]) : Wn.push(e)), !r.is_fork && Bt.size > 0 && !Ht && Kt();
951
+ e.wv = Yn(), Kt(e, C, n), He() && J !== null && J.f & 1024 && !(J.f & 96) && (Un === null ? Wn([e]) : Un.push(e)), !r.is_fork && Rt.size > 0 && !Bt && Wt();
952
952
  }
953
953
  return t;
954
954
  }
955
- function Kt() {
956
- Ht = !1;
957
- for (let e of Bt) {
958
- e.f & 1024 && L(e, T);
955
+ function Wt() {
956
+ Bt = !1;
957
+ for (let e of Rt) {
958
+ e.f & 1024 && z(e, w);
959
959
  let t;
960
960
  try {
961
- t = Zn(e);
961
+ t = Xn(e);
962
962
  } catch {
963
963
  t = !0;
964
964
  }
965
- t && nr(e);
965
+ t && tr(e);
966
966
  }
967
- Bt.clear();
967
+ Rt.clear();
968
968
  }
969
- function qt(e) {
970
- H(e, e.v + 1);
969
+ function Gt(e) {
970
+ W(e, e.v + 1);
971
971
  }
972
- function Jt(e, t, n) {
972
+ function Kt(e, t, n) {
973
973
  var r = e.reactions;
974
- if (r !== null) for (var i = Ue(), a = r.length, o = 0; o < a; o++) {
974
+ if (r !== null) for (var i = He(), a = r.length, o = 0; o < a; o++) {
975
975
  var s = r[o], c = s.f;
976
976
  if (!(!i && s === J)) {
977
- var l = (c & w) === 0;
978
- if (l && L(s, t), c & 131072) Bt.add(s);
977
+ var l = (c & C) === 0;
978
+ if (l && z(s, t), c & 131072) Rt.add(s);
979
979
  else if (c & 2) {
980
980
  var u = s;
981
- z?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= ie), Jt(u, T, n));
981
+ V?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= ie), Kt(u, w, n));
982
982
  } else if (l) {
983
983
  var d = s;
984
- c & 16 && gt !== null && gt.add(d), n === null ? bt(d) : n.push(d);
984
+ c & 16 && mt !== null && mt.add(d), n === null ? vt(d) : n.push(d);
985
985
  }
986
986
  }
987
987
  }
988
988
  }
989
- function Yt(e) {
990
- if (typeof e != "object" || !e || A in e) return e;
989
+ function qt(e) {
990
+ if (typeof e != "object" || !e || M in e) return e;
991
991
  let t = v(e);
992
992
  if (t !== g && t !== _) return e;
993
- var n = /* @__PURE__ */ new Map(), r = c(e), i = /* @__PURE__ */ V(0), a = null, s = Jn, l = (e) => {
994
- if (Jn === s) return e();
995
- var t = q, n = Jn;
996
- Bn(null), Yn(s);
993
+ var n = /* @__PURE__ */ new Map(), r = c(e), i = /* @__PURE__ */ U(0), a = null, s = qn, l = (e) => {
994
+ if (qn === s) return e();
995
+ var t = K, n = qn;
996
+ q(null), Jn(s);
997
997
  var r = e();
998
- return Bn(t), Yn(n), r;
998
+ return q(t), Jn(n), r;
999
999
  };
1000
- return r && n.set("length", /* @__PURE__ */ V(e.length, a)), new Proxy(e, {
1000
+ return r && n.set("length", /* @__PURE__ */ U(e.length, a)), new Proxy(e, {
1001
1001
  defineProperty(e, t, r) {
1002
- (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Ce();
1002
+ (!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Se();
1003
1003
  var i = n.get(t);
1004
1004
  return i === void 0 ? l(() => {
1005
- var e = /* @__PURE__ */ V(r.value, a);
1005
+ var e = /* @__PURE__ */ U(r.value, a);
1006
1006
  return n.set(t, e), e;
1007
- }) : H(i, r.value, !0), !0;
1007
+ }) : W(i, r.value, !0), !0;
1008
1008
  },
1009
1009
  deleteProperty(e, t) {
1010
1010
  var r = n.get(t);
1011
1011
  if (r === void 0) {
1012
1012
  if (t in e) {
1013
- let e = l(() => /* @__PURE__ */ V(o, a));
1014
- n.set(t, e), qt(i);
1013
+ let e = l(() => /* @__PURE__ */ U(o, a));
1014
+ n.set(t, e), Gt(i);
1015
1015
  }
1016
- } else H(r, o), qt(i);
1016
+ } else W(r, o), Gt(i);
1017
1017
  return !0;
1018
1018
  },
1019
1019
  get(t, r, i) {
1020
- if (r === A) return e;
1020
+ if (r === M) return e;
1021
1021
  var s = n.get(r), c = r in t;
1022
- if (s === void 0 && (!c || m(t, r)?.writable) && (s = l(() => /* @__PURE__ */ V(Yt(c ? t[r] : o), a)), n.set(r, s)), s !== void 0) {
1023
- var u = Z(s);
1022
+ if (s === void 0 && (!c || m(t, r)?.writable) && (s = l(() => /* @__PURE__ */ U(qt(c ? t[r] : o), a)), n.set(r, s)), s !== void 0) {
1023
+ var u = Q(s);
1024
1024
  return u === o ? void 0 : u;
1025
1025
  }
1026
1026
  return Reflect.get(t, r, i);
@@ -1029,7 +1029,7 @@ function Yt(e) {
1029
1029
  var r = Reflect.getOwnPropertyDescriptor(e, t);
1030
1030
  if (r && "value" in r) {
1031
1031
  var i = n.get(t);
1032
- i && (r.value = Z(i));
1032
+ i && (r.value = Q(i));
1033
1033
  } else if (r === void 0) {
1034
1034
  var a = n.get(t), s = a?.v;
1035
1035
  if (a !== void 0 && s !== o) return {
@@ -1042,34 +1042,34 @@ function Yt(e) {
1042
1042
  return r;
1043
1043
  },
1044
1044
  has(e, t) {
1045
- if (t === A) return !0;
1045
+ if (t === M) return !0;
1046
1046
  var r = n.get(t), i = r !== void 0 && r.v !== o || Reflect.has(e, t);
1047
- return (r !== void 0 || J !== null && (!i || m(e, t)?.writable)) && (r === void 0 && (r = l(() => /* @__PURE__ */ V(i ? Yt(e[t]) : o, a)), n.set(t, r)), Z(r) === o) ? !1 : i;
1047
+ return (r !== void 0 || J !== null && (!i || m(e, t)?.writable)) && (r === void 0 && (r = l(() => /* @__PURE__ */ U(i ? qt(e[t]) : o, a)), n.set(t, r)), Q(r) === o) ? !1 : i;
1048
1048
  },
1049
1049
  set(e, t, s, c) {
1050
1050
  var u = n.get(t), d = t in e;
1051
1051
  if (r && t === "length") for (var f = s; f < u.v; f += 1) {
1052
1052
  var p = n.get(f + "");
1053
- p === void 0 ? f in e && (p = l(() => /* @__PURE__ */ V(o, a)), n.set(f + "", p)) : H(p, o);
1053
+ p === void 0 ? f in e && (p = l(() => /* @__PURE__ */ U(o, a)), n.set(f + "", p)) : W(p, o);
1054
1054
  }
1055
- if (u === void 0) (!d || m(e, t)?.writable) && (u = l(() => /* @__PURE__ */ V(void 0, a)), H(u, Yt(s)), n.set(t, u));
1055
+ if (u === void 0) (!d || m(e, t)?.writable) && (u = l(() => /* @__PURE__ */ U(void 0, a)), W(u, qt(s)), n.set(t, u));
1056
1056
  else {
1057
1057
  d = u.v !== o;
1058
- var h = l(() => Yt(s));
1059
- H(u, h);
1058
+ var h = l(() => qt(s));
1059
+ W(u, h);
1060
1060
  }
1061
1061
  var g = Reflect.getOwnPropertyDescriptor(e, t);
1062
1062
  if (g?.set && g.set.call(c, s), !d) {
1063
1063
  if (r && typeof t == "string") {
1064
1064
  var _ = n.get("length"), v = Number(t);
1065
- Number.isInteger(v) && v >= _.v && H(_, v + 1);
1065
+ Number.isInteger(v) && v >= _.v && W(_, v + 1);
1066
1066
  }
1067
- qt(i);
1067
+ Gt(i);
1068
1068
  }
1069
1069
  return !0;
1070
1070
  },
1071
1071
  ownKeys(e) {
1072
- Z(i);
1072
+ Q(i);
1073
1073
  var t = Reflect.ownKeys(e).filter((e) => {
1074
1074
  var t = n.get(e);
1075
1075
  return t === void 0 || t.v !== o;
@@ -1078,7 +1078,7 @@ function Yt(e) {
1078
1078
  return t;
1079
1079
  },
1080
1080
  setPrototypeOf() {
1081
- we();
1081
+ Ce();
1082
1082
  }
1083
1083
  });
1084
1084
  }
@@ -1093,67 +1093,67 @@ new Set([
1093
1093
  "splice",
1094
1094
  "unshift"
1095
1095
  ]);
1096
- var Xt, Zt, Qt, $t;
1097
- function en() {
1098
- if (Xt === void 0) {
1099
- Xt = window, Zt = /Firefox/.test(navigator.userAgent);
1096
+ var Jt, Yt, Xt, Zt;
1097
+ function Qt() {
1098
+ if (Jt === void 0) {
1099
+ Jt = window, Yt = /Firefox/.test(navigator.userAgent);
1100
1100
  var e = Element.prototype, t = Node.prototype, n = Text.prototype;
1101
- Qt = m(t, "firstChild").get, $t = m(t, "nextSibling").get, y(e) && (e[j] = void 0, e[ue] = null, e[de] = void 0, e.__e = void 0), y(n) && (n[fe] = void 0);
1101
+ Xt = m(t, "firstChild").get, Zt = m(t, "nextSibling").get, y(e) && (e[le] = void 0, e[ce] = null, e[ue] = void 0, e.__e = void 0), y(n) && (n[de] = void 0);
1102
1102
  }
1103
1103
  }
1104
- function U(e = "") {
1104
+ function $t(e = "") {
1105
1105
  return document.createTextNode(e);
1106
1106
  }
1107
- /* @__NO_SIDE_EFFECTS__ */
1108
- function W(e) {
1109
- return Qt.call(e);
1107
+ /*@__NO_SIDE_EFFECTS__*/
1108
+ function en(e) {
1109
+ return Xt.call(e);
1110
1110
  }
1111
- /* @__NO_SIDE_EFFECTS__ */
1111
+ /*@__NO_SIDE_EFFECTS__*/
1112
1112
  function tn(e) {
1113
- return $t.call(e);
1113
+ return Zt.call(e);
1114
1114
  }
1115
1115
  function nn(e, t) {
1116
- if (!M) return /* @__PURE__ */ W(e);
1117
- var n = /* @__PURE__ */ W(N);
1118
- if (n === null) n = N.appendChild(U());
1116
+ if (!N) return /* @__PURE__ */ en(e);
1117
+ var n = /* @__PURE__ */ en(F);
1118
+ if (n === null) n = F.appendChild($t());
1119
1119
  else if (t && n.nodeType !== 3) {
1120
- var r = U();
1121
- return n?.before(r), P(r), r;
1120
+ var r = $t();
1121
+ return n?.before(r), I(r), r;
1122
1122
  }
1123
- return t && ln(n), P(n), n;
1123
+ return t && ln(n), I(n), n;
1124
1124
  }
1125
1125
  function rn(e, t = !1) {
1126
- if (!M) {
1127
- var n = /* @__PURE__ */ W(e);
1126
+ if (!N) {
1127
+ var n = /* @__PURE__ */ en(e);
1128
1128
  return n instanceof Comment && n.data === "" ? /* @__PURE__ */ tn(n) : n;
1129
1129
  }
1130
1130
  if (t) {
1131
- if (N?.nodeType !== 3) {
1132
- var r = U();
1133
- return N?.before(r), P(r), r;
1131
+ if (F?.nodeType !== 3) {
1132
+ var r = $t();
1133
+ return F?.before(r), I(r), r;
1134
1134
  }
1135
- ln(N);
1135
+ ln(F);
1136
1136
  }
1137
- return N;
1137
+ return F;
1138
1138
  }
1139
1139
  function an(e, t = 1, n = !1) {
1140
- let r = M ? N : e;
1140
+ let r = N ? F : e;
1141
1141
  for (var i; t--;) i = r, r = /* @__PURE__ */ tn(r);
1142
- if (!M) return r;
1142
+ if (!N) return r;
1143
1143
  if (n) {
1144
1144
  if (r?.nodeType !== 3) {
1145
- var a = U();
1146
- return r === null ? i?.after(a) : r.before(a), P(a), a;
1145
+ var a = $t();
1146
+ return r === null ? i?.after(a) : r.before(a), I(a), a;
1147
1147
  }
1148
1148
  ln(r);
1149
1149
  }
1150
- return P(r), r;
1150
+ return I(r), r;
1151
1151
  }
1152
1152
  function on(e) {
1153
1153
  e.textContent = "";
1154
1154
  }
1155
1155
  function sn() {
1156
- return !F || gt !== null ? !1 : (J.f & O) !== 0;
1156
+ return !Le || mt !== null ? !1 : (J.f & E) !== 0;
1157
1157
  }
1158
1158
  function cn(e, t, n) {
1159
1159
  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);
@@ -1166,18 +1166,18 @@ function ln(e) {
1166
1166
  //#endregion
1167
1167
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
1168
1168
  function un(e) {
1169
- var t = q, n = J;
1170
- Bn(null), Vn(null);
1169
+ var t = K, n = J;
1170
+ q(null), Y(null);
1171
1171
  try {
1172
1172
  return e();
1173
1173
  } finally {
1174
- Bn(t), Vn(n);
1174
+ q(t), Y(n);
1175
1175
  }
1176
1176
  }
1177
1177
  //#endregion
1178
1178
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/effects.js
1179
1179
  function dn(e) {
1180
- J === null && (q === null && ye(e), ve()), Ln && _e(e);
1180
+ J === null && (K === null && ve(e), _e()), Rn && ge(e);
1181
1181
  }
1182
1182
  function fn(e, t) {
1183
1183
  var n = t.last;
@@ -1185,12 +1185,12 @@ function fn(e, t) {
1185
1185
  }
1186
1186
  function pn(e, t) {
1187
1187
  var n = J;
1188
- n !== null && n.f & 8192 && (e |= E);
1188
+ n !== null && n.f & 8192 && (e |= T);
1189
1189
  var r = {
1190
- ctx: I,
1190
+ ctx: L,
1191
1191
  deps: null,
1192
1192
  nodes: null,
1193
- f: e | w | 512,
1193
+ f: e | C | 512,
1194
1194
  first: null,
1195
1195
  fn: t,
1196
1196
  last: null,
@@ -1202,166 +1202,166 @@ function pn(e, t) {
1202
1202
  wv: 0,
1203
1203
  ac: null
1204
1204
  };
1205
- R?.register_created_effect(r);
1205
+ B?.register_created_effect(r);
1206
1206
  var i = r;
1207
- if (e & 4) lt === null ? pt.ensure().schedule(r) : lt.push(r);
1207
+ if (e & 4) st === null ? dt.ensure().schedule(r) : st.push(r);
1208
1208
  else if (t !== null) {
1209
1209
  try {
1210
- nr(r);
1210
+ tr(r);
1211
1211
  } catch (e) {
1212
- throw K(r), e;
1212
+ throw G(r), e;
1213
1213
  }
1214
- 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 |= te));
1214
+ 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));
1215
1215
  }
1216
- if (i !== null && (i.parent = n, n !== null && fn(i, n), q !== null && q.f & 2 && !(e & 64))) {
1217
- var a = q;
1216
+ if (i !== null && (i.parent = n, n !== null && fn(i, n), K !== null && K.f & 2 && !(e & 64))) {
1217
+ var a = K;
1218
1218
  (a.effects ??= []).push(i);
1219
1219
  }
1220
1220
  return r;
1221
1221
  }
1222
1222
  function mn() {
1223
- return q !== null && !zn;
1223
+ return K !== null && !Bn;
1224
1224
  }
1225
1225
  function hn(e) {
1226
1226
  let t = pn(8, null);
1227
- return L(t, C), t.teardown = e, t;
1227
+ return z(t, S), t.teardown = e, t;
1228
1228
  }
1229
1229
  function gn(e) {
1230
1230
  dn("$effect");
1231
1231
  var t = J.f;
1232
- if (!q && t & 32 && I !== null && !I.i) {
1233
- var n = I;
1232
+ if (!K && t & 32 && L !== null && !L.i) {
1233
+ var n = L;
1234
1234
  (n.e ??= []).push(e);
1235
1235
  } else return _n(e);
1236
1236
  }
1237
1237
  function _n(e) {
1238
- return pn(4 | ne, e);
1238
+ return pn(4 | re, e);
1239
1239
  }
1240
1240
  function vn(e) {
1241
- pt.ensure();
1242
- let t = pn(64 | k, e);
1241
+ dt.ensure();
1242
+ let t = pn(64 | O, e);
1243
1243
  return () => {
1244
- K(t);
1244
+ G(t);
1245
1245
  };
1246
1246
  }
1247
1247
  function yn(e) {
1248
- pt.ensure();
1249
- let t = pn(64 | k, e);
1248
+ dt.ensure();
1249
+ let t = pn(64 | O, e);
1250
1250
  return (e = {}) => new Promise((n) => {
1251
- e.outro ? An(t, () => {
1252
- K(t), n(void 0);
1253
- }) : (K(t), n(void 0));
1251
+ e.outro ? jn(t, () => {
1252
+ G(t), n(void 0);
1253
+ }) : (G(t), n(void 0));
1254
1254
  });
1255
1255
  }
1256
1256
  function bn(e) {
1257
1257
  return pn(4, e);
1258
1258
  }
1259
1259
  function xn(e) {
1260
- return pn(oe | k, e);
1260
+ return pn(ae | O, e);
1261
1261
  }
1262
1262
  function Sn(e, t = 0) {
1263
1263
  return pn(8 | t, e);
1264
1264
  }
1265
1265
  function Cn(e, t = [], n = [], r = []) {
1266
- Dt(r, t, n, (t) => {
1267
- pn(8, () => e(...t.map(Z)));
1266
+ Tt(r, t, n, (t) => {
1267
+ pn(8, () => e(...t.map(Q)));
1268
1268
  });
1269
1269
  }
1270
1270
  function wn(e, t = 0) {
1271
1271
  return pn(16 | t, e);
1272
1272
  }
1273
- function G(e) {
1274
- return pn(32 | k, e);
1275
- }
1276
1273
  function Tn(e) {
1274
+ return pn(32 | O, e);
1275
+ }
1276
+ function En(e) {
1277
1277
  var t = e.teardown;
1278
1278
  if (t !== null) {
1279
- let e = Ln, n = q;
1280
- Rn(!0), Bn(null);
1279
+ let e = Rn, n = K;
1280
+ zn(!0), q(null);
1281
1281
  try {
1282
1282
  t.call(null);
1283
1283
  } finally {
1284
- Rn(e), Bn(n);
1284
+ zn(e), q(n);
1285
1285
  }
1286
1286
  }
1287
1287
  }
1288
- function En(e, t = !1) {
1288
+ function Dn(e, t = !1) {
1289
1289
  var n = e.first;
1290
1290
  for (e.first = e.last = null; n !== null;) {
1291
1291
  let e = n.ac;
1292
1292
  e !== null && un(() => {
1293
- e.abort(pe);
1293
+ e.abort(fe);
1294
1294
  });
1295
1295
  var r = n.next;
1296
- n.f & 64 ? n.parent = null : K(n, t), n = r;
1296
+ n.f & 64 ? n.parent = null : G(n, t), n = r;
1297
1297
  }
1298
1298
  }
1299
- function Dn(e) {
1299
+ function On(e) {
1300
1300
  for (var t = e.first; t !== null;) {
1301
1301
  var n = t.next;
1302
- t.f & 32 || K(t), t = n;
1302
+ t.f & 32 || G(t), t = n;
1303
1303
  }
1304
1304
  }
1305
- function K(e, t = !0) {
1305
+ function G(e, t = !0) {
1306
1306
  var n = !1;
1307
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (On(e.nodes.start, e.nodes.end), n = !0), L(e, ee), En(e, t && !n), tr(e, 0);
1307
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (kn(e.nodes.start, e.nodes.end), n = !0), z(e, ne), Dn(e, t && !n), er(e, 0);
1308
1308
  var r = e.nodes && e.nodes.t;
1309
1309
  if (r !== null) for (let e of r) e.stop();
1310
- Tn(e), e.f ^= ee, e.f |= D;
1310
+ En(e), e.f ^= ne, e.f |= te;
1311
1311
  var i = e.parent;
1312
- i !== null && i.first !== null && kn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1312
+ i !== null && i.first !== null && An(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1313
1313
  }
1314
- function On(e, t) {
1314
+ function kn(e, t) {
1315
1315
  for (; e !== null;) {
1316
1316
  var n = e === t ? null : /* @__PURE__ */ tn(e);
1317
1317
  e.remove(), e = n;
1318
1318
  }
1319
1319
  }
1320
- function kn(e) {
1320
+ function An(e) {
1321
1321
  var t = e.parent, n = e.prev, r = e.next;
1322
1322
  n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
1323
1323
  }
1324
- function An(e, t, n = !0) {
1324
+ function jn(e, t, n = !0) {
1325
1325
  var r = [];
1326
- jn(e, r, !0);
1326
+ Mn(e, r, !0);
1327
1327
  var i = () => {
1328
- n && K(e), t && t();
1328
+ n && G(e), t && t();
1329
1329
  }, a = r.length;
1330
1330
  if (a > 0) {
1331
1331
  var o = () => --a || i();
1332
1332
  for (var s of r) s.out(o);
1333
1333
  } else i();
1334
1334
  }
1335
- function jn(e, t, n) {
1335
+ function Mn(e, t, n) {
1336
1336
  if (!(e.f & 8192)) {
1337
- e.f ^= E;
1337
+ e.f ^= T;
1338
1338
  var r = e.nodes && e.nodes.t;
1339
1339
  if (r !== null) for (let e of r) (e.is_global || n) && t.push(e);
1340
1340
  for (var i = e.first; i !== null;) {
1341
1341
  var a = i.next;
1342
1342
  if (!(i.f & 64)) {
1343
1343
  var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
1344
- jn(i, t, o ? n : !1);
1344
+ Mn(i, t, o ? n : !1);
1345
1345
  }
1346
1346
  i = a;
1347
1347
  }
1348
1348
  }
1349
1349
  }
1350
- function Mn(e) {
1351
- Nn(e, !0);
1350
+ function Nn(e) {
1351
+ Pn(e, !0);
1352
1352
  }
1353
- function Nn(e, t) {
1353
+ function Pn(e, t) {
1354
1354
  if (e.f & 8192) {
1355
- e.f ^= E, e.f & 1024 || (L(e, w), pt.ensure().schedule(e));
1355
+ e.f ^= T, e.f & 1024 || (z(e, C), dt.ensure().schedule(e));
1356
1356
  for (var n = e.first; n !== null;) {
1357
1357
  var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
1358
- Nn(n, i ? t : !1), n = r;
1358
+ Pn(n, i ? t : !1), n = r;
1359
1359
  }
1360
1360
  var a = e.nodes && e.nodes.t;
1361
1361
  if (a !== null) for (let e of a) (e.is_global || t) && e.in();
1362
1362
  }
1363
1363
  }
1364
- function Pn(e, t) {
1364
+ function Fn(e, t) {
1365
1365
  if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
1366
1366
  var i = n === r ? null : /* @__PURE__ */ tn(n);
1367
1367
  t.append(n), n = i;
@@ -1369,82 +1369,82 @@ function Pn(e, t) {
1369
1369
  }
1370
1370
  //#endregion
1371
1371
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/legacy.js
1372
- var Fn = null, In = !1, Ln = !1;
1373
- function Rn(e) {
1374
- Ln = e;
1372
+ var In = null, Ln = !1, Rn = !1;
1373
+ function zn(e) {
1374
+ Rn = e;
1375
1375
  }
1376
- var q = null, zn = !1;
1377
- function Bn(e) {
1378
- q = e;
1376
+ var K = null, Bn = !1;
1377
+ function q(e) {
1378
+ K = e;
1379
1379
  }
1380
1380
  var J = null;
1381
- function Vn(e) {
1381
+ function Y(e) {
1382
1382
  J = e;
1383
1383
  }
1384
- var Hn = null;
1385
- function Un(e) {
1386
- q !== null && (!F || q.f & 2) && (Hn ??= /* @__PURE__ */ new Set()).add(e);
1384
+ var Vn = null;
1385
+ function Hn(e) {
1386
+ K !== null && (!Le || K.f & 2) && (Vn ??= /* @__PURE__ */ new Set()).add(e);
1387
1387
  }
1388
- var Y = null, X = 0, Wn = null;
1389
- function Gn(e) {
1390
- Wn = e;
1388
+ var X = null, Z = 0, Un = null;
1389
+ function Wn(e) {
1390
+ Un = e;
1391
1391
  }
1392
- var Kn = 1, qn = 0, Jn = qn;
1393
- function Yn(e) {
1394
- Jn = e;
1392
+ var Gn = 1, Kn = 0, qn = Kn;
1393
+ function Jn(e) {
1394
+ qn = e;
1395
1395
  }
1396
- function Xn() {
1397
- return ++Kn;
1396
+ function Yn() {
1397
+ return ++Gn;
1398
1398
  }
1399
- function Zn(e) {
1399
+ function Xn(e) {
1400
1400
  var t = e.f;
1401
1401
  if (t & 2048) return !0;
1402
1402
  if (t & 2 && (e.f &= ~ie), t & 4096) {
1403
1403
  for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
1404
1404
  var a = n[i];
1405
- if (Zn(a) && Lt(a), a.wv > e.wv) return !0;
1405
+ if (Xn(a) && Ft(a), a.wv > e.wv) return !0;
1406
1406
  }
1407
- t & 512 && z === null && L(e, C);
1407
+ t & 512 && V === null && z(e, S);
1408
1408
  }
1409
1409
  return !1;
1410
1410
  }
1411
- function Qn(e, t, n = !0) {
1411
+ function Zn(e, t, n = !0) {
1412
1412
  var r = e.reactions;
1413
- if (r !== null && !(!F && Hn !== null && Hn.has(e))) for (var i = 0; i < r.length; i++) {
1413
+ if (r !== null && !(!Le && Vn !== null && Vn.has(e))) for (var i = 0; i < r.length; i++) {
1414
1414
  var a = r[i];
1415
- a.f & 2 ? Qn(a, t, !1) : t === a && (n ? L(a, w) : a.f & 1024 && L(a, T), bt(a));
1415
+ a.f & 2 ? Zn(a, t, !1) : t === a && (n ? z(a, C) : a.f & 1024 && z(a, w), vt(a));
1416
1416
  }
1417
1417
  }
1418
- function $n(e) {
1419
- var t = Y, n = X, r = Wn, i = q, a = Hn, o = I, s = zn, c = Jn, l = e.f;
1420
- Y = null, X = 0, Wn = null, q = l & 96 ? null : e, Hn = null, Be(e.ctx), zn = !1, Jn = ++qn, e.ac !== null && (un(() => {
1421
- e.ac.abort(pe);
1418
+ function Qn(e) {
1419
+ var t = X, n = Z, r = Un, i = K, a = Vn, o = L, s = Bn, c = qn, l = e.f;
1420
+ X = null, Z = 0, Un = null, K = l & 96 ? null : e, Vn = null, ze(e.ctx), Bn = !1, qn = ++Kn, e.ac !== null && (un(() => {
1421
+ e.ac.abort(fe);
1422
1422
  }), e.ac = null);
1423
1423
  try {
1424
- e.f |= ae;
1424
+ e.f |= A;
1425
1425
  var u = e.fn, d = u();
1426
- e.f |= O;
1427
- var f = e.deps, p = R?.is_fork;
1428
- if (Y !== null) {
1426
+ e.f |= E;
1427
+ var f = e.deps, p = B?.is_fork;
1428
+ if (X !== null) {
1429
1429
  var m;
1430
- if (p || tr(e, X), f !== null && X > 0) for (f.length = X + Y.length, m = 0; m < Y.length; m++) f[X + m] = Y[m];
1431
- else e.deps = f = Y;
1432
- if (mn() && e.f & 512) for (m = X; m < f.length; m++) (f[m].reactions ??= []).push(e);
1433
- } else !p && f !== null && X < f.length && (tr(e, X), f.length = X);
1434
- if (Ue() && Wn !== null && !zn && f !== null && !(e.f & 6146)) for (m = 0; m < Wn.length; m++) Qn(Wn[m], e);
1430
+ if (p || er(e, Z), f !== null && Z > 0) for (f.length = Z + X.length, m = 0; m < X.length; m++) f[Z + m] = X[m];
1431
+ else e.deps = f = X;
1432
+ if (mn() && e.f & 512) for (m = Z; m < f.length; m++) (f[m].reactions ??= []).push(e);
1433
+ } else !p && f !== null && Z < f.length && (er(e, Z), f.length = Z);
1434
+ if (He() && Un !== null && !Bn && f !== null && !(e.f & 6146)) for (m = 0; m < Un.length; m++) Zn(Un[m], e);
1435
1435
  if (i !== null && i !== e) {
1436
- if (qn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = qn;
1437
- if (t !== null) for (let e of t) e.rv = qn;
1438
- Wn !== null && (r === null ? r = Wn : r.push(...Wn));
1436
+ if (Kn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Kn;
1437
+ if (t !== null) for (let e of t) e.rv = Kn;
1438
+ Un !== null && (r === null ? r = Un : r.push(...Un));
1439
1439
  }
1440
- return e.f & 8388608 && (e.f ^= se), d;
1440
+ return e.f & 8388608 && (e.f ^= j), d;
1441
1441
  } catch (e) {
1442
- return Je(e);
1442
+ return qe(e);
1443
1443
  } finally {
1444
- e.f ^= ae, Y = t, X = n, Wn = r, q = i, Hn = a, Be(o), zn = s, Jn = c;
1444
+ e.f ^= A, X = t, Z = n, Un = r, K = i, Vn = a, ze(o), Bn = s, qn = c;
1445
1445
  }
1446
1446
  }
1447
- function er(e, t) {
1447
+ function $n(e, t) {
1448
1448
  let n = t.reactions;
1449
1449
  if (n !== null) {
1450
1450
  var r = l.call(n, e);
@@ -1453,108 +1453,135 @@ function er(e, t) {
1453
1453
  i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
1454
1454
  }
1455
1455
  }
1456
- if (n === null && t.f & 2 && (Y === null || !u.call(Y, t))) {
1456
+ if (n === null && t.f & 2 && (X === null || !u.call(X, t))) {
1457
1457
  var a = t;
1458
- a.f & 512 && (a.f ^= 512, a.f &= ~ie), a.v !== o && Ze(a), Rt(a), tr(a, 0);
1458
+ a.f & 512 && (a.f ^= 512, a.f &= ~ie), a.v !== o && Ye(a), It(a), er(a, 0);
1459
1459
  }
1460
1460
  }
1461
- function tr(e, t) {
1461
+ function er(e, t) {
1462
1462
  var n = e.deps;
1463
- if (n !== null) for (var r = t; r < n.length; r++) er(e, n[r]);
1463
+ if (n !== null) for (var r = t; r < n.length; r++) $n(e, n[r]);
1464
1464
  }
1465
- function nr(e) {
1465
+ function tr(e) {
1466
1466
  var t = e.f;
1467
1467
  if (!(t & 16384)) {
1468
- L(e, C);
1469
- var n = J, r = In;
1470
- J = e, In = !0;
1468
+ z(e, S);
1469
+ var n = J, r = Ln;
1470
+ J = e, Ln = !0;
1471
1471
  try {
1472
- t & 16777232 ? Dn(e) : En(e), Tn(e);
1473
- var i = $n(e);
1474
- e.teardown = typeof i == "function" ? i : null, e.wv = Kn;
1472
+ t & 16777232 ? On(e) : Dn(e), En(e);
1473
+ var i = Qn(e);
1474
+ e.teardown = typeof i == "function" ? i : null, e.wv = Gn;
1475
1475
  } finally {
1476
- In = r, J = n;
1476
+ Ln = r, J = n;
1477
1477
  }
1478
1478
  }
1479
1479
  }
1480
- function Z(e) {
1480
+ function Q(e) {
1481
1481
  var t = (e.f & 2) != 0;
1482
- if (Fn?.add(e), q !== null && !zn && !(J !== null && J.f & 16384) && (Hn === null || !Hn.has(e))) {
1483
- var n = q.deps;
1484
- if (q.f & 2097152) e.rv < qn && (e.rv = qn, Y === null && n !== null && n[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
1482
+ if (In?.add(e), K !== null && !Bn && !(J !== null && J.f & 16384) && (Vn === null || !Vn.has(e))) {
1483
+ var n = K.deps;
1484
+ if (K.f & 2097152) e.rv < Kn && (e.rv = Kn, X === null && n !== null && n[Z] === e ? Z++ : X === null ? X = [e] : X.push(e));
1485
1485
  else {
1486
- q.deps ??= [], u.call(q.deps, e) || q.deps.push(e);
1486
+ K.deps ??= [], u.call(K.deps, e) || K.deps.push(e);
1487
1487
  var r = e.reactions;
1488
- r === null ? e.reactions = [q] : u.call(r, q) || r.push(q);
1488
+ r === null ? e.reactions = [K] : u.call(r, K) || r.push(K);
1489
1489
  }
1490
1490
  }
1491
- if (Ln && Vt.has(e)) return Vt.get(e);
1491
+ if (Rn && zt.has(e)) return zt.get(e);
1492
1492
  if (t) {
1493
1493
  var i = e;
1494
- if (Ln) {
1494
+ if (Rn) {
1495
1495
  var a = i.v;
1496
- return (!(i.f & 1024) && i.reactions !== null || ir(i)) && (a = It(i)), Vt.set(i, a), a;
1496
+ return (!(i.f & 1024) && i.reactions !== null || rr(i)) && (a = Pt(i)), zt.set(i, a), a;
1497
1497
  }
1498
- var o = (i.f & 512) == 0 && !zn && q !== null && (In || (q.f & 512) != 0), s = (i.f & O) === 0;
1499
- Zn(i) && (o && (i.f |= 512), Lt(i)), o && !s && (zt(i), rr(i));
1498
+ var o = (i.f & 512) == 0 && !Bn && K !== null && (Ln || (K.f & 512) != 0), s = (i.f & E) === 0;
1499
+ Xn(i) && (o && (i.f |= 512), Ft(i)), o && !s && (Lt(i), nr(i));
1500
1500
  }
1501
- if (z?.has(e)) return z.get(e);
1501
+ if (V?.has(e)) return V.get(e);
1502
1502
  if (e.f & 8388608) throw e.v;
1503
1503
  return e.v;
1504
1504
  }
1505
- function rr(e) {
1506
- if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (zt(t), rr(t));
1505
+ function nr(e) {
1506
+ if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (Lt(t), nr(t));
1507
1507
  }
1508
- function ir(e) {
1508
+ function rr(e) {
1509
1509
  if (e.v === o) return !0;
1510
1510
  if (e.deps === null) return !1;
1511
- for (let t of e.deps) if (Vt.has(t) || t.f & 2 && ir(t)) return !0;
1511
+ for (let t of e.deps) if (zt.has(t) || t.f & 2 && rr(t)) return !0;
1512
1512
  return !1;
1513
1513
  }
1514
- function ar(e) {
1515
- var t = zn;
1514
+ function ir(e) {
1515
+ var t = Bn;
1516
1516
  try {
1517
- return zn = !0, e();
1517
+ return Bn = !0, e();
1518
1518
  } finally {
1519
- zn = t;
1519
+ Bn = t;
1520
+ }
1521
+ }
1522
+ function ar(e) {
1523
+ if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
1524
+ if (M in e) or(e);
1525
+ else if (!Array.isArray(e)) for (let t in e) {
1526
+ let n = e[t];
1527
+ typeof n == "object" && n && M in n && or(n);
1528
+ }
1529
+ }
1530
+ }
1531
+ function or(e, t = /* @__PURE__ */ new Set()) {
1532
+ if (typeof e == "object" && e && !(e instanceof EventTarget) && !t.has(e)) {
1533
+ t.add(e), e instanceof Date && e.getTime();
1534
+ for (let n in e) try {
1535
+ or(e[n], t);
1536
+ } catch {}
1537
+ let n = v(e);
1538
+ if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
1539
+ let t = h(n);
1540
+ for (let n in t) {
1541
+ let r = t[n].get;
1542
+ if (r) try {
1543
+ r.call(e);
1544
+ } catch {}
1545
+ }
1546
+ }
1520
1547
  }
1521
1548
  }
1522
1549
  //#endregion
1523
1550
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/events.js
1524
- var or = Symbol("events"), sr = /* @__PURE__ */ new Set(), cr = /* @__PURE__ */ new Set();
1525
- function lr(e, t, n, r = {}) {
1551
+ var sr = Symbol("events"), cr = /* @__PURE__ */ new Set(), lr = /* @__PURE__ */ new Set();
1552
+ function ur(e, t, n, r = {}) {
1526
1553
  function i(e) {
1527
- if (r.capture || mr.call(t, e), !e.cancelBubble) return un(() => n?.call(this, e));
1554
+ if (r.capture || hr.call(t, e), !e.cancelBubble) return un(() => n?.call(this, e));
1528
1555
  }
1529
- return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Ke(() => {
1556
+ return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Ge(() => {
1530
1557
  t.addEventListener(e, i, r);
1531
1558
  }) : t.addEventListener(e, i, r), i;
1532
1559
  }
1533
- function ur(e, t, n, r, i) {
1560
+ function dr(e, t, n, r, i) {
1534
1561
  var a = {
1535
1562
  capture: r,
1536
1563
  passive: i
1537
- }, o = lr(e, t, n, a);
1564
+ }, o = ur(e, t, n, a);
1538
1565
  (t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && hn(() => {
1539
1566
  t.removeEventListener(e, o, a);
1540
1567
  });
1541
1568
  }
1542
- function dr(e, t, n) {
1543
- (t[or] ??= {})[e] = n;
1569
+ function fr(e, t, n) {
1570
+ (t[sr] ??= {})[e] = n;
1544
1571
  }
1545
- function fr(e) {
1546
- for (var t = 0; t < e.length; t++) sr.add(e[t]);
1547
- for (var n of cr) n(e);
1572
+ function pr(e) {
1573
+ for (var t = 0; t < e.length; t++) cr.add(e[t]);
1574
+ for (var n of lr) n(e);
1548
1575
  }
1549
- var pr = null;
1550
- function mr(e) {
1576
+ var mr = null;
1577
+ function hr(e) {
1551
1578
  var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
1552
- pr = e;
1553
- var o = 0, s = pr === e && e[or];
1579
+ mr = e;
1580
+ var o = 0, s = mr === e && e[sr];
1554
1581
  if (s) {
1555
1582
  var c = i.indexOf(s);
1556
1583
  if (c !== -1 && (t === document || t === window)) {
1557
- e[or] = t;
1584
+ e[sr] = t;
1558
1585
  return;
1559
1586
  }
1560
1587
  var l = i.indexOf(t);
@@ -1568,12 +1595,12 @@ function mr(e) {
1568
1595
  return a || n;
1569
1596
  }
1570
1597
  });
1571
- var u = q, d = J;
1572
- Bn(null), Vn(null);
1598
+ var u = K, d = J;
1599
+ q(null), Y(null);
1573
1600
  try {
1574
1601
  for (var f, m = []; a !== null && a !== t;) {
1575
1602
  try {
1576
- var h = a[or]?.[r];
1603
+ var h = a[sr]?.[r];
1577
1604
  h != null && (!a.disabled || e.target === a) && h.call(a, e);
1578
1605
  } catch (e) {
1579
1606
  f ? m.push(e) : f = e;
@@ -1588,23 +1615,23 @@ function mr(e) {
1588
1615
  throw f;
1589
1616
  }
1590
1617
  } finally {
1591
- e[or] = t, delete e.currentTarget, Bn(u), Vn(d);
1618
+ e[sr] = t, delete e.currentTarget, q(u), Y(d);
1592
1619
  }
1593
1620
  }
1594
1621
  }
1595
1622
  //#endregion
1596
1623
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/reconciler.js
1597
- var hr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1598
- function gr(e) {
1599
- return hr?.createHTML(e) ?? e;
1600
- }
1624
+ var gr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1601
1625
  function _r(e) {
1626
+ return gr?.createHTML(e) ?? e;
1627
+ }
1628
+ function vr(e) {
1602
1629
  var t = cn("template");
1603
- return t.innerHTML = gr(e.replaceAll("<!>", "<!---->")), t.content;
1630
+ return t.innerHTML = _r(e.replaceAll("<!>", "<!---->")), t.content;
1604
1631
  }
1605
1632
  //#endregion
1606
1633
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/template.js
1607
- function vr(e, t) {
1634
+ function yr(e, t) {
1608
1635
  var n = J;
1609
1636
  n.nodes === null && (n.nodes = {
1610
1637
  start: e,
@@ -1613,51 +1640,29 @@ function vr(e, t) {
1613
1640
  t: null
1614
1641
  });
1615
1642
  }
1616
- /* @__NO_SIDE_EFFECTS__ */
1617
- function yr(e, t) {
1643
+ /*#__NO_SIDE_EFFECTS__*/
1644
+ function br(e, t) {
1618
1645
  var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
1619
1646
  return () => {
1620
- if (M) return vr(N, null), N;
1621
- i === void 0 && (i = _r(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ W(i)));
1622
- var t = r || Zt ? document.importNode(i, !0) : i.cloneNode(!0);
1647
+ if (N) return yr(F, null), F;
1648
+ i === void 0 && (i = vr(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ en(i)));
1649
+ var t = r || Yt ? document.importNode(i, !0) : i.cloneNode(!0);
1623
1650
  if (n) {
1624
- var o = /* @__PURE__ */ W(t), s = t.lastChild;
1625
- vr(o, s);
1626
- } else vr(t, t);
1651
+ var o = /* @__PURE__ */ en(t), s = t.lastChild;
1652
+ yr(o, s);
1653
+ } else yr(t, t);
1627
1654
  return t;
1628
1655
  };
1629
1656
  }
1630
- /* @__NO_SIDE_EFFECTS__ */
1631
- function br(e, t, n = "svg") {
1632
- var r = !e.startsWith("<!>"), i = (t & 1) != 0, a = `<${n}>${r ? e : "<!>" + e}</${n}>`, o;
1633
- return () => {
1634
- if (M) return vr(N, null), N;
1635
- if (!o) {
1636
- var e = /* @__PURE__ */ W(_r(a));
1637
- if (i) for (o = document.createDocumentFragment(); /* @__PURE__ */ W(e);) o.appendChild(/* @__PURE__ */ W(e));
1638
- else o = /* @__PURE__ */ W(e);
1639
- }
1640
- var t = o.cloneNode(!0);
1641
- if (i) {
1642
- var n = /* @__PURE__ */ W(t), r = t.lastChild;
1643
- vr(n, r);
1644
- } else vr(t, t);
1645
- return t;
1646
- };
1657
+ function xr() {
1658
+ if (N) return yr(F, null), F;
1659
+ var e = document.createDocumentFragment(), t = document.createComment(""), n = $t();
1660
+ return e.append(t, n), yr(t, n), e;
1647
1661
  }
1648
- /* @__NO_SIDE_EFFECTS__ */
1649
- function xr(e, t) {
1650
- return /* @__PURE__ */ br(e, t, "svg");
1651
- }
1652
- function Sr() {
1653
- if (M) return vr(N, null), N;
1654
- var e = document.createDocumentFragment(), t = document.createComment(""), n = U();
1655
- return e.append(t, n), vr(t, n), e;
1656
- }
1657
- function Q(e, t) {
1658
- if (M) {
1662
+ function Sr(e, t) {
1663
+ if (N) {
1659
1664
  var n = J;
1660
- (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = N), je();
1665
+ (!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = F), ke();
1661
1666
  return;
1662
1667
  }
1663
1668
  e !== null && e.before(t);
@@ -1669,40 +1674,40 @@ function wr(e) {
1669
1674
  }
1670
1675
  function Tr(e, t) {
1671
1676
  var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1672
- n !== (e[fe] ??= e.nodeValue) && (e[fe] = n, e.nodeValue = `${n}`);
1677
+ n !== (e[de] ??= e.nodeValue) && (e[de] = n, e.nodeValue = `${n}`);
1673
1678
  }
1674
1679
  function Er(e, t) {
1675
1680
  return kr(e, t);
1676
1681
  }
1677
1682
  function Dr(e, t) {
1678
- en(), t.intro = t.intro ?? !1;
1679
- let n = t.target, r = M, i = N;
1683
+ Qt(), t.intro = t.intro ?? !1;
1684
+ let n = t.target, r = N, i = F;
1680
1685
  try {
1681
- for (var o = /* @__PURE__ */ W(n); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ tn(o);
1686
+ for (var o = /* @__PURE__ */ en(n); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ tn(o);
1682
1687
  if (!o) throw a;
1683
- Ae(!0), P(o);
1688
+ P(!0), I(o);
1684
1689
  let r = kr(e, {
1685
1690
  ...t,
1686
1691
  anchor: o
1687
1692
  });
1688
- return Ae(!1), r;
1693
+ return P(!1), r;
1689
1694
  } catch (r) {
1690
1695
  if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
1691
- return r !== a && console.warn("Failed to hydrate: ", r), t.recover === !1 && xe(), en(), on(n), Ae(!1), Er(e, t);
1696
+ return r !== a && console.warn("Failed to hydrate: ", r), t.recover === !1 && be(), Qt(), on(n), P(!1), Er(e, t);
1692
1697
  } finally {
1693
- Ae(r), P(i);
1698
+ P(r), I(i);
1694
1699
  }
1695
1700
  }
1696
1701
  var Or = /* @__PURE__ */ new Map();
1697
1702
  function kr(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: s = !0, transformError: c }) {
1698
- en();
1703
+ Qt();
1699
1704
  var l = void 0, u = yn(() => {
1700
- var s = n ?? t.appendChild(U());
1701
- Tt(s, { pending: () => {} }, (t) => {
1702
- Ve({});
1703
- var n = I;
1704
- if (o && (n.c = o), i && (r.$$events = i), M && vr(t, null), l = e(t, r) || {}, M && (J.nodes.end = N, N === null || N.nodeType !== 8 || N.data !== "]")) throw Oe(), a;
1705
- He();
1705
+ var s = n ?? t.appendChild($t());
1706
+ Ct(s, { pending: () => {} }, (t) => {
1707
+ Be({});
1708
+ var n = L;
1709
+ if (o && (n.c = o), i && (r.$$events = i), N && yr(t, null), l = e(t, r) || {}, N && (J.nodes.end = F, F === null || F.nodeType !== 8 || F.data !== "]")) throw De(), a;
1710
+ Ve();
1706
1711
  }, c);
1707
1712
  var u = /* @__PURE__ */ new Set(), f = (e) => {
1708
1713
  for (var n = 0; n < e.length; n++) {
@@ -1714,17 +1719,17 @@ function kr(e, { target: t, anchor: n, props: r = {}, events: i, context: o, int
1714
1719
  var a = Or.get(e);
1715
1720
  a === void 0 && (a = /* @__PURE__ */ new Map(), Or.set(e, a));
1716
1721
  var o = a.get(r);
1717
- o === void 0 ? (e.addEventListener(r, mr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1722
+ o === void 0 ? (e.addEventListener(r, hr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
1718
1723
  }
1719
1724
  }
1720
1725
  }
1721
1726
  };
1722
- return f(d(sr)), cr.add(f), () => {
1727
+ return f(d(cr)), lr.add(f), () => {
1723
1728
  for (var e of u) for (let n of [t, document]) {
1724
1729
  var r = Or.get(n), i = r.get(e);
1725
- --i == 0 ? (n.removeEventListener(e, mr), r.delete(e), r.size === 0 && Or.delete(n)) : r.set(e, i);
1730
+ --i == 0 ? (n.removeEventListener(e, hr), r.delete(e), r.size === 0 && Or.delete(n)) : r.set(e, i);
1726
1731
  }
1727
- cr.delete(f), s !== n && s.parentNode?.removeChild(s);
1732
+ lr.delete(f), s !== n && s.parentNode?.removeChild(s);
1728
1733
  };
1729
1734
  });
1730
1735
  return Ar.set(l, u), l;
@@ -1749,65 +1754,65 @@ var Mr = class {
1749
1754
  #a = (e) => {
1750
1755
  if (this.#e.has(e)) {
1751
1756
  var t = this.#e.get(e), n = this.#t.get(t);
1752
- if (n) Mn(n), this.#r.delete(t);
1757
+ if (n) Nn(n), this.#r.delete(t);
1753
1758
  else {
1754
1759
  var r = this.#n.get(t);
1755
- r && (Mn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1760
+ r && (Nn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
1756
1761
  }
1757
1762
  for (let [t, n] of this.#e) {
1758
1763
  if (this.#e.delete(t), t === e) break;
1759
1764
  let r = this.#n.get(n);
1760
- r && (K(r.effect), this.#n.delete(n));
1765
+ r && (G(r.effect), this.#n.delete(n));
1761
1766
  }
1762
1767
  for (let [e, r] of this.#t) {
1763
1768
  if (e === t || this.#r.has(e)) continue;
1764
1769
  let i = () => {
1765
1770
  if (Array.from(this.#e.values()).includes(e)) {
1766
1771
  var t = document.createDocumentFragment();
1767
- Pn(r, t), t.append(U()), this.#n.set(e, {
1772
+ Fn(r, t), t.append($t()), this.#n.set(e, {
1768
1773
  effect: r,
1769
1774
  fragment: t
1770
1775
  });
1771
- } else K(r);
1776
+ } else G(r);
1772
1777
  this.#r.delete(e), this.#t.delete(e);
1773
1778
  };
1774
- this.#i || !n ? (this.#r.add(e), An(r, i, !1)) : i();
1779
+ this.#i || !n ? (this.#r.add(e), jn(r, i, !1)) : i();
1775
1780
  }
1776
1781
  }
1777
1782
  };
1778
1783
  #o = (e) => {
1779
1784
  this.#e.delete(e);
1780
1785
  let t = Array.from(this.#e.values());
1781
- for (let [e, n] of this.#n) t.includes(e) || (K(n.effect), this.#n.delete(e));
1786
+ for (let [e, n] of this.#n) t.includes(e) || (G(n.effect), this.#n.delete(e));
1782
1787
  };
1783
1788
  ensure(e, t) {
1784
- var n = R, r = sn();
1789
+ var n = B, r = sn();
1785
1790
  if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
1786
- var i = document.createDocumentFragment(), a = U();
1791
+ var i = document.createDocumentFragment(), a = $t();
1787
1792
  i.append(a), this.#n.set(e, {
1788
- effect: G(() => t(a)),
1793
+ effect: Tn(() => t(a)),
1789
1794
  fragment: i
1790
1795
  });
1791
- } else this.#t.set(e, G(() => t(this.anchor)));
1796
+ } else this.#t.set(e, Tn(() => t(this.anchor)));
1792
1797
  if (this.#e.set(n, e), r) {
1793
1798
  for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
1794
1799
  for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
1795
1800
  n.oncommit(this.#a), n.ondiscard(this.#o);
1796
- } else M && (this.anchor = N), this.#a(n);
1801
+ } else N && (this.anchor = F), this.#a(n);
1797
1802
  }
1798
1803
  };
1799
1804
  //#endregion
1800
1805
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
1801
1806
  function Nr(e, t, n = !1) {
1802
1807
  var r;
1803
- M && (r = N, je());
1804
- var i = new Mr(e), a = n ? te : 0;
1808
+ N && (r = F, ke());
1809
+ var i = new Mr(e), a = n ? D : 0;
1805
1810
  function o(e, t) {
1806
- if (M) {
1807
- var n = Fe(r);
1811
+ if (N) {
1812
+ var n = Ne(r);
1808
1813
  if (e !== parseInt(n.substring(1))) {
1809
- var a = Pe();
1810
- P(a), i.anchor = a, Ae(!1), i.ensure(e, t), Ae(!0);
1814
+ var a = Me();
1815
+ I(a), i.anchor = a, P(!1), i.ensure(e, t), P(!0);
1811
1816
  return;
1812
1817
  }
1813
1818
  }
@@ -1825,7 +1830,7 @@ function Nr(e, t, n = !1) {
1825
1830
  function Pr(e, t, n) {
1826
1831
  for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
1827
1832
  let n = t[s];
1828
- An(n, () => {
1833
+ jn(n, () => {
1829
1834
  if (a) {
1830
1835
  if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
1831
1836
  var t = e.outrogroups;
@@ -1854,7 +1859,7 @@ function Fr(e, t, n = !0) {
1854
1859
  }
1855
1860
  for (var i = 0; i < t.length; i++) {
1856
1861
  var a = t[i];
1857
- r?.has(a) ? (a.f |= re, Pn(a, document.createDocumentFragment())) : K(t[i], n);
1862
+ r?.has(a) ? (a.f |= k, Fn(a, document.createDocumentFragment())) : G(t[i], n);
1858
1863
  }
1859
1864
  }
1860
1865
  var Ir;
@@ -1862,15 +1867,15 @@ function Lr(e, t, n, r, i, a = null) {
1862
1867
  var o = e, s = /* @__PURE__ */ new Map();
1863
1868
  if (t & 4) {
1864
1869
  var l = e;
1865
- o = M ? P(/* @__PURE__ */ W(l)) : l.appendChild(U());
1870
+ o = N ? I(/* @__PURE__ */ en(l)) : l.appendChild($t());
1866
1871
  }
1867
- M && je();
1868
- var u = null, f = /* @__PURE__ */ Pt(() => {
1872
+ N && ke();
1873
+ var u = null, f = /* @__PURE__ */ Mt(() => {
1869
1874
  var e = n();
1870
1875
  return c(e) ? e : e == null ? [] : d(e);
1871
1876
  }), p, m = /* @__PURE__ */ new Map(), h = !0;
1872
1877
  function g(e) {
1873
- v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, zr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= re, Vr(u, null, o)) : Mn(u) : An(u, () => {
1878
+ v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, zr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= k, Vr(u, null, o)) : Nn(u) : jn(u, () => {
1874
1879
  u = null;
1875
1880
  })));
1876
1881
  }
@@ -1879,20 +1884,20 @@ function Lr(e, t, n, r, i, a = null) {
1879
1884
  }
1880
1885
  var v = {
1881
1886
  effect: wn(() => {
1882
- p = Z(f);
1887
+ p = Q(f);
1883
1888
  var e = p.length;
1884
1889
  let c = !1;
1885
- M && Fe(o) === "[!" != (e === 0) && (o = Pe(), P(o), Ae(!1), c = !0);
1886
- for (var l = /* @__PURE__ */ new Set(), d = R, v = sn(), y = 0; y < e; y += 1) {
1887
- M && N.nodeType === 8 && N.data === "]" && (o = N, c = !0, Ae(!1));
1888
- var b = p[y], x = r(b, y), S = h ? null : s.get(x);
1889
- S ? (S.v && Gt(S.v, b), S.i && Gt(S.i, y), v && d.unskip_effect(S.e)) : (S = Br(s, h ? o : Ir ??= U(), b, x, y, i, t, n), h || (S.e.f |= re), s.set(x, S)), l.add(x);
1890
+ N && Ne(o) === "[!" != (e === 0) && (o = Me(), I(o), P(!1), c = !0);
1891
+ for (var l = /* @__PURE__ */ new Set(), d = B, v = sn(), y = 0; y < e; y += 1) {
1892
+ N && F.nodeType === 8 && F.data === "]" && (o = F, c = !0, P(!1));
1893
+ var ee = p[y], b = r(ee, y), x = h ? null : s.get(b);
1894
+ x ? (x.v && Ut(x.v, ee), x.i && Ut(x.i, y), v && d.unskip_effect(x.e)) : (x = Br(s, h ? o : Ir ??= $t(), ee, b, y, i, t, n), h || (x.e.f |= k), s.set(b, x)), l.add(b);
1890
1895
  }
1891
- if (e === 0 && a && !u && (h ? u = G(() => a(o)) : (u = G(() => a(Ir ??= U())), u.f |= re)), e > l.size && ge("", "", ""), M && e > 0 && P(Pe()), !h) if (m.set(d, l), v) {
1896
+ if (e === 0 && a && !u && (h ? u = Tn(() => a(o)) : (u = Tn(() => a(Ir ??= $t())), u.f |= k)), e > l.size && he("", "", ""), N && e > 0 && I(Me()), !h) if (m.set(d, l), v) {
1892
1897
  for (let [e, t] of s) l.has(e) || d.skip_effect(t.e);
1893
1898
  d.oncommit(g), d.ondiscard(_);
1894
1899
  } else g(d);
1895
- c && Ae(!0), Z(f);
1900
+ c && P(!0), Q(f);
1896
1901
  }),
1897
1902
  flags: t,
1898
1903
  items: s,
@@ -1900,7 +1905,7 @@ function Lr(e, t, n, r, i, a = null) {
1900
1905
  outrogroups: null,
1901
1906
  fallback: u
1902
1907
  };
1903
- h = !1, M && (o = N);
1908
+ h = !1, N && (o = F);
1904
1909
  }
1905
1910
  function Rr(e) {
1906
1911
  for (; e !== null && !(e.f & 32);) e = e.next;
@@ -1911,7 +1916,7 @@ function zr(e, t, n, r, i) {
1911
1916
  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(), (f ??= /* @__PURE__ */ new Set()).add(_));
1912
1917
  for (v = 0; v < o; v += 1) {
1913
1918
  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(_);
1914
- if (_.f & 8192 && (Mn(_), a && (_.nodes?.a?.unfix(), (f ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) if (_.f ^= re, _ === c) Vr(_, null, n);
1919
+ if (_.f & 8192 && (Nn(_), a && (_.nodes?.a?.unfix(), (f ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) if (_.f ^= k, _ === c) Vr(_, null, n);
1915
1920
  else {
1916
1921
  var y = u ? u.next : c;
1917
1922
  _ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Hr(e, u, _), Hr(e, _, y), Vr(_, y, n), u = _, p = [], m = [], c = Rr(u.next);
@@ -1920,12 +1925,12 @@ function zr(e, t, n, r, i) {
1920
1925
  if (_ !== c) {
1921
1926
  if (l !== void 0 && l.has(_)) {
1922
1927
  if (p.length < m.length) {
1923
- var b = m[0], x;
1924
- u = b.prev;
1925
- var S = p[0], C = p[p.length - 1];
1926
- for (x = 0; x < p.length; x += 1) Vr(p[x], b, n);
1927
- for (x = 0; x < m.length; x += 1) l.delete(m[x]);
1928
- Hr(e, S.prev, C.next), Hr(e, u, S), Hr(e, C, b), c = b, u = C, --v, p = [], m = [];
1928
+ var ee = m[0], b;
1929
+ u = ee.prev;
1930
+ var x = p[0], S = p[p.length - 1];
1931
+ for (b = 0; b < p.length; b += 1) Vr(p[b], ee, n);
1932
+ for (b = 0; b < m.length; b += 1) l.delete(m[b]);
1933
+ Hr(e, x.prev, S.next), Hr(e, u, x), Hr(e, S, ee), c = ee, u = S, --v, p = [], m = [];
1929
1934
  } else l.delete(_), Vr(_, c, n), Hr(e, _.prev, _.next), Hr(e, _, u === null ? e.effect.first : u.next), Hr(e, u, _), u = _;
1930
1935
  continue;
1931
1936
  }
@@ -1939,29 +1944,29 @@ function zr(e, t, n, r, i) {
1939
1944
  e.outrogroups.size === 0 && (e.outrogroups = null);
1940
1945
  }
1941
1946
  if (c !== null || l !== void 0) {
1942
- var w = [];
1943
- if (l !== void 0) for (_ of l) _.f & 8192 || w.push(_);
1944
- for (; c !== null;) !(c.f & 8192) && c !== e.fallback && w.push(c), c = Rr(c.next);
1945
- var T = w.length;
1946
- if (T > 0) {
1947
- var E = r & 4 && o === 0 ? n : null;
1947
+ var C = [];
1948
+ if (l !== void 0) for (_ of l) _.f & 8192 || C.push(_);
1949
+ for (; c !== null;) !(c.f & 8192) && c !== e.fallback && C.push(c), c = Rr(c.next);
1950
+ var w = C.length;
1951
+ if (w > 0) {
1952
+ var T = r & 4 && o === 0 ? n : null;
1948
1953
  if (a) {
1949
- for (v = 0; v < T; v += 1) w[v].nodes?.a?.measure();
1950
- for (v = 0; v < T; v += 1) w[v].nodes?.a?.fix();
1954
+ for (v = 0; v < w; v += 1) C[v].nodes?.a?.measure();
1955
+ for (v = 0; v < w; v += 1) C[v].nodes?.a?.fix();
1951
1956
  }
1952
- Pr(e, w, E);
1957
+ Pr(e, C, T);
1953
1958
  }
1954
1959
  }
1955
- a && Ke(() => {
1960
+ a && Ge(() => {
1956
1961
  if (f !== void 0) for (_ of f) _.nodes?.a?.apply();
1957
1962
  });
1958
1963
  }
1959
1964
  function Br(e, t, n, r, i, a, o, s) {
1960
- var c = o & 1 ? o & 16 ? Ut(n) : /* @__PURE__ */ Wt(n, !1, !1) : null, l = o & 2 ? Ut(i) : null;
1965
+ var c = o & 1 ? o & 16 ? Vt(n) : /* @__PURE__ */ Ht(n, !1, !1) : null, l = o & 2 ? Vt(i) : null;
1961
1966
  return {
1962
1967
  v: c,
1963
1968
  i: l,
1964
- e: G(() => (a(t, c ?? n, l ?? i, s), () => {
1969
+ e: Tn(() => (a(t, c ?? n, l ?? i, s), () => {
1965
1970
  e.delete(r);
1966
1971
  }))
1967
1972
  };
@@ -1988,20 +1993,35 @@ function Ur(e, t) {
1988
1993
  });
1989
1994
  }
1990
1995
  //#endregion
1996
+ //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/actions.js
1997
+ function Wr(e, t, n) {
1998
+ bn(() => {
1999
+ var r = ir(() => t(e, n?.()) || {});
2000
+ if (n && r?.update) {
2001
+ var i = !1, a = {};
2002
+ Sn(() => {
2003
+ var e = n();
2004
+ ar(e), i && Fe(a, e) && (a = e, r.update(e));
2005
+ }), i = !0;
2006
+ }
2007
+ if (r?.destroy) return () => r.destroy();
2008
+ });
2009
+ }
2010
+ //#endregion
1991
2011
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/shared/attributes.js
1992
- var Wr = [..." \n\r\f\xA0\v"];
1993
- function Gr(e, t, n) {
2012
+ var Gr = [..." \n\r\f\xA0\v"];
2013
+ function Kr(e, t, n) {
1994
2014
  var r = e == null ? "" : "" + e;
1995
2015
  if (t && (r = r ? r + " " + t : t), n) {
1996
2016
  for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
1997
2017
  else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
1998
2018
  var s = o + a;
1999
- (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;
2019
+ (o === 0 || Gr.includes(r[o - 1])) && (s === r.length || Gr.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
2000
2020
  }
2001
2021
  }
2002
2022
  return r === "" ? null : r;
2003
2023
  }
2004
- function Kr(e, t = !1) {
2024
+ function qr(e, t = !1) {
2005
2025
  var n = t ? " !important;" : ";", r = "";
2006
2026
  for (var i of Object.keys(e)) {
2007
2027
  var a = e[i];
@@ -2009,16 +2029,16 @@ function Kr(e, t = !1) {
2009
2029
  }
2010
2030
  return r;
2011
2031
  }
2012
- function qr(e) {
2032
+ function Jr(e) {
2013
2033
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
2014
2034
  }
2015
- function Jr(e, t) {
2035
+ function Yr(e, t) {
2016
2036
  if (t) {
2017
2037
  var n = "", r, i;
2018
2038
  if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
2019
2039
  e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
2020
2040
  var a = !1, o = 0, s = !1, c = [];
2021
- r && c.push(...Object.keys(r).map(qr)), i && c.push(...Object.keys(i).map(qr));
2041
+ r && c.push(...Object.keys(r).map(Jr)), i && c.push(...Object.keys(i).map(Jr));
2022
2042
  var l = 0, u = -1;
2023
2043
  let t = e.length;
2024
2044
  for (var d = 0; d < t; d++) {
@@ -2027,7 +2047,7 @@ function Jr(e, t) {
2027
2047
  if (f === ":" && u === -1) u = d;
2028
2048
  else if (f === ";" || d === t - 1) {
2029
2049
  if (u !== -1) {
2030
- var p = qr(e.substring(l, u).trim());
2050
+ var p = Jr(e.substring(l, u).trim());
2031
2051
  if (!c.includes(p)) {
2032
2052
  f !== ";" && d++;
2033
2053
  var m = e.substring(l, d).trim();
@@ -2039,17 +2059,17 @@ function Jr(e, t) {
2039
2059
  }
2040
2060
  }
2041
2061
  }
2042
- return r && (n += Kr(r)), i && (n += Kr(i, !0)), n = n.trim(), n === "" ? null : n;
2062
+ return r && (n += qr(r)), i && (n += qr(i, !0)), n = n.trim(), n === "" ? null : n;
2043
2063
  }
2044
2064
  return e == null ? null : String(e);
2045
2065
  }
2046
2066
  //#endregion
2047
2067
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/class.js
2048
- function Yr(e, t, n, r, i, a) {
2049
- var o = e[j];
2050
- if (M || o !== n || o === void 0) {
2051
- var s = Gr(n, r, a);
2052
- (!M || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[j] = n;
2068
+ function Xr(e, t, n, r, i, a) {
2069
+ var o = e[le];
2070
+ if (N || o !== n || o === void 0) {
2071
+ var s = Kr(n, r, a);
2072
+ (!N || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[le] = n;
2053
2073
  } else if (a && i !== a) for (var c in a) {
2054
2074
  var l = !!a[c];
2055
2075
  (i == null || l !== !!i[c]) && e.classList.toggle(c, l);
@@ -2058,38 +2078,48 @@ function Yr(e, t, n, r, i, a) {
2058
2078
  }
2059
2079
  //#endregion
2060
2080
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/style.js
2061
- function Xr(e, t = {}, n, r) {
2081
+ function Zr(e, t = {}, n, r) {
2062
2082
  for (var i in n) {
2063
2083
  var a = n[i];
2064
2084
  t[i] !== a && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, a, r));
2065
2085
  }
2066
2086
  }
2067
- function Zr(e, t, n, r) {
2068
- var i = e[de];
2069
- if (M || i !== t) {
2070
- var a = Jr(t, r);
2071
- (!M || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[de] = t;
2072
- } else r && (Array.isArray(r) ? (Xr(e, n?.[0], r[0]), Xr(e, n?.[1], r[1], "important")) : Xr(e, n, r));
2087
+ function Qr(e, t, n, r) {
2088
+ var i = e[ue];
2089
+ if (N || i !== t) {
2090
+ var a = Yr(t, r);
2091
+ (!N || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e[ue] = t;
2092
+ } else r && (Array.isArray(r) ? (Zr(e, n?.[0], r[0]), Zr(e, n?.[1], r[1], "important")) : Zr(e, n, r));
2073
2093
  return r;
2074
2094
  }
2075
2095
  //#endregion
2076
2096
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/attributes.js
2077
- var Qr = Symbol("is custom element"), $r = Symbol("is html"), ei = me ? "link" : "LINK";
2078
- function $(e, t, n, r) {
2079
- var i = ti(e);
2080
- M && (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" && ri(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2081
- }
2082
- function ti(e) {
2083
- return e[ue] ??= {
2084
- [Qr]: e.nodeName.includes("-"),
2085
- [$r]: e.namespaceURI === s
2097
+ var $r = Symbol("is custom element"), ei = Symbol("is html"), ti = pe ? "link" : "LINK";
2098
+ function ni(e, t, n, r) {
2099
+ var i = ii(e);
2100
+ N && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ti) || i[t] !== (i[t] = n) && (t === "loading" && (e[se] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && oi(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
2101
+ }
2102
+ function ri(e, t, n) {
2103
+ var r = K, i = J;
2104
+ let a = N;
2105
+ N && P(!1), q(null), Y(null);
2106
+ try {
2107
+ t !== "style" && (ai.has(e.getAttribute("is") || e.nodeName) || !customElements || customElements.get(e.getAttribute("is") || e.nodeName.toLowerCase()) ? oi(e).includes(t) : n && typeof n == "object") ? e[t] = n : ni(e, t, n == null ? n : String(n));
2108
+ } finally {
2109
+ q(r), Y(i), a && P(!0);
2110
+ }
2111
+ }
2112
+ function ii(e) {
2113
+ return e[ce] ??= {
2114
+ [$r]: e.nodeName.includes("-"),
2115
+ [ei]: e.namespaceURI === s
2086
2116
  };
2087
2117
  }
2088
- var ni = /* @__PURE__ */ new Map();
2089
- function ri(e) {
2090
- var t = e.getAttribute("is") || e.nodeName, n = ni.get(t);
2118
+ var ai = /* @__PURE__ */ new Map();
2119
+ function oi(e) {
2120
+ var t = e.getAttribute("is") || e.nodeName, n = ai.get(t);
2091
2121
  if (n) return n;
2092
- ni.set(t, n = []);
2122
+ ai.set(t, n = []);
2093
2123
  for (var r, i = e, a = Element.prototype; a !== i;) {
2094
2124
  for (var o in r = h(i), r) r[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && n.push(o);
2095
2125
  i = v(i);
@@ -2098,22 +2128,22 @@ function ri(e) {
2098
2128
  }
2099
2129
  //#endregion
2100
2130
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
2101
- function ii(e, t) {
2102
- return e === t || e?.[A] === t;
2131
+ function si(e, t) {
2132
+ return e === t || e?.[M] === t;
2103
2133
  }
2104
- function ai(e = {}, t, n, r) {
2105
- var i = I.r, a = J;
2134
+ function ci(e = {}, t, n, r) {
2135
+ var i = L.r, a = J;
2106
2136
  return bn(() => {
2107
2137
  var o, s;
2108
2138
  return Sn(() => {
2109
- o = s, s = r?.() || [], ar(() => {
2110
- ii(n(...s), e) || (t(e, ...s), o && ii(n(...o), e) && t(null, ...o));
2139
+ o = s, s = r?.() || [], ir(() => {
2140
+ si(n(...s), e) || (t(e, ...s), o && si(n(...o), e) && t(null, ...o));
2111
2141
  });
2112
2142
  }), () => {
2113
2143
  let r = a;
2114
2144
  for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
2115
2145
  let o = () => {
2116
- s && ii(n(...s), e) && t(null, ...s);
2146
+ s && si(n(...s), e) && t(null, ...s);
2117
2147
  }, c = r.teardown;
2118
2148
  r.teardown = () => {
2119
2149
  o(), c?.();
@@ -2123,15 +2153,15 @@ function ai(e = {}, t, n, r) {
2123
2153
  }
2124
2154
  //#endregion
2125
2155
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/props.js
2126
- function oi(e, t, n, r) {
2127
- var i = !ze || (n & 2) != 0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ jt(r), Z(l)) : (c && (c = !1, s = o ? ar(r) : r), s);
2156
+ function li(e, t, n, r) {
2157
+ var i = !Re || (n & 2) != 0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ kt(r), Q(l)) : (c && (c = !1, s = o ? ir(r) : r), s);
2128
2158
  let d;
2129
2159
  if (a) {
2130
- var f = A in e || ce in e;
2160
+ var f = M in e || oe in e;
2131
2161
  d = m(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
2132
2162
  }
2133
2163
  var p, h = !1;
2134
- a ? [p, h] = nt(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && Se(t), d(p)));
2164
+ a ? [p, h] = et(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && xe(t), d(p)));
2135
2165
  var g = i ? () => {
2136
2166
  var n = e[t];
2137
2167
  return n === void 0 ? u() : (c = !0, n);
@@ -2146,28 +2176,28 @@ function oi(e, t, n, r) {
2146
2176
  return arguments.length > 0 ? ((!i || !t || _ || h) && d(t ? g() : e), e) : g();
2147
2177
  });
2148
2178
  }
2149
- var v = !1, y = (n & 1 ? jt : Pt)(() => (v = !1, g()));
2150
- a && Z(y);
2151
- var b = J;
2179
+ var v = !1, y = (n & 1 ? kt : Mt)(() => (v = !1, g()));
2180
+ a && Q(y);
2181
+ var ee = J;
2152
2182
  return (function(e, t) {
2153
2183
  if (arguments.length > 0) {
2154
- let n = t ? Z(y) : i && a ? Yt(e) : e;
2155
- return H(y, n), v = !0, s !== void 0 && (s = n), e;
2184
+ let n = t ? Q(y) : i && a ? qt(e) : e;
2185
+ return W(y, n), v = !0, s !== void 0 && (s = n), e;
2156
2186
  }
2157
- return Ln && v || b.f & 16384 ? y.v : Z(y);
2187
+ return Rn && v || ee.f & 16384 ? y.v : Q(y);
2158
2188
  });
2159
2189
  }
2160
2190
  //#endregion
2161
2191
  //#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/legacy/legacy-client.js
2162
- function si(e) {
2163
- return new ci(e);
2192
+ function ui(e) {
2193
+ return new di(e);
2164
2194
  }
2165
- var ci = class {
2195
+ var di = class {
2166
2196
  #e;
2167
2197
  #t;
2168
2198
  constructor(e) {
2169
2199
  var t = /* @__PURE__ */ new Map(), n = (e, n) => {
2170
- var r = /* @__PURE__ */ Wt(n, !1, !1);
2200
+ var r = /* @__PURE__ */ Ht(n, !1, !1);
2171
2201
  return t.set(e, r), r;
2172
2202
  };
2173
2203
  let r = new Proxy({
@@ -2175,13 +2205,13 @@ var ci = class {
2175
2205
  $$events: {}
2176
2206
  }, {
2177
2207
  get(e, r) {
2178
- return Z(t.get(r) ?? n(r, Reflect.get(e, r)));
2208
+ return Q(t.get(r) ?? n(r, Reflect.get(e, r)));
2179
2209
  },
2180
2210
  has(e, r) {
2181
- return r === ce ? !0 : (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2211
+ return r === oe ? !0 : (Q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
2182
2212
  },
2183
2213
  set(e, r, i) {
2184
- return H(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2214
+ return W(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
2185
2215
  }
2186
2216
  });
2187
2217
  this.#t = (e.hydrate ? Dr : Er)(e.component, {
@@ -2192,7 +2222,7 @@ var ci = class {
2192
2222
  intro: e.intro ?? !1,
2193
2223
  recover: e.recover,
2194
2224
  transformError: e.transformError
2195
- }), !F && (!e?.props?.$$host || e.sync === !1) && mt(), this.#e = r.$$events;
2225
+ }), !Le && (!e?.props?.$$host || e.sync === !1) && ft(), this.#e = r.$$events;
2196
2226
  for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || p(this, e, {
2197
2227
  get() {
2198
2228
  return this.#t[e];
@@ -2221,8 +2251,8 @@ var ci = class {
2221
2251
  $destroy() {
2222
2252
  this.#t.$destroy();
2223
2253
  }
2224
- }, li;
2225
- typeof HTMLElement == "function" && (li = class extends HTMLElement {
2254
+ }, fi;
2255
+ typeof HTMLElement == "function" && (fi = class extends HTMLElement {
2226
2256
  $$ctor;
2227
2257
  $$s;
2228
2258
  $$c;
@@ -2256,17 +2286,17 @@ typeof HTMLElement == "function" && (li = class extends HTMLElement {
2256
2286
  function e(e) {
2257
2287
  return (t) => {
2258
2288
  let n = cn("slot");
2259
- e !== "default" && (n.name = e), Q(t, n);
2289
+ e !== "default" && (n.name = e), Sr(t, n);
2260
2290
  };
2261
2291
  }
2262
- let t = {}, n = di(this);
2292
+ let t = {}, n = mi(this);
2263
2293
  for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
2264
2294
  for (let e of this.attributes) {
2265
2295
  let t = this.$$g_p(e.name);
2266
- t in this.$$d || (this.$$d[t] = ui(t, e.value, this.$$p_d, "toProp"));
2296
+ t in this.$$d || (this.$$d[t] = pi(t, e.value, this.$$p_d, "toProp"));
2267
2297
  }
2268
2298
  for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
2269
- this.$$c = si({
2299
+ this.$$c = ui({
2270
2300
  component: this.$$ctor,
2271
2301
  target: this.$$shadowRoot || this,
2272
2302
  props: {
@@ -2280,7 +2310,7 @@ typeof HTMLElement == "function" && (li = class extends HTMLElement {
2280
2310
  for (let e of f(this.$$c)) {
2281
2311
  if (!this.$$p_d[e]?.reflect) continue;
2282
2312
  this.$$d[e] = this.$$c[e];
2283
- let t = ui(e, this.$$d[e], this.$$p_d, "toAttribute");
2313
+ let t = pi(e, this.$$d[e], this.$$p_d, "toAttribute");
2284
2314
  t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
2285
2315
  }
2286
2316
  this.$$r = !1;
@@ -2294,7 +2324,7 @@ typeof HTMLElement == "function" && (li = class extends HTMLElement {
2294
2324
  }
2295
2325
  }
2296
2326
  attributeChangedCallback(e, t, n) {
2297
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ui(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2327
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = pi(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2298
2328
  }
2299
2329
  disconnectedCallback() {
2300
2330
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2305,7 +2335,7 @@ typeof HTMLElement == "function" && (li = class extends HTMLElement {
2305
2335
  return f(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2306
2336
  }
2307
2337
  });
2308
- function ui(e, t, n, r) {
2338
+ function pi(e, t, n, r) {
2309
2339
  let i = n[e]?.type;
2310
2340
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
2311
2341
  if (r === "toAttribute") switch (i) {
@@ -2323,14 +2353,14 @@ function ui(e, t, n, r) {
2323
2353
  default: return t;
2324
2354
  }
2325
2355
  }
2326
- function di(e) {
2356
+ function mi(e) {
2327
2357
  let t = {};
2328
2358
  return e.childNodes.forEach((e) => {
2329
2359
  t[e.slot || "default"] = !0;
2330
2360
  }), t;
2331
2361
  }
2332
- function fi(e, t, n, r, i, a) {
2333
- let o = class extends li {
2362
+ function hi(e, t, n, r, i, a) {
2363
+ let o = class extends fi {
2334
2364
  constructor() {
2335
2365
  super(e, n, i), this.$$p_d = t;
2336
2366
  }
@@ -2344,7 +2374,7 @@ function fi(e, t, n, r, i, a) {
2344
2374
  return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
2345
2375
  },
2346
2376
  set(n) {
2347
- n = ui(e, n, t), this.$$d[e] = n;
2377
+ n = pi(e, n, t), this.$$d[e] = n;
2348
2378
  var r = this.$$c;
2349
2379
  r && (m(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
2350
2380
  }
@@ -2356,109 +2386,957 @@ function fi(e, t, n, r, i, a) {
2356
2386
  }), a && (o = a(o)), e.element = o, o;
2357
2387
  }
2358
2388
  //#endregion
2389
+ //#region ../players-shared/dist/components/vendor/nds/nds-icon-button.js
2390
+ var gi = globalThis, _i = gi.ShadowRoot && (gi.ShadyCSS === void 0 || gi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, vi = Symbol(), yi = /* @__PURE__ */ new WeakMap(), bi = class {
2391
+ constructor(e, t, n) {
2392
+ if (this._$cssResult$ = !0, n !== vi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
2393
+ this.cssText = e, this.t = t;
2394
+ }
2395
+ get styleSheet() {
2396
+ let e = this.o, t = this.t;
2397
+ if (_i && e === void 0) {
2398
+ let n = t !== void 0 && t.length === 1;
2399
+ n && (e = yi.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && yi.set(t, e));
2400
+ }
2401
+ return e;
2402
+ }
2403
+ toString() {
2404
+ return this.cssText;
2405
+ }
2406
+ }, xi = (e) => new bi(typeof e == "string" ? e : e + "", void 0, vi), Si = (e, t) => {
2407
+ if (_i) e.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
2408
+ else for (let n of t) {
2409
+ let t = document.createElement("style"), r = gi.litNonce;
2410
+ r !== void 0 && t.setAttribute("nonce", r), t.textContent = n.cssText, e.appendChild(t);
2411
+ }
2412
+ }, Ci = _i ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((e) => {
2413
+ let t = "";
2414
+ for (let n of e.cssRules) t += n.cssText;
2415
+ return xi(t);
2416
+ })(e) : e, { is: wi, defineProperty: Ti, getOwnPropertyDescriptor: Ei, getOwnPropertyNames: Di, getOwnPropertySymbols: Oi, getPrototypeOf: ki } = Object, Ai = globalThis, ji = Ai.trustedTypes, Mi = ji ? ji.emptyScript : "", Ni = Ai.reactiveElementPolyfillSupport, Pi = (e, t) => e, Fi = {
2417
+ toAttribute(e, t) {
2418
+ switch (t) {
2419
+ case Boolean:
2420
+ e = e ? Mi : null;
2421
+ break;
2422
+ case Object:
2423
+ case Array: e = e == null ? e : JSON.stringify(e);
2424
+ }
2425
+ return e;
2426
+ },
2427
+ fromAttribute(e, t) {
2428
+ let n = e;
2429
+ switch (t) {
2430
+ case Boolean:
2431
+ n = e !== null;
2432
+ break;
2433
+ case Number:
2434
+ n = e === null ? null : Number(e);
2435
+ break;
2436
+ case Object:
2437
+ case Array: try {
2438
+ n = JSON.parse(e);
2439
+ } catch {
2440
+ n = null;
2441
+ }
2442
+ }
2443
+ return n;
2444
+ }
2445
+ }, Ii = (e, t) => !wi(e, t), Li = {
2446
+ attribute: !0,
2447
+ type: String,
2448
+ converter: Fi,
2449
+ reflect: !1,
2450
+ useDefault: !1,
2451
+ hasChanged: Ii
2452
+ };
2453
+ Symbol.metadata ??= Symbol("metadata"), Ai.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
2454
+ var Ri = class extends HTMLElement {
2455
+ static addInitializer(e) {
2456
+ this._$Ei(), (this.l ??= []).push(e);
2457
+ }
2458
+ static get observedAttributes() {
2459
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
2460
+ }
2461
+ static createProperty(e, t = Li) {
2462
+ 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) {
2463
+ let n = Symbol(), r = this.getPropertyDescriptor(e, n, t);
2464
+ r !== void 0 && Ti(this.prototype, e, r);
2465
+ }
2466
+ }
2467
+ static getPropertyDescriptor(e, t, n) {
2468
+ let { get: r, set: i } = Ei(this.prototype, e) ?? {
2469
+ get() {
2470
+ return this[t];
2471
+ },
2472
+ set(e) {
2473
+ this[t] = e;
2474
+ }
2475
+ };
2476
+ return {
2477
+ get: r,
2478
+ set(t) {
2479
+ let a = r?.call(this);
2480
+ i?.call(this, t), this.requestUpdate(e, a, n);
2481
+ },
2482
+ configurable: !0,
2483
+ enumerable: !0
2484
+ };
2485
+ }
2486
+ static getPropertyOptions(e) {
2487
+ return this.elementProperties.get(e) ?? Li;
2488
+ }
2489
+ static _$Ei() {
2490
+ if (this.hasOwnProperty(Pi("elementProperties"))) return;
2491
+ let e = ki(this);
2492
+ e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
2493
+ }
2494
+ static finalize() {
2495
+ if (this.hasOwnProperty(Pi("finalized"))) return;
2496
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Pi("properties"))) {
2497
+ let e = this.properties, t = [...Di(e), ...Oi(e)];
2498
+ for (let n of t) this.createProperty(n, e[n]);
2499
+ }
2500
+ let e = this[Symbol.metadata];
2501
+ if (e !== null) {
2502
+ let t = litPropertyMetadata.get(e);
2503
+ if (t !== void 0) for (let [e, n] of t) this.elementProperties.set(e, n);
2504
+ }
2505
+ this._$Eh = /* @__PURE__ */ new Map();
2506
+ for (let [e, t] of this.elementProperties) {
2507
+ let n = this._$Eu(e, t);
2508
+ n !== void 0 && this._$Eh.set(n, e);
2509
+ }
2510
+ this.elementStyles = this.finalizeStyles(this.styles);
2511
+ }
2512
+ static finalizeStyles(e) {
2513
+ let t = [];
2514
+ if (Array.isArray(e)) {
2515
+ let n = new Set(e.flat(Infinity).reverse());
2516
+ for (let e of n) t.unshift(Ci(e));
2517
+ } else e !== void 0 && t.push(Ci(e));
2518
+ return t;
2519
+ }
2520
+ static _$Eu(e, t) {
2521
+ let n = t.attribute;
2522
+ return n === !1 ? void 0 : typeof n == "string" ? n : typeof e == "string" ? e.toLowerCase() : void 0;
2523
+ }
2524
+ constructor() {
2525
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
2526
+ }
2527
+ _$Ev() {
2528
+ this._$ES = new Promise(((e) => this.enableUpdating = e)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((e) => e(this)));
2529
+ }
2530
+ addController(e) {
2531
+ (this._$EO ??= /* @__PURE__ */ new Set()).add(e), this.renderRoot !== void 0 && this.isConnected && e.hostConnected?.();
2532
+ }
2533
+ removeController(e) {
2534
+ this._$EO?.delete(e);
2535
+ }
2536
+ _$E_() {
2537
+ let e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
2538
+ for (let n of t.keys()) this.hasOwnProperty(n) && (e.set(n, this[n]), delete this[n]);
2539
+ e.size > 0 && (this._$Ep = e);
2540
+ }
2541
+ createRenderRoot() {
2542
+ let e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
2543
+ return Si(e, this.constructor.elementStyles), e;
2544
+ }
2545
+ connectedCallback() {
2546
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
2547
+ }
2548
+ enableUpdating(e) {}
2549
+ disconnectedCallback() {
2550
+ this._$EO?.forEach(((e) => e.hostDisconnected?.()));
2551
+ }
2552
+ attributeChangedCallback(e, t, n) {
2553
+ this._$AK(e, n);
2554
+ }
2555
+ _$ET(e, t) {
2556
+ let n = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, n);
2557
+ if (r !== void 0 && n.reflect === !0) {
2558
+ let i = (n.converter?.toAttribute === void 0 ? Fi : n.converter).toAttribute(t, n.type);
2559
+ this._$Em = e, i == null ? this.removeAttribute(r) : this.setAttribute(r, i), this._$Em = null;
2560
+ }
2561
+ }
2562
+ _$AK(e, t) {
2563
+ let n = this.constructor, r = n._$Eh.get(e);
2564
+ if (r !== void 0 && this._$Em !== r) {
2565
+ let e = n.getPropertyOptions(r), i = typeof e.converter == "function" ? { fromAttribute: e.converter } : e.converter?.fromAttribute === void 0 ? Fi : e.converter;
2566
+ this._$Em = r;
2567
+ let a = i.fromAttribute(t, e.type);
2568
+ this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
2569
+ }
2570
+ }
2571
+ requestUpdate(e, t, n) {
2572
+ if (e !== void 0) {
2573
+ let r = this.constructor, i = this[e];
2574
+ if (n ??= r.getPropertyOptions(e), !((n.hasChanged ?? Ii)(i, t) || n.useDefault && n.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(r._$Eu(e, n)))) return;
2575
+ this.C(e, t, n);
2576
+ }
2577
+ this.isUpdatePending === !1 && (this._$ES = this._$EP());
2578
+ }
2579
+ C(e, t, { useDefault: n, reflect: r, wrapped: i }, a) {
2580
+ n && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, a ?? t ?? this[e]), i !== !0 || a !== void 0) || (this._$AL.has(e) || (this.hasUpdated || n || (t = void 0), this._$AL.set(e, t)), r === !0 && this._$Em !== e && (this._$Eq ??= /* @__PURE__ */ new Set()).add(e));
2581
+ }
2582
+ async _$EP() {
2583
+ this.isUpdatePending = !0;
2584
+ try {
2585
+ await this._$ES;
2586
+ } catch (e) {
2587
+ Promise.reject(e);
2588
+ }
2589
+ let e = this.scheduleUpdate();
2590
+ return e != null && await e, !this.isUpdatePending;
2591
+ }
2592
+ scheduleUpdate() {
2593
+ return this.performUpdate();
2594
+ }
2595
+ performUpdate() {
2596
+ if (!this.isUpdatePending) return;
2597
+ if (!this.hasUpdated) {
2598
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
2599
+ for (let [e, t] of this._$Ep) this[e] = t;
2600
+ this._$Ep = void 0;
2601
+ }
2602
+ let e = this.constructor.elementProperties;
2603
+ if (e.size > 0) for (let [t, n] of e) {
2604
+ let { wrapped: e } = n, r = this[t];
2605
+ e !== !0 || this._$AL.has(t) || r === void 0 || this.C(t, void 0, n, r);
2606
+ }
2607
+ }
2608
+ let e = !1, t = this._$AL;
2609
+ try {
2610
+ e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach(((e) => e.hostUpdate?.())), this.update(t)) : this._$EM();
2611
+ } catch (t) {
2612
+ throw e = !1, this._$EM(), t;
2613
+ }
2614
+ e && this._$AE(t);
2615
+ }
2616
+ willUpdate(e) {}
2617
+ _$AE(e) {
2618
+ this._$EO?.forEach(((e) => e.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
2619
+ }
2620
+ _$EM() {
2621
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
2622
+ }
2623
+ get updateComplete() {
2624
+ return this.getUpdateComplete();
2625
+ }
2626
+ getUpdateComplete() {
2627
+ return this._$ES;
2628
+ }
2629
+ shouldUpdate(e) {
2630
+ return !0;
2631
+ }
2632
+ update(e) {
2633
+ this._$Eq &&= this._$Eq.forEach(((e) => this._$ET(e, this[e]))), this._$EM();
2634
+ }
2635
+ updated(e) {}
2636
+ firstUpdated(e) {}
2637
+ };
2638
+ Ri.elementStyles = [], Ri.shadowRootOptions = { mode: "open" }, Ri[Pi("elementProperties")] = /* @__PURE__ */ new Map(), Ri[Pi("finalized")] = /* @__PURE__ */ new Map(), Ni?.({ ReactiveElement: Ri }), (Ai.reactiveElementVersions ??= []).push("2.1.1");
2639
+ var zi = globalThis, Bi = zi.trustedTypes, Vi = Bi ? Bi.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Hi = "$lit$", Ui = `lit$${Math.random().toFixed(9).slice(2)}$`, Wi = "?" + Ui, Gi = `<${Wi}>`, Ki = document, qi = () => Ki.createComment(""), Ji = (e) => e === null || typeof e != "object" && typeof e != "function", Yi = Array.isArray, Xi = (e) => Yi(e) || typeof e?.[Symbol.iterator] == "function", Zi = "[ \n\f\r]", Qi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $i = /-->/g, ea = />/g, ta = RegExp(`>|${Zi}(?:([^\\s"'>=/]+)(${Zi}*=${Zi}*(?:[^
2640
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), na = /'/g, ra = /"/g, ia = /^(?:script|style|textarea|title)$/i, aa = ((e) => (t, ...n) => ({
2641
+ _$litType$: e,
2642
+ strings: t,
2643
+ values: n
2644
+ }))(1), oa = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), sa = /* @__PURE__ */ new WeakMap(), ca = Ki.createTreeWalker(Ki, 129);
2645
+ function la(e, t) {
2646
+ if (!Yi(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
2647
+ return Vi === void 0 ? t : Vi.createHTML(t);
2648
+ }
2649
+ var ua = (e, t) => {
2650
+ let n = e.length - 1, r = [], i, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = Qi;
2651
+ for (let t = 0; t < n; t++) {
2652
+ let n = e[t], s, c, l = -1, u = 0;
2653
+ for (; u < n.length && (o.lastIndex = u, c = o.exec(n), c !== null);) u = o.lastIndex, o === Qi ? c[1] === "!--" ? o = $i : c[1] === void 0 ? c[2] === void 0 ? c[3] !== void 0 && (o = ta) : (ia.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = ta) : o = ea : o === ta ? c[0] === ">" ? (o = i ?? Qi, l = -1) : c[1] === void 0 ? l = -2 : (l = o.lastIndex - c[2].length, s = c[1], o = c[3] === void 0 ? ta : c[3] === "\"" ? ra : na) : o === ra || o === na ? o = ta : o === $i || o === ea ? o = Qi : (o = ta, i = void 0);
2654
+ let d = o === ta && e[t + 1].startsWith("/>") ? " " : "";
2655
+ a += o === Qi ? n + Gi : l >= 0 ? (r.push(s), n.slice(0, l) + Hi + n.slice(l) + Ui + d) : n + Ui + (l === -2 ? t : d);
2656
+ }
2657
+ return [la(e, a + (e[n] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
2658
+ }, da = class e {
2659
+ constructor({ strings: t, _$litType$: n }, r) {
2660
+ let i;
2661
+ this.parts = [];
2662
+ let a = 0, o = 0, s = t.length - 1, c = this.parts, [l, u] = ua(t, n);
2663
+ if (this.el = e.createElement(l, r), ca.currentNode = this.el.content, n === 2 || n === 3) {
2664
+ let e = this.el.content.firstChild;
2665
+ e.replaceWith(...e.childNodes);
2666
+ }
2667
+ for (; (i = ca.nextNode()) !== null && c.length < s;) {
2668
+ if (i.nodeType === 1) {
2669
+ if (i.hasAttributes()) for (let e of i.getAttributeNames()) if (e.endsWith(Hi)) {
2670
+ let t = u[o++], n = i.getAttribute(e).split(Ui), r = /([.?@])?(.*)/.exec(t);
2671
+ c.push({
2672
+ type: 1,
2673
+ index: a,
2674
+ name: r[2],
2675
+ strings: n,
2676
+ ctor: r[1] === "." ? ga : r[1] === "?" ? _a : r[1] === "@" ? va : ha
2677
+ }), i.removeAttribute(e);
2678
+ } else e.startsWith(Ui) && (c.push({
2679
+ type: 6,
2680
+ index: a
2681
+ }), i.removeAttribute(e));
2682
+ if (ia.test(i.tagName)) {
2683
+ let e = i.textContent.split(Ui), t = e.length - 1;
2684
+ if (t > 0) {
2685
+ i.textContent = Bi ? Bi.emptyScript : "";
2686
+ for (let n = 0; n < t; n++) i.append(e[n], qi()), ca.nextNode(), c.push({
2687
+ type: 2,
2688
+ index: ++a
2689
+ });
2690
+ i.append(e[t], qi());
2691
+ }
2692
+ }
2693
+ } else if (i.nodeType === 8) if (i.data === Wi) c.push({
2694
+ type: 2,
2695
+ index: a
2696
+ });
2697
+ else {
2698
+ let e = -1;
2699
+ for (; (e = i.data.indexOf(Ui, e + 1)) !== -1;) c.push({
2700
+ type: 7,
2701
+ index: a
2702
+ }), e += Ui.length - 1;
2703
+ }
2704
+ a++;
2705
+ }
2706
+ }
2707
+ static createElement(e, t) {
2708
+ let n = Ki.createElement("template");
2709
+ return n.innerHTML = e, n;
2710
+ }
2711
+ };
2712
+ function fa(e, t, n = e, r) {
2713
+ if (t === oa) return t;
2714
+ let i = r === void 0 ? n._$Cl : n._$Co?.[r], a = Ji(t) ? void 0 : t._$litDirective$;
2715
+ 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 = fa(e, i._$AS(e, t.values), i, r)), t;
2716
+ }
2717
+ var pa = class {
2718
+ constructor(e, t) {
2719
+ this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
2720
+ }
2721
+ get parentNode() {
2722
+ return this._$AM.parentNode;
2723
+ }
2724
+ get _$AU() {
2725
+ return this._$AM._$AU;
2726
+ }
2727
+ u(e) {
2728
+ let { el: { content: t }, parts: n } = this._$AD, r = (e?.creationScope ?? Ki).importNode(t, !0);
2729
+ ca.currentNode = r;
2730
+ let i = ca.nextNode(), a = 0, o = 0, s = n[0];
2731
+ for (; s !== void 0;) {
2732
+ if (a === s.index) {
2733
+ let t;
2734
+ s.type === 2 ? t = new ma(i, i.nextSibling, this, e) : s.type === 1 ? t = new s.ctor(i, s.name, s.strings, this, e) : s.type === 6 && (t = new ya(i, this, e)), this._$AV.push(t), s = n[++o];
2735
+ }
2736
+ a !== s?.index && (i = ca.nextNode(), a++);
2737
+ }
2738
+ return ca.currentNode = Ki, r;
2739
+ }
2740
+ p(e) {
2741
+ let t = 0;
2742
+ 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++;
2743
+ }
2744
+ }, ma = class e {
2745
+ get _$AU() {
2746
+ return this._$AM?._$AU ?? this._$Cv;
2747
+ }
2748
+ constructor(e, t, n, r) {
2749
+ this.type = 2, this._$AH = $, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = n, this.options = r, this._$Cv = r?.isConnected ?? !0;
2750
+ }
2751
+ get parentNode() {
2752
+ let e = this._$AA.parentNode, t = this._$AM;
2753
+ return t !== void 0 && e?.nodeType === 11 && (e = t.parentNode), e;
2754
+ }
2755
+ get startNode() {
2756
+ return this._$AA;
2757
+ }
2758
+ get endNode() {
2759
+ return this._$AB;
2760
+ }
2761
+ _$AI(e, t = this) {
2762
+ e = fa(this, e, t), Ji(e) ? e === $ || e == null || e === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : e !== this._$AH && e !== oa && this._(e) : e._$litType$ === void 0 ? e.nodeType === void 0 ? Xi(e) ? this.k(e) : this._(e) : this.T(e) : this.$(e);
2763
+ }
2764
+ O(e) {
2765
+ return this._$AA.parentNode.insertBefore(e, this._$AB);
2766
+ }
2767
+ T(e) {
2768
+ this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
2769
+ }
2770
+ _(e) {
2771
+ this._$AH !== $ && Ji(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Ki.createTextNode(e)), this._$AH = e;
2772
+ }
2773
+ $(e) {
2774
+ let { values: t, _$litType$: n } = e, r = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = da.createElement(la(n.h, n.h[0]), this.options)), n);
2775
+ if (this._$AH?._$AD === r) this._$AH.p(t);
2776
+ else {
2777
+ let e = new pa(r, this), n = e.u(this.options);
2778
+ e.p(t), this.T(n), this._$AH = e;
2779
+ }
2780
+ }
2781
+ _$AC(e) {
2782
+ let t = sa.get(e.strings);
2783
+ return t === void 0 && sa.set(e.strings, t = new da(e)), t;
2784
+ }
2785
+ k(t) {
2786
+ Yi(this._$AH) || (this._$AH = [], this._$AR());
2787
+ let n = this._$AH, r, i = 0;
2788
+ for (let a of t) i === n.length ? n.push(r = new e(this.O(qi()), this.O(qi()), this, this.options)) : r = n[i], r._$AI(a), i++;
2789
+ i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
2790
+ }
2791
+ _$AR(e = this._$AA.nextSibling, t) {
2792
+ for (this._$AP?.(!1, !0, t); e !== this._$AB;) {
2793
+ let t = e.nextSibling;
2794
+ e.remove(), e = t;
2795
+ }
2796
+ }
2797
+ setConnected(e) {
2798
+ this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
2799
+ }
2800
+ }, ha = class {
2801
+ get tagName() {
2802
+ return this.element.tagName;
2803
+ }
2804
+ get _$AU() {
2805
+ return this._$AM._$AU;
2806
+ }
2807
+ constructor(e, t, n, r, i) {
2808
+ this.type = 1, this._$AH = $, this._$AN = void 0, this.element = e, this.name = t, this._$AM = r, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(/* @__PURE__ */ new String()), this.strings = n) : this._$AH = $;
2809
+ }
2810
+ _$AI(e, t = this, n, r) {
2811
+ let i = this.strings, a = !1;
2812
+ if (i === void 0) e = fa(this, e, t, 0), a = !Ji(e) || e !== this._$AH && e !== oa, a && (this._$AH = e);
2813
+ else {
2814
+ let r = e, o, s;
2815
+ for (e = i[0], o = 0; o < i.length - 1; o++) s = fa(this, r[n + o], t, o), s === oa && (s = this._$AH[o]), a ||= !Ji(s) || s !== this._$AH[o], s === $ ? e = $ : e !== $ && (e += (s ?? "") + i[o + 1]), this._$AH[o] = s;
2816
+ }
2817
+ a && !r && this.j(e);
2818
+ }
2819
+ j(e) {
2820
+ e === $ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
2821
+ }
2822
+ }, ga = class extends ha {
2823
+ constructor() {
2824
+ super(...arguments), this.type = 3;
2825
+ }
2826
+ j(e) {
2827
+ this.element[this.name] = e === $ ? void 0 : e;
2828
+ }
2829
+ }, _a = class extends ha {
2830
+ constructor() {
2831
+ super(...arguments), this.type = 4;
2832
+ }
2833
+ j(e) {
2834
+ this.element.toggleAttribute(this.name, !!e && e !== $);
2835
+ }
2836
+ }, va = class extends ha {
2837
+ constructor(e, t, n, r, i) {
2838
+ super(e, t, n, r, i), this.type = 5;
2839
+ }
2840
+ _$AI(e, t = this) {
2841
+ if ((e = fa(this, e, t, 0) ?? $) === oa) return;
2842
+ let n = this._$AH, r = e === $ && n !== $ || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, i = e !== $ && (n === $ || r);
2843
+ r && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
2844
+ }
2845
+ handleEvent(e) {
2846
+ typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
2847
+ }
2848
+ }, ya = class {
2849
+ constructor(e, t, n) {
2850
+ this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
2851
+ }
2852
+ get _$AU() {
2853
+ return this._$AM._$AU;
2854
+ }
2855
+ _$AI(e) {
2856
+ fa(this, e);
2857
+ }
2858
+ }, ba = zi.litHtmlPolyfillSupport;
2859
+ ba?.(da, ma), (zi.litHtmlVersions ??= []).push("3.3.1");
2860
+ var xa = (e, t, n) => {
2861
+ let r = n?.renderBefore ?? t, i = r._$litPart$;
2862
+ if (i === void 0) {
2863
+ let e = n?.renderBefore ?? null;
2864
+ r._$litPart$ = i = new ma(t.insertBefore(qi(), e), e, void 0, n ?? {});
2865
+ }
2866
+ return i._$AI(e), i;
2867
+ }, Sa = globalThis, Ca = class extends Ri {
2868
+ constructor() {
2869
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
2870
+ }
2871
+ createRenderRoot() {
2872
+ let e = super.createRenderRoot();
2873
+ return this.renderOptions.renderBefore ??= e.firstChild, e;
2874
+ }
2875
+ update(e) {
2876
+ let t = this.render();
2877
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = xa(t, this.renderRoot, this.renderOptions);
2878
+ }
2879
+ connectedCallback() {
2880
+ super.connectedCallback(), this._$Do?.setConnected(!0);
2881
+ }
2882
+ disconnectedCallback() {
2883
+ super.disconnectedCallback(), this._$Do?.setConnected(!1);
2884
+ }
2885
+ render() {
2886
+ return oa;
2887
+ }
2888
+ };
2889
+ Ca._$litElement$ = !0, Ca.finalized = !0, Sa.litElementHydrateSupport?.({ LitElement: Ca });
2890
+ var wa = Sa.litElementPolyfillSupport;
2891
+ wa?.({ LitElement: Ca }), (Sa.litElementVersions ??= []).push("4.2.1");
2892
+ var Ta = (e) => (t, n) => {
2893
+ n === void 0 ? customElements.get(e) || customElements.define(e, t) : n.addInitializer((() => {
2894
+ customElements.get(e) || customElements.define(e, t);
2895
+ }));
2896
+ }, Ea = {
2897
+ attribute: !0,
2898
+ type: String,
2899
+ converter: Fi,
2900
+ reflect: !1,
2901
+ hasChanged: Ii
2902
+ }, Da = (e = Ea, t, n) => {
2903
+ let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
2904
+ 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") {
2905
+ let { name: r } = n;
2906
+ return {
2907
+ set(n) {
2908
+ let i = t.get.call(this);
2909
+ t.set.call(this, n), this.requestUpdate(r, i, e);
2910
+ },
2911
+ init(t) {
2912
+ return t !== void 0 && this.C(r, void 0, e, t), t;
2913
+ }
2914
+ };
2915
+ }
2916
+ if (r === "setter") {
2917
+ let { name: r } = n;
2918
+ return function(n) {
2919
+ let i = this[r];
2920
+ t.call(this, n), this.requestUpdate(r, i, e);
2921
+ };
2922
+ }
2923
+ throw Error("Unsupported decorator location: " + r);
2924
+ };
2925
+ function Oa(e) {
2926
+ return (t, n) => typeof n == "object" ? Da(e, t, n) : ((e, t, n) => {
2927
+ let r = t.hasOwnProperty(n);
2928
+ return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
2929
+ })(e, t, n);
2930
+ }
2931
+ var ka = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, ja = (e, t, n, r) => {
2932
+ for (var i = r > 1 ? void 0 : r ? Aa(t, n) : t, a = e.length - 1, o; a >= 0; a--) (o = e[a]) && (i = (r ? o(t, n, i) : o(i)) || i);
2933
+ return r && i && ka(t, n, i), i;
2934
+ }, Ma = class extends Ca {
2935
+ constructor() {
2936
+ super(...arguments), this.variant = "primary", this.size = "default", this.type = "circle", this.state = "default", this.iconName = "home", this.disabled = !1, this.buttonAriaLabel = "Icon button";
2937
+ }
2938
+ createRenderRoot() {
2939
+ return this;
2940
+ }
2941
+ connectedCallback() {
2942
+ if (super.connectedCallback(), !document.querySelector("link[href*=\"Roboto\"]")) {
2943
+ let e = document.createElement("link");
2944
+ e.rel = "stylesheet", e.href = "https://ui.renaissance.com/fonts/Roboto/style.css", document.head.appendChild(e);
2945
+ }
2946
+ }
2947
+ set shape(e) {
2948
+ this.type = e;
2949
+ }
2950
+ get shape() {
2951
+ return this.type;
2952
+ }
2953
+ get buttonClasses() {
2954
+ return [
2955
+ "nds-icon-button",
2956
+ `nds-icon-button--${this.variant}`,
2957
+ `nds-icon-button--${this.size}`,
2958
+ `nds-icon-button--${this.type}`,
2959
+ this.state === "default" ? "" : `nds-icon-button--${this.state}`,
2960
+ this.disabled ? "nds-icon-button--disabled" : ""
2961
+ ].filter(Boolean).join(" ");
2962
+ }
2963
+ handleClick(e) {
2964
+ if (this.disabled) {
2965
+ e.preventDefault(), e.stopPropagation();
2966
+ return;
2967
+ }
2968
+ this.dispatchEvent(new CustomEvent("icon-button-click", {
2969
+ bubbles: !0,
2970
+ composed: !0,
2971
+ detail: { originalEvent: e }
2972
+ }));
2973
+ }
2974
+ render() {
2975
+ return aa`
2976
+ <style>
2977
+ nds-icon-button {
2978
+ display: inline-block;
2979
+ }
2980
+
2981
+ .nds-icon-button {
2982
+ display: inline-flex;
2983
+ align-items: center;
2984
+ justify-content: center;
2985
+ cursor: pointer;
2986
+ font-family: var(--font-family-roboto, "Roboto", sans-serif);
2987
+ font-weight: var(--font-weight-regular, 400);
2988
+ line-height: 1;
2989
+ text-decoration: none;
2990
+ background: none;
2991
+ position: relative;
2992
+ box-sizing: border-box;
2993
+ margin: 0;
2994
+ padding: 0;
2995
+ border: none;
2996
+ transition: background-color 0.2s ease-in-out,
2997
+ color 0.2s ease-in-out,
2998
+ box-shadow 0.2s ease-in-out;
2999
+ }
3000
+
3001
+ /* ── Sizes ── */
3002
+ .nds-icon-button--small {
3003
+ width: var(--height-32, 32px);
3004
+ height: var(--height-32, 32px);
3005
+ }
3006
+
3007
+ .nds-icon-button--medium {
3008
+ width: var(--height-36, 36px);
3009
+ height: var(--height-36, 36px);
3010
+ }
3011
+
3012
+ .nds-icon-button--default {
3013
+ width: var(--height-40, 40px);
3014
+ height: var(--height-40, 40px);
3015
+ }
3016
+
3017
+ .nds-icon-button--large {
3018
+ width: var(--height-48, 48px);
3019
+ height: var(--height-48, 48px);
3020
+ }
3021
+
3022
+ /* ── Shapes ── */
3023
+ .nds-icon-button--circle {
3024
+ border-radius: var(--radius-circle, 50%);
3025
+ }
3026
+
3027
+ .nds-icon-button--rounded {
3028
+ border-radius: var(--radius-8, 8px);
3029
+ }
3030
+
3031
+ /* ── Primary ── */
3032
+ .nds-icon-button--primary {
3033
+ background-color: var(--color-interactive-blue, #146eb3);
3034
+ color: var(--color-primary-white, #ffffff);
3035
+ }
3036
+
3037
+ .nds-icon-button--primary:hover:not(:disabled):not(.nds-icon-button--disabled) {
3038
+ box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
3039
+ }
3040
+
3041
+ .nds-icon-button--primary:active:not(:disabled):not(.nds-icon-button--disabled) {
3042
+ box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
3043
+ }
3044
+
3045
+ /* ── Secondary ── */
3046
+ .nds-icon-button--secondary {
3047
+ background-color: var(--color-primary-white, #ffffff);
3048
+ color: var(--color-interactive-blue, #146eb3);
3049
+ box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-interactive-blue, #146eb3);
3050
+ }
3051
+
3052
+ .nds-icon-button--secondary:hover:not(:disabled):not(.nds-icon-button--disabled) {
3053
+ background-color: var(--color-interactive-blue, #146eb3);
3054
+ color: var(--color-primary-white, #ffffff);
3055
+ box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
3056
+ }
3057
+
3058
+ .nds-icon-button--secondary:active:not(:disabled):not(.nds-icon-button--disabled) {
3059
+ background-color: var(--color-interactive-blue, #146eb3);
3060
+ color: var(--color-primary-white, #ffffff);
3061
+ box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
3062
+ }
3063
+
3064
+ /* ── Tertiary ── */
3065
+ .nds-icon-button--tertiary {
3066
+ background-color: var(--color-new-gray, #f3f5f7);
3067
+ color: var(--color-interactive-blue, #146eb3);
3068
+ }
3069
+
3070
+ .nds-icon-button--tertiary:hover:not(:disabled):not(.nds-icon-button--disabled) {
3071
+ box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
3072
+ }
3073
+
3074
+ .nds-icon-button--tertiary:active:not(:disabled):not(.nds-icon-button--disabled) {
3075
+ box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
3076
+ }
3077
+
3078
+ /* ── Ghost ── */
3079
+ .nds-icon-button--ghost {
3080
+ background-color: transparent;
3081
+ color: var(--color-interactive-blue, #146eb3);
3082
+ }
3083
+
3084
+ .nds-icon-button--ghost:hover:not(:disabled):not(.nds-icon-button--disabled) {
3085
+ background-color: var(--color-new-gray, #f3f5f7);
3086
+ box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-interactive-blue, #146eb3);
3087
+ }
3088
+
3089
+ .nds-icon-button--ghost:active:not(:disabled):not(.nds-icon-button--disabled) {
3090
+ background-color: var(--color-new-gray, #f3f5f7);
3091
+ box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-black, #000000);
3092
+ }
3093
+
3094
+ /* ── Dark (for dark backgrounds) ── */
3095
+ .nds-icon-button--dark {
3096
+ background-color: transparent;
3097
+ color: var(--color-primary-white, #ffffff);
3098
+ box-shadow: inset 0 0 0 var(--stroke-1, 1px) var(--color-primary-white, #ffffff);
3099
+ }
3100
+
3101
+ .nds-icon-button--dark:hover:not(:disabled):not(.nds-icon-button--disabled) {
3102
+ background-color: var(--color-interactive-blue, #146eb3);
3103
+ box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
3104
+ }
3105
+
3106
+ .nds-icon-button--dark:active:not(:disabled):not(.nds-icon-button--disabled) {
3107
+ background-color: var(--color-interactive-blue, #146eb3);
3108
+ box-shadow: inset 0 0 0 var(--stroke-2, 2px) var(--color-primary-white, #ffffff);
3109
+ }
3110
+
3111
+ /* ── Disabled ── */
3112
+ .nds-icon-button--disabled,
3113
+ .nds-icon-button:disabled {
3114
+ opacity: 0.5;
3115
+ cursor: not-allowed;
3116
+ }
3117
+
3118
+ /* ── Icon sizing ── */
3119
+ .nds-icon-button__icon {
3120
+ line-height: 1;
3121
+ display: inline-flex;
3122
+ align-items: center;
3123
+ justify-content: center;
3124
+ color: inherit;
3125
+ }
3126
+
3127
+ .nds-icon-button--small .nds-icon-button__icon {
3128
+ font-size: var(--nds-icon-small, 12px);
3129
+ }
3130
+
3131
+ .nds-icon-button--medium .nds-icon-button__icon {
3132
+ font-size: var(--nds-icon-medium, 14px);
3133
+ }
3134
+
3135
+ .nds-icon-button--default .nds-icon-button__icon {
3136
+ font-size: var(--nds-icon-default, 16px);
3137
+ }
3138
+
3139
+ .nds-icon-button--large .nds-icon-button__icon {
3140
+ font-size: var(--nds-icon-large, 20px);
3141
+ }
3142
+
3143
+ /* ── Focus ── */
3144
+ .nds-icon-button:focus-visible {
3145
+ outline: 2px solid var(--color-focus-blue, #2b87ff);
3146
+ outline-offset: 2px;
3147
+ }
3148
+
3149
+ /* ── Reduced motion ── */
3150
+ @media (prefers-reduced-motion: reduce) {
3151
+ .nds-icon-button {
3152
+ transition: none;
3153
+ }
3154
+ }
3155
+ </style>
3156
+ <button
3157
+ type="button"
3158
+ class="${this.buttonClasses}"
3159
+ ?disabled="${this.disabled}"
3160
+ aria-disabled="${this.disabled ? "true" : "false"}"
3161
+ aria-label="${this.buttonAriaLabel}"
3162
+ @click="${this.handleClick}"
3163
+ >
3164
+ <i class="fa-light fa-${this.iconName} nds-icon-button__icon" aria-hidden="true"></i>
3165
+ </button>
3166
+ `;
3167
+ }
3168
+ };
3169
+ ja([Oa()], Ma.prototype, "variant", 2), ja([Oa()], Ma.prototype, "size", 2), ja([Oa()], Ma.prototype, "type", 2), ja([Oa()], Ma.prototype, "state", 2), ja([Oa({ attribute: "icon-name" })], Ma.prototype, "iconName", 2), ja([Oa({ type: Boolean })], Ma.prototype, "disabled", 2), ja([Oa({ attribute: "button-aria-label" })], Ma.prototype, "buttonAriaLabel", 2), ja([Oa()], Ma.prototype, "shape", 1), Ma = ja([Ta("nds-icon-button")], Ma);
3170
+ //#endregion
2359
3171
  //#region tool-tts-inline.svelte
2360
- var pi = /* @__PURE__ */ xr("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M6 19h4V5H6v14zm8-14v14h4V5h-4z\"></path></svg>"), mi = /* @__PURE__ */ xr("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M8 5v14l11-7z\"></path></svg>"), hi = /* @__PURE__ */ yr("<button type=\"button\"><!></button>"), gi = /* @__PURE__ */ yr("<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>"), _i = /* @__PURE__ */ yr("<div class=\"pie-tool-tts-inline__speed-group svelte-18mzc0g\" role=\"radiogroup\" aria-label=\"Playback speed\"></div>"), vi = /* @__PURE__ */ yr("<div role=\"toolbar\" aria-label=\"Reading controls\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Rewind\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M20 18V6l-8.5 6L20 18zM10.5 18V6L2 12l8.5 6z\"></path></svg></button> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Fast-forward\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M4 18l8.5-6L4 6v12zm9.5 0L22 12l-8.5-6v12z\"></path></svg></button> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Stop reading\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M6 6h12v12H6z\"></path></svg></button></div>"), yi = /* @__PURE__ */ yr("<div class=\"pie-tool-tts-inline__more-menu svelte-18mzc0g\" role=\"menu\" aria-label=\"More reading controls\"><button type=\"button\" role=\"menuitem\" data-pie-tts-more-control=\"\" class=\"svelte-18mzc0g\">Rewind</button> <button type=\"button\" role=\"menuitem\" data-pie-tts-more-control=\"\" class=\"svelte-18mzc0g\">Fast-forward</button> <button type=\"button\" role=\"menuitem\" data-pie-tts-more-control=\"\" class=\"svelte-18mzc0g\">Stop reading</button></div>"), bi = /* @__PURE__ */ yr("<div class=\"pie-tool-tts-inline__more svelte-18mzc0g\"><button type=\"button\" class=\"pie-tool-tts-inline__trigger pie-tool-tts-inline__trigger--md pie-tool-tts-inline__more-button svelte-18mzc0g\" aria-label=\"More reading controls\" aria-haspopup=\"menu\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M12 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 2a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm0 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z\"></path></svg></button> <!></div>"), xi = /* @__PURE__ */ yr("<div><!> <!> <!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), Si = {
3172
+ var Na = /* @__PURE__ */ br("<nds-icon-button></nds-icon-button>", 2), Pa = /* @__PURE__ */ br("<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>"), Fa = /* @__PURE__ */ br("<div role=\"radiogroup\" aria-label=\"Playback speed\"></div>"), Ia = /* @__PURE__ */ br("<div role=\"toolbar\" aria-label=\"Reading controls\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Rewind\"><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=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Fast-forward\"><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=\"\" class=\"pie-tool-tts-inline__control pie-tool-tts-inline__control--secondary svelte-18mzc0g\" aria-label=\"Stop reading\"><i class=\"fa-solid fa-stop pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"></i></button></div>"), La = /* @__PURE__ */ br("<div><!> <!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), Ra = {
2361
3173
  hash: "svelte-18mzc0g",
2362
- code: ".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;}.pie-tool-tts-inline__trigger.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)));background-color:var(--pie-button-background-color, var(--pie-button-bg, var(--pie-background, #fff)));color:var(--pie-button-color, var(--pie-text, #333));border-radius:0.25rem;cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:hover:not(:disabled),\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__trigger.svelte-18mzc0g:active:not(:disabled),\n .pie-tool-tts-inline__control.svelte-18mzc0g:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:focus-visible,\n .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);}.pie-tool-tts-inline__trigger--active.svelte-18mzc0g {border-color:var(--pie-tool-trigger-active-border-color, var(--pie-primary, #1565c0));background-color:var(\n --pie-tool-trigger-active-background,\n color-mix(in srgb, var(--pie-primary, #1565c0) 10%, var(--pie-background, #fff))\n );color:var(--pie-tool-trigger-active-color, var(--pie-button-color, var(--pie-text, #333)));}.pie-tool-tts-inline__trigger--active.svelte-18mzc0g:hover:not(:disabled) {border-color:var(--pie-tool-trigger-active-border-color, var(--pie-primary, #1565c0));background-color:var(\n --pie-tool-trigger-active-background,\n color-mix(in srgb, var(--pie-primary, #1565c0) 10%, var(--pie-background, #fff))\n );color:var(--pie-tool-trigger-active-color, var(--pie-button-color, var(--pie-text, #333)));}.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);max-width:min(100vw - 1rem, 32rem);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:100%;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--compact.svelte-18mzc0g .pie-tool-tts-inline__control--secondary:where(.svelte-18mzc0g) {display:none;}.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;}.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;min-width:2.75rem;height:2rem;padding:0 0.625rem;font-size:0.75rem;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;}.pie-tool-tts-inline__more.svelte-18mzc0g {position:relative;display:inline-flex;}.pie-tool-tts-inline__more-menu.svelte-18mzc0g {position:absolute;z-index:3;top:calc(100% + 0.25rem);right:0;display:flex;flex-direction:column;min-width:10rem;padding:0.25rem;border:1px solid var(--pie-border, #d0d0d0);border-radius:0.375rem;background:var(--pie-surface, var(--pie-background, #fff));box-shadow:0 0.25rem 0.75rem color-mix(in srgb, var(--pie-shadow, #000) 18%, transparent);}.pie-tool-tts-inline__more-menu.svelte-18mzc0g button:where(.svelte-18mzc0g) {display:flex;align-items:center;justify-content:flex-start;width:100%;padding:0.5rem 0.625rem;border:0;border-radius:0.25rem;background:transparent;color:var(--pie-button-color, var(--pie-text, #222));font:inherit;text-align:left;cursor:pointer;}.pie-tool-tts-inline__more-menu.svelte-18mzc0g button:where(.svelte-18mzc0g):hover:not(:disabled),\n .pie-tool-tts-inline__more-menu.svelte-18mzc0g button:where(.svelte-18mzc0g):focus-visible {background:var(--pie-button-hover-background-color, var(--pie-button-hover-bg, var(--pie-secondary-background, #f2f4f8)));outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;}.pie-tool-tts-inline__more-menu.svelte-18mzc0g button:where(.svelte-18mzc0g):disabled {cursor:not-allowed;opacity:0.6;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:disabled,\n .pie-tool-tts-inline__control.svelte-18mzc0g:disabled {cursor:not-allowed;opacity:0.6;}.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1rem;height:1rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g {width:2rem;height:2rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1.25rem;height:1.25rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g {width:2.5rem;height:2.5rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1.5rem;height:1.5rem;}.pie-tool-tts-inline__icon.svelte-18mzc0g {\n /* Default explicit size so control-button icons (rewind/fast-forward/stop)\n render in WebKit, which sizes an inline SVG that has only a viewBox (no\n width/height attributes) to 0. The play/pause trigger icon already works\n because the __trigger--sm/md/lg rules below set these dimensions; this\n gives the control-panel icons the same treatment. Keep the SVG's default\n inline display — forcing display:block makes WebKit collapse it to 0. */width:1.25rem;height:1.25rem;fill:currentColor;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.1875rem 0.375rem;}.pie-tool-tts-inline__trigger.svelte-18mzc0g,\n .pie-tool-tts-inline__trigger--md.svelte-18mzc0g,\n .pie-tool-tts-inline__control.svelte-18mzc0g {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__trigger.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g),\n .pie-tool-tts-inline__control.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1rem;height:1rem;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {width:auto;min-width:2.5rem;height:1.75rem;padding:0 0.5rem;}\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__trigger.svelte-18mzc0g,\n .pie-tool-tts-inline__control.svelte-18mzc0g {transition:none !important;}\n }"
3174
+ code: ".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.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 a themeable variable. */--color-interactive-blue: var(--pie-tts-button-color, #146eb3);}.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);}.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 Per the Knowledge-Check design the controls sit transparently on the\n surrounding Question/Passage header: no panel chrome, media controls are\n accent-blue icon-only glyphs, and the speed radios are plain muted text with\n the selected one lifted into a white chip. The accent stays the same\n host-settable variable as the play/pause + calculator buttons\n (--pie-tts-button-color). Themeable knobs: --pie-tts-inline-muted-color,\n --pie-tts-selected-bg/-border/-shadow, --pie-tts-menu-shadow,\n --pie-tts-trigger-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;background:var(--pie-tts-selected-bg, #fff);border:0;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-blue, 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, #146eb3);}.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, #146eb3) 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;color:var(--pie-tts-inline-muted-color, #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, #146eb3) 8%, transparent);}\n\n /* Selected inline radio: white \"chip\" treatment. Placed after the muted rule\n so it wins at equal specificity. */.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, #d9dada);border-radius:6px;background:var(--pie-selected-button-background, #f3f5f7);color:var(--pie-tts-button-color, #146eb3);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 white chip. Options size to their content and centre\n (no 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, #146eb3);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, #d9dada);border-radius:6px;background:var(--pie-selected-button-background, #f3f5f7);color:var(--pie-tts-button-color, #146eb3);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;}.pie-tool-tts-inline__trigger.svelte-18mzc0g,\n .pie-tool-tts-inline__trigger--md.svelte-18mzc0g {--height-32: 1.75rem;}.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 }"
2363
3175
  };
2364
- function Ci(a, o) {
2365
- Ve(o, !0), Ur(a, Si);
2366
- let s = oi(o, "catalogId", 7, ""), c = oi(o, "language", 7, "en-US"), l = oi(o, "size", 7, "md"), u = oi(o, "speedOptions", 7, void 0), d = oi(o, "showSingleSpeedOption", 7, !1), f = oi(o, "layoutMode", 7, "expanding-row"), p = typeof window < "u", m = "__pie_tts_inline_active_owner__", h = "pie-tts-inline-owner-change", g = /* @__PURE__ */ V(void 0), _ = /* @__PURE__ */ V(void 0), v = /* @__PURE__ */ V(null), y = /* @__PURE__ */ V(null), b = /* @__PURE__ */ V(null), x = /* @__PURE__ */ B(() => Z(v)?.ttsService), S = /* @__PURE__ */ B(() => Z(v)?.highlightCoordinator), C = /* @__PURE__ */ B(() => Z(b)?.scopeElement || Z(y)?.scopeElement || null), w = /* @__PURE__ */ V(!1), T = /* @__PURE__ */ V(!1), E = /* @__PURE__ */ V(!1), D = /* @__PURE__ */ V(!1), O = /* @__PURE__ */ V(""), ee = /* @__PURE__ */ V(null), te = /* @__PURE__ */ V(null), k = /* @__PURE__ */ V(0), ne = /* @__PURE__ */ V(!1), re = /* @__PURE__ */ V(!1), ie = null, ae = /* @__PURE__ */ B(() => i(u())), oe = /* @__PURE__ */ B(() => be(Z(ae))), se = /* @__PURE__ */ B(() => Z(ae).length > 1 || d() ? Z(ae) : []), A = /* @__PURE__ */ B(() => Z(se).length), ce = /* @__PURE__ */ B(() => Z(A) + 3), le = /* @__PURE__ */ B(() => Z(k) >= Z(ce) ? 0 : Z(k)), ue = /* @__PURE__ */ B(() => Z(ee) !== null && Z(te) === Z(oe) && Z(ae).some((e) => e.rate === Z(ee)) ? Z(ee) : xe(Z(ae))), j = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, de = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, fe = `${j}-controls`, pe = `${j}-more-menu`;
2367
- function me() {
3176
+ function za(a, o) {
3177
+ Be(o, !0), Ur(a, Ra);
3178
+ let s = li(o, "catalogId", 7, ""), c = li(o, "language", 7, "en-US"), l = li(o, "size", 7, "md"), u = li(o, "speedOptions", 7, void 0), d = li(o, "showSingleSpeedOption", 7, !1), f = li(o, "layoutMode", 7, "expanding-row"), p = typeof window < "u", m = "__pie_tts_inline_active_owner__", h = "pie-tts-inline-owner-change", g = ["/_fa-pro/fontawesome.min.css", "/_fa-pro/light.min.css"], _ = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css", v = /font.?awesome|fa-?pro/i, y = !1, ee = () => {
3179
+ if (!(!p || y)) {
3180
+ if (y = !0, !document.querySelector("link[href*=\"Roboto\"]")) {
3181
+ let e = document.createElement("link");
3182
+ e.rel = "stylesheet", e.href = "https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap", document.head.appendChild(e);
3183
+ }
3184
+ if (!Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).some((e) => v.test(e.href))) {
3185
+ if (!document.querySelector(`link[href="${_}"]`)) {
3186
+ let e = document.createElement("link");
3187
+ e.rel = "stylesheet", e.href = _, document.head.appendChild(e);
3188
+ }
3189
+ for (let e of g) {
3190
+ if (document.querySelector(`link[href="${e}"]`)) continue;
3191
+ let t = document.createElement("link");
3192
+ t.rel = "stylesheet", t.href = e, document.head.appendChild(t);
3193
+ }
3194
+ }
3195
+ }
3196
+ }, b = "__pieFaTtsShadowInstalled", x = (e) => {
3197
+ let t = e.getRootNode();
3198
+ if (!(t instanceof ShadowRoot)) return;
3199
+ let n = t;
3200
+ if (n[b]) return;
3201
+ n[b] = !0;
3202
+ let r = /* @__PURE__ */ new Set(), i = (e) => {
3203
+ if (!e || r.has(e)) return;
3204
+ r.add(e);
3205
+ let n = document.createElement("link");
3206
+ n.rel = "stylesheet", n.href = e, t.appendChild(n);
3207
+ }, a = Array.from(document.querySelectorAll("link[rel=\"stylesheet\"][href]")).filter((e) => v.test(e.href));
3208
+ for (let e of a) i(e.href);
3209
+ }, S = (e) => {
3210
+ ee(), x(e);
3211
+ let t = () => {
3212
+ for (let t of e.querySelectorAll("i.fa-light")) t.classList.remove("fa-light"), t.classList.add("fa-solid");
3213
+ };
3214
+ t();
3215
+ let n = new MutationObserver(t);
3216
+ return n.observe(e, {
3217
+ childList: !0,
3218
+ subtree: !0,
3219
+ attributes: !0,
3220
+ attributeFilter: ["class"]
3221
+ }), { destroy() {
3222
+ n.disconnect();
3223
+ } };
3224
+ }, C = (e, t) => {
3225
+ let n = t, r = () => {
3226
+ let t = e.querySelector("button");
3227
+ if (t) for (let [e, r] of Object.entries(n)) r == null ? t.removeAttribute(e) : t.setAttribute(e, r);
3228
+ };
3229
+ r();
3230
+ let i = new MutationObserver(r);
3231
+ return i.observe(e, {
3232
+ childList: !0,
3233
+ subtree: !0
3234
+ }), {
3235
+ update(e) {
3236
+ n = e, r();
3237
+ },
3238
+ destroy() {
3239
+ i.disconnect();
3240
+ }
3241
+ };
3242
+ }, w = /* @__PURE__ */ U(void 0), T = /* @__PURE__ */ U(void 0), te = /* @__PURE__ */ U(null), E = /* @__PURE__ */ U(null), ne = /* @__PURE__ */ U(null), D = /* @__PURE__ */ H(() => Q(te)?.ttsService), O = /* @__PURE__ */ H(() => Q(te)?.highlightCoordinator), re = /* @__PURE__ */ H(() => Q(ne)?.scopeElement || Q(E)?.scopeElement || null), k = /* @__PURE__ */ U(!1), ie = /* @__PURE__ */ U(!1), A = /* @__PURE__ */ U(!1), ae = /* @__PURE__ */ U(!1), j = /* @__PURE__ */ U(""), M = /* @__PURE__ */ U(null), oe = /* @__PURE__ */ U(null), se = /* @__PURE__ */ U(0), ce = /* @__PURE__ */ U(!1), le = /* @__PURE__ */ U(!1), ue = null, de = /* @__PURE__ */ H(() => i(u())), fe = /* @__PURE__ */ H(() => De(Q(de))), pe = /* @__PURE__ */ H(() => Q(de).length > 1 || d() ? Q(de) : []), me = /* @__PURE__ */ H(() => Q(pe).length), he = /* @__PURE__ */ H(() => Q(me) + 3), ge = /* @__PURE__ */ H(() => Q(se) >= Q(he) ? 0 : Q(se)), _e = /* @__PURE__ */ H(() => Q(M) !== null && Q(oe) === Q(fe) && Q(de).some((e) => e.rate === Q(M)) ? Q(M) : Oe(Q(de))), ve = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, ye = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, be = `${ve}-controls`;
3243
+ function xe() {
2368
3244
  if (!p) return null;
2369
3245
  let e = window[m];
2370
3246
  return typeof e == "string" ? e : null;
2371
3247
  }
2372
- function he() {
2373
- return me() === j;
3248
+ function Se() {
3249
+ return xe() === ve;
2374
3250
  }
2375
- function ge(e, t) {
3251
+ function Ce(e, t) {
2376
3252
  p && window.dispatchEvent(new CustomEvent(h, { detail: {
2377
3253
  ownerId: e,
2378
3254
  previousOwnerId: t
2379
3255
  } }));
2380
3256
  }
2381
- function _e() {
3257
+ function we() {
2382
3258
  if (!p) return;
2383
- let e = me();
2384
- e !== j && (window[m] = j, ge(j, e));
3259
+ let e = xe();
3260
+ e !== ve && (window[m] = ve, Ce(ve, e));
2385
3261
  }
2386
- function ve() {
2387
- p && me() === j && (delete window[m], ge(null, j));
3262
+ function Te() {
3263
+ p && xe() === ve && (delete window[m], Ce(null, ve));
2388
3264
  }
2389
- function ye(e = "", t = !1) {
2390
- H(E, !1), H(D, !1), H(k, 0), H(w, t, !0), H(T, !1), H(O, e, !0);
3265
+ function Ee(e = "", t = !1) {
3266
+ W(A, !1), W(ae, !1), W(se, 0), W(k, t, !0), W(j, e, !0);
2391
3267
  }
2392
- function be(e) {
3268
+ function De(e) {
2393
3269
  return e.map((e) => `${e.rate}:${e.label}:${e.ariaLabel}:${e.isDefault ? "1" : "0"}`).join("|");
2394
3270
  }
2395
- function xe(e) {
3271
+ function Oe(e) {
2396
3272
  return e.find((e) => e.isDefault)?.rate ?? e.find((e) => e.rate === 1)?.rate ?? e[0]?.rate ?? 1;
2397
3273
  }
2398
- async function Se(e, t) {
3274
+ async function N(e, t) {
2399
3275
  if (typeof e.setPlaybackRate == "function") {
2400
3276
  await e.setPlaybackRate(t);
2401
3277
  return;
2402
3278
  }
2403
3279
  await e.updateSettings({ rate: t });
2404
3280
  }
2405
- function Ce(e) {
2406
- if (!Z(g) || !e) return;
2407
- let t = Z(g).getRootNode();
2408
- t instanceof ShadowRoot && t.querySelector(".pie-tool-tts-inline__trigger")?.focus();
3281
+ function P(e) {
3282
+ if (!Q(w) || !e) return;
3283
+ let t = Q(w).getRootNode();
3284
+ if (!(t instanceof ShadowRoot)) return;
3285
+ let n = t.querySelector(".pie-tool-tts-inline__trigger");
3286
+ (n?.querySelector("button") ?? n)?.focus();
2409
3287
  }
2410
- function we(e = "Reading switched to another section", t = !1) {
2411
- if (!Z(re) && !(!Z(w) && !he())) {
2412
- H(re, !0);
3288
+ function F(e = "Reading switched to another section", t = !1) {
3289
+ if (!Q(le) && !(!Q(k) && !Se())) {
3290
+ W(le, !0);
2413
3291
  try {
2414
3292
  let n = (() => {
2415
- if (!Z(g) || !Z(_)) return !1;
2416
- let e = Z(g).getRootNode();
3293
+ if (!Q(w) || !Q(T)) return !1;
3294
+ let e = Q(w).getRootNode();
2417
3295
  if (!(e instanceof ShadowRoot)) return !1;
2418
3296
  let t = e.activeElement;
2419
- return !!(t && Z(_).contains(t));
3297
+ return !!(t && Q(T).contains(t));
2420
3298
  })();
2421
- he() && ve(), ye(e), N(), t && queueMicrotask(() => {
2422
- Ce(n);
3299
+ Se() && Te(), Ee(e), Ie(), t && queueMicrotask(() => {
3300
+ P(n);
2423
3301
  });
2424
3302
  } finally {
2425
- H(re, !1);
3303
+ W(le, !1);
2426
3304
  }
2427
3305
  }
2428
3306
  }
2429
3307
  gn(() => {
2430
- if (Z(g)) return n(Z(g), (e) => {
2431
- H(v, e, !0);
3308
+ if (Q(w)) return n(Q(w), (e) => {
3309
+ W(te, e, !0);
2432
3310
  });
2433
3311
  }), gn(() => {
2434
- if (!Z(g)) return;
2435
- let e = r(Z(g), (e) => {
2436
- H(y, e, !0);
2437
- }), n = t(Z(g), (e) => {
2438
- H(b, e, !0);
3312
+ if (!Q(w)) return;
3313
+ let e = r(Q(w), (e) => {
3314
+ W(E, e, !0);
3315
+ }), n = t(Q(w), (e) => {
3316
+ W(ne, e, !0);
2439
3317
  });
2440
3318
  return () => {
2441
3319
  n(), e();
2442
3320
  };
2443
3321
  }), gn(() => {
2444
- if (!Z(x)) return;
3322
+ if (!Q(D)) return;
2445
3323
  let e = (e) => {
2446
- if (!Z(w) || !he()) {
2447
- H(E, !1), H(D, !1);
3324
+ if (!Q(k) || !Se()) {
3325
+ W(A, !1), W(ae, !1);
2448
3326
  return;
2449
3327
  }
2450
- H(E, e === "playing" || e === "paused", !0), H(D, e === "paused");
3328
+ W(A, e === "playing" || e === "paused", !0), W(ae, e === "paused");
2451
3329
  }, t = (t) => {
2452
3330
  e(t);
2453
3331
  };
2454
- return Z(x).onStateChange(de, t), e(Z(x).getState()), () => {
2455
- Z(x).offStateChange(de, t);
3332
+ return Q(D).onStateChange(ye, t), e(Q(D).getState()), () => {
3333
+ Q(D).offStateChange(ye, t);
2456
3334
  };
2457
3335
  }), gn(() => {
2458
3336
  if (!p) return;
2459
3337
  let e = (e) => {
2460
3338
  let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
2461
- n === j && t !== j && we("Reading switched to another section");
3339
+ n === ve && t !== ve && F("Reading switched to another section");
2462
3340
  };
2463
3341
  return window.addEventListener(h, e), () => {
2464
3342
  window.removeEventListener(h, e);
@@ -2466,241 +3344,191 @@ function Ci(a, o) {
2466
3344
  }), gn(() => {
2467
3345
  if (!p) return;
2468
3346
  let t = () => {
2469
- we("Reading switched to another section", !0);
3347
+ F("Reading switched to another section", !0);
2470
3348
  };
2471
3349
  return window.addEventListener(e, t), () => {
2472
3350
  window.removeEventListener(e, t);
2473
3351
  };
2474
3352
  }), gn(() => () => {
2475
- ve(), N();
3353
+ Te(), Ie();
2476
3354
  });
2477
- async function Te() {
2478
- if (!Z(x)) return !1;
3355
+ async function I() {
3356
+ if (!Q(D)) return !1;
2479
3357
  try {
2480
- return await Z(v)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
3358
+ return await Q(te)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
2481
3359
  } catch (e) {
2482
3360
  return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
2483
3361
  }
2484
3362
  }
2485
- function Ee() {
2486
- return Z(_) ? Array.from(Z(_).querySelectorAll("[data-pie-tts-control]")).filter((e) => window.getComputedStyle(e).display !== "none") : [];
3363
+ function ke() {
3364
+ return Q(T) ? Array.from(Q(T).querySelectorAll("[data-pie-tts-control]")).filter((e) => window.getComputedStyle(e).display !== "none") : [];
2487
3365
  }
2488
- function De(e) {
2489
- let t = Ee();
3366
+ function je(e) {
3367
+ let t = ke();
2490
3368
  if (!t.length) return;
2491
3369
  let n = (e + t.length) % t.length;
2492
- H(k, n), t[n].focus();
3370
+ W(se, n), t[n].focus();
2493
3371
  }
2494
- function Oe(e) {
2495
- let t = Ee();
3372
+ function Me(e) {
3373
+ let t = ke();
2496
3374
  if (t.length) switch (e.key) {
2497
3375
  case "ArrowDown":
2498
3376
  case "ArrowRight":
2499
- e.preventDefault(), De(Z(k) + 1);
3377
+ e.preventDefault(), je(Q(se) + 1);
2500
3378
  break;
2501
3379
  case "ArrowUp":
2502
3380
  case "ArrowLeft":
2503
- e.preventDefault(), De(Z(k) - 1);
3381
+ e.preventDefault(), je(Q(se) - 1);
2504
3382
  break;
2505
3383
  case "Home":
2506
- e.preventDefault(), De(0);
3384
+ e.preventDefault(), je(0);
2507
3385
  break;
2508
3386
  case "End":
2509
- e.preventDefault(), De(t.length - 1);
3387
+ e.preventDefault(), je(t.length - 1);
2510
3388
  break;
2511
3389
  }
2512
3390
  }
2513
- function ke() {
2514
- if (!Z(C)) return null;
2515
- let e = Z(C);
3391
+ function Ne() {
3392
+ if (!Q(re)) return null;
3393
+ let e = Q(re);
2516
3394
  if (e.getAttribute?.("data-region") === "content") return e;
2517
3395
  let t = e.querySelector?.("[data-region='content']");
2518
3396
  return t instanceof Element ? t : e;
2519
3397
  }
2520
- function M() {
2521
- if (Z(y)) return Z(y).kind === "passage" ? {
3398
+ function Pe() {
3399
+ if (Q(E)) return Q(E).kind === "passage" ? {
2522
3400
  ownerKind: "passage",
2523
- assessmentId: Z(v)?.assessmentId || "",
2524
- sectionId: Z(v)?.sectionId || "",
2525
- passageId: Z(y).canonicalItemId || Z(y).itemId
3401
+ assessmentId: Q(te)?.assessmentId || "",
3402
+ sectionId: Q(te)?.sectionId || "",
3403
+ passageId: Q(E).canonicalItemId || Q(E).itemId
2526
3404
  } : {
2527
3405
  ownerKind: "itemModel",
2528
- assessmentId: Z(v)?.assessmentId || "",
2529
- sectionId: Z(v)?.sectionId || "",
2530
- itemId: Z(y).itemId,
2531
- canonicalItemId: Z(y).canonicalItemId || Z(y).itemId
3406
+ assessmentId: Q(te)?.assessmentId || "",
3407
+ sectionId: Q(te)?.sectionId || "",
3408
+ itemId: Q(E).itemId,
3409
+ canonicalItemId: Q(E).canonicalItemId || Q(E).itemId
2532
3410
  };
2533
3411
  }
2534
- function Ae(e) {
2535
- return N(), ie = Z(x)?.setHighlightTargetResolverProvider?.(() => ({
3412
+ function Fe(e) {
3413
+ return Ie(), ue = Q(D)?.setHighlightTargetResolverProvider?.(() => ({
2536
3414
  context: {
2537
- scopeElement: Z(b)?.scopeElement || e || null,
2538
- kind: Z(y)?.kind,
2539
- itemId: Z(y)?.itemId,
2540
- canonicalItemId: Z(y)?.canonicalItemId,
2541
- contentKind: Z(y)?.contentKind,
2542
- regionPolicy: Z(y)?.regionPolicy
3415
+ scopeElement: Q(ne)?.scopeElement || e || null,
3416
+ kind: Q(E)?.kind,
3417
+ itemId: Q(E)?.itemId,
3418
+ canonicalItemId: Q(E)?.canonicalItemId,
3419
+ contentKind: Q(E)?.contentKind,
3420
+ regionPolicy: Q(E)?.regionPolicy
2543
3421
  },
2544
- resolver: Z(b)?.ttsHighlightTargetResolver || null
2545
- })) || null, ie;
3422
+ resolver: Q(ne)?.ttsHighlightTargetResolver || null
3423
+ })) || null, ue;
2546
3424
  }
2547
- function N(e = ie) {
2548
- e?.(), e === ie && (ie = null);
3425
+ function Ie(e = ue) {
3426
+ e?.(), e === ue && (ue = null);
2549
3427
  }
2550
- function P() {
2551
- if (!he()) return !1;
2552
- let e = String(Z(x)?.getState?.() || "");
3428
+ function Le() {
3429
+ if (!Se()) return !1;
3430
+ let e = String(Q(D)?.getState?.() || "");
2553
3431
  return e === "playing" || e === "paused" || e === "loading";
2554
3432
  }
2555
- async function je() {
2556
- if (!Z(x)) return;
2557
- let e = ke();
3433
+ async function Re() {
3434
+ if (!Q(D)) return;
3435
+ let e = Ne();
2558
3436
  if (!e) {
2559
3437
  console.warn("[TTS Inline] No target container found from shell scope context");
2560
3438
  return;
2561
3439
  }
2562
3440
  try {
2563
- H(w, !0);
3441
+ W(k, !0);
2564
3442
  let t = e.textContent || "";
2565
3443
  if (!t) {
2566
3444
  console.warn("[TTS Inline] No text content found");
2567
3445
  return;
2568
3446
  }
2569
- Z(S) && Z(x).setHighlightCoordinator && Z(x).setHighlightCoordinator(Z(S)), await Se(Z(x), Z(ue));
2570
- let n = Ae(e);
2571
- Z(x).setRootElement?.(e), H(O, "Reading started"), Z(x).speak(t, {
3447
+ Q(O) && Q(D).setHighlightCoordinator && Q(D).setHighlightCoordinator(Q(O)), await N(Q(D), Q(_e));
3448
+ let n = Fe(e);
3449
+ Q(D).setRootElement?.(e), W(j, "Reading started"), Q(D).speak(t, {
2572
3450
  catalogId: s() || void 0,
2573
- catalogContext: M(),
3451
+ catalogContext: Pe(),
2574
3452
  language: c(),
2575
3453
  contentElement: e
2576
3454
  }).catch((e) => {
2577
- console.error("[TTS Inline] Error:", e), H(O, "Unable to start reading"), Z(S) && Z(S).clearTTS(), N(n);
3455
+ console.error("[TTS Inline] Error:", e), W(j, "Unable to start reading"), Q(O) && Q(O).clearTTS(), Ie(n);
2578
3456
  }).finally(() => {
2579
- P() || N(n);
3457
+ Le() || Ie(n);
2580
3458
  });
2581
3459
  } catch (e) {
2582
- console.error("[TTS Inline] Error:", e), H(O, "Unable to start reading"), Z(S) && Z(S).clearTTS(), N();
3460
+ console.error("[TTS Inline] Error:", e), W(j, "Unable to start reading"), Q(O) && Q(O).clearTTS(), Ie();
2583
3461
  }
2584
3462
  }
2585
- async function Ne() {
2586
- if (Z(x)) {
2587
- if (he() && Z(D)) {
2588
- Z(x).resume(), H(O, "Reading resumed");
3463
+ async function L() {
3464
+ if (Q(D)) {
3465
+ if (Se() && Q(ae)) {
3466
+ Q(D).resume(), W(j, "Reading resumed");
2589
3467
  return;
2590
3468
  }
2591
- if (he() && Z(E) && !Z(D)) {
2592
- Z(x).pause(), H(O, "Reading paused");
3469
+ if (Se() && Q(A) && !Q(ae)) {
3470
+ Q(D).pause(), W(j, "Reading paused");
2593
3471
  return;
2594
3472
  }
2595
- if (!Z(ne)) {
2596
- H(ne, !0);
3473
+ if (!Q(ce)) {
3474
+ W(ce, !0);
2597
3475
  try {
2598
- if (H(O, "Initializing text-to-speech"), !await Te()) {
2599
- H(O, "Unable to initialize text-to-speech. Try again.");
3476
+ if (W(j, "Initializing text-to-speech"), !await I()) {
3477
+ W(j, "Unable to initialize text-to-speech. Try again.");
2600
3478
  return;
2601
3479
  }
2602
- let e = String(Z(x).getState?.() || "");
2603
- (e === "playing" || e === "paused" || e === "loading") && !he() && Z(x).stop(), _e(), await je();
3480
+ let e = String(Q(D).getState?.() || "");
3481
+ (e === "playing" || e === "paused" || e === "loading") && !Se() && Q(D).stop(), we(), await Re();
2604
3482
  } finally {
2605
- H(ne, !1);
3483
+ W(ce, !1);
2606
3484
  }
2607
3485
  }
2608
3486
  }
2609
3487
  }
2610
- function Pe() {
2611
- Z(x) && (Z(x).stop(), ve(), ye("Reading stopped"), Z(S) && Z(S).clearTTS(), N());
2612
- }
2613
- function Fe() {
2614
- if (!Z(g)) return [];
2615
- let e = Z(g).getRootNode();
2616
- return e instanceof ShadowRoot ? Array.from(e.querySelectorAll("[data-pie-tts-more-control]")) : [];
2617
- }
2618
- function Ie(e) {
2619
- let t = Fe().filter((e) => !e.disabled);
2620
- t.length && t[(e + t.length) % t.length].focus();
2621
- }
2622
- function Le() {
2623
- H(T, !0), queueMicrotask(() => {
2624
- Ie(0);
2625
- });
2626
- }
2627
- function Re() {
2628
- if (Z(T)) {
2629
- F();
2630
- return;
2631
- }
2632
- Le();
2633
- }
2634
- function F() {
2635
- H(T, !1);
2636
- }
2637
- function ze(e) {
2638
- let t = Fe().filter((e) => !e.disabled), n = t.findIndex((t) => t === e.target);
2639
- switch (e.key) {
2640
- case "ArrowDown":
2641
- case "ArrowRight":
2642
- e.preventDefault(), Ie(n + 1);
2643
- break;
2644
- case "ArrowUp":
2645
- case "ArrowLeft":
2646
- e.preventDefault(), Ie(n - 1);
2647
- break;
2648
- case "Home":
2649
- e.preventDefault(), Ie(0);
2650
- break;
2651
- case "End":
2652
- e.preventDefault(), Ie(t.length - 1);
2653
- break;
2654
- case "Escape": {
2655
- e.preventDefault(), F();
2656
- let t = Z(g)?.getRootNode();
2657
- if (!(t instanceof ShadowRoot)) return;
2658
- t.querySelector(".pie-tool-tts-inline__more-button")?.focus();
2659
- break;
2660
- }
2661
- }
3488
+ function ze() {
3489
+ Q(D) && (Q(D).stop(), Te(), Ee("Reading stopped"), Q(O) && Q(O).clearTTS(), Ie());
2662
3490
  }
2663
- async function I() {
2664
- if (!(!Z(x) || !Z(E))) try {
2665
- await Z(x).seekForward?.(1), H(O, "Skipped forward");
3491
+ async function He() {
3492
+ if (!(!Q(D) || !Q(A))) try {
3493
+ await Q(D).seekForward?.(1), W(j, "Skipped forward");
2666
3494
  } catch (e) {
2667
- console.error("[TTS Inline] Seek forward failed:", e), H(O, "Unable to skip forward");
3495
+ console.error("[TTS Inline] Seek forward failed:", e), W(j, "Unable to skip forward");
2668
3496
  }
2669
3497
  }
2670
- async function Be() {
2671
- if (!(!Z(x) || !Z(E))) try {
2672
- await Z(x).seekBackward?.(1), H(O, "Skipped backward");
3498
+ async function Ue() {
3499
+ if (!(!Q(D) || !Q(A))) try {
3500
+ await Q(D).seekBackward?.(1), W(j, "Skipped backward");
2673
3501
  } catch (e) {
2674
- console.error("[TTS Inline] Seek backward failed:", e), H(O, "Unable to skip backward");
3502
+ console.error("[TTS Inline] Seek backward failed:", e), W(j, "Unable to skip backward");
2675
3503
  }
2676
3504
  }
2677
- async function Ue(e) {
2678
- let t = Z(x);
3505
+ async function We(e) {
3506
+ let t = Q(D);
2679
3507
  if (!t) return;
2680
- if (Z(ue) === e.rate) {
2681
- H(O, `Playback speed ${e.label}`);
3508
+ if (Q(_e) === e.rate) {
3509
+ W(j, `Playback speed ${e.label}`);
2682
3510
  return;
2683
3511
  }
2684
- let n = Z(ee), r = Z(te);
2685
- H(ee, e.rate, !0), H(te, Z(oe), !0), H(O, `Playback speed ${e.label}`);
3512
+ let n = Q(M), r = Q(oe);
3513
+ W(M, e.rate, !0), W(oe, Q(fe), !0), W(j, `Playback speed ${e.label}`);
2686
3514
  try {
2687
- await Se(t, e.rate);
3515
+ await N(t, e.rate);
2688
3516
  } catch (e) {
2689
- console.error("[TTS Inline] Playback speed change failed:", e), H(ee, n, !0), H(te, r, !0), H(O, "Unable to change playback speed");
3517
+ console.error("[TTS Inline] Playback speed change failed:", e), W(M, n, !0), W(oe, r, !0), W(j, "Unable to change playback speed");
2690
3518
  }
2691
3519
  }
2692
- let We = /* @__PURE__ */ B(() => l() === "sm" ? "pie-tool-tts-inline__trigger--sm" : l() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), Ge = /* @__PURE__ */ B(() => f() === "reserved-row" || f() === "expanding-row"), Ke = /* @__PURE__ */ B(() => f() === "floating-overlay"), qe = /* @__PURE__ */ B(() => f() === "left-aligned"), Je = "[data-pie-tool-overlay-boundary]", Ye = "[data-pie-tool-overlay-protect]", Xe = /* @__PURE__ */ V(!1), L = /* @__PURE__ */ V(""), Ze = /* @__PURE__ */ V(0);
3520
+ let Ge = /* @__PURE__ */ H(() => l() === "sm" ? "pie-tool-tts-inline__trigger--sm" : l() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), Ke = /* @__PURE__ */ H(() => f() === "reserved-row" || f() === "expanding-row"), qe = /* @__PURE__ */ H(() => f() === "floating-overlay"), R = /* @__PURE__ */ H(() => f() === "left-aligned"), Je = "[data-pie-tool-overlay-boundary]", z = /* @__PURE__ */ U(""), Ye = /* @__PURE__ */ U(0);
2693
3521
  gn(() => {
2694
- let e = Z(x), t = Z(ue), n = Z(E) || Z(D);
2695
- if (!e || !n || !he()) return;
3522
+ let e = Q(D), t = Q(_e), n = Q(A) || Q(ae);
3523
+ if (!e || !n || !Se()) return;
2696
3524
  let r = !1;
2697
3525
  return queueMicrotask(() => {
2698
- r || Se(e, t);
3526
+ r || N(e, t);
2699
3527
  }), () => {
2700
3528
  r = !0;
2701
3529
  };
2702
3530
  });
2703
- function Qe(e, t) {
3531
+ function Xe(e, t) {
2704
3532
  let n = e;
2705
3533
  for (; n;) {
2706
3534
  if (n.matches?.(t)) return n;
@@ -2708,56 +3536,56 @@ function Ci(a, o) {
2708
3536
  }
2709
3537
  return null;
2710
3538
  }
2711
- function $e() {
2712
- let e = Z(g)?.getRootNode();
3539
+ function Ze() {
3540
+ let e = Q(w)?.getRootNode();
2713
3541
  return e instanceof ShadowRoot ? e.querySelector(".pie-tool-tts-inline__trigger") : null;
2714
3542
  }
2715
- function et(e) {
3543
+ function Qe(e) {
2716
3544
  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");
2717
3545
  return i.length ? i.reduce((e, t) => e + t.offsetWidth, 0) + (i.length - 1) * n + r : 0;
2718
3546
  }
2719
- function tt() {
2720
- let e = $e();
2721
- if (!e || !Z(_)) return;
2722
- let t = e.getBoundingClientRect(), n = Qe(e, Je), r = n?.getBoundingClientRect().left ?? 0, i = n?.querySelector(Ye), a = i ? i.getBoundingClientRect().right + 8 : r, o = Math.max(0, t.left - a - 16);
2723
- if (!Z(Xe)) {
2724
- let e = et(Z(_));
2725
- e > 0 && H(Ze, e, !0);
3547
+ function $e() {
3548
+ let e = Ze();
3549
+ if (!e || !Q(T)) return;
3550
+ let t = e.getBoundingClientRect(), n = Xe(e, Je)?.getBoundingClientRect().left ?? 0, r = Math.max(0, t.left - n - 16);
3551
+ if (!Q(ie)) {
3552
+ let e = Qe(Q(T));
3553
+ e > 0 && W(Ye, e, !0);
2726
3554
  }
2727
- H(Xe, Z(Ze) > 0 && o < Z(Ze), !0);
2728
- let s = Z(_).offsetHeight || t.height;
2729
- H(L, `top: ${Math.max(8, Math.min(window.innerHeight - 8 - s, t.top + t.height / 2 - s / 2))}px; right: ${window.innerWidth - t.left + 8}px; left: auto; max-width: min(${o}px, var(--pie-tts-left-aligned-panel-width, ${o}px));`);
3555
+ W(ie, Q(Ye) > 0 && r < Q(Ye), !0);
3556
+ let i = Q(T).offsetHeight || t.height;
3557
+ W(z, `top: ${Q(ie) ? t.top : t.top + t.height / 2 - i / 2}px; right: ${window.innerWidth - t.left + 8}px; left: auto; max-width: min(${r}px, var(--pie-tts-left-aligned-panel-width, ${r}px));`);
2730
3558
  }
2731
3559
  gn(() => {
2732
- if (!Z(qe) || !Z(w)) {
2733
- H(L, ""), H(Xe, !1), H(Ze, 0);
3560
+ if (!Q(R) || !Q(k)) {
3561
+ W(z, ""), W(ie, !1), W(Ye, 0);
2734
3562
  return;
2735
3563
  }
2736
3564
  if (typeof window > "u") return;
2737
3565
  let e = 0, t = () => {
2738
3566
  e ||= window.requestAnimationFrame(() => {
2739
- e = 0, tt();
3567
+ e = 0, $e();
2740
3568
  });
2741
3569
  };
2742
- tt(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
2743
- let n = $e(), r = new ResizeObserver(t);
2744
- n && r.observe(n), Z(_) && r.observe(Z(_));
2745
- let i = n ? Qe(n, Je) : null;
3570
+ $e(), window.addEventListener("resize", t), window.addEventListener("scroll", t, !0);
3571
+ let n = Ze(), r = new ResizeObserver(t);
3572
+ n && r.observe(n), Q(T) && r.observe(Q(T));
3573
+ let i = n ? Xe(n, Je) : null;
2746
3574
  i && r.observe(i);
2747
- let a = i?.querySelector(Ye);
3575
+ let a = i?.querySelector("[data-pie-tool-overlay-protect]");
2748
3576
  return a && r.observe(a), () => {
2749
3577
  e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0), r.disconnect();
2750
3578
  };
2751
3579
  });
2752
- function nt() {
2753
- if (!Z(g)) return null;
2754
- let e = Z(g).getRootNode();
3580
+ function et() {
3581
+ if (!Q(w)) return null;
3582
+ let e = Q(w).getRootNode();
2755
3583
  return e instanceof ShadowRoot ? e.host : null;
2756
3584
  }
2757
3585
  gn(() => {
2758
- let e = nt();
3586
+ let e = et();
2759
3587
  if (!e) return;
2760
- let t = Z(w) === !0;
3588
+ let t = Q(k) === !0;
2761
3589
  e.setAttribute("data-active", t ? "true" : "false");
2762
3590
  let n = !1;
2763
3591
  return queueMicrotask(() => {
@@ -2769,135 +3597,104 @@ function Ci(a, o) {
2769
3597
  }), () => {
2770
3598
  n = !0;
2771
3599
  };
2772
- }), gn(() => {
2773
- Z(w) || H(T, !1);
2774
3600
  });
2775
- var rt = {
3601
+ var tt = {
2776
3602
  get catalogId() {
2777
3603
  return s();
2778
3604
  },
2779
3605
  set catalogId(e = "") {
2780
- s(e), mt();
3606
+ s(e), ft();
2781
3607
  },
2782
3608
  get language() {
2783
3609
  return c();
2784
3610
  },
2785
3611
  set language(e = "en-US") {
2786
- c(e), mt();
3612
+ c(e), ft();
2787
3613
  },
2788
3614
  get size() {
2789
3615
  return l();
2790
3616
  },
2791
3617
  set size(e = "md") {
2792
- l(e), mt();
3618
+ l(e), ft();
2793
3619
  },
2794
3620
  get speedOptions() {
2795
3621
  return u();
2796
3622
  },
2797
3623
  set speedOptions(e = void 0) {
2798
- u(e), mt();
3624
+ u(e), ft();
2799
3625
  },
2800
3626
  get showSingleSpeedOption() {
2801
3627
  return d();
2802
3628
  },
2803
3629
  set showSingleSpeedOption(e = !1) {
2804
- d(e), mt();
3630
+ d(e), ft();
2805
3631
  },
2806
3632
  get layoutMode() {
2807
3633
  return f();
2808
3634
  },
2809
3635
  set layoutMode(e = "expanding-row") {
2810
- f(e), mt();
3636
+ f(e), ft();
2811
3637
  }
2812
- }, it = Sr(), R = rn(it), at = (e) => {
2813
- var t = xi();
3638
+ }, nt = xr(), B = rn(nt), rt = (e) => {
3639
+ var t = La();
2814
3640
  let n;
2815
3641
  {
2816
3642
  let e = (e) => {
2817
- var t = hi();
2818
- let n;
2819
- var r = nn(t), i = (e) => {
2820
- Q(e, pi());
2821
- }, a = (e) => {
2822
- Q(e, mi());
2823
- };
2824
- Nr(r, (e) => {
2825
- Z(E) && !Z(D) ? e(i) : e(a, -1);
2826
- }), Me(t), Cn(() => {
2827
- n = Yr(t, 1, `pie-tool-tts-inline__trigger ${Z(We) ?? ""}`, "svelte-18mzc0g", n, { "pie-tool-tts-inline__trigger--active": Z(w) }), $(t, "aria-label", Z(E) && !Z(D) ? "Pause reading" : Z(D) ? "Resume reading" : "Play reading"), $(t, "aria-expanded", Z(w)), $(t, "aria-controls", Z(w) ? fe : void 0), t.disabled = !Z(x) || Z(ne);
2828
- }), dr("click", t, Ne), Q(e, t);
3643
+ var t = Na();
3644
+ ri(t, "type", "circle"), ri(t, "size", "small"), ri(t, "variant", "tertiary"), Cn(() => ri(t, "icon-name", Q(A) && !Q(ae) ? "pause" : "play")), Cn(() => ri(t, "button-aria-label", Q(A) && !Q(ae) ? "Pause reading" : Q(ae) ? "Resume reading" : "Play reading")), Cn(() => ri(t, "disabled", !Q(D) || Q(ce))), Wr(t, (e) => S?.(e)), Wr(t, (e, t) => C?.(e, t), () => ({
3645
+ "aria-expanded": Q(k) ? "true" : "false",
3646
+ "aria-controls": Q(k) ? be : null,
3647
+ "aria-pressed": Q(k) ? "true" : "false"
3648
+ })), Cn(() => Xr(t, 1, `pie-tool-tts-inline__trigger ${Q(Ge) ?? ""}`, "svelte-18mzc0g")), fr("click", t, L), Sr(e, t);
2829
3649
  }, n = (e) => {
2830
- var t = Sr(), n = rn(t), r = (e) => {
2831
- var t = vi();
3650
+ var t = xr(), n = rn(t), r = (e) => {
3651
+ var t = Ia();
2832
3652
  let n;
2833
3653
  var r = nn(t), i = (e) => {
2834
- var t = _i();
2835
- Lr(t, 23, () => Z(se), (e) => e.rate, (e, t, n) => {
2836
- var r = gi(), i = nn(r), a = nn(i, !0);
2837
- Me(i), Me(r), Cn(() => {
2838
- $(r, "tabindex", Z(le) === Z(n) ? 0 : -1), $(r, "aria-label", Z(t).ariaLabel), $(r, "aria-checked", Z(ue) === Z(t).rate), r.disabled = !Z(x), Tr(a, Z(t).label);
2839
- }), dr("click", r, () => Ue(Z(t))), ur("focus", r, () => H(k, Z(n), !0)), Q(e, r);
2840
- }), Me(t), Q(e, t);
3654
+ var t = Fa();
3655
+ let n;
3656
+ Lr(t, 23, () => Q(pe), (e) => e.rate, (e, t, n) => {
3657
+ var r = Pa(), i = nn(r), a = nn(i, !0);
3658
+ Ae(i), Ae(r), Cn(() => {
3659
+ ni(r, "tabindex", Q(ge) === Q(n) ? 0 : -1), ni(r, "aria-label", Q(t).ariaLabel), ni(r, "aria-checked", Q(_e) === Q(t).rate), r.disabled = !Q(D), ni(i, "data-label", Q(t).label), Tr(a, Q(t).label);
3660
+ }), fr("click", r, () => We(Q(t))), dr("focus", r, () => W(se, Q(n), !0)), Sr(e, r);
3661
+ }), Ae(t), Cn(() => n = Xr(t, 1, "pie-tool-tts-inline__speed-group svelte-18mzc0g", null, n, { "pie-tool-tts-inline__speed-group--stacked": Q(ie) })), Sr(e, t);
2841
3662
  };
2842
3663
  Nr(r, (e) => {
2843
- Z(se).length > 0 && e(i);
3664
+ Q(pe).length > 0 && e(i);
2844
3665
  });
2845
3666
  var a = an(r, 2), o = an(a, 2), s = an(o, 2);
2846
- Me(t), ai(t, (e) => H(_, e), () => Z(_)), Cn(() => {
2847
- $(t, "id", fe), n = Yr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
2848
- "pie-tool-tts-inline__panel--floating": Z(Ke),
2849
- "pie-tool-tts-inline__panel--row": Z(Ge),
2850
- "pie-tool-tts-inline__panel--left-aligned-inline": Z(qe),
2851
- "pie-tool-tts-inline__panel--compact": Z(qe) && Z(Xe)
2852
- }), Zr(t, Z(qe) ? Z(L) : ""), $(a, "tabindex", Z(le) === Z(A) ? 0 : -1), a.disabled = !Z(x) || !Z(E), $(o, "tabindex", Z(le) === Z(A) + 1 ? 0 : -1), o.disabled = !Z(x) || !Z(E), $(s, "tabindex", Z(le) === Z(A) + 2 ? 0 : -1), s.disabled = !Z(x) || !Z(E) && !Z(D);
2853
- }), dr("keydown", t, Oe), dr("click", a, Be), ur("focus", a, () => H(k, Z(A), !0)), dr("click", o, I), ur("focus", o, () => H(k, Z(A) + 1)), dr("click", s, Pe), ur("focus", s, () => H(k, Z(A) + 2)), Q(e, t);
2854
- };
2855
- Nr(n, (e) => {
2856
- Z(w) && e(r);
2857
- }), Q(e, t);
2858
- }, c = (e) => {
2859
- var t = Sr(), n = rn(t), r = (e) => {
2860
- var t = bi(), n = nn(t), r = an(n, 2), i = (e) => {
2861
- var t = yi(), n = nn(t), r = an(n, 2), i = an(r, 2);
2862
- Me(t), Cn(() => {
2863
- $(t, "id", pe), n.disabled = !Z(x) || !Z(E), r.disabled = !Z(x) || !Z(E), i.disabled = !Z(x) || !Z(E) && !Z(D);
2864
- }), dr("keydown", t, ze), dr("click", n, () => {
2865
- F(), Be();
2866
- }), dr("click", r, () => {
2867
- F(), I();
2868
- }), dr("click", i, () => {
2869
- F(), Pe();
2870
- }), Q(e, t);
2871
- };
2872
- Nr(r, (e) => {
2873
- Z(T) && e(i);
2874
- }), Me(t), Cn(() => {
2875
- $(n, "aria-expanded", Z(T)), $(n, "aria-controls", Z(T) ? pe : void 0);
2876
- }), dr("click", n, Re), Q(e, t);
3667
+ Ae(t), ci(t, (e) => W(T, e), () => Q(T)), Cn(() => {
3668
+ ni(t, "id", be), n = Xr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
3669
+ "pie-tool-tts-inline__panel--floating": Q(qe),
3670
+ "pie-tool-tts-inline__panel--row": Q(Ke),
3671
+ "pie-tool-tts-inline__panel--left-aligned-inline": Q(R),
3672
+ "pie-tool-tts-inline__panel--compact": Q(R) && Q(ie)
3673
+ }), Qr(t, Q(R) ? Q(z) : ""), ni(a, "tabindex", Q(ge) === Q(me) ? 0 : -1), a.disabled = !Q(D) || !Q(A), ni(o, "tabindex", Q(ge) === Q(me) + 1 ? 0 : -1), o.disabled = !Q(D) || !Q(A), ni(s, "tabindex", Q(ge) === Q(me) + 2 ? 0 : -1), s.disabled = !Q(D) || !Q(A) && !Q(ae);
3674
+ }), fr("keydown", t, Me), fr("click", a, Ue), dr("focus", a, () => W(se, Q(me), !0)), fr("click", o, He), dr("focus", o, () => W(se, Q(me) + 1)), fr("click", s, ze), dr("focus", s, () => W(se, Q(me) + 2)), Sr(e, t);
2877
3675
  };
2878
3676
  Nr(n, (e) => {
2879
- Z(qe) && Z(w) && Z(Xe) && e(r);
2880
- }), Q(e, t);
3677
+ Q(k) && e(r);
3678
+ }), Sr(e, t);
2881
3679
  };
2882
3680
  var r = nn(t);
2883
3681
  e(r);
2884
3682
  var i = an(r, 2);
2885
3683
  n(i);
2886
- var a = an(i, 2);
2887
- c(a);
2888
- var o = an(a, 2), s = nn(o, !0);
2889
- Me(o), Me(t), ai(t, (e) => H(g, e), () => Z(g)), Cn(() => Tr(s, Z(O)));
2890
- }
2891
- Cn(() => n = Yr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
2892
- "pie-tool-tts-inline--controls-row": Z(Ge),
2893
- "pie-tool-tts-inline--floating": Z(Ke)
2894
- })), Q(e, t);
3684
+ var a = an(i, 2), o = nn(a, !0);
3685
+ Ae(a), Ae(t), ci(t, (e) => W(w, e), () => Q(w)), Cn(() => Tr(o, Q(j)));
3686
+ }
3687
+ Cn(() => n = Xr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
3688
+ "pie-tool-tts-inline--controls-row": Q(Ke),
3689
+ "pie-tool-tts-inline--floating": Q(qe),
3690
+ "pie-tool-tts-inline--left-aligned": Q(R)
3691
+ })), Sr(e, t);
2895
3692
  };
2896
- return Nr(R, (e) => {
2897
- p && e(at);
2898
- }), Q(a, it), He(rt);
3693
+ return Nr(B, (e) => {
3694
+ p && e(rt);
3695
+ }), Sr(a, nt), Ve(tt);
2899
3696
  }
2900
- fr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", fi(Ci, {
3697
+ pr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", hi(za, {
2901
3698
  catalogId: {
2902
3699
  attribute: "catalog-id",
2903
3700
  type: "String"
@@ -2924,4 +3721,4 @@ fr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", fi(Ci, {
2924
3721
  }
2925
3722
  }, [], [], { mode: "open" }));
2926
3723
  //#endregion
2927
- export { Ci as default };
3724
+ export { za as default };