@instructure/studio-player 0.1.8 → 0.2.1

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,18 +1,18 @@
1
- import './index.css';var be = Object.defineProperty;
2
- var ve = (e, n, o) => n in e ? be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
3
- var L = (e, n, o) => ve(e, typeof n != "symbol" ? n + "" : n, o);
4
- import { jsx as t, jsxs as s, Fragment as oe } from "react/jsx-runtime";
5
- import { createContext as ae, useContext as u, useCallback as m, useEffect as $, useState as T, useMemo as K, useRef as Ce } from "react";
6
- import { Spinner as j, useMediaState as h, isTrackCaptionKind as ke, useMediaRemote as z, Track as we, Captions as ye, useMediaPlayer as se, usePlaybackRateOptions as Le, useCaptionOptions as Ne, useVideoQualityOptions as Te, useMediaStore as ce, FullscreenButton as ie, PlayButton as Me, Poster as Ie, Time as Q, TimeSlider as H, MuteButton as Se, VolumeSlider as O, MediaPlayer as Pe, MediaProvider as Be } from "@vidstack/react";
7
- import { initReactI18next as Re, useTranslation as p } from "react-i18next";
8
- import He from "i18next";
9
- import Ve from "i18next-resources-to-backend";
10
- import { useFloating as xe, autoUpdate as Ae, flip as Ee, arrow as Oe, useDismiss as Fe, useInteractions as Ze, FloatingFocusManager as Ke, FloatingArrow as $e } from "@floating-ui/react";
11
- const De = (e, n, o) => {
12
- const a = e[n];
13
- return a ? typeof a == "function" ? a() : Promise.resolve(a) : new Promise((c, i) => {
1
+ import './index-DAjo9xqJ.css';var Re = Object.defineProperty;
2
+ var Ae = (e, n, o) => n in e ? Re(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
3
+ var N = (e, n, o) => Ae(e, typeof n != "symbol" ? n + "" : n, o);
4
+ import { jsx as t, jsxs as s, Fragment as J } from "react/jsx-runtime";
5
+ import { createContext as X, useContext as y, useState as P, useCallback as p, useEffect as V, useMemo as F, useRef as he } from "react";
6
+ import { useMediaPlayer as ee, Spinner as G, useMediaRemote as Z, useMediaState as v, isTrackCaptionKind as Ee, Track as Oe, Captions as Fe, usePlaybackRateOptions as Ze, useCaptionOptions as $e, useVideoQualityOptions as Ke, useMediaStore as _e, FullscreenButton as pe, PlayButton as De, Poster as ze, Time as ae, TimeSlider as A, MuteButton as je, VolumeSlider as j, MediaPlayer as Ue, MediaProvider as qe } from "@vidstack/react";
7
+ import { initReactI18next as We, useTranslation as C } from "react-i18next";
8
+ import Ge from "i18next";
9
+ import Qe from "i18next-resources-to-backend";
10
+ import { useFloating as ve, autoUpdate as fe, flip as Ce, arrow as ge, useDismiss as be, useInteractions as ke, FloatingFocusManager as Ye, FloatingArrow as ye, shift as Je, offset as Xe } from "@floating-ui/react";
11
+ const et = (e, n, o) => {
12
+ const i = e[n];
13
+ return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((a, c) => {
14
14
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
15
- i.bind(
15
+ c.bind(
16
16
  null,
17
17
  new Error(
18
18
  "Unknown variable dynamic import: " + n + (n.split("/").length !== o ? ". Note that variables only represent file names one level deep." : "")
@@ -21,9 +21,9 @@ const De = (e, n, o) => {
21
21
  );
22
22
  });
23
23
  };
24
- He.use(Re).use(
25
- Ve(
26
- (e) => De(/* @__PURE__ */ Object.assign({ "./locales/en.json": () => import("./en-CDw-Fu7s.js"), "./locales/kl.json": () => import("./kl-fK-9jtTT.js") }), `./locales/${e}.json`, 3)
24
+ Ge.use(We).use(
25
+ Qe(
26
+ (e) => et(/* @__PURE__ */ Object.assign({ "./locales/en.json": () => import("./en-DFSgRHa0.js"), "./locales/kl.json": () => import("./kl-dmbsz-te.js") }), `./locales/${e}.json`, 3)
27
27
  )
28
28
  ).init({
29
29
  fallbackLng: "en",
@@ -34,242 +34,329 @@ He.use(Re).use(
34
34
  escapeValue: !1
35
35
  }
36
36
  });
37
- const je = "_media-buffering-indicator_1fwjr_1", Ue = "_media-buffering-spinner_1fwjr_17", ze = "_media-buffering-spin_1fwjr_17", Ge = "_media-buffering-track_1fwjr_22", We = "_media-buffering-track-fill_1fwjr_27", F = {
37
+ const we = X(null);
38
+ function tt({
39
+ children: e,
40
+ contextValue: n
41
+ }) {
42
+ return /* @__PURE__ */ t(we.Provider, { value: n, children: e });
43
+ }
44
+ function g() {
45
+ const e = y(we);
46
+ if (!e)
47
+ throw new Error(
48
+ "useStudioPlayerContext must be used within a StudioPlayerContextProvider"
49
+ );
50
+ return e;
51
+ }
52
+ const Le = X(null);
53
+ function nt({
54
+ hideFullScreen: e,
55
+ comments: n,
56
+ annotations: o,
57
+ quizMarkers: i,
58
+ interactive: a,
59
+ onAnnotationClick: c,
60
+ onQuizMarkerClick: l,
61
+ onInteractivePinClick: u,
62
+ interactiveMenuElements: _,
63
+ children: f
64
+ }) {
65
+ const b = {
66
+ hideFullScreen: e,
67
+ comments: n,
68
+ annotations: o,
69
+ quizMarkers: i,
70
+ interactive: a,
71
+ onAnnotationClick: c,
72
+ onQuizMarkerClick: l,
73
+ onInteractivePinClick: u,
74
+ interactiveMenuElements: _,
75
+ hasComments: n.length > 0,
76
+ hasAnnotations: o.length > 0,
77
+ hasQuizmarkers: i.length > 0
78
+ };
79
+ return /* @__PURE__ */ t(Le.Provider, { value: b, children: f });
80
+ }
81
+ function B() {
82
+ const e = y(Le);
83
+ if (!e)
84
+ throw new Error(
85
+ "useStudioPlayerPropsContext must be used within a StudioPlayerPropsContextProvider"
86
+ );
87
+ return e;
88
+ }
89
+ const ot = "_annotation-overlay_1kxzn_1", it = {
90
+ "annotation-overlay": "_annotation-overlay_1kxzn_1",
91
+ annotationOverlay: ot
92
+ }, se = 0.25, at = (e, n) => {
93
+ let o = !1;
94
+ return (i) => {
95
+ const a = i.detail.currentTime;
96
+ a >= e.time && a < e.time + se && !o && (o = !0, n(e)), (a < e.time || a >= e.time + se) && o && (o = !1);
97
+ };
98
+ };
99
+ function st({ annotations: e }) {
100
+ const n = ee(), o = g(), [i, a] = P(
101
+ null
102
+ ), c = p(
103
+ (u) => {
104
+ n == null || n.pause(), o.disableInteractions(), a(u);
105
+ },
106
+ [n, o]
107
+ ), l = () => {
108
+ n == null || n.play(), a(null), o.enableInteractions();
109
+ };
110
+ return V(() => {
111
+ if (!n)
112
+ return;
113
+ const u = [];
114
+ for (const _ of e) {
115
+ const f = at(_, c);
116
+ n.addEventListener("time-update", f), u.push(f);
117
+ }
118
+ return () => {
119
+ for (const _ of u)
120
+ n.removeEventListener("time-update", _);
121
+ };
122
+ }, [n, e]), i ? /* @__PURE__ */ t("div", { className: it.annotationOverlay, children: i.render(l) }) : null;
123
+ }
124
+ const ct = "_media-buffering-indicator_1fwjr_1", lt = "_media-buffering-spinner_1fwjr_17", rt = "_media-buffering-spin_1fwjr_17", ut = "_media-buffering-track_1fwjr_22", dt = "_media-buffering-track-fill_1fwjr_27", U = {
38
125
  "media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
39
- mediaBufferingIndicator: je,
126
+ mediaBufferingIndicator: ct,
40
127
  "media-buffering-spinner": "_media-buffering-spinner_1fwjr_17",
41
- mediaBufferingSpinner: Ue,
128
+ mediaBufferingSpinner: lt,
42
129
  "media-buffering-spin": "_media-buffering-spin_1fwjr_17",
43
- mediaBufferingSpin: ze,
130
+ mediaBufferingSpin: rt,
44
131
  "media-buffering-track": "_media-buffering-track_1fwjr_22",
45
- mediaBufferingTrack: Ge,
132
+ mediaBufferingTrack: ut,
46
133
  "media-buffering-track-fill": "_media-buffering-track-fill_1fwjr_27",
47
- mediaBufferingTrackFill: We
134
+ mediaBufferingTrackFill: dt
48
135
  };
49
- function qe() {
50
- return /* @__PURE__ */ t("div", { className: F.mediaBufferingIndicator, children: /* @__PURE__ */ s(j.Root, { className: F.mediaBufferingSpinner, size: 96, children: [
51
- /* @__PURE__ */ t(j.Track, { className: F.mediaBufferingTrack, width: 8 }),
136
+ function mt() {
137
+ return /* @__PURE__ */ t("div", { className: U.mediaBufferingIndicator, children: /* @__PURE__ */ s(G.Root, { className: U.mediaBufferingSpinner, size: 96, children: [
138
+ /* @__PURE__ */ t(G.Track, { className: U.mediaBufferingTrack, width: 8 }),
52
139
  /* @__PURE__ */ t(
53
- j.TrackFill,
140
+ G.TrackFill,
54
141
  {
55
- className: F.mediaBufferingTrackFill,
142
+ className: U.mediaBufferingTrackFill,
56
143
  width: 8
57
144
  }
58
145
  )
59
146
  ] }) });
60
147
  }
61
- const f = ae(null), le = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
148
+ const Pe = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
62
149
  /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_149_104418", children: /* @__PURE__ */ t("rect", { width: 24, height: 24, fill: "white" }) }) }),
63
150
  /* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104418)", children: /* @__PURE__ */ t("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" }) })
64
- ] }), re = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
151
+ ] }), Ne = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
65
152
  /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_149_104406", children: /* @__PURE__ */ t("rect", { width: 24, height: 24, fill: "white" }) }) }),
66
153
  /* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ t("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" }) })
67
154
  ] });
68
- function Qe() {
69
- const e = h("hasCaptions"), n = h("textTrack"), o = n && ke(n), a = z(), c = u(f), i = m(
155
+ function ht() {
156
+ const e = Z(), n = v("textTrack"), o = v("hasCaptions"), i = n && Ee(n), a = g(), c = p(
70
157
  (l) => {
71
- a.toggleCaptions(l.nativeEvent);
158
+ e.toggleCaptions(l.nativeEvent);
72
159
  },
73
- [a]
160
+ [e]
74
161
  );
75
- return e ? /* @__PURE__ */ t(
162
+ return o ? /* @__PURE__ */ t(
76
163
  "button",
77
164
  {
78
165
  type: "button",
79
166
  className: "controls-button",
80
- onClick: i,
167
+ onClick: c,
81
168
  "aria-label": "Captions",
82
- tabIndex: c != null && c.state.interactionsDisabled ? -1 : 0,
83
- children: o ? /* @__PURE__ */ t(re, { className: "controls-button-icon" }) : /* @__PURE__ */ t(le, { className: "controls-button-icon" })
169
+ tabIndex: a.state.interactionsDisabled ? -1 : 0,
170
+ children: i ? /* @__PURE__ */ t(Ne, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Pe, { className: "controls-button-icon" })
84
171
  }
85
172
  ) : null;
86
173
  }
87
- const Ye = "_captions_13epz_1", Je = {
88
- captions: Ye
174
+ const _t = "_captions_13epz_1", pt = {
175
+ captions: _t
89
176
  };
90
- function Xe({ captions: e }) {
91
- const n = h("hasCaptions"), o = u(f);
92
- return /* @__PURE__ */ s(oe, { children: [
93
- e.map((a) => /* @__PURE__ */ t(
94
- we,
177
+ function vt({ captions: e }) {
178
+ const n = v("hasCaptions"), o = g();
179
+ return /* @__PURE__ */ s(J, { children: [
180
+ e.map((i) => /* @__PURE__ */ t(
181
+ Oe,
95
182
  {
96
183
  kind: "subtitles",
97
- type: a.type,
98
- language: a.language,
99
- label: a.label,
100
- src: a.src
184
+ type: i.type,
185
+ language: i.language,
186
+ label: i.label,
187
+ src: i.src
101
188
  },
102
- a.label
189
+ i.label
103
190
  )),
104
191
  n ? /* @__PURE__ */ t(
105
192
  "div",
106
193
  {
107
194
  style: {
108
195
  display: "contents",
109
- "--captions-font-size-multiplier": (o == null ? void 0 : o.state.captionsFontSizeMultiplier) ?? 1,
110
- "--captions-flex-direction": o != null && o.state.captionPositionOnTop ? "column" : "column-reverse",
111
- "--captions-color": o != null && o.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
112
- "--captions-background-color": o != null && o.state.captionsInvertColors ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)"
196
+ "--captions-font-size-multiplier": o.state.captionsFontSizeMultiplier ?? 1,
197
+ "--captions-flex-direction": o.state.captionPositionOnTop ? "column" : "column-reverse",
198
+ "--captions-color": o.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
199
+ "--captions-background-color": o.state.captionsInvertColors ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)"
113
200
  },
114
- children: /* @__PURE__ */ t(ye, { className: Je.captions })
201
+ children: /* @__PURE__ */ t(Fe, { className: pt.captions })
115
202
  }
116
203
  ) : null
117
204
  ] });
118
205
  }
119
- const P = [0.5, 0.75, 1, 1.25, 1.5, 2], et = [0.5, 1, 2, 3, 4], ue = 5, tt = (e) => {
120
- const [, n] = T({});
121
- return K(() => {
206
+ const S = [0.5, 0.75, 1, 1.25, 1.5, 2], ft = [0.5, 1, 2, 3, 4], xe = 5, Ct = (e) => {
207
+ const [, n] = P({});
208
+ return F(() => {
122
209
  let o = [];
123
210
  return {
124
- add(a) {
125
- o.length >= e && o.shift(), o.push(a), n({});
211
+ add(i) {
212
+ o.length >= e && o.shift(), o.push(i), n({});
126
213
  },
127
- remove(a) {
128
- o = o.filter((c) => c !== a), n({});
214
+ remove(i) {
215
+ o = o.filter((a) => a !== i), n({});
129
216
  },
130
- map(a) {
131
- return o.map(a);
217
+ map(i) {
218
+ return o.map(i);
132
219
  }
133
220
  };
134
221
  }, []);
135
- }, nt = (e, n, o) => {
136
- let a = !1;
137
- return (c) => {
138
- const i = c.detail.currentTime;
139
- i >= e.timestamp && i < e.timestamp + n && !a && (o.add(e), a = !0), (i < e.timestamp || i >= e.timestamp + n) && a && (o.remove(e), a = !1);
222
+ }, gt = (e, n, o) => {
223
+ let i = !1;
224
+ return (a) => {
225
+ const c = a.detail.currentTime;
226
+ c >= e.timestamp && c < e.timestamp + n && !i && (o.add(e), i = !0), (c < e.timestamp || c >= e.timestamp + n) && i && (o.remove(e), i = !1);
140
227
  };
141
- }, ot = (e, n = 5) => {
142
- const o = se(), a = tt(n);
143
- return $(() => {
228
+ }, bt = (e, n = 5) => {
229
+ const o = ee(), i = Ct(n);
230
+ return V(() => {
144
231
  if (!o)
145
232
  return;
146
- const c = [];
147
- for (const i of e) {
148
- const l = nt(i, ue, a);
149
- c.push(l), o.addEventListener("time-update", l);
233
+ const a = [];
234
+ for (const c of e) {
235
+ const l = gt(c, xe, i);
236
+ a.push(l), o.addEventListener("time-update", l);
150
237
  }
151
238
  return () => {
152
- for (const i of c)
153
- o.removeEventListener("time-update", i);
239
+ for (const c of a)
240
+ o.removeEventListener("time-update", c);
154
241
  };
155
- }, [o, a, e]), a;
156
- }, at = "_comments-overlay_agbjl_1", st = "_comments-container_agbjl_9", ct = "_comment_agbjl_1", it = "_comment-text_agbjl_44", lt = "_comment-author-avatar_agbjl_67", rt = "_comment-author-name_agbjl_86", B = {
242
+ }, [o, i, e]), i;
243
+ }, kt = "_comments-overlay_agbjl_1", yt = "_comments-container_agbjl_9", wt = "_comment_agbjl_1", Lt = "_comment-text_agbjl_44", Pt = "_comment-author-avatar_agbjl_67", Nt = "_comment-author-name_agbjl_86", H = {
157
244
  "comments-overlay": "_comments-overlay_agbjl_1",
158
- commentsOverlay: at,
245
+ commentsOverlay: kt,
159
246
  "comments-container": "_comments-container_agbjl_9",
160
- commentsContainer: st,
161
- comment: ct,
247
+ commentsContainer: yt,
248
+ comment: wt,
162
249
  "comment-text": "_comment-text_agbjl_44",
163
- commentText: it,
250
+ commentText: Lt,
164
251
  "comment-author-avatar": "_comment-author-avatar_agbjl_67",
165
- commentAuthorAvatar: lt,
252
+ commentAuthorAvatar: Pt,
166
253
  "comment-author-name": "_comment-author-name_agbjl_86",
167
- commentAuthorName: rt
254
+ commentAuthorName: Nt
168
255
  };
169
- function ut({ comment: e }) {
170
- return /* @__PURE__ */ s("div", { className: B.comment, onClick: e.onClick, children: [
256
+ function xt({ comment: e }) {
257
+ return /* @__PURE__ */ s("div", { className: H.comment, onClick: e.onClick, children: [
171
258
  /* @__PURE__ */ t(
172
259
  "img",
173
260
  {
174
- className: B.commentAuthorAvatar,
261
+ className: H.commentAuthorAvatar,
175
262
  src: e.user.avatar,
176
263
  alt: e.user.name
177
264
  }
178
265
  ),
179
- /* @__PURE__ */ t("span", { className: B.commentText, children: e.text }),
180
- /* @__PURE__ */ t("span", { className: B.commentAuthorName, children: e.user.name })
266
+ /* @__PURE__ */ t("span", { className: H.commentText, children: e.text }),
267
+ /* @__PURE__ */ t("span", { className: H.commentAuthorName, children: e.user.name })
181
268
  ] });
182
269
  }
183
- const Y = 5;
184
- function dt() {
185
- const e = u(f), n = (e == null ? void 0 : e.comments) || [], o = ot(n, Y), a = !!h("textTrack"), c = o.map((i) => /* @__PURE__ */ t(ut, { comment: i }, i.id));
186
- return n.length > 0 && (e != null && e.state.commentsEnabled) ? /* @__PURE__ */ t(
270
+ const ce = 5;
271
+ function Mt({ comments: e }) {
272
+ const n = g(), o = bt(e, ce), i = !!v("textTrack"), a = o.map((c) => /* @__PURE__ */ t(xt, { comment: c }, c.id));
273
+ return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
187
274
  "div",
188
275
  {
189
- className: B.commentsOverlay,
276
+ className: H.commentsOverlay,
190
277
  style: {
191
- flexDirection: e != null && e.state.captionPositionOnTop && a ? "column-reverse" : "column"
278
+ flexDirection: n.state.captionPositionOnTop && i ? "column-reverse" : "column"
192
279
  },
193
- children: /* @__PURE__ */ t("div", { className: B.commentsContainer, children: a ? c.slice(-(Y - 1)) : c })
280
+ children: /* @__PURE__ */ t("div", { className: H.commentsContainer, children: i ? a.slice(-(ce - 1)) : a })
194
281
  }
195
282
  ) : null;
196
283
  }
197
- const mt = "_root_zdwuq_1", ht = "_left-controls_zdwuq_27", _t = "_right-controls_zdwuq_33", pt = "_indicators_zdwuq_39", gt = "_normal-timeline_zdwuq_48", ft = "_compact-timeline_zdwuq_54", S = {
198
- root: mt,
199
- "left-controls": "_left-controls_zdwuq_27",
200
- leftControls: ht,
201
- "right-controls": "_right-controls_zdwuq_33",
202
- rightControls: _t,
203
- indicators: pt,
204
- "normal-timeline": "_normal-timeline_zdwuq_48",
205
- normalTimeline: gt,
206
- "compact-timeline": "_compact-timeline_zdwuq_54",
207
- compactTimeline: ft
284
+ const Tt = "_root_1mh1r_1", It = "_left-controls_1mh1r_27", St = "_right-controls_1mh1r_33", Ht = "_indicators_1mh1r_39", Vt = "_normal-timeline_1mh1r_48", Bt = "_compact-timeline_1mh1r_54", I = {
285
+ root: Tt,
286
+ "left-controls": "_left-controls_1mh1r_27",
287
+ leftControls: It,
288
+ "right-controls": "_right-controls_1mh1r_33",
289
+ rightControls: St,
290
+ indicators: Ht,
291
+ "normal-timeline": "_normal-timeline_1mh1r_48",
292
+ normalTimeline: Vt,
293
+ "compact-timeline": "_compact-timeline_1mh1r_54",
294
+ compactTimeline: Bt
208
295
  };
209
- function bt() {
210
- return /* @__PURE__ */ s("div", { className: S.root, children: [
211
- /* @__PURE__ */ t(ee, { className: S.normalTimeline }),
212
- /* @__PURE__ */ s("div", { className: S.leftControls, children: [
213
- /* @__PURE__ */ t(On, {}),
214
- /* @__PURE__ */ t(go, {})
296
+ function Rt() {
297
+ return /* @__PURE__ */ s("div", { className: I.root, children: [
298
+ /* @__PURE__ */ t(ue, { className: I.normalTimeline }),
299
+ /* @__PURE__ */ s("div", { className: I.leftControls, children: [
300
+ /* @__PURE__ */ t(to, {}),
301
+ /* @__PURE__ */ t(ai, {})
215
302
  ] }),
216
- /* @__PURE__ */ t("div", { className: S.indicators, children: /* @__PURE__ */ t(Yn, {}) }),
217
- /* @__PURE__ */ t(ee, { className: S.compactTimeline }),
218
- /* @__PURE__ */ s("div", { className: S.rightControls, children: [
219
- /* @__PURE__ */ t(Qe, {}),
220
- /* @__PURE__ */ t(un, {}),
221
- /* @__PURE__ */ t(Tn, {})
303
+ /* @__PURE__ */ t("div", { className: I.indicators, children: /* @__PURE__ */ t(po, {}) }),
304
+ /* @__PURE__ */ t(ue, { className: I.compactTimeline }),
305
+ /* @__PURE__ */ s("div", { className: I.rightControls, children: [
306
+ /* @__PURE__ */ t(ht, {}),
307
+ /* @__PURE__ */ t(xn, {}),
308
+ /* @__PURE__ */ t(Dn, {})
222
309
  ] })
223
310
  ] });
224
311
  }
225
- const vt = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), C = ae(null), Ct = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), kt = "_menu-hint_k49ve_1", wt = "_menu-button_k49ve_5", yt = "_menu-label_k49ve_37", Lt = "_menu-icon_k49ve_42", Z = {
312
+ const w = X(null), At = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), Et = "_menu-hint_k49ve_1", Ot = "_menu-button_k49ve_5", Ft = "_menu-label_k49ve_37", Zt = "_menu-icon_k49ve_42", q = {
226
313
  "menu-hint": "_menu-hint_k49ve_1",
227
- menuHint: kt,
314
+ menuHint: Et,
228
315
  "menu-button": "_menu-button_k49ve_5",
229
- menuButton: wt,
316
+ menuButton: Ot,
230
317
  "menu-label": "_menu-label_k49ve_37",
231
- menuLabel: yt,
318
+ menuLabel: Ft,
232
319
  "menu-icon": "_menu-icon_k49ve_42",
233
- menuIcon: Lt
320
+ menuIcon: Zt
234
321
  };
235
- function A({ label: e, hint: n, onClick: o, Icon: a }) {
236
- return /* @__PURE__ */ s("button", { type: "button", className: Z.menuButton, onClick: o, children: [
237
- a && /* @__PURE__ */ t(a, { className: Z.menuIcon }),
238
- /* @__PURE__ */ t("span", { className: Z.menuLabel, children: e }),
239
- /* @__PURE__ */ t("span", { className: Z.menuHint, children: n }),
240
- /* @__PURE__ */ t(Ct, {})
322
+ function $({ label: e, hint: n, onClick: o, Icon: i }) {
323
+ return /* @__PURE__ */ s("button", { type: "button", className: q.menuButton, onClick: o, children: [
324
+ i && /* @__PURE__ */ t(i, { className: q.menuIcon }),
325
+ /* @__PURE__ */ t("span", { className: q.menuLabel, children: e }),
326
+ /* @__PURE__ */ t("span", { className: q.menuHint, children: n }),
327
+ /* @__PURE__ */ t(At, {})
241
328
  ] });
242
329
  }
243
- const Nt = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) });
244
- function Tt() {
245
- const e = u(C), n = h("playbackRate"), { t: o } = p(), a = m(() => {
330
+ const $t = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) });
331
+ function Kt() {
332
+ const e = y(w), n = v("playbackRate"), { t: o } = C(), i = p(() => {
246
333
  e && e.setPage("speed");
247
334
  }, [e]);
248
335
  return e ? /* @__PURE__ */ t(
249
- A,
336
+ $,
250
337
  {
251
338
  label: o("PLAYBACK_SPEED"),
252
339
  hint: `${n}x`,
253
- onClick: a,
254
- Icon: Nt
340
+ onClick: i,
341
+ Icon: $t
255
342
  }
256
343
  ) : null;
257
344
  }
258
- function Mt() {
259
- const e = u(C), n = h("hasCaptions"), o = h("textTrack"), { t: a } = p(), c = m(() => {
345
+ function Dt() {
346
+ const e = y(w), n = v("hasCaptions"), o = v("textTrack"), { t: i } = C(), a = p(() => {
260
347
  e && e.setPage("captions");
261
348
  }, [e]);
262
349
  return e && n ? /* @__PURE__ */ t(
263
- A,
350
+ $,
264
351
  {
265
- label: a("CAPTIONS"),
266
- hint: (o == null ? void 0 : o.label) ?? a("OFF"),
267
- onClick: c,
268
- Icon: le
352
+ label: i("CAPTIONS"),
353
+ hint: (o == null ? void 0 : o.label) ?? i("OFF"),
354
+ onClick: a,
355
+ Icon: Pe
269
356
  }
270
357
  ) : null;
271
358
  }
272
- const It = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
359
+ const zt = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
273
360
  /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ t("rect", { width: 18, height: 18, fill: "white" }) }) }),
274
361
  /* @__PURE__ */ s("g", { clipPath: "url(#clip0_412_23039)", children: [
275
362
  /* @__PURE__ */ t("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" }),
@@ -277,43 +364,43 @@ const It = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0
277
364
  /* @__PURE__ */ t("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" })
278
365
  ] })
279
366
  ] });
280
- function St() {
281
- const e = u(C), n = h("autoQuality"), o = h("quality"), { t: a } = p(), c = m(() => {
367
+ function jt() {
368
+ const e = y(w), n = v("autoQuality"), o = v("quality"), { t: i } = C(), a = p(() => {
282
369
  e && e.setPage("quality");
283
370
  }, [e]);
284
371
  return e && o ? /* @__PURE__ */ t(
285
- A,
372
+ $,
286
373
  {
287
- label: a("QUALITY"),
288
- hint: n ? a("AUTO", { quality: o.height }) : `${o.height}p`,
289
- onClick: c,
290
- Icon: It
374
+ label: i("QUALITY"),
375
+ hint: n ? i("AUTO", { quality: o.height }) : `${o.height}p`,
376
+ onClick: a,
377
+ Icon: zt
291
378
  }
292
379
  ) : null;
293
380
  }
294
- const Pt = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), Bt = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), Rt = "_switch-track_vptv3_1", Ht = "_switch-thumb_vptv3_11", Vt = "_switch-icon_vptv3_25", xt = "_switch-body_vptv3_31", At = "_switch-label_vptv3_68", Et = "_menu-icon_vptv3_72", M = {
381
+ const Ut = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), qt = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), Wt = "_switch-track_vptv3_1", Gt = "_switch-thumb_vptv3_11", Qt = "_switch-icon_vptv3_25", Yt = "_switch-body_vptv3_31", Jt = "_switch-label_vptv3_68", Xt = "_menu-icon_vptv3_72", M = {
295
382
  "switch-track": "_switch-track_vptv3_1",
296
- switchTrack: Rt,
383
+ switchTrack: Wt,
297
384
  "switch-thumb": "_switch-thumb_vptv3_11",
298
- switchThumb: Ht,
385
+ switchThumb: Gt,
299
386
  "switch-icon": "_switch-icon_vptv3_25",
300
- switchIcon: Vt,
387
+ switchIcon: Qt,
301
388
  "switch-body": "_switch-body_vptv3_31",
302
- switchBody: xt,
389
+ switchBody: Yt,
303
390
  "switch-label": "_switch-label_vptv3_68",
304
- switchLabel: At,
391
+ switchLabel: Jt,
305
392
  "menu-icon": "_menu-icon_vptv3_72",
306
- menuIcon: Et
393
+ menuIcon: Xt
307
394
  };
308
- function G({
395
+ function te({
309
396
  label: e,
310
397
  checked: n = !1,
311
398
  onClick: o,
312
- Icon: a
399
+ Icon: i
313
400
  }) {
314
- const c = m(
315
- (i) => {
316
- (i.key === "Enter" || i.key === " ") && (o == null || o());
401
+ const a = p(
402
+ (c) => {
403
+ (c.key === "Enter" || c.key === " ") && (o == null || o());
317
404
  },
318
405
  [o]
319
406
  );
@@ -324,31 +411,31 @@ function G({
324
411
  role: "menuitemcheckbox",
325
412
  "aria-checked": n,
326
413
  onClick: o,
327
- onKeyDown: c,
414
+ onKeyDown: a,
328
415
  tabIndex: 0,
329
416
  children: [
330
- a && /* @__PURE__ */ t(a, { className: M.menuIcon }),
417
+ i && /* @__PURE__ */ t(i, { className: M.menuIcon }),
331
418
  /* @__PURE__ */ t("span", { className: M.switchLabel, children: e }),
332
- /* @__PURE__ */ t("div", { className: M.switchTrack, children: /* @__PURE__ */ t("div", { className: M.switchThumb, children: n ? /* @__PURE__ */ t(Pt, { className: M.switchIcon }) : /* @__PURE__ */ t(Bt, { className: M.switchIcon }) }) })
419
+ /* @__PURE__ */ t("div", { className: M.switchTrack, children: /* @__PURE__ */ t("div", { className: M.switchThumb, children: n ? /* @__PURE__ */ t(Ut, { className: M.switchIcon }) : /* @__PURE__ */ t(qt, { className: M.switchIcon }) }) })
333
420
  ]
334
421
  }
335
422
  );
336
423
  }
337
- const Ot = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) });
338
- function Ft() {
339
- const e = u(f), { t: n } = p();
340
- return e != null && e.hasComments ? /* @__PURE__ */ t(
341
- G,
424
+ const en = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) });
425
+ function tn() {
426
+ const { t: e } = C(), n = B(), o = g();
427
+ return n.hasComments ? /* @__PURE__ */ t(
428
+ te,
342
429
  {
343
- Icon: Ot,
344
- label: n("COMMENTS"),
345
- onClick: e.toggleComments,
346
- checked: e.state.commentsEnabled
430
+ Icon: en,
431
+ label: e("COMMENTS"),
432
+ onClick: o.toggleComments,
433
+ checked: o.state.commentsEnabled
347
434
  }
348
435
  ) : null;
349
436
  }
350
- function I(e) {
351
- $(() => {
437
+ function T(e) {
438
+ V(() => {
352
439
  const n = (o) => {
353
440
  o.key === "Escape" && (e == null || e());
354
441
  };
@@ -357,41 +444,41 @@ function I(e) {
357
444
  };
358
445
  }, []);
359
446
  }
360
- const Zt = "_main-menu_7h96l_1", Kt = {
447
+ const nn = "_main-menu_7h96l_1", on = {
361
448
  "main-menu": "_main-menu_7h96l_1",
362
- mainMenu: Zt
449
+ mainMenu: nn
363
450
  };
364
- function $t() {
365
- const e = u(C);
366
- return I(e == null ? void 0 : e.toggle), /* @__PURE__ */ s("div", { className: Kt.mainMenu, children: [
367
- /* @__PURE__ */ t(Tt, {}),
368
- /* @__PURE__ */ t(Mt, {}),
369
- /* @__PURE__ */ t(Ft, {}),
370
- /* @__PURE__ */ t(St, {})
451
+ function an() {
452
+ const e = y(w);
453
+ return T(e == null ? void 0 : e.toggle), /* @__PURE__ */ s("div", { className: on.mainMenu, children: [
454
+ /* @__PURE__ */ t(Kt, {}),
455
+ /* @__PURE__ */ t(Dt, {}),
456
+ /* @__PURE__ */ t(tn, {}),
457
+ /* @__PURE__ */ t(jt, {})
371
458
  ] });
372
459
  }
373
- const D = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), E = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), Dt = "_menu-container_1bjr3_1", jt = "_menu-options_1bjr3_6", Ut = "_menu-heading_1bjr3_11", zt = "_check-icon_1bjr3_27", Gt = "_menu-item-label_1bjr3_33", Wt = "_menu-item_1bjr3_33", qt = "_menu-back-button_1bjr3_66", r = {
460
+ const W = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), K = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), sn = "_menu-container_1bjr3_1", cn = "_menu-options_1bjr3_6", ln = "_menu-heading_1bjr3_11", rn = "_check-icon_1bjr3_27", un = "_menu-item-label_1bjr3_33", dn = "_menu-item_1bjr3_33", mn = "_menu-back-button_1bjr3_66", r = {
374
461
  "menu-container": "_menu-container_1bjr3_1",
375
- menuContainer: Dt,
462
+ menuContainer: sn,
376
463
  "menu-options": "_menu-options_1bjr3_6",
377
- menuOptions: jt,
464
+ menuOptions: cn,
378
465
  "menu-heading": "_menu-heading_1bjr3_11",
379
- menuHeading: Ut,
466
+ menuHeading: ln,
380
467
  "check-icon": "_check-icon_1bjr3_27",
381
- checkIcon: zt,
468
+ checkIcon: rn,
382
469
  "menu-item-label": "_menu-item-label_1bjr3_33",
383
- menuItemLabel: Gt,
470
+ menuItemLabel: un,
384
471
  "menu-item": "_menu-item_1bjr3_33",
385
- menuItem: Wt,
472
+ menuItem: dn,
386
473
  "menu-back-button": "_menu-back-button_1bjr3_66",
387
- menuBackButton: qt
474
+ menuBackButton: mn
388
475
  };
389
- function Qt() {
390
- const e = u(C), n = Le({
391
- rates: P,
476
+ function hn() {
477
+ const e = y(w), n = Ze({
478
+ rates: S,
392
479
  normalLabel: "1x"
393
- }), { t: o } = p();
394
- return I(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
480
+ }), { t: o } = C();
481
+ return T(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
395
482
  /* @__PURE__ */ s(
396
483
  "button",
397
484
  {
@@ -399,82 +486,82 @@ function Qt() {
399
486
  className: r.menuBackButton,
400
487
  onClick: e.backToMain,
401
488
  children: [
402
- /* @__PURE__ */ t(E, {}),
489
+ /* @__PURE__ */ t(K, {}),
403
490
  /* @__PURE__ */ t("span", { children: o("BACK") })
404
491
  ]
405
492
  }
406
493
  ),
407
494
  /* @__PURE__ */ t("strong", { className: r.menuHeading, children: o("PLAYBACK_SPEED") }),
408
- /* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children: n.map(({ value: a, label: c, select: i, selected: l }) => /* @__PURE__ */ s(
495
+ /* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children: n.map(({ value: i, label: a, select: c, selected: l }) => /* @__PURE__ */ s(
409
496
  "button",
410
497
  {
411
498
  type: "button",
412
499
  role: "menuitemradio",
413
500
  "aria-checked": l,
414
501
  onClick: () => {
415
- i(), e.backToMain(), e.toggle();
502
+ c(), e.backToMain(), e.toggle();
416
503
  },
417
504
  className: r.menuItem,
418
505
  children: [
419
- /* @__PURE__ */ t(D, { className: r.checkIcon }),
420
- /* @__PURE__ */ t("span", { className: r.menuItemLabel, children: c })
506
+ /* @__PURE__ */ t(W, { className: r.checkIcon }),
507
+ /* @__PURE__ */ t("span", { className: r.menuItemLabel, children: a })
421
508
  ]
422
509
  },
423
- a
510
+ i
424
511
  )) })
425
512
  ] }) : null;
426
513
  }
427
- function Yt() {
428
- const e = u(C), n = h("textTrack"), { t: o } = p(), a = m(() => {
514
+ function _n() {
515
+ const e = y(w), n = v("textTrack"), { t: o } = C(), i = p(() => {
429
516
  e && e.setPage("captionLanguage");
430
517
  }, [e]);
431
518
  return e ? /* @__PURE__ */ t(
432
- A,
519
+ $,
433
520
  {
434
521
  label: o("LANGUAGE"),
435
522
  hint: (n == null ? void 0 : n.label) ?? o("OFF"),
436
- onClick: a
523
+ onClick: i
437
524
  }
438
525
  ) : null;
439
526
  }
440
- function Jt() {
441
- const e = u(f), n = u(C), { t: o } = p(), a = m(() => {
442
- n && n.setPage("captionFontSize");
443
- }, [n]);
444
- return n && e ? /* @__PURE__ */ t(
445
- A,
527
+ function pn() {
528
+ const { t: e } = C(), n = g(), o = y(w), i = p(() => {
529
+ o && o.setPage("captionFontSize");
530
+ }, [o]);
531
+ return o ? /* @__PURE__ */ t(
532
+ $,
446
533
  {
447
- label: o("CAPTION_FONT_SIZE"),
448
- hint: `${e.state.captionsFontSizeMultiplier * 100}%`,
449
- onClick: a
534
+ label: e("CAPTION_FONT_SIZE"),
535
+ hint: `${n.state.captionsFontSizeMultiplier * 100}%`,
536
+ onClick: i
450
537
  }
451
538
  ) : null;
452
539
  }
453
- function Xt() {
454
- const e = u(f), { t: n } = p();
455
- return e ? /* @__PURE__ */ t(
456
- G,
540
+ function vn() {
541
+ const { t: e } = C(), n = g();
542
+ return /* @__PURE__ */ t(
543
+ te,
457
544
  {
458
- label: n("ON_TOP"),
459
- onClick: e.toggleCaptionPositionOnTop,
460
- checked: e.state.captionPositionOnTop
545
+ label: e("ON_TOP"),
546
+ onClick: n.toggleCaptionPositionOnTop,
547
+ checked: n.state.captionPositionOnTop
461
548
  }
462
- ) : null;
549
+ );
463
550
  }
464
- function en() {
465
- const e = u(f), { t: n } = p();
466
- return e ? /* @__PURE__ */ t(
467
- G,
551
+ function fn() {
552
+ const { t: e } = C(), n = g();
553
+ return /* @__PURE__ */ t(
554
+ te,
468
555
  {
469
- label: n("INVERT_COLORS"),
470
- onClick: e.toggleCaptionsInvertColors,
471
- checked: e.state.captionsInvertColors
556
+ label: e("INVERT_COLORS"),
557
+ onClick: n.toggleCaptionsInvertColors,
558
+ checked: n.state.captionsInvertColors
472
559
  }
473
- ) : null;
560
+ );
474
561
  }
475
- function tn() {
476
- const e = u(C), { t: n } = p();
477
- return I(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
562
+ function Cn() {
563
+ const e = y(w), { t: n } = C();
564
+ return T(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
478
565
  /* @__PURE__ */ s(
479
566
  "button",
480
567
  {
@@ -482,21 +569,21 @@ function tn() {
482
569
  className: r.menuBackButton,
483
570
  onClick: e.backToMain,
484
571
  children: [
485
- /* @__PURE__ */ t(E, {}),
572
+ /* @__PURE__ */ t(K, {}),
486
573
  /* @__PURE__ */ t("span", { children: n("BACK") })
487
574
  ]
488
575
  }
489
576
  ),
490
577
  /* @__PURE__ */ t("strong", { className: r.menuHeading, children: n("CAPTIONS") }),
491
- /* @__PURE__ */ t(Yt, {}),
492
- /* @__PURE__ */ t(Jt, {}),
493
- /* @__PURE__ */ t(Xt, {}),
494
- /* @__PURE__ */ t(en, {})
578
+ /* @__PURE__ */ t(_n, {}),
579
+ /* @__PURE__ */ t(pn, {}),
580
+ /* @__PURE__ */ t(vn, {}),
581
+ /* @__PURE__ */ t(fn, {})
495
582
  ] }) : null;
496
583
  }
497
- function nn() {
498
- const e = u(C), n = Ne(), { t: o } = p();
499
- return I(e == null ? void 0 : e.backToCaptions), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
584
+ function gn() {
585
+ const e = y(w), n = $e(), { t: o } = C();
586
+ return T(e == null ? void 0 : e.backToCaptions), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
500
587
  /* @__PURE__ */ s(
501
588
  "button",
502
589
  {
@@ -504,34 +591,34 @@ function nn() {
504
591
  className: r.menuBackButton,
505
592
  onClick: e.backToCaptions,
506
593
  children: [
507
- /* @__PURE__ */ t(E, {}),
594
+ /* @__PURE__ */ t(K, {}),
508
595
  /* @__PURE__ */ t("span", { children: o("BACK") })
509
596
  ]
510
597
  }
511
598
  ),
512
599
  /* @__PURE__ */ t("strong", { className: r.menuHeading, children: o("CAPTIONS") }),
513
- /* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children: n.map(({ value: a, label: c, select: i, selected: l }) => /* @__PURE__ */ s(
600
+ /* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children: n.map(({ value: i, label: a, select: c, selected: l }) => /* @__PURE__ */ s(
514
601
  "button",
515
602
  {
516
603
  type: "button",
517
604
  role: "menuitemradio",
518
605
  "aria-checked": l,
519
606
  onClick: () => {
520
- i(), e.backToMain(), e.toggle();
607
+ c(), e.backToMain(), e.toggle();
521
608
  },
522
609
  className: r.menuItem,
523
610
  children: [
524
- /* @__PURE__ */ t(D, { className: r.checkIcon }),
525
- /* @__PURE__ */ t("span", { className: r.menuItemLabel, children: c })
611
+ /* @__PURE__ */ t(W, { className: r.checkIcon }),
612
+ /* @__PURE__ */ t("span", { className: r.menuItemLabel, children: a })
526
613
  ]
527
614
  },
528
- a
615
+ i
529
616
  )) })
530
617
  ] }) : null;
531
618
  }
532
- function on() {
533
- const e = u(f), n = u(C), { t: o } = p();
534
- return I(n == null ? void 0 : n.backToCaptions), e && n ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
619
+ function bn() {
620
+ const e = g(), n = y(w), { t: o } = C();
621
+ return T(n == null ? void 0 : n.backToCaptions), n ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
535
622
  /* @__PURE__ */ s(
536
623
  "button",
537
624
  {
@@ -539,37 +626,37 @@ function on() {
539
626
  className: r.menuBackButton,
540
627
  onClick: n.backToCaptions,
541
628
  children: [
542
- /* @__PURE__ */ t(E, {}),
629
+ /* @__PURE__ */ t(K, {}),
543
630
  /* @__PURE__ */ t("span", { children: o("BACK") })
544
631
  ]
545
632
  }
546
633
  ),
547
634
  /* @__PURE__ */ t("strong", { className: r.menuHeading, children: o("CAPTIONS") }),
548
- /* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children: et.map((a) => /* @__PURE__ */ s(
635
+ /* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children: ft.map((i) => /* @__PURE__ */ s(
549
636
  "button",
550
637
  {
551
638
  type: "button",
552
639
  role: "menuitemradio",
553
- "aria-checked": a === e.state.captionsFontSizeMultiplier,
640
+ "aria-checked": i === e.state.captionsFontSizeMultiplier,
554
641
  onClick: () => {
555
- e.setCaptionsFontSizeMultiplier(a), n.backToMain(), n.toggle();
642
+ e.setCaptionsFontSizeMultiplier(i), n.backToMain(), n.toggle();
556
643
  },
557
644
  className: r.menuItem,
558
645
  children: [
559
- /* @__PURE__ */ t(D, { className: r.checkIcon }),
646
+ /* @__PURE__ */ t(W, { className: r.checkIcon }),
560
647
  /* @__PURE__ */ s("span", { className: r.menuItemLabel, children: [
561
- a * 100,
648
+ i * 100,
562
649
  "%"
563
650
  ] })
564
651
  ]
565
652
  },
566
- a
653
+ i
567
654
  )) })
568
655
  ] }) : null;
569
656
  }
570
- function an() {
571
- const e = u(C), n = Te({ sort: "descending" }), o = h("autoQuality"), { t: a } = p();
572
- return I(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
657
+ function kn() {
658
+ const e = y(w), n = Ke({ sort: "descending" }), o = v("autoQuality"), { t: i } = C();
659
+ return T(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
573
660
  /* @__PURE__ */ s(
574
661
  "button",
575
662
  {
@@ -577,133 +664,133 @@ function an() {
577
664
  className: r.menuBackButton,
578
665
  onClick: e.backToMain,
579
666
  children: [
580
- /* @__PURE__ */ t(E, {}),
581
- /* @__PURE__ */ t("span", { children: a("BACK") })
667
+ /* @__PURE__ */ t(K, {}),
668
+ /* @__PURE__ */ t("span", { children: i("BACK") })
582
669
  ]
583
670
  }
584
671
  ),
585
- /* @__PURE__ */ t("strong", { className: r.menuHeading, children: a("QUALITY") }),
586
- /* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children: n.map(({ value: c, label: i, select: l, selected: g }) => /* @__PURE__ */ s(
672
+ /* @__PURE__ */ t("strong", { className: r.menuHeading, children: i("QUALITY") }),
673
+ /* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children: n.map(({ value: a, label: c, select: l, selected: u }) => /* @__PURE__ */ s(
587
674
  "button",
588
675
  {
589
676
  type: "button",
590
677
  role: "menuitemradio",
591
- "aria-checked": c === "auto" && o || g && !o,
678
+ "aria-checked": a === "auto" && o || u && !o,
592
679
  onClick: () => {
593
680
  l(), e.backToMain(), e.toggle();
594
681
  },
595
682
  className: r.menuItem,
596
683
  children: [
597
- /* @__PURE__ */ t(D, { className: r.checkIcon }),
598
- /* @__PURE__ */ t("span", { className: r.menuItemLabel, children: i })
684
+ /* @__PURE__ */ t(W, { className: r.checkIcon }),
685
+ /* @__PURE__ */ t("span", { className: r.menuItemLabel, children: c })
599
686
  ]
600
687
  },
601
- c
688
+ a
602
689
  )) })
603
690
  ] }) : null;
604
691
  }
605
- const sn = {
606
- main: $t,
607
- speed: Qt,
608
- captions: tn,
609
- captionLanguage: nn,
610
- captionFontSize: on,
611
- quality: an
692
+ const yn = {
693
+ main: an,
694
+ speed: hn,
695
+ captions: Cn,
696
+ captionLanguage: gn,
697
+ captionFontSize: bn,
698
+ quality: kn
612
699
  };
613
- function cn() {
614
- const [e, n] = T("main"), [o, a] = T(!1), c = m(() => {
615
- a((R) => !R);
616
- }, []), i = m((R) => {
617
- n(R);
618
- }, []), l = m(() => {
700
+ function wn() {
701
+ const [e, n] = P("main"), [o, i] = P(!1), a = p(() => {
702
+ i((x) => !x);
703
+ }, []), c = p((x) => {
704
+ n(x);
705
+ }, []), l = p(() => {
619
706
  n("captions");
620
- }, []), g = m(() => {
707
+ }, []), u = p(() => {
621
708
  n("main");
622
- }, []), b = K(() => sn[e], [e]), k = Ce(null), { refs: y, floatingStyles: N, context: d } = xe({
709
+ }, []), _ = F(() => yn[e], [e]), f = he(null), { refs: b, floatingStyles: m, context: h } = ve({
623
710
  open: o,
624
- onOpenChange: (R) => {
625
- a(R), g();
711
+ onOpenChange: (x) => {
712
+ i(x), u();
626
713
  },
627
714
  placement: "top-end",
628
- whileElementsMounted: Ae,
715
+ whileElementsMounted: fe,
629
716
  middleware: [
630
- Ee(),
631
- Oe({
632
- element: k
717
+ Ce(),
718
+ ge({
719
+ element: f
633
720
  })
634
721
  ]
635
- }), _ = Fe(d, { escapeKey: !1 }), { getReferenceProps: ge, getFloatingProps: fe } = Ze([_]);
722
+ }), L = be(h, { escapeKey: !1 }), { getReferenceProps: R, getFloatingProps: D } = ke([L]);
636
723
  return {
637
- Page: b,
724
+ Page: _,
638
725
  open: o,
639
- toggle: c,
640
- setPage: i,
726
+ toggle: a,
727
+ setPage: c,
641
728
  backToCaptions: l,
642
- backToMain: g,
643
- arrowRef: k,
644
- refs: y,
645
- floatingStyles: N,
646
- context: d,
647
- getReferenceProps: ge,
648
- getFloatingProps: fe
729
+ backToMain: u,
730
+ arrowRef: f,
731
+ refs: b,
732
+ floatingStyles: m,
733
+ context: h,
734
+ getReferenceProps: R,
735
+ getFloatingProps: D
649
736
  };
650
737
  }
651
- const ln = "_settings-menu_hxlsv_1", rn = "_arrow_hxlsv_15", J = {
738
+ const Ln = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), Pn = "_settings-menu_hxlsv_1", Nn = "_arrow_hxlsv_15", le = {
652
739
  "settings-menu": "_settings-menu_hxlsv_1",
653
- settingsMenu: ln,
654
- arrow: rn
740
+ settingsMenu: Pn,
741
+ arrow: Nn
655
742
  };
656
- function un() {
743
+ function xn() {
657
744
  const {
658
745
  Page: e,
659
746
  arrowRef: n,
660
747
  backToCaptions: o,
661
- backToMain: a,
662
- context: c,
663
- floatingStyles: i,
748
+ backToMain: i,
749
+ context: a,
750
+ floatingStyles: c,
664
751
  getFloatingProps: l,
665
- getReferenceProps: g,
666
- open: b,
667
- refs: k,
668
- setPage: y,
669
- toggle: N
670
- } = cn(), d = u(f), { t: _ } = p();
671
- return /* @__PURE__ */ s(oe, { children: [
752
+ getReferenceProps: u,
753
+ open: _,
754
+ refs: f,
755
+ setPage: b,
756
+ toggle: m
757
+ } = wn(), h = g(), { t: L } = C();
758
+ return /* @__PURE__ */ s(J, { children: [
672
759
  /* @__PURE__ */ t(
673
760
  "button",
674
761
  {
675
- ref: k.setReference,
762
+ ref: f.setReference,
676
763
  type: "button",
677
764
  className: "controls-button",
678
- "aria-label": _("SETTINGS"),
679
- onClick: N,
680
- "aria-expanded": b,
681
- tabIndex: d != null && d.state.interactionsDisabled ? -1 : 0,
682
- ...g(),
683
- children: /* @__PURE__ */ t(vt, { className: "controls-button-icon icon-rotate" })
765
+ "aria-label": L("SETTINGS"),
766
+ onClick: m,
767
+ "aria-expanded": _,
768
+ tabIndex: h != null && h.state.interactionsDisabled ? -1 : 0,
769
+ ...u(),
770
+ children: /* @__PURE__ */ t(Ln, { className: "controls-button-icon icon-rotate" })
684
771
  }
685
772
  ),
686
- b && /* @__PURE__ */ t(Ke, { context: c, initialFocus: -1, modal: !1, children: /* @__PURE__ */ s(
773
+ _ && /* @__PURE__ */ t(Ye, { context: a, initialFocus: -1, modal: !1, children: /* @__PURE__ */ s(
687
774
  "div",
688
775
  {
689
- className: J.settingsMenu,
690
- ref: k.setFloating,
691
- style: i,
776
+ className: le.settingsMenu,
777
+ ref: f.setFloating,
778
+ style: c,
692
779
  ...l(),
693
780
  children: [
694
781
  /* @__PURE__ */ t(
695
- C.Provider,
782
+ w.Provider,
696
783
  {
697
- value: { setPage: y, backToMain: a, backToCaptions: o, toggle: N },
784
+ value: { setPage: b, backToMain: i, backToCaptions: o, toggle: m },
698
785
  children: /* @__PURE__ */ t(e, {})
699
786
  }
700
787
  ),
701
788
  /* @__PURE__ */ t(
702
- $e,
789
+ ye,
703
790
  {
704
791
  ref: n,
705
- context: c,
706
- className: J.arrow
792
+ context: a,
793
+ className: le.arrow
707
794
  }
708
795
  )
709
796
  ]
@@ -711,129 +798,129 @@ function un() {
711
798
  ) })
712
799
  ] });
713
800
  }
714
- function de(e, n = 1e3) {
801
+ function Me(e, n = 1e3) {
715
802
  return function() {
716
- const a = h("lastKeyboardAction"), [c, i] = T(!1), l = m(() => i(!1), []);
717
- return $(() => {
718
- i(!!a);
719
- const g = setTimeout(l, n);
720
- return () => clearTimeout(g);
721
- }, [a, n]), c ? /* @__PURE__ */ t(e, {}) : null;
803
+ const i = v("lastKeyboardAction"), [a, c] = P(!1), l = p(() => c(!1), []);
804
+ return V(() => {
805
+ c(!!i);
806
+ const u = setTimeout(l, n);
807
+ return () => clearTimeout(u);
808
+ }, [i, n]), a ? /* @__PURE__ */ t(e, {}) : null;
722
809
  };
723
810
  }
724
- const W = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), q = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), me = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), he = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), _e = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), dn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), mn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), hn = "_feedback-overlay_v4lbu_1", _n = "_feedback-message_v4lbu_14", pn = "_feedback-icon_v4lbu_30", gn = "_feedback-icon-animation_v4lbu_1", v = {
811
+ const ne = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), oe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), Te = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), Ie = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), Se = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), Mn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), Tn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), In = "_feedback-overlay_v4lbu_1", Sn = "_feedback-message_v4lbu_14", Hn = "_feedback-icon_v4lbu_30", Vn = "_feedback-icon-animation_v4lbu_1", k = {
725
812
  "feedback-overlay": "_feedback-overlay_v4lbu_1",
726
- feedbackOverlay: hn,
813
+ feedbackOverlay: In,
727
814
  "feedback-message": "_feedback-message_v4lbu_14",
728
- feedbackMessage: _n,
815
+ feedbackMessage: Sn,
729
816
  "feedback-icon": "_feedback-icon_v4lbu_30",
730
- feedbackIcon: pn,
817
+ feedbackIcon: Hn,
731
818
  "feedback-icon-animation": "_feedback-icon-animation_v4lbu_1",
732
- feedbackIconAnimation: gn
819
+ feedbackIconAnimation: Vn
733
820
  };
734
- function fn() {
821
+ function Bn() {
735
822
  var o;
736
- const e = ce();
823
+ const e = _e();
737
824
  switch ((o = e.lastKeyboardAction) == null ? void 0 : o.action) {
738
825
  case "togglePaused":
739
- return /* @__PURE__ */ t("i", { className: v.feedbackIcon, children: e.paused ? /* @__PURE__ */ t(W, {}) : /* @__PURE__ */ t(q, {}) });
826
+ return /* @__PURE__ */ t("i", { className: k.feedbackIcon, children: e.paused ? /* @__PURE__ */ t(ne, {}) : /* @__PURE__ */ t(oe, {}) });
740
827
  case "toggleCaptions":
741
828
  case "nextCaptionLanguage":
742
829
  case "previousCaptionLanguage":
743
- return e.hasCaptions ? /* @__PURE__ */ t("i", { className: v.feedbackIcon, children: /* @__PURE__ */ t(re, {}) }) : null;
830
+ return e.hasCaptions ? /* @__PURE__ */ t("i", { className: k.feedbackIcon, children: /* @__PURE__ */ t(Ne, {}) }) : null;
744
831
  case "volumeUp":
745
832
  case "volumeDown":
746
833
  case "toggleMuted":
747
- return /* @__PURE__ */ t("i", { className: v.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(me, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ t(he, {}) });
834
+ return /* @__PURE__ */ t("i", { className: k.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(Te, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(Se, {}) : /* @__PURE__ */ t(Ie, {}) });
748
835
  case "seekForward":
749
836
  case "seekForward10":
750
- return /* @__PURE__ */ t("i", { className: v.feedbackIcon, children: /* @__PURE__ */ t(dn, { className: "right" }) });
837
+ return /* @__PURE__ */ t("i", { className: k.feedbackIcon, children: /* @__PURE__ */ t(Mn, { className: "right" }) });
751
838
  case "seekBackward":
752
839
  case "seekBackward10":
753
- return /* @__PURE__ */ t("i", { className: v.feedbackIcon, children: /* @__PURE__ */ t(mn, { className: "left" }) });
840
+ return /* @__PURE__ */ t("i", { className: k.feedbackIcon, children: /* @__PURE__ */ t(Tn, { className: "left" }) });
754
841
  default:
755
842
  return null;
756
843
  }
757
844
  }
758
- function bn() {
759
- var a;
760
- const { t: e } = p(), n = ce();
761
- switch ((a = n.lastKeyboardAction) == null ? void 0 : a.action) {
845
+ function Rn() {
846
+ var i;
847
+ const { t: e } = C(), n = _e();
848
+ switch ((i = n.lastKeyboardAction) == null ? void 0 : i.action) {
762
849
  case "toggleCaptions":
763
850
  case "nextCaptionLanguage":
764
851
  case "previousCaptionLanguage":
765
- return /* @__PURE__ */ t("div", { className: v.feedbackMessage, children: n.textTrack ? e("CAPTION_LANGUAGE", { language: n.textTrack.label }) : `${e("CAPTIONS")}: ${e("OFF")}` });
852
+ return /* @__PURE__ */ t("div", { className: k.feedbackMessage, children: n.textTrack ? e("CAPTION_LANGUAGE", { language: n.textTrack.label }) : `${e("CAPTIONS")}: ${e("OFF")}` });
766
853
  case "volumeUp":
767
854
  case "volumeDown":
768
855
  case "toggleMuted":
769
- return /* @__PURE__ */ t("div", { className: v.feedbackMessage, children: n.muted || n.volume === 0 ? e("MUTED") : e("VOLUME", { volume: (n.volume * 100).toFixed(0) }) });
856
+ return /* @__PURE__ */ t("div", { className: k.feedbackMessage, children: n.muted || n.volume === 0 ? e("MUTED") : e("VOLUME", { volume: (n.volume * 100).toFixed(0) }) });
770
857
  case "increasePlaybackRate":
771
858
  case "decreasePlaybackRate":
772
859
  case "resetPlaybackRate":
773
- return /* @__PURE__ */ t("div", { className: v.feedbackMessage, children: e("PLAYBACK_SPEED_MESSAGE", { speed: n.playbackRate }) });
860
+ return /* @__PURE__ */ t("div", { className: k.feedbackMessage, children: e("PLAYBACK_SPEED_MESSAGE", { speed: n.playbackRate }) });
774
861
  case "seekForward":
775
- return /* @__PURE__ */ t("div", { className: v.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 5 }) });
862
+ return /* @__PURE__ */ t("div", { className: k.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 5 }) });
776
863
  case "seekForward10":
777
- return /* @__PURE__ */ t("div", { className: v.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 10 }) });
864
+ return /* @__PURE__ */ t("div", { className: k.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 10 }) });
778
865
  case "seekBackward":
779
- return /* @__PURE__ */ t("div", { className: v.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 5 }) });
866
+ return /* @__PURE__ */ t("div", { className: k.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 5 }) });
780
867
  case "seekBackward10":
781
- return /* @__PURE__ */ t("div", { className: v.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 10 }) });
868
+ return /* @__PURE__ */ t("div", { className: k.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 10 }) });
782
869
  default:
783
870
  return null;
784
871
  }
785
872
  }
786
- const vn = de(fn, 500), Cn = de(bn, 1e3);
787
- function kn() {
788
- return /* @__PURE__ */ s("div", { className: v.feedbackOverlay, children: [
789
- /* @__PURE__ */ t(vn, {}),
790
- /* @__PURE__ */ t(Cn, {})
873
+ const An = Me(Bn, 500), En = Me(Rn, 1e3);
874
+ function On() {
875
+ return /* @__PURE__ */ s("div", { className: k.feedbackOverlay, children: [
876
+ /* @__PURE__ */ t(An, {}),
877
+ /* @__PURE__ */ t(En, {})
791
878
  ] });
792
879
  }
793
- const wn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1383 0.999867V3.66268H18.4561L3.66281 18.4546V14.1382H1V23H9.86449V20.3372H5.54542L20.3387 5.54528V9.86303H23.0001V0.999867H14.1383Z", fill: "currentColor" }) }), yn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.562 6.58944L22.1514 0L24.0005 1.84907L17.4111 8.43851H21.6506V11.0552H12.9453V2.34861H15.562V6.58944ZM2.34861 15.5615V12.9461H11.0539V21.6501H8.43982V17.4106L1.84907 24L0 22.1509L6.59075 15.5615H2.34861Z", fill: "currentColor" }) }), Ln = "_full-screen-button_1xm32_2", Nn = {
880
+ const Fn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1383 0.999867V3.66268H18.4561L3.66281 18.4546V14.1382H1V23H9.86449V20.3372H5.54542L20.3387 5.54528V9.86303H23.0001V0.999867H14.1383Z", fill: "currentColor" }) }), Zn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.562 6.58944L22.1514 0L24.0005 1.84907L17.4111 8.43851H21.6506V11.0552H12.9453V2.34861H15.562V6.58944ZM2.34861 15.5615V12.9461H11.0539V21.6501H8.43982V17.4106L1.84907 24L0 22.1509L6.59075 15.5615H2.34861Z", fill: "currentColor" }) }), $n = "_full-screen-button_1xm32_2", Kn = {
794
881
  "full-screen-button": "_full-screen-button_1xm32_2",
795
- fullScreenButton: Ln
882
+ fullScreenButton: $n
796
883
  };
797
- function Tn() {
798
- const e = h("fullscreen"), n = u(f);
799
- return n && !n.hideFullScreen ? /* @__PURE__ */ t(
800
- ie,
884
+ function Dn() {
885
+ const e = v("fullscreen"), n = g();
886
+ return B().hideFullScreen ? null : /* @__PURE__ */ t(
887
+ pe,
801
888
  {
802
- tabIndex: n != null && n.state.interactionsDisabled ? -1 : 0,
803
- className: `controls-button ${Nn.fullScreenButton}`,
804
- children: e ? /* @__PURE__ */ t(yn, { className: "controls-button-icon" }) : /* @__PURE__ */ t(wn, { className: "controls-button-icon" })
889
+ tabIndex: n.state.interactionsDisabled ? -1 : 0,
890
+ className: `controls-button ${Kn.fullScreenButton}`,
891
+ children: e ? /* @__PURE__ */ t(Zn, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Fn, { className: "controls-button-icon" })
805
892
  }
806
- ) : null;
893
+ );
807
894
  }
808
- const Mn = "_gestures-container_1fn3b_1", In = "_gesture_1fn3b_1", X = {
895
+ const zn = "_gestures-container_1fn3b_1", jn = "_gesture_1fn3b_1", re = {
809
896
  "gestures-container": "_gestures-container_1fn3b_1",
810
- gesturesContainer: Mn,
811
- gesture: In
897
+ gesturesContainer: zn,
898
+ gesture: jn
812
899
  };
813
- function Sn() {
814
- const e = z(), n = () => {
900
+ function Un() {
901
+ const e = Z(), n = () => {
815
902
  e.togglePaused();
816
903
  };
817
- return /* @__PURE__ */ t("div", { className: X.gesturesContainer, children: /* @__PURE__ */ t("div", { "aria-hidden": !0, className: X.gesture, onClick: n }) });
904
+ return /* @__PURE__ */ t("div", { className: re.gesturesContainer, children: /* @__PURE__ */ t("div", { "aria-hidden": !0, className: re.gesture, onClick: n }) });
818
905
  }
819
- const Pn = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), pe = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94968 7.74766L3.99993 2.79791L2.79785 3.99999L7.7476 8.94974L2.79785 13.8995L3.99993 15.1016L8.94968 10.1518L13.8994 15.1016L15.1015 13.8995L10.1518 8.94974L15.1015 3.99999L13.8994 2.79791L8.94968 7.74766Z", fill: "currentColor" }) }), Bn = "_keyboard-shortcuts-overlay_y5kv6_1", Rn = "_keyboard-shortcuts-button_y5kv6_67", Hn = "_close-button_y5kv6_93", U = {
906
+ const qn = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("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" }) }), He = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94968 7.74766L3.99993 2.79791L2.79785 3.99999L7.7476 8.94974L2.79785 13.8995L3.99993 15.1016L8.94968 10.1518L13.8994 15.1016L15.1015 13.8995L10.1518 8.94974L15.1015 3.99999L13.8994 2.79791L8.94968 7.74766Z", fill: "currentColor" }) }), Wn = "_keyboard-shortcuts-overlay_y5kv6_1", Gn = "_keyboard-shortcuts-button_y5kv6_67", Qn = "_close-button_y5kv6_93", Y = {
820
907
  "keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_y5kv6_1",
821
- keyboardShortcutsOverlay: Bn,
908
+ keyboardShortcutsOverlay: Wn,
822
909
  "keyboard-shortcuts-button": "_keyboard-shortcuts-button_y5kv6_67",
823
- keyboardShortcutsButton: Rn,
910
+ keyboardShortcutsButton: Gn,
824
911
  "close-button": "_close-button_y5kv6_93",
825
- closeButton: Hn
912
+ closeButton: Qn
826
913
  };
827
- function Vn({ onClose: e }) {
828
- const { t: n } = p();
829
- I(e);
830
- const o = (a) => {
831
- a && a.focus();
914
+ function Yn({ onClose: e }) {
915
+ const { t: n } = C();
916
+ T(e);
917
+ const o = (i) => {
918
+ i && i.focus();
832
919
  };
833
920
  return /* @__PURE__ */ s(
834
921
  "div",
835
922
  {
836
- className: U.keyboardShortcutsOverlay,
923
+ className: Y.keyboardShortcutsOverlay,
837
924
  tabIndex: 0,
838
925
  ref: o,
839
926
  children: [
@@ -843,10 +930,10 @@ function Vn({ onClose: e }) {
843
930
  "button",
844
931
  {
845
932
  type: "button",
846
- className: U.closeButton,
933
+ className: Y.closeButton,
847
934
  onClick: e,
848
935
  "aria-label": n("CLOSE"),
849
- children: /* @__PURE__ */ t(pe, {})
936
+ children: /* @__PURE__ */ t(He, {})
850
937
  }
851
938
  )
852
939
  ] }),
@@ -937,174 +1024,464 @@ function Vn({ onClose: e }) {
937
1024
  }
938
1025
  );
939
1026
  }
940
- function xn() {
941
- const [e, n] = T(!1), [o, a] = T(!1), [c, i] = T(!1), l = u(f), g = h("playing"), b = z(), { t: k } = p(), y = m(() => {
942
- n(!0), l == null || l.disableInteractions(), g && (i(!0), b.pause());
943
- }, [g, b, l]), N = m(() => {
944
- n(!1), a(!0), l == null || l.enableInteractions(), c && (i(!1), b.play());
945
- }, [c, b, l]), d = m(
946
- (_) => o && (_ == null ? void 0 : _.focus()),
1027
+ function Jn() {
1028
+ const [e, n] = P(!1), [o, i] = P(!1), [a, c] = P(!1), l = g(), u = v("playing"), _ = Z(), { t: f } = C(), b = p(() => {
1029
+ n(!0), l.disableInteractions(), u && (c(!0), _.pause());
1030
+ }, [u, _, l]), m = p(() => {
1031
+ n(!1), i(!0), l.enableInteractions(), a && (c(!1), _.play());
1032
+ }, [a, _, l]), h = p(
1033
+ (L) => o && (L == null ? void 0 : L.focus()),
947
1034
  [o]
948
1035
  );
949
- return e ? /* @__PURE__ */ t(Vn, { onClose: N }) : /* @__PURE__ */ t(
1036
+ return e ? /* @__PURE__ */ t(Yn, { onClose: m }) : /* @__PURE__ */ t(
950
1037
  "button",
951
1038
  {
952
- ref: d,
953
- "aria-label": k("KEYBOARD_SHORTCUTS"),
1039
+ ref: h,
1040
+ "aria-label": f("KEYBOARD_SHORTCUTS"),
954
1041
  type: "button",
955
- className: U.keyboardShortcutsButton,
956
- onClick: y,
957
- tabIndex: 0,
958
- children: /* @__PURE__ */ t(Pn, {})
1042
+ className: Y.keyboardShortcutsButton,
1043
+ onClick: b,
1044
+ tabIndex: l.state.interactionsDisabled ? -1 : 0,
1045
+ children: /* @__PURE__ */ t(qn, {})
959
1046
  }
960
1047
  );
961
1048
  }
962
- const An = "_play-pause-button_kyuc5_1", En = {
1049
+ const Xn = "_play-pause-button_kyuc5_1", eo = {
963
1050
  "play-pause-button": "_play-pause-button_kyuc5_1",
964
- playPauseButton: An
1051
+ playPauseButton: Xn
965
1052
  };
966
- function On() {
967
- const e = se(), n = u(f), o = h("paused");
1053
+ function to() {
1054
+ const e = ee(), n = g(), o = v("paused");
968
1055
  return e ? /* @__PURE__ */ t(
969
- Me,
1056
+ De,
970
1057
  {
971
- tabIndex: n != null && n.state.interactionsDisabled ? -1 : 0,
972
- className: `${En.playPauseButton} controls-button`,
973
- onKeyDown: (a) => {
974
- a.key === " " && (e == null || e.$state.lastKeyboardAction.set({
1058
+ tabIndex: n.state.interactionsDisabled ? -1 : 0,
1059
+ className: `${eo.playPauseButton} controls-button`,
1060
+ onKeyDown: (i) => {
1061
+ i.key === " " && (e == null || e.$state.lastKeyboardAction.set({
975
1062
  action: "togglePaused",
976
- event: a.nativeEvent
1063
+ event: i.nativeEvent
977
1064
  }));
978
1065
  },
979
- children: o ? /* @__PURE__ */ t(q, { className: "controls-button-icon" }) : /* @__PURE__ */ t(W, { className: "controls-button-icon" })
1066
+ children: o ? /* @__PURE__ */ t(oe, { className: "controls-button-icon" }) : /* @__PURE__ */ t(ne, { className: "controls-button-icon" })
980
1067
  }
981
1068
  ) : null;
982
1069
  }
983
- const Fn = "_poster_195hi_1", Zn = {
984
- poster: Fn
1070
+ const no = "_poster_195hi_1", oo = {
1071
+ poster: no
985
1072
  };
986
- function Kn({ src: e }) {
987
- const n = h("source");
988
- return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(Ie, { src: e, className: Zn.poster });
1073
+ function io({ src: e }) {
1074
+ const n = v("source");
1075
+ return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(ze, { src: e, className: oo.poster });
989
1076
  }
990
- const $n = "_small-layout-overlay_1vli4_1", Dn = "_small-layout-button_1vli4_14", jn = "_small-layout-icon-play_1vli4_24", Un = "_small-layout-icon-pause_1vli4_30", zn = "_full-screen-close-icon_1vli4_36", Gn = "_fade-out_1vli4_1", V = {
1077
+ const ao = "_small-layout-overlay_1vli4_1", so = "_small-layout-button_1vli4_14", co = "_small-layout-icon-play_1vli4_24", lo = "_small-layout-icon-pause_1vli4_30", ro = "_full-screen-close-icon_1vli4_36", uo = "_fade-out_1vli4_1", E = {
991
1078
  "small-layout-overlay": "_small-layout-overlay_1vli4_1",
992
- smallLayoutOverlay: $n,
1079
+ smallLayoutOverlay: ao,
993
1080
  "small-layout-button": "_small-layout-button_1vli4_14",
994
- smallLayoutButton: Dn,
1081
+ smallLayoutButton: so,
995
1082
  "small-layout-icon-play": "_small-layout-icon-play_1vli4_24",
996
- smallLayoutIconPlay: jn,
1083
+ smallLayoutIconPlay: co,
997
1084
  "small-layout-icon-pause": "_small-layout-icon-pause_1vli4_30",
998
- smallLayoutIconPause: Un,
1085
+ smallLayoutIconPause: lo,
999
1086
  "full-screen-close-icon": "_full-screen-close-icon_1vli4_36",
1000
- fullScreenCloseIcon: zn,
1087
+ fullScreenCloseIcon: ro,
1001
1088
  "fade-out": "_fade-out_1vli4_1",
1002
- fadeOut: Gn
1089
+ fadeOut: uo
1003
1090
  };
1004
- function Wn() {
1005
- return /* @__PURE__ */ s("div", { className: V.smallLayoutOverlay, children: [
1006
- /* @__PURE__ */ t(ie, { className: V.fullScreenCloseIcon, children: /* @__PURE__ */ t(pe, {}) }),
1007
- /* @__PURE__ */ s("i", { className: V.smallLayoutButton, children: [
1008
- /* @__PURE__ */ t(q, { className: V.smallLayoutIconPlay }),
1009
- /* @__PURE__ */ t(W, { className: V.smallLayoutIconPause })
1091
+ function mo() {
1092
+ return /* @__PURE__ */ s("div", { className: E.smallLayoutOverlay, children: [
1093
+ /* @__PURE__ */ t(pe, { className: E.fullScreenCloseIcon, children: /* @__PURE__ */ t(He, {}) }),
1094
+ /* @__PURE__ */ s("i", { className: E.smallLayoutButton, children: [
1095
+ /* @__PURE__ */ t(oe, { className: E.smallLayoutIconPlay }),
1096
+ /* @__PURE__ */ t(ne, { className: E.smallLayoutIconPause })
1010
1097
  ] })
1011
1098
  ] });
1012
1099
  }
1013
- const qn = "_time-indicator_1ght2_1", Qn = {
1100
+ const ho = "_time-indicator_1ght2_1", _o = {
1014
1101
  "time-indicator": "_time-indicator_1ght2_1",
1015
- timeIndicator: qn
1102
+ timeIndicator: ho
1016
1103
  };
1017
- function Yn() {
1018
- return /* @__PURE__ */ s("div", { className: Qn.timeIndicator, children: [
1019
- /* @__PURE__ */ t(Q, { type: "current" }),
1104
+ function po() {
1105
+ return /* @__PURE__ */ s("div", { className: _o.timeIndicator, children: [
1106
+ /* @__PURE__ */ t(ae, { type: "current" }),
1020
1107
  "/",
1021
- /* @__PURE__ */ t(Q, { type: "duration" })
1108
+ /* @__PURE__ */ t(ae, { type: "duration" })
1022
1109
  ] });
1023
1110
  }
1024
- const Jn = "_comment-markers_1xw2k_1", Xn = "_comment-marker_1xw2k_1", eo = "_timeline-wrapper_1xw2k_21", to = "_track_1xw2k_34", no = "_thumb_1xw2k_47", oo = "_root_1xw2k_61", ao = "_track-inner_1xw2k_91", so = "_progress_1xw2k_97", co = "_track-fill_1xw2k_103", w = {
1025
- "comment-markers": "_comment-markers_1xw2k_1",
1026
- commentMarkers: Jn,
1027
- "comment-marker": "_comment-marker_1xw2k_1",
1028
- commentMarker: Xn,
1029
- "timeline-wrapper": "_timeline-wrapper_1xw2k_21",
1030
- timelineWrapper: eo,
1031
- track: to,
1032
- thumb: no,
1033
- root: oo,
1034
- "track-inner": "_track-inner_1xw2k_91",
1035
- trackInner: ao,
1036
- progress: so,
1037
- "track-fill": "_track-fill_1xw2k_103",
1038
- trackFill: co
1111
+ const vo = "_comment-markers_1k8rn_1", fo = "_comment-marker_1k8rn_1", Co = "_timeline-wrapper_1k8rn_21", go = "_track_1k8rn_35", bo = "_thumb_1k8rn_48", ko = "_root_1k8rn_62", yo = "_track-inner_1k8rn_92", wo = "_progress_1k8rn_98", Lo = "_track-fill_1k8rn_104", Po = "_pins_1k8rn_120", No = "_pin-button_1k8rn_133", xo = "_annotation-pin_1k8rn_153", Mo = "_quiz-pin_1k8rn_158", To = "_annotation-pin-child_1k8rn_163", Io = "_quiz-pin-child_1k8rn_167", So = "_interactive-pin-container_1k8rn_172", Ho = "_interactive-pin-wrapper_1k8rn_182", Vo = "_interactive-pin-icon_1k8rn_188", Bo = "_interactive-pin_1k8rn_172", Ro = "_bg_1k8rn_202", Ao = "_symbol_1k8rn_206", Eo = "_interactive-pin-button_1k8rn_211", Oo = "_interactive-pin-menu_1k8rn_231", Fo = "_interactive-pin-menu-item_1k8rn_245", Zo = "_arrow_1k8rn_266", d = {
1112
+ "comment-markers": "_comment-markers_1k8rn_1",
1113
+ commentMarkers: vo,
1114
+ "comment-marker": "_comment-marker_1k8rn_1",
1115
+ commentMarker: fo,
1116
+ "timeline-wrapper": "_timeline-wrapper_1k8rn_21",
1117
+ timelineWrapper: Co,
1118
+ track: go,
1119
+ thumb: bo,
1120
+ root: ko,
1121
+ "track-inner": "_track-inner_1k8rn_92",
1122
+ trackInner: yo,
1123
+ progress: wo,
1124
+ "track-fill": "_track-fill_1k8rn_104",
1125
+ trackFill: Lo,
1126
+ pins: Po,
1127
+ "pin-button": "_pin-button_1k8rn_133",
1128
+ pinButton: No,
1129
+ "annotation-pin": "_annotation-pin_1k8rn_153",
1130
+ annotationPin: xo,
1131
+ "quiz-pin": "_quiz-pin_1k8rn_158",
1132
+ quizPin: Mo,
1133
+ "annotation-pin-child": "_annotation-pin-child_1k8rn_163",
1134
+ annotationPinChild: To,
1135
+ "quiz-pin-child": "_quiz-pin-child_1k8rn_167",
1136
+ quizPinChild: Io,
1137
+ "interactive-pin-container": "_interactive-pin-container_1k8rn_172",
1138
+ interactivePinContainer: So,
1139
+ "interactive-pin-wrapper": "_interactive-pin-wrapper_1k8rn_182",
1140
+ interactivePinWrapper: Ho,
1141
+ "interactive-pin-icon": "_interactive-pin-icon_1k8rn_188",
1142
+ interactivePinIcon: Vo,
1143
+ "interactive-pin": "_interactive-pin_1k8rn_172",
1144
+ interactivePin: Bo,
1145
+ bg: Ro,
1146
+ symbol: Ao,
1147
+ "interactive-pin-button": "_interactive-pin-button_1k8rn_211",
1148
+ interactivePinButton: Eo,
1149
+ "interactive-pin-menu": "_interactive-pin-menu_1k8rn_231",
1150
+ interactivePinMenu: Oo,
1151
+ "interactive-pin-menu-item": "_interactive-pin-menu-item_1k8rn_245",
1152
+ interactivePinMenuItem: Fo,
1153
+ arrow: Zo
1154
+ }, $o = {
1155
+ annotation: d.annotationPin,
1156
+ quiz: d.quizPin
1039
1157
  };
1040
- function io() {
1041
- const e = u(f), n = h("duration");
1042
- return e != null && e.hasComments && (e != null && e.state.commentsEnabled) ? /* @__PURE__ */ t("div", { className: w.commentMarkers, children: e.comments.map((o) => /* @__PURE__ */ t(
1158
+ function Ve({
1159
+ type: e,
1160
+ position: n,
1161
+ children: o,
1162
+ onClick: i
1163
+ }) {
1164
+ const a = g();
1165
+ return /* @__PURE__ */ t(
1166
+ "button",
1167
+ {
1168
+ type: "button",
1169
+ tabIndex: a.state.interactionsDisabled ? -1 : 0,
1170
+ className: d.pinButton,
1171
+ style: { left: `${n}%` },
1172
+ onClick: i,
1173
+ children: /* @__PURE__ */ s(
1174
+ "svg",
1175
+ {
1176
+ className: $o[e],
1177
+ width: "26",
1178
+ height: "32",
1179
+ viewBox: "0 0 26 32",
1180
+ xmlns: "http://www.w3.org/2000/svg",
1181
+ children: [
1182
+ /* @__PURE__ */ t("path", { d: "M25.5 13C25.5 15.4774 24.7798 17.785 23.5376 19.7268C21.932 22.1411 20.1501 23.9459 18.2945 25.7433C18.0942 25.9373 17.8929 26.1314 17.6908 26.3262C16.157 27.8047 14.5793 29.3256 13.0545 31.2007C11.5227 29.3377 9.93394 27.8282 8.39067 26.362C8.17552 26.1576 7.96126 25.954 7.74816 25.7505C5.87029 23.9566 4.07076 22.1526 2.46259 19.7271C1.22024 17.7852 0.5 15.4775 0.5 13C0.5 6.09644 6.09644 0.5 13 0.5C19.9036 0.5 25.5 6.09644 25.5 13Z" }),
1183
+ o
1184
+ ]
1185
+ }
1186
+ )
1187
+ }
1188
+ );
1189
+ }
1190
+ function Ko(e) {
1191
+ return /* @__PURE__ */ t(Ve, { type: "annotation", ...e, children: /* @__PURE__ */ t(
1192
+ "path",
1193
+ {
1194
+ className: d.annotationPinChild,
1195
+ fillRule: "evenodd",
1196
+ clipRule: "evenodd",
1197
+ d: "M7 8V19.25H8.875V18.875C8.875 17.8415 9.7165 17 10.75 17H19V8H7ZM10 11.75H16V11H10V11.75ZM14.5 14H10V13.25H14.5V14Z",
1198
+ fill: "currentColor",
1199
+ stroke: "none"
1200
+ }
1201
+ ) });
1202
+ }
1203
+ function Do(e) {
1204
+ return /* @__PURE__ */ t(Ve, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ t("circle", { className: d.quizPinChild, cx: "13", cy: "13", r: "6" }) : /* @__PURE__ */ t(
1205
+ "text",
1206
+ {
1207
+ className: d.quizPinChild,
1208
+ x: "50%",
1209
+ y: "56%",
1210
+ textAnchor: "middle",
1211
+ fill: "currentColor",
1212
+ stroke: "none",
1213
+ children: e.ordinal
1214
+ }
1215
+ ) });
1216
+ }
1217
+ function zo(e, n) {
1218
+ return e.map((o, i) => ({
1219
+ id: o.id,
1220
+ time: o.time,
1221
+ type: "annotation",
1222
+ ordinal: i + 1,
1223
+ onClick: () => n(o)
1224
+ }));
1225
+ }
1226
+ function jo(e, n) {
1227
+ const o = /* @__PURE__ */ new Map();
1228
+ e.forEach((c) => {
1229
+ var u;
1230
+ const l = c.time;
1231
+ o.has(l) || o.set(l, []), (u = o.get(l)) == null || u.push(c);
1232
+ });
1233
+ const i = [];
1234
+ let a = 1;
1235
+ return o.forEach((c, l) => {
1236
+ i.push({
1237
+ id: c.map((u) => u.id).join("-"),
1238
+ time: l,
1239
+ type: "quiz",
1240
+ ordinal: a + 1,
1241
+ onClick: () => n(c),
1242
+ multiple: c.length > 1
1243
+ }), a++;
1244
+ }), i;
1245
+ }
1246
+ function Uo(e, n, o, i) {
1247
+ switch (e.type) {
1248
+ case "annotation": {
1249
+ const a = () => i ? e.onClick() : o.seek(e.time);
1250
+ return /* @__PURE__ */ t(
1251
+ Ko,
1252
+ {
1253
+ position: e.time / n * 100,
1254
+ onClick: a
1255
+ },
1256
+ e.id
1257
+ );
1258
+ }
1259
+ case "quiz":
1260
+ return /* @__PURE__ */ t(
1261
+ Do,
1262
+ {
1263
+ position: e.time / n * 100,
1264
+ ordinal: e.ordinal,
1265
+ multiple: e.multiple,
1266
+ onClick: e.onClick
1267
+ },
1268
+ e.id
1269
+ );
1270
+ default:
1271
+ return null;
1272
+ }
1273
+ }
1274
+ function qo() {
1275
+ const e = Z(), n = v("duration"), o = B(), i = F(() => [
1276
+ ...zo(
1277
+ o.annotations,
1278
+ o.onAnnotationClick
1279
+ ),
1280
+ ...jo(o.quizMarkers, o.onQuizMarkerClick)
1281
+ ].sort((c, l) => c.time - l.time).map((c) => Uo(c, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
1282
+ return /* @__PURE__ */ t("div", { className: d.pins, children: i });
1283
+ }
1284
+ function Wo() {
1285
+ const e = v("duration"), n = B(), o = g();
1286
+ return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: d.commentMarkers, children: n.comments.map((i) => /* @__PURE__ */ t(
1043
1287
  "span",
1044
1288
  {
1045
- className: w.commentMarker,
1289
+ className: d.commentMarker,
1046
1290
  style: {
1047
- left: `${o.timestamp / n * 100}%`,
1048
- width: `${ue / n * 100}%`
1291
+ left: `${i.timestamp / e * 100}%`,
1292
+ width: `${xe / e * 100}%`
1049
1293
  }
1050
1294
  },
1051
- o.id
1295
+ i.id
1052
1296
  )) }) : null;
1053
1297
  }
1054
- const lo = `${w.progress} ${w.trackInner}`, ro = `${w.trackFill} ${w.trackInner}`;
1055
- function ee({ className: e }) {
1056
- const n = u(f), o = e ? `${w.timelineWrapper} ${e}` : w.timelineWrapper;
1057
- return /* @__PURE__ */ s("div", { className: o, children: [
1298
+ function Go({ position: e }) {
1299
+ const [n, o] = P(!1), i = B(), a = p(() => i.interactiveMenuElements.length > 0 ? o((h) => !h) : i.onInteractivePinClick(e), [
1300
+ i.interactiveMenuElements,
1301
+ i.onInteractivePinClick,
1302
+ e
1303
+ ]), c = he(null), { refs: l, floatingStyles: u, context: _ } = ve({
1304
+ open: n,
1305
+ onOpenChange: o,
1306
+ whileElementsMounted: fe,
1307
+ placement: "top",
1308
+ middleware: [
1309
+ Je(),
1310
+ Xe(6),
1311
+ Ce(),
1312
+ ge({
1313
+ element: c
1314
+ })
1315
+ ]
1316
+ }), f = be(_), { getReferenceProps: b, getFloatingProps: m } = ke([f]);
1317
+ return /* @__PURE__ */ s(J, { children: [
1318
+ /* @__PURE__ */ t(
1319
+ "button",
1320
+ {
1321
+ type: "button",
1322
+ onClick: a,
1323
+ className: d.interactivePinButton,
1324
+ ref: l.setReference,
1325
+ style: { left: `${e}%` },
1326
+ ...b(),
1327
+ children: /* @__PURE__ */ s(
1328
+ "svg",
1329
+ {
1330
+ className: d.interactivePin,
1331
+ width: "36",
1332
+ height: "44",
1333
+ fill: "none",
1334
+ viewBox: "0 0 36 44",
1335
+ xmlns: "http://www.w3.org/2000/svg",
1336
+ children: [
1337
+ /* @__PURE__ */ t(
1338
+ "path",
1339
+ {
1340
+ className: d.bg,
1341
+ d: "M 33.1703,27.499961 C 34.9615,24.721661 36,21.418761 36,17.874961 36,8.0028612 27.9411,-3.8819277e-5 18,-3.8819277e-5 8.0588999,-3.8819277e-5 -1.5e-7,8.0028612 -1.5e-7,17.874961 c 0,3.5438 1.03844995,6.8467 2.82964995,9.625 4.5447501,6.8094 10.1600502,10.1014 15.2487502,16.5 5.0364,-6.3985 10.5573,-9.7259 15.0919,-16.5 z"
1342
+ }
1343
+ ),
1344
+ /* @__PURE__ */ t(
1345
+ "path",
1346
+ {
1347
+ className: d.symbol,
1348
+ d: "m 35.499961,17.877772 c 0,3.443549 -1.008198,6.652061 -2.747494,9.351891 -2.235095,3.338633 -4.71529,5.832631 -7.286584,8.306425 -0.277599,0.267143 -0.556499,0.534085 -0.836198,0.801928 -2.174595,2.082232 -4.40389,4.216673 -6.553385,6.870196 -2.158995,-2.636621 -4.40379,-4.754859 -6.591985,-6.819788 -0.2979,-0.281145 -0.594699,-0.561289 -0.890198,-0.841534 C 7.9918219,33.077896 5.4869279,30.584698 3.2477829,27.230063 1.5082968,24.530133 0.50003905,21.321521 0.50003905,17.877772 0.50003905,8.2835422 8.3317219,0.50000048 18,0.50000048 c 9.668278,0 17.499961,7.78354172 17.499961,17.37777152 z"
1349
+ }
1350
+ ),
1351
+ /* @__PURE__ */ t(
1352
+ "path",
1353
+ {
1354
+ className: d.interactivePinIcon,
1355
+ "data-open": n,
1356
+ fillRule: "evenodd",
1357
+ clipRule: "evenodd",
1358
+ d: "m 18.75,17.388467 v -6.25 h -1.5 v 6.25 H 11 v 1.5 h 6.25 v 6.25 h 1.5 v -6.25 H 25 v -1.5 z",
1359
+ fill: "white"
1360
+ }
1361
+ )
1362
+ ]
1363
+ }
1364
+ )
1365
+ }
1366
+ ),
1367
+ n && /* @__PURE__ */ s(
1368
+ "div",
1369
+ {
1370
+ ref: l.setFloating,
1371
+ style: u,
1372
+ className: d.interactivePinMenu,
1373
+ ...m(),
1374
+ children: [
1375
+ i.interactiveMenuElements.map(({ id: h, text: L, onClick: R }) => /* @__PURE__ */ s(
1376
+ "button",
1377
+ {
1378
+ type: "button",
1379
+ className: d.interactivePinMenuItem,
1380
+ onClick: () => {
1381
+ R(h, e), o(!1);
1382
+ },
1383
+ children: [
1384
+ /* @__PURE__ */ t(
1385
+ "svg",
1386
+ {
1387
+ width: "16",
1388
+ height: "16",
1389
+ viewBox: "0 0 16 16",
1390
+ fill: "none",
1391
+ xmlns: "http://www.w3.org/2000/svg",
1392
+ children: /* @__PURE__ */ t(
1393
+ "path",
1394
+ {
1395
+ fillRule: "evenodd",
1396
+ clipRule: "evenodd",
1397
+ d: "M7.33339 7.33339H1.77783V8.66672H7.33339V14.2223H8.66672V8.66672H14.2223V7.33339H8.66672V1.77783H7.33339V7.33339Z",
1398
+ fill: "#273540"
1399
+ }
1400
+ )
1401
+ }
1402
+ ),
1403
+ L
1404
+ ]
1405
+ },
1406
+ h
1407
+ )),
1408
+ /* @__PURE__ */ t(
1409
+ ye,
1410
+ {
1411
+ ref: c,
1412
+ context: _,
1413
+ className: d.arrow
1414
+ }
1415
+ )
1416
+ ]
1417
+ }
1418
+ )
1419
+ ] });
1420
+ }
1421
+ function Qo() {
1422
+ const e = v("duration"), o = v("currentTime") / e * 100;
1423
+ return /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(Go, { position: o }) }) });
1424
+ }
1425
+ function Yo() {
1426
+ const e = v("paused"), n = g();
1427
+ return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(Qo, {}) : null;
1428
+ }
1429
+ const Jo = `${d.progress} ${d.trackInner}`, Xo = `${d.trackFill} ${d.trackInner}`;
1430
+ function ue({ className: e }) {
1431
+ const n = g(), { hasAnnotations: o, hasQuizmarkers: i, interactive: a } = B(), c = e ? `${d.timelineWrapper} ${e}` : d.timelineWrapper;
1432
+ return /* @__PURE__ */ s("div", { className: c, children: [
1433
+ a ? /* @__PURE__ */ t(Yo, {}) : null,
1434
+ a || o || i ? /* @__PURE__ */ t(qo, {}) : null,
1058
1435
  /* @__PURE__ */ s(
1059
- H.Root,
1436
+ A.Root,
1060
1437
  {
1061
- className: w.root,
1062
- tabIndex: n != null && n.state.interactionsDisabled ? -1 : 0,
1438
+ className: d.root,
1439
+ tabIndex: n.state.interactionsDisabled ? -1 : 0,
1063
1440
  children: [
1064
- /* @__PURE__ */ s(H.Track, { className: w.track, children: [
1065
- /* @__PURE__ */ t(H.Progress, { className: lo }),
1066
- /* @__PURE__ */ t(H.TrackFill, { className: ro })
1441
+ /* @__PURE__ */ s(A.Track, { className: d.track, children: [
1442
+ /* @__PURE__ */ t(A.Progress, { className: Jo }),
1443
+ /* @__PURE__ */ t(A.TrackFill, { className: Xo })
1067
1444
  ] }),
1068
- /* @__PURE__ */ t(H.Thumb, { className: w.thumb })
1445
+ /* @__PURE__ */ t(A.Thumb, { className: d.thumb })
1069
1446
  ]
1070
1447
  }
1071
1448
  ),
1072
- /* @__PURE__ */ t(io, {})
1449
+ /* @__PURE__ */ t(Wo, {})
1073
1450
  ] });
1074
1451
  }
1075
- const uo = "_wrapper_d2nt6_1", mo = "_track_d2nt6_6", ho = "_thumb_d2nt6_16", _o = "_track-fill_d2nt6_30", po = "_root_d2nt6_48", x = {
1076
- wrapper: uo,
1077
- track: mo,
1078
- thumb: ho,
1452
+ const ei = "_wrapper_d2nt6_1", ti = "_track_d2nt6_6", ni = "_thumb_d2nt6_16", oi = "_track-fill_d2nt6_30", ii = "_root_d2nt6_48", O = {
1453
+ wrapper: ei,
1454
+ track: ti,
1455
+ thumb: ni,
1079
1456
  "track-fill": "_track-fill_d2nt6_30",
1080
- trackFill: _o,
1081
- root: po
1457
+ trackFill: oi,
1458
+ root: ii
1082
1459
  };
1083
- function go() {
1084
- const e = h("volume"), n = h("muted"), o = u(f);
1085
- return /* @__PURE__ */ s("div", { className: x.wrapper, children: [
1460
+ function ai() {
1461
+ const e = v("volume"), n = v("muted"), o = g();
1462
+ return /* @__PURE__ */ s("div", { className: O.wrapper, children: [
1086
1463
  /* @__PURE__ */ t(
1087
- Se,
1464
+ je,
1088
1465
  {
1089
- tabIndex: o != null && o.state.interactionsDisabled ? -1 : 0,
1466
+ tabIndex: o.state.interactionsDisabled ? -1 : 0,
1090
1467
  className: "controls-button",
1091
- children: n || e == 0 ? /* @__PURE__ */ t(me, { className: "controls-button-icon" }) : e < 0.5 ? /* @__PURE__ */ t(he, { className: "controls-button-icon" }) : /* @__PURE__ */ t(_e, { className: "controls-button-icon" })
1468
+ children: n || e == 0 ? /* @__PURE__ */ t(Te, { className: "controls-button-icon" }) : e < 0.5 ? /* @__PURE__ */ t(Ie, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Se, { className: "controls-button-icon" })
1092
1469
  }
1093
1470
  ),
1094
1471
  /* @__PURE__ */ s(
1095
- O.Root,
1472
+ j.Root,
1096
1473
  {
1097
- className: x.root,
1098
- tabIndex: o != null && o.state.interactionsDisabled ? -1 : 0,
1474
+ className: O.root,
1475
+ tabIndex: o.state.interactionsDisabled ? -1 : 0,
1099
1476
  children: [
1100
- /* @__PURE__ */ t(O.Track, { className: x.track, children: /* @__PURE__ */ t(O.TrackFill, { className: x.trackFill }) }),
1101
- /* @__PURE__ */ t(O.Thumb, { className: x.thumb })
1477
+ /* @__PURE__ */ t(j.Track, { className: O.track, children: /* @__PURE__ */ t(j.TrackFill, { className: O.trackFill }) }),
1478
+ /* @__PURE__ */ t(j.Thumb, { className: O.thumb })
1102
1479
  ]
1103
1480
  }
1104
1481
  )
1105
1482
  ] });
1106
1483
  }
1107
- const te = {
1484
+ const de = {
1108
1485
  togglePaused: ["Space", "Enter", "k"],
1109
1486
  seekForward: ["ArrowRight"],
1110
1487
  seekBackward: ["ArrowLeft"],
@@ -1116,9 +1493,9 @@ const te = {
1116
1493
  nextCaptionLanguage: {
1117
1494
  keys: ["v"],
1118
1495
  onKeyUp({ event: e, player: n, remote: o }) {
1119
- const a = n.textTracks.selectedIndex, c = a + 1;
1120
- o.changeTextTrackMode(a, "hidden"), o.changeTextTrackMode(
1121
- c >= n.textTracks.length ? 0 : c,
1496
+ const i = n.textTracks.selectedIndex, a = i + 1;
1497
+ o.changeTextTrackMode(i, "hidden"), o.changeTextTrackMode(
1498
+ a >= n.textTracks.length ? 0 : a,
1122
1499
  "showing"
1123
1500
  ), n.$state.lastKeyboardAction.set({
1124
1501
  action: "nextCaptionLanguage",
@@ -1129,9 +1506,9 @@ const te = {
1129
1506
  previousCaptionLanguage: {
1130
1507
  keys: ["x"],
1131
1508
  onKeyUp({ event: e, player: n, remote: o }) {
1132
- const a = n.textTracks.selectedIndex, c = a - 1;
1133
- o.changeTextTrackMode(a, "hidden"), o.changeTextTrackMode(
1134
- c < 0 ? n.textTracks.length - 1 : c,
1509
+ const i = n.textTracks.selectedIndex, a = i - 1;
1510
+ o.changeTextTrackMode(i, "hidden"), o.changeTextTrackMode(
1511
+ a < 0 ? n.textTracks.length - 1 : a,
1135
1512
  "showing"
1136
1513
  ), n.$state.lastKeyboardAction.set({
1137
1514
  action: "previousCaptionLanguage",
@@ -1142,8 +1519,8 @@ const te = {
1142
1519
  decreasePlaybackRate: {
1143
1520
  keys: ["a"],
1144
1521
  onKeyUp({ event: e, player: n, remote: o }) {
1145
- const c = P.indexOf(n.playbackRate) - 1;
1146
- c >= 0 && (o.changePlaybackRate(P[c]), n.$state.lastKeyboardAction.set({
1522
+ const a = S.indexOf(n.playbackRate) - 1;
1523
+ a >= 0 && (o.changePlaybackRate(S[a]), n.$state.lastKeyboardAction.set({
1147
1524
  action: "decreasePlaybackRate",
1148
1525
  event: e
1149
1526
  }));
@@ -1152,8 +1529,8 @@ const te = {
1152
1529
  increasePlaybackRate: {
1153
1530
  keys: ["d"],
1154
1531
  onKeyUp({ event: e, player: n, remote: o }) {
1155
- const c = P.indexOf(n.playbackRate) + 1;
1156
- c < P.length && (o.changePlaybackRate(P[c]), n.$state.lastKeyboardAction.set({
1532
+ const a = S.indexOf(n.playbackRate) + 1;
1533
+ a < S.length && (o.changePlaybackRate(S[a]), n.$state.lastKeyboardAction.set({
1157
1534
  action: "increasePlaybackRate",
1158
1535
  event: e
1159
1536
  }));
@@ -1187,7 +1564,7 @@ const te = {
1187
1564
  }
1188
1565
  }
1189
1566
  };
1190
- function fo(e, n = 1e3) {
1567
+ function si(e, n = 1e3) {
1191
1568
  let o = !1;
1192
1569
  return () => {
1193
1570
  o || (e(), o = !0, setTimeout(() => {
@@ -1195,7 +1572,7 @@ function fo(e, n = 1e3) {
1195
1572
  }, n));
1196
1573
  };
1197
1574
  }
1198
- const ne = {
1575
+ const me = {
1199
1576
  volume: 1,
1200
1577
  muted: !1,
1201
1578
  lang: null,
@@ -1206,20 +1583,20 @@ const ne = {
1206
1583
  invert: !1,
1207
1584
  comments: !1
1208
1585
  };
1209
- class bo {
1586
+ class ci {
1210
1587
  constructor() {
1211
- L(this, "playerId", "studio-player");
1212
- L(this, "mediaId", null);
1213
- L(this, "data", ne);
1214
- L(this, "time", null);
1215
- L(this, "saveTime", () => {
1588
+ N(this, "playerId", "studio-player");
1589
+ N(this, "mediaId", null);
1590
+ N(this, "data", me);
1591
+ N(this, "time", null);
1592
+ N(this, "saveTime", () => {
1216
1593
  if (!this.mediaId) return;
1217
1594
  const n = (this.time ?? 0).toString();
1218
1595
  localStorage.setItem(this.mediaId, n);
1219
1596
  });
1220
- L(this, "saveTimeThrottled", fo(this.saveTime, 1e3));
1597
+ N(this, "saveTimeThrottled", si(this.saveTime, 1e3));
1221
1598
  // only used for useStudioPlayer hook's state initialization
1222
- L(this, "initializeState", () => {
1599
+ N(this, "initializeState", () => {
1223
1600
  const n = localStorage.getItem(this.playerId);
1224
1601
  if (n)
1225
1602
  try {
@@ -1234,7 +1611,7 @@ class bo {
1234
1611
  interactionsDisabled: !1
1235
1612
  };
1236
1613
  });
1237
- L(this, "saveData", (n, o) => {
1614
+ N(this, "saveData", (n, o) => {
1238
1615
  this.data = {
1239
1616
  ...this.data,
1240
1617
  [n]: o
@@ -1269,8 +1646,8 @@ class bo {
1269
1646
  return this.time;
1270
1647
  }
1271
1648
  async setTime(n, o) {
1272
- const a = n < 0;
1273
- this.time = a ? null : n, a || o ? this.saveTime() : this.saveTimeThrottled();
1649
+ const i = n < 0;
1650
+ this.time = i ? null : n, i || o ? this.saveTime() : this.saveTimeThrottled();
1274
1651
  }
1275
1652
  async getCaptions() {
1276
1653
  return this.data.captions;
@@ -1284,19 +1661,19 @@ class bo {
1284
1661
  async setPlaybackRate(n) {
1285
1662
  this.data.rate = n, this.save();
1286
1663
  }
1287
- onChange(n, o, a = "studio-player") {
1288
- const c = a ? localStorage.getItem(a) : null, i = o ? localStorage.getItem(o) : null;
1289
- this.playerId = a, this.mediaId = o;
1664
+ onChange(n, o, i = "studio-player") {
1665
+ const a = i ? localStorage.getItem(i) : null, c = o ? localStorage.getItem(o) : null;
1666
+ this.playerId = i, this.mediaId = o;
1290
1667
  let l = {};
1291
- if (c)
1668
+ if (a)
1292
1669
  try {
1293
- l = JSON.parse(c);
1670
+ l = JSON.parse(a);
1294
1671
  } catch {
1295
1672
  }
1296
1673
  this.data = {
1297
- ...ne,
1674
+ ...me,
1298
1675
  ...l
1299
- }, this.time = i ? +i : null;
1676
+ }, this.time = c ? +c : null;
1300
1677
  }
1301
1678
  save() {
1302
1679
  if (!this.playerId) return;
@@ -1304,119 +1681,136 @@ class bo {
1304
1681
  localStorage.setItem(this.playerId, n);
1305
1682
  }
1306
1683
  }
1307
- function vo({
1308
- hideFullScreen: e,
1309
- comments: n
1310
- }) {
1311
- const o = K(() => new bo(), []), [a, c] = T(
1312
- o.initializeState
1313
- ), i = m(
1314
- (d) => {
1315
- c((_) => (o.saveData("multiplier", d), {
1316
- ..._,
1317
- captionsFontSizeMultiplier: d
1684
+ function li(e) {
1685
+ const n = F(() => new ci(), []), [o, i] = P(
1686
+ n.initializeState
1687
+ ), a = p(
1688
+ (m) => {
1689
+ i((h) => (n.saveData("multiplier", m), {
1690
+ ...h,
1691
+ captionsFontSizeMultiplier: m
1318
1692
  }));
1319
1693
  },
1320
- [o]
1321
- ), l = m(() => {
1322
- c((d) => {
1323
- const _ = !d.captionPositionOnTop;
1324
- return o.saveData("ontop", _), {
1325
- ...d,
1326
- captionPositionOnTop: _
1694
+ [n]
1695
+ ), c = p(() => {
1696
+ i((m) => {
1697
+ const h = !m.captionPositionOnTop;
1698
+ return n.saveData("ontop", h), {
1699
+ ...m,
1700
+ captionPositionOnTop: h
1327
1701
  };
1328
1702
  });
1329
- }, [o]), g = m(() => {
1330
- c((d) => {
1331
- const _ = !d.captionsInvertColors;
1332
- return o.saveData("invert", _), {
1333
- ...d,
1334
- captionsInvertColors: _
1703
+ }, [n]), l = p(() => {
1704
+ i((m) => {
1705
+ const h = !m.captionsInvertColors;
1706
+ return n.saveData("invert", h), {
1707
+ ...m,
1708
+ captionsInvertColors: h
1335
1709
  };
1336
1710
  });
1337
- }, [o]), b = m(() => {
1338
- c((d) => {
1339
- const _ = !d.commentsEnabled;
1340
- return o.saveData("comments", _), {
1341
- ...d,
1342
- commentsEnabled: _
1711
+ }, [n]), u = p(() => {
1712
+ i((m) => {
1713
+ const h = !m.commentsEnabled;
1714
+ return n.saveData("comments", h), {
1715
+ ...m,
1716
+ commentsEnabled: h
1343
1717
  };
1344
1718
  });
1345
- }, [o]), k = m(() => {
1346
- c((d) => ({
1347
- ...d,
1719
+ }, [n]), _ = p(() => {
1720
+ i((m) => ({
1721
+ ...m,
1348
1722
  interactionsDisabled: !1
1349
1723
  }));
1350
- }, []), y = m(() => {
1351
- c((d) => ({
1352
- ...d,
1724
+ }, []), f = p(() => {
1725
+ i((m) => ({
1726
+ ...m,
1353
1727
  interactionsDisabled: !0
1354
1728
  }));
1355
- }, []), N = K(() => e ? {
1356
- ...te,
1729
+ }, []), b = F(() => e ? {
1730
+ ...de,
1357
1731
  toggleFullscreen: []
1358
- } : te, [e]);
1732
+ } : de, [e]);
1359
1733
  return {
1360
1734
  contextValue: {
1361
- state: a,
1362
- setCaptionsFontSizeMultiplier: i,
1363
- toggleCaptionPositionOnTop: l,
1364
- toggleCaptionsInvertColors: g,
1365
- enableInteractions: k,
1366
- disableInteractions: y,
1367
- toggleComments: b,
1368
- hideFullScreen: e,
1369
- hasComments: n.length > 0,
1370
- comments: n
1735
+ state: o,
1736
+ setCaptionsFontSizeMultiplier: a,
1737
+ toggleCaptionPositionOnTop: c,
1738
+ toggleCaptionsInvertColors: l,
1739
+ enableInteractions: _,
1740
+ disableInteractions: f,
1741
+ toggleComments: u
1371
1742
  },
1372
- shortcuts: N,
1373
- storage: o
1743
+ shortcuts: b,
1744
+ storage: n
1374
1745
  };
1375
1746
  }
1376
- const Co = {};
1377
- function So({
1747
+ const ri = {}, Q = () => {
1748
+ };
1749
+ function Ci({
1378
1750
  title: e,
1379
- src: n,
1380
- captions: o = [],
1751
+ remoteRef: n,
1752
+ src: o,
1753
+ captions: i = [],
1381
1754
  thumbnail: a,
1382
1755
  hideFullScreen: c = !1,
1383
- comments: i = [],
1384
- locale: l = "en"
1756
+ comments: l = [],
1757
+ locale: u = "en",
1758
+ annotations: _ = [],
1759
+ quizMarkers: f = [],
1760
+ interactive: b = !1,
1761
+ onAnnotationClick: m = Q,
1762
+ onQuizMarkerClick: h = Q,
1763
+ onInteractivePinClick: L = Q,
1764
+ interactiveMenuElements: R = []
1385
1765
  }) {
1386
- const { contextValue: g, shortcuts: b, storage: k } = vo({
1387
- hideFullScreen: c,
1388
- comments: i
1389
- }), { i18n: y } = p();
1390
- return $(() => {
1391
- y.changeLanguage(l);
1392
- }, [y, l]), /* @__PURE__ */ t(f.Provider, { value: g, children: /* @__PURE__ */ s(
1393
- Pe,
1766
+ const { contextValue: D, shortcuts: x, storage: Be } = li(c), { i18n: ie } = C(), z = Z();
1767
+ return V(() => {
1768
+ z && n && (z.pauseControls(), n.current = z);
1769
+ }, [z, n]), V(() => {
1770
+ ie.changeLanguage(u);
1771
+ }, [ie, u]), /* @__PURE__ */ t(
1772
+ nt,
1394
1773
  {
1395
- storage: k,
1396
- title: e,
1397
- src: n,
1398
- keyShortcuts: b,
1399
- playsInline: !0,
1400
- keyDisabled: g.state.interactionsDisabled,
1401
- children: [
1402
- /* @__PURE__ */ t(xn, {}),
1403
- /* @__PURE__ */ s(Be, { className: Co.mediaProvider, children: [
1404
- /* @__PURE__ */ t(Kn, { src: a }),
1405
- /* @__PURE__ */ t(kn, {}),
1406
- /* @__PURE__ */ t(qe, {}),
1407
- /* @__PURE__ */ t(Xe, { captions: o }),
1408
- /* @__PURE__ */ t(dt, {}),
1409
- /* @__PURE__ */ t(Wn, {}),
1410
- /* @__PURE__ */ t(Sn, {})
1411
- ] }),
1412
- /* @__PURE__ */ t(bt, {})
1413
- ]
1774
+ hideFullScreen: c,
1775
+ comments: l,
1776
+ annotations: _,
1777
+ quizMarkers: f,
1778
+ interactive: b,
1779
+ onAnnotationClick: m,
1780
+ onQuizMarkerClick: h,
1781
+ onInteractivePinClick: L,
1782
+ interactiveMenuElements: R,
1783
+ children: /* @__PURE__ */ t(tt, { contextValue: D, children: /* @__PURE__ */ s(
1784
+ Ue,
1785
+ {
1786
+ storage: Be,
1787
+ title: e,
1788
+ src: o,
1789
+ keyShortcuts: x,
1790
+ playsInline: !0,
1791
+ keyDisabled: D.state.interactionsDisabled,
1792
+ children: [
1793
+ /* @__PURE__ */ t(Jn, {}),
1794
+ /* @__PURE__ */ s(qe, { className: ri.mediaProvider, children: [
1795
+ /* @__PURE__ */ t(io, { src: a }),
1796
+ /* @__PURE__ */ t(On, {}),
1797
+ /* @__PURE__ */ t(mt, {}),
1798
+ /* @__PURE__ */ t(vt, { captions: i }),
1799
+ /* @__PURE__ */ t(Mt, { comments: l }),
1800
+ /* @__PURE__ */ t(mo, {}),
1801
+ /* @__PURE__ */ t(Un, {})
1802
+ ] }),
1803
+ /* @__PURE__ */ t(Rt, {}),
1804
+ /* @__PURE__ */ t(st, { annotations: _ })
1805
+ ]
1806
+ }
1807
+ ) })
1414
1808
  }
1415
- ) });
1809
+ );
1416
1810
  }
1417
1811
  export {
1418
- et as CAPTION_FONT_SIZE_MULTIPLIERS,
1419
- ue as COMMENT_DURATION,
1420
- P as PLAYBACK_RATES,
1421
- So as StudioPlayer
1812
+ ft as CAPTION_FONT_SIZE_MULTIPLIERS,
1813
+ xe as COMMENT_DURATION,
1814
+ S as PLAYBACK_RATES,
1815
+ Ci as StudioPlayer
1422
1816
  };