@instructure/studio-player 1.1.11 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/studio-player.es.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import './index-
|
|
1
|
+
import './index-CirQBVY-.css';var jl = Object.defineProperty;
|
|
2
2
|
var Yl = (re, he, Ce) => he in re ? jl(re, he, { enumerable: !0, configurable: !0, writable: !0, value: Ce }) : re[he] = Ce;
|
|
3
3
|
var Or = (re, he, Ce) => Yl(re, typeof he != "symbol" ? he + "" : he, Ce);
|
|
4
|
+
import { A as Kl, u as Dr, s as Va, a as oa, b as $n, i as zl, T as Wl, C as Ql, c as Xl, d as $l, e as Jl, F as ec, f as aa, g as Ka, t as di, v as ta, h as tc, j as Rs, k as ws, l as nc, m as ja, M as rc, n as ic } from "./vidstack-CpEp8jXV.js";
|
|
5
|
+
import { o as gh } from "./vidstack-CpEp8jXV.js";
|
|
4
6
|
import { jsx as ve, jsxs as ln, Fragment as pi } from "react/jsx-runtime";
|
|
5
|
-
import { createContext as Wa, useContext as Qa, useState as _r, useCallback as Zn, useEffect as Pr, useMemo as Mr, useRef as Nr, forwardRef as
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
import { useFloating as sa, autoUpdate as ua, shift as Xa, offset as $a, arrow as Ja, useMergeRefs as eo, useListNavigation as ks, useDismiss as to, useInteractions as no, FloatingFocusManager as ro, FloatingArrow as io, detectOverflow as uc } from "@floating-ui/react";
|
|
7
|
+
import { createContext as Wa, useContext as Qa, useState as _r, useCallback as Zn, useEffect as Pr, useMemo as Mr, useRef as Nr, forwardRef as ac } from "react";
|
|
8
|
+
import { initReactI18next as oc, useTranslation as Hn } from "react-i18next";
|
|
9
|
+
import sc from "i18next";
|
|
10
|
+
import uc from "i18next-resources-to-backend";
|
|
11
|
+
import { useFloating as sa, autoUpdate as ua, shift as Xa, offset as $a, arrow as Ja, useMergeRefs as eo, useListNavigation as ks, useDismiss as to, useInteractions as no, FloatingFocusManager as ro, FloatingArrow as io, detectOverflow as lc } from "@floating-ui/react";
|
|
12
|
+
Kl.add("audio/aac");
|
|
12
13
|
var Ya = { exports: {} };
|
|
13
14
|
/*! For license information please see dash.all.min.js.LICENSE.txt */
|
|
14
15
|
var Cs;
|
|
15
|
-
function
|
|
16
|
+
function cc() {
|
|
16
17
|
return Cs || (Cs = 1, function(re, he) {
|
|
17
18
|
(function(Ce, rt) {
|
|
18
19
|
re.exports = rt();
|
|
@@ -18045,8 +18046,8 @@ Actual: ` + f.attribValue);
|
|
|
18045
18046
|
});
|
|
18046
18047
|
}(Ya)), Ya.exports;
|
|
18047
18048
|
}
|
|
18048
|
-
var
|
|
18049
|
-
const
|
|
18049
|
+
var fc = cc();
|
|
18050
|
+
const dc = (re, he, Ce) => {
|
|
18050
18051
|
const rt = re[he];
|
|
18051
18052
|
return rt ? typeof rt == "function" ? rt() : Promise.resolve(rt) : new Promise((lt, Mt) => {
|
|
18052
18053
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -18059,9 +18060,9 @@ const fc = (re, he, Ce) => {
|
|
|
18059
18060
|
);
|
|
18060
18061
|
});
|
|
18061
18062
|
};
|
|
18062
|
-
|
|
18063
|
-
|
|
18064
|
-
(re) =>
|
|
18063
|
+
sc.use(oc).use(
|
|
18064
|
+
uc(
|
|
18065
|
+
(re) => dc(/* @__PURE__ */ Object.assign({ "./locales/ar.json": () => import("./ar-DWuLBmz_.js"), "./locales/ca.json": () => import("./ca-Qqae8qG8.js"), "./locales/cy.json": () => import("./cy-BpEFkqco.js"), "./locales/da-x-k12.json": () => import("./da-x-k12-COGvNdvr.js"), "./locales/da.json": () => import("./da-wed3aJ7h.js"), "./locales/de.json": () => import("./de-nKvELG0o.js"), "./locales/en-AU-x-unimelb.json": () => import("./en-AU-x-unimelb-CkNBO1qD.js"), "./locales/en-GB-x-ukhe.json": () => import("./en-GB-x-ukhe-B4JozeRC.js"), "./locales/en.json": () => import("./en-Da2QqQzB.js"), "./locales/en_AU.json": () => import("./en_AU-MbaPa8_v.js"), "./locales/en_CY.json": () => import("./en_CY-Bic0boap.js"), "./locales/en_GB.json": () => import("./en_GB-Bic0boap.js"), "./locales/es.json": () => import("./es-BcgDzQZG.js"), "./locales/es_ES.json": () => import("./es_ES-Dpu1hibc.js"), "./locales/fi.json": () => import("./fi-BEWl8re7.js"), "./locales/fr.json": () => import("./fr-DiQce0QU.js"), "./locales/fr_CA.json": () => import("./fr_CA-zzDHXzBI.js"), "./locales/ga.json": () => import("./ga-BnfTovup.js"), "./locales/hi.json": () => import("./hi-DFgKd5Rh.js"), "./locales/ht.json": () => import("./ht-DmkZypkC.js"), "./locales/id.json": () => import("./id-D12ot73_.js"), "./locales/is.json": () => import("./is-CTl9VBTw.js"), "./locales/it.json": () => import("./it-DS73ictn.js"), "./locales/ja.json": () => import("./ja-B0B-sKEG.js"), "./locales/kl.json": () => import("./kl-CBFEKDWH.js"), "./locales/mi.json": () => import("./mi-BX_XpUQT.js"), "./locales/ms.json": () => import("./ms-C_fuUCcA.js"), "./locales/nb-x-k12.json": () => import("./nb-x-k12-LqbRKYNM.js"), "./locales/nb.json": () => import("./nb-CrJr2akb.js"), "./locales/nl.json": () => import("./nl-CrynP9Ac.js"), "./locales/pl.json": () => import("./pl-CBE8GSTo.js"), "./locales/pt.json": () => import("./pt-GnFuQolP.js"), "./locales/pt_BR.json": () => import("./pt_BR-Bw-U8Fma.js"), "./locales/ru.json": () => import("./ru-Din5Ed0v.js"), "./locales/sl.json": () => import("./sl-DOsudmDY.js"), "./locales/sv-x-k12.json": () => import("./sv-x-k12-C3MKrKJe.js"), "./locales/sv.json": () => import("./sv-CxnJbrMd.js"), "./locales/th.json": () => import("./th-DY_qsUyE.js"), "./locales/vi.json": () => import("./vi-CZWY3NLh.js"), "./locales/zh-Hans.json": () => import("./zh-Hans-C6EE8GVu.js"), "./locales/zh-Hant.json": () => import("./zh-Hant-DuAgeN0L.js"), "./locales/zh.json": () => import("./zh-Cb-utrSO.js"), "./locales/zh_HK.json": () => import("./zh_HK-BaabEC8v.js") }), `./locales/${re}.json`, 3)
|
|
18065
18066
|
)
|
|
18066
18067
|
).init({
|
|
18067
18068
|
fallbackLng: "en",
|
|
@@ -18073,7 +18074,7 @@ oc.use(ac).use(
|
|
|
18073
18074
|
}
|
|
18074
18075
|
});
|
|
18075
18076
|
const Zs = Wa(null);
|
|
18076
|
-
function
|
|
18077
|
+
function gc({
|
|
18077
18078
|
children: re,
|
|
18078
18079
|
contextValue: he
|
|
18079
18080
|
}) {
|
|
@@ -18088,7 +18089,7 @@ function Wn() {
|
|
|
18088
18089
|
return re;
|
|
18089
18090
|
}
|
|
18090
18091
|
const Us = Wa(null);
|
|
18091
|
-
function
|
|
18092
|
+
function hc({
|
|
18092
18093
|
title: re,
|
|
18093
18094
|
hideFullScreen: he,
|
|
18094
18095
|
comments: Ce,
|
|
@@ -18154,17 +18155,17 @@ function lr() {
|
|
|
18154
18155
|
);
|
|
18155
18156
|
return re;
|
|
18156
18157
|
}
|
|
18157
|
-
const
|
|
18158
|
+
const mc = "_annotation-overlay_1kxzn_1", pc = {
|
|
18158
18159
|
"annotation-overlay": "_annotation-overlay_1kxzn_1",
|
|
18159
|
-
annotationOverlay:
|
|
18160
|
-
}, Ns = 0.25,
|
|
18160
|
+
annotationOverlay: mc
|
|
18161
|
+
}, Ns = 0.25, yc = (re, he) => {
|
|
18161
18162
|
let Ce = !1;
|
|
18162
18163
|
return (rt) => {
|
|
18163
18164
|
const lt = rt.detail.currentTime;
|
|
18164
18165
|
lt >= re.time && lt < re.time + Ns && !Ce && (Ce = !0, he(re)), (lt < re.time || lt >= re.time + Ns) && Ce && (Ce = !1);
|
|
18165
18166
|
};
|
|
18166
18167
|
};
|
|
18167
|
-
function
|
|
18168
|
+
function _c({ annotations: re }) {
|
|
18168
18169
|
const he = Dr(), Ce = Wn(), rt = lr(), [lt, Mt] = _r(
|
|
18169
18170
|
null
|
|
18170
18171
|
), Pe = Zn(
|
|
@@ -18181,7 +18182,7 @@ function yc({ annotations: re }) {
|
|
|
18181
18182
|
const C = new AbortController();
|
|
18182
18183
|
return requestAnimationFrame(() => {
|
|
18183
18184
|
for (const ie of re) {
|
|
18184
|
-
const T =
|
|
18185
|
+
const T = yc(ie, Pe);
|
|
18185
18186
|
he.addEventListener("time-update", T, {
|
|
18186
18187
|
signal: C.signal
|
|
18187
18188
|
});
|
|
@@ -18193,19 +18194,19 @@ function yc({ annotations: re }) {
|
|
|
18193
18194
|
ie ? Mt(ie) : (Mt(null), Ce.enableInteractions());
|
|
18194
18195
|
}
|
|
18195
18196
|
}), () => C.abort();
|
|
18196
|
-
}, [he, re]), lt ? /* @__PURE__ */ ve("div", { className:
|
|
18197
|
+
}, [he, re]), lt ? /* @__PURE__ */ ve("div", { className: pc.annotationOverlay, children: lt.render(Ee) }) : null;
|
|
18197
18198
|
}
|
|
18198
|
-
const
|
|
18199
|
+
const Ec = "_media-buffering-indicator_1fwjr_1", vc = "_media-buffering-spinner_1fwjr_17", Tc = "_media-buffering-spin_1fwjr_17", bc = "_media-buffering-track_1fwjr_22", Sc = "_media-buffering-track-fill_1fwjr_27", na = {
|
|
18199
18200
|
"media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
|
|
18200
|
-
mediaBufferingIndicator:
|
|
18201
|
+
mediaBufferingIndicator: Ec,
|
|
18201
18202
|
"media-buffering-spinner": "_media-buffering-spinner_1fwjr_17",
|
|
18202
|
-
mediaBufferingSpinner:
|
|
18203
|
+
mediaBufferingSpinner: vc,
|
|
18203
18204
|
"media-buffering-spin": "_media-buffering-spin_1fwjr_17",
|
|
18204
|
-
mediaBufferingSpin:
|
|
18205
|
+
mediaBufferingSpin: Tc,
|
|
18205
18206
|
"media-buffering-track": "_media-buffering-track_1fwjr_22",
|
|
18206
|
-
mediaBufferingTrack:
|
|
18207
|
+
mediaBufferingTrack: bc,
|
|
18207
18208
|
"media-buffering-track-fill": "_media-buffering-track-fill_1fwjr_27",
|
|
18208
|
-
mediaBufferingTrackFill:
|
|
18209
|
+
mediaBufferingTrackFill: Sc
|
|
18209
18210
|
};
|
|
18210
18211
|
function Bs() {
|
|
18211
18212
|
return /* @__PURE__ */ ve("div", { className: na.mediaBufferingIndicator, children: /* @__PURE__ */ ln(Va.Root, { className: na.mediaBufferingSpinner, size: 96, children: [
|
|
@@ -18219,7 +18220,7 @@ function Bs() {
|
|
|
18219
18220
|
)
|
|
18220
18221
|
] }) });
|
|
18221
18222
|
}
|
|
18222
|
-
const
|
|
18223
|
+
const Ac = [
|
|
18223
18224
|
"ArrowUp",
|
|
18224
18225
|
"ArrowDown",
|
|
18225
18226
|
"ArrowLeft",
|
|
@@ -18244,7 +18245,7 @@ function ao(re, he = !1, Ce = !0) {
|
|
|
18244
18245
|
), he && window.addEventListener(
|
|
18245
18246
|
"keydown",
|
|
18246
18247
|
(lt) => {
|
|
18247
|
-
|
|
18248
|
+
Ac.includes(lt.code) && lt.preventDefault();
|
|
18248
18249
|
},
|
|
18249
18250
|
{ signal: rt.signal }
|
|
18250
18251
|
), () => {
|
|
@@ -18252,34 +18253,34 @@ function ao(re, he = !1, Ce = !0) {
|
|
|
18252
18253
|
};
|
|
18253
18254
|
}, [re, he, Ce]);
|
|
18254
18255
|
}
|
|
18255
|
-
function
|
|
18256
|
+
function Ic(re) {
|
|
18256
18257
|
const he = Mr(() => ({ Escape: re }), [re]);
|
|
18257
18258
|
return ao(he);
|
|
18258
18259
|
}
|
|
18259
|
-
const Gs = (re) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) }),
|
|
18260
|
+
const Gs = (re) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) }), Rc = "_controls-overlay_5ej4z_1", wc = "_keyboard-shortcuts-overlay_5ej4z_11", Cc = "_screen-reader-content_5ej4z_76", Nc = "_controls-button_5ej4z_90", Dc = "_keyboard-shortcuts-button_5ej4z_106", Oc = "_kebab-menu-button_5ej4z_116", Mc = "_kebab-menu_5ej4z_116", Pc = "_kebab-menu-item_5ej4z_145", Lc = "_close-button_5ej4z_180", xc = "_arrow_5ej4z_194", Fr = {
|
|
18260
18261
|
"controls-overlay": "_controls-overlay_5ej4z_1",
|
|
18261
|
-
controlsOverlay:
|
|
18262
|
+
controlsOverlay: Rc,
|
|
18262
18263
|
"keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_5ej4z_11",
|
|
18263
|
-
keyboardShortcutsOverlay:
|
|
18264
|
+
keyboardShortcutsOverlay: wc,
|
|
18264
18265
|
"screen-reader-content": "_screen-reader-content_5ej4z_76",
|
|
18265
|
-
screenReaderContent:
|
|
18266
|
+
screenReaderContent: Cc,
|
|
18266
18267
|
"controls-button": "_controls-button_5ej4z_90",
|
|
18267
|
-
controlsButton:
|
|
18268
|
+
controlsButton: Nc,
|
|
18268
18269
|
"keyboard-shortcuts-button": "_keyboard-shortcuts-button_5ej4z_106",
|
|
18269
|
-
keyboardShortcutsButton:
|
|
18270
|
+
keyboardShortcutsButton: Dc,
|
|
18270
18271
|
"kebab-menu-button": "_kebab-menu-button_5ej4z_116",
|
|
18271
|
-
kebabMenuButton:
|
|
18272
|
+
kebabMenuButton: Oc,
|
|
18272
18273
|
"kebab-menu": "_kebab-menu_5ej4z_116",
|
|
18273
|
-
kebabMenu:
|
|
18274
|
+
kebabMenu: Mc,
|
|
18274
18275
|
"kebab-menu-item": "_kebab-menu-item_5ej4z_145",
|
|
18275
|
-
kebabMenuItem:
|
|
18276
|
+
kebabMenuItem: Pc,
|
|
18276
18277
|
"close-button": "_close-button_5ej4z_180",
|
|
18277
|
-
closeButton:
|
|
18278
|
-
arrow:
|
|
18278
|
+
closeButton: Lc,
|
|
18279
|
+
arrow: xc
|
|
18279
18280
|
};
|
|
18280
|
-
function
|
|
18281
|
+
function Fc({ onClose: re }) {
|
|
18281
18282
|
const { t: he } = Hn();
|
|
18282
|
-
return
|
|
18283
|
+
return Ic(re), /* @__PURE__ */ ln(
|
|
18283
18284
|
"div",
|
|
18284
18285
|
{
|
|
18285
18286
|
className: Fr.keyboardShortcutsOverlay,
|
|
@@ -18402,14 +18403,14 @@ function Ii() {
|
|
|
18402
18403
|
for (var re, he, Ce = 0, rt = "", lt = arguments.length; Ce < lt; Ce++) (re = arguments[Ce]) && (he = qs(re)) && (rt && (rt += " "), rt += he);
|
|
18403
18404
|
return rt;
|
|
18404
18405
|
}
|
|
18405
|
-
const
|
|
18406
|
-
share: /* @__PURE__ */ ve(
|
|
18407
|
-
transcript: /* @__PURE__ */ ve(
|
|
18408
|
-
media: /* @__PURE__ */ ve(
|
|
18406
|
+
const kc = (re) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.8 3.6C9.79288 3.6 10.6 2.79288 10.6 1.8C10.6 0.80712 9.79288 0 8.8 0C7.80712 0 7 0.80712 7 1.8C7 2.79288 7.80712 3.6 8.8 3.6ZM10.6 8.99999C10.6 9.99287 9.79288 10.8 8.8 10.8C7.80712 10.8 7 9.99287 7 8.99999C7 8.00711 7.80712 7.19999 8.8 7.19999C9.79288 7.19999 10.6 8.00711 10.6 8.99999ZM10.6 16.2C10.6 17.1929 9.79288 18 8.8 18C7.80712 18 7 17.1929 7 16.2C7 15.2071 7.80712 14.4 8.8 14.4C9.79288 14.4 10.6 15.2071 10.6 16.2Z", fill: "currentColor" }) }), Zc = (re) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1074 16.8677C12.8638 16.8677 11.8524 15.8563 11.8524 14.6127C11.8524 14.4154 11.8862 14.2271 11.9336 14.0444C12.0317 13.6701 12.22 13.3318 12.4804 13.059C12.8908 12.6294 13.467 12.3576 14.1074 12.3576C15.3511 12.3576 16.3625 13.369 16.3625 14.6127C16.3625 15.8563 15.3511 16.8677 14.1074 16.8677ZM4.38257 11.2301C3.13891 11.2301 2.12752 10.2187 2.12752 8.97507C2.12752 7.73141 3.13891 6.72002 4.38257 6.72002C5.01623 6.72002 5.58676 6.98386 5.99718 7.40556C6.25989 7.67616 6.44819 8.01329 6.54966 8.38763C6.60153 8.57592 6.63761 8.76986 6.63761 8.97507C6.63761 9.2017 6.59364 9.41818 6.53049 9.62452C6.41887 9.99435 6.22155 10.327 5.94982 10.5908C5.54391 10.9843 4.99256 11.2301 4.38257 11.2301ZM11.8524 3.38257C11.8524 2.13891 12.8638 1.12753 14.1074 1.12753C15.3511 1.12753 16.3625 2.13891 16.3625 3.38257C16.3625 4.62622 15.3511 5.63761 14.1074 5.63761C13.4749 5.63761 12.9055 5.3749 12.4962 4.95546C12.2324 4.68485 12.0429 4.34773 11.9415 3.97339C11.8896 3.78397 11.8524 3.5889 11.8524 3.38257ZM14.1074 11.2301C13.0498 11.2301 12.1151 11.7273 11.495 12.4907L7.52722 10.1996C7.67605 9.81846 7.76513 9.40804 7.76513 8.97507C7.76513 8.56465 7.68056 8.17678 7.54639 7.8126L11.5108 5.5226C12.132 6.27466 13.0588 6.76513 14.1074 6.76513C15.9724 6.76513 17.49 5.24748 17.49 3.38256C17.49 1.51764 15.9724 0 14.1074 0C12.2425 0 10.7249 1.51764 10.7249 3.38256C10.7249 3.79411 10.8094 4.18423 10.9447 4.54842L6.9815 6.83729C6.36136 6.08411 5.43341 5.59251 4.38256 5.59251C2.51764 5.59251 1 7.11015 1 8.97507C1 10.84 2.51764 12.3576 4.38256 12.3576C5.40974 12.3576 6.32077 11.8875 6.94091 11.1625L10.9368 13.4694C10.8072 13.829 10.7249 14.2102 10.7249 14.6127C10.7249 16.4776 12.2425 17.9952 14.1074 17.9952C15.9724 17.9952 17.49 16.4776 17.49 14.6127C17.49 12.7478 15.9724 11.2301 14.1074 11.2301Z", fill: "currentColor" }) }), Uc = (re) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.7647 16.9412H2.05882V1.05883H10.5294V5.29412H14.7647V16.9412ZM11.5882 1.278L14.5455 4.2353H11.5882V1.278ZM15.3587 3.55129L12.2722 0.464824C11.9715 0.165176 11.5724 0 11.1488 0H1V18H15.8235V4.67471C15.8235 4.25118 15.6584 3.852 15.3587 3.55129ZM1 0H15.8235V18H1V0ZM1 18H15.8235V0H1V18ZM4.17649 5.29412H8.41178V4.23529H4.17649V5.29412ZM4.17649 9.52941H10.5294V8.47059H4.17649V9.52941ZM4.17649 13.7647H8.41178V12.7059H4.17649V13.7647ZM4.17649 7.41177H12.6471V6.35294H4.17649V7.41177ZM4.17649 11.6471H11.5883V10.5882H4.17649V11.6471Z", fill: "currentColor" }) }), Bc = (re) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.30365 10.9535V0H9.3637V10.9535L12.6986 7.61855L13.4491 8.368L8.83261 12.9824L4.21823 8.368L4.96875 7.61855L8.30365 10.9535ZM3.77376 16.94H13.9354L16.9607 13.9146L17.7091 14.6651L14.3742 18H3.3349L0 14.6651L0.749452 13.9146L3.77376 16.94Z", fill: "currentColor" }) }), Hs = (re) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.8234 16.4118C14.8234 16.7029 14.5852 16.9412 14.294 16.9412H3.70577C3.41459 16.9412 3.17636 16.7029 3.17636 16.4118V5.29412H2.11753V16.4118C2.11753 17.2874 2.83012 18 3.70577 18H14.294C15.1697 18 15.8822 17.2874 15.8822 16.4118V5.29412H14.8234V16.4118ZM6.35284 14.8235H7.41166V6.35294H6.35284V14.8235ZM10.5881 14.8235H11.6469V6.35294H10.5881V14.8235ZM12.5682 3.17647L11.4099 0H6.51176L5.35553 3.17647H0V4.23529H18V3.17647H12.5682ZM6.48105 3.17647L7.25293 1.05882H10.6698L11.4416 3.17647H6.48105Z", fill: "currentColor" }) }), Gc = (re) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.9412 15.2941C16.9412 15.5853 16.704 15.8235 16.4118 15.8235H1.58823C1.296 15.8235 1.05882 15.5853 1.05882 15.2941V6.82353C1.05882 6.53235 1.296 6.29412 1.58823 6.29412H16.4118C16.704 6.29412 16.9412 6.53235 16.9412 6.82353V15.2941ZM16.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.23529ZM11.1177 11.5882H6.88236C6.59013 11.5882 6.35295 11.8254 6.35295 12.1176V13.1765C6.35295 13.4687 6.59013 13.7059 6.88236 13.7059H11.1177C11.4099 13.7059 11.6471 13.4687 11.6471 13.1765V12.1176C11.6471 11.8254 11.4099 11.5882 11.1177 11.5882ZM14.2941 11.5882H13.2353C12.943 11.5882 12.7059 11.8254 12.7059 12.1176V13.1765C12.7059 13.4687 12.943 13.7059 13.2353 13.7059H14.2941C14.5863 13.7059 14.8235 13.4687 14.8235 13.1765V12.1176C14.8235 11.8254 14.5863 11.5882 14.2941 11.5882ZM4.76472 11.5882H3.7059C3.41366 11.5882 3.17649 11.8254 3.17649 12.1176V13.1765C3.17649 13.4687 3.41366 13.7059 3.7059 13.7059H4.76472C5.05696 13.7059 5.29413 13.4687 5.29413 13.1765V12.1176C5.29413 11.8254 5.05696 11.5882 4.76472 11.5882ZM4.76472 8.41176H3.7059C3.41366 8.41176 3.17649 8.64894 3.17649 8.94118V10C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472C5.05696 10.5294 5.29413 10.2922 5.29413 10V8.94118C5.29413 8.64894 5.05696 8.41176 4.76472 8.41176ZM6.88236 10.5294H7.94118C8.23342 10.5294 8.4706 10.2922 8.4706 10V8.94118C8.4706 8.64894 8.23342 8.41176 7.94118 8.41176H6.88236C6.59013 8.41176 6.35295 8.64894 6.35295 8.94118V10C6.35295 10.2922 6.59013 10.5294 6.88236 10.5294ZM11.1176 8.41176H10.0588C9.76658 8.41176 9.52941 8.64894 9.52941 8.94118V10C9.52941 10.2922 9.76658 10.5294 10.0588 10.5294H11.1176C11.4099 10.5294 11.6471 10.2922 11.6471 10V8.94118C11.6471 8.64894 11.4099 8.41176 11.1176 8.41176ZM14.2941 8.41176H13.2353C12.943 8.41176 12.7059 8.64894 12.7059 8.94118V10C12.7059 10.2922 12.943 10.5294 13.2353 10.5294H14.2941C14.5863 10.5294 14.8235 10.2922 14.8235 10V8.94118C14.8235 8.64894 14.5863 8.41176 14.2941 8.41176Z", fill: "currentColor" }) }), qc = {
|
|
18407
|
+
share: /* @__PURE__ */ ve(Zc, {}),
|
|
18408
|
+
transcript: /* @__PURE__ */ ve(Uc, {}),
|
|
18409
|
+
media: /* @__PURE__ */ ve(Bc, {}),
|
|
18409
18410
|
delete: /* @__PURE__ */ ve(Hs, {}),
|
|
18410
|
-
shortcuts: /* @__PURE__ */ ve(
|
|
18411
|
-
},
|
|
18412
|
-
function
|
|
18411
|
+
shortcuts: /* @__PURE__ */ ve(Gc, {})
|
|
18412
|
+
}, Hc = (re) => typeof re != "string";
|
|
18413
|
+
function Vc({ openShortcuts: re, shouldFocus: he }) {
|
|
18413
18414
|
const [Ce, rt] = _r(!1), [lt, Mt] = _r(null), Pe = Wn(), Ee = lr(), C = () => {
|
|
18414
18415
|
rt(!Ce), Pe.setGlobalKeysDisabled(!Ce);
|
|
18415
18416
|
}, ie = Nr(null), T = Nr([]), { refs: t, floatingStyles: e, context: p } = sa({
|
|
@@ -18433,19 +18434,21 @@ function Hc({ openShortcuts: re, shouldFocus: he }) {
|
|
|
18433
18434
|
loop: !0
|
|
18434
18435
|
}), h = to(p), { getReferenceProps: n, getFloatingProps: c, getItemProps: d } = no(
|
|
18435
18436
|
[h, E]
|
|
18436
|
-
), { t: S } = Hn(), x = Mr(
|
|
18437
|
-
()
|
|
18437
|
+
), { t: S } = Hn(), x = Mr(() => {
|
|
18438
|
+
const B = window.matchMedia("(hover: none)").matches;
|
|
18439
|
+
return [
|
|
18438
18440
|
...Ee.kebabMenuElements,
|
|
18439
|
-
|
|
18440
|
-
|
|
18441
|
-
|
|
18442
|
-
|
|
18443
|
-
|
|
18444
|
-
|
|
18445
|
-
|
|
18446
|
-
|
|
18447
|
-
|
|
18448
|
-
|
|
18441
|
+
...B ? [] : [
|
|
18442
|
+
{
|
|
18443
|
+
id: "keyboard-shortcuts",
|
|
18444
|
+
text: S("KEYBOARD_SHORTCUTS"),
|
|
18445
|
+
icon: "shortcuts",
|
|
18446
|
+
onClick: re
|
|
18447
|
+
}
|
|
18448
|
+
]
|
|
18449
|
+
];
|
|
18450
|
+
}, [Ee.kebabMenuElements, S, re]);
|
|
18451
|
+
return x.length ? /* @__PURE__ */ ln(pi, { children: [
|
|
18449
18452
|
/* @__PURE__ */ ve(
|
|
18450
18453
|
"button",
|
|
18451
18454
|
{
|
|
@@ -18460,7 +18463,7 @@ function Hc({ openShortcuts: re, shouldFocus: he }) {
|
|
|
18460
18463
|
...n({
|
|
18461
18464
|
onClick: () => C()
|
|
18462
18465
|
}),
|
|
18463
|
-
children: /* @__PURE__ */ ve(
|
|
18466
|
+
children: /* @__PURE__ */ ve(kc, {})
|
|
18464
18467
|
}
|
|
18465
18468
|
),
|
|
18466
18469
|
Ce && /* @__PURE__ */ ve(ro, { context: p, guards: !1, children: /* @__PURE__ */ ln(
|
|
@@ -18490,7 +18493,7 @@ function Hc({ openShortcuts: re, shouldFocus: he }) {
|
|
|
18490
18493
|
}
|
|
18491
18494
|
}),
|
|
18492
18495
|
children: [
|
|
18493
|
-
|
|
18496
|
+
Hc($) ? $ : qc[$],
|
|
18494
18497
|
L
|
|
18495
18498
|
]
|
|
18496
18499
|
},
|
|
@@ -18507,9 +18510,9 @@ function Hc({ openShortcuts: re, shouldFocus: he }) {
|
|
|
18507
18510
|
]
|
|
18508
18511
|
}
|
|
18509
18512
|
) })
|
|
18510
|
-
] });
|
|
18513
|
+
] }) : null;
|
|
18511
18514
|
}
|
|
18512
|
-
function
|
|
18515
|
+
function jc() {
|
|
18513
18516
|
const re = Wn(), he = oa(), Ce = Nr(!1), rt = Nr(!1), lt = Zn(() => {
|
|
18514
18517
|
re.setKeyboardShortcutsOpen(!0), re.disableInteractions();
|
|
18515
18518
|
const Pe = he.getPlayer();
|
|
@@ -18517,8 +18520,8 @@ function Vc() {
|
|
|
18517
18520
|
}, [he, re]), Mt = Zn(() => {
|
|
18518
18521
|
re.setKeyboardShortcutsOpen(!1), re.enableInteractions(), Ce.current && (Ce.current = !1, he.play());
|
|
18519
18522
|
}, [he, re]);
|
|
18520
|
-
return re.state.isKeyboardShortcutsOpen ? /* @__PURE__ */ ve(
|
|
18521
|
-
|
|
18523
|
+
return re.state.isKeyboardShortcutsOpen ? /* @__PURE__ */ ve(Fc, { onClose: Mt }) : /* @__PURE__ */ ve("div", { className: Fr.controlsOverlay, children: /* @__PURE__ */ ve(
|
|
18524
|
+
Vc,
|
|
18522
18525
|
{
|
|
18523
18526
|
openShortcuts: lt,
|
|
18524
18527
|
shouldFocus: rt.current
|
|
@@ -18532,7 +18535,7 @@ const Vs = (re) => /* @__PURE__ */ ln("svg", { width: 24, height: 24, viewBox: "
|
|
|
18532
18535
|
/* @__PURE__ */ ve("defs", { children: /* @__PURE__ */ ve("clipPath", { id: "clip0_149_104406", children: /* @__PURE__ */ ve("rect", { width: 24, height: 24, fill: "white" }) }) }),
|
|
18533
18536
|
/* @__PURE__ */ ve("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ ve("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" }) })
|
|
18534
18537
|
] });
|
|
18535
|
-
function
|
|
18538
|
+
function Yc() {
|
|
18536
18539
|
const re = oa(), he = $n("textTrack"), Ce = $n("hasCaptions"), rt = he && zl(he), lt = Wn(), { t: Mt } = Hn(), Pe = Zn(
|
|
18537
18540
|
(Ee) => {
|
|
18538
18541
|
re.toggleCaptions(Ee.nativeEvent);
|
|
@@ -18552,11 +18555,11 @@ function jc() {
|
|
|
18552
18555
|
}
|
|
18553
18556
|
) : null;
|
|
18554
18557
|
}
|
|
18555
|
-
const
|
|
18556
|
-
captions:
|
|
18557
|
-
},
|
|
18558
|
+
const Kc = "_captions_1qij2_1", zc = {
|
|
18559
|
+
captions: Kc
|
|
18560
|
+
}, Wc = (re, he) => re ? he.top : he.bottom;
|
|
18558
18561
|
function Ys({ captions: re }) {
|
|
18559
|
-
const he = re.length > 0, Ce = Wn(), { captionOffsetOverride: rt } = lr(), lt = Ce.state.captionPositionOnTop, Mt =
|
|
18562
|
+
const he = re.length > 0, Ce = Wn(), { captionOffsetOverride: rt } = lr(), lt = Ce.state.captionPositionOnTop, Mt = Wc(
|
|
18560
18563
|
lt,
|
|
18561
18564
|
rt ?? {}
|
|
18562
18565
|
);
|
|
@@ -18583,12 +18586,12 @@ function Ys({ captions: re }) {
|
|
|
18583
18586
|
"--captions-color": Ce.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
|
|
18584
18587
|
"--captions-background-color": Ce.state.captionsInvertColors ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)"
|
|
18585
18588
|
},
|
|
18586
|
-
children: /* @__PURE__ */ ve(Ql, { className:
|
|
18589
|
+
children: /* @__PURE__ */ ve(Ql, { className: zc.captions })
|
|
18587
18590
|
}
|
|
18588
18591
|
) : null
|
|
18589
18592
|
] });
|
|
18590
18593
|
}
|
|
18591
|
-
const mi = [0.5, 0.75, 1, 1.25, 1.5, 2],
|
|
18594
|
+
const mi = [0.5, 0.75, 1, 1.25, 1.5, 2], Qc = [0.5, 1, 2, 3, 4], Xc = 5, $c = (re) => {
|
|
18592
18595
|
const [, he] = _r({});
|
|
18593
18596
|
return Mr(() => {
|
|
18594
18597
|
let Ce = [];
|
|
@@ -18607,21 +18610,21 @@ const mi = [0.5, 0.75, 1, 1.25, 1.5, 2], Wc = [0.5, 1, 2, 3, 4], Qc = 5, Xc = (r
|
|
|
18607
18610
|
}
|
|
18608
18611
|
};
|
|
18609
18612
|
}, []);
|
|
18610
|
-
},
|
|
18613
|
+
}, Jc = (re, he, Ce) => {
|
|
18611
18614
|
let rt = !1;
|
|
18612
18615
|
return (lt) => {
|
|
18613
18616
|
const Mt = lt.detail.currentTime;
|
|
18614
18617
|
Mt >= re.timestamp && Mt < re.timestamp + he && !rt && (Ce.add(re), rt = !0), (Mt < re.timestamp || Mt >= re.timestamp + he) && rt && (Ce.remove(re), rt = !1);
|
|
18615
18618
|
};
|
|
18616
|
-
},
|
|
18617
|
-
const Ce = Dr(), rt =
|
|
18619
|
+
}, ef = (re, he = 5) => {
|
|
18620
|
+
const Ce = Dr(), rt = $c(he);
|
|
18618
18621
|
return Pr(() => {
|
|
18619
18622
|
if (!Ce)
|
|
18620
18623
|
return;
|
|
18621
18624
|
const lt = new AbortController();
|
|
18622
18625
|
return requestAnimationFrame(() => {
|
|
18623
18626
|
for (const Mt of re) {
|
|
18624
|
-
const Pe =
|
|
18627
|
+
const Pe = Jc(Mt, Xc, rt);
|
|
18625
18628
|
Ce.addEventListener("time-update", Pe, {
|
|
18626
18629
|
signal: lt.signal
|
|
18627
18630
|
});
|
|
@@ -18635,21 +18638,21 @@ const mi = [0.5, 0.75, 1, 1.25, 1.5, 2], Wc = [0.5, 1, 2, 3, 4], Qc = 5, Xc = (r
|
|
|
18635
18638
|
lt.abort(), rt.clear();
|
|
18636
18639
|
};
|
|
18637
18640
|
}, [Ce, rt, re]), rt;
|
|
18638
|
-
},
|
|
18641
|
+
}, tf = "_comments-overlay_bymws_1", nf = "_comments-container_bymws_10", rf = "_kebab_bymws_20", af = "_comment_bymws_1", of = "_comment-text_bymws_51", sf = "_comment-author-avatar_bymws_71", uf = "_comment-author-name_bymws_95", Vr = {
|
|
18639
18642
|
"comments-overlay": "_comments-overlay_bymws_1",
|
|
18640
|
-
commentsOverlay:
|
|
18643
|
+
commentsOverlay: tf,
|
|
18641
18644
|
"comments-container": "_comments-container_bymws_10",
|
|
18642
|
-
commentsContainer:
|
|
18643
|
-
kebab:
|
|
18644
|
-
comment:
|
|
18645
|
+
commentsContainer: nf,
|
|
18646
|
+
kebab: rf,
|
|
18647
|
+
comment: af,
|
|
18645
18648
|
"comment-text": "_comment-text_bymws_51",
|
|
18646
|
-
commentText:
|
|
18649
|
+
commentText: of,
|
|
18647
18650
|
"comment-author-avatar": "_comment-author-avatar_bymws_71",
|
|
18648
|
-
commentAuthorAvatar:
|
|
18651
|
+
commentAuthorAvatar: sf,
|
|
18649
18652
|
"comment-author-name": "_comment-author-name_bymws_95",
|
|
18650
|
-
commentAuthorName:
|
|
18653
|
+
commentAuthorName: uf
|
|
18651
18654
|
};
|
|
18652
|
-
function
|
|
18655
|
+
function lf({ comment: re }) {
|
|
18653
18656
|
return re.render ? re.render(re, Vr) : /* @__PURE__ */ ln("div", { className: Vr.comment, onClick: () => {
|
|
18654
18657
|
var he;
|
|
18655
18658
|
return (he = re.onClick) == null ? void 0 : he.call(re, re);
|
|
@@ -18666,12 +18669,12 @@ function uf({ comment: re }) {
|
|
|
18666
18669
|
/* @__PURE__ */ ve("span", { className: Vr.commentAuthorName, children: re.user.name })
|
|
18667
18670
|
] });
|
|
18668
18671
|
}
|
|
18669
|
-
const
|
|
18670
|
-
function
|
|
18672
|
+
const cf = 4;
|
|
18673
|
+
function ff({
|
|
18671
18674
|
comments: re,
|
|
18672
18675
|
isKebabMenuVisible: he
|
|
18673
18676
|
}) {
|
|
18674
|
-
const Ce = Wn(), rt =
|
|
18677
|
+
const Ce = Wn(), rt = ef(re, cf), lt = !!$n("textTrack"), Mt = rt.map((Pe) => /* @__PURE__ */ ve(lf, { comment: Pe }, Pe.id));
|
|
18675
18678
|
return re.length > 0 && Ce.state.commentsEnabled ? /* @__PURE__ */ ve(
|
|
18676
18679
|
"div",
|
|
18677
18680
|
{
|
|
@@ -18691,26 +18694,26 @@ function cf({
|
|
|
18691
18694
|
}
|
|
18692
18695
|
) : null;
|
|
18693
18696
|
}
|
|
18694
|
-
function
|
|
18697
|
+
function df({ renderOverlay: re }) {
|
|
18695
18698
|
const he = Wn();
|
|
18696
18699
|
return re(he);
|
|
18697
18700
|
}
|
|
18698
|
-
const
|
|
18701
|
+
const gf = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) }), hf = (re) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), mf = "_settings-menu_1gbpr_1", pf = "_menu-heading_1gbpr_37", yf = "_check-icon_1gbpr_48", _f = "_trash-icon_1gbpr_49", Ef = "_menu-item-label_1gbpr_62", vf = "_menu-item_1gbpr_62", Tf = "_menu-back-button_1gbpr_99", bf = "_arrow_1gbpr_125", kr = {
|
|
18699
18702
|
"settings-menu": "_settings-menu_1gbpr_1",
|
|
18700
|
-
settingsMenu:
|
|
18703
|
+
settingsMenu: mf,
|
|
18701
18704
|
"menu-heading": "_menu-heading_1gbpr_37",
|
|
18702
|
-
menuHeading:
|
|
18705
|
+
menuHeading: pf,
|
|
18703
18706
|
"check-icon": "_check-icon_1gbpr_48",
|
|
18704
|
-
checkIcon:
|
|
18707
|
+
checkIcon: yf,
|
|
18705
18708
|
"trash-icon": "_trash-icon_1gbpr_49",
|
|
18706
|
-
trashIcon:
|
|
18709
|
+
trashIcon: _f,
|
|
18707
18710
|
"menu-item-label": "_menu-item-label_1gbpr_62",
|
|
18708
|
-
menuItemLabel:
|
|
18711
|
+
menuItemLabel: Ef,
|
|
18709
18712
|
"menu-item": "_menu-item_1gbpr_62",
|
|
18710
|
-
menuItem:
|
|
18713
|
+
menuItem: vf,
|
|
18711
18714
|
"menu-back-button": "_menu-back-button_1gbpr_99",
|
|
18712
|
-
menuBackButton:
|
|
18713
|
-
arrow:
|
|
18715
|
+
menuBackButton: Tf,
|
|
18716
|
+
arrow: bf
|
|
18714
18717
|
};
|
|
18715
18718
|
function Jr({
|
|
18716
18719
|
noBackButton: re,
|
|
@@ -18728,7 +18731,7 @@ function Jr({
|
|
|
18728
18731
|
className: kr.menuBackButton,
|
|
18729
18732
|
onClick: rt.back,
|
|
18730
18733
|
children: [
|
|
18731
|
-
/* @__PURE__ */ ve(
|
|
18734
|
+
/* @__PURE__ */ ve(hf, {}),
|
|
18732
18735
|
/* @__PURE__ */ ve("span", { children: lt("BACK") })
|
|
18733
18736
|
]
|
|
18734
18737
|
}
|
|
@@ -18745,15 +18748,15 @@ function Jr({
|
|
|
18745
18748
|
Ce
|
|
18746
18749
|
] });
|
|
18747
18750
|
}
|
|
18748
|
-
const
|
|
18751
|
+
const Sf = (re) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), Af = "_menu-hint_1wiu5_1", If = "_menu-button_1wiu5_5", Rf = "_menu-label_1wiu5_37", wf = "_menu-icon_1wiu5_42", ra = {
|
|
18749
18752
|
"menu-hint": "_menu-hint_1wiu5_1",
|
|
18750
|
-
menuHint:
|
|
18753
|
+
menuHint: Af,
|
|
18751
18754
|
"menu-button": "_menu-button_1wiu5_5",
|
|
18752
|
-
menuButton:
|
|
18755
|
+
menuButton: If,
|
|
18753
18756
|
"menu-label": "_menu-label_1wiu5_37",
|
|
18754
|
-
menuLabel:
|
|
18757
|
+
menuLabel: Rf,
|
|
18755
18758
|
"menu-icon": "_menu-icon_1wiu5_42",
|
|
18756
|
-
menuIcon:
|
|
18759
|
+
menuIcon: wf
|
|
18757
18760
|
};
|
|
18758
18761
|
function yi({ label: re, hint: he, onClick: Ce, Icon: rt }) {
|
|
18759
18762
|
return /* @__PURE__ */ ln(
|
|
@@ -18769,13 +18772,13 @@ function yi({ label: re, hint: he, onClick: Ce, Icon: rt }) {
|
|
|
18769
18772
|
rt && /* @__PURE__ */ ve(rt, { className: ra.menuIcon }),
|
|
18770
18773
|
/* @__PURE__ */ ve("span", { className: ra.menuLabel, children: re }),
|
|
18771
18774
|
he && /* @__PURE__ */ ve("span", { className: ra.menuHint, children: he }),
|
|
18772
|
-
/* @__PURE__ */ ve(
|
|
18775
|
+
/* @__PURE__ */ ve(Sf, {})
|
|
18773
18776
|
]
|
|
18774
18777
|
}
|
|
18775
18778
|
);
|
|
18776
18779
|
}
|
|
18777
|
-
const
|
|
18778
|
-
function
|
|
18780
|
+
const Cf = (re) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) });
|
|
18781
|
+
function Nf() {
|
|
18779
18782
|
const re = jr(), he = $n("playbackRate"), { t: Ce } = Hn(), rt = Zn(() => {
|
|
18780
18783
|
re.setPage("speed");
|
|
18781
18784
|
}, [re]);
|
|
@@ -18785,11 +18788,11 @@ function Cf() {
|
|
|
18785
18788
|
label: Ce("PLAYBACK_SPEED"),
|
|
18786
18789
|
hint: `${he}x`,
|
|
18787
18790
|
onClick: rt,
|
|
18788
|
-
Icon:
|
|
18791
|
+
Icon: Cf
|
|
18789
18792
|
}
|
|
18790
18793
|
);
|
|
18791
18794
|
}
|
|
18792
|
-
const
|
|
18795
|
+
const Df = (re) => /* @__PURE__ */ ln("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: [
|
|
18793
18796
|
/* @__PURE__ */ ve("defs", { children: /* @__PURE__ */ ve("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ ve("rect", { width: 18, height: 18, fill: "white" }) }) }),
|
|
18794
18797
|
/* @__PURE__ */ ln("g", { clipPath: "url(#clip0_412_23039)", children: [
|
|
18795
18798
|
/* @__PURE__ */ ve("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" }),
|
|
@@ -18804,7 +18807,7 @@ function Ks(re) {
|
|
|
18804
18807
|
const rt = Ce > he, lt = rt ? he : Ce, Mt = rt ? Ce : he;
|
|
18805
18808
|
return lt >= 1400 || Mt >= 2500 ? "1440p" : lt >= 1e3 || Mt >= 1800 ? "1080p" : lt >= 700 || Mt >= 1200 ? "720p" : lt >= 460 || Mt >= 800 ? "480p" : lt >= 300 || Mt >= 540 ? "360p" : lt >= 200 || Mt >= 360 ? "240p" : "144p";
|
|
18806
18809
|
}
|
|
18807
|
-
function
|
|
18810
|
+
function Of() {
|
|
18808
18811
|
const re = jr(), he = $n("autoQuality"), Ce = $n("quality"), { t: rt } = Hn(), lt = Zn(() => {
|
|
18809
18812
|
re.setPage("quality");
|
|
18810
18813
|
}, [re]);
|
|
@@ -18817,11 +18820,11 @@ function Df() {
|
|
|
18817
18820
|
label: rt("QUALITY"),
|
|
18818
18821
|
hint: he ? rt("AUTO", { quality: Mt }) : Mt,
|
|
18819
18822
|
onClick: lt,
|
|
18820
|
-
Icon:
|
|
18823
|
+
Icon: Df
|
|
18821
18824
|
}
|
|
18822
18825
|
);
|
|
18823
18826
|
}
|
|
18824
|
-
function
|
|
18827
|
+
function Mf() {
|
|
18825
18828
|
const re = jr(), he = $n("hasCaptions"), Ce = $n("textTrack"), { t: rt } = Hn(), lt = Zn(() => {
|
|
18826
18829
|
re.setPage("captions");
|
|
18827
18830
|
}, [re]);
|
|
@@ -18835,19 +18838,19 @@ function Of() {
|
|
|
18835
18838
|
}
|
|
18836
18839
|
) : null;
|
|
18837
18840
|
}
|
|
18838
|
-
const
|
|
18841
|
+
const Pf = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) }), Lf = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) }), xf = "_switch-track_7nhpo_1", Ff = "_switch-thumb_7nhpo_17", kf = "_switch-icon_7nhpo_31", Zf = "_switch-body_7nhpo_37", Uf = "_switch-label_7nhpo_78", Bf = "_menu-icon_7nhpo_82", $r = {
|
|
18839
18842
|
"switch-track": "_switch-track_7nhpo_1",
|
|
18840
|
-
switchTrack:
|
|
18843
|
+
switchTrack: xf,
|
|
18841
18844
|
"switch-thumb": "_switch-thumb_7nhpo_17",
|
|
18842
|
-
switchThumb:
|
|
18845
|
+
switchThumb: Ff,
|
|
18843
18846
|
"switch-icon": "_switch-icon_7nhpo_31",
|
|
18844
|
-
switchIcon:
|
|
18847
|
+
switchIcon: kf,
|
|
18845
18848
|
"switch-body": "_switch-body_7nhpo_37",
|
|
18846
|
-
switchBody:
|
|
18849
|
+
switchBody: Zf,
|
|
18847
18850
|
"switch-label": "_switch-label_7nhpo_78",
|
|
18848
|
-
switchLabel:
|
|
18851
|
+
switchLabel: Uf,
|
|
18849
18852
|
"menu-icon": "_menu-icon_7nhpo_82",
|
|
18850
|
-
menuIcon:
|
|
18853
|
+
menuIcon: Bf
|
|
18851
18854
|
};
|
|
18852
18855
|
function oo({
|
|
18853
18856
|
label: re,
|
|
@@ -18867,33 +18870,33 @@ function oo({
|
|
|
18867
18870
|
children: [
|
|
18868
18871
|
rt && /* @__PURE__ */ ve(rt, { className: $r.menuIcon }),
|
|
18869
18872
|
/* @__PURE__ */ ve("span", { className: $r.switchLabel, children: re }),
|
|
18870
|
-
/* @__PURE__ */ ve("div", { className: $r.switchTrack, children: /* @__PURE__ */ ve("div", { className: $r.switchThumb, children: he ? /* @__PURE__ */ ve(
|
|
18873
|
+
/* @__PURE__ */ ve("div", { className: $r.switchTrack, children: /* @__PURE__ */ ve("div", { className: $r.switchThumb, children: he ? /* @__PURE__ */ ve(Pf, { className: $r.switchIcon }) : /* @__PURE__ */ ve(Lf, { className: $r.switchIcon }) }) })
|
|
18871
18874
|
]
|
|
18872
18875
|
}
|
|
18873
18876
|
);
|
|
18874
18877
|
}
|
|
18875
|
-
const
|
|
18876
|
-
function
|
|
18878
|
+
const Gf = (re) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) });
|
|
18879
|
+
function qf() {
|
|
18877
18880
|
const { t: re } = Hn(), he = lr(), Ce = Wn();
|
|
18878
18881
|
return !he.forceComments && he.hasComments ? /* @__PURE__ */ ve(
|
|
18879
18882
|
oo,
|
|
18880
18883
|
{
|
|
18881
|
-
Icon:
|
|
18884
|
+
Icon: Gf,
|
|
18882
18885
|
label: re("COMMENTS"),
|
|
18883
18886
|
onClick: Ce.toggleComments,
|
|
18884
18887
|
checked: Ce.state.commentsEnabled
|
|
18885
18888
|
}
|
|
18886
18889
|
) : null;
|
|
18887
18890
|
}
|
|
18888
|
-
function
|
|
18891
|
+
function Hf() {
|
|
18889
18892
|
return /* @__PURE__ */ ln(Jr, { noBackButton: !0, children: [
|
|
18890
|
-
/* @__PURE__ */ ve(
|
|
18891
|
-
/* @__PURE__ */ ve(
|
|
18892
|
-
/* @__PURE__ */ ve(
|
|
18893
|
-
/* @__PURE__ */ ve(
|
|
18893
|
+
/* @__PURE__ */ ve(Nf, {}),
|
|
18894
|
+
/* @__PURE__ */ ve(Mf, {}),
|
|
18895
|
+
/* @__PURE__ */ ve(qf, {}),
|
|
18896
|
+
/* @__PURE__ */ ve(Of, {})
|
|
18894
18897
|
] });
|
|
18895
18898
|
}
|
|
18896
|
-
const
|
|
18899
|
+
const Vf = (re) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) });
|
|
18897
18900
|
function la({ selected: re, label: he, onClick: Ce }) {
|
|
18898
18901
|
return /* @__PURE__ */ ln(
|
|
18899
18902
|
"button",
|
|
@@ -18905,13 +18908,13 @@ function la({ selected: re, label: he, onClick: Ce }) {
|
|
|
18905
18908
|
tabIndex: -1,
|
|
18906
18909
|
className: kr.menuItem,
|
|
18907
18910
|
children: [
|
|
18908
|
-
/* @__PURE__ */ ve(
|
|
18911
|
+
/* @__PURE__ */ ve(Vf, { className: kr.checkIcon }),
|
|
18909
18912
|
/* @__PURE__ */ ve("span", { className: kr.menuItemLabel, children: he })
|
|
18910
18913
|
]
|
|
18911
18914
|
}
|
|
18912
18915
|
);
|
|
18913
18916
|
}
|
|
18914
|
-
function
|
|
18917
|
+
function jf() {
|
|
18915
18918
|
const re = Xl({
|
|
18916
18919
|
rates: mi,
|
|
18917
18920
|
normalLabel: "1x"
|
|
@@ -18926,13 +18929,13 @@ function Vf() {
|
|
|
18926
18929
|
Ce
|
|
18927
18930
|
)) });
|
|
18928
18931
|
}
|
|
18929
|
-
function
|
|
18932
|
+
function Yf() {
|
|
18930
18933
|
const re = jr(), { t: he } = Hn(), Ce = Zn(() => {
|
|
18931
18934
|
re.setPage("captionManage");
|
|
18932
18935
|
}, [re]);
|
|
18933
18936
|
return /* @__PURE__ */ ve(yi, { label: he("CAPTIONS_MANAGE"), onClick: Ce });
|
|
18934
18937
|
}
|
|
18935
|
-
function
|
|
18938
|
+
function Kf() {
|
|
18936
18939
|
const { t: re } = Hn(), he = Wn(), Ce = jr(), rt = Zn(() => {
|
|
18937
18940
|
Ce.setPage("captionFontSize");
|
|
18938
18941
|
}, [Ce]);
|
|
@@ -18945,7 +18948,7 @@ function Yf() {
|
|
|
18945
18948
|
}
|
|
18946
18949
|
);
|
|
18947
18950
|
}
|
|
18948
|
-
function
|
|
18951
|
+
function zf() {
|
|
18949
18952
|
const re = jr(), he = $n("textTrack"), { t: Ce } = Hn(), { disableCaptionSettings: rt } = Wn(), lt = Zn(() => {
|
|
18950
18953
|
re.setPage("captionLanguage");
|
|
18951
18954
|
}, [re]);
|
|
@@ -18958,7 +18961,7 @@ function Kf() {
|
|
|
18958
18961
|
}
|
|
18959
18962
|
);
|
|
18960
18963
|
}
|
|
18961
|
-
function
|
|
18964
|
+
function Wf() {
|
|
18962
18965
|
const { t: re } = Hn(), he = Wn();
|
|
18963
18966
|
return /* @__PURE__ */ ve(
|
|
18964
18967
|
oo,
|
|
@@ -18969,7 +18972,7 @@ function zf() {
|
|
|
18969
18972
|
}
|
|
18970
18973
|
);
|
|
18971
18974
|
}
|
|
18972
|
-
function
|
|
18975
|
+
function Qf() {
|
|
18973
18976
|
const { t: re } = Hn(), he = Wn();
|
|
18974
18977
|
return /* @__PURE__ */ ve(
|
|
18975
18978
|
oo,
|
|
@@ -18980,17 +18983,17 @@ function Wf() {
|
|
|
18980
18983
|
}
|
|
18981
18984
|
);
|
|
18982
18985
|
}
|
|
18983
|
-
function
|
|
18986
|
+
function Xf() {
|
|
18984
18987
|
const re = lr(), { t: he } = Hn();
|
|
18985
18988
|
return /* @__PURE__ */ ln(Jr, { heading: he("CAPTIONS"), children: [
|
|
18986
|
-
/* @__PURE__ */ ve(Kf, {}),
|
|
18987
|
-
/* @__PURE__ */ ve(Yf, {}),
|
|
18988
18989
|
/* @__PURE__ */ ve(zf, {}),
|
|
18990
|
+
/* @__PURE__ */ ve(Kf, {}),
|
|
18989
18991
|
/* @__PURE__ */ ve(Wf, {}),
|
|
18990
|
-
|
|
18992
|
+
/* @__PURE__ */ ve(Qf, {}),
|
|
18993
|
+
re.onCaptionsDelete && /* @__PURE__ */ ve(Yf, {})
|
|
18991
18994
|
] });
|
|
18992
18995
|
}
|
|
18993
|
-
function
|
|
18996
|
+
function $f() {
|
|
18994
18997
|
const re = $l(), { t: he } = Hn();
|
|
18995
18998
|
return /* @__PURE__ */ ve(Jr, { heading: he("CAPTIONS_LANGUAGE"), children: re.map(({ value: Ce, label: rt, select: lt, selected: Mt }) => /* @__PURE__ */ ve(
|
|
18996
18999
|
la,
|
|
@@ -19002,9 +19005,9 @@ function Xf() {
|
|
|
19002
19005
|
Ce
|
|
19003
19006
|
)) });
|
|
19004
19007
|
}
|
|
19005
|
-
function
|
|
19008
|
+
function Jf() {
|
|
19006
19009
|
const re = Wn(), { t: he } = Hn();
|
|
19007
|
-
return /* @__PURE__ */ ve(Jr, { heading: he("CAPTION_FONT_SIZE"), children:
|
|
19010
|
+
return /* @__PURE__ */ ve(Jr, { heading: he("CAPTION_FONT_SIZE"), children: Qc.map((Ce) => /* @__PURE__ */ ve(
|
|
19008
19011
|
la,
|
|
19009
19012
|
{
|
|
19010
19013
|
selected: Ce === re.state.captionsFontSizeMultiplier,
|
|
@@ -19024,7 +19027,7 @@ const jr = () => {
|
|
|
19024
19027
|
);
|
|
19025
19028
|
return re;
|
|
19026
19029
|
};
|
|
19027
|
-
function
|
|
19030
|
+
function ed() {
|
|
19028
19031
|
const re = jr(), he = lr(), { t: Ce } = Hn();
|
|
19029
19032
|
return Pr(() => {
|
|
19030
19033
|
he.captions.length === 0 && re.backToMain();
|
|
@@ -19047,7 +19050,7 @@ function Jf() {
|
|
|
19047
19050
|
rt.language
|
|
19048
19051
|
)) });
|
|
19049
19052
|
}
|
|
19050
|
-
function
|
|
19053
|
+
function td() {
|
|
19051
19054
|
const re = $n("autoQuality"), he = Jl({ sort: "descending" }), { t: Ce } = Hn();
|
|
19052
19055
|
return /* @__PURE__ */ ve(Jr, { heading: Ce("QUALITY"), children: he.map(({ value: rt, select: lt, selected: Mt, label: Pe, quality: Ee }) => /* @__PURE__ */ ve(
|
|
19053
19056
|
la,
|
|
@@ -19059,11 +19062,11 @@ function ed() {
|
|
|
19059
19062
|
rt
|
|
19060
19063
|
)) });
|
|
19061
19064
|
}
|
|
19062
|
-
function
|
|
19065
|
+
function nd(re, he) {
|
|
19063
19066
|
const Ce = Array.from(re.querySelectorAll("button")), rt = Ce.indexOf(he);
|
|
19064
19067
|
return Ce[rt - 1] ?? null;
|
|
19065
19068
|
}
|
|
19066
|
-
function
|
|
19069
|
+
function rd(re, he) {
|
|
19067
19070
|
const Ce = Array.from(re.querySelectorAll("button")), rt = Ce.indexOf(he);
|
|
19068
19071
|
return Ce[rt + 1] ?? null;
|
|
19069
19072
|
}
|
|
@@ -19074,14 +19077,14 @@ function Os(re) {
|
|
|
19074
19077
|
const he = Array.from(re.querySelectorAll("button"));
|
|
19075
19078
|
return he[he.length - 1] ?? null;
|
|
19076
19079
|
}
|
|
19077
|
-
function
|
|
19080
|
+
function id(re, he) {
|
|
19078
19081
|
const Ce = Nr(null), rt = Mr(
|
|
19079
19082
|
() => ({
|
|
19080
19083
|
Escape: re.toggle,
|
|
19081
19084
|
ArrowUp: () => {
|
|
19082
19085
|
const lt = document.activeElement;
|
|
19083
19086
|
if (lt && Ce.current && Ce.current.contains(lt)) {
|
|
19084
|
-
const Mt =
|
|
19087
|
+
const Mt = nd(
|
|
19085
19088
|
Ce.current,
|
|
19086
19089
|
lt
|
|
19087
19090
|
);
|
|
@@ -19099,7 +19102,7 @@ function rd(re, he) {
|
|
|
19099
19102
|
ArrowDown: () => {
|
|
19100
19103
|
const lt = document.activeElement;
|
|
19101
19104
|
if (lt && Ce.current && Ce.current.contains(lt)) {
|
|
19102
|
-
const Mt =
|
|
19105
|
+
const Mt = rd(
|
|
19103
19106
|
Ce.current,
|
|
19104
19107
|
lt
|
|
19105
19108
|
);
|
|
@@ -19124,25 +19127,25 @@ function rd(re, he) {
|
|
|
19124
19127
|
);
|
|
19125
19128
|
return ao(rt, !0, he), Ce;
|
|
19126
19129
|
}
|
|
19127
|
-
const zs = Wa(null),
|
|
19128
|
-
main:
|
|
19129
|
-
speed:
|
|
19130
|
-
captions:
|
|
19131
|
-
captionLanguage:
|
|
19132
|
-
captionFontSize:
|
|
19133
|
-
captionManage:
|
|
19134
|
-
quality:
|
|
19135
|
-
},
|
|
19130
|
+
const zs = Wa(null), ad = {
|
|
19131
|
+
main: Hf,
|
|
19132
|
+
speed: jf,
|
|
19133
|
+
captions: Xf,
|
|
19134
|
+
captionLanguage: $f,
|
|
19135
|
+
captionFontSize: Jf,
|
|
19136
|
+
captionManage: ed,
|
|
19137
|
+
quality: td
|
|
19138
|
+
}, od = {
|
|
19136
19139
|
name: "middleware",
|
|
19137
19140
|
async fn(re) {
|
|
19138
|
-
const he = await
|
|
19141
|
+
const he = await lc(re);
|
|
19139
19142
|
return {
|
|
19140
19143
|
x: re.x - he.right - 4,
|
|
19141
19144
|
y: re.y - 4
|
|
19142
19145
|
};
|
|
19143
19146
|
}
|
|
19144
19147
|
};
|
|
19145
|
-
function
|
|
19148
|
+
function sd() {
|
|
19146
19149
|
const re = Wn(), [he, Ce] = _r(["main"]), [rt, lt] = _r(!1), Mt = Zn(() => {
|
|
19147
19150
|
lt(!rt), Ce(["main"]), re.setGlobalKeysDisabled(!rt);
|
|
19148
19151
|
}, [rt]), Pe = Zn((c) => {
|
|
@@ -19151,16 +19154,16 @@ function od() {
|
|
|
19151
19154
|
Ce((c) => c.length > 1 ? c.slice(0, -1) : c);
|
|
19152
19155
|
}, []), C = Zn(() => {
|
|
19153
19156
|
Ce(["main"]);
|
|
19154
|
-
}, []), ie = Mr(() =>
|
|
19157
|
+
}, []), ie = Mr(() => ad[he[he.length - 1]], [he]), { refs: T, floatingStyles: t, context: e } = sa({
|
|
19155
19158
|
open: rt,
|
|
19156
19159
|
onOpenChange: Mt,
|
|
19157
19160
|
placement: "top-end",
|
|
19158
19161
|
whileElementsMounted: ua,
|
|
19159
|
-
middleware: [
|
|
19162
|
+
middleware: [od]
|
|
19160
19163
|
}), p = to(e, { escapeKey: !1 }), { getReferenceProps: m, getFloatingProps: o } = no([p]), E = Mr(
|
|
19161
19164
|
() => ({ setPage: Pe, back: Ee, backToMain: C, toggle: Mt }),
|
|
19162
19165
|
[Pe, Ee, C, Mt]
|
|
19163
|
-
), h =
|
|
19166
|
+
), h = id(E, rt), n = eo([T.setFloating, h]);
|
|
19164
19167
|
return {
|
|
19165
19168
|
Page: ie,
|
|
19166
19169
|
open: rt,
|
|
@@ -19178,7 +19181,7 @@ function od() {
|
|
|
19178
19181
|
contextValue: E
|
|
19179
19182
|
};
|
|
19180
19183
|
}
|
|
19181
|
-
function
|
|
19184
|
+
function ud() {
|
|
19182
19185
|
const {
|
|
19183
19186
|
Page: re,
|
|
19184
19187
|
context: he,
|
|
@@ -19189,7 +19192,7 @@ function sd() {
|
|
|
19189
19192
|
floatingRef: Pe,
|
|
19190
19193
|
referenceRef: Ee,
|
|
19191
19194
|
contextValue: C
|
|
19192
|
-
} =
|
|
19195
|
+
} = sd(), { t: ie } = Hn();
|
|
19193
19196
|
return /* @__PURE__ */ ln(pi, { children: [
|
|
19194
19197
|
/* @__PURE__ */ ve(
|
|
19195
19198
|
"button",
|
|
@@ -19202,7 +19205,7 @@ function sd() {
|
|
|
19202
19205
|
"aria-expanded": Mt,
|
|
19203
19206
|
"aria-haspopup": "true",
|
|
19204
19207
|
...lt(),
|
|
19205
|
-
children: /* @__PURE__ */ ve(
|
|
19208
|
+
children: /* @__PURE__ */ ve(gf, { className: "controls-button-icon icon-rotate" })
|
|
19206
19209
|
}
|
|
19207
19210
|
),
|
|
19208
19211
|
Mt && /* @__PURE__ */ ve(
|
|
@@ -19254,17 +19257,17 @@ function Ws(re, he = 1e3) {
|
|
|
19254
19257
|
}, [he]), lt;
|
|
19255
19258
|
};
|
|
19256
19259
|
}
|
|
19257
|
-
const so = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), uo = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }),
|
|
19260
|
+
const so = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), uo = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), ld = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) }), cd = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) }), Qs = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) }), Xs = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) }), $s = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) }), fd = "_feedback-overlay_3kkqe_1", dd = "_feedback-message_3kkqe_14", gd = "_feedback-icon_3kkqe_30", hd = "_feedback-icon-animation_3kkqe_1", yr = {
|
|
19258
19261
|
"feedback-overlay": "_feedback-overlay_3kkqe_1",
|
|
19259
|
-
feedbackOverlay:
|
|
19262
|
+
feedbackOverlay: fd,
|
|
19260
19263
|
"feedback-message": "_feedback-message_3kkqe_14",
|
|
19261
|
-
feedbackMessage:
|
|
19264
|
+
feedbackMessage: dd,
|
|
19262
19265
|
"feedback-icon": "_feedback-icon_3kkqe_30",
|
|
19263
|
-
feedbackIcon:
|
|
19266
|
+
feedbackIcon: gd,
|
|
19264
19267
|
"feedback-icon-animation": "_feedback-icon-animation_3kkqe_1",
|
|
19265
|
-
feedbackIconAnimation:
|
|
19268
|
+
feedbackIconAnimation: hd
|
|
19266
19269
|
};
|
|
19267
|
-
function
|
|
19270
|
+
function md({ action: re }) {
|
|
19268
19271
|
const he = Dr();
|
|
19269
19272
|
if (!he)
|
|
19270
19273
|
return null;
|
|
@@ -19273,10 +19276,10 @@ function hd({ action: re }) {
|
|
|
19273
19276
|
return /* @__PURE__ */ ve("i", { className: yr.feedbackIcon, children: he.paused ? /* @__PURE__ */ ve(so, {}) : /* @__PURE__ */ ve(uo, {}) });
|
|
19274
19277
|
case "seekForward":
|
|
19275
19278
|
case "seekForward10":
|
|
19276
|
-
return /* @__PURE__ */ ve("i", { className: yr.feedbackIcon, children: /* @__PURE__ */ ve(
|
|
19279
|
+
return /* @__PURE__ */ ve("i", { className: yr.feedbackIcon, children: /* @__PURE__ */ ve(ld, { className: "right" }) });
|
|
19277
19280
|
case "seekBackward":
|
|
19278
19281
|
case "seekBackward10":
|
|
19279
|
-
return /* @__PURE__ */ ve("i", { className: yr.feedbackIcon, children: /* @__PURE__ */ ve(
|
|
19282
|
+
return /* @__PURE__ */ ve("i", { className: yr.feedbackIcon, children: /* @__PURE__ */ ve(cd, { className: "left" }) });
|
|
19280
19283
|
case "captionsChange":
|
|
19281
19284
|
return /* @__PURE__ */ ve("i", { className: yr.feedbackIcon, children: /* @__PURE__ */ ve(js, {}) });
|
|
19282
19285
|
case "volumeChange":
|
|
@@ -19285,7 +19288,7 @@ function hd({ action: re }) {
|
|
|
19285
19288
|
return null;
|
|
19286
19289
|
}
|
|
19287
19290
|
}
|
|
19288
|
-
function
|
|
19291
|
+
function pd({ action: re }) {
|
|
19289
19292
|
const { t: he } = Hn(), Ce = Dr();
|
|
19290
19293
|
if (!Ce)
|
|
19291
19294
|
return null;
|
|
@@ -19310,18 +19313,18 @@ function md({ action: re }) {
|
|
|
19310
19313
|
return null;
|
|
19311
19314
|
}
|
|
19312
19315
|
}
|
|
19313
|
-
const
|
|
19316
|
+
const yd = Ws(md, 300), _d = Ws(pd, 1e3);
|
|
19314
19317
|
function Js() {
|
|
19315
19318
|
return /* @__PURE__ */ ln("div", { className: yr.feedbackOverlay, children: [
|
|
19316
|
-
/* @__PURE__ */ ve(
|
|
19317
|
-
/* @__PURE__ */ ve(
|
|
19319
|
+
/* @__PURE__ */ ve(yd, {}),
|
|
19320
|
+
/* @__PURE__ */ ve(_d, {})
|
|
19318
19321
|
] });
|
|
19319
19322
|
}
|
|
19320
|
-
const
|
|
19323
|
+
const Ed = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) }), vd = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("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" }) }), Td = "_full-screen-button_1xm32_2", bd = {
|
|
19321
19324
|
"full-screen-button": "_full-screen-button_1xm32_2",
|
|
19322
|
-
fullScreenButton:
|
|
19325
|
+
fullScreenButton: Td
|
|
19323
19326
|
};
|
|
19324
|
-
function
|
|
19327
|
+
function Sd() {
|
|
19325
19328
|
const re = $n("fullscreen"), he = Dr(), Ce = Wn(), rt = lr(), { t: lt } = Hn();
|
|
19326
19329
|
return rt.hideFullScreen ? null : /* @__PURE__ */ ve(
|
|
19327
19330
|
"button",
|
|
@@ -19330,18 +19333,18 @@ function bd() {
|
|
|
19330
19333
|
type: "button",
|
|
19331
19334
|
"aria-label": lt(re ? "EXIT_FULLSCREEN" : "ENTER_FULLSCREEN"),
|
|
19332
19335
|
tabIndex: Ce.state.interactionsDisabled ? -1 : 0,
|
|
19333
|
-
className: `controls-button ${
|
|
19336
|
+
className: `controls-button ${bd.fullScreenButton}`,
|
|
19334
19337
|
onClick: () => {
|
|
19335
19338
|
re ? he == null || he.exitFullscreen() : he == null || he.enterFullscreen();
|
|
19336
19339
|
},
|
|
19337
|
-
children: re ? /* @__PURE__ */ ve(
|
|
19340
|
+
children: re ? /* @__PURE__ */ ve(vd, { className: "controls-button-icon" }) : /* @__PURE__ */ ve(Ed, { className: "controls-button-icon" })
|
|
19338
19341
|
}
|
|
19339
19342
|
);
|
|
19340
19343
|
}
|
|
19341
|
-
const
|
|
19344
|
+
const Ad = "_gestures-container_1fn3b_1", Id = "_gesture_1fn3b_1", Ms = {
|
|
19342
19345
|
"gestures-container": "_gestures-container_1fn3b_1",
|
|
19343
|
-
gesturesContainer:
|
|
19344
|
-
gesture:
|
|
19346
|
+
gesturesContainer: Ad,
|
|
19347
|
+
gesture: Id
|
|
19345
19348
|
};
|
|
19346
19349
|
function eu() {
|
|
19347
19350
|
const re = oa(), he = () => {
|
|
@@ -19349,18 +19352,18 @@ function eu() {
|
|
|
19349
19352
|
};
|
|
19350
19353
|
return /* @__PURE__ */ ve("div", { className: Ms.gesturesContainer, children: /* @__PURE__ */ ve("div", { "aria-hidden": !0, className: Ms.gesture, onClick: he }) });
|
|
19351
19354
|
}
|
|
19352
|
-
const
|
|
19355
|
+
const Rd = (re) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 0V2.66667C17.1453 2.66667 21.3333 6.85333 21.3333 12C21.3333 17.1467 17.1453 21.3333 12 21.3333C6.85467 21.3333 2.66667 17.1467 2.66667 12C2.66667 9.53733 3.64667 7.21867 5.33333 5.49067V8.66667H8V1.33333H0.666667V4H3.05467C1.108 6.176 0 9.012 0 12C0 18.616 5.38267 24 12 24C18.6173 24 24 18.616 24 12C24 5.384 18.6173 0 12 0Z", fill: "currentColor" }) }), wd = "_play-pause-button_vj8da_1", Cd = {
|
|
19353
19356
|
"play-pause-button": "_play-pause-button_vj8da_1",
|
|
19354
|
-
playPauseButton:
|
|
19357
|
+
playPauseButton: wd
|
|
19355
19358
|
};
|
|
19356
|
-
function Cd(re, he) {
|
|
19357
|
-
return he ? Id : re ? uo : so;
|
|
19358
|
-
}
|
|
19359
19359
|
function Nd(re, he) {
|
|
19360
|
+
return he ? Rd : re ? uo : so;
|
|
19361
|
+
}
|
|
19362
|
+
function Dd(re, he) {
|
|
19360
19363
|
return he ? "REPLAY" : re ? "PLAY" : "PAUSE";
|
|
19361
19364
|
}
|
|
19362
|
-
function
|
|
19363
|
-
const re = Dr(), he = Wn(), Ce = $n("paused"), rt = $n("ended"), { t: lt } = Hn(), Mt = Nr(null), Pe =
|
|
19365
|
+
function Od() {
|
|
19366
|
+
const re = Dr(), he = Wn(), Ce = $n("paused"), rt = $n("ended"), { t: lt } = Hn(), Mt = Nr(null), Pe = Nd(Ce, rt);
|
|
19364
19367
|
return Pr(() => {
|
|
19365
19368
|
const Ee = new AbortController();
|
|
19366
19369
|
return re == null || re.addEventListener(
|
|
@@ -19381,8 +19384,8 @@ function Dd() {
|
|
|
19381
19384
|
ref: Mt,
|
|
19382
19385
|
role: "button",
|
|
19383
19386
|
type: "button",
|
|
19384
|
-
className: `controls-button ${
|
|
19385
|
-
"aria-label": lt(
|
|
19387
|
+
className: `controls-button ${Cd.playPauseButton}`,
|
|
19388
|
+
"aria-label": lt(Dd(Ce, rt)),
|
|
19386
19389
|
tabIndex: he.state.interactionsDisabled ? -1 : 0,
|
|
19387
19390
|
onClick: () => {
|
|
19388
19391
|
re.paused ? re.remoteControl.play() : re.remoteControl.pause();
|
|
@@ -19391,21 +19394,21 @@ function Dd() {
|
|
|
19391
19394
|
}
|
|
19392
19395
|
) : null;
|
|
19393
19396
|
}
|
|
19394
|
-
const
|
|
19397
|
+
const Md = "_small-layout-overlay_cmaq3_1", Pd = "_small-layout-button_cmaq3_14", Ld = "_small-layout-icon-play_cmaq3_24", xd = "_small-layout-icon-pause_cmaq3_30", Fd = "_small-layout-timestamp_cmaq3_36", kd = "_full-screen-close-icon_cmaq3_49", Zd = "_fade-out_cmaq3_1", gi = {
|
|
19395
19398
|
"small-layout-overlay": "_small-layout-overlay_cmaq3_1",
|
|
19396
|
-
smallLayoutOverlay:
|
|
19399
|
+
smallLayoutOverlay: Md,
|
|
19397
19400
|
"small-layout-button": "_small-layout-button_cmaq3_14",
|
|
19398
|
-
smallLayoutButton:
|
|
19401
|
+
smallLayoutButton: Pd,
|
|
19399
19402
|
"small-layout-icon-play": "_small-layout-icon-play_cmaq3_24",
|
|
19400
|
-
smallLayoutIconPlay:
|
|
19403
|
+
smallLayoutIconPlay: Ld,
|
|
19401
19404
|
"small-layout-icon-pause": "_small-layout-icon-pause_cmaq3_30",
|
|
19402
|
-
smallLayoutIconPause:
|
|
19405
|
+
smallLayoutIconPause: xd,
|
|
19403
19406
|
"small-layout-timestamp": "_small-layout-timestamp_cmaq3_36",
|
|
19404
|
-
smallLayoutTimestamp:
|
|
19407
|
+
smallLayoutTimestamp: Fd,
|
|
19405
19408
|
"full-screen-close-icon": "_full-screen-close-icon_cmaq3_49",
|
|
19406
|
-
fullScreenCloseIcon:
|
|
19409
|
+
fullScreenCloseIcon: kd,
|
|
19407
19410
|
"fade-out": "_fade-out_cmaq3_1",
|
|
19408
|
-
fadeOut:
|
|
19411
|
+
fadeOut: Zd
|
|
19409
19412
|
};
|
|
19410
19413
|
function tu() {
|
|
19411
19414
|
const re = $n("paused");
|
|
@@ -19426,65 +19429,65 @@ function tu() {
|
|
|
19426
19429
|
}
|
|
19427
19430
|
);
|
|
19428
19431
|
}
|
|
19429
|
-
const
|
|
19432
|
+
const Ud = "_time-indicator_1uygf_1", Bd = {
|
|
19430
19433
|
"time-indicator": "_time-indicator_1uygf_1",
|
|
19431
|
-
timeIndicator:
|
|
19434
|
+
timeIndicator: Ud
|
|
19432
19435
|
};
|
|
19433
|
-
function
|
|
19434
|
-
return /* @__PURE__ */ ln("div", { className:
|
|
19436
|
+
function Gd() {
|
|
19437
|
+
return /* @__PURE__ */ ln("div", { className: Bd.timeIndicator, children: [
|
|
19435
19438
|
/* @__PURE__ */ ve(aa, { type: "current" }),
|
|
19436
19439
|
"/",
|
|
19437
19440
|
/* @__PURE__ */ ve(aa, { type: "duration" })
|
|
19438
19441
|
] });
|
|
19439
19442
|
}
|
|
19440
|
-
const
|
|
19443
|
+
const qd = "_comment-markers_tqdlg_1", Hd = "_comment-marker_tqdlg_1", Vd = "_timeline-wrapper_tqdlg_23", jd = "_timeline-wrapper-compact_tqdlg_24", Yd = "_track_tqdlg_33", Kd = "_thumb_tqdlg_46", zd = "_root_tqdlg_60", Wd = "_track-inner_tqdlg_90", Qd = "_progress_tqdlg_96", Xd = "_track-fill_tqdlg_102", $d = "_pins_tqdlg_119", Jd = "_pin-button_tqdlg_127", eg = "_annotation-pin_tqdlg_153", tg = "_quiz-pin_tqdlg_162", ng = "_annotation-pin-child_tqdlg_171", rg = "_quiz-pin-child_tqdlg_175", ig = "_interactive-pin-container_tqdlg_180", ag = "_interactive-pin-wrapper_tqdlg_187", og = "_interactive-pin-icon_tqdlg_193", sg = "_interactive-pin_tqdlg_180", ug = "_bg_tqdlg_207", lg = "_symbol_tqdlg_211", cg = "_interactive-pin-button_tqdlg_216", fg = "_interactive-pin-menu_tqdlg_245", dg = "_interactive-pin-menu-item_tqdlg_266", gg = "_arrow_tqdlg_292", hg = "_tooltip_tqdlg_296", mg = "_tooltip-arrow_tqdlg_305", Mn = {
|
|
19441
19444
|
"comment-markers": "_comment-markers_tqdlg_1",
|
|
19442
|
-
commentMarkers:
|
|
19445
|
+
commentMarkers: qd,
|
|
19443
19446
|
"comment-marker": "_comment-marker_tqdlg_1",
|
|
19444
|
-
commentMarker:
|
|
19447
|
+
commentMarker: Hd,
|
|
19445
19448
|
"timeline-wrapper": "_timeline-wrapper_tqdlg_23",
|
|
19446
|
-
timelineWrapper:
|
|
19449
|
+
timelineWrapper: Vd,
|
|
19447
19450
|
"timeline-wrapper-compact": "_timeline-wrapper-compact_tqdlg_24",
|
|
19448
|
-
timelineWrapperCompact:
|
|
19449
|
-
track:
|
|
19450
|
-
thumb:
|
|
19451
|
-
root:
|
|
19451
|
+
timelineWrapperCompact: jd,
|
|
19452
|
+
track: Yd,
|
|
19453
|
+
thumb: Kd,
|
|
19454
|
+
root: zd,
|
|
19452
19455
|
"track-inner": "_track-inner_tqdlg_90",
|
|
19453
|
-
trackInner:
|
|
19454
|
-
progress:
|
|
19456
|
+
trackInner: Wd,
|
|
19457
|
+
progress: Qd,
|
|
19455
19458
|
"track-fill": "_track-fill_tqdlg_102",
|
|
19456
|
-
trackFill:
|
|
19457
|
-
pins:
|
|
19459
|
+
trackFill: Xd,
|
|
19460
|
+
pins: $d,
|
|
19458
19461
|
"pin-button": "_pin-button_tqdlg_127",
|
|
19459
|
-
pinButton:
|
|
19462
|
+
pinButton: Jd,
|
|
19460
19463
|
"annotation-pin": "_annotation-pin_tqdlg_153",
|
|
19461
|
-
annotationPin:
|
|
19464
|
+
annotationPin: eg,
|
|
19462
19465
|
"quiz-pin": "_quiz-pin_tqdlg_162",
|
|
19463
|
-
quizPin:
|
|
19466
|
+
quizPin: tg,
|
|
19464
19467
|
"annotation-pin-child": "_annotation-pin-child_tqdlg_171",
|
|
19465
|
-
annotationPinChild:
|
|
19468
|
+
annotationPinChild: ng,
|
|
19466
19469
|
"quiz-pin-child": "_quiz-pin-child_tqdlg_175",
|
|
19467
|
-
quizPinChild:
|
|
19470
|
+
quizPinChild: rg,
|
|
19468
19471
|
"interactive-pin-container": "_interactive-pin-container_tqdlg_180",
|
|
19469
|
-
interactivePinContainer:
|
|
19472
|
+
interactivePinContainer: ig,
|
|
19470
19473
|
"interactive-pin-wrapper": "_interactive-pin-wrapper_tqdlg_187",
|
|
19471
|
-
interactivePinWrapper:
|
|
19474
|
+
interactivePinWrapper: ag,
|
|
19472
19475
|
"interactive-pin-icon": "_interactive-pin-icon_tqdlg_193",
|
|
19473
|
-
interactivePinIcon:
|
|
19476
|
+
interactivePinIcon: og,
|
|
19474
19477
|
"interactive-pin": "_interactive-pin_tqdlg_180",
|
|
19475
|
-
interactivePin:
|
|
19476
|
-
bg:
|
|
19477
|
-
symbol:
|
|
19478
|
+
interactivePin: sg,
|
|
19479
|
+
bg: ug,
|
|
19480
|
+
symbol: lg,
|
|
19478
19481
|
"interactive-pin-button": "_interactive-pin-button_tqdlg_216",
|
|
19479
|
-
interactivePinButton:
|
|
19482
|
+
interactivePinButton: cg,
|
|
19480
19483
|
"interactive-pin-menu": "_interactive-pin-menu_tqdlg_245",
|
|
19481
|
-
interactivePinMenu:
|
|
19484
|
+
interactivePinMenu: fg,
|
|
19482
19485
|
"interactive-pin-menu-item": "_interactive-pin-menu-item_tqdlg_266",
|
|
19483
|
-
interactivePinMenuItem:
|
|
19484
|
-
arrow:
|
|
19485
|
-
tooltip:
|
|
19486
|
+
interactivePinMenuItem: dg,
|
|
19487
|
+
arrow: gg,
|
|
19488
|
+
tooltip: hg,
|
|
19486
19489
|
"tooltip-arrow": "_tooltip-arrow_tqdlg_305",
|
|
19487
|
-
tooltipArrow:
|
|
19490
|
+
tooltipArrow: mg
|
|
19488
19491
|
};
|
|
19489
19492
|
function Ps() {
|
|
19490
19493
|
const re = $n("duration"), he = lr(), Ce = Wn();
|
|
@@ -19499,7 +19502,7 @@ function Ps() {
|
|
|
19499
19502
|
rt.id
|
|
19500
19503
|
)) }) : null;
|
|
19501
19504
|
}
|
|
19502
|
-
const
|
|
19505
|
+
const pg = ac(function({ currentTime: he, position: Ce }, rt) {
|
|
19503
19506
|
const [lt, Mt] = _r(!1), [Pe, Ee] = _r(null), C = lr(), ie = Wn(), T = Zn(() => {
|
|
19504
19507
|
C.interactiveMenuElements.length > 0 ? Mt((L) => (ie.setGlobalKeysDisabled(!L), !L)) : C.onInteractivePinClick(he);
|
|
19505
19508
|
}, [
|
|
@@ -19644,7 +19647,7 @@ const mg = Kl(function({ currentTime: he, position: Ce }, rt) {
|
|
|
19644
19647
|
}
|
|
19645
19648
|
) })
|
|
19646
19649
|
] });
|
|
19647
|
-
}),
|
|
19650
|
+
}), yg = () => {
|
|
19648
19651
|
const re = Nr(!1), he = Nr(!1), Ce = Mr(() => ({
|
|
19649
19652
|
ArrowLeft: () => {
|
|
19650
19653
|
he.current = !0;
|
|
@@ -19664,13 +19667,13 @@ const mg = Kl(function({ currentTime: he, position: Ce }, rt) {
|
|
|
19664
19667
|
}), re.current && lt.focus());
|
|
19665
19668
|
}, []), wasPinFocused: re.current };
|
|
19666
19669
|
};
|
|
19667
|
-
function
|
|
19670
|
+
function _g() {
|
|
19668
19671
|
var Ee;
|
|
19669
19672
|
const re = $n("duration"), he = $n("currentTime"), Ce = he / re * 100, { disableInteractivePinRanges: rt } = lr(), lt = !rt.some(
|
|
19670
19673
|
([C, ie]) => he >= C && he <= ie
|
|
19671
|
-
), { wasPinFocused: Mt, focusCallback: Pe } =
|
|
19674
|
+
), { wasPinFocused: Mt, focusCallback: Pe } = yg();
|
|
19672
19675
|
return lt ? /* @__PURE__ */ ve("div", { className: Mn.interactivePinContainer, children: /* @__PURE__ */ ve("div", { className: Mn.interactivePinWrapper, children: /* @__PURE__ */ ve(
|
|
19673
|
-
|
|
19676
|
+
pg,
|
|
19674
19677
|
{
|
|
19675
19678
|
ref: Pe,
|
|
19676
19679
|
currentTime: he,
|
|
@@ -19678,14 +19681,14 @@ function yg() {
|
|
|
19678
19681
|
}
|
|
19679
19682
|
) }) }) : (Mt && ((Ee = document.querySelector("[data-media-time-slider]")) == null || Ee.focus()), null);
|
|
19680
19683
|
}
|
|
19681
|
-
function
|
|
19684
|
+
function Eg() {
|
|
19682
19685
|
const re = $n("paused"), he = Wn();
|
|
19683
|
-
return re && !he.state.interactionsDisabled ? /* @__PURE__ */ ve(
|
|
19686
|
+
return re && !he.state.interactionsDisabled ? /* @__PURE__ */ ve(_g, {}) : null;
|
|
19684
19687
|
}
|
|
19685
|
-
const
|
|
19688
|
+
const vg = {
|
|
19686
19689
|
annotation: Mn.annotationPin,
|
|
19687
19690
|
quiz: Mn.quizPin
|
|
19688
|
-
},
|
|
19691
|
+
}, Tg = (re, he, Ce, rt = !1) => he === "annotation" ? re("OPEN_ANNOTATION_AT", { time: Ka(Ce) }) : he === "quiz" ? re(rt ? "OPEN_COMPLETED_QUIZ_AT" : "OPEN_QUIZ_AT", {
|
|
19689
19692
|
time: Ka(Ce)
|
|
19690
19693
|
}) : "";
|
|
19691
19694
|
function nu({
|
|
@@ -19707,11 +19710,11 @@ function nu({
|
|
|
19707
19710
|
style: { left: `${he}%` },
|
|
19708
19711
|
onClick: rt,
|
|
19709
19712
|
"data-marker-id": lt,
|
|
19710
|
-
"aria-label":
|
|
19713
|
+
"aria-label": Tg(C, re, Mt, Pe),
|
|
19711
19714
|
children: /* @__PURE__ */ ln(
|
|
19712
19715
|
"svg",
|
|
19713
19716
|
{
|
|
19714
|
-
className:
|
|
19717
|
+
className: vg[re],
|
|
19715
19718
|
width: "26",
|
|
19716
19719
|
height: "32",
|
|
19717
19720
|
viewBox: "0 0 26 32",
|
|
@@ -19725,7 +19728,7 @@ function nu({
|
|
|
19725
19728
|
}
|
|
19726
19729
|
);
|
|
19727
19730
|
}
|
|
19728
|
-
function
|
|
19731
|
+
function bg(re) {
|
|
19729
19732
|
return /* @__PURE__ */ ve(nu, { type: "annotation", ...re, children: /* @__PURE__ */ ve(
|
|
19730
19733
|
"path",
|
|
19731
19734
|
{
|
|
@@ -19738,7 +19741,7 @@ function Tg(re) {
|
|
|
19738
19741
|
}
|
|
19739
19742
|
) });
|
|
19740
19743
|
}
|
|
19741
|
-
function
|
|
19744
|
+
function Sg(re) {
|
|
19742
19745
|
const he = re.completed ? /* @__PURE__ */ ve(
|
|
19743
19746
|
"path",
|
|
19744
19747
|
{
|
|
@@ -19764,7 +19767,7 @@ function bg(re) {
|
|
|
19764
19767
|
);
|
|
19765
19768
|
return /* @__PURE__ */ ve(nu, { type: "quiz", ...re, children: re.multiple ? /* @__PURE__ */ ve("circle", { className: Mn.quizPinChild, cx: "13", cy: "13", r: "6" }) : he });
|
|
19766
19769
|
}
|
|
19767
|
-
function
|
|
19770
|
+
function Ag(re, he) {
|
|
19768
19771
|
return re.map((Ce, rt) => ({
|
|
19769
19772
|
id: Ce.id,
|
|
19770
19773
|
time: Ce.time,
|
|
@@ -19773,7 +19776,7 @@ function Sg(re, he) {
|
|
|
19773
19776
|
onClick: () => he(Ce)
|
|
19774
19777
|
}));
|
|
19775
19778
|
}
|
|
19776
|
-
function
|
|
19779
|
+
function Ig(re, he) {
|
|
19777
19780
|
const Ce = /* @__PURE__ */ new Map();
|
|
19778
19781
|
re.forEach((Mt) => {
|
|
19779
19782
|
var Ee;
|
|
@@ -19794,12 +19797,12 @@ function Ag(re, he) {
|
|
|
19794
19797
|
}), lt++;
|
|
19795
19798
|
}), rt;
|
|
19796
19799
|
}
|
|
19797
|
-
function
|
|
19800
|
+
function Rg(re, he, Ce, rt) {
|
|
19798
19801
|
switch (re.type) {
|
|
19799
19802
|
case "annotation": {
|
|
19800
19803
|
const lt = () => rt ? re.onClick() : Ce.seek(re.time);
|
|
19801
19804
|
return /* @__PURE__ */ ve(
|
|
19802
|
-
|
|
19805
|
+
bg,
|
|
19803
19806
|
{
|
|
19804
19807
|
id: re.id,
|
|
19805
19808
|
position: re.time / he * 100,
|
|
@@ -19811,7 +19814,7 @@ function Ig(re, he, Ce, rt) {
|
|
|
19811
19814
|
}
|
|
19812
19815
|
case "quiz":
|
|
19813
19816
|
return /* @__PURE__ */ ve(
|
|
19814
|
-
|
|
19817
|
+
Sg,
|
|
19815
19818
|
{
|
|
19816
19819
|
id: re.id,
|
|
19817
19820
|
position: re.time / he * 100,
|
|
@@ -19827,20 +19830,20 @@ function Ig(re, he, Ce, rt) {
|
|
|
19827
19830
|
return null;
|
|
19828
19831
|
}
|
|
19829
19832
|
}
|
|
19830
|
-
function
|
|
19833
|
+
function wg() {
|
|
19831
19834
|
const re = oa(), he = $n("duration"), Ce = lr(), rt = Mr(() => [
|
|
19832
|
-
...
|
|
19835
|
+
...Ag(
|
|
19833
19836
|
Ce.annotations,
|
|
19834
19837
|
Ce.onAnnotationClick
|
|
19835
19838
|
),
|
|
19836
|
-
...Ce.hideQuizMarkers ? [] :
|
|
19839
|
+
...Ce.hideQuizMarkers ? [] : Ig(
|
|
19837
19840
|
Ce.quizMarkers,
|
|
19838
19841
|
Ce.onQuizMarkerClick
|
|
19839
19842
|
)
|
|
19840
|
-
].sort((Mt, Pe) => Mt.time - Pe.time).map((Mt) =>
|
|
19843
|
+
].sort((Mt, Pe) => Mt.time - Pe.time).map((Mt) => Rg(Mt, he, re, Ce.interactive)), [Ce.annotations, Ce.quizMarkers, he, re]);
|
|
19841
19844
|
return Ce.interactive || rt.length > 0 ? /* @__PURE__ */ ve("div", { className: Mn.pins, children: rt }) : null;
|
|
19842
19845
|
}
|
|
19843
|
-
const
|
|
19846
|
+
const Cg = {
|
|
19844
19847
|
normal: Mn.timelineWrapper,
|
|
19845
19848
|
compact: Mn.timelineWrapperCompact
|
|
19846
19849
|
};
|
|
@@ -19864,7 +19867,7 @@ function Ls({
|
|
|
19864
19867
|
})
|
|
19865
19868
|
]
|
|
19866
19869
|
});
|
|
19867
|
-
return /* @__PURE__ */ ln("div", { className:
|
|
19870
|
+
return /* @__PURE__ */ ln("div", { className: Cg[re], children: [
|
|
19868
19871
|
Ce,
|
|
19869
19872
|
/* @__PURE__ */ ln(
|
|
19870
19873
|
di.Root,
|
|
@@ -19916,15 +19919,15 @@ function Ls({
|
|
|
19916
19919
|
)
|
|
19917
19920
|
] });
|
|
19918
19921
|
}
|
|
19919
|
-
const
|
|
19920
|
-
wrapper:
|
|
19921
|
-
track:
|
|
19922
|
-
thumb:
|
|
19922
|
+
const Ng = "_wrapper_1ijfr_1", Dg = "_track_1ijfr_6", Og = "_thumb_1ijfr_16", Mg = "_track-fill_1ijfr_30", Pg = "_root_1ijfr_49", Ai = {
|
|
19923
|
+
wrapper: Ng,
|
|
19924
|
+
track: Dg,
|
|
19925
|
+
thumb: Og,
|
|
19923
19926
|
"track-fill": "_track-fill_1ijfr_30",
|
|
19924
|
-
trackFill:
|
|
19925
|
-
root:
|
|
19927
|
+
trackFill: Mg,
|
|
19928
|
+
root: Pg
|
|
19926
19929
|
};
|
|
19927
|
-
function
|
|
19930
|
+
function Lg() {
|
|
19928
19931
|
const re = Dr(), he = $n("volume"), Ce = $n("muted"), rt = Wn(), lt = Ce || he === 0, { t: Mt } = Hn();
|
|
19929
19932
|
return /* @__PURE__ */ ln("div", { className: Ai.wrapper, children: [
|
|
19930
19933
|
/* @__PURE__ */ ve(
|
|
@@ -20092,16 +20095,16 @@ const xs = {
|
|
|
20092
20095
|
}
|
|
20093
20096
|
}
|
|
20094
20097
|
};
|
|
20095
|
-
function
|
|
20098
|
+
function xg(re) {
|
|
20096
20099
|
return Array.isArray(re) && typeof re[0] == "object";
|
|
20097
20100
|
}
|
|
20098
|
-
function
|
|
20099
|
-
return
|
|
20101
|
+
function Fg(re) {
|
|
20102
|
+
return xg(re) && re.length === 1 ? re[0].src : re;
|
|
20100
20103
|
}
|
|
20101
20104
|
function za(re) {
|
|
20102
20105
|
return typeof re == "number" && !isNaN(re);
|
|
20103
20106
|
}
|
|
20104
|
-
function
|
|
20107
|
+
function kg(re, he = 1e3) {
|
|
20105
20108
|
let Ce = !1;
|
|
20106
20109
|
return () => {
|
|
20107
20110
|
Ce || (re(), Ce = !0, setTimeout(() => {
|
|
@@ -20120,7 +20123,7 @@ const Fs = {
|
|
|
20120
20123
|
invert: !1,
|
|
20121
20124
|
comments: !1
|
|
20122
20125
|
};
|
|
20123
|
-
class
|
|
20126
|
+
class Zg {
|
|
20124
20127
|
constructor() {
|
|
20125
20128
|
Or(this, "playerId", "studio-player");
|
|
20126
20129
|
Or(this, "mediaId", null);
|
|
@@ -20132,7 +20135,7 @@ class kg {
|
|
|
20132
20135
|
const he = (this.time ?? 0).toString();
|
|
20133
20136
|
localStorage.setItem(this.mediaId, he);
|
|
20134
20137
|
});
|
|
20135
|
-
Or(this, "saveTimeThrottled",
|
|
20138
|
+
Or(this, "saveTimeThrottled", kg(this.saveTime, 1e3));
|
|
20136
20139
|
// only used for useStudioPlayer hook's state initialization
|
|
20137
20140
|
Or(this, "initializeState", (he) => {
|
|
20138
20141
|
const Ce = localStorage.getItem(this.playerId);
|
|
@@ -20227,8 +20230,8 @@ class kg {
|
|
|
20227
20230
|
localStorage.setItem(this.playerId, he);
|
|
20228
20231
|
}
|
|
20229
20232
|
}
|
|
20230
|
-
function
|
|
20231
|
-
const lt = Mr(() => new
|
|
20233
|
+
function Ug(re, he, Ce, rt) {
|
|
20234
|
+
const lt = Mr(() => new Zg(), []), [Mt, Pe] = _r(
|
|
20232
20235
|
lt.initializeState(rt)
|
|
20233
20236
|
), Ee = Zn(
|
|
20234
20237
|
(E) => {
|
|
@@ -20306,7 +20309,7 @@ function Zg(re, he, Ce, rt) {
|
|
|
20306
20309
|
storage: lt
|
|
20307
20310
|
};
|
|
20308
20311
|
}
|
|
20309
|
-
const
|
|
20312
|
+
const Bg = (re) => /* @__PURE__ */ ve("svg", { width: 56, height: 72, viewBox: "0 0 28 36", xmlns: "http://www.w3.org/2000/svg", ...re, children: /* @__PURE__ */ ve("g", { id: "Icons", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ ln("g", { id: "audio", children: [
|
|
20310
20313
|
/* @__PURE__ */ ln("g", { id: "icon-file-base-2", children: [
|
|
20311
20314
|
/* @__PURE__ */ ve("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z", fill: "#FFFFFF" }),
|
|
20312
20315
|
/* @__PURE__ */ ve("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z M1.993,35 C1.445,35 1,34.552 1,34 L1,2 C1,1.448 1.445,1 1.993,1 L16.5,1 L16.5,9 C16.5,10.379 17.621,11.5 18.999,11.5 L27,11.5 L27,34 C27,34.552 26.554,35 26.006,35 L1.993,35 Z M27,10.5 L18.999,10.5 C18.173,10.5 17.5,9.827 17.5,9 L17.5,1 L17.585,1 L27,10.414 L27,10.5 L27,10.5 Z", id: "icon-file-base", fill: "#FFFFFF" }),
|
|
@@ -20314,10 +20317,10 @@ const Ug = (re) => /* @__PURE__ */ ve("svg", { width: 56, height: 72, viewBox: "
|
|
|
20314
20317
|
] }),
|
|
20315
20318
|
/* @__PURE__ */ ve("path", { d: "M14.7142857,14.2824 L14.7142857,13 L13.2857143,13.2548 L13.2857143,23.0912 C12.8642857,22.9106 12.3785714,22.8 11.8571429,22.8 C10.2771429,22.8 9,23.7408 9,24.9 C9,26.0592 10.2771429,27 11.8571429,27 C12.3785714,27 12.8642857,26.8894 13.2857143,26.7088 C14.1371429,26.3448 14.7142857,25.6756 14.7142857,24.9 L14.7142857,17.0824 C17.5714286,17.0824 19,20 19,21.4 C19,15.8 16.1428571,14.2824 14.7142857,14.2824", id: "Fill-776", fill: "#384A58" })
|
|
20316
20319
|
] }) }) });
|
|
20317
|
-
function
|
|
20320
|
+
function Gg() {
|
|
20318
20321
|
const re = lr();
|
|
20319
20322
|
return /* @__PURE__ */ ln("div", { className: "audio-layout-wrapper", children: [
|
|
20320
|
-
/* @__PURE__ */ ve(
|
|
20323
|
+
/* @__PURE__ */ ve(Bg, {}),
|
|
20321
20324
|
/* @__PURE__ */ ve(Js, {}),
|
|
20322
20325
|
/* @__PURE__ */ ve(Bs, {}),
|
|
20323
20326
|
/* @__PURE__ */ ve(Ys, { captions: re.captions }),
|
|
@@ -20325,7 +20328,7 @@ function Bg() {
|
|
|
20325
20328
|
/* @__PURE__ */ ve(eu, {})
|
|
20326
20329
|
] });
|
|
20327
20330
|
}
|
|
20328
|
-
function
|
|
20331
|
+
function qg() {
|
|
20329
20332
|
const re = lr(), he = re.kebabMenuElements.length > 0;
|
|
20330
20333
|
return /* @__PURE__ */ ln(pi, { children: [
|
|
20331
20334
|
/* @__PURE__ */ ve(Js, {}),
|
|
@@ -20334,7 +20337,7 @@ function Gg() {
|
|
|
20334
20337
|
/* @__PURE__ */ ve(tu, {}),
|
|
20335
20338
|
/* @__PURE__ */ ve(eu, {}),
|
|
20336
20339
|
/* @__PURE__ */ ve(
|
|
20337
|
-
|
|
20340
|
+
ff,
|
|
20338
20341
|
{
|
|
20339
20342
|
comments: re.comments,
|
|
20340
20343
|
isKebabMenuVisible: he
|
|
@@ -20342,17 +20345,17 @@ function Gg() {
|
|
|
20342
20345
|
)
|
|
20343
20346
|
] });
|
|
20344
20347
|
}
|
|
20345
|
-
const
|
|
20346
|
-
root:
|
|
20347
|
-
normal:
|
|
20348
|
-
compact:
|
|
20348
|
+
const Hg = "_root_5cfhx_1", Vg = "_normal_5cfhx_14", jg = "_compact_5cfhx_21", Yg = "_left-controls_5cfhx_36", Kg = "_right-controls_5cfhx_42", zg = "_indicators_5cfhx_48", hi = {
|
|
20349
|
+
root: Hg,
|
|
20350
|
+
normal: Vg,
|
|
20351
|
+
compact: jg,
|
|
20349
20352
|
"left-controls": "_left-controls_5cfhx_36",
|
|
20350
|
-
leftControls:
|
|
20353
|
+
leftControls: Yg,
|
|
20351
20354
|
"right-controls": "_right-controls_5cfhx_42",
|
|
20352
|
-
rightControls:
|
|
20353
|
-
indicators:
|
|
20355
|
+
rightControls: Kg,
|
|
20356
|
+
indicators: zg
|
|
20354
20357
|
};
|
|
20355
|
-
function
|
|
20358
|
+
function Wg() {
|
|
20356
20359
|
const re = Dr(), he = lr();
|
|
20357
20360
|
Pr(() => {
|
|
20358
20361
|
const Ce = () => {
|
|
@@ -20364,14 +20367,14 @@ function zg() {
|
|
|
20364
20367
|
};
|
|
20365
20368
|
}, [re]);
|
|
20366
20369
|
}
|
|
20367
|
-
function
|
|
20370
|
+
function Qg({
|
|
20368
20371
|
darkMode: re,
|
|
20369
20372
|
playerRef: he,
|
|
20370
20373
|
controlsLayout: Ce,
|
|
20371
20374
|
showCaptionsButton: rt
|
|
20372
20375
|
}) {
|
|
20373
20376
|
const lt = Dr(), Mt = Wn(), { hasAnnotations: Pe, hasQuizmarkers: Ee, interactive: C } = lr(), ie = Mt.state.interactionsDisabled || Mt.state.isKeyboardShortcutsOpen;
|
|
20374
|
-
return
|
|
20377
|
+
return Wg(), Pr(() => {
|
|
20375
20378
|
lt && (lt.remoteControl.pauseControls(), he && (typeof he == "function" ? he(lt) : he.current = lt));
|
|
20376
20379
|
}, [lt, he]), /* @__PURE__ */ ln(
|
|
20377
20380
|
"div",
|
|
@@ -20389,17 +20392,17 @@ function Wg({
|
|
|
20389
20392
|
layout: "normal",
|
|
20390
20393
|
interactionsDisabled: Mt.state.interactionsDisabled,
|
|
20391
20394
|
children: [
|
|
20392
|
-
C || Pe || Ee ? /* @__PURE__ */ ve(
|
|
20393
|
-
C ? /* @__PURE__ */ ve(
|
|
20395
|
+
C || Pe || Ee ? /* @__PURE__ */ ve(wg, {}) : null,
|
|
20396
|
+
C ? /* @__PURE__ */ ve(Eg, {}) : null,
|
|
20394
20397
|
/* @__PURE__ */ ve(Ps, {})
|
|
20395
20398
|
]
|
|
20396
20399
|
}
|
|
20397
20400
|
) : null,
|
|
20398
20401
|
/* @__PURE__ */ ln("div", { className: hi.leftControls, children: [
|
|
20399
|
-
/* @__PURE__ */ ve(
|
|
20400
|
-
/* @__PURE__ */ ve(
|
|
20402
|
+
/* @__PURE__ */ ve(Od, {}),
|
|
20403
|
+
/* @__PURE__ */ ve(Lg, {})
|
|
20401
20404
|
] }),
|
|
20402
|
-
/* @__PURE__ */ ve("div", { className: hi.indicators, children: /* @__PURE__ */ ve(
|
|
20405
|
+
/* @__PURE__ */ ve("div", { className: hi.indicators, children: /* @__PURE__ */ ve(Gd, {}) }),
|
|
20403
20406
|
Ce === "compact" ? /* @__PURE__ */ ve(
|
|
20404
20407
|
Ls,
|
|
20405
20408
|
{
|
|
@@ -20409,60 +20412,63 @@ function Wg({
|
|
|
20409
20412
|
}
|
|
20410
20413
|
) : null,
|
|
20411
20414
|
/* @__PURE__ */ ln("div", { className: hi.rightControls, children: [
|
|
20412
|
-
rt && /* @__PURE__ */ ve(
|
|
20413
|
-
/* @__PURE__ */ ve(
|
|
20414
|
-
/* @__PURE__ */ ve(
|
|
20415
|
+
rt && /* @__PURE__ */ ve(Yc, {}),
|
|
20416
|
+
/* @__PURE__ */ ve(ud, {}),
|
|
20417
|
+
/* @__PURE__ */ ve(Sd, {})
|
|
20415
20418
|
] })
|
|
20416
20419
|
]
|
|
20417
20420
|
}
|
|
20418
20421
|
);
|
|
20419
20422
|
}
|
|
20420
|
-
function
|
|
20423
|
+
function Xg(re, he) {
|
|
20421
20424
|
return re.reduce((Ce, rt) => (Object.keys(he).includes(rt.id) || (Ce[rt.id] = !0), Ce), he);
|
|
20422
20425
|
}
|
|
20423
|
-
function
|
|
20426
|
+
function $g(re, he, Ce, rt, lt) {
|
|
20424
20427
|
return (Mt) => {
|
|
20425
20428
|
const Pe = Mt.detail.currentTime, Ee = !Ce.paused, C = Math.min(Ce.duration * 0.05, 2);
|
|
20426
20429
|
Pe >= re.time && Pe < re.time + C && !rt[re.id] && (lt({ ...rt, [re.id]: !0 }), he(re, Ee));
|
|
20427
20430
|
};
|
|
20428
20431
|
}
|
|
20429
|
-
function
|
|
20432
|
+
function Jg() {
|
|
20430
20433
|
const re = Dr(), { quizMarkers: he, onQuizMarkerShow: Ce } = lr(), [rt, lt] = _r(
|
|
20431
20434
|
he.reduce((Mt, Pe) => (Mt[Pe.id] = !1, Mt), {})
|
|
20432
20435
|
);
|
|
20433
20436
|
Pr(() => {
|
|
20434
20437
|
if (!re)
|
|
20435
20438
|
return;
|
|
20436
|
-
he.length > Object.keys(rt).length && lt(
|
|
20437
|
-
const Mt =
|
|
20439
|
+
he.length > Object.keys(rt).length && lt(Xg(he, rt));
|
|
20440
|
+
const Mt = new AbortController(), Pe = (Ee) => {
|
|
20438
20441
|
var T;
|
|
20439
20442
|
const C = (T = Ee == null ? void 0 : Ee.request) == null ? void 0 : T.detail, ie = he.reduce((t, e) => (t[e.id] = e.time <= C, t), {});
|
|
20440
20443
|
lt({ ...rt, ...ie });
|
|
20441
20444
|
};
|
|
20442
|
-
|
|
20443
|
-
|
|
20444
|
-
|
|
20445
|
-
|
|
20446
|
-
|
|
20447
|
-
|
|
20448
|
-
|
|
20449
|
-
|
|
20450
|
-
|
|
20451
|
-
|
|
20452
|
-
|
|
20453
|
-
|
|
20454
|
-
|
|
20455
|
-
|
|
20456
|
-
|
|
20445
|
+
return requestAnimationFrame(() => {
|
|
20446
|
+
re.addEventListener("seeked", Pe, {
|
|
20447
|
+
signal: Mt.signal
|
|
20448
|
+
});
|
|
20449
|
+
for (const Ee of he) {
|
|
20450
|
+
const C = $g(
|
|
20451
|
+
Ee,
|
|
20452
|
+
Ce,
|
|
20453
|
+
re,
|
|
20454
|
+
rt,
|
|
20455
|
+
lt
|
|
20456
|
+
);
|
|
20457
|
+
re.addEventListener("time-update", C, {
|
|
20458
|
+
signal: Mt.signal
|
|
20459
|
+
});
|
|
20460
|
+
}
|
|
20461
|
+
}), () => {
|
|
20462
|
+
Mt.abort();
|
|
20457
20463
|
};
|
|
20458
20464
|
}, [he, re, rt]);
|
|
20459
20465
|
}
|
|
20460
|
-
function
|
|
20461
|
-
return
|
|
20466
|
+
function eh() {
|
|
20467
|
+
return Jg(), null;
|
|
20462
20468
|
}
|
|
20463
|
-
const
|
|
20469
|
+
const th = {}, ia = () => {
|
|
20464
20470
|
};
|
|
20465
|
-
function
|
|
20471
|
+
function ch({
|
|
20466
20472
|
title: re,
|
|
20467
20473
|
playerRef: he,
|
|
20468
20474
|
src: Ce,
|
|
@@ -20494,7 +20500,7 @@ function lh({
|
|
|
20494
20500
|
controlsLayout: ae = "compact",
|
|
20495
20501
|
hideQuizMarkers: j = !1
|
|
20496
20502
|
}) {
|
|
20497
|
-
const { contextValue: ee, shortcuts: ue, storage: Ae } =
|
|
20503
|
+
const { contextValue: ee, shortcuts: ue, storage: Ae } = Ug(
|
|
20498
20504
|
Mt,
|
|
20499
20505
|
d,
|
|
20500
20506
|
S,
|
|
@@ -20510,12 +20516,12 @@ function lh({
|
|
|
20510
20516
|
[lt]
|
|
20511
20517
|
), Te = Zn(
|
|
20512
20518
|
(Oe) => {
|
|
20513
|
-
ja(Oe) ? Oe.library =
|
|
20519
|
+
ja(Oe) ? Oe.library = fc.MediaPlayer : ws(Oe) && (Oe.cookies = !0);
|
|
20514
20520
|
},
|
|
20515
20521
|
[]
|
|
20516
20522
|
);
|
|
20517
20523
|
return /* @__PURE__ */ ve(
|
|
20518
|
-
|
|
20524
|
+
hc,
|
|
20519
20525
|
{
|
|
20520
20526
|
title: re,
|
|
20521
20527
|
hideFullScreen: Mt,
|
|
@@ -20541,14 +20547,14 @@ function lh({
|
|
|
20541
20547
|
controlsLayout: ae,
|
|
20542
20548
|
startAt: B,
|
|
20543
20549
|
hideQuizMarkers: j,
|
|
20544
|
-
children: /* @__PURE__ */ ve(
|
|
20550
|
+
children: /* @__PURE__ */ ve(gc, { contextValue: ee, children: /* @__PURE__ */ ln(
|
|
20545
20551
|
rc,
|
|
20546
20552
|
{
|
|
20547
|
-
"data-version": "1.1.
|
|
20553
|
+
"data-version": "1.1.13",
|
|
20548
20554
|
crossOrigin: L,
|
|
20549
20555
|
storage: x ? null : Ae,
|
|
20550
20556
|
title: re,
|
|
20551
|
-
src:
|
|
20557
|
+
src: Fg(Ce),
|
|
20552
20558
|
keyShortcuts: ue,
|
|
20553
20559
|
playsInline: !0,
|
|
20554
20560
|
keyDisabled: ee.state.interactionsDisabled || ee.state.globalKeysDisabled,
|
|
@@ -20564,14 +20570,14 @@ function lh({
|
|
|
20564
20570
|
ja(Oe) && (Oe.ctx.qualities.items.length === 0 ? Ue("audio") : Ue("video"));
|
|
20565
20571
|
},
|
|
20566
20572
|
children: [
|
|
20567
|
-
/* @__PURE__ */ ln(ic, { className:
|
|
20568
|
-
Ne === "audio" && /* @__PURE__ */ ve(
|
|
20569
|
-
Ne === "video" && /* @__PURE__ */ ve(
|
|
20573
|
+
/* @__PURE__ */ ln(ic, { className: th.mediaProvider, children: [
|
|
20574
|
+
Ne === "audio" && /* @__PURE__ */ ve(Gg, {}),
|
|
20575
|
+
Ne === "video" && /* @__PURE__ */ ve(qg, {})
|
|
20570
20576
|
] }),
|
|
20571
|
-
/* @__PURE__ */ ve(
|
|
20572
|
-
K && /* @__PURE__ */ ve(
|
|
20577
|
+
/* @__PURE__ */ ve(jc, {}),
|
|
20578
|
+
K && /* @__PURE__ */ ve(df, { renderOverlay: K }),
|
|
20573
20579
|
/* @__PURE__ */ ve(
|
|
20574
|
-
|
|
20580
|
+
Qg,
|
|
20575
20581
|
{
|
|
20576
20582
|
darkMode: n,
|
|
20577
20583
|
playerRef: he,
|
|
@@ -20579,8 +20585,8 @@ function lh({
|
|
|
20579
20585
|
controlsLayout: ae
|
|
20580
20586
|
}
|
|
20581
20587
|
),
|
|
20582
|
-
/* @__PURE__ */ ve(
|
|
20583
|
-
!!ie.length && /* @__PURE__ */ ve(
|
|
20588
|
+
/* @__PURE__ */ ve(_c, { annotations: C }),
|
|
20589
|
+
!!ie.length && /* @__PURE__ */ ve(eh, {})
|
|
20584
20590
|
]
|
|
20585
20591
|
}
|
|
20586
20592
|
) })
|
|
@@ -20588,10 +20594,10 @@ function lh({
|
|
|
20588
20594
|
);
|
|
20589
20595
|
}
|
|
20590
20596
|
export {
|
|
20591
|
-
|
|
20592
|
-
|
|
20597
|
+
Qc as CAPTION_FONT_SIZE_MULTIPLIERS,
|
|
20598
|
+
Xc as COMMENT_DURATION,
|
|
20593
20599
|
mi as PLAYBACK_RATES,
|
|
20594
|
-
|
|
20600
|
+
ch as StudioPlayer,
|
|
20595
20601
|
$n as useMediaState,
|
|
20596
|
-
|
|
20602
|
+
gh as useMediaStore
|
|
20597
20603
|
};
|