@pie-players/pie-section-player-tools-tts-settings 0.3.37 → 0.3.38

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.
@@ -29,10 +29,10 @@ var vt = new class extends Error {
29
29
  function mo(e) {
30
30
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
31
31
  }
32
- function Mc() {
32
+ function Pc() {
33
33
  throw new Error("https://svelte.dev/e/async_derived_orphan");
34
34
  }
35
- function Pc(e, t, r) {
35
+ function Mc(e, t, r) {
36
36
  throw new Error("https://svelte.dev/e/each_key_duplicate");
37
37
  }
38
38
  function xc(e) {
@@ -252,9 +252,9 @@ function H(e, t, r) {
252
252
  return e.set(Q(e, t), r), r;
253
253
  }
254
254
  var da, et = /* @__PURE__ */ new Set(), z = null, ji = null, ge = null, Xn = null, Yr = !1, zn = !1, wr = null, Vi = null, fa = 0;
255
- var Jc = 1, zi = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), Ei = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakSet(), ir = class va {
255
+ var Jc = 1, zi = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Ei = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakSet(), ir = class va {
256
256
  constructor() {
257
- _o(this, we), x(this, "id", Jc++), x(this, "current", /* @__PURE__ */ new Map()), x(this, "previous", /* @__PURE__ */ new Map()), B(this, zi, /* @__PURE__ */ new Set()), B(this, yi, /* @__PURE__ */ new Set()), B(this, Vr, /* @__PURE__ */ new Set()), B(this, Bt, /* @__PURE__ */ new Map()), B(this, Pt, /* @__PURE__ */ new Map()), B(this, Ei, null), B(this, Be, []), B(this, Qn, []), B(this, Tr, /* @__PURE__ */ new Set()), B(this, Yt, /* @__PURE__ */ new Set()), B(this, xt, /* @__PURE__ */ new Map()), B(this, Ii, /* @__PURE__ */ new Set()), x(this, "is_fork", !1), B(this, bi, !1), B(this, mr, /* @__PURE__ */ new Set());
257
+ _o(this, we), x(this, "id", Jc++), x(this, "current", /* @__PURE__ */ new Map()), x(this, "previous", /* @__PURE__ */ new Map()), B(this, zi, /* @__PURE__ */ new Set()), B(this, yi, /* @__PURE__ */ new Set()), B(this, Vr, /* @__PURE__ */ new Set()), B(this, Bt, /* @__PURE__ */ new Map()), B(this, Mt, /* @__PURE__ */ new Map()), B(this, Ei, null), B(this, Be, []), B(this, Qn, []), B(this, Tr, /* @__PURE__ */ new Set()), B(this, Yt, /* @__PURE__ */ new Set()), B(this, xt, /* @__PURE__ */ new Map()), B(this, Ii, /* @__PURE__ */ new Set()), x(this, "is_fork", !1), B(this, bi, !1), B(this, mr, /* @__PURE__ */ new Set());
258
258
  }
259
259
  skip_effect(t) {
260
260
  p(xt, this).has(t) || p(xt, this).set(t, {
@@ -300,15 +300,15 @@ var Jc = 1, zi = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap
300
300
  increment(t, r) {
301
301
  let i = p(Bt, this).get(r) ?? 0;
302
302
  if (p(Bt, this).set(r, i + 1), t) {
303
- let n = p(Pt, this).get(r) ?? 0;
304
- p(Pt, this).set(r, n + 1);
303
+ let n = p(Mt, this).get(r) ?? 0;
304
+ p(Mt, this).set(r, n + 1);
305
305
  }
306
306
  }
307
307
  decrement(t, r, i) {
308
308
  let n = p(Bt, this).get(r) ?? 0;
309
309
  if (n === 1 ? p(Bt, this).delete(r) : p(Bt, this).set(r, n - 1), t) {
310
- let o = p(Pt, this).get(r) ?? 0;
311
- o === 1 ? p(Pt, this).delete(r) : p(Pt, this).set(r, o - 1);
310
+ let o = p(Mt, this).get(r) ?? 0;
311
+ o === 1 ? p(Mt, this).delete(r) : p(Mt, this).set(r, o - 1);
312
312
  }
313
313
  p(bi, this) || i || (H(bi, this, !0), rt(() => {
314
314
  H(bi, this, !1), this.flush();
@@ -380,10 +380,10 @@ var Jc = 1, zi = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap
380
380
  };
381
381
  da = ir;
382
382
  function Zn() {
383
- return this.is_fork || p(Pt, this).size > 0;
383
+ return this.is_fork || p(Mt, this).size > 0;
384
384
  }
385
385
  function Xc() {
386
- for (const r of p(mr, this)) for (const i of p(Pt, r).keys()) {
386
+ for (const r of p(mr, this)) for (const i of p(Mt, r).keys()) {
387
387
  for (var e = !1, t = i; t.parent !== null; ) {
388
388
  if (p(xt, this).has(t)) {
389
389
  e = !0;
@@ -584,9 +584,9 @@ var tu = qi | Ar;
584
584
  function ru(e, t, r, i) {
585
585
  new iu(e, t, r, i);
586
586
  }
587
- var He = /* @__PURE__ */ new WeakMap(), to = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), ro = /* @__PURE__ */ new WeakMap(), io = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakSet(), iu = class {
587
+ var He = /* @__PURE__ */ new WeakMap(), to = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), ro = /* @__PURE__ */ new WeakMap(), io = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakSet(), iu = class {
588
588
  constructor(e, t, r, i) {
589
- _o(this, he), x(this, "parent", void 0), x(this, "is_pending", !1), x(this, "transform_error", void 0), B(this, He, void 0), B(this, to, N ? Y : null), B(this, Ze, void 0), B(this, Zr, void 0), B(this, xe, void 0), B(this, tt, null), B(this, $e, null), B(this, We, null), B(this, Jt, null), B(this, dr, 0), B(this, Xt, 0), B(this, wi, !1), B(this, ro, /* @__PURE__ */ new Set()), B(this, io, /* @__PURE__ */ new Set()), B(this, Ft, null), B(this, Ms, eu(() => (H(Ft, this, tr(p(dr, this))), () => {
589
+ _o(this, he), x(this, "parent", void 0), x(this, "is_pending", !1), x(this, "transform_error", void 0), B(this, He, void 0), B(this, to, N ? Y : null), B(this, Ze, void 0), B(this, Zr, void 0), B(this, xe, void 0), B(this, tt, null), B(this, $e, null), B(this, We, null), B(this, Jt, null), B(this, dr, 0), B(this, Xt, 0), B(this, wi, !1), B(this, ro, /* @__PURE__ */ new Set()), B(this, io, /* @__PURE__ */ new Set()), B(this, Ft, null), B(this, Ps, eu(() => (H(Ft, this, tr(p(dr, this))), () => {
590
590
  H(Ft, this, null);
591
591
  }))), H(He, this, e), H(Ze, this, t), H(Zr, this, (n) => {
592
592
  var o = G;
@@ -618,13 +618,13 @@ var He = /* @__PURE__ */ new WeakMap(), to = /* @__PURE__ */ new WeakMap(), Ze =
618
618
  }));
619
619
  }
620
620
  get_effect_pending() {
621
- return p(Ms, this).call(this), s(p(Ft, this));
621
+ return p(Ps, this).call(this), s(p(Ft, this));
622
622
  }
623
623
  error(e) {
624
624
  if (!p(Ze, this).onerror && !p(Ze, this).failed) throw e;
625
625
  z?.is_fork ? (p(tt, this) && z.skip_effect(p(tt, this)), p($e, this) && z.skip_effect(p($e, this)), p(We, this) && z.skip_effect(p(We, this)), z.on_fork_commit(() => {
626
- Q(he, this, Ps).call(this, e);
627
- })) : Q(he, this, Ps).call(this, e);
626
+ Q(he, this, Ms).call(this, e);
627
+ })) : Q(he, this, Ms).call(this, e);
628
628
  }
629
629
  };
630
630
  function nu() {
@@ -656,7 +656,7 @@ function _a() {
656
656
  p(Zr, this).call(this, p(He, this));
657
657
  })), p(Xt, this) > 0) {
658
658
  var e = H(Jt, this, document.createDocumentFragment());
659
- Po(p(tt, this), e);
659
+ Mo(p(tt, this), e);
660
660
  const t = p(Ze, this).pending;
661
661
  H($e, this, ke(() => t(p(He, this))));
662
662
  } else Q(he, this, To).call(this, z);
@@ -690,7 +690,7 @@ function ya(e, t) {
690
690
  H($e, this, null);
691
691
  }), p(Jt, this) && (p(He, this).before(p(Jt, this)), H(Jt, this, null)));
692
692
  }
693
- function Ps(e) {
693
+ function Ms(e) {
694
694
  p(tt, this) && (ue(p(tt, this)), H(tt, this, null)), p($e, this) && (ue(p($e, this)), H($e, this, null)), p(We, this) && (ue(p(We, this)), H(We, this, null)), N && (ce(p(to, this)), ea(), ce(Ni()));
695
695
  var t = p(Ze, this).onerror;
696
696
  let r = p(Ze, this).failed;
@@ -799,7 +799,7 @@ function Ji(e) {
799
799
  // @__NO_SIDE_EFFECTS__
800
800
  function lu(e, t, r) {
801
801
  let i = G;
802
- i === null && Mc();
802
+ i === null && Pc();
803
803
  var n = void 0, o = tr(se), l = !J, c = /* @__PURE__ */ new Map();
804
804
  return ku(() => {
805
805
  var d = G, h = Qs();
@@ -932,7 +932,7 @@ function kr(e, t, r = null) {
932
932
  const n = e;
933
933
  (e.f & 2048) !== 0 && So(n), ge === null && go(n);
934
934
  }
935
- e.wv = Fa(), Ea(e, Ge, r), ni() && G !== null && (G.f & 1024) !== 0 && (G.f & 96) === 0 && (Pe === null ? Iu([e]) : Pe.push(e)), !i.is_fork && oo.size > 0 && !Sa && du();
935
+ e.wv = Fa(), Ea(e, Ge, r), ni() && G !== null && (G.f & 1024) !== 0 && (G.f & 96) === 0 && (Me === null ? Iu([e]) : Me.push(e)), !i.is_fork && oo.size > 0 && !Sa && du();
936
936
  }
937
937
  return t;
938
938
  }
@@ -1053,8 +1053,8 @@ function Oe(e) {
1053
1053
  var D = c(() => Oe(b));
1054
1054
  y(E, D);
1055
1055
  }
1056
- var M = Reflect.getOwnPropertyDescriptor(_, m);
1057
- if (M?.set && M.set.call(k, b), !w) {
1056
+ var P = Reflect.getOwnPropertyDescriptor(_, m);
1057
+ if (P?.set && P.set.call(k, b), !w) {
1058
1058
  if (i && typeof m == "string") {
1059
1059
  var U = r.get("length"), q = Number(m);
1060
1060
  Number.isInteger(q) && q >= U.v && y(U, q + 1);
@@ -1090,12 +1090,12 @@ function xs(e) {
1090
1090
  function pu(e, t) {
1091
1091
  return Object.is(xs(e), xs(t));
1092
1092
  }
1093
- var Os, hu, Ia, $a, Ma;
1093
+ var Os, hu, Ia, $a, Pa;
1094
1094
  function so() {
1095
1095
  if (Os === void 0) {
1096
1096
  Os = window, hu = document, Ia = /Firefox/.test(navigator.userAgent);
1097
1097
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1098
- $a = qt(t, "firstChild").get, Ma = qt(t, "nextSibling").get, Ss(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Ss(r) && (r.__t = void 0);
1098
+ $a = qt(t, "firstChild").get, Pa = qt(t, "nextSibling").get, Ss(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Ss(r) && (r.__t = void 0);
1099
1099
  }
1100
1100
  }
1101
1101
  function _e(e = "") {
@@ -1107,7 +1107,7 @@ function ht(e) {
1107
1107
  }
1108
1108
  // @__NO_SIDE_EFFECTS__
1109
1109
  function nt(e) {
1110
- return Ma.call(e);
1110
+ return Pa.call(e);
1111
1111
  }
1112
1112
  function $(e, t) {
1113
1113
  if (!N) return /* @__PURE__ */ ht(e);
@@ -1150,7 +1150,7 @@ function A(e, t = 1, r = !1) {
1150
1150
  function Ao(e) {
1151
1151
  e.textContent = "";
1152
1152
  }
1153
- function Pa() {
1153
+ function Ma() {
1154
1154
  return !Re || Qe !== null ? !1 : (G.f & ho) !== 0;
1155
1155
  }
1156
1156
  function Xi(e, t, r) {
@@ -1375,7 +1375,7 @@ function ja(e, t, r) {
1375
1375
  }
1376
1376
  }
1377
1377
  }
1378
- function Mo(e) {
1378
+ function Po(e) {
1379
1379
  Va(e, !0);
1380
1380
  }
1381
1381
  function Va(e, t) {
@@ -1390,14 +1390,14 @@ function Va(e, t) {
1390
1390
  for (const l of o) (l.is_global || t) && l.in();
1391
1391
  }
1392
1392
  }
1393
- function Po(e, t) {
1393
+ function Mo(e, t) {
1394
1394
  if (e.nodes)
1395
1395
  for (var r = e.nodes.start, i = e.nodes.end; r !== null; ) {
1396
1396
  var n = r === i ? null : /* @__PURE__ */ nt(r);
1397
1397
  t.append(r), r = n;
1398
1398
  }
1399
1399
  }
1400
- var Eu = null, Mi = !1, mt = !1;
1400
+ var Eu = null, Pi = !1, mt = !1;
1401
1401
  function Cs(e) {
1402
1402
  mt = e;
1403
1403
  }
@@ -1413,9 +1413,9 @@ var Le = null;
1413
1413
  function za(e) {
1414
1414
  J !== null && (!Re || (J.f & 2) !== 0) && (Le === null ? Le = [e] : Le.push(e));
1415
1415
  }
1416
- var Te = null, Ee = 0, Pe = null;
1416
+ var Te = null, Ee = 0, Me = null;
1417
1417
  function Iu(e) {
1418
- Pe = e;
1418
+ Me = e;
1419
1419
  }
1420
1420
  var Da = 1, Gt = 0, Zt = Gt;
1421
1421
  function Rs(e) {
@@ -1445,8 +1445,8 @@ function Wa(e, t, r = !0) {
1445
1445
  }
1446
1446
  }
1447
1447
  function Ba(e) {
1448
- var t = Te, r = Ee, i = Pe, n = J, o = Le, l = re, c = Ue, d = Zt, h = e.f;
1449
- Te = null, Ee = 0, Pe = null, J = (h & 96) === 0 ? e : null, Le = null, br(e.ctx), Ue = !1, Zt = ++Gt, e.ac !== null && (Zi(() => {
1448
+ var t = Te, r = Ee, i = Me, n = J, o = Le, l = re, c = Ue, d = Zt, h = e.f;
1449
+ Te = null, Ee = 0, Me = null, J = (h & 96) === 0 ? e : null, Le = null, br(e.ctx), Ue = !1, Zt = ++Gt, e.ac !== null && (Zi(() => {
1450
1450
  e.ac.abort(vt);
1451
1451
  }), e.ac = null);
1452
1452
  try {
@@ -1464,17 +1464,17 @@ function Ba(e) {
1464
1464
  ((E = m[k]).reactions ?? (E.reactions = [])).push(e);
1465
1465
  }
1466
1466
  } else !b && m !== null && Ee < m.length && (ei(e, Ee), m.length = Ee);
1467
- if (ni() && Pe !== null && !Ue && m !== null && (e.f & 6146) === 0) for (k = 0; k < Pe.length; k++) Wa(Pe[k], e);
1467
+ if (ni() && Me !== null && !Ue && m !== null && (e.f & 6146) === 0) for (k = 0; k < Me.length; k++) Wa(Me[k], e);
1468
1468
  if (n !== null && n !== e) {
1469
1469
  if (Gt++, n.deps !== null) for (let w = 0; w < r; w += 1) n.deps[w].rv = Gt;
1470
1470
  if (t !== null) for (const w of t) w.rv = Gt;
1471
- Pe !== null && (i === null ? i = Pe : i.push(...Pe));
1471
+ Me !== null && (i === null ? i = Me : i.push(...Me));
1472
1472
  }
1473
1473
  return (e.f & 8388608) !== 0 && (e.f ^= Ri), _;
1474
1474
  } catch (w) {
1475
1475
  return aa(w);
1476
1476
  } finally {
1477
- e.f ^= Es, Te = t, Ee = r, Pe = i, J = n, Le = o, br(l), Ue = c, Zt = d;
1477
+ e.f ^= Es, Te = t, Ee = r, Me = i, J = n, Le = o, br(l), Ue = c, Zt = d;
1478
1478
  }
1479
1479
  }
1480
1480
  function $u(e, t) {
@@ -1500,8 +1500,8 @@ function Sr(e) {
1500
1500
  var t = e.f;
1501
1501
  if ((t & 16384) === 0) {
1502
1502
  ne(e, Ce);
1503
- var r = G, i = Mi;
1504
- if (G = e, Mi = !0, 0)
1503
+ var r = G, i = Pi;
1504
+ if (G = e, Pi = !0, 0)
1505
1505
  var n, o;
1506
1506
  try {
1507
1507
  (t & 16777232) !== 0 ? Su(e) : $o(e), Ra(e);
@@ -1509,11 +1509,11 @@ function Sr(e) {
1509
1509
  if (e.teardown = typeof l == "function" ? l : null, e.wv = Da, 0)
1510
1510
  for (var c of e.deps) ;
1511
1511
  } finally {
1512
- Mi = i, G = r;
1512
+ Pi = i, G = r;
1513
1513
  }
1514
1514
  }
1515
1515
  }
1516
- async function Mu() {
1516
+ async function Pu() {
1517
1517
  if (Re) return new Promise((e) => {
1518
1518
  requestAnimationFrame(() => e()), setTimeout(() => e());
1519
1519
  });
@@ -1547,7 +1547,7 @@ function s(e) {
1547
1547
  var h = d.v;
1548
1548
  return ((d.f & 1024) === 0 && d.reactions !== null || Ha(d)) && (h = So(d)), Qt.set(d, h), h;
1549
1549
  }
1550
- var v = (d.f & 512) === 0 && !Ue && J !== null && (Mi || (J.f & 512) !== 0), _ = (d.f & ho) === 0;
1550
+ var v = (d.f & 512) === 0 && !Ue && J !== null && (Pi || (J.f & 512) !== 0), _ = (d.f & ho) === 0;
1551
1551
  si(d) && (v && (d.f |= 512), Ta(d)), v && !_ && (ka(d), Ua(d));
1552
1552
  }
1553
1553
  if (ge?.has(e)) return ge.get(e);
@@ -1575,7 +1575,7 @@ function or(e) {
1575
1575
  }
1576
1576
  }
1577
1577
  var hr = /* @__PURE__ */ Symbol("events"), Ga = /* @__PURE__ */ new Set(), ao = /* @__PURE__ */ new Set();
1578
- function Pu(e, t, r, i = {}) {
1578
+ function Mu(e, t, r, i = {}) {
1579
1579
  function n(o) {
1580
1580
  if (i.capture || lo.call(t, o), !o.cancelBubble) return Zi(() => r?.call(this, o));
1581
1581
  }
@@ -1898,7 +1898,7 @@ var ft = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), De =
1898
1898
  if (p(ft, this).has(r)) {
1899
1899
  var i = p(ft, this).get(r), n = p(Et, this).get(i);
1900
1900
  if (n)
1901
- Mo(n), p(zr, this).delete(i);
1901
+ Po(n), p(zr, this).delete(i);
1902
1902
  else {
1903
1903
  var o = p(De, this).get(i);
1904
1904
  o && (p(Et, this).set(i, o.effect), p(De, this).delete(i), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), n = o.effect);
@@ -1913,7 +1913,7 @@ var ft = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), De =
1913
1913
  const d = () => {
1914
1914
  if (Array.from(p(ft, this).values()).includes(l)) {
1915
1915
  var h = document.createDocumentFragment();
1916
- Po(c, h), h.append(_e()), p(De, this).set(l, {
1916
+ Mo(c, h), h.append(_e()), p(De, this).set(l, {
1917
1917
  effect: c,
1918
1918
  fragment: h
1919
1919
  });
@@ -1930,7 +1930,7 @@ var ft = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), De =
1930
1930
  }), this.anchor = e, H(Dn, this, t);
1931
1931
  }
1932
1932
  ensure(e, t) {
1933
- var r = z, i = Pa();
1933
+ var r = z, i = Ma();
1934
1934
  if (t && !p(Et, this).has(e) && !p(De, this).has(e)) if (i) {
1935
1935
  var n = document.createDocumentFragment(), o = _e();
1936
1936
  n.append(o), p(De, this).set(e, {
@@ -2040,7 +2040,7 @@ function fo(e, t, r = !0) {
2040
2040
  }
2041
2041
  for (var n = 0; n < t.length; n++) {
2042
2042
  var o = t[n];
2043
- i?.has(o) ? (o.f |= Kr, Po(o, document.createDocumentFragment())) : ue(t[n], r);
2043
+ i?.has(o) ? (o.f |= Kr, Mo(o, document.createDocumentFragment())) : ue(t[n], r);
2044
2044
  }
2045
2045
  }
2046
2046
  var Ai;
@@ -2056,7 +2056,7 @@ function Fr(e, t, r, i, n, o = null) {
2056
2056
  return Hi(S) ? S : S == null ? [] : Gi(S);
2057
2057
  }), _, m = /* @__PURE__ */ new Map(), b = !0;
2058
2058
  function k(S) {
2059
- (w.effect.f & 16384) === 0 && (w.pending.delete(S), w.fallback = h, Zu(w, _, l, t, i), h !== null && (_.length === 0 ? (h.f & 33554432) === 0 ? Mo(h) : (h.f ^= Kr, qr(h, null, l)) : nr(h, () => {
2059
+ (w.effect.f & 16384) === 0 && (w.pending.delete(S), w.fallback = h, Zu(w, _, l, t, i), h !== null && (_.length === 0 ? (h.f & 33554432) === 0 ? Po(h) : (h.f ^= Kr, qr(h, null, l)) : nr(h, () => {
2060
2060
  h = null;
2061
2061
  })));
2062
2062
  }
@@ -2069,19 +2069,19 @@ function Fr(e, t, r, i, n, o = null) {
2069
2069
  var S = _.length;
2070
2070
  let O = !1;
2071
2071
  N && ta(l) === "[!" != (S === 0) && (l = Ni(), ce(l), Ie(!1), O = !0);
2072
- for (var D = /* @__PURE__ */ new Set(), M = z, U = Pa(), q = 0; q < S; q += 1) {
2072
+ for (var D = /* @__PURE__ */ new Set(), P = z, U = Ma(), q = 0; q < S; q += 1) {
2073
2073
  N && Y.nodeType === 8 && Y.data === "]" && (l = Y, O = !0, Ie(!1));
2074
2074
  var te = _[q], K = i(te, q);
2075
2075
  if (0)
2076
2076
  var ye;
2077
2077
  var ie = b ? null : c.get(K);
2078
- ie ? (ie.v && kr(ie.v, te), ie.i && kr(ie.i, q), U && M.unskip_effect(ie.e)) : (ie = ed(c, b ? l : Ai ?? (Ai = _e()), te, K, q, n, t, r), b || (ie.e.f |= Kr), c.set(K, ie)), D.add(K);
2078
+ ie ? (ie.v && kr(ie.v, te), ie.i && kr(ie.i, q), U && P.unskip_effect(ie.e)) : (ie = ed(c, b ? l : Ai ?? (Ai = _e()), te, K, q, n, t, r), b || (ie.e.f |= Kr), c.set(K, ie)), D.add(K);
2079
2079
  }
2080
- if (S === 0 && o && !h && (b ? h = ke(() => o(l)) : (h = ke(() => o(Ai ?? (Ai = _e()))), h.f |= Kr)), S > D.size && Pc("", "", ""), N && S > 0 && ce(Ni()), !b)
2081
- if (m.set(M, D), U) {
2082
- for (const [Er, je] of c) D.has(Er) || M.skip_effect(je.e);
2083
- M.oncommit(k), M.ondiscard(E);
2084
- } else k(M);
2080
+ if (S === 0 && o && !h && (b ? h = ke(() => o(l)) : (h = ke(() => o(Ai ?? (Ai = _e()))), h.f |= Kr)), S > D.size && Mc("", "", ""), N && S > 0 && ce(Ni()), !b)
2081
+ if (m.set(P, D), U) {
2082
+ for (const [Er, je] of c) D.has(Er) || P.skip_effect(je.e);
2083
+ P.oncommit(k), P.ondiscard(E);
2084
+ } else k(P);
2085
2085
  O && Ie(!0), s(v);
2086
2086
  }),
2087
2087
  flags: t,
@@ -2103,7 +2103,7 @@ function Zu(e, t, r, i, n) {
2103
2103
  for (S = 0; S < l; S += 1) {
2104
2104
  if (k = t[S], E = n(k, S), w = c.get(E).e, e.outrogroups !== null) for (const ie of e.outrogroups)
2105
2105
  ie.pending.delete(w), ie.done.delete(w);
2106
- if ((w.f & 8192) !== 0 && (Mo(w), o && (w.nodes?.a?.unfix(), (_ ?? (_ = /* @__PURE__ */ new Set())).delete(w))), (w.f & 33554432) !== 0)
2106
+ if ((w.f & 8192) !== 0 && (Po(w), o && (w.nodes?.a?.unfix(), (_ ?? (_ = /* @__PURE__ */ new Set())).delete(w))), (w.f & 33554432) !== 0)
2107
2107
  if (w.f ^= Kr, w === d) qr(w, null, r);
2108
2108
  else {
2109
2109
  var O = v ? v.next : d;
@@ -2113,11 +2113,11 @@ function Zu(e, t, r, i, n) {
2113
2113
  if (w !== d) {
2114
2114
  if (h !== void 0 && h.has(w)) {
2115
2115
  if (m.length < b.length) {
2116
- var D = b[0], M;
2116
+ var D = b[0], P;
2117
2117
  v = D.prev;
2118
2118
  var U = m[0], q = m[m.length - 1];
2119
- for (M = 0; M < m.length; M += 1) qr(m[M], D, r);
2120
- for (M = 0; M < b.length; M += 1) h.delete(b[M]);
2119
+ for (P = 0; P < m.length; P += 1) qr(m[P], D, r);
2120
+ for (P = 0; P < b.length; P += 1) h.delete(b[P]);
2121
2121
  It(e, U.prev, q.next), It(e, v, U), It(e, q, D), d = D, v = q, S -= 1, m = [], b = [];
2122
2122
  } else
2123
2123
  h.delete(w), qr(w, d, r), It(e, w.prev, w.next), It(e, w, v === null ? e.effect.first : v.next), It(e, v, w), v = w;
@@ -2416,28 +2416,28 @@ function vd(e, t, r, i, n = !1, o = !1) {
2416
2416
  for (var b in t) b in r || (r[b] = null);
2417
2417
  r.class ? r.class = Za(r.class) : (i || r[Br]) && (r.class = null), r[Ur] && (r.style ?? (r.style = null));
2418
2418
  var k = ol(e);
2419
- for (const M in r) {
2420
- let U = r[M];
2421
- if (m && M === "value" && U == null) {
2422
- e.value = e.__value = "", _[M] = U;
2419
+ for (const P in r) {
2420
+ let U = r[P];
2421
+ if (m && P === "value" && U == null) {
2422
+ e.value = e.__value = "", _[P] = U;
2423
2423
  continue;
2424
2424
  }
2425
- if (M === "class") {
2426
- fr(e, e.namespaceURI === "http://www.w3.org/1999/xhtml", U, i, t?.[Br], r[Br]), _[M] = U, _[Br] = r[Br];
2425
+ if (P === "class") {
2426
+ fr(e, e.namespaceURI === "http://www.w3.org/1999/xhtml", U, i, t?.[Br], r[Br]), _[P] = U, _[Br] = r[Br];
2427
2427
  continue;
2428
2428
  }
2429
- if (M === "style") {
2430
- el(e, U, t?.[Ur], r[Ur]), _[M] = U, _[Ur] = r[Ur];
2429
+ if (P === "style") {
2430
+ el(e, U, t?.[Ur], r[Ur]), _[P] = U, _[Ur] = r[Ur];
2431
2431
  continue;
2432
2432
  }
2433
- var E = _[M];
2434
- if (!(U === E && !(U === void 0 && e.hasAttribute(M)))) {
2435
- _[M] = U;
2436
- var w = M[0] + M[1];
2433
+ var E = _[P];
2434
+ if (!(U === E && !(U === void 0 && e.hasAttribute(P)))) {
2435
+ _[P] = U;
2436
+ var w = P[0] + P[1];
2437
2437
  if (w !== "$$")
2438
2438
  if (w === "on") {
2439
- const q = {}, te = "$$" + M;
2440
- let K = M.slice(2);
2439
+ const q = {}, te = "$$" + P;
2440
+ let K = P.slice(2);
2441
2441
  var S = ju(K);
2442
2442
  if (Ru(K) && (K = K.slice(0, -7), q.capture = !0), !S && E) {
2443
2443
  if (U != null) continue;
@@ -2447,20 +2447,20 @@ function vd(e, t, r, i, n = !1, o = !1) {
2447
2447
  ve(K, e, U), qa([K]);
2448
2448
  else if (U != null) {
2449
2449
  let ye = function(ie) {
2450
- _[M].call(this, ie);
2450
+ _[P].call(this, ie);
2451
2451
  };
2452
- _[te] = Pu(K, e, ye, q);
2452
+ _[te] = Mu(K, e, ye, q);
2453
2453
  }
2454
- } else if (M === "style") Wi(e, M, U);
2455
- else if (M === "autofocus") gu(e, !!U);
2456
- else if (!d && (M === "__value" || M === "value" && U != null)) e.value = e.__value = U;
2457
- else if (M === "selected" && m) fd(e, U);
2454
+ } else if (P === "style") Wi(e, P, U);
2455
+ else if (P === "autofocus") gu(e, !!U);
2456
+ else if (!d && (P === "__value" || P === "value" && U != null)) e.value = e.__value = U;
2457
+ else if (P === "selected" && m) fd(e, U);
2458
2458
  else {
2459
- var O = M;
2459
+ var O = P;
2460
2460
  h || (O = Du(O));
2461
2461
  var D = O === "defaultValue" || O === "defaultChecked";
2462
2462
  if (U == null && !d && !D)
2463
- if (c[M] = null, O === "value" || O === "checked") {
2463
+ if (c[P] = null, O === "value" || O === "checked") {
2464
2464
  let q = e;
2465
2465
  const te = t === void 0;
2466
2466
  if (O === "value") {
@@ -2470,7 +2470,7 @@ function vd(e, t, r, i, n = !1, o = !1) {
2470
2470
  let K = q.defaultChecked;
2471
2471
  q.removeAttribute(O), q.defaultChecked = K, q.checked = te ? K : !1;
2472
2472
  }
2473
- } else e.removeAttribute(M);
2473
+ } else e.removeAttribute(P);
2474
2474
  else D || k.includes(O) && (d || typeof U != "string") ? (e[O] = U, O in c && (c[O] = se)) : typeof U != "function" && Wi(e, O, U, o);
2475
2475
  }
2476
2476
  }
@@ -2520,7 +2520,7 @@ function ur(e, t, r = t) {
2520
2520
  var i = /* @__PURE__ */ new WeakSet();
2521
2521
  Oa(e, "input", async (n) => {
2522
2522
  var o = n ? e.defaultValue : e.value;
2523
- if (o = Un(e) ? Hn(o) : o, r(o), z !== null && i.add(z), await Mu(), o !== (o = t())) {
2523
+ if (o = Un(e) ? Hn(o) : o, r(o), z !== null && i.add(z), await Pu(), o !== (o = t())) {
2524
2524
  var l = e.selectionStart, c = e.selectionEnd, d = e.value.length;
2525
2525
  if (e.value = o ?? "", c !== null) {
2526
2526
  var h = e.value.length;
@@ -2607,16 +2607,16 @@ function Hr(e, t, r, i) {
2607
2607
  }, n && (r & 4) === 0) return k;
2608
2608
  if (v) {
2609
2609
  var E = e.$$legacy;
2610
- return (function(D, M) {
2611
- return arguments.length > 0 ? ((!n || !M || E || b) && v(M ? k() : D), D) : k();
2610
+ return (function(D, P) {
2611
+ return arguments.length > 0 ? ((!n || !P || E || b) && v(P ? k() : D), D) : k();
2612
2612
  });
2613
2613
  }
2614
2614
  var w = !1, S = ((r & 1) !== 0 ? Ji : ko)(() => (w = !1, k()));
2615
2615
  o && s(S);
2616
2616
  var O = G;
2617
- return (function(D, M) {
2617
+ return (function(D, P) {
2618
2618
  if (arguments.length > 0) {
2619
- const U = M ? s(S) : n && o ? Oe(D) : D;
2619
+ const U = P ? s(S) : n && o ? Oe(D) : D;
2620
2620
  return y(S, U), w = !0, c !== void 0 && (c = U), D;
2621
2621
  }
2622
2622
  return mt && w || (O.f & 16384) !== 0 ? S.v : s(S);
@@ -2715,7 +2715,7 @@ typeof HTMLElement == "function" && (ll = class extends HTMLElement {
2715
2715
  for (const i of this.$$s) i in r && (i === "default" && !this.$$d.children ? (this.$$d.children = e(i), t.default = !0) : t[i] = e(i));
2716
2716
  for (const i of this.attributes) {
2717
2717
  const n = this.$$g_p(i.name);
2718
- n in this.$$d || (this.$$d[n] = Pi(n, i.value, this.$$p_d, "toProp"));
2718
+ n in this.$$d || (this.$$d[n] = Mi(n, i.value, this.$$p_d, "toProp"));
2719
2719
  }
2720
2720
  for (const i in this.$$p_d) !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
2721
2721
  this.$$c = md({
@@ -2732,7 +2732,7 @@ typeof HTMLElement == "function" && (ll = class extends HTMLElement {
2732
2732
  for (const i of Li(this.$$c)) {
2733
2733
  if (!this.$$p_d[i]?.reflect) continue;
2734
2734
  this.$$d[i] = this.$$c[i];
2735
- const n = Pi(i, this.$$d[i], this.$$p_d, "toAttribute");
2735
+ const n = Mi(i, this.$$d[i], this.$$p_d, "toAttribute");
2736
2736
  n == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, n);
2737
2737
  }
2738
2738
  this.$$r = !1;
@@ -2746,7 +2746,7 @@ typeof HTMLElement == "function" && (ll = class extends HTMLElement {
2746
2746
  }
2747
2747
  }
2748
2748
  attributeChangedCallback(e, t, r) {
2749
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Pi(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2749
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Mi(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2750
2750
  }
2751
2751
  disconnectedCallback() {
2752
2752
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2757,7 +2757,7 @@ typeof HTMLElement == "function" && (ll = class extends HTMLElement {
2757
2757
  return Li(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2758
2758
  }
2759
2759
  });
2760
- function Pi(e, t, r, i) {
2760
+ function Mi(e, t, r, i) {
2761
2761
  const n = r[e]?.type;
2762
2762
  if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e]) return t;
2763
2763
  if (i === "toAttribute") switch (n) {
@@ -2804,7 +2804,7 @@ function yd(e, t, r, i, n, o) {
2804
2804
  return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
2805
2805
  },
2806
2806
  set(d) {
2807
- d = Pi(c, d, t), this.$$d[c] = d;
2807
+ d = Mi(c, d, t), this.$$d[c] = d;
2808
2808
  var h = this.$$c;
2809
2809
  h && (qt(h, c)?.get ? h[c] = d : h.$set({ [c]: d }));
2810
2810
  }
@@ -2881,7 +2881,7 @@ function ul(e) {
2881
2881
  const t = e.trim();
2882
2882
  return t || "";
2883
2883
  }
2884
- function Mt(e) {
2884
+ function Pt(e) {
2885
2885
  if (!e || e.length === 0) return [];
2886
2886
  const t = /* @__PURE__ */ new Set();
2887
2887
  for (const r of e) {
@@ -2891,27 +2891,27 @@ function Mt(e) {
2891
2891
  }
2892
2892
  return Array.from(t);
2893
2893
  }
2894
- function Sd(e) {
2894
+ function Sd(e, t) {
2895
2895
  if (e != null) {
2896
2896
  if (e === "on" || e === "off") return e;
2897
- throw new Error(`Invalid tools config at "qtiEnforcement": expected "on" or "off", got ${JSON.stringify(e)}.`);
2897
+ throw new Error(`Invalid tools config at "${t}": expected "on" or "off", got ${JSON.stringify(e)}.`);
2898
2898
  }
2899
2899
  }
2900
2900
  function Ad(e) {
2901
2901
  if (e != null && !er(e)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
2902
- const t = wd(e?.policy), r = bd(e?.placement), i = kd(e?.providers), n = Sd(e?.qtiEnforcement), o = {
2902
+ const t = wd(e?.policy), r = bd(e?.placement), i = kd(e?.providers), n = Sd(e?.pnpEnforcement, "pnpEnforcement"), o = {
2903
2903
  policy: {
2904
- allowed: Mt($t(t?.allowed, "policy.allowed")),
2905
- blocked: Mt($t(t?.blocked, "policy.blocked"))
2904
+ allowed: Pt($t(t?.allowed, "policy.allowed")),
2905
+ blocked: Pt($t(t?.blocked, "policy.blocked"))
2906
2906
  },
2907
2907
  placement: {
2908
- section: Mt($t(r?.section, "placement.section")).length ? Mt($t(r?.section, "placement.section")) : [...Yn.section],
2909
- item: Mt($t(r?.item, "placement.item")).length ? Mt($t(r?.item, "placement.item")) : [...Yn.item],
2910
- passage: Mt($t(r?.passage, "placement.passage")).length ? Mt($t(r?.passage, "placement.passage")) : [...Yn.passage]
2908
+ section: Pt($t(r?.section, "placement.section")).length ? Pt($t(r?.section, "placement.section")) : [...Yn.section],
2909
+ item: Pt($t(r?.item, "placement.item")).length ? Pt($t(r?.item, "placement.item")) : [...Yn.item],
2910
+ passage: Pt($t(r?.passage, "placement.passage")).length ? Pt($t(r?.passage, "placement.passage")) : [...Yn.passage]
2911
2911
  },
2912
2912
  providers: i
2913
2913
  };
2914
- return n && (o.qtiEnforcement = n), o;
2914
+ return n && (o.pnpEnforcement = n), o;
2915
2915
  }
2916
2916
  var Ed = [
2917
2917
  "assessment",
@@ -2961,7 +2961,7 @@ function Gs(e) {
2961
2961
  if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
2962
2962
  if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
2963
2963
  }
2964
- var Md = class {
2964
+ var Pd = class {
2965
2965
  constructor() {
2966
2966
  x(this, "tools", /* @__PURE__ */ new Map()), x(this, "pnpIndex", /* @__PURE__ */ new Map()), x(this, "componentOverrides", {}), x(this, "moduleLoaders", /* @__PURE__ */ new Map()), x(this, "loadedToolModules", /* @__PURE__ */ new Set()), x(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
2967
2967
  }
@@ -3107,7 +3107,7 @@ var Md = class {
3107
3107
  function dl(e) {
3108
3108
  return e.level === "item";
3109
3109
  }
3110
- function Pd(e) {
3110
+ function Md(e) {
3111
3111
  return e.level === "passage";
3112
3112
  }
3113
3113
  function xd(e) {
@@ -3151,7 +3151,7 @@ function xo(e) {
3151
3151
  }
3152
3152
  return i.filter(Boolean).join(" ").trim();
3153
3153
  }
3154
- if (Pd(e)) {
3154
+ if (Md(e)) {
3155
3155
  const t = e.passage;
3156
3156
  if (!t?.config) return "";
3157
3157
  const r = t.config, i = [], n = (d) => d.replace(/<[^>]*>/g, " ").trim();
@@ -3718,7 +3718,7 @@ var jd = class {
3718
3718
  "expanding-row",
3719
3719
  "floating-overlay",
3720
3720
  "left-aligned"
3721
- ]), qs = (e) => e && typeof e == "object" ? e : {}, Yd = (e) => e === "polly" || e === "google" || e === "server", Me = (e, t) => e === void 0 ? t : e, Ui = (e, t = "left-aligned") => typeof e == "string" && Kd.has(e) ? e : t, ti = Object.freeze([0.8, 1.25]), Qr = (e) => {
3721
+ ]), qs = (e) => e && typeof e == "object" ? e : {}, Yd = (e) => e === "polly" || e === "google" || e === "server", Pe = (e, t) => e === void 0 ? t : e, Ui = (e, t = "left-aligned") => typeof e == "string" && Kd.has(e) ? e : t, ti = Object.freeze([0.8, 1.25]), Qr = (e) => {
3722
3722
  if (!Array.isArray(e)) return [...ti];
3723
3723
  if (e.length === 0) return [];
3724
3724
  const t = /* @__PURE__ */ new Set();
@@ -3741,23 +3741,23 @@ var jd = class {
3741
3741
  if (!Yd(r)) return t;
3742
3742
  const i = {
3743
3743
  ...t,
3744
- apiEndpoint: Me(t.apiEndpoint, "/api/tts"),
3745
- transportMode: Me(t.transportMode, "pie"),
3746
- endpointValidationMode: Me(t.endpointValidationMode, "voices"),
3747
- validateEndpoint: Me(t.validateEndpoint, !0),
3748
- includeAuthOnAssetFetch: Me(t.includeAuthOnAssetFetch, !1),
3749
- rate: Me(t.rate, 1),
3750
- language: Me(t.language, "en-US")
3744
+ apiEndpoint: Pe(t.apiEndpoint, "/api/tts"),
3745
+ transportMode: Pe(t.transportMode, "pie"),
3746
+ endpointValidationMode: Pe(t.endpointValidationMode, "voices"),
3747
+ validateEndpoint: Pe(t.validateEndpoint, !0),
3748
+ includeAuthOnAssetFetch: Pe(t.includeAuthOnAssetFetch, !1),
3749
+ rate: Pe(t.rate, 1),
3750
+ language: Pe(t.language, "en-US")
3751
3751
  };
3752
3752
  return r === "polly" ? {
3753
3753
  ...i,
3754
- defaultVoice: Me(i.defaultVoice, "Joanna"),
3755
- engine: Me(i.engine, "neural"),
3756
- format: Me(i.format, "mp3"),
3757
- speechMarksMode: Me(i.speechMarksMode, "word+sentence")
3754
+ defaultVoice: Pe(i.defaultVoice, "Joanna"),
3755
+ engine: Pe(i.engine, "neural"),
3756
+ format: Pe(i.format, "mp3"),
3757
+ speechMarksMode: Pe(i.speechMarksMode, "word+sentence")
3758
3758
  } : r === "google" ? {
3759
3759
  ...i,
3760
- defaultVoice: Me(i.defaultVoice, "en-US-Wavenet-A")
3760
+ defaultVoice: Pe(i.defaultVoice, "en-US-Wavenet-A")
3761
3761
  } : i;
3762
3762
  }, Oi = (e) => {
3763
3763
  const t = qs(e), r = qs(e?.settings);
@@ -4368,7 +4368,7 @@ var rf = {
4368
4368
  df
4369
4369
  ];
4370
4370
  function vf(e = {}) {
4371
- const t = new Md(), r = {
4371
+ const t = new Pd(), r = {
4372
4372
  toolTagMap: {
4373
4373
  ...vl,
4374
4374
  ...e.toolTagMap || {}
@@ -4533,7 +4533,7 @@ var ev = Ad({
4533
4533
  passage: []
4534
4534
  },
4535
4535
  providers: {}
4536
- }), yf = /* @__PURE__ */ ae("<button> </button>"), bf = /* @__PURE__ */ ae('<span class="loading loading-spinner loading-xs svelte-3sm1sy"></span> <span class="svelte-3sm1sy">Checking availability...</span>', 1), wf = /* @__PURE__ */ ae("<span> </span>"), Tf = /* @__PURE__ */ ae('<div class="alert alert-warning text-xs"><span> </span></div>'), kf = /* @__PURE__ */ ae("<option> </option>"), Sf = /* @__PURE__ */ ae('<fieldset class="pie-tts-fieldset fieldset bg-base-200 border border-base-300 rounded-box svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-browser-voice">Voice</label> <select id="tts-browser-voice" class="select select-sm select-bordered w-full"><option>Default browser voice</option><!></select></div></fieldset>'), Af = /* @__PURE__ */ ae("<option> </option>"), Ef = /* @__PURE__ */ ae('<fieldset class="pie-tts-fieldset fieldset bg-base-200 border border-base-300 rounded-box svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-endpoint">API endpoint</label> <input id="tts-polly-endpoint" class="input input-sm input-bordered w-full" placeholder="/api/tts"/></div> <div class="pie-tts-grid-3 svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-language">Language</label> <input id="tts-polly-language" class="input input-sm input-bordered w-full" placeholder="en-US"/></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-gender">Gender</label> <select id="tts-polly-gender" class="select select-sm select-bordered w-full"><option>Any</option><option>Male</option><option>Female</option><option>Neutral</option></select></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-engine">Engine</label> <select id="tts-polly-engine" class="select select-sm select-bordered w-full"><option>Neural</option><option>Standard</option></select></div></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-voice">Voice</label> <select id="tts-polly-voice" class="select select-sm select-bordered w-full"><option>Provider default</option><!></select></div> <div class="pie-tts-grid-3 svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-format">Format</label> <select id="tts-polly-format" class="select select-sm select-bordered w-full"><option>MP3</option><option>OGG</option><option>PCM</option></select></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-sample-rate">Sample rate</label> <select id="tts-polly-sample-rate" class="select select-sm select-bordered w-full"><option>8000 Hz</option><option>16000 Hz</option><option>22050 Hz</option><option>24000 Hz</option></select></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-speech-marks">Speech marks</label> <select id="tts-polly-speech-marks" class="select select-sm select-bordered w-full"><option>Word</option><option>Word + sentence</option></select></div></div></fieldset>'), If = /* @__PURE__ */ ae("<option> </option>"), $f = /* @__PURE__ */ ae('<fieldset class="pie-tts-fieldset fieldset bg-base-200 border border-base-300 rounded-box svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-google-endpoint">API endpoint</label> <input id="tts-google-endpoint" class="input input-sm input-bordered w-full" placeholder="/api/tts"/></div> <div class="pie-tts-grid-3 svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-google-language">Language</label> <input id="tts-google-language" class="input input-sm input-bordered w-full" placeholder="en-US"/></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-google-gender">Gender</label> <select id="tts-google-gender" class="select select-sm select-bordered w-full"><option>Any</option><option>Male</option><option>Female</option><option>Neutral</option></select></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-google-voice-type">Voice type</label> <select id="tts-google-voice-type" class="select select-sm select-bordered w-full"><option>WaveNet</option><option>Studio</option><option>Standard</option></select></div></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-google-voice">Voice</label> <select id="tts-google-voice" class="select select-sm select-bordered w-full"><option>Provider default</option><!></select></div></fieldset>'), Mf = /* @__PURE__ */ ae('<div class="text-xs opacity-75"> </div>'), Pf = /* @__PURE__ */ ae('<div class="text-xs opacity-75">This provider uses adapter mode. Configure provider state from your host app via\n `customProviders`.</div>'), xf = /* @__PURE__ */ ae('<fieldset class="pie-tts-fieldset fieldset bg-base-200 border border-base-300 rounded-box svelte-3sm1sy"><div class="pie-tts-custom-provider-header svelte-3sm1sy"><div class="text-sm font-semibold"> </div> <!></div> <!></fieldset>'), Of = /* @__PURE__ */ ae("<span> </span>"), Lf = /* @__PURE__ */ ae('<div class="alert alert-success text-xs"><span> </span></div>'), Cf = /* @__PURE__ */ ae('<div class="alert alert-error text-xs"><span> </span></div>'), Rf = /* @__PURE__ */ ae('<div class="alert alert-error text-xs"><span> </span></div>'), Nf = /* @__PURE__ */ ae('<div class="alert alert-info text-xs"><span> </span></div>'), jf = /* @__PURE__ */ ae(`<div class="pie-tts-dialog-backdrop svelte-3sm1sy"><div class="pie-tts-dialog svelte-3sm1sy" role="dialog" aria-modal="true" aria-labelledby="pie-tts-dialog-title" tabindex="-1"><div class="pie-tts-dialog-header svelte-3sm1sy"><h3 id="pie-tts-dialog-title" class="pie-tts-dialog-title svelte-3sm1sy">TTS settings</h3> <button class="btn btn-xs btn-ghost btn-circle" type="button" aria-label="Close TTS settings"><svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button></div> <div class="pie-tts-fieldset fieldset bg-base-200 border border-base-300 rounded-box svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-layout-mode">Toolbar layout mode</label> <select id="tts-layout-mode" class="select select-sm select-bordered w-full"><option>Reserved row</option><option>Expanding row</option><option>Floating overlay</option><option>Left-aligned controls</option></select> <div class="text-xs opacity-75"> </div></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-inline-speed-options">Inline speed buttons</label> <input id="tts-inline-speed-options" class="input input-sm input-bordered w-full" placeholder="0.8, 1.25" autocomplete="off"/> <div class="mt-1 flex flex-wrap items-center gap-2"><span class="text-xs opacity-75">Comma or semicolon-separated multipliers (1× is not shown as a button). Leave empty to
4536
+ }), yf = /* @__PURE__ */ ae("<button> </button>"), bf = /* @__PURE__ */ ae('<span class="loading loading-spinner loading-xs svelte-3sm1sy"></span> <span class="svelte-3sm1sy">Checking availability...</span>', 1), wf = /* @__PURE__ */ ae("<span> </span>"), Tf = /* @__PURE__ */ ae('<div class="alert alert-warning text-xs"><span> </span></div>'), kf = /* @__PURE__ */ ae("<option> </option>"), Sf = /* @__PURE__ */ ae('<fieldset class="pie-tts-fieldset fieldset bg-base-200 border border-base-300 rounded-box svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-browser-voice">Voice</label> <select id="tts-browser-voice" class="select select-sm select-bordered w-full"><option>Default browser voice</option><!></select></div></fieldset>'), Af = /* @__PURE__ */ ae("<option> </option>"), Ef = /* @__PURE__ */ ae('<fieldset class="pie-tts-fieldset fieldset bg-base-200 border border-base-300 rounded-box svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-endpoint">API endpoint</label> <input id="tts-polly-endpoint" class="input input-sm input-bordered w-full" placeholder="/api/tts"/></div> <div class="pie-tts-grid-3 svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-language">Language</label> <input id="tts-polly-language" class="input input-sm input-bordered w-full" placeholder="en-US"/></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-gender">Gender</label> <select id="tts-polly-gender" class="select select-sm select-bordered w-full"><option>Any</option><option>Male</option><option>Female</option><option>Neutral</option></select></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-engine">Engine</label> <select id="tts-polly-engine" class="select select-sm select-bordered w-full"><option>Neural</option><option>Standard</option></select></div></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-voice">Voice</label> <select id="tts-polly-voice" class="select select-sm select-bordered w-full"><option>Provider default</option><!></select></div> <div class="pie-tts-grid-3 svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-format">Format</label> <select id="tts-polly-format" class="select select-sm select-bordered w-full"><option>MP3</option><option>OGG</option><option>PCM</option></select></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-sample-rate">Sample rate</label> <select id="tts-polly-sample-rate" class="select select-sm select-bordered w-full"><option>8000 Hz</option><option>16000 Hz</option><option>22050 Hz</option><option>24000 Hz</option></select></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-polly-speech-marks">Speech marks</label> <select id="tts-polly-speech-marks" class="select select-sm select-bordered w-full"><option>Word</option><option>Word + sentence</option></select></div></div></fieldset>'), If = /* @__PURE__ */ ae("<option> </option>"), $f = /* @__PURE__ */ ae('<fieldset class="pie-tts-fieldset fieldset bg-base-200 border border-base-300 rounded-box svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-google-endpoint">API endpoint</label> <input id="tts-google-endpoint" class="input input-sm input-bordered w-full" placeholder="/api/tts"/></div> <div class="pie-tts-grid-3 svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-google-language">Language</label> <input id="tts-google-language" class="input input-sm input-bordered w-full" placeholder="en-US"/></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-google-gender">Gender</label> <select id="tts-google-gender" class="select select-sm select-bordered w-full"><option>Any</option><option>Male</option><option>Female</option><option>Neutral</option></select></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-google-voice-type">Voice type</label> <select id="tts-google-voice-type" class="select select-sm select-bordered w-full"><option>WaveNet</option><option>Studio</option><option>Standard</option></select></div></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-google-voice">Voice</label> <select id="tts-google-voice" class="select select-sm select-bordered w-full"><option>Provider default</option><!></select></div></fieldset>'), Pf = /* @__PURE__ */ ae('<div class="text-xs opacity-75"> </div>'), Mf = /* @__PURE__ */ ae('<div class="text-xs opacity-75">This provider uses adapter mode. Configure provider state from your host app via\n `customProviders`.</div>'), xf = /* @__PURE__ */ ae('<fieldset class="pie-tts-fieldset fieldset bg-base-200 border border-base-300 rounded-box svelte-3sm1sy"><div class="pie-tts-custom-provider-header svelte-3sm1sy"><div class="text-sm font-semibold"> </div> <!></div> <!></fieldset>'), Of = /* @__PURE__ */ ae("<span> </span>"), Lf = /* @__PURE__ */ ae('<div class="alert alert-success text-xs"><span> </span></div>'), Cf = /* @__PURE__ */ ae('<div class="alert alert-error text-xs"><span> </span></div>'), Rf = /* @__PURE__ */ ae('<div class="alert alert-error text-xs"><span> </span></div>'), Nf = /* @__PURE__ */ ae('<div class="alert alert-info text-xs"><span> </span></div>'), jf = /* @__PURE__ */ ae(`<div class="pie-tts-dialog-backdrop svelte-3sm1sy"><div class="pie-tts-dialog svelte-3sm1sy" role="dialog" aria-modal="true" aria-labelledby="pie-tts-dialog-title" tabindex="-1"><div class="pie-tts-dialog-header svelte-3sm1sy"><h3 id="pie-tts-dialog-title" class="pie-tts-dialog-title svelte-3sm1sy">TTS settings</h3> <button class="btn btn-xs btn-ghost btn-circle" type="button" aria-label="Close TTS settings"><svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button></div> <div class="pie-tts-fieldset fieldset bg-base-200 border border-base-300 rounded-box svelte-3sm1sy"><div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-layout-mode">Toolbar layout mode</label> <select id="tts-layout-mode" class="select select-sm select-bordered w-full"><option>Reserved row</option><option>Expanding row</option><option>Floating overlay</option><option>Left-aligned controls</option></select> <div class="text-xs opacity-75"> </div></div> <div class="pie-tts-field svelte-3sm1sy"><label class="pie-tts-label svelte-3sm1sy" for="tts-inline-speed-options">Inline speed buttons</label> <input id="tts-inline-speed-options" class="input input-sm input-bordered w-full" placeholder="0.8, 1.25" autocomplete="off"/> <div class="mt-1 flex flex-wrap items-center gap-2"><span class="text-xs opacity-75">Comma or semicolon-separated multipliers (1× is not shown as a button). Leave empty to
4537
4537
  hide speed buttons.</span> <button type="button" class="btn btn-xs btn-ghost">Reset to defaults</button></div></div></div> <div class="join pie-tts-tabs svelte-3sm1sy"></div> <div class="pie-tts-status svelte-3sm1sy"><!> <button class="btn btn-xs btn-outline">Recheck</button></div> <!> <!> <div class="pie-tts-fieldset pie-tts-preview-block fieldset bg-base-200 border border-base-300 rounded-box svelte-3sm1sy"><div class="pie-tts-preview-header svelte-3sm1sy"><h4 class="pie-tts-preview-title svelte-3sm1sy">Preview</h4> <div class="join"><button type="button">Plain text</button> <button type="button">SSML</button></div></div> <label class="pie-tts-label svelte-3sm1sy" for="tts-preview-text">Sample text</label> <textarea id="tts-preview-text" class="textarea textarea-sm textarea-bordered w-full pie-tts-preview-input svelte-3sm1sy"></textarea> <div class="pie-tts-preview-row svelte-3sm1sy"><button type="button" class="btn btn-xs btn-outline">Reset sample</button> <span class="text-xs opacity-70"><!></span></div> <div class="pie-tts-preview-track svelte-3sm1sy" aria-live="polite"></div></div> <!> <!> <!> <!> <div class="pie-tts-actions svelte-3sm1sy"><button class="btn btn-sm btn-outline">Close</button> <button class="btn btn-sm btn-outline"> </button> <button class="btn btn-sm btn-primary"> </button></div></div></div>`), Vf = {
4538
4538
  hash: "svelte-3sm1sy",
4539
4539
  code: `.pie-tts-dialog-backdrop.svelte-3sm1sy {position:fixed;inset:0;background:color-mix(in srgb, #000 30%, transparent);display:flex;align-items:center;justify-content:center;padding:1rem;}.pie-tts-dialog.svelte-3sm1sy {width:min(720px, calc(100vw - 2rem));max-height:calc(100vh - 2rem);overflow:auto;background:var(--color-base-100);border:1px solid var(--color-base-300);border-radius:0.75rem;box-shadow:0 24px 48px rgba(0, 0, 0, 0.22);padding:0.75rem;display:flex;flex-direction:column;gap:0.5rem;}.pie-tts-dialog-header.svelte-3sm1sy {display:flex;align-items:center;justify-content:space-between;}.pie-tts-dialog-title.svelte-3sm1sy {margin:0;font-size:0.95rem;font-weight:700;}.pie-tts-tabs.svelte-3sm1sy {width:100%;max-width:100%;flex-wrap:wrap;row-gap:0.25rem;}.pie-tts-status.svelte-3sm1sy {display:flex;align-items:flex-start;gap:0.5rem;justify-content:space-between;}.pie-tts-status.svelte-3sm1sy > span:where(.svelte-3sm1sy):not(.loading) {flex:1;min-width:0;font-size:0.75rem;line-height:1.35;}.pie-tts-ok.svelte-3sm1sy {color:var(--color-success);}.pie-tts-error.svelte-3sm1sy {color:var(--color-error);}.pie-tts-actions.svelte-3sm1sy {display:flex;justify-content:flex-end;gap:0.5rem;}.pie-tts-fieldset.svelte-3sm1sy {padding:0.5rem 0.65rem;display:flex;flex-direction:column;gap:0.45rem;}.pie-tts-field.svelte-3sm1sy {display:flex;flex-direction:column;gap:0.15rem;min-width:0;}.pie-tts-label.svelte-3sm1sy {display:block;font-size:0.7rem;font-weight:600;line-height:1.2;opacity:0.85;padding:0;}.pie-tts-grid-3.svelte-3sm1sy {display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:0.45rem 0.65rem;align-items:end;}
@@ -4545,7 +4545,7 @@ var ev = Ad({
4545
4545
  function zf(e, t) {
4546
4546
  na(t, !0), id(e, Vf);
4547
4547
  const r = Ju(), i = "/api/tts", n = "pie:section-player-tools:tts-settings";
4548
- let o = Hr(t, "toolkitCoordinator", 7, null), l = Hr(t, "apiEndpoint", 7, "/api/tts"), c = Hr(t, "storageKey", 7, n), d = Hr(t, "adapters", 23, () => ({})), h = Hr(t, "customProviders", 23, () => []), v = /* @__PURE__ */ C("browser"), _ = /* @__PURE__ */ C(null), m = /* @__PURE__ */ C(null), b = /* @__PURE__ */ C(!1), k = /* @__PURE__ */ C(!1), E = /* @__PURE__ */ C(null), w = /* @__PURE__ */ C(null), S = /* @__PURE__ */ C("plain"), O = /* @__PURE__ */ C(""), D = /* @__PURE__ */ C(null), M = /* @__PURE__ */ C(-1), U = /* @__PURE__ */ C(0), q = /* @__PURE__ */ C(Oe({})), te = /* @__PURE__ */ C(Oe({})), K = /* @__PURE__ */ C(Oe({})), ye = /* @__PURE__ */ C(""), ie = /* @__PURE__ */ C(1), Er = /* @__PURE__ */ C(1), je = /* @__PURE__ */ C("left-aligned"), Lt = /* @__PURE__ */ C(""), Ct = /* @__PURE__ */ C(""), yt = /* @__PURE__ */ C("en-US"), Ir = /* @__PURE__ */ C(""), Ke = /* @__PURE__ */ C("neural"), sr = /* @__PURE__ */ C(24e3), ar = /* @__PURE__ */ C("mp3"), $r = /* @__PURE__ */ C("word"), st = /* @__PURE__ */ C(""), sn = /* @__PURE__ */ C(1), Rt = /* @__PURE__ */ C(""), bt = /* @__PURE__ */ C("en-US"), Nt = /* @__PURE__ */ C(""), jt = /* @__PURE__ */ C("wavenet"), at = /* @__PURE__ */ C(""), an = /* @__PURE__ */ C(1), Vt = /* @__PURE__ */ C(Oe({
4548
+ let o = Hr(t, "toolkitCoordinator", 7, null), l = Hr(t, "apiEndpoint", 7, "/api/tts"), c = Hr(t, "storageKey", 7, n), d = Hr(t, "adapters", 23, () => ({})), h = Hr(t, "customProviders", 23, () => []), v = /* @__PURE__ */ C("browser"), _ = /* @__PURE__ */ C(null), m = /* @__PURE__ */ C(null), b = /* @__PURE__ */ C(!1), k = /* @__PURE__ */ C(!1), E = /* @__PURE__ */ C(null), w = /* @__PURE__ */ C(null), S = /* @__PURE__ */ C("plain"), O = /* @__PURE__ */ C(""), D = /* @__PURE__ */ C(null), P = /* @__PURE__ */ C(-1), U = /* @__PURE__ */ C(0), q = /* @__PURE__ */ C(Oe({})), te = /* @__PURE__ */ C(Oe({})), K = /* @__PURE__ */ C(Oe({})), ye = /* @__PURE__ */ C(""), ie = /* @__PURE__ */ C(1), Er = /* @__PURE__ */ C(1), je = /* @__PURE__ */ C("left-aligned"), Lt = /* @__PURE__ */ C(""), Ct = /* @__PURE__ */ C(""), yt = /* @__PURE__ */ C("en-US"), Ir = /* @__PURE__ */ C(""), Ke = /* @__PURE__ */ C("neural"), sr = /* @__PURE__ */ C(24e3), ar = /* @__PURE__ */ C("mp3"), $r = /* @__PURE__ */ C("word"), st = /* @__PURE__ */ C(""), sn = /* @__PURE__ */ C(1), Rt = /* @__PURE__ */ C(""), bt = /* @__PURE__ */ C("en-US"), Nt = /* @__PURE__ */ C(""), jt = /* @__PURE__ */ C("wavenet"), at = /* @__PURE__ */ C(""), an = /* @__PURE__ */ C(1), Vt = /* @__PURE__ */ C(Oe({
4549
4549
  checked: !1,
4550
4550
  loading: !1,
4551
4551
  available: !1,
@@ -4568,16 +4568,16 @@ function zf(e, t) {
4568
4568
  voices: []
4569
4569
  })), Tt = null, le = null, ai = 0, ln = /* @__PURE__ */ C(null), li = /* @__PURE__ */ C(null), ci = /* @__PURE__ */ C(null), lr = null;
4570
4570
  function gl(a, u = {}) {
4571
- const f = () => Array.from(a.querySelectorAll("button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])")).filter((P) => P.offsetParent !== null || P.getClientRects().length > 0), g = document.activeElement, T = (P) => {
4572
- if (P.key === "Escape") {
4571
+ const f = () => Array.from(a.querySelectorAll("button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex='-1'])")).filter((M) => M.offsetParent !== null || M.getClientRects().length > 0), g = document.activeElement, T = (M) => {
4572
+ if (M.key === "Escape") {
4573
4573
  u.onEscape?.();
4574
4574
  return;
4575
4575
  }
4576
- if (P.key !== "Tab") return;
4576
+ if (M.key !== "Tab") return;
4577
4577
  const L = f();
4578
4578
  if (!L.length) return;
4579
4579
  const R = document.activeElement, F = L.indexOf(R || L[0]);
4580
- P.shiftKey && F <= 0 ? (P.preventDefault(), L[L.length - 1].focus()) : !P.shiftKey && F === L.length - 1 && (P.preventDefault(), L[0].focus());
4580
+ M.shiftKey && F <= 0 ? (M.preventDefault(), L[L.length - 1].focus()) : !M.shiftKey && F === L.length - 1 && (M.preventDefault(), L[0].focus());
4581
4581
  };
4582
4582
  return a.addEventListener("keydown", T), queueMicrotask(() => {
4583
4583
  (u.initialFocus || f()[0] || a)?.focus?.();
@@ -4602,7 +4602,7 @@ function zf(e, t) {
4602
4602
  "floating-overlay",
4603
4603
  "left-aligned"
4604
4604
  ];
4605
- function Mr(a, u) {
4605
+ function Pr(a, u) {
4606
4606
  if (!(typeof console > "u")) {
4607
4607
  if (u) {
4608
4608
  console.debug(`${Ro} ${a}`, u);
@@ -4617,7 +4617,7 @@ function zf(e, t) {
4617
4617
  function Tl() {
4618
4618
  y(Lt, Jn([...ti]), !0);
4619
4619
  }
4620
- const Pr = /* @__PURE__ */ At(() => {
4620
+ const Mr = /* @__PURE__ */ At(() => {
4621
4621
  const a = new Set(yl), u = [], f = /* @__PURE__ */ new Set();
4622
4622
  for (const g of h() || []) {
4623
4623
  if (!g || typeof g != "object") continue;
@@ -4638,11 +4638,11 @@ function zf(e, t) {
4638
4638
  id: "google",
4639
4639
  label: "Google"
4640
4640
  },
4641
- ...s(Pr).map((a) => ({
4641
+ ...s(Mr).map((a) => ({
4642
4642
  id: a.id,
4643
4643
  label: a.label
4644
4644
  }))
4645
- ]), Se = /* @__PURE__ */ At(() => s(Pr).find((a) => a.id === s(v)) || null);
4645
+ ]), Se = /* @__PURE__ */ At(() => s(Mr).find((a) => a.id === s(v)) || null);
4646
4646
  function ui() {
4647
4647
  r("close");
4648
4648
  }
@@ -4670,7 +4670,7 @@ function zf(e, t) {
4670
4670
  };
4671
4671
  }
4672
4672
  function un(a) {
4673
- const u = s(Pr).find((f) => f.id === a);
4673
+ const u = s(Mr).find((f) => f.id === a);
4674
4674
  if (!u) throw new Error(`Custom provider '${a}' is not registered.`);
4675
4675
  return u;
4676
4676
  }
@@ -4746,7 +4746,7 @@ function zf(e, t) {
4746
4746
  [a]: f
4747
4747
  }, !0), await Jo());
4748
4748
  }
4749
- async function Ml(a) {
4749
+ async function Pl(a) {
4750
4750
  s(v) !== a && Bo(a), await Yo();
4751
4751
  }
4752
4752
  function cr(a) {
@@ -4772,18 +4772,18 @@ function zf(e, t) {
4772
4772
  function zo() {
4773
4773
  return String(c() || "").trim() || n;
4774
4774
  }
4775
- function Pl() {
4775
+ function Ml() {
4776
4776
  const a = o()?.getToolConfig?.("textToSpeech") || {}, u = Ol(), f = u ? {
4777
4777
  ...a,
4778
4778
  ...u
4779
4779
  } : a, g = Ye(), T = f?.backend;
4780
4780
  typeof T == "string" && T.trim().length > 0 && y(v, T, !0);
4781
- const P = typeof f?.defaultVoice == "string" ? f.defaultVoice : "", L = cr(Number(f?.rate ?? 1)), R = dn(Number(f?.pitch ?? 1)), F = typeof f?.apiEndpoint == "string" && f.apiEndpoint.trim().length > 0 ? f.apiEndpoint : g, j = T === "polly" ? F : g, V = T === "google" ? F : g, Z = typeof f?.language == "string" && f.language.trim().length > 0 ? f.language : "en-US", oe = f?.engine === "standard" ? "standard" : f?.engine === "neural" ? "neural" : f?.quality === "standard" ? "standard" : "neural", W = f?.providerOptions || {};
4781
+ const M = typeof f?.defaultVoice == "string" ? f.defaultVoice : "", L = cr(Number(f?.rate ?? 1)), R = dn(Number(f?.pitch ?? 1)), F = typeof f?.apiEndpoint == "string" && f.apiEndpoint.trim().length > 0 ? f.apiEndpoint : g, j = T === "polly" ? F : g, V = T === "google" ? F : g, Z = typeof f?.language == "string" && f.language.trim().length > 0 ? f.language : "en-US", oe = f?.engine === "standard" ? "standard" : f?.engine === "neural" ? "neural" : f?.quality === "standard" ? "standard" : "neural", W = f?.providerOptions || {};
4782
4782
  y(je, wl(f?.layoutMode), !0);
4783
4783
  const X = Oi(f && typeof f == "object" ? f : void 0);
4784
4784
  X.speedOptions === void 0 ? y(Lt, Jn([...ti]), !0) : Array.isArray(X.speedOptions) && X.speedOptions.length === 0 ? y(Lt, "") : y(Lt, Jn(Qr(X.speedOptions)), !0);
4785
4785
  const Ae = di(Number(f?.sampleRate ?? W.sampleRate ?? 24e3)), be = f?.format === "ogg" || f?.format === "pcm" || f?.format === "mp3" ? f.format : W.format === "ogg" || W.format === "pcm" || W.format === "mp3" ? W.format : "mp3", St = (Array.isArray(W.speechMarkTypes) ? W.speechMarkTypes : []).includes("sentence") || f?.speechMarksMode === "word+sentence" ? "word+sentence" : "word";
4786
- if (y(ye, T === "browser" ? P : "", !0), y(ie, L, !0), y(Er, R, !0), y(Ct, j, !0), y(yt, Z, !0), y(Ke, oe, !0), y(sr, Ae, !0), y(ar, be, !0), y($r, St, !0), y(st, T === "polly" ? P : "", !0), y(sn, L, !0), y(Rt, V, !0), y(bt, Z, !0), y(Nt, typeof f?.googleGender == "string" ? f.googleGender : "", !0), y(jt, f?.googleVoiceType === "standard" || f?.googleVoiceType === "studio" || f?.googleVoiceType === "wavenet" ? f.googleVoiceType : "wavenet", !0), y(at, T === "google" ? P : "", !0), y(an, L, !0), !ct(s(v))) {
4786
+ if (y(ye, T === "browser" ? M : "", !0), y(ie, L, !0), y(Er, R, !0), y(Ct, j, !0), y(yt, Z, !0), y(Ke, oe, !0), y(sr, Ae, !0), y(ar, be, !0), y($r, St, !0), y(st, T === "polly" ? M : "", !0), y(sn, L, !0), y(Rt, V, !0), y(bt, Z, !0), y(Nt, typeof f?.googleGender == "string" ? f.googleGender : "", !0), y(jt, f?.googleVoiceType === "standard" || f?.googleVoiceType === "studio" || f?.googleVoiceType === "wavenet" ? f.googleVoiceType : "wavenet", !0), y(at, T === "google" ? M : "", !0), y(an, L, !0), !ct(s(v))) {
4787
4787
  const ut = W && typeof W == "object" ? W : {};
4788
4788
  Object.keys(ut).length > 0 && jo(s(v), ut);
4789
4789
  }
@@ -4799,7 +4799,7 @@ function zf(e, t) {
4799
4799
  }
4800
4800
  function Do() {
4801
4801
  const a = {}, u = {};
4802
- for (const g of s(Pr))
4802
+ for (const g of s(Mr))
4803
4803
  a[g.id] = s(q)[g.id] || g.initialState || {}, u[g.id] = s(K)[g.id] || {
4804
4804
  checked: !1,
4805
4805
  loading: !1,
@@ -4843,11 +4843,11 @@ function zf(e, t) {
4843
4843
  let u = a.getVoices();
4844
4844
  u.length || (await new Promise((g) => {
4845
4845
  let T = !1;
4846
- const P = () => {
4846
+ const M = () => {
4847
4847
  T || (T = !0, g());
4848
- }, L = window.setTimeout(P, 1200);
4848
+ }, L = window.setTimeout(M, 1200);
4849
4849
  a.addEventListener("voiceschanged", () => {
4850
- window.clearTimeout(L), P();
4850
+ window.clearTimeout(L), M();
4851
4851
  }, { once: !0 });
4852
4852
  }), u = a.getVoices());
4853
4853
  const f = u.map((g) => ({
@@ -5028,7 +5028,7 @@ function zf(e, t) {
5028
5028
  return a === "browser" ? "This is a browser voice sample." : a === "polly" ? "This is an AWS Polly voice sample." : "This is a Google Cloud TTS voice sample.";
5029
5029
  }
5030
5030
  function Ho() {
5031
- le !== null && typeof window < "u" && window.clearInterval(le), le = null, y(M, -1), y(U, 0);
5031
+ le !== null && typeof window < "u" && window.clearInterval(le), le = null, y(P, -1), y(U, 0);
5032
5032
  }
5033
5033
  function jl(a) {
5034
5034
  const u = [], f = /\S+/g;
@@ -5045,11 +5045,11 @@ function zf(e, t) {
5045
5045
  text: "",
5046
5046
  active: !1
5047
5047
  }];
5048
- if (s(M) < 0 || s(U) <= 0) return [{
5048
+ if (s(P) < 0 || s(U) <= 0) return [{
5049
5049
  text: u,
5050
5050
  active: !1
5051
5051
  }];
5052
- const f = Math.max(0, Math.min(s(M), u.length)), g = Math.max(f, Math.min(f + s(U), u.length));
5052
+ const f = Math.max(0, Math.min(s(P), u.length)), g = Math.max(f, Math.min(f + s(U), u.length));
5053
5053
  return [
5054
5054
  {
5055
5055
  text: u.slice(0, f),
@@ -5089,13 +5089,13 @@ function zf(e, t) {
5089
5089
  const f = [...u].sort((L, R) => L.time !== R.time ? L.time - R.time : L.start !== R.start ? L.start - R.start : L.end - R.end);
5090
5090
  if (f.length === 0) return;
5091
5091
  const g = f[0];
5092
- Mr("tracking:init", {
5092
+ Pr("tracking:init", {
5093
5093
  audioCurrentMs: Math.round(a.currentTime * 1e3),
5094
5094
  marks: f.length,
5095
5095
  firstMark: g,
5096
5096
  firstSlice: s(O).slice(Math.max(0, g.start), Math.max(g.start, g.end))
5097
- }), y(M, g.start, !0), y(U, Math.max(1, g.end - g.start), !0);
5098
- let T = 0, P = 0;
5097
+ }), y(P, g.start, !0), y(U, Math.max(1, g.end - g.start), !0);
5098
+ let T = 0, M = 0;
5099
5099
  le = window.setInterval(() => {
5100
5100
  const L = a.currentTime * 1e3;
5101
5101
  let R = T;
@@ -5103,7 +5103,7 @@ function zf(e, t) {
5103
5103
  if (R !== T) {
5104
5104
  T = R;
5105
5105
  const F = f[T];
5106
- y(M, F.start, !0), y(U, Math.max(1, F.end - F.start), !0), P < 12 && (P += 1, Mr("tracking:step", {
5106
+ y(P, F.start, !0), y(U, Math.max(1, F.end - F.start), !0), M < 12 && (M += 1, Pr("tracking:step", {
5107
5107
  audioCurrentMs: Math.round(L),
5108
5108
  index: T,
5109
5109
  mark: F,
@@ -5117,12 +5117,12 @@ function zf(e, t) {
5117
5117
  }
5118
5118
  function zl(a, u) {
5119
5119
  if (a.length === 0) return a;
5120
- const f = [...a].sort((j, V) => j.time !== V.time ? j.time - V.time : j.start !== V.start ? j.start - V.start : j.end - V.end), g = f.map((j) => Number(j.time) || 0).filter((j) => j >= 0), T = g.length ? Math.max(...g) : 0, P = [];
5120
+ const f = [...a].sort((j, V) => j.time !== V.time ? j.time - V.time : j.start !== V.start ? j.start - V.start : j.end - V.end), g = f.map((j) => Number(j.time) || 0).filter((j) => j >= 0), T = g.length ? Math.max(...g) : 0, M = [];
5121
5121
  for (let j = 1; j < g.length; j += 1) {
5122
5122
  const V = g[j] - g[j - 1];
5123
- Number.isFinite(V) && V > 0 && P.push(V);
5123
+ Number.isFinite(V) && V > 0 && M.push(V);
5124
5124
  }
5125
- const L = P.length > 0 ? [...P].sort((j, V) => j - V)[Math.floor(P.length / 2)] : 0, R = Number.isFinite(u) && u > 0 && T > 0 && T <= u * 1.5, F = T > 0 && T < 100 && f.length > 3 || L > 0 && L < 10;
5125
+ const L = M.length > 0 ? [...M].sort((j, V) => j - V)[Math.floor(M.length / 2)] : 0, R = Number.isFinite(u) && u > 0 && T > 0 && T <= u * 1.5, F = T > 0 && T < 100 && f.length > 3 || L > 0 && L < 10;
5126
5126
  return R || F ? f.map((j) => ({
5127
5127
  ...j,
5128
5128
  time: Number(j.time) * 1e3
@@ -5132,8 +5132,8 @@ function zf(e, t) {
5132
5132
  if (a.length === 0) return a;
5133
5133
  const f = [...a].sort((W, X) => W.time !== X.time ? W.time - X.time : W.start !== X.start ? W.start - X.start : W.end - X.end), g = typeof u == "string" ? u : "", T = g.length;
5134
5134
  if (!T) return f;
5135
- const P = Math.max(...f.map((W) => Number(W.end) || 0)), L = f[0], R = typeof L.value == "string" ? L.value.trim() : "", F = R ? g.toLowerCase().indexOf(R.toLowerCase()) : -1, j = F >= 0 ? Number(L.start || 0) - F : 0, V = Number(L.start || 0);
5136
- if (!(P > T + 2 && (j > 0 || V > 0))) return f;
5135
+ const M = Math.max(...f.map((W) => Number(W.end) || 0)), L = f[0], R = typeof L.value == "string" ? L.value.trim() : "", F = R ? g.toLowerCase().indexOf(R.toLowerCase()) : -1, j = F >= 0 ? Number(L.start || 0) - F : 0, V = Number(L.start || 0);
5136
+ if (!(M > T + 2 && (j > 0 || V > 0))) return f;
5137
5137
  const Z = j > 0 ? j : V, oe = f.map((W) => {
5138
5138
  const X = Math.max(0, Number(W.start || 0) - Z), Ae = Math.max(X + 1, Number(W.end || 0) - Z);
5139
5139
  return {
@@ -5142,7 +5142,7 @@ function zf(e, t) {
5142
5142
  end: Ae
5143
5143
  };
5144
5144
  });
5145
- return Mr("marks:offset-rebase", {
5145
+ return Pr("marks:offset-rebase", {
5146
5146
  textLength: T,
5147
5147
  firstWord: R,
5148
5148
  firstWordIndex: F,
@@ -5166,19 +5166,19 @@ function zf(e, t) {
5166
5166
  };
5167
5167
  f.addEventListener("loadedmetadata", j, { once: !0 }), f.addEventListener("error", j, { once: !0 }), typeof window < "u" && window.setTimeout(j, 1200);
5168
5168
  });
5169
- const g = Number(f.duration), T = Dl(zl(u, g), s(O)), P = Math.max(...u.map((R) => Number(R.time) || 0)), L = Math.max(...T.map((R) => Number(R.time) || 0));
5170
- Mr("marks:normalize", {
5169
+ const g = Number(f.duration), T = Dl(zl(u, g), s(O)), M = Math.max(...u.map((R) => Number(R.time) || 0)), L = Math.max(...T.map((R) => Number(R.time) || 0));
5170
+ Pr("marks:normalize", {
5171
5171
  audioDurationSeconds: g,
5172
5172
  rawCount: u.length,
5173
5173
  normalizedCount: T.length,
5174
- rawMaxTime: P,
5174
+ rawMaxTime: M,
5175
5175
  normalizedMaxTime: L,
5176
5176
  rawFirst: u[0],
5177
5177
  normalizedFirst: T[0],
5178
5178
  rawLast: u[u.length - 1],
5179
5179
  normalizedLast: T[T.length - 1]
5180
5180
  }), qo(f, T);
5181
- } else Mr("marks:missing", { audioUrl: a });
5181
+ } else Pr("marks:missing", { audioUrl: a });
5182
5182
  await new Promise((g, T) => {
5183
5183
  f.onended = () => {
5184
5184
  le !== null && (window.clearInterval(le), le = null), g();
@@ -5209,9 +5209,9 @@ function zf(e, t) {
5209
5209
  }), X = await vn(W);
5210
5210
  if (!W.ok) throw new Error(X?.message || X?.error || `Preview request failed (${W.status})`);
5211
5211
  return X;
5212
- })(), P = T?.audio, L = T?.contentType || "audio/mpeg";
5213
- if (!P || typeof P != "string") throw new Error("Preview response did not include audio content.");
5214
- const R = atob(P), F = new Array(R.length);
5212
+ })(), M = T?.audio, L = T?.contentType || "audio/mpeg";
5213
+ if (!M || typeof M != "string") throw new Error("Preview response did not include audio content.");
5214
+ const R = atob(M), F = new Array(R.length);
5215
5215
  for (let W = 0; W < R.length; W += 1) F[W] = R.charCodeAt(W);
5216
5216
  const j = new Blob([new Uint8Array(F)], { type: L }), V = URL.createObjectURL(j), Z = new Audio(V);
5217
5217
  Tt = Z;
@@ -5234,8 +5234,8 @@ function zf(e, t) {
5234
5234
  }
5235
5235
  u.onboundary = (f) => {
5236
5236
  if (f.name !== "word") return;
5237
- const g = Number(f.charIndex || 0), T = jl(s(O)).find((P) => g >= P.start && g < P.end);
5238
- T && (y(M, T.start, !0), y(U, Math.max(1, T.end - T.start), !0));
5237
+ const g = Number(f.charIndex || 0), T = jl(s(O)).find((M) => g >= M.start && g < M.end);
5238
+ T && (y(P, T.start, !0), y(U, Math.max(1, T.end - T.start), !0));
5239
5239
  }, await new Promise((f, g) => {
5240
5240
  u.onend = () => f(), u.onerror = () => g(/* @__PURE__ */ new Error("Failed to play browser voice preview.")), a.speak(u);
5241
5241
  });
@@ -5269,8 +5269,8 @@ function zf(e, t) {
5269
5269
  previewMode: s(S)
5270
5270
  })), g = f || null;
5271
5271
  if (g?.audioUrl && typeof g.audioUrl == "string") {
5272
- const T = Array.isArray(g.speechMarks) ? g.speechMarks : [], P = typeof g.trackingText == "string" ? g.trackingText : null;
5273
- P && y(O, P, !0), await Fl(g.audioUrl, T);
5272
+ const T = Array.isArray(g.speechMarks) ? g.speechMarks : [], M = typeof g.trackingText == "string" ? g.trackingText : null;
5273
+ M && y(O, M, !0), await Fl(g.audioUrl, T);
5274
5274
  }
5275
5275
  y(D, f?.note || null, !0);
5276
5276
  }
@@ -5382,7 +5382,7 @@ function zf(e, t) {
5382
5382
  }
5383
5383
  }
5384
5384
  Xa(() => {
5385
- Pl(), Do(), pn();
5385
+ Ml(), Do(), pn();
5386
5386
  }), $i(() => {
5387
5387
  if (s(li))
5388
5388
  return lr?.(), lr = gl(s(li), {
@@ -5394,17 +5394,17 @@ function zf(e, t) {
5394
5394
  lr?.(), lr = null;
5395
5395
  };
5396
5396
  }), $i(() => {
5397
- s(Pr), or(() => {
5397
+ s(Mr), or(() => {
5398
5398
  Do();
5399
5399
  });
5400
5400
  }), $i(() => {
5401
5401
  s(Se);
5402
5402
  const a = s(Se), u = s(ln);
5403
5403
  if (!a || a.mode !== "component" || !u) return;
5404
- const f = (P) => El(a.id, P), g = (P) => {
5405
- $l(a.id, P);
5404
+ const f = (M) => El(a.id, M), g = (M) => {
5405
+ $l(a.id, M);
5406
5406
  }, T = () => {
5407
- Ml(a.id);
5407
+ Pl(a.id);
5408
5408
  };
5409
5409
  return u.addEventListener("availability", f), u.addEventListener("apply-request", g), u.addEventListener("preview-request", T), () => {
5410
5410
  u.removeEventListener("availability", f), u.removeEventListener("apply-request", g), u.removeEventListener("preview-request", T);
@@ -5494,8 +5494,8 @@ function zf(e, t) {
5494
5494
  var ns = A(is, 2), Zl = (a) => {
5495
5495
  var u = Sf(), f = $(u), g = A($(f), 2), T = $(g);
5496
5496
  T.value = T.__value = "";
5497
- var P = A(T);
5498
- Fr(P, 17, () => s(Vt).voices, Dr, (L, R) => {
5497
+ var M = A(T);
5498
+ Fr(M, 17, () => s(Vt).voices, Dr, (L, R) => {
5499
5499
  var F = kf(), j = $(F);
5500
5500
  I(F);
5501
5501
  var V = {};
@@ -5506,9 +5506,9 @@ function zf(e, t) {
5506
5506
  }, ec = (a) => {
5507
5507
  var u = Ef(), f = $(u), g = A($(f), 2);
5508
5508
  vr(g), I(f);
5509
- var T = A(f, 2), P = $(T), L = A($(P), 2);
5510
- vr(L), I(P);
5511
- var R = A(P, 2), F = A($(R), 2), j = $(F);
5509
+ var T = A(f, 2), M = $(T), L = A($(M), 2);
5510
+ vr(L), I(M);
5511
+ var R = A(M, 2), F = A($(R), 2), j = $(F);
5512
5512
  j.value = j.__value = "";
5513
5513
  var V = A(j);
5514
5514
  V.value = V.__value = "male";
@@ -5552,9 +5552,9 @@ function zf(e, t) {
5552
5552
  }, tc = (a) => {
5553
5553
  var u = $f(), f = $(u), g = A($(f), 2);
5554
5554
  vr(g), I(f);
5555
- var T = A(f, 2), P = $(T), L = A($(P), 2);
5556
- vr(L), I(P);
5557
- var R = A(P, 2), F = A($(R), 2), j = $(F);
5555
+ var T = A(f, 2), M = $(T), L = A($(M), 2);
5556
+ vr(L), I(M);
5557
+ var R = A(M, 2), F = A($(R), 2), j = $(F);
5558
5558
  j.value = j.__value = "";
5559
5559
  var V = A(j);
5560
5560
  V.value = V.__value = "male";
@@ -5582,11 +5582,11 @@ function zf(e, t) {
5582
5582
  }, rc = (a) => {
5583
5583
  var u = xf(), f = $(u), g = $(f), T = $(g, !0);
5584
5584
  I(g);
5585
- var P = A(g, 2), L = (V) => {
5586
- var Z = Mf(), oe = $(Z, !0);
5585
+ var M = A(g, 2), L = (V) => {
5586
+ var Z = Pf(), oe = $(Z, !0);
5587
5587
  I(Z), fe(() => pe(oe, s(Se).description)), ee(V, Z);
5588
5588
  };
5589
- Je(P, (V) => {
5589
+ Je(M, (V) => {
5590
5590
  s(Se).description && V(L);
5591
5591
  }), I(f);
5592
5592
  var R = A(f, 2), F = (V) => {
@@ -5601,7 +5601,7 @@ function zf(e, t) {
5601
5601
  }), [() => Il(s(Se))], void 0, void 0, "svelte-3sm1sy");
5602
5602
  }), ee(V, Z);
5603
5603
  }, j = (V) => {
5604
- var Z = Pf();
5604
+ var Z = Mf();
5605
5605
  ee(V, Z);
5606
5606
  };
5607
5607
  Je(R, (V) => {
@@ -5613,14 +5613,14 @@ function zf(e, t) {
5613
5613
  Je(ns, (a) => {
5614
5614
  s(v) === "browser" ? a(Zl) : s(v) === "polly" ? a(ec, 1) : s(v) === "google" ? a(tc, 2) : s(Se) && a(rc, 3);
5615
5615
  });
5616
- var In = A(ns, 2), $n = $(In), os = A($($n), 2), Mn = $(os);
5616
+ var In = A(ns, 2), $n = $(In), os = A($($n), 2), Pn = $(os);
5617
5617
  let ss;
5618
- var as = A(Mn, 2);
5618
+ var as = A(Pn, 2);
5619
5619
  let ls;
5620
5620
  I(os), I($n);
5621
- var Pn = A($n, 4);
5622
- _u(Pn);
5623
- var xn = A(Pn, 2), cs = $(xn), us = A(cs, 2), ic = $(us), nc = (a) => {
5621
+ var Mn = A($n, 4);
5622
+ _u(Mn);
5623
+ var xn = A(Mn, 2), cs = $(xn), us = A(cs, 2), ic = $(us), nc = (a) => {
5624
5624
  var u = Ti("SSML is unsupported in Browser preview.");
5625
5625
  ee(a, u);
5626
5626
  }, oc = (a) => {
@@ -5677,10 +5677,10 @@ function zf(e, t) {
5677
5677
  I(Lr);
5678
5678
  var mi = A(Lr, 2), pc = $(mi, !0);
5679
5679
  return I(mi), I(ms), I(gn), qn(gn, (a) => y(li, a), () => s(li)), I(pi), fe((a, u) => {
5680
- pe(Ul, `Item header row reservation: ${s(xl) ? "Enabled" : "Disabled"}`), ss = fr(Mn, 1, "btn btn-xs join-item", null, ss, { "btn-active": s(S) === "plain" }), ls = fr(as, 1, "btn btn-xs join-item", null, ls, { "btn-active": s(S) === "ssml" }), Lr.disabled = a, pe(vc, s(k) && s(w) === s(v) ? "Stop preview" : "Preview voice"), mi.disabled = u, pe(pc, s(b) ? "Applying..." : "Apply");
5680
+ pe(Ul, `Item header row reservation: ${s(xl) ? "Enabled" : "Disabled"}`), ss = fr(Pn, 1, "btn btn-xs join-item", null, ss, { "btn-active": s(S) === "plain" }), ls = fr(as, 1, "btn btn-xs join-item", null, ls, { "btn-active": s(S) === "ssml" }), Lr.disabled = a, pe(vc, s(k) && s(w) === s(v) ? "Stop preview" : "Preview voice"), mi.disabled = u, pe(pc, s(b) ? "Applying..." : "Apply");
5681
5681
  }, [() => !Ve().available || s(b) || !Nl(), () => s(b) || !Ve().available]), ve("click", Xo, ui), Fe(hi, () => s(je), (a) => y(je, a)), ur(Sn, () => s(Lt), (a) => y(Lt, a)), ve("click", Hl, Tl), ve("click", Jl, () => {
5682
5682
  pn();
5683
- }), ve("click", Mn, () => Go("plain")), ve("click", as, () => Go("ssml")), ur(Pn, () => s(O), (a) => y(O, a)), ve("click", cs, vi), ve("click", gs, ui), ve("click", Lr, () => {
5683
+ }), ve("click", Pn, () => Go("plain")), ve("click", as, () => Go("ssml")), ur(Mn, () => s(O), (a) => y(O, a)), ve("click", cs, vi), ve("click", gs, ui), ve("click", Lr, () => {
5684
5684
  Yo();
5685
5685
  }), ve("click", mi, () => {
5686
5686
  Jo();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-players/pie-section-player-tools-tts-settings",
3
- "version": "0.3.37",
3
+ "version": "0.3.38",
4
4
  "type": "module",
5
5
  "description": "Reusable TTS settings panel for PIE section-player development tools",
6
6
  "repository": {
@@ -38,8 +38,8 @@
38
38
  ],
39
39
  "license": "MIT",
40
40
  "dependencies": {
41
- "@pie-players/pie-assessment-toolkit": "0.3.37",
42
- "@pie-players/pie-theme": "0.3.37"
41
+ "@pie-players/pie-assessment-toolkit": "0.3.38",
42
+ "@pie-players/pie-theme": "0.3.38"
43
43
  },
44
44
  "types": "./dist/index.d.ts",
45
45
  "scripts": {