@kong-ui-public/analytics-chart 10.19.11 → 10.19.12-pr.3055.24d13da88.0
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 +384 -384
- package/package.json +5 -5
package/dist/vitals-chart.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var km = Object.defineProperty;
|
|
2
2
|
var Om = (n, t, e) => t in n ? km(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var P = (n, t, e) => Om(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { computed as N, getCurrentInstance as lc, onUnmounted as ii, shallowRef as Xe, onMounted as si, onBeforeUnmount as
|
|
4
|
+
import { computed as N, getCurrentInstance as lc, onUnmounted as ii, shallowRef as Xe, onMounted as si, onBeforeUnmount as Yh, watch as oe, inject as lr, nextTick as $h, isRef as Cm, toRefs as Am, customRef as Pm, toValue as Dt, getCurrentScope as Rm, onScopeDispose as Em, ref as qt, unref as Q, watchEffect as Kc, defineComponent as he, openBlock as Z, createElementBlock as ct, createElementVNode as ut, toDisplayString as dt, createVNode as Zt, Fragment as $n, renderList as xi, normalizeClass as Fe, normalizeStyle as Ti, createBlock as Lt, createCommentVNode as Ft, resolveComponent as Ee, createSlots as jh, withCtx as Ht, useTemplateRef as Ji, reactive as cr, toRef as Mt, Teleport as Vh, h as Dl, toRaw as kl, version as Im, isProxy as qh, provide as Xc, createTextVNode as Ie, resolveDynamicComponent as Lm, renderSlot as ss, withKeys as Nm } from "vue";
|
|
5
5
|
import { createI18n as Fm, i18nTComponent as zm } from "@kong-ui-public/i18n";
|
|
6
|
-
import { CloseIcon as Um, DragIcon as Hm, WarningIcon as Bm, EqualIcon as Wm, InfoIcon as
|
|
7
|
-
import { buildDeltaMapping as
|
|
6
|
+
import { CloseIcon as Um, DragIcon as Hm, WarningIcon as Bm, EqualIcon as Wm, InfoIcon as Ym } from "@kong/icons";
|
|
7
|
+
import { buildDeltaMapping as $m, calculateChange as jm, changePolarity as Vm, defineIcon as qm, metricChange as Zc, useTrendRange as Gm } from "@kong-ui-public/analytics-metric-provider";
|
|
8
8
|
const Km = "No data in the current time frame", Xm = "Once there is traffic, it will display here", Zm = "Grouped value limit exceeded, showing the top {maxReturned}", Qm = "no-name", Jm = "debug", tp = "Total", ep = "Open in explorer", np = "More actions", ip = "Requests that do not have a value for the selected group", sp = {
|
|
9
9
|
ms: "ms",
|
|
10
10
|
bytes: "Byte{plural}",
|
|
@@ -689,13 +689,13 @@ function zp(n) {
|
|
|
689
689
|
function Up(n) {
|
|
690
690
|
return n && (n.a < 255 ? `rgba(${n.r}, ${n.g}, ${n.b}, ${Dn(n.a)})` : `rgb(${n.r}, ${n.g}, ${n.b})`);
|
|
691
691
|
}
|
|
692
|
-
const Wo = (n) => n <= 31308e-7 ? n * 12.92 : Math.pow(n, 1 / 2.4) * 1.055 - 0.055,
|
|
692
|
+
const Wo = (n) => n <= 31308e-7 ? n * 12.92 : Math.pow(n, 1 / 2.4) * 1.055 - 0.055, Yi = (n) => n <= 0.04045 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
|
|
693
693
|
function Hp(n, t, e) {
|
|
694
|
-
const i =
|
|
694
|
+
const i = Yi(Dn(n.r)), s = Yi(Dn(n.g)), r = Yi(Dn(n.b));
|
|
695
695
|
return {
|
|
696
|
-
r: Xn(Wo(i + e * (
|
|
697
|
-
g: Xn(Wo(s + e * (
|
|
698
|
-
b: Xn(Wo(r + e * (
|
|
696
|
+
r: Xn(Wo(i + e * (Yi(Dn(t.r)) - i))),
|
|
697
|
+
g: Xn(Wo(s + e * (Yi(Dn(t.g)) - s))),
|
|
698
|
+
b: Xn(Wo(r + e * (Yi(Dn(t.b)) - r))),
|
|
699
699
|
a: n.a + e * (t.a - n.a)
|
|
700
700
|
};
|
|
701
701
|
}
|
|
@@ -825,7 +825,7 @@ function Be(n, t) {
|
|
|
825
825
|
function ht(n, t) {
|
|
826
826
|
return typeof n > "u" ? t : n;
|
|
827
827
|
}
|
|
828
|
-
const
|
|
828
|
+
const Yp = (n, t) => typeof n == "string" && n.endsWith("%") ? parseFloat(n) / 100 : +n / t, Zh = (n, t) => typeof n == "string" && n.endsWith("%") ? parseFloat(n) / 100 * t : +n;
|
|
829
829
|
function Rt(n, t, e) {
|
|
830
830
|
if (n && typeof n.call == "function")
|
|
831
831
|
return n.apply(e, t);
|
|
@@ -867,7 +867,7 @@ function Qh(n) {
|
|
|
867
867
|
"constructor"
|
|
868
868
|
].indexOf(n) === -1;
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function $p(n, t, e, i) {
|
|
871
871
|
if (!Qh(n))
|
|
872
872
|
return;
|
|
873
873
|
const s = t[n], r = e[n];
|
|
@@ -880,7 +880,7 @@ function dr(n, t, e) {
|
|
|
880
880
|
if (!xt(n))
|
|
881
881
|
return n;
|
|
882
882
|
e = e || {};
|
|
883
|
-
const r = e.merger ||
|
|
883
|
+
const r = e.merger || $p;
|
|
884
884
|
let a;
|
|
885
885
|
for (let o = 0; o < s; ++o) {
|
|
886
886
|
if (a = i[o], !xt(a))
|
|
@@ -979,7 +979,7 @@ function Jh(n, t, e) {
|
|
|
979
979
|
function te(n) {
|
|
980
980
|
return n * (_t / 180);
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function Ya(n) {
|
|
983
983
|
return n * (180 / _t);
|
|
984
984
|
}
|
|
985
985
|
function ru(n) {
|
|
@@ -1212,7 +1212,7 @@ function pc(n) {
|
|
|
1212
1212
|
function Cl(n) {
|
|
1213
1213
|
return pc(n) ? n : new ur(n);
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function Yo(n) {
|
|
1216
1216
|
return pc(n) ? n : new ur(n).saturate(0.5).darken(0.1).hexString();
|
|
1217
1217
|
}
|
|
1218
1218
|
const ay = [
|
|
@@ -1346,7 +1346,7 @@ function dy(n, t) {
|
|
|
1346
1346
|
let e = t.length > 3 ? t[2].value - t[1].value : t[1].value - t[0].value;
|
|
1347
1347
|
return Math.abs(e) >= 1 && n !== Math.floor(n) && (e = n - Math.floor(n)), e;
|
|
1348
1348
|
}
|
|
1349
|
-
var
|
|
1349
|
+
var $a = {
|
|
1350
1350
|
formatters: of
|
|
1351
1351
|
};
|
|
1352
1352
|
function hy(n) {
|
|
@@ -1393,7 +1393,7 @@ function hy(n) {
|
|
|
1393
1393
|
autoSkip: !0,
|
|
1394
1394
|
autoSkipPadding: 3,
|
|
1395
1395
|
labelOffset: 0,
|
|
1396
|
-
callback:
|
|
1396
|
+
callback: $a.formatters.values,
|
|
1397
1397
|
minor: {},
|
|
1398
1398
|
major: {},
|
|
1399
1399
|
align: "center",
|
|
@@ -1424,7 +1424,7 @@ function Js(n, t) {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
return n;
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function $o(n, t, e) {
|
|
1428
1428
|
return typeof t == "string" ? dr(Js(n, t), e) : dr(Js(n, ""), t);
|
|
1429
1429
|
}
|
|
1430
1430
|
class fy {
|
|
@@ -1441,23 +1441,23 @@ class fy {
|
|
|
1441
1441
|
style: "normal",
|
|
1442
1442
|
lineHeight: 1.2,
|
|
1443
1443
|
weight: null
|
|
1444
|
-
}, this.hover = {}, this.hoverBackgroundColor = (i, s) =>
|
|
1444
|
+
}, this.hover = {}, this.hoverBackgroundColor = (i, s) => Yo(s.backgroundColor), this.hoverBorderColor = (i, s) => Yo(s.borderColor), this.hoverColor = (i, s) => Yo(s.color), this.indexAxis = "x", this.interaction = {
|
|
1445
1445
|
mode: "nearest",
|
|
1446
1446
|
intersect: !0,
|
|
1447
1447
|
includeInvisible: !1
|
|
1448
1448
|
}, this.maintainAspectRatio = !0, this.onHover = null, this.onClick = null, this.parsing = !0, this.plugins = {}, this.responsive = !0, this.scale = void 0, this.scales = {}, this.showLine = !0, this.drawActiveElementsOnTop = !0, this.describe(t), this.apply(e);
|
|
1449
1449
|
}
|
|
1450
1450
|
set(t, e) {
|
|
1451
|
-
return
|
|
1451
|
+
return $o(this, t, e);
|
|
1452
1452
|
}
|
|
1453
1453
|
get(t) {
|
|
1454
1454
|
return Js(this, t);
|
|
1455
1455
|
}
|
|
1456
1456
|
describe(t, e) {
|
|
1457
|
-
return
|
|
1457
|
+
return $o(Al, t, e);
|
|
1458
1458
|
}
|
|
1459
1459
|
override(t, e) {
|
|
1460
|
-
return
|
|
1460
|
+
return $o(Mi, t, e);
|
|
1461
1461
|
}
|
|
1462
1462
|
route(t, e, i, s) {
|
|
1463
1463
|
const r = Js(this, t), a = Js(this, i), o = "_" + e;
|
|
@@ -2038,7 +2038,7 @@ const ja = (n) => n.ownerDocument.defaultView.getComputedStyle(n, null);
|
|
|
2038
2038
|
function Wy(n, t) {
|
|
2039
2039
|
return ja(n).getPropertyValue(t);
|
|
2040
2040
|
}
|
|
2041
|
-
const
|
|
2041
|
+
const Yy = [
|
|
2042
2042
|
"top",
|
|
2043
2043
|
"right",
|
|
2044
2044
|
"bottom",
|
|
@@ -2048,16 +2048,16 @@ function Si(n, t, e) {
|
|
|
2048
2048
|
const i = {};
|
|
2049
2049
|
e = e ? "-" + e : "";
|
|
2050
2050
|
for (let s = 0; s < 4; s++) {
|
|
2051
|
-
const r =
|
|
2051
|
+
const r = Yy[s];
|
|
2052
2052
|
i[r] = parseFloat(n[t + "-" + r + e]) || 0;
|
|
2053
2053
|
}
|
|
2054
2054
|
return i.width = i.left + i.right, i.height = i.top + i.bottom, i;
|
|
2055
2055
|
}
|
|
2056
|
-
const
|
|
2056
|
+
const $y = (n, t, e) => (n > 0 || t > 0) && (!e || !e.shadowRoot);
|
|
2057
2057
|
function jy(n, t) {
|
|
2058
2058
|
const e = n.touches, i = e && e.length ? e[0] : n, { offsetX: s, offsetY: r } = i;
|
|
2059
2059
|
let a = !1, o, l;
|
|
2060
|
-
if (
|
|
2060
|
+
if ($y(s, r, n.target))
|
|
2061
2061
|
o = s, l = r;
|
|
2062
2062
|
else {
|
|
2063
2063
|
const c = t.getBoundingClientRect();
|
|
@@ -2069,7 +2069,7 @@ function jy(n, t) {
|
|
|
2069
2069
|
box: a
|
|
2070
2070
|
};
|
|
2071
2071
|
}
|
|
2072
|
-
function
|
|
2072
|
+
function Yn(n, t) {
|
|
2073
2073
|
if ("native" in n)
|
|
2074
2074
|
return n;
|
|
2075
2075
|
const { canvas: e, currentDevicePixelRatio: i } = t, s = ja(e), r = s.boxSizing === "border-box", a = Si(s, "padding"), o = Si(s, "border", "width"), { x: l, y: c, box: u } = jy(n, e), d = a.left + (u && o.left), h = a.top + (u && o.top);
|
|
@@ -3581,7 +3581,7 @@ class An extends rn {
|
|
|
3581
3581
|
};
|
|
3582
3582
|
}
|
|
3583
3583
|
update(t) {
|
|
3584
|
-
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(
|
|
3584
|
+
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(Yp(this.options.cutout, o), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: h, ratioY: f, offsetX: g, offsetY: y } = Ab(d, u, l), v = (i.width - a) / h, w = (i.height - a) / f, S = Math.max(Math.min(v, w) / 2, 0), D = Zh(this.options.radius, S), k = Math.max(D * l, 0), R = (D - k) / this._getVisibleDatasetWeightTotal();
|
|
3585
3585
|
this.offsetX = g * D, this.offsetY = y * D, s.total = this.calculateTotal(), this.outerRadius = D - R * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - R * c, 0), this.updateElements(r, 0, r.length, t);
|
|
3586
3586
|
}
|
|
3587
3587
|
_circumference(t, e) {
|
|
@@ -4232,7 +4232,7 @@ var El = {
|
|
|
4232
4232
|
evaluateInteractionItems: wr,
|
|
4233
4233
|
modes: {
|
|
4234
4234
|
index(n, t, e, i) {
|
|
4235
|
-
const s =
|
|
4235
|
+
const s = Yn(t, n), r = e.axis || "x", a = e.includeInvisible || !1, o = e.intersect ? Ko(n, s, r, i, a) : Xo(n, s, r, !1, i, a), l = [];
|
|
4236
4236
|
return o.length ? (n.getSortedVisibleDatasetMetas().forEach((c) => {
|
|
4237
4237
|
const u = o[0].index, d = c.data[u];
|
|
4238
4238
|
d && !d.skip && l.push({
|
|
@@ -4243,7 +4243,7 @@ var El = {
|
|
|
4243
4243
|
}), l) : [];
|
|
4244
4244
|
},
|
|
4245
4245
|
dataset(n, t, e, i) {
|
|
4246
|
-
const s =
|
|
4246
|
+
const s = Yn(t, n), r = e.axis || "xy", a = e.includeInvisible || !1;
|
|
4247
4247
|
let o = e.intersect ? Ko(n, s, r, i, a) : Xo(n, s, r, !1, i, a);
|
|
4248
4248
|
if (o.length > 0) {
|
|
4249
4249
|
const l = o[0].datasetIndex, c = n.getDatasetMeta(l).data;
|
|
@@ -4258,19 +4258,19 @@ var El = {
|
|
|
4258
4258
|
return o;
|
|
4259
4259
|
},
|
|
4260
4260
|
point(n, t, e, i) {
|
|
4261
|
-
const s =
|
|
4261
|
+
const s = Yn(t, n), r = e.axis || "xy", a = e.includeInvisible || !1;
|
|
4262
4262
|
return Ko(n, s, r, i, a);
|
|
4263
4263
|
},
|
|
4264
4264
|
nearest(n, t, e, i) {
|
|
4265
|
-
const s =
|
|
4265
|
+
const s = Yn(t, n), r = e.axis || "xy", a = e.includeInvisible || !1;
|
|
4266
4266
|
return Xo(n, s, r, e.intersect, i, a);
|
|
4267
4267
|
},
|
|
4268
4268
|
x(n, t, e, i) {
|
|
4269
|
-
const s =
|
|
4269
|
+
const s = Yn(t, n);
|
|
4270
4270
|
return ku(n, s, "x", e.intersect, i);
|
|
4271
4271
|
},
|
|
4272
4272
|
y(n, t, e, i) {
|
|
4273
|
-
const s =
|
|
4273
|
+
const s = Yn(t, n);
|
|
4274
4274
|
return ku(n, s, "y", e.intersect, i);
|
|
4275
4275
|
}
|
|
4276
4276
|
}
|
|
@@ -4400,7 +4400,7 @@ function Wb(n, t) {
|
|
|
4400
4400
|
"bottom"
|
|
4401
4401
|
]);
|
|
4402
4402
|
}
|
|
4403
|
-
function
|
|
4403
|
+
function Ys(n, t, e, i) {
|
|
4404
4404
|
const s = [];
|
|
4405
4405
|
let r, a, o, l, c, u;
|
|
4406
4406
|
for (r = 0, a = n.length, c = 0; r < a; ++r) {
|
|
@@ -4408,7 +4408,7 @@ function $s(n, t, e, i) {
|
|
|
4408
4408
|
const { same: d, other: h } = Hb(t, e, o, i);
|
|
4409
4409
|
c |= d && s.length, u = u || h, l.fullSize || s.push(o);
|
|
4410
4410
|
}
|
|
4411
|
-
return c &&
|
|
4411
|
+
return c && Ys(s, t, e, i) || u;
|
|
4412
4412
|
}
|
|
4413
4413
|
function Jr(n, t, e, i, s) {
|
|
4414
4414
|
n.top = e, n.left = t, n.right = t + i, n.bottom = e + s, n.width = i, n.height = s;
|
|
@@ -4475,7 +4475,7 @@ var we = {
|
|
|
4475
4475
|
x: s.left,
|
|
4476
4476
|
y: s.top
|
|
4477
4477
|
}, s), g = zb(l.concat(c), d);
|
|
4478
|
-
|
|
4478
|
+
Ys(o.fullSize, f, d, g), Ys(l, f, d, g), Ys(c, f, d, g) && Ys(l, f, d, g), Bb(f), Au(o.leftAndTop, f, d, g), f.x += f.w, f.y += f.h, Au(o.rightAndBottom, f, d, g), n.chartArea = {
|
|
4479
4479
|
left: f.left,
|
|
4480
4480
|
top: f.top,
|
|
4481
4481
|
right: f.left + f.w,
|
|
@@ -4518,7 +4518,7 @@ class kf {
|
|
|
4518
4518
|
updateConfig(t) {
|
|
4519
4519
|
}
|
|
4520
4520
|
}
|
|
4521
|
-
class
|
|
4521
|
+
class Yb extends kf {
|
|
4522
4522
|
acquireContext(t) {
|
|
4523
4523
|
return t && t.getContext && t.getContext("2d") || null;
|
|
4524
4524
|
}
|
|
@@ -4526,7 +4526,7 @@ class $b extends kf {
|
|
|
4526
4526
|
t.options.animation = !1;
|
|
4527
4527
|
}
|
|
4528
4528
|
}
|
|
4529
|
-
const fa = "$chartjs",
|
|
4529
|
+
const fa = "$chartjs", $b = {
|
|
4530
4530
|
touchstart: "mousedown",
|
|
4531
4531
|
touchmove: "mousemove",
|
|
4532
4532
|
touchend: "mouseup",
|
|
@@ -4572,7 +4572,7 @@ function qb(n, t, e) {
|
|
|
4572
4572
|
n && n.canvas && n.canvas.removeEventListener(t, e, Of);
|
|
4573
4573
|
}
|
|
4574
4574
|
function Gb(n, t) {
|
|
4575
|
-
const e =
|
|
4575
|
+
const e = $b[n.type] || n.type, { x: i, y: s } = Yn(n, t);
|
|
4576
4576
|
return {
|
|
4577
4577
|
type: e,
|
|
4578
4578
|
chart: t,
|
|
@@ -4699,7 +4699,7 @@ class e0 extends kf {
|
|
|
4699
4699
|
}
|
|
4700
4700
|
}
|
|
4701
4701
|
function n0(n) {
|
|
4702
|
-
return !xc() || typeof OffscreenCanvas < "u" && n instanceof OffscreenCanvas ?
|
|
4702
|
+
return !xc() || typeof OffscreenCanvas < "u" && n instanceof OffscreenCanvas ? Yb : e0;
|
|
4703
4703
|
}
|
|
4704
4704
|
class de {
|
|
4705
4705
|
constructor() {
|
|
@@ -5021,7 +5021,7 @@ class Oi extends de {
|
|
|
5021
5021
|
return;
|
|
5022
5022
|
}
|
|
5023
5023
|
const u = this._getLabelSizes(), d = u.widest.width, h = u.highest.height, f = ue(this.chart.width - d, 0, this.maxWidth);
|
|
5024
|
-
o = t.offset ? this.maxWidth / i : f / (i - 1), d + 6 > o && (o = f / (i - (t.offset ? 0.5 : 1)), l = this.maxHeight - Ps(t.grid) - e.padding - Nu(t.title, this.chart.options.font), c = Math.sqrt(d * d + h * h), a =
|
|
5024
|
+
o = t.offset ? this.maxWidth / i : f / (i - 1), d + 6 > o && (o = f / (i - (t.offset ? 0.5 : 1)), l = this.maxHeight - Ps(t.grid) - e.padding - Nu(t.title, this.chart.options.font), c = Math.sqrt(d * d + h * h), a = Ya(Math.min(Math.asin(ue((u.highest.height + 6) / o, -1, 1)), Math.asin(ue(l / c, -1, 1)) - Math.asin(ue(h / c, -1, 1)))), a = Math.max(s, Math.min(r, a))), this.labelRotation = a;
|
|
5025
5025
|
}
|
|
5026
5026
|
afterCalculateLabelRotation() {
|
|
5027
5027
|
Rt(this.options.afterCalculateLabelRotation, [
|
|
@@ -5202,7 +5202,7 @@ class Oi extends de {
|
|
|
5202
5202
|
}
|
|
5203
5203
|
const L = ht(s.ticks.maxTicksLimit, d), W = Math.max(1, Math.ceil(d / L));
|
|
5204
5204
|
for (D = 0; D < d; D += W) {
|
|
5205
|
-
const F = this.getContext(D), H = r.setContext(F), V = o.setContext(F), q = H.lineWidth, j = H.color, E = V.dash || [], z = V.dashOffset,
|
|
5205
|
+
const F = this.getContext(D), H = r.setContext(F), V = o.setContext(F), q = H.lineWidth, j = H.color, E = V.dash || [], z = V.dashOffset, Y = H.tickWidth, at = H.tickColor, it = H.tickBorderDash || [], G = H.tickBorderDashOffset;
|
|
5206
5206
|
k = u0(this, D, l), k !== void 0 && (R = gi(i, k, q), c ? A = m = _ = C = R : O = b = M = B = R, f.push({
|
|
5207
5207
|
tx1: A,
|
|
5208
5208
|
ty1: O,
|
|
@@ -5216,7 +5216,7 @@ class Oi extends de {
|
|
|
5216
5216
|
color: j,
|
|
5217
5217
|
borderDash: E,
|
|
5218
5218
|
borderDashOffset: z,
|
|
5219
|
-
tickWidth:
|
|
5219
|
+
tickWidth: Y,
|
|
5220
5220
|
tickColor: at,
|
|
5221
5221
|
tickBorderDash: it,
|
|
5222
5222
|
tickBorderDashOffset: G
|
|
@@ -5265,14 +5265,14 @@ class Oi extends de {
|
|
|
5265
5265
|
a ? (R = m, O === "inner" && (w === S - 1 ? j = this.options.reverse ? "left" : "right" : w === 0 ? j = this.options.reverse ? "right" : "left" : j = "center"), s === "top" ? c === "near" || y !== 0 ? C = -M * _ + _ / 2 : c === "center" ? C = -L.highest.height / 2 - F * _ + _ : C = -L.highest.height + _ / 2 : c === "near" || y !== 0 ? C = _ / 2 : c === "center" ? C = L.highest.height / 2 - F * _ : C = L.highest.height - M * _, d && (C *= -1), y !== 0 && !W.showLabelBackdrop && (R += _ / 2 * Math.sin(y))) : (A = m, C = (1 - M) * _ / 2);
|
|
5266
5266
|
let E;
|
|
5267
5267
|
if (W.showLabelBackdrop) {
|
|
5268
|
-
const z = ee(W.backdropPadding),
|
|
5268
|
+
const z = ee(W.backdropPadding), Y = L.heights[w], at = L.widths[w];
|
|
5269
5269
|
let it = C - z.top, G = 0 - z.left;
|
|
5270
5270
|
switch (B) {
|
|
5271
5271
|
case "middle":
|
|
5272
|
-
it -=
|
|
5272
|
+
it -= Y / 2;
|
|
5273
5273
|
break;
|
|
5274
5274
|
case "bottom":
|
|
5275
|
-
it -=
|
|
5275
|
+
it -= Y;
|
|
5276
5276
|
break;
|
|
5277
5277
|
}
|
|
5278
5278
|
switch (O) {
|
|
@@ -5290,7 +5290,7 @@ class Oi extends de {
|
|
|
5290
5290
|
left: G,
|
|
5291
5291
|
top: it,
|
|
5292
5292
|
width: at + z.width,
|
|
5293
|
-
height:
|
|
5293
|
+
height: Y + z.height,
|
|
5294
5294
|
color: W.backdropColor
|
|
5295
5295
|
};
|
|
5296
5296
|
}
|
|
@@ -5951,7 +5951,7 @@ function Wu(n, t) {
|
|
|
5951
5951
|
return e[n] === i[n] ? e[t] - i[t] : e[n] - i[n];
|
|
5952
5952
|
};
|
|
5953
5953
|
}
|
|
5954
|
-
function
|
|
5954
|
+
function Yu(n) {
|
|
5955
5955
|
const t = n.chart, e = t.options.animation;
|
|
5956
5956
|
t.notifyPlugins("afterRender"), Rt(e && e.onComplete, [
|
|
5957
5957
|
n
|
|
@@ -5966,7 +5966,7 @@ function N0(n) {
|
|
|
5966
5966
|
function Ef(n) {
|
|
5967
5967
|
return xc() && typeof n == "string" ? n = document.getElementById(n) : n && n.length && (n = n[0]), n && n.canvas && (n = n.canvas), n;
|
|
5968
5968
|
}
|
|
5969
|
-
const ga = {},
|
|
5969
|
+
const ga = {}, $u = (n) => {
|
|
5970
5970
|
const t = Ef(n);
|
|
5971
5971
|
return Object.values(ga).filter((e) => e.canvas === t).pop();
|
|
5972
5972
|
};
|
|
@@ -5992,7 +5992,7 @@ let Ue = (Bn = class {
|
|
|
5992
5992
|
un.remove(...t), ju();
|
|
5993
5993
|
}
|
|
5994
5994
|
constructor(t, e) {
|
|
5995
|
-
const i = this.config = new P0(e), s = Ef(t), r =
|
|
5995
|
+
const i = this.config = new P0(e), s = Ef(t), r = $u(s);
|
|
5996
5996
|
if (r)
|
|
5997
5997
|
throw new Error("Canvas is already in use. Chart with ID '" + r.id + "' must be destroyed before the canvas with ID '" + r.canvas.id + "' can be reused.");
|
|
5998
5998
|
const a = i.createResolver(i.chartOptionScopes(), this.getContext());
|
|
@@ -6002,7 +6002,7 @@ let Ue = (Bn = class {
|
|
|
6002
6002
|
console.error("Failed to create chart: can't acquire context from the given item");
|
|
6003
6003
|
return;
|
|
6004
6004
|
}
|
|
6005
|
-
Tn.listen(this, "complete",
|
|
6005
|
+
Tn.listen(this, "complete", Yu), Tn.listen(this, "progress", N0), this._initialize(), this.attached && this.update();
|
|
6006
6006
|
}
|
|
6007
6007
|
get aspectRatio() {
|
|
6008
6008
|
const { options: { aspectRatio: t, maintainAspectRatio: e }, width: i, height: s, _aspectRatio: r } = this;
|
|
@@ -6223,7 +6223,7 @@ let Ue = (Bn = class {
|
|
|
6223
6223
|
render() {
|
|
6224
6224
|
this.notifyPlugins("beforeRender", {
|
|
6225
6225
|
cancelable: !0
|
|
6226
|
-
}) !== !1 && (Tn.has(this) ? this.attached && !Tn.running(this) && Tn.start(this) : (this.draw(),
|
|
6226
|
+
}) !== !1 && (Tn.has(this) ? this.attached && !Tn.running(this) && Tn.start(this) : (this.draw(), Yu({
|
|
6227
6227
|
chart: this
|
|
6228
6228
|
})));
|
|
6229
6229
|
}
|
|
@@ -6458,7 +6458,7 @@ let Ue = (Bn = class {
|
|
|
6458
6458
|
const r = this.options.hover;
|
|
6459
6459
|
return this.getElementsAtEventForMode(t, r.mode, r, s);
|
|
6460
6460
|
}
|
|
6461
|
-
}, P(Bn, "defaults", Ut), P(Bn, "instances", ga), P(Bn, "overrides", Mi), P(Bn, "registry", un), P(Bn, "version", I0), P(Bn, "getChart",
|
|
6461
|
+
}, P(Bn, "defaults", Ut), P(Bn, "instances", ga), P(Bn, "overrides", Mi), P(Bn, "registry", un), P(Bn, "version", I0), P(Bn, "getChart", $u), Bn);
|
|
6462
6462
|
function ju() {
|
|
6463
6463
|
return Et(Ue.instances, (n) => n._plugins.invalidate());
|
|
6464
6464
|
}
|
|
@@ -6503,7 +6503,7 @@ function W0(n, t, e, i) {
|
|
|
6503
6503
|
innerEnd: ue(s.innerEnd, 0, a)
|
|
6504
6504
|
};
|
|
6505
6505
|
}
|
|
6506
|
-
function
|
|
6506
|
+
function $i(n, t, e, i) {
|
|
6507
6507
|
return {
|
|
6508
6508
|
x: e + n * Math.cos(t),
|
|
6509
6509
|
y: i + n * Math.sin(t)
|
|
@@ -6521,22 +6521,22 @@ function Aa(n, t, e, i, s, r) {
|
|
|
6521
6521
|
if (n.beginPath(), r) {
|
|
6522
6522
|
const W = (b + _) / 2;
|
|
6523
6523
|
if (n.arc(a, o, d, b, W), n.arc(a, o, d, W, _), k > 0) {
|
|
6524
|
-
const q =
|
|
6524
|
+
const q = $i(m, _, a, o);
|
|
6525
6525
|
n.arc(q.x, q.y, k, _, S + zt);
|
|
6526
6526
|
}
|
|
6527
|
-
const F =
|
|
6527
|
+
const F = $i(C, S, a, o);
|
|
6528
6528
|
if (n.lineTo(F.x, F.y), A > 0) {
|
|
6529
|
-
const q =
|
|
6529
|
+
const q = $i(C, L, a, o);
|
|
6530
6530
|
n.arc(q.x, q.y, A, S + zt, L + Math.PI);
|
|
6531
6531
|
}
|
|
6532
6532
|
const H = (S - A / h + (w + R / h)) / 2;
|
|
6533
6533
|
if (n.arc(a, o, h, S - A / h, H, !0), n.arc(a, o, h, H, w + R / h, !0), R > 0) {
|
|
6534
|
-
const q =
|
|
6534
|
+
const q = $i(M, B, a, o);
|
|
6535
6535
|
n.arc(q.x, q.y, R, B + Math.PI, w - zt);
|
|
6536
6536
|
}
|
|
6537
|
-
const V =
|
|
6537
|
+
const V = $i(O, w, a, o);
|
|
6538
6538
|
if (n.lineTo(V.x, V.y), D > 0) {
|
|
6539
|
-
const q =
|
|
6539
|
+
const q = $i(O, b, a, o);
|
|
6540
6540
|
n.arc(q.x, q.y, D, w - zt, b);
|
|
6541
6541
|
}
|
|
6542
6542
|
} else {
|
|
@@ -6548,7 +6548,7 @@ function Aa(n, t, e, i, s, r) {
|
|
|
6548
6548
|
}
|
|
6549
6549
|
n.closePath();
|
|
6550
6550
|
}
|
|
6551
|
-
function
|
|
6551
|
+
function Y0(n, t, e, i, s) {
|
|
6552
6552
|
const { fullCircles: r, startAngle: a, circumference: o } = t;
|
|
6553
6553
|
let l = t.endAngle;
|
|
6554
6554
|
if (r) {
|
|
@@ -6559,7 +6559,7 @@ function $0(n, t, e, i, s) {
|
|
|
6559
6559
|
}
|
|
6560
6560
|
return Aa(n, t, e, i, l, s), n.fill(), l;
|
|
6561
6561
|
}
|
|
6562
|
-
function
|
|
6562
|
+
function $0(n, t, e, i, s) {
|
|
6563
6563
|
const { fullCircles: r, startAngle: a, circumference: o, options: l } = t, { borderWidth: c, borderJoinStyle: u, borderDash: d, borderDashOffset: h, borderRadius: f } = l, g = l.borderAlign === "inner";
|
|
6564
6564
|
if (!c)
|
|
6565
6565
|
return;
|
|
@@ -6573,7 +6573,7 @@ function Y0(n, t, e, i, s) {
|
|
|
6573
6573
|
}
|
|
6574
6574
|
g && H0(n, t, y), l.selfJoin && y - a >= _t && f === 0 && u !== "miter" && U0(n, t, y), r || (Aa(n, t, e, i, y, s), n.stroke());
|
|
6575
6575
|
}
|
|
6576
|
-
class
|
|
6576
|
+
class $s extends de {
|
|
6577
6577
|
constructor(e) {
|
|
6578
6578
|
super();
|
|
6579
6579
|
P(this, "circumference");
|
|
@@ -6626,10 +6626,10 @@ class Ys extends de {
|
|
|
6626
6626
|
const l = (this.startAngle + this.endAngle) / 2;
|
|
6627
6627
|
e.translate(Math.cos(l) * r, Math.sin(l) * r);
|
|
6628
6628
|
const c = 1 - Math.sin(Math.min(_t, s || 0)), u = r * c;
|
|
6629
|
-
e.fillStyle = i.backgroundColor, e.strokeStyle = i.borderColor,
|
|
6629
|
+
e.fillStyle = i.backgroundColor, e.strokeStyle = i.borderColor, Y0(e, this, u, a, o), $0(e, this, u, a, o), e.restore();
|
|
6630
6630
|
}
|
|
6631
6631
|
}
|
|
6632
|
-
P(
|
|
6632
|
+
P($s, "id", "arc"), P($s, "defaults", {
|
|
6633
6633
|
borderAlign: "center",
|
|
6634
6634
|
borderColor: "#fff",
|
|
6635
6635
|
borderDash: [],
|
|
@@ -6642,9 +6642,9 @@ P(Ys, "id", "arc"), P(Ys, "defaults", {
|
|
|
6642
6642
|
angle: void 0,
|
|
6643
6643
|
circular: !0,
|
|
6644
6644
|
selfJoin: !1
|
|
6645
|
-
}), P(
|
|
6645
|
+
}), P($s, "defaultRoutes", {
|
|
6646
6646
|
backgroundColor: "backgroundColor"
|
|
6647
|
-
}), P(
|
|
6647
|
+
}), P($s, "descriptors", {
|
|
6648
6648
|
_scriptable: !0,
|
|
6649
6649
|
_indexable: (e) => e !== "borderDash"
|
|
6650
6650
|
});
|
|
@@ -6996,7 +6996,7 @@ P(pa, "id", "bar"), P(pa, "defaults", {
|
|
|
6996
6996
|
});
|
|
6997
6997
|
var r_ = /* @__PURE__ */ Object.freeze({
|
|
6998
6998
|
__proto__: null,
|
|
6999
|
-
ArcElement:
|
|
6999
|
+
ArcElement: $s,
|
|
7000
7000
|
BarElement: pa,
|
|
7001
7001
|
LineElement: Gn,
|
|
7002
7002
|
PointElement: ma
|
|
@@ -7942,7 +7942,7 @@ class Mc extends de {
|
|
|
7942
7942
|
});
|
|
7943
7943
|
}
|
|
7944
7944
|
}
|
|
7945
|
-
function
|
|
7945
|
+
function Y_(n, t) {
|
|
7946
7946
|
const e = new Mc({
|
|
7947
7947
|
ctx: n.ctx,
|
|
7948
7948
|
options: t,
|
|
@@ -7950,11 +7950,11 @@ function $_(n, t) {
|
|
|
7950
7950
|
});
|
|
7951
7951
|
we.configure(n, e, t), we.addBox(n, e), n.titleBlock = e;
|
|
7952
7952
|
}
|
|
7953
|
-
var
|
|
7953
|
+
var $_ = {
|
|
7954
7954
|
id: "title",
|
|
7955
7955
|
_element: Mc,
|
|
7956
7956
|
start(n, t, e) {
|
|
7957
|
-
|
|
7957
|
+
Y_(n, e);
|
|
7958
7958
|
},
|
|
7959
7959
|
stop(n) {
|
|
7960
7960
|
const t = n.titleBlock;
|
|
@@ -8159,7 +8159,7 @@ function od(n, t) {
|
|
|
8159
8159
|
const e = t && t.dataset && t.dataset.tooltip && t.dataset.tooltip.callbacks;
|
|
8160
8160
|
return e ? n.override(e) : n;
|
|
8161
8161
|
}
|
|
8162
|
-
const
|
|
8162
|
+
const Yf = {
|
|
8163
8163
|
beforeTitle: Sn,
|
|
8164
8164
|
title(n) {
|
|
8165
8165
|
if (n.length > 0) {
|
|
@@ -8213,7 +8213,7 @@ const $f = {
|
|
|
8213
8213
|
};
|
|
8214
8214
|
function Re(n, t, e, i) {
|
|
8215
8215
|
const s = n[t].call(e, i);
|
|
8216
|
-
return typeof s > "u" ?
|
|
8216
|
+
return typeof s > "u" ? Yf[t].call(e, i) : s;
|
|
8217
8217
|
}
|
|
8218
8218
|
class Ul extends de {
|
|
8219
8219
|
constructor(t) {
|
|
@@ -8539,7 +8539,7 @@ var We = {
|
|
|
8539
8539
|
duration: 200
|
|
8540
8540
|
}
|
|
8541
8541
|
},
|
|
8542
|
-
callbacks:
|
|
8542
|
+
callbacks: Yf
|
|
8543
8543
|
},
|
|
8544
8544
|
defaultRoutes: {
|
|
8545
8545
|
bodyFont: "font",
|
|
@@ -8570,7 +8570,7 @@ var We = {
|
|
|
8570
8570
|
Filler: N_,
|
|
8571
8571
|
Legend: W_,
|
|
8572
8572
|
SubTitle: j_,
|
|
8573
|
-
Title:
|
|
8573
|
+
Title: $_,
|
|
8574
8574
|
Tooltip: We
|
|
8575
8575
|
});
|
|
8576
8576
|
const tv = (n, t, e, i) => (typeof t == "string" ? (e = n.push(t) - 1, i.unshift({
|
|
@@ -8764,7 +8764,7 @@ class Bl extends Pa {
|
|
|
8764
8764
|
}
|
|
8765
8765
|
P(Bl, "id", "linear"), P(Bl, "defaults", {
|
|
8766
8766
|
ticks: {
|
|
8767
|
-
callback:
|
|
8767
|
+
callback: $a.formatters.numeric
|
|
8768
8768
|
}
|
|
8769
8769
|
});
|
|
8770
8770
|
const gr = (n) => Math.floor(Vn(n)), pi = (n, t) => Math.pow(10, gr(n) + t);
|
|
@@ -8852,13 +8852,13 @@ class Wl extends Oi {
|
|
|
8852
8852
|
}
|
|
8853
8853
|
P(Wl, "id", "logarithmic"), P(Wl, "defaults", {
|
|
8854
8854
|
ticks: {
|
|
8855
|
-
callback:
|
|
8855
|
+
callback: $a.formatters.logarithmic,
|
|
8856
8856
|
major: {
|
|
8857
8857
|
enabled: !0
|
|
8858
8858
|
}
|
|
8859
8859
|
}
|
|
8860
8860
|
});
|
|
8861
|
-
function
|
|
8861
|
+
function Yl(n) {
|
|
8862
8862
|
const t = n.ticks;
|
|
8863
8863
|
if (t.display && n.display) {
|
|
8864
8864
|
const e = ee(t.backdropPadding);
|
|
@@ -8898,7 +8898,7 @@ function ov(n) {
|
|
|
8898
8898
|
s[l] = c.padding;
|
|
8899
8899
|
const u = n.getPointPosition(l, n.drawingArea + s[l], o), d = Wt(c.font), h = av(n.ctx, d, n._pointLabels[l]);
|
|
8900
8900
|
i[l] = h;
|
|
8901
|
-
const f = xe(n.getIndexAngle(l) + o), g = Math.round(
|
|
8901
|
+
const f = xe(n.getIndexAngle(l) + o), g = Math.round(Ya(f)), y = hd(g, u.x, h.w, 0, 180), v = hd(g, u.y, h.h, 90, 270);
|
|
8902
8902
|
lv(e, t, f, y, v);
|
|
8903
8903
|
}
|
|
8904
8904
|
n.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), n._pointLabelItems = dv(n, i, s);
|
|
@@ -8909,7 +8909,7 @@ function lv(n, t, e, i, s) {
|
|
|
8909
8909
|
i.start < t.l ? (o = (t.l - i.start) / r, n.l = Math.min(n.l, t.l - o)) : i.end > t.r && (o = (i.end - t.r) / r, n.r = Math.max(n.r, t.r + o)), s.start < t.t ? (l = (t.t - s.start) / a, n.t = Math.min(n.t, t.t - l)) : s.end > t.b && (l = (s.end - t.b) / a, n.b = Math.max(n.b, t.b + l));
|
|
8910
8910
|
}
|
|
8911
8911
|
function cv(n, t, e) {
|
|
8912
|
-
const i = n.drawingArea, { extra: s, additionalAngle: r, padding: a, size: o } = e, l = n.getPointPosition(t, i + s + a, r), c = Math.round(
|
|
8912
|
+
const i = n.drawingArea, { extra: s, additionalAngle: r, padding: a, size: o } = e, l = n.getPointPosition(t, i + s + a, r), c = Math.round(Ya(xe(l.angle + zt))), u = gv(l.y, o.h, c), d = hv(c), h = fv(l.x, o.w, d);
|
|
8913
8913
|
return {
|
|
8914
8914
|
visible: !0,
|
|
8915
8915
|
x: l.x,
|
|
@@ -8941,7 +8941,7 @@ function uv(n, t) {
|
|
|
8941
8941
|
}
|
|
8942
8942
|
function dv(n, t, e) {
|
|
8943
8943
|
const i = [], s = n._pointLabels.length, r = n.options, { centerPointLabels: a, display: o } = r.pointLabels, l = {
|
|
8944
|
-
extra:
|
|
8944
|
+
extra: Yl(r) / 2,
|
|
8945
8945
|
additionalAngle: a ? _t / s : 0
|
|
8946
8946
|
};
|
|
8947
8947
|
let c;
|
|
@@ -8992,7 +8992,7 @@ function pv(n, t) {
|
|
|
8992
8992
|
});
|
|
8993
8993
|
}
|
|
8994
8994
|
}
|
|
8995
|
-
function
|
|
8995
|
+
function $f(n, t, e, i) {
|
|
8996
8996
|
const { ctx: s } = n;
|
|
8997
8997
|
if (e)
|
|
8998
8998
|
s.arc(n.xCenter, n.yCenter, t, 0, Nt);
|
|
@@ -9005,7 +9005,7 @@ function Yf(n, t, e, i) {
|
|
|
9005
9005
|
}
|
|
9006
9006
|
function yv(n, t, e, i, s) {
|
|
9007
9007
|
const r = n.ctx, a = t.circular, { color: o, lineWidth: l } = t;
|
|
9008
|
-
!a && !i || !o || !l || e < 0 || (r.save(), r.strokeStyle = o, r.lineWidth = l, r.setLineDash(s.dash || []), r.lineDashOffset = s.dashOffset, r.beginPath(),
|
|
9008
|
+
!a && !i || !o || !l || e < 0 || (r.save(), r.strokeStyle = o, r.lineWidth = l, r.setLineDash(s.dash || []), r.lineDashOffset = s.dashOffset, r.beginPath(), $f(n, e, a, i), r.closePath(), r.stroke(), r.restore());
|
|
9009
9009
|
}
|
|
9010
9010
|
function bv(n, t, e) {
|
|
9011
9011
|
return ri(n, {
|
|
@@ -9019,7 +9019,7 @@ class Vs extends Pa {
|
|
|
9019
9019
|
super(t), this.xCenter = void 0, this.yCenter = void 0, this.drawingArea = void 0, this._pointLabels = [], this._pointLabelItems = [];
|
|
9020
9020
|
}
|
|
9021
9021
|
setDimensions() {
|
|
9022
|
-
const t = this._padding = ee(
|
|
9022
|
+
const t = this._padding = ee(Yl(this.options) / 2), e = this.width = this.maxWidth - t.width, i = this.height = this.maxHeight - t.height;
|
|
9023
9023
|
this.xCenter = Math.floor(this.left + e / 2 + t.left), this.yCenter = Math.floor(this.top + i / 2 + t.top), this.drawingArea = Math.floor(Math.min(e, i) / 2);
|
|
9024
9024
|
}
|
|
9025
9025
|
determineDataLimits() {
|
|
@@ -9027,7 +9027,7 @@ class Vs extends Pa {
|
|
|
9027
9027
|
this.min = Bt(t) && !isNaN(t) ? t : 0, this.max = Bt(e) && !isNaN(e) ? e : 0, this.handleTickRangeOptions();
|
|
9028
9028
|
}
|
|
9029
9029
|
computeTickLimit() {
|
|
9030
|
-
return Math.ceil(this.drawingArea /
|
|
9030
|
+
return Math.ceil(this.drawingArea / Yl(this.options));
|
|
9031
9031
|
}
|
|
9032
9032
|
generateTickLabels(t) {
|
|
9033
9033
|
Pa.prototype.generateTickLabels.call(this, t), this._pointLabels = this.getLabels().map((e, i) => {
|
|
@@ -9095,7 +9095,7 @@ class Vs extends Pa {
|
|
|
9095
9095
|
const { backgroundColor: t, grid: { circular: e } } = this.options;
|
|
9096
9096
|
if (t) {
|
|
9097
9097
|
const i = this.ctx;
|
|
9098
|
-
i.save(), i.beginPath(),
|
|
9098
|
+
i.save(), i.beginPath(), $f(this, this.getDistanceFromCenterForValue(this._endValue), e, this._pointLabels.length), i.closePath(), i.fillStyle = t, i.fill(), i.restore();
|
|
9099
9099
|
}
|
|
9100
9100
|
}
|
|
9101
9101
|
drawGrid() {
|
|
@@ -9158,7 +9158,7 @@ P(Vs, "id", "radialLinear"), P(Vs, "defaults", {
|
|
|
9158
9158
|
startAngle: 0,
|
|
9159
9159
|
ticks: {
|
|
9160
9160
|
showLabelBackdrop: !0,
|
|
9161
|
-
callback:
|
|
9161
|
+
callback: $a.formatters.numeric
|
|
9162
9162
|
},
|
|
9163
9163
|
pointLabels: {
|
|
9164
9164
|
backdropColor: void 0,
|
|
@@ -9454,7 +9454,7 @@ function ra(n, t, e) {
|
|
|
9454
9454
|
const c = a - r;
|
|
9455
9455
|
return c ? o + (l - o) * (t - r) / c : o;
|
|
9456
9456
|
}
|
|
9457
|
-
class
|
|
9457
|
+
class $l extends mr {
|
|
9458
9458
|
constructor(t) {
|
|
9459
9459
|
super(t), this._table = [], this._minPos = void 0, this._tableRange = void 0;
|
|
9460
9460
|
}
|
|
@@ -9505,7 +9505,7 @@ class Yl extends mr {
|
|
|
9505
9505
|
return ra(this._table, i * this._tableRange + this._minPos, !0);
|
|
9506
9506
|
}
|
|
9507
9507
|
}
|
|
9508
|
-
P(
|
|
9508
|
+
P($l, "id", "timeseries"), P($l, "defaults", mr.defaults);
|
|
9509
9509
|
var wv = /* @__PURE__ */ Object.freeze({
|
|
9510
9510
|
__proto__: null,
|
|
9511
9511
|
CategoryScale: Hl,
|
|
@@ -9513,7 +9513,7 @@ var wv = /* @__PURE__ */ Object.freeze({
|
|
|
9513
9513
|
LogarithmicScale: Wl,
|
|
9514
9514
|
RadialLinearScale: Vs,
|
|
9515
9515
|
TimeScale: mr,
|
|
9516
|
-
TimeSeriesScale:
|
|
9516
|
+
TimeSeriesScale: $l
|
|
9517
9517
|
});
|
|
9518
9518
|
const Sv = [
|
|
9519
9519
|
Pb,
|
|
@@ -9727,7 +9727,7 @@ function Wv(n, t, e) {
|
|
|
9727
9727
|
const i = Gf(n, t, e) / 7;
|
|
9728
9728
|
return Tr(e == null ? void 0 : e.roundingMethod)(i);
|
|
9729
9729
|
}
|
|
9730
|
-
function
|
|
9730
|
+
function Yv(n, t, e) {
|
|
9731
9731
|
const [i, s] = Ai(
|
|
9732
9732
|
e == null ? void 0 : e.in,
|
|
9733
9733
|
n,
|
|
@@ -9737,7 +9737,7 @@ function $v(n, t, e) {
|
|
|
9737
9737
|
const o = ir(i, s) === -r, l = r * (a - +o);
|
|
9738
9738
|
return l === 0 ? 0 : l;
|
|
9739
9739
|
}
|
|
9740
|
-
function
|
|
9740
|
+
function $v(n, t) {
|
|
9741
9741
|
const e = pt(n, t == null ? void 0 : t.in), i = e.getMonth(), s = i - i % 3;
|
|
9742
9742
|
return e.setMonth(s, 1), e.setHours(0, 0, 0, 0), e;
|
|
9743
9743
|
}
|
|
@@ -10905,11 +10905,11 @@ function Wx(n) {
|
|
|
10905
10905
|
function rg() {
|
|
10906
10906
|
return Object.assign({}, Ci());
|
|
10907
10907
|
}
|
|
10908
|
-
function
|
|
10908
|
+
function Yx(n, t) {
|
|
10909
10909
|
const e = pt(n, t == null ? void 0 : t.in).getDay();
|
|
10910
10910
|
return e === 0 ? 7 : e;
|
|
10911
10911
|
}
|
|
10912
|
-
function
|
|
10912
|
+
function $x(n, t) {
|
|
10913
10913
|
const e = jx(t) ? new t(0) : Gt(t, 0);
|
|
10914
10914
|
return e.setFullYear(n.getFullYear(), n.getMonth(), n.getDate()), e.setHours(
|
|
10915
10915
|
n.getHours(),
|
|
@@ -10950,7 +10950,7 @@ class Gx extends ag {
|
|
|
10950
10950
|
this.context = e || ((s) => Gt(i, s));
|
|
10951
10951
|
}
|
|
10952
10952
|
set(e, i) {
|
|
10953
|
-
return i.timestampIsSet ? e : Gt(e,
|
|
10953
|
+
return i.timestampIsSet ? e : Gt(e, $x(e, this.context));
|
|
10954
10954
|
}
|
|
10955
10955
|
}
|
|
10956
10956
|
class kt {
|
|
@@ -11045,7 +11045,7 @@ function Jt(n, t) {
|
|
|
11045
11045
|
rest: n.rest
|
|
11046
11046
|
};
|
|
11047
11047
|
}
|
|
11048
|
-
function
|
|
11048
|
+
function Yt(n, t) {
|
|
11049
11049
|
const e = t.match(n);
|
|
11050
11050
|
return e ? {
|
|
11051
11051
|
value: parseInt(e[0], 10),
|
|
@@ -11068,34 +11068,34 @@ function hn(n, t) {
|
|
|
11068
11068
|
};
|
|
11069
11069
|
}
|
|
11070
11070
|
function og(n) {
|
|
11071
|
-
return
|
|
11071
|
+
return Yt(Qt.anyDigitsSigned, n);
|
|
11072
11072
|
}
|
|
11073
11073
|
function Kt(n, t) {
|
|
11074
11074
|
switch (n) {
|
|
11075
11075
|
case 1:
|
|
11076
|
-
return
|
|
11076
|
+
return Yt(Qt.singleDigit, t);
|
|
11077
11077
|
case 2:
|
|
11078
|
-
return
|
|
11078
|
+
return Yt(Qt.twoDigits, t);
|
|
11079
11079
|
case 3:
|
|
11080
|
-
return
|
|
11080
|
+
return Yt(Qt.threeDigits, t);
|
|
11081
11081
|
case 4:
|
|
11082
|
-
return
|
|
11082
|
+
return Yt(Qt.fourDigits, t);
|
|
11083
11083
|
default:
|
|
11084
|
-
return
|
|
11084
|
+
return Yt(new RegExp("^\\d{1," + n + "}"), t);
|
|
11085
11085
|
}
|
|
11086
11086
|
}
|
|
11087
11087
|
function Ia(n, t) {
|
|
11088
11088
|
switch (n) {
|
|
11089
11089
|
case 1:
|
|
11090
|
-
return
|
|
11090
|
+
return Yt(Qt.singleDigitSigned, t);
|
|
11091
11091
|
case 2:
|
|
11092
|
-
return
|
|
11092
|
+
return Yt(Qt.twoDigitsSigned, t);
|
|
11093
11093
|
case 3:
|
|
11094
|
-
return
|
|
11094
|
+
return Yt(Qt.threeDigitsSigned, t);
|
|
11095
11095
|
case 4:
|
|
11096
|
-
return
|
|
11096
|
+
return Yt(Qt.fourDigitsSigned, t);
|
|
11097
11097
|
default:
|
|
11098
|
-
return
|
|
11098
|
+
return Yt(new RegExp("^-?\\d{1," + n + "}"), t);
|
|
11099
11099
|
}
|
|
11100
11100
|
}
|
|
11101
11101
|
function Pc(n) {
|
|
@@ -11421,7 +11421,7 @@ class nw extends kt {
|
|
|
11421
11421
|
switch (i) {
|
|
11422
11422
|
case "M":
|
|
11423
11423
|
return Jt(
|
|
11424
|
-
|
|
11424
|
+
Yt(Qt.month, e),
|
|
11425
11425
|
r
|
|
11426
11426
|
);
|
|
11427
11427
|
case "MM":
|
|
@@ -11483,7 +11483,7 @@ class iw extends kt {
|
|
|
11483
11483
|
switch (i) {
|
|
11484
11484
|
case "L":
|
|
11485
11485
|
return Jt(
|
|
11486
|
-
|
|
11486
|
+
Yt(Qt.month, e),
|
|
11487
11487
|
r
|
|
11488
11488
|
);
|
|
11489
11489
|
case "LL":
|
|
@@ -11547,7 +11547,7 @@ class rw extends kt {
|
|
|
11547
11547
|
parse(e, i, s) {
|
|
11548
11548
|
switch (i) {
|
|
11549
11549
|
case "w":
|
|
11550
|
-
return
|
|
11550
|
+
return Yt(Qt.week, e);
|
|
11551
11551
|
case "wo":
|
|
11552
11552
|
return s.ordinalNumber(e, { unit: "week" });
|
|
11553
11553
|
default:
|
|
@@ -11589,7 +11589,7 @@ class ow extends kt {
|
|
|
11589
11589
|
parse(e, i, s) {
|
|
11590
11590
|
switch (i) {
|
|
11591
11591
|
case "I":
|
|
11592
|
-
return
|
|
11592
|
+
return Yt(Qt.week, e);
|
|
11593
11593
|
case "Io":
|
|
11594
11594
|
return s.ordinalNumber(e, { unit: "week" });
|
|
11595
11595
|
default:
|
|
@@ -11640,7 +11640,7 @@ class uw extends kt {
|
|
|
11640
11640
|
parse(e, i, s) {
|
|
11641
11641
|
switch (i) {
|
|
11642
11642
|
case "d":
|
|
11643
|
-
return
|
|
11643
|
+
return Yt(Qt.date, e);
|
|
11644
11644
|
case "do":
|
|
11645
11645
|
return s.ordinalNumber(e, { unit: "date" });
|
|
11646
11646
|
default:
|
|
@@ -11682,7 +11682,7 @@ class dw extends kt {
|
|
|
11682
11682
|
switch (i) {
|
|
11683
11683
|
case "D":
|
|
11684
11684
|
case "DD":
|
|
11685
|
-
return
|
|
11685
|
+
return Yt(Qt.dayOfYear, e);
|
|
11686
11686
|
case "Do":
|
|
11687
11687
|
return s.ordinalNumber(e, { unit: "date" });
|
|
11688
11688
|
default:
|
|
@@ -11870,7 +11870,7 @@ class gw extends kt {
|
|
|
11870
11870
|
}
|
|
11871
11871
|
}
|
|
11872
11872
|
function mw(n, t, e) {
|
|
11873
|
-
const i = pt(n, e == null ? void 0 : e.in), s =
|
|
11873
|
+
const i = pt(n, e == null ? void 0 : e.in), s = Yx(i, e), r = t - s;
|
|
11874
11874
|
return Ga(i, r, e);
|
|
11875
11875
|
}
|
|
11876
11876
|
class pw extends kt {
|
|
@@ -12095,7 +12095,7 @@ class vw extends kt {
|
|
|
12095
12095
|
parse(e, i, s) {
|
|
12096
12096
|
switch (i) {
|
|
12097
12097
|
case "h":
|
|
12098
|
-
return
|
|
12098
|
+
return Yt(Qt.hour12h, e);
|
|
12099
12099
|
case "ho":
|
|
12100
12100
|
return s.ordinalNumber(e, { unit: "hour" });
|
|
12101
12101
|
default:
|
|
@@ -12119,7 +12119,7 @@ class xw extends kt {
|
|
|
12119
12119
|
parse(e, i, s) {
|
|
12120
12120
|
switch (i) {
|
|
12121
12121
|
case "H":
|
|
12122
|
-
return
|
|
12122
|
+
return Yt(Qt.hour23h, e);
|
|
12123
12123
|
case "Ho":
|
|
12124
12124
|
return s.ordinalNumber(e, { unit: "hour" });
|
|
12125
12125
|
default:
|
|
@@ -12142,7 +12142,7 @@ class ww extends kt {
|
|
|
12142
12142
|
parse(e, i, s) {
|
|
12143
12143
|
switch (i) {
|
|
12144
12144
|
case "K":
|
|
12145
|
-
return
|
|
12145
|
+
return Yt(Qt.hour11h, e);
|
|
12146
12146
|
case "Ko":
|
|
12147
12147
|
return s.ordinalNumber(e, { unit: "hour" });
|
|
12148
12148
|
default:
|
|
@@ -12165,7 +12165,7 @@ class Sw extends kt {
|
|
|
12165
12165
|
parse(e, i, s) {
|
|
12166
12166
|
switch (i) {
|
|
12167
12167
|
case "k":
|
|
12168
|
-
return
|
|
12168
|
+
return Yt(Qt.hour24h, e);
|
|
12169
12169
|
case "ko":
|
|
12170
12170
|
return s.ordinalNumber(e, { unit: "hour" });
|
|
12171
12171
|
default:
|
|
@@ -12189,7 +12189,7 @@ class Tw extends kt {
|
|
|
12189
12189
|
parse(e, i, s) {
|
|
12190
12190
|
switch (i) {
|
|
12191
12191
|
case "m":
|
|
12192
|
-
return
|
|
12192
|
+
return Yt(Qt.minute, e);
|
|
12193
12193
|
case "mo":
|
|
12194
12194
|
return s.ordinalNumber(e, { unit: "minute" });
|
|
12195
12195
|
default:
|
|
@@ -12212,7 +12212,7 @@ class Mw extends kt {
|
|
|
12212
12212
|
parse(e, i, s) {
|
|
12213
12213
|
switch (i) {
|
|
12214
12214
|
case "s":
|
|
12215
|
-
return
|
|
12215
|
+
return Yt(Qt.second, e);
|
|
12216
12216
|
case "so":
|
|
12217
12217
|
return s.ordinalNumber(e, { unit: "second" });
|
|
12218
12218
|
default:
|
|
@@ -12459,7 +12459,7 @@ function Ww(n, t) {
|
|
|
12459
12459
|
const e = pt(n, t == null ? void 0 : t.in);
|
|
12460
12460
|
return e.setMilliseconds(0), e;
|
|
12461
12461
|
}
|
|
12462
|
-
function
|
|
12462
|
+
function Yw(n) {
|
|
12463
12463
|
const t = n / hs;
|
|
12464
12464
|
return Math.trunc(t);
|
|
12465
12465
|
}
|
|
@@ -12496,7 +12496,7 @@ const aa = {
|
|
|
12496
12496
|
dateTimeDelimiter: /[T ]/,
|
|
12497
12497
|
timeZoneDelimiter: /[Z ]/i,
|
|
12498
12498
|
timezone: /([Z+-].*)$/
|
|
12499
|
-
},
|
|
12499
|
+
}, $w = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, jw = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, Vw = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
12500
12500
|
function qw(n) {
|
|
12501
12501
|
const t = {}, e = n.split(aa.dateTimeDelimiter);
|
|
12502
12502
|
let i;
|
|
@@ -12524,7 +12524,7 @@ function Gw(n, t) {
|
|
|
12524
12524
|
}
|
|
12525
12525
|
function Kw(n, t) {
|
|
12526
12526
|
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
12527
|
-
const e = n.match(
|
|
12527
|
+
const e = n.match($w);
|
|
12528
12528
|
if (!e) return /* @__PURE__ */ new Date(NaN);
|
|
12529
12529
|
const i = !!e[4], s = Ls(e[1]), r = Ls(e[2]) - 1, a = Ls(e[3]), o = Ls(e[4]), l = Ls(e[5]) - 1;
|
|
12530
12530
|
if (i)
|
|
@@ -13398,9 +13398,9 @@ const H1 = /^(\d+)(th|st|nd|rd)?/i, B1 = /\d+/i, W1 = {
|
|
|
13398
13398
|
narrow: /^(b|a)/i,
|
|
13399
13399
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
13400
13400
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
13401
|
-
}, $1 = {
|
|
13402
|
-
any: [/^b/i, /^(a|c)/i]
|
|
13403
13401
|
}, Y1 = {
|
|
13402
|
+
any: [/^b/i, /^(a|c)/i]
|
|
13403
|
+
}, $1 = {
|
|
13404
13404
|
narrow: /^[1234]/i,
|
|
13405
13405
|
abbreviated: /^q[1234]/i,
|
|
13406
13406
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
@@ -13470,11 +13470,11 @@ const H1 = /^(\d+)(th|st|nd|rd)?/i, B1 = /\d+/i, W1 = {
|
|
|
13470
13470
|
era: Fs({
|
|
13471
13471
|
matchPatterns: W1,
|
|
13472
13472
|
defaultMatchWidth: "wide",
|
|
13473
|
-
parsePatterns:
|
|
13473
|
+
parsePatterns: Y1,
|
|
13474
13474
|
defaultParseWidth: "any"
|
|
13475
13475
|
}),
|
|
13476
13476
|
quarter: Fs({
|
|
13477
|
-
matchPatterns:
|
|
13477
|
+
matchPatterns: $1,
|
|
13478
13478
|
defaultMatchWidth: "wide",
|
|
13479
13479
|
parsePatterns: j1,
|
|
13480
13480
|
defaultParseWidth: "any",
|
|
@@ -14422,7 +14422,7 @@ function Ec(n, t, e, i, s, r, a) {
|
|
|
14422
14422
|
const o = /* @__PURE__ */ new Date(0);
|
|
14423
14423
|
return o.setUTCFullYear(n, t, e), o.setUTCHours(i, s, r, a), o;
|
|
14424
14424
|
}
|
|
14425
|
-
const Ed = 36e5,
|
|
14425
|
+
const Ed = 36e5, YS = 6e4, al = {
|
|
14426
14426
|
timezoneZ: /^(Z)$/,
|
|
14427
14427
|
timezoneHH: /^([+-]\d{2})$/,
|
|
14428
14428
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -14439,16 +14439,16 @@ function Dr(n, t, e) {
|
|
|
14439
14439
|
if (i = al.timezoneHHMM.exec(n), i) {
|
|
14440
14440
|
s = parseInt(i[2], 10);
|
|
14441
14441
|
const a = parseInt(i[3], 10);
|
|
14442
|
-
return Id(s, a) ? (r = Math.abs(s) * Ed + a *
|
|
14442
|
+
return Id(s, a) ? (r = Math.abs(s) * Ed + a * YS, i[1] === "+" ? -r : r) : NaN;
|
|
14443
14443
|
}
|
|
14444
14444
|
if (VS(n)) {
|
|
14445
14445
|
t = new Date(t || Date.now());
|
|
14446
|
-
const a = e ? t :
|
|
14446
|
+
const a = e ? t : $S(t), o = Gl(a, n);
|
|
14447
14447
|
return -(e ? o : jS(t, o, n));
|
|
14448
14448
|
}
|
|
14449
14449
|
return NaN;
|
|
14450
14450
|
}
|
|
14451
|
-
function
|
|
14451
|
+
function $S(n) {
|
|
14452
14452
|
return Ec(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds());
|
|
14453
14453
|
}
|
|
14454
14454
|
function Gl(n, t) {
|
|
@@ -14828,7 +14828,7 @@ za.exports;
|
|
|
14828
14828
|
(function(n, t) {
|
|
14829
14829
|
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]", g = "[object Object]", y = "[object Promise]", v = "[object RegExp]", w = "[object Set]", S = "[object String]", D = "[object Symbol]", k = "[object WeakMap]", R = "[object ArrayBuffer]", A = "[object DataView]", O = "[object Float32Array]", m = "[object Float64Array]", b = "[object Int8Array]", _ = "[object Int16Array]", M = "[object Int32Array]", C = "[object Uint8Array]", B = "[object Uint8ClampedArray]", L = "[object Uint16Array]", W = "[object Uint32Array]", F = /[\\^$.*+?()[\]{}|]/g, H = /\w*$/, V = /^\[object .+?Constructor\]$/, q = /^(?:0|[1-9]\d*)$/, j = {};
|
|
14830
14830
|
j[r] = j[a] = j[R] = j[A] = j[o] = j[l] = j[O] = j[m] = j[b] = j[_] = j[M] = j[h] = j[f] = j[g] = j[v] = j[w] = j[S] = j[D] = j[C] = j[B] = j[L] = j[W] = !0, j[c] = j[u] = j[k] = !1;
|
|
14831
|
-
var E = typeof la == "object" && la && la.Object === Object && la, z = typeof self == "object" && self && self.Object === Object && self,
|
|
14831
|
+
var E = typeof la == "object" && la && la.Object === Object && la, z = typeof self == "object" && self && self.Object === Object && self, Y = E || z || Function("return this")(), at = t && !t.nodeType && t, it = at && !0 && n && !n.nodeType && n, G = it && it.exports === at;
|
|
14832
14832
|
function K(x, I) {
|
|
14833
14833
|
return x.set(I[0], I[1]), x;
|
|
14834
14834
|
}
|
|
@@ -14836,23 +14836,23 @@ za.exports;
|
|
|
14836
14836
|
return x.add(I), x;
|
|
14837
14837
|
}
|
|
14838
14838
|
function nt(x, I) {
|
|
14839
|
-
for (var
|
|
14839
|
+
for (var $ = -1, st = x ? x.length : 0; ++$ < st && I(x[$], $, x) !== !1; )
|
|
14840
14840
|
;
|
|
14841
14841
|
return x;
|
|
14842
14842
|
}
|
|
14843
14843
|
function et(x, I) {
|
|
14844
|
-
for (var
|
|
14845
|
-
x[Xt +
|
|
14844
|
+
for (var $ = -1, st = I.length, Xt = x.length; ++$ < st; )
|
|
14845
|
+
x[Xt + $] = I[$];
|
|
14846
14846
|
return x;
|
|
14847
14847
|
}
|
|
14848
|
-
function tt(x, I,
|
|
14848
|
+
function tt(x, I, $, st) {
|
|
14849
14849
|
for (var Xt = -1, re = x ? x.length : 0; ++Xt < re; )
|
|
14850
|
-
|
|
14851
|
-
return
|
|
14850
|
+
$ = I($, x[Xt], Xt, x);
|
|
14851
|
+
return $;
|
|
14852
14852
|
}
|
|
14853
14853
|
function mt(x, I) {
|
|
14854
|
-
for (var
|
|
14855
|
-
st[
|
|
14854
|
+
for (var $ = -1, st = Array(x); ++$ < x; )
|
|
14855
|
+
st[$] = I($);
|
|
14856
14856
|
return st;
|
|
14857
14857
|
}
|
|
14858
14858
|
function Tt(x, I) {
|
|
@@ -14868,31 +14868,31 @@ za.exports;
|
|
|
14868
14868
|
return I;
|
|
14869
14869
|
}
|
|
14870
14870
|
function wt(x) {
|
|
14871
|
-
var I = -1,
|
|
14871
|
+
var I = -1, $ = Array(x.size);
|
|
14872
14872
|
return x.forEach(function(st, Xt) {
|
|
14873
|
-
|
|
14874
|
-
}),
|
|
14873
|
+
$[++I] = [Xt, st];
|
|
14874
|
+
}), $;
|
|
14875
14875
|
}
|
|
14876
14876
|
function yt(x, I) {
|
|
14877
|
-
return function(
|
|
14878
|
-
return x(I(
|
|
14877
|
+
return function($) {
|
|
14878
|
+
return x(I($));
|
|
14879
14879
|
};
|
|
14880
14880
|
}
|
|
14881
14881
|
function ne(x) {
|
|
14882
|
-
var I = -1,
|
|
14882
|
+
var I = -1, $ = Array(x.size);
|
|
14883
14883
|
return x.forEach(function(st) {
|
|
14884
|
-
|
|
14885
|
-
}),
|
|
14884
|
+
$[++I] = st;
|
|
14885
|
+
}), $;
|
|
14886
14886
|
}
|
|
14887
|
-
var gt = Array.prototype, Ot = Function.prototype, fe = Object.prototype, ye =
|
|
14887
|
+
var gt = Array.prototype, Ot = Function.prototype, fe = Object.prototype, ye = Y["__core-js_shared__"], ie = function() {
|
|
14888
14888
|
var x = /[^.]+$/.exec(ye && ye.keys && ye.keys.IE_PROTO || "");
|
|
14889
14889
|
return x ? "Symbol(src)_1." + x : "";
|
|
14890
|
-
}(), an = Ot.toString, It = fe.hasOwnProperty, ge = fe.toString,
|
|
14890
|
+
}(), an = Ot.toString, It = fe.hasOwnProperty, ge = fe.toString, $t = RegExp(
|
|
14891
14891
|
"^" + an.call(It).replace(F, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
14892
|
-
), se = G ?
|
|
14892
|
+
), se = G ? Y.Buffer : void 0, me = Y.Symbol, on = Y.Uint8Array, ai = yt(Object.getPrototypeOf, Object), tn = Object.create, jt = fe.propertyIsEnumerable, Oe = gt.splice, oi = Object.getOwnPropertySymbols, Ar = se ? se.isBuffer : void 0, Pr = yt(Object.keys, Object), ys = Ln(Y, "DataView"), li = Ln(Y, "Map"), bs = Ln(Y, "Promise"), ci = Ln(Y, "Set"), mn = Ln(Y, "WeakMap"), pn = Ln(Object, "create"), _s = be(ys), vs = be(li), ui = be(bs), so = be(ci), ro = be(mn), Rr = me ? me.prototype : void 0, Er = Rr ? Rr.valueOf : void 0;
|
|
14893
14893
|
function yn(x) {
|
|
14894
|
-
var I = -1,
|
|
14895
|
-
for (this.clear(); ++I <
|
|
14894
|
+
var I = -1, $ = x ? x.length : 0;
|
|
14895
|
+
for (this.clear(); ++I < $; ) {
|
|
14896
14896
|
var st = x[I];
|
|
14897
14897
|
this.set(st[0], st[1]);
|
|
14898
14898
|
}
|
|
@@ -14906,8 +14906,8 @@ za.exports;
|
|
|
14906
14906
|
function Ir(x) {
|
|
14907
14907
|
var I = this.__data__;
|
|
14908
14908
|
if (pn) {
|
|
14909
|
-
var
|
|
14910
|
-
return
|
|
14909
|
+
var $ = I[x];
|
|
14910
|
+
return $ === i ? void 0 : $;
|
|
14911
14911
|
}
|
|
14912
14912
|
return It.call(I, x) ? I[x] : void 0;
|
|
14913
14913
|
}
|
|
@@ -14916,13 +14916,13 @@ za.exports;
|
|
|
14916
14916
|
return pn ? I[x] !== void 0 : It.call(I, x);
|
|
14917
14917
|
}
|
|
14918
14918
|
function ao(x, I) {
|
|
14919
|
-
var
|
|
14920
|
-
return
|
|
14919
|
+
var $ = this.__data__;
|
|
14920
|
+
return $[x] = pn && I === void 0 ? i : I, this;
|
|
14921
14921
|
}
|
|
14922
14922
|
yn.prototype.clear = Ii, yn.prototype.delete = xs, yn.prototype.get = Ir, yn.prototype.has = bn, yn.prototype.set = ao;
|
|
14923
14923
|
function en(x) {
|
|
14924
|
-
var I = -1,
|
|
14925
|
-
for (this.clear(); ++I <
|
|
14924
|
+
var I = -1, $ = x ? x.length : 0;
|
|
14925
|
+
for (this.clear(); ++I < $; ) {
|
|
14926
14926
|
var st = x[I];
|
|
14927
14927
|
this.set(st[0], st[1]);
|
|
14928
14928
|
}
|
|
@@ -14931,27 +14931,27 @@ za.exports;
|
|
|
14931
14931
|
this.__data__ = [];
|
|
14932
14932
|
}
|
|
14933
14933
|
function lo(x) {
|
|
14934
|
-
var I = this.__data__,
|
|
14935
|
-
if (
|
|
14934
|
+
var I = this.__data__, $ = Ni(I, x);
|
|
14935
|
+
if ($ < 0)
|
|
14936
14936
|
return !1;
|
|
14937
14937
|
var st = I.length - 1;
|
|
14938
|
-
return
|
|
14938
|
+
return $ == st ? I.pop() : Oe.call(I, $, 1), !0;
|
|
14939
14939
|
}
|
|
14940
14940
|
function co(x) {
|
|
14941
|
-
var I = this.__data__,
|
|
14942
|
-
return
|
|
14941
|
+
var I = this.__data__, $ = Ni(I, x);
|
|
14942
|
+
return $ < 0 ? void 0 : I[$][1];
|
|
14943
14943
|
}
|
|
14944
14944
|
function nn(x) {
|
|
14945
14945
|
return Ni(this.__data__, x) > -1;
|
|
14946
14946
|
}
|
|
14947
14947
|
function uo(x, I) {
|
|
14948
|
-
var
|
|
14949
|
-
return st < 0 ?
|
|
14948
|
+
var $ = this.__data__, st = Ni($, x);
|
|
14949
|
+
return st < 0 ? $.push([x, I]) : $[st][1] = I, this;
|
|
14950
14950
|
}
|
|
14951
14951
|
en.prototype.clear = oo, en.prototype.delete = lo, en.prototype.get = co, en.prototype.has = nn, en.prototype.set = uo;
|
|
14952
14952
|
function En(x) {
|
|
14953
|
-
var I = -1,
|
|
14954
|
-
for (this.clear(); ++I <
|
|
14953
|
+
var I = -1, $ = x ? x.length : 0;
|
|
14954
|
+
for (this.clear(); ++I < $; ) {
|
|
14955
14955
|
var st = x[I];
|
|
14956
14956
|
this.set(st[0], st[1]);
|
|
14957
14957
|
}
|
|
@@ -14992,36 +14992,36 @@ za.exports;
|
|
|
14992
14992
|
return this.__data__.has(x);
|
|
14993
14993
|
}
|
|
14994
14994
|
function _o(x, I) {
|
|
14995
|
-
var
|
|
14996
|
-
if (
|
|
14997
|
-
var st =
|
|
14995
|
+
var $ = this.__data__;
|
|
14996
|
+
if ($ instanceof en) {
|
|
14997
|
+
var st = $.__data__;
|
|
14998
14998
|
if (!li || st.length < e - 1)
|
|
14999
14999
|
return st.push([x, I]), this;
|
|
15000
|
-
|
|
15000
|
+
$ = this.__data__ = new En(st);
|
|
15001
15001
|
}
|
|
15002
|
-
return
|
|
15002
|
+
return $.set(x, I), this;
|
|
15003
15003
|
}
|
|
15004
15004
|
In.prototype.clear = po, In.prototype.delete = yo, In.prototype.get = bo, In.prototype.has = Li, In.prototype.set = _o;
|
|
15005
15005
|
function vo(x, I) {
|
|
15006
|
-
var
|
|
15006
|
+
var $ = Ms(x) || Bi(x) ? mt(x.length, String) : [], st = $.length, Xt = !!st;
|
|
15007
15007
|
for (var re in x)
|
|
15008
|
-
It.call(x, re) && !(Xt && (re == "length" || Fo(re, st))) &&
|
|
15009
|
-
return
|
|
15008
|
+
It.call(x, re) && !(Xt && (re == "length" || Fo(re, st))) && $.push(re);
|
|
15009
|
+
return $;
|
|
15010
15010
|
}
|
|
15011
|
-
function je(x, I,
|
|
15011
|
+
function je(x, I, $) {
|
|
15012
15012
|
var st = x[I];
|
|
15013
|
-
(!(It.call(x, I) && Ts(st,
|
|
15013
|
+
(!(It.call(x, I) && Ts(st, $)) || $ === void 0 && !(I in x)) && (x[I] = $);
|
|
15014
15014
|
}
|
|
15015
15015
|
function Ni(x, I) {
|
|
15016
|
-
for (var
|
|
15017
|
-
if (Ts(x[
|
|
15018
|
-
return
|
|
15016
|
+
for (var $ = x.length; $--; )
|
|
15017
|
+
if (Ts(x[$][0], I))
|
|
15018
|
+
return $;
|
|
15019
15019
|
return -1;
|
|
15020
15020
|
}
|
|
15021
15021
|
function xo(x, I) {
|
|
15022
15022
|
return x && Lr(I, di(I), x);
|
|
15023
15023
|
}
|
|
15024
|
-
function ws(x, I,
|
|
15024
|
+
function ws(x, I, $, st, Xt, re, Ce) {
|
|
15025
15025
|
var le;
|
|
15026
15026
|
if (st && (le = re ? st(x, Xt, re, Ce) : st(x)), le !== void 0)
|
|
15027
15027
|
return le;
|
|
@@ -15032,13 +15032,13 @@ za.exports;
|
|
|
15032
15032
|
if (le = Lo(x), !I)
|
|
15033
15033
|
return Ro(x, le);
|
|
15034
15034
|
} else {
|
|
15035
|
-
var Nn = ln(x),
|
|
15035
|
+
var Nn = ln(x), Yr = Nn == u || Nn == d;
|
|
15036
15036
|
if (Ur(x))
|
|
15037
15037
|
return Do(x, I);
|
|
15038
|
-
if (Nn == g || Nn == r ||
|
|
15038
|
+
if (Nn == g || Nn == r || Yr && !re) {
|
|
15039
15039
|
if (lt(x))
|
|
15040
15040
|
return re ? x : {};
|
|
15041
|
-
if (le = Fr(
|
|
15041
|
+
if (le = Fr(Yr ? {} : x), !I)
|
|
15042
15042
|
return Eo(x, xo(le, x));
|
|
15043
15043
|
} else {
|
|
15044
15044
|
if (!j[Nn])
|
|
@@ -15047,21 +15047,21 @@ za.exports;
|
|
|
15047
15047
|
}
|
|
15048
15048
|
}
|
|
15049
15049
|
Ce || (Ce = new In());
|
|
15050
|
-
var
|
|
15051
|
-
if (
|
|
15052
|
-
return
|
|
15050
|
+
var $r = Ce.get(x);
|
|
15051
|
+
if ($r)
|
|
15052
|
+
return $r;
|
|
15053
15053
|
if (Ce.set(x, le), !Wr)
|
|
15054
|
-
var hi =
|
|
15054
|
+
var hi = $ ? Io(x) : di(x);
|
|
15055
15055
|
return nt(hi || x, function(ks, Wi) {
|
|
15056
|
-
hi && (Wi = ks, ks = x[Wi]), je(le, Wi, ws(ks, I,
|
|
15056
|
+
hi && (Wi = ks, ks = x[Wi]), je(le, Wi, ws(ks, I, $, st, Wi, x, Ce));
|
|
15057
15057
|
}), le;
|
|
15058
15058
|
}
|
|
15059
15059
|
function wo(x) {
|
|
15060
15060
|
return vn(x) ? tn(x) : {};
|
|
15061
15061
|
}
|
|
15062
|
-
function So(x, I,
|
|
15062
|
+
function So(x, I, $) {
|
|
15063
15063
|
var st = I(x);
|
|
15064
|
-
return Ms(x) ? st : et(st,
|
|
15064
|
+
return Ms(x) ? st : et(st, $(x));
|
|
15065
15065
|
}
|
|
15066
15066
|
function To(x) {
|
|
15067
15067
|
return ge.call(x);
|
|
@@ -15069,63 +15069,63 @@ za.exports;
|
|
|
15069
15069
|
function Fi(x) {
|
|
15070
15070
|
if (!vn(x) || zo(x))
|
|
15071
15071
|
return !1;
|
|
15072
|
-
var I = Ds(x) || lt(x) ?
|
|
15072
|
+
var I = Ds(x) || lt(x) ? $t : V;
|
|
15073
15073
|
return I.test(be(x));
|
|
15074
15074
|
}
|
|
15075
15075
|
function Mo(x) {
|
|
15076
15076
|
if (!_n(x))
|
|
15077
15077
|
return Pr(x);
|
|
15078
15078
|
var I = [];
|
|
15079
|
-
for (var
|
|
15080
|
-
It.call(x,
|
|
15079
|
+
for (var $ in Object(x))
|
|
15080
|
+
It.call(x, $) && $ != "constructor" && I.push($);
|
|
15081
15081
|
return I;
|
|
15082
15082
|
}
|
|
15083
15083
|
function Do(x, I) {
|
|
15084
15084
|
if (I)
|
|
15085
15085
|
return x.slice();
|
|
15086
|
-
var
|
|
15087
|
-
return x.copy(
|
|
15086
|
+
var $ = new x.constructor(x.length);
|
|
15087
|
+
return x.copy($), $;
|
|
15088
15088
|
}
|
|
15089
15089
|
function zi(x) {
|
|
15090
15090
|
var I = new x.constructor(x.byteLength);
|
|
15091
15091
|
return new on(I).set(new on(x)), I;
|
|
15092
15092
|
}
|
|
15093
15093
|
function ko(x, I) {
|
|
15094
|
-
var
|
|
15095
|
-
return new x.constructor(
|
|
15094
|
+
var $ = I ? zi(x.buffer) : x.buffer;
|
|
15095
|
+
return new x.constructor($, x.byteOffset, x.byteLength);
|
|
15096
15096
|
}
|
|
15097
|
-
function Oo(x, I,
|
|
15098
|
-
var st = I ?
|
|
15097
|
+
function Oo(x, I, $) {
|
|
15098
|
+
var st = I ? $(wt(x), !0) : wt(x);
|
|
15099
15099
|
return tt(st, K, new x.constructor());
|
|
15100
15100
|
}
|
|
15101
15101
|
function Ss(x) {
|
|
15102
15102
|
var I = new x.constructor(x.source, H.exec(x));
|
|
15103
15103
|
return I.lastIndex = x.lastIndex, I;
|
|
15104
15104
|
}
|
|
15105
|
-
function Co(x, I,
|
|
15106
|
-
var st = I ?
|
|
15105
|
+
function Co(x, I, $) {
|
|
15106
|
+
var st = I ? $(ne(x), !0) : ne(x);
|
|
15107
15107
|
return tt(st, J, new x.constructor());
|
|
15108
15108
|
}
|
|
15109
15109
|
function Ao(x) {
|
|
15110
15110
|
return Er ? Object(Er.call(x)) : {};
|
|
15111
15111
|
}
|
|
15112
15112
|
function Po(x, I) {
|
|
15113
|
-
var
|
|
15114
|
-
return new x.constructor(
|
|
15113
|
+
var $ = I ? zi(x.buffer) : x.buffer;
|
|
15114
|
+
return new x.constructor($, x.byteOffset, x.length);
|
|
15115
15115
|
}
|
|
15116
15116
|
function Ro(x, I) {
|
|
15117
|
-
var
|
|
15118
|
-
for (I || (I = Array(st));
|
|
15119
|
-
I[
|
|
15117
|
+
var $ = -1, st = x.length;
|
|
15118
|
+
for (I || (I = Array(st)); ++$ < st; )
|
|
15119
|
+
I[$] = x[$];
|
|
15120
15120
|
return I;
|
|
15121
15121
|
}
|
|
15122
|
-
function Lr(x, I,
|
|
15123
|
-
|
|
15122
|
+
function Lr(x, I, $, st) {
|
|
15123
|
+
$ || ($ = {});
|
|
15124
15124
|
for (var Xt = -1, re = I.length; ++Xt < re; ) {
|
|
15125
15125
|
var Ce = I[Xt], le = void 0;
|
|
15126
|
-
je(
|
|
15126
|
+
je($, Ce, le === void 0 ? x[Ce] : le);
|
|
15127
15127
|
}
|
|
15128
|
-
return
|
|
15128
|
+
return $;
|
|
15129
15129
|
}
|
|
15130
15130
|
function Eo(x, I) {
|
|
15131
15131
|
return Lr(x, Nr(x), I);
|
|
@@ -15134,16 +15134,16 @@ za.exports;
|
|
|
15134
15134
|
return So(x, di, Nr);
|
|
15135
15135
|
}
|
|
15136
15136
|
function Ui(x, I) {
|
|
15137
|
-
var
|
|
15138
|
-
return Hi(I) ?
|
|
15137
|
+
var $ = x.__data__;
|
|
15138
|
+
return Hi(I) ? $[typeof I == "string" ? "string" : "hash"] : $.map;
|
|
15139
15139
|
}
|
|
15140
15140
|
function Ln(x, I) {
|
|
15141
|
-
var
|
|
15142
|
-
return Fi(
|
|
15141
|
+
var $ = Tt(x, I);
|
|
15142
|
+
return Fi($) ? $ : void 0;
|
|
15143
15143
|
}
|
|
15144
15144
|
var Nr = oi ? yt(oi, Object) : Hr, ln = To;
|
|
15145
15145
|
(ys && ln(new ys(new ArrayBuffer(1))) != A || li && ln(new li()) != h || bs && ln(bs.resolve()) != y || ci && ln(new ci()) != w || mn && ln(new mn()) != k) && (ln = function(x) {
|
|
15146
|
-
var I = ge.call(x),
|
|
15146
|
+
var I = ge.call(x), $ = I == g ? x.constructor : void 0, st = $ ? be($) : void 0;
|
|
15147
15147
|
if (st)
|
|
15148
15148
|
switch (st) {
|
|
15149
15149
|
case _s:
|
|
@@ -15160,13 +15160,13 @@ za.exports;
|
|
|
15160
15160
|
return I;
|
|
15161
15161
|
});
|
|
15162
15162
|
function Lo(x) {
|
|
15163
|
-
var I = x.length,
|
|
15164
|
-
return I && typeof x[0] == "string" && It.call(x, "index") && (
|
|
15163
|
+
var I = x.length, $ = x.constructor(I);
|
|
15164
|
+
return I && typeof x[0] == "string" && It.call(x, "index") && ($.index = x.index, $.input = x.input), $;
|
|
15165
15165
|
}
|
|
15166
15166
|
function Fr(x) {
|
|
15167
15167
|
return typeof x.constructor == "function" && !_n(x) ? wo(ai(x)) : {};
|
|
15168
15168
|
}
|
|
15169
|
-
function No(x, I,
|
|
15169
|
+
function No(x, I, $, st) {
|
|
15170
15170
|
var Xt = x.constructor;
|
|
15171
15171
|
switch (I) {
|
|
15172
15172
|
case R:
|
|
@@ -15187,14 +15187,14 @@ za.exports;
|
|
|
15187
15187
|
case W:
|
|
15188
15188
|
return Po(x, st);
|
|
15189
15189
|
case h:
|
|
15190
|
-
return Oo(x, st,
|
|
15190
|
+
return Oo(x, st, $);
|
|
15191
15191
|
case f:
|
|
15192
15192
|
case S:
|
|
15193
15193
|
return new Xt(x);
|
|
15194
15194
|
case v:
|
|
15195
15195
|
return Ss(x);
|
|
15196
15196
|
case w:
|
|
15197
|
-
return Co(x, st,
|
|
15197
|
+
return Co(x, st, $);
|
|
15198
15198
|
case D:
|
|
15199
15199
|
return Ao(x);
|
|
15200
15200
|
}
|
|
@@ -15210,8 +15210,8 @@ za.exports;
|
|
|
15210
15210
|
return !!ie && ie in x;
|
|
15211
15211
|
}
|
|
15212
15212
|
function _n(x) {
|
|
15213
|
-
var I = x && x.constructor,
|
|
15214
|
-
return x ===
|
|
15213
|
+
var I = x && x.constructor, $ = typeof I == "function" && I.prototype || fe;
|
|
15214
|
+
return x === $;
|
|
15215
15215
|
}
|
|
15216
15216
|
function be(x) {
|
|
15217
15217
|
if (x != null) {
|
|
@@ -15578,7 +15578,7 @@ rt.FIFTEEN_MIN, new ce({
|
|
|
15578
15578
|
timeframeLength: () => {
|
|
15579
15579
|
let n = 0;
|
|
15580
15580
|
const t = is(/* @__PURE__ */ new Date()), e = is(Tg(/* @__PURE__ */ new Date()));
|
|
15581
|
-
return t.getTimezoneOffset() !== e.getTimezoneOffset() && (n =
|
|
15581
|
+
return t.getTimezoneOffset() !== e.getTimezoneOffset() && (n = Yd(t, e)), 60 * 60 * 24 * PS((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + Ad(n);
|
|
15582
15582
|
},
|
|
15583
15583
|
defaultResponseGranularity: "daily",
|
|
15584
15584
|
dataGranularity: "daily",
|
|
@@ -15603,21 +15603,21 @@ rt.FIFTEEN_MIN, new ce({
|
|
|
15603
15603
|
timeframeLength: () => {
|
|
15604
15604
|
const n = new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), t = new Date((/* @__PURE__ */ new Date()).getFullYear() - 1, 0, 1);
|
|
15605
15605
|
let e = 0;
|
|
15606
|
-
return n.getTimezoneOffset() !== t.getTimezoneOffset() && (e =
|
|
15606
|
+
return n.getTimezoneOffset() !== t.getTimezoneOffset() && (e = Yd(n, t)), 60 * 60 * 24 * (365 + (t.getFullYear() % 4 === 0 ? 1 : 0)) + Ad(e);
|
|
15607
15607
|
},
|
|
15608
15608
|
defaultResponseGranularity: "daily",
|
|
15609
15609
|
dataGranularity: "daily",
|
|
15610
15610
|
isRelative: !1,
|
|
15611
15611
|
allowedTiers: ["plus", "enterprise"]
|
|
15612
15612
|
});
|
|
15613
|
-
function
|
|
15613
|
+
function Yd(n, t) {
|
|
15614
15614
|
return ES(n.getTimezoneOffset() - t.getTimezoneOffset());
|
|
15615
15615
|
}
|
|
15616
15616
|
rt.FIFTEEN_MIN, rt.ONE_HOUR, rt.SIX_HOUR, rt.TWELVE_HOUR, rt.ONE_DAY, rt.SEVEN_DAY, rt.FIFTEEN_MIN, rt.ONE_HOUR, rt.SIX_HOUR, rt.TWELVE_HOUR, rt.ONE_DAY, rt.SEVEN_DAY, rt.THIRTY_DAY, rt.NINETY_DAY, rt.ONE_HUNDRED_EIGHTY_DAY, rt.ONE_YEAR, rt.CURRENT_WEEK, rt.CURRENT_MONTH, rt.CURRENT_QUARTER, rt.CURRENT_YEAR, rt.PREVIOUS_WEEK, rt.PREVIOUS_MONTH, rt.PREVIOUS_QUARTER, rt.PREVIOUS_YEAR;
|
|
15617
15617
|
const bT = new Map(bg.map((n) => [n.code, { code: n.code, name: n.name }])), Kl = (n) => {
|
|
15618
15618
|
var t;
|
|
15619
15619
|
return ((t = bT.get(n)) == null ? void 0 : t.name) || n;
|
|
15620
|
-
},
|
|
15620
|
+
}, $d = 1e3, _T = 1e4, jd = 1e6, Vd = 1e9, qd = 1e12, ya = (n, t) => {
|
|
15621
15621
|
if (t.separator === !1 || n < 1e3)
|
|
15622
15622
|
return n.toString();
|
|
15623
15623
|
const e = typeof t.separator == "string" ? t.separator : ",", i = [];
|
|
@@ -15637,8 +15637,8 @@ function ba(n, t = {}) {
|
|
|
15637
15637
|
let e;
|
|
15638
15638
|
const i = n < 0;
|
|
15639
15639
|
i && (n = Math.abs(n)), t.precision && (n = parseFloat(n.toPrecision(t.precision)));
|
|
15640
|
-
const s = t.min10k ? _T :
|
|
15641
|
-
return n < s || t.precision && t.precision > Math.log10(n) ? e = ya(zs(n, 1, t), t) : n < jd ? e = `${zs(n,
|
|
15640
|
+
const s = t.min10k ? _T : $d;
|
|
15641
|
+
return n < s || t.precision && t.precision > Math.log10(n) ? e = ya(zs(n, 1, t), t) : n < jd ? e = `${zs(n, $d, t)}k` : n < Vd ? e = `${zs(n, jd, t)}m` : n < qd ? e = `${ya(zs(n, Vd, t), t)}b` : e = `${ya(zs(n, qd, t), t)}t`, i && (e = `-${e}`), t.capital && (e = e.toUpperCase()), t.prefix && (e = `${t.prefix}${e}`), t.suffix && (e = `${e}${t.suffix}`), e;
|
|
15642
15642
|
}
|
|
15643
15643
|
ba.addCommas = ya;
|
|
15644
15644
|
var Gd;
|
|
@@ -15791,7 +15791,7 @@ const Eg = (n, t, e) => {
|
|
|
15791
15791
|
value: t && t[s.text],
|
|
15792
15792
|
isSegmentEmpty: i.datasets[r].isSegmentEmpty
|
|
15793
15793
|
})).sort(e);
|
|
15794
|
-
}, nR = 2, kT = 10, OT = 12, Xl = 10, CT = "#f1f0ff", AT = "#e0e4ea", Kd = "#6c7489", PT = "#afb7c5", RT = "#d60027", ET = "#ad000e", Lc = "#6c7489", Xd = "#52596e", IT = "#007d60", LT = "#995c00", NT = "#ffc400", pr = "16px", FT = "20px", zT = "#bee2ff", UT = "#8fc1ff", HT = "#5f9aff", BT = "#306fff", WT = "#b5ffee",
|
|
15794
|
+
}, nR = 2, kT = 10, OT = 12, Xl = 10, CT = "#f1f0ff", AT = "#e0e4ea", Kd = "#6c7489", PT = "#afb7c5", RT = "#d60027", ET = "#ad000e", Lc = "#6c7489", Xd = "#52596e", IT = "#007d60", LT = "#995c00", NT = "#ffc400", pr = "16px", FT = "20px", zT = "#bee2ff", UT = "#8fc1ff", HT = "#5f9aff", BT = "#306fff", WT = "#b5ffee", YT = "#00fabe", $T = "#00d6a4", jT = "#00a17b", VT = "#007d60", qT = "#005944", GT = "#b5ffee", KT = "#00fabe", XT = "#b5ffee", ZT = "#00a17b", QT = "#fff296", JT = "#ffe04b", tM = "#ffc400", eM = "#b37600", nM = "#995c00", iM = "#804400", sM = "#fff296", rM = "#ffe04b", aM = "#FFC2B3", oM = "#FF9877", lM = "#FF723C", cM = "#F75008", uM = "#D13500", dM = "#A31F00", hM = "#FFC2B3", fM = "#FF9877", gM = "#FF723C", mM = "#F75008", pM = "#D13500", yM = "#A31F00", bM = "#FFC2B3", _M = "#FF9877", vM = "#FF723C", xM = "#F75008", wM = "#D13500", SM = "#A31F00", TM = "#FFC2B3", MM = "#FF9877", DM = "#FF723C", kM = "#F75008", OM = "#D13500", CM = "#A31F00", AM = "#FFC2B3", PM = "#FF9877", RM = "#FF723C", EM = "#F75008", IM = "#D13500", LM = "#ffabab", NM = "#ff7272", FM = "#ff3954", zM = "#f50045", UM = "#d60027", HM = "#ad000e", BM = "#ffabab", WM = "#ff7272", YM = "#ff3954", $M = "#f50045", jM = "#d60027", VM = "#eefaff", qM = "#ecfffb", GM = "#fffce0", KM = "#FFF1EF", XM = "#ffe5e5", ZM = "#5f9aff", QM = "#00d6a4", JM = "#ffc400", tD = "#FF723C", eD = "#ff3954", nD = "'Inter', Roboto, Helvetica, sans-serif", ei = [
|
|
15795
15795
|
"#a86cd5",
|
|
15796
15796
|
"#6a86d2",
|
|
15797
15797
|
"#00bbf9",
|
|
@@ -15845,8 +15845,8 @@ const Eg = (n, t, e) => {
|
|
|
15845
15845
|
102: HT,
|
|
15846
15846
|
103: BT,
|
|
15847
15847
|
200: WT,
|
|
15848
|
-
201:
|
|
15849
|
-
202:
|
|
15848
|
+
201: YT,
|
|
15849
|
+
202: $T,
|
|
15850
15850
|
203: jT,
|
|
15851
15851
|
204: VT,
|
|
15852
15852
|
205: qT,
|
|
@@ -15899,8 +15899,8 @@ const Eg = (n, t, e) => {
|
|
|
15899
15899
|
505: HM,
|
|
15900
15900
|
506: BM,
|
|
15901
15901
|
507: WM,
|
|
15902
|
-
508:
|
|
15903
|
-
510:
|
|
15902
|
+
508: YM,
|
|
15903
|
+
510: $M,
|
|
15904
15904
|
511: jM
|
|
15905
15905
|
}, mD = {
|
|
15906
15906
|
100: VM,
|
|
@@ -16267,7 +16267,7 @@ function UD(n, t) {
|
|
|
16267
16267
|
if (r = ke.DDD.exec(n), r) {
|
|
16268
16268
|
e = /* @__PURE__ */ new Date(0);
|
|
16269
16269
|
const a = parseInt(r[1], 10);
|
|
16270
|
-
return
|
|
16270
|
+
return YD(t, a) ? (e.setUTCFullYear(t, 0, a), e) : /* @__PURE__ */ new Date(NaN);
|
|
16271
16271
|
}
|
|
16272
16272
|
if (r = ke.MMDD.exec(n), r) {
|
|
16273
16273
|
e = /* @__PURE__ */ new Date(0), i = parseInt(r[1], 10) - 1;
|
|
@@ -16319,7 +16319,7 @@ function oh(n, t, e) {
|
|
|
16319
16319
|
}
|
|
16320
16320
|
return !0;
|
|
16321
16321
|
}
|
|
16322
|
-
function
|
|
16322
|
+
function YD(n, t) {
|
|
16323
16323
|
if (t < 1)
|
|
16324
16324
|
return !1;
|
|
16325
16325
|
const e = Fg(n);
|
|
@@ -16331,10 +16331,10 @@ function lh(n, t) {
|
|
|
16331
16331
|
function bl(n, t, e) {
|
|
16332
16332
|
return !(n < 0 || n >= 25 || t != null && (t < 0 || t >= 60) || e != null && (e < 0 || e >= 60));
|
|
16333
16333
|
}
|
|
16334
|
-
const
|
|
16334
|
+
const $D = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
16335
16335
|
function Jl(n, t, e = {}) {
|
|
16336
16336
|
t = String(t);
|
|
16337
|
-
const i = t.match(
|
|
16337
|
+
const i = t.match($D);
|
|
16338
16338
|
if (i) {
|
|
16339
16339
|
const s = Ng(e.originalDate || n, e);
|
|
16340
16340
|
t = i.reduce(function(r, a) {
|
|
@@ -16484,7 +16484,7 @@ function JD(n) {
|
|
|
16484
16484
|
xAlign: y
|
|
16485
16485
|
};
|
|
16486
16486
|
}, El.modes.customInteractionMode = function(l, c) {
|
|
16487
|
-
const u =
|
|
16487
|
+
const u = Yn(c, l), d = [];
|
|
16488
16488
|
return El.evaluateInteractionItems(l, l.options.indexAxis || "x", u, (h, f, g) => {
|
|
16489
16489
|
l.options.indexAxis === "y" && h.inYRange(u.y, !0) && l.data.datasets[f].data[g] && d.push({ element: h, datasetIndex: f, index: g }), l.options.indexAxis === "x" && u.x !== null && h.inXRange(u.x, !0) && l.data.datasets[f].data[g] && d.push({ element: h, datasetIndex: f, index: g });
|
|
16490
16490
|
}), d;
|
|
@@ -16604,7 +16604,7 @@ function ek(n, t, e, i, s) {
|
|
|
16604
16604
|
};
|
|
16605
16605
|
return si(() => {
|
|
16606
16606
|
r.value = a(e.value, s.value);
|
|
16607
|
-
}),
|
|
16607
|
+
}), Yh(() => {
|
|
16608
16608
|
ft(r.value) || r.value.destroy();
|
|
16609
16609
|
}), oe(e, (o, l) => {
|
|
16610
16610
|
if (tk(l, o) && !ft(r.value)) {
|
|
@@ -16815,7 +16815,7 @@ function ak(n) {
|
|
|
16815
16815
|
};
|
|
16816
16816
|
const a = N(() => {
|
|
16817
16817
|
const l = Number(n.timeRangeMs.value), c = /* @__PURE__ */ new Date(), u = new Date(c.getTime() - l);
|
|
16818
|
-
return
|
|
16818
|
+
return Yw(l) > 24 || u.getDate() !== c.getDate();
|
|
16819
16819
|
}), o = N(() => {
|
|
16820
16820
|
var l, c;
|
|
16821
16821
|
return {
|
|
@@ -17103,7 +17103,7 @@ function xk(n, t = {}) {
|
|
|
17103
17103
|
return e;
|
|
17104
17104
|
}
|
|
17105
17105
|
function wk(n, t = !0, e) {
|
|
17106
|
-
vk() ? si(n, e) : t ? n() :
|
|
17106
|
+
vk() ? si(n, e) : t ? n() : $h(n);
|
|
17107
17107
|
}
|
|
17108
17108
|
function Sk(n, t, e) {
|
|
17109
17109
|
return oe(n, t, {
|
|
@@ -17191,10 +17191,10 @@ function kk(n, t = {}) {
|
|
|
17191
17191
|
speed: (i = Dt(b.speed)) !== null && i !== void 0 ? i : ca.speed,
|
|
17192
17192
|
margin: (s = Dt(b.margin)) !== null && s !== void 0 ? s : ca.margin,
|
|
17193
17193
|
direction: (r = b.direction) !== null && r !== void 0 ? r : ca.direction
|
|
17194
|
-
} : ca, M = (E) => typeof E == "number" ? [E, E] : [E.x, E.y], C = (E, z,
|
|
17194
|
+
} : ca, M = (E) => typeof E == "number" ? [E, E] : [E.x, E.y], C = (E, z, Y) => {
|
|
17195
17195
|
const { clientWidth: at, clientHeight: it, scrollLeft: G, scrollTop: K, scrollWidth: J, scrollHeight: nt } = E, [et, tt] = M(_.margin), [mt, Tt] = M(_.speed);
|
|
17196
17196
|
let lt = 0, wt = 0;
|
|
17197
|
-
(_.direction === "x" || _.direction === "both") && (
|
|
17197
|
+
(_.direction === "x" || _.direction === "both") && (Y.x < et && G > 0 ? lt = -mt : Y.x + z.width > at - et && G < J - at && (lt = mt)), (_.direction === "y" || _.direction === "both") && (Y.y < tt && K > 0 ? wt = -Tt : Y.y + z.height > it - tt && K < nt - it && (wt = Tt)), (lt || wt) && E.scrollBy({
|
|
17198
17198
|
left: lt,
|
|
17199
17199
|
top: wt,
|
|
17200
17200
|
behavior: "auto"
|
|
@@ -17204,24 +17204,24 @@ function kk(n, t = {}) {
|
|
|
17204
17204
|
const L = () => {
|
|
17205
17205
|
const E = Dt(v);
|
|
17206
17206
|
E && !B && (B = setInterval(() => {
|
|
17207
|
-
const z = Dt(n).getBoundingClientRect(), { x:
|
|
17208
|
-
x:
|
|
17207
|
+
const z = Dt(n).getBoundingClientRect(), { x: Y, y: at } = R.value, it = {
|
|
17208
|
+
x: Y - E.scrollLeft,
|
|
17209
17209
|
y: at - E.scrollTop
|
|
17210
17210
|
};
|
|
17211
17211
|
it.x >= 0 && it.y >= 0 && (C(E, z, it), it.x += E.scrollLeft, it.y += E.scrollTop, R.value = it);
|
|
17212
17212
|
}, 1e3 / 60));
|
|
17213
17213
|
}, W = () => {
|
|
17214
17214
|
B && (clearInterval(B), B = null);
|
|
17215
|
-
}, F = (E, z,
|
|
17216
|
-
const [it, G] = typeof
|
|
17215
|
+
}, F = (E, z, Y, at) => {
|
|
17216
|
+
const [it, G] = typeof Y == "number" ? [Y, Y] : [Y.x, Y.y], { clientWidth: K, clientHeight: J } = z;
|
|
17217
17217
|
return E.x < it || E.x + at.width > K - it || E.y < G || E.y + at.height > J - G;
|
|
17218
17218
|
}, H = () => {
|
|
17219
17219
|
if (Dt(t.disabled) || !A.value) return;
|
|
17220
17220
|
const E = Dt(v);
|
|
17221
17221
|
if (!E) return;
|
|
17222
|
-
const z = Dt(n).getBoundingClientRect(), { x:
|
|
17222
|
+
const z = Dt(n).getBoundingClientRect(), { x: Y, y: at } = R.value;
|
|
17223
17223
|
F({
|
|
17224
|
-
x:
|
|
17224
|
+
x: Y - E.scrollLeft,
|
|
17225
17225
|
y: at - E.scrollTop
|
|
17226
17226
|
}, E, _.margin, z) ? L() : W();
|
|
17227
17227
|
};
|
|
@@ -17229,28 +17229,28 @@ function kk(n, t = {}) {
|
|
|
17229
17229
|
const V = (E) => {
|
|
17230
17230
|
var z;
|
|
17231
17231
|
if (!Dt(S).includes(E.button) || Dt(t.disabled) || !O(E) || Dt(c) && E.target !== Dt(n)) return;
|
|
17232
|
-
const
|
|
17233
|
-
x: E.clientX - (
|
|
17234
|
-
y: E.clientY - (
|
|
17232
|
+
const Y = Dt(v), at = Y == null || (z = Y.getBoundingClientRect) === null || z === void 0 ? void 0 : z.call(Y), it = Dt(n).getBoundingClientRect(), G = {
|
|
17233
|
+
x: E.clientX - (Y ? it.left - at.left + (k ? 0 : Y.scrollLeft) : it.left),
|
|
17234
|
+
y: E.clientY - (Y ? it.top - at.top + (k ? 0 : Y.scrollTop) : it.top)
|
|
17235
17235
|
};
|
|
17236
17236
|
(h == null ? void 0 : h(G, E)) !== !1 && (A.value = G, m(E));
|
|
17237
17237
|
}, q = (E) => {
|
|
17238
17238
|
if (Dt(t.disabled) || !O(E) || !A.value) return;
|
|
17239
17239
|
const z = Dt(v);
|
|
17240
17240
|
z instanceof HTMLElement && Dk(z);
|
|
17241
|
-
const
|
|
17241
|
+
const Y = Dt(n).getBoundingClientRect();
|
|
17242
17242
|
let { x: at, y: it } = R.value;
|
|
17243
|
-
if ((g === "x" || g === "both") && (at = E.clientX - A.value.x, z && (at = Math.min(Math.max(0, at), z.scrollWidth -
|
|
17243
|
+
if ((g === "x" || g === "both") && (at = E.clientX - A.value.x, z && (at = Math.min(Math.max(0, at), z.scrollWidth - Y.width))), (g === "y" || g === "both") && (it = E.clientY - A.value.y, z && (it = Math.min(Math.max(0, it), z.scrollHeight - Y.height))), Dt(k) && z && (B === null && C(z, Y, {
|
|
17244
17244
|
x: at,
|
|
17245
17245
|
y: it
|
|
17246
17246
|
}), at += z.scrollLeft, it += z.scrollTop), z && (D || k)) {
|
|
17247
17247
|
if (g !== "y") {
|
|
17248
17248
|
const G = at - z.scrollLeft;
|
|
17249
|
-
G < 0 ? at = z.scrollLeft : G > z.clientWidth -
|
|
17249
|
+
G < 0 ? at = z.scrollLeft : G > z.clientWidth - Y.width && (at = z.clientWidth - Y.width + z.scrollLeft);
|
|
17250
17250
|
}
|
|
17251
17251
|
if (g !== "x") {
|
|
17252
17252
|
const G = it - z.scrollTop;
|
|
17253
|
-
G < 0 ? it = z.scrollTop : G > z.clientHeight -
|
|
17253
|
+
G < 0 ? it = z.scrollTop : G > z.clientHeight - Y.height && (it = z.clientHeight - Y.height + z.scrollTop);
|
|
17254
17254
|
}
|
|
17255
17255
|
}
|
|
17256
17256
|
R.value = {
|
|
@@ -17461,7 +17461,7 @@ const vt = {
|
|
|
17461
17461
|
useTooltipAbsolutePosition: Ak,
|
|
17462
17462
|
useSparklineSync: Ik
|
|
17463
17463
|
};
|
|
17464
|
-
var
|
|
17464
|
+
var Ye = /* @__PURE__ */ ((n) => (n.Hidden = "hidden", n.Bottom = "bottom", n))(Ye || {});
|
|
17465
17465
|
/*!
|
|
17466
17466
|
* chartjs-plugin-annotation v3.1.0
|
|
17467
17467
|
* https://www.chartjs.org/chartjs-plugin-annotation/index
|
|
@@ -17537,7 +17537,7 @@ function Ri(n, t, e) {
|
|
|
17537
17537
|
y: a + s * (n.x - r) + i * (n.y - a)
|
|
17538
17538
|
};
|
|
17539
17539
|
}
|
|
17540
|
-
const zk = (n, t) => t > n || n.length > t.length && n.slice(0, t.length) === t, wi = 1e-3, Xa = (n, t, e) => Math.min(e, Math.max(t, n)),
|
|
17540
|
+
const zk = (n, t) => t > n || n.length > t.length && n.slice(0, t.length) === t, wi = 1e-3, Xa = (n, t, e) => Math.min(e, Math.max(t, n)), Yg = (n, t) => n.value >= n.start - t && n.value <= n.end + t;
|
|
17541
17541
|
function Uk(n, t, e) {
|
|
17542
17542
|
for (const i of Object.keys(n))
|
|
17543
17543
|
n[i] = Xa(n[i], t, e);
|
|
@@ -17546,13 +17546,13 @@ function Uk(n, t, e) {
|
|
|
17546
17546
|
function Hk(n, t, e, i) {
|
|
17547
17547
|
return !n || !t || e <= 0 ? !1 : Math.pow(n.x - t.x, 2) + Math.pow(n.y - t.y, 2) <= Math.pow(e + i, 2);
|
|
17548
17548
|
}
|
|
17549
|
-
function
|
|
17549
|
+
function $g(n, { x: t, y: e, x2: i, y2: s }, r, { borderWidth: a, hitTolerance: o }) {
|
|
17550
17550
|
const l = (a + o) / 2, c = n.x >= t - l - wi && n.x <= i + l + wi, u = n.y >= e - l - wi && n.y <= s + l + wi;
|
|
17551
17551
|
return r === "x" ? c : (r === "y" || c) && u;
|
|
17552
17552
|
}
|
|
17553
17553
|
function jg(n, { rect: t, center: e }, i, { rotation: s, borderWidth: r, hitTolerance: a }) {
|
|
17554
17554
|
const o = Ri(n, e, te(-s));
|
|
17555
|
-
return
|
|
17555
|
+
return $g(o, t, i, { borderWidth: r, hitTolerance: a });
|
|
17556
17556
|
}
|
|
17557
17557
|
function Ei(n, t) {
|
|
17558
17558
|
const { centerX: e, centerY: i } = n.getProps(["centerX", "centerY"], t);
|
|
@@ -17588,7 +17588,7 @@ function zc(n, t) {
|
|
|
17588
17588
|
function ni(n, t, e = !0) {
|
|
17589
17589
|
return typeof t == "number" ? t : Vg(t) ? (e ? Gg(t) : qg(t)) * n : n;
|
|
17590
17590
|
}
|
|
17591
|
-
function
|
|
17591
|
+
function Yk(n, t) {
|
|
17592
17592
|
const { x: e, width: i } = n, s = t.textAlign;
|
|
17593
17593
|
return s === "center" ? e + i / 2 : s === "end" || s === "right" ? e + i : e;
|
|
17594
17594
|
}
|
|
@@ -17634,7 +17634,7 @@ function gs(n, t, e) {
|
|
|
17634
17634
|
if (i === !0)
|
|
17635
17635
|
return tm(t, e);
|
|
17636
17636
|
} else return;
|
|
17637
|
-
return
|
|
17637
|
+
return $k(n, t, e);
|
|
17638
17638
|
}
|
|
17639
17639
|
function Jg(n, t, e) {
|
|
17640
17640
|
let i = !1;
|
|
@@ -17646,7 +17646,7 @@ function tm(n, t) {
|
|
|
17646
17646
|
const e = t.type || "line";
|
|
17647
17647
|
return Wk[e](n);
|
|
17648
17648
|
}
|
|
17649
|
-
function
|
|
17649
|
+
function $k(n, t, e) {
|
|
17650
17650
|
const i = Rt(e.init, [{ chart: n, properties: t, options: e }]);
|
|
17651
17651
|
if (i === !0)
|
|
17652
17652
|
return tm(t, e);
|
|
@@ -17700,7 +17700,7 @@ function nm(n, t, e, i) {
|
|
|
17700
17700
|
n.save(), n.globalAlpha = Jk(e.opacity, s.style.opacity), n.drawImage(s, t.x, t.y, t.width, t.height), n.restore();
|
|
17701
17701
|
return;
|
|
17702
17702
|
}
|
|
17703
|
-
const r = Ct(s) ? s : [s], a = Zg(e, i), o = e.color, l = Ct(o) ? o : [o], c =
|
|
17703
|
+
const r = Ct(s) ? s : [s], a = Zg(e, i), o = e.color, l = Ct(o) ? o : [o], c = Yk(t, e), u = t.y + e.textStrokeWidth / 2;
|
|
17704
17704
|
n.save(), n.textBaseline = "middle", n.textAlign = e.textAlign, qk(n, e) && Zk(n, { x: c, y: u }, r, a), Qk(n, { x: c, y: u }, r, { fonts: a, colors: l }), n.restore();
|
|
17705
17705
|
}
|
|
17706
17706
|
function qk(n, t) {
|
|
@@ -18103,7 +18103,7 @@ function xh(n, t, e, i) {
|
|
|
18103
18103
|
class ps extends de {
|
|
18104
18104
|
inRange(t, e, i, s) {
|
|
18105
18105
|
const { x: r, y: a } = Ri({ x: t, y: e }, this.getCenterPoint(s), te(-this.options.rotation));
|
|
18106
|
-
return
|
|
18106
|
+
return $g({ x: r, y: a }, this.getProps(["x", "y", "x2", "y2"], s), i, this.options);
|
|
18107
18107
|
}
|
|
18108
18108
|
getCenterPoint(t) {
|
|
18109
18109
|
return Ei(this, t);
|
|
@@ -18460,7 +18460,7 @@ class Or extends de {
|
|
|
18460
18460
|
const i = lO(t, e), { x: s, y: r, x2: a, y2: o } = i, l = LO(i, t.chartArea), c = l ? NO({ x: s, y: r }, { x: a, y: o }, t.chartArea) : { x: s, y: r, x2: a, y2: o, width: Math.abs(a - s), height: Math.abs(o - r) };
|
|
18461
18461
|
if (c.centerX = (a + s) / 2, c.centerY = (o + r) / 2, c.initProperties = gs(t, c, e), e.curve) {
|
|
18462
18462
|
const d = { x: c.x, y: c.y }, h = { x: c.x2, y: c.y2 };
|
|
18463
|
-
c.cp =
|
|
18463
|
+
c.cp = $O(c, e, rs(d, h));
|
|
18464
18464
|
}
|
|
18465
18465
|
const u = zO(t, c, e.label);
|
|
18466
18466
|
return u._visible = l, c.elements = [{
|
|
@@ -18579,7 +18579,7 @@ Or.defaultRoutes = {
|
|
|
18579
18579
|
};
|
|
18580
18580
|
function IO(n, { mouseX: t, mouseY: e }, i, { hitSize: s, useFinalPosition: r }) {
|
|
18581
18581
|
const a = EO(t, e, n.getProps(["x", "y", "x2", "y2"], r), i);
|
|
18582
|
-
return
|
|
18582
|
+
return Yg(a, s) || ic(n, { mouseX: t, mouseY: e }, r, i);
|
|
18583
18583
|
}
|
|
18584
18584
|
function LO({ x: n, y: t, x2: e, y2: i }, { top: s, right: r, bottom: a, left: o }) {
|
|
18585
18585
|
return !(n < o && e < o || n > r && e > r || t < s && i < s || t > a && i > a);
|
|
@@ -18621,7 +18621,7 @@ function HO(n, t, e, i) {
|
|
|
18621
18621
|
pointY: g.y,
|
|
18622
18622
|
width: s,
|
|
18623
18623
|
height: r,
|
|
18624
|
-
rotation:
|
|
18624
|
+
rotation: Ya(d)
|
|
18625
18625
|
};
|
|
18626
18626
|
}
|
|
18627
18627
|
function BO(n, t, e) {
|
|
@@ -18633,14 +18633,14 @@ function BO(n, t, e) {
|
|
|
18633
18633
|
}
|
|
18634
18634
|
function WO(n, t, e, i) {
|
|
18635
18635
|
let s;
|
|
18636
|
-
const r =
|
|
18636
|
+
const r = YO(n, i);
|
|
18637
18637
|
return t.position === "start" ? s = Oh({ w: n.x2 - n.x, h: n.y2 - n.y }, e, t, r) : t.position === "end" ? s = 1 - Oh({ w: n.x - n.x2, h: n.y - n.y2 }, e, t, r) : s = zc(1, t.position), s;
|
|
18638
18638
|
}
|
|
18639
18639
|
function Oh(n, t, e, i) {
|
|
18640
18640
|
const { labelSize: s, padding: r } = t, a = n.w * i.dx, o = n.h * i.dy, l = a > 0 && (s.w / 2 + r.left - i.x) / a, c = o > 0 && (s.h / 2 + r.top - i.y) / o;
|
|
18641
18641
|
return Xa(Math.max(l, c), 0, 0.25);
|
|
18642
18642
|
}
|
|
18643
|
-
function
|
|
18643
|
+
function YO(n, t) {
|
|
18644
18644
|
const { x: e, x2: i, y: s, y2: r } = n, a = Math.min(s, r) - t.top, o = Math.min(e, i) - t.left, l = t.bottom - Math.max(s, r), c = t.right - Math.max(e, i);
|
|
18645
18645
|
return {
|
|
18646
18646
|
x: Math.min(o, c),
|
|
@@ -18674,7 +18674,7 @@ function sc(n, t, e, i) {
|
|
|
18674
18674
|
const { length: s, width: r, fill: a, backgroundColor: o, borderColor: l } = i, c = Math.abs(t - s) + e;
|
|
18675
18675
|
n.beginPath(), ms(n, i), Rn(n, i), n.moveTo(c, -r), n.lineTo(t + e, 0), n.lineTo(c, r), a === !0 ? (n.fillStyle = o || l, n.closePath(), n.fill(), n.shadowColor = "transparent") : n.shadowColor = i.borderShadowColor, n.stroke();
|
|
18676
18676
|
}
|
|
18677
|
-
function
|
|
18677
|
+
function $O(n, t, e) {
|
|
18678
18678
|
const { x: i, y: s, x2: r, y2: a, centerX: o, centerY: l } = n, c = Math.atan2(a - s, r - i), u = Uc(t.controlPoint, 0), d = {
|
|
18679
18679
|
x: o + ni(e, u.x, !1),
|
|
18680
18680
|
y: l + ni(e, u.y, !1)
|
|
@@ -18755,7 +18755,7 @@ function VO(n, t, e, i) {
|
|
|
18755
18755
|
class eo extends de {
|
|
18756
18756
|
inRange(t, e, i, s) {
|
|
18757
18757
|
const { x: r, y: a, x2: o, y2: l, width: c } = this.getProps(["x", "y", "x2", "y2", "width"], s), u = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
18758
|
-
return i !== "x" && i !== "y" ? Hk({ x: t, y: e }, this.getCenterPoint(s), c / 2, u) :
|
|
18758
|
+
return i !== "x" && i !== "y" ? Hk({ x: t, y: e }, this.getCenterPoint(s), c / 2, u) : Yg(i === "y" ? { start: a, end: l, value: e } : { start: r, end: o, value: t }, u);
|
|
18759
18759
|
}
|
|
18760
18760
|
getCenterPoint(t) {
|
|
18761
18761
|
return Ei(this, t);
|
|
@@ -18913,7 +18913,7 @@ Object.keys(Qn).forEach((n) => {
|
|
|
18913
18913
|
const KO = {
|
|
18914
18914
|
update: Object.assign
|
|
18915
18915
|
}, XO = Bc.concat(Ba), Rh = (n, t) => xt(t) ? ac(n, t) : n, rc = (n) => n === "color" || n === "font";
|
|
18916
|
-
function
|
|
18916
|
+
function Yc(n = "line") {
|
|
18917
18917
|
return Qn[n] ? n : (console.warn(`Unknown annotation type: '${n}', defaulting to 'line'`), "line");
|
|
18918
18918
|
}
|
|
18919
18919
|
function ZO(n, t, e, i) {
|
|
@@ -18938,12 +18938,12 @@ function tC(n, t, e, i) {
|
|
|
18938
18938
|
}
|
|
18939
18939
|
}
|
|
18940
18940
|
function dm(n, t, e, i) {
|
|
18941
|
-
const s = Qn[
|
|
18941
|
+
const s = Qn[Yc(e)];
|
|
18942
18942
|
let r = n[t];
|
|
18943
18943
|
return (!r || !(r instanceof s)) && (r = n[t] = new s(), Object.assign(r, i)), r;
|
|
18944
18944
|
}
|
|
18945
18945
|
function hm(n) {
|
|
18946
|
-
const t = Qn[
|
|
18946
|
+
const t = Qn[Yc(n.type)], e = {};
|
|
18947
18947
|
e.id = n.id, e.type = n.type, e.drawTime = n.drawTime, Object.assign(
|
|
18948
18948
|
e,
|
|
18949
18949
|
ac(n, t.defaults),
|
|
@@ -19080,7 +19080,7 @@ var Ih = {
|
|
|
19080
19080
|
_scriptable: (n) => !sC.includes(n) && n !== "init",
|
|
19081
19081
|
annotations: {
|
|
19082
19082
|
_allKeys: !1,
|
|
19083
|
-
_fallback: (n, t) => `elements.${Qn[
|
|
19083
|
+
_fallback: (n, t) => `elements.${Qn[Yc(t.type)].id}`
|
|
19084
19084
|
},
|
|
19085
19085
|
interaction: {
|
|
19086
19086
|
_fallback: !0
|
|
@@ -19157,12 +19157,12 @@ const oC = { class: "zoom-timerange-container" }, lC = { class: "zoom-timerange-
|
|
|
19157
19157
|
])
|
|
19158
19158
|
]));
|
|
19159
19159
|
}
|
|
19160
|
-
}),
|
|
19160
|
+
}), $e = (n, t) => {
|
|
19161
19161
|
const e = n.__vccOpts || n;
|
|
19162
19162
|
for (const [i, s] of t)
|
|
19163
19163
|
e[i] = s;
|
|
19164
19164
|
return e;
|
|
19165
|
-
}, fm = /* @__PURE__ */
|
|
19165
|
+
}, fm = /* @__PURE__ */ $e(dC, [["__scopeId", "data-v-4fa681cf"]]), hC = { class: "zoom-actions-container" }, fC = { class: "zoom-actions-heading" }, gC = { class: "zoom-action-select" }, mC = ["data-testid"], pC = ["aria-disabled", "href"], yC = ["onClick"], bC = /* @__PURE__ */ he({
|
|
19166
19166
|
__name: "ZoomActions",
|
|
19167
19167
|
props: {
|
|
19168
19168
|
zoomActionItems: {},
|
|
@@ -19190,7 +19190,7 @@ const oC = { class: "zoom-timerange-container" }, lC = { class: "zoom-timerange-
|
|
|
19190
19190
|
]),
|
|
19191
19191
|
a[2] || (a[2] = ut("div", { class: "zoom-actions-heading-divider" }, null, -1)),
|
|
19192
19192
|
ut("div", gC, [
|
|
19193
|
-
(Z(!0), ct(
|
|
19193
|
+
(Z(!0), ct($n, null, xi(n.zoomActionItems, (o) => (Z(), ct("div", {
|
|
19194
19194
|
key: o.key,
|
|
19195
19195
|
class: Fe(["zoom-action-item", { disabled: o.disabled }]),
|
|
19196
19196
|
"data-testid": `zoom-action-item-${o.key}`
|
|
@@ -19209,7 +19209,7 @@ const oC = { class: "zoom-timerange-container" }, lC = { class: "zoom-timerange-
|
|
|
19209
19209
|
])
|
|
19210
19210
|
]));
|
|
19211
19211
|
}
|
|
19212
|
-
}), _C = /* @__PURE__ */
|
|
19212
|
+
}), _C = /* @__PURE__ */ $e(bC, [["__scopeId", "data-v-79ba72f8"]]), vC = { key: 2 }, xC = { class: "tooltip-title" }, wC = { class: "title" }, SC = {
|
|
19213
19213
|
key: 0,
|
|
19214
19214
|
class: "subtitle"
|
|
19215
19215
|
}, TC = { class: "context" }, MC = { class: "metric" }, DC = { class: "tooltip" }, kC = { key: 0 }, OC = { class: "display-value" }, CC = /* @__PURE__ */ he({
|
|
@@ -19282,7 +19282,7 @@ const oC = { class: "zoom-timerange-container" }, lC = { class: "zoom-timerange-
|
|
|
19282
19282
|
])) : Ft("", !0)
|
|
19283
19283
|
]),
|
|
19284
19284
|
ut("ul", DC, [
|
|
19285
|
-
(Z(!0), ct(
|
|
19285
|
+
(Z(!0), ct($n, null, xi(n.state.tooltipSeries, ({ backgroundColor: w, borderColor: S, label: D, value: k, isSegmentEmpty: R }, A) => (Z(), ct($n, {
|
|
19286
19286
|
key: D + A
|
|
19287
19287
|
}, [
|
|
19288
19288
|
n.state.tooltipSeries.length ? (Z(), ct("li", kC, [
|
|
@@ -19301,7 +19301,7 @@ const oC = { class: "zoom-timerange-container" }, lC = { class: "zoom-timerange-
|
|
|
19301
19301
|
], 6)) : Ft("", !0);
|
|
19302
19302
|
};
|
|
19303
19303
|
}
|
|
19304
|
-
}), io = /* @__PURE__ */
|
|
19304
|
+
}), io = /* @__PURE__ */ $e(CC, [["__scopeId", "data-v-34c60646"]]), AC = {
|
|
19305
19305
|
key: 0,
|
|
19306
19306
|
class: "legend-container",
|
|
19307
19307
|
"data-testid": "legend"
|
|
@@ -19326,7 +19326,7 @@ const oC = { class: "zoom-timerange-container" }, lC = { class: "zoom-timerange-
|
|
|
19326
19326
|
}
|
|
19327
19327
|
},
|
|
19328
19328
|
setup(n) {
|
|
19329
|
-
const t = n, { i18n: e } = vt.useI18n(), i = lr("showLegendValues", !1), s = lr("legendPosition", qt(
|
|
19329
|
+
const t = n, { i18n: e } = vt.useI18n(), i = lr("showLegendValues", !1), s = lr("legendPosition", qt(Ye.Bottom)), r = (o = 0, l) => {
|
|
19330
19330
|
if (t.chartInstance === null)
|
|
19331
19331
|
return;
|
|
19332
19332
|
const c = t.chartInstance instanceof Ue ? t.chartInstance : t.chartInstance.chart;
|
|
@@ -19339,8 +19339,8 @@ const oC = { class: "zoom-timerange-container" }, lC = { class: "zoom-timerange-
|
|
|
19339
19339
|
};
|
|
19340
19340
|
return (o, l) => {
|
|
19341
19341
|
const c = Ee("KTooltip");
|
|
19342
|
-
return Q(s) !== Q(
|
|
19343
|
-
(Z(!0), ct(
|
|
19342
|
+
return Q(s) !== Q(Ye).Hidden ? (Z(), ct("ul", AC, [
|
|
19343
|
+
(Z(!0), ct($n, null, xi(n.items, ({ fillStyle: u, strokeStyle: d, text: h, datasetIndex: f, index: g, value: y, isSegmentEmpty: v }) => (Z(), ct("li", {
|
|
19344
19344
|
key: h,
|
|
19345
19345
|
onClick: (w) => r(f, g)
|
|
19346
19346
|
}, [
|
|
@@ -19372,7 +19372,7 @@ const oC = { class: "zoom-timerange-container" }, lC = { class: "zoom-timerange-
|
|
|
19372
19372
|
])) : Ft("", !0);
|
|
19373
19373
|
};
|
|
19374
19374
|
}
|
|
19375
|
-
}),
|
|
19375
|
+
}), $c = /* @__PURE__ */ $e(NC, [["__scopeId", "data-v-e6664c85"]]), pe = [];
|
|
19376
19376
|
for (let n = 0; n < 256; ++n)
|
|
19377
19377
|
pe.push((n + 256).toString(16).slice(1));
|
|
19378
19378
|
function FC(n, t = 0) {
|
|
@@ -19434,7 +19434,7 @@ class gm {
|
|
|
19434
19434
|
this._pause = !1, t && (this._suppressNextClick = !0);
|
|
19435
19435
|
}
|
|
19436
19436
|
}
|
|
19437
|
-
const BC = ["id"], WC = ["id"],
|
|
19437
|
+
const BC = ["id"], WC = ["id"], YC = { class: "axis-tooltip-content" }, $C = "100%", jC = "100%", VC = 20, qC = 20, Nh = 6, GC = 0, KC = 10, XC = 10, ZC = 1, QC = /* @__PURE__ */ he({
|
|
19438
19438
|
__name: "StackedBarChart",
|
|
19439
19439
|
props: {
|
|
19440
19440
|
chartData: {},
|
|
@@ -19485,7 +19485,7 @@ const BC = ["id"], WC = ["id"], $C = { class: "axis-tooltip-content" }, YC = "10
|
|
|
19485
19485
|
[`${K}-value`]: mt,
|
|
19486
19486
|
[`${K}-percent`]: Tt
|
|
19487
19487
|
};
|
|
19488
|
-
}, d = Ji("canvas"), h = Ji("axis"), f = oc(), g = oc(), y = qt([]), v = lr("legendPosition",
|
|
19488
|
+
}, d = Ji("canvas"), h = Ji("axis"), f = oc(), g = oc(), y = qt([]), v = lr("legendPosition", Ye.Bottom), w = cr({
|
|
19489
19489
|
show: !1,
|
|
19490
19490
|
top: "0px",
|
|
19491
19491
|
left: "0px",
|
|
@@ -19556,7 +19556,7 @@ const BC = ["id"], WC = ["id"], $C = { class: "axis-tooltip-content" }, YC = "10
|
|
|
19556
19556
|
}, 100)), H = N(() => {
|
|
19557
19557
|
var K, J;
|
|
19558
19558
|
const G = (J = (K = t.chartData) == null ? void 0 : K.labels) == null ? void 0 : J.length;
|
|
19559
|
-
return d.value && G && !D.value ? `${Math.max(G * (VC + Nh), L.value)}px` :
|
|
19559
|
+
return d.value && G && !D.value ? `${Math.max(G * (VC + Nh), L.value)}px` : $C;
|
|
19560
19560
|
}), V = N(() => {
|
|
19561
19561
|
var K, J;
|
|
19562
19562
|
const G = (J = (K = t.chartData) == null ? void 0 : K.labels) == null ? void 0 : J.length;
|
|
@@ -19594,11 +19594,11 @@ const BC = ["id"], WC = ["id"], $C = { class: "axis-tooltip-content" }, YC = "10
|
|
|
19594
19594
|
C,
|
|
19595
19595
|
q
|
|
19596
19596
|
);
|
|
19597
|
-
|
|
19597
|
+
Yh(() => {
|
|
19598
19598
|
Ue.unregister(Ih);
|
|
19599
19599
|
});
|
|
19600
19600
|
const E = {
|
|
19601
|
-
[
|
|
19601
|
+
[Ye.Bottom]: "column"
|
|
19602
19602
|
}, z = N(() => {
|
|
19603
19603
|
if (h.value && j.value) {
|
|
19604
19604
|
const G = window.devicePixelRatio, K = j.value, J = K.scales.y.width * G + ZC, nt = (K.scales.y.height + K.scales.y.top + K.scales.x.height) * G, et = h.value.getContext("2d");
|
|
@@ -19610,7 +19610,7 @@ const BC = ["id"], WC = ["id"], $C = { class: "axis-tooltip-content" }, YC = "10
|
|
|
19610
19610
|
};
|
|
19611
19611
|
}
|
|
19612
19612
|
return null;
|
|
19613
|
-
}),
|
|
19613
|
+
}), Y = (G) => {
|
|
19614
19614
|
const K = G.target;
|
|
19615
19615
|
if (z.value && j.value && !D.value) {
|
|
19616
19616
|
const J = z.value.scale, nt = z.value.targetCtx, et = z.value.width, tt = z.value.height, mt = j.value, Tt = mt.canvas;
|
|
@@ -19646,7 +19646,7 @@ const BC = ["id"], WC = ["id"], $C = { class: "axis-tooltip-content" }, YC = "10
|
|
|
19646
19646
|
ref: "chartContainer",
|
|
19647
19647
|
class: "chart-container",
|
|
19648
19648
|
onClick: K[0] || (K[0] = (J) => it()),
|
|
19649
|
-
onScroll:
|
|
19649
|
+
onScroll: Y
|
|
19650
19650
|
}, [
|
|
19651
19651
|
ut("div", {
|
|
19652
19652
|
class: "chart-body",
|
|
@@ -19666,7 +19666,7 @@ const BC = ["id"], WC = ["id"], $C = { class: "axis-tooltip-content" }, YC = "10
|
|
|
19666
19666
|
style: Ti({ top: w.top, left: w.left }),
|
|
19667
19667
|
width: "auto"
|
|
19668
19668
|
}, [
|
|
19669
|
-
ut("div",
|
|
19669
|
+
ut("div", YC, dt(w.text), 1)
|
|
19670
19670
|
], 4)) : Ft("", !0),
|
|
19671
19671
|
Zt(io, {
|
|
19672
19672
|
"absolute-left": Q(R),
|
|
@@ -19677,14 +19677,14 @@ const BC = ["id"], WC = ["id"], $C = { class: "axis-tooltip-content" }, YC = "10
|
|
|
19677
19677
|
onDimensions: at
|
|
19678
19678
|
}, null, 8, ["absolute-left", "absolute-top", "chart-parent-ref", "state", "tooltip-title"])
|
|
19679
19679
|
])),
|
|
19680
|
-
Zt(
|
|
19680
|
+
Zt($c, {
|
|
19681
19681
|
id: Q(f),
|
|
19682
19682
|
"chart-instance": Q(j),
|
|
19683
19683
|
items: y.value
|
|
19684
19684
|
}, null, 8, ["id", "chart-instance", "items"])
|
|
19685
19685
|
], 2));
|
|
19686
19686
|
}
|
|
19687
|
-
}), JC = /* @__PURE__ */
|
|
19687
|
+
}), JC = /* @__PURE__ */ $e(QC, [["__scopeId", "data-v-60e5a1a7"]]);
|
|
19688
19688
|
/*!
|
|
19689
19689
|
* chartjs-adapter-date-fns v3.0.0
|
|
19690
19690
|
* https://www.chartjs.org
|
|
@@ -19761,7 +19761,7 @@ Tf._date.override({
|
|
|
19761
19761
|
case "quarter":
|
|
19762
19762
|
return Hv(n, t);
|
|
19763
19763
|
case "year":
|
|
19764
|
-
return
|
|
19764
|
+
return Yv(n, t);
|
|
19765
19765
|
default:
|
|
19766
19766
|
return 0;
|
|
19767
19767
|
}
|
|
@@ -19783,7 +19783,7 @@ Tf._date.override({
|
|
|
19783
19783
|
case "month":
|
|
19784
19784
|
return jv(n);
|
|
19785
19785
|
case "quarter":
|
|
19786
|
-
return
|
|
19786
|
+
return $v(n);
|
|
19787
19787
|
case "year":
|
|
19788
19788
|
return Qf(n);
|
|
19789
19789
|
default:
|
|
@@ -19930,7 +19930,7 @@ const oA = he({
|
|
|
19930
19930
|
const w = Ki(h.labels), S = Ki(g.labels), D = Ki(h.datasets), k = Ki(g.datasets);
|
|
19931
19931
|
w !== S && (pm(y.config.data, w), v = !0), D && D !== k && (ym(y.config.data, D, n.datasetIdKey), v = !0);
|
|
19932
19932
|
}
|
|
19933
|
-
v &&
|
|
19933
|
+
v && $h(() => {
|
|
19934
19934
|
l(y);
|
|
19935
19935
|
});
|
|
19936
19936
|
}, {
|
|
@@ -19979,7 +19979,7 @@ const bm = /* @__PURE__ */ jc("bar", tr), _m = /* @__PURE__ */ jc("doughnut", An
|
|
|
19979
19979
|
tooltipTitle: {},
|
|
19980
19980
|
metricUnit: { default: "" },
|
|
19981
19981
|
metricName: { default: "" },
|
|
19982
|
-
legendPosition: { default:
|
|
19982
|
+
legendPosition: { default: Ye.Bottom },
|
|
19983
19983
|
legendValues: { default: void 0 },
|
|
19984
19984
|
syntheticsDataKey: { default: "" },
|
|
19985
19985
|
datasetColors: { default: () => ei },
|
|
@@ -20038,8 +20038,8 @@ const bm = /* @__PURE__ */ jc("bar", tr), _m = /* @__PURE__ */ jc("doughnut", An
|
|
|
20038
20038
|
tooltipState: l,
|
|
20039
20039
|
legendID: s
|
|
20040
20040
|
}), k = qt(), R = (O) => ({
|
|
20041
|
-
[
|
|
20042
|
-
[
|
|
20041
|
+
[Ye.Bottom]: "column",
|
|
20042
|
+
[Ye.Hidden]: "hidden"
|
|
20043
20043
|
})[O], A = ({ width: O, height: m }) => {
|
|
20044
20044
|
l.width = O, l.height = m;
|
|
20045
20045
|
};
|
|
@@ -20072,7 +20072,7 @@ const bm = /* @__PURE__ */ jc("bar", tr), _m = /* @__PURE__ */ jc("doughnut", An
|
|
|
20072
20072
|
}, null, 8, ["absolute-left", "absolute-top", "state", "tooltip-title", "unit"])
|
|
20073
20073
|
]))
|
|
20074
20074
|
]),
|
|
20075
|
-
Zt(
|
|
20075
|
+
Zt($c, {
|
|
20076
20076
|
id: Q(s),
|
|
20077
20077
|
"chart-instance": k.value,
|
|
20078
20078
|
items: a.value,
|
|
@@ -20080,7 +20080,7 @@ const bm = /* @__PURE__ */ jc("bar", tr), _m = /* @__PURE__ */ jc("doughnut", An
|
|
|
20080
20080
|
}, null, 8, ["id", "chart-instance", "items", "position"])
|
|
20081
20081
|
], 2));
|
|
20082
20082
|
}
|
|
20083
|
-
}), fA = /* @__PURE__ */
|
|
20083
|
+
}), fA = /* @__PURE__ */ $e(hA, [["__scopeId", "data-v-48b16272"]]), Sl = (n, t, e, i, s = "#0275d8") => {
|
|
20084
20084
|
n.save(), n.beginPath(), n.moveTo(t, e), n.lineTo(t, i), n.lineWidth = 1, n.strokeStyle = s, n.stroke(), n.restore();
|
|
20085
20085
|
}, Me = {}, gA = () => {
|
|
20086
20086
|
Me.x = void 0, Me.chart = void 0, Me.strategy = void 0, Me.group = void 0;
|
|
@@ -20383,7 +20383,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
20383
20383
|
},
|
|
20384
20384
|
emits: ["zoom-time-range", "select-chart-range"],
|
|
20385
20385
|
setup(n, { emit: t }) {
|
|
20386
|
-
const e = n, i = t, { i18n: s } = vt.useI18n(), r = new xm(), a = new gm(), o = new bA(), l = new TA(s), { translateUnit: c } = vt.useTranslatedUnits(), u = qt(), d = crypto.randomUUID(), h = crypto.randomUUID(), f = qt([]), g = lr("legendPosition",
|
|
20386
|
+
const e = n, i = t, { i18n: s } = vt.useI18n(), r = new xm(), a = new gm(), o = new bA(), l = new TA(s), { translateUnit: c } = vt.useTranslatedUnits(), u = qt(), d = crypto.randomUUID(), h = crypto.randomUUID(), f = qt([]), g = lr("legendPosition", Ye.Bottom), y = Ji("chartParent"), v = qt(void 0), w = qt(!1), S = cr({
|
|
20387
20387
|
showTooltip: !1,
|
|
20388
20388
|
tooltipContext: 0,
|
|
20389
20389
|
// Set in lineChartTooltipBehavior
|
|
@@ -20428,8 +20428,8 @@ const MA = /* @__PURE__ */ he({
|
|
|
20428
20428
|
});
|
|
20429
20429
|
vt.useReportChartDataForSynthetics(Mt(e, "chartData"), Mt(e, "syntheticsDataKey"));
|
|
20430
20430
|
const M = (j) => ({
|
|
20431
|
-
[
|
|
20432
|
-
[
|
|
20431
|
+
[Ye.Bottom]: "column",
|
|
20432
|
+
[Ye.Hidden]: "hidden"
|
|
20433
20433
|
})[j], C = ({ width: j, height: E }) => {
|
|
20434
20434
|
S.width = j, S.height = E;
|
|
20435
20435
|
}, B = (j = !0) => {
|
|
@@ -20525,7 +20525,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
20525
20525
|
onDimensions: C,
|
|
20526
20526
|
onOnAction: E[1] || (E[1] = () => B(!1))
|
|
20527
20527
|
}, null, 8, ["absolute-left", "absolute-top", "granularity", "state", "tooltip-title", "zoom-action-items", "zoom-time-range"]),
|
|
20528
|
-
Zt(
|
|
20528
|
+
Zt($c, {
|
|
20529
20529
|
id: Q(d),
|
|
20530
20530
|
"chart-instance": u.value,
|
|
20531
20531
|
"data-testid": "legend",
|
|
@@ -20533,7 +20533,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
20533
20533
|
}, null, 8, ["id", "chart-instance", "items"])
|
|
20534
20534
|
], 2));
|
|
20535
20535
|
}
|
|
20536
|
-
}), DA = /* @__PURE__ */
|
|
20536
|
+
}), DA = /* @__PURE__ */ $e(MA, [["__scopeId", "data-v-ac6e8bbc"]]), kA = {
|
|
20537
20537
|
key: 0,
|
|
20538
20538
|
class: "chart-truncation-warning",
|
|
20539
20539
|
"data-testid": "truncation-warning"
|
|
@@ -20548,7 +20548,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
20548
20548
|
tooltipTitle: { default: "" },
|
|
20549
20549
|
emptyStateTitle: { default: "" },
|
|
20550
20550
|
emptyStateDescription: { default: "" },
|
|
20551
|
-
legendPosition: { default:
|
|
20551
|
+
legendPosition: { default: Ye.Bottom },
|
|
20552
20552
|
syntheticsDataKey: { default: "" },
|
|
20553
20553
|
showLegendValues: { type: Boolean, default: !1 },
|
|
20554
20554
|
showAnnotations: { type: Boolean, default: !0 },
|
|
@@ -20584,7 +20584,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
20584
20584
|
}), c = N(() => {
|
|
20585
20585
|
var L;
|
|
20586
20586
|
return (L = i.chartData.meta) != null && L.metric_units ? Object.keys(i.chartData.meta.metric_units)[0] ?? "" : "";
|
|
20587
|
-
}), u = N(() => i.showLegendValues && i.legendPosition !==
|
|
20587
|
+
}), u = N(() => i.showLegendValues && i.legendPosition !== Ye.Hidden), { legendValues: d } = vt.useChartLegendValues(r, i.chartOptions.type, l), h = N(() => {
|
|
20588
20588
|
var L, W, F;
|
|
20589
20589
|
return ((F = (W = (L = i.chartData) == null ? void 0 : L.meta) == null ? void 0 : W.limit) == null ? void 0 : F.toString()) || null;
|
|
20590
20590
|
}), f = N(() => {
|
|
@@ -20747,7 +20747,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
20747
20747
|
], 2);
|
|
20748
20748
|
};
|
|
20749
20749
|
}
|
|
20750
|
-
}), lR = /* @__PURE__ */
|
|
20750
|
+
}), lR = /* @__PURE__ */ $e(AA, [["__scopeId", "data-v-346b2111"]]), PA = {
|
|
20751
20751
|
class: "chart-parent",
|
|
20752
20752
|
"data-testid": "gauge-chart-parent"
|
|
20753
20753
|
}, RA = { class: "chart-totals-flex" }, EA = {
|
|
@@ -20846,7 +20846,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
20846
20846
|
], 4)
|
|
20847
20847
|
]));
|
|
20848
20848
|
}
|
|
20849
|
-
}), LA = /* @__PURE__ */
|
|
20849
|
+
}), LA = /* @__PURE__ */ $e(IA, [["__scopeId", "data-v-c461b83f"]]), NA = {
|
|
20850
20850
|
key: 1,
|
|
20851
20851
|
class: "single-value-wrapper"
|
|
20852
20852
|
}, FA = { class: "single-value-metric" }, zA = { class: "name-unit-alignment" }, UA = {
|
|
@@ -20858,11 +20858,11 @@ const MA = /* @__PURE__ */ he({
|
|
|
20858
20858
|
}, BA = { class: "single-value-metric-name" }, WA = {
|
|
20859
20859
|
key: 0,
|
|
20860
20860
|
class: "single-value-trend"
|
|
20861
|
-
},
|
|
20861
|
+
}, YA = {
|
|
20862
20862
|
key: 0,
|
|
20863
20863
|
class: "single-value-trend-range",
|
|
20864
20864
|
"data-testid": "single-value-trend-range"
|
|
20865
|
-
}, Tl = "t1", Ml = "t2",
|
|
20865
|
+
}, Tl = "t1", Ml = "t2", $A = /* @__PURE__ */ he({
|
|
20866
20866
|
__name: "SingleValue",
|
|
20867
20867
|
props: {
|
|
20868
20868
|
data: {
|
|
@@ -20894,7 +20894,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
20894
20894
|
}
|
|
20895
20895
|
},
|
|
20896
20896
|
setup(n) {
|
|
20897
|
-
const { i18n: t } = vt.useI18n(), { formatBytes: e, formatCost: i } = Pi({ i18n: t }), s = n, r = N(() => `align-${s.leftAlign ? "left" : s.alignX}`), a = N(() =>
|
|
20897
|
+
const { i18n: t } = vt.useI18n(), { formatBytes: e, formatCost: i } = Pi({ i18n: t }), s = n, r = N(() => `align-${s.leftAlign ? "left" : s.alignX}`), a = N(() => $m(s.data, s.showTrend, { topLevelKey: Tl, secondLevelKey: Ml })), o = N(() => {
|
|
20898
20898
|
var _, M, C;
|
|
20899
20899
|
return (C = (M = (_ = a.value) == null ? void 0 : _.previous) == null ? void 0 : M[Tl]) == null ? void 0 : C[Ml];
|
|
20900
20900
|
}), l = N(() => {
|
|
@@ -21006,13 +21006,13 @@ const MA = /* @__PURE__ */ he({
|
|
|
21006
21006
|
}, null, 8, ["color", "size"])),
|
|
21007
21007
|
ut("div", null, dt(A.value), 1)
|
|
21008
21008
|
], 2),
|
|
21009
|
-
Q(O) ? (Z(), ct("div",
|
|
21009
|
+
Q(O) ? (Z(), ct("div", YA, dt(Q(O)), 1)) : Ft("", !0)
|
|
21010
21010
|
])) : Ft("", !0)
|
|
21011
21011
|
]))
|
|
21012
21012
|
], 2);
|
|
21013
21013
|
};
|
|
21014
21014
|
}
|
|
21015
|
-
}), jA = /* @__PURE__ */
|
|
21015
|
+
}), jA = /* @__PURE__ */ $e($A, [["__scopeId", "data-v-0203459f"]]), VA = { class: "simple-chart-shell" }, qA = {
|
|
21016
21016
|
key: 1,
|
|
21017
21017
|
class: "analytics-chart-parent"
|
|
21018
21018
|
}, GA = /* @__PURE__ */ he({
|
|
@@ -21108,7 +21108,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
21108
21108
|
]);
|
|
21109
21109
|
};
|
|
21110
21110
|
}
|
|
21111
|
-
}), cR = /* @__PURE__ */
|
|
21111
|
+
}), cR = /* @__PURE__ */ $e(GA, [["__scopeId", "data-v-23ca8c84"]]), KA = {
|
|
21112
21112
|
class: "top-n-card-title",
|
|
21113
21113
|
"data-testid": "top-n-card-title"
|
|
21114
21114
|
}, XA = {
|
|
@@ -21174,14 +21174,14 @@ const MA = /* @__PURE__ */ he({
|
|
|
21174
21174
|
const H = D(F), V = u.value && u.value[H];
|
|
21175
21175
|
return V ? !!V.deleted : !1;
|
|
21176
21176
|
}, O = (F, H) => {
|
|
21177
|
-
var z,
|
|
21177
|
+
var z, Y;
|
|
21178
21178
|
const V = F.event[H];
|
|
21179
21179
|
if (V == null)
|
|
21180
21180
|
return "–";
|
|
21181
21181
|
const q = typeof V == "number" ? V : Number(V);
|
|
21182
21182
|
if (Number.isNaN(q))
|
|
21183
21183
|
return "–";
|
|
21184
|
-
const j = ((
|
|
21184
|
+
const j = ((Y = (z = t.data.meta) == null ? void 0 : z.metric_units) == null ? void 0 : Y[H]) || "count", E = ["count", "count/minute", "token count"].includes(j);
|
|
21185
21185
|
return i(q, j, {
|
|
21186
21186
|
approximate: E,
|
|
21187
21187
|
isBytes1024: !0,
|
|
@@ -21198,8 +21198,8 @@ const MA = /* @__PURE__ */ he({
|
|
|
21198
21198
|
dimensions: V,
|
|
21199
21199
|
original: H
|
|
21200
21200
|
};
|
|
21201
|
-
return h.value && (E.value = m(H)), d.value.forEach((z,
|
|
21202
|
-
|
|
21201
|
+
return h.value && (E.value = m(H)), d.value.forEach((z, Y) => {
|
|
21202
|
+
Y !== 0 && (E[z] = O(H, z));
|
|
21203
21203
|
}), E;
|
|
21204
21204
|
}) : [];
|
|
21205
21205
|
}), _ = N(() => {
|
|
@@ -21264,7 +21264,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
21264
21264
|
}, [
|
|
21265
21265
|
ut("thead", QA, [
|
|
21266
21266
|
ut("tr", JA, [
|
|
21267
|
-
(Z(!0), ct(
|
|
21267
|
+
(Z(!0), ct($n, null, xi(g.value, (E) => (Z(), ct("th", {
|
|
21268
21268
|
key: E.key,
|
|
21269
21269
|
class: Fe(["top-n-table-header-cell", {
|
|
21270
21270
|
"top-n-table-header-cell-metric": E.type === "metric",
|
|
@@ -21277,7 +21277,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
21277
21277
|
])
|
|
21278
21278
|
]),
|
|
21279
21279
|
ut("tbody", null, [
|
|
21280
|
-
(Z(!0), ct(
|
|
21280
|
+
(Z(!0), ct($n, null, xi(b.value, (E) => (Z(), ct("tr", {
|
|
21281
21281
|
key: E.rowKey,
|
|
21282
21282
|
class: "top-n-table-row"
|
|
21283
21283
|
}, [
|
|
@@ -21301,7 +21301,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
21301
21301
|
], !0)
|
|
21302
21302
|
], 8, eP)
|
|
21303
21303
|
], 2),
|
|
21304
|
-
(Z(!0), ct(
|
|
21304
|
+
(Z(!0), ct($n, null, xi(v.value, (z) => (Z(), ct("td", {
|
|
21305
21305
|
key: z.key,
|
|
21306
21306
|
class: Fe(["top-n-table-cell top-n-table-cell--dimension", { "top-n-table-cell-dimension-compact": !w(z) }])
|
|
21307
21307
|
}, [
|
|
@@ -21311,7 +21311,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
21311
21311
|
Ie(dt(C(E, z.key)), 1)
|
|
21312
21312
|
], !0)
|
|
21313
21313
|
], 2))), 128)),
|
|
21314
|
-
(Z(!0), ct(
|
|
21314
|
+
(Z(!0), ct($n, null, xi(y.value, (z) => (Z(), ct("td", {
|
|
21315
21315
|
key: z.key,
|
|
21316
21316
|
class: "top-n-table-cell top-n-table-cell-metric"
|
|
21317
21317
|
}, [
|
|
@@ -21356,7 +21356,7 @@ const MA = /* @__PURE__ */ he({
|
|
|
21356
21356
|
]), 1032, ["title-tag"]);
|
|
21357
21357
|
};
|
|
21358
21358
|
}
|
|
21359
|
-
}), uR = /* @__PURE__ */
|
|
21359
|
+
}), uR = /* @__PURE__ */ $e(rP, [["__scopeId", "data-v-bd2cedcf"]]);
|
|
21360
21360
|
var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
21361
21361
|
function wm(n) {
|
|
21362
21362
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
@@ -21364,7 +21364,7 @@ function wm(n) {
|
|
|
21364
21364
|
var Wa = { exports: {} };
|
|
21365
21365
|
Wa.exports;
|
|
21366
21366
|
(function(n, t) {
|
|
21367
|
-
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]", g = "[object GeneratorFunction]", y = "[object Map]", v = "[object Number]", w = "[object Object]", S = "[object Promise]", D = "[object RegExp]", k = "[object Set]", R = "[object String]", A = "[object Symbol]", O = "[object WeakMap]", m = "[object ArrayBuffer]", b = "[object DataView]", _ = "[object Float32Array]", M = "[object Float64Array]", C = "[object Int8Array]", B = "[object Int16Array]", L = "[object Int32Array]", W = "[object Uint8Array]", F = "[object Uint8ClampedArray]", H = "[object Uint16Array]", V = "[object Uint32Array]", q = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, j = /^\w*$/, E = /^\./, z = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
|
|
21367
|
+
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]", g = "[object GeneratorFunction]", y = "[object Map]", v = "[object Number]", w = "[object Object]", S = "[object Promise]", D = "[object RegExp]", k = "[object Set]", R = "[object String]", A = "[object Symbol]", O = "[object WeakMap]", m = "[object ArrayBuffer]", b = "[object DataView]", _ = "[object Float32Array]", M = "[object Float64Array]", C = "[object Int8Array]", B = "[object Int16Array]", L = "[object Int32Array]", W = "[object Uint8Array]", F = "[object Uint8ClampedArray]", H = "[object Uint16Array]", V = "[object Uint32Array]", q = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, j = /^\w*$/, E = /^\./, z = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Y = /[\\^$.*+?()[\]{}|]/g, at = /\\(\\)?/g, it = /^\[object .+?Constructor\]$/, G = /^(?:0|[1-9]\d*)$/, K = {};
|
|
21368
21368
|
K[_] = K[M] = K[C] = K[B] = K[L] = K[W] = K[F] = K[H] = K[V] = !0, K[l] = K[c] = K[m] = K[u] = K[b] = K[d] = K[h] = K[f] = K[y] = K[v] = K[w] = K[D] = K[k] = K[R] = K[O] = !1;
|
|
21369
21369
|
var J = typeof Ne == "object" && Ne && Ne.Object === Object && Ne, nt = typeof self == "object" && self && self.Object === Object && self, et = J || nt || Function("return this")(), tt = t && !t.nodeType && t, mt = tt && !0 && n && !n.nodeType && n, Tt = mt && mt.exports === tt, lt = Tt && J.process, wt = function() {
|
|
21370
21370
|
try {
|
|
@@ -21422,12 +21422,12 @@ Wa.exports;
|
|
|
21422
21422
|
U[++T] = X;
|
|
21423
21423
|
}), U;
|
|
21424
21424
|
}
|
|
21425
|
-
var
|
|
21425
|
+
var $t = Array.prototype, se = Function.prototype, me = Object.prototype, on = et["__core-js_shared__"], ai = function() {
|
|
21426
21426
|
var p = /[^.]+$/.exec(on && on.keys && on.keys.IE_PROTO || "");
|
|
21427
21427
|
return p ? "Symbol(src)_1." + p : "";
|
|
21428
21428
|
}(), tn = se.toString, jt = me.hasOwnProperty, Oe = me.toString, oi = RegExp(
|
|
21429
|
-
"^" + tn.call(jt).replace(
|
|
21430
|
-
), Ar = et.Symbol, Pr = et.Uint8Array, ys = me.propertyIsEnumerable, li =
|
|
21429
|
+
"^" + tn.call(jt).replace(Y, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
21430
|
+
), Ar = et.Symbol, Pr = et.Uint8Array, ys = me.propertyIsEnumerable, li = $t.splice, bs = It(Object.keys, Object), ci = _n(et, "DataView"), mn = _n(et, "Map"), pn = _n(et, "Promise"), _s = _n(et, "Set"), vs = _n(et, "WeakMap"), ui = _n(Object, "create"), so = xn(ci), ro = xn(mn), Rr = xn(pn), Er = xn(_s), yn = xn(vs), Ii = Ar ? Ar.prototype : void 0, xs = Ii ? Ii.valueOf : void 0, Ir = Ii ? Ii.toString : void 0;
|
|
21431
21431
|
function bn(p) {
|
|
21432
21432
|
var T = -1, U = p ? p.length : 0;
|
|
21433
21433
|
for (this.clear(); ++T < U; ) {
|
|
@@ -21649,8 +21649,8 @@ Wa.exports;
|
|
|
21649
21649
|
}
|
|
21650
21650
|
function Ui(p, T) {
|
|
21651
21651
|
return Bi(p) && Ur(T) ? Ds(vn(p), T) : function(U) {
|
|
21652
|
-
var X =
|
|
21653
|
-
return X === void 0 && X === T ?
|
|
21652
|
+
var X = Yr(U, p);
|
|
21653
|
+
return X === void 0 && X === T ? $r(U, p) : Ss(T, X, void 0, r | a);
|
|
21654
21654
|
};
|
|
21655
21655
|
}
|
|
21656
21656
|
function Ln(p) {
|
|
@@ -21895,13 +21895,13 @@ Wa.exports;
|
|
|
21895
21895
|
return p === T || p !== p && T !== T;
|
|
21896
21896
|
}
|
|
21897
21897
|
function Br(p) {
|
|
21898
|
-
return
|
|
21898
|
+
return $(p) && jt.call(p, "callee") && (!ys.call(p, "callee") || Oe.call(p) == l);
|
|
21899
21899
|
}
|
|
21900
21900
|
var x = Array.isArray;
|
|
21901
21901
|
function I(p) {
|
|
21902
21902
|
return p != null && Xt(p.length) && !st(p);
|
|
21903
21903
|
}
|
|
21904
|
-
function
|
|
21904
|
+
function $(p) {
|
|
21905
21905
|
return Ce(p) && I(p);
|
|
21906
21906
|
}
|
|
21907
21907
|
function st(p) {
|
|
@@ -21925,11 +21925,11 @@ Wa.exports;
|
|
|
21925
21925
|
function Nn(p) {
|
|
21926
21926
|
return p == null ? "" : Nr(p);
|
|
21927
21927
|
}
|
|
21928
|
-
function
|
|
21928
|
+
function Yr(p, T, U) {
|
|
21929
21929
|
var X = p == null ? void 0 : zi(p, T);
|
|
21930
21930
|
return X === void 0 ? U : X;
|
|
21931
21931
|
}
|
|
21932
|
-
function
|
|
21932
|
+
function $r(p, T) {
|
|
21933
21933
|
return p != null && Uo(p, T, Oo);
|
|
21934
21934
|
}
|
|
21935
21935
|
function hi(p) {
|
|
@@ -22235,21 +22235,21 @@ License: MIT
|
|
|
22235
22235
|
}, this);
|
|
22236
22236
|
}
|
|
22237
22237
|
function y(m) {
|
|
22238
|
-
var b, _, M, C, B = Math.pow(2, 53), L = -B, W = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, F = /^((\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)))$/, H = this, V = 0, q = 0, j = !1, E = !1, z = [],
|
|
22238
|
+
var b, _, M, C, B = Math.pow(2, 53), L = -B, W = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, F = /^((\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)))$/, H = this, V = 0, q = 0, j = !1, E = !1, z = [], Y = { data: [], errors: [], meta: {} };
|
|
22239
22239
|
function at(J) {
|
|
22240
22240
|
return m.skipEmptyLines === "greedy" ? J.join("").trim() === "" : J.length === 1 && J[0].length === 0;
|
|
22241
22241
|
}
|
|
22242
22242
|
function it() {
|
|
22243
|
-
if (
|
|
22243
|
+
if (Y && M && (K("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + c.DefaultDelimiter + "'"), M = !1), m.skipEmptyLines && (Y.data = Y.data.filter(function(tt) {
|
|
22244
22244
|
return !at(tt);
|
|
22245
22245
|
})), G()) {
|
|
22246
22246
|
let tt = function(mt, Tt) {
|
|
22247
22247
|
O(m.transformHeader) && (mt = m.transformHeader(mt, Tt)), z.push(mt);
|
|
22248
22248
|
};
|
|
22249
|
-
if (
|
|
22250
|
-
for (var J = 0; G() && J <
|
|
22251
|
-
|
|
22252
|
-
} else
|
|
22249
|
+
if (Y) if (Array.isArray(Y.data[0])) {
|
|
22250
|
+
for (var J = 0; G() && J < Y.data.length; J++) Y.data[J].forEach(tt);
|
|
22251
|
+
Y.data.splice(0, 1);
|
|
22252
|
+
} else Y.data.forEach(tt);
|
|
22253
22253
|
}
|
|
22254
22254
|
function nt(tt, mt) {
|
|
22255
22255
|
for (var Tt = m.header ? {} : [], lt = 0; lt < tt.length; lt++) {
|
|
@@ -22262,27 +22262,27 @@ License: MIT
|
|
|
22262
22262
|
return m.header && (lt > z.length ? K("FieldMismatch", "TooManyFields", "Too many fields: expected " + z.length + " fields but parsed " + lt, q + mt) : lt < z.length && K("FieldMismatch", "TooFewFields", "Too few fields: expected " + z.length + " fields but parsed " + lt, q + mt)), Tt;
|
|
22263
22263
|
}
|
|
22264
22264
|
var et;
|
|
22265
|
-
|
|
22265
|
+
Y && (m.header || m.dynamicTyping || m.transform) && (et = 1, !Y.data.length || Array.isArray(Y.data[0]) ? (Y.data = Y.data.map(nt), et = Y.data.length) : Y.data = nt(Y.data, 0), m.header && Y.meta && (Y.meta.fields = z), q += et);
|
|
22266
22266
|
}
|
|
22267
22267
|
function G() {
|
|
22268
22268
|
return m.header && z.length === 0;
|
|
22269
22269
|
}
|
|
22270
22270
|
function K(J, nt, et, tt) {
|
|
22271
|
-
J = { type: J, code: nt, message: et }, tt !== void 0 && (J.row = tt),
|
|
22271
|
+
J = { type: J, code: nt, message: et }, tt !== void 0 && (J.row = tt), Y.errors.push(J);
|
|
22272
22272
|
}
|
|
22273
22273
|
O(m.step) && (C = m.step, m.step = function(J) {
|
|
22274
|
-
|
|
22274
|
+
Y = J, G() ? it() : (it(), Y.data.length !== 0 && (V += J.data.length, m.preview && V > m.preview ? _.abort() : (Y.data = Y.data[0], C(Y, H))));
|
|
22275
22275
|
}), this.parse = function(J, nt, et) {
|
|
22276
|
-
var tt = m.quoteChar || '"', tt = (m.newline || (m.newline = this.guessLineEndings(J, tt)), M = !1, m.delimiter ? O(m.delimiter) && (m.delimiter = m.delimiter(J),
|
|
22276
|
+
var tt = m.quoteChar || '"', tt = (m.newline || (m.newline = this.guessLineEndings(J, tt)), M = !1, m.delimiter ? O(m.delimiter) && (m.delimiter = m.delimiter(J), Y.meta.delimiter = m.delimiter) : ((tt = ((mt, Tt, lt, wt, yt) => {
|
|
22277
22277
|
var ne, gt, Ot, fe;
|
|
22278
22278
|
yt = yt || [",", " ", "|", ";", c.RECORD_SEP, c.UNIT_SEP];
|
|
22279
22279
|
for (var ye = 0; ye < yt.length; ye++) {
|
|
22280
|
-
for (var ie, an = yt[ye], It = 0, ge = 0,
|
|
22281
|
-
0 < se.data.length && (ge /= se.data.length -
|
|
22280
|
+
for (var ie, an = yt[ye], It = 0, ge = 0, $t = 0, se = (Ot = void 0, new w({ comments: wt, delimiter: an, newline: Tt, preview: 10 }).parse(mt)), me = 0; me < se.data.length; me++) lt && at(se.data[me]) ? $t++ : (ie = se.data[me].length, ge += ie, Ot === void 0 ? Ot = ie : 0 < ie && (It += Math.abs(ie - Ot), Ot = ie));
|
|
22281
|
+
0 < se.data.length && (ge /= se.data.length - $t), (gt === void 0 || It <= gt) && (fe === void 0 || fe < ge) && 1.99 < ge && (gt = It, ne = an, fe = ge);
|
|
22282
22282
|
}
|
|
22283
22283
|
return { successful: !!(m.delimiter = ne), bestDelimiter: ne };
|
|
22284
|
-
})(J, m.newline, m.skipEmptyLines, m.comments, m.delimitersToGuess)).successful ? m.delimiter = tt.bestDelimiter : (M = !0, m.delimiter = c.DefaultDelimiter),
|
|
22285
|
-
return m.preview && m.header && tt.preview++, b = J, _ = new w(tt),
|
|
22284
|
+
})(J, m.newline, m.skipEmptyLines, m.comments, m.delimitersToGuess)).successful ? m.delimiter = tt.bestDelimiter : (M = !0, m.delimiter = c.DefaultDelimiter), Y.meta.delimiter = m.delimiter), R(m));
|
|
22285
|
+
return m.preview && m.header && tt.preview++, b = J, _ = new w(tt), Y = _.parse(b, nt, et), it(), j ? { meta: { paused: !0 } } : Y || { meta: { paused: !1 } };
|
|
22286
22286
|
}, this.paused = function() {
|
|
22287
22287
|
return j;
|
|
22288
22288
|
}, this.pause = function() {
|
|
@@ -22292,7 +22292,7 @@ License: MIT
|
|
|
22292
22292
|
}, this.aborted = function() {
|
|
22293
22293
|
return E;
|
|
22294
22294
|
}, this.abort = function() {
|
|
22295
|
-
E = !0, _.abort(),
|
|
22295
|
+
E = !0, _.abort(), Y.meta.aborted = !0, O(m.complete) && m.complete(Y), b = "";
|
|
22296
22296
|
}, this.guessLineEndings = function(mt, tt) {
|
|
22297
22297
|
mt = mt.substring(0, 1048576);
|
|
22298
22298
|
var tt = new RegExp(v(tt) + "([^]*?)" + v(tt), "gm"), et = (mt = mt.replace(tt, "")).split("\r"), tt = mt.split(`
|
|
@@ -22316,14 +22316,14 @@ License: MIT
|
|
|
22316
22316
|
` && (_ = `
|
|
22317
22317
|
`);
|
|
22318
22318
|
var q = 0, j = !1;
|
|
22319
|
-
this.parse = function(E, z,
|
|
22319
|
+
this.parse = function(E, z, Y) {
|
|
22320
22320
|
if (typeof E != "string") throw new Error("Input must be a string");
|
|
22321
22321
|
var at = E.length, it = b.length, G = _.length, K = M.length, J = O(C), nt = [], et = [], tt = [], mt = q = 0;
|
|
22322
22322
|
if (!E) return It();
|
|
22323
22323
|
if (L || L !== !1 && E.indexOf(H) === -1) {
|
|
22324
22324
|
for (var Tt = E.split(_), lt = 0; lt < Tt.length; lt++) {
|
|
22325
22325
|
if (tt = Tt[lt], q += tt.length, lt !== Tt.length - 1) q += _.length;
|
|
22326
|
-
else if (
|
|
22326
|
+
else if (Y) return It();
|
|
22327
22327
|
if (!M || tt.substring(0, K) !== M) {
|
|
22328
22328
|
if (J) {
|
|
22329
22329
|
if (nt = [], fe(tt.split(b)), ge(), j) return It();
|
|
@@ -22334,7 +22334,7 @@ License: MIT
|
|
|
22334
22334
|
return It();
|
|
22335
22335
|
}
|
|
22336
22336
|
for (var wt = E.indexOf(b, q), yt = E.indexOf(_, q), ne = new RegExp(v(V) + v(H), "g"), gt = E.indexOf(H, q); ; ) if (E[q] === H) for (gt = q, q++; ; ) {
|
|
22337
|
-
if ((gt = E.indexOf(H, gt + 1)) === -1) return
|
|
22337
|
+
if ((gt = E.indexOf(H, gt + 1)) === -1) return Y || et.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: nt.length, index: q }), ie();
|
|
22338
22338
|
if (gt === at - 1) return ie(E.substring(q, gt).replace(ne, H));
|
|
22339
22339
|
if (H === V && E[gt + 1] === V) gt++;
|
|
22340
22340
|
else if (H === V || gt === 0 || E[gt - 1] !== V) {
|
|
@@ -22362,20 +22362,20 @@ License: MIT
|
|
|
22362
22362
|
if (B && nt.length >= B) return It(!0);
|
|
22363
22363
|
}
|
|
22364
22364
|
return ie();
|
|
22365
|
-
function fe(
|
|
22366
|
-
nt.push(
|
|
22365
|
+
function fe($t) {
|
|
22366
|
+
nt.push($t), mt = q;
|
|
22367
22367
|
}
|
|
22368
|
-
function ye(
|
|
22368
|
+
function ye($t) {
|
|
22369
22369
|
var se = 0;
|
|
22370
|
-
return se =
|
|
22370
|
+
return se = $t !== -1 && ($t = E.substring(gt + 1, $t)) && $t.trim() === "" ? $t.length : se;
|
|
22371
22371
|
}
|
|
22372
|
-
function ie(
|
|
22373
|
-
return
|
|
22372
|
+
function ie($t) {
|
|
22373
|
+
return Y || ($t === void 0 && ($t = E.substring(q)), tt.push($t), q = at, fe(tt), J && ge()), It();
|
|
22374
22374
|
}
|
|
22375
|
-
function an(
|
|
22376
|
-
q =
|
|
22375
|
+
function an($t) {
|
|
22376
|
+
q = $t, fe(tt), tt = [], yt = E.indexOf(_, q);
|
|
22377
22377
|
}
|
|
22378
|
-
function It(
|
|
22378
|
+
function It($t) {
|
|
22379
22379
|
if (m.header && !z && nt.length && !F) {
|
|
22380
22380
|
var se = nt[0], me = /* @__PURE__ */ Object.create(null), on = new Set(se);
|
|
22381
22381
|
let ai = !1;
|
|
@@ -22390,7 +22390,7 @@ License: MIT
|
|
|
22390
22390
|
}
|
|
22391
22391
|
ai && console.warn("Duplicate headers found and renamed."), F = !0;
|
|
22392
22392
|
}
|
|
22393
|
-
return { data: nt, errors: et, meta: { delimiter: b, linebreak: _, aborted: j, truncated:
|
|
22393
|
+
return { data: nt, errors: et, meta: { delimiter: b, linebreak: _, aborted: j, truncated: !!$t, cursor: mt + (z || 0), renamedHeaders: W } };
|
|
22394
22394
|
}
|
|
22395
22395
|
function ge() {
|
|
22396
22396
|
C(It()), nt = [], et = [];
|
|
@@ -22464,18 +22464,18 @@ License: MIT
|
|
|
22464
22464
|
if (typeof m[0] == "object") return j(H || Object.keys(m[0]), m, F);
|
|
22465
22465
|
} else if (typeof m == "object") return typeof m.data == "string" && (m.data = JSON.parse(m.data)), Array.isArray(m.data) && (m.fields || (m.fields = m.meta && m.meta.fields || H), m.fields || (m.fields = Array.isArray(m.data[0]) ? m.fields : typeof m.data[0] == "object" ? Object.keys(m.data[0]) : []), Array.isArray(m.data[0]) || typeof m.data[0] == "object" || (m.data = [m.data])), j(m.fields || [], m.data || [], F);
|
|
22466
22466
|
throw new Error("Unable to serialize unrecognized input");
|
|
22467
|
-
function j(z,
|
|
22468
|
-
var it = "", G = (typeof z == "string" && (z = JSON.parse(z)), typeof
|
|
22467
|
+
function j(z, Y, at) {
|
|
22468
|
+
var it = "", G = (typeof z == "string" && (z = JSON.parse(z)), typeof Y == "string" && (Y = JSON.parse(Y)), Array.isArray(z) && 0 < z.length), K = !Array.isArray(Y[0]);
|
|
22469
22469
|
if (G && M) {
|
|
22470
22470
|
for (var J = 0; J < z.length; J++) 0 < J && (it += C), it += E(z[J], J);
|
|
22471
|
-
0 <
|
|
22471
|
+
0 < Y.length && (it += B);
|
|
22472
22472
|
}
|
|
22473
|
-
for (var nt = 0; nt <
|
|
22474
|
-
var et = (G ? z :
|
|
22475
|
-
if (at && !G && (tt = at === "greedy" ?
|
|
22473
|
+
for (var nt = 0; nt < Y.length; nt++) {
|
|
22474
|
+
var et = (G ? z : Y[nt]).length, tt = !1, mt = G ? Object.keys(Y[nt]).length === 0 : Y[nt].length === 0;
|
|
22475
|
+
if (at && !G && (tt = at === "greedy" ? Y[nt].join("").trim() === "" : Y[nt].length === 1 && Y[nt][0].length === 0), at === "greedy" && G) {
|
|
22476
22476
|
for (var Tt = [], lt = 0; lt < et; lt++) {
|
|
22477
22477
|
var wt = K ? z[lt] : lt;
|
|
22478
|
-
Tt.push(
|
|
22478
|
+
Tt.push(Y[nt][wt]);
|
|
22479
22479
|
}
|
|
22480
22480
|
tt = Tt.join("").trim() === "";
|
|
22481
22481
|
}
|
|
@@ -22483,16 +22483,16 @@ License: MIT
|
|
|
22483
22483
|
for (var yt = 0; yt < et; yt++) {
|
|
22484
22484
|
0 < yt && !mt && (it += C);
|
|
22485
22485
|
var ne = G && K ? z[yt] : yt;
|
|
22486
|
-
it += E(
|
|
22486
|
+
it += E(Y[nt][ne], yt);
|
|
22487
22487
|
}
|
|
22488
|
-
nt <
|
|
22488
|
+
nt < Y.length - 1 && (!at || 0 < et && !mt) && (it += B);
|
|
22489
22489
|
}
|
|
22490
22490
|
}
|
|
22491
22491
|
return it;
|
|
22492
22492
|
}
|
|
22493
|
-
function E(z,
|
|
22493
|
+
function E(z, Y) {
|
|
22494
22494
|
var at, it;
|
|
22495
|
-
return z == null ? "" : z.constructor === Date ? JSON.stringify(z).slice(1, 25) : (it = !1, V && typeof z == "string" && V.test(z) && (z = "'" + z, it = !0), at = z.toString().replace(q, W), (it = it || _ === !0 || typeof _ == "function" && _(z,
|
|
22495
|
+
return z == null ? "" : z.constructor === Date ? JSON.stringify(z).slice(1, 25) : (it = !1, V && typeof z == "string" && V.test(z) && (z = "'" + z, it = !0), at = z.toString().replace(q, W), (it = it || _ === !0 || typeof _ == "function" && _(z, Y) || Array.isArray(_) && _[Y] || ((G, K) => {
|
|
22496
22496
|
for (var J = 0; J < K.length; J++) if (-1 < G.indexOf(K[J])) return !0;
|
|
22497
22497
|
return !1;
|
|
22498
22498
|
})(at, c.BAD_DELIMITERS) || -1 < at.indexOf(C) || at.charAt(0) === " " || at.charAt(at.length - 1) === " ") ? L + at + L : at);
|
|
@@ -22658,7 +22658,7 @@ const HP = ["id"], BP = /* @__PURE__ */ he({
|
|
|
22658
22658
|
}, 8, ["data", "fields", "filename", "labels"])
|
|
22659
22659
|
]));
|
|
22660
22660
|
}
|
|
22661
|
-
}),
|
|
22661
|
+
}), YP = { class: "kong-ui-public-csv-export-modal" }, $P = {
|
|
22662
22662
|
key: 0,
|
|
22663
22663
|
class: "selected-range"
|
|
22664
22664
|
}, jP = {
|
|
@@ -22742,7 +22742,7 @@ const HP = ["id"], BP = /* @__PURE__ */ he({
|
|
|
22742
22742
|
a.value++;
|
|
22743
22743
|
}), (g, y) => {
|
|
22744
22744
|
const v = Ee("KSkeleton"), w = Ee("KEmptyState"), S = Ee("KTableData"), D = Ee("KTooltip"), k = Ee("KButton"), R = Ee("KModal");
|
|
22745
|
-
return Z(), ct("div",
|
|
22745
|
+
return Z(), ct("div", YP, [
|
|
22746
22746
|
Zt(R, {
|
|
22747
22747
|
class: "vitals-report",
|
|
22748
22748
|
"data-testid": "csv-export-modal",
|
|
@@ -22756,7 +22756,7 @@ const HP = ["id"], BP = /* @__PURE__ */ he({
|
|
|
22756
22756
|
var A;
|
|
22757
22757
|
return [
|
|
22758
22758
|
ut("div", null, [
|
|
22759
|
-
n.exportState.status === "success" && l.value ? (Z(), ct("div",
|
|
22759
|
+
n.exportState.status === "success" && l.value ? (Z(), ct("div", $P, [
|
|
22760
22760
|
ut("p", null, dt(n.modalDescription ? n.modalDescription : Q(e).t("csvExport.exportDescription")), 1),
|
|
22761
22761
|
ut("p", null, dt(Q(e).t("csvExport.exportTimeRange")) + ": " + dt(c.value), 1)
|
|
22762
22762
|
])) : Ft("", !0),
|
|
@@ -22803,7 +22803,7 @@ const HP = ["id"], BP = /* @__PURE__ */ he({
|
|
|
22803
22803
|
text: Q(e).t("csvExport.maximumRecordAmount", { value: Q(o1) })
|
|
22804
22804
|
}, {
|
|
22805
22805
|
default: Ht(() => [
|
|
22806
|
-
Zt(Q(
|
|
22806
|
+
Zt(Q(Ym), {
|
|
22807
22807
|
color: `var(--kui-color-text-neutral, ${Q(Lc)})`,
|
|
22808
22808
|
size: `var(--kui-icon-size-30, ${Q(pr)})`
|
|
22809
22809
|
}, null, 8, ["color", "size"])
|
|
@@ -23061,10 +23061,10 @@ const HP = ["id"], BP = /* @__PURE__ */ he({
|
|
|
23061
23061
|
], 8, GP)) : Ft("", !0)
|
|
23062
23062
|
]));
|
|
23063
23063
|
}
|
|
23064
|
-
}), hR = /* @__PURE__ */
|
|
23064
|
+
}), hR = /* @__PURE__ */ $e(KP, [["__scopeId", "data-v-ae8259b6"]]);
|
|
23065
23065
|
export {
|
|
23066
23066
|
lR as AnalyticsChart,
|
|
23067
|
-
|
|
23067
|
+
Ye as ChartLegendPosition,
|
|
23068
23068
|
dR as CsvExportModal,
|
|
23069
23069
|
nR as DECIMAL_DISPLAY,
|
|
23070
23070
|
OT as FONT_SIZE_REGULAR,
|