@kong-ui-public/analytics-chart 10.17.3 → 10.17.4
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/vitals-chart.es.js
CHANGED
|
@@ -2218,16 +2218,16 @@ function pf(n, t, e) {
|
|
|
2218
2218
|
n
|
|
2219
2219
|
];
|
|
2220
2220
|
const { property: i, start: s, end: r } = e, a = t.length, { compare: o, between: l, normalize: c } = mf(i), { start: u, end: d, loop: h, style: f } = Gy(n, t, e), m = [];
|
|
2221
|
-
let b = !1, _ = null, x, T,
|
|
2222
|
-
const A = () => l(s,
|
|
2221
|
+
let b = !1, _ = null, x, T, k;
|
|
2222
|
+
const A = () => l(s, k, x) && o(s, k) !== 0, C = () => o(r, x) === 0 || l(r, k, x), D = () => b || A(), S = () => !b || C();
|
|
2223
2223
|
for (let g = u, p = u; g <= d; ++g)
|
|
2224
|
-
T = t[g % a], !T.skip && (x = c(T[i]), x !==
|
|
2224
|
+
T = t[g % a], !T.skip && (x = c(T[i]), x !== k && (b = l(x, s, r), _ === null && D() && (_ = o(x, s) === 0 ? g : p), _ !== null && S() && (m.push(hu({
|
|
2225
2225
|
start: _,
|
|
2226
2226
|
end: g,
|
|
2227
2227
|
loop: h,
|
|
2228
2228
|
count: a,
|
|
2229
2229
|
style: f
|
|
2230
|
-
})), _ = null), p = g,
|
|
2230
|
+
})), _ = null), p = g, k = x));
|
|
2231
2231
|
return _ !== null && m.push(hu({
|
|
2232
2232
|
start: _,
|
|
2233
2233
|
end: d,
|
|
@@ -3287,8 +3287,8 @@ class Js extends sn {
|
|
|
3287
3287
|
width: c ? Math.abs(b.size) : _.size
|
|
3288
3288
|
};
|
|
3289
3289
|
h && (T.options = d || this.resolveDataElementOptions(f, t[f].active ? "active" : s));
|
|
3290
|
-
const
|
|
3291
|
-
wb(T,
|
|
3290
|
+
const k = T.options || t[f].options;
|
|
3291
|
+
wb(T, k, x, a), Tb(T, k, u.ratio), this.updateElement(t[f], f, T, s);
|
|
3292
3292
|
}
|
|
3293
3293
|
}
|
|
3294
3294
|
_getStacks(t, e) {
|
|
@@ -3347,7 +3347,7 @@ class Js extends sn {
|
|
|
3347
3347
|
let x = e.getPixelForValue(_);
|
|
3348
3348
|
if (this.chart.getDataVisibility(t) ? m = e.getPixelForValue(h + f) : m = x, b = m - x, Math.abs(b) < a) {
|
|
3349
3349
|
b = vb(b, e, o) * a, d === o && (x -= b / 2);
|
|
3350
|
-
const T = e.getPixelForDecimal(0),
|
|
3350
|
+
const T = e.getPixelForDecimal(0), k = e.getPixelForDecimal(1), A = Math.min(T, k), C = Math.max(T, k);
|
|
3351
3351
|
x = Math.max(Math.min(x, C), A), m = x + b, i && !u && (l._stacks[e.axis]._visualValues[s] = e.getValueForPixel(m) - e.getValueForPixel(x));
|
|
3352
3352
|
}
|
|
3353
3353
|
if (x === e.getPixelForValue(o)) {
|
|
@@ -3505,7 +3505,7 @@ P(ca, "id", "bubble"), P(ca, "defaults", {
|
|
|
3505
3505
|
function Mb(n, t, e) {
|
|
3506
3506
|
let i = 1, s = 1, r = 0, a = 0;
|
|
3507
3507
|
if (t < Lt) {
|
|
3508
|
-
const o = n, l = o + t, c = Math.cos(o), u = Math.sin(o), d = Math.cos(l), h = Math.sin(l), f = (
|
|
3508
|
+
const o = n, l = o + t, c = Math.cos(o), u = Math.sin(o), d = Math.cos(l), h = Math.sin(l), f = (k, A, C) => hr(k, o, l, !0) ? 1 : Math.max(A, A * e, C, C * e), m = (k, A, C) => hr(k, o, l, !0) ? -1 : Math.min(A, A * e, C, C * e), b = f(0, c, d), _ = f(Ft, u, h), x = m(pt, c, d), T = m(pt + Ft, u, h);
|
|
3509
3509
|
i = (b - x) / 2, s = (_ - T) / 2, r = -(b + x) / 2, a = -(_ + T) / 2;
|
|
3510
3510
|
}
|
|
3511
3511
|
return {
|
|
@@ -3555,8 +3555,8 @@ class An extends sn {
|
|
|
3555
3555
|
};
|
|
3556
3556
|
}
|
|
3557
3557
|
update(t) {
|
|
3558
|
-
const e = this.chart, { chartArea: i } = e, s = this._cachedMeta, r = s.data, a = this.getMaxBorderWidth() + this.getMaxOffset(r) + this.options.spacing, o = Math.max((Math.min(i.width, i.height) - a) / 2, 0), l = Math.min(zp(this.options.cutout, o), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: h, ratioY: f, offsetX: m, offsetY: b } = Mb(d, u, l), _ = (i.width - a) / h, x = (i.height - a) / f, T = Math.max(Math.min(_, x) / 2, 0),
|
|
3559
|
-
this.offsetX = m *
|
|
3558
|
+
const e = this.chart, { chartArea: i } = e, s = this._cachedMeta, r = s.data, a = this.getMaxBorderWidth() + this.getMaxOffset(r) + this.options.spacing, o = Math.max((Math.min(i.width, i.height) - a) / 2, 0), l = Math.min(zp(this.options.cutout, o), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: h, ratioY: f, offsetX: m, offsetY: b } = Mb(d, u, l), _ = (i.width - a) / h, x = (i.height - a) / f, T = Math.max(Math.min(_, x) / 2, 0), k = Gh(this.options.radius, T), A = Math.max(k * l, 0), C = (k - A) / this._getVisibleDatasetWeightTotal();
|
|
3559
|
+
this.offsetX = m * k, this.offsetY = b * k, s.total = this.calculateTotal(), this.outerRadius = k - C * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - C * c, 0), this.updateElements(r, 0, r.length, t);
|
|
3560
3560
|
}
|
|
3561
3561
|
_circumference(t, e) {
|
|
3562
3562
|
const i = this.options, s = this._cachedMeta, r = this._getCircumference();
|
|
@@ -3568,16 +3568,16 @@ class An extends sn {
|
|
|
3568
3568
|
for (T = 0; T < e; ++T)
|
|
3569
3569
|
x += this._circumference(T, r);
|
|
3570
3570
|
for (T = e; T < e + i; ++T) {
|
|
3571
|
-
const
|
|
3571
|
+
const k = this._circumference(T, r), A = t[T], C = {
|
|
3572
3572
|
x: u + this.offsetX,
|
|
3573
3573
|
y: d + this.offsetY,
|
|
3574
3574
|
startAngle: x,
|
|
3575
|
-
endAngle: x +
|
|
3576
|
-
circumference:
|
|
3575
|
+
endAngle: x + k,
|
|
3576
|
+
circumference: k,
|
|
3577
3577
|
outerRadius: m,
|
|
3578
3578
|
innerRadius: f
|
|
3579
3579
|
};
|
|
3580
|
-
_ && (C.options = b || this.resolveDataElementOptions(T, A.active ? "active" : s)), x +=
|
|
3580
|
+
_ && (C.options = b || this.resolveDataElementOptions(T, A.active ? "active" : s)), x += k, this.updateElement(A, T, C, s);
|
|
3581
3581
|
}
|
|
3582
3582
|
}
|
|
3583
3583
|
calculateTotal() {
|
|
@@ -3719,16 +3719,16 @@ class tr extends sn {
|
|
|
3719
3719
|
}, t), this.updateElements(s, o, l, t);
|
|
3720
3720
|
}
|
|
3721
3721
|
updateElements(t, e, i, s) {
|
|
3722
|
-
const r = s === "reset", { iScale: a, vScale: o, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: d } = this._getSharedOptions(e, s), h = a.axis, f = o.axis, { spanGaps: m, segment: b } = this.options, _ = Jn(m) ? m : Number.POSITIVE_INFINITY, x = this.chart._animationsDisabled || r || s === "none", T = e + i,
|
|
3722
|
+
const r = s === "reset", { iScale: a, vScale: o, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: d } = this._getSharedOptions(e, s), h = a.axis, f = o.axis, { spanGaps: m, segment: b } = this.options, _ = Jn(m) ? m : Number.POSITIVE_INFINITY, x = this.chart._animationsDisabled || r || s === "none", T = e + i, k = t.length;
|
|
3723
3723
|
let A = e > 0 && this.getParsed(e - 1);
|
|
3724
|
-
for (let C = 0; C <
|
|
3724
|
+
for (let C = 0; C < k; ++C) {
|
|
3725
3725
|
const D = t[C], S = x ? D : {};
|
|
3726
3726
|
if (C < e || C >= T) {
|
|
3727
3727
|
S.skip = !0;
|
|
3728
3728
|
continue;
|
|
3729
3729
|
}
|
|
3730
|
-
const g = this.getParsed(C), p = dt(g[f]), w = S[h] = a.getPixelForValue(g[h], C),
|
|
3731
|
-
S.skip = isNaN(w) || isNaN(
|
|
3730
|
+
const g = this.getParsed(C), p = dt(g[f]), w = S[h] = a.getPixelForValue(g[h], C), O = S[f] = r || p ? o.getBasePixel() : o.getPixelForValue(l ? this.applyStack(o, g, l) : g[f], C);
|
|
3731
|
+
S.skip = isNaN(w) || isNaN(O) || p, S.stop = C > 0 && Math.abs(g[h] - A[h]) > _, b && (S.parsed = g, S.raw = c.data[C]), d && (S.options = u || this.resolveDataElementOptions(C, D.active ? "active" : s)), x || this.updateElement(D, C, S, s), A = g;
|
|
3732
3732
|
}
|
|
3733
3733
|
}
|
|
3734
3734
|
getMaxOverflow() {
|
|
@@ -3798,13 +3798,13 @@ class er extends sn {
|
|
|
3798
3798
|
f += this._computeAngle(m, s, b);
|
|
3799
3799
|
for (m = e; m < e + i; m++) {
|
|
3800
3800
|
const _ = t[m];
|
|
3801
|
-
let x = f, T = f + this._computeAngle(m, s, b),
|
|
3802
|
-
f = T, r && (l.animateScale && (
|
|
3801
|
+
let x = f, T = f + this._computeAngle(m, s, b), k = a.getDataVisibility(m) ? c.getDistanceFromCenterForValue(this.getParsed(m).r) : 0;
|
|
3802
|
+
f = T, r && (l.animateScale && (k = 0), l.animateRotate && (x = T = h));
|
|
3803
3803
|
const A = {
|
|
3804
3804
|
x: u,
|
|
3805
3805
|
y: d,
|
|
3806
3806
|
innerRadius: 0,
|
|
3807
|
-
outerRadius:
|
|
3807
|
+
outerRadius: k,
|
|
3808
3808
|
startAngle: x,
|
|
3809
3809
|
endAngle: T,
|
|
3810
3810
|
options: this.resolveDataElementOptions(m, _.active ? "active" : s)
|
|
@@ -3986,10 +3986,10 @@ class da extends sn {
|
|
|
3986
3986
|
}
|
|
3987
3987
|
updateElements(t, e, i, s) {
|
|
3988
3988
|
const r = s === "reset", { iScale: a, vScale: o, _stacked: l, _dataset: c } = this._cachedMeta, u = this.resolveDataElementOptions(e, s), d = this.getSharedOptions(u), h = this.includeOptions(s, d), f = a.axis, m = o.axis, { spanGaps: b, segment: _ } = this.options, x = Jn(b) ? b : Number.POSITIVE_INFINITY, T = this.chart._animationsDisabled || r || s === "none";
|
|
3989
|
-
let
|
|
3989
|
+
let k = e > 0 && this.getParsed(e - 1);
|
|
3990
3990
|
for (let A = e; A < e + i; ++A) {
|
|
3991
3991
|
const C = t[A], D = this.getParsed(A), S = T ? C : {}, g = dt(D[m]), p = S[f] = a.getPixelForValue(D[f], A), w = S[m] = r || g ? o.getBasePixel() : o.getPixelForValue(l ? this.applyStack(o, D, l) : D[m], A);
|
|
3992
|
-
S.skip = isNaN(p) || isNaN(w) || g, S.stop = A > 0 && Math.abs(D[f] -
|
|
3992
|
+
S.skip = isNaN(p) || isNaN(w) || g, S.stop = A > 0 && Math.abs(D[f] - k[f]) > x, _ && (S.parsed = D, S.raw = c.data[A]), h && (S.options = d || this.resolveDataElementOptions(A, C.active ? "active" : s)), T || this.updateElement(C, A, S, s), k = D;
|
|
3993
3993
|
}
|
|
3994
3994
|
this.updateSharedOptions(d, s, u);
|
|
3995
3995
|
}
|
|
@@ -5074,17 +5074,17 @@ class ki extends de {
|
|
|
5074
5074
|
}
|
|
5075
5075
|
_computeLabelSizes(t, e, i) {
|
|
5076
5076
|
const { ctx: s, _longestTextCache: r } = this, a = [], o = [], l = Math.floor(e / Pu(e, i));
|
|
5077
|
-
let c = 0, u = 0, d, h, f, m, b, _, x, T,
|
|
5077
|
+
let c = 0, u = 0, d, h, f, m, b, _, x, T, k, A, C;
|
|
5078
5078
|
for (d = 0; d < e; d += l) {
|
|
5079
5079
|
if (m = t[d].label, b = this._resolveTickFontOptions(d), s.font = _ = b.string, x = r[_] = r[_] || {
|
|
5080
5080
|
data: {},
|
|
5081
5081
|
gc: []
|
|
5082
|
-
}, T = b.lineHeight,
|
|
5083
|
-
|
|
5082
|
+
}, T = b.lineHeight, k = A = 0, !dt(m) && !Ot(m))
|
|
5083
|
+
k = Da(s, x.data, x.gc, k, m), A = T;
|
|
5084
5084
|
else if (Ot(m))
|
|
5085
5085
|
for (h = 0, f = m.length; h < f; ++h)
|
|
5086
|
-
C = m[h], !dt(C) && !Ot(C) && (
|
|
5087
|
-
a.push(
|
|
5086
|
+
C = m[h], !dt(C) && !Ot(C) && (k = Da(s, x.data, x.gc, k, C), A += T);
|
|
5087
|
+
a.push(k), o.push(A), c = Math.max(k, c), u = Math.max(A, u);
|
|
5088
5088
|
}
|
|
5089
5089
|
a0(r, e);
|
|
5090
5090
|
const D = a.indexOf(c), S = o.indexOf(u), g = (p) => ({
|
|
@@ -5148,11 +5148,11 @@ class ki extends de {
|
|
|
5148
5148
|
const e = this.axis, i = this.chart, s = this.options, { grid: r, position: a, border: o } = s, l = r.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), h = As(r), f = [], m = o.setContext(this.getContext()), b = m.display ? m.width : 0, _ = b / 2, x = function(Z) {
|
|
5149
5149
|
return fi(i, Z, b);
|
|
5150
5150
|
};
|
|
5151
|
-
let T,
|
|
5151
|
+
let T, k, A, C, D, S, g, p, w, O, R, U;
|
|
5152
5152
|
if (a === "top")
|
|
5153
|
-
T = x(this.bottom), S = this.bottom - h, p = T - _,
|
|
5153
|
+
T = x(this.bottom), S = this.bottom - h, p = T - _, O = x(t.top) + _, U = t.bottom;
|
|
5154
5154
|
else if (a === "bottom")
|
|
5155
|
-
T = x(this.top),
|
|
5155
|
+
T = x(this.top), O = t.top, U = x(t.bottom) - _, S = T + _, p = this.top + h;
|
|
5156
5156
|
else if (a === "left")
|
|
5157
5157
|
T = x(this.right), D = this.right - h, g = T - _, w = x(t.left) + _, R = t.right;
|
|
5158
5158
|
else if (a === "right")
|
|
@@ -5164,7 +5164,7 @@ class ki extends de {
|
|
|
5164
5164
|
const Z = Object.keys(a)[0], $ = a[Z];
|
|
5165
5165
|
T = x(this.chart.scales[Z].getPixelForValue($));
|
|
5166
5166
|
}
|
|
5167
|
-
|
|
5167
|
+
O = t.top, U = t.bottom, S = T + _, p = S + h;
|
|
5168
5168
|
} else if (e === "y") {
|
|
5169
5169
|
if (a === "center")
|
|
5170
5170
|
T = x((t.left + t.right) / 2);
|
|
@@ -5175,15 +5175,15 @@ class ki extends de {
|
|
|
5175
5175
|
D = T - _, g = D - h, w = t.left, R = t.right;
|
|
5176
5176
|
}
|
|
5177
5177
|
const I = ut(s.ticks.maxTicksLimit, d), z = Math.max(1, Math.ceil(d / I));
|
|
5178
|
-
for (
|
|
5179
|
-
const Z = this.getContext(
|
|
5180
|
-
A = r0(this,
|
|
5178
|
+
for (k = 0; k < d; k += z) {
|
|
5179
|
+
const Z = this.getContext(k), $ = r.setContext(Z), ot = o.setContext(Z), q = $.lineWidth, H = $.color, X = ot.dash || [], et = ot.dashOffset, V = $.tickWidth, xt = $.tickColor, St = $.tickBorderDash || [], Y = $.tickBorderDashOffset;
|
|
5180
|
+
A = r0(this, k, l), A !== void 0 && (C = fi(i, A, q), c ? D = g = w = R = C : S = p = O = U = C, f.push({
|
|
5181
5181
|
tx1: D,
|
|
5182
5182
|
ty1: S,
|
|
5183
5183
|
tx2: g,
|
|
5184
5184
|
ty2: p,
|
|
5185
5185
|
x1: w,
|
|
5186
|
-
y1:
|
|
5186
|
+
y1: O,
|
|
5187
5187
|
x2: R,
|
|
5188
5188
|
y2: U,
|
|
5189
5189
|
width: q,
|
|
@@ -5200,7 +5200,7 @@ class ki extends de {
|
|
|
5200
5200
|
}
|
|
5201
5201
|
_computeLabelItems(t) {
|
|
5202
5202
|
const e = this.axis, i = this.options, { position: s, ticks: r } = i, a = this.isHorizontal(), o = this.ticks, { align: l, crossAlign: c, padding: u, mirror: d } = r, h = As(i.grid), f = h + u, m = d ? -u : f, b = -te(this.labelRotation), _ = [];
|
|
5203
|
-
let x, T,
|
|
5203
|
+
let x, T, k, A, C, D, S, g, p, w, O, R, U = "middle";
|
|
5204
5204
|
if (s === "top")
|
|
5205
5205
|
D = this.bottom - m, S = this._getXAxisLabelAlignment();
|
|
5206
5206
|
else if (s === "bottom")
|
|
@@ -5231,12 +5231,12 @@ class ki extends de {
|
|
|
5231
5231
|
e === "y" && (l === "start" ? U = "top" : l === "end" && (U = "bottom"));
|
|
5232
5232
|
const I = this._getLabelSizes();
|
|
5233
5233
|
for (x = 0, T = o.length; x < T; ++x) {
|
|
5234
|
-
|
|
5234
|
+
k = o[x], A = k.label;
|
|
5235
5235
|
const z = r.setContext(this.getContext(x));
|
|
5236
|
-
g = this.getPixelForTick(x) + r.labelOffset, p = this._resolveTickFontOptions(x), w = p.lineHeight,
|
|
5237
|
-
const Z =
|
|
5236
|
+
g = this.getPixelForTick(x) + r.labelOffset, p = this._resolveTickFontOptions(x), w = p.lineHeight, O = Ot(A) ? A.length : 1;
|
|
5237
|
+
const Z = O / 2, $ = z.color, ot = z.textStrokeColor, q = z.textStrokeWidth;
|
|
5238
5238
|
let H = S;
|
|
5239
|
-
a ? (C = g, S === "inner" && (x === T - 1 ? H = this.options.reverse ? "left" : "right" : x === 0 ? H = this.options.reverse ? "right" : "left" : H = "center"), s === "top" ? c === "near" || b !== 0 ? R = -
|
|
5239
|
+
a ? (C = g, S === "inner" && (x === T - 1 ? H = this.options.reverse ? "left" : "right" : x === 0 ? H = this.options.reverse ? "right" : "left" : H = "center"), s === "top" ? c === "near" || b !== 0 ? R = -O * w + w / 2 : c === "center" ? R = -I.highest.height / 2 - Z * w + w : R = -I.highest.height + w / 2 : c === "near" || b !== 0 ? R = w / 2 : c === "center" ? R = I.highest.height / 2 - Z * w : R = I.highest.height - O * w, d && (R *= -1), b !== 0 && !z.showLabelBackdrop && (C += w / 2 * Math.sin(b))) : (D = g, R = (1 - O) * w / 2);
|
|
5240
5240
|
let X;
|
|
5241
5241
|
if (z.showLabelBackdrop) {
|
|
5242
5242
|
const et = ee(z.backdropPadding), V = I.heights[x], xt = I.widths[x];
|
|
@@ -6491,7 +6491,7 @@ function Ca(n, t, e, i, s, r) {
|
|
|
6491
6491
|
const z = u > 0 ? u - i : 0, Z = d > 0 ? d - i : 0, $ = (z + Z) / 2, ot = $ !== 0 ? m * $ / ($ + i) : m;
|
|
6492
6492
|
f = (m - ot) / 2;
|
|
6493
6493
|
}
|
|
6494
|
-
const b = Math.max(1e-3, m * d - e / pt) / d, _ = (m - b) / 2, x = l + _ + f, T = s - _ - f, { outerStart:
|
|
6494
|
+
const b = Math.max(1e-3, m * d - e / pt) / d, _ = (m - b) / 2, x = l + _ + f, T = s - _ - f, { outerStart: k, outerEnd: A, innerStart: C, innerEnd: D } = F0(t, h, d, T - x), S = d - k, g = d - A, p = x + k / S, w = T - A / g, O = h + C, R = h + D, U = x + C / O, I = T - D / R;
|
|
6495
6495
|
if (n.beginPath(), r) {
|
|
6496
6496
|
const z = (p + w) / 2;
|
|
6497
6497
|
if (n.arc(a, o, d, p, z), n.arc(a, o, d, z, w), A > 0) {
|
|
@@ -6505,13 +6505,13 @@ function Ca(n, t, e, i, s, r) {
|
|
|
6505
6505
|
}
|
|
6506
6506
|
const $ = (T - D / h + (x + C / h)) / 2;
|
|
6507
6507
|
if (n.arc(a, o, h, T - D / h, $, !0), n.arc(a, o, h, $, x + C / h, !0), C > 0) {
|
|
6508
|
-
const q = Yi(
|
|
6508
|
+
const q = Yi(O, U, a, o);
|
|
6509
6509
|
n.arc(q.x, q.y, C, U + Math.PI, x - Ft);
|
|
6510
6510
|
}
|
|
6511
6511
|
const ot = Yi(S, x, a, o);
|
|
6512
|
-
if (n.lineTo(ot.x, ot.y),
|
|
6512
|
+
if (n.lineTo(ot.x, ot.y), k > 0) {
|
|
6513
6513
|
const q = Yi(S, p, a, o);
|
|
6514
|
-
n.arc(q.x, q.y,
|
|
6514
|
+
n.arc(q.x, q.y, k, x - Ft, p);
|
|
6515
6515
|
}
|
|
6516
6516
|
} else {
|
|
6517
6517
|
n.moveTo(a, o);
|
|
@@ -6650,16 +6650,16 @@ function W0(n, t, e, i) {
|
|
|
6650
6650
|
function Y0(n, t, e, i) {
|
|
6651
6651
|
const s = t.points, { count: r, start: a, ilen: o } = Rf(s, e, i), { move: l = !0, reverse: c } = i || {};
|
|
6652
6652
|
let u = 0, d = 0, h, f, m, b, _, x;
|
|
6653
|
-
const T = (A) => (a + (c ? o - A : A)) % r,
|
|
6653
|
+
const T = (A) => (a + (c ? o - A : A)) % r, k = () => {
|
|
6654
6654
|
b !== _ && (n.lineTo(u, _), n.lineTo(u, b), n.lineTo(u, x));
|
|
6655
6655
|
};
|
|
6656
6656
|
for (l && (f = s[T(0)], n.moveTo(f.x, f.y)), h = 0; h <= o; ++h) {
|
|
6657
6657
|
if (f = s[T(h)], f.skip)
|
|
6658
6658
|
continue;
|
|
6659
6659
|
const A = f.x, C = f.y, D = A | 0;
|
|
6660
|
-
D === m ? (C < b ? b = C : C > _ && (_ = C), u = (d * u + A) / ++d) : (
|
|
6660
|
+
D === m ? (C < b ? b = C : C > _ && (_ = C), u = (d * u + A) / ++d) : (k(), n.lineTo(A, C), m = D, d = 0, b = _ = C), x = C;
|
|
6661
6661
|
}
|
|
6662
|
-
|
|
6662
|
+
k();
|
|
6663
6663
|
}
|
|
6664
6664
|
function El(n) {
|
|
6665
6665
|
const t = n.options, e = t.borderDash && t.borderDash.length;
|
|
@@ -7046,8 +7046,8 @@ function l_(n, t, e, i, s) {
|
|
|
7046
7046
|
let u = t, d, h, f, m, b;
|
|
7047
7047
|
for (a[l++] = n[u], d = 0; d < r - 2; d++) {
|
|
7048
7048
|
let _ = 0, x = 0, T;
|
|
7049
|
-
const
|
|
7050
|
-
for (T =
|
|
7049
|
+
const k = Math.floor((d + 1) * o) + 1 + t, A = Math.min(Math.floor((d + 2) * o) + 1, e) + t, C = A - k;
|
|
7050
|
+
for (T = k; T < A; T++)
|
|
7051
7051
|
_ += n[T].x, x += n[T].y;
|
|
7052
7052
|
_ /= C, x /= C;
|
|
7053
7053
|
const D = Math.floor(d * o) + 1 + t, S = Math.min(Math.floor((d + 1) * o) + 1, e) + t, { x: g, y: p } = n[u];
|
|
@@ -7613,8 +7613,8 @@ class Ju extends de {
|
|
|
7613
7613
|
const { ctx: r, maxHeight: a, options: { labels: { padding: o } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], u = a - t;
|
|
7614
7614
|
let d = o, h = 0, f = 0, m = 0, b = 0;
|
|
7615
7615
|
return this.legendItems.forEach((_, x) => {
|
|
7616
|
-
const { itemWidth: T, itemHeight:
|
|
7617
|
-
x > 0 && f +
|
|
7616
|
+
const { itemWidth: T, itemHeight: k } = E_(i, e, r, _, s);
|
|
7617
|
+
x > 0 && f + k + 2 * o > u && (d += h + o, c.push({
|
|
7618
7618
|
width: h,
|
|
7619
7619
|
height: f
|
|
7620
7620
|
}), m += h + o, b++, h = f = 0), l[x] = {
|
|
@@ -7622,8 +7622,8 @@ class Ju extends de {
|
|
|
7622
7622
|
top: f,
|
|
7623
7623
|
col: b,
|
|
7624
7624
|
width: T,
|
|
7625
|
-
height:
|
|
7626
|
-
}, h = Math.max(h, T), f +=
|
|
7625
|
+
height: k
|
|
7626
|
+
}, h = Math.max(h, T), f += k + o;
|
|
7627
7627
|
}), d += h, c.push({
|
|
7628
7628
|
width: h,
|
|
7629
7629
|
height: f
|
|
@@ -7667,17 +7667,17 @@ class Ju extends de {
|
|
|
7667
7667
|
pointStyle: g.pointStyle,
|
|
7668
7668
|
rotation: g.rotation,
|
|
7669
7669
|
borderWidth: p
|
|
7670
|
-
},
|
|
7671
|
-
rf(s, w,
|
|
7670
|
+
}, O = l.xPlus(D, m / 2), R = S + h;
|
|
7671
|
+
rf(s, w, O, R, a.pointStyleWidth && m);
|
|
7672
7672
|
} else {
|
|
7673
|
-
const w = S + Math.max((d - b) / 2, 0),
|
|
7673
|
+
const w = S + Math.max((d - b) / 2, 0), O = l.leftForLtr(D, m), R = Kn(g.borderRadius);
|
|
7674
7674
|
s.beginPath(), Object.values(R).some((U) => U !== 0) ? rs(s, {
|
|
7675
|
-
x:
|
|
7675
|
+
x: O,
|
|
7676
7676
|
y: w,
|
|
7677
7677
|
w: m,
|
|
7678
7678
|
h: b,
|
|
7679
7679
|
radius: R
|
|
7680
|
-
}) : s.rect(
|
|
7680
|
+
}) : s.rect(O, w, m, b), s.fill(), p !== 0 && s.stroke();
|
|
7681
7681
|
}
|
|
7682
7682
|
s.restore();
|
|
7683
7683
|
}, T = function(D, S, g) {
|
|
@@ -7685,8 +7685,8 @@ class Ju extends de {
|
|
|
7685
7685
|
strikethrough: g.hidden,
|
|
7686
7686
|
textAlign: l.textAlign(g.textAlign)
|
|
7687
7687
|
});
|
|
7688
|
-
},
|
|
7689
|
-
|
|
7688
|
+
}, k = this.isHorizontal(), A = this._computeTitleHeight();
|
|
7689
|
+
k ? f = {
|
|
7690
7690
|
x: ve(r, this.left + u, this.right - i[0]),
|
|
7691
7691
|
y: this.top + u + A,
|
|
7692
7692
|
line: 0
|
|
@@ -7699,10 +7699,10 @@ class Ju extends de {
|
|
|
7699
7699
|
this.legendItems.forEach((D, S) => {
|
|
7700
7700
|
s.strokeStyle = D.fontColor, s.fillStyle = D.fontColor;
|
|
7701
7701
|
const g = s.measureText(D.text).width, p = l.textAlign(D.textAlign || (D.textAlign = a.textAlign)), w = m + h + g;
|
|
7702
|
-
let
|
|
7703
|
-
l.setWidth(this.width),
|
|
7704
|
-
const U = l.x(
|
|
7705
|
-
if (x(U, R, D),
|
|
7702
|
+
let O = f.x, R = f.y;
|
|
7703
|
+
l.setWidth(this.width), k ? S > 0 && O + w + u > this.right && (R = f.y += C, f.line++, O = f.x = ve(r, this.left + u, this.right - i[f.line])) : S > 0 && R + C > this.bottom && (O = f.x = O + e[f.line].width + u, f.line++, R = f.y = ve(r, this.top + A + u, this.bottom - e[f.line].height));
|
|
7704
|
+
const U = l.x(O);
|
|
7705
|
+
if (x(U, R, D), O = ty(p, O + m + h, k ? O + w : this.right, t.rtl), T(l.x(O), R, D), k)
|
|
7706
7706
|
f.x += w + u;
|
|
7707
7707
|
else if (typeof D.text != "string") {
|
|
7708
7708
|
const I = c.lineHeight;
|
|
@@ -8067,12 +8067,12 @@ function td(n, t) {
|
|
|
8067
8067
|
}
|
|
8068
8068
|
h && (b += t.footerMarginTop + h * u.lineHeight + (h - 1) * t.footerSpacing);
|
|
8069
8069
|
let T = 0;
|
|
8070
|
-
const
|
|
8070
|
+
const k = function(A) {
|
|
8071
8071
|
_ = Math.max(_, e.measureText(A).width + T);
|
|
8072
8072
|
};
|
|
8073
|
-
return e.save(), e.font = c.string, Rt(n.title,
|
|
8074
|
-
Rt(A.before,
|
|
8075
|
-
}), T = 0, e.font = u.string, Rt(n.footer,
|
|
8073
|
+
return e.save(), e.font = c.string, Rt(n.title, k), e.font = l.string, Rt(n.beforeBody.concat(n.afterBody), k), T = t.displayColors ? a + 2 + t.boxPadding : 0, Rt(i, (A) => {
|
|
8074
|
+
Rt(A.before, k), Rt(A.lines, k), Rt(A.after, k);
|
|
8075
|
+
}), T = 0, e.font = u.string, Rt(n.footer, k), e.restore(), _ += m.width, {
|
|
8076
8076
|
width: _,
|
|
8077
8077
|
height: b
|
|
8078
8078
|
};
|
|
@@ -8276,12 +8276,12 @@ class Nl extends de {
|
|
|
8276
8276
|
}
|
|
8277
8277
|
getCaretPosition(t, e, i) {
|
|
8278
8278
|
const { xAlign: s, yAlign: r } = this, { caretSize: a, cornerRadius: o } = i, { topLeft: l, topRight: c, bottomLeft: u, bottomRight: d } = Kn(o), { x: h, y: f } = t, { width: m, height: b } = e;
|
|
8279
|
-
let _, x, T,
|
|
8280
|
-
return r === "center" ? (A = f + b / 2, s === "left" ? (_ = h, x = _ - a,
|
|
8279
|
+
let _, x, T, k, A, C;
|
|
8280
|
+
return r === "center" ? (A = f + b / 2, s === "left" ? (_ = h, x = _ - a, k = A + a, C = A - a) : (_ = h + m, x = _ + a, k = A - a, C = A + a), T = _) : (s === "left" ? x = h + Math.max(l, u) + a : s === "right" ? x = h + m - Math.max(c, d) - a : x = this.caretX, r === "top" ? (k = f, A = k - a, _ = x - a, T = x + a) : (k = f + b, A = k + a, _ = x + a, T = x - a), C = k), {
|
|
8281
8281
|
x1: _,
|
|
8282
8282
|
x2: x,
|
|
8283
8283
|
x3: T,
|
|
8284
|
-
y1:
|
|
8284
|
+
y1: k,
|
|
8285
8285
|
y2: A,
|
|
8286
8286
|
y3: C
|
|
8287
8287
|
};
|
|
@@ -8330,10 +8330,10 @@ class Nl extends de {
|
|
|
8330
8330
|
const m = es(i.rtl, this.x, this.width), b = function(g) {
|
|
8331
8331
|
e.fillText(g, m.x(t.x + f), t.y + h / 2), t.y += h + r;
|
|
8332
8332
|
}, _ = m.textAlign(a);
|
|
8333
|
-
let x, T,
|
|
8333
|
+
let x, T, k, A, C, D, S;
|
|
8334
8334
|
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = sa(this, _, i), e.fillStyle = i.bodyColor, Rt(this.beforeBody, b), f = o && _ !== "right" ? a === "center" ? c / 2 + u : c + 2 + u : 0, A = 0, D = s.length; A < D; ++A) {
|
|
8335
|
-
for (x = s[A], T = this.labelTextColors[A], e.fillStyle = T, Rt(x.before, b),
|
|
8336
|
-
b(
|
|
8335
|
+
for (x = s[A], T = this.labelTextColors[A], e.fillStyle = T, Rt(x.before, b), k = x.lines, o && k.length && (this._drawColorBox(e, t, A, m, i), h = Math.max(d.lineHeight, l)), C = 0, S = k.length; C < S; ++C)
|
|
8336
|
+
b(k[C]), h = d.lineHeight;
|
|
8337
8337
|
Rt(x.after, b);
|
|
8338
8338
|
}
|
|
8339
8339
|
f = 0, h = d.lineHeight, Rt(this.afterBody, b), t.y -= r;
|
|
@@ -8624,7 +8624,7 @@ P(Fl, "id", "category"), P(Fl, "defaults", {
|
|
|
8624
8624
|
}
|
|
8625
8625
|
});
|
|
8626
8626
|
function Q_(n, t) {
|
|
8627
|
-
const e = [], { bounds: s, step: r, min: a, max: o, precision: l, count: c, maxTicks: u, maxDigits: d, includeBounds: h } = n, f = r || 1, m = u - 1, { min: b, max: _ } = t, x = !dt(a), T = !dt(o),
|
|
8627
|
+
const e = [], { bounds: s, step: r, min: a, max: o, precision: l, count: c, maxTicks: u, maxDigits: d, includeBounds: h } = n, f = r || 1, m = u - 1, { min: b, max: _ } = t, x = !dt(a), T = !dt(o), k = !dt(c), A = (_ - b) / (d + 1);
|
|
8628
8628
|
let C = eu((_ - b) / m / f) * f, D, S, g, p;
|
|
8629
8629
|
if (C < 1e-14 && !x && !T)
|
|
8630
8630
|
return [
|
|
@@ -8635,14 +8635,14 @@ function Q_(n, t) {
|
|
|
8635
8635
|
value: _
|
|
8636
8636
|
}
|
|
8637
8637
|
];
|
|
8638
|
-
p = Math.ceil(_ / C) - Math.floor(b / C), p > m && (C = eu(p * C / m / f) * f), dt(l) || (D = Math.pow(10, l), C = Math.ceil(C * D) / D), s === "ticks" ? (S = Math.floor(b / C) * C, g = Math.ceil(_ / C) * C) : (S = b, g = _), x && T && r && qp((o - a) / r, C / 1e3) ? (p = Math.round(Math.min((o - a) / C, u)), C = (o - a) / p, S = a, g = o) :
|
|
8638
|
+
p = Math.ceil(_ / C) - Math.floor(b / C), p > m && (C = eu(p * C / m / f) * f), dt(l) || (D = Math.pow(10, l), C = Math.ceil(C * D) / D), s === "ticks" ? (S = Math.floor(b / C) * C, g = Math.ceil(_ / C) * C) : (S = b, g = _), x && T && r && qp((o - a) / r, C / 1e3) ? (p = Math.round(Math.min((o - a) / C, u)), C = (o - a) / p, S = a, g = o) : k ? (S = x ? a : S, g = T ? o : g, p = c - 1, C = (g - S) / p) : (p = (g - S) / C, Ks(p, Math.round(p), C / 1e3) ? p = Math.round(p) : p = Math.ceil(p));
|
|
8639
8639
|
const w = Math.max(nu(C), nu(S));
|
|
8640
8640
|
D = Math.pow(10, dt(l) ? w : l), S = Math.round(S * D) / D, g = Math.round(g * D) / D;
|
|
8641
|
-
let
|
|
8641
|
+
let O = 0;
|
|
8642
8642
|
for (x && (h && S !== a ? (e.push({
|
|
8643
8643
|
value: a
|
|
8644
|
-
}), S < a &&
|
|
8645
|
-
const R = Math.round((S +
|
|
8644
|
+
}), S < a && O++, Ks(Math.round((S + O * C) * D) / D, a, ad(a, A, n)) && O++) : S < a && O++); O < p; ++O) {
|
|
8645
|
+
const R = Math.round((S + O * C) * D) / D;
|
|
8646
8646
|
if (T && R > o)
|
|
8647
8647
|
break;
|
|
8648
8648
|
e.push({
|
|
@@ -10838,23 +10838,23 @@ function Ra(n, t, e) {
|
|
|
10838
10838
|
if (!Mc(o))
|
|
10839
10839
|
throw new RangeError("Invalid time value");
|
|
10840
10840
|
let l = t.match(Ex).map((T) => {
|
|
10841
|
-
const
|
|
10842
|
-
if (
|
|
10843
|
-
const A = Yl[
|
|
10841
|
+
const k = T[0];
|
|
10842
|
+
if (k === "p" || k === "P") {
|
|
10843
|
+
const A = Yl[k];
|
|
10844
10844
|
return A(T, s.formatLong);
|
|
10845
10845
|
}
|
|
10846
10846
|
return T;
|
|
10847
10847
|
}).join("").match(Rx).map((T) => {
|
|
10848
10848
|
if (T === "''")
|
|
10849
10849
|
return { isToken: !1, value: "'" };
|
|
10850
|
-
const
|
|
10851
|
-
if (
|
|
10850
|
+
const k = T[0];
|
|
10851
|
+
if (k === "'")
|
|
10852
10852
|
return { isToken: !1, value: Fx(T) };
|
|
10853
|
-
if (yd[
|
|
10853
|
+
if (yd[k])
|
|
10854
10854
|
return { isToken: !0, value: T };
|
|
10855
|
-
if (
|
|
10855
|
+
if (k.match(Nx))
|
|
10856
10856
|
throw new RangeError(
|
|
10857
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
10857
|
+
"Format string contains an unescaped latin alphabet character `" + k + "`"
|
|
10858
10858
|
);
|
|
10859
10859
|
return { isToken: !1, value: T };
|
|
10860
10860
|
});
|
|
@@ -10866,10 +10866,10 @@ function Ra(n, t, e) {
|
|
|
10866
10866
|
};
|
|
10867
10867
|
return l.map((T) => {
|
|
10868
10868
|
if (!T.isToken) return T.value;
|
|
10869
|
-
const
|
|
10870
|
-
(!(e != null && e.useAdditionalWeekYearTokens) && eg(
|
|
10871
|
-
const A = yd[
|
|
10872
|
-
return A(o,
|
|
10869
|
+
const k = T.value;
|
|
10870
|
+
(!(e != null && e.useAdditionalWeekYearTokens) && eg(k) || !(e != null && e.useAdditionalDayOfYearTokens) && tg(k)) && $l(k, t, String(n));
|
|
10871
|
+
const A = yd[k[0]];
|
|
10872
|
+
return A(o, k, s.localize, c);
|
|
10873
10873
|
}).join("");
|
|
10874
10874
|
}
|
|
10875
10875
|
function Fx(n) {
|
|
@@ -12348,8 +12348,8 @@ const Dw = {
|
|
|
12348
12348
|
T: new Mw()
|
|
12349
12349
|
}, kw = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ow = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Cw = /^'([^]*?)'?$/, Aw = /''/g, Pw = /\S/, Rw = /[a-zA-Z]/;
|
|
12350
12350
|
function Ew(n, t, e, i) {
|
|
12351
|
-
var _, x, T,
|
|
12352
|
-
const s = () => qt((i == null ? void 0 : i.in) || e, NaN), r = ng(), a = (i == null ? void 0 : i.locale) ?? r.locale ?? Kf, o = (i == null ? void 0 : i.firstWeekContainsDate) ?? ((x = (_ = i == null ? void 0 : i.locale) == null ? void 0 : _.options) == null ? void 0 : x.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((
|
|
12351
|
+
var _, x, T, k, A, C, D, S;
|
|
12352
|
+
const s = () => qt((i == null ? void 0 : i.in) || e, NaN), r = ng(), a = (i == null ? void 0 : i.locale) ?? r.locale ?? Kf, o = (i == null ? void 0 : i.firstWeekContainsDate) ?? ((x = (_ = i == null ? void 0 : i.locale) == null ? void 0 : _.options) == null ? void 0 : x.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((k = (T = r.locale) == null ? void 0 : T.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, l = (i == null ? void 0 : i.weekStartsOn) ?? ((C = (A = i == null ? void 0 : i.locale) == null ? void 0 : A.options) == null ? void 0 : C.weekStartsOn) ?? r.weekStartsOn ?? ((S = (D = r.locale) == null ? void 0 : D.options) == null ? void 0 : S.weekStartsOn) ?? 0;
|
|
12353
12353
|
if (!t)
|
|
12354
12354
|
return n ? s() : ft(e, i == null ? void 0 : i.in);
|
|
12355
12355
|
const c = {
|
|
@@ -12368,10 +12368,10 @@ function Ew(n, t, e, i) {
|
|
|
12368
12368
|
!(i != null && i.useAdditionalWeekYearTokens) && eg(g) && $l(g, t, n), !(i != null && i.useAdditionalDayOfYearTokens) && tg(g) && $l(g, t, n);
|
|
12369
12369
|
const p = g[0], w = Dw[p];
|
|
12370
12370
|
if (w) {
|
|
12371
|
-
const { incompatibleTokens:
|
|
12372
|
-
if (Array.isArray(
|
|
12371
|
+
const { incompatibleTokens: O } = w;
|
|
12372
|
+
if (Array.isArray(O)) {
|
|
12373
12373
|
const U = h.find(
|
|
12374
|
-
(I) =>
|
|
12374
|
+
(I) => O.includes(I.token) || I.token === p
|
|
12375
12375
|
);
|
|
12376
12376
|
if (U)
|
|
12377
12377
|
throw new RangeError(
|
|
@@ -14195,23 +14195,23 @@ function vS(n, t, e) {
|
|
|
14195
14195
|
if (!gS(b))
|
|
14196
14196
|
throw new RangeError("Invalid time value");
|
|
14197
14197
|
let _ = t.match(pS).map((T) => {
|
|
14198
|
-
const
|
|
14199
|
-
if (
|
|
14200
|
-
const A = rS[
|
|
14198
|
+
const k = T[0];
|
|
14199
|
+
if (k === "p" || k === "P") {
|
|
14200
|
+
const A = rS[k];
|
|
14201
14201
|
return A(T, h.formatLong);
|
|
14202
14202
|
}
|
|
14203
14203
|
return T;
|
|
14204
14204
|
}).join("").match(mS).map((T) => {
|
|
14205
14205
|
if (T === "''")
|
|
14206
14206
|
return { isToken: !1, value: "'" };
|
|
14207
|
-
const
|
|
14208
|
-
if (
|
|
14207
|
+
const k = T[0];
|
|
14208
|
+
if (k === "'")
|
|
14209
14209
|
return { isToken: !1, value: xS(T) };
|
|
14210
|
-
if (Sd[
|
|
14210
|
+
if (Sd[k])
|
|
14211
14211
|
return { isToken: !0, value: T };
|
|
14212
|
-
if (
|
|
14212
|
+
if (k.match(_S))
|
|
14213
14213
|
throw new RangeError(
|
|
14214
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
14214
|
+
"Format string contains an unescaped latin alphabet character `" + k + "`"
|
|
14215
14215
|
);
|
|
14216
14216
|
return { isToken: !1, value: T };
|
|
14217
14217
|
});
|
|
@@ -14223,10 +14223,10 @@ function vS(n, t, e) {
|
|
|
14223
14223
|
};
|
|
14224
14224
|
return _.map((T) => {
|
|
14225
14225
|
if (!T.isToken) return T.value;
|
|
14226
|
-
const
|
|
14227
|
-
(!(e != null && e.useAdditionalWeekYearTokens) && uS(
|
|
14228
|
-
const A = Sd[
|
|
14229
|
-
return A(b,
|
|
14226
|
+
const k = T.value;
|
|
14227
|
+
(!(e != null && e.useAdditionalWeekYearTokens) && uS(k) || !(e != null && e.useAdditionalDayOfYearTokens) && cS(k)) && dS(k, t, String(n));
|
|
14228
|
+
const A = Sd[k[0]];
|
|
14229
|
+
return A(b, k, h.localize, x);
|
|
14230
14230
|
}).join("");
|
|
14231
14231
|
}
|
|
14232
14232
|
function xS(n) {
|
|
@@ -14778,8 +14778,8 @@ function cl(n) {
|
|
|
14778
14778
|
var la = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Fa = { exports: {} };
|
|
14779
14779
|
Fa.exports;
|
|
14780
14780
|
(function(n, t) {
|
|
14781
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, r = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", l = "[object Date]", c = "[object Error]", u = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", f = "[object Number]", m = "[object Object]", b = "[object Promise]", _ = "[object RegExp]", x = "[object Set]", T = "[object String]",
|
|
14782
|
-
H[r] = H[a] = H[C] = H[D] = H[o] = H[l] = H[S] = H[g] = H[p] = H[w] = H[
|
|
14781
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, r = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", l = "[object Date]", c = "[object Error]", u = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", f = "[object Number]", m = "[object Object]", b = "[object Promise]", _ = "[object RegExp]", x = "[object Set]", T = "[object String]", k = "[object Symbol]", A = "[object WeakMap]", C = "[object ArrayBuffer]", D = "[object DataView]", S = "[object Float32Array]", g = "[object Float64Array]", p = "[object Int8Array]", w = "[object Int16Array]", O = "[object Int32Array]", R = "[object Uint8Array]", U = "[object Uint8ClampedArray]", I = "[object Uint16Array]", z = "[object Uint32Array]", Z = /[\\^$.*+?()[\]{}|]/g, $ = /\w*$/, ot = /^\[object .+?Constructor\]$/, q = /^(?:0|[1-9]\d*)$/, H = {};
|
|
14782
|
+
H[r] = H[a] = H[C] = H[D] = H[o] = H[l] = H[S] = H[g] = H[p] = H[w] = H[O] = H[h] = H[f] = H[m] = H[_] = H[x] = H[T] = H[k] = H[R] = H[U] = H[I] = H[z] = !0, H[c] = H[u] = H[A] = !1;
|
|
14783
14783
|
var X = typeof la == "object" && la && la.Object === Object && la, et = typeof self == "object" && self && self.Object === Object && self, V = X || et || Function("return this")(), xt = t && !t.nodeType && t, St = xt && !0 && n && !n.nodeType && n, Y = St && St.exports === xt;
|
|
14784
14784
|
function B(v, E) {
|
|
14785
14785
|
return v.set(E[0], E[1]), v;
|
|
@@ -15132,7 +15132,7 @@ Fa.exports;
|
|
|
15132
15132
|
case g:
|
|
15133
15133
|
case p:
|
|
15134
15134
|
case w:
|
|
15135
|
-
case
|
|
15135
|
+
case O:
|
|
15136
15136
|
case R:
|
|
15137
15137
|
case U:
|
|
15138
15138
|
case I:
|
|
@@ -15147,7 +15147,7 @@ Fa.exports;
|
|
|
15147
15147
|
return ws(v);
|
|
15148
15148
|
case x:
|
|
15149
15149
|
return Oo(v, nt, F);
|
|
15150
|
-
case
|
|
15150
|
+
case k:
|
|
15151
15151
|
return Co(v);
|
|
15152
15152
|
}
|
|
15153
15153
|
}
|
|
@@ -16864,24 +16864,24 @@ function JD(n, t) {
|
|
|
16864
16864
|
const s = t.value.data, { display: r, metric_names: a } = t.value.meta, o = r && Object.keys(r), l = a && a.length > 1, c = r && o && o.length > 0, u = c && o.length > 1;
|
|
16865
16865
|
if (!s.length || !a)
|
|
16866
16866
|
return { datasets: [], labels: [] };
|
|
16867
|
-
const d = c && o || a, h = d[0], f = d.length > 1 ? d[1] : d[0], m = Object.fromEntries(l ? s.flatMap((p) => a.map((w,
|
|
16868
|
-
const R = p.event[h], U = c ? `${R},${w}` : `${
|
|
16867
|
+
const d = c && o || a, h = d[0], f = d.length > 1 ? d[1] : d[0], m = Object.fromEntries(l ? s.flatMap((p) => a.map((w, O) => {
|
|
16868
|
+
const R = p.event[h], U = c ? `${R},${w}` : `${O},${w}`, I = p.event[w];
|
|
16869
16869
|
return [U, I];
|
|
16870
16870
|
})) : s.map((p) => {
|
|
16871
|
-
const w = c ? `${p.event[h]},${p.event[f]}` : `${h},${f}`,
|
|
16872
|
-
return [w,
|
|
16871
|
+
const w = c ? `${p.event[h]},${p.event[f]}` : `${h},${f}`, O = p.event[a[0]];
|
|
16872
|
+
return [w, O];
|
|
16873
16873
|
})), b = Object.keys(m).reduce((p, w) => {
|
|
16874
|
-
const [
|
|
16875
|
-
return p[
|
|
16874
|
+
const [O] = w.split(","), R = m[w];
|
|
16875
|
+
return p[O] ? p[O] += R : p[O] = R, p;
|
|
16876
16876
|
}, {}), _ = Object.entries(b).sort(([, p], [, w]) => Number(w) - Number(p)).map(([p]) => p), x = r[h], T = r[f];
|
|
16877
|
-
let
|
|
16878
|
-
if (c && h === "country_code" && (
|
|
16877
|
+
let k = c && x && Object.entries(x).map(([p, w]) => ({ id: p, name: w.name })) || a.map((p) => ({ id: p, name: p })), A = c && T && Object.entries(T).map(([p, w]) => ({ id: p, name: w.name })) || a.map((p) => ({ id: p, name: p }));
|
|
16878
|
+
if (c && h === "country_code" && (k = k.map((p) => ({
|
|
16879
16879
|
...p,
|
|
16880
16880
|
name: Vl(p.id) || p.name
|
|
16881
16881
|
}))), c && f === "country_code" && (A = A.map((p) => ({
|
|
16882
16882
|
...p,
|
|
16883
16883
|
name: Vl(p.id) || p.name
|
|
16884
|
-
}))), h !== "status_code" && h !== "status_code_grouped" && (
|
|
16884
|
+
}))), h !== "status_code" && h !== "status_code_grouped" && (k.sort((p, w) => _.indexOf(p.id) - _.indexOf(w.id)), A.sort((p, w) => _.indexOf(p.id) - _.indexOf(w.id))), !k || !A)
|
|
16885
16885
|
return { labels: [], datasets: [] };
|
|
16886
16886
|
const C = QD({
|
|
16887
16887
|
isMultiMetric: l,
|
|
@@ -16890,9 +16890,9 @@ function JD(n, t) {
|
|
|
16890
16890
|
dimensionFieldNames: d,
|
|
16891
16891
|
barSegmentLabels: A,
|
|
16892
16892
|
pivotRecords: m,
|
|
16893
|
-
rowLabels:
|
|
16893
|
+
rowLabels: k,
|
|
16894
16894
|
colorPalette: n.colorPalette || ti
|
|
16895
|
-
}), D = c ?
|
|
16895
|
+
}), D = c ? k.map((p) => e && e.te(`chartLabels.${p.name}`) && e.t(`chartLabels.${p.name}`) || p.name) : a.map((p) => e && e.te(`chartLabels.${p}`) && e.t(`chartLabels.${p}`) || p), S = k.map((p) => p.id === "empty");
|
|
16896
16896
|
return {
|
|
16897
16897
|
labels: D,
|
|
16898
16898
|
datasets: C,
|
|
@@ -16946,20 +16946,20 @@ function ik(n, t) {
|
|
|
16946
16946
|
return console.error("Invalid step value:", b), { datasets: [], labels: [] };
|
|
16947
16947
|
if (!s.length)
|
|
16948
16948
|
return { datasets: [], labels: [] };
|
|
16949
|
-
const _ = ek(c), x = nk(c, u, b, _, s), T = /* @__PURE__ */ new Set(),
|
|
16949
|
+
const _ = ek(c), x = nk(c, u, b, _, s), T = /* @__PURE__ */ new Set(), k = s != null && s.length ? s.reduce((D, S) => {
|
|
16950
16950
|
const g = new Date(S.timestamp).valueOf(), p = S.event;
|
|
16951
16951
|
for (const w of a)
|
|
16952
16952
|
T.add(w), g in D || (D[g] = {}), w in D[g] || (D[g][w] = {});
|
|
16953
16953
|
for (const w of a)
|
|
16954
|
-
m.forEach((
|
|
16955
|
-
p[h] ===
|
|
16954
|
+
m.forEach((O) => {
|
|
16955
|
+
p[h] === O.id || w === O.id ? (D[g][w] || (D[g][w] = {}), D[g][w][O.name] = Math.round(Number(p[w]) * 1e3) / 1e3) : d.length || (D[g][w] || (D[g][w] = {}), D[g][w][O.name] = Math.round(Number(p[O.id]) * 1e3) / 1e3);
|
|
16956
16956
|
});
|
|
16957
16957
|
return D;
|
|
16958
16958
|
}, {}) : {}, C = [...a.length === 1 ? a.flatMap((D) => m.map((S) => [D, S.name, S.id === "empty"])) : m.map((D) => [D.name, D.name, D.id === "empty"])].map(([D, S, g], p) => {
|
|
16959
|
-
const w = x.map((I) => I in
|
|
16960
|
-
let { colorPalette:
|
|
16961
|
-
dt(
|
|
16962
|
-
const U = Pg(p, S, g,
|
|
16959
|
+
const w = x.map((I) => I in k && D in k[I] ? { x: I, y: k[I][D][S] || 0 } : { x: I, y: 0 });
|
|
16960
|
+
let { colorPalette: O, fill: R } = n;
|
|
16961
|
+
dt(O) && (O = ti);
|
|
16962
|
+
const U = Pg(p, S, g, O);
|
|
16963
16963
|
return {
|
|
16964
16964
|
rawDimension: S,
|
|
16965
16965
|
rawMetric: D,
|
|
@@ -17159,28 +17159,28 @@ function yk(n, t = {}) {
|
|
|
17159
17159
|
buttons: b = [0]
|
|
17160
17160
|
} = t, _ = Vt(
|
|
17161
17161
|
(e = Kt(u)) != null ? e : { x: 0, y: 0 }
|
|
17162
|
-
), x = Vt(), T = (S) => i ? i.includes(S.pointerType) : !0,
|
|
17162
|
+
), x = Vt(), T = (S) => i ? i.includes(S.pointerType) : !0, k = (S) => {
|
|
17163
17163
|
Kt(s) && S.preventDefault(), Kt(r) && S.stopPropagation();
|
|
17164
17164
|
}, A = (S) => {
|
|
17165
17165
|
var g;
|
|
17166
17166
|
if (!Kt(b).includes(S.button) || Kt(t.disabled) || !T(S) || Kt(a) && S.target !== Kt(n))
|
|
17167
17167
|
return;
|
|
17168
|
-
const p = Kt(f), w = (g = p == null ? void 0 : p.getBoundingClientRect) == null ? void 0 : g.call(p),
|
|
17169
|
-
x: S.clientX - (p ?
|
|
17170
|
-
y: S.clientY - (p ?
|
|
17168
|
+
const p = Kt(f), w = (g = p == null ? void 0 : p.getBoundingClientRect) == null ? void 0 : g.call(p), O = Kt(n).getBoundingClientRect(), R = {
|
|
17169
|
+
x: S.clientX - (p ? O.left - w.left + p.scrollLeft : O.left),
|
|
17170
|
+
y: S.clientY - (p ? O.top - w.top + p.scrollTop : O.top)
|
|
17171
17171
|
};
|
|
17172
|
-
(c == null ? void 0 : c(R, S)) !== !1 && (x.value = R,
|
|
17172
|
+
(c == null ? void 0 : c(R, S)) !== !1 && (x.value = R, k(S));
|
|
17173
17173
|
}, C = (S) => {
|
|
17174
17174
|
if (Kt(t.disabled) || !T(S) || !x.value)
|
|
17175
17175
|
return;
|
|
17176
17176
|
const g = Kt(f), p = Kt(n).getBoundingClientRect();
|
|
17177
|
-
let { x: w, y:
|
|
17178
|
-
(d === "x" || d === "both") && (w = S.clientX - x.value.x, g && (w = Math.min(Math.max(0, w), g.scrollWidth - p.width))), (d === "y" || d === "both") && (
|
|
17177
|
+
let { x: w, y: O } = _.value;
|
|
17178
|
+
(d === "x" || d === "both") && (w = S.clientX - x.value.x, g && (w = Math.min(Math.max(0, w), g.scrollWidth - p.width))), (d === "y" || d === "both") && (O = S.clientY - x.value.y, g && (O = Math.min(Math.max(0, O), g.scrollHeight - p.height))), _.value = {
|
|
17179
17179
|
x: w,
|
|
17180
|
-
y:
|
|
17181
|
-
}, o == null || o(_.value, S),
|
|
17180
|
+
y: O
|
|
17181
|
+
}, o == null || o(_.value, S), k(S);
|
|
17182
17182
|
}, D = (S) => {
|
|
17183
|
-
Kt(t.disabled) || !T(S) || x.value && (x.value = void 0, l == null || l(_.value, S),
|
|
17183
|
+
Kt(t.disabled) || !T(S) || x.value && (x.value = void 0, l == null || l(_.value, S), k(S));
|
|
17184
17184
|
};
|
|
17185
17185
|
if (Ng) {
|
|
17186
17186
|
const S = () => {
|
|
@@ -17312,17 +17312,17 @@ function Tk({
|
|
|
17312
17312
|
renderPoints: o = void 0,
|
|
17313
17313
|
type: l
|
|
17314
17314
|
}) {
|
|
17315
|
-
const u = e !== void 0 && n !== void 0 ? wk(e) : zg(), d = n !== void 0 ? n : "static-chart-key", h = L(() => t.reduce((w, { timestamps:
|
|
17315
|
+
const u = e !== void 0 && n !== void 0 ? wk(e) : zg(), d = n !== void 0 ? n : "static-chart-key", h = L(() => t.reduce((w, { timestamps: O }) => [...w, ...O], [])), f = L(() => i || h.value.reduce((w, O) => w === 0 ? O : Math.min(w, O), 0)), m = L(() => s || h.value.reduce((w, O) => Math.max(w, O), 0));
|
|
17316
17316
|
qc(() => {
|
|
17317
17317
|
u.minStamps[d] = f.value, u.maxStamps[d] = m.value, o !== void 0 && (u.renderPoints[d] = o);
|
|
17318
17318
|
});
|
|
17319
|
-
const b = L(() => Object.values(u.minStamps).reduce((w,
|
|
17319
|
+
const b = L(() => Object.values(u.minStamps).reduce((w, O) => w === 0 ? O : Math.min(w, O), 0)), _ = L(() => Object.values(u.maxStamps).reduce((w, O) => Math.max(w, O), 0)), x = L(() => {
|
|
17320
17320
|
const w = Object.values(u.renderPoints);
|
|
17321
|
-
return w.length === 0 ? 24 : w.reduce((
|
|
17321
|
+
return w.length === 0 ? 24 : w.reduce((O, R) => Math.max(O, R), 2);
|
|
17322
17322
|
}), T = L(() => {
|
|
17323
17323
|
const w = _.value - b.value;
|
|
17324
17324
|
return Math.ceil(w / x.value);
|
|
17325
|
-
}),
|
|
17325
|
+
}), k = L(() => t.length > 1), A = L(() => t.map(({ timestamps: w, color: O, label: R }) => ({
|
|
17326
17326
|
data: xk({
|
|
17327
17327
|
bucketCount: x.value,
|
|
17328
17328
|
minStamp: b.value,
|
|
@@ -17333,33 +17333,33 @@ function Tk({
|
|
|
17333
17333
|
y: Z
|
|
17334
17334
|
})),
|
|
17335
17335
|
label: R,
|
|
17336
|
-
...(l === "sparkline_bar" ||
|
|
17337
|
-
...l !== "sparkline_bar" &&
|
|
17338
|
-
...
|
|
17336
|
+
...(l === "sparkline_bar" || k.value) && O && { backgroundColor: O },
|
|
17337
|
+
...l !== "sparkline_bar" && O && { borderColor: O },
|
|
17338
|
+
...k.value && l !== "sparkline_bar" && { fill: !0 }
|
|
17339
17339
|
}))), C = L(() => {
|
|
17340
17340
|
var R, U;
|
|
17341
|
-
const w = ((U = (R = A.value[0]) == null ? void 0 : R.data) == null ? void 0 : U.length) ?? 0,
|
|
17341
|
+
const w = ((U = (R = A.value[0]) == null ? void 0 : R.data) == null ? void 0 : U.length) ?? 0, O = [];
|
|
17342
17342
|
for (let I = 0; I < w; I++) {
|
|
17343
17343
|
let z = 0;
|
|
17344
17344
|
for (let Z = 0; Z < A.value.length; Z++)
|
|
17345
17345
|
z += A.value[Z].data[I].y;
|
|
17346
|
-
|
|
17346
|
+
O.push(z);
|
|
17347
17347
|
}
|
|
17348
|
-
return
|
|
17348
|
+
return O;
|
|
17349
17349
|
}), D = L(() => {
|
|
17350
|
-
const w = C.value.reduce((
|
|
17350
|
+
const w = C.value.reduce((O, R) => Math.max(O, R), 0);
|
|
17351
17351
|
return Math.max(w, a ?? 0);
|
|
17352
17352
|
}), S = L(() => {
|
|
17353
|
-
const w = A.value.reduce((U, { data: I }) => [...U, ...I.map(({ y: z }) => z)], []),
|
|
17353
|
+
const w = A.value.reduce((U, { data: I }) => [...U, ...I.map(({ y: z }) => z)], []), O = w.length ? w[0] : 0, R = w.reduce((U, I) => Math.min(U, I), O);
|
|
17354
17354
|
return r === void 0 ? R : Math.min(R, r);
|
|
17355
17355
|
});
|
|
17356
17356
|
qc(() => {
|
|
17357
17357
|
u.maxCounts[d] = D.value, u.minCounts[d] = S.value;
|
|
17358
17358
|
});
|
|
17359
17359
|
const g = L(() => {
|
|
17360
|
-
const w = Object.values(u.minCounts),
|
|
17361
|
-
return w.reduce((R, U) => Math.min(R, U),
|
|
17362
|
-
}), p = L(() => Object.values(u.maxCounts).reduce((w,
|
|
17360
|
+
const w = Object.values(u.minCounts), O = w.length ? w[0] : 0;
|
|
17361
|
+
return w.reduce((R, U) => Math.min(R, U), O);
|
|
17362
|
+
}), p = L(() => Object.values(u.maxCounts).reduce((w, O) => Math.max(w, O), 0));
|
|
17363
17363
|
return ni(() => {
|
|
17364
17364
|
n !== void 0 && e !== void 0 && Sk(n, e);
|
|
17365
17365
|
}), {
|
|
@@ -17747,15 +17747,15 @@ function Xk(n, t) {
|
|
|
17747
17747
|
return Jg.includes(e) ? e : Kk(n, t);
|
|
17748
17748
|
}
|
|
17749
17749
|
function Kk(n, t) {
|
|
17750
|
-
const { x: e, y: i, x2: s, y2: r, width: a, height: o, pointX: l, pointY: c, centerX: u, centerY: d, rotation: h } = n, f = { x: u, y: d }, m = t.start, b = ei(a, m), _ = ei(o, m), x = [e, e + b, e + b, s], T = [i + _, r, i, r],
|
|
17750
|
+
const { x: e, y: i, x2: s, y2: r, width: a, height: o, pointX: l, pointY: c, centerX: u, centerY: d, rotation: h } = n, f = { x: u, y: d }, m = t.start, b = ei(a, m), _ = ei(o, m), x = [e, e + b, e + b, s], T = [i + _, r, i, r], k = [];
|
|
17751
17751
|
for (let A = 0; A < 4; A++) {
|
|
17752
17752
|
const C = Pi({ x: x[A], y: T[A] }, f, te(h));
|
|
17753
|
-
|
|
17753
|
+
k.push({
|
|
17754
17754
|
position: Jg[A],
|
|
17755
17755
|
distance: ss(C, { x: l, y: c })
|
|
17756
17756
|
});
|
|
17757
17757
|
}
|
|
17758
|
-
return
|
|
17758
|
+
return k.sort((A, C) => A.distance - C.distance)[0].position;
|
|
17759
17759
|
}
|
|
17760
17760
|
function Zk(n, t, e) {
|
|
17761
17761
|
const { pointX: i, pointY: s } = n, r = t.margin;
|
|
@@ -18612,8 +18612,8 @@ function Oh(n, { x: t, y: e }, { angle: i, adjust: s }, r) {
|
|
|
18612
18612
|
!r || !r.display || (n.save(), n.translate(t, e), n.rotate(i), ec(n, 0, -s, r), n.restore());
|
|
18613
18613
|
}
|
|
18614
18614
|
function LO(n, t, e, i) {
|
|
18615
|
-
const { x: s, y: r, x2: a, y2: o, options: l } = t, { startOpts: c, endOpts: u, startAdjust: d, endAdjust: h } = am(t), f = { x: s, y: r }, m = { x: a, y: o }, b = wh(f, e, m, 0), _ = wh(f, e, m, 1) - pt, x = Jl(f, e, m, d / i), T = Jl(f, e, m, 1 - h / i),
|
|
18616
|
-
n.beginPath(),
|
|
18615
|
+
const { x: s, y: r, x2: a, y2: o, options: l } = t, { startOpts: c, endOpts: u, startAdjust: d, endAdjust: h } = am(t), f = { x: s, y: r }, m = { x: a, y: o }, b = wh(f, e, m, 0), _ = wh(f, e, m, 1) - pt, x = Jl(f, e, m, d / i), T = Jl(f, e, m, 1 - h / i), k = new Path2D();
|
|
18616
|
+
n.beginPath(), k.moveTo(x.x, x.y), k.quadraticCurveTo(e.x, e.y, T.x, T.y), n.shadowColor = l.borderShadowColor, n.stroke(k), t.path = k, t.ctx = n, Oh(n, x, { angle: b, adjust: d }, c), Oh(n, T, { angle: _, adjust: h }, u);
|
|
18617
18617
|
}
|
|
18618
18618
|
class Cr extends de {
|
|
18619
18619
|
inRange(t, e, i, s) {
|
|
@@ -19209,8 +19209,8 @@ const ZO = { class: "zoom-timerange-container" }, QO = { class: "zoom-timerange-
|
|
|
19209
19209
|
])) : Nt("", !0)
|
|
19210
19210
|
]),
|
|
19211
19211
|
rt("ul", pC, [
|
|
19212
|
-
(j(!0), at(xi, null, ts(n.state.tooltipSeries, ({ backgroundColor: x, borderColor: T, label:
|
|
19213
|
-
key:
|
|
19212
|
+
(j(!0), at(xi, null, ts(n.state.tooltipSeries, ({ backgroundColor: x, borderColor: T, label: k, value: A, isSegmentEmpty: C }, D) => (j(), at(xi, {
|
|
19213
|
+
key: k + D
|
|
19214
19214
|
}, [
|
|
19215
19215
|
n.state.tooltipSeries.length ? (j(), at("li", yC, [
|
|
19216
19216
|
rt("div", {
|
|
@@ -19219,7 +19219,7 @@ const ZO = { class: "zoom-timerange-container" }, QO = { class: "zoom-timerange-
|
|
|
19219
19219
|
}, null, 4),
|
|
19220
19220
|
rt("span", {
|
|
19221
19221
|
class: rn(["display-label", { empty: C }])
|
|
19222
|
-
}, lt(
|
|
19222
|
+
}, lt(k), 3),
|
|
19223
19223
|
rt("span", bC, lt(A), 1)
|
|
19224
19224
|
])) : Nt("", !0)
|
|
19225
19225
|
], 64))), 128))
|
|
@@ -19419,7 +19419,7 @@ const PC = ["id"], RC = ["id"], EC = { class: "axis-tooltip-content" }, IC = "10
|
|
|
19419
19419
|
text: "",
|
|
19420
19420
|
offset: -50
|
|
19421
19421
|
// Avoids App Shell obstruction
|
|
19422
|
-
}), T = Tt(t, "metricUnit"),
|
|
19422
|
+
}), T = Tt(t, "metricUnit"), k = L(() => t.orientation === "horizontal"), A = lr({
|
|
19423
19423
|
showTooltip: !1,
|
|
19424
19424
|
tooltipContext: "",
|
|
19425
19425
|
// set in tooltipBehaviour
|
|
@@ -19435,7 +19435,7 @@ const PC = ["id"], RC = ["id"], EC = { class: "axis-tooltip-content" }, IC = "10
|
|
|
19435
19435
|
width: 0,
|
|
19436
19436
|
height: 0,
|
|
19437
19437
|
interactionMode: "idle",
|
|
19438
|
-
chartType:
|
|
19438
|
+
chartType: k.value ? "horizontal_bar" : "vertical_bar",
|
|
19439
19439
|
chartID: r,
|
|
19440
19440
|
chartTooltipSortFn: t.chartTooltipSortFn
|
|
19441
19441
|
}), { tooltipAbsoluteLeft: C, tooltipAbsoluteTop: D } = yt.useTooltipAbsolutePosition(
|
|
@@ -19483,11 +19483,11 @@ const PC = ["id"], RC = ["id"], EC = { class: "axis-tooltip-content" }, IC = "10
|
|
|
19483
19483
|
}, 100)), $ = L(() => {
|
|
19484
19484
|
var B, K;
|
|
19485
19485
|
const Y = (K = (B = t.chartData) == null ? void 0 : B.labels) == null ? void 0 : K.length;
|
|
19486
|
-
return d.value && Y && !
|
|
19486
|
+
return d.value && Y && !k.value ? `${Math.max(Y * (NC + Eh), I.value)}px` : IC;
|
|
19487
19487
|
}), ot = L(() => {
|
|
19488
19488
|
var B, K;
|
|
19489
19489
|
const Y = (K = (B = t.chartData) == null ? void 0 : B.labels) == null ? void 0 : K.length;
|
|
19490
|
-
return d.value && Y &&
|
|
19490
|
+
return d.value && Y && k.value ? `${Math.max(Y * (FC + Eh), z.value)}px` : LC;
|
|
19491
19491
|
});
|
|
19492
19492
|
yt.useReportChartDataForSynthetics(Tt(t, "chartData"), Tt(t, "syntheticsDataKey")), ii(() => {
|
|
19493
19493
|
t.annotations && Fe.register(Ph), o.value && (I.value = o.value.offsetWidth, z.value = o.value.offsetHeight, Z.observe(o.value));
|
|
@@ -19501,7 +19501,7 @@ const PC = ["id"], RC = ["id"], EC = { class: "axis-tooltip-content" }, IC = "10
|
|
|
19501
19501
|
stacked: Tt(t, "stacked"),
|
|
19502
19502
|
metricAxesTitle: Tt(t, "metricAxesTitle"),
|
|
19503
19503
|
dimensionAxesTitle: Tt(t, "dimensionAxesTitle"),
|
|
19504
|
-
indexAxis:
|
|
19504
|
+
indexAxis: k.value ? "y" : "x",
|
|
19505
19505
|
numLabels: U
|
|
19506
19506
|
});
|
|
19507
19507
|
return {
|
|
@@ -19539,7 +19539,7 @@ const PC = ["id"], RC = ["id"], EC = { class: "axis-tooltip-content" }, IC = "10
|
|
|
19539
19539
|
return null;
|
|
19540
19540
|
}), V = (Y) => {
|
|
19541
19541
|
const B = Y.target;
|
|
19542
|
-
if (et.value && H.value && !
|
|
19542
|
+
if (et.value && H.value && !k.value) {
|
|
19543
19543
|
const K = et.value.scale, J = et.value.targetCtx, tt = et.value.width, Q = et.value.height, _t = H.value, Dt = _t.canvas;
|
|
19544
19544
|
J.fillStyle = "white", B.scrollLeft >= zC && B.scrollLeft <= UC ? (J.globalCompositeOperation = "source-over", J.clearRect(0, 0, tt, Q), J.drawImage(Dt, 0, 0, tt, Q, 0, 0, tt, Q), J.globalCompositeOperation = "destination-over", J.fillRect(0, 0, tt, Q)) : (J.globalCompositeOperation = "source-over", J.fillRect(0, (_t.scales.y.height + _t.scales.y.top + HC) * K, tt, _t.scales.x.height * K));
|
|
19545
19545
|
}
|
|
@@ -19854,8 +19854,8 @@ const ZC = he({
|
|
|
19854
19854
|
x && x !== T && (XC(b, x), _ = !0);
|
|
19855
19855
|
}
|
|
19856
19856
|
if (h) {
|
|
19857
|
-
const x = Gi(h.labels), T = Gi(m.labels),
|
|
19858
|
-
x !== T && (hm(b.config.data, x), _ = !0),
|
|
19857
|
+
const x = Gi(h.labels), T = Gi(m.labels), k = Gi(h.datasets), A = Gi(m.datasets);
|
|
19858
|
+
x !== T && (hm(b.config.data, x), _ = !0), k && k !== A && (fm(b.config.data, k, n.datasetIdKey), _ = !0);
|
|
19859
19859
|
}
|
|
19860
19860
|
_ && Bh(() => {
|
|
19861
19861
|
l(b);
|
|
@@ -19940,7 +19940,7 @@ const gm = /* @__PURE__ */ Yc("bar", Js), mm = /* @__PURE__ */ Yc("doughnut", An
|
|
|
19940
19940
|
afterUpdate(S) {
|
|
19941
19941
|
a.value = S.options.plugins.legend.labels.generateLabels(S).map((g) => ({ ...g, value: t.legendValues && t.legendValues[g.text], hidden: !1 }));
|
|
19942
19942
|
}
|
|
19943
|
-
}, h = L(() => [d]), f = L(() => [t.chartData.datasets.reduce((g, p) => (g.labels.push(p.label), g.backgroundColor.push(p.backgroundColor), g.hoverBorderColor.push(Dl(p.backgroundColor).saturate(0.5).darken(0.15).hexString()), g.data.push(p.data.reduce((w,
|
|
19943
|
+
}, h = L(() => [d]), f = L(() => [t.chartData.datasets.reduce((g, p) => (g.labels.push(p.label), g.backgroundColor.push(p.backgroundColor), g.hoverBorderColor.push(Dl(p.backgroundColor).saturate(0.5).darken(0.15).hexString()), g.data.push(p.data.reduce((w, O) => w + O, 0)), g), {
|
|
19944
19944
|
labels: [],
|
|
19945
19945
|
backgroundColor: [],
|
|
19946
19946
|
borderColor: "#ffffff",
|
|
@@ -19961,7 +19961,7 @@ const gm = /* @__PURE__ */ Yc("bar", Js), mm = /* @__PURE__ */ Yc("doughnut", An
|
|
|
19961
19961
|
datasets: f.value
|
|
19962
19962
|
}));
|
|
19963
19963
|
yt.useReportChartDataForSynthetics(Tt(t, "chartData"), Tt(t, "syntheticsDataKey"));
|
|
19964
|
-
const { options:
|
|
19964
|
+
const { options: k } = yt.useDonutChartOptions({
|
|
19965
19965
|
tooltipState: l,
|
|
19966
19966
|
legendID: s
|
|
19967
19967
|
}), A = Vt(), C = (S) => ({
|
|
@@ -19981,7 +19981,7 @@ const gm = /* @__PURE__ */ Yc("bar", Js), mm = /* @__PURE__ */ Yc("doughnut", An
|
|
|
19981
19981
|
ref: A,
|
|
19982
19982
|
"chart-id": G(r),
|
|
19983
19983
|
data: T.value,
|
|
19984
|
-
options: G(
|
|
19984
|
+
options: G(k),
|
|
19985
19985
|
plugins: h.value
|
|
19986
19986
|
}, null, 8, ["chart-id", "data", "options", "plugins"]),
|
|
19987
19987
|
n.showCenterMetric && b.value ? (j(), at("div", JC, [
|
|
@@ -20328,7 +20328,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
20328
20328
|
chartID: h,
|
|
20329
20329
|
chartTooltipSortFn: e.chartTooltipSortFn,
|
|
20330
20330
|
interactionMode: "idle"
|
|
20331
|
-
}), { tooltipAbsoluteLeft:
|
|
20331
|
+
}), { tooltipAbsoluteLeft: k, tooltipAbsoluteTop: A } = yt.useTooltipAbsolutePosition(
|
|
20332
20332
|
b,
|
|
20333
20333
|
T
|
|
20334
20334
|
), C = {
|
|
@@ -20354,7 +20354,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
20354
20354
|
threshold: Tt(e, "threshold")
|
|
20355
20355
|
});
|
|
20356
20356
|
yt.useReportChartDataForSynthetics(Tt(e, "chartData"), Tt(e, "syntheticsDataKey"));
|
|
20357
|
-
const
|
|
20357
|
+
const O = (H) => ({
|
|
20358
20358
|
[We.Bottom]: "column",
|
|
20359
20359
|
[We.Hidden]: "hidden"
|
|
20360
20360
|
})[H], R = ({ width: H, height: X }) => {
|
|
@@ -20411,7 +20411,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
20411
20411
|
(H = u.value) != null && H.chart && (u.value.chart.canvas.removeEventListener("dragSelect", $), u.value.chart.canvas.removeEventListener("dragSelectMove", ot)), document.removeEventListener("click", q, !0);
|
|
20412
20412
|
}), (H, X) => (j(), at("div", {
|
|
20413
20413
|
ref: "chartParent",
|
|
20414
|
-
class: rn(["chart-parent",
|
|
20414
|
+
class: rn(["chart-parent", O(G(m))]),
|
|
20415
20415
|
"data-testid": "line-chart-parent"
|
|
20416
20416
|
}, [
|
|
20417
20417
|
rt("div", {
|
|
@@ -20441,7 +20441,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
20441
20441
|
}, null, 8, ["chart-id", "data", "options", "plugins"])) : Nt("", !0)
|
|
20442
20442
|
]),
|
|
20443
20443
|
Zt(no, {
|
|
20444
|
-
"absolute-left": G(
|
|
20444
|
+
"absolute-left": G(k),
|
|
20445
20445
|
"absolute-top": G(A),
|
|
20446
20446
|
"data-testid": "tooltip",
|
|
20447
20447
|
granularity: n.granularity,
|
|
@@ -20520,7 +20520,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
20520
20520
|
}), m = L(() => s.t("limitedResultsShown", { maxReturned: h.value })), b = L(() => [
|
|
20521
20521
|
"vertical_bar",
|
|
20522
20522
|
"horizontal_bar"
|
|
20523
|
-
].includes(i.chartOptions.type)), _ = L(() => ["timeseries_bar", "timeseries_line"].some((I) => I === i.chartOptions.type)), x = L(() => i.chartOptions.type === "donut"), T = L(() => i.chartOptions.type.includes("vertical") ? "vertical" : "horizontal"),
|
|
20523
|
+
].includes(i.chartOptions.type)), _ = L(() => ["timeseries_bar", "timeseries_line"].some((I) => I === i.chartOptions.type)), x = L(() => i.chartOptions.type === "donut"), T = L(() => i.chartOptions.type.includes("vertical") ? "vertical" : "horizontal"), k = L(() => {
|
|
20524
20524
|
var Z, $;
|
|
20525
20525
|
if (!((Z = i.chartData) != null && Z.meta.metric_names) || !(($ = i.chartData) != null && $.meta.metric_units))
|
|
20526
20526
|
return;
|
|
@@ -20560,7 +20560,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
20560
20560
|
return s.te(`granularityAxisTitles.${I}`) ? s.t(`granularityAxisTitles.${I}`) : I;
|
|
20561
20561
|
}), S = L(() => i.emptyStateTitle || s.t("noDataAvailableTitle")), g = L(() => i.emptyStateDescription || s.t("noDataAvailableDescription")), p = L(() => _.value ? yT(r.value) : i.chartData && i.chartData.meta && i.chartData.data.length), w = L(() => i.chartData.meta.granularity_ms ? cl(i.chartData.meta.granularity_ms) || "hourly" : cl(
|
|
20562
20562
|
new Date(i.chartData.data[1].timestamp).getTime() - new Date(i.chartData.data[0].timestamp).getTime()
|
|
20563
|
-
) || "hourly"),
|
|
20563
|
+
) || "hourly"), O = L(() => i.chartOptions.chartLegendSortFn ? i.chartOptions.chartLegendSortFn : (I, z) => I.text === s.t("chartLabels.____OTHER____") ? 1 : z.text === s.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(I.text, 10)) && !isNaN(parseInt(z.text, 10)) ? I.text < z.text ? -1 : 1 : I.value && z.value ? z.value.raw - I.value.raw : 0), R = L(() => i.chartOptions.chartTooltipSortFn ? i.chartOptions.chartTooltipSortFn : (I, z) => I.label === s.t("chartLabels.____OTHER____") ? 1 : z.label === s.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(I.label, 10)) && !isNaN(parseInt(z.label, 10)) ? I.label < z.label ? -1 : 1 : I.value && z.value ? z.rawValue - I.rawValue : 0), U = L(() => [
|
|
20564
20564
|
...i.timeseriesZoom ? [{
|
|
20565
20565
|
label: s.t("zoom_action_items.zoom"),
|
|
20566
20566
|
key: "zoom-in",
|
|
@@ -20607,7 +20607,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
20607
20607
|
key: 0,
|
|
20608
20608
|
brush: a.value,
|
|
20609
20609
|
"chart-data": r.value,
|
|
20610
|
-
"chart-legend-sort-fn":
|
|
20610
|
+
"chart-legend-sort-fn": O.value,
|
|
20611
20611
|
"chart-tooltip-sort-fn": R.value,
|
|
20612
20612
|
"dimension-axes-title": D.value,
|
|
20613
20613
|
fill: n.chartOptions.stacked,
|
|
@@ -20619,7 +20619,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
20619
20619
|
"synthetics-data-key": n.syntheticsDataKey,
|
|
20620
20620
|
threshold: n.chartOptions.threshold,
|
|
20621
20621
|
"time-range-ms": o.value,
|
|
20622
|
-
"tooltip-metric-display":
|
|
20622
|
+
"tooltip-metric-display": k.value,
|
|
20623
20623
|
"tooltip-title": n.tooltipTitle,
|
|
20624
20624
|
type: n.chartOptions.type,
|
|
20625
20625
|
"zoom-action-items": U.value,
|
|
@@ -20629,7 +20629,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
20629
20629
|
key: 1,
|
|
20630
20630
|
annotations: n.showAnnotations,
|
|
20631
20631
|
"chart-data": r.value,
|
|
20632
|
-
"chart-legend-sort-fn":
|
|
20632
|
+
"chart-legend-sort-fn": O.value,
|
|
20633
20633
|
"chart-tooltip-sort-fn": R.value,
|
|
20634
20634
|
"data-testid": "bar-chart-container",
|
|
20635
20635
|
"dimension-axes-title": C.value,
|
|
@@ -20639,7 +20639,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
20639
20639
|
orientation: T.value,
|
|
20640
20640
|
stacked: n.chartOptions.stacked,
|
|
20641
20641
|
"synthetics-data-key": n.syntheticsDataKey,
|
|
20642
|
-
"tooltip-metric-display":
|
|
20642
|
+
"tooltip-metric-display": k.value,
|
|
20643
20643
|
"tooltip-title": n.tooltipTitle
|
|
20644
20644
|
}, null, 8, ["annotations", "chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "dimension-axes-title", "legend-values", "metric-axes-title", "metric-unit", "orientation", "stacked", "synthetics-data-key", "tooltip-metric-display", "tooltip-title"])) : x.value ? (j(), It(iA, {
|
|
20645
20645
|
key: 2,
|
|
@@ -20652,7 +20652,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
20652
20652
|
"show-center-metric": n.chartOptions.showCenterMetric,
|
|
20653
20653
|
"synthetics-data-key": n.syntheticsDataKey,
|
|
20654
20654
|
"tooltip-dimension-display": C.value,
|
|
20655
|
-
"tooltip-metric-display":
|
|
20655
|
+
"tooltip-metric-display": k.value,
|
|
20656
20656
|
"tooltip-title": n.tooltipTitle
|
|
20657
20657
|
}, null, 8, ["chart-data", "dataset-colors", "legend-position", "legend-values", "metric-name", "metric-unit", "show-center-metric", "synthetics-data-key", "tooltip-dimension-display", "tooltip-metric-display", "tooltip-title"])) : Nt("", !0)
|
|
20658
20658
|
])) : (j(), It($, {
|
|
@@ -20846,25 +20846,26 @@ const mA = /* @__PURE__ */ he({
|
|
|
20846
20846
|
const S = a.value[D].event[o.value];
|
|
20847
20847
|
return typeof S != "number" || isNaN(S) ? null : S;
|
|
20848
20848
|
}), f = L(() => {
|
|
20849
|
-
var g, p
|
|
20849
|
+
var g, p;
|
|
20850
20850
|
const C = h.value;
|
|
20851
20851
|
if (C === null)
|
|
20852
20852
|
return "";
|
|
20853
|
-
|
|
20853
|
+
const D = o.value ? (p = (g = s.data.meta) == null ? void 0 : g.metric_units) == null ? void 0 : p[o.value] : void 0;
|
|
20854
|
+
if (D === "usd")
|
|
20854
20855
|
return i(C);
|
|
20855
|
-
if (
|
|
20856
|
+
if (D === "bytes")
|
|
20856
20857
|
return e(C);
|
|
20857
20858
|
if (C >= 1e9) {
|
|
20858
|
-
const
|
|
20859
|
-
return
|
|
20859
|
+
const w = (C / 1e9).toFixed(1);
|
|
20860
|
+
return w.endsWith(".0") ? `${Math.floor(C / 1e9)}B` : `${w}B`;
|
|
20860
20861
|
}
|
|
20861
20862
|
if (C >= 1e7) {
|
|
20862
|
-
const
|
|
20863
|
-
return
|
|
20863
|
+
const w = (C / 1e6).toFixed(1);
|
|
20864
|
+
return w.endsWith(".0") ? `${Math.floor(C / 1e6)}M` : `${w}M`;
|
|
20864
20865
|
}
|
|
20865
20866
|
const S = s.decimalPoints && typeof s.decimalPoints == "number" ? s.decimalPoints : uh;
|
|
20866
20867
|
return C.toLocaleString("en-US", { maximumFractionDigits: S });
|
|
20867
|
-
}), m = L(() => Hm(h.value ?? 0, d.value ?? 0) || 0), b = L(() => Bm(m.value, !0, s.increaseIsBad)), _ = L(() => Wm(b.value)), x = L(() => Ym(m.value, !0, t.t("singleValue.trend.not_available"))), T = $m(L(() => s.showTrend), void 0, L(() => s.data.meta)),
|
|
20868
|
+
}), m = L(() => Hm(h.value ?? 0, d.value ?? 0) || 0), b = L(() => Bm(m.value, !0, s.increaseIsBad)), _ = L(() => Wm(b.value)), x = L(() => Ym(m.value, !0, t.t("singleValue.trend.not_available"))), T = $m(L(() => s.showTrend), void 0, L(() => s.data.meta)), k = (C) => C > 0 ? "positive" : C < 0 ? "negative" : "neutral", A = (C) => C > 0 ? DT : C < 0 ? MT : qd;
|
|
20868
20869
|
return ii(() => {
|
|
20869
20870
|
var C, D, S, g;
|
|
20870
20871
|
!s.showTrend && ((D = (C = s.data) == null ? void 0 : C.data) == null ? void 0 : D.length) > 1 ? console.warn("SingleValue chart should only be used with a single data point. Data length:", s.data.data.length) : s.showTrend && ((g = (S = s.data) == null ? void 0 : S.data) == null ? void 0 : g.length) !== 2 && console.warn("SingleValue with trend expects exactly 2 data points. Data length:", s.data.data.length);
|
|
@@ -20890,7 +20891,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
20890
20891
|
]),
|
|
20891
20892
|
n.showTrend ? (j(), at("div", RA, [
|
|
20892
20893
|
rt("div", {
|
|
20893
|
-
class: rn(["trend-change",
|
|
20894
|
+
class: rn(["trend-change", k(b.value)]),
|
|
20894
20895
|
"data-testid": "single-value-trend"
|
|
20895
20896
|
}, [
|
|
20896
20897
|
b.value !== 0 ? (j(), It(Pm(_.value), {
|
|
@@ -20910,7 +20911,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
20910
20911
|
], 2);
|
|
20911
20912
|
};
|
|
20912
20913
|
}
|
|
20913
|
-
}), LA = /* @__PURE__ */ Ye(IA, [["__scopeId", "data-v-
|
|
20914
|
+
}), LA = /* @__PURE__ */ Ye(IA, [["__scopeId", "data-v-93bb6ea6"]]), NA = { class: "simple-chart-shell" }, FA = {
|
|
20914
20915
|
key: 1,
|
|
20915
20916
|
class: "analytics-chart-parent"
|
|
20916
20917
|
}, zA = /* @__PURE__ */ he({
|
|
@@ -21072,9 +21073,9 @@ const mA = /* @__PURE__ */ he({
|
|
|
21072
21073
|
const p = typeof g == "number" ? g : Number(g);
|
|
21073
21074
|
if (Number.isNaN(p))
|
|
21074
21075
|
return "–";
|
|
21075
|
-
const w = ((U = (R = t.data.meta) == null ? void 0 : R.metric_units) == null ? void 0 : U[S]) || "count",
|
|
21076
|
+
const w = ((U = (R = t.data.meta) == null ? void 0 : R.metric_units) == null ? void 0 : U[S]) || "count", O = ["count", "count/minute", "token count"].includes(w);
|
|
21076
21077
|
return i(p, w, {
|
|
21077
|
-
approximate:
|
|
21078
|
+
approximate: O,
|
|
21078
21079
|
isBytes1024: !0,
|
|
21079
21080
|
translateUnit: (I) => C(I, p)
|
|
21080
21081
|
});
|
|
@@ -21087,11 +21088,11 @@ const mA = /* @__PURE__ */ he({
|
|
|
21087
21088
|
deleted: b(S),
|
|
21088
21089
|
original: S
|
|
21089
21090
|
};
|
|
21090
|
-
return c.value && (p.value = x(S)), l.value.forEach((w,
|
|
21091
|
-
|
|
21091
|
+
return c.value && (p.value = x(S)), l.value.forEach((w, O) => {
|
|
21092
|
+
O !== 0 && (p[w] = _(S, w));
|
|
21092
21093
|
}), p;
|
|
21093
21094
|
}) : [];
|
|
21094
|
-
}),
|
|
21095
|
+
}), k = L(() => {
|
|
21095
21096
|
if (!r.value)
|
|
21096
21097
|
return "";
|
|
21097
21098
|
if (t.data.meta) {
|
|
@@ -21117,7 +21118,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
21117
21118
|
"title-tag": n.titleTag
|
|
21118
21119
|
}, Wh({
|
|
21119
21120
|
default: Ut(() => [
|
|
21120
|
-
|
|
21121
|
+
k.value ? (j(), It(g, {
|
|
21121
21122
|
key: 0,
|
|
21122
21123
|
"action-button-visible": !1,
|
|
21123
21124
|
"data-testid": "top-n-error-state",
|
|
@@ -21127,7 +21128,7 @@ const mA = /* @__PURE__ */ he({
|
|
|
21127
21128
|
He(lt(G(e).t("topNTable.defaultErrorStateTitle")), 1)
|
|
21128
21129
|
]),
|
|
21129
21130
|
default: Ut(() => [
|
|
21130
|
-
He(lt(
|
|
21131
|
+
He(lt(k.value), 1)
|
|
21131
21132
|
]),
|
|
21132
21133
|
_: 1
|
|
21133
21134
|
})) : n.isLoading ? (j(), It(p, {
|
|
@@ -21138,33 +21139,33 @@ const mA = /* @__PURE__ */ he({
|
|
|
21138
21139
|
rt("table", WA, [
|
|
21139
21140
|
rt("thead", YA, [
|
|
21140
21141
|
rt("tr", $A, [
|
|
21141
|
-
(j(!0), at(xi, null, ts(d.value, (
|
|
21142
|
-
key:
|
|
21143
|
-
class: rn(["top-n-table-header-cell", { "top-n-table-header-cell-metric":
|
|
21142
|
+
(j(!0), at(xi, null, ts(d.value, (O) => (j(), at("th", {
|
|
21143
|
+
key: O.key,
|
|
21144
|
+
class: rn(["top-n-table-header-cell", { "top-n-table-header-cell-metric": O.key !== "name" }]),
|
|
21144
21145
|
"data-testid": "top-n-table-header-column"
|
|
21145
21146
|
}, [
|
|
21146
|
-
rt("span", jA, lt(
|
|
21147
|
+
rt("span", jA, lt(O.label), 1)
|
|
21147
21148
|
], 2))), 128))
|
|
21148
21149
|
])
|
|
21149
21150
|
]),
|
|
21150
21151
|
rt("tbody", null, [
|
|
21151
|
-
(j(!0), at(xi, null, ts(T.value, (
|
|
21152
|
-
key:
|
|
21152
|
+
(j(!0), at(xi, null, ts(T.value, (O) => (j(), at("tr", {
|
|
21153
|
+
key: O.id,
|
|
21153
21154
|
class: "top-n-table-row"
|
|
21154
21155
|
}, [
|
|
21155
21156
|
rt("td", VA, [
|
|
21156
21157
|
rt("span", {
|
|
21157
|
-
"data-testid": `row-${
|
|
21158
|
+
"data-testid": `row-${O.id}`
|
|
21158
21159
|
}, [
|
|
21159
21160
|
cr(D.$slots, "name", {
|
|
21160
21161
|
record: {
|
|
21161
|
-
id:
|
|
21162
|
-
name:
|
|
21163
|
-
deleted:
|
|
21162
|
+
id: O.id,
|
|
21163
|
+
name: O.name,
|
|
21164
|
+
deleted: O.deleted,
|
|
21164
21165
|
dimension: a.value
|
|
21165
21166
|
}
|
|
21166
21167
|
}, () => [
|
|
21167
|
-
He(lt(
|
|
21168
|
+
He(lt(O.name), 1)
|
|
21168
21169
|
], !0)
|
|
21169
21170
|
], 8, qA)
|
|
21170
21171
|
]),
|
|
@@ -21174,11 +21175,11 @@ const mA = /* @__PURE__ */ he({
|
|
|
21174
21175
|
}, [
|
|
21175
21176
|
R.key === "value" ? (j(), at("span", {
|
|
21176
21177
|
key: 0,
|
|
21177
|
-
"data-testid": `row-${
|
|
21178
|
-
}, lt(A(
|
|
21178
|
+
"data-testid": `row-${O.id}`
|
|
21179
|
+
}, lt(A(O, R.key)), 9, GA)) : (j(), at("span", {
|
|
21179
21180
|
key: 1,
|
|
21180
|
-
"data-testid": `row-${
|
|
21181
|
-
}, lt(A(
|
|
21181
|
+
"data-testid": `row-${O.id}-${R.key}`
|
|
21182
|
+
}, lt(A(O, R.key)), 9, XA))
|
|
21182
21183
|
]))), 128))
|
|
21183
21184
|
]))), 128))
|
|
21184
21185
|
])
|
|
@@ -21221,8 +21222,8 @@ function bm(n) {
|
|
|
21221
21222
|
var Ba = { exports: {} };
|
|
21222
21223
|
Ba.exports;
|
|
21223
21224
|
(function(n, t) {
|
|
21224
|
-
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 9007199254740991, l = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", f = "[object Function]", m = "[object GeneratorFunction]", b = "[object Map]", _ = "[object Number]", x = "[object Object]", T = "[object Promise]",
|
|
21225
|
-
B[w] = B[
|
|
21225
|
+
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 9007199254740991, l = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", f = "[object Function]", m = "[object GeneratorFunction]", b = "[object Map]", _ = "[object Number]", x = "[object Object]", T = "[object Promise]", k = "[object RegExp]", A = "[object Set]", C = "[object String]", D = "[object Symbol]", S = "[object WeakMap]", g = "[object ArrayBuffer]", p = "[object DataView]", w = "[object Float32Array]", O = "[object Float64Array]", R = "[object Int8Array]", U = "[object Int16Array]", I = "[object Int32Array]", z = "[object Uint8Array]", Z = "[object Uint8ClampedArray]", $ = "[object Uint16Array]", ot = "[object Uint32Array]", q = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, H = /^\w*$/, X = /^\./, et = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, V = /[\\^$.*+?()[\]{}|]/g, xt = /\\(\\)?/g, St = /^\[object .+?Constructor\]$/, Y = /^(?:0|[1-9]\d*)$/, B = {};
|
|
21226
|
+
B[w] = B[O] = B[R] = B[U] = B[I] = B[z] = B[Z] = B[$] = B[ot] = !0, B[l] = B[c] = B[g] = B[u] = B[p] = B[d] = B[h] = B[f] = B[b] = B[_] = B[x] = B[k] = B[A] = B[C] = B[S] = !1;
|
|
21226
21227
|
var K = typeof Le == "object" && Le && Le.Object === Object && Le, J = typeof self == "object" && self && self.Object === Object && self, tt = K || J || Function("return this")(), Q = t && !t.nodeType && t, _t = Q && !0 && n && !n.nodeType && n, Dt = _t && _t.exports === Q, ct = Dt && K.process, wt = function() {
|
|
21227
21228
|
try {
|
|
21228
21229
|
return ct && ct.binding("util");
|
|
@@ -21583,7 +21584,7 @@ Ba.exports;
|
|
|
21583
21584
|
return Hr(+y, +M);
|
|
21584
21585
|
case h:
|
|
21585
21586
|
return y.name == M.name && y.message == M.message;
|
|
21586
|
-
case
|
|
21587
|
+
case k:
|
|
21587
21588
|
case C:
|
|
21588
21589
|
return y == M + "";
|
|
21589
21590
|
case b:
|
|
@@ -21959,8 +21960,8 @@ var vm = { exports: {} };
|
|
|
21959
21960
|
if ((b || f && m || o) && typeof FileReader < "u") {
|
|
21960
21961
|
var _ = new FileReader();
|
|
21961
21962
|
_.onloadend = function() {
|
|
21962
|
-
var
|
|
21963
|
-
|
|
21963
|
+
var k = _.result;
|
|
21964
|
+
k = b ? k : k.replace(/^data:[^;]*;/, "data:attachment/file;"), h ? h.location.href = k : location = k, h = null;
|
|
21964
21965
|
}, _.readAsDataURL(c);
|
|
21965
21966
|
} else {
|
|
21966
21967
|
var x = a.URL || a.webkitURL, T = x.createObjectURL(c);
|
|
@@ -21989,20 +21990,20 @@ License: MIT
|
|
|
21989
21990
|
var w = C(p);
|
|
21990
21991
|
w.chunkSize = parseInt(w.chunkSize), p.step || p.chunk || (w.chunkSize = null), this._handle = new b(w), (this._handle.streamer = this)._config = w;
|
|
21991
21992
|
}).call(this, g), this.parseChunk = function(p, w) {
|
|
21992
|
-
var
|
|
21993
|
-
if (this.isFirstChunk && 0 <
|
|
21993
|
+
var O = parseInt(this._config.skipFirstNLines) || 0;
|
|
21994
|
+
if (this.isFirstChunk && 0 < O) {
|
|
21994
21995
|
let U = this._config.newline;
|
|
21995
|
-
U || (R = this._config.quoteChar || '"', U = this._handle.guessLineEndings(p, R)), p = [...p.split(U).slice(
|
|
21996
|
+
U || (R = this._config.quoteChar || '"', U = this._handle.guessLineEndings(p, R)), p = [...p.split(U).slice(O)].join(U);
|
|
21996
21997
|
}
|
|
21997
21998
|
this.isFirstChunk && S(this._config.beforeFirstChunk) && (R = this._config.beforeFirstChunk(p)) !== void 0 && (p = R), this.isFirstChunk = !1, this._halted = !1;
|
|
21998
|
-
var
|
|
21999
|
+
var O = this._partialLine + p, R = (this._partialLine = "", this._handle.parse(O, this._baseIndex, !this._finished));
|
|
21999
22000
|
if (!this._handle.paused() && !this._handle.aborted()) {
|
|
22000
|
-
if (p = R.meta.cursor,
|
|
22001
|
+
if (p = R.meta.cursor, O = (this._finished || (this._partialLine = O.substring(p - this._baseIndex), this._baseIndex = p), R && R.data && (this._rowCount += R.data.length), this._finished || this._config.preview && this._rowCount >= this._config.preview), a) i.postMessage({ results: R, workerId: c.WORKER_ID, finished: O });
|
|
22001
22002
|
else if (S(this._config.chunk) && !w) {
|
|
22002
22003
|
if (this._config.chunk(R, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
|
|
22003
22004
|
this._completeResults = R = void 0;
|
|
22004
22005
|
}
|
|
22005
|
-
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(R.data), this._completeResults.errors = this._completeResults.errors.concat(R.errors), this._completeResults.meta = R.meta), this._completed || !
|
|
22006
|
+
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(R.data), this._completeResults.errors = this._completeResults.errors.concat(R.errors), this._completeResults.meta = R.meta), this._completed || !O || !S(this._config.complete) || R && R.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), O || R && R.meta.paused || this._nextChunk(), R;
|
|
22006
22007
|
}
|
|
22007
22008
|
this._halted = !0;
|
|
22008
22009
|
}, this._sendError = function(p) {
|
|
@@ -22021,8 +22022,8 @@ License: MIT
|
|
|
22021
22022
|
if (this._finished) this._chunkLoaded();
|
|
22022
22023
|
else {
|
|
22023
22024
|
if (p = new XMLHttpRequest(), this._config.withCredentials && (p.withCredentials = this._config.withCredentials), r || (p.onload = D(this._chunkLoaded, this), p.onerror = D(this._chunkError, this)), p.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !r), this._config.downloadRequestHeaders) {
|
|
22024
|
-
var w,
|
|
22025
|
-
for (w in
|
|
22025
|
+
var w, O = this._config.downloadRequestHeaders;
|
|
22026
|
+
for (w in O) p.setRequestHeader(w, O[w]);
|
|
22026
22027
|
}
|
|
22027
22028
|
var R;
|
|
22028
22029
|
this._config.chunkSize && (R = this._start + this._config.chunkSize - 1, p.setRequestHeader("Range", "bytes=" + this._start + "-" + R));
|
|
@@ -22041,14 +22042,14 @@ License: MIT
|
|
|
22041
22042
|
}
|
|
22042
22043
|
function h(g) {
|
|
22043
22044
|
(g = g || {}).chunkSize || (g.chunkSize = c.LocalChunkSize), u.call(this, g);
|
|
22044
|
-
var p, w,
|
|
22045
|
+
var p, w, O = typeof FileReader < "u";
|
|
22045
22046
|
this.stream = function(R) {
|
|
22046
|
-
this._input = R, w = R.slice || R.webkitSlice || R.mozSlice,
|
|
22047
|
+
this._input = R, w = R.slice || R.webkitSlice || R.mozSlice, O ? ((p = new FileReader()).onload = D(this._chunkLoaded, this), p.onerror = D(this._chunkError, this)) : p = new FileReaderSync(), this._nextChunk();
|
|
22047
22048
|
}, this._nextChunk = function() {
|
|
22048
22049
|
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
22049
22050
|
}, this._readChunk = function() {
|
|
22050
22051
|
var R = this._input, U = (this._config.chunkSize && (U = Math.min(this._start + this._config.chunkSize, this._input.size), R = w.call(R, this._start, U)), p.readAsText(R, this._config.encoding));
|
|
22051
|
-
|
|
22052
|
+
O || this._chunkLoaded({ target: { result: U } });
|
|
22052
22053
|
}, this._chunkLoaded = function(R) {
|
|
22053
22054
|
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(R.target.result);
|
|
22054
22055
|
}, this._chunkError = function() {
|
|
@@ -22060,13 +22061,13 @@ License: MIT
|
|
|
22060
22061
|
u.call(this, g = g || {}), this.stream = function(w) {
|
|
22061
22062
|
return p = w, this._nextChunk();
|
|
22062
22063
|
}, this._nextChunk = function() {
|
|
22063
|
-
var w,
|
|
22064
|
-
if (!this._finished) return w = this._config.chunkSize, p = w ? (
|
|
22064
|
+
var w, O;
|
|
22065
|
+
if (!this._finished) return w = this._config.chunkSize, p = w ? (O = p.substring(0, w), p.substring(w)) : (O = p, ""), this._finished = !p, this.parseChunk(O);
|
|
22065
22066
|
};
|
|
22066
22067
|
}
|
|
22067
22068
|
function m(g) {
|
|
22068
22069
|
u.call(this, g = g || {});
|
|
22069
|
-
var p = [], w = !0,
|
|
22070
|
+
var p = [], w = !0, O = !1;
|
|
22070
22071
|
this.pause = function() {
|
|
22071
22072
|
u.prototype.pause.apply(this, arguments), this._input.pause();
|
|
22072
22073
|
}, this.resume = function() {
|
|
@@ -22074,7 +22075,7 @@ License: MIT
|
|
|
22074
22075
|
}, this.stream = function(R) {
|
|
22075
22076
|
this._input = R, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
22076
22077
|
}, this._checkIsFinished = function() {
|
|
22077
|
-
|
|
22078
|
+
O && p.length === 1 && (this._finished = !0);
|
|
22078
22079
|
}, this._nextChunk = function() {
|
|
22079
22080
|
this._checkIsFinished(), p.length ? this.parseChunk(p.shift()) : w = !0;
|
|
22080
22081
|
}, this._streamData = D(function(R) {
|
|
@@ -22086,18 +22087,18 @@ License: MIT
|
|
|
22086
22087
|
}, this), this._streamError = D(function(R) {
|
|
22087
22088
|
this._streamCleanUp(), this._sendError(R);
|
|
22088
22089
|
}, this), this._streamEnd = D(function() {
|
|
22089
|
-
this._streamCleanUp(),
|
|
22090
|
+
this._streamCleanUp(), O = !0, this._streamData("");
|
|
22090
22091
|
}, this), this._streamCleanUp = D(function() {
|
|
22091
22092
|
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
22092
22093
|
}, this);
|
|
22093
22094
|
}
|
|
22094
22095
|
function b(g) {
|
|
22095
|
-
var p, w,
|
|
22096
|
+
var p, w, O, R, U = Math.pow(2, 53), I = -U, z = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, Z = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, $ = this, ot = 0, q = 0, H = !1, X = !1, et = [], V = { data: [], errors: [], meta: {} };
|
|
22096
22097
|
function xt(K) {
|
|
22097
22098
|
return g.skipEmptyLines === "greedy" ? K.join("").trim() === "" : K.length === 1 && K[0].length === 0;
|
|
22098
22099
|
}
|
|
22099
22100
|
function St() {
|
|
22100
|
-
if (V &&
|
|
22101
|
+
if (V && O && (B("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + c.DefaultDelimiter + "'"), O = !1), g.skipEmptyLines && (V.data = V.data.filter(function(Q) {
|
|
22101
22102
|
return !xt(Q);
|
|
22102
22103
|
})), Y()) {
|
|
22103
22104
|
let Q = function(_t, Dt) {
|
|
@@ -22130,7 +22131,7 @@ License: MIT
|
|
|
22130
22131
|
S(g.step) && (R = g.step, g.step = function(K) {
|
|
22131
22132
|
V = K, Y() ? St() : (St(), V.data.length !== 0 && (ot += K.data.length, g.preview && ot > g.preview ? w.abort() : (V.data = V.data[0], R(V, $))));
|
|
22132
22133
|
}), this.parse = function(K, J, tt) {
|
|
22133
|
-
var Q = g.quoteChar || '"', Q = (g.newline || (g.newline = this.guessLineEndings(K, Q)),
|
|
22134
|
+
var Q = g.quoteChar || '"', Q = (g.newline || (g.newline = this.guessLineEndings(K, Q)), O = !1, g.delimiter ? S(g.delimiter) && (g.delimiter = g.delimiter(K), V.meta.delimiter = g.delimiter) : ((Q = ((_t, Dt, ct, wt, gt) => {
|
|
22134
22135
|
var ne, ht, kt, fe;
|
|
22135
22136
|
gt = gt || [",", " ", "|", ";", c.RECORD_SEP, c.UNIT_SEP];
|
|
22136
22137
|
for (var ye = 0; ye < gt.length; ye++) {
|
|
@@ -22138,7 +22139,7 @@ License: MIT
|
|
|
22138
22139
|
0 < se.data.length && (ge /= se.data.length - Yt), (ht === void 0 || Et <= ht) && (fe === void 0 || fe < ge) && 1.99 < ge && (ht = Et, ne = an, fe = ge);
|
|
22139
22140
|
}
|
|
22140
22141
|
return { successful: !!(g.delimiter = ne), bestDelimiter: ne };
|
|
22141
|
-
})(K, g.newline, g.skipEmptyLines, g.comments, g.delimitersToGuess)).successful ? g.delimiter = Q.bestDelimiter : (
|
|
22142
|
+
})(K, g.newline, g.skipEmptyLines, g.comments, g.delimitersToGuess)).successful ? g.delimiter = Q.bestDelimiter : (O = !0, g.delimiter = c.DefaultDelimiter), V.meta.delimiter = g.delimiter), C(g));
|
|
22142
22143
|
return g.preview && g.header && Q.preview++, p = K, w = new x(Q), V = w.parse(p, J, tt), St(), H ? { meta: { paused: !0 } } : V || { meta: { paused: !1 } };
|
|
22143
22144
|
}, this.paused = function() {
|
|
22144
22145
|
return H;
|
|
@@ -22166,22 +22167,22 @@ License: MIT
|
|
|
22166
22167
|
return g.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
22167
22168
|
}
|
|
22168
22169
|
function x(g) {
|
|
22169
|
-
var p = (g = g || {}).delimiter, w = g.newline,
|
|
22170
|
-
if (g.escapeChar !== void 0 && (ot = g.escapeChar), (typeof p != "string" || -1 < c.BAD_DELIMITERS.indexOf(p)) && (p = ","),
|
|
22171
|
-
|
|
22170
|
+
var p = (g = g || {}).delimiter, w = g.newline, O = g.comments, R = g.step, U = g.preview, I = g.fastMode, z = null, Z = !1, $ = g.quoteChar == null ? '"' : g.quoteChar, ot = $;
|
|
22171
|
+
if (g.escapeChar !== void 0 && (ot = g.escapeChar), (typeof p != "string" || -1 < c.BAD_DELIMITERS.indexOf(p)) && (p = ","), O === p) throw new Error("Comment character same as delimiter");
|
|
22172
|
+
O === !0 ? O = "#" : (typeof O != "string" || -1 < c.BAD_DELIMITERS.indexOf(O)) && (O = !1), w !== `
|
|
22172
22173
|
` && w !== "\r" && w !== `\r
|
|
22173
22174
|
` && (w = `
|
|
22174
22175
|
`);
|
|
22175
22176
|
var q = 0, H = !1;
|
|
22176
22177
|
this.parse = function(X, et, V) {
|
|
22177
22178
|
if (typeof X != "string") throw new Error("Input must be a string");
|
|
22178
|
-
var xt = X.length, St = p.length, Y = w.length, B =
|
|
22179
|
+
var xt = X.length, St = p.length, Y = w.length, B = O.length, K = S(R), J = [], tt = [], Q = [], _t = q = 0;
|
|
22179
22180
|
if (!X) return Et();
|
|
22180
22181
|
if (I || I !== !1 && X.indexOf($) === -1) {
|
|
22181
22182
|
for (var Dt = X.split(w), ct = 0; ct < Dt.length; ct++) {
|
|
22182
22183
|
if (Q = Dt[ct], q += Q.length, ct !== Dt.length - 1) q += w.length;
|
|
22183
22184
|
else if (V) return Et();
|
|
22184
|
-
if (!
|
|
22185
|
+
if (!O || Q.substring(0, B) !== O) {
|
|
22185
22186
|
if (K) {
|
|
22186
22187
|
if (J = [], fe(Q.split(p)), ge(), H) return Et();
|
|
22187
22188
|
} else fe(Q.split(p));
|
|
@@ -22209,7 +22210,7 @@ License: MIT
|
|
|
22209
22210
|
tt.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: J.length, index: q }), ht++;
|
|
22210
22211
|
}
|
|
22211
22212
|
}
|
|
22212
|
-
else if (
|
|
22213
|
+
else if (O && Q.length === 0 && X.substring(q, q + B) === O) {
|
|
22213
22214
|
if (gt === -1) return Et();
|
|
22214
22215
|
q = gt + Y, gt = X.indexOf(w, q), wt = X.indexOf(p, q);
|
|
22215
22216
|
} else if (wt !== -1 && (wt < gt || gt === -1)) Q.push(X.substring(q, wt)), q = wt + St, wt = X.indexOf(p, q);
|
|
@@ -22259,20 +22260,20 @@ License: MIT
|
|
|
22259
22260
|
};
|
|
22260
22261
|
}
|
|
22261
22262
|
function T(g) {
|
|
22262
|
-
var p = g.data, w = o[p.workerId],
|
|
22263
|
+
var p = g.data, w = o[p.workerId], O = !1;
|
|
22263
22264
|
if (p.error) w.userError(p.error, p.file);
|
|
22264
22265
|
else if (p.results && p.results.data) {
|
|
22265
22266
|
var R = { abort: function() {
|
|
22266
|
-
|
|
22267
|
+
O = !0, k(p.workerId, { data: [], errors: [], meta: { aborted: !0 } });
|
|
22267
22268
|
}, pause: A, resume: A };
|
|
22268
22269
|
if (S(w.userStep)) {
|
|
22269
|
-
for (var U = 0; U < p.results.data.length && (w.userStep({ data: p.results.data[U], errors: p.results.errors, meta: p.results.meta }, R), !
|
|
22270
|
+
for (var U = 0; U < p.results.data.length && (w.userStep({ data: p.results.data[U], errors: p.results.errors, meta: p.results.meta }, R), !O); U++) ;
|
|
22270
22271
|
delete p.results;
|
|
22271
22272
|
} else S(w.userChunk) && (w.userChunk(p.results, R, p.file), delete p.results);
|
|
22272
22273
|
}
|
|
22273
|
-
p.finished && !
|
|
22274
|
+
p.finished && !O && k(p.workerId, p.results);
|
|
22274
22275
|
}
|
|
22275
|
-
function
|
|
22276
|
+
function k(g, p) {
|
|
22276
22277
|
var w = o[g];
|
|
22277
22278
|
S(w.userComplete) && w.userComplete(p), w.terminate(), delete o[g];
|
|
22278
22279
|
}
|
|
@@ -22295,21 +22296,21 @@ License: MIT
|
|
|
22295
22296
|
}
|
|
22296
22297
|
return c.parse = function(g, p) {
|
|
22297
22298
|
var w = (p = p || {}).dynamicTyping || !1;
|
|
22298
|
-
if (S(w) && (p.dynamicTypingFunction = w, w = {}), p.dynamicTyping = w, p.transform = !!S(p.transform) && p.transform, !p.worker || !c.WORKERS_SUPPORTED) return w = null, c.NODE_STREAM_INPUT, typeof g == "string" ? (g = ((
|
|
22299
|
+
if (S(w) && (p.dynamicTypingFunction = w, w = {}), p.dynamicTyping = w, p.transform = !!S(p.transform) && p.transform, !p.worker || !c.WORKERS_SUPPORTED) return w = null, c.NODE_STREAM_INPUT, typeof g == "string" ? (g = ((O) => O.charCodeAt(0) !== 65279 ? O : O.slice(1))(g), w = new (p.download ? d : f)(p)) : g.readable === !0 && S(g.read) && S(g.on) ? w = new m(p) : (i.File && g instanceof File || g instanceof Object) && (w = new h(p)), w.stream(g);
|
|
22299
22300
|
(w = (() => {
|
|
22300
|
-
var
|
|
22301
|
-
return !!c.WORKERS_SUPPORTED && (
|
|
22301
|
+
var O;
|
|
22302
|
+
return !!c.WORKERS_SUPPORTED && (O = (() => {
|
|
22302
22303
|
var R = i.URL || i.webkitURL || null, U = e.toString();
|
|
22303
22304
|
return c.BLOB_URL || (c.BLOB_URL = R.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", U, ")();"], { type: "text/javascript" })));
|
|
22304
|
-
})(), (
|
|
22305
|
+
})(), (O = new i.Worker(O)).onmessage = T, O.id = l++, o[O.id] = O);
|
|
22305
22306
|
})()).userStep = p.step, w.userChunk = p.chunk, w.userComplete = p.complete, w.userError = p.error, p.step = S(p.step), p.chunk = S(p.chunk), p.complete = S(p.complete), p.error = S(p.error), delete p.worker, w.postMessage({ input: g, config: p, workerId: w.id });
|
|
22306
22307
|
}, c.unparse = function(g, p) {
|
|
22307
|
-
var w = !1,
|
|
22308
|
+
var w = !1, O = !0, R = ",", U = `\r
|
|
22308
22309
|
`, I = '"', z = I + I, Z = !1, $ = null, ot = !1, q = ((() => {
|
|
22309
22310
|
if (typeof p == "object") {
|
|
22310
22311
|
if (typeof p.delimiter != "string" || c.BAD_DELIMITERS.filter(function(et) {
|
|
22311
22312
|
return p.delimiter.indexOf(et) !== -1;
|
|
22312
|
-
}).length || (R = p.delimiter), typeof p.quotes != "boolean" && typeof p.quotes != "function" && !Array.isArray(p.quotes) || (w = p.quotes), typeof p.skipEmptyLines != "boolean" && typeof p.skipEmptyLines != "string" || (Z = p.skipEmptyLines), typeof p.newline == "string" && (U = p.newline), typeof p.quoteChar == "string" && (I = p.quoteChar), typeof p.header == "boolean" && (
|
|
22313
|
+
}).length || (R = p.delimiter), typeof p.quotes != "boolean" && typeof p.quotes != "function" && !Array.isArray(p.quotes) || (w = p.quotes), typeof p.skipEmptyLines != "boolean" && typeof p.skipEmptyLines != "string" || (Z = p.skipEmptyLines), typeof p.newline == "string" && (U = p.newline), typeof p.quoteChar == "string" && (I = p.quoteChar), typeof p.header == "boolean" && (O = p.header), Array.isArray(p.columns)) {
|
|
22313
22314
|
if (p.columns.length === 0) throw new Error("Option columns is empty");
|
|
22314
22315
|
$ = p.columns;
|
|
22315
22316
|
}
|
|
@@ -22323,7 +22324,7 @@ License: MIT
|
|
|
22323
22324
|
throw new Error("Unable to serialize unrecognized input");
|
|
22324
22325
|
function H(et, V, xt) {
|
|
22325
22326
|
var St = "", Y = (typeof et == "string" && (et = JSON.parse(et)), typeof V == "string" && (V = JSON.parse(V)), Array.isArray(et) && 0 < et.length), B = !Array.isArray(V[0]);
|
|
22326
|
-
if (Y &&
|
|
22327
|
+
if (Y && O) {
|
|
22327
22328
|
for (var K = 0; K < et.length; K++) 0 < K && (St += R), St += X(et[K], K);
|
|
22328
22329
|
0 < V.length && (St += U);
|
|
22329
22330
|
}
|
|
@@ -22360,8 +22361,8 @@ License: MIT
|
|
|
22360
22361
|
return this.each(function(U) {
|
|
22361
22362
|
if (!(s(this).prop("tagName").toUpperCase() === "INPUT" && s(this).attr("type").toLowerCase() === "file" && i.FileReader) || !this.files || this.files.length === 0) return !0;
|
|
22362
22363
|
for (var I = 0; I < this.files.length; I++) w.push({ file: this.files[I], inputElem: this, instanceConfig: s.extend({}, p) });
|
|
22363
|
-
}),
|
|
22364
|
-
function
|
|
22364
|
+
}), O(), this;
|
|
22365
|
+
function O() {
|
|
22365
22366
|
if (w.length === 0) S(g.complete) && g.complete();
|
|
22366
22367
|
else {
|
|
22367
22368
|
var U, I, z, Z, $ = w[0];
|
|
@@ -22380,7 +22381,7 @@ License: MIT
|
|
|
22380
22381
|
}
|
|
22381
22382
|
}
|
|
22382
22383
|
function R() {
|
|
22383
|
-
w.splice(0, 1),
|
|
22384
|
+
w.splice(0, 1), O();
|
|
22384
22385
|
}
|
|
22385
22386
|
}), a && (i.onmessage = function(g) {
|
|
22386
22387
|
g = g.data, c.WORKER_ID === void 0 && g && (c.WORKER_ID = g.workerId), typeof g.input == "string" ? i.postMessage({ workerId: c.WORKER_ID, results: c.parse(g.input, g.config), finished: !0 }) : (i.File && g.input instanceof File || g.input instanceof Object) && (g = c.parse(g.input, g.config)) && i.postMessage({ workerId: c.WORKER_ID, results: g, finished: !0 });
|
|
@@ -22547,13 +22548,13 @@ const PP = ["id"], RP = /* @__PURE__ */ he({
|
|
|
22547
22548
|
const m = i.exportState.chartData, b = m.data.some((g) => g.timestamp !== m.data[0].timestamp), _ = m.data.map((g) => {
|
|
22548
22549
|
const p = new Date(g.timestamp);
|
|
22549
22550
|
return {
|
|
22550
|
-
...Object.keys(g.event).reduce((
|
|
22551
|
+
...Object.keys(g.event).reduce((O, R) => {
|
|
22551
22552
|
if (R in m.meta.display) {
|
|
22552
22553
|
const U = g.event[R], I = m.meta.display[R];
|
|
22553
|
-
|
|
22554
|
+
O[R] = U && I && I[U].name || g.event[R];
|
|
22554
22555
|
} else
|
|
22555
|
-
|
|
22556
|
-
return
|
|
22556
|
+
O[R] = g.event[R];
|
|
22557
|
+
return O;
|
|
22557
22558
|
}, {}),
|
|
22558
22559
|
...b ? {
|
|
22559
22560
|
timestamp: Kl(p, "yyyy-MM-dd HH:mm:ss"),
|
|
@@ -22566,7 +22567,7 @@ const PP = ["id"], RP = /* @__PURE__ */ he({
|
|
|
22566
22567
|
{ label: e.t("csvExport.Timestamp"), key: "timestamp" },
|
|
22567
22568
|
{ label: e.t("csvExport.UtcOffset"), key: "tzOffset" }
|
|
22568
22569
|
]);
|
|
22569
|
-
const T = "display" in i.exportState.chartData.meta && ((D = i.exportState.chartData.meta) != null && D.display) ? (S = i.exportState.chartData.meta) == null ? void 0 : S.display : {},
|
|
22570
|
+
const T = "display" in i.exportState.chartData.meta && ((D = i.exportState.chartData.meta) != null && D.display) ? (S = i.exportState.chartData.meta) == null ? void 0 : S.display : {}, k = [
|
|
22570
22571
|
...x,
|
|
22571
22572
|
// `dimensions` are present in v1 and v2 explore meta
|
|
22572
22573
|
...Object.keys(T).map((g) => ({
|
|
@@ -22580,9 +22581,9 @@ const PP = ["id"], RP = /* @__PURE__ */ he({
|
|
|
22580
22581
|
label: e.t(`chartLabels.${g}`),
|
|
22581
22582
|
key: g
|
|
22582
22583
|
}))
|
|
22583
|
-
], A =
|
|
22584
|
+
], A = k.reduce((g, p) => (g[p.key] = p.label, g), {});
|
|
22584
22585
|
return {
|
|
22585
|
-
headers:
|
|
22586
|
+
headers: k,
|
|
22586
22587
|
csvHeaders: A,
|
|
22587
22588
|
rows: _
|
|
22588
22589
|
};
|
|
@@ -22598,7 +22599,7 @@ const PP = ["id"], RP = /* @__PURE__ */ he({
|
|
|
22598
22599
|
return ue(h, () => {
|
|
22599
22600
|
a.value++;
|
|
22600
22601
|
}), (m, b) => {
|
|
22601
|
-
const _ = Ee("KSkeleton"), x = Ee("KEmptyState"), T = Ee("KTableData"),
|
|
22602
|
+
const _ = Ee("KSkeleton"), x = Ee("KEmptyState"), T = Ee("KTableData"), k = Ee("KTooltip"), A = Ee("KButton"), C = Ee("KModal");
|
|
22602
22603
|
return j(), at("div", IP, [
|
|
22603
22604
|
Zt(C, {
|
|
22604
22605
|
class: "vitals-report",
|
|
@@ -22654,7 +22655,7 @@ const PP = ["id"], RP = /* @__PURE__ */ he({
|
|
|
22654
22655
|
})) : Nt("", !0),
|
|
22655
22656
|
n.exportState.status === "success" && l.value ? (j(), at("div", NP, [
|
|
22656
22657
|
He(lt(u.value) + " ", 1),
|
|
22657
|
-
Zt(
|
|
22658
|
+
Zt(k, {
|
|
22658
22659
|
class: "preview-tooltip",
|
|
22659
22660
|
placement: "right",
|
|
22660
22661
|
text: G(e).t("csvExport.maximumRecordAmount", { value: G(n1) })
|
|
@@ -22782,14 +22783,14 @@ const PP = ["id"], RP = /* @__PURE__ */ he({
|
|
|
22782
22783
|
brushGroup: n.groupKey
|
|
22783
22784
|
})]), f = L(() => c.value.reduce((S, { data: g, label: p }) => ({
|
|
22784
22785
|
...S,
|
|
22785
|
-
[p]: g.reduce((w, { y:
|
|
22786
|
+
[p]: g.reduce((w, { y: O }) => w + O, 0)
|
|
22786
22787
|
}), {})), m = L(() => c.value.map(({ label: S }) => [
|
|
22787
22788
|
f.value[S],
|
|
22788
22789
|
`${S}: ${f.value[S]}`
|
|
22789
22790
|
]).sort(([S], [g]) => g - S).map(([, S]) => S).join(", ")), b = L(() => Object.keys(f.value).map((S) => f.value[S]).reduce((S, g) => S + g, 0)), _ = L(() => b.value > 0), x = L(() => ({
|
|
22790
22791
|
labels: new Array(l.value).fill(""),
|
|
22791
22792
|
datasets: c.value
|
|
22792
|
-
})), T = L(() => n.datasets.length > 1),
|
|
22793
|
+
})), T = L(() => n.datasets.length > 1), k = `SparklineTooltipPosition-${t}`, A = L(() => {
|
|
22793
22794
|
const S = n.type === "sparkline_bar", g = S ? s.value - 1 : s.value, p = S ? r.value : r.value - i.value;
|
|
22794
22795
|
return {
|
|
22795
22796
|
maintainAspectRatio: !1,
|
|
@@ -22824,13 +22825,13 @@ const PP = ["id"], RP = /* @__PURE__ */ he({
|
|
|
22824
22825
|
},
|
|
22825
22826
|
tooltip: {
|
|
22826
22827
|
enabled: !1,
|
|
22827
|
-
position:
|
|
22828
|
+
position: k,
|
|
22828
22829
|
external: (w) => {
|
|
22829
22830
|
kg(u, w, "minutely", {
|
|
22830
|
-
contextFormatter: (
|
|
22831
|
-
const R =
|
|
22831
|
+
contextFormatter: (O) => {
|
|
22832
|
+
const R = O + i.value;
|
|
22832
22833
|
let U = "";
|
|
22833
|
-
return i.value > 24 * 60 * 60 * 1e3 ? U = Ra(new Date(R), "MMM dd, yyy hh:mm a") : U = Ra(new Date(R), "hh:mm a"), `${tT(
|
|
22834
|
+
return i.value > 24 * 60 * 60 * 1e3 ? U = Ra(new Date(R), "MMM dd, yyy hh:mm a") : U = Ra(new Date(R), "hh:mm a"), `${tT(O)} - ${U}`;
|
|
22834
22835
|
}
|
|
22835
22836
|
});
|
|
22836
22837
|
}
|
|
@@ -22861,10 +22862,10 @@ const PP = ["id"], RP = /* @__PURE__ */ he({
|
|
|
22861
22862
|
};
|
|
22862
22863
|
}), C = Vt("0"), D = Vt("0");
|
|
22863
22864
|
return ii(() => {
|
|
22864
|
-
Be.positioners[
|
|
22865
|
+
Be.positioners[k] = function(S, g) {
|
|
22865
22866
|
if (!S.length || u.interactionMode === "interactive" || g.x === null)
|
|
22866
22867
|
return !1;
|
|
22867
|
-
const p = 10, w = this.chart.canvas.getBoundingClientRect(),
|
|
22868
|
+
const p = 10, w = this.chart.canvas.getBoundingClientRect(), O = u.width || this.width, R = u.height || this.height, U = w.top - R > 0, I = U ? w.top - R - p : w.top + w.height + p, z = w.left > O / 2 - g.x, Z = Math.max(p, window.innerWidth - p - O), $ = Math.min(Z, z ? Math.floor(w.left - O / 2) + g.x : 0 + p);
|
|
22868
22869
|
return C.value = `${I}px`, D.value = `${$}px`, {
|
|
22869
22870
|
x: $,
|
|
22870
22871
|
y: I,
|
|
@@ -22873,7 +22874,7 @@ const PP = ["id"], RP = /* @__PURE__ */ he({
|
|
|
22873
22874
|
};
|
|
22874
22875
|
};
|
|
22875
22876
|
}), ni(() => {
|
|
22876
|
-
Be.positioners[
|
|
22877
|
+
Be.positioners[k] && delete Be.positioners[k];
|
|
22877
22878
|
}), (S, g) => (j(), at("div", FP, [
|
|
22878
22879
|
_.value ? n.type === "sparkline_bar" ? (j(), It(G(gm), {
|
|
22879
22880
|
key: 1,
|