@instructure/studio-player 0.5.6 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- import './index-Bp7bsIbA.css';var ht = Object.defineProperty;
1
+ import './index-DpG3-qD1.css';var ht = Object.defineProperty;
2
2
  var pt = (e, t, o) => t in e ? ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
- var R = (e, t, o) => pt(e, typeof t != "symbol" ? t + "" : t, o);
4
- import { jsx as n, jsxs as r, Fragment as X } from "react/jsx-runtime";
5
- import { createContext as we, useContext as ye, useState as k, useCallback as f, useEffect as Z, useMemo as D, useRef as z, forwardRef as ft } from "react";
6
- import { u as S, s as ge, a as g, b as de, i as _t, T as Ct, C as gt, c as bt, d as vt, e as wt, P as yt, F as kt, f as ce, g as be, t as G, v as se, h as Lt, j as xt, k as Mt, l as Pt, M as Nt, m as It } from "./vidstack-CRo1u9eU.js";
3
+ var H = (e, t, o) => pt(e, typeof t != "symbol" ? t + "" : t, o);
4
+ import { jsx as n, jsxs as l, Fragment as X } from "react/jsx-runtime";
5
+ import { createContext as we, useContext as ye, useState as k, useCallback as p, useEffect as Z, useMemo as D, useRef as z, forwardRef as ft } from "react";
6
+ import { u as V, s as ge, a as b, b as de, i as _t, T as Ct, C as gt, c as bt, d as vt, e as wt, P as yt, F as kt, f as ce, g as be, t as G, v as se, h as Lt, j as xt, k as Mt, l as Pt, M as Nt, m as It } from "./vidstack-CRo1u9eU.js";
7
7
  import { n as Zi } from "./vidstack-CRo1u9eU.js";
8
- import { initReactI18next as Et, useTranslation as h } from "react-i18next";
9
- import Tt from "i18next";
10
- import At from "i18next-resources-to-backend";
11
- import { useFloating as me, autoUpdate as he, shift as ke, offset as Le, arrow as xe, useListNavigation as ze, useDismiss as Me, useInteractions as Pe, FloatingFocusManager as Ne, FloatingArrow as Ie, useMergeRefs as $e, detectOverflow as St } from "@floating-ui/react";
8
+ import { initReactI18next as Et, useTranslation as f } from "react-i18next";
9
+ import St from "i18next";
10
+ import Tt from "i18next-resources-to-backend";
11
+ import { useFloating as me, autoUpdate as he, shift as ke, offset as Le, arrow as xe, useListNavigation as ze, useDismiss as Me, useInteractions as Pe, FloatingFocusManager as Ne, FloatingArrow as Ie, useMergeRefs as $e, detectOverflow as At } from "@floating-ui/react";
12
12
  const Vt = (e, t, o) => {
13
13
  const i = e[t];
14
14
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((s, a) => {
@@ -22,8 +22,8 @@ const Vt = (e, t, o) => {
22
22
  );
23
23
  });
24
24
  };
