@vocalstack/player 0.1.0-alpha.47 → 0.1.0-alpha.48

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.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var Fa = Object.defineProperty;
2
2
  var Za = (t, e, n) => e in t ? Fa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var ge = (t, e, n) => Za(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { jsx as i, jsxs as g, Fragment as be } from "react/jsx-runtime";
5
- import { useState as k, useRef as j, useEffect as S, useLayoutEffect as Jt, createContext as Oi, useMemo as ze, useContext as Ga, useCallback as Ke, Fragment as qa, forwardRef as Ka, useImperativeHandle as Ja } from "react";
4
+ import { jsx as i, jsxs as g, Fragment as Ce } from "react/jsx-runtime";
5
+ import { useState as j, useRef as z, useEffect as S, useLayoutEffect as Xt, createContext as Oi, useMemo as ze, useContext as Ga, useCallback as Ke, Fragment as qa, forwardRef as Ka, useImperativeHandle as Ja } from "react";
6
6
  import { createPortal as Xa } from "react-dom";
7
7
  import { VocalStackError as Ci, VocalStack as xi } from "@vocalstack/js-sdk";
8
8
  const Si = "https://vocalstack.com", eo = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDUxLjY5MDciIGhlaWdodD0iMTU1LjMwNjQxIiB2aWV3Qm94PSIwIDAgMTA1MS42OTA2IDE1NS4zMDY0MSI+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMC44ODczNDc3MSwwLDAsMC44OTExODY4MiwtNDIuNzE2NjMsLTEyMy44NTM4OCkiPjxwYXRoIHN0eWxlPSJmaWxsOiM1NWFiZTU7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlLXdpZHRoOjAuMzcyOTYyIiBkPSJtIDE2NS43NDM2OSwzMTIuMzQ1MTQgYyAtMy42NTkwNCwtMC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YzYzNGQiIHdpZHRoPSIxMS4yNjk1NCIgaGVpZ2h0PSI0Mi4wOTc2MjIiIHg9IjExOS43ODkyNCIgeT0iMTc2LjI1OTA5IiByeT0iNS42MTA0OTYiLz48L2c+PC9nPjwvc3ZnPg==";
@@ -58,7 +58,7 @@ function oe({ d: t, ...e }) {
58
58
  function io({ size: t = 15 }) {
59
59
  return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", width: t, height: t, fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ i("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2.5" }) });
60
60
  }
61
- function Xt({ size: t = 13 }) {
61
+ function Wt({ size: t = 13 }) {
62
62
  return /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", width: t, height: t, fill: "currentColor", style: { marginLeft: 2 }, "aria-hidden": "true", children: /* @__PURE__ */ i("path", { d: "M7.5 5.6a1 1 0 0 1 1.52-.85l9.1 5.55a1 1 0 0 1 0 1.7l-9.1 5.55a1 1 0 0 1-1.52-.85V5.6Z" }) });
63
63
  }
64
64
  function ht({ size: t = 15, color: e = "currentColor", track: n = "rgba(127,127,127,.35)", sw: r }) {
@@ -100,8 +100,8 @@ function Tt({ checked: t, onChange: e, label: n, disabled: r }) {
100
100
  return /* @__PURE__ */ i("button", { type: "button", role: "switch", "aria-checked": t, "aria-label": n, className: "vs-toggle", disabled: r, onClick: () => e(!t), children: /* @__PURE__ */ i("span", { className: "vs-toggle__knob" }) });
101
101
  }
102
102
  function kr({ value: t, onChange: e, options: n, size: r, bordered: s = !0, fill: a }) {
103
- const o = j(null), [l, c] = k(null), u = Math.max(0, n.findIndex((d) => d.value === t));
104
- return Jt(() => {
103
+ const o = z(null), [l, c] = j(null), u = Math.max(0, n.findIndex((d) => d.value === t));
104
+ return Xt(() => {
105
105
  const d = o.current;
106
106
  if (!d) return;
107
107
  const M = d.querySelectorAll(".vs-switch__opt")[u];
@@ -136,7 +136,7 @@ function Rn({ flag: t, code: e, label: n, onClick: r, variant: s, block: a, bord
136
136
  ] });
137
137
  }
138
138
  function lo({ value: t, label: e = "Copy", onCopied: n }) {
139
- const [r, s] = k(!1), a = async () => {
139
+ const [r, s] = j(!1), a = async () => {
140
140
  try {
141
141
  await navigator.clipboard.writeText(t), s(!0), n == null || n(), setTimeout(() => s(!1), 1400);
142
142
  } catch {
@@ -161,7 +161,7 @@ function lo({ value: t, label: e = "Copy", onCopied: n }) {
161
161
  );
162
162
  }
163
163
  function co(t, e) {
164
- Jt(() => {
164
+ Xt(() => {
165
165
  const n = t.current, r = window.visualViewport;
166
166
  if (!e || !n || !r) return;
167
167
  let s = 0;
@@ -178,15 +178,15 @@ function co(t, e) {
178
178
  }, [t, e]);
179
179
  }
180
180
  function jr({ children: t, ms: e = 220 }) {
181
- const [n] = k(() => {
181
+ const [n] = j(() => {
182
182
  var r;
183
183
  return typeof window < "u" && !!((r = window.matchMedia) != null && r.call(window, "(hover: hover) and (pointer: fine)").matches);
184
184
  });
185
185
  return n ? /* @__PURE__ */ i(uo, { ms: e, children: t }) : /* @__PURE__ */ i("div", { children: t });
186
186
  }
187
187
  function uo({ children: t, ms: e }) {
188
- const n = j(null), r = j(null), [s, a] = k(null);
189
- return Jt(() => {
188
+ const n = z(null), r = z(null), [s, a] = j(null);
189
+ return Xt(() => {
190
190
  const o = r.current, l = n.current;
191
191
  if (!o || !l) return;
192
192
  let c;
@@ -210,7 +210,7 @@ function uo({ children: t, ms: e }) {
210
210
  }, [e]), /* @__PURE__ */ i("div", { ref: n, style: { height: s ?? void 0, overflow: "clip", transition: s == null ? void 0 : `height ${e}ms cubic-bezier(.32,.72,0,1)` }, children: /* @__PURE__ */ i("div", { ref: r, children: t }) });
211
211
  }
212
212
  function en({ open: t, onClose: e, title: n, titleNode: r, note: s, doneLabel: a = "Done", children: o, drawer: l = !1, header: c, kind: u, sticky: d = !1 }) {
213
- const M = j(null);
213
+ const M = z(null);
214
214
  return co(M, t), S(() => {
215
215
  if (!t) return;
216
216
  const h = (f) => {
@@ -308,7 +308,7 @@ function To(t, e, n) {
308
308
  const s = n;
309
309
  return s && (s.retryable === !0 || s.code === "engine_unavailable") ? yo : null;
310
310
  }
311
- class wo {
311
+ class vo {
312
312
  constructor(e = {}) {
313
313
  ge(this, "entries", /* @__PURE__ */ new Map());
314
314
  ge(this, "wanted", []);
@@ -453,7 +453,7 @@ const nt = class nt {
453
453
  ge(this, "loading", null);
454
454
  ge(this, "readAhead", 0);
455
455
  ge(this, "readAheadS", 0);
456
- ge(this, "prefetch", new wo());
456
+ ge(this, "prefetch", new vo());
457
457
  ge(this, "warmed", /* @__PURE__ */ new Set());
458
458
  ge(this, "startingSince", /* @__PURE__ */ new Map());
459
459
  ge(this, "retries", /* @__PURE__ */ new Map());
@@ -895,7 +895,7 @@ let Ir = nt;
895
895
  function Ui(t, e) {
896
896
  return e == null ? t.find((n) => !n.voiceKey) ?? null : t.find((n) => n.voiceKey === e) ?? t.find((n) => !n.voiceKey && n.voice === e) ?? null;
897
897
  }
898
- function vo(t, e, n, r = {}, s) {
898
+ function wo(t, e, n, r = {}, s) {
899
899
  if (!t) return [];
900
900
  const a = s != null && s.length ? s : t.clips;
901
901
  if (!(a != null && a.length)) return [];
@@ -953,7 +953,7 @@ function Pi(t, e) {
953
953
  for (const n of Or) n();
954
954
  }
955
955
  function Ur(t, e) {
956
- const [n, r] = k(() => Cr(t, e));
956
+ const [n, r] = j(() => Cr(t, e));
957
957
  return S(() => {
958
958
  const s = () => r(Cr(t, e));
959
959
  return Or.add(s), window.addEventListener("storage", s), () => {
@@ -988,7 +988,7 @@ function zo(t) {
988
988
  return [typeof e == "number" && e > 0 ? e : t === "ga" ? 560 : jo, n];
989
989
  }
990
990
  function Rr({ open: t, onClose: e, value: n, onSelect: r, languages: s, searchPlaceholder: a = "Search languages", none: o, pinned: l = [], recent: c = [], requireVoice: u, keepOpen: d, busy: M }) {
991
- const [h, f] = k(""), [p, y] = k(!1), [T, N] = k(null);
991
+ const [h, f] = j(""), [p, y] = j(!1), [T, N] = j(null);
992
992
  S(() => {
993
993
  t && (f(""), y(!1), N(null));
994
994
  }, [t]);
@@ -999,9 +999,9 @@ function Rr({ open: t, onClose: e, value: n, onSelect: r, languages: s, searchPl
999
999
  return K !== -1 || L !== -1 ? (K === -1 ? 999 : K) - (L === -1 ? 999 : L) : O.label.localeCompare(te.label);
1000
1000
  });
1001
1001
  }, [s, h, l]), b = ze(
1002
- () => h ? [] : c.map((A) => m.find((w) => w.code === A)).filter((A) => !!A).sort((A, w) => A.label.localeCompare(w.label)),
1002
+ () => h ? [] : c.map((A) => m.find((v) => v.code === A)).filter((A) => !!A).sort((A, v) => A.label.localeCompare(v.label)),
1003
1003
  [c, m, h]
1004
- ), C = ze(() => b.length ? m.filter((A) => !b.some((w) => w.code === A.code)) : m, [m, b]), D = p || h ? C.length : 12, V = C, Y = C.length - Math.min(D, C.length), ee = (A, w = !1, _ = !1) => {
1004
+ ), C = ze(() => b.length ? m.filter((A) => !b.some((v) => v.code === A.code)) : m, [m, b]), D = p || h ? C.length : 12, V = C, Y = C.length - Math.min(D, C.length), ee = (A, v = !1, _ = !1) => {
1005
1005
  const O = !!u && !A.voice;
1006
1006
  return /* @__PURE__ */ g(
1007
1007
  "button",
@@ -1022,7 +1022,7 @@ function Rr({ open: t, onClose: e, value: n, onSelect: r, languages: s, searchPl
1022
1022
  /* @__PURE__ */ i("div", { className: "vs-picker__label", children: A.label }),
1023
1023
  /* @__PURE__ */ i("div", { className: "vs-picker__native", children: A.native })
1024
1024
  ] }),
1025
- /* @__PURE__ */ i("span", { className: "vs-picker__slot", children: w && /* @__PURE__ */ i("span", { className: "vs-picker__forget", role: "button", tabIndex: 0, title: `Remove ${A.label} from recent`, "aria-label": `Remove ${A.label} from recent`, onClick: (te) => {
1025
+ /* @__PURE__ */ i("span", { className: "vs-picker__slot", children: v && /* @__PURE__ */ i("span", { className: "vs-picker__forget", role: "button", tabIndex: 0, title: `Remove ${A.label} from recent`, "aria-label": `Remove ${A.label} from recent`, onClick: (te) => {
1026
1026
  te.stopPropagation(), oi(A.code);
1027
1027
  }, onKeyDown: (te) => {
1028
1028
  (te.key === "Enter" || te.key === " ") && (te.preventDefault(), te.stopPropagation(), oi(A.code));
@@ -1049,12 +1049,12 @@ function Rr({ open: t, onClose: e, value: n, onSelect: r, languages: s, searchPl
1049
1049
  /* @__PURE__ */ i("span", { className: "vs-picker__slot" }),
1050
1050
  /* @__PURE__ */ i("span", { className: "vs-picker__check", children: n === null && /* @__PURE__ */ i(oe, { d: X.check, size: 16, sw: 2.2 }) })
1051
1051
  ] }),
1052
- b.length > 0 && /* @__PURE__ */ g(be, { children: [
1052
+ b.length > 0 && /* @__PURE__ */ g(Ce, { children: [
1053
1053
  /* @__PURE__ */ i("div", { className: "vs-picker__head", children: "RECENT" }),
1054
1054
  b.map((A) => ee(A, !0)),
1055
1055
  /* @__PURE__ */ i("div", { className: "vs-picker__rule" })
1056
1056
  ] }),
1057
- V.map((A, w) => ee(A, !1, w >= D)),
1057
+ V.map((A, v) => ee(A, !1, v >= D)),
1058
1058
  Y > 0 && /* @__PURE__ */ g("button", { type: "button", className: "vs-picker__more vs-picker__more--btn", style: { background: "none", border: 0, cursor: "pointer", width: "100%", textAlign: "left" }, onClick: () => y(!0), children: [
1059
1059
  "+ ",
1060
1060
  Y,
@@ -1073,7 +1073,7 @@ function Io({ open: t, onClose: e, title: n, note: r, sticky: s, ...a }) {
1073
1073
  return /* @__PURE__ */ i(en, { open: t, onClose: e, title: n, note: r, drawer: !1, sticky: s, kind: "picker", header: o, children: l });
1074
1074
  }
1075
1075
  function li({ src: t, setup: e, t: n, playing: r, seekN: s, onToggle: a, seekOver: o = 0.4 }) {
1076
- const l = j(null), [c, u] = k(!1), [d, M] = k(!1), h = j(n);
1076
+ const l = z(null), [c, u] = j(!1), [d, M] = j(!1), h = z(n);
1077
1077
  return h.current = n, S(() => {
1078
1078
  u(!1), M(!1);
1079
1079
  }, [t, e]), S(() => {
@@ -1120,7 +1120,7 @@ function li({ src: t, setup: e, t: n, playing: r, seekN: s, onToggle: a, seekOve
1120
1120
  }
1121
1121
  ),
1122
1122
  c && /* @__PURE__ */ i("div", { "aria-hidden": "true", className: "txyt__tap", onClick: a, style: { cursor: a ? "pointer" : "default" } }),
1123
- c && /* @__PURE__ */ i("div", { className: `txyt__paused${r ? "" : " txyt__paused--on"}`, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(Xt, { size: 44 }) }) })
1123
+ c && /* @__PURE__ */ i("div", { className: `txyt__paused${r ? "" : " txyt__paused--on"}`, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(Wt, { size: 44 }) }) })
1124
1124
  ] });
1125
1125
  }
1126
1126
  const Vi = [
@@ -1173,7 +1173,7 @@ function Pn(t) {
1173
1173
  const e = Oo(t);
1174
1174
  return e ? Vi.find((n) => n.hosts.test(e)) ?? null : null;
1175
1175
  }
1176
- function zt(t) {
1176
+ function It(t) {
1177
1177
  try {
1178
1178
  return new URL(/^[a-z][a-z0-9+.-]*:\/\//i.test(t) ? t : `https://${t}`);
1179
1179
  } catch {
@@ -1183,11 +1183,11 @@ function zt(t) {
1183
1183
  const un = (t) => Math.max(0, Math.floor(t));
1184
1184
  function Bi(t) {
1185
1185
  var n;
1186
- const e = /\/(?:share|embed)\/(?:[^/?#]*-)?([0-9a-f]{32})(?:[/?#]|$)/i.exec(((n = zt(t)) == null ? void 0 : n.pathname) ?? "");
1186
+ const e = /\/(?:share|embed)\/(?:[^/?#]*-)?([0-9a-f]{32})(?:[/?#]|$)/i.exec(((n = It(t)) == null ? void 0 : n.pathname) ?? "");
1187
1187
  return e ? e[1].toLowerCase() : null;
1188
1188
  }
1189
1189
  function Co(t) {
1190
- const e = zt(t);
1190
+ const e = It(t);
1191
1191
  if (!e) return null;
1192
1192
  const n = e.pathname.split("/").filter(Boolean), r = n.map((a, o) => /^\d+$/.test(a) ? o : -1).filter((a) => a >= 0).pop();
1193
1193
  if (r == null) return null;
@@ -1195,14 +1195,14 @@ function Co(t) {
1195
1195
  return { id: n[r], h: e.searchParams.get("h") ?? (s && /^[0-9a-f]{6,}$/i.test(s) ? s : null) };
1196
1196
  }
1197
1197
  function xo(t) {
1198
- const e = zt(t);
1198
+ const e = It(t);
1199
1199
  if (!e) return null;
1200
1200
  if (/(^|\.)dai\.ly$/i.test(e.hostname)) return e.pathname.split("/").filter(Boolean)[0] ?? null;
1201
1201
  const n = /\/video\/([a-z0-9]+)/i.exec(e.pathname);
1202
1202
  return n ? n[1] : null;
1203
1203
  }
1204
1204
  function So(t) {
1205
- const e = zt(t);
1205
+ const e = It(t);
1206
1206
  if (!e) return null;
1207
1207
  const n = e.pathname.split("/").filter(Boolean);
1208
1208
  if (/^clips\.twitch\.tv$/i.test(e.hostname)) return n[0] ? { clip: n[0] } : null;
@@ -1249,23 +1249,23 @@ function Hi(t, e) {
1249
1249
  case "facebook":
1250
1250
  return `https://www.facebook.com/plugins/video.php?${new URLSearchParams({ href: t, autoplay: String(!!e.play), mute: "1", show_text: "false", show_captions: "false" })}`;
1251
1251
  case "tiktok": {
1252
- const u = /\/video\/(\d+)/.exec(((s = zt(t)) == null ? void 0 : s.pathname) ?? "");
1252
+ const u = /\/video\/(\d+)/.exec(((s = It(t)) == null ? void 0 : s.pathname) ?? "");
1253
1253
  return u ? `https://www.tiktok.com/embed/v2/${u[1]}?${new URLSearchParams({ autoplay: String(r), muted: "1", controls: "0" })}` : null;
1254
1254
  }
1255
1255
  case "x": {
1256
- const u = /\/status(?:es)?\/(\d+)/.exec(((a = zt(t)) == null ? void 0 : a.pathname) ?? "");
1256
+ const u = /\/status(?:es)?\/(\d+)/.exec(((a = It(t)) == null ? void 0 : a.pathname) ?? "");
1257
1257
  return u ? `https://platform.twitter.com/embed/Tweet.html?${new URLSearchParams({ id: u[1], theme: "dark", dnt: "true" })}` : null;
1258
1258
  }
1259
1259
  case "instagram": {
1260
- const u = /\/(?:p|reel|reels|tv)\/([\w-]+)/.exec(((o = zt(t)) == null ? void 0 : o.pathname) ?? "");
1260
+ const u = /\/(?:p|reel|reels|tv)\/([\w-]+)/.exec(((o = It(t)) == null ? void 0 : o.pathname) ?? "");
1261
1261
  return u ? `https://www.instagram.com/p/${u[1]}/embed` : null;
1262
1262
  }
1263
1263
  case "kick": {
1264
- const u = (l = zt(t)) == null ? void 0 : l.pathname.split("/").filter(Boolean)[0];
1264
+ const u = (l = It(t)) == null ? void 0 : l.pathname.split("/").filter(Boolean)[0];
1265
1265
  return u ? `https://player.kick.com/${encodeURIComponent(u.toLowerCase())}?${new URLSearchParams({ autoplay: String(!!e.play), muted: "true" })}` : null;
1266
1266
  }
1267
1267
  case "streamable": {
1268
- const u = (c = zt(t)) == null ? void 0 : c.pathname.split("/").filter(Boolean).pop();
1268
+ const u = (c = It(t)) == null ? void 0 : c.pathname.split("/").filter(Boolean).pop();
1269
1269
  return u ? `https://streamable.com/e/${u}?${new URLSearchParams({ autoplay: String(r), muted: "1", nocontrols: "1" })}${e.t ? `#t=${un(e.t)}` : ""}` : null;
1270
1270
  }
1271
1271
  default:
@@ -1308,27 +1308,28 @@ function Eo(t, e) {
1308
1308
  function _o(t) {
1309
1309
  return !t || t.kind !== "url" ? null : Eo(t.site, t.embedId) ?? t.url ?? null;
1310
1310
  }
1311
- function Yo({ url: t, t: e, playing: n, seekN: r, title: s }) {
1312
- const a = j(e);
1313
- a.current = e;
1314
- const [o, l] = k(!1), c = typeof window < "u" ? window.location.hostname : "localhost", u = ze(() => Hi(t, { t: a.current, play: n, host: c }), [t, n, r, c]);
1315
- return u ? /* @__PURE__ */ g(be, { children: [
1316
- o && /* @__PURE__ */ i("div", { className: "vsp-embed__bg", "aria-hidden": "true" }),
1311
+ function Yo({ url: t, t: e, playing: n, seekN: r, title: s, onToggle: a }) {
1312
+ const o = z(e);
1313
+ o.current = e;
1314
+ const [l, c] = j(!1), u = typeof window < "u" ? window.location.hostname : "localhost", d = ze(() => Hi(t, { t: o.current, play: n, host: u }), [t, n, r, u]);
1315
+ return d ? /* @__PURE__ */ g("div", { className: "txyt vsp-follow", style: l ? { background: "#000" } : void 0, children: [
1317
1316
  /* @__PURE__ */ i(
1318
1317
  "iframe",
1319
1318
  {
1320
1319
  className: "vsp-embed",
1321
- src: u,
1320
+ src: d,
1322
1321
  title: s,
1323
- style: { opacity: o ? 1 : 0 },
1324
- onLoad: () => l(!0),
1322
+ style: { opacity: l ? 1 : 0 },
1323
+ onLoad: () => c(!0),
1325
1324
  allow: "autoplay; encrypted-media; picture-in-picture; fullscreen",
1326
1325
  referrerPolicy: "strict-origin-when-cross-origin",
1327
1326
  tabIndex: -1,
1328
1327
  "aria-hidden": "true"
1329
1328
  },
1330
- u
1331
- )
1329
+ d
1330
+ ),
1331
+ /* @__PURE__ */ i("div", { "aria-hidden": "true", className: "txyt__tap", onClick: a, style: { cursor: a ? "pointer" : "default" } }),
1332
+ l && /* @__PURE__ */ i("div", { className: `txyt__paused${n ? "" : " txyt__paused--on"}`, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(Wt, { size: 44 }) }) })
1332
1333
  ] }) : null;
1333
1334
  }
1334
1335
  let Sn = null;
@@ -1350,9 +1351,9 @@ function Uo() {
1350
1351
  }
1351
1352
  let Ro = 0;
1352
1353
  function Po({ url: t, t: e, playing: n, seekN: r, onToggle: s }) {
1353
- const a = j(null), o = j(null), l = j(e);
1354
+ const a = z(null), o = z(null), l = z(e);
1354
1355
  l.current = e;
1355
- const [c, u] = k(!1), [d] = k(() => `vsp-fb-${++Ro}`);
1356
+ const [c, u] = j(!1), [d] = j(() => `vsp-fb-${++Ro}`);
1356
1357
  return S(() => {
1357
1358
  let M = !0;
1358
1359
  const h = a.current;
@@ -1408,7 +1409,7 @@ function Po({ url: t, t: e, playing: n, seekN: r, onToggle: s }) {
1408
1409
  }, [c, n]), /* @__PURE__ */ g("div", { className: "txyt vsp-follow vsp-fb", style: c ? { background: "#000" } : void 0, children: [
1409
1410
  /* @__PURE__ */ i("div", { ref: a, className: "vsp-fb__box", style: { opacity: c ? 1 : 0 } }),
1410
1411
  c && /* @__PURE__ */ i("div", { "aria-hidden": "true", className: "txyt__tap", onClick: s, style: { cursor: s ? "pointer" : "default" } }),
1411
- c && /* @__PURE__ */ i("div", { className: `txyt__paused${n ? "" : " txyt__paused--on"}`, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(Xt, { size: 44 }) }) })
1412
+ c && /* @__PURE__ */ i("div", { className: `txyt__paused${n ? "" : " txyt__paused--on"}`, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(Wt, { size: 44 }) }) })
1412
1413
  ] });
1413
1414
  }
1414
1415
  async function $o(t) {
@@ -1455,7 +1456,7 @@ function Vo(t) {
1455
1456
  }
1456
1457
  const on = /* @__PURE__ */ new Map();
1457
1458
  function Bo(t) {
1458
- const [e, n] = k(() => t ? on.get(t) ?? null : null);
1459
+ const [e, n] = j(() => t ? on.get(t) ?? null : null);
1459
1460
  return S(() => {
1460
1461
  if (!t) {
1461
1462
  n(null);
@@ -1558,7 +1559,7 @@ function pr(t) {
1558
1559
  t && (t.pause(), t.removeAttribute("src"), t.load());
1559
1560
  }
1560
1561
  function Wi(t, e) {
1561
- const [n, r] = k("off"), [s, a] = k([]), [o, l] = k(!1), c = j(null), u = j([null, null]), d = j([NaN, NaN]), M = j(0);
1562
+ const [n, r] = j("off"), [s, a] = j([]), [o, l] = j(!1), c = z(null), u = z([null, null]), d = z([NaN, NaN]), M = z(0);
1562
1563
  return S(() => {
1563
1564
  if (a([]), l(!1), !t) {
1564
1565
  r("off");
@@ -1661,7 +1662,7 @@ function hl(t) {
1661
1662
  const c = /* @__PURE__ */ new Map();
1662
1663
  for (const u of t.clips) c.set(u.sentenceId, [...c.get(u.sentenceId) ?? [], u]);
1663
1664
  return c;
1664
- }, [t.clips]), n = j(/* @__PURE__ */ new Map()), r = j(null), [s, a] = k({ missing: null, sid: null }), o = (c) => {
1665
+ }, [t.clips]), n = z(/* @__PURE__ */ new Map()), r = z(null), [s, a] = j({ missing: null, sid: null }), o = (c) => {
1665
1666
  let u = n.current.get(c);
1666
1667
  return u || (u = new Audio(), u.preload = "auto", u.src = c, n.current.set(c, u)), u;
1667
1668
  }, l = () => {
@@ -1749,7 +1750,7 @@ function gl(t, e) {
1749
1750
  };
1750
1751
  }
1751
1752
  function fl(t, e) {
1752
- const n = j(t);
1753
+ const n = z(t);
1753
1754
  n.current = t;
1754
1755
  const r = !!t;
1755
1756
  S(() => {
@@ -1770,11 +1771,11 @@ function fl(t, e) {
1770
1771
  }
1771
1772
  }, [r, e]);
1772
1773
  }
1773
- function jt(t) {
1774
+ function zt(t) {
1774
1775
  const e = Math.max(0, Math.floor(t)), n = Math.floor(e / 3600), r = Math.floor(e % 3600 / 60), s = e % 60, a = String(r).padStart(2, "0"), o = String(s).padStart(2, "0");
1775
1776
  return n > 0 ? `${n}:${a}:${o}` : `${a}:${o}`;
1776
1777
  }
1777
- function Kt() {
1778
+ function Jt() {
1778
1779
  return {
1779
1780
  segments: /* @__PURE__ */ new Map(),
1780
1781
  sentences: /* @__PURE__ */ new Map(),
@@ -1799,7 +1800,7 @@ function dn(t, e) {
1799
1800
  return (e ?? []).map((n, r) => ({ text: String(n.text ?? ""), prob: n.prob ?? null, start: n.start ?? 0, end: n.end ?? 0, alts: n.alts, ...n.script === !0 ? { script: !0 } : {}, ...n.script === !0 && typeof n.recognized == "string" ? { recognized: n.recognized } : {}, seq: t, idx: r }));
1800
1801
  }
1801
1802
  function mr(t, e) {
1802
- const n = e ?? Kt();
1803
+ const n = e ?? Jt();
1803
1804
  delete n.numbers, n.state = t.state, t.speakerLabels && (n.labels = t.speakerLabels), n.lastSeq = Math.max(n.lastSeq, t.lastSeq), n.spans = t.spans.map((r) => ({ wallStart: r.wallStart, wallEnd: r.wallEnd ?? null, mediaStart: r.mediaStart, mediaEnd: r.mediaEnd ?? null }));
1804
1805
  for (const r of t.segments) {
1805
1806
  const s = r.scriptPos;
@@ -2038,7 +2039,7 @@ function yl(t) {
2038
2039
  confidence: Tl(s),
2039
2040
  latencyS: o == null ? void 0 : o.latencyS,
2040
2041
  settled: r.settled || s.length > 0 && s.every((l) => l.settled),
2041
- translations: Object.keys(r.translations).length ? r.translations : wl(s),
2042
+ translations: Object.keys(r.translations).length ? r.translations : vl(s),
2042
2043
  speaker: r.speaker >= 0 ? r.speaker : (o == null ? void 0 : o.speaker) ?? -1
2043
2044
  });
2044
2045
  }
@@ -2053,14 +2054,14 @@ function Tl(t) {
2053
2054
  }
2054
2055
  return n ? e / n : void 0;
2055
2056
  }
2056
- function wl(t) {
2057
+ function vl(t) {
2057
2058
  const e = {};
2058
2059
  for (const n of t) for (const [r, s] of Object.entries(n.translations)) e[r] = e[r] ? `${e[r]} ${s}` : s;
2059
2060
  return e;
2060
2061
  }
2061
- const vl = 0.85, Ll = 0.75;
2062
+ const wl = 0.85, Ll = 0.75;
2062
2063
  function kl(t) {
2063
- return t == null ? "" : t < Ll ? "low" : t < vl ? "mid" : "";
2064
+ return t == null ? "" : t < Ll ? "low" : t < wl ? "mid" : "";
2064
2065
  }
2065
2066
  const Dn = ["a", "b", "c", "d", "e", "f", "g", "h"];
2066
2067
  function jl(t) {
@@ -2158,7 +2159,7 @@ const Cl = /* @__PURE__ */ new Set([
2158
2159
  NotSupportedError: "The audio couldn't be loaded. Try again in a moment.",
2159
2160
  AbortError: "It was cancelled."
2160
2161
  };
2161
- function It(t) {
2162
+ function bt(t) {
2162
2163
  const e = t, n = typeof (e == null ? void 0 : e.code) == "string" ? e.code : void 0, r = typeof (e == null ? void 0 : e.status) == "number" ? e.status : void 0, s = e == null ? void 0 : e.details;
2163
2164
  if (n || r && r >= 400) {
2164
2165
  const o = typeof (e == null ? void 0 : e.requestId) == "string" && e.requestId ? { requestId: e.requestId } : {};
@@ -2168,7 +2169,7 @@ function It(t) {
2168
2169
  return a === "TypeError" && /fetch|network|load failed/i.test(String((e == null ? void 0 : e.message) ?? "")) ? (typeof navigator < "u" && navigator.onLine !== !1 && Di(t instanceof Error ? t : new Error(String(t))), { message: Nr }) : gi[a] ? { message: gi[a] } : t instanceof Error && a === "Error" && !(t instanceof Ci) ? { message: t.message } : { message: xr };
2169
2170
  }
2170
2171
  const qi = "https://api.vocalstack.com", Vr = Oi(null);
2171
- function Wt() {
2172
+ function Ft() {
2172
2173
  const t = Ga(Vr);
2173
2174
  if (!t) throw new Error("VocalStack player hooks must be used inside <VocalStackPlayer> or <PlayerApiProvider>");
2174
2175
  return t;
@@ -2185,12 +2186,12 @@ function Al(t) {
2185
2186
  return Dl.test(t);
2186
2187
  }
2187
2188
  function Ki(t) {
2188
- const e = t.listen ?? null, n = e ? null : t.listenerToken ?? null, r = !e && !n && !!t.token && (!t.id || Al(t.id)), s = (t.baseUrl ?? qi).replace(/\/$/, ""), a = j(t.token);
2189
+ const e = t.listen ?? null, n = e ? null : t.listenerToken ?? null, r = !e && !n && !!t.token && (!t.id || Al(t.id)), s = (t.baseUrl ?? qi).replace(/\/$/, ""), a = z(t.token);
2189
2190
  a.current = t.token;
2190
2191
  const o = !!t.token, l = ze(() => async () => {
2191
2192
  const h = a.current;
2192
2193
  return (typeof h == "function" ? await h() : h) || void 0;
2193
- }, []), [c, u] = k(() => {
2194
+ }, []), [c, u] = j(() => {
2194
2195
  const h = t.token, f = typeof h == "function" ? h() : h;
2195
2196
  return typeof f == "string" && f ? f : null;
2196
2197
  });
@@ -2240,14 +2241,14 @@ async function _l(t, e) {
2240
2241
  };
2241
2242
  }
2242
2243
  function Yl(t, e) {
2243
- const [n, r] = k(null), [s, a] = k(!1), [o, l] = k(null), [c, u] = k(0);
2244
+ const [n, r] = j(null), [s, a] = j(!1), [o, l] = j(null), [c, u] = j(0);
2244
2245
  return S(() => {
2245
2246
  let d = !0;
2246
2247
  return _l(t, e).then((M) => {
2247
2248
  d && (r(M), a(!1), l(null));
2248
2249
  }).catch((M) => {
2249
2250
  if (!d) return;
2250
- const h = It(M);
2251
+ const h = bt(M);
2251
2252
  h.code === "not_found" || h.status === 404 ? a(!0) : l(h);
2252
2253
  }), () => {
2253
2254
  d = !1;
@@ -2255,7 +2256,7 @@ function Yl(t, e) {
2255
2256
  }, [t, e, c]), { source: n, gone: s, error: o, reload: () => u((d) => d + 1) };
2256
2257
  }
2257
2258
  function Ul(t, e) {
2258
- const [n, r] = k(null);
2259
+ const [n, r] = j(null);
2259
2260
  return S(() => {
2260
2261
  if (!t.owner || !e) {
2261
2262
  r(null);
@@ -2289,7 +2290,7 @@ async function fi(t, e, n = {}) {
2289
2290
  }
2290
2291
  const yr = /* @__PURE__ */ new Map();
2291
2292
  function Ji() {
2292
- const t = Wt(), [e, n] = k(yr.get(t.origin) ?? null);
2293
+ const t = Ft(), [e, n] = j(yr.get(t.origin) ?? null);
2293
2294
  return S(() => {
2294
2295
  yr.has(t.origin) || t.client.languages.list().then((r) => {
2295
2296
  yr.set(t.origin, r), n(r);
@@ -2298,26 +2299,26 @@ function Ji() {
2298
2299
  }, [t]), e;
2299
2300
  }
2300
2301
  function Xi(t, e) {
2301
- const [n, r] = k(null), [s, a] = k(null), [o, l] = k(0);
2302
+ const [n, r] = j(null), [s, a] = j(null), [o, l] = j(0);
2302
2303
  return S(() => {
2303
2304
  let c = !0;
2304
- return t().then((u) => c && r(u)).catch((u) => c && a(It(u))), () => {
2305
+ return t().then((u) => c && r(u)).catch((u) => c && a(bt(u))), () => {
2305
2306
  c = !1;
2306
2307
  };
2307
2308
  }, [...e, o]), { data: n, error: s, reload: () => l((c) => c + 1) };
2308
2309
  }
2309
2310
  const Rl = (t) => new Promise((e) => setTimeout(e, t)), Pl = 2500, $l = 72;
2310
2311
  function Ql(t, e) {
2311
- const n = Wt(), r = j(n);
2312
+ const n = Ft(), r = z(n);
2312
2313
  r.current = n;
2313
- const [s, a] = k(Kt), o = j(Kt()), l = j(null), c = j(e.lang ?? null), [u, d] = k(!1), [M, h] = k(null), [f, p] = k(!1), y = Ke(() => {
2314
+ const [s, a] = j(Jt), o = z(Jt()), l = z(null), c = z(e.lang ?? null), [u, d] = j(!1), [M, h] = j(null), [f, p] = j(!1), y = Ke(() => {
2314
2315
  const A = o.current;
2315
2316
  a({ ...A });
2316
- }, []), T = j(e);
2317
+ }, []), T = z(e);
2317
2318
  T.current = e, S(() => {
2318
2319
  if (!t) return;
2319
- let A = !0, w = 0;
2320
- o.current = Kt(), a(Kt()), p(!1);
2320
+ let A = !0, v = 0;
2321
+ o.current = Jt(), a(Jt()), p(!1);
2321
2322
  const _ = n.client;
2322
2323
  let O = o.current.state;
2323
2324
  const te = () => {
@@ -2335,11 +2336,11 @@ function Ql(t, e) {
2335
2336
  Z.close();
2336
2337
  return;
2337
2338
  }
2338
- w = 0, l.current = Z, c.current !== pe && Z.setLanguage(c.current), d(!0), h(null), o.current = mr(Z.snapshot, o.current), y(), te();
2339
+ v = 0, l.current = Z, c.current !== pe && Z.setLanguage(c.current), d(!0), h(null), o.current = mr(Z.snapshot, o.current), y(), te();
2339
2340
  for await (const le of Z) {
2340
2341
  if (!A) break;
2341
2342
  if (le.type === "snapshot")
2342
- o.current = mr(le.snapshot, le.reason === "gap" ? o.current : Kt()), y(), te();
2343
+ o.current = mr(le.snapshot, le.reason === "gap" ? o.current : Jt()), y(), te();
2343
2344
  else if (le.type === "frame") {
2344
2345
  Nl(o.current, le.frame);
2345
2346
  const Te = le.frame;
@@ -2348,7 +2349,7 @@ function Ql(t, e) {
2348
2349
  }
2349
2350
  } catch (pe) {
2350
2351
  if (!A) return;
2351
- const le = It(pe);
2352
+ const le = bt(pe);
2352
2353
  if (le.code === "not_found" || le.status === 404) {
2353
2354
  p(!0), h(le);
2354
2355
  return;
@@ -2356,7 +2357,7 @@ function Ql(t, e) {
2356
2357
  try {
2357
2358
  await _.recordings.get(t, n.readAs);
2358
2359
  } catch (Te) {
2359
- const je = It(Te);
2360
+ const je = bt(Te);
2360
2361
  if (je.code === "not_found" || je.status === 404) {
2361
2362
  p(!0), h(je);
2362
2363
  return;
@@ -2376,19 +2377,19 @@ function Ql(t, e) {
2376
2377
  }
2377
2378
  const J = o.current.state;
2378
2379
  if (!A || J === "ended" || J === "finalized" || J === "processing") return;
2379
- w += 1, await Rl(Math.min(15e3, 1e3 * 2 ** Math.min(w, 4)));
2380
+ v += 1, await Rl(Math.min(15e3, 1e3 * 2 ** Math.min(v, 4)));
2380
2381
  }
2381
2382
  })(), () => {
2382
2383
  var K;
2383
2384
  A = !1, (K = l.current) == null || K.close(), l.current = null, d(!1);
2384
2385
  };
2385
2386
  }, [t, n, e.voice]);
2386
- const [N, m] = k(!1), [b, C] = k(null), D = j(0), [V, Y] = k(null), ee = Ke((A) => {
2387
+ const [N, m] = j(!1), [b, C] = j(null), D = z(0), [V, Y] = j(null), ee = Ke((A) => {
2387
2388
  var te;
2388
2389
  if (c.current = A, (te = l.current) == null || te.setLanguage(A), !t) return;
2389
- const w = r.current.client, _ = ++D.current;
2390
+ const v = r.current.client, _ = ++D.current;
2390
2391
  m(!0), C(null);
2391
- const O = (K) => w.recordings.transcript(t, { lang: A ?? void 0, ...r.current.readAs, asListener: !r.current.owner }).then((L) => {
2392
+ const O = (K) => v.recordings.transcript(t, { lang: A ?? void 0, ...r.current.readAs, asListener: !r.current.owner }).then((L) => {
2392
2393
  _ === D.current && (o.current = mr(L, o.current), Y(A), y(), L.translationPending && K > 0 && window.setTimeout(() => {
2393
2394
  _ === D.current && O(K - 1).catch(() => {
2394
2395
  });
@@ -2399,10 +2400,10 @@ function Ql(t, e) {
2399
2400
  }).finally(() => {
2400
2401
  _ === D.current && m(!1);
2401
2402
  });
2402
- }, [y, t]), I = Ke((A, w) => {
2403
+ }, [y, t]), I = Ke((A, v) => {
2403
2404
  const _ = o.current;
2404
2405
  let O = !1;
2405
- for (const [te, K] of Object.entries(w)) {
2406
+ for (const [te, K] of Object.entries(v)) {
2406
2407
  const L = _.sentences.get(Number(te));
2407
2408
  L && (L.translations = { ...L.translations, [A]: K }, O = !0);
2408
2409
  }
@@ -2516,7 +2517,7 @@ function Jl(t, e, n) {
2516
2517
  return o += r * s[c] / a, { text: l, start: u, end: o };
2517
2518
  });
2518
2519
  }
2519
- function wr(t) {
2520
+ function vr(t) {
2520
2521
  const e = getComputedStyle(t), n = t.clientHeight * 0.45;
2521
2522
  return {
2522
2523
  top: Math.min(parseFloat(e.paddingTop) || 0, n),
@@ -2524,7 +2525,7 @@ function wr(t) {
2524
2525
  };
2525
2526
  }
2526
2527
  function Xl(t, e, n = 0) {
2527
- const r = j(() => {
2528
+ const r = z(() => {
2528
2529
  });
2529
2530
  S(() => {
2530
2531
  r.current();
@@ -2590,9 +2591,9 @@ function ec({ thumbRef: t }) {
2590
2591
  return /* @__PURE__ */ i("div", { className: "feedbar", "aria-hidden": "true", children: /* @__PURE__ */ i("div", { ref: t, className: "feedbar__thumb" }) });
2591
2592
  }
2592
2593
  function tc({ error: t, onClose: e }) {
2593
- const n = j(e);
2594
+ const n = z(e);
2594
2595
  n.current = e;
2595
- const [r, s] = k(!1), [a, o] = k(!1), l = j();
2596
+ const [r, s] = j(!1), [a, o] = j(!1), l = z();
2596
2597
  if (S(() => {
2597
2598
  o(!1), s(!1), window.clearTimeout(l.current);
2598
2599
  }, [t]), S(() => () => window.clearTimeout(l.current), []), S(() => {
@@ -2613,7 +2614,7 @@ Request id: ${t.requestId}` : t.message;
2613
2614
  /* @__PURE__ */ i(oe, { d: X.warn, size: 16, style: { color: "var(--conf-low)", flex: "none" } }),
2614
2615
  /* @__PURE__ */ g("span", { style: { flex: 1 }, children: [
2615
2616
  t.message,
2616
- u && /* @__PURE__ */ g(be, { children: [
2617
+ u && /* @__PURE__ */ g(Ce, { children: [
2617
2618
  " ",
2618
2619
  /* @__PURE__ */ i("a", { href: "https://app.vocalstack.com/billing", target: "_blank", rel: "noopener", className: "dev-link", style: { fontSize: "inherit", fontWeight: 600, whiteSpace: "nowrap" }, children: "Add credit" })
2619
2620
  ] })
@@ -2629,7 +2630,7 @@ function ed({ chip: t, note: e, scrub: n, mute: r, voice: s, prev: a, play: o, n
2629
2630
  return /* @__PURE__ */ g("div", { className: "vs-tt", children: [
2630
2631
  /* @__PURE__ */ g("div", { className: "vs-tt__r1", children: [
2631
2632
  /* @__PURE__ */ i("div", { className: "vs-tt__chip", children: t }),
2632
- e ? /* @__PURE__ */ i("div", { className: "vs-tt__scrub", children: e }) : /* @__PURE__ */ g(be, { children: [
2633
+ e ? /* @__PURE__ */ i("div", { className: "vs-tt__scrub", children: e }) : /* @__PURE__ */ g(Ce, { children: [
2633
2634
  /* @__PURE__ */ i("div", { className: "vs-tt__scrub", children: n }),
2634
2635
  /* @__PURE__ */ i("div", { className: "vs-tt__spk", children: r }),
2635
2636
  /* @__PURE__ */ i("div", { className: "vs-tt__voice", children: s })
@@ -2643,7 +2644,7 @@ function ed({ chip: t, note: e, scrub: n, mute: r, voice: s, prev: a, play: o, n
2643
2644
  ] });
2644
2645
  }
2645
2646
  function nc({ index: t, total: e, atLabel: n, durLabel: r, stepLabel: s, onSeek: a, onSeekFrac: o, onScrubStart: l, onScrubEnd: c, frac: u, glideMs: d = 260 }) {
2646
- const M = j(null), h = j(!1), [f, p] = k(null), y = Math.max(1, e), T = f ?? u, N = T != null ? Math.min(100, Math.max(0, T * 100)) : t / Math.max(1, y - 1) * 100, m = u != null && d > 0 && f == null ? `width ${d}ms linear, left ${d}ms linear` : "none", b = (D) => {
2647
+ const M = z(null), h = z(!1), [f, p] = j(null), y = Math.max(1, e), T = f ?? u, N = T != null ? Math.min(100, Math.max(0, T * 100)) : t / Math.max(1, y - 1) * 100, m = u != null && d > 0 && f == null ? `width ${d}ms linear, left ${d}ms linear` : "none", b = (D) => {
2647
2648
  var I;
2648
2649
  const V = (I = M.current) == null ? void 0 : I.getBoundingClientRect();
2649
2650
  if (!V) return;
@@ -2702,13 +2703,13 @@ function sc({ f: t, desk: e, onOpen: n }) {
2702
2703
  s,
2703
2704
  a > 0 && /* @__PURE__ */ i("span", { className: "badge__n", children: a })
2704
2705
  ] }, s);
2705
- return /* @__PURE__ */ g(be, { children: [
2706
+ return /* @__PURE__ */ g(Ce, { children: [
2706
2707
  t.script > 0 && r(e ? "SCRIPT FIX" : "SCRIPT", t.script, !0),
2707
2708
  t.manual && r(e ? "MANUAL FIX" : "MANUAL", t.manualCount, t.script === 0)
2708
2709
  ] });
2709
2710
  }
2710
2711
  function ic({ onOpen: t, alone: e }) {
2711
- const [n, r] = k(!1);
2712
+ const [n, r] = j(!1);
2712
2713
  return /* @__PURE__ */ g("span", { role: "button", title: "Fix this line", className: `badge badge--pen${n ? " is-over" : ""}`, style: { marginLeft: e ? "auto" : 0 }, onMouseEnter: () => r(!0), onMouseLeave: () => r(!1), onClick: (s) => {
2713
2714
  s.stopPropagation(), t();
2714
2715
  }, children: [
@@ -2717,7 +2718,7 @@ function ic({ onOpen: t, alone: e }) {
2717
2718
  ] });
2718
2719
  }
2719
2720
  function ac(t, e, n, r) {
2720
- const s = Wt(), [a, o] = k([]), [l, c] = k(0), u = j(/* @__PURE__ */ new Set()), d = j(!1), M = ze(() => new Map(n.filter((f) => f.sentenceId != null).map((f) => [f.sentenceId, f])), [n]);
2721
+ const s = Ft(), [a, o] = j([]), [l, c] = j(0), u = z(/* @__PURE__ */ new Set()), d = z(!1), M = ze(() => new Map(n.filter((f) => f.sentenceId != null).map((f) => [f.sentenceId, f])), [n]);
2721
2722
  S(() => {
2722
2723
  u.current = /* @__PURE__ */ new Set();
2723
2724
  }, [t, e]);
@@ -2843,7 +2844,7 @@ function uc({ roster: t, selected: e, onSelect: n, noClone: r, building: s, shor
2843
2844
  }) }) : null;
2844
2845
  }
2845
2846
  function dc({ cast: t, voices: e, currentId: n, armedId: r = null, sampleId: s = null, dlId: a = null, onPick: o, onAdd: l, onUse: c, usedBy: u, foldKey: d, foldFor: M = null, problem: h, noClone: f = null, t: p }) {
2846
- const y = ze(() => lc(e, p), [e, p]), [T, N] = k({});
2847
+ const y = ze(() => lc(e, p), [e, p]), [T, N] = j({});
2847
2848
  S(() => {
2848
2849
  N({});
2849
2850
  }, [d, M]);
@@ -2859,7 +2860,7 @@ function dc({ cast: t, voices: e, currentId: n, armedId: r = null, sampleId: s =
2859
2860
  /* @__PURE__ */ i("span", { style: { flex: "none", marginTop: -1 }, children: /* @__PURE__ */ i(lo, { value: h, label: "Copy this error" }) })
2860
2861
  ] }),
2861
2862
  t,
2862
- f && /* @__PURE__ */ g(be, { children: [
2863
+ f && /* @__PURE__ */ g(Ce, { children: [
2863
2864
  /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 7, padding: "14px 2px 6px", userSelect: "none" }, children: /* @__PURE__ */ i("span", { style: { font: "600 9px var(--vs-font-mono)", letterSpacing: ".13em", color: "var(--ink-62)" }, children: p.vcSheet }) }),
2864
2865
  /* @__PURE__ */ g("div", { role: f.action ? "button" : "status", tabIndex: f.action ? 0 : void 0, title: f.tip, onClick: f.action, onKeyDown: f.action ? (D) => {
2865
2866
  (D.key === "Enter" || D.key === " ") && (D.preventDefault(), f.action());
@@ -2872,7 +2873,7 @@ function dc({ cast: t, voices: e, currentId: n, armedId: r = null, sampleId: s =
2872
2873
  ] })
2873
2874
  ] }),
2874
2875
  y.map(({ v: D, headOn: V, head: Y, headCount: ee, rule: I }, F) => {
2875
- const A = oc(D), w = a === D.id, _ = b(Y), O = (u == null ? void 0 : u(D)) ?? null;
2876
+ const A = oc(D), v = a === D.id, _ = b(Y), O = (u == null ? void 0 : u(D)) ?? null;
2876
2877
  return /* @__PURE__ */ g(qa, { children: [
2877
2878
  V && Y === p.vcSheet && /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", padding: "14px 2px 6px", borderTop: F === 0 && !f ? "0" : "1px solid var(--hair)", userSelect: "none" }, children: /* @__PURE__ */ i("span", { style: { font: "600 9px var(--vs-font-mono)", letterSpacing: ".13em", color: "var(--ink-62)" }, children: Y }) }),
2878
2879
  V && Y !== p.vcSheet && /* @__PURE__ */ g(
@@ -2902,7 +2903,7 @@ function dc({ cast: t, voices: e, currentId: n, armedId: r = null, sampleId: s =
2902
2903
  onClick: () => o(D),
2903
2904
  style: { width: "100%", textAlign: "left", font: "inherit", border: 0, borderTop: _ ? I : "0", display: "flex", alignItems: "center", gap: 11, padding: _ ? "11px 8px" : "0px 8px", margin: "0 -6px", borderRadius: 10, background: r === D.id ? "var(--brand-tint)" : "transparent", cursor: "pointer", opacity: _ ? 1 : 0, maxHeight: _ ? 120 : 0, overflow: "hidden", transition: "max-height 280ms cubic-bezier(.32,.72,0,1),padding 280ms cubic-bezier(.32,.72,0,1),opacity 200ms ease" },
2904
2905
  children: [
2905
- /* @__PURE__ */ i("span", { title: w ? "Downloading this voice" : void 0, style: { flex: "none", width: 32, height: 32, borderRadius: "50%", background: w ? "transparent" : D.cloned ? "var(--brand-soft)" : "var(--fill-06)", display: "flex", alignItems: "center", justifyContent: "center" }, children: w ? /* @__PURE__ */ i("span", { style: { width: 16, height: 16, borderRadius: "50%", border: "2px solid var(--fill-10)", borderTopColor: "var(--brand)", animation: "vs-spin .7s linear infinite" } }) : s === D.id ? /* @__PURE__ */ g("span", { className: "vcplay", children: [
2906
+ /* @__PURE__ */ i("span", { title: v ? "Downloading this voice" : void 0, style: { flex: "none", width: 32, height: 32, borderRadius: "50%", background: v ? "transparent" : D.cloned ? "var(--brand-soft)" : "var(--fill-06)", display: "flex", alignItems: "center", justifyContent: "center" }, children: v ? /* @__PURE__ */ i("span", { style: { width: 16, height: 16, borderRadius: "50%", border: "2px solid var(--fill-10)", borderTopColor: "var(--brand)", animation: "vs-spin .7s linear infinite" } }) : s === D.id ? /* @__PURE__ */ g("span", { className: "vcplay", children: [
2906
2907
  /* @__PURE__ */ i("span", { className: "vcplay__eq", children: /* @__PURE__ */ i(hc, { height: 13, width: 2.5 }) }),
2907
2908
  /* @__PURE__ */ i("span", { className: "vcplay__stop", children: /* @__PURE__ */ i(io, { size: 11 }) })
2908
2909
  ] }) : /* @__PURE__ */ i(oe, { d: D.cloned ? X.voiceClone : D.gender === "female" ? X.venus : D.gender === "male" ? X.mars : X.mic, size: 15, sw: 1.6, style: { color: D.cloned ? "var(--brand)" : "var(--ink-55)" } }) }),
@@ -2949,7 +2950,7 @@ function Dr(t, e) {
2949
2950
  return { flag: e ? (n == null ? void 0 : n.flag) ?? "🌐" : Mc, code: e ? e.toUpperCase() : "", label: (n == null ? void 0 : n.native) ?? "As spoken", name: (n == null ? void 0 : n.name) ?? "Original" };
2950
2951
  }
2951
2952
  function gc(t, e, n = 0, r) {
2952
- const s = (r == null ? void 0 : r.id) ?? null, a = (r == null ? void 0 : r.token) ?? null, o = (r == null ? void 0 : r.shareCode) ?? null, l = Wt(), { data: c } = Xi(async () => {
2953
+ const s = (r == null ? void 0 : r.id) ?? null, a = (r == null ? void 0 : r.token) ?? null, o = (r == null ? void 0 : r.shareCode) ?? null, l = Ft(), { data: c } = Xi(async () => {
2953
2954
  if (!t || !e) return null;
2954
2955
  try {
2955
2956
  return await l.client.voices.available(t, { recording: s ?? void 0, shareCode: s ? o ?? void 0 : void 0, asOwner: l.owner });
@@ -2963,14 +2964,14 @@ function fc(t) {
2963
2964
  return (/* @__PURE__ */ new Set([...Object.keys(t.speakers), ...Object.keys(t.speakerIds)])).size;
2964
2965
  }
2965
2966
  function pc({ recordingId: t, lang: e, ended: n, cred: r, pickedVoice: s, sentenceIds: a }) {
2966
- const o = Wt(), { data: l, reload: c } = Xi(async () => {
2967
+ const o = Ft(), { data: l, reload: c } = Xi(async () => {
2967
2968
  if (!t || !e) return null;
2968
2969
  const K = await o.client.recordings.voice(t, e, o.readAs).catch(() => []);
2969
2970
  return { recordingId: t, lang: e, rows: K.filter((L) => L.lang === e) };
2970
2971
  }, [t, e, o, n]), u = ze(
2971
2972
  () => l && l.lang === e && l.recordingId === t ? l.rows : [],
2972
2973
  [l, e, t]
2973
- ), d = ze(() => Ui(u, s), [u, s]), M = d ? d.voiceKey || null : s, [h, f] = k(null), [p, y] = k(null), T = j(/* @__PURE__ */ new Set()), N = `${t ?? ""}|${e ?? ""}|${M ?? ""}`, m = Ke(async (K, L) => {
2974
+ ), d = ze(() => Ui(u, s), [u, s]), M = d ? d.voiceKey || null : s, [h, f] = j(null), [p, y] = j(null), T = z(/* @__PURE__ */ new Set()), N = `${t ?? ""}|${e ?? ""}|${M ?? ""}`, m = Ke(async (K, L) => {
2974
2975
  if (!t || !e || !n) return;
2975
2976
  const ie = L != null && L.size ? null : yi(K), ne = L != null && L.size ? L : ie, Z = ne && ne.size ? Object.fromEntries([...ne].map(([Te, je]) => [String(Te), je])) : null, J = `${t}|${e}|${Z ? JSON.stringify(Z) : K ?? ""}`;
2976
2977
  if (T.current.has(J)) return;
@@ -2989,7 +2990,7 @@ function pc({ recordingId: t, lang: e, ended: n, cred: r, pickedVoice: s, senten
2989
2990
  const K = `${t ?? ""}|${e ?? ""}|`;
2990
2991
  for (const L of [...T.current]) L.startsWith(K) && T.current.delete(L);
2991
2992
  y(null);
2992
- }, [t, e]), C = !!d && (d.state === "queued" || d.state === "running") || h === N, D = (d == null ? void 0 : d.state) === "failed" ? d.error || "the render failed" : p, V = (a == null ? void 0 : a.join(",")) ?? "", [Y, ee] = k(null), I = ze(() => new Set((d == null ? void 0 : d.clips) ?? []), [d]), F = ze(() => n && V ? V.split(",").map(Number).filter((K) => !I.has(K)) : [], [n, V, I]), A = j(null);
2993
+ }, [t, e]), C = !!d && (d.state === "queued" || d.state === "running") || h === N, D = (d == null ? void 0 : d.state) === "failed" ? d.error || "the render failed" : p, V = (a == null ? void 0 : a.join(",")) ?? "", [Y, ee] = j(null), I = ze(() => new Set((d == null ? void 0 : d.clips) ?? []), [d]), F = ze(() => n && V ? V.split(",").map(Number).filter((K) => !I.has(K)) : [], [n, V, I]), A = z(null);
2993
2994
  S(() => {
2994
2995
  if (!n || !t || !e || !F.length) return;
2995
2996
  const K = Y ?? F[0], L = F.find((pe) => pe >= K) ?? F[0], ie = `${t}|${e}|${M ?? ""}`, ne = A.current;
@@ -3002,25 +3003,25 @@ function pc({ recordingId: t, lang: e, ended: n, cred: r, pickedVoice: s, senten
3002
3003
  A.current = null;
3003
3004
  });
3004
3005
  }, [n, t, e, M, Y, F, o]);
3005
- const w = F.length > 0, _ = j({ n: -1, at: 0 });
3006
+ const v = F.length > 0, _ = z({ n: -1, at: 0 });
3006
3007
  S(() => {
3007
- if (!w) return;
3008
+ if (!v) return;
3008
3009
  const K = setInterval(() => {
3009
3010
  const L = I.size;
3010
3011
  L !== _.current.n && (_.current = { n: L, at: Date.now() }), !(Date.now() - _.current.at > 10 * 6e4) && c();
3011
3012
  }, 3e3);
3012
3013
  return () => clearInterval(K);
3013
- }, [w, c, I]);
3014
+ }, [v, c, I]);
3014
3015
  const O = ze(() => {
3015
3016
  if (!t) return [];
3016
3017
  const K = V ? V.split(",").map(Number).filter((ie) => !n || I.has(ie)) : void 0, L = d ?? (K != null && K.length && e ? { lang: e, voiceKey: s ?? "", clips: [], voice: null } : null);
3017
- return vo(L, t, o.origin, r, K);
3018
+ return wo(L, t, o.origin, r, K);
3018
3019
  }, [d, t, o, r, V, e, s, n, I]), te = ze(() => new Set(F), [F]);
3019
3020
  return { listed: l, rows: u, track: d, renderVoiceId: M, rendering: C, failed: D, clips: O, requestRender: m, forget: b, reload: c, setNear: ee, missing: F.length, coming: te };
3020
3021
  }
3021
3022
  const mc = { share: X.share, delay: X.tabGauge, video: X.video, source: X.tabSources, script: X.tabScript, fix: X.tabFix, ending: X.tabEnding, summary: X.tabSummary, export: X.tabExport, settings: X.tabSettings, sources: X.tabSources, recs: X.mic };
3022
3023
  function ia({ tabs: t, current: e, onPick: n, gap: r, fold: s = !0, side: a = !s }) {
3023
- const o = s && t.length <= 3, l = t.some((T) => T.key === e), [c, u] = k(null), d = j(null), [M, h] = k(0);
3024
+ const o = s && t.length <= 3, l = t.some((T) => T.key === e), [c, u] = j(null), d = z(null), [M, h] = j(0);
3024
3025
  S(() => {
3025
3026
  d.current && h(d.current.offsetWidth);
3026
3027
  }, [c == null ? void 0 : c.k]);
@@ -3063,7 +3064,7 @@ function ia({ tabs: t, current: e, onPick: n, gap: r, fold: s = !0, side: a = !s
3063
3064
  }
3064
3065
  const Nc = "M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3", yc = "m9 9 10.5-3m0 6.553v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 1 1-.99-3.467l2.31-.66a2.25 2.25 0 0 0 1.632-2.163Zm0 0V2.25L9 5.25v10.303m0 0v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 0 1-.99-3.467l2.31-.66A2.25 2.25 0 0 0 9 15.553Z";
3065
3066
  function Tc({ audio: t, video: e, formats: n, onExport: r }) {
3066
- const [s, a] = k(null), [o, l] = k(null), c = j(void 0), u = j(!0);
3067
+ const [s, a] = j(null), [o, l] = j(null), c = z(void 0), u = z(!0);
3067
3068
  S(() => (u.current = !0, () => {
3068
3069
  u.current = !1, window.clearTimeout(c.current);
3069
3070
  }), []);
@@ -3083,7 +3084,7 @@ function Tc({ audio: t, video: e, formats: n, onExport: r }) {
3083
3084
  }).finally(() => {
3084
3085
  u.current && l(null);
3085
3086
  }));
3086
- }, f = (p, y, T, N) => /* @__PURE__ */ g(be, { children: [
3087
+ }, f = (p, y, T, N) => /* @__PURE__ */ g(Ce, { children: [
3087
3088
  /* @__PURE__ */ i(zr, { style: { letterSpacing: ".12em", color: "var(--ink-35)" }, children: N }),
3088
3089
  /* @__PURE__ */ g("button", { type: "button", className: "dlrow", disabled: o != null, "aria-busy": o === p || void 0, onClick: () => h(p, y), style: o && o !== p ? { opacity: 0.45 } : void 0, children: [
3089
3090
  o === p ? /* @__PURE__ */ i(ht, { size: 17, color: "var(--brand)", track: "var(--fill-12)" }) : /* @__PURE__ */ i(oe, { d: T, size: 17, sw: 1.5, style: { flex: "none", color: "var(--ink-70)" } }),
@@ -3097,7 +3098,7 @@ function Tc({ audio: t, video: e, formats: n, onExport: r }) {
3097
3098
  return /* @__PURE__ */ g("div", { style: { display: "flex", flexDirection: "column", gap: 10 }, children: [
3098
3099
  t && f("audio", t, yc, "DOWNLOAD AUDIO"),
3099
3100
  e && f("video", e, X.video, "DOWNLOAD VIDEO"),
3100
- n !== !1 && /* @__PURE__ */ g(be, { children: [
3101
+ n !== !1 && /* @__PURE__ */ g(Ce, { children: [
3101
3102
  /* @__PURE__ */ i(zr, { style: { letterSpacing: ".12em", color: "var(--ink-35)" }, children: "EXPORT AS" }),
3102
3103
  /* @__PURE__ */ i("div", { className: "fmtgrid", children: Sr.map((p) => /* @__PURE__ */ g("button", { type: "button", className: "fmtgrid__cell", title: o === p.key ? `Building the ${p.name}…` : p.note, disabled: o != null, "aria-busy": o === p.key || void 0, onClick: () => M(p.key), style: o && o !== p.key ? { opacity: 0.45 } : void 0, children: [
3103
3104
  o === p.key ? /* @__PURE__ */ i(ht, { size: 16, color: "var(--brand)", track: "var(--fill-12)" }) : /* @__PURE__ */ i(oe, { d: s === p.key ? X.check : p.icon, size: 16, sw: 1.6, style: { color: s === p.key ? "var(--brand)" : "var(--ink-62)" } }),
@@ -3120,9 +3121,9 @@ function Hr(t, e, n) {
3120
3121
  }
3121
3122
  r();
3122
3123
  }
3123
- function wc(t, e, n) {
3124
- const [r, s] = k(null), a = t.state === "ready", o = `${e ?? ""}|${n ?? ""}|${a ? `${t.title}
3125
- ${t.summary}` : ""}`, l = Wt();
3124
+ function vc(t, e, n) {
3125
+ const [r, s] = j(null), a = t.state === "ready", o = `${e ?? ""}|${n ?? ""}|${a ? `${t.title}
3126
+ ${t.summary}` : ""}`, l = Ft();
3126
3127
  return S(() => {
3127
3128
  if (!e || !n || !a) return;
3128
3129
  let c = !0;
@@ -3137,13 +3138,13 @@ ${t.summary}` : ""}`, l = Wt();
3137
3138
  };
3138
3139
  }, [o, l]), !n || !a ? t : (r == null ? void 0 : r.key) === o ? r.s : { state: "pending", retry: t.retry };
3139
3140
  }
3140
- function vc(t) {
3141
+ function wc(t) {
3141
3142
  return t != null && t.title && (t != null && t.summary) ? { state: "ready", title: t.title, summary: t.summary, retry: () => {
3142
3143
  } } : { state: "unavailable", retry: () => {
3143
3144
  } };
3144
3145
  }
3145
3146
  function Lc({ s: t }) {
3146
- const [e, n] = k(!1), r = j(void 0);
3147
+ const [e, n] = j(!1), r = z(void 0);
3147
3148
  S(() => () => window.clearTimeout(r.current), []);
3148
3149
  const s = t.title ?? "", a = t.summary ?? "", o = () => {
3149
3150
  var c;
@@ -3163,7 +3164,7 @@ ${a}`).catch(() => {
3163
3164
  e ? "Copied" : "Copy"
3164
3165
  ] })
3165
3166
  ] }),
3166
- t.state === "ready" ? /* @__PURE__ */ g(be, { children: [
3167
+ t.state === "ready" ? /* @__PURE__ */ g(Ce, { children: [
3167
3168
  /* @__PURE__ */ i("div", { style: { fontSize: 15, fontWeight: 600, lineHeight: 1.3, letterSpacing: "-.15px", color: "var(--ink-96)", textWrap: "pretty" }, children: s }),
3168
3169
  /* @__PURE__ */ i("div", { style: { fontSize: 13, fontWeight: 300, lineHeight: 1.55, color: "var(--ink-80)", textWrap: "pretty", whiteSpace: "pre-line" }, children: a })
3169
3170
  ] }) : t.state === "unavailable" ? l("No summary for this recording.") : t.state === "not_requested" ? t.request ? l("This recording was made without a summary.", { label: "Summarize", onClick: t.request }) : l("Recordings under a minute and files of a batch are not summarised.") : /* @__PURE__ */ g("div", { style: { display: "flex", alignItems: "center", gap: 10, fontSize: 13, fontWeight: 300, color: "var(--ink-45)" }, children: [
@@ -3181,7 +3182,7 @@ function kc({ ytId: t, title: e, timeLabel: n, radius: r, style: s, large: a, ch
3181
3182
  ] });
3182
3183
  }
3183
3184
  function jc(t = !0, e) {
3184
- const n = j(null), r = e ?? n;
3185
+ const n = z(null), r = e ?? n;
3185
3186
  return S(() => {
3186
3187
  const s = r.current;
3187
3188
  if (!s || !t) return;
@@ -3242,7 +3243,7 @@ function Ic(t, e) {
3242
3243
  return { id: t, tabbed: a && M.length > 1, cur: h, seq: d, pinnable: o, tabKeys: M, stripTabs: e.tabs.filter((m) => M.includes(m.key)), panel: N, pin: p, unpin: y };
3243
3244
  }
3244
3245
  function bc({ col: t, order: e, render: n, grip: r, onPick: s, wrapClass: a }) {
3245
- return Oc(t), /* @__PURE__ */ g(be, { children: [
3246
+ return Oc(t), /* @__PURE__ */ g(Ce, { children: [
3246
3247
  e.map((o) => {
3247
3248
  const l = t.panel(o);
3248
3249
  if (!l.show) return null;
@@ -3259,7 +3260,7 @@ function bc({ col: t, order: e, render: n, grip: r, onPick: s, wrapClass: a }) {
3259
3260
  ] });
3260
3261
  }
3261
3262
  function Oc(t) {
3262
- const e = j(t);
3263
+ const e = z(t);
3263
3264
  e.current = t;
3264
3265
  const n = t.id;
3265
3266
  S(() => {
@@ -3298,17 +3299,17 @@ function Oc(t) {
3298
3299
  const m = e.current, b = N.key, C = o(N), D = m.seq.includes(b), V = D || m.tabKeys.length > 1, Y = C && N.tabsSnap, ee = !Y || N.py < Y.top + Y.height / 2 ? V ? "pin" : null : "tabs";
3299
3300
  let I = null;
3300
3301
  if (ee === "pin") {
3301
- const A = m.seq.filter((_) => _ !== b).map((_) => N.snap[_]).filter(Boolean), w = N.grid ? A.filter((_) => _.bottom < N.py || _.top <= N.py && _.left + _.width / 2 < N.px).length : A.filter((_) => _.top + _.height / 2 < N.py).length;
3302
- D && m.seq.indexOf(b) === w || (I = { zone: ee, idx: w });
3302
+ const A = m.seq.filter((_) => _ !== b).map((_) => N.snap[_]).filter(Boolean), v = N.grid ? A.filter((_) => _.bottom < N.py || _.top <= N.py && _.left + _.width / 2 < N.px).length : A.filter((_) => _.top + _.height / 2 < N.py).length;
3303
+ D && m.seq.indexOf(b) === v || (I = { zone: ee, idx: v });
3303
3304
  } else ee === "tabs" && D && (I = { zone: ee });
3304
3305
  const F = I ? I.zone + (I.idx ?? "") : "";
3305
3306
  if (F !== N.sig) {
3306
- if (N.sig = F, N.target = I, N.orig.forEach(([A, w]) => {
3307
- A.style.order = w;
3307
+ if (N.sig = F, N.target = I, N.orig.forEach(([A, v]) => {
3308
+ A.style.order = v;
3308
3309
  }), (I == null ? void 0 : I.zone) === "pin") {
3309
- const A = m.seq.filter((w) => w !== b);
3310
- A.splice(I.idx, 0, b), A.forEach((w, _) => {
3311
- const O = N.col.querySelector(`[data-panel-key="${w}"]`);
3310
+ const A = m.seq.filter((v) => v !== b);
3311
+ A.splice(I.idx, 0, b), A.forEach((v, _) => {
3312
+ const O = N.col.querySelector(`[data-panel-key="${v}"]`);
3312
3313
  O && (O.style.order = String(_ + 1));
3313
3314
  });
3314
3315
  } else (I == null ? void 0 : I.zone) === "tabs" && (N.el.style.order = "998");
@@ -3360,7 +3361,7 @@ function Oc(t) {
3360
3361
  }, [n]);
3361
3362
  }
3362
3363
  function Cc({ id: t, className: e, gap: n, hidden: r, plain: s, children: a }) {
3363
- const [o, l] = zo(t), c = j(null), u = j(null);
3364
+ const [o, l] = zo(t), c = z(null), u = z(null);
3364
3365
  xc(u), S(() => {
3365
3366
  document.documentElement.style.setProperty("--colw", `${o}px`);
3366
3367
  }, [o]);
@@ -3380,7 +3381,7 @@ function Cc({ id: t, className: e, gap: n, hidden: r, plain: s, children: a }) {
3380
3381
  };
3381
3382
  window.addEventListener("pointermove", I), window.addEventListener("pointerup", F), window.addEventListener("pointercancel", F);
3382
3383
  }, M = r ? { display: "none" } : void 0;
3383
- return /* @__PURE__ */ g(be, { children: [
3384
+ return /* @__PURE__ */ g(Ce, { children: [
3384
3385
  /* @__PURE__ */ i("div", { "aria-hidden": "true", className: "colgrip", style: { marginRight: -n, ...M }, children: /* @__PURE__ */ i("div", { className: "colgrip__bar", style: { left: -(n / 2 + 6) }, title: "Drag to resize · double-click to reset", onPointerDown: d, onDoubleClick: () => l(null) }) }),
3385
3386
  /* @__PURE__ */ i("div", { ref: c, "data-tab-col": t, className: `${e} sidecol`, style: { flex: `0 0 ${o}px`, ...M }, children: s ? a : /* @__PURE__ */ i("div", { ref: u, "data-panel-grid": "", className: "panelgrid", children: a }) })
3386
3387
  ] });
@@ -3418,7 +3419,7 @@ function Sc(t) {
3418
3419
  }
3419
3420
  const Dc = 1500, Ac = 3e5;
3420
3421
  function Ec(t) {
3421
- const e = Wt(), [n, r] = k(null), [s, a] = k(null), [o, l] = k(null), [c, u] = k(null), d = j(null), M = j(null), h = j(null), f = j(0), p = Ke(() => {
3422
+ const e = Ft(), [n, r] = j(null), [s, a] = j(null), [o, l] = j(null), [c, u] = j(null), d = z(null), M = z(null), h = z(null), f = z(0), p = Ke(() => {
3422
3423
  h.current && (clearTimeout(h.current), h.current = null), d.current && (d.current.pause(), d.current.removeAttribute("src"), d.current.load(), d.current = null), M.current && (URL.revokeObjectURL(M.current), M.current = null);
3423
3424
  }, []), y = Ke(() => {
3424
3425
  f.current += 1, p(), a(null), l(null);
@@ -3444,7 +3445,7 @@ function Ec(t) {
3444
3445
  Y = await fetch(C, { headers: A ? { Authorization: `Bearer ${A}` } : {} });
3445
3446
  } catch (A) {
3446
3447
  if (f.current !== b) return;
3447
- l(null), u(It(A));
3448
+ l(null), u(bt(A));
3448
3449
  return;
3449
3450
  }
3450
3451
  if (f.current !== b) return;
@@ -3506,14 +3507,14 @@ function En(t, e, n) {
3506
3507
  function Yc(t) {
3507
3508
  return t.on ? t.want || t.relang ? "asked" : t.playing && (t.preparing || t.starting != null) ? "line" : null : null;
3508
3509
  }
3509
- const wi = "Preparing the voice…";
3510
+ const vi = "Preparing the voice…";
3510
3511
  function Uc(t) {
3511
3512
  if (!t.lang) return null;
3512
3513
  const e = t.langName;
3513
3514
  return t.translateFailed === t.lang ? { kind: "translateFailed", lang: e } : t.voiceFailed ? { kind: "voiceFailed", lang: e } : t.translating ? { kind: "translating", lang: e } : t.starting != null ? { kind: "starting", lang: e, since: t.starting } : t.relang || t.slowLine ? { kind: "voice", lang: e, since: t.lineSince } : null;
3514
3515
  }
3515
3516
  function oa(t, e) {
3516
- const [n, r] = k(null), [s, a] = k(!1);
3517
+ const [n, r] = j(null), [s, a] = j(!1);
3517
3518
  return S(() => {
3518
3519
  if (!t) {
3519
3520
  r(null), a(!1);
@@ -3527,7 +3528,7 @@ function oa(t, e) {
3527
3528
  }
3528
3529
  const Rc = (t) => `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
3529
3530
  function Pc({ state: t, line: e, onRetry: n, onOriginal: r }) {
3530
- const [s, a] = k(() => Date.now());
3531
+ const [s, a] = j(() => Date.now());
3531
3532
  S(() => {
3532
3533
  if (t.since == null) return;
3533
3534
  const d = setInterval(() => a(Date.now()), 1e3);
@@ -3579,7 +3580,7 @@ function la(t, e, n) {
3579
3580
  const a = (s ?? r.text).split(/\s+/).filter(Boolean), o = ((c = r.words[0]) == null ? void 0 : c.start) ?? r.start, l = ra(r, t[e + 1], r.start + Math.max(2, a.length * 0.4));
3580
3581
  return Jl(a, o, l).map((u, d) => ({ ...u, seq: r.seqs[0] ?? 0, idx: d }));
3581
3582
  }
3582
- function vi(t, e, n) {
3583
+ function wi(t, e, n) {
3583
3584
  if (!t.engaged || e !== t.idx || !n.length) return null;
3584
3585
  if (!t.wordSync) return t.clipPos ? Ri(n.map((a) => ({ t: a.text, sp: " " })), t.clipPos) : null;
3585
3586
  const r = t.t;
@@ -3600,7 +3601,7 @@ function Ht(t, e, n) {
3600
3601
  return r != null && r > e ? r : (t == null ? void 0 : t.end) != null && t.end > e ? t.end : n > e ? n : e + 4;
3601
3602
  }
3602
3603
  function $c({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd: o, endT: l, onGone: c, onKnown: u, lead: d, onTime: M, waiting: h = !1 }) {
3603
- const f = j(null), [p, y] = k(!1);
3604
+ const f = z(null), [p, y] = j(!1);
3604
3605
  S(() => {
3605
3606
  if (!h) {
3606
3607
  y(!1);
@@ -3609,34 +3610,34 @@ function $c({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd:
3609
3610
  const W = setTimeout(() => y(!0), 300);
3610
3611
  return () => clearTimeout(W);
3611
3612
  }, [h]);
3612
- const T = r && !p, N = j(!1), [m, b] = k(!1), C = (W, ye = []) => {
3613
+ const T = r && !p, N = z(!1), [m, b] = j(!1), C = (W, ye = []) => {
3613
3614
  var G, ke;
3614
3615
  if (!(N.current && (W === "pauseVideo" || W === "seekTo" || W === "setPlaybackRate")))
3615
3616
  try {
3616
3617
  (ke = (G = f.current) == null ? void 0 : G.contentWindow) == null || ke.postMessage(JSON.stringify({ event: "command", func: W, args: ye }), "*");
3617
3618
  } catch {
3618
3619
  }
3619
- }, D = j(null), V = j(!1), Y = j(!1), ee = j(!1), I = j(a);
3620
+ }, D = z(null), V = z(!1), Y = z(!1), ee = z(!1), I = z(a);
3620
3621
  I.current = a;
3621
- const F = j(d);
3622
+ const F = z(d);
3622
3623
  F.current = d;
3623
- const A = j(o);
3624
+ const A = z(o);
3624
3625
  A.current = o;
3625
- const w = j(!1), _ = () => {
3626
+ const v = z(!1), _ = () => {
3626
3627
  var ye, G;
3627
3628
  const W = Y.current || ee.current;
3628
3629
  if (W !== N.current)
3629
3630
  if (N.current = W, b(W), (ye = A.current) == null || ye.call(A, W), W) {
3630
3631
  if (C("playVideo"), F.current) return;
3631
- we.current && I.current && (w.current = !0, I.current());
3632
- } else w.current && !F.current && (w.current = !1, we.current || (G = I.current) == null || G.call(I));
3633
- }, O = j(n);
3632
+ ve.current && I.current && (v.current = !0, I.current());
3633
+ } else v.current && !F.current && (v.current = !1, ve.current || (G = I.current) == null || G.call(I));
3634
+ }, O = z(n);
3634
3635
  O.current = n;
3635
- const te = j(M);
3636
+ const te = z(M);
3636
3637
  te.current = M;
3637
- const K = j(null), L = j(null), [ie, ne] = k(!0), [Z, J] = k(!1), pe = () => {
3638
+ const K = z(null), L = z(null), [ie, ne] = j(!0), [Z, J] = j(!1), pe = () => {
3638
3639
  C("unloadModule", ["captions"]), C("unloadModule", ["cc"]);
3639
- }, le = j([]), Te = () => {
3640
+ }, le = z([]), Te = () => {
3640
3641
  pe(), le.current.forEach(clearTimeout), le.current = [400, 1200, 2500, 5e3].map((W) => window.setTimeout(pe, W));
3641
3642
  };
3642
3643
  S(() => () => le.current.forEach(clearTimeout), []);
@@ -3651,15 +3652,15 @@ function $c({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd:
3651
3652
  S(() => (d == null || d.bind(C), () => d == null ? void 0 : d.bind(null)), [!!d]), S(() => {
3652
3653
  !d && Z && C("mute");
3653
3654
  }, [!!d]);
3654
- const Se = j(null), ve = j(l);
3655
- ve.current = l;
3656
- const we = j(T);
3657
- we.current = T;
3658
- const Ee = j(!1), Re = j(c);
3655
+ const Se = z(null), we = z(l);
3656
+ we.current = l;
3657
+ const ve = z(T);
3658
+ ve.current = T;
3659
+ const Ee = z(!1), Re = z(c);
3659
3660
  Re.current = c;
3660
- const De = j(u);
3661
+ const De = z(u);
3661
3662
  De.current = u;
3662
- const Q = j(!1), [H, E] = k(!1), x = (W) => {
3663
+ const Q = z(!1), [H, E] = j(!1), x = (W) => {
3663
3664
  const ye = Se.current;
3664
3665
  return !!ye && (W < ye.start - 1 || W > ye.end + 5);
3665
3666
  }, B = () => {
@@ -3680,10 +3681,10 @@ function $c({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd:
3680
3681
  typeof ke == "number" && ke > 0 && !V.current && (D.current == null ? D.current = ke : (Y.current = Math.abs(ke - D.current) > 1.5, _())), (G == null ? void 0 : G.event) === "onReady" && ((!F.current || F.current.muted) && C("mute"), Te(), (Ve = F.current) == null || Ve.onInfo({ ready: !0 })), typeof (($ = G == null ? void 0 : G.info) == null ? void 0 : $.playerState) == "number" && (G.info.playerState !== L.current && (G.info.playerState === 1 || G.info.playerState === 2) && Te(), L.current = G.info.playerState, ne(G.info.playerState !== 1 && G.info.playerState !== 3), (Me = F.current) == null || Me.onInfo({ state: G.info.playerState }));
3681
3682
  const Ie = (ue = G == null ? void 0 : G.info) == null ? void 0 : ue.progressState;
3682
3683
  if (Ie && typeof Ie.seekableStart == "number" && typeof Ie.seekableEnd == "number" && Ie.seekableEnd > Ie.seekableStart) {
3683
- const Oe = Se.current == null;
3684
- if (Se.current = { start: Ie.seekableStart, end: Ie.seekableEnd }, Oe && !we.current && (C("pauseVideo"), x(O.current) || C("seekTo", [O.current, !0])), !Q.current && ve.current != null) {
3684
+ const be = Se.current == null;
3685
+ if (Se.current = { start: Ie.seekableStart, end: Ie.seekableEnd }, be && !ve.current && (C("pauseVideo"), x(O.current) || C("seekTo", [O.current, !0])), !Q.current && we.current != null) {
3685
3686
  Q.current = !0;
3686
- const Ne = ve.current < Ie.seekableStart - 1;
3687
+ const Ne = we.current < Ie.seekableStart - 1;
3687
3688
  (ae = De.current) == null || ae.call(De, Ne), Ne && ((fe = Re.current) == null || fe.call(Re));
3688
3689
  }
3689
3690
  }
@@ -3719,7 +3720,7 @@ function $c({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd:
3719
3720
  }, [Z]), /* @__PURE__ */ g("div", { className: `txyt${m ? " txyt--ad" : ""}`, children: [
3720
3721
  /* @__PURE__ */ i("iframe", { ref: f, onLoad: je, referrerPolicy: "strict-origin-when-cross-origin", src: `https://www.youtube-nocookie.com/embed/${t}?enablejsapi=1&mute=1&controls=0&rel=0&modestbranding=1&playsinline=1&iv_load_policy=3`, title: e, allow: "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" }),
3721
3722
  !m && /* @__PURE__ */ i("div", { "aria-hidden": "true", className: "txyt__tap", onClick: a, style: { cursor: a ? "pointer" : "default" } }),
3722
- /* @__PURE__ */ i("div", { className: `txyt__paused${ie && !m && !H ? " txyt__paused--on" : ""}`, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(Xt, { size: 44 }) }) }),
3723
+ /* @__PURE__ */ i("div", { className: `txyt__paused${ie && !m && !H ? " txyt__paused--on" : ""}`, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(Wt, { size: 44 }) }) }),
3723
3724
  m && /* @__PURE__ */ i("div", { className: "txyt__ad", "aria-live": "polite", children: "Ad on YouTube · the transcript carries on after it" }),
3724
3725
  H && /* @__PURE__ */ g("div", { className: "txyt__gone", children: [
3725
3726
  /* @__PURE__ */ i("span", { children: "YouTube no longer has this part of the broadcast" }),
@@ -3727,7 +3728,7 @@ function $c({ ytId: t, title: e, t: n, playing: r, seekN: s, onToggle: a, onAd:
3727
3728
  ] })
3728
3729
  ] });
3729
3730
  }
3730
- const Qc = /* @__PURE__ */ g(be, { children: [
3731
+ const Qc = /* @__PURE__ */ g(Ce, { children: [
3731
3732
  /* @__PURE__ */ i("rect", { x: "6.5", y: "5", width: "3.75", height: "14", rx: "1.2" }),
3732
3733
  /* @__PURE__ */ i("rect", { x: "13.75", y: "5", width: "3.75", height: "14", rx: "1.2" })
3733
3734
  ] }), Vc = /* @__PURE__ */ i("path", { d: "M7.5 5.6a1 1 0 0 1 1.52-.85l9.1 5.55a1 1 0 0 1 0 1.7l-9.1 5.55a1 1 0 0 1-1.52-.85V5.6Z" });
@@ -3736,16 +3737,16 @@ function Bc({ player: t, size: e }) {
3736
3737
  return /* @__PURE__ */ i("button", { type: "button", className: `mutebtn${e < 36 ? " mutebtn--sm" : e > 36 ? " mutebtn--lg" : ""}`, "aria-label": n, title: n, "aria-pressed": t.muted, onClick: t.toggleMute, children: /* @__PURE__ */ i(oe, { d: t.muted ? X.volumeOff : X.volume, size: 17, sw: 1.6, style: { color: t.muted ? "var(--ink-38)" : "var(--ink-70)" } }) });
3737
3738
  }
3738
3739
  function Hc() {
3739
- const [t, e] = k(""), n = j(null), r = Ke((s) => {
3740
+ const [t, e] = j(""), n = z(null), r = Ke((s) => {
3740
3741
  clearTimeout(n.current), e(s), n.current = setTimeout(() => e(""), 3e3);
3741
3742
  }, []);
3742
3743
  return S(() => () => clearTimeout(n.current), []), [t, r];
3743
3744
  }
3744
3745
  const Wc = 0.2, Fc = 140, Zc = 320;
3745
3746
  function Gc(t, e) {
3746
- const n = j(t);
3747
+ const n = z(t);
3747
3748
  n.current = t;
3748
- const r = j(0), s = j(1), a = Ke((o, l) => {
3749
+ const r = z(0), s = z(1), a = Ke((o, l) => {
3749
3750
  cancelAnimationFrame(r.current);
3750
3751
  const c = s.current, u = performance.now(), d = () => {
3751
3752
  const M = l > 0 ? Math.min(1, (performance.now() - u) / l) : 1;
@@ -3764,18 +3765,18 @@ function Gc(t, e) {
3764
3765
  }
3765
3766
  function qc(t, e, n, r) {
3766
3767
  var De;
3767
- const s = j(null), a = j(!1), o = j(!1), [l, c] = k(null), [u, d] = k(!0), M = j(!0), h = j(!1), [f, p] = k(0), y = j(0);
3768
+ const s = z(null), a = z(!1), o = z(!1), [l, c] = j(null), [u, d] = j(!0), M = z(!0), h = z(!1), [f, p] = j(0), y = z(0);
3768
3769
  y.current = f;
3769
- const T = j({ t: 0, at: 0 }), N = j(n);
3770
+ const T = z({ t: 0, at: 0 }), N = z(n);
3770
3771
  N.current = n;
3771
- const m = j(r);
3772
+ const m = z(r);
3772
3773
  m.current = r;
3773
- const [b, C] = k(!1), D = j(!1), V = (Q) => {
3774
+ const [b, C] = j(!1), D = z(!1), V = (Q) => {
3774
3775
  D.current = Q, C(Q);
3775
3776
  }, Y = (Q, H) => {
3776
3777
  var E;
3777
3778
  return (E = s.current) == null ? void 0 : E.call(s, Q, H);
3778
- }, ee = l === 1 || l === 3, I = j(null), F = j(null), A = ze(() => ({
3779
+ }, ee = l === 1 || l === 3, I = z(null), F = z(null), A = ze(() => ({
3779
3780
  muted: !0,
3780
3781
  bind: (Q) => {
3781
3782
  s.current = Q, Q || (a.current = !1);
@@ -3804,15 +3805,15 @@ function qc(t, e, n, r) {
3804
3805
  }, [b, r, f]), S(() => {
3805
3806
  r == null && D.current && (V(!1), Y("playVideo"));
3806
3807
  }, [r]);
3807
- const w = t.length ? ((De = t[t.length - 1].words[t[t.length - 1].words.length - 1]) == null ? void 0 : De.end) ?? t[t.length - 1].start + 4 : 0, _ = e || w || 1, O = ze(() => {
3808
+ const v = t.length ? ((De = t[t.length - 1].words[t[t.length - 1].words.length - 1]) == null ? void 0 : De.end) ?? t[t.length - 1].start + 4 : 0, _ = e || v || 1, O = ze(() => {
3808
3809
  if (!t.length) return 0;
3809
3810
  let Q = 0;
3810
3811
  for (let H = 0; H < t.length; H++) t[H].start <= f + 0.05 && (Q = H);
3811
3812
  return Q;
3812
- }, [t, f]), [te, K] = k(0), L = (Q) => {
3813
+ }, [t, f]), [te, K] = j(0), L = (Q) => {
3813
3814
  const H = Math.max(0, m.current != null ? Math.min(Q, Math.max(0, m.current - 0.5)) : Q);
3814
3815
  Y("seekTo", [H + N.current, !0]), T.current = { t: H, at: performance.now() }, p(H), K((E) => E + 1);
3815
- }, ie = j(!1), ne = j(void 0), Z = (Q) => {
3816
+ }, ie = z(!1), ne = z(void 0), Z = (Q) => {
3816
3817
  window.clearTimeout(ne.current), ne.current = window.setTimeout(() => {
3817
3818
  !ie.current || Q <= 0 || I.current === 1 || I.current === 3 || (Y("playVideo"), Z(Q - 1));
3818
3819
  }, 1200);
@@ -3843,12 +3844,12 @@ function qc(t, e, n, r) {
3843
3844
  }, Te = (Q) => {
3844
3845
  const H = t[Math.max(0, Math.min(t.length - 1, Q))];
3845
3846
  H && L(H.start);
3846
- }, je = j(!1), Se = () => {
3847
+ }, je = z(!1), Se = () => {
3847
3848
  const Q = M.current || h.current;
3848
3849
  A.muted = Q, Y(Q ? "mute" : "unMute");
3849
- }, ve = (Q) => {
3850
- M.current = Q, d(Q), Se();
3851
3850
  }, we = (Q) => {
3851
+ M.current = Q, d(Q), Se();
3852
+ }, ve = (Q) => {
3852
3853
  h.current !== !Q && (h.current = !Q, Se());
3853
3854
  };
3854
3855
  return { player: {
@@ -3858,10 +3859,10 @@ function qc(t, e, n, r) {
3858
3859
  return E();
3859
3860
  };
3860
3861
  if (!await H(() => a.current, 1e4)) return null;
3861
- ve(!0);
3862
+ we(!0);
3862
3863
  for (let E = 0; E < 5 && I.current !== 1; E++)
3863
3864
  Y("playVideo"), await H(() => I.current === 1, 1500);
3864
- return I.current !== 1 ? null : h.current ? (ve(!0), !1) : (ve(!1), await Q(1200), I.current === 1 && F.current === !1 ? !0 : (ve(!0), Y("playVideo"), !1));
3865
+ return I.current !== 1 ? null : h.current ? (we(!0), !1) : (we(!1), await Q(1200), I.current === 1 && F.current === !1 ? !0 : (we(!0), Y("playVideo"), !1));
3865
3866
  },
3866
3867
  playing: ee,
3867
3868
  ended: l === 0,
@@ -3874,8 +3875,8 @@ function qc(t, e, n, r) {
3874
3875
  seekRow: Te,
3875
3876
  toggleMute: () => {
3876
3877
  const Q = !M.current;
3877
- ve(Q), !Q && !h.current && I.current === 1 && setTimeout(() => {
3878
- I.current === 2 && !M.current && (ve(!0), Y("playVideo"));
3878
+ we(Q), !Q && !h.current && I.current === 1 && setTimeout(() => {
3879
+ I.current === 2 && !M.current && (we(!0), Y("playVideo"));
3879
3880
  }, 900);
3880
3881
  },
3881
3882
  seekFrac: (Q) => L(Math.max(0, Math.min(1, Q)) * _),
@@ -3903,15 +3904,15 @@ function qc(t, e, n, r) {
3903
3904
  wordSync: !0,
3904
3905
  pause: pe,
3905
3906
  setVolume: (Q) => Y("setVolume", [Math.round(Q * 100)])
3906
- }, lead: A, setVideoSound: we };
3907
+ }, lead: A, setVideoSound: ve };
3907
3908
  }
3908
3909
  function Kc(t, e, n, r, s = 0, a = null) {
3909
3910
  var E;
3910
- const o = j(null), [l, c] = k(!1), [u, d] = k(0), [M, h] = k(!1), f = j(M);
3911
+ const o = z(null), [l, c] = j(!1), [u, d] = j(0), [M, h] = j(!1), f = z(M);
3911
3912
  f.current = M;
3912
- const p = j(!1), [y, T] = k(null), [N, m] = k(!1), b = j(s);
3913
+ const p = z(!1), [y, T] = j(null), [N, m] = j(!1), b = z(s);
3913
3914
  b.current = s;
3914
- const C = j(null), [D, V] = k(0);
3915
+ const C = z(null), [D, V] = j(0);
3915
3916
  S(() => {
3916
3917
  m(!1);
3917
3918
  const x = C.current;
@@ -3922,7 +3923,7 @@ function Kc(t, e, n, r, s = 0, a = null) {
3922
3923
  const B = _i(t), ce = b.current;
3923
3924
  return B.preload = "metadata", B.muted = f.current || p.current, B.onplay = () => c(!0), B.onpause = () => c(!1), B.onended = () => c(!1), B.onloadedmetadata = () => {
3924
3925
  m(!0), B.currentTime = ((x == null ? void 0 : x.t) ?? 0) + ce, x != null && x.playing && B.play().catch((W) => {
3925
- x.asked && (W == null ? void 0 : W.name) === "NotAllowedError" || T(It(W));
3926
+ x.asked && (W == null ? void 0 : W.name) === "NotAllowedError" || T(bt(W));
3926
3927
  });
3927
3928
  }, B.onerror = () => {
3928
3929
  c(!1);
@@ -3936,13 +3937,13 @@ function Kc(t, e, n, r, s = 0, a = null) {
3936
3937
  }, [t, D]), S(() => () => {
3937
3938
  C.current = null;
3938
3939
  }, []);
3939
- const Y = n.length ? ((E = n[n.length - 1].words[n[n.length - 1].words.length - 1]) == null ? void 0 : E.end) ?? n[n.length - 1].start + 4 : 0, ee = s > 0 || r != null && N && o.current != null && Number.isFinite(o.current.duration) && o.current.duration > r + 1, I = !ee && N && o.current && Number.isFinite(o.current.duration) && o.current.duration || r || Y || 1, F = j(I);
3940
+ const Y = n.length ? ((E = n[n.length - 1].words[n[n.length - 1].words.length - 1]) == null ? void 0 : E.end) ?? n[n.length - 1].start + 4 : 0, ee = s > 0 || r != null && N && o.current != null && Number.isFinite(o.current.duration) && o.current.duration > r + 1, I = !ee && N && o.current && Number.isFinite(o.current.duration) && o.current.duration || r || Y || 1, F = z(I);
3940
3941
  F.current = I;
3941
- const A = j(ee);
3942
+ const A = z(ee);
3942
3943
  A.current = ee;
3943
- const w = j(a);
3944
- w.current = a;
3945
- const [_, O] = k(!1), te = j(!1), K = (x) => {
3944
+ const v = z(a);
3945
+ v.current = a;
3946
+ const [_, O] = j(!1), te = z(!1), K = (x) => {
3946
3947
  te.current = x, O(x);
3947
3948
  };
3948
3949
  S(() => {
@@ -3964,7 +3965,7 @@ function Kc(t, e, n, r, s = 0, a = null) {
3964
3965
  ce.pause(), d(F.current);
3965
3966
  return;
3966
3967
  }
3967
- if (w.current != null && W >= w.current) {
3968
+ if (v.current != null && W >= v.current) {
3968
3969
  K(!0), ce.pause(), d(W);
3969
3970
  return;
3970
3971
  }
@@ -3979,11 +3980,11 @@ function Kc(t, e, n, r, s = 0, a = null) {
3979
3980
  let x = 0;
3980
3981
  for (let B = 0; B < n.length; B++) n[B].start <= u + 0.05 && (x = B);
3981
3982
  return x;
3982
- }, [n, u]), [ie, ne] = k(0), Z = (x) => {
3983
- const B = w.current != null ? Math.min(x, Math.max(0, w.current - 0.5)) : x, ce = o.current;
3983
+ }, [n, u]), [ie, ne] = j(0), Z = (x) => {
3984
+ const B = v.current != null ? Math.min(x, Math.max(0, v.current - 0.5)) : x, ce = o.current;
3984
3985
  d(B), ce && (ce.currentTime = B + b.current), ne((W) => W + 1);
3985
3986
  }, J = (x) => {
3986
- (x == null ? void 0 : x.name) !== "AbortError" && T(It(x));
3987
+ (x == null ? void 0 : x.name) !== "AbortError" && T(bt(x));
3987
3988
  }, pe = () => {
3988
3989
  var B;
3989
3990
  const x = o.current;
@@ -4018,16 +4019,16 @@ function Kc(t, e, n, r, s = 0, a = null) {
4018
4019
  }
4019
4020
  K(!1), ce.play().catch(J);
4020
4021
  }
4021
- }, Se = (x) => Z(x.start), ve = (x) => {
4022
+ }, Se = (x) => Z(x.start), we = (x) => {
4022
4023
  le(x);
4023
4024
  const B = o.current;
4024
4025
  B && B.paused && B.play().catch(J);
4025
- }, we = j(!1), Ee = j(0), Re = () => {
4026
+ }, ve = z(!1), Ee = z(0), Re = () => {
4026
4027
  var x;
4027
- l && ((x = o.current) == null || x.pause(), we.current = !0);
4028
+ l && ((x = o.current) == null || x.pause(), ve.current = !0);
4028
4029
  }, De = () => {
4029
4030
  var x;
4030
- we.current && (we.current = !1, (x = o.current) == null || x.play().catch(J));
4031
+ ve.current && (ve.current = !1, (x = o.current) == null || x.play().catch(J));
4031
4032
  };
4032
4033
  return {
4033
4034
  autoplay: async () => {
@@ -4063,7 +4064,7 @@ function Kc(t, e, n, r, s = 0, a = null) {
4063
4064
  seekFrac: Te,
4064
4065
  resumeAt: je,
4065
4066
  seekWord: Se,
4066
- playRow: ve,
4067
+ playRow: we,
4067
4068
  seekN: ie,
4068
4069
  stop: () => {
4069
4070
  const x = o.current;
@@ -4071,7 +4072,7 @@ function Kc(t, e, n, r, s = 0, a = null) {
4071
4072
  },
4072
4073
  videoAt: (x) => {
4073
4074
  const B = o.current;
4074
- if (!B || B.paused || B.ended || we.current || Date.now() - Ee.current < 3e3) return;
4075
+ if (!B || B.paused || B.ended || ve.current || Date.now() - Ee.current < 3e3) return;
4075
4076
  const ce = x + b.current;
4076
4077
  Math.abs(B.currentTime - ce) <= 0.2 || (Ee.current = Date.now(), B.currentTime = ce);
4077
4078
  },
@@ -4098,19 +4099,19 @@ function Kc(t, e, n, r, s = 0, a = null) {
4098
4099
  };
4099
4100
  }
4100
4101
  function Jc(t, e, n, r, s, a, o = !1, l) {
4101
- const c = j(/* @__PURE__ */ new Set());
4102
+ const c = z(/* @__PURE__ */ new Set());
4102
4103
  c.current = l ?? c.current;
4103
- const u = j(null), [d, M] = k(!1), [h, f] = k(0), [p, y] = k(0), [T, N] = k(!1), m = j(T);
4104
+ const u = z(null), [d, M] = j(!1), [h, f] = j(0), [p, y] = j(0), [T, N] = j(!1), m = z(T);
4104
4105
  m.current = T;
4105
- const [b, C] = k(null), [D, V] = k(null), [Y, ee] = k(null), [I, F] = k(null), A = j(I);
4106
+ const [b, C] = j(null), [D, V] = j(null), [Y, ee] = j(null), [I, F] = j(null), A = z(I);
4106
4107
  A.current = I;
4107
- const [w, _] = k(null), [O, te] = k(null), [K, L] = k(null), [ie, ne] = k(!1), Z = j(e);
4108
+ const [v, _] = j(null), [O, te] = j(null), [K, L] = j(null), [ie, ne] = j(!1), Z = z(e);
4108
4109
  Z.current = e;
4109
- const J = j(o), pe = j([]);
4110
+ const J = z(o), pe = z([]);
4110
4111
  J.current = o, u.current && (u.current.flow = o);
4111
- const le = j(null), Te = j(s);
4112
+ const le = z(null), Te = z(s);
4112
4113
  Te.current = s;
4113
- const je = j(a);
4114
+ const je = z(a);
4114
4115
  je.current = a;
4115
4116
  const Se = Ke((U) => {
4116
4117
  U.finite = !0, U.coming = (R) => c.current.has(R), U.readAhead = 6, U.readAheadS = 45, U.onWaiting = (R) => V(R), U.onStarting = (R) => ee(R), U.onSentence = (R) => {
@@ -4121,17 +4122,17 @@ function Jc(t, e, n, r, s, a, o = !1, l) {
4121
4122
  M(U.playing), C(R instanceof Yi ? { message: "The voice could not be started. Press Play to try again.", code: "voice_not_started" } : { message: "A line of this reading could not be played." });
4122
4123
  }, U.gapBefore = (R, q) => {
4123
4124
  if (!J.current) return 0;
4124
- const se = Z.current, de = se.find((Ce) => Ce.sentenceId === R), Oe = se.find((Ce) => Ce.sentenceId === q);
4125
- if (!Oe) return 0;
4125
+ const se = Z.current, de = se.find((Oe) => Oe.sentenceId === R), be = se.find((Oe) => Oe.sentenceId === q);
4126
+ if (!be) return 0;
4126
4127
  const Ne = A.current;
4127
- if (R == null) return Ne && Ne.sid === q ? Math.max(0, Oe.start - Ne.t) : 0;
4128
+ if (R == null) return Ne && Ne.sid === q ? Math.max(0, be.start - Ne.t) : 0;
4128
4129
  const Le = le.current;
4129
- return Le && Date.now() - Le.at < 2e3 ? Math.max(0, Oe.start - (Le.t + (Date.now() - Le.at) / 1e3 * U.rate)) : !de || Oe.start <= de.start ? 0 : Math.max(0, Oe.start - Ht(de, de.start, de.start + 4));
4130
+ return Le && Date.now() - Le.at < 2e3 ? Math.max(0, be.start - (Le.t + (Date.now() - Le.at) / 1e3 * U.rate)) : !de || be.start <= de.start ? 0 : Math.max(0, be.start - Ht(de, de.start, de.start + 4));
4130
4131
  }, U.flow = J.current, U.silentSpan = (R) => {
4131
4132
  var $e;
4132
4133
  const q = Z.current, se = q.findIndex((ut) => ut.sentenceId === R), de = q[se];
4133
4134
  if (!de) return null;
4134
- const Oe = (($e = q[se + 1]) == null ? void 0 : $e.start) ?? Ht(de, de.start, de.start + 4), Ne = Math.max(0, Oe - de.start), Le = le.current, Ce = Le && Date.now() - Le.at < 2e3 ? Le.t + (Date.now() - Le.at) / 1e3 * (U.rate || 1) : de.start, He = Math.max(0, Math.min(Ne, Ce - de.start));
4135
+ const be = (($e = q[se + 1]) == null ? void 0 : $e.start) ?? Ht(de, de.start, de.start + 4), Ne = Math.max(0, be - de.start), Le = le.current, Oe = Le && Date.now() - Le.at < 2e3 ? Le.t + (Date.now() - Le.at) / 1e3 * (U.rate || 1) : de.start, He = Math.max(0, Math.min(Ne, Oe - de.start));
4135
4136
  return { fromS: He, ms: (Ne - He) * 1e3 / (U.rate || 1) };
4136
4137
  }, U.speakable = (R) => {
4137
4138
  const q = Te.current;
@@ -4139,7 +4140,7 @@ function Jc(t, e, n, r, s, a, o = !1, l) {
4139
4140
  const se = Z.current.find((de) => de.sentenceId === R);
4140
4141
  return !se || !q.has(se.speaker);
4141
4142
  };
4142
- }, []), ve = j(null), we = j(null), Ee = j(null), [Re, De] = k(!1), Q = j(() => {
4143
+ }, []), we = z(null), ve = z(null), Ee = z(null), [Re, De] = j(!1), Q = z(() => {
4143
4144
  }), H = (U) => {
4144
4145
  if (Ee.current = U, De(!!(U != null && U.playing)), !U) return;
4145
4146
  const R = En(U, Z.current, Ie).index;
@@ -4149,9 +4150,9 @@ function Jc(t, e, n, r, s, a, o = !1, l) {
4149
4150
  };
4150
4151
  S(() => {
4151
4152
  var q;
4152
- if (ve.current !== r) {
4153
- const se = ve.current != null ? we.current : null;
4154
- ve.current = r, (q = u.current) == null || q.stop(), u.current = new Ir(), Se(u.current), u.current.setSequence(pe.current), M(!1), f(0), C(null), ee(null), F(null), H(se && (se.playing || se.t > 0) ? se : null);
4153
+ if (we.current !== r) {
4154
+ const se = we.current != null ? ve.current : null;
4155
+ we.current = r, (q = u.current) == null || q.stop(), u.current = new Ir(), Se(u.current), u.current.setSequence(pe.current), M(!1), f(0), C(null), ee(null), F(null), H(se && (se.playing || se.t > 0) ? se : null);
4155
4156
  }
4156
4157
  const U = u.current;
4157
4158
  U.setMuted(m.current);
@@ -4165,9 +4166,9 @@ function Jc(t, e, n, r, s, a, o = !1, l) {
4165
4166
  (U = u.current) == null || U.setSequence(x);
4166
4167
  }, [x, r]), S(() => () => {
4167
4168
  var U;
4168
- (U = u.current) == null || U.stop(), u.current = null, ve.current = null;
4169
+ (U = u.current) == null || U.stop(), u.current = null, we.current = null;
4169
4170
  }, []);
4170
- const B = w != null || O != null;
4171
+ const B = v != null || O != null;
4171
4172
  S(() => {
4172
4173
  if (!d && !B) {
4173
4174
  _(null), te(null);
@@ -4176,11 +4177,11 @@ function Jc(t, e, n, r, s, a, o = !1, l) {
4176
4177
  const U = () => {
4177
4178
  var Ne, Le;
4178
4179
  const q = ((Ne = u.current) == null ? void 0 : Ne.resting()) ?? null;
4179
- ne(!!(q != null && q.silent)), q != null && q.silent && A.current && (A.current = null, F(null)), te((Ce) => q == null ? null : Ce != null && Math.abs(Ce - q.s) < 0.05 ? Ce : q.s);
4180
+ ne(!!(q != null && q.silent)), q != null && q.silent && A.current && (A.current = null, F(null)), te((Oe) => q == null ? null : Oe != null && Math.abs(Oe - q.s) < 0.05 ? Oe : q.s);
4180
4181
  const se = A.current;
4181
4182
  q == null ? L(null) : se && se.sid === q.sentenceId && (L(se.t), A.current = null, F(null));
4182
- const de = ((Le = u.current) == null ? void 0 : Le.position()) ?? null, Oe = de && je.current ? je.current[String(de.sentenceId)] ?? null : null;
4183
- se && de && de.sentenceId === se.sid && de.t > 0.1 && F(null), _((Ce) => de ? Ce && Math.abs(Ce.t - de.t) < 0.05 && Ce.dur === de.dur && Ce.words === Oe ? Ce : { t: de.t, dur: de.dur, words: Oe } : Ce == null ? Ce : null);
4183
+ const de = ((Le = u.current) == null ? void 0 : Le.position()) ?? null, be = de && je.current ? je.current[String(de.sentenceId)] ?? null : null;
4184
+ se && de && de.sentenceId === se.sid && de.t > 0.1 && F(null), _((Oe) => de ? Oe && Math.abs(Oe.t - de.t) < 0.05 && Oe.dur === de.dur && Oe.words === be ? Oe : { t: de.t, dur: de.dur, words: be } : Oe == null ? Oe : null);
4184
4185
  };
4185
4186
  U();
4186
4187
  const R = setInterval(U, 100);
@@ -4193,7 +4194,7 @@ function Jc(t, e, n, r, s, a, o = !1, l) {
4193
4194
  }, ye = (U, R) => {
4194
4195
  for (let q = U; q >= 0 && q < e.length; q += R) if (W(q)) return q;
4195
4196
  return null;
4196
- }, G = Math.max(0, Math.min(h, Math.max(0, e.length - 1))), ke = e.length ? e[e.length - 1].start + 4 : 0, Ie = n || ke || 1, Fe = j(!1), Ae = j(h);
4197
+ }, G = Math.max(0, Math.min(h, Math.max(0, e.length - 1))), ke = e.length ? e[e.length - 1].start + 4 : 0, Ie = n || ke || 1, Fe = z(!1), Ae = z(h);
4197
4198
  Ae.current = h;
4198
4199
  const he = (U) => {
4199
4200
  var R, q, se;
@@ -4201,7 +4202,7 @@ function Jc(t, e, n, r, s, a, o = !1, l) {
4201
4202
  }, _e = (U) => {
4202
4203
  var q, se, de;
4203
4204
  const R = Math.max(0, Math.min(Math.max(0, e.length - 1), U));
4204
- f(R), Ae.current = R, y((Oe) => Oe + 1), (se = u.current) == null || se.seek(((q = e[R]) == null ? void 0 : q.sentenceId) ?? null), M(!!((de = u.current) != null && de.playing));
4205
+ f(R), Ae.current = R, y((be) => be + 1), (se = u.current) == null || se.seek(((q = e[R]) == null ? void 0 : q.sentenceId) ?? null), M(!!((de = u.current) != null && de.playing));
4205
4206
  }, Ve = (U) => {
4206
4207
  var R;
4207
4208
  E(), F(null), (R = u.current) == null || R.startWithin(-1, 0), _e(U);
@@ -4209,9 +4210,9 @@ function Jc(t, e, n, r, s, a, o = !1, l) {
4209
4210
  var de;
4210
4211
  const R = e[U], q = (R == null ? void 0 : R.start) ?? 0, se = ((de = e[U + 1]) == null ? void 0 : de.start) ?? Ht(R, q, Ie);
4211
4212
  return { from: q, span: Math.max(0, se - q) };
4212
- }, Me = $(G), ue = Math.max(0, Math.min(Me.span, Ht(e[G], Me.from, Me.from + 4) - Me.from)), ae = I ? I.t : o ? O != null && ie ? Me.from + Math.min(Me.span, O) : O != null ? K != null ? Math.min(Me.from, K + O) : Me.from + Math.min(Me.span, ue + O) : w && w.dur > 0 ? Me.from + Math.min(ue, w.t / w.dur * ue) : Me.from : w && w.dur > 0 ? Me.from + Math.min(Me.span, w.t / w.dur * Me.span) : Me.from;
4213
+ }, Me = $(G), ue = Math.max(0, Math.min(Me.span, Ht(e[G], Me.from, Me.from + 4) - Me.from)), ae = I ? I.t : o ? O != null && ie ? Me.from + Math.min(Me.span, O) : O != null ? K != null ? Math.min(Me.from, K + O) : Me.from + Math.min(Me.span, ue + O) : v && v.dur > 0 ? Me.from + Math.min(ue, v.t / v.dur * ue) : Me.from : v && v.dur > 0 ? Me.from + Math.min(Me.span, v.t / v.dur * Me.span) : Me.from;
4213
4214
  S(() => {
4214
- we.current = Ee.current ?? _c(e, ae, d, Ie);
4215
+ ve.current = Ee.current ?? _c(e, ae, d, Ie);
4215
4216
  });
4216
4217
  const fe = {
4217
4218
  playing: d || Re,
@@ -4221,11 +4222,11 @@ function Jc(t, e, n, r, s, a, o = !1, l) {
4221
4222
  muted: T,
4222
4223
  wordSync: !1,
4223
4224
  timed: o,
4224
- clipPos: I ? null : w,
4225
+ clipPos: I ? null : v,
4225
4226
  videoAt: (U) => {
4226
4227
  le.current = { t: U, at: Date.now() };
4227
4228
  },
4228
- engaged: d || w != null,
4229
+ engaged: d || v != null,
4229
4230
  has: t.length > 0,
4230
4231
  preparing: D != null || Re,
4231
4232
  silent: d && ie,
@@ -4281,22 +4282,22 @@ function Jc(t, e, n, r, s, a, o = !1, l) {
4281
4282
  A.current = Mt, F(Mt), _e(Ge);
4282
4283
  return;
4283
4284
  }
4284
- const Oe = (se == null ? void 0 : se.sentenceId) ?? null, { from: Ne, span: Le } = $(q);
4285
- let Ce = Le > 0 ? Math.max(0, Math.min(1, (R - Ne) / Le)) : 0;
4286
- const He = Oe != null ? (it = je.current) == null ? void 0 : it[String(Oe)] : void 0, $e = He != null && He.length ? He[He.length - 1][1] : 0;
4285
+ const be = (se == null ? void 0 : se.sentenceId) ?? null, { from: Ne, span: Le } = $(q);
4286
+ let Oe = Le > 0 ? Math.max(0, Math.min(1, (R - Ne) / Le)) : 0;
4287
+ const He = be != null ? (it = je.current) == null ? void 0 : it[String(be)] : void 0, $e = He != null && He.length ? He[He.length - 1][1] : 0;
4287
4288
  if (se && He && He.length === se.words.length && $e > 0) {
4288
4289
  let Ge = 0;
4289
4290
  for (let st = 0; st < se.words.length; st++) se.words[st].start <= R && (Ge = st);
4290
4291
  const rt = se.words[Ge], Mt = rt.end > rt.start ? Math.max(0, Math.min(1, (R - rt.start) / (rt.end - rt.start))) : 0;
4291
- Ce = Math.min(1, (He[Ge][0] + Mt * (He[Ge][1] - He[Ge][0])) / $e);
4292
+ Oe = Math.min(1, (He[Ge][0] + Mt * (He[Ge][1] - He[Ge][0])) / $e);
4292
4293
  }
4293
- Oe != null && ((pt = u.current) == null || pt.startWithin(Oe, Ce)), F(Ce > 0.01 ? { t: R, sid: Oe } : null), _e(q);
4294
+ be != null && ((pt = u.current) == null || pt.startWithin(be, Oe)), F(Oe > 0.01 ? { t: R, sid: be } : null), _e(q);
4294
4295
  },
4295
4296
  seekWord: a ? (U) => {
4296
- var de, Oe, Ne, Le;
4297
+ var de, be, Ne, Le;
4297
4298
  const R = e[G];
4298
4299
  if (!R || R.sentenceId == null) return;
4299
- const q = R.words.findIndex((Ce) => Ce.seq === U.seq && Ce.idx === U.idx), se = q >= 0 ? (Ne = (Oe = (de = je.current) == null ? void 0 : de[String(R.sentenceId)]) == null ? void 0 : Oe[q]) == null ? void 0 : Ne[0] : void 0;
4300
+ const q = R.words.findIndex((Oe) => Oe.seq === U.seq && Oe.idx === U.idx), se = q >= 0 ? (Ne = (be = (de = je.current) == null ? void 0 : de[String(R.sentenceId)]) == null ? void 0 : be[q]) == null ? void 0 : Ne[0] : void 0;
4300
4301
  se != null && ((Le = u.current) == null || Le.seekWithin(se));
4301
4302
  } : void 0,
4302
4303
  playRow: (U) => {
@@ -4327,11 +4328,11 @@ function Jc(t, e, n, r, s, a, o = !1, l) {
4327
4328
  }
4328
4329
  };
4329
4330
  function Ye(U) {
4330
- var se, de, Oe, Ne;
4331
+ var se, de, be, Ne;
4331
4332
  const R = (se = e[U]) == null ? void 0 : se.sentenceId;
4332
4333
  if (R == null) return;
4333
4334
  f(U), Ae.current = U, F(null), A.current = null, (de = u.current) == null || de.joinSilently(R);
4334
- const q = ((Oe = u.current) == null ? void 0 : Oe.resting()) ?? null;
4335
+ const q = ((be = u.current) == null ? void 0 : be.resting()) ?? null;
4335
4336
  te((q == null ? void 0 : q.s) ?? null), ne(!!(q != null && q.silent)), M(!!((Ne = u.current) != null && Ne.playing));
4336
4337
  }
4337
4338
  return fe.joinAt = o ? (U) => {
@@ -4349,28 +4350,28 @@ function Jc(t, e, n, r, s, a, o = !1, l) {
4349
4350
  const Xc = () => {
4350
4351
  }, eu = "The language this recording is read aloud in.", tu = { title: "READ IN", note: "The transcript and its voice switch to this language." };
4351
4352
  function nu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, langs: o, srcLang: l, canTranslate: c, pickedLang: u, setPickedLang: d, side: M, hearOriginal: h = !1, timed: f = !1, stockVoices: p = !1, stickyPicker: y = !1, pickerBusy: T = null, voiceSheet: N, forcedVoice: m = null }) {
4352
- var mn, xt, Nn, an;
4353
- const { onAddVoice: b, onPickVoice: C, onSelectSpeaker: D, noCloneFor: V, castNoClone: Y, castShort: ee, castBuilding: I, castWarn: F, badge: A, titleNode: w } = N ?? {}, _ = !!N, O = !!(N != null && N.pendingClones), [te, K] = $i(), [L, ie] = k(null), [ne, Z] = k(!1), [J, pe] = k(!1), [le, Te] = k(!1), [je, Se] = k(!1), ve = u ?? l, we = u === null, Ee = u != null || L != null, De = ((P) => !!P && !!(o != null && o.voice.includes(P)))(we ? l : ve) ? we ? l : ve : "en", Q = Ec(De), H = (N == null ? void 0 : N.cloneOn) ?? !0, [E, x] = k(0), B = j(H);
4353
+ var mn, wt, Nn, an;
4354
+ const { onAddVoice: b, onPickVoice: C, onSelectSpeaker: D, noCloneFor: V, castNoClone: Y, castShort: ee, castBuilding: I, castWarn: F, badge: A, titleNode: v } = N ?? {}, _ = !!N, O = !!(N != null && N.pendingClones), [te, K] = $i(), [L, ie] = j(null), [ne, Z] = j(!1), [J, pe] = j(!1), [le, Te] = j(!1), [je, Se] = j(!1), we = u ?? l, ve = u === null, Ee = u != null || L != null, De = ((P) => !!P && !!(o != null && o.voice.includes(P)))(ve ? l : we) ? ve ? l : we : "en", Q = Ec(De), H = (N == null ? void 0 : N.cloneOn) ?? !0, [E, x] = j(0), B = z(H);
4354
4355
  S(() => {
4355
4356
  B.current !== H && (B.current = H, x((P) => P + 1));
4356
4357
  }, [H]);
4357
- const ce = gc(De, Ee || s || J, fc(e) * 1e3 + E, { id: t ?? null, shareCode: a.shareCode ?? null }), W = ze(() => ((ce == null ? void 0 : ce.voices) ?? []).filter((P) => _ || !P.cloned || P.speaker != null), [ce, _]), ye = W.length > 1, G = Dr(o, ve), ke = ea(), Ie = ze(() => Qi(o, "translation"), [o]), [Fe, Ae] = k(null), [he] = k(() => /* @__PURE__ */ new Set()), [_e, Ve] = k({}), $ = ze(() => cc(n, e, ke.vcUnknownSpk), [n, e, ke]), Me = ye && $.filter((P) => P.key >= 0).length > 1, ue = Fe != null && $.some((P) => P.key === Fe) ? Fe : ((mn = $[0]) == null ? void 0 : mn.key) ?? null, ae = ze(() => {
4358
+ const ce = gc(De, Ee || s || J, fc(e) * 1e3 + E, { id: t ?? null, shareCode: a.shareCode ?? null }), W = ze(() => ((ce == null ? void 0 : ce.voices) ?? []).filter((P) => _ || !P.cloned || P.speaker != null), [ce, _]), ye = W.length > 1, G = Dr(o, we), ke = ea(), Ie = ze(() => Qi(o, "translation"), [o]), [Fe, Ae] = j(null), [he] = j(() => /* @__PURE__ */ new Set()), [_e, Ve] = j({}), $ = ze(() => cc(n, e, ke.vcUnknownSpk), [n, e, ke]), Me = ye && $.filter((P) => P.key >= 0).length > 1, ue = Fe != null && $.some((P) => P.key === Fe) ? Fe : ((mn = $[0]) == null ? void 0 : mn.key) ?? null, ae = ze(() => {
4358
4359
  const P = Ti($, W, H);
4359
4360
  for (const [xe, Qe] of Object.entries(_e[De ?? ""] ?? {})) P.set(Number(xe), Qe);
4360
4361
  return P;
4361
- }, [$, W, _e, De, H]), fe = Me && Object.keys(_e[De ?? ""] ?? {}).length > 0, Ye = ze(() => p && !fe ? Ti($, W, !1) : null, [p, fe, $, W]), U = ze(() => fe ? Ni(ae) || null : Ye && Ni(Ye) || null, [fe, ae, Ye]), R = fe ? ae : Ye, q = W.some((P) => P.cloned && P.consent !== "pending"), se = !!ve && !!(o != null && o.voice.includes(ve)), de = se && !h, Oe = ze(
4362
+ }, [$, W, _e, De, H]), fe = Me && Object.keys(_e[De ?? ""] ?? {}).length > 0, Ye = ze(() => p && !fe ? Ti($, W, !1) : null, [p, fe, $, W]), U = ze(() => fe ? Ni(ae) || null : Ye && Ni(Ye) || null, [fe, ae, Ye]), R = fe ? ae : Ye, q = W.some((P) => P.cloned && P.consent !== "pending"), se = !!we && !!(o != null && o.voice.includes(we)), de = se && !h, be = ze(
4362
4363
  () => n.filter((P) => !P.suppressed && !P.unclear).map((P) => P.sentenceId).filter((P) => P != null),
4363
4364
  [n]
4364
- ), Ne = pc({ recordingId: t, lang: ve, ended: s, cred: a, pickedVoice: m || (U ?? L), sentenceIds: s && de ? Oe : void 0 }), Le = W.find((P) => P.id === L) ?? W.find((P) => {
4365
+ ), Ne = pc({ recordingId: t, lang: we, ended: s, cred: a, pickedVoice: m || (U ?? L), sentenceIds: s && de ? be : void 0 }), Le = W.find((P) => P.id === L) ?? W.find((P) => {
4365
4366
  var xe;
4366
4367
  return P.id === ((xe = Ne.track) == null ? void 0 : xe.voice);
4367
- }) ?? W.find((P) => P.default) ?? W[0] ?? null, Ce = (Le == null ? void 0 : Le.id) ?? null;
4368
+ }) ?? W.find((P) => P.default) ?? W[0] ?? null, Oe = (Le == null ? void 0 : Le.id) ?? null;
4368
4369
  S(() => {
4369
4370
  if (!Ne.rendering) return;
4370
4371
  const P = setInterval(Ne.reload, 4e3);
4371
4372
  return () => clearInterval(P);
4372
4373
  }, [Ne.rendering, Ne.reload]);
4373
- const He = `${t ?? ""}|${ve ?? ""}|${m || (U ?? L ?? ((xt = Ne.track) == null ? void 0 : xt.voiceKey) ?? "default")}`, $e = Jc(Ne.clips, n, r, He, he, (Nn = Ne.track) == null ? void 0 : Nn.wordTimes, f, Ne.coming);
4374
+ const He = `${t ?? ""}|${we ?? ""}|${m || (U ?? L ?? ((wt = Ne.track) == null ? void 0 : wt.voiceKey) ?? "default")}`, $e = Jc(Ne.clips, n, r, He, he, (Nn = Ne.track) == null ? void 0 : Nn.wordTimes, f, Ne.coming);
4374
4375
  S(() => {
4375
4376
  var xe;
4376
4377
  const P = (xe = n[$e.idx]) == null ? void 0 : xe.sentenceId;
@@ -4378,7 +4379,7 @@ function nu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4378
4379
  }, [$e.idx]), S(() => {
4379
4380
  !je || !$e.has || (Se(!1), $e.playing || $e.toggle());
4380
4381
  }, [je, $e.has]);
4381
- const ut = Ne.rendering, it = ut ? null : Ne.failed ?? null, pt = !1, Ge = Ee && de, rt = Ee && !we && de && !(Ne.listed && Ne.listed.lang === ve && Ne.listed.recordingId === t), Mt = {
4382
+ const ut = Ne.rendering, it = ut ? null : Ne.failed ?? null, pt = !1, Ge = Ee && de, rt = Ee && !ve && de && !(Ne.listed && Ne.listed.lang === we && Ne.listed.recordingId === t), Mt = {
4382
4383
  ...$e,
4383
4384
  has: $e.has || Ge && s,
4384
4385
  toggle: () => {
@@ -4418,18 +4419,18 @@ function nu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4418
4419
  }
4419
4420
  Z(!1), Te(!1), pe(!0);
4420
4421
  }, gn = (P) => {
4421
- if (Q.reset(), pe(Me), (ve !== De || we) && d(De), Ne.forget(), Se(!0), Me && ue != null && De) {
4422
+ if (Q.reset(), pe(Me), (we !== De || ve) && d(De), Ne.forget(), Se(!0), Me && ue != null && De) {
4422
4423
  const xe = new Map(ae);
4423
4424
  xe.set(ue, P), Ve((Qe) => ({ ...Qe, [De]: Object.fromEntries(xe) })), ie(null);
4424
4425
  return;
4425
4426
  }
4426
4427
  ie(P);
4427
- }, z = we ? { ...Dr(o, null), flag: /* @__PURE__ */ i(oe, { d: X.langAuto, size: 21, sw: 1.7, style: { color: "currentColor", display: "block" } }) } : G, Wn = c ? M ? /* @__PURE__ */ i("span", { className: "barchip", style: lt ? { background: "var(--brand-tint)", boxShadow: "0 0 0 1.5px var(--brand)" } : void 0, children: /* @__PURE__ */ i(Rn, { flag: z.flag, code: z.code, bordered: !1, onClick: tn, flagOnly: !0, label: z.label }) }) : /* @__PURE__ */ i(Rn, { flag: z.flag, code: z.code, bordered: !1, onClick: st, flagOnly: !0, label: z.label }) : null, Et = X.voiceClone, _t = Ee && (!!Ne.track || ut), Yt = it ? "var(--conf-low)" : _t || M && at ? "var(--brand)" : "var(--ink-55)", Ft = Yc({ on: Ee, want: je, relang: rt, playing: $e.playing, preparing: !!$e.preparing, starting: $e.starting }), [fn] = oa(Ft === "line", 400), qe = Ft === "asked" || Ft === "line" && fn, ot = ut || qe, nn = Ft === "asked" ? wi : $e.preparing ? `Speaking this line in ${(Le == null ? void 0 : Le.name) ?? "this voice"}…` : ut ? `Preparing this recording in ${(Le == null ? void 0 : Le.name) ?? "this voice"} — it will play as soon as it is ready` : it ? `This voice could not be prepared: ${it}` : se ? ye ? "Choose a voice" : Le ? Le.name : ke.vcNoVoice + G.label : `${ke.vcNoVoice}${G.label}`, mt = /* @__PURE__ */ i(Io, { open: ne, onClose: Be, keepOpen: (!!M || y) && !le, value: we ? null : ve, onSelect: Mn, languages: Ie, title: (M == null ? void 0 : M.title) ?? "SPOKEN LANGUAGE", note: (M == null ? void 0 : M.note) ?? eu, searchPlaceholder: ke.search, none: "Original", pinned: (we ? l : ve) ? [we ? l : ve] : [], recent: te, requireVoice: le, sticky: y, busy: T }), gt = ze(() => W.filter((P) => P.cloned && !P.auto), [W]), Zt = (P) => P.voiceId ? gt.find((xe) => xe.id === `clone:${P.voiceId}`) ?? null : null, dt = ze(() => $.filter((P) => P.key >= 0), [$]), rn = ze(() => {
4428
+ }, k = ve ? { ...Dr(o, null), flag: /* @__PURE__ */ i(oe, { d: X.langAuto, size: 21, sw: 1.7, style: { color: "currentColor", display: "block" } }) } : G, Wn = c ? M ? /* @__PURE__ */ i("span", { className: "barchip", style: lt ? { background: "var(--brand-tint)", boxShadow: "0 0 0 1.5px var(--brand)" } : void 0, children: /* @__PURE__ */ i(Rn, { flag: k.flag, code: k.code, bordered: !1, onClick: tn, flagOnly: !0, label: k.label }) }) : /* @__PURE__ */ i(Rn, { flag: k.flag, code: k.code, bordered: !1, onClick: st, flagOnly: !0, label: k.label }) : null, Et = X.voiceClone, _t = Ee && (!!Ne.track || ut), Yt = it ? "var(--conf-low)" : _t || M && at ? "var(--brand)" : "var(--ink-55)", Zt = Yc({ on: Ee, want: je, relang: rt, playing: $e.playing, preparing: !!$e.preparing, starting: $e.starting }), [fn] = oa(Zt === "line", 400), qe = Zt === "asked" || Zt === "line" && fn, ot = ut || qe, nn = Zt === "asked" ? vi : $e.preparing ? `Speaking this line in ${(Le == null ? void 0 : Le.name) ?? "this voice"}…` : ut ? `Preparing this recording in ${(Le == null ? void 0 : Le.name) ?? "this voice"} — it will play as soon as it is ready` : it ? `This voice could not be prepared: ${it}` : se ? ye ? "Choose a voice" : Le ? Le.name : ke.vcNoVoice + G.label : `${ke.vcNoVoice}${G.label}`, mt = /* @__PURE__ */ i(Io, { open: ne, onClose: Be, keepOpen: (!!M || y) && !le, value: ve ? null : we, onSelect: Mn, languages: Ie, title: (M == null ? void 0 : M.title) ?? "SPOKEN LANGUAGE", note: (M == null ? void 0 : M.note) ?? eu, searchPlaceholder: ke.search, none: "Original", pinned: (ve ? l : we) ? [ve ? l : we] : [], recent: te, requireVoice: le, sticky: y, busy: T }), gt = ze(() => W.filter((P) => P.cloned && !P.auto), [W]), Gt = (P) => P.voiceId ? gt.find((xe) => xe.id === `clone:${P.voiceId}`) ?? null : null, dt = ze(() => $.filter((P) => P.key >= 0), [$]), rn = ze(() => {
4428
4429
  const P = W.filter((Qe) => !Qe.cloned);
4429
4430
  if (!Me) return [...P, ...s && dt.length === 1 ? gt.filter((Qe) => Qe.id === `clone:${dt[0].voiceId}`) : []];
4430
4431
  const xe = [];
4431
4432
  for (const Qe of dt) {
4432
- if (Zt(Qe)) continue;
4433
+ if (Gt(Qe)) continue;
4433
4434
  const St = W.find((Pt) => Pt.cloned && Pt.auto && Pt.speaker === Qe.key);
4434
4435
  !St || St.ready === !1 || St.consent === "pending" && !O || xe.push({ id: St.id, name: Qe.name, cloned: !0, default: !1, live: !0, auto: !0, gender: Qe.sex ?? St.gender ?? null, speaker: Qe.key, consent: St.consent ?? null });
4435
4436
  }
@@ -4437,11 +4438,11 @@ function nu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4437
4438
  }, [W, gt, Me, dt, O, s]), ct = Me ? dt.find((P) => P.key === ue) ?? null : null, sn = (P) => {
4438
4439
  var xe;
4439
4440
  return P ? ((xe = W.find((Qe) => Qe.id === P)) == null ? void 0 : xe.gender) ?? null : null;
4440
- }, bt = ct ? ct.sex ?? sn(ae.get(ct.key)) : null, Ze = ze(() => ct ? rn.filter((P) => P.cloned ? P.live ? P.speaker === ct.key : P.id === `clone:${ct.voiceId}` : !0) : rn, [rn, ct, bt, dt]), Ut = (P) => W.find((xe) => xe.cloned && xe.auto && xe.speaker === P) ?? null, wt = { people: dt, gvList: W, autoOf: Ut, savedFor: Zt }, Rt = (A == null ? void 0 : A(wt)) ?? 0, et = F ? dt.map((P) => F(P, wt)).filter((P) => !!P) : [], pn = /* @__PURE__ */ g("button", { type: "button", className: "txvoice", "aria-label": "Voice", "aria-pressed": M ? at : void 0, "aria-busy": ot || void 0, title: ot || it ? nn : void 0, style: { cursor: "pointer", background: _t || ot || M && at ? "var(--brand-tint)" : "var(--fill-06)", boxShadow: M && at ? "inset 0 0 0 1.5px var(--brand)" : void 0 }, onClick: M ? re : At, children: [
4441
+ }, Ot = ct ? ct.sex ?? sn(ae.get(ct.key)) : null, Ze = ze(() => ct ? rn.filter((P) => P.cloned ? P.live ? P.speaker === ct.key : P.id === `clone:${ct.voiceId}` : !0) : rn, [rn, ct, Ot, dt]), Ut = (P) => W.find((xe) => xe.cloned && xe.auto && xe.speaker === P) ?? null, vt = { people: dt, gvList: W, autoOf: Ut, savedFor: Gt }, Rt = (A == null ? void 0 : A(vt)) ?? 0, et = F ? dt.map((P) => F(P, vt)).filter((P) => !!P) : [], pn = /* @__PURE__ */ g("button", { type: "button", className: "txvoice", "aria-label": "Voice", "aria-pressed": M ? at : void 0, "aria-busy": ot || void 0, title: ot || it ? nn : void 0, style: { cursor: "pointer", background: _t || ot || M && at ? "var(--brand-tint)" : "var(--fill-06)", boxShadow: M && at ? "inset 0 0 0 1.5px var(--brand)" : void 0 }, onClick: M ? re : At, children: [
4441
4442
  /* @__PURE__ */ i(oe, { d: Et, size: 17, sw: 1.6, style: { color: Yt } }),
4442
4443
  ot && /* @__PURE__ */ i("span", { "aria-hidden": "true", style: { position: "absolute", inset: 0, boxSizing: "border-box", borderRadius: "50%", border: "2px solid var(--fill-12)", borderTopColor: "var(--brand)", animation: "vs-spin .7s linear infinite", pointerEvents: "none" } }),
4443
4444
  et.length > 0 ? /* @__PURE__ */ i("span", { className: "txvoice__warn", title: et.join(" · "), children: "!" }) : !!Rt && /* @__PURE__ */ i("span", { className: "txvoice__n", title: `${Rt} speaker${Rt === 1 ? "" : "s"} can get a cloned voice`, children: Rt })
4444
- ] }), Ot = /* @__PURE__ */ i(en, { open: J, onClose: Je, title: ke.vcSheet, titleNode: w, doneLabel: ke.done, children: /* @__PURE__ */ i(
4445
+ ] }), Ct = /* @__PURE__ */ i(en, { open: J, onClose: Je, title: ke.vcSheet, titleNode: v, doneLabel: ke.done, children: /* @__PURE__ */ i(
4445
4446
  dc,
4446
4447
  {
4447
4448
  t: ke,
@@ -4454,10 +4455,10 @@ function nu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4454
4455
  onSelect: (P) => {
4455
4456
  Q.reset(), Ae(P), D == null || D(P);
4456
4457
  },
4457
- noClone: (P) => !!(Y != null && Y(P, wt)),
4458
- short: (P) => !!(ee != null && ee(P, wt)),
4459
- warn: (P) => (F == null ? void 0 : F(P, wt)) ?? null,
4460
- building: (P) => !Zt(P) && (W.some((xe) => xe.cloned && xe.speaker === P.key && xe.ready === !1) || !!(I != null && I(P, wt))),
4458
+ noClone: (P) => !!(Y != null && Y(P, vt)),
4459
+ short: (P) => !!(ee != null && ee(P, vt)),
4460
+ warn: (P) => (F == null ? void 0 : F(P, vt)) ?? null,
4461
+ building: (P) => !Gt(P) && (W.some((xe) => xe.cloned && xe.speaker === P.key && xe.ready === !1) || !!(I != null && I(P, vt))),
4461
4462
  sexOf: (P) => P.sex ?? sn(ae.get(P.key))
4462
4463
  }
4463
4464
  ),
@@ -4465,14 +4466,14 @@ function nu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4465
4466
  onAdd: (P) => {
4466
4467
  Q.reset(), b == null || b(P);
4467
4468
  },
4468
- noClone: ct && !Ze.some((P) => P.cloned) ? (V == null ? void 0 : V(ct, Ut(ct.key), wt)) ?? null : null,
4469
+ noClone: ct && !Ze.some((P) => P.cloned) ? (V == null ? void 0 : V(ct, Ut(ct.key), vt)) ?? null : null,
4469
4470
  usedBy: Me && ue != null ? (P) => {
4470
4471
  const xe = $.filter((Qe) => Qe.key !== ue && ae.get(Qe.key) === P.id);
4471
4472
  return xe.length ? xe.map((Qe) => Qe.name).join(", ") : null;
4472
4473
  } : void 0,
4473
4474
  foldKey: ue,
4474
- foldFor: bt,
4475
- currentId: Me && ue != null ? ae.get(ue) ?? null : Ce,
4475
+ foldFor: Ot,
4476
+ currentId: Me && ue != null ? ae.get(ue) ?? null : Oe,
4476
4477
  armedId: Q.armId,
4477
4478
  sampleId: Q.sampleId,
4478
4479
  dlId: Q.dlId,
@@ -4489,12 +4490,12 @@ function nu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4489
4490
  },
4490
4491
  onUse: gn
4491
4492
  }
4492
- ) }), Fn = M ? null : /* @__PURE__ */ g(be, { children: [
4493
+ ) }), Fn = M ? null : /* @__PURE__ */ g(Ce, { children: [
4493
4494
  mt,
4494
- Ot
4495
- ] }), Zn = M && (ne || J) ? /* @__PURE__ */ i("div", { className: "vs-side", children: ne ? mt : Ot }) : null, Ct = Ge ? it ? `This voice could not be prepared: ${it}` : qe && (je || $e.playing) ? wi : null : null, Gn = pt;
4495
+ Ct
4496
+ ] }), Zn = M && (ne || J) ? /* @__PURE__ */ i("div", { className: "vs-side", children: ne ? mt : Ct }) : null, xt = Ge ? it ? `This voice could not be prepared: ${it}` : qe && (je || $e.playing) ? vi : null : null, Gn = pt;
4496
4497
  return {
4497
- barChip: { flag: z.flag, code: z.code, label: z.label, onClick: M || y ? tn : st, active: !!((M || y) && lt), can: c },
4498
+ barChip: { flag: k.flag, code: k.code, label: k.label, onClick: M || y ? tn : st, active: !!((M || y) && lt), can: c },
4498
4499
  sheetsOpen: ne || J,
4499
4500
  on: Ge,
4500
4501
  player: Mt,
@@ -4506,7 +4507,7 @@ function nu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4506
4507
  voicesMine: at,
4507
4508
  toggleVoices: re,
4508
4509
  cloningOn: H,
4509
- playTitle: Ct,
4510
+ playTitle: xt,
4510
4511
  noVoice: pt,
4511
4512
  noVoiceNote: Gn,
4512
4513
  relang: rt,
@@ -4515,13 +4516,13 @@ function nu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4515
4516
  clearError: () => Q.clearError(),
4516
4517
  openVoices: At,
4517
4518
  openPicker: st,
4518
- original: we,
4519
+ original: ve,
4519
4520
  reloadVoices: () => x((P) => P + 1),
4520
4521
  voicesVer: E,
4521
4522
  people: dt,
4522
4523
  gvList: W,
4523
4524
  autoOf: Ut,
4524
- savedFor: Zt,
4525
+ savedFor: Gt,
4525
4526
  closeVoices: Je,
4526
4527
  setSheet: pe,
4527
4528
  selectedSpeaker: ct,
@@ -4541,18 +4542,18 @@ function nu({ recordingId: t, model: e, rows: n, lenS: r, ended: s, cred: a, lan
4541
4542
  closePicker: () => {
4542
4543
  lt && Be();
4543
4544
  },
4544
- langList: { value: we ? null : ve, onSelect: Mn, languages: Ie, searchPlaceholder: ke.search, none: "Original", pinned: (we ? l : ve) ? [we ? l : ve] : [], recent: te }
4545
+ langList: { value: ve ? null : we, onSelect: Mn, languages: Ie, searchPlaceholder: ke.search, none: "Original", pinned: (ve ? l : we) ? [ve ? l : we] : [], recent: te }
4545
4546
  };
4546
4547
  }
4547
4548
  function ru({ model: t, rows: e, player: n, fixed: r, applied: s, onFixOpen: a, onWord: o, onFix: l, fixMode: c, fixingId: u, marks: d = !0, fixBadges: M = !0, tail: h, tailFg: f, running: p, desk: y, feedRef: T, listener: N, showLabels: m, find: b, findOpen: C, lang: D, warm: V, onVisible: Y, wordHl: ee = !0 }) {
4548
- const { playing: I, engaged: F, t: A, idx: w, seekN: _, wordSync: O, clipPos: te } = n;
4549
+ const { playing: I, engaged: F, t: A, idx: v, seekN: _, wordSync: O, clipPos: te } = n;
4549
4550
  jc(!0, T);
4550
- const K = j(null);
4551
+ const K = z(null);
4551
4552
  Xl(T, K);
4552
- const [L, ie] = k(null), ne = (b ?? "").trim().toLowerCase(), [Z, J] = k(0), pe = j(0), le = j(null), Te = j(w), je = (H) => {
4553
+ const [L, ie] = j(null), ne = (b ?? "").trim().toLowerCase(), [Z, J] = j(0), pe = z(0), le = z(null), Te = z(v), je = (H) => {
4553
4554
  var E;
4554
4555
  return ((E = T.current) == null ? void 0 : E.querySelector(`[data-tx-row="${H}"]`)) ?? null;
4555
- }, Se = j("");
4556
+ }, Se = z("");
4556
4557
  S(() => {
4557
4558
  const H = T.current;
4558
4559
  if (!H || !Y) return;
@@ -4573,21 +4574,21 @@ function ru({ model: t, rows: e, player: n, fixed: r, applied: s, onFixOpen: a,
4573
4574
  window.clearTimeout(x), window.clearTimeout(B), H.removeEventListener("scroll", ce);
4574
4575
  };
4575
4576
  }, [e, Y, T]);
4576
- const ve = (H) => {
4577
+ const we = (H) => {
4577
4578
  const E = T.current, x = je(H);
4578
4579
  if (!E || !x) return;
4579
- const B = x.getBoundingClientRect().top - E.getBoundingClientRect().top + E.scrollTop, ce = E.scrollHeight - E.clientHeight, W = wr(E), ye = Math.max(80, E.clientHeight - W.top - W.bottom), G = x.offsetHeight > ye ? 8 : (ye - x.offsetHeight) / 2;
4580
+ const B = x.getBoundingClientRect().top - E.getBoundingClientRect().top + E.scrollTop, ce = E.scrollHeight - E.clientHeight, W = vr(E), ye = Math.max(80, E.clientHeight - W.top - W.bottom), G = x.offsetHeight > ye ? 8 : (ye - x.offsetHeight) / 2;
4580
4581
  E.scrollTop = Math.max(0, Math.min(ce, B - W.top - G));
4581
- }, we = (H) => {
4582
+ }, ve = (H) => {
4582
4583
  const E = T.current, x = je(H);
4583
4584
  if (!E || !E.clientHeight || !E.offsetParent || !x) return 0;
4584
- const B = x.getBoundingClientRect(), ce = E.getBoundingClientRect(), W = wr(E), ye = ce.top + W.top, G = ce.bottom - W.bottom;
4585
+ const B = x.getBoundingClientRect(), ce = E.getBoundingClientRect(), W = vr(E), ye = ce.top + W.top, G = ce.bottom - W.bottom;
4585
4586
  return B.height > G - ye ? B.top < ye - 4 ? -1 : B.top > G - 60 ? 1 : 0 : B.bottom < ye + 10 ? -1 : B.bottom > G - 4 ? 1 : 0;
4586
4587
  }, Ee = (H) => {
4587
4588
  pe.current = performance.now() + 420;
4588
4589
  const E = T.current, x = je(H);
4589
4590
  if (!E || !E.clientHeight || !x) return;
4590
- const B = x.getBoundingClientRect(), ce = E.getBoundingClientRect(), W = E.scrollHeight - E.clientHeight, ye = E.scrollTop, G = wr(E), ke = Math.max(80, E.clientHeight - G.top - G.bottom), Ie = B.height > ke ? 8 : (ke - B.height) / 2, Fe = Math.max(0, Math.min(W, ye + (B.top - ce.top) - G.top - Ie));
4591
+ const B = x.getBoundingClientRect(), ce = E.getBoundingClientRect(), W = E.scrollHeight - E.clientHeight, ye = E.scrollTop, G = vr(E), ke = Math.max(80, E.clientHeight - G.top - G.bottom), Ie = B.height > ke ? 8 : (ke - B.height) / 2, Fe = Math.max(0, Math.min(W, ye + (B.top - ce.top) - G.top - Ie));
4591
4592
  if (le.current && cancelAnimationFrame(le.current), Math.abs(Fe - ye) < 2) {
4592
4593
  E.scrollTop = Fe, le.current = null;
4593
4594
  return;
@@ -4601,26 +4602,26 @@ function ru({ model: t, rows: e, player: n, fixed: r, applied: s, onFixOpen: a,
4601
4602
  S(() => () => {
4602
4603
  le.current && cancelAnimationFrame(le.current);
4603
4604
  }, []);
4604
- const Re = j(0);
4605
+ const Re = z(0);
4605
4606
  S(() => {
4606
4607
  if (!I) {
4607
- Te.current = w, Re.current = 0, J(0);
4608
+ Te.current = v, Re.current = 0, J(0);
4608
4609
  return;
4609
4610
  }
4610
4611
  const H = () => {
4611
- const x = w !== Te.current;
4612
- Te.current = w;
4613
- let B = performance.now() < pe.current ? 0 : we(w);
4614
- x && B && !Re.current && (ve(w), B = 0), Re.current = B, J(B);
4612
+ const x = v !== Te.current;
4613
+ Te.current = v;
4614
+ let B = performance.now() < pe.current ? 0 : ve(v);
4615
+ x && B && !Re.current && (we(v), B = 0), Re.current = B, J(B);
4615
4616
  };
4616
4617
  H();
4617
4618
  const E = setInterval(H, 200);
4618
4619
  return () => clearInterval(E);
4619
- }, [w, I]), S(() => {
4620
- _ && Ee(w);
4620
+ }, [v, I]), S(() => {
4621
+ _ && Ee(v);
4621
4622
  }, [_]);
4622
4623
  const De = () => {
4623
- Ee(w), Re.current = 0, J(0);
4624
+ Ee(v), Re.current = 0, J(0);
4624
4625
  }, Q = (H) => /* @__PURE__ */ i("div", { className: `txfollow txfollow--${H}`, children: /* @__PURE__ */ g("button", { type: "button", className: "txfollow__pill", title: "Jump to the line playing now", onClick: De, children: [
4625
4626
  /* @__PURE__ */ i(oe, { d: H === "up" ? "m4.5 15.75 7.5-7.5 7.5 7.5" : "m19.5 8.25-7.5 7.5-7.5-7.5", size: 15, sw: 2 }),
4626
4627
  "Now playing"
@@ -4630,13 +4631,13 @@ function ru({ model: t, rows: e, player: n, fixed: r, applied: s, onFixOpen: a,
4630
4631
  I && Z === -1 && Q("up"),
4631
4632
  e.map((H, E) => {
4632
4633
  var Me;
4633
- const x = I && E === w, B = F && E === w, ce = !!u && u === H.id, W = ne && !H.text.toLowerCase().includes(ne) && !(D && ((Me = H.translations[D]) != null && Me.toLowerCase().includes(ne))) ? 0.22 : !F || E <= w || ce ? 1 : 0.38, ye = N ? () => n.playRow(E) : c && l ? () => {
4634
+ const x = I && E === v, B = F && E === v, ce = !!u && u === H.id, W = ne && !H.text.toLowerCase().includes(ne) && !(D && ((Me = H.translations[D]) != null && Me.toLowerCase().includes(ne))) ? 0.22 : !F || E <= v || ce ? 1 : 0.38, ye = N ? () => n.playRow(E) : c && l ? () => {
4634
4635
  I && !x && n.seekRow(E), l(H);
4635
4636
  } : I && x ? void 0 : () => n.playRow(E), G = N ? null : rc(H, s, r), ke = !!G && (G.script > 0 || G.manual), Ie = y && !!a && L === H.id && !!G && !ke, Fe = $r(t, H.speaker), Ae = Qr(t, H.speaker), he = Ae.lane, _e = D && H.translations[D] && H.language !== D ? H.translations[D] : null, Ve = la(e, E, D), $ = B && !O && te ? Ri(Ve.map((ue) => ({ t: ue.text, sp: " " })), te) : null;
4636
4637
  return /* @__PURE__ */ g("div", { "data-tx-row": E, "data-sentence": H.sentenceId, className: `txline${V ? " txline--warm" : ""}${ce ? " txline--fixing" : ""}`, "aria-current": ce || void 0, style: { opacity: W }, onClick: ye, onMouseEnter: y && a ? () => ie(H.id) : void 0, onMouseLeave: y && a ? () => ie(null) : void 0, children: [
4637
4638
  /* @__PURE__ */ g("div", { className: "txline__meta", children: [
4638
- /* @__PURE__ */ i("span", { className: "txline__at", children: jt(H.start) }),
4639
- m && H.speaker >= 0 && /* @__PURE__ */ g(be, { children: [
4639
+ /* @__PURE__ */ i("span", { className: "txline__at", children: zt(H.start) }),
4640
+ m && H.speaker >= 0 && /* @__PURE__ */ g(Ce, { children: [
4640
4641
  /* @__PURE__ */ i("div", { className: `lanechip bg-lane-${he}`, style: Ae.soft ? { background: Ae.soft, color: Ae.fg } : void 0, children: Zi(t, H.speaker) }),
4641
4642
  /* @__PURE__ */ i("span", { className: `txline__who lane-${he}`, style: Ae.fg ? { color: Ae.fg } : void 0, children: Fe }),
4642
4643
  Ae.hasVoice && /* @__PURE__ */ i(sa, { color: Ae.fg ?? `var(--lane-${he})` })
@@ -4646,7 +4647,7 @@ function ru({ model: t, rows: e, player: n, fixed: r, applied: s, onFixOpen: a,
4646
4647
  Ie && /* @__PURE__ */ i(ic, { alone: !0, onOpen: () => a == null ? void 0 : a(H, !1) })
4647
4648
  ] }),
4648
4649
  /* @__PURE__ */ i("div", { className: "txline__text", children: Ve.map((ue, ae) => {
4649
- const fe = `${ue.seq}:${ue.idx}`, Ye = kl(ue.prob), U = B && ee, R = U && (O ? A >= ue.start && (A < ue.end || ae === Ve.length - 1 || A < Ve[ae + 1].start) : ae === $), q = U && !R && (O ? ue.start > A : $ != null && ae > $), se = !_e && !N && (!!(r != null && r.has(fe)) || !!ue.script), de = !_e && !N && d && !!Ye && !se, Oe = de ? Ye === "low" ? "var(--conf-low-half)" : "var(--conf-mid-half)" : null, Ne = se ? "var(--brand)" : q ? "var(--ink-40)" : Oe ?? "var(--ink-96)";
4650
+ const fe = `${ue.seq}:${ue.idx}`, Ye = kl(ue.prob), U = B && ee, R = U && (O ? A >= ue.start && (A < ue.end || ae === Ve.length - 1 || A < Ve[ae + 1].start) : ae === $), q = U && !R && (O ? ue.start > A : $ != null && ae > $), se = !_e && !N && (!!(r != null && r.has(fe)) || !!ue.script), de = !_e && !N && d && !!Ye && !se, be = de ? Ye === "low" ? "var(--conf-low-half)" : "var(--conf-mid-half)" : null, Ne = se ? "var(--brand)" : q ? "var(--ink-40)" : be ?? "var(--ink-96)";
4650
4651
  return /* @__PURE__ */ g("span", { children: [
4651
4652
  /* @__PURE__ */ i(
4652
4653
  "span",
@@ -4654,18 +4655,18 @@ function ru({ model: t, rows: e, player: n, fixed: r, applied: s, onFixOpen: a,
4654
4655
  className: "txw",
4655
4656
  title: o && !_e ? c ? "Correct this word" : x && I && n.seekWord ? "Play from this word" : "Play from this line" : x ? "" : "Play from this line",
4656
4657
  onClick: o && !_e ? (Le) => {
4657
- var Ce;
4658
+ var Oe;
4658
4659
  if (Le.stopPropagation(), c) {
4659
4660
  o(H, ue);
4660
4661
  return;
4661
4662
  }
4662
4663
  if (I && x) {
4663
- (Ce = n.seekWord) == null || Ce.call(n, ue);
4664
+ (Oe = n.seekWord) == null || Oe.call(n, ue);
4664
4665
  return;
4665
4666
  }
4666
4667
  n.playRow(E);
4667
4668
  } : void 0,
4668
- style: { color: Ne, opacity: q ? 0.45 : 1, fontWeight: 300, cursor: o && !_e ? c || !x || !I || n.seekWord ? "pointer" : "default" : x ? "default" : "pointer", textShadow: R ? "0 0 2px currentColor, 0 0 4px currentColor" : "none", textDecorationLine: de || se ? "underline" : "none", textDecorationStyle: se ? "solid" : "dotted", textDecorationColor: se ? "var(--brand)" : Oe ?? "currentColor", textDecorationThickness: de || se ? "1.5px" : void 0, textUnderlineOffset: de || se ? "3px" : void 0 },
4669
+ style: { color: Ne, opacity: q ? 0.45 : 1, fontWeight: 300, cursor: o && !_e ? c || !x || !I || n.seekWord ? "pointer" : "default" : x ? "default" : "pointer", textShadow: R ? "0 0 2px currentColor, 0 0 4px currentColor" : "none", textDecorationLine: de || se ? "underline" : "none", textDecorationStyle: se ? "solid" : "dotted", textDecorationColor: se ? "var(--brand)" : be ?? "currentColor", textDecorationThickness: de || se ? "1.5px" : void 0, textUnderlineOffset: de || se ? "3px" : void 0 },
4669
4670
  children: ue.text
4670
4671
  }
4671
4672
  ),
@@ -4697,11 +4698,11 @@ function su({ open: t, q: e, onQ: n, onClose: r, hits: s, desk: a, inline: o, fl
4697
4698
  ] }) });
4698
4699
  }
4699
4700
  function iu(t, e, n, r, s) {
4700
- const a = j(n);
4701
+ const a = z(n);
4701
4702
  a.current = n;
4702
- const o = j(r);
4703
+ const o = z(r);
4703
4704
  o.current = r;
4704
- const [l, c] = k(0), u = r.trim().toLowerCase();
4705
+ const [l, c] = j(0), u = r.trim().toLowerCase();
4705
4706
  return S(() => {
4706
4707
  c(u ? e.filter((d) => d.text.toLowerCase().includes(u)).length : 0);
4707
4708
  }, [e, u]), S(() => {
@@ -4773,44 +4774,44 @@ function cu(t) {
4773
4774
  for (; n <= 40 && !(4 + (n <= 9 ? 8 : 16) + e.length * 8 <= Li(n) * 8); n++)
4774
4775
  ;
4775
4776
  if (n > 40) throw new Error("Text too long for a QR code");
4776
- const r = n * 4 + 17, s = Li(n) * 8, a = [], o = (w, _) => {
4777
- for (let O = _ - 1; O >= 0; O--) a.push(w >>> O & 1);
4777
+ const r = n * 4 + 17, s = Li(n) * 8, a = [], o = (v, _) => {
4778
+ for (let O = _ - 1; O >= 0; O--) a.push(v >>> O & 1);
4778
4779
  };
4779
4780
  o(4, 4), o(e.length, n <= 9 ? 8 : 16);
4780
- for (const w of e) o(w, 8);
4781
+ for (const v of e) o(v, 8);
4781
4782
  for (o(0, Math.min(4, s - a.length)); a.length % 8; ) a.push(0);
4782
- for (let w = 236; a.length < s; w ^= 253) o(w, 8);
4783
+ for (let v = 236; a.length < s; v ^= 253) o(v, 8);
4783
4784
  const l = [];
4784
- for (let w = 0; w < a.length; w += 8) l.push(a.slice(w, w + 8).reduce((_, O) => _ << 1 | O, 0));
4785
+ for (let v = 0; v < a.length; v += 8) l.push(a.slice(v, v + 8).reduce((_, O) => _ << 1 | O, 0));
4785
4786
  const c = hn.blocks[n], u = hn.perBlock[n], d = Math.floor(ca(n) / 8), M = c - d % c, h = Math.floor(d / c), f = [], p = au(u);
4786
- for (let w = 0, _ = 0; w < c; w++) {
4787
- const O = l.slice(_, _ + h - u + (w < M ? 0 : 1));
4787
+ for (let v = 0, _ = 0; v < c; v++) {
4788
+ const O = l.slice(_, _ + h - u + (v < M ? 0 : 1));
4788
4789
  _ += O.length;
4789
4790
  const te = ou(O, p);
4790
- w < M && O.push(0), f.push(O.concat(te));
4791
+ v < M && O.push(0), f.push(O.concat(te));
4791
4792
  }
4792
4793
  const y = [];
4793
- for (let w = 0; w < f[0].length; w++) f.forEach((_, O) => {
4794
- (w !== h - u || O >= M) && y.push(_[w]);
4794
+ for (let v = 0; v < f[0].length; v++) f.forEach((_, O) => {
4795
+ (v !== h - u || O >= M) && y.push(_[v]);
4795
4796
  });
4796
- const T = Array.from({ length: r }, () => new Array(r).fill(!1)), N = Array.from({ length: r }, () => new Array(r).fill(!1)), m = (w, _, O) => {
4797
- T[_][w] = O, N[_][w] = !0;
4797
+ const T = Array.from({ length: r }, () => new Array(r).fill(!1)), N = Array.from({ length: r }, () => new Array(r).fill(!1)), m = (v, _, O) => {
4798
+ T[_][v] = O, N[_][v] = !0;
4798
4799
  };
4799
- for (let w = 0; w < r; w++)
4800
- m(6, w, w % 2 === 0), m(w, 6, w % 2 === 0);
4801
- const b = (w, _) => {
4800
+ for (let v = 0; v < r; v++)
4801
+ m(6, v, v % 2 === 0), m(v, 6, v % 2 === 0);
4802
+ const b = (v, _) => {
4802
4803
  for (let O = -4; O <= 4; O++) for (let te = -4; te <= 4; te++) {
4803
- const K = Math.max(Math.abs(te), Math.abs(O)), L = w + te, ie = _ + O;
4804
+ const K = Math.max(Math.abs(te), Math.abs(O)), L = v + te, ie = _ + O;
4804
4805
  L >= 0 && L < r && ie >= 0 && ie < r && m(L, ie, K !== 2 && K !== 4);
4805
4806
  }
4806
4807
  };
4807
4808
  b(3, 3), b(r - 4, 3), b(3, r - 4);
4808
4809
  const C = lu(n);
4809
- for (let w = 0; w < C.length; w++) for (let _ = 0; _ < C.length; _++)
4810
- if (!(w === 0 && _ === 0 || w === 0 && _ === C.length - 1 || w === C.length - 1 && _ === 0))
4811
- for (let O = -2; O <= 2; O++) for (let te = -2; te <= 2; te++) m(C[w] + te, C[_] + O, Math.max(Math.abs(te), Math.abs(O)) !== 1);
4812
- const D = (w) => {
4813
- const _ = hn.formatBits << 3 | w;
4810
+ for (let v = 0; v < C.length; v++) for (let _ = 0; _ < C.length; _++)
4811
+ if (!(v === 0 && _ === 0 || v === 0 && _ === C.length - 1 || v === C.length - 1 && _ === 0))
4812
+ for (let O = -2; O <= 2; O++) for (let te = -2; te <= 2; te++) m(C[v] + te, C[_] + O, Math.max(Math.abs(te), Math.abs(O)) !== 1);
4813
+ const D = (v) => {
4814
+ const _ = hn.formatBits << 3 | v;
4814
4815
  let O = _;
4815
4816
  for (let L = 0; L < 10; L++) O = O << 1 ^ (O >>> 9) * 1335;
4816
4817
  const te = (_ << 10 | O) ^ 21522, K = (L) => (te >>> L & 1) !== 0;
@@ -4822,24 +4823,24 @@ function cu(t) {
4822
4823
  m(8, r - 8, !0);
4823
4824
  };
4824
4825
  if (D(0), n >= 7) {
4825
- let w = n;
4826
- for (let O = 0; O < 12; O++) w = w << 1 ^ (w >>> 11) * 7973;
4827
- const _ = n << 12 | w;
4826
+ let v = n;
4827
+ for (let O = 0; O < 12; O++) v = v << 1 ^ (v >>> 11) * 7973;
4828
+ const _ = n << 12 | v;
4828
4829
  for (let O = 0; O < 18; O++) {
4829
4830
  const te = (_ >>> O & 1) !== 0, K = r - 11 + O % 3, L = Math.floor(O / 3);
4830
4831
  m(K, L, te), m(L, K, te);
4831
4832
  }
4832
4833
  }
4833
4834
  let V = 0;
4834
- for (let w = r - 1; w >= 1; w -= 2) {
4835
- w === 6 && (w = 5);
4835
+ for (let v = r - 1; v >= 1; v -= 2) {
4836
+ v === 6 && (v = 5);
4836
4837
  for (let _ = 0; _ < r; _++) for (let O = 0; O < 2; O++) {
4837
- const te = w - O, K = w + 1 & 2 ? _ : r - 1 - _;
4838
+ const te = v - O, K = v + 1 & 2 ? _ : r - 1 - _;
4838
4839
  !N[K][te] && V < y.length * 8 && (T[K][te] = (y[V >>> 3] >>> 7 - (V & 7) & 1) !== 0, V++);
4839
4840
  }
4840
4841
  }
4841
- const Y = (w, _, O) => {
4842
- switch (w) {
4842
+ const Y = (v, _, O) => {
4843
+ switch (v) {
4843
4844
  case 0:
4844
4845
  return (_ + O) % 2 === 0;
4845
4846
  case 1:
@@ -4857,10 +4858,10 @@ function cu(t) {
4857
4858
  default:
4858
4859
  return ((_ + O) % 2 + _ * O % 3) % 2 === 0;
4859
4860
  }
4860
- }, ee = (w) => {
4861
- for (let _ = 0; _ < r; _++) for (let O = 0; O < r; O++) !N[_][O] && Y(w, O, _) && (T[_][O] = !T[_][O]);
4861
+ }, ee = (v) => {
4862
+ for (let _ = 0; _ < r; _++) for (let O = 0; O < r; O++) !N[_][O] && Y(v, O, _) && (T[_][O] = !T[_][O]);
4862
4863
  }, I = () => {
4863
- let w = 0;
4864
+ let v = 0;
4864
4865
  const _ = (ne) => {
4865
4866
  const Z = ne[1], J = Z > 0 && ne[2] === Z && ne[3] === Z * 3 && ne[4] === Z && ne[5] === Z;
4866
4867
  return (J && ne[0] >= Z * 4 && ne[6] >= Z ? 1 : 0) + (J && ne[6] >= Z * 4 && ne[0] >= Z ? 1 : 0);
@@ -4870,25 +4871,25 @@ function cu(t) {
4870
4871
  let Z = !1, J = 0;
4871
4872
  const pe = [0, 0, 0, 0, 0, 0, 0];
4872
4873
  for (let le = 0; le < r; le++)
4873
- ne(le) === Z ? (J++, J === 5 ? w += 3 : J > 5 && w++) : (O(pe, J), Z || (w += _(pe) * 40), Z = ne(le), J = 1);
4874
- w += te(pe, Z, J) * 40;
4874
+ ne(le) === Z ? (J++, J === 5 ? v += 3 : J > 5 && v++) : (O(pe, J), Z || (v += _(pe) * 40), Z = ne(le), J = 1);
4875
+ v += te(pe, Z, J) * 40;
4875
4876
  };
4876
4877
  for (let ne = 0; ne < r; ne++) K((Z) => T[ne][Z]);
4877
4878
  for (let ne = 0; ne < r; ne++) K((Z) => T[Z][ne]);
4878
4879
  for (let ne = 0; ne < r - 1; ne++) for (let Z = 0; Z < r - 1; Z++) {
4879
4880
  const J = T[ne][Z];
4880
- J === T[ne][Z + 1] && J === T[ne + 1][Z] && J === T[ne + 1][Z + 1] && (w += 3);
4881
+ J === T[ne][Z + 1] && J === T[ne + 1][Z] && J === T[ne + 1][Z + 1] && (v += 3);
4881
4882
  }
4882
4883
  let L = 0;
4883
4884
  for (const ne of T) for (const Z of ne) Z && L++;
4884
4885
  const ie = r * r;
4885
- return w += (Math.ceil(Math.abs(L * 20 - ie * 10) / ie) - 1) * 10, w;
4886
+ return v += (Math.ceil(Math.abs(L * 20 - ie * 10) / ie) - 1) * 10, v;
4886
4887
  };
4887
4888
  let F = 0, A = 1 / 0;
4888
- for (let w = 0; w < 8; w++) {
4889
- ee(w), D(w);
4889
+ for (let v = 0; v < 8; v++) {
4890
+ ee(v), D(v);
4890
4891
  const _ = I();
4891
- _ < A && (A = _, F = w), ee(w);
4892
+ _ < A && (A = _, F = v), ee(v);
4892
4893
  }
4893
4894
  return ee(F), D(F), T;
4894
4895
  }
@@ -4900,7 +4901,7 @@ function uu(t) {
4900
4901
  return `data:image/svg+xml,${encodeURIComponent(a)}`;
4901
4902
  }
4902
4903
  const ua = "M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15", du = "M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25";
4903
- function vr() {
4904
+ function wr() {
4904
4905
  const t = document;
4905
4906
  return t.fullscreenElement ?? t.webkitFullscreenElement ?? null;
4906
4907
  }
@@ -4934,7 +4935,7 @@ function _n(t) {
4934
4935
  }
4935
4936
  }
4936
4937
  function Mu(t) {
4937
- const [e, n] = k(() => {
4938
+ const [e, n] = j(() => {
4938
4939
  var r;
4939
4940
  return typeof window < "u" && !!((r = window.matchMedia) != null && r.call(window, t).matches);
4940
4941
  });
@@ -4947,7 +4948,7 @@ function Mu(t) {
4947
4948
  }, [t]), e;
4948
4949
  }
4949
4950
  function Yn({ pos: t, interactive: e, axis: n = "x" }) {
4950
- const [r, s] = k(null), a = (c) => {
4951
+ const [r, s] = j(null), a = (c) => {
4951
4952
  const u = c.currentTarget.getBoundingClientRect(), d = n === "y" ? (c.clientY - u.top) / Math.max(1, u.height) : (c.clientX - u.left) / Math.max(1, u.width);
4952
4953
  return Math.min(1, Math.max(0, d));
4953
4954
  }, o = (c) => {
@@ -4955,7 +4956,7 @@ function Yn({ pos: t, interactive: e, axis: n = "x" }) {
4955
4956
  const u = a(c);
4956
4957
  s(null), t.onSeek(u);
4957
4958
  }, l = r != null ? r * 100 : t.pct;
4958
- return /* @__PURE__ */ g(be, { children: [
4959
+ return /* @__PURE__ */ g(Ce, { children: [
4959
4960
  /* @__PURE__ */ i("span", { className: `gfull__t${e ? " gfull__t--at" : ""}`, children: r != null ? t.labelAt(r) : t.atLabel }),
4960
4961
  /* @__PURE__ */ i(
4961
4962
  "div",
@@ -4986,7 +4987,7 @@ function Yn({ pos: t, interactive: e, axis: n = "x" }) {
4986
4987
  ] });
4987
4988
  }
4988
4989
  function td({ pos: t }) {
4989
- const [e, n] = k(null), r = (l) => {
4990
+ const [e, n] = j(null), r = (l) => {
4990
4991
  const c = l.currentTarget.getBoundingClientRect();
4991
4992
  return Math.min(1, Math.max(0, (l.clientX - c.left) / Math.max(1, c.width)));
4992
4993
  }, s = (l) => {
@@ -5039,7 +5040,7 @@ function Un({ t, mini: e }) {
5039
5040
  disabled: !t.playable,
5040
5041
  style: { background: t.playable ? t.playing ? "rgba(238,240,248,.92)" : "var(--brand)" : "rgba(5,6,21,.42)", color: t.playable ? t.playing ? "#131326" : "var(--brand-ink)" : "rgba(234,236,250,.5)", cursor: t.playable ? "pointer" : "default" },
5041
5042
  onClick: t.onPlay,
5042
- children: t.busy ? /* @__PURE__ */ i("span", { className: "gfull__spin", "aria-hidden": "true" }) : t.playing ? /* @__PURE__ */ i(ao, { size: e ? 14 : 18 }) : /* @__PURE__ */ i(Xt, { size: e ? 15 : 19 })
5043
+ children: t.busy ? /* @__PURE__ */ i("span", { className: "gfull__spin", "aria-hidden": "true" }) : t.playing ? /* @__PURE__ */ i(ao, { size: e ? 14 : 18 }) : /* @__PURE__ */ i(Wt, { size: e ? 15 : 19 })
5043
5044
  }
5044
5045
  ),
5045
5046
  /* @__PURE__ */ i("button", { type: "button", className: "gfull__step", "aria-label": "Next line", title: "Next line", style: { opacity: t.nextOn ? 1 : 0.3 }, onClick: t.onNext, children: /* @__PURE__ */ i(oe, { d: X.chevronRight, size: e ? 13 : 16, sw: e ? 1.8 : 1.9 }) })
@@ -5083,18 +5084,18 @@ function gu({ pos: t, transport: e, chip: n, voices: r, onShare: s, onFull: a, c
5083
5084
  }
5084
5085
  const fu = { color: "rgba(255,255,255,.4)" };
5085
5086
  function ha({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title: s, desk: a, pos: o, sub: l, wait: c, pct: u, mute: d, cc: M, ad: h, chip: f, transport: p, picker: y, sheet: T, voices: N, voicesBtn: m, sheetOpen: b, onShare: C, onSettings: D, paused: V, copied: Y, onTouch: ee, onClose: I }) {
5086
- const [F, A] = k(() => !!vr());
5087
+ const [F, A] = j(() => !!wr());
5087
5088
  S(() => {
5088
- const $ = () => A(!!vr());
5089
+ const $ = () => A(!!wr());
5089
5090
  return document.addEventListener("fullscreenchange", $), document.addEventListener("webkitfullscreenchange", $), () => {
5090
5091
  document.removeEventListener("fullscreenchange", $), document.removeEventListener("webkitfullscreenchange", $);
5091
5092
  };
5092
5093
  }, []);
5093
- const w = j(I);
5094
- w.current = I;
5095
- const _ = j(p.playable ? p.onPlay : void 0);
5094
+ const v = z(I);
5095
+ v.current = I;
5096
+ const _ = z(p.playable ? p.onPlay : void 0);
5096
5097
  _.current = p.playable ? p.onPlay : void 0;
5097
- const [O, te] = k(!1), [K, L] = k(0), ie = j(!1);
5098
+ const [O, te] = j(!1), [K, L] = j(0), ie = z(!1);
5098
5099
  S(() => () => _n(!1), []), S(() => {
5099
5100
  if (!n) return;
5100
5101
  const $ = [document.documentElement, document.body], Me = $.map((fe) => fe.style.background);
@@ -5108,7 +5109,7 @@ function ha({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5108
5109
  }), ue && ae && (ue.content = ae);
5109
5110
  };
5110
5111
  }, []);
5111
- const ne = ze(() => n && hu(), [n]), [Z, J] = k(ne);
5112
+ const ne = ze(() => n && hu(), [n]), [Z, J] = j(ne);
5112
5113
  S(() => {
5113
5114
  if (!n) return;
5114
5115
  const $ = [document.documentElement, document.body], Me = $.map((fe) => [fe.style.overflow, fe.style.overscrollBehavior]);
@@ -5127,11 +5128,11 @@ function ha({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5127
5128
  window.removeEventListener("scroll", ae), ue.remove(), document.documentElement.style.overscrollBehavior = Me[0][1], window.scrollTo(0, 0);
5128
5129
  };
5129
5130
  }, [ne, n]);
5130
- const pe = j(b);
5131
+ const pe = z(b);
5131
5132
  pe.current = b, S(() => {
5132
5133
  const $ = (ae) => ae instanceof HTMLElement && (ae.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(ae.tagName)), Me = (ae) => {
5133
5134
  var fe;
5134
- ae.key === "Escape" && !pe.current && w.current && (ae.stopPropagation(), w.current()), ae.key === " " && !pe.current && !$(ae.target) && (ae.preventDefault(), ae.stopPropagation(), ae.repeat || (fe = _.current) == null || fe.call(_)), (ae.key === "f" || ae.key === "F") && !ae.metaKey && !ae.ctrlKey && !ae.altKey && !pe.current && !$(ae.target) && ji() && (ae.preventDefault(), ae.repeat || _n(!vr()));
5135
+ ae.key === "Escape" && !pe.current && v.current && (ae.stopPropagation(), v.current()), ae.key === " " && !pe.current && !$(ae.target) && (ae.preventDefault(), ae.stopPropagation(), ae.repeat || (fe = _.current) == null || fe.call(_)), (ae.key === "f" || ae.key === "F") && !ae.metaKey && !ae.ctrlKey && !ae.altKey && !pe.current && !$(ae.target) && ji() && (ae.preventDefault(), ae.repeat || _n(!wr()));
5135
5136
  }, ue = (ae) => {
5136
5137
  ae.key === " " && !pe.current && !$(ae.target) && ae.preventDefault();
5137
5138
  };
@@ -5139,27 +5140,27 @@ function ha({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5139
5140
  window.removeEventListener("keydown", Me, !0), window.removeEventListener("keyup", ue, !0);
5140
5141
  };
5141
5142
  }, []);
5142
- const le = Mu("(orientation: landscape) and (max-height: 540px)"), Te = j(null), [je, Se] = k(null);
5143
- Jt(() => {
5143
+ const le = Mu("(orientation: landscape) and (max-height: 540px)"), Te = z(null), [je, Se] = j(null);
5144
+ Xt(() => {
5144
5145
  const $ = Te.current;
5145
5146
  if (!$ || (Se($.getBoundingClientRect().width), typeof ResizeObserver > "u")) return;
5146
5147
  const Me = new ResizeObserver(([ue]) => Se(ue.contentRect.width));
5147
5148
  return Me.observe($), () => Me.disconnect();
5148
5149
  }, []);
5149
- const ve = t && !F, we = !ve && a && !le && (je == null || je >= 880), Ee = !we;
5150
+ const we = t && !F, ve = !we && a && !le && (je == null || je >= 880), Ee = !ve;
5150
5151
  S(() => {
5151
5152
  if (te(!1), !p.playing || b) return;
5152
5153
  const $ = setTimeout(() => te(!0), 3e3);
5153
5154
  return () => clearTimeout($);
5154
5155
  }, [p.playing, b, K]);
5155
- const Re = j(O);
5156
+ const Re = z(O);
5156
5157
  Re.current = O;
5157
- const De = j(0), Q = ($) => {
5158
+ const De = z(0), Q = ($) => {
5158
5159
  if ($.pointerType !== "mouse") return;
5159
5160
  const Me = Date.now();
5160
5161
  !Re.current && Me - De.current < 1e3 || (De.current = Me, L((ue) => ue + 1));
5161
- }, H = !we && le, E = j(null), x = l ? l.words.map(($) => $.dim ? 0 : 1).join("") + l.words.length + ":" + (l.cursor ?? "") : "";
5162
- Jt(() => {
5162
+ }, H = !ve && le, E = z(null), x = l ? l.words.map(($) => $.dim ? 0 : 1).join("") + l.words.length + ":" + (l.cursor ?? "") : "";
5163
+ Xt(() => {
5163
5164
  const $ = E.current;
5164
5165
  if (!$) return;
5165
5166
  const Me = !!(l != null && l.words.some((de) => de.dim)) || (l == null ? void 0 : l.cursor) != null, ue = $.querySelectorAll((l == null ? void 0 : l.cursor) != null && !l.words.some((de) => de.dim) ? "[data-at]" : "[data-said]"), ae = parseFloat(getComputedStyle($).lineHeight) || 24, fe = Math.round($.scrollHeight / ae) - Math.round($.clientHeight / ae), Ye = Math.max(0, fe) * ae;
@@ -5170,22 +5171,22 @@ function ha({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5170
5171
  const U = (de) => Math.round((de.getBoundingClientRect().top - $.getBoundingClientRect().top + $.scrollTop) / ae), R = Math.max(1, Math.round($.clientHeight / ae)), q = Me ? ue.length ? Math.floor(U(ue[ue.length - 1]) / R) * R * ae : 0 : Ye, se = Math.max(0, Math.min(Ye, q));
5171
5172
  Math.abs(se - $.scrollTop) > 1 && ($.scrollTop = se);
5172
5173
  }, [x, H]);
5173
- const [B, ce] = k(!0), [W, ye] = k(!1), G = j(void 0);
5174
+ const [B, ce] = j(!0), [W, ye] = j(!1), G = z(void 0);
5174
5175
  S(() => () => window.clearTimeout(G.current), []);
5175
- const ke = V != null && V.share ? V.share.url(B && V.share.at >= 1 ? Math.floor(V.share.at) : null) : "", Ie = ze(() => we && ke && !p.playing ? uu(ke) : "", [we, ke, p.playing]), Fe = () => {
5176
+ const ke = V != null && V.share ? V.share.url(B && V.share.at >= 1 ? Math.floor(V.share.at) : null) : "", Ie = ze(() => ve && ke && !p.playing ? uu(ke) : "", [ve, ke, p.playing]), Fe = () => {
5176
5177
  var $;
5177
5178
  ($ = navigator.clipboard) == null || $.writeText(ke).then(() => {
5178
5179
  ye(!0), window.clearTimeout(G.current), G.current = window.setTimeout(() => ye(!1), 1800);
5179
5180
  }, () => {
5180
5181
  });
5181
- }, Ae = we && (V == null ? void 0 : V.share) && /* @__PURE__ */ g("div", { className: "gfull__sharecard", onPointerDown: ($) => $.stopPropagation(), onClick: ($) => $.stopPropagation(), children: [
5182
+ }, Ae = ve && (V == null ? void 0 : V.share) && /* @__PURE__ */ g("div", { className: "gfull__sharecard", onPointerDown: ($) => $.stopPropagation(), onClick: ($) => $.stopPropagation(), children: [
5182
5183
  Ie && /* @__PURE__ */ i("div", { className: "gfull__shareqr", role: "img", "aria-label": "QR code for this link", style: { backgroundImage: `url("${Ie}")` } }),
5183
5184
  /* @__PURE__ */ g("div", { className: "gfull__sharebody", children: [
5184
5185
  /* @__PURE__ */ i("div", { className: "gfull__shareeyebrow", children: "SHARE THIS MOMENT" }),
5185
5186
  /* @__PURE__ */ g("label", { className: "gfull__shareat", children: [
5186
5187
  /* @__PURE__ */ i("input", { type: "checkbox", checked: B, onChange: ($) => ce($.target.checked), disabled: V.share.at < 1 }),
5187
5188
  "Start at ",
5188
- jt(Math.floor(V.share.at))
5189
+ zt(Math.floor(V.share.at))
5189
5190
  ] }),
5190
5191
  /* @__PURE__ */ i("div", { className: "gfull__shareurl", children: /* @__PURE__ */ i("span", { children: ke.replace(/^https?:\/\//, "") }) }),
5191
5192
  /* @__PURE__ */ g("div", { className: "gfull__shareacts", children: [
@@ -5199,8 +5200,8 @@ function ha({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5199
5200
  ] })
5200
5201
  ] })
5201
5202
  ] })
5202
- ] }), he = ($, Me, ue, ae, fe, Ye = 0) => /* @__PURE__ */ i("button", { type: "button", className: "gfull__btn", title: $, "aria-label": $, onClick: ae, children: /* @__PURE__ */ i(oe, { d: Me, size: (we ? 20 : Ee ? 15 : 18) + Ye, sw: ue, style: fe }) }), _e = /* @__PURE__ */ g("div", { className: "gfull__acts", children: [
5203
- m && /* @__PURE__ */ i(da, { v: m, size: we ? 20 : Ee ? 15 : 18 }),
5203
+ ] }), he = ($, Me, ue, ae, fe, Ye = 0) => /* @__PURE__ */ i("button", { type: "button", className: "gfull__btn", title: $, "aria-label": $, onClick: ae, children: /* @__PURE__ */ i(oe, { d: Me, size: (ve ? 20 : Ee ? 15 : 18) + Ye, sw: ue, style: fe }) }), _e = /* @__PURE__ */ g("div", { className: "gfull__acts", children: [
5204
+ m && /* @__PURE__ */ i(da, { v: m, size: ve ? 20 : Ee ? 15 : 18 }),
5204
5205
  C && he("Share", X.share, 1.6, C),
5205
5206
  ji() && !e && he(F ? "Exit full screen" : "Full screen", F ? du : ua, 1.7, () => _n(!F)),
5206
5207
  I && he("Close player", X.close, 1.7, I)
@@ -5213,7 +5214,7 @@ function ha({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5213
5214
  "div",
5214
5215
  {
5215
5216
  ref: Te,
5216
- className: `gfull${we ? " gfull--desk" : ""}${Ee ? " gfull--mini" : ""}${ve ? " gfull--small" : ""}${ne ? " gfull--swipe" : ""}${h ? " gfull--ad" : ""}${O ? " gfull--calm" : ""}`,
5217
+ className: `gfull${ve ? " gfull--desk" : ""}${Ee ? " gfull--mini" : ""}${we ? " gfull--small" : ""}${ne ? " gfull--swipe" : ""}${h ? " gfull--ad" : ""}${O ? " gfull--calm" : ""}`,
5217
5218
  "data-theme": "dark",
5218
5219
  role: "dialog",
5219
5220
  "aria-label": s,
@@ -5236,7 +5237,7 @@ function ha({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5236
5237
  V && !h && /* @__PURE__ */ g("div", { className: `gfull__pausedinfo${p.playing ? "" : " gfull__pausedinfo--on"}`, "aria-hidden": p.playing, children: [
5237
5238
  /* @__PURE__ */ g("div", { className: "gfull__pausedtext", children: [
5238
5239
  /* @__PURE__ */ g("div", { className: "gfull__pausedhead", children: [
5239
- (Ee || ve) && /* @__PURE__ */ i("span", { className: "gfull__pausedmark", "aria-hidden": "true", children: /* @__PURE__ */ i(Yr, { dark: !0, size: 20 }) }),
5240
+ (Ee || we) && /* @__PURE__ */ i("span", { className: "gfull__pausedmark", "aria-hidden": "true", children: /* @__PURE__ */ i(Yr, { dark: !0, size: 20 }) }),
5240
5241
  /* @__PURE__ */ i("div", { className: "gfull__pausedtitle", children: V.title })
5241
5242
  ] }),
5242
5243
  V.summary && /* @__PURE__ */ i("div", { className: "gfull__pausedsum", children: V.summary })
@@ -5250,7 +5251,7 @@ function ha({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5250
5251
  c
5251
5252
  ] }) }) : /* @__PURE__ */ i("div", { className: "gfull__sub", children: c }) : l && /* @__PURE__ */ i("div", { className: "gfull__sub", children: /* @__PURE__ */ g("div", { ref: E, children: [
5252
5253
  /* @__PURE__ */ i("div", { className: "gfull__subback", "aria-hidden": "true", children: /* @__PURE__ */ g("span", { children: [
5253
- l.who && /* @__PURE__ */ g(be, { children: [
5254
+ l.who && /* @__PURE__ */ g(Ce, { children: [
5254
5255
  /* @__PURE__ */ g("b", { children: [
5255
5256
  l.who,
5256
5257
  ":"
@@ -5260,7 +5261,7 @@ function ha({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5260
5261
  l.words.map(($) => $.t + $.sp).join("")
5261
5262
  ] }) }),
5262
5263
  /* @__PURE__ */ g("span", { children: [
5263
- l.who && /* @__PURE__ */ g(be, { children: [
5264
+ l.who && /* @__PURE__ */ g(Ce, { children: [
5264
5265
  /* @__PURE__ */ g("b", { style: { color: l.color }, children: [
5265
5266
  l.who,
5266
5267
  ":"
@@ -5273,7 +5274,7 @@ function ha({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5273
5274
  ] }, Me))
5274
5275
  ] })
5275
5276
  ] }) }),
5276
- /* @__PURE__ */ i("div", { className: `gfull__prog${we ? "" : " gfull__prog--two"}`, children: we ? /* @__PURE__ */ g(be, { children: [
5277
+ /* @__PURE__ */ i("div", { className: `gfull__prog${ve ? "" : " gfull__prog--two"}`, children: ve ? /* @__PURE__ */ g(Ce, { children: [
5277
5278
  /* @__PURE__ */ i(_r, { live: o.live, desk: !0, pct: u }),
5278
5279
  /* @__PURE__ */ i(Un, { t: p }),
5279
5280
  /* @__PURE__ */ i(Yn, { pos: o, interactive: !0 }),
@@ -5284,7 +5285,7 @@ function ha({ compact: t = !1, noFull: e = !1, page: n = !0, picture: r, title:
5284
5285
  /* @__PURE__ */ i(Yn, { pos: o, interactive: !0 }),
5285
5286
  /* @__PURE__ */ i("div", { className: "gfull__chip", children: f }),
5286
5287
  _e
5287
- ] }) : /* @__PURE__ */ g(be, { children: [
5288
+ ] }) : /* @__PURE__ */ g(Ce, { children: [
5288
5289
  /* @__PURE__ */ g("div", { className: "gfull__row", children: [
5289
5290
  /* @__PURE__ */ i(_r, { live: o.live, pct: u, mark: !0 }),
5290
5291
  /* @__PURE__ */ i(Yn, { pos: o, interactive: !0 })
@@ -5368,12 +5369,12 @@ function Ma(t, e, n) {
5368
5369
  }, 500);
5369
5370
  }) : Promise.reject(new Error("Your browser blocked the VocalStack window. Allow pop-ups for this site and try again."));
5370
5371
  }
5371
- async function wu(t, e, n) {
5372
+ async function vu(t, e, n) {
5372
5373
  const r = await Ma(t, { url: e }, n);
5373
5374
  return r === "connected" ? null : r;
5374
5375
  }
5375
5376
  const ga = "vsp.connected";
5376
- function vu(t) {
5377
+ function wu(t) {
5377
5378
  try {
5378
5379
  return localStorage.getItem(ga) === new URL(t ?? Fr).origin;
5379
5380
  } catch {
@@ -5395,7 +5396,7 @@ const ku = {
5395
5396
  starting: "Starting the transcription…"
5396
5397
  }, ju = /^(https?:\/\/)?([\w-]+\.)+[a-z]{2,}(\/\S*)?$/i;
5397
5398
  function zu({ options: t, onStarted: e, onReplay: n, onClose: r }) {
5398
- const [s, a] = k(""), [o, l] = k(!1), [c, u] = k(null), [d, M] = k(null);
5399
+ const [s, a] = j(""), [o, l] = j(!1), [c, u] = j(null), [d, M] = j(null);
5399
5400
  S(() => {
5400
5401
  const y = (T) => {
5401
5402
  T.key === "Escape" && r();
@@ -5406,7 +5407,7 @@ function zu({ options: t, onStarted: e, onReplay: n, onClose: r }) {
5406
5407
  if (!(!f || o)) {
5407
5408
  l(!0), u(null);
5408
5409
  try {
5409
- const y = await wu(t.appUrl, /^https?:\/\//i.test(h) ? h : `https://${h}`, M);
5410
+ const y = await vu(t.appUrl, /^https?:\/\//i.test(h) ? h : `https://${h}`, M);
5410
5411
  y && e(y);
5411
5412
  } catch (y) {
5412
5413
  u(y instanceof Error ? y.message : "Something went wrong. Please try again.");
@@ -5442,7 +5443,7 @@ function zu({ options: t, onStarted: e, onReplay: n, onClose: r }) {
5442
5443
  ] }) });
5443
5444
  }
5444
5445
  function fa(t) {
5445
- const [e, n] = k(() => typeof window > "u" ? !0 : window.innerWidth >= 880);
5446
+ const [e, n] = j(() => typeof window > "u" ? !0 : window.innerWidth >= 880);
5446
5447
  return S(() => {
5447
5448
  if (t != null) return;
5448
5449
  const r = () => n(window.innerWidth >= 880);
@@ -5451,7 +5452,7 @@ function fa(t) {
5451
5452
  }
5452
5453
  const Iu = { lang: null, subtitles: !0, speakerLabels: !1, wordHighlight: !0, translateAudio: !0, voices: "cloned", removeBackground: !1, muted: !1 };
5453
5454
  function bu(t, e) {
5454
- const n = Ji(), [r, s] = $i(), [a, o] = k(null), [l, c] = k("main"), u = Dr(n, t.lang), d = ze(() => Qi(n, "translation"), [n]), M = (Y) => {
5455
+ const n = Ji(), [r, s] = $i(), [a, o] = j(null), [l, c] = j("main"), u = Dr(n, t.lang), d = ze(() => Qi(n, "translation"), [n]), M = (Y) => {
5455
5456
  e({ lang: Y }), s(Y);
5456
5457
  }, h = Rr({ open: a === "lang" || a === "settings" && l === "lang", onClose: () => a === "lang" ? o(null) : c("main"), value: t.lang, onSelect: M, languages: d, none: "As spoken", pinned: t.lang ? [t.lang] : [], recent: r, keepOpen: !0 }), f = () => {
5457
5458
  o(null), c("main");
@@ -5505,7 +5506,7 @@ function bu(t, e) {
5505
5506
  ] }),
5506
5507
  T
5507
5508
  ] })
5508
- ] }), V = /* @__PURE__ */ g(be, { children: [
5509
+ ] }), V = /* @__PURE__ */ g(Ce, { children: [
5509
5510
  /* @__PURE__ */ i(en, { open: a === "lang", onClose: f, title: "LANGUAGE", kind: "picker", header: h.search, sticky: !0, children: /* @__PURE__ */ i(jr, { children: h.list }) }),
5510
5511
  /* @__PURE__ */ i(en, { open: a === "settings", onClose: f, title: { main: "SETTINGS", lang: "LANGUAGE", subs: "SUBTITLES", audio: "AUDIO" }[l], titleNode: l === "main" ? void 0 : N, kind: l === "main" ? "settings" : "settings vs-sheet--page", sticky: !0, children: /* @__PURE__ */ i(jr, { children: D }) })
5511
5512
  ] });
@@ -5518,7 +5519,7 @@ function bu(t, e) {
5518
5519
  }
5519
5520
  };
5520
5521
  }
5521
- const yt = (t, e = "nonzero") => /* @__PURE__ */ i("path", { d: t, fill: "currentColor", fillRule: e }), Bt = (t) => /* @__PURE__ */ g(be, { children: [
5522
+ const yt = (t, e = "nonzero") => /* @__PURE__ */ i("path", { d: t, fill: "currentColor", fillRule: e }), Bt = (t) => /* @__PURE__ */ g(Ce, { children: [
5522
5523
  /* @__PURE__ */ i("path", { d: "M6.5 2.75h7.25l4.75 4.75v12.25a1.5 1.5 0 0 1-1.5 1.5H6.5a1.5 1.5 0 0 1-1.5-1.5V4.25a1.5 1.5 0 0 1 1.5-1.5Z", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinejoin: "round" }),
5523
5524
  /* @__PURE__ */ i("path", { d: "M13.75 2.75V7.5h4.75", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinejoin: "round" }),
5524
5525
  /* @__PURE__ */ i("text", { x: "11.75", y: "17.4", textAnchor: "middle", fontSize: t.length > 3 ? 4.4 : 5.2, fontWeight: "800", fill: "currentColor", fontFamily: "inherit", letterSpacing: ".2", children: t })
@@ -5526,13 +5527,13 @@ const yt = (t, e = "nonzero") => /* @__PURE__ */ i("path", { d: t, fill: "curren
5526
5527
  { name: "YouTube", tint: "#ff3b30", glyph: yt("M21.6 7.2a2.7 2.7 0 0 0-1.9-1.9C18 4.8 12 4.8 12 4.8s-6 0-7.7.5a2.7 2.7 0 0 0-1.9 1.9C2 8.9 2 12 2 12s0 3.1.4 4.8a2.7 2.7 0 0 0 1.9 1.9c1.7.5 7.7.5 7.7.5s6 0 7.7-.5a2.7 2.7 0 0 0 1.9-1.9c.4-1.7.4-4.8.4-4.8s0-3.1-.4-4.8ZM10 15.1V8.9l5.3 3.1L10 15.1Z", "evenodd") },
5527
5528
  { name: "MP3", tint: "#f78472", glyph: Bt("MP3") },
5528
5529
  { name: "Vimeo", tint: "#1ab7ea", glyph: yt("M22 7.4c-.1 2-1.5 4.7-4.2 8.1-2.8 3.6-5.1 5.4-7 5.4-1.2 0-2.2-1.1-3-3.3L6.2 11.6C5.6 9.4 5 8.3 4.3 8.3c-.1 0-.6.3-1.4.9L2 8l2.7-2.4C5.9 4.6 6.8 4 7.4 4c1.4-.1 2.3.9 2.6 2.9.4 2.2.6 3.6.8 4.1.4 1.8.9 2.7 1.4 2.7.4 0 1-.6 1.8-1.9.8-1.2 1.2-2.2 1.3-2.8.1-1.1-.3-1.6-1.3-1.6-.5 0-.9.1-1.4.3.9-3 2.7-4.5 5.3-4.4 1.9.1 2.8 1.3 2.7 3.7Z") },
5529
- { name: "Video", tint: "#55abe5", glyph: /* @__PURE__ */ g(be, { children: [
5530
+ { name: "Video", tint: "#55abe5", glyph: /* @__PURE__ */ g(Ce, { children: [
5530
5531
  /* @__PURE__ */ i("rect", { x: "3", y: "5.5", width: "13", height: "13", rx: "2.5", fill: "none", stroke: "currentColor", strokeWidth: "1.5" }),
5531
5532
  yt("M16 10.2 21 7v10l-5-3.2v-3.6Z")
5532
5533
  ] }) },
5533
5534
  { name: "Twitch", tint: "#a970ff", glyph: yt("M5 2.5 3 6.5v13h4.5V22H10l2.5-2.5h3.8L21 14.8V2.5H5Zm14 11.4-2.9 2.9h-4.3L9.4 19.2v-2.4H6V4.5h13v9.4ZM15.2 7.4h1.9v5.2h-1.9V7.4Zm-5 0h1.9v5.2h-1.9V7.4Z", "evenodd") },
5534
5535
  { name: "WAV", tint: "#7ee0b4", glyph: Bt("WAV") },
5535
- { name: "SoundCloud", tint: "#ff7a1a", glyph: /* @__PURE__ */ g(be, { children: [
5536
+ { name: "SoundCloud", tint: "#ff7a1a", glyph: /* @__PURE__ */ g(Ce, { children: [
5536
5537
  yt("M11 8.6a5 5 0 0 1 7.8 3.1 3 3 0 0 1-.3 6H11V8.6Z"),
5537
5538
  /* @__PURE__ */ i("rect", { x: "8.6", y: "9.4", width: "1.3", height: "8.3", rx: ".65", fill: "currentColor" }),
5538
5539
  /* @__PURE__ */ i("rect", { x: "6.2", y: "10.6", width: "1.3", height: "7.1", rx: ".65", fill: "currentColor" }),
@@ -5581,7 +5582,7 @@ function Su({ t }) {
5581
5582
  ] });
5582
5583
  }
5583
5584
  function Du() {
5584
- const t = j(null), [e, n] = k(!0), [r, s] = k(() => typeof document > "u" || !document.hidden);
5585
+ const t = z(null), [e, n] = j(!0), [r, s] = j(() => typeof document > "u" || !document.hidden);
5585
5586
  return S(() => {
5586
5587
  const a = () => s(!document.hidden);
5587
5588
  document.addEventListener("visibilitychange", a);
@@ -5611,7 +5612,7 @@ function Lr(t) {
5611
5612
  }
5612
5613
  }
5613
5614
  function Au(t, e) {
5614
- const [n, r] = k(!1), [s, a] = k(null), [o, l] = k(null), [c, u] = k(() => vu(t)), d = Ke((f) => {
5615
+ const [n, r] = j(!1), [s, a] = j(null), [o, l] = j(null), [c, u] = j(() => wu(t)), d = Ke((f) => {
5615
5616
  if (n) return;
5616
5617
  r(!0), l(null);
5617
5618
  let p;
@@ -5634,7 +5635,7 @@ function Eu(t) {
5634
5635
  function _u({ poster: t, src: e }) {
5635
5636
  var s;
5636
5637
  const n = e && ((s = Pn(e)) == null ? void 0 : s.id) === "youtube" ? na(e) : null, r = t ?? (n ? `https://i.ytimg.com/vi/${n}/hqdefault.jpg` : null);
5637
- return r ? /* @__PURE__ */ i("div", { className: "vsp-idle__pic", style: { backgroundImage: `url(${r})` } }) : e && Eu(e) ? /* @__PURE__ */ i("video", { className: "vsp-idle__pic vsp-idle__frame", src: `${e}#t=1`, muted: !0, playsInline: !0, preload: "metadata", "aria-hidden": "true" }) : /* @__PURE__ */ g(be, { children: [
5638
+ return r ? /* @__PURE__ */ i("div", { className: "vsp-idle__pic", style: { backgroundImage: `url(${r})` } }) : e && Eu(e) ? /* @__PURE__ */ i("video", { className: "vsp-idle__pic vsp-idle__frame", src: `${e}#t=1`, muted: !0, playsInline: !0, preload: "metadata", "aria-hidden": "true" }) : /* @__PURE__ */ g(Ce, { children: [
5638
5639
  /* @__PURE__ */ i("div", { className: "vsp-idle__pic vsp-idle__pic--brand" }),
5639
5640
  /* @__PURE__ */ i(Du, {})
5640
5641
  ] });
@@ -5642,8 +5643,8 @@ function _u({ poster: t, src: e }) {
5642
5643
  const Yu = { live: !1, atEdge: !1, edgeFrac: null, pct: 0, atLabel: "0:00", labelAt: () => "0:00", endLabel: "0:00", onSeek: () => {
5643
5644
  } };
5644
5645
  function Vn({ idle: t, poster: e, src: n, title: r, page: s, onAct: a, children: o }) {
5645
- const l = bu(t.prefs, t.set), c = fa(), u = j(null), [d, M] = k(!1);
5646
- Jt(() => {
5646
+ const l = bu(t.prefs, t.set), c = fa(), u = z(null), [d, M] = j(!1);
5647
+ Xt(() => {
5647
5648
  var T;
5648
5649
  const f = (T = u.current) == null ? void 0 : T.parentElement;
5649
5650
  if (!f) return;
@@ -5662,7 +5663,7 @@ function Vn({ idle: t, poster: e, src: n, title: r, page: s, onAct: a, children:
5662
5663
  ] });
5663
5664
  }
5664
5665
  function ma({ connect: t, onClick: e, label: n }) {
5665
- return /* @__PURE__ */ g(be, { children: [
5666
+ return /* @__PURE__ */ g(Ce, { children: [
5666
5667
  /* @__PURE__ */ g("button", { type: "button", className: "vsp-idle__connect", onClick: e, disabled: t.busy, children: [
5667
5668
  t.busy ? /* @__PURE__ */ i(ht, { size: 18, color: "#050507", track: "rgba(5,5,7,.2)" }) : /* @__PURE__ */ i(oe, { d: X.link, size: 18, sw: 1.8 }),
5668
5669
  /* @__PURE__ */ i("span", { children: t.busy ? "Waiting for VocalStack…" : n })
@@ -5680,7 +5681,7 @@ function Uu({ idle: t, src: e, ask: n, connect: r, page: s, poster: a = null, on
5680
5681
  ] });
5681
5682
  }
5682
5683
  function Ru({ idle: t, connect: e, page: n, poster: r = null, onPick: s }) {
5683
- const [a, o] = k(""), l = j(null), c = j(null), u = a.trim(), d = Ii.test(u), M = () => {
5684
+ const [a, o] = j(""), l = z(null), c = z(null), u = a.trim(), d = Ii.test(u), M = () => {
5684
5685
  if (!d || e.busy) return;
5685
5686
  const p = /^https?:\/\//i.test(u) ? u : `https://${u}`;
5686
5687
  s(p), e.start(p, !1);
@@ -5728,7 +5729,7 @@ function Pu({ idle: t, message: e, onRetry: n, page: r }) {
5728
5729
  ] });
5729
5730
  }
5730
5731
  function $u(t, e, n) {
5731
- const [r, s] = k(t && e ? void 0 : null);
5732
+ const [r, s] = j(t && e ? void 0 : null);
5732
5733
  return S(() => {
5733
5734
  if (!t) {
5734
5735
  s(null);
@@ -5770,7 +5771,7 @@ function Vu(t) {
5770
5771
  }
5771
5772
  const nd = Ka(function(e, n) {
5772
5773
  var K;
5773
- const r = j(null);
5774
+ const r = z(null);
5774
5775
  Ja(n, () => ({
5775
5776
  seek: (L) => {
5776
5777
  var ie;
@@ -5793,7 +5794,7 @@ const nd = Ka(function(e, n) {
5793
5794
  return (L = r.current) == null ? void 0 : L.toggle();
5794
5795
  }
5795
5796
  }), []);
5796
- const [s, a] = k({ id: e.id ?? "", token: e.token });
5797
+ const [s, a] = j({ id: e.id ?? "", token: e.token });
5797
5798
  S(() => {
5798
5799
  a({ id: e.id ?? "", token: e.token });
5799
5800
  }, [e.id, e.token, e.src]);
@@ -5801,7 +5802,7 @@ const nd = Ka(function(e, n) {
5801
5802
  S(() => {
5802
5803
  o != null && o.id && a({ id: o.id, token: e.token });
5803
5804
  }, [o == null ? void 0 : o.id]);
5804
- const [l, c] = k(null), [u, d] = k(() => ({ ...Iu, ...Object.fromEntries(Object.entries({ ...e.initial ?? {}, ...e.settings ?? {} }).filter(([, L]) => L !== void 0)) })), [M, h] = k({}), f = { prefs: u, set: (L) => {
5805
+ const [l, c] = j(null), [u, d] = j(() => ({ ...Iu, ...Object.fromEntries(Object.entries({ ...e.initial ?? {}, ...e.settings ?? {} }).filter(([, L]) => L !== void 0)) })), [M, h] = j({}), f = { prefs: u, set: (L) => {
5805
5806
  d((ie) => ({ ...ie, ...L })), h((ie) => ({ ...ie, ...L }));
5806
5807
  }, shareUrl: (K = e.shareUrl) == null ? void 0 : K.call(e, null) }, { muted: p, ...y } = M;
5807
5808
  S(() => {
@@ -5815,23 +5816,23 @@ const nd = Ka(function(e, n) {
5815
5816
  var L;
5816
5817
  V && ((L = e.onError) == null || L.call(e, V));
5817
5818
  }, [V]);
5818
- const F = fa(e.desk), A = (e.layout ?? "embed") === "embed", w = e.appUrl ?? (e.endCard ? e.endCard.appUrl : void 0), _ = Ke((L) => a({ id: L.transcriptionId, token: null, listen: { transcriptionId: L.transcriptionId, recordingId: L.recordingId, token: L.token } }), []), O = Au(w, _), te = j(null);
5819
+ const F = fa(e.desk), A = (e.layout ?? "embed") === "embed", v = e.appUrl ?? (e.endCard ? e.endCard.appUrl : void 0), _ = Ke((L) => a({ id: L.transcriptionId, token: null, listen: { transcriptionId: L.transcriptionId, recordingId: L.recordingId, token: L.token } }), []), O = Au(v, _), te = z(null);
5819
5820
  return S(() => (ki(A ? te.current : null), () => ki(null)), [A]), /* @__PURE__ */ i(xl, { value: I, children: /* @__PURE__ */ i("div", { ref: te, className: `vsp${A ? " vsp--embed" : ""}${e.className ? ` ${e.className}` : ""}`, "data-theme": (e.mode ?? "video") === "video" || e.dark ? "dark" : "light", "data-mode": (e.mode ?? "video") === "video" ? "video" : "transcript", children: m ? /* @__PURE__ */ i(Ru, { idle: f, connect: O, page: !A, poster: e.poster ?? null, onPick: c }) : N ? /* @__PURE__ */ i(Uu, { idle: f, src: T, ask: !l, connect: O, page: !A, poster: e.poster ?? null, onClear: l ? () => c(null) : void 0 }) : s.id ? V && !C ? /* @__PURE__ */ i(Pu, { idle: f, message: V.message, onRetry: Y, page: !A }) : /* @__PURE__ */ i(Bu, { ...e, initial: { ...e.initial ?? {}, ...y }, startMuted: p === !0, handle: r, id: s.id, api: I, shared: C, gone: D, loadError: V, reread: Y, desk: F, dark: (e.mode ?? "video") === "video" || !!e.dark, onStarted: (L) => a({ id: L.transcriptionId, token: null, listen: { transcriptionId: L.transcriptionId, recordingId: L.recordingId, token: L.token } }) }, s.id) : /* @__PURE__ */ i("div", { className: "vsp-gate", "data-theme": "dark", children: /* @__PURE__ */ i("span", { className: "gfull__spin gfull__holdspin", "aria-label": "Loading" }) }) }) });
5820
5821
  });
5821
5822
  function Bu(t) {
5822
5823
  var js, zs, Is, bs, Os, Cs, xs, Ss, Ds, As, Es, _s, Ys, Us, Rs, Ps, $s, Qs, Vs, Bs, Hs, Ws, Fs, Zs, Gs, qs, Ks, Js, Xs, ei, ti, ni, ri, si;
5823
- const { api: e, shared: n, gone: r, desk: s, dark: a } = t, o = t.id ?? "", l = ze(() => Vu(t), []), u = (t.mode ?? "video") === "video", [d, M] = k(t.loadError);
5824
+ const { api: e, shared: n, gone: r, desk: s, dark: a } = t, o = t.id ?? "", l = ze(() => Vu(t), []), u = (t.mode ?? "video") === "video", [d, M] = j(t.loadError);
5824
5825
  S(() => {
5825
5826
  t.loadError && M(t.loadError);
5826
5827
  }, [t.loadError]);
5827
- const [h, f] = k("none"), [p, y] = k(!1), [T, N] = k(""), [m, b] = Hc(), [C, D] = k(null), [V, Y] = k(u ? "listen" : "read"), [ee, I] = k(!1), F = j(null), A = j(/* @__PURE__ */ new Map()), [w, _] = k("main"), O = (v) => {
5828
+ const [h, f] = j("none"), [p, y] = j(!1), [T, N] = j(""), [m, b] = Hc(), [C, D] = j(null), [V, Y] = j(u ? "listen" : "read"), [ee, I] = j(!1), F = z(null), A = z(/* @__PURE__ */ new Map()), [v, _] = j("main"), O = (w) => {
5828
5829
  const me = document.querySelector(".vs-sheet--settings"), Pe = me == null ? void 0 : me.parentElement;
5829
- me && Pe && w === "main" && v !== "main" && Pe.style.setProperty("--vs-sheet-top", `${Math.round(me.getBoundingClientRect().top - Pe.getBoundingClientRect().top)}px`), _(v);
5830
+ me && Pe && v === "main" && w !== "main" && Pe.style.setProperty("--vs-sheet-top", `${Math.round(me.getBoundingClientRect().top - Pe.getBoundingClientRect().top)}px`), _(w);
5830
5831
  };
5831
5832
  S(() => {
5832
5833
  ee || O("main");
5833
5834
  }, [ee]);
5834
- const [te, K] = k(u), L = (n == null ? void 0 : n.recording) ?? null, ie = (L == null ? void 0 : L.id) ?? null, [ne, Z] = k(l.lang), J = typeof ne == "string" ? ne : null, [pe, le] = k(l.labels), [Te, je] = k(l.words), [Se, ve] = k(l.cc), [we, Ee] = k(l.translateAudio), [Re, De] = k(l.clonedVoices), [Q, H] = k(l.removeBackground), E = t.settings;
5835
+ const [te, K] = j(u), L = (n == null ? void 0 : n.recording) ?? null, ie = (L == null ? void 0 : L.id) ?? null, [ne, Z] = j(l.lang), J = typeof ne == "string" ? ne : null, [pe, le] = j(l.labels), [Te, je] = j(l.words), [Se, we] = j(l.cc), [ve, Ee] = j(l.translateAudio), [Re, De] = j(l.clonedVoices), [Q, H] = j(l.removeBackground), E = t.settings;
5835
5836
  S(() => {
5836
5837
  (E == null ? void 0 : E.lang) !== void 0 && Z(E.lang);
5837
5838
  }, [E == null ? void 0 : E.lang]), S(() => {
@@ -5839,7 +5840,7 @@ function Bu(t) {
5839
5840
  }, [E == null ? void 0 : E.speakerLabels]), S(() => {
5840
5841
  (E == null ? void 0 : E.wordHighlight) !== void 0 && je(E.wordHighlight ? "on" : "off");
5841
5842
  }, [E == null ? void 0 : E.wordHighlight]), S(() => {
5842
- (E == null ? void 0 : E.subtitles) !== void 0 && ve(E.subtitles);
5843
+ (E == null ? void 0 : E.subtitles) !== void 0 && we(E.subtitles);
5843
5844
  }, [E == null ? void 0 : E.subtitles]), S(() => {
5844
5845
  (E == null ? void 0 : E.translateAudio) !== void 0 && Ee(E.translateAudio);
5845
5846
  }, [E == null ? void 0 : E.translateAudio]), S(() => {
@@ -5847,28 +5848,28 @@ function Bu(t) {
5847
5848
  }, [E == null ? void 0 : E.voices]), S(() => {
5848
5849
  (E == null ? void 0 : E.removeBackground) !== void 0 && H(E.removeBackground);
5849
5850
  }, [E == null ? void 0 : E.removeBackground]);
5850
- const x = { language: !0, subtitles: !0, audio: !0, export: !0, share: !0, fullscreen: !0, settings: !0, ...t.controls ?? {} }, B = u && !we;
5851
+ const x = { language: !0, subtitles: !0, audio: !0, export: !0, share: !0, fullscreen: !0, settings: !0, ...t.controls ?? {} }, B = u && !ve;
5851
5852
  S(() => {
5852
5853
  if (!t.syncUrl) return;
5853
- const v = new URL(window.location.href);
5854
- J ? v.searchParams.set("lang", J) : v.searchParams.delete("lang"), pe ? v.searchParams.set("labels", pe) : v.searchParams.delete("labels"), Te ? v.searchParams.set("words", Te) : v.searchParams.delete("words"), Se ? v.searchParams.delete("cc") : v.searchParams.set("cc", "off"), we ? v.searchParams.delete("audio") : v.searchParams.set("audio", "original"), Re ? v.searchParams.delete("voices") : v.searchParams.set("voices", "stock"), Xo(v, Q), v.href !== window.location.href && window.history.replaceState(window.history.state, "", v);
5855
- }, [J, pe, Te, Se, we, Re, Q]), S(() => {
5854
+ const w = new URL(window.location.href);
5855
+ J ? w.searchParams.set("lang", J) : w.searchParams.delete("lang"), pe ? w.searchParams.set("labels", pe) : w.searchParams.delete("labels"), Te ? w.searchParams.set("words", Te) : w.searchParams.delete("words"), Se ? w.searchParams.delete("cc") : w.searchParams.set("cc", "off"), ve ? w.searchParams.delete("audio") : w.searchParams.set("audio", "original"), Re ? w.searchParams.delete("voices") : w.searchParams.set("voices", "stock"), Xo(w, Q), w.href !== window.location.href && window.history.replaceState(window.history.state, "", w);
5856
+ }, [J, pe, Te, Se, ve, Re, Q]), S(() => {
5856
5857
  n && !n.allowTranslate && J && Z(null);
5857
5858
  }, [n, J]);
5858
5859
  const { model: ce, error: W, clearError: ye, setLanguage: G, mergeTranslations: ke, translating: Ie, translateFailed: Fe, shownLang: Ae } = Ql(ie, {
5859
5860
  lang: null,
5860
- onFrame: (v) => {
5861
- v.type === "job.progress" && D({ state: v.state, processedS: v.processedS ?? 0, totalS: v.totalS ?? null, segmentsDone: v.segmentsDone ?? 0, segmentsTotal: v.segmentsTotal ?? null, pct: v.pct ?? 0, error: v.error ?? null });
5861
+ onFrame: (w) => {
5862
+ w.type === "job.progress" && D({ state: w.state, processedS: w.processedS ?? 0, totalS: w.totalS ?? null, segmentsDone: w.segmentsDone ?? 0, segmentsTotal: w.segmentsTotal ?? null, pct: w.pct ?? 0, error: w.error ?? null });
5862
5863
  }
5863
- }), he = ze(() => yl(ce).filter((v) => !v.suppressed), [ce]), _e = Vl((n == null ? void 0 : n.job) ?? null), Ve = ["done", "failed", "stopped"].includes(Tr((_e == null ? void 0 : _e.state) ?? ((js = n == null ? void 0 : n.job) == null ? void 0 : js.state))), $ = Ve ? _e : C ?? _e, Me = !!C && !["done", "failed", "stopped"].includes(Tr(C.state)), ue = j(0);
5864
+ }), he = ze(() => yl(ce).filter((w) => !w.suppressed), [ce]), _e = Vl((n == null ? void 0 : n.job) ?? null), Ve = ["done", "failed", "stopped"].includes(Tr((_e == null ? void 0 : _e.state) ?? ((js = n == null ? void 0 : n.job) == null ? void 0 : js.state))), $ = Ve ? _e : C ?? _e, Me = !!C && !["done", "failed", "stopped"].includes(Tr(C.state)), ue = z(0);
5864
5865
  S(() => {
5865
5866
  !Ve || !Me || Date.now() - ue.current < 1e4 || (ue.current = Date.now(), t.reread());
5866
5867
  }, [Ve, Me, C == null ? void 0 : C.state, C == null ? void 0 : C.processedS, o]);
5867
- const ae = Tr(($ == null ? void 0 : $.state) ?? ((zs = n == null ? void 0 : n.job) == null ? void 0 : zs.state) ?? (e.listen ? (L == null ? void 0 : L.state) === "finalized" ? "done" : L != null && L.state ? "transcribing" : void 0 : void 0)), fe = !!ie && (ae === "transcribing" || ae === "queued"), Ye = u && !r && (!n || (fe || ae === "cropping") && he.length === 0), U = fe ? ($ == null ? void 0 : $.pct) ?? 0 : 100, R = Hl(n == null ? void 0 : n.job, $) ?? (L == null ? void 0 : L.mediaDurationS) ?? null, q = ((Is = ce.segments.values().next().value) == null ? void 0 : Is.language) ?? (L == null ? void 0 : L.spokenLanguage) ?? null, se = n != null && n.sharedBy ? `Shared by ${n.sharedBy}` : "", de = ((Cs = (Os = (bs = n == null ? void 0 : n.job) == null ? void 0 : bs.source) == null ? void 0 : Os.name) == null ? void 0 : Cs.trim()) || null, Oe = n ? ((xs = n.name) == null ? void 0 : xs.trim()) || de : null, Ne = !!((Ss = n == null ? void 0 : n.job) != null && Ss.hasAudio), Le = (Ds = n == null ? void 0 : n.job) == null ? void 0 : Ds.source, Ce = !Ne && !!Le && (Le.kind !== "url" || Le.bytes != null) && (ae === "transcribing" || ae === "queued" || ae === "done"), He = ie && (n != null && n.allowDownload) && Ne ? fo(e.origin, ie, e.cred) : null, $e = !!Le && (Le.kind !== "url" || Le.bytes != null), ut = Hu(He && $e ? He : null), it = He && (!$e || ut === "yes") ? He : He && ut === "unknown" ? null : ie && (n != null && n.allowDownload) && (Ce || Ne && $e) ? xn(e.origin, ie, "source", e.cred) : null, pt = he[he.length - 1], Ge = pt ? ((As = pt.words[pt.words.length - 1]) == null ? void 0 : As.end) ?? pt.start : 0, rt = u && fe ? Math.max(Ge, ($ == null ? void 0 : $.processedS) ?? 0) : null, Mt = Kc(it, (Ne || Ce) && !!(n != null && n.allowDownload), he, R, Ce ? ((_s = (Es = n == null ? void 0 : n.job) == null ? void 0 : Es.crop) == null ? void 0 : _s.startS) ?? 0 : 0, rt), st = _o((Ys = n == null ? void 0 : n.job) == null ? void 0 : Ys.source), Be = st && ((Us = Pn(st)) == null ? void 0 : Us.id) === "youtube" ? na(st) : null, Mn = Bo(Be), At = qc(he, R, ((Ps = (Rs = n == null ? void 0 : n.job) == null ? void 0 : Rs.crop) == null ? void 0 : Ps.startS) ?? 0, rt), Je = !!Be, lt = Je ? At.player : Mt, at = Ji(), tn = j(null), re = nu({ forcedVoice: t.voice ?? null, recordingId: ie, model: ce, rows: he, lenS: R, ended: !!ie && !fe, cred: e.cred, langs: at, srcLang: q, canTranslate: !!(n != null && n.allowTranslate), pickedLang: ne, setPickedLang: Z, side: s && !te ? tu : void 0, hearOriginal: B, timed: !!Be, stockVoices: u && !Re, stickyPicker: u, pickerBusy: tn.current }), gn = j(null);
5868
+ const ae = Tr(($ == null ? void 0 : $.state) ?? ((zs = n == null ? void 0 : n.job) == null ? void 0 : zs.state) ?? (e.listen ? (L == null ? void 0 : L.state) === "finalized" ? "done" : L != null && L.state ? "transcribing" : void 0 : void 0)), fe = !!ie && (ae === "transcribing" || ae === "queued"), Ye = u && !r && (!n || (fe || ae === "cropping") && he.length === 0), U = fe ? ($ == null ? void 0 : $.pct) ?? 0 : 100, R = Hl(n == null ? void 0 : n.job, $) ?? (L == null ? void 0 : L.mediaDurationS) ?? null, q = ((Is = ce.segments.values().next().value) == null ? void 0 : Is.language) ?? (L == null ? void 0 : L.spokenLanguage) ?? null, se = n != null && n.sharedBy ? `Shared by ${n.sharedBy}` : "", de = ((Cs = (Os = (bs = n == null ? void 0 : n.job) == null ? void 0 : bs.source) == null ? void 0 : Os.name) == null ? void 0 : Cs.trim()) || null, be = n ? ((xs = n.name) == null ? void 0 : xs.trim()) || de : null, Ne = !!((Ss = n == null ? void 0 : n.job) != null && Ss.hasAudio), Le = (Ds = n == null ? void 0 : n.job) == null ? void 0 : Ds.source, Oe = !Ne && !!Le && (Le.kind !== "url" || Le.bytes != null) && (ae === "transcribing" || ae === "queued" || ae === "done"), He = ie && (n != null && n.allowDownload) && Ne ? fo(e.origin, ie, e.cred) : null, $e = !!Le && (Le.kind !== "url" || Le.bytes != null), ut = Hu(He && $e ? He : null), it = He && (!$e || ut === "yes") ? He : He && ut === "unknown" ? null : ie && (n != null && n.allowDownload) && (Oe || Ne && $e) ? xn(e.origin, ie, "source", e.cred) : null, pt = he[he.length - 1], Ge = pt ? ((As = pt.words[pt.words.length - 1]) == null ? void 0 : As.end) ?? pt.start : 0, rt = u && fe ? Math.max(Ge, ($ == null ? void 0 : $.processedS) ?? 0) : null, Mt = Kc(it, (Ne || Oe) && !!(n != null && n.allowDownload), he, R, Oe ? ((_s = (Es = n == null ? void 0 : n.job) == null ? void 0 : Es.crop) == null ? void 0 : _s.startS) ?? 0 : 0, rt), st = _o((Ys = n == null ? void 0 : n.job) == null ? void 0 : Ys.source), Be = st && ((Us = Pn(st)) == null ? void 0 : Us.id) === "youtube" ? na(st) : null, Mn = Bo(Be), At = qc(he, R, ((Ps = (Rs = n == null ? void 0 : n.job) == null ? void 0 : Rs.crop) == null ? void 0 : Ps.startS) ?? 0, rt), Je = !!Be, lt = Je ? At.player : Mt, at = Ji(), tn = z(null), re = nu({ forcedVoice: t.voice ?? null, recordingId: ie, model: ce, rows: he, lenS: R, ended: !!ie && !fe, cred: e.cred, langs: at, srcLang: q, canTranslate: !!(n != null && n.allowTranslate), pickedLang: ne, setPickedLang: Z, side: s && !te ? tu : void 0, hearOriginal: B, timed: !!Be, stockVoices: u && !Re, stickyPicker: u, pickerBusy: tn.current }), gn = z(null);
5868
5869
  S(() => {
5869
5870
  !ie || gn.current === J || (gn.current = J, G(J));
5870
5871
  }, [J, ie]);
5871
- const z = Je ? At.player : re.on ? re.player : lt;
5872
+ const k = Je ? At.player : re.on ? re.player : lt;
5872
5873
  S(() => {
5873
5874
  if (Je) {
5874
5875
  re.player.pause();
@@ -5876,18 +5877,18 @@ function Bu(t) {
5876
5877
  }
5877
5878
  (re.on ? lt : re.player).pause();
5878
5879
  }, [re.on, Je]);
5879
- const Wn = ze(() => he.filter((v) => v.sentenceId != null).map((v, me, Pe) => {
5880
+ const Wn = ze(() => he.filter((w) => w.sentenceId != null).map((w, me, Pe) => {
5880
5881
  var We;
5881
- return { sid: v.sentenceId, start: v.start, end: ((We = Pe[me + 1]) == null ? void 0 : We.start) ?? Ht(v, v.start, v.start + 4) };
5882
- }), [he]), Et = hl({ on: Je && re.on, lines: Wn, clips: re.clips, t: z.t, playing: z.playing, muted: z.muted }), _t = !!J && (Ie || re.relang || re.on && Et.missing != null);
5882
+ return { sid: w.sentenceId, start: w.start, end: ((We = Pe[me + 1]) == null ? void 0 : We.start) ?? Ht(w, w.start, w.start + 4) };
5883
+ }), [he]), Et = hl({ on: Je && re.on, lines: Wn, clips: re.clips, t: k.t, playing: k.playing, muted: k.muted }), _t = !!J && (Ie || re.relang || re.on && Et.missing != null);
5883
5884
  tn.current = _t ? J : null, S(() => {
5884
5885
  Je && re.on && Et.sid != null && re.setNear(Et.sid);
5885
5886
  }, [Et.sid, Je, re.on]), Gc([lt, re.player], re.sampling);
5886
- const Yt = j(null);
5887
+ const Yt = z(null);
5887
5888
  S(() => {
5888
- fe && !z.playing && Yt.current && (Yt.current.scrollTop = Yt.current.scrollHeight);
5889
+ fe && !k.playing && Yt.current && (Yt.current.scrollTop = Yt.current.scrollHeight);
5889
5890
  }, [fe, he.length]);
5890
- const Ft = iu(Yt, he, p, T, y), fn = /* @__PURE__ */ i(su, { open: p, q: T, onQ: N, onClose: () => y(!1), hits: Ft, desk: s, inline: s }), qe = Wo({ name: n == null ? void 0 : n.name, sourceName: (Qs = ($s = n == null ? void 0 : n.job) == null ? void 0 : $s.source) == null ? void 0 : Qs.name, ytTitle: Mn, url: ((Bs = (Vs = n == null ? void 0 : n.job) == null ? void 0 : Vs.source) == null ? void 0 : Bs.kind) === "url" ? n.job.source.url : t.src ?? null, id: o }), ot = !!(n != null && n.allowDownload), nn = !!(n != null && n.allowExport), mt = re.readLang, gt = mt ? ((Hs = at == null ? void 0 : at.languages.find((v) => v.code === mt)) == null ? void 0 : Hs.name) ?? mt.toUpperCase() : null, Zt = async () => {
5891
+ const Zt = iu(Yt, he, p, T, y), fn = /* @__PURE__ */ i(su, { open: p, q: T, onQ: N, onClose: () => y(!1), hits: Zt, desk: s, inline: s }), qe = Wo({ name: n == null ? void 0 : n.name, sourceName: (Qs = ($s = n == null ? void 0 : n.job) == null ? void 0 : $s.source) == null ? void 0 : Qs.name, ytTitle: Mn, url: ((Bs = (Vs = n == null ? void 0 : n.job) == null ? void 0 : Vs.source) == null ? void 0 : Bs.kind) === "url" ? n.job.source.url : t.src ?? null, id: o }), ot = !!(n != null && n.allowDownload), nn = !!(n != null && n.allowExport), mt = re.readLang, gt = mt ? ((Hs = at == null ? void 0 : at.languages.find((w) => w.code === mt)) == null ? void 0 : Hs.name) ?? mt.toUpperCase() : null, Gt = async () => {
5891
5892
  if (ie)
5892
5893
  try {
5893
5894
  if (mt && re.canSpeak) {
@@ -5899,210 +5900,210 @@ function Bu(t) {
5899
5900
  return;
5900
5901
  }
5901
5902
  Br(xn(e.origin, ie, "source", e.cred)), b(`Downloading ${qe} — the full audio, since the transcript is still being written.`);
5902
- } catch (v) {
5903
- throw M(It(v)), v;
5903
+ } catch (w) {
5904
+ throw M(bt(w)), w;
5904
5905
  }
5905
- }, dt = (v) => {
5906
+ }, dt = (w) => {
5906
5907
  if (!ie) return;
5907
- const me = Sr.find((We) => We.key === v).name, Pe = gt ? ` in ${gt}` : "";
5908
- return Fl(e, ie, v, { lang: mt }).then(() => b(fe ? `${me} exported${Pe} for the first ${he.length} segments — the rest is still transcribing.` : `${me} exported${Pe}.`)).catch((We) => {
5909
- throw M(It(We)), We;
5908
+ const me = Sr.find((We) => We.key === w).name, Pe = gt ? ` in ${gt}` : "";
5909
+ return Fl(e, ie, w, { lang: mt }).then(() => b(fe ? `${me} exported${Pe} for the first ${he.length} segments — the rest is still transcribing.` : `${me} exported${Pe}.`)).catch((We) => {
5910
+ throw M(bt(We)), We;
5910
5911
  });
5911
- }, rn = fe ? "MORE TO COME…" : "END OF TRANSCRIPT", ct = fe ? "var(--brand)" : "var(--ink-28)", sn = Bl($, he.length), bt = z.has && (!re.relang || !!Be), Ze = j(z);
5912
- Ze.current = z;
5913
- const Ut = `${J ?? ""}|${re.on ? "voice" : "source"}`, wt = j({ key: Ut, idx: 0, t: 0, playing: !1, until: 0 });
5912
+ }, rn = fe ? "MORE TO COME…" : "END OF TRANSCRIPT", ct = fe ? "var(--brand)" : "var(--ink-28)", sn = Bl($, he.length), Ot = k.has && (!re.relang || !!Be), Ze = z(k);
5913
+ Ze.current = k;
5914
+ const Ut = `${J ?? ""}|${re.on ? "voice" : "source"}`, vt = z({ key: Ut, idx: 0, t: 0, playing: !1, until: 0 });
5914
5915
  S(() => {
5915
- const v = wt.current;
5916
- if (v.key !== Ut && (v.key = Ut, v.until = Date.now() + 15e3), !Je) {
5917
- if (!v.until) {
5918
- v.idx = z.idx, v.t = z.t, v.playing = z.playing;
5916
+ const w = vt.current;
5917
+ if (w.key !== Ut && (w.key = Ut, w.until = Date.now() + 15e3), !Je) {
5918
+ if (!w.until) {
5919
+ w.idx = k.idx, w.t = k.t, w.playing = k.playing;
5919
5920
  return;
5920
5921
  }
5921
- if (Date.now() > v.until) {
5922
- v.until = 0;
5922
+ if (Date.now() > w.until) {
5923
+ w.until = 0;
5923
5924
  return;
5924
5925
  }
5925
- !z.has || re.relang || (v.until = 0, Math.abs(z.t - v.t) > 0.5 && (z.seekFrac && z.dur > 0 ? z.seekFrac(v.t / z.dur) : z.seekRow(v.idx)), v.playing && !z.playing && V === "listen" && (et.current = !0, z.toggle()));
5926
+ !k.has || re.relang || (w.until = 0, Math.abs(k.t - w.t) > 0.5 && (k.seekFrac && k.dur > 0 ? k.seekFrac(w.t / k.dur) : k.seekRow(w.idx)), w.playing && !k.playing && V === "listen" && (et.current = !0, k.toggle()));
5926
5927
  }
5927
5928
  });
5928
- const Rt = j(!1), et = j(!1);
5929
+ const Rt = z(!1), et = z(!1);
5929
5930
  u && (Ei.video = !0);
5930
- const [pn, Ot] = k(!1), [Fn, Zn] = k(!1);
5931
+ const [pn, Ct] = j(!1), [Fn, Zn] = j(!1);
5931
5932
  S(() => {
5932
- if (!u || Rt.current || !bt || !te || Ye || t.autoplay === !1) return;
5933
+ if (!u || Rt.current || !Ot || !te || Ye || t.autoplay === !1) return;
5933
5934
  Rt.current = !0;
5934
- const v = (We) => {
5935
- Ze.current.playing || et.current || (Ze.current.toggle(), We > 0 && setTimeout(() => v(We - 1), 1500));
5935
+ const w = (We) => {
5936
+ Ze.current.playing || et.current || (Ze.current.toggle(), We > 0 && setTimeout(() => w(We - 1), 1500));
5936
5937
  }, me = () => {
5937
- Ze.current.muted || Ze.current.toggleMute(), Ot(!0), v(3);
5938
+ Ze.current.muted || Ze.current.toggleMute(), Ct(!0), w(3);
5938
5939
  }, Pe = Ze.current;
5939
5940
  if (!Pe.autoplay || t.startMuted) {
5940
5941
  me();
5941
5942
  return;
5942
5943
  }
5943
5944
  Pe.autoplay().then((We) => {
5944
- We === !1 ? Ot(!0) : We == null && !et.current && me();
5945
+ We === !1 ? Ct(!0) : We == null && !et.current && me();
5945
5946
  });
5946
- }, [u, bt, te, Ye]);
5947
- const Ct = j(!1), Gn = () => {
5948
- pn && (Ot(!1), Ct.current = !0, setTimeout(() => {
5949
- Ct.current = !1;
5947
+ }, [u, Ot, te, Ye]);
5948
+ const xt = z(!1), Gn = () => {
5949
+ pn && (Ct(!1), xt.current = !0, setTimeout(() => {
5950
+ xt.current = !1;
5950
5951
  }, 500), Ze.current.muted && Ze.current.toggleMute());
5951
5952
  }, mn = () => {
5952
- if (Ct.current) {
5953
- Ct.current = !1;
5953
+ if (xt.current) {
5954
+ xt.current = !1;
5954
5955
  return;
5955
5956
  }
5956
- Ot(!1), Ze.current.toggleMute();
5957
- }, xt = () => {
5958
- if (Ct.current) {
5959
- Ct.current = !1;
5957
+ Ct(!1), Ze.current.toggleMute();
5958
+ }, wt = () => {
5959
+ if (xt.current) {
5960
+ xt.current = !1;
5960
5961
  return;
5961
5962
  }
5962
5963
  et.current = !0, Ze.current.toggle();
5963
- }, Nn = (v) => /* @__PURE__ */ i(Bc, { player: z, size: v }), an = !!ie && !fe, [P, xe] = k(!1);
5964
+ }, Nn = (w) => /* @__PURE__ */ i(Bc, { player: k, size: w }), an = !!ie && !fe, [P, xe] = j(!1);
5964
5965
  S(() => {
5965
5966
  if (!Ie) {
5966
5967
  xe(!1);
5967
5968
  return;
5968
5969
  }
5969
- const v = setTimeout(() => xe(!0), 180);
5970
- return () => clearTimeout(v);
5970
+ const w = setTimeout(() => xe(!0), 180);
5971
+ return () => clearTimeout(w);
5971
5972
  }, [Ie]);
5972
- const Qe = P ? Ae : J, St = ac(ie, J, he, ke), Pt = wc(vc(L), ie, re.readLang), Na = ot || nn, ya = (((Fs = (Ws = n == null ? void 0 : n.job) == null ? void 0 : Ws.crop) == null ? void 0 : Fs.startS) ?? 0) + Vt(z, he), vt = V === "listen", $t = vt && (!!Be || u), Ta = (v) => {
5973
- lt.pause(), re.player.pause(), Y(v), v === "read" && te && (cn(!1), K(!1));
5973
+ const Qe = P ? Ae : J, St = ac(ie, J, he, ke), Pt = vc(wc(L), ie, re.readLang), Na = ot || nn, ya = (((Fs = (Ws = n == null ? void 0 : n.job) == null ? void 0 : Ws.crop) == null ? void 0 : Fs.startS) ?? 0) + Vt(k, he), Lt = V === "listen", $t = Lt && (!!Be || u), Ta = (w) => {
5974
+ lt.pause(), re.player.pause(), Y(w), w === "read" && te && (cn(!1), K(!1));
5974
5975
  };
5975
5976
  S(() => {
5976
- vt || (lt.playing && lt.pause(), re.player.playing && re.player.pause());
5977
- }, [vt, lt.playing, re.player.playing]);
5978
- const Ue = re.barChip, Gt = ea(Ue.label), Zr = /* @__PURE__ */ i(kr, { value: V, onChange: Ta, bordered: !1, options: Nu(Gt, !!Be) }), qt = [...an ? [{ key: "summary", label: "Summary" }] : [], ...Na ? [{ key: "export", label: "Export" }] : []], Gr = (v) => /* @__PURE__ */ g(be, { children: [
5979
- v === "summary" && an && /* @__PURE__ */ i(Lc, { s: Pt }),
5980
- v === "export" && /* @__PURE__ */ i(Tc, { audio: ot ? { name: qe, meta: mt && re.canSpeak || Ne ? `MP3${R ? ` · ${jt(R)}` : ""}` : "ORIGINAL AUDIO", onClick: Zt } : null, formats: nn, onExport: dt })
5981
- ] }), wa = (v) => /* @__PURE__ */ i(nc, { index: z.idx, total: Math.max(1, he.length), frac: z.dur > 0 ? Math.min(1, z.t / z.dur) : 0, glideMs: z.wordSync ? 0 : 220, atLabel: jt(z.t), durLabel: jt(z.dur), stepLabel: v ? `${z.idx + 1} / ${he.length}` : "", onSeek: re.relang ? Xc : z.seekRow, onSeekFrac: re.relang ? void 0 : z.seekFrac, onScrubStart: z.hold, onScrubEnd: z.release }), qr = {
5977
+ Lt || (lt.playing && lt.pause(), re.player.playing && re.player.pause());
5978
+ }, [Lt, lt.playing, re.player.playing]);
5979
+ const Ue = re.barChip, qt = ea(Ue.label), Zr = /* @__PURE__ */ i(kr, { value: V, onChange: Ta, bordered: !1, options: Nu(qt, !!Be) }), Kt = [...an ? [{ key: "summary", label: "Summary" }] : [], ...Na ? [{ key: "export", label: "Export" }] : []], Gr = (w) => /* @__PURE__ */ g(Ce, { children: [
5980
+ w === "summary" && an && /* @__PURE__ */ i(Lc, { s: Pt }),
5981
+ w === "export" && /* @__PURE__ */ i(Tc, { audio: ot ? { name: qe, meta: mt && re.canSpeak || Ne ? `MP3${R ? ` · ${zt(R)}` : ""}` : "ORIGINAL AUDIO", onClick: Gt } : null, formats: nn, onExport: dt })
5982
+ ] }), va = (w) => /* @__PURE__ */ i(nc, { index: k.idx, total: Math.max(1, he.length), frac: k.dur > 0 ? Math.min(1, k.t / k.dur) : 0, glideMs: k.wordSync ? 0 : 220, atLabel: zt(k.t), durLabel: zt(k.dur), stepLabel: w ? `${k.idx + 1} / ${he.length}` : "", onSeek: re.relang ? Xc : k.seekRow, onSeekFrac: re.relang ? void 0 : k.seekFrac, onScrubStart: k.hold, onScrubEnd: k.release }), qr = {
5982
5983
  live: !1,
5983
5984
  atEdge: !1,
5984
5985
  edgeFrac: null,
5985
- readyFrac: rt != null && z.dur > 0 ? Math.min(1, rt / z.dur) : null,
5986
- pct: z.dur > 0 ? Math.min(100, Math.round(z.t / z.dur * 1e3) / 10) : 0,
5987
- atLabel: jt(z.t),
5988
- labelAt: (v) => jt(v * z.dur),
5989
- endLabel: jt(z.dur),
5990
- onSeek: (v) => {
5986
+ readyFrac: rt != null && k.dur > 0 ? Math.min(1, rt / k.dur) : null,
5987
+ pct: k.dur > 0 ? Math.min(100, Math.round(k.t / k.dur * 1e3) / 10) : 0,
5988
+ atLabel: zt(k.t),
5989
+ labelAt: (w) => zt(w * k.dur),
5990
+ endLabel: zt(k.dur),
5991
+ onSeek: (w) => {
5991
5992
  var me;
5992
- re.relang || (me = z.seekFrac) == null || me.call(z, v);
5993
+ re.relang || (me = k.seekFrac) == null || me.call(k, w);
5993
5994
  }
5994
- }, [va, La] = oa(re.on && !!z.preparing && z.playing, 1500), qn = re.on && ((Zs = z.error) == null ? void 0 : Zs.code) === "voice_not_started", Kn = re.canSpeak && !re.error && !qn, yn = J ? ((Gs = at == null ? void 0 : at.languages.find((v) => v.code === J)) == null ? void 0 : Gs.name) ?? Ue.label : "", tt = te ? Uc({ lang: J, langName: yn, translating: Ie && !!J, translateFailed: Fe, voiceFailed: qn, relang: re.relang, starting: re.on ? z.starting : null, slowLine: va, lineSince: La }) : null, Jn = !!Be && !!tt && (tt.kind === "translating" || tt.kind === "voice" && re.relang), Kr = !Jn || !tt ? null : tt.kind === "translating" ? `Translating into ${yn || "the new language"}…` : `Preparing the ${yn || "translated"} voice…`, Lt = !Jn && ((tt == null ? void 0 : tt.kind) === "voice" || (tt == null ? void 0 : tt.kind) === "starting"), Jr = Rr({ ...re.langList, keepOpen: !0, open: w === "lang", onClose: () => O("main") }), Xr = Ko(Q, re.on), ka = u && Xr.bed && ot && ie && (!fe || it) ? ai(e.origin, ie, e.cred) : null, es = al(ka, { t: Vt(z, he), playing: z.playing && !Lt && !(z.timed && z.preparing), muted: z.muted }), ja = u && Xr.speech && ot && ie && (!fe || it) ? ai(e.origin, ie, e.cred, "speech") : null, Xn = Wi(ja, { t: Vt(z, he), playing: !re.on && z.playing, muted: z.muted }), er = !re.on && Xn.on;
5995
+ }, [wa, La] = oa(re.on && !!k.preparing && k.playing, 1500), qn = re.on && ((Zs = k.error) == null ? void 0 : Zs.code) === "voice_not_started", Kn = re.canSpeak && !re.error && !qn, yn = J ? ((Gs = at == null ? void 0 : at.languages.find((w) => w.code === J)) == null ? void 0 : Gs.name) ?? Ue.label : "", tt = te ? Uc({ lang: J, langName: yn, translating: Ie && !!J, translateFailed: Fe, voiceFailed: qn, relang: re.relang, starting: re.on ? k.starting : null, slowLine: wa, lineSince: La }) : null, Jn = !!Be && !!tt && (tt.kind === "translating" || tt.kind === "voice" && re.relang), Kr = !Jn || !tt ? null : tt.kind === "translating" ? `Translating into ${yn || "the new language"}…` : `Preparing the ${yn || "translated"} voice…`, kt = !Jn && ((tt == null ? void 0 : tt.kind) === "voice" || (tt == null ? void 0 : tt.kind) === "starting"), Jr = Rr({ ...re.langList, keepOpen: !0, open: v === "lang", onClose: () => O("main") }), Xr = Ko(Q, re.on), ka = u && Xr.bed && ot && ie && (!fe || it) ? ai(e.origin, ie, e.cred) : null, es = al(ka, { t: Vt(k, he), playing: k.playing && !kt && !(k.timed && k.preparing), muted: k.muted }), ja = u && Xr.speech && ot && ie && (!fe || it) ? ai(e.origin, ie, e.cred, "speech") : null, Xn = Wi(ja, { t: Vt(k, he), playing: !re.on && k.playing, muted: k.muted }), er = !re.on && Xn.on;
5995
5996
  S(() => {
5996
- var v;
5997
- At.setVideoSound(!(Je && (re.on || er))), (v = Mt.silence) == null || v.call(Mt, !Je && er);
5997
+ var w;
5998
+ At.setVideoSound(!(Je && (re.on || er))), (w = Mt.silence) == null || w.call(Mt, !Je && er);
5998
5999
  }, [Je, re.on, er, it]);
5999
- const tr = ot ? re.on ? es : Xn.state : "unavailable", nr = we && Kn && !!J, za = nr ? [`Translated${re.hasClone ? Re ? ", cloned voices" : ", synthetic voices" : ""}`, !Q && ot && es !== "unavailable" ? "with background sound" : null].filter(Boolean).join(" ") : Q && tr !== "unavailable" ? "Original speech, background removed" : "Original sound", Ia = () => {
6000
+ const tr = ot ? re.on ? es : Xn.state : "unavailable", nr = ve && Kn && !!J, za = nr ? [`Translated${re.hasClone ? Re ? ", cloned voices" : ", synthetic voices" : ""}`, !Q && ot && es !== "unavailable" ? "with background sound" : null].filter(Boolean).join(" ") : Q && tr !== "unavailable" ? "Original speech, background removed" : "Original sound", Ia = () => {
6000
6001
  if ((tt == null ? void 0 : tt.kind) === "translateFailed") {
6001
6002
  G(J);
6002
6003
  return;
6003
6004
  }
6004
- et.current = !0, z.toggle();
6005
+ et.current = !0, k.toggle();
6005
6006
  }, ba = () => {
6006
- const v = z.idx;
6007
- z.pause(), Z(null), et.current = !0, lt.playRow(v);
6008
- }, ts = { prevOn: z.idx > 0, nextOn: z.idx < he.length - 1, onPrev: z.prev, onNext: z.next, playing: z.playing, playable: bt, playTitle: re.playTitle ?? (z.playing ? "Pause" : "Play"), onPlay: () => {
6009
- et.current = !0, z.toggle();
6010
- }, busy: re.relang && !Be || Lt };
6011
- fl(bt && vt ? { playing: z.playing, toggle: () => {
6012
- et.current = !0, z.toggle();
6013
- }, next: z.next, prev: z.prev } : null, Oe);
6014
- const rr = { background: "transparent", color: "#eef0f8", width: 74, justifyContent: "center", boxSizing: "border-box" }, sr = (v, me) => !Ue.can || !x.language ? null : u ? /* @__PURE__ */ g("button", { type: "button", className: "gfull__btn", title: _t ? `${Ue.label ?? Ue.code}: still being prepared` : Ue.label ?? Ue.code, "aria-label": `Language: ${Ue.label ?? Ue.code}`, "aria-busy": _t || void 0, onClick: () => {
6007
+ const w = k.idx;
6008
+ k.pause(), Z(null), et.current = !0, lt.playRow(w);
6009
+ }, ts = { prevOn: k.idx > 0, nextOn: k.idx < he.length - 1, onPrev: k.prev, onNext: k.next, playing: k.playing, playable: Ot, playTitle: re.playTitle ?? (k.playing ? "Pause" : "Play"), onPlay: () => {
6010
+ et.current = !0, k.toggle();
6011
+ }, busy: re.relang && !Be || kt };
6012
+ fl(Ot && Lt ? { playing: k.playing, toggle: () => {
6013
+ et.current = !0, k.toggle();
6014
+ }, next: k.next, prev: k.prev } : null, be);
6015
+ const rr = { background: "transparent", color: "#eef0f8", width: 74, justifyContent: "center", boxSizing: "border-box" }, sr = (w, me) => !Ue.can || !x.language ? null : u ? /* @__PURE__ */ g("button", { type: "button", className: "gfull__btn", title: _t ? `${Ue.label ?? Ue.code}: still being prepared` : Ue.label ?? Ue.code, "aria-label": `Language: ${Ue.label ?? Ue.code}`, "aria-busy": _t || void 0, onClick: () => {
6015
6016
  I(!1), Ue.onClick();
6016
6017
  }, style: { position: "relative" }, children: [
6017
6018
  /* @__PURE__ */ i("span", { style: { fontSize: me === "sm" ? 17 : 21, lineHeight: 1 }, children: Ue.flag }),
6018
6019
  _t && /* @__PURE__ */ i("span", { style: { position: "absolute", right: 2, bottom: 2, display: "flex", borderRadius: 999, background: "rgba(5,6,21,.7)", padding: 1 }, children: /* @__PURE__ */ i(ht, { size: 11, color: "#eef0f8", track: "rgba(255,255,255,.25)" }) })
6019
- ] }) : /* @__PURE__ */ i(Rn, { flag: Ue.flag, code: Ue.code, label: Ue.label, bordered: !1, size: me, onClick: Ue.onClick, style: v }), ns = { on: !1, title: "Voices", onClick: () => {
6020
- }, busy: re.voiceWaiting || Lt }, [Oa, Ca] = k(!1);
6020
+ ] }) : /* @__PURE__ */ i(Rn, { flag: Ue.flag, code: Ue.code, label: Ue.label, bordered: !1, size: me, onClick: Ue.onClick, style: w }), ns = { on: !1, title: "Voices", onClick: () => {
6021
+ }, busy: re.voiceWaiting || kt }, [Oa, Ca] = j(!1);
6021
6022
  S(() => {
6022
- z.t > 0.3 && Ca(!0);
6023
- }, [z.t]);
6024
- const xa = !Be && u && ie && (n != null && n.allowDownload) && !fe && ((qs = n == null ? void 0 : n.job) == null ? void 0 : qs.hasVideo) !== !1 ? /* @__PURE__ */ i(li, { src: xn(e.origin, ie, "video", e.cred), t: Vt(z, he), playing: z.playing && !Lt, seekN: z.seekN, onToggle: z.has ? xt : void 0 }, ie) : null, Qt = !Be && u && st && Ao(st) ? st : null, Tn = Qt ? Bi(Qt) : null, rs = ze(() => Tn ? Vo(Tn) : void 0, [Tn]), ir = Qt && ((Ks = Pn(Qt)) == null ? void 0 : Ks.id) === "facebook" ? Qt : null, Sa = ir ? /* @__PURE__ */ i(Po, { url: ir, t: Vt(z, he) + (((Xs = (Js = n == null ? void 0 : n.job) == null ? void 0 : Js.crop) == null ? void 0 : Xs.startS) ?? 0), playing: z.playing && !Lt, seekN: z.seekN, onToggle: z.has ? xt : void 0 }, ir) : rs ? /* @__PURE__ */ i(li, { setup: rs, seekOver: 1, t: Vt(z, he) + (((ti = (ei = n == null ? void 0 : n.job) == null ? void 0 : ei.crop) == null ? void 0 : ti.startS) ?? 0), playing: z.playing && !Lt, seekN: z.seekN, onToggle: z.has ? xt : void 0 }, Tn) : Qt ? /* @__PURE__ */ i(Yo, { url: Qt, t: Vt(z, he) + (((ri = (ni = n == null ? void 0 : n.job) == null ? void 0 : ni.crop) == null ? void 0 : ri.startS) ?? 0), playing: z.playing && !Lt, seekN: z.seekN, title: qe }) : null, Da = z.has ? /* @__PURE__ */ g("div", { className: "txyt vsp-follow", children: [
6025
- /* @__PURE__ */ i("div", { "aria-hidden": "true", className: "txyt__tap", onClick: xt, style: { cursor: "pointer" } }),
6026
- /* @__PURE__ */ i("div", { className: `txyt__paused${z.playing ? "" : " txyt__paused--on"}`, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(Xt, { size: 44 }) }) })
6027
- ] }) : null, ss = Be ? /* @__PURE__ */ g(be, { children: [
6028
- /* @__PURE__ */ i($c, { ytId: Be, title: qe, t: ya, playing: z.playing && !Lt, waiting: re.on && !!z.timed && !!z.preparing, seekN: z.seekN, onTime: (v) => {
6023
+ k.t > 0.3 && Ca(!0);
6024
+ }, [k.t]);
6025
+ const xa = !Be && u && ie && (n != null && n.allowDownload) && !fe && ((qs = n == null ? void 0 : n.job) == null ? void 0 : qs.hasVideo) !== !1 ? /* @__PURE__ */ i(li, { src: xn(e.origin, ie, "video", e.cred), t: Vt(k, he), playing: k.playing && !kt, seekN: k.seekN, onToggle: k.has ? wt : void 0 }, ie) : null, Qt = !Be && u && st && Ao(st) ? st : null, Tn = Qt ? Bi(Qt) : null, rs = ze(() => Tn ? Vo(Tn) : void 0, [Tn]), ir = Qt && ((Ks = Pn(Qt)) == null ? void 0 : Ks.id) === "facebook" ? Qt : null, Sa = ir ? /* @__PURE__ */ i(Po, { url: ir, t: Vt(k, he) + (((Xs = (Js = n == null ? void 0 : n.job) == null ? void 0 : Js.crop) == null ? void 0 : Xs.startS) ?? 0), playing: k.playing && !kt, seekN: k.seekN, onToggle: k.has ? wt : void 0 }, ir) : rs ? /* @__PURE__ */ i(li, { setup: rs, seekOver: 1, t: Vt(k, he) + (((ti = (ei = n == null ? void 0 : n.job) == null ? void 0 : ei.crop) == null ? void 0 : ti.startS) ?? 0), playing: k.playing && !kt, seekN: k.seekN, onToggle: k.has ? wt : void 0 }, Tn) : Qt ? /* @__PURE__ */ i(Yo, { url: Qt, t: Vt(k, he) + (((ri = (ni = n == null ? void 0 : n.job) == null ? void 0 : ni.crop) == null ? void 0 : ri.startS) ?? 0), playing: k.playing && !kt, seekN: k.seekN, title: qe, onToggle: k.has ? wt : void 0 }) : null, Da = k.has ? /* @__PURE__ */ g("div", { className: "txyt vsp-follow", children: [
6026
+ /* @__PURE__ */ i("div", { "aria-hidden": "true", className: "txyt__tap", onClick: wt, style: { cursor: "pointer" } }),
6027
+ /* @__PURE__ */ i("div", { className: `txyt__paused${k.playing ? "" : " txyt__paused--on"}`, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(Wt, { size: 44 }) }) })
6028
+ ] }) : null, ss = Be ? /* @__PURE__ */ g(Ce, { children: [
6029
+ /* @__PURE__ */ i($c, { ytId: Be, title: qe, t: ya, playing: k.playing && !kt, waiting: re.on && !!k.timed && !!k.preparing, seekN: k.seekN, onTime: (w) => {
6029
6030
  var me, Pe, We;
6030
- return (We = z.videoAt) == null ? void 0 : We.call(z, v - (((Pe = (me = n == null ? void 0 : n.job) == null ? void 0 : me.crop) == null ? void 0 : Pe.startS) ?? 0));
6031
- }, onToggle: z.has ? xt : void 0, onAd: Zn, lead: Je ? At.lead : void 0 }),
6031
+ return (We = k.videoAt) == null ? void 0 : We.call(k, w - (((Pe = (me = n == null ? void 0 : n.job) == null ? void 0 : me.crop) == null ? void 0 : Pe.startS) ?? 0));
6032
+ }, onToggle: k.has ? wt : void 0, onAd: Zn, lead: Je ? At.lead : void 0 }),
6032
6033
  /* @__PURE__ */ g("div", { className: "vsp-poster", "aria-hidden": "true", style: { opacity: Oa ? 0 : 1 }, children: [
6033
6034
  /* @__PURE__ */ i("div", { className: "vsp-poster__img", style: { backgroundImage: `url(https://i.ytimg.com/vi/${Be}/hqdefault.jpg)` } }),
6034
- /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(Xt, { size: 44 }) })
6035
+ /* @__PURE__ */ i("span", { className: "txyt__pausedplay", children: /* @__PURE__ */ i(Wt, { size: 44 }) })
6035
6036
  ] })
6036
- ] }) : u ? /* @__PURE__ */ g(be, { children: [
6037
+ ] }) : u ? /* @__PURE__ */ g(Ce, { children: [
6037
6038
  /* @__PURE__ */ i("div", { className: "vsp-idle__pic vsp-idle__pic--brand" }),
6038
6039
  Da,
6039
6040
  Sa,
6040
6041
  xa
6041
6042
  ] }) : null, is = $t && Be && !te ? /* @__PURE__ */ i(kc, { ytId: Be, title: qe, radius: 14, large: !0, style: s ? void 0 : { margin: "8px 20px 2px" }, picture: ss, children: /* @__PURE__ */ i(gu, { pos: qr, transport: ts, chip: sr({ ...rr, width: 64, height: 28, minHeight: 28, padding: "0 8px" }, "sm"), voices: ns, onFull: () => {
6042
6043
  cn(!0), K(!0);
6043
- }, copied: null }) }) : null, Xe = z.wordSync ? Kl(he, z.idx, z.t) ? he[z.idx] : void 0 : he[z.idx];
6044
- for (const v of he) for (const [me, Pe] of Object.entries(v.translations)) Pe && A.current.set(`${v.sentenceId ?? v.start}|${me}`, Pe);
6045
- const as = (v, me) => v.translations[me] || A.current.get(`${v.sentenceId ?? v.start}|${me}`) || null, ar = (v, me) => !v || !me || v.language === me || !!as(v, me), kt = ar(Xe, J) ? J : ar(Xe, F.current) ? F.current : J;
6046
- Xe && ar(Xe, kt) && (F.current = kt);
6047
- const os = Xe && kt && Xe.language !== kt ? as(Xe, kt) : null, Aa = Xe && os && kt && !Xe.translations[kt] ? Object.assign([...he], { [z.idx]: { ...Xe, translations: { ...Xe.translations, [kt]: os } } }) : he, wn = Xe ? la(Aa, z.idx, kt) : [], vn = Te ? Te === "on" : !u || re.on || !Qe || Qe === q, ls = vn ? vi(z, z.idx, wn) : null, cs = wn.map((v, me) => ({ t: v.text, sp: me < wn.length - 1 ? " " : "", dim: ls != null && me > ls })), Ln = pe ? pe === "on" : u ? !1 : Ol(ce, he, L == null ? void 0 : L.settings), us = { lang: J, subtitles: Se, speakerLabels: Ln, wordHighlight: vn, translateAudio: we, voices: Re ? "cloned" : "synthetic", removeBackground: Q }, Ea = JSON.stringify(us), kn = j(t.onSettingsChange);
6044
+ }, copied: null }) }) : null, Xe = k.wordSync ? Kl(he, k.idx, k.t) ? he[k.idx] : void 0 : he[k.idx];
6045
+ for (const w of he) for (const [me, Pe] of Object.entries(w.translations)) Pe && A.current.set(`${w.sentenceId ?? w.start}|${me}`, Pe);
6046
+ const as = (w, me) => w.translations[me] || A.current.get(`${w.sentenceId ?? w.start}|${me}`) || null, ar = (w, me) => !w || !me || w.language === me || !!as(w, me), jt = ar(Xe, J) ? J : ar(Xe, F.current) ? F.current : J;
6047
+ Xe && ar(Xe, jt) && (F.current = jt);
6048
+ const os = Xe && jt && Xe.language !== jt ? as(Xe, jt) : null, Aa = Xe && os && jt && !Xe.translations[jt] ? Object.assign([...he], { [k.idx]: { ...Xe, translations: { ...Xe.translations, [jt]: os } } }) : he, vn = Xe ? la(Aa, k.idx, jt) : [], wn = Te ? Te === "on" : !u || re.on || !Qe || Qe === q, ls = wn ? wi(k, k.idx, vn) : null, cs = vn.map((w, me) => ({ t: w.text, sp: me < vn.length - 1 ? " " : "", dim: ls != null && me > ls })), Ln = pe ? pe === "on" : u ? !1 : Ol(ce, he, L == null ? void 0 : L.settings), us = { lang: J, subtitles: Se, speakerLabels: Ln, wordHighlight: wn, translateAudio: ve, voices: Re ? "cloned" : "synthetic", removeBackground: Q }, Ea = JSON.stringify(us), kn = z(t.onSettingsChange);
6048
6049
  kn.current = t.onSettingsChange, S(() => {
6049
- var v;
6050
- (v = kn.current) == null || v.call(kn, us);
6050
+ var w;
6051
+ (w = kn.current) == null || w.call(kn, us);
6051
6052
  }, [Ea]);
6052
- const jn = Xe && Xe.speaker >= 0 && Ln ? Qr(ce, Xe.speaker) : null, [_a, ds] = k(!1), [or, hs] = k(null), [Ya, Ms] = k(null), lr = j(void 0);
6053
+ const jn = Xe && Xe.speaker >= 0 && Ln ? Qr(ce, Xe.speaker) : null, [_a, ds] = j(!1), [or, hs] = j(null), [Ya, Ms] = j(null), lr = z(void 0);
6053
6054
  S(() => () => window.clearTimeout(lr.current), []);
6054
- const cr = j(void 0);
6055
+ const cr = z(void 0);
6055
6056
  S(() => () => window.clearTimeout(cr.current), []);
6056
- const gs = (v) => {
6057
- if (t.shareUrl) return t.shareUrl(v);
6057
+ const gs = (w) => {
6058
+ if (t.shareUrl) return t.shareUrl(w);
6058
6059
  const me = new URL(window.location.href);
6059
- return v != null && v > 0 ? me.searchParams.set("t", String(v)) : me.searchParams.delete("t"), me.href;
6060
- }, zn = j(l.startAt), ur = (v) => {
6061
- if (z.seekFrac && z.dur > 0) {
6062
- z.seekFrac(Math.min(1, v / z.dur));
6060
+ return w != null && w > 0 ? me.searchParams.set("t", String(w)) : me.searchParams.delete("t"), me.href;
6061
+ }, zn = z(l.startAt), ur = (w) => {
6062
+ if (k.seekFrac && k.dur > 0) {
6063
+ k.seekFrac(Math.min(1, w / k.dur));
6063
6064
  return;
6064
6065
  }
6065
6066
  let me = 0;
6066
- for (let Pe = 0; Pe < he.length; Pe++) he[Pe].start <= v && (me = Pe);
6067
- z.seekRow(me);
6068
- }, fs = j(!1);
6067
+ for (let Pe = 0; Pe < he.length; Pe++) he[Pe].start <= w && (me = Pe);
6068
+ k.seekRow(me);
6069
+ }, fs = z(!1);
6069
6070
  S(() => {
6070
- const v = zn.current;
6071
- v == null || fs.current || !z.has || he.length === 0 || (fs.current = !0, ur(v));
6072
- }, [z.has, he.length]), S(() => {
6073
- const v = zn.current;
6074
- v == null || !z.playing || (zn.current = null, Math.abs(z.t - v) > 2 && ur(v));
6075
- }, [z.playing]);
6076
- const Ua = (v) => {
6077
- et.current = !0, zn.current = null, ur(Math.max(0, v));
6071
+ const w = zn.current;
6072
+ w == null || fs.current || !k.has || he.length === 0 || (fs.current = !0, ur(w));
6073
+ }, [k.has, he.length]), S(() => {
6074
+ const w = zn.current;
6075
+ w == null || !k.playing || (zn.current = null, Math.abs(k.t - w) > 2 && ur(w));
6076
+ }, [k.playing]);
6077
+ const Ua = (w) => {
6078
+ et.current = !0, zn.current = null, ur(Math.max(0, w));
6078
6079
  };
6079
6080
  t.handle.current = {
6080
- seek: (v) => Ua(v),
6081
+ seek: (w) => Ua(w),
6081
6082
  play: () => {
6082
- et.current = !0, vt && !Ze.current.playing && Ze.current.toggle();
6083
+ et.current = !0, Lt && !Ze.current.playing && Ze.current.toggle();
6083
6084
  },
6084
6085
  pause: () => {
6085
6086
  et.current = !0, Ze.current.pause();
6086
6087
  },
6087
6088
  toggle: () => {
6088
- et.current = !0, (vt || Ze.current.playing) && Ze.current.toggle();
6089
+ et.current = !0, (Lt || Ze.current.playing) && Ze.current.toggle();
6089
6090
  },
6090
6091
  toggleMute: () => {
6091
- Ot(!1), Ze.current.toggleMute();
6092
+ Ct(!1), Ze.current.toggleMute();
6092
6093
  }
6093
6094
  }, S(() => () => {
6094
6095
  t.handle.current = null;
6095
6096
  }, []);
6096
- const ps = j(t.onPlayback);
6097
+ const ps = z(t.onPlayback);
6097
6098
  ps.current = t.onPlayback;
6098
- const ms = j(J);
6099
+ const ms = z(J);
6099
6100
  ms.current = J, S(() => {
6100
- let v = "";
6101
+ let w = "";
6101
6102
  const me = () => {
6102
6103
  const We = ps.current;
6103
6104
  if (!We) return;
6104
6105
  const Nt = Ze.current, ft = { t: Nt.t, dur: Nt.dur, playing: Nt.playing, idx: Nt.idx, seekN: Nt.seekN, lang: ms.current, muted: Nt.muted }, Cn = `${ft.t.toFixed(2)}|${ft.dur}|${ft.playing}|${ft.idx}|${ft.seekN}|${ft.lang}|${ft.muted}`;
6105
- Cn !== v && (v = Cn, We(ft));
6106
+ Cn !== w && (w = Cn, We(ft));
6106
6107
  };
6107
6108
  me();
6108
6109
  const Pe = window.setInterval(me, Qu);
@@ -6110,11 +6111,11 @@ function Bu(t) {
6110
6111
  }, []);
6111
6112
  const Ra = () => t.onShare ? t.onShare() : Hr(gs(null), qe, () => {
6112
6113
  window.clearTimeout(cr.current), ds(!0), cr.current = window.setTimeout(() => ds(!1), 2200);
6113
- }), Ns = (v, me, Pe) => {
6114
- const We = Sr.find((Cn) => Cn.key === v), Nt = or === v, ft = Ya === v;
6114
+ }), Ns = (w, me, Pe) => {
6115
+ const We = Sr.find((Cn) => Cn.key === w), Nt = or === w, ft = Ya === w;
6115
6116
  return /* @__PURE__ */ g("div", { className: "srow srow--tap", role: "button", "aria-busy": Nt || void 0, style: or && !Nt ? { opacity: 0.45, pointerEvents: "none" } : void 0, onClick: () => {
6116
- or || (hs(v), Promise.resolve().then(() => dt(v)).then(() => {
6117
- Ms(v), window.clearTimeout(lr.current), lr.current = window.setTimeout(() => Ms(null), 1600);
6117
+ or || (hs(w), Promise.resolve().then(() => dt(w)).then(() => {
6118
+ Ms(w), window.clearTimeout(lr.current), lr.current = window.setTimeout(() => Ms(null), 1600);
6118
6119
  }).catch(() => {
6119
6120
  }).finally(() => hs(null)));
6120
6121
  }, children: [
@@ -6131,32 +6132,32 @@ function Bu(t) {
6131
6132
  /* @__PURE__ */ i(oe, { d: X.chevronLeft, size: 18, sw: 1.8 }),
6132
6133
  "Back"
6133
6134
  ] })
6134
- ] }), In = /* @__PURE__ */ i(oe, { d: X.chevronRight, size: 17, sw: 1.6, style: { flex: "none", color: "var(--ink-45)" } }), $a = { main: "SETTINGS", lang: "LANGUAGE", subs: "SUBTITLES", audio: "AUDIO", export: "EXPORT" }[w], bn = { display: "flex", flexDirection: "column", gap: 2, paddingBottom: 14 }, dr = u ? /* @__PURE__ */ i(en, { open: ee, onClose: () => I(!1), title: $a, titleNode: w === "main" ? void 0 : Pa, doneLabel: Gt.done, kind: w === "main" ? "settings" : "settings vs-sheet--page", sticky: !0, children: /* @__PURE__ */ i(jr, { children: w === "lang" ? /* @__PURE__ */ g("div", { style: { display: "flex", flexDirection: "column" }, children: [
6135
+ ] }), In = /* @__PURE__ */ i(oe, { d: X.chevronRight, size: 17, sw: 1.6, style: { flex: "none", color: "var(--ink-45)" } }), $a = { main: "SETTINGS", lang: "LANGUAGE", subs: "SUBTITLES", audio: "AUDIO", export: "EXPORT" }[v], bn = { display: "flex", flexDirection: "column", gap: 2, paddingBottom: 14 }, dr = u ? /* @__PURE__ */ i(en, { open: ee, onClose: () => I(!1), title: $a, titleNode: v === "main" ? void 0 : Pa, doneLabel: qt.done, kind: v === "main" ? "settings" : "settings vs-sheet--page", sticky: !0, children: /* @__PURE__ */ i(jr, { children: v === "lang" ? /* @__PURE__ */ g("div", { style: { display: "flex", flexDirection: "column" }, children: [
6135
6136
  /* @__PURE__ */ i("div", { style: { position: "sticky", top: 0, zIndex: 1, padding: "4px 14px 10px", background: "var(--vs-surface-raised)" }, children: Jr.search }),
6136
6137
  Jr.list
6137
- ] }) : w === "subs" ? /* @__PURE__ */ g("div", { style: bn, children: [
6138
+ ] }) : v === "subs" ? /* @__PURE__ */ g("div", { style: bn, children: [
6138
6139
  /* @__PURE__ */ g("div", { className: "srow", children: [
6139
6140
  /* @__PURE__ */ g("div", { style: { flex: 1, minWidth: 0 }, children: [
6140
6141
  /* @__PURE__ */ i("div", { className: "srow__t", children: "Show subtitles" }),
6141
6142
  /* @__PURE__ */ i("div", { className: "srow__s", children: "Captions over the video" })
6142
6143
  ] }),
6143
- /* @__PURE__ */ i(Tt, { checked: Se, onChange: ve, label: "Show subtitles" })
6144
+ /* @__PURE__ */ i(Tt, { checked: Se, onChange: we, label: "Show subtitles" })
6144
6145
  ] }),
6145
6146
  /* @__PURE__ */ g("div", { className: "srow", children: [
6146
6147
  /* @__PURE__ */ g("div", { style: { flex: 1, minWidth: 0 }, children: [
6147
6148
  /* @__PURE__ */ i("div", { className: "srow__t", children: "Show speaker labels" }),
6148
6149
  /* @__PURE__ */ i("div", { className: "srow__s", children: "Who is speaking, before each line" })
6149
6150
  ] }),
6150
- /* @__PURE__ */ i(Tt, { checked: Ln, onChange: (v) => le(v ? "on" : "off"), label: "Show speaker labels" })
6151
+ /* @__PURE__ */ i(Tt, { checked: Ln, onChange: (w) => le(w ? "on" : "off"), label: "Show speaker labels" })
6151
6152
  ] }),
6152
6153
  /* @__PURE__ */ g("div", { className: "srow", children: [
6153
6154
  /* @__PURE__ */ g("div", { style: { flex: 1, minWidth: 0 }, children: [
6154
6155
  /* @__PURE__ */ i("div", { className: "srow__t", children: "Highlight words" }),
6155
6156
  /* @__PURE__ */ i("div", { className: "srow__s", children: "Follow each word as it is spoken" })
6156
6157
  ] }),
6157
- /* @__PURE__ */ i(Tt, { checked: vn, onChange: (v) => je(v ? "on" : "off"), label: "Highlight words" })
6158
+ /* @__PURE__ */ i(Tt, { checked: wn, onChange: (w) => je(w ? "on" : "off"), label: "Highlight words" })
6158
6159
  ] })
6159
- ] }) : w === "audio" ? /* @__PURE__ */ g("div", { style: bn, children: [
6160
+ ] }) : v === "audio" ? /* @__PURE__ */ g("div", { style: bn, children: [
6160
6161
  /* @__PURE__ */ g("div", { className: "srow", children: [
6161
6162
  /* @__PURE__ */ g("div", { style: { flex: 1, minWidth: 0 }, children: [
6162
6163
  /* @__PURE__ */ i("div", { className: "srow__t", children: "Translate audio" }),
@@ -6169,7 +6170,7 @@ function Bu(t) {
6169
6170
  /* @__PURE__ */ i("div", { className: "srow__t", children: "Voices" }),
6170
6171
  /* @__PURE__ */ i("div", { className: "srow__s", children: Re ? "Each speaker in their own cloned voice" : "Synthetic voices matched to each speaker" })
6171
6172
  ] }),
6172
- /* @__PURE__ */ i(kr, { value: Re ? "clone" : "stock", onChange: (v) => De(v === "clone"), size: "sm", options: [{ value: "stock", label: "Synthetic" }, { value: "clone", label: "Cloned" }] })
6173
+ /* @__PURE__ */ i(kr, { value: Re ? "clone" : "stock", onChange: (w) => De(w === "clone"), size: "sm", options: [{ value: "stock", label: "Synthetic" }, { value: "clone", label: "Cloned" }] })
6173
6174
  ] }),
6174
6175
  /* @__PURE__ */ g("div", { className: "srow", children: [
6175
6176
  /* @__PURE__ */ g("div", { style: { flex: 1, minWidth: 0 }, children: [
@@ -6178,7 +6179,7 @@ function Bu(t) {
6178
6179
  ] }),
6179
6180
  /* @__PURE__ */ i(Tt, { checked: Q && ot, onChange: H, label: $n, disabled: !ot || tr === "unavailable" && !Q })
6180
6181
  ] })
6181
- ] }) : w === "export" ? /* @__PURE__ */ g("div", { style: bn, children: [
6182
+ ] }) : v === "export" ? /* @__PURE__ */ g("div", { style: bn, children: [
6182
6183
  Ns("srt", "Subtitles", "SRT / VTT caption cues, ready for a video editor or a player"),
6183
6184
  Ns("pdf", "PDF", "Formatted transcript in paragraphs, with timestamps and speaker labels")
6184
6185
  ] }) : /* @__PURE__ */ i("div", { style: bn, children: [
@@ -6214,14 +6215,14 @@ function Bu(t) {
6214
6215
  ] }),
6215
6216
  In
6216
6217
  ] }, "export")
6217
- ].filter(Boolean).flatMap((v, me) => me ? [/* @__PURE__ */ i("div", { className: "sdiv" }, `d${me}`), v] : [v]) }) }) }) : /* @__PURE__ */ i(en, { open: ee, onClose: () => I(!1), title: Gt.settings, doneLabel: Gt.done, drawer: s, children: /* @__PURE__ */ g("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
6218
- Ue.can && /* @__PURE__ */ g(be, { children: [
6218
+ ].filter(Boolean).flatMap((w, me) => me ? [/* @__PURE__ */ i("div", { className: "sdiv" }, `d${me}`), w] : [w]) }) }) }) : /* @__PURE__ */ i(en, { open: ee, onClose: () => I(!1), title: qt.settings, doneLabel: qt.done, drawer: s, children: /* @__PURE__ */ g("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
6219
+ Ue.can && /* @__PURE__ */ g(Ce, { children: [
6219
6220
  /* @__PURE__ */ g("div", { className: "srow srow--tap", onClick: () => {
6220
6221
  I(!1), Ue.onClick();
6221
6222
  }, children: [
6222
6223
  /* @__PURE__ */ g("div", { style: { flex: 1, minWidth: 0 }, children: [
6223
- /* @__PURE__ */ i("div", { className: "srow__t", children: Gt.langLabel }),
6224
- /* @__PURE__ */ i("div", { className: "srow__s", children: Gt.langCount })
6224
+ /* @__PURE__ */ i("div", { className: "srow__t", children: qt.langLabel }),
6225
+ /* @__PURE__ */ i("div", { className: "srow__s", children: qt.langCount })
6225
6226
  ] }),
6226
6227
  /* @__PURE__ */ i("span", { style: { fontSize: 18, lineHeight: 1 }, children: Ue.flag }),
6227
6228
  re.original ? null : /* @__PURE__ */ i("span", { style: { fontSize: 14, fontWeight: 600, color: "var(--ink-96)" }, children: Ue.label }),
@@ -6238,13 +6239,13 @@ function Bu(t) {
6238
6239
  title: qe,
6239
6240
  desk: s,
6240
6241
  pos: qr,
6241
- mute: { muted: z.muted, onToggle: mn },
6242
- cc: x.subtitles ? { on: Se, onToggle: () => ve((v) => !v) } : void 0,
6242
+ mute: { muted: k.muted, onToggle: mn },
6243
+ cc: x.subtitles ? { on: Se, onToggle: () => we((w) => !w) } : void 0,
6243
6244
  noFull: !x.fullscreen,
6244
6245
  ad: Fn,
6245
- wait: tt && !Jn ? /* @__PURE__ */ i(Pc, { state: tt, line: Lt ? cs.map((v) => v.t + v.sp).join("") : null, onRetry: Ia, onOriginal: ba }) : z.edgeWait ? `Transcribing ${Math.round(U)}% — it plays on as more is written` : null,
6246
+ wait: tt && !Jn ? /* @__PURE__ */ i(Pc, { state: tt, line: kt ? cs.map((w) => w.t + w.sp).join("") : null, onRetry: Ia, onOriginal: ba }) : k.edgeWait ? `Transcribing ${Math.round(U)}% — it plays on as more is written` : null,
6246
6247
  pct: fe ? Math.round(U) : null,
6247
- sub: Se && Xe ? { who: jn ? $r(ce, Xe.speaker) : null, color: jn ? jn.fg ?? `var(--lane-${jn.lane})` : "#fff", words: cs, cursor: vi(z, z.idx, wn) } : null,
6248
+ sub: Se && Xe ? { who: jn ? $r(ce, Xe.speaker) : null, color: jn ? jn.fg ?? `var(--lane-${jn.lane})` : "#fff", words: cs, cursor: wi(k, k.idx, vn) } : null,
6248
6249
  chip: sr(s ? rr : { ...rr, width: 64, padding: "0 6px" }, s ? void 0 : "sm"),
6249
6250
  transport: ts,
6250
6251
  picker: re.sheets,
@@ -6254,10 +6255,10 @@ function Bu(t) {
6254
6255
  sheetOpen: re.sheetsOpen || ee,
6255
6256
  onShare: u && x.share ? Ra : void 0,
6256
6257
  onSettings: u && x.settings ? () => {
6257
- re.closePicker(), I((v) => !v);
6258
+ re.closePicker(), I((w) => !w);
6258
6259
  } : void 0,
6259
6260
  compact: !!t.compact,
6260
- paused: { title: qe, summary: Pt.state === "ready" ? Pt.summary ?? null : null, share: x.share && (t.shareUrl || !t.onShare) ? { url: gs, at: z.t } : null },
6261
+ paused: { title: qe, summary: Pt.state === "ready" ? Pt.summary ?? null : null, share: x.share && (t.shareUrl || !t.onShare) ? { url: gs, at: k.t } : null },
6261
6262
  copied: _a ? /* @__PURE__ */ g("div", { className: "gfull__toast", "aria-live": "polite", children: [
6262
6263
  /* @__PURE__ */ i(oe, { d: X.check, size: 13, sw: 2 }),
6263
6264
  "Link copied"
@@ -6267,7 +6268,7 @@ function Bu(t) {
6267
6268
  ] }) : Kr ? /* @__PURE__ */ g("div", { className: "gfull__toast", role: "status", "aria-live": "polite", children: [
6268
6269
  /* @__PURE__ */ i(ht, { size: 13, color: "#eef0f8", track: "rgba(255,255,255,.25)" }),
6269
6270
  Kr
6270
- ] }) : re.on && (Je ? Et.missing != null : z.silent) ? /* @__PURE__ */ g("div", { className: "gfull__toast", role: "status", "aria-live": "polite", children: [
6271
+ ] }) : re.on && (Je ? Et.missing != null : k.silent) ? /* @__PURE__ */ g("div", { className: "gfull__toast", role: "status", "aria-live": "polite", children: [
6271
6272
  /* @__PURE__ */ i(ht, { size: 13, color: "#eef0f8", track: "rgba(255,255,255,.25)" }),
6272
6273
  `${yn || "Translated"} voice is still being prepared · playing with subtitles`
6273
6274
  ] }) : null,
@@ -6290,22 +6291,22 @@ function Bu(t) {
6290
6291
  /* @__PURE__ */ i("span", { className: "s", children: sn })
6291
6292
  ] }),
6292
6293
  !s && /* @__PURE__ */ i("div", { className: "pubprog__bar", style: { marginTop: 8 }, children: /* @__PURE__ */ i("div", { style: { width: `${U}%` } }) })
6293
- ] }), hr = r && /* @__PURE__ */ i("div", { className: "hint", style: { padding: "30px 20px", textAlign: "center", fontSize: 13 }, children: "This link is no longer shared. Ask the person who sent it for a new one." }), Ts = /* @__PURE__ */ i(ru, { model: ce, rows: he, player: vt ? z : { ...z, playRow: z.seekRow }, tail: rn, tailFg: ct, running: fe, desk: s, feedRef: Yt, listener: !0, showLabels: Ln, find: T, findOpen: !s && p, lang: Qe, warm: P, onVisible: St, wordHl: vn }), Mr = /* @__PURE__ */ i(tc, { error: d ?? W ?? (qn && te ? null : z.error) ?? re.error, onClose: () => {
6294
- M(null), ye(), z.clearError(), re.clearError();
6295
- } }), ws = [R ? jt(R) : null, q ? q.toUpperCase() : null, se || "Read-only copy"].filter(Boolean).join(" · "), vs = (v) => /* @__PURE__ */ i("div", { className: "ctrans", children: re.noVoice ? re.noVoiceNote : /* @__PURE__ */ g(be, { children: [
6294
+ ] }), hr = r && /* @__PURE__ */ i("div", { className: "hint", style: { padding: "30px 20px", textAlign: "center", fontSize: 13 }, children: "This link is no longer shared. Ask the person who sent it for a new one." }), Ts = /* @__PURE__ */ i(ru, { model: ce, rows: he, player: Lt ? k : { ...k, playRow: k.seekRow }, tail: rn, tailFg: ct, running: fe, desk: s, feedRef: Yt, listener: !0, showLabels: Ln, find: T, findOpen: !s && p, lang: Qe, warm: P, onVisible: St, wordHl: wn }), Mr = /* @__PURE__ */ i(tc, { error: d ?? W ?? (qn && te ? null : k.error) ?? re.error, onClose: () => {
6295
+ M(null), ye(), k.clearError(), re.clearError();
6296
+ } }), vs = [R ? zt(R) : null, q ? q.toUpperCase() : null, se || "Read-only copy"].filter(Boolean).join(" · "), ws = (w) => /* @__PURE__ */ i("div", { className: "ctrans", children: re.noVoice ? re.noVoiceNote : /* @__PURE__ */ g(Ce, { children: [
6296
6297
  /* @__PURE__ */ g("div", { className: "ctrans__row", children: [
6297
6298
  /* @__PURE__ */ i("span", { className: "ctrans__sp", "aria-hidden": "true" }),
6298
6299
  /* @__PURE__ */ g("div", { className: "ctrans__mid", children: [
6299
- /* @__PURE__ */ i("button", { type: "button", className: "ctrans__step", "aria-label": "Previous segment", title: "Previous segment", style: { opacity: z.idx <= 0 ? 0.3 : 1 }, onClick: z.prev, children: /* @__PURE__ */ i(oe, { d: X.chevronLeft, size: 16, sw: 1.8 }) }),
6300
- /* @__PURE__ */ i("button", { type: "button", className: "ctrans__play", "aria-label": re.relang ? "Preparing audio" : z.playing ? "Pause" : "Play", title: re.relang ? "Preparing audio…" : re.playTitle ?? (z.playing ? "Pause" : "Play"), disabled: !bt, onClick: z.toggle, children: re.relang ? /* @__PURE__ */ i("span", { className: "ctrans__spin" }) : /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", width: 16, height: 16, fill: "currentColor", "aria-hidden": "true", style: z.playing ? void 0 : { marginLeft: 2 }, children: z.playing ? Qc : Vc }) }),
6301
- /* @__PURE__ */ i("button", { type: "button", className: "ctrans__step", "aria-label": "Next segment", title: "Next segment", style: { opacity: z.idx >= he.length - 1 ? 0.3 : 1 }, onClick: z.next, children: /* @__PURE__ */ i(oe, { d: X.chevronRight, size: 16, sw: 1.8 }) })
6300
+ /* @__PURE__ */ i("button", { type: "button", className: "ctrans__step", "aria-label": "Previous segment", title: "Previous segment", style: { opacity: k.idx <= 0 ? 0.3 : 1 }, onClick: k.prev, children: /* @__PURE__ */ i(oe, { d: X.chevronLeft, size: 16, sw: 1.8 }) }),
6301
+ /* @__PURE__ */ i("button", { type: "button", className: "ctrans__play", "aria-label": re.relang ? "Preparing audio" : k.playing ? "Pause" : "Play", title: re.relang ? "Preparing audio…" : re.playTitle ?? (k.playing ? "Pause" : "Play"), disabled: !Ot, onClick: k.toggle, children: re.relang ? /* @__PURE__ */ i("span", { className: "ctrans__spin" }) : /* @__PURE__ */ i("svg", { viewBox: "0 0 24 24", width: 16, height: 16, fill: "currentColor", "aria-hidden": "true", style: k.playing ? void 0 : { marginLeft: 2 }, children: k.playing ? Qc : Vc }) }),
6302
+ /* @__PURE__ */ i("button", { type: "button", className: "ctrans__step", "aria-label": "Next segment", title: "Next segment", style: { opacity: k.idx >= he.length - 1 ? 0.3 : 1 }, onClick: k.next, children: /* @__PURE__ */ i(oe, { d: X.chevronRight, size: 16, sw: 1.8 }) })
6302
6303
  ] }),
6303
6304
  /* @__PURE__ */ i("span", { className: "ctrans__mute", children: Nn(36) })
6304
6305
  ] }),
6305
- /* @__PURE__ */ i("div", { className: "ctrans__scrub", children: wa(v) })
6306
- ] }) }), Qa = Ic("ga", { tabs: qt, cur: h, pref: (si = qt[0]) == null ? void 0 : si.key, onPick: f }), Ls = Math.max(0, Math.min(100, Math.round(U))), Va = Ye && /* @__PURE__ */ g("div", { className: "gfull gfull--hold", "data-theme": "dark", role: "status", "aria-live": "polite", children: [
6306
+ /* @__PURE__ */ i("div", { className: "ctrans__scrub", children: va(w) })
6307
+ ] }) }), Qa = Ic("ga", { tabs: Kt, cur: h, pref: (si = Kt[0]) == null ? void 0 : si.key, onPick: f }), Ls = Math.max(0, Math.min(100, Math.round(U))), Va = Ye && /* @__PURE__ */ g("div", { className: "gfull gfull--hold", "data-theme": "dark", role: "status", "aria-live": "polite", children: [
6307
6308
  Be && /* @__PURE__ */ i("div", { className: "gfull__holdbg", style: { backgroundImage: `url(https://i.ytimg.com/vi/${Be}/hqdefault.jpg)` } }),
6308
- /* @__PURE__ */ i("div", { className: "gfull__hold", children: n ? /* @__PURE__ */ g(be, { children: [
6309
+ /* @__PURE__ */ i("div", { className: "gfull__hold", children: n ? /* @__PURE__ */ g(Ce, { children: [
6309
6310
  qe && /* @__PURE__ */ i("div", { className: "gfull__holdt", children: qe }),
6310
6311
  /* @__PURE__ */ i("div", { className: "gfull__holdpct", children: ae === "transcribing" ? `${Ls}%` : /* @__PURE__ */ i("span", { className: "gfull__spin gfull__holdspin" }) }),
6311
6312
  /* @__PURE__ */ i("div", { className: "gfull__holdbar", children: /* @__PURE__ */ i("div", { style: { width: `${ae === "transcribing" ? Ls : 0}%` } }) }),
@@ -6315,32 +6316,32 @@ function Bu(t) {
6315
6316
  ] }),
6316
6317
  /* @__PURE__ */ i("div", { className: "gfull__holdn", children: "The video starts as soon as the first lines are transcribed." })
6317
6318
  ] }) : /* @__PURE__ */ i("span", { className: "gfull__spin gfull__holdspin", "aria-label": "Loading" }) })
6318
- ] }), ks = u && n && (fe || ae === "cropping") ? Math.max(0, Math.min(100, Math.round(U))) : null, On = j(t.onProgress);
6319
+ ] }), ks = u && n && (fe || ae === "cropping") ? Math.max(0, Math.min(100, Math.round(U))) : null, On = z(t.onProgress);
6319
6320
  On.current = t.onProgress, S(() => {
6320
- var v;
6321
- (v = On.current) == null || v.call(On, ks);
6321
+ var w;
6322
+ (w = On.current) == null || w.call(On, ks);
6322
6323
  }, [ks]);
6323
- const [Ba, gr] = k(!1), fr = !!Dt && !Ye && (Je ? !!z.ended : !z.playing && z.dur > 0 && z.t >= z.dur - 0.5);
6324
+ const [Ba, gr] = j(!1), fr = !!Dt && !Ye && (Je ? !!k.ended : !k.playing && k.dur > 0 && k.t >= k.dur - 0.5);
6324
6325
  S(() => {
6325
6326
  fr || gr(!1);
6326
6327
  }, [fr]);
6327
6328
  const Ha = t.endCard !== !1 && fr && !Ba && /* @__PURE__ */ i(zu, { options: { appUrl: t.appUrl, ...t.endCard || {} }, onStarted: t.onStarted, onClose: () => gr(!0), onReplay: () => {
6328
- gr(!0), et.current = !0, z.seekFrac ? z.seekFrac(0) : z.seekRow(0), z.playing || z.toggle();
6329
+ gr(!0), et.current = !0, k.seekFrac ? k.seekFrac(0) : k.seekRow(0), k.playing || k.toggle();
6329
6330
  } });
6330
- if (u) return /* @__PURE__ */ g(be, { children: [
6331
+ if (u) return /* @__PURE__ */ g(Ce, { children: [
6331
6332
  r ? /* @__PURE__ */ i("div", { className: "gfull", "data-theme": "dark", children: hr }) : Va || Dt || /* @__PURE__ */ i("div", { className: "gfull", "data-theme": "dark" }),
6332
6333
  Ha,
6333
6334
  Mr
6334
6335
  ] });
6335
6336
  if (s) {
6336
- const v = vt && !$t && !r && /* @__PURE__ */ i("div", { className: "pubdeskctl", children: vs(!0) }), me = !r && (qt.length > 0 || $t || !!re.sidePanel || !!v);
6337
- return /* @__PURE__ */ g(be, { children: [
6337
+ const w = Lt && !$t && !r && /* @__PURE__ */ i("div", { className: "pubdeskctl", children: ws(!0) }), me = !r && (Kt.length > 0 || $t || !!re.sidePanel || !!w);
6338
+ return /* @__PURE__ */ g(Ce, { children: [
6338
6339
  /* @__PURE__ */ i("div", { className: "dhead dhead--listener dhead--cols", children: /* @__PURE__ */ g("div", { className: "gcolhead", children: [
6339
6340
  /* @__PURE__ */ i("div", { className: "gcolhead__main", children: /* @__PURE__ */ g("div", { className: "gcolhead__col", children: [
6340
6341
  /* @__PURE__ */ i("div", { style: { flex: "none" }, children: /* @__PURE__ */ i(Bn, { dark: a, height: 20.38 }) }),
6341
6342
  !r && /* @__PURE__ */ g("div", { className: "dhead__session", children: [
6342
6343
  /* @__PURE__ */ i("span", { className: "t", children: n ? qe : "" }),
6343
- /* @__PURE__ */ i("span", { className: "s", children: n ? ws : "" })
6344
+ /* @__PURE__ */ i("span", { className: "s", children: n ? vs : "" })
6344
6345
  ] })
6345
6346
  ] }) }),
6346
6347
  me && /* @__PURE__ */ i("div", { className: "gcolhead__side" })
@@ -6358,9 +6359,9 @@ function Bu(t) {
6358
6359
  ] })
6359
6360
  ] }),
6360
6361
  me && /* @__PURE__ */ g(Cc, { id: "ga", className: "listenerside", gap: 20, plain: !0, children: [
6361
- !re.sidePanel && v,
6362
+ !re.sidePanel && w,
6362
6363
  !re.sidePanel && is,
6363
- !re.sidePanel && qt.length > 0 && /* @__PURE__ */ i("div", { "data-panel-grid": "", className: "listenerside__panels", children: /* @__PURE__ */ i(bc, { col: Qa, order: ["summary", "export"], onPick: f, grip: { summary: 40, export: 28 }, render: (Pe) => /* @__PURE__ */ i(ii, { panel: !0, children: Gr(Pe) }) }) }),
6364
+ !re.sidePanel && Kt.length > 0 && /* @__PURE__ */ i("div", { "data-panel-grid": "", className: "listenerside__panels", children: /* @__PURE__ */ i(bc, { col: Qa, order: ["summary", "export"], onPick: f, grip: { summary: 40, export: 28 }, render: (Pe) => /* @__PURE__ */ i(ii, { panel: !0, children: Gr(Pe) }) }) }),
6364
6365
  re.sidePanel
6365
6366
  ] })
6366
6367
  ] }),
@@ -6370,12 +6371,12 @@ function Bu(t) {
6370
6371
  Mr
6371
6372
  ] });
6372
6373
  }
6373
- const Wa = qt.length > 0 && !p && /* @__PURE__ */ i("div", { className: "txwidget", children: /* @__PURE__ */ g(ii, { panel: !0, children: [
6374
- /* @__PURE__ */ i(ia, { tabs: qt, current: h, onPick: f, gap: h !== "none" }),
6374
+ const Wa = Kt.length > 0 && !p && /* @__PURE__ */ i("div", { className: "txwidget", children: /* @__PURE__ */ g(ii, { panel: !0, children: [
6375
+ /* @__PURE__ */ i(ia, { tabs: Kt, current: h, onPick: f, gap: h !== "none" }),
6375
6376
  h !== "none" && Gr(h)
6376
6377
  ] }) });
6377
- return /* @__PURE__ */ g(be, { children: [
6378
- /* @__PURE__ */ i(pu, { dark: a, title: n ? qe : "", subline: n ? ws : "", onOptions: () => I(!0), optionsActive: ee }),
6378
+ return /* @__PURE__ */ g(Ce, { children: [
6379
+ /* @__PURE__ */ i(pu, { dark: a, title: n ? qe : "", subline: n ? vs : "", onOptions: () => I(!0), optionsActive: ee }),
6379
6380
  hr,
6380
6381
  ys,
6381
6382
  !r && Wa,
@@ -6386,7 +6387,7 @@ function Bu(t) {
6386
6387
  m && /* @__PURE__ */ i("div", { className: "txflash", children: m })
6387
6388
  ] }),
6388
6389
  !r && /* @__PURE__ */ g("div", { className: "gbottom", "data-transport": "1", children: [
6389
- vt && !$t && /* @__PURE__ */ i("div", { className: "pubctl", children: vs(!1) }),
6390
+ Lt && !$t && /* @__PURE__ */ i("div", { className: "pubctl", children: ws(!1) }),
6390
6391
  /* @__PURE__ */ g("div", { className: "gbottom__bar", children: [
6391
6392
  Ue.can && /* @__PURE__ */ i("div", { style: { flex: "none" }, children: sr({ width: 87 }, void 0) }),
6392
6393
  /* @__PURE__ */ i("div", { style: { flex: 1, minWidth: 0 }, children: Zr })
@@ -6399,7 +6400,7 @@ function Bu(t) {
6399
6400
  ] });
6400
6401
  }
6401
6402
  function Hu(t) {
6402
- const [e, n] = k(null);
6403
+ const [e, n] = j(null);
6403
6404
  return S(() => {
6404
6405
  if (!t || (e == null ? void 0 : e.url) === t && e.ok) return;
6405
6406
  let r = !0, s;
@@ -6453,7 +6454,7 @@ export {
6453
6454
  Xu as siteById,
6454
6455
  Pn as siteOf,
6455
6456
  _c as snapPosition,
6456
- vi as spokenWordOf,
6457
+ wi as spokenWordOf,
6457
6458
  Ko as trackPlan,
6458
6459
  Ki as useApi,
6459
6460
  pc as useArchiveVoice,
@@ -6461,9 +6462,9 @@ export {
6461
6462
  Gc as useDuck,
6462
6463
  iu as useFindPull,
6463
6464
  Hc as useFlash,
6464
- Wt as usePlayerApi,
6465
+ Ft as usePlayerApi,
6465
6466
  Wi as useSeparatedTrack,
6466
- wc as useSummaryIn,
6467
+ vc as useSummaryIn,
6467
6468
  Ql as useTranscript,
6468
6469
  Kc as useTxPlayer,
6469
6470
  nu as useTxVoice,