@evercam/ui 0.0.55-beta.8 → 0.0.56
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 +19 -9
- package/dist/index.mjs +201 -179
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/ETimeline.vue.d.ts +11 -7
- package/dist/src/index.d.ts +10 -6
- package/dist/src/types.d.ts +4 -0
- package/dist/tags.json +6 -4
- package/dist/web-types.json +41 -20
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -52,7 +52,7 @@ const ma = Ve.extend({
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
function
|
|
55
|
+
function Ne(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 Be(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__ */ Ne(
|
|
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__ */ Ne(
|
|
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 Ie = (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: Ie.white,
|
|
3810
|
+
warning: Ie.amber,
|
|
3811
|
+
error: Ie.rose,
|
|
3812
|
+
info: Ie.cyan,
|
|
3813
|
+
success: Ie.lime,
|
|
3814
|
+
primary: Ie.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: Ie.slate[500],
|
|
3840
|
+
onbackground: Ie.slate[700],
|
|
3841
|
+
surface: Ie.slate[50],
|
|
3842
|
+
background: Ie.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__ */ Ne(
|
|
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__ */ Ne(
|
|
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__ */ Ne(
|
|
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__ */ Ne(
|
|
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 = Fe(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 = Fe(s.data.subarray(t), !0);
|
|
4955
4955
|
t += i.length + 1;
|
|
4956
|
-
const r =
|
|
4956
|
+
const r = Fe(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 = Fe(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 = Fe(s.data.subarray(t), !0);
|
|
4974
4974
|
t += i.length + 1;
|
|
4975
|
-
const r =
|
|
4975
|
+
const r = Fe(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 = Fe(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
|
+
}, Fe = (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 _e = {
|
|
5038
5038
|
hexDump: function(s) {
|
|
5039
5039
|
let e = "";
|
|
5040
5040
|
for (let t = 0; t < s.length; t++) {
|
|
@@ -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: ${_e.hexDump(m)} -> ${_e.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: Fe(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 = _e.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 ke {
|
|
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 Pe {
|
|
|
5964
5964
|
attrs: c,
|
|
5965
5965
|
bitrate: c.decimalInteger("BANDWIDTH") || c.decimalInteger("AVERAGE-BANDWIDTH"),
|
|
5966
5966
|
name: c.NAME,
|
|
5967
|
-
url:
|
|
5967
|
+
url: ke.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 Pe {
|
|
|
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: ke.resolve(h["SERVER-URI"], t),
|
|
5996
5996
|
pathwayId: h["PATHWAY-ID"] || "."
|
|
5997
5997
|
};
|
|
5998
5998
|
break;
|
|
@@ -6036,10 +6036,10 @@ class Pe {
|
|
|
6036
6036
|
autoselect: c.bool("AUTOSELECT"),
|
|
6037
6037
|
forced: c.bool("FORCED"),
|
|
6038
6038
|
lang: f,
|
|
6039
|
-
url: c.URI ?
|
|
6039
|
+
url: c.URI ? ke.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 = ke.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 ? ke.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(), ke.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 = ke.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
|
+
} = ke.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 = ke.parseLevelPlaylist(e.data, u, d, f, h, this.variableList);
|
|
6509
6509
|
if (c === J.MANIFEST) {
|
|
6510
6510
|
const g = {
|
|
6511
6511
|
attrs: new ne({}),
|
|
@@ -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 Be(k, `min bitrate of ${R.minBitrate} > current estimate of ${t}`), E;
|
|
8014
8014
|
if (!R.hasDefaultAudio)
|
|
8015
|
-
return
|
|
8015
|
+
return Be(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 Be(k, `audio codec preference "${o}" not found`), E;
|
|
8018
8018
|
if (a && !l) {
|
|
8019
8019
|
if (!R.channels[a])
|
|
8020
|
-
return
|
|
8020
|
+
return Be(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 Be(k, "no renditions with stereo sound found"), E;
|
|
8023
|
+
return R.minHeight > T ? (Be(k, `min resolution of ${R.minHeight} > maximum of ${T}`), E) : R.minFramerate > x ? (Be(k, `min framerate of ${R.minFramerate} > maximum of ${x}`), E) : g.some((B) => R.videoRanges[B] > 0) ? R.maxScore < m ? (Be(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) : (Be(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 Be(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 Pe(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 Pe(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 Pe(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 we(s = "", e = 9e4) {
|
|
10087
10087
|
return {
|
|
10088
10088
|
type: s,
|
|
10089
10089
|
id: -1,
|
|
@@ -10150,9 +10150,9 @@ class cs {
|
|
|
10150
10150
|
}
|
|
10151
10151
|
return {
|
|
10152
10152
|
audioTrack: a,
|
|
10153
|
-
videoTrack:
|
|
10153
|
+
videoTrack: we(),
|
|
10154
10154
|
id3Track: o,
|
|
10155
|
-
textTrack:
|
|
10155
|
+
textTrack: we()
|
|
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: we(),
|
|
10166
10166
|
id3Track: this._id3Track,
|
|
10167
|
-
textTrack:
|
|
10167
|
+
textTrack: we()
|
|
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 = we("video", 1), a = this.audioTrack = we("audio", 1), o = this.txtTrack = we("text", 1);
|
|
10444
|
+
if (this.id3Track = we("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: we(),
|
|
10496
10496
|
id3Track: r,
|
|
10497
|
-
textTrack:
|
|
10497
|
+
textTrack: we()
|
|
10498
10498
|
};
|
|
10499
10499
|
}
|
|
10500
10500
|
extractID3Track(e, t) {
|
|
@@ -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 = Pe(l, o, et);
|
|
14104
14104
|
if (d > -1)
|
|
14105
14105
|
n = o[d];
|
|
14106
14106
|
else {
|
|
14107
|
-
const f =
|
|
14107
|
+
const f = Pe(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 = Pe(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 = Pe(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 = Pe(o, a);
|
|
14595
14595
|
if (u > -1)
|
|
14596
14596
|
n = a[u];
|
|
14597
14597
|
else {
|
|
14598
|
-
const h =
|
|
14598
|
+
const h = Pe(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 = Pe(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 = Pe(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
|
-
}, Re = 15,
|
|
15599
|
+
}, Re = 15, $e = 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 < $e; 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 < $e; 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 < $e; 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 < $e; 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 > $e && (this.logger.log(3, "Too large cursor position " + this.pos), this.pos = $e);
|
|
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 >= $e) {
|
|
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 < $e; 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 < $e; i++) {
|
|
15773
15773
|
const r = this.chars[i].uchar;
|
|
15774
15774
|
r !== " " && (t = !1), e.push(r);
|
|
15775
15775
|
}
|
|
@@ -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 = Fe(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) => Fe(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: ${_e.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 _e.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 ${_e.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 = _e.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 = _e.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: ${_e.hexDump("buffer" in i ? new Uint8Array(i.buffer, i.byteOffset, i.byteLength) : new Uint8Array(i))} session keyId: ${_e.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 Me(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 Me(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 Me(s, fu);
|
|
17933
17933
|
return `:${Eu(s)}:`;
|
|
17934
17934
|
}
|
|
17935
17935
|
function ra(s) {
|
|
17936
17936
|
if (pu(s))
|
|
17937
|
-
throw
|
|
17937
|
+
throw Me(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 Me(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 Me(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 Me(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 Me(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 Me(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 Me(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 Me(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));
|
|
@@ -20527,7 +20527,7 @@ class gh extends ls {
|
|
|
20527
20527
|
return this._forceStartLoad;
|
|
20528
20528
|
}
|
|
20529
20529
|
}
|
|
20530
|
-
class
|
|
20530
|
+
class Oe {
|
|
20531
20531
|
/**
|
|
20532
20532
|
* Get the video-dev/hls.js package version.
|
|
20533
20533
|
*/
|
|
@@ -20565,13 +20565,13 @@ class Fe {
|
|
|
20565
20565
|
* Get the default configuration applied to new instances.
|
|
20566
20566
|
*/
|
|
20567
20567
|
static get DefaultConfig() {
|
|
20568
|
-
return
|
|
20568
|
+
return Oe.defaultConfig ? Oe.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
|
+
Oe.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 Fe {
|
|
|
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(Oe.DefaultConfig, e);
|
|
20583
20583
|
this.userConfig = e, t.progressive && nh(t);
|
|
20584
20584
|
const {
|
|
20585
20585
|
abrController: i,
|
|
@@ -21106,7 +21106,7 @@ class Fe {
|
|
|
21106
21106
|
return this.streamController.forceStartLoad;
|
|
21107
21107
|
}
|
|
21108
21108
|
}
|
|
21109
|
-
|
|
21109
|
+
Oe.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 Oe()
|
|
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(), Oe.isSupported() && (this.isLoading = !0, this.player = new Oe({
|
|
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(Oe.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__ */ Ne(
|
|
21456
21456
|
xh,
|
|
21457
21457
|
Th,
|
|
21458
21458
|
Eh,
|
|
@@ -21580,7 +21580,7 @@ const Ah = {
|
|
|
21580
21580
|
},
|
|
21581
21581
|
{
|
|
21582
21582
|
precision: K._2_year,
|
|
21583
|
-
interval: I.utcYear.every(
|
|
21583
|
+
interval: I.utcYear.every(1),
|
|
21584
21584
|
format: "%Y"
|
|
21585
21585
|
},
|
|
21586
21586
|
{
|
|
@@ -21708,7 +21708,7 @@ const Ah = {
|
|
|
21708
21708
|
{
|
|
21709
21709
|
precision: K._2_year,
|
|
21710
21710
|
interval: I.utcMonth.every(6),
|
|
21711
|
-
format: "%
|
|
21711
|
+
format: "Q%q"
|
|
21712
21712
|
},
|
|
21713
21713
|
{
|
|
21714
21714
|
precision: K._5_years,
|
|
@@ -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__ */ Ne(
|
|
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
|
+
}, Ue = {
|
|
22160
22160
|
transparencyGradient: "transparency-gradient",
|
|
22161
22161
|
transparencyGradientLight: "transparency-gradient-light",
|
|
22162
22162
|
loadingGradient: "loading-gradient",
|
|
@@ -22258,14 +22258,6 @@ const Ih = _h.exports, G = {
|
|
|
22258
22258
|
type: String,
|
|
22259
22259
|
default: void 0
|
|
22260
22260
|
},
|
|
22261
|
-
minVisibleDate: {
|
|
22262
|
-
type: String,
|
|
22263
|
-
default: void 0
|
|
22264
|
-
},
|
|
22265
|
-
maxVisibleDate: {
|
|
22266
|
-
type: String,
|
|
22267
|
-
default: void 0
|
|
22268
|
-
},
|
|
22269
22261
|
cursorTimestamp: {
|
|
22270
22262
|
type: [String, void 0],
|
|
22271
22263
|
default: void 0
|
|
@@ -22302,7 +22294,7 @@ const Ih = _h.exports, G = {
|
|
|
22302
22294
|
type: Boolean,
|
|
22303
22295
|
default: !1
|
|
22304
22296
|
},
|
|
22305
|
-
|
|
22297
|
+
zoomToIntervalTransitionDuration: {
|
|
22306
22298
|
type: Number,
|
|
22307
22299
|
default: 800
|
|
22308
22300
|
},
|
|
@@ -22317,6 +22309,22 @@ const Ih = _h.exports, G = {
|
|
|
22317
22309
|
milestonesFirst: {
|
|
22318
22310
|
type: Boolean,
|
|
22319
22311
|
default: !0
|
|
22312
|
+
},
|
|
22313
|
+
forbiddenIntervals: {
|
|
22314
|
+
type: Array,
|
|
22315
|
+
default: () => []
|
|
22316
|
+
},
|
|
22317
|
+
forbiddenIntervalColor: {
|
|
22318
|
+
type: String,
|
|
22319
|
+
default: "#ddd"
|
|
22320
|
+
},
|
|
22321
|
+
focusedInterval: {
|
|
22322
|
+
type: [Object, void 0],
|
|
22323
|
+
default: void 0
|
|
22324
|
+
},
|
|
22325
|
+
locked: {
|
|
22326
|
+
type: Boolean,
|
|
22327
|
+
default: !1
|
|
22320
22328
|
}
|
|
22321
22329
|
},
|
|
22322
22330
|
data() {
|
|
@@ -22367,7 +22375,9 @@ const Ih = _h.exports, G = {
|
|
|
22367
22375
|
initialMarkerDragMouseOffset: 0,
|
|
22368
22376
|
selectedMilestoneId: null,
|
|
22369
22377
|
isInitialized: !1,
|
|
22370
|
-
lastValidTransform: I.zoomIdentity
|
|
22378
|
+
lastValidTransform: I.zoomIdentity,
|
|
22379
|
+
lastPanTransform: I.zoomIdentity,
|
|
22380
|
+
isZoomingInterval: !1
|
|
22371
22381
|
};
|
|
22372
22382
|
},
|
|
22373
22383
|
computed: {
|
|
@@ -22553,12 +22563,6 @@ const Ih = _h.exports, G = {
|
|
|
22553
22563
|
startDate() {
|
|
22554
22564
|
this.zoomToStartAndEndDates();
|
|
22555
22565
|
},
|
|
22556
|
-
minDate() {
|
|
22557
|
-
this.updateForbiddenIntervals();
|
|
22558
|
-
},
|
|
22559
|
-
maxDate() {
|
|
22560
|
-
this.updateForbiddenIntervals();
|
|
22561
|
-
},
|
|
22562
22566
|
endDate() {
|
|
22563
22567
|
this.zoomToStartAndEndDates();
|
|
22564
22568
|
},
|
|
@@ -22574,10 +22578,16 @@ const Ih = _h.exports, G = {
|
|
|
22574
22578
|
this.isHoveringTimeline = !1;
|
|
22575
22579
|
},
|
|
22576
22580
|
selectedDate(s) {
|
|
22577
|
-
s && this.panToTimestamp(s);
|
|
22581
|
+
s && !this.locked && this.panToTimestamp(s);
|
|
22578
22582
|
},
|
|
22579
22583
|
groupsVisibility() {
|
|
22580
22584
|
this.updateAndRedrawTimeline();
|
|
22585
|
+
},
|
|
22586
|
+
forbiddenIntervals() {
|
|
22587
|
+
this.updateForbiddenIntervals(!0);
|
|
22588
|
+
},
|
|
22589
|
+
focusedInterval(s) {
|
|
22590
|
+
s && (s != null && s.startDate) && (s != null && s.endDate) && this.zoomToTargetInterval(s.startDate, s.endDate);
|
|
22581
22591
|
}
|
|
22582
22592
|
},
|
|
22583
22593
|
created() {
|
|
@@ -22600,7 +22610,7 @@ const Ih = _h.exports, G = {
|
|
|
22600
22610
|
);
|
|
22601
22611
|
return;
|
|
22602
22612
|
}
|
|
22603
|
-
this.initOrUpdateSvg(), this.initDefs(), this.initUtcOffset(), this.initTimeScale(s, e), this.initXAxes(), this.initYScale(), this.initZoomBehavior(), this.
|
|
22613
|
+
this.initOrUpdateSvg(), this.initDefs(), this.initUtcOffset(), this.initTimeScale(s, e), this.initXAxes(), this.initYScale(), this.initZoomBehavior(), this.drawEventsGroups(), this.curtains && (this.initCurtains(), this.emitCurtainChange()), this.initSelectedTimestampCursor(), this.updateMarkers(), this.registerEventsListeners(), this.emitVisibleInterval(Pt.initial), this.selectedDate && this.panOnDateClick && this.panToTimestamp(this.selectedDate), this.isInitialized = !0;
|
|
22604
22614
|
},
|
|
22605
22615
|
initRefs() {
|
|
22606
22616
|
this.tooltip = this.$refs.tooltip, this.cursor = this.$refs.cursor, this.timeline = this.$refs.timelineContainer, this.selectedTimestampCursor = this.$refs.selectedTimestamp, this.wrapperDiv = this.$refs.wrapperDiv;
|
|
@@ -22612,17 +22622,17 @@ const Ih = _h.exports, G = {
|
|
|
22612
22622
|
const s = this.svg.append("defs");
|
|
22613
22623
|
Object.entries(this.filteredEventsGroups).forEach(
|
|
22614
22624
|
([t, i]) => {
|
|
22615
|
-
const { color: r, chartType: n } = i, a = s.append("linearGradient").attr("id", `${
|
|
22625
|
+
const { color: r, chartType: n } = i, a = s.append("linearGradient").attr("id", `${Ue.loadingGradient}-${t}`).attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
22616
22626
|
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(
|
|
22617
22627
|
n
|
|
22618
22628
|
) && [
|
|
22619
22629
|
{
|
|
22620
|
-
id:
|
|
22630
|
+
id: Ue.transparencyGradientLight,
|
|
22621
22631
|
stop: 38,
|
|
22622
22632
|
opacity: 0.3
|
|
22623
22633
|
},
|
|
22624
22634
|
{
|
|
22625
|
-
id:
|
|
22635
|
+
id: Ue.transparencyGradient,
|
|
22626
22636
|
stop: 130,
|
|
22627
22637
|
opacity: 0.4
|
|
22628
22638
|
}
|
|
@@ -22631,7 +22641,7 @@ const Ih = _h.exports, G = {
|
|
|
22631
22641
|
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);
|
|
22632
22642
|
});
|
|
22633
22643
|
}
|
|
22634
|
-
), s.append("pattern").attr("id",
|
|
22644
|
+
), s.append("pattern").attr("id", Ue.stripedPattern).attr("width", 5).attr("height", 3).attr("patternUnits", "userSpaceOnUse").attr("patternTransform", "rotate(45)").append("rect").attr("width", 1).attr("height", 4).attr("transform", "translate(0,0)").attr("fill", this.forbiddenIntervalColor);
|
|
22635
22645
|
},
|
|
22636
22646
|
initUtcOffset() {
|
|
22637
22647
|
const s = this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate;
|
|
@@ -22673,27 +22683,33 @@ const Ih = _h.exports, G = {
|
|
|
22673
22683
|
},
|
|
22674
22684
|
zoomToFitMarkers() {
|
|
22675
22685
|
const s = this.markers.map(
|
|
22676
|
-
(
|
|
22686
|
+
(i) => new Date(i.timestamp).getTime()
|
|
22677
22687
|
);
|
|
22678
22688
|
if (s.length < 2)
|
|
22679
22689
|
return;
|
|
22680
|
-
const e = Math.min(...s), t = Math.max(...s)
|
|
22681
|
-
|
|
22682
|
-
const c = this.zoomBehavior.scaleExtent();
|
|
22683
|
-
l = Math.min(
|
|
22684
|
-
Math.max(l, c[0]),
|
|
22685
|
-
c[1]
|
|
22686
|
-
), this.svg.transition().duration(this.fitMarkersTransitionDuration / 2).call(this.zoomBehavior.scaleTo, l).on(
|
|
22687
|
-
"end",
|
|
22688
|
-
() => this.translateMarkersIntoView(e, t, l)
|
|
22689
|
-
);
|
|
22690
|
+
const e = Math.min(...s), t = Math.max(...s);
|
|
22691
|
+
this.zoomToTargetInterval(e, t);
|
|
22690
22692
|
},
|
|
22691
|
-
|
|
22693
|
+
zoomToTargetInterval(s, e) {
|
|
22694
|
+
if (!s || !e)
|
|
22695
|
+
return;
|
|
22696
|
+
this.isZoomingInterval = !0;
|
|
22697
|
+
const t = new Date(s).getTime(), i = new Date(e).getTime(), r = this.initialTimeScale.domain().map((h) => h.getTime()), n = r[1] - r[0], a = i - t, o = 0.1 * a, l = a + 2 * o;
|
|
22698
|
+
let c = n / l;
|
|
22699
|
+
const u = this.zoomBehavior.scaleExtent();
|
|
22700
|
+
c = Math.min(
|
|
22701
|
+
Math.max(c, u[0]),
|
|
22702
|
+
u[1]
|
|
22703
|
+
), this.svg.transition().duration(this.zoomToIntervalTransitionDuration / 2).call(this.zoomBehavior.scaleTo, c).on("end", () => this.translateIntervalIntoView(t, i, c));
|
|
22704
|
+
},
|
|
22705
|
+
translateIntervalIntoView(s, e, t) {
|
|
22692
22706
|
const i = this.timeScale(new Date(s)), r = this.timeScale(new Date(e)), n = (i + r) / 2, o = this.svg.node().getBoundingClientRect().width / 2 - n, l = I.zoomTransform(this.svg.node());
|
|
22693
|
-
this.svg.transition().duration(this.
|
|
22707
|
+
this.svg.transition().duration(this.zoomToIntervalTransitionDuration / 2).call(
|
|
22694
22708
|
this.zoomBehavior.transform,
|
|
22695
22709
|
I.zoomIdentity.translate(l.x + o, l.y).scale(t)
|
|
22696
|
-
)
|
|
22710
|
+
).on("end", () => {
|
|
22711
|
+
this.isZoomingInterval = !1;
|
|
22712
|
+
});
|
|
22697
22713
|
},
|
|
22698
22714
|
initSelectedTimestampCursor() {
|
|
22699
22715
|
this.svg.append("line").attr("class", G.selectedTimestampCursor).style("stroke", "red").style("stroke-width", "1px").style("opacity", 0).attr("x1", 0).attr("x2", 0).attr("y1", 0), this.repositionSelectedTimestampCursor();
|
|
@@ -22864,12 +22880,15 @@ const Ih = _h.exports, G = {
|
|
|
22864
22880
|
);
|
|
22865
22881
|
},
|
|
22866
22882
|
isZoomAllowed(s) {
|
|
22867
|
-
|
|
22883
|
+
if (this.isZoomingInterval)
|
|
22884
|
+
return !0;
|
|
22885
|
+
const e = this.initialTimeScale.copy(), t = s.transform.rescaleX(e).domain(), i = this.minDate ? this.tzStringToDate(this.minDate) : void 0, r = this.maxDate ? this.tzStringToDate(this.maxDate) : void 0;
|
|
22868
22886
|
return (!i || t[0] >= i) && (!r || t[1] <= r);
|
|
22869
22887
|
},
|
|
22870
22888
|
handleZoom(s) {
|
|
22889
|
+
var i;
|
|
22871
22890
|
if (!this.isZoomAllowed(s)) {
|
|
22872
|
-
s.sourceEvent.preventDefault(), this.svg.call(this.zoomBehavior.transform, this.lastValidTransform);
|
|
22891
|
+
(i = s == null ? void 0 : s.sourceEvent) == null || i.preventDefault(), this.svg.call(this.zoomBehavior.transform, this.lastValidTransform);
|
|
22873
22892
|
return;
|
|
22874
22893
|
}
|
|
22875
22894
|
this.lastValidTransform = s.transform;
|
|
@@ -22880,16 +22899,27 @@ const Ih = _h.exports, G = {
|
|
|
22880
22899
|
scale: t,
|
|
22881
22900
|
translation: s.transform.x - this.lastTransform.x
|
|
22882
22901
|
}, this.lastTransform = { ...s.transform };
|
|
22883
|
-
for (const
|
|
22884
|
-
this.rescaleAxis(
|
|
22902
|
+
for (const r in this.xAxes)
|
|
22903
|
+
this.rescaleAxis(r, e), this.translateTicksText(r);
|
|
22885
22904
|
this.updateEventsBars(), this.updateLineGraphs(), this.updateBarChart(), this.updateLineGraphHoverZones(), this.updateMilestonesPositions(), this.repositionSelectedTimestampCursor(), this.updateForbiddenIntervals(), this.updateMarkers(), this.emitVisibleInterval(Pt.zoom), this.curtains && this.emitCurtainChange();
|
|
22886
22905
|
},
|
|
22887
22906
|
panToTimestamp(s) {
|
|
22888
|
-
const e = this.tzStringToDate(s), t = this.timeScale(e), i = I.zoomTransform(this.svg.node()), r = i.x - t + this.timeline.offsetWidth / 2
|
|
22889
|
-
|
|
22907
|
+
const e = this.tzStringToDate(s), t = this.timeScale(e), i = I.zoomTransform(this.svg.node()), r = i.x - t + this.timeline.offsetWidth / 2, n = this.timeScale.invert(
|
|
22908
|
+
-r / i.k
|
|
22909
|
+
), a = this.timeScale.invert(
|
|
22910
|
+
(this.timeline.offsetWidth - r) / i.k
|
|
22911
|
+
), o = this.minDate ? this.tzStringToDate(this.minDate) : void 0, l = this.maxDate ? this.tzStringToDate(this.maxDate) : void 0;
|
|
22912
|
+
if (o && n < o || l && a > l) {
|
|
22913
|
+
console.log("Pan operation would exceed bounds. Operation cancelled.");
|
|
22914
|
+
return;
|
|
22915
|
+
}
|
|
22916
|
+
const u = i.k / this.lastPanTransform.k < 10 ? this.panTransitionDuration : 0;
|
|
22917
|
+
this.lastPanTransform = { ...i }, this.svg.transition().duration(u).call(
|
|
22890
22918
|
this.zoomBehavior.transform,
|
|
22891
22919
|
I.zoomIdentity.translate(r, 0).scale(i.k)
|
|
22892
|
-
),
|
|
22920
|
+
).on("end", () => {
|
|
22921
|
+
this.emitVisibleInterval(Pt.autoPan);
|
|
22922
|
+
});
|
|
22893
22923
|
},
|
|
22894
22924
|
emitCurtainChange() {
|
|
22895
22925
|
const { startDate: s, endDate: e } = this.calculateDateRangeFromCurtains();
|
|
@@ -23011,7 +23041,7 @@ const Ih = _h.exports, G = {
|
|
|
23011
23041
|
return parseInt(e.left);
|
|
23012
23042
|
},
|
|
23013
23043
|
isTimestampAllowedForMarker(s, e) {
|
|
23014
|
-
return (
|
|
23044
|
+
return (e.minDate ? s >= this.tzStringToDate(e.minDate) : !0) && (e.maxDate ? s <= this.tzStringToDate(e.maxDate) : !0);
|
|
23015
23045
|
},
|
|
23016
23046
|
handleMarkerDrag({
|
|
23017
23047
|
marker: s,
|
|
@@ -23088,25 +23118,17 @@ const Ih = _h.exports, G = {
|
|
|
23088
23118
|
s - this.rightCurtainWidth + this.curtainHandleWidth
|
|
23089
23119
|
).attr("y", -this.curtainHandleWidth).attr("width", this.rightCurtainWidth + this.curtainHandleWidth * 2).attr("height", e + this.curtainHandleWidth * 2);
|
|
23090
23120
|
},
|
|
23091
|
-
|
|
23092
|
-
|
|
23093
|
-
|
|
23094
|
-
|
|
23095
|
-
|
|
23096
|
-
|
|
23097
|
-
|
|
23098
|
-
|
|
23099
|
-
|
|
23100
|
-
|
|
23101
|
-
|
|
23102
|
-
if (s) {
|
|
23103
|
-
const t = this.timeScale(s);
|
|
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})`);
|
|
23105
|
-
}
|
|
23106
|
-
if (e) {
|
|
23107
|
-
const t = this.timeline.offsetWidth - this.timeScale(e), i = this.timeScale(e);
|
|
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})`);
|
|
23109
|
-
}
|
|
23121
|
+
updateForbiddenIntervals(s = !1) {
|
|
23122
|
+
s && this.svg.selectAll(`.${G.forbiddenInterval}`).remove();
|
|
23123
|
+
const e = this.timeScale.domain();
|
|
23124
|
+
this.forbiddenIntervals.forEach((t, i) => {
|
|
23125
|
+
const r = t.startDate === -1 / 0 ? e[0] : this.tzStringToDate(t.startDate), n = t.endDate === 1 / 0 ? e[1] : this.tzStringToDate(t.endDate), a = this.timeScale(r), o = this.timeScale(n), l = Math.max(o - a, 0);
|
|
23126
|
+
let c = this.svg.select(`.${G.forbiddenInterval}-${i}`);
|
|
23127
|
+
c.empty() && (c = this.svg.append("rect").attr(
|
|
23128
|
+
"class",
|
|
23129
|
+
`${G.forbiddenInterval} ${G.forbiddenInterval}-${i}`
|
|
23130
|
+
).attr("fill", `url(#${Ue.stripedPattern})`)), c.attr("x", a).attr("y", 0).attr("width", l).attr("height", this.timelineHeight);
|
|
23131
|
+
});
|
|
23110
23132
|
},
|
|
23111
23133
|
drawEventsGroups() {
|
|
23112
23134
|
this.svg.selectAll(`g.${G.eventGroup}`).remove(), this.svg.selectAll(`.${G.barChartGroup}`).remove(), this.svg.selectAll(`.${G.lineGraphGroup}`).remove(), this.svg.selectAll(`.${G.lineGraphGroupLabel}`).remove(), this.svg.selectAll(`.${G.loadingIndicator}`).remove(), this.drawLineGraphEventsGroups(), this.drawBarEventsGroups(), this.drawBarChartEventsGroups(), this.drawMilestonesPlaceholder();
|
|
@@ -23158,7 +23180,7 @@ const Ih = _h.exports, G = {
|
|
|
23158
23180
|
type: i
|
|
23159
23181
|
}) {
|
|
23160
23182
|
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}`;
|
|
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(#${
|
|
23183
|
+
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(#${Ue.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})`);
|
|
23162
23184
|
},
|
|
23163
23185
|
drawLineGraphHoverZones({
|
|
23164
23186
|
events: s,
|
|
@@ -23227,7 +23249,7 @@ const Ih = _h.exports, G = {
|
|
|
23227
23249
|
yPosition: m,
|
|
23228
23250
|
height: y
|
|
23229
23251
|
}), t || i) {
|
|
23230
|
-
const T = i ?
|
|
23252
|
+
const T = i ? 1 : 2, x = m + y / 2;
|
|
23231
23253
|
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);
|
|
23232
23254
|
}
|
|
23233
23255
|
this.drawBars({
|
|
@@ -23353,7 +23375,7 @@ const Ih = _h.exports, G = {
|
|
|
23353
23375
|
this.svg.append("rect").classed(
|
|
23354
23376
|
`${G.loadingIndicator} ${G.loadingIndicator}-${e}`,
|
|
23355
23377
|
!0
|
|
23356
|
-
).attr("x", 0).attr("y", s).attr("width", this.timeline.offsetWidth / 3).attr("height", this.barChartHeight).attr("fill", `url(#${
|
|
23378
|
+
).attr("x", 0).attr("y", s).attr("width", this.timeline.offsetWidth / 3).attr("height", this.barChartHeight).attr("fill", `url(#${Ue.loadingGradient}-${e})`).style("visibility", t ? "visible" : "hidden");
|
|
23357
23379
|
},
|
|
23358
23380
|
drawBackground({
|
|
23359
23381
|
color: s,
|
|
@@ -23382,7 +23404,7 @@ const Ih = _h.exports, G = {
|
|
|
23382
23404
|
n && (d = a), e.selectAll(G.eventRect).data(s).enter().append("rect").attr(
|
|
23383
23405
|
"class",
|
|
23384
23406
|
(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) {
|
|
23407
|
+
).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", n ? a / 10 : 5).attr("cursor", "pointer").attr("stroke", (f) => n ? I.color(f.color || i).brighter(1).toString() : "#0000").style("fill", (f) => f.color || i).on("mouseover", function(f, m) {
|
|
23386
23408
|
I.select(this).classed(G.eventRectHovered, !0), c.handleBarMouseOver(f, m, r);
|
|
23387
23409
|
}).on("mouseout", function() {
|
|
23388
23410
|
I.select(this).classed(G.eventRectHovered, !1), c.handleBarMouseOut();
|
|
@@ -23409,7 +23431,7 @@ const Ih = _h.exports, G = {
|
|
|
23409
23431
|
).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(
|
|
23410
23432
|
"class",
|
|
23411
23433
|
(f) => G.eventBar + (f.className ? ` ${f.className}` : "")
|
|
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(#${
|
|
23434
|
+
).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(#${Ue.transparencyGradient}-${r})`), d.append("rect").attr(
|
|
23413
23435
|
"class",
|
|
23414
23436
|
(f) => G.eventBarCap + (f.className ? ` ${f.className}` : "")
|
|
23415
23437
|
).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) {
|
|
@@ -23430,7 +23452,7 @@ const Ih = _h.exports, G = {
|
|
|
23430
23452
|
onBarChartBarMouseOut(s, e) {
|
|
23431
23453
|
s.classed(G.eventBarContainerHovered, !1), s.selectAll(`.${G.eventBarHoverZone}`).attr("fill-opacity", 0);
|
|
23432
23454
|
const i = s.selectAll(`.${G.eventBar}`);
|
|
23433
|
-
i.attr("fill", `url(#${
|
|
23455
|
+
i.attr("fill", `url(#${Ue.transparencyGradient}-${e})`), i.attr("fill-opacity", 1);
|
|
23434
23456
|
},
|
|
23435
23457
|
drawTextLabel({
|
|
23436
23458
|
gElement: s,
|
|
@@ -23602,7 +23624,7 @@ var kh = function() {
|
|
|
23602
23624
|
return t("div", { key: r }, [t("strong", [e._v(e._s(i.type) + " Count")]), e._v(": " + e._s(i.count) + " ")]);
|
|
23603
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()];
|
|
23604
23626
|
}, { event: e.hoveredEvent, counts: e.hoveredCounts, active: e.isHoveringEvent && !e.isInteractingWithCurtain, type: e.hoveredEventType })], 2)], 2);
|
|
23605
|
-
}, Ph = [], Oh = /* @__PURE__ */
|
|
23627
|
+
}, Ph = [], Oh = /* @__PURE__ */ Ne(
|
|
23606
23628
|
wh,
|
|
23607
23629
|
kh,
|
|
23608
23630
|
Ph,
|
|
@@ -23669,7 +23691,7 @@ const Fh = Oh.exports, Mh = {
|
|
|
23669
23691
|
var Nh = function() {
|
|
23670
23692
|
var e = this, t = e._self._c;
|
|
23671
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))]);
|
|
23672
|
-
}, Bh = [], $h = /* @__PURE__ */
|
|
23694
|
+
}, Bh = [], $h = /* @__PURE__ */ Ne(
|
|
23673
23695
|
Mh,
|
|
23674
23696
|
Nh,
|
|
23675
23697
|
Bh,
|