25
- Tt.use(Et).use(
26
- At(
25
+ St.use(Et).use(
26
+ Tt(
27
27
  (e) => Vt(/* @__PURE__ */ Object.assign({ "./locales/ar.json": () => import("./ar-VCVxJm7K.js"), "./locales/ca.json": () => import("./ca-BEBt24QP.js"), "./locales/cy.json": () => import("./cy-YaAJqNQl.js"), "./locales/da-x-k12.json": () => import("./da-x-k12-lQy2NFaK.js"), "./locales/da.json": () => import("./da-BZWhI2Xn.js"), "./locales/de.json": () => import("./de-BUvRwMD6.js"), "./locales/en-AU-x-unimelb.json": () => import("./en-AU-x-unimelb-CMl3c1a0.js"), "./locales/en-GB-x-ukhe.json": () => import("./en-GB-x-ukhe-oT9RNDTK.js"), "./locales/en.json": () => import("./en-DwAikWk3.js"), "./locales/en_AU.json": () => import("./en_AU-CvZ7peTk.js"), "./locales/en_CY.json": () => import("./en_CY-BG8Pm72U.js"), "./locales/en_GB.json": () => import("./en_GB-CA_2B3N6.js"), "./locales/es.json": () => import("./es-CsXsddFr.js"), "./locales/es_ES.json": () => import("./es_ES-D71hU2MM.js"), "./locales/fi.json": () => import("./fi-D2HqteTW.js"), "./locales/fr.json": () => import("./fr-BAEJ5gcO.js"), "./locales/fr_CA.json": () => import("./fr_CA-BKv7vpJe.js"), "./locales/ga.json": () => import("./ga-COMvYqPH.js"), "./locales/hi.json": () => import("./hi-BejTYLRj.js"), "./locales/ht.json": () => import("./ht-BeM6QStZ.js"), "./locales/id.json": () => import("./id-NJzBnSib.js"), "./locales/is.json": () => import("./is-Cv47H4ey.js"), "./locales/it.json": () => import("./it-B6LzBKYz.js"), "./locales/ja.json": () => import("./ja-BV_3G5Hd.js"), "./locales/kl.json": () => import("./kl-CBFEKDWH.js"), "./locales/mi.json": () => import("./mi-BRHT5aP1.js"), "./locales/ms.json": () => import("./ms-D7bYcHUm.js"), "./locales/nb-x-k12.json": () => import("./nb-x-k12-8GMfCmMo.js"), "./locales/nb.json": () => import("./nb-DyTI7Ts1.js"), "./locales/nl.json": () => import("./nl-DBSxFMy9.js"), "./locales/pl.json": () => import("./pl-DUdYRh1Y.js"), "./locales/pt.json": () => import("./pt-DkTHNOHF.js"), "./locales/pt_BR.json": () => import("./pt_BR-DZZGbQIg.js"), "./locales/ru.json": () => import("./ru-Bxl9NL5w.js"), "./locales/sl.json": () => import("./sl-D2hOGCNb.js"), "./locales/sv-x-k12.json": () => import("./sv-x-k12-B7c2_4ik.js"), "./locales/sv.json": () => import("./sv-Bic7JSI_.js"), "./locales/th.json": () => import("./th-hFDNyurj.js"), "./locales/vi.json": () => import("./vi-Dz6NuOdc.js"), "./locales/zh-Hans.json": () => import("./zh-Hans-DKg6WKbe.js"), "./locales/zh-Hant.json": () => import("./zh-Hant-ZHDw_Y-L.js"), "./locales/zh.json": () => import("./zh-C7jcyKYp.js"), "./locales/zh_HK.json": () => import("./zh_HK-C2PlZhAG.js") }), `./locales/${e}.json`, 3)
28
28
  )
29
29
  ).init({
@@ -58,24 +58,24 @@ function Ht({
58
58
  captions: i,
59
59
  thumbnail: s,
60
60
  annotations: a,
61
- quizMarkers: l,
61
+ quizMarkers: r,
62
62
  interactive: c,
63
63
  onAnnotationClick: u,
64
64
  onQuizMarkerClick: d,
65
65
  onInteractivePinClick: _,
66
- interactiveMenuElements: b,
66
+ interactiveMenuElements: C,
67
67
  kebabMenuElements: w,
68
- darkMode: y,
69
- children: x,
70
- forceComments: p,
71
- disableCaptionSettings: C,
72
- disableStorage: H,
73
- captionOffsetOverride: E,
68
+ darkMode: M,
69
+ children: L,
70
+ forceComments: I,
71
+ disableCaptionSettings: h,
72
+ disableStorage: g,
73
+ captionOffsetOverride: S,
74
74
  disableInteractivePinRanges: P,
75
- onQuizMarkerShow: I,
76
- onCaptionsDelete: B,
77
- controlsLayout: V,
78
- startAt: O
75
+ onQuizMarkerShow: E,
76
+ onCaptionsDelete: O,
77
+ controlsLayout: R,
78
+ startAt: B
79
79
  }) {
80
80
  const j = {
81
81
  title: e,
@@ -84,30 +84,30 @@ function Ht({
84
84
  captions: i,
85
85
  thumbnail: s,
86
86
  annotations: a,
87
- quizMarkers: l,
87
+ quizMarkers: r,
88
88
  interactive: c,
89
89
  onAnnotationClick: u,
90
90
  onQuizMarkerClick: d,
91
91
  onInteractivePinClick: _,
92
- interactiveMenuElements: b,
92
+ interactiveMenuElements: C,
93
93
  kebabMenuElements: w,
94
- darkMode: y,
94
+ darkMode: M,
95
95
  hasComments: o.length > 0,
96
96
  hasAnnotations: a.length > 0,
97
- hasQuizmarkers: l.length > 0,
98
- forceComments: p,
99
- disableCaptionSettings: C,
100
- disableStorage: H,
101
- captionOffsetOverride: E,
97
+ hasQuizmarkers: r.length > 0,
98
+ forceComments: I,
99
+ disableCaptionSettings: h,
100
+ disableStorage: g,
101
+ captionOffsetOverride: S,
102
102
  disableInteractivePinRanges: P,
103
- onQuizMarkerShow: I,
104
- onCaptionsDelete: B,
105
- controlsLayout: V,
106
- startAt: O
103
+ onQuizMarkerShow: E,
104
+ onCaptionsDelete: O,
105
+ controlsLayout: R,
106
+ startAt: B
107
107
  };
108
- return /* @__PURE__ */ n(qe.Provider, { value: j, children: x });
108
+ return /* @__PURE__ */ n(qe.Provider, { value: j, children: L });
109
109
  }
110
- function L() {
110
+ function y() {
111
111
  const e = ye(qe);
112
112
  if (!e)
113
113
  throw new Error(
@@ -115,9 +115,9 @@ function L() {
115
115
  );
116
116
  return e;
117
117
  }
118
- const Bt = "_annotation-overlay_1kxzn_1", Ot = {
118
+ const Ot = "_annotation-overlay_1kxzn_1", Bt = {
119
119
  "annotation-overlay": "_annotation-overlay_1kxzn_1",
120
- annotationOverlay: Bt
120
+ annotationOverlay: Ot
121
121
  }, He = 0.25, Ft = (e, t) => {
122
122
  let o = !1;
123
123
  return (i) => {
@@ -126,9 +126,9 @@ const Bt = "_annotation-overlay_1kxzn_1", Ot = {
126
126
  };
127
127
  };
128
128
  function Dt({ annotations: e }) {
129
- const t = S(), o = v(), i = L(), [s, a] = k(
129
+ const t = V(), o = v(), i = y(), [s, a] = k(
130
130
  null
131
- ), l = f(
131
+ ), r = p(
132
132
  (u) => {
133
133
  t == null || t.pause(), i.interactive || o.disableInteractions(), a(u);
134
134
  },
@@ -141,7 +141,7 @@ function Dt({ annotations: e }) {
141
141
  return;
142
142
  const u = [];
143
143
  for (const d of e) {
144
- const _ = Ft(d, l);
144
+ const _ = Ft(d, r);
145
145
  t.addEventListener("time-update", _), u.push(_);
146
146
  }
147
147
  if (s) {
@@ -154,7 +154,7 @@ function Dt({ annotations: e }) {
154
154
  for (const d of u)
155
155
  t.removeEventListener("time-update", d);
156
156
  };
157
- }, [t, e]), s ? /* @__PURE__ */ n("div", { className: Ot.annotationOverlay, children: s.render(c) }) : null;
157
+ }, [t, e]), s ? /* @__PURE__ */ n("div", { className: Bt.annotationOverlay, children: s.render(c) }) : null;
158
158
  }
159
159
  const Zt = "_media-buffering-indicator_1fwjr_1", jt = "_media-buffering-spinner_1fwjr_17", Kt = "_media-buffering-spin_1fwjr_17", zt = "_media-buffering-track_1fwjr_22", $t = "_media-buffering-track-fill_1fwjr_27", ae = {
160
160
  "media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
@@ -169,7 +169,7 @@ const Zt = "_media-buffering-indicator_1fwjr_1", jt = "_media-buffering-spinner_
169
169
  mediaBufferingTrackFill: $t
170
170
  };
171
171
  function Ge() {
172
- return /* @__PURE__ */ n("div", { className: ae.mediaBufferingIndicator, children: /* @__PURE__ */ r(ge.Root, { className: ae.mediaBufferingSpinner, size: 96, children: [
172
+ return /* @__PURE__ */ n("div", { className: ae.mediaBufferingIndicator, children: /* @__PURE__ */ l(ge.Root, { className: ae.mediaBufferingSpinner, size: 96, children: [
173
173
  /* @__PURE__ */ n(ge.Track, { className: ae.mediaBufferingTrack, width: 8 }),
174
174
  /* @__PURE__ */ n(
175
175
  ge.TrackFill,
@@ -187,29 +187,31 @@ const Ut = [
187
187
  "ArrowRight",
188
188
  "Escape"
189
189
  ];
190
- function Ee(e, t = !1) {
190
+ function Ee(e, t = !1, o = !0) {
191
191
  Z(() => {
192
- const o = new AbortController();
192
+ if (!o)
193
+ return;
194
+ const i = new AbortController();
193
195
  return document.addEventListener(
194
196
  "keydown",
195
- (i) => {
196
- var s;
197
- return (s = e[i.key]) == null ? void 0 : s.call(e, i);
197
+ (s) => {
198
+ var a;
199
+ return (a = e[s.key]) == null ? void 0 : a.call(e, s);
198
200
  },
199
201
  {
200
202
  passive: !0,
201
- signal: o.signal
203
+ signal: i.signal
202
204
  }
203
205
  ), t && window.addEventListener(
204
206
  "keydown",
205
- (i) => {
206
- Ut.includes(i.code) && i.preventDefault();
207
+ (s) => {
208
+ Ut.includes(s.code) && s.preventDefault();
207
209
  },
208
- { signal: o.signal }
210
+ { signal: i.signal }
209
211
  ), () => {
210
- o.abort();
212
+ i.abort();
211
213
  };
212
- }, [e]);
214
+ }, [e, t, o]);
213
215
  }
214
216
  function qt(e) {
215
217
  const t = D(() => ({ Escape: e }), [e]);
@@ -237,12 +239,12 @@ const Qe = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0
237
239
  arrow: on
238
240
  };
239
241
  function sn({ onClose: e }) {
240
- const { t } = h();
242
+ const { t } = f();
241
243
  qt(e);
242
244
  const o = (i) => {
243
245
  i && i.focus();
244
246
  };
245
- return /* @__PURE__ */ r(
247
+ return /* @__PURE__ */ l(
246
248
  "div",
247
249
  {
248
250
  className: A.keyboardShortcutsOverlay,
@@ -251,7 +253,7 @@ function sn({ onClose: e }) {
251
253
  role: "dialog",
252
254
  "aria-label": t("KEYBOARD_SHORTCUTS"),
253
255
  children: [
254
- /* @__PURE__ */ r("header", { children: [
256
+ /* @__PURE__ */ l("header", { children: [
255
257
  /* @__PURE__ */ n("h2", { children: t("KEYBOARD_SHORTCUTS") }),
256
258
  /* @__PURE__ */ n(
257
259
  "button",
@@ -264,85 +266,85 @@ function sn({ onClose: e }) {
264
266
  }
265
267
  )
266
268
  ] }),
267
- /* @__PURE__ */ r("table", { children: [
269
+ /* @__PURE__ */ l("table", { children: [
268
270
  /* @__PURE__ */ n("caption", { className: A.screenReaderContent, children: t("KEYBOARD_SHORTCUTS") }),
269
- /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ r("tr", { children: [
271
+ /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ l("tr", { children: [
270
272
  /* @__PURE__ */ n("th", { children: t("ACTION") }),
271
273
  /* @__PURE__ */ n("th", { children: t("SHORTCUT") })
272
274
  ] }) }),
273
- /* @__PURE__ */ r("tbody", { children: [
274
- /* @__PURE__ */ r("tr", { children: [
275
+ /* @__PURE__ */ l("tbody", { children: [
276
+ /* @__PURE__ */ l("tr", { children: [
275
277
  /* @__PURE__ */ n("td", { children: t("SEEK_BACKWARD", { seconds: 5 }) }),
276
278
  /* @__PURE__ */ n("td", { children: t("LEFT_ARROW") })
277
279
  ] }),
278
- /* @__PURE__ */ r("tr", { children: [
280
+ /* @__PURE__ */ l("tr", { children: [
279
281
  /* @__PURE__ */ n("td", { children: t("SEEK_FORWARD", { seconds: 5 }) }),
280
282
  /* @__PURE__ */ n("td", { children: t("RIGHT_ARROW") })
281
283
  ] }),
282
- /* @__PURE__ */ r("tr", { children: [
284
+ /* @__PURE__ */ l("tr", { children: [
283
285
  /* @__PURE__ */ n("td", { children: t("SEEK_BACKWARD", { seconds: 10 }) }),
284
286
  /* @__PURE__ */ n("td", { children: "J" })
285
287
  ] }),
286
- /* @__PURE__ */ r("tr", { children: [
288
+ /* @__PURE__ */ l("tr", { children: [
287
289
  /* @__PURE__ */ n("td", { children: t("SEEK_FORWARD", { seconds: 10 }) }),
288
290
  /* @__PURE__ */ n("td", { children: "L" })
289
291
  ] }),
290
- /* @__PURE__ */ r("tr", { children: [
292
+ /* @__PURE__ */ l("tr", { children: [
291
293
  /* @__PURE__ */ n("td", { children: t("INCREASE_VOLUME", { percent: 5 }) }),
292
294
  /* @__PURE__ */ n("td", { children: t("UP_ARROW") })
293
295
  ] }),
294
- /* @__PURE__ */ r("tr", { children: [
296
+ /* @__PURE__ */ l("tr", { children: [
295
297
  /* @__PURE__ */ n("td", { children: t("DECREASE_VOLUME", { percent: 5 }) }),
296
298
  /* @__PURE__ */ n("td", { children: t("DOWN_ARROW") })
297
299
  ] }),
298
- /* @__PURE__ */ r("tr", { children: [
300
+ /* @__PURE__ */ l("tr", { children: [
299
301
  /* @__PURE__ */ n("td", { children: t("TOGGLE_MUTED") }),
300
302
  /* @__PURE__ */ n("td", { children: "M" })
301
303
  ] }),
302
- /* @__PURE__ */ r("tr", { children: [
304
+ /* @__PURE__ */ l("tr", { children: [
303
305
  /* @__PURE__ */ n("td", { children: t("TOGGLE_PLAY_PAUSE") }),
304
- /* @__PURE__ */ r("td", { children: [
306
+ /* @__PURE__ */ l("td", { children: [
305
307
  t("SPACE"),
306
308
  ", K"
307
309
  ] })
308
310
  ] }),
309
- /* @__PURE__ */ r("tr", { children: [
311
+ /* @__PURE__ */ l("tr", { children: [
310
312
  /* @__PURE__ */ n("td", { children: t("ENTER_FULLSCREEN") }),
311
313
  /* @__PURE__ */ n("td", { children: "F" })
312
314
  ] }),
313
- /* @__PURE__ */ r("tr", { children: [
315
+ /* @__PURE__ */ l("tr", { children: [
314
316
  /* @__PURE__ */ n("td", { children: t("EXIT_FULLSCREEN") }),
315
317
  /* @__PURE__ */ n("td", { children: "Esc, F" })
316
318
  ] }),
317
- /* @__PURE__ */ r("tr", { children: [
319
+ /* @__PURE__ */ l("tr", { children: [
318
320
  /* @__PURE__ */ n("td", { children: t("TOGGLE_CAPTIONS") }),
319
321
  /* @__PURE__ */ n("td", { children: "C" })
320
322
  ] }),
321
- /* @__PURE__ */ r("tr", { children: [
323
+ /* @__PURE__ */ l("tr", { children: [
322
324
  /* @__PURE__ */ n("td", { children: t("NEXT_CAPTION_LANGUAGE") }),
323
325
  /* @__PURE__ */ n("td", { children: "V" })
324
326
  ] }),
325
- /* @__PURE__ */ r("tr", { children: [
327
+ /* @__PURE__ */ l("tr", { children: [
326
328
  /* @__PURE__ */ n("td", { children: t("PREVIOUS_CAPTION_LANGUAGE") }),
327
329
  /* @__PURE__ */ n("td", { children: "X" })
328
330
  ] }),
329
- /* @__PURE__ */ r("tr", { children: [
331
+ /* @__PURE__ */ l("tr", { children: [
330
332
  /* @__PURE__ */ n("td", { children: t("DECREASE_PLAYBACK_SPEED") }),
331
333
  /* @__PURE__ */ n("td", { children: "A" })
332
334
  ] }),
333
- /* @__PURE__ */ r("tr", { children: [
335
+ /* @__PURE__ */ l("tr", { children: [
334
336
  /* @__PURE__ */ n("td", { children: t("RESET_PLAYBACK_SPEED") }),
335
337
  /* @__PURE__ */ n("td", { children: "S" })
336
338
  ] }),
337
- /* @__PURE__ */ r("tr", { children: [
339
+ /* @__PURE__ */ l("tr", { children: [
338
340
  /* @__PURE__ */ n("td", { children: t("INCREASE_PLAYBACK_SPEED") }),
339
341
  /* @__PURE__ */ n("td", { children: "D" })
340
342
  ] }),
341
- /* @__PURE__ */ r("tr", { children: [
343
+ /* @__PURE__ */ l("tr", { children: [
342
344
  /* @__PURE__ */ n("td", { children: t("JUMP_TO_START") }),
343
345
  /* @__PURE__ */ n("td", { children: "0" })
344
346
  ] }),
345
- /* @__PURE__ */ r("tr", { children: [
347
+ /* @__PURE__ */ l("tr", { children: [
346
348
  /* @__PURE__ */ n("td", { children: t("JUMP_TO_PERCENTAGE") }),
347
349
  /* @__PURE__ */ n("td", { children: "1-9" })
348
350
  ] })
@@ -352,18 +354,18 @@ function sn({ onClose: e }) {
352
354
  }
353
355
  );
354
356
  }
355
- const an = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.8 3.6C9.79288 3.6 10.6 2.79288 10.6 1.8C10.6 0.80712 9.79288 0 8.8 0C7.80712 0 7 0.80712 7 1.8C7 2.79288 7.80712 3.6 8.8 3.6ZM10.6 8.99999C10.6 9.99287 9.79288 10.8 8.8 10.8C7.80712 10.8 7 9.99287 7 8.99999C7 8.00711 7.80712 7.19999 8.8 7.19999C9.79288 7.19999 10.6 8.00711 10.6 8.99999ZM10.6 16.2C10.6 17.1929 9.79288 18 8.8 18C7.80712 18 7 17.1929 7 16.2C7 15.2071 7.80712 14.4 8.8 14.4C9.79288 14.4 10.6 15.2071 10.6 16.2Z", fill: "currentColor" }) }), ln = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1074 16.8677C12.8638 16.8677 11.8524 15.8563 11.8524 14.6127C11.8524 14.4154 11.8862 14.2271 11.9336 14.0444C12.0317 13.6701 12.22 13.3318 12.4804 13.059C12.8908 12.6294 13.467 12.3576 14.1074 12.3576C15.3511 12.3576 16.3625 13.369 16.3625 14.6127C16.3625 15.8563 15.3511 16.8677 14.1074 16.8677ZM4.38257 11.2301C3.13891 11.2301 2.12752 10.2187 2.12752 8.97507C2.12752 7.73141 3.13891 6.72002 4.38257 6.72002C5.01623 6.72002 5.58676 6.98386 5.99718 7.40556C6.25989 7.67616 6.44819 8.01329 6.54966 8.38763C6.60153 8.57592 6.63761 8.76986 6.63761 8.97507C6.63761 9.2017 6.59364 9.41818 6.53049 9.62452C6.41887 9.99435 6.22155 10.327 5.94982 10.5908C5.54391 10.9843 4.99256 11.2301 4.38257 11.2301ZM11.8524 3.38257C11.8524 2.13891 12.8638 1.12753 14.1074 1.12753C15.3511 1.12753 16.3625 2.13891 16.3625 3.38257C16.3625 4.62622 15.3511 5.63761 14.1074 5.63761C13.4749 5.63761 12.9055 5.3749 12.4962 4.95546C12.2324 4.68485 12.0429 4.34773 11.9415 3.97339C11.8896 3.78397 11.8524 3.5889 11.8524 3.38257ZM14.1074 11.2301C13.0498 11.2301 12.1151 11.7273 11.495 12.4907L7.52722 10.1996C7.67605 9.81846 7.76513 9.40804 7.76513 8.97507C7.76513 8.56465 7.68056 8.17678 7.54639 7.8126L11.5108 5.5226C12.132 6.27466 13.0588 6.76513 14.1074 6.76513C15.9724 6.76513 17.49 5.24748 17.49 3.38256C17.49 1.51764 15.9724 0 14.1074 0C12.2425 0 10.7249 1.51764 10.7249 3.38256C10.7249 3.79411 10.8094 4.18423 10.9447 4.54842L6.9815 6.83729C6.36136 6.08411 5.43341 5.59251 4.38256 5.59251C2.51764 5.59251 1 7.11015 1 8.97507C1 10.84 2.51764 12.3576 4.38256 12.3576C5.40974 12.3576 6.32077 11.8875 6.94091 11.1625L10.9368 13.4694C10.8072 13.829 10.7249 14.2102 10.7249 14.6127C10.7249 16.4776 12.2425 17.9952 14.1074 17.9952C15.9724 17.9952 17.49 16.4776 17.49 14.6127C17.49 12.7478 15.9724 11.2301 14.1074 11.2301Z", fill: "currentColor" }) }), rn = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.7647 16.9412H2.05882V1.05883H10.5294V5.29412H14.7647V16.9412ZM11.5882 1.278L14.5455 4.2353H11.5882V1.278ZM15.3587 3.55129L12.2722 0.464824C11.9715 0.165176 11.5724 0 11.1488 0H1V18H15.8235V4.67471C15.8235 4.25118 15.6584 3.852 15.3587 3.55129ZM1 0H15.8235V18H1V0ZM1 18H15.8235V0H1V18ZM4.17649 5.29412H8.41178V4.23529H4.17649V5.29412ZM4.17649 9.52941H10.5294V8.47059H4.17649V9.52941ZM4.17649 13.7647H8.41178V12.7059H4.17649V13.7647ZM4.17649 7.41177H12.6471V6.35294H4.17649V7.41177ZM4.17649 11.6471H11.5883V10.5882H4.17649V11.6471Z", fill: "currentColor" }) }), cn = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.30365 10.9535V0H9.3637V10.9535L12.6986 7.61855L13.4491 8.368L8.83261 12.9824L4.21823 8.368L4.96875 7.61855L8.30365 10.9535ZM3.77376 16.94H13.9354L16.9607 13.9146L17.7091 14.6651L14.3742 18H3.3349L0 14.6651L0.749452 13.9146L3.77376 16.94Z", fill: "currentColor" }) }), We = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.8234 16.4118C14.8234 16.7029 14.5852 16.9412 14.294 16.9412H3.70577C3.41459 16.9412 3.17636 16.7029 3.17636 16.4118V5.29412H2.11753V16.4118C2.11753 17.2874 2.83012 18 3.70577 18H14.294C15.1697 18 15.8822 17.2874 15.8822 16.4118V5.29412H14.8234V16.4118ZM6.35284 14.8235H7.41166V6.35294H6.35284V14.8235ZM10.5881 14.8235H11.6469V6.35294H10.5881V14.8235ZM12.5682 3.17647L11.4099 0H6.51176L5.35553 3.17647H0V4.23529H18V3.17647H12.5682ZM6.48105 3.17647L7.25293 1.05882H10.6698L11.4416 3.17647H6.48105Z", fill: "currentColor" }) }), un = {
356
- share: /* @__PURE__ */ n(ln, {}),
357
- transcript: /* @__PURE__ */ n(rn, {}),
357
+ const an = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.8 3.6C9.79288 3.6 10.6 2.79288 10.6 1.8C10.6 0.80712 9.79288 0 8.8 0C7.80712 0 7 0.80712 7 1.8C7 2.79288 7.80712 3.6 8.8 3.6ZM10.6 8.99999C10.6 9.99287 9.79288 10.8 8.8 10.8C7.80712 10.8 7 9.99287 7 8.99999C7 8.00711 7.80712 7.19999 8.8 7.19999C9.79288 7.19999 10.6 8.00711 10.6 8.99999ZM10.6 16.2C10.6 17.1929 9.79288 18 8.8 18C7.80712 18 7 17.1929 7 16.2C7 15.2071 7.80712 14.4 8.8 14.4C9.79288 14.4 10.6 15.2071 10.6 16.2Z", fill: "currentColor" }) }), rn = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1074 16.8677C12.8638 16.8677 11.8524 15.8563 11.8524 14.6127C11.8524 14.4154 11.8862 14.2271 11.9336 14.0444C12.0317 13.6701 12.22 13.3318 12.4804 13.059C12.8908 12.6294 13.467 12.3576 14.1074 12.3576C15.3511 12.3576 16.3625 13.369 16.3625 14.6127C16.3625 15.8563 15.3511 16.8677 14.1074 16.8677ZM4.38257 11.2301C3.13891 11.2301 2.12752 10.2187 2.12752 8.97507C2.12752 7.73141 3.13891 6.72002 4.38257 6.72002C5.01623 6.72002 5.58676 6.98386 5.99718 7.40556C6.25989 7.67616 6.44819 8.01329 6.54966 8.38763C6.60153 8.57592 6.63761 8.76986 6.63761 8.97507C6.63761 9.2017 6.59364 9.41818 6.53049 9.62452C6.41887 9.99435 6.22155 10.327 5.94982 10.5908C5.54391 10.9843 4.99256 11.2301 4.38257 11.2301ZM11.8524 3.38257C11.8524 2.13891 12.8638 1.12753 14.1074 1.12753C15.3511 1.12753 16.3625 2.13891 16.3625 3.38257C16.3625 4.62622 15.3511 5.63761 14.1074 5.63761C13.4749 5.63761 12.9055 5.3749 12.4962 4.95546C12.2324 4.68485 12.0429 4.34773 11.9415 3.97339C11.8896 3.78397 11.8524 3.5889 11.8524 3.38257ZM14.1074 11.2301C13.0498 11.2301 12.1151 11.7273 11.495 12.4907L7.52722 10.1996C7.67605 9.81846 7.76513 9.40804 7.76513 8.97507C7.76513 8.56465 7.68056 8.17678 7.54639 7.8126L11.5108 5.5226C12.132 6.27466 13.0588 6.76513 14.1074 6.76513C15.9724 6.76513 17.49 5.24748 17.49 3.38256C17.49 1.51764 15.9724 0 14.1074 0C12.2425 0 10.7249 1.51764 10.7249 3.38256C10.7249 3.79411 10.8094 4.18423 10.9447 4.54842L6.9815 6.83729C6.36136 6.08411 5.43341 5.59251 4.38256 5.59251C2.51764 5.59251 1 7.11015 1 8.97507C1 10.84 2.51764 12.3576 4.38256 12.3576C5.40974 12.3576 6.32077 11.8875 6.94091 11.1625L10.9368 13.4694C10.8072 13.829 10.7249 14.2102 10.7249 14.6127C10.7249 16.4776 12.2425 17.9952 14.1074 17.9952C15.9724 17.9952 17.49 16.4776 17.49 14.6127C17.49 12.7478 15.9724 11.2301 14.1074 11.2301Z", fill: "currentColor" }) }), ln = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.7647 16.9412H2.05882V1.05883H10.5294V5.29412H14.7647V16.9412ZM11.5882 1.278L14.5455 4.2353H11.5882V1.278ZM15.3587 3.55129L12.2722 0.464824C11.9715 0.165176 11.5724 0 11.1488 0H1V18H15.8235V4.67471C15.8235 4.25118 15.6584 3.852 15.3587 3.55129ZM1 0H15.8235V18H1V0ZM1 18H15.8235V0H1V18ZM4.17649 5.29412H8.41178V4.23529H4.17649V5.29412ZM4.17649 9.52941H10.5294V8.47059H4.17649V9.52941ZM4.17649 13.7647H8.41178V12.7059H4.17649V13.7647ZM4.17649 7.41177H12.6471V6.35294H4.17649V7.41177ZM4.17649 11.6471H11.5883V10.5882H4.17649V11.6471Z", fill: "currentColor" }) }), cn = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.30365 10.9535V0H9.3637V10.9535L12.6986 7.61855L13.4491 8.368L8.83261 12.9824L4.21823 8.368L4.96875 7.61855L8.30365 10.9535ZM3.77376 16.94H13.9354L16.9607 13.9146L17.7091 14.6651L14.3742 18H3.3349L0 14.6651L0.749452 13.9146L3.77376 16.94Z", fill: "currentColor" }) }), We = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.8234 16.4118C14.8234 16.7029 14.5852 16.9412 14.294 16.9412H3.70577C3.41459 16.9412 3.17636 16.7029 3.17636 16.4118V5.29412H2.11753V16.4118C2.11753 17.2874 2.83012 18 3.70577 18H14.294C15.1697 18 15.8822 17.2874 15.8822 16.4118V5.29412H14.8234V16.4118ZM6.35284 14.8235H7.41166V6.35294H6.35284V14.8235ZM10.5881 14.8235H11.6469V6.35294H10.5881V14.8235ZM12.5682 3.17647L11.4099 0H6.51176L5.35553 3.17647H0V4.23529H18V3.17647H12.5682ZM6.48105 3.17647L7.25293 1.05882H10.6698L11.4416 3.17647H6.48105Z", fill: "currentColor" }) }), un = {
358
+ share: /* @__PURE__ */ n(rn, {}),
359
+ transcript: /* @__PURE__ */ n(ln, {}),
358
360
  media: /* @__PURE__ */ n(cn, {}),
359
361
  delete: /* @__PURE__ */ n(We, {})
360
362
  }, dn = (e) => typeof e != "string";
361
363
  function mn() {
362
- const [e, t] = k(!1), [o, i] = k(null), s = v(), a = L(), l = () => {
364
+ const [e, t] = k(!1), [o, i] = k(null), s = v(), a = y(), r = () => {
363
365
  t(!e), s.setGlobalKeysDisabled(!e);
364
- }, c = z(null), u = z([]), { refs: d, floatingStyles: _, context: b } = me({
366
+ }, c = z(null), u = z([]), { refs: d, floatingStyles: _, context: C } = me({
365
367
  open: e,
366
- onOpenChange: l,
368
+ onOpenChange: r,
367
369
  whileElementsMounted: he,
368
370
  placement: "bottom-end",
369
371
  middleware: [
@@ -373,33 +375,33 @@ function mn() {
373
375
  element: c
374
376
  })
375
377
  ]
376
- }), w = ze(b, {
378
+ }), w = ze(C, {
377
379
  listRef: u,
378
380
  activeIndex: o,
379
381
  onNavigate: i,
380
382
  loop: !0
381
- }), y = Me(b), { getReferenceProps: x, getFloatingProps: p, getItemProps: C } = Pe(
382
- [y, w]
383
- ), { t: H } = h();
384
- return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ r(X, { children: [
383
+ }), M = Me(C), { getReferenceProps: L, getFloatingProps: I, getItemProps: h } = Pe(
384
+ [M, w]
385
+ ), { t: g } = f();
386
+ return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ l(X, { children: [
385
387
  /* @__PURE__ */ n(
386
388
  "button",
387
389
  {
388
390
  id: "kebab-menu-button",
389
391
  type: "button",
390
- "aria-label": H("KEBAB_MENU", { title: a.title }),
392
+ "aria-label": g("KEBAB_MENU", { title: a.title }),
391
393
  "aria-haspopup": "true",
392
394
  "aria-expanded": e,
393
395
  className: `${A.controlsButton} ${A.kebabMenuButton}`,
394
396
  tabIndex: s.state.interactionsDisabled || e ? -1 : 0,
395
397
  ref: d.setReference,
396
- ...x({
397
- onClick: () => l()
398
+ ...L({
399
+ onClick: () => r()
398
400
  }),
399
401
  children: /* @__PURE__ */ n(an, {})
400
402
  }
401
403
  ),
402
- e && /* @__PURE__ */ n(Ne, { context: b, guards: !1, children: /* @__PURE__ */ r(
404
+ e && /* @__PURE__ */ n(Ne, { context: C, guards: !1, children: /* @__PURE__ */ l(
403
405
  "div",
404
406
  {
405
407
  id: "kebab-menu",
@@ -408,37 +410,37 @@ function mn() {
408
410
  className: A.kebabMenu,
409
411
  role: "menu",
410
412
  "aria-labelledby": "kebab-menu-button",
411
- ...p(),
413
+ ...I(),
412
414
  children: [
413
415
  a.kebabMenuElements.map(
414
- ({ id: E, text: P, icon: I, onClick: B }, V) => /* @__PURE__ */ r(
416
+ ({ id: S, text: P, icon: E, onClick: O }, R) => /* @__PURE__ */ l(
415
417
  "button",
416
418
  {
417
- tabIndex: o === V ? 0 : -1,
419
+ tabIndex: o === R ? 0 : -1,
418
420
  type: "button",
419
421
  role: "menuitem",
420
422
  className: A.kebabMenuItem,
421
- ref: (O) => {
422
- u.current[V] = O;
423
+ ref: (B) => {
424
+ u.current[R] = B;
423
425
  },
424
- ...C({
426
+ ...h({
425
427
  onClick: () => {
426
- B(E), t(!1);
428
+ O(S), t(!1);
427
429
  }
428
430
  }),
429
431
  children: [
430
- dn(I) ? I : un[I],
432
+ dn(E) ? E : un[E],
431
433
  P
432
434
  ]
433
435
  },
434
- E
436
+ S
435
437
  )
436
438
  ),
437
439
  /* @__PURE__ */ n(
438
440
  Ie,
439
441
  {
440
442
  ref: c,
441
- context: b,
443
+ context: C,
442
444
  className: A.arrow
443
445
  }
444
446
  )
@@ -449,39 +451,39 @@ function mn() {
449
451
  }
450
452
  const hn = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.76472 10.5294C5.05696 10.5294 5.29413 10.2922 5.29413 9.99999V8.94117C5.29413 8.64893 5.05696 8.41175 4.76472 8.41175H3.7059C3.41366 8.41175 3.17649 8.64893 3.17649 8.94117V9.99999C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472ZM11.1177 10.5294C11.4099 10.5294 11.6471 10.2922 11.6471 9.99999V8.94117C11.6471 8.64893 11.4099 8.41175 11.1177 8.41175H10.0588C9.76661 8.41175 9.52944 8.64893 9.52944 8.94117V9.99999C9.52944 10.2922 9.76661 10.5294 10.0588 10.5294H11.1177ZM14.8235 9.99999C14.8235 10.2922 14.5864 10.5294 14.2941 10.5294H13.2353C12.9431 10.5294 12.7059 10.2922 12.7059 9.99999V8.94117C12.7059 8.64893 12.9431 8.41175 13.2353 8.41175H14.2941C14.5864 8.41175 14.8235 8.64893 14.8235 8.94117V9.99999ZM14.8235 13.1765C14.8235 13.4687 14.5864 13.7059 14.2941 13.7059H13.2353C12.9431 13.7059 12.7059 13.4687 12.7059 13.1765V12.1176C12.7059 11.8254 12.9431 11.5882 13.2353 11.5882H14.2941C14.5864 11.5882 14.8235 11.8254 14.8235 12.1176V13.1765ZM11.6471 13.1765C11.6471 13.4687 11.4099 13.7059 11.1177 13.7059H6.88239C6.59015 13.7059 6.35297 13.4687 6.35297 13.1765V12.1176C6.35297 11.8254 6.59015 11.5882 6.88239 11.5882H11.1177C11.4099 11.5882 11.6471 11.8254 11.6471 12.1176V13.1765ZM5.29413 13.1765C5.29413 13.4687 5.05696 13.7059 4.76472 13.7059H3.7059C3.41366 13.7059 3.17649 13.4687 3.17649 13.1765V12.1176C3.17649 11.8254 3.41366 11.5882 3.7059 11.5882H4.76472C5.05696 11.5882 5.29413 11.8254 5.29413 12.1176V13.1765ZM6.88238 8.41175C6.59015 8.41175 6.35297 8.64893 6.35297 8.94117V9.99999C6.35297 10.2922 6.59015 10.5294 6.88238 10.5294H7.94121C8.23344 10.5294 8.47062 10.2922 8.47062 9.99999V8.94117C8.47062 8.64893 8.23344 8.41175 7.94121 8.41175H6.88238ZM16.4118 5.23529H9.57494C9.71471 4.42 10.1933 4.17118 10.8254 3.85565C11.6629 3.43741 12.7059 2.91541 12.7059 1H11.6471C11.6471 2.26106 11.1039 2.53212 10.3511 2.90906C9.59824 3.28494 8.68659 3.75506 8.50871 5.23529H1.58824C0.712588 5.23529 0 5.94788 0 6.82353V15.2941C0 16.1698 0.712588 16.8824 1.58824 16.8824H16.4118C17.2874 16.8824 18 16.1698 18 15.2941V6.82353C18 5.94788 17.2874 5.23529 16.4118 5.23529Z", fill: "currentColor" }) });
451
453
  function pn() {
452
- const [e, t] = k(!1), [o, i] = k(!1), [s, a] = k(!1), l = v(), c = g("playing"), u = de(), { t: d } = h(), _ = f(() => {
453
- t(!0), l.disableInteractions(), c && (a(!0), u.pause());
454
- }, [c, u, l]), b = f(() => {
455
- t(!1), i(!0), l.enableInteractions(), s && (a(!1), u.play());
456
- }, [s, u, l]), w = f(
457
- (y) => o && (y == null ? void 0 : y.focus()),
458
- [o]
454
+ const [e, t] = k(!1), [o, i] = k(!1), s = v(), a = b("playing"), r = de(), { t: c } = f(), u = p(() => {
455
+ s.setKeyboardShortcutsOpen(!0), s.disableInteractions(), a && (i(!0), r.pause());
456
+ }, [a, r, s]), d = p(() => {
457
+ s.setKeyboardShortcutsOpen(!1), t(!0), s.enableInteractions(), o && (i(!1), r.play());
458
+ }, [o, r, s]), _ = p(
459
+ (C) => e && (C == null ? void 0 : C.focus()),
460
+ [e]
459
461
  );
460
- return e ? /* @__PURE__ */ n(sn, { onClose: b }) : /* @__PURE__ */ r("div", { className: A.controlsOverlay, children: [
462
+ return s.state.isKeyboardShortcutsOpen ? /* @__PURE__ */ n(sn, { onClose: d }) : /* @__PURE__ */ l("div", { className: A.controlsOverlay, children: [
461
463
  /* @__PURE__ */ n(
462
464
  "button",
463
465
  {
464
- ref: w,
465
- "aria-label": d("KEYBOARD_SHORTCUTS"),
466
+ ref: _,
467
+ "aria-label": c("KEYBOARD_SHORTCUTS"),
466
468
  type: "button",
467
469
  className: `${A.controlsButton} ${A.keyboardShortcutsButton}`,
468
- onClick: _,
469
- tabIndex: l.state.interactionsDisabled ? -1 : 0,
470
+ onClick: u,
471
+ tabIndex: s.state.interactionsDisabled ? -1 : 0,
470
472
  children: /* @__PURE__ */ n(hn, {})
471
473
  }
472
474
  ),
473
475
  /* @__PURE__ */ n(mn, {})
474
476
  ] });
475
477
  }
476
- const Ye = (e) => /* @__PURE__ */ r("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
478
+ const Ye = (e) => /* @__PURE__ */ l("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
477
479
  /* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_149_104418", children: /* @__PURE__ */ n("rect", { width: 24, height: 24, fill: "white" }) }) }),
478
480
  /* @__PURE__ */ n("g", { clipPath: "url(#clip0_149_104418)", children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M22.5 21.8125V2.3125C22.5 1.9 22.1625 1.5625 21.75 1.5625H2.25C1.8375 1.5625 1.5 1.9 1.5 2.3125V21.8125C1.5 22.225 1.8375 22.5625 2.25 22.5625H21.75C22.1625 22.5625 22.5 22.225 22.5 21.8125ZM21.75 0.0625C22.9905 0.0625 24 1.072 24 2.3125V21.8125C24 23.053 22.9905 24.0625 21.75 24.0625H2.25C1.0095 24.0625 0 23.053 0 21.8125V2.3125C0 1.072 1.0095 0.0625 2.25 0.0625H21.75ZM10.744 10.6709H8.74403V10.0042H6.07736V14.0042H8.74403V13.3375H10.744V14.6709C10.744 15.4042 10.144 16.0042 9.41069 16.0042H5.41069C4.67736 16.0042 4.07736 15.4042 4.07736 14.6709V9.33753C4.07736 8.6042 4.67736 8.0042 5.41069 8.0042H9.41069C10.144 8.0042 10.744 8.6042 10.744 9.33753V10.6709ZM19.8065 10.6709H17.8065V10.0042H15.1399V14.0042H17.8065V13.3375H19.8065V14.6709C19.8065 15.4042 19.2065 16.0042 18.4732 16.0042H14.4732C13.7399 16.0042 13.1399 15.4042 13.1399 14.6709V9.33753C13.1399 8.6042 13.7399 8.0042 14.4732 8.0042H18.4732C19.2065 8.0042 19.8065 8.6042 19.8065 9.33753V10.6709Z", fill: "currentColor" }) })
479
- ] }), Xe = (e) => /* @__PURE__ */ r("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
481
+ ] }), Xe = (e) => /* @__PURE__ */ l("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
480
482
  /* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_149_104406", children: /* @__PURE__ */ n("rect", { width: 24, height: 24, fill: "white" }) }) }),
481
483
  /* @__PURE__ */ n("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ n("path", { d: "M21.3333 0H2.66666C1.18666 0 0 1.35 0 3V21C0 22.65 1.18666 24 2.66666 24H21.3333C22.8 24 24 22.65 24 21V3C24 1.35 22.8 0 21.3333 0ZM10.6667 10.6667H8.66666V10H6V14H8.66666V13.3333H10.6667V14.6667C10.6667 15.4 10.0667 16 9.33334 16H5.33334C4.6 16 4 15.4 4 14.6667V9.33334C4 8.6 4.6 8 5.33334 8H9.33334C10.0667 8 10.6667 8.6 10.6667 9.33334V10.6667ZM20.0042 10.6667H18.0042V10H15.3375V14H18.0042V13.3333H20.0042V14.6667C20.0042 15.4 19.4042 16 18.6708 16H14.6708C13.9375 16 13.3375 15.4 13.3375 14.6667V9.33334C13.3375 8.6 13.9375 8 14.6708 8H18.6708C19.4042 8 20.0042 8.6 20.0042 9.33334V10.6667Z", fill: "currentColor" }) })
482
484
  ] });
483
485
  function fn() {
484
- const e = de(), t = g("textTrack"), o = g("hasCaptions"), i = t && _t(t), s = v(), { t: a } = h(), l = f(
486
+ const e = de(), t = b("textTrack"), o = b("hasCaptions"), i = t && _t(t), s = v(), { t: a } = f(), r = p(
485
487
  (c) => {
486
488
  e.toggleCaptions(c.nativeEvent);
487
489
  },
@@ -492,7 +494,7 @@ function fn() {
492
494
  {
493
495
  type: "button",
494
496
  className: "controls-button",
495
- onClick: l,
497
+ onClick: r,
496
498
  "aria-label": a(i ? "CAPTIONS_DISABLE" : "CAPTIONS_ENABLE"),
497
499
  "aria-pressed": i ? "true" : "false",
498
500
  tabIndex: s.state.interactionsDisabled ? -1 : 0,
@@ -504,21 +506,21 @@ const _n = "_captions_1cu0g_1", Cn = {
504
506
  captions: _n
505
507
  }, gn = (e, t) => e ? t.top : t.bottom;
506
508
  function Je({ captions: e }) {
507
- const t = e.length > 0, o = v(), { captionOffsetOverride: i } = L(), s = o.state.captionPositionOnTop, a = gn(
509
+ const t = e.length > 0, o = v(), { captionOffsetOverride: i } = y(), s = o.state.captionPositionOnTop, a = gn(
508
510
  s,
509
511
  i ?? {}
510
512
  );
511
- return /* @__PURE__ */ r(X, { children: [
512
- e.map((l) => /* @__PURE__ */ n(
513
+ return /* @__PURE__ */ l(X, { children: [
514
+ e.map((r) => /* @__PURE__ */ n(
513
515
  Ct,
514
516
  {
515
517
  kind: "subtitles",
516
- type: l.type,
517
- language: l.language,
518
- label: l.label,
519
- src: l.src
518
+ type: r.type,
519
+ language: r.language,
520
+ label: r.label,
521
+ src: r.src
520
522
  },
521
- l.label
523
+ r.label
522
524
  )),
523
525
  t ? /* @__PURE__ */ n(
524
526
  "div",
@@ -575,14 +577,14 @@ const Y = [0.5, 0.75, 1, 1.25, 1.5, 2], bn = [0.5, 1, 2, 3, 4], vn = 5, wn = (e)
575
577
  a >= e.timestamp && a < e.timestamp + t && !i && (o.add(e), i = !0), (a < e.timestamp || a >= e.timestamp + t) && i && (o.remove(e), i = !1);
576
578
  };
577
579
  }, kn = (e, t = 5) => {
578
- const o = S(), i = wn(t);
580
+ const o = V(), i = wn(t);
579
581
  return Z(() => {
580
582
  if (!o)
581
583
  return;
582
584
  const s = [];
583
585
  for (const a of e) {
584
- const l = yn(a, vn, i);
585
- s.push(l), o.addEventListener("time-update", l);
586
+ const r = yn(a, vn, i);
587
+ s.push(r), o.addEventListener("time-update", r);
586
588
  }
587
589
  return o.dispatchEvent(
588
590
  new CustomEvent("time-update", {
@@ -608,8 +610,8 @@ const Y = [0.5, 0.75, 1, 1.25, 1.5, 2], bn = [0.5, 1, 2, 3, 4], vn = 5, wn = (e)
608
610
  "comment-author-name": "_comment-author-name_bymws_95",
609
611
  commentAuthorName: En
610
612
  };
611
- function Tn({ comment: e }) {
612
- return e.render ? e.render(e, K) : /* @__PURE__ */ r("div", { className: K.comment, onClick: () => {
613
+ function Sn({ comment: e }) {
614
+ return e.render ? e.render(e, K) : /* @__PURE__ */ l("div", { className: K.comment, onClick: () => {
613
615
  var t;
614
616
  return (t = e.onClick) == null ? void 0 : t.call(e, e);
615
617
  }, children: [
@@ -625,12 +627,12 @@ function Tn({ comment: e }) {
625
627
  /* @__PURE__ */ n("span", { className: K.commentAuthorName, children: e.user.name })
626
628
  ] });
627
629
  }
628
- const An = 4;
629
- function Sn({
630
+ const Tn = 4;
631
+ function An({
630
632
  comments: e,
631
633
  isKebabMenuVisible: t
632
634
  }) {
633
- const o = v(), i = kn(e, An), s = !!g("textTrack"), a = i.map((l) => /* @__PURE__ */ n(Tn, { comment: l }, l.id));
635
+ const o = v(), i = kn(e, Tn), s = !!b("textTrack"), a = i.map((r) => /* @__PURE__ */ n(Sn, { comment: r }, r.id));
634
636
  return e.length > 0 && o.state.commentsEnabled ? /* @__PURE__ */ n(
635
637
  "div",
636
638
  {
@@ -654,11 +656,11 @@ function Vn({ renderOverlay: e }) {
654
656
  const t = v();
655
657
  return e(t);
656
658
  }
657
- const Rn = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.0692 12C21.0692 11.4776 21.0212 10.944 20.9238 10.4104L23.5511 8.13318L21.0579 3.87247L17.7431 4.97788C16.9059 4.28329 15.9515 3.73553 14.9449 3.37271L14.2616 0H9.28941L8.60612 3.37129C7.58823 3.73553 6.65082 4.27482 5.80659 4.97647L2.49318 3.87247L0 8.13318L2.62729 10.4104C2.52988 10.944 2.48188 11.4776 2.48188 12C2.48188 12.5224 2.52988 13.056 2.62729 13.5896L0 15.8668L2.49318 20.1275L5.808 19.0221C6.64518 19.7167 7.59953 20.2645 8.60612 20.6273L9.28941 24H14.2616L14.9449 20.6287C15.9614 20.2645 16.9002 19.7252 17.7445 19.0235L21.0579 20.1289L23.5511 15.8682L20.9238 13.5911C21.0212 13.056 21.0692 12.5224 21.0692 12ZM11.7755 16.9412C9.05082 16.9412 6.83435 14.7247 6.83435 12C6.83435 9.2753 9.05082 7.05883 11.7755 7.05883C14.5002 7.05883 16.7167 9.2753 16.7167 12C16.7167 14.7247 14.5002 16.9412 11.7755 16.9412Z", fill: "currentColor" }) }), Hn = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), Bn = "_settings-menu_1gbpr_1", On = "_menu-heading_1gbpr_37", Fn = "_check-icon_1gbpr_48", Dn = "_trash-icon_1gbpr_49", Zn = "_menu-item-label_1gbpr_62", jn = "_menu-item_1gbpr_62", Kn = "_menu-back-button_1gbpr_99", zn = "_arrow_1gbpr_125", F = {
659
+ const Rn = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.0692 12C21.0692 11.4776 21.0212 10.944 20.9238 10.4104L23.5511 8.13318L21.0579 3.87247L17.7431 4.97788C16.9059 4.28329 15.9515 3.73553 14.9449 3.37271L14.2616 0H9.28941L8.60612 3.37129C7.58823 3.73553 6.65082 4.27482 5.80659 4.97647L2.49318 3.87247L0 8.13318L2.62729 10.4104C2.52988 10.944 2.48188 11.4776 2.48188 12C2.48188 12.5224 2.52988 13.056 2.62729 13.5896L0 15.8668L2.49318 20.1275L5.808 19.0221C6.64518 19.7167 7.59953 20.2645 8.60612 20.6273L9.28941 24H14.2616L14.9449 20.6287C15.9614 20.2645 16.9002 19.7252 17.7445 19.0235L21.0579 20.1289L23.5511 15.8682L20.9238 13.5911C21.0212 13.056 21.0692 12.5224 21.0692 12ZM11.7755 16.9412C9.05082 16.9412 6.83435 14.7247 6.83435 12C6.83435 9.2753 9.05082 7.05883 11.7755 7.05883C14.5002 7.05883 16.7167 9.2753 16.7167 12C16.7167 14.7247 14.5002 16.9412 11.7755 16.9412Z", fill: "currentColor" }) }), Hn = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), On = "_settings-menu_1gbpr_1", Bn = "_menu-heading_1gbpr_37", Fn = "_check-icon_1gbpr_48", Dn = "_trash-icon_1gbpr_49", Zn = "_menu-item-label_1gbpr_62", jn = "_menu-item_1gbpr_62", Kn = "_menu-back-button_1gbpr_99", zn = "_arrow_1gbpr_125", F = {
658
660
  "settings-menu": "_settings-menu_1gbpr_1",
659
- settingsMenu: Bn,
661
+ settingsMenu: On,
660
662
  "menu-heading": "_menu-heading_1gbpr_37",
661
- menuHeading: On,
663
+ menuHeading: Bn,
662
664
  "check-icon": "_check-icon_1gbpr_48",
663
665
  checkIcon: Fn,
664
666
  "trash-icon": "_trash-icon_1gbpr_49",
@@ -676,9 +678,9 @@ function q({
676
678
  heading: t,
677
679
  children: o
678
680
  }) {
679
- const i = $(), { t: s } = h();
680
- return /* @__PURE__ */ r(X, { children: [
681
- !e && /* @__PURE__ */ r(
681
+ const i = $(), { t: s } = f();
682
+ return /* @__PURE__ */ l(X, { children: [
683
+ !e && /* @__PURE__ */ l(
682
684
  "button",
683
685
  {
684
686
  type: "button",
@@ -704,7 +706,7 @@ function q({
704
706
  o
705
707
  ] });
706
708
  }
707
- const $n = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), Un = "_menu-hint_1wiu5_1", qn = "_menu-button_1wiu5_5", Gn = "_menu-label_1wiu5_37", Qn = "_menu-icon_1wiu5_42", le = {
709
+ const $n = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), Un = "_menu-hint_1wiu5_1", qn = "_menu-button_1wiu5_5", Gn = "_menu-label_1wiu5_37", Qn = "_menu-icon_1wiu5_42", re = {
708
710
  "menu-hint": "_menu-hint_1wiu5_1",
709
711
  menuHint: Un,
710
712
  "menu-button": "_menu-button_1wiu5_5",
@@ -715,7 +717,7 @@ const $n = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0
715
717
  menuIcon: Qn
716
718
  };
717
719
  function J({ label: e, hint: t, onClick: o, Icon: i }) {
718
- return /* @__PURE__ */ r(
720
+ return /* @__PURE__ */ l(
719
721
  "button",
720
722
  {
721
723
  type: "button",
@@ -723,11 +725,11 @@ function J({ label: e, hint: t, onClick: o, Icon: i }) {
723
725
  "aria-haspopup": "true",
724
726
  tabIndex: -1,
725
727
  onClick: o,
726
- className: le.menuButton,
728
+ className: re.menuButton,
727
729
  children: [
728
- i && /* @__PURE__ */ n(i, { className: le.menuIcon }),
729
- /* @__PURE__ */ n("span", { className: le.menuLabel, children: e }),
730
- t && /* @__PURE__ */ n("span", { className: le.menuHint, children: t }),
730
+ i && /* @__PURE__ */ n(i, { className: re.menuIcon }),
731
+ /* @__PURE__ */ n("span", { className: re.menuLabel, children: e }),
732
+ t && /* @__PURE__ */ n("span", { className: re.menuHint, children: t }),
731
733
  /* @__PURE__ */ n($n, {})
732
734
  ]
733
735
  }
@@ -735,7 +737,7 @@ function J({ label: e, hint: t, onClick: o, Icon: i }) {
735
737
  }
736
738
  const Wn = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.42229 2.82911C4.71149 1.83006 6.23876 1.19768 7.8383 1L7.96797 2.05432C6.55867 2.22862 5.21101 2.7866 4.07273 3.66874L3.42229 2.82911ZM5.44493 6.71393L9.49745 10.7665L17.0924 3.1705L17.8438 3.92297L9.49745 12.2693L4.69352 7.46534L5.44493 6.71393ZM17.932 8.83829C17.8618 8.27074 17.7364 7.70745 17.5589 7.16222L16.5482 7.49276C16.7055 7.97209 16.816 8.46843 16.8766 8.96689C16.917 9.29742 16.9372 9.6269 16.9372 9.96594C16.9372 10.305 16.917 10.6344 16.8777 10.9639C16.7033 12.3732 16.1454 13.7209 15.2632 14.8592L16.1029 15.5096C17.1019 14.2204 17.7343 12.6931 17.932 11.0925C17.9766 10.7205 18 10.3486 18 9.96594C18 9.58332 17.9766 9.21134 17.932 8.83829ZM1.05432 8.96795L0 8.83829C0.197684 7.23874 0.830061 5.71147 1.82911 4.42228L2.66874 5.07272C1.7866 6.211 1.22862 7.55865 1.05432 8.96795ZM0 11.0936C0.197684 12.6931 0.830061 14.2204 1.82911 15.5096L2.66874 14.8591C1.7866 13.7209 1.22862 12.3732 1.05432 10.9639L0 11.0936ZM10.0939 1.00011C11.6935 1.19673 13.2207 1.83017 14.5099 2.82922L13.8595 3.66884C12.7202 2.7867 11.3736 2.22872 9.96426 2.05442L10.0939 1.00011Z", fill: "currentColor" }) });
737
739
  function Yn() {
738
- const e = $(), t = g("playbackRate"), { t: o } = h(), i = f(() => {
740
+ const e = $(), t = b("playbackRate"), { t: o } = f(), i = p(() => {
739
741
  e.setPage("speed");
740
742
  }, [e]);
741
743
  return /* @__PURE__ */ n(
@@ -748,9 +750,9 @@ function Yn() {
748
750
  }
749
751
  );
750
752
  }
751
- const Xn = (e) => /* @__PURE__ */ r("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
753
+ const Xn = (e) => /* @__PURE__ */ l("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
752
754
  /* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ n("rect", { width: 18, height: 18, fill: "white" }) }) }),
753
- /* @__PURE__ */ r("g", { clipPath: "url(#clip0_412_23039)", children: [
755
+ /* @__PURE__ */ l("g", { clipPath: "url(#clip0_412_23039)", children: [
754
756
  /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.46326 3.85039H0V2.65039H2.46326C2.7388 1.36449 3.88181 0.400391 5.24999 0.400391C6.61818 0.400391 7.76119 1.36449 8.03673 2.65039H18V3.85039H8.03673C7.76119 5.13629 6.61818 6.10039 5.24999 6.10039C3.88181 6.10039 2.7388 5.13629 2.46326 3.85039ZM3.59999 3.25039C3.59999 2.33912 4.33872 1.60039 5.24999 1.60039C6.16126 1.60039 6.89999 2.33912 6.89999 3.25039C6.89999 4.16166 6.16126 4.90039 5.24999 4.90039C4.33872 4.90039 3.59999 4.16166 3.59999 3.25039Z", fill: "currentColor" }),
755
757
  /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 8.40039H9.46326C9.7388 7.11449 10.8818 6.15039 12.25 6.15039C13.6182 6.15039 14.7612 7.11449 15.0367 8.40039H18V9.60039H15.0367C14.7612 10.8863 13.6182 11.8504 12.25 11.8504C10.8818 11.8504 9.7388 10.8863 9.46326 9.60039H0V8.40039ZM12.25 7.35039C11.3387 7.35039 10.6 8.08912 10.6 9.00039C10.6 9.91166 11.3387 10.6504 12.25 10.6504C13.1613 10.6504 13.9 9.91166 13.9 9.00039C13.9 8.08912 13.1613 7.35039 12.25 7.35039Z", fill: "currentColor" }),
756
758
  /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.24999 17.6004C6.61818 17.6004 7.76119 16.6363 8.03673 15.3504H18V14.1504H8.03673C7.76119 12.8645 6.61818 11.9004 5.24999 11.9004C3.88181 11.9004 2.7388 12.8645 2.46326 14.1504H0V15.3504H2.46326C2.7388 16.6363 3.88181 17.6004 5.24999 17.6004ZM5.24999 13.1004C4.33872 13.1004 3.59999 13.8391 3.59999 14.7504C3.59999 15.6617 4.33872 16.4004 5.24999 16.4004C6.16126 16.4004 6.89999 15.6617 6.89999 14.7504C6.89999 13.8391 6.16126 13.1004 5.24999 13.1004Z", fill: "currentColor" })
@@ -764,7 +766,7 @@ function tt(e) {
764
766
  return s >= 1400 || a >= 2500 ? "1440p" : s >= 1e3 || a >= 1800 ? "1080p" : s >= 700 || a >= 1200 ? "720p" : s >= 460 || a >= 800 ? "480p" : s >= 300 || a >= 540 ? "360p" : s >= 200 || a >= 360 ? "240p" : "144p";
765
767
  }
766
768
  function Jn() {
767
- const e = $(), t = g("autoQuality"), o = g("quality"), { t: i } = h(), s = f(() => {
769
+ const e = $(), t = b("autoQuality"), o = b("quality"), { t: i } = f(), s = p(() => {
768
770
  e.setPage("quality");
769
771
  }, [e]);
770
772
  if (!o)
@@ -781,7 +783,7 @@ function Jn() {
781
783
  );
782
784
  }
783
785
  function eo() {
784
- const e = $(), t = g("hasCaptions"), o = g("textTrack"), { t: i } = h(), s = f(() => {
786
+ const e = $(), t = b("hasCaptions"), o = b("textTrack"), { t: i } = f(), s = p(() => {
785
787
  e.setPage("captions");
786
788
  }, [e]);
787
789
  return t ? /* @__PURE__ */ n(
@@ -794,7 +796,7 @@ function eo() {
794
796
  }
795
797
  ) : null;
796
798
  }
797
- const to = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 21.798373,3.342155 8.8843977,16.256145 2.2000774,9.571825 0,11.771895 8.8843977,20.657845 24,5.543795 Z", fill: "currentColor" }) }), no = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 9.64706,12 4,17.64706 6.35293,20 12,14.35293 17.64706,20 20,17.64706 14.35293,12 20,6.35293 17.64706,4 12,9.64706 6.35293,4 4,6.35293 Z", fill: "currentColor" }) }), oo = "_switch-track_7nhpo_1", io = "_switch-thumb_7nhpo_17", so = "_switch-icon_7nhpo_31", ao = "_switch-body_7nhpo_37", lo = "_switch-label_7nhpo_78", ro = "_menu-icon_7nhpo_82", U = {
799
+ const to = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 21.798373,3.342155 8.8843977,16.256145 2.2000774,9.571825 0,11.771895 8.8843977,20.657845 24,5.543795 Z", fill: "currentColor" }) }), no = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 9.64706,12 4,17.64706 6.35293,20 12,14.35293 17.64706,20 20,17.64706 14.35293,12 20,6.35293 17.64706,4 12,9.64706 6.35293,4 4,6.35293 Z", fill: "currentColor" }) }), oo = "_switch-track_7nhpo_1", io = "_switch-thumb_7nhpo_17", so = "_switch-icon_7nhpo_31", ao = "_switch-body_7nhpo_37", ro = "_switch-label_7nhpo_78", lo = "_menu-icon_7nhpo_82", U = {
798
800
  "switch-track": "_switch-track_7nhpo_1",
799
801
  switchTrack: oo,
800
802
  "switch-thumb": "_switch-thumb_7nhpo_17",
@@ -804,17 +806,17 @@ const to = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0
804
806
  "switch-body": "_switch-body_7nhpo_37",
805
807
  switchBody: ao,
806
808
  "switch-label": "_switch-label_7nhpo_78",
807
- switchLabel: lo,
809
+ switchLabel: ro,
808
810
  "menu-icon": "_menu-icon_7nhpo_82",
809
- menuIcon: ro
811
+ menuIcon: lo
810
812
  };
811
- function Te({
813
+ function Se({
812
814
  label: e,
813
815
  checked: t = !1,
814
816
  onClick: o,
815
817
  Icon: i
816
818
  }) {
817
- return /* @__PURE__ */ r(
819
+ return /* @__PURE__ */ l(
818
820
  "button",
819
821
  {
820
822
  className: U.switchBody,
@@ -833,9 +835,9 @@ function Te({
833
835
  }
834
836
  const co = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 0V12.7489H5.44V18L10.5007 12.7489H16.582V0H1ZM2 1H15.58V11.7339H9.98655L6.52667 15.25V11.7339H2V1ZM5.24963 5.35011H12.3323V4.24835H5.24963V5.35011ZM5.24963 8.18462H9.50067V7.08285H5.24963V8.18462Z", fill: "currentColor" }) });
835
837
  function uo() {
836
- const { t: e } = h(), t = L(), o = v();
838
+ const { t: e } = f(), t = y(), o = v();
837
839
  return !t.forceComments && t.hasComments ? /* @__PURE__ */ n(
838
- Te,
840
+ Se,
839
841
  {
840
842
  Icon: co,
841
843
  label: e("COMMENTS"),
@@ -845,7 +847,7 @@ function uo() {
845
847
  ) : null;
846
848
  }
847
849
  function mo() {
848
- return /* @__PURE__ */ r(q, { noBackButton: !0, children: [
850
+ return /* @__PURE__ */ l(q, { noBackButton: !0, children: [
849
851
  /* @__PURE__ */ n(Yn, {}),
850
852
  /* @__PURE__ */ n(eo, {}),
851
853
  /* @__PURE__ */ n(uo, {}),
@@ -854,7 +856,7 @@ function mo() {
854
856
  }
855
857
  const ho = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) });
856
858
  function pe({ selected: e, label: t, onClick: o }) {
857
- return /* @__PURE__ */ r(
859
+ return /* @__PURE__ */ l(
858
860
  "button",
859
861
  {
860
862
  type: "button",
@@ -874,7 +876,7 @@ function po() {
874
876
  const e = bt({
875
877
  rates: Y,
876
878
  normalLabel: "1x"
877
- }), { t } = h();
879
+ }), { t } = f();
878
880
  return /* @__PURE__ */ n(q, { heading: t("PLAYBACK_SPEED"), children: e.map(({ value: o, label: i, select: s, selected: a }) => /* @__PURE__ */ n(
879
881
  pe,
880
882
  {
@@ -886,13 +888,13 @@ function po() {
886
888
  )) });
887
889
  }
888
890
  function fo() {
889
- const e = $(), { t } = h(), o = f(() => {
891
+ const e = $(), { t } = f(), o = p(() => {
890
892
  e.setPage("captionManage");
891
893
  }, [e]);
892
894
  return /* @__PURE__ */ n(J, { label: t("CAPTIONS_MANAGE"), onClick: o });
893
895
  }
894
896
  function _o() {
895
- const { t: e } = h(), t = v(), o = $(), i = f(() => {
897
+ const { t: e } = f(), t = v(), o = $(), i = p(() => {
896
898
  o.setPage("captionFontSize");
897
899
  }, [o]);
898
900
  return /* @__PURE__ */ n(
@@ -905,7 +907,7 @@ function _o() {
905
907
  );
906
908
  }
907
909
  function Co() {
908
- const e = $(), t = g("textTrack"), { t: o } = h(), { disableCaptionSettings: i } = v(), s = f(() => {
910
+ const e = $(), t = b("textTrack"), { t: o } = f(), { disableCaptionSettings: i } = v(), s = p(() => {
909
911
  e.setPage("captionLanguage");
910
912
  }, [e]);
911
913
  return i ? null : /* @__PURE__ */ n(
@@ -918,9 +920,9 @@ function Co() {
918
920
  );
919
921
  }
920
922
  function go() {
921
- const { t: e } = h(), t = v();
923
+ const { t: e } = f(), t = v();
922
924
  return /* @__PURE__ */ n(
923
- Te,
925
+ Se,
924
926
  {
925
927
  label: e("ON_TOP"),
926
928
  onClick: t.toggleCaptionPositionOnTop,
@@ -929,9 +931,9 @@ function go() {
929
931
  );
930
932
  }
931
933
  function bo() {
932
- const { t: e } = h(), t = v();
934
+ const { t: e } = f(), t = v();
933
935
  return /* @__PURE__ */ n(
934
- Te,
936
+ Se,
935
937
  {
936
938
  label: e("INVERT_COLORS"),
937
939
  onClick: t.toggleCaptionsInvertColors,
@@ -940,8 +942,8 @@ function bo() {
940
942
  );
941
943
  }
942
944
  function vo() {
943
- const e = L(), { t } = h();
944
- return /* @__PURE__ */ r(q, { heading: t("CAPTIONS"), children: [
945
+ const e = y(), { t } = f();
946
+ return /* @__PURE__ */ l(q, { heading: t("CAPTIONS"), children: [
945
947
  /* @__PURE__ */ n(Co, {}),
946
948
  /* @__PURE__ */ n(_o, {}),
947
949
  /* @__PURE__ */ n(go, {}),
@@ -950,7 +952,7 @@ function vo() {
950
952
  ] });
951
953
  }
952
954
  function wo() {
953
- const e = vt(), { t } = h();
955
+ const e = vt(), { t } = f();
954
956
  return /* @__PURE__ */ n(q, { heading: t("CAPTIONS_LANGUAGE"), children: e.map(({ value: o, label: i, select: s, selected: a }) => /* @__PURE__ */ n(
955
957
  pe,
956
958
  {
@@ -962,7 +964,7 @@ function wo() {
962
964
  )) });
963
965
  }
964
966
  function yo() {
965
- const e = v(), { t } = h();
967
+ const e = v(), { t } = f();
966
968
  return /* @__PURE__ */ n(q, { heading: t("CAPTION_FONT_SIZE"), children: bn.map((o) => /* @__PURE__ */ n(
967
969
  pe,
968
970
  {
@@ -984,10 +986,10 @@ const $ = () => {
984
986
  return e;
985
987
  };
986
988
  function ko() {
987
- const e = $(), t = L(), { t: o } = h();
989
+ const e = $(), t = y(), { t: o } = f();
988
990
  return Z(() => {
989
991
  t.captions.length === 0 && e.backToMain();
990
- }, [t.captions]), /* @__PURE__ */ n(q, { heading: o("CAPTIONS_MANAGE"), children: t.captions.map((i) => /* @__PURE__ */ r(
992
+ }, [t.captions]), /* @__PURE__ */ n(q, { heading: o("CAPTIONS_MANAGE"), children: t.captions.map((i) => /* @__PURE__ */ l(
991
993
  "button",
992
994
  {
993
995
  type: "button",
@@ -1007,13 +1009,13 @@ function ko() {
1007
1009
  )) });
1008
1010
  }
1009
1011
  function Lo() {
1010
- const e = g("autoQuality"), t = wt({ sort: "descending" }), { t: o } = h();
1011
- return /* @__PURE__ */ n(q, { heading: o("QUALITY"), children: t.map(({ value: i, select: s, selected: a, label: l, quality: c }) => /* @__PURE__ */ n(
1012
+ const e = b("autoQuality"), t = wt({ sort: "descending" }), { t: o } = f();
1013
+ return /* @__PURE__ */ n(q, { heading: o("QUALITY"), children: t.map(({ value: i, select: s, selected: a, label: r, quality: c }) => /* @__PURE__ */ n(
1012
1014
  pe,
1013
1015
  {
1014
1016
  selected: i === "auto" && e || a && !e,
1015
1017
  onClick: () => s(),
1016
- label: c ? tt(c) : l
1018
+ label: c ? tt(c) : r
1017
1019
  },
1018
1020
  i
1019
1021
  )) });
@@ -1026,62 +1028,62 @@ function Mo(e, t) {
1026
1028
  const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(t);
1027
1029
  return o[i + 1] ?? null;
1028
1030
  }
1029
- function Be(e) {
1031
+ function Oe(e) {
1030
1032
  return e.querySelector("button");
1031
1033
  }
1032
- function Oe(e) {
1034
+ function Be(e) {
1033
1035
  const t = Array.from(e.querySelectorAll("button"));
1034
1036
  return t[t.length - 1] ?? null;
1035
1037
  }
1036
- function Po(e) {
1037
- const t = z(null), o = D(
1038
+ function Po(e, t) {
1039
+ const o = z(null), i = D(
1038
1040
  () => ({
1039
1041
  Escape: e.toggle,
1040
1042
  ArrowUp: () => {
1041
- const i = document.activeElement;
1042
- if (i && t.current && t.current.contains(i)) {
1043
- const s = xo(
1044
- t.current,
1045
- i
1043
+ const s = document.activeElement;
1044
+ if (s && o.current && o.current.contains(s)) {
1045
+ const a = xo(
1046
+ o.current,
1047
+ s
1046
1048
  );
1047
- if (s)
1048
- s.focus();
1049
+ if (a)
1050
+ a.focus();
1049
1051
  else {
1050
- const a = Oe(t.current);
1051
- a == null || a.focus();
1052
+ const r = Be(o.current);
1053
+ r == null || r.focus();
1052
1054
  }
1053
- } else if (t.current) {
1054
- const s = Oe(t.current);
1055
- s == null || s.focus();
1055
+ } else if (o.current) {
1056
+ const a = Be(o.current);
1057
+ a == null || a.focus();
1056
1058
  }
1057
1059
  },
1058
1060
  ArrowDown: () => {
1059
- const i = document.activeElement;
1060
- if (i && t.current && t.current.contains(i)) {
1061
- const s = Mo(
1062
- t.current,
1063
- i
1061
+ const s = document.activeElement;
1062
+ if (s && o.current && o.current.contains(s)) {
1063
+ const a = Mo(
1064
+ o.current,
1065
+ s
1064
1066
  );
1065
- if (s)
1066
- s.focus();
1067
+ if (a)
1068
+ a.focus();
1067
1069
  else {
1068
- const a = Be(t.current);
1069
- a == null || a.focus();
1070
+ const r = Oe(o.current);
1071
+ r == null || r.focus();
1070
1072
  }
1071
- } else if (t.current) {
1072
- const s = Be(t.current);
1073
- s == null || s.focus();
1073
+ } else if (o.current) {
1074
+ const a = Oe(o.current);
1075
+ a == null || a.focus();
1074
1076
  }
1075
1077
  },
1076
1078
  ArrowRight: () => {
1077
- const i = document.activeElement;
1078
- i && i.getAttribute("aria-haspopup") === "true" && t.current && t.current.contains(i) && i.click();
1079
+ const s = document.activeElement;
1080
+ s && s.getAttribute("aria-haspopup") === "true" && o.current && o.current.contains(s) && s.click();
1079
1081
  },
1080
1082
  ArrowLeft: e.back
1081
1083
  }),
1082
1084
  [e]
1083
1085
  );
1084
- return Ee(o, !0), t;
1086
+ return Ee(i, !0, t), o;
1085
1087
  }
1086
1088
  const nt = we(null), No = {
1087
1089
  main: mo,
@@ -1094,7 +1096,7 @@ const nt = we(null), No = {
1094
1096
  }, Io = {
1095
1097
  name: "middleware",
1096
1098
  async fn(e) {
1097
- const t = await St(e);
1099
+ const t = await At(e);
1098
1100
  return {
1099
1101
  x: e.x - t.right - 4,
1100
1102
  y: e.y - 4
@@ -1102,42 +1104,42 @@ const nt = we(null), No = {
1102
1104
  }
1103
1105
  };
1104
1106
  function Eo() {
1105
- const e = v(), [t, o] = k(["main"]), [i, s] = k(!1), a = f(() => {
1107
+ const e = v(), [t, o] = k(["main"]), [i, s] = k(!1), a = p(() => {
1106
1108
  s(!i), o(["main"]), e.setGlobalKeysDisabled(!i);
1107
- }, [i]), l = f((P) => {
1108
- o((I) => I.concat(P));
1109
- }, []), c = f(() => {
1109
+ }, [i]), r = p((P) => {
1110
+ o((E) => E.concat(P));
1111
+ }, []), c = p(() => {
1110
1112
  o((P) => P.length > 1 ? P.slice(0, -1) : P);
1111
- }, []), u = f(() => {
1113
+ }, []), u = p(() => {
1112
1114
  o(["main"]);
1113
- }, []), d = D(() => No[t[t.length - 1]], [t]), { refs: _, floatingStyles: b, context: w } = me({
1115
+ }, []), d = D(() => No[t[t.length - 1]], [t]), { refs: _, floatingStyles: C, context: w } = me({
1114
1116
  open: i,
1115
1117
  onOpenChange: a,
1116
1118
  placement: "top-end",
1117
1119
  whileElementsMounted: he,
1118
1120
  middleware: [Io]
1119
- }), y = Me(w, { escapeKey: !1 }), { getReferenceProps: x, getFloatingProps: p } = Pe([y]), C = D(
1120
- () => ({ setPage: l, back: c, backToMain: u, toggle: a }),
1121
- [l, c, u, a]
1122
- ), H = Po(C), E = $e([_.setFloating, H]);
1121
+ }), M = Me(w, { escapeKey: !1 }), { getReferenceProps: L, getFloatingProps: I } = Pe([M]), h = D(
1122
+ () => ({ setPage: r, back: c, backToMain: u, toggle: a }),
1123
+ [r, c, u, a]
1124
+ ), g = Po(h, i), S = $e([_.setFloating, g]);
1123
1125
  return {
1124
1126
  Page: d,
1125
1127
  open: i,
1126
- floatingRef: E,
1128
+ floatingRef: S,
1127
1129
  referenceRef: _.setReference,
1128
- floatingStyles: b,
1130
+ floatingStyles: C,
1129
1131
  context: w,
1130
1132
  getReferenceProps() {
1131
1133
  return {
1132
- ...x(),
1134
+ ...L(),
1133
1135
  tabIndex: e.state.interactionsDisabled ? -1 : 0
1134
1136
  };
1135
1137
  },
1136
- getFloatingProps: p,
1137
- contextValue: C
1138
+ getFloatingProps: I,
1139
+ contextValue: h
1138
1140
  };
1139
1141
  }
1140
- function To() {
1142
+ function So() {
1141
1143
  const {
1142
1144
  Page: e,
1143
1145
  context: t,
@@ -1145,11 +1147,11 @@ function To() {
1145
1147
  getFloatingProps: i,
1146
1148
  getReferenceProps: s,
1147
1149
  open: a,
1148
- floatingRef: l,
1150
+ floatingRef: r,
1149
1151
  referenceRef: c,
1150
1152
  contextValue: u
1151
- } = Eo(), { t: d } = h();
1152
- return /* @__PURE__ */ r(X, { children: [
1153
+ } = Eo(), { t: d } = f();
1154
+ return /* @__PURE__ */ l(X, { children: [
1153
1155
  /* @__PURE__ */ n(
1154
1156
  "button",
1155
1157
  {
@@ -1178,7 +1180,7 @@ function To() {
1178
1180
  "aria-label": d("VIDEO_SETTINGS"),
1179
1181
  "aria-labelledby": "menu-heading",
1180
1182
  className: F.settingsMenu,
1181
- ref: l,
1183
+ ref: r,
1182
1184
  style: o,
1183
1185
  ...i(),
1184
1186
  children: /* @__PURE__ */ n(nt.Provider, { value: u, children: /* @__PURE__ */ n(e, {}) })
@@ -1190,7 +1192,7 @@ function To() {
1190
1192
  }
1191
1193
  function ot(e, t = 1e3) {
1192
1194
  return function() {
1193
- const i = S(), [s, a] = k(null), l = f(() => a(null), []);
1195
+ const i = V(), [s, a] = k(null), r = p(() => a(null), []);
1194
1196
  return Z(() => {
1195
1197
  if (!i)
1196
1198
  return () => {
@@ -1202,7 +1204,7 @@ function ot(e, t = 1e3) {
1202
1204
  (d) => {
1203
1205
  clearTimeout(u);
1204
1206
  const _ = d.detail;
1205
- a(/* @__PURE__ */ n(e, { action: _ })), u = setTimeout(l, t);
1207
+ a(/* @__PURE__ */ n(e, { action: _ })), u = setTimeout(r, t);
1206
1208
  },
1207
1209
  { signal: c.signal }
1208
1210
  ), () => {
@@ -1211,7 +1213,7 @@ function ot(e, t = 1e3) {
1211
1213
  }, [t]), s;
1212
1214
  };
1213
1215
  }
1214
- const Ae = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), Se = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), Ao = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.691 3.99987V10.5281L0 4.00655V20.2596L10.691 13.7367V20.2663L23.9987 12.1331L10.691 3.99987Z", fill: "currentColor" }) }), So = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.309 3.99987L0 12.1331L13.309 20.2663V13.7367L23.9987 20.2596V4.00655L13.309 10.5281V3.99987Z", fill: "currentColor" }) }), it = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1179 1.41211V22.589H11.2943L5.64717 16.9418V7.05928L11.2943 1.41211H14.1179ZM4.23537 7.05928V16.9418H2.11769C0.957618 16.9418 0.0189406 16.0147 0.00028305 14.8592L0 14.8241V9.17696C0 8.01689 0.927077 7.07822 2.0826 7.05956L2.11769 7.05928H4.23537ZM22.3744 7.93711L24 9.56119L21.5623 11.9988L24 14.4365L22.3744 16.0621L19.9383 13.6245L17.5006 16.0621L15.875 14.4365L18.3127 11.9988L15.875 9.56119L17.5006 7.93711L19.9383 10.3748L22.3744 7.93711Z", fill: "currentColor" }) }), st = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }), at = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 16.8627V6.98017L11.2943 1.33301H14.1179V22.5099H11.2943L5.64714 16.8627ZM0 14.745V9.09785C0 7.92607 0.945899 6.98017 2.11768 6.98017H4.23537V16.8627H2.11768C0.945899 16.8627 0 15.9168 0 14.745ZM16.9056 8.4209C17.8388 9.36962 18.3527 10.6134 18.3527 11.9207C18.3527 13.2295 17.8388 14.4732 16.9056 15.422L17.9094 16.4116C19.1066 15.1989 19.7645 13.6036 19.7645 11.9207C19.7645 10.2393 19.1066 8.64396 17.9094 7.43123L16.9056 8.4209ZM19.9016 5.43185L20.8997 4.43372C22.9002 6.43422 24 9.09403 24 11.9219C24 14.7497 22.9002 17.4081 20.8997 19.4086L19.9016 18.4104C21.6353 16.6782 22.5882 14.3727 22.5882 11.9219C22.5882 9.46957 21.6353 7.16553 19.9016 5.43185Z", fill: "currentColor" }) }), Vo = "_feedback-overlay_3kkqe_1", Ro = "_feedback-message_3kkqe_14", Ho = "_feedback-icon_3kkqe_30", Bo = "_feedback-icon-animation_3kkqe_1", N = {
1216
+ const Te = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), Ae = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), To = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.691 3.99987V10.5281L0 4.00655V20.2596L10.691 13.7367V20.2663L23.9987 12.1331L10.691 3.99987Z", fill: "currentColor" }) }), Ao = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.309 3.99987L0 12.1331L13.309 20.2663V13.7367L23.9987 20.2596V4.00655L13.309 10.5281V3.99987Z", fill: "currentColor" }) }), it = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1179 1.41211V22.589H11.2943L5.64717 16.9418V7.05928L11.2943 1.41211H14.1179ZM4.23537 7.05928V16.9418H2.11769C0.957618 16.9418 0.0189406 16.0147 0.00028305 14.8592L0 14.8241V9.17696C0 8.01689 0.927077 7.07822 2.0826 7.05956L2.11769 7.05928H4.23537ZM22.3744 7.93711L24 9.56119L21.5623 11.9988L24 14.4365L22.3744 16.0621L19.9383 13.6245L17.5006 16.0621L15.875 14.4365L18.3127 11.9988L15.875 9.56119L17.5006 7.93711L19.9383 10.3748L22.3744 7.93711Z", fill: "currentColor" }) }), st = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }), at = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 16.8627V6.98017L11.2943 1.33301H14.1179V22.5099H11.2943L5.64714 16.8627ZM0 14.745V9.09785C0 7.92607 0.945899 6.98017 2.11768 6.98017H4.23537V16.8627H2.11768C0.945899 16.8627 0 15.9168 0 14.745ZM16.9056 8.4209C17.8388 9.36962 18.3527 10.6134 18.3527 11.9207C18.3527 13.2295 17.8388 14.4732 16.9056 15.422L17.9094 16.4116C19.1066 15.1989 19.7645 13.6036 19.7645 11.9207C19.7645 10.2393 19.1066 8.64396 17.9094 7.43123L16.9056 8.4209ZM19.9016 5.43185L20.8997 4.43372C22.9002 6.43422 24 9.09403 24 11.9219C24 14.7497 22.9002 17.4081 20.8997 19.4086L19.9016 18.4104C21.6353 16.6782 22.5882 14.3727 22.5882 11.9219C22.5882 9.46957 21.6353 7.16553 19.9016 5.43185Z", fill: "currentColor" }) }), Vo = "_feedback-overlay_3kkqe_1", Ro = "_feedback-message_3kkqe_14", Ho = "_feedback-icon_3kkqe_30", Oo = "_feedback-icon-animation_3kkqe_1", N = {
1215
1217
  "feedback-overlay": "_feedback-overlay_3kkqe_1",
1216
1218
  feedbackOverlay: Vo,
1217
1219
  "feedback-message": "_feedback-message_3kkqe_14",
@@ -1219,21 +1221,21 @@ const Ae = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0
1219
1221
  "feedback-icon": "_feedback-icon_3kkqe_30",
1220
1222
  feedbackIcon: Ho,
1221
1223
  "feedback-icon-animation": "_feedback-icon-animation_3kkqe_1",
1222
- feedbackIconAnimation: Bo
1224
+ feedbackIconAnimation: Oo
1223
1225
  };
1224
- function Oo({ action: e }) {
1225
- const t = S();
1226
+ function Bo({ action: e }) {
1227
+ const t = V();
1226
1228
  if (!t)
1227
1229
  return null;
1228
1230
  switch (e) {
1229
1231
  case "togglePaused":
1230
- return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: t.paused ? /* @__PURE__ */ n(Ae, {}) : /* @__PURE__ */ n(Se, {}) });
1232
+ return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: t.paused ? /* @__PURE__ */ n(Te, {}) : /* @__PURE__ */ n(Ae, {}) });
1231
1233
  case "seekForward":
1232
1234
  case "seekForward10":
1233
- return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(Ao, { className: "right" }) });
1235
+ return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(To, { className: "right" }) });
1234
1236
  case "seekBackward":
1235
1237
  case "seekBackward10":
1236
- return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(So, { className: "left" }) });
1238
+ return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(Ao, { className: "left" }) });
1237
1239
  case "captionsChange":
1238
1240
  return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(Xe, {}) });
1239
1241
  case "volumeChange":
@@ -1243,7 +1245,7 @@ function Oo({ action: e }) {
1243
1245
  }
1244
1246
  }
1245
1247
  function Fo({ action: e }) {
1246
- const { t } = h(), o = S();
1248
+ const { t } = f(), o = V();
1247
1249
  if (!o)
1248
1250
  return null;
1249
1251
  switch (e) {
@@ -1267,9 +1269,9 @@ function Fo({ action: e }) {
1267
1269
  return null;
1268
1270
  }
1269
1271
  }
1270
- const Do = ot(Oo, 300), Zo = ot(Fo, 1e3);
1271
- function lt() {
1272
- return /* @__PURE__ */ r("div", { className: N.feedbackOverlay, children: [
1272
+ const Do = ot(Bo, 300), Zo = ot(Fo, 1e3);
1273
+ function rt() {
1274
+ return /* @__PURE__ */ l("div", { className: N.feedbackOverlay, children: [
1273
1275
  /* @__PURE__ */ n(Do, {}),
1274
1276
  /* @__PURE__ */ n(Zo, {})
1275
1277
  ] });
@@ -1279,7 +1281,7 @@ const jo = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0
1279
1281
  fullScreenButton: zo
1280
1282
  };
1281
1283
  function Uo() {
1282
- const e = g("fullscreen"), t = S(), o = v(), i = L(), { t: s } = h();
1284
+ const e = b("fullscreen"), t = V(), o = v(), i = y(), { t: s } = f();
1283
1285
  return i.hideFullScreen ? null : /* @__PURE__ */ n(
1284
1286
  "button",
1285
1287
  {
@@ -1311,13 +1313,13 @@ const Wo = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0
1311
1313
  playPauseButton: Yo
1312
1314
  };
1313
1315
  function Jo(e, t) {
1314
- return t ? Wo : e ? Se : Ae;
1316
+ return t ? Wo : e ? Ae : Te;
1315
1317
  }
1316
1318
  function e1(e, t) {
1317
1319
  return t ? "REPLAY" : e ? "PLAY" : "PAUSE";
1318
1320
  }
1319
1321
  function t1() {
1320
- const e = S(), t = v(), o = g("paused"), i = g("ended"), { t: s } = h(), a = Jo(o, i);
1322
+ const e = V(), t = v(), o = b("paused"), i = b("ended"), { t: s } = f(), a = Jo(o, i);
1321
1323
  return e ? /* @__PURE__ */ n(
1322
1324
  "button",
1323
1325
  {
@@ -1337,7 +1339,7 @@ const n1 = "_poster_195hi_1", o1 = {
1337
1339
  poster: n1
1338
1340
  };
1339
1341
  function i1({ src: e, title: t }) {
1340
- const o = g("source"), { t: i } = h();
1342
+ const o = b("source"), { t: i } = f();
1341
1343
  return o.type === "video/youtube" || o.type === "video/vimeo" ? null : /* @__PURE__ */ n(
1342
1344
  yt,
1343
1345
  {
@@ -1347,15 +1349,15 @@ function i1({ src: e, title: t }) {
1347
1349
  }
1348
1350
  );
1349
1351
  }
1350
- const s1 = "_small-layout-overlay_4hkng_1", a1 = "_small-layout-button_4hkng_14", l1 = "_small-layout-icon-play_4hkng_24", r1 = "_small-layout-icon-pause_4hkng_30", c1 = "_small-layout-timestamp_4hkng_36", u1 = "_full-screen-close-icon_4hkng_49", d1 = "_fade-out_4hkng_1", Q = {
1352
+ const s1 = "_small-layout-overlay_4hkng_1", a1 = "_small-layout-button_4hkng_14", r1 = "_small-layout-icon-play_4hkng_24", l1 = "_small-layout-icon-pause_4hkng_30", c1 = "_small-layout-timestamp_4hkng_36", u1 = "_full-screen-close-icon_4hkng_49", d1 = "_fade-out_4hkng_1", Q = {
1351
1353
  "small-layout-overlay": "_small-layout-overlay_4hkng_1",
1352
1354
  smallLayoutOverlay: s1,
1353
1355
  "small-layout-button": "_small-layout-button_4hkng_14",
1354
1356
  smallLayoutButton: a1,
1355
1357
  "small-layout-icon-play": "_small-layout-icon-play_4hkng_24",
1356
- smallLayoutIconPlay: l1,
1358
+ smallLayoutIconPlay: r1,
1357
1359
  "small-layout-icon-pause": "_small-layout-icon-pause_4hkng_30",
1358
- smallLayoutIconPause: r1,
1360
+ smallLayoutIconPause: l1,
1359
1361
  "small-layout-timestamp": "_small-layout-timestamp_4hkng_36",
1360
1362
  smallLayoutTimestamp: c1,
1361
1363
  "full-screen-close-icon": "_full-screen-close-icon_4hkng_49",
@@ -1364,11 +1366,11 @@ const s1 = "_small-layout-overlay_4hkng_1", a1 = "_small-layout-button_4hkng_14"
1364
1366
  fadeOut: d1
1365
1367
  };
1366
1368
  function m1() {
1367
- const e = g("paused");
1368
- return /* @__PURE__ */ r("div", { className: Q.smallLayoutOverlay, children: [
1369
+ const e = b("paused");
1370
+ return /* @__PURE__ */ l("div", { className: Q.smallLayoutOverlay, children: [
1369
1371
  /* @__PURE__ */ n(kt, { className: Q.fullScreenCloseIcon, children: /* @__PURE__ */ n(Qe, {}) }),
1370
- /* @__PURE__ */ n("i", { className: Q.smallLayoutButton, children: e ? /* @__PURE__ */ n(Se, { className: Q.smallLayoutIconPlay }) : /* @__PURE__ */ n(Ae, { className: Q.smallLayoutIconPause }) }),
1371
- /* @__PURE__ */ r("div", { className: Q.smallLayoutTimestamp, children: [
1372
+ /* @__PURE__ */ n("i", { className: Q.smallLayoutButton, children: e ? /* @__PURE__ */ n(Ae, { className: Q.smallLayoutIconPlay }) : /* @__PURE__ */ n(Te, { className: Q.smallLayoutIconPause }) }),
1373
+ /* @__PURE__ */ l("div", { className: Q.smallLayoutTimestamp, children: [
1372
1374
  /* @__PURE__ */ n(ce, { type: "current" }),
1373
1375
  "/",
1374
1376
  /* @__PURE__ */ n(ce, { type: "duration" })
@@ -1380,63 +1382,63 @@ const h1 = "_time-indicator_1uygf_1", p1 = {
1380
1382
  timeIndicator: h1
1381
1383
  };
1382
1384
  function f1() {
1383
- return /* @__PURE__ */ r("div", { className: p1.timeIndicator, children: [
1385
+ return /* @__PURE__ */ l("div", { className: p1.timeIndicator, children: [
1384
1386
  /* @__PURE__ */ n(ce, { type: "current" }),
1385
1387
  "/",
1386
1388
  /* @__PURE__ */ n(ce, { type: "duration" })
1387
1389
  ] });
1388
1390
  }
1389
- const _1 = "_comment-markers_u7l2l_1", C1 = "_comment-marker_u7l2l_1", g1 = "_timeline-wrapper_u7l2l_23", b1 = "_timeline-wrapper-compact_u7l2l_24", v1 = "_track_u7l2l_33", w1 = "_thumb_u7l2l_44", y1 = "_root_u7l2l_58", k1 = "_track-inner_u7l2l_88", L1 = "_progress_u7l2l_94", x1 = "_track-fill_u7l2l_100", M1 = "_pins_u7l2l_117", P1 = "_pin-button_u7l2l_126", N1 = "_annotation-pin_u7l2l_146", I1 = "_quiz-pin_u7l2l_155", E1 = "_annotation-pin-child_u7l2l_164", T1 = "_quiz-pin-child_u7l2l_168", A1 = "_interactive-pin-container_u7l2l_173", S1 = "_interactive-pin-wrapper_u7l2l_180", V1 = "_interactive-pin-icon_u7l2l_186", R1 = "_interactive-pin_u7l2l_173", H1 = "_bg_u7l2l_200", B1 = "_symbol_u7l2l_204", O1 = "_interactive-pin-button_u7l2l_209", F1 = "_interactive-pin-menu_u7l2l_230", D1 = "_interactive-pin-menu-item_u7l2l_248", Z1 = "_arrow_u7l2l_269", j1 = "_tooltip_u7l2l_273", K1 = "_tooltip-arrow_u7l2l_282", m = {
1390
- "comment-markers": "_comment-markers_u7l2l_1",
1391
+ const _1 = "_comment-markers_1i9t2_1", C1 = "_comment-marker_1i9t2_1", g1 = "_timeline-wrapper_1i9t2_23", b1 = "_timeline-wrapper-compact_1i9t2_24", v1 = "_track_1i9t2_33", w1 = "_thumb_1i9t2_46", y1 = "_root_1i9t2_60", k1 = "_track-inner_1i9t2_90", L1 = "_progress_1i9t2_96", x1 = "_track-fill_1i9t2_102", M1 = "_pins_1i9t2_119", P1 = "_pin-button_1i9t2_128", N1 = "_annotation-pin_1i9t2_153", I1 = "_quiz-pin_1i9t2_162", E1 = "_annotation-pin-child_1i9t2_171", S1 = "_quiz-pin-child_1i9t2_175", T1 = "_interactive-pin-container_1i9t2_180", A1 = "_interactive-pin-wrapper_1i9t2_187", V1 = "_interactive-pin-icon_1i9t2_193", R1 = "_interactive-pin_1i9t2_180", H1 = "_bg_1i9t2_207", O1 = "_symbol_1i9t2_211", B1 = "_interactive-pin-button_1i9t2_216", F1 = "_interactive-pin-menu_1i9t2_242", D1 = "_interactive-pin-menu-item_1i9t2_262", Z1 = "_arrow_1i9t2_283", j1 = "_tooltip_1i9t2_287", K1 = "_tooltip-arrow_1i9t2_296", m = {
1392
+ "comment-markers": "_comment-markers_1i9t2_1",
1391
1393
  commentMarkers: _1,
1392
- "comment-marker": "_comment-marker_u7l2l_1",
1394
+ "comment-marker": "_comment-marker_1i9t2_1",
1393
1395
  commentMarker: C1,
1394
- "timeline-wrapper": "_timeline-wrapper_u7l2l_23",
1396
+ "timeline-wrapper": "_timeline-wrapper_1i9t2_23",
1395
1397
  timelineWrapper: g1,
1396
- "timeline-wrapper-compact": "_timeline-wrapper-compact_u7l2l_24",
1398
+ "timeline-wrapper-compact": "_timeline-wrapper-compact_1i9t2_24",
1397
1399
  timelineWrapperCompact: b1,
1398
1400
  track: v1,
1399
1401
  thumb: w1,
1400
1402
  root: y1,
1401
- "track-inner": "_track-inner_u7l2l_88",
1403
+ "track-inner": "_track-inner_1i9t2_90",
1402
1404
  trackInner: k1,
1403
1405
  progress: L1,
1404
- "track-fill": "_track-fill_u7l2l_100",
1406
+ "track-fill": "_track-fill_1i9t2_102",
1405
1407
  trackFill: x1,
1406
1408
  pins: M1,
1407
- "pin-button": "_pin-button_u7l2l_126",
1409
+ "pin-button": "_pin-button_1i9t2_128",
1408
1410
  pinButton: P1,
1409
- "annotation-pin": "_annotation-pin_u7l2l_146",
1411
+ "annotation-pin": "_annotation-pin_1i9t2_153",
1410
1412
  annotationPin: N1,
1411
- "quiz-pin": "_quiz-pin_u7l2l_155",
1413
+ "quiz-pin": "_quiz-pin_1i9t2_162",
1412
1414
  quizPin: I1,
1413
- "annotation-pin-child": "_annotation-pin-child_u7l2l_164",
1415
+ "annotation-pin-child": "_annotation-pin-child_1i9t2_171",
1414
1416
  annotationPinChild: E1,
1415
- "quiz-pin-child": "_quiz-pin-child_u7l2l_168",
1416
- quizPinChild: T1,
1417
- "interactive-pin-container": "_interactive-pin-container_u7l2l_173",
1418
- interactivePinContainer: A1,
1419
- "interactive-pin-wrapper": "_interactive-pin-wrapper_u7l2l_180",
1420
- interactivePinWrapper: S1,
1421
- "interactive-pin-icon": "_interactive-pin-icon_u7l2l_186",
1417
+ "quiz-pin-child": "_quiz-pin-child_1i9t2_175",
1418
+ quizPinChild: S1,
1419
+ "interactive-pin-container": "_interactive-pin-container_1i9t2_180",
1420
+ interactivePinContainer: T1,
1421
+ "interactive-pin-wrapper": "_interactive-pin-wrapper_1i9t2_187",
1422
+ interactivePinWrapper: A1,
1423
+ "interactive-pin-icon": "_interactive-pin-icon_1i9t2_193",
1422
1424
  interactivePinIcon: V1,
1423
- "interactive-pin": "_interactive-pin_u7l2l_173",
1425
+ "interactive-pin": "_interactive-pin_1i9t2_180",
1424
1426
  interactivePin: R1,
1425
1427
  bg: H1,
1426
- symbol: B1,
1427
- "interactive-pin-button": "_interactive-pin-button_u7l2l_209",
1428
- interactivePinButton: O1,
1429
- "interactive-pin-menu": "_interactive-pin-menu_u7l2l_230",
1428
+ symbol: O1,
1429
+ "interactive-pin-button": "_interactive-pin-button_1i9t2_216",
1430
+ interactivePinButton: B1,
1431
+ "interactive-pin-menu": "_interactive-pin-menu_1i9t2_242",
1430
1432
  interactivePinMenu: F1,
1431
- "interactive-pin-menu-item": "_interactive-pin-menu-item_u7l2l_248",
1433
+ "interactive-pin-menu-item": "_interactive-pin-menu-item_1i9t2_262",
1432
1434
  interactivePinMenuItem: D1,
1433
1435
  arrow: Z1,
1434
1436
  tooltip: j1,
1435
- "tooltip-arrow": "_tooltip-arrow_u7l2l_282",
1437
+ "tooltip-arrow": "_tooltip-arrow_1i9t2_296",
1436
1438
  tooltipArrow: K1
1437
1439
  };
1438
1440
  function De() {
1439
- const e = g("duration"), t = L(), o = v();
1441
+ const e = b("duration"), t = y(), o = v();
1440
1442
  return e > 0 && t.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ n("div", { className: m.commentMarkers, children: t.comments.map((i) => /* @__PURE__ */ n(
1441
1443
  "span",
1442
1444
  {
@@ -1449,13 +1451,13 @@ function De() {
1449
1451
  )) }) : null;
1450
1452
  }
1451
1453
  const z1 = ft(function({ currentTime: t, position: o }, i) {
1452
- const [s, a] = k(!1), [l, c] = k(null), u = L(), d = v(), _ = f(() => {
1454
+ const [s, a] = k(!1), [r, c] = k(null), u = y(), d = v(), _ = p(() => {
1453
1455
  u.interactiveMenuElements.length > 0 ? (a((j) => !j), d.setGlobalKeysDisabled(!0)) : u.onInteractivePinClick(t);
1454
1456
  }, [
1455
1457
  u.interactiveMenuElements,
1456
1458
  u.onInteractivePinClick,
1457
1459
  t
1458
- ]), b = z(null), { refs: w, floatingStyles: y, context: x } = me({
1460
+ ]), C = z(null), { refs: w, floatingStyles: M, context: L } = me({
1459
1461
  open: s,
1460
1462
  onOpenChange: _,
1461
1463
  whileElementsMounted: he,
@@ -1464,33 +1466,34 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
1464
1466
  ke(),
1465
1467
  Le(6),
1466
1468
  xe({
1467
- element: b
1469
+ element: C
1468
1470
  })
1469
1471
  ]
1470
- }), p = z([]), C = Me(x), H = ze(x, {
1471
- listRef: p,
1472
- activeIndex: l,
1472
+ }), I = z([]), h = Me(L), g = ze(L, {
1473
+ listRef: I,
1474
+ activeIndex: r,
1473
1475
  onNavigate: c,
1474
1476
  loop: !0,
1475
1477
  openOnArrowKeyDown: !1
1476
- }), { getReferenceProps: E, getFloatingProps: P, getItemProps: I } = Pe(
1477
- [C, H]
1478
- ), B = $e([w.setReference, i]), { t: V } = h(), O = be(t);
1479
- return /* @__PURE__ */ r(X, { children: [
1478
+ }), { getReferenceProps: S, getFloatingProps: P, getItemProps: E } = Pe(
1479
+ [h, g]
1480
+ ), O = $e([w.setReference, i]), { t: R } = f(), B = be(t);
1481
+ return /* @__PURE__ */ l(X, { children: [
1480
1482
  /* @__PURE__ */ n(
1481
1483
  "button",
1482
1484
  {
1483
1485
  id: "interactive-pin",
1486
+ tabIndex: d.state.interactionsDisabled ? -1 : 0,
1484
1487
  type: "button",
1485
- "aria-label": u.interactiveMenuElements.length > 0 ? V("ADD_QUIZ_AT", { time: O }) : V("ADD_ANNOTATION_AT", { time: O }),
1488
+ "aria-label": u.interactiveMenuElements.length > 0 ? R("ADD_QUIZ_AT", { time: B }) : R("ADD_ANNOTATION_AT", { time: B }),
1486
1489
  "aria-haspopup": u.interactiveMenuElements.length > 0 ? "true" : void 0,
1487
1490
  className: m.interactivePinButton,
1488
- ref: B,
1491
+ ref: O,
1489
1492
  style: { left: `${o}%` },
1490
- ...E({
1493
+ ...S({
1491
1494
  onClick: _
1492
1495
  }),
1493
- children: /* @__PURE__ */ r(
1496
+ children: /* @__PURE__ */ l(
1494
1497
  "svg",
1495
1498
  {
1496
1499
  className: m.interactivePin,
@@ -1530,26 +1533,26 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
1530
1533
  )
1531
1534
  }
1532
1535
  ),
1533
- s && /* @__PURE__ */ n(Ne, { context: x, initialFocus: -1, modal: !0, children: /* @__PURE__ */ r(
1536
+ s && /* @__PURE__ */ n(Ne, { context: L, initialFocus: -1, modal: !0, children: /* @__PURE__ */ l(
1534
1537
  "div",
1535
1538
  {
1536
1539
  ref: w.setFloating,
1537
- style: y,
1540
+ style: M,
1538
1541
  className: m.interactivePinMenu,
1539
1542
  "aria-labelledby": "interactive-pin",
1540
1543
  ...P(),
1541
1544
  children: [
1542
1545
  u.interactiveMenuElements.map(
1543
- ({ id: j, text: fe, onClick: _e }, ee) => /* @__PURE__ */ r(
1546
+ ({ id: j, text: fe, onClick: _e }, ee) => /* @__PURE__ */ l(
1544
1547
  "button",
1545
1548
  {
1546
1549
  type: "button",
1547
1550
  className: m.interactivePinMenuItem,
1548
1551
  ref: (ne) => {
1549
- p.current[ee] = ne;
1552
+ I.current[ee] = ne;
1550
1553
  },
1551
- tabIndex: l === ee ? 0 : -1,
1552
- ...I({
1554
+ tabIndex: r === ee ? 0 : -1,
1555
+ ...E({
1553
1556
  onClick: () => {
1554
1557
  _e(j, t), a(!1), d.setGlobalKeysDisabled(!1);
1555
1558
  }
@@ -1583,8 +1586,8 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
1583
1586
  /* @__PURE__ */ n(
1584
1587
  Ie,
1585
1588
  {
1586
- ref: b,
1587
- context: x,
1589
+ ref: C,
1590
+ context: L,
1588
1591
  className: m.arrow
1589
1592
  }
1590
1593
  )
@@ -1604,7 +1607,7 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
1604
1607
  t.current = !1;
1605
1608
  }
1606
1609
  }), []);
1607
- return Ee(o), { focusCallback: f((s) => {
1610
+ return Ee(o), { focusCallback: p((s) => {
1608
1611
  s && (s.addEventListener("focus", () => {
1609
1612
  e.current = !0;
1610
1613
  }), s.addEventListener("blur", () => {
@@ -1614,20 +1617,20 @@ const z1 = ft(function({ currentTime: t, position: o }, i) {
1614
1617
  };
1615
1618
  function U1() {
1616
1619
  var c;
1617
- const e = g("duration"), t = g("currentTime"), o = t / e * 100, { disableInteractivePinRanges: i } = L(), s = !i.some(
1620
+ const e = b("duration"), t = b("currentTime"), o = t / e * 100, { disableInteractivePinRanges: i } = y(), s = !i.some(
1618
1621
  ([u, d]) => t >= u && t <= d
1619
- ), { wasPinFocused: a, focusCallback: l } = $1();
1622
+ ), { wasPinFocused: a, focusCallback: r } = $1();
1620
1623
  return s ? /* @__PURE__ */ n("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ n("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ n(
1621
1624
  z1,
1622
1625
  {
1623
- ref: l,
1626
+ ref: r,
1624
1627
  currentTime: t,
1625
1628
  position: o
1626
1629
  }
1627
1630
  ) }) }) : (a && ((c = document.querySelector("[data-media-time-slider]")) == null || c.focus()), null);
1628
1631
  }
1629
1632
  function q1() {
1630
- const e = g("paused"), t = v();
1633
+ const e = b("paused"), t = v();
1631
1634
  return e && !t.state.interactionsDisabled ? /* @__PURE__ */ n(U1, {}) : null;
1632
1635
  }
1633
1636
  const G1 = {
@@ -1636,16 +1639,16 @@ const G1 = {
1636
1639
  }, Q1 = (e, t, o, i = !1) => t === "annotation" ? e("OPEN_ANNOTATION_AT", { time: be(o) }) : t === "quiz" ? e(i ? "OPEN_COMPLETED_QUIZ_AT" : "OPEN_QUIZ_AT", {
1637
1640
  time: be(o)
1638
1641
  }) : "";
1639
- function rt({
1642
+ function lt({
1640
1643
  type: e,
1641
1644
  position: t,
1642
1645
  children: o,
1643
1646
  onClick: i,
1644
1647
  id: s,
1645
1648
  time: a,
1646
- completed: l
1649
+ completed: r
1647
1650
  }) {
1648
- const c = v(), { t: u } = h();
1651
+ const c = v(), { t: u } = f();
1649
1652
  return /* @__PURE__ */ n(
1650
1653
  "button",
1651
1654
  {
@@ -1655,8 +1658,8 @@ function rt({
1655
1658
  style: { left: `${t}%` },
1656
1659
  onClick: i,
1657
1660
  "data-marker-id": s,
1658
- "aria-label": Q1(u, e, a, l),
1659
- children: /* @__PURE__ */ r(
1661
+ "aria-label": Q1(u, e, a, r),
1662
+ children: /* @__PURE__ */ l(
1660
1663
  "svg",
1661
1664
  {
1662
1665
  className: G1[e],
@@ -1674,7 +1677,7 @@ function rt({
1674
1677
  );
1675
1678
  }
1676
1679
  function W1(e) {
1677
- return /* @__PURE__ */ n(rt, { type: "annotation", ...e, children: /* @__PURE__ */ n(
1680
+ return /* @__PURE__ */ n(lt, { type: "annotation", ...e, children: /* @__PURE__ */ n(
1678
1681
  "path",
1679
1682
  {
1680
1683
  className: m.annotationPinChild,
@@ -1710,7 +1713,7 @@ function Y1(e) {
1710
1713
  children: e.ordinal
1711
1714
  }
1712
1715
  );
1713
- return /* @__PURE__ */ n(rt, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ n("circle", { className: m.quizPinChild, cx: "13", cy: "13", r: "6" }) : t });
1716
+ return /* @__PURE__ */ n(lt, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ n("circle", { className: m.quizPinChild, cx: "13", cy: "13", r: "6" }) : t });
1714
1717
  }
1715
1718
  function X1(e, t) {
1716
1719
  return e.map((o, i) => ({
@@ -1725,15 +1728,15 @@ function J1(e, t) {
1725
1728
  const o = /* @__PURE__ */ new Map();
1726
1729
  e.forEach((a) => {
1727
1730
  var c;
1728
- const l = a.time;
1729
- o.has(l) || o.set(l, []), (c = o.get(l)) == null || c.push(a);
1731
+ const r = a.time;
1732
+ o.has(r) || o.set(r, []), (c = o.get(r)) == null || c.push(a);
1730
1733
  });
1731
1734
  const i = [];
1732
1735
  let s = 0;
1733
- return o.forEach((a, l) => {
1736
+ return o.forEach((a, r) => {
1734
1737
  i.push({
1735
1738
  id: a.map((c) => c.id).join("-"),
1736
- time: l,
1739
+ time: r,
1737
1740
  type: "quiz",
1738
1741
  ordinal: s + 1,
1739
1742
  onClick: () => t(a),
@@ -1776,13 +1779,13 @@ function ei(e, t, o, i) {
1776
1779
  }
1777
1780
  }
1778
1781
  function ti() {
1779
- const e = de(), t = g("duration"), o = L(), i = D(() => [
1782
+ const e = de(), t = b("duration"), o = y(), i = D(() => [
1780
1783
  ...X1(
1781
1784
  o.annotations,
1782
1785
  o.onAnnotationClick
1783
1786
  ),
1784
1787
  ...J1(o.quizMarkers, o.onQuizMarkerClick)
1785
- ].sort((a, l) => a.time - l.time).map((a) => ei(a, t, e, o.interactive)), [o.annotations, o.quizMarkers, t, e]);
1788
+ ].sort((a, r) => a.time - r.time).map((a) => ei(a, t, e, o.interactive)), [o.annotations, o.quizMarkers, t, e]);
1786
1789
  return /* @__PURE__ */ n("div", { className: m.pins, children: i });
1787
1790
  }
1788
1791
  const ni = {
@@ -1794,10 +1797,10 @@ function Ze({
1794
1797
  interactionsDisabled: t,
1795
1798
  children: o
1796
1799
  }) {
1797
- const [i, s] = k(!1), a = f(() => s(!0), []), l = f(() => s(!1), []), c = z(null), { refs: u, floatingStyles: d, context: _ } = me({
1800
+ const [i, s] = k(!1), a = p(() => s(!0), []), r = p(() => s(!1), []), c = z(null), { refs: u, floatingStyles: d, context: _ } = me({
1798
1801
  open: i,
1799
1802
  onOpenChange: s,
1800
- whileElementsMounted: (b, w, y) => he(b, w, y, {
1803
+ whileElementsMounted: (C, w, M) => he(C, w, M, {
1801
1804
  animationFrame: !0
1802
1805
  }),
1803
1806
  placement: "top",
@@ -1809,17 +1812,17 @@ function Ze({
1809
1812
  })
1810
1813
  ]
1811
1814
  });
1812
- return /* @__PURE__ */ r("div", { className: ni[e], children: [
1815
+ return /* @__PURE__ */ l("div", { className: ni[e], children: [
1813
1816
  o,
1814
- /* @__PURE__ */ r(
1817
+ /* @__PURE__ */ l(
1815
1818
  G.Root,
1816
1819
  {
1817
1820
  tabIndex: t ? -1 : 0,
1818
1821
  className: m.root,
1819
1822
  onDragStart: a,
1820
- onDragEnd: l,
1823
+ onDragEnd: r,
1821
1824
  children: [
1822
- /* @__PURE__ */ r(G.Track, { className: m.track, children: [
1825
+ /* @__PURE__ */ l(G.Track, { className: m.track, children: [
1823
1826
  /* @__PURE__ */ n(
1824
1827
  G.Progress,
1825
1828
  {
@@ -1834,7 +1837,7 @@ function Ze({
1834
1837
  )
1835
1838
  ] }),
1836
1839
  /* @__PURE__ */ n(G.Thumb, { className: m.thumb, ref: u.setReference }),
1837
- i ? /* @__PURE__ */ r(
1840
+ i ? /* @__PURE__ */ l(
1838
1841
  "div",
1839
1842
  {
1840
1843
  role: "tooltip",
@@ -1861,17 +1864,17 @@ function Ze({
1861
1864
  )
1862
1865
  ] });
1863
1866
  }
1864
- const oi = "_wrapper_1ijfr_1", ii = "_track_1ijfr_6", si = "_thumb_1ijfr_16", ai = "_track-fill_1ijfr_30", li = "_root_1ijfr_49", te = {
1867
+ const oi = "_wrapper_1ijfr_1", ii = "_track_1ijfr_6", si = "_thumb_1ijfr_16", ai = "_track-fill_1ijfr_30", ri = "_root_1ijfr_49", te = {
1865
1868
  wrapper: oi,
1866
1869
  track: ii,
1867
1870
  thumb: si,
1868
1871
  "track-fill": "_track-fill_1ijfr_30",
1869
1872
  trackFill: ai,
1870
- root: li
1873
+ root: ri
1871
1874
  };
1872
- function ri() {
1873
- const e = S(), t = g("volume"), o = g("muted"), i = v(), s = o || t === 0, { t: a } = h();
1874
- return /* @__PURE__ */ r("div", { className: te.wrapper, children: [
1875
+ function li() {
1876
+ const e = V(), t = b("volume"), o = b("muted"), i = v(), s = o || t === 0, { t: a } = f();
1877
+ return /* @__PURE__ */ l("div", { className: te.wrapper, children: [
1875
1878
  /* @__PURE__ */ n(
1876
1879
  "button",
1877
1880
  {
@@ -1886,7 +1889,7 @@ function ri() {
1886
1889
  children: s ? /* @__PURE__ */ n(it, { className: "controls-button-icon" }) : t < 0.5 ? /* @__PURE__ */ n(st, { className: "controls-button-icon" }) : /* @__PURE__ */ n(at, { className: "controls-button-icon" })
1887
1890
  }
1888
1891
  ),
1889
- /* @__PURE__ */ r(
1892
+ /* @__PURE__ */ l(
1890
1893
  se.Root,
1891
1894
  {
1892
1895
  className: te.root,
@@ -1899,7 +1902,7 @@ function ri() {
1899
1902
  )
1900
1903
  ] });
1901
1904
  }
1902
- function M(e, t) {
1905
+ function x(e, t) {
1903
1906
  e.dispatchEvent(
1904
1907
  new CustomEvent("keyboardAction", {
1905
1908
  detail: t
@@ -1911,44 +1914,44 @@ const je = {
1911
1914
  keys: ["Space", "Enter", "k"],
1912
1915
  onKeyDown({ player: e, remote: t, event: o }) {
1913
1916
  var i;
1914
- (i = document.activeElement) != null && i.hasAttribute("data-media-player") && (t.togglePaused(o), M(e, "togglePaused"));
1917
+ (i = document.activeElement) != null && i.hasAttribute("data-media-player") && (o.preventDefault(), t.togglePaused(o), x(e, "togglePaused"));
1915
1918
  }
1916
1919
  },
1917
1920
  seekForward: {
1918
1921
  keys: ["ArrowRight"],
1919
1922
  onKeyDown({ player: e, remote: t, event: o }) {
1920
- t.seek(e.currentTime + 5, o), M(e, "seekForward");
1923
+ t.seek(e.currentTime + 5, o), x(e, "seekForward");
1921
1924
  }
1922
1925
  },
1923
1926
  seekBackward: {
1924
1927
  keys: ["ArrowLeft"],
1925
1928
  onKeyDown({ player: e, remote: t, event: o }) {
1926
- t.seek(e.currentTime - 5, o), M(e, "seekBackward");
1929
+ t.seek(e.currentTime - 5, o), x(e, "seekBackward");
1927
1930
  }
1928
1931
  },
1929
1932
  volumeUp: {
1930
1933
  keys: ["ArrowUp"],
1931
1934
  onKeyDown({ player: e, remote: t, event: o }) {
1932
- t.changeVolume(e.volume + 0.05, o), M(e, "volumeChange");
1935
+ t.changeVolume(e.volume + 0.05, o), x(e, "volumeChange");
1933
1936
  }
1934
1937
  },
1935
1938
  volumeDown: {
1936
1939
  keys: ["ArrowDown"],
1937
1940
  onKeyDown({ player: e, remote: t, event: o }) {
1938
- t.changeVolume(e.volume - 0.05, o), M(e, "volumeChange");
1941
+ t.changeVolume(e.volume - 0.05, o), x(e, "volumeChange");
1939
1942
  }
1940
1943
  },
1941
1944
  toggleFullscreen: ["f"],
1942
1945
  toggleMuted: {
1943
1946
  keys: ["m"],
1944
1947
  onKeyDown({ player: e, remote: t, event: o }) {
1945
- t.toggleMuted(o), M(e, "volumeChange");
1948
+ t.toggleMuted(o), x(e, "volumeChange");
1946
1949
  }
1947
1950
  },
1948
1951
  toggleCaptions: {
1949
1952
  keys: ["c"],
1950
1953
  onKeyDown({ player: e, remote: t, event: o }) {
1951
- t.toggleCaptions(o), M(e, "captionsChange");
1954
+ t.toggleCaptions(o), x(e, "captionsChange");
1952
1955
  }
1953
1956
  },
1954
1957
  nextCaptionLanguage: {
@@ -1959,7 +1962,7 @@ const je = {
1959
1962
  s >= t.textTracks.length ? 0 : s,
1960
1963
  "showing",
1961
1964
  e
1962
- ), M(t, "captionsChange");
1965
+ ), x(t, "captionsChange");
1963
1966
  }
1964
1967
  },
1965
1968
  previousCaptionLanguage: {
@@ -1970,39 +1973,39 @@ const je = {
1970
1973
  s < 0 ? t.textTracks.length - 1 : s,
1971
1974
  "showing",
1972
1975
  e
1973
- ), M(t, "captionsChange");
1976
+ ), x(t, "captionsChange");
1974
1977
  }
1975
1978
  },
1976
1979
  decreasePlaybackRate: {
1977
1980
  keys: ["a"],
1978
1981
  onKeyDown({ event: e, player: t, remote: o }) {
1979
1982
  const s = Y.indexOf(t.playbackRate) - 1;
1980
- s >= 0 && (o.changePlaybackRate(Y[s], e), M(t, "playbackRateChange"));
1983
+ s >= 0 && (o.changePlaybackRate(Y[s], e), x(t, "playbackRateChange"));
1981
1984
  }
1982
1985
  },
1983
1986
  increasePlaybackRate: {
1984
1987
  keys: ["d"],
1985
1988
  onKeyDown({ event: e, player: t, remote: o }) {
1986
1989
  const s = Y.indexOf(t.playbackRate) + 1;
1987
- s < Y.length && (o.changePlaybackRate(Y[s], e), M(t, "playbackRateChange"));
1990
+ s < Y.length && (o.changePlaybackRate(Y[s], e), x(t, "playbackRateChange"));
1988
1991
  }
1989
1992
  },
1990
1993
  resetPlaybackRate: {
1991
1994
  keys: ["s"],
1992
1995
  onKeyDown({ event: e, player: t, remote: o }) {
1993
- o.changePlaybackRate(1, e), M(t, "playbackRateChange");
1996
+ o.changePlaybackRate(1, e), x(t, "playbackRateChange");
1994
1997
  }
1995
1998
  },
1996
1999
  seekForward10Seconds: {
1997
2000
  keys: ["l"],
1998
2001
  onKeyDown({ event: e, player: t, remote: o }) {
1999
- o.seek(t.currentTime + 10, e), M(t, "seekForward10");
2002
+ o.seek(t.currentTime + 10, e), x(t, "seekForward10");
2000
2003
  }
2001
2004
  },
2002
2005
  seekBackward10Seconds: {
2003
2006
  keys: ["j"],
2004
2007
  onKeyDown({ event: e, player: t, remote: o }) {
2005
- o.seek(t.currentTime - 10, e), M(t, "seekBackward10");
2008
+ o.seek(t.currentTime - 10, e), x(t, "seekBackward10");
2006
2009
  }
2007
2010
  }
2008
2011
  };
@@ -2036,19 +2039,19 @@ const Ke = {
2036
2039
  };
2037
2040
  class mi {
2038
2041
  constructor() {
2039
- R(this, "playerId", "studio-player");
2040
- R(this, "mediaId", null);
2041
- R(this, "data", Ke);
2042
- R(this, "time", null);
2043
- R(this, "overrideTime", null);
2044
- R(this, "saveTime", () => {
2042
+ H(this, "playerId", "studio-player");
2043
+ H(this, "mediaId", null);
2044
+ H(this, "data", Ke);
2045
+ H(this, "time", null);
2046
+ H(this, "overrideTime", null);
2047
+ H(this, "saveTime", () => {
2045
2048
  if (!this.mediaId) return;
2046
2049
  const t = (this.time ?? 0).toString();
2047
2050
  localStorage.setItem(this.mediaId, t);
2048
2051
  });
2049
- R(this, "saveTimeThrottled", di(this.saveTime, 1e3));
2052
+ H(this, "saveTimeThrottled", di(this.saveTime, 1e3));
2050
2053
  // only used for useStudioPlayer hook's state initialization
2051
- R(this, "initializeState", (t) => {
2054
+ H(this, "initializeState", (t) => {
2052
2055
  const o = localStorage.getItem(this.playerId);
2053
2056
  if (ve(t) && t >= 0 && (this.overrideTime = t), o)
2054
2057
  try {
@@ -2062,10 +2065,11 @@ class mi {
2062
2065
  commentsEnabled: this.data.comments,
2063
2066
  interactionsDisabled: !1,
2064
2067
  globalKeysDisabled: !1,
2065
- disableCaptionSettings: !1
2068
+ disableCaptionSettings: !1,
2069
+ isKeyboardShortcutsOpen: !1
2066
2070
  };
2067
2071
  });
2068
- R(this, "saveData", (t, o) => {
2072
+ H(this, "saveData", (t, o) => {
2069
2073
  this.data = {
2070
2074
  ...this.data,
2071
2075
  [t]: o
@@ -2118,15 +2122,15 @@ class mi {
2118
2122
  onChange(t, o, i = "studio-player") {
2119
2123
  const s = i ? localStorage.getItem(i) : null, a = o ? localStorage.getItem(o) : null;
2120
2124
  this.playerId = i, this.mediaId = o;
2121
- let l = {};
2125
+ let r = {};
2122
2126
  if (s)
2123
2127
  try {
2124
- l = JSON.parse(s);
2128
+ r = JSON.parse(s);
2125
2129
  } catch {
2126
2130
  }
2127
2131
  this.data = {
2128
2132
  ...Ke,
2129
- ...l
2133
+ ...r
2130
2134
  }, ve(this.overrideTime) && this.overrideTime >= 0 ? this.time = this.overrideTime : this.time = a ? +a : null;
2131
2135
  }
2132
2136
  save() {
@@ -2136,56 +2140,61 @@ class mi {
2136
2140
  }
2137
2141
  }
2138
2142
  function hi(e, t, o, i) {
2139
- const s = D(() => new mi(), []), [a, l] = k(
2143
+ const s = D(() => new mi(), []), [a, r] = k(
2140
2144
  s.initializeState(i)
2141
- ), c = f(
2142
- (p) => {
2143
- l((C) => (s.saveData("multiplier", p), {
2144
- ...C,
2145
- captionsFontSizeMultiplier: p
2145
+ ), c = p(
2146
+ (h) => {
2147
+ r((g) => (s.saveData("multiplier", h), {
2148
+ ...g,
2149
+ captionsFontSizeMultiplier: h
2146
2150
  }));
2147
2151
  },
2148
2152
  [s]
2149
- ), u = f(() => {
2150
- l((p) => {
2151
- const C = !p.captionPositionOnTop;
2152
- return s.saveData("ontop", C), {
2153
- ...p,
2154
- captionPositionOnTop: C
2153
+ ), u = p(() => {
2154
+ r((h) => {
2155
+ const g = !h.captionPositionOnTop;
2156
+ return s.saveData("ontop", g), {
2157
+ ...h,
2158
+ captionPositionOnTop: g
2155
2159
  };
2156
2160
  });
2157
- }, [s]), d = f(() => {
2158
- l((p) => {
2159
- const C = !p.captionsInvertColors;
2160
- return s.saveData("invert", C), {
2161
- ...p,
2162
- captionsInvertColors: C
2161
+ }, [s]), d = p(() => {
2162
+ r((h) => {
2163
+ const g = !h.captionsInvertColors;
2164
+ return s.saveData("invert", g), {
2165
+ ...h,
2166
+ captionsInvertColors: g
2163
2167
  };
2164
2168
  });
2165
- }, [s]), _ = f(() => {
2166
- l((p) => {
2167
- const C = !p.commentsEnabled;
2168
- return s.saveData("comments", C), {
2169
- ...p,
2170
- commentsEnabled: C
2169
+ }, [s]), _ = p(() => {
2170
+ r((h) => {
2171
+ const g = !h.commentsEnabled;
2172
+ return s.saveData("comments", g), {
2173
+ ...h,
2174
+ commentsEnabled: g
2171
2175
  };
2172
2176
  });
2173
- }, [s]), b = f(() => {
2174
- l((p) => ({
2175
- ...p,
2177
+ }, [s]), C = p(() => {
2178
+ r((h) => ({
2179
+ ...h,
2176
2180
  interactionsDisabled: !1
2177
2181
  }));
2178
- }, []), w = f(() => {
2179
- l((p) => ({
2180
- ...p,
2182
+ }, []), w = p(() => {
2183
+ r((h) => ({
2184
+ ...h,
2181
2185
  interactionsDisabled: !0
2182
2186
  }));
2183
- }, []), y = f((p) => {
2184
- l((C) => ({
2185
- ...C,
2186
- globalKeysDisabled: p
2187
+ }, []), M = p((h) => {
2188
+ r((g) => ({
2189
+ ...g,
2190
+ globalKeysDisabled: h
2191
+ }));
2192
+ }, []), L = p((h) => {
2193
+ r((g) => ({
2194
+ ...g,
2195
+ isKeyboardShortcutsOpen: h
2187
2196
  }));
2188
- }, []), x = D(() => e ? {
2197
+ }, []), I = D(() => e ? {
2189
2198
  ...je,
2190
2199
  toggleFullscreen: []
2191
2200
  } : je, [e]);
@@ -2198,18 +2207,19 @@ function hi(e, t, o, i) {
2198
2207
  setCaptionsFontSizeMultiplier: c,
2199
2208
  toggleCaptionPositionOnTop: u,
2200
2209
  toggleCaptionsInvertColors: d,
2201
- enableInteractions: b,
2210
+ enableInteractions: C,
2202
2211
  disableInteractions: w,
2203
- setGlobalKeysDisabled: y,
2212
+ setGlobalKeysDisabled: M,
2204
2213
  toggleComments: _,
2205
- disableCaptionSettings: o
2214
+ disableCaptionSettings: o,
2215
+ setKeyboardShortcutsOpen: L
2206
2216
  },
2207
- shortcuts: x,
2217
+ shortcuts: I,
2208
2218
  storage: s
2209
2219
  };
2210
2220
  }
2211
- const pi = (e) => /* @__PURE__ */ n("svg", { width: 56, height: 72, viewBox: "0 0 28 36", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("g", { id: "Icons", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ r("g", { id: "audio", children: [
2212
- /* @__PURE__ */ r("g", { id: "icon-file-base-2", children: [
2221
+ const pi = (e) => /* @__PURE__ */ n("svg", { width: 56, height: 72, viewBox: "0 0 28 36", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("g", { id: "Icons", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ l("g", { id: "audio", children: [
2222
+ /* @__PURE__ */ l("g", { id: "icon-file-base-2", children: [
2213
2223
  /* @__PURE__ */ n("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z", fill: "#FFFFFF" }),
2214
2224
  /* @__PURE__ */ n("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z M1.993,35 C1.445,35 1,34.552 1,34 L1,2 C1,1.448 1.445,1 1.993,1 L16.5,1 L16.5,9 C16.5,10.379 17.621,11.5 18.999,11.5 L27,11.5 L27,34 C27,34.552 26.554,35 26.006,35 L1.993,35 Z M27,10.5 L18.999,10.5 C18.173,10.5 17.5,9.827 17.5,9 L17.5,1 L17.585,1 L27,10.414 L27,10.5 L27,10.5 Z", id: "icon-file-base", fill: "#FFFFFF" }),
2215
2225
  /* @__PURE__ */ n("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z M1.993,35 C1.445,35 1,34.552 1,34 L1,2 C1,1.448 1.445,1 1.993,1 L16.5,1 L16.5,9 C16.5,10.379 17.621,11.5 18.999,11.5 L27,11.5 L27,34 C27,34.552 26.554,35 26.006,35 L1.993,35 Z M27,10.5 L18.999,10.5 C18.173,10.5 17.5,9.827 17.5,9 L17.5,1 L17.585,1 L27,10.414 L27,10.5 L27,10.5 Z", fill: "#384A58" })
@@ -2217,17 +2227,17 @@ const pi = (e) => /* @__PURE__ */ n("svg", { width: 56, height: 72, viewBox: "0
2217
2227
  /* @__PURE__ */ n("path", { d: "M14.7142857,14.2824 L14.7142857,13 L13.2857143,13.2548 L13.2857143,23.0912 C12.8642857,22.9106 12.3785714,22.8 11.8571429,22.8 C10.2771429,22.8 9,23.7408 9,24.9 C9,26.0592 10.2771429,27 11.8571429,27 C12.3785714,27 12.8642857,26.8894 13.2857143,26.7088 C14.1371429,26.3448 14.7142857,25.6756 14.7142857,24.9 L14.7142857,17.0824 C17.5714286,17.0824 19,20 19,21.4 C19,15.8 16.1428571,14.2824 14.7142857,14.2824", id: "Fill-776", fill: "#384A58" })
2218
2228
  ] }) }) });
2219
2229
  function fi() {
2220
- const e = L();
2221
- return /* @__PURE__ */ r("div", { className: "audio-layout-wrapper", children: [
2230
+ const e = y();
2231
+ return /* @__PURE__ */ l("div", { className: "audio-layout-wrapper", children: [
2222
2232
  /* @__PURE__ */ n(pi, {}),
2223
- /* @__PURE__ */ n(lt, {}),
2233
+ /* @__PURE__ */ n(rt, {}),
2224
2234
  /* @__PURE__ */ n(Ge, {}),
2225
2235
  /* @__PURE__ */ n(Je, { captions: e.captions })
2226
2236
  ] });
2227
2237
  }
2228
2238
  function _i() {
2229
- const e = L(), t = e.kebabMenuElements.length > 0;
2230
- return /* @__PURE__ */ r(X, { children: [
2239
+ const e = y(), t = e.kebabMenuElements.length > 0;
2240
+ return /* @__PURE__ */ l(X, { children: [
2231
2241
  /* @__PURE__ */ n(
2232
2242
  i1,
2233
2243
  {
@@ -2235,13 +2245,13 @@ function _i() {
2235
2245
  title: e.title
2236
2246
  }
2237
2247
  ),
2238
- /* @__PURE__ */ n(lt, {}),
2248
+ /* @__PURE__ */ n(rt, {}),
2239
2249
  /* @__PURE__ */ n(Ge, {}),
2240
2250
  /* @__PURE__ */ n(Je, { captions: e.captions }),
2241
2251
  /* @__PURE__ */ n(m1, {}),
2242
2252
  /* @__PURE__ */ n(Qo, {}),
2243
2253
  /* @__PURE__ */ n(
2244
- Sn,
2254
+ An,
2245
2255
  {
2246
2256
  comments: e.comments,
2247
2257
  isKebabMenuVisible: t
@@ -2260,7 +2270,7 @@ const Ci = "_root_5cfhx_1", gi = "_normal_5cfhx_14", bi = "_compact_5cfhx_21", v
2260
2270
  indicators: yi
2261
2271
  };
2262
2272
  function ki() {
2263
- const e = S(), t = L();
2273
+ const e = V(), t = y();
2264
2274
  Z(() => {
2265
2275
  const o = () => {
2266
2276
  const i = t.startAt;
@@ -2277,10 +2287,10 @@ function Li({
2277
2287
  controlsLayout: o,
2278
2288
  showCaptionsButton: i
2279
2289
  }) {
2280
- const s = S(), a = v(), { hasAnnotations: l, hasQuizmarkers: c, interactive: u } = L();
2290
+ const s = V(), a = v(), { hasAnnotations: r, hasQuizmarkers: c, interactive: u } = y();
2281
2291
  return ki(), Z(() => {
2282
2292
  s && (s.remoteControl.pauseControls(), t && (typeof t == "function" ? t(s) : t.current = s));
2283
- }, [s, t]), /* @__PURE__ */ r(
2293
+ }, [s, t]), /* @__PURE__ */ l(
2284
2294
  "div",
2285
2295
  {
2286
2296
  "data-darkmode": e,
@@ -2289,21 +2299,21 @@ function Li({
2289
2299
  [W.compact]: o === "compact"
2290
2300
  }),
2291
2301
  children: [
2292
- o === "normal" ? /* @__PURE__ */ r(
2302
+ o === "normal" ? /* @__PURE__ */ l(
2293
2303
  Ze,
2294
2304
  {
2295
2305
  layout: "normal",
2296
2306
  interactionsDisabled: a.state.interactionsDisabled,
2297
2307
  children: [
2298
- u || l || c ? /* @__PURE__ */ n(ti, {}) : null,
2308
+ u || r || c ? /* @__PURE__ */ n(ti, {}) : null,
2299
2309
  u ? /* @__PURE__ */ n(q1, {}) : null,
2300
2310
  /* @__PURE__ */ n(De, {})
2301
2311
  ]
2302
2312
  }
2303
2313
  ) : null,
2304
- /* @__PURE__ */ r("div", { className: W.leftControls, children: [
2314
+ /* @__PURE__ */ l("div", { className: W.leftControls, children: [
2305
2315
  /* @__PURE__ */ n(t1, {}),
2306
- /* @__PURE__ */ n(ri, {})
2316
+ /* @__PURE__ */ n(li, {})
2307
2317
  ] }),
2308
2318
  /* @__PURE__ */ n("div", { className: W.indicators, children: /* @__PURE__ */ n(f1, {}) }),
2309
2319
  o === "compact" ? /* @__PURE__ */ n(
@@ -2314,9 +2324,9 @@ function Li({
2314
2324
  children: /* @__PURE__ */ n(De, {})
2315
2325
  }
2316
2326
  ) : null,
2317
- /* @__PURE__ */ r("div", { className: W.rightControls, children: [
2327
+ /* @__PURE__ */ l("div", { className: W.rightControls, children: [
2318
2328
  i && /* @__PURE__ */ n(fn, {}),
2319
- /* @__PURE__ */ n(To, {}),
2329
+ /* @__PURE__ */ n(So, {}),
2320
2330
  /* @__PURE__ */ n(Uo, {})
2321
2331
  ] })
2322
2332
  ]
@@ -2328,24 +2338,24 @@ function xi(e, t) {
2328
2338
  }
2329
2339
  function Mi(e, t, o, i, s) {
2330
2340
  return (a) => {
2331
- const l = a.detail.currentTime, c = !o.paused, u = Math.min(o.duration * 0.05, 2);
2332
- l >= e.time && l < e.time + u && !i[e.id] && (s({ ...i, [e.id]: !0 }), t(e, c));
2341
+ const r = a.detail.currentTime, c = !o.paused, u = Math.min(o.duration * 0.05, 2);
2342
+ r >= e.time && r < e.time + u && !i[e.id] && (s({ ...i, [e.id]: !0 }), t(e, c));
2333
2343
  };
2334
2344
  }
2335
2345
  function Pi() {
2336
- const e = S(), { quizMarkers: t, onQuizMarkerShow: o } = L(), [i, s] = k(
2337
- t.reduce((a, l) => (a[l.id] = !1, a), {})
2346
+ const e = V(), { quizMarkers: t, onQuizMarkerShow: o } = y(), [i, s] = k(
2347
+ t.reduce((a, r) => (a[r.id] = !1, a), {})
2338
2348
  );
2339
2349
  Z(() => {
2340
2350
  if (!e)
2341
2351
  return;
2342
2352
  t.length > Object.keys(i).length && s(xi(t, i));
2343
- const a = [], l = (c) => {
2353
+ const a = [], r = (c) => {
2344
2354
  var _;
2345
- const u = (_ = c == null ? void 0 : c.request) == null ? void 0 : _.detail, d = t.reduce((b, w) => (b[w.id] = w.time <= u, b), {});
2355
+ const u = (_ = c == null ? void 0 : c.request) == null ? void 0 : _.detail, d = t.reduce((C, w) => (C[w.id] = w.time <= u, C), {});
2346
2356
  s({ ...i, ...d });
2347
2357
  };
2348
- e.addEventListener("seeked", l);
2358
+ e.addEventListener("seeked", r);
2349
2359
  for (const c of t) {
2350
2360
  const u = Mi(
2351
2361
  c,
@@ -2359,40 +2369,40 @@ function Pi() {
2359
2369
  return () => {
2360
2370
  for (const c of a)
2361
2371
  e.removeEventListener("time-update", c);
2362
- e.removeEventListener("seeked", l);
2372
+ e.removeEventListener("seeked", r);
2363
2373
  };
2364
2374
  }, [t, e, i]);
2365
2375
  }
2366
2376
  function Ni() {
2367
2377
  return Pi(), null;
2368
2378
  }
2369
- const Ii = {}, re = () => {
2379
+ const Ii = {}, le = () => {
2370
2380
  };
2371
- function Oi({
2381
+ function Bi({
2372
2382
  title: e,
2373
2383
  playerRef: t,
2374
2384
  src: o,
2375
2385
  captions: i = [],
2376
2386
  thumbnail: s,
2377
2387
  hideFullScreen: a = !1,
2378
- comments: l = [],
2388
+ comments: r = [],
2379
2389
  locale: c = "en",
2380
2390
  annotations: u = [],
2381
2391
  quizMarkers: d = [],
2382
2392
  interactive: _ = !1,
2383
- onAnnotationClick: b = re,
2384
- onQuizMarkerClick: w = re,
2385
- onQuizMarkerShow: y = re,
2386
- onInteractivePinClick: x = re,
2387
- onCaptionsDelete: p,
2388
- interactiveMenuElements: C = [],
2389
- kebabMenuElements: H = [],
2390
- darkMode: E = !1,
2393
+ onAnnotationClick: C = le,
2394
+ onQuizMarkerClick: w = le,
2395
+ onQuizMarkerShow: M = le,
2396
+ onInteractivePinClick: L = le,
2397
+ onCaptionsDelete: I,
2398
+ interactiveMenuElements: h = [],
2399
+ kebabMenuElements: g = [],
2400
+ darkMode: S = !1,
2391
2401
  autoLoadCaptionSrc: P = "",
2392
- forceComments: I = !1,
2393
- disableCaptionSettings: B = !1,
2394
- disableStorage: V = !1,
2395
- startAt: O,
2402
+ forceComments: E = !1,
2403
+ disableCaptionSettings: O = !1,
2404
+ disableStorage: R = !1,
2405
+ startAt: B,
2396
2406
  crossOrigin: j,
2397
2407
  captionOffsetOverride: fe,
2398
2408
  disableInteractivePinRanges: _e = [],
@@ -2401,14 +2411,14 @@ function Oi({
2401
2411
  }) {
2402
2412
  const { contextValue: Ce, shortcuts: ct, storage: ut } = hi(
2403
2413
  a,
2404
- I,
2405
- B,
2406
- O
2407
- ), { i18n: Ve } = h();
2414
+ E,
2415
+ O,
2416
+ B
2417
+ ), { i18n: Ve } = f();
2408
2418
  Z(() => {
2409
2419
  Ve.changeLanguage(c);
2410
2420
  }, [Ve, c]);
2411
- const [oe, ie] = k("none"), dt = f((T) => {
2421
+ const [oe, ie] = k("none"), dt = p((T) => {
2412
2422
  Lt(T) ? ie("audio") : (xt(T) || Mt(T) || Pt(T)) && ie("video");
2413
2423
  }, []);
2414
2424
  return /* @__PURE__ */ n(
@@ -2416,33 +2426,33 @@ function Oi({
2416
2426
  {
2417
2427
  title: e,
2418
2428
  hideFullScreen: a,
2419
- comments: l,
2429
+ comments: r,
2420
2430
  captions: i,
2421
2431
  thumbnail: s,
2422
2432
  annotations: u,
2423
2433
  quizMarkers: d,
2424
2434
  interactive: _,
2425
- onAnnotationClick: b,
2435
+ onAnnotationClick: C,
2426
2436
  onQuizMarkerClick: w,
2427
- onInteractivePinClick: x,
2428
- interactiveMenuElements: C,
2429
- kebabMenuElements: H,
2430
- darkMode: E,
2431
- forceComments: I,
2432
- disableCaptionSettings: B,
2433
- disableStorage: V,
2437
+ onInteractivePinClick: L,
2438
+ interactiveMenuElements: h,
2439
+ kebabMenuElements: g,
2440
+ darkMode: S,
2441
+ forceComments: E,
2442
+ disableCaptionSettings: O,
2443
+ disableStorage: R,
2434
2444
  captionOffsetOverride: fe,
2435
2445
  disableInteractivePinRanges: _e,
2436
- onQuizMarkerShow: y,
2437
- onCaptionsDelete: p,
2446
+ onQuizMarkerShow: M,
2447
+ onCaptionsDelete: I,
2438
2448
  controlsLayout: ne,
2439
- startAt: O,
2440
- children: /* @__PURE__ */ n(Rt, { contextValue: Ce, children: /* @__PURE__ */ r(
2449
+ startAt: B,
2450
+ children: /* @__PURE__ */ n(Rt, { contextValue: Ce, children: /* @__PURE__ */ l(
2441
2451
  Nt,
2442
2452
  {
2443
- "data-version": "0.5.6",
2453
+ "data-version": "1.0.0",
2444
2454
  crossOrigin: j,
2445
- storage: V ? null : ut,
2455
+ storage: R ? null : ut,
2446
2456
  title: e,
2447
2457
  src: ui(o),
2448
2458
  keyShortcuts: ct,
@@ -2462,7 +2472,7 @@ function Oi({
2462
2472
  oe === "none" && ie("audio");
2463
2473
  },
2464
2474
  children: [
2465
- /* @__PURE__ */ r(It, { className: Ii.mediaProvider, children: [
2475
+ /* @__PURE__ */ l(It, { className: Ii.mediaProvider, children: [
2466
2476
  oe === "audio" && /* @__PURE__ */ n(fi, {}),
2467
2477
  oe === "video" && /* @__PURE__ */ n(_i, {})
2468
2478
  ] }),
@@ -2471,9 +2481,9 @@ function Oi({
2471
2481
  /* @__PURE__ */ n(
2472
2482
  Li,
2473
2483
  {
2474
- darkMode: E,
2484
+ darkMode: S,
2475
2485
  playerRef: t,
2476
- showCaptionsButton: !B,
2486
+ showCaptionsButton: !O,
2477
2487
  controlsLayout: ne
2478
2488
  }
2479
2489
  ),
@@ -2489,7 +2499,7 @@ export {
2489
2499
  bn as CAPTION_FONT_SIZE_MULTIPLIERS,
2490
2500
  vn as COMMENT_DURATION,
2491
2501
  Y as PLAYBACK_RATES,
2492
- Oi as StudioPlayer,
2493
- g as useMediaState,
2502
+ Bi as StudioPlayer,
2503
+ b as useMediaState,
2494
2504
  Zi as useMediaStore
2495
2505
  };