@evercam/ui 0.0.55-beta.31 → 0.0.55-beta.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attributes.json +5 -0
- package/dist/index.mjs +583 -549
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +12 -12
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/ECompareSeparator.vue.d.ts +7 -0
- package/dist/src/index.d.ts +9 -1
- package/dist/style.css +1 -1
- package/dist/styles.css +3 -0
- package/dist/tags.json +6 -0
- package/dist/web-types.json +24 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import Ee from "vue";
|
|
|
2
2
|
import * as I from "d3";
|
|
3
3
|
import He from "moment-timezone";
|
|
4
4
|
var Y = /* @__PURE__ */ ((s) => (s.dot = "dot", s.xs = "xs", s.sm = "sm", s.md = "base", s.base = "base", s.lg = "lg", s.xl = "xl", s["2xl"] = "2xl", s["3xl"] = "3xl", s["4xl"] = "4xl", s["5xl"] = "5xl", s["6xl"] = "6xl", s["7xl"] = "7xl", s["8xl"] = "8xl", s["9xl"] = "9xl", s))(Y || {}), ge = /* @__PURE__ */ ((s) => (s.warning = "warning", s.error = "error", s.info = "info", s.success = "success", s.primary = "primary", s.brand = "brand", s.default = "default", s))(ge || {}), kt = /* @__PURE__ */ ((s) => (s.overview = "overview", s.detailed = "detailed", s.detailedBackground = "detailedBackground", s))(kt || {}), Re = /* @__PURE__ */ ((s) => (s.bars = "bars", s.dots = "dots", s.lineGraph = "lineGraph", s.barChart = "barGraph", s.milestones = "milestones", s))(Re || {}), Pt = /* @__PURE__ */ ((s) => (s.zoom = "zoom", s.autoPan = "autoPan", s.initial = "initial", s))(Pt || {});
|
|
5
|
-
const
|
|
5
|
+
const pa = Ee.extend({
|
|
6
6
|
name: "EBadge",
|
|
7
7
|
props: {
|
|
8
8
|
text: {
|
|
@@ -52,7 +52,7 @@ const ga = Ee.extend({
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
function
|
|
55
|
+
function ve(s, e, t, i, r, n, a, o) {
|
|
56
56
|
var l = typeof s == "function" ? s.options : s;
|
|
57
57
|
e && (l.render = e, l.staticRenderFns = t, l._compiled = !0), i && (l.functional = !0), n && (l._scopeId = "data-v-" + n);
|
|
58
58
|
var c;
|
|
@@ -81,20 +81,20 @@ function Te(s, e, t, i, r, n, a, o) {
|
|
|
81
81
|
options: l
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
var
|
|
84
|
+
var ya = function() {
|
|
85
85
|
var e = this, t = e._self._c;
|
|
86
86
|
return t("span", { staticClass: "e-badge", class: e.badgeClasses }, [e.showText ? t("span", [e._v(e._s(e.text))]) : e._e()]);
|
|
87
|
-
},
|
|
88
|
-
ga,
|
|
87
|
+
}, va = [], xa = /* @__PURE__ */ ve(
|
|
89
88
|
pa,
|
|
90
89
|
ya,
|
|
90
|
+
va,
|
|
91
91
|
!1,
|
|
92
92
|
null,
|
|
93
93
|
null,
|
|
94
94
|
null,
|
|
95
95
|
null
|
|
96
96
|
);
|
|
97
|
-
const Mr =
|
|
97
|
+
const Mr = xa.exports, Ta = Ee.extend({
|
|
98
98
|
name: "EAvatar",
|
|
99
99
|
components: {
|
|
100
100
|
Badge: Mr
|
|
@@ -146,25 +146,25 @@ const Mr = va.exports, xa = Ee.extend({
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
|
-
var
|
|
149
|
+
var Ea = function() {
|
|
150
150
|
var e = this, t = e._self._c;
|
|
151
151
|
return t("div", { staticClass: "e-avatar e-relative", class: e.avatarClasses }, [e._t("default", function() {
|
|
152
152
|
return [e.image ? t("img", { staticClass: "e-avatar__image e-w-full e-h-full e-object-cover e-rounded-full", attrs: { src: e.image } }) : e._e()];
|
|
153
153
|
}), e.showBadge ? t("div", { staticClass: "e-avatar__badge e-absolute e-top-0 e-right-0" }, [e._t("badge", function() {
|
|
154
154
|
return [t("Badge", { attrs: { text: e.badgeText, color: e.badgeColor, size: e.badgeSize } })];
|
|
155
155
|
})], 2) : e._e()], 2);
|
|
156
|
-
},
|
|
157
|
-
xa,
|
|
156
|
+
}, Sa = [], ba = /* @__PURE__ */ ve(
|
|
158
157
|
Ta,
|
|
159
158
|
Ea,
|
|
159
|
+
Sa,
|
|
160
160
|
!1,
|
|
161
161
|
null,
|
|
162
162
|
null,
|
|
163
163
|
null,
|
|
164
164
|
null
|
|
165
165
|
);
|
|
166
|
-
const
|
|
167
|
-
function
|
|
166
|
+
const Aa = ba.exports;
|
|
167
|
+
function La(s) {
|
|
168
168
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
169
169
|
}
|
|
170
170
|
var Nr = {}, Br = {}, ji = {};
|
|
@@ -1929,14 +1929,14 @@ var Zi = {}, Qi = {}, Xr = {};
|
|
|
1929
1929
|
mode: "rgb",
|
|
1930
1930
|
color: t.default[m].map((k) => k.toString())
|
|
1931
1931
|
};
|
|
1932
|
-
let T = m.replace(n, (k, R, B,
|
|
1932
|
+
let T = m.replace(n, (k, R, B, _, b) => [
|
|
1933
1933
|
"#",
|
|
1934
1934
|
R,
|
|
1935
1935
|
R,
|
|
1936
1936
|
B,
|
|
1937
1937
|
B,
|
|
1938
|
-
|
|
1939
|
-
|
|
1938
|
+
_,
|
|
1939
|
+
_,
|
|
1940
1940
|
b ? b + b : ""
|
|
1941
1941
|
].join("")).match(r);
|
|
1942
1942
|
if (T !== null)
|
|
@@ -2150,7 +2150,7 @@ var Ji = {}, Zr = {}, ei = {};
|
|
|
2150
2150
|
return R;
|
|
2151
2151
|
},
|
|
2152
2152
|
position: function() {
|
|
2153
|
-
return
|
|
2153
|
+
return _;
|
|
2154
2154
|
},
|
|
2155
2155
|
familyName: function() {
|
|
2156
2156
|
return b;
|
|
@@ -2282,7 +2282,7 @@ var Ji = {}, Zr = {}, ei = {};
|
|
|
2282
2282
|
"bottom",
|
|
2283
2283
|
"left"
|
|
2284
2284
|
]);
|
|
2285
|
-
function
|
|
2285
|
+
function _(F) {
|
|
2286
2286
|
let V = 0;
|
|
2287
2287
|
return (0, r.splitAtTopLevelOnly)(F, "_").every((M) => (M = c(M), M.startsWith("var(") ? !0 : B.has(M) || y(M) || f(M) ? (V++, !0) : !1)) ? V > 0 : !1;
|
|
2288
2288
|
}
|
|
@@ -2290,7 +2290,7 @@ var Ji = {}, Zr = {}, ei = {};
|
|
|
2290
2290
|
let V = 0;
|
|
2291
2291
|
return (0, r.splitAtTopLevelOnly)(F, ",").every((M) => (M = c(M), M.startsWith("var(") ? !0 : M.includes(" ") && !/(['"])([^"']+)\1/g.test(M) || /^\d/g.test(M) ? !1 : (V++, !0))) ? V > 0 : !1;
|
|
2292
2292
|
}
|
|
2293
|
-
let
|
|
2293
|
+
let C = /* @__PURE__ */ new Set([
|
|
2294
2294
|
"serif",
|
|
2295
2295
|
"sans-serif",
|
|
2296
2296
|
"monospace",
|
|
@@ -2306,7 +2306,7 @@ var Ji = {}, Zr = {}, ei = {};
|
|
|
2306
2306
|
"fangsong"
|
|
2307
2307
|
]);
|
|
2308
2308
|
function P(F) {
|
|
2309
|
-
return
|
|
2309
|
+
return C.has(F);
|
|
2310
2310
|
}
|
|
2311
2311
|
let w = /* @__PURE__ */ new Set([
|
|
2312
2312
|
"xx-small",
|
|
@@ -2355,11 +2355,11 @@ var Qr = {};
|
|
|
2355
2355
|
Object.defineProperty(s, "__esModule", {
|
|
2356
2356
|
value: !0
|
|
2357
2357
|
});
|
|
2358
|
-
function e(
|
|
2359
|
-
for (var
|
|
2360
|
-
Object.defineProperty(
|
|
2358
|
+
function e(_, b) {
|
|
2359
|
+
for (var C in b)
|
|
2360
|
+
Object.defineProperty(_, C, {
|
|
2361
2361
|
enumerable: !0,
|
|
2362
|
-
get: b[
|
|
2362
|
+
get: b[C]
|
|
2363
2363
|
});
|
|
2364
2364
|
}
|
|
2365
2365
|
e(s, {
|
|
@@ -2389,86 +2389,86 @@ var Qr = {};
|
|
|
2389
2389
|
}
|
|
2390
2390
|
});
|
|
2391
2391
|
const t = /* @__PURE__ */ l(qr), i = Zi, r = Ji, n = /* @__PURE__ */ l(ji), a = Qr, o = Jt;
|
|
2392
|
-
function l(
|
|
2393
|
-
return
|
|
2394
|
-
default:
|
|
2392
|
+
function l(_) {
|
|
2393
|
+
return _ && _.__esModule ? _ : {
|
|
2394
|
+
default: _
|
|
2395
2395
|
};
|
|
2396
2396
|
}
|
|
2397
|
-
function c(
|
|
2398
|
-
|
|
2399
|
-
|
|
2397
|
+
function c(_, b) {
|
|
2398
|
+
_.walkClasses((C) => {
|
|
2399
|
+
C.value = b(C.value), C.raws && C.raws.value && (C.raws.value = (0, t.default)(C.raws.value));
|
|
2400
2400
|
});
|
|
2401
2401
|
}
|
|
2402
|
-
function u(
|
|
2403
|
-
if (!f(
|
|
2402
|
+
function u(_, b) {
|
|
2403
|
+
if (!f(_))
|
|
2404
2404
|
return;
|
|
2405
|
-
let
|
|
2406
|
-
if (b(
|
|
2407
|
-
return (0, r.normalize)(
|
|
2405
|
+
let C = _.slice(1, -1);
|
|
2406
|
+
if (b(C))
|
|
2407
|
+
return (0, r.normalize)(C);
|
|
2408
2408
|
}
|
|
2409
|
-
function h(
|
|
2410
|
-
let P = b[
|
|
2409
|
+
function h(_, b = {}, C) {
|
|
2410
|
+
let P = b[_];
|
|
2411
2411
|
if (P !== void 0)
|
|
2412
2412
|
return (0, n.default)(P);
|
|
2413
|
-
if (f(
|
|
2414
|
-
let w = u(
|
|
2413
|
+
if (f(_)) {
|
|
2414
|
+
let w = u(_, C);
|
|
2415
2415
|
return w === void 0 ? void 0 : (0, n.default)(w);
|
|
2416
2416
|
}
|
|
2417
2417
|
}
|
|
2418
|
-
function d(
|
|
2418
|
+
function d(_, b = {}, { validate: C = () => !0 } = {}) {
|
|
2419
2419
|
var P;
|
|
2420
|
-
let w = (P = b.values) === null || P === void 0 ? void 0 : P[
|
|
2421
|
-
return w !== void 0 ? w : b.supportsNegativeValues &&
|
|
2420
|
+
let w = (P = b.values) === null || P === void 0 ? void 0 : P[_];
|
|
2421
|
+
return w !== void 0 ? w : b.supportsNegativeValues && _.startsWith("-") ? h(_.slice(1), b.values, C) : u(_, C);
|
|
2422
2422
|
}
|
|
2423
|
-
function f(
|
|
2424
|
-
return
|
|
2423
|
+
function f(_) {
|
|
2424
|
+
return _.startsWith("[") && _.endsWith("]");
|
|
2425
2425
|
}
|
|
2426
|
-
function m(
|
|
2427
|
-
let b =
|
|
2428
|
-
return b === -1 || b ===
|
|
2429
|
-
|
|
2426
|
+
function m(_) {
|
|
2427
|
+
let b = _.lastIndexOf("/");
|
|
2428
|
+
return b === -1 || b === _.length - 1 ? [
|
|
2429
|
+
_,
|
|
2430
2430
|
void 0
|
|
2431
|
-
] : f(
|
|
2432
|
-
|
|
2431
|
+
] : f(_) && !_.includes("]/[") ? [
|
|
2432
|
+
_,
|
|
2433
2433
|
void 0
|
|
2434
2434
|
] : [
|
|
2435
|
-
|
|
2436
|
-
|
|
2435
|
+
_.slice(0, b),
|
|
2436
|
+
_.slice(b + 1)
|
|
2437
2437
|
];
|
|
2438
2438
|
}
|
|
2439
|
-
function g(
|
|
2440
|
-
if (typeof
|
|
2441
|
-
let b =
|
|
2442
|
-
return ({ opacityValue:
|
|
2439
|
+
function g(_) {
|
|
2440
|
+
if (typeof _ == "string" && _.includes("<alpha-value>")) {
|
|
2441
|
+
let b = _;
|
|
2442
|
+
return ({ opacityValue: C = 1 }) => b.replace("<alpha-value>", C);
|
|
2443
2443
|
}
|
|
2444
|
-
return
|
|
2444
|
+
return _;
|
|
2445
2445
|
}
|
|
2446
|
-
function y(
|
|
2447
|
-
return (0, r.normalize)(
|
|
2446
|
+
function y(_) {
|
|
2447
|
+
return (0, r.normalize)(_.slice(1, -1));
|
|
2448
2448
|
}
|
|
2449
|
-
function v(
|
|
2449
|
+
function v(_, b = {}, { tailwindConfig: C = {} } = {}) {
|
|
2450
2450
|
var P;
|
|
2451
|
-
if (((P = b.values) === null || P === void 0 ? void 0 : P[
|
|
2451
|
+
if (((P = b.values) === null || P === void 0 ? void 0 : P[_]) !== void 0) {
|
|
2452
2452
|
var w;
|
|
2453
|
-
return g((w = b.values) === null || w === void 0 ? void 0 : w[
|
|
2453
|
+
return g((w = b.values) === null || w === void 0 ? void 0 : w[_]);
|
|
2454
2454
|
}
|
|
2455
|
-
let [$, O] = m(
|
|
2455
|
+
let [$, O] = m(_);
|
|
2456
2456
|
if (O !== void 0) {
|
|
2457
2457
|
var U, F, V, H;
|
|
2458
2458
|
let M = (H = (U = b.values) === null || U === void 0 ? void 0 : U[$]) !== null && H !== void 0 ? H : f($) ? $.slice(1, -1) : void 0;
|
|
2459
|
-
return M === void 0 ? void 0 : (M = g(M), f(O) ? (0, i.withAlphaValue)(M, y(O)) : ((F =
|
|
2459
|
+
return M === void 0 ? void 0 : (M = g(M), f(O) ? (0, i.withAlphaValue)(M, y(O)) : ((F = C.theme) === null || F === void 0 || (V = F.opacity) === null || V === void 0 ? void 0 : V[O]) === void 0 ? void 0 : (0, i.withAlphaValue)(M, C.theme.opacity[O]));
|
|
2460
2460
|
}
|
|
2461
|
-
return d(
|
|
2461
|
+
return d(_, b, {
|
|
2462
2462
|
validate: r.color
|
|
2463
2463
|
});
|
|
2464
2464
|
}
|
|
2465
|
-
function T(
|
|
2466
|
-
var
|
|
2467
|
-
return (
|
|
2465
|
+
function T(_, b = {}) {
|
|
2466
|
+
var C;
|
|
2467
|
+
return (C = b.values) === null || C === void 0 ? void 0 : C[_];
|
|
2468
2468
|
}
|
|
2469
|
-
function x(
|
|
2470
|
-
return (b,
|
|
2471
|
-
validate:
|
|
2469
|
+
function x(_) {
|
|
2470
|
+
return (b, C) => d(b, C, {
|
|
2471
|
+
validate: _
|
|
2472
2472
|
});
|
|
2473
2473
|
}
|
|
2474
2474
|
let L = {
|
|
@@ -2489,20 +2489,20 @@ var Qr = {};
|
|
|
2489
2489
|
shadow: x(r.shadow),
|
|
2490
2490
|
size: x(a.backgroundSize)
|
|
2491
2491
|
}, E = Object.keys(L);
|
|
2492
|
-
function k(
|
|
2493
|
-
let
|
|
2494
|
-
return
|
|
2492
|
+
function k(_, b) {
|
|
2493
|
+
let C = _.indexOf(b);
|
|
2494
|
+
return C === -1 ? [
|
|
2495
2495
|
void 0,
|
|
2496
|
-
|
|
2496
|
+
_
|
|
2497
2497
|
] : [
|
|
2498
|
-
|
|
2499
|
-
|
|
2498
|
+
_.slice(0, C),
|
|
2499
|
+
_.slice(C + 1)
|
|
2500
2500
|
];
|
|
2501
2501
|
}
|
|
2502
|
-
function R(
|
|
2503
|
-
if (
|
|
2504
|
-
for (let { type: $ } of
|
|
2505
|
-
let O = L[$](b,
|
|
2502
|
+
function R(_, b, C, P) {
|
|
2503
|
+
if (C.values && b in C.values)
|
|
2504
|
+
for (let { type: $ } of _ != null ? _ : []) {
|
|
2505
|
+
let O = L[$](b, C, {
|
|
2506
2506
|
tailwindConfig: P
|
|
2507
2507
|
});
|
|
2508
2508
|
if (O !== void 0)
|
|
@@ -2520,25 +2520,25 @@ var Qr = {};
|
|
|
2520
2520
|
return [];
|
|
2521
2521
|
if (U.length > 0 && E.includes(O))
|
|
2522
2522
|
return [
|
|
2523
|
-
d(`[${U}]`,
|
|
2523
|
+
d(`[${U}]`, C),
|
|
2524
2524
|
O,
|
|
2525
2525
|
null
|
|
2526
2526
|
];
|
|
2527
2527
|
}
|
|
2528
|
-
let w = B(
|
|
2528
|
+
let w = B(_, b, C, P);
|
|
2529
2529
|
for (let $ of w)
|
|
2530
2530
|
return $;
|
|
2531
2531
|
return [];
|
|
2532
2532
|
}
|
|
2533
|
-
function* B(
|
|
2533
|
+
function* B(_, b, C, P) {
|
|
2534
2534
|
let w = (0, o.flagEnabled)(P, "generalizedModifiers"), [$, O] = m(b);
|
|
2535
|
-
if (w &&
|
|
2535
|
+
if (w && C.modifiers != null && (C.modifiers === "any" || typeof C.modifiers == "object" && (O && f(O) || O in C.modifiers)) || ($ = b, O = void 0), O !== void 0 && $ === "" && ($ = "DEFAULT"), O !== void 0 && typeof C.modifiers == "object") {
|
|
2536
2536
|
var F, V;
|
|
2537
|
-
let H = (V = (F =
|
|
2537
|
+
let H = (V = (F = C.modifiers) === null || F === void 0 ? void 0 : F[O]) !== null && V !== void 0 ? V : null;
|
|
2538
2538
|
H !== null ? O = H : f(O) && (O = y(O));
|
|
2539
2539
|
}
|
|
2540
|
-
for (let { type: H } of
|
|
2541
|
-
let M = L[H]($,
|
|
2540
|
+
for (let { type: H } of _ != null ? _ : []) {
|
|
2541
|
+
let M = L[H]($, C, {
|
|
2542
2542
|
tailwindConfig: P
|
|
2543
2543
|
});
|
|
2544
2544
|
M !== void 0 && (yield [
|
|
@@ -2569,7 +2569,7 @@ var Jr = {};
|
|
|
2569
2569
|
}), Object.defineProperty(s, "default", {
|
|
2570
2570
|
enumerable: !0,
|
|
2571
2571
|
get: function() {
|
|
2572
|
-
return
|
|
2572
|
+
return C;
|
|
2573
2573
|
}
|
|
2574
2574
|
});
|
|
2575
2575
|
const e = /* @__PURE__ */ f(ji), t = /* @__PURE__ */ f($r), i = /* @__PURE__ */ f(Ur), r = /* @__PURE__ */ f(qi), n = Vr, a = Kr, o = Wr, l = /* @__PURE__ */ f(zr), c = Yr, u = jr, h = Zi, d = /* @__PURE__ */ f(Jr);
|
|
@@ -2696,7 +2696,7 @@ var Jr = {};
|
|
|
2696
2696
|
});
|
|
2697
2697
|
}), w;
|
|
2698
2698
|
}
|
|
2699
|
-
function
|
|
2699
|
+
function _(P) {
|
|
2700
2700
|
return [
|
|
2701
2701
|
...P
|
|
2702
2702
|
].reduceRight(($, O) => m(O) ? O({
|
|
@@ -2711,7 +2711,7 @@ var Jr = {};
|
|
|
2711
2711
|
...O
|
|
2712
2712
|
], []);
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2714
|
+
function C(P) {
|
|
2715
2715
|
let w = [
|
|
2716
2716
|
...B(P),
|
|
2717
2717
|
{
|
|
@@ -2723,12 +2723,12 @@ var Jr = {};
|
|
|
2723
2723
|
var $, O;
|
|
2724
2724
|
return (0, o.normalizeConfig)((0, n.defaults)({
|
|
2725
2725
|
theme: R(E(x(w.map((U) => ($ = U == null ? void 0 : U.theme) !== null && $ !== void 0 ? $ : {})))),
|
|
2726
|
-
corePlugins:
|
|
2726
|
+
corePlugins: _(w.map((U) => U.corePlugins)),
|
|
2727
2727
|
plugins: b(P.map((U) => (O = U == null ? void 0 : U.plugins) !== null && O !== void 0 ? O : []))
|
|
2728
2728
|
}, ...w));
|
|
2729
2729
|
}
|
|
2730
2730
|
})(Br);
|
|
2731
|
-
var en = {},
|
|
2731
|
+
var en = {}, Ra = {
|
|
2732
2732
|
content: [],
|
|
2733
2733
|
presets: [],
|
|
2734
2734
|
darkMode: "media",
|
|
@@ -3728,7 +3728,7 @@ var en = {}, La = {
|
|
|
3728
3728
|
return r;
|
|
3729
3729
|
}
|
|
3730
3730
|
});
|
|
3731
|
-
const e = /* @__PURE__ */ i(
|
|
3731
|
+
const e = /* @__PURE__ */ i(Ra), t = Jt;
|
|
3732
3732
|
function i(n) {
|
|
3733
3733
|
return n && n.__esModule ? n : {
|
|
3734
3734
|
default: n
|
|
@@ -3790,11 +3790,11 @@ var en = {}, La = {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
})(Nr);
|
|
3792
3792
|
let ri = Nr;
|
|
3793
|
-
var
|
|
3794
|
-
const Ca = /* @__PURE__ */
|
|
3793
|
+
var _a = (ri.__esModule ? ri : { default: ri }).default;
|
|
3794
|
+
const Ca = /* @__PURE__ */ La(_a);
|
|
3795
3795
|
let ni = qi;
|
|
3796
3796
|
var ke = (ni.__esModule ? ni : { default: ni }).default;
|
|
3797
|
-
const
|
|
3797
|
+
const Da = {
|
|
3798
3798
|
50: "#FCE3E4",
|
|
3799
3799
|
100: "#F9CDCE",
|
|
3800
3800
|
200: "#F39699",
|
|
@@ -3812,8 +3812,8 @@ const _a = {
|
|
|
3812
3812
|
info: ke.cyan,
|
|
3813
3813
|
success: ke.lime,
|
|
3814
3814
|
primary: ke.sky,
|
|
3815
|
-
brand:
|
|
3816
|
-
},
|
|
3815
|
+
brand: Da
|
|
3816
|
+
}, Ia = {
|
|
3817
3817
|
...pe,
|
|
3818
3818
|
// Warning
|
|
3819
3819
|
warning: pe.warning[500],
|
|
@@ -3840,7 +3840,7 @@ const _a = {
|
|
|
3840
3840
|
onbackground: ke.slate[700],
|
|
3841
3841
|
surface: ke.slate[50],
|
|
3842
3842
|
background: ke.white
|
|
3843
|
-
},
|
|
3843
|
+
}, wa = {
|
|
3844
3844
|
prefix: "e-",
|
|
3845
3845
|
corePlugins: {
|
|
3846
3846
|
preflight: !1
|
|
@@ -3848,7 +3848,7 @@ const _a = {
|
|
|
3848
3848
|
content: ["./src/**/*.{html,js,vue,ts}"],
|
|
3849
3849
|
theme: {
|
|
3850
3850
|
extend: {
|
|
3851
|
-
colors:
|
|
3851
|
+
colors: Ia,
|
|
3852
3852
|
maxWidth: {
|
|
3853
3853
|
"1/12": "8.333333333%",
|
|
3854
3854
|
"2/12": "16.666666666%",
|
|
@@ -3916,21 +3916,21 @@ const _a = {
|
|
|
3916
3916
|
pattern: /e-content-(around|baseline|between|center|end|evenly|normal|start|stretch)/
|
|
3917
3917
|
}
|
|
3918
3918
|
]
|
|
3919
|
-
}, tn = Ca(
|
|
3919
|
+
}, tn = Ca(wa), ka = tn.theme.fontSize, Pa = tn.theme.colors, md = [
|
|
3920
3920
|
Y.dot,
|
|
3921
3921
|
Y.xs,
|
|
3922
3922
|
Y.sm,
|
|
3923
3923
|
Y.md,
|
|
3924
3924
|
Y.lg,
|
|
3925
3925
|
Y.xl
|
|
3926
|
-
],
|
|
3926
|
+
], gd = [
|
|
3927
3927
|
Y.xs,
|
|
3928
3928
|
Y.sm,
|
|
3929
3929
|
Y.md,
|
|
3930
3930
|
Y.lg,
|
|
3931
3931
|
Y.xl,
|
|
3932
3932
|
Y["2xl"]
|
|
3933
|
-
],
|
|
3933
|
+
], Oa = [
|
|
3934
3934
|
Y.xs,
|
|
3935
3935
|
Y.sm,
|
|
3936
3936
|
Y.md,
|
|
@@ -3945,14 +3945,14 @@ const _a = {
|
|
|
3945
3945
|
Y["7xl"],
|
|
3946
3946
|
Y["8xl"],
|
|
3947
3947
|
Y["9xl"]
|
|
3948
|
-
],
|
|
3948
|
+
], pd = [
|
|
3949
3949
|
ge.warning,
|
|
3950
3950
|
ge.error,
|
|
3951
3951
|
ge.info,
|
|
3952
3952
|
ge.success,
|
|
3953
3953
|
ge.primary,
|
|
3954
3954
|
ge.default
|
|
3955
|
-
],
|
|
3955
|
+
], yd = [
|
|
3956
3956
|
"play",
|
|
3957
3957
|
"pause",
|
|
3958
3958
|
"ended",
|
|
@@ -3963,7 +3963,7 @@ const _a = {
|
|
|
3963
3963
|
"canplay",
|
|
3964
3964
|
"canplaythrough",
|
|
3965
3965
|
"statechanged"
|
|
3966
|
-
],
|
|
3966
|
+
], Fa = Ee.extend({
|
|
3967
3967
|
name: "EIcon",
|
|
3968
3968
|
props: {
|
|
3969
3969
|
icon: {
|
|
@@ -3981,7 +3981,7 @@ const _a = {
|
|
|
3981
3981
|
},
|
|
3982
3982
|
computed: {
|
|
3983
3983
|
sizes() {
|
|
3984
|
-
return
|
|
3984
|
+
return Oa.reduce((s, e) => ({
|
|
3985
3985
|
...s,
|
|
3986
3986
|
[e]: `e-text-${e}`
|
|
3987
3987
|
}), {});
|
|
@@ -3998,20 +3998,20 @@ const _a = {
|
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
4000
4000
|
});
|
|
4001
|
-
var
|
|
4001
|
+
var Ma = function() {
|
|
4002
4002
|
var e = this, t = e._self._c;
|
|
4003
4003
|
return t("div", { staticClass: "e-icon" }, [t("i", { class: e.iconClasses })]);
|
|
4004
|
-
},
|
|
4005
|
-
Oa,
|
|
4004
|
+
}, Na = [], Ba = /* @__PURE__ */ ve(
|
|
4006
4005
|
Fa,
|
|
4007
4006
|
Ma,
|
|
4007
|
+
Na,
|
|
4008
4008
|
!1,
|
|
4009
4009
|
null,
|
|
4010
4010
|
null,
|
|
4011
4011
|
null,
|
|
4012
4012
|
null
|
|
4013
4013
|
);
|
|
4014
|
-
const
|
|
4014
|
+
const sn = Ba.exports, $a = Ee.extend({
|
|
4015
4015
|
name: "ESpinner",
|
|
4016
4016
|
props: {
|
|
4017
4017
|
dark: {
|
|
@@ -4037,8 +4037,8 @@ const Ba = Na.exports, $a = Ee.extend({
|
|
|
4037
4037
|
},
|
|
4038
4038
|
data() {
|
|
4039
4039
|
return {
|
|
4040
|
-
sizes:
|
|
4041
|
-
colors:
|
|
4040
|
+
sizes: ka,
|
|
4041
|
+
colors: Pa
|
|
4042
4042
|
};
|
|
4043
4043
|
},
|
|
4044
4044
|
computed: {
|
|
@@ -4079,7 +4079,7 @@ var Ua = function() {
|
|
|
4079
4079
|
"e-spinner--dark": e.dark,
|
|
4080
4080
|
"e-spinner--grey": !e.color
|
|
4081
4081
|
}, style: { opacity: e.opacity }, attrs: { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1629.32 1608.86", width: e.computedSize, height: e.computedSize } }, [t("path", { staticClass: "e-spinner__primary", style: e.getNthPathStyle(0), attrs: { d: "m1254.12,591.61C992.01,401.11,439.78,0,439.78,0h601.2c14.3,0,48.95,9.02,62.54,38.01,55.27,117.88,111.32,235.46,170.48,351.43,33.16,70.9-8.99,170.35-19.87,202.16" } }), t("path", { staticClass: "e-spinner__secondary", style: e.getNthPathStyle(1), attrs: { d: "m1404.65,131.67c-29.37,89.94-55.8,170.95-82.25,251.93-4.05.87-8.1,1.73-12.15,2.61-40.61-83.95-81.21-167.9-123.12-254.54h217.51Z" } }), t("path", { staticClass: "e-spinner__primary", style: e.getNthPathStyle(2), attrs: { d: "m1129.06,1093.51c100.75-307.98,312.75-956.75,312.75-956.75,0,0,180.36,558.53,184.75,572.14,4.39,13.59,6.45,49.34-16.96,71.19-95.21,88.81-189.88,178.28-282.06,270.2-57.29,53.34-164.86,43.8-198.48,43.21" } }), t("path", { staticClass: "e-spinner__secondary", style: e.getNthPathStyle(3), attrs: { d: "m1342.3,1083.06c66.6-63.43,133.22-126.86,207.93-197.98,21.51,73.55,40.3,137.81,60.64,207.37h-263.35c-1.75-3.13-3.48-6.27-5.22-9.39" } }), t("path", { staticClass: "e-spinner__primary", style: e.getNthPathStyle(4), attrs: { d: "m610.27,1137.17c324.03-.53,1006.55-1.85,1006.55-1.85,0,0-474.19,345.83-485.74,354.25-11.55,8.42-44.87,21.56-72.94,6.14-114.11-62.68-228.69-124.66-344.81-183.5-68.56-37.76-93.12-142.93-103.06-175.04" } }), t("path", { staticClass: "e-spinner__secondary", style: e.getNthPathStyle(5), attrs: { d: "m938.58,1468.29c-62.81,42.58-118.35,80.24-180.28,122.23-28.35-87.22-54.62-168.03-80.89-248.86,2.62-2.92,5.26-5.85,7.9-8.76,81.89,43.78,163.79,87.56,253.26,135.39" } }), t("path", { staticClass: "e-spinner__primary", style: e.getNthPathStyle(6), attrs: { d: "m413.07,652.86c101.35,307.77,314.99,956,314.99,956,0,0-476.23-343.04-487.83-351.39-11.58-8.36-34.44-35.93-28.52-67.4,24.07-127.96,47.3-256.13,67.09-384.8,14.54-76.9,106.84-132.96,134.28-152.42" } }), t("path", { staticClass: "e-spinner__secondary", style: e.getNthPathStyle(7), attrs: { d: "m197.48,1068.8c-62.36-47.73-115.99-88.79-176.78-135.33,75.54-54.91,146.18-106.24,216.83-157.57,3.73,2.24,7.45,4.47,11.19,6.71-16.36,91.3-32.7,182.61-51.25,286.19" } }), t("path", { staticClass: "e-spinner__primary", style: e.getNthPathStyle(8), attrs: { d: "m813.58,314.41C551.63,505.15,0,907.07,0,907.07c0,0,180.68-558.4,185.09-572.01,4.39-13.59,23.65-43.78,55.41-47.8,129.19-16.29,258.32-33.41,386.86-53.99,77.67-9.72,159.3,60.97,186.22,81.13" } }), t("path", { staticClass: "e-spinner__secondary", style: e.getNthPathStyle(9), attrs: { d: "m635.14,199.78c-91.99,12.38-183.97,24.77-288.07,38.76,25.77-73.18,48.3-137.14,73.8-209.53,76.56,55.41,147.27,106.58,217.97,157.75-1.23,4.34-2.46,8.68-3.69,13.02" } })]);
|
|
4082
|
-
}, Ga = [], Ha = /* @__PURE__ */
|
|
4082
|
+
}, Ga = [], Ha = /* @__PURE__ */ ve(
|
|
4083
4083
|
$a,
|
|
4084
4084
|
Ua,
|
|
4085
4085
|
Ga,
|
|
@@ -4089,7 +4089,7 @@ var Ua = function() {
|
|
|
4089
4089
|
null,
|
|
4090
4090
|
null
|
|
4091
4091
|
);
|
|
4092
|
-
const
|
|
4092
|
+
const rn = Ha.exports, Va = Ee.extend({
|
|
4093
4093
|
props: {
|
|
4094
4094
|
align: {
|
|
4095
4095
|
type: String,
|
|
@@ -4152,7 +4152,7 @@ const sn = Ha.exports, Va = Ee.extend({
|
|
|
4152
4152
|
var Ka = function() {
|
|
4153
4153
|
var e = this, t = e._self._c;
|
|
4154
4154
|
return e._self._setupProxy, t("div", { staticClass: "e-row e-flex e-flex-wrap", class: e.rowClasses }, [e._t("default")], 2);
|
|
4155
|
-
}, Wa = [], za = /* @__PURE__ */
|
|
4155
|
+
}, Wa = [], za = /* @__PURE__ */ ve(
|
|
4156
4156
|
Va,
|
|
4157
4157
|
Ka,
|
|
4158
4158
|
Wa,
|
|
@@ -4269,7 +4269,7 @@ const Ya = za.exports, ja = Ee.extend({
|
|
|
4269
4269
|
var qa = function() {
|
|
4270
4270
|
var e = this, t = e._self._c;
|
|
4271
4271
|
return t("div", { staticClass: "e-col", class: e.colClasses }, [e._t("default")], 2);
|
|
4272
|
-
}, Xa = [], Za = /* @__PURE__ */
|
|
4272
|
+
}, Xa = [], Za = /* @__PURE__ */ ve(
|
|
4273
4273
|
ja,
|
|
4274
4274
|
qa,
|
|
4275
4275
|
Xa,
|
|
@@ -4283,7 +4283,7 @@ const Qa = Za.exports;
|
|
|
4283
4283
|
function Ja(s) {
|
|
4284
4284
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
4285
4285
|
}
|
|
4286
|
-
var
|
|
4286
|
+
var nn = { exports: {} };
|
|
4287
4287
|
(function(s, e) {
|
|
4288
4288
|
(function(t) {
|
|
4289
4289
|
var i = /^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/, r = /^(?=([^\/?#]*))\1([^]*)$/, n = /(?:\/|^)\.(?=\/)/g, a = /(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g, o = {
|
|
@@ -4358,8 +4358,8 @@ var rn = { exports: {} };
|
|
|
4358
4358
|
};
|
|
4359
4359
|
s.exports = o;
|
|
4360
4360
|
})();
|
|
4361
|
-
})(
|
|
4362
|
-
var es =
|
|
4361
|
+
})(nn);
|
|
4362
|
+
var es = nn.exports;
|
|
4363
4363
|
function xs(s, e) {
|
|
4364
4364
|
var t = Object.keys(s);
|
|
4365
4365
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -4532,7 +4532,7 @@ function co(s) {
|
|
|
4532
4532
|
function uo(s) {
|
|
4533
4533
|
return s === "SCTE35-OUT" || s === "SCTE35-IN";
|
|
4534
4534
|
}
|
|
4535
|
-
class
|
|
4535
|
+
class an {
|
|
4536
4536
|
constructor(e, t) {
|
|
4537
4537
|
if (this.attr = void 0, this._startDate = void 0, this._endDate = void 0, this._badValueForSameId = void 0, t) {
|
|
4538
4538
|
const i = t.attr;
|
|
@@ -4603,7 +4603,7 @@ var te = {
|
|
|
4603
4603
|
VIDEO: "video",
|
|
4604
4604
|
AUDIOVIDEO: "audiovideo"
|
|
4605
4605
|
};
|
|
4606
|
-
class
|
|
4606
|
+
class on {
|
|
4607
4607
|
constructor(e) {
|
|
4608
4608
|
this._byteRange = null, this._url = null, this.baseurl = void 0, this.relurl = void 0, this.elementaryStreams = {
|
|
4609
4609
|
[te.AUDIO]: null,
|
|
@@ -4635,7 +4635,7 @@ class an {
|
|
|
4635
4635
|
this._url = e;
|
|
4636
4636
|
}
|
|
4637
4637
|
}
|
|
4638
|
-
class ai extends
|
|
4638
|
+
class ai extends on {
|
|
4639
4639
|
constructor(e, t) {
|
|
4640
4640
|
super(t), this._decryptdata = null, this.rawProgramDateTime = null, this.programDateTime = null, this.tagList = [], this.duration = 0, this.sn = 0, this.levelkeys = void 0, this.type = void 0, this.loader = null, this.keyLoader = null, this.level = -1, this.cc = 0, this.startPTS = void 0, this.endPTS = void 0, this.startDTS = void 0, this.endDTS = void 0, this.start = 0, this.deltaPTS = void 0, this.maxStartPTS = void 0, this.minEndPTS = void 0, this.stats = new ti(), this.data = void 0, this.bitrateTest = !1, this.title = null, this.initSegment = null, this.endList = void 0, this.gap = void 0, this.urlId = 0, this.type = e;
|
|
4641
4641
|
}
|
|
@@ -4710,7 +4710,7 @@ class ai extends an {
|
|
|
4710
4710
|
e[te.AUDIO] = null, e[te.VIDEO] = null, e[te.AUDIOVIDEO] = null;
|
|
4711
4711
|
}
|
|
4712
4712
|
}
|
|
4713
|
-
class ho extends
|
|
4713
|
+
class ho extends on {
|
|
4714
4714
|
constructor(e, t, i, r, n) {
|
|
4715
4715
|
super(i), this.fragOffset = 0, this.duration = 0, this.gap = !1, this.independent = !1, this.relurl = void 0, this.fragment = void 0, this.index = void 0, this.stats = new ti(), this.duration = e.decimalFloatingPoint("DURATION"), this.gap = e.bool("GAP"), this.independent = e.bool("INDEPENDENT"), this.relurl = e.enumeratedString("URI"), this.fragment = t, this.index = r;
|
|
4716
4716
|
const a = e.enumeratedString("BYTERANGE");
|
|
@@ -4810,7 +4810,7 @@ var re = {
|
|
|
4810
4810
|
FAIRPLAY: "com.apple.fps",
|
|
4811
4811
|
PLAYREADY: "com.microsoft.playready",
|
|
4812
4812
|
WIDEVINE: "com.widevine.alpha"
|
|
4813
|
-
},
|
|
4813
|
+
}, Te = {
|
|
4814
4814
|
CLEARKEY: "org.w3.clearkey",
|
|
4815
4815
|
FAIRPLAY: "com.apple.streamingkeydelivery",
|
|
4816
4816
|
PLAYREADY: "com.microsoft.playready",
|
|
@@ -4818,33 +4818,33 @@ var re = {
|
|
|
4818
4818
|
};
|
|
4819
4819
|
function Es(s) {
|
|
4820
4820
|
switch (s) {
|
|
4821
|
-
case
|
|
4821
|
+
case Te.FAIRPLAY:
|
|
4822
4822
|
return re.FAIRPLAY;
|
|
4823
|
-
case
|
|
4823
|
+
case Te.PLAYREADY:
|
|
4824
4824
|
return re.PLAYREADY;
|
|
4825
|
-
case
|
|
4825
|
+
case Te.WIDEVINE:
|
|
4826
4826
|
return re.WIDEVINE;
|
|
4827
|
-
case
|
|
4827
|
+
case Te.CLEARKEY:
|
|
4828
4828
|
return re.CLEARKEY;
|
|
4829
4829
|
}
|
|
4830
4830
|
}
|
|
4831
|
-
var
|
|
4831
|
+
var ln = {
|
|
4832
4832
|
WIDEVINE: "edef8ba979d64acea3c827dcd51d21ed"
|
|
4833
4833
|
};
|
|
4834
4834
|
function vo(s) {
|
|
4835
|
-
if (s ===
|
|
4835
|
+
if (s === ln.WIDEVINE)
|
|
4836
4836
|
return re.WIDEVINE;
|
|
4837
4837
|
}
|
|
4838
4838
|
function Ss(s) {
|
|
4839
4839
|
switch (s) {
|
|
4840
4840
|
case re.FAIRPLAY:
|
|
4841
|
-
return
|
|
4841
|
+
return Te.FAIRPLAY;
|
|
4842
4842
|
case re.PLAYREADY:
|
|
4843
|
-
return
|
|
4843
|
+
return Te.PLAYREADY;
|
|
4844
4844
|
case re.WIDEVINE:
|
|
4845
|
-
return
|
|
4845
|
+
return Te.WIDEVINE;
|
|
4846
4846
|
case re.CLEARKEY:
|
|
4847
|
-
return
|
|
4847
|
+
return Te.CLEARKEY;
|
|
4848
4848
|
}
|
|
4849
4849
|
}
|
|
4850
4850
|
function oi(s) {
|
|
@@ -4854,7 +4854,7 @@ function oi(s) {
|
|
|
4854
4854
|
} = s, i = e ? [re.FAIRPLAY, re.WIDEVINE, re.PLAYREADY, re.CLEARKEY].filter((r) => !!e[r]) : [];
|
|
4855
4855
|
return !i[re.WIDEVINE] && t && i.push(re.WIDEVINE), i;
|
|
4856
4856
|
}
|
|
4857
|
-
const
|
|
4857
|
+
const cn = function(s) {
|
|
4858
4858
|
return lt != null && (s = lt.navigator) != null && s.requestMediaKeySystemAccess ? self.navigator.requestMediaKeySystemAccess.bind(self.navigator) : null;
|
|
4859
4859
|
}();
|
|
4860
4860
|
function xo(s, e, t, i) {
|
|
@@ -4896,13 +4896,13 @@ function To(s, e, t, i) {
|
|
|
4896
4896
|
function Qe(s, e, t) {
|
|
4897
4897
|
return Uint8Array.prototype.slice ? s.slice(e, t) : new Uint8Array(Array.prototype.slice.call(s, e, t));
|
|
4898
4898
|
}
|
|
4899
|
-
const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e + 2] === 51 && s[e + 3] < 255 && s[e + 4] < 255 && s[e + 6] < 128 && s[e + 7] < 128 && s[e + 8] < 128 && s[e + 9] < 128,
|
|
4899
|
+
const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e + 2] === 51 && s[e + 3] < 255 && s[e + 4] < 255 && s[e + 6] < 128 && s[e + 7] < 128 && s[e + 8] < 128 && s[e + 9] < 128, un = (s, e) => e + 10 <= s.length && s[e] === 51 && s[e + 1] === 68 && s[e + 2] === 73 && s[e + 3] < 255 && s[e + 4] < 255 && s[e + 6] < 128 && s[e + 7] < 128 && s[e + 8] < 128 && s[e + 9] < 128, xt = (s, e) => {
|
|
4900
4900
|
const t = e;
|
|
4901
4901
|
let i = 0;
|
|
4902
4902
|
for (; is(s, e); ) {
|
|
4903
4903
|
i += 10;
|
|
4904
4904
|
const r = ii(s, e + 6);
|
|
4905
|
-
i += r,
|
|
4905
|
+
i += r, un(s, e + 10) && (i += 10), e += i;
|
|
4906
4906
|
}
|
|
4907
4907
|
if (i > 0)
|
|
4908
4908
|
return s.subarray(t, t + i);
|
|
@@ -4910,20 +4910,20 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
4910
4910
|
let t = 0;
|
|
4911
4911
|
return t = (s[e] & 127) << 21, t |= (s[e + 1] & 127) << 14, t |= (s[e + 2] & 127) << 7, t |= s[e + 3] & 127, t;
|
|
4912
4912
|
}, Eo = (s, e) => is(s, e) && ii(s, e + 6) + 10 <= s.length - e, ss = (s) => {
|
|
4913
|
-
const e =
|
|
4913
|
+
const e = dn(s);
|
|
4914
4914
|
for (let t = 0; t < e.length; t++) {
|
|
4915
4915
|
const i = e[t];
|
|
4916
|
-
if (
|
|
4917
|
-
return
|
|
4916
|
+
if (hn(i))
|
|
4917
|
+
return _o(i);
|
|
4918
4918
|
}
|
|
4919
|
-
},
|
|
4919
|
+
}, hn = (s) => s && s.key === "PRIV" && s.info === "com.apple.streaming.transportStreamTimestamp", So = (s) => {
|
|
4920
4920
|
const e = String.fromCharCode(s[0], s[1], s[2], s[3]), t = ii(s, 4), i = 10;
|
|
4921
4921
|
return {
|
|
4922
4922
|
type: e,
|
|
4923
4923
|
size: t,
|
|
4924
4924
|
data: s.subarray(i, i + t)
|
|
4925
4925
|
};
|
|
4926
|
-
},
|
|
4926
|
+
}, dn = (s) => {
|
|
4927
4927
|
let e = 0;
|
|
4928
4928
|
const t = [];
|
|
4929
4929
|
for (; is(s, e); ) {
|
|
@@ -4934,7 +4934,7 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
4934
4934
|
const n = So(s.subarray(e)), a = bo(n);
|
|
4935
4935
|
a && t.push(a), e += n.size + 10;
|
|
4936
4936
|
}
|
|
4937
|
-
|
|
4937
|
+
un(s, e) && (e += 10);
|
|
4938
4938
|
}
|
|
4939
4939
|
return t;
|
|
4940
4940
|
}, bo = (s) => s.type === "PRIV" ? Ao(s) : s.type[0] === "W" ? Ro(s) : Lo(s), Ao = (s) => {
|
|
@@ -4984,14 +4984,14 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
4984
4984
|
key: s.type,
|
|
4985
4985
|
data: e
|
|
4986
4986
|
};
|
|
4987
|
-
},
|
|
4987
|
+
}, _o = (s) => {
|
|
4988
4988
|
if (s.data.byteLength === 8) {
|
|
4989
4989
|
const e = new Uint8Array(s.data), t = e[3] & 1;
|
|
4990
4990
|
let i = (e[4] << 23) + (e[5] << 15) + (e[6] << 7) + e[7];
|
|
4991
4991
|
return i /= 45, t && (i += 4772185884e-2), Math.round(i);
|
|
4992
4992
|
}
|
|
4993
4993
|
}, Ne = (s, e = !1) => {
|
|
4994
|
-
const t =
|
|
4994
|
+
const t = Co();
|
|
4995
4995
|
if (t) {
|
|
4996
4996
|
const c = t.decode(s);
|
|
4997
4997
|
if (e) {
|
|
@@ -5030,7 +5030,7 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
5030
5030
|
return o;
|
|
5031
5031
|
};
|
|
5032
5032
|
let li;
|
|
5033
|
-
function
|
|
5033
|
+
function Co() {
|
|
5034
5034
|
if (!navigator.userAgent.includes("PlayStation 4"))
|
|
5035
5035
|
return !li && typeof self.TextDecoder != "undefined" && (li = new self.TextDecoder("utf-8")), li;
|
|
5036
5036
|
}
|
|
@@ -5043,7 +5043,7 @@ const we = {
|
|
|
5043
5043
|
}
|
|
5044
5044
|
return e;
|
|
5045
5045
|
}
|
|
5046
|
-
}, Gt = Math.pow(2, 32) - 1, Do = [].push,
|
|
5046
|
+
}, Gt = Math.pow(2, 32) - 1, Do = [].push, fn = {
|
|
5047
5047
|
video: 1,
|
|
5048
5048
|
audio: 2,
|
|
5049
5049
|
id3: 3,
|
|
@@ -5052,19 +5052,19 @@ const we = {
|
|
|
5052
5052
|
function le(s) {
|
|
5053
5053
|
return String.fromCharCode.apply(null, s);
|
|
5054
5054
|
}
|
|
5055
|
-
function
|
|
5055
|
+
function mn(s, e) {
|
|
5056
5056
|
const t = s[e] << 8 | s[e + 1];
|
|
5057
5057
|
return t < 0 ? 65536 + t : t;
|
|
5058
5058
|
}
|
|
5059
5059
|
function z(s, e) {
|
|
5060
|
-
const t =
|
|
5060
|
+
const t = gn(s, e);
|
|
5061
5061
|
return t < 0 ? 4294967296 + t : t;
|
|
5062
5062
|
}
|
|
5063
5063
|
function bs(s, e) {
|
|
5064
5064
|
let t = z(s, e);
|
|
5065
5065
|
return t *= Math.pow(2, 32), t += z(s, e + 4), t;
|
|
5066
5066
|
}
|
|
5067
|
-
function
|
|
5067
|
+
function gn(s, e) {
|
|
5068
5068
|
return s[e] << 24 | s[e + 1] << 16 | s[e + 2] << 8 | s[e + 3];
|
|
5069
5069
|
}
|
|
5070
5070
|
function ci(s, e, t) {
|
|
@@ -5106,7 +5106,7 @@ function wo(s) {
|
|
|
5106
5106
|
let n = 0, a = 0;
|
|
5107
5107
|
t === 0 ? (n = z(s, i), a = z(s, i + 4), i += 8) : (n = bs(s, i), a = bs(s, i + 8), i += 16), i += 2;
|
|
5108
5108
|
let o = s.length + a;
|
|
5109
|
-
const l =
|
|
5109
|
+
const l = mn(s, i);
|
|
5110
5110
|
i += 2;
|
|
5111
5111
|
for (let c = 0; c < l; c++) {
|
|
5112
5112
|
let u = i;
|
|
@@ -5135,7 +5135,7 @@ function wo(s) {
|
|
|
5135
5135
|
references: e
|
|
5136
5136
|
};
|
|
5137
5137
|
}
|
|
5138
|
-
function
|
|
5138
|
+
function pn(s) {
|
|
5139
5139
|
const e = [], t = X(s, ["moov", "trak"]);
|
|
5140
5140
|
for (let r = 0; r < t.length; r++) {
|
|
5141
5141
|
const n = t[r], a = X(n, ["tkhd"])[0];
|
|
@@ -5280,7 +5280,7 @@ function Po(s, e) {
|
|
|
5280
5280
|
l || (o = X(a, ["encv"])), o.forEach((c) => {
|
|
5281
5281
|
const u = l ? c.subarray(28) : c.subarray(78);
|
|
5282
5282
|
X(u, ["sinf"]).forEach((d) => {
|
|
5283
|
-
const f =
|
|
5283
|
+
const f = yn(d);
|
|
5284
5284
|
if (f) {
|
|
5285
5285
|
const m = f.subarray(8, 24);
|
|
5286
5286
|
m.some((g) => g !== 0) || (S.log(`[eme] Patching keyId in 'enc${l ? "a" : "v"}>sinf>>tenc' box: ${we.hexDump(m)} -> ${we.hexDump(t)}`), f.set(t, 8));
|
|
@@ -5289,7 +5289,7 @@ function Po(s, e) {
|
|
|
5289
5289
|
});
|
|
5290
5290
|
}), s;
|
|
5291
5291
|
}
|
|
5292
|
-
function
|
|
5292
|
+
function yn(s) {
|
|
5293
5293
|
const e = X(s, ["schm"])[0];
|
|
5294
5294
|
if (e) {
|
|
5295
5295
|
const t = le(e.subarray(4, 8));
|
|
@@ -5424,7 +5424,7 @@ function As(s, e) {
|
|
|
5424
5424
|
const k = (g & 32) !== 0;
|
|
5425
5425
|
let R = 8;
|
|
5426
5426
|
m === n && (y && (R += 8), v && (R += 4), T && (x = z(f, R), R += 4), L && (E = z(f, R), R += 4), k && (R += 4), e.type === "video" && (a = $o(e.codec)), X(h, ["trun"]).map((B) => {
|
|
5427
|
-
const
|
|
5427
|
+
const _ = B[0], b = z(B, 0) & 16777215, C = (b & 1) !== 0;
|
|
5428
5428
|
let P = 0;
|
|
5429
5429
|
const w = (b & 4) !== 0, $ = (b & 256) !== 0;
|
|
5430
5430
|
let O = 0;
|
|
@@ -5434,16 +5434,16 @@ function As(s, e) {
|
|
|
5434
5434
|
let M = 0;
|
|
5435
5435
|
const Q = z(B, 4);
|
|
5436
5436
|
let Z = 8;
|
|
5437
|
-
|
|
5437
|
+
C && (P = z(B, Z), Z += 4), w && (Z += 4);
|
|
5438
5438
|
let ee = P + c;
|
|
5439
5439
|
for (let ae = 0; ae < Q; ae++) {
|
|
5440
|
-
if ($ ? (O = z(B, Z), Z += 4) : O = x, U ? (F = z(B, Z), Z += 4) : F = E, V && (Z += 4), H && (
|
|
5440
|
+
if ($ ? (O = z(B, Z), Z += 4) : O = x, U ? (F = z(B, Z), Z += 4) : F = E, V && (Z += 4), H && (_ === 0 ? M = z(B, Z) : M = gn(B, Z), Z += 4), e.type === te.VIDEO) {
|
|
5441
5441
|
let ce = 0;
|
|
5442
5442
|
for (; ce < F; ) {
|
|
5443
5443
|
const fe = z(i, ee);
|
|
5444
5444
|
if (ee += 4, Uo(a, i[ee])) {
|
|
5445
5445
|
const Se = i.subarray(ee, ee + fe);
|
|
5446
|
-
|
|
5446
|
+
vn(Se, a ? 2 : 1, s + M / r, t);
|
|
5447
5447
|
}
|
|
5448
5448
|
ee += fe, ce += fe + 4;
|
|
5449
5449
|
}
|
|
@@ -5469,8 +5469,8 @@ function Uo(s, e) {
|
|
|
5469
5469
|
} else
|
|
5470
5470
|
return (e & 31) === 6;
|
|
5471
5471
|
}
|
|
5472
|
-
function
|
|
5473
|
-
const r =
|
|
5472
|
+
function vn(s, e, t, i) {
|
|
5473
|
+
const r = xn(s);
|
|
5474
5474
|
let n = 0;
|
|
5475
5475
|
n += e;
|
|
5476
5476
|
let a = 0, o = 0, l = 0;
|
|
@@ -5497,7 +5497,7 @@ function yn(s, e, t, i) {
|
|
|
5497
5497
|
}
|
|
5498
5498
|
if (a === 4) {
|
|
5499
5499
|
if (r[u++] === 181) {
|
|
5500
|
-
const d =
|
|
5500
|
+
const d = mn(r, u);
|
|
5501
5501
|
if (u += 2, d === 49) {
|
|
5502
5502
|
const f = z(r, u);
|
|
5503
5503
|
if (u += 4, f === 1195456820) {
|
|
@@ -5538,7 +5538,7 @@ function yn(s, e, t, i) {
|
|
|
5538
5538
|
}
|
|
5539
5539
|
}
|
|
5540
5540
|
}
|
|
5541
|
-
function
|
|
5541
|
+
function xn(s) {
|
|
5542
5542
|
const e = s.byteLength, t = [];
|
|
5543
5543
|
let i = 1;
|
|
5544
5544
|
for (; i < e - 2; )
|
|
@@ -5666,10 +5666,10 @@ class Tt {
|
|
|
5666
5666
|
if (this.keyFormat === "identity")
|
|
5667
5667
|
return this.method === "SAMPLE-AES";
|
|
5668
5668
|
switch (this.keyFormat) {
|
|
5669
|
-
case
|
|
5670
|
-
case
|
|
5671
|
-
case
|
|
5672
|
-
case
|
|
5669
|
+
case Te.FAIRPLAY:
|
|
5670
|
+
case Te.WIDEVINE:
|
|
5671
|
+
case Te.PLAYREADY:
|
|
5672
|
+
case Te.CLEARKEY:
|
|
5673
5673
|
return ["ISO-23001-7", "SAMPLE-AES", "SAMPLE-AES-CENC", "SAMPLE-AES-CTR"].indexOf(this.method) !== -1;
|
|
5674
5674
|
}
|
|
5675
5675
|
}
|
|
@@ -5686,10 +5686,10 @@ class Tt {
|
|
|
5686
5686
|
const t = yo(this.uri);
|
|
5687
5687
|
if (t)
|
|
5688
5688
|
switch (this.keyFormat) {
|
|
5689
|
-
case
|
|
5689
|
+
case Te.WIDEVINE:
|
|
5690
5690
|
this.pssh = t, t.length >= 22 && (this.keyId = t.subarray(t.length - 22, t.length - 6));
|
|
5691
5691
|
break;
|
|
5692
|
-
case
|
|
5692
|
+
case Te.PLAYREADY: {
|
|
5693
5693
|
const i = new Uint8Array([154, 4, 240, 121, 152, 64, 66, 134, 171, 146, 230, 91, 224, 136, 95, 149]);
|
|
5694
5694
|
this.pssh = Vo(i, null, t);
|
|
5695
5695
|
const r = new Uint16Array(t.buffer, t.byteOffset, t.byteLength / 2), n = String.fromCharCode.apply(null, Array.from(r)), a = n.substring(n.indexOf("<"), n.length), c = new DOMParser().parseFromString(a, "text/xml").getElementsByTagName("KID")[0];
|
|
@@ -5729,11 +5729,11 @@ function Wo(s) {
|
|
|
5729
5729
|
e[t] = s >> 8 * (15 - t) & 255;
|
|
5730
5730
|
return e;
|
|
5731
5731
|
}
|
|
5732
|
-
const
|
|
5732
|
+
const Tn = /\{\$([a-zA-Z0-9-_]+)\}/g;
|
|
5733
5733
|
function Ls(s) {
|
|
5734
|
-
return
|
|
5734
|
+
return Tn.test(s);
|
|
5735
5735
|
}
|
|
5736
|
-
function
|
|
5736
|
+
function xe(s, e, t) {
|
|
5737
5737
|
if (s.variableList !== null || s.hasVariableRefs)
|
|
5738
5738
|
for (let i = t.length; i--; ) {
|
|
5739
5739
|
const r = t[i], n = e[r];
|
|
@@ -5743,7 +5743,7 @@ function ve(s, e, t) {
|
|
|
5743
5743
|
function Oi(s, e) {
|
|
5744
5744
|
if (s.variableList !== null || s.hasVariableRefs) {
|
|
5745
5745
|
const t = s.variableList;
|
|
5746
|
-
return e.replace(
|
|
5746
|
+
return e.replace(Tn, (i) => {
|
|
5747
5747
|
const r = i.substring(2, i.length - 1), n = t == null ? void 0 : t[r];
|
|
5748
5748
|
return n === void 0 ? (s.playlistParsingError || (s.playlistParsingError = new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)), i) : n;
|
|
5749
5749
|
});
|
|
@@ -5863,9 +5863,9 @@ function Yo(s, e) {
|
|
|
5863
5863
|
return !!t && !!t[s.slice(0, 4)];
|
|
5864
5864
|
}
|
|
5865
5865
|
function hi(s, e, t = !0) {
|
|
5866
|
-
return !s.split(",").some((i) => !
|
|
5866
|
+
return !s.split(",").some((i) => !En(i, e, t));
|
|
5867
5867
|
}
|
|
5868
|
-
function
|
|
5868
|
+
function En(s, e, t = !0) {
|
|
5869
5869
|
var i;
|
|
5870
5870
|
const r = dt(t);
|
|
5871
5871
|
return (i = r == null ? void 0 : r.isTypeSupported(Et(s, e))) != null ? i : !1;
|
|
@@ -5873,7 +5873,7 @@ function Tn(s, e, t = !0) {
|
|
|
5873
5873
|
function Et(s, e) {
|
|
5874
5874
|
return `${e}/mp4;codecs="${s}"`;
|
|
5875
5875
|
}
|
|
5876
|
-
function
|
|
5876
|
+
function _s(s) {
|
|
5877
5877
|
if (s) {
|
|
5878
5878
|
const e = s.substring(0, 4);
|
|
5879
5879
|
return Ht.video[e];
|
|
@@ -5895,7 +5895,7 @@ function jo(s, e = !0) {
|
|
|
5895
5895
|
opus: ["opus", "Opus"]
|
|
5896
5896
|
}[s];
|
|
5897
5897
|
for (let i = 0; i < t.length; i++)
|
|
5898
|
-
if (
|
|
5898
|
+
if (En(t[i], "audio", e))
|
|
5899
5899
|
return di[s] = t[i], t[i];
|
|
5900
5900
|
return s;
|
|
5901
5901
|
}
|
|
@@ -5903,7 +5903,7 @@ const qo = /flac|opus/i;
|
|
|
5903
5903
|
function Kt(s, e = !0) {
|
|
5904
5904
|
return s.replace(qo, (t) => jo(t.toLowerCase(), e));
|
|
5905
5905
|
}
|
|
5906
|
-
function
|
|
5906
|
+
function Cs(s, e) {
|
|
5907
5907
|
return s && s !== "mp4a" ? s : e;
|
|
5908
5908
|
}
|
|
5909
5909
|
function Xo(s) {
|
|
@@ -5959,7 +5959,7 @@ class Oe {
|
|
|
5959
5959
|
if (a[1]) {
|
|
5960
5960
|
var o;
|
|
5961
5961
|
const c = new ne(a[1]);
|
|
5962
|
-
|
|
5962
|
+
xe(r, c, ["CODECS", "SUPPLEMENTAL-CODECS", "ALLOWED-CPC", "PATHWAY-ID", "STABLE-VARIANT-ID", "AUDIO", "VIDEO", "SUBTITLES", "CLOSED-CAPTIONS", "NAME"]);
|
|
5963
5963
|
const u = Oi(r, a[2]), h = {
|
|
5964
5964
|
attrs: c,
|
|
5965
5965
|
bitrate: c.decimalInteger("BANDWIDTH") || c.decimalInteger("AVERAGE-BANDWIDTH"),
|
|
@@ -5972,7 +5972,7 @@ class Oe {
|
|
|
5972
5972
|
switch (c) {
|
|
5973
5973
|
case "SESSION-DATA": {
|
|
5974
5974
|
const h = new ne(u);
|
|
5975
|
-
|
|
5975
|
+
xe(r, h, ["DATA-ID", "LANGUAGE", "VALUE", "URI"]);
|
|
5976
5976
|
const d = h["DATA-ID"];
|
|
5977
5977
|
d && (r.sessionData === null && (r.sessionData = {}), r.sessionData[d] = h);
|
|
5978
5978
|
break;
|
|
@@ -5985,13 +5985,13 @@ class Oe {
|
|
|
5985
5985
|
case "DEFINE": {
|
|
5986
5986
|
{
|
|
5987
5987
|
const h = new ne(u);
|
|
5988
|
-
|
|
5988
|
+
xe(r, h, ["NAME", "VALUE", "QUERYPARAM"]), Rs(r, h, t);
|
|
5989
5989
|
}
|
|
5990
5990
|
break;
|
|
5991
5991
|
}
|
|
5992
5992
|
case "CONTENT-STEERING": {
|
|
5993
5993
|
const h = new ne(u);
|
|
5994
|
-
|
|
5994
|
+
xe(r, h, ["SERVER-URI", "PATHWAY-ID"]), r.contentSteering = {
|
|
5995
5995
|
uri: Oe.resolve(h["SERVER-URI"], t),
|
|
5996
5996
|
pathwayId: h["PATHWAY-ID"] || "."
|
|
5997
5997
|
};
|
|
@@ -6024,7 +6024,7 @@ class Oe {
|
|
|
6024
6024
|
const c = new ne(r[1]), u = c.TYPE;
|
|
6025
6025
|
if (u) {
|
|
6026
6026
|
const h = o[u], d = n[u] || [];
|
|
6027
|
-
n[u] = d,
|
|
6027
|
+
n[u] = d, xe(i, c, ["URI", "GROUP-ID", "LANGUAGE", "ASSOC-LANGUAGE", "STABLE-RENDITION-ID", "NAME", "INSTREAM-ID", "CHARACTERISTICS", "CHANNELS"]);
|
|
6028
6028
|
const f = c.LANGUAGE, m = c["ASSOC-LANGUAGE"], g = c.CHANNELS, y = c.CHARACTERISTICS, v = c["INSTREAM-ID"], T = {
|
|
6029
6029
|
attrs: c,
|
|
6030
6030
|
bitrate: 0,
|
|
@@ -6052,11 +6052,11 @@ class Oe {
|
|
|
6052
6052
|
let c = null, u = 0, h = 0, d = 0, f = 0, m = null, g = new ai(r, t), y, v, T, x = -1, L = !1, E = null;
|
|
6053
6053
|
for (ws.lastIndex = 0, o.m3u8 = e, o.hasVariableRefs = Ls(e); (y = ws.exec(e)) !== null; ) {
|
|
6054
6054
|
L && (L = !1, g = new ai(r, t), g.start = d, g.sn = u, g.cc = f, g.level = i, c && (g.initSegment = c, g.rawProgramDateTime = c.rawProgramDateTime, c.rawProgramDateTime = null, E && (g.setByteRange(E), E = null)));
|
|
6055
|
-
const
|
|
6056
|
-
if (
|
|
6057
|
-
g.duration = parseFloat(
|
|
6055
|
+
const _ = y[1];
|
|
6056
|
+
if (_) {
|
|
6057
|
+
g.duration = parseFloat(_);
|
|
6058
6058
|
const b = (" " + y[2]).slice(1);
|
|
6059
|
-
g.title = b || null, g.tagList.push(b ? ["INF",
|
|
6059
|
+
g.title = b || null, g.tagList.push(b ? ["INF", _, b] : ["INF", _]);
|
|
6060
6060
|
} else if (y[3]) {
|
|
6061
6061
|
if (W(g.duration)) {
|
|
6062
6062
|
g.start = d, T && Ns(g, T, o), g.sn = u, g.level = i, g.cc = f, l.push(g);
|
|
@@ -6075,17 +6075,17 @@ class Oe {
|
|
|
6075
6075
|
}
|
|
6076
6076
|
for (v = 1; v < y.length && typeof y[v] == "undefined"; v++)
|
|
6077
6077
|
;
|
|
6078
|
-
const b = (" " + y[v]).slice(1),
|
|
6078
|
+
const b = (" " + y[v]).slice(1), C = (" " + y[v + 1]).slice(1), P = y[v + 2] ? (" " + y[v + 2]).slice(1) : "";
|
|
6079
6079
|
switch (b) {
|
|
6080
6080
|
case "PLAYLIST-TYPE":
|
|
6081
|
-
o.type =
|
|
6081
|
+
o.type = C.toUpperCase();
|
|
6082
6082
|
break;
|
|
6083
6083
|
case "MEDIA-SEQUENCE":
|
|
6084
|
-
u = o.startSN = parseInt(
|
|
6084
|
+
u = o.startSN = parseInt(C);
|
|
6085
6085
|
break;
|
|
6086
6086
|
case "SKIP": {
|
|
6087
|
-
const w = new ne(
|
|
6088
|
-
|
|
6087
|
+
const w = new ne(C);
|
|
6088
|
+
xe(o, w, ["RECENTLY-REMOVED-DATERANGES"]);
|
|
6089
6089
|
const $ = w.decimalInteger("SKIPPED-SEGMENTS");
|
|
6090
6090
|
if (W($)) {
|
|
6091
6091
|
o.skippedSegments = $;
|
|
@@ -6098,10 +6098,10 @@ class Oe {
|
|
|
6098
6098
|
break;
|
|
6099
6099
|
}
|
|
6100
6100
|
case "TARGETDURATION":
|
|
6101
|
-
o.targetduration = Math.max(parseInt(
|
|
6101
|
+
o.targetduration = Math.max(parseInt(C), 1);
|
|
6102
6102
|
break;
|
|
6103
6103
|
case "VERSION":
|
|
6104
|
-
o.version = parseInt(
|
|
6104
|
+
o.version = parseInt(C);
|
|
6105
6105
|
break;
|
|
6106
6106
|
case "INDEPENDENT-SEGMENTS":
|
|
6107
6107
|
case "EXTM3U":
|
|
@@ -6110,7 +6110,7 @@ class Oe {
|
|
|
6110
6110
|
o.live = !1;
|
|
6111
6111
|
break;
|
|
6112
6112
|
case "#":
|
|
6113
|
-
(
|
|
6113
|
+
(C || P) && g.tagList.push(P ? [C, P] : [C]);
|
|
6114
6114
|
break;
|
|
6115
6115
|
case "DISCONTINUITY":
|
|
6116
6116
|
f++, g.tagList.push(["DIS"]);
|
|
@@ -6119,27 +6119,27 @@ class Oe {
|
|
|
6119
6119
|
g.gap = !0, g.tagList.push([b]);
|
|
6120
6120
|
break;
|
|
6121
6121
|
case "BITRATE":
|
|
6122
|
-
g.tagList.push([b,
|
|
6122
|
+
g.tagList.push([b, C]);
|
|
6123
6123
|
break;
|
|
6124
6124
|
case "DATERANGE": {
|
|
6125
|
-
const w = new ne(
|
|
6126
|
-
|
|
6127
|
-
const $ = new
|
|
6128
|
-
$.isValid || o.skippedSegments ? o.dateRanges[$.id] = $ : S.warn(`Ignoring invalid DATERANGE tag: "${
|
|
6125
|
+
const w = new ne(C);
|
|
6126
|
+
xe(o, w, ["ID", "CLASS", "START-DATE", "END-DATE", "SCTE35-CMD", "SCTE35-OUT", "SCTE35-IN"]), xe(o, w, w.clientAttrs);
|
|
6127
|
+
const $ = new an(w, o.dateRanges[w.ID]);
|
|
6128
|
+
$.isValid || o.skippedSegments ? o.dateRanges[$.id] = $ : S.warn(`Ignoring invalid DATERANGE tag: "${C}"`), g.tagList.push(["EXT-X-DATERANGE", C]);
|
|
6129
6129
|
break;
|
|
6130
6130
|
}
|
|
6131
6131
|
case "DEFINE": {
|
|
6132
6132
|
{
|
|
6133
|
-
const w = new ne(
|
|
6134
|
-
|
|
6133
|
+
const w = new ne(C);
|
|
6134
|
+
xe(o, w, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in w ? zo(o, w, a) : Rs(o, w, t);
|
|
6135
6135
|
}
|
|
6136
6136
|
break;
|
|
6137
6137
|
}
|
|
6138
6138
|
case "DISCONTINUITY-SEQUENCE":
|
|
6139
|
-
f = parseInt(
|
|
6139
|
+
f = parseInt(C);
|
|
6140
6140
|
break;
|
|
6141
6141
|
case "KEY": {
|
|
6142
|
-
const w = ks(
|
|
6142
|
+
const w = ks(C, t, o);
|
|
6143
6143
|
if (w.isSupported()) {
|
|
6144
6144
|
if (w.method === "NONE") {
|
|
6145
6145
|
T = void 0;
|
|
@@ -6147,15 +6147,15 @@ class Oe {
|
|
|
6147
6147
|
}
|
|
6148
6148
|
T || (T = {}), T[w.keyFormat] && (T = oe({}, T)), T[w.keyFormat] = w;
|
|
6149
6149
|
} else
|
|
6150
|
-
S.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${
|
|
6150
|
+
S.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${C}"`);
|
|
6151
6151
|
break;
|
|
6152
6152
|
}
|
|
6153
6153
|
case "START":
|
|
6154
|
-
o.startTimeOffset = Ps(
|
|
6154
|
+
o.startTimeOffset = Ps(C);
|
|
6155
6155
|
break;
|
|
6156
6156
|
case "MAP": {
|
|
6157
|
-
const w = new ne(
|
|
6158
|
-
if (
|
|
6157
|
+
const w = new ne(C);
|
|
6158
|
+
if (xe(o, w, ["BYTERANGE", "URI"]), g.duration) {
|
|
6159
6159
|
const $ = new ai(r, t);
|
|
6160
6160
|
Ms($, w, i, T), c = $, g.initSegment = c, c.rawProgramDateTime && !g.rawProgramDateTime && (g.rawProgramDateTime = c.rawProgramDateTime);
|
|
6161
6161
|
} else {
|
|
@@ -6170,32 +6170,32 @@ class Oe {
|
|
|
6170
6170
|
break;
|
|
6171
6171
|
}
|
|
6172
6172
|
case "SERVER-CONTROL": {
|
|
6173
|
-
const w = new ne(
|
|
6173
|
+
const w = new ne(C);
|
|
6174
6174
|
o.canBlockReload = w.bool("CAN-BLOCK-RELOAD"), o.canSkipUntil = w.optionalFloat("CAN-SKIP-UNTIL", 0), o.canSkipDateRanges = o.canSkipUntil > 0 && w.bool("CAN-SKIP-DATERANGES"), o.partHoldBack = w.optionalFloat("PART-HOLD-BACK", 0), o.holdBack = w.optionalFloat("HOLD-BACK", 0);
|
|
6175
6175
|
break;
|
|
6176
6176
|
}
|
|
6177
6177
|
case "PART-INF": {
|
|
6178
|
-
const w = new ne(
|
|
6178
|
+
const w = new ne(C);
|
|
6179
6179
|
o.partTarget = w.decimalFloatingPoint("PART-TARGET");
|
|
6180
6180
|
break;
|
|
6181
6181
|
}
|
|
6182
6182
|
case "PART": {
|
|
6183
6183
|
let w = o.partList;
|
|
6184
6184
|
w || (w = o.partList = []);
|
|
6185
|
-
const $ = h > 0 ? w[w.length - 1] : void 0, O = h++, U = new ne(
|
|
6186
|
-
|
|
6185
|
+
const $ = h > 0 ? w[w.length - 1] : void 0, O = h++, U = new ne(C);
|
|
6186
|
+
xe(o, U, ["BYTERANGE", "URI"]);
|
|
6187
6187
|
const F = new ho(U, g, t, O, $);
|
|
6188
6188
|
w.push(F), g.duration += F.duration;
|
|
6189
6189
|
break;
|
|
6190
6190
|
}
|
|
6191
6191
|
case "PRELOAD-HINT": {
|
|
6192
|
-
const w = new ne(
|
|
6193
|
-
|
|
6192
|
+
const w = new ne(C);
|
|
6193
|
+
xe(o, w, ["URI"]), o.preloadHint = w;
|
|
6194
6194
|
break;
|
|
6195
6195
|
}
|
|
6196
6196
|
case "RENDITION-REPORT": {
|
|
6197
|
-
const w = new ne(
|
|
6198
|
-
|
|
6197
|
+
const w = new ne(C);
|
|
6198
|
+
xe(o, w, ["URI"]), o.renditionReports = o.renditionReports || [], o.renditionReports.push(w);
|
|
6199
6199
|
break;
|
|
6200
6200
|
}
|
|
6201
6201
|
default:
|
|
@@ -6208,8 +6208,8 @@ class Oe {
|
|
|
6208
6208
|
const k = l.length, R = l[0], B = l[k - 1];
|
|
6209
6209
|
if (d += o.skippedSegments * o.targetduration, d > 0 && k && B) {
|
|
6210
6210
|
o.averagetargetduration = d / k;
|
|
6211
|
-
const
|
|
6212
|
-
o.endSN =
|
|
6211
|
+
const _ = B.sn;
|
|
6212
|
+
o.endSN = _ !== "initSegment" ? _ : 0, o.live || (B.endList = !0), R && (o.startCC = R.cc);
|
|
6213
6213
|
} else
|
|
6214
6214
|
o.endSN = 0, o.startCC = 0;
|
|
6215
6215
|
return o.fragmentHint && (d += o.fragmentHint.duration), o.totalduration = d, o.endCC = f, x > 0 && el(l, x), o;
|
|
@@ -6218,7 +6218,7 @@ class Oe {
|
|
|
6218
6218
|
function ks(s, e, t) {
|
|
6219
6219
|
var i, r;
|
|
6220
6220
|
const n = new ne(s);
|
|
6221
|
-
|
|
6221
|
+
xe(t, n, ["KEYFORMAT", "KEYFORMATVERSIONS", "URI", "IV", "URI"]);
|
|
6222
6222
|
const a = (i = n.METHOD) != null ? i : "", o = n.URI, l = n.hexadecimalInteger("IV"), c = n.KEYFORMATVERSIONS, u = (r = n.KEYFORMAT) != null ? r : "identity";
|
|
6223
6223
|
o && n.IV && !l && S.error(`Invalid IV: ${n.IV}`);
|
|
6224
6224
|
const h = o ? Oe.resolve(o, e) : "", d = (c || "1").split("/").map(Number).filter(Number.isFinite);
|
|
@@ -6666,7 +6666,7 @@ class tl {
|
|
|
6666
6666
|
}
|
|
6667
6667
|
}
|
|
6668
6668
|
}
|
|
6669
|
-
function
|
|
6669
|
+
function Sn(s, e) {
|
|
6670
6670
|
let t;
|
|
6671
6671
|
try {
|
|
6672
6672
|
t = new Event("addtrack");
|
|
@@ -6675,7 +6675,7 @@ function En(s, e) {
|
|
|
6675
6675
|
}
|
|
6676
6676
|
t.track = s, e.dispatchEvent(t);
|
|
6677
6677
|
}
|
|
6678
|
-
function
|
|
6678
|
+
function bn(s, e) {
|
|
6679
6679
|
const t = s.mode;
|
|
6680
6680
|
if (t === "disabled" && (s.mode = "hidden"), s.cues && !s.cues.getCueById(e.id))
|
|
6681
6681
|
try {
|
|
@@ -6820,7 +6820,7 @@ class al {
|
|
|
6820
6820
|
for (let t = 0; t < e.length; t++) {
|
|
6821
6821
|
const i = e[t];
|
|
6822
6822
|
if (i.kind === "metadata" && i.label === "id3")
|
|
6823
|
-
return
|
|
6823
|
+
return Sn(i, this.media), i;
|
|
6824
6824
|
}
|
|
6825
6825
|
return this.media.addTextTrack("metadata", "id3");
|
|
6826
6826
|
}
|
|
@@ -6848,14 +6848,14 @@ class al {
|
|
|
6848
6848
|
const l = n[o].type;
|
|
6849
6849
|
if (l === De.emsg && !i || !r)
|
|
6850
6850
|
continue;
|
|
6851
|
-
const c =
|
|
6851
|
+
const c = dn(n[o].data);
|
|
6852
6852
|
if (c) {
|
|
6853
6853
|
const u = n[o].pts;
|
|
6854
6854
|
let h = u + n[o].duration;
|
|
6855
6855
|
h > At && (h = At), h - u <= 0 && (h = u + rl);
|
|
6856
6856
|
for (let f = 0; f < c.length; f++) {
|
|
6857
6857
|
const m = c[f];
|
|
6858
|
-
if (!
|
|
6858
|
+
if (!hn(m)) {
|
|
6859
6859
|
this.updateId3CueEnds(u, l);
|
|
6860
6860
|
const g = $s(a, u, h, m, l);
|
|
6861
6861
|
g && this.id3Track.addCue(g);
|
|
@@ -7210,7 +7210,7 @@ function gi(s, e) {
|
|
|
7210
7210
|
} else
|
|
7211
7211
|
e.sn > s.sn ? s.cc === e.cc && s.minEndPTS ? e.start = s.start + (s.minEndPTS - s.start) : e.start = s.start + s.duration : e.start = Math.max(s.start - e.duration, 0);
|
|
7212
7212
|
}
|
|
7213
|
-
function
|
|
7213
|
+
function An(s, e, t, i, r, n) {
|
|
7214
7214
|
i - t <= 0 && (S.warn("Fragment should have a positive duration", e), i = t + e.duration, n = r + e.duration);
|
|
7215
7215
|
let o = t, l = i;
|
|
7216
7216
|
const c = e.startPTS, u = e.endPTS;
|
|
@@ -7264,7 +7264,7 @@ function hl(s, e) {
|
|
|
7264
7264
|
}
|
|
7265
7265
|
e.skippedSegments && (e.startCC = e.fragments[0].cc), fl(s.partList, e.partList, (l, c) => {
|
|
7266
7266
|
c.elementaryStreams = l.elementaryStreams, c.stats = l.stats;
|
|
7267
|
-
}), n ?
|
|
7267
|
+
}), n ? An(e, n, n.startPTS, n.endPTS, n.startDTS, n.endDTS) : Ln(s, e), a.length && (e.totalduration = e.edge - a[0].start), e.driftStartTime = s.driftStartTime, e.driftStart = s.driftStart;
|
|
7268
7268
|
const o = e.advancedDateTime;
|
|
7269
7269
|
if (e.advanced && o) {
|
|
7270
7270
|
const l = e.edge;
|
|
@@ -7277,7 +7277,7 @@ function dl(s, e, t) {
|
|
|
7277
7277
|
return t && t.forEach((r) => {
|
|
7278
7278
|
delete i[r];
|
|
7279
7279
|
}), Object.keys(e).forEach((r) => {
|
|
7280
|
-
const n = new
|
|
7280
|
+
const n = new an(e[r].attr, i[r]);
|
|
7281
7281
|
n.isValid ? i[r] = n : S.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[r].attr)}"`);
|
|
7282
7282
|
}), i;
|
|
7283
7283
|
}
|
|
@@ -7298,7 +7298,7 @@ function ml(s, e, t) {
|
|
|
7298
7298
|
i && !h && c < i && (h = e.fragments[c] = u), u && h && t(u, h);
|
|
7299
7299
|
}
|
|
7300
7300
|
}
|
|
7301
|
-
function
|
|
7301
|
+
function Ln(s, e) {
|
|
7302
7302
|
const t = e.startSN + e.skippedSegments - s.startSN, i = s.fragments;
|
|
7303
7303
|
t < 0 || t >= i.length || Bi(e, i[t].start);
|
|
7304
7304
|
}
|
|
@@ -7331,9 +7331,9 @@ function pl(s, e, t) {
|
|
|
7331
7331
|
}
|
|
7332
7332
|
function Hs(s, e, t) {
|
|
7333
7333
|
var i;
|
|
7334
|
-
return s != null && s.details ?
|
|
7334
|
+
return s != null && s.details ? Rn((i = s.details) == null ? void 0 : i.partList, e, t) : null;
|
|
7335
7335
|
}
|
|
7336
|
-
function
|
|
7336
|
+
function Rn(s, e, t) {
|
|
7337
7337
|
if (s)
|
|
7338
7338
|
for (let i = s.length; i--; ) {
|
|
7339
7339
|
const r = s[i];
|
|
@@ -7342,7 +7342,7 @@ function Ln(s, e, t) {
|
|
|
7342
7342
|
}
|
|
7343
7343
|
return null;
|
|
7344
7344
|
}
|
|
7345
|
-
function
|
|
7345
|
+
function _n(s) {
|
|
7346
7346
|
s.forEach((e, t) => {
|
|
7347
7347
|
const {
|
|
7348
7348
|
details: i
|
|
@@ -7466,7 +7466,7 @@ var me = {
|
|
|
7466
7466
|
RemoveAlternatePermanently: 3,
|
|
7467
7467
|
InsertDiscontinuity: 4,
|
|
7468
7468
|
RetryRequest: 5
|
|
7469
|
-
},
|
|
7469
|
+
}, _e = {
|
|
7470
7470
|
None: 0,
|
|
7471
7471
|
MoveAllAlternatesMatchingHost: 1,
|
|
7472
7472
|
MoveAllAlternatesMatchingHDCP: 2,
|
|
@@ -7517,7 +7517,7 @@ class El {
|
|
|
7517
7517
|
if ((i = t.frag) != null && i.gap) {
|
|
7518
7518
|
t.errorAction = {
|
|
7519
7519
|
action: me.DoNothing,
|
|
7520
|
-
flags:
|
|
7520
|
+
flags: _e.None
|
|
7521
7521
|
};
|
|
7522
7522
|
return;
|
|
7523
7523
|
}
|
|
@@ -7545,7 +7545,7 @@ class El {
|
|
|
7545
7545
|
if (a) {
|
|
7546
7546
|
const c = n.levels[n.loadLevel];
|
|
7547
7547
|
if (c && (a.type === J.AUDIO_TRACK && c.hasAudioGroup(a.groupId) || a.type === J.SUBTITLE_TRACK && c.hasSubtitleGroup(a.groupId))) {
|
|
7548
|
-
t.errorAction = this.getPlaylistRetryOrSwitchAction(t, n.loadLevel), t.errorAction.action = me.SendAlternateToPenaltyBox, t.errorAction.flags =
|
|
7548
|
+
t.errorAction = this.getPlaylistRetryOrSwitchAction(t, n.loadLevel), t.errorAction.action = me.SendAlternateToPenaltyBox, t.errorAction.flags = _e.MoveAllAlternatesMatchingHost;
|
|
7549
7549
|
return;
|
|
7550
7550
|
}
|
|
7551
7551
|
}
|
|
@@ -7555,7 +7555,7 @@ class El {
|
|
|
7555
7555
|
const c = n.levels[n.loadLevel], u = c == null ? void 0 : c.attrs["HDCP-LEVEL"];
|
|
7556
7556
|
u ? t.errorAction = {
|
|
7557
7557
|
action: me.SendAlternateToPenaltyBox,
|
|
7558
|
-
flags:
|
|
7558
|
+
flags: _e.MoveAllAlternatesMatchingHDCP,
|
|
7559
7559
|
hdcpLevel: u
|
|
7560
7560
|
} : this.keySystemError(t);
|
|
7561
7561
|
}
|
|
@@ -7574,7 +7574,7 @@ class El {
|
|
|
7574
7574
|
case D.BUFFER_NUDGE_ON_STALL:
|
|
7575
7575
|
t.errorAction = {
|
|
7576
7576
|
action: me.DoNothing,
|
|
7577
|
-
flags:
|
|
7577
|
+
flags: _e.None
|
|
7578
7578
|
};
|
|
7579
7579
|
return;
|
|
7580
7580
|
}
|
|
@@ -7589,7 +7589,7 @@ class El {
|
|
|
7589
7589
|
if (Yt(r, n, zt(e), e.response))
|
|
7590
7590
|
return {
|
|
7591
7591
|
action: me.RetryRequest,
|
|
7592
|
-
flags:
|
|
7592
|
+
flags: _e.None,
|
|
7593
7593
|
retryConfig: r,
|
|
7594
7594
|
retryCount: n
|
|
7595
7595
|
};
|
|
@@ -7604,7 +7604,7 @@ class El {
|
|
|
7604
7604
|
if (r && (e.details !== D.FRAG_GAP && r.fragmentError++, Yt(o, l, zt(e), e.response)))
|
|
7605
7605
|
return {
|
|
7606
7606
|
action: me.RetryRequest,
|
|
7607
|
-
flags:
|
|
7607
|
+
flags: _e.None,
|
|
7608
7608
|
retryConfig: o,
|
|
7609
7609
|
retryCount: l
|
|
7610
7610
|
};
|
|
@@ -7642,16 +7642,16 @@ class El {
|
|
|
7642
7642
|
var o, l;
|
|
7643
7643
|
const B = h[R];
|
|
7644
7644
|
if (c === D.FRAG_GAP && e.frag) {
|
|
7645
|
-
const
|
|
7646
|
-
if (
|
|
7647
|
-
const b = jt(e.frag,
|
|
7645
|
+
const _ = h[R].details;
|
|
7646
|
+
if (_) {
|
|
7647
|
+
const b = jt(e.frag, _.fragments, e.frag.start);
|
|
7648
7648
|
if (b != null && b.gap)
|
|
7649
7649
|
continue;
|
|
7650
7650
|
}
|
|
7651
7651
|
} else {
|
|
7652
7652
|
if (L === J.AUDIO_TRACK && B.hasAudioGroup(E) || L === J.SUBTITLE_TRACK && B.hasSubtitleGroup(E))
|
|
7653
7653
|
continue;
|
|
7654
|
-
if (g === j.AUDIO && (o = r.audioGroups) != null && o.some((
|
|
7654
|
+
if (g === j.AUDIO && (o = r.audioGroups) != null && o.some((_) => B.hasAudioGroup(_)) || g === j.SUBTITLE && (l = r.subtitleGroups) != null && l.some((_) => B.hasSubtitleGroup(_)) || v && r.audioCodec === B.audioCodec || !v && r.audioCodec !== B.audioCodec || x && r.codecSet === B.codecSet)
|
|
7655
7655
|
continue;
|
|
7656
7656
|
}
|
|
7657
7657
|
u = R;
|
|
@@ -7661,13 +7661,13 @@ class El {
|
|
|
7661
7661
|
if (u > -1 && i.loadLevel !== u)
|
|
7662
7662
|
return e.levelRetry = !0, this.playlistError = 0, {
|
|
7663
7663
|
action: me.SendAlternateToPenaltyBox,
|
|
7664
|
-
flags:
|
|
7664
|
+
flags: _e.None,
|
|
7665
7665
|
nextAutoLevel: u
|
|
7666
7666
|
};
|
|
7667
7667
|
}
|
|
7668
7668
|
return {
|
|
7669
7669
|
action: me.SendAlternateToPenaltyBox,
|
|
7670
|
-
flags:
|
|
7670
|
+
flags: _e.MoveAllAlternatesMatchingHost
|
|
7671
7671
|
};
|
|
7672
7672
|
}
|
|
7673
7673
|
onErrorOut(e, t) {
|
|
@@ -7694,10 +7694,10 @@ class El {
|
|
|
7694
7694
|
nextAutoLevel: a
|
|
7695
7695
|
} = i;
|
|
7696
7696
|
switch (r) {
|
|
7697
|
-
case
|
|
7697
|
+
case _e.None:
|
|
7698
7698
|
this.switchLevel(e, a);
|
|
7699
7699
|
break;
|
|
7700
|
-
case
|
|
7700
|
+
case _e.MoveAllAlternatesMatchingHDCP:
|
|
7701
7701
|
n && (t.maxHdcpLevel = Ni[Ni.indexOf(n) - 1], i.resolved = !0), this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);
|
|
7702
7702
|
break;
|
|
7703
7703
|
}
|
|
@@ -7774,19 +7774,19 @@ class ns {
|
|
|
7774
7774
|
const y = this.hls.config.lowLatencyMode, v = r.lastPartSn, T = r.endSN, x = r.lastPartIndex, L = x !== -1, E = v === T, k = y ? 0 : x;
|
|
7775
7775
|
L ? (c = E ? T + 1 : v, u = E ? k : x + 1) : c = T + 1;
|
|
7776
7776
|
const R = r.age, B = R + r.ageHeader;
|
|
7777
|
-
let
|
|
7778
|
-
if (
|
|
7779
|
-
if (i &&
|
|
7780
|
-
this.warn(`CDN Tune-in goal increased from: ${i.tuneInGoal} to: ${
|
|
7777
|
+
let _ = Math.min(B - r.partTarget, r.targetduration * 1.5);
|
|
7778
|
+
if (_ > 0) {
|
|
7779
|
+
if (i && _ > i.tuneInGoal)
|
|
7780
|
+
this.warn(`CDN Tune-in goal increased from: ${i.tuneInGoal} to: ${_} with playlist age: ${r.age}`), _ = 0;
|
|
7781
7781
|
else {
|
|
7782
|
-
const b = Math.floor(
|
|
7782
|
+
const b = Math.floor(_ / r.targetduration);
|
|
7783
7783
|
if (c += b, u !== void 0) {
|
|
7784
|
-
const
|
|
7785
|
-
u +=
|
|
7784
|
+
const C = Math.round(_ % r.targetduration / r.partTarget);
|
|
7785
|
+
u += C;
|
|
7786
7786
|
}
|
|
7787
|
-
this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${R.toFixed(2)}s goal: ${
|
|
7787
|
+
this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${R.toFixed(2)}s goal: ${_} skip sn ${b} to part ${u}`);
|
|
7788
7788
|
}
|
|
7789
|
-
r.tuneInGoal =
|
|
7789
|
+
r.tuneInGoal = _;
|
|
7790
7790
|
}
|
|
7791
7791
|
if (l = this.getDeliveryDirectives(r, t.deliveryDirectives, c, u), y || !E) {
|
|
7792
7792
|
this.loadPlaylist(l);
|
|
@@ -7880,7 +7880,7 @@ class Sl {
|
|
|
7880
7880
|
destroy() {
|
|
7881
7881
|
}
|
|
7882
7882
|
}
|
|
7883
|
-
const
|
|
7883
|
+
const Dn = {
|
|
7884
7884
|
supported: !0,
|
|
7885
7885
|
configurations: [],
|
|
7886
7886
|
decodingInfoResults: [{
|
|
@@ -7915,7 +7915,7 @@ function bl(s, e, t, i, r, n) {
|
|
|
7915
7915
|
function Al(s, e, t) {
|
|
7916
7916
|
const i = s.videoCodec, r = s.audioCodec;
|
|
7917
7917
|
if (!i || !r || !t)
|
|
7918
|
-
return Promise.resolve(
|
|
7918
|
+
return Promise.resolve(Dn);
|
|
7919
7919
|
const n = {
|
|
7920
7920
|
width: s.width,
|
|
7921
7921
|
height: s.height,
|
|
@@ -7982,20 +7982,20 @@ function Rl() {
|
|
|
7982
7982
|
}
|
|
7983
7983
|
return !1;
|
|
7984
7984
|
}
|
|
7985
|
-
function
|
|
7985
|
+
function _l(s, e) {
|
|
7986
7986
|
let t = !1, i = [];
|
|
7987
7987
|
return s && (t = s !== "SDR", i = [s]), e && (i = e.allowedVideoRanges || Wt.slice(0), t = e.preferHDR !== void 0 ? e.preferHDR : Rl(), t ? i = i.filter((r) => r !== "SDR") : i = ["SDR"]), {
|
|
7988
7988
|
preferHDR: t,
|
|
7989
7989
|
allowedVideoRanges: i
|
|
7990
7990
|
};
|
|
7991
7991
|
}
|
|
7992
|
-
function
|
|
7992
|
+
function Cl(s, e, t, i, r) {
|
|
7993
7993
|
const n = Object.keys(s), a = i == null ? void 0 : i.channels, o = i == null ? void 0 : i.audioCodec, l = a && parseInt(a) === 2;
|
|
7994
7994
|
let c = !0, u = !1, h = 1 / 0, d = 1 / 0, f = 1 / 0, m = 0, g = [];
|
|
7995
7995
|
const {
|
|
7996
7996
|
preferHDR: y,
|
|
7997
7997
|
allowedVideoRanges: v
|
|
7998
|
-
} =
|
|
7998
|
+
} = _l(e, r);
|
|
7999
7999
|
for (let E = n.length; E--; ) {
|
|
8000
8000
|
const k = s[n[E]];
|
|
8001
8001
|
c = k.channels[2] > 0, h = Math.min(h, k.minHeight), d = Math.min(d, k.minFramerate), f = Math.min(f, k.minBitrate);
|
|
@@ -8174,17 +8174,17 @@ class Pl {
|
|
|
8174
8174
|
const R = v ? l.loaded * 1e3 / k : 0, B = R ? (E - l.loaded) / R : E * 8 / T + f / 1e3;
|
|
8175
8175
|
if (B <= g)
|
|
8176
8176
|
return;
|
|
8177
|
-
const
|
|
8178
|
-
let b = Number.POSITIVE_INFINITY,
|
|
8179
|
-
for (
|
|
8180
|
-
const w = x[
|
|
8181
|
-
if (b = this.getTimeToLoadFrag(f / 1e3,
|
|
8177
|
+
const _ = R ? R * 8 : T;
|
|
8178
|
+
let b = Number.POSITIVE_INFINITY, C;
|
|
8179
|
+
for (C = t.level - 1; C > h; C--) {
|
|
8180
|
+
const w = x[C].maxBitrate;
|
|
8181
|
+
if (b = this.getTimeToLoadFrag(f / 1e3, _, c * w, !x[C].details), b < g)
|
|
8182
8182
|
break;
|
|
8183
8183
|
}
|
|
8184
8184
|
if (b >= B || b > c * 10)
|
|
8185
8185
|
return;
|
|
8186
|
-
r.nextLoadLevel = r.nextAutoLevel =
|
|
8187
|
-
const P = x[
|
|
8186
|
+
r.nextLoadLevel = r.nextAutoLevel = C, v ? this.bwEstimator.sample(u - Math.min(f, y), l.loaded) : this.bwEstimator.sampleTTFB(u);
|
|
8187
|
+
const P = x[C].maxBitrate;
|
|
8188
8188
|
this.getBwEstimate() * this.hls.config.abrBandWidthUpFactor > P && this.resetEstimator(P), this.clearTimer(), S.warn(`[abr] Fragment ${t.sn}${i ? " part " + i.index : ""} of level ${t.level} is loading too slowly;
|
|
8189
8189
|
Time to underbuffer: ${g.toFixed(3)} s
|
|
8190
8190
|
Estimated load time for current fragment: ${B.toFixed(3)} s
|
|
@@ -8192,7 +8192,7 @@ class Pl {
|
|
|
8192
8192
|
TTFB estimate: ${y | 0} ms
|
|
8193
8193
|
Current BW estimate: ${W(T) ? T | 0 : "Unknown"} bps
|
|
8194
8194
|
New BW estimate: ${this.getBwEstimate() | 0} bps
|
|
8195
|
-
Switching to level ${
|
|
8195
|
+
Switching to level ${C} @ ${P | 0} bps`), r.trigger(p.FRAG_LOAD_EMERGENCY_ABORTED, {
|
|
8196
8196
|
frag: t,
|
|
8197
8197
|
part: i,
|
|
8198
8198
|
stats: l
|
|
@@ -8401,12 +8401,12 @@ class Pl {
|
|
|
8401
8401
|
let E, k = "SDR", R = (T == null ? void 0 : T.frameRate) || 0;
|
|
8402
8402
|
const {
|
|
8403
8403
|
audioPreference: B,
|
|
8404
|
-
videoPreference:
|
|
8404
|
+
videoPreference: _
|
|
8405
8405
|
} = v, b = this.audioTracksByGroup || (this.audioTracksByGroup = Dl(g));
|
|
8406
8406
|
if (L) {
|
|
8407
8407
|
if (this.firstSelection !== -1)
|
|
8408
8408
|
return this.firstSelection;
|
|
8409
|
-
const O = this.codecTiers || (this.codecTiers = Il(m, b, t, i)), U =
|
|
8409
|
+
const O = this.codecTiers || (this.codecTiers = Il(m, b, t, i)), U = Cl(O, k, e, B, _), {
|
|
8410
8410
|
codecSet: F,
|
|
8411
8411
|
videoRanges: V,
|
|
8412
8412
|
minFramerate: H,
|
|
@@ -8416,7 +8416,7 @@ class Pl {
|
|
|
8416
8416
|
E = F, k = Q ? V[V.length - 1] : V[0], R = H, e = Math.max(e, M), S.log(`[abr] picked start tier ${JSON.stringify(U)}`);
|
|
8417
8417
|
} else
|
|
8418
8418
|
E = T == null ? void 0 : T.codecSet, k = T == null ? void 0 : T.videoRange;
|
|
8419
|
-
const
|
|
8419
|
+
const C = f ? f.duration : d ? d.duration : 0, P = this.bwEstimator.getEstimateTTFB() / 1e3, w = [];
|
|
8420
8420
|
for (let O = i; O >= t; O--) {
|
|
8421
8421
|
var $;
|
|
8422
8422
|
const U = m[O], F = O > h;
|
|
@@ -8430,16 +8430,16 @@ class Pl {
|
|
|
8430
8430
|
U.supportedResult = ce;
|
|
8431
8431
|
const fe = this.hls.levels, Se = fe.indexOf(U);
|
|
8432
8432
|
ce.error ? S.warn(`[abr] MediaCapabilities decodingInfo error: "${ce.error}" for level ${Se} ${JSON.stringify(ce)}`) : ce.supported || (S.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Se} ${JSON.stringify(ce)}`), Se > -1 && fe.length > 1 && (S.log(`[abr] Removing unsupported level ${Se}`), this.hls.removeLevel(Se)));
|
|
8433
|
-
})) : U.supportedResult =
|
|
8433
|
+
})) : U.supportedResult = Dn;
|
|
8434
8434
|
}
|
|
8435
8435
|
if (E && U.codecSet !== E || k && U.videoRange !== k || F && R > U.frameRate || !F && R > 0 && R < U.frameRate || U.supportedResult && !(($ = U.supportedResult.decodingInfoResults) != null && $[0].smooth)) {
|
|
8436
8436
|
w.push(O);
|
|
8437
8437
|
continue;
|
|
8438
8438
|
}
|
|
8439
|
-
const V = U.details, H = (f ? V == null ? void 0 : V.partTarget : V == null ? void 0 : V.averagetargetduration) ||
|
|
8439
|
+
const V = U.details, H = (f ? V == null ? void 0 : V.partTarget : V == null ? void 0 : V.averagetargetduration) || C;
|
|
8440
8440
|
let M;
|
|
8441
8441
|
F ? M = o * e : M = a * e;
|
|
8442
|
-
const Q =
|
|
8442
|
+
const Q = C && r >= C * 2 && n === 0 ? m[O].averageBitrate : m[O].maxBitrate, Z = this.getTimeToLoadFrag(P, M, Q * H, V === void 0);
|
|
8443
8443
|
if (
|
|
8444
8444
|
// if adjusted bw is greater than level bitrate AND
|
|
8445
8445
|
M >= Q && // no level change, or new level has no error history
|
|
@@ -8907,19 +8907,19 @@ function Ys(s, e) {
|
|
|
8907
8907
|
s.start = s.startPTS = t, s.endPTS = t + s.duration;
|
|
8908
8908
|
}
|
|
8909
8909
|
}
|
|
8910
|
-
function
|
|
8910
|
+
function In(s, e) {
|
|
8911
8911
|
const t = e.fragments;
|
|
8912
8912
|
for (let i = 0, r = t.length; i < r; i++)
|
|
8913
8913
|
Ys(t[i], s);
|
|
8914
8914
|
e.fragmentHint && Ys(e.fragmentHint, s), e.alignedSliding = !0;
|
|
8915
8915
|
}
|
|
8916
8916
|
function $l(s, e, t) {
|
|
8917
|
-
e && (Ul(s, t, e), !t.alignedSliding && e && qt(t, e), !t.alignedSliding && e && !t.skippedSegments &&
|
|
8917
|
+
e && (Ul(s, t, e), !t.alignedSliding && e && qt(t, e), !t.alignedSliding && e && !t.skippedSegments && Ln(e, t));
|
|
8918
8918
|
}
|
|
8919
8919
|
function Ul(s, e, t) {
|
|
8920
8920
|
if (Nl(s, t, e)) {
|
|
8921
8921
|
const i = Bl(t, e);
|
|
8922
|
-
i && W(i.start) && (S.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),
|
|
8922
|
+
i && W(i.start) && (S.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`), In(i.start, e));
|
|
8923
8923
|
}
|
|
8924
8924
|
}
|
|
8925
8925
|
function qt(s, e) {
|
|
@@ -8935,7 +8935,7 @@ function qt(s, e) {
|
|
|
8935
8935
|
if (!o || !l)
|
|
8936
8936
|
return;
|
|
8937
8937
|
const c = (l - o) / 1e3 - (n.start - r.start);
|
|
8938
|
-
|
|
8938
|
+
In(c, s);
|
|
8939
8939
|
}
|
|
8940
8940
|
const js = Math.pow(2, 17);
|
|
8941
8941
|
class Gl {
|
|
@@ -9238,12 +9238,12 @@ class Wl {
|
|
|
9238
9238
|
const r = this.keySize + 6, n = this.invKeySchedule, a = this.invSBox, o = this.invSubMix, l = o[0], c = o[1], u = o[2], h = o[3], d = this.uint8ArrayToUint32Array_(i);
|
|
9239
9239
|
let f = d[0], m = d[1], g = d[2], y = d[3];
|
|
9240
9240
|
const v = new Int32Array(e), T = new Int32Array(v.length);
|
|
9241
|
-
let x, L, E, k, R, B,
|
|
9241
|
+
let x, L, E, k, R, B, _, b, C, P, w, $, O, U;
|
|
9242
9242
|
const F = this.networkToHostOrderSwap;
|
|
9243
9243
|
for (; t < v.length; ) {
|
|
9244
|
-
for (
|
|
9245
|
-
x = l[R >>> 24] ^ c[B >> 16 & 255] ^ u[
|
|
9246
|
-
x = a[R >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[
|
|
9244
|
+
for (C = F(v[t]), P = F(v[t + 1]), w = F(v[t + 2]), $ = F(v[t + 3]), R = C ^ n[0], B = $ ^ n[1], _ = w ^ n[2], b = P ^ n[3], O = 4, U = 1; U < r; U++)
|
|
9245
|
+
x = l[R >>> 24] ^ c[B >> 16 & 255] ^ u[_ >> 8 & 255] ^ h[b & 255] ^ n[O], L = l[B >>> 24] ^ c[_ >> 16 & 255] ^ u[b >> 8 & 255] ^ h[R & 255] ^ n[O + 1], E = l[_ >>> 24] ^ c[b >> 16 & 255] ^ u[R >> 8 & 255] ^ h[B & 255] ^ n[O + 2], k = l[b >>> 24] ^ c[R >> 16 & 255] ^ u[B >> 8 & 255] ^ h[_ & 255] ^ n[O + 3], R = x, B = L, _ = E, b = k, O = O + 4;
|
|
9246
|
+
x = a[R >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[_ >> 8 & 255] << 8 ^ a[b & 255] ^ n[O], L = a[B >>> 24] << 24 ^ a[_ >> 16 & 255] << 16 ^ a[b >> 8 & 255] << 8 ^ a[R & 255] ^ n[O + 1], E = a[_ >>> 24] << 24 ^ a[b >> 16 & 255] << 16 ^ a[R >> 8 & 255] << 8 ^ a[B & 255] ^ n[O + 2], k = a[b >>> 24] << 24 ^ a[R >> 16 & 255] << 16 ^ a[B >> 8 & 255] << 8 ^ a[_ & 255] ^ n[O + 3], T[t] = F(x ^ f), T[t + 1] = F(k ^ m), T[t + 2] = F(E ^ g), T[t + 3] = F(L ^ y), f = C, m = P, g = w, y = $, t = t + 4;
|
|
9247
9247
|
}
|
|
9248
9248
|
return T.buffer;
|
|
9249
9249
|
}
|
|
@@ -9618,7 +9618,7 @@ class ls extends Ol {
|
|
|
9618
9618
|
l[h.index] = d;
|
|
9619
9619
|
const f = d.part;
|
|
9620
9620
|
this.hls.trigger(p.FRAG_LOADED, d);
|
|
9621
|
-
const m = Hs(i, e.sn, h.index + 1) ||
|
|
9621
|
+
const m = Hs(i, e.sn, h.index + 1) || Rn(c, e.sn, h.index + 1);
|
|
9622
9622
|
if (m)
|
|
9623
9623
|
u(m);
|
|
9624
9624
|
else
|
|
@@ -9988,7 +9988,7 @@ class ls extends Ol {
|
|
|
9988
9988
|
const h = u.endPTS - u.startPTS;
|
|
9989
9989
|
if (h <= 0)
|
|
9990
9990
|
return this.warn(`Could not parse fragment ${e.sn} ${c} duration reliably (${h})`), l || !1;
|
|
9991
|
-
const d = r ? 0 :
|
|
9991
|
+
const d = r ? 0 : An(a, e, u.startPTS, u.endPTS, u.startDTS, u.endDTS);
|
|
9992
9992
|
return this.hls.trigger(p.LEVEL_PTS_UPDATED, {
|
|
9993
9993
|
details: a,
|
|
9994
9994
|
level: i,
|
|
@@ -10032,7 +10032,7 @@ class ls extends Ol {
|
|
|
10032
10032
|
return this._state;
|
|
10033
10033
|
}
|
|
10034
10034
|
}
|
|
10035
|
-
class
|
|
10035
|
+
class wn {
|
|
10036
10036
|
constructor() {
|
|
10037
10037
|
this.chunks = [], this.dataLength = 0;
|
|
10038
10038
|
}
|
|
@@ -10200,10 +10200,10 @@ function Jl(s, e, t, i) {
|
|
|
10200
10200
|
manifestCodec: c
|
|
10201
10201
|
};
|
|
10202
10202
|
}
|
|
10203
|
-
function
|
|
10203
|
+
function kn(s, e) {
|
|
10204
10204
|
return s[e] === 255 && (s[e + 1] & 246) === 240;
|
|
10205
10205
|
}
|
|
10206
|
-
function
|
|
10206
|
+
function Pn(s, e) {
|
|
10207
10207
|
return s[e + 1] & 1 ? 7 : 9;
|
|
10208
10208
|
}
|
|
10209
10209
|
function us(s, e) {
|
|
@@ -10213,14 +10213,14 @@ function ec(s, e) {
|
|
|
10213
10213
|
return e + 5 < s.length;
|
|
10214
10214
|
}
|
|
10215
10215
|
function Xt(s, e) {
|
|
10216
|
-
return e + 1 < s.length &&
|
|
10216
|
+
return e + 1 < s.length && kn(s, e);
|
|
10217
10217
|
}
|
|
10218
10218
|
function tc(s, e) {
|
|
10219
|
-
return ec(s, e) &&
|
|
10219
|
+
return ec(s, e) && kn(s, e) && us(s, e) <= s.length - e;
|
|
10220
10220
|
}
|
|
10221
10221
|
function ic(s, e) {
|
|
10222
10222
|
if (Xt(s, e)) {
|
|
10223
|
-
const t =
|
|
10223
|
+
const t = Pn(s, e);
|
|
10224
10224
|
if (e + t >= s.length)
|
|
10225
10225
|
return !1;
|
|
10226
10226
|
const i = us(s, e);
|
|
@@ -10231,7 +10231,7 @@ function ic(s, e) {
|
|
|
10231
10231
|
}
|
|
10232
10232
|
return !1;
|
|
10233
10233
|
}
|
|
10234
|
-
function
|
|
10234
|
+
function On(s, e, t, i, r) {
|
|
10235
10235
|
if (!s.samplerate) {
|
|
10236
10236
|
const n = Jl(e, t, i, r);
|
|
10237
10237
|
if (!n)
|
|
@@ -10239,11 +10239,11 @@ function Pn(s, e, t, i, r) {
|
|
|
10239
10239
|
s.config = n.config, s.samplerate = n.samplerate, s.channelCount = n.channelCount, s.codec = n.codec, s.manifestCodec = n.manifestCodec, S.log(`parsed codec:${s.codec}, rate:${n.samplerate}, channels:${n.channelCount}`);
|
|
10240
10240
|
}
|
|
10241
10241
|
}
|
|
10242
|
-
function
|
|
10242
|
+
function Fn(s) {
|
|
10243
10243
|
return 1024 * 9e4 / s;
|
|
10244
10244
|
}
|
|
10245
10245
|
function sc(s, e) {
|
|
10246
|
-
const t =
|
|
10246
|
+
const t = Pn(s, e);
|
|
10247
10247
|
if (e + t <= s.length) {
|
|
10248
10248
|
const i = us(s, e) - t;
|
|
10249
10249
|
if (i > 0)
|
|
@@ -10253,8 +10253,8 @@ function sc(s, e) {
|
|
|
10253
10253
|
};
|
|
10254
10254
|
}
|
|
10255
10255
|
}
|
|
10256
|
-
function
|
|
10257
|
-
const n =
|
|
10256
|
+
function Mn(s, e, t, i, r) {
|
|
10257
|
+
const n = Fn(s.samplerate), a = i + r * n, o = sc(e, t);
|
|
10258
10258
|
let l;
|
|
10259
10259
|
if (o) {
|
|
10260
10260
|
const {
|
|
@@ -10282,7 +10282,7 @@ function Fn(s, e, t, i, r) {
|
|
|
10282
10282
|
missing: -1
|
|
10283
10283
|
};
|
|
10284
10284
|
}
|
|
10285
|
-
let
|
|
10285
|
+
let _t = null;
|
|
10286
10286
|
const rc = [32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160], nc = [44100, 48e3, 32e3, 22050, 24e3, 16e3, 11025, 12e3, 8e3], ac = [
|
|
10287
10287
|
// MPEG 2.5
|
|
10288
10288
|
[
|
|
@@ -10338,10 +10338,10 @@ const rc = [32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 3
|
|
|
10338
10338
|
4
|
|
10339
10339
|
// Layer1
|
|
10340
10340
|
];
|
|
10341
|
-
function
|
|
10341
|
+
function Nn(s, e, t, i, r) {
|
|
10342
10342
|
if (t + 24 > e.length)
|
|
10343
10343
|
return;
|
|
10344
|
-
const n =
|
|
10344
|
+
const n = Bn(e, t);
|
|
10345
10345
|
if (n && t + n.frameLength <= e.length) {
|
|
10346
10346
|
const a = n.samplesPerFrame * 9e4 / n.sampleRate, o = i + r * a, l = {
|
|
10347
10347
|
unit: e.subarray(t, t + n.frameLength),
|
|
@@ -10355,15 +10355,15 @@ function Mn(s, e, t, i, r) {
|
|
|
10355
10355
|
};
|
|
10356
10356
|
}
|
|
10357
10357
|
}
|
|
10358
|
-
function
|
|
10358
|
+
function Bn(s, e) {
|
|
10359
10359
|
const t = s[e + 1] >> 3 & 3, i = s[e + 1] >> 1 & 3, r = s[e + 2] >> 4 & 15, n = s[e + 2] >> 2 & 3;
|
|
10360
10360
|
if (t !== 1 && r !== 0 && r !== 15 && n !== 3) {
|
|
10361
10361
|
const a = s[e + 2] >> 1 & 1, o = s[e + 3] >> 6, l = t === 3 ? 3 - i : i === 3 ? 3 : 4, c = rc[l * 14 + r - 1] * 1e3, h = nc[(t === 3 ? 0 : t === 2 ? 1 : 2) * 3 + n], d = o === 3 ? 1 : 2, f = ac[t][i], m = oc[i], g = f * 8 * m, y = Math.floor(f * c / h + a) * m;
|
|
10362
|
-
if (
|
|
10362
|
+
if (_t === null) {
|
|
10363
10363
|
const x = (navigator.userAgent || "").match(/Chrome\/(\d+)/i);
|
|
10364
|
-
|
|
10364
|
+
_t = x ? parseInt(x[1]) : 0;
|
|
10365
10365
|
}
|
|
10366
|
-
return !!
|
|
10366
|
+
return !!_t && _t <= 87 && i === 2 && c >= 224e3 && o === 0 && (s[e + 3] = s[e + 3] | 128), {
|
|
10367
10367
|
sampleRate: h,
|
|
10368
10368
|
channelCount: d,
|
|
10369
10369
|
frameLength: y,
|
|
@@ -10374,19 +10374,19 @@ function Nn(s, e) {
|
|
|
10374
10374
|
function hs(s, e) {
|
|
10375
10375
|
return s[e] === 255 && (s[e + 1] & 224) === 224 && (s[e + 1] & 6) !== 0;
|
|
10376
10376
|
}
|
|
10377
|
-
function
|
|
10377
|
+
function $n(s, e) {
|
|
10378
10378
|
return e + 1 < s.length && hs(s, e);
|
|
10379
10379
|
}
|
|
10380
10380
|
function lc(s, e) {
|
|
10381
10381
|
return hs(s, e) && 4 <= s.length - e;
|
|
10382
10382
|
}
|
|
10383
|
-
function
|
|
10383
|
+
function Un(s, e) {
|
|
10384
10384
|
if (e + 1 < s.length && hs(s, e)) {
|
|
10385
|
-
const i =
|
|
10385
|
+
const i = Bn(s, e);
|
|
10386
10386
|
let r = 4;
|
|
10387
10387
|
i != null && i.frameLength && (r = i.frameLength);
|
|
10388
10388
|
const n = e + r;
|
|
10389
|
-
return n === s.length ||
|
|
10389
|
+
return n === s.length || $n(s, n);
|
|
10390
10390
|
}
|
|
10391
10391
|
return !1;
|
|
10392
10392
|
}
|
|
@@ -10415,7 +10415,7 @@ class cc extends cs {
|
|
|
10415
10415
|
return !1;
|
|
10416
10416
|
const t = xt(e, 0);
|
|
10417
10417
|
let i = (t == null ? void 0 : t.length) || 0;
|
|
10418
|
-
if (
|
|
10418
|
+
if (Un(e, i))
|
|
10419
10419
|
return !1;
|
|
10420
10420
|
for (let r = e.length; i < r; i++)
|
|
10421
10421
|
if (ic(e, i))
|
|
@@ -10426,8 +10426,8 @@ class cc extends cs {
|
|
|
10426
10426
|
return tc(e, t);
|
|
10427
10427
|
}
|
|
10428
10428
|
appendFrame(e, t, i) {
|
|
10429
|
-
|
|
10430
|
-
const r =
|
|
10429
|
+
On(e, this.observer, t, i, e.manifestCodec);
|
|
10430
|
+
const r = Mn(e, t, i, this.basePTS, this.frameIndex);
|
|
10431
10431
|
if (r && r.missing === 0)
|
|
10432
10432
|
return r;
|
|
10433
10433
|
}
|
|
@@ -10443,7 +10443,7 @@ class hc {
|
|
|
10443
10443
|
const n = this.videoTrack = Pe("video", 1), a = this.audioTrack = Pe("audio", 1), o = this.txtTrack = Pe("text", 1);
|
|
10444
10444
|
if (this.id3Track = Pe("id3", 1), this.timeOffset = 0, !(e != null && e.byteLength))
|
|
10445
10445
|
return;
|
|
10446
|
-
const l =
|
|
10446
|
+
const l = pn(e);
|
|
10447
10447
|
if (l.video) {
|
|
10448
10448
|
const {
|
|
10449
10449
|
id: c,
|
|
@@ -10460,7 +10460,7 @@ class hc {
|
|
|
10460
10460
|
} = l.audio;
|
|
10461
10461
|
a.id = c, a.timescale = u, a.codec = h;
|
|
10462
10462
|
}
|
|
10463
|
-
o.id =
|
|
10463
|
+
o.id = fn.text, n.sampleDuration = 0, n.duration = a.duration = r;
|
|
10464
10464
|
}
|
|
10465
10465
|
resetContiguity() {
|
|
10466
10466
|
this.remainderData = null;
|
|
@@ -10527,7 +10527,7 @@ class hc {
|
|
|
10527
10527
|
destroy() {
|
|
10528
10528
|
}
|
|
10529
10529
|
}
|
|
10530
|
-
const
|
|
10530
|
+
const Gn = (s, e) => {
|
|
10531
10531
|
let t = 0, i = 5;
|
|
10532
10532
|
e += i;
|
|
10533
10533
|
const r = new Uint32Array(1), n = new Uint32Array(1), a = new Uint8Array(1);
|
|
@@ -10561,7 +10561,7 @@ class dc extends cs {
|
|
|
10561
10561
|
return t + 64 < e.length;
|
|
10562
10562
|
}
|
|
10563
10563
|
appendFrame(e, t, i) {
|
|
10564
|
-
const r =
|
|
10564
|
+
const r = Hn(e, t, i, this.basePTS, this.frameIndex);
|
|
10565
10565
|
if (r !== -1)
|
|
10566
10566
|
return {
|
|
10567
10567
|
sample: e.samples[e.samples.length - 1],
|
|
@@ -10577,10 +10577,10 @@ class dc extends cs {
|
|
|
10577
10577
|
return !1;
|
|
10578
10578
|
const i = t.length;
|
|
10579
10579
|
return e[i] === 11 && e[i + 1] === 119 && ss(t) !== void 0 && // check the bsid to confirm ac-3
|
|
10580
|
-
|
|
10580
|
+
Gn(e, i) < 16;
|
|
10581
10581
|
}
|
|
10582
10582
|
}
|
|
10583
|
-
function
|
|
10583
|
+
function Hn(s, e, t, i, r) {
|
|
10584
10584
|
if (t + 8 > e.length || e[t] !== 11 || e[t + 1] !== 119)
|
|
10585
10585
|
return -1;
|
|
10586
10586
|
const n = e[t + 4] >> 6;
|
|
@@ -10843,7 +10843,7 @@ class mc extends fc {
|
|
|
10843
10843
|
l = !0, (h = o) != null && h.frame && !o.key && (this.pushAccessUnit(o, e), o = this.VideoSample = null), o || (o = this.VideoSample = this.createVideoSample(!0, i.pts, i.dts, "")), o.key = !0, o.frame = !0;
|
|
10844
10844
|
break;
|
|
10845
10845
|
case 6: {
|
|
10846
|
-
l = !0,
|
|
10846
|
+
l = !0, vn(u.data, 1, i.pts, t.samples);
|
|
10847
10847
|
break;
|
|
10848
10848
|
}
|
|
10849
10849
|
case 7: {
|
|
@@ -10970,7 +10970,7 @@ class gc {
|
|
|
10970
10970
|
return e;
|
|
10971
10971
|
}
|
|
10972
10972
|
decryptAvcSample(e, t, i, r, n) {
|
|
10973
|
-
const a =
|
|
10973
|
+
const a = xn(n.data), o = this.getAvcEncryptedData(a);
|
|
10974
10974
|
this.decryptBuffer(o.buffer).then((l) => {
|
|
10975
10975
|
n.data = this.getAvcDecryptedUnit(a, l), this.decrypter.isSync() || this.decryptAvcSamples(e, t, i + 1, r);
|
|
10976
10976
|
});
|
|
@@ -11026,7 +11026,7 @@ class ze {
|
|
|
11026
11026
|
return {
|
|
11027
11027
|
container: e === "video" || e === "audio" ? "video/mp2t" : void 0,
|
|
11028
11028
|
type: e,
|
|
11029
|
-
id:
|
|
11029
|
+
id: fn[e],
|
|
11030
11030
|
pid: -1,
|
|
11031
11031
|
inputTimeScale: 9e4,
|
|
11032
11032
|
sequenceNumber: 0,
|
|
@@ -11069,19 +11069,19 @@ class ze {
|
|
|
11069
11069
|
let E = 0;
|
|
11070
11070
|
for (let R = L; R < x; R += ue)
|
|
11071
11071
|
if (e[R] === 71) {
|
|
11072
|
-
const B = !!(e[R + 1] & 64),
|
|
11073
|
-
let
|
|
11072
|
+
const B = !!(e[R + 1] & 64), _ = Ui(e, R), b = (e[R + 3] & 48) >> 4;
|
|
11073
|
+
let C;
|
|
11074
11074
|
if (b > 1) {
|
|
11075
|
-
if (
|
|
11075
|
+
if (C = R + 5 + e[R + 4], C === R + ue)
|
|
11076
11076
|
continue;
|
|
11077
11077
|
} else
|
|
11078
|
-
|
|
11079
|
-
switch (
|
|
11078
|
+
C = R + 4;
|
|
11079
|
+
switch (_) {
|
|
11080
11080
|
case u:
|
|
11081
11081
|
B && (h && (n = it(h)) && this.videoParser.parseAVCPES(a, c, n, !1, this._duration), h = {
|
|
11082
11082
|
data: [],
|
|
11083
11083
|
size: 0
|
|
11084
|
-
}), h && (h.data.push(e.subarray(
|
|
11084
|
+
}), h && (h.data.push(e.subarray(C, R + ue)), h.size += R + ue - C);
|
|
11085
11085
|
break;
|
|
11086
11086
|
case d:
|
|
11087
11087
|
if (B) {
|
|
@@ -11102,20 +11102,20 @@ class ze {
|
|
|
11102
11102
|
size: 0
|
|
11103
11103
|
};
|
|
11104
11104
|
}
|
|
11105
|
-
m && (m.data.push(e.subarray(
|
|
11105
|
+
m && (m.data.push(e.subarray(C, R + ue)), m.size += R + ue - C);
|
|
11106
11106
|
break;
|
|
11107
11107
|
case f:
|
|
11108
11108
|
B && (g && (n = it(g)) && this.parseID3PES(l, n), g = {
|
|
11109
11109
|
data: [],
|
|
11110
11110
|
size: 0
|
|
11111
|
-
}), g && (g.data.push(e.subarray(
|
|
11111
|
+
}), g && (g.data.push(e.subarray(C, R + ue)), g.size += R + ue - C);
|
|
11112
11112
|
break;
|
|
11113
11113
|
case 0:
|
|
11114
|
-
B && (
|
|
11114
|
+
B && (C += e[C] + 1), T = this._pmtId = pc(e, C);
|
|
11115
11115
|
break;
|
|
11116
11116
|
case T: {
|
|
11117
|
-
B && (
|
|
11118
|
-
const P = yc(e,
|
|
11117
|
+
B && (C += e[C] + 1);
|
|
11118
|
+
const P = yc(e, C, this.typeSupported, i);
|
|
11119
11119
|
u = P.videoPid, u > 0 && (a.pid = u, a.segmentCodec = P.segmentVideoCodec), d = P.audioPid, d > 0 && (o.pid = d, o.segmentCodec = P.segmentAudioCodec), f = P.id3Pid, f > 0 && (l.pid = f), y !== null && !v && (S.warn(`MPEG-TS PMT found at ${R} after unknown PID '${y}'. Backtracking to sync byte @${L} to parse all TS packets.`), y = null, R = L - 188), v = this.pmtParsed = !0;
|
|
11120
11120
|
break;
|
|
11121
11121
|
}
|
|
@@ -11123,7 +11123,7 @@ class ze {
|
|
|
11123
11123
|
case 8191:
|
|
11124
11124
|
break;
|
|
11125
11125
|
default:
|
|
11126
|
-
y =
|
|
11126
|
+
y = _;
|
|
11127
11127
|
break;
|
|
11128
11128
|
}
|
|
11129
11129
|
} else
|
|
@@ -11239,12 +11239,12 @@ class ze {
|
|
|
11239
11239
|
}), !d)
|
|
11240
11240
|
return;
|
|
11241
11241
|
}
|
|
11242
|
-
|
|
11242
|
+
On(e, this.observer, n, a, this.audioCodec);
|
|
11243
11243
|
let l;
|
|
11244
11244
|
if (t.pts !== void 0)
|
|
11245
11245
|
l = t.pts;
|
|
11246
11246
|
else if (r) {
|
|
11247
|
-
const h =
|
|
11247
|
+
const h = Fn(e.samplerate);
|
|
11248
11248
|
l = r.sample.pts + h;
|
|
11249
11249
|
} else {
|
|
11250
11250
|
S.warn("[tsdemuxer]: AAC PES unknown PTS");
|
|
@@ -11252,7 +11252,7 @@ class ze {
|
|
|
11252
11252
|
}
|
|
11253
11253
|
let c = 0, u;
|
|
11254
11254
|
for (; a < o; )
|
|
11255
|
-
if (u =
|
|
11255
|
+
if (u = Mn(e, n, a, l, c), a += u.length, u.missing) {
|
|
11256
11256
|
this.aacOverFlow = u;
|
|
11257
11257
|
break;
|
|
11258
11258
|
} else
|
|
@@ -11268,8 +11268,8 @@ class ze {
|
|
|
11268
11268
|
return;
|
|
11269
11269
|
}
|
|
11270
11270
|
for (; a < r; )
|
|
11271
|
-
if (
|
|
11272
|
-
const l =
|
|
11271
|
+
if ($n(i, a)) {
|
|
11272
|
+
const l = Nn(e, i, a, o, n);
|
|
11273
11273
|
if (l)
|
|
11274
11274
|
a += l.length, n++;
|
|
11275
11275
|
else
|
|
@@ -11286,7 +11286,7 @@ class ze {
|
|
|
11286
11286
|
}
|
|
11287
11287
|
const n = i.length;
|
|
11288
11288
|
let a = 0, o = 0, l;
|
|
11289
|
-
for (; o < n && (l =
|
|
11289
|
+
for (; o < n && (l = Hn(e, i, o, r, a++)) > 0; )
|
|
11290
11290
|
o += l;
|
|
11291
11291
|
}
|
|
11292
11292
|
}
|
|
@@ -11446,10 +11446,10 @@ class vc extends cs {
|
|
|
11446
11446
|
const t = xt(e, 0);
|
|
11447
11447
|
let i = (t == null ? void 0 : t.length) || 0;
|
|
11448
11448
|
if (t && e[i] === 11 && e[i + 1] === 119 && ss(t) !== void 0 && // check the bsid to confirm ac-3 or ec-3 (not mp3)
|
|
11449
|
-
|
|
11449
|
+
Gn(e, i) <= 16)
|
|
11450
11450
|
return !1;
|
|
11451
11451
|
for (let r = e.length; i < r; i++)
|
|
11452
|
-
if (
|
|
11452
|
+
if (Un(e, i))
|
|
11453
11453
|
return S.log("MPEG Audio sync word found !"), !0;
|
|
11454
11454
|
return !1;
|
|
11455
11455
|
}
|
|
@@ -11458,7 +11458,7 @@ class vc extends cs {
|
|
|
11458
11458
|
}
|
|
11459
11459
|
appendFrame(e, t, i) {
|
|
11460
11460
|
if (this.basePTS !== null)
|
|
11461
|
-
return
|
|
11461
|
+
return Nn(e, t, i, this.basePTS, this.frameIndex);
|
|
11462
11462
|
}
|
|
11463
11463
|
}
|
|
11464
11464
|
class Qs {
|
|
@@ -12491,7 +12491,7 @@ A.SMHD = void 0;
|
|
|
12491
12491
|
A.STSD = void 0;
|
|
12492
12492
|
A.FTYP = void 0;
|
|
12493
12493
|
A.DINF = void 0;
|
|
12494
|
-
const
|
|
12494
|
+
const Vn = 9e4;
|
|
12495
12495
|
function ds(s, e, t = 1, i = !1) {
|
|
12496
12496
|
const r = s * e * t;
|
|
12497
12497
|
return i ? Math.round(r) : r;
|
|
@@ -12500,10 +12500,10 @@ function xc(s, e, t = 1, i = !1) {
|
|
|
12500
12500
|
return ds(s, e, 1 / t, i);
|
|
12501
12501
|
}
|
|
12502
12502
|
function mt(s, e = !1) {
|
|
12503
|
-
return ds(s, 1e3, 1 /
|
|
12503
|
+
return ds(s, 1e3, 1 / Vn, e);
|
|
12504
12504
|
}
|
|
12505
12505
|
function Tc(s, e = 1) {
|
|
12506
|
-
return ds(s,
|
|
12506
|
+
return ds(s, Vn, 1 / e);
|
|
12507
12507
|
}
|
|
12508
12508
|
const Ec = 10 * 1e3, Js = 1024, Sc = 1152, bc = 1536;
|
|
12509
12509
|
let st = null, yi = null;
|
|
@@ -12543,14 +12543,14 @@ class Mt {
|
|
|
12543
12543
|
const v = e.pid > -1, T = t.pid > -1, x = t.samples.length, L = e.samples.length > 0, E = o && x > 0 || x > 1;
|
|
12544
12544
|
if ((!v || L) && (!T || E) || this.ISGenerated || o) {
|
|
12545
12545
|
if (this.ISGenerated) {
|
|
12546
|
-
var R, B,
|
|
12546
|
+
var R, B, _, b;
|
|
12547
12547
|
const $ = this.videoTrackConfig;
|
|
12548
|
-
$ && (t.width !== $.width || t.height !== $.height || ((R = t.pixelRatio) == null ? void 0 : R[0]) !== ((B = $.pixelRatio) == null ? void 0 : B[0]) || ((
|
|
12548
|
+
$ && (t.width !== $.width || t.height !== $.height || ((R = t.pixelRatio) == null ? void 0 : R[0]) !== ((B = $.pixelRatio) == null ? void 0 : B[0]) || ((_ = t.pixelRatio) == null ? void 0 : _[1]) !== ((b = $.pixelRatio) == null ? void 0 : b[1])) && this.resetInitSegment();
|
|
12549
12549
|
} else
|
|
12550
12550
|
h = this.generateIS(e, t, n, a);
|
|
12551
|
-
const
|
|
12551
|
+
const C = this.isVideoContiguous;
|
|
12552
12552
|
let P = -1, w;
|
|
12553
|
-
if (E && (P = Ac(t.samples), !
|
|
12553
|
+
if (E && (P = Ac(t.samples), !C && this.config.forceKeyFrameOnDiscontinuity))
|
|
12554
12554
|
if (m = !0, P > 0) {
|
|
12555
12555
|
S.warn(`[mp4-remuxer]: Dropped ${P} out of ${x} video samples due to a missing keyframe`);
|
|
12556
12556
|
const $ = this.getVideoStartPts(t.samples);
|
|
@@ -12565,14 +12565,14 @@ class Mt {
|
|
|
12565
12565
|
if (L) {
|
|
12566
12566
|
if (e.samplerate || (S.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"), h = this.generateIS(e, t, n, a)), u = this.remuxAudio(e, g, this.isAudioContiguous, a, T || E || l === j.AUDIO ? y : void 0), E) {
|
|
12567
12567
|
const $ = u ? u.endPTS - u.startPTS : 0;
|
|
12568
|
-
t.inputTimeScale || (S.warn("[mp4-remuxer]: regenerate InitSegment as video detected"), h = this.generateIS(e, t, n, a)), c = this.remuxVideo(t, y,
|
|
12568
|
+
t.inputTimeScale || (S.warn("[mp4-remuxer]: regenerate InitSegment as video detected"), h = this.generateIS(e, t, n, a)), c = this.remuxVideo(t, y, C, $);
|
|
12569
12569
|
}
|
|
12570
12570
|
} else
|
|
12571
|
-
E && (c = this.remuxVideo(t, y,
|
|
12571
|
+
E && (c = this.remuxVideo(t, y, C, 0));
|
|
12572
12572
|
c && (c.firstKeyFrame = P, c.independent = P !== -1, c.firstKeyFramePTS = w);
|
|
12573
12573
|
}
|
|
12574
12574
|
}
|
|
12575
|
-
return this.ISGenerated && this._initPTS && this._initDTS && (i.samples.length && (f =
|
|
12575
|
+
return this.ISGenerated && this._initPTS && this._initDTS && (i.samples.length && (f = Kn(i, n, this._initPTS, this._initDTS)), r.samples.length && (d = Wn(r, n, this._initPTS))), {
|
|
12576
12576
|
audio: u,
|
|
12577
12577
|
video: c,
|
|
12578
12578
|
initSegment: h,
|
|
@@ -12679,9 +12679,9 @@ class Mt {
|
|
|
12679
12679
|
}
|
|
12680
12680
|
m = a[l - 1].dts;
|
|
12681
12681
|
const B = k + 4 * E + 8;
|
|
12682
|
-
let
|
|
12682
|
+
let _;
|
|
12683
12683
|
try {
|
|
12684
|
-
|
|
12684
|
+
_ = new Uint8Array(B);
|
|
12685
12685
|
} catch (H) {
|
|
12686
12686
|
this.observer.emit(p.ERROR, p.ERROR, {
|
|
12687
12687
|
type: q.MUX_ERROR,
|
|
@@ -12693,15 +12693,15 @@ class Mt {
|
|
|
12693
12693
|
});
|
|
12694
12694
|
return;
|
|
12695
12695
|
}
|
|
12696
|
-
const b = new DataView(
|
|
12697
|
-
b.setUint32(0, B),
|
|
12698
|
-
let
|
|
12696
|
+
const b = new DataView(_.buffer);
|
|
12697
|
+
b.setUint32(0, B), _.set(A.types.mdat, 4);
|
|
12698
|
+
let C = !1, P = Number.POSITIVE_INFINITY, w = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY, O = Number.NEGATIVE_INFINITY;
|
|
12699
12699
|
for (let H = 0; H < l; H++) {
|
|
12700
12700
|
const M = a[H], Q = M.units;
|
|
12701
12701
|
let Z = 0;
|
|
12702
12702
|
for (let ce = 0, fe = Q.length; ce < fe; ce++) {
|
|
12703
12703
|
const Se = Q[ce], ft = Se.data, si = Se.data.byteLength;
|
|
12704
|
-
b.setUint32(h, si), h += 4,
|
|
12704
|
+
b.setUint32(h, si), h += 4, _.set(ft, h), h += si, Z += 4 + si;
|
|
12705
12705
|
}
|
|
12706
12706
|
let ee;
|
|
12707
12707
|
if (H < l - 1)
|
|
@@ -12710,7 +12710,7 @@ class Mt {
|
|
|
12710
12710
|
const ce = this.config, fe = H > 0 ? M.dts - a[H - 1].dts : L;
|
|
12711
12711
|
if (ee = H > 0 ? M.pts - a[H - 1].pts : L, ce.stretchShortVideoTrack && this.nextAudioPts !== null) {
|
|
12712
12712
|
const Se = Math.floor(ce.maxBufferHole * n), ft = (r ? g + r * n : this.nextAudioPts) - M.pts;
|
|
12713
|
-
ft > Se ? (d = ft - fe, d < 0 ? d = fe :
|
|
12713
|
+
ft > Se ? (d = ft - fe, d < 0 ? d = fe : C = !0, S.log(`[mp4-remuxer]: It is approximately ${ft / 90} ms to the next segment; using duration ${d / 90} ms for the last video frame.`)) : d = fe;
|
|
12714
12714
|
} else
|
|
12715
12715
|
d = fe;
|
|
12716
12716
|
}
|
|
@@ -12737,12 +12737,12 @@ class Mt {
|
|
|
12737
12737
|
}
|
|
12738
12738
|
}
|
|
12739
12739
|
}
|
|
12740
|
-
d =
|
|
12740
|
+
d = C || !d ? L : d, this.nextAvcDts = u = m + d, this.videoSampleDuration = d, this.isVideoContiguous = !0;
|
|
12741
12741
|
const U = A.moof(e.sequenceNumber++, f, oe({}, e, {
|
|
12742
12742
|
samples: o
|
|
12743
12743
|
})), F = "video", V = {
|
|
12744
12744
|
data1: U,
|
|
12745
|
-
data2:
|
|
12745
|
+
data2: _,
|
|
12746
12746
|
startPTS: g / n,
|
|
12747
12747
|
endPTS: (y + d) / n,
|
|
12748
12748
|
startDTS: f / n,
|
|
@@ -12828,17 +12828,17 @@ class Mt {
|
|
|
12828
12828
|
const Q = H.byteLength;
|
|
12829
12829
|
y += Q, f.push(new er(!0, c, Q, 0)), E = M;
|
|
12830
12830
|
}
|
|
12831
|
-
const
|
|
12832
|
-
if (!
|
|
12831
|
+
const _ = f.length;
|
|
12832
|
+
if (!_)
|
|
12833
12833
|
return;
|
|
12834
12834
|
const b = f[f.length - 1];
|
|
12835
12835
|
this.nextAudioPts = v = E + l * b.duration;
|
|
12836
|
-
const
|
|
12836
|
+
const C = d ? new Uint8Array(0) : A.moof(e.sequenceNumber++, L / l, oe({}, e, {
|
|
12837
12837
|
samples: f
|
|
12838
12838
|
}));
|
|
12839
12839
|
e.samples = [];
|
|
12840
12840
|
const P = L / a, w = v / a, O = {
|
|
12841
|
-
data1:
|
|
12841
|
+
data1: C,
|
|
12842
12842
|
data2: k,
|
|
12843
12843
|
startPTS: P,
|
|
12844
12844
|
endPTS: w,
|
|
@@ -12847,7 +12847,7 @@ class Mt {
|
|
|
12847
12847
|
type: "audio",
|
|
12848
12848
|
hasAudio: !0,
|
|
12849
12849
|
hasVideo: !1,
|
|
12850
|
-
nb:
|
|
12850
|
+
nb: _
|
|
12851
12851
|
};
|
|
12852
12852
|
return this.isAudioContiguous = !0, O;
|
|
12853
12853
|
}
|
|
@@ -12883,7 +12883,7 @@ function Ac(s) {
|
|
|
12883
12883
|
return e;
|
|
12884
12884
|
return -1;
|
|
12885
12885
|
}
|
|
12886
|
-
function
|
|
12886
|
+
function Kn(s, e, t, i) {
|
|
12887
12887
|
const r = s.samples.length;
|
|
12888
12888
|
if (!r)
|
|
12889
12889
|
return;
|
|
@@ -12897,7 +12897,7 @@ function Vn(s, e, t, i) {
|
|
|
12897
12897
|
samples: a
|
|
12898
12898
|
};
|
|
12899
12899
|
}
|
|
12900
|
-
function
|
|
12900
|
+
function Wn(s, e, t) {
|
|
12901
12901
|
const i = s.samples.length;
|
|
12902
12902
|
if (!i)
|
|
12903
12903
|
return;
|
|
@@ -12948,7 +12948,7 @@ class Lc {
|
|
|
12948
12948
|
this.initTracks = void 0, this.initData = void 0;
|
|
12949
12949
|
return;
|
|
12950
12950
|
}
|
|
12951
|
-
const r = this.initData =
|
|
12951
|
+
const r = this.initData = pn(e);
|
|
12952
12952
|
r.audio && (t = tr(r.audio, te.AUDIO)), r.video && (i = tr(r.video, te.VIDEO));
|
|
12953
12953
|
const n = {};
|
|
12954
12954
|
r.audio && r.video ? n.audiovideo = {
|
|
@@ -13015,7 +13015,7 @@ class Lc {
|
|
|
13015
13015
|
nb: 1,
|
|
13016
13016
|
dropped: 0
|
|
13017
13017
|
};
|
|
13018
|
-
return h.audio = R.type === "audio" ? R : void 0, h.video = R.type !== "audio" ? R : void 0, h.initSegment = f, h.id3 =
|
|
13018
|
+
return h.audio = R.type === "audio" ? R : void 0, h.video = R.type !== "audio" ? R : void 0, h.initSegment = f, h.id3 = Kn(i, n, c, c), r.samples.length && (h.text = Wn(r, n, c)), h;
|
|
13019
13019
|
}
|
|
13020
13020
|
}
|
|
13021
13021
|
function Rc(s, e, t, i) {
|
|
@@ -13090,17 +13090,17 @@ class ir {
|
|
|
13090
13090
|
defaultInitPts: v,
|
|
13091
13091
|
duration: T,
|
|
13092
13092
|
initSegmentData: x
|
|
13093
|
-
} = l, L =
|
|
13093
|
+
} = l, L = _c(a, t);
|
|
13094
13094
|
if (L && L.method === "AES-128") {
|
|
13095
13095
|
const B = this.getDecrypter();
|
|
13096
13096
|
if (B.isSync()) {
|
|
13097
|
-
let
|
|
13098
|
-
if (i.part > -1 && (
|
|
13097
|
+
let _ = B.softwareDecrypt(a, L.key.buffer, L.iv.buffer);
|
|
13098
|
+
if (i.part > -1 && (_ = B.flush()), !_)
|
|
13099
13099
|
return n.executeEnd = Ke(), vi(i);
|
|
13100
|
-
a = new Uint8Array(
|
|
13100
|
+
a = new Uint8Array(_);
|
|
13101
13101
|
} else
|
|
13102
|
-
return this.decryptionPromise = B.webCryptoDecrypt(a, L.key.buffer, L.iv.buffer).then((
|
|
13103
|
-
const b = this.push(
|
|
13102
|
+
return this.decryptionPromise = B.webCryptoDecrypt(a, L.key.buffer, L.iv.buffer).then((_) => {
|
|
13103
|
+
const b = this.push(_, null, i);
|
|
13104
13104
|
return this.decryptionPromise = null, b;
|
|
13105
13105
|
}), this.decryptionPromise;
|
|
13106
13106
|
}
|
|
@@ -13238,7 +13238,7 @@ class ir {
|
|
|
13238
13238
|
return e || (e = this.decrypter = new os(this.config)), e;
|
|
13239
13239
|
}
|
|
13240
13240
|
}
|
|
13241
|
-
function
|
|
13241
|
+
function _c(s, e) {
|
|
13242
13242
|
let t = null;
|
|
13243
13243
|
return s.byteLength > 0 && (e == null ? void 0 : e.key) != null && e.iv !== null && e.method != null && (t = e), t;
|
|
13244
13244
|
}
|
|
@@ -13249,7 +13249,7 @@ const vi = (s) => ({
|
|
|
13249
13249
|
function Bt(s) {
|
|
13250
13250
|
return "then" in s && s.then instanceof Function;
|
|
13251
13251
|
}
|
|
13252
|
-
class
|
|
13252
|
+
class Cc {
|
|
13253
13253
|
constructor(e, t, i, r, n) {
|
|
13254
13254
|
this.audioCodec = void 0, this.videoCodec = void 0, this.initSegmentData = void 0, this.duration = void 0, this.defaultInitPts = void 0, this.audioCodec = e, this.videoCodec = t, this.initSegmentData = i, this.duration = r, this.defaultInitPts = n || null;
|
|
13255
13255
|
}
|
|
@@ -13259,7 +13259,7 @@ class Dc {
|
|
|
13259
13259
|
this.discontinuity = void 0, this.contiguous = void 0, this.accurateTimeOffset = void 0, this.trackSwitch = void 0, this.timeOffset = void 0, this.initSegmentChange = void 0, this.discontinuity = e, this.contiguous = t, this.accurateTimeOffset = i, this.trackSwitch = r, this.timeOffset = n, this.initSegmentChange = a;
|
|
13260
13260
|
}
|
|
13261
13261
|
}
|
|
13262
|
-
var
|
|
13262
|
+
var zn = { exports: {} };
|
|
13263
13263
|
(function(s) {
|
|
13264
13264
|
var e = Object.prototype.hasOwnProperty, t = "~";
|
|
13265
13265
|
function i() {
|
|
@@ -13369,9 +13369,9 @@ var Wn = { exports: {} };
|
|
|
13369
13369
|
var u;
|
|
13370
13370
|
return c ? (u = t ? t + c : c, this._events[u] && a(this, u)) : (this._events = new i(), this._eventsCount = 0), this;
|
|
13371
13371
|
}, o.prototype.off = o.prototype.removeListener, o.prototype.addListener = o.prototype.on, o.prefixed = t, o.EventEmitter = o, s.exports = o;
|
|
13372
|
-
})(
|
|
13373
|
-
var Ic =
|
|
13374
|
-
class
|
|
13372
|
+
})(zn);
|
|
13373
|
+
var Ic = zn.exports, fs = /* @__PURE__ */ Ja(Ic);
|
|
13374
|
+
class Yn {
|
|
13375
13375
|
constructor(e, t, i, r) {
|
|
13376
13376
|
this.error = null, this.hls = void 0, this.id = void 0, this.observer = void 0, this.frag = null, this.part = null, this.useWorker = void 0, this.workerContext = null, this.onwmsg = void 0, this.transmuxer = null, this.onTransmuxComplete = void 0, this.onFlush = void 0;
|
|
13377
13377
|
const n = e.config;
|
|
@@ -13442,7 +13442,7 @@ class zn {
|
|
|
13442
13442
|
transmuxer: f
|
|
13443
13443
|
} = this, m = a ? a.start : n.start, g = n.decryptdata, y = this.frag, v = !(y && n.cc === y.cc), T = !(y && c.level === y.level), x = y ? c.sn - y.sn : -1, L = this.part ? c.part - this.part.index : -1, E = x === 0 && c.id > 1 && c.id === (y == null ? void 0 : y.stats.chunkCount), k = !T && (x === 1 || x === 0 && (L === 1 || E && L <= 0)), R = self.performance.now();
|
|
13444
13444
|
(T || x || n.stats.parsing.start === 0) && (n.stats.parsing.start = R), a && (L || !k) && (a.stats.parsing.start = R);
|
|
13445
|
-
const B = !(y && ((h = n.initSegment) == null ? void 0 : h.url) === ((d = y.initSegment) == null ? void 0 : d.url)),
|
|
13445
|
+
const B = !(y && ((h = n.initSegment) == null ? void 0 : h.url) === ((d = y.initSegment) == null ? void 0 : d.url)), _ = new Dc(v, k, l, T, m, B);
|
|
13446
13446
|
if (!k || v || B) {
|
|
13447
13447
|
S.log(`[transmuxer-interface, ${n.type}]: Starting new transmux session for sn: ${c.sn} p: ${c.part} level: ${c.level} id: ${c.id}
|
|
13448
13448
|
discontinuity: ${v}
|
|
@@ -13451,7 +13451,7 @@ class zn {
|
|
|
13451
13451
|
accurateTimeOffset: ${l}
|
|
13452
13452
|
timeOffset: ${m}
|
|
13453
13453
|
initSegmentChange: ${B}`);
|
|
13454
|
-
const b = new
|
|
13454
|
+
const b = new Cc(i, r, t, o, u);
|
|
13455
13455
|
this.configureTransmuxer(b);
|
|
13456
13456
|
}
|
|
13457
13457
|
if (this.frag = n, this.part = a, this.workerContext)
|
|
@@ -13460,14 +13460,14 @@ class zn {
|
|
|
13460
13460
|
data: e,
|
|
13461
13461
|
decryptdata: g,
|
|
13462
13462
|
chunkMeta: c,
|
|
13463
|
-
state:
|
|
13463
|
+
state: _
|
|
13464
13464
|
}, e instanceof ArrayBuffer ? [e] : []);
|
|
13465
13465
|
else if (f) {
|
|
13466
|
-
const b = f.push(e, g, c,
|
|
13467
|
-
Bt(b) ? (f.async = !0, b.then((
|
|
13468
|
-
this.handleTransmuxComplete(
|
|
13469
|
-
}).catch((
|
|
13470
|
-
this.transmuxerError(
|
|
13466
|
+
const b = f.push(e, g, c, _);
|
|
13467
|
+
Bt(b) ? (f.async = !0, b.then((C) => {
|
|
13468
|
+
this.handleTransmuxComplete(C);
|
|
13469
|
+
}).catch((C) => {
|
|
13470
|
+
this.transmuxerError(C, c, "transmuxer-interface push error");
|
|
13471
13471
|
})) : (f.async = !1, this.handleTransmuxComplete(b));
|
|
13472
13472
|
}
|
|
13473
13473
|
}
|
|
@@ -13545,7 +13545,7 @@ class zn {
|
|
|
13545
13545
|
e.chunkMeta.transmuxing.end = self.performance.now(), this.onTransmuxComplete(e);
|
|
13546
13546
|
}
|
|
13547
13547
|
}
|
|
13548
|
-
function
|
|
13548
|
+
function jn(s, e) {
|
|
13549
13549
|
if (s.length !== e.length)
|
|
13550
13550
|
return !1;
|
|
13551
13551
|
for (let t = 0; t < s.length; t++)
|
|
@@ -13813,7 +13813,7 @@ class wc extends ls {
|
|
|
13813
13813
|
}
|
|
13814
13814
|
const h = a.defaultAudioCodec || c.audioCodec || "mp4a.40.2";
|
|
13815
13815
|
let d = this.transmuxer;
|
|
13816
|
-
d || (d = this.transmuxer = new
|
|
13816
|
+
d || (d = this.transmuxer = new Yn(this.hls, j.AUDIO, this._handleTransmuxComplete.bind(this), this._handleTransmuxerFlush.bind(this)));
|
|
13817
13817
|
const f = this.initPTS[i.cc], m = (t = i.initSegment) == null ? void 0 : t.data;
|
|
13818
13818
|
if (f !== void 0) {
|
|
13819
13819
|
const y = r ? r.index : -1, v = y !== -1, T = new as(i.level, i.sn, i.stats.chunkCount, n.byteLength, y, v);
|
|
@@ -13825,7 +13825,7 @@ class wc extends ls {
|
|
|
13825
13825
|
} = this.waitingData = this.waitingData || {
|
|
13826
13826
|
frag: i,
|
|
13827
13827
|
part: r,
|
|
13828
|
-
cache: new
|
|
13828
|
+
cache: new wn(),
|
|
13829
13829
|
complete: !1
|
|
13830
13830
|
};
|
|
13831
13831
|
g.push(new Uint8Array(n)), this.waitingVideoCC = this.videoTrackCC, this.state = N.WAITING_INIT_PTS;
|
|
@@ -14342,7 +14342,7 @@ class Pc extends ls {
|
|
|
14342
14342
|
onSubtitleTracksUpdated(e, {
|
|
14343
14343
|
subtitleTracks: t
|
|
14344
14344
|
}) {
|
|
14345
|
-
if (this.levels &&
|
|
14345
|
+
if (this.levels && jn(this.levels, t)) {
|
|
14346
14346
|
this.levels = t.map((i) => new ct(i));
|
|
14347
14347
|
return;
|
|
14348
14348
|
}
|
|
@@ -14951,8 +14951,8 @@ class Nc {
|
|
|
14951
14951
|
levelCodec: h,
|
|
14952
14952
|
container: d,
|
|
14953
14953
|
metadata: f
|
|
14954
|
-
} = t[a], m =
|
|
14955
|
-
let y =
|
|
14954
|
+
} = t[a], m = Cs(l.codec, l.levelCodec), g = m == null ? void 0 : m.replace(nr, "$1");
|
|
14955
|
+
let y = Cs(u, h);
|
|
14956
14956
|
const v = (o = y) == null ? void 0 : o.replace(nr, "$1");
|
|
14957
14957
|
if (y && g !== v) {
|
|
14958
14958
|
a.slice(0, 5) === "audio" && (y = Kt(y, this.hls.config.preferManagedMediaSource));
|
|
@@ -15593,10 +15593,10 @@ const or = {
|
|
|
15593
15593
|
// Box drawings heavy up and right
|
|
15594
15594
|
207: 9499
|
|
15595
15595
|
// Box drawings heavy up and left
|
|
15596
|
-
},
|
|
15596
|
+
}, qn = function(e) {
|
|
15597
15597
|
let t = e;
|
|
15598
15598
|
return or.hasOwnProperty(e) && (t = or[e]), String.fromCharCode(t);
|
|
15599
|
-
},
|
|
15599
|
+
}, Ce = 15, Ue = 100, $c = {
|
|
15600
15600
|
17: 1,
|
|
15601
15601
|
18: 3,
|
|
15602
15602
|
21: 5,
|
|
@@ -15648,7 +15648,7 @@ const qe = function(e) {
|
|
|
15648
15648
|
t.push(e[i].toString(16));
|
|
15649
15649
|
return t;
|
|
15650
15650
|
};
|
|
15651
|
-
class
|
|
15651
|
+
class Xn {
|
|
15652
15652
|
constructor() {
|
|
15653
15653
|
this.foreground = "white", this.underline = !1, this.italics = !1, this.background = "black", this.flash = !1;
|
|
15654
15654
|
}
|
|
@@ -15677,7 +15677,7 @@ class qn {
|
|
|
15677
15677
|
}
|
|
15678
15678
|
class Wc {
|
|
15679
15679
|
constructor() {
|
|
15680
|
-
this.uchar = " ", this.penState = new
|
|
15680
|
+
this.uchar = " ", this.penState = new Xn();
|
|
15681
15681
|
}
|
|
15682
15682
|
reset() {
|
|
15683
15683
|
this.uchar = " ", this.penState.reset();
|
|
@@ -15700,7 +15700,7 @@ class Wc {
|
|
|
15700
15700
|
}
|
|
15701
15701
|
class zc {
|
|
15702
15702
|
constructor(e) {
|
|
15703
|
-
this.chars = [], this.pos = 0, this.currPenState = new
|
|
15703
|
+
this.chars = [], this.pos = 0, this.currPenState = new Xn(), this.cueStartTime = null, this.logger = void 0;
|
|
15704
15704
|
for (let t = 0; t < Ue; t++)
|
|
15705
15705
|
this.chars.push(new Wc());
|
|
15706
15706
|
this.logger = e;
|
|
@@ -15748,7 +15748,7 @@ class zc {
|
|
|
15748
15748
|
}
|
|
15749
15749
|
insertChar(e) {
|
|
15750
15750
|
e >= 144 && this.backSpace();
|
|
15751
|
-
const t =
|
|
15751
|
+
const t = qn(e);
|
|
15752
15752
|
if (this.pos >= Ue) {
|
|
15753
15753
|
this.logger.log(0, () => "Cannot insert " + e.toString(16) + " (" + t + ") at position " + this.pos + ". Skipping it!");
|
|
15754
15754
|
return;
|
|
@@ -15781,19 +15781,19 @@ class zc {
|
|
|
15781
15781
|
}
|
|
15782
15782
|
class xi {
|
|
15783
15783
|
constructor(e) {
|
|
15784
|
-
this.rows = [], this.currRow =
|
|
15785
|
-
for (let t = 0; t <
|
|
15784
|
+
this.rows = [], this.currRow = Ce - 1, this.nrRollUpRows = null, this.lastOutputScreen = null, this.logger = void 0;
|
|
15785
|
+
for (let t = 0; t < Ce; t++)
|
|
15786
15786
|
this.rows.push(new zc(e));
|
|
15787
15787
|
this.logger = e;
|
|
15788
15788
|
}
|
|
15789
15789
|
reset() {
|
|
15790
|
-
for (let e = 0; e <
|
|
15790
|
+
for (let e = 0; e < Ce; e++)
|
|
15791
15791
|
this.rows[e].clear();
|
|
15792
|
-
this.currRow =
|
|
15792
|
+
this.currRow = Ce - 1;
|
|
15793
15793
|
}
|
|
15794
15794
|
equals(e) {
|
|
15795
15795
|
let t = !0;
|
|
15796
|
-
for (let i = 0; i <
|
|
15796
|
+
for (let i = 0; i < Ce; i++)
|
|
15797
15797
|
if (!this.rows[i].equals(e.rows[i])) {
|
|
15798
15798
|
t = !1;
|
|
15799
15799
|
break;
|
|
@@ -15801,12 +15801,12 @@ class xi {
|
|
|
15801
15801
|
return t;
|
|
15802
15802
|
}
|
|
15803
15803
|
copy(e) {
|
|
15804
|
-
for (let t = 0; t <
|
|
15804
|
+
for (let t = 0; t < Ce; t++)
|
|
15805
15805
|
this.rows[t].copy(e.rows[t]);
|
|
15806
15806
|
}
|
|
15807
15807
|
isEmpty() {
|
|
15808
15808
|
let e = !0;
|
|
15809
|
-
for (let t = 0; t <
|
|
15809
|
+
for (let t = 0; t < Ce; t++)
|
|
15810
15810
|
if (!this.rows[t].isEmpty()) {
|
|
15811
15811
|
e = !1;
|
|
15812
15812
|
break;
|
|
@@ -15838,7 +15838,7 @@ class xi {
|
|
|
15838
15838
|
this.logger.log(2, () => "pacData = " + JSON.stringify(e));
|
|
15839
15839
|
let t = e.row - 1;
|
|
15840
15840
|
if (this.nrRollUpRows && t < this.nrRollUpRows - 1 && (t = this.nrRollUpRows - 1), this.nrRollUpRows && this.currRow !== t) {
|
|
15841
|
-
for (let o = 0; o <
|
|
15841
|
+
for (let o = 0; o < Ce; o++)
|
|
15842
15842
|
this.rows[o].clear();
|
|
15843
15843
|
const n = this.currRow + 1 - this.nrRollUpRows, a = this.lastOutputScreen;
|
|
15844
15844
|
if (a) {
|
|
@@ -15888,7 +15888,7 @@ class xi {
|
|
|
15888
15888
|
e = e || !1;
|
|
15889
15889
|
const t = [];
|
|
15890
15890
|
let i = "", r = -1;
|
|
15891
|
-
for (let n = 0; n <
|
|
15891
|
+
for (let n = 0; n < Ce; n++) {
|
|
15892
15892
|
const a = this.rows[n].getTextString();
|
|
15893
15893
|
a && (r = n + 1, e ? t.push("Row " + r + ": '" + a + "'") : t.push(a.trim()));
|
|
15894
15894
|
}
|
|
@@ -15901,10 +15901,10 @@ class xi {
|
|
|
15901
15901
|
}
|
|
15902
15902
|
class lr {
|
|
15903
15903
|
constructor(e, t, i) {
|
|
15904
|
-
this.chNr = void 0, this.outputFilter = void 0, this.mode = void 0, this.verbose = void 0, this.displayedMemory = void 0, this.nonDisplayedMemory = void 0, this.lastOutputScreen = void 0, this.currRollUpRow = void 0, this.writeScreen = void 0, this.cueStartTime = void 0, this.logger = void 0, this.chNr = e, this.outputFilter = t, this.mode = null, this.verbose = 0, this.displayedMemory = new xi(i), this.nonDisplayedMemory = new xi(i), this.lastOutputScreen = new xi(i), this.currRollUpRow = this.displayedMemory.rows[
|
|
15904
|
+
this.chNr = void 0, this.outputFilter = void 0, this.mode = void 0, this.verbose = void 0, this.displayedMemory = void 0, this.nonDisplayedMemory = void 0, this.lastOutputScreen = void 0, this.currRollUpRow = void 0, this.writeScreen = void 0, this.cueStartTime = void 0, this.logger = void 0, this.chNr = e, this.outputFilter = t, this.mode = null, this.verbose = 0, this.displayedMemory = new xi(i), this.nonDisplayedMemory = new xi(i), this.lastOutputScreen = new xi(i), this.currRollUpRow = this.displayedMemory.rows[Ce - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null, this.logger = i;
|
|
15905
15905
|
}
|
|
15906
15906
|
reset() {
|
|
15907
|
-
this.mode = null, this.displayedMemory.reset(), this.nonDisplayedMemory.reset(), this.lastOutputScreen.reset(), this.outputFilter.reset(), this.currRollUpRow = this.displayedMemory.rows[
|
|
15907
|
+
this.mode = null, this.displayedMemory.reset(), this.nonDisplayedMemory.reset(), this.lastOutputScreen.reset(), this.outputFilter.reset(), this.currRollUpRow = this.displayedMemory.rows[Ce - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null;
|
|
15908
15908
|
}
|
|
15909
15909
|
getHandler() {
|
|
15910
15910
|
return this.outputFilter;
|
|
@@ -16090,7 +16090,7 @@ class cr {
|
|
|
16090
16090
|
let i, r = null, n = null;
|
|
16091
16091
|
if (e >= 25 ? (i = 2, n = e - 8) : (i = 1, n = e), n >= 17 && n <= 19) {
|
|
16092
16092
|
let a;
|
|
16093
|
-
n === 17 ? a = t + 80 : n === 18 ? a = t + 112 : a = t + 144, this.logger.log(2, "Special char '" +
|
|
16093
|
+
n === 17 ? a = t + 80 : n === 18 ? a = t + 112 : a = t + 144, this.logger.log(2, "Special char '" + qn(a) + "' in channel " + i), r = [a];
|
|
16094
16094
|
} else
|
|
16095
16095
|
e >= 32 && e <= 127 && (r = t === 0 ? [e] : [e, t]);
|
|
16096
16096
|
if (r) {
|
|
@@ -16145,7 +16145,7 @@ function hr() {
|
|
|
16145
16145
|
b: null
|
|
16146
16146
|
};
|
|
16147
16147
|
}
|
|
16148
|
-
class
|
|
16148
|
+
class Ct {
|
|
16149
16149
|
constructor(e, t) {
|
|
16150
16150
|
this.timelineController = void 0, this.cueRanges = [], this.trackName = void 0, this.startTime = null, this.endTime = null, this.screen = null, this.timelineController = e, this.trackName = t;
|
|
16151
16151
|
}
|
|
@@ -16189,7 +16189,7 @@ var ms = function() {
|
|
|
16189
16189
|
enumerable: !0
|
|
16190
16190
|
};
|
|
16191
16191
|
u.hasBeenReset = !1;
|
|
16192
|
-
let d = "", f = !1, m = o, g = l, y = c, v = null, T = "", x = !0, L = "auto", E = "start", k = 50, R = "middle", B = 50,
|
|
16192
|
+
let d = "", f = !1, m = o, g = l, y = c, v = null, T = "", x = !0, L = "auto", E = "start", k = 50, R = "middle", B = 50, _ = "middle";
|
|
16193
16193
|
Object.defineProperty(u, "id", n({}, h, {
|
|
16194
16194
|
get: function() {
|
|
16195
16195
|
return d;
|
|
@@ -16241,10 +16241,10 @@ var ms = function() {
|
|
|
16241
16241
|
return T;
|
|
16242
16242
|
},
|
|
16243
16243
|
set: function(b) {
|
|
16244
|
-
const
|
|
16245
|
-
if (
|
|
16244
|
+
const C = i(b);
|
|
16245
|
+
if (C === !1)
|
|
16246
16246
|
throw new SyntaxError("An invalid or illegal string was specified.");
|
|
16247
|
-
T =
|
|
16247
|
+
T = C, this.hasBeenReset = !0;
|
|
16248
16248
|
}
|
|
16249
16249
|
})), Object.defineProperty(u, "snapToLines", n({}, h, {
|
|
16250
16250
|
get: function() {
|
|
@@ -16267,10 +16267,10 @@ var ms = function() {
|
|
|
16267
16267
|
return E;
|
|
16268
16268
|
},
|
|
16269
16269
|
set: function(b) {
|
|
16270
|
-
const
|
|
16271
|
-
if (!
|
|
16270
|
+
const C = r(b);
|
|
16271
|
+
if (!C)
|
|
16272
16272
|
throw new SyntaxError("An invalid or illegal string was specified.");
|
|
16273
|
-
E =
|
|
16273
|
+
E = C, this.hasBeenReset = !0;
|
|
16274
16274
|
}
|
|
16275
16275
|
})), Object.defineProperty(u, "position", n({}, h, {
|
|
16276
16276
|
get: function() {
|
|
@@ -16286,10 +16286,10 @@ var ms = function() {
|
|
|
16286
16286
|
return R;
|
|
16287
16287
|
},
|
|
16288
16288
|
set: function(b) {
|
|
16289
|
-
const
|
|
16290
|
-
if (!
|
|
16289
|
+
const C = r(b);
|
|
16290
|
+
if (!C)
|
|
16291
16291
|
throw new SyntaxError("An invalid or illegal string was specified.");
|
|
16292
|
-
R =
|
|
16292
|
+
R = C, this.hasBeenReset = !0;
|
|
16293
16293
|
}
|
|
16294
16294
|
})), Object.defineProperty(u, "size", n({}, h, {
|
|
16295
16295
|
get: function() {
|
|
@@ -16302,13 +16302,13 @@ var ms = function() {
|
|
|
16302
16302
|
}
|
|
16303
16303
|
})), Object.defineProperty(u, "align", n({}, h, {
|
|
16304
16304
|
get: function() {
|
|
16305
|
-
return
|
|
16305
|
+
return _;
|
|
16306
16306
|
},
|
|
16307
16307
|
set: function(b) {
|
|
16308
|
-
const
|
|
16309
|
-
if (!
|
|
16308
|
+
const C = r(b);
|
|
16309
|
+
if (!C)
|
|
16310
16310
|
throw new SyntaxError("An invalid or illegal string was specified.");
|
|
16311
|
-
|
|
16311
|
+
_ = C, this.hasBeenReset = !0;
|
|
16312
16312
|
}
|
|
16313
16313
|
})), u.displayState = void 0;
|
|
16314
16314
|
}
|
|
@@ -16326,7 +16326,7 @@ class Yc {
|
|
|
16326
16326
|
return decodeURIComponent(encodeURIComponent(e));
|
|
16327
16327
|
}
|
|
16328
16328
|
}
|
|
16329
|
-
function
|
|
16329
|
+
function Zn(s) {
|
|
16330
16330
|
function e(i, r, n, a) {
|
|
16331
16331
|
return (i | 0) * 3600 + (r | 0) * 60 + (n | 0) + parseFloat(a || 0);
|
|
16332
16332
|
}
|
|
@@ -16375,7 +16375,7 @@ class jc {
|
|
|
16375
16375
|
return !1;
|
|
16376
16376
|
}
|
|
16377
16377
|
}
|
|
16378
|
-
function
|
|
16378
|
+
function Qn(s, e, t, i) {
|
|
16379
16379
|
const r = i ? s.split(i) : [s];
|
|
16380
16380
|
for (const n in r) {
|
|
16381
16381
|
if (typeof r[n] != "string")
|
|
@@ -16391,14 +16391,14 @@ const Hi = new ms(0, 0, ""), Dt = Hi.align === "middle" ? "middle" : "center";
|
|
|
16391
16391
|
function qc(s, e, t) {
|
|
16392
16392
|
const i = s;
|
|
16393
16393
|
function r() {
|
|
16394
|
-
const o =
|
|
16394
|
+
const o = Zn(s);
|
|
16395
16395
|
if (o === null)
|
|
16396
16396
|
throw new Error("Malformed timestamp: " + i);
|
|
16397
16397
|
return s = s.replace(/^[^\sa-zA-Z-]+/, ""), o;
|
|
16398
16398
|
}
|
|
16399
16399
|
function n(o, l) {
|
|
16400
16400
|
const c = new jc();
|
|
16401
|
-
|
|
16401
|
+
Qn(o, function(d, f) {
|
|
16402
16402
|
let m;
|
|
16403
16403
|
switch (d) {
|
|
16404
16404
|
case "region":
|
|
@@ -16437,7 +16437,7 @@ function qc(s, e, t) {
|
|
|
16437
16437
|
throw new Error("Malformed time stamp (time stamps must be separated by '-->'): " + i);
|
|
16438
16438
|
s = s.slice(3), a(), e.endTime = r(), a(), n(s, e);
|
|
16439
16439
|
}
|
|
16440
|
-
function
|
|
16440
|
+
function Jn(s) {
|
|
16441
16441
|
return s.replace(/<br(?: \/)?>/gi, `
|
|
16442
16442
|
`);
|
|
16443
16443
|
}
|
|
@@ -16452,7 +16452,7 @@ class Xc {
|
|
|
16452
16452
|
}));
|
|
16453
16453
|
function i() {
|
|
16454
16454
|
let n = t.buffer, a = 0;
|
|
16455
|
-
for (n =
|
|
16455
|
+
for (n = Jn(n); a < n.length && n[a] !== "\r" && n[a] !== `
|
|
16456
16456
|
`; )
|
|
16457
16457
|
++a;
|
|
16458
16458
|
const o = n.slice(0, a);
|
|
@@ -16460,7 +16460,7 @@ class Xc {
|
|
|
16460
16460
|
` && ++a, t.buffer = n.slice(a), o;
|
|
16461
16461
|
}
|
|
16462
16462
|
function r(n) {
|
|
16463
|
-
|
|
16463
|
+
Qn(n, function(a, o) {
|
|
16464
16464
|
}, /:/);
|
|
16465
16465
|
}
|
|
16466
16466
|
try {
|
|
@@ -16619,7 +16619,7 @@ function eu(s, e, t, i, r, n, a) {
|
|
|
16619
16619
|
`);
|
|
16620
16620
|
}), o.flush();
|
|
16621
16621
|
}
|
|
16622
|
-
const Si = "stpp.ttml.im1t",
|
|
16622
|
+
const Si = "stpp.ttml.im1t", ea = /^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/, ta = /^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/, tu = {
|
|
16623
16623
|
left: "start",
|
|
16624
16624
|
center: "center",
|
|
16625
16625
|
right: "end",
|
|
@@ -16650,7 +16650,7 @@ function iu(s, e) {
|
|
|
16650
16650
|
tickRate: 0
|
|
16651
16651
|
}, a = Object.keys(n).reduce((h, d) => (h[d] = r.getAttribute(`ttp:${d}`) || n[d], h), {}), o = r.getAttribute("xml:space") !== "preserve", l = fr(bi(r, "styling", "style")), c = fr(bi(r, "layout", "region")), u = bi(r, "body", "[begin]");
|
|
16652
16652
|
return [].map.call(u, (h) => {
|
|
16653
|
-
const d =
|
|
16653
|
+
const d = ia(h, o);
|
|
16654
16654
|
if (!d || !h.hasAttribute("begin"))
|
|
16655
16655
|
return null;
|
|
16656
16656
|
const f = Li(h.getAttribute("begin"), a), m = Li(h.getAttribute("dur"), a);
|
|
@@ -16684,11 +16684,11 @@ function fr(s) {
|
|
|
16684
16684
|
return i && (e[i] = t), e;
|
|
16685
16685
|
}, {});
|
|
16686
16686
|
}
|
|
16687
|
-
function
|
|
16687
|
+
function ia(s, e) {
|
|
16688
16688
|
return [].slice.call(s.childNodes).reduce((t, i, r) => {
|
|
16689
16689
|
var n;
|
|
16690
16690
|
return i.nodeName === "br" && r ? t + `
|
|
16691
|
-
` : (n = i.childNodes) != null && n.length ?
|
|
16691
|
+
` : (n = i.childNodes) != null && n.length ? ia(i, e) : e ? t + i.textContent.trim().replace(/\s+/g, " ") : t + i.textContent;
|
|
16692
16692
|
}, "");
|
|
16693
16693
|
}
|
|
16694
16694
|
function su(s, e, t) {
|
|
@@ -16722,15 +16722,15 @@ function mr(s) {
|
|
|
16722
16722
|
function Li(s, e) {
|
|
16723
16723
|
if (!s)
|
|
16724
16724
|
return null;
|
|
16725
|
-
let t =
|
|
16726
|
-
return t === null && (
|
|
16725
|
+
let t = Zn(s);
|
|
16726
|
+
return t === null && (ea.test(s) ? t = ru(s, e) : ta.test(s) && (t = nu(s, e))), t;
|
|
16727
16727
|
}
|
|
16728
16728
|
function ru(s, e) {
|
|
16729
|
-
const t =
|
|
16729
|
+
const t = ea.exec(s), i = (t[4] | 0) + (t[5] | 0) / e.subFrameRate;
|
|
16730
16730
|
return (t[1] | 0) * 3600 + (t[2] | 0) * 60 + (t[3] | 0) + i / e.frameRate;
|
|
16731
16731
|
}
|
|
16732
16732
|
function nu(s, e) {
|
|
16733
|
-
const t =
|
|
16733
|
+
const t = ta.exec(s), i = Number(t[1]);
|
|
16734
16734
|
switch (t[2]) {
|
|
16735
16735
|
case "h":
|
|
16736
16736
|
return i * 3600;
|
|
@@ -16774,7 +16774,7 @@ class au {
|
|
|
16774
16774
|
}
|
|
16775
16775
|
initCea608Parsers() {
|
|
16776
16776
|
if (this.config.enableCEA708Captions && (!this.cea608Parser1 || !this.cea608Parser2)) {
|
|
16777
|
-
const e = new
|
|
16777
|
+
const e = new Ct(this, "textTrack1"), t = new Ct(this, "textTrack2"), i = new Ct(this, "textTrack3"), r = new Ct(this, "textTrack4");
|
|
16778
16778
|
this.cea608Parser1 = new cr(1, e, t), this.cea608Parser2 = new cr(3, i, r);
|
|
16779
16779
|
}
|
|
16780
16780
|
}
|
|
@@ -16845,7 +16845,7 @@ class au {
|
|
|
16845
16845
|
languageCode: a
|
|
16846
16846
|
} = t[e], o = this.getExistingTrack(n, a);
|
|
16847
16847
|
if (o)
|
|
16848
|
-
i[e] = o, nt(i[e]),
|
|
16848
|
+
i[e] = o, nt(i[e]), Sn(i[e], r);
|
|
16849
16849
|
else {
|
|
16850
16850
|
const l = this.createTextTrack("captions", n, a);
|
|
16851
16851
|
l && (l[e] = !0, i[e] = l);
|
|
@@ -16901,7 +16901,7 @@ class au {
|
|
|
16901
16901
|
onSubtitleTracksUpdated(e, t) {
|
|
16902
16902
|
const i = t.subtitleTracks || [], r = i.some((n) => n.textCodec === Si);
|
|
16903
16903
|
if (this.config.enableWebVTT || r && this.config.enableIMSC1) {
|
|
16904
|
-
if (
|
|
16904
|
+
if (jn(this.tracks, i)) {
|
|
16905
16905
|
this.tracks = i;
|
|
16906
16906
|
return;
|
|
16907
16907
|
}
|
|
@@ -16921,7 +16921,7 @@ class au {
|
|
|
16921
16921
|
if (u)
|
|
16922
16922
|
nt(u);
|
|
16923
16923
|
else {
|
|
16924
|
-
const h =
|
|
16924
|
+
const h = sa(l);
|
|
16925
16925
|
u = this.createTextTrack(h, l.name, l.lang), u && (u.mode = "disabled");
|
|
16926
16926
|
}
|
|
16927
16927
|
u && this.textTracks.push(u);
|
|
@@ -17053,7 +17053,7 @@ class au {
|
|
|
17053
17053
|
const r = this.textTracks[t];
|
|
17054
17054
|
if (!r || r.mode === "disabled")
|
|
17055
17055
|
return;
|
|
17056
|
-
e.forEach((n) =>
|
|
17056
|
+
e.forEach((n) => bn(r, n));
|
|
17057
17057
|
} else {
|
|
17058
17058
|
const r = this.tracks[t];
|
|
17059
17059
|
if (!r)
|
|
@@ -17135,11 +17135,11 @@ class au {
|
|
|
17135
17135
|
return t;
|
|
17136
17136
|
}
|
|
17137
17137
|
}
|
|
17138
|
-
function
|
|
17138
|
+
function sa(s) {
|
|
17139
17139
|
return s.characteristics && /transcribes-spoken-dialog/gi.test(s.characteristics) && /describes-music-and-sound/gi.test(s.characteristics) ? "captions" : "subtitles";
|
|
17140
17140
|
}
|
|
17141
17141
|
function gr(s, e) {
|
|
17142
|
-
return !!s && s.kind ===
|
|
17142
|
+
return !!s && s.kind === sa(e) && Gi(e, s);
|
|
17143
17143
|
}
|
|
17144
17144
|
function ou(s, e, t, i) {
|
|
17145
17145
|
return Math.min(e, i) - Math.max(s, t);
|
|
@@ -17393,7 +17393,7 @@ class ot {
|
|
|
17393
17393
|
} = this.config;
|
|
17394
17394
|
if (typeof i != "function") {
|
|
17395
17395
|
let r = `Configured requestMediaKeySystemAccess is not a function ${i}`;
|
|
17396
|
-
return
|
|
17396
|
+
return cn === null && self.location.protocol === "http:" && (r = `navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`), Promise.reject(new Error(r));
|
|
17397
17397
|
}
|
|
17398
17398
|
return i(e, t);
|
|
17399
17399
|
}
|
|
@@ -17528,7 +17528,7 @@ class ot {
|
|
|
17528
17528
|
if (t === "sinf" && this.config.drmSystems[re.FAIRPLAY]) {
|
|
17529
17529
|
const u = le(new Uint8Array(i));
|
|
17530
17530
|
try {
|
|
17531
|
-
const h = ts(JSON.parse(u).sinf), d =
|
|
17531
|
+
const h = ts(JSON.parse(u).sinf), d = yn(new Uint8Array(h));
|
|
17532
17532
|
if (!d)
|
|
17533
17533
|
return;
|
|
17534
17534
|
r = d.subarray(8, 24), n = re.FAIRPLAY;
|
|
@@ -17540,7 +17540,7 @@ class ot {
|
|
|
17540
17540
|
const u = Ko(i);
|
|
17541
17541
|
if (u === null)
|
|
17542
17542
|
return;
|
|
17543
|
-
u.version === 0 && u.systemId ===
|
|
17543
|
+
u.version === 0 && u.systemId === ln.WIDEVINE && u.data && (r = u.data.subarray(8, 24)), n = vo(u.systemId);
|
|
17544
17544
|
}
|
|
17545
17545
|
if (!n || !r)
|
|
17546
17546
|
return;
|
|
@@ -17897,7 +17897,7 @@ class ht {
|
|
|
17897
17897
|
this.value = void 0, this.params = void 0, Array.isArray(e) && (e = e.map((i) => i instanceof ht ? i : new ht(i))), this.value = e, this.params = t;
|
|
17898
17898
|
}
|
|
17899
17899
|
}
|
|
17900
|
-
class
|
|
17900
|
+
class ra {
|
|
17901
17901
|
constructor(e) {
|
|
17902
17902
|
this.description = void 0, this.description = e;
|
|
17903
17903
|
}
|
|
@@ -17932,17 +17932,17 @@ function bu(s) {
|
|
|
17932
17932
|
throw Be(s, mu);
|
|
17933
17933
|
return `:${Su(s)}:`;
|
|
17934
17934
|
}
|
|
17935
|
-
function
|
|
17935
|
+
function na(s) {
|
|
17936
17936
|
if (yu(s))
|
|
17937
17937
|
throw Be(s, pu);
|
|
17938
17938
|
return s.toString();
|
|
17939
17939
|
}
|
|
17940
17940
|
function Au(s) {
|
|
17941
|
-
return `@${
|
|
17941
|
+
return `@${na(s.getTime() / 1e3)}`;
|
|
17942
17942
|
}
|
|
17943
|
-
function
|
|
17943
|
+
function aa(s, e) {
|
|
17944
17944
|
if (s < 0)
|
|
17945
|
-
return -
|
|
17945
|
+
return -aa(-s, e);
|
|
17946
17946
|
const t = Math.pow(10, e);
|
|
17947
17947
|
if (Math.abs(s * t % 1 - 0.5) < Number.EPSILON) {
|
|
17948
17948
|
const r = Math.floor(s * t);
|
|
@@ -17951,23 +17951,23 @@ function na(s, e) {
|
|
|
17951
17951
|
return Math.round(s * t) / t;
|
|
17952
17952
|
}
|
|
17953
17953
|
function Lu(s) {
|
|
17954
|
-
const e =
|
|
17954
|
+
const e = aa(s, 3);
|
|
17955
17955
|
if (Math.floor(Math.abs(e)).toString().length > 12)
|
|
17956
17956
|
throw Be(s, gu);
|
|
17957
17957
|
const t = e.toString();
|
|
17958
17958
|
return t.includes(".") ? t : `${t}.0`;
|
|
17959
17959
|
}
|
|
17960
17960
|
const Ru = "String";
|
|
17961
|
-
function
|
|
17961
|
+
function _u(s) {
|
|
17962
17962
|
if (vu.test(s))
|
|
17963
17963
|
throw Be(s, Ru);
|
|
17964
17964
|
return `"${s.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
17965
17965
|
}
|
|
17966
|
-
function
|
|
17966
|
+
function Cu(s) {
|
|
17967
17967
|
return s.description || s.toString().slice(7, -1);
|
|
17968
17968
|
}
|
|
17969
17969
|
function vr(s) {
|
|
17970
|
-
const e =
|
|
17970
|
+
const e = Cu(s);
|
|
17971
17971
|
if (/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e) === !1)
|
|
17972
17972
|
throw Be(e, xu);
|
|
17973
17973
|
return e;
|
|
@@ -17977,9 +17977,9 @@ function Ki(s) {
|
|
|
17977
17977
|
case "number":
|
|
17978
17978
|
if (!W(s))
|
|
17979
17979
|
throw Be(s, yr);
|
|
17980
|
-
return Number.isInteger(s) ?
|
|
17980
|
+
return Number.isInteger(s) ? na(s) : Lu(s);
|
|
17981
17981
|
case "string":
|
|
17982
|
-
return
|
|
17982
|
+
return _u(s);
|
|
17983
17983
|
case "symbol":
|
|
17984
17984
|
return vr(s);
|
|
17985
17985
|
case "boolean":
|
|
@@ -17989,7 +17989,7 @@ function Ki(s) {
|
|
|
17989
17989
|
return Au(s);
|
|
17990
17990
|
if (s instanceof Uint8Array)
|
|
17991
17991
|
return bu(s);
|
|
17992
|
-
if (s instanceof
|
|
17992
|
+
if (s instanceof ra)
|
|
17993
17993
|
return vr(s);
|
|
17994
17994
|
default:
|
|
17995
17995
|
throw Be(s, yr);
|
|
@@ -18003,11 +18003,11 @@ function Wi(s) {
|
|
|
18003
18003
|
function ys(s) {
|
|
18004
18004
|
return s == null ? "" : Object.entries(s).map(([e, t]) => t === !0 ? `;${Wi(e)}` : `;${Wi(e)}=${Ki(t)}`).join("");
|
|
18005
18005
|
}
|
|
18006
|
-
function
|
|
18006
|
+
function oa(s) {
|
|
18007
18007
|
return s instanceof ht ? `${Ki(s.value)}${ys(s.params)}` : Ki(s);
|
|
18008
18008
|
}
|
|
18009
18009
|
function Du(s) {
|
|
18010
|
-
return `(${s.value.map(
|
|
18010
|
+
return `(${s.value.map(oa).join(" ")})${ys(s.params)}`;
|
|
18011
18011
|
}
|
|
18012
18012
|
function Iu(s, e = {
|
|
18013
18013
|
whitespace: !0
|
|
@@ -18018,7 +18018,7 @@ function Iu(s, e = {
|
|
|
18018
18018
|
return Array.from(t).map(([r, n]) => {
|
|
18019
18019
|
n instanceof ht || (n = new ht(n));
|
|
18020
18020
|
let a = Wi(r);
|
|
18021
|
-
return n.value === !0 ? a += ys(n.params) : (a += "=", Array.isArray(n.value) ? a += Du(n) : a +=
|
|
18021
|
+
return n.value === !0 ? a += ys(n.params) : (a += "=", Array.isArray(n.value) ? a += Du(n) : a += oa(n)), a;
|
|
18022
18022
|
}).join(`,${i}`);
|
|
18023
18023
|
}
|
|
18024
18024
|
function wu(s, e) {
|
|
@@ -18096,10 +18096,10 @@ function Bu(s, e) {
|
|
|
18096
18096
|
return;
|
|
18097
18097
|
let o = s[a];
|
|
18098
18098
|
const l = r[a];
|
|
18099
|
-
l && (o = l(o, e)), !(a === "v" && o === 1) && (a == "pr" && o === 1 || Pu(o) && (ku(a) && typeof o == "string" && (o = new
|
|
18099
|
+
l && (o = l(o, e)), !(a === "v" && o === 1) && (a == "pr" && o === 1 || Pu(o) && (ku(a) && typeof o == "string" && (o = new ra(o)), t[a] = o));
|
|
18100
18100
|
}), t;
|
|
18101
18101
|
}
|
|
18102
|
-
function
|
|
18102
|
+
function la(s, e = {}) {
|
|
18103
18103
|
return s ? wu(Bu(s, e), oe({
|
|
18104
18104
|
whitespace: !1
|
|
18105
18105
|
}, e)) : "";
|
|
@@ -18112,7 +18112,7 @@ function $u(s, e = {}) {
|
|
|
18112
18112
|
const [c, u] = a, h = ((o = i.find((d) => d[1].includes(c))) == null ? void 0 : o[0]) || Ze.REQUEST;
|
|
18113
18113
|
return (l = n[h]) != null || (n[h] = {}), n[h][c] = u, n;
|
|
18114
18114
|
}, {});
|
|
18115
|
-
return Object.entries(r).reduce((n, [a, o]) => (n[a] =
|
|
18115
|
+
return Object.entries(r).reduce((n, [a, o]) => (n[a] = la(o, e), n), {});
|
|
18116
18116
|
}
|
|
18117
18117
|
function Uu(s, e, t) {
|
|
18118
18118
|
return oe(s, $u(e, t));
|
|
@@ -18121,7 +18121,7 @@ const Gu = "CMCD";
|
|
|
18121
18121
|
function Hu(s, e = {}) {
|
|
18122
18122
|
if (!s)
|
|
18123
18123
|
return "";
|
|
18124
|
-
const t =
|
|
18124
|
+
const t = la(s, e);
|
|
18125
18125
|
return `${Gu}=${encodeURIComponent(t)}`;
|
|
18126
18126
|
}
|
|
18127
18127
|
const xr = /CMCD=[^&#]+/;
|
|
@@ -18363,7 +18363,7 @@ class zu {
|
|
|
18363
18363
|
const {
|
|
18364
18364
|
errorAction: i
|
|
18365
18365
|
} = t;
|
|
18366
|
-
if ((i == null ? void 0 : i.action) === me.SendAlternateToPenaltyBox && i.flags ===
|
|
18366
|
+
if ((i == null ? void 0 : i.action) === me.SendAlternateToPenaltyBox && i.flags === _e.MoveAllAlternatesMatchingHost) {
|
|
18367
18367
|
const r = this.levels;
|
|
18368
18368
|
let n = this.pathwayPriority, a = this.pathwayId;
|
|
18369
18369
|
if (t.context) {
|
|
@@ -18404,7 +18404,7 @@ class zu {
|
|
|
18404
18404
|
return;
|
|
18405
18405
|
const o = this.hls.nextLoadLevel, l = this.hls.levels[o];
|
|
18406
18406
|
if (t = this.getLevelsForPathway(a), t.length > 0) {
|
|
18407
|
-
this.log(`Setting Pathway to "${a}"`), this.pathwayId = a,
|
|
18407
|
+
this.log(`Setting Pathway to "${a}"`), this.pathwayId = a, _n(t), this.hls.trigger(p.LEVELS_UPDATED, {
|
|
18408
18408
|
levels: t
|
|
18409
18409
|
});
|
|
18410
18410
|
const c = this.hls.levels[o];
|
|
@@ -18438,7 +18438,7 @@ class zu {
|
|
|
18438
18438
|
h["PATHWAY-ID"] = a;
|
|
18439
18439
|
const d = h.AUDIO && `${h.AUDIO}_clone_${a}`, f = h.SUBTITLES && `${h.SUBTITLES}_clone_${a}`;
|
|
18440
18440
|
d && (i[h.AUDIO] = d, h.AUDIO = d), f && (r[h.SUBTITLES] = f, h.SUBTITLES = f);
|
|
18441
|
-
const m =
|
|
18441
|
+
const m = ca(u.uri, h["STABLE-VARIANT-ID"], "PER-VARIANT-URIS", l), g = new ct({
|
|
18442
18442
|
attrs: h,
|
|
18443
18443
|
audioCodec: u.audioCodec,
|
|
18444
18444
|
bitrate: u.bitrate,
|
|
@@ -18549,12 +18549,12 @@ function Tr(s, e, t, i) {
|
|
|
18549
18549
|
s && Object.keys(e).forEach((r) => {
|
|
18550
18550
|
const n = s.filter((a) => a.groupId === r).map((a) => {
|
|
18551
18551
|
const o = oe({}, a);
|
|
18552
|
-
return o.details = void 0, o.attrs = new ne(o.attrs), o.url = o.attrs.URI =
|
|
18552
|
+
return o.details = void 0, o.attrs = new ne(o.attrs), o.url = o.attrs.URI = ca(a.url, a.attrs["STABLE-RENDITION-ID"], "PER-RENDITION-URIS", t), o.groupId = o.attrs["GROUP-ID"] = e[r], o.attrs["PATHWAY-ID"] = i, o;
|
|
18553
18553
|
});
|
|
18554
18554
|
s.push(...n);
|
|
18555
18555
|
});
|
|
18556
18556
|
}
|
|
18557
|
-
function
|
|
18557
|
+
function ca(s, e, t, i) {
|
|
18558
18558
|
const {
|
|
18559
18559
|
HOST: r,
|
|
18560
18560
|
PARAMS: n,
|
|
@@ -18568,7 +18568,7 @@ function la(s, e, t, i) {
|
|
|
18568
18568
|
}), l.href;
|
|
18569
18569
|
}
|
|
18570
18570
|
const Yu = /^age:\s*[\d.]+\s*$/im;
|
|
18571
|
-
class
|
|
18571
|
+
class ua {
|
|
18572
18572
|
constructor(e) {
|
|
18573
18573
|
this.xhrSetup = void 0, this.requestTimeout = void 0, this.retryTimeout = void 0, this.retryDelay = void 0, this.config = null, this.callbacks = null, this.context = null, this.loader = null, this.stats = void 0, this.xhrSetup = e && e.xhrSetup || null, this.stats = new ti(), this.retryDelay = 0;
|
|
18574
18574
|
}
|
|
@@ -18780,7 +18780,7 @@ class Er {
|
|
|
18780
18780
|
return this.response ? this.response.headers.get(e) : null;
|
|
18781
18781
|
}
|
|
18782
18782
|
loadProgressively(e, t, i, r = 0, n) {
|
|
18783
|
-
const a = new
|
|
18783
|
+
const a = new wn(), o = e.body.getReader(), l = () => o.read().then((c) => {
|
|
18784
18784
|
if (c.done)
|
|
18785
18785
|
return a.dataLength && n(t, i, a.flush(), e), Promise.resolve(new ArrayBuffer(0));
|
|
18786
18786
|
const u = c.value, h = u.length;
|
|
@@ -18834,17 +18834,17 @@ const th = /\s/, ih = {
|
|
|
18834
18834
|
for (let g = 0; g < n.chars.length; g++)
|
|
18835
18835
|
th.test(n.chars[g].uchar) && o ? l++ : (c += n.chars[g].uchar, o = !1);
|
|
18836
18836
|
n.cueStartTime = e, e === t && (t += 1e-4), l >= 16 ? l-- : l++;
|
|
18837
|
-
const f =
|
|
18837
|
+
const f = Jn(c.trim()), m = gs(e, t, f);
|
|
18838
18838
|
s != null && (h = s.cues) != null && h.getCueById(m) || (a = new u(e, t, f), a.id = m, a.line = d + 1, a.align = "left", a.position = 10 + Math.min(80, Math.floor(l * 8 / 32) * 10), r.push(a));
|
|
18839
18839
|
}
|
|
18840
|
-
return s && r.length && (r.sort((d, f) => d.line === "auto" || f.line === "auto" ? 0 : d.line > 8 && f.line > 8 ? f.line - d.line : d.line - f.line), r.forEach((d) =>
|
|
18840
|
+
return s && r.length && (r.sort((d, f) => d.line === "auto" || f.line === "auto" ? 0 : d.line > 8 && f.line > 8 ? f.line - d.line : d.line - f.line), r.forEach((d) => bn(s, d))), r;
|
|
18841
18841
|
}
|
|
18842
18842
|
}, sh = {
|
|
18843
18843
|
maxTimeToFirstByteMs: 8e3,
|
|
18844
18844
|
maxLoadTimeMs: 2e4,
|
|
18845
18845
|
timeoutRetry: null,
|
|
18846
18846
|
errorRetry: null
|
|
18847
|
-
},
|
|
18847
|
+
}, ha = de(de({
|
|
18848
18848
|
autoStartLoad: !0,
|
|
18849
18849
|
// used by stream-controller
|
|
18850
18850
|
startPosition: -1,
|
|
@@ -18914,7 +18914,7 @@ const th = /\s/, ih = {
|
|
|
18914
18914
|
// used by fps-controller
|
|
18915
18915
|
appendErrorMaxRetry: 3,
|
|
18916
18916
|
// used by buffer-controller
|
|
18917
|
-
loader:
|
|
18917
|
+
loader: ua,
|
|
18918
18918
|
// loader: FetchLoader,
|
|
18919
18919
|
fLoader: void 0,
|
|
18920
18920
|
// used by fragment-loader
|
|
@@ -18969,7 +18969,7 @@ const th = /\s/, ih = {
|
|
|
18969
18969
|
// used by eme-controller
|
|
18970
18970
|
drmSystemOptions: {},
|
|
18971
18971
|
// used by eme-controller
|
|
18972
|
-
requestMediaKeySystemAccessFunc:
|
|
18972
|
+
requestMediaKeySystemAccessFunc: cn,
|
|
18973
18973
|
// used by eme-controller
|
|
18974
18974
|
testBandwidth: !0,
|
|
18975
18975
|
progressive: !1,
|
|
@@ -19157,7 +19157,7 @@ function zi(s) {
|
|
|
19157
19157
|
}
|
|
19158
19158
|
function ah(s) {
|
|
19159
19159
|
const e = s.loader;
|
|
19160
|
-
e !== Er && e !==
|
|
19160
|
+
e !== Er && e !== ua ? (S.log("[config]: Custom loader detected, cannot enable progressive streaming"), s.progressive = !1) : ju() && (s.loader = Er, s.progressive = !0, s.enableSoftwareAES = !0, S.log("[config]: Progressive streaming enabled, using FetchLoader"));
|
|
19161
19161
|
}
|
|
19162
19162
|
let Ri;
|
|
19163
19163
|
class oh extends ns {
|
|
@@ -19218,15 +19218,15 @@ class oh extends ns {
|
|
|
19218
19218
|
} = f, b = `${`${k || "."}-`}${u.bitrate}-${R}-${L}-${x}-${B}-${E}`;
|
|
19219
19219
|
if (n[b])
|
|
19220
19220
|
if (n[b].uri !== u.url && !u.attrs["PATHWAY-ID"]) {
|
|
19221
|
-
const
|
|
19222
|
-
u.attrs["PATHWAY-ID"] = new Array(
|
|
19221
|
+
const C = a[b] += 1;
|
|
19222
|
+
u.attrs["PATHWAY-ID"] = new Array(C + 1).join(".");
|
|
19223
19223
|
const P = new ct(u);
|
|
19224
19224
|
n[b] = P, r.push(P);
|
|
19225
19225
|
} else
|
|
19226
19226
|
n[b].addGroupId("audio", f.AUDIO), n[b].addGroupId("text", f.SUBTITLES);
|
|
19227
19227
|
else {
|
|
19228
|
-
const
|
|
19229
|
-
n[b] =
|
|
19228
|
+
const C = new ct(u);
|
|
19229
|
+
n[b] = C, a[b] = 1, r.push(C);
|
|
19230
19230
|
}
|
|
19231
19231
|
}), this.filterAndSortMediaOptions(r, t, o, l, c);
|
|
19232
19232
|
}
|
|
@@ -19272,7 +19272,7 @@ class oh extends ns {
|
|
|
19272
19272
|
if (m.videoRange !== g.videoRange)
|
|
19273
19273
|
return Wt.indexOf(m.videoRange) - Wt.indexOf(g.videoRange);
|
|
19274
19274
|
if (m.videoCodec !== g.videoCodec) {
|
|
19275
|
-
const y =
|
|
19275
|
+
const y = _s(m.videoCodec), v = _s(g.videoCodec);
|
|
19276
19276
|
if (y !== v)
|
|
19277
19277
|
return v - y;
|
|
19278
19278
|
}
|
|
@@ -19299,7 +19299,7 @@ class oh extends ns {
|
|
|
19299
19299
|
const g = u.bitrate, y = this.hls.bandwidthEstimate;
|
|
19300
19300
|
if (this.log(`manifest loaded, ${l.length} level(s) found, first bitrate: ${g}`), ((h = this.hls.userConfig) == null ? void 0 : h.abrEwmaDefaultEstimate) === void 0) {
|
|
19301
19301
|
const v = Math.min(g, this.hls.config.abrEwmaDefaultEstimateMax);
|
|
19302
|
-
v > y && y ===
|
|
19302
|
+
v > y && y === ha.abrEwmaDefaultEstimate && (this.hls.bandwidthEstimate = v);
|
|
19303
19303
|
}
|
|
19304
19304
|
break;
|
|
19305
19305
|
}
|
|
@@ -19458,7 +19458,7 @@ class oh extends ns {
|
|
|
19458
19458
|
removeLevel(e) {
|
|
19459
19459
|
var t;
|
|
19460
19460
|
const i = this._levels.filter((r, n) => n !== e ? !0 : (this.steering && this.steering.removeLevel(r), r === this.currentLevel && (this.currentLevel = null, this.currentLevelIndex = -1, r.details && r.details.fragments.forEach((a) => a.level = -1)), !1));
|
|
19461
|
-
|
|
19461
|
+
_n(i), this._levels = i, this.currentLevelIndex > -1 && (t = this.currentLevel) != null && t.details && (this.currentLevelIndex = this.currentLevel.details.fragments[0].level), this.hls.trigger(p.LEVELS_UPDATED, {
|
|
19462
19462
|
levels: i
|
|
19463
19463
|
});
|
|
19464
19464
|
}
|
|
@@ -19663,24 +19663,24 @@ class lh {
|
|
|
19663
19663
|
t.keyLoader === n && (t.keyLoader = null, i.loader = null), delete this.keyUriToKeyInfo[r], n && n.destroy();
|
|
19664
19664
|
}
|
|
19665
19665
|
}
|
|
19666
|
-
function
|
|
19666
|
+
function da() {
|
|
19667
19667
|
return self.SourceBuffer || self.WebKitSourceBuffer;
|
|
19668
19668
|
}
|
|
19669
|
-
function
|
|
19669
|
+
function fa() {
|
|
19670
19670
|
if (!dt())
|
|
19671
19671
|
return !1;
|
|
19672
|
-
const e =
|
|
19672
|
+
const e = da();
|
|
19673
19673
|
return !e || e.prototype && typeof e.prototype.appendBuffer == "function" && typeof e.prototype.remove == "function";
|
|
19674
19674
|
}
|
|
19675
19675
|
function ch() {
|
|
19676
|
-
if (!
|
|
19676
|
+
if (!fa())
|
|
19677
19677
|
return !1;
|
|
19678
19678
|
const s = dt();
|
|
19679
19679
|
return typeof (s == null ? void 0 : s.isTypeSupported) == "function" && (["avc1.42E01E,mp4a.40.2", "av01.0.01M.08", "vp09.00.50.08"].some((e) => s.isTypeSupported(Et(e, "video"))) || ["mp4a.40.2", "fLaC"].some((e) => s.isTypeSupported(Et(e, "audio"))));
|
|
19680
19680
|
}
|
|
19681
19681
|
function uh() {
|
|
19682
19682
|
var s;
|
|
19683
|
-
const e =
|
|
19683
|
+
const e = da();
|
|
19684
19684
|
return typeof (e == null || (s = e.prototype) == null ? void 0 : s.changeType) == "function";
|
|
19685
19685
|
}
|
|
19686
19686
|
const hh = 250, Ut = 2, dh = 0.1, fh = 0.05;
|
|
@@ -20173,7 +20173,7 @@ class ph extends ls {
|
|
|
20173
20173
|
this.warn(`Dropping fragment ${i.sn} of level ${i.level} after level details were reset`), this.fragmentTracker.removeFragment(i);
|
|
20174
20174
|
return;
|
|
20175
20175
|
}
|
|
20176
|
-
const c = o.videoCodec, u = l.PTSKnown || !l.live, h = (t = i.initSegment) == null ? void 0 : t.data, d = this._getAudioCodec(o), f = this.transmuxer = this.transmuxer || new
|
|
20176
|
+
const c = o.videoCodec, u = l.PTSKnown || !l.live, h = (t = i.initSegment) == null ? void 0 : t.data, d = this._getAudioCodec(o), f = this.transmuxer = this.transmuxer || new Yn(this.hls, j.MAIN, this._handleTransmuxComplete.bind(this), this._handleTransmuxerFlush.bind(this)), m = r ? r.index : -1, g = m !== -1, y = new as(i.level, i.sn, i.stats.chunkCount, n.byteLength, m, g), v = this.initPTS[i.cc];
|
|
20177
20177
|
f.push(n, h, d, c, i, r, l.totalduration, u, y, v);
|
|
20178
20178
|
}
|
|
20179
20179
|
onAudioTrackSwitching(e, t) {
|
|
@@ -20398,8 +20398,8 @@ class ph extends ls {
|
|
|
20398
20398
|
endDTS: R
|
|
20399
20399
|
};
|
|
20400
20400
|
else if (h.firstKeyFrame && h.independent && a.id === 1 && !x && (this.couldBacktrack = !0), h.dropped && h.independent) {
|
|
20401
|
-
const B = this.getMainFwdBufferInfo(),
|
|
20402
|
-
if (!T &&
|
|
20401
|
+
const B = this.getMainFwdBufferInfo(), _ = (B ? B.end : this.getLoadPosition()) + this.config.maxBufferHole, b = h.firstKeyFramePTS ? h.firstKeyFramePTS : L;
|
|
20402
|
+
if (!T && _ < b - this.config.maxBufferHole && !x) {
|
|
20403
20403
|
this.backtrack(l);
|
|
20404
20404
|
return;
|
|
20405
20405
|
} else
|
|
@@ -20538,7 +20538,7 @@ class Me {
|
|
|
20538
20538
|
* Check if the required MediaSource Extensions are available.
|
|
20539
20539
|
*/
|
|
20540
20540
|
static isMSESupported() {
|
|
20541
|
-
return
|
|
20541
|
+
return fa();
|
|
20542
20542
|
}
|
|
20543
20543
|
/**
|
|
20544
20544
|
* Check if MediaSource Extensions are available and isTypeSupported checks pass for any baseline codecs.
|
|
@@ -20565,7 +20565,7 @@ class Me {
|
|
|
20565
20565
|
* Get the default configuration applied to new instances.
|
|
20566
20566
|
*/
|
|
20567
20567
|
static get DefaultConfig() {
|
|
20568
|
-
return Me.defaultConfig ? Me.defaultConfig :
|
|
20568
|
+
return Me.defaultConfig ? Me.defaultConfig : ha;
|
|
20569
20569
|
}
|
|
20570
20570
|
/**
|
|
20571
20571
|
* Replace the default configuration applied to new instances.
|
|
@@ -20597,8 +20597,8 @@ class Me {
|
|
|
20597
20597
|
R && E.push(new R(this, T, x)), this.subtitleTrackController = this.createController(t.subtitleTrackController, E);
|
|
20598
20598
|
const B = t.subtitleStreamController;
|
|
20599
20599
|
B && E.push(new B(this, T, x)), this.createController(t.timelineController, k), x.emeController = this.emeController = this.createController(t.emeController, k), this.cmcdController = this.createController(t.cmcdController, k), this.latencyController = this.createController(ol, k), this.coreComponents = k, E.push(l);
|
|
20600
|
-
const
|
|
20601
|
-
typeof
|
|
20600
|
+
const _ = l.onErrorOut;
|
|
20601
|
+
typeof _ == "function" && this.on(p.ERROR, _, l);
|
|
20602
20602
|
}
|
|
20603
20603
|
createController(e, t) {
|
|
20604
20604
|
if (e) {
|
|
@@ -21107,12 +21107,12 @@ class Me {
|
|
|
21107
21107
|
}
|
|
21108
21108
|
}
|
|
21109
21109
|
Me.defaultConfig = void 0;
|
|
21110
|
-
function
|
|
21110
|
+
function ma() {
|
|
21111
21111
|
const s = document;
|
|
21112
21112
|
return !!(s.fullscreenElement || s.mozFullScreenElement || s.webkitFullscreenElement || s.msFullscreenElement);
|
|
21113
21113
|
}
|
|
21114
21114
|
function yh(s) {
|
|
21115
|
-
if (
|
|
21115
|
+
if (ma())
|
|
21116
21116
|
return new Promise((t) => t(null));
|
|
21117
21117
|
const e = s;
|
|
21118
21118
|
if (e.requestFullscreen)
|
|
@@ -21125,7 +21125,7 @@ function yh(s) {
|
|
|
21125
21125
|
return e == null ? void 0 : e.msRequestFullscreen();
|
|
21126
21126
|
}
|
|
21127
21127
|
function vh() {
|
|
21128
|
-
if (!
|
|
21128
|
+
if (!ma())
|
|
21129
21129
|
return new Promise((e) => e(null));
|
|
21130
21130
|
const s = document;
|
|
21131
21131
|
if (s.exitFullscreen)
|
|
@@ -21146,7 +21146,7 @@ function xh(s, e) {
|
|
|
21146
21146
|
}, e || 1e3);
|
|
21147
21147
|
};
|
|
21148
21148
|
}
|
|
21149
|
-
const
|
|
21149
|
+
const _i = new Intl.NumberFormat(void 0, {
|
|
21150
21150
|
minimumIntegerDigits: 2
|
|
21151
21151
|
}), br = [
|
|
21152
21152
|
"play",
|
|
@@ -21160,15 +21160,15 @@ const Ci = new Intl.NumberFormat(void 0, {
|
|
|
21160
21160
|
"canplaythrough",
|
|
21161
21161
|
"statechanged",
|
|
21162
21162
|
"error"
|
|
21163
|
-
],
|
|
21163
|
+
], Ci = (s) => {
|
|
21164
21164
|
const e = Math.floor(s % 60), t = Math.floor(s / 60) % 60, i = Math.floor(s / 3600);
|
|
21165
|
-
return i === 0 ? `${t}:${
|
|
21165
|
+
return i === 0 ? `${t}:${_i.format(e)}` : `${i}:${_i.format(
|
|
21166
21166
|
t
|
|
21167
|
-
)}:${
|
|
21167
|
+
)}:${_i.format(e)}`;
|
|
21168
21168
|
}, Th = Ee.extend({
|
|
21169
21169
|
name: "VideoPlayer",
|
|
21170
21170
|
components: {
|
|
21171
|
-
ESpinner:
|
|
21171
|
+
ESpinner: rn
|
|
21172
21172
|
},
|
|
21173
21173
|
props: {
|
|
21174
21174
|
sources: {
|
|
@@ -21272,7 +21272,7 @@ const Ci = new Intl.NumberFormat(void 0, {
|
|
|
21272
21272
|
if (!e)
|
|
21273
21273
|
return;
|
|
21274
21274
|
const t = this.$refs.timelineContainer;
|
|
21275
|
-
s === "loadeddata" && (this.videoLength =
|
|
21275
|
+
s === "loadeddata" && (this.videoLength = Ci(e.duration)), s === "timeupdate" && (this.percentagePlayed = (e == null ? void 0 : e.currentTime) / e.duration * 100, t.style.setProperty(
|
|
21276
21276
|
"--progress-position",
|
|
21277
21277
|
this.percentagePlayed.toString()
|
|
21278
21278
|
)), this.$emit(s, { event, player: e });
|
|
@@ -21371,13 +21371,13 @@ const Ci = new Intl.NumberFormat(void 0, {
|
|
|
21371
21371
|
},
|
|
21372
21372
|
getDuration() {
|
|
21373
21373
|
const s = this.$refs.player;
|
|
21374
|
-
this.videoLength =
|
|
21374
|
+
this.videoLength = Ci(s.duration), this.videoDuration = s.duration;
|
|
21375
21375
|
},
|
|
21376
21376
|
handleTimeUpdate() {
|
|
21377
21377
|
const s = this.$refs.player, e = this.$refs.timelineContainer;
|
|
21378
21378
|
if (!s || !e)
|
|
21379
21379
|
return;
|
|
21380
|
-
this.currentTime =
|
|
21380
|
+
this.currentTime = Ci(s.currentTime), this.realtime = s.currentTime;
|
|
21381
21381
|
const t = Number(this.realtime) / Number(this.videoDuration);
|
|
21382
21382
|
e.style.setProperty(
|
|
21383
21383
|
"--progress-position",
|
|
@@ -21452,7 +21452,7 @@ var Eh = function() {
|
|
|
21452
21452
|
}, Sh = [function() {
|
|
21453
21453
|
var s = this, e = s._self._c;
|
|
21454
21454
|
return e("div", { staticClass: "timeline" }, [e("div", { staticClass: "thumb-indicator" })]);
|
|
21455
|
-
}], bh = /* @__PURE__ */
|
|
21455
|
+
}], bh = /* @__PURE__ */ ve(
|
|
21456
21456
|
Th,
|
|
21457
21457
|
Eh,
|
|
21458
21458
|
Sh,
|
|
@@ -21516,7 +21516,7 @@ const Ah = bh.exports, Zt = (s) => {
|
|
|
21516
21516
|
_300_years: 7200,
|
|
21517
21517
|
infinity: 1 / 0
|
|
21518
21518
|
};
|
|
21519
|
-
var
|
|
21519
|
+
var Cr, Dr, Ir, wr, kr, Pr, Or, Fr;
|
|
21520
21520
|
const Lh = {
|
|
21521
21521
|
[kt.overview]: [
|
|
21522
21522
|
{
|
|
@@ -21617,7 +21617,7 @@ const Lh = {
|
|
|
21617
21617
|
},
|
|
21618
21618
|
{
|
|
21619
21619
|
precision: K._20_seconds,
|
|
21620
|
-
interval: (
|
|
21620
|
+
interval: (Cr = I.utcSecond.every(20)) == null ? void 0 : Cr.filter(Rr(2)),
|
|
21621
21621
|
format: Di
|
|
21622
21622
|
},
|
|
21623
21623
|
{
|
|
@@ -21925,7 +21925,7 @@ const Lh = {
|
|
|
21925
21925
|
milestoneDotLine: "e-tl-milestone-dot-line",
|
|
21926
21926
|
milestoneDotDot: "e-tl-milestone-dot-dot",
|
|
21927
21927
|
milestoneDotHovered: "e-tl-milestone-dot--hovered"
|
|
21928
|
-
},
|
|
21928
|
+
}, _h = Ee.extend({
|
|
21929
21929
|
name: "ETimeline",
|
|
21930
21930
|
directives: {
|
|
21931
21931
|
resizeObserver: vs
|
|
@@ -22099,7 +22099,7 @@ const Lh = {
|
|
|
22099
22099
|
}
|
|
22100
22100
|
}
|
|
22101
22101
|
});
|
|
22102
|
-
var
|
|
22102
|
+
var Ch = function() {
|
|
22103
22103
|
var e = this, t = e._self._c;
|
|
22104
22104
|
return t("div", { ref: "container", class: {
|
|
22105
22105
|
[e.milestoneClasses.milestone]: !0,
|
|
@@ -22110,9 +22110,9 @@ var _h = function() {
|
|
|
22110
22110
|
}, style: e.styles, attrs: { tabindex: "0" }, on: { mouseover: (i) => e.onMilestoneMouseOver(i, e.milestone), mousemove: e.onMilestoneMouseMove, mouseleave: (i) => e.onMilestoneMouseLeave(i, e.milestone), click: (i) => e.onMilestoneClick(i, e.milestone) } }, [t("div", { class: e.milestoneClasses.milestoneContent, style: e.contentStyles }, [e._t("content", function() {
|
|
22111
22111
|
return [t("span", [e._v(" " + e._s(e.milestone.text) + " ")])];
|
|
22112
22112
|
})], 2), e.dot ? t("div", { class: e.milestoneClasses.milestoneDotContainer, style: e.dotContainerStyles }, [t("div", { class: e.milestoneClasses.milestoneDotLine, style: e.lineStyles }), t("div", { class: e.milestoneClasses.milestoneDotDot, style: e.dotStyles })]) : t("div", { class: e.milestoneClasses.milestoneLabel, style: e.labelStyles }, [e._t("label")], 2)]);
|
|
22113
|
-
}, Dh = [], Ih = /* @__PURE__ */
|
|
22114
|
-
Ch,
|
|
22113
|
+
}, Dh = [], Ih = /* @__PURE__ */ ve(
|
|
22115
22114
|
_h,
|
|
22115
|
+
Ch,
|
|
22116
22116
|
Dh,
|
|
22117
22117
|
!1,
|
|
22118
22118
|
null,
|
|
@@ -23624,7 +23624,7 @@ var Ph = function() {
|
|
|
23624
23624
|
return t("div", { key: r }, [t("strong", [e._v(e._s(i.type) + " Count")]), e._v(": " + e._s(i.count) + " ")]);
|
|
23625
23625
|
})], 2) : e.hoveredEvent ? t("div", [e.hoveredEvent.timestamp ? t("div", [t("strong", [e._v("Event time")]), e._v(": " + e._s(e.hoveredEvent.timestamp) + " ")]) : e._e(), e.hoveredEvent.startDate ? t("div", [t("strong", [e._v("From")]), e._v(":" + e._s(e.hoveredEvent.startDate) + " ")]) : e._e(), e.hoveredEvent.endDate ? t("div", [t("strong", [e._v("To")]), e._v(":" + e._s(e.hoveredEvent.endDate) + " ")]) : e._e()]) : e._e()]) : e._e()];
|
|
23626
23626
|
}, { event: e.hoveredEvent, counts: e.hoveredCounts, active: e.isHoveringEvent && !e.isInteractingWithCurtain, type: e.hoveredEventType })], 2)], 2);
|
|
23627
|
-
}, Oh = [], Fh = /* @__PURE__ */
|
|
23627
|
+
}, Oh = [], Fh = /* @__PURE__ */ ve(
|
|
23628
23628
|
kh,
|
|
23629
23629
|
Ph,
|
|
23630
23630
|
Oh,
|
|
@@ -23691,7 +23691,7 @@ const Mh = Fh.exports, Nh = {
|
|
|
23691
23691
|
var Bh = function() {
|
|
23692
23692
|
var e = this, t = e._self._c;
|
|
23693
23693
|
return t("div", { staticClass: "video-embed" }, [t("iframe", e._g(e._b({ attrs: { src: e.embedUrl, frameborder: "0", allowfullscreen: "", width: "100%", height: "100%", allow: "autoplay; fullscreen; picture-in-picture" } }, "iframe", e.iframeOptions, !1), e.iframeListeners))]);
|
|
23694
|
-
}, $h = [], Uh = /* @__PURE__ */
|
|
23694
|
+
}, $h = [], Uh = /* @__PURE__ */ ve(
|
|
23695
23695
|
Nh,
|
|
23696
23696
|
Bh,
|
|
23697
23697
|
$h,
|
|
@@ -23768,7 +23768,7 @@ var Vh = function() {
|
|
|
23768
23768
|
"e-heatmap-bar__item__count--light": e.getColorIndex(n) <= 2
|
|
23769
23769
|
} }, [e._v(" " + e._s(n > 0 ? n : "") + " ")]) : e._e(), e.showNames ? t("span", { staticClass: "e-heatmap-bar__item__name e-text-xs e-text-black e-truncate" }, [e._v(" " + e._s(i) + " ")]) : e._e()]);
|
|
23770
23770
|
})], 2);
|
|
23771
|
-
}, Kh = [], Wh = /* @__PURE__ */
|
|
23771
|
+
}, Kh = [], Wh = /* @__PURE__ */ ve(
|
|
23772
23772
|
Hh,
|
|
23773
23773
|
Vh,
|
|
23774
23774
|
Kh,
|
|
@@ -23778,10 +23778,10 @@ var Vh = function() {
|
|
|
23778
23778
|
null,
|
|
23779
23779
|
null
|
|
23780
23780
|
);
|
|
23781
|
-
const
|
|
23781
|
+
const ga = Wh.exports, zh = Ee.extend({
|
|
23782
23782
|
name: "EHoursHeatmap",
|
|
23783
23783
|
components: {
|
|
23784
|
-
EHeatmapBar:
|
|
23784
|
+
EHeatmapBar: ga
|
|
23785
23785
|
},
|
|
23786
23786
|
props: {
|
|
23787
23787
|
items: {
|
|
@@ -23841,7 +23841,7 @@ var Yh = function() {
|
|
|
23841
23841
|
return e._self._setupProxy, t("EHeatmapBar", e._g({ attrs: { items: e.heatmapBarItems, "selected-value": e.selectedHour, "show-names": e.showHours, colors: e.colors, label: e.label, dense: e.dense }, scopedSlots: e._u([{ key: "label", fn: function() {
|
|
23842
23842
|
return [e._t("label")];
|
|
23843
23843
|
}, proxy: !0 }], null, !0) }, e.$listeners));
|
|
23844
|
-
}, jh = [], qh = /* @__PURE__ */
|
|
23844
|
+
}, jh = [], qh = /* @__PURE__ */ ve(
|
|
23845
23845
|
zh,
|
|
23846
23846
|
Yh,
|
|
23847
23847
|
jh,
|
|
@@ -23932,7 +23932,7 @@ const Xh = qh.exports, Zh = Ee.extend({
|
|
|
23932
23932
|
var Qh = function() {
|
|
23933
23933
|
var e = this, t = e._self._c;
|
|
23934
23934
|
return e._self._setupProxy, t("span", { staticClass: "e-read-more" }, [t("span", { staticClass: "e-read-more__content mr-1", style: { "white-space": e.showAllContent ? "initial" : "nowrap" } }, [e._v(" " + e._s(e.displayContent()) + " ")]), e.isHiddenArrayContent ? t("span", { staticClass: "e-cursor-pointer e-text-primary", on: { click: e.toggleContentExpansion } }, [e._v(" " + e._s(e.computedMoreText) + " ")]) : e.isHiddenTextContent ? t("span", { staticClass: "e-cursor-pointer e-text-primary", on: { click: e.toggleContentExpansion } }, [e._v(" " + e._s(e.expandText) + " ")]) : e._e(), e.isContentExpanded ? t("span", { staticClass: "e-cursor-pointer e-text-primary", on: { click: e.toggleContentExpansion } }, [e._v(" " + e._s(e.collapseText) + " ")]) : e._e()]);
|
|
23935
|
-
}, Jh = [], ed = /* @__PURE__ */
|
|
23935
|
+
}, Jh = [], ed = /* @__PURE__ */ ve(
|
|
23936
23936
|
Zh,
|
|
23937
23937
|
Qh,
|
|
23938
23938
|
Jh,
|
|
@@ -23967,7 +23967,7 @@ const td = ed.exports, id = Ee.extend({
|
|
|
23967
23967
|
var sd = function() {
|
|
23968
23968
|
var e = this, t = e._self._c;
|
|
23969
23969
|
return t("div", e._g(e._b({ staticClass: "e-truncated-div e-truncate", style: e.containerStyle }, "div", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
|
|
23970
|
-
}, rd = [], nd = /* @__PURE__ */
|
|
23970
|
+
}, rd = [], nd = /* @__PURE__ */ ve(
|
|
23971
23971
|
id,
|
|
23972
23972
|
sd,
|
|
23973
23973
|
rd,
|
|
@@ -23977,61 +23977,95 @@ var sd = function() {
|
|
|
23977
23977
|
null,
|
|
23978
23978
|
null
|
|
23979
23979
|
);
|
|
23980
|
-
const ad = nd.exports,
|
|
23981
|
-
|
|
23980
|
+
const ad = nd.exports, od = Ee.extend({
|
|
23981
|
+
name: "ECompareSeparator",
|
|
23982
|
+
components: {
|
|
23983
|
+
EIcon: sn
|
|
23984
|
+
},
|
|
23985
|
+
props: {
|
|
23986
|
+
xOffset: {
|
|
23987
|
+
type: [Number, String],
|
|
23988
|
+
default: 50
|
|
23989
|
+
}
|
|
23990
|
+
},
|
|
23991
|
+
computed: {
|
|
23992
|
+
separatorStyle() {
|
|
23993
|
+
return { left: `${this.xOffset}%` };
|
|
23994
|
+
}
|
|
23995
|
+
}
|
|
23996
|
+
});
|
|
23997
|
+
var ld = function() {
|
|
23998
|
+
var e = this, t = e._self._c;
|
|
23999
|
+
return e._self._setupProxy, t("div", { staticClass: "e-compare-separator" }, [t("div", { staticClass: "e-compare-separator__line", style: e.separatorStyle }), t("div", { staticClass: "e-compare-separator__icon e-flex e-justify-around e-items-center", style: e.separatorStyle }, [t("EIcon", { attrs: { icon: "caret-left", color: "e-text-white", size: "xl" } }), t("EIcon", { attrs: { icon: "caret-right", color: "e-text-white", size: "xl" } })], 1)]);
|
|
24000
|
+
}, cd = [], ud = /* @__PURE__ */ ve(
|
|
24001
|
+
od,
|
|
24002
|
+
ld,
|
|
24003
|
+
cd,
|
|
24004
|
+
!1,
|
|
24005
|
+
null,
|
|
24006
|
+
null,
|
|
24007
|
+
null,
|
|
24008
|
+
null
|
|
24009
|
+
);
|
|
24010
|
+
const hd = ud.exports, _r = {
|
|
24011
|
+
EAvatar: Aa,
|
|
23982
24012
|
EBadge: Mr,
|
|
23983
|
-
EIcon:
|
|
23984
|
-
ESpinner:
|
|
24013
|
+
EIcon: sn,
|
|
24014
|
+
ESpinner: rn,
|
|
23985
24015
|
ERow: Ya,
|
|
23986
24016
|
ECol: Qa,
|
|
23987
24017
|
EVideoPlayer: Ah,
|
|
23988
24018
|
ETimeline: Mh,
|
|
23989
24019
|
EVideoEmbed: Gh,
|
|
23990
|
-
EHeatmapBar:
|
|
24020
|
+
EHeatmapBar: ga,
|
|
23991
24021
|
EHoursHeatmap: Xh,
|
|
23992
24022
|
EReadMore: td,
|
|
23993
|
-
ETruncatedDiv: ad
|
|
23994
|
-
|
|
24023
|
+
ETruncatedDiv: ad,
|
|
24024
|
+
ECompareSeparator: hd
|
|
24025
|
+
}, Td = {
|
|
23995
24026
|
install(s) {
|
|
23996
|
-
Object.keys(
|
|
23997
|
-
s.component(e,
|
|
24027
|
+
Object.keys(_r).forEach((e) => {
|
|
24028
|
+
s.component(e, _r[e]);
|
|
23998
24029
|
}), Rh.forEach(({ name: e, definition: t }) => {
|
|
23999
24030
|
s.directive(e, t);
|
|
24000
24031
|
});
|
|
24001
24032
|
}
|
|
24002
24033
|
};
|
|
24003
24034
|
export {
|
|
24004
|
-
|
|
24005
|
-
|
|
24006
|
-
|
|
24035
|
+
gd as AvatarSizes,
|
|
24036
|
+
pd as BadgeColors,
|
|
24037
|
+
md as BadgeSizes,
|
|
24007
24038
|
ge as BaseColor,
|
|
24008
|
-
|
|
24039
|
+
Pa as Colors,
|
|
24009
24040
|
Rh as DirectivesMap,
|
|
24010
|
-
|
|
24041
|
+
Aa as EAvatar,
|
|
24011
24042
|
Mr as EBadge,
|
|
24012
24043
|
Qa as ECol,
|
|
24013
|
-
|
|
24044
|
+
hd as ECompareSeparator,
|
|
24045
|
+
ga as EHeatmapBar,
|
|
24046
|
+
Xh as EHoursHeatmap,
|
|
24047
|
+
sn as EIcon,
|
|
24014
24048
|
td as EReadMore,
|
|
24015
24049
|
Ya as ERow,
|
|
24016
|
-
|
|
24050
|
+
rn as ESpinner,
|
|
24017
24051
|
Mh as ETimeline,
|
|
24018
24052
|
ad as ETruncatedDiv,
|
|
24019
|
-
|
|
24053
|
+
yd as EVENTS,
|
|
24020
24054
|
Gh as EVideoEmbed,
|
|
24021
24055
|
Ah as EVideoPlayer,
|
|
24022
|
-
|
|
24056
|
+
Oa as IconSizes,
|
|
24023
24057
|
vs as ResizeObserverDirective,
|
|
24024
24058
|
Y as Size,
|
|
24025
|
-
|
|
24059
|
+
ka as TextSizes,
|
|
24026
24060
|
kt as TimelineAxis,
|
|
24027
24061
|
Re as TimelineChartType,
|
|
24028
24062
|
Pt as TimelineIntervalChangeTrigger,
|
|
24029
|
-
|
|
24063
|
+
_r as components,
|
|
24030
24064
|
xh as debounce,
|
|
24031
|
-
|
|
24065
|
+
Td as default,
|
|
24032
24066
|
vh as exitFullScreen,
|
|
24033
24067
|
tn as fullConfig,
|
|
24034
|
-
|
|
24068
|
+
ma as isFullScreen,
|
|
24035
24069
|
yh as makeFullScreen
|
|
24036
24070
|
};
|
|
24037
24071
|
//# sourceMappingURL=index.mjs.map
|