@kong-ui-public/analytics-chart 5.0.6 → 5.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vitals-chart.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var cg = Object.defineProperty;
|
|
2
2
|
var ug = (n, t, e) => t in n ? cg(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
-
var
|
|
3
|
+
var C = (n, t, e) => ug(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import { computed as H, shallowRef as Ja, onMounted as wr, onBeforeUnmount as to, watch as Me, defineComponent as oe, ref as st, openBlock as Z, createElementBlock as dt, normalizeClass as Yn, normalizeStyle as $n, createElementVNode as ut, toDisplayString as ct, createBlock as se, unref as lt, createCommentVNode as Vt, Fragment as Zi, renderList as eo, useCssVars as dg, inject as nr, toRef as vt, reactive as no, onUnmounted as Xu, createVNode as Gt, version as hg, toRaw as _a, nextTick as fg, h as wa, isProxy as Gu, renderSlot as io, createTextVNode as Oe, withCtx as Wt, resolveComponent as Fe, withKeys as gg, withModifiers as pg, provide as ll, createSlots as mg } from "vue";
|
|
5
5
|
import { createI18n as bg, i18nTComponent as yg } from "@kong-ui-public/i18n";
|
|
6
6
|
import { DragIcon as xg, WarningIcon as _g } from "@kong/icons";
|
|
@@ -2089,9 +2089,9 @@ function wd(n, t, e) {
|
|
|
2089
2089
|
];
|
|
2090
2090
|
const { property: i, start: s, end: r } = e, a = t.length, { compare: o, between: l, normalize: c } = _d(i), { start: u, end: d, loop: h, style: f } = gm(n, t, e), g = [];
|
|
2091
2091
|
let m = !1, y = null, _, w, M;
|
|
2092
|
-
const T = () => l(s, M, _) && o(s, M) !== 0, k = () => o(r, _) === 0 || l(r, M, _),
|
|
2092
|
+
const T = () => l(s, M, _) && o(s, M) !== 0, k = () => o(r, _) === 0 || l(r, M, _), O = () => m || T(), D = () => !m || k();
|
|
2093
2093
|
for (let b = u, x = u; b <= d; ++b)
|
|
2094
|
-
w = t[b % a], !w.skip && (_ = c(w[i]), _ !== M && (m = l(_, s, r), y === null &&
|
|
2094
|
+
w = t[b % a], !w.skip && (_ = c(w[i]), _ !== M && (m = l(_, s, r), y === null && O() && (y = o(_, s) === 0 ? b : x), y !== null && D() && (g.push(Tl({
|
|
2095
2095
|
start: y,
|
|
2096
2096
|
end: b,
|
|
2097
2097
|
loop: h,
|
|
@@ -2965,7 +2965,7 @@ class ze {
|
|
|
2965
2965
|
]);
|
|
2966
2966
|
}
|
|
2967
2967
|
}
|
|
2968
|
-
|
|
2968
|
+
C(ze, "defaults", {}), C(ze, "datasetElementType", null), C(ze, "dataElementType", null);
|
|
2969
2969
|
function Lm(n, t) {
|
|
2970
2970
|
if (!n._cache.$bar) {
|
|
2971
2971
|
const e = n.getMatchingVisibleMetas(t);
|
|
@@ -3215,7 +3215,7 @@ class Ui extends ze {
|
|
|
3215
3215
|
this.getParsed(r)[e.axis] !== null && !i[r].hidden && i[r].draw(this._ctx);
|
|
3216
3216
|
}
|
|
3217
3217
|
}
|
|
3218
|
-
|
|
3218
|
+
C(Ui, "id", "bar"), C(Ui, "defaults", {
|
|
3219
3219
|
datasetElementType: !1,
|
|
3220
3220
|
dataElementType: "bar",
|
|
3221
3221
|
categoryPercentage: 0.8,
|
|
@@ -3233,7 +3233,7 @@ P(Ui, "id", "bar"), P(Ui, "defaults", {
|
|
|
3233
3233
|
]
|
|
3234
3234
|
}
|
|
3235
3235
|
}
|
|
3236
|
-
}),
|
|
3236
|
+
}), C(Ui, "overrides", {
|
|
3237
3237
|
scales: {
|
|
3238
3238
|
_index_: {
|
|
3239
3239
|
type: "category",
|
|
@@ -3309,7 +3309,7 @@ class Xs extends ze {
|
|
|
3309
3309
|
return e !== "active" && (s.radius = 0), s.radius += Q(i && i._custom, r), s;
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
|
-
|
|
3312
|
+
C(Xs, "id", "bubble"), C(Xs, "defaults", {
|
|
3313
3313
|
datasetElementType: !1,
|
|
3314
3314
|
dataElementType: "point",
|
|
3315
3315
|
animations: {
|
|
@@ -3323,7 +3323,7 @@ P(Xs, "id", "bubble"), P(Xs, "defaults", {
|
|
|
3323
3323
|
]
|
|
3324
3324
|
}
|
|
3325
3325
|
}
|
|
3326
|
-
}),
|
|
3326
|
+
}), C(Xs, "overrides", {
|
|
3327
3327
|
scales: {
|
|
3328
3328
|
x: {
|
|
3329
3329
|
type: "linear"
|
|
@@ -3469,7 +3469,7 @@ class yn extends ze {
|
|
|
3469
3469
|
return this._getRingWeightOffset(this.chart.data.datasets.length) || 1;
|
|
3470
3470
|
}
|
|
3471
3471
|
}
|
|
3472
|
-
|
|
3472
|
+
C(yn, "id", "doughnut"), C(yn, "defaults", {
|
|
3473
3473
|
datasetElementType: !1,
|
|
3474
3474
|
dataElementType: "arc",
|
|
3475
3475
|
animation: {
|
|
@@ -3499,10 +3499,10 @@ P(yn, "id", "doughnut"), P(yn, "defaults", {
|
|
|
3499
3499
|
radius: "100%",
|
|
3500
3500
|
spacing: 0,
|
|
3501
3501
|
indexAxis: "r"
|
|
3502
|
-
}),
|
|
3502
|
+
}), C(yn, "descriptors", {
|
|
3503
3503
|
_scriptable: (t) => t !== "spacing",
|
|
3504
3504
|
_indexable: (t) => t !== "spacing" && !t.startsWith("borderDash") && !t.startsWith("hoverBorderDash")
|
|
3505
|
-
}),
|
|
3505
|
+
}), C(yn, "overrides", {
|
|
3506
3506
|
aspectRatio: 1,
|
|
3507
3507
|
plugins: {
|
|
3508
3508
|
legend: {
|
|
@@ -3552,13 +3552,13 @@ class Vi extends ze {
|
|
|
3552
3552
|
const r = s === "reset", { iScale: a, vScale: o, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: d } = this._getSharedOptions(e, s), h = a.axis, f = o.axis, { spanGaps: g, segment: m } = this.options, y = Dn(g) ? g : Number.POSITIVE_INFINITY, _ = this.chart._animationsDisabled || r || s === "none", w = e + i, M = t.length;
|
|
3553
3553
|
let T = e > 0 && this.getParsed(e - 1);
|
|
3554
3554
|
for (let k = 0; k < M; ++k) {
|
|
3555
|
-
const
|
|
3555
|
+
const O = t[k], D = _ ? O : {};
|
|
3556
3556
|
if (k < e || k >= w) {
|
|
3557
|
-
|
|
3557
|
+
D.skip = !0;
|
|
3558
3558
|
continue;
|
|
3559
3559
|
}
|
|
3560
|
-
const b = this.getParsed(k), x = J(b[f]), S =
|
|
3561
|
-
|
|
3560
|
+
const b = this.getParsed(k), x = J(b[f]), S = D[h] = a.getPixelForValue(b[h], k), P = D[f] = r || x ? o.getBasePixel() : o.getPixelForValue(l ? this.applyStack(o, b, l) : b[f], k);
|
|
3561
|
+
D.skip = isNaN(S) || isNaN(P) || x, D.stop = k > 0 && Math.abs(b[h] - T[h]) > y, m && (D.parsed = b, D.raw = c.data[k]), d && (D.options = u || this.resolveDataElementOptions(k, O.active ? "active" : s)), _ || this.updateElement(O, k, D, s), T = b;
|
|
3562
3562
|
}
|
|
3563
3563
|
}
|
|
3564
3564
|
getMaxOverflow() {
|
|
@@ -3573,12 +3573,12 @@ class Vi extends ze {
|
|
|
3573
3573
|
t.dataset.updateControlPoints(this.chart.chartArea, t.iScale.axis), super.draw();
|
|
3574
3574
|
}
|
|
3575
3575
|
}
|
|
3576
|
-
|
|
3576
|
+
C(Vi, "id", "line"), C(Vi, "defaults", {
|
|
3577
3577
|
datasetElementType: "line",
|
|
3578
3578
|
dataElementType: "point",
|
|
3579
3579
|
showLine: !0,
|
|
3580
3580
|
spanGaps: !1
|
|
3581
|
-
}),
|
|
3581
|
+
}), C(Vi, "overrides", {
|
|
3582
3582
|
scales: {
|
|
3583
3583
|
_index_: {
|
|
3584
3584
|
type: "category"
|
|
@@ -3653,7 +3653,7 @@ class Xi extends ze {
|
|
|
3653
3653
|
return this.chart.getDataVisibility(t) ? jt(this.resolveDataElementOptions(t, e).angle || i) : 0;
|
|
3654
3654
|
}
|
|
3655
3655
|
}
|
|
3656
|
-
|
|
3656
|
+
C(Xi, "id", "polarArea"), C(Xi, "defaults", {
|
|
3657
3657
|
dataElementType: "arc",
|
|
3658
3658
|
animation: {
|
|
3659
3659
|
animateRotate: !0,
|
|
@@ -3674,7 +3674,7 @@ P(Xi, "id", "polarArea"), P(Xi, "defaults", {
|
|
|
3674
3674
|
},
|
|
3675
3675
|
indexAxis: "r",
|
|
3676
3676
|
startAngle: 0
|
|
3677
|
-
}),
|
|
3677
|
+
}), C(Xi, "overrides", {
|
|
3678
3678
|
aspectRatio: 1,
|
|
3679
3679
|
plugins: {
|
|
3680
3680
|
legend: {
|
|
@@ -3724,7 +3724,7 @@ P(Xi, "id", "polarArea"), P(Xi, "defaults", {
|
|
|
3724
3724
|
});
|
|
3725
3725
|
class ka extends yn {
|
|
3726
3726
|
}
|
|
3727
|
-
|
|
3727
|
+
C(ka, "id", "pie"), C(ka, "defaults", {
|
|
3728
3728
|
cutout: 0,
|
|
3729
3729
|
rotation: 0,
|
|
3730
3730
|
circumference: 360,
|
|
@@ -3769,7 +3769,7 @@ class Gs extends ze {
|
|
|
3769
3769
|
}
|
|
3770
3770
|
}
|
|
3771
3771
|
}
|
|
3772
|
-
|
|
3772
|
+
C(Gs, "id", "radar"), C(Gs, "defaults", {
|
|
3773
3773
|
datasetElementType: "line",
|
|
3774
3774
|
dataElementType: "point",
|
|
3775
3775
|
indexAxis: "r",
|
|
@@ -3779,7 +3779,7 @@ P(Gs, "id", "radar"), P(Gs, "defaults", {
|
|
|
3779
3779
|
fill: "start"
|
|
3780
3780
|
}
|
|
3781
3781
|
}
|
|
3782
|
-
}),
|
|
3782
|
+
}), C(Gs, "overrides", {
|
|
3783
3783
|
aspectRatio: 1,
|
|
3784
3784
|
scales: {
|
|
3785
3785
|
r: {
|
|
@@ -3818,8 +3818,8 @@ class Ks extends ze {
|
|
|
3818
3818
|
const r = s === "reset", { iScale: a, vScale: o, _stacked: l, _dataset: c } = this._cachedMeta, u = this.resolveDataElementOptions(e, s), d = this.getSharedOptions(u), h = this.includeOptions(s, d), f = a.axis, g = o.axis, { spanGaps: m, segment: y } = this.options, _ = Dn(m) ? m : Number.POSITIVE_INFINITY, w = this.chart._animationsDisabled || r || s === "none";
|
|
3819
3819
|
let M = e > 0 && this.getParsed(e - 1);
|
|
3820
3820
|
for (let T = e; T < e + i; ++T) {
|
|
3821
|
-
const k = t[T],
|
|
3822
|
-
|
|
3821
|
+
const k = t[T], O = this.getParsed(T), D = w ? k : {}, b = J(O[g]), x = D[f] = a.getPixelForValue(O[f], T), S = D[g] = r || b ? o.getBasePixel() : o.getPixelForValue(l ? this.applyStack(o, O, l) : O[g], T);
|
|
3822
|
+
D.skip = isNaN(x) || isNaN(S) || b, D.stop = T > 0 && Math.abs(O[f] - M[f]) > _, y && (D.parsed = O, D.raw = c.data[T]), h && (D.options = d || this.resolveDataElementOptions(T, k.active ? "active" : s)), w || this.updateElement(k, T, D, s), M = O;
|
|
3823
3823
|
}
|
|
3824
3824
|
this.updateSharedOptions(d, s, u);
|
|
3825
3825
|
}
|
|
@@ -3838,12 +3838,12 @@ class Ks extends ze {
|
|
|
3838
3838
|
return Math.max(s, r, a) / 2;
|
|
3839
3839
|
}
|
|
3840
3840
|
}
|
|
3841
|
-
|
|
3841
|
+
C(Ks, "id", "scatter"), C(Ks, "defaults", {
|
|
3842
3842
|
datasetElementType: !1,
|
|
3843
3843
|
dataElementType: "point",
|
|
3844
3844
|
showLine: !1,
|
|
3845
3845
|
fill: !1
|
|
3846
|
-
}),
|
|
3846
|
+
}), C(Ks, "overrides", {
|
|
3847
3847
|
interaction: {
|
|
3848
3848
|
mode: "point"
|
|
3849
3849
|
},
|
|
@@ -3872,7 +3872,7 @@ function Nn() {
|
|
|
3872
3872
|
}
|
|
3873
3873
|
class _o {
|
|
3874
3874
|
constructor(t) {
|
|
3875
|
-
|
|
3875
|
+
C(this, "options");
|
|
3876
3876
|
this.options = t || {};
|
|
3877
3877
|
}
|
|
3878
3878
|
/**
|
|
@@ -4499,11 +4499,11 @@ function mb(n) {
|
|
|
4499
4499
|
}
|
|
4500
4500
|
class Qt {
|
|
4501
4501
|
constructor() {
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4502
|
+
C(this, "x");
|
|
4503
|
+
C(this, "y");
|
|
4504
|
+
C(this, "active", !1);
|
|
4505
|
+
C(this, "options");
|
|
4506
|
+
C(this, "$animations");
|
|
4507
4507
|
}
|
|
4508
4508
|
tooltipPosition(t) {
|
|
4509
4509
|
const { x: e, y: i } = this.getProps([
|
|
@@ -4528,7 +4528,7 @@ class Qt {
|
|
|
4528
4528
|
}), s;
|
|
4529
4529
|
}
|
|
4530
4530
|
}
|
|
4531
|
-
|
|
4531
|
+
C(Qt, "defaults", {}), C(Qt, "defaultRoutes");
|
|
4532
4532
|
function bb(n, t) {
|
|
4533
4533
|
const e = n.options.ticks, i = yb(n), s = Math.min(e.maxTicksLimit || i, i), r = e.major.enabled ? _b(t) : [], a = r.length, o = r[0], l = r[a - 1], c = [];
|
|
4534
4534
|
if (a > s)
|
|
@@ -4909,15 +4909,15 @@ class Xn extends Qt {
|
|
|
4909
4909
|
a.push(M), o.push(T), c = Math.max(M, c), u = Math.max(T, u);
|
|
4910
4910
|
}
|
|
4911
4911
|
kb(r, e);
|
|
4912
|
-
const
|
|
4912
|
+
const O = a.indexOf(c), D = o.indexOf(u), b = (x) => ({
|
|
4913
4913
|
width: a[x] || 0,
|
|
4914
4914
|
height: o[x] || 0
|
|
4915
4915
|
});
|
|
4916
4916
|
return {
|
|
4917
4917
|
first: b(0),
|
|
4918
4918
|
last: b(e - 1),
|
|
4919
|
-
widest: b(
|
|
4920
|
-
highest: b(
|
|
4919
|
+
widest: b(O),
|
|
4920
|
+
highest: b(D),
|
|
4921
4921
|
widths: a,
|
|
4922
4922
|
heights: o
|
|
4923
4923
|
};
|
|
@@ -4970,15 +4970,15 @@ class Xn extends Qt {
|
|
|
4970
4970
|
const e = this.axis, i = this.chart, s = this.options, { grid: r, position: a, border: o } = s, l = r.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), h = Di(r), f = [], g = o.setContext(this.getContext()), m = g.display ? g.width : 0, y = m / 2, _ = function(q) {
|
|
4971
4971
|
return In(i, q, m);
|
|
4972
4972
|
};
|
|
4973
|
-
let w, M, T, k,
|
|
4973
|
+
let w, M, T, k, O, D, b, x, S, P, E, N;
|
|
4974
4974
|
if (a === "top")
|
|
4975
|
-
w = _(this.bottom),
|
|
4975
|
+
w = _(this.bottom), D = this.bottom - h, x = w - y, P = _(t.top) + y, N = t.bottom;
|
|
4976
4976
|
else if (a === "bottom")
|
|
4977
|
-
w = _(this.top),
|
|
4977
|
+
w = _(this.top), P = t.top, N = _(t.bottom) - y, D = w + y, x = this.top + h;
|
|
4978
4978
|
else if (a === "left")
|
|
4979
|
-
w = _(this.right),
|
|
4979
|
+
w = _(this.right), O = this.right - h, b = w - y, S = _(t.left) + y, E = t.right;
|
|
4980
4980
|
else if (a === "right")
|
|
4981
|
-
w = _(this.left), S = t.left,
|
|
4981
|
+
w = _(this.left), S = t.left, E = _(t.right) - y, O = w + y, b = this.left + h;
|
|
4982
4982
|
else if (e === "x") {
|
|
4983
4983
|
if (a === "center")
|
|
4984
4984
|
w = _((t.top + t.bottom) / 2 + 0.5);
|
|
@@ -4986,7 +4986,7 @@ class Xn extends Qt {
|
|
|
4986
4986
|
const q = Object.keys(a)[0], I = a[q];
|
|
4987
4987
|
w = _(this.chart.scales[q].getPixelForValue(I));
|
|
4988
4988
|
}
|
|
4989
|
-
|
|
4989
|
+
P = t.top, N = t.bottom, D = w + y, x = D + h;
|
|
4990
4990
|
} else if (e === "y") {
|
|
4991
4991
|
if (a === "center")
|
|
4992
4992
|
w = _((t.left + t.right) / 2);
|
|
@@ -4994,19 +4994,19 @@ class Xn extends Qt {
|
|
|
4994
4994
|
const q = Object.keys(a)[0], I = a[q];
|
|
4995
4995
|
w = _(this.chart.scales[q].getPixelForValue(I));
|
|
4996
4996
|
}
|
|
4997
|
-
|
|
4997
|
+
O = w - y, b = O - h, S = t.left, E = t.right;
|
|
4998
4998
|
}
|
|
4999
4999
|
const $ = Q(s.ticks.maxTicksLimit, d), G = Math.max(1, Math.ceil(d / $));
|
|
5000
5000
|
for (M = 0; M < d; M += G) {
|
|
5001
5001
|
const q = this.getContext(M), I = r.setContext(q), rt = o.setContext(q), F = I.lineWidth, It = I.color, St = rt.dash || [], W = rt.dashOffset, R = I.tickWidth, z = I.tickColor, j = I.tickBorderDash || [], V = I.tickBorderDashOffset;
|
|
5002
|
-
T = Sb(this, M, l), T !== void 0 && (k = In(i, T, F), c ?
|
|
5003
|
-
tx1:
|
|
5004
|
-
ty1:
|
|
5002
|
+
T = Sb(this, M, l), T !== void 0 && (k = In(i, T, F), c ? O = b = S = E = k : D = x = P = N = k, f.push({
|
|
5003
|
+
tx1: O,
|
|
5004
|
+
ty1: D,
|
|
5005
5005
|
tx2: b,
|
|
5006
5006
|
ty2: x,
|
|
5007
5007
|
x1: S,
|
|
5008
|
-
y1:
|
|
5009
|
-
x2:
|
|
5008
|
+
y1: P,
|
|
5009
|
+
x2: E,
|
|
5010
5010
|
y2: N,
|
|
5011
5011
|
width: F,
|
|
5012
5012
|
color: It,
|
|
@@ -5022,25 +5022,25 @@ class Xn extends Qt {
|
|
|
5022
5022
|
}
|
|
5023
5023
|
_computeLabelItems(t) {
|
|
5024
5024
|
const e = this.axis, i = this.options, { position: s, ticks: r } = i, a = this.isHorizontal(), o = this.ticks, { align: l, crossAlign: c, padding: u, mirror: d } = r, h = Di(i.grid), f = h + u, g = d ? -u : f, m = -jt(this.labelRotation), y = [];
|
|
5025
|
-
let _, w, M, T, k,
|
|
5025
|
+
let _, w, M, T, k, O, D, b, x, S, P, E, N = "middle";
|
|
5026
5026
|
if (s === "top")
|
|
5027
|
-
|
|
5027
|
+
O = this.bottom - g, D = this._getXAxisLabelAlignment();
|
|
5028
5028
|
else if (s === "bottom")
|
|
5029
|
-
|
|
5029
|
+
O = this.top + g, D = this._getXAxisLabelAlignment();
|
|
5030
5030
|
else if (s === "left") {
|
|
5031
5031
|
const G = this._getYAxisLabelAlignment(h);
|
|
5032
|
-
|
|
5032
|
+
D = G.textAlign, k = G.x;
|
|
5033
5033
|
} else if (s === "right") {
|
|
5034
5034
|
const G = this._getYAxisLabelAlignment(h);
|
|
5035
|
-
|
|
5035
|
+
D = G.textAlign, k = G.x;
|
|
5036
5036
|
} else if (e === "x") {
|
|
5037
5037
|
if (s === "center")
|
|
5038
|
-
|
|
5038
|
+
O = (t.top + t.bottom) / 2 + f;
|
|
5039
5039
|
else if (it(s)) {
|
|
5040
5040
|
const G = Object.keys(s)[0], q = s[G];
|
|
5041
|
-
|
|
5041
|
+
O = this.chart.scales[G].getPixelForValue(q) + f;
|
|
5042
5042
|
}
|
|
5043
|
-
|
|
5043
|
+
D = this._getXAxisLabelAlignment();
|
|
5044
5044
|
} else if (e === "y") {
|
|
5045
5045
|
if (s === "center")
|
|
5046
5046
|
k = (t.left + t.right) / 2 - f;
|
|
@@ -5048,21 +5048,21 @@ class Xn extends Qt {
|
|
|
5048
5048
|
const G = Object.keys(s)[0], q = s[G];
|
|
5049
5049
|
k = this.chart.scales[G].getPixelForValue(q);
|
|
5050
5050
|
}
|
|
5051
|
-
|
|
5051
|
+
D = this._getYAxisLabelAlignment(h).textAlign;
|
|
5052
5052
|
}
|
|
5053
5053
|
e === "y" && (l === "start" ? N = "top" : l === "end" && (N = "bottom"));
|
|
5054
5054
|
const $ = this._getLabelSizes();
|
|
5055
5055
|
for (_ = 0, w = o.length; _ < w; ++_) {
|
|
5056
5056
|
M = o[_], T = M.label;
|
|
5057
5057
|
const G = r.setContext(this.getContext(_));
|
|
5058
|
-
b = this.getPixelForTick(_) + r.labelOffset, x = this._resolveTickFontOptions(_), S = x.lineHeight,
|
|
5059
|
-
const q =
|
|
5060
|
-
let It =
|
|
5061
|
-
a ? (k = b,
|
|
5058
|
+
b = this.getPixelForTick(_) + r.labelOffset, x = this._resolveTickFontOptions(_), S = x.lineHeight, P = ft(T) ? T.length : 1;
|
|
5059
|
+
const q = P / 2, I = G.color, rt = G.textStrokeColor, F = G.textStrokeWidth;
|
|
5060
|
+
let It = D;
|
|
5061
|
+
a ? (k = b, D === "inner" && (_ === w - 1 ? It = this.options.reverse ? "left" : "right" : _ === 0 ? It = this.options.reverse ? "right" : "left" : It = "center"), s === "top" ? c === "near" || m !== 0 ? E = -P * S + S / 2 : c === "center" ? E = -$.highest.height / 2 - q * S + S : E = -$.highest.height + S / 2 : c === "near" || m !== 0 ? E = S / 2 : c === "center" ? E = $.highest.height / 2 - q * S : E = $.highest.height - P * S, d && (E *= -1), m !== 0 && !G.showLabelBackdrop && (k += S / 2 * Math.sin(m))) : (O = b, E = (1 - P) * S / 2);
|
|
5062
5062
|
let St;
|
|
5063
5063
|
if (G.showLabelBackdrop) {
|
|
5064
5064
|
const W = $t(G.backdropPadding), R = $.heights[_], z = $.widths[_];
|
|
5065
|
-
let j =
|
|
5065
|
+
let j = E - W.top, V = 0 - W.left;
|
|
5066
5066
|
switch (N) {
|
|
5067
5067
|
case "middle":
|
|
5068
5068
|
j -= R / 2;
|
|
@@ -5071,7 +5071,7 @@ class Xn extends Qt {
|
|
|
5071
5071
|
j -= R;
|
|
5072
5072
|
break;
|
|
5073
5073
|
}
|
|
5074
|
-
switch (
|
|
5074
|
+
switch (D) {
|
|
5075
5075
|
case "center":
|
|
5076
5076
|
V -= z / 2;
|
|
5077
5077
|
break;
|
|
@@ -5093,7 +5093,7 @@ class Xn extends Qt {
|
|
|
5093
5093
|
y.push({
|
|
5094
5094
|
label: T,
|
|
5095
5095
|
font: x,
|
|
5096
|
-
textOffset:
|
|
5096
|
+
textOffset: E,
|
|
5097
5097
|
options: {
|
|
5098
5098
|
rotation: m,
|
|
5099
5099
|
color: I,
|
|
@@ -5103,7 +5103,7 @@ class Xn extends Qt {
|
|
|
5103
5103
|
textBaseline: N,
|
|
5104
5104
|
translation: [
|
|
5105
5105
|
k,
|
|
5106
|
-
|
|
5106
|
+
O
|
|
5107
5107
|
],
|
|
5108
5108
|
backdrop: St
|
|
5109
5109
|
}
|
|
@@ -6270,7 +6270,7 @@ let Ee = (fn = class {
|
|
|
6270
6270
|
const r = this.options.hover;
|
|
6271
6271
|
return this.getElementsAtEventForMode(t, r.mode, r, s);
|
|
6272
6272
|
}
|
|
6273
|
-
},
|
|
6273
|
+
}, C(fn, "defaults", Lt), C(fn, "instances", Qs), C(fn, "overrides", qn), C(fn, "registry", Be), C(fn, "version", Xb), C(fn, "getChart", ic), fn);
|
|
6274
6274
|
function sc() {
|
|
6275
6275
|
return xt(Ee.instances, (n) => n._plugins.invalidate());
|
|
6276
6276
|
}
|
|
@@ -6313,26 +6313,26 @@ function ur(n, t, e, i, s, r) {
|
|
|
6313
6313
|
const G = u > 0 ? u - i : 0, q = d > 0 ? d - i : 0, I = (G + q) / 2, rt = I !== 0 ? g * I / (I + i) : g;
|
|
6314
6314
|
f = (g - rt) / 2;
|
|
6315
6315
|
}
|
|
6316
|
-
const m = Math.max(1e-3, g * d - e / ot) / d, y = (g - m) / 2, _ = l + y + f, w = s - y - f, { outerStart: M, outerEnd: T, innerStart: k, innerEnd:
|
|
6316
|
+
const m = Math.max(1e-3, g * d - e / ot) / d, y = (g - m) / 2, _ = l + y + f, w = s - y - f, { outerStart: M, outerEnd: T, innerStart: k, innerEnd: O } = ny(t, h, d, w - _), D = d - M, b = d - T, x = _ + M / D, S = w - T / b, P = h + k, E = h + O, N = _ + k / P, $ = w - O / E;
|
|
6317
6317
|
if (n.beginPath(), r) {
|
|
6318
6318
|
const G = (x + S) / 2;
|
|
6319
6319
|
if (n.arc(a, o, d, x, G), n.arc(a, o, d, G, S), T > 0) {
|
|
6320
6320
|
const F = ei(b, S, a, o);
|
|
6321
6321
|
n.arc(F.x, F.y, T, S, w + Tt);
|
|
6322
6322
|
}
|
|
6323
|
-
const q = ei(
|
|
6324
|
-
if (n.lineTo(q.x, q.y),
|
|
6325
|
-
const F = ei(
|
|
6326
|
-
n.arc(F.x, F.y,
|
|
6323
|
+
const q = ei(E, w, a, o);
|
|
6324
|
+
if (n.lineTo(q.x, q.y), O > 0) {
|
|
6325
|
+
const F = ei(E, $, a, o);
|
|
6326
|
+
n.arc(F.x, F.y, O, w + Tt, $ + Math.PI);
|
|
6327
6327
|
}
|
|
6328
|
-
const I = (w -
|
|
6329
|
-
if (n.arc(a, o, h, w -
|
|
6330
|
-
const F = ei(
|
|
6328
|
+
const I = (w - O / h + (_ + k / h)) / 2;
|
|
6329
|
+
if (n.arc(a, o, h, w - O / h, I, !0), n.arc(a, o, h, I, _ + k / h, !0), k > 0) {
|
|
6330
|
+
const F = ei(P, N, a, o);
|
|
6331
6331
|
n.arc(F.x, F.y, k, N + Math.PI, _ - Tt);
|
|
6332
6332
|
}
|
|
6333
|
-
const rt = ei(
|
|
6333
|
+
const rt = ei(D, _, a, o);
|
|
6334
6334
|
if (n.lineTo(rt.x, rt.y), M > 0) {
|
|
6335
|
-
const F = ei(
|
|
6335
|
+
const F = ei(D, x, a, o);
|
|
6336
6336
|
n.arc(F.x, F.y, M, _ - Tt, x);
|
|
6337
6337
|
}
|
|
6338
6338
|
} else {
|
|
@@ -6372,13 +6372,13 @@ function sy(n, t, e, i, s) {
|
|
|
6372
6372
|
class Fi extends Qt {
|
|
6373
6373
|
constructor(e) {
|
|
6374
6374
|
super();
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6375
|
+
C(this, "circumference");
|
|
6376
|
+
C(this, "endAngle");
|
|
6377
|
+
C(this, "fullCircles");
|
|
6378
|
+
C(this, "innerRadius");
|
|
6379
|
+
C(this, "outerRadius");
|
|
6380
|
+
C(this, "pixelMargin");
|
|
6381
|
+
C(this, "startAngle");
|
|
6382
6382
|
this.options = void 0, this.circumference = void 0, this.startAngle = void 0, this.endAngle = void 0, this.innerRadius = void 0, this.outerRadius = void 0, this.pixelMargin = 0, this.fullCircles = 0, e && Object.assign(this, e);
|
|
6383
6383
|
}
|
|
6384
6384
|
inRange(e, i, s) {
|
|
@@ -6425,7 +6425,7 @@ class Fi extends Qt {
|
|
|
6425
6425
|
e.fillStyle = i.backgroundColor, e.strokeStyle = i.borderColor, iy(e, this, u, a, o), sy(e, this, u, a, o), e.restore();
|
|
6426
6426
|
}
|
|
6427
6427
|
}
|
|
6428
|
-
|
|
6428
|
+
C(Fi, "id", "arc"), C(Fi, "defaults", {
|
|
6429
6429
|
borderAlign: "center",
|
|
6430
6430
|
borderColor: "#fff",
|
|
6431
6431
|
borderDash: [],
|
|
@@ -6437,9 +6437,9 @@ P(Fi, "id", "arc"), P(Fi, "defaults", {
|
|
|
6437
6437
|
spacing: 0,
|
|
6438
6438
|
angle: void 0,
|
|
6439
6439
|
circular: !0
|
|
6440
|
-
}),
|
|
6440
|
+
}), C(Fi, "defaultRoutes", {
|
|
6441
6441
|
backgroundColor: "backgroundColor"
|
|
6442
|
-
}),
|
|
6442
|
+
}), C(Fi, "descriptors", {
|
|
6443
6443
|
_scriptable: !0,
|
|
6444
6444
|
_indexable: (e) => e !== "borderDash"
|
|
6445
6445
|
});
|
|
@@ -6477,8 +6477,8 @@ function ly(n, t, e, i) {
|
|
|
6477
6477
|
for (l && (f = s[w(0)], n.moveTo(f.x, f.y)), h = 0; h <= o; ++h) {
|
|
6478
6478
|
if (f = s[w(h)], f.skip)
|
|
6479
6479
|
continue;
|
|
6480
|
-
const T = f.x, k = f.y,
|
|
6481
|
-
|
|
6480
|
+
const T = f.x, k = f.y, O = T | 0;
|
|
6481
|
+
O === g ? (k < m ? m = k : k > y && (y = k), u = (d * u + T) / ++d) : (M(), n.lineTo(T, k), g = O, d = 0, m = y = k), _ = k;
|
|
6482
6482
|
}
|
|
6483
6483
|
M();
|
|
6484
6484
|
}
|
|
@@ -6573,7 +6573,7 @@ class xn extends Qt {
|
|
|
6573
6573
|
(this.points || []).length && r.borderWidth && (t.save(), fy(t, this, i, s), t.restore()), this.animated && (this._pointsUpdated = !1, this._path = void 0);
|
|
6574
6574
|
}
|
|
6575
6575
|
}
|
|
6576
|
-
|
|
6576
|
+
C(xn, "id", "line"), C(xn, "defaults", {
|
|
6577
6577
|
borderCapStyle: "butt",
|
|
6578
6578
|
borderDash: [],
|
|
6579
6579
|
borderDashOffset: 0,
|
|
@@ -6585,10 +6585,10 @@ P(xn, "id", "line"), P(xn, "defaults", {
|
|
|
6585
6585
|
spanGaps: !1,
|
|
6586
6586
|
stepped: !1,
|
|
6587
6587
|
tension: 0
|
|
6588
|
-
}),
|
|
6588
|
+
}), C(xn, "defaultRoutes", {
|
|
6589
6589
|
backgroundColor: "backgroundColor",
|
|
6590
6590
|
borderColor: "borderColor"
|
|
6591
|
-
}),
|
|
6591
|
+
}), C(xn, "descriptors", {
|
|
6592
6592
|
_scriptable: !0,
|
|
6593
6593
|
_indexable: (t) => t !== "borderDash" && t !== "fill"
|
|
6594
6594
|
});
|
|
@@ -6601,9 +6601,9 @@ function rc(n, t, e, i) {
|
|
|
6601
6601
|
class Js extends Qt {
|
|
6602
6602
|
constructor(e) {
|
|
6603
6603
|
super();
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6604
|
+
C(this, "parsed");
|
|
6605
|
+
C(this, "skip");
|
|
6606
|
+
C(this, "stop");
|
|
6607
6607
|
this.options = void 0, this.parsed = void 0, this.skip = void 0, this.stop = void 0, e && Object.assign(this, e);
|
|
6608
6608
|
}
|
|
6609
6609
|
inRange(e, i, s) {
|
|
@@ -6645,10 +6645,10 @@ class Js extends Qt {
|
|
|
6645
6645
|
return e.radius + e.hitRadius;
|
|
6646
6646
|
}
|
|
6647
6647
|
}
|
|
6648
|
-
|
|
6648
|
+
C(Js, "id", "point"), /**
|
|
6649
6649
|
* @type {any}
|
|
6650
6650
|
*/
|
|
6651
|
-
|
|
6651
|
+
C(Js, "defaults", {
|
|
6652
6652
|
borderWidth: 1,
|
|
6653
6653
|
hitRadius: 1,
|
|
6654
6654
|
hoverBorderWidth: 1,
|
|
@@ -6659,7 +6659,7 @@ P(Js, "defaults", {
|
|
|
6659
6659
|
}), /**
|
|
6660
6660
|
* @type {any}
|
|
6661
6661
|
*/
|
|
6662
|
-
|
|
6662
|
+
C(Js, "defaultRoutes", {
|
|
6663
6663
|
backgroundColor: "backgroundColor",
|
|
6664
6664
|
borderColor: "borderColor"
|
|
6665
6665
|
});
|
|
@@ -6779,13 +6779,13 @@ class tr extends Qt {
|
|
|
6779
6779
|
return t === "x" ? this.width / 2 : this.height / 2;
|
|
6780
6780
|
}
|
|
6781
6781
|
}
|
|
6782
|
-
|
|
6782
|
+
C(tr, "id", "bar"), C(tr, "defaults", {
|
|
6783
6783
|
borderSkipped: "start",
|
|
6784
6784
|
borderWidth: 0,
|
|
6785
6785
|
borderRadius: 0,
|
|
6786
6786
|
inflateAmount: "auto",
|
|
6787
6787
|
pointStyle: void 0
|
|
6788
|
-
}),
|
|
6788
|
+
}), C(tr, "defaultRoutes", {
|
|
6789
6789
|
backgroundColor: "backgroundColor",
|
|
6790
6790
|
borderColor: "borderColor"
|
|
6791
6791
|
});
|
|
@@ -6868,8 +6868,8 @@ function Dy(n, t, e, i, s) {
|
|
|
6868
6868
|
for (w = M; w < T; w++)
|
|
6869
6869
|
y += n[w].x, _ += n[w].y;
|
|
6870
6870
|
y /= k, _ /= k;
|
|
6871
|
-
const
|
|
6872
|
-
for (f = g = -1, w =
|
|
6871
|
+
const O = Math.floor(d * o) + 1 + t, D = Math.min(Math.floor((d + 1) * o) + 1, e) + t, { x: b, y: x } = n[u];
|
|
6872
|
+
for (f = g = -1, w = O; w < D; w++)
|
|
6873
6873
|
g = 0.5 * Math.abs((b - y) * (n[w].y - x) - (b - n[w].x) * (_ - x)), g > f && (f = g, h = n[w], m = w);
|
|
6874
6874
|
a[l++] = h, u = m;
|
|
6875
6875
|
}
|
|
@@ -6884,18 +6884,18 @@ function Ty(n, t, e, i) {
|
|
|
6884
6884
|
if (k === u)
|
|
6885
6885
|
c < g ? (g = c, d = a) : c > m && (m = c, h = a), s = (r * s + o.x) / ++r;
|
|
6886
6886
|
else {
|
|
6887
|
-
const
|
|
6887
|
+
const O = a - 1;
|
|
6888
6888
|
if (!J(d) && !J(h)) {
|
|
6889
|
-
const
|
|
6890
|
-
|
|
6891
|
-
...n[
|
|
6889
|
+
const D = Math.min(d, h), b = Math.max(d, h);
|
|
6890
|
+
D !== f && D !== O && y.push({
|
|
6891
|
+
...n[D],
|
|
6892
6892
|
x: s
|
|
6893
|
-
}), b !== f && b !==
|
|
6893
|
+
}), b !== f && b !== O && y.push({
|
|
6894
6894
|
...n[b],
|
|
6895
6895
|
x: s
|
|
6896
6896
|
});
|
|
6897
6897
|
}
|
|
6898
|
-
a > 0 &&
|
|
6898
|
+
a > 0 && O !== f && y.push(n[O]), y.push(o), u = k, r = 0, g = m = c, d = h = f = a;
|
|
6899
6899
|
}
|
|
6900
6900
|
}
|
|
6901
6901
|
return y;
|
|
@@ -7447,7 +7447,7 @@ class pc extends Qt {
|
|
|
7447
7447
|
const { options: t, columnSizes: e, lineWidths: i, ctx: s } = this, { align: r, labels: a } = t, o = Lt.color, l = li(t.rtl, this.left, this.width), c = Ct(a.font), { padding: u } = a, d = c.size, h = d / 2;
|
|
7448
7448
|
let f;
|
|
7449
7449
|
this.drawTitle(), s.textAlign = l.textAlign("left"), s.textBaseline = "middle", s.lineWidth = 0.5, s.font = c.string;
|
|
7450
|
-
const { boxWidth: g, boxHeight: m, itemHeight: y } = gc(a, d), _ = function(
|
|
7450
|
+
const { boxWidth: g, boxHeight: m, itemHeight: y } = gc(a, d), _ = function(O, D, b) {
|
|
7451
7451
|
if (isNaN(g) || g <= 0 || isNaN(m) || m < 0)
|
|
7452
7452
|
return;
|
|
7453
7453
|
s.save();
|
|
@@ -7458,21 +7458,21 @@ class pc extends Qt {
|
|
|
7458
7458
|
pointStyle: b.pointStyle,
|
|
7459
7459
|
rotation: b.rotation,
|
|
7460
7460
|
borderWidth: x
|
|
7461
|
-
},
|
|
7462
|
-
ud(s, S,
|
|
7461
|
+
}, P = l.xPlus(O, g / 2), E = D + h;
|
|
7462
|
+
ud(s, S, P, E, a.pointStyleWidth && g);
|
|
7463
7463
|
} else {
|
|
7464
|
-
const S =
|
|
7465
|
-
s.beginPath(), Object.values(
|
|
7466
|
-
x:
|
|
7464
|
+
const S = D + Math.max((d - m) / 2, 0), P = l.leftForLtr(O, g), E = vn(b.borderRadius);
|
|
7465
|
+
s.beginPath(), Object.values(E).some((N) => N !== 0) ? di(s, {
|
|
7466
|
+
x: P,
|
|
7467
7467
|
y: S,
|
|
7468
7468
|
w: g,
|
|
7469
7469
|
h: m,
|
|
7470
|
-
radius:
|
|
7471
|
-
}) : s.rect(
|
|
7470
|
+
radius: E
|
|
7471
|
+
}) : s.rect(P, S, g, m), s.fill(), x !== 0 && s.stroke();
|
|
7472
7472
|
}
|
|
7473
7473
|
s.restore();
|
|
7474
|
-
}, w = function(
|
|
7475
|
-
Un(s, b.text,
|
|
7474
|
+
}, w = function(O, D, b) {
|
|
7475
|
+
Un(s, b.text, O, D + y / 2, c, {
|
|
7476
7476
|
strikethrough: b.hidden,
|
|
7477
7477
|
textAlign: l.textAlign(b.textAlign)
|
|
7478
7478
|
});
|
|
@@ -7487,17 +7487,17 @@ class pc extends Qt {
|
|
|
7487
7487
|
line: 0
|
|
7488
7488
|
}, yd(this.ctx, t.textDirection);
|
|
7489
7489
|
const k = y + u;
|
|
7490
|
-
this.legendItems.forEach((
|
|
7491
|
-
s.strokeStyle =
|
|
7492
|
-
const b = s.measureText(
|
|
7493
|
-
let
|
|
7494
|
-
l.setWidth(this.width), M ?
|
|
7495
|
-
const N = l.x(
|
|
7496
|
-
if (_(N,
|
|
7490
|
+
this.legendItems.forEach((O, D) => {
|
|
7491
|
+
s.strokeStyle = O.fontColor, s.fillStyle = O.fontColor;
|
|
7492
|
+
const b = s.measureText(O.text).width, x = l.textAlign(O.textAlign || (O.textAlign = a.textAlign)), S = g + h + b;
|
|
7493
|
+
let P = f.x, E = f.y;
|
|
7494
|
+
l.setWidth(this.width), M ? D > 0 && P + S + u > this.right && (E = f.y += k, f.line++, P = f.x = te(r, this.left + u, this.right - i[f.line])) : D > 0 && E + k > this.bottom && (P = f.x = P + e[f.line].width + u, f.line++, E = f.y = te(r, this.top + T + u, this.bottom - e[f.line].height));
|
|
7495
|
+
const N = l.x(P);
|
|
7496
|
+
if (_(N, E, O), P = _p(x, P + g + h, M ? P + S : this.right, t.rtl), w(l.x(P), E, O), M)
|
|
7497
7497
|
f.x += S + u;
|
|
7498
|
-
else if (typeof
|
|
7498
|
+
else if (typeof O.text != "string") {
|
|
7499
7499
|
const $ = c.lineHeight;
|
|
7500
|
-
f.y += jd(
|
|
7500
|
+
f.y += jd(O, $) + u;
|
|
7501
7501
|
} else
|
|
7502
7502
|
f.y += k;
|
|
7503
7503
|
}), xd(this.ctx, t.textDirection);
|
|
@@ -8121,9 +8121,9 @@ class Aa extends Qt {
|
|
|
8121
8121
|
const g = li(i.rtl, this.x, this.width), m = function(b) {
|
|
8122
8122
|
e.fillText(b, g.x(t.x + f), t.y + h / 2), t.y += h + r;
|
|
8123
8123
|
}, y = g.textAlign(a);
|
|
8124
|
-
let _, w, M, T, k,
|
|
8125
|
-
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = Ys(this, y, i), e.fillStyle = i.bodyColor, xt(this.beforeBody, m), f = o && y !== "right" ? a === "center" ? c / 2 + u : c + 2 + u : 0, T = 0,
|
|
8126
|
-
for (_ = s[T], w = this.labelTextColors[T], e.fillStyle = w, xt(_.before, m), M = _.lines, o && M.length && (this._drawColorBox(e, t, T, g, i), h = Math.max(d.lineHeight, l)), k = 0,
|
|
8124
|
+
let _, w, M, T, k, O, D;
|
|
8125
|
+
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = Ys(this, y, i), e.fillStyle = i.bodyColor, xt(this.beforeBody, m), f = o && y !== "right" ? a === "center" ? c / 2 + u : c + 2 + u : 0, T = 0, O = s.length; T < O; ++T) {
|
|
8126
|
+
for (_ = s[T], w = this.labelTextColors[T], e.fillStyle = w, xt(_.before, m), M = _.lines, o && M.length && (this._drawColorBox(e, t, T, g, i), h = Math.max(d.lineHeight, l)), k = 0, D = M.length; k < D; ++k)
|
|
8127
8127
|
m(M[k]), h = d.lineHeight;
|
|
8128
8128
|
xt(_.after, m);
|
|
8129
8129
|
}
|
|
@@ -8212,7 +8212,7 @@ class Aa extends Qt {
|
|
|
8212
8212
|
return a !== !1 && (i !== a.x || s !== a.y);
|
|
8213
8213
|
}
|
|
8214
8214
|
}
|
|
8215
|
-
|
|
8215
|
+
C(Aa, "positioners", zi);
|
|
8216
8216
|
var kr = {
|
|
8217
8217
|
id: "tooltip",
|
|
8218
8218
|
_element: Aa,
|
|
@@ -8409,14 +8409,14 @@ class Ra extends Xn {
|
|
|
8409
8409
|
return this.bottom;
|
|
8410
8410
|
}
|
|
8411
8411
|
}
|
|
8412
|
-
|
|
8412
|
+
C(Ra, "id", "category"), C(Ra, "defaults", {
|
|
8413
8413
|
ticks: {
|
|
8414
8414
|
callback: wc
|
|
8415
8415
|
}
|
|
8416
8416
|
});
|
|
8417
8417
|
function m0(n, t) {
|
|
8418
8418
|
const e = [], { bounds: s, step: r, min: a, max: o, precision: l, count: c, maxTicks: u, maxDigits: d, includeBounds: h } = n, f = r || 1, g = u - 1, { min: m, max: y } = t, _ = !J(a), w = !J(o), M = !J(c), T = (y - m) / (d + 1);
|
|
8419
|
-
let k = pl((y - m) / g / f) * f,
|
|
8419
|
+
let k = pl((y - m) / g / f) * f, O, D, b, x;
|
|
8420
8420
|
if (k < 1e-14 && !_ && !w)
|
|
8421
8421
|
return [
|
|
8422
8422
|
{
|
|
@@ -8426,18 +8426,18 @@ function m0(n, t) {
|
|
|
8426
8426
|
value: y
|
|
8427
8427
|
}
|
|
8428
8428
|
];
|
|
8429
|
-
x = Math.ceil(y / k) - Math.floor(m / k), x > g && (k = pl(x * k / g / f) * f), J(l) || (
|
|
8430
|
-
const S = Math.max(ml(k), ml(
|
|
8431
|
-
|
|
8432
|
-
let
|
|
8433
|
-
for (_ && (h &&
|
|
8429
|
+
x = Math.ceil(y / k) - Math.floor(m / k), x > g && (k = pl(x * k / g / f) * f), J(l) || (O = Math.pow(10, l), k = Math.ceil(k * O) / O), s === "ticks" ? (D = Math.floor(m / k) * k, b = Math.ceil(y / k) * k) : (D = m, b = y), _ && w && r && fp((o - a) / r, k / 1e3) ? (x = Math.round(Math.min((o - a) / k, u)), k = (o - a) / x, D = a, b = o) : M ? (D = _ ? a : D, b = w ? o : b, x = c - 1, k = (b - D) / x) : (x = (b - D) / k, ji(x, Math.round(x), k / 1e3) ? x = Math.round(x) : x = Math.ceil(x));
|
|
8430
|
+
const S = Math.max(ml(k), ml(D));
|
|
8431
|
+
O = Math.pow(10, J(l) ? S : l), D = Math.round(D * O) / O, b = Math.round(b * O) / O;
|
|
8432
|
+
let P = 0;
|
|
8433
|
+
for (_ && (h && D !== a ? (e.push({
|
|
8434
8434
|
value: a
|
|
8435
|
-
}),
|
|
8436
|
-
const
|
|
8437
|
-
if (w &&
|
|
8435
|
+
}), D < a && P++, ji(Math.round((D + P * k) * O) / O, a, vc(a, T, n)) && P++) : D < a && P++); P < x; ++P) {
|
|
8436
|
+
const E = Math.round((D + P * k) * O) / O;
|
|
8437
|
+
if (w && E > o)
|
|
8438
8438
|
break;
|
|
8439
8439
|
e.push({
|
|
8440
|
-
value:
|
|
8440
|
+
value: E
|
|
8441
8441
|
});
|
|
8442
8442
|
}
|
|
8443
8443
|
return w && h && b !== o ? e.length && ji(e[e.length - 1].value, o, vc(o, T, n)) ? e[e.length - 1].value = o : e.push({
|
|
@@ -8527,7 +8527,7 @@ class La extends dr {
|
|
|
8527
8527
|
return this._startValue + this.getDecimalForPixel(t) * this._valueRange;
|
|
8528
8528
|
}
|
|
8529
8529
|
}
|
|
8530
|
-
|
|
8530
|
+
C(La, "id", "linear"), C(La, "defaults", {
|
|
8531
8531
|
ticks: {
|
|
8532
8532
|
callback: Mr.formatters.numeric
|
|
8533
8533
|
}
|
|
@@ -8615,7 +8615,7 @@ class Ia extends Xn {
|
|
|
8615
8615
|
return Math.pow(10, this._startValue + e * this._valueRange);
|
|
8616
8616
|
}
|
|
8617
8617
|
}
|
|
8618
|
-
|
|
8618
|
+
C(Ia, "id", "logarithmic"), C(Ia, "defaults", {
|
|
8619
8619
|
ticks: {
|
|
8620
8620
|
callback: Mr.formatters.logarithmic,
|
|
8621
8621
|
major: {
|
|
@@ -8907,7 +8907,7 @@ class Hi extends dr {
|
|
|
8907
8907
|
drawTitle() {
|
|
8908
8908
|
}
|
|
8909
8909
|
}
|
|
8910
|
-
|
|
8910
|
+
C(Hi, "id", "radialLinear"), C(Hi, "defaults", {
|
|
8911
8911
|
display: !0,
|
|
8912
8912
|
animate: !0,
|
|
8913
8913
|
position: "chartArea",
|
|
@@ -8938,11 +8938,11 @@ P(Hi, "id", "radialLinear"), P(Hi, "defaults", {
|
|
|
8938
8938
|
padding: 5,
|
|
8939
8939
|
centerPointLabels: !1
|
|
8940
8940
|
}
|
|
8941
|
-
}),
|
|
8941
|
+
}), C(Hi, "defaultRoutes", {
|
|
8942
8942
|
"angleLines.color": "borderColor",
|
|
8943
8943
|
"pointLabels.color": "color",
|
|
8944
8944
|
"ticks.color": "color"
|
|
8945
|
-
}),
|
|
8945
|
+
}), C(Hi, "descriptors", {
|
|
8946
8946
|
angleLines: {
|
|
8947
8947
|
_fallback: "grid"
|
|
8948
8948
|
}
|
|
@@ -9194,7 +9194,7 @@ class is extends Xn {
|
|
|
9194
9194
|
return sd(t.sort(Dc));
|
|
9195
9195
|
}
|
|
9196
9196
|
}
|
|
9197
|
-
|
|
9197
|
+
C(is, "id", "time"), C(is, "defaults", {
|
|
9198
9198
|
bounds: "data",
|
|
9199
9199
|
adapters: {},
|
|
9200
9200
|
time: {
|
|
@@ -9270,7 +9270,7 @@ class Fa extends is {
|
|
|
9270
9270
|
return js(this._table, i * this._tableRange + this._minPos, !0);
|
|
9271
9271
|
}
|
|
9272
9272
|
}
|
|
9273
|
-
|
|
9273
|
+
C(Fa, "id", "timeseries"), C(Fa, "defaults", is.defaults);
|
|
9274
9274
|
var I0 = /* @__PURE__ */ Object.freeze({
|
|
9275
9275
|
__proto__: null,
|
|
9276
9276
|
CategoryScale: Ra,
|
|
@@ -10760,7 +10760,7 @@ function c_(n) {
|
|
|
10760
10760
|
const u_ = 10;
|
|
10761
10761
|
class oh {
|
|
10762
10762
|
constructor() {
|
|
10763
|
-
|
|
10763
|
+
C(this, "subPriority", 0);
|
|
10764
10764
|
}
|
|
10765
10765
|
validate(t, e) {
|
|
10766
10766
|
return !0;
|
|
@@ -10780,8 +10780,8 @@ class d_ extends oh {
|
|
|
10780
10780
|
class h_ extends oh {
|
|
10781
10781
|
constructor(e, i) {
|
|
10782
10782
|
super();
|
|
10783
|
-
|
|
10784
|
-
|
|
10783
|
+
C(this, "priority", u_);
|
|
10784
|
+
C(this, "subPriority", -1);
|
|
10785
10785
|
this.context = e || ((s) => zt(i, s));
|
|
10786
10786
|
}
|
|
10787
10787
|
set(e, i) {
|
|
@@ -10809,8 +10809,8 @@ class gt {
|
|
|
10809
10809
|
class f_ extends gt {
|
|
10810
10810
|
constructor() {
|
|
10811
10811
|
super(...arguments);
|
|
10812
|
-
|
|
10813
|
-
|
|
10812
|
+
C(this, "priority", 140);
|
|
10813
|
+
C(this, "incompatibleTokens", ["R", "u", "t", "T"]);
|
|
10814
10814
|
}
|
|
10815
10815
|
parse(e, i, s) {
|
|
10816
10816
|
switch (i) {
|
|
@@ -10967,8 +10967,8 @@ function uh(n) {
|
|
|
10967
10967
|
class g_ extends gt {
|
|
10968
10968
|
constructor() {
|
|
10969
10969
|
super(...arguments);
|
|
10970
|
-
|
|
10971
|
-
|
|
10970
|
+
C(this, "priority", 130);
|
|
10971
|
+
C(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
|
|
10972
10972
|
}
|
|
10973
10973
|
parse(e, i, s) {
|
|
10974
10974
|
const r = (a) => ({
|
|
@@ -11008,8 +11008,8 @@ class g_ extends gt {
|
|
|
11008
11008
|
class p_ extends gt {
|
|
11009
11009
|
constructor() {
|
|
11010
11010
|
super(...arguments);
|
|
11011
|
-
|
|
11012
|
-
|
|
11011
|
+
C(this, "priority", 130);
|
|
11012
|
+
C(this, "incompatibleTokens", [
|
|
11013
11013
|
"y",
|
|
11014
11014
|
"R",
|
|
11015
11015
|
"u",
|
|
@@ -11067,8 +11067,8 @@ class p_ extends gt {
|
|
|
11067
11067
|
class m_ extends gt {
|
|
11068
11068
|
constructor() {
|
|
11069
11069
|
super(...arguments);
|
|
11070
|
-
|
|
11071
|
-
|
|
11070
|
+
C(this, "priority", 130);
|
|
11071
|
+
C(this, "incompatibleTokens", [
|
|
11072
11072
|
"G",
|
|
11073
11073
|
"y",
|
|
11074
11074
|
"Y",
|
|
@@ -11097,8 +11097,8 @@ class m_ extends gt {
|
|
|
11097
11097
|
class b_ extends gt {
|
|
11098
11098
|
constructor() {
|
|
11099
11099
|
super(...arguments);
|
|
11100
|
-
|
|
11101
|
-
|
|
11100
|
+
C(this, "priority", 130);
|
|
11101
|
+
C(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
11102
11102
|
}
|
|
11103
11103
|
parse(e, i) {
|
|
11104
11104
|
return fr(i === "u" ? 4 : i.length, e);
|
|
@@ -11110,8 +11110,8 @@ class b_ extends gt {
|
|
|
11110
11110
|
class y_ extends gt {
|
|
11111
11111
|
constructor() {
|
|
11112
11112
|
super(...arguments);
|
|
11113
|
-
|
|
11114
|
-
|
|
11113
|
+
C(this, "priority", 120);
|
|
11114
|
+
C(this, "incompatibleTokens", [
|
|
11115
11115
|
"Y",
|
|
11116
11116
|
"R",
|
|
11117
11117
|
"q",
|
|
@@ -11172,8 +11172,8 @@ class y_ extends gt {
|
|
|
11172
11172
|
class x_ extends gt {
|
|
11173
11173
|
constructor() {
|
|
11174
11174
|
super(...arguments);
|
|
11175
|
-
|
|
11176
|
-
|
|
11175
|
+
C(this, "priority", 120);
|
|
11176
|
+
C(this, "incompatibleTokens", [
|
|
11177
11177
|
"Y",
|
|
11178
11178
|
"R",
|
|
11179
11179
|
"Q",
|
|
@@ -11234,7 +11234,7 @@ class x_ extends gt {
|
|
|
11234
11234
|
class __ extends gt {
|
|
11235
11235
|
constructor() {
|
|
11236
11236
|
super(...arguments);
|
|
11237
|
-
|
|
11237
|
+
C(this, "incompatibleTokens", [
|
|
11238
11238
|
"Y",
|
|
11239
11239
|
"R",
|
|
11240
11240
|
"q",
|
|
@@ -11249,7 +11249,7 @@ class __ extends gt {
|
|
|
11249
11249
|
"t",
|
|
11250
11250
|
"T"
|
|
11251
11251
|
]);
|
|
11252
|
-
|
|
11252
|
+
C(this, "priority", 110);
|
|
11253
11253
|
}
|
|
11254
11254
|
parse(e, i, s) {
|
|
11255
11255
|
const r = (a) => a - 1;
|
|
@@ -11296,8 +11296,8 @@ class __ extends gt {
|
|
|
11296
11296
|
class w_ extends gt {
|
|
11297
11297
|
constructor() {
|
|
11298
11298
|
super(...arguments);
|
|
11299
|
-
|
|
11300
|
-
|
|
11299
|
+
C(this, "priority", 110);
|
|
11300
|
+
C(this, "incompatibleTokens", [
|
|
11301
11301
|
"Y",
|
|
11302
11302
|
"R",
|
|
11303
11303
|
"q",
|
|
@@ -11362,8 +11362,8 @@ function v_(n, t, e) {
|
|
|
11362
11362
|
class M_ extends gt {
|
|
11363
11363
|
constructor() {
|
|
11364
11364
|
super(...arguments);
|
|
11365
|
-
|
|
11366
|
-
|
|
11365
|
+
C(this, "priority", 100);
|
|
11366
|
+
C(this, "incompatibleTokens", [
|
|
11367
11367
|
"y",
|
|
11368
11368
|
"R",
|
|
11369
11369
|
"u",
|
|
@@ -11403,8 +11403,8 @@ function S_(n, t, e) {
|
|
|
11403
11403
|
class k_ extends gt {
|
|
11404
11404
|
constructor() {
|
|
11405
11405
|
super(...arguments);
|
|
11406
|
-
|
|
11407
|
-
|
|
11406
|
+
C(this, "priority", 100);
|
|
11407
|
+
C(this, "incompatibleTokens", [
|
|
11408
11408
|
"y",
|
|
11409
11409
|
"Y",
|
|
11410
11410
|
"u",
|
|
@@ -11455,9 +11455,9 @@ const D_ = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], T_ = [
|
|
|
11455
11455
|
class C_ extends gt {
|
|
11456
11456
|
constructor() {
|
|
11457
11457
|
super(...arguments);
|
|
11458
|
-
|
|
11459
|
-
|
|
11460
|
-
|
|
11458
|
+
C(this, "priority", 90);
|
|
11459
|
+
C(this, "subPriority", 1);
|
|
11460
|
+
C(this, "incompatibleTokens", [
|
|
11461
11461
|
"Y",
|
|
11462
11462
|
"R",
|
|
11463
11463
|
"q",
|
|
@@ -11493,9 +11493,9 @@ class C_ extends gt {
|
|
|
11493
11493
|
class P_ extends gt {
|
|
11494
11494
|
constructor() {
|
|
11495
11495
|
super(...arguments);
|
|
11496
|
-
|
|
11497
|
-
|
|
11498
|
-
|
|
11496
|
+
C(this, "priority", 90);
|
|
11497
|
+
C(this, "subpriority", 1);
|
|
11498
|
+
C(this, "incompatibleTokens", [
|
|
11499
11499
|
"Y",
|
|
11500
11500
|
"R",
|
|
11501
11501
|
"q",
|
|
@@ -11540,8 +11540,8 @@ function Oo(n, t, e) {
|
|
|
11540
11540
|
class O_ extends gt {
|
|
11541
11541
|
constructor() {
|
|
11542
11542
|
super(...arguments);
|
|
11543
|
-
|
|
11544
|
-
|
|
11543
|
+
C(this, "priority", 90);
|
|
11544
|
+
C(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
|
|
11545
11545
|
}
|
|
11546
11546
|
parse(e, i, s) {
|
|
11547
11547
|
switch (i) {
|
|
@@ -11577,8 +11577,8 @@ class O_ extends gt {
|
|
|
11577
11577
|
class E_ extends gt {
|
|
11578
11578
|
constructor() {
|
|
11579
11579
|
super(...arguments);
|
|
11580
|
-
|
|
11581
|
-
|
|
11580
|
+
C(this, "priority", 90);
|
|
11581
|
+
C(this, "incompatibleTokens", [
|
|
11582
11582
|
"y",
|
|
11583
11583
|
"R",
|
|
11584
11584
|
"u",
|
|
@@ -11642,8 +11642,8 @@ class E_ extends gt {
|
|
|
11642
11642
|
class A_ extends gt {
|
|
11643
11643
|
constructor() {
|
|
11644
11644
|
super(...arguments);
|
|
11645
|
-
|
|
11646
|
-
|
|
11645
|
+
C(this, "priority", 90);
|
|
11646
|
+
C(this, "incompatibleTokens", [
|
|
11647
11647
|
"y",
|
|
11648
11648
|
"R",
|
|
11649
11649
|
"u",
|
|
@@ -11711,8 +11711,8 @@ function R_(n, t, e) {
|
|
|
11711
11711
|
class L_ extends gt {
|
|
11712
11712
|
constructor() {
|
|
11713
11713
|
super(...arguments);
|
|
11714
|
-
|
|
11715
|
-
|
|
11714
|
+
C(this, "priority", 90);
|
|
11715
|
+
C(this, "incompatibleTokens", [
|
|
11716
11716
|
"y",
|
|
11717
11717
|
"Y",
|
|
11718
11718
|
"u",
|
|
@@ -11801,8 +11801,8 @@ class L_ extends gt {
|
|
|
11801
11801
|
class I_ extends gt {
|
|
11802
11802
|
constructor() {
|
|
11803
11803
|
super(...arguments);
|
|
11804
|
-
|
|
11805
|
-
|
|
11804
|
+
C(this, "priority", 80);
|
|
11805
|
+
C(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
|
|
11806
11806
|
}
|
|
11807
11807
|
parse(e, i, s) {
|
|
11808
11808
|
switch (i) {
|
|
@@ -11842,8 +11842,8 @@ class I_ extends gt {
|
|
|
11842
11842
|
class N_ extends gt {
|
|
11843
11843
|
constructor() {
|
|
11844
11844
|
super(...arguments);
|
|
11845
|
-
|
|
11846
|
-
|
|
11845
|
+
C(this, "priority", 80);
|
|
11846
|
+
C(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
|
|
11847
11847
|
}
|
|
11848
11848
|
parse(e, i, s) {
|
|
11849
11849
|
switch (i) {
|
|
@@ -11883,8 +11883,8 @@ class N_ extends gt {
|
|
|
11883
11883
|
class F_ extends gt {
|
|
11884
11884
|
constructor() {
|
|
11885
11885
|
super(...arguments);
|
|
11886
|
-
|
|
11887
|
-
|
|
11886
|
+
C(this, "priority", 80);
|
|
11887
|
+
C(this, "incompatibleTokens", ["a", "b", "t", "T"]);
|
|
11888
11888
|
}
|
|
11889
11889
|
parse(e, i, s) {
|
|
11890
11890
|
switch (i) {
|
|
@@ -11924,8 +11924,8 @@ class F_ extends gt {
|
|
|
11924
11924
|
class z_ extends gt {
|
|
11925
11925
|
constructor() {
|
|
11926
11926
|
super(...arguments);
|
|
11927
|
-
|
|
11928
|
-
|
|
11927
|
+
C(this, "priority", 70);
|
|
11928
|
+
C(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
|
|
11929
11929
|
}
|
|
11930
11930
|
parse(e, i, s) {
|
|
11931
11931
|
switch (i) {
|
|
@@ -11948,8 +11948,8 @@ class z_ extends gt {
|
|
|
11948
11948
|
class H_ extends gt {
|
|
11949
11949
|
constructor() {
|
|
11950
11950
|
super(...arguments);
|
|
11951
|
-
|
|
11952
|
-
|
|
11951
|
+
C(this, "priority", 70);
|
|
11952
|
+
C(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
|
|
11953
11953
|
}
|
|
11954
11954
|
parse(e, i, s) {
|
|
11955
11955
|
switch (i) {
|
|
@@ -11971,8 +11971,8 @@ class H_ extends gt {
|
|
|
11971
11971
|
class W_ extends gt {
|
|
11972
11972
|
constructor() {
|
|
11973
11973
|
super(...arguments);
|
|
11974
|
-
|
|
11975
|
-
|
|
11974
|
+
C(this, "priority", 70);
|
|
11975
|
+
C(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
|
|
11976
11976
|
}
|
|
11977
11977
|
parse(e, i, s) {
|
|
11978
11978
|
switch (i) {
|
|
@@ -11994,8 +11994,8 @@ class W_ extends gt {
|
|
|
11994
11994
|
class B_ extends gt {
|
|
11995
11995
|
constructor() {
|
|
11996
11996
|
super(...arguments);
|
|
11997
|
-
|
|
11998
|
-
|
|
11997
|
+
C(this, "priority", 70);
|
|
11998
|
+
C(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
|
|
11999
11999
|
}
|
|
12000
12000
|
parse(e, i, s) {
|
|
12001
12001
|
switch (i) {
|
|
@@ -12018,8 +12018,8 @@ class B_ extends gt {
|
|
|
12018
12018
|
class Y_ extends gt {
|
|
12019
12019
|
constructor() {
|
|
12020
12020
|
super(...arguments);
|
|
12021
|
-
|
|
12022
|
-
|
|
12021
|
+
C(this, "priority", 60);
|
|
12022
|
+
C(this, "incompatibleTokens", ["t", "T"]);
|
|
12023
12023
|
}
|
|
12024
12024
|
parse(e, i, s) {
|
|
12025
12025
|
switch (i) {
|
|
@@ -12041,8 +12041,8 @@ class Y_ extends gt {
|
|
|
12041
12041
|
class j_ extends gt {
|
|
12042
12042
|
constructor() {
|
|
12043
12043
|
super(...arguments);
|
|
12044
|
-
|
|
12045
|
-
|
|
12044
|
+
C(this, "priority", 50);
|
|
12045
|
+
C(this, "incompatibleTokens", ["t", "T"]);
|
|
12046
12046
|
}
|
|
12047
12047
|
parse(e, i, s) {
|
|
12048
12048
|
switch (i) {
|
|
@@ -12064,8 +12064,8 @@ class j_ extends gt {
|
|
|
12064
12064
|
class $_ extends gt {
|
|
12065
12065
|
constructor() {
|
|
12066
12066
|
super(...arguments);
|
|
12067
|
-
|
|
12068
|
-
|
|
12067
|
+
C(this, "priority", 30);
|
|
12068
|
+
C(this, "incompatibleTokens", ["t", "T"]);
|
|
12069
12069
|
}
|
|
12070
12070
|
parse(e, i) {
|
|
12071
12071
|
const s = (r) => Math.trunc(r * Math.pow(10, -i.length + 3));
|
|
@@ -12078,8 +12078,8 @@ class $_ extends gt {
|
|
|
12078
12078
|
class q_ extends gt {
|
|
12079
12079
|
constructor() {
|
|
12080
12080
|
super(...arguments);
|
|
12081
|
-
|
|
12082
|
-
|
|
12081
|
+
C(this, "priority", 10);
|
|
12082
|
+
C(this, "incompatibleTokens", ["t", "T", "x"]);
|
|
12083
12083
|
}
|
|
12084
12084
|
parse(e, i) {
|
|
12085
12085
|
switch (i) {
|
|
@@ -12115,8 +12115,8 @@ class q_ extends gt {
|
|
|
12115
12115
|
class U_ extends gt {
|
|
12116
12116
|
constructor() {
|
|
12117
12117
|
super(...arguments);
|
|
12118
|
-
|
|
12119
|
-
|
|
12118
|
+
C(this, "priority", 10);
|
|
12119
|
+
C(this, "incompatibleTokens", ["t", "T", "X"]);
|
|
12120
12120
|
}
|
|
12121
12121
|
parse(e, i) {
|
|
12122
12122
|
switch (i) {
|
|
@@ -12152,8 +12152,8 @@ class U_ extends gt {
|
|
|
12152
12152
|
class V_ extends gt {
|
|
12153
12153
|
constructor() {
|
|
12154
12154
|
super(...arguments);
|
|
12155
|
-
|
|
12156
|
-
|
|
12155
|
+
C(this, "priority", 40);
|
|
12156
|
+
C(this, "incompatibleTokens", "*");
|
|
12157
12157
|
}
|
|
12158
12158
|
parse(e) {
|
|
12159
12159
|
return lh(e);
|
|
@@ -12165,8 +12165,8 @@ class V_ extends gt {
|
|
|
12165
12165
|
class X_ extends gt {
|
|
12166
12166
|
constructor() {
|
|
12167
12167
|
super(...arguments);
|
|
12168
|
-
|
|
12169
|
-
|
|
12168
|
+
C(this, "priority", 20);
|
|
12169
|
+
C(this, "incompatibleTokens", "*");
|
|
12170
12170
|
}
|
|
12171
12171
|
parse(e) {
|
|
12172
12172
|
return lh(e);
|
|
@@ -12209,8 +12209,8 @@ const G_ = {
|
|
|
12209
12209
|
T: new X_()
|
|
12210
12210
|
}, K_ = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Z_ = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Q_ = /^'([^]*?)'?$/, J_ = /''/g, tw = /\S/, ew = /[a-zA-Z]/;
|
|
12211
12211
|
function nw(n, t, e, i) {
|
|
12212
|
-
var y, _, w, M, T, k,
|
|
12213
|
-
const s = () => zt((i == null ? void 0 : i.in) || e, NaN), r = a_(), a = (i == null ? void 0 : i.locale) ?? r.locale ?? th, o = (i == null ? void 0 : i.firstWeekContainsDate) ?? ((_ = (y = i == null ? void 0 : i.locale) == null ? void 0 : y.options) == null ? void 0 : _.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((M = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : M.firstWeekContainsDate) ?? 1, l = (i == null ? void 0 : i.weekStartsOn) ?? ((k = (T = i == null ? void 0 : i.locale) == null ? void 0 : T.options) == null ? void 0 : k.weekStartsOn) ?? r.weekStartsOn ?? ((
|
|
12212
|
+
var y, _, w, M, T, k, O, D;
|
|
12213
|
+
const s = () => zt((i == null ? void 0 : i.in) || e, NaN), r = a_(), a = (i == null ? void 0 : i.locale) ?? r.locale ?? th, o = (i == null ? void 0 : i.firstWeekContainsDate) ?? ((_ = (y = i == null ? void 0 : i.locale) == null ? void 0 : y.options) == null ? void 0 : _.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((M = (w = r.locale) == null ? void 0 : w.options) == null ? void 0 : M.firstWeekContainsDate) ?? 1, l = (i == null ? void 0 : i.weekStartsOn) ?? ((k = (T = i == null ? void 0 : i.locale) == null ? void 0 : T.options) == null ? void 0 : k.weekStartsOn) ?? r.weekStartsOn ?? ((D = (O = r.locale) == null ? void 0 : O.options) == null ? void 0 : D.weekStartsOn) ?? 0;
|
|
12214
12214
|
if (!t)
|
|
12215
12215
|
return n ? s() : tt(e, i == null ? void 0 : i.in);
|
|
12216
12216
|
const c = {
|
|
@@ -12229,10 +12229,10 @@ function nw(n, t, e, i) {
|
|
|
12229
12229
|
!(i != null && i.useAdditionalWeekYearTokens) && rh(b) && Wa(b, t, n), !(i != null && i.useAdditionalDayOfYearTokens) && sh(b) && Wa(b, t, n);
|
|
12230
12230
|
const x = b[0], S = G_[x];
|
|
12231
12231
|
if (S) {
|
|
12232
|
-
const { incompatibleTokens:
|
|
12233
|
-
if (Array.isArray(
|
|
12232
|
+
const { incompatibleTokens: P } = S;
|
|
12233
|
+
if (Array.isArray(P)) {
|
|
12234
12234
|
const N = h.find(
|
|
12235
|
-
($) =>
|
|
12235
|
+
($) => P.includes($.token) || $.token === x
|
|
12236
12236
|
);
|
|
12237
12237
|
if (N)
|
|
12238
12238
|
throw new RangeError(
|
|
@@ -12243,15 +12243,15 @@ function nw(n, t, e, i) {
|
|
|
12243
12243
|
`The format string mustn't contain \`${b}\` and any other token at the same time`
|
|
12244
12244
|
);
|
|
12245
12245
|
h.push({ token: x, fullToken: b });
|
|
12246
|
-
const
|
|
12246
|
+
const E = S.run(
|
|
12247
12247
|
n,
|
|
12248
12248
|
b,
|
|
12249
12249
|
a.match,
|
|
12250
12250
|
c
|
|
12251
12251
|
);
|
|
12252
|
-
if (!
|
|
12252
|
+
if (!E)
|
|
12253
12253
|
return s();
|
|
12254
|
-
u.push(
|
|
12254
|
+
u.push(E.setter), n = E.rest;
|
|
12255
12255
|
} else {
|
|
12256
12256
|
if (x.match(ew))
|
|
12257
12257
|
throw new RangeError(
|
|
@@ -15020,28 +15020,31 @@ function eM(n, t) {
|
|
|
15020
15020
|
const s = t.value.data, { display: r, metric_names: a } = t.value.meta, o = r && Object.keys(r), l = a && a.length > 1, c = r && o && o.length > 0;
|
|
15021
15021
|
if (!s.length || !a)
|
|
15022
15022
|
return { datasets: [], labels: [] };
|
|
15023
|
-
const u = c && o || a, d = u[0], h = u.length > 1 ? u[1] : u[0], f = Object.fromEntries(l ? s.flatMap((D) => a.map((
|
|
15024
|
-
const
|
|
15025
|
-
return [
|
|
15023
|
+
const u = c && o || a, d = u[0], h = u.length > 1 ? u[1] : u[0], f = Object.fromEntries(l ? s.flatMap((D) => a.map((b, x) => {
|
|
15024
|
+
const S = D.event[d], P = c ? `${S},${b}` : `${x},${b}`, E = D.event[b];
|
|
15025
|
+
return [P, E];
|
|
15026
15026
|
})) : s.map((D) => {
|
|
15027
|
-
const
|
|
15028
|
-
return [
|
|
15029
|
-
})), g = Object.
|
|
15030
|
-
|
|
15027
|
+
const b = c ? `${D.event[d]},${D.event[h]}` : `${d},${h}`, x = D.event[a[0]];
|
|
15028
|
+
return [b, x];
|
|
15029
|
+
})), g = Object.keys(f).reduce((D, b) => {
|
|
15030
|
+
const [x] = b.split(","), S = f[b];
|
|
15031
|
+
return D[x] ? D[x] += S : D[x] = S, D;
|
|
15032
|
+
}, {}), m = Object.entries(g).sort(([, D], [, b]) => Number(b) - Number(D)).map(([D]) => D), y = r[d], _ = r[h], w = c && y && Object.entries(y).map(([D, b]) => ({ id: D, name: b.name })) || a.map((D) => ({ id: D, name: D })), M = c && _ && Object.entries(_).map(([D, b]) => ({ id: D, name: b.name })) || a.map((D) => ({ id: D, name: D }));
|
|
15033
|
+
if (d !== "status_code" && d !== "status_code_grouped" && (w.sort((D, b) => m.indexOf(D.id) - m.indexOf(b.id)), M.sort((D, b) => m.indexOf(D.id) - m.indexOf(b.id))), !w || !M)
|
|
15031
15034
|
return { labels: [], datasets: [] };
|
|
15032
|
-
const
|
|
15035
|
+
const T = tM({
|
|
15033
15036
|
isMultiMetric: l,
|
|
15034
15037
|
hasDimensions: c,
|
|
15035
15038
|
metricNames: a,
|
|
15036
15039
|
dimensionFieldNames: u,
|
|
15037
|
-
barSegmentLabels:
|
|
15040
|
+
barSegmentLabels: M,
|
|
15038
15041
|
pivotRecords: f,
|
|
15039
|
-
rowLabels:
|
|
15042
|
+
rowLabels: w,
|
|
15040
15043
|
colorPalette: n.colorPalette || Tn
|
|
15041
15044
|
});
|
|
15042
15045
|
return {
|
|
15043
|
-
labels: c ?
|
|
15044
|
-
datasets:
|
|
15046
|
+
labels: c ? w.map((D) => e && e.te(`chartLabels.${D.name}`) && e.t(`chartLabels.${D.name}`) || D.name) : a.map((D) => e && e.te(`chartLabels.${D}`) && e.t(`chartLabels.${D}`) || D),
|
|
15047
|
+
datasets: T
|
|
15045
15048
|
};
|
|
15046
15049
|
}
|
|
15047
15050
|
} catch (s) {
|
|
@@ -15084,35 +15087,35 @@ function rM(n, t) {
|
|
|
15084
15087
|
return console.error("Invalid step value:", f), { datasets: [], labels: [] };
|
|
15085
15088
|
if (!s.length)
|
|
15086
15089
|
return { datasets: [], labels: [] };
|
|
15087
|
-
const g = iM(o), m = sM(o, l, f, g, s), y = /* @__PURE__ */ new Set(), _ = s != null && s.length ? s.reduce((k,
|
|
15088
|
-
const
|
|
15090
|
+
const g = iM(o), m = sM(o, l, f, g, s), y = /* @__PURE__ */ new Set(), _ = s != null && s.length ? s.reduce((k, O) => {
|
|
15091
|
+
const D = new Date(O.timestamp).valueOf(), b = O.event;
|
|
15089
15092
|
for (const x of a)
|
|
15090
|
-
y.add(x),
|
|
15093
|
+
y.add(x), D in k || (k[D] = {}), x in k[D] || (k[D][x] = {});
|
|
15091
15094
|
for (const x of a)
|
|
15092
15095
|
h.forEach((S) => {
|
|
15093
|
-
b[u] === S.id || x === S.id ? (k[
|
|
15096
|
+
b[u] === S.id || x === S.id ? (k[D][x] || (k[D][x] = {}), k[D][x][S.name] = Math.round(Number(b[x]) * 1e3) / 1e3) : c.length || (k[D][x] || (k[D][x] = {}), k[D][x][S.name] = Math.round(Number(b[S.id]) * 1e3) / 1e3);
|
|
15094
15097
|
});
|
|
15095
15098
|
return k;
|
|
15096
|
-
}, {}) : {}, w = a.length === 1 ? a.flatMap((k) => h.map((
|
|
15097
|
-
const b = m.map((
|
|
15099
|
+
}, {}) : {}, w = a.length === 1 ? a.flatMap((k) => h.map((O) => [k, O.name])) : h.map((k) => [k.name, k.name]), M = {}, T = [...w].map(([k, O], D) => {
|
|
15100
|
+
const b = m.map((E) => E in _ && k in _[E] ? { x: E, y: _[E][k][O] || 0 } : { x: E, y: 0 });
|
|
15098
15101
|
let { colorPalette: x, fill: S } = n;
|
|
15099
15102
|
J(x) && (x = Tn);
|
|
15100
|
-
const
|
|
15101
|
-
return M[
|
|
15102
|
-
rawDimension:
|
|
15103
|
+
const P = Array.isArray(x) ? Ki(D, x) : x[O] || Ki(D);
|
|
15104
|
+
return M[O] = P, {
|
|
15105
|
+
rawDimension: O,
|
|
15103
15106
|
rawMetric: k,
|
|
15104
15107
|
// @ts-ignore - dynamic i18n key
|
|
15105
|
-
label: e && e.te(`chartLabels.${
|
|
15106
|
-
borderColor:
|
|
15107
|
-
backgroundColor:
|
|
15108
|
+
label: e && e.te(`chartLabels.${O}`) && e.t(`chartLabels.${O}`) || O,
|
|
15109
|
+
borderColor: P,
|
|
15110
|
+
backgroundColor: P,
|
|
15108
15111
|
data: b,
|
|
15109
|
-
total: b.reduce((
|
|
15112
|
+
total: b.reduce((E, { y: N }) => E + Number(N), 0),
|
|
15110
15113
|
...Iw,
|
|
15111
15114
|
fill: S,
|
|
15112
15115
|
borderWidth: S ? Fw : Nw
|
|
15113
15116
|
};
|
|
15114
15117
|
});
|
|
15115
|
-
return T.sort((k,
|
|
15118
|
+
return T.sort((k, O) => Number(k.total) < Number(O.total) ? -1 : 1), {
|
|
15116
15119
|
datasets: T,
|
|
15117
15120
|
colorMap: M
|
|
15118
15121
|
};
|
|
@@ -16815,8 +16818,8 @@ const OS = "#6c7489", ES = "#995c00", AS = "20px", Du = "24px", RS = "40px", LS
|
|
|
16815
16818
|
if (e.value && r.value === Ft.Bottom) {
|
|
16816
16819
|
let M = 0;
|
|
16817
16820
|
i.value.forEach((k) => {
|
|
16818
|
-
const
|
|
16819
|
-
|
|
16821
|
+
const O = Array.from(k.children).reduce((D, b) => D + b.offsetWidth, 0);
|
|
16822
|
+
O > M && (M = O);
|
|
16820
16823
|
});
|
|
16821
16824
|
const T = parseInt(RS, 10);
|
|
16822
16825
|
e.value.style.gridTemplateColumns = `repeat(auto-fit, ${M + T}px)`;
|
|
@@ -16834,8 +16837,8 @@ const OS = "#6c7489", ES = "#995c00", AS = "20px", Du = "24px", RS = "40px", LS
|
|
|
16834
16837
|
h() && d();
|
|
16835
16838
|
}, { immediate: !0, flush: "post" });
|
|
16836
16839
|
const f = st(0), g = st(0), m = new ResizeObserver(fh((M) => {
|
|
16837
|
-
const T = M[0], k = T.contentRect.width,
|
|
16838
|
-
k !== f.value &&
|
|
16840
|
+
const T = M[0], k = T.contentRect.width, O = T.contentRect.height;
|
|
16841
|
+
k !== f.value && O === g.value && d(), f.value = k, g.value = O;
|
|
16839
16842
|
}, 100));
|
|
16840
16843
|
Me(() => r.value, () => {
|
|
16841
16844
|
d();
|
|
@@ -16854,8 +16857,8 @@ const OS = "#6c7489", ES = "#995c00", AS = "20px", Du = "24px", RS = "40px", LS
|
|
|
16854
16857
|
}, _ = (M = 0, T) => {
|
|
16855
16858
|
if (t.chartInstance === null || t.chartInstance.chart === null)
|
|
16856
16859
|
return !0;
|
|
16857
|
-
const k = t.chartInstance instanceof Ee ? t.chartInstance : t.chartInstance.chart,
|
|
16858
|
-
return
|
|
16860
|
+
const k = t.chartInstance instanceof Ee ? t.chartInstance : t.chartInstance.chart, O = k.getDatasetMeta(M);
|
|
16861
|
+
return O.dataset || T === void 0 ? k.isDatasetVisible(M) : !(O.data.length && O.data[T].hidden);
|
|
16859
16862
|
}, w = (M) => ({
|
|
16860
16863
|
[Ft.Right]: "vertical",
|
|
16861
16864
|
[Ft.Bottom]: "horizontal",
|
|
@@ -16868,24 +16871,24 @@ const OS = "#6c7489", ES = "#995c00", AS = "20px", Du = "24px", RS = "40px", LS
|
|
|
16868
16871
|
class: Yn(["legend-container", w(lt(r))]),
|
|
16869
16872
|
"data-testid": "legend"
|
|
16870
16873
|
}, [
|
|
16871
|
-
(Z(!0), dt(Zi, null, eo(n.items, ({ fillStyle: k, strokeStyle:
|
|
16872
|
-
key:
|
|
16874
|
+
(Z(!0), dt(Zi, null, eo(n.items, ({ fillStyle: k, strokeStyle: O, text: D, datasetIndex: b, index: x, value: S }) => (Z(), dt("li", {
|
|
16875
|
+
key: D,
|
|
16873
16876
|
ref_for: !0,
|
|
16874
16877
|
ref_key: "legendItemsRef",
|
|
16875
16878
|
ref: i,
|
|
16876
|
-
onClick: (
|
|
16879
|
+
onClick: (P) => y(b, x)
|
|
16877
16880
|
}, [
|
|
16878
16881
|
ut("div", {
|
|
16879
16882
|
class: "square-marker",
|
|
16880
|
-
style: $n({ background: k, "border-color":
|
|
16883
|
+
style: $n({ background: k, "border-color": O })
|
|
16881
16884
|
}, null, 4),
|
|
16882
16885
|
ut("div", {
|
|
16883
16886
|
class: Yn(["label-container", { "strike-through": !_(b, x) }])
|
|
16884
16887
|
}, [
|
|
16885
16888
|
ut("div", {
|
|
16886
16889
|
class: Yn(["label", { "truncate-label": c.value }]),
|
|
16887
|
-
title:
|
|
16888
|
-
}, ct(
|
|
16890
|
+
title: D
|
|
16891
|
+
}, ct(D), 11, $S),
|
|
16889
16892
|
S && lt(s) ? (Z(), dt("div", qS, ct(S.formatted), 1)) : Vt("", !0)
|
|
16890
16893
|
], 2)
|
|
16891
16894
|
], 8, jS))), 128))
|
|
@@ -17100,8 +17103,8 @@ const Cu = (n, t) => {
|
|
|
17100
17103
|
},
|
|
17101
17104
|
jh,
|
|
17102
17105
|
...t.annotations ? [k] : []
|
|
17103
|
-
], x = H(() => t.chartData.labels && t.chartData.labels.length || 0), S = st(0),
|
|
17104
|
-
S.value = R[0].contentRect.width,
|
|
17106
|
+
], x = H(() => t.chartData.labels && t.chartData.labels.length || 0), S = st(0), P = st(0), E = new ResizeObserver(fh((R) => {
|
|
17107
|
+
S.value = R[0].contentRect.width, P.value = R[0].contentRect.height;
|
|
17105
17108
|
}, 100)), N = H(() => {
|
|
17106
17109
|
var z, j;
|
|
17107
17110
|
const R = (j = (z = t.chartData) == null ? void 0 : z.labels) == null ? void 0 : j.length;
|
|
@@ -17109,12 +17112,12 @@ const Cu = (n, t) => {
|
|
|
17109
17112
|
}), $ = H(() => {
|
|
17110
17113
|
var z, j;
|
|
17111
17114
|
const R = (j = (z = t.chartData) == null ? void 0 : z.labels) == null ? void 0 : j.length;
|
|
17112
|
-
return o.value && R && y.value ? `${Math.max(R * (tk + Ou),
|
|
17115
|
+
return o.value && R && y.value ? `${Math.max(R * (tk + Ou), P.value)}px` : QS;
|
|
17113
17116
|
});
|
|
17114
17117
|
_t.useReportChartDataForSynthetics(vt(t, "chartData"), vt(t, "syntheticsDataKey")), wr(() => {
|
|
17115
|
-
t.annotations && Ee.register(ku), s.value && (S.value = s.value.offsetWidth,
|
|
17118
|
+
t.annotations && Ee.register(ku), s.value && (S.value = s.value.offsetWidth, P.value = s.value.offsetHeight, E.observe(s.value));
|
|
17116
17119
|
}), Xu(() => {
|
|
17117
|
-
s.value &&
|
|
17120
|
+
s.value && E.unobserve(s.value);
|
|
17118
17121
|
});
|
|
17119
17122
|
const G = H(() => {
|
|
17120
17123
|
const R = _t.useBarChartOptions({
|
|
@@ -17826,8 +17829,8 @@ const vT = [
|
|
|
17826
17829
|
var xr = { exports: {} };
|
|
17827
17830
|
xr.exports;
|
|
17828
17831
|
(function(n, t) {
|
|
17829
|
-
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 1 / 0, l = 9007199254740991, c = "[object Arguments]", u = "[object Array]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", g = "[object Function]", m = "[object GeneratorFunction]", y = "[object Map]", _ = "[object Number]", w = "[object Object]", M = "[object Promise]", T = "[object RegExp]", k = "[object Set]",
|
|
17830
|
-
Y[
|
|
17832
|
+
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 1 / 0, l = 9007199254740991, c = "[object Arguments]", u = "[object Array]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", g = "[object Function]", m = "[object GeneratorFunction]", y = "[object Map]", _ = "[object Number]", w = "[object Object]", M = "[object Promise]", T = "[object RegExp]", k = "[object Set]", O = "[object String]", D = "[object Symbol]", b = "[object WeakMap]", x = "[object ArrayBuffer]", S = "[object DataView]", P = "[object Float32Array]", E = "[object Float64Array]", N = "[object Int8Array]", $ = "[object Int16Array]", G = "[object Int32Array]", q = "[object Uint8Array]", I = "[object Uint8ClampedArray]", rt = "[object Uint16Array]", F = "[object Uint32Array]", It = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, St = /^\w*$/, W = /^\./, R = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, z = /[\\^$.*+?()[\]{}|]/g, j = /\\(\\)?/g, V = /^\[object .+?Constructor\]$/, K = /^(?:0|[1-9]\d*)$/, Y = {};
|
|
17833
|
+
Y[P] = Y[E] = Y[N] = Y[$] = Y[G] = Y[q] = Y[I] = Y[rt] = Y[F] = !0, Y[c] = Y[u] = Y[x] = Y[d] = Y[S] = Y[h] = Y[f] = Y[g] = Y[y] = Y[_] = Y[w] = Y[T] = Y[k] = Y[O] = Y[b] = !1;
|
|
17831
17834
|
var B = typeof be == "object" && be && be.Object === Object && be, et = typeof self == "object" && self && self.Object === Object && self, X = B || et || Function("return this")(), kt = t && !t.nodeType && t, ht = kt && !0 && n && !n.nodeType && n, Xt = ht && ht.exports === kt, Pt = Xt && B.process, wt = function() {
|
|
17832
17835
|
try {
|
|
17833
17836
|
return Pt && Pt.binding("util");
|
|
@@ -17835,8 +17838,8 @@ xr.exports;
|
|
|
17835
17838
|
}
|
|
17836
17839
|
}(), ce = wt && wt.isTypedArray;
|
|
17837
17840
|
function ue(p, v) {
|
|
17838
|
-
for (var
|
|
17839
|
-
if (v(p[
|
|
17841
|
+
for (var A = -1, L = p ? p.length : 0; ++A < L; )
|
|
17842
|
+
if (v(p[A], A, p))
|
|
17840
17843
|
return !0;
|
|
17841
17844
|
return !1;
|
|
17842
17845
|
}
|
|
@@ -17846,8 +17849,8 @@ xr.exports;
|
|
|
17846
17849
|
};
|
|
17847
17850
|
}
|
|
17848
17851
|
function Re(p, v) {
|
|
17849
|
-
for (var
|
|
17850
|
-
L[
|
|
17852
|
+
for (var A = -1, L = Array(p); ++A < p; )
|
|
17853
|
+
L[A] = v(A);
|
|
17851
17854
|
return L;
|
|
17852
17855
|
}
|
|
17853
17856
|
function de(p) {
|
|
@@ -17868,21 +17871,21 @@ xr.exports;
|
|
|
17868
17871
|
return v;
|
|
17869
17872
|
}
|
|
17870
17873
|
function Ue(p) {
|
|
17871
|
-
var v = -1,
|
|
17874
|
+
var v = -1, A = Array(p.size);
|
|
17872
17875
|
return p.forEach(function(L, nt) {
|
|
17873
|
-
|
|
17874
|
-
}),
|
|
17876
|
+
A[++v] = [nt, L];
|
|
17877
|
+
}), A;
|
|
17875
17878
|
}
|
|
17876
17879
|
function pt(p, v) {
|
|
17877
|
-
return function(
|
|
17878
|
-
return p(v(
|
|
17880
|
+
return function(A) {
|
|
17881
|
+
return p(v(A));
|
|
17879
17882
|
};
|
|
17880
17883
|
}
|
|
17881
17884
|
function ln(p) {
|
|
17882
|
-
var v = -1,
|
|
17885
|
+
var v = -1, A = Array(p.size);
|
|
17883
17886
|
return p.forEach(function(L) {
|
|
17884
|
-
|
|
17885
|
-
}),
|
|
17887
|
+
A[++v] = L;
|
|
17888
|
+
}), A;
|
|
17886
17889
|
}
|
|
17887
17890
|
var Le = Array.prototype, Ve = Function.prototype, _e = Object.prototype, ke = X["__core-js_shared__"], Ie = function() {
|
|
17888
17891
|
var p = /[^.]+$/.exec(ke && ke.keys && ke.keys.IE_PROTO || "");
|
|
@@ -17891,8 +17894,8 @@ xr.exports;
|
|
|
17891
17894
|
"^" + ne.call(he).replace(z, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
17892
17895
|
), Qn = X.Symbol, Go = X.Uint8Array, tf = _e.propertyIsEnumerable, ef = Le.splice, nf = pt(Object.keys, Object), Rr = Jn(X, "DataView"), wi = Jn(X, "Map"), Lr = Jn(X, "Promise"), Ir = Jn(X, "Set"), Nr = Jn(X, "WeakMap"), vi = Jn(Object, "create"), sf = An(Rr), rf = An(wi), af = An(Lr), of = An(Ir), lf = An(Nr), xs = Qn ? Qn.prototype : void 0, Fr = xs ? xs.valueOf : void 0, Ko = xs ? xs.toString : void 0;
|
|
17893
17896
|
function En(p) {
|
|
17894
|
-
var v = -1,
|
|
17895
|
-
for (this.clear(); ++v <
|
|
17897
|
+
var v = -1, A = p ? p.length : 0;
|
|
17898
|
+
for (this.clear(); ++v < A; ) {
|
|
17896
17899
|
var L = p[v];
|
|
17897
17900
|
this.set(L[0], L[1]);
|
|
17898
17901
|
}
|
|
@@ -17906,8 +17909,8 @@ xr.exports;
|
|
|
17906
17909
|
function df(p) {
|
|
17907
17910
|
var v = this.__data__;
|
|
17908
17911
|
if (vi) {
|
|
17909
|
-
var
|
|
17910
|
-
return
|
|
17912
|
+
var A = v[p];
|
|
17913
|
+
return A === s ? void 0 : A;
|
|
17911
17914
|
}
|
|
17912
17915
|
return he.call(v, p) ? v[p] : void 0;
|
|
17913
17916
|
}
|
|
@@ -17916,13 +17919,13 @@ xr.exports;
|
|
|
17916
17919
|
return vi ? v[p] !== void 0 : he.call(v, p);
|
|
17917
17920
|
}
|
|
17918
17921
|
function ff(p, v) {
|
|
17919
|
-
var
|
|
17920
|
-
return
|
|
17922
|
+
var A = this.__data__;
|
|
17923
|
+
return A[p] = vi && v === void 0 ? s : v, this;
|
|
17921
17924
|
}
|
|
17922
17925
|
En.prototype.clear = cf, En.prototype.delete = uf, En.prototype.get = df, En.prototype.has = hf, En.prototype.set = ff;
|
|
17923
17926
|
function Xe(p) {
|
|
17924
|
-
var v = -1,
|
|
17925
|
-
for (this.clear(); ++v <
|
|
17927
|
+
var v = -1, A = p ? p.length : 0;
|
|
17928
|
+
for (this.clear(); ++v < A; ) {
|
|
17926
17929
|
var L = p[v];
|
|
17927
17930
|
this.set(L[0], L[1]);
|
|
17928
17931
|
}
|
|
@@ -17931,27 +17934,27 @@ xr.exports;
|
|
|
17931
17934
|
this.__data__ = [];
|
|
17932
17935
|
}
|
|
17933
17936
|
function pf(p) {
|
|
17934
|
-
var v = this.__data__,
|
|
17935
|
-
if (
|
|
17937
|
+
var v = this.__data__, A = ws(v, p);
|
|
17938
|
+
if (A < 0)
|
|
17936
17939
|
return !1;
|
|
17937
17940
|
var L = v.length - 1;
|
|
17938
|
-
return
|
|
17941
|
+
return A == L ? v.pop() : ef.call(v, A, 1), !0;
|
|
17939
17942
|
}
|
|
17940
17943
|
function mf(p) {
|
|
17941
|
-
var v = this.__data__,
|
|
17942
|
-
return
|
|
17944
|
+
var v = this.__data__, A = ws(v, p);
|
|
17945
|
+
return A < 0 ? void 0 : v[A][1];
|
|
17943
17946
|
}
|
|
17944
17947
|
function bf(p) {
|
|
17945
17948
|
return ws(this.__data__, p) > -1;
|
|
17946
17949
|
}
|
|
17947
17950
|
function yf(p, v) {
|
|
17948
|
-
var
|
|
17949
|
-
return L < 0 ?
|
|
17951
|
+
var A = this.__data__, L = ws(A, p);
|
|
17952
|
+
return L < 0 ? A.push([p, v]) : A[L][1] = v, this;
|
|
17950
17953
|
}
|
|
17951
17954
|
Xe.prototype.clear = gf, Xe.prototype.delete = pf, Xe.prototype.get = mf, Xe.prototype.has = bf, Xe.prototype.set = yf;
|
|
17952
17955
|
function Ge(p) {
|
|
17953
|
-
var v = -1,
|
|
17954
|
-
for (this.clear(); ++v <
|
|
17956
|
+
var v = -1, A = p ? p.length : 0;
|
|
17957
|
+
for (this.clear(); ++v < A; ) {
|
|
17955
17958
|
var L = p[v];
|
|
17956
17959
|
this.set(L[0], L[1]);
|
|
17957
17960
|
}
|
|
@@ -17977,8 +17980,8 @@ xr.exports;
|
|
|
17977
17980
|
}
|
|
17978
17981
|
Ge.prototype.clear = xf, Ge.prototype.delete = _f, Ge.prototype.get = wf, Ge.prototype.has = vf, Ge.prototype.set = Mf;
|
|
17979
17982
|
function _s(p) {
|
|
17980
|
-
var v = -1,
|
|
17981
|
-
for (this.__data__ = new Ge(); ++v <
|
|
17983
|
+
var v = -1, A = p ? p.length : 0;
|
|
17984
|
+
for (this.__data__ = new Ge(); ++v < A; )
|
|
17982
17985
|
this.add(p[v]);
|
|
17983
17986
|
}
|
|
17984
17987
|
function Sf(p) {
|
|
@@ -18004,26 +18007,26 @@ xr.exports;
|
|
|
18004
18007
|
return this.__data__.has(p);
|
|
18005
18008
|
}
|
|
18006
18009
|
function Of(p, v) {
|
|
18007
|
-
var
|
|
18008
|
-
if (
|
|
18009
|
-
var L =
|
|
18010
|
+
var A = this.__data__;
|
|
18011
|
+
if (A instanceof Xe) {
|
|
18012
|
+
var L = A.__data__;
|
|
18010
18013
|
if (!wi || L.length < e - 1)
|
|
18011
18014
|
return L.push([p, v]), this;
|
|
18012
|
-
|
|
18015
|
+
A = this.__data__ = new Ge(L);
|
|
18013
18016
|
}
|
|
18014
|
-
return
|
|
18017
|
+
return A.set(p, v), this;
|
|
18015
18018
|
}
|
|
18016
18019
|
Ke.prototype.clear = Df, Ke.prototype.delete = Tf, Ke.prototype.get = Cf, Ke.prototype.has = Pf, Ke.prototype.set = Of;
|
|
18017
18020
|
function Ef(p, v) {
|
|
18018
|
-
var
|
|
18021
|
+
var A = Rn(p) || sl(p) ? Re(p.length, String) : [], L = A.length, nt = !!L;
|
|
18019
18022
|
for (var U in p)
|
|
18020
|
-
he.call(p, U) && !(nt && (U == "length" || tl(U, L))) &&
|
|
18021
|
-
return
|
|
18023
|
+
he.call(p, U) && !(nt && (U == "length" || tl(U, L))) && A.push(U);
|
|
18024
|
+
return A;
|
|
18022
18025
|
}
|
|
18023
18026
|
function ws(p, v) {
|
|
18024
|
-
for (var
|
|
18025
|
-
if (il(p[
|
|
18026
|
-
return
|
|
18027
|
+
for (var A = p.length; A--; )
|
|
18028
|
+
if (il(p[A][0], v))
|
|
18029
|
+
return A;
|
|
18027
18030
|
return -1;
|
|
18028
18031
|
}
|
|
18029
18032
|
var Af = Uf();
|
|
@@ -18032,9 +18035,9 @@ xr.exports;
|
|
|
18032
18035
|
}
|
|
18033
18036
|
function Zo(p, v) {
|
|
18034
18037
|
v = Ms(v, p) ? [v] : Qo(v);
|
|
18035
|
-
for (var
|
|
18036
|
-
p = p[Ss(v[
|
|
18037
|
-
return
|
|
18038
|
+
for (var A = 0, L = v.length; p != null && A < L; )
|
|
18039
|
+
p = p[Ss(v[A++])];
|
|
18040
|
+
return A && A == L ? p : void 0;
|
|
18038
18041
|
}
|
|
18039
18042
|
function Lf(p) {
|
|
18040
18043
|
return qt.call(p);
|
|
@@ -18042,35 +18045,35 @@ xr.exports;
|
|
|
18042
18045
|
function If(p, v) {
|
|
18043
18046
|
return p != null && v in Object(p);
|
|
18044
18047
|
}
|
|
18045
|
-
function zr(p, v,
|
|
18046
|
-
return p === v ? !0 : p == null || v == null || !ks(p) && !Ds(v) ? p !== p && v !== v : Nf(p, v, zr,
|
|
18048
|
+
function zr(p, v, A, L, nt) {
|
|
18049
|
+
return p === v ? !0 : p == null || v == null || !ks(p) && !Ds(v) ? p !== p && v !== v : Nf(p, v, zr, A, L, nt);
|
|
18047
18050
|
}
|
|
18048
|
-
function Nf(p, v,
|
|
18051
|
+
function Nf(p, v, A, L, nt, U) {
|
|
18049
18052
|
var at = Rn(p), Ut = Rn(v), Nt = u, Jt = u;
|
|
18050
18053
|
at || (Nt = cn(p), Nt = Nt == c ? w : Nt), Ut || (Jt = cn(v), Jt = Jt == c ? w : Jt);
|
|
18051
18054
|
var fe = Nt == w && !Ot(p), ge = Jt == w && !Ot(v), ie = Nt == Jt;
|
|
18052
18055
|
if (ie && !fe)
|
|
18053
|
-
return U || (U = new Ke()), at || ng(p) ? Jo(p, v,
|
|
18056
|
+
return U || (U = new Ke()), at || ng(p) ? Jo(p, v, A, L, nt, U) : Vf(p, v, Nt, A, L, nt, U);
|
|
18054
18057
|
if (!(nt & a)) {
|
|
18055
18058
|
var De = fe && he.call(p, "__wrapped__"), Te = ge && he.call(v, "__wrapped__");
|
|
18056
18059
|
if (De || Te) {
|
|
18057
18060
|
var un = De ? p.value() : p, Ze = Te ? v.value() : v;
|
|
18058
|
-
return U || (U = new Ke()),
|
|
18061
|
+
return U || (U = new Ke()), A(un, Ze, L, nt, U);
|
|
18059
18062
|
}
|
|
18060
18063
|
}
|
|
18061
|
-
return ie ? (U || (U = new Ke()), Xf(p, v,
|
|
18064
|
+
return ie ? (U || (U = new Ke()), Xf(p, v, A, L, nt, U)) : !1;
|
|
18062
18065
|
}
|
|
18063
|
-
function Ff(p, v,
|
|
18064
|
-
var nt =
|
|
18066
|
+
function Ff(p, v, A, L) {
|
|
18067
|
+
var nt = A.length, U = nt;
|
|
18065
18068
|
if (p == null)
|
|
18066
18069
|
return !U;
|
|
18067
18070
|
for (p = Object(p); nt--; ) {
|
|
18068
|
-
var at =
|
|
18071
|
+
var at = A[nt];
|
|
18069
18072
|
if (at[2] ? at[1] !== p[at[0]] : !(at[0] in p))
|
|
18070
18073
|
return !1;
|
|
18071
18074
|
}
|
|
18072
18075
|
for (; ++nt < U; ) {
|
|
18073
|
-
at =
|
|
18076
|
+
at = A[nt];
|
|
18074
18077
|
var Ut = at[0], Nt = p[Ut], Jt = at[1];
|
|
18075
18078
|
if (at[2]) {
|
|
18076
18079
|
if (Nt === void 0 && !(Ut in p))
|
|
@@ -18099,20 +18102,20 @@ xr.exports;
|
|
|
18099
18102
|
if (!Jf(p))
|
|
18100
18103
|
return nf(p);
|
|
18101
18104
|
var v = [];
|
|
18102
|
-
for (var
|
|
18103
|
-
he.call(p,
|
|
18105
|
+
for (var A in Object(p))
|
|
18106
|
+
he.call(p, A) && A != "constructor" && v.push(A);
|
|
18104
18107
|
return v;
|
|
18105
18108
|
}
|
|
18106
18109
|
function Yf(p) {
|
|
18107
18110
|
var v = Gf(p);
|
|
18108
|
-
return v.length == 1 && v[0][2] ? nl(v[0][0], v[0][1]) : function(
|
|
18109
|
-
return
|
|
18111
|
+
return v.length == 1 && v[0][2] ? nl(v[0][0], v[0][1]) : function(A) {
|
|
18112
|
+
return A === p || Ff(A, p, v);
|
|
18110
18113
|
};
|
|
18111
18114
|
}
|
|
18112
18115
|
function jf(p, v) {
|
|
18113
|
-
return Ms(p) && el(v) ? nl(Ss(p), v) : function(
|
|
18114
|
-
var L = sg(
|
|
18115
|
-
return L === void 0 && L === v ? rg(
|
|
18116
|
+
return Ms(p) && el(v) ? nl(Ss(p), v) : function(A) {
|
|
18117
|
+
var L = sg(A, p);
|
|
18118
|
+
return L === void 0 && L === v ? rg(A, p) : zr(v, L, void 0, r | a);
|
|
18116
18119
|
};
|
|
18117
18120
|
}
|
|
18118
18121
|
function $f(p) {
|
|
@@ -18132,16 +18135,16 @@ xr.exports;
|
|
|
18132
18135
|
return Rn(p) ? p : tg(p);
|
|
18133
18136
|
}
|
|
18134
18137
|
function Uf(p) {
|
|
18135
|
-
return function(v,
|
|
18138
|
+
return function(v, A, L) {
|
|
18136
18139
|
for (var nt = -1, U = Object(v), at = L(v), Ut = at.length; Ut--; ) {
|
|
18137
18140
|
var Nt = at[++nt];
|
|
18138
|
-
if (
|
|
18141
|
+
if (A(U[Nt], Nt, U) === !1)
|
|
18139
18142
|
break;
|
|
18140
18143
|
}
|
|
18141
18144
|
return v;
|
|
18142
18145
|
};
|
|
18143
18146
|
}
|
|
18144
|
-
function Jo(p, v,
|
|
18147
|
+
function Jo(p, v, A, L, nt, U) {
|
|
18145
18148
|
var at = nt & a, Ut = p.length, Nt = v.length;
|
|
18146
18149
|
if (Ut != Nt && !(at && Nt > Ut))
|
|
18147
18150
|
return !1;
|
|
@@ -18161,21 +18164,21 @@ xr.exports;
|
|
|
18161
18164
|
}
|
|
18162
18165
|
if (ie) {
|
|
18163
18166
|
if (!ue(v, function(Ze, Ln) {
|
|
18164
|
-
if (!ie.has(Ln) && (De === Ze ||
|
|
18167
|
+
if (!ie.has(Ln) && (De === Ze || A(De, Ze, L, nt, U)))
|
|
18165
18168
|
return ie.add(Ln);
|
|
18166
18169
|
})) {
|
|
18167
18170
|
ge = !1;
|
|
18168
18171
|
break;
|
|
18169
18172
|
}
|
|
18170
|
-
} else if (!(De === Te ||
|
|
18173
|
+
} else if (!(De === Te || A(De, Te, L, nt, U))) {
|
|
18171
18174
|
ge = !1;
|
|
18172
18175
|
break;
|
|
18173
18176
|
}
|
|
18174
18177
|
}
|
|
18175
18178
|
return U.delete(p), U.delete(v), ge;
|
|
18176
18179
|
}
|
|
18177
|
-
function Vf(p, v,
|
|
18178
|
-
switch (
|
|
18180
|
+
function Vf(p, v, A, L, nt, U, at) {
|
|
18181
|
+
switch (A) {
|
|
18179
18182
|
case S:
|
|
18180
18183
|
if (p.byteLength != v.byteLength || p.byteOffset != v.byteOffset)
|
|
18181
18184
|
return !1;
|
|
@@ -18189,7 +18192,7 @@ xr.exports;
|
|
|
18189
18192
|
case f:
|
|
18190
18193
|
return p.name == v.name && p.message == v.message;
|
|
18191
18194
|
case T:
|
|
18192
|
-
case
|
|
18195
|
+
case O:
|
|
18193
18196
|
return p == v + "";
|
|
18194
18197
|
case y:
|
|
18195
18198
|
var Ut = Ue;
|
|
@@ -18203,13 +18206,13 @@ xr.exports;
|
|
|
18203
18206
|
U |= r, at.set(p, v);
|
|
18204
18207
|
var fe = Jo(Ut(p), Ut(v), L, nt, U, at);
|
|
18205
18208
|
return at.delete(p), fe;
|
|
18206
|
-
case
|
|
18209
|
+
case D:
|
|
18207
18210
|
if (Fr)
|
|
18208
18211
|
return Fr.call(p) == Fr.call(v);
|
|
18209
18212
|
}
|
|
18210
18213
|
return !1;
|
|
18211
18214
|
}
|
|
18212
|
-
function Xf(p, v,
|
|
18215
|
+
function Xf(p, v, A, L, nt, U) {
|
|
18213
18216
|
var at = nt & a, Ut = Ts(p), Nt = Ut.length, Jt = Ts(v), fe = Jt.length;
|
|
18214
18217
|
if (Nt != fe && !at)
|
|
18215
18218
|
return !1;
|
|
@@ -18228,7 +18231,7 @@ xr.exports;
|
|
|
18228
18231
|
var Ze = p[ie], Ln = v[ie];
|
|
18229
18232
|
if (L)
|
|
18230
18233
|
var ol = at ? L(Ln, Ze, ie, v, p, U) : L(Ze, Ln, ie, p, v, U);
|
|
18231
|
-
if (!(ol === void 0 ? Ze === Ln ||
|
|
18234
|
+
if (!(ol === void 0 ? Ze === Ln || A(Ze, Ln, L, nt, U) : ol)) {
|
|
18232
18235
|
Te = !1;
|
|
18233
18236
|
break;
|
|
18234
18237
|
}
|
|
@@ -18241,23 +18244,23 @@ xr.exports;
|
|
|
18241
18244
|
return U.delete(p), U.delete(v), Te;
|
|
18242
18245
|
}
|
|
18243
18246
|
function vs(p, v) {
|
|
18244
|
-
var
|
|
18245
|
-
return Zf(v) ?
|
|
18247
|
+
var A = p.__data__;
|
|
18248
|
+
return Zf(v) ? A[typeof v == "string" ? "string" : "hash"] : A.map;
|
|
18246
18249
|
}
|
|
18247
18250
|
function Gf(p) {
|
|
18248
|
-
for (var v = Ts(p),
|
|
18249
|
-
var L = v[
|
|
18250
|
-
v[
|
|
18251
|
+
for (var v = Ts(p), A = v.length; A--; ) {
|
|
18252
|
+
var L = v[A], nt = p[L];
|
|
18253
|
+
v[A] = [L, nt, el(nt)];
|
|
18251
18254
|
}
|
|
18252
18255
|
return v;
|
|
18253
18256
|
}
|
|
18254
18257
|
function Jn(p, v) {
|
|
18255
|
-
var
|
|
18256
|
-
return zf(
|
|
18258
|
+
var A = Dt(p, v);
|
|
18259
|
+
return zf(A) ? A : void 0;
|
|
18257
18260
|
}
|
|
18258
18261
|
var cn = Lf;
|
|
18259
18262
|
(Rr && cn(new Rr(new ArrayBuffer(1))) != S || wi && cn(new wi()) != y || Lr && cn(Lr.resolve()) != M || Ir && cn(new Ir()) != k || Nr && cn(new Nr()) != b) && (cn = function(p) {
|
|
18260
|
-
var v = qt.call(p),
|
|
18263
|
+
var v = qt.call(p), A = v == w ? p.constructor : void 0, L = A ? An(A) : void 0;
|
|
18261
18264
|
if (L)
|
|
18262
18265
|
switch (L) {
|
|
18263
18266
|
case sf:
|
|
@@ -18273,11 +18276,11 @@ xr.exports;
|
|
|
18273
18276
|
}
|
|
18274
18277
|
return v;
|
|
18275
18278
|
});
|
|
18276
|
-
function Kf(p, v,
|
|
18279
|
+
function Kf(p, v, A) {
|
|
18277
18280
|
v = Ms(v, p) ? [v] : Qo(v);
|
|
18278
18281
|
for (var L, nt = -1, at = v.length; ++nt < at; ) {
|
|
18279
18282
|
var U = Ss(v[nt]);
|
|
18280
|
-
if (!(L = p != null &&
|
|
18283
|
+
if (!(L = p != null && A(p, U)))
|
|
18281
18284
|
break;
|
|
18282
18285
|
p = p[U];
|
|
18283
18286
|
}
|
|
@@ -18292,8 +18295,8 @@ xr.exports;
|
|
|
18292
18295
|
function Ms(p, v) {
|
|
18293
18296
|
if (Rn(p))
|
|
18294
18297
|
return !1;
|
|
18295
|
-
var
|
|
18296
|
-
return
|
|
18298
|
+
var A = typeof p;
|
|
18299
|
+
return A == "number" || A == "symbol" || A == "boolean" || p == null || Br(p) ? !0 : St.test(p) || !It.test(p) || v != null && p in Object(v);
|
|
18297
18300
|
}
|
|
18298
18301
|
function Zf(p) {
|
|
18299
18302
|
var v = typeof p;
|
|
@@ -18303,22 +18306,22 @@ xr.exports;
|
|
|
18303
18306
|
return !!Ie && Ie in p;
|
|
18304
18307
|
}
|
|
18305
18308
|
function Jf(p) {
|
|
18306
|
-
var v = p && p.constructor,
|
|
18307
|
-
return p ===
|
|
18309
|
+
var v = p && p.constructor, A = typeof v == "function" && v.prototype || _e;
|
|
18310
|
+
return p === A;
|
|
18308
18311
|
}
|
|
18309
18312
|
function el(p) {
|
|
18310
18313
|
return p === p && !ks(p);
|
|
18311
18314
|
}
|
|
18312
18315
|
function nl(p, v) {
|
|
18313
|
-
return function(
|
|
18314
|
-
return
|
|
18316
|
+
return function(A) {
|
|
18317
|
+
return A == null ? !1 : A[p] === v && (v !== void 0 || p in Object(A));
|
|
18315
18318
|
};
|
|
18316
18319
|
}
|
|
18317
18320
|
var tg = Hr(function(p) {
|
|
18318
18321
|
p = ig(p);
|
|
18319
18322
|
var v = [];
|
|
18320
|
-
return W.test(p) && v.push(""), p.replace(R, function(
|
|
18321
|
-
v.push(nt ? U.replace(j, "$1") : L ||
|
|
18323
|
+
return W.test(p) && v.push(""), p.replace(R, function(A, L, nt, U) {
|
|
18324
|
+
v.push(nt ? U.replace(j, "$1") : L || A);
|
|
18322
18325
|
}), v;
|
|
18323
18326
|
});
|
|
18324
18327
|
function Ss(p) {
|
|
@@ -18343,14 +18346,14 @@ xr.exports;
|
|
|
18343
18346
|
function Hr(p, v) {
|
|
18344
18347
|
if (typeof p != "function" || v && typeof v != "function")
|
|
18345
18348
|
throw new TypeError(i);
|
|
18346
|
-
var
|
|
18347
|
-
var L = arguments, nt = v ? v.apply(this, L) : L[0], U =
|
|
18349
|
+
var A = function() {
|
|
18350
|
+
var L = arguments, nt = v ? v.apply(this, L) : L[0], U = A.cache;
|
|
18348
18351
|
if (U.has(nt))
|
|
18349
18352
|
return U.get(nt);
|
|
18350
18353
|
var at = p.apply(this, L);
|
|
18351
|
-
return
|
|
18354
|
+
return A.cache = U.set(nt, at), at;
|
|
18352
18355
|
};
|
|
18353
|
-
return
|
|
18356
|
+
return A.cache = new (Hr.Cache || Ge)(), A;
|
|
18354
18357
|
}
|
|
18355
18358
|
Hr.Cache = Ge;
|
|
18356
18359
|
function il(p, v) {
|
|
@@ -18381,15 +18384,15 @@ xr.exports;
|
|
|
18381
18384
|
return !!p && typeof p == "object";
|
|
18382
18385
|
}
|
|
18383
18386
|
function Br(p) {
|
|
18384
|
-
return typeof p == "symbol" || Ds(p) && qt.call(p) ==
|
|
18387
|
+
return typeof p == "symbol" || Ds(p) && qt.call(p) == D;
|
|
18385
18388
|
}
|
|
18386
18389
|
var ng = ce ? de(ce) : Hf;
|
|
18387
18390
|
function ig(p) {
|
|
18388
18391
|
return p == null ? "" : qf(p);
|
|
18389
18392
|
}
|
|
18390
|
-
function sg(p, v,
|
|
18393
|
+
function sg(p, v, A) {
|
|
18391
18394
|
var L = p == null ? void 0 : Zo(p, v);
|
|
18392
|
-
return L === void 0 ?
|
|
18395
|
+
return L === void 0 ? A : L;
|
|
18393
18396
|
}
|
|
18394
18397
|
function rg(p, v) {
|
|
18395
18398
|
return p != null && Kf(p, v, If);
|
|
@@ -18398,10 +18401,10 @@ xr.exports;
|
|
|
18398
18401
|
return rl(p) ? Ef(p) : Bf(p);
|
|
18399
18402
|
}
|
|
18400
18403
|
function ag(p, v) {
|
|
18401
|
-
var
|
|
18404
|
+
var A = {};
|
|
18402
18405
|
return v = Wf(v), Rf(p, function(L, nt, U) {
|
|
18403
|
-
|
|
18404
|
-
}),
|
|
18406
|
+
A[v(L, nt, U)] = L;
|
|
18407
|
+
}), A;
|
|
18405
18408
|
}
|
|
18406
18409
|
function og(p) {
|
|
18407
18410
|
return p;
|
|
@@ -18590,26 +18593,26 @@ License: MIT
|
|
|
18590
18593
|
})(be, function e() {
|
|
18591
18594
|
var i = typeof self < "u" ? self : typeof window < "u" ? window : i !== void 0 ? i : {}, s = !i.document && !!i.postMessage, r = i.IS_PAPA_WORKER || !1, a = {}, o = 0, l = { parse: function(b, x) {
|
|
18592
18595
|
var S = (x = x || {}).dynamicTyping || !1;
|
|
18593
|
-
if (
|
|
18594
|
-
var
|
|
18596
|
+
if (D(S) && (x.dynamicTypingFunction = S, S = {}), x.dynamicTyping = S, x.transform = !!D(x.transform) && x.transform, x.worker && l.WORKERS_SUPPORTED) {
|
|
18597
|
+
var P = function() {
|
|
18595
18598
|
if (!l.WORKERS_SUPPORTED) return !1;
|
|
18596
18599
|
var N = (G = i.URL || i.webkitURL || null, q = e.toString(), l.BLOB_URL || (l.BLOB_URL = G.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", q, ")();"], { type: "text/javascript" })))), $ = new i.Worker(N), G, q;
|
|
18597
18600
|
return $.onmessage = w, $.id = o++, a[$.id] = $;
|
|
18598
18601
|
}();
|
|
18599
|
-
return
|
|
18602
|
+
return P.userStep = x.step, P.userChunk = x.chunk, P.userComplete = x.complete, P.userError = x.error, x.step = D(x.step), x.chunk = D(x.chunk), x.complete = D(x.complete), x.error = D(x.error), delete x.worker, void P.postMessage({ input: b, config: x, workerId: P.id });
|
|
18600
18603
|
}
|
|
18601
|
-
var
|
|
18604
|
+
var E = null;
|
|
18602
18605
|
return l.NODE_STREAM_INPUT, typeof b == "string" ? (b = function(N) {
|
|
18603
18606
|
return N.charCodeAt(0) === 65279 ? N.slice(1) : N;
|
|
18604
|
-
}(b),
|
|
18607
|
+
}(b), E = x.download ? new d(x) : new f(x)) : b.readable === !0 && D(b.read) && D(b.on) ? E = new g(x) : (i.File && b instanceof File || b instanceof Object) && (E = new h(x)), E.stream(b);
|
|
18605
18608
|
}, unparse: function(b, x) {
|
|
18606
|
-
var S = !1,
|
|
18609
|
+
var S = !1, P = !0, E = ",", N = `\r
|
|
18607
18610
|
`, $ = '"', G = $ + $, q = !1, I = null, rt = !1;
|
|
18608
18611
|
(function() {
|
|
18609
18612
|
if (typeof x == "object") {
|
|
18610
18613
|
if (typeof x.delimiter != "string" || l.BAD_DELIMITERS.filter(function(W) {
|
|
18611
18614
|
return x.delimiter.indexOf(W) !== -1;
|
|
18612
|
-
}).length || (
|
|
18615
|
+
}).length || (E = x.delimiter), (typeof x.quotes == "boolean" || typeof x.quotes == "function" || Array.isArray(x.quotes)) && (S = x.quotes), typeof x.skipEmptyLines != "boolean" && typeof x.skipEmptyLines != "string" || (q = x.skipEmptyLines), typeof x.newline == "string" && (N = x.newline), typeof x.quoteChar == "string" && ($ = x.quoteChar), typeof x.header == "boolean" && (P = x.header), Array.isArray(x.columns)) {
|
|
18613
18616
|
if (x.columns.length === 0) throw new Error("Option columns is empty");
|
|
18614
18617
|
I = x.columns;
|
|
18615
18618
|
}
|
|
@@ -18626,8 +18629,8 @@ License: MIT
|
|
|
18626
18629
|
var j = "";
|
|
18627
18630
|
typeof W == "string" && (W = JSON.parse(W)), typeof R == "string" && (R = JSON.parse(R));
|
|
18628
18631
|
var V = Array.isArray(W) && 0 < W.length, K = !Array.isArray(R[0]);
|
|
18629
|
-
if (V &&
|
|
18630
|
-
for (var Y = 0; Y < W.length; Y++) 0 < Y && (j +=
|
|
18632
|
+
if (V && P) {
|
|
18633
|
+
for (var Y = 0; Y < W.length; Y++) 0 < Y && (j += E), j += St(W[Y], Y);
|
|
18631
18634
|
0 < R.length && (j += N);
|
|
18632
18635
|
}
|
|
18633
18636
|
for (var B = 0; B < R.length; B++) {
|
|
@@ -18641,7 +18644,7 @@ License: MIT
|
|
|
18641
18644
|
}
|
|
18642
18645
|
if (!X) {
|
|
18643
18646
|
for (var wt = 0; wt < et; wt++) {
|
|
18644
|
-
0 < wt && !kt && (j +=
|
|
18647
|
+
0 < wt && !kt && (j += E);
|
|
18645
18648
|
var ce = V && K ? W[wt] : wt;
|
|
18646
18649
|
j += St(R[B][ce], wt);
|
|
18647
18650
|
}
|
|
@@ -18659,7 +18662,7 @@ License: MIT
|
|
|
18659
18662
|
return (z = z || S === !0 || typeof S == "function" && S(W, R) || Array.isArray(S) && S[R] || function(V, K) {
|
|
18660
18663
|
for (var Y = 0; Y < K.length; Y++) if (-1 < V.indexOf(K[Y])) return !0;
|
|
18661
18664
|
return !1;
|
|
18662
|
-
}(j, l.BAD_DELIMITERS) || -1 < j.indexOf(
|
|
18665
|
+
}(j, l.BAD_DELIMITERS) || -1 < j.indexOf(E) || j.charAt(0) === " " || j.charAt(j.length - 1) === " ") ? $ + j + $ : j;
|
|
18663
18666
|
}
|
|
18664
18667
|
} };
|
|
18665
18668
|
if (l.RECORD_SEP = "", l.UNIT_SEP = "", l.BYTE_ORDER_MARK = "\uFEFF", l.BAD_DELIMITERS = ["\r", `
|
|
@@ -18670,26 +18673,26 @@ License: MIT
|
|
|
18670
18673
|
return this.each(function(N) {
|
|
18671
18674
|
if (!(c(this).prop("tagName").toUpperCase() === "INPUT" && c(this).attr("type").toLowerCase() === "file" && i.FileReader) || !this.files || this.files.length === 0) return !0;
|
|
18672
18675
|
for (var $ = 0; $ < this.files.length; $++) S.push({ file: this.files[$], inputElem: this, instanceConfig: c.extend({}, x) });
|
|
18673
|
-
}),
|
|
18674
|
-
function
|
|
18676
|
+
}), P(), this;
|
|
18677
|
+
function P() {
|
|
18675
18678
|
if (S.length !== 0) {
|
|
18676
18679
|
var N, $, G, q, I = S[0];
|
|
18677
|
-
if (
|
|
18680
|
+
if (D(b.before)) {
|
|
18678
18681
|
var rt = b.before(I.file, I.inputElem);
|
|
18679
18682
|
if (typeof rt == "object") {
|
|
18680
|
-
if (rt.action === "abort") return N = "AbortError", $ = I.file, G = I.inputElem, q = rt.reason, void (
|
|
18681
|
-
if (rt.action === "skip") return void
|
|
18683
|
+
if (rt.action === "abort") return N = "AbortError", $ = I.file, G = I.inputElem, q = rt.reason, void (D(b.error) && b.error({ name: N }, $, G, q));
|
|
18684
|
+
if (rt.action === "skip") return void E();
|
|
18682
18685
|
typeof rt.config == "object" && (I.instanceConfig = c.extend(I.instanceConfig, rt.config));
|
|
18683
|
-
} else if (rt === "skip") return void
|
|
18686
|
+
} else if (rt === "skip") return void E();
|
|
18684
18687
|
}
|
|
18685
18688
|
var F = I.instanceConfig.complete;
|
|
18686
18689
|
I.instanceConfig.complete = function(It) {
|
|
18687
|
-
|
|
18690
|
+
D(F) && F(It, I.file, I.inputElem), E();
|
|
18688
18691
|
}, l.parse(I.file, I.instanceConfig);
|
|
18689
|
-
} else
|
|
18692
|
+
} else D(b.complete) && b.complete();
|
|
18690
18693
|
}
|
|
18691
|
-
function
|
|
18692
|
-
S.splice(0, 1),
|
|
18694
|
+
function E() {
|
|
18695
|
+
S.splice(0, 1), P();
|
|
18693
18696
|
}
|
|
18694
18697
|
};
|
|
18695
18698
|
}
|
|
@@ -18698,28 +18701,28 @@ License: MIT
|
|
|
18698
18701
|
var S = k(x);
|
|
18699
18702
|
S.chunkSize = parseInt(S.chunkSize), x.step || x.chunk || (S.chunkSize = null), this._handle = new m(S), (this._handle.streamer = this)._config = S;
|
|
18700
18703
|
}).call(this, b), this.parseChunk = function(x, S) {
|
|
18701
|
-
if (this.isFirstChunk &&
|
|
18702
|
-
var
|
|
18703
|
-
|
|
18704
|
+
if (this.isFirstChunk && D(this._config.beforeFirstChunk)) {
|
|
18705
|
+
var P = this._config.beforeFirstChunk(x);
|
|
18706
|
+
P !== void 0 && (x = P);
|
|
18704
18707
|
}
|
|
18705
18708
|
this.isFirstChunk = !1, this._halted = !1;
|
|
18706
|
-
var
|
|
18709
|
+
var E = this._partialLine + x;
|
|
18707
18710
|
this._partialLine = "";
|
|
18708
|
-
var N = this._handle.parse(
|
|
18711
|
+
var N = this._handle.parse(E, this._baseIndex, !this._finished);
|
|
18709
18712
|
if (!this._handle.paused() && !this._handle.aborted()) {
|
|
18710
18713
|
var $ = N.meta.cursor;
|
|
18711
|
-
this._finished || (this._partialLine =
|
|
18714
|
+
this._finished || (this._partialLine = E.substring($ - this._baseIndex), this._baseIndex = $), N && N.data && (this._rowCount += N.data.length);
|
|
18712
18715
|
var G = this._finished || this._config.preview && this._rowCount >= this._config.preview;
|
|
18713
18716
|
if (r) i.postMessage({ results: N, workerId: l.WORKER_ID, finished: G });
|
|
18714
|
-
else if (
|
|
18717
|
+
else if (D(this._config.chunk) && !S) {
|
|
18715
18718
|
if (this._config.chunk(N, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
|
|
18716
18719
|
N = void 0, this._completeResults = void 0;
|
|
18717
18720
|
}
|
|
18718
|
-
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(N.data), this._completeResults.errors = this._completeResults.errors.concat(N.errors), this._completeResults.meta = N.meta), this._completed || !G || !
|
|
18721
|
+
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(N.data), this._completeResults.errors = this._completeResults.errors.concat(N.errors), this._completeResults.meta = N.meta), this._completed || !G || !D(this._config.complete) || N && N.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), G || N && N.meta.paused || this._nextChunk(), N;
|
|
18719
18722
|
}
|
|
18720
18723
|
this._halted = !0;
|
|
18721
18724
|
}, this._sendError = function(x) {
|
|
18722
|
-
|
|
18725
|
+
D(this._config.error) ? this._config.error(x) : r && this._config.error && i.postMessage({ workerId: l.WORKER_ID, error: x, finished: !1 });
|
|
18723
18726
|
};
|
|
18724
18727
|
}
|
|
18725
18728
|
function d(b) {
|
|
@@ -18733,13 +18736,13 @@ License: MIT
|
|
|
18733
18736
|
}, this._readChunk = function() {
|
|
18734
18737
|
if (this._finished) this._chunkLoaded();
|
|
18735
18738
|
else {
|
|
18736
|
-
if (x = new XMLHttpRequest(), this._config.withCredentials && (x.withCredentials = this._config.withCredentials), s || (x.onload =
|
|
18739
|
+
if (x = new XMLHttpRequest(), this._config.withCredentials && (x.withCredentials = this._config.withCredentials), s || (x.onload = O(this._chunkLoaded, this), x.onerror = O(this._chunkError, this)), x.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !s), this._config.downloadRequestHeaders) {
|
|
18737
18740
|
var S = this._config.downloadRequestHeaders;
|
|
18738
|
-
for (var
|
|
18741
|
+
for (var P in S) x.setRequestHeader(P, S[P]);
|
|
18739
18742
|
}
|
|
18740
18743
|
if (this._config.chunkSize) {
|
|
18741
|
-
var
|
|
18742
|
-
x.setRequestHeader("Range", "bytes=" + this._start + "-" +
|
|
18744
|
+
var E = this._start + this._config.chunkSize - 1;
|
|
18745
|
+
x.setRequestHeader("Range", "bytes=" + this._start + "-" + E);
|
|
18743
18746
|
}
|
|
18744
18747
|
try {
|
|
18745
18748
|
x.send(this._config.downloadRequestBody);
|
|
@@ -18750,32 +18753,32 @@ License: MIT
|
|
|
18750
18753
|
}
|
|
18751
18754
|
}, this._chunkLoaded = function() {
|
|
18752
18755
|
x.readyState === 4 && (x.status < 200 || 400 <= x.status ? this._chunkError() : (this._start += this._config.chunkSize ? this._config.chunkSize : x.responseText.length, this._finished = !this._config.chunkSize || this._start >= function(S) {
|
|
18753
|
-
var
|
|
18754
|
-
return
|
|
18756
|
+
var P = S.getResponseHeader("Content-Range");
|
|
18757
|
+
return P === null ? -1 : parseInt(P.substring(P.lastIndexOf("/") + 1));
|
|
18755
18758
|
}(x), this.parseChunk(x.responseText)));
|
|
18756
18759
|
}, this._chunkError = function(S) {
|
|
18757
|
-
var
|
|
18758
|
-
this._sendError(new Error(
|
|
18760
|
+
var P = x.statusText || S;
|
|
18761
|
+
this._sendError(new Error(P));
|
|
18759
18762
|
};
|
|
18760
18763
|
}
|
|
18761
18764
|
function h(b) {
|
|
18762
18765
|
var x, S;
|
|
18763
18766
|
(b = b || {}).chunkSize || (b.chunkSize = l.LocalChunkSize), u.call(this, b);
|
|
18764
|
-
var
|
|
18765
|
-
this.stream = function(
|
|
18766
|
-
this._input =
|
|
18767
|
+
var P = typeof FileReader < "u";
|
|
18768
|
+
this.stream = function(E) {
|
|
18769
|
+
this._input = E, S = E.slice || E.webkitSlice || E.mozSlice, P ? ((x = new FileReader()).onload = O(this._chunkLoaded, this), x.onerror = O(this._chunkError, this)) : x = new FileReaderSync(), this._nextChunk();
|
|
18767
18770
|
}, this._nextChunk = function() {
|
|
18768
18771
|
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
18769
18772
|
}, this._readChunk = function() {
|
|
18770
|
-
var
|
|
18773
|
+
var E = this._input;
|
|
18771
18774
|
if (this._config.chunkSize) {
|
|
18772
18775
|
var N = Math.min(this._start + this._config.chunkSize, this._input.size);
|
|
18773
|
-
|
|
18776
|
+
E = S.call(E, this._start, N);
|
|
18774
18777
|
}
|
|
18775
|
-
var $ = x.readAsText(
|
|
18776
|
-
|
|
18777
|
-
}, this._chunkLoaded = function(
|
|
18778
|
-
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(
|
|
18778
|
+
var $ = x.readAsText(E, this._config.encoding);
|
|
18779
|
+
P || this._chunkLoaded({ target: { result: $ } });
|
|
18780
|
+
}, this._chunkLoaded = function(E) {
|
|
18781
|
+
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(E.target.result);
|
|
18779
18782
|
}, this._chunkError = function() {
|
|
18780
18783
|
this._sendError(x.error);
|
|
18781
18784
|
};
|
|
@@ -18786,41 +18789,41 @@ License: MIT
|
|
|
18786
18789
|
return x = S, this._nextChunk();
|
|
18787
18790
|
}, this._nextChunk = function() {
|
|
18788
18791
|
if (!this._finished) {
|
|
18789
|
-
var S,
|
|
18790
|
-
return
|
|
18792
|
+
var S, P = this._config.chunkSize;
|
|
18793
|
+
return P ? (S = x.substring(0, P), x = x.substring(P)) : (S = x, x = ""), this._finished = !x, this.parseChunk(S);
|
|
18791
18794
|
}
|
|
18792
18795
|
};
|
|
18793
18796
|
}
|
|
18794
18797
|
function g(b) {
|
|
18795
18798
|
u.call(this, b = b || {});
|
|
18796
|
-
var x = [], S = !0,
|
|
18799
|
+
var x = [], S = !0, P = !1;
|
|
18797
18800
|
this.pause = function() {
|
|
18798
18801
|
u.prototype.pause.apply(this, arguments), this._input.pause();
|
|
18799
18802
|
}, this.resume = function() {
|
|
18800
18803
|
u.prototype.resume.apply(this, arguments), this._input.resume();
|
|
18801
|
-
}, this.stream = function(
|
|
18802
|
-
this._input =
|
|
18804
|
+
}, this.stream = function(E) {
|
|
18805
|
+
this._input = E, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
18803
18806
|
}, this._checkIsFinished = function() {
|
|
18804
|
-
|
|
18807
|
+
P && x.length === 1 && (this._finished = !0);
|
|
18805
18808
|
}, this._nextChunk = function() {
|
|
18806
18809
|
this._checkIsFinished(), x.length ? this.parseChunk(x.shift()) : S = !0;
|
|
18807
|
-
}, this._streamData =
|
|
18810
|
+
}, this._streamData = O(function(E) {
|
|
18808
18811
|
try {
|
|
18809
|
-
x.push(typeof
|
|
18812
|
+
x.push(typeof E == "string" ? E : E.toString(this._config.encoding)), S && (S = !1, this._checkIsFinished(), this.parseChunk(x.shift()));
|
|
18810
18813
|
} catch (N) {
|
|
18811
18814
|
this._streamError(N);
|
|
18812
18815
|
}
|
|
18813
|
-
}, this), this._streamError =
|
|
18814
|
-
this._streamCleanUp(), this._sendError(
|
|
18815
|
-
}, this), this._streamEnd =
|
|
18816
|
-
this._streamCleanUp(),
|
|
18817
|
-
}, this), this._streamCleanUp =
|
|
18816
|
+
}, this), this._streamError = O(function(E) {
|
|
18817
|
+
this._streamCleanUp(), this._sendError(E);
|
|
18818
|
+
}, this), this._streamEnd = O(function() {
|
|
18819
|
+
this._streamCleanUp(), P = !0, this._streamData("");
|
|
18820
|
+
}, this), this._streamCleanUp = O(function() {
|
|
18818
18821
|
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
18819
18822
|
}, this);
|
|
18820
18823
|
}
|
|
18821
18824
|
function m(b) {
|
|
18822
|
-
var x, S,
|
|
18823
|
-
if (
|
|
18825
|
+
var x, S, P, E = Math.pow(2, 53), N = -E, $ = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, G = /^((\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)))$/, q = this, I = 0, rt = 0, F = !1, It = !1, St = [], W = { data: [], errors: [], meta: {} };
|
|
18826
|
+
if (D(b.step)) {
|
|
18824
18827
|
var R = b.step;
|
|
18825
18828
|
b.step = function(B) {
|
|
18826
18829
|
if (W = B, V()) j();
|
|
@@ -18834,12 +18837,12 @@ License: MIT
|
|
|
18834
18837
|
return b.skipEmptyLines === "greedy" ? B.join("").trim() === "" : B.length === 1 && B[0].length === 0;
|
|
18835
18838
|
}
|
|
18836
18839
|
function j() {
|
|
18837
|
-
return W &&
|
|
18840
|
+
return W && P && (Y("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + l.DefaultDelimiter + "'"), P = !1), b.skipEmptyLines && (W.data = W.data.filter(function(B) {
|
|
18838
18841
|
return !z(B);
|
|
18839
18842
|
})), V() && function() {
|
|
18840
18843
|
if (!W) return;
|
|
18841
18844
|
function B(X, kt) {
|
|
18842
|
-
|
|
18845
|
+
D(b.transformHeader) && (X = b.transformHeader(X, kt)), St.push(X);
|
|
18843
18846
|
}
|
|
18844
18847
|
if (Array.isArray(W.data[0])) {
|
|
18845
18848
|
for (var et = 0; V() && et < W.data.length; et++) W.data[et].forEach(B);
|
|
@@ -18866,7 +18869,7 @@ License: MIT
|
|
|
18866
18869
|
return X = B, b.dynamicTypingFunction && b.dynamicTyping[X] === void 0 && (b.dynamicTyping[X] = b.dynamicTypingFunction(X)), (b.dynamicTyping[X] || b.dynamicTyping) === !0 ? et === "true" || et === "TRUE" || et !== "false" && et !== "FALSE" && (function(kt) {
|
|
18867
18870
|
if ($.test(kt)) {
|
|
18868
18871
|
var ht = parseFloat(kt);
|
|
18869
|
-
if (N < ht && ht <
|
|
18872
|
+
if (N < ht && ht < E) return !0;
|
|
18870
18873
|
}
|
|
18871
18874
|
return !1;
|
|
18872
18875
|
}(et) ? parseFloat(et) : G.test(et) ? new Date(et) : et === "" ? null : et) : et;
|
|
@@ -18888,7 +18891,7 @@ License: MIT
|
|
|
18888
18891
|
` && de++;
|
|
18889
18892
|
return de >= ue.length / 2 ? `\r
|
|
18890
18893
|
` : "\r";
|
|
18891
|
-
}(B, kt)),
|
|
18894
|
+
}(B, kt)), P = !1, b.delimiter) D(b.delimiter) && (b.delimiter = b.delimiter(B), W.meta.delimiter = b.delimiter);
|
|
18892
18895
|
else {
|
|
18893
18896
|
var ht = function(Pt, wt, ce, ue, Se) {
|
|
18894
18897
|
var Re, de, Dt, Ot;
|
|
@@ -18905,56 +18908,56 @@ License: MIT
|
|
|
18905
18908
|
}
|
|
18906
18909
|
return { successful: !!(b.delimiter = Re), bestDelimiter: Re };
|
|
18907
18910
|
}(B, b.newline, b.skipEmptyLines, b.comments, b.delimitersToGuess);
|
|
18908
|
-
ht.successful ? b.delimiter = ht.bestDelimiter : (
|
|
18911
|
+
ht.successful ? b.delimiter = ht.bestDelimiter : (P = !0, b.delimiter = l.DefaultDelimiter), W.meta.delimiter = b.delimiter;
|
|
18909
18912
|
}
|
|
18910
18913
|
var Xt = k(b);
|
|
18911
18914
|
return b.preview && b.header && Xt.preview++, x = B, S = new _(Xt), W = S.parse(x, et, X), j(), F ? { meta: { paused: !0 } } : W || { meta: { paused: !1 } };
|
|
18912
18915
|
}, this.paused = function() {
|
|
18913
18916
|
return F;
|
|
18914
18917
|
}, this.pause = function() {
|
|
18915
|
-
F = !0, S.abort(), x =
|
|
18918
|
+
F = !0, S.abort(), x = D(b.chunk) ? "" : x.substring(S.getCharIndex());
|
|
18916
18919
|
}, this.resume = function() {
|
|
18917
18920
|
q.streamer._halted ? (F = !1, q.streamer.parseChunk(x, !0)) : setTimeout(q.resume, 3);
|
|
18918
18921
|
}, this.aborted = function() {
|
|
18919
18922
|
return It;
|
|
18920
18923
|
}, this.abort = function() {
|
|
18921
|
-
It = !0, S.abort(), W.meta.aborted = !0,
|
|
18924
|
+
It = !0, S.abort(), W.meta.aborted = !0, D(b.complete) && b.complete(W), x = "";
|
|
18922
18925
|
};
|
|
18923
18926
|
}
|
|
18924
18927
|
function y(b) {
|
|
18925
18928
|
return b.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
18926
18929
|
}
|
|
18927
18930
|
function _(b) {
|
|
18928
|
-
var x, S = (b = b || {}).delimiter,
|
|
18929
|
-
if (b.escapeChar !== void 0 && (q = b.escapeChar), (typeof S != "string" || -1 < l.BAD_DELIMITERS.indexOf(S)) && (S = ","),
|
|
18930
|
-
|
|
18931
|
-
` &&
|
|
18932
|
-
` && (
|
|
18931
|
+
var x, S = (b = b || {}).delimiter, P = b.newline, E = b.comments, N = b.step, $ = b.preview, G = b.fastMode, q = x = b.quoteChar === void 0 || b.quoteChar === null ? '"' : b.quoteChar;
|
|
18932
|
+
if (b.escapeChar !== void 0 && (q = b.escapeChar), (typeof S != "string" || -1 < l.BAD_DELIMITERS.indexOf(S)) && (S = ","), E === S) throw new Error("Comment character same as delimiter");
|
|
18933
|
+
E === !0 ? E = "#" : (typeof E != "string" || -1 < l.BAD_DELIMITERS.indexOf(E)) && (E = !1), P !== `
|
|
18934
|
+
` && P !== "\r" && P !== `\r
|
|
18935
|
+
` && (P = `
|
|
18933
18936
|
`);
|
|
18934
18937
|
var I = 0, rt = !1;
|
|
18935
18938
|
this.parse = function(F, It, St) {
|
|
18936
18939
|
if (typeof F != "string") throw new Error("Input must be a string");
|
|
18937
|
-
var W = F.length, R = S.length, z =
|
|
18940
|
+
var W = F.length, R = S.length, z = P.length, j = E.length, V = D(N), K = [], Y = [], B = [], et = I = 0;
|
|
18938
18941
|
if (!F) return ne();
|
|
18939
18942
|
if (b.header && !It) {
|
|
18940
|
-
var X = F.split(
|
|
18943
|
+
var X = F.split(P)[0].split(S), kt = [], ht = {}, Xt = !1;
|
|
18941
18944
|
for (var Pt in X) {
|
|
18942
18945
|
var wt = X[Pt];
|
|
18943
|
-
|
|
18946
|
+
D(b.transformHeader) && (wt = b.transformHeader(wt, Pt));
|
|
18944
18947
|
var ce = wt, ue = ht[wt] || 0;
|
|
18945
18948
|
for (0 < ue && (Xt = !0, ce = wt + "_" + ue), ht[wt] = ue + 1; kt.includes(ce); ) ce = ce + "_" + ue;
|
|
18946
18949
|
kt.push(ce);
|
|
18947
18950
|
}
|
|
18948
18951
|
if (Xt) {
|
|
18949
|
-
var Se = F.split(
|
|
18950
|
-
Se[0] = kt.join(S), F = Se.join(
|
|
18952
|
+
var Se = F.split(P);
|
|
18953
|
+
Se[0] = kt.join(S), F = Se.join(P);
|
|
18951
18954
|
}
|
|
18952
18955
|
}
|
|
18953
18956
|
if (G || G !== !1 && F.indexOf(x) === -1) {
|
|
18954
|
-
for (var Re = F.split(
|
|
18955
|
-
if (B = Re[de], I += B.length, de !== Re.length - 1) I +=
|
|
18957
|
+
for (var Re = F.split(P), de = 0; de < Re.length; de++) {
|
|
18958
|
+
if (B = Re[de], I += B.length, de !== Re.length - 1) I += P.length;
|
|
18956
18959
|
else if (St) return ne();
|
|
18957
|
-
if (!
|
|
18960
|
+
if (!E || B.substring(0, j) !== E) {
|
|
18958
18961
|
if (V) {
|
|
18959
18962
|
if (K = [], Ve(B.split(S)), he(), rt) return ne();
|
|
18960
18963
|
} else Ve(B.split(S));
|
|
@@ -18963,9 +18966,9 @@ License: MIT
|
|
|
18963
18966
|
}
|
|
18964
18967
|
return ne();
|
|
18965
18968
|
}
|
|
18966
|
-
for (var Dt = F.indexOf(S, I), Ot = F.indexOf(
|
|
18969
|
+
for (var Dt = F.indexOf(S, I), Ot = F.indexOf(P, I), Ue = new RegExp(y(q) + y(x), "g"), pt = F.indexOf(x, I); ; ) if (F[I] !== x) if (E && B.length === 0 && F.substring(I, I + j) === E) {
|
|
18967
18970
|
if (Ot === -1) return ne();
|
|
18968
|
-
I = Ot + z, Ot = F.indexOf(
|
|
18971
|
+
I = Ot + z, Ot = F.indexOf(P, I), Dt = F.indexOf(S, I);
|
|
18969
18972
|
} else if (Dt !== -1 && (Dt < Ot || Ot === -1)) B.push(F.substring(I, Dt)), I = Dt + R, Dt = F.indexOf(S, I);
|
|
18970
18973
|
else {
|
|
18971
18974
|
if (Ot === -1) break;
|
|
@@ -18977,14 +18980,14 @@ License: MIT
|
|
|
18977
18980
|
if (pt === W - 1) return ke(F.substring(I, pt).replace(Ue, x));
|
|
18978
18981
|
if (x !== q || F[pt + 1] !== q) {
|
|
18979
18982
|
if (x === q || pt === 0 || F[pt - 1] !== q) {
|
|
18980
|
-
Dt !== -1 && Dt < pt + 1 && (Dt = F.indexOf(S, pt + 1)), Ot !== -1 && Ot < pt + 1 && (Ot = F.indexOf(
|
|
18983
|
+
Dt !== -1 && Dt < pt + 1 && (Dt = F.indexOf(S, pt + 1)), Ot !== -1 && Ot < pt + 1 && (Ot = F.indexOf(P, pt + 1));
|
|
18981
18984
|
var ln = _e(Ot === -1 ? Dt : Math.min(Dt, Ot));
|
|
18982
18985
|
if (F.substr(pt + 1 + ln, R) === S) {
|
|
18983
|
-
B.push(F.substring(I, pt).replace(Ue, x)), F[I = pt + 1 + ln + R] !== x && (pt = F.indexOf(x, I)), Dt = F.indexOf(S, I), Ot = F.indexOf(
|
|
18986
|
+
B.push(F.substring(I, pt).replace(Ue, x)), F[I = pt + 1 + ln + R] !== x && (pt = F.indexOf(x, I)), Dt = F.indexOf(S, I), Ot = F.indexOf(P, I);
|
|
18984
18987
|
break;
|
|
18985
18988
|
}
|
|
18986
18989
|
var Le = _e(Ot);
|
|
18987
|
-
if (F.substring(pt + 1 + Le, pt + 1 + Le + z) ===
|
|
18990
|
+
if (F.substring(pt + 1 + Le, pt + 1 + Le + z) === P) {
|
|
18988
18991
|
if (B.push(F.substring(I, pt).replace(Ue, x)), Ie(pt + 1 + Le + z), Dt = F.indexOf(S, I), pt = F.indexOf(x, I), V && (he(), rt)) return ne();
|
|
18989
18992
|
if ($ && K.length >= $) return ne(!0);
|
|
18990
18993
|
break;
|
|
@@ -19009,10 +19012,10 @@ License: MIT
|
|
|
19009
19012
|
return St || (qt === void 0 && (qt = F.substring(I)), B.push(qt), I = W, Ve(B), V && he()), ne();
|
|
19010
19013
|
}
|
|
19011
19014
|
function Ie(qt) {
|
|
19012
|
-
I = qt, Ve(B), B = [], Ot = F.indexOf(
|
|
19015
|
+
I = qt, Ve(B), B = [], Ot = F.indexOf(P, I);
|
|
19013
19016
|
}
|
|
19014
19017
|
function ne(qt) {
|
|
19015
|
-
return { data: K, errors: Y, meta: { delimiter: S, linebreak:
|
|
19018
|
+
return { data: K, errors: Y, meta: { delimiter: S, linebreak: P, aborted: rt, truncated: !!qt, cursor: et + (It || 0) } };
|
|
19016
19019
|
}
|
|
19017
19020
|
function he() {
|
|
19018
19021
|
N(ne()), K = [], Y = [];
|
|
@@ -19024,22 +19027,22 @@ License: MIT
|
|
|
19024
19027
|
};
|
|
19025
19028
|
}
|
|
19026
19029
|
function w(b) {
|
|
19027
|
-
var x = b.data, S = a[x.workerId],
|
|
19030
|
+
var x = b.data, S = a[x.workerId], P = !1;
|
|
19028
19031
|
if (x.error) S.userError(x.error, x.file);
|
|
19029
19032
|
else if (x.results && x.results.data) {
|
|
19030
|
-
var
|
|
19031
|
-
|
|
19033
|
+
var E = { abort: function() {
|
|
19034
|
+
P = !0, M(x.workerId, { data: [], errors: [], meta: { aborted: !0 } });
|
|
19032
19035
|
}, pause: T, resume: T };
|
|
19033
|
-
if (
|
|
19034
|
-
for (var N = 0; N < x.results.data.length && (S.userStep({ data: x.results.data[N], errors: x.results.errors, meta: x.results.meta },
|
|
19036
|
+
if (D(S.userStep)) {
|
|
19037
|
+
for (var N = 0; N < x.results.data.length && (S.userStep({ data: x.results.data[N], errors: x.results.errors, meta: x.results.meta }, E), !P); N++) ;
|
|
19035
19038
|
delete x.results;
|
|
19036
|
-
} else
|
|
19039
|
+
} else D(S.userChunk) && (S.userChunk(x.results, E, x.file), delete x.results);
|
|
19037
19040
|
}
|
|
19038
|
-
x.finished && !
|
|
19041
|
+
x.finished && !P && M(x.workerId, x.results);
|
|
19039
19042
|
}
|
|
19040
19043
|
function M(b, x) {
|
|
19041
19044
|
var S = a[b];
|
|
19042
|
-
|
|
19045
|
+
D(S.userComplete) && S.userComplete(x), S.terminate(), delete a[b];
|
|
19043
19046
|
}
|
|
19044
19047
|
function T() {
|
|
19045
19048
|
throw new Error("Not implemented.");
|
|
@@ -19050,12 +19053,12 @@ License: MIT
|
|
|
19050
19053
|
for (var S in b) x[S] = k(b[S]);
|
|
19051
19054
|
return x;
|
|
19052
19055
|
}
|
|
19053
|
-
function
|
|
19056
|
+
function O(b, x) {
|
|
19054
19057
|
return function() {
|
|
19055
19058
|
b.apply(x, arguments);
|
|
19056
19059
|
};
|
|
19057
19060
|
}
|
|
19058
|
-
function
|
|
19061
|
+
function D(b) {
|
|
19059
19062
|
return typeof b == "function";
|
|
19060
19063
|
}
|
|
19061
19064
|
return r && (i.onmessage = function(b) {
|
|
@@ -19653,19 +19656,19 @@ const AD = { class: "kong-ui-public-csv-export-modal" }, RD = {
|
|
|
19653
19656
|
})), h = () => {
|
|
19654
19657
|
s("toggleModal", !1);
|
|
19655
19658
|
}, f = H(() => {
|
|
19656
|
-
var k,
|
|
19659
|
+
var k, O, D;
|
|
19657
19660
|
if (!o.value || !((k = i.chartData) != null && k.meta.metric_names))
|
|
19658
19661
|
return { headers: [], rows: [], csvHeaders: {} };
|
|
19659
19662
|
const m = i.chartData.data.some((b) => b.timestamp !== i.chartData.data[0].timestamp), y = i.chartData.data.map((b) => {
|
|
19660
19663
|
const x = new Date(b.timestamp);
|
|
19661
19664
|
return {
|
|
19662
|
-
...Object.keys(b.event).reduce((
|
|
19663
|
-
if (
|
|
19664
|
-
const N = b.event[
|
|
19665
|
-
|
|
19665
|
+
...Object.keys(b.event).reduce((P, E) => {
|
|
19666
|
+
if (E in i.chartData.meta.display) {
|
|
19667
|
+
const N = b.event[E], $ = i.chartData.meta.display[E];
|
|
19668
|
+
P[E] = N && $ && $[N].name || b.event[E];
|
|
19666
19669
|
} else
|
|
19667
|
-
|
|
19668
|
-
return
|
|
19670
|
+
P[E] = b.event[E];
|
|
19671
|
+
return P;
|
|
19669
19672
|
}, {}),
|
|
19670
19673
|
...m ? {
|
|
19671
19674
|
timestamp: qu(x, "yyyy-MM-dd HH:mm:ss"),
|
|
@@ -19678,7 +19681,7 @@ const AD = { class: "kong-ui-public-csv-export-modal" }, RD = {
|
|
|
19678
19681
|
{ label: e.t("csvExport.Timestamp"), key: "timestamp" },
|
|
19679
19682
|
{ label: e.t("csvExport.UtcOffset"), key: "tzOffset" }
|
|
19680
19683
|
]);
|
|
19681
|
-
const w = "display" in i.chartData.meta && ((
|
|
19684
|
+
const w = "display" in i.chartData.meta && ((O = i.chartData.meta) != null && O.display) ? (D = i.chartData.meta) == null ? void 0 : D.display : {}, M = [
|
|
19682
19685
|
..._,
|
|
19683
19686
|
// `dimensions` are present in v1 and v2 explore meta
|
|
19684
19687
|
...Object.keys(w).map((b) => ({
|
|
@@ -19936,28 +19939,28 @@ const AD = { class: "kong-ui-public-csv-export-modal" }, RD = {
|
|
|
19936
19939
|
var S;
|
|
19937
19940
|
return (S = t.chartData.meta) != null && S.metric_units ? Object.values(t.chartData.meta.metric_units)[0] : "";
|
|
19938
19941
|
}), o = H(() => t.showLegendValues && t.legendPosition !== Ft.Bottom), { legendValues: l } = _t.useChartLegendValues(s, t.chartOptions.type, a), c = H(() => {
|
|
19939
|
-
var S,
|
|
19940
|
-
return ((
|
|
19942
|
+
var S, P, E;
|
|
19943
|
+
return ((E = (P = (S = t.chartData) == null ? void 0 : S.meta) == null ? void 0 : P.limit) == null ? void 0 : E.toString()) || null;
|
|
19941
19944
|
}), u = H(() => {
|
|
19942
|
-
var S,
|
|
19943
|
-
return ((
|
|
19945
|
+
var S, P;
|
|
19946
|
+
return ((P = (S = t.chartData) == null ? void 0 : S.meta) == null ? void 0 : P.truncated) || !1;
|
|
19944
19947
|
}), d = e.t("limitedResultsShown", { maxReturned: c.value }), h = H(() => [
|
|
19945
19948
|
"vertical_bar",
|
|
19946
19949
|
"horizontal_bar"
|
|
19947
19950
|
].includes(t.chartOptions.type)), f = H(() => ["timeseries_bar", "timeseries_line"].some((S) => S === t.chartOptions.type)), g = H(() => t.chartOptions.type === "doughnut"), m = H(() => t.chartOptions.type.includes("vertical") ? "vertical" : "horizontal"), y = H(() => {
|
|
19948
|
-
var
|
|
19949
|
-
if (!((
|
|
19951
|
+
var E, N, $;
|
|
19952
|
+
if (!((E = t.chartData) != null && E.meta.metric_names) || !((N = t.chartData) != null && N.meta.metric_units))
|
|
19950
19953
|
return;
|
|
19951
|
-
const S = t.chartData.meta.metric_names[0],
|
|
19954
|
+
const S = t.chartData.meta.metric_names[0], P = t.chartData.meta.metric_units[S];
|
|
19952
19955
|
if (t.chartData.meta.metric_names.length > 1) {
|
|
19953
19956
|
if (S.includes("latency"))
|
|
19954
|
-
return e.t("metricAxisTitles.latency_in", { unit: e.t(`chartUnits.${
|
|
19957
|
+
return e.t("metricAxisTitles.latency_in", { unit: e.t(`chartUnits.${P}`, { plural: "s" }) });
|
|
19955
19958
|
if (S.includes("size"))
|
|
19956
|
-
return e.t("metricAxisTitles.size_in", { unit: e.t(`chartUnits.${
|
|
19959
|
+
return e.t("metricAxisTitles.size_in", { unit: e.t(`chartUnits.${P}`, { plural: "s" }) });
|
|
19957
19960
|
}
|
|
19958
|
-
return (($ = t.chartOptions) == null ? void 0 : $.metricAxesTitle) || e.te(`metricAxisTitles.${S}`) && e.te(`chartUnits.${
|
|
19961
|
+
return (($ = t.chartOptions) == null ? void 0 : $.metricAxesTitle) || e.te(`metricAxisTitles.${S}`) && e.te(`chartUnits.${P}`) && // @ts-ignore - dynamic i18n key
|
|
19959
19962
|
// Metric units are always pluralized on the axis.
|
|
19960
|
-
e.t(`metricAxisTitles.${S}`, { unit: e.t(`chartUnits.${
|
|
19963
|
+
e.t(`metricAxisTitles.${S}`, { unit: e.t(`chartUnits.${P}`, { plural: "s" }) }) || void 0;
|
|
19961
19964
|
}), _ = H(() => {
|
|
19962
19965
|
const S = f.value ? "Time" : Object.keys(t.chartData.meta.display || t.chartData.meta.metric_names)[0];
|
|
19963
19966
|
return t.chartOptions.dimensionAxesTitle || e.te(`chartLabels.${S}`) && // @ts-ignore - dynamic i18n key
|
|
@@ -19965,16 +19968,16 @@ const AD = { class: "kong-ui-public-csv-export-modal" }, RD = {
|
|
|
19965
19968
|
}), w = H(() => {
|
|
19966
19969
|
const S = da(Number(t.chartData.meta.granularity_ms));
|
|
19967
19970
|
return e.t(`granularityAxisTitles.${S}`);
|
|
19968
|
-
}), M = H(() => t.emptyStateTitle || e.t("noDataAvailableTitle")), T = H(() => t.emptyStateDescription || e.t("noDataAvailableDescription")), k = H(() => f.value ? Tw(s.value) : t.chartData && t.chartData.meta && t.chartData.data.length),
|
|
19971
|
+
}), M = H(() => t.emptyStateTitle || e.t("noDataAvailableTitle")), T = H(() => t.emptyStateDescription || e.t("noDataAvailableDescription")), k = H(() => f.value ? Tw(s.value) : t.chartData && t.chartData.meta && t.chartData.data.length), O = H(() => k.value && u.value && c.value || t.chartTitle || t.allowCsvExport && k.value), D = H(() => t.chartData.meta.granularity_ms ? da(t.chartData.meta.granularity_ms) || "hourly" : da(
|
|
19969
19972
|
new Date(t.chartData.data[1].timestamp).getTime() - new Date(t.chartData.data[0].timestamp).getTime()
|
|
19970
|
-
) || "hourly"), b = H(() => t.chartOptions.chartLegendSortFn ? t.chartOptions.chartLegendSortFn : (S,
|
|
19971
|
-
return ll("showLegendValues", o), ll("legendPosition", vt(t, "legendPosition")), (S,
|
|
19972
|
-
const
|
|
19973
|
+
) || "hourly"), b = H(() => t.chartOptions.chartLegendSortFn ? t.chartOptions.chartLegendSortFn : (S, P) => S.text === e.t("chartLabels.____OTHER____") ? 1 : P.text === e.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(S.text, 10)) && !isNaN(parseInt(P.text, 10)) ? S.text < P.text ? -1 : 1 : S.value && P.value ? P.value.raw - S.value.raw : 0), x = H(() => t.chartOptions.chartTooltipSortFn ? t.chartOptions.chartTooltipSortFn : (S, P) => S.label === e.t("chartLabels.____OTHER____") ? 1 : P.label === e.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(S.label, 10)) && !isNaN(parseInt(P.label, 10)) ? S.label < P.label ? -1 : 1 : S.value && P.value ? P.rawValue - S.rawValue : 0);
|
|
19974
|
+
return ll("showLegendValues", o), ll("legendPosition", vt(t, "legendPosition")), (S, P) => {
|
|
19975
|
+
const E = Fe("KTooltip"), N = Fe("KEmptyState");
|
|
19973
19976
|
return Z(), dt("div", FD, [
|
|
19974
|
-
|
|
19977
|
+
O.value ? (Z(), dt("div", zD, [
|
|
19975
19978
|
n.chartTitle ? (Z(), dt("div", HD, ct(n.chartTitle), 1)) : Vt("", !0),
|
|
19976
19979
|
ut("div", WD, [
|
|
19977
|
-
k.value && u.value && c.value ? (Z(), se(
|
|
19980
|
+
k.value && u.value && c.value ? (Z(), se(E, {
|
|
19978
19981
|
key: 0,
|
|
19979
19982
|
class: "tooltip",
|
|
19980
19983
|
"max-width": "500",
|
|
@@ -20008,7 +20011,7 @@ const AD = { class: "kong-ui-public-csv-export-modal" }, RD = {
|
|
|
20008
20011
|
"chart-tooltip-sort-fn": x.value,
|
|
20009
20012
|
"dimension-axes-title": w.value,
|
|
20010
20013
|
fill: n.chartOptions.stacked,
|
|
20011
|
-
granularity:
|
|
20014
|
+
granularity: D.value,
|
|
20012
20015
|
"legend-values": lt(l),
|
|
20013
20016
|
"metric-axes-title": y.value,
|
|
20014
20017
|
"metric-unit": a.value,
|