@vindral/web-sdk 4.8.2-7-g32fc5acc → 4.8.2-9-gec246501
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/{wqfvKsPC.js → BeUVgVO0.js} +816 -820
- package/{B7og9eeP.js → C1ebXKEm.js} +32 -32
- package/CG3eQNjj.js +196 -0
- package/core.d.ts +8 -0
- package/core.js +1 -1
- package/legacy.d.ts +8 -0
- package/legacy.es.js +164 -164
- package/legacy.umd.js +106 -106
- package/package.json +1 -1
- package/player.d.ts +8 -0
- package/player.js +2 -2
- package/react.d.ts +8 -0
- package/vindral-player-component.js +2 -2
- package/gwIcUlXg.js +0 -196
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./CFqytvUK.js";
|
|
2
|
-
import { C as t, D as n, E as r, O as i, S as a, T as o, _ as s, b as c, g as l, h as u, k as d, m as f, p as ee, t as te, v as ne, w as re, x as ie, y as ae } from "./
|
|
2
|
+
import { C as t, D as n, E as r, O as i, S as a, T as o, _ as s, b as c, g as l, h as u, k as d, m as f, p as ee, t as te, v as ne, w as re, x as ie, y as ae } from "./C1ebXKEm.js";
|
|
3
3
|
import { t as oe } from "./CuYn2z5X.js";
|
|
4
4
|
import { i as p, n as m, r as h, t as g } from "./DSw1XhvD.js";
|
|
5
5
|
import { t as _ } from "./CXMDq12B.js";
|
|
@@ -1315,56 +1315,52 @@ var Rr = (e) => {
|
|
|
1315
1315
|
var t;
|
|
1316
1316
|
let n = "observedAttributes" in e.constructor ? e.constructor.observedAttributes : void 0;
|
|
1317
1317
|
return !n && (t = e.nodeName) != null && t.includes("-") && (globalThis.customElements.upgrade(e), n = "observedAttributes" in e.constructor ? e.constructor.observedAttributes : void 0), Array.isArray(n) ? n.filter((e) => Oe.includes(e)) : [];
|
|
1318
|
+
}, zr = {
|
|
1319
|
+
h: 3600,
|
|
1320
|
+
m: 60,
|
|
1321
|
+
s: 1
|
|
1318
1322
|
};
|
|
1319
|
-
|
|
1320
|
-
//#region ../../libs/player-next/src/utils/humanReadableTimeToSeconds.ts
|
|
1321
|
-
function zr(e) {
|
|
1323
|
+
function Br(e) {
|
|
1322
1324
|
if (typeof e != "string") return NaN;
|
|
1323
|
-
let t =
|
|
1324
|
-
return t
|
|
1325
|
-
var n
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
case "h": return e + i * 3600;
|
|
1329
|
-
case "m": return e + i * 60;
|
|
1330
|
-
case "s": return e + i;
|
|
1331
|
-
default: return e;
|
|
1332
|
-
}
|
|
1333
|
-
}, 0);
|
|
1325
|
+
let t = e.match(/\d+(?:\.\d+)?[hms]/gi);
|
|
1326
|
+
return t ? t.reduce((e, t) => {
|
|
1327
|
+
var n;
|
|
1328
|
+
return e + parseFloat(t) * ((n = zr[t.slice(-1).toLowerCase()]) == null ? 0 : n);
|
|
1329
|
+
}, 0) : NaN;
|
|
1334
1330
|
}
|
|
1335
1331
|
//#endregion
|
|
1336
1332
|
//#region ../../libs/player-next/src/utils/timelineMarkers.ts
|
|
1337
|
-
var
|
|
1338
|
-
|
|
1339
|
-
},
|
|
1333
|
+
var Vr = ue.get().createContext("TimelineMarkers"), Hr = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2})?(\.\d+)?$/, Ur = (e) => {
|
|
1334
|
+
Vr.warn(`Timeline marker time "${e}" has no timezone and is interpreted in the viewer's local timezone, so it can land at a different position for viewers in other timezones. Provide an ISO 8601 time with an offset (e.g. "${e}Z") or epoch milliseconds.`);
|
|
1335
|
+
}, Wr = (e) => {
|
|
1340
1336
|
if (typeof e == "number" && Number.isFinite(e)) return e;
|
|
1341
1337
|
if (typeof e == "string") {
|
|
1342
1338
|
let t = Date.parse(e);
|
|
1343
|
-
return Number.isNaN(t) ? null : (
|
|
1339
|
+
return Number.isNaN(t) ? null : (Hr.test(e) && Ur(e), t);
|
|
1344
1340
|
}
|
|
1345
1341
|
if (e instanceof Date) {
|
|
1346
1342
|
let t = e.getTime();
|
|
1347
1343
|
return Number.isNaN(t) ? null : t;
|
|
1348
1344
|
}
|
|
1349
1345
|
return null;
|
|
1350
|
-
},
|
|
1346
|
+
}, Gr = (e) => {
|
|
1351
1347
|
if (typeof e != "object" || !e) return null;
|
|
1352
|
-
let { time: t, label: n, type: r } = e, i =
|
|
1348
|
+
let { time: t, label: n, type: r } = e, i = Wr(t);
|
|
1353
1349
|
if (i === null || typeof n != "string" || n.length === 0) return null;
|
|
1354
1350
|
let a = {
|
|
1355
1351
|
time: i,
|
|
1356
1352
|
label: n
|
|
1357
1353
|
};
|
|
1358
1354
|
return typeof r == "string" && r.length > 0 && (a.type = r), a;
|
|
1359
|
-
},
|
|
1355
|
+
}, Kr = (e) => {
|
|
1360
1356
|
if (!Array.isArray(e)) return [];
|
|
1361
|
-
let t = e.map(
|
|
1362
|
-
return n > 0 &&
|
|
1363
|
-
},
|
|
1357
|
+
let t = e.map(Gr).filter((e) => e !== null), n = e.length - t.length;
|
|
1358
|
+
return n > 0 && Vr.warn(`Dropped ${n} invalid timeline marker(s). Each marker needs a non-empty "label" and a valid "time" (epoch milliseconds, a Date, or an ISO 8601 string).`), t;
|
|
1359
|
+
}, qr = (e) => e ? Kr(se(e)) : [], Jr = (e, t, n) => {
|
|
1364
1360
|
if (!Number.isFinite(n) || n <= 0) return null;
|
|
1365
1361
|
let r = 1 - (t - e) / (n * 1e3);
|
|
1366
1362
|
return r < 0 || r > 1 ? null : r;
|
|
1367
|
-
},
|
|
1363
|
+
}, Yr = class extends de {
|
|
1368
1364
|
constructor(t) {
|
|
1369
1365
|
if (super(), e(this, "audioContext", void 0), e(this, "audioNode", void 0), e(this, "bufferLength", void 0), e(this, "animationFrameId", null), e(this, "canUseFloatTimeDomainData", void 0), e(this, "byteSampleBuffer", null), e(this, "floatSampleBuffer", null), e(this, "leftAnalyser", void 0), e(this, "rightAnalyser", void 0), e(this, "mediaElementSource", null), e(this, "update", () => {
|
|
1370
1366
|
let e = this.getDecibel(this.leftAnalyser, this.floatSampleBuffer || this.byteSampleBuffer), t = this.getDecibel(this.rightAnalyser, this.floatSampleBuffer || this.byteSampleBuffer);
|
|
@@ -1416,44 +1412,44 @@ var Br = ue.get().createContext("TimelineMarkers"), Vr = /^\d{4}-\d{2}-\d{2}[T ]
|
|
|
1416
1412
|
get isMediaElementSource() {
|
|
1417
1413
|
return this.source instanceof HTMLMediaElement;
|
|
1418
1414
|
}
|
|
1419
|
-
}, j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(),
|
|
1415
|
+
}, j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), Qr = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), ei = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakMap(), ni = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), ii = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), oi = /* @__PURE__ */ new WeakMap(), si = /* @__PURE__ */ new WeakMap(), ci = /* @__PURE__ */ new WeakMap(), li = /* @__PURE__ */ new WeakMap(), ui = class {
|
|
1420
1416
|
constructor(t, n) {
|
|
1421
|
-
w(this, F), p(this, j, void 0), p(this, M, void 0), p(this, N, void 0), p(this,
|
|
1422
|
-
g(j, this).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !g(j, this).paused && h(F, this,
|
|
1423
|
-
}), p(this,
|
|
1424
|
-
g(j, this).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA && h(F, this,
|
|
1425
|
-
}), m(M, this, t), m(
|
|
1417
|
+
w(this, F), p(this, j, void 0), p(this, M, void 0), p(this, N, void 0), p(this, Xr, void 0), p(this, Zr, void 0), e(this, "userPaused", !0), p(this, Qr, void 0), p(this, $r, void 0), p(this, ei, !1), p(this, ti, !1), p(this, ni, null), p(this, ri, 0), p(this, ii, null), p(this, ai, !1), p(this, P, ue.get().createContext("HlsPlayer")), p(this, oi, () => h(F, this, wi).call(this, !0)), p(this, si, () => h(F, this, wi).call(this, !1)), p(this, ci, () => {
|
|
1418
|
+
g(j, this).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !g(j, this).paused && h(F, this, wi).call(this, !1);
|
|
1419
|
+
}), p(this, li, () => {
|
|
1420
|
+
g(j, this).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA && h(F, this, wi).call(this, !1);
|
|
1421
|
+
}), m(M, this, t), m($r, this, n == null ? void 0 : n.maxVideoBitRate), g(M, this).style.position = "absolute", g(M, this).style.top = "0", g(M, this).style.left = "0", g(M, this).style.width = "100%", g(M, this).style.height = "100%", g(M, this).style.opacity = "0", g(M, this).style.pointerEvents = "none", g(M, this).style.transition = "opacity 0.12s linear";
|
|
1426
1422
|
let r = document.createElement("video");
|
|
1427
|
-
m(j, this, r), t.appendChild(g(j, this)), g(j, this).style.width = "100%", g(j, this).style.height = "100%", g(j, this).setAttribute("playsinline", ""), g(j, this).setAttribute("webkit-playsinline", ""), g(j, this).setAttribute("preload", "metadata"), h(F, this,
|
|
1423
|
+
m(j, this, r), t.appendChild(g(j, this)), g(j, this).style.width = "100%", g(j, this).style.height = "100%", g(j, this).setAttribute("playsinline", ""), g(j, this).setAttribute("webkit-playsinline", ""), g(j, this).setAttribute("preload", "metadata"), h(F, this, Si).call(this), m(ai, this, g(j, this).muted), (n == null ? void 0 : n.volume) !== void 0 && (this.volume = n.volume), (n == null ? void 0 : n.muted) !== void 0 && (this.muted = n.muted);
|
|
1428
1424
|
}
|
|
1429
1425
|
hide() {
|
|
1430
|
-
m(
|
|
1426
|
+
m(ei, this, !0), m(ti, this, !1), g(M, this).classList.remove("active"), g(M, this).style.opacity = "0", g(M, this).style.pointerEvents = "none", m(ni, this, null);
|
|
1431
1427
|
}
|
|
1432
1428
|
play() {
|
|
1433
1429
|
var e = this;
|
|
1434
1430
|
return _(function* () {
|
|
1435
|
-
if (g(
|
|
1436
|
-
e.userPaused = !1, m(
|
|
1431
|
+
if (g(ii, e) !== null) {
|
|
1432
|
+
e.userPaused = !1, m(ii, e, !0);
|
|
1437
1433
|
return;
|
|
1438
1434
|
}
|
|
1439
|
-
return h(F, e,
|
|
1435
|
+
return h(F, e, hi).call(e);
|
|
1440
1436
|
})();
|
|
1441
1437
|
}
|
|
1442
1438
|
seek(e) {
|
|
1443
1439
|
var t = this;
|
|
1444
1440
|
return _(function* () {
|
|
1445
1441
|
if (g(P, t).debug("HlsPlayer seek to", e.time), !Number.isFinite(e.time)) {
|
|
1446
|
-
m(
|
|
1442
|
+
m(ni, t, null);
|
|
1447
1443
|
return;
|
|
1448
1444
|
}
|
|
1449
|
-
if (m(
|
|
1450
|
-
else return h(F, t,
|
|
1445
|
+
if (m(ni, t, e.time > .1 ? e.time : null), t.isActive() && g(N, t)) h(F, t, gi).call(t, e.time);
|
|
1446
|
+
else return h(F, t, _i).call(t, e);
|
|
1451
1447
|
})();
|
|
1452
1448
|
}
|
|
1453
1449
|
shouldIgnoreTimeupdate() {
|
|
1454
|
-
if (g(
|
|
1450
|
+
if (g(ni, this) == null) return !1;
|
|
1455
1451
|
let e = g(j, this).currentTime;
|
|
1456
|
-
return !Number.isFinite(e) || e <= .1 ? !0 : (m(
|
|
1452
|
+
return !Number.isFinite(e) || e <= .1 ? !0 : (m(ni, this, null), !1);
|
|
1457
1453
|
}
|
|
1458
1454
|
isPipSupported() {
|
|
1459
1455
|
return "pictureInPictureEnabled" in document && !g(j, this).disablePictureInPicture;
|
|
@@ -1468,7 +1464,7 @@ var Br = ue.get().createContext("TimelineMarkers"), Vr = /^\d{4}-\d{2}-\d{2}[T ]
|
|
|
1468
1464
|
return g(M, this).style.opacity === "1" || g(M, this).classList.contains("active");
|
|
1469
1465
|
}
|
|
1470
1466
|
cleanup() {
|
|
1471
|
-
h(F, this,
|
|
1467
|
+
h(F, this, Ci).call(this), h(F, this, mi).call(this), g(Qr, this) && (cancelAnimationFrame(g(Qr, this)), m(Qr, this, void 0)), m(ni, this, null), g(j, this).remove();
|
|
1472
1468
|
}
|
|
1473
1469
|
addEventListener(e, t) {
|
|
1474
1470
|
g(j, this).addEventListener(e, t);
|
|
@@ -1480,13 +1476,13 @@ var Br = ue.get().createContext("TimelineMarkers"), Vr = /^\d{4}-\d{2}-\d{2}[T ]
|
|
|
1480
1476
|
return g(j, this).dispatchEvent(e);
|
|
1481
1477
|
}
|
|
1482
1478
|
setTimeshiftUrl(e) {
|
|
1483
|
-
g(
|
|
1479
|
+
g(Zr, this) !== e && (g(P, this).debug("HLSPlayer Setting timeshift URL to", e), m(Zr, this, e));
|
|
1484
1480
|
}
|
|
1485
1481
|
get videoElement() {
|
|
1486
1482
|
return g(j, this);
|
|
1487
1483
|
}
|
|
1488
1484
|
pause() {
|
|
1489
|
-
this.userPaused = !0, g(
|
|
1485
|
+
this.userPaused = !0, g(ii, this) !== null && m(ii, this, !1), g(j, this).pause();
|
|
1490
1486
|
}
|
|
1491
1487
|
get paused() {
|
|
1492
1488
|
return g(j, this).paused;
|
|
@@ -1498,10 +1494,10 @@ var Br = ue.get().createContext("TimelineMarkers"), Vr = /^\d{4}-\d{2}-\d{2}[T ]
|
|
|
1498
1494
|
return g(j, this).volume;
|
|
1499
1495
|
}
|
|
1500
1496
|
set muted(e) {
|
|
1501
|
-
m(
|
|
1497
|
+
m(ai, this, e), g(j, this).muted = e;
|
|
1502
1498
|
}
|
|
1503
1499
|
get muted() {
|
|
1504
|
-
return g(
|
|
1500
|
+
return g(ai, this);
|
|
1505
1501
|
}
|
|
1506
1502
|
set currentTime(e) {
|
|
1507
1503
|
g(j, this).currentTime = e;
|
|
@@ -1516,17 +1512,17 @@ var Br = ue.get().createContext("TimelineMarkers"), Vr = /^\d{4}-\d{2}-\d{2}[T ]
|
|
|
1516
1512
|
return g(j, this).duration;
|
|
1517
1513
|
}
|
|
1518
1514
|
get maxVideoBitRate() {
|
|
1519
|
-
return g(
|
|
1515
|
+
return g($r, this);
|
|
1520
1516
|
}
|
|
1521
1517
|
set maxVideoBitRate(e) {
|
|
1522
|
-
m(
|
|
1518
|
+
m($r, this, e), e !== void 0 && g(N, this) && h(F, this, fi).call(this, e);
|
|
1523
1519
|
}
|
|
1524
1520
|
};
|
|
1525
|
-
function
|
|
1521
|
+
function di() {
|
|
1526
1522
|
var e = this;
|
|
1527
1523
|
return _(function* () {
|
|
1528
1524
|
let { default: t } = yield import("./DiWlRJyv.js");
|
|
1529
|
-
if (m(
|
|
1525
|
+
if (m(Xr, e, t), !t.isSupported()) {
|
|
1530
1526
|
g(P, e).warn("HLS not supported");
|
|
1531
1527
|
return;
|
|
1532
1528
|
}
|
|
@@ -1550,17 +1546,17 @@ function ui() {
|
|
|
1550
1546
|
testBandwidth: !1,
|
|
1551
1547
|
debug: !1
|
|
1552
1548
|
})), g(N, e).attachMedia(g(j, e)), g(N, e).on(t.Events.MEDIA_ATTACHED, () => g(P, e).debug("[HLS] media attached")), g(N, e).on(t.Events.MANIFEST_PARSED, () => g(P, e).debug("[HLS] manifest parsed")), g(N, e).on(t.Events.ERROR, (t, n) => {
|
|
1553
|
-
g(P, e).error("[HLS] error:", n), n.fatal && h(F, e,
|
|
1549
|
+
g(P, e).error("[HLS] error:", n), n.fatal && h(F, e, pi).call(e, n);
|
|
1554
1550
|
}), g(N, e).on(t.Events.MANIFEST_PARSED, () => {
|
|
1555
1551
|
var t;
|
|
1556
|
-
!g(
|
|
1552
|
+
!g($r, e) || ((t = g(N, e)) == null ? void 0 : t.levels.length) === 0 || h(F, e, fi).call(e, g($r, e));
|
|
1557
1553
|
}), g(N, e).on(t.Events.LEVEL_SWITCHED, () => {
|
|
1558
1554
|
var t, n;
|
|
1559
1555
|
g(P, e).debug("Level switched:", (t = g(N, e)) == null ? void 0 : t.currentLevel, "max:", e.maxVideoBitRate, "autoLevelCapping:", (n = g(N, e)) == null ? void 0 : n.autoLevelCapping);
|
|
1560
1556
|
});
|
|
1561
1557
|
})();
|
|
1562
1558
|
}
|
|
1563
|
-
function
|
|
1559
|
+
function fi(e) {
|
|
1564
1560
|
if (!g(N, this)) {
|
|
1565
1561
|
g(P, this).warn("HLS not initialized, cannot set bitrate cap");
|
|
1566
1562
|
return;
|
|
@@ -1576,12 +1572,12 @@ function di(e) {
|
|
|
1576
1572
|
let r = g(N, this).currentLevel;
|
|
1577
1573
|
g(N, this).autoLevelCapping = t, r !== t && (g(P, this).debug(`Current level ${r} exceeds cap ${t}, forcing immediate switch`), g(N, this).currentLevel = t);
|
|
1578
1574
|
}
|
|
1579
|
-
function
|
|
1580
|
-
if (!g(
|
|
1575
|
+
function pi(e) {
|
|
1576
|
+
if (!g(Xr, this)) {
|
|
1581
1577
|
g(P, this).error("Hls class not available for error handling");
|
|
1582
1578
|
return;
|
|
1583
1579
|
}
|
|
1584
|
-
let t = g(
|
|
1580
|
+
let t = g(Xr, this);
|
|
1585
1581
|
switch (e.type) {
|
|
1586
1582
|
case t.ErrorTypes.NETWORK_ERROR:
|
|
1587
1583
|
var n;
|
|
@@ -1592,14 +1588,14 @@ function fi(e) {
|
|
|
1592
1588
|
g(P, this).warn("[HLS] media error -> recoverMediaError"), (r = g(N, this)) == null || r.recoverMediaError();
|
|
1593
1589
|
break;
|
|
1594
1590
|
default:
|
|
1595
|
-
g(P, this).error("[HLS] fatal -> destroy"), h(F, this,
|
|
1591
|
+
g(P, this).error("[HLS] fatal -> destroy"), h(F, this, mi).call(this);
|
|
1596
1592
|
break;
|
|
1597
1593
|
}
|
|
1598
1594
|
}
|
|
1599
|
-
function
|
|
1595
|
+
function mi() {
|
|
1600
1596
|
g(N, this) && (g(N, this).destroy(), m(N, this, void 0));
|
|
1601
1597
|
}
|
|
1602
|
-
function
|
|
1598
|
+
function hi() {
|
|
1603
1599
|
var e = this;
|
|
1604
1600
|
return _(function* () {
|
|
1605
1601
|
try {
|
|
@@ -1609,35 +1605,35 @@ function mi() {
|
|
|
1609
1605
|
}
|
|
1610
1606
|
})();
|
|
1611
1607
|
}
|
|
1612
|
-
function
|
|
1608
|
+
function gi(e) {
|
|
1613
1609
|
if (!Number.isFinite(e)) {
|
|
1614
|
-
m(
|
|
1610
|
+
m(ni, this, null);
|
|
1615
1611
|
return;
|
|
1616
1612
|
}
|
|
1617
|
-
let t = h(F, this,
|
|
1618
|
-
m(
|
|
1613
|
+
let t = h(F, this, xi).call(this, g(j, this), e);
|
|
1614
|
+
m(ni, this, t > .1 ? t : null), g(Qr, this) && cancelAnimationFrame(g(Qr, this)), m(Qr, this, requestAnimationFrame(() => {
|
|
1619
1615
|
g(j, this).currentTime = t;
|
|
1620
1616
|
}));
|
|
1621
1617
|
}
|
|
1622
|
-
function
|
|
1618
|
+
function _i(e) {
|
|
1623
1619
|
var t = this;
|
|
1624
1620
|
return _(function* () {
|
|
1625
1621
|
var n;
|
|
1626
|
-
let { time: r, playWhenReady: i = !0 } = e || {}, a = m(
|
|
1627
|
-
if (m(
|
|
1628
|
-
g(P, t).warn("No timeshift URL"), m(
|
|
1622
|
+
let { time: r, playWhenReady: i = !0 } = e || {}, a = m(ri, t, (n = g(ri, t), ++n));
|
|
1623
|
+
if (m(ii, t, i), !g(Zr, t)) {
|
|
1624
|
+
g(P, t).warn("No timeshift URL"), m(ii, t, null);
|
|
1629
1625
|
return;
|
|
1630
1626
|
}
|
|
1631
|
-
if (!g(N, t) && (yield h(F, t,
|
|
1632
|
-
m(
|
|
1627
|
+
if (!g(N, t) && (yield h(F, t, di).call(t), !h(F, t, Ti).call(t, a))) return;
|
|
1628
|
+
m(ei, t, !1), m(ti, t, !1), g(N, t) && (!g(N, t).url || g(N, t).url !== g(Zr, t)) && (g(P, t).debug("Loading timeshift URL", g(Zr, t)), g(N, t).loadSource(g(Zr, t)));
|
|
1633
1629
|
let o = t.muted;
|
|
1634
|
-
if (g(j, t).muted = !0, yield h(F, t,
|
|
1635
|
-
h(F, t,
|
|
1636
|
-
let s = g(
|
|
1637
|
-
m(
|
|
1630
|
+
if (g(j, t).muted = !0, yield h(F, t, vi).call(t), !h(F, t, Ti).call(t, a)) return;
|
|
1631
|
+
h(F, t, gi).call(t, r);
|
|
1632
|
+
let s = g(ii, t);
|
|
1633
|
+
m(ii, t, null), !(s && (yield h(F, t, hi).call(t), !h(F, t, Ti).call(t, a))) && h(F, t, yi).call(t, o, a);
|
|
1638
1634
|
})();
|
|
1639
1635
|
}
|
|
1640
|
-
function
|
|
1636
|
+
function vi() {
|
|
1641
1637
|
return g(j, this).duration && !Number.isNaN(g(j, this).duration) ? Promise.resolve() : new Promise((e) => {
|
|
1642
1638
|
g(P, this).debug("Waiting for duration...");
|
|
1643
1639
|
let t = () => {
|
|
@@ -1648,11 +1644,11 @@ function _i() {
|
|
|
1648
1644
|
g(j, this).addEventListener("loadedmetadata", t);
|
|
1649
1645
|
});
|
|
1650
1646
|
}
|
|
1651
|
-
function
|
|
1647
|
+
function yi(e, t) {
|
|
1652
1648
|
let n = HTMLMediaElement.HAVE_CURRENT_DATA, r = () => g(j, this).readyState >= n && g(j, this).videoWidth > 0 && g(j, this).videoHeight > 0, i = () => {
|
|
1653
|
-
g(
|
|
1649
|
+
g(ei, this) || g(ti, this) || !h(F, this, Ti).call(this, t) || (m(ti, this, !0), g(P, this).debug("Revealing timeshift video"), g(M, this).classList.add("active"), g(M, this).style.opacity = "1", g(M, this).style.pointerEvents = "auto", g(j, this).dispatchEvent(new CustomEvent("timeshiftready", { detail: { activationId: t } })), e || h(F, this, bi).call(this, t));
|
|
1654
1650
|
}, a = () => {
|
|
1655
|
-
g(
|
|
1651
|
+
g(ei, this) || g(ti, this) || !h(F, this, Ti).call(this, t) || r() && (s(), i());
|
|
1656
1652
|
}, o = !1, s = () => {
|
|
1657
1653
|
o || (o = !0, g(j, this).removeEventListener("canplay", a), g(j, this).removeEventListener("canplaythrough", a), g(j, this).removeEventListener("loadeddata", a), clearTimeout(c));
|
|
1658
1654
|
};
|
|
@@ -1665,9 +1661,9 @@ function vi(e, t) {
|
|
|
1665
1661
|
g(P, this).debug("Timeout reached, forcing reveal"), s(), i();
|
|
1666
1662
|
}, 2e3);
|
|
1667
1663
|
}
|
|
1668
|
-
function
|
|
1664
|
+
function bi(e) {
|
|
1669
1665
|
let t = () => {
|
|
1670
|
-
h(F, this,
|
|
1666
|
+
h(F, this, Ti).call(this, e) && (g(j, this).muted = !1);
|
|
1671
1667
|
};
|
|
1672
1668
|
"requestVideoFrameCallback" in g(j, this) ? g(j, this).requestVideoFrameCallback(() => {
|
|
1673
1669
|
setTimeout(() => {
|
|
@@ -1677,43 +1673,43 @@ function yi(e) {
|
|
|
1677
1673
|
t();
|
|
1678
1674
|
}, 120);
|
|
1679
1675
|
}
|
|
1680
|
-
function
|
|
1676
|
+
function xi(e, t) {
|
|
1681
1677
|
let n = e.seekable;
|
|
1682
1678
|
if (!n || n.length === 0) return t;
|
|
1683
1679
|
let r = n.start(0), i = n.end(n.length - 1);
|
|
1684
1680
|
return g(P, this).debug("Clamped seekable:", Math.max(r, Math.min(t, i))), Math.max(r, Math.min(t, i));
|
|
1685
1681
|
}
|
|
1686
|
-
function
|
|
1687
|
-
for (let e of Ti._) g(j, this).addEventListener(e, g(ai, this));
|
|
1682
|
+
function Si() {
|
|
1688
1683
|
for (let e of Ei._) g(j, this).addEventListener(e, g(oi, this));
|
|
1689
|
-
|
|
1684
|
+
for (let e of Di._) g(j, this).addEventListener(e, g(si, this));
|
|
1685
|
+
g(j, this).addEventListener("timeupdate", g(ci, this)), g(j, this).addEventListener("progress", g(li, this));
|
|
1690
1686
|
}
|
|
1691
|
-
function
|
|
1692
|
-
for (let e of Ti._) g(j, this).removeEventListener(e, g(ai, this));
|
|
1687
|
+
function Ci() {
|
|
1693
1688
|
for (let e of Ei._) g(j, this).removeEventListener(e, g(oi, this));
|
|
1694
|
-
|
|
1689
|
+
for (let e of Di._) g(j, this).removeEventListener(e, g(si, this));
|
|
1690
|
+
g(j, this).removeEventListener("timeupdate", g(ci, this)), g(j, this).removeEventListener("progress", g(li, this));
|
|
1695
1691
|
}
|
|
1696
|
-
function
|
|
1692
|
+
function wi(e) {
|
|
1697
1693
|
let t = e && (g(j, this).readyState < HTMLMediaElement.HAVE_FUTURE_DATA || g(j, this).seeking || g(j, this).paused && !this.userPaused);
|
|
1698
1694
|
g(j, this).dispatchEvent(new CustomEvent(t ? "hlsbuffering" : "hlsnotbuffering", {
|
|
1699
1695
|
bubbles: !0,
|
|
1700
1696
|
composed: !0
|
|
1701
1697
|
}));
|
|
1702
1698
|
}
|
|
1703
|
-
function
|
|
1704
|
-
return g(
|
|
1699
|
+
function Ti(e) {
|
|
1700
|
+
return g(ri, this) === e;
|
|
1705
1701
|
}
|
|
1706
|
-
var
|
|
1702
|
+
var Ei = { _: [
|
|
1707
1703
|
"waiting",
|
|
1708
1704
|
"seeking",
|
|
1709
1705
|
"stalled",
|
|
1710
1706
|
"loadstart"
|
|
1711
|
-
] },
|
|
1707
|
+
] }, Di = { _: [
|
|
1712
1708
|
"canplay",
|
|
1713
1709
|
"canplaythrough",
|
|
1714
1710
|
"seeked",
|
|
1715
1711
|
"loadeddata"
|
|
1716
|
-
] },
|
|
1712
|
+
] }, Oi = class {
|
|
1717
1713
|
constructor(e) {
|
|
1718
1714
|
this.vindral = e;
|
|
1719
1715
|
}
|
|
@@ -1733,19 +1729,19 @@ var Ti = { _: [
|
|
|
1733
1729
|
pause() {
|
|
1734
1730
|
this.vindral.pause();
|
|
1735
1731
|
}
|
|
1736
|
-
},
|
|
1737
|
-
|
|
1738
|
-
var
|
|
1732
|
+
}, ki = document.createElement("template");
|
|
1733
|
+
ki.innerHTML = "\n <style>\n :host {\n --value: 0;\n --range-thickness: var(--vindral-range-thickness, 4px);\n --range-hover-thickness: var(--vindral-range-hover-thickness, var(--range-thickness));\n --range-thumb-size: var(--vindral-range-thumb-size, 12px);\n --range-thumb-hover-size: var(--vindral-range-thumb-hover-size, var(--range-thumb-size));\n --range-fill-color: var(--vindral-range-fill-color, var(--fg-strong));\n --range-thumb-color: var(--vindral-range-thumb-color, var(--fg-strong));\n --_focus-box-shadow: none;\n height: calc(var(--button-icon-size) + 2 * var(--button-padding));\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0 !important;\n margin: 0;\n position: relative;\n cursor: pointer;\n touch-action: none;\n box-shadow: var(--_focus-visible-box-shadow, none);\n outline: 0;\n background: transparent;\n }\n\n :host > * {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n #range {\n -webkit-appearance: none;\n appearance: none;\n\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n\n background-color: #00000000;\n outline: none;\n z-index: 1;\n cursor: pointer;\n }\n\n #range-track {\n position: absolute;\n top: calc(50% - calc(var(--range-thickness) / 2));\n left: 1px;\n width: calc(100% - 2px);\n height: var(--range-thickness);\n background-color: rgb(255 255 255 / 0.2);\n overflow: hidden;\n cursor: pointer;\n transition-property: height, top;\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) #range-track {\n height: var(--range-hover-thickness);\n top: calc(50% - calc(var(--range-hover-thickness) / 2));\n }\n }\n\n #range-track::before {\n position: absolute;\n content: \"\";\n left: calc(-100%);\n top: 0;\n width: calc(100%);\n height: 100%;\n background: var(--range-fill-color);\n transition: background-color 300ms ease-out;\n transform-origin: 100% 0%;\n transform: translateX(calc(var(--value) * 100%)) scaleX(1.2);\n }\n\n #range::-webkit-slider-runnable-track {\n background: transparent;\n }\n\n #range::-moz-range-track {\n background: transparent;\n }\n\n #range::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: var(--range-thumb-size);\n height: var(--range-thumb-size);\n border-radius: 50%;\n background: var(--range-thumb-color);\n cursor: pointer;\n z-index: 1;\n transition-property: width, height;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n #range::-moz-range-thumb {\n -moz-appearance: none;\n appearance: none;\n width: var(--range-thumb-size);\n height: var(--range-thumb-size);\n border-radius: 50%;\n background: var(--range-thumb-color);\n cursor: pointer;\n z-index: 1;\n border: none;\n transition-property: width, height;\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n transition-duration: 0.1s;\n }\n\n :host:has(#range:focus-visible) {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n }\n\n @media (hover: hover) and (pointer: fine) {\n :host(:hover) #range::-webkit-slider-thumb {\n width: var(--range-thumb-hover-size);\n height: var(--range-thumb-hover-size);\n }\n\n :host(:hover) #range::-moz-range-thumb {\n width: var(--range-thumb-hover-size);\n height: var(--range-thumb-hover-size);\n }\n }\n </style>\n\n <input type=\"range\" id=\"range\" min=\"0\" max=\"1\" step=\"any\" value=\"0\" />\n <div id=\"range-track\"></div>\n";
|
|
1734
|
+
var Ai = /* @__PURE__ */ new WeakMap(), ji = /* @__PURE__ */ new WeakMap(), Mi = class extends HTMLElement {
|
|
1739
1735
|
constructor() {
|
|
1740
|
-
super(), p(this,
|
|
1736
|
+
super(), p(this, Ai, null), p(this, ji, void 0), e(this, "range", void 0), m(ji, this, this.attachShadow({ mode: "open" })), g(ji, this).appendChild(ki.content.cloneNode(!0)), this.range = g(ji, this).getElementById("range");
|
|
1741
1737
|
}
|
|
1742
1738
|
connectedCallback() {
|
|
1743
1739
|
var e;
|
|
1744
|
-
m(
|
|
1740
|
+
m(Ai, this, this.closest("vindral-controller")), (e = g(Ai, this)) == null || e.connectListener(this), this.hasAttribute("disabled") || this.enable();
|
|
1745
1741
|
}
|
|
1746
1742
|
disconnectedCallback() {
|
|
1747
1743
|
var e;
|
|
1748
|
-
(e = g(
|
|
1744
|
+
(e = g(Ai, this)) == null || e.disconnectListener(this);
|
|
1749
1745
|
}
|
|
1750
1746
|
attributeChangedCallback(e, t, n) {
|
|
1751
1747
|
t !== n && (e === "disabled" && n ? this.disable() : this.enable(), this.updateBar());
|
|
@@ -1771,11 +1767,11 @@ var ki = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakMap(), ji =
|
|
|
1771
1767
|
];
|
|
1772
1768
|
}
|
|
1773
1769
|
};
|
|
1774
|
-
e(
|
|
1770
|
+
e(Mi, "observedAttributes", ["disabled"]);
|
|
1775
1771
|
//#endregion
|
|
1776
1772
|
//#region ../../libs/player-next/src/components/Controller.ts
|
|
1777
|
-
var
|
|
1778
|
-
|
|
1773
|
+
var Ni = document.createElement("template");
|
|
1774
|
+
Ni.innerHTML = `
|
|
1779
1775
|
<style>
|
|
1780
1776
|
:host {
|
|
1781
1777
|
--fg-strong: var(--vindral-fg-strong, #eeeeee);
|
|
@@ -1988,7 +1984,7 @@ Mi.innerHTML = `
|
|
|
1988
1984
|
<slot id="overlay-interactive" name="overlay-interactive"></slot>
|
|
1989
1985
|
</div>
|
|
1990
1986
|
`;
|
|
1991
|
-
var
|
|
1987
|
+
var Pi = [
|
|
1992
1988
|
"ArrowDown",
|
|
1993
1989
|
"ArrowLeft",
|
|
1994
1990
|
"ArrowRight",
|
|
@@ -1997,27 +1993,27 @@ var Ni = [
|
|
|
1997
1993
|
" ",
|
|
1998
1994
|
"f",
|
|
1999
1995
|
"m"
|
|
2000
|
-
],
|
|
1996
|
+
], Fi, Ii = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), Ri = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), qi = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), oa = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakSet(), sa = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), ga = /* @__PURE__ */ new WeakMap(), _a = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), ba = /* @__PURE__ */ new WeakMap(), xa = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), Ca = /* @__PURE__ */ new WeakMap(), wa = /* @__PURE__ */ new WeakMap(), Ta = /* @__PURE__ */ new WeakMap(), Ea = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), Oa = /* @__PURE__ */ new WeakMap(), ka = /* @__PURE__ */ new WeakMap(), Aa = /* @__PURE__ */ new WeakMap(), ja = /* @__PURE__ */ new WeakMap(), Ma = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), Pa = /* @__PURE__ */ new WeakMap(), Fa = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), La = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakMap(), za = /* @__PURE__ */ new WeakMap(), Ba = /* @__PURE__ */ new WeakMap(), Va = class extends HTMLElement {
|
|
2001
1997
|
constructor() {
|
|
2002
1998
|
var t;
|
|
2003
|
-
super(), w(this, H), p(this,
|
|
1999
|
+
super(), w(this, H), p(this, Ii, /* @__PURE__ */ new Map()), p(this, Li, 2e3), p(this, Ri, null), p(this, zi, new Nr({ onChange: (e) => h(H, this, U).call(this, v.DURATION, e.toString()) })), p(this, Bi, null), p(this, Vi, void 0), p(this, I, void 0), p(this, L, void 0), p(this, Hi, void 0), p(this, R, void 0), p(this, Ui, void 0), p(this, Wi, Se), p(this, Gi, void 0), p(this, Ki, void 0), p(this, qi, void 0), p(this, Ji, void 0), p(this, z, void 0), p(this, Yi, void 0), p(this, Xi, void 0), p(this, Zi, void 0), p(this, B, void 0), p(this, Qi, void 0), p(this, $i, void 0), p(this, ea, void 0), p(this, V, void 0), p(this, ta, null), p(this, na, !1), p(this, ra, null), p(this, ia, void 0), p(this, aa, void 0), p(this, oa, void 0), p(this, sa, (e) => {
|
|
2004
2000
|
let t = e.filter((e) => {
|
|
2005
2001
|
var t;
|
|
2006
2002
|
return (t = e.video) == null ? void 0 : t.width;
|
|
2007
2003
|
});
|
|
2008
2004
|
h(H, this, U).call(this, v.RENDITION_LEVELS, JSON.stringify(t));
|
|
2009
|
-
}), p(this,
|
|
2005
|
+
}), p(this, ca, (e) => {
|
|
2010
2006
|
h(H, this, U).call(this, v.RENDITION_LEVEL, JSON.stringify(e));
|
|
2011
|
-
}), p(this,
|
|
2012
|
-
let t = g(
|
|
2013
|
-
m(
|
|
2007
|
+
}), p(this, la, !1), p(this, ua, (e) => {
|
|
2008
|
+
let t = g(la, this);
|
|
2009
|
+
m(la, this, !0);
|
|
2014
2010
|
try {
|
|
2015
2011
|
e();
|
|
2016
2012
|
} finally {
|
|
2017
|
-
m(
|
|
2013
|
+
m(la, this, t);
|
|
2018
2014
|
}
|
|
2019
|
-
}), p(this,
|
|
2020
|
-
g(
|
|
2015
|
+
}), p(this, da, (e) => {
|
|
2016
|
+
g(ua, this).call(this, () => {
|
|
2021
2017
|
switch (e) {
|
|
2022
2018
|
case "playing":
|
|
2023
2019
|
h(H, this, W).call(this, v.PAUSED), h(H, this, W).call(this, v.BUFFERING);
|
|
@@ -2031,40 +2027,40 @@ var Ni = [
|
|
|
2031
2027
|
default: break;
|
|
2032
2028
|
}
|
|
2033
2029
|
});
|
|
2034
|
-
}), p(this,
|
|
2035
|
-
g(
|
|
2030
|
+
}), p(this, fa, (e) => {
|
|
2031
|
+
g(ua, this).call(this, () => {
|
|
2036
2032
|
h(H, this, U).call(this, v.VOLUME, e.volume.toString()), e.isMuted ? h(H, this, U).call(this, v.MUTED, "") : h(H, this, W).call(this, v.MUTED);
|
|
2037
2033
|
});
|
|
2038
|
-
}), p(this,
|
|
2034
|
+
}), p(this, pa, ({ channelId: e }) => {
|
|
2039
2035
|
var t;
|
|
2040
2036
|
this.setAttribute(v.CHANNEL_ID, e), ((t = g(I, this)) == null ? void 0 : t.playbackState) !== "buffering" && h(H, this, W).call(this, v.BUFFERING);
|
|
2041
|
-
}), p(this,
|
|
2037
|
+
}), p(this, ma, ({ channelId: e }) => {
|
|
2042
2038
|
var t;
|
|
2043
|
-
g(
|
|
2044
|
-
}), p(this, ma, (e) => {
|
|
2045
|
-
m(Ia, this, Date.now()), h(H, this, U).call(this, v.CHANNELS, JSON.stringify(e));
|
|
2039
|
+
g(Gi, this) !== e && this.setAttribute(v.CHANNEL_ID, e), ((t = g(I, this)) == null ? void 0 : t.playbackState) !== "buffering" && h(H, this, W).call(this, v.BUFFERING);
|
|
2046
2040
|
}), p(this, ha, (e) => {
|
|
2041
|
+
m(La, this, Date.now()), h(H, this, U).call(this, v.CHANNELS, JSON.stringify(e));
|
|
2042
|
+
}), p(this, ga, (e) => {
|
|
2047
2043
|
var t;
|
|
2048
2044
|
h(H, this, U).call(this, v.LANGUAGES, JSON.stringify(e)), (t = g(I, this)) != null && t.language && h(H, this, U).call(this, v.LANGUAGE, g(I, this).language);
|
|
2049
|
-
}), p(this,
|
|
2045
|
+
}), p(this, _a, (e) => {
|
|
2050
2046
|
var t;
|
|
2051
2047
|
if (h(H, this, U).call(this, v.TEXT_TRACKS, JSON.stringify(e)), (t = g(I, this)) != null && t.textTrack) {
|
|
2052
2048
|
var n, r;
|
|
2053
2049
|
h(H, this, U).call(this, v.TEXT_TRACK, (n = (r = g(I, this)) == null ? void 0 : r.textTrack) == null ? "" : n);
|
|
2054
2050
|
}
|
|
2055
|
-
}), p(this, _a, (e) => {
|
|
2056
|
-
e != null && e.forVideo ? (h(H, this, U).call(this, v.NEEDS_USER_INPUT_VIDEO, ""), h(H, this, W).call(this, v.NEEDS_USER_INPUT_AUDIO)) : e != null && e.forAudio && (h(H, this, U).call(this, v.NEEDS_USER_INPUT_AUDIO, ""), h(H, this, W).call(this, v.NEEDS_USER_INPUT_VIDEO));
|
|
2057
2051
|
}), p(this, va, (e) => {
|
|
2058
|
-
e
|
|
2052
|
+
e != null && e.forVideo ? (h(H, this, U).call(this, v.NEEDS_USER_INPUT_VIDEO, ""), h(H, this, W).call(this, v.NEEDS_USER_INPUT_AUDIO)) : e != null && e.forAudio && (h(H, this, U).call(this, v.NEEDS_USER_INPUT_AUDIO, ""), h(H, this, W).call(this, v.NEEDS_USER_INPUT_VIDEO));
|
|
2059
2053
|
}), p(this, ya, (e) => {
|
|
2054
|
+
e || h(H, this, W).call(this, v.BUFFERING), g(zi, this).setLive(e);
|
|
2055
|
+
}), p(this, ba, (e) => {
|
|
2060
2056
|
var t, n;
|
|
2061
2057
|
let { urls: r, duration: i } = e;
|
|
2062
2058
|
if (!r[0] || !g(R, this)) return;
|
|
2063
2059
|
let a = new URL(r[0]);
|
|
2064
|
-
a.searchParams.set("channelId", (t = g(
|
|
2060
|
+
a.searchParams.set("channelId", (t = g(Gi, this)) == null ? "" : t);
|
|
2065
2061
|
let o = this.getAttribute("authentication-token");
|
|
2066
2062
|
o && a.searchParams.set("authToken", o);
|
|
2067
|
-
let s =
|
|
2063
|
+
let s = Br(i);
|
|
2068
2064
|
if (Number.isNaN(s)) {
|
|
2069
2065
|
g(V, this).error(`Invalid duration format: ${i}`);
|
|
2070
2066
|
return;
|
|
@@ -2074,70 +2070,70 @@ var Ni = [
|
|
|
2074
2070
|
let u = a.toString();
|
|
2075
2071
|
g(R, this).setTimeshiftUrl(u);
|
|
2076
2072
|
let d = new URL(a);
|
|
2077
|
-
d.pathname = d.pathname.replace(/[^/]*$/, "thumbs/playlist.m3u8"), m(
|
|
2073
|
+
d.pathname = d.pathname.replace(/[^/]*$/, "thumbs/playlist.m3u8"), m(Ui, this, d.toString()), h(H, this, U).call(this, v.TIMESHIFT_THUMBNAIL_URL, g(Ui, this)), g(zi, this).start({
|
|
2078
2074
|
multivariantUrl: u,
|
|
2079
2075
|
params: {
|
|
2080
|
-
channelId: (n = g(
|
|
2076
|
+
channelId: (n = g(Gi, this)) == null ? "" : n,
|
|
2081
2077
|
authToken: o == null ? void 0 : o,
|
|
2082
2078
|
from: l
|
|
2083
2079
|
},
|
|
2084
2080
|
windowCapSeconds: s
|
|
2085
2081
|
});
|
|
2086
|
-
}), p(this, ba, () => {
|
|
2087
|
-
h(H, this, W).call(this, v.PAUSED), h(H, this, W).call(this, v.BUFFERING);
|
|
2088
2082
|
}), p(this, xa, () => {
|
|
2089
|
-
h(H, this,
|
|
2083
|
+
h(H, this, W).call(this, v.PAUSED), h(H, this, W).call(this, v.BUFFERING);
|
|
2090
2084
|
}), p(this, Sa, () => {
|
|
2091
|
-
|
|
2085
|
+
h(H, this, U).call(this, v.PAUSED, ""), h(H, this, W).call(this, v.BUFFERING);
|
|
2092
2086
|
}), p(this, Ca, () => {
|
|
2093
|
-
g(
|
|
2087
|
+
g(Pa, this).call(this), h(H, this, W).call(this, v.BUFFERING);
|
|
2094
2088
|
}), p(this, wa, () => {
|
|
2089
|
+
g(R, this) && g(zi, this).applyLoadedDuration(g(R, this).duration);
|
|
2090
|
+
}), p(this, Ta, () => {
|
|
2095
2091
|
var e, t;
|
|
2096
2092
|
if (!g(R, this) || g(R, this).seeking || (e = (t = g(R, this)).shouldIgnoreTimeupdate) != null && e.call(t)) return;
|
|
2097
2093
|
let n = g(R, this).currentTime;
|
|
2098
2094
|
n !== void 0 && h(H, this, U).call(this, v.TIMESHIFT_POSITION, n.toString());
|
|
2099
|
-
}), p(this, Ta, () => {
|
|
2100
|
-
g(R, this) && (h(H, this, U).call(this, v.VOLUME, g(R, this).volume.toString()), g(R, this).muted ? h(H, this, U).call(this, v.MUTED, "") : h(H, this, W).call(this, v.MUTED));
|
|
2101
2095
|
}), p(this, Ea, () => {
|
|
2102
|
-
h(H, this, U).call(this, v.
|
|
2096
|
+
g(R, this) && (h(H, this, U).call(this, v.VOLUME, g(R, this).volume.toString()), g(R, this).muted ? h(H, this, U).call(this, v.MUTED, "") : h(H, this, W).call(this, v.MUTED));
|
|
2103
2097
|
}), p(this, Da, () => {
|
|
2104
|
-
h(H, this,
|
|
2098
|
+
h(H, this, U).call(this, v.BUFFERING, "");
|
|
2105
2099
|
}), p(this, Oa, () => {
|
|
2106
|
-
|
|
2100
|
+
h(H, this, W).call(this, v.BUFFERING);
|
|
2101
|
+
}), p(this, ka, () => {
|
|
2102
|
+
if (g(na, this)) {
|
|
2107
2103
|
if (g(L, this) !== g(R, this)) {
|
|
2108
|
-
m(
|
|
2104
|
+
m(na, this, !1);
|
|
2109
2105
|
return;
|
|
2110
2106
|
}
|
|
2111
|
-
m(
|
|
2107
|
+
m(na, this, !1), h(H, this, So).call(this);
|
|
2112
2108
|
}
|
|
2113
|
-
}), p(this,
|
|
2109
|
+
}), p(this, Aa, 0), e(this, "handleEvent", (e) => {
|
|
2114
2110
|
switch (e.type) {
|
|
2115
2111
|
case "pointerdown":
|
|
2116
|
-
m(
|
|
2112
|
+
m(Aa, this, e.timeStamp);
|
|
2117
2113
|
break;
|
|
2118
2114
|
case "pointermove":
|
|
2119
|
-
h(H, this,
|
|
2115
|
+
h(H, this, uo).call(this, e);
|
|
2120
2116
|
break;
|
|
2121
2117
|
case "pointerup":
|
|
2122
|
-
h(H, this,
|
|
2118
|
+
h(H, this, fo).call(this, e);
|
|
2123
2119
|
break;
|
|
2124
2120
|
case "mouseleave":
|
|
2125
|
-
h(H, this,
|
|
2121
|
+
h(H, this, bo).call(this);
|
|
2126
2122
|
break;
|
|
2127
2123
|
case "dblclick":
|
|
2128
|
-
h(H, this,
|
|
2124
|
+
h(H, this, mo).call(this, e);
|
|
2129
2125
|
break;
|
|
2130
2126
|
case "mousemove":
|
|
2131
|
-
h(H, this,
|
|
2127
|
+
h(H, this, ho).call(this, e);
|
|
2132
2128
|
break;
|
|
2133
2129
|
case "keydown":
|
|
2134
|
-
g(
|
|
2130
|
+
g(Na, this).call(this, e);
|
|
2135
2131
|
break;
|
|
2136
2132
|
case "keyup":
|
|
2137
|
-
h(H, this,
|
|
2133
|
+
h(H, this, bo).call(this), g(Ma, this).call(this, e);
|
|
2138
2134
|
break;
|
|
2139
2135
|
}
|
|
2140
|
-
}), p(this,
|
|
2136
|
+
}), p(this, ja, (e) => {
|
|
2141
2137
|
if (g(I, this) && (g(V, this).debug("Vindral event", { type: e.type }), e instanceof CustomEvent)) switch (e.type) {
|
|
2142
2138
|
case C.PLAY:
|
|
2143
2139
|
this.removeAttribute(v.PAUSED);
|
|
@@ -2182,10 +2178,10 @@ var Ni = [
|
|
|
2182
2178
|
}
|
|
2183
2179
|
break;
|
|
2184
2180
|
case C.CHANNEL_GRID_OPENED:
|
|
2185
|
-
g(
|
|
2181
|
+
g(ta, this) === null && h(H, this, _o).call(this);
|
|
2186
2182
|
break;
|
|
2187
2183
|
case C.CHANNEL_GRID_CLOSED:
|
|
2188
|
-
g(
|
|
2184
|
+
g(ta, this) !== null && (clearTimeout(g(ta, this)), m(ta, this, null));
|
|
2189
2185
|
break;
|
|
2190
2186
|
case C.ENTER_PIP:
|
|
2191
2187
|
this.setAttribute(v.IS_PIP, "");
|
|
@@ -2195,7 +2191,7 @@ var Ni = [
|
|
|
2195
2191
|
break;
|
|
2196
2192
|
case C.REQUEST_AIRPLAY:
|
|
2197
2193
|
var t;
|
|
2198
|
-
(t = g(
|
|
2194
|
+
(t = g(Zi, this)) == null || t.showPlaybackTargetPicker();
|
|
2199
2195
|
break;
|
|
2200
2196
|
case C.SET_LANGUAGE:
|
|
2201
2197
|
y(e.detail) ? this.setAttribute(v.LANGUAGE, e.detail) : this.removeAttribute(v.LANGUAGE);
|
|
@@ -2221,7 +2217,7 @@ var Ni = [
|
|
|
2221
2217
|
break;
|
|
2222
2218
|
}
|
|
2223
2219
|
case C.GO_LIVE:
|
|
2224
|
-
g(
|
|
2220
|
+
g(Pa, this).call(this);
|
|
2225
2221
|
break;
|
|
2226
2222
|
case C.TOGGLE_DEBUG_PANEL:
|
|
2227
2223
|
this.hasAttribute(v.DEBUG_PANEL_OPEN) ? this.removeAttribute(v.DEBUG_PANEL_OPEN) : this.setAttribute(v.DEBUG_PANEL_OPEN, "");
|
|
@@ -2233,71 +2229,71 @@ var Ni = [
|
|
|
2233
2229
|
}
|
|
2234
2230
|
break;
|
|
2235
2231
|
}
|
|
2236
|
-
}), p(this,
|
|
2232
|
+
}), p(this, Ma, (e) => {
|
|
2237
2233
|
let { key: t } = e;
|
|
2238
|
-
if (!
|
|
2234
|
+
if (!Pi.includes(t)) {
|
|
2239
2235
|
this.removeEventListener("keyup", this);
|
|
2240
2236
|
return;
|
|
2241
2237
|
}
|
|
2242
|
-
h(H, this,
|
|
2243
|
-
}), p(this,
|
|
2238
|
+
h(H, this, go).call(this, e);
|
|
2239
|
+
}), p(this, Na, (e) => {
|
|
2244
2240
|
let { metaKey: t, altKey: n, key: r } = e;
|
|
2245
|
-
t || n || !
|
|
2246
|
-
}), p(this,
|
|
2241
|
+
t || n || !Pi.includes(r) || this.addEventListener("keyup", this, { once: !0 });
|
|
2242
|
+
}), p(this, Pa, () => {
|
|
2247
2243
|
this.removeAttribute(v.TIMESHIFT_POSITION), this.handleTimeShiftUpdate(!1);
|
|
2248
|
-
}), p(this, Pa, (e) => {
|
|
2249
|
-
var t;
|
|
2250
|
-
g(R, this) || h(H, this, Ka).call(this), g(L, this) !== g(R, this) && (e && h(H, this, So).call(this), m(L, this, g(R, this)), h(H, this, Wa).call(this), h(H, this, Ga).call(this), h(H, this, Xa).call(this), (t = g(I, this)) == null || t.pause(), m(ta, this, e));
|
|
2251
2244
|
}), p(this, Fa, (e) => {
|
|
2245
|
+
var t;
|
|
2246
|
+
g(R, this) || h(H, this, qa).call(this), g(L, this) !== g(R, this) && (e && h(H, this, Co).call(this), m(L, this, g(R, this)), h(H, this, Ga).call(this), h(H, this, Ka).call(this), h(H, this, Za).call(this), (t = g(I, this)) == null || t.pause(), m(na, this, e));
|
|
2247
|
+
}), p(this, Ia, (e) => {
|
|
2252
2248
|
var t, n, r, i;
|
|
2253
|
-
e && h(H, this,
|
|
2254
|
-
h(H, this,
|
|
2249
|
+
e && h(H, this, Co).call(this), (t = g(R, this)) == null || t.hide(), m(L, this, g(Hi, this)), h(H, this, Za).call(this), this.hasAttribute(v.PAUSED) ? (n = g(L, this)) == null || n.pause() : (r = g(L, this)) == null || r.play(), h(H, this, Ya).call(this), h(H, this, Wa).call(this), (i = g(R, this)) == null || i.pause(), e && (m(na, this, !1), setTimeout(() => {
|
|
2250
|
+
h(H, this, So).call(this);
|
|
2255
2251
|
}, 100));
|
|
2256
2252
|
}), e(this, "handleTimeShiftUpdate", (e) => {
|
|
2257
2253
|
let t = this.hasAttribute(v.IS_PIP);
|
|
2258
2254
|
if (e !== !1) {
|
|
2259
2255
|
var n;
|
|
2260
|
-
g(
|
|
2256
|
+
g(Fa, this).call(this, t), (n = g(R, this)) == null || n.seek({
|
|
2261
2257
|
time: parseFloat(e),
|
|
2262
2258
|
playWhenReady: !this.hasAttribute(v.PAUSED)
|
|
2263
2259
|
});
|
|
2264
2260
|
return;
|
|
2265
2261
|
}
|
|
2266
|
-
g(L, this) !== g(
|
|
2267
|
-
}), p(this,
|
|
2262
|
+
g(L, this) !== g(Hi, this) && g(Ia, this).call(this, t);
|
|
2263
|
+
}), p(this, La, null), p(this, Ra, () => {
|
|
2268
2264
|
var e;
|
|
2269
2265
|
let t = (e = g(I, this)) == null ? void 0 : e.currentRenditionLevel;
|
|
2270
2266
|
if (!(t != null && t.video)) return;
|
|
2271
2267
|
let n = a(t.video.width > t.video.height ? "landscape-primary" : "portrait-primary");
|
|
2272
2268
|
n && n.catch(() => {});
|
|
2273
|
-
}), p(this,
|
|
2269
|
+
}), p(this, za, () => {
|
|
2274
2270
|
n();
|
|
2275
|
-
}), p(this,
|
|
2271
|
+
}), p(this, Ba, null);
|
|
2276
2272
|
let r = this.attachShadow({ mode: "open" });
|
|
2277
|
-
r.appendChild(
|
|
2273
|
+
r.appendChild(Ni.content.cloneNode(!0));
|
|
2278
2274
|
let i = _e(this.getAttribute("log-level"));
|
|
2279
|
-
m(V, this, ue.get().createContext("VindralController")), g(V, this).setLevel(i), m(
|
|
2280
|
-
|
|
2275
|
+
m(V, this, ue.get().createContext("VindralController")), g(V, this).setLevel(i), m(Vi, this, (t = this.shadowRoot) == null ? void 0 : t.querySelector("#time-shift-video")), m(ia, this, new ar(r)), this.addEventListener("focusin", (e) => {
|
|
2276
|
+
Fi = this, m(oa, this, e.composedPath()[0]);
|
|
2281
2277
|
});
|
|
2282
2278
|
}
|
|
2283
2279
|
connectedCallback() {
|
|
2284
2280
|
var e = this;
|
|
2285
2281
|
return _(function* () {
|
|
2286
|
-
if (g(
|
|
2287
|
-
if (clearTimeout(g(
|
|
2282
|
+
if (g(aa, e) !== void 0) {
|
|
2283
|
+
if (clearTimeout(g(aa, e)), m(aa, e, void 0), document.activeElement === document.body && Fi === e) {
|
|
2288
2284
|
var t;
|
|
2289
|
-
((t = g(
|
|
2285
|
+
((t = g(oa, e)) != null && t.isConnected ? g(oa, e) : e).focus({ preventScroll: !0 });
|
|
2290
2286
|
}
|
|
2291
2287
|
return;
|
|
2292
2288
|
}
|
|
2293
|
-
S(e.getAttribute("auto-instance-enabled"), !0) && (yield h(H, e,
|
|
2294
|
-
for (let t of Object.values(C)) e.addEventListener(t, g(
|
|
2295
|
-
window.PointerEvent ? (e.addEventListener("pointerdown", e), e.addEventListener("pointermove", e), e.addEventListener("pointerup", e)) : e.addEventListener("mousemove", e), e.addEventListener("mouseleave", e), e.addEventListener("keydown", e), e.addEventListener("resize", e), e.addEventListener("dblclick", e), g(
|
|
2289
|
+
S(e.getAttribute("auto-instance-enabled"), !0) && (yield h(H, e, Ua).call(e));
|
|
2290
|
+
for (let t of Object.values(C)) e.addEventListener(t, g(ja, e));
|
|
2291
|
+
window.PointerEvent ? (e.addEventListener("pointerdown", e), e.addEventListener("pointermove", e), e.addEventListener("pointerup", e)) : e.addEventListener("mousemove", e), e.addEventListener("mouseleave", e), e.addEventListener("keydown", e), e.addEventListener("resize", e), e.addEventListener("dblclick", e), g(ua, e).call(e, () => e.connectListener(e)), h(H, e, co).call(e), e.tabIndex = 0, e.focus({ preventScroll: !0 });
|
|
2296
2292
|
})();
|
|
2297
2293
|
}
|
|
2298
2294
|
disconnectedCallback() {
|
|
2299
|
-
m(
|
|
2300
|
-
m(
|
|
2295
|
+
m(aa, this, setTimeout(() => {
|
|
2296
|
+
m(aa, this, void 0), h(H, this, so).call(this);
|
|
2301
2297
|
}));
|
|
2302
2298
|
}
|
|
2303
2299
|
attributeChangedCallback(e, t, n) {
|
|
@@ -2308,22 +2304,22 @@ var Ni = [
|
|
|
2308
2304
|
newValue: n
|
|
2309
2305
|
}), e) {
|
|
2310
2306
|
case "channel-id":
|
|
2311
|
-
m(
|
|
2307
|
+
m(Gi, this, n), h(H, this, Ha).call(this), g(I, this) && n && (g(I, this).channelId = n, g(I, this).play(), h(H, this, U).call(this, v.BUFFERING, ""), h(H, this, U).call(this, v.CHANNEL_ID, n), h(H, this, U).call(this, v.POSTER_SRC, g(I, this).getThumbnailUrl()));
|
|
2312
2308
|
break;
|
|
2313
2309
|
case "channel-group-id":
|
|
2314
|
-
m(
|
|
2310
|
+
m(Ki, this, n);
|
|
2315
2311
|
break;
|
|
2316
2312
|
case "url":
|
|
2317
|
-
n && m(
|
|
2313
|
+
n && m(Wi, this, n);
|
|
2318
2314
|
break;
|
|
2319
2315
|
case "paused":
|
|
2320
2316
|
if (y(n)) {
|
|
2321
|
-
if (!g(
|
|
2317
|
+
if (!g(la, this)) {
|
|
2322
2318
|
var r;
|
|
2323
2319
|
(r = g(L, this)) == null || r.pause();
|
|
2324
2320
|
}
|
|
2325
2321
|
h(H, this, U).call(this, v.PAUSED, "");
|
|
2326
|
-
} else if (h(H, this, W).call(this, v.NEEDS_USER_INPUT_VIDEO), h(H, this, W).call(this, v.PAUSED), !g(
|
|
2322
|
+
} else if (h(H, this, W).call(this, v.NEEDS_USER_INPUT_VIDEO), h(H, this, W).call(this, v.PAUSED), !g(la, this)) {
|
|
2327
2323
|
var i;
|
|
2328
2324
|
(i = g(L, this)) == null || i.play();
|
|
2329
2325
|
}
|
|
@@ -2347,7 +2343,7 @@ var Ni = [
|
|
|
2347
2343
|
}
|
|
2348
2344
|
break;
|
|
2349
2345
|
case v.DEBUG_PANEL_OPEN:
|
|
2350
|
-
y(n) ? h(H, this, U).call(this, v.DEBUG_PANEL_OPEN, "") : h(H, this, W).call(this, v.DEBUG_PANEL_OPEN), h(H, this,
|
|
2346
|
+
y(n) ? h(H, this, U).call(this, v.DEBUG_PANEL_OPEN, "") : h(H, this, W).call(this, v.DEBUG_PANEL_OPEN), h(H, this, Oo).call(this);
|
|
2351
2347
|
break;
|
|
2352
2348
|
case "user-interacting":
|
|
2353
2349
|
y(n) ? h(H, this, U).call(this, v.USER_INTERACTING, "") : h(H, this, W).call(this, v.USER_INTERACTING);
|
|
@@ -2355,7 +2351,7 @@ var Ni = [
|
|
|
2355
2351
|
case "muted":
|
|
2356
2352
|
if (g(I, this)) if (y(n)) {
|
|
2357
2353
|
var a;
|
|
2358
|
-
if (g(
|
|
2354
|
+
if (g(la, this) || (g(I, this).muted = !0, g(R, this) && (g(R, this).muted = !0)), h(H, this, U).call(this, v.MUTED, ""), (a = g(B, this)) != null && a.isMediaElementSource) {
|
|
2359
2355
|
var o;
|
|
2360
2356
|
(o = g(B, this)) == null || o.stop(), h(H, this, U).call(this, v.VOLUME_LEVEL, JSON.stringify({
|
|
2361
2357
|
left: null,
|
|
@@ -2364,14 +2360,14 @@ var Ni = [
|
|
|
2364
2360
|
}
|
|
2365
2361
|
} else {
|
|
2366
2362
|
var s;
|
|
2367
|
-
g(
|
|
2363
|
+
g(la, this) || (g(I, this).muted = !1, g(R, this) && (g(R, this).muted = !1), g(I, this).volume === 0 && (g(I, this).volume = .3)), h(H, this, W).call(this, v.MUTED), h(H, this, W).call(this, v.NEEDS_USER_INPUT_AUDIO), (s = g(B, this)) == null || s.start();
|
|
2368
2364
|
}
|
|
2369
2365
|
break;
|
|
2370
2366
|
case "ui-locked":
|
|
2371
|
-
y(n) ? h(H, this,
|
|
2367
|
+
y(n) ? h(H, this, yo).call(this) : h(H, this, bo).call(this);
|
|
2372
2368
|
break;
|
|
2373
2369
|
case "is-fullscreen":
|
|
2374
|
-
y(n) ? h(H, this,
|
|
2370
|
+
y(n) ? h(H, this, wo).call(this) : h(H, this, To).call(this);
|
|
2375
2371
|
break;
|
|
2376
2372
|
case "abr-enabled":
|
|
2377
2373
|
{
|
|
@@ -2386,13 +2382,13 @@ var Ni = [
|
|
|
2386
2382
|
}
|
|
2387
2383
|
break;
|
|
2388
2384
|
case "max-video-bit-rate":
|
|
2389
|
-
m(
|
|
2385
|
+
m(qi, this, n), y(n) ? h(H, this, U).call(this, v.MAX_VIDEO_BITRATE, n) : h(H, this, W).call(this, v.MAX_VIDEO_BITRATE), g(R, this) && (g(R, this).maxVideoBitRate = n ? ve(n) : void 0);
|
|
2390
2386
|
break;
|
|
2391
2387
|
case "max-initial-bit-rate":
|
|
2392
|
-
m(
|
|
2388
|
+
m(Ji, this, n), y(n) ? h(H, this, U).call(this, v.MAX_INITIAL_BITRATE, n) : h(H, this, W).call(this, v.MAX_INITIAL_BITRATE);
|
|
2393
2389
|
break;
|
|
2394
2390
|
case "is-pip":
|
|
2395
|
-
y(n) ? h(H, this,
|
|
2391
|
+
y(n) ? h(H, this, So).call(this) : h(H, this, Co).call(this);
|
|
2396
2392
|
break;
|
|
2397
2393
|
case "is-airplaying":
|
|
2398
2394
|
if (y(n)) {
|
|
@@ -2406,17 +2402,17 @@ var Ni = [
|
|
|
2406
2402
|
case "is-casting":
|
|
2407
2403
|
if (y(n)) {
|
|
2408
2404
|
var d, f;
|
|
2409
|
-
(d = g(
|
|
2405
|
+
(d = g(Yi, this)) != null && d.isFullscreen() && h(H, this, To).call(this), (f = g(I, this)) == null || f.pause();
|
|
2410
2406
|
} else if (!document.hidden) {
|
|
2411
2407
|
var ee;
|
|
2412
2408
|
(ee = g(I, this)) == null || ee.play();
|
|
2413
2409
|
}
|
|
2414
2410
|
break;
|
|
2415
2411
|
case "cast-receiver-id":
|
|
2416
|
-
m(
|
|
2412
|
+
m($i, this, n);
|
|
2417
2413
|
break;
|
|
2418
2414
|
case "cast-background":
|
|
2419
|
-
m(
|
|
2415
|
+
m(ea, this, n);
|
|
2420
2416
|
break;
|
|
2421
2417
|
case "language":
|
|
2422
2418
|
g(I, this) && (g(I, this).language = n, y(n) ? h(H, this, U).call(this, v.LANGUAGE, n) : h(H, this, W).call(this, v.LANGUAGE));
|
|
@@ -2430,7 +2426,7 @@ var Ni = [
|
|
|
2430
2426
|
case "authentication-token":
|
|
2431
2427
|
if (y(n)) {
|
|
2432
2428
|
var te, ne;
|
|
2433
|
-
(te = g(I, this)) == null || te.updateAuthenticationToken(n), (ne = g(
|
|
2429
|
+
(te = g(I, this)) == null || te.updateAuthenticationToken(n), (ne = g(Zi, this)) == null || ne.updateAuthenticationToken(n), h(H, this, U).call(this, v.AUTHENTICATION_TOKEN, n);
|
|
2434
2430
|
} else h(H, this, W).call(this, v.AUTHENTICATION_TOKEN);
|
|
2435
2431
|
break;
|
|
2436
2432
|
case "volume":
|
|
@@ -2468,13 +2464,13 @@ var Ni = [
|
|
|
2468
2464
|
v.USER_INTERACTING,
|
|
2469
2465
|
v.PAUSED,
|
|
2470
2466
|
v.HIDE_UI_ON_PAUSE
|
|
2471
|
-
].includes(e) && h(H, this,
|
|
2467
|
+
].includes(e) && h(H, this, xo).call(this);
|
|
2472
2468
|
}
|
|
2473
2469
|
}
|
|
2474
2470
|
connectListener(e) {
|
|
2475
2471
|
Rr(e).forEach((t) => {
|
|
2476
|
-
let n = g(
|
|
2477
|
-
switch (n ? n.push(e) : g(
|
|
2472
|
+
let n = g(Ii, this).get(t);
|
|
2473
|
+
switch (n ? n.push(e) : g(Ii, this).set(t, [e]), t) {
|
|
2478
2474
|
case v.PAUSED:
|
|
2479
2475
|
var r;
|
|
2480
2476
|
(((r = g(I, this)) == null ? void 0 : r.playbackState) === "paused" || this.hasAttribute(v.PAUSED)) && e.setAttribute(v.PAUSED, "");
|
|
@@ -2484,7 +2480,7 @@ var Ni = [
|
|
|
2484
2480
|
((i = g(I, this)) != null && i.muted || this.hasAttribute(v.MUTED)) && e.setAttribute(v.MUTED, "");
|
|
2485
2481
|
break;
|
|
2486
2482
|
case v.MAX_VIDEO_BITRATE:
|
|
2487
|
-
g(
|
|
2483
|
+
g(qi, this) && e.setAttribute(v.MAX_VIDEO_BITRATE, g(qi, this));
|
|
2488
2484
|
break;
|
|
2489
2485
|
case v.SIZE_BASED_RESOLUTION_CAP_ENABLED:
|
|
2490
2486
|
{
|
|
@@ -2494,10 +2490,10 @@ var Ni = [
|
|
|
2494
2490
|
}
|
|
2495
2491
|
break;
|
|
2496
2492
|
case v.CHANNEL_ID:
|
|
2497
|
-
g(
|
|
2493
|
+
g(Gi, this) && e.setAttribute(v.CHANNEL_ID, g(Gi, this));
|
|
2498
2494
|
break;
|
|
2499
2495
|
case v.CHANNEL_GROUP_ID:
|
|
2500
|
-
g(
|
|
2496
|
+
g(Ki, this) && e.setAttribute(v.CHANNEL_GROUP_ID, g(Ki, this));
|
|
2501
2497
|
break;
|
|
2502
2498
|
case v.AUTHENTICATION_TOKEN: {
|
|
2503
2499
|
let t = this.getAttribute("authentication-token");
|
|
@@ -2510,7 +2506,7 @@ var Ni = [
|
|
|
2510
2506
|
break;
|
|
2511
2507
|
}
|
|
2512
2508
|
case v.TIMESHIFT_THUMBNAIL_URL:
|
|
2513
|
-
g(
|
|
2509
|
+
g(Ui, this) && e.setAttribute(v.TIMESHIFT_THUMBNAIL_URL, g(Ui, this));
|
|
2514
2510
|
break;
|
|
2515
2511
|
case v.DEBUG_PANEL_OPEN:
|
|
2516
2512
|
this.hasAttribute(v.DEBUG_PANEL_OPEN) && e.setAttribute(v.DEBUG_PANEL_OPEN, "");
|
|
@@ -2537,41 +2533,41 @@ var Ni = [
|
|
|
2537
2533
|
}
|
|
2538
2534
|
disconnectListener(e) {
|
|
2539
2535
|
Rr(e).forEach((t) => {
|
|
2540
|
-
let n = g(
|
|
2541
|
-
n && g(
|
|
2536
|
+
let n = g(Ii, this).get(t);
|
|
2537
|
+
n && g(Ii, this).set(t, n.filter((t) => t !== e));
|
|
2542
2538
|
});
|
|
2543
2539
|
}
|
|
2544
2540
|
get instance() {
|
|
2545
2541
|
return g(I, this);
|
|
2546
2542
|
}
|
|
2547
2543
|
get fullscreen() {
|
|
2548
|
-
return h(H, this,
|
|
2544
|
+
return h(H, this, eo).call(this);
|
|
2549
2545
|
}
|
|
2550
2546
|
get airPlay() {
|
|
2551
|
-
return g(
|
|
2547
|
+
return g(Zi, this);
|
|
2552
2548
|
}
|
|
2553
2549
|
get timelineMarkers() {
|
|
2554
|
-
return
|
|
2550
|
+
return qr(this.getAttribute(v.TIMELINE_MARKERS));
|
|
2555
2551
|
}
|
|
2556
2552
|
set timelineMarkers(e) {
|
|
2557
|
-
let t =
|
|
2553
|
+
let t = Kr(e);
|
|
2558
2554
|
t.length === 0 ? this.removeAttribute(v.TIMELINE_MARKERS) : this.setAttribute(v.TIMELINE_MARKERS, JSON.stringify(t));
|
|
2559
2555
|
}
|
|
2560
2556
|
connect() {
|
|
2561
|
-
h(H, this,
|
|
2557
|
+
h(H, this, Ua).call(this);
|
|
2562
2558
|
}
|
|
2563
2559
|
};
|
|
2564
|
-
function Va() {
|
|
2565
|
-
g(Hi, this) && (m(Hi, this, void 0), h(H, this, W).call(this, v.TIMESHIFT_THUMBNAIL_URL), h(H, this, W).call(this, v.SEEK_PREVIEW));
|
|
2566
|
-
}
|
|
2567
2560
|
function Ha() {
|
|
2561
|
+
g(Ui, this) && (m(Ui, this, void 0), h(H, this, W).call(this, v.TIMESHIFT_THUMBNAIL_URL), h(H, this, W).call(this, v.SEEK_PREVIEW));
|
|
2562
|
+
}
|
|
2563
|
+
function Ua() {
|
|
2568
2564
|
var e = this;
|
|
2569
2565
|
return _(function* () {
|
|
2570
2566
|
var t, n;
|
|
2571
|
-
if (!g(
|
|
2572
|
-
h(H, e,
|
|
2573
|
-
let r = g(L, e) === g(
|
|
2574
|
-
g(
|
|
2567
|
+
if (!g(Gi, e)) return;
|
|
2568
|
+
h(H, e, Ha).call(e);
|
|
2569
|
+
let r = g(L, e) === g(Hi, e);
|
|
2570
|
+
g(zi, e).stop(), yield (t = g(I, e)) == null ? void 0 : t.unload(), r && m(L, e, void 0);
|
|
2575
2571
|
let i = e.hasAttribute(v.PAUSED), a = e.hasAttribute(v.MUTED), o = ve(e.getAttribute(v.VOLUME)), s = typeof o == "number" ? Math.max(0, Math.min(1, o)) : o, c = ye(e.getAttribute(v.MEDIA)), l = e.getAttribute(v.TEXT_TRACK) || void 0, u = e.getAttribute("edge-url") || void 0, d = e.getAttribute("authentication-token") || void 0, f = ve(e.getAttribute("max-video-bit-rate")), ee = ve(e.getAttribute("max-initial-bit-rate")), ne = xe(e.getAttribute("max-size")), re = ve(e.getAttribute("min-buffer-time")), ie = ve(e.getAttribute("max-buffer-time")), ae = S(e.getAttribute("burst-enabled")), oe = S(e.getAttribute("mse-enabled")), p = S(e.getAttribute("mse-opus-enabled")), _ = S(e.getAttribute("background-play-enabled")), se = S(e.getAttribute("ios-background-play-enabled")), ce = S(e.getAttribute("media-session-enabled")), le = S(e.getAttribute("ios-wake-lock-enabled")), ue = S(e.getAttribute("stream-to-media-element-enabled")), de = S(e.getAttribute("ios-media-element-enabled")), fe = S(e.getAttribute("abr-enabled"), !0), pe = S(e.getAttribute("size-based-resolution-cap-enabled")), he = S(e.getAttribute("telemetry-enabled")), b = De(e.getAttribute("video-codecs")), Se = ge(e.getAttribute("poster")), Ce = be(e.getAttribute("advanced")), x = _e(e.getAttribute("log-level")), Te = {
|
|
2576
2572
|
headers: we(e.getAttribute("drm-headers")),
|
|
2577
2573
|
queryParams: we(e.getAttribute("drm-queryparams")),
|
|
@@ -2585,9 +2581,9 @@ function Ha() {
|
|
|
2585
2581
|
}
|
|
2586
2582
|
}, Ee = Ne(e.getAttribute("webcodecs-hardware-acceleration")), Oe = Me(e.getAttribute("decoders")), C = S(e.getAttribute("offscreen-canvas-enabled")), w = S(e.getAttribute("webtransport-enabled")), ke = S(e.getAttribute("unstable-webtransport-enabled")), Ae = ve(e.getAttribute("reconnect-retries")), je = Ae === void 0 ? void 0 : (e) => e.reconnectRetries < Ae, Pe = e.getAttribute("language") || void 0;
|
|
2587
2583
|
m(I, e, new te({
|
|
2588
|
-
url: g(
|
|
2589
|
-
channelId: g(
|
|
2590
|
-
channelGroupId: g(
|
|
2584
|
+
url: g(Wi, e),
|
|
2585
|
+
channelId: g(Gi, e),
|
|
2586
|
+
channelGroupId: g(Ki, e),
|
|
2591
2587
|
edgeUrl: u,
|
|
2592
2588
|
authenticationToken: d,
|
|
2593
2589
|
muted: a,
|
|
@@ -2623,49 +2619,49 @@ function Ha() {
|
|
|
2623
2619
|
decoders: Oe,
|
|
2624
2620
|
offscreenCanvasEnabled: C,
|
|
2625
2621
|
reconnectHandler: je
|
|
2626
|
-
})), m(
|
|
2622
|
+
})), m(Hi, e, new Oi(g(I, e))), g(L, e) || m(L, e, g(Hi, e)), h(H, e, Wa).call(e), m(Bi, e, (n = e.shadowRoot) == null ? void 0 : n.querySelector("#video")), g(Bi, e) && (g(I, e).attach(g(Bi, e)), g(ia, e).observe(g(Bi, e))), e.setAttribute(v.MEDIA, g(I, e).media);
|
|
2627
2623
|
let Fe = g(I, e);
|
|
2628
|
-
g(
|
|
2624
|
+
g(ua, e).call(e, () => {
|
|
2629
2625
|
Fe.muted && h(H, e, U).call(e, v.MUTED, ""), Fe.abrEnabled ? h(H, e, U).call(e, v.ABR_ENABLED, "") : h(H, e, W).call(e, v.ABR_ENABLED), h(H, e, U).call(e, v.SIZE_BASED_RESOLUTION_CAP_ENABLED, Fe.sizeBasedResolutionCapEnabled ? "true" : "false"), h(H, e, U).call(e, v.VOLUME, Fe.volume.toString());
|
|
2630
2626
|
}), y(Se) || h(H, e, U).call(e, v.POSTER_SRC, g(I, e).getThumbnailUrl());
|
|
2631
2627
|
let T = S(e.getAttribute(v.AIRPLAY_ENABLED), !1), Ie = S(e.getAttribute(v.CAST_ENABLED), !0), Le = S(e.getAttribute(v.FULLSCREEN_ENABLED), !0), Re = S(e.getAttribute(v.PIP_ENABLED), !0), ze = S(e.getAttribute(v.VU_METER_ENABLED), !1), Be = S(e.getAttribute(v.TIMESHIFT_ENABLED), !1);
|
|
2632
|
-
T && h(H, e,
|
|
2628
|
+
T && h(H, e, ao).call(e, g(I, e)), Ie && h(H, e, to).call(e, g(I, e)), Le && h(H, e, Qa).call(e, g(I, e)), Re && h(H, e, Xa).call(e, g(I, e)), i || g(I, e).play(), ze && h(H, e, oo).call(e, g(I, e)), e.dispatchEvent(new CustomEvent("vindral-instance-ready", {
|
|
2633
2629
|
bubbles: !0,
|
|
2634
2630
|
composed: !0,
|
|
2635
2631
|
detail: g(I, e)
|
|
2636
|
-
})), Be && (h(H, e,
|
|
2632
|
+
})), Be && (h(H, e, qa).call(e), Le && h(H, e, $a).call(e));
|
|
2637
2633
|
})();
|
|
2638
2634
|
}
|
|
2639
|
-
function Ua() {
|
|
2640
|
-
g(I, this) && (g(I, this).on("rendition levels", g(oa, this)), g(I, this).on("rendition level", g(sa, this)), g(I, this).on("playback state", g(ua, this)), g(I, this).on("volume state", g(da, this)), g(I, this).on("channel switch failed", g(fa, this)), g(I, this).on("channel switch", g(pa, this)), g(I, this).on("channels", g(ma, this)), g(I, this).on("languages", g(ha, this)), g(I, this).on("text tracks", g(ga, this)), g(I, this).on("needs user input", g(_a, this)), g(I, this).on("is live", g(va, this)), g(I, this).on("timeshift info", g(ya, this)));
|
|
2641
|
-
}
|
|
2642
2635
|
function Wa() {
|
|
2643
|
-
g(I, this) && (g(I, this).
|
|
2636
|
+
g(I, this) && (g(I, this).on("rendition levels", g(sa, this)), g(I, this).on("rendition level", g(ca, this)), g(I, this).on("playback state", g(da, this)), g(I, this).on("volume state", g(fa, this)), g(I, this).on("channel switch failed", g(pa, this)), g(I, this).on("channel switch", g(ma, this)), g(I, this).on("channels", g(ha, this)), g(I, this).on("languages", g(ga, this)), g(I, this).on("text tracks", g(_a, this)), g(I, this).on("needs user input", g(va, this)), g(I, this).on("is live", g(ya, this)), g(I, this).on("timeshift info", g(ba, this)));
|
|
2644
2637
|
}
|
|
2645
2638
|
function Ga() {
|
|
2646
|
-
g(
|
|
2639
|
+
g(I, this) && (g(I, this).off("playback state", g(da, this)), g(I, this).off("volume state", g(fa, this)), g(I, this).off("channel switch failed", g(pa, this)), g(I, this).off("channel switch", g(ma, this)), g(I, this).off("channels", g(ha, this)), g(I, this).off("languages", g(ga, this)), g(I, this).off("text tracks", g(_a, this)), g(I, this).off("needs user input", g(va, this)), g(I, this).off("is live", g(ya, this)), g(I, this).off("timeshift info", g(ba, this)));
|
|
2647
2640
|
}
|
|
2648
2641
|
function Ka() {
|
|
2642
|
+
g(R, this) && (g(R, this).addEventListener("playing", g(xa, this)), g(R, this).addEventListener("pause", g(Sa, this)), g(R, this).addEventListener("ended", g(Ca, this)), g(R, this).addEventListener("timeupdate", g(Ta, this)), g(R, this).addEventListener("volumechange", g(Ea, this)), g(R, this).addEventListener("hlsbuffering", g(Da, this)), g(R, this).addEventListener("hlsnotbuffering", g(Oa, this)), g(R, this).addEventListener("timeshiftready", g(ka, this)));
|
|
2643
|
+
}
|
|
2644
|
+
function qa() {
|
|
2649
2645
|
var e, t, n, r;
|
|
2650
2646
|
let i = ve(this.getAttribute(v.VOLUME)), a = i === void 0 ? (e = (t = g(L, this)) == null ? void 0 : t.volume) == null ? 1 : e : Math.max(0, Math.min(1, i)), o = S(this.getAttribute(v.MUTED), (n = (r = g(L, this)) == null ? void 0 : r.muted) == null ? !1 : n);
|
|
2651
|
-
h(H, this,
|
|
2647
|
+
h(H, this, Ja).call(this), m(R, this, new ui(g(Vi, this), {
|
|
2652
2648
|
volume: a,
|
|
2653
2649
|
muted: o,
|
|
2654
|
-
maxVideoBitRate: g(
|
|
2655
|
-
})), g(R, this).addEventListener("durationchange", g(
|
|
2656
|
-
}
|
|
2657
|
-
function qa() {
|
|
2658
|
-
g(R, this) && (h(H, this, Ja).call(this), g(R, this).removeEventListener("durationchange", g(Ca, this)), g(R, this).cleanup(), g(L, this) === g(R, this) && m(L, this, void 0), m(R, this, void 0));
|
|
2650
|
+
maxVideoBitRate: g(qi, this) ? parseInt(g(qi, this), 10) : void 0
|
|
2651
|
+
})), g(R, this).addEventListener("durationchange", g(wa, this));
|
|
2659
2652
|
}
|
|
2660
2653
|
function Ja() {
|
|
2661
|
-
g(R, this) && (
|
|
2654
|
+
g(R, this) && (h(H, this, Ya).call(this), g(R, this).removeEventListener("durationchange", g(wa, this)), g(R, this).cleanup(), g(L, this) === g(R, this) && m(L, this, void 0), m(R, this, void 0));
|
|
2662
2655
|
}
|
|
2663
|
-
function Ya(
|
|
2656
|
+
function Ya() {
|
|
2657
|
+
g(R, this) && (g(R, this).removeEventListener("playing", g(xa, this)), g(R, this).removeEventListener("pause", g(Sa, this)), g(R, this).removeEventListener("ended", g(Ca, this)), g(R, this).removeEventListener("timeupdate", g(Ta, this)), g(R, this).removeEventListener("volumechange", g(Ea, this)), g(R, this).removeEventListener("hlsbuffering", g(Da, this)), g(R, this).removeEventListener("hlsnotbuffering", g(Oa, this)), g(R, this).removeEventListener("timeshiftready", g(ka, this)));
|
|
2658
|
+
}
|
|
2659
|
+
function Xa(e) {
|
|
2664
2660
|
e.mediaElement instanceof HTMLVideoElement && (m(z, this, new gr(e.mediaElement)), g(z, this).isSupported() && (g(V, this).debug("PIP is supported"), h(H, this, U).call(this, v.PIP_AVAILABLE, "")), g(z, this).on("on picture in picture change", (e) => {
|
|
2665
2661
|
e ? h(H, this, U).call(this, v.IS_PIP, "") : h(H, this, W).call(this, v.IS_PIP);
|
|
2666
2662
|
}));
|
|
2667
2663
|
}
|
|
2668
|
-
function
|
|
2664
|
+
function Za() {
|
|
2669
2665
|
var e;
|
|
2670
2666
|
if (!g(z, this)) return;
|
|
2671
2667
|
let t = null;
|
|
@@ -2673,64 +2669,64 @@ function Xa() {
|
|
|
2673
2669
|
e ? h(H, this, U).call(this, v.IS_PIP, "") : h(H, this, W).call(this, v.IS_PIP);
|
|
2674
2670
|
}));
|
|
2675
2671
|
}
|
|
2676
|
-
function
|
|
2672
|
+
function Qa(e) {
|
|
2677
2673
|
let t = !or.isFullscreenApiSupported(this) && or.isFullscreenApiSupported(e.mediaElement) ? e.mediaElement : this;
|
|
2678
|
-
m(
|
|
2674
|
+
m(Yi, this, new or(t)), g(Yi, this).on("on fullscreen change", (e) => {
|
|
2679
2675
|
e ? h(H, this, U).call(this, v.FULLSCREEN, "") : h(H, this, W).call(this, v.FULLSCREEN);
|
|
2680
2676
|
});
|
|
2681
2677
|
}
|
|
2682
|
-
function
|
|
2678
|
+
function $a() {
|
|
2683
2679
|
var e;
|
|
2684
|
-
g(R, this) && (m(
|
|
2680
|
+
g(R, this) && (m(Xi, this, !or.isFullscreenApiSupported(this) && or.isFullscreenApiSupported((e = g(R, this)) == null ? void 0 : e.videoElement) ? new or(g(R, this).videoElement) : new or(this)), g(Xi, this).on("on fullscreen change", (e) => {
|
|
2685
2681
|
e ? h(H, this, U).call(this, v.FULLSCREEN, "") : h(H, this, W).call(this, v.FULLSCREEN);
|
|
2686
2682
|
}));
|
|
2687
2683
|
}
|
|
2688
|
-
function
|
|
2689
|
-
return this.hasAttribute(v.TIMESHIFT_POSITION) ? g(
|
|
2684
|
+
function eo() {
|
|
2685
|
+
return this.hasAttribute(v.TIMESHIFT_POSITION) ? g(Xi, this) : g(Yi, this);
|
|
2690
2686
|
}
|
|
2691
|
-
function
|
|
2692
|
-
m(
|
|
2693
|
-
background: g(
|
|
2694
|
-
receiverApplicationId: g(
|
|
2687
|
+
function to(e) {
|
|
2688
|
+
m(Qi, this, new ke({
|
|
2689
|
+
background: g(ea, this),
|
|
2690
|
+
receiverApplicationId: g($i, this),
|
|
2695
2691
|
options: e.getCastOptions()
|
|
2696
|
-
})), g(
|
|
2692
|
+
})), g(Qi, this).on("devices available", h(H, this, no).bind(this)), g(Qi, this).on("connected", h(H, this, ro).bind(this)), g(Qi, this).on("resumed", h(H, this, ro).bind(this)), g(Qi, this).on("disconnected", h(H, this, io).bind(this)), g(Qi, this).init().catch((e) => {
|
|
2697
2693
|
g(V, this).warn("Failed to initialize CastSender", e);
|
|
2698
2694
|
});
|
|
2699
2695
|
}
|
|
2700
|
-
function
|
|
2696
|
+
function no(e) {
|
|
2701
2697
|
e ? h(H, this, U).call(this, v.CAST_AVAILABLE, "") : h(H, this, W).call(this, v.CAST_AVAILABLE);
|
|
2702
2698
|
}
|
|
2703
|
-
function
|
|
2699
|
+
function ro() {
|
|
2704
2700
|
var e, t;
|
|
2705
2701
|
h(H, this, U).call(this, v.IS_CASTING, "");
|
|
2706
|
-
let n = (e = (t = g(
|
|
2702
|
+
let n = (e = (t = g(Qi, this)) == null ? void 0 : t.getReceiverName()) == null ? "device" : e;
|
|
2707
2703
|
h(H, this, U).call(this, v.CAST_RECEIVER_NAME, n);
|
|
2708
2704
|
}
|
|
2709
|
-
function
|
|
2705
|
+
function io() {
|
|
2710
2706
|
h(H, this, W).call(this, v.IS_CASTING), h(H, this, W).call(this, v.CAST_RECEIVER_NAME);
|
|
2711
2707
|
}
|
|
2712
|
-
function
|
|
2708
|
+
function ao(e) {
|
|
2713
2709
|
var t;
|
|
2714
|
-
(t = g(
|
|
2710
|
+
(t = g(Zi, this)) == null || t.unload();
|
|
2715
2711
|
let n = e.getCastOptions();
|
|
2716
|
-
m(
|
|
2712
|
+
m(Zi, this, new qn({
|
|
2717
2713
|
url: n.url,
|
|
2718
2714
|
channelId: n.channelId,
|
|
2719
2715
|
authenticationToken: n.authenticationToken,
|
|
2720
2716
|
container: this
|
|
2721
|
-
})), g(
|
|
2717
|
+
})), g(Zi, this).once("available", () => {
|
|
2722
2718
|
h(H, this, U).call(this, v.AIRPLAY_AVAILABLE, "");
|
|
2723
|
-
}), g(
|
|
2719
|
+
}), g(Zi, this).on("connected", () => {
|
|
2724
2720
|
h(H, this, U).call(this, v.IS_AIRPLAYING, "");
|
|
2725
|
-
}), g(
|
|
2721
|
+
}), g(Zi, this).on("disconnected", () => {
|
|
2726
2722
|
h(H, this, W).call(this, v.IS_AIRPLAYING);
|
|
2727
2723
|
});
|
|
2728
2724
|
}
|
|
2729
|
-
function
|
|
2725
|
+
function oo(e) {
|
|
2730
2726
|
var t;
|
|
2731
2727
|
if ((t = g(B, this)) == null || t.unload(), !i()) {
|
|
2732
|
-
if (e.audioNode) m(B, this, new
|
|
2733
|
-
else if (e.mediaElement instanceof HTMLMediaElement) m(B, this, new
|
|
2728
|
+
if (e.audioNode) m(B, this, new Yr(e.audioNode));
|
|
2729
|
+
else if (e.mediaElement instanceof HTMLMediaElement) m(B, this, new Yr(e.mediaElement));
|
|
2734
2730
|
else return;
|
|
2735
2731
|
g(B, this).on("on decibel change", (e) => {
|
|
2736
2732
|
h(H, this, U).call(this, v.VOLUME_LEVEL, JSON.stringify(e));
|
|
@@ -2740,43 +2736,43 @@ function ao(e) {
|
|
|
2740
2736
|
})), (!g(B, this).isMediaElementSource || !this.hasAttribute(v.MUTED)) && g(B, this).start();
|
|
2741
2737
|
}
|
|
2742
2738
|
}
|
|
2743
|
-
function
|
|
2739
|
+
function so() {
|
|
2744
2740
|
var e, t, n, r, i;
|
|
2745
|
-
|
|
2746
|
-
for (let e of Object.values(C)) this.removeEventListener(e, g(
|
|
2747
|
-
h(H, this,
|
|
2741
|
+
Fi === this && (Fi = void 0), h(H, this, lo).call(this), h(H, this, Ao).call(this), g(ia, this).unload(), (e = g(I, this)) == null || e.unload(), (t = g(z, this)) == null || t.unload(), (n = g(Yi, this)) == null || n.unload(), (r = g(Xi, this)) == null || r.unload(), (i = g(B, this)) == null || i.unload(), h(H, this, Ja).call(this);
|
|
2742
|
+
for (let e of Object.values(C)) this.removeEventListener(e, g(ja, this));
|
|
2743
|
+
h(H, this, Ga).call(this), g(Ri, this) && (clearTimeout(g(Ri, this)), m(Ri, this, null)), g(zi, this).stop(), this.disconnectListener(this);
|
|
2748
2744
|
}
|
|
2749
|
-
function
|
|
2745
|
+
function co() {
|
|
2750
2746
|
let e = () => (customElements.get("vindral-debug-panel") || import("./B_i2EMYc.js").then((e) => e.n).then(({ registerDebugComponents: e }) => e()), this.setAttribute(v.DEBUG_PANEL_OPEN, ""), g(I, this));
|
|
2751
|
-
window._vindralDebug = e, m(
|
|
2747
|
+
window._vindralDebug = e, m(ra, this, e);
|
|
2752
2748
|
}
|
|
2753
|
-
function
|
|
2749
|
+
function lo() {
|
|
2754
2750
|
let e = window;
|
|
2755
|
-
g(
|
|
2756
|
-
}
|
|
2757
|
-
function lo(e) {
|
|
2758
|
-
e.pointerType !== "mouse" && e.timeStamp - g(ka, this) < 250 || (h(H, this, vo).call(this), g(Li, this) && clearTimeout(g(Li, this)), e.target instanceof HTMLElement && ([this, g(zi, this)].includes(e.target) || e.target.localName === "vindral-scroll-overlay") && h(H, this, yo).call(this));
|
|
2751
|
+
g(ra, this) && e._vindralDebug === g(ra, this) && delete e._vindralDebug, m(ra, this, null);
|
|
2759
2752
|
}
|
|
2760
2753
|
function uo(e) {
|
|
2761
|
-
|
|
2762
|
-
e.pointerType === "touch" && e.target instanceof HTMLElement ? [this, g(zi, this)].includes(e.target) && t ? h(H, this, _o).call(this) : h(H, this, yo).call(this) : e.composedPath().some((e) => e instanceof HTMLElement && ["vindral-play-button"].includes(e == null ? void 0 : e.localName)) && h(H, this, yo).call(this);
|
|
2754
|
+
e.pointerType !== "mouse" && e.timeStamp - g(Aa, this) < 250 || (h(H, this, yo).call(this), g(Ri, this) && clearTimeout(g(Ri, this)), e.target instanceof HTMLElement && ([this, g(Bi, this)].includes(e.target) || e.target.localName === "vindral-scroll-overlay") && h(H, this, bo).call(this));
|
|
2763
2755
|
}
|
|
2764
2756
|
function fo(e) {
|
|
2757
|
+
let t = this.hasAttribute(v.USER_INTERACTING);
|
|
2758
|
+
e.pointerType === "touch" && e.target instanceof HTMLElement ? [this, g(Bi, this)].includes(e.target) && t ? h(H, this, vo).call(this) : h(H, this, bo).call(this) : e.composedPath().some((e) => e instanceof HTMLElement && ["vindral-play-button"].includes(e == null ? void 0 : e.localName)) && h(H, this, bo).call(this);
|
|
2759
|
+
}
|
|
2760
|
+
function po(e) {
|
|
2765
2761
|
switch (e) {
|
|
2766
2762
|
case "dblclick-fullscreen": return S(this.getAttribute(v.DOUBLE_CLICK_FULLSCREEN_ENABLED), !0);
|
|
2767
2763
|
default: return !0;
|
|
2768
2764
|
}
|
|
2769
2765
|
}
|
|
2770
|
-
function po(e) {
|
|
2771
|
-
h(H, this, fo).call(this, "dblclick-fullscreen") && (!g(Ji, this) || e.target instanceof b || e.target instanceof Be || e.target instanceof ji || (this.hasAttribute(v.FULLSCREEN) ? this.removeAttribute(v.FULLSCREEN) : this.setAttribute(v.FULLSCREEN, "")));
|
|
2772
|
-
}
|
|
2773
2766
|
function mo(e) {
|
|
2774
|
-
this.
|
|
2767
|
+
h(H, this, po).call(this, "dblclick-fullscreen") && (!g(Yi, this) || e.target instanceof b || e.target instanceof Be || e.target instanceof Mi || (this.hasAttribute(v.FULLSCREEN) ? this.removeAttribute(v.FULLSCREEN) : this.setAttribute(v.FULLSCREEN, "")));
|
|
2775
2768
|
}
|
|
2776
2769
|
function ho(e) {
|
|
2770
|
+
this.hasAttribute(v.USER_INTERACTING) || h(H, this, bo).call(this);
|
|
2771
|
+
}
|
|
2772
|
+
function go(e) {
|
|
2777
2773
|
var t;
|
|
2778
2774
|
let { metaKey: n, altKey: r, key: i } = e;
|
|
2779
|
-
if (n || r || !
|
|
2775
|
+
if (n || r || !Pi.includes(i)) return;
|
|
2780
2776
|
let a = (t = e.target) == null ? void 0 : t.keysUsed;
|
|
2781
2777
|
if (!(Array.isArray(a) && a.includes(i)) && !e.composedPath().some((e) => {
|
|
2782
2778
|
let t = e == null ? void 0 : e.keysUsed;
|
|
@@ -2794,28 +2790,28 @@ function ho(e) {
|
|
|
2794
2790
|
break;
|
|
2795
2791
|
}
|
|
2796
2792
|
}
|
|
2797
|
-
function
|
|
2793
|
+
function _o() {
|
|
2798
2794
|
var e = this;
|
|
2799
2795
|
return _(function* () {
|
|
2800
|
-
if (!g(I, e) || !g(
|
|
2796
|
+
if (!g(I, e) || !g(Ki, e)) return;
|
|
2801
2797
|
let t = Date.now();
|
|
2802
|
-
if (g(
|
|
2798
|
+
if (g(La, e) && t - g(La, e) < 1e4) g(V, e).debug("Skipping channel update, last update was less than 10 seconds ago.");
|
|
2803
2799
|
else {
|
|
2804
|
-
m(
|
|
2805
|
-
let n = yield g(I, e).getApiClient().getChannels(g(
|
|
2800
|
+
m(La, e, t);
|
|
2801
|
+
let n = yield g(I, e).getApiClient().getChannels(g(Ki, e));
|
|
2806
2802
|
h(H, e, U).call(e, v.CHANNELS, JSON.stringify(n));
|
|
2807
2803
|
}
|
|
2808
|
-
m(
|
|
2804
|
+
m(ta, e, window.setTimeout(() => void h(H, e, _o).call(e), 1e4));
|
|
2809
2805
|
})();
|
|
2810
2806
|
}
|
|
2811
|
-
function
|
|
2807
|
+
function vo() {
|
|
2812
2808
|
!this.hasAttribute(v.USER_INTERACTING) || this.hasAttribute(v.UI_LOCKED) || (this.dispatchEvent(new CustomEvent("user-interacting", {
|
|
2813
2809
|
bubbles: !0,
|
|
2814
2810
|
composed: !0,
|
|
2815
2811
|
detail: { active: !1 }
|
|
2816
2812
|
})), this.removeAttribute(v.USER_INTERACTING));
|
|
2817
2813
|
}
|
|
2818
|
-
function
|
|
2814
|
+
function yo() {
|
|
2819
2815
|
this.hasAttribute(v.USER_INTERACTING) || requestAnimationFrame(() => {
|
|
2820
2816
|
this.setAttribute(v.USER_INTERACTING, ""), this.dispatchEvent(new CustomEvent("user-interacting", {
|
|
2821
2817
|
bubbles: !0,
|
|
@@ -2824,64 +2820,64 @@ function vo() {
|
|
|
2824
2820
|
}));
|
|
2825
2821
|
});
|
|
2826
2822
|
}
|
|
2827
|
-
function yo() {
|
|
2828
|
-
h(H, this, vo).call(this), g(Li, this) && clearTimeout(g(Li, this)), g(Ii, this) && m(Li, this, self.setTimeout(() => {
|
|
2829
|
-
h(H, this, _o).call(this);
|
|
2830
|
-
}, g(Ii, this)));
|
|
2831
|
-
}
|
|
2832
2823
|
function bo() {
|
|
2824
|
+
h(H, this, yo).call(this), g(Ri, this) && clearTimeout(g(Ri, this)), g(Li, this) && m(Ri, this, self.setTimeout(() => {
|
|
2825
|
+
h(H, this, vo).call(this);
|
|
2826
|
+
}, g(Li, this)));
|
|
2827
|
+
}
|
|
2828
|
+
function xo() {
|
|
2833
2829
|
var e;
|
|
2834
2830
|
let t = getComputedStyle(this).getPropertyValue("--vindral-subtitle-offset") || "0px";
|
|
2835
2831
|
(e = g(I, this)) == null || (e = e.mediaElement) == null || e.style.setProperty("--vindral-subtitle-offset", t);
|
|
2836
2832
|
}
|
|
2837
|
-
function
|
|
2833
|
+
function So() {
|
|
2838
2834
|
var e;
|
|
2839
|
-
h(H, this,
|
|
2835
|
+
h(H, this, Za).call(this), h(H, this, Eo).call(this), (e = g(z, this)) == null || e.request().catch((e) => {
|
|
2840
2836
|
g(V, this).warn("Failed to enter picture in picture:", e);
|
|
2841
2837
|
});
|
|
2842
2838
|
}
|
|
2843
|
-
function
|
|
2839
|
+
function Co() {
|
|
2844
2840
|
var e;
|
|
2845
2841
|
(e = g(z, this)) == null || e.exit().catch((e) => {
|
|
2846
2842
|
g(V, this).warn("Failed to exit picture in picture:", e);
|
|
2847
2843
|
});
|
|
2848
2844
|
}
|
|
2849
|
-
function
|
|
2850
|
-
let e = h(H, this,
|
|
2845
|
+
function wo() {
|
|
2846
|
+
let e = h(H, this, eo).call(this);
|
|
2851
2847
|
if (!e) {
|
|
2852
2848
|
console.warn("No fullscreen target available"), this.setAttribute(v.FULLSCREEN_FALLBACK, ""), h(H, this, U).call(this, v.FULLSCREEN, "");
|
|
2853
2849
|
return;
|
|
2854
2850
|
}
|
|
2855
|
-
e != null && e.isFullscreenApiSupported() ? (h(H, this,
|
|
2856
|
-
g(
|
|
2851
|
+
e != null && e.isFullscreenApiSupported() ? (h(H, this, Eo).call(this), e == null || e.request().then(() => {
|
|
2852
|
+
g(Ra, this).call(this);
|
|
2857
2853
|
}).catch((e) => {
|
|
2858
2854
|
g(V, this).warn("Failed to enter fullscreen:", e);
|
|
2859
2855
|
})) : (this.setAttribute(v.FULLSCREEN_FALLBACK, ""), h(H, this, U).call(this, v.FULLSCREEN, ""));
|
|
2860
2856
|
}
|
|
2861
|
-
function
|
|
2862
|
-
let e = h(H, this,
|
|
2857
|
+
function To() {
|
|
2858
|
+
let e = h(H, this, eo).call(this);
|
|
2863
2859
|
e != null && e.isFullscreenApiSupported() ? e == null || e.exit().then(() => {
|
|
2864
|
-
g(
|
|
2860
|
+
g(za, this).call(this);
|
|
2865
2861
|
}).catch((e) => {
|
|
2866
2862
|
g(V, this).warn("Failed to exit fullscreen:", e);
|
|
2867
2863
|
}) : (this.removeAttribute(v.FULLSCREEN_FALLBACK), h(H, this, W).call(this, v.FULLSCREEN));
|
|
2868
2864
|
}
|
|
2869
|
-
function To() {
|
|
2870
|
-
g(I, this) && g(I, this).emitter.emit("ios-hack: reset size");
|
|
2871
|
-
}
|
|
2872
2865
|
function Eo() {
|
|
2873
|
-
|
|
2866
|
+
g(I, this) && g(I, this).emitter.emit("ios-hack: reset size");
|
|
2874
2867
|
}
|
|
2875
2868
|
function Do() {
|
|
2876
|
-
|
|
2869
|
+
return this.hasAttribute(v.DEBUG_PANEL_OPEN);
|
|
2877
2870
|
}
|
|
2878
2871
|
function Oo() {
|
|
2879
|
-
|
|
2872
|
+
h(H, this, Do).call(this) ? h(H, this, ko).call(this) : h(H, this, Ao).call(this);
|
|
2880
2873
|
}
|
|
2881
2874
|
function ko() {
|
|
2882
|
-
g(
|
|
2875
|
+
g(Ba, this) === null && (h(H, this, jo).call(this), m(Ba, this, window.setInterval(() => h(H, this, jo).call(this), 1e3)));
|
|
2883
2876
|
}
|
|
2884
2877
|
function Ao() {
|
|
2878
|
+
g(Ba, this) && (clearInterval(g(Ba, this)), m(Ba, this, null)), this.removeAttribute(v.DRIFT), h(H, this, W).call(this, v.DRIFT), h(H, this, W).call(this, v.PLAYBACK_LATENCY), h(H, this, W).call(this, v.CONNECTION_STATE);
|
|
2879
|
+
}
|
|
2880
|
+
function jo() {
|
|
2885
2881
|
if (!g(I, this)) return;
|
|
2886
2882
|
try {
|
|
2887
2883
|
let e = g(I, this).getStatistics().drift;
|
|
@@ -2897,13 +2893,13 @@ function Ao() {
|
|
|
2897
2893
|
}
|
|
2898
2894
|
function U(e, t) {
|
|
2899
2895
|
var n;
|
|
2900
|
-
(n = g(
|
|
2896
|
+
(n = g(Ii, this).get(e)) == null || n.forEach((n) => n.setAttribute(e, t));
|
|
2901
2897
|
}
|
|
2902
2898
|
function W(e) {
|
|
2903
2899
|
var t;
|
|
2904
|
-
(t = g(
|
|
2900
|
+
(t = g(Ii, this).get(e)) == null || t.forEach((t) => t.removeAttribute(e));
|
|
2905
2901
|
}
|
|
2906
|
-
e(
|
|
2902
|
+
e(Va, "observedAttributes", [
|
|
2907
2903
|
...Oe,
|
|
2908
2904
|
"url",
|
|
2909
2905
|
"edge-url",
|
|
@@ -2948,8 +2944,8 @@ e(Ba, "observedAttributes", [
|
|
|
2948
2944
|
]);
|
|
2949
2945
|
//#endregion
|
|
2950
2946
|
//#region ../../libs/player-next/src/components/FullscreenButton.ts
|
|
2951
|
-
var
|
|
2952
|
-
|
|
2947
|
+
var Mo, No = document.createElement("template");
|
|
2948
|
+
No.innerHTML = `
|
|
2953
2949
|
<style>
|
|
2954
2950
|
:host {
|
|
2955
2951
|
display: var(--fullscreen-button-display);
|
|
@@ -2973,10 +2969,10 @@ Mo.innerHTML = `
|
|
|
2973
2969
|
</slot>
|
|
2974
2970
|
</slot>
|
|
2975
2971
|
`;
|
|
2976
|
-
var
|
|
2972
|
+
var Po = class extends b {
|
|
2977
2973
|
constructor() {
|
|
2978
2974
|
var e;
|
|
2979
|
-
super(), (e = this.shadowRoot) == null || e.appendChild(
|
|
2975
|
+
super(), (e = this.shadowRoot) == null || e.appendChild(No.content.cloneNode(!0));
|
|
2980
2976
|
}
|
|
2981
2977
|
connectedCallback() {
|
|
2982
2978
|
super.connectedCallback(), this.setAttribute("aria-label", this.isFullscreen ? "Exit fullscreen" : "Fullscreen");
|
|
@@ -3001,48 +2997,48 @@ var No = class extends b {
|
|
|
3001
2997
|
}));
|
|
3002
2998
|
}
|
|
3003
2999
|
};
|
|
3004
|
-
|
|
3000
|
+
Mo = Po, e(Po, "observedAttributes", [...x(Mo, "observedAttributes", Mo), v.FULLSCREEN]);
|
|
3005
3001
|
//#endregion
|
|
3006
3002
|
//#region ../../libs/player-next/src/components/LanguageMenu.ts
|
|
3007
|
-
var
|
|
3008
|
-
|
|
3003
|
+
var Fo, Io = "\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M4 5h7\" /><path d=\"M9 3v2c0 4.418 -2.239 8 -5 8\" /><path d=\"M5 9c0 2.144 2.952 3.908 6.7 4\" /><path d=\"M12 20l4 -9l4 9\" /><path d=\"M19.1 18h-6.2\" /></svg>\n", Lo = document.createElement("template");
|
|
3004
|
+
Lo.innerHTML = `
|
|
3009
3005
|
<style>
|
|
3010
3006
|
:host(:not([hidden])) {
|
|
3011
3007
|
display: var(--language-menu-display);
|
|
3012
3008
|
}
|
|
3013
3009
|
</style>
|
|
3014
3010
|
|
|
3015
|
-
<slot name="button">${
|
|
3011
|
+
<slot name="button">${Io}</slot>
|
|
3016
3012
|
<slot name="listbox" hidden>
|
|
3017
3013
|
<vindral-language-menu-list id="listbox" part="listbox"></vindral-language-menu-list>
|
|
3018
3014
|
</slot>
|
|
3019
3015
|
`;
|
|
3020
|
-
var
|
|
3016
|
+
var Ro = /* @__PURE__ */ new WeakSet(), zo = class extends Be {
|
|
3021
3017
|
constructor() {
|
|
3022
3018
|
var e, t, n;
|
|
3023
|
-
super(), w(this,
|
|
3019
|
+
super(), w(this, Ro), (e = this.shadowRoot) == null || e.appendChild(Lo.content.cloneNode(!0)), this.listbox = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[part=listbox]"), this.listboxSlot = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot[name=listbox]");
|
|
3024
3020
|
}
|
|
3025
3021
|
connectedCallback() {
|
|
3026
|
-
super.connectedCallback(), h(
|
|
3022
|
+
super.connectedCallback(), h(Ro, this, Bo).call(this), this.setAttribute("aria-label", "Audio & Subtitles");
|
|
3027
3023
|
}
|
|
3028
3024
|
attributeChangedCallback(e, t, n) {
|
|
3029
|
-
super.attributeChangedCallback(e, t, n), (e === v.LANGUAGES || e === v.TEXT_TRACKS) && h(
|
|
3025
|
+
super.attributeChangedCallback(e, t, n), (e === v.LANGUAGES || e === v.TEXT_TRACKS) && h(Ro, this, Bo).call(this);
|
|
3030
3026
|
}
|
|
3031
3027
|
};
|
|
3032
|
-
|
|
3033
|
-
function
|
|
3028
|
+
Fo = zo;
|
|
3029
|
+
function Bo() {
|
|
3034
3030
|
let e = (e) => (e ? JSON.parse(e) : []).length < 2, t = e(this.getAttribute(v.LANGUAGES)), n = e(this.getAttribute(v.TEXT_TRACKS));
|
|
3035
3031
|
t && n ? this.setAttribute("hidden", "") : this.removeAttribute("hidden");
|
|
3036
3032
|
}
|
|
3037
|
-
e(
|
|
3038
|
-
...x(
|
|
3033
|
+
e(zo, "observedAttributes", [
|
|
3034
|
+
...x(Fo, "observedAttributes", Fo),
|
|
3039
3035
|
v.LANGUAGES,
|
|
3040
3036
|
v.TEXT_TRACKS
|
|
3041
3037
|
]);
|
|
3042
3038
|
//#endregion
|
|
3043
3039
|
//#region ../../libs/player-next/src/components/LanguageMenuList.ts
|
|
3044
|
-
var
|
|
3045
|
-
|
|
3040
|
+
var Vo = document.createElement("template");
|
|
3041
|
+
Vo.innerHTML = `
|
|
3046
3042
|
<style>
|
|
3047
3043
|
:host {
|
|
3048
3044
|
font: inherit;
|
|
@@ -3156,21 +3152,21 @@ Bo.innerHTML = `
|
|
|
3156
3152
|
<div class="menu"></div>
|
|
3157
3153
|
</div>
|
|
3158
3154
|
`;
|
|
3159
|
-
var
|
|
3155
|
+
var Ho = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), Wo = /* @__PURE__ */ new WeakMap(), Go = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakMap(), qo = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), Yo = /* @__PURE__ */ new WeakMap(), Xo = /* @__PURE__ */ new WeakMap(), Zo = /* @__PURE__ */ new WeakMap(), Qo = /* @__PURE__ */ new WeakMap(), $o = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakSet(), es = class extends HTMLElement {
|
|
3160
3156
|
constructor() {
|
|
3161
|
-
super(), w(this, G), p(this,
|
|
3157
|
+
super(), w(this, G), p(this, Ho, []), p(this, Uo, []), p(this, Wo, void 0), p(this, Go, void 0), p(this, Ko, []), p(this, qo, []), p(this, Jo, null), p(this, Yo, null), p(this, Xo, null), p(this, Zo, null), p(this, Qo, null), p(this, $o, null), e(this, "handleEvent", (e) => {
|
|
3162
3158
|
switch (e.type) {
|
|
3163
3159
|
case "keydown":
|
|
3164
|
-
h(G, this,
|
|
3160
|
+
h(G, this, ls).call(this, e);
|
|
3165
3161
|
break;
|
|
3166
3162
|
}
|
|
3167
|
-
}), this.attachShadow({ mode: "open" }).appendChild(
|
|
3163
|
+
}), this.attachShadow({ mode: "open" }).appendChild(Vo.content.cloneNode(!0));
|
|
3168
3164
|
}
|
|
3169
3165
|
connectedCallback() {
|
|
3170
3166
|
let e = this.getRootNode();
|
|
3171
3167
|
if (e instanceof ShadowRoot) {
|
|
3172
3168
|
var t, n, r;
|
|
3173
|
-
m(
|
|
3169
|
+
m(Xo, this, e.host.closest("vindral-controller")), (t = g(Xo, this)) == null || t.connectListener(this), m(Jo, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#languages .menu")), m(Yo, this, (r = this.shadowRoot) == null ? void 0 : r.querySelector("#text-tracks .menu")), h(G, this, ts).call(this), h(G, this, ns).call(this), m(Zo, this, e.host), this.addEventListener("keydown", this);
|
|
3174
3170
|
}
|
|
3175
3171
|
}
|
|
3176
3172
|
disconnectedCallback() {
|
|
@@ -3180,16 +3176,16 @@ var Vo = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), Uo =
|
|
|
3180
3176
|
t !== n && (e === v.LANGUAGES && n && (this.languages = JSON.parse(n)), e === v.TEXT_TRACKS && n && (this.textTracks = JSON.parse(n)), e === v.LANGUAGE && (this.language = n), e === v.TEXT_TRACK && (this.textTrack = n));
|
|
3181
3177
|
}
|
|
3182
3178
|
set languages(e) {
|
|
3183
|
-
m(
|
|
3179
|
+
m(Ho, this, e), h(G, this, is).call(this), h(G, this, os).call(this);
|
|
3184
3180
|
}
|
|
3185
3181
|
set textTracks(e) {
|
|
3186
|
-
m(
|
|
3182
|
+
m(Uo, this, e), h(G, this, rs).call(this), h(G, this, ss).call(this);
|
|
3187
3183
|
}
|
|
3188
3184
|
set language(e) {
|
|
3189
|
-
m(
|
|
3185
|
+
m(Wo, this, e), h(G, this, os).call(this);
|
|
3190
3186
|
}
|
|
3191
3187
|
set textTrack(e) {
|
|
3192
|
-
m(
|
|
3188
|
+
m(Go, this, e), h(G, this, ss).call(this);
|
|
3193
3189
|
}
|
|
3194
3190
|
get keysUsed() {
|
|
3195
3191
|
return [
|
|
@@ -3206,10 +3202,10 @@ var Vo = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), Uo =
|
|
|
3206
3202
|
];
|
|
3207
3203
|
}
|
|
3208
3204
|
focus() {
|
|
3209
|
-
g(
|
|
3205
|
+
g(Qo, this) ? g(Qo, this).focus() : g($o, this) && g($o, this).focus();
|
|
3210
3206
|
}
|
|
3211
3207
|
};
|
|
3212
|
-
function
|
|
3208
|
+
function ts() {
|
|
3213
3209
|
new IntersectionObserver((e) => {
|
|
3214
3210
|
e.forEach((e) => {
|
|
3215
3211
|
if (e.intersectionRatio !== 1) if (e.intersectionRatio > 0) {
|
|
@@ -3218,55 +3214,55 @@ function es() {
|
|
|
3218
3214
|
} else this.style.height = "auto";
|
|
3219
3215
|
});
|
|
3220
3216
|
}, {
|
|
3221
|
-
root: g(
|
|
3217
|
+
root: g(Xo, this),
|
|
3222
3218
|
threshold: 0
|
|
3223
3219
|
}).observe(this);
|
|
3224
3220
|
}
|
|
3225
|
-
function ts() {
|
|
3226
|
-
g(qo, this) && (h(G, this, rs).call(this), h(G, this, as).call(this)), g(Jo, this) && (h(G, this, ns).call(this), h(G, this, os).call(this));
|
|
3227
|
-
}
|
|
3228
3221
|
function ns() {
|
|
3229
|
-
g(Jo, this).
|
|
3230
|
-
|
|
3231
|
-
|
|
3222
|
+
g(Jo, this) && (h(G, this, is).call(this), h(G, this, os).call(this)), g(Yo, this) && (h(G, this, rs).call(this), h(G, this, ss).call(this));
|
|
3223
|
+
}
|
|
3224
|
+
function rs() {
|
|
3225
|
+
g(Yo, this).innerHTML = "", m(qo, this, []);
|
|
3226
|
+
let e = h(G, this, as).call(this, "Off", "textTrack", void 0);
|
|
3227
|
+
g(Yo, this).appendChild(e), g(qo, this).push({
|
|
3232
3228
|
element: e,
|
|
3233
3229
|
value: void 0
|
|
3234
|
-
}), g(
|
|
3235
|
-
let t = h(G, this,
|
|
3236
|
-
g(
|
|
3230
|
+
}), g(Uo, this).forEach((e) => {
|
|
3231
|
+
let t = h(G, this, as).call(this, e, "textTrack", e);
|
|
3232
|
+
g(Yo, this).appendChild(t), g(qo, this).push({
|
|
3237
3233
|
element: t,
|
|
3238
3234
|
value: e
|
|
3239
3235
|
});
|
|
3240
|
-
}), h(G, this,
|
|
3236
|
+
}), h(G, this, ss).call(this);
|
|
3241
3237
|
}
|
|
3242
|
-
function
|
|
3243
|
-
g(
|
|
3244
|
-
let t = h(G, this,
|
|
3245
|
-
g(
|
|
3238
|
+
function is() {
|
|
3239
|
+
g(Jo, this).innerHTML = "", m(Ko, this, []), g(Ho, this).forEach((e) => {
|
|
3240
|
+
let t = h(G, this, as).call(this, e, "language", e);
|
|
3241
|
+
g(Jo, this).appendChild(t), g(Ko, this).push({
|
|
3246
3242
|
element: t,
|
|
3247
3243
|
value: e
|
|
3248
3244
|
});
|
|
3249
|
-
}), h(G, this,
|
|
3245
|
+
}), h(G, this, os).call(this);
|
|
3250
3246
|
}
|
|
3251
|
-
function
|
|
3247
|
+
function as(e, t, n) {
|
|
3252
3248
|
let r = document.createElement("div");
|
|
3253
|
-
return r.setAttribute("role", "menuitem"), r.textContent = e, r.addEventListener("click", () => h(G, this,
|
|
3254
|
-
}
|
|
3255
|
-
function as() {
|
|
3256
|
-
g(Zo, this) && (g(Zo, this).removeAttribute("aria-selected"), g(Zo, this).tabIndex = -1);
|
|
3257
|
-
let e = g(Go, this).find((e) => e.value === g(Uo, this));
|
|
3258
|
-
e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, m(Zo, this, e.element));
|
|
3249
|
+
return r.setAttribute("role", "menuitem"), r.textContent = e, r.addEventListener("click", () => h(G, this, cs).call(this, n, t)), r;
|
|
3259
3250
|
}
|
|
3260
3251
|
function os() {
|
|
3261
3252
|
g(Qo, this) && (g(Qo, this).removeAttribute("aria-selected"), g(Qo, this).tabIndex = -1);
|
|
3262
3253
|
let e = g(Ko, this).find((e) => e.value === g(Wo, this));
|
|
3263
|
-
|
|
3254
|
+
e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, m(Qo, this, e.element));
|
|
3255
|
+
}
|
|
3256
|
+
function ss() {
|
|
3257
|
+
g($o, this) && (g($o, this).removeAttribute("aria-selected"), g($o, this).tabIndex = -1);
|
|
3258
|
+
let e = g(qo, this).find((e) => e.value === g(Go, this));
|
|
3259
|
+
if (e) e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, m($o, this, e.element);
|
|
3264
3260
|
else {
|
|
3265
|
-
let e = g(
|
|
3266
|
-
e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, m(
|
|
3261
|
+
let e = g(qo, this).find((e) => e.value === void 0);
|
|
3262
|
+
e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, m($o, this, e.element));
|
|
3267
3263
|
}
|
|
3268
3264
|
}
|
|
3269
|
-
function
|
|
3265
|
+
function cs(e, t) {
|
|
3270
3266
|
this.dispatchEvent(new Event("change", {
|
|
3271
3267
|
bubbles: !0,
|
|
3272
3268
|
composed: !0
|
|
@@ -3278,36 +3274,36 @@ function ss(e, t) {
|
|
|
3278
3274
|
detail: e
|
|
3279
3275
|
}));
|
|
3280
3276
|
}
|
|
3281
|
-
function
|
|
3277
|
+
function ls(e) {
|
|
3282
3278
|
let { key: t, ctrlKey: n, altKey: r, metaKey: i } = e;
|
|
3283
3279
|
if (!(n || r || i) && this.keysUsed.includes(t)) if (e.preventDefault(), e.stopPropagation(), t === "Tab" || t === "Escape") {
|
|
3284
3280
|
var a;
|
|
3285
|
-
(a = g(
|
|
3281
|
+
(a = g(Zo, this)) == null || a.hide();
|
|
3286
3282
|
} else if (t === "Enter" || t === " ") {
|
|
3287
3283
|
var o;
|
|
3288
|
-
(o = h(G, this,
|
|
3289
|
-
} else h(G, this,
|
|
3284
|
+
(o = h(G, this, fs).call(this)) == null || (o = o.element) == null || o.click();
|
|
3285
|
+
} else h(G, this, us).call(this, e);
|
|
3290
3286
|
}
|
|
3291
|
-
function
|
|
3287
|
+
function us(e) {
|
|
3292
3288
|
var t;
|
|
3293
|
-
let { key: n } = e, r = [...g(
|
|
3289
|
+
let { key: n } = e, r = [...g(Ko, this), ...g(qo, this)], i = (t = h(G, this, fs).call(this)) == null ? r[0] : t;
|
|
3294
3290
|
if (!i) return;
|
|
3295
3291
|
let a = r.indexOf(i), o = Math.max(0, a);
|
|
3296
|
-
n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : n === "ArrowLeft" ? o = h(G, this,
|
|
3292
|
+
n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : n === "ArrowLeft" ? o = h(G, this, ds).call(this, a, "left") : n === "ArrowRight" ? o = h(G, this, ds).call(this, a, "right") : e.key === "Home" ? o = 0 : e.key === "End" && (o = r.length - 1), o < 0 && (o = r.length - 1), o > r.length - 1 && (o = 0);
|
|
3297
3293
|
let s = r[o];
|
|
3298
|
-
s && (h(G, this,
|
|
3294
|
+
s && (h(G, this, ps).call(this, s.value), s.element.focus());
|
|
3299
3295
|
}
|
|
3300
|
-
function
|
|
3301
|
-
let n = g(
|
|
3296
|
+
function ds(e, t) {
|
|
3297
|
+
let n = g(Ko, this).length, r = g(qo, this).length;
|
|
3302
3298
|
return t === "left" ? e < n ? n + r - 1 : e - n - 1 : e >= n ? 0 : e + n;
|
|
3303
3299
|
}
|
|
3304
|
-
function
|
|
3305
|
-
return [...g(
|
|
3300
|
+
function fs() {
|
|
3301
|
+
return [...g(Ko, this), ...g(qo, this)].find((e) => e.element.tabIndex === 0);
|
|
3306
3302
|
}
|
|
3307
|
-
function
|
|
3308
|
-
for (let t of [...g(
|
|
3303
|
+
function ps(e) {
|
|
3304
|
+
for (let t of [...g(Ko, this), ...g(qo, this)]) t.element.tabIndex = t.value === e ? 0 : -1;
|
|
3309
3305
|
}
|
|
3310
|
-
e(
|
|
3306
|
+
e(es, "observedAttributes", [
|
|
3311
3307
|
v.LANGUAGES,
|
|
3312
3308
|
v.TEXT_TRACKS,
|
|
3313
3309
|
v.LANGUAGE,
|
|
@@ -3315,12 +3311,12 @@ e($o, "observedAttributes", [
|
|
|
3315
3311
|
]);
|
|
3316
3312
|
//#endregion
|
|
3317
3313
|
//#region ../../libs/player-next/src/components/LiveButton.ts
|
|
3318
|
-
var
|
|
3319
|
-
|
|
3320
|
-
var
|
|
3314
|
+
var ms, hs = document.createElement("template");
|
|
3315
|
+
hs.innerHTML = "\n <style>\n :host {\n display: var(--live-button-display, flex);\n color: var(--vindral-fg-strong, #eee);\n border: 1px solid transparent !important;\n font-size: 12px;\n font-weight: bold;\n cursor: pointer;\n transition: all 0.2s;\n min-width: 50px !important;\n text-align: center;\n align-items: center;\n justify-content: center;\n }\n\n .live-text {\n display: inline-block;\n vertical-align: middle;\n margin-left: 4px;\n }\n\n slot[name=\"icon\"] svg {\n width: 5px;\n height: 5px;\n flex-shrink: 0;\n }\n\n .live-dot {\n fill: var(--vindral-fg-subtle, #b4b4b4);\n transition: fill 0.2s;\n transform-origin: center;\n }\n\n /* Red pulsing dot when live */\n :host(:not([timeshift-position])) .live-dot {\n fill: #ff0000;\n animation: pulse-dot 2s ease-in-out infinite alternate;\n }\n\n @keyframes pulse-dot {\n 0% {\n opacity: 0.8;\n transform: scale(0.9);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n :host([disabled]) {\n cursor: default;\n opacity: 1;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n </style>\n\n <slot name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"5\" height=\"5\" viewBox=\"0 0 5 5\" fill=\"currentColor\">\n <circle cx=\"2.5\" cy=\"2.5\" r=\"2.5\" class=\"live-dot\"/>\n </svg>\n</slot>\n <span class=\"live-text\">LIVE</span>\n";
|
|
3316
|
+
var gs = class extends b {
|
|
3321
3317
|
constructor() {
|
|
3322
3318
|
var e;
|
|
3323
|
-
super(), (e = this.shadowRoot) == null || e.appendChild(
|
|
3319
|
+
super(), (e = this.shadowRoot) == null || e.appendChild(hs.content.cloneNode(!0));
|
|
3324
3320
|
}
|
|
3325
3321
|
connectedCallback() {
|
|
3326
3322
|
super.connectedCallback(), this.updateState();
|
|
@@ -3351,15 +3347,15 @@ var hs = class extends b {
|
|
|
3351
3347
|
}));
|
|
3352
3348
|
}
|
|
3353
3349
|
};
|
|
3354
|
-
|
|
3355
|
-
...x(
|
|
3350
|
+
ms = gs, e(gs, "observedAttributes", [
|
|
3351
|
+
...x(ms, "observedAttributes", ms),
|
|
3356
3352
|
v.TIMESHIFT_POSITION,
|
|
3357
3353
|
v.DURATION
|
|
3358
3354
|
]);
|
|
3359
3355
|
//#endregion
|
|
3360
3356
|
//#region ../../libs/player-next/src/components/MuteButton.ts
|
|
3361
|
-
var
|
|
3362
|
-
|
|
3357
|
+
var _s, vs = document.createElement("template");
|
|
3358
|
+
vs.innerHTML = `
|
|
3363
3359
|
<style>
|
|
3364
3360
|
:host {
|
|
3365
3361
|
display: var(--mute-button-display);
|
|
@@ -3387,10 +3383,10 @@ _s.innerHTML = `
|
|
|
3387
3383
|
</slot>
|
|
3388
3384
|
</slot>
|
|
3389
3385
|
`;
|
|
3390
|
-
var
|
|
3386
|
+
var ys = class extends b {
|
|
3391
3387
|
constructor() {
|
|
3392
3388
|
var e;
|
|
3393
|
-
super(), (e = this.shadowRoot) == null || e.appendChild(
|
|
3389
|
+
super(), (e = this.shadowRoot) == null || e.appendChild(vs.content.cloneNode(!0));
|
|
3394
3390
|
}
|
|
3395
3391
|
connectedCallback() {
|
|
3396
3392
|
super.connectedCallback(), this.setAttribute("aria-label", this.muted ? "Unmute" : "Mute");
|
|
@@ -3415,11 +3411,11 @@ var vs = class extends b {
|
|
|
3415
3411
|
}));
|
|
3416
3412
|
}
|
|
3417
3413
|
};
|
|
3418
|
-
|
|
3414
|
+
_s = ys, e(ys, "observedAttributes", [...x(_s, "observedAttributes", _s), v.MUTED]);
|
|
3419
3415
|
//#endregion
|
|
3420
3416
|
//#region ../../libs/player-next/src/components/PictureInPictureButton.ts
|
|
3421
|
-
var
|
|
3422
|
-
|
|
3417
|
+
var bs, xs = document.createElement("template");
|
|
3418
|
+
xs.innerHTML = `
|
|
3423
3419
|
<style>
|
|
3424
3420
|
:host {
|
|
3425
3421
|
display: var(--pip-button-display);
|
|
@@ -3433,10 +3429,10 @@ bs.innerHTML = `
|
|
|
3433
3429
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19 4a3 3 0 0 1 3 3v4a1 1 0 0 1 -2 0v-4a1 1 0 0 0 -1 -1h-14a1 1 0 0 0 -1 1v10a1 1 0 0 0 1 1h6a1 1 0 0 1 0 2h-6a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3z" /><path d="M20 13a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-3a2 2 0 0 1 2 -2z" /></svg>
|
|
3434
3430
|
</slot>
|
|
3435
3431
|
`;
|
|
3436
|
-
var
|
|
3432
|
+
var Ss = class extends b {
|
|
3437
3433
|
constructor() {
|
|
3438
3434
|
var e;
|
|
3439
|
-
super(), (e = this.shadowRoot) == null || e.appendChild(
|
|
3435
|
+
super(), (e = this.shadowRoot) == null || e.appendChild(xs.content.cloneNode(!0));
|
|
3440
3436
|
}
|
|
3441
3437
|
connectedCallback() {
|
|
3442
3438
|
super.connectedCallback(), this.setAttribute("aria-label", this.isPictureInPictureActive ? "Exit picture-in-picture" : "Picture-in-picture");
|
|
@@ -3461,15 +3457,15 @@ var xs = class extends b {
|
|
|
3461
3457
|
}));
|
|
3462
3458
|
}
|
|
3463
3459
|
};
|
|
3464
|
-
|
|
3465
|
-
...x(
|
|
3460
|
+
bs = Ss, e(Ss, "observedAttributes", [
|
|
3461
|
+
...x(bs, "observedAttributes", bs),
|
|
3466
3462
|
v.IS_PIP,
|
|
3467
3463
|
v.PIP_AVAILABLE
|
|
3468
3464
|
]);
|
|
3469
3465
|
//#endregion
|
|
3470
3466
|
//#region ../../libs/player-next/src/components/PlayButton.ts
|
|
3471
|
-
var
|
|
3472
|
-
|
|
3467
|
+
var Cs, ws = document.createElement("template");
|
|
3468
|
+
ws.innerHTML = `
|
|
3473
3469
|
<style>
|
|
3474
3470
|
:host {
|
|
3475
3471
|
display: var(--play-button-display);
|
|
@@ -3493,10 +3489,10 @@ Cs.innerHTML = `
|
|
|
3493
3489
|
</slot>
|
|
3494
3490
|
</slot>
|
|
3495
3491
|
`;
|
|
3496
|
-
var
|
|
3492
|
+
var Ts = class extends b {
|
|
3497
3493
|
constructor() {
|
|
3498
3494
|
var e;
|
|
3499
|
-
super(), (e = this.shadowRoot) == null || e.appendChild(
|
|
3495
|
+
super(), (e = this.shadowRoot) == null || e.appendChild(ws.content.cloneNode(!0));
|
|
3500
3496
|
}
|
|
3501
3497
|
connectedCallback() {
|
|
3502
3498
|
super.connectedCallback(), this.setAttribute("aria-label", this.paused ? "Play" : "Pause");
|
|
@@ -3521,7 +3517,7 @@ var ws = class extends b {
|
|
|
3521
3517
|
}));
|
|
3522
3518
|
}
|
|
3523
3519
|
};
|
|
3524
|
-
|
|
3520
|
+
Cs = Ts, e(Ts, "observedAttributes", [...x(Cs, "observedAttributes", Cs), v.PAUSED]);
|
|
3525
3521
|
//#endregion
|
|
3526
3522
|
//#region ../../libs/player-next/src/PlayerAttributes.ts
|
|
3527
3523
|
var K = {
|
|
@@ -3530,55 +3526,55 @@ var K = {
|
|
|
3530
3526
|
ADVANCED_RENDITION_MENU_ENABLED: "advanced-rendition-menu-enabled",
|
|
3531
3527
|
REFRESH_POSTER_ENABLED: "refresh-poster-enabled",
|
|
3532
3528
|
STREAM_POLL_ENABLED: "stream-poll-enabled"
|
|
3533
|
-
},
|
|
3529
|
+
}, Es = Object.values(K), Ds = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakSet(), Fs = class extends de {
|
|
3534
3530
|
constructor(e) {
|
|
3535
|
-
super(), w(this,
|
|
3531
|
+
super(), w(this, Ps), p(this, Ds, void 0), p(this, Os, void 0), p(this, ks, !1), p(this, As, !1), p(this, js, !0), p(this, Ms, null), p(this, Ns, null), m(Os, this, e), m(Ds, this, new le({
|
|
3536
3532
|
publicEndpoint: e.url,
|
|
3537
3533
|
tokenFactory: () => e.authenticationToken
|
|
3538
3534
|
}));
|
|
3539
3535
|
}
|
|
3540
3536
|
start(e = 5e3) {
|
|
3541
|
-
g(
|
|
3542
|
-
!g(
|
|
3537
|
+
g(Ns, this) && clearInterval(g(Ns, this)), m(ks, this, !1), m(As, this, !1), h(Ps, this, zs).call(this), h(Ps, this, Is).call(this), m(Ns, this, window.setInterval(() => {
|
|
3538
|
+
!g(As, this) && !g(Os, this).infiniteReconnect && !g(Ms, this) && g(js, this) && m(Ms, this, window.setTimeout(() => h(Ps, this, Ls).call(this), 300 * 1e3)), !g(As, this) && g(js, this) && h(Ps, this, Is).call(this);
|
|
3543
3539
|
}, e));
|
|
3544
3540
|
}
|
|
3545
3541
|
stop() {
|
|
3546
|
-
h(
|
|
3542
|
+
h(Ps, this, Rs).call(this), g(Ns, this) && (window.clearInterval(g(Ns, this)), m(Ns, this, null));
|
|
3547
3543
|
}
|
|
3548
3544
|
};
|
|
3549
|
-
function
|
|
3545
|
+
function Is() {
|
|
3550
3546
|
var e = this;
|
|
3551
3547
|
return _(function* () {
|
|
3552
|
-
if (g(
|
|
3553
|
-
m(
|
|
3548
|
+
if (g(ks, e)) return;
|
|
3549
|
+
m(ks, e, !0);
|
|
3554
3550
|
let t = "Stream is offline", n = "Please stand by";
|
|
3555
3551
|
try {
|
|
3556
|
-
let t = yield g(
|
|
3552
|
+
let t = yield g(Ds, e).getChannel(g(Os, e).channelId);
|
|
3557
3553
|
if (t.isLive) {
|
|
3558
|
-
m(
|
|
3554
|
+
m(As, e, !0), h(Ps, e, zs).call(e), e.emit("live", t), m(ks, e, !1);
|
|
3559
3555
|
return;
|
|
3560
3556
|
}
|
|
3561
3557
|
} catch (e) {
|
|
3562
3558
|
ce(e) && (e.status === 403 || e.status === 401) && (t = "Forbidden", n = "You do not have permission to view this stream");
|
|
3563
3559
|
}
|
|
3564
|
-
g(
|
|
3560
|
+
g(js, e) && e.emit("error", {
|
|
3565
3561
|
title: t,
|
|
3566
3562
|
message: n
|
|
3567
|
-
}), m(
|
|
3563
|
+
}), m(ks, e, !1);
|
|
3568
3564
|
})();
|
|
3569
3565
|
}
|
|
3570
|
-
function Is() {
|
|
3571
|
-
this.stop(), m(As, this, !1), this.emit("timeout");
|
|
3572
|
-
}
|
|
3573
3566
|
function Ls() {
|
|
3574
|
-
|
|
3567
|
+
this.stop(), m(js, this, !1), this.emit("timeout");
|
|
3575
3568
|
}
|
|
3576
3569
|
function Rs() {
|
|
3577
|
-
|
|
3570
|
+
g(Ms, this) && (window.clearTimeout(g(Ms, this)), m(Ms, this, null));
|
|
3571
|
+
}
|
|
3572
|
+
function zs() {
|
|
3573
|
+
h(Ps, this, Rs).call(this), m(js, this, !0);
|
|
3578
3574
|
}
|
|
3579
3575
|
//#endregion
|
|
3580
3576
|
//#region ../../libs/player-next/src/utils/browser.ts
|
|
3581
|
-
var
|
|
3577
|
+
var Bs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune\//i, Vs = navigator.userAgent.toLowerCase(), Hs = Bs.test(Vs), Us = (e) => Va.observedAttributes.includes(e), Ws = `
|
|
3582
3578
|
<style>
|
|
3583
3579
|
:host {
|
|
3584
3580
|
container-type: inline-size;
|
|
@@ -3588,7 +3584,7 @@ var zs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
|
|
|
3588
3584
|
display: flex;
|
|
3589
3585
|
justify-content: center;
|
|
3590
3586
|
|
|
3591
|
-
--vindral-volume-range-display: ${
|
|
3587
|
+
--vindral-volume-range-display: ${Hs ? "none" : "flex"};
|
|
3592
3588
|
--vindral-airplay-button-display: none;
|
|
3593
3589
|
--vindral-play-overlay-display: none;
|
|
3594
3590
|
--vindral-grid-item-offline-display: none;
|
|
@@ -3669,10 +3665,10 @@ var zs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
|
|
|
3669
3665
|
--vindral-subtitle-offset: -48px;
|
|
3670
3666
|
}
|
|
3671
3667
|
</style>
|
|
3672
|
-
`,
|
|
3668
|
+
`, Gs = (e) => {
|
|
3673
3669
|
let t = e ? "vindral-advanced-rendition-menu" : "vindral-rendition-levels-menu";
|
|
3674
3670
|
return `
|
|
3675
|
-
${
|
|
3671
|
+
${Ws}
|
|
3676
3672
|
|
|
3677
3673
|
<vindral-controller>
|
|
3678
3674
|
<vindral-control-bar slot="top-bar">
|
|
@@ -3711,8 +3707,8 @@ var zs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
|
|
|
3711
3707
|
</vindral-center-overlay>
|
|
3712
3708
|
</vindral-controller>
|
|
3713
3709
|
`;
|
|
3714
|
-
},
|
|
3715
|
-
${
|
|
3710
|
+
}, Ks = `
|
|
3711
|
+
${Ws}
|
|
3716
3712
|
|
|
3717
3713
|
<style>
|
|
3718
3714
|
#control-bar {
|
|
@@ -3736,58 +3732,58 @@ var zs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
|
|
|
3736
3732
|
<vindral-play-overlay id="play-overlay" hidden></vindral-play-overlay>
|
|
3737
3733
|
</vindral-center-overlay>
|
|
3738
3734
|
</vindral-controller>
|
|
3739
|
-
`,
|
|
3735
|
+
`, qs = document.createElement("template"), Js = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), Xs = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), $s = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), tc = /* @__PURE__ */ new WeakMap(), nc = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakSet(), rc = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), ac = /* @__PURE__ */ new WeakMap(), oc = class extends HTMLElement {
|
|
3740
3736
|
constructor() {
|
|
3741
|
-
super(), w(this, J), p(this,
|
|
3737
|
+
super(), w(this, J), p(this, Js, void 0), p(this, q, void 0), p(this, Ys, void 0), p(this, Xs, void 0), p(this, Zs, void 0), p(this, Qs, void 0), p(this, $s, /* @__PURE__ */ new Set()), p(this, ec, void 0), p(this, tc, () => {
|
|
3742
3738
|
Array.from(this.attributes).forEach((e) => {
|
|
3743
|
-
g(
|
|
3739
|
+
g(nc, this).call(this, e.name, e.value);
|
|
3744
3740
|
});
|
|
3745
|
-
}), p(this,
|
|
3746
|
-
|
|
3747
|
-
}), p(this,
|
|
3741
|
+
}), p(this, nc, (e, t) => {
|
|
3742
|
+
Us(e) && (y(t) ? g(q, this).setAttribute(e, t) : g(q, this).removeAttribute(e));
|
|
3743
|
+
}), p(this, rc, () => {
|
|
3748
3744
|
Array.from(this.children).forEach((e) => {
|
|
3749
|
-
g(
|
|
3745
|
+
g($s, this).add(e);
|
|
3750
3746
|
});
|
|
3751
|
-
}), p(this,
|
|
3747
|
+
}), p(this, ic, () => {
|
|
3752
3748
|
let e = g(q, this).instance;
|
|
3753
3749
|
e && (e.on("is live", (e) => {
|
|
3754
|
-
e ? (this.removeAttribute(K.OFFLINE), h(J, this,
|
|
3750
|
+
e ? (this.removeAttribute(K.OFFLINE), h(J, this, mc).call(this)) : (this.setAttribute(K.OFFLINE, ""), h(J, this, pc).call(this, "Stream is offline", "Please stand by"));
|
|
3755
3751
|
}), e.on("channels", (e) => {
|
|
3756
3752
|
let t = g(q, this).getAttribute("channel-id"), n = e.find((e) => e.channelId === t);
|
|
3757
|
-
n && h(J, this,
|
|
3753
|
+
n && h(J, this, dc).call(this, n);
|
|
3758
3754
|
}), e.on("channel switch", ({ channelId: t }) => {
|
|
3759
3755
|
let n = e.channels.find((e) => e.channelId === t);
|
|
3760
|
-
n && h(J, this,
|
|
3756
|
+
n && h(J, this, dc).call(this, n);
|
|
3761
3757
|
}), e.on("error", (e) => {
|
|
3762
3758
|
if (e.code() === "connection_failed") {
|
|
3763
|
-
h(J, this,
|
|
3759
|
+
h(J, this, pc).call(this, "Stream is offline", "Please stand by");
|
|
3764
3760
|
return;
|
|
3765
3761
|
}
|
|
3766
|
-
e.isFatal() && (e.code() === "access_forbidden" ? h(J, this,
|
|
3762
|
+
e.isFatal() && (e.code() === "access_forbidden" ? h(J, this, pc).call(this, "Forbidden", "You do not have permission to view this stream") : e.code() === "connection_failed_will_not_attempt_again" ? h(J, this, pc).call(this, "Stream is offline", "Please stand by") : h(J, this, pc).call(this, "An error occurred", e.message), g(Xs, this).removeAttribute("hidden"), this.setAttribute(K.OFFLINE, ""), g(q, this).dispatchEvent(new CustomEvent(C.EXIT_FULLSCREEN)), g(q, this).dispatchEvent(new CustomEvent(C.EXIT_PIP)));
|
|
3767
3763
|
}));
|
|
3768
|
-
}), p(this,
|
|
3769
|
-
g(q, this).connect(), g(
|
|
3770
|
-
}), m(
|
|
3764
|
+
}), p(this, ac, () => {
|
|
3765
|
+
g(q, this).connect(), g(Xs, this).setAttribute("hidden", ""), h(J, this, mc).call(this), g(q, this).focus();
|
|
3766
|
+
}), m(Js, this, this.attachShadow({ mode: "open" })), h(J, this, lc).call(this), m(q, this, g(Js, this).querySelector("vindral-controller")), m(Ys, this, g(Js, this).querySelector("#vindral-message")), m(Xs, this, g(Js, this).querySelector("#play-overlay")), m(Zs, this, g(Js, this).querySelector("#center-overlay"));
|
|
3771
3767
|
}
|
|
3772
3768
|
connectedCallback() {
|
|
3773
|
-
if (g(
|
|
3774
|
-
clearTimeout(g(
|
|
3769
|
+
if (g(ec, this) !== void 0) {
|
|
3770
|
+
clearTimeout(g(ec, this)), m(ec, this, void 0);
|
|
3775
3771
|
return;
|
|
3776
3772
|
}
|
|
3777
|
-
this.setAttribute(K.OFFLINE, ""), g(q, this).addEventListener("vindral-instance-ready", g(
|
|
3773
|
+
this.setAttribute(K.OFFLINE, ""), g(q, this).addEventListener("vindral-instance-ready", g(ic, this)), h(J, this, uc).call(this);
|
|
3778
3774
|
}
|
|
3779
3775
|
disconnectedCallback() {
|
|
3780
|
-
m(
|
|
3776
|
+
m(ec, this, setTimeout(() => {
|
|
3781
3777
|
var e;
|
|
3782
|
-
m(
|
|
3778
|
+
m(ec, this, void 0), g(q, this).removeEventListener("vindral-instance-ready", g(ic, this)), g(Xs, this).removeEventListener("click", g(ac, this)), (e = g(Qs, this)) == null || e.stop();
|
|
3783
3779
|
}));
|
|
3784
3780
|
}
|
|
3785
3781
|
attributeChangedCallback(e, t, n) {
|
|
3786
|
-
if (t !== n) if (e === v.MEDIA || e === K.ADVANCED_RENDITION_MENU_ENABLED) h(J, this,
|
|
3782
|
+
if (t !== n) if (e === v.MEDIA || e === K.ADVANCED_RENDITION_MENU_ENABLED) h(J, this, lc).call(this);
|
|
3787
3783
|
else if (e === K.REFRESH_POSTER_ENABLED) {
|
|
3788
|
-
let e = g(
|
|
3784
|
+
let e = g(Js, this).querySelector("vindral-poster-overlay");
|
|
3789
3785
|
e && (e.disabled = S(this.getAttribute(K.REFRESH_POSTER_ENABLED), !1) === !1);
|
|
3790
|
-
} else g(
|
|
3786
|
+
} else g(nc, this).call(this, e, n);
|
|
3791
3787
|
}
|
|
3792
3788
|
get instance() {
|
|
3793
3789
|
return g(q, this).instance;
|
|
@@ -3802,67 +3798,67 @@ var zs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
|
|
|
3802
3798
|
g(q, this).timelineMarkers = e;
|
|
3803
3799
|
}
|
|
3804
3800
|
};
|
|
3805
|
-
function oc() {
|
|
3806
|
-
let e = ye(this.getAttribute(v.MEDIA)), t = S(this.getAttribute(K.ADVANCED_RENDITION_MENU_ENABLED), !1);
|
|
3807
|
-
return e === "audio" ? Gs : Ws(t);
|
|
3808
|
-
}
|
|
3809
3801
|
function sc() {
|
|
3810
|
-
|
|
3802
|
+
let e = ye(this.getAttribute(v.MEDIA)), t = S(this.getAttribute(K.ADVANCED_RENDITION_MENU_ENABLED), !1);
|
|
3803
|
+
return e === "audio" ? Ks : Gs(t);
|
|
3811
3804
|
}
|
|
3812
3805
|
function cc() {
|
|
3813
|
-
|
|
3814
|
-
sc.call(h(J, this)) && t && t.removeEventListener("vindral-instance-ready", g(rc, this)), sc.call(h(J, this)) && n && g(Zs, this) && n.removeEventListener("click", g(ic, this)), Ks.innerHTML = h(J, this, oc).call(this);
|
|
3815
|
-
let r = Ks.content.cloneNode(!0);
|
|
3816
|
-
m(q, this, r.querySelector("vindral-controller")), m(Js, this, r.querySelector("#vindral-message")), m(Ys, this, r.querySelector("#play-overlay")), m(Xs, this, r.querySelector("#center-overlay")), g(nc, this).call(this), g(Qs, this).forEach((e) => {
|
|
3817
|
-
g(q, this).appendChild(e);
|
|
3818
|
-
}), g(ec, this).call(this), g(qs, this).innerHTML = "", g(qs, this).appendChild(r), sc.call(h(J, this)) && (g(q, this).addEventListener("vindral-instance-ready", g(rc, this)), g(Zs, this) && g(Ys, this).addEventListener("click", g(ic, this)));
|
|
3806
|
+
return this.isConnected || g(ec, this) !== void 0;
|
|
3819
3807
|
}
|
|
3820
3808
|
function lc() {
|
|
3809
|
+
let e = g(Js, this).hasChildNodes(), t = e ? g(q, this) : void 0, n = e ? g(Xs, this) : void 0;
|
|
3810
|
+
cc.call(h(J, this)) && t && t.removeEventListener("vindral-instance-ready", g(ic, this)), cc.call(h(J, this)) && n && g(Qs, this) && n.removeEventListener("click", g(ac, this)), qs.innerHTML = h(J, this, sc).call(this);
|
|
3811
|
+
let r = qs.content.cloneNode(!0);
|
|
3812
|
+
m(q, this, r.querySelector("vindral-controller")), m(Ys, this, r.querySelector("#vindral-message")), m(Xs, this, r.querySelector("#play-overlay")), m(Zs, this, r.querySelector("#center-overlay")), g(rc, this).call(this), g($s, this).forEach((e) => {
|
|
3813
|
+
g(q, this).appendChild(e);
|
|
3814
|
+
}), g(tc, this).call(this), g(Js, this).innerHTML = "", g(Js, this).appendChild(r), cc.call(h(J, this)) && (g(q, this).addEventListener("vindral-instance-ready", g(ic, this)), g(Qs, this) && g(Xs, this).addEventListener("click", g(ac, this)));
|
|
3815
|
+
}
|
|
3816
|
+
function uc() {
|
|
3821
3817
|
var e;
|
|
3822
3818
|
if (S(this.getAttribute(K.STREAM_POLL_ENABLED), !0) === !1) return;
|
|
3823
3819
|
let t = this.getAttribute("url") || "https://lb.cdn.vindral.com", n = this.getAttribute("channel-id"), r = (e = this.getAttribute("authentication-token")) == null ? void 0 : e, i = this.hasAttribute("infinite-reconnect");
|
|
3824
3820
|
if (!n) {
|
|
3825
|
-
this.setAttribute(K.OFFLINE, ""), h(J, this,
|
|
3821
|
+
this.setAttribute(K.OFFLINE, ""), h(J, this, pc).call(this, "Invalid options", "Please enter a channel id to start the stream");
|
|
3826
3822
|
return;
|
|
3827
3823
|
}
|
|
3828
|
-
m(
|
|
3824
|
+
m(Qs, this, new Fs({
|
|
3829
3825
|
url: t,
|
|
3830
3826
|
channelId: n,
|
|
3831
3827
|
authenticationToken: r,
|
|
3832
3828
|
infiniteReconnect: i
|
|
3833
|
-
})), g(
|
|
3834
|
-
g(q, this).connect(), this.removeAttribute("offline"), h(J, this,
|
|
3835
|
-
}), g(
|
|
3836
|
-
h(J, this,
|
|
3837
|
-
}), g(
|
|
3838
|
-
this.setAttribute(K.OFFLINE, ""), h(J, this,
|
|
3839
|
-
}), g(
|
|
3840
|
-
}
|
|
3841
|
-
function
|
|
3829
|
+
})), g(Qs, this).on("live", (e) => {
|
|
3830
|
+
g(q, this).connect(), this.removeAttribute("offline"), h(J, this, mc).call(this), h(J, this, dc).call(this, e);
|
|
3831
|
+
}), g(Qs, this).on("timeout", () => {
|
|
3832
|
+
h(J, this, mc).call(this), g(Xs, this).removeAttribute("hidden");
|
|
3833
|
+
}), g(Qs, this).on("error", (e) => {
|
|
3834
|
+
this.setAttribute(K.OFFLINE, ""), h(J, this, pc).call(this, e.title, e.message);
|
|
3835
|
+
}), g(Xs, this).addEventListener("click", g(ac, this)), this.hasAttribute("paused") && g(Qs, this).start();
|
|
3836
|
+
}
|
|
3837
|
+
function dc(e) {
|
|
3842
3838
|
var t, n, r;
|
|
3843
3839
|
let i = ge(this.getAttribute("title"), !1);
|
|
3844
3840
|
i && Ae({
|
|
3845
3841
|
title: typeof i == "string" ? i : e.name,
|
|
3846
|
-
poster: (t = (n = h(J, this,
|
|
3842
|
+
poster: (t = (n = h(J, this, fc).call(this)) == null ? (r = this.instance) == null ? void 0 : r.getThumbnailUrl() : n) == null ? e.thumbnailUrls[0] : t
|
|
3847
3843
|
});
|
|
3848
3844
|
}
|
|
3849
|
-
function
|
|
3845
|
+
function fc() {
|
|
3850
3846
|
let e = ge(this.getAttribute("poster"));
|
|
3851
3847
|
return y(e) ? e : void 0;
|
|
3852
3848
|
}
|
|
3853
|
-
function
|
|
3854
|
-
g(
|
|
3855
|
-
let n = h(J, this,
|
|
3856
|
-
n ? g(
|
|
3849
|
+
function pc(e, t) {
|
|
3850
|
+
g(Ys, this).setAttribute("title", e), g(Ys, this).setAttribute("description", t), g(Ys, this).removeAttribute("hidden");
|
|
3851
|
+
let n = h(J, this, fc).call(this);
|
|
3852
|
+
n ? g(Zs, this).setAttribute("poster", n) : g(Zs, this).removeAttribute("poster"), g(Zs, this).setAttribute("backdrop", "");
|
|
3857
3853
|
}
|
|
3858
|
-
function
|
|
3859
|
-
g(
|
|
3854
|
+
function mc() {
|
|
3855
|
+
g(Ys, this).setAttribute("hidden", ""), g(Zs, this).removeAttribute("backdrop");
|
|
3860
3856
|
}
|
|
3861
|
-
e(
|
|
3857
|
+
e(oc, "observedAttributes", [...Va.observedAttributes, ...Es]);
|
|
3862
3858
|
//#endregion
|
|
3863
3859
|
//#region ../../libs/player-next/src/components/PosterOverlay.ts
|
|
3864
|
-
var
|
|
3865
|
-
|
|
3860
|
+
var hc = document.createElement("template");
|
|
3861
|
+
hc.innerHTML = `
|
|
3866
3862
|
<style>
|
|
3867
3863
|
:host {
|
|
3868
3864
|
display: var(--poster-overlay-display);
|
|
@@ -3897,26 +3893,26 @@ mc.innerHTML = `
|
|
|
3897
3893
|
}
|
|
3898
3894
|
</style>
|
|
3899
3895
|
`;
|
|
3900
|
-
var
|
|
3896
|
+
var gc = 6e3, _c = /* @__PURE__ */ new WeakMap(), vc = /* @__PURE__ */ new WeakMap(), yc = /* @__PURE__ */ new WeakMap(), bc = /* @__PURE__ */ new WeakMap(), xc = /* @__PURE__ */ new WeakSet(), Sc = /* @__PURE__ */ new WeakMap(), Cc = class extends HTMLElement {
|
|
3901
3897
|
constructor() {
|
|
3902
|
-
super(), w(this,
|
|
3903
|
-
!document.hidden && this.hasAttribute("intersecting") && this.paused && !this.disabled ? h(
|
|
3904
|
-
}), p(this,
|
|
3898
|
+
super(), w(this, xc), p(this, _c, null), p(this, vc, null), p(this, yc, null), p(this, bc, () => {
|
|
3899
|
+
!document.hidden && this.hasAttribute("intersecting") && this.paused && !this.disabled ? h(xc, this, wc).call(this) : h(xc, this, Tc).call(this);
|
|
3900
|
+
}), p(this, Sc, (e) => {
|
|
3905
3901
|
e.forEach((e) => {
|
|
3906
3902
|
e.isIntersecting ? this.setAttribute("intersecting", "") : this.removeAttribute("intersecting");
|
|
3907
3903
|
});
|
|
3908
|
-
}), this.attachShadow({ mode: "open" }).appendChild(
|
|
3904
|
+
}), this.attachShadow({ mode: "open" }).appendChild(hc.content.cloneNode(!0));
|
|
3909
3905
|
}
|
|
3910
3906
|
connectedCallback() {
|
|
3911
3907
|
var e;
|
|
3912
|
-
m(
|
|
3908
|
+
m(_c, this, this.closest("vindral-controller")), (e = g(_c, this)) == null || e.connectListener(this), document.addEventListener("visibilitychange", g(bc, this)), m(yc, this, new IntersectionObserver(g(Sc, this))), g(yc, this).observe(this);
|
|
3913
3909
|
}
|
|
3914
3910
|
disconnectedCallback() {
|
|
3915
3911
|
var e, t;
|
|
3916
|
-
(e = g(
|
|
3912
|
+
(e = g(_c, this)) == null || e.disconnectListener(this), document.removeEventListener("visibilitychange", g(bc, this)), (t = g(yc, this)) == null || t.disconnect(), m(yc, this, null), h(xc, this, Tc).call(this);
|
|
3917
3913
|
}
|
|
3918
3914
|
attributeChangedCallback(e, t, n) {
|
|
3919
|
-
t !== n && (e === v.POSTER_SRC && this.paused && !this.disabled && h(
|
|
3915
|
+
t !== n && (e === v.POSTER_SRC && this.paused && !this.disabled && h(xc, this, Ec).call(this), (e === v.PAUSED || e === "disabled" || e === "intersecting") && g(bc, this).call(this));
|
|
3920
3916
|
}
|
|
3921
3917
|
get disabled() {
|
|
3922
3918
|
return this.hasAttribute("disabled");
|
|
@@ -3931,18 +3927,18 @@ var hc = 6e3, gc = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakM
|
|
|
3931
3927
|
return this.hasAttribute(v.PAUSED);
|
|
3932
3928
|
}
|
|
3933
3929
|
};
|
|
3934
|
-
function Cc() {
|
|
3935
|
-
g(_c, this) === null && (h(bc, this, wc).call(this), m(_c, this, window.setInterval(() => h(bc, this, Tc).call(this), hc)));
|
|
3936
|
-
}
|
|
3937
3930
|
function wc() {
|
|
3938
|
-
g(
|
|
3931
|
+
g(vc, this) === null && (h(xc, this, Tc).call(this), m(vc, this, window.setInterval(() => h(xc, this, Ec).call(this), gc)));
|
|
3939
3932
|
}
|
|
3940
3933
|
function Tc() {
|
|
3934
|
+
g(vc, this) !== null && (clearInterval(g(vc, this)), m(vc, this, null)), this.style.backgroundImage = "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAQAAACRI2S5AAAAEElEQVR42mNkIAAYRxWAAQAG9gAKqv6+AwAAAABJRU5ErkJggg==')";
|
|
3935
|
+
}
|
|
3936
|
+
function Ec() {
|
|
3941
3937
|
if (!this.posterSrc) return;
|
|
3942
3938
|
let e = new URL(this.posterSrc), t = new Image();
|
|
3943
3939
|
e.searchParams.set("t", Date.now().toString()), t.src = e.toString(), t.onload = () => this.style.backgroundImage = `url(${e.toString()})`;
|
|
3944
3940
|
}
|
|
3945
|
-
e(
|
|
3941
|
+
e(Cc, "observedAttributes", [
|
|
3946
3942
|
v.POSTER_SRC,
|
|
3947
3943
|
v.PAUSED,
|
|
3948
3944
|
"disabled",
|
|
@@ -3950,70 +3946,70 @@ e(Sc, "observedAttributes", [
|
|
|
3950
3946
|
]);
|
|
3951
3947
|
//#endregion
|
|
3952
3948
|
//#region ../../libs/player-next/src/components/RenditionLevelsMenu.ts
|
|
3953
|
-
var
|
|
3954
|
-
|
|
3949
|
+
var Dc, Oc = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-settings-filled\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"#2c3e50\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M14.647 4.081a.724 .724 0 0 0 1.08 .448c2.439 -1.485 5.23 1.305 3.745 3.744a.724 .724 0 0 0 .447 1.08c2.775 .673 2.775 4.62 0 5.294a.724 .724 0 0 0 -.448 1.08c1.485 2.439 -1.305 5.23 -3.744 3.745a.724 .724 0 0 0 -1.08 .447c-.673 2.775 -4.62 2.775 -5.294 0a.724 .724 0 0 0 -1.08 -.448c-2.439 1.485 -5.23 -1.305 -3.745 -3.744a.724 .724 0 0 0 -.447 -1.08c-2.775 -.673 -2.775 -4.62 0 -5.294a.724 .724 0 0 0 .448 -1.08c-1.485 -2.439 1.305 -5.23 3.744 -3.745a.722 .722 0 0 0 1.08 -.447c.673 -2.775 4.62 -2.775 5.294 0zm-2.647 4.919a3 3 0 1 0 0 6a3 3 0 0 0 0 -6z\" stroke-width=\"0\" fill=\"currentColor\" />\n</svg>\n", kc = document.createElement("template");
|
|
3950
|
+
kc.innerHTML = `
|
|
3955
3951
|
<style>
|
|
3956
3952
|
:host {
|
|
3957
3953
|
display: var(--rendition-menu-display);
|
|
3958
3954
|
}
|
|
3959
3955
|
</style>
|
|
3960
3956
|
|
|
3961
|
-
<slot name="button">${
|
|
3957
|
+
<slot name="button">${Oc}</slot>
|
|
3962
3958
|
<slot name="listbox" hidden>
|
|
3963
3959
|
<vindral-rendition-levels-menu-list id="listbox" part="listbox"></vindral-rendition-levels-menu-list>
|
|
3964
3960
|
</slot>
|
|
3965
3961
|
`;
|
|
3966
|
-
var
|
|
3962
|
+
var Ac = /* @__PURE__ */ new WeakSet(), jc = class extends Be {
|
|
3967
3963
|
constructor() {
|
|
3968
3964
|
var e, t, n;
|
|
3969
|
-
super(), w(this,
|
|
3965
|
+
super(), w(this, Ac), (e = this.shadowRoot) == null || e.appendChild(kc.content.cloneNode(!0)), this.listbox = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[part=listbox]"), this.listboxSlot = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot[name=listbox]");
|
|
3970
3966
|
}
|
|
3971
3967
|
connectedCallback() {
|
|
3972
|
-
super.connectedCallback(), h(
|
|
3968
|
+
super.connectedCallback(), h(Ac, this, Mc).call(this), this.setAttribute("aria-label", "Quality");
|
|
3973
3969
|
}
|
|
3974
3970
|
attributeChangedCallback(e, t, n) {
|
|
3975
|
-
super.attributeChangedCallback(e, t, n), e === v.RENDITION_LEVELS && h(
|
|
3971
|
+
super.attributeChangedCallback(e, t, n), e === v.RENDITION_LEVELS && h(Ac, this, Mc).call(this);
|
|
3976
3972
|
}
|
|
3977
3973
|
};
|
|
3978
|
-
|
|
3979
|
-
function
|
|
3974
|
+
Dc = jc;
|
|
3975
|
+
function Mc() {
|
|
3980
3976
|
let e = this.getAttribute(v.RENDITION_LEVELS);
|
|
3981
3977
|
!e || e === "[]" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
|
|
3982
3978
|
}
|
|
3983
|
-
e(
|
|
3979
|
+
e(jc, "observedAttributes", [...x(Dc, "observedAttributes", Dc), v.RENDITION_LEVELS]);
|
|
3984
3980
|
//#endregion
|
|
3985
3981
|
//#region ../../libs/player-next/src/components/RenditionLevelsMenuList.ts
|
|
3986
|
-
var
|
|
3987
|
-
|
|
3988
|
-
var
|
|
3982
|
+
var Nc = document.createElement("template");
|
|
3983
|
+
Nc.innerHTML = "\n <style>\n :host {\n font: inherit;\n cursor: default;\n padding: var(--padding-2) !important;\n padding-top: var(--padding-3) !important;\n border-radius: 0.25em;\n position: absolute;\n min-width: 140px !important;\n background: var(--bg-subtle);\n z-index: 1;\n overflow: auto;\n }\n\n :host([list-position=\"top\"]) {\n bottom: calc(100% + 0.5em);\n transform: translate(-50%);\n }\n\n :host([list-position=\"bottom\"]) {\n top: calc(100% + 0.5em);\n }\n\n :host::-webkit-scrollbar {\n width: 5px;\n padding-right: 5px;\n }\n\n :host::-webkit-scrollbar-thumb {\n background-color: var(--fg-extra-subtle);\n border-radius: 10px;\n border: 0;\n }\n\n :host::-webkit-scrollbar-track {\n border-radius: 10px;\n background-color: transparent;\n }\n\n .menu {\n display: grid;\n gap: var(--padding-1);\n }\n\n [role=\"menuitem\"] {\n flex: 1;\n position: relative;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 44px;\n padding: 0 var(--padding-5);\n border-radius: 4px;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n white-space: nowrap;\n text-align: left;\n }\n\n [role=\"menuitem\"]:hover {\n background: var(--bg-component-hover);\n }\n\n [role=\"menuitem\"][aria-selected=\"true\"] {\n background: var(--bg-component-active);\n }\n\n [role=\"menuitem\"][aria-selected=\"true\"]::before {\n content: url(\"data:image/svg+xml,%0A%20%20%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2078.369%2078.369%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20d%3D%22M78.049%2019.015%2029.458%2067.606a1.094%201.094%200%200%201-1.548%200L.32%2040.015a1.094%201.094%200%200%201%200-1.547l6.704-6.704a1.095%201.095%200%200%201%201.548%200l20.113%2020.112%2041.113-41.113a1.095%201.095%200%200%201%201.548%200l6.703%206.704a1.094%201.094%200%200%201%200%201.548z%22%2F%3E%3C%2Fsvg%3E%0A\");\n position: absolute;\n left: calc(var(--padding-3) - var(--padding-1));\n top: calc(50% - 8px);\n }\n\n [role=\"menuitem\"]:focus-visible {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n outline: 0;\n }\n\n .menu-item-subtitle {\n font-size: 11px;\n opacity: 0.6;\n }\n\n .heading {\n text-transform: uppercase;\n margin-bottom: var(--padding-2);\n padding: 0 var(--padding-3);\n font-size: 11px;\n font-weight: bold;\n }\n </style>\n\n <slot>\n <div class=\"heading\">Max quality</div>\n <div class=\"menu\"></div>\n </slot>\n";
|
|
3984
|
+
var Pc = /* @__PURE__ */ new WeakMap(), Fc = /* @__PURE__ */ new WeakMap(), Ic = /* @__PURE__ */ new WeakMap(), Lc = /* @__PURE__ */ new WeakMap(), Rc = /* @__PURE__ */ new WeakMap(), zc = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), Bc = class extends HTMLElement {
|
|
3989
3985
|
constructor() {
|
|
3990
|
-
super(), w(this, Y), p(this,
|
|
3986
|
+
super(), w(this, Y), p(this, Pc, []), p(this, Fc, 2 ** 53 - 1), p(this, Ic, null), p(this, Lc, []), p(this, Rc, null), p(this, zc, null), e(this, "handleEvent", (e) => {
|
|
3991
3987
|
switch (e.type) {
|
|
3992
3988
|
case "keydown":
|
|
3993
|
-
h(Y, this,
|
|
3989
|
+
h(Y, this, Kc).call(this, e);
|
|
3994
3990
|
break;
|
|
3995
3991
|
}
|
|
3996
|
-
}), this.attachShadow({ mode: "open" }).appendChild(
|
|
3992
|
+
}), this.attachShadow({ mode: "open" }).appendChild(Nc.content.cloneNode(!0));
|
|
3997
3993
|
}
|
|
3998
3994
|
connectedCallback() {
|
|
3999
3995
|
let e = this.getRootNode();
|
|
4000
3996
|
if (e instanceof ShadowRoot) {
|
|
4001
3997
|
var t;
|
|
4002
|
-
m(
|
|
3998
|
+
m(Rc, this, e.host.closest("vindral-controller")), (t = g(Rc, this)) == null || t.connectListener(this), h(Y, this, Vc).call(this), h(Y, this, Hc).call(this), m(zc, this, e.host), this.addEventListener("keydown", this);
|
|
4003
3999
|
}
|
|
4004
4000
|
}
|
|
4005
4001
|
disconnectedCallback() {
|
|
4006
4002
|
var e;
|
|
4007
|
-
(e = g(
|
|
4003
|
+
(e = g(Rc, this)) == null || e.disconnectListener(this), this.removeEventListener("keydown", this);
|
|
4008
4004
|
}
|
|
4009
4005
|
attributeChangedCallback(e, t, n) {
|
|
4010
4006
|
t !== n && (e === v.RENDITION_LEVELS && n && (this.list = JSON.parse(n)), e === v.MAX_VIDEO_BITRATE && n && (this.maxVideoBitrate = n ? parseInt(n, 10) : 2 ** 53 - 1));
|
|
4011
4007
|
}
|
|
4012
4008
|
set list(e) {
|
|
4013
|
-
m(
|
|
4009
|
+
m(Pc, this, e), h(Y, this, Hc).call(this);
|
|
4014
4010
|
}
|
|
4015
4011
|
set maxVideoBitrate(e) {
|
|
4016
|
-
m(
|
|
4012
|
+
m(Fc, this, e), h(Y, this, Wc).call(this);
|
|
4017
4013
|
}
|
|
4018
4014
|
get keysUsed() {
|
|
4019
4015
|
return [
|
|
@@ -4029,10 +4025,10 @@ var Nc = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), Fc =
|
|
|
4029
4025
|
}
|
|
4030
4026
|
focus() {
|
|
4031
4027
|
var e;
|
|
4032
|
-
(e = g(
|
|
4028
|
+
(e = g(Ic, this)) == null || e.focus();
|
|
4033
4029
|
}
|
|
4034
4030
|
};
|
|
4035
|
-
function
|
|
4031
|
+
function Vc() {
|
|
4036
4032
|
new IntersectionObserver((e) => {
|
|
4037
4033
|
e.forEach((e) => {
|
|
4038
4034
|
if (e.intersectionRatio !== 1) if (e.intersectionRatio > 0) {
|
|
@@ -4041,50 +4037,50 @@ function Bc() {
|
|
|
4041
4037
|
} else this.style.height = "auto";
|
|
4042
4038
|
});
|
|
4043
4039
|
}, {
|
|
4044
|
-
root: g(
|
|
4040
|
+
root: g(Rc, this),
|
|
4045
4041
|
threshold: 0
|
|
4046
4042
|
}).observe(this);
|
|
4047
4043
|
}
|
|
4048
|
-
function
|
|
4044
|
+
function Hc() {
|
|
4049
4045
|
var e;
|
|
4050
4046
|
let t = (e = this.shadowRoot) == null ? void 0 : e.querySelector(".menu");
|
|
4051
|
-
t && (m(
|
|
4047
|
+
t && (m(Lc, this, []), t.innerHTML = "", g(Pc, this).sort((e, t) => {
|
|
4052
4048
|
var n, r;
|
|
4053
4049
|
return (n = e.video) != null && n.bitRate && (r = t.video) != null && r.bitRate ? t.video.bitRate - e.video.bitRate : 0;
|
|
4054
4050
|
}).forEach((e) => {
|
|
4055
4051
|
var n, r, i, a, o, s, c, l;
|
|
4056
4052
|
let u = document.createElement("div");
|
|
4057
4053
|
u.setAttribute("role", "menuitem"), u.setAttribute("value", String((n = e.video) == null ? void 0 : n.height)), u.classList.add("menu-item"), u.tabIndex = -1;
|
|
4058
|
-
let d = h(Y, this,
|
|
4054
|
+
let d = h(Y, this, Uc).call(this, (r = e.video) == null ? void 0 : r.frameRate);
|
|
4059
4055
|
u.textContent = e.video ? fe(e.video) : "";
|
|
4060
4056
|
let f = document.createElement("span");
|
|
4061
|
-
f.classList.add("menu-item-subtitle"), f.textContent = `${pe(((i = (a = e.video) == null ? void 0 : a.bitRate) == null ? 0 : i) + ((o = (s = e.audio) == null ? void 0 : s.bitRate) == null ? 0 : o))}, ${d}p`, u.appendChild(f), u.addEventListener("click", () => h(Y, this,
|
|
4057
|
+
f.classList.add("menu-item-subtitle"), f.textContent = `${pe(((i = (a = e.video) == null ? void 0 : a.bitRate) == null ? 0 : i) + ((o = (s = e.audio) == null ? void 0 : s.bitRate) == null ? 0 : o))}, ${d}p`, u.appendChild(f), u.addEventListener("click", () => h(Y, this, Gc).call(this, e)), g(Lc, this).push({
|
|
4062
4058
|
el: u,
|
|
4063
4059
|
id: (c = (l = e.video) == null ? void 0 : l.id) == null ? -1 : c
|
|
4064
4060
|
}), t.appendChild(u);
|
|
4065
|
-
}), h(Y, this,
|
|
4061
|
+
}), h(Y, this, Wc).call(this));
|
|
4066
4062
|
}
|
|
4067
|
-
function
|
|
4063
|
+
function Uc(e) {
|
|
4068
4064
|
return e ? e[0] % e[1] === 0 ? (e[0] / e[1]).toString() : (e[0] / e[1]).toFixed(2) : "";
|
|
4069
4065
|
}
|
|
4070
|
-
function
|
|
4071
|
-
g(
|
|
4072
|
-
let e = g(
|
|
4066
|
+
function Wc() {
|
|
4067
|
+
g(Ic, this) && (g(Ic, this).removeAttribute("aria-selected"), g(Ic, this).tabIndex = -1);
|
|
4068
|
+
let e = g(Pc, this).sort((e, t) => {
|
|
4073
4069
|
var n, r;
|
|
4074
4070
|
return (n = e.video) != null && n.bitRate && (r = t.video) != null && r.bitRate ? t.video.bitRate - e.video.bitRate : 0;
|
|
4075
|
-
}), t = g(
|
|
4071
|
+
}), t = g(Pc, this).filter((e) => {
|
|
4076
4072
|
var t;
|
|
4077
|
-
return ((t = e.video) == null ? void 0 : t.bitRate) && e.video.bitRate <= g(
|
|
4073
|
+
return ((t = e.video) == null ? void 0 : t.bitRate) && e.video.bitRate <= g(Fc, this);
|
|
4078
4074
|
})[0] || e[e.length - 1];
|
|
4079
4075
|
if (t) {
|
|
4080
|
-
let e = g(
|
|
4076
|
+
let e = g(Lc, this).find((e) => {
|
|
4081
4077
|
var n;
|
|
4082
4078
|
return e.id === ((n = t.video) == null ? void 0 : n.id);
|
|
4083
4079
|
});
|
|
4084
|
-
e && (e.el.tabIndex = 0, e.el.setAttribute("aria-selected", "true"), m(
|
|
4080
|
+
e && (e.el.tabIndex = 0, e.el.setAttribute("aria-selected", "true"), m(Ic, this, e.el));
|
|
4085
4081
|
}
|
|
4086
4082
|
}
|
|
4087
|
-
function
|
|
4083
|
+
function Gc(e) {
|
|
4088
4084
|
this.dispatchEvent(new Event("change", {
|
|
4089
4085
|
bubbles: !0,
|
|
4090
4086
|
composed: !0
|
|
@@ -4094,36 +4090,36 @@ function Wc(e) {
|
|
|
4094
4090
|
detail: e
|
|
4095
4091
|
}));
|
|
4096
4092
|
}
|
|
4097
|
-
function
|
|
4093
|
+
function Kc(e) {
|
|
4098
4094
|
let { key: t, ctrlKey: n, altKey: r, metaKey: i } = e;
|
|
4099
4095
|
if (!(n || r || i) && this.keysUsed.includes(t)) if (e.preventDefault(), e.stopPropagation(), t === "Tab" || t === "Escape") {
|
|
4100
4096
|
var a;
|
|
4101
|
-
(a = g(
|
|
4097
|
+
(a = g(zc, this)) == null || a.hide();
|
|
4102
4098
|
} else if (t === "Enter" || t === " ") {
|
|
4103
4099
|
var o;
|
|
4104
|
-
(o = h(Y, this,
|
|
4105
|
-
} else h(Y, this,
|
|
4100
|
+
(o = h(Y, this, Jc).call(this)) == null || (o = o.el) == null || o.click();
|
|
4101
|
+
} else h(Y, this, qc).call(this, e);
|
|
4106
4102
|
}
|
|
4107
|
-
function
|
|
4103
|
+
function qc(e) {
|
|
4108
4104
|
var t;
|
|
4109
|
-
let { key: n } = e, r = g(
|
|
4105
|
+
let { key: n } = e, r = g(Lc, this), i = (t = h(Y, this, Jc).call(this)) == null ? r[0] : t;
|
|
4110
4106
|
if (!i) return;
|
|
4111
4107
|
let a = r.indexOf(i), o = Math.max(0, a);
|
|
4112
4108
|
n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : e.key === "Home" ? o = 0 : e.key === "End" && (o = r.length - 1), o < 0 && (o = r.length - 1), o > r.length - 1 && (o = 0);
|
|
4113
4109
|
let s = r[o];
|
|
4114
|
-
s && (h(Y, this,
|
|
4110
|
+
s && (h(Y, this, Yc).call(this, s.id), s.el.focus());
|
|
4115
4111
|
}
|
|
4116
|
-
function
|
|
4117
|
-
return g(
|
|
4112
|
+
function Jc() {
|
|
4113
|
+
return g(Lc, this).find((e) => e.el.tabIndex === 0);
|
|
4118
4114
|
}
|
|
4119
|
-
function
|
|
4120
|
-
for (let t of g(
|
|
4115
|
+
function Yc(e) {
|
|
4116
|
+
for (let t of g(Lc, this)) t.el.tabIndex = t.id === e ? 0 : -1;
|
|
4121
4117
|
}
|
|
4122
|
-
e(
|
|
4118
|
+
e(Bc, "observedAttributes", [v.RENDITION_LEVELS, v.MAX_VIDEO_BITRATE]);
|
|
4123
4119
|
//#endregion
|
|
4124
4120
|
//#region ../../libs/player-next/src/components/ScrollOverlay.ts
|
|
4125
|
-
var
|
|
4126
|
-
|
|
4121
|
+
var Xc = document.createElement("template");
|
|
4122
|
+
Xc.innerHTML = `
|
|
4127
4123
|
<style>
|
|
4128
4124
|
:host {
|
|
4129
4125
|
--scroll-overlay-offset: var(--vindral-scroll-overlay-offset, 0px);
|
|
@@ -4191,81 +4187,81 @@ Yc.innerHTML = `
|
|
|
4191
4187
|
<div id="scroll-area"></div>
|
|
4192
4188
|
<slot id="content"></slot>
|
|
4193
4189
|
`;
|
|
4194
|
-
var
|
|
4190
|
+
var Zc = /* @__PURE__ */ new WeakMap(), Qc = /* @__PURE__ */ new WeakMap(), $c = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new WeakMap(), nl = /* @__PURE__ */ new WeakMap(), rl = /* @__PURE__ */ new WeakMap(), il = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakSet(), al = /* @__PURE__ */ new WeakMap(), ol = class extends HTMLElement {
|
|
4195
4191
|
constructor() {
|
|
4196
|
-
super(), w(this, X), p(this,
|
|
4192
|
+
super(), w(this, X), p(this, Zc, null), p(this, Qc, null), p(this, $c, !1), p(this, el, !1), p(this, tl, !1), p(this, nl, () => {
|
|
4197
4193
|
this.open && (this.open = !1);
|
|
4198
|
-
}), p(this,
|
|
4199
|
-
if (this.open && !g(
|
|
4194
|
+
}), p(this, rl, null), p(this, il, window.ResizeObserver ? new ResizeObserver(() => {
|
|
4195
|
+
if (this.open && !g($c, this)) {
|
|
4200
4196
|
var e;
|
|
4201
4197
|
this.scrollTo({
|
|
4202
|
-
top: (e = g(
|
|
4198
|
+
top: (e = g(Qc, this)) == null ? void 0 : e.clientHeight,
|
|
4203
4199
|
behavior: "smooth"
|
|
4204
4200
|
});
|
|
4205
4201
|
}
|
|
4206
4202
|
}) : null), e(this, "handleEvent", (e) => {
|
|
4207
4203
|
switch (e.type) {
|
|
4208
4204
|
case "touchstart":
|
|
4209
|
-
h(X, this,
|
|
4205
|
+
h(X, this, cl).call(this, e);
|
|
4210
4206
|
break;
|
|
4211
4207
|
case "touchmove":
|
|
4212
|
-
h(X, this,
|
|
4208
|
+
h(X, this, ll).call(this, e);
|
|
4213
4209
|
break;
|
|
4214
4210
|
case "touchend":
|
|
4215
|
-
h(X, this,
|
|
4211
|
+
h(X, this, ul).call(this, e);
|
|
4216
4212
|
break;
|
|
4217
4213
|
}
|
|
4218
|
-
}), p(this,
|
|
4219
|
-
let e = g(
|
|
4214
|
+
}), p(this, al, () => {
|
|
4215
|
+
let e = g(tl, this);
|
|
4220
4216
|
if (this.scrollTop === 0) {
|
|
4221
|
-
h(X, this,
|
|
4217
|
+
h(X, this, vl).call(this, e);
|
|
4222
4218
|
return;
|
|
4223
4219
|
}
|
|
4224
|
-
if (!e && !h(X, this,
|
|
4225
|
-
h(X, this,
|
|
4220
|
+
if (!e && !h(X, this, dl).call(this)) {
|
|
4221
|
+
h(X, this, gl).call(this), h(X, this, vl).call(this);
|
|
4226
4222
|
return;
|
|
4227
4223
|
}
|
|
4228
|
-
!this.visible && this.scrollTop > 0 && !g(
|
|
4229
|
-
}), this.attachShadow({ mode: "open" }).appendChild(
|
|
4224
|
+
!this.visible && this.scrollTop > 0 && !g($c, this) ? h(X, this, yl).call(this) : !g($c, this) && h(X, this, pl).call(this) && (this.open || (this.open = !0), e && !this.hasAttribute("snap-touch") && this.setAttribute("snap-touch", ""));
|
|
4225
|
+
}), this.attachShadow({ mode: "open" }).appendChild(Xc.content.cloneNode(!0));
|
|
4230
4226
|
}
|
|
4231
4227
|
connectedCallback() {
|
|
4232
4228
|
let e = this.getRootNode();
|
|
4233
4229
|
if (e instanceof Document || e instanceof ShadowRoot) {
|
|
4234
4230
|
var t, n, r, i, a;
|
|
4235
|
-
m(
|
|
4231
|
+
m(Zc, this, e.querySelector("vindral-controller")), (t = g(Zc, this)) == null || t.connectListener(this), m(Qc, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#scroll-area"));
|
|
4236
4232
|
let l = (r = this.shadowRoot) == null ? void 0 : r.querySelector("#content");
|
|
4237
|
-
l && ((i = g(
|
|
4233
|
+
l && ((i = g(il, this)) == null || i.observe(l)), (a = g(Qc, this)) == null || a.addEventListener("click", g(nl, this));
|
|
4238
4234
|
let u = this.hasAttribute("touch-enabled");
|
|
4239
|
-
if (m(
|
|
4235
|
+
if (m(tl, this, d() && u), !g(tl, this)) this.setAttribute("snap", "");
|
|
4240
4236
|
else {
|
|
4241
4237
|
var o, s, c;
|
|
4242
|
-
(o = g(
|
|
4238
|
+
(o = g(Zc, this)) == null || o.addEventListener("touchstart", this, { passive: !0 }), (s = g(Zc, this)) == null || s.addEventListener("touchmove", this, { passive: !1 }), (c = g(Zc, this)) == null || c.addEventListener("touchend", this, { passive: !0 });
|
|
4243
4239
|
}
|
|
4244
|
-
this.addEventListener("scroll", g(
|
|
4240
|
+
this.addEventListener("scroll", g(al, this));
|
|
4245
4241
|
}
|
|
4246
4242
|
}
|
|
4247
4243
|
disconnectedCallback() {
|
|
4248
4244
|
var e, t, n, r, i, a;
|
|
4249
|
-
(e = g(
|
|
4245
|
+
(e = g(il, this)) == null || e.disconnect(), (t = g(Qc, this)) == null || t.removeEventListener("click", g(nl, this)), this.removeEventListener("scroll", g(al, this)), (n = g(Zc, this)) == null || n.removeEventListener("touchstart", this), (r = g(Zc, this)) == null || r.removeEventListener("touchmove", this), (i = g(Zc, this)) == null || i.removeEventListener("touchend", this), (a = g(Zc, this)) == null || a.disconnectListener(this);
|
|
4250
4246
|
}
|
|
4251
4247
|
attributeChangedCallback(e, t, n) {
|
|
4252
|
-
if (t !== n && (e === v.USER_INTERACTING && n === null && h(X, this,
|
|
4248
|
+
if (t !== n && (e === v.USER_INTERACTING && n === null && h(X, this, fl).call(this) && setTimeout(() => {
|
|
4253
4249
|
this.open = !1;
|
|
4254
4250
|
}, 300), e === "open")) if (n !== null) {
|
|
4255
4251
|
var r;
|
|
4256
|
-
m(
|
|
4257
|
-
top: (r = g(
|
|
4252
|
+
m($c, this, !1), this.scrollTop > 0 && h(X, this, yl).call(this), this.scrollTo({
|
|
4253
|
+
top: (r = g(Qc, this)) == null ? void 0 : r.clientHeight,
|
|
4258
4254
|
behavior: "smooth"
|
|
4259
4255
|
});
|
|
4260
|
-
} else h(X, this,
|
|
4256
|
+
} else h(X, this, _l).call(this);
|
|
4261
4257
|
}
|
|
4262
4258
|
set open(e) {
|
|
4263
4259
|
if (e) {
|
|
4264
4260
|
this.setAttribute("open", "");
|
|
4265
4261
|
return;
|
|
4266
4262
|
}
|
|
4267
|
-
let t = this.hasAttribute("open"), n = this.visible || h(X, this,
|
|
4268
|
-
t ? this.removeAttribute("open") : n ? h(X, this,
|
|
4263
|
+
let t = this.hasAttribute("open"), n = this.visible || h(X, this, fl).call(this);
|
|
4264
|
+
t ? this.removeAttribute("open") : n ? h(X, this, _l).call(this) : (m($c, this, !1), this.removeAttribute("snap-touch"));
|
|
4269
4265
|
}
|
|
4270
4266
|
get open() {
|
|
4271
4267
|
return this.hasAttribute("open");
|
|
@@ -4277,86 +4273,86 @@ var Xc = /* @__PURE__ */ new WeakMap(), Zc = /* @__PURE__ */ new WeakMap(), Qc =
|
|
|
4277
4273
|
return this.hasAttribute("visible");
|
|
4278
4274
|
}
|
|
4279
4275
|
};
|
|
4280
|
-
function
|
|
4281
|
-
return h(X, this,
|
|
4276
|
+
function sl() {
|
|
4277
|
+
return h(X, this, dl).call(this) || h(X, this, hl).call(this) || h(X, this, fl).call(this);
|
|
4282
4278
|
}
|
|
4283
|
-
function
|
|
4279
|
+
function cl(e) {
|
|
4284
4280
|
let t = e.touches[0];
|
|
4285
|
-
t && (m(
|
|
4281
|
+
t && (m(el, this, h(X, this, sl).call(this)), g(el, this) && (m($c, this, !1), m(rl, this, t.clientY)));
|
|
4286
4282
|
}
|
|
4287
|
-
function
|
|
4288
|
-
if (!(!g(
|
|
4289
|
-
let t = e.touches[0].clientY, n = g(
|
|
4283
|
+
function ll(e) {
|
|
4284
|
+
if (!(!g(el, this) || g(rl, this) === null || this.hasAttribute("snap-touch") && this.open) && (e.preventDefault(), e.touches[0])) {
|
|
4285
|
+
let t = e.touches[0].clientY, n = g(rl, this) - t;
|
|
4290
4286
|
this.scrollTop = Math.max(0, n);
|
|
4291
4287
|
}
|
|
4292
4288
|
}
|
|
4293
|
-
function
|
|
4294
|
-
g(
|
|
4289
|
+
function ul(e) {
|
|
4290
|
+
g(el, this) && !g($c, this) && h(X, this, fl).call(this) && (!this.hasAttribute("snap-touch") || !this.open) && (this.open = !0), m(rl, this, null), m(el, this, !1);
|
|
4295
4291
|
}
|
|
4296
|
-
function
|
|
4292
|
+
function dl() {
|
|
4297
4293
|
return this.hasAttribute(v.USER_INTERACTING);
|
|
4298
4294
|
}
|
|
4299
|
-
function
|
|
4295
|
+
function fl() {
|
|
4300
4296
|
return this.scrollTop > 0;
|
|
4301
4297
|
}
|
|
4302
|
-
function
|
|
4298
|
+
function pl() {
|
|
4303
4299
|
var e;
|
|
4304
|
-
return Math.round(this.scrollTop) === this.scrollHeight - this.clientHeight || Math.round(this.scrollTop) === ((e = g(
|
|
4300
|
+
return Math.round(this.scrollTop) === this.scrollHeight - this.clientHeight || Math.round(this.scrollTop) === ((e = g(Qc, this)) == null ? void 0 : e.clientHeight);
|
|
4305
4301
|
}
|
|
4306
|
-
function
|
|
4302
|
+
function ml() {
|
|
4307
4303
|
var e;
|
|
4308
|
-
let t = (e = g(
|
|
4304
|
+
let t = (e = g(Qc, this)) == null ? void 0 : e.clientHeight;
|
|
4309
4305
|
return !t || this.clientHeight <= 0 ? 0 : Math.max(this.clientHeight - t, 0);
|
|
4310
4306
|
}
|
|
4311
|
-
function
|
|
4307
|
+
function hl() {
|
|
4312
4308
|
let e = getComputedStyle(this), t = Number.parseFloat(e.getPropertyValue("--vindral-scroll-overlay-offset"));
|
|
4313
|
-
return Number.isNaN(t) ? h(X, this,
|
|
4309
|
+
return Number.isNaN(t) ? h(X, this, ml).call(this) > 0 : t > 0;
|
|
4314
4310
|
}
|
|
4315
|
-
function
|
|
4311
|
+
function gl() {
|
|
4316
4312
|
let e = this.style.scrollBehavior;
|
|
4317
4313
|
this.style.scrollBehavior = "auto", this.scrollTo({
|
|
4318
4314
|
top: 0,
|
|
4319
4315
|
behavior: "auto"
|
|
4320
4316
|
}), this.style.scrollBehavior = e;
|
|
4321
4317
|
}
|
|
4322
|
-
function
|
|
4323
|
-
m(
|
|
4318
|
+
function _l() {
|
|
4319
|
+
m($c, this, !0), this.removeAttribute("snap-touch"), h(X, this, bl).call(this), this.scrollTo({
|
|
4324
4320
|
top: 0,
|
|
4325
4321
|
behavior: "smooth"
|
|
4326
4322
|
});
|
|
4327
4323
|
}
|
|
4328
|
-
function
|
|
4329
|
-
this.open = !1, e && this.removeAttribute("snap-touch"), m(
|
|
4324
|
+
function vl(e = !1) {
|
|
4325
|
+
this.open = !1, e && this.removeAttribute("snap-touch"), m($c, this, !1), h(X, this, bl).call(this);
|
|
4330
4326
|
}
|
|
4331
|
-
function
|
|
4327
|
+
function yl() {
|
|
4332
4328
|
this.visible || (this.visible = !0, this.dispatchEvent(new CustomEvent(C.LOCK_UI, {
|
|
4333
4329
|
bubbles: !0,
|
|
4334
4330
|
composed: !0
|
|
4335
4331
|
})));
|
|
4336
4332
|
}
|
|
4337
|
-
function
|
|
4333
|
+
function bl() {
|
|
4338
4334
|
this.visible && (this.visible = !1, this.dispatchEvent(new CustomEvent(C.UNLOCK_UI, {
|
|
4339
4335
|
bubbles: !0,
|
|
4340
4336
|
composed: !0
|
|
4341
4337
|
})));
|
|
4342
4338
|
}
|
|
4343
|
-
e(
|
|
4339
|
+
e(ol, "observedAttributes", [
|
|
4344
4340
|
v.USER_INTERACTING,
|
|
4345
4341
|
"open",
|
|
4346
4342
|
"touch-enabled"
|
|
4347
4343
|
]);
|
|
4348
4344
|
//#endregion
|
|
4349
4345
|
//#region ../../libs/player-next/src/utils/thumbnailTrack.ts
|
|
4350
|
-
var
|
|
4346
|
+
var xl = "#EXT-X-TILES:", Sl = "#EXT-X-PROGRAM-DATE-TIME:", Cl = "#EXTINF:", wl = (e) => {
|
|
4351
4347
|
let t = /* @__PURE__ */ new Map();
|
|
4352
4348
|
for (let n of e.split(",")) {
|
|
4353
4349
|
let e = n.indexOf("=");
|
|
4354
4350
|
e > 0 && t.set(n.slice(0, e).trim(), n.slice(e + 1).trim());
|
|
4355
4351
|
}
|
|
4356
4352
|
return t;
|
|
4357
|
-
},
|
|
4353
|
+
}, Tl = (e) => {
|
|
4358
4354
|
var t, n;
|
|
4359
|
-
let r =
|
|
4355
|
+
let r = wl(e), i = (t = r.get("RESOLUTION")) == null ? void 0 : t.match(/^(\d+)x(\d+)$/), a = (n = r.get("LAYOUT")) == null ? void 0 : n.match(/^(\d+)x(\d+)$/), o = Number(r.get("DURATION"));
|
|
4360
4356
|
return !i || !a || !Number.isFinite(o) || o <= 0 ? null : {
|
|
4361
4357
|
width: Number(i[1]),
|
|
4362
4358
|
height: Number(i[2]),
|
|
@@ -4364,15 +4360,15 @@ var bl = "#EXT-X-TILES:", xl = "#EXT-X-PROGRAM-DATE-TIME:", Sl = "#EXTINF:", Cl
|
|
|
4364
4360
|
rows: Number(a[2]),
|
|
4365
4361
|
tileSeconds: o
|
|
4366
4362
|
};
|
|
4367
|
-
},
|
|
4363
|
+
}, El = (e, t) => {
|
|
4368
4364
|
let n = null, r = [], i = null, a = null;
|
|
4369
4365
|
for (let o of e.split(/\r?\n/)) {
|
|
4370
4366
|
let e = o.trim();
|
|
4371
|
-
if (e.startsWith(
|
|
4372
|
-
else if (e.startsWith(
|
|
4367
|
+
if (e.startsWith(xl)) n = Tl(e.slice(13));
|
|
4368
|
+
else if (e.startsWith(Sl)) {
|
|
4373
4369
|
let t = Date.parse(e.slice(25));
|
|
4374
4370
|
i = Number.isNaN(t) ? null : t;
|
|
4375
|
-
} else if (e.startsWith(
|
|
4371
|
+
} else if (e.startsWith(Cl)) {
|
|
4376
4372
|
let t = Number.parseFloat(e.slice(8));
|
|
4377
4373
|
a = Number.isFinite(t) ? Math.round(t * 1e3) : null;
|
|
4378
4374
|
} else if (e.length > 0 && !e.startsWith("#")) {
|
|
@@ -4389,7 +4385,7 @@ var bl = "#EXT-X-TILES:", xl = "#EXT-X-PROGRAM-DATE-TIME:", Sl = "#EXTINF:", Cl
|
|
|
4389
4385
|
}
|
|
4390
4386
|
}
|
|
4391
4387
|
return n ? { sheets: r } : null;
|
|
4392
|
-
},
|
|
4388
|
+
}, Dl = (e, t) => {
|
|
4393
4389
|
let n = e.sheets.find((e) => t >= e.startMs && t < e.startMs + e.durationMs);
|
|
4394
4390
|
if (!n) return null;
|
|
4395
4391
|
let { layout: r } = n, i = Math.floor((t - n.startMs) / (r.tileSeconds * 1e3));
|
|
@@ -4399,47 +4395,47 @@ var bl = "#EXT-X-TILES:", xl = "#EXT-X-PROGRAM-DATE-TIME:", Sl = "#EXTINF:", Cl
|
|
|
4399
4395
|
y: Math.floor(i / r.columns) * r.height,
|
|
4400
4396
|
layout: r
|
|
4401
4397
|
};
|
|
4402
|
-
},
|
|
4398
|
+
}, Ol = /* @__PURE__ */ new WeakMap(), kl = /* @__PURE__ */ new WeakMap(), Al = /* @__PURE__ */ new WeakMap(), jl = /* @__PURE__ */ new WeakMap(), Ml = /* @__PURE__ */ new WeakMap(), Nl = /* @__PURE__ */ new WeakSet(), Pl = class {
|
|
4403
4399
|
constructor(e, t = () => {}) {
|
|
4404
|
-
w(this,
|
|
4400
|
+
w(this, Nl), p(this, Ol, void 0), p(this, kl, void 0), p(this, Al, null), p(this, jl, null), p(this, Ml, null), m(Ol, this, e), m(kl, this, t);
|
|
4405
4401
|
}
|
|
4406
4402
|
get hasFrame() {
|
|
4407
|
-
return g(
|
|
4403
|
+
return g(Al, this) !== null;
|
|
4408
4404
|
}
|
|
4409
4405
|
paint(e) {
|
|
4410
4406
|
var t;
|
|
4411
|
-
if (m(
|
|
4412
|
-
h(
|
|
4407
|
+
if (m(jl, this, e), ((t = g(Al, this)) == null ? void 0 : t.url) === e.url) {
|
|
4408
|
+
h(Nl, this, Il).call(this, e);
|
|
4413
4409
|
return;
|
|
4414
4410
|
}
|
|
4415
|
-
h(
|
|
4411
|
+
h(Nl, this, Fl).call(this, e.url);
|
|
4416
4412
|
}
|
|
4417
4413
|
reset() {
|
|
4418
|
-
m(
|
|
4414
|
+
m(Al, this, null), m(jl, this, null), m(Ml, this, null), g(Ol, this).style.backgroundImage = "";
|
|
4419
4415
|
}
|
|
4420
4416
|
};
|
|
4421
|
-
function
|
|
4422
|
-
if (g(
|
|
4423
|
-
m(
|
|
4417
|
+
function Fl(e) {
|
|
4418
|
+
if (g(Ml, this) === e) return;
|
|
4419
|
+
m(Ml, this, e);
|
|
4424
4420
|
let t = new Image();
|
|
4425
4421
|
t.src = e, (typeof t.decode == "function" ? t.decode() : Promise.resolve()).catch(() => {}).then(() => {
|
|
4426
4422
|
var n;
|
|
4427
|
-
g(
|
|
4428
|
-
let r = g(
|
|
4429
|
-
r && (r.url === e ? (m(
|
|
4423
|
+
g(Ml, this) === e && m(Ml, this, null);
|
|
4424
|
+
let r = g(jl, this);
|
|
4425
|
+
r && (r.url === e ? (m(Al, this, {
|
|
4430
4426
|
url: e,
|
|
4431
4427
|
image: t
|
|
4432
|
-
}), h(
|
|
4428
|
+
}), h(Nl, this, Il).call(this, r)) : ((n = g(Al, this)) == null ? void 0 : n.url) !== r.url && h(Nl, this, Fl).call(this, r.url));
|
|
4433
4429
|
});
|
|
4434
4430
|
}
|
|
4435
|
-
function
|
|
4436
|
-
let t = g(
|
|
4437
|
-
t.backgroundImage !== `url("${e.url}")` && (t.backgroundImage = `url("${e.url}")`), t.backgroundSize = e.size, t.backgroundPosition = e.position, g(
|
|
4431
|
+
function Il(e) {
|
|
4432
|
+
let t = g(Ol, this).style;
|
|
4433
|
+
t.backgroundImage !== `url("${e.url}")` && (t.backgroundImage = `url("${e.url}")`), t.backgroundSize = e.size, t.backgroundPosition = e.position, g(kl, this).call(this);
|
|
4438
4434
|
}
|
|
4439
4435
|
//#endregion
|
|
4440
4436
|
//#region ../../libs/player-next/src/components/SeekBar.ts
|
|
4441
|
-
var
|
|
4442
|
-
|
|
4437
|
+
var Ll = 1e3, Rl = 8, zl = 3e4, Bl = 1e4, Vl = 2, Hl = 1, Ul = document.createElement("template");
|
|
4438
|
+
Ul.innerHTML = `
|
|
4443
4439
|
<style>
|
|
4444
4440
|
:host {
|
|
4445
4441
|
--buffered: 0;
|
|
@@ -4532,56 +4528,56 @@ Hl.innerHTML = `
|
|
|
4532
4528
|
<div id="thumbnail"></div>
|
|
4533
4529
|
<div id="time-tooltip"></div>
|
|
4534
4530
|
`;
|
|
4535
|
-
var Z = /* @__PURE__ */ new WeakMap(),
|
|
4531
|
+
var Z = /* @__PURE__ */ new WeakMap(), Wl = /* @__PURE__ */ new WeakMap(), Gl = /* @__PURE__ */ new WeakMap(), Kl = /* @__PURE__ */ new WeakMap(), ql = /* @__PURE__ */ new WeakMap(), Jl = /* @__PURE__ */ new WeakMap(), Yl = /* @__PURE__ */ new WeakMap(), Xl = /* @__PURE__ */ new WeakMap(), Zl = /* @__PURE__ */ new WeakMap(), Ql = /* @__PURE__ */ new WeakMap(), $l = /* @__PURE__ */ new WeakMap(), eu = /* @__PURE__ */ new WeakMap(), tu = /* @__PURE__ */ new WeakMap(), nu = /* @__PURE__ */ new WeakMap(), ru = /* @__PURE__ */ new WeakMap(), iu = /* @__PURE__ */ new WeakMap(), au = /* @__PURE__ */ new WeakMap(), ou = /* @__PURE__ */ new WeakMap(), su = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), cu = /* @__PURE__ */ new WeakMap(), lu = /* @__PURE__ */ new WeakMap(), uu = /* @__PURE__ */ new WeakMap(), du = /* @__PURE__ */ new WeakMap(), fu = /* @__PURE__ */ new WeakMap(), pu = /* @__PURE__ */ new WeakMap(), mu = /* @__PURE__ */ new WeakMap(), hu = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakSet(), gu = /* @__PURE__ */ new WeakMap(), _u = /* @__PURE__ */ new WeakMap(), vu = /* @__PURE__ */ new WeakMap(), yu = /* @__PURE__ */ new WeakMap(), bu = /* @__PURE__ */ new WeakMap(), xu = /* @__PURE__ */ new WeakMap(), Su = /* @__PURE__ */ new WeakMap(), Cu = class extends Mi {
|
|
4536
4532
|
constructor() {
|
|
4537
4533
|
var e, t, n, r, i;
|
|
4538
|
-
super(), w(this, $), p(this, Z, void 0), p(this,
|
|
4539
|
-
if (!h($, this,
|
|
4534
|
+
super(), w(this, $), p(this, Z, void 0), p(this, Wl, void 0), p(this, Gl, null), p(this, Kl, null), p(this, ql, 0), p(this, Jl, null), p(this, Yl, void 0), p(this, Xl, !1), p(this, Zl, !1), p(this, Ql, /* @__PURE__ */ new Set()), p(this, $l, /* @__PURE__ */ new Set()), p(this, eu, /* @__PURE__ */ new Set()), p(this, tu, null), p(this, nu, !1), p(this, ru, void 0), p(this, iu, void 0), p(this, au, void 0), p(this, ou, []), p(this, su, null), p(this, Q, !1), p(this, cu, null), p(this, lu, null), p(this, uu, null), p(this, du, !1), p(this, fu, null), p(this, pu, null), p(this, mu, !1), p(this, hu, !1), p(this, gu, (e) => {
|
|
4535
|
+
if (!h($, this, Eu).call(this) || h($, this, Du).call(this)) {
|
|
4540
4536
|
e.preventDefault();
|
|
4541
4537
|
return;
|
|
4542
4538
|
}
|
|
4543
|
-
m(Q, this, !0), m(
|
|
4539
|
+
m(Q, this, !0), m(pu, this, e.pointerId), m(cu, this, e.pointerType), m(lu, this, this.range.value), m(du, this, !this.hasAttribute(v.PAUSED)), g(du, this) && h($, this, Vu).call(this, C.PAUSE);
|
|
4544
4540
|
try {
|
|
4545
4541
|
this.setPointerCapture(e.pointerId);
|
|
4546
4542
|
} catch (e) {}
|
|
4547
|
-
h($, this,
|
|
4548
|
-
}), p(this,
|
|
4549
|
-
if (!(!h($, this,
|
|
4550
|
-
if (g(
|
|
4551
|
-
e.preventDefault(), h($, this,
|
|
4543
|
+
h($, this, Pu).call(this), h($, this, Bu).call(this, e);
|
|
4544
|
+
}), p(this, _u, (e) => {
|
|
4545
|
+
if (!(!h($, this, Eu).call(this) || h($, this, Du).call(this))) {
|
|
4546
|
+
if (g(fu, this) && (cancelAnimationFrame(g(fu, this)), m(fu, this, null)), g(Q, this) && e.pointerId === g(pu, this)) {
|
|
4547
|
+
e.preventDefault(), h($, this, Bu).call(this, e);
|
|
4552
4548
|
return;
|
|
4553
4549
|
}
|
|
4554
|
-
m(
|
|
4550
|
+
m(fu, this, requestAnimationFrame(() => {
|
|
4555
4551
|
var t;
|
|
4556
4552
|
if (e.pointerType !== "mouse" || g(Q, this) || !this.duration) {
|
|
4557
|
-
g(
|
|
4553
|
+
g(iu, this).style.opacity = "0", m(fu, this, null);
|
|
4558
4554
|
return;
|
|
4559
4555
|
}
|
|
4560
|
-
let n = h($, this,
|
|
4561
|
-
if (h($, this,
|
|
4556
|
+
let n = h($, this, zu).call(this, e.clientX), r = h($, this, Mu).call(this, n), i = (t = r == null ? void 0 : r.position) == null ? n : t;
|
|
4557
|
+
if (h($, this, Wu).call(this, i, r), h($, this, Lu).call(this, i), i > this.range.valueAsNumber) {
|
|
4562
4558
|
let e = this.range.valueAsNumber * 100, t = (i - this.range.valueAsNumber) * 100;
|
|
4563
|
-
g(
|
|
4564
|
-
} else g(
|
|
4565
|
-
m(
|
|
4559
|
+
g(iu, this).style.transform = `translateX(${e}%) scaleX(${t / 100})`, g(iu, this).style.opacity = "1";
|
|
4560
|
+
} else g(iu, this).style.opacity = "0";
|
|
4561
|
+
m(fu, this, null);
|
|
4566
4562
|
}));
|
|
4567
4563
|
}
|
|
4568
|
-
}), p(this,
|
|
4569
|
-
if (e.pointerId !== g(
|
|
4564
|
+
}), p(this, vu, (e) => {
|
|
4565
|
+
if (e.pointerId !== g(pu, this)) return;
|
|
4570
4566
|
try {
|
|
4571
4567
|
this.releasePointerCapture(e.pointerId);
|
|
4572
4568
|
} catch (e) {}
|
|
4573
|
-
m(Q, this, !1), m(
|
|
4574
|
-
let t = g(
|
|
4575
|
-
m(
|
|
4576
|
-
}), p(this, vu, () => {
|
|
4577
|
-
this.duration && !h($, this, Eu).call(this) && (g(nu, this).style.opacity = "1"), m(Xl, this, !0), h($, this, Nu).call(this);
|
|
4569
|
+
m(Q, this, !1), m(pu, this, null), m(cu, this, null), h($, this, Hu).call(this, null);
|
|
4570
|
+
let t = g(uu, this), n = g(lu, this);
|
|
4571
|
+
m(uu, this, null), m(lu, this, null), e.type === "pointerup" && t !== null ? h($, this, Uu).call(this, t) : n !== null && (this.range.value = n, this.updateBar()), g(du, this) && h($, this, Vu).call(this, C.PLAY), m(du, this, !1), e.pointerType !== "mouse" && (g(ru, this).style.opacity = "0", g(xu, this).call(this)), g(hu, this) && h($, this, qu).call(this) && (m(mu, this, !1), m(hu, this, !1));
|
|
4578
4572
|
}), p(this, yu, () => {
|
|
4579
|
-
|
|
4573
|
+
this.duration && !h($, this, Du).call(this) && (g(ru, this).style.opacity = "1"), m(Zl, this, !0), h($, this, Pu).call(this);
|
|
4580
4574
|
}), p(this, bu, () => {
|
|
4581
|
-
|
|
4582
|
-
}), p(this, xu, (
|
|
4583
|
-
|
|
4584
|
-
|
|
4575
|
+
g(ru, this).style.opacity = "0", g(iu, this).style.opacity = "0", m(Zl, this, !1), g(xu, this).call(this);
|
|
4576
|
+
}), p(this, xu, () => {
|
|
4577
|
+
m(Xl, this, !1), g(Wl, this).style.opacity = "0";
|
|
4578
|
+
}), p(this, Su, (e) => {
|
|
4579
|
+
if (h($, this, Du).call(this) || !g(Z, this) || g(Z, this) <= 0 || !Number.isFinite(g(Z, this))) return;
|
|
4580
|
+
let t = h($, this, wu).call(this);
|
|
4585
4581
|
if (t <= 0) return;
|
|
4586
4582
|
let n = this.range.valueAsNumber * t, r = n;
|
|
4587
4583
|
switch (e.preventDefault(), e.key) {
|
|
@@ -4589,55 +4585,55 @@ var Z = /* @__PURE__ */ new WeakMap(), Ul = /* @__PURE__ */ new WeakMap(), Wl =
|
|
|
4589
4585
|
r = Math.max(0, n - 5);
|
|
4590
4586
|
break;
|
|
4591
4587
|
case "ArrowRight":
|
|
4592
|
-
if (h($, this,
|
|
4588
|
+
if (h($, this, qu).call(this)) return;
|
|
4593
4589
|
r = Math.min(t, n + 5);
|
|
4594
4590
|
break;
|
|
4595
4591
|
case "Home":
|
|
4596
4592
|
r = 0;
|
|
4597
4593
|
break;
|
|
4598
4594
|
case "End":
|
|
4599
|
-
if (h($, this,
|
|
4595
|
+
if (h($, this, qu).call(this)) return;
|
|
4600
4596
|
r = t;
|
|
4601
4597
|
break;
|
|
4602
4598
|
default: return;
|
|
4603
4599
|
}
|
|
4604
4600
|
let i = Math.min(r / t, 1);
|
|
4605
|
-
h($, this,
|
|
4606
|
-
}), (e = this.shadowRoot) == null || e.appendChild(
|
|
4607
|
-
g(
|
|
4608
|
-
})), this.addEventListener("pointerdown", g(
|
|
4601
|
+
h($, this, Uu).call(this, i);
|
|
4602
|
+
}), (e = this.shadowRoot) == null || e.appendChild(Ul.content.cloneNode(!0)), m(ru, this, (t = this.shadowRoot) == null ? void 0 : t.getElementById("time-tooltip")), m(iu, this, (n = this.shadowRoot) == null ? void 0 : n.getElementById("hover-preview")), m(au, this, (r = this.shadowRoot) == null ? void 0 : r.getElementById("markers")), m(Wl, this, (i = this.shadowRoot) == null ? void 0 : i.getElementById("thumbnail")), m(Yl, this, new Pl(g(Wl, this), () => {
|
|
4603
|
+
g(Xl, this) && (g(Zl, this) || g(Q, this)) && (g(Wl, this).style.opacity = "1");
|
|
4604
|
+
})), this.addEventListener("pointerdown", g(gu, this)), this.addEventListener("pointermove", g(_u, this)), this.addEventListener("pointerup", g(vu, this)), this.addEventListener("pointercancel", g(vu, this)), this.addEventListener("mouseenter", g(yu, this)), this.addEventListener("mouseleave", g(bu, this));
|
|
4609
4605
|
}
|
|
4610
4606
|
connectedCallback() {
|
|
4611
|
-
super.connectedCallback(), this.setAttribute("aria-label", "Seek video position"), this.setAttribute("role", "slider"), h($, this,
|
|
4607
|
+
super.connectedCallback(), this.setAttribute("aria-label", "Seek video position"), this.setAttribute("role", "slider"), h($, this, Nu).call(this), this.addEventListener("keydown", g(Su, this)), h($, this, qu).call(this) && (this.range.value = "1", h($, this, Nu).call(this)), h($, this, Ou).call(this), h($, this, Au).call(this);
|
|
4612
4608
|
}
|
|
4613
4609
|
disconnectedCallback() {
|
|
4614
|
-
super.disconnectedCallback(), h($, this,
|
|
4610
|
+
super.disconnectedCallback(), h($, this, ju).call(this), this.removeEventListener("pointerdown", g(gu, this)), this.removeEventListener("pointermove", g(_u, this)), this.removeEventListener("pointerup", g(vu, this)), this.removeEventListener("pointercancel", g(vu, this)), this.removeEventListener("mouseenter", g(yu, this)), this.removeEventListener("mouseleave", g(bu, this)), this.removeEventListener("keydown", g(Su, this)), m(pu, this, null);
|
|
4615
4611
|
}
|
|
4616
4612
|
attributeChangedCallback(e, t, n) {
|
|
4617
4613
|
if (super.attributeChangedCallback(e, t, n), t !== n) switch (e) {
|
|
4618
4614
|
case v.TIMESHIFT_POSITION:
|
|
4619
|
-
if (h($, this,
|
|
4615
|
+
if (h($, this, qu).call(this)) {
|
|
4620
4616
|
if (g(Q, this)) {
|
|
4621
|
-
m(
|
|
4617
|
+
m(hu, this, !0);
|
|
4622
4618
|
return;
|
|
4623
4619
|
}
|
|
4624
|
-
m(
|
|
4620
|
+
m(mu, this, !1), m(hu, this, !1), this.range.value = "1", h($, this, Nu).call(this);
|
|
4625
4621
|
return;
|
|
4626
4622
|
}
|
|
4627
4623
|
if (g(Z, this)) {
|
|
4628
|
-
if (m(
|
|
4624
|
+
if (m(hu, this, !1), g(Q, this)) return;
|
|
4629
4625
|
let e = Math.max(parseFloat(n) / g(Z, this), 0);
|
|
4630
|
-
this.range.value = e.toString(), h($, this,
|
|
4626
|
+
this.range.value = e.toString(), h($, this, Nu).call(this);
|
|
4631
4627
|
}
|
|
4632
4628
|
break;
|
|
4633
4629
|
case v.DURATION:
|
|
4634
|
-
m(Z, this, parseFloat(n) || 0), h($, this,
|
|
4630
|
+
m(Z, this, parseFloat(n) || 0), h($, this, Nu).call(this), h($, this, Ou).call(this), h($, this, Au).call(this);
|
|
4635
4631
|
break;
|
|
4636
4632
|
case v.TIMELINE_MARKERS:
|
|
4637
|
-
m(
|
|
4633
|
+
m(ou, this, qr(n)), h($, this, Ou).call(this), h($, this, Au).call(this);
|
|
4638
4634
|
break;
|
|
4639
4635
|
case v.TIMESHIFT_THUMBNAIL_URL:
|
|
4640
|
-
m(
|
|
4636
|
+
m(Gl, this, n || null), m(Kl, this, null), m(ql, this, 0), g(Yl, this).reset(), g(Ql, this).clear(), g($l, this).clear(), g(eu, this).clear(), g(xu, this).call(this), g(Jl, this) ? m(nu, this, !0) : (g(Zl, this) || g(Q, this)) && h($, this, Pu).call(this);
|
|
4641
4637
|
break;
|
|
4642
4638
|
}
|
|
4643
4639
|
}
|
|
@@ -4655,54 +4651,54 @@ var Z = /* @__PURE__ */ new WeakMap(), Ul = /* @__PURE__ */ new WeakMap(), Wl =
|
|
|
4655
4651
|
this.setAttribute(v.DURATION, e.toString());
|
|
4656
4652
|
}
|
|
4657
4653
|
};
|
|
4658
|
-
function
|
|
4654
|
+
function wu() {
|
|
4659
4655
|
return g(Z, this) ? g(Z, this) : 1;
|
|
4660
4656
|
}
|
|
4661
|
-
function
|
|
4657
|
+
function Tu() {
|
|
4662
4658
|
let e = g(Z, this);
|
|
4663
4659
|
return e !== void 0 && e > 0 && Number.isFinite(e) ? e : void 0;
|
|
4664
4660
|
}
|
|
4665
|
-
function Tu() {
|
|
4666
|
-
return h($, this, wu).call(this) !== void 0;
|
|
4667
|
-
}
|
|
4668
4661
|
function Eu() {
|
|
4669
|
-
return
|
|
4662
|
+
return h($, this, Tu).call(this) !== void 0;
|
|
4670
4663
|
}
|
|
4671
4664
|
function Du() {
|
|
4665
|
+
return g(mu, this);
|
|
4666
|
+
}
|
|
4667
|
+
function Ou() {
|
|
4672
4668
|
var e;
|
|
4673
|
-
let t = Date.now(), n = (e = g(Z, this)) == null ? 0 : e, r = g(
|
|
4674
|
-
for (let e of g(
|
|
4675
|
-
let a =
|
|
4669
|
+
let t = Date.now(), n = (e = g(Z, this)) == null ? 0 : e, r = g(au, this).children, i = 0;
|
|
4670
|
+
for (let e of g(ou, this)) {
|
|
4671
|
+
let a = Jr(e.time, t, n);
|
|
4676
4672
|
if (a === null) continue;
|
|
4677
4673
|
let o = r[i];
|
|
4678
|
-
o || (o = document.createElement("div"), o.className = "marker", g(
|
|
4674
|
+
o || (o = document.createElement("div"), o.className = "marker", g(au, this).appendChild(o)), o.style.left = `${a * 100}%`, o.dataset.label = e.label, e.type ? o.dataset.type = e.type : delete o.dataset.type, i++;
|
|
4679
4675
|
}
|
|
4680
|
-
for (; g(
|
|
4676
|
+
for (; g(au, this).children.length > i;) {
|
|
4681
4677
|
var a;
|
|
4682
|
-
(a = g(
|
|
4678
|
+
(a = g(au, this).lastElementChild) == null || a.remove();
|
|
4683
4679
|
}
|
|
4684
4680
|
}
|
|
4685
|
-
function
|
|
4686
|
-
let e = h($, this,
|
|
4681
|
+
function ku() {
|
|
4682
|
+
let e = h($, this, Tu).call(this);
|
|
4687
4683
|
if (e === void 0) return !1;
|
|
4688
4684
|
let t = Date.now() - e * 1e3;
|
|
4689
|
-
return g(
|
|
4690
|
-
}
|
|
4691
|
-
function ku() {
|
|
4692
|
-
this.isConnected && h($, this, Ou).call(this) ? g(ou, this) === null && m(ou, this, window.setInterval(() => {
|
|
4693
|
-
h($, this, Du).call(this), h($, this, ku).call(this);
|
|
4694
|
-
}, Il)) : h($, this, Au).call(this);
|
|
4685
|
+
return g(ou, this).some((e) => e.time >= t);
|
|
4695
4686
|
}
|
|
4696
4687
|
function Au() {
|
|
4697
|
-
|
|
4688
|
+
this.isConnected && h($, this, ku).call(this) ? g(su, this) === null && m(su, this, window.setInterval(() => {
|
|
4689
|
+
h($, this, Ou).call(this), h($, this, Au).call(this);
|
|
4690
|
+
}, Ll)) : h($, this, ju).call(this);
|
|
4691
|
+
}
|
|
4692
|
+
function ju() {
|
|
4693
|
+
g(su, this) !== null && (window.clearInterval(g(su, this)), m(su, this, null));
|
|
4698
4694
|
}
|
|
4699
|
-
function
|
|
4700
|
-
if (g(
|
|
4695
|
+
function Mu(e) {
|
|
4696
|
+
if (g(ou, this).length === 0 || !g(Z, this)) return null;
|
|
4701
4697
|
let t = this.getBoundingClientRect().width;
|
|
4702
4698
|
if (!t) return null;
|
|
4703
|
-
let n =
|
|
4704
|
-
for (let t of g(
|
|
4705
|
-
let a =
|
|
4699
|
+
let n = Rl / t, r = Date.now(), i = null;
|
|
4700
|
+
for (let t of g(ou, this)) {
|
|
4701
|
+
let a = Jr(t.time, r, g(Z, this));
|
|
4706
4702
|
if (a === null) continue;
|
|
4707
4703
|
let o = Math.abs(a - e);
|
|
4708
4704
|
o > n || (!i || o < Math.abs(i.position - e)) && (i = {
|
|
@@ -4712,125 +4708,125 @@ function ju(e) {
|
|
|
4712
4708
|
}
|
|
4713
4709
|
return i;
|
|
4714
4710
|
}
|
|
4715
|
-
function Mu() {
|
|
4716
|
-
let e = h($, this, Cu).call(this);
|
|
4717
|
-
!g(Z, this) || g(Z, this) <= 0 || !Number.isFinite(g(Z, this)) ? this.setAttribute("data-no-duration", "") : this.removeAttribute("data-no-duration"), g(Q, this) || (this.updateBar(), this.setAttribute("aria-valuetext", `${h($, this, qu).call(this, this.range.valueAsNumber * e)} of ${h($, this, qu).call(this, e)}`), !g(Q, this) && !h($, this, Eu).call(this) && h($, this, Gu).call(this, this.range.valueAsNumber));
|
|
4718
|
-
}
|
|
4719
4711
|
function Nu() {
|
|
4712
|
+
let e = h($, this, wu).call(this);
|
|
4713
|
+
!g(Z, this) || g(Z, this) <= 0 || !Number.isFinite(g(Z, this)) ? this.setAttribute("data-no-duration", "") : this.removeAttribute("data-no-duration"), g(Q, this) || (this.updateBar(), this.setAttribute("aria-valuetext", `${h($, this, Ju).call(this, this.range.valueAsNumber * e)} of ${h($, this, Ju).call(this, e)}`), !g(Q, this) && !h($, this, Du).call(this) && h($, this, Ku).call(this, this.range.valueAsNumber));
|
|
4714
|
+
}
|
|
4715
|
+
function Pu() {
|
|
4720
4716
|
var e = this;
|
|
4721
4717
|
return _(function* () {
|
|
4722
|
-
let t = g(
|
|
4723
|
-
if (!(!t || g(
|
|
4724
|
-
let n = new AbortController(), r = setTimeout(() => n.abort(),
|
|
4718
|
+
let t = g(Gl, e);
|
|
4719
|
+
if (!(!t || g(Jl, e)) && !(Date.now() - g(ql, e) < zl)) return m(Jl, e, _(function* () {
|
|
4720
|
+
let n = new AbortController(), r = setTimeout(() => n.abort(), Bl);
|
|
4725
4721
|
try {
|
|
4726
4722
|
let r = yield fetch(t, { signal: n.signal });
|
|
4727
|
-
if (g(
|
|
4728
|
-
let i =
|
|
4729
|
-
if (!i || g(
|
|
4730
|
-
m(
|
|
4731
|
-
for (let t of i.sheets.slice(-
|
|
4732
|
-
h($, e,
|
|
4723
|
+
if (g(Gl, e) !== t || (m(ql, e, Date.now()), !r.ok)) return;
|
|
4724
|
+
let i = El(yield r.text(), t);
|
|
4725
|
+
if (!i || g(Gl, e) !== t) return;
|
|
4726
|
+
m(Kl, e, i);
|
|
4727
|
+
for (let t of i.sheets.slice(-Vl)) h($, e, Iu).call(e, t.url);
|
|
4728
|
+
h($, e, Ru).call(e);
|
|
4733
4729
|
} catch (t) {
|
|
4734
|
-
m(
|
|
4730
|
+
m(ql, e, Date.now());
|
|
4735
4731
|
} finally {
|
|
4736
|
-
clearTimeout(r), m(
|
|
4732
|
+
clearTimeout(r), m(Jl, e, null), g(nu, e) && (m(nu, e, !1), h($, e, Pu).call(e));
|
|
4737
4733
|
}
|
|
4738
|
-
})()), g(
|
|
4734
|
+
})()), g(Jl, e);
|
|
4739
4735
|
})();
|
|
4740
4736
|
}
|
|
4741
|
-
function
|
|
4737
|
+
function Fu(e, t) {
|
|
4742
4738
|
let n = e.sheets.findIndex((e) => e.url === t);
|
|
4743
4739
|
if (n < 0) return;
|
|
4744
|
-
let r = Math.max(0, n -
|
|
4745
|
-
for (let t of e.sheets.slice(r, n +
|
|
4740
|
+
let r = Math.max(0, n - Hl);
|
|
4741
|
+
for (let t of e.sheets.slice(r, n + Hl + 1)) h($, this, Iu).call(this, t.url);
|
|
4746
4742
|
}
|
|
4747
|
-
function
|
|
4748
|
-
if (g(
|
|
4749
|
-
g(
|
|
4743
|
+
function Iu(e) {
|
|
4744
|
+
if (g(Ql, this).has(e)) return;
|
|
4745
|
+
g(Ql, this).add(e);
|
|
4750
4746
|
let t = new Image();
|
|
4751
4747
|
t.onload = () => {
|
|
4752
|
-
g(
|
|
4748
|
+
g($l, this).add(e), h($, this, Ru).call(this);
|
|
4753
4749
|
}, t.onerror = () => {
|
|
4754
|
-
g(
|
|
4750
|
+
g(eu, this).add(e);
|
|
4755
4751
|
}, t.src = e;
|
|
4756
4752
|
}
|
|
4757
|
-
function
|
|
4758
|
-
m(
|
|
4759
|
-
let n = g(
|
|
4760
|
-
if (h($, this,
|
|
4761
|
-
let i =
|
|
4762
|
-
if (!i || g(
|
|
4763
|
-
if (h($, this,
|
|
4753
|
+
function Lu(e, t = !0) {
|
|
4754
|
+
m(tu, this, e);
|
|
4755
|
+
let n = g(Kl, this), r = h($, this, Tu).call(this);
|
|
4756
|
+
if (h($, this, Pu).call(this), !n || r === void 0) return null;
|
|
4757
|
+
let i = Dl(n, Date.now() - (1 - Math.max(0, Math.min(1, e))) * r * 1e3);
|
|
4758
|
+
if (!i || g(eu, this).has(i.url)) return g(xu, this).call(this), null;
|
|
4759
|
+
if (h($, this, Fu).call(this, n, i.url), !g($l, this).has(i.url)) return h($, this, Iu).call(this, i.url), g(xu, this).call(this), null;
|
|
4764
4760
|
if (!t) return i;
|
|
4765
4761
|
let { width: a, height: o, columns: s, rows: c } = i.layout;
|
|
4766
|
-
g(
|
|
4767
|
-
let l = g(
|
|
4768
|
-
return g(
|
|
4762
|
+
g(Wl, this).style.aspectRatio = `${a} / ${o}`;
|
|
4763
|
+
let l = g(Wl, this).clientWidth > 0 ? g(Wl, this).clientWidth / a : 1, u = this.clientWidth, d = g(Wl, this).clientWidth / 2, f = u > 0 ? Math.min(Math.max(e * u, d), u - d) : e * 100;
|
|
4764
|
+
return g(Wl, this).style.left = u > 0 ? `${f}px` : `${f}%`, m(Xl, this, !0), g(Yl, this).paint({
|
|
4769
4765
|
url: i.url,
|
|
4770
4766
|
size: `${a * s * l}px ${o * c * l}px`,
|
|
4771
4767
|
position: `-${i.x * l}px -${i.y * l}px`
|
|
4772
4768
|
}), i;
|
|
4773
4769
|
}
|
|
4774
|
-
function
|
|
4775
|
-
let e = g(
|
|
4776
|
-
e !== null && (g(Q, this) ? h($, this,
|
|
4770
|
+
function Ru() {
|
|
4771
|
+
let e = g(tu, this);
|
|
4772
|
+
e !== null && (g(Q, this) ? h($, this, Hu).call(this, h($, this, Lu).call(this, e, g(cu, this) === "mouse")) : g(Zl, this) && h($, this, Lu).call(this, e));
|
|
4777
4773
|
}
|
|
4778
|
-
function
|
|
4774
|
+
function zu(e) {
|
|
4779
4775
|
let t = this.getBoundingClientRect(), n = (e - t.left) / t.width;
|
|
4780
4776
|
return Math.max(0, Math.min(1, n));
|
|
4781
4777
|
}
|
|
4782
|
-
function
|
|
4778
|
+
function Bu(e) {
|
|
4783
4779
|
var t;
|
|
4784
|
-
let n = h($, this,
|
|
4785
|
-
h($, this,
|
|
4786
|
-
let a = h($, this,
|
|
4787
|
-
h($, this,
|
|
4780
|
+
let n = h($, this, zu).call(this, e.clientX), r = h($, this, Mu).call(this, n), i = (t = r == null ? void 0 : r.position) == null ? n : t;
|
|
4781
|
+
h($, this, Wu).call(this, i, r), g(Q, this) || (g(ru, this).style.opacity = "1");
|
|
4782
|
+
let a = h($, this, Lu).call(this, i, e.pointerType === "mouse");
|
|
4783
|
+
h($, this, Hu).call(this, a), m(uu, this, i), h($, this, Du).call(this) || (this.range.value = i.toString(), this.updateBar());
|
|
4788
4784
|
}
|
|
4789
|
-
function
|
|
4785
|
+
function Vu(e) {
|
|
4790
4786
|
this.dispatchEvent(new CustomEvent(e, {
|
|
4791
4787
|
bubbles: !0,
|
|
4792
4788
|
composed: !0
|
|
4793
4789
|
}));
|
|
4794
4790
|
}
|
|
4795
|
-
function
|
|
4791
|
+
function Hu(e) {
|
|
4796
4792
|
this.dispatchEvent(new CustomEvent(C.SEEK_PREVIEW, {
|
|
4797
4793
|
bubbles: !0,
|
|
4798
4794
|
composed: !0,
|
|
4799
4795
|
detail: e
|
|
4800
4796
|
}));
|
|
4801
4797
|
}
|
|
4802
|
-
function
|
|
4803
|
-
if (h($, this,
|
|
4804
|
-
let t = e * h($, this,
|
|
4805
|
-
this.range.value = e.toString(), this.updateBar(), h($, this,
|
|
4798
|
+
function Uu(e) {
|
|
4799
|
+
if (h($, this, Du).call(this) || h($, this, Ku).call(this, e)) return;
|
|
4800
|
+
let t = e * h($, this, wu).call(this);
|
|
4801
|
+
this.range.value = e.toString(), this.updateBar(), h($, this, Gu).call(this, t);
|
|
4806
4802
|
}
|
|
4807
|
-
function
|
|
4803
|
+
function Wu(e, t) {
|
|
4808
4804
|
if (!g(Z, this) || !Number.isFinite(g(Z, this))) return;
|
|
4809
|
-
let n = e * g(Z, this), r = g(Z, this) - n, i = `-${h($, this,
|
|
4810
|
-
g(
|
|
4805
|
+
let n = e * g(Z, this), r = g(Z, this) - n, i = `-${h($, this, Ju).call(this, r)}`;
|
|
4806
|
+
g(ru, this).textContent = t ? `${t.marker.label}: ${i}` : i, g(ru, this).style.left = `${Math.min(Math.max(e * 100, 2), 98)}%`;
|
|
4811
4807
|
}
|
|
4812
|
-
function
|
|
4808
|
+
function Gu(e) {
|
|
4813
4809
|
this.dispatchEvent(new CustomEvent("seek", {
|
|
4814
4810
|
bubbles: !0,
|
|
4815
4811
|
composed: !0,
|
|
4816
4812
|
detail: e
|
|
4817
4813
|
}));
|
|
4818
4814
|
}
|
|
4819
|
-
function
|
|
4820
|
-
return g(
|
|
4815
|
+
function Ku(e) {
|
|
4816
|
+
return g(mu, this) || h($, this, qu).call(this) || e < .999 ? !1 : (m(mu, this, !0), m(hu, this, !1), this.dispatchEvent(new CustomEvent(C.GO_LIVE, {
|
|
4821
4817
|
bubbles: !0,
|
|
4822
4818
|
composed: !0
|
|
4823
4819
|
})), !0);
|
|
4824
4820
|
}
|
|
4825
|
-
function
|
|
4821
|
+
function qu() {
|
|
4826
4822
|
return !this.hasAttribute(v.TIMESHIFT_POSITION);
|
|
4827
4823
|
}
|
|
4828
|
-
function
|
|
4824
|
+
function Ju(e) {
|
|
4829
4825
|
let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), r = Math.floor(e % 60);
|
|
4830
4826
|
return g(Z, this) && g(Z, this) >= 3600 ? `${t}:${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}` : `${n}:${r.toString().padStart(2, "0")}`;
|
|
4831
4827
|
}
|
|
4832
|
-
e(
|
|
4833
|
-
...
|
|
4828
|
+
e(Cu, "observedAttributes", [
|
|
4829
|
+
...Mi.observedAttributes,
|
|
4834
4830
|
v.TIMESHIFT_POSITION,
|
|
4835
4831
|
v.DURATION,
|
|
4836
4832
|
v.TIMELINE_MARKERS,
|
|
@@ -4839,9 +4835,9 @@ e(Su, "observedAttributes", [
|
|
|
4839
4835
|
]);
|
|
4840
4836
|
//#endregion
|
|
4841
4837
|
//#region ../../libs/player-next/src/components/SeekPreviewOverlay.ts
|
|
4842
|
-
var
|
|
4843
|
-
|
|
4844
|
-
var
|
|
4838
|
+
var Yu = document.createElement("template");
|
|
4839
|
+
Yu.innerHTML = "\n <style>\n :host {\n position: absolute;\n inset: 0;\n display: none;\n align-items: center;\n justify-content: center;\n background: #000;\n pointer-events: none;\n /* Over the video and the other overlays, under the controls */\n z-index: 5;\n }\n\n :host([data-active]) {\n display: flex;\n }\n\n #frame {\n background-repeat: no-repeat;\n }\n </style>\n\n <div id=\"frame\"></div>\n";
|
|
4840
|
+
var Xu = (e) => {
|
|
4845
4841
|
if (!e) return null;
|
|
4846
4842
|
try {
|
|
4847
4843
|
let t = JSON.parse(e);
|
|
@@ -4849,42 +4845,42 @@ var Yu = (e) => {
|
|
|
4849
4845
|
} catch (e) {
|
|
4850
4846
|
return null;
|
|
4851
4847
|
}
|
|
4852
|
-
},
|
|
4848
|
+
}, Zu = /* @__PURE__ */ new WeakMap(), Qu = /* @__PURE__ */ new WeakMap(), $u = /* @__PURE__ */ new WeakMap(), ed = /* @__PURE__ */ new WeakMap(), td = class extends HTMLElement {
|
|
4853
4849
|
constructor() {
|
|
4854
|
-
super(), p(this,
|
|
4850
|
+
super(), p(this, Zu, null), p(this, Qu, void 0), p(this, $u, void 0), p(this, ed, !1);
|
|
4855
4851
|
let e = this.attachShadow({ mode: "open" });
|
|
4856
|
-
e.appendChild(
|
|
4857
|
-
g(
|
|
4852
|
+
e.appendChild(Yu.content.cloneNode(!0)), m(Qu, this, e.getElementById("frame")), m($u, this, new Pl(g(Qu, this), () => {
|
|
4853
|
+
g(ed, this) && this.setAttribute("data-active", "");
|
|
4858
4854
|
}));
|
|
4859
4855
|
}
|
|
4860
4856
|
connectedCallback() {
|
|
4861
4857
|
var e;
|
|
4862
|
-
m(
|
|
4858
|
+
m(Zu, this, this.closest("vindral-controller")), (e = g(Zu, this)) == null || e.connectListener(this);
|
|
4863
4859
|
}
|
|
4864
4860
|
disconnectedCallback() {
|
|
4865
4861
|
var e;
|
|
4866
|
-
(e = g(
|
|
4862
|
+
(e = g(Zu, this)) == null || e.disconnectListener(this);
|
|
4867
4863
|
}
|
|
4868
4864
|
attributeChangedCallback(e, t, n) {
|
|
4869
4865
|
if (e !== v.SEEK_PREVIEW) return;
|
|
4870
|
-
let r =
|
|
4871
|
-
if (m(
|
|
4866
|
+
let r = Xu(n);
|
|
4867
|
+
if (m(ed, this, r !== null), !r) {
|
|
4872
4868
|
this.removeAttribute("data-active");
|
|
4873
4869
|
return;
|
|
4874
4870
|
}
|
|
4875
4871
|
let { width: i, height: a, columns: o, rows: s } = r.layout, c = Math.min(this.clientWidth / i, this.clientHeight / a) || 1;
|
|
4876
|
-
g(
|
|
4872
|
+
g(Qu, this).style.width = `${i * c}px`, g(Qu, this).style.height = `${a * c}px`, g($u, this).paint({
|
|
4877
4873
|
url: r.url,
|
|
4878
4874
|
size: `${i * o * c}px ${a * s * c}px`,
|
|
4879
4875
|
position: `-${r.x * c}px -${r.y * c}px`
|
|
4880
4876
|
});
|
|
4881
4877
|
}
|
|
4882
4878
|
};
|
|
4883
|
-
e(
|
|
4879
|
+
e(td, "observedAttributes", [v.SEEK_PREVIEW]);
|
|
4884
4880
|
//#endregion
|
|
4885
4881
|
//#region ../../libs/player-next/src/components/UserInputPlayOverlay.ts
|
|
4886
|
-
var
|
|
4887
|
-
|
|
4882
|
+
var nd = document.createElement("template");
|
|
4883
|
+
nd.innerHTML = `
|
|
4888
4884
|
<style>
|
|
4889
4885
|
:host {
|
|
4890
4886
|
display: var(--play-overlay-display);
|
|
@@ -4944,51 +4940,51 @@ td.innerHTML = `
|
|
|
4944
4940
|
</slot>
|
|
4945
4941
|
</slot>
|
|
4946
4942
|
`;
|
|
4947
|
-
var
|
|
4943
|
+
var rd = /* @__PURE__ */ new WeakMap(), id = /* @__PURE__ */ new WeakMap(), ad = /* @__PURE__ */ new WeakMap(), od = /* @__PURE__ */ new WeakMap(), sd = class extends HTMLElement {
|
|
4948
4944
|
constructor() {
|
|
4949
|
-
super(), p(this,
|
|
4945
|
+
super(), p(this, rd, null), p(this, id, () => {
|
|
4950
4946
|
this.dispatchEvent(new CustomEvent(C.REQUEST_USER_INPUT, {
|
|
4951
4947
|
bubbles: !0,
|
|
4952
4948
|
composed: !0
|
|
4953
4949
|
}));
|
|
4954
|
-
}), p(this,
|
|
4950
|
+
}), p(this, ad, (e) => {
|
|
4955
4951
|
let { key: t } = e;
|
|
4956
4952
|
if (!this.keysUsed.includes(t)) {
|
|
4957
|
-
this.removeEventListener("keyup", g(
|
|
4953
|
+
this.removeEventListener("keyup", g(ad, this));
|
|
4958
4954
|
return;
|
|
4959
4955
|
}
|
|
4960
4956
|
this.dispatchEvent(new CustomEvent(C.REQUEST_USER_INPUT, {
|
|
4961
4957
|
bubbles: !0,
|
|
4962
4958
|
composed: !0
|
|
4963
4959
|
}));
|
|
4964
|
-
}), p(this,
|
|
4960
|
+
}), p(this, od, (e) => {
|
|
4965
4961
|
let { metaKey: t, altKey: n, key: r } = e;
|
|
4966
4962
|
if (t || n || !this.keysUsed.includes(r)) {
|
|
4967
|
-
this.removeEventListener("keyup", g(
|
|
4963
|
+
this.removeEventListener("keyup", g(ad, this));
|
|
4968
4964
|
return;
|
|
4969
4965
|
}
|
|
4970
|
-
this.addEventListener("keyup", g(
|
|
4971
|
-
}), this.attachShadow({ mode: "open" }).appendChild(
|
|
4966
|
+
this.addEventListener("keyup", g(ad, this), { once: !0 });
|
|
4967
|
+
}), this.attachShadow({ mode: "open" }).appendChild(nd.content.cloneNode(!0));
|
|
4972
4968
|
}
|
|
4973
4969
|
get keysUsed() {
|
|
4974
4970
|
return ["Enter", " "];
|
|
4975
4971
|
}
|
|
4976
4972
|
connectedCallback() {
|
|
4977
4973
|
var e;
|
|
4978
|
-
m(
|
|
4974
|
+
m(rd, this, this.closest("vindral-controller")), (e = g(rd, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.enable();
|
|
4979
4975
|
}
|
|
4980
4976
|
enable() {
|
|
4981
|
-
this.addEventListener("click", g(
|
|
4977
|
+
this.addEventListener("click", g(id, this)), this.addEventListener("keydown", g(od, this)), this.tabIndex = 0;
|
|
4982
4978
|
}
|
|
4983
4979
|
disable() {
|
|
4984
|
-
this.removeEventListener("click", g(
|
|
4980
|
+
this.removeEventListener("click", g(id, this)), this.removeEventListener("keydown", g(od, this)), this.removeEventListener("keyup", g(ad, this)), this.tabIndex = -1;
|
|
4985
4981
|
}
|
|
4986
4982
|
disconnectedCallback() {
|
|
4987
4983
|
var e;
|
|
4988
|
-
(e = g(
|
|
4984
|
+
(e = g(rd, this)) == null || e.disconnectListener(this), this.disable();
|
|
4989
4985
|
}
|
|
4990
4986
|
};
|
|
4991
|
-
e(
|
|
4987
|
+
e(sd, "observedAttributes", [
|
|
4992
4988
|
"hidden",
|
|
4993
4989
|
v.NEEDS_USER_INPUT_VIDEO,
|
|
4994
4990
|
v.NEEDS_USER_INPUT_AUDIO,
|
|
@@ -4996,68 +4992,68 @@ e(od, "observedAttributes", [
|
|
|
4996
4992
|
]);
|
|
4997
4993
|
//#endregion
|
|
4998
4994
|
//#region ../../libs/player-next/src/components/VindralCenterOverlay.ts
|
|
4999
|
-
var
|
|
5000
|
-
|
|
5001
|
-
var
|
|
4995
|
+
var cd = document.createElement("template");
|
|
4996
|
+
cd.innerHTML = "\n <style>\n :host {\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 16px;\n pointer-events: none;\n z-index: 1;\n }\n\n :host::before {\n content: \"\";\n position: absolute;\n inset: 0;\n z-index: -1;\n background-color: rgba(0, 0, 0, 0.3);\n background-image: var(--_backdrop-image, none);\n background-repeat: no-repeat;\n background-position: 50% 50%;\n background-size: contain;\n pointer-events: none;\n opacity: 0;\n transition: opacity 100ms;\n }\n\n :host([backdrop]:not([disable-backdrop]))::before {\n opacity: 1;\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host::before {\n transition: none;\n }\n }\n </style>\n\n <slot></slot>\n";
|
|
4997
|
+
var ld = class extends HTMLElement {
|
|
5002
4998
|
constructor() {
|
|
5003
|
-
super(), this.attachShadow({ mode: "open" }).appendChild(
|
|
4999
|
+
super(), this.attachShadow({ mode: "open" }).appendChild(cd.content.cloneNode(!0));
|
|
5004
5000
|
}
|
|
5005
5001
|
attributeChangedCallback(e, t, n) {
|
|
5006
5002
|
t !== n && e === "poster" && this.style.setProperty("--_backdrop-image", n ? `url("${n}")` : "none");
|
|
5007
5003
|
}
|
|
5008
5004
|
};
|
|
5009
|
-
e(
|
|
5005
|
+
e(ld, "observedAttributes", [
|
|
5010
5006
|
"backdrop",
|
|
5011
5007
|
"poster",
|
|
5012
5008
|
"disable-backdrop"
|
|
5013
5009
|
]);
|
|
5014
5010
|
//#endregion
|
|
5015
5011
|
//#region ../../libs/player-next/src/components/VindralMessage.ts
|
|
5016
|
-
var
|
|
5017
|
-
|
|
5018
|
-
var
|
|
5012
|
+
var ud = document.createElement("template");
|
|
5013
|
+
ud.innerHTML = "\n <style>\n :host {\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 90%;\n color: var(--fg-strong);\n font-size: 20px;\n pointer-events: none;\n opacity: 1;\n transition:\n opacity 100ms,\n display 100ms allow-discrete;\n }\n\n :host([hidden]) {\n display: none;\n opacity: 0;\n }\n\n @starting-style {\n :host(:not([hidden])) {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host {\n transition: none;\n }\n }\n\n #title,\n #description {\n text-align: center;\n text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);\n margin: 0;\n }\n\n #title {\n margin-bottom: var(--padding-2);\n }\n\n @container (max-width: 600px) {\n :host {\n font-size: 15px;\n }\n }\n\n @container (max-width: 400px) {\n :host {\n font-size: 12px;\n }\n #title {\n margin-bottom: 0;\n }\n }\n\n @container (max-width: 150px) {\n :host {\n font-size: 10px;\n }\n #title,\n #description {\n font-size: 1.2em;\n margin: 0;\n }\n }\n </style>\n\n <h1 id=\"title\"></h1>\n <p id=\"description\"></p>\n";
|
|
5014
|
+
var dd = /* @__PURE__ */ new WeakMap(), fd = /* @__PURE__ */ new WeakMap(), pd = class extends HTMLElement {
|
|
5019
5015
|
constructor() {
|
|
5020
|
-
super(), p(this,
|
|
5016
|
+
super(), p(this, dd, void 0), p(this, fd, void 0);
|
|
5021
5017
|
let e = this.attachShadow({ mode: "open" });
|
|
5022
|
-
e.appendChild(
|
|
5018
|
+
e.appendChild(ud.content.cloneNode(!0)), m(dd, this, e.querySelector("#title")), m(fd, this, e.querySelector("#description"));
|
|
5023
5019
|
}
|
|
5024
5020
|
connectedCallback() {
|
|
5025
5021
|
this.hasAttribute("role") || (this.setAttribute("role", "alert"), this.setAttribute("aria-atomic", "true"));
|
|
5026
5022
|
}
|
|
5027
5023
|
attributeChangedCallback(e, t, n) {
|
|
5028
|
-
t !== n && (e === "title" ? g(
|
|
5024
|
+
t !== n && (e === "title" ? g(dd, this).textContent = n : e === "description" && (g(fd, this).textContent = n));
|
|
5029
5025
|
}
|
|
5030
5026
|
};
|
|
5031
|
-
e(
|
|
5027
|
+
e(pd, "observedAttributes", [
|
|
5032
5028
|
"title",
|
|
5033
5029
|
"description",
|
|
5034
5030
|
"hidden"
|
|
5035
5031
|
]);
|
|
5036
5032
|
//#endregion
|
|
5037
5033
|
//#region ../../libs/player-next/src/components/VindralPlayOverlay.ts
|
|
5038
|
-
var
|
|
5039
|
-
|
|
5040
|
-
var
|
|
5034
|
+
var md = document.createElement("template");
|
|
5035
|
+
md.innerHTML = "\n <style>\n :host {\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n opacity: 1;\n transition:\n opacity 100ms,\n display 100ms allow-discrete;\n }\n\n :host([hidden]) {\n display: none;\n opacity: 0;\n }\n\n @starting-style {\n :host(:not([hidden])) {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host {\n transition: none;\n }\n }\n\n :host(:focus-visible) {\n outline: none;\n outline: 0;\n }\n\n :host(:focus-visible) svg {\n outline: 0;\n }\n\n :host(:where(:focus)) svg {\n box-shadow: none;\n outline: 0;\n }\n\n :host(:active) svg {\n scale: 0.9;\n }\n\n slot#play {\n color: var(--fg-strong);\n pointer-events: auto;\n cursor: pointer;\n }\n\n slot#play > svg {\n width: var(--play-overlay-icon-size);\n height: var(--play-overlay-icon-size);\n }\n </style>\n\n <slot id=\"play\" name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z\" /></svg>\n</slot>\n";
|
|
5036
|
+
var hd = /* @__PURE__ */ new WeakMap(), gd = class extends HTMLElement {
|
|
5041
5037
|
constructor() {
|
|
5042
|
-
super(), p(this,
|
|
5038
|
+
super(), p(this, hd, null), this.attachShadow({ mode: "open" }).appendChild(md.content.cloneNode(!0));
|
|
5043
5039
|
}
|
|
5044
5040
|
connectedCallback() {
|
|
5045
5041
|
var e;
|
|
5046
|
-
m(
|
|
5042
|
+
m(hd, this, this.closest("vindral-controller")), (e = g(hd, this)) == null || e.connectListener(this), this.setAttribute("aria-label", "Play"), this.setAttribute("role", "button"), this.tabIndex = 0;
|
|
5047
5043
|
}
|
|
5048
5044
|
disconnectedCallback() {
|
|
5049
5045
|
var e;
|
|
5050
|
-
(e = g(
|
|
5046
|
+
(e = g(hd, this)) == null || e.disconnectListener(this);
|
|
5051
5047
|
}
|
|
5052
5048
|
attributeChangedCallback(e, t, n) {
|
|
5053
5049
|
t !== n && e === "hidden" && !y(n) && this.focus();
|
|
5054
5050
|
}
|
|
5055
5051
|
};
|
|
5056
|
-
e(
|
|
5052
|
+
e(gd, "observedAttributes", ["hidden"]);
|
|
5057
5053
|
//#endregion
|
|
5058
5054
|
//#region ../../libs/player-next/src/components/VolumeRange.ts
|
|
5059
|
-
var
|
|
5060
|
-
|
|
5055
|
+
var _d, vd = "Volume", yd = document.createElement("template");
|
|
5056
|
+
yd.innerHTML = `
|
|
5061
5057
|
<style>
|
|
5062
5058
|
:host {
|
|
5063
5059
|
display: var(--volume-range-display);
|
|
@@ -5082,29 +5078,29 @@ vd.innerHTML = `
|
|
|
5082
5078
|
transition-delay: 0s;
|
|
5083
5079
|
}
|
|
5084
5080
|
</style>
|
|
5085
|
-
<span class="tooltip" aria-hidden="true">${
|
|
5081
|
+
<span class="tooltip" aria-hidden="true">${vd}</span>
|
|
5086
5082
|
`;
|
|
5087
|
-
var
|
|
5083
|
+
var bd = (e) => `${Math.round(e * 100)}%`, xd = /* @__PURE__ */ new WeakMap(), Sd = /* @__PURE__ */ new WeakMap(), Cd = /* @__PURE__ */ new WeakMap(), wd = class extends Mi {
|
|
5088
5084
|
constructor() {
|
|
5089
5085
|
var e, t;
|
|
5090
|
-
super(), p(this,
|
|
5086
|
+
super(), p(this, xd, void 0), p(this, Sd, void 0), p(this, Cd, () => {
|
|
5091
5087
|
let e = this.range.valueAsNumber;
|
|
5092
5088
|
this.dispatchEvent(new CustomEvent(C.SET_VOLUME, {
|
|
5093
5089
|
bubbles: !0,
|
|
5094
5090
|
composed: !0,
|
|
5095
5091
|
detail: e
|
|
5096
5092
|
}));
|
|
5097
|
-
}), (e = this.shadowRoot) == null || e.appendChild(
|
|
5093
|
+
}), (e = this.shadowRoot) == null || e.appendChild(yd.content.cloneNode(!0)), m(xd, this, (t = this.shadowRoot) == null ? void 0 : t.querySelector(".tooltip"));
|
|
5098
5094
|
}
|
|
5099
5095
|
connectedCallback() {
|
|
5100
|
-
super.connectedCallback(), this.range.addEventListener("input", g(
|
|
5096
|
+
super.connectedCallback(), this.range.addEventListener("input", g(Cd, this)), this.range.setAttribute("aria-label", vd), m(Sd, this, Te(this, g(xd, this)));
|
|
5101
5097
|
}
|
|
5102
5098
|
disconnectedCallback() {
|
|
5103
5099
|
var e;
|
|
5104
|
-
super.disconnectedCallback(), this.range.removeEventListener("input", g(
|
|
5100
|
+
super.disconnectedCallback(), this.range.removeEventListener("input", g(Cd, this)), (e = g(Sd, this)) == null || e.call(this);
|
|
5105
5101
|
}
|
|
5106
5102
|
attributeChangedCallback(e, t, n) {
|
|
5107
|
-
super.attributeChangedCallback(e, t, n), (e === v.MUTED || e === v.VOLUME) && (this.range.valueAsNumber = this.muted ? 0 : parseFloat(this.volume), this.range.setAttribute("aria-valuetext",
|
|
5103
|
+
super.attributeChangedCallback(e, t, n), (e === v.MUTED || e === v.VOLUME) && (this.range.valueAsNumber = this.muted ? 0 : parseFloat(this.volume), this.range.setAttribute("aria-valuetext", bd(this.range.valueAsNumber)), this.updateBar());
|
|
5108
5104
|
}
|
|
5109
5105
|
get volume() {
|
|
5110
5106
|
var e;
|
|
@@ -5114,15 +5110,15 @@ var yd = (e) => `${Math.round(e * 100)}%`, bd = /* @__PURE__ */ new WeakMap(), x
|
|
|
5114
5110
|
return this.hasAttribute(v.MUTED);
|
|
5115
5111
|
}
|
|
5116
5112
|
};
|
|
5117
|
-
|
|
5118
|
-
...x(
|
|
5113
|
+
_d = wd, e(wd, "observedAttributes", [
|
|
5114
|
+
...x(_d, "observedAttributes", _d),
|
|
5119
5115
|
v.MUTED,
|
|
5120
5116
|
v.VOLUME
|
|
5121
5117
|
]);
|
|
5122
5118
|
//#endregion
|
|
5123
5119
|
//#region ../../libs/player-next/src/registerComponents.ts
|
|
5124
|
-
function
|
|
5125
|
-
customElements.define("vindral-controller",
|
|
5120
|
+
function Td() {
|
|
5121
|
+
customElements.define("vindral-controller", Va), customElements.define("vindral-control-bar", Kn), customElements.define("vindral-advanced-rendition-menu", qe), customElements.define("vindral-advanced-rendition-menu-list", ot), customElements.define("vindral-play-button", Ts), customElements.define("vindral-mute-button", ys), customElements.define("vindral-buffering-overlay", Nt), customElements.define("vindral-seek-preview-overlay", td), customElements.define("vindral-scroll-overlay", ol), customElements.define("vindral-play-overlay", gd), customElements.define("vindral-user-input-play-overlay", sd), customElements.define("vindral-fullscreen-button", Po), customElements.define("vindral-rendition-levels-menu", jc), customElements.define("vindral-rendition-levels-menu-list", Bc), customElements.define("vindral-channel-grid-button", zn), customElements.define("vindral-channel-grid", cn), customElements.define("vindral-channel-grid-item", qt), customElements.define("vindral-pip-button", Ss), customElements.define("vindral-airplay-button", Et), customElements.define("vindral-cast-button", Lt), customElements.define("vindral-cast-overlay", Ut), customElements.define("vindral-buffering-icon", At), customElements.define("vindral-language-menu", zo), customElements.define("vindral-language-menu-list", es), customElements.define("vindral-center-overlay", ld), customElements.define("vindral-message", pd), customElements.define("vindral-volume-range", wd), customElements.define("vindral-poster-overlay", Cc), customElements.define("vindral-player", oc), customElements.define("vindral-seek-bar", Cu), customElements.define("vindral-live-button", gs);
|
|
5126
5122
|
}
|
|
5127
5123
|
//#endregion
|
|
5128
|
-
export {
|
|
5124
|
+
export { Td as t };
|