@evercam/ui 0.0.55-beta.3 → 0.0.55-beta.5
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 +8 -0
- package/dist/index.mjs +266 -249
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/ETimeline.vue.d.ts +4 -0
- package/dist/src/components/ETimelineMilestone.vue.d.ts +2 -2
- package/dist/src/index.d.ts +4 -0
- package/dist/tags.json +2 -0
- package/dist/web-types.json +19 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import He from "vue";
|
|
2
|
-
import * as
|
|
2
|
+
import * as I from "d3";
|
|
3
3
|
import Ve from "moment-timezone";
|
|
4
4
|
var Y = /* @__PURE__ */ ((s) => (s.dot = "dot", s.xs = "xs", s.sm = "sm", s.md = "base", s.base = "base", s.lg = "lg", s.xl = "xl", s["2xl"] = "2xl", s["3xl"] = "3xl", s["4xl"] = "4xl", s["5xl"] = "5xl", s["6xl"] = "6xl", s["7xl"] = "7xl", s["8xl"] = "8xl", s["9xl"] = "9xl", s))(Y || {}), ge = /* @__PURE__ */ ((s) => (s.warning = "warning", s.error = "error", s.info = "info", s.success = "success", s.primary = "primary", s.brand = "brand", s.default = "default", s))(ge || {}), kt = /* @__PURE__ */ ((s) => (s.overview = "overview", s.detailed = "detailed", s.detailedBackground = "detailedBackground", s))(kt || {}), qe = /* @__PURE__ */ ((s) => (s.bars = "bars", s.lineGraph = "lineGraph", s.barChart = "barGraph", s.milestones = "milestones", s))(qe || {}), Pt = /* @__PURE__ */ ((s) => (s.zoom = "zoom", s.autoPan = "autoPan", s.initial = "initial", s))(Pt || {});
|
|
5
5
|
const ma = He.extend({
|
|
@@ -2308,7 +2308,7 @@ var Ji = {}, Zr = {}, ei = {};
|
|
|
2308
2308
|
function P(F) {
|
|
2309
2309
|
return D.has(F);
|
|
2310
2310
|
}
|
|
2311
|
-
let
|
|
2311
|
+
let w = /* @__PURE__ */ new Set([
|
|
2312
2312
|
"xx-small",
|
|
2313
2313
|
"x-small",
|
|
2314
2314
|
"small",
|
|
@@ -2319,7 +2319,7 @@ var Ji = {}, Zr = {}, ei = {};
|
|
|
2319
2319
|
"xxx-large"
|
|
2320
2320
|
]);
|
|
2321
2321
|
function $(F) {
|
|
2322
|
-
return
|
|
2322
|
+
return w.has(F);
|
|
2323
2323
|
}
|
|
2324
2324
|
let O = /* @__PURE__ */ new Set([
|
|
2325
2325
|
"larger",
|
|
@@ -2411,14 +2411,14 @@ var Qr = {};
|
|
|
2411
2411
|
if (P !== void 0)
|
|
2412
2412
|
return (0, n.default)(P);
|
|
2413
2413
|
if (f(C)) {
|
|
2414
|
-
let
|
|
2415
|
-
return
|
|
2414
|
+
let w = u(C, D);
|
|
2415
|
+
return w === void 0 ? void 0 : (0, n.default)(w);
|
|
2416
2416
|
}
|
|
2417
2417
|
}
|
|
2418
2418
|
function d(C, b = {}, { validate: D = () => !0 } = {}) {
|
|
2419
2419
|
var P;
|
|
2420
|
-
let
|
|
2421
|
-
return
|
|
2420
|
+
let w = (P = b.values) === null || P === void 0 ? void 0 : P[C];
|
|
2421
|
+
return w !== void 0 ? w : b.supportsNegativeValues && C.startsWith("-") ? h(C.slice(1), b.values, D) : u(C, D);
|
|
2422
2422
|
}
|
|
2423
2423
|
function f(C) {
|
|
2424
2424
|
return C.startsWith("[") && C.endsWith("]");
|
|
@@ -2449,8 +2449,8 @@ var Qr = {};
|
|
|
2449
2449
|
function v(C, b = {}, { tailwindConfig: D = {} } = {}) {
|
|
2450
2450
|
var P;
|
|
2451
2451
|
if (((P = b.values) === null || P === void 0 ? void 0 : P[C]) !== void 0) {
|
|
2452
|
-
var
|
|
2453
|
-
return g((
|
|
2452
|
+
var w;
|
|
2453
|
+
return g((w = b.values) === null || w === void 0 ? void 0 : w[C]);
|
|
2454
2454
|
}
|
|
2455
2455
|
let [$, O] = m(C);
|
|
2456
2456
|
if (O !== void 0) {
|
|
@@ -2525,14 +2525,14 @@ var Qr = {};
|
|
|
2525
2525
|
null
|
|
2526
2526
|
];
|
|
2527
2527
|
}
|
|
2528
|
-
let
|
|
2529
|
-
for (let $ of
|
|
2528
|
+
let w = B(C, b, D, P);
|
|
2529
|
+
for (let $ of w)
|
|
2530
2530
|
return $;
|
|
2531
2531
|
return [];
|
|
2532
2532
|
}
|
|
2533
2533
|
function* B(C, b, D, P) {
|
|
2534
|
-
let
|
|
2535
|
-
if (
|
|
2534
|
+
let w = (0, o.flagEnabled)(P, "generalizedModifiers"), [$, O] = m(b);
|
|
2535
|
+
if (w && D.modifiers != null && (D.modifiers === "any" || typeof D.modifiers == "object" && (O && f(O) || O in D.modifiers)) || ($ = b, O = void 0), O !== void 0 && $ === "" && ($ = "DEFAULT"), O !== void 0 && typeof D.modifiers == "object") {
|
|
2536
2536
|
var F, V;
|
|
2537
2537
|
let H = (V = (F = D.modifiers) === null || F === void 0 ? void 0 : F[O]) !== null && V !== void 0 ? V : null;
|
|
2538
2538
|
H !== null ? O = H : f(O) && (O = y(O));
|
|
@@ -2581,9 +2581,9 @@ var Jr = {};
|
|
|
2581
2581
|
function m(P) {
|
|
2582
2582
|
return typeof P == "function";
|
|
2583
2583
|
}
|
|
2584
|
-
function g(P, ...
|
|
2585
|
-
let $ =
|
|
2586
|
-
for (let O of
|
|
2584
|
+
function g(P, ...w) {
|
|
2585
|
+
let $ = w.pop();
|
|
2586
|
+
for (let O of w)
|
|
2587
2587
|
for (let U in O) {
|
|
2588
2588
|
let F = $(P[U], O[U]);
|
|
2589
2589
|
F === void 0 ? (0, l.default)(P[U]) && (0, l.default)(O[U]) ? P[U] = g({}, P[U], O[U], $) : P[U] = O[U] : P[U] = F;
|
|
@@ -2593,23 +2593,23 @@ var Jr = {};
|
|
|
2593
2593
|
const y = {
|
|
2594
2594
|
colors: r.default,
|
|
2595
2595
|
negative(P) {
|
|
2596
|
-
return Object.keys(P).filter((
|
|
2596
|
+
return Object.keys(P).filter((w) => P[w] !== "0").reduce((w, $) => {
|
|
2597
2597
|
let O = (0, e.default)(P[$]);
|
|
2598
|
-
return O !== void 0 && (
|
|
2598
|
+
return O !== void 0 && (w[`-${$}`] = O), w;
|
|
2599
2599
|
}, {});
|
|
2600
2600
|
},
|
|
2601
2601
|
breakpoints(P) {
|
|
2602
|
-
return Object.keys(P).filter((
|
|
2603
|
-
...
|
|
2602
|
+
return Object.keys(P).filter((w) => typeof P[w] == "string").reduce((w, $) => ({
|
|
2603
|
+
...w,
|
|
2604
2604
|
[`screen-${$}`]: P[$]
|
|
2605
2605
|
}), {});
|
|
2606
2606
|
}
|
|
2607
2607
|
};
|
|
2608
|
-
function v(P, ...
|
|
2609
|
-
return m(P) ? P(...
|
|
2608
|
+
function v(P, ...w) {
|
|
2609
|
+
return m(P) ? P(...w) : P;
|
|
2610
2610
|
}
|
|
2611
2611
|
function T(P) {
|
|
2612
|
-
return P.reduce((
|
|
2612
|
+
return P.reduce((w, { extend: $ }) => g(w, $, (O, U) => O === void 0 ? [
|
|
2613
2613
|
U
|
|
2614
2614
|
] : Array.isArray(O) ? [
|
|
2615
2615
|
U,
|
|
@@ -2621,32 +2621,32 @@ var Jr = {};
|
|
|
2621
2621
|
}
|
|
2622
2622
|
function x(P) {
|
|
2623
2623
|
return {
|
|
2624
|
-
...P.reduce((
|
|
2624
|
+
...P.reduce((w, $) => (0, n.defaults)(w, $), {}),
|
|
2625
2625
|
// In order to resolve n config objects, we combine all of their `extend` properties
|
|
2626
2626
|
// into arrays instead of objects so they aren't overridden.
|
|
2627
2627
|
extend: T(P)
|
|
2628
2628
|
};
|
|
2629
2629
|
}
|
|
2630
|
-
function L(P,
|
|
2630
|
+
function L(P, w) {
|
|
2631
2631
|
if (Array.isArray(P) && (0, l.default)(P[0]))
|
|
2632
|
-
return P.concat(
|
|
2633
|
-
if (Array.isArray(
|
|
2632
|
+
return P.concat(w);
|
|
2633
|
+
if (Array.isArray(w) && (0, l.default)(w[0]) && (0, l.default)(P))
|
|
2634
2634
|
return [
|
|
2635
2635
|
P,
|
|
2636
|
-
...
|
|
2636
|
+
...w
|
|
2637
2637
|
];
|
|
2638
|
-
if (Array.isArray(
|
|
2639
|
-
return
|
|
2638
|
+
if (Array.isArray(w))
|
|
2639
|
+
return w;
|
|
2640
2640
|
}
|
|
2641
|
-
function E({ extend: P, ...
|
|
2642
|
-
return g(
|
|
2641
|
+
function E({ extend: P, ...w }) {
|
|
2642
|
+
return g(w, P, ($, O) => !m($) && !O.some(m) ? g({}, $, ...O, L) : (U, F) => g({}, ...[
|
|
2643
2643
|
$,
|
|
2644
2644
|
...O
|
|
2645
2645
|
].map((V) => v(V, U, F)), L));
|
|
2646
2646
|
}
|
|
2647
2647
|
function* k(P) {
|
|
2648
|
-
let
|
|
2649
|
-
if (
|
|
2648
|
+
let w = (0, a.toPath)(P);
|
|
2649
|
+
if (w.length === 0 || (yield w, Array.isArray(P)))
|
|
2650
2650
|
return;
|
|
2651
2651
|
let $ = /^(.*?)\s*\/\s*([^/]+)$/, O = P.match($);
|
|
2652
2652
|
if (O !== null) {
|
|
@@ -2655,11 +2655,11 @@ var Jr = {};
|
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
2657
|
function R(P) {
|
|
2658
|
-
const
|
|
2658
|
+
const w = ($, O) => {
|
|
2659
2659
|
for (const U of k($)) {
|
|
2660
2660
|
let F = 0, V = P;
|
|
2661
2661
|
for (; V != null && F < U.length; )
|
|
2662
|
-
V = V[U[F++]], V = m(V) && (U.alpha === void 0 || F <= U.length - 1) ? V(
|
|
2662
|
+
V = V[U[F++]], V = m(V) && (U.alpha === void 0 || F <= U.length - 1) ? V(w, y) : V;
|
|
2663
2663
|
if (V !== void 0) {
|
|
2664
2664
|
if (U.alpha !== void 0) {
|
|
2665
2665
|
let H = (0, u.parseColorFormat)(V);
|
|
@@ -2670,16 +2670,16 @@ var Jr = {};
|
|
|
2670
2670
|
}
|
|
2671
2671
|
return O;
|
|
2672
2672
|
};
|
|
2673
|
-
return Object.assign(
|
|
2674
|
-
theme:
|
|
2673
|
+
return Object.assign(w, {
|
|
2674
|
+
theme: w,
|
|
2675
2675
|
...y
|
|
2676
|
-
}), Object.keys(P).reduce(($, O) => ($[O] = m(P[O]) ? P[O](
|
|
2676
|
+
}), Object.keys(P).reduce(($, O) => ($[O] = m(P[O]) ? P[O](w, y) : P[O], $), {});
|
|
2677
2677
|
}
|
|
2678
2678
|
function B(P) {
|
|
2679
|
-
let
|
|
2679
|
+
let w = [];
|
|
2680
2680
|
return P.forEach(($) => {
|
|
2681
|
-
|
|
2682
|
-
...
|
|
2681
|
+
w = [
|
|
2682
|
+
...w,
|
|
2683
2683
|
$
|
|
2684
2684
|
];
|
|
2685
2685
|
var O;
|
|
@@ -2687,14 +2687,14 @@ var Jr = {};
|
|
|
2687
2687
|
U.length !== 0 && U.forEach((F) => {
|
|
2688
2688
|
F.__isOptionsFunction && (F = F());
|
|
2689
2689
|
var V;
|
|
2690
|
-
|
|
2691
|
-
...
|
|
2690
|
+
w = [
|
|
2691
|
+
...w,
|
|
2692
2692
|
...B([
|
|
2693
2693
|
(V = F == null ? void 0 : F.config) !== null && V !== void 0 ? V : {}
|
|
2694
2694
|
])
|
|
2695
2695
|
];
|
|
2696
2696
|
});
|
|
2697
|
-
}),
|
|
2697
|
+
}), w;
|
|
2698
2698
|
}
|
|
2699
2699
|
function C(P) {
|
|
2700
2700
|
return [
|
|
@@ -2712,7 +2712,7 @@ var Jr = {};
|
|
|
2712
2712
|
], []);
|
|
2713
2713
|
}
|
|
2714
2714
|
function D(P) {
|
|
2715
|
-
let
|
|
2715
|
+
let w = [
|
|
2716
2716
|
...B(P),
|
|
2717
2717
|
{
|
|
2718
2718
|
prefix: "",
|
|
@@ -2722,10 +2722,10 @@ var Jr = {};
|
|
|
2722
2722
|
];
|
|
2723
2723
|
var $, O;
|
|
2724
2724
|
return (0, o.normalizeConfig)((0, n.defaults)({
|
|
2725
|
-
theme: R(E(x(
|
|
2726
|
-
corePlugins: C(
|
|
2725
|
+
theme: R(E(x(w.map((U) => ($ = U == null ? void 0 : U.theme) !== null && $ !== void 0 ? $ : {})))),
|
|
2726
|
+
corePlugins: C(w.map((U) => U.corePlugins)),
|
|
2727
2727
|
plugins: b(P.map((U) => (O = U == null ? void 0 : U.plugins) !== null && O !== void 0 ? O : []))
|
|
2728
|
-
}, ...
|
|
2728
|
+
}, ...w));
|
|
2729
2729
|
}
|
|
2730
2730
|
})(Br);
|
|
2731
2731
|
var en = {}, Aa = {
|
|
@@ -5426,7 +5426,7 @@ function As(s, e) {
|
|
|
5426
5426
|
m === n && (y && (R += 8), v && (R += 4), T && (x = z(f, R), R += 4), L && (E = z(f, R), R += 4), k && (R += 4), e.type === "video" && (a = Bo(e.codec)), X(h, ["trun"]).map((B) => {
|
|
5427
5427
|
const C = B[0], b = z(B, 0) & 16777215, D = (b & 1) !== 0;
|
|
5428
5428
|
let P = 0;
|
|
5429
|
-
const
|
|
5429
|
+
const w = (b & 4) !== 0, $ = (b & 256) !== 0;
|
|
5430
5430
|
let O = 0;
|
|
5431
5431
|
const U = (b & 512) !== 0;
|
|
5432
5432
|
let F = 0;
|
|
@@ -5434,7 +5434,7 @@ function As(s, e) {
|
|
|
5434
5434
|
let M = 0;
|
|
5435
5435
|
const Q = z(B, 4);
|
|
5436
5436
|
let Z = 8;
|
|
5437
|
-
D && (P = z(B, Z), Z += 4),
|
|
5437
|
+
D && (P = z(B, Z), Z += 4), w && (Z += 4);
|
|
5438
5438
|
let ee = P + c;
|
|
5439
5439
|
for (let ae = 0; ae < Q; ae++) {
|
|
5440
5440
|
if ($ ? (O = z(B, Z), Z += 4) : O = x, U ? (F = z(B, Z), Z += 4) : F = E, V && (Z += 4), H && (C === 0 ? M = z(B, Z) : M = mn(B, Z), Z += 4), e.type === te.VIDEO) {
|
|
@@ -6084,16 +6084,16 @@ class ke {
|
|
|
6084
6084
|
u = o.startSN = parseInt(D);
|
|
6085
6085
|
break;
|
|
6086
6086
|
case "SKIP": {
|
|
6087
|
-
const
|
|
6088
|
-
ve(o,
|
|
6089
|
-
const $ =
|
|
6087
|
+
const w = new ne(D);
|
|
6088
|
+
ve(o, w, ["RECENTLY-REMOVED-DATERANGES"]);
|
|
6089
|
+
const $ = w.decimalInteger("SKIPPED-SEGMENTS");
|
|
6090
6090
|
if (W($)) {
|
|
6091
6091
|
o.skippedSegments = $;
|
|
6092
6092
|
for (let U = $; U--; )
|
|
6093
6093
|
l.unshift(null);
|
|
6094
6094
|
u += $;
|
|
6095
6095
|
}
|
|
6096
|
-
const O =
|
|
6096
|
+
const O = w.enumeratedString("RECENTLY-REMOVED-DATERANGES");
|
|
6097
6097
|
O && (o.recentlyRemovedDateranges = O.split(" "));
|
|
6098
6098
|
break;
|
|
6099
6099
|
}
|
|
@@ -6122,16 +6122,16 @@ class ke {
|
|
|
6122
6122
|
g.tagList.push([b, D]);
|
|
6123
6123
|
break;
|
|
6124
6124
|
case "DATERANGE": {
|
|
6125
|
-
const
|
|
6126
|
-
ve(o,
|
|
6127
|
-
const $ = new nn(
|
|
6125
|
+
const w = new ne(D);
|
|
6126
|
+
ve(o, w, ["ID", "CLASS", "START-DATE", "END-DATE", "SCTE35-CMD", "SCTE35-OUT", "SCTE35-IN"]), ve(o, w, w.clientAttrs);
|
|
6127
|
+
const $ = new nn(w, o.dateRanges[w.ID]);
|
|
6128
6128
|
$.isValid || o.skippedSegments ? o.dateRanges[$.id] = $ : S.warn(`Ignoring invalid DATERANGE tag: "${D}"`), g.tagList.push(["EXT-X-DATERANGE", D]);
|
|
6129
6129
|
break;
|
|
6130
6130
|
}
|
|
6131
6131
|
case "DEFINE": {
|
|
6132
6132
|
{
|
|
6133
|
-
const
|
|
6134
|
-
ve(o,
|
|
6133
|
+
const w = new ne(D);
|
|
6134
|
+
ve(o, w, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in w ? Wo(o, w, a) : Rs(o, w, t);
|
|
6135
6135
|
}
|
|
6136
6136
|
break;
|
|
6137
6137
|
}
|
|
@@ -6139,13 +6139,13 @@ class ke {
|
|
|
6139
6139
|
f = parseInt(D);
|
|
6140
6140
|
break;
|
|
6141
6141
|
case "KEY": {
|
|
6142
|
-
const
|
|
6143
|
-
if (
|
|
6144
|
-
if (
|
|
6142
|
+
const w = ks(D, t, o);
|
|
6143
|
+
if (w.isSupported()) {
|
|
6144
|
+
if (w.method === "NONE") {
|
|
6145
6145
|
T = void 0;
|
|
6146
6146
|
break;
|
|
6147
6147
|
}
|
|
6148
|
-
T || (T = {}), T[
|
|
6148
|
+
T || (T = {}), T[w.keyFormat] && (T = oe({}, T)), T[w.keyFormat] = w;
|
|
6149
6149
|
} else
|
|
6150
6150
|
S.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${D}"`);
|
|
6151
6151
|
break;
|
|
@@ -6154,10 +6154,10 @@ class ke {
|
|
|
6154
6154
|
o.startTimeOffset = Ps(D);
|
|
6155
6155
|
break;
|
|
6156
6156
|
case "MAP": {
|
|
6157
|
-
const
|
|
6158
|
-
if (ve(o,
|
|
6157
|
+
const w = new ne(D);
|
|
6158
|
+
if (ve(o, w, ["BYTERANGE", "URI"]), g.duration) {
|
|
6159
6159
|
const $ = new ai(r, t);
|
|
6160
|
-
Ms($,
|
|
6160
|
+
Ms($, w, i, T), c = $, g.initSegment = c, c.rawProgramDateTime && !g.rawProgramDateTime && (g.rawProgramDateTime = c.rawProgramDateTime);
|
|
6161
6161
|
} else {
|
|
6162
6162
|
const $ = g.byteRangeEndOffset;
|
|
6163
6163
|
if ($) {
|
|
@@ -6165,37 +6165,37 @@ class ke {
|
|
|
6165
6165
|
E = `${$ - O}@${O}`;
|
|
6166
6166
|
} else
|
|
6167
6167
|
E = null;
|
|
6168
|
-
Ms(g,
|
|
6168
|
+
Ms(g, w, i, T), c = g, L = !0;
|
|
6169
6169
|
}
|
|
6170
6170
|
break;
|
|
6171
6171
|
}
|
|
6172
6172
|
case "SERVER-CONTROL": {
|
|
6173
|
-
const
|
|
6174
|
-
o.canBlockReload =
|
|
6173
|
+
const w = new ne(D);
|
|
6174
|
+
o.canBlockReload = w.bool("CAN-BLOCK-RELOAD"), o.canSkipUntil = w.optionalFloat("CAN-SKIP-UNTIL", 0), o.canSkipDateRanges = o.canSkipUntil > 0 && w.bool("CAN-SKIP-DATERANGES"), o.partHoldBack = w.optionalFloat("PART-HOLD-BACK", 0), o.holdBack = w.optionalFloat("HOLD-BACK", 0);
|
|
6175
6175
|
break;
|
|
6176
6176
|
}
|
|
6177
6177
|
case "PART-INF": {
|
|
6178
|
-
const
|
|
6179
|
-
o.partTarget =
|
|
6178
|
+
const w = new ne(D);
|
|
6179
|
+
o.partTarget = w.decimalFloatingPoint("PART-TARGET");
|
|
6180
6180
|
break;
|
|
6181
6181
|
}
|
|
6182
6182
|
case "PART": {
|
|
6183
|
-
let
|
|
6184
|
-
|
|
6185
|
-
const $ = h > 0 ?
|
|
6183
|
+
let w = o.partList;
|
|
6184
|
+
w || (w = o.partList = []);
|
|
6185
|
+
const $ = h > 0 ? w[w.length - 1] : void 0, O = h++, U = new ne(D);
|
|
6186
6186
|
ve(o, U, ["BYTERANGE", "URI"]);
|
|
6187
6187
|
const F = new uo(U, g, t, O, $);
|
|
6188
|
-
|
|
6188
|
+
w.push(F), g.duration += F.duration;
|
|
6189
6189
|
break;
|
|
6190
6190
|
}
|
|
6191
6191
|
case "PRELOAD-HINT": {
|
|
6192
|
-
const
|
|
6193
|
-
ve(o,
|
|
6192
|
+
const w = new ne(D);
|
|
6193
|
+
ve(o, w, ["URI"]), o.preloadHint = w;
|
|
6194
6194
|
break;
|
|
6195
6195
|
}
|
|
6196
6196
|
case "RENDITION-REPORT": {
|
|
6197
|
-
const
|
|
6198
|
-
ve(o,
|
|
6197
|
+
const w = new ne(D);
|
|
6198
|
+
ve(o, w, ["URI"]), o.renditionReports = o.renditionReports || [], o.renditionReports.push(w);
|
|
6199
6199
|
break;
|
|
6200
6200
|
}
|
|
6201
6201
|
default:
|
|
@@ -8177,8 +8177,8 @@ class kl {
|
|
|
8177
8177
|
const C = R ? R * 8 : T;
|
|
8178
8178
|
let b = Number.POSITIVE_INFINITY, D;
|
|
8179
8179
|
for (D = t.level - 1; D > h; D--) {
|
|
8180
|
-
const
|
|
8181
|
-
if (b = this.getTimeToLoadFrag(f / 1e3, C, c *
|
|
8180
|
+
const w = x[D].maxBitrate;
|
|
8181
|
+
if (b = this.getTimeToLoadFrag(f / 1e3, C, c * w, !x[D].details), b < g)
|
|
8182
8182
|
break;
|
|
8183
8183
|
}
|
|
8184
8184
|
if (b >= B || b > c * 10)
|
|
@@ -8416,7 +8416,7 @@ class kl {
|
|
|
8416
8416
|
E = F, k = Q ? V[V.length - 1] : V[0], R = H, e = Math.max(e, M), S.log(`[abr] picked start tier ${JSON.stringify(U)}`);
|
|
8417
8417
|
} else
|
|
8418
8418
|
E = T == null ? void 0 : T.codecSet, k = T == null ? void 0 : T.videoRange;
|
|
8419
|
-
const D = f ? f.duration : d ? d.duration : 0, P = this.bwEstimator.getEstimateTTFB() / 1e3,
|
|
8419
|
+
const D = f ? f.duration : d ? d.duration : 0, P = this.bwEstimator.getEstimateTTFB() / 1e3, w = [];
|
|
8420
8420
|
for (let O = i; O >= t; O--) {
|
|
8421
8421
|
var $;
|
|
8422
8422
|
const U = m[O], F = O > h;
|
|
@@ -8433,7 +8433,7 @@ class kl {
|
|
|
8433
8433
|
})) : U.supportedResult = Dn;
|
|
8434
8434
|
}
|
|
8435
8435
|
if (E && U.codecSet !== E || k && U.videoRange !== k || F && R > U.frameRate || !F && R > 0 && R < U.frameRate || U.supportedResult && !(($ = U.supportedResult.decodingInfoResults) != null && $[0].smooth)) {
|
|
8436
|
-
|
|
8436
|
+
w.push(O);
|
|
8437
8437
|
continue;
|
|
8438
8438
|
}
|
|
8439
8439
|
const V = U.details, H = (f ? V == null ? void 0 : V.partTarget : V == null ? void 0 : V.averagetargetduration) || D;
|
|
@@ -8449,7 +8449,7 @@ class kl {
|
|
|
8449
8449
|
(Z <= P || !W(Z) || x && !this.bitrateTestDelay || Z < c)
|
|
8450
8450
|
) {
|
|
8451
8451
|
const ae = this.forcedAutoLevel;
|
|
8452
|
-
return O !== y && (ae === -1 || ae !== y) && (
|
|
8452
|
+
return O !== y && (ae === -1 || ae !== y) && (w.length && S.trace(`[abr] Skipped level(s) ${w.join(",")} of ${i} max with CODECS and VIDEO-RANGE:"${m[w[0]].codecs}" ${m[w[0]].videoRange}; not compatible with "${T.codecs}" ${k}`), S.info(`[abr] switch candidate:${h}->${O} adjustedbw(${Math.round(M)})-bitrate=${Math.round(M - Q)} ttfb:${P.toFixed(1)} avgDuration:${H.toFixed(1)} maxFetchDuration:${c.toFixed(1)} fetchDuration:${Z.toFixed(1)} firstSelection:${L} codecSet:${E} videoRange:${k} hls.loadLevel:${y}`)), L && (this.firstSelection = O), O;
|
|
8453
8453
|
}
|
|
8454
8454
|
}
|
|
8455
8455
|
return -1;
|
|
@@ -9238,12 +9238,12 @@ class Kl {
|
|
|
9238
9238
|
const r = this.keySize + 6, n = this.invKeySchedule, a = this.invSBox, o = this.invSubMix, l = o[0], c = o[1], u = o[2], h = o[3], d = this.uint8ArrayToUint32Array_(i);
|
|
9239
9239
|
let f = d[0], m = d[1], g = d[2], y = d[3];
|
|
9240
9240
|
const v = new Int32Array(e), T = new Int32Array(v.length);
|
|
9241
|
-
let x, L, E, k, R, B, C, b, D, P,
|
|
9241
|
+
let x, L, E, k, R, B, C, b, D, P, w, $, O, U;
|
|
9242
9242
|
const F = this.networkToHostOrderSwap;
|
|
9243
9243
|
for (; t < v.length; ) {
|
|
9244
|
-
for (D = F(v[t]), P = F(v[t + 1]),
|
|
9244
|
+
for (D = F(v[t]), P = F(v[t + 1]), w = F(v[t + 2]), $ = F(v[t + 3]), R = D ^ n[0], B = $ ^ n[1], C = w ^ n[2], b = P ^ n[3], O = 4, U = 1; U < r; U++)
|
|
9245
9245
|
x = l[R >>> 24] ^ c[B >> 16 & 255] ^ u[C >> 8 & 255] ^ h[b & 255] ^ n[O], L = l[B >>> 24] ^ c[C >> 16 & 255] ^ u[b >> 8 & 255] ^ h[R & 255] ^ n[O + 1], E = l[C >>> 24] ^ c[b >> 16 & 255] ^ u[R >> 8 & 255] ^ h[B & 255] ^ n[O + 2], k = l[b >>> 24] ^ c[R >> 16 & 255] ^ u[B >> 8 & 255] ^ h[C & 255] ^ n[O + 3], R = x, B = L, C = E, b = k, O = O + 4;
|
|
9246
|
-
x = a[R >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[C >> 8 & 255] << 8 ^ a[b & 255] ^ n[O], L = a[B >>> 24] << 24 ^ a[C >> 16 & 255] << 16 ^ a[b >> 8 & 255] << 8 ^ a[R & 255] ^ n[O + 1], E = a[C >>> 24] << 24 ^ a[b >> 16 & 255] << 16 ^ a[R >> 8 & 255] << 8 ^ a[B & 255] ^ n[O + 2], k = a[b >>> 24] << 24 ^ a[R >> 16 & 255] << 16 ^ a[B >> 8 & 255] << 8 ^ a[C & 255] ^ n[O + 3], T[t] = F(x ^ f), T[t + 1] = F(k ^ m), T[t + 2] = F(E ^ g), T[t + 3] = F(L ^ y), f = D, m = P, g =
|
|
9246
|
+
x = a[R >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[C >> 8 & 255] << 8 ^ a[b & 255] ^ n[O], L = a[B >>> 24] << 24 ^ a[C >> 16 & 255] << 16 ^ a[b >> 8 & 255] << 8 ^ a[R & 255] ^ n[O + 1], E = a[C >>> 24] << 24 ^ a[b >> 16 & 255] << 16 ^ a[R >> 8 & 255] << 8 ^ a[B & 255] ^ n[O + 2], k = a[b >>> 24] << 24 ^ a[R >> 16 & 255] << 16 ^ a[B >> 8 & 255] << 8 ^ a[C & 255] ^ n[O + 3], T[t] = F(x ^ f), T[t + 1] = F(k ^ m), T[t + 2] = F(E ^ g), T[t + 3] = F(L ^ y), f = D, m = P, g = w, y = $, t = t + 4;
|
|
9247
9247
|
}
|
|
9248
9248
|
return T.buffer;
|
|
9249
9249
|
}
|
|
@@ -12549,12 +12549,12 @@ class Mt {
|
|
|
12549
12549
|
} else
|
|
12550
12550
|
h = this.generateIS(e, t, n, a);
|
|
12551
12551
|
const D = this.isVideoContiguous;
|
|
12552
|
-
let P = -1,
|
|
12552
|
+
let P = -1, w;
|
|
12553
12553
|
if (E && (P = bc(t.samples), !D && this.config.forceKeyFrameOnDiscontinuity))
|
|
12554
12554
|
if (m = !0, P > 0) {
|
|
12555
12555
|
S.warn(`[mp4-remuxer]: Dropped ${P} out of ${x} video samples due to a missing keyframe`);
|
|
12556
12556
|
const $ = this.getVideoStartPts(t.samples);
|
|
12557
|
-
t.samples = t.samples.slice(P), t.dropped += P, y += (t.samples[0].pts - $) / t.inputTimeScale,
|
|
12557
|
+
t.samples = t.samples.slice(P), t.dropped += P, y += (t.samples[0].pts - $) / t.inputTimeScale, w = y;
|
|
12558
12558
|
} else
|
|
12559
12559
|
P === -1 && (S.warn(`[mp4-remuxer]: No keyframe found out of ${x} video samples`), m = !1);
|
|
12560
12560
|
if (this.ISGenerated) {
|
|
@@ -12569,7 +12569,7 @@ class Mt {
|
|
|
12569
12569
|
}
|
|
12570
12570
|
} else
|
|
12571
12571
|
E && (c = this.remuxVideo(t, y, D, 0));
|
|
12572
|
-
c && (c.firstKeyFrame = P, c.independent = P !== -1, c.firstKeyFramePTS =
|
|
12572
|
+
c && (c.firstKeyFrame = P, c.independent = P !== -1, c.firstKeyFramePTS = w);
|
|
12573
12573
|
}
|
|
12574
12574
|
}
|
|
12575
12575
|
return this.ISGenerated && this._initPTS && this._initDTS && (i.samples.length && (f = Vn(i, n, this._initPTS, this._initDTS)), r.samples.length && (d = Kn(r, n, this._initPTS))), {
|
|
@@ -12695,7 +12695,7 @@ class Mt {
|
|
|
12695
12695
|
}
|
|
12696
12696
|
const b = new DataView(C.buffer);
|
|
12697
12697
|
b.setUint32(0, B), C.set(A.types.mdat, 4);
|
|
12698
|
-
let D = !1, P = Number.POSITIVE_INFINITY,
|
|
12698
|
+
let D = !1, P = Number.POSITIVE_INFINITY, w = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY, O = Number.NEGATIVE_INFINITY;
|
|
12699
12699
|
for (let H = 0; H < l; H++) {
|
|
12700
12700
|
const M = a[H], Q = M.units;
|
|
12701
12701
|
let Z = 0;
|
|
@@ -12715,7 +12715,7 @@ class Mt {
|
|
|
12715
12715
|
d = fe;
|
|
12716
12716
|
}
|
|
12717
12717
|
const ae = Math.round(M.pts - M.dts);
|
|
12718
|
-
P = Math.min(P, d), $ = Math.max($, d),
|
|
12718
|
+
P = Math.min(P, d), $ = Math.max($, d), w = Math.min(w, ee), O = Math.max(O, ee), o.push(new er(M.key, d, Z, ae));
|
|
12719
12719
|
}
|
|
12720
12720
|
if (o.length) {
|
|
12721
12721
|
if (st) {
|
|
@@ -12723,7 +12723,7 @@ class Mt {
|
|
|
12723
12723
|
const H = o[0].flags;
|
|
12724
12724
|
H.dependsOn = 2, H.isNonSync = 0;
|
|
12725
12725
|
}
|
|
12726
|
-
} else if (yi && O -
|
|
12726
|
+
} else if (yi && O - w < $ - P && L / $ < 0.025 && o[0].cts === 0) {
|
|
12727
12727
|
S.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");
|
|
12728
12728
|
let H = f;
|
|
12729
12729
|
for (let M = 0, Q = o.length; M < Q; M++) {
|
|
@@ -12837,13 +12837,13 @@ class Mt {
|
|
|
12837
12837
|
samples: f
|
|
12838
12838
|
}));
|
|
12839
12839
|
e.samples = [];
|
|
12840
|
-
const P = L / a,
|
|
12840
|
+
const P = L / a, w = v / a, O = {
|
|
12841
12841
|
data1: D,
|
|
12842
12842
|
data2: k,
|
|
12843
12843
|
startPTS: P,
|
|
12844
|
-
endPTS:
|
|
12844
|
+
endPTS: w,
|
|
12845
12845
|
startDTS: P,
|
|
12846
|
-
endDTS:
|
|
12846
|
+
endDTS: w,
|
|
12847
12847
|
type: "audio",
|
|
12848
12848
|
hasAudio: !0,
|
|
12849
12849
|
hasVideo: !1,
|
|
@@ -21463,7 +21463,7 @@ var Th = function() {
|
|
|
21463
21463
|
null
|
|
21464
21464
|
);
|
|
21465
21465
|
const bh = Sh.exports, Zt = (s) => {
|
|
21466
|
-
const e =
|
|
21466
|
+
const e = I.utcFormat("%_d")(s), i = {
|
|
21467
21467
|
1: "st",
|
|
21468
21468
|
2: "nd",
|
|
21469
21469
|
3: "rd"
|
|
@@ -21471,23 +21471,23 @@ const bh = Sh.exports, Zt = (s) => {
|
|
|
21471
21471
|
return `${e}${i}`;
|
|
21472
21472
|
}, Ar = (s) => new Date(
|
|
21473
21473
|
Date.UTC(s.getUTCFullYear(), s.getUTCMonth(), s.getUTCDate() + 1)
|
|
21474
|
-
).getUTCDate() === 1 ? "" :
|
|
21475
|
-
const e =
|
|
21474
|
+
).getUTCDate() === 1 ? "" : I.utcFormat("%-d")(s), gt = (s) => ["0", " 0", "00"].includes(I.utcFormat("%H")(s)) ? "" : `${I.utcFormat("%H")(s)}h`, ze = (s) => {
|
|
21475
|
+
const e = I.utcFormat("%H:%M")(s);
|
|
21476
21476
|
return e === "00:00" ? "" : e;
|
|
21477
|
-
}, _i = (s) =>
|
|
21478
|
-
const e = ze(s), t = Zt(s), i =
|
|
21477
|
+
}, _i = (s) => I.utcFormat("%M:%S")(s), Lr = (s) => `${I.utcFormat("%Hh%Mm")(s)}`, Yi = (s) => {
|
|
21478
|
+
const e = ze(s), t = Zt(s), i = I.utcFormat("%B")(s);
|
|
21479
21479
|
return e || `${i} ${t}`;
|
|
21480
21480
|
}, Ii = (s) => {
|
|
21481
|
-
const e = ze(s), t = Number.parseInt(
|
|
21481
|
+
const e = ze(s), t = Number.parseInt(I.utcFormat("%H")(s)), i = Zt(s), r = I.utcFormat("%B")(s);
|
|
21482
21482
|
return e && t % 6 === 0 ? `${r} ${i} ${e}` : Yi(s);
|
|
21483
21483
|
}, pt = (s) => (e) => {
|
|
21484
|
-
const t =
|
|
21485
|
-
return !(
|
|
21484
|
+
const t = I.utcFormat("%H")(e);
|
|
21485
|
+
return !(I.utcFormat("%M")(e) === "00" && Number.parseInt(t) % s === 0);
|
|
21486
21486
|
}, wi = (s) => (e) => {
|
|
21487
|
-
const t =
|
|
21487
|
+
const t = I.utcFormat("%M")(e);
|
|
21488
21488
|
return Number.parseInt(t) % s !== 0;
|
|
21489
21489
|
}, Rr = (s) => (e) => {
|
|
21490
|
-
const t =
|
|
21490
|
+
const t = I.utcFormat("%M")(e), i = I.utcFormat("%S")(e);
|
|
21491
21491
|
return Number.parseInt(t) % s !== 0 && Number.parseInt(i) === 0;
|
|
21492
21492
|
}, K = {
|
|
21493
21493
|
_10_seconds: 25e-6,
|
|
@@ -21521,300 +21521,300 @@ const Ah = {
|
|
|
21521
21521
|
[kt.overview]: [
|
|
21522
21522
|
{
|
|
21523
21523
|
precision: K._30_seconds,
|
|
21524
|
-
interval:
|
|
21524
|
+
interval: I.utcMinute.every(2),
|
|
21525
21525
|
format: Lr
|
|
21526
21526
|
},
|
|
21527
21527
|
{
|
|
21528
21528
|
precision: K._1_minute,
|
|
21529
|
-
interval:
|
|
21529
|
+
interval: I.utcMinute.every(5),
|
|
21530
21530
|
format: Lr
|
|
21531
21531
|
},
|
|
21532
21532
|
{
|
|
21533
21533
|
precision: K._2_minutes,
|
|
21534
|
-
interval:
|
|
21534
|
+
interval: I.utcMinute.every(10),
|
|
21535
21535
|
format: Yi
|
|
21536
21536
|
},
|
|
21537
21537
|
{
|
|
21538
21538
|
precision: K._5_minutes,
|
|
21539
|
-
interval:
|
|
21539
|
+
interval: I.utcMinute.every(20),
|
|
21540
21540
|
format: Ii
|
|
21541
21541
|
},
|
|
21542
21542
|
{
|
|
21543
21543
|
precision: K._15_minutes,
|
|
21544
|
-
interval:
|
|
21544
|
+
interval: I.utcHour,
|
|
21545
21545
|
format: Ii
|
|
21546
21546
|
},
|
|
21547
21547
|
{
|
|
21548
21548
|
precision: K._30_minutes,
|
|
21549
|
-
interval:
|
|
21549
|
+
interval: I.utcHour.every(2),
|
|
21550
21550
|
format: Ii
|
|
21551
21551
|
},
|
|
21552
21552
|
{
|
|
21553
21553
|
precision: K._2_hours,
|
|
21554
|
-
interval:
|
|
21554
|
+
interval: I.utcHour.every(6),
|
|
21555
21555
|
format: (s) => {
|
|
21556
|
-
const e = ze(s), t = Zt(s), i =
|
|
21556
|
+
const e = ze(s), t = Zt(s), i = I.utcFormat("%B")(s);
|
|
21557
21557
|
return e || `${i} ${t}`;
|
|
21558
21558
|
}
|
|
21559
21559
|
},
|
|
21560
21560
|
{
|
|
21561
21561
|
precision: K._3_hours,
|
|
21562
|
-
interval:
|
|
21562
|
+
interval: I.utcHour.every(12),
|
|
21563
21563
|
format: Yi
|
|
21564
21564
|
},
|
|
21565
21565
|
{
|
|
21566
21566
|
precision: K._6_hours,
|
|
21567
|
-
interval:
|
|
21567
|
+
interval: I.utcHour.every(24),
|
|
21568
21568
|
format: (s) => {
|
|
21569
21569
|
const e = Zt(s);
|
|
21570
|
-
return `${
|
|
21570
|
+
return `${I.utcFormat("%b")(s)} ${e}`;
|
|
21571
21571
|
}
|
|
21572
21572
|
},
|
|
21573
21573
|
{
|
|
21574
21574
|
precision: K._2_days,
|
|
21575
|
-
interval:
|
|
21575
|
+
interval: I.utcMonth,
|
|
21576
21576
|
format: (s) => {
|
|
21577
21577
|
const t = s.getUTCMonth() === 0 && s.getUTCDate() === 1 ? "%Y – %B" : "%B";
|
|
21578
|
-
return
|
|
21578
|
+
return I.utcFormat(t)(s);
|
|
21579
21579
|
}
|
|
21580
21580
|
},
|
|
21581
21581
|
{
|
|
21582
21582
|
precision: K._2_year,
|
|
21583
|
-
interval:
|
|
21583
|
+
interval: I.utcYear.every(2),
|
|
21584
21584
|
format: "%Y"
|
|
21585
21585
|
},
|
|
21586
21586
|
{
|
|
21587
21587
|
precision: K._5_years,
|
|
21588
|
-
interval:
|
|
21588
|
+
interval: I.utcYear.every(5),
|
|
21589
21589
|
format: "%Y"
|
|
21590
21590
|
},
|
|
21591
21591
|
{
|
|
21592
21592
|
precision: K._20_years,
|
|
21593
|
-
interval:
|
|
21593
|
+
interval: I.utcYear.every(20),
|
|
21594
21594
|
format: "%Y"
|
|
21595
21595
|
},
|
|
21596
21596
|
{
|
|
21597
21597
|
precision: K._75_years,
|
|
21598
|
-
interval:
|
|
21598
|
+
interval: I.utcYear.every(75),
|
|
21599
21599
|
format: "%Y"
|
|
21600
21600
|
},
|
|
21601
21601
|
{
|
|
21602
21602
|
precision: K._300_years,
|
|
21603
|
-
interval:
|
|
21603
|
+
interval: I.utcYear.every(300),
|
|
21604
21604
|
format: "%Y"
|
|
21605
21605
|
},
|
|
21606
21606
|
{
|
|
21607
21607
|
precision: K.infinity,
|
|
21608
|
-
interval:
|
|
21608
|
+
interval: I.utcMonth.every(12),
|
|
21609
21609
|
format: "%Y"
|
|
21610
21610
|
}
|
|
21611
21611
|
],
|
|
21612
21612
|
[kt.detailed]: [
|
|
21613
21613
|
{
|
|
21614
21614
|
precision: K._10_seconds,
|
|
21615
|
-
interval:
|
|
21615
|
+
interval: I.utcSecond.every(10),
|
|
21616
21616
|
format: _i
|
|
21617
21617
|
},
|
|
21618
21618
|
{
|
|
21619
21619
|
precision: K._20_seconds,
|
|
21620
|
-
interval: (Dr =
|
|
21620
|
+
interval: (Dr = I.utcSecond.every(20)) == null ? void 0 : Dr.filter(Rr(2)),
|
|
21621
21621
|
format: _i
|
|
21622
21622
|
},
|
|
21623
21623
|
{
|
|
21624
21624
|
precision: K._30_seconds,
|
|
21625
|
-
interval: (_r =
|
|
21625
|
+
interval: (_r = I.utcSecond.every(30)) == null ? void 0 : _r.filter(Rr(2)),
|
|
21626
21626
|
format: _i
|
|
21627
21627
|
},
|
|
21628
21628
|
{
|
|
21629
21629
|
precision: K._1_minute,
|
|
21630
|
-
interval:
|
|
21630
|
+
interval: I.utcMinute.filter(wi(5)),
|
|
21631
21631
|
format: ze
|
|
21632
21632
|
},
|
|
21633
21633
|
{
|
|
21634
21634
|
precision: K._2_minutes,
|
|
21635
|
-
interval: (Ir =
|
|
21635
|
+
interval: (Ir = I.utcMinute.every(2)) == null ? void 0 : Ir.filter(wi(10)),
|
|
21636
21636
|
format: ze
|
|
21637
21637
|
},
|
|
21638
21638
|
{
|
|
21639
21639
|
precision: K._5_minutes,
|
|
21640
|
-
interval: (wr =
|
|
21640
|
+
interval: (wr = I.utcMinute.every(5)) == null ? void 0 : wr.filter(wi(20)),
|
|
21641
21641
|
format: ze
|
|
21642
21642
|
},
|
|
21643
21643
|
{
|
|
21644
21644
|
precision: K._15_minutes,
|
|
21645
|
-
interval: (kr =
|
|
21645
|
+
interval: (kr = I.utcMinute.every(15)) == null ? void 0 : kr.filter(pt(1)),
|
|
21646
21646
|
format: ze
|
|
21647
21647
|
},
|
|
21648
21648
|
{
|
|
21649
21649
|
precision: K._30_minutes,
|
|
21650
|
-
interval: (Pr =
|
|
21650
|
+
interval: (Pr = I.utcMinute.every(30)) == null ? void 0 : Pr.filter(pt(2)),
|
|
21651
21651
|
format: ze
|
|
21652
21652
|
},
|
|
21653
21653
|
{
|
|
21654
21654
|
precision: K._1_hour,
|
|
21655
|
-
interval:
|
|
21655
|
+
interval: I.utcHour.filter(pt(6)),
|
|
21656
21656
|
format: gt
|
|
21657
21657
|
},
|
|
21658
21658
|
{
|
|
21659
21659
|
precision: K._2_hours,
|
|
21660
|
-
interval: (Or =
|
|
21660
|
+
interval: (Or = I.utcHour.every(2)) == null ? void 0 : Or.filter(pt(6)),
|
|
21661
21661
|
format: gt
|
|
21662
21662
|
},
|
|
21663
21663
|
{
|
|
21664
21664
|
precision: K._3_hours,
|
|
21665
|
-
interval: (Fr =
|
|
21665
|
+
interval: (Fr = I.utcHour.every(3)) == null ? void 0 : Fr.filter(pt(12)),
|
|
21666
21666
|
format: gt
|
|
21667
21667
|
},
|
|
21668
21668
|
{
|
|
21669
21669
|
precision: K._4_hours,
|
|
21670
|
-
interval:
|
|
21670
|
+
interval: I.utcHour.every(4),
|
|
21671
21671
|
format: gt
|
|
21672
21672
|
},
|
|
21673
21673
|
{
|
|
21674
21674
|
precision: K._6_hours,
|
|
21675
|
-
interval:
|
|
21675
|
+
interval: I.utcHour.every(6),
|
|
21676
21676
|
format: gt
|
|
21677
21677
|
},
|
|
21678
21678
|
{
|
|
21679
21679
|
precision: K._1_day,
|
|
21680
|
-
interval:
|
|
21680
|
+
interval: I.utcDay,
|
|
21681
21681
|
format: Ar
|
|
21682
21682
|
},
|
|
21683
21683
|
{
|
|
21684
21684
|
precision: K._2_days,
|
|
21685
|
-
interval:
|
|
21685
|
+
interval: I.utcDay.every(2),
|
|
21686
21686
|
format: Ar
|
|
21687
21687
|
},
|
|
21688
21688
|
{
|
|
21689
21689
|
precision: K._1_month,
|
|
21690
|
-
interval:
|
|
21690
|
+
interval: I.utcMonth,
|
|
21691
21691
|
format: "%B"
|
|
21692
21692
|
},
|
|
21693
21693
|
{
|
|
21694
21694
|
precision: K._1_month_abbr,
|
|
21695
|
-
interval:
|
|
21695
|
+
interval: I.utcMonth,
|
|
21696
21696
|
format: "%b"
|
|
21697
21697
|
},
|
|
21698
21698
|
{
|
|
21699
21699
|
precision: K._1_month_letter,
|
|
21700
|
-
interval:
|
|
21701
|
-
format: (s) =>
|
|
21700
|
+
interval: I.utcMonth,
|
|
21701
|
+
format: (s) => I.utcFormat("%B")(s).charAt(0)
|
|
21702
21702
|
},
|
|
21703
21703
|
{
|
|
21704
21704
|
precision: K._3_months,
|
|
21705
|
-
interval:
|
|
21705
|
+
interval: I.utcMonth.every(3),
|
|
21706
21706
|
format: "Q%q"
|
|
21707
21707
|
},
|
|
21708
21708
|
{
|
|
21709
21709
|
precision: K._2_year,
|
|
21710
|
-
interval:
|
|
21710
|
+
interval: I.utcMonth.every(6),
|
|
21711
21711
|
format: "%Y"
|
|
21712
21712
|
},
|
|
21713
21713
|
{
|
|
21714
21714
|
precision: K._5_years,
|
|
21715
|
-
interval:
|
|
21715
|
+
interval: I.utcYear.every(2),
|
|
21716
21716
|
format: "%Y"
|
|
21717
21717
|
},
|
|
21718
21718
|
{
|
|
21719
21719
|
precision: K._20_years,
|
|
21720
|
-
interval:
|
|
21720
|
+
interval: I.utcYear.every(4),
|
|
21721
21721
|
format: "%Y"
|
|
21722
21722
|
},
|
|
21723
21723
|
{
|
|
21724
21724
|
precision: K._75_years,
|
|
21725
|
-
interval:
|
|
21725
|
+
interval: I.utcYear.every(25),
|
|
21726
21726
|
format: "%Y"
|
|
21727
21727
|
},
|
|
21728
21728
|
{
|
|
21729
21729
|
precision: K._300_years,
|
|
21730
|
-
interval:
|
|
21730
|
+
interval: I.utcYear.every(100),
|
|
21731
21731
|
format: "%Y"
|
|
21732
21732
|
},
|
|
21733
21733
|
{
|
|
21734
21734
|
precision: K.infinity,
|
|
21735
|
-
interval:
|
|
21735
|
+
interval: I.utcYear.every(500),
|
|
21736
21736
|
format: ""
|
|
21737
21737
|
}
|
|
21738
21738
|
],
|
|
21739
21739
|
[kt.detailedBackground]: [
|
|
21740
21740
|
{
|
|
21741
21741
|
precision: K._10_seconds,
|
|
21742
|
-
interval:
|
|
21742
|
+
interval: I.utcSecond,
|
|
21743
21743
|
format: ""
|
|
21744
21744
|
},
|
|
21745
21745
|
{
|
|
21746
21746
|
precision: K._20_seconds,
|
|
21747
|
-
interval:
|
|
21747
|
+
interval: I.utcSecond.every(5),
|
|
21748
21748
|
format: ""
|
|
21749
21749
|
},
|
|
21750
21750
|
{
|
|
21751
21751
|
precision: K._30_seconds,
|
|
21752
|
-
interval:
|
|
21752
|
+
interval: I.utcSecond.every(10),
|
|
21753
21753
|
format: ""
|
|
21754
21754
|
},
|
|
21755
21755
|
{
|
|
21756
21756
|
precision: K._1_minute,
|
|
21757
|
-
interval:
|
|
21757
|
+
interval: I.utcSecond.every(20),
|
|
21758
21758
|
format: ""
|
|
21759
21759
|
},
|
|
21760
21760
|
{
|
|
21761
21761
|
precision: K._2_minutes,
|
|
21762
|
-
interval:
|
|
21762
|
+
interval: I.utcSecond.every(30),
|
|
21763
21763
|
format: ""
|
|
21764
21764
|
},
|
|
21765
21765
|
{
|
|
21766
21766
|
precision: K._5_minutes,
|
|
21767
|
-
interval:
|
|
21767
|
+
interval: I.utcMinute,
|
|
21768
21768
|
format: ""
|
|
21769
21769
|
},
|
|
21770
21770
|
{
|
|
21771
21771
|
precision: K._15_minutes,
|
|
21772
|
-
interval:
|
|
21772
|
+
interval: I.utcMinute.every(3),
|
|
21773
21773
|
format: ""
|
|
21774
21774
|
},
|
|
21775
21775
|
{
|
|
21776
21776
|
precision: K._30_minutes,
|
|
21777
|
-
interval:
|
|
21777
|
+
interval: I.utcMinute.every(6),
|
|
21778
21778
|
format: ""
|
|
21779
21779
|
},
|
|
21780
21780
|
{
|
|
21781
21781
|
precision: K._1_hour,
|
|
21782
|
-
interval:
|
|
21782
|
+
interval: I.utcMinute.every(15),
|
|
21783
21783
|
format: ""
|
|
21784
21784
|
},
|
|
21785
21785
|
{
|
|
21786
21786
|
precision: K._2_hours,
|
|
21787
|
-
interval:
|
|
21787
|
+
interval: I.utcMinute.every(30),
|
|
21788
21788
|
format: ""
|
|
21789
21789
|
},
|
|
21790
21790
|
{
|
|
21791
21791
|
precision: K._3_hours,
|
|
21792
|
-
interval:
|
|
21792
|
+
interval: I.utcHour,
|
|
21793
21793
|
format: ""
|
|
21794
21794
|
},
|
|
21795
21795
|
{
|
|
21796
21796
|
precision: K._4_hours,
|
|
21797
|
-
interval:
|
|
21797
|
+
interval: I.utcHour,
|
|
21798
21798
|
format: ""
|
|
21799
21799
|
},
|
|
21800
21800
|
{
|
|
21801
21801
|
precision: K._6_hours,
|
|
21802
|
-
interval:
|
|
21802
|
+
interval: I.utcMinute.every(120),
|
|
21803
21803
|
format: ""
|
|
21804
21804
|
},
|
|
21805
21805
|
{
|
|
21806
21806
|
precision: K._1_day,
|
|
21807
|
-
interval:
|
|
21807
|
+
interval: I.utcHour.every(8),
|
|
21808
21808
|
format: ""
|
|
21809
21809
|
},
|
|
21810
21810
|
{
|
|
21811
21811
|
precision: K._2_days,
|
|
21812
|
-
interval:
|
|
21812
|
+
interval: I.utcHour.every(12),
|
|
21813
21813
|
format: ""
|
|
21814
21814
|
},
|
|
21815
21815
|
{
|
|
21816
21816
|
precision: K._1_month,
|
|
21817
|
-
interval:
|
|
21817
|
+
interval: I.utcDay.filter((s) => {
|
|
21818
21818
|
const e = s.getUTCDate(), t = new Date(
|
|
21819
21819
|
s.getUTCFullYear(),
|
|
21820
21820
|
s.getUTCMonth() + 1,
|
|
@@ -21826,7 +21826,7 @@ const Ah = {
|
|
|
21826
21826
|
},
|
|
21827
21827
|
{
|
|
21828
21828
|
precision: K._1_month_abbr,
|
|
21829
|
-
interval:
|
|
21829
|
+
interval: I.utcDay.filter((s) => {
|
|
21830
21830
|
const e = s.getUTCDate(), t = new Date(
|
|
21831
21831
|
s.getUTCFullYear(),
|
|
21832
21832
|
s.getUTCMonth() + 1,
|
|
@@ -21838,7 +21838,7 @@ const Ah = {
|
|
|
21838
21838
|
},
|
|
21839
21839
|
{
|
|
21840
21840
|
precision: K._1_month_letter,
|
|
21841
|
-
interval:
|
|
21841
|
+
interval: I.utcDay.filter((s) => {
|
|
21842
21842
|
const e = s.getUTCDate(), t = new Date(
|
|
21843
21843
|
s.getUTCFullYear(),
|
|
21844
21844
|
s.getUTCMonth() + 1,
|
|
@@ -21850,42 +21850,42 @@ const Ah = {
|
|
|
21850
21850
|
},
|
|
21851
21851
|
{
|
|
21852
21852
|
precision: K._3_months,
|
|
21853
|
-
interval:
|
|
21853
|
+
interval: I.utcMonth,
|
|
21854
21854
|
format: ""
|
|
21855
21855
|
},
|
|
21856
21856
|
{
|
|
21857
21857
|
precision: K._3_months,
|
|
21858
|
-
interval:
|
|
21858
|
+
interval: I.utcMonth,
|
|
21859
21859
|
format: ""
|
|
21860
21860
|
},
|
|
21861
21861
|
{
|
|
21862
21862
|
precision: K._2_year,
|
|
21863
|
-
interval:
|
|
21863
|
+
interval: I.utcYear,
|
|
21864
21864
|
format: ""
|
|
21865
21865
|
},
|
|
21866
21866
|
{
|
|
21867
21867
|
precision: K._5_years,
|
|
21868
|
-
interval:
|
|
21868
|
+
interval: I.utcYear.every(2),
|
|
21869
21869
|
format: ""
|
|
21870
21870
|
},
|
|
21871
21871
|
{
|
|
21872
21872
|
precision: K._20_years,
|
|
21873
|
-
interval:
|
|
21873
|
+
interval: I.utcYear.every(5),
|
|
21874
21874
|
format: ""
|
|
21875
21875
|
},
|
|
21876
21876
|
{
|
|
21877
21877
|
precision: K._75_years,
|
|
21878
|
-
interval:
|
|
21878
|
+
interval: I.utcYear.every(20),
|
|
21879
21879
|
format: ""
|
|
21880
21880
|
},
|
|
21881
21881
|
{
|
|
21882
21882
|
precision: K._300_years,
|
|
21883
|
-
interval:
|
|
21883
|
+
interval: I.utcYear.every(100),
|
|
21884
21884
|
format: ""
|
|
21885
21885
|
},
|
|
21886
21886
|
{
|
|
21887
21887
|
precision: K.infinity,
|
|
21888
|
-
interval:
|
|
21888
|
+
interval: I.utcYear.every(500),
|
|
21889
21889
|
format: ""
|
|
21890
21890
|
}
|
|
21891
21891
|
]
|
|
@@ -21993,9 +21993,9 @@ const Ah = {
|
|
|
21993
21993
|
};
|
|
21994
21994
|
},
|
|
21995
21995
|
positionStyles() {
|
|
21996
|
-
return
|
|
21996
|
+
return this.dot && this.isMouseOver ? {
|
|
21997
21997
|
transform: `translateY(calc(-100% - ${this.lineHeight}px))`
|
|
21998
|
-
};
|
|
21998
|
+
} : {};
|
|
21999
21999
|
},
|
|
22000
22000
|
styles() {
|
|
22001
22001
|
return {
|
|
@@ -22048,33 +22048,31 @@ const Ah = {
|
|
|
22048
22048
|
};
|
|
22049
22049
|
}
|
|
22050
22050
|
},
|
|
22051
|
-
|
|
22051
|
+
mounted() {
|
|
22052
22052
|
this.$nextTick(() => {
|
|
22053
|
-
this.isInitialRender = !1;
|
|
22053
|
+
this.dot || (this.onMilestoneMouseOver(), this.onMilestoneMouseLeave()), this.isInitialRender = !1;
|
|
22054
22054
|
});
|
|
22055
22055
|
},
|
|
22056
22056
|
methods: {
|
|
22057
|
-
onMilestoneMouseOver(s
|
|
22058
|
-
if (this.dot)
|
|
22059
|
-
this.isMouseOver = !0;
|
|
22057
|
+
onMilestoneMouseOver(s) {
|
|
22058
|
+
if (this.isMouseOver = !0, this.dot)
|
|
22060
22059
|
return;
|
|
22061
|
-
|
|
22062
|
-
|
|
22060
|
+
const e = (s == null ? void 0 : s.target) || this.$refs.container;
|
|
22061
|
+
if (!e)
|
|
22062
|
+
return;
|
|
22063
|
+
const t = e.children[0];
|
|
22063
22064
|
if (!t)
|
|
22064
22065
|
return;
|
|
22065
22066
|
const i = t.children[0];
|
|
22066
22067
|
if (!i)
|
|
22067
22068
|
return;
|
|
22068
|
-
const r = i.
|
|
22069
|
-
|
|
22070
|
-
return;
|
|
22071
|
-
const n = r.getBoundingClientRect(), a = t.dataset.timeoutId;
|
|
22072
|
-
a && (clearTimeout(Number(a)), t.dataset.timeoutId = ""), t.dataset.initialWidth || (t.dataset.initialWidth = t.style.width), t.dataset.initialHeight || (t.dataset.initialHeight = t.style.height), t.dataset.initialContentWidth || (t.dataset.initialContentWidth = String(n.width)), t.dataset.initialContentHeight || (t.dataset.initialContentHeight = String(n.height)), t.dataset.transitionStart = String(Date.now()), t.style.width = t.dataset.initialContentWidth + "px", t.style.height = t.dataset.initialContentHeight + "px", t.style.borderRadius = "0.5em", t.classList.add(Ye.milestoneHovered), i.style.opacity = "1", i.style.width = t.dataset.initialContentWidth + "px", i.style.height = t.dataset.initialContentHeight + "px";
|
|
22069
|
+
const r = i.getBoundingClientRect(), n = e.dataset.timeoutId;
|
|
22070
|
+
n && (clearTimeout(Number(n)), e.dataset.timeoutId = ""), e.dataset.initialWidth || (e.dataset.initialWidth = e.style.width), e.dataset.initialHeight || (e.dataset.initialHeight = e.style.height), e.dataset.initialContentWidth || (e.dataset.initialContentWidth = String(r.width)), e.dataset.initialContentHeight || (e.dataset.initialContentHeight = String(r.height)), e.dataset.transitionStart = String(Date.now()), e.style.width = e.dataset.initialContentWidth + "px", e.style.height = e.dataset.initialContentHeight + "px", e.style.borderRadius = "0.5em", e.classList.add(Ye.milestoneHovered), t.style.opacity = "1", t.style.width = e.dataset.initialContentWidth + "px", t.style.height = e.dataset.initialContentHeight + "px";
|
|
22073
22071
|
},
|
|
22074
22072
|
onMilestoneMouseMove() {
|
|
22075
22073
|
this.timeouts.forEach((s) => clearTimeout(s)), this.isMouseOver = !0;
|
|
22076
22074
|
},
|
|
22077
|
-
onMilestoneMouseLeave(s
|
|
22075
|
+
onMilestoneMouseLeave(s) {
|
|
22078
22076
|
if (this.dot) {
|
|
22079
22077
|
this.timeouts.push(
|
|
22080
22078
|
setTimeout(() => {
|
|
@@ -22083,18 +22081,18 @@ const Ah = {
|
|
|
22083
22081
|
);
|
|
22084
22082
|
return;
|
|
22085
22083
|
}
|
|
22086
|
-
const
|
|
22087
|
-
if (!
|
|
22084
|
+
const e = (s == null ? void 0 : s.target) || this.$refs.container;
|
|
22085
|
+
if (!e)
|
|
22088
22086
|
return;
|
|
22089
|
-
|
|
22090
|
-
const
|
|
22091
|
-
if (!
|
|
22087
|
+
e.style.width = e.dataset.initialWidth || "", e.style.height = e.dataset.initialHeight || "", e.style.borderRadius = "10em";
|
|
22088
|
+
const t = e.children[0];
|
|
22089
|
+
if (!t)
|
|
22092
22090
|
return;
|
|
22093
|
-
|
|
22094
|
-
const
|
|
22095
|
-
|
|
22096
|
-
},
|
|
22097
|
-
|
|
22091
|
+
t.style.width = "0", t.style.height = "0", t.style.opacity = "0";
|
|
22092
|
+
const i = Date.now() - Number(e.dataset.transitionStart), r = i > this.transitionDuration ? this.transitionDuration : i, n = setTimeout(() => {
|
|
22093
|
+
e.classList.remove(Ye.milestoneHovered), e.dataset.timeoutId = "";
|
|
22094
|
+
}, r);
|
|
22095
|
+
e.dataset.timeoutId = String(n), this.timeouts.push(n);
|
|
22098
22096
|
},
|
|
22099
22097
|
onMilestoneClick(s, e) {
|
|
22100
22098
|
this.$emit("milestone-click", e);
|
|
@@ -22103,11 +22101,12 @@ const Ah = {
|
|
|
22103
22101
|
});
|
|
22104
22102
|
var Ch = function() {
|
|
22105
22103
|
var e = this, t = e._self._c;
|
|
22106
|
-
return t("div", { class: {
|
|
22104
|
+
return t("div", { ref: "container", class: {
|
|
22107
22105
|
[e.milestoneClasses.milestone]: !0,
|
|
22108
|
-
[e.milestoneClasses.milestoneDot]: e.dot,
|
|
22109
22106
|
[e.milestoneClasses.milestoneBullet]: !e.dot,
|
|
22110
|
-
[e.milestoneClasses.
|
|
22107
|
+
[e.milestoneClasses.milestoneHovered]: e.isMouseOver && !e.dot,
|
|
22108
|
+
[e.milestoneClasses.milestoneDot]: e.dot,
|
|
22109
|
+
[e.milestoneClasses.milestoneDotHovered]: e.isMouseOver && e.dot
|
|
22111
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() {
|
|
22112
22111
|
return [t("span", [e._v(" " + e._s(e.milestone.text) + " ")])];
|
|
22113
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)]);
|
|
@@ -22255,6 +22254,14 @@ const Ih = _h.exports, G = {
|
|
|
22255
22254
|
type: String,
|
|
22256
22255
|
default: void 0
|
|
22257
22256
|
},
|
|
22257
|
+
minVisibleDate: {
|
|
22258
|
+
type: String,
|
|
22259
|
+
default: void 0
|
|
22260
|
+
},
|
|
22261
|
+
maxVisibleDate: {
|
|
22262
|
+
type: String,
|
|
22263
|
+
default: void 0
|
|
22264
|
+
},
|
|
22258
22265
|
cursorTimestamp: {
|
|
22259
22266
|
type: [String, void 0],
|
|
22260
22267
|
default: void 0
|
|
@@ -22351,7 +22358,8 @@ const Ih = _h.exports, G = {
|
|
|
22351
22358
|
markersDragBehavior: null,
|
|
22352
22359
|
initialMarkerDragMouseOffset: 0,
|
|
22353
22360
|
selectedMilestoneId: null,
|
|
22354
|
-
isInitialized: !1
|
|
22361
|
+
isInitialized: !1,
|
|
22362
|
+
lastValidTransform: I.zoomIdentity
|
|
22355
22363
|
};
|
|
22356
22364
|
},
|
|
22357
22365
|
computed: {
|
|
@@ -22561,7 +22569,7 @@ const Ih = _h.exports, G = {
|
|
|
22561
22569
|
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;
|
|
22562
22570
|
},
|
|
22563
22571
|
initOrUpdateSvg() {
|
|
22564
|
-
this.svg || (this.svg =
|
|
22572
|
+
this.svg || (this.svg = I.select(this.timeline).append("svg")), this.svg.attr("width", this.timeline.offsetWidth).attr("height", this.timelineHeight);
|
|
22565
22573
|
},
|
|
22566
22574
|
initDefs() {
|
|
22567
22575
|
const s = this.svg.append("defs");
|
|
@@ -22594,7 +22602,7 @@ const Ih = _h.exports, G = {
|
|
|
22594
22602
|
},
|
|
22595
22603
|
initTimeScale(s, e) {
|
|
22596
22604
|
const t = s || this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, i = e || this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate;
|
|
22597
|
-
this.timeScale =
|
|
22605
|
+
this.timeScale = I.scaleTime().domain([this.tzStringToDate(t), this.tzStringToDate(i)]).range([0, this.timeline.offsetWidth]), this.initialTimeScale = this.timeScale.copy(), this.updateCurrentTimeScaleDensity();
|
|
22598
22606
|
},
|
|
22599
22607
|
initXAxes() {
|
|
22600
22608
|
let s = 0;
|
|
@@ -22614,17 +22622,17 @@ const Ih = _h.exports, G = {
|
|
|
22614
22622
|
}
|
|
22615
22623
|
},
|
|
22616
22624
|
initYScale() {
|
|
22617
|
-
this.yScale =
|
|
22625
|
+
this.yScale = I.scaleLinear().range([this.chartHeight, 0]), this.updateYScaleDomain();
|
|
22618
22626
|
},
|
|
22619
22627
|
updateYScaleDomain() {
|
|
22620
22628
|
const [s, e] = this.timeScale.domain(), t = this.flattenedCounts.filter((r) => {
|
|
22621
22629
|
const n = new Date(r.startDate || r.timestamp), a = new Date(r.endDate || r.timestamp);
|
|
22622
22630
|
return a >= s && a <= e || n >= s && n <= e;
|
|
22623
|
-
}), i =
|
|
22631
|
+
}), i = I.max(t, (r) => r.count);
|
|
22624
22632
|
this.yScale.domain([0, i]);
|
|
22625
22633
|
},
|
|
22626
22634
|
initZoomBehavior() {
|
|
22627
|
-
this.disableZoom || (this.zoomBehavior =
|
|
22635
|
+
this.disableZoom || (this.zoomBehavior = I.zoom().on("zoom", this.handleZoom).scaleExtent([this.minZoom, this.maxZoom]), this.svg.call(this.zoomBehavior), this.svg.call(this.zoomBehavior.transform, I.zoomIdentity));
|
|
22628
22636
|
},
|
|
22629
22637
|
zoomToFitMarkers() {
|
|
22630
22638
|
const s = this.markers.map(
|
|
@@ -22644,10 +22652,10 @@ const Ih = _h.exports, G = {
|
|
|
22644
22652
|
);
|
|
22645
22653
|
},
|
|
22646
22654
|
translateMarkersIntoView(s, e, t) {
|
|
22647
|
-
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 =
|
|
22655
|
+
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());
|
|
22648
22656
|
this.svg.transition().duration(this.fitMarkersTransitionDuration / 2).call(
|
|
22649
22657
|
this.zoomBehavior.transform,
|
|
22650
|
-
|
|
22658
|
+
I.zoomIdentity.translate(l.x + o, l.y).scale(t)
|
|
22651
22659
|
);
|
|
22652
22660
|
},
|
|
22653
22661
|
initSelectedTimestampCursor() {
|
|
@@ -22711,14 +22719,14 @@ const Ih = _h.exports, G = {
|
|
|
22711
22719
|
},
|
|
22712
22720
|
createAxis(s) {
|
|
22713
22721
|
const e = this.xAxesConfig[s], t = this.getAxisTicksConfig(e);
|
|
22714
|
-
return
|
|
22722
|
+
return I.axisBottom(this.timeScale).ticks(t.interval).tickFormat(t.formatFn).tickSizeOuter(0).tickSizeInner(this.timelineHeight);
|
|
22715
22723
|
},
|
|
22716
22724
|
getAxisTicksConfig(s) {
|
|
22717
22725
|
const { interval: e, format: t } = s.find(
|
|
22718
22726
|
(r) => r.precision >= this.currentTimeScaleDensity && r.interval
|
|
22719
22727
|
);
|
|
22720
22728
|
return {
|
|
22721
|
-
formatFn: (r) => typeof t == "function" ? t(r) :
|
|
22729
|
+
formatFn: (r) => typeof t == "function" ? t(r) : I.timeFormat(t)(r),
|
|
22722
22730
|
interval: e
|
|
22723
22731
|
};
|
|
22724
22732
|
},
|
|
@@ -22733,12 +22741,12 @@ const Ih = _h.exports, G = {
|
|
|
22733
22741
|
return;
|
|
22734
22742
|
const s = this;
|
|
22735
22743
|
this.svg.selectAll(`.${G.labelBg}`).each(function() {
|
|
22736
|
-
|
|
22744
|
+
I.select(this).style("fill", s.dark ? "black" : "white");
|
|
22737
22745
|
}), this.svg.selectAll(`.${G.labelBgFill}`).each(function() {
|
|
22738
|
-
const e =
|
|
22746
|
+
const e = I.select(this), t = e.node().dataset.color;
|
|
22739
22747
|
e.style("fill", s.getLabelBackgroundColor(t)).style("stroke", s.getTextFillColor(t)).style("stroke-width", 0.25);
|
|
22740
22748
|
}), this.svg.selectAll(`.${G.labelText}`).each(function() {
|
|
22741
|
-
const e =
|
|
22749
|
+
const e = I.select(this), t = e.node().dataset.color;
|
|
22742
22750
|
e.style("fill", s.getTextFillColor(t));
|
|
22743
22751
|
});
|
|
22744
22752
|
},
|
|
@@ -22801,24 +22809,33 @@ const Ih = _h.exports, G = {
|
|
|
22801
22809
|
this.isHoveringEvent = !1, this.hoveredEvent = null, this.$emit("event-mouseout");
|
|
22802
22810
|
},
|
|
22803
22811
|
handleLabelMouseOver(s) {
|
|
22804
|
-
|
|
22812
|
+
I.selectAll(`.${G.lineGraphGroup}-${s}`).classed(
|
|
22805
22813
|
`${G.lineGraphGroup}--highlighted`,
|
|
22806
22814
|
!0
|
|
22807
|
-
),
|
|
22815
|
+
), I.selectAll(`.${G.lineGraphGroupLabel}`).classed(
|
|
22808
22816
|
`${G.lineGraphGroupLabel}--highlighted`,
|
|
22809
22817
|
!0
|
|
22810
22818
|
);
|
|
22811
22819
|
},
|
|
22812
22820
|
handleLabelMouseLeave(s) {
|
|
22813
|
-
|
|
22821
|
+
I.selectAll(`.${G.lineGraphGroup}-${s}`).classed(
|
|
22814
22822
|
`${G.lineGraphGroup}--highlighted`,
|
|
22815
22823
|
!1
|
|
22816
|
-
),
|
|
22824
|
+
), I.selectAll(`.${G.lineGraphGroupLabel}`).classed(
|
|
22817
22825
|
`${G.lineGraphGroupLabel}--highlighted`,
|
|
22818
22826
|
!1
|
|
22819
22827
|
);
|
|
22820
22828
|
},
|
|
22829
|
+
isZoomAllowed(s) {
|
|
22830
|
+
const e = this.initialTimeScale.copy(), t = s.transform.rescaleX(e).domain(), i = this.minVisibleDate ? this.tzStringToDate(this.minVisibleDate) : void 0, r = this.maxVisibleDate ? this.tzStringToDate(this.maxVisibleDate) : void 0;
|
|
22831
|
+
return (!i || t[0] >= i) && (!r || t[1] <= r);
|
|
22832
|
+
},
|
|
22821
22833
|
handleZoom(s) {
|
|
22834
|
+
if (!this.isZoomAllowed(s)) {
|
|
22835
|
+
s.sourceEvent.preventDefault(), this.svg.call(this.zoomBehavior.transform, this.lastValidTransform);
|
|
22836
|
+
return;
|
|
22837
|
+
}
|
|
22838
|
+
this.lastValidTransform = s.transform;
|
|
22822
22839
|
const e = s.transform.rescaleX(this.initialTimeScale);
|
|
22823
22840
|
this.timeScale.domain(e.domain()), this.updateCurrentTimeScaleDensity(), this.updateYScaleDomain();
|
|
22824
22841
|
const t = s.transform.k / this.lastTransform.k;
|
|
@@ -22831,10 +22848,10 @@ const Ih = _h.exports, G = {
|
|
|
22831
22848
|
this.updateEventsBars(), this.updateLineGraphs(), this.updateBarChart(), this.updateLineGraphHoverZones(), this.updateMilestonesPositions(), this.repositionSelectedTimestampCursor(), this.updateForbiddenIntervals(), this.updateMarkers(), this.emitVisibleInterval(Pt.zoom), this.curtains && this.emitCurtainChange();
|
|
22832
22849
|
},
|
|
22833
22850
|
panToTimestamp(s) {
|
|
22834
|
-
const e = this.tzStringToDate(s), t = this.timeScale(e), i =
|
|
22851
|
+
const e = this.tzStringToDate(s), t = this.timeScale(e), i = I.zoomTransform(this.svg.node()), r = i.x - t + this.timeline.offsetWidth / 2;
|
|
22835
22852
|
this.svg.transition().duration(this.panTransitionDuration).call(
|
|
22836
22853
|
this.zoomBehavior.transform,
|
|
22837
|
-
|
|
22854
|
+
I.zoomIdentity.translate(r, 0).scale(i.k)
|
|
22838
22855
|
), this.emitVisibleInterval(Pt.autoPan);
|
|
22839
22856
|
},
|
|
22840
22857
|
emitCurtainChange() {
|
|
@@ -22873,10 +22890,10 @@ const Ih = _h.exports, G = {
|
|
|
22873
22890
|
zoomToStartAndEndDates() {
|
|
22874
22891
|
const s = this.startDate || this.oldestEvent.timestamp || this.oldestEvent.startDate, e = this.endDate || this.latestEvent.timestamp || this.latestEvent.endDate, t = this.tzStringToDate(s), i = this.tzStringToDate(e);
|
|
22875
22892
|
this.initialTimeScale.domain([t, i]);
|
|
22876
|
-
const r =
|
|
22893
|
+
const r = I.zoomTransform(this.svg.node()), n = i.getTime() - t.getTime(), o = this.initialTimeScale.range().map((f) => this.initialTimeScale.invert(f)).reduce((f, m) => m.getTime() - f, 0) / n * r.k, c = -(this.initialTimeScale(t) * o), [u, h] = this.zoomBehavior.scaleExtent(), d = Math.max(u, Math.min(h, o));
|
|
22877
22894
|
this.svg.transition().duration(this.zoomToBoundariesTransitionDuration).call(
|
|
22878
22895
|
this.zoomBehavior.transform,
|
|
22879
|
-
|
|
22896
|
+
I.zoomIdentity.translate(c, 0).scale(d)
|
|
22880
22897
|
);
|
|
22881
22898
|
},
|
|
22882
22899
|
rescaleAxis(s, e) {
|
|
@@ -22887,7 +22904,7 @@ const Ih = _h.exports, G = {
|
|
|
22887
22904
|
},
|
|
22888
22905
|
translateTicksText(s) {
|
|
22889
22906
|
this.svg.select(`.${G.xAxis}-${s}`).selectAll(".tick text").each(function() {
|
|
22890
|
-
let e =
|
|
22907
|
+
let e = I.select(this), t = e.node().getBBox();
|
|
22891
22908
|
e.attr("x", t.height / 2).attr("y", 0).style("text-anchor", "start");
|
|
22892
22909
|
});
|
|
22893
22910
|
},
|
|
@@ -22910,7 +22927,7 @@ const Ih = _h.exports, G = {
|
|
|
22910
22927
|
},
|
|
22911
22928
|
updateLineGraphs() {
|
|
22912
22929
|
Object.entries(this.lineGraphGroups).forEach(([s]) => {
|
|
22913
|
-
const e =
|
|
22930
|
+
const e = I.area().x((t) => this.timeScale(this.tzStringToDate(t.timestamp))).y0(this.timelineHeight).y1((t) => this.yScale(t.count)).curve(I.curveMonotoneX);
|
|
22914
22931
|
this.svg.selectAll(
|
|
22915
22932
|
`.${G.lineGraphPath}-${s}`
|
|
22916
22933
|
).attr("d", (t) => e(t));
|
|
@@ -22922,12 +22939,12 @@ const Ih = _h.exports, G = {
|
|
|
22922
22939
|
this.svg.selectAll(
|
|
22923
22940
|
`.${G.lineGraphDot}-${s}`
|
|
22924
22941
|
).each(function(t) {
|
|
22925
|
-
|
|
22942
|
+
I.select(this).attr("cx", e.timeScale(e.tzStringToDate(t.timestamp))).attr("cy", e.yScale(t.count));
|
|
22926
22943
|
}), this.svg.selectAll(
|
|
22927
22944
|
`.${G.lineGraphHoverZone}-${s}`
|
|
22928
22945
|
).each(function(t) {
|
|
22929
22946
|
const i = e.timeScale(e.tzStringToDate(t.timestamp).getTime()) - 15;
|
|
22930
|
-
|
|
22947
|
+
I.select(this).attr("x", i).attr("y", 0).attr("width", 30).attr("height", e.chartHeight);
|
|
22931
22948
|
});
|
|
22932
22949
|
});
|
|
22933
22950
|
},
|
|
@@ -22989,42 +23006,42 @@ const Ih = _h.exports, G = {
|
|
|
22989
23006
|
});
|
|
22990
23007
|
},
|
|
22991
23008
|
removeMarkersDragBehavior() {
|
|
22992
|
-
this.markersDragBehavior && (this.markersDragBehavior.on("start", null).on("drag", null).on("end", null),
|
|
23009
|
+
this.markersDragBehavior && (this.markersDragBehavior.on("start", null).on("drag", null).on("end", null), I.selectAll(`.${G.marker}`).call(
|
|
22993
23010
|
this.markersDragBehavior
|
|
22994
23011
|
));
|
|
22995
23012
|
},
|
|
22996
23013
|
initMarkersDragBehavior() {
|
|
22997
23014
|
this.removeMarkersDragBehavior();
|
|
22998
23015
|
const s = this;
|
|
22999
|
-
this.markersDragBehavior =
|
|
23016
|
+
this.markersDragBehavior = I.drag().on("start", function(e, t) {
|
|
23000
23017
|
var i;
|
|
23001
23018
|
(i = e.sourceEvent) == null || i.preventDefault(), s.handleMarkerDrag({
|
|
23002
23019
|
marker: t,
|
|
23003
|
-
markerElement:
|
|
23020
|
+
markerElement: I.select(this),
|
|
23004
23021
|
dragEvent: e
|
|
23005
23022
|
});
|
|
23006
23023
|
}).on("drag", function(e, t) {
|
|
23007
23024
|
s.handleMarkerDrag({
|
|
23008
23025
|
marker: t,
|
|
23009
|
-
markerElement:
|
|
23026
|
+
markerElement: I.select(this),
|
|
23010
23027
|
dragEvent: e
|
|
23011
23028
|
});
|
|
23012
23029
|
}).on("end", function(e, t) {
|
|
23013
23030
|
s.handleMarkerDrag({
|
|
23014
23031
|
marker: t,
|
|
23015
|
-
markerElement:
|
|
23032
|
+
markerElement: I.select(this),
|
|
23016
23033
|
dragEvent: e
|
|
23017
23034
|
});
|
|
23018
|
-
}),
|
|
23035
|
+
}), I.selectAll(`.${G.marker}`).data(this.sortedMarkers).call(this.markersDragBehavior);
|
|
23019
23036
|
},
|
|
23020
23037
|
initCurtains() {
|
|
23021
23038
|
this.createCurtains(), this.updateCurtains();
|
|
23022
23039
|
},
|
|
23023
23040
|
createCurtains() {
|
|
23024
23041
|
this.curtains && (this.svg.append("rect").classed(`${G.curtain} ${G.curtain}--left`, !0).attr("fill", "rgba(0, 0, 0, 0.5)").on("mouseenter", () => this.isHoveringCurtain = !0).on("mouseleave", () => this.isHoveringCurtain = !1).call(
|
|
23025
|
-
|
|
23042
|
+
I.drag().on("start", this.handleDragStart).on("drag", this.handleLeftDrag).on("end", this.handleDragEnd)
|
|
23026
23043
|
), this.svg.append("rect").classed(`${G.curtain} ${G.curtain}--right`, !0).attr("fill", "rgba(0, 0, 0, 0.5)").on("mouseenter", () => this.isHoveringCurtain = !0).on("mouseleave", () => this.isHoveringCurtain = !1).call(
|
|
23027
|
-
|
|
23044
|
+
I.drag().on("start", this.handleDragStart).on("drag", this.handleRightDrag).on("end", this.handleDragEnd)
|
|
23028
23045
|
), this.updateCurtains());
|
|
23029
23046
|
},
|
|
23030
23047
|
updateCurtains() {
|
|
@@ -23099,7 +23116,7 @@ const Ih = _h.exports, G = {
|
|
|
23099
23116
|
color: t,
|
|
23100
23117
|
type: i
|
|
23101
23118
|
}) {
|
|
23102
|
-
const r =
|
|
23119
|
+
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}`;
|
|
23103
23120
|
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(#${De.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})`);
|
|
23104
23121
|
},
|
|
23105
23122
|
drawLineGraphHoverZones({
|
|
@@ -23217,7 +23234,7 @@ const Ih = _h.exports, G = {
|
|
|
23217
23234
|
`g.${G.eventGroup}-${s}`
|
|
23218
23235
|
), r = 2, a = (e.height || this.barChartHeight) / 2, o = t + a - r / 2;
|
|
23219
23236
|
i.attr("x1", 0).attr("x2", this.timeline.offsetWidth).select(`.${Ye.milestoneLine}`).attr("y1", o).attr("y2", o);
|
|
23220
|
-
const l =
|
|
23237
|
+
const l = I.select(
|
|
23221
23238
|
`.${Ye.milestonesContainer}-${s}`
|
|
23222
23239
|
);
|
|
23223
23240
|
l.style("top", `${t}px`).style("height", `${e.height || this.barChartHeight}px`);
|
|
@@ -23263,7 +23280,7 @@ const Ih = _h.exports, G = {
|
|
|
23263
23280
|
gElement: t,
|
|
23264
23281
|
height: i
|
|
23265
23282
|
}) {
|
|
23266
|
-
t.append("rect").attr("class", G.eventGroupBg).attr("x", 0).attr("y", e).attr("width", this.timeline.offsetWidth).attr("height", i || this.barChartHeight).attr("fill",
|
|
23283
|
+
t.append("rect").attr("class", G.eventGroupBg).attr("x", 0).attr("y", e).attr("width", this.timeline.offsetWidth).attr("height", i || this.barChartHeight).attr("fill", I.color(s).toString()).style("opacity", 0.1);
|
|
23267
23284
|
},
|
|
23268
23285
|
drawBars({
|
|
23269
23286
|
events: s,
|
|
@@ -23277,9 +23294,9 @@ const Ih = _h.exports, G = {
|
|
|
23277
23294
|
"class",
|
|
23278
23295
|
(a) => G.eventRect + (a.className ? ` ${a.className}` : "")
|
|
23279
23296
|
).attr("x", this.getEventRectX).attr("y", t + this.barYPadding / 2).attr("ry", 1.5).attr("rx", 1.5).attr("width", this.getEventRectWidth).attr("height", this.barChartHeight - this.barYPadding).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").style("fill", (a) => a.color || i).on("mouseover", function(a, o) {
|
|
23280
|
-
|
|
23297
|
+
I.select(this).classed(G.eventRectHovered, !0), n.handleBarMouseOver(a, o, r);
|
|
23281
23298
|
}).on("mouseout", function() {
|
|
23282
|
-
|
|
23299
|
+
I.select(this).classed(G.eventRectHovered, !1), n.handleBarMouseOut();
|
|
23283
23300
|
}), e.selectAll(G.eventRectText).data(s.filter((a) => !!a.text)).enter().append("text").attr("class", G.eventRectText).attr("x", (a) => this.getEventRectX(a) + 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(
|
|
23284
23301
|
"fill",
|
|
23285
23302
|
(a) => this.getTextFillColor(a.color || i, 0.75)
|
|
@@ -23307,13 +23324,13 @@ const Ih = _h.exports, G = {
|
|
|
23307
23324
|
"class",
|
|
23308
23325
|
(f) => G.eventBarCap + (f.className ? ` ${f.className}` : "")
|
|
23309
23326
|
).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) {
|
|
23310
|
-
const g =
|
|
23327
|
+
const g = I.select(this);
|
|
23311
23328
|
a.onBarChartBarMouseOver(g, t), a.handleBarMouseOver(f, m, r);
|
|
23312
23329
|
}).on("mouseout", function() {
|
|
23313
|
-
const f =
|
|
23330
|
+
const f = I.select(this);
|
|
23314
23331
|
a.onBarChartBarMouseOut(f, r), a.handleBarMouseOut();
|
|
23315
23332
|
}).on("click", function() {
|
|
23316
|
-
e.selectAll(`.${G.eventBarContainerSelected}`).classed(G.eventBarContainerSelected, !1),
|
|
23333
|
+
e.selectAll(`.${G.eventBarContainerSelected}`).classed(G.eventBarContainerSelected, !1), I.select(this).classed(G.eventBarContainerSelected, !0);
|
|
23317
23334
|
});
|
|
23318
23335
|
},
|
|
23319
23336
|
onBarChartBarMouseOver(s, e) {
|
|
@@ -23347,10 +23364,10 @@ const Ih = _h.exports, G = {
|
|
|
23347
23364
|
},
|
|
23348
23365
|
getTextFillColor(s, e = 0) {
|
|
23349
23366
|
var t, i;
|
|
23350
|
-
return (this.dark ? (t =
|
|
23367
|
+
return (this.dark ? (t = I.color(s)) == null ? void 0 : t.brighter(1.5 + e) : (i = I.color(s)) == null ? void 0 : i.darker(2 + e)).toString();
|
|
23351
23368
|
},
|
|
23352
23369
|
getLabelBackgroundColor(s) {
|
|
23353
|
-
let e =
|
|
23370
|
+
let e = I.color(s);
|
|
23354
23371
|
return e.opacity = this.dark ? 0.2 : 0.5, e.toString();
|
|
23355
23372
|
},
|
|
23356
23373
|
getCurrentGroupVisibility(s) {
|