@webitel/ui-sdk 26.4.27 → 26.4.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-C8vBiPd-.js → index-VLBQPnjY.js} +1 -1
- package/dist/{index-sCAVesRw.js → index-oh1_UWqX.js} +1 -1
- package/dist/{install-BpbOHj_I.js → install-CEGf7rvJ.js} +35 -35
- package/dist/{isObject-DJCoqZvr.js → isObject-C2EnTSY7.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +32 -32
- package/dist/{useVidstackSrc-DPEX6RRJ.js → useVidstackSrc-BoI6qQaE.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-C8BarGxA.js → vidstack-Bq6c3Bam-BcVukUvQ.js} +3 -3
- package/dist/{vidstack-D2pY00kU-B_cafpYr.js → vidstack-D2pY00kU-DU8R3ze4.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-Dpiisxf7.js → vidstack-DDXt6fpN-CnS79_M3.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-DIHKUpGf.js → vidstack-D_-9AA6_-BeYN7WwU.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-0WX0T-uC.js → vidstack-DqAw8m9J-bTd-oi6c.js} +1 -1
- package/dist/{vidstack-audio-BCCWjePC.js → vidstack-audio-DfV6NzrV.js} +2 -2
- package/dist/{vidstack-dash-B7M-SKgK.js → vidstack-dash-28gycFPs.js} +4 -4
- package/dist/{vidstack-google-cast-CdpMYQLE.js → vidstack-google-cast-ORpxxhri.js} +4 -4
- package/dist/{vidstack-hls-Dv758_L_.js → vidstack-hls-DwdoDEgJ.js} +4 -4
- package/dist/{vidstack-video-DvFDc21I.js → vidstack-video-CF8ySFTF.js} +3 -3
- package/dist/{vidstack-vimeo-DyiUIV8-.js → vidstack-vimeo-DZoGSBhY.js} +4 -4
- package/dist/{vidstack-youtube-BV-M7QMe.js → vidstack-youtube-Lgxw1He5.js} +3 -3
- package/dist/{wt-action-bar-DtCnV0QA.js → wt-action-bar-Cbuh1LrW.js} +1 -1
- package/dist/{wt-button-select-Bu3VECKn.js → wt-button-select-BFHPdkQh.js} +1 -1
- package/dist/{wt-chat-emoji-DqInk1GC.js → wt-chat-emoji-Dw7NSkjE.js} +63 -61
- package/dist/{wt-confirm-dialog-D57F9q1J.js → wt-confirm-dialog-B_3VrcV2.js} +1 -1
- package/dist/{wt-context-menu-D0jnJXad.js → wt-context-menu-7oTcVjwZ.js} +1 -1
- package/dist/{wt-copy-action-DDCSQ_2A.js → wt-copy-action-CI6MwBCQ.js} +1 -1
- package/dist/{wt-datepicker-C4sRfJ0p.js → wt-datepicker-dBUNe0vY.js} +1 -1
- package/dist/{wt-display-chip-items-DJQPHg3Q.js → wt-display-chip-items-BdnVUJum.js} +1 -1
- package/dist/{wt-dual-panel-M4TS1dRc.js → wt-dual-panel-DdOQkiSq.js} +1 -1
- package/dist/{wt-dummy-BRRjf0iz.js → wt-dummy-hnpAJg3I.js} +1 -1
- package/dist/{wt-error-page-BD9BuJtX.js → wt-error-page-CT3Zc7Jy.js} +1 -1
- package/dist/{wt-expansion-card-eSBcimM6.js → wt-expansion-card-DZFDwtkW.js} +1 -1
- package/dist/{wt-expansion-panel-CknhgWwE.js → wt-expansion-panel-C1ZTuiOS.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-C9VLrrrp.js → wt-filters-panel-wrapper-CsbMmdCS.js} +1 -1
- package/dist/{wt-galleria-zKCtE388.js → wt-galleria-B6qsjlpN.js} +1 -1
- package/dist/{wt-navigation-menu-C0e1FmmX.js → wt-navigation-menu-BqFNRt-w.js} +1 -1
- package/dist/{wt-notifications-bar-p6CI--c4.js → wt-notifications-bar-r8RcgN82.js} +2 -2
- package/dist/{wt-pagination-DdSBUoj0.js → wt-pagination-NEieH0GI.js} +1 -1
- package/dist/{wt-player-Covx2kWC.js → wt-player-CwNmEqGK.js} +2 -2
- package/dist/{wt-screen-recordings-action-D_LvQ56d.js → wt-screen-recordings-action-DMl4osh9.js} +1 -1
- package/dist/{wt-search-bar-CFUNZ9ie.js → wt-search-bar-Bv1WjSik.js} +1 -1
- package/dist/{wt-selection-popup-BPB0_88a.js → wt-selection-popup-zztv110P.js} +1 -1
- package/dist/{wt-start-page-6Gh-s00S.js → wt-start-page-DzHHDSfC.js} +1 -1
- package/dist/{wt-status-select-jfvUfsMb.js → wt-status-select-Ckt-Q0nH.js} +1 -1
- package/dist/{wt-stepper-BVp2iitY.js → wt-stepper-B1iloeAL.js} +1 -1
- package/dist/{wt-table-DX3441nG.js → wt-table-Cq8VWrhY.js} +1 -1
- package/dist/{wt-table-actions-Ipj873-B.js → wt-table-actions-onq158M0.js} +1 -1
- package/dist/{wt-table-column-select-CSgLS3kw.js → wt-table-column-select-fwbVAsCI.js} +2 -2
- package/dist/{wt-tabs-BV1lJuJ5.js → wt-tabs-CphZpRpb.js} +1 -1
- package/dist/{wt-tags-input-gwEFiCiV.js → wt-tags-input-B4yiqhez.js} +2 -2
- package/dist/{wt-timepicker-C5P3BuaL.js → wt-timepicker-DA4j12NZ.js} +1 -1
- package/dist/{wt-tree-DfEqI8Is.js → wt-tree-DkPvJwqe.js} +2 -2
- package/dist/{wt-tree-table-CaTpgNb3.js → wt-tree-table-CS4HF1cH.js} +1 -1
- package/dist/{wt-type-extension-value-input-DAD2xazl.js → wt-type-extension-value-input-kpRyXv0R.js} +2 -2
- package/dist/{wt-vidstack-player-BJN_iH6u.js → wt-vidstack-player-CnzT-5zn.js} +868 -850
- package/package.json +1 -1
- package/src/components/on-demand/wt-chat-emoji/wt-chat-emoji.vue +6 -1
- package/src/components/wt-vidstack-player/components/layouts/video-layout.vue +11 -2
- package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +8 -6
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +4 -0
- package/src/modules/CallSession/modules/VideoCall/video-call.vue +11 -0
- package/types/components/wt-vidstack-player/components/layouts/video-layout.vue.d.ts +5 -3
- package/types/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue.d.ts +11 -1
- package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +6 -4
- package/types/modules/CallSession/modules/VideoCall/video-call.vue.d.ts +5 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as lt, inject as
|
|
2
|
-
import { a as q, c as
|
|
3
|
-
import { T as
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as lt, inject as ye, createElementBlock as ft, openBlock as G, normalizeClass as be, unref as ot, createElementVNode as at, renderSlot as pt, createVNode as U, useTemplateRef as _i, onMounted as Ii, onBeforeUnmount as Vi, createBlock as Ut, createCommentVNode as Kt, toDisplayString as Di, createSlots as Ds, withCtx as Qt, resolveComponent as Ri, ref as us, provide as Oi, toRefs as Ni } from "vue";
|
|
2
|
+
import { a as q, c as gt, i as B, b as Ie, d as S, e as nt, f as Ve, l as O, s as te, g as Rs, E as Os, D as L, h as Q, o as P, j as Hi, k as f, m as l, n as M, p as Ns, q as Fi, r as he, t as W, V as J, v as w, C as b, S as yt, w as Vt, x as p, y as rt, z, I as Hs, A as Bi, B as Gi, F as tt, G as Ge, H as Fs, J as ps, K as Ue, L as Bs, M as kt, N as Ke, O as ce, P as Ui, Q as xt, R as Ki, U as Qi, W as Wi, X as zi, Y as ji, Z as Yi, _ as Xi, $ as Ji, a0 as Zi, a1 as Gs, a2 as T, a3 as _, a4 as ue, a5 as ta, a6 as Dt, a7 as K, a8 as ea, a9 as sa, aa as ia, ab as aa, ac as ms, ad as na, ae as ra, af as v, ag as y, ah as oa, ai as ha, T as la, u as da } from "./useVidstackSrc-BoI6qQaE.js";
|
|
3
|
+
import { T as ca, U as ua, V as pa, X as ma, _ as dt, Q as jt, Y as fa, C as Y } from "./install-CEGf7rvJ.js";
|
|
4
|
+
import { _ as ga } from "./wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js";
|
|
5
|
+
const Us = gt();
|
|
6
6
|
function $() {
|
|
7
|
-
return q(
|
|
7
|
+
return q(Us);
|
|
8
8
|
}
|
|
9
|
-
class
|
|
9
|
+
class le {
|
|
10
10
|
#t;
|
|
11
11
|
get length() {
|
|
12
12
|
return this.#t.length;
|
|
@@ -30,7 +30,7 @@ function fs(a) {
|
|
|
30
30
|
}
|
|
31
31
|
return t;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function $t(a) {
|
|
34
34
|
if (!a.length) return null;
|
|
35
35
|
let t = a.end(0);
|
|
36
36
|
for (let e = 1; e < a.length; e++) {
|
|
@@ -39,7 +39,7 @@ function vt(a) {
|
|
|
39
39
|
}
|
|
40
40
|
return t;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function ya(a) {
|
|
43
43
|
if (a.length <= 1)
|
|
44
44
|
return a;
|
|
45
45
|
a.sort((s, i) => s[0] - i[0]);
|
|
@@ -50,44 +50,44 @@ function ga(a) {
|
|
|
50
50
|
}
|
|
51
51
|
return t.push(e), t;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function ba(a, t, e) {
|
|
54
54
|
let s = t[0], i = t[1];
|
|
55
|
-
return e < s ? [e, -1] : e === s ? t : s === -1 ? (t[0] = e, t) : (e > s && (t[1] = e, i === -1 && a.push(t)),
|
|
55
|
+
return e < s ? [e, -1] : e === s ? t : s === -1 ? (t[0] = e, t) : (e > s && (t[1] = e, i === -1 && a.push(t)), ya(a), t);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Ch(a, t) {
|
|
58
58
|
const e = new URL(a);
|
|
59
59
|
for (const s of Object.keys(t))
|
|
60
60
|
e.searchParams.set(s, t[s] + "");
|
|
61
61
|
return e.toString();
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ee(a, t = "preconnect") {
|
|
64
64
|
const e = document.querySelector(`link[href="${a}"]`);
|
|
65
65
|
if (!nt(e)) return !0;
|
|
66
66
|
const s = document.createElement("link");
|
|
67
67
|
return s.rel = t, s.href = a, s.crossOrigin = "true", document.head.append(s), !0;
|
|
68
68
|
}
|
|
69
|
-
const
|
|
70
|
-
function
|
|
71
|
-
if (
|
|
69
|
+
const Ht = {};
|
|
70
|
+
function Eh(a) {
|
|
71
|
+
if (Ht[a]) return Ht[a].promise;
|
|
72
72
|
const t = Ve(), e = document.querySelector(`script[src="${a}"]`);
|
|
73
73
|
if (!nt(e))
|
|
74
74
|
return t.resolve(), t.promise;
|
|
75
|
-
|
|
75
|
+
Ht[a] = t;
|
|
76
76
|
const s = document.createElement("script");
|
|
77
77
|
return s.src = a, s.onload = () => {
|
|
78
|
-
t.resolve(), delete
|
|
78
|
+
t.resolve(), delete Ht[a];
|
|
79
79
|
}, s.onerror = () => {
|
|
80
|
-
t.reject(), delete
|
|
80
|
+
t.reject(), delete Ht[a];
|
|
81
81
|
}, setTimeout(() => document.head.append(s), 0), t.promise;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Wt(a) {
|
|
84
84
|
return a === "use-credentials" ? "include" : S(a) ? "same-origin" : void 0;
|
|
85
85
|
}
|
|
86
86
|
function De(a, t) {
|
|
87
87
|
return t >= a.startTime && t < a.endTime;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
let s = null, i =
|
|
89
|
+
function ve(a, t, e) {
|
|
90
|
+
let s = null, i = Rs();
|
|
91
91
|
function n() {
|
|
92
92
|
const r = S(t) ? [t] : t, o = a.toArray().find((h) => r.includes(h.kind) && h.mode === "showing");
|
|
93
93
|
if (o !== s) {
|
|
@@ -95,7 +95,7 @@ function be(a, t, e) {
|
|
|
95
95
|
e(null), s = null;
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
-
o.readyState == 2 ? e(o) : (e(null),
|
|
98
|
+
o.readyState == 2 ? e(o) : (e(null), te(() => {
|
|
99
99
|
const h = O(
|
|
100
100
|
o,
|
|
101
101
|
"load",
|
|
@@ -109,8 +109,8 @@ function be(a, t, e) {
|
|
|
109
109
|
}
|
|
110
110
|
return n(), O(a, "mode-change", n);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
112
|
+
function va(a, t, e) {
|
|
113
|
+
ve(a, t, (s) => {
|
|
114
114
|
if (!s) {
|
|
115
115
|
e("");
|
|
116
116
|
return;
|
|
@@ -122,16 +122,16 @@ function ba(a, t, e) {
|
|
|
122
122
|
i(), O(s, "cue-change", i);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
const
|
|
126
|
-
crossOrigin:
|
|
127
|
-
readyState:
|
|
128
|
-
updateActiveCues:
|
|
129
|
-
canLoad:
|
|
130
|
-
onModeChange:
|
|
131
|
-
native:
|
|
125
|
+
const $a = /* @__PURE__ */ Symbol(0), wa = /* @__PURE__ */ Symbol(0), Ta = /* @__PURE__ */ Symbol(0), ka = /* @__PURE__ */ Symbol(0), Sa = /* @__PURE__ */ Symbol(0), Pa = /* @__PURE__ */ Symbol(0), xa = /* @__PURE__ */ Symbol(0), k = {
|
|
126
|
+
crossOrigin: $a,
|
|
127
|
+
readyState: wa,
|
|
128
|
+
updateActiveCues: Ta,
|
|
129
|
+
canLoad: ka,
|
|
130
|
+
onModeChange: Sa,
|
|
131
|
+
native: Pa,
|
|
132
132
|
nativeHLS: xa
|
|
133
133
|
};
|
|
134
|
-
class
|
|
134
|
+
class pe extends Os {
|
|
135
135
|
static createId(t) {
|
|
136
136
|
return `vds-${t.type}-${t.kind}-${t.src ?? t.label ?? "?"}`;
|
|
137
137
|
}
|
|
@@ -244,7 +244,7 @@ class ue extends Rs {
|
|
|
244
244
|
try {
|
|
245
245
|
const { parseResponse: t, VTTCue: e, VTTRegion: s } = await import("./prod-BoQuiIB3.js").then((r) => r.d), i = this[k.crossOrigin]?.(), n = fetch(this.src, {
|
|
246
246
|
headers: this.type === "json" ? { "Content-Type": "application/json" } : void 0,
|
|
247
|
-
credentials:
|
|
247
|
+
credentials: Wt(i)
|
|
248
248
|
});
|
|
249
249
|
if (this.type === "json")
|
|
250
250
|
this.#u(await (await n).text(), e, s);
|
|
@@ -277,7 +277,7 @@ class ue extends Rs {
|
|
|
277
277
|
}
|
|
278
278
|
#u(t, e, s) {
|
|
279
279
|
try {
|
|
280
|
-
const { regions: i, cues: n } =
|
|
280
|
+
const { regions: i, cues: n } = Ea(t, e, s);
|
|
281
281
|
this.#a = i, this.#n = n;
|
|
282
282
|
} catch (i) {
|
|
283
283
|
this.#c(i);
|
|
@@ -287,28 +287,28 @@ class ue extends Rs {
|
|
|
287
287
|
this.dispatchEvent(new L("cue-change", { trigger: t }));
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
const
|
|
290
|
+
const Ca = /captions|subtitles/;
|
|
291
291
|
function H(a) {
|
|
292
|
-
return
|
|
292
|
+
return Ca.test(a.kind);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Ea(a, t, e) {
|
|
295
295
|
const s = S(a) ? JSON.parse(a) : a;
|
|
296
296
|
let i = [], n = [];
|
|
297
297
|
return s.regions && e && (i = s.regions.map((r) => Object.assign(new e(), r))), (s.cues || B(s)) && (n = (B(s) ? s : s.cues).filter((r) => Q(r.startTime) && Q(r.endTime)).map((r) => Object.assign(new t(0, 0, ""), r))), { regions: i, cues: n };
|
|
298
298
|
}
|
|
299
|
-
const
|
|
300
|
-
add:
|
|
301
|
-
remove:
|
|
302
|
-
reset:
|
|
303
|
-
select:
|
|
304
|
-
readonly:
|
|
305
|
-
setReadonly:
|
|
306
|
-
onReset:
|
|
307
|
-
onRemove:
|
|
308
|
-
onUserSelect:
|
|
309
|
-
},
|
|
310
|
-
setAuto:
|
|
311
|
-
enableAuto:
|
|
299
|
+
const Aa = /* @__PURE__ */ Symbol(0), Ma = /* @__PURE__ */ Symbol(0), La = /* @__PURE__ */ Symbol(0), qa = /* @__PURE__ */ Symbol(0), _a = /* @__PURE__ */ Symbol(0), Ia = /* @__PURE__ */ Symbol(0), Va = /* @__PURE__ */ Symbol(0), Da = /* @__PURE__ */ Symbol(0), Ra = /* @__PURE__ */ Symbol(0), x = {
|
|
300
|
+
add: Aa,
|
|
301
|
+
remove: Ma,
|
|
302
|
+
reset: La,
|
|
303
|
+
select: qa,
|
|
304
|
+
readonly: _a,
|
|
305
|
+
setReadonly: Ia,
|
|
306
|
+
onReset: Va,
|
|
307
|
+
onRemove: Da,
|
|
308
|
+
onUserSelect: Ra
|
|
309
|
+
}, Oa = /* @__PURE__ */ Symbol(0), Na = /* @__PURE__ */ Symbol(0), X = {
|
|
310
|
+
setAuto: Oa,
|
|
311
|
+
enableAuto: Na
|
|
312
312
|
};
|
|
313
313
|
function xe(a) {
|
|
314
314
|
return a instanceof Error ? a : Error(typeof a == "string" ? a : JSON.stringify(a));
|
|
@@ -319,7 +319,7 @@ function st(a, t) {
|
|
|
319
319
|
}
|
|
320
320
|
function gs(a, t) {
|
|
321
321
|
const e = t.composedPath()[0];
|
|
322
|
-
return
|
|
322
|
+
return Fi(e) && a.contains(e);
|
|
323
323
|
}
|
|
324
324
|
const Re = /* @__PURE__ */ new Set();
|
|
325
325
|
{
|
|
@@ -333,15 +333,15 @@ const Re = /* @__PURE__ */ new Set();
|
|
|
333
333
|
};
|
|
334
334
|
a();
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Ha(a) {
|
|
337
337
|
return Re.add(a), () => Re.delete(a);
|
|
338
338
|
}
|
|
339
339
|
function C(a, t, e) {
|
|
340
340
|
a.hasAttribute(t) || a.setAttribute(t, e);
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function bt(a, t) {
|
|
343
343
|
if (a.hasAttribute("aria-label") || a.hasAttribute("data-no-label")) return;
|
|
344
|
-
if (!
|
|
344
|
+
if (!Hi(t)) {
|
|
345
345
|
f(a, "aria-label", t);
|
|
346
346
|
return;
|
|
347
347
|
}
|
|
@@ -350,17 +350,17 @@ function yt(a, t) {
|
|
|
350
350
|
}
|
|
351
351
|
l(e);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Ks(a) {
|
|
354
354
|
const t = getComputedStyle(a);
|
|
355
355
|
return t.display !== "none" && parseInt(t.opacity) > 0;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
return !!a && ("checkVisibility" in a ? a.checkVisibility({ checkOpacity: !0, checkVisibilityCSS: !0 }) :
|
|
357
|
+
function Fa(a) {
|
|
358
|
+
return !!a && ("checkVisibility" in a ? a.checkVisibility({ checkOpacity: !0, checkVisibilityCSS: !0 }) : Ks(a));
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
return
|
|
360
|
+
function Qs(a, t) {
|
|
361
|
+
return Ha(() => t(Fa(a)));
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Ws(a, t, e) {
|
|
364
364
|
for (; t; ) {
|
|
365
365
|
if (t === a)
|
|
366
366
|
return !0;
|
|
@@ -370,19 +370,19 @@ function Qs(a, t, e) {
|
|
|
370
370
|
}
|
|
371
371
|
return !1;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function mt(a, t) {
|
|
374
374
|
return new M(a).add("pointerup", (e) => {
|
|
375
375
|
e.button === 0 && !e.defaultPrevented && t(e);
|
|
376
376
|
}).add("keydown", (e) => {
|
|
377
|
-
|
|
377
|
+
Ns(e) && t(e);
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
function Qe(a) {
|
|
381
|
-
return
|
|
381
|
+
return he(a) && (a.touches.length > 1 || a.changedTouches.length > 1);
|
|
382
382
|
}
|
|
383
383
|
function ht(a) {
|
|
384
|
-
let t =
|
|
385
|
-
|
|
384
|
+
let t = Rs(), e = window.requestAnimationFrame(() => {
|
|
385
|
+
te(a, t), e = -1;
|
|
386
386
|
});
|
|
387
387
|
return () => {
|
|
388
388
|
window.cancelAnimationFrame(e);
|
|
@@ -393,18 +393,18 @@ function We(a, t, e) {
|
|
|
393
393
|
!r && a.firstElementChild && (a.innerHTML = a.firstElementChild.outerHTML, a.firstElementChild.remove(), r = a.content.firstElementChild);
|
|
394
394
|
for (let h = 0; h < t; h++)
|
|
395
395
|
s = document.importNode(r, !0), e?.(s, h), n.insertBefore(s, i.nextSibling), o.push(s), i = s;
|
|
396
|
-
return
|
|
396
|
+
return P(() => {
|
|
397
397
|
for (let h = 0; h < o.length; h++) o[h].remove();
|
|
398
398
|
}), o;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function zs(a) {
|
|
401
401
|
const t = document.createElement("template");
|
|
402
402
|
return t.innerHTML = a, t.content;
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function js(a) {
|
|
405
405
|
return a.cloneNode(!0).firstElementChild;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Ys(a, t, e, {
|
|
408
408
|
offsetVarName: s,
|
|
409
409
|
xOffset: i,
|
|
410
410
|
yOffset: n,
|
|
@@ -415,13 +415,13 @@ function js(a, t, e, {
|
|
|
415
415
|
if (W(a, "visibility", t ? null : "hidden"), !t) return;
|
|
416
416
|
let h = e.includes("top");
|
|
417
417
|
const d = (u) => e.includes("left") ? `calc(-1 * ${u})` : u, c = (u) => h ? `calc(-1 * ${u})` : u;
|
|
418
|
-
return
|
|
419
|
-
|
|
418
|
+
return ca(t, a, () => {
|
|
419
|
+
ua(t, a, {
|
|
420
420
|
placement: o,
|
|
421
421
|
middleware: [
|
|
422
422
|
...r.middleware ?? [],
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
pa({ fallbackAxisSideDirection: "start", crossAxis: !1 }),
|
|
424
|
+
ma()
|
|
425
425
|
],
|
|
426
426
|
...r
|
|
427
427
|
}).then(({ x: u, y: m, middlewareData: g }) => {
|
|
@@ -440,57 +440,57 @@ function js(a, t, e, {
|
|
|
440
440
|
});
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Ba(a) {
|
|
444
444
|
return getComputedStyle(a).animationName !== "none";
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function St(a) {
|
|
447
447
|
return a instanceof HTMLElement;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Ga(a) {
|
|
450
450
|
return a ? "true" : "false";
|
|
451
451
|
}
|
|
452
452
|
function N(a) {
|
|
453
|
-
return () =>
|
|
453
|
+
return () => Ga(a());
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Ua() {
|
|
456
456
|
return typeof window > "u" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
457
457
|
}
|
|
458
458
|
function V(a, t = 2) {
|
|
459
459
|
return Number(a.toFixed(t));
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Ka(a) {
|
|
462
462
|
return String(a).split(".")[1]?.length ?? 0;
|
|
463
463
|
}
|
|
464
464
|
function ze(a, t, e) {
|
|
465
465
|
return Math.max(a, Math.min(e, t));
|
|
466
466
|
}
|
|
467
|
-
let
|
|
467
|
+
let me = w(!1);
|
|
468
468
|
O(document, "pointerdown", () => {
|
|
469
|
-
|
|
469
|
+
me.set(!1);
|
|
470
470
|
}), O(document, "keydown", (a) => {
|
|
471
|
-
a.metaKey || a.altKey || a.ctrlKey ||
|
|
471
|
+
a.metaKey || a.altKey || a.ctrlKey || me.set(!0);
|
|
472
472
|
});
|
|
473
473
|
class Z extends J {
|
|
474
474
|
#t = w(!1);
|
|
475
475
|
onConnect(t) {
|
|
476
476
|
l(() => {
|
|
477
477
|
const e = new M(t);
|
|
478
|
-
if (!
|
|
479
|
-
this.#t.set(!1),
|
|
478
|
+
if (!me()) {
|
|
479
|
+
this.#t.set(!1), re(t, !1), e.add("pointerenter", this.#i.bind(this)).add("pointerleave", this.#a.bind(this));
|
|
480
480
|
return;
|
|
481
481
|
}
|
|
482
482
|
const s = document.activeElement === t;
|
|
483
|
-
this.#t.set(s),
|
|
483
|
+
this.#t.set(s), re(t, s), e.add("focus", this.#e.bind(this)).add("blur", this.#s.bind(this));
|
|
484
484
|
});
|
|
485
485
|
}
|
|
486
486
|
focused() {
|
|
487
487
|
return this.#t();
|
|
488
488
|
}
|
|
489
489
|
#e() {
|
|
490
|
-
this.#t.set(!0),
|
|
490
|
+
this.#t.set(!0), re(this.el, !0);
|
|
491
491
|
}
|
|
492
492
|
#s() {
|
|
493
|
-
this.#t.set(!1),
|
|
493
|
+
this.#t.set(!1), re(this.el, !1);
|
|
494
494
|
}
|
|
495
495
|
#i() {
|
|
496
496
|
ys(this.el, !0);
|
|
@@ -499,21 +499,21 @@ class Z extends J {
|
|
|
499
499
|
ys(this.el, !1);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function re(a, t) {
|
|
503
503
|
f(a, "data-focus", t), f(a, "data-hocus", t);
|
|
504
504
|
}
|
|
505
505
|
function ys(a, t) {
|
|
506
506
|
f(a, "data-hocus", t), f(a, "data-hover", t);
|
|
507
507
|
}
|
|
508
|
-
class
|
|
508
|
+
class Xs extends Os {
|
|
509
509
|
items = [];
|
|
510
510
|
/** @internal */
|
|
511
|
-
[
|
|
511
|
+
[x.readonly] = !1;
|
|
512
512
|
get length() {
|
|
513
513
|
return this.items.length;
|
|
514
514
|
}
|
|
515
515
|
get readonly() {
|
|
516
|
-
return this[
|
|
516
|
+
return this[x.readonly];
|
|
517
517
|
}
|
|
518
518
|
/**
|
|
519
519
|
* Returns the index of the first occurrence of the given item, or -1 if it is not present.
|
|
@@ -537,7 +537,7 @@ class Ys extends Rs {
|
|
|
537
537
|
return this.items.values();
|
|
538
538
|
}
|
|
539
539
|
/** @internal */
|
|
540
|
-
[
|
|
540
|
+
[x.add](t, e) {
|
|
541
541
|
const s = this.items.length;
|
|
542
542
|
"" + s in this || Object.defineProperty(this, s, {
|
|
543
543
|
get() {
|
|
@@ -546,22 +546,22 @@ class Ys extends Rs {
|
|
|
546
546
|
}), !this.items.includes(t) && (this.items.push(t), this.dispatchEvent(new L("add", { detail: t, trigger: e })));
|
|
547
547
|
}
|
|
548
548
|
/** @internal */
|
|
549
|
-
[
|
|
549
|
+
[x.remove](t, e) {
|
|
550
550
|
const s = this.items.indexOf(t);
|
|
551
|
-
s >= 0 && (this[
|
|
551
|
+
s >= 0 && (this[x.onRemove]?.(t, e), this.items.splice(s, 1), this.dispatchEvent(new L("remove", { detail: t, trigger: e })));
|
|
552
552
|
}
|
|
553
553
|
/** @internal */
|
|
554
|
-
[
|
|
555
|
-
for (const e of [...this.items]) this[
|
|
556
|
-
this.items = [], this[
|
|
554
|
+
[x.reset](t) {
|
|
555
|
+
for (const e of [...this.items]) this[x.remove](e, t);
|
|
556
|
+
this.items = [], this[x.setReadonly](!1, t), this[x.onReset]?.();
|
|
557
557
|
}
|
|
558
558
|
/** @internal */
|
|
559
|
-
[
|
|
560
|
-
this[
|
|
559
|
+
[x.setReadonly](t, e) {
|
|
560
|
+
this[x.readonly] !== t && (this[x.readonly] = t, this.dispatchEvent(new L("readonly-change", { detail: t, trigger: e })));
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
const Oe =
|
|
564
|
-
class
|
|
563
|
+
const Oe = kt.fullscreenEnabled;
|
|
564
|
+
class Qa extends J {
|
|
565
565
|
/**
|
|
566
566
|
* Tracks whether we're the active fullscreen event listener. Fullscreen events can only be
|
|
567
567
|
* listened to globally on the document so we need to know if they relate to the current host
|
|
@@ -576,13 +576,13 @@ class Ka extends J {
|
|
|
576
576
|
return Oe;
|
|
577
577
|
}
|
|
578
578
|
onConnect() {
|
|
579
|
-
new M(
|
|
579
|
+
new M(kt).add("fullscreenchange", this.#i.bind(this)).add("fullscreenerror", this.#a.bind(this)), P(this.#s.bind(this));
|
|
580
580
|
}
|
|
581
581
|
async #s() {
|
|
582
582
|
Oe && await this.exit();
|
|
583
583
|
}
|
|
584
584
|
#i(t) {
|
|
585
|
-
const e =
|
|
585
|
+
const e = Ce(this.el);
|
|
586
586
|
e !== this.#e && (e || (this.#t = !1), this.#e = e, this.dispatch("fullscreen-change", { detail: e, trigger: t }));
|
|
587
587
|
}
|
|
588
588
|
#a(t) {
|
|
@@ -590,22 +590,22 @@ class Ka extends J {
|
|
|
590
590
|
}
|
|
591
591
|
async enter() {
|
|
592
592
|
try {
|
|
593
|
-
return this.#t = !0, !this.el ||
|
|
593
|
+
return this.#t = !0, !this.el || Ce(this.el) ? void 0 : (bs(), kt.requestFullscreen(this.el));
|
|
594
594
|
} catch (t) {
|
|
595
595
|
throw this.#t = !1, t;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
async exit() {
|
|
599
|
-
if (!(!this.el || !
|
|
600
|
-
return bs(),
|
|
599
|
+
if (!(!this.el || !Ce(this.el)))
|
|
600
|
+
return bs(), kt.exitFullscreen();
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
function
|
|
604
|
-
if (
|
|
603
|
+
function Ce(a) {
|
|
604
|
+
if (kt.fullscreenElement === a) return !0;
|
|
605
605
|
try {
|
|
606
606
|
return a.matches(
|
|
607
607
|
// @ts-expect-error - `fullscreenPseudoClass` is missing from `@types/fscreen`.
|
|
608
|
-
|
|
608
|
+
kt.fullscreenPseudoClass
|
|
609
609
|
);
|
|
610
610
|
} catch {
|
|
611
611
|
return !1;
|
|
@@ -617,7 +617,7 @@ function bs() {
|
|
|
617
617
|
"[vidstack] no fullscreen API"
|
|
618
618
|
);
|
|
619
619
|
}
|
|
620
|
-
class
|
|
620
|
+
class $e extends J {
|
|
621
621
|
#t = w(this.#r());
|
|
622
622
|
#e = w(!1);
|
|
623
623
|
#s;
|
|
@@ -660,21 +660,21 @@ class ve extends J {
|
|
|
660
660
|
/**
|
|
661
661
|
* Whether the native Screen Orientation API is available.
|
|
662
662
|
*/
|
|
663
|
-
static supported =
|
|
663
|
+
static supported = Bs();
|
|
664
664
|
/**
|
|
665
665
|
* Whether the native Screen Orientation API is available.
|
|
666
666
|
*/
|
|
667
667
|
get supported() {
|
|
668
|
-
return
|
|
668
|
+
return $e.supported;
|
|
669
669
|
}
|
|
670
670
|
onConnect() {
|
|
671
671
|
if (this.supported)
|
|
672
672
|
O(screen.orientation, "change", this.#a.bind(this));
|
|
673
673
|
else {
|
|
674
674
|
const t = window.matchMedia("(orientation: landscape)");
|
|
675
|
-
t.onchange = this.#a.bind(this),
|
|
675
|
+
t.onchange = this.#a.bind(this), P(() => t.onchange = null);
|
|
676
676
|
}
|
|
677
|
-
|
|
677
|
+
P(this.#i.bind(this));
|
|
678
678
|
}
|
|
679
679
|
async #i() {
|
|
680
680
|
this.supported && this.#e() && await this.unlock();
|
|
@@ -724,7 +724,7 @@ class ve extends J {
|
|
|
724
724
|
function Ne(a) {
|
|
725
725
|
return !S(a) && "width" in a && "height" in a && Q(a.width) && Q(a.height);
|
|
726
726
|
}
|
|
727
|
-
const
|
|
727
|
+
const Js = new yt({
|
|
728
728
|
artist: "",
|
|
729
729
|
artwork: null,
|
|
730
730
|
audioTrack: null,
|
|
@@ -732,18 +732,18 @@ const Xs = new gt({
|
|
|
732
732
|
autoPlay: !1,
|
|
733
733
|
autoPlayError: null,
|
|
734
734
|
audioGain: null,
|
|
735
|
-
buffered: new
|
|
735
|
+
buffered: new le(),
|
|
736
736
|
canLoad: !1,
|
|
737
737
|
canLoadPoster: !1,
|
|
738
738
|
canFullscreen: !1,
|
|
739
|
-
canOrientScreen:
|
|
739
|
+
canOrientScreen: Bs(),
|
|
740
740
|
canPictureInPicture: !1,
|
|
741
741
|
canPlay: !1,
|
|
742
742
|
clipStartTime: 0,
|
|
743
743
|
clipEndTime: 0,
|
|
744
744
|
controls: !1,
|
|
745
745
|
get iOSControls() {
|
|
746
|
-
return
|
|
746
|
+
return Hs && this.mediaType === "video" && (!this.playsInline || !kt.fullscreenEnabled && this.fullscreen);
|
|
747
747
|
},
|
|
748
748
|
get nativeControls() {
|
|
749
749
|
return this.controls || this.iOSControls;
|
|
@@ -763,7 +763,7 @@ const Xs = new gt({
|
|
|
763
763
|
mediaType: "unknown",
|
|
764
764
|
muted: !1,
|
|
765
765
|
paused: !0,
|
|
766
|
-
played: new
|
|
766
|
+
played: new le(),
|
|
767
767
|
playing: !1,
|
|
768
768
|
playsInline: !1,
|
|
769
769
|
pictureInPicture: !1,
|
|
@@ -776,7 +776,7 @@ const Xs = new gt({
|
|
|
776
776
|
canSetPlaybackRate: !0,
|
|
777
777
|
canSetVolume: !1,
|
|
778
778
|
canSetAudioGain: !1,
|
|
779
|
-
seekable: new
|
|
779
|
+
seekable: new le(),
|
|
780
780
|
seeking: !1,
|
|
781
781
|
source: { src: "", type: "" },
|
|
782
782
|
sources: [],
|
|
@@ -817,7 +817,7 @@ const Xs = new gt({
|
|
|
817
817
|
return Math.max(a, this.clipStartTime);
|
|
818
818
|
},
|
|
819
819
|
get bufferedEnd() {
|
|
820
|
-
const a =
|
|
820
|
+
const a = $t(this.buffered) ?? 0;
|
|
821
821
|
return Math.min(this.seekableEnd, Math.max(0, a - this.clipStartTime));
|
|
822
822
|
},
|
|
823
823
|
get bufferedWindow() {
|
|
@@ -831,7 +831,7 @@ const Xs = new gt({
|
|
|
831
831
|
},
|
|
832
832
|
get seekableEnd() {
|
|
833
833
|
if (this.providedDuration > 0) return this.providedDuration;
|
|
834
|
-
const a = this.liveSyncPosition > 0 ? this.liveSyncPosition : this.canPlay ?
|
|
834
|
+
const a = this.liveSyncPosition > 0 ? this.liveSyncPosition : this.canPlay ? $t(this.seekable) ?? 1 / 0 : 0;
|
|
835
835
|
return this.clipEndTime > 0 ? Math.min(this.clipEndTime, a) : a;
|
|
836
836
|
},
|
|
837
837
|
get seekableWindow() {
|
|
@@ -900,7 +900,7 @@ const Xs = new gt({
|
|
|
900
900
|
liveSyncPosition: null,
|
|
901
901
|
inferredLiveDVRWindow: 0,
|
|
902
902
|
savedState: null
|
|
903
|
-
}),
|
|
903
|
+
}), Zs = /* @__PURE__ */ new Set([
|
|
904
904
|
"autoPlayError",
|
|
905
905
|
"autoPlaying",
|
|
906
906
|
"buffered",
|
|
@@ -912,8 +912,8 @@ const Xs = new gt({
|
|
|
912
912
|
"seekable",
|
|
913
913
|
"seeking",
|
|
914
914
|
"waiting"
|
|
915
|
-
]),
|
|
916
|
-
...
|
|
915
|
+
]), Wa = /* @__PURE__ */ new Set([
|
|
916
|
+
...Zs,
|
|
917
917
|
"ended",
|
|
918
918
|
"inferredPoster",
|
|
919
919
|
"inferredStreamType",
|
|
@@ -927,14 +927,14 @@ const Xs = new gt({
|
|
|
927
927
|
"userBehindLiveEdge"
|
|
928
928
|
]);
|
|
929
929
|
function vs(a, t = !1) {
|
|
930
|
-
const e = t ?
|
|
931
|
-
|
|
930
|
+
const e = t ? Zs : Wa;
|
|
931
|
+
Js.reset(a, (s) => e.has(s)), rt();
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function ti(a, t) {
|
|
934
934
|
const e = a + t.clipStartTime(), s = Math.floor(a) === Math.floor(t.seekableStart()), i = Math.floor(e) === Math.floor(t.seekableEnd());
|
|
935
935
|
return s ? t.seekableStart() : i ? t.seekableEnd() : t.isLiveDVR() && t.liveDVRWindow() > 0 && e < t.seekableEnd() - t.liveDVRWindow() ? t.bufferedStart() : Math.min(Math.max(t.seekableStart() + 0.1, e), t.seekableEnd() - 0.1);
|
|
936
936
|
}
|
|
937
|
-
class
|
|
937
|
+
class za {
|
|
938
938
|
#t = null;
|
|
939
939
|
#e = null;
|
|
940
940
|
#s = -1;
|
|
@@ -1340,7 +1340,7 @@ class Wa {
|
|
|
1340
1340
|
#n(t) {
|
|
1341
1341
|
}
|
|
1342
1342
|
}
|
|
1343
|
-
class
|
|
1343
|
+
class ja {
|
|
1344
1344
|
playerId = "vds-player";
|
|
1345
1345
|
mediaId = null;
|
|
1346
1346
|
#t = {
|
|
@@ -1428,8 +1428,8 @@ class za {
|
|
|
1428
1428
|
localStorage.setItem(this.mediaId, t);
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
|
-
const
|
|
1432
|
-
class
|
|
1431
|
+
const Ft = /* @__PURE__ */ Symbol(0);
|
|
1432
|
+
class ei extends Xs {
|
|
1433
1433
|
get selected() {
|
|
1434
1434
|
return this.items.find((t) => t.selected) ?? null;
|
|
1435
1435
|
}
|
|
@@ -1437,25 +1437,25 @@ class ti extends Ys {
|
|
|
1437
1437
|
return this.items.findIndex((t) => t.selected);
|
|
1438
1438
|
}
|
|
1439
1439
|
/** @internal */
|
|
1440
|
-
[
|
|
1441
|
-
this[
|
|
1440
|
+
[x.onRemove](t, e) {
|
|
1441
|
+
this[x.select](t, !1, e);
|
|
1442
1442
|
}
|
|
1443
1443
|
/** @internal */
|
|
1444
|
-
[
|
|
1445
|
-
t[
|
|
1444
|
+
[x.add](t, e) {
|
|
1445
|
+
t[Ft] = !1, Object.defineProperty(t, "selected", {
|
|
1446
1446
|
get() {
|
|
1447
|
-
return this[
|
|
1447
|
+
return this[Ft];
|
|
1448
1448
|
},
|
|
1449
1449
|
set: (s) => {
|
|
1450
|
-
this.readonly || (this[
|
|
1450
|
+
this.readonly || (this[x.onUserSelect]?.(), this[x.select](t, s));
|
|
1451
1451
|
}
|
|
1452
|
-
}), super[
|
|
1452
|
+
}), super[x.add](t, e);
|
|
1453
1453
|
}
|
|
1454
1454
|
/** @internal */
|
|
1455
|
-
[
|
|
1456
|
-
if (e === t?.[
|
|
1455
|
+
[x.select](t, e, s) {
|
|
1456
|
+
if (e === t?.[Ft]) return;
|
|
1457
1457
|
const i = this.selected;
|
|
1458
|
-
t && (t[
|
|
1458
|
+
t && (t[Ft] = e), (e ? i !== t : i === t) && (i && (i[Ft] = !1), this.dispatchEvent(
|
|
1459
1459
|
new L("change", {
|
|
1460
1460
|
detail: {
|
|
1461
1461
|
prev: i,
|
|
@@ -1466,9 +1466,9 @@ class ti extends Ys {
|
|
|
1466
1466
|
));
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
|
-
class
|
|
1469
|
+
class Ya extends ei {
|
|
1470
1470
|
}
|
|
1471
|
-
class
|
|
1471
|
+
class Xa {
|
|
1472
1472
|
priority = 0;
|
|
1473
1473
|
#t = !0;
|
|
1474
1474
|
#e = null;
|
|
@@ -1501,7 +1501,7 @@ class Ya {
|
|
|
1501
1501
|
#a(t) {
|
|
1502
1502
|
if (!this.#e) return;
|
|
1503
1503
|
const e = t[k.native] ??= this.#n(t);
|
|
1504
|
-
|
|
1504
|
+
St(e) && (this.#e.append(e), e.track.mode = e.default ? "showing" : "disabled");
|
|
1505
1505
|
}
|
|
1506
1506
|
#n(t) {
|
|
1507
1507
|
const e = document.createElement("track"), s = t.default || t.mode === "showing", i = t.src && t.type === "vtt";
|
|
@@ -1524,7 +1524,7 @@ class Ya {
|
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
|
-
class
|
|
1527
|
+
class Ja {
|
|
1528
1528
|
#t = null;
|
|
1529
1529
|
#e;
|
|
1530
1530
|
#s = [];
|
|
@@ -1535,23 +1535,23 @@ class Xa {
|
|
|
1535
1535
|
constructor(t) {
|
|
1536
1536
|
this.#i = t;
|
|
1537
1537
|
const e = t.textTracks;
|
|
1538
|
-
this.#e = e, l(this.#o.bind(this)),
|
|
1538
|
+
this.#e = e, l(this.#o.bind(this)), P(this.#p.bind(this)), new M(e).add("add", this.#c.bind(this)).add("remove", this.#u.bind(this)).add("mode-change", this.#d.bind(this));
|
|
1539
1539
|
}
|
|
1540
1540
|
#o() {
|
|
1541
1541
|
const { nativeControls: t } = this.#i.$state;
|
|
1542
1542
|
this.#a = t(), this.#d();
|
|
1543
1543
|
}
|
|
1544
1544
|
add(t) {
|
|
1545
|
-
this.#s.push(t),
|
|
1545
|
+
this.#s.push(t), ce(this.#d.bind(this));
|
|
1546
1546
|
}
|
|
1547
1547
|
remove(t) {
|
|
1548
|
-
t.detach(), this.#s.splice(this.#s.indexOf(t), 1),
|
|
1548
|
+
t.detach(), this.#s.splice(this.#s.indexOf(t), 1), ce(this.#d.bind(this));
|
|
1549
1549
|
}
|
|
1550
1550
|
/** @internal */
|
|
1551
1551
|
attachVideo(t) {
|
|
1552
1552
|
requestAnimationFrame(() => {
|
|
1553
1553
|
if (this.#t = t, t) {
|
|
1554
|
-
this.#n = new
|
|
1554
|
+
this.#n = new Xa(), this.#n.attach(t);
|
|
1555
1555
|
for (const e of this.#e) this.#h(e);
|
|
1556
1556
|
}
|
|
1557
1557
|
this.#d();
|
|
@@ -1586,7 +1586,7 @@ class Xa {
|
|
|
1586
1586
|
this.#n?.detach(), this.#n = null, this.#r?.detach(), this.#r = null;
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
|
-
class
|
|
1589
|
+
class Za extends Xs {
|
|
1590
1590
|
#t = !1;
|
|
1591
1591
|
#e = {};
|
|
1592
1592
|
#s = null;
|
|
@@ -1610,12 +1610,12 @@ class Ja extends Ys {
|
|
|
1610
1610
|
this.#i = t, this.#l(t);
|
|
1611
1611
|
}
|
|
1612
1612
|
add(t, e) {
|
|
1613
|
-
const s = t instanceof
|
|
1614
|
-
return this.#e[n] && t.default && delete t.default, i.addEventListener("mode-change", this.#r), this[
|
|
1613
|
+
const s = t instanceof pe, i = s ? t : new pe(t), n = t.kind === "captions" || t.kind === "subtitles" ? "captions" : t.kind;
|
|
1614
|
+
return this.#e[n] && t.default && delete t.default, i.addEventListener("mode-change", this.#r), this[x.add](i, e), i[k.crossOrigin] = this[k.crossOrigin], this.#t && i[k.canLoad](), t.default && (this.#e[n] = i), this.#a(), this;
|
|
1615
1615
|
}
|
|
1616
1616
|
remove(t, e) {
|
|
1617
1617
|
if (this.#n = t, !!this.items.includes(t))
|
|
1618
|
-
return t === this.#e[t.kind] && delete this.#e[t.kind], t.mode = "disabled", t[k.onModeChange] = null, t.removeEventListener("mode-change", this.#r), this[
|
|
1618
|
+
return t === this.#e[t.kind] && delete this.#e[t.kind], t.mode = "disabled", t[k.onModeChange] = null, t.removeEventListener("mode-change", this.#r), this[x.remove](t, e), this.#n = null, this;
|
|
1619
1619
|
}
|
|
1620
1620
|
clear(t) {
|
|
1621
1621
|
for (const e of [...this.items])
|
|
@@ -1675,7 +1675,7 @@ class Ja extends Ys {
|
|
|
1675
1675
|
this.#s = t;
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
class
|
|
1678
|
+
class tn extends ei {
|
|
1679
1679
|
#t = !1;
|
|
1680
1680
|
/**
|
|
1681
1681
|
* Configures quality switching:
|
|
@@ -1702,11 +1702,11 @@ class Za extends ti {
|
|
|
1702
1702
|
/** @internal */
|
|
1703
1703
|
[X.enableAuto];
|
|
1704
1704
|
/** @internal */
|
|
1705
|
-
[
|
|
1705
|
+
[x.onUserSelect]() {
|
|
1706
1706
|
this[X.setAuto](!1);
|
|
1707
1707
|
}
|
|
1708
1708
|
/** @internal */
|
|
1709
|
-
[
|
|
1709
|
+
[x.onReset](t) {
|
|
1710
1710
|
this[X.enableAuto] = void 0, this[X.setAuto](!1, t);
|
|
1711
1711
|
}
|
|
1712
1712
|
/**
|
|
@@ -1729,18 +1729,18 @@ class Za extends ti {
|
|
|
1729
1729
|
));
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
|
-
function
|
|
1732
|
+
function en(a) {
|
|
1733
1733
|
return a instanceof HTMLAudioElement;
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function sn(a) {
|
|
1736
1736
|
return a instanceof HTMLVideoElement;
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1739
|
-
return
|
|
1738
|
+
function an(a) {
|
|
1739
|
+
return en(a) || sn(a);
|
|
1740
1740
|
}
|
|
1741
|
-
class
|
|
1741
|
+
class Ct extends J {
|
|
1742
1742
|
}
|
|
1743
|
-
const
|
|
1743
|
+
const nn = {
|
|
1744
1744
|
togglePaused: "k Space",
|
|
1745
1745
|
toggleMuted: "m",
|
|
1746
1746
|
toggleFullscreen: "f",
|
|
@@ -1752,8 +1752,8 @@ const an = {
|
|
|
1752
1752
|
volumeDown: "ArrowDown",
|
|
1753
1753
|
speedUp: ">",
|
|
1754
1754
|
slowDown: "<"
|
|
1755
|
-
},
|
|
1756
|
-
class
|
|
1755
|
+
}, Gt = /* @__PURE__ */ new Set(["Shift", "Alt", "Meta", "Ctrl"]), rn = 'button, [role="button"]', $s = 'input, textarea, select, [contenteditable], [role^="menuitem"], [role="timer"]';
|
|
1756
|
+
class on extends Ct {
|
|
1757
1757
|
#t;
|
|
1758
1758
|
constructor(t) {
|
|
1759
1759
|
super(), this.#t = t;
|
|
@@ -1796,9 +1796,9 @@ class rn extends Pt {
|
|
|
1796
1796
|
);
|
|
1797
1797
|
}
|
|
1798
1798
|
#i(t) {
|
|
1799
|
-
if (!t.key ||
|
|
1799
|
+
if (!t.key || Gt.has(t.key)) return;
|
|
1800
1800
|
const e = document.activeElement;
|
|
1801
|
-
if (e?.matches($s) ||
|
|
1801
|
+
if (e?.matches($s) || Ns(t) && e?.matches(rn))
|
|
1802
1802
|
return;
|
|
1803
1803
|
let { method: s, value: i } = this.#n(t), n = !t.metaKey && /^[0-9]$/.test(t.key);
|
|
1804
1804
|
if (!S(i) && !B(i) && !n) {
|
|
@@ -1809,7 +1809,7 @@ class rn extends Pt {
|
|
|
1809
1809
|
}), i?.callback?.(t, this.#t.remote);
|
|
1810
1810
|
return;
|
|
1811
1811
|
}
|
|
1812
|
-
if (!s && n && !
|
|
1812
|
+
if (!s && n && !dn(t)) {
|
|
1813
1813
|
t.preventDefault(), t.stopPropagation(), this.#t.remote.seek(this.$state.duration() / 10 * Number(t.key), t);
|
|
1814
1814
|
return;
|
|
1815
1815
|
}
|
|
@@ -1859,7 +1859,7 @@ class rn extends Pt {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
}
|
|
1861
1861
|
#a(t) {
|
|
1862
|
-
|
|
1862
|
+
an(t.target) && this.#n(t).method && t.preventDefault();
|
|
1863
1863
|
}
|
|
1864
1864
|
#n(t) {
|
|
1865
1865
|
const e = {
|
|
@@ -1868,15 +1868,15 @@ class rn extends Pt {
|
|
|
1868
1868
|
}, s = Object.keys(e).find((i) => {
|
|
1869
1869
|
const n = e[i], r = B(n) ? n.join(" ") : S(n) ? n : n?.keys;
|
|
1870
1870
|
return (B(r) ? r : r?.split(" "))?.map(
|
|
1871
|
-
(h) =>
|
|
1871
|
+
(h) => ln(h).replace(/Control/g, "Ctrl").split("+")
|
|
1872
1872
|
)?.some((h) => {
|
|
1873
|
-
const d = new Set(h.filter((c) =>
|
|
1874
|
-
for (const c of
|
|
1873
|
+
const d = new Set(h.filter((c) => Gt.has(c)));
|
|
1874
|
+
for (const c of Gt) {
|
|
1875
1875
|
const u = c.toLowerCase() + "Key";
|
|
1876
1876
|
if (!d.has(c) && t[u])
|
|
1877
1877
|
return !1;
|
|
1878
1878
|
}
|
|
1879
|
-
return h.every((c) =>
|
|
1879
|
+
return h.every((c) => Gt.has(c) ? t[c.toLowerCase() + "Key"] : t.key === c.replace("Space", " "));
|
|
1880
1880
|
});
|
|
1881
1881
|
});
|
|
1882
1882
|
return {
|
|
@@ -1909,17 +1909,17 @@ class rn extends Pt {
|
|
|
1909
1909
|
this.$state.canSeek() && (this.#h || (this.#h = this.el.querySelector("[data-media-time-slider]")), this.#h ? this.#l(t, s) : this.#t.remote.seeking(this.#o(t, e), t));
|
|
1910
1910
|
}
|
|
1911
1911
|
}
|
|
1912
|
-
const
|
|
1913
|
-
function hn(a) {
|
|
1914
|
-
return a.replace(/Shift\+(\d)/g, (t, e) => on[e - 1]);
|
|
1915
|
-
}
|
|
1912
|
+
const hn = ["!", "@", "#", "$", "%", "^", "&", "*", "(", ")"];
|
|
1916
1913
|
function ln(a) {
|
|
1917
|
-
|
|
1914
|
+
return a.replace(/Shift\+(\d)/g, (t, e) => hn[e - 1]);
|
|
1915
|
+
}
|
|
1916
|
+
function dn(a) {
|
|
1917
|
+
for (const t of Gt)
|
|
1918
1918
|
if (a[t.toLowerCase() + "Key"])
|
|
1919
1919
|
return !0;
|
|
1920
1920
|
return !1;
|
|
1921
1921
|
}
|
|
1922
|
-
class
|
|
1922
|
+
class cn extends Ct {
|
|
1923
1923
|
#t = -2;
|
|
1924
1924
|
#e = !1;
|
|
1925
1925
|
#s = w(!1);
|
|
@@ -2038,7 +2038,7 @@ class dn extends Pt {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
#y(t) {
|
|
2040
2040
|
// @ts-expect-error
|
|
2041
|
-
t.MEDIA_GESTURE || this.#e || Qe(t) || (
|
|
2041
|
+
t.MEDIA_GESTURE || this.#e || Qe(t) || (Gs(t) && (t.key === "Escape" ? (this.el?.focus(), this.#a = null) : this.#a && (t.preventDefault(), requestAnimationFrame(() => {
|
|
2042
2042
|
this.#a?.focus(), this.#a = null;
|
|
2043
2043
|
}))), this.show(0, t), this.hide(this.defaultDelay, t));
|
|
2044
2044
|
}
|
|
@@ -2060,53 +2060,53 @@ class dn extends Pt {
|
|
|
2060
2060
|
}));
|
|
2061
2061
|
}
|
|
2062
2062
|
}
|
|
2063
|
-
class
|
|
2063
|
+
class un {
|
|
2064
2064
|
name = "audio";
|
|
2065
2065
|
target;
|
|
2066
2066
|
canPlay(t) {
|
|
2067
|
-
return
|
|
2067
|
+
return Xi(t) ? !S(t.src) || t.type === "?" || Ji(this.target, t.type) : !1;
|
|
2068
2068
|
}
|
|
2069
2069
|
mediaType() {
|
|
2070
2070
|
return "audio";
|
|
2071
2071
|
}
|
|
2072
2072
|
async load(t) {
|
|
2073
|
-
return new (await import("./vidstack-audio-
|
|
2073
|
+
return new (await import("./vidstack-audio-DfV6NzrV.js")).AudioProvider(this.target, t);
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
2076
2076
|
class je {
|
|
2077
2077
|
name = "video";
|
|
2078
2078
|
target;
|
|
2079
2079
|
canPlay(t) {
|
|
2080
|
-
return
|
|
2080
|
+
return ji(t) ? !S(t.src) || t.type === "?" || Yi(this.target, t.type) : !1;
|
|
2081
2081
|
}
|
|
2082
2082
|
mediaType() {
|
|
2083
2083
|
return "video";
|
|
2084
2084
|
}
|
|
2085
2085
|
async load(t) {
|
|
2086
|
-
return new (await import("./vidstack-video-
|
|
2086
|
+
return new (await import("./vidstack-video-CF8ySFTF.js")).VideoProvider(this.target, t);
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
2089
|
class Ye extends je {
|
|
2090
|
-
static supported =
|
|
2090
|
+
static supported = Fs();
|
|
2091
2091
|
name = "hls";
|
|
2092
2092
|
canPlay(t) {
|
|
2093
2093
|
return Ye.supported && Ge(t);
|
|
2094
2094
|
}
|
|
2095
2095
|
async load(t) {
|
|
2096
|
-
return new (await import("./vidstack-hls-
|
|
2096
|
+
return new (await import("./vidstack-hls-DwdoDEgJ.js")).HLSProvider(this.target, t);
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
2099
|
class Xe extends je {
|
|
2100
|
-
static supported =
|
|
2100
|
+
static supported = Zi();
|
|
2101
2101
|
name = "dash";
|
|
2102
2102
|
canPlay(t) {
|
|
2103
2103
|
return Xe.supported && Ue(t);
|
|
2104
2104
|
}
|
|
2105
2105
|
async load(t) {
|
|
2106
|
-
return new (await import("./vidstack-dash-
|
|
2106
|
+
return new (await import("./vidstack-dash-28gycFPs.js")).DASHProvider(this.target, t);
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
|
-
class
|
|
2109
|
+
class pn {
|
|
2110
2110
|
name = "vimeo";
|
|
2111
2111
|
target;
|
|
2112
2112
|
preconnect() {
|
|
@@ -2116,7 +2116,7 @@ class un {
|
|
|
2116
2116
|
"https://fresnel.vimeocdn.com"
|
|
2117
2117
|
];
|
|
2118
2118
|
for (const e of t)
|
|
2119
|
-
|
|
2119
|
+
ee(e);
|
|
2120
2120
|
}
|
|
2121
2121
|
canPlay(t) {
|
|
2122
2122
|
return S(t.src) && t.type === "video/vimeo";
|
|
@@ -2125,7 +2125,7 @@ class un {
|
|
|
2125
2125
|
return "video";
|
|
2126
2126
|
}
|
|
2127
2127
|
async load(t) {
|
|
2128
|
-
return new (await import("./vidstack-vimeo-
|
|
2128
|
+
return new (await import("./vidstack-vimeo-DZoGSBhY.js")).VimeoProvider(this.target, t);
|
|
2129
2129
|
}
|
|
2130
2130
|
async loadPoster(t, e, s) {
|
|
2131
2131
|
const { resolveVimeoVideoId: i, getVimeoVideoInfo: n } = await import("./vidstack-krOAtKMi-C50BTxmn.js");
|
|
@@ -2134,7 +2134,7 @@ class un {
|
|
|
2134
2134
|
return r ? n(r, s, o).then((h) => h ? h.poster : null) : null;
|
|
2135
2135
|
}
|
|
2136
2136
|
}
|
|
2137
|
-
class
|
|
2137
|
+
class mn {
|
|
2138
2138
|
name = "youtube";
|
|
2139
2139
|
target;
|
|
2140
2140
|
preconnect() {
|
|
@@ -2148,7 +2148,7 @@ class pn {
|
|
|
2148
2148
|
"https://static.doubleclick.net"
|
|
2149
2149
|
];
|
|
2150
2150
|
for (const e of t)
|
|
2151
|
-
|
|
2151
|
+
ee(e);
|
|
2152
2152
|
}
|
|
2153
2153
|
canPlay(t) {
|
|
2154
2154
|
return S(t.src) && t.type === "video/youtube";
|
|
@@ -2157,14 +2157,14 @@ class pn {
|
|
|
2157
2157
|
return "video";
|
|
2158
2158
|
}
|
|
2159
2159
|
async load(t) {
|
|
2160
|
-
return new (await import("./vidstack-youtube-
|
|
2160
|
+
return new (await import("./vidstack-youtube-Lgxw1He5.js")).YouTubeProvider(this.target, t);
|
|
2161
2161
|
}
|
|
2162
2162
|
async loadPoster(t, e, s) {
|
|
2163
2163
|
const { findYouTubePoster: i, resolveYouTubeVideoId: n } = await import("./vidstack-Dm1xEU9Q-CXHNvShT.js"), r = S(t.src) && n(t.src);
|
|
2164
2164
|
return r ? i(r, s) : null;
|
|
2165
2165
|
}
|
|
2166
2166
|
}
|
|
2167
|
-
const
|
|
2167
|
+
const Ee = /* @__PURE__ */ Symbol(0), fn = [
|
|
2168
2168
|
"autoPlay",
|
|
2169
2169
|
"canAirPlay",
|
|
2170
2170
|
"canFullscreen",
|
|
@@ -2194,7 +2194,7 @@ const Ce = /* @__PURE__ */ Symbol(0), mn = [
|
|
|
2194
2194
|
"streamType",
|
|
2195
2195
|
"viewType",
|
|
2196
2196
|
"waiting"
|
|
2197
|
-
],
|
|
2197
|
+
], gn = {
|
|
2198
2198
|
artist: "",
|
|
2199
2199
|
artwork: null,
|
|
2200
2200
|
autoplay: !1,
|
|
@@ -2231,10 +2231,10 @@ const Ce = /* @__PURE__ */ Symbol(0), mn = [
|
|
|
2231
2231
|
minLiveDVRWindow: 60,
|
|
2232
2232
|
keyDisabled: !1,
|
|
2233
2233
|
keyTarget: "player",
|
|
2234
|
-
keyShortcuts:
|
|
2234
|
+
keyShortcuts: nn,
|
|
2235
2235
|
storage: null
|
|
2236
2236
|
};
|
|
2237
|
-
class ws extends
|
|
2237
|
+
class ws extends Ct {
|
|
2238
2238
|
#t;
|
|
2239
2239
|
#e;
|
|
2240
2240
|
constructor(t, e) {
|
|
@@ -2245,16 +2245,16 @@ class ws extends Pt {
|
|
|
2245
2245
|
if (e === "eager")
|
|
2246
2246
|
requestAnimationFrame(this.#e);
|
|
2247
2247
|
else if (e === "idle")
|
|
2248
|
-
|
|
2248
|
+
zi(this.#e);
|
|
2249
2249
|
else if (e === "visible") {
|
|
2250
2250
|
let s, i = new IntersectionObserver((n) => {
|
|
2251
2251
|
this.scope && n[0].isIntersecting && (s?.(), s = void 0, this.#e());
|
|
2252
2252
|
});
|
|
2253
|
-
i.observe(t), s =
|
|
2253
|
+
i.observe(t), s = P(() => i.disconnect());
|
|
2254
2254
|
}
|
|
2255
2255
|
}
|
|
2256
2256
|
}
|
|
2257
|
-
class
|
|
2257
|
+
class yn {
|
|
2258
2258
|
#t;
|
|
2259
2259
|
#e;
|
|
2260
2260
|
constructor(t, e) {
|
|
@@ -2269,7 +2269,7 @@ class gn {
|
|
|
2269
2269
|
);
|
|
2270
2270
|
}
|
|
2271
2271
|
async ready(t, e) {
|
|
2272
|
-
return
|
|
2272
|
+
return ce(async () => {
|
|
2273
2273
|
const { logger: s } = this.#e, {
|
|
2274
2274
|
autoPlay: i,
|
|
2275
2275
|
canPlay: n,
|
|
@@ -2290,24 +2290,24 @@ class gn {
|
|
|
2290
2290
|
provider: this.#e.$provider()
|
|
2291
2291
|
};
|
|
2292
2292
|
this.notify("can-play", E, e), rt();
|
|
2293
|
-
let I = this.#e.$provider(), { storage: et, qualities: os } = this.#e, { muted:
|
|
2293
|
+
let I = this.#e.$provider(), { storage: et, qualities: os } = this.#e, { muted: Ci, volume: Ei, clipStartTime: Ai, playbackRate: Mi } = this.#e.$props;
|
|
2294
2294
|
await et?.onLoad?.(g());
|
|
2295
|
-
const
|
|
2295
|
+
const Li = m()?.currentTime, hs = m()?.paused, Pe = await et?.getTime(), ls = Li ?? Pe ?? Ai(), qi = hs === !1 || hs !== !0 && !r() && i();
|
|
2296
2296
|
if (I) {
|
|
2297
|
-
I.setVolume(await et?.getVolume() ??
|
|
2298
|
-
const
|
|
2299
|
-
|
|
2297
|
+
I.setVolume(await et?.getVolume() ?? Ei()), I.setMuted(Ci() || !!await et?.getMuted());
|
|
2298
|
+
const Mt = await et?.getAudioGain() ?? 1;
|
|
2299
|
+
Mt > 1 && I.audioGain?.setGain?.(Mt), I.setPlaybackRate?.(await et?.getPlaybackRate() ?? Mi()), I.setPlaysInline?.(u()), ls > 0 && I.setCurrentTime(ls);
|
|
2300
2300
|
}
|
|
2301
|
-
const
|
|
2302
|
-
if (
|
|
2303
|
-
let
|
|
2304
|
-
for (const
|
|
2305
|
-
const cs = Math.abs(
|
|
2306
|
-
cs < ds && (
|
|
2301
|
+
const Nt = await et?.getVideoQuality();
|
|
2302
|
+
if (Nt && os.length) {
|
|
2303
|
+
let Mt = null, ds = 1 / 0;
|
|
2304
|
+
for (const ne of os) {
|
|
2305
|
+
const cs = Math.abs(Nt.width - ne.width) + Math.abs(Nt.height - ne.height) + (Nt.bitrate ? Math.abs(Nt.bitrate - (ne.bitrate ?? 0)) : 0);
|
|
2306
|
+
cs < ds && (Mt = ne, ds = cs);
|
|
2307
2307
|
}
|
|
2308
|
-
|
|
2308
|
+
Mt && (Mt.selected = !0);
|
|
2309
2309
|
}
|
|
2310
|
-
n() &&
|
|
2310
|
+
n() && qi ? await this.#s(e) : Pe && Pe > 0 && this.notify("started", void 0, e), c.set(null);
|
|
2311
2311
|
});
|
|
2312
2312
|
}
|
|
2313
2313
|
async #s(t) {
|
|
@@ -2323,7 +2323,7 @@ class gn {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
|
-
class
|
|
2326
|
+
class bn {
|
|
2327
2327
|
#t = /* @__PURE__ */ new Map();
|
|
2328
2328
|
/**
|
|
2329
2329
|
* Queue the given `item` under the given `key` to be processed at a later time by calling
|
|
@@ -2358,7 +2358,7 @@ class yn {
|
|
|
2358
2358
|
this.#t.clear();
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
|
-
class
|
|
2361
|
+
class si {
|
|
2362
2362
|
#t = !1;
|
|
2363
2363
|
#e = Ve();
|
|
2364
2364
|
#s = /* @__PURE__ */ new Map();
|
|
@@ -2429,7 +2429,7 @@ class ei {
|
|
|
2429
2429
|
this.#e.resolve(), this.#e = Ve();
|
|
2430
2430
|
}
|
|
2431
2431
|
}
|
|
2432
|
-
class
|
|
2432
|
+
class vn extends Ct {
|
|
2433
2433
|
#t;
|
|
2434
2434
|
#e;
|
|
2435
2435
|
#s;
|
|
@@ -2437,12 +2437,12 @@ class bn extends Pt {
|
|
|
2437
2437
|
#i;
|
|
2438
2438
|
#a;
|
|
2439
2439
|
#n;
|
|
2440
|
-
#r = new
|
|
2440
|
+
#r = new si();
|
|
2441
2441
|
constructor(t, e, s) {
|
|
2442
|
-
super(), this.#t = t, this.#e = e, this.#s = s, this.#n = s.$provider, this.controls = new
|
|
2442
|
+
super(), this.#t = t, this.#e = e, this.#s = s, this.#n = s.$provider, this.controls = new cn(), this.#i = new Qa(), this.#a = new $e();
|
|
2443
2443
|
}
|
|
2444
2444
|
onAttach() {
|
|
2445
|
-
this.listen("fullscreen-change", this.#
|
|
2445
|
+
this.listen("fullscreen-change", this.#P.bind(this));
|
|
2446
2446
|
}
|
|
2447
2447
|
onConnect(t) {
|
|
2448
2448
|
const e = Object.getOwnPropertyNames(Object.getPrototypeOf(this)), s = new M(t), i = this.#l.bind(this);
|
|
@@ -2483,7 +2483,7 @@ class bn extends Pt {
|
|
|
2483
2483
|
const n = p(i);
|
|
2484
2484
|
try {
|
|
2485
2485
|
const r = p(this.#n);
|
|
2486
|
-
return
|
|
2486
|
+
return Ae(r, p(e)), $n(n), await r.play();
|
|
2487
2487
|
} catch (r) {
|
|
2488
2488
|
const o = this.createEvent("play-fail", {
|
|
2489
2489
|
detail: xe(r),
|
|
@@ -2511,7 +2511,7 @@ class bn extends Pt {
|
|
|
2511
2511
|
t && this.#e.queue.enqueue("media-pause-request", t);
|
|
2512
2512
|
try {
|
|
2513
2513
|
const i = p(this.#n);
|
|
2514
|
-
return
|
|
2514
|
+
return Ae(i, p(e)), await i.pause();
|
|
2515
2515
|
} catch (i) {
|
|
2516
2516
|
throw this.#e.queue.delete("media-pause-request"), i;
|
|
2517
2517
|
}
|
|
@@ -2529,7 +2529,7 @@ class bn extends Pt {
|
|
|
2529
2529
|
const { canPlay: e, live: s, liveEdge: i, canSeek: n, liveSyncPosition: r, seekableEnd: o, userBehindLiveEdge: h } = this.$state;
|
|
2530
2530
|
if (h.set(!1), p(() => !s() || i() || !n())) return;
|
|
2531
2531
|
const d = p(this.#n);
|
|
2532
|
-
|
|
2532
|
+
Ae(d, p(e)), t && this.#e.queue.enqueue("media-seek-request", t);
|
|
2533
2533
|
const c = o() - 2;
|
|
2534
2534
|
d.setCurrentTime(Math.min(c, r() ?? c));
|
|
2535
2535
|
}
|
|
@@ -2581,7 +2581,7 @@ class bn extends Pt {
|
|
|
2581
2581
|
t.set(e);
|
|
2582
2582
|
}
|
|
2583
2583
|
#b() {
|
|
2584
|
-
const { canGoogleCast: t, source: e } = this.$state, s =
|
|
2584
|
+
const { canGoogleCast: t, source: e } = this.$state, s = Ki && !Qi && Wi(e());
|
|
2585
2585
|
t.set(s);
|
|
2586
2586
|
}
|
|
2587
2587
|
#$() {
|
|
@@ -2624,8 +2624,8 @@ class bn extends Pt {
|
|
|
2624
2624
|
);
|
|
2625
2625
|
throw i.code = "CAST_NOT_AVAILABLE", i;
|
|
2626
2626
|
}
|
|
2627
|
-
if (
|
|
2628
|
-
const i = await import("./vidstack-D2pY00kU-
|
|
2627
|
+
if (ee("https://www.gstatic.com"), !this.#v) {
|
|
2628
|
+
const i = await import("./vidstack-D2pY00kU-DU8R3ze4.js").then((n) => n.v);
|
|
2629
2629
|
this.#v = new i.GoogleCastLoader();
|
|
2630
2630
|
}
|
|
2631
2631
|
await this.#v.prompt(this.#s), t && this.#e.queue.enqueue("media-google-cast-request", t);
|
|
@@ -2680,7 +2680,7 @@ class bn extends Pt {
|
|
|
2680
2680
|
this.#f(e, t);
|
|
2681
2681
|
}
|
|
2682
2682
|
}
|
|
2683
|
-
async #
|
|
2683
|
+
async #P(t) {
|
|
2684
2684
|
const e = p(this.$props.fullscreenOrientation), s = t.detail;
|
|
2685
2685
|
if (!(Ie(e) || e === "none" || !this.#a.supported))
|
|
2686
2686
|
if (s) {
|
|
@@ -2815,7 +2815,7 @@ class bn extends Pt {
|
|
|
2815
2815
|
s() && (this.#e.replaying = !0);
|
|
2816
2816
|
const h = t.type;
|
|
2817
2817
|
this.#e.seeking = !1, this.#e.queue.delete(h);
|
|
2818
|
-
const d =
|
|
2818
|
+
const d = ti(o, this.$state);
|
|
2819
2819
|
!Number.isFinite(d) || !e() || (this.#e.queue.enqueue(h, t), this.#n().setCurrentTime(d), i() && t.isOriginTrusted && Math.abs(n() - d) >= 2 && r.set(!0));
|
|
2820
2820
|
}
|
|
2821
2821
|
"media-seeking-request"(t) {
|
|
@@ -2859,7 +2859,7 @@ class bn extends Pt {
|
|
|
2859
2859
|
#k(t, e, s) {
|
|
2860
2860
|
}
|
|
2861
2861
|
}
|
|
2862
|
-
function
|
|
2862
|
+
function Ae(a, t) {
|
|
2863
2863
|
if (!(a && t))
|
|
2864
2864
|
throw Error(
|
|
2865
2865
|
"[vidstack] media not ready"
|
|
@@ -2871,19 +2871,19 @@ function Ts(a, t) {
|
|
|
2871
2871
|
"[vidstack] no fullscreen support"
|
|
2872
2872
|
);
|
|
2873
2873
|
}
|
|
2874
|
-
function
|
|
2875
|
-
if (!(!
|
|
2874
|
+
function $n(a) {
|
|
2875
|
+
if (!(!Ua() || !a))
|
|
2876
2876
|
throw Error(
|
|
2877
2877
|
"[vidstack] autoplay blocked"
|
|
2878
2878
|
);
|
|
2879
2879
|
}
|
|
2880
|
-
class
|
|
2880
|
+
class wn {
|
|
2881
2881
|
seeking = !1;
|
|
2882
2882
|
looping = !1;
|
|
2883
2883
|
replaying = !1;
|
|
2884
|
-
queue = new
|
|
2884
|
+
queue = new bn();
|
|
2885
2885
|
}
|
|
2886
|
-
const
|
|
2886
|
+
const Tn = /* @__PURE__ */ new Set([
|
|
2887
2887
|
"auto-play",
|
|
2888
2888
|
"auto-play-fail",
|
|
2889
2889
|
"can-load",
|
|
@@ -2903,7 +2903,7 @@ const wn = /* @__PURE__ */ new Set([
|
|
|
2903
2903
|
"seeked",
|
|
2904
2904
|
"waiting"
|
|
2905
2905
|
]);
|
|
2906
|
-
class
|
|
2906
|
+
class kn extends Ct {
|
|
2907
2907
|
#t;
|
|
2908
2908
|
#e;
|
|
2909
2909
|
#s = /* @__PURE__ */ new Map();
|
|
@@ -2919,16 +2919,16 @@ class Tn extends Pt {
|
|
|
2919
2919
|
t.setAttribute("aria-busy", "true"), new M(this).add("fullscreen-change", this["fullscreen-change"].bind(this)).add("fullscreen-error", this["fullscreen-error"].bind(this)).add("orientation-change", this["orientation-change"].bind(this));
|
|
2920
2920
|
}
|
|
2921
2921
|
onConnect(t) {
|
|
2922
|
-
l(this.#E.bind(this)), this.#p(), this.#m(), this.#y(), this.#l(),
|
|
2922
|
+
l(this.#E.bind(this)), this.#p(), this.#m(), this.#y(), this.#l(), P(this.#c.bind(this));
|
|
2923
2923
|
}
|
|
2924
2924
|
onDestroy() {
|
|
2925
2925
|
const { audioTracks: t, qualities: e, textTracks: s } = this.#e;
|
|
2926
|
-
t[
|
|
2926
|
+
t[x.reset](), e[x.reset](), s[x.reset](), this.#S();
|
|
2927
2927
|
}
|
|
2928
2928
|
handle(t) {
|
|
2929
2929
|
if (!this.scope) return;
|
|
2930
2930
|
const e = t.type;
|
|
2931
|
-
|
|
2931
|
+
ce(() => this[t.type]?.(t)), Tn.has(e) && this.#s.set(e, t), this.dispatch(t);
|
|
2932
2932
|
}
|
|
2933
2933
|
#h = !1;
|
|
2934
2934
|
#l() {
|
|
@@ -2953,7 +2953,7 @@ class Tn extends Pt {
|
|
|
2953
2953
|
}
|
|
2954
2954
|
#m() {
|
|
2955
2955
|
const t = this.#e.qualities;
|
|
2956
|
-
new M(t).add("add", this.#v.bind(this)).add("remove", this.#v.bind(this)).add("change", this.#
|
|
2956
|
+
new M(t).add("add", this.#v.bind(this)).add("remove", this.#v.bind(this)).add("change", this.#P.bind(this)).add("auto-change", this.#f.bind(this)).add("readonly-change", this.#x.bind(this));
|
|
2957
2957
|
}
|
|
2958
2958
|
#y() {
|
|
2959
2959
|
const t = this.#e.audioTracks;
|
|
@@ -2995,7 +2995,7 @@ class Tn extends Pt {
|
|
|
2995
2995
|
trigger: t
|
|
2996
2996
|
});
|
|
2997
2997
|
}
|
|
2998
|
-
#
|
|
2998
|
+
#P(t) {
|
|
2999
2999
|
const { quality: e } = this.$state;
|
|
3000
3000
|
e.set(this.#e.qualities.selected), t && this.#d("media-quality-change-request", t), this.dispatch("quality-change", {
|
|
3001
3001
|
detail: e(),
|
|
@@ -3016,7 +3016,7 @@ class Tn extends Pt {
|
|
|
3016
3016
|
const d = Math.abs(h.width - i) + Math.abs(h.height - n);
|
|
3017
3017
|
d < o && (o = d, r = h);
|
|
3018
3018
|
}
|
|
3019
|
-
r && t[
|
|
3019
|
+
r && t[x.select](
|
|
3020
3020
|
r,
|
|
3021
3021
|
!0,
|
|
3022
3022
|
new L("resize", { detail: { width: i, height: n } })
|
|
@@ -3026,7 +3026,7 @@ class Tn extends Pt {
|
|
|
3026
3026
|
#S() {
|
|
3027
3027
|
this.#T?.(), this.#T = null;
|
|
3028
3028
|
}
|
|
3029
|
-
#
|
|
3029
|
+
#x() {
|
|
3030
3030
|
this.$state.canSetQuality.set(!this.#e.qualities.readonly);
|
|
3031
3031
|
}
|
|
3032
3032
|
#E() {
|
|
@@ -3035,7 +3035,7 @@ class Tn extends Pt {
|
|
|
3035
3035
|
t.set(!1);
|
|
3036
3036
|
return;
|
|
3037
3037
|
}
|
|
3038
|
-
|
|
3038
|
+
Ui().then(t.set);
|
|
3039
3039
|
}
|
|
3040
3040
|
"provider-change"(t) {
|
|
3041
3041
|
const e = this.#e.$provider(), s = t.detail;
|
|
@@ -3101,10 +3101,10 @@ class Tn extends Pt {
|
|
|
3101
3101
|
if (!Ne(o)) continue;
|
|
3102
3102
|
if (!e.some((d) => d.src === o.src)) {
|
|
3103
3103
|
const d = i.getBySrc(o.src);
|
|
3104
|
-
d && (i[
|
|
3104
|
+
d && (i[x.remove](d, s), r = !0);
|
|
3105
3105
|
}
|
|
3106
3106
|
}
|
|
3107
|
-
r && !i.length && (this.$state.savedState.set(null), i[
|
|
3107
|
+
r && !i.length && (this.$state.savedState.set(null), i[x.reset](s));
|
|
3108
3108
|
for (const o of e) {
|
|
3109
3109
|
if (!Ne(o) || i.getBySrc(o.src)) continue;
|
|
3110
3110
|
const h = {
|
|
@@ -3114,7 +3114,7 @@ class Tn extends Pt {
|
|
|
3114
3114
|
...o,
|
|
3115
3115
|
selected: !1
|
|
3116
3116
|
};
|
|
3117
|
-
i[
|
|
3117
|
+
i[x.add](h, s), n = !0;
|
|
3118
3118
|
}
|
|
3119
3119
|
n && !i[X.enableAuto] && (this.#k(), i[X.enableAuto] = this.#k.bind(this), i[X.setAuto](!0, s));
|
|
3120
3120
|
}
|
|
@@ -3126,7 +3126,7 @@ class Tn extends Pt {
|
|
|
3126
3126
|
#C(t, e = !1) {
|
|
3127
3127
|
const { audioTracks: s, qualities: i } = this.#e;
|
|
3128
3128
|
if (!e) {
|
|
3129
|
-
this.#a = [], this.#n = [-1, -1], s[
|
|
3129
|
+
this.#a = [], this.#n = [-1, -1], s[x.reset](t), i[x.reset](t), vs(this.$state, e), this.#u();
|
|
3130
3130
|
return;
|
|
3131
3131
|
}
|
|
3132
3132
|
vs(this.$state, e), this.#u();
|
|
@@ -3166,7 +3166,7 @@ class Tn extends Pt {
|
|
|
3166
3166
|
#M(t) {
|
|
3167
3167
|
const { seekable: e, buffered: s, intrinsicDuration: i, canPlay: n } = this.$state;
|
|
3168
3168
|
n.set(!0), s.set(t.buffered), e.set(t.seekable);
|
|
3169
|
-
const r =
|
|
3169
|
+
const r = $t(t.seekable) ?? 1 / 0;
|
|
3170
3170
|
i.set(r);
|
|
3171
3171
|
}
|
|
3172
3172
|
"duration-change"(t) {
|
|
@@ -3178,7 +3178,7 @@ class Tn extends Pt {
|
|
|
3178
3178
|
(i() > 0 || n() > 0) && t.stopImmediatePropagation();
|
|
3179
3179
|
}
|
|
3180
3180
|
progress(t) {
|
|
3181
|
-
const { buffered: e, seekable: s } = this.$state, { buffered: i, seekable: n } = t.detail, r =
|
|
3181
|
+
const { buffered: e, seekable: s } = this.$state, { buffered: i, seekable: n } = t.detail, r = $t(i), o = i.length !== e().length, h = r !== $t(e()), d = $t(n), c = n.length !== s().length, u = d !== $t(s());
|
|
3182
3182
|
(o || h) && e.set(i), (c || u) && s.set(n);
|
|
3183
3183
|
}
|
|
3184
3184
|
play(t) {
|
|
@@ -3282,11 +3282,11 @@ class Tn extends Pt {
|
|
|
3282
3282
|
}
|
|
3283
3283
|
#I() {
|
|
3284
3284
|
const { currentTime: t, played: e, paused: s } = this.$state;
|
|
3285
|
-
s() || (this.#n =
|
|
3285
|
+
s() || (this.#n = ba(
|
|
3286
3286
|
this.#a,
|
|
3287
3287
|
this.#n,
|
|
3288
3288
|
t()
|
|
3289
|
-
), e.set(new
|
|
3289
|
+
), e.set(new le(this.#a)));
|
|
3290
3290
|
}
|
|
3291
3291
|
// Called to update time again incase duration precision has changed.
|
|
3292
3292
|
#_(t) {
|
|
@@ -3400,7 +3400,7 @@ class Tn extends Pt {
|
|
|
3400
3400
|
t.trigger && (t.stopImmediatePropagation(), this.$state.inferredPoster.set(t.detail));
|
|
3401
3401
|
}
|
|
3402
3402
|
}
|
|
3403
|
-
class
|
|
3403
|
+
class Sn extends Ct {
|
|
3404
3404
|
onSetup() {
|
|
3405
3405
|
this.#t();
|
|
3406
3406
|
const t = [
|
|
@@ -3510,13 +3510,13 @@ class kn extends Pt {
|
|
|
3510
3510
|
}
|
|
3511
3511
|
}
|
|
3512
3512
|
const ks = ["play", "pause", "seekforward", "seekbackward", "seekto"];
|
|
3513
|
-
class
|
|
3513
|
+
class Pn extends Ct {
|
|
3514
3514
|
onConnect() {
|
|
3515
3515
|
l(this.#e.bind(this)), l(this.#s.bind(this));
|
|
3516
3516
|
const t = this.#i.bind(this);
|
|
3517
3517
|
for (const e of ks)
|
|
3518
3518
|
navigator.mediaSession.setActionHandler(e, t);
|
|
3519
|
-
|
|
3519
|
+
P(this.#t.bind(this));
|
|
3520
3520
|
}
|
|
3521
3521
|
#t() {
|
|
3522
3522
|
for (const t of ks)
|
|
@@ -3554,13 +3554,13 @@ class Sn extends Pt {
|
|
|
3554
3554
|
}
|
|
3555
3555
|
}
|
|
3556
3556
|
}
|
|
3557
|
-
class
|
|
3558
|
-
static props =
|
|
3559
|
-
static state =
|
|
3557
|
+
class Lt extends b {
|
|
3558
|
+
static props = gn;
|
|
3559
|
+
static state = Js;
|
|
3560
3560
|
#t;
|
|
3561
3561
|
#e;
|
|
3562
3562
|
#s;
|
|
3563
|
-
canPlayQueue = new
|
|
3563
|
+
canPlayQueue = new si();
|
|
3564
3564
|
remoteControl;
|
|
3565
3565
|
get #i() {
|
|
3566
3566
|
return this.#t.$provider();
|
|
@@ -3569,39 +3569,39 @@ class Mt extends b {
|
|
|
3569
3569
|
return this.$props;
|
|
3570
3570
|
}
|
|
3571
3571
|
constructor() {
|
|
3572
|
-
super(), new
|
|
3572
|
+
super(), new Sn();
|
|
3573
3573
|
const t = {
|
|
3574
3574
|
player: this,
|
|
3575
|
-
qualities: new
|
|
3576
|
-
audioTracks: new
|
|
3575
|
+
qualities: new tn(),
|
|
3576
|
+
audioTracks: new Ya(),
|
|
3577
3577
|
storage: null,
|
|
3578
3578
|
$provider: w(null),
|
|
3579
3579
|
$providerSetup: w(!1),
|
|
3580
3580
|
$props: this.$props,
|
|
3581
3581
|
$state: this.$state
|
|
3582
3582
|
};
|
|
3583
|
-
t.remote = this.remoteControl = new
|
|
3583
|
+
t.remote = this.remoteControl = new za(
|
|
3584
3584
|
void 0
|
|
3585
|
-
), t.remote.setPlayer(this), t.textTracks = new
|
|
3586
|
-
const e = new
|
|
3587
|
-
this.#e = new
|
|
3585
|
+
), t.remote.setPlayer(this), t.textTracks = new Za(), t.textTracks[k.crossOrigin] = this.$state.crossOrigin, t.textRenderers = new Ja(t), t.ariaKeys = {}, this.#t = t, z(Us, t), this.orientation = new $e(), new Z(), new on(t);
|
|
3586
|
+
const e = new wn();
|
|
3587
|
+
this.#e = new kn(e, t), this.#s = new vn(this.#e, e, t), t.delegate = new yn(this.#e.handle.bind(this.#e), t), t.notify = t.delegate.notify.bind(t.delegate), typeof navigator < "u" && "mediaSession" in navigator && new Pn(), new ws("load", this.startLoading.bind(this)), new ws("posterLoad", this.startLoadingPoster.bind(this));
|
|
3588
3588
|
}
|
|
3589
3589
|
onSetup() {
|
|
3590
|
-
this.#l(), l(this.#h.bind(this)), l(this.#y.bind(this)), l(this.#p.bind(this)), l(this.#w.bind(this)), l(this.#b.bind(this)), l(this.#T.bind(this)), l(this.#
|
|
3590
|
+
this.#l(), l(this.#h.bind(this)), l(this.#y.bind(this)), l(this.#p.bind(this)), l(this.#w.bind(this)), l(this.#b.bind(this)), l(this.#T.bind(this)), l(this.#P.bind(this));
|
|
3591
3591
|
}
|
|
3592
3592
|
onAttach(t) {
|
|
3593
3593
|
t.setAttribute("data-media-player", ""), C(t, "tabindex", "0"), C(t, "role", "region"), l(this.#S.bind(this)), l(this.#r.bind(this)), l(this.#o.bind(this)), O(t, "find-media-player", this.#c.bind(this));
|
|
3594
3594
|
}
|
|
3595
3595
|
onConnect(t) {
|
|
3596
|
-
|
|
3596
|
+
Hs && f(t, "data-iphone", "");
|
|
3597
3597
|
const e = window.matchMedia("(pointer: coarse)");
|
|
3598
3598
|
this.#d(e), e.onchange = this.#d.bind(this);
|
|
3599
|
-
const s = new ResizeObserver(
|
|
3599
|
+
const s = new ResizeObserver(Vt(this.#u.bind(this)));
|
|
3600
3600
|
s.observe(t), l(this.#u.bind(this)), this.dispatch("media-player-connect", {
|
|
3601
3601
|
detail: this,
|
|
3602
3602
|
bubbles: !0,
|
|
3603
3603
|
composed: !0
|
|
3604
|
-
}),
|
|
3604
|
+
}), P(() => {
|
|
3605
3605
|
s.disconnect(), e.onchange = null;
|
|
3606
3606
|
});
|
|
3607
3607
|
}
|
|
@@ -3610,7 +3610,7 @@ class Mt extends b {
|
|
|
3610
3610
|
}
|
|
3611
3611
|
#n = !1;
|
|
3612
3612
|
#r() {
|
|
3613
|
-
const t = this.$el, { title: e, live: s, viewType: i, providedTitle: n } = this.$state, r = s(), o =
|
|
3613
|
+
const t = this.$el, { title: e, live: s, viewType: i, providedTitle: n } = this.$state, r = s(), o = Bi(i()), h = o !== "Unknown" ? `${r ? "Live " : ""}${o}` : r ? "Live" : "Media", d = e();
|
|
3614
3614
|
f(
|
|
3615
3615
|
this.el,
|
|
3616
3616
|
"aria-label",
|
|
@@ -3625,8 +3625,8 @@ class Mt extends b {
|
|
|
3625
3625
|
this.$state.canPlay() && this.#i ? this.canPlayQueue.start() : this.canPlayQueue.stop();
|
|
3626
3626
|
}
|
|
3627
3627
|
#l() {
|
|
3628
|
-
if (
|
|
3629
|
-
this.setAttributes(
|
|
3628
|
+
if (Lt[Ee]) {
|
|
3629
|
+
this.setAttributes(Lt[Ee]);
|
|
3630
3630
|
return;
|
|
3631
3631
|
}
|
|
3632
3632
|
const t = {
|
|
@@ -3666,13 +3666,13 @@ class Mt extends b {
|
|
|
3666
3666
|
isAirPlayConnected: "airplay",
|
|
3667
3667
|
isGoogleCastConnected: "google-cast"
|
|
3668
3668
|
};
|
|
3669
|
-
for (const s of
|
|
3670
|
-
const i = "data-" + (e[s] ??
|
|
3669
|
+
for (const s of fn) {
|
|
3670
|
+
const i = "data-" + (e[s] ?? Gi(s));
|
|
3671
3671
|
t[i] = function() {
|
|
3672
3672
|
return this.$state[s]();
|
|
3673
3673
|
};
|
|
3674
3674
|
}
|
|
3675
|
-
delete t.title,
|
|
3675
|
+
delete t.title, Lt[Ee] = t, this.setAttributes(t);
|
|
3676
3676
|
}
|
|
3677
3677
|
#c(t) {
|
|
3678
3678
|
t.detail(this);
|
|
@@ -3796,7 +3796,7 @@ class Mt extends b {
|
|
|
3796
3796
|
const { currentTime: e } = this.$state;
|
|
3797
3797
|
t !== p(e) && p(() => {
|
|
3798
3798
|
if (!this.#i) return;
|
|
3799
|
-
const s =
|
|
3799
|
+
const s = ti(t, this.$state);
|
|
3800
3800
|
Number.isFinite(s) && this.#i.setCurrentTime(s);
|
|
3801
3801
|
});
|
|
3802
3802
|
});
|
|
@@ -3822,7 +3822,7 @@ class Mt extends b {
|
|
|
3822
3822
|
set playbackRate(t) {
|
|
3823
3823
|
this.#f(t);
|
|
3824
3824
|
}
|
|
3825
|
-
#
|
|
3825
|
+
#P() {
|
|
3826
3826
|
this.#f(this.$props.playbackRate());
|
|
3827
3827
|
}
|
|
3828
3828
|
#f(t) {
|
|
@@ -3839,16 +3839,16 @@ class Mt extends b {
|
|
|
3839
3839
|
});
|
|
3840
3840
|
}
|
|
3841
3841
|
#S() {
|
|
3842
|
-
let t = this.$props.storage(), e = S(t) ? new
|
|
3842
|
+
let t = this.$props.storage(), e = S(t) ? new ja() : t;
|
|
3843
3843
|
if (e?.onChange) {
|
|
3844
|
-
const { source: s } = this.$state, i = S(t) ? t : this.el?.id, n = tt(this.#
|
|
3844
|
+
const { source: s } = this.$state, i = S(t) ? t : this.el?.id, n = tt(this.#x.bind(this));
|
|
3845
3845
|
l(() => e.onChange(s(), n(), i || void 0));
|
|
3846
3846
|
}
|
|
3847
|
-
this.#t.storage = e, this.#t.textTracks.setStorage(e),
|
|
3847
|
+
this.#t.storage = e, this.#t.textTracks.setStorage(e), P(() => {
|
|
3848
3848
|
e?.onDestroy?.(), this.#t.storage = null, this.#t.textTracks.setStorage(null);
|
|
3849
3849
|
});
|
|
3850
3850
|
}
|
|
3851
|
-
#
|
|
3851
|
+
#x() {
|
|
3852
3852
|
const { clipStartTime: t, clipEndTime: e } = this.$props, { source: s } = this.$state, i = s();
|
|
3853
3853
|
return i.src ? `${i.src}:${t()}:${e()}` : null;
|
|
3854
3854
|
}
|
|
@@ -3959,7 +3959,7 @@ class Mt extends b {
|
|
|
3959
3959
|
super.destroy(), this.#t.remote.setPlayer(null), this.dispatch("destroy");
|
|
3960
3960
|
}
|
|
3961
3961
|
}
|
|
3962
|
-
const A =
|
|
3962
|
+
const A = Lt.prototype;
|
|
3963
3963
|
T(A, "canPlayQueue");
|
|
3964
3964
|
T(A, "remoteControl");
|
|
3965
3965
|
T(A, "provider");
|
|
@@ -3991,24 +3991,24 @@ _(A, "setAudioGain");
|
|
|
3991
3991
|
function xn(a, t) {
|
|
3992
3992
|
return fetch(a, t).then((e) => e.text()).then((e) => /type="static"/.test(e) ? "on-demand" : "live");
|
|
3993
3993
|
}
|
|
3994
|
-
function
|
|
3994
|
+
function ii(a, t) {
|
|
3995
3995
|
return fetch(a, t).then((e) => e.text()).then((e) => {
|
|
3996
|
-
const s =
|
|
3996
|
+
const s = Cn(e);
|
|
3997
3997
|
if (s)
|
|
3998
|
-
return
|
|
3998
|
+
return ii(
|
|
3999
3999
|
/^https?:/.test(s) ? s : new URL(s, a).href,
|
|
4000
4000
|
t
|
|
4001
4001
|
);
|
|
4002
4002
|
const i = /EXT-X-PLAYLIST-TYPE:\s*VOD/.test(e) ? "on-demand" : "live";
|
|
4003
|
-
return i === "live" &&
|
|
4003
|
+
return i === "live" && En(e) >= 10 && (/#EXT-X-DVR-ENABLED:\s*true/.test(e) || e.includes("#EXT-X-DISCONTINUITY")) ? "live:dvr" : i;
|
|
4004
4004
|
});
|
|
4005
4005
|
}
|
|
4006
|
-
function
|
|
4006
|
+
function Cn(a) {
|
|
4007
4007
|
const t = a.match(/#EXT-X-STREAM-INF:[^\n]+(\n[^\n]+)*/g);
|
|
4008
4008
|
return t ? t[0].split(`
|
|
4009
4009
|
`)[1].trim() : null;
|
|
4010
4010
|
}
|
|
4011
|
-
function
|
|
4011
|
+
function En(a) {
|
|
4012
4012
|
const t = a.split(`
|
|
4013
4013
|
`);
|
|
4014
4014
|
for (const e of t)
|
|
@@ -4020,7 +4020,7 @@ function Cn(a) {
|
|
|
4020
4020
|
return -1;
|
|
4021
4021
|
}
|
|
4022
4022
|
const He = /* @__PURE__ */ new Map();
|
|
4023
|
-
class
|
|
4023
|
+
class An {
|
|
4024
4024
|
#t = !1;
|
|
4025
4025
|
#e;
|
|
4026
4026
|
#s;
|
|
@@ -4028,7 +4028,7 @@ class En {
|
|
|
4028
4028
|
#a;
|
|
4029
4029
|
constructor(t, e, s, i = []) {
|
|
4030
4030
|
this.#s = t, this.#i = e, this.#a = s;
|
|
4031
|
-
const n = new Xe(), r = new Ye(), o = new je(), h = new
|
|
4031
|
+
const n = new Xe(), r = new Ye(), o = new je(), h = new un(), d = new mn(), c = new pn(), u = [d, c];
|
|
4032
4032
|
this.#e = tt(() => {
|
|
4033
4033
|
const g = e.$state.remotePlaybackLoader(), E = e.$props.preferNativeHLS() ? [o, h, n, r, ...u, ...i] : [r, o, h, n, ...u, ...i];
|
|
4034
4034
|
return g ? [g, ...E] : E;
|
|
@@ -4056,7 +4056,7 @@ class En {
|
|
|
4056
4056
|
#r() {
|
|
4057
4057
|
const { $state: t } = this.#i, e = t.sources(), s = p(t.source), i = this.#o(s, e);
|
|
4058
4058
|
if (e[0]?.src && !i.src && !i.type) {
|
|
4059
|
-
const { crossOrigin: r } = t, o =
|
|
4059
|
+
const { crossOrigin: r } = t, o = Wt(r()), h = new AbortController();
|
|
4060
4060
|
return Promise.all(
|
|
4061
4061
|
e.map(
|
|
4062
4062
|
(d) => S(d.src) && d.type === "?" ? fetch(d.src, {
|
|
@@ -4094,7 +4094,7 @@ class En {
|
|
|
4094
4094
|
detail: { quality: m }
|
|
4095
4095
|
}));
|
|
4096
4096
|
}
|
|
4097
|
-
return
|
|
4097
|
+
return xs(t, s) || this.#h(s, i, n), i !== p(this.#a) && this.#l(i, n), s;
|
|
4098
4098
|
}
|
|
4099
4099
|
#h(t, e, s) {
|
|
4100
4100
|
this.#i.notify("source-change", t, s), this.#i.notify("media-type-change", e?.mediaType(t) || "unknown", s);
|
|
@@ -4106,7 +4106,7 @@ class En {
|
|
|
4106
4106
|
const t = this.#i.$provider();
|
|
4107
4107
|
if (!(!t || p(this.#i.$providerSetup))) {
|
|
4108
4108
|
if (this.#i.$state.canLoad()) {
|
|
4109
|
-
|
|
4109
|
+
te(() => t.setup(), t.scope), this.#i.$providerSetup.set(!0);
|
|
4110
4110
|
return;
|
|
4111
4111
|
}
|
|
4112
4112
|
p(() => t.preconnect?.());
|
|
@@ -4115,16 +4115,16 @@ class En {
|
|
|
4115
4115
|
#u() {
|
|
4116
4116
|
if (!this.#i.$providerSetup()) return;
|
|
4117
4117
|
const t = this.#i.$provider(), e = this.#i.$state.source(), s = p(this.#i.$state.crossOrigin), i = p(this.#i.$props.preferNativeHLS);
|
|
4118
|
-
if (!
|
|
4118
|
+
if (!xs(t?.currentSrc, e)) {
|
|
4119
4119
|
if (this.#i.$state.canLoad()) {
|
|
4120
4120
|
const n = new AbortController();
|
|
4121
|
-
return Ge(e) ? (i || !
|
|
4122
|
-
credentials:
|
|
4121
|
+
return Ge(e) ? (i || !Fs()) && ii(e.src, {
|
|
4122
|
+
credentials: Wt(s),
|
|
4123
4123
|
signal: n.signal
|
|
4124
4124
|
}).then((r) => {
|
|
4125
4125
|
this.#i.notify("stream-type-change", r);
|
|
4126
4126
|
}).catch(ps) : Ue(e) ? xn(e.src, {
|
|
4127
|
-
credentials:
|
|
4127
|
+
credentials: Wt(s),
|
|
4128
4128
|
signal: n.signal
|
|
4129
4129
|
}).then((r) => {
|
|
4130
4130
|
this.#i.notify("stream-type-change", r);
|
|
@@ -4135,7 +4135,7 @@ class En {
|
|
|
4135
4135
|
}), () => n.abort();
|
|
4136
4136
|
}
|
|
4137
4137
|
try {
|
|
4138
|
-
S(e.src) &&
|
|
4138
|
+
S(e.src) && ee(new URL(e.src).origin);
|
|
4139
4139
|
} catch {
|
|
4140
4140
|
}
|
|
4141
4141
|
}
|
|
@@ -4154,15 +4154,15 @@ class En {
|
|
|
4154
4154
|
}
|
|
4155
4155
|
}
|
|
4156
4156
|
function Ss(a) {
|
|
4157
|
-
return (B(a) ? a : [a]).map((t) => S(t) ? { src: t, type:
|
|
4157
|
+
return (B(a) ? a : [a]).map((t) => S(t) ? { src: t, type: Ps(t) } : { ...t, type: Ps(t.src, t.type) });
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4159
|
+
function Ps(a, t) {
|
|
4160
4160
|
return S(t) && t.length ? t : S(a) && He.has(a) ? He.get(a) : !t && Ge({ src: a, type: "" }) ? "application/x-mpegurl" : !t && Ue({ src: a, type: "" }) ? "application/dash+xml" : !S(a) || a.startsWith("blob:") ? "video/object" : a.includes("youtube") || a.includes("youtu.be") ? "video/youtube" : a.includes("vimeo") && !a.includes("progressive_redirect") && !a.includes(".m3u8") ? "video/vimeo" : "?";
|
|
4161
4161
|
}
|
|
4162
|
-
function
|
|
4162
|
+
function xs(a, t) {
|
|
4163
4163
|
return a?.src === t?.src && a?.type === t?.type;
|
|
4164
4164
|
}
|
|
4165
|
-
class
|
|
4165
|
+
class Mn {
|
|
4166
4166
|
#t;
|
|
4167
4167
|
#e;
|
|
4168
4168
|
#s = [];
|
|
@@ -4177,17 +4177,17 @@ class An {
|
|
|
4177
4177
|
s && this.#e.textTracks.remove(s);
|
|
4178
4178
|
}
|
|
4179
4179
|
for (const e of t) {
|
|
4180
|
-
const s = e.id ||
|
|
4180
|
+
const s = e.id || pe.createId(e);
|
|
4181
4181
|
this.#e.textTracks.getById(s) || (e.id = s, this.#e.textTracks.add(e));
|
|
4182
4182
|
}
|
|
4183
4183
|
this.#s = t;
|
|
4184
4184
|
}
|
|
4185
4185
|
}
|
|
4186
|
-
class
|
|
4186
|
+
class ai extends b {
|
|
4187
4187
|
static props = {
|
|
4188
4188
|
loaders: []
|
|
4189
4189
|
};
|
|
4190
|
-
static state = new
|
|
4190
|
+
static state = new yt({
|
|
4191
4191
|
loader: null
|
|
4192
4192
|
});
|
|
4193
4193
|
#t;
|
|
@@ -4196,7 +4196,7 @@ class ii extends b {
|
|
|
4196
4196
|
#i = w([]);
|
|
4197
4197
|
#a = null;
|
|
4198
4198
|
onSetup() {
|
|
4199
|
-
this.#t = $(), this.#e = new
|
|
4199
|
+
this.#t = $(), this.#e = new An(
|
|
4200
4200
|
this.#s,
|
|
4201
4201
|
this.#t,
|
|
4202
4202
|
this.$state.loader,
|
|
@@ -4207,17 +4207,17 @@ class ii extends b {
|
|
|
4207
4207
|
t.setAttribute("data-media-provider", "");
|
|
4208
4208
|
}
|
|
4209
4209
|
onConnect(t) {
|
|
4210
|
-
this.#e.connect(), new
|
|
4211
|
-
const e = new ResizeObserver(
|
|
4210
|
+
this.#e.connect(), new Mn(this.#i, this.#t);
|
|
4211
|
+
const e = new ResizeObserver(Vt(this.#h.bind(this)));
|
|
4212
4212
|
e.observe(t);
|
|
4213
4213
|
const s = new MutationObserver(this.#l.bind(this));
|
|
4214
|
-
s.observe(t, { attributes: !0, childList: !0 }), this.#h(), this.#l(),
|
|
4214
|
+
s.observe(t, { attributes: !0, childList: !0 }), this.#h(), this.#l(), P(() => {
|
|
4215
4215
|
e.disconnect(), s.disconnect();
|
|
4216
4216
|
});
|
|
4217
4217
|
}
|
|
4218
4218
|
#n = -1;
|
|
4219
4219
|
load(t) {
|
|
4220
|
-
t?.setAttribute("aria-hidden", "true"), window.cancelAnimationFrame(this.#n), this.#n = requestAnimationFrame(() => this.#r(t)),
|
|
4220
|
+
t?.setAttribute("aria-hidden", "true"), window.cancelAnimationFrame(this.#n), this.#n = requestAnimationFrame(() => this.#r(t)), P(() => {
|
|
4221
4221
|
window.cancelAnimationFrame(this.#n);
|
|
4222
4222
|
});
|
|
4223
4223
|
}
|
|
@@ -4264,7 +4264,7 @@ class ii extends b {
|
|
|
4264
4264
|
type: i.getAttribute("data-type")
|
|
4265
4265
|
};
|
|
4266
4266
|
e.push({
|
|
4267
|
-
id: i.id ||
|
|
4267
|
+
id: i.id || pe.createId(n),
|
|
4268
4268
|
...n
|
|
4269
4269
|
});
|
|
4270
4270
|
}
|
|
@@ -4272,18 +4272,18 @@ class ii extends b {
|
|
|
4272
4272
|
this.#s.set(t), this.#i.set(e), rt();
|
|
4273
4273
|
}
|
|
4274
4274
|
}
|
|
4275
|
-
const
|
|
4276
|
-
_(
|
|
4277
|
-
function
|
|
4278
|
-
return [...a].sort(t ?
|
|
4275
|
+
const Ln = ai.prototype;
|
|
4276
|
+
_(Ln, "load");
|
|
4277
|
+
function ni(a, t) {
|
|
4278
|
+
return [...a].sort(t ? _n : qn);
|
|
4279
4279
|
}
|
|
4280
|
-
function
|
|
4280
|
+
function qn(a, t) {
|
|
4281
4281
|
return a.height === t.height ? (a.bitrate ?? 0) - (t.bitrate ?? 0) : a.height - t.height;
|
|
4282
4282
|
}
|
|
4283
|
-
function
|
|
4283
|
+
function _n(a, t) {
|
|
4284
4284
|
return t.height === a.height ? (t.bitrate ?? 0) - (a.bitrate ?? 0) : t.height - a.height;
|
|
4285
4285
|
}
|
|
4286
|
-
class
|
|
4286
|
+
class In extends J {
|
|
4287
4287
|
#t;
|
|
4288
4288
|
constructor(t) {
|
|
4289
4289
|
super(), this.#t = t;
|
|
@@ -4291,7 +4291,7 @@ class _n extends J {
|
|
|
4291
4291
|
onAttach(t) {
|
|
4292
4292
|
const { $props: e, ariaKeys: s } = $(), i = t.getAttribute("aria-keyshortcuts");
|
|
4293
4293
|
if (i) {
|
|
4294
|
-
s[this.#t] = i,
|
|
4294
|
+
s[this.#t] = i, P(() => {
|
|
4295
4295
|
delete s[this.#t];
|
|
4296
4296
|
});
|
|
4297
4297
|
return;
|
|
@@ -4303,7 +4303,7 @@ class _n extends J {
|
|
|
4303
4303
|
}
|
|
4304
4304
|
}
|
|
4305
4305
|
}
|
|
4306
|
-
function
|
|
4306
|
+
function Me(a, t) {
|
|
4307
4307
|
const e = String(a), s = e.length;
|
|
4308
4308
|
if (s < t) {
|
|
4309
4309
|
const n = t - s;
|
|
@@ -4311,7 +4311,7 @@ function Ae(a, t) {
|
|
|
4311
4311
|
}
|
|
4312
4312
|
return e;
|
|
4313
4313
|
}
|
|
4314
|
-
function
|
|
4314
|
+
function ri(a) {
|
|
4315
4315
|
const t = Math.trunc(a / 3600), e = Math.trunc(a % 3600 / 60), s = Math.trunc(a % 60), i = Number((a - Math.trunc(a)).toPrecision(3));
|
|
4316
4316
|
return {
|
|
4317
4317
|
hours: t,
|
|
@@ -4320,15 +4320,15 @@ function ni(a) {
|
|
|
4320
4320
|
fraction: i
|
|
4321
4321
|
};
|
|
4322
4322
|
}
|
|
4323
|
-
function
|
|
4324
|
-
const { hours: n, minutes: r, seconds: o, fraction: h } =
|
|
4323
|
+
function we(a, { padHrs: t = null, padMins: e = null, showHrs: s = !1, showMs: i = !1 } = {}) {
|
|
4324
|
+
const { hours: n, minutes: r, seconds: o, fraction: h } = ri(a), d = t ? Me(n, 2) : n, c = e || nt(e) && a >= 3600 ? Me(r, 2) : r, u = Me(o, 2), m = i && h > 0 ? `.${String(h).replace(/^0?\./, "")}` : "", g = `${c}:${u}${m}`;
|
|
4325
4325
|
return n > 0 || s ? `${d}:${g}` : g;
|
|
4326
4326
|
}
|
|
4327
|
-
function
|
|
4328
|
-
const t = [], { hours: e, minutes: s, seconds: i } =
|
|
4327
|
+
function fe(a) {
|
|
4328
|
+
const t = [], { hours: e, minutes: s, seconds: i } = ri(a);
|
|
4329
4329
|
return e > 0 && t.push(`${e} hour`), s > 0 && t.push(`${s} min`), (i > 0 || t.length === 0) && t.push(`${i} sec`), t.join(" ");
|
|
4330
4330
|
}
|
|
4331
|
-
class
|
|
4331
|
+
class oi extends J {
|
|
4332
4332
|
#t;
|
|
4333
4333
|
constructor(t) {
|
|
4334
4334
|
super(), this.#t = t, l(this.#e.bind(this));
|
|
@@ -4363,7 +4363,7 @@ class ri extends J {
|
|
|
4363
4363
|
const s = () => {
|
|
4364
4364
|
e.style.display = "none", this.#a = null;
|
|
4365
4365
|
};
|
|
4366
|
-
if (
|
|
4366
|
+
if (Ba(e)) {
|
|
4367
4367
|
this.#a?.();
|
|
4368
4368
|
const n = O(e, "animationend", s, { once: !0 });
|
|
4369
4369
|
this.#a = n;
|
|
@@ -4382,7 +4382,7 @@ class F extends J {
|
|
|
4382
4382
|
};
|
|
4383
4383
|
#t;
|
|
4384
4384
|
constructor(t) {
|
|
4385
|
-
super(), this.#t = t, new Z(), t.keyShortcut && new
|
|
4385
|
+
super(), this.#t = t, new Z(), t.keyShortcut && new In(t.keyShortcut);
|
|
4386
4386
|
}
|
|
4387
4387
|
onSetup() {
|
|
4388
4388
|
const { disabled: t } = this.$props;
|
|
@@ -4396,17 +4396,17 @@ class F extends J {
|
|
|
4396
4396
|
C(t, "tabindex", "0"), C(t, "role", "button"), C(t, "type", "button");
|
|
4397
4397
|
}
|
|
4398
4398
|
onConnect(t) {
|
|
4399
|
-
const e =
|
|
4399
|
+
const e = mt(t, this.#i.bind(this));
|
|
4400
4400
|
for (const s of ["click", "touchstart"])
|
|
4401
4401
|
e.add(s, this.#a.bind(this), {
|
|
4402
4402
|
passive: !0
|
|
4403
4403
|
});
|
|
4404
4404
|
}
|
|
4405
4405
|
#e() {
|
|
4406
|
-
return
|
|
4406
|
+
return ue(this.#t.isPresssed());
|
|
4407
4407
|
}
|
|
4408
4408
|
#s(t) {
|
|
4409
|
-
|
|
4409
|
+
ta(this.#t.isPresssed) && this.#t.isPresssed.set((e) => !e);
|
|
4410
4410
|
}
|
|
4411
4411
|
#i(t) {
|
|
4412
4412
|
if (this.$props.disabled() || this.el.hasAttribute("data-disabled")) {
|
|
@@ -4419,7 +4419,7 @@ class F extends J {
|
|
|
4419
4419
|
this.$props.disabled() && (t.preventDefault(), t.stopImmediatePropagation());
|
|
4420
4420
|
}
|
|
4421
4421
|
}
|
|
4422
|
-
class
|
|
4422
|
+
class Vn extends b {
|
|
4423
4423
|
static props = F.props;
|
|
4424
4424
|
#t;
|
|
4425
4425
|
constructor() {
|
|
@@ -4439,7 +4439,7 @@ class In extends b {
|
|
|
4439
4439
|
});
|
|
4440
4440
|
}
|
|
4441
4441
|
onAttach(t) {
|
|
4442
|
-
t.setAttribute("data-media-tooltip", "airplay"),
|
|
4442
|
+
t.setAttribute("data-media-tooltip", "airplay"), bt(t, this.#a.bind(this));
|
|
4443
4443
|
}
|
|
4444
4444
|
#e(t) {
|
|
4445
4445
|
this.#t.remote.requestAirPlay(t);
|
|
@@ -4457,7 +4457,7 @@ class In extends b {
|
|
|
4457
4457
|
return `AirPlay ${t()}`;
|
|
4458
4458
|
}
|
|
4459
4459
|
}
|
|
4460
|
-
let
|
|
4460
|
+
let Dn = class extends b {
|
|
4461
4461
|
static props = F.props;
|
|
4462
4462
|
#t;
|
|
4463
4463
|
constructor() {
|
|
@@ -4476,7 +4476,7 @@ let Vn = class extends b {
|
|
|
4476
4476
|
});
|
|
4477
4477
|
}
|
|
4478
4478
|
onAttach(t) {
|
|
4479
|
-
t.setAttribute("data-media-tooltip", "play"),
|
|
4479
|
+
t.setAttribute("data-media-tooltip", "play"), bt(t, "Play");
|
|
4480
4480
|
}
|
|
4481
4481
|
#e(t) {
|
|
4482
4482
|
const e = this.#t.remote;
|
|
@@ -4487,7 +4487,7 @@ let Vn = class extends b {
|
|
|
4487
4487
|
return !t();
|
|
4488
4488
|
}
|
|
4489
4489
|
};
|
|
4490
|
-
class
|
|
4490
|
+
class Rn extends b {
|
|
4491
4491
|
static props = F.props;
|
|
4492
4492
|
#t;
|
|
4493
4493
|
constructor() {
|
|
@@ -4505,7 +4505,7 @@ class Dn extends b {
|
|
|
4505
4505
|
});
|
|
4506
4506
|
}
|
|
4507
4507
|
onAttach(t) {
|
|
4508
|
-
t.setAttribute("data-media-tooltip", "caption"),
|
|
4508
|
+
t.setAttribute("data-media-tooltip", "caption"), bt(t, "Captions");
|
|
4509
4509
|
}
|
|
4510
4510
|
#e(t) {
|
|
4511
4511
|
this.#t.remote.toggleCaptions(t);
|
|
@@ -4519,7 +4519,7 @@ class Dn extends b {
|
|
|
4519
4519
|
return !t();
|
|
4520
4520
|
}
|
|
4521
4521
|
}
|
|
4522
|
-
let
|
|
4522
|
+
let On = class extends b {
|
|
4523
4523
|
static props = {
|
|
4524
4524
|
...F.props,
|
|
4525
4525
|
target: "prefer-media"
|
|
@@ -4542,7 +4542,7 @@ let Rn = class extends b {
|
|
|
4542
4542
|
});
|
|
4543
4543
|
}
|
|
4544
4544
|
onAttach(t) {
|
|
4545
|
-
t.setAttribute("data-media-tooltip", "fullscreen"),
|
|
4545
|
+
t.setAttribute("data-media-tooltip", "fullscreen"), bt(t, "Fullscreen");
|
|
4546
4546
|
}
|
|
4547
4547
|
#e(t) {
|
|
4548
4548
|
const e = this.#t.remote, s = this.$props.target();
|
|
@@ -4557,7 +4557,7 @@ let Rn = class extends b {
|
|
|
4557
4557
|
return t();
|
|
4558
4558
|
}
|
|
4559
4559
|
};
|
|
4560
|
-
class
|
|
4560
|
+
class Nn extends b {
|
|
4561
4561
|
static props = F.props;
|
|
4562
4562
|
#t;
|
|
4563
4563
|
constructor() {
|
|
@@ -4574,7 +4574,7 @@ class On extends b {
|
|
|
4574
4574
|
});
|
|
4575
4575
|
}
|
|
4576
4576
|
onAttach(t) {
|
|
4577
|
-
t.setAttribute("data-media-mute-button", ""), t.setAttribute("data-media-tooltip", "mute"),
|
|
4577
|
+
t.setAttribute("data-media-mute-button", ""), t.setAttribute("data-media-tooltip", "mute"), bt(t, "Mute");
|
|
4578
4578
|
}
|
|
4579
4579
|
#e(t) {
|
|
4580
4580
|
const e = this.#t.remote;
|
|
@@ -4591,7 +4591,7 @@ class On extends b {
|
|
|
4591
4591
|
if (s < 0.5) return "low";
|
|
4592
4592
|
}
|
|
4593
4593
|
}
|
|
4594
|
-
class
|
|
4594
|
+
class Hn extends b {
|
|
4595
4595
|
static props = F.props;
|
|
4596
4596
|
#t;
|
|
4597
4597
|
constructor() {
|
|
@@ -4611,7 +4611,7 @@ class Nn extends b {
|
|
|
4611
4611
|
});
|
|
4612
4612
|
}
|
|
4613
4613
|
onAttach(t) {
|
|
4614
|
-
t.setAttribute("data-media-tooltip", "pip"),
|
|
4614
|
+
t.setAttribute("data-media-tooltip", "pip"), bt(t, "PiP");
|
|
4615
4615
|
}
|
|
4616
4616
|
#e(t) {
|
|
4617
4617
|
const e = this.#t.remote;
|
|
@@ -4626,7 +4626,7 @@ class Nn extends b {
|
|
|
4626
4626
|
return t();
|
|
4627
4627
|
}
|
|
4628
4628
|
}
|
|
4629
|
-
class
|
|
4629
|
+
class Fn extends b {
|
|
4630
4630
|
static props = {
|
|
4631
4631
|
disabled: !1,
|
|
4632
4632
|
seconds: 30
|
|
@@ -4646,10 +4646,10 @@ class Hn extends b {
|
|
|
4646
4646
|
});
|
|
4647
4647
|
}
|
|
4648
4648
|
onAttach(t) {
|
|
4649
|
-
C(t, "tabindex", "0"), C(t, "role", "button"), C(t, "type", "button"), t.setAttribute("data-media-tooltip", "seek"),
|
|
4649
|
+
C(t, "tabindex", "0"), C(t, "role", "button"), C(t, "type", "button"), t.setAttribute("data-media-tooltip", "seek"), bt(t, this.#s.bind(this));
|
|
4650
4650
|
}
|
|
4651
4651
|
onConnect(t) {
|
|
4652
|
-
|
|
4652
|
+
mt(t, this.#i.bind(this));
|
|
4653
4653
|
}
|
|
4654
4654
|
#e() {
|
|
4655
4655
|
const { canSeek: t } = this.#t.$state;
|
|
@@ -4666,7 +4666,7 @@ class Hn extends b {
|
|
|
4666
4666
|
this.#t.remote.seek(n, t);
|
|
4667
4667
|
}
|
|
4668
4668
|
}
|
|
4669
|
-
class
|
|
4669
|
+
class Bn extends b {
|
|
4670
4670
|
static props = {
|
|
4671
4671
|
disabled: !1
|
|
4672
4672
|
};
|
|
@@ -4688,14 +4688,14 @@ class Fn extends b {
|
|
|
4688
4688
|
C(t, "tabindex", "0"), C(t, "role", "button"), C(t, "type", "button"), t.setAttribute("data-media-tooltip", "live");
|
|
4689
4689
|
}
|
|
4690
4690
|
onConnect(t) {
|
|
4691
|
-
|
|
4691
|
+
mt(t, this.#e.bind(this));
|
|
4692
4692
|
}
|
|
4693
4693
|
#e(t) {
|
|
4694
4694
|
const { disabled: e } = this.$props, { liveEdge: s } = this.#t.$state;
|
|
4695
4695
|
e() || s() || this.#t.remote.seekToLiveEdge(t);
|
|
4696
4696
|
}
|
|
4697
4697
|
}
|
|
4698
|
-
const
|
|
4698
|
+
const Et = new yt({
|
|
4699
4699
|
min: 0,
|
|
4700
4700
|
max: 100,
|
|
4701
4701
|
value: 0,
|
|
@@ -4725,7 +4725,7 @@ function Cs(a, t, e) {
|
|
|
4725
4725
|
const s = t - a, i = e - a;
|
|
4726
4726
|
return s > 0 ? i / s : 0;
|
|
4727
4727
|
}
|
|
4728
|
-
class
|
|
4728
|
+
class hi extends J {
|
|
4729
4729
|
#t;
|
|
4730
4730
|
#e;
|
|
4731
4731
|
constructor(t) {
|
|
@@ -4734,7 +4734,7 @@ class oi extends J {
|
|
|
4734
4734
|
onConnect(t) {
|
|
4735
4735
|
this.#e = new IntersectionObserver((e) => {
|
|
4736
4736
|
this.#t.callback?.(e, this.#e);
|
|
4737
|
-
}, this.#t), this.#e.observe(t),
|
|
4737
|
+
}, this.#t), this.#e.observe(t), P(this.#s.bind(this));
|
|
4738
4738
|
}
|
|
4739
4739
|
/**
|
|
4740
4740
|
* Disconnect any active intersection observers.
|
|
@@ -4743,15 +4743,15 @@ class oi extends J {
|
|
|
4743
4743
|
this.#e?.disconnect(), this.#e = void 0;
|
|
4744
4744
|
}
|
|
4745
4745
|
}
|
|
4746
|
-
const Je =
|
|
4747
|
-
function Bn(a, t, e, s) {
|
|
4748
|
-
return ze(a, V(e, Ua(s)), t);
|
|
4749
|
-
}
|
|
4746
|
+
const Je = gt(), zt = gt();
|
|
4750
4747
|
function Gn(a, t, e, s) {
|
|
4748
|
+
return ze(a, V(e, Ka(s)), t);
|
|
4749
|
+
}
|
|
4750
|
+
function Un(a, t, e, s) {
|
|
4751
4751
|
const i = ze(0, e, 1), n = t - a, r = n * i, o = r / s, h = s * Math.round(o);
|
|
4752
4752
|
return a + h;
|
|
4753
4753
|
}
|
|
4754
|
-
const
|
|
4754
|
+
const Le = {
|
|
4755
4755
|
Left: -1,
|
|
4756
4756
|
ArrowLeft: -1,
|
|
4757
4757
|
Up: 1,
|
|
@@ -4761,7 +4761,7 @@ const Me = {
|
|
|
4761
4761
|
Down: -1,
|
|
4762
4762
|
ArrowDown: -1
|
|
4763
4763
|
};
|
|
4764
|
-
class
|
|
4764
|
+
class Kn extends J {
|
|
4765
4765
|
#t;
|
|
4766
4766
|
#e;
|
|
4767
4767
|
#s;
|
|
@@ -4769,7 +4769,7 @@ class Un extends J {
|
|
|
4769
4769
|
super(), this.#t = t, this.#e = e;
|
|
4770
4770
|
}
|
|
4771
4771
|
onSetup() {
|
|
4772
|
-
K(
|
|
4772
|
+
K(zt) && (this.#s = q(zt));
|
|
4773
4773
|
}
|
|
4774
4774
|
onConnect(t) {
|
|
4775
4775
|
l(this.#l.bind(this, t)), l(this.#c.bind(this, t)), this.#t.swipeGesture && l(this.#i.bind(this));
|
|
@@ -4839,7 +4839,7 @@ class Un extends J {
|
|
|
4839
4839
|
Math.min(
|
|
4840
4840
|
n(),
|
|
4841
4841
|
this.#t.roundValue(
|
|
4842
|
-
|
|
4842
|
+
Un(i(), n(), e, this.#t.getStep())
|
|
4843
4843
|
)
|
|
4844
4844
|
)
|
|
4845
4845
|
);
|
|
@@ -4876,31 +4876,31 @@ class Un extends J {
|
|
|
4876
4876
|
// -------------------------------------------------------------------------------------------
|
|
4877
4877
|
// Keyboard Events
|
|
4878
4878
|
// -------------------------------------------------------------------------------------------
|
|
4879
|
-
#
|
|
4879
|
+
#P;
|
|
4880
4880
|
#f = !1;
|
|
4881
4881
|
#T(t) {
|
|
4882
|
-
if (!Object.keys(
|
|
4882
|
+
if (!Object.keys(Le).includes(t.key)) return;
|
|
4883
4883
|
const { key: s } = t, i = this.#S(t);
|
|
4884
4884
|
if (!nt(i)) {
|
|
4885
4885
|
this.#p(i, t), this.#d(i, t);
|
|
4886
4886
|
return;
|
|
4887
4887
|
}
|
|
4888
|
-
const n = this.#
|
|
4889
|
-
this.#f || (this.#f = s === this.#
|
|
4888
|
+
const n = this.#x(t);
|
|
4889
|
+
this.#f || (this.#f = s === this.#P, !this.$state.dragging() && this.#f && this.#w(n, t)), this.#p(n, t), this.#P = s;
|
|
4890
4890
|
}
|
|
4891
4891
|
#k(t) {
|
|
4892
|
-
if (!Object.keys(
|
|
4893
|
-
const s = this.#f ? this.$state.pointerValue() : this.#
|
|
4894
|
-
this.#d(s, t), this.#v(s, t), this.#
|
|
4892
|
+
if (!Object.keys(Le).includes(t.key) || !nt(this.#S(t))) return;
|
|
4893
|
+
const s = this.#f ? this.$state.pointerValue() : this.#x(t);
|
|
4894
|
+
this.#d(s, t), this.#v(s, t), this.#P = "", this.#f = !1;
|
|
4895
4895
|
}
|
|
4896
4896
|
#S(t) {
|
|
4897
4897
|
let e = t.key, { min: s, max: i } = this.$state;
|
|
4898
4898
|
return e === "Home" || e === "PageUp" ? s() : e === "End" || e === "PageDown" ? i() : !t.metaKey && /^[0-9]$/.test(e) ? (i() - s()) / 10 * Number(e) : null;
|
|
4899
4899
|
}
|
|
4900
|
-
#
|
|
4900
|
+
#x(t) {
|
|
4901
4901
|
const { key: e, shiftKey: s } = t;
|
|
4902
4902
|
t.preventDefault(), t.stopPropagation();
|
|
4903
|
-
const { shiftKeyMultiplier: i } = this.$props, { min: n, max: r, value: o, pointerValue: h } = this.$state, d = this.#t.getStep(), c = this.#t.getKeyStep(), u = s ? c * i() : c, m = Number(
|
|
4903
|
+
const { shiftKeyMultiplier: i } = this.$props, { min: n, max: r, value: o, pointerValue: h } = this.$state, d = this.#t.getStep(), c = this.#t.getKeyStep(), u = s ? c * i() : c, m = Number(Le[e]), g = u * m, E = this.#f ? h() : this.#t.getValue?.() ?? o(), I = (E + g) / d;
|
|
4904
4904
|
return Math.max(n(), Math.min(r(), Number((d * I).toFixed(3))));
|
|
4905
4905
|
}
|
|
4906
4906
|
// -------------------------------------------------------------------------------------------
|
|
@@ -4923,7 +4923,7 @@ class Un extends J {
|
|
|
4923
4923
|
{ leading: !0 }
|
|
4924
4924
|
);
|
|
4925
4925
|
}
|
|
4926
|
-
const
|
|
4926
|
+
const qt = gt(() => ({}));
|
|
4927
4927
|
class j extends J {
|
|
4928
4928
|
static props = {
|
|
4929
4929
|
hidden: !1,
|
|
@@ -4943,13 +4943,13 @@ class j extends J {
|
|
|
4943
4943
|
onSetup() {
|
|
4944
4944
|
this.#t = $();
|
|
4945
4945
|
const t = new Z();
|
|
4946
|
-
t.attach(this), this.$state.focused = t.focused.bind(t), K(
|
|
4946
|
+
t.attach(this), this.$state.focused = t.focused.bind(t), K(qt) || z(qt, {
|
|
4947
4947
|
default: "value"
|
|
4948
4948
|
}), z(Je, {
|
|
4949
4949
|
orientation: this.$props.orientation,
|
|
4950
4950
|
disabled: this.#e.isDisabled,
|
|
4951
4951
|
preview: w(null)
|
|
4952
|
-
}), l(this.#r.bind(this)), l(this.#o.bind(this)), l(this.#h.bind(this)), this.#c(), new
|
|
4952
|
+
}), l(this.#r.bind(this)), l(this.#o.bind(this)), l(this.#h.bind(this)), this.#c(), new Kn(this.#e, this.#t).attach(this), new hi({
|
|
4953
4953
|
callback: this.#a.bind(this)
|
|
4954
4954
|
}).attach(this);
|
|
4955
4955
|
}
|
|
@@ -4957,7 +4957,7 @@ class j extends J {
|
|
|
4957
4957
|
C(t, "role", "slider"), C(t, "tabindex", "0"), C(t, "autocomplete", "off"), l(this.#u.bind(this));
|
|
4958
4958
|
}
|
|
4959
4959
|
onConnect(t) {
|
|
4960
|
-
|
|
4960
|
+
P(Qs(t, this.#s.set)), l(this.#n.bind(this));
|
|
4961
4961
|
}
|
|
4962
4962
|
#a(t) {
|
|
4963
4963
|
this.#i.set(t[0].isIntersecting);
|
|
@@ -4971,7 +4971,7 @@ class j extends J {
|
|
|
4971
4971
|
}
|
|
4972
4972
|
#r() {
|
|
4973
4973
|
const { dragging: t, value: e, min: s, max: i } = this.$state;
|
|
4974
|
-
p(t) || e.set(
|
|
4974
|
+
p(t) || e.set(Gn(s(), i(), e(), this.#e.getStep()));
|
|
4975
4975
|
}
|
|
4976
4976
|
#o() {
|
|
4977
4977
|
this.$state.step.set(this.#e.getStep());
|
|
@@ -4985,7 +4985,7 @@ class j extends J {
|
|
|
4985
4985
|
// ARIA
|
|
4986
4986
|
// -------------------------------------------------------------------------------------------
|
|
4987
4987
|
#l() {
|
|
4988
|
-
return
|
|
4988
|
+
return ue(this.#e.isDisabled());
|
|
4989
4989
|
}
|
|
4990
4990
|
// -------------------------------------------------------------------------------------------
|
|
4991
4991
|
// Attributes
|
|
@@ -5008,18 +5008,18 @@ class j extends J {
|
|
|
5008
5008
|
const { fillPercent: t, pointerPercent: e } = this.$state;
|
|
5009
5009
|
this.#d(V(t(), 3), V(e(), 3));
|
|
5010
5010
|
}
|
|
5011
|
-
#d =
|
|
5011
|
+
#d = Vt((t, e) => {
|
|
5012
5012
|
this.el?.style.setProperty("--slider-fill", t + "%"), this.el?.style.setProperty("--slider-pointer", e + "%");
|
|
5013
5013
|
});
|
|
5014
5014
|
}
|
|
5015
|
-
class
|
|
5015
|
+
class se extends b {
|
|
5016
5016
|
static props = {
|
|
5017
5017
|
...j.props,
|
|
5018
5018
|
min: 0,
|
|
5019
5019
|
max: 100,
|
|
5020
5020
|
value: 0
|
|
5021
5021
|
};
|
|
5022
|
-
static state =
|
|
5022
|
+
static state = Et;
|
|
5023
5023
|
constructor() {
|
|
5024
5024
|
super(), new j({
|
|
5025
5025
|
getStep: this.$props.step,
|
|
@@ -5058,7 +5058,7 @@ class ee extends b {
|
|
|
5058
5058
|
this.$state.min.set(t()), this.$state.max.set(e());
|
|
5059
5059
|
}
|
|
5060
5060
|
}
|
|
5061
|
-
const it = /* @__PURE__ */ new Map(),
|
|
5061
|
+
const it = /* @__PURE__ */ new Map(), oe = /* @__PURE__ */ new Map();
|
|
5062
5062
|
class Ze {
|
|
5063
5063
|
#t;
|
|
5064
5064
|
#e;
|
|
@@ -5085,11 +5085,11 @@ class Ze {
|
|
|
5085
5085
|
this.$images.set(it.get(e));
|
|
5086
5086
|
} else if (S(e)) {
|
|
5087
5087
|
const s = this.#s(), i = e + "::" + s;
|
|
5088
|
-
if (!
|
|
5088
|
+
if (!oe.has(i)) {
|
|
5089
5089
|
const n = new Promise(async (r, o) => {
|
|
5090
5090
|
try {
|
|
5091
5091
|
const h = await fetch(e, {
|
|
5092
|
-
credentials:
|
|
5092
|
+
credentials: Wt(s)
|
|
5093
5093
|
});
|
|
5094
5094
|
if (h.headers.get("content-type") === "application/json") {
|
|
5095
5095
|
const c = await h.json();
|
|
@@ -5099,7 +5099,7 @@ class Ze {
|
|
|
5099
5099
|
else {
|
|
5100
5100
|
for (let u = 0; u < c.length; u++) {
|
|
5101
5101
|
const m = c[u];
|
|
5102
|
-
st(
|
|
5102
|
+
st(ia(m), !1), st(
|
|
5103
5103
|
"url" in m && S(m.url),
|
|
5104
5104
|
!1
|
|
5105
5105
|
), st(
|
|
@@ -5127,11 +5127,11 @@ class Ze {
|
|
|
5127
5127
|
}).then((r) => (it.set(i, r), r)).catch((r) => {
|
|
5128
5128
|
this.#c(e, r);
|
|
5129
5129
|
}).finally(() => {
|
|
5130
|
-
S(i) &&
|
|
5130
|
+
S(i) && oe.delete(i);
|
|
5131
5131
|
});
|
|
5132
|
-
|
|
5132
|
+
oe.set(i, n);
|
|
5133
5133
|
}
|
|
5134
|
-
|
|
5134
|
+
oe.get(i)?.then((n) => {
|
|
5135
5135
|
this.$images.set(n || []);
|
|
5136
5136
|
});
|
|
5137
5137
|
} else if (B(e))
|
|
@@ -5219,13 +5219,13 @@ class Ze {
|
|
|
5219
5219
|
#c(t, e) {
|
|
5220
5220
|
}
|
|
5221
5221
|
}
|
|
5222
|
-
class
|
|
5222
|
+
class Qn extends b {
|
|
5223
5223
|
static props = {
|
|
5224
5224
|
src: null,
|
|
5225
5225
|
time: 0,
|
|
5226
5226
|
crossOrigin: null
|
|
5227
5227
|
};
|
|
5228
|
-
static state = new
|
|
5228
|
+
static state = new yt({
|
|
5229
5229
|
src: "",
|
|
5230
5230
|
img: null,
|
|
5231
5231
|
thumbnails: [],
|
|
@@ -5330,7 +5330,7 @@ class Kn extends b {
|
|
|
5330
5330
|
this.#e = [];
|
|
5331
5331
|
}
|
|
5332
5332
|
}
|
|
5333
|
-
class
|
|
5333
|
+
class li extends b {
|
|
5334
5334
|
static props = {
|
|
5335
5335
|
type: "pointer",
|
|
5336
5336
|
format: null,
|
|
@@ -5344,7 +5344,7 @@ class hi extends b {
|
|
|
5344
5344
|
#e;
|
|
5345
5345
|
#s;
|
|
5346
5346
|
onSetup() {
|
|
5347
|
-
this.#s =
|
|
5347
|
+
this.#s = Dt(se.state), this.#t = q(qt), this.#e = tt(this.getValueText.bind(this));
|
|
5348
5348
|
}
|
|
5349
5349
|
/**
|
|
5350
5350
|
* Returns the current value formatted as text based on prop settings.
|
|
@@ -5362,7 +5362,7 @@ class hi extends b {
|
|
|
5362
5362
|
if (m === "percent") {
|
|
5363
5363
|
const E = u() - c(), I = g / E * 100;
|
|
5364
5364
|
return (this.#t.percent ?? V)(I, s()) + "%";
|
|
5365
|
-
} else return m === "time" ? (this.#t.time ??
|
|
5365
|
+
} else return m === "time" ? (this.#t.time ?? we)(g, {
|
|
5366
5366
|
padHrs: i(),
|
|
5367
5367
|
padMins: n(),
|
|
5368
5368
|
showHrs: r(),
|
|
@@ -5370,9 +5370,9 @@ class hi extends b {
|
|
|
5370
5370
|
}) : (this.#t.value?.(g) ?? g.toFixed(2)) + "";
|
|
5371
5371
|
}
|
|
5372
5372
|
}
|
|
5373
|
-
const
|
|
5374
|
-
_(
|
|
5375
|
-
class
|
|
5373
|
+
const Wn = li.prototype;
|
|
5374
|
+
_(Wn, "getValueText");
|
|
5375
|
+
class zn extends b {
|
|
5376
5376
|
static props = {
|
|
5377
5377
|
offset: 0,
|
|
5378
5378
|
noClamp: !1
|
|
@@ -5380,7 +5380,7 @@ class Wn extends b {
|
|
|
5380
5380
|
#t;
|
|
5381
5381
|
onSetup() {
|
|
5382
5382
|
this.#t = q(Je);
|
|
5383
|
-
const { active: t } =
|
|
5383
|
+
const { active: t } = Dt(se.state);
|
|
5384
5384
|
this.setAttributes({
|
|
5385
5385
|
"data-visible": t
|
|
5386
5386
|
});
|
|
@@ -5395,22 +5395,22 @@ class Wn extends b {
|
|
|
5395
5395
|
}
|
|
5396
5396
|
onConnect(t) {
|
|
5397
5397
|
const { preview: e } = this.#t;
|
|
5398
|
-
e.set(t),
|
|
5398
|
+
e.set(t), P(() => e.set(null)), l(this.#e.bind(this));
|
|
5399
5399
|
const s = new ResizeObserver(this.#e.bind(this));
|
|
5400
|
-
s.observe(t),
|
|
5400
|
+
s.observe(t), P(() => s.disconnect());
|
|
5401
5401
|
}
|
|
5402
|
-
#e =
|
|
5402
|
+
#e = Vt(() => {
|
|
5403
5403
|
const { disabled: t, orientation: e } = this.#t;
|
|
5404
5404
|
if (t()) return;
|
|
5405
5405
|
const s = this.el, { offset: i, noClamp: n } = this.$props;
|
|
5406
|
-
s &&
|
|
5406
|
+
s && jn(s, {
|
|
5407
5407
|
clamp: !n(),
|
|
5408
5408
|
offset: i(),
|
|
5409
5409
|
orientation: e()
|
|
5410
5410
|
});
|
|
5411
5411
|
});
|
|
5412
5412
|
}
|
|
5413
|
-
function
|
|
5413
|
+
function jn(a, {
|
|
5414
5414
|
clamp: t,
|
|
5415
5415
|
offset: e,
|
|
5416
5416
|
orientation: s
|
|
@@ -5440,18 +5440,18 @@ function zn(a, {
|
|
|
5440
5440
|
}
|
|
5441
5441
|
Object.assign(a.style, o);
|
|
5442
5442
|
}
|
|
5443
|
-
class
|
|
5443
|
+
class Yn extends b {
|
|
5444
5444
|
static props = {
|
|
5445
5445
|
...j.props,
|
|
5446
5446
|
keyStep: 5,
|
|
5447
5447
|
shiftKeyMultiplier: 2
|
|
5448
5448
|
};
|
|
5449
|
-
static state =
|
|
5449
|
+
static state = Et;
|
|
5450
5450
|
#t;
|
|
5451
5451
|
onSetup() {
|
|
5452
5452
|
this.#t = $();
|
|
5453
5453
|
const { audioGain: t } = this.#t.$state;
|
|
5454
|
-
z(
|
|
5454
|
+
z(qt, {
|
|
5455
5455
|
default: "percent",
|
|
5456
5456
|
value(e) {
|
|
5457
5457
|
return (e * (t() ?? 1)).toFixed(2);
|
|
@@ -5514,7 +5514,7 @@ class jn extends b {
|
|
|
5514
5514
|
this.#r(t);
|
|
5515
5515
|
}
|
|
5516
5516
|
}
|
|
5517
|
-
let
|
|
5517
|
+
let di = class extends b {
|
|
5518
5518
|
static props = {
|
|
5519
5519
|
...j.props,
|
|
5520
5520
|
step: 0.1,
|
|
@@ -5524,7 +5524,7 @@ let li = class extends b {
|
|
|
5524
5524
|
noSwipeGesture: !1,
|
|
5525
5525
|
seekingRequestThrottle: 100
|
|
5526
5526
|
};
|
|
5527
|
-
static state =
|
|
5527
|
+
static state = Et;
|
|
5528
5528
|
#t;
|
|
5529
5529
|
#e;
|
|
5530
5530
|
#s = w(null);
|
|
@@ -5540,7 +5540,7 @@ let li = class extends b {
|
|
|
5540
5540
|
isDisabled: this.#w.bind(this),
|
|
5541
5541
|
aria: {
|
|
5542
5542
|
valueNow: this.#v.bind(this),
|
|
5543
|
-
valueText: this.#
|
|
5543
|
+
valueText: this.#P.bind(this)
|
|
5544
5544
|
},
|
|
5545
5545
|
onDragStart: this.#u.bind(this),
|
|
5546
5546
|
onDragValueChange: this.#d.bind(this),
|
|
@@ -5549,7 +5549,7 @@ let li = class extends b {
|
|
|
5549
5549
|
});
|
|
5550
5550
|
}
|
|
5551
5551
|
onSetup() {
|
|
5552
|
-
this.#t = $(), z(
|
|
5552
|
+
this.#t = $(), z(qt, {
|
|
5553
5553
|
default: "time",
|
|
5554
5554
|
value: this.#k.bind(this),
|
|
5555
5555
|
time: this.#S.bind(this)
|
|
@@ -5563,7 +5563,7 @@ let li = class extends b {
|
|
|
5563
5563
|
t.setAttribute("data-media-time-slider", ""), C(t, "aria-label", "Seek");
|
|
5564
5564
|
}
|
|
5565
5565
|
onConnect(t) {
|
|
5566
|
-
l(this.#o.bind(this)),
|
|
5566
|
+
l(this.#o.bind(this)), ve(this.#t.textTracks, "chapters", this.#s.set);
|
|
5567
5567
|
}
|
|
5568
5568
|
#i() {
|
|
5569
5569
|
const { bufferedEnd: t, duration: e } = this.#t.$state;
|
|
@@ -5652,9 +5652,9 @@ let li = class extends b {
|
|
|
5652
5652
|
const { value: t } = this.$state;
|
|
5653
5653
|
return Math.round(t());
|
|
5654
5654
|
}
|
|
5655
|
-
#
|
|
5655
|
+
#P() {
|
|
5656
5656
|
const t = this.#f(this.$state.value()), { duration: e } = this.#t.$state;
|
|
5657
|
-
return Number.isFinite(t) ? `${
|
|
5657
|
+
return Number.isFinite(t) ? `${fe(t)} out of ${fe(e())}` : "live";
|
|
5658
5658
|
}
|
|
5659
5659
|
// -------------------------------------------------------------------------------------------
|
|
5660
5660
|
// Format
|
|
@@ -5673,30 +5673,30 @@ let li = class extends b {
|
|
|
5673
5673
|
}
|
|
5674
5674
|
#S(t, e) {
|
|
5675
5675
|
const s = this.#f(t), { live: i, duration: n } = this.#t.$state, r = i() ? s - n() : s;
|
|
5676
|
-
return Number.isFinite(s) ? `${r < 0 ? "-" : ""}${
|
|
5676
|
+
return Number.isFinite(s) ? `${r < 0 ? "-" : ""}${we(Math.abs(r), e)}` : "LIVE";
|
|
5677
5677
|
}
|
|
5678
5678
|
};
|
|
5679
|
-
const D =
|
|
5680
|
-
function
|
|
5681
|
-
const e =
|
|
5679
|
+
const D = gt();
|
|
5680
|
+
function Xn(a, t) {
|
|
5681
|
+
const e = sa(a, t);
|
|
5682
5682
|
for (const { el: s, top: i, left: n } of e)
|
|
5683
5683
|
s.scroll({ top: i, left: n, behavior: t.behavior });
|
|
5684
5684
|
}
|
|
5685
|
-
function
|
|
5686
|
-
|
|
5685
|
+
function Jn(a, t = {}) {
|
|
5686
|
+
Xn(a, {
|
|
5687
5687
|
scrollMode: "if-needed",
|
|
5688
5688
|
block: "center",
|
|
5689
5689
|
inline: "center",
|
|
5690
5690
|
...t
|
|
5691
5691
|
});
|
|
5692
5692
|
}
|
|
5693
|
-
const
|
|
5693
|
+
const Zn = /* @__PURE__ */ [
|
|
5694
5694
|
"a[href]",
|
|
5695
5695
|
"[tabindex]",
|
|
5696
5696
|
"input",
|
|
5697
5697
|
"select",
|
|
5698
5698
|
"button"
|
|
5699
|
-
].map((a) => `${a}:not([aria-hidden='true'])`).join(","),
|
|
5699
|
+
].map((a) => `${a}:not([aria-hidden='true'])`).join(","), tr = /* @__PURE__ */ new Set([
|
|
5700
5700
|
"Escape",
|
|
5701
5701
|
"Tab",
|
|
5702
5702
|
"ArrowUp",
|
|
@@ -5708,7 +5708,7 @@ const Jn = /* @__PURE__ */ [
|
|
|
5708
5708
|
"Enter",
|
|
5709
5709
|
" "
|
|
5710
5710
|
]);
|
|
5711
|
-
class
|
|
5711
|
+
class er {
|
|
5712
5712
|
#t = -1;
|
|
5713
5713
|
#e = null;
|
|
5714
5714
|
#s = [];
|
|
@@ -5720,12 +5720,12 @@ class tr {
|
|
|
5720
5720
|
this.#i = t;
|
|
5721
5721
|
}
|
|
5722
5722
|
attachMenu(t) {
|
|
5723
|
-
O(t, "focus", this.#r.bind(this)), this.#e = t,
|
|
5723
|
+
O(t, "focus", this.#r.bind(this)), this.#e = t, P(() => {
|
|
5724
5724
|
this.#e = null;
|
|
5725
5725
|
});
|
|
5726
5726
|
}
|
|
5727
5727
|
listen() {
|
|
5728
|
-
this.#e && (this.update(), new M(this.#e).add("keyup", this.#h.bind(this)).add("keydown", this.#l.bind(this)),
|
|
5728
|
+
this.#e && (this.update(), new M(this.#e).add("keyup", this.#h.bind(this)).add("keydown", this.#l.bind(this)), P(() => {
|
|
5729
5729
|
this.#t = -1, this.#s = [];
|
|
5730
5730
|
}));
|
|
5731
5731
|
}
|
|
@@ -5736,7 +5736,7 @@ class tr {
|
|
|
5736
5736
|
const e = this.#s[t];
|
|
5737
5737
|
e && requestAnimationFrame(() => {
|
|
5738
5738
|
requestAnimationFrame(() => {
|
|
5739
|
-
|
|
5739
|
+
Jn(e, {
|
|
5740
5740
|
behavior: "smooth",
|
|
5741
5741
|
boundary: (s) => !s.hasAttribute("data-root")
|
|
5742
5742
|
});
|
|
@@ -5760,11 +5760,11 @@ class tr {
|
|
|
5760
5760
|
}
|
|
5761
5761
|
#o(t) {
|
|
5762
5762
|
const e = t.target;
|
|
5763
|
-
if (
|
|
5763
|
+
if (ea(t) && e instanceof Element) {
|
|
5764
5764
|
const s = e.getAttribute("role");
|
|
5765
5765
|
return !/a|input|select|button/.test(e.localName) && !s;
|
|
5766
5766
|
}
|
|
5767
|
-
return
|
|
5767
|
+
return tr.has(t.key);
|
|
5768
5768
|
}
|
|
5769
5769
|
#h(t) {
|
|
5770
5770
|
this.#o(t) && (t.stopPropagation(), t.preventDefault());
|
|
@@ -5803,20 +5803,20 @@ class tr {
|
|
|
5803
5803
|
}
|
|
5804
5804
|
#u() {
|
|
5805
5805
|
if (!this.#e) return [];
|
|
5806
|
-
const t = this.#e.querySelectorAll(
|
|
5806
|
+
const t = this.#e.querySelectorAll(Zn), e = [], s = (i) => i.getAttribute("role") === "menu";
|
|
5807
5807
|
for (const i of t)
|
|
5808
|
-
|
|
5809
|
-
|
|
5808
|
+
St(i) && i.offsetParent !== null && // does not have display: none
|
|
5809
|
+
Ws(this.#e, i, s) && e.push(i);
|
|
5810
5810
|
return e;
|
|
5811
5811
|
}
|
|
5812
5812
|
}
|
|
5813
|
-
var
|
|
5814
|
-
for (var i =
|
|
5813
|
+
var sr = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, ie = (a, t, e, s) => {
|
|
5814
|
+
for (var i = ir(t, e), n = a.length - 1, r; n >= 0; n--)
|
|
5815
5815
|
(r = a[n]) && (i = r(t, e, i) || i);
|
|
5816
|
-
return i &&
|
|
5816
|
+
return i && sr(t, e, i), i;
|
|
5817
5817
|
};
|
|
5818
|
-
let
|
|
5819
|
-
class
|
|
5818
|
+
let ar = 0;
|
|
5819
|
+
class Rt extends b {
|
|
5820
5820
|
static props = {
|
|
5821
5821
|
showDelay: 0
|
|
5822
5822
|
};
|
|
@@ -5847,16 +5847,16 @@ class Dt extends b {
|
|
|
5847
5847
|
constructor() {
|
|
5848
5848
|
super();
|
|
5849
5849
|
const { showDelay: t } = this.$props;
|
|
5850
|
-
this.#c = new
|
|
5850
|
+
this.#c = new oi({
|
|
5851
5851
|
trigger: this.#n,
|
|
5852
5852
|
content: this.#r,
|
|
5853
5853
|
showDelay: t,
|
|
5854
5854
|
listen: (e, s, i) => {
|
|
5855
|
-
|
|
5855
|
+
mt(e, (r) => {
|
|
5856
5856
|
this.#i() ? i(r) : s(r);
|
|
5857
5857
|
});
|
|
5858
5858
|
const n = this.#M();
|
|
5859
|
-
n &&
|
|
5859
|
+
n && mt(n, (r) => {
|
|
5860
5860
|
r.stopPropagation(), i(r);
|
|
5861
5861
|
});
|
|
5862
5862
|
},
|
|
@@ -5865,14 +5865,14 @@ class Dt extends b {
|
|
|
5865
5865
|
}
|
|
5866
5866
|
onSetup() {
|
|
5867
5867
|
this.#t = $();
|
|
5868
|
-
const t = ++
|
|
5869
|
-
this.#e = `media-menu-${t}`, this.#s = `media-menu-button-${t}`, this.#u = new
|
|
5868
|
+
const t = ++ar;
|
|
5869
|
+
this.#e = `media-menu-${t}`, this.#s = `media-menu-button-${t}`, this.#u = new er({
|
|
5870
5870
|
closeMenu: this.close.bind(this)
|
|
5871
5871
|
}), K(D) && (this.#o = q(D)), this.#y(), this.setAttributes({
|
|
5872
5872
|
"data-open": this.#i,
|
|
5873
5873
|
"data-root": !this.isSubmenu,
|
|
5874
5874
|
"data-submenu": this.isSubmenu,
|
|
5875
|
-
"data-disabled": this.#
|
|
5875
|
+
"data-disabled": this.#x.bind(this)
|
|
5876
5876
|
}), z(D, {
|
|
5877
5877
|
button: this.#n,
|
|
5878
5878
|
content: this.#r,
|
|
@@ -5883,10 +5883,10 @@ class Dt extends b {
|
|
|
5883
5883
|
attachMenuButton: this.#b.bind(this),
|
|
5884
5884
|
attachMenuItems: this.#$.bind(this),
|
|
5885
5885
|
attachObserver: this.#w.bind(this),
|
|
5886
|
-
disableMenuButton: this.#
|
|
5886
|
+
disableMenuButton: this.#P.bind(this),
|
|
5887
5887
|
addSubmenu: this.#I.bind(this),
|
|
5888
5888
|
onTransitionEvent: (e) => {
|
|
5889
|
-
this.#m.add(e),
|
|
5889
|
+
this.#m.add(e), P(() => {
|
|
5890
5890
|
this.#m.delete(e);
|
|
5891
5891
|
});
|
|
5892
5892
|
}
|
|
@@ -5902,8 +5902,8 @@ class Dt extends b {
|
|
|
5902
5902
|
this.#n.set(null), this.#r.set(null), this.#l = null, this.#m.clear();
|
|
5903
5903
|
}
|
|
5904
5904
|
#y() {
|
|
5905
|
-
let t = -1, e = K(
|
|
5906
|
-
z(
|
|
5905
|
+
let t = -1, e = K(zt) ? q(zt) : null;
|
|
5906
|
+
z(zt, {
|
|
5907
5907
|
onDragStart: () => {
|
|
5908
5908
|
e?.onDragStart?.(), window.clearTimeout(t), t = -1, this.#d = !0;
|
|
5909
5909
|
},
|
|
@@ -5922,16 +5922,16 @@ class Dt extends b {
|
|
|
5922
5922
|
}), this.#u.listen(), this.listen("pointerup", this.#A.bind(this)), O(window, "pointerup", this.#C.bind(this)));
|
|
5923
5923
|
}
|
|
5924
5924
|
#b(t) {
|
|
5925
|
-
const e = t.el, s = this.isSubmenu, i = N(this.#
|
|
5925
|
+
const e = t.el, s = this.isSubmenu, i = N(this.#x.bind(this));
|
|
5926
5926
|
C(e, "tabindex", s ? "-1" : "0"), C(e, "role", s ? "menuitem" : "button"), f(e, "id", this.#s), f(e, "aria-haspopup", "menu"), f(e, "aria-expanded", "false"), f(e, "data-root", !this.isSubmenu), f(e, "data-submenu", this.isSubmenu), l(() => {
|
|
5927
5927
|
f(e, "data-open", this.#i()), f(e, "aria-disabled", i());
|
|
5928
|
-
}), this.#n.set(e),
|
|
5928
|
+
}), this.#n.set(e), P(() => {
|
|
5929
5929
|
this.#n.set(null);
|
|
5930
5930
|
});
|
|
5931
5931
|
}
|
|
5932
5932
|
#$(t) {
|
|
5933
5933
|
const e = t.el;
|
|
5934
|
-
e.style.setProperty("display", "none"), f(e, "id", this.#e), C(e, "role", "menu"), C(e, "tabindex", "-1"), f(e, "data-root", !this.isSubmenu), f(e, "data-submenu", this.isSubmenu), this.#r.set(e),
|
|
5934
|
+
e.style.setProperty("display", "none"), f(e, "id", this.#e), C(e, "role", "menu"), C(e, "tabindex", "-1"), f(e, "data-root", !this.isSubmenu), f(e, "data-submenu", this.isSubmenu), this.#r.set(e), P(() => this.#r.set(null)), l(() => f(e, "data-open", this.#i())), this.#u.attachMenu(e), this.#v(!1);
|
|
5935
5935
|
const i = this.#B.bind(this);
|
|
5936
5936
|
this.isSubmenu ? this.#o?.onTransitionEvent(i) : (t.listen("transitionstart", i), t.listen("transitionend", i), t.listen("animationend", this.#O), t.listen("vds-menu-resize", this.#O));
|
|
5937
5937
|
}
|
|
@@ -5940,15 +5940,15 @@ class Dt extends b {
|
|
|
5940
5940
|
}
|
|
5941
5941
|
#v(t) {
|
|
5942
5942
|
const e = p(this.#r);
|
|
5943
|
-
e && f(e, "aria-hidden",
|
|
5943
|
+
e && f(e, "aria-hidden", ue(!t));
|
|
5944
5944
|
}
|
|
5945
|
-
#
|
|
5945
|
+
#P(t) {
|
|
5946
5946
|
this.#p.set(t);
|
|
5947
5947
|
}
|
|
5948
5948
|
#f = !1;
|
|
5949
5949
|
#T(t, e) {
|
|
5950
|
-
if (this.#f =
|
|
5951
|
-
if (this.#
|
|
5950
|
+
if (this.#f = Gs(e), e?.stopPropagation(), this.#i() === t) return;
|
|
5951
|
+
if (this.#x()) {
|
|
5952
5952
|
t && this.#c.hide(e);
|
|
5953
5953
|
return;
|
|
5954
5954
|
}
|
|
@@ -5959,7 +5959,7 @@ class Dt extends b {
|
|
|
5959
5959
|
})
|
|
5960
5960
|
);
|
|
5961
5961
|
const s = this.#n(), i = this.#r();
|
|
5962
|
-
if (s && (f(s, "aria-controls", t && this.#e), f(s, "aria-expanded",
|
|
5962
|
+
if (s && (f(s, "aria-controls", t && this.#e), f(s, "aria-expanded", ue(t))), i && f(i, "aria-labelledby", t && this.#s), this.#i.set(t), this.#q(e), rt(), this.#f) {
|
|
5963
5963
|
t ? i?.focus() : s?.focus();
|
|
5964
5964
|
for (const n of [this.el, i])
|
|
5965
5965
|
n && n.setAttribute("data-keyboard", "");
|
|
@@ -5983,9 +5983,9 @@ class Dt extends b {
|
|
|
5983
5983
|
}));
|
|
5984
5984
|
}
|
|
5985
5985
|
#S() {
|
|
5986
|
-
return !this.#
|
|
5986
|
+
return !this.#x() && this.#i();
|
|
5987
5987
|
}
|
|
5988
|
-
#
|
|
5988
|
+
#x() {
|
|
5989
5989
|
return this.#a() || this.#p();
|
|
5990
5990
|
}
|
|
5991
5991
|
#E(t) {
|
|
@@ -6001,13 +6001,13 @@ class Dt extends b {
|
|
|
6001
6001
|
}
|
|
6002
6002
|
#M() {
|
|
6003
6003
|
const t = this.el?.querySelector('[data-part="close-target"]');
|
|
6004
|
-
return this.el && t &&
|
|
6004
|
+
return this.el && t && Ws(this.el, t, (e) => e.getAttribute("role") === "menu") ? t : null;
|
|
6005
6005
|
}
|
|
6006
6006
|
#q(t) {
|
|
6007
6007
|
this.isSubmenu || (this.#i() ? this.#t.remote.pauseControls(t) : this.#t.remote.resumeControls(t));
|
|
6008
6008
|
}
|
|
6009
6009
|
#I(t) {
|
|
6010
|
-
this.#h.add(t), new M(t).add("open", this.#R).add("close", this.#H),
|
|
6010
|
+
this.#h.add(t), new M(t).add("open", this.#R).add("close", this.#H), P(this.#_);
|
|
6011
6011
|
}
|
|
6012
6012
|
#_ = this.#D.bind(this);
|
|
6013
6013
|
#D(t) {
|
|
@@ -6041,19 +6041,19 @@ class Dt extends b {
|
|
|
6041
6041
|
for (const s of e.children)
|
|
6042
6042
|
s.removeAttribute("data-open"), s.removeAttribute("data-hidden");
|
|
6043
6043
|
}
|
|
6044
|
-
#O =
|
|
6044
|
+
#O = Vt(() => {
|
|
6045
6045
|
const t = p(this.#r);
|
|
6046
6046
|
if (!t) return;
|
|
6047
6047
|
let e = 0, s = getComputedStyle(t), i = [...t.children];
|
|
6048
6048
|
for (const n of ["paddingTop", "paddingBottom", "borderTopWidth", "borderBottomWidth"])
|
|
6049
6049
|
e += parseFloat(s[n]) || 0;
|
|
6050
6050
|
for (const n of i)
|
|
6051
|
-
if (
|
|
6051
|
+
if (St(n) && n.style.display === "contents")
|
|
6052
6052
|
i.push(...n.children);
|
|
6053
6053
|
else if (n.nodeType === 3)
|
|
6054
6054
|
e += parseFloat(getComputedStyle(n).fontSize);
|
|
6055
|
-
else if (
|
|
6056
|
-
if (!
|
|
6055
|
+
else if (St(n)) {
|
|
6056
|
+
if (!Ks(n)) continue;
|
|
6057
6057
|
const r = getComputedStyle(n);
|
|
6058
6058
|
e += n.offsetHeight + (parseFloat(r.marginTop) || 0) + (parseFloat(r.marginBottom) || 0);
|
|
6059
6059
|
}
|
|
@@ -6072,21 +6072,21 @@ class Dt extends b {
|
|
|
6072
6072
|
p(this.#i) && (this.#c.hide(t), rt());
|
|
6073
6073
|
}
|
|
6074
6074
|
}
|
|
6075
|
-
|
|
6075
|
+
ie([
|
|
6076
6076
|
T
|
|
6077
|
-
],
|
|
6078
|
-
|
|
6077
|
+
], Rt.prototype, "triggerElement");
|
|
6078
|
+
ie([
|
|
6079
6079
|
T
|
|
6080
|
-
],
|
|
6081
|
-
|
|
6080
|
+
], Rt.prototype, "contentElement");
|
|
6081
|
+
ie([
|
|
6082
6082
|
T
|
|
6083
|
-
],
|
|
6084
|
-
|
|
6083
|
+
], Rt.prototype, "isSubmenu");
|
|
6084
|
+
ie([
|
|
6085
6085
|
_
|
|
6086
|
-
],
|
|
6087
|
-
|
|
6086
|
+
], Rt.prototype, "open");
|
|
6087
|
+
ie([
|
|
6088
6088
|
_
|
|
6089
|
-
],
|
|
6089
|
+
], Rt.prototype, "close");
|
|
6090
6090
|
class ts extends b {
|
|
6091
6091
|
static props = {
|
|
6092
6092
|
disabled: !1
|
|
@@ -6108,7 +6108,7 @@ class ts extends b {
|
|
|
6108
6108
|
onConnect(t) {
|
|
6109
6109
|
l(this.#i.bind(this)), this.#a();
|
|
6110
6110
|
const e = new MutationObserver(this.#a.bind(this));
|
|
6111
|
-
e.observe(t, { attributeFilter: ["data-part"], childList: !0, subtree: !0 }),
|
|
6111
|
+
e.observe(t, { attributeFilter: ["data-part"], childList: !0, subtree: !0 }), P(() => e.disconnect()), mt(t, (s) => {
|
|
6112
6112
|
this.dispatch("select", { trigger: s });
|
|
6113
6113
|
});
|
|
6114
6114
|
}
|
|
@@ -6127,11 +6127,11 @@ class ts extends b {
|
|
|
6127
6127
|
this.#e.set(t ?? null);
|
|
6128
6128
|
}
|
|
6129
6129
|
}
|
|
6130
|
-
const
|
|
6131
|
-
T(
|
|
6132
|
-
class
|
|
6130
|
+
const nr = ts.prototype;
|
|
6131
|
+
T(nr, "expanded");
|
|
6132
|
+
class rr extends ts {
|
|
6133
6133
|
}
|
|
6134
|
-
class
|
|
6134
|
+
class or extends b {
|
|
6135
6135
|
static props = {
|
|
6136
6136
|
container: null,
|
|
6137
6137
|
disabled: !1
|
|
@@ -6139,7 +6139,7 @@ class rr extends b {
|
|
|
6139
6139
|
#t = null;
|
|
6140
6140
|
#e;
|
|
6141
6141
|
onSetup() {
|
|
6142
|
-
this.#e = $(), z(
|
|
6142
|
+
this.#e = $(), z(de, {
|
|
6143
6143
|
attach: this.#s.bind(this)
|
|
6144
6144
|
});
|
|
6145
6145
|
}
|
|
@@ -6171,11 +6171,11 @@ class rr extends b {
|
|
|
6171
6171
|
f(this.#t, "data-portal", t), t ? s || (this.#t.remove(), e.append(this.#t)) : s && this.#t.parentElement === e && (this.#t.remove(), this.el?.append(this.#t));
|
|
6172
6172
|
}
|
|
6173
6173
|
#n(t) {
|
|
6174
|
-
return
|
|
6174
|
+
return St(t) ? t : t ? document.querySelector(t) : document.body;
|
|
6175
6175
|
}
|
|
6176
6176
|
}
|
|
6177
|
-
const
|
|
6178
|
-
class
|
|
6177
|
+
const de = gt();
|
|
6178
|
+
class hr extends b {
|
|
6179
6179
|
static props = {
|
|
6180
6180
|
placement: null,
|
|
6181
6181
|
offset: 0,
|
|
@@ -6190,9 +6190,9 @@ class or extends b {
|
|
|
6190
6190
|
});
|
|
6191
6191
|
}
|
|
6192
6192
|
onAttach(t) {
|
|
6193
|
-
if (this.#t = q(D), this.#t.attachMenuItems(this), K(
|
|
6194
|
-
const e = q(
|
|
6195
|
-
e && (z(
|
|
6193
|
+
if (this.#t = q(D), this.#t.attachMenuItems(this), K(de)) {
|
|
6194
|
+
const e = q(de);
|
|
6195
|
+
e && (z(de, null), e.attach(t), P(() => e.attach(null)));
|
|
6196
6196
|
}
|
|
6197
6197
|
}
|
|
6198
6198
|
onConnect(t) {
|
|
@@ -6210,13 +6210,13 @@ class or extends b {
|
|
|
6210
6210
|
width: "max-content"
|
|
6211
6211
|
});
|
|
6212
6212
|
const { offset: s, alignOffset: i } = this.$props;
|
|
6213
|
-
|
|
6214
|
-
|
|
6213
|
+
P(
|
|
6214
|
+
Ys(this.el, this.#i(), e, {
|
|
6215
6215
|
offsetVarName: "media-menu",
|
|
6216
6216
|
xOffset: i(),
|
|
6217
6217
|
yOffset: s()
|
|
6218
6218
|
})
|
|
6219
|
-
),
|
|
6219
|
+
), P(this.#s.bind(this));
|
|
6220
6220
|
}
|
|
6221
6221
|
#s() {
|
|
6222
6222
|
this.el && (this.el.removeAttribute("style"), this.el.style.display = "none");
|
|
@@ -6225,8 +6225,8 @@ class or extends b {
|
|
|
6225
6225
|
return this.#t.button();
|
|
6226
6226
|
}
|
|
6227
6227
|
}
|
|
6228
|
-
const Fe =
|
|
6229
|
-
class
|
|
6228
|
+
const Fe = gt();
|
|
6229
|
+
class At extends J {
|
|
6230
6230
|
#t = /* @__PURE__ */ new Set();
|
|
6231
6231
|
#e = w("");
|
|
6232
6232
|
#s = null;
|
|
@@ -6271,7 +6271,7 @@ class Et extends J {
|
|
|
6271
6271
|
return null;
|
|
6272
6272
|
}
|
|
6273
6273
|
}
|
|
6274
|
-
class
|
|
6274
|
+
class ci extends b {
|
|
6275
6275
|
static props = {
|
|
6276
6276
|
value: ""
|
|
6277
6277
|
};
|
|
@@ -6302,10 +6302,10 @@ class di extends b {
|
|
|
6302
6302
|
C(t, "tabindex", e ? "-1" : "0"), C(t, "role", e ? "menuitemradio" : "radio"), l(this.#a.bind(this));
|
|
6303
6303
|
}
|
|
6304
6304
|
onConnect(t) {
|
|
6305
|
-
this.#i(),
|
|
6305
|
+
this.#i(), mt(t, this.#n.bind(this)), P(this.#s.bind(this));
|
|
6306
6306
|
}
|
|
6307
6307
|
#s() {
|
|
6308
|
-
|
|
6308
|
+
te(() => {
|
|
6309
6309
|
q(Fe).remove(this.#e);
|
|
6310
6310
|
}, this.connectScope);
|
|
6311
6311
|
}
|
|
@@ -6329,9 +6329,9 @@ class di extends b {
|
|
|
6329
6329
|
this.dispatch("select", { trigger: t });
|
|
6330
6330
|
}
|
|
6331
6331
|
}
|
|
6332
|
-
const
|
|
6333
|
-
T(
|
|
6334
|
-
class
|
|
6332
|
+
const lr = ci.prototype;
|
|
6333
|
+
T(lr, "checked");
|
|
6334
|
+
class ui extends b {
|
|
6335
6335
|
static props = {
|
|
6336
6336
|
emptyLabel: "Default"
|
|
6337
6337
|
};
|
|
@@ -6346,7 +6346,7 @@ class ci extends b {
|
|
|
6346
6346
|
return t().length <= 1;
|
|
6347
6347
|
}
|
|
6348
6348
|
constructor() {
|
|
6349
|
-
super(), this.#s = new
|
|
6349
|
+
super(), this.#s = new At(), this.#s.onValueChange = this.#o.bind(this);
|
|
6350
6350
|
}
|
|
6351
6351
|
onSetup() {
|
|
6352
6352
|
this.#e = $(), K(D) && (this.#t = q(D));
|
|
@@ -6385,11 +6385,11 @@ class ci extends b {
|
|
|
6385
6385
|
}
|
|
6386
6386
|
}
|
|
6387
6387
|
}
|
|
6388
|
-
const es =
|
|
6388
|
+
const es = ui.prototype;
|
|
6389
6389
|
T(es, "value");
|
|
6390
6390
|
T(es, "disabled");
|
|
6391
6391
|
_(es, "getOptions");
|
|
6392
|
-
class
|
|
6392
|
+
class pi extends b {
|
|
6393
6393
|
static props = {
|
|
6394
6394
|
offLabel: "Off"
|
|
6395
6395
|
};
|
|
@@ -6404,7 +6404,7 @@ class ui extends b {
|
|
|
6404
6404
|
return !t();
|
|
6405
6405
|
}
|
|
6406
6406
|
constructor() {
|
|
6407
|
-
super(), this.#s = new
|
|
6407
|
+
super(), this.#s = new At(), this.#s.onValueChange = this.#o.bind(this);
|
|
6408
6408
|
}
|
|
6409
6409
|
onSetup() {
|
|
6410
6410
|
this.#t = $(), K(D) && (this.#e = q(D));
|
|
@@ -6459,15 +6459,15 @@ class ui extends b {
|
|
|
6459
6459
|
return t.id + ":" + t.kind + "-" + t.label.toLowerCase();
|
|
6460
6460
|
}
|
|
6461
6461
|
}
|
|
6462
|
-
const ss =
|
|
6462
|
+
const ss = pi.prototype;
|
|
6463
6463
|
T(ss, "value");
|
|
6464
6464
|
T(ss, "disabled");
|
|
6465
6465
|
_(ss, "getOptions");
|
|
6466
|
-
const
|
|
6467
|
-
class
|
|
6466
|
+
const dr = [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2];
|
|
6467
|
+
class mi extends b {
|
|
6468
6468
|
static props = {
|
|
6469
6469
|
normalLabel: "Normal",
|
|
6470
|
-
rates:
|
|
6470
|
+
rates: dr
|
|
6471
6471
|
};
|
|
6472
6472
|
#t;
|
|
6473
6473
|
#e;
|
|
@@ -6480,7 +6480,7 @@ class pi extends b {
|
|
|
6480
6480
|
return !e() || t().length === 0;
|
|
6481
6481
|
}
|
|
6482
6482
|
constructor() {
|
|
6483
|
-
super(), this.#s = new
|
|
6483
|
+
super(), this.#s = new At(), this.#s.onValueChange = this.#o.bind(this);
|
|
6484
6484
|
}
|
|
6485
6485
|
onSetup() {
|
|
6486
6486
|
this.#t = $(), K(D) && (this.#e = q(D));
|
|
@@ -6515,11 +6515,11 @@ class pi extends b {
|
|
|
6515
6515
|
this.#t.remote.changePlaybackRate(s, e), this.dispatch("change", { detail: s, trigger: e });
|
|
6516
6516
|
}
|
|
6517
6517
|
}
|
|
6518
|
-
const is =
|
|
6518
|
+
const is = mi.prototype;
|
|
6519
6519
|
T(is, "value");
|
|
6520
6520
|
T(is, "disabled");
|
|
6521
6521
|
_(is, "getOptions");
|
|
6522
|
-
class
|
|
6522
|
+
class fi extends b {
|
|
6523
6523
|
static props = {
|
|
6524
6524
|
autoLabel: "Auto",
|
|
6525
6525
|
hideBitrate: !1,
|
|
@@ -6537,10 +6537,10 @@ class mi extends b {
|
|
|
6537
6537
|
}
|
|
6538
6538
|
#i = tt(() => {
|
|
6539
6539
|
const { sort: t } = this.$props, { qualities: e } = this.#t.$state;
|
|
6540
|
-
return
|
|
6540
|
+
return ni(e(), t() === "descending");
|
|
6541
6541
|
});
|
|
6542
6542
|
constructor() {
|
|
6543
|
-
super(), this.#s = new
|
|
6543
|
+
super(), this.#s = new At(), this.#s.onValueChange = this.#o.bind(this);
|
|
6544
6544
|
}
|
|
6545
6545
|
onSetup() {
|
|
6546
6546
|
this.#t = $(), K(D) && (this.#e = q(D));
|
|
@@ -6597,11 +6597,11 @@ class mi extends b {
|
|
|
6597
6597
|
return t.height + "_" + t.bitrate;
|
|
6598
6598
|
}
|
|
6599
6599
|
}
|
|
6600
|
-
const as =
|
|
6600
|
+
const as = fi.prototype;
|
|
6601
6601
|
T(as, "value");
|
|
6602
6602
|
T(as, "disabled");
|
|
6603
6603
|
_(as, "getOptions");
|
|
6604
|
-
class
|
|
6604
|
+
class cr extends b {
|
|
6605
6605
|
static props = {
|
|
6606
6606
|
type: "current",
|
|
6607
6607
|
showHours: !1,
|
|
@@ -6611,7 +6611,7 @@ class dr extends b {
|
|
|
6611
6611
|
toggle: !1,
|
|
6612
6612
|
hidden: !1
|
|
6613
6613
|
};
|
|
6614
|
-
static state = new
|
|
6614
|
+
static state = new yt({
|
|
6615
6615
|
timeText: "",
|
|
6616
6616
|
hidden: !1
|
|
6617
6617
|
});
|
|
@@ -6625,7 +6625,7 @@ class dr extends b {
|
|
|
6625
6625
|
this.setAttributes({
|
|
6626
6626
|
"data-type": t,
|
|
6627
6627
|
"data-remainder": this.#c.bind(this)
|
|
6628
|
-
}), new
|
|
6628
|
+
}), new hi({
|
|
6629
6629
|
callback: this.#a.bind(this)
|
|
6630
6630
|
}).attach(this);
|
|
6631
6631
|
}
|
|
@@ -6633,7 +6633,7 @@ class dr extends b {
|
|
|
6633
6633
|
t.hasAttribute("role") || l(this.#h.bind(this)), l(this.#o.bind(this));
|
|
6634
6634
|
}
|
|
6635
6635
|
onConnect(t) {
|
|
6636
|
-
|
|
6636
|
+
P(Qs(t, this.#s.set)), l(this.#n.bind(this)), l(this.#r.bind(this));
|
|
6637
6637
|
}
|
|
6638
6638
|
#a(t) {
|
|
6639
6639
|
this.#i.set(t[0].isIntersecting);
|
|
@@ -6647,7 +6647,7 @@ class dr extends b {
|
|
|
6647
6647
|
this.#e.set(null);
|
|
6648
6648
|
return;
|
|
6649
6649
|
}
|
|
6650
|
-
this.el &&
|
|
6650
|
+
this.el && mt(this.el, this.#u.bind(this));
|
|
6651
6651
|
}
|
|
6652
6652
|
#o() {
|
|
6653
6653
|
const { hidden: t, timeText: e } = this.$state, { duration: s } = this.#t.$state;
|
|
@@ -6657,7 +6657,7 @@ class dr extends b {
|
|
|
6657
6657
|
e.set("LIVE");
|
|
6658
6658
|
return;
|
|
6659
6659
|
}
|
|
6660
|
-
const u = c ? Math.max(0, d - h) : h, m =
|
|
6660
|
+
const u = c ? Math.max(0, d - h) : h, m = we(u, {
|
|
6661
6661
|
padHrs: n(),
|
|
6662
6662
|
padMins: r(),
|
|
6663
6663
|
showHrs: o()
|
|
@@ -6691,11 +6691,11 @@ class dr extends b {
|
|
|
6691
6691
|
this.#e.set((e) => !e);
|
|
6692
6692
|
}
|
|
6693
6693
|
}
|
|
6694
|
-
class
|
|
6694
|
+
class ur extends b {
|
|
6695
6695
|
static props = {
|
|
6696
6696
|
translations: null
|
|
6697
6697
|
};
|
|
6698
|
-
static state = new
|
|
6698
|
+
static state = new yt({
|
|
6699
6699
|
label: null,
|
|
6700
6700
|
busy: !1
|
|
6701
6701
|
});
|
|
@@ -6744,7 +6744,7 @@ class cr extends b {
|
|
|
6744
6744
|
if (!this.scope) return;
|
|
6745
6745
|
const i = p(e), n = Math.abs(i - this.#o);
|
|
6746
6746
|
if (n >= 1) {
|
|
6747
|
-
const r = i >= this.#o, o =
|
|
6747
|
+
const r = i >= this.#o, o = fe(n);
|
|
6748
6748
|
this.#d(
|
|
6749
6749
|
`${this.#c(r ? "Seek Forward" : "Seek Backward")} ${o}`
|
|
6750
6750
|
);
|
|
@@ -6770,7 +6770,7 @@ class cr extends b {
|
|
|
6770
6770
|
e.set(t);
|
|
6771
6771
|
}
|
|
6772
6772
|
}
|
|
6773
|
-
class
|
|
6773
|
+
class pr extends b {
|
|
6774
6774
|
static props = {
|
|
6775
6775
|
hideDelay: 2e3,
|
|
6776
6776
|
hideOnMouseLeave: !1
|
|
@@ -6807,31 +6807,31 @@ class ur extends b {
|
|
|
6807
6807
|
return t();
|
|
6808
6808
|
}
|
|
6809
6809
|
}
|
|
6810
|
-
let
|
|
6810
|
+
let mr = class extends b {
|
|
6811
6811
|
onAttach(t) {
|
|
6812
6812
|
t.style.pointerEvents || W(t, "pointer-events", "auto");
|
|
6813
6813
|
}
|
|
6814
6814
|
};
|
|
6815
|
-
const
|
|
6816
|
-
let
|
|
6817
|
-
class
|
|
6815
|
+
const wt = gt();
|
|
6816
|
+
let fr = 0;
|
|
6817
|
+
class gr extends b {
|
|
6818
6818
|
static props = {
|
|
6819
6819
|
showDelay: 700
|
|
6820
6820
|
};
|
|
6821
|
-
#t = `media-tooltip-${++
|
|
6821
|
+
#t = `media-tooltip-${++fr}`;
|
|
6822
6822
|
#e = w(null);
|
|
6823
6823
|
#s = w(null);
|
|
6824
6824
|
#i = w(!1);
|
|
6825
6825
|
constructor() {
|
|
6826
6826
|
super(), new Z();
|
|
6827
6827
|
const { showDelay: t } = this.$props;
|
|
6828
|
-
new
|
|
6828
|
+
new oi({
|
|
6829
6829
|
trigger: this.#e,
|
|
6830
6830
|
content: this.#s,
|
|
6831
6831
|
showDelay: t,
|
|
6832
6832
|
listen(e, s, i) {
|
|
6833
6833
|
l(() => {
|
|
6834
|
-
|
|
6834
|
+
me() && O(e, "focus", s), O(e, "blur", i);
|
|
6835
6835
|
}), new M(e).add("touchstart", (n) => n.preventDefault(), { passive: !1 }).add("mouseenter", s).add("mouseleave", i);
|
|
6836
6836
|
},
|
|
6837
6837
|
onChange: this.#h.bind(this)
|
|
@@ -6841,7 +6841,7 @@ class fr extends b {
|
|
|
6841
6841
|
t.style.setProperty("display", "contents");
|
|
6842
6842
|
}
|
|
6843
6843
|
onSetup() {
|
|
6844
|
-
z(
|
|
6844
|
+
z(wt, {
|
|
6845
6845
|
trigger: this.#e,
|
|
6846
6846
|
content: this.#s,
|
|
6847
6847
|
showing: this.#i,
|
|
@@ -6873,17 +6873,17 @@ class fr extends b {
|
|
|
6873
6873
|
this.#i.set(t);
|
|
6874
6874
|
}
|
|
6875
6875
|
}
|
|
6876
|
-
class
|
|
6876
|
+
class yr extends b {
|
|
6877
6877
|
constructor() {
|
|
6878
6878
|
super(), new Z();
|
|
6879
6879
|
}
|
|
6880
6880
|
onConnect(t) {
|
|
6881
|
-
|
|
6881
|
+
P(
|
|
6882
6882
|
ht(() => {
|
|
6883
6883
|
if (!this.connectScope) return;
|
|
6884
6884
|
this.#t();
|
|
6885
|
-
const e = q(
|
|
6886
|
-
|
|
6885
|
+
const e = q(wt);
|
|
6886
|
+
P(() => {
|
|
6887
6887
|
const s = this.#e();
|
|
6888
6888
|
s && e.detachTrigger(s);
|
|
6889
6889
|
});
|
|
@@ -6891,7 +6891,7 @@ class gr extends b {
|
|
|
6891
6891
|
);
|
|
6892
6892
|
}
|
|
6893
6893
|
#t() {
|
|
6894
|
-
const t = this.#e(), e = q(
|
|
6894
|
+
const t = this.#e(), e = q(wt);
|
|
6895
6895
|
t && e.attachTrigger(t);
|
|
6896
6896
|
}
|
|
6897
6897
|
#e() {
|
|
@@ -6899,7 +6899,7 @@ class gr extends b {
|
|
|
6899
6899
|
return t?.localName === "button" || t?.getAttribute("role") === "button" ? t : this.el;
|
|
6900
6900
|
}
|
|
6901
6901
|
}
|
|
6902
|
-
class
|
|
6902
|
+
class br extends b {
|
|
6903
6903
|
static props = {
|
|
6904
6904
|
placement: "top center",
|
|
6905
6905
|
offset: 0,
|
|
@@ -6922,31 +6922,31 @@ class yr extends b {
|
|
|
6922
6922
|
}
|
|
6923
6923
|
onConnect(t) {
|
|
6924
6924
|
this.#t(t);
|
|
6925
|
-
const e = q(
|
|
6926
|
-
|
|
6925
|
+
const e = q(wt);
|
|
6926
|
+
P(() => e.detachContent(t)), P(
|
|
6927
6927
|
ht(() => {
|
|
6928
6928
|
this.connectScope && l(this.#e.bind(this));
|
|
6929
6929
|
})
|
|
6930
6930
|
);
|
|
6931
6931
|
}
|
|
6932
6932
|
#t(t) {
|
|
6933
|
-
q(
|
|
6933
|
+
q(wt).attachContent(t);
|
|
6934
6934
|
}
|
|
6935
6935
|
#e() {
|
|
6936
|
-
const { showing: t } = q(
|
|
6936
|
+
const { showing: t } = q(wt);
|
|
6937
6937
|
if (!t()) return;
|
|
6938
6938
|
const { placement: e, offset: s, alignOffset: i } = this.$props;
|
|
6939
|
-
return
|
|
6939
|
+
return Ys(this.el, this.#s(), e(), {
|
|
6940
6940
|
offsetVarName: "media-tooltip",
|
|
6941
6941
|
xOffset: i(),
|
|
6942
6942
|
yOffset: s()
|
|
6943
6943
|
});
|
|
6944
6944
|
}
|
|
6945
6945
|
#s() {
|
|
6946
|
-
return q(
|
|
6946
|
+
return q(wt).trigger();
|
|
6947
6947
|
}
|
|
6948
6948
|
}
|
|
6949
|
-
let
|
|
6949
|
+
let gi = class extends b {
|
|
6950
6950
|
static props = {
|
|
6951
6951
|
disabled: !1,
|
|
6952
6952
|
defaultPressed: !1
|
|
@@ -6964,9 +6964,9 @@ let fi = class extends b {
|
|
|
6964
6964
|
});
|
|
6965
6965
|
}
|
|
6966
6966
|
};
|
|
6967
|
-
const
|
|
6968
|
-
T(
|
|
6969
|
-
class
|
|
6967
|
+
const vr = gi.prototype;
|
|
6968
|
+
T(vr, "pressed");
|
|
6969
|
+
class $r extends b {
|
|
6970
6970
|
static props = F.props;
|
|
6971
6971
|
#t;
|
|
6972
6972
|
constructor() {
|
|
@@ -6986,7 +6986,7 @@ class vr extends b {
|
|
|
6986
6986
|
});
|
|
6987
6987
|
}
|
|
6988
6988
|
onAttach(t) {
|
|
6989
|
-
t.setAttribute("data-media-tooltip", "google-cast"),
|
|
6989
|
+
t.setAttribute("data-media-tooltip", "google-cast"), bt(t, this.#a.bind(this));
|
|
6990
6990
|
}
|
|
6991
6991
|
#e(t) {
|
|
6992
6992
|
this.#t.remote.requestGoogleCast(t);
|
|
@@ -7004,12 +7004,12 @@ class vr extends b {
|
|
|
7004
7004
|
return `Google Cast ${t()}`;
|
|
7005
7005
|
}
|
|
7006
7006
|
}
|
|
7007
|
-
class
|
|
7007
|
+
class yi extends b {
|
|
7008
7008
|
static props = {
|
|
7009
7009
|
src: null,
|
|
7010
7010
|
crossOrigin: null
|
|
7011
7011
|
};
|
|
7012
|
-
static state = new
|
|
7012
|
+
static state = new yt({
|
|
7013
7013
|
video: null,
|
|
7014
7014
|
src: null,
|
|
7015
7015
|
crossOrigin: null,
|
|
@@ -7023,7 +7023,7 @@ class gi extends b {
|
|
|
7023
7023
|
return this.$state.video();
|
|
7024
7024
|
}
|
|
7025
7025
|
onSetup() {
|
|
7026
|
-
this.#t = $(), this.#e =
|
|
7026
|
+
this.#t = $(), this.#e = Dt(se.state), this.#a(), this.setAttributes({
|
|
7027
7027
|
"data-loading": this.#n.bind(this),
|
|
7028
7028
|
"data-hidden": this.$state.hidden,
|
|
7029
7029
|
"data-error": this.#r.bind(this),
|
|
@@ -7074,9 +7074,9 @@ class gi extends b {
|
|
|
7074
7074
|
e() && n && Number.isFinite(s()) && Number.isFinite(i()) && (n.currentTime = i() * s());
|
|
7075
7075
|
}
|
|
7076
7076
|
}
|
|
7077
|
-
const
|
|
7078
|
-
T(
|
|
7079
|
-
class
|
|
7077
|
+
const wr = yi.prototype;
|
|
7078
|
+
T(wr, "video");
|
|
7079
|
+
class Tr extends b {
|
|
7080
7080
|
static props = {
|
|
7081
7081
|
...j.props,
|
|
7082
7082
|
step: 25,
|
|
@@ -7085,10 +7085,10 @@ class wr extends b {
|
|
|
7085
7085
|
min: 0,
|
|
7086
7086
|
max: 300
|
|
7087
7087
|
};
|
|
7088
|
-
static state =
|
|
7088
|
+
static state = Et;
|
|
7089
7089
|
#t;
|
|
7090
7090
|
onSetup() {
|
|
7091
|
-
this.#t = $(), z(
|
|
7091
|
+
this.#t = $(), z(qt, {
|
|
7092
7092
|
default: "percent",
|
|
7093
7093
|
percent: (t, e) => V(this.$state.value(), e) + "%"
|
|
7094
7094
|
}), new j({
|
|
@@ -7144,7 +7144,7 @@ class wr extends b {
|
|
|
7144
7144
|
this.#r(t);
|
|
7145
7145
|
}
|
|
7146
7146
|
}
|
|
7147
|
-
class
|
|
7147
|
+
class kr extends b {
|
|
7148
7148
|
static props = {
|
|
7149
7149
|
...j.props,
|
|
7150
7150
|
step: 0.25,
|
|
@@ -7153,7 +7153,7 @@ class Tr extends b {
|
|
|
7153
7153
|
min: 0,
|
|
7154
7154
|
max: 2
|
|
7155
7155
|
};
|
|
7156
|
-
static state =
|
|
7156
|
+
static state = Et;
|
|
7157
7157
|
#t;
|
|
7158
7158
|
onSetup() {
|
|
7159
7159
|
this.#t = $(), new j({
|
|
@@ -7213,18 +7213,18 @@ class Tr extends b {
|
|
|
7213
7213
|
this.#o(t);
|
|
7214
7214
|
}
|
|
7215
7215
|
}
|
|
7216
|
-
class
|
|
7216
|
+
class Sr extends b {
|
|
7217
7217
|
static props = {
|
|
7218
7218
|
...j.props,
|
|
7219
7219
|
step: 1,
|
|
7220
7220
|
keyStep: 1,
|
|
7221
7221
|
shiftKeyMultiplier: 1
|
|
7222
7222
|
};
|
|
7223
|
-
static state =
|
|
7223
|
+
static state = Et;
|
|
7224
7224
|
#t;
|
|
7225
7225
|
#e = tt(() => {
|
|
7226
7226
|
const { qualities: t } = this.#t.$state;
|
|
7227
|
-
return
|
|
7227
|
+
return ni(t());
|
|
7228
7228
|
});
|
|
7229
7229
|
onSetup() {
|
|
7230
7230
|
this.#t = $(), new j({
|
|
@@ -7283,7 +7283,7 @@ class kr extends b {
|
|
|
7283
7283
|
this.#o(t);
|
|
7284
7284
|
}
|
|
7285
7285
|
}
|
|
7286
|
-
class
|
|
7286
|
+
class bi extends b {
|
|
7287
7287
|
static props = {
|
|
7288
7288
|
disabled: !1
|
|
7289
7289
|
};
|
|
@@ -7307,13 +7307,13 @@ class yi extends b {
|
|
|
7307
7307
|
return this.#r()[this.#h()] || null;
|
|
7308
7308
|
}
|
|
7309
7309
|
onSetup() {
|
|
7310
|
-
this.#t = $(), this.#e =
|
|
7310
|
+
this.#t = $(), this.#e = Dt(di.state);
|
|
7311
7311
|
}
|
|
7312
7312
|
onAttach(t) {
|
|
7313
|
-
|
|
7313
|
+
ve(this.#t.textTracks, "chapters", this.#c.bind(this)), l(this.#E.bind(this));
|
|
7314
7314
|
}
|
|
7315
7315
|
onConnect() {
|
|
7316
|
-
|
|
7316
|
+
P(() => this.#u.bind(this));
|
|
7317
7317
|
}
|
|
7318
7318
|
onDestroy() {
|
|
7319
7319
|
this.#c(null);
|
|
@@ -7322,7 +7322,7 @@ class yi extends b {
|
|
|
7322
7322
|
if (this.#a = t, this.#s?.dispose(), this.#a.length === 1) {
|
|
7323
7323
|
const e = this.#a[0];
|
|
7324
7324
|
e.style.width = "100%", e.style.setProperty("--chapter-fill", "var(--slider-fill)"), e.style.setProperty("--chapter-progress", "var(--slider-progress)");
|
|
7325
|
-
} else this.#a.length > 0 &&
|
|
7325
|
+
} else this.#a.length > 0 && te(() => this.#d(), this.#s = aa());
|
|
7326
7326
|
}
|
|
7327
7327
|
#c(t) {
|
|
7328
7328
|
p(this.#n) !== t && (this.#u(), this.#n.set(t));
|
|
@@ -7386,9 +7386,9 @@ class yi extends b {
|
|
|
7386
7386
|
return 0;
|
|
7387
7387
|
}
|
|
7388
7388
|
#v() {
|
|
7389
|
-
this.#
|
|
7389
|
+
this.#P(this.#f());
|
|
7390
7390
|
}
|
|
7391
|
-
#
|
|
7391
|
+
#P = Vt((t) => {
|
|
7392
7392
|
let e, s = this.#r(), { seekableStart: i } = this.#t.$state, n = i(), r = this.#k(s);
|
|
7393
7393
|
for (let o = this.#l; o < this.#a.length; o++)
|
|
7394
7394
|
if (e = this.#S(s[o], t, n, r), this.#a[o]?.style.setProperty("--chapter-progress", e + "%"), e < 100) {
|
|
@@ -7416,7 +7416,7 @@ class yi extends b {
|
|
|
7416
7416
|
)
|
|
7417
7417
|
);
|
|
7418
7418
|
}
|
|
7419
|
-
#
|
|
7419
|
+
#x(t) {
|
|
7420
7420
|
let e = [], { seekableStart: s, seekableEnd: i, duration: n } = this.#t.$state, r = s(), o = i();
|
|
7421
7421
|
t = t.filter((c) => c.startTime <= o && c.endTime >= r);
|
|
7422
7422
|
const h = t[0];
|
|
@@ -7462,7 +7462,7 @@ class yi extends b {
|
|
|
7462
7462
|
#M = Ke(
|
|
7463
7463
|
() => {
|
|
7464
7464
|
const t = p(this.#n);
|
|
7465
|
-
!this.scope || !t || !t.cues.length || (this.#r.set(this.#
|
|
7465
|
+
!this.scope || !t || !t.cues.length || (this.#r.set(this.#x(t.cues)), this.#o.set(0), this.#l = 0);
|
|
7466
7466
|
},
|
|
7467
7467
|
150,
|
|
7468
7468
|
!0
|
|
@@ -7482,12 +7482,12 @@ class yi extends b {
|
|
|
7482
7482
|
return t ? t.querySelector('[data-part="chapter-title"]') : null;
|
|
7483
7483
|
}
|
|
7484
7484
|
}
|
|
7485
|
-
const
|
|
7486
|
-
T(
|
|
7487
|
-
T(
|
|
7488
|
-
T(
|
|
7489
|
-
_(
|
|
7490
|
-
class
|
|
7485
|
+
const Te = bi.prototype;
|
|
7486
|
+
T(Te, "cues");
|
|
7487
|
+
T(Te, "activeCue");
|
|
7488
|
+
T(Te, "activePointerCue");
|
|
7489
|
+
_(Te, "setRefs");
|
|
7490
|
+
class vi extends b {
|
|
7491
7491
|
static props = {
|
|
7492
7492
|
value: ""
|
|
7493
7493
|
};
|
|
@@ -7508,7 +7508,7 @@ class bi extends b {
|
|
|
7508
7508
|
this.#t.value = t;
|
|
7509
7509
|
}
|
|
7510
7510
|
constructor() {
|
|
7511
|
-
super(), this.#t = new
|
|
7511
|
+
super(), this.#t = new At(), this.#t.onValueChange = this.#s.bind(this);
|
|
7512
7512
|
}
|
|
7513
7513
|
onSetup() {
|
|
7514
7514
|
l(this.#e.bind(this));
|
|
@@ -7521,15 +7521,15 @@ class bi extends b {
|
|
|
7521
7521
|
this.dispatch(s);
|
|
7522
7522
|
}
|
|
7523
7523
|
}
|
|
7524
|
-
const
|
|
7525
|
-
T(
|
|
7526
|
-
T(
|
|
7527
|
-
var
|
|
7524
|
+
const $i = vi.prototype;
|
|
7525
|
+
T($i, "values");
|
|
7526
|
+
T($i, "value");
|
|
7527
|
+
var Pr = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, ns = (a, t, e, s) => {
|
|
7528
7528
|
for (var i = xr(t, e), n = a.length - 1, r; n >= 0; n--)
|
|
7529
7529
|
(r = a[n]) && (i = r(t, e, i) || i);
|
|
7530
|
-
return i &&
|
|
7530
|
+
return i && Pr(t, e, i), i;
|
|
7531
7531
|
};
|
|
7532
|
-
class
|
|
7532
|
+
class ke extends b {
|
|
7533
7533
|
static props = {
|
|
7534
7534
|
thumbnails: null
|
|
7535
7535
|
};
|
|
@@ -7545,7 +7545,7 @@ class Te extends b {
|
|
|
7545
7545
|
return !this.#a()?.length;
|
|
7546
7546
|
}
|
|
7547
7547
|
constructor() {
|
|
7548
|
-
super(), this.#s = new
|
|
7548
|
+
super(), this.#s = new At(), this.#s.onValueChange = this.#c.bind(this);
|
|
7549
7549
|
}
|
|
7550
7550
|
onSetup() {
|
|
7551
7551
|
this.#t = $(), K(D) && (this.#e = q(D));
|
|
@@ -7565,8 +7565,8 @@ class Te extends b {
|
|
|
7565
7565
|
cue: n,
|
|
7566
7566
|
value: r.toString(),
|
|
7567
7567
|
label: n.text,
|
|
7568
|
-
startTime:
|
|
7569
|
-
duration:
|
|
7568
|
+
startTime: we(Math.max(0, n.startTime - s)),
|
|
7569
|
+
duration: fe(
|
|
7570
7570
|
Math.min(i, n.endTime) - Math.max(s, n.startTime)
|
|
7571
7571
|
)
|
|
7572
7572
|
}));
|
|
@@ -7575,7 +7575,7 @@ class Te extends b {
|
|
|
7575
7575
|
p(() => this.#h());
|
|
7576
7576
|
}
|
|
7577
7577
|
onConnect(t) {
|
|
7578
|
-
l(this.#h.bind(this)), l(this.#l.bind(this)), l(this.#r.bind(this)),
|
|
7578
|
+
l(this.#h.bind(this)), l(this.#l.bind(this)), l(this.#r.bind(this)), ve(this.#t.textTracks, "chapters", this.#i.set);
|
|
7579
7579
|
}
|
|
7580
7580
|
#r() {
|
|
7581
7581
|
const t = this.#i();
|
|
@@ -7615,18 +7615,18 @@ class Te extends b {
|
|
|
7615
7615
|
}
|
|
7616
7616
|
ns([
|
|
7617
7617
|
T
|
|
7618
|
-
],
|
|
7618
|
+
], ke.prototype, "value");
|
|
7619
7619
|
ns([
|
|
7620
7620
|
T
|
|
7621
|
-
],
|
|
7621
|
+
], ke.prototype, "disabled");
|
|
7622
7622
|
ns([
|
|
7623
7623
|
_
|
|
7624
|
-
],
|
|
7625
|
-
const
|
|
7626
|
-
class
|
|
7624
|
+
], ke.prototype, "getOptions");
|
|
7625
|
+
const Cr = [1, 1.25, 1.5, 1.75, 2, 2.5, 3, 4];
|
|
7626
|
+
class wi extends b {
|
|
7627
7627
|
static props = {
|
|
7628
7628
|
normalLabel: "Disabled",
|
|
7629
|
-
gains:
|
|
7629
|
+
gains: Cr
|
|
7630
7630
|
};
|
|
7631
7631
|
#t;
|
|
7632
7632
|
#e;
|
|
@@ -7639,7 +7639,7 @@ class $i extends b {
|
|
|
7639
7639
|
return !e() || t().length === 0;
|
|
7640
7640
|
}
|
|
7641
7641
|
constructor() {
|
|
7642
|
-
super(), this.#s = new
|
|
7642
|
+
super(), this.#s = new At(), this.#s.onValueChange = this.#o.bind(this);
|
|
7643
7643
|
}
|
|
7644
7644
|
onSetup() {
|
|
7645
7645
|
this.#t = $(), K(D) && (this.#e = q(D));
|
|
@@ -7674,11 +7674,11 @@ class $i extends b {
|
|
|
7674
7674
|
this.#t.remote.changeAudioGain(s, e), this.dispatch("change", { detail: s, trigger: e });
|
|
7675
7675
|
}
|
|
7676
7676
|
}
|
|
7677
|
-
const rs =
|
|
7677
|
+
const rs = wi.prototype;
|
|
7678
7678
|
T(rs, "value");
|
|
7679
7679
|
T(rs, "disabled");
|
|
7680
7680
|
_(rs, "getOptions");
|
|
7681
|
-
class
|
|
7681
|
+
class Er extends b {
|
|
7682
7682
|
static props = {
|
|
7683
7683
|
disabled: !1,
|
|
7684
7684
|
event: void 0,
|
|
@@ -7714,7 +7714,7 @@ class Cr extends b {
|
|
|
7714
7714
|
#i = 0;
|
|
7715
7715
|
#a = -1;
|
|
7716
7716
|
#n(t) {
|
|
7717
|
-
if (this.$props.disabled() || ms(t) && (t.button !== 0 || this.#t.activeMenu) ||
|
|
7717
|
+
if (this.$props.disabled() || ms(t) && (t.button !== 0 || this.#t.activeMenu) || he(t) && this.#t.activeMenu || Qe(t) || !this.#o(t))
|
|
7718
7718
|
return;
|
|
7719
7719
|
if (t.MEDIA_GESTURE = !0, t.preventDefault(), !p(this.$props.event)?.startsWith("dbl"))
|
|
7720
7720
|
this.#i === 0 && setTimeout(() => {
|
|
@@ -7738,8 +7738,8 @@ class Cr extends b {
|
|
|
7738
7738
|
/** Validate event occurred in gesture bounds. */
|
|
7739
7739
|
#o(t) {
|
|
7740
7740
|
if (!this.el) return !1;
|
|
7741
|
-
if (ms(t) ||
|
|
7742
|
-
const e =
|
|
7741
|
+
if (ms(t) || na(t) || he(t)) {
|
|
7742
|
+
const e = he(t) ? t.changedTouches[0] ?? t.touches[0] : void 0, s = e?.clientX ?? t.clientX, i = e?.clientY ?? t.clientY, n = this.el.getBoundingClientRect(), r = i >= n.top && i <= n.bottom && s >= n.left && s <= n.right;
|
|
7743
7743
|
return t.type.includes("leave") ? !r : r;
|
|
7744
7744
|
}
|
|
7745
7745
|
return !0;
|
|
@@ -7762,13 +7762,13 @@ class Cr extends b {
|
|
|
7762
7762
|
});
|
|
7763
7763
|
if (this.dispatchEvent(s), s.defaultPrevented) return;
|
|
7764
7764
|
const [i, n] = t.replace(/:([a-z])/, "-$1").split(":");
|
|
7765
|
-
t.includes(":fullscreen") ? this.#t.remote.toggleFullscreen("prefer-media", e) : t.includes("seek:") ? this.#t.remote.seek(p(this.#t.$state.currentTime) + (+n || 0), e) : this.#t.remote[
|
|
7765
|
+
t.includes(":fullscreen") ? this.#t.remote.toggleFullscreen("prefer-media", e) : t.includes("seek:") ? this.#t.remote.seek(p(this.#t.$state.currentTime) + (+n || 0), e) : this.#t.remote[ra(i)](e), this.dispatch("trigger", {
|
|
7766
7766
|
detail: t,
|
|
7767
7767
|
trigger: e
|
|
7768
7768
|
});
|
|
7769
7769
|
}
|
|
7770
7770
|
}
|
|
7771
|
-
class
|
|
7771
|
+
class Ar {
|
|
7772
7772
|
priority = 10;
|
|
7773
7773
|
#t = null;
|
|
7774
7774
|
#e;
|
|
@@ -7849,7 +7849,7 @@ class ct extends b {
|
|
|
7849
7849
|
e(this.el, t());
|
|
7850
7850
|
}
|
|
7851
7851
|
#o() {
|
|
7852
|
-
const { CaptionsRenderer: t } = ct.lib(), e = new t(this.el), s = new
|
|
7852
|
+
const { CaptionsRenderer: t } = ct.lib(), e = new t(this.el), s = new Ar(e);
|
|
7853
7853
|
return this.#t.textRenderers.add(s), l(this.#h.bind(this, e)), l(this.#l.bind(this, e)), this.#c(e), () => {
|
|
7854
7854
|
this.el.textContent = "", this.#t.textRenderers.remove(s), e.destroy();
|
|
7855
7855
|
};
|
|
@@ -7898,13 +7898,13 @@ class ct extends b {
|
|
|
7898
7898
|
return f(t, "data-part", "cue"), t;
|
|
7899
7899
|
}
|
|
7900
7900
|
}
|
|
7901
|
-
class
|
|
7901
|
+
class Mr extends b {
|
|
7902
7902
|
static props = {
|
|
7903
7903
|
src: null,
|
|
7904
7904
|
alt: null,
|
|
7905
7905
|
crossOrigin: null
|
|
7906
7906
|
};
|
|
7907
|
-
static state = new
|
|
7907
|
+
static state = new yt({
|
|
7908
7908
|
img: null,
|
|
7909
7909
|
src: null,
|
|
7910
7910
|
alt: null,
|
|
@@ -7936,7 +7936,7 @@ class Ar extends b {
|
|
|
7936
7936
|
}
|
|
7937
7937
|
#s() {
|
|
7938
7938
|
const { canLoadPoster: t, poster: e } = this.#t.$state;
|
|
7939
|
-
!t() && e() &&
|
|
7939
|
+
!t() && e() && ee(e(), "preconnect");
|
|
7940
7940
|
}
|
|
7941
7941
|
#i() {
|
|
7942
7942
|
const { src: t } = this.$props, { poster: e, nativeControls: s } = this.#t.$state;
|
|
@@ -7978,7 +7978,7 @@ class Ar extends b {
|
|
|
7978
7978
|
e.set(!1), s.set(t);
|
|
7979
7979
|
}
|
|
7980
7980
|
}
|
|
7981
|
-
class
|
|
7981
|
+
class Lr extends v(HTMLElement, ai) {
|
|
7982
7982
|
static tagName = "media-provider";
|
|
7983
7983
|
#t;
|
|
7984
7984
|
#e = null;
|
|
@@ -8022,12 +8022,12 @@ class Mr extends v(HTMLElement, ii) {
|
|
|
8022
8022
|
if (this.#e?.classList.contains("vds-google-cast"))
|
|
8023
8023
|
return this.#e;
|
|
8024
8024
|
const t = document.createElement("div");
|
|
8025
|
-
return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-
|
|
8025
|
+
return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-BeYN7WwU.js").then(({ insertContent: e }) => {
|
|
8026
8026
|
e(t, this.#t.$state);
|
|
8027
8027
|
}), t;
|
|
8028
8028
|
}
|
|
8029
8029
|
}
|
|
8030
|
-
class
|
|
8030
|
+
class qr extends v(HTMLElement, Lt) {
|
|
8031
8031
|
static tagName = "media-player";
|
|
8032
8032
|
static attrs = {
|
|
8033
8033
|
autoPlay: "autoplay",
|
|
@@ -8037,39 +8037,39 @@ class Lr extends v(HTMLElement, Mt) {
|
|
|
8037
8037
|
minLiveDVRWindow: "min-live-dvr-window"
|
|
8038
8038
|
};
|
|
8039
8039
|
}
|
|
8040
|
+
y(qr);
|
|
8040
8041
|
y(Lr);
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
\f\r]`,
|
|
8045
|
-
|
|
8046
|
-
function Si(a, t) {
|
|
8042
|
+
var qe;
|
|
8043
|
+
const ge = window, _t = ge.trustedTypes, Es = _t ? _t.createPolicy("lit-html", { createHTML: (a) => a }) : void 0, Be = "$lit$", ut = `lit$${(Math.random() + "").slice(9)}$`, Ti = "?" + ut, _r = `<${Ti}>`, Pt = document, Yt = () => Pt.createComment(""), Xt = (a) => a === null || typeof a != "object" && typeof a != "function", ki = Array.isArray, Ir = (a) => ki(a) || typeof a?.[Symbol.iterator] == "function", _e = `[
|
|
8044
|
+
\f\r]`, Bt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, As = /-->/g, Ms = />/g, vt = RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
|
|
8045
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ls = /'/g, qs = /"/g, Si = /^(?:script|style|textarea|title)$/i, Vr = (a) => (t, ...e) => ({ _$litType$: a, strings: t, values: e }), Dr = Vr(1), Jt = /* @__PURE__ */ Symbol.for("lit-noChange"), R = /* @__PURE__ */ Symbol.for("lit-nothing"), _s = /* @__PURE__ */ new WeakMap(), Tt = Pt.createTreeWalker(Pt, 129, null, !1);
|
|
8046
|
+
function Pi(a, t) {
|
|
8047
8047
|
if (!Array.isArray(a) || !a.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
8048
8048
|
return Es !== void 0 ? Es.createHTML(t) : t;
|
|
8049
8049
|
}
|
|
8050
|
-
const
|
|
8050
|
+
const Rr = (a, t) => {
|
|
8051
8051
|
const e = a.length - 1, s = [];
|
|
8052
|
-
let i, n = t === 2 ? "<svg>" : "", r =
|
|
8052
|
+
let i, n = t === 2 ? "<svg>" : "", r = Bt;
|
|
8053
8053
|
for (let o = 0; o < e; o++) {
|
|
8054
8054
|
const h = a[o];
|
|
8055
8055
|
let d, c, u = -1, m = 0;
|
|
8056
|
-
for (; m < h.length && (r.lastIndex = m, c = r.exec(h), c !== null); ) m = r.lastIndex, r ===
|
|
8057
|
-
const g = r ===
|
|
8058
|
-
n += r ===
|
|
8056
|
+
for (; m < h.length && (r.lastIndex = m, c = r.exec(h), c !== null); ) m = r.lastIndex, r === Bt ? c[1] === "!--" ? r = As : c[1] !== void 0 ? r = Ms : c[2] !== void 0 ? (Si.test(c[2]) && (i = RegExp("</" + c[2], "g")), r = vt) : c[3] !== void 0 && (r = vt) : r === vt ? c[0] === ">" ? (r = i ?? Bt, u = -1) : c[1] === void 0 ? u = -2 : (u = r.lastIndex - c[2].length, d = c[1], r = c[3] === void 0 ? vt : c[3] === '"' ? qs : Ls) : r === qs || r === Ls ? r = vt : r === As || r === Ms ? r = Bt : (r = vt, i = void 0);
|
|
8057
|
+
const g = r === vt && a[o + 1].startsWith("/>") ? " " : "";
|
|
8058
|
+
n += r === Bt ? h + _r : u >= 0 ? (s.push(d), h.slice(0, u) + Be + h.slice(u) + ut + g) : h + ut + (u === -2 ? (s.push(void 0), o) : g);
|
|
8059
8059
|
}
|
|
8060
|
-
return [
|
|
8060
|
+
return [Pi(a, n + (a[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
|
8061
8061
|
};
|
|
8062
|
-
class
|
|
8062
|
+
class Zt {
|
|
8063
8063
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
8064
8064
|
let i;
|
|
8065
8065
|
this.parts = [];
|
|
8066
8066
|
let n = 0, r = 0;
|
|
8067
|
-
const o = t.length - 1, h = this.parts, [d, c] =
|
|
8068
|
-
if (this.el =
|
|
8067
|
+
const o = t.length - 1, h = this.parts, [d, c] = Rr(t, e);
|
|
8068
|
+
if (this.el = Zt.createElement(d, s), Tt.currentNode = this.el.content, e === 2) {
|
|
8069
8069
|
const u = this.el.content, m = u.firstChild;
|
|
8070
8070
|
m.remove(), u.append(...m.childNodes);
|
|
8071
8071
|
}
|
|
8072
|
-
for (; (i =
|
|
8072
|
+
for (; (i = Tt.nextNode()) !== null && h.length < o; ) {
|
|
8073
8073
|
if (i.nodeType === 1) {
|
|
8074
8074
|
if (i.hasAttributes()) {
|
|
8075
8075
|
const u = [];
|
|
@@ -8077,20 +8077,20 @@ class Jt {
|
|
|
8077
8077
|
const g = c[r++];
|
|
8078
8078
|
if (u.push(m), g !== void 0) {
|
|
8079
8079
|
const E = i.getAttribute(g.toLowerCase() + Be).split(ut), I = /([.?@])?(.*)/.exec(g);
|
|
8080
|
-
h.push({ type: 1, index: n, name: I[2], strings: E, ctor: I[1] === "." ?
|
|
8080
|
+
h.push({ type: 1, index: n, name: I[2], strings: E, ctor: I[1] === "." ? Nr : I[1] === "?" ? Fr : I[1] === "@" ? Br : Se });
|
|
8081
8081
|
} else h.push({ type: 6, index: n });
|
|
8082
8082
|
}
|
|
8083
8083
|
for (const m of u) i.removeAttribute(m);
|
|
8084
8084
|
}
|
|
8085
|
-
if (
|
|
8085
|
+
if (Si.test(i.tagName)) {
|
|
8086
8086
|
const u = i.textContent.split(ut), m = u.length - 1;
|
|
8087
8087
|
if (m > 0) {
|
|
8088
|
-
i.textContent =
|
|
8089
|
-
for (let g = 0; g < m; g++) i.append(u[g],
|
|
8090
|
-
i.append(u[m],
|
|
8088
|
+
i.textContent = _t ? _t.emptyScript : "";
|
|
8089
|
+
for (let g = 0; g < m; g++) i.append(u[g], Yt()), Tt.nextNode(), h.push({ type: 2, index: ++n });
|
|
8090
|
+
i.append(u[m], Yt());
|
|
8091
8091
|
}
|
|
8092
8092
|
}
|
|
8093
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
8093
|
+
} else if (i.nodeType === 8) if (i.data === Ti) h.push({ type: 2, index: n });
|
|
8094
8094
|
else {
|
|
8095
8095
|
let u = -1;
|
|
8096
8096
|
for (; (u = i.data.indexOf(ut, u + 1)) !== -1; ) h.push({ type: 7, index: n }), u += ut.length - 1;
|
|
@@ -8099,18 +8099,18 @@ class Jt {
|
|
|
8099
8099
|
}
|
|
8100
8100
|
}
|
|
8101
8101
|
static createElement(t, e) {
|
|
8102
|
-
const s =
|
|
8102
|
+
const s = Pt.createElement("template");
|
|
8103
8103
|
return s.innerHTML = t, s;
|
|
8104
8104
|
}
|
|
8105
8105
|
}
|
|
8106
|
-
function
|
|
8106
|
+
function It(a, t, e = a, s) {
|
|
8107
8107
|
var i, n, r, o;
|
|
8108
|
-
if (t ===
|
|
8108
|
+
if (t === Jt) return t;
|
|
8109
8109
|
let h = s !== void 0 ? (i = e._$Co) === null || i === void 0 ? void 0 : i[s] : e._$Cl;
|
|
8110
|
-
const d =
|
|
8111
|
-
return h?.constructor !== d && ((n = h?._$AO) === null || n === void 0 || n.call(h, !1), d === void 0 ? h = void 0 : (h = new d(a), h._$AT(a, e, s)), s !== void 0 ? ((r = (o = e)._$Co) !== null && r !== void 0 ? r : o._$Co = [])[s] = h : e._$Cl = h), h !== void 0 && (t =
|
|
8110
|
+
const d = Xt(t) ? void 0 : t._$litDirective$;
|
|
8111
|
+
return h?.constructor !== d && ((n = h?._$AO) === null || n === void 0 || n.call(h, !1), d === void 0 ? h = void 0 : (h = new d(a), h._$AT(a, e, s)), s !== void 0 ? ((r = (o = e)._$Co) !== null && r !== void 0 ? r : o._$Co = [])[s] = h : e._$Cl = h), h !== void 0 && (t = It(a, h._$AS(a, t.values), h, s)), t;
|
|
8112
8112
|
}
|
|
8113
|
-
class
|
|
8113
|
+
class Or {
|
|
8114
8114
|
constructor(t, e) {
|
|
8115
8115
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
8116
8116
|
}
|
|
@@ -8122,24 +8122,24 @@ class Rr {
|
|
|
8122
8122
|
}
|
|
8123
8123
|
u(t) {
|
|
8124
8124
|
var e;
|
|
8125
|
-
const { el: { content: s }, parts: i } = this._$AD, n = ((e = t?.creationScope) !== null && e !== void 0 ? e :
|
|
8126
|
-
|
|
8127
|
-
let r =
|
|
8125
|
+
const { el: { content: s }, parts: i } = this._$AD, n = ((e = t?.creationScope) !== null && e !== void 0 ? e : Pt).importNode(s, !0);
|
|
8126
|
+
Tt.currentNode = n;
|
|
8127
|
+
let r = Tt.nextNode(), o = 0, h = 0, d = i[0];
|
|
8128
8128
|
for (; d !== void 0; ) {
|
|
8129
8129
|
if (o === d.index) {
|
|
8130
8130
|
let c;
|
|
8131
|
-
d.type === 2 ? c = new
|
|
8131
|
+
d.type === 2 ? c = new ae(r, r.nextSibling, this, t) : d.type === 1 ? c = new d.ctor(r, d.name, d.strings, this, t) : d.type === 6 && (c = new Gr(r, this, t)), this._$AV.push(c), d = i[++h];
|
|
8132
8132
|
}
|
|
8133
|
-
o !== d?.index && (r =
|
|
8133
|
+
o !== d?.index && (r = Tt.nextNode(), o++);
|
|
8134
8134
|
}
|
|
8135
|
-
return
|
|
8135
|
+
return Tt.currentNode = Pt, n;
|
|
8136
8136
|
}
|
|
8137
8137
|
v(t) {
|
|
8138
8138
|
let e = 0;
|
|
8139
8139
|
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
8140
8140
|
}
|
|
8141
8141
|
}
|
|
8142
|
-
class
|
|
8142
|
+
class ae {
|
|
8143
8143
|
constructor(t, e, s, i) {
|
|
8144
8144
|
var n;
|
|
8145
8145
|
this.type = 2, this._$AH = R, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cp = (n = i?.isConnected) === null || n === void 0 || n;
|
|
@@ -8160,7 +8160,7 @@ class ie {
|
|
|
8160
8160
|
return this._$AB;
|
|
8161
8161
|
}
|
|
8162
8162
|
_$AI(t, e = this) {
|
|
8163
|
-
t =
|
|
8163
|
+
t = It(this, t, e), Xt(t) ? t === R || t == null || t === "" ? (this._$AH !== R && this._$AR(), this._$AH = R) : t !== this._$AH && t !== Jt && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Ir(t) ? this.T(t) : this._(t);
|
|
8164
8164
|
}
|
|
8165
8165
|
k(t) {
|
|
8166
8166
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -8169,26 +8169,26 @@ class ie {
|
|
|
8169
8169
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
8170
8170
|
}
|
|
8171
8171
|
_(t) {
|
|
8172
|
-
this._$AH !== R &&
|
|
8172
|
+
this._$AH !== R && Xt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(Pt.createTextNode(t)), this._$AH = t;
|
|
8173
8173
|
}
|
|
8174
8174
|
g(t) {
|
|
8175
8175
|
var e;
|
|
8176
|
-
const { values: s, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
8176
|
+
const { values: s, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Zt.createElement(Pi(i.h, i.h[0]), this.options)), i);
|
|
8177
8177
|
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === n) this._$AH.v(s);
|
|
8178
8178
|
else {
|
|
8179
|
-
const r = new
|
|
8179
|
+
const r = new Or(n, this), o = r.u(this.options);
|
|
8180
8180
|
r.v(s), this.$(o), this._$AH = r;
|
|
8181
8181
|
}
|
|
8182
8182
|
}
|
|
8183
8183
|
_$AC(t) {
|
|
8184
8184
|
let e = _s.get(t.strings);
|
|
8185
|
-
return e === void 0 && _s.set(t.strings, e = new
|
|
8185
|
+
return e === void 0 && _s.set(t.strings, e = new Zt(t)), e;
|
|
8186
8186
|
}
|
|
8187
8187
|
T(t) {
|
|
8188
|
-
|
|
8188
|
+
ki(this._$AH) || (this._$AH = [], this._$AR());
|
|
8189
8189
|
const e = this._$AH;
|
|
8190
8190
|
let s, i = 0;
|
|
8191
|
-
for (const n of t) i === e.length ? e.push(s = new
|
|
8191
|
+
for (const n of t) i === e.length ? e.push(s = new ae(this.k(Yt()), this.k(Yt()), this, this.options)) : s = e[i], s._$AI(n), i++;
|
|
8192
8192
|
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
8193
8193
|
}
|
|
8194
8194
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -8203,7 +8203,7 @@ class ie {
|
|
|
8203
8203
|
this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
|
|
8204
8204
|
}
|
|
8205
8205
|
}
|
|
8206
|
-
class
|
|
8206
|
+
class Se {
|
|
8207
8207
|
constructor(t, e, s, i, n) {
|
|
8208
8208
|
this.type = 1, this._$AH = R, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = R;
|
|
8209
8209
|
}
|
|
@@ -8216,11 +8216,11 @@ class ke {
|
|
|
8216
8216
|
_$AI(t, e = this, s, i) {
|
|
8217
8217
|
const n = this.strings;
|
|
8218
8218
|
let r = !1;
|
|
8219
|
-
if (n === void 0) t =
|
|
8219
|
+
if (n === void 0) t = It(this, t, e, 0), r = !Xt(t) || t !== this._$AH && t !== Jt, r && (this._$AH = t);
|
|
8220
8220
|
else {
|
|
8221
8221
|
const o = t;
|
|
8222
8222
|
let h, d;
|
|
8223
|
-
for (t = n[0], h = 0; h < n.length - 1; h++) d =
|
|
8223
|
+
for (t = n[0], h = 0; h < n.length - 1; h++) d = It(this, o[s + h], e, h), d === Jt && (d = this._$AH[h]), r || (r = !Xt(d) || d !== this._$AH[h]), d === R ? t = R : t !== R && (t += (d ?? "") + n[h + 1]), this._$AH[h] = d;
|
|
8224
8224
|
}
|
|
8225
8225
|
r && !i && this.j(t);
|
|
8226
8226
|
}
|
|
@@ -8228,7 +8228,7 @@ class ke {
|
|
|
8228
8228
|
t === R ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
8229
8229
|
}
|
|
8230
8230
|
}
|
|
8231
|
-
class
|
|
8231
|
+
class Nr extends Se {
|
|
8232
8232
|
constructor() {
|
|
8233
8233
|
super(...arguments), this.type = 3;
|
|
8234
8234
|
}
|
|
@@ -8236,22 +8236,22 @@ class Or extends ke {
|
|
|
8236
8236
|
this.element[this.name] = t === R ? void 0 : t;
|
|
8237
8237
|
}
|
|
8238
8238
|
}
|
|
8239
|
-
const
|
|
8240
|
-
class
|
|
8239
|
+
const Hr = _t ? _t.emptyScript : "";
|
|
8240
|
+
class Fr extends Se {
|
|
8241
8241
|
constructor() {
|
|
8242
8242
|
super(...arguments), this.type = 4;
|
|
8243
8243
|
}
|
|
8244
8244
|
j(t) {
|
|
8245
|
-
t && t !== R ? this.element.setAttribute(this.name,
|
|
8245
|
+
t && t !== R ? this.element.setAttribute(this.name, Hr) : this.element.removeAttribute(this.name);
|
|
8246
8246
|
}
|
|
8247
8247
|
}
|
|
8248
|
-
class
|
|
8248
|
+
class Br extends Se {
|
|
8249
8249
|
constructor(t, e, s, i, n) {
|
|
8250
8250
|
super(t, e, s, i, n), this.type = 5;
|
|
8251
8251
|
}
|
|
8252
8252
|
_$AI(t, e = this) {
|
|
8253
8253
|
var s;
|
|
8254
|
-
if ((t = (s =
|
|
8254
|
+
if ((t = (s = It(this, t, e, 0)) !== null && s !== void 0 ? s : R) === Jt) return;
|
|
8255
8255
|
const i = this._$AH, n = t === R && i !== R || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== R && (i === R || n);
|
|
8256
8256
|
n && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
8257
8257
|
}
|
|
@@ -8260,7 +8260,7 @@ class Fr extends ke {
|
|
|
8260
8260
|
typeof this._$AH == "function" ? this._$AH.call((s = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && s !== void 0 ? s : this.element, t) : this._$AH.handleEvent(t);
|
|
8261
8261
|
}
|
|
8262
8262
|
}
|
|
8263
|
-
class
|
|
8263
|
+
class Gr {
|
|
8264
8264
|
constructor(t, e, s) {
|
|
8265
8265
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
|
8266
8266
|
}
|
|
@@ -8268,22 +8268,22 @@ class Br {
|
|
|
8268
8268
|
return this._$AM._$AU;
|
|
8269
8269
|
}
|
|
8270
8270
|
_$AI(t) {
|
|
8271
|
-
|
|
8271
|
+
It(this, t);
|
|
8272
8272
|
}
|
|
8273
8273
|
}
|
|
8274
|
-
const Is =
|
|
8275
|
-
Is?.(
|
|
8274
|
+
const Is = ge.litHtmlPolyfillSupport;
|
|
8275
|
+
Is?.(Zt, ae), ((qe = ge.litHtmlVersions) !== null && qe !== void 0 ? qe : ge.litHtmlVersions = []).push("2.8.0");
|
|
8276
8276
|
const Vs = (a, t, e) => {
|
|
8277
8277
|
var s, i;
|
|
8278
8278
|
const n = (s = e?.renderBefore) !== null && s !== void 0 ? s : t;
|
|
8279
8279
|
let r = n._$litPart$;
|
|
8280
8280
|
if (r === void 0) {
|
|
8281
8281
|
const o = (i = e?.renderBefore) !== null && i !== void 0 ? i : null;
|
|
8282
|
-
n._$litPart$ = r = new
|
|
8282
|
+
n._$litPart$ = r = new ae(t.insertBefore(Yt(), o), o, void 0, e ?? {});
|
|
8283
8283
|
}
|
|
8284
8284
|
return r._$AI(a), r;
|
|
8285
8285
|
};
|
|
8286
|
-
class
|
|
8286
|
+
class Ur extends HTMLElement {
|
|
8287
8287
|
rootPart = null;
|
|
8288
8288
|
connectedCallback() {
|
|
8289
8289
|
this.rootPart = Vs(this.render(), this, {
|
|
@@ -8294,10 +8294,10 @@ class Gr extends HTMLElement {
|
|
|
8294
8294
|
this.rootPart?.setConnected(!1), this.rootPart = null, Vs(null, this);
|
|
8295
8295
|
}
|
|
8296
8296
|
}
|
|
8297
|
-
const
|
|
8297
|
+
const Kr = /* @__PURE__ */ zs(
|
|
8298
8298
|
'<img loading="eager" decoding="async" aria-hidden="true">'
|
|
8299
8299
|
);
|
|
8300
|
-
class xi extends v(HTMLElement,
|
|
8300
|
+
class xi extends v(HTMLElement, Qn) {
|
|
8301
8301
|
static tagName = "media-thumbnail";
|
|
8302
8302
|
static attrs = {
|
|
8303
8303
|
crossOrigin: "crossorigin"
|
|
@@ -8314,10 +8314,10 @@ class xi extends v(HTMLElement, Kn) {
|
|
|
8314
8314
|
});
|
|
8315
8315
|
}
|
|
8316
8316
|
#s() {
|
|
8317
|
-
return
|
|
8317
|
+
return js(Kr);
|
|
8318
8318
|
}
|
|
8319
8319
|
}
|
|
8320
|
-
class
|
|
8320
|
+
class Qr extends v(HTMLElement, cr) {
|
|
8321
8321
|
static tagName = "media-time";
|
|
8322
8322
|
onConnect() {
|
|
8323
8323
|
l(() => {
|
|
@@ -8325,31 +8325,31 @@ class Kr extends v(HTMLElement, dr) {
|
|
|
8325
8325
|
});
|
|
8326
8326
|
}
|
|
8327
8327
|
}
|
|
8328
|
-
class
|
|
8328
|
+
class Wr extends v(HTMLElement, Vn) {
|
|
8329
8329
|
static tagName = "media-airplay-button";
|
|
8330
8330
|
}
|
|
8331
|
-
class
|
|
8331
|
+
class zr extends v(HTMLElement, Rn) {
|
|
8332
8332
|
static tagName = "media-caption-button";
|
|
8333
8333
|
}
|
|
8334
|
-
class
|
|
8334
|
+
class jr extends v(HTMLElement, On) {
|
|
8335
8335
|
static tagName = "media-fullscreen-button";
|
|
8336
8336
|
}
|
|
8337
|
-
class
|
|
8337
|
+
class Yr extends v(HTMLElement, Bn) {
|
|
8338
8338
|
static tagName = "media-live-button";
|
|
8339
8339
|
}
|
|
8340
|
-
class
|
|
8340
|
+
class Xr extends v(HTMLElement, Nn) {
|
|
8341
8341
|
static tagName = "media-mute-button";
|
|
8342
8342
|
}
|
|
8343
|
-
class
|
|
8343
|
+
class Jr extends v(HTMLElement, Hn) {
|
|
8344
8344
|
static tagName = "media-pip-button";
|
|
8345
8345
|
}
|
|
8346
|
-
class
|
|
8346
|
+
class Zr extends v(HTMLElement, Dn) {
|
|
8347
8347
|
static tagName = "media-play-button";
|
|
8348
8348
|
}
|
|
8349
|
-
class
|
|
8349
|
+
class to extends v(HTMLElement, Fn) {
|
|
8350
8350
|
static tagName = "media-seek-button";
|
|
8351
8351
|
}
|
|
8352
|
-
function
|
|
8352
|
+
function Ot(a, t) {
|
|
8353
8353
|
ht(() => {
|
|
8354
8354
|
if (!a.connectScope) return;
|
|
8355
8355
|
const e = a.querySelector("template");
|
|
@@ -8364,40 +8364,40 @@ function Rt(a, t) {
|
|
|
8364
8364
|
});
|
|
8365
8365
|
});
|
|
8366
8366
|
}
|
|
8367
|
-
class
|
|
8367
|
+
class eo extends v(HTMLElement, ui) {
|
|
8368
8368
|
static tagName = "media-audio-radio-group";
|
|
8369
8369
|
onConnect() {
|
|
8370
|
-
|
|
8370
|
+
Ot(this);
|
|
8371
8371
|
}
|
|
8372
8372
|
}
|
|
8373
|
-
class
|
|
8373
|
+
class so extends v(HTMLElement, pi) {
|
|
8374
8374
|
static tagName = "media-captions-radio-group";
|
|
8375
8375
|
onConnect() {
|
|
8376
|
-
|
|
8376
|
+
Ot(this);
|
|
8377
8377
|
}
|
|
8378
8378
|
}
|
|
8379
|
-
class
|
|
8379
|
+
class io extends v(HTMLElement, Rt) {
|
|
8380
8380
|
static tagName = "media-menu";
|
|
8381
8381
|
}
|
|
8382
|
-
class
|
|
8382
|
+
class ao extends v(HTMLElement, ts) {
|
|
8383
8383
|
static tagName = "media-menu-button";
|
|
8384
8384
|
}
|
|
8385
|
-
class
|
|
8385
|
+
class no extends v(HTMLElement, rr) {
|
|
8386
8386
|
static tagName = "media-menu-item";
|
|
8387
8387
|
}
|
|
8388
|
-
class
|
|
8388
|
+
class ro extends v(HTMLElement, hr) {
|
|
8389
8389
|
static tagName = "media-menu-items";
|
|
8390
8390
|
}
|
|
8391
|
-
class
|
|
8391
|
+
class oo extends v(HTMLElement, mi) {
|
|
8392
8392
|
static tagName = "media-speed-radio-group";
|
|
8393
8393
|
onConnect() {
|
|
8394
|
-
|
|
8394
|
+
Ot(this);
|
|
8395
8395
|
}
|
|
8396
8396
|
}
|
|
8397
|
-
class
|
|
8397
|
+
class ho extends v(HTMLElement, fi) {
|
|
8398
8398
|
static tagName = "media-quality-radio-group";
|
|
8399
8399
|
onConnect() {
|
|
8400
|
-
|
|
8400
|
+
Ot(this, (t, e) => {
|
|
8401
8401
|
const s = e.bitrate, i = t.querySelector('[data-part="bitrate"]');
|
|
8402
8402
|
s && i && l(() => {
|
|
8403
8403
|
i.textContent = s() || "";
|
|
@@ -8405,15 +8405,15 @@ class oo extends v(HTMLElement, mi) {
|
|
|
8405
8405
|
});
|
|
8406
8406
|
}
|
|
8407
8407
|
}
|
|
8408
|
-
class
|
|
8408
|
+
class lo extends v(HTMLElement, ci) {
|
|
8409
8409
|
static tagName = "media-radio";
|
|
8410
8410
|
}
|
|
8411
|
-
class
|
|
8411
|
+
class co extends xi {
|
|
8412
8412
|
static tagName = "media-slider-thumbnail";
|
|
8413
8413
|
#t;
|
|
8414
8414
|
#e;
|
|
8415
8415
|
onSetup() {
|
|
8416
|
-
super.onSetup(), this.#t = $(), this.#e =
|
|
8416
|
+
super.onSetup(), this.#t = $(), this.#e = Dt(se.state);
|
|
8417
8417
|
}
|
|
8418
8418
|
onConnect() {
|
|
8419
8419
|
super.onConnect(), l(this.#s.bind(this));
|
|
@@ -8423,11 +8423,11 @@ class lo extends xi {
|
|
|
8423
8423
|
this.time = e() + this.#e.pointerRate() * t();
|
|
8424
8424
|
}
|
|
8425
8425
|
}
|
|
8426
|
-
class
|
|
8426
|
+
class uo extends v(HTMLElement, li) {
|
|
8427
8427
|
static tagName = "media-slider-value";
|
|
8428
8428
|
static attrs = {
|
|
8429
8429
|
padMinutes: {
|
|
8430
|
-
converter:
|
|
8430
|
+
converter: oa
|
|
8431
8431
|
}
|
|
8432
8432
|
};
|
|
8433
8433
|
onConnect() {
|
|
@@ -8436,33 +8436,33 @@ class co extends v(HTMLElement, hi) {
|
|
|
8436
8436
|
});
|
|
8437
8437
|
}
|
|
8438
8438
|
}
|
|
8439
|
-
class
|
|
8439
|
+
class po extends v(HTMLElement, di) {
|
|
8440
8440
|
static tagName = "media-time-slider";
|
|
8441
8441
|
}
|
|
8442
|
-
class
|
|
8442
|
+
class mo extends v(HTMLElement, zn) {
|
|
8443
8443
|
static tagName = "media-slider-preview";
|
|
8444
8444
|
}
|
|
8445
|
-
class
|
|
8445
|
+
class fo extends v(HTMLElement, Yn) {
|
|
8446
8446
|
static tagName = "media-volume-slider";
|
|
8447
8447
|
}
|
|
8448
|
-
class
|
|
8448
|
+
class go extends v(HTMLElement, ct) {
|
|
8449
8449
|
static tagName = "media-captions";
|
|
8450
8450
|
}
|
|
8451
|
-
class
|
|
8451
|
+
class yo extends v(HTMLElement, Er) {
|
|
8452
8452
|
static tagName = "media-gesture";
|
|
8453
8453
|
}
|
|
8454
|
-
class
|
|
8454
|
+
class bo extends v(HTMLElement, ur) {
|
|
8455
8455
|
static tagName = "media-announcer";
|
|
8456
8456
|
}
|
|
8457
|
-
class
|
|
8457
|
+
class vo extends v(HTMLElement, pr) {
|
|
8458
8458
|
static tagName = "media-controls";
|
|
8459
8459
|
}
|
|
8460
|
-
class
|
|
8460
|
+
class $o extends v(HTMLElement, mr) {
|
|
8461
8461
|
static tagName = "media-controls-group";
|
|
8462
8462
|
}
|
|
8463
|
-
class
|
|
8463
|
+
class wo extends b {
|
|
8464
8464
|
}
|
|
8465
|
-
class
|
|
8465
|
+
class To extends v(HTMLElement, wo) {
|
|
8466
8466
|
static tagName = "media-title";
|
|
8467
8467
|
#t;
|
|
8468
8468
|
onSetup() {
|
|
@@ -8476,12 +8476,12 @@ class wo extends v(HTMLElement, $o) {
|
|
|
8476
8476
|
this.textContent = t();
|
|
8477
8477
|
}
|
|
8478
8478
|
}
|
|
8479
|
-
class
|
|
8479
|
+
class ko extends b {
|
|
8480
8480
|
static props = {
|
|
8481
8481
|
defaultText: ""
|
|
8482
8482
|
};
|
|
8483
8483
|
}
|
|
8484
|
-
class
|
|
8484
|
+
class So extends v(HTMLElement, ko) {
|
|
8485
8485
|
static tagName = "media-chapter-title";
|
|
8486
8486
|
#t;
|
|
8487
8487
|
#e;
|
|
@@ -8490,14 +8490,14 @@ class ko extends v(HTMLElement, To) {
|
|
|
8490
8490
|
}
|
|
8491
8491
|
onConnect() {
|
|
8492
8492
|
const t = this.#t.textTracks;
|
|
8493
|
-
|
|
8493
|
+
va(t, "chapters", this.#e.set), l(this.#s.bind(this));
|
|
8494
8494
|
}
|
|
8495
8495
|
#s() {
|
|
8496
8496
|
const { defaultText: t } = this.$props;
|
|
8497
8497
|
this.textContent = this.#e() || t();
|
|
8498
8498
|
}
|
|
8499
8499
|
}
|
|
8500
|
-
class
|
|
8500
|
+
class Po extends b {
|
|
8501
8501
|
static props = {
|
|
8502
8502
|
size: 96,
|
|
8503
8503
|
trackWidth: 8,
|
|
@@ -8515,10 +8515,10 @@ class So extends b {
|
|
|
8515
8515
|
f(t, "width", i()), f(t, "height", i()), f(e, "stroke-width", n()), f(s, "stroke-width", n()), f(s, "stroke-dashoffset", 100 - r());
|
|
8516
8516
|
}
|
|
8517
8517
|
}
|
|
8518
|
-
class xo extends v(
|
|
8518
|
+
class xo extends v(Ur, Po) {
|
|
8519
8519
|
static tagName = "media-spinner";
|
|
8520
8520
|
render() {
|
|
8521
|
-
return
|
|
8521
|
+
return Dr`
|
|
8522
8522
|
<svg fill="none" viewBox="0 0 120 120" aria-hidden="true" data-part="root">
|
|
8523
8523
|
<circle cx="60" cy="60" r="54" stroke="currentColor" data-part="track"></circle>
|
|
8524
8524
|
<circle
|
|
@@ -8534,12 +8534,12 @@ class xo extends v(Gr, So) {
|
|
|
8534
8534
|
`;
|
|
8535
8535
|
}
|
|
8536
8536
|
}
|
|
8537
|
-
class
|
|
8537
|
+
class Co extends b {
|
|
8538
8538
|
static props = {
|
|
8539
8539
|
when: !1
|
|
8540
8540
|
};
|
|
8541
8541
|
}
|
|
8542
|
-
class
|
|
8542
|
+
class Eo extends v(HTMLElement, Co) {
|
|
8543
8543
|
static tagName = "media-layout";
|
|
8544
8544
|
#t;
|
|
8545
8545
|
onSetup() {
|
|
@@ -8550,32 +8550,32 @@ class Co extends v(HTMLElement, Po) {
|
|
|
8550
8550
|
}
|
|
8551
8551
|
#e() {
|
|
8552
8552
|
const t = this.firstElementChild, e = t?.localName === "template", s = this.$props.when();
|
|
8553
|
-
if (!(
|
|
8554
|
-
e ? (this.textContent = "", this.appendChild(t)) :
|
|
8553
|
+
if (!(ha(s) ? s : tt(() => s(this.#t.player.state))())) {
|
|
8554
|
+
e ? (this.textContent = "", this.appendChild(t)) : St(t) && (t.style.display = "none");
|
|
8555
8555
|
return;
|
|
8556
8556
|
}
|
|
8557
|
-
e ? this.append(t.content.cloneNode(!0)) :
|
|
8557
|
+
e ? this.append(t.content.cloneNode(!0)) : St(t) && (t.style.display = "");
|
|
8558
8558
|
}
|
|
8559
8559
|
}
|
|
8560
|
-
class
|
|
8560
|
+
class Ao extends v(HTMLElement, $r) {
|
|
8561
8561
|
static tagName = "media-google-cast-button";
|
|
8562
8562
|
}
|
|
8563
|
-
class
|
|
8563
|
+
class Mo extends v(HTMLElement, gi) {
|
|
8564
8564
|
static tagName = "media-toggle-button";
|
|
8565
8565
|
}
|
|
8566
|
-
class
|
|
8566
|
+
class Lo extends v(HTMLElement, gr) {
|
|
8567
8567
|
static tagName = "media-tooltip";
|
|
8568
8568
|
}
|
|
8569
|
-
class
|
|
8569
|
+
class qo extends v(HTMLElement, yr) {
|
|
8570
8570
|
static tagName = "media-tooltip-trigger";
|
|
8571
8571
|
onConnect() {
|
|
8572
8572
|
this.style.display = "contents";
|
|
8573
8573
|
}
|
|
8574
8574
|
}
|
|
8575
|
-
class
|
|
8575
|
+
class _o extends v(HTMLElement, br) {
|
|
8576
8576
|
static tagName = "media-tooltip-content";
|
|
8577
8577
|
}
|
|
8578
|
-
class
|
|
8578
|
+
class Io extends v(HTMLElement, or) {
|
|
8579
8579
|
static tagName = "media-menu-portal";
|
|
8580
8580
|
static attrs = {
|
|
8581
8581
|
disabled: {
|
|
@@ -8585,10 +8585,10 @@ class _o extends v(HTMLElement, rr) {
|
|
|
8585
8585
|
}
|
|
8586
8586
|
};
|
|
8587
8587
|
}
|
|
8588
|
-
class
|
|
8588
|
+
class Vo extends v(HTMLElement, ke) {
|
|
8589
8589
|
static tagName = "media-chapters-radio-group";
|
|
8590
8590
|
onConnect() {
|
|
8591
|
-
|
|
8591
|
+
Ot(this, (t, e) => {
|
|
8592
8592
|
const { cue: s, startTime: i, duration: n } = e, r = t.querySelector(".vds-thumbnail,media-thumbnail"), o = t.querySelector('[data-part="start-time"]'), h = t.querySelector('[data-part="duration"]');
|
|
8593
8593
|
o && (o.textContent = i), h && (h.textContent = n), r && (r.setAttribute("time", s.startTime + ""), l(() => {
|
|
8594
8594
|
const d = this.$props.thumbnails();
|
|
@@ -8597,22 +8597,22 @@ class Io extends v(HTMLElement, Te) {
|
|
|
8597
8597
|
});
|
|
8598
8598
|
}
|
|
8599
8599
|
}
|
|
8600
|
-
class
|
|
8600
|
+
class Do extends v(HTMLElement, wi) {
|
|
8601
8601
|
static tagName = "media-audio-gain-radio-group";
|
|
8602
8602
|
onConnect() {
|
|
8603
|
-
|
|
8603
|
+
Ot(this);
|
|
8604
8604
|
}
|
|
8605
8605
|
}
|
|
8606
|
-
class
|
|
8606
|
+
class Ro extends v(HTMLElement, vi) {
|
|
8607
8607
|
static tagName = "media-radio-group";
|
|
8608
8608
|
}
|
|
8609
|
-
class
|
|
8609
|
+
class Oo extends v(HTMLElement, se) {
|
|
8610
8610
|
static tagName = "media-slider";
|
|
8611
8611
|
}
|
|
8612
|
-
const
|
|
8612
|
+
const No = /* @__PURE__ */ zs(
|
|
8613
8613
|
'<video muted playsinline preload="none" style="max-width: unset;"></video>'
|
|
8614
8614
|
);
|
|
8615
|
-
class
|
|
8615
|
+
class Ho extends v(HTMLElement, yi) {
|
|
8616
8616
|
static tagName = "media-slider-video";
|
|
8617
8617
|
#t;
|
|
8618
8618
|
#e = this.#s();
|
|
@@ -8626,19 +8626,19 @@ class No extends v(HTMLElement, gi) {
|
|
|
8626
8626
|
});
|
|
8627
8627
|
}
|
|
8628
8628
|
#s() {
|
|
8629
|
-
return
|
|
8629
|
+
return js(No);
|
|
8630
8630
|
}
|
|
8631
8631
|
}
|
|
8632
|
-
class
|
|
8632
|
+
class Fo extends v(HTMLElement, Tr) {
|
|
8633
8633
|
static tagName = "media-audio-gain-slider";
|
|
8634
8634
|
}
|
|
8635
|
-
class
|
|
8635
|
+
class Bo extends v(HTMLElement, kr) {
|
|
8636
8636
|
static tagName = "media-speed-slider";
|
|
8637
8637
|
}
|
|
8638
|
-
class
|
|
8638
|
+
class Go extends v(HTMLElement, Sr) {
|
|
8639
8639
|
static tagName = "media-quality-slider";
|
|
8640
8640
|
}
|
|
8641
|
-
class
|
|
8641
|
+
class Uo extends v(HTMLElement, bi) {
|
|
8642
8642
|
static tagName = "media-slider-chapters";
|
|
8643
8643
|
#t = null;
|
|
8644
8644
|
onConnect() {
|
|
@@ -8654,9 +8654,9 @@ class Go extends v(HTMLElement, yi) {
|
|
|
8654
8654
|
this.setRefs(t);
|
|
8655
8655
|
}
|
|
8656
8656
|
}
|
|
8657
|
-
class
|
|
8657
|
+
class Ko extends b {
|
|
8658
8658
|
}
|
|
8659
|
-
class
|
|
8659
|
+
class Qo extends v(HTMLElement, Ko) {
|
|
8660
8660
|
static tagName = "media-slider-steps";
|
|
8661
8661
|
#t = null;
|
|
8662
8662
|
onConnect(t) {
|
|
@@ -8666,11 +8666,11 @@ class Ko extends v(HTMLElement, Uo) {
|
|
|
8666
8666
|
}
|
|
8667
8667
|
#e() {
|
|
8668
8668
|
if (!this.#t) return;
|
|
8669
|
-
const { min: t, max: e, step: s } =
|
|
8669
|
+
const { min: t, max: e, step: s } = Dt(Et), i = (e() - t()) / s();
|
|
8670
8670
|
We(this.#t, Math.floor(i) + 1);
|
|
8671
8671
|
}
|
|
8672
8672
|
}
|
|
8673
|
-
class
|
|
8673
|
+
class Wo extends v(HTMLElement, Mr) {
|
|
8674
8674
|
static tagName = "media-poster";
|
|
8675
8675
|
static attrs = {
|
|
8676
8676
|
crossOrigin: "crossorigin"
|
|
@@ -8689,91 +8689,91 @@ class Qo extends v(HTMLElement, Ar) {
|
|
|
8689
8689
|
}), this.#t.parentNode !== this && this.prepend(this.#t);
|
|
8690
8690
|
}
|
|
8691
8691
|
}
|
|
8692
|
-
y(
|
|
8693
|
-
y(bo);
|
|
8692
|
+
y(Eo);
|
|
8694
8693
|
y(vo);
|
|
8695
|
-
y(
|
|
8696
|
-
y(
|
|
8697
|
-
y(
|
|
8694
|
+
y($o);
|
|
8695
|
+
y(Wo);
|
|
8696
|
+
y(bo);
|
|
8698
8697
|
y(Lo);
|
|
8699
8698
|
y(qo);
|
|
8699
|
+
y(_o);
|
|
8700
|
+
y(Zr);
|
|
8701
|
+
y(Xr);
|
|
8702
|
+
y(zr);
|
|
8703
|
+
y(jr);
|
|
8700
8704
|
y(Jr);
|
|
8701
|
-
y(
|
|
8705
|
+
y(to);
|
|
8702
8706
|
y(Wr);
|
|
8703
|
-
y(zr);
|
|
8704
|
-
y(Xr);
|
|
8705
|
-
y(Zr);
|
|
8706
|
-
y(Qr);
|
|
8707
|
-
y(Eo);
|
|
8708
8707
|
y(Ao);
|
|
8709
|
-
y(
|
|
8710
|
-
y(
|
|
8711
|
-
y(mo);
|
|
8712
|
-
y(uo);
|
|
8708
|
+
y(Mo);
|
|
8709
|
+
y(Oo);
|
|
8713
8710
|
y(Fo);
|
|
8711
|
+
y(fo);
|
|
8712
|
+
y(po);
|
|
8714
8713
|
y(Bo);
|
|
8715
8714
|
y(Go);
|
|
8716
|
-
y(
|
|
8717
|
-
y(
|
|
8715
|
+
y(Uo);
|
|
8716
|
+
y(Qo);
|
|
8717
|
+
y(mo);
|
|
8718
|
+
y(uo);
|
|
8718
8719
|
y(co);
|
|
8719
|
-
y(
|
|
8720
|
-
y(No);
|
|
8721
|
-
y(so);
|
|
8720
|
+
y(Ho);
|
|
8722
8721
|
y(io);
|
|
8723
|
-
y(_o);
|
|
8724
|
-
y(no);
|
|
8725
8722
|
y(ao);
|
|
8726
|
-
y(
|
|
8727
|
-
y(eo);
|
|
8723
|
+
y(Io);
|
|
8728
8724
|
y(ro);
|
|
8729
|
-
y(
|
|
8725
|
+
y(no);
|
|
8726
|
+
y(eo);
|
|
8727
|
+
y(so);
|
|
8730
8728
|
y(oo);
|
|
8731
|
-
y(Io);
|
|
8732
8729
|
y(Do);
|
|
8733
8730
|
y(ho);
|
|
8734
|
-
y(
|
|
8731
|
+
y(Vo);
|
|
8732
|
+
y(Ro);
|
|
8733
|
+
y(lo);
|
|
8734
|
+
y(yo);
|
|
8735
8735
|
y(xi);
|
|
8736
|
-
y(
|
|
8737
|
-
y(
|
|
8738
|
-
y(
|
|
8739
|
-
y(
|
|
8740
|
-
y(
|
|
8736
|
+
y(go);
|
|
8737
|
+
y(Yr);
|
|
8738
|
+
y(Qr);
|
|
8739
|
+
y(To);
|
|
8740
|
+
y(So);
|
|
8741
8741
|
y(xo);
|
|
8742
|
-
const
|
|
8742
|
+
const zo = { class: "controls-group__actions" }, jo = /* @__PURE__ */ lt({
|
|
8743
8743
|
__name: "controls-group",
|
|
8744
8744
|
setup(a) {
|
|
8745
|
-
const { size: t } =
|
|
8746
|
-
return (e, s) => (G(),
|
|
8747
|
-
class:
|
|
8745
|
+
const { size: t } = ye("size");
|
|
8746
|
+
return (e, s) => (G(), ft("media-controls-group", {
|
|
8747
|
+
class: be(["controls-group", `controls-group--${ot(t)}`])
|
|
8748
8748
|
}, [
|
|
8749
|
-
at("div",
|
|
8750
|
-
|
|
8749
|
+
at("div", zo, [
|
|
8750
|
+
pt(e.$slots, "default", {}, void 0, !0)
|
|
8751
8751
|
])
|
|
8752
8752
|
], 2));
|
|
8753
8753
|
}
|
|
8754
|
-
}),
|
|
8754
|
+
}), Yo = /* @__PURE__ */ dt(jo, [["__scopeId", "data-v-435a35bc"]]), Xo = /* @__PURE__ */ lt({
|
|
8755
8755
|
__name: "fullscreen-button",
|
|
8756
8756
|
emits: ["toggle"],
|
|
8757
8757
|
setup(a, { emit: t }) {
|
|
8758
8758
|
const e = t;
|
|
8759
|
-
return (s, i) => (G(),
|
|
8759
|
+
return (s, i) => (G(), ft("media-fullscreen-button", {
|
|
8760
8760
|
class: "fullscreen-button",
|
|
8761
8761
|
onMediaEnterFullscreenRequest: i[0] || (i[0] = (n) => e("toggle", !0)),
|
|
8762
8762
|
onMediaExitFullscreenRequest: i[1] || (i[1] = (n) => e("toggle", !1))
|
|
8763
8763
|
}, [
|
|
8764
|
-
U(
|
|
8764
|
+
U(jt, {
|
|
8765
8765
|
icon: "player-enter-fullscreen",
|
|
8766
8766
|
color: "on-dark",
|
|
8767
8767
|
class: "fullscreen-button__enter"
|
|
8768
8768
|
}),
|
|
8769
|
-
U(
|
|
8769
|
+
U(jt, {
|
|
8770
8770
|
icon: "player-exit-fullscreen",
|
|
8771
8771
|
color: "on-dark",
|
|
8772
8772
|
class: "fullscreen-button__exit"
|
|
8773
8773
|
})
|
|
8774
8774
|
], 32));
|
|
8775
8775
|
}
|
|
8776
|
-
}),
|
|
8776
|
+
}), Jo = /* @__PURE__ */ dt(Xo, [["__scopeId", "data-v-3dfe2495"]]), Zo = ["disabled"], th = /* @__PURE__ */ lt({
|
|
8777
8777
|
__name: "toggle-button",
|
|
8778
8778
|
props: {
|
|
8779
8779
|
primaryIcon: {},
|
|
@@ -8783,31 +8783,31 @@ const Wo = { class: "controls-group__actions" }, zo = /* @__PURE__ */ lt({
|
|
|
8783
8783
|
},
|
|
8784
8784
|
emits: ["toggle"],
|
|
8785
8785
|
setup(a, { emit: t }) {
|
|
8786
|
-
const e = a, s =
|
|
8786
|
+
const e = a, s = _i("toggleButton"), i = t, n = () => {
|
|
8787
8787
|
e.disabled || i("toggle", s.value.pressed);
|
|
8788
8788
|
};
|
|
8789
|
-
return (r, o) => (G(),
|
|
8789
|
+
return (r, o) => (G(), ft("media-toggle-button", {
|
|
8790
8790
|
ref_key: "toggleButton",
|
|
8791
8791
|
ref: s,
|
|
8792
8792
|
class: "toggle-button",
|
|
8793
8793
|
disabled: e.disabled,
|
|
8794
8794
|
onClick: n
|
|
8795
8795
|
}, [
|
|
8796
|
-
U(
|
|
8796
|
+
U(jt, {
|
|
8797
8797
|
icon: e.primaryIcon,
|
|
8798
8798
|
color: e.color,
|
|
8799
8799
|
disabled: e.disabled,
|
|
8800
8800
|
class: "toggle-button__primary"
|
|
8801
8801
|
}, null, 8, ["icon", "color", "disabled"]),
|
|
8802
|
-
U(
|
|
8802
|
+
U(jt, {
|
|
8803
8803
|
icon: e.secondaryIcon,
|
|
8804
8804
|
color: e.color,
|
|
8805
8805
|
disabled: e.disabled,
|
|
8806
8806
|
class: "toggle-button__secondary"
|
|
8807
8807
|
}, null, 8, ["icon", "color", "disabled"])
|
|
8808
|
-
], 8,
|
|
8808
|
+
], 8, Zo));
|
|
8809
8809
|
}
|
|
8810
|
-
}),
|
|
8810
|
+
}), eh = /* @__PURE__ */ dt(th, [["__scopeId", "data-v-e762a052"]]), sh = { class: "video-display-panel__head" }, ih = { class: "video-display-panel__title" }, ah = { class: "video-display-panel__controls" }, nh = /* @__PURE__ */ lt({
|
|
8811
8811
|
__name: "video-display-panel",
|
|
8812
8812
|
props: {
|
|
8813
8813
|
title: {},
|
|
@@ -8817,7 +8817,7 @@ const Wo = { class: "controls-group__actions" }, zo = /* @__PURE__ */ lt({
|
|
|
8817
8817
|
},
|
|
8818
8818
|
emits: ["close"],
|
|
8819
8819
|
setup(a, { emit: t }) {
|
|
8820
|
-
const { size: e, fullscreen: s, changeSize: i } =
|
|
8820
|
+
const { size: e, fullscreen: s, changeSize: i } = ye("size"), n = a, r = t, o = (u) => {
|
|
8821
8821
|
u ? e.value !== Y.LG && (s.value = !0, i(Y.LG)) : e.value === Y.LG && (d(), s.value = !1, i(Y.SM));
|
|
8822
8822
|
}, h = () => {
|
|
8823
8823
|
e.value === Y.SM ? i(Y.MD) : e.value === Y.MD ? i(Y.SM) : e.value === Y.LG && (d(), s.value = !1, i(Y.MD));
|
|
@@ -8826,43 +8826,45 @@ const Wo = { class: "controls-group__actions" }, zo = /* @__PURE__ */ lt({
|
|
|
8826
8826
|
}, c = (u) => {
|
|
8827
8827
|
u.key === "Escape" && o(!1);
|
|
8828
8828
|
};
|
|
8829
|
-
return
|
|
8829
|
+
return Ii(() => {
|
|
8830
8830
|
document.addEventListener("fullscreenchange", () => {
|
|
8831
8831
|
document.fullscreenElement || o(!1);
|
|
8832
|
-
}),
|
|
8832
|
+
}), Vi(() => {
|
|
8833
8833
|
document.removeEventListener("keyup", c);
|
|
8834
8834
|
});
|
|
8835
|
-
}), (u, m) => (G(),
|
|
8836
|
-
class:
|
|
8835
|
+
}), (u, m) => (G(), ft("media-controls-group", {
|
|
8836
|
+
class: be([`video-display-panel--${ot(e)}`, "video-display-panel controls-group"])
|
|
8837
8837
|
}, [
|
|
8838
|
-
at("div",
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8838
|
+
at("div", sh, [
|
|
8839
|
+
pt(u.$slots, "avatar", {}, () => [
|
|
8840
|
+
n.username ? (G(), Ut(fa, {
|
|
8841
|
+
key: 0,
|
|
8842
|
+
username: n.username,
|
|
8843
|
+
size: "sm",
|
|
8844
|
+
class: "video-display-panel__avatar"
|
|
8845
|
+
}, null, 8, ["username"])) : Kt("", !0)
|
|
8846
|
+
], !0),
|
|
8847
|
+
at("span", ih, Di(n.title || n.username), 1)
|
|
8846
8848
|
]),
|
|
8847
|
-
at("div",
|
|
8848
|
-
U(
|
|
8849
|
-
n.hideExpand ?
|
|
8849
|
+
at("div", ah, [
|
|
8850
|
+
U(Jo, { onToggle: o }),
|
|
8851
|
+
n.hideExpand ? Kt("", !0) : (G(), Ut(eh, {
|
|
8850
8852
|
key: 0,
|
|
8851
8853
|
"primary-icon": "collapse",
|
|
8852
8854
|
"secondary-icon": "expand",
|
|
8853
8855
|
color: "on-dark",
|
|
8854
8856
|
onToggle: h
|
|
8855
8857
|
})),
|
|
8856
|
-
n.closable ? (G(),
|
|
8858
|
+
n.closable ? (G(), Ut(jt, {
|
|
8857
8859
|
key: 1,
|
|
8858
8860
|
icon: "close",
|
|
8859
8861
|
color: "on-dark",
|
|
8860
8862
|
onClick: m[0] || (m[0] = (g) => r("close"))
|
|
8861
|
-
})) :
|
|
8863
|
+
})) : Kt("", !0)
|
|
8862
8864
|
])
|
|
8863
8865
|
], 2));
|
|
8864
8866
|
}
|
|
8865
|
-
}),
|
|
8867
|
+
}), rh = /* @__PURE__ */ dt(nh, [["__scopeId", "data-v-3e22e98c"]]), oh = { class: "video-display-panel-wrapper" }, hh = { class: "video-layout-content" }, lh = { class: "video-layout-controls" }, dh = /* @__PURE__ */ lt({
|
|
8866
8868
|
__name: "video-layout",
|
|
8867
8869
|
props: {
|
|
8868
8870
|
title: {},
|
|
@@ -8874,37 +8876,45 @@ const Wo = { class: "controls-group__actions" }, zo = /* @__PURE__ */ lt({
|
|
|
8874
8876
|
},
|
|
8875
8877
|
emits: ["close-player", "close-session", "make-screenshot", "toggle-record"],
|
|
8876
8878
|
setup(a, { emit: t }) {
|
|
8877
|
-
const { size: e } =
|
|
8878
|
-
return (n, r) => (G(),
|
|
8879
|
-
class:
|
|
8879
|
+
const { size: e } = ye("size"), s = a, i = t;
|
|
8880
|
+
return (n, r) => (G(), ft("media-controls", {
|
|
8881
|
+
class: be(["video-layout controls", `video-layout--${ot(e)}`])
|
|
8880
8882
|
}, [
|
|
8881
|
-
at("div",
|
|
8882
|
-
s.hideVideoDisplayPanel ?
|
|
8883
|
+
at("div", oh, [
|
|
8884
|
+
s.hideVideoDisplayPanel ? Kt("", !0) : (G(), Ut(rh, {
|
|
8883
8885
|
key: 0,
|
|
8884
8886
|
title: s.title,
|
|
8885
8887
|
username: s.username,
|
|
8886
8888
|
closable: s.closable,
|
|
8887
8889
|
"hide-expand": s.hideExpand,
|
|
8888
8890
|
onClose: r[0] || (r[0] = (o) => i("close-player"))
|
|
8889
|
-
},
|
|
8891
|
+
}, Ds({ _: 2 }, [
|
|
8892
|
+
n.$slots.avatar ? {
|
|
8893
|
+
name: "avatar",
|
|
8894
|
+
fn: Qt(() => [
|
|
8895
|
+
pt(n.$slots, "avatar", {}, void 0, !0)
|
|
8896
|
+
]),
|
|
8897
|
+
key: "0"
|
|
8898
|
+
} : void 0
|
|
8899
|
+
]), 1032, ["title", "username", "closable", "hide-expand"]))
|
|
8890
8900
|
]),
|
|
8891
|
-
at("media-controls-group",
|
|
8892
|
-
|
|
8901
|
+
at("media-controls-group", hh, [
|
|
8902
|
+
pt(n.$slots, "content", {}, void 0, !0)
|
|
8893
8903
|
]),
|
|
8894
|
-
at("div",
|
|
8895
|
-
s.hideControlsPanel ?
|
|
8896
|
-
U(ot(
|
|
8904
|
+
at("div", lh, [
|
|
8905
|
+
s.hideControlsPanel ? Kt("", !0) : pt(n.$slots, "controls-panel", { key: 0 }, () => [
|
|
8906
|
+
U(ot(vh))
|
|
8897
8907
|
], !0)
|
|
8898
8908
|
])
|
|
8899
8909
|
], 2));
|
|
8900
8910
|
}
|
|
8901
|
-
}),
|
|
8911
|
+
}), ch = /* @__PURE__ */ dt(dh, [["__scopeId", "data-v-5e27fce0"]]), uh = { class: "play-button" }, ph = /* @__PURE__ */ lt({
|
|
8902
8912
|
__name: "play-button",
|
|
8903
8913
|
setup(a) {
|
|
8904
|
-
const { size: t } =
|
|
8914
|
+
const { size: t } = ye("size");
|
|
8905
8915
|
return (e, s) => {
|
|
8906
|
-
const i =
|
|
8907
|
-
return G(),
|
|
8916
|
+
const i = Ri("wt-button");
|
|
8917
|
+
return G(), ft("media-play-button", uh, [
|
|
8908
8918
|
U(i, {
|
|
8909
8919
|
size: ot(t),
|
|
8910
8920
|
variant: "outlined",
|
|
@@ -8928,26 +8938,26 @@ const Wo = { class: "controls-group__actions" }, zo = /* @__PURE__ */ lt({
|
|
|
8928
8938
|
]);
|
|
8929
8939
|
};
|
|
8930
8940
|
}
|
|
8931
|
-
}),
|
|
8941
|
+
}), mh = /* @__PURE__ */ dt(ph, [["__scopeId", "data-v-b5fb70ec"]]), fh = { class: "time-slider media-slider" }, gh = /* @__PURE__ */ lt({
|
|
8932
8942
|
__name: "time-slider",
|
|
8933
8943
|
setup(a) {
|
|
8934
|
-
return (t, e) => (G(),
|
|
8935
|
-
U(
|
|
8944
|
+
return (t, e) => (G(), ft("media-time-slider", fh, [
|
|
8945
|
+
U(ga, { class: "time-slider__slider" })
|
|
8936
8946
|
]));
|
|
8937
8947
|
}
|
|
8938
|
-
}),
|
|
8948
|
+
}), yh = /* @__PURE__ */ dt(gh, [["__scopeId", "data-v-fbc2d9f8"]]), bh = /* @__PURE__ */ lt({
|
|
8939
8949
|
__name: "playback-controls-panel",
|
|
8940
8950
|
setup(a) {
|
|
8941
|
-
return (t, e) => (G(),
|
|
8942
|
-
default:
|
|
8943
|
-
U(
|
|
8944
|
-
U(
|
|
8945
|
-
U(
|
|
8951
|
+
return (t, e) => (G(), Ut(ot(Yo), { class: "playback-control-panel" }, {
|
|
8952
|
+
default: Qt(() => [
|
|
8953
|
+
U(mh),
|
|
8954
|
+
U(yh),
|
|
8955
|
+
U(la)
|
|
8946
8956
|
], void 0, !0),
|
|
8947
8957
|
_: 1
|
|
8948
8958
|
}));
|
|
8949
8959
|
}
|
|
8950
|
-
}),
|
|
8960
|
+
}), vh = /* @__PURE__ */ dt(bh, [["__scopeId", "data-v-e27c3292"]]), $h = ["autoplay", "muted", "src"], wh = /* @__PURE__ */ lt({
|
|
8951
8961
|
__name: "wt-vidstack-player",
|
|
8952
8962
|
props: {
|
|
8953
8963
|
src: {},
|
|
@@ -8970,22 +8980,22 @@ const Wo = { class: "controls-group__actions" }, zo = /* @__PURE__ */ lt({
|
|
|
8970
8980
|
emits: ["close", "change-size"],
|
|
8971
8981
|
setup(a, { emit: t }) {
|
|
8972
8982
|
const e = a, s = t, i = us(e.size || Y.SM), n = us(!1);
|
|
8973
|
-
|
|
8983
|
+
Oi("size", {
|
|
8974
8984
|
size: i,
|
|
8975
8985
|
fullscreen: n,
|
|
8976
8986
|
changeSize: (m) => {
|
|
8977
8987
|
i.value = m, s("change-size", m);
|
|
8978
8988
|
}
|
|
8979
8989
|
});
|
|
8980
|
-
const { src: o, mime: h, stream: d } =
|
|
8990
|
+
const { src: o, mime: h, stream: d } = Ni(e), { normalizedSrcObject: c } = da({
|
|
8981
8991
|
src: o,
|
|
8982
8992
|
type: h,
|
|
8983
8993
|
stream: d
|
|
8984
8994
|
}), u = (m) => {
|
|
8985
8995
|
e.autoplay && m.target?.play();
|
|
8986
8996
|
};
|
|
8987
|
-
return (m, g) => (G(),
|
|
8988
|
-
class:
|
|
8997
|
+
return (m, g) => (G(), ft("div", {
|
|
8998
|
+
class: be([[
|
|
8989
8999
|
`wt-vidstack-player--${i.value}`,
|
|
8990
9000
|
`wt-vidstack-player-video-object-fit--${e.videoObjectFit}`,
|
|
8991
9001
|
n.value && "wt-vidstack-player--fullscreen",
|
|
@@ -9006,7 +9016,7 @@ const Wo = { class: "controls-group__actions" }, zo = /* @__PURE__ */ lt({
|
|
|
9006
9016
|
onCanPlay: u
|
|
9007
9017
|
}, [
|
|
9008
9018
|
g[2] || (g[2] = at("media-provider", { class: "wt-vidstack-player__provider" }, null, -1)),
|
|
9009
|
-
U(ot(
|
|
9019
|
+
U(ot(ch), {
|
|
9010
9020
|
autoplay: e.autoplay,
|
|
9011
9021
|
closable: e.closable,
|
|
9012
9022
|
"hide-controls-panel": e.hideControlsPanel,
|
|
@@ -9015,34 +9025,42 @@ const Wo = { class: "controls-group__actions" }, zo = /* @__PURE__ */ lt({
|
|
|
9015
9025
|
title: e.title,
|
|
9016
9026
|
username: e.username,
|
|
9017
9027
|
onClosePlayer: g[0] || (g[0] = (E) => s("close"))
|
|
9018
|
-
}, {
|
|
9019
|
-
"controls-panel":
|
|
9020
|
-
|
|
9028
|
+
}, Ds({
|
|
9029
|
+
"controls-panel": Qt(() => [
|
|
9030
|
+
pt(m.$slots, "controls-panel", { size: i.value }, void 0, !0)
|
|
9021
9031
|
]),
|
|
9022
|
-
content:
|
|
9023
|
-
|
|
9032
|
+
content: Qt(() => [
|
|
9033
|
+
pt(m.$slots, "content", { size: i.value }, void 0, !0)
|
|
9024
9034
|
]),
|
|
9025
|
-
_:
|
|
9026
|
-
},
|
|
9027
|
-
|
|
9035
|
+
_: 2
|
|
9036
|
+
}, [
|
|
9037
|
+
m.$slots.avatar ? {
|
|
9038
|
+
name: "avatar",
|
|
9039
|
+
fn: Qt(() => [
|
|
9040
|
+
pt(m.$slots, "avatar", {}, void 0, !0)
|
|
9041
|
+
]),
|
|
9042
|
+
key: "0"
|
|
9043
|
+
} : void 0
|
|
9044
|
+
]), 1032, ["autoplay", "closable", "hide-controls-panel", "hide-expand", "hide-video-display-panel", "title", "username"])
|
|
9045
|
+
], 40, $h)
|
|
9028
9046
|
], 2));
|
|
9029
9047
|
}
|
|
9030
|
-
}),
|
|
9048
|
+
}), Th = /* @__PURE__ */ dt(wh, [["__scopeId", "data-v-c2776ce5"]]), Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9031
9049
|
__proto__: null,
|
|
9032
|
-
default:
|
|
9050
|
+
default: Th
|
|
9033
9051
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9034
9052
|
export {
|
|
9035
|
-
|
|
9053
|
+
x as L,
|
|
9036
9054
|
X as Q,
|
|
9037
|
-
|
|
9038
|
-
|
|
9055
|
+
pe as T,
|
|
9056
|
+
zs as a,
|
|
9039
9057
|
k as b,
|
|
9040
|
-
|
|
9058
|
+
js as c,
|
|
9041
9059
|
xe as d,
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9060
|
+
le as e,
|
|
9061
|
+
Ch as f,
|
|
9062
|
+
Ka as g,
|
|
9063
|
+
Eh as l,
|
|
9064
|
+
ee as p,
|
|
9065
|
+
Ih as w
|
|
9048
9066
|
};
|