@evercam/ui 0.0.55-beta.7 → 0.0.55-beta.8
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 +258 -217
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/ETimeline.vue.d.ts +9 -4
- package/dist/src/index.d.ts +9 -4
- package/dist/src/types.d.ts +2 -0
- package/dist/tags.json +1 -0
- package/dist/web-types.json +10 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Ve from "vue";
|
|
2
2
|
import * as I from "d3";
|
|
3
3
|
import Ke from "moment-timezone";
|
|
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 || {}),
|
|
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 || {}), Ae = /* @__PURE__ */ ((s) => (s.bars = "bars", s.dots = "dots", s.lineGraph = "lineGraph", s.barChart = "barGraph", s.milestones = "milestones", s))(Ae || {}), Pt = /* @__PURE__ */ ((s) => (s.zoom = "zoom", s.autoPan = "autoPan", s.initial = "initial", s))(Pt || {});
|
|
5
5
|
const ma = Ve.extend({
|
|
6
6
|
name: "EBadge",
|
|
7
7
|
props: {
|
|
@@ -52,7 +52,7 @@ const ma = Ve.extend({
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
function
|
|
55
|
+
function Be(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;
|
|
@@ -84,7 +84,7 @@ function Ne(s, e, t, i, r, n, a, o) {
|
|
|
84
84
|
var ga = 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
|
-
}, pa = [], ya = /* @__PURE__ */
|
|
87
|
+
}, pa = [], ya = /* @__PURE__ */ Be(
|
|
88
88
|
ma,
|
|
89
89
|
ga,
|
|
90
90
|
pa,
|
|
@@ -153,7 +153,7 @@ var xa = function() {
|
|
|
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
|
-
}, Ta = [], Ea = /* @__PURE__ */
|
|
156
|
+
}, Ta = [], Ea = /* @__PURE__ */ Be(
|
|
157
157
|
va,
|
|
158
158
|
xa,
|
|
159
159
|
Ta,
|
|
@@ -3793,7 +3793,7 @@ let ri = Nr;
|
|
|
3793
3793
|
var La = (ri.__esModule ? ri : { default: ri }).default;
|
|
3794
3794
|
const Ra = /* @__PURE__ */ ba(La);
|
|
3795
3795
|
let ni = qi;
|
|
3796
|
-
var
|
|
3796
|
+
var we = (ni.__esModule ? ni : { default: ni }).default;
|
|
3797
3797
|
const Ca = {
|
|
3798
3798
|
50: "#FCE3E4",
|
|
3799
3799
|
100: "#F9CDCE",
|
|
@@ -3806,12 +3806,12 @@ const Ca = {
|
|
|
3806
3806
|
800: "#4E090B",
|
|
3807
3807
|
900: "#290506"
|
|
3808
3808
|
}, pe = {
|
|
3809
|
-
onprimary:
|
|
3810
|
-
warning:
|
|
3811
|
-
error:
|
|
3812
|
-
info:
|
|
3813
|
-
success:
|
|
3814
|
-
primary:
|
|
3809
|
+
onprimary: we.white,
|
|
3810
|
+
warning: we.amber,
|
|
3811
|
+
error: we.rose,
|
|
3812
|
+
info: we.cyan,
|
|
3813
|
+
success: we.lime,
|
|
3814
|
+
primary: we.sky,
|
|
3815
3815
|
brand: Ca
|
|
3816
3816
|
}, Da = {
|
|
3817
3817
|
...pe,
|
|
@@ -3836,10 +3836,10 @@ const Ca = {
|
|
|
3836
3836
|
"primary-darken": pe.primary[600],
|
|
3837
3837
|
"primary-lighten": pe.primary[400],
|
|
3838
3838
|
// Surfaces
|
|
3839
|
-
onsurface:
|
|
3840
|
-
onbackground:
|
|
3841
|
-
surface:
|
|
3842
|
-
background:
|
|
3839
|
+
onsurface: we.slate[500],
|
|
3840
|
+
onbackground: we.slate[700],
|
|
3841
|
+
surface: we.slate[50],
|
|
3842
|
+
background: we.white
|
|
3843
3843
|
}, _a = {
|
|
3844
3844
|
prefix: "e-",
|
|
3845
3845
|
corePlugins: {
|
|
@@ -4001,7 +4001,7 @@ const Ca = {
|
|
|
4001
4001
|
var Oa = function() {
|
|
4002
4002
|
var e = this, t = e._self._c;
|
|
4003
4003
|
return t("div", { staticClass: "e-icon" }, [t("i", { class: e.iconClasses })]);
|
|
4004
|
-
}, Fa = [], Ma = /* @__PURE__ */
|
|
4004
|
+
}, Fa = [], Ma = /* @__PURE__ */ Be(
|
|
4005
4005
|
Pa,
|
|
4006
4006
|
Oa,
|
|
4007
4007
|
Fa,
|
|
@@ -4079,7 +4079,7 @@ var $a = 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
|
-
}, Ua = [], Ga = /* @__PURE__ */
|
|
4082
|
+
}, Ua = [], Ga = /* @__PURE__ */ Be(
|
|
4083
4083
|
Ba,
|
|
4084
4084
|
$a,
|
|
4085
4085
|
Ua,
|
|
@@ -4152,7 +4152,7 @@ const sn = Ga.exports, Ha = Ve.extend({
|
|
|
4152
4152
|
var Va = 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
|
-
}, Ka = [], Wa = /* @__PURE__ */
|
|
4155
|
+
}, Ka = [], Wa = /* @__PURE__ */ Be(
|
|
4156
4156
|
Ha,
|
|
4157
4157
|
Va,
|
|
4158
4158
|
Ka,
|
|
@@ -4269,7 +4269,7 @@ const za = Wa.exports, Ya = Ve.extend({
|
|
|
4269
4269
|
var ja = 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
|
-
}, qa = [], Xa = /* @__PURE__ */
|
|
4272
|
+
}, qa = [], Xa = /* @__PURE__ */ Be(
|
|
4273
4273
|
Ya,
|
|
4274
4274
|
ja,
|
|
4275
4275
|
qa,
|
|
@@ -4940,7 +4940,7 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
4940
4940
|
}, So = (s) => s.type === "PRIV" ? bo(s) : s.type[0] === "W" ? Lo(s) : Ao(s), bo = (s) => {
|
|
4941
4941
|
if (s.size < 2)
|
|
4942
4942
|
return;
|
|
4943
|
-
const e =
|
|
4943
|
+
const e = Me(s.data, !0), t = new Uint8Array(s.data.subarray(e.length + 1));
|
|
4944
4944
|
return {
|
|
4945
4945
|
key: s.type,
|
|
4946
4946
|
info: e,
|
|
@@ -4951,16 +4951,16 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
4951
4951
|
return;
|
|
4952
4952
|
if (s.type === "TXXX") {
|
|
4953
4953
|
let t = 1;
|
|
4954
|
-
const i =
|
|
4954
|
+
const i = Me(s.data.subarray(t), !0);
|
|
4955
4955
|
t += i.length + 1;
|
|
4956
|
-
const r =
|
|
4956
|
+
const r = Me(s.data.subarray(t));
|
|
4957
4957
|
return {
|
|
4958
4958
|
key: s.type,
|
|
4959
4959
|
info: i,
|
|
4960
4960
|
data: r
|
|
4961
4961
|
};
|
|
4962
4962
|
}
|
|
4963
|
-
const e =
|
|
4963
|
+
const e = Me(s.data.subarray(1));
|
|
4964
4964
|
return {
|
|
4965
4965
|
key: s.type,
|
|
4966
4966
|
data: e
|
|
@@ -4970,16 +4970,16 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
4970
4970
|
if (s.size < 2)
|
|
4971
4971
|
return;
|
|
4972
4972
|
let t = 1;
|
|
4973
|
-
const i =
|
|
4973
|
+
const i = Me(s.data.subarray(t), !0);
|
|
4974
4974
|
t += i.length + 1;
|
|
4975
|
-
const r =
|
|
4975
|
+
const r = Me(s.data.subarray(t));
|
|
4976
4976
|
return {
|
|
4977
4977
|
key: s.type,
|
|
4978
4978
|
info: i,
|
|
4979
4979
|
data: r
|
|
4980
4980
|
};
|
|
4981
4981
|
}
|
|
4982
|
-
const e =
|
|
4982
|
+
const e = Me(s.data);
|
|
4983
4983
|
return {
|
|
4984
4984
|
key: s.type,
|
|
4985
4985
|
data: e
|
|
@@ -4990,7 +4990,7 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
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
|
+
}, Me = (s, e = !1) => {
|
|
4994
4994
|
const t = Co();
|
|
4995
4995
|
if (t) {
|
|
4996
4996
|
const c = t.decode(s);
|
|
@@ -5034,7 +5034,7 @@ 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
|
}
|
|
5037
|
-
const
|
|
5037
|
+
const Ie = {
|
|
5038
5038
|
hexDump: function(s) {
|
|
5039
5039
|
let e = "";
|
|
5040
5040
|
for (let t = 0; t < s.length; t++) {
|
|
@@ -5238,17 +5238,17 @@ function wo(s) {
|
|
|
5238
5238
|
case "dvh1":
|
|
5239
5239
|
case "dvhe": {
|
|
5240
5240
|
const a = X(t, ["dvcC"])[0], o = a[2] >> 1 & 127, l = a[2] << 5 & 32 | a[3] >> 3 & 31;
|
|
5241
|
-
r += "." +
|
|
5241
|
+
r += "." + De(o) + "." + De(l);
|
|
5242
5242
|
break;
|
|
5243
5243
|
}
|
|
5244
5244
|
case "vp09": {
|
|
5245
5245
|
const a = X(t, ["vpcC"])[0], o = a[4], l = a[5], c = a[6] >> 4 & 15;
|
|
5246
|
-
r += "." +
|
|
5246
|
+
r += "." + De(o) + "." + De(l) + "." + De(c);
|
|
5247
5247
|
break;
|
|
5248
5248
|
}
|
|
5249
5249
|
case "av01": {
|
|
5250
5250
|
const a = X(t, ["av1C"])[0], o = a[1] >>> 5, l = a[1] & 31, c = a[2] >>> 7 ? "H" : "M", u = (a[2] & 64) >> 6, h = (a[2] & 32) >> 5, d = o === 2 && u ? h ? 12 : 10 : u ? 10 : 8, f = (a[2] & 16) >> 4, m = (a[2] & 8) >> 3, g = (a[2] & 4) >> 2, y = a[2] & 3, v = 1, T = 1, x = 1, L = 0;
|
|
5251
|
-
r += "." + o + "." +
|
|
5251
|
+
r += "." + o + "." + De(l) + c + "." + De(d) + "." + f + "." + m + g + y + "." + De(v) + "." + De(T) + "." + De(x) + "." + L;
|
|
5252
5252
|
break;
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
@@ -5266,7 +5266,7 @@ function ui(s, e) {
|
|
|
5266
5266
|
function St(s) {
|
|
5267
5267
|
return ("0" + s.toString(16).toUpperCase()).slice(-2);
|
|
5268
5268
|
}
|
|
5269
|
-
function
|
|
5269
|
+
function De(s) {
|
|
5270
5270
|
return (s < 10 ? "0" : "") + s;
|
|
5271
5271
|
}
|
|
5272
5272
|
function ko(s, e) {
|
|
@@ -5283,7 +5283,7 @@ function ko(s, e) {
|
|
|
5283
5283
|
const f = pn(d);
|
|
5284
5284
|
if (f) {
|
|
5285
5285
|
const m = f.subarray(8, 24);
|
|
5286
|
-
m.some((g) => g !== 0) || (S.log(`[eme] Patching keyId in 'enc${l ? "a" : "v"}>sinf>>tenc' box: ${
|
|
5286
|
+
m.some((g) => g !== 0) || (S.log(`[eme] Patching keyId in 'enc${l ? "a" : "v"}>sinf>>tenc' box: ${Ie.hexDump(m)} -> ${Ie.hexDump(t)}`), f.set(t, 8));
|
|
5287
5287
|
}
|
|
5288
5288
|
});
|
|
5289
5289
|
});
|
|
@@ -5532,7 +5532,7 @@ function yn(s, e, t, i) {
|
|
|
5532
5532
|
payloadType: a,
|
|
5533
5533
|
pts: t,
|
|
5534
5534
|
uuid: h.join(""),
|
|
5535
|
-
userData:
|
|
5535
|
+
userData: Me(f),
|
|
5536
5536
|
userDataBytes: f
|
|
5537
5537
|
});
|
|
5538
5538
|
}
|
|
@@ -5638,7 +5638,7 @@ function Vo(s) {
|
|
|
5638
5638
|
}, t = new DataView(s), i = t.getUint32(0);
|
|
5639
5639
|
if (s.byteLength !== i && i > 44 || t.getUint32(4) !== 1886614376 || (e.version = t.getUint32(8) >>> 24, e.version > 1))
|
|
5640
5640
|
return null;
|
|
5641
|
-
e.systemId =
|
|
5641
|
+
e.systemId = Ie.hexDump(new Uint8Array(s, 12, 16));
|
|
5642
5642
|
const n = t.getUint32(28);
|
|
5643
5643
|
if (e.version === 0) {
|
|
5644
5644
|
if (i - 32 < n)
|
|
@@ -5926,7 +5926,7 @@ const _s = /#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT
|
|
|
5926
5926
|
/#.*/.source
|
|
5927
5927
|
// All other non-segment oriented tags will match with all groups empty
|
|
5928
5928
|
].join("|"), "g"), Zo = new RegExp([/#(EXTM3U)/.source, /#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source, /#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source, /#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source, /(#)([^:]*):(.*)/.source, /(#)(.*)(?:.*)\r?\n?/.source].join("|"));
|
|
5929
|
-
class
|
|
5929
|
+
class Pe {
|
|
5930
5930
|
static findGroup(e, t) {
|
|
5931
5931
|
for (let i = 0; i < e.length; i++) {
|
|
5932
5932
|
const r = e[i];
|
|
@@ -5964,7 +5964,7 @@ class ke {
|
|
|
5964
5964
|
attrs: c,
|
|
5965
5965
|
bitrate: c.decimalInteger("BANDWIDTH") || c.decimalInteger("AVERAGE-BANDWIDTH"),
|
|
5966
5966
|
name: c.NAME,
|
|
5967
|
-
url:
|
|
5967
|
+
url: Pe.resolve(u, t)
|
|
5968
5968
|
}, d = c.decimalResolution("RESOLUTION");
|
|
5969
5969
|
d && (h.width = d.width, h.height = d.height), Qo(c.CODECS, h), (o = h.unknownCodecs) != null && o.length || n.push(h), r.levels.push(h);
|
|
5970
5970
|
} else if (a[3]) {
|
|
@@ -5992,7 +5992,7 @@ class ke {
|
|
|
5992
5992
|
case "CONTENT-STEERING": {
|
|
5993
5993
|
const h = new ne(u);
|
|
5994
5994
|
ve(r, h, ["SERVER-URI", "PATHWAY-ID"]), r.contentSteering = {
|
|
5995
|
-
uri:
|
|
5995
|
+
uri: Pe.resolve(h["SERVER-URI"], t),
|
|
5996
5996
|
pathwayId: h["PATHWAY-ID"] || "."
|
|
5997
5997
|
};
|
|
5998
5998
|
break;
|
|
@@ -6036,10 +6036,10 @@ class ke {
|
|
|
6036
6036
|
autoselect: c.bool("AUTOSELECT"),
|
|
6037
6037
|
forced: c.bool("FORCED"),
|
|
6038
6038
|
lang: f,
|
|
6039
|
-
url: c.URI ?
|
|
6039
|
+
url: c.URI ? Pe.resolve(c.URI, t) : ""
|
|
6040
6040
|
};
|
|
6041
6041
|
if (m && (T.assocLang = m), g && (T.channels = g), y && (T.characteristics = y), v && (T.instreamId = v), h != null && h.length) {
|
|
6042
|
-
const x =
|
|
6042
|
+
const x = Pe.findGroup(h, T.groupId) || h[0];
|
|
6043
6043
|
Os(T, x, "audioCodec"), Os(T, x, "textCodec");
|
|
6044
6044
|
}
|
|
6045
6045
|
d.push(T);
|
|
@@ -6221,7 +6221,7 @@ function ks(s, e, t) {
|
|
|
6221
6221
|
ve(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
|
-
const h = o ?
|
|
6224
|
+
const h = o ? Pe.resolve(o, e) : "", d = (c || "1").split("/").map(Number).filter(Number.isFinite);
|
|
6225
6225
|
return new Tt(a, h, u, d, l);
|
|
6226
6226
|
}
|
|
6227
6227
|
function Ps(s) {
|
|
@@ -6443,7 +6443,7 @@ class el {
|
|
|
6443
6443
|
this.handleManifestParsingError(c, h, new Error("no EXTM3U delimiter"), d || null, u);
|
|
6444
6444
|
return;
|
|
6445
6445
|
}
|
|
6446
|
-
u.parsing.start = performance.now(),
|
|
6446
|
+
u.parsing.start = performance.now(), Pe.isMediaPlaylist(m) ? this.handleTrackOrLevelPlaylist(c, u, h, d || null, f) : this.handleMasterPlaylist(c, u, h, d);
|
|
6447
6447
|
},
|
|
6448
6448
|
onError: (c, u, h, d) => {
|
|
6449
6449
|
this.handleNetworkError(u, h, !1, c, d);
|
|
@@ -6455,7 +6455,7 @@ class el {
|
|
|
6455
6455
|
r.load(e, o, l);
|
|
6456
6456
|
}
|
|
6457
6457
|
handleMasterPlaylist(e, t, i, r) {
|
|
6458
|
-
const n = this.hls, a = e.data, o = fi(e, i), l =
|
|
6458
|
+
const n = this.hls, a = e.data, o = fi(e, i), l = Pe.parseMasterPlaylist(a, o);
|
|
6459
6459
|
if (l.playlistParsingError) {
|
|
6460
6460
|
this.handleManifestParsingError(e, i, l.playlistParsingError, r, t);
|
|
6461
6461
|
return;
|
|
@@ -6473,7 +6473,7 @@ class el {
|
|
|
6473
6473
|
AUDIO: g = [],
|
|
6474
6474
|
SUBTITLES: y,
|
|
6475
6475
|
"CLOSED-CAPTIONS": v
|
|
6476
|
-
} =
|
|
6476
|
+
} = Pe.parseMasterPlaylistMedia(a, o, l);
|
|
6477
6477
|
g.length && !g.some((x) => !x.url) && u[0].audioCodec && !u[0].attrs.AUDIO && (S.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"), g.unshift({
|
|
6478
6478
|
type: "main",
|
|
6479
6479
|
name: "main",
|
|
@@ -6505,7 +6505,7 @@ class el {
|
|
|
6505
6505
|
id: o,
|
|
6506
6506
|
level: l,
|
|
6507
6507
|
type: c
|
|
6508
|
-
} = i, u = fi(e, i), h = 0, d = W(l) ? l : W(o) ? o : 0, f = Bs(i), m =
|
|
6508
|
+
} = i, u = fi(e, i), h = 0, d = W(l) ? l : W(o) ? o : 0, f = Bs(i), m = Pe.parseLevelPlaylist(e.data, u, d, f, h, this.variableList);
|
|
6509
6509
|
if (c === J.MANIFEST) {
|
|
6510
6510
|
const g = {
|
|
6511
6511
|
attrs: new ne({}),
|
|
@@ -6746,7 +6746,7 @@ function Ot(s) {
|
|
|
6746
6746
|
}
|
|
6747
6747
|
return e;
|
|
6748
6748
|
}
|
|
6749
|
-
var
|
|
6749
|
+
var Ce = {
|
|
6750
6750
|
audioId3: "org.id3",
|
|
6751
6751
|
dateRange: "com.apple.quicktime.HLS",
|
|
6752
6752
|
emsg: "https://aomedia.org/emsg/ID3"
|
|
@@ -6846,7 +6846,7 @@ class nl {
|
|
|
6846
6846
|
if (a)
|
|
6847
6847
|
for (let o = 0; o < n.length; o++) {
|
|
6848
6848
|
const l = n[o].type;
|
|
6849
|
-
if (l ===
|
|
6849
|
+
if (l === Ce.emsg && !i || !r)
|
|
6850
6850
|
continue;
|
|
6851
6851
|
const c = hn(n[o].data);
|
|
6852
6852
|
if (c) {
|
|
@@ -6892,7 +6892,7 @@ class nl {
|
|
|
6892
6892
|
} = a;
|
|
6893
6893
|
if (n && (o || l)) {
|
|
6894
6894
|
let c;
|
|
6895
|
-
r === "audio" ? c = (u) => u.type ===
|
|
6895
|
+
r === "audio" ? c = (u) => u.type === Ce.audioId3 && l : r === "video" ? c = (u) => u.type === Ce.emsg && o : c = (u) => u.type === Ce.audioId3 && l || u.type === Ce.emsg && o, Fi(n, t, i, c);
|
|
6896
6896
|
}
|
|
6897
6897
|
}
|
|
6898
6898
|
onLevelUpdated(e, {
|
|
@@ -6951,7 +6951,7 @@ class nl {
|
|
|
6951
6951
|
const B = $s(c, f, v, {
|
|
6952
6952
|
key: E,
|
|
6953
6953
|
data: R
|
|
6954
|
-
},
|
|
6954
|
+
}, Ce.dateRange);
|
|
6955
6955
|
B && (B.id = h, this.id3Track.addCue(B), g[E] = B);
|
|
6956
6956
|
}
|
|
6957
6957
|
}
|
|
@@ -7466,7 +7466,7 @@ var me = {
|
|
|
7466
7466
|
RemoveAlternatePermanently: 3,
|
|
7467
7467
|
InsertDiscontinuity: 4,
|
|
7468
7468
|
RetryRequest: 5
|
|
7469
|
-
},
|
|
7469
|
+
}, Le = {
|
|
7470
7470
|
None: 0,
|
|
7471
7471
|
MoveAllAlternatesMatchingHost: 1,
|
|
7472
7472
|
MoveAllAlternatesMatchingHDCP: 2,
|
|
@@ -7517,7 +7517,7 @@ class Tl {
|
|
|
7517
7517
|
if ((i = t.frag) != null && i.gap) {
|
|
7518
7518
|
t.errorAction = {
|
|
7519
7519
|
action: me.DoNothing,
|
|
7520
|
-
flags:
|
|
7520
|
+
flags: Le.None
|
|
7521
7521
|
};
|
|
7522
7522
|
return;
|
|
7523
7523
|
}
|
|
@@ -7545,7 +7545,7 @@ class Tl {
|
|
|
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 = Le.MoveAllAlternatesMatchingHost;
|
|
7549
7549
|
return;
|
|
7550
7550
|
}
|
|
7551
7551
|
}
|
|
@@ -7555,7 +7555,7 @@ class Tl {
|
|
|
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: Le.MoveAllAlternatesMatchingHDCP,
|
|
7559
7559
|
hdcpLevel: u
|
|
7560
7560
|
} : this.keySystemError(t);
|
|
7561
7561
|
}
|
|
@@ -7574,7 +7574,7 @@ class Tl {
|
|
|
7574
7574
|
case _.BUFFER_NUDGE_ON_STALL:
|
|
7575
7575
|
t.errorAction = {
|
|
7576
7576
|
action: me.DoNothing,
|
|
7577
|
-
flags:
|
|
7577
|
+
flags: Le.None
|
|
7578
7578
|
};
|
|
7579
7579
|
return;
|
|
7580
7580
|
}
|
|
@@ -7589,7 +7589,7 @@ class Tl {
|
|
|
7589
7589
|
if (Yt(r, n, zt(e), e.response))
|
|
7590
7590
|
return {
|
|
7591
7591
|
action: me.RetryRequest,
|
|
7592
|
-
flags:
|
|
7592
|
+
flags: Le.None,
|
|
7593
7593
|
retryConfig: r,
|
|
7594
7594
|
retryCount: n
|
|
7595
7595
|
};
|
|
@@ -7604,7 +7604,7 @@ class Tl {
|
|
|
7604
7604
|
if (r && (e.details !== _.FRAG_GAP && r.fragmentError++, Yt(o, l, zt(e), e.response)))
|
|
7605
7605
|
return {
|
|
7606
7606
|
action: me.RetryRequest,
|
|
7607
|
-
flags:
|
|
7607
|
+
flags: Le.None,
|
|
7608
7608
|
retryConfig: o,
|
|
7609
7609
|
retryCount: l
|
|
7610
7610
|
};
|
|
@@ -7661,13 +7661,13 @@ class Tl {
|
|
|
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: Le.None,
|
|
7665
7665
|
nextAutoLevel: u
|
|
7666
7666
|
};
|
|
7667
7667
|
}
|
|
7668
7668
|
return {
|
|
7669
7669
|
action: me.SendAlternateToPenaltyBox,
|
|
7670
|
-
flags:
|
|
7670
|
+
flags: Le.MoveAllAlternatesMatchingHost
|
|
7671
7671
|
};
|
|
7672
7672
|
}
|
|
7673
7673
|
onErrorOut(e, t) {
|
|
@@ -7694,10 +7694,10 @@ class Tl {
|
|
|
7694
7694
|
nextAutoLevel: a
|
|
7695
7695
|
} = i;
|
|
7696
7696
|
switch (r) {
|
|
7697
|
-
case
|
|
7697
|
+
case Le.None:
|
|
7698
7698
|
this.switchLevel(e, a);
|
|
7699
7699
|
break;
|
|
7700
|
-
case
|
|
7700
|
+
case Le.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
|
}
|
|
@@ -8010,17 +8010,17 @@ function Cl(s, e, t, i, r) {
|
|
|
8010
8010
|
if (k === E)
|
|
8011
8011
|
return E;
|
|
8012
8012
|
if (R.minBitrate > t)
|
|
8013
|
-
return
|
|
8013
|
+
return $e(k, `min bitrate of ${R.minBitrate} > current estimate of ${t}`), E;
|
|
8014
8014
|
if (!R.hasDefaultAudio)
|
|
8015
|
-
return
|
|
8015
|
+
return $e(k, "no renditions with default or auto-select sound found"), E;
|
|
8016
8016
|
if (o && k.indexOf(o.substring(0, 4)) % 5 !== 0)
|
|
8017
|
-
return
|
|
8017
|
+
return $e(k, `audio codec preference "${o}" not found`), E;
|
|
8018
8018
|
if (a && !l) {
|
|
8019
8019
|
if (!R.channels[a])
|
|
8020
|
-
return
|
|
8020
|
+
return $e(k, `no renditions with ${a} channel sound found (channels options: ${Object.keys(R.channels)})`), E;
|
|
8021
8021
|
} else if ((!o || l) && c && R.channels[2] === 0)
|
|
8022
|
-
return
|
|
8023
|
-
return R.minHeight > T ? (
|
|
8022
|
+
return $e(k, "no renditions with stereo sound found"), E;
|
|
8023
|
+
return R.minHeight > T ? ($e(k, `min resolution of ${R.minHeight} > maximum of ${T}`), E) : R.minFramerate > x ? ($e(k, `min framerate of ${R.minFramerate} > maximum of ${x}`), E) : g.some((B) => R.videoRanges[B] > 0) ? R.maxScore < m ? ($e(k, `max score of ${R.maxScore} < selected max of ${m}`), E) : E && (Vt(k) >= Vt(E) || R.fragmentError > s[E].fragmentError) ? E : (m = R.maxScore, k) : ($e(k, `no variants with VIDEO-RANGE of ${JSON.stringify(g)} found`), E);
|
|
8024
8024
|
}, void 0),
|
|
8025
8025
|
videoRanges: g,
|
|
8026
8026
|
preferHDR: y,
|
|
@@ -8028,7 +8028,7 @@ function Cl(s, e, t, i, r) {
|
|
|
8028
8028
|
minBitrate: f
|
|
8029
8029
|
};
|
|
8030
8030
|
}
|
|
8031
|
-
function
|
|
8031
|
+
function $e(s, e) {
|
|
8032
8032
|
S.log(`[abr] start candidates with "${s}" ignored because ${e}`);
|
|
8033
8033
|
}
|
|
8034
8034
|
function Dl(s) {
|
|
@@ -8081,7 +8081,7 @@ function _l(s, e, t, i) {
|
|
|
8081
8081
|
}), r;
|
|
8082
8082
|
}, {});
|
|
8083
8083
|
}
|
|
8084
|
-
function
|
|
8084
|
+
function Oe(s, e, t) {
|
|
8085
8085
|
if ("attrs" in s) {
|
|
8086
8086
|
const i = e.indexOf(s);
|
|
8087
8087
|
if (i !== -1)
|
|
@@ -8126,11 +8126,11 @@ function wl(s, e, t, i, r) {
|
|
|
8126
8126
|
if (d.videoRange !== l || d.frameRate !== c || d.codecSet.substring(0, 4) !== u)
|
|
8127
8127
|
return !1;
|
|
8128
8128
|
const f = d.audioGroups, m = t.filter((g) => !f || f.indexOf(g.groupId) !== -1);
|
|
8129
|
-
return
|
|
8129
|
+
return Oe(s, m, r) > -1;
|
|
8130
8130
|
});
|
|
8131
8131
|
return h > -1 ? h : zs(e, i, (d) => {
|
|
8132
8132
|
const f = d.audioGroups, m = t.filter((g) => !f || f.indexOf(g.groupId) !== -1);
|
|
8133
|
-
return
|
|
8133
|
+
return Oe(s, m, r) > -1;
|
|
8134
8134
|
});
|
|
8135
8135
|
}
|
|
8136
8136
|
function zs(s, e, t) {
|
|
@@ -10083,7 +10083,7 @@ function Xl(s) {
|
|
|
10083
10083
|
scriptURL: e
|
|
10084
10084
|
};
|
|
10085
10085
|
}
|
|
10086
|
-
function
|
|
10086
|
+
function ke(s = "", e = 9e4) {
|
|
10087
10087
|
return {
|
|
10088
10088
|
type: s,
|
|
10089
10089
|
id: -1,
|
|
@@ -10129,7 +10129,7 @@ class cs {
|
|
|
10129
10129
|
pts: this.lastPTS,
|
|
10130
10130
|
dts: this.lastPTS,
|
|
10131
10131
|
data: i,
|
|
10132
|
-
type:
|
|
10132
|
+
type: Ce.audioId3,
|
|
10133
10133
|
duration: Number.POSITIVE_INFINITY
|
|
10134
10134
|
}); r < c; ) {
|
|
10135
10135
|
if (this.canParse(e, r)) {
|
|
@@ -10140,7 +10140,7 @@ class cs {
|
|
|
10140
10140
|
pts: this.lastPTS,
|
|
10141
10141
|
dts: this.lastPTS,
|
|
10142
10142
|
data: i,
|
|
10143
|
-
type:
|
|
10143
|
+
type: Ce.audioId3,
|
|
10144
10144
|
duration: Number.POSITIVE_INFINITY
|
|
10145
10145
|
}), r += i.length, n = r) : r++;
|
|
10146
10146
|
if (r === c && n !== c) {
|
|
@@ -10150,9 +10150,9 @@ class cs {
|
|
|
10150
10150
|
}
|
|
10151
10151
|
return {
|
|
10152
10152
|
audioTrack: a,
|
|
10153
|
-
videoTrack:
|
|
10153
|
+
videoTrack: ke(),
|
|
10154
10154
|
id3Track: o,
|
|
10155
|
-
textTrack:
|
|
10155
|
+
textTrack: ke()
|
|
10156
10156
|
};
|
|
10157
10157
|
}
|
|
10158
10158
|
demuxSampleAes(e, t, i) {
|
|
@@ -10162,9 +10162,9 @@ class cs {
|
|
|
10162
10162
|
const t = this.cachedData;
|
|
10163
10163
|
return t && (this.cachedData = null, this.demux(t, 0)), {
|
|
10164
10164
|
audioTrack: this._audioTrack,
|
|
10165
|
-
videoTrack:
|
|
10165
|
+
videoTrack: ke(),
|
|
10166
10166
|
id3Track: this._id3Track,
|
|
10167
|
-
textTrack:
|
|
10167
|
+
textTrack: ke()
|
|
10168
10168
|
};
|
|
10169
10169
|
}
|
|
10170
10170
|
destroy() {
|
|
@@ -10440,8 +10440,8 @@ class uc {
|
|
|
10440
10440
|
resetTimeStamp() {
|
|
10441
10441
|
}
|
|
10442
10442
|
resetInitSegment(e, t, i, r) {
|
|
10443
|
-
const n = this.videoTrack =
|
|
10444
|
-
if (this.id3Track =
|
|
10443
|
+
const n = this.videoTrack = ke("video", 1), a = this.audioTrack = ke("audio", 1), o = this.txtTrack = ke("text", 1);
|
|
10444
|
+
if (this.id3Track = ke("id3", 1), this.timeOffset = 0, !(e != null && e.byteLength))
|
|
10445
10445
|
return;
|
|
10446
10446
|
const l = gn(e);
|
|
10447
10447
|
if (l.video) {
|
|
@@ -10492,9 +10492,9 @@ class uc {
|
|
|
10492
10492
|
const r = this.extractID3Track(t, this.timeOffset);
|
|
10493
10493
|
return i.samples = As(e, t), {
|
|
10494
10494
|
videoTrack: t,
|
|
10495
|
-
audioTrack:
|
|
10495
|
+
audioTrack: ke(),
|
|
10496
10496
|
id3Track: r,
|
|
10497
|
-
textTrack:
|
|
10497
|
+
textTrack: ke()
|
|
10498
10498
|
};
|
|
10499
10499
|
}
|
|
10500
10500
|
extractID3Track(e, t) {
|
|
@@ -10513,7 +10513,7 @@ class uc {
|
|
|
10513
10513
|
len: c.byteLength,
|
|
10514
10514
|
dts: o,
|
|
10515
10515
|
pts: o,
|
|
10516
|
-
type:
|
|
10516
|
+
type: Ce.emsg,
|
|
10517
10517
|
duration: l
|
|
10518
10518
|
});
|
|
10519
10519
|
}
|
|
@@ -11296,7 +11296,7 @@ class ze {
|
|
|
11296
11296
|
return;
|
|
11297
11297
|
}
|
|
11298
11298
|
const i = oe({}, t, {
|
|
11299
|
-
type: this._videoTrack ?
|
|
11299
|
+
type: this._videoTrack ? Ce.emsg : Ce.audioId3,
|
|
11300
11300
|
duration: Number.POSITIVE_INFINITY
|
|
11301
11301
|
});
|
|
11302
11302
|
e.samples.push(i);
|
|
@@ -14100,11 +14100,11 @@ class wc extends ns {
|
|
|
14100
14100
|
this.tracksInGroup = o;
|
|
14101
14101
|
const l = this.hls.config.audioPreference;
|
|
14102
14102
|
if (!n && l) {
|
|
14103
|
-
const d =
|
|
14103
|
+
const d = Oe(l, o, et);
|
|
14104
14104
|
if (d > -1)
|
|
14105
14105
|
n = o[d];
|
|
14106
14106
|
else {
|
|
14107
|
-
const f =
|
|
14107
|
+
const f = Oe(l, this.tracks);
|
|
14108
14108
|
n = this.tracks[f];
|
|
14109
14109
|
}
|
|
14110
14110
|
}
|
|
@@ -14153,7 +14153,7 @@ class wc extends ns {
|
|
|
14153
14153
|
const r = this.currentTrack;
|
|
14154
14154
|
if (r && at(e, r, et))
|
|
14155
14155
|
return r;
|
|
14156
|
-
const n =
|
|
14156
|
+
const n = Oe(e, this.tracksInGroup, et);
|
|
14157
14157
|
if (n > -1) {
|
|
14158
14158
|
const a = this.tracksInGroup[n];
|
|
14159
14159
|
return this.setAudioTrack(n), a;
|
|
@@ -14166,7 +14166,7 @@ class wc extends ns {
|
|
|
14166
14166
|
t.nextLoadLevel = o;
|
|
14167
14167
|
}
|
|
14168
14168
|
if (e.channels || e.audioCodec) {
|
|
14169
|
-
const a =
|
|
14169
|
+
const a = Oe(e, i);
|
|
14170
14170
|
if (a > -1)
|
|
14171
14171
|
return i[a];
|
|
14172
14172
|
}
|
|
@@ -14591,11 +14591,11 @@ class Oc extends ns {
|
|
|
14591
14591
|
const o = this.hls.config.subtitlePreference;
|
|
14592
14592
|
if (!n && o) {
|
|
14593
14593
|
this.selectDefaultTrack = !1;
|
|
14594
|
-
const u =
|
|
14594
|
+
const u = Oe(o, a);
|
|
14595
14595
|
if (u > -1)
|
|
14596
14596
|
n = a[u];
|
|
14597
14597
|
else {
|
|
14598
|
-
const h =
|
|
14598
|
+
const h = Oe(o, this.tracks);
|
|
14599
14599
|
n = this.tracks[h];
|
|
14600
14600
|
}
|
|
14601
14601
|
}
|
|
@@ -14664,7 +14664,7 @@ class Oc extends ns {
|
|
|
14664
14664
|
const i = this.currentTrack;
|
|
14665
14665
|
if (i && at(e, i))
|
|
14666
14666
|
return i;
|
|
14667
|
-
const r =
|
|
14667
|
+
const r = Oe(e, this.tracksInGroup);
|
|
14668
14668
|
if (r > -1) {
|
|
14669
14669
|
const n = this.tracksInGroup[r];
|
|
14670
14670
|
return this.setSubtitleTrack(r), n;
|
|
@@ -14672,7 +14672,7 @@ class Oc extends ns {
|
|
|
14672
14672
|
if (i)
|
|
14673
14673
|
return null;
|
|
14674
14674
|
{
|
|
14675
|
-
const n =
|
|
14675
|
+
const n = Oe(e, t);
|
|
14676
14676
|
if (n > -1)
|
|
14677
14677
|
return t[n];
|
|
14678
14678
|
}
|
|
@@ -15596,7 +15596,7 @@ const or = {
|
|
|
15596
15596
|
}, jn = function(e) {
|
|
15597
15597
|
let t = e;
|
|
15598
15598
|
return or.hasOwnProperty(e) && (t = or[e]), String.fromCharCode(t);
|
|
15599
|
-
},
|
|
15599
|
+
}, Re = 15, Ue = 100, Bc = {
|
|
15600
15600
|
17: 1,
|
|
15601
15601
|
18: 3,
|
|
15602
15602
|
21: 5,
|
|
@@ -15701,23 +15701,23 @@ class Kc {
|
|
|
15701
15701
|
class Wc {
|
|
15702
15702
|
constructor(e) {
|
|
15703
15703
|
this.chars = [], this.pos = 0, this.currPenState = new qn(), this.cueStartTime = null, this.logger = void 0;
|
|
15704
|
-
for (let t = 0; t <
|
|
15704
|
+
for (let t = 0; t < Ue; t++)
|
|
15705
15705
|
this.chars.push(new Kc());
|
|
15706
15706
|
this.logger = e;
|
|
15707
15707
|
}
|
|
15708
15708
|
equals(e) {
|
|
15709
|
-
for (let t = 0; t <
|
|
15709
|
+
for (let t = 0; t < Ue; t++)
|
|
15710
15710
|
if (!this.chars[t].equals(e.chars[t]))
|
|
15711
15711
|
return !1;
|
|
15712
15712
|
return !0;
|
|
15713
15713
|
}
|
|
15714
15714
|
copy(e) {
|
|
15715
|
-
for (let t = 0; t <
|
|
15715
|
+
for (let t = 0; t < Ue; t++)
|
|
15716
15716
|
this.chars[t].copy(e.chars[t]);
|
|
15717
15717
|
}
|
|
15718
15718
|
isEmpty() {
|
|
15719
15719
|
let e = !0;
|
|
15720
|
-
for (let t = 0; t <
|
|
15720
|
+
for (let t = 0; t < Ue; t++)
|
|
15721
15721
|
if (!this.chars[t].isEmpty()) {
|
|
15722
15722
|
e = !1;
|
|
15723
15723
|
break;
|
|
@@ -15728,7 +15728,7 @@ class Wc {
|
|
|
15728
15728
|
* Set the cursor to a valid column.
|
|
15729
15729
|
*/
|
|
15730
15730
|
setCursor(e) {
|
|
15731
|
-
this.pos !== e && (this.pos = e), this.pos < 0 ? (this.logger.log(3, "Negative cursor position " + this.pos), this.pos = 0) : this.pos >
|
|
15731
|
+
this.pos !== e && (this.pos = e), this.pos < 0 ? (this.logger.log(3, "Negative cursor position " + this.pos), this.pos = 0) : this.pos > Ue && (this.logger.log(3, "Too large cursor position " + this.pos), this.pos = Ue);
|
|
15732
15732
|
}
|
|
15733
15733
|
/**
|
|
15734
15734
|
* Move the cursor relative to current position.
|
|
@@ -15749,7 +15749,7 @@ class Wc {
|
|
|
15749
15749
|
insertChar(e) {
|
|
15750
15750
|
e >= 144 && this.backSpace();
|
|
15751
15751
|
const t = jn(e);
|
|
15752
|
-
if (this.pos >=
|
|
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;
|
|
15755
15755
|
}
|
|
@@ -15757,7 +15757,7 @@ class Wc {
|
|
|
15757
15757
|
}
|
|
15758
15758
|
clearFromPos(e) {
|
|
15759
15759
|
let t;
|
|
15760
|
-
for (t = e; t <
|
|
15760
|
+
for (t = e; t < Ue; t++)
|
|
15761
15761
|
this.chars[t].reset();
|
|
15762
15762
|
}
|
|
15763
15763
|
clear() {
|
|
@@ -15769,7 +15769,7 @@ class Wc {
|
|
|
15769
15769
|
getTextString() {
|
|
15770
15770
|
const e = [];
|
|
15771
15771
|
let t = !0;
|
|
15772
|
-
for (let i = 0; i <
|
|
15772
|
+
for (let i = 0; i < Ue; i++) {
|
|
15773
15773
|
const r = this.chars[i].uchar;
|
|
15774
15774
|
r !== " " && (t = !1), e.push(r);
|
|
15775
15775
|
}
|
|
@@ -15781,19 +15781,19 @@ class Wc {
|
|
|
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 = Re - 1, this.nrRollUpRows = null, this.lastOutputScreen = null, this.logger = void 0;
|
|
15785
|
+
for (let t = 0; t < Re; t++)
|
|
15786
15786
|
this.rows.push(new Wc(e));
|
|
15787
15787
|
this.logger = e;
|
|
15788
15788
|
}
|
|
15789
15789
|
reset() {
|
|
15790
|
-
for (let e = 0; e <
|
|
15790
|
+
for (let e = 0; e < Re; e++)
|
|
15791
15791
|
this.rows[e].clear();
|
|
15792
|
-
this.currRow =
|
|
15792
|
+
this.currRow = Re - 1;
|
|
15793
15793
|
}
|
|
15794
15794
|
equals(e) {
|
|
15795
15795
|
let t = !0;
|
|
15796
|
-
for (let i = 0; i <
|
|
15796
|
+
for (let i = 0; i < Re; 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 < Re; 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 < Re; 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 < Re; 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 < Re; 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[Re - 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[Re - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null;
|
|
15908
15908
|
}
|
|
15909
15909
|
getHandler() {
|
|
15910
15910
|
return this.outputFilter;
|
|
@@ -16574,7 +16574,7 @@ const Qc = function(e, t, i) {
|
|
|
16574
16574
|
e.presentationOffset = i;
|
|
16575
16575
|
};
|
|
16576
16576
|
function Jc(s, e, t, i, r, n, a) {
|
|
16577
|
-
const o = new qc(), l =
|
|
16577
|
+
const o = new qc(), l = Me(new Uint8Array(s)).trim().replace(Xc, `
|
|
16578
16578
|
`).split(`
|
|
16579
16579
|
`), c = [], u = e ? xc(e.baseTime, e.timescale) : 0;
|
|
16580
16580
|
let h = "00:00.000", d = 0, f = 0, m, g = !0;
|
|
@@ -16632,7 +16632,7 @@ function dr(s, e, t, i) {
|
|
|
16632
16632
|
i(new Error("Could not parse IMSC1 mdat"));
|
|
16633
16633
|
return;
|
|
16634
16634
|
}
|
|
16635
|
-
const n = r.map((o) =>
|
|
16635
|
+
const n = r.map((o) => Me(o)), a = vc(e.baseTime, 1, e.timescale);
|
|
16636
16636
|
try {
|
|
16637
16637
|
n.forEach((o) => t(tu(o, a)));
|
|
16638
16638
|
} catch (o) {
|
|
@@ -17422,7 +17422,7 @@ class ot {
|
|
|
17422
17422
|
keySystem: t,
|
|
17423
17423
|
mediaKeys: i
|
|
17424
17424
|
}) {
|
|
17425
|
-
this.log(`Creating key-system session "${t}" keyId: ${
|
|
17425
|
+
this.log(`Creating key-system session "${t}" keyId: ${Ie.hexDump(e.keyId || [])}`);
|
|
17426
17426
|
const r = i.createSession(), n = {
|
|
17427
17427
|
decryptdata: e,
|
|
17428
17428
|
keySystem: t,
|
|
@@ -17446,12 +17446,12 @@ class ot {
|
|
|
17446
17446
|
throw new Error("Could not read keyId of undefined decryptdata");
|
|
17447
17447
|
if (e.keyId === null)
|
|
17448
17448
|
throw new Error("keyId is null");
|
|
17449
|
-
return
|
|
17449
|
+
return Ie.hexDump(e.keyId);
|
|
17450
17450
|
}
|
|
17451
17451
|
updateKeySession(e, t) {
|
|
17452
17452
|
var i;
|
|
17453
17453
|
const r = e.mediaKeysSession;
|
|
17454
|
-
return this.log(`Updating key-session "${r.sessionId}" for keyID ${
|
|
17454
|
+
return this.log(`Updating key-session "${r.sessionId}" for keyID ${Ie.hexDump(((i = e.decryptdata) == null ? void 0 : i.keyId) || [])}
|
|
17455
17455
|
} (data length: ${t && t.byteLength})`), r.update(t);
|
|
17456
17456
|
}
|
|
17457
17457
|
selectKeySystemFormat(e) {
|
|
@@ -17544,7 +17544,7 @@ class ot {
|
|
|
17544
17544
|
}
|
|
17545
17545
|
if (!n || !r)
|
|
17546
17546
|
return;
|
|
17547
|
-
const a =
|
|
17547
|
+
const a = Ie.hexDump(r), {
|
|
17548
17548
|
keyIdToKeySessionPromise: o,
|
|
17549
17549
|
mediaKeySessions: l
|
|
17550
17550
|
} = this;
|
|
@@ -17553,7 +17553,7 @@ class ot {
|
|
|
17553
17553
|
const h = l[u], d = h.decryptdata;
|
|
17554
17554
|
if (d.pssh || !d.keyId)
|
|
17555
17555
|
continue;
|
|
17556
|
-
const f =
|
|
17556
|
+
const f = Ie.hexDump(d.keyId);
|
|
17557
17557
|
if (a === f || d.uri.replace(/-/g, "").indexOf(a) !== -1) {
|
|
17558
17558
|
c = o[f], delete o[f], d.pssh = new Uint8Array(i), d.keyId = r, c = o[a] = c.then(() => this.generateRequestWithPreferredKeySession(h, t, i, "encrypted-event-key-match"));
|
|
17559
17559
|
break;
|
|
@@ -17662,7 +17662,7 @@ class ot {
|
|
|
17662
17662
|
}
|
|
17663
17663
|
onKeyStatusChange(e) {
|
|
17664
17664
|
e.mediaKeysSession.keyStatuses.forEach((t, i) => {
|
|
17665
|
-
this.log(`key status change "${t}" for keyStatuses keyId: ${
|
|
17665
|
+
this.log(`key status change "${t}" for keyStatuses keyId: ${Ie.hexDump("buffer" in i ? new Uint8Array(i.buffer, i.byteOffset, i.byteLength) : new Uint8Array(i))} session keyId: ${Ie.hexDump(new Uint8Array(e.decryptdata.keyId || []))} uri: ${e.decryptdata.uri}`), e.keyStatus = t;
|
|
17666
17666
|
});
|
|
17667
17667
|
}
|
|
17668
17668
|
fetchServerCertificate(e) {
|
|
@@ -17916,12 +17916,12 @@ function pu(s) {
|
|
|
17916
17916
|
return s < -999999999999999 || 999999999999999 < s;
|
|
17917
17917
|
}
|
|
17918
17918
|
const yu = /[\x00-\x1f\x7f]+/, vu = "Token", xu = "Key";
|
|
17919
|
-
function
|
|
17919
|
+
function Ne(s, e, t) {
|
|
17920
17920
|
return hu("serialize", s, e, t);
|
|
17921
17921
|
}
|
|
17922
17922
|
function Tu(s) {
|
|
17923
17923
|
if (typeof s != "boolean")
|
|
17924
|
-
throw
|
|
17924
|
+
throw Ne(s, du);
|
|
17925
17925
|
return s ? "?1" : "?0";
|
|
17926
17926
|
}
|
|
17927
17927
|
function Eu(s) {
|
|
@@ -17929,12 +17929,12 @@ function Eu(s) {
|
|
|
17929
17929
|
}
|
|
17930
17930
|
function Su(s) {
|
|
17931
17931
|
if (ArrayBuffer.isView(s) === !1)
|
|
17932
|
-
throw
|
|
17932
|
+
throw Ne(s, fu);
|
|
17933
17933
|
return `:${Eu(s)}:`;
|
|
17934
17934
|
}
|
|
17935
17935
|
function ra(s) {
|
|
17936
17936
|
if (pu(s))
|
|
17937
|
-
throw
|
|
17937
|
+
throw Ne(s, gu);
|
|
17938
17938
|
return s.toString();
|
|
17939
17939
|
}
|
|
17940
17940
|
function bu(s) {
|
|
@@ -17953,14 +17953,14 @@ function na(s, e) {
|
|
|
17953
17953
|
function Au(s) {
|
|
17954
17954
|
const e = na(s, 3);
|
|
17955
17955
|
if (Math.floor(Math.abs(e)).toString().length > 12)
|
|
17956
|
-
throw
|
|
17956
|
+
throw Ne(s, mu);
|
|
17957
17957
|
const t = e.toString();
|
|
17958
17958
|
return t.includes(".") ? t : `${t}.0`;
|
|
17959
17959
|
}
|
|
17960
17960
|
const Lu = "String";
|
|
17961
17961
|
function Ru(s) {
|
|
17962
17962
|
if (yu.test(s))
|
|
17963
|
-
throw
|
|
17963
|
+
throw Ne(s, Lu);
|
|
17964
17964
|
return `"${s.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
17965
17965
|
}
|
|
17966
17966
|
function Cu(s) {
|
|
@@ -17969,14 +17969,14 @@ function Cu(s) {
|
|
|
17969
17969
|
function vr(s) {
|
|
17970
17970
|
const e = Cu(s);
|
|
17971
17971
|
if (/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e) === !1)
|
|
17972
|
-
throw
|
|
17972
|
+
throw Ne(e, vu);
|
|
17973
17973
|
return e;
|
|
17974
17974
|
}
|
|
17975
17975
|
function Ki(s) {
|
|
17976
17976
|
switch (typeof s) {
|
|
17977
17977
|
case "number":
|
|
17978
17978
|
if (!W(s))
|
|
17979
|
-
throw
|
|
17979
|
+
throw Ne(s, yr);
|
|
17980
17980
|
return Number.isInteger(s) ? ra(s) : Au(s);
|
|
17981
17981
|
case "string":
|
|
17982
17982
|
return Ru(s);
|
|
@@ -17992,12 +17992,12 @@ function Ki(s) {
|
|
|
17992
17992
|
if (s instanceof sa)
|
|
17993
17993
|
return vr(s);
|
|
17994
17994
|
default:
|
|
17995
|
-
throw
|
|
17995
|
+
throw Ne(s, yr);
|
|
17996
17996
|
}
|
|
17997
17997
|
}
|
|
17998
17998
|
function Wi(s) {
|
|
17999
17999
|
if (/^[a-z*][a-z0-9\-_.*]*$/.test(s) === !1)
|
|
18000
|
-
throw
|
|
18000
|
+
throw Ne(s, xu);
|
|
18001
18001
|
return s;
|
|
18002
18002
|
}
|
|
18003
18003
|
function ys(s) {
|
|
@@ -18013,7 +18013,7 @@ function _u(s, e = {
|
|
|
18013
18013
|
whitespace: !0
|
|
18014
18014
|
}) {
|
|
18015
18015
|
if (typeof s != "object")
|
|
18016
|
-
throw
|
|
18016
|
+
throw Ne(s, cu);
|
|
18017
18017
|
const t = s instanceof Map ? s.entries() : Object.entries(s), i = e != null && e.whitespace ? " " : "";
|
|
18018
18018
|
return Array.from(t).map(([r, n]) => {
|
|
18019
18019
|
n instanceof ht || (n = new ht(n));
|
|
@@ -18363,7 +18363,7 @@ class Wu {
|
|
|
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 === Le.MoveAllAlternatesMatchingHost) {
|
|
18367
18367
|
const r = this.levels;
|
|
18368
18368
|
let n = this.pathwayPriority, a = this.pathwayId;
|
|
18369
18369
|
if (t.context) {
|
|
@@ -20527,7 +20527,7 @@ class gh extends ls {
|
|
|
20527
20527
|
return this._forceStartLoad;
|
|
20528
20528
|
}
|
|
20529
20529
|
}
|
|
20530
|
-
class
|
|
20530
|
+
class Fe {
|
|
20531
20531
|
/**
|
|
20532
20532
|
* Get the video-dev/hls.js package version.
|
|
20533
20533
|
*/
|
|
@@ -20565,13 +20565,13 @@ class Oe {
|
|
|
20565
20565
|
* Get the default configuration applied to new instances.
|
|
20566
20566
|
*/
|
|
20567
20567
|
static get DefaultConfig() {
|
|
20568
|
-
return
|
|
20568
|
+
return Fe.defaultConfig ? Fe.defaultConfig : ua;
|
|
20569
20569
|
}
|
|
20570
20570
|
/**
|
|
20571
20571
|
* Replace the default configuration applied to new instances.
|
|
20572
20572
|
*/
|
|
20573
20573
|
static set DefaultConfig(e) {
|
|
20574
|
-
|
|
20574
|
+
Fe.defaultConfig = e;
|
|
20575
20575
|
}
|
|
20576
20576
|
/**
|
|
20577
20577
|
* Creates an instance of an HLS client that can attach to exactly one `HTMLMediaElement`.
|
|
@@ -20579,7 +20579,7 @@ class Oe {
|
|
|
20579
20579
|
*/
|
|
20580
20580
|
constructor(e = {}) {
|
|
20581
20581
|
this.config = void 0, this.userConfig = void 0, this.coreComponents = void 0, this.networkControllers = void 0, this.started = !1, this._emitter = new fs(), this._autoLevelCapping = -1, this._maxHdcpLevel = null, this.abrController = void 0, this.bufferController = void 0, this.capLevelController = void 0, this.latencyController = void 0, this.levelController = void 0, this.streamController = void 0, this.audioTrackController = void 0, this.subtitleTrackController = void 0, this.emeController = void 0, this.cmcdController = void 0, this._media = null, this.url = null, this.triggeringException = void 0, ao(e.debug || !1, "Hls instance");
|
|
20582
|
-
const t = this.config = rh(
|
|
20582
|
+
const t = this.config = rh(Fe.DefaultConfig, e);
|
|
20583
20583
|
this.userConfig = e, t.progressive && nh(t);
|
|
20584
20584
|
const {
|
|
20585
20585
|
abrController: i,
|
|
@@ -21106,7 +21106,7 @@ class Oe {
|
|
|
21106
21106
|
return this.streamController.forceStartLoad;
|
|
21107
21107
|
}
|
|
21108
21108
|
}
|
|
21109
|
-
|
|
21109
|
+
Fe.defaultConfig = void 0;
|
|
21110
21110
|
function fa() {
|
|
21111
21111
|
const s = document;
|
|
21112
21112
|
return !!(s.fullscreenElement || s.mozFullScreenElement || s.webkitFullscreenElement || s.msFullscreenElement);
|
|
@@ -21211,7 +21211,7 @@ const Ci = new Intl.NumberFormat(void 0, {
|
|
|
21211
21211
|
isFinished: !1,
|
|
21212
21212
|
isLoading: !0,
|
|
21213
21213
|
isError: !1,
|
|
21214
|
-
player: new
|
|
21214
|
+
player: new Fe()
|
|
21215
21215
|
};
|
|
21216
21216
|
},
|
|
21217
21217
|
computed: {
|
|
@@ -21236,7 +21236,7 @@ const Ci = new Intl.NumberFormat(void 0, {
|
|
|
21236
21236
|
initHls() {
|
|
21237
21237
|
var e, t, i, r;
|
|
21238
21238
|
const s = this.$refs.player;
|
|
21239
|
-
(e = this.player) != null && e.stopLoad && this.player.stopLoad(),
|
|
21239
|
+
(e = this.player) != null && e.stopLoad && this.player.stopLoad(), Fe.isSupported() && (this.isLoading = !0, this.player = new Fe({
|
|
21240
21240
|
startPosition: 0,
|
|
21241
21241
|
xhrSetup: (n) => {
|
|
21242
21242
|
this.streamingToken && n.setRequestHeader(
|
|
@@ -21244,7 +21244,7 @@ const Ci = new Intl.NumberFormat(void 0, {
|
|
|
21244
21244
|
`Bearer ${this.streamingToken}`
|
|
21245
21245
|
);
|
|
21246
21246
|
}
|
|
21247
|
-
}), (t = this.player) == null || t.loadSource(this.sources[0].src), (i = this.player) == null || i.attachMedia(s), (r = this.player) == null || r.on(
|
|
21247
|
+
}), (t = this.player) == null || t.loadSource(this.sources[0].src), (i = this.player) == null || i.attachMedia(s), (r = this.player) == null || r.on(Fe.Events.MANIFEST_PARSED, () => {
|
|
21248
21248
|
this.playing && s.play();
|
|
21249
21249
|
}));
|
|
21250
21250
|
},
|
|
@@ -21452,7 +21452,7 @@ var Th = function() {
|
|
|
21452
21452
|
}, Eh = [function() {
|
|
21453
21453
|
var s = this, e = s._self._c;
|
|
21454
21454
|
return e("div", { staticClass: "timeline" }, [e("div", { staticClass: "thumb-indicator" })]);
|
|
21455
|
-
}], Sh = /* @__PURE__ */
|
|
21455
|
+
}], Sh = /* @__PURE__ */ Be(
|
|
21456
21456
|
xh,
|
|
21457
21457
|
Th,
|
|
21458
21458
|
Eh,
|
|
@@ -22110,7 +22110,7 @@ var Ch = 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 = [], _h = /* @__PURE__ */
|
|
22113
|
+
}, Dh = [], _h = /* @__PURE__ */ Be(
|
|
22114
22114
|
Rh,
|
|
22115
22115
|
Ch,
|
|
22116
22116
|
Dh,
|
|
@@ -22156,7 +22156,7 @@ const Ih = _h.exports, G = {
|
|
|
22156
22156
|
lineGraphDot: "line-graph-dot",
|
|
22157
22157
|
curtain: "curtain",
|
|
22158
22158
|
forbiddenInterval: "forbidden-interval"
|
|
22159
|
-
},
|
|
22159
|
+
}, _e = {
|
|
22160
22160
|
transparencyGradient: "transparency-gradient",
|
|
22161
22161
|
transparencyGradientLight: "transparency-gradient-light",
|
|
22162
22162
|
loadingGradient: "loading-gradient",
|
|
@@ -22238,6 +22238,10 @@ const Ih = _h.exports, G = {
|
|
|
22238
22238
|
type: Number,
|
|
22239
22239
|
default: 60
|
|
22240
22240
|
},
|
|
22241
|
+
chartMinLabelHeight: {
|
|
22242
|
+
type: Number,
|
|
22243
|
+
default: 18
|
|
22244
|
+
},
|
|
22241
22245
|
minZoom: {
|
|
22242
22246
|
type: Number,
|
|
22243
22247
|
default: 1e-4
|
|
@@ -22369,7 +22373,13 @@ const Ih = _h.exports, G = {
|
|
|
22369
22373
|
computed: {
|
|
22370
22374
|
combinedBarsHeight() {
|
|
22371
22375
|
return Object.values(this.barGroups).reduce(
|
|
22372
|
-
(s, e) => s + (e
|
|
22376
|
+
(s, e) => s + (this.getBarGroupHeight(e) || this.barChartHeight),
|
|
22377
|
+
0
|
|
22378
|
+
);
|
|
22379
|
+
},
|
|
22380
|
+
combinedBottomBarsHeight() {
|
|
22381
|
+
return Object.values(this.barGroups).reduce(
|
|
22382
|
+
(s, e) => s + (e.bottom ? this.getBarGroupHeight(e) : 0),
|
|
22373
22383
|
0
|
|
22374
22384
|
);
|
|
22375
22385
|
},
|
|
@@ -22380,7 +22390,7 @@ const Ih = _h.exports, G = {
|
|
|
22380
22390
|
);
|
|
22381
22391
|
},
|
|
22382
22392
|
milestonesYOffset() {
|
|
22383
|
-
return this.milestonesFirst ? 0 : this.combinedBarsHeight + (this.hasChart ? this.chartHeight : 0);
|
|
22393
|
+
return this.milestonesFirst ? 0 : this.combinedBarsHeight - this.combinedBottomBarsHeight + (this.hasChart ? this.chartHeight : 0);
|
|
22384
22394
|
},
|
|
22385
22395
|
chartsYOffset() {
|
|
22386
22396
|
return this.hasMilestones && this.milestonesFirst ? this.combinedMilestonesHeight : 0;
|
|
@@ -22408,7 +22418,7 @@ const Ih = _h.exports, G = {
|
|
|
22408
22418
|
},
|
|
22409
22419
|
lineGraphGroups() {
|
|
22410
22420
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22411
|
-
(s, [e, t]) => t.chartType ===
|
|
22421
|
+
(s, [e, t]) => t.chartType === Ae.lineGraph ? { ...s, [e]: t } : s,
|
|
22412
22422
|
{}
|
|
22413
22423
|
);
|
|
22414
22424
|
},
|
|
@@ -22420,7 +22430,7 @@ const Ih = _h.exports, G = {
|
|
|
22420
22430
|
},
|
|
22421
22431
|
barGroups() {
|
|
22422
22432
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22423
|
-
(s, [e, t]) => !t.chartType || [
|
|
22433
|
+
(s, [e, t]) => !t.chartType || [Ae.bars, Ae.dots].includes(
|
|
22424
22434
|
t.chartType
|
|
22425
22435
|
) ? { ...s, [e]: t } : s,
|
|
22426
22436
|
{}
|
|
@@ -22428,13 +22438,13 @@ const Ih = _h.exports, G = {
|
|
|
22428
22438
|
},
|
|
22429
22439
|
barChartGroups() {
|
|
22430
22440
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22431
|
-
(s, [e, t]) => t.chartType ===
|
|
22441
|
+
(s, [e, t]) => t.chartType === Ae.barChart ? { ...s, [e]: t } : s,
|
|
22432
22442
|
{}
|
|
22433
22443
|
);
|
|
22434
22444
|
},
|
|
22435
22445
|
milestonesGroups() {
|
|
22436
22446
|
return Object.entries(this.filteredEventsGroups).reduce(
|
|
22437
|
-
(s, [e, t]) => t.chartType ===
|
|
22447
|
+
(s, [e, t]) => t.chartType === Ae.milestones ? { ...s, [e]: t } : s,
|
|
22438
22448
|
{}
|
|
22439
22449
|
);
|
|
22440
22450
|
},
|
|
@@ -22454,10 +22464,7 @@ const Ih = _h.exports, G = {
|
|
|
22454
22464
|
return this.axisHeight * s;
|
|
22455
22465
|
},
|
|
22456
22466
|
timelineHeight() {
|
|
22457
|
-
|
|
22458
|
-
this.milestonesGroups
|
|
22459
|
-
).reduce((r, n) => r + (n.height || this.barChartHeight), 0), e = Object.keys(this.barGroups).length, t = this.barChartHeight * e, i = this.hasChart ? this.chartHeight : 0;
|
|
22460
|
-
return this.combinedXAxesHeight + i + t + s;
|
|
22467
|
+
return (this.hasChart ? this.chartHeight : 0) + this.combinedXAxesHeight + this.combinedBarsHeight + this.combinedMilestonesHeight;
|
|
22461
22468
|
},
|
|
22462
22469
|
filteredEventsGroups() {
|
|
22463
22470
|
const s = Object.entries(this.eventsGroups).filter(
|
|
@@ -22605,17 +22612,17 @@ const Ih = _h.exports, G = {
|
|
|
22605
22612
|
const s = this.svg.append("defs");
|
|
22606
22613
|
Object.entries(this.filteredEventsGroups).forEach(
|
|
22607
22614
|
([t, i]) => {
|
|
22608
|
-
const { color: r, chartType: n } = i, a = s.append("linearGradient").attr("id", `${
|
|
22609
|
-
a.append("stop").attr("offset", "0%").attr("stop-color", r).attr("stop-opacity", "0"), a.append("stop").attr("offset", "50%").attr("stop-color", r).attr("stop-opacity", "0.6"), a.append("stop").attr("offset", "100%").attr("stop-color", r).attr("stop-opacity", "0"), [
|
|
22615
|
+
const { color: r, chartType: n } = i, a = s.append("linearGradient").attr("id", `${_e.loadingGradient}-${t}`).attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
22616
|
+
a.append("stop").attr("offset", "0%").attr("stop-color", r).attr("stop-opacity", "0"), a.append("stop").attr("offset", "50%").attr("stop-color", r).attr("stop-opacity", "0.6"), a.append("stop").attr("offset", "100%").attr("stop-color", r).attr("stop-opacity", "0"), [Ae.lineGraph, Ae.barChart].includes(
|
|
22610
22617
|
n
|
|
22611
22618
|
) && [
|
|
22612
22619
|
{
|
|
22613
|
-
id:
|
|
22620
|
+
id: _e.transparencyGradientLight,
|
|
22614
22621
|
stop: 38,
|
|
22615
22622
|
opacity: 0.3
|
|
22616
22623
|
},
|
|
22617
22624
|
{
|
|
22618
|
-
id:
|
|
22625
|
+
id: _e.transparencyGradient,
|
|
22619
22626
|
stop: 130,
|
|
22620
22627
|
opacity: 0.4
|
|
22621
22628
|
}
|
|
@@ -22624,7 +22631,7 @@ const Ih = _h.exports, G = {
|
|
|
22624
22631
|
h.append("stop").attr("offset", "0%").style("stop-color", r).style("stop-opacity", u), h.append("stop").attr("offset", `${c}%`).style("stop-color", r).style("stop-opacity", 0);
|
|
22625
22632
|
});
|
|
22626
22633
|
}
|
|
22627
|
-
), s.append("pattern").attr("id",
|
|
22634
|
+
), s.append("pattern").attr("id", _e.stripedPattern).attr("width", 6).attr("height", 4).attr("patternUnits", "userSpaceOnUse").attr("patternTransform", "rotate(45)").append("rect").attr("width", 2).attr("height", 6).attr("transform", "translate(0,0)").attr("fill", "#ddd");
|
|
22628
22635
|
},
|
|
22629
22636
|
initUtcOffset() {
|
|
22630
22637
|
const s = this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate;
|
|
@@ -23094,11 +23101,11 @@ const Ih = _h.exports, G = {
|
|
|
23094
23101
|
const s = this.minDate ? this.tzStringToDate(this.minDate).getTime() : null, e = this.maxDate ? this.tzStringToDate(this.maxDate).getTime() : null;
|
|
23095
23102
|
if (s) {
|
|
23096
23103
|
const t = this.timeScale(s);
|
|
23097
|
-
this.svg.select(`.${G.forbiddenInterval}--min`).attr("x", 0).attr("y", 0).attr("width", t > 0 ? t : 0).attr("height", this.timelineHeight).attr("fill", `url(#${
|
|
23104
|
+
this.svg.select(`.${G.forbiddenInterval}--min`).attr("x", 0).attr("y", 0).attr("width", t > 0 ? t : 0).attr("height", this.timelineHeight).attr("fill", `url(#${_e.stripedPattern})`);
|
|
23098
23105
|
}
|
|
23099
23106
|
if (e) {
|
|
23100
23107
|
const t = this.timeline.offsetWidth - this.timeScale(e), i = this.timeScale(e);
|
|
23101
|
-
this.svg.select(`.${G.forbiddenInterval}--max`).attr("x", i > 0 ? i : 0).attr("y", 0).attr("width", t > 0 ? t : 0).attr("height", this.timelineHeight).attr("fill", `url(#${
|
|
23108
|
+
this.svg.select(`.${G.forbiddenInterval}--max`).attr("x", i > 0 ? i : 0).attr("y", 0).attr("width", t > 0 ? t : 0).attr("height", this.timelineHeight).attr("fill", `url(#${_e.stripedPattern})`);
|
|
23102
23109
|
}
|
|
23103
23110
|
},
|
|
23104
23111
|
drawEventsGroups() {
|
|
@@ -23124,18 +23131,22 @@ const Ih = _h.exports, G = {
|
|
|
23124
23131
|
});
|
|
23125
23132
|
}), Object.entries(this.lineGraphGroups).forEach(
|
|
23126
23133
|
([t, i], r) => {
|
|
23127
|
-
const { color: n, isLoading: a, label: o } = i, l =
|
|
23134
|
+
const { color: n, isLoading: a, label: o } = i, l = Math.max(
|
|
23135
|
+
this.chartMinLabelHeight,
|
|
23136
|
+
this.barChartHeight
|
|
23137
|
+
), c = this.chartHeight - l * (r + 1), u = s + this.chartHeight - l, h = this.svg.append("g").classed(G.lineGraphGroupLabel, !0).attr("transform", `translate(0,${s})`).on("mouseover", () => this.handleLabelMouseOver(t)).on("mouseleave", () => this.handleLabelMouseLeave(t));
|
|
23128
23138
|
this.drawProgressIndicator({
|
|
23129
23139
|
type: t,
|
|
23130
23140
|
color: n,
|
|
23131
23141
|
isLoading: a,
|
|
23132
|
-
yPosition:
|
|
23142
|
+
yPosition: u
|
|
23133
23143
|
}), this.drawTextLabel({
|
|
23134
23144
|
color: n,
|
|
23135
23145
|
label: o,
|
|
23136
23146
|
type: t,
|
|
23137
|
-
|
|
23138
|
-
|
|
23147
|
+
height: l,
|
|
23148
|
+
yPosition: c,
|
|
23149
|
+
gElement: h
|
|
23139
23150
|
});
|
|
23140
23151
|
}
|
|
23141
23152
|
);
|
|
@@ -23147,7 +23158,7 @@ const Ih = _h.exports, G = {
|
|
|
23147
23158
|
type: i
|
|
23148
23159
|
}) {
|
|
23149
23160
|
const r = I.area().x((a) => this.timeScale(this.tzStringToDate(a.timestamp))).y0(this.timelineHeight).y1((a) => this.yScale(a.count)).curve(I.curveMonotoneX), n = `clip-${i}`;
|
|
23150
|
-
e.append("defs").append("clipPath").attr("id", n).append("rect").attr("width", this.timeline.offsetWidth).attr("height", this.chartHeight), e.append("path").datum(s).classed(`${G.lineGraphPath}-${i}`, !0).attr("fill", `url(#${
|
|
23161
|
+
e.append("defs").append("clipPath").attr("id", n).append("rect").attr("width", this.timeline.offsetWidth).attr("height", this.chartHeight), e.append("path").datum(s).classed(`${G.lineGraphPath}-${i}`, !0).attr("fill", `url(#${_e.transparencyGradientLight}-${i})`).attr("stroke", t).attr("stroke-linejoin", "round").attr("stroke-linecap", "round").attr("stroke-width", 1).attr("d", (a) => r(a)).attr("clip-path", `url(#${n})`);
|
|
23151
23162
|
},
|
|
23152
23163
|
drawLineGraphHoverZones({
|
|
23153
23164
|
events: s,
|
|
@@ -23182,54 +23193,69 @@ const Ih = _h.exports, G = {
|
|
|
23182
23193
|
drawSingleBarEventsGroup({
|
|
23183
23194
|
type: s,
|
|
23184
23195
|
eventsGroup: e,
|
|
23185
|
-
|
|
23186
|
-
|
|
23187
|
-
|
|
23188
|
-
|
|
23189
|
-
dotsSize: a
|
|
23196
|
+
milestone: t,
|
|
23197
|
+
dots: i,
|
|
23198
|
+
dotsSize: r,
|
|
23199
|
+
bottom: n
|
|
23190
23200
|
}) {
|
|
23191
|
-
const {
|
|
23192
|
-
|
|
23193
|
-
|
|
23194
|
-
|
|
23201
|
+
const {
|
|
23202
|
+
color: a,
|
|
23203
|
+
bgColor: o,
|
|
23204
|
+
label: l,
|
|
23205
|
+
events: c,
|
|
23206
|
+
barBorderRadius: u,
|
|
23207
|
+
isLoading: h,
|
|
23208
|
+
height: d,
|
|
23209
|
+
chartType: f
|
|
23210
|
+
} = e;
|
|
23211
|
+
let m = this.getBarGroupYPosition(s, n);
|
|
23212
|
+
const y = [
|
|
23213
|
+
Ae.bars,
|
|
23214
|
+
Ae.dots,
|
|
23215
|
+
void 0
|
|
23216
|
+
].includes(f) ? this.getBarGroupHeight(e) : d;
|
|
23217
|
+
t && (m = this.getMilestoneGroupYPosition(s)), this.drawProgressIndicator({
|
|
23218
|
+
yPosition: m,
|
|
23195
23219
|
type: s,
|
|
23196
|
-
color:
|
|
23220
|
+
color: a,
|
|
23197
23221
|
isLoading: h
|
|
23198
23222
|
});
|
|
23199
|
-
const
|
|
23223
|
+
const v = this.svg.append("g").attr("data-color", a).classed(G.eventGroup, !0).classed(`${G.eventGroup}-${s}`, !0);
|
|
23200
23224
|
if (this.drawBackground({
|
|
23201
|
-
color:
|
|
23202
|
-
gElement:
|
|
23203
|
-
yPosition:
|
|
23204
|
-
height:
|
|
23205
|
-
}),
|
|
23206
|
-
const
|
|
23207
|
-
|
|
23225
|
+
color: o || a,
|
|
23226
|
+
gElement: v,
|
|
23227
|
+
yPosition: m,
|
|
23228
|
+
height: y
|
|
23229
|
+
}), t || i) {
|
|
23230
|
+
const T = i ? 0.5 : 2, x = m + y / 2;
|
|
23231
|
+
v.append("line").classed(je.milestoneLine, !0).attr("x1", 0).attr("x2", this.timeline.offsetWidth).attr("y1", x).attr("y2", x).style("stroke", a).style("stroke-width", T);
|
|
23208
23232
|
}
|
|
23209
23233
|
this.drawBars({
|
|
23210
|
-
events:
|
|
23211
|
-
color:
|
|
23212
|
-
gElement:
|
|
23213
|
-
yPosition:
|
|
23234
|
+
events: c,
|
|
23235
|
+
color: a,
|
|
23236
|
+
gElement: v,
|
|
23237
|
+
yPosition: m,
|
|
23214
23238
|
type: s,
|
|
23215
|
-
dots:
|
|
23216
|
-
dotsSize:
|
|
23217
|
-
|
|
23218
|
-
|
|
23219
|
-
|
|
23239
|
+
dots: i,
|
|
23240
|
+
dotsSize: r,
|
|
23241
|
+
height: d,
|
|
23242
|
+
barBorderRadius: u
|
|
23243
|
+
}), l && this.drawTextLabel({
|
|
23244
|
+
color: a,
|
|
23245
|
+
label: l,
|
|
23220
23246
|
type: s,
|
|
23221
|
-
gElement:
|
|
23222
|
-
yPosition:
|
|
23223
|
-
height:
|
|
23247
|
+
gElement: v,
|
|
23248
|
+
yPosition: m,
|
|
23249
|
+
height: d
|
|
23224
23250
|
});
|
|
23225
23251
|
},
|
|
23226
23252
|
drawBarEventsGroups() {
|
|
23227
23253
|
Object.entries(this.barGroups).forEach(
|
|
23228
|
-
([s, e]
|
|
23254
|
+
([s, e]) => this.drawSingleBarEventsGroup({
|
|
23229
23255
|
type: s,
|
|
23230
23256
|
eventsGroup: e,
|
|
23231
|
-
|
|
23232
|
-
dots: e.chartType ===
|
|
23257
|
+
bottom: e.bottom,
|
|
23258
|
+
dots: e.chartType === Ae.dots,
|
|
23233
23259
|
dotsSize: e.dotsSize || 3
|
|
23234
23260
|
})
|
|
23235
23261
|
);
|
|
@@ -23243,8 +23269,7 @@ const Ih = _h.exports, G = {
|
|
|
23243
23269
|
events: [],
|
|
23244
23270
|
isLoading: !1
|
|
23245
23271
|
},
|
|
23246
|
-
milestone: !0
|
|
23247
|
-
height: e.height
|
|
23272
|
+
milestone: !0
|
|
23248
23273
|
})
|
|
23249
23274
|
), this.updateMilestonesPositions();
|
|
23250
23275
|
},
|
|
@@ -23271,6 +23296,19 @@ const Ih = _h.exports, G = {
|
|
|
23271
23296
|
}
|
|
23272
23297
|
return this.combinedXAxesHeight + this.milestonesYOffset + e;
|
|
23273
23298
|
},
|
|
23299
|
+
getBarGroupYPosition(s, e) {
|
|
23300
|
+
let t = this.combinedXAxesHeight;
|
|
23301
|
+
e ? t += (this.hasChart ? this.chartHeight : 0) + (this.hasMilestones ? this.combinedMilestonesHeight : 0) : t += this.barsYOffset;
|
|
23302
|
+
for (const [i, r] of Object.entries(this.barGroups)) {
|
|
23303
|
+
if (i === s)
|
|
23304
|
+
break;
|
|
23305
|
+
!e && r.bottom || (t += this.getBarGroupHeight(r));
|
|
23306
|
+
}
|
|
23307
|
+
return t;
|
|
23308
|
+
},
|
|
23309
|
+
getBarGroupHeight(s) {
|
|
23310
|
+
return s.height ? Math.max(s.height + this.barYPadding, 1) : this.barChartHeight;
|
|
23311
|
+
},
|
|
23274
23312
|
updateMilestonesPositions() {
|
|
23275
23313
|
Object.entries(this.milestonesGroups).forEach(([s, e]) => {
|
|
23276
23314
|
const t = this.getMilestoneGroupYPosition(s), i = this.svg.select(
|
|
@@ -23315,7 +23353,7 @@ const Ih = _h.exports, G = {
|
|
|
23315
23353
|
this.svg.append("rect").classed(
|
|
23316
23354
|
`${G.loadingIndicator} ${G.loadingIndicator}-${e}`,
|
|
23317
23355
|
!0
|
|
23318
|
-
).attr("x", 0).attr("y", s).attr("width", this.timeline.offsetWidth / 3).attr("height", this.barChartHeight).attr("fill", `url(#${
|
|
23356
|
+
).attr("x", 0).attr("y", s).attr("width", this.timeline.offsetWidth / 3).attr("height", this.barChartHeight).attr("fill", `url(#${_e.loadingGradient}-${e})`).style("visibility", t ? "visible" : "hidden");
|
|
23319
23357
|
},
|
|
23320
23358
|
drawBackground({
|
|
23321
23359
|
color: s,
|
|
@@ -23332,22 +23370,25 @@ const Ih = _h.exports, G = {
|
|
|
23332
23370
|
color: i,
|
|
23333
23371
|
type: r,
|
|
23334
23372
|
dots: n,
|
|
23335
|
-
dotsSize: a
|
|
23373
|
+
dotsSize: a,
|
|
23374
|
+
height: o,
|
|
23375
|
+
barBorderRadius: l = 1.5
|
|
23336
23376
|
}) {
|
|
23337
|
-
const
|
|
23338
|
-
|
|
23377
|
+
const c = this, u = t + this.barYPadding / 2, h = n ? ((o || this.barChartHeight) - a) / 2 : 0;
|
|
23378
|
+
let d = Math.max(
|
|
23379
|
+
(o != null ? o : this.barChartHeight) - this.barYPadding,
|
|
23380
|
+
1
|
|
23381
|
+
);
|
|
23382
|
+
n && (d = a), e.selectAll(G.eventRect).data(s).enter().append("rect").attr(
|
|
23339
23383
|
"class",
|
|
23340
|
-
(
|
|
23341
|
-
).attr("x", this.getEventRectX).attr("y",
|
|
23342
|
-
|
|
23343
|
-
n ? a : this.barChartHeight - this.barYPadding
|
|
23344
|
-
).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").style("fill", (u) => u.color || i).on("mouseover", function(u, h) {
|
|
23345
|
-
I.select(this).classed(G.eventRectHovered, !0), o.handleBarMouseOver(u, h, r);
|
|
23384
|
+
(f) => G.eventRect + (n ? ` ${G.eventRect}--dot` : "") + (f.className ? ` ${f.className}` : "")
|
|
23385
|
+
).attr("x", this.getEventRectX).attr("y", u + h).attr("ry", n ? a : l).attr("rx", n ? a : l).attr("width", n ? a : this.getEventRectWidth).attr("height", d).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").style("fill", (f) => f.color || i).on("mouseover", function(f, m) {
|
|
23386
|
+
I.select(this).classed(G.eventRectHovered, !0), c.handleBarMouseOver(f, m, r);
|
|
23346
23387
|
}).on("mouseout", function() {
|
|
23347
|
-
I.select(this).classed(G.eventRectHovered, !1),
|
|
23348
|
-
}), e.selectAll(G.eventRectText).data(s.filter((
|
|
23388
|
+
I.select(this).classed(G.eventRectHovered, !1), c.handleBarMouseOut();
|
|
23389
|
+
}), e.selectAll(G.eventRectText).data(s.filter((f) => !!f.text)).enter().append("text").attr("class", G.eventRectText).attr("x", (f) => this.getEventRectX(f) + this.textPadding).attr("y", t + this.barChartHeight / 2).attr("dy", "0.35em").style("text-anchor", "start").style("font-size", "12px").style("font-weight", 600).style("stroke-linejoin", "round").style("paint-order", "stroke").style("pointer-events", "none").style(
|
|
23349
23390
|
"fill",
|
|
23350
|
-
(
|
|
23391
|
+
(f) => this.getTextFillColor(f.color || i, 0.75)
|
|
23351
23392
|
).text(this.getEventText);
|
|
23352
23393
|
},
|
|
23353
23394
|
drawBarsChart({
|
|
@@ -23368,7 +23409,7 @@ const Ih = _h.exports, G = {
|
|
|
23368
23409
|
).attr("x", u).attr("y", -i).attr("width", l).attr("height", this.yScale.range()[0] + i).attr("fill", (f) => f.color || t).attr("fill-opacity", 0), d.append("rect").attr(
|
|
23369
23410
|
"class",
|
|
23370
23411
|
(f) => G.eventBar + (f.className ? ` ${f.className}` : "")
|
|
23371
|
-
).attr("x", u).attr("y", h).attr("width", l).attr("height", c).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").attr("fill", `url(#${
|
|
23412
|
+
).attr("x", u).attr("y", h).attr("width", l).attr("height", c).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").attr("fill", `url(#${_e.transparencyGradient}-${r})`), d.append("rect").attr(
|
|
23372
23413
|
"class",
|
|
23373
23414
|
(f) => G.eventBarCap + (f.className ? ` ${f.className}` : "")
|
|
23374
23415
|
).attr("x", u).attr("y", h).attr("width", l).attr("height", 2).attr("stroke-width", 0).style("fill", (f) => f.color || t), d.on("mouseover", function(f, m) {
|
|
@@ -23389,7 +23430,7 @@ const Ih = _h.exports, G = {
|
|
|
23389
23430
|
onBarChartBarMouseOut(s, e) {
|
|
23390
23431
|
s.classed(G.eventBarContainerHovered, !1), s.selectAll(`.${G.eventBarHoverZone}`).attr("fill-opacity", 0);
|
|
23391
23432
|
const i = s.selectAll(`.${G.eventBar}`);
|
|
23392
|
-
i.attr("fill", `url(#${
|
|
23433
|
+
i.attr("fill", `url(#${_e.transparencyGradient}-${e})`), i.attr("fill-opacity", 1);
|
|
23393
23434
|
},
|
|
23394
23435
|
drawTextLabel({
|
|
23395
23436
|
gElement: s,
|
|
@@ -23561,7 +23602,7 @@ var kh = function() {
|
|
|
23561
23602
|
return t("div", { key: r }, [t("strong", [e._v(e._s(i.type) + " Count")]), e._v(": " + e._s(i.count) + " ")]);
|
|
23562
23603
|
})], 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()];
|
|
23563
23604
|
}, { event: e.hoveredEvent, counts: e.hoveredCounts, active: e.isHoveringEvent && !e.isInteractingWithCurtain, type: e.hoveredEventType })], 2)], 2);
|
|
23564
|
-
}, Ph = [], Oh = /* @__PURE__ */
|
|
23605
|
+
}, Ph = [], Oh = /* @__PURE__ */ Be(
|
|
23565
23606
|
wh,
|
|
23566
23607
|
kh,
|
|
23567
23608
|
Ph,
|
|
@@ -23628,7 +23669,7 @@ const Fh = Oh.exports, Mh = {
|
|
|
23628
23669
|
var Nh = function() {
|
|
23629
23670
|
var e = this, t = e._self._c;
|
|
23630
23671
|
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))]);
|
|
23631
|
-
}, Bh = [], $h = /* @__PURE__ */
|
|
23672
|
+
}, Bh = [], $h = /* @__PURE__ */ Be(
|
|
23632
23673
|
Mh,
|
|
23633
23674
|
Nh,
|
|
23634
23675
|
Bh,
|
|
@@ -23679,7 +23720,7 @@ export {
|
|
|
23679
23720
|
Y as Size,
|
|
23680
23721
|
Ia as TextSizes,
|
|
23681
23722
|
kt as TimelineAxis,
|
|
23682
|
-
|
|
23723
|
+
Ae as TimelineChartType,
|
|
23683
23724
|
Pt as TimelineIntervalChangeTrigger,
|
|
23684
23725
|
Cr as components,
|
|
23685
23726
|
vh as debounce,
|