@kong-ui-public/analytics-chart 10.7.0 → 10.7.1-pr.2565.14833f801.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vitals-chart.es.js +453 -453
- package/dist/vitals-chart.umd.js +10 -10
- package/package.json +4 -4
package/dist/vitals-chart.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var um = Object.defineProperty;
|
|
2
2
|
var dm = (n, t, e) => t in n ? um(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var P = (n, t, e) => dm(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { computed as F, getCurrentInstance as Gl, onUnmounted as wi, shallowRef as qe, onMounted as
|
|
4
|
+
import { computed as F, getCurrentInstance as Gl, onUnmounted as wi, shallowRef as qe, onMounted as En, onBeforeUnmount as Kl, watch as ee, inject as Gi, nextTick as Eh, isRef as hm, toRefs as fm, customRef as gm, toValue as Qt, getCurrentScope as mm, onScopeDispose as pm, ref as Rt, unref as q, defineComponent as ge, createElementBlock as _t, openBlock as X, createElementVNode as ut, toDisplayString as ft, createVNode as ie, Fragment as Ks, renderList as Oa, normalizeClass as Cn, createCommentVNode as Xt, normalizeStyle as bi, createBlock as Nt, useCssVars as ym, resolveComponent as Ae, createSlots as Ah, withCtx as Wt, useTemplateRef as Vi, reactive as Zs, toRef as Ft, Teleport as Rh, h as gl, toRaw as ml, version as bm, isProxy as Ih, provide as Bc, createTextVNode as ze, renderSlot as Qs, withKeys as _m } from "vue";
|
|
5
5
|
import { createI18n as xm, i18nTComponent as vm } from "@kong-ui-public/i18n";
|
|
6
6
|
import { CloseIcon as wm, DragIcon as Mm, WarningIcon as Sm, InfoIcon as Tm } from "@kong/icons";
|
|
7
|
-
const Dm = "No data in the current time frame", km = "Once there is traffic, it will display here", Cm = "Not all data is shown in the below report. Reports are currently limited to a maximum of {maxReturned} entities.", Pm = "no-name", Om = "debug",
|
|
7
|
+
const Dm = "No data in the current time frame", km = "Once there is traffic, it will display here", Cm = "Not all data is shown in the below report. Reports are currently limited to a maximum of {maxReturned} entities.", Pm = "no-name", Om = "debug", Em = "Total", Am = "Open in explorer", Rm = "More actions", Im = "Requests that do not have a value for the selected group", Lm = {
|
|
8
8
|
ms: "ms",
|
|
9
9
|
bytes: "Byte{plural}",
|
|
10
10
|
count: "request{plural}",
|
|
@@ -270,8 +270,8 @@ const Dm = "No data in the current time frame", km = "Once there is traffic, it
|
|
|
270
270
|
limitedResultsShown: Cm,
|
|
271
271
|
entityNoName: Pm,
|
|
272
272
|
debug: Om,
|
|
273
|
-
total:
|
|
274
|
-
jumpToExplore:
|
|
273
|
+
total: Em,
|
|
274
|
+
jumpToExplore: Am,
|
|
275
275
|
more_actions: Rm,
|
|
276
276
|
emptyEntityInfo: Im,
|
|
277
277
|
chartUnits: Lm,
|
|
@@ -306,7 +306,7 @@ function ar(n) {
|
|
|
306
306
|
return n + 0.5 | 0;
|
|
307
307
|
}
|
|
308
308
|
const jn = (n, t, e) => Math.max(Math.min(n, e), t);
|
|
309
|
-
function
|
|
309
|
+
function As(n) {
|
|
310
310
|
return jn(ar(n * 2.55), 0, 255);
|
|
311
311
|
}
|
|
312
312
|
function qn(n) {
|
|
@@ -382,7 +382,7 @@ function lp(n) {
|
|
|
382
382
|
let e = 255, i;
|
|
383
383
|
if (!t)
|
|
384
384
|
return;
|
|
385
|
-
t[5] !== i && (e = t[6] ?
|
|
385
|
+
t[5] !== i && (e = t[6] ? As(+t[5]) : qn(+t[5]));
|
|
386
386
|
const s = Nh(+t[2]), r = +t[3] / 100, a = +t[4] / 100;
|
|
387
387
|
return t[1] === "hwb" ? i = ap(s, r, a) : t[1] === "hsv" ? i = op(s, r, a) : i = Jl(s, r, a), {
|
|
388
388
|
r: i[0],
|
|
@@ -607,9 +607,9 @@ function gp(n) {
|
|
|
607
607
|
if (t) {
|
|
608
608
|
if (t[7] !== i) {
|
|
609
609
|
const a = +t[7];
|
|
610
|
-
e = t[8] ?
|
|
610
|
+
e = t[8] ? As(a) : jn(a * 255, 0, 255);
|
|
611
611
|
}
|
|
612
|
-
return i = +t[1], s = +t[3], r = +t[5], i = 255 & (t[2] ?
|
|
612
|
+
return i = +t[1], s = +t[3], r = +t[5], i = 255 & (t[2] ? As(i) : jn(i, 0, 255)), s = 255 & (t[4] ? As(s) : jn(s, 0, 255)), r = 255 & (t[6] ? As(r) : jn(r, 0, 255)), {
|
|
613
613
|
r: i,
|
|
614
614
|
g: s,
|
|
615
615
|
b: r,
|
|
@@ -620,13 +620,13 @@ function gp(n) {
|
|
|
620
620
|
function mp(n) {
|
|
621
621
|
return n && (n.a < 255 ? `rgba(${n.r}, ${n.g}, ${n.b}, ${Mn(n.a)})` : `rgb(${n.r}, ${n.g}, ${n.b})`);
|
|
622
622
|
}
|
|
623
|
-
const
|
|
623
|
+
const Eo = (n) => n <= 31308e-7 ? n * 12.92 : Math.pow(n, 1 / 2.4) * 1.055 - 0.055, Fi = (n) => n <= 0.04045 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
|
|
624
624
|
function pp(n, t, e) {
|
|
625
625
|
const i = Fi(Mn(n.r)), s = Fi(Mn(n.g)), r = Fi(Mn(n.b));
|
|
626
626
|
return {
|
|
627
|
-
r: qn(
|
|
628
|
-
g: qn(
|
|
629
|
-
b: qn(
|
|
627
|
+
r: qn(Eo(i + e * (Fi(Mn(t.r)) - i))),
|
|
628
|
+
g: qn(Eo(s + e * (Fi(Mn(t.g)) - s))),
|
|
629
|
+
b: qn(Eo(r + e * (Fi(Mn(t.b)) - r))),
|
|
630
630
|
a: n.a + e * (t.a - n.a)
|
|
631
631
|
};
|
|
632
632
|
}
|
|
@@ -757,11 +757,11 @@ function lt(n, t) {
|
|
|
757
757
|
return typeof n > "u" ? t : n;
|
|
758
758
|
}
|
|
759
759
|
const _p = (n, t) => typeof n == "string" && n.endsWith("%") ? parseFloat(n) / 100 : +n / t, zh = (n, t) => typeof n == "string" && n.endsWith("%") ? parseFloat(n) / 100 * t : +n;
|
|
760
|
-
function
|
|
760
|
+
function Et(n, t, e) {
|
|
761
761
|
if (n && typeof n.call == "function")
|
|
762
762
|
return n.apply(e, t);
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function At(n, t, e, i) {
|
|
765
765
|
let s, r, a;
|
|
766
766
|
if (Ct(n))
|
|
767
767
|
for (r = n.length, s = 0; s < r; s++)
|
|
@@ -910,7 +910,7 @@ function Wh(n, t, e) {
|
|
|
910
910
|
function se(n) {
|
|
911
911
|
return n * (pt / 180);
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function Ea(n) {
|
|
914
914
|
return n * (180 / pt);
|
|
915
915
|
}
|
|
916
916
|
function Gc(n) {
|
|
@@ -964,8 +964,8 @@ function nc(n, t, e) {
|
|
|
964
964
|
const Tn = (n, t, e, i) => nc(n, e, i ? (s) => {
|
|
965
965
|
const r = n[s][t];
|
|
966
966
|
return r < e || r === e && n[s + 1][t] === e;
|
|
967
|
-
} : (s) => n[s][t] < e),
|
|
968
|
-
function
|
|
967
|
+
} : (s) => n[s][t] < e), Ep = (n, t, e) => nc(n, e, (i) => n[i][t] >= e);
|
|
968
|
+
function Ap(n, t, e) {
|
|
969
969
|
let i = 0, s = n.length;
|
|
970
970
|
for (; i < s && n[i] < t; )
|
|
971
971
|
i++;
|
|
@@ -1143,7 +1143,7 @@ function sc(n) {
|
|
|
1143
1143
|
function Jc(n) {
|
|
1144
1144
|
return sc(n) ? n : new Js(n);
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function Ao(n) {
|
|
1147
1147
|
return sc(n) ? n : new Js(n).saturate(0.5).darken(0.1).hexString();
|
|
1148
1148
|
}
|
|
1149
1149
|
const Np = [
|
|
@@ -1277,7 +1277,7 @@ function Bp(n, t) {
|
|
|
1277
1277
|
let e = t.length > 3 ? t[2].value - t[1].value : t[1].value - t[0].value;
|
|
1278
1278
|
return Math.abs(e) >= 1 && n !== Math.floor(n) && (e = n - Math.floor(n)), e;
|
|
1279
1279
|
}
|
|
1280
|
-
var
|
|
1280
|
+
var Aa = {
|
|
1281
1281
|
formatters: qh
|
|
1282
1282
|
};
|
|
1283
1283
|
function Yp(n) {
|
|
@@ -1324,7 +1324,7 @@ function Yp(n) {
|
|
|
1324
1324
|
autoSkip: !0,
|
|
1325
1325
|
autoSkipPadding: 3,
|
|
1326
1326
|
labelOffset: 0,
|
|
1327
|
-
callback:
|
|
1327
|
+
callback: Aa.formatters.values,
|
|
1328
1328
|
minor: {},
|
|
1329
1329
|
major: {},
|
|
1330
1330
|
align: "center",
|
|
@@ -1372,7 +1372,7 @@ class jp {
|
|
|
1372
1372
|
style: "normal",
|
|
1373
1373
|
lineHeight: 1.2,
|
|
1374
1374
|
weight: null
|
|
1375
|
-
}, this.hover = {}, this.hoverBackgroundColor = (i, s) =>
|
|
1375
|
+
}, this.hover = {}, this.hoverBackgroundColor = (i, s) => Ao(s.backgroundColor), this.hoverBorderColor = (i, s) => Ao(s.borderColor), this.hoverColor = (i, s) => Ao(s.color), this.indexAxis = "x", this.interaction = {
|
|
1376
1376
|
mode: "nearest",
|
|
1377
1377
|
intersect: !0,
|
|
1378
1378
|
includeInvisible: !1
|
|
@@ -2215,7 +2215,7 @@ function Oy(n, t, e, i) {
|
|
|
2215
2215
|
end: r
|
|
2216
2216
|
};
|
|
2217
2217
|
}
|
|
2218
|
-
function
|
|
2218
|
+
function Ey(n, t, e, i) {
|
|
2219
2219
|
const s = n.length, r = [];
|
|
2220
2220
|
let a = t, o = n[t], l;
|
|
2221
2221
|
for (l = t + 1; l <= e; ++l) {
|
|
@@ -2232,7 +2232,7 @@ function Ay(n, t, e, i) {
|
|
|
2232
2232
|
loop: i
|
|
2233
2233
|
}), r;
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function Ay(n, t) {
|
|
2236
2236
|
const e = n.points, i = n.options.spanGaps, s = e.length;
|
|
2237
2237
|
if (!s)
|
|
2238
2238
|
return [];
|
|
@@ -2246,7 +2246,7 @@ function Ey(n, t) {
|
|
|
2246
2246
|
}
|
|
2247
2247
|
], e, t);
|
|
2248
2248
|
const l = o < a ? o + s : o, c = !!n._fullLoop && a === 0 && o === s - 1;
|
|
2249
|
-
return ou(n,
|
|
2249
|
+
return ou(n, Ey(e, a, l, c), e, t);
|
|
2250
2250
|
}
|
|
2251
2251
|
function ou(n, t, e, i) {
|
|
2252
2252
|
return !i || !i.setContext || !e ? t : Ry(n, t, e, i);
|
|
@@ -3683,8 +3683,8 @@ class Us extends nn {
|
|
|
3683
3683
|
C.skip = !0;
|
|
3684
3684
|
continue;
|
|
3685
3685
|
}
|
|
3686
|
-
const p = this.getParsed(S), b = ct(p[f]), k = C[h] = a.getPixelForValue(p[h], S),
|
|
3687
|
-
C.skip = isNaN(k) || isNaN(
|
|
3686
|
+
const p = this.getParsed(S), b = ct(p[f]), k = C[h] = a.getPixelForValue(p[h], S), A = C[f] = r || b ? o.getBasePixel() : o.getPixelForValue(l ? this.applyStack(o, p, l) : p[f], S);
|
|
3687
|
+
C.skip = isNaN(k) || isNaN(A) || b, C.stop = S > 0 && Math.abs(p[h] - v[h]) > _, y && (C.parsed = p, C.raw = c.data[S]), d && (C.options = u || this.resolveDataElementOptions(S, O.active ? "active" : s)), M || this.updateElement(O, S, C, s), v = p;
|
|
3688
3688
|
}
|
|
3689
3689
|
}
|
|
3690
3690
|
getMaxOverflow() {
|
|
@@ -4045,7 +4045,7 @@ var df = {
|
|
|
4045
4045
|
function lb(n, t, e, i) {
|
|
4046
4046
|
const { controller: s, data: r, _sorted: a } = n, o = s._cachedMeta.iScale, l = n.dataset && n.dataset.options ? n.dataset.options.spanGaps : null;
|
|
4047
4047
|
if (o && t === o.axis && t !== "r" && a && r.length) {
|
|
4048
|
-
const c = o._reversePixels ?
|
|
4048
|
+
const c = o._reversePixels ? Ep : Tn;
|
|
4049
4049
|
if (i) {
|
|
4050
4050
|
if (s._sharedOptions) {
|
|
4051
4051
|
const u = r[0], d = typeof u.getRange == "function" && u.getRange(t);
|
|
@@ -4385,7 +4385,7 @@ var we = {
|
|
|
4385
4385
|
if (!n)
|
|
4386
4386
|
return;
|
|
4387
4387
|
const s = re(n.options.layout.padding), r = Math.max(t - s.width, 0), a = Math.max(e - s.height, 0), o = mb(n.boxes), l = o.vertical, c = o.horizontal;
|
|
4388
|
-
|
|
4388
|
+
At(n.boxes, (y) => {
|
|
4389
4389
|
typeof y.beforeLayout == "function" && y.beforeLayout();
|
|
4390
4390
|
});
|
|
4391
4391
|
const u = l.reduce((y, _) => _.box.options && _.box.options.display === !1 ? y : y + 1, 0) || 1, d = Object.freeze({
|
|
@@ -4412,7 +4412,7 @@ var we = {
|
|
|
4412
4412
|
bottom: f.top + f.h,
|
|
4413
4413
|
height: f.h,
|
|
4414
4414
|
width: f.w
|
|
4415
|
-
},
|
|
4415
|
+
}, At(o.chartArea, (y) => {
|
|
4416
4416
|
const _ = y.box;
|
|
4417
4417
|
Object.assign(_, n.chartArea), _.update(f.w, f.h, {
|
|
4418
4418
|
left: 0,
|
|
@@ -4576,7 +4576,7 @@ function Ob(n, t, e) {
|
|
|
4576
4576
|
}, n);
|
|
4577
4577
|
return wb(i, t, s), s;
|
|
4578
4578
|
}
|
|
4579
|
-
class
|
|
4579
|
+
class Eb extends gf {
|
|
4580
4580
|
acquireContext(t, e) {
|
|
4581
4581
|
const i = t && t.getContext && t.getContext("2d");
|
|
4582
4582
|
return i && i.canvas === t ? (vb(t, e), i) : null;
|
|
@@ -4628,8 +4628,8 @@ class Ab extends gf {
|
|
|
4628
4628
|
return !!(e && e.isConnected);
|
|
4629
4629
|
}
|
|
4630
4630
|
}
|
|
4631
|
-
function
|
|
4632
|
-
return !cc() || typeof OffscreenCanvas < "u" && n instanceof OffscreenCanvas ? _b :
|
|
4631
|
+
function Ab(n) {
|
|
4632
|
+
return !cc() || typeof OffscreenCanvas < "u" && n instanceof OffscreenCanvas ? _b : Eb;
|
|
4633
4633
|
}
|
|
4634
4634
|
class fe {
|
|
4635
4635
|
constructor() {
|
|
@@ -4738,7 +4738,7 @@ function Wb(n, t, e) {
|
|
|
4738
4738
|
return l;
|
|
4739
4739
|
}
|
|
4740
4740
|
function Bb(n, t) {
|
|
4741
|
-
|
|
4741
|
+
At(n, (e) => {
|
|
4742
4742
|
const i = e.gc, s = i.length / 2;
|
|
4743
4743
|
let r;
|
|
4744
4744
|
if (s > t) {
|
|
@@ -4859,7 +4859,7 @@ class Mi extends fe {
|
|
|
4859
4859
|
this._cache = {}, this._dataLimitsCached = !1;
|
|
4860
4860
|
}
|
|
4861
4861
|
beforeUpdate() {
|
|
4862
|
-
|
|
4862
|
+
Et(this.options.beforeUpdate, [
|
|
4863
4863
|
this
|
|
4864
4864
|
]);
|
|
4865
4865
|
}
|
|
@@ -4879,12 +4879,12 @@ class Mi extends fe {
|
|
|
4879
4879
|
this.isHorizontal() ? (e = this.left, i = this.right) : (e = this.top, i = this.bottom, t = !t), this._startPixel = e, this._endPixel = i, this._reversePixels = t, this._length = i - e, this._alignToPixels = this.options.alignToPixels;
|
|
4880
4880
|
}
|
|
4881
4881
|
afterUpdate() {
|
|
4882
|
-
|
|
4882
|
+
Et(this.options.afterUpdate, [
|
|
4883
4883
|
this
|
|
4884
4884
|
]);
|
|
4885
4885
|
}
|
|
4886
4886
|
beforeSetDimensions() {
|
|
4887
|
-
|
|
4887
|
+
Et(this.options.beforeSetDimensions, [
|
|
4888
4888
|
this
|
|
4889
4889
|
]);
|
|
4890
4890
|
}
|
|
@@ -4892,12 +4892,12 @@ class Mi extends fe {
|
|
|
4892
4892
|
this.isHorizontal() ? (this.width = this.maxWidth, this.left = 0, this.right = this.width) : (this.height = this.maxHeight, this.top = 0, this.bottom = this.height), this.paddingLeft = 0, this.paddingTop = 0, this.paddingRight = 0, this.paddingBottom = 0;
|
|
4893
4893
|
}
|
|
4894
4894
|
afterSetDimensions() {
|
|
4895
|
-
|
|
4895
|
+
Et(this.options.afterSetDimensions, [
|
|
4896
4896
|
this
|
|
4897
4897
|
]);
|
|
4898
4898
|
}
|
|
4899
4899
|
_callHooks(t) {
|
|
4900
|
-
this.chart.notifyPlugins(t, this.getContext()),
|
|
4900
|
+
this.chart.notifyPlugins(t, this.getContext()), Et(this.options[t], [
|
|
4901
4901
|
this
|
|
4902
4902
|
]);
|
|
4903
4903
|
}
|
|
@@ -4919,7 +4919,7 @@ class Mi extends fe {
|
|
|
4919
4919
|
this._callHooks("afterBuildTicks");
|
|
4920
4920
|
}
|
|
4921
4921
|
beforeTickToLabelConversion() {
|
|
4922
|
-
|
|
4922
|
+
Et(this.options.beforeTickToLabelConversion, [
|
|
4923
4923
|
this
|
|
4924
4924
|
]);
|
|
4925
4925
|
}
|
|
@@ -4927,19 +4927,19 @@ class Mi extends fe {
|
|
|
4927
4927
|
const e = this.options.ticks;
|
|
4928
4928
|
let i, s, r;
|
|
4929
4929
|
for (i = 0, s = t.length; i < s; i++)
|
|
4930
|
-
r = t[i], r.label =
|
|
4930
|
+
r = t[i], r.label = Et(e.callback, [
|
|
4931
4931
|
r.value,
|
|
4932
4932
|
i,
|
|
4933
4933
|
t
|
|
4934
4934
|
], this);
|
|
4935
4935
|
}
|
|
4936
4936
|
afterTickToLabelConversion() {
|
|
4937
|
-
|
|
4937
|
+
Et(this.options.afterTickToLabelConversion, [
|
|
4938
4938
|
this
|
|
4939
4939
|
]);
|
|
4940
4940
|
}
|
|
4941
4941
|
beforeCalculateLabelRotation() {
|
|
4942
|
-
|
|
4942
|
+
Et(this.options.beforeCalculateLabelRotation, [
|
|
4943
4943
|
this
|
|
4944
4944
|
]);
|
|
4945
4945
|
}
|
|
@@ -4951,17 +4951,17 @@ class Mi extends fe {
|
|
|
4951
4951
|
return;
|
|
4952
4952
|
}
|
|
4953
4953
|
const u = this._getLabelSizes(), d = u.widest.width, h = u.highest.height, f = he(this.chart.width - d, 0, this.maxWidth);
|
|
4954
|
-
o = t.offset ? this.maxWidth / i : f / (i - 1), d + 6 > o && (o = f / (i - (t.offset ? 0.5 : 1)), l = this.maxHeight - ws(t.grid) - e.padding - ku(t.title, this.chart.options.font), c = Math.sqrt(d * d + h * h), a =
|
|
4954
|
+
o = t.offset ? this.maxWidth / i : f / (i - 1), d + 6 > o && (o = f / (i - (t.offset ? 0.5 : 1)), l = this.maxHeight - ws(t.grid) - e.padding - ku(t.title, this.chart.options.font), c = Math.sqrt(d * d + h * h), a = Ea(Math.min(Math.asin(he((u.highest.height + 6) / o, -1, 1)), Math.asin(he(l / c, -1, 1)) - Math.asin(he(h / c, -1, 1)))), a = Math.max(s, Math.min(r, a))), this.labelRotation = a;
|
|
4955
4955
|
}
|
|
4956
4956
|
afterCalculateLabelRotation() {
|
|
4957
|
-
|
|
4957
|
+
Et(this.options.afterCalculateLabelRotation, [
|
|
4958
4958
|
this
|
|
4959
4959
|
]);
|
|
4960
4960
|
}
|
|
4961
4961
|
afterAutoSkip() {
|
|
4962
4962
|
}
|
|
4963
4963
|
beforeFit() {
|
|
4964
|
-
|
|
4964
|
+
Et(this.options.beforeFit, [
|
|
4965
4965
|
this
|
|
4966
4966
|
]);
|
|
4967
4967
|
}
|
|
@@ -5001,7 +5001,7 @@ class Mi extends fe {
|
|
|
5001
5001
|
this._margins && (this._margins.left = Math.max(this.paddingLeft, this._margins.left), this._margins.top = Math.max(this.paddingTop, this._margins.top), this._margins.right = Math.max(this.paddingRight, this._margins.right), this._margins.bottom = Math.max(this.paddingBottom, this._margins.bottom));
|
|
5002
5002
|
}
|
|
5003
5003
|
afterFit() {
|
|
5004
|
-
|
|
5004
|
+
Et(this.options.afterFit, [
|
|
5005
5005
|
this
|
|
5006
5006
|
]);
|
|
5007
5007
|
}
|
|
@@ -5104,11 +5104,11 @@ class Mi extends fe {
|
|
|
5104
5104
|
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 = ws(r), f = [], g = o.setContext(this.getContext()), y = g.display ? g.width : 0, _ = y / 2, M = function(nt) {
|
|
5105
5105
|
return ci(i, nt, y);
|
|
5106
5106
|
};
|
|
5107
|
-
let w, D, v, S, O, C, p, b, k,
|
|
5107
|
+
let w, D, v, S, O, C, p, b, k, A, I, R;
|
|
5108
5108
|
if (a === "top")
|
|
5109
|
-
w = M(this.bottom), C = this.bottom - h, b = w - _,
|
|
5109
|
+
w = M(this.bottom), C = this.bottom - h, b = w - _, A = M(t.top) + _, R = t.bottom;
|
|
5110
5110
|
else if (a === "bottom")
|
|
5111
|
-
w = M(this.top),
|
|
5111
|
+
w = M(this.top), A = t.top, R = M(t.bottom) - _, C = w + _, b = this.top + h;
|
|
5112
5112
|
else if (a === "left")
|
|
5113
5113
|
w = M(this.right), O = this.right - h, p = w - _, k = M(t.left) + _, I = t.right;
|
|
5114
5114
|
else if (a === "right")
|
|
@@ -5120,7 +5120,7 @@ class Mi extends fe {
|
|
|
5120
5120
|
const nt = Object.keys(a)[0], Y = a[nt];
|
|
5121
5121
|
w = M(this.chart.scales[nt].getPixelForValue(Y));
|
|
5122
5122
|
}
|
|
5123
|
-
|
|
5123
|
+
A = t.top, R = t.bottom, C = w + _, b = C + h;
|
|
5124
5124
|
} else if (e === "y") {
|
|
5125
5125
|
if (a === "center")
|
|
5126
5126
|
w = M((t.left + t.right) / 2);
|
|
@@ -5133,13 +5133,13 @@ class Mi extends fe {
|
|
|
5133
5133
|
const H = lt(s.ticks.maxTicksLimit, d), G = Math.max(1, Math.ceil(d / H));
|
|
5134
5134
|
for (D = 0; D < d; D += G) {
|
|
5135
5135
|
const nt = this.getContext(D), Y = r.setContext(nt), dt = o.setContext(nt), V = Y.lineWidth, et = Y.color, it = dt.dash || [], K = dt.dashOffset, $ = Y.tickWidth, U = Y.tickColor, Q = Y.tickBorderDash || [], wt = Y.tickBorderDashOffset;
|
|
5136
|
-
v = Wb(this, D, l), v !== void 0 && (S = ci(i, v, V), c ? O = p = k = I = S : C = b =
|
|
5136
|
+
v = Wb(this, D, l), v !== void 0 && (S = ci(i, v, V), c ? O = p = k = I = S : C = b = A = R = S, f.push({
|
|
5137
5137
|
tx1: O,
|
|
5138
5138
|
ty1: C,
|
|
5139
5139
|
tx2: p,
|
|
5140
5140
|
ty2: b,
|
|
5141
5141
|
x1: k,
|
|
5142
|
-
y1:
|
|
5142
|
+
y1: A,
|
|
5143
5143
|
x2: I,
|
|
5144
5144
|
y2: R,
|
|
5145
5145
|
width: V,
|
|
@@ -5156,7 +5156,7 @@ class Mi extends fe {
|
|
|
5156
5156
|
}
|
|
5157
5157
|
_computeLabelItems(t) {
|
|
5158
5158
|
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 = ws(i.grid), f = h + u, g = d ? -u : f, y = -se(this.labelRotation), _ = [];
|
|
5159
|
-
let M, w, D, v, S, O, C, p, b, k,
|
|
5159
|
+
let M, w, D, v, S, O, C, p, b, k, A, I, R = "middle";
|
|
5160
5160
|
if (s === "top")
|
|
5161
5161
|
O = this.bottom - g, C = this._getXAxisLabelAlignment();
|
|
5162
5162
|
else if (s === "bottom")
|
|
@@ -5189,10 +5189,10 @@ class Mi extends fe {
|
|
|
5189
5189
|
for (M = 0, w = o.length; M < w; ++M) {
|
|
5190
5190
|
D = o[M], v = D.label;
|
|
5191
5191
|
const G = r.setContext(this.getContext(M));
|
|
5192
|
-
p = this.getPixelForTick(M) + r.labelOffset, b = this._resolveTickFontOptions(M), k = b.lineHeight,
|
|
5193
|
-
const nt =
|
|
5192
|
+
p = this.getPixelForTick(M) + r.labelOffset, b = this._resolveTickFontOptions(M), k = b.lineHeight, A = Ct(v) ? v.length : 1;
|
|
5193
|
+
const nt = A / 2, Y = G.color, dt = G.textStrokeColor, V = G.textStrokeWidth;
|
|
5194
5194
|
let et = C;
|
|
5195
|
-
a ? (S = p, C === "inner" && (M === w - 1 ? et = this.options.reverse ? "left" : "right" : M === 0 ? et = this.options.reverse ? "right" : "left" : et = "center"), s === "top" ? c === "near" || y !== 0 ? I = -
|
|
5195
|
+
a ? (S = p, C === "inner" && (M === w - 1 ? et = this.options.reverse ? "left" : "right" : M === 0 ? et = this.options.reverse ? "right" : "left" : et = "center"), s === "top" ? c === "near" || y !== 0 ? I = -A * k + k / 2 : c === "center" ? I = -H.highest.height / 2 - nt * k + k : I = -H.highest.height + k / 2 : c === "near" || y !== 0 ? I = k / 2 : c === "center" ? I = H.highest.height / 2 - nt * k : I = H.highest.height - A * k, d && (I *= -1), y !== 0 && !G.showLabelBackdrop && (S += k / 2 * Math.sin(y))) : (O = p, I = (1 - A) * k / 2);
|
|
5196
5196
|
let it;
|
|
5197
5197
|
if (G.showLabelBackdrop) {
|
|
5198
5198
|
const K = re(G.backdropPadding), $ = H.heights[M], U = H.widths[M];
|
|
@@ -5508,7 +5508,7 @@ class Gb {
|
|
|
5508
5508
|
...e
|
|
5509
5509
|
].forEach((s) => {
|
|
5510
5510
|
const r = i || this._getRegistryForType(s);
|
|
5511
|
-
i || r.isForType(s) || r === this.plugins && s.id ? this._exec(t, r, s) :
|
|
5511
|
+
i || r.isForType(s) || r === this.plugins && s.id ? this._exec(t, r, s) : At(s, (a) => {
|
|
5512
5512
|
const o = i || this._getRegistryForType(a);
|
|
5513
5513
|
this._exec(t, o, a);
|
|
5514
5514
|
});
|
|
@@ -5516,7 +5516,7 @@ class Gb {
|
|
|
5516
5516
|
}
|
|
5517
5517
|
_exec(t, e, i) {
|
|
5518
5518
|
const s = tc(t);
|
|
5519
|
-
|
|
5519
|
+
Et(i["before" + s], [], i), e[t](i), Et(i["after" + s], [], i);
|
|
5520
5520
|
}
|
|
5521
5521
|
_getRegistryForType(t) {
|
|
5522
5522
|
for (let e = 0; e < this._typedRegistries.length; e++) {
|
|
@@ -5551,7 +5551,7 @@ class Kb {
|
|
|
5551
5551
|
s,
|
|
5552
5552
|
r.options
|
|
5553
5553
|
];
|
|
5554
|
-
if (
|
|
5554
|
+
if (Et(o, l, a) === !1 && s.cancelable)
|
|
5555
5555
|
return !1;
|
|
5556
5556
|
}
|
|
5557
5557
|
return !0;
|
|
@@ -5826,7 +5826,7 @@ class o0 {
|
|
|
5826
5826
|
]) {
|
|
5827
5827
|
const r = {
|
|
5828
5828
|
$shared: !0
|
|
5829
|
-
}, { resolver: a, subPrefixes: o } =
|
|
5829
|
+
}, { resolver: a, subPrefixes: o } = Eu(this._resolverCache, t, s);
|
|
5830
5830
|
let l = a;
|
|
5831
5831
|
if (c0(a, e)) {
|
|
5832
5832
|
r.$shared = !1, i = Le(i) ? i() : i;
|
|
@@ -5840,11 +5840,11 @@ class o0 {
|
|
|
5840
5840
|
createResolver(t, e, i = [
|
|
5841
5841
|
""
|
|
5842
5842
|
], s) {
|
|
5843
|
-
const { resolver: r } =
|
|
5843
|
+
const { resolver: r } = Eu(this._resolverCache, t, i);
|
|
5844
5844
|
return xt(e) ? Qi(r, e, void 0, s) : r;
|
|
5845
5845
|
}
|
|
5846
5846
|
}
|
|
5847
|
-
function
|
|
5847
|
+
function Eu(n, t, e) {
|
|
5848
5848
|
let i = n.get(t);
|
|
5849
5849
|
i || (i = /* @__PURE__ */ new Map(), n.set(t, i));
|
|
5850
5850
|
const s = e.join();
|
|
@@ -5872,7 +5872,7 @@ const d0 = [
|
|
|
5872
5872
|
"right",
|
|
5873
5873
|
"chartArea"
|
|
5874
5874
|
];
|
|
5875
|
-
function
|
|
5875
|
+
function Au(n, t) {
|
|
5876
5876
|
return n === "top" || n === "bottom" || d0.indexOf(n) === -1 && t === "x";
|
|
5877
5877
|
}
|
|
5878
5878
|
function Ru(n, t) {
|
|
@@ -5882,13 +5882,13 @@ function Ru(n, t) {
|
|
|
5882
5882
|
}
|
|
5883
5883
|
function Iu(n) {
|
|
5884
5884
|
const t = n.chart, e = t.options.animation;
|
|
5885
|
-
t.notifyPlugins("afterRender"),
|
|
5885
|
+
t.notifyPlugins("afterRender"), Et(e && e.onComplete, [
|
|
5886
5886
|
n
|
|
5887
5887
|
], t);
|
|
5888
5888
|
}
|
|
5889
5889
|
function h0(n) {
|
|
5890
5890
|
const t = n.chart, e = t.options.animation;
|
|
5891
|
-
|
|
5891
|
+
Et(e && e.onProgress, [
|
|
5892
5892
|
n
|
|
5893
5893
|
], t);
|
|
5894
5894
|
}
|
|
@@ -5925,7 +5925,7 @@ let Ge = (Wn = class {
|
|
|
5925
5925
|
if (r)
|
|
5926
5926
|
throw new Error("Canvas is already in use. Chart with ID '" + r.id + "' must be destroyed before the canvas with ID '" + r.canvas.id + "' can be reused.");
|
|
5927
5927
|
const a = i.createResolver(i.chartOptionScopes(), this.getContext());
|
|
5928
|
-
this.platform = new (i.platform ||
|
|
5928
|
+
this.platform = new (i.platform || Ab(s))(), this.platform.updateConfig(i);
|
|
5929
5929
|
const o = this.platform.acquireContext(s, a.aspectRatio), l = o && o.canvas, c = l && l.height, u = l && l.width;
|
|
5930
5930
|
if (this.id = bp(), this.ctx = o, this.canvas = l, this.width = u, this.height = c, this._options = a, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new Kb(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = Ip((d) => this.update(d), a.resizeDelay || 0), this._dataChanges = [], na[this.id] = this, !o || !l) {
|
|
5931
5931
|
console.error("Failed to create chart: can't acquire context from the given item");
|
|
@@ -5971,14 +5971,14 @@ let Ge = (Wn = class {
|
|
|
5971
5971
|
const i = this.options, s = this.canvas, r = i.maintainAspectRatio && this.aspectRatio, a = this.platform.getMaximumSize(s, t, e, r), o = i.devicePixelRatio || this.platform.getDevicePixelRatio(), l = this.width ? "resize" : "attach";
|
|
5972
5972
|
this.width = a.width, this.height = a.height, this._aspectRatio = this.aspectRatio, su(this, o, !0) && (this.notifyPlugins("resize", {
|
|
5973
5973
|
size: a
|
|
5974
|
-
}),
|
|
5974
|
+
}), Et(i.onResize, [
|
|
5975
5975
|
this,
|
|
5976
5976
|
a
|
|
5977
5977
|
], this), this.attached && this._doResize(l) && this.render());
|
|
5978
5978
|
}
|
|
5979
5979
|
ensureScalesHaveIDs() {
|
|
5980
5980
|
const e = this.options.scales || {};
|
|
5981
|
-
|
|
5981
|
+
At(e, (i, s) => {
|
|
5982
5982
|
i.id = s;
|
|
5983
5983
|
});
|
|
5984
5984
|
}
|
|
@@ -5992,9 +5992,9 @@ let Ge = (Wn = class {
|
|
|
5992
5992
|
dposition: c ? "chartArea" : u ? "bottom" : "left",
|
|
5993
5993
|
dtype: c ? "radialLinear" : u ? "category" : "linear"
|
|
5994
5994
|
};
|
|
5995
|
-
}))),
|
|
5995
|
+
}))), At(r, (a) => {
|
|
5996
5996
|
const o = a.options, l = o.id, c = wl(l, o), u = lt(o.type, a.dtype);
|
|
5997
|
-
(o.position === void 0 ||
|
|
5997
|
+
(o.position === void 0 || Au(o.position, c) !== Au(a.dposition)) && (o.position = a.dposition), s[l] = !0;
|
|
5998
5998
|
let d = null;
|
|
5999
5999
|
if (l in i && i[l].type === u)
|
|
6000
6000
|
d = i[l];
|
|
@@ -6008,9 +6008,9 @@ let Ge = (Wn = class {
|
|
|
6008
6008
|
}), i[d.id] = d;
|
|
6009
6009
|
}
|
|
6010
6010
|
d.init(o, t);
|
|
6011
|
-
}),
|
|
6011
|
+
}), At(s, (a, o) => {
|
|
6012
6012
|
a || delete i[o];
|
|
6013
|
-
}),
|
|
6013
|
+
}), At(i, (a) => {
|
|
6014
6014
|
we.configure(this, a, a.options), we.addBox(this, a);
|
|
6015
6015
|
});
|
|
6016
6016
|
}
|
|
@@ -6049,7 +6049,7 @@ let Ge = (Wn = class {
|
|
|
6049
6049
|
return this._updateMetasets(), t;
|
|
6050
6050
|
}
|
|
6051
6051
|
_resetElements() {
|
|
6052
|
-
|
|
6052
|
+
At(this.data.datasets, (t, e) => {
|
|
6053
6053
|
this.getDatasetMeta(e).controller.reset();
|
|
6054
6054
|
}, this);
|
|
6055
6055
|
}
|
|
@@ -6072,7 +6072,7 @@ let Ge = (Wn = class {
|
|
|
6072
6072
|
const { controller: d } = this.getDatasetMeta(c), h = !s && r.indexOf(d) === -1;
|
|
6073
6073
|
d.buildOrUpdateElements(h), a = Math.max(+d.getMaxOverflow(), a);
|
|
6074
6074
|
}
|
|
6075
|
-
a = this._minPadding = i.layout.autoPadding ? a : 0, this._updateLayout(a), s ||
|
|
6075
|
+
a = this._minPadding = i.layout.autoPadding ? a : 0, this._updateLayout(a), s || At(r, (c) => {
|
|
6076
6076
|
c.reset();
|
|
6077
6077
|
}), this._updateDatasets(t), this.notifyPlugins("afterUpdate", {
|
|
6078
6078
|
mode: t
|
|
@@ -6081,7 +6081,7 @@ let Ge = (Wn = class {
|
|
|
6081
6081
|
l ? this._eventHandler(l, !0) : o.length && this._updateHoverStyles(o, o, !0), this.render();
|
|
6082
6082
|
}
|
|
6083
6083
|
_updateScales() {
|
|
6084
|
-
|
|
6084
|
+
At(this.scales, (t) => {
|
|
6085
6085
|
we.removeBox(this, t);
|
|
6086
6086
|
}), this.ensureScalesHaveIDs(), this.buildOrUpdateScales();
|
|
6087
6087
|
}
|
|
@@ -6118,7 +6118,7 @@ let Ge = (Wn = class {
|
|
|
6118
6118
|
return;
|
|
6119
6119
|
we.update(this, this.width, this.height, t);
|
|
6120
6120
|
const e = this.chartArea, i = e.width <= 0 || e.height <= 0;
|
|
6121
|
-
this._layers = [],
|
|
6121
|
+
this._layers = [], At(this.boxes, (s) => {
|
|
6122
6122
|
i && s.position === "chartArea" || (s.configure && s.configure(), this._layers.push(...s._layers()));
|
|
6123
6123
|
}, this), this._layers.forEach((s, r) => {
|
|
6124
6124
|
s._idx = r;
|
|
@@ -6292,7 +6292,7 @@ let Ge = (Wn = class {
|
|
|
6292
6292
|
}, s = (r, a, o) => {
|
|
6293
6293
|
r.offsetX = a, r.offsetY = o, this._eventHandler(r);
|
|
6294
6294
|
};
|
|
6295
|
-
|
|
6295
|
+
At(this.options.events, (r) => i(r, s));
|
|
6296
6296
|
}
|
|
6297
6297
|
bindResponsiveEvents() {
|
|
6298
6298
|
this._responsiveListeners || (this._responsiveListeners = {});
|
|
@@ -6312,9 +6312,9 @@ let Ge = (Wn = class {
|
|
|
6312
6312
|
}, e.isAttached(this.canvas) ? o() : a();
|
|
6313
6313
|
}
|
|
6314
6314
|
unbindEvents() {
|
|
6315
|
-
|
|
6315
|
+
At(this._listeners, (t, e) => {
|
|
6316
6316
|
this.platform.removeEventListener(this, e, t);
|
|
6317
|
-
}), this._listeners = {},
|
|
6317
|
+
}), this._listeners = {}, At(this._responsiveListeners, (t, e) => {
|
|
6318
6318
|
this.platform.removeEventListener(this, e, t);
|
|
6319
6319
|
}), this._responsiveListeners = void 0;
|
|
6320
6320
|
}
|
|
@@ -6367,11 +6367,11 @@ let Ge = (Wn = class {
|
|
|
6367
6367
|
}
|
|
6368
6368
|
_handleEvent(t, e, i) {
|
|
6369
6369
|
const { _active: s = [], options: r } = this, a = e, o = this._getActiveElements(t, s, i, a), l = Sp(t), c = g0(t, this._lastEvent, i, l);
|
|
6370
|
-
i && (this._lastEvent = null,
|
|
6370
|
+
i && (this._lastEvent = null, Et(r.onHover, [
|
|
6371
6371
|
t,
|
|
6372
6372
|
o,
|
|
6373
6373
|
this
|
|
6374
|
-
], this), l &&
|
|
6374
|
+
], this), l && Et(r.onClick, [
|
|
6375
6375
|
t,
|
|
6376
6376
|
o,
|
|
6377
6377
|
this
|
|
@@ -6389,7 +6389,7 @@ let Ge = (Wn = class {
|
|
|
6389
6389
|
}
|
|
6390
6390
|
}, P(Wn, "defaults", Ht), P(Wn, "instances", na), P(Wn, "overrides", _i), P(Wn, "registry", on), P(Wn, "version", u0), P(Wn, "getChart", Lu), Wn);
|
|
6391
6391
|
function Nu() {
|
|
6392
|
-
return
|
|
6392
|
+
return At(Ge.instances, (n) => n._plugins.invalidate());
|
|
6393
6393
|
}
|
|
6394
6394
|
function m0(n, t, e) {
|
|
6395
6395
|
const { startAngle: i, x: s, y: r, outerRadius: a, innerRadius: o, options: l } = t, { borderWidth: c, borderJoinStyle: u } = l, d = Math.min(c / a, ve(i - e));
|
|
@@ -6446,7 +6446,7 @@ function pa(n, t, e, i, s, r) {
|
|
|
6446
6446
|
const G = u > 0 ? u - i : 0, nt = d > 0 ? d - i : 0, Y = (G + nt) / 2, dt = Y !== 0 ? g * Y / (Y + i) : g;
|
|
6447
6447
|
f = (g - dt) / 2;
|
|
6448
6448
|
}
|
|
6449
|
-
const y = Math.max(1e-3, g * d - e / pt) / d, _ = (g - y) / 2, M = l + _ + f, w = s - _ - f, { outerStart: D, outerEnd: v, innerStart: S, innerEnd: O } = b0(t, h, d, w - M), C = d - D, p = d - v, b = M + D / C, k = w - v / p,
|
|
6449
|
+
const y = Math.max(1e-3, g * d - e / pt) / d, _ = (g - y) / 2, M = l + _ + f, w = s - _ - f, { outerStart: D, outerEnd: v, innerStart: S, innerEnd: O } = b0(t, h, d, w - M), C = d - D, p = d - v, b = M + D / C, k = w - v / p, A = h + S, I = h + O, R = M + S / A, H = w - O / I;
|
|
6450
6450
|
if (n.beginPath(), r) {
|
|
6451
6451
|
const G = (b + k) / 2;
|
|
6452
6452
|
if (n.arc(a, o, d, b, G), n.arc(a, o, d, G, k), v > 0) {
|
|
@@ -6460,7 +6460,7 @@ function pa(n, t, e, i, s, r) {
|
|
|
6460
6460
|
}
|
|
6461
6461
|
const Y = (w - O / h + (M + S / h)) / 2;
|
|
6462
6462
|
if (n.arc(a, o, h, w - O / h, Y, !0), n.arc(a, o, h, Y, M + S / h, !0), S > 0) {
|
|
6463
|
-
const V = zi(
|
|
6463
|
+
const V = zi(A, R, a, o);
|
|
6464
6464
|
n.arc(V.x, V.y, S, R + Math.PI, M - zt);
|
|
6465
6465
|
}
|
|
6466
6466
|
const dt = zi(C, M, a, o);
|
|
@@ -6657,7 +6657,7 @@ class Un extends fe {
|
|
|
6657
6657
|
return this._points;
|
|
6658
6658
|
}
|
|
6659
6659
|
get segments() {
|
|
6660
|
-
return this._segments || (this._segments =
|
|
6660
|
+
return this._segments || (this._segments = Ay(this, this.options.segment));
|
|
6661
6661
|
}
|
|
6662
6662
|
first() {
|
|
6663
6663
|
const t = this.segments, e = this.points;
|
|
@@ -6825,7 +6825,7 @@ function O0(n, t, e) {
|
|
|
6825
6825
|
l: Vn(s.left, r.left, 0, t)
|
|
6826
6826
|
};
|
|
6827
6827
|
}
|
|
6828
|
-
function
|
|
6828
|
+
function E0(n, t, e) {
|
|
6829
6829
|
const { enableBorderRadius: i } = n.getProps([
|
|
6830
6830
|
"enableBorderRadius"
|
|
6831
6831
|
]), s = n.options.borderRadius, r = Xn(s), a = Math.min(t, e), o = n.borderSkipped, l = i || xt(s);
|
|
@@ -6836,8 +6836,8 @@ function A0(n, t, e) {
|
|
|
6836
6836
|
bottomRight: Vn(!l || o.bottom || o.right, r.bottomRight, 0, a)
|
|
6837
6837
|
};
|
|
6838
6838
|
}
|
|
6839
|
-
function
|
|
6840
|
-
const t = Mf(n), e = t.right - t.left, i = t.bottom - t.top, s = O0(n, e / 2, i / 2), r =
|
|
6839
|
+
function A0(n) {
|
|
6840
|
+
const t = Mf(n), e = t.right - t.left, i = t.bottom - t.top, s = O0(n, e / 2, i / 2), r = E0(n, e / 2, i / 2);
|
|
6841
6841
|
return {
|
|
6842
6842
|
outer: {
|
|
6843
6843
|
x: t.left,
|
|
@@ -6885,7 +6885,7 @@ class sa extends fe {
|
|
|
6885
6885
|
super(), this.options = void 0, this.horizontal = void 0, this.base = void 0, this.width = void 0, this.height = void 0, this.inflateAmount = void 0, t && Object.assign(this, t);
|
|
6886
6886
|
}
|
|
6887
6887
|
draw(t) {
|
|
6888
|
-
const { inflateAmount: e, options: { borderColor: i, backgroundColor: s } } = this, { inner: r, outer: a } =
|
|
6888
|
+
const { inflateAmount: e, options: { borderColor: i, backgroundColor: s } } = this, { inner: r, outer: a } = A0(this), o = R0(a.radius) ? Zi : I0;
|
|
6889
6889
|
t.save(), (a.w !== r.w || a.h !== r.h) && (t.beginPath(), o(t, Yo(a, e, r)), t.clip(), o(t, Yo(r, -e, a)), t.fillStyle = i, t.fill("evenodd")), t.beginPath(), o(t, Yo(r, e)), t.fillStyle = s, t.fill(), t.restore();
|
|
6890
6890
|
}
|
|
6891
6891
|
inRange(t, e, i) {
|
|
@@ -7531,7 +7531,7 @@ class qu extends fe {
|
|
|
7531
7531
|
}
|
|
7532
7532
|
buildLabels() {
|
|
7533
7533
|
const t = this.options.labels || {};
|
|
7534
|
-
let e =
|
|
7534
|
+
let e = Et(t.generateLabels, [
|
|
7535
7535
|
this.chart
|
|
7536
7536
|
], this) || [];
|
|
7537
7537
|
t.filter && (e = e.filter((i) => t.filter(i, this.chart.data))), t.sort && (e = e.sort((i, s) => t.sort(i, s, this.chart.data))), this.options.reverse && e.reverse(), this.legendItems = e;
|
|
@@ -7622,17 +7622,17 @@ class qu extends fe {
|
|
|
7622
7622
|
pointStyle: p.pointStyle,
|
|
7623
7623
|
rotation: p.rotation,
|
|
7624
7624
|
borderWidth: b
|
|
7625
|
-
},
|
|
7626
|
-
Xh(s, k,
|
|
7625
|
+
}, A = l.xPlus(O, g / 2), I = C + h;
|
|
7626
|
+
Xh(s, k, A, I, a.pointStyleWidth && g);
|
|
7627
7627
|
} else {
|
|
7628
|
-
const k = C + Math.max((d - y) / 2, 0),
|
|
7628
|
+
const k = C + Math.max((d - y) / 2, 0), A = l.leftForLtr(O, g), I = Xn(p.borderRadius);
|
|
7629
7629
|
s.beginPath(), Object.values(I).some((R) => R !== 0) ? Zi(s, {
|
|
7630
|
-
x:
|
|
7630
|
+
x: A,
|
|
7631
7631
|
y: k,
|
|
7632
7632
|
w: g,
|
|
7633
7633
|
h: y,
|
|
7634
7634
|
radius: I
|
|
7635
|
-
}) : s.rect(
|
|
7635
|
+
}) : s.rect(A, k, g, y), s.fill(), b !== 0 && s.stroke();
|
|
7636
7636
|
}
|
|
7637
7637
|
s.restore();
|
|
7638
7638
|
}, w = function(O, C, p) {
|
|
@@ -7654,10 +7654,10 @@ class qu extends fe {
|
|
|
7654
7654
|
this.legendItems.forEach((O, C) => {
|
|
7655
7655
|
s.strokeStyle = O.fontColor, s.fillStyle = O.fontColor;
|
|
7656
7656
|
const p = s.measureText(O.text).width, b = l.textAlign(O.textAlign || (O.textAlign = a.textAlign)), k = g + h + p;
|
|
7657
|
-
let
|
|
7658
|
-
l.setWidth(this.width), D ? C > 0 &&
|
|
7659
|
-
const R = l.x(
|
|
7660
|
-
if (M(R, I, O),
|
|
7657
|
+
let A = f.x, I = f.y;
|
|
7658
|
+
l.setWidth(this.width), D ? C > 0 && A + k + u > this.right && (I = f.y += S, f.line++, A = f.x = xe(r, this.left + u, this.right - i[f.line])) : C > 0 && I + S > this.bottom && (A = f.x = A + e[f.line].width + u, f.line++, I = f.y = xe(r, this.top + v + u, this.bottom - e[f.line].height));
|
|
7659
|
+
const R = l.x(A);
|
|
7660
|
+
if (M(R, I, O), A = Lp(b, A + g + h, D ? A + k : this.right, t.rtl), w(l.x(A), I, O), D)
|
|
7661
7661
|
f.x += k + u;
|
|
7662
7662
|
else if (typeof O.text != "string") {
|
|
7663
7663
|
const H = c.lineHeight;
|
|
@@ -7701,16 +7701,16 @@ class qu extends fe {
|
|
|
7701
7701
|
const i = this._getLegendItemAt(t.x, t.y);
|
|
7702
7702
|
if (t.type === "mousemove" || t.type === "mouseout") {
|
|
7703
7703
|
const s = this._hoveredItem, r = f_(s, i);
|
|
7704
|
-
s && !r &&
|
|
7704
|
+
s && !r && Et(e.onLeave, [
|
|
7705
7705
|
t,
|
|
7706
7706
|
s,
|
|
7707
7707
|
this
|
|
7708
|
-
], this), this._hoveredItem = i, i && !r &&
|
|
7708
|
+
], this), this._hoveredItem = i, i && !r && Et(e.onHover, [
|
|
7709
7709
|
t,
|
|
7710
7710
|
i,
|
|
7711
7711
|
this
|
|
7712
7712
|
], this);
|
|
7713
|
-
} else i &&
|
|
7713
|
+
} else i && Et(e.onClick, [
|
|
7714
7714
|
t,
|
|
7715
7715
|
i,
|
|
7716
7716
|
this
|
|
@@ -8025,9 +8025,9 @@ function Xu(n, t) {
|
|
|
8025
8025
|
const D = function(v) {
|
|
8026
8026
|
_ = Math.max(_, e.measureText(v).width + w);
|
|
8027
8027
|
};
|
|
8028
|
-
return e.save(), e.font = c.string,
|
|
8029
|
-
|
|
8030
|
-
}), w = 0, e.font = u.string,
|
|
8028
|
+
return e.save(), e.font = c.string, At(n.title, D), e.font = l.string, At(n.beforeBody.concat(n.afterBody), D), w = t.displayColors ? a + 2 + t.boxPadding : 0, At(i, (v) => {
|
|
8029
|
+
At(v.before, D), At(v.lines, D), At(v.after, D);
|
|
8030
|
+
}), w = 0, e.font = u.string, At(n.footer, D), e.restore(), _ += g.width, {
|
|
8031
8031
|
width: _,
|
|
8032
8032
|
height: y
|
|
8033
8033
|
};
|
|
@@ -8140,7 +8140,7 @@ const Of = {
|
|
|
8140
8140
|
footer: xn,
|
|
8141
8141
|
afterFooter: xn
|
|
8142
8142
|
};
|
|
8143
|
-
function
|
|
8143
|
+
function Ee(n, t, e, i) {
|
|
8144
8144
|
const s = n[t].call(e, i);
|
|
8145
8145
|
return typeof s > "u" ? Of[t].call(e, i) : s;
|
|
8146
8146
|
}
|
|
@@ -8162,29 +8162,29 @@ class Dl extends fe {
|
|
|
8162
8162
|
return this.$context || (this.$context = C_(this.chart.getContext(), this, this._tooltipItems));
|
|
8163
8163
|
}
|
|
8164
8164
|
getTitle(t, e) {
|
|
8165
|
-
const { callbacks: i } = e, s =
|
|
8165
|
+
const { callbacks: i } = e, s = Ee(i, "beforeTitle", this, t), r = Ee(i, "title", this, t), a = Ee(i, "afterTitle", this, t);
|
|
8166
8166
|
let o = [];
|
|
8167
8167
|
return o = an(o, wn(s)), o = an(o, wn(r)), o = an(o, wn(a)), o;
|
|
8168
8168
|
}
|
|
8169
8169
|
getBeforeBody(t, e) {
|
|
8170
|
-
return Zu(
|
|
8170
|
+
return Zu(Ee(e.callbacks, "beforeBody", this, t));
|
|
8171
8171
|
}
|
|
8172
8172
|
getBody(t, e) {
|
|
8173
8173
|
const { callbacks: i } = e, s = [];
|
|
8174
|
-
return
|
|
8174
|
+
return At(t, (r) => {
|
|
8175
8175
|
const a = {
|
|
8176
8176
|
before: [],
|
|
8177
8177
|
lines: [],
|
|
8178
8178
|
after: []
|
|
8179
8179
|
}, o = Qu(i, r);
|
|
8180
|
-
an(a.before, wn(
|
|
8180
|
+
an(a.before, wn(Ee(o, "beforeLabel", this, r))), an(a.lines, Ee(o, "label", this, r)), an(a.after, wn(Ee(o, "afterLabel", this, r))), s.push(a);
|
|
8181
8181
|
}), s;
|
|
8182
8182
|
}
|
|
8183
8183
|
getAfterBody(t, e) {
|
|
8184
|
-
return Zu(
|
|
8184
|
+
return Zu(Ee(e.callbacks, "afterBody", this, t));
|
|
8185
8185
|
}
|
|
8186
8186
|
getFooter(t, e) {
|
|
8187
|
-
const { callbacks: i } = e, s =
|
|
8187
|
+
const { callbacks: i } = e, s = Ee(i, "beforeFooter", this, t), r = Ee(i, "footer", this, t), a = Ee(i, "afterFooter", this, t);
|
|
8188
8188
|
let o = [];
|
|
8189
8189
|
return o = an(o, wn(s)), o = an(o, wn(r)), o = an(o, wn(a)), o;
|
|
8190
8190
|
}
|
|
@@ -8193,9 +8193,9 @@ class Dl extends fe {
|
|
|
8193
8193
|
let o = [], l, c;
|
|
8194
8194
|
for (l = 0, c = e.length; l < c; ++l)
|
|
8195
8195
|
o.push(w_(this.chart, e[l]));
|
|
8196
|
-
return t.filter && (o = o.filter((u, d, h) => t.filter(u, d, h, i))), t.itemSort && (o = o.sort((u, d) => t.itemSort(u, d, i))),
|
|
8196
|
+
return t.filter && (o = o.filter((u, d, h) => t.filter(u, d, h, i))), t.itemSort && (o = o.sort((u, d) => t.itemSort(u, d, i))), At(o, (u) => {
|
|
8197
8197
|
const d = Qu(t.callbacks, u);
|
|
8198
|
-
s.push(
|
|
8198
|
+
s.push(Ee(d, "labelColor", this, u)), r.push(Ee(d, "labelPointStyle", this, u)), a.push(Ee(d, "labelTextColor", this, u));
|
|
8199
8199
|
}), this.labelColors = s, this.labelPointStyles = r, this.labelTextColors = a, this.dataPoints = o, o;
|
|
8200
8200
|
}
|
|
8201
8201
|
update(t, e) {
|
|
@@ -8286,12 +8286,12 @@ class Dl extends fe {
|
|
|
8286
8286
|
e.fillText(p, g.x(t.x + f), t.y + h / 2), t.y += h + r;
|
|
8287
8287
|
}, _ = g.textAlign(a);
|
|
8288
8288
|
let M, w, D, v, S, O, C;
|
|
8289
|
-
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = Xr(this, _, i), e.fillStyle = i.bodyColor,
|
|
8290
|
-
for (M = s[v], w = this.labelTextColors[v], e.fillStyle = w,
|
|
8289
|
+
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = Xr(this, _, i), e.fillStyle = i.bodyColor, At(this.beforeBody, y), f = o && _ !== "right" ? a === "center" ? c / 2 + u : c + 2 + u : 0, v = 0, O = s.length; v < O; ++v) {
|
|
8290
|
+
for (M = s[v], w = this.labelTextColors[v], e.fillStyle = w, At(M.before, y), D = M.lines, o && D.length && (this._drawColorBox(e, t, v, g, i), h = Math.max(d.lineHeight, l)), S = 0, C = D.length; S < C; ++S)
|
|
8291
8291
|
y(D[S]), h = d.lineHeight;
|
|
8292
|
-
|
|
8292
|
+
At(M.after, y);
|
|
8293
8293
|
}
|
|
8294
|
-
f = 0, h = d.lineHeight,
|
|
8294
|
+
f = 0, h = d.lineHeight, At(this.afterBody, y), t.y -= r;
|
|
8295
8295
|
}
|
|
8296
8296
|
drawFooter(t, e, i) {
|
|
8297
8297
|
const s = this.footer, r = s.length;
|
|
@@ -8506,14 +8506,14 @@ const O_ = (n, t, e, i) => (typeof t == "string" ? (e = n.push(t) - 1, i.unshift
|
|
|
8506
8506
|
index: e,
|
|
8507
8507
|
label: t
|
|
8508
8508
|
})) : isNaN(t) && (e = null), e);
|
|
8509
|
-
function
|
|
8509
|
+
function E_(n, t, e, i) {
|
|
8510
8510
|
const s = n.indexOf(t);
|
|
8511
8511
|
if (s === -1)
|
|
8512
8512
|
return O_(n, t, e, i);
|
|
8513
8513
|
const r = n.lastIndexOf(t);
|
|
8514
8514
|
return s !== r ? e : s;
|
|
8515
8515
|
}
|
|
8516
|
-
const
|
|
8516
|
+
const A_ = (n, t) => n === null ? null : he(Math.round(n), 0, t);
|
|
8517
8517
|
function Ju(n) {
|
|
8518
8518
|
const t = this.getLabels();
|
|
8519
8519
|
return n >= 0 && n < t.length ? t[n] : n;
|
|
@@ -8536,7 +8536,7 @@ class kl extends Mi {
|
|
|
8536
8536
|
if (ct(t))
|
|
8537
8537
|
return null;
|
|
8538
8538
|
const i = this.getLabels();
|
|
8539
|
-
return e = isFinite(e) && i[e] === t ? e :
|
|
8539
|
+
return e = isFinite(e) && i[e] === t ? e : E_(i, t, lt(e, t), this._addedLabels), A_(e, i.length - 1);
|
|
8540
8540
|
}
|
|
8541
8541
|
determineDataLimits() {
|
|
8542
8542
|
const { minDefined: t, maxDefined: e } = this.getUserBounds();
|
|
@@ -8593,11 +8593,11 @@ function R_(n, t) {
|
|
|
8593
8593
|
b = Math.ceil(_ / S) - Math.floor(y / S), b > g && (S = Xc(b * S / g / f) * f), ct(l) || (O = Math.pow(10, l), S = Math.ceil(S * O) / O), s === "ticks" ? (C = Math.floor(y / S) * S, p = Math.ceil(_ / S) * S) : (C = y, p = _), M && w && r && Cp((o - a) / r, S / 1e3) ? (b = Math.round(Math.min((o - a) / S, u)), S = (o - a) / b, C = a, p = o) : D ? (C = M ? a : C, p = w ? o : p, b = c - 1, S = (p - C) / b) : (b = (p - C) / S, Bs(b, Math.round(b), S / 1e3) ? b = Math.round(b) : b = Math.ceil(b));
|
|
8594
8594
|
const k = Math.max(Gc(S), Gc(C));
|
|
8595
8595
|
O = Math.pow(10, ct(l) ? k : l), C = Math.round(C * O) / O, p = Math.round(p * O) / O;
|
|
8596
|
-
let
|
|
8596
|
+
let A = 0;
|
|
8597
8597
|
for (M && (h && C !== a ? (e.push({
|
|
8598
8598
|
value: a
|
|
8599
|
-
}), C < a &&
|
|
8600
|
-
const I = Math.round((C +
|
|
8599
|
+
}), C < a && A++, Bs(Math.round((C + A * S) * O) / O, a, td(a, v, n)) && A++) : C < a && A++); A < b; ++A) {
|
|
8600
|
+
const I = Math.round((C + A * S) * O) / O;
|
|
8601
8601
|
if (w && I > o)
|
|
8602
8602
|
break;
|
|
8603
8603
|
e.push({
|
|
@@ -8693,7 +8693,7 @@ class Cl extends ya {
|
|
|
8693
8693
|
}
|
|
8694
8694
|
P(Cl, "id", "linear"), P(Cl, "defaults", {
|
|
8695
8695
|
ticks: {
|
|
8696
|
-
callback:
|
|
8696
|
+
callback: Aa.formatters.numeric
|
|
8697
8697
|
}
|
|
8698
8698
|
});
|
|
8699
8699
|
const ir = (n) => Math.floor($n(n)), di = (n, t) => Math.pow(10, ir(n) + t);
|
|
@@ -8781,7 +8781,7 @@ class Pl extends Mi {
|
|
|
8781
8781
|
}
|
|
8782
8782
|
P(Pl, "id", "logarithmic"), P(Pl, "defaults", {
|
|
8783
8783
|
ticks: {
|
|
8784
|
-
callback:
|
|
8784
|
+
callback: Aa.formatters.logarithmic,
|
|
8785
8785
|
major: {
|
|
8786
8786
|
enabled: !0
|
|
8787
8787
|
}
|
|
@@ -8827,7 +8827,7 @@ function F_(n) {
|
|
|
8827
8827
|
s[l] = c.padding;
|
|
8828
8828
|
const u = n.getPointPosition(l, n.drawingArea + s[l], o), d = Yt(c.font), h = N_(n.ctx, d, n._pointLabels[l]);
|
|
8829
8829
|
i[l] = h;
|
|
8830
|
-
const f = ve(n.getIndexAngle(l) + o), g = Math.round(
|
|
8830
|
+
const f = ve(n.getIndexAngle(l) + o), g = Math.round(Ea(f)), y = id(g, u.x, h.w, 0, 180), _ = id(g, u.y, h.h, 90, 270);
|
|
8831
8831
|
z_(e, t, f, y, _);
|
|
8832
8832
|
}
|
|
8833
8833
|
n.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), n._pointLabelItems = B_(n, i, s);
|
|
@@ -8838,7 +8838,7 @@ function z_(n, t, e, i, s) {
|
|
|
8838
8838
|
i.start < t.l ? (o = (t.l - i.start) / r, n.l = Math.min(n.l, t.l - o)) : i.end > t.r && (o = (i.end - t.r) / r, n.r = Math.max(n.r, t.r + o)), s.start < t.t ? (l = (t.t - s.start) / a, n.t = Math.min(n.t, t.t - l)) : s.end > t.b && (l = (s.end - t.b) / a, n.b = Math.max(n.b, t.b + l));
|
|
8839
8839
|
}
|
|
8840
8840
|
function H_(n, t, e) {
|
|
8841
|
-
const i = n.drawingArea, { extra: s, additionalAngle: r, padding: a, size: o } = e, l = n.getPointPosition(t, i + s + a, r), c = Math.round(
|
|
8841
|
+
const i = n.drawingArea, { extra: s, additionalAngle: r, padding: a, size: o } = e, l = n.getPointPosition(t, i + s + a, r), c = Math.round(Ea(ve(l.angle + zt))), u = $_(l.y, o.h, c), d = Y_(c), h = j_(l.x, o.w, d);
|
|
8842
8842
|
return {
|
|
8843
8843
|
visible: !0,
|
|
8844
8844
|
x: l.x,
|
|
@@ -8921,7 +8921,7 @@ function V_(n, t) {
|
|
|
8921
8921
|
});
|
|
8922
8922
|
}
|
|
8923
8923
|
}
|
|
8924
|
-
function
|
|
8924
|
+
function Ef(n, t, e, i) {
|
|
8925
8925
|
const { ctx: s } = n;
|
|
8926
8926
|
if (e)
|
|
8927
8927
|
s.arc(n.xCenter, n.yCenter, t, 0, Lt);
|
|
@@ -8934,7 +8934,7 @@ function Af(n, t, e, i) {
|
|
|
8934
8934
|
}
|
|
8935
8935
|
function q_(n, t, e, i, s) {
|
|
8936
8936
|
const r = n.ctx, a = t.circular, { color: o, lineWidth: l } = t;
|
|
8937
|
-
!a && !i || !o || !l || e < 0 || (r.save(), r.strokeStyle = o, r.lineWidth = l, r.setLineDash(s.dash || []), r.lineDashOffset = s.dashOffset, r.beginPath(),
|
|
8937
|
+
!a && !i || !o || !l || e < 0 || (r.save(), r.strokeStyle = o, r.lineWidth = l, r.setLineDash(s.dash || []), r.lineDashOffset = s.dashOffset, r.beginPath(), Ef(n, e, a, i), r.closePath(), r.stroke(), r.restore());
|
|
8938
8938
|
}
|
|
8939
8939
|
function X_(n, t, e) {
|
|
8940
8940
|
return ti(n, {
|
|
@@ -8960,7 +8960,7 @@ class Fs extends ya {
|
|
|
8960
8960
|
}
|
|
8961
8961
|
generateTickLabels(t) {
|
|
8962
8962
|
ya.prototype.generateTickLabels.call(this, t), this._pointLabels = this.getLabels().map((e, i) => {
|
|
8963
|
-
const s =
|
|
8963
|
+
const s = Et(this.options.pointLabels.callback, [
|
|
8964
8964
|
e,
|
|
8965
8965
|
i
|
|
8966
8966
|
], this);
|
|
@@ -9024,7 +9024,7 @@ class Fs extends ya {
|
|
|
9024
9024
|
const { backgroundColor: t, grid: { circular: e } } = this.options;
|
|
9025
9025
|
if (t) {
|
|
9026
9026
|
const i = this.ctx;
|
|
9027
|
-
i.save(), i.beginPath(),
|
|
9027
|
+
i.save(), i.beginPath(), Ef(this, this.getDistanceFromCenterForValue(this._endValue), e, this._pointLabels.length), i.closePath(), i.fillStyle = t, i.fill(), i.restore();
|
|
9028
9028
|
}
|
|
9029
9029
|
}
|
|
9030
9030
|
drawGrid() {
|
|
@@ -9087,7 +9087,7 @@ P(Fs, "id", "radialLinear"), P(Fs, "defaults", {
|
|
|
9087
9087
|
startAngle: 0,
|
|
9088
9088
|
ticks: {
|
|
9089
9089
|
showLabelBackdrop: !0,
|
|
9090
|
-
callback:
|
|
9090
|
+
callback: Aa.formatters.numeric
|
|
9091
9091
|
},
|
|
9092
9092
|
pointLabels: {
|
|
9093
9093
|
backdropColor: void 0,
|
|
@@ -9259,7 +9259,7 @@ class sr extends Mi {
|
|
|
9259
9259
|
buildTicks() {
|
|
9260
9260
|
const t = this.options, e = t.time, i = t.ticks, s = i.source === "labels" ? this.getLabelTimestamps() : this._generate();
|
|
9261
9261
|
t.bounds === "ticks" && s.length && (this.min = this._userMin || s[0], this.max = this._userMax || s[s.length - 1]);
|
|
9262
|
-
const r = this.min, a = this.max, o =
|
|
9262
|
+
const r = this.min, a = this.max, o = Ap(s, r, a);
|
|
9263
9263
|
return this._unit = e.unit || (i.autoSkip ? ad(e.minUnit, this.min, this.max, this._getLabelCapacity(r)) : G_(this, o.length, e.minUnit, this.min, this.max)), this._majorUnit = !i.major.enabled || this._unit === "year" ? void 0 : K_(this._unit), this.initOffsets(s), t.reverse && o.reverse(), ld(this, o, this._majorUnit);
|
|
9264
9264
|
}
|
|
9265
9265
|
afterAutoSkip() {
|
|
@@ -9296,7 +9296,7 @@ class sr extends Mi {
|
|
|
9296
9296
|
_tickFormatFunction(t, e, i, s) {
|
|
9297
9297
|
const r = this.options, a = r.ticks.callback;
|
|
9298
9298
|
if (a)
|
|
9299
|
-
return
|
|
9299
|
+
return Et(a, [
|
|
9300
9300
|
t,
|
|
9301
9301
|
e,
|
|
9302
9302
|
i
|
|
@@ -9383,7 +9383,7 @@ function Gr(n, t, e) {
|
|
|
9383
9383
|
const c = a - r;
|
|
9384
9384
|
return c ? o + (l - o) * (t - r) / c : o;
|
|
9385
9385
|
}
|
|
9386
|
-
class
|
|
9386
|
+
class El extends sr {
|
|
9387
9387
|
constructor(t) {
|
|
9388
9388
|
super(t), this._table = [], this._minPos = void 0, this._tableRange = void 0;
|
|
9389
9389
|
}
|
|
@@ -9434,7 +9434,7 @@ class Al extends sr {
|
|
|
9434
9434
|
return Gr(this._table, i * this._tableRange + this._minPos, !0);
|
|
9435
9435
|
}
|
|
9436
9436
|
}
|
|
9437
|
-
P(
|
|
9437
|
+
P(El, "id", "timeseries"), P(El, "defaults", sr.defaults);
|
|
9438
9438
|
var Q_ = /* @__PURE__ */ Object.freeze({
|
|
9439
9439
|
__proto__: null,
|
|
9440
9440
|
CategoryScale: kl,
|
|
@@ -9442,14 +9442,14 @@ var Q_ = /* @__PURE__ */ Object.freeze({
|
|
|
9442
9442
|
LogarithmicScale: Pl,
|
|
9443
9443
|
RadialLinearScale: Fs,
|
|
9444
9444
|
TimeScale: sr,
|
|
9445
|
-
TimeSeriesScale:
|
|
9445
|
+
TimeSeriesScale: El
|
|
9446
9446
|
});
|
|
9447
9447
|
const J_ = [
|
|
9448
9448
|
ob,
|
|
9449
9449
|
L0,
|
|
9450
9450
|
P_,
|
|
9451
9451
|
Q_
|
|
9452
|
-
],
|
|
9452
|
+
], Af = 6048e5, tx = 864e5, dr = 6e4, ss = 36e5, ex = 1e3, cd = Symbol.for("constructDateFrom");
|
|
9453
9453
|
function Gt(n, t) {
|
|
9454
9454
|
return typeof n == "function" ? n(t) : n && typeof n == "object" && cd in n ? n[cd](t) : n instanceof Date ? new n.constructor(t) : new Date(t);
|
|
9455
9455
|
}
|
|
@@ -9521,7 +9521,7 @@ function Ti(n, ...t) {
|
|
|
9521
9521
|
);
|
|
9522
9522
|
return t.map(e);
|
|
9523
9523
|
}
|
|
9524
|
-
function
|
|
9524
|
+
function Al(n, t) {
|
|
9525
9525
|
const e = gt(n, t == null ? void 0 : t.in);
|
|
9526
9526
|
return e.setHours(0, 0, 0, 0), e;
|
|
9527
9527
|
}
|
|
@@ -9530,7 +9530,7 @@ function If(n, t, e) {
|
|
|
9530
9530
|
e == null ? void 0 : e.in,
|
|
9531
9531
|
n,
|
|
9532
9532
|
t
|
|
9533
|
-
), r =
|
|
9533
|
+
), r = Al(i), a = Al(s), o = +r - ba(r), l = +a - ba(a);
|
|
9534
9534
|
return Math.round((o - l) / tx);
|
|
9535
9535
|
}
|
|
9536
9536
|
function sx(n, t) {
|
|
@@ -9781,12 +9781,12 @@ const Ox = {
|
|
|
9781
9781
|
long: "MMMM do, y",
|
|
9782
9782
|
medium: "MMM d, y",
|
|
9783
9783
|
short: "MM/dd/yyyy"
|
|
9784
|
-
},
|
|
9784
|
+
}, Ex = {
|
|
9785
9785
|
full: "h:mm:ss a zzzz",
|
|
9786
9786
|
long: "h:mm:ss a z",
|
|
9787
9787
|
medium: "h:mm:ss a",
|
|
9788
9788
|
short: "h:mm a"
|
|
9789
|
-
},
|
|
9789
|
+
}, Ax = {
|
|
9790
9790
|
full: "{{date}} 'at' {{time}}",
|
|
9791
9791
|
long: "{{date}} 'at' {{time}}",
|
|
9792
9792
|
medium: "{{date}}, {{time}}",
|
|
@@ -9797,11 +9797,11 @@ const Ox = {
|
|
|
9797
9797
|
defaultWidth: "full"
|
|
9798
9798
|
}),
|
|
9799
9799
|
time: Uo({
|
|
9800
|
-
formats:
|
|
9800
|
+
formats: Ex,
|
|
9801
9801
|
defaultWidth: "full"
|
|
9802
9802
|
}),
|
|
9803
9803
|
dateTime: Uo({
|
|
9804
|
-
formats:
|
|
9804
|
+
formats: Ax,
|
|
9805
9805
|
defaultWidth: "full"
|
|
9806
9806
|
})
|
|
9807
9807
|
}, Ix = {
|
|
@@ -10140,7 +10140,7 @@ function av(n, t) {
|
|
|
10140
10140
|
}
|
|
10141
10141
|
function Bf(n, t) {
|
|
10142
10142
|
const e = gt(n, t == null ? void 0 : t.in), i = +ts(e) - +sx(e);
|
|
10143
|
-
return Math.round(i /
|
|
10143
|
+
return Math.round(i / Af) + 1;
|
|
10144
10144
|
}
|
|
10145
10145
|
function bc(n, t) {
|
|
10146
10146
|
var u, d, h, f;
|
|
@@ -10158,7 +10158,7 @@ function ov(n, t) {
|
|
|
10158
10158
|
}
|
|
10159
10159
|
function Yf(n, t) {
|
|
10160
10160
|
const e = gt(n, t == null ? void 0 : t.in), i = +dn(e, t) - +ov(e, t);
|
|
10161
|
-
return Math.round(i /
|
|
10161
|
+
return Math.round(i / Af) + 1;
|
|
10162
10162
|
}
|
|
10163
10163
|
function Pt(n, t) {
|
|
10164
10164
|
const e = n < 0 ? "-" : "", i = Math.abs(n).toString().padStart(t, "0");
|
|
@@ -11263,7 +11263,7 @@ class Ov extends kt {
|
|
|
11263
11263
|
return e.setMonth((s - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
11264
11264
|
}
|
|
11265
11265
|
}
|
|
11266
|
-
class
|
|
11266
|
+
class Ev extends kt {
|
|
11267
11267
|
constructor() {
|
|
11268
11268
|
super(...arguments);
|
|
11269
11269
|
P(this, "priority", 120);
|
|
@@ -11325,7 +11325,7 @@ class Av extends kt {
|
|
|
11325
11325
|
return e.setMonth((s - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
11326
11326
|
}
|
|
11327
11327
|
}
|
|
11328
|
-
class
|
|
11328
|
+
class Av extends kt {
|
|
11329
11329
|
constructor() {
|
|
11330
11330
|
super(...arguments);
|
|
11331
11331
|
P(this, "incompatibleTokens", [
|
|
@@ -12276,8 +12276,8 @@ const ow = {
|
|
|
12276
12276
|
R: new Cv(),
|
|
12277
12277
|
u: new Pv(),
|
|
12278
12278
|
Q: new Ov(),
|
|
12279
|
-
q: new
|
|
12280
|
-
M: new
|
|
12279
|
+
q: new Ev(),
|
|
12280
|
+
M: new Av(),
|
|
12281
12281
|
L: new Rv(),
|
|
12282
12282
|
w: new Lv(),
|
|
12283
12283
|
I: new Fv(),
|
|
@@ -12323,10 +12323,10 @@ function gw(n, t, e, i) {
|
|
|
12323
12323
|
!(i != null && i.useAdditionalWeekYearTokens) && Uf(p) && Il(p, t, n), !(i != null && i.useAdditionalDayOfYearTokens) && $f(p) && Il(p, t, n);
|
|
12324
12324
|
const b = p[0], k = ow[b];
|
|
12325
12325
|
if (k) {
|
|
12326
|
-
const { incompatibleTokens:
|
|
12327
|
-
if (Array.isArray(
|
|
12326
|
+
const { incompatibleTokens: A } = k;
|
|
12327
|
+
if (Array.isArray(A)) {
|
|
12328
12328
|
const R = h.find(
|
|
12329
|
-
(H) =>
|
|
12329
|
+
(H) => A.includes(H.token) || H.token === b
|
|
12330
12330
|
);
|
|
12331
12331
|
if (R)
|
|
12332
12332
|
throw new RangeError(
|
|
@@ -12457,10 +12457,10 @@ function Tw(n, t) {
|
|
|
12457
12457
|
if (!e) return /* @__PURE__ */ new Date(NaN);
|
|
12458
12458
|
const i = !!e[4], s = Ds(e[1]), r = Ds(e[2]) - 1, a = Ds(e[3]), o = Ds(e[4]), l = Ds(e[5]) - 1;
|
|
12459
12459
|
if (i)
|
|
12460
|
-
return
|
|
12460
|
+
return Aw(t, o, l) ? Cw(t, o, l) : /* @__PURE__ */ new Date(NaN);
|
|
12461
12461
|
{
|
|
12462
12462
|
const c = /* @__PURE__ */ new Date(0);
|
|
12463
|
-
return !Ow(t, r, a) || !
|
|
12463
|
+
return !Ow(t, r, a) || !Ew(t, s) ? /* @__PURE__ */ new Date(NaN) : (c.setUTCFullYear(t, r, Math.max(s, a)), c);
|
|
12464
12464
|
}
|
|
12465
12465
|
}
|
|
12466
12466
|
function Ds(n) {
|
|
@@ -12495,10 +12495,10 @@ function Qf(n) {
|
|
|
12495
12495
|
function Ow(n, t, e) {
|
|
12496
12496
|
return t >= 0 && t <= 11 && e >= 1 && e <= (Pw[t] || (Qf(n) ? 29 : 28));
|
|
12497
12497
|
}
|
|
12498
|
-
function
|
|
12498
|
+
function Ew(n, t) {
|
|
12499
12499
|
return t >= 1 && t <= (Qf(n) ? 366 : 365);
|
|
12500
12500
|
}
|
|
12501
|
-
function
|
|
12501
|
+
function Aw(n, t, e) {
|
|
12502
12502
|
return t >= 1 && t <= 53 && e >= 0 && e <= 6;
|
|
12503
12503
|
}
|
|
12504
12504
|
function Rw(n, t, e) {
|
|
@@ -13069,23 +13069,23 @@ function C1(n, t) {
|
|
|
13069
13069
|
return e = /* @__PURE__ */ new Date(0), e.setUTCFullYear(t), e;
|
|
13070
13070
|
let r = Se.MM.exec(n);
|
|
13071
13071
|
if (r)
|
|
13072
|
-
return e = /* @__PURE__ */ new Date(0), i = parseInt(r[1], 10) - 1,
|
|
13072
|
+
return e = /* @__PURE__ */ new Date(0), i = parseInt(r[1], 10) - 1, Ed(t, i) ? (e.setUTCFullYear(t, i), e) : /* @__PURE__ */ new Date(NaN);
|
|
13073
13073
|
if (r = Se.DDD.exec(n), r) {
|
|
13074
13074
|
e = /* @__PURE__ */ new Date(0);
|
|
13075
13075
|
const a = parseInt(r[1], 10);
|
|
13076
|
-
return
|
|
13076
|
+
return A1(t, a) ? (e.setUTCFullYear(t, 0, a), e) : /* @__PURE__ */ new Date(NaN);
|
|
13077
13077
|
}
|
|
13078
13078
|
if (r = Se.MMDD.exec(n), r) {
|
|
13079
13079
|
e = /* @__PURE__ */ new Date(0), i = parseInt(r[1], 10) - 1;
|
|
13080
13080
|
const a = parseInt(r[2], 10);
|
|
13081
|
-
return
|
|
13081
|
+
return Ed(t, i, a) ? (e.setUTCFullYear(t, i, a), e) : /* @__PURE__ */ new Date(NaN);
|
|
13082
13082
|
}
|
|
13083
13083
|
if (r = Se.Www.exec(n), r)
|
|
13084
|
-
return s = parseInt(r[1], 10) - 1,
|
|
13084
|
+
return s = parseInt(r[1], 10) - 1, Ad(s) ? Od(t, s) : /* @__PURE__ */ new Date(NaN);
|
|
13085
13085
|
if (r = Se.WwwD.exec(n), r) {
|
|
13086
13086
|
s = parseInt(r[1], 10) - 1;
|
|
13087
13087
|
const a = parseInt(r[2], 10) - 1;
|
|
13088
|
-
return
|
|
13088
|
+
return Ad(s, a) ? Od(t, s, a) : /* @__PURE__ */ new Date(NaN);
|
|
13089
13089
|
}
|
|
13090
13090
|
return null;
|
|
13091
13091
|
}
|
|
@@ -13109,29 +13109,29 @@ function Od(n, t, e) {
|
|
|
13109
13109
|
const s = i.getUTCDay() || 7, r = t * 7 + e + 1 - s;
|
|
13110
13110
|
return i.setUTCDate(i.getUTCDate() + r), i;
|
|
13111
13111
|
}
|
|
13112
|
-
const O1 = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
|
|
13112
|
+
const O1 = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], E1 = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
13113
13113
|
function og(n) {
|
|
13114
13114
|
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
13115
13115
|
}
|
|
13116
|
-
function
|
|
13116
|
+
function Ed(n, t, e) {
|
|
13117
13117
|
if (t < 0 || t > 11)
|
|
13118
13118
|
return !1;
|
|
13119
13119
|
if (e != null) {
|
|
13120
13120
|
if (e < 1)
|
|
13121
13121
|
return !1;
|
|
13122
13122
|
const i = og(n);
|
|
13123
|
-
if (i && e >
|
|
13123
|
+
if (i && e > E1[t] || !i && e > O1[t])
|
|
13124
13124
|
return !1;
|
|
13125
13125
|
}
|
|
13126
13126
|
return !0;
|
|
13127
13127
|
}
|
|
13128
|
-
function
|
|
13128
|
+
function A1(n, t) {
|
|
13129
13129
|
if (t < 1)
|
|
13130
13130
|
return !1;
|
|
13131
13131
|
const e = og(n);
|
|
13132
13132
|
return !(e && t > 366 || !e && t > 365);
|
|
13133
13133
|
}
|
|
13134
|
-
function
|
|
13134
|
+
function Ad(n, t) {
|
|
13135
13135
|
return !(n < 0 || n > 52 || t != null && (t < 0 || t > 6));
|
|
13136
13136
|
}
|
|
13137
13137
|
function el(n, t, e) {
|
|
@@ -13437,7 +13437,7 @@ function j1(n, t, e, i, s) {
|
|
|
13437
13437
|
options: l
|
|
13438
13438
|
});
|
|
13439
13439
|
};
|
|
13440
|
-
return
|
|
13440
|
+
return En(() => {
|
|
13441
13441
|
r.value = a(e.value, s.value);
|
|
13442
13442
|
}), Kl(() => {
|
|
13443
13443
|
ct(r.value) || r.value.destroy();
|
|
@@ -13515,7 +13515,7 @@ function U1(n, t, e) {
|
|
|
13515
13515
|
}
|
|
13516
13516
|
var V1 = Object.defineProperty, q1 = (n, t, e) => t in n ? V1(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, Ve = (n, t, e) => q1(n, typeof t != "symbol" ? t + "" : t, e);
|
|
13517
13517
|
const X1 = 250;
|
|
13518
|
-
var vt = /* @__PURE__ */ ((n) => (n.FIFTEEN_MIN = "15m", n.ONE_HOUR = "1h", n.SIX_HOUR = "6h", n.TWELVE_HOUR = "12h", n.ONE_DAY = "24h", n.SEVEN_DAY = "7d", n.THIRTY_DAY = "30d", n.CURRENT_WEEK = "current_week", n.CURRENT_MONTH = "current_month", n.CURRENT_QUARTER = "current_quarter", n.PREVIOUS_WEEK = "previous_week", n.PREVIOUS_MONTH = "previous_month", n.PREVIOUS_QUARTER = "previous_quarter", n))(vt || {});
|
|
13518
|
+
var vt = /* @__PURE__ */ ((n) => (n.FIFTEEN_MIN = "15m", n.ONE_HOUR = "1h", n.SIX_HOUR = "6h", n.TWELVE_HOUR = "12h", n.ONE_DAY = "24h", n.SEVEN_DAY = "7d", n.THIRTY_DAY = "30d", n.NINETY_DAY = "90d", n.ONE_HUNDRED_EIGHTY_DAY = "180d", n.THREE_HUNDRED_SIXTY_DAY = "360d", n.CURRENT_WEEK = "current_week", n.CURRENT_MONTH = "current_month", n.CURRENT_QUARTER = "current_quarter", n.CURRENT_YEAR = "current_year", n.PREVIOUS_WEEK = "previous_week", n.PREVIOUS_MONTH = "previous_month", n.PREVIOUS_QUARTER = "previous_quarter", n.PREVIOUS_YEAR = "previous_year", n))(vt || {});
|
|
13519
13519
|
const G1 = ["in", "not_in", "selector"], K1 = ["empty", "not_empty"], Z1 = [
|
|
13520
13520
|
"secondly",
|
|
13521
13521
|
"tenSecondly",
|
|
@@ -14297,7 +14297,7 @@ function Ps(n) {
|
|
|
14297
14297
|
const i = e.width, s = i && n.matchPatterns[i] || n.matchPatterns[n.defaultMatchWidth], r = t.match(s);
|
|
14298
14298
|
if (!r)
|
|
14299
14299
|
return null;
|
|
14300
|
-
const a = r[0], o = i && n.parsePatterns[i] || n.parsePatterns[n.defaultParseWidth], l = Array.isArray(o) ?
|
|
14300
|
+
const a = r[0], o = i && n.parsePatterns[i] || n.parsePatterns[n.defaultParseWidth], l = Array.isArray(o) ? EM(o, (d) => d.test(a)) : (
|
|
14301
14301
|
// [TODO] -- I challenge you to fix the type
|
|
14302
14302
|
OM(o, (d) => d.test(a))
|
|
14303
14303
|
);
|
|
@@ -14315,12 +14315,12 @@ function OM(n, t) {
|
|
|
14315
14315
|
if (Object.prototype.hasOwnProperty.call(n, e) && t(n[e]))
|
|
14316
14316
|
return e;
|
|
14317
14317
|
}
|
|
14318
|
-
function
|
|
14318
|
+
function EM(n, t) {
|
|
14319
14319
|
for (let e = 0; e < n.length; e++)
|
|
14320
14320
|
if (t(n[e]))
|
|
14321
14321
|
return e;
|
|
14322
14322
|
}
|
|
14323
|
-
function
|
|
14323
|
+
function AM(n) {
|
|
14324
14324
|
return (t, e = {}) => {
|
|
14325
14325
|
const i = t.match(n.matchPattern);
|
|
14326
14326
|
if (!i) return null;
|
|
@@ -14400,7 +14400,7 @@ const RM = /^(\d+)(th|st|nd|rd)?/i, IM = /\d+/i, LM = {
|
|
|
14400
14400
|
night: /night/i
|
|
14401
14401
|
}
|
|
14402
14402
|
}, UM = {
|
|
14403
|
-
ordinalNumber:
|
|
14403
|
+
ordinalNumber: AM({
|
|
14404
14404
|
matchPattern: RM,
|
|
14405
14405
|
parsePattern: IM,
|
|
14406
14406
|
valueCallback: (n) => parseInt(n, 10)
|
|
@@ -15311,7 +15311,7 @@ function PS(n) {
|
|
|
15311
15311
|
return !1;
|
|
15312
15312
|
}
|
|
15313
15313
|
}
|
|
15314
|
-
const OS = 60 * 1e3,
|
|
15314
|
+
const OS = 60 * 1e3, ES = {
|
|
15315
15315
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
15316
15316
|
X: function(n, t, e) {
|
|
15317
15317
|
const i = ll(e.timeZone, n);
|
|
@@ -15351,7 +15351,7 @@ const OS = 60 * 1e3, AS = {
|
|
|
15351
15351
|
case "O":
|
|
15352
15352
|
case "OO":
|
|
15353
15353
|
case "OOO":
|
|
15354
|
-
return "GMT" +
|
|
15354
|
+
return "GMT" + AS(i, ":");
|
|
15355
15355
|
case "OOOO":
|
|
15356
15356
|
default:
|
|
15357
15357
|
return "GMT" + $i(i, ":");
|
|
@@ -15390,7 +15390,7 @@ function $i(n, t = "") {
|
|
|
15390
15390
|
function Ud(n, t) {
|
|
15391
15391
|
return n % 60 === 0 ? (n > 0 ? "-" : "+") + Ta(Math.abs(n) / 60, 2) : $i(n, t);
|
|
15392
15392
|
}
|
|
15393
|
-
function
|
|
15393
|
+
function AS(n, t = "") {
|
|
15394
15394
|
const e = n > 0 ? "-" : "+", i = Math.abs(n), s = Math.floor(i / 60), r = i % 60;
|
|
15395
15395
|
return r === 0 ? e + String(s) : e + String(s) + t + Ta(r, 2);
|
|
15396
15396
|
}
|
|
@@ -15580,7 +15580,7 @@ function YS(n, t, e = {}) {
|
|
|
15580
15580
|
t = i.reduce(function(r, a) {
|
|
15581
15581
|
if (a[0] === "'")
|
|
15582
15582
|
return r;
|
|
15583
|
-
const o = r.indexOf(a), l = r[o - 1] === "'", c = r.replace(a, "'" +
|
|
15583
|
+
const o = r.indexOf(a), l = r[o - 1] === "'", c = r.replace(a, "'" + ES[a[0]](s, a, e) + "'");
|
|
15584
15584
|
return l ? c.substring(0, o - 1) + c.substring(o + 1) : c;
|
|
15585
15585
|
}, t);
|
|
15586
15586
|
}
|
|
@@ -15642,62 +15642,62 @@ function dl(n) {
|
|
|
15642
15642
|
var Zr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ka = { exports: {} };
|
|
15643
15643
|
ka.exports;
|
|
15644
15644
|
(function(n, t) {
|
|
15645
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, r = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", l = "[object Date]", c = "[object Error]", u = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", f = "[object Number]", g = "[object Object]", y = "[object Promise]", _ = "[object RegExp]", M = "[object Set]", w = "[object String]", D = "[object Symbol]", v = "[object WeakMap]", S = "[object ArrayBuffer]", O = "[object DataView]", C = "[object Float32Array]", p = "[object Float64Array]", b = "[object Int8Array]", k = "[object Int16Array]",
|
|
15646
|
-
et[r] = et[a] = et[S] = et[O] = et[o] = et[l] = et[C] = et[p] = et[b] = et[k] = et[
|
|
15645
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, r = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", l = "[object Date]", c = "[object Error]", u = "[object Function]", d = "[object GeneratorFunction]", h = "[object Map]", f = "[object Number]", g = "[object Object]", y = "[object Promise]", _ = "[object RegExp]", M = "[object Set]", w = "[object String]", D = "[object Symbol]", v = "[object WeakMap]", S = "[object ArrayBuffer]", O = "[object DataView]", C = "[object Float32Array]", p = "[object Float64Array]", b = "[object Int8Array]", k = "[object Int16Array]", A = "[object Int32Array]", I = "[object Uint8Array]", R = "[object Uint8ClampedArray]", H = "[object Uint16Array]", G = "[object Uint32Array]", nt = /[\\^$.*+?()[\]{}|]/g, Y = /\w*$/, dt = /^\[object .+?Constructor\]$/, V = /^(?:0|[1-9]\d*)$/, et = {};
|
|
15646
|
+
et[r] = et[a] = et[S] = et[O] = et[o] = et[l] = et[C] = et[p] = et[b] = et[k] = et[A] = et[h] = et[f] = et[g] = et[_] = et[M] = et[w] = et[D] = et[I] = et[R] = et[H] = et[G] = !0, et[c] = et[u] = et[v] = !1;
|
|
15647
15647
|
var it = typeof Zr == "object" && Zr && Zr.Object === Object && Zr, K = typeof self == "object" && self && self.Object === Object && self, $ = it || K || Function("return this")(), U = t && !t.nodeType && t, Q = U && !0 && n && !n.nodeType && n, wt = Q && Q.exports === U;
|
|
15648
|
-
function yt(x,
|
|
15649
|
-
return x.set(
|
|
15648
|
+
function yt(x, E) {
|
|
15649
|
+
return x.set(E[0], E[1]), x;
|
|
15650
15650
|
}
|
|
15651
|
-
function bt(x,
|
|
15652
|
-
return x.add(
|
|
15651
|
+
function bt(x, E) {
|
|
15652
|
+
return x.add(E), x;
|
|
15653
15653
|
}
|
|
15654
|
-
function z(x,
|
|
15655
|
-
for (var N = -1, Z = x ? x.length : 0; ++N < Z &&
|
|
15654
|
+
function z(x, E) {
|
|
15655
|
+
for (var N = -1, Z = x ? x.length : 0; ++N < Z && E(x[N], N, x) !== !1; )
|
|
15656
15656
|
;
|
|
15657
15657
|
return x;
|
|
15658
15658
|
}
|
|
15659
|
-
function j(x,
|
|
15660
|
-
for (var N = -1, Z =
|
|
15661
|
-
x[Zt + N] =
|
|
15659
|
+
function j(x, E) {
|
|
15660
|
+
for (var N = -1, Z = E.length, Zt = x.length; ++N < Z; )
|
|
15661
|
+
x[Zt + N] = E[N];
|
|
15662
15662
|
return x;
|
|
15663
15663
|
}
|
|
15664
|
-
function B(x,
|
|
15664
|
+
function B(x, E, N, Z) {
|
|
15665
15665
|
for (var Zt = -1, le = x ? x.length : 0; ++Zt < le; )
|
|
15666
|
-
N =
|
|
15666
|
+
N = E(N, x[Zt], Zt, x);
|
|
15667
15667
|
return N;
|
|
15668
15668
|
}
|
|
15669
|
-
function tt(x,
|
|
15669
|
+
function tt(x, E) {
|
|
15670
15670
|
for (var N = -1, Z = Array(x); ++N < x; )
|
|
15671
|
-
Z[N] =
|
|
15671
|
+
Z[N] = E(N);
|
|
15672
15672
|
return Z;
|
|
15673
15673
|
}
|
|
15674
|
-
function st(x,
|
|
15675
|
-
return x == null ? void 0 : x[
|
|
15674
|
+
function st(x, E) {
|
|
15675
|
+
return x == null ? void 0 : x[E];
|
|
15676
15676
|
}
|
|
15677
15677
|
function rt(x) {
|
|
15678
|
-
var
|
|
15678
|
+
var E = !1;
|
|
15679
15679
|
if (x != null && typeof x.toString != "function")
|
|
15680
15680
|
try {
|
|
15681
|
-
|
|
15681
|
+
E = !!(x + "");
|
|
15682
15682
|
} catch {
|
|
15683
15683
|
}
|
|
15684
|
-
return
|
|
15684
|
+
return E;
|
|
15685
15685
|
}
|
|
15686
15686
|
function ot(x) {
|
|
15687
|
-
var
|
|
15687
|
+
var E = -1, N = Array(x.size);
|
|
15688
15688
|
return x.forEach(function(Z, Zt) {
|
|
15689
|
-
N[++
|
|
15689
|
+
N[++E] = [Zt, Z];
|
|
15690
15690
|
}), N;
|
|
15691
15691
|
}
|
|
15692
|
-
function at(x,
|
|
15692
|
+
function at(x, E) {
|
|
15693
15693
|
return function(N) {
|
|
15694
|
-
return x(
|
|
15694
|
+
return x(E(N));
|
|
15695
15695
|
};
|
|
15696
15696
|
}
|
|
15697
15697
|
function Tt(x) {
|
|
15698
|
-
var
|
|
15698
|
+
var E = -1, N = Array(x.size);
|
|
15699
15699
|
return x.forEach(function(Z) {
|
|
15700
|
-
N[++
|
|
15700
|
+
N[++E] = Z;
|
|
15701
15701
|
}), N;
|
|
15702
15702
|
}
|
|
15703
15703
|
var ht = Array.prototype, It = Function.prototype, ue = Object.prototype, ye = $["__core-js_shared__"], ne = function() {
|
|
@@ -15707,9 +15707,9 @@ ka.exports;
|
|
|
15707
15707
|
"^" + Be.call(Dt).replace(nt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
15708
15708
|
), oe = wt ? $.Buffer : void 0, me = $.Symbol, sn = $.Uint8Array, ei = at(Object.getPrototypeOf, Object), Ze = Object.create, Ut = ue.propertyIsEnumerable, ke = ht.splice, ni = Object.getOwnPropertySymbols, _r = oe ? oe.isBuffer : void 0, xr = at(Object.keys, Object), ls = In($, "DataView"), ii = In($, "Map"), cs = In($, "Promise"), si = In($, "Set"), hn = In($, "WeakMap"), fn = In(Object, "create"), us = be(ls), ds = be(ii), ri = be(cs), qa = be(si), Xa = be(hn), vr = me ? me.prototype : void 0, wr = vr ? vr.valueOf : void 0;
|
|
15709
15709
|
function gn(x) {
|
|
15710
|
-
var
|
|
15711
|
-
for (this.clear(); ++
|
|
15712
|
-
var Z = x[
|
|
15710
|
+
var E = -1, N = x ? x.length : 0;
|
|
15711
|
+
for (this.clear(); ++E < N; ) {
|
|
15712
|
+
var Z = x[E];
|
|
15713
15713
|
this.set(Z[0], Z[1]);
|
|
15714
15714
|
}
|
|
15715
15715
|
}
|
|
@@ -15720,26 +15720,26 @@ ka.exports;
|
|
|
15720
15720
|
return this.has(x) && delete this.__data__[x];
|
|
15721
15721
|
}
|
|
15722
15722
|
function Mr(x) {
|
|
15723
|
-
var
|
|
15723
|
+
var E = this.__data__;
|
|
15724
15724
|
if (fn) {
|
|
15725
|
-
var N =
|
|
15725
|
+
var N = E[x];
|
|
15726
15726
|
return N === i ? void 0 : N;
|
|
15727
15727
|
}
|
|
15728
|
-
return Dt.call(
|
|
15728
|
+
return Dt.call(E, x) ? E[x] : void 0;
|
|
15729
15729
|
}
|
|
15730
15730
|
function mn(x) {
|
|
15731
|
-
var
|
|
15732
|
-
return fn ?
|
|
15731
|
+
var E = this.__data__;
|
|
15732
|
+
return fn ? E[x] !== void 0 : Dt.call(E, x);
|
|
15733
15733
|
}
|
|
15734
|
-
function Ga(x,
|
|
15734
|
+
function Ga(x, E) {
|
|
15735
15735
|
var N = this.__data__;
|
|
15736
|
-
return N[x] = fn &&
|
|
15736
|
+
return N[x] = fn && E === void 0 ? i : E, this;
|
|
15737
15737
|
}
|
|
15738
15738
|
gn.prototype.clear = Ci, gn.prototype.delete = hs, gn.prototype.get = Mr, gn.prototype.has = mn, gn.prototype.set = Ga;
|
|
15739
15739
|
function Qe(x) {
|
|
15740
|
-
var
|
|
15741
|
-
for (this.clear(); ++
|
|
15742
|
-
var Z = x[
|
|
15740
|
+
var E = -1, N = x ? x.length : 0;
|
|
15741
|
+
for (this.clear(); ++E < N; ) {
|
|
15742
|
+
var Z = x[E];
|
|
15743
15743
|
this.set(Z[0], Z[1]);
|
|
15744
15744
|
}
|
|
15745
15745
|
}
|
|
@@ -15747,28 +15747,28 @@ ka.exports;
|
|
|
15747
15747
|
this.__data__ = [];
|
|
15748
15748
|
}
|
|
15749
15749
|
function Za(x) {
|
|
15750
|
-
var
|
|
15750
|
+
var E = this.__data__, N = Oi(E, x);
|
|
15751
15751
|
if (N < 0)
|
|
15752
15752
|
return !1;
|
|
15753
|
-
var Z =
|
|
15754
|
-
return N == Z ?
|
|
15753
|
+
var Z = E.length - 1;
|
|
15754
|
+
return N == Z ? E.pop() : ke.call(E, N, 1), !0;
|
|
15755
15755
|
}
|
|
15756
15756
|
function Qa(x) {
|
|
15757
|
-
var
|
|
15758
|
-
return N < 0 ? void 0 :
|
|
15757
|
+
var E = this.__data__, N = Oi(E, x);
|
|
15758
|
+
return N < 0 ? void 0 : E[N][1];
|
|
15759
15759
|
}
|
|
15760
15760
|
function Je(x) {
|
|
15761
15761
|
return Oi(this.__data__, x) > -1;
|
|
15762
15762
|
}
|
|
15763
|
-
function Ja(x,
|
|
15763
|
+
function Ja(x, E) {
|
|
15764
15764
|
var N = this.__data__, Z = Oi(N, x);
|
|
15765
|
-
return Z < 0 ? N.push([x,
|
|
15765
|
+
return Z < 0 ? N.push([x, E]) : N[Z][1] = E, this;
|
|
15766
15766
|
}
|
|
15767
15767
|
Qe.prototype.clear = Ka, Qe.prototype.delete = Za, Qe.prototype.get = Qa, Qe.prototype.has = Je, Qe.prototype.set = Ja;
|
|
15768
|
-
function
|
|
15769
|
-
var
|
|
15770
|
-
for (this.clear(); ++
|
|
15771
|
-
var Z = x[
|
|
15768
|
+
function An(x) {
|
|
15769
|
+
var E = -1, N = x ? x.length : 0;
|
|
15770
|
+
for (this.clear(); ++E < N; ) {
|
|
15771
|
+
var Z = x[E];
|
|
15772
15772
|
this.set(Z[0], Z[1]);
|
|
15773
15773
|
}
|
|
15774
15774
|
}
|
|
@@ -15788,10 +15788,10 @@ ka.exports;
|
|
|
15788
15788
|
function tn(x) {
|
|
15789
15789
|
return Ri(this, x).has(x);
|
|
15790
15790
|
}
|
|
15791
|
-
function io(x,
|
|
15792
|
-
return Ri(this, x).set(x,
|
|
15791
|
+
function io(x, E) {
|
|
15792
|
+
return Ri(this, x).set(x, E), this;
|
|
15793
15793
|
}
|
|
15794
|
-
|
|
15794
|
+
An.prototype.clear = to, An.prototype.delete = eo, An.prototype.get = no, An.prototype.has = tn, An.prototype.set = io;
|
|
15795
15795
|
function Rn(x) {
|
|
15796
15796
|
this.__data__ = new Qe(x);
|
|
15797
15797
|
}
|
|
@@ -15807,159 +15807,159 @@ ka.exports;
|
|
|
15807
15807
|
function Pi(x) {
|
|
15808
15808
|
return this.__data__.has(x);
|
|
15809
15809
|
}
|
|
15810
|
-
function oo(x,
|
|
15810
|
+
function oo(x, E) {
|
|
15811
15811
|
var N = this.__data__;
|
|
15812
15812
|
if (N instanceof Qe) {
|
|
15813
15813
|
var Z = N.__data__;
|
|
15814
15814
|
if (!ii || Z.length < e - 1)
|
|
15815
|
-
return Z.push([x,
|
|
15816
|
-
N = this.__data__ = new
|
|
15815
|
+
return Z.push([x, E]), this;
|
|
15816
|
+
N = this.__data__ = new An(Z);
|
|
15817
15817
|
}
|
|
15818
|
-
return N.set(x,
|
|
15818
|
+
return N.set(x, E), this;
|
|
15819
15819
|
}
|
|
15820
15820
|
Rn.prototype.clear = so, Rn.prototype.delete = ro, Rn.prototype.get = ao, Rn.prototype.has = Pi, Rn.prototype.set = oo;
|
|
15821
|
-
function lo(x,
|
|
15821
|
+
function lo(x, E) {
|
|
15822
15822
|
var N = ps(x) || Li(x) ? tt(x.length, String) : [], Z = N.length, Zt = !!Z;
|
|
15823
15823
|
for (var le in x)
|
|
15824
15824
|
Dt.call(x, le) && !(Zt && (le == "length" || Do(le, Z))) && N.push(le);
|
|
15825
15825
|
return N;
|
|
15826
15826
|
}
|
|
15827
|
-
function Ye(x,
|
|
15828
|
-
var Z = x[
|
|
15829
|
-
(!(Dt.call(x,
|
|
15827
|
+
function Ye(x, E, N) {
|
|
15828
|
+
var Z = x[E];
|
|
15829
|
+
(!(Dt.call(x, E) && ms(Z, N)) || N === void 0 && !(E in x)) && (x[E] = N);
|
|
15830
15830
|
}
|
|
15831
|
-
function Oi(x,
|
|
15831
|
+
function Oi(x, E) {
|
|
15832
15832
|
for (var N = x.length; N--; )
|
|
15833
|
-
if (ms(x[N][0],
|
|
15833
|
+
if (ms(x[N][0], E))
|
|
15834
15834
|
return N;
|
|
15835
15835
|
return -1;
|
|
15836
15836
|
}
|
|
15837
|
-
function co(x,
|
|
15838
|
-
return x && Sr(
|
|
15837
|
+
function co(x, E) {
|
|
15838
|
+
return x && Sr(E, ai(E), x);
|
|
15839
15839
|
}
|
|
15840
|
-
function fs(x,
|
|
15840
|
+
function fs(x, E, N, Z, Zt, le, Ce) {
|
|
15841
15841
|
var de;
|
|
15842
15842
|
if (Z && (de = le ? Z(x, Zt, le, Ce) : Z(x)), de !== void 0)
|
|
15843
15843
|
return de;
|
|
15844
15844
|
if (!yn(x))
|
|
15845
15845
|
return x;
|
|
15846
|
-
var
|
|
15847
|
-
if (
|
|
15848
|
-
if (de = So(x), !
|
|
15846
|
+
var Er = ps(x);
|
|
15847
|
+
if (Er) {
|
|
15848
|
+
if (de = So(x), !E)
|
|
15849
15849
|
return vo(x, de);
|
|
15850
15850
|
} else {
|
|
15851
|
-
var Ln = rn(x),
|
|
15851
|
+
var Ln = rn(x), Ar = Ln == u || Ln == d;
|
|
15852
15852
|
if (Cr(x))
|
|
15853
|
-
return mo(x,
|
|
15854
|
-
if (Ln == g || Ln == r ||
|
|
15853
|
+
return mo(x, E);
|
|
15854
|
+
if (Ln == g || Ln == r || Ar && !le) {
|
|
15855
15855
|
if (rt(x))
|
|
15856
15856
|
return le ? x : {};
|
|
15857
|
-
if (de = Dr(
|
|
15857
|
+
if (de = Dr(Ar ? {} : x), !E)
|
|
15858
15858
|
return wo(x, co(de, x));
|
|
15859
15859
|
} else {
|
|
15860
15860
|
if (!et[Ln])
|
|
15861
15861
|
return le ? x : {};
|
|
15862
|
-
de = To(x, Ln, fs,
|
|
15862
|
+
de = To(x, Ln, fs, E);
|
|
15863
15863
|
}
|
|
15864
15864
|
}
|
|
15865
15865
|
Ce || (Ce = new Rn());
|
|
15866
15866
|
var Rr = Ce.get(x);
|
|
15867
15867
|
if (Rr)
|
|
15868
15868
|
return Rr;
|
|
15869
|
-
if (Ce.set(x, de), !
|
|
15869
|
+
if (Ce.set(x, de), !Er)
|
|
15870
15870
|
var oi = N ? Mo(x) : ai(x);
|
|
15871
15871
|
return z(oi || x, function(bs, Ni) {
|
|
15872
|
-
oi && (Ni = bs, bs = x[Ni]), Ye(de, Ni, fs(bs,
|
|
15872
|
+
oi && (Ni = bs, bs = x[Ni]), Ye(de, Ni, fs(bs, E, N, Z, Ni, x, Ce));
|
|
15873
15873
|
}), de;
|
|
15874
15874
|
}
|
|
15875
15875
|
function uo(x) {
|
|
15876
15876
|
return yn(x) ? Ze(x) : {};
|
|
15877
15877
|
}
|
|
15878
|
-
function ho(x,
|
|
15879
|
-
var Z =
|
|
15878
|
+
function ho(x, E, N) {
|
|
15879
|
+
var Z = E(x);
|
|
15880
15880
|
return ps(x) ? Z : j(Z, N(x));
|
|
15881
15881
|
}
|
|
15882
15882
|
function fo(x) {
|
|
15883
15883
|
return ae.call(x);
|
|
15884
15884
|
}
|
|
15885
|
-
function
|
|
15885
|
+
function Ei(x) {
|
|
15886
15886
|
if (!yn(x) || ko(x))
|
|
15887
15887
|
return !1;
|
|
15888
|
-
var
|
|
15889
|
-
return
|
|
15888
|
+
var E = ys(x) || rt(x) ? $t : dt;
|
|
15889
|
+
return E.test(be(x));
|
|
15890
15890
|
}
|
|
15891
15891
|
function go(x) {
|
|
15892
15892
|
if (!pn(x))
|
|
15893
15893
|
return xr(x);
|
|
15894
|
-
var
|
|
15894
|
+
var E = [];
|
|
15895
15895
|
for (var N in Object(x))
|
|
15896
|
-
Dt.call(x, N) && N != "constructor" &&
|
|
15897
|
-
return
|
|
15896
|
+
Dt.call(x, N) && N != "constructor" && E.push(N);
|
|
15897
|
+
return E;
|
|
15898
15898
|
}
|
|
15899
|
-
function mo(x,
|
|
15900
|
-
if (
|
|
15899
|
+
function mo(x, E) {
|
|
15900
|
+
if (E)
|
|
15901
15901
|
return x.slice();
|
|
15902
15902
|
var N = new x.constructor(x.length);
|
|
15903
15903
|
return x.copy(N), N;
|
|
15904
15904
|
}
|
|
15905
|
-
function
|
|
15906
|
-
var
|
|
15907
|
-
return new sn(
|
|
15905
|
+
function Ai(x) {
|
|
15906
|
+
var E = new x.constructor(x.byteLength);
|
|
15907
|
+
return new sn(E).set(new sn(x)), E;
|
|
15908
15908
|
}
|
|
15909
|
-
function po(x,
|
|
15910
|
-
var N =
|
|
15909
|
+
function po(x, E) {
|
|
15910
|
+
var N = E ? Ai(x.buffer) : x.buffer;
|
|
15911
15911
|
return new x.constructor(N, x.byteOffset, x.byteLength);
|
|
15912
15912
|
}
|
|
15913
|
-
function yo(x,
|
|
15914
|
-
var Z =
|
|
15913
|
+
function yo(x, E, N) {
|
|
15914
|
+
var Z = E ? N(ot(x), !0) : ot(x);
|
|
15915
15915
|
return B(Z, yt, new x.constructor());
|
|
15916
15916
|
}
|
|
15917
15917
|
function gs(x) {
|
|
15918
|
-
var
|
|
15919
|
-
return
|
|
15918
|
+
var E = new x.constructor(x.source, Y.exec(x));
|
|
15919
|
+
return E.lastIndex = x.lastIndex, E;
|
|
15920
15920
|
}
|
|
15921
|
-
function bo(x,
|
|
15922
|
-
var Z =
|
|
15921
|
+
function bo(x, E, N) {
|
|
15922
|
+
var Z = E ? N(Tt(x), !0) : Tt(x);
|
|
15923
15923
|
return B(Z, bt, new x.constructor());
|
|
15924
15924
|
}
|
|
15925
15925
|
function _o(x) {
|
|
15926
15926
|
return wr ? Object(wr.call(x)) : {};
|
|
15927
15927
|
}
|
|
15928
|
-
function xo(x,
|
|
15929
|
-
var N =
|
|
15928
|
+
function xo(x, E) {
|
|
15929
|
+
var N = E ? Ai(x.buffer) : x.buffer;
|
|
15930
15930
|
return new x.constructor(N, x.byteOffset, x.length);
|
|
15931
15931
|
}
|
|
15932
|
-
function vo(x,
|
|
15932
|
+
function vo(x, E) {
|
|
15933
15933
|
var N = -1, Z = x.length;
|
|
15934
|
-
for (
|
|
15935
|
-
|
|
15936
|
-
return
|
|
15934
|
+
for (E || (E = Array(Z)); ++N < Z; )
|
|
15935
|
+
E[N] = x[N];
|
|
15936
|
+
return E;
|
|
15937
15937
|
}
|
|
15938
|
-
function Sr(x,
|
|
15938
|
+
function Sr(x, E, N, Z) {
|
|
15939
15939
|
N || (N = {});
|
|
15940
|
-
for (var Zt = -1, le =
|
|
15941
|
-
var Ce =
|
|
15940
|
+
for (var Zt = -1, le = E.length; ++Zt < le; ) {
|
|
15941
|
+
var Ce = E[Zt], de = void 0;
|
|
15942
15942
|
Ye(N, Ce, de === void 0 ? x[Ce] : de);
|
|
15943
15943
|
}
|
|
15944
15944
|
return N;
|
|
15945
15945
|
}
|
|
15946
|
-
function wo(x,
|
|
15947
|
-
return Sr(x, Tr(x),
|
|
15946
|
+
function wo(x, E) {
|
|
15947
|
+
return Sr(x, Tr(x), E);
|
|
15948
15948
|
}
|
|
15949
15949
|
function Mo(x) {
|
|
15950
15950
|
return ho(x, ai, Tr);
|
|
15951
15951
|
}
|
|
15952
|
-
function Ri(x,
|
|
15952
|
+
function Ri(x, E) {
|
|
15953
15953
|
var N = x.__data__;
|
|
15954
|
-
return Ii(
|
|
15954
|
+
return Ii(E) ? N[typeof E == "string" ? "string" : "hash"] : N.map;
|
|
15955
15955
|
}
|
|
15956
|
-
function In(x,
|
|
15957
|
-
var N = st(x,
|
|
15958
|
-
return
|
|
15956
|
+
function In(x, E) {
|
|
15957
|
+
var N = st(x, E);
|
|
15958
|
+
return Ei(N) ? N : void 0;
|
|
15959
15959
|
}
|
|
15960
15960
|
var Tr = ni ? at(ni, Object) : Pr, rn = fo;
|
|
15961
15961
|
(ls && rn(new ls(new ArrayBuffer(1))) != O || ii && rn(new ii()) != h || cs && rn(cs.resolve()) != y || si && rn(new si()) != M || hn && rn(new hn()) != v) && (rn = function(x) {
|
|
15962
|
-
var
|
|
15962
|
+
var E = ae.call(x), N = E == g ? x.constructor : void 0, Z = N ? be(N) : void 0;
|
|
15963
15963
|
if (Z)
|
|
15964
15964
|
switch (Z) {
|
|
15965
15965
|
case us:
|
|
@@ -15973,20 +15973,20 @@ ka.exports;
|
|
|
15973
15973
|
case Xa:
|
|
15974
15974
|
return v;
|
|
15975
15975
|
}
|
|
15976
|
-
return
|
|
15976
|
+
return E;
|
|
15977
15977
|
});
|
|
15978
15978
|
function So(x) {
|
|
15979
|
-
var
|
|
15980
|
-
return
|
|
15979
|
+
var E = x.length, N = x.constructor(E);
|
|
15980
|
+
return E && typeof x[0] == "string" && Dt.call(x, "index") && (N.index = x.index, N.input = x.input), N;
|
|
15981
15981
|
}
|
|
15982
15982
|
function Dr(x) {
|
|
15983
15983
|
return typeof x.constructor == "function" && !pn(x) ? uo(ei(x)) : {};
|
|
15984
15984
|
}
|
|
15985
|
-
function To(x,
|
|
15985
|
+
function To(x, E, N, Z) {
|
|
15986
15986
|
var Zt = x.constructor;
|
|
15987
|
-
switch (
|
|
15987
|
+
switch (E) {
|
|
15988
15988
|
case S:
|
|
15989
|
-
return
|
|
15989
|
+
return Ai(x);
|
|
15990
15990
|
case o:
|
|
15991
15991
|
case l:
|
|
15992
15992
|
return new Zt(+x);
|
|
@@ -15996,7 +15996,7 @@ ka.exports;
|
|
|
15996
15996
|
case p:
|
|
15997
15997
|
case b:
|
|
15998
15998
|
case k:
|
|
15999
|
-
case
|
|
15999
|
+
case A:
|
|
16000
16000
|
case I:
|
|
16001
16001
|
case R:
|
|
16002
16002
|
case H:
|
|
@@ -16015,18 +16015,18 @@ ka.exports;
|
|
|
16015
16015
|
return _o(x);
|
|
16016
16016
|
}
|
|
16017
16017
|
}
|
|
16018
|
-
function Do(x,
|
|
16019
|
-
return
|
|
16018
|
+
function Do(x, E) {
|
|
16019
|
+
return E = E ?? s, !!E && (typeof x == "number" || V.test(x)) && x > -1 && x % 1 == 0 && x < E;
|
|
16020
16020
|
}
|
|
16021
16021
|
function Ii(x) {
|
|
16022
|
-
var
|
|
16023
|
-
return
|
|
16022
|
+
var E = typeof x;
|
|
16023
|
+
return E == "string" || E == "number" || E == "symbol" || E == "boolean" ? x !== "__proto__" : x === null;
|
|
16024
16024
|
}
|
|
16025
16025
|
function ko(x) {
|
|
16026
16026
|
return !!ne && ne in x;
|
|
16027
16027
|
}
|
|
16028
16028
|
function pn(x) {
|
|
16029
|
-
var
|
|
16029
|
+
var E = x && x.constructor, N = typeof E == "function" && E.prototype || ue;
|
|
16030
16030
|
return x === N;
|
|
16031
16031
|
}
|
|
16032
16032
|
function be(x) {
|
|
@@ -16045,8 +16045,8 @@ ka.exports;
|
|
|
16045
16045
|
function Co(x) {
|
|
16046
16046
|
return fs(x, !0, !0);
|
|
16047
16047
|
}
|
|
16048
|
-
function ms(x,
|
|
16049
|
-
return x ===
|
|
16048
|
+
function ms(x, E) {
|
|
16049
|
+
return x === E || x !== x && E !== E;
|
|
16050
16050
|
}
|
|
16051
16051
|
function Li(x) {
|
|
16052
16052
|
return Po(x) && Dt.call(x, "callee") && (!Ut.call(x, "callee") || ae.call(x) == r);
|
|
@@ -16060,15 +16060,15 @@ ka.exports;
|
|
|
16060
16060
|
}
|
|
16061
16061
|
var Cr = _r || Or;
|
|
16062
16062
|
function ys(x) {
|
|
16063
|
-
var
|
|
16064
|
-
return
|
|
16063
|
+
var E = yn(x) ? ae.call(x) : "";
|
|
16064
|
+
return E == u || E == d;
|
|
16065
16065
|
}
|
|
16066
16066
|
function Oo(x) {
|
|
16067
16067
|
return typeof x == "number" && x > -1 && x % 1 == 0 && x <= s;
|
|
16068
16068
|
}
|
|
16069
16069
|
function yn(x) {
|
|
16070
|
-
var
|
|
16071
|
-
return !!x && (
|
|
16070
|
+
var E = typeof x;
|
|
16071
|
+
return !!x && (E == "object" || E == "function");
|
|
16072
16072
|
}
|
|
16073
16073
|
function bn(x) {
|
|
16074
16074
|
return !!x && typeof x == "object";
|
|
@@ -16543,15 +16543,15 @@ function iT(n, t) {
|
|
|
16543
16543
|
const s = t.value.data, { display: r, metric_names: a } = t.value.meta, o = r && Object.keys(r), l = a && a.length > 1, c = r && o && o.length > 0, u = c && o.length > 1;
|
|
16544
16544
|
if (!s.length || !a)
|
|
16545
16545
|
return { datasets: [], labels: [] };
|
|
16546
|
-
const d = c && o || a, h = d[0], f = d.length > 1 ? d[1] : d[0], g = Object.fromEntries(l ? s.flatMap((b) => a.map((k,
|
|
16547
|
-
const I = b.event[h], R = c ? `${I},${k}` : `${
|
|
16546
|
+
const d = c && o || a, h = d[0], f = d.length > 1 ? d[1] : d[0], g = Object.fromEntries(l ? s.flatMap((b) => a.map((k, A) => {
|
|
16547
|
+
const I = b.event[h], R = c ? `${I},${k}` : `${A},${k}`, H = b.event[k];
|
|
16548
16548
|
return [R, H];
|
|
16549
16549
|
})) : s.map((b) => {
|
|
16550
|
-
const k = c ? `${b.event[h]},${b.event[f]}` : `${h},${f}`,
|
|
16551
|
-
return [k,
|
|
16550
|
+
const k = c ? `${b.event[h]},${b.event[f]}` : `${h},${f}`, A = b.event[a[0]];
|
|
16551
|
+
return [k, A];
|
|
16552
16552
|
})), y = Object.keys(g).reduce((b, k) => {
|
|
16553
|
-
const [
|
|
16554
|
-
return b[
|
|
16553
|
+
const [A] = k.split(","), I = g[k];
|
|
16554
|
+
return b[A] ? b[A] += I : b[A] = I, b;
|
|
16555
16555
|
}, {}), _ = Object.entries(y).sort(([, b], [, k]) => Number(k) - Number(b)).map(([b]) => b), M = r[h], w = r[f];
|
|
16556
16556
|
let D = c && M && Object.entries(M).map(([b, k]) => ({ id: b, name: k.name })) || a.map((b) => ({ id: b, name: b })), v = c && w && Object.entries(w).map(([b, k]) => ({ id: b, name: k.name })) || a.map((b) => ({ id: b, name: b }));
|
|
16557
16557
|
if (c && h === "country_code" && (D = D.map((b) => ({
|
|
@@ -16638,14 +16638,14 @@ function oT(n, t) {
|
|
|
16638
16638
|
const p = y.map((I) => I in M && v in M[I] ? { x: I, y: M[I][v][S] || 0 } : { x: I, y: 0 });
|
|
16639
16639
|
let { colorPalette: b, fill: k } = n;
|
|
16640
16640
|
ct(b) && (b = Qn);
|
|
16641
|
-
const
|
|
16641
|
+
const A = ig(C, S, O, b);
|
|
16642
16642
|
return {
|
|
16643
16643
|
rawDimension: S,
|
|
16644
16644
|
rawMetric: v,
|
|
16645
16645
|
// @ts-ignore - dynamic i18n key
|
|
16646
16646
|
label: e && e.te(`chartLabels.${S}`) && e.t(`chartLabels.${S}`) || S,
|
|
16647
|
-
borderColor:
|
|
16648
|
-
backgroundColor:
|
|
16647
|
+
borderColor: A,
|
|
16648
|
+
backgroundColor: A,
|
|
16649
16649
|
data: p,
|
|
16650
16650
|
total: p.reduce((I, { y: R }) => I + Number(R), 0),
|
|
16651
16651
|
...t1,
|
|
@@ -16732,7 +16732,7 @@ function mT(n, t = {}) {
|
|
|
16732
16732
|
return e;
|
|
16733
16733
|
}
|
|
16734
16734
|
function pT(n, t = !0, e) {
|
|
16735
|
-
gT() ?
|
|
16735
|
+
gT() ? En(n, e) : t ? n() : Eh(n);
|
|
16736
16736
|
}
|
|
16737
16737
|
function yT(n, t, e) {
|
|
16738
16738
|
return ee(
|
|
@@ -16787,7 +16787,7 @@ function Gs(...n) {
|
|
|
16787
16787
|
}
|
|
16788
16788
|
function bT() {
|
|
16789
16789
|
const n = qe(!1), t = Gl();
|
|
16790
|
-
return t &&
|
|
16790
|
+
return t && En(() => {
|
|
16791
16791
|
n.value = !0;
|
|
16792
16792
|
}, t), n;
|
|
16793
16793
|
}
|
|
@@ -16842,19 +16842,19 @@ function xT(n, t = {}) {
|
|
|
16842
16842
|
var p;
|
|
16843
16843
|
if (!Qt(y).includes(C.button) || Qt(t.disabled) || !w(C) || Qt(a) && C.target !== Qt(n))
|
|
16844
16844
|
return;
|
|
16845
|
-
const b = Qt(f), k = (p = b == null ? void 0 : b.getBoundingClientRect) == null ? void 0 : p.call(b),
|
|
16846
|
-
x: C.clientX - (b ?
|
|
16847
|
-
y: C.clientY - (b ?
|
|
16845
|
+
const b = Qt(f), k = (p = b == null ? void 0 : b.getBoundingClientRect) == null ? void 0 : p.call(b), A = Qt(n).getBoundingClientRect(), I = {
|
|
16846
|
+
x: C.clientX - (b ? A.left - k.left + b.scrollLeft : A.left),
|
|
16847
|
+
y: C.clientY - (b ? A.top - k.top + b.scrollTop : A.top)
|
|
16848
16848
|
};
|
|
16849
16849
|
(c == null ? void 0 : c(I, C)) !== !1 && (M.value = I, D(C));
|
|
16850
16850
|
}, S = (C) => {
|
|
16851
16851
|
if (Qt(t.disabled) || !w(C) || !M.value)
|
|
16852
16852
|
return;
|
|
16853
16853
|
const p = Qt(f), b = Qt(n).getBoundingClientRect();
|
|
16854
|
-
let { x: k, y:
|
|
16855
|
-
(d === "x" || d === "both") && (k = C.clientX - M.value.x, p && (k = Math.min(Math.max(0, k), p.scrollWidth - b.width))), (d === "y" || d === "both") && (
|
|
16854
|
+
let { x: k, y: A } = _.value;
|
|
16855
|
+
(d === "x" || d === "both") && (k = C.clientX - M.value.x, p && (k = Math.min(Math.max(0, k), p.scrollWidth - b.width))), (d === "y" || d === "both") && (A = C.clientY - M.value.y, p && (A = Math.min(Math.max(0, A), p.scrollHeight - b.height))), _.value = {
|
|
16856
16856
|
x: k,
|
|
16857
|
-
y:
|
|
16857
|
+
y: A
|
|
16858
16858
|
}, o == null || o(_.value, C), D(C);
|
|
16859
16859
|
}, O = (C) => {
|
|
16860
16860
|
Qt(t.disabled) || !w(C) || M.value && (M.value = void 0, l == null || l(_.value, C), D(C));
|
|
@@ -17074,7 +17074,7 @@ function OT(n, t, e, i = !0) {
|
|
|
17074
17074
|
}
|
|
17075
17075
|
return !0;
|
|
17076
17076
|
}
|
|
17077
|
-
const Og = (n) => typeof n == "string" && n.endsWith("%"),
|
|
17077
|
+
const Og = (n) => typeof n == "string" && n.endsWith("%"), Eg = (n) => parseFloat(n) / 100, Ag = (n) => Ha(Eg(n), 0, 1), Os = (n, t) => ({ x: n, y: t, x2: n, y2: t, width: 0, height: 0 }), ET = {
|
|
17078
17078
|
box: (n) => Os(n.centerX, n.centerY),
|
|
17079
17079
|
doughnutLabel: (n) => Os(n.centerX, n.centerY),
|
|
17080
17080
|
ellipse: (n) => ({ centerX: n.centerX, centerY: n.centerX, radius: 0, width: 0, height: 0 }),
|
|
@@ -17084,17 +17084,17 @@ const Og = (n) => typeof n == "string" && n.endsWith("%"), Ag = (n) => parseFloa
|
|
|
17084
17084
|
polygon: (n) => Os(n.centerX, n.centerY)
|
|
17085
17085
|
};
|
|
17086
17086
|
function Oc(n, t) {
|
|
17087
|
-
return t === "start" ? 0 : t === "end" ? n : Og(t) ?
|
|
17087
|
+
return t === "start" ? 0 : t === "end" ? n : Og(t) ? Ag(t) * n : n / 2;
|
|
17088
17088
|
}
|
|
17089
17089
|
function Jn(n, t, e = !0) {
|
|
17090
|
-
return typeof t == "number" ? t : Og(t) ? (e ?
|
|
17090
|
+
return typeof t == "number" ? t : Og(t) ? (e ? Ag(t) : Eg(t)) * n : n;
|
|
17091
17091
|
}
|
|
17092
|
-
function
|
|
17092
|
+
function AT(n, t) {
|
|
17093
17093
|
const { x: e, width: i } = n, s = t.textAlign;
|
|
17094
17094
|
return s === "center" ? e + i / 2 : s === "end" || s === "right" ? e + i : e;
|
|
17095
17095
|
}
|
|
17096
17096
|
function Rg(n, t, { borderWidth: e, position: i, xAdjust: s, yAdjust: r }, a) {
|
|
17097
|
-
const o = xt(a), l = t.width + (o ? a.width : 0) + e, c = t.height + (o ? a.height : 0) + e, u =
|
|
17097
|
+
const o = xt(a), l = t.width + (o ? a.width : 0) + e, c = t.height + (o ? a.height : 0) + e, u = Ec(i), d = Jd(n.x, l, s, u.x), h = Jd(n.y, c, r, u.y);
|
|
17098
17098
|
return {
|
|
17099
17099
|
x: d,
|
|
17100
17100
|
y: h,
|
|
@@ -17106,7 +17106,7 @@ function Rg(n, t, { borderWidth: e, position: i, xAdjust: s, yAdjust: r }, a) {
|
|
|
17106
17106
|
centerY: h + c / 2
|
|
17107
17107
|
};
|
|
17108
17108
|
}
|
|
17109
|
-
function
|
|
17109
|
+
function Ec(n, t = "center") {
|
|
17110
17110
|
return xt(n) ? {
|
|
17111
17111
|
x: lt(n.x, t),
|
|
17112
17112
|
y: lt(n.y, t)
|
|
@@ -17145,10 +17145,10 @@ function Fg(n, t, e) {
|
|
|
17145
17145
|
}
|
|
17146
17146
|
function zg(n, t) {
|
|
17147
17147
|
const e = t.type || "line";
|
|
17148
|
-
return
|
|
17148
|
+
return ET[e](n);
|
|
17149
17149
|
}
|
|
17150
17150
|
function RT(n, t, e) {
|
|
17151
|
-
const i =
|
|
17151
|
+
const i = Et(e.init, [{ chart: n, properties: t, options: e }]);
|
|
17152
17152
|
if (i === !0)
|
|
17153
17153
|
return zg(t, e);
|
|
17154
17154
|
if (xt(i))
|
|
@@ -17201,7 +17201,7 @@ function Wg(n, t, e, i) {
|
|
|
17201
17201
|
n.save(), n.globalAlpha = YT(e.opacity, s.style.opacity), n.drawImage(s, t.x, t.y, t.width, t.height), n.restore();
|
|
17202
17202
|
return;
|
|
17203
17203
|
}
|
|
17204
|
-
const r = Ct(s) ? s : [s], a = Lg(e, i), o = e.color, l = Ct(o) ? o : [o], c =
|
|
17204
|
+
const r = Ct(s) ? s : [s], a = Lg(e, i), o = e.color, l = Ct(o) ? o : [o], c = AT(t, e), u = t.y + e.textStrokeWidth / 2;
|
|
17205
17205
|
n.save(), n.textBaseline = "middle", n.textAlign = e.textAlign, NT(n, e) && WT(n, { x: c, y: u }, r, a), BT(n, { x: c, y: u }, r, { fonts: a, colors: l }), n.restore();
|
|
17206
17206
|
}
|
|
17207
17207
|
function NT(n, t) {
|
|
@@ -17364,7 +17364,7 @@ function jg(n, t) {
|
|
|
17364
17364
|
let a = e.width / 2, o = e.height / 2;
|
|
17365
17365
|
return s && (a = is(s, t.xValue, s.left + s.width / 2)), r && (o = is(r, t.yValue, r.top + r.height / 2)), { x: a, y: o };
|
|
17366
17366
|
}
|
|
17367
|
-
function
|
|
17367
|
+
function Ac(n, t) {
|
|
17368
17368
|
const e = n.scales, i = e[vi(e, t, "xScaleID")], s = e[vi(e, t, "yScaleID")];
|
|
17369
17369
|
if (!i && !s)
|
|
17370
17370
|
return {};
|
|
@@ -17385,7 +17385,7 @@ function Ec(n, t) {
|
|
|
17385
17385
|
}
|
|
17386
17386
|
function $g(n, t) {
|
|
17387
17387
|
if (!Ng(t)) {
|
|
17388
|
-
const e =
|
|
17388
|
+
const e = Ac(n, t);
|
|
17389
17389
|
let i = t.radius;
|
|
17390
17390
|
(!i || isNaN(i)) && (i = Math.min(e.width, e.height) / 2, t.radius = i);
|
|
17391
17391
|
const s = i * 2, r = e.centerX + t.xAdjust, a = e.centerY + t.yAdjust;
|
|
@@ -17408,7 +17408,7 @@ function ZT(n, t) {
|
|
|
17408
17408
|
return s ? JT(s, r, t) : tD(e, r, t), r;
|
|
17409
17409
|
}
|
|
17410
17410
|
function Ug(n, t) {
|
|
17411
|
-
const e =
|
|
17411
|
+
const e = Ac(n, t);
|
|
17412
17412
|
return e.initProperties = rs(n, e, t), e.elements = [{
|
|
17413
17413
|
type: "label",
|
|
17414
17414
|
optionScope: "label",
|
|
@@ -17475,7 +17475,7 @@ function Vg(n, t) {
|
|
|
17475
17475
|
function iD(n, t, e) {
|
|
17476
17476
|
const i = e.label;
|
|
17477
17477
|
i.backgroundColor = "transparent", i.callout.display = !1;
|
|
17478
|
-
const s =
|
|
17478
|
+
const s = Ec(i.position), r = re(i.padding), a = Ya(n.ctx, i), o = eD({ properties: t, options: e }, a, s, r), l = nD({ properties: t, options: e }, a, s, r), c = a.width + r.width, u = a.height + r.height;
|
|
17479
17479
|
return {
|
|
17480
17480
|
x: o,
|
|
17481
17481
|
y: l,
|
|
@@ -17533,7 +17533,7 @@ function oD(n, t, e) {
|
|
|
17533
17533
|
return r;
|
|
17534
17534
|
}
|
|
17535
17535
|
function qg(n, t, e) {
|
|
17536
|
-
return
|
|
17536
|
+
return Et(n, [t.$context, e]) === !0;
|
|
17537
17537
|
}
|
|
17538
17538
|
const Ca = ["afterDraw", "beforeDraw"];
|
|
17539
17539
|
function lD(n, t, e) {
|
|
@@ -17547,7 +17547,7 @@ function lD(n, t, e) {
|
|
|
17547
17547
|
function ih(n, t, e) {
|
|
17548
17548
|
if (n.hooked) {
|
|
17549
17549
|
const i = t.options[e] || n.hooks[e];
|
|
17550
|
-
return
|
|
17550
|
+
return Et(i, [t.$context]);
|
|
17551
17551
|
}
|
|
17552
17552
|
}
|
|
17553
17553
|
function cD(n, t, e) {
|
|
@@ -17838,7 +17838,7 @@ class pr extends fe {
|
|
|
17838
17838
|
if (Ng(e))
|
|
17839
17839
|
i = jg(t, e);
|
|
17840
17840
|
else {
|
|
17841
|
-
const { centerX: o, centerY: l } =
|
|
17841
|
+
const { centerX: o, centerY: l } = Ac(t, e);
|
|
17842
17842
|
i = { x: o, y: l };
|
|
17843
17843
|
}
|
|
17844
17844
|
const s = re(e.padding), r = Ya(t.ctx, e), a = Rg(i, r, e, s);
|
|
@@ -18110,7 +18110,7 @@ function CD(n) {
|
|
|
18110
18110
|
return r > pt / 2 ? r - pt : r < pt / -2 ? r + pt : r;
|
|
18111
18111
|
}
|
|
18112
18112
|
function PD(n, t, e, i) {
|
|
18113
|
-
const { width: s, height: r, padding: a } = e, { xAdjust: o, yAdjust: l } = t, c = { x: n.x, y: n.y }, u = { x: n.x2, y: n.y2 }, d = t.rotation === "auto" ? CD(n) : se(t.rotation), h = OD(s, r, d), f =
|
|
18113
|
+
const { width: s, height: r, padding: a } = e, { xAdjust: o, yAdjust: l } = t, c = { x: n.x, y: n.y }, u = { x: n.x2, y: n.y2 }, d = t.rotation === "auto" ? CD(n) : se(t.rotation), h = OD(s, r, d), f = ED(n, t, { labelSize: h, padding: a }, i), g = n.cp ? $l(c, n.cp, u, f) : Ic(c, u, f), y = { size: h.w, min: i.left, max: i.right, padding: a.left }, _ = { size: h.h, min: i.top, max: i.bottom, padding: a.top }, M = fh(g.x, y) + o, w = fh(g.y, _) + l;
|
|
18114
18114
|
return {
|
|
18115
18115
|
x: M - s / 2,
|
|
18116
18116
|
y: w - r / 2,
|
|
@@ -18122,7 +18122,7 @@ function PD(n, t, e, i) {
|
|
|
18122
18122
|
pointY: g.y,
|
|
18123
18123
|
width: s,
|
|
18124
18124
|
height: r,
|
|
18125
|
-
rotation:
|
|
18125
|
+
rotation: Ea(d)
|
|
18126
18126
|
};
|
|
18127
18127
|
}
|
|
18128
18128
|
function OD(n, t, e) {
|
|
@@ -18132,16 +18132,16 @@ function OD(n, t, e) {
|
|
|
18132
18132
|
h: Math.abs(n * s) + Math.abs(t * i)
|
|
18133
18133
|
};
|
|
18134
18134
|
}
|
|
18135
|
-
function
|
|
18135
|
+
function ED(n, t, e, i) {
|
|
18136
18136
|
let s;
|
|
18137
|
-
const r =
|
|
18137
|
+
const r = AD(n, i);
|
|
18138
18138
|
return t.position === "start" ? s = hh({ w: n.x2 - n.x, h: n.y2 - n.y }, e, t, r) : t.position === "end" ? s = 1 - hh({ w: n.x - n.x2, h: n.y - n.y2 }, e, t, r) : s = Oc(1, t.position), s;
|
|
18139
18139
|
}
|
|
18140
18140
|
function hh(n, t, e, i) {
|
|
18141
18141
|
const { labelSize: s, padding: r } = t, a = n.w * i.dx, o = n.h * i.dy, l = a > 0 && (s.w / 2 + r.left - i.x) / a, c = o > 0 && (s.h / 2 + r.top - i.y) / o;
|
|
18142
18142
|
return Ha(Math.max(l, c), 0, 0.25);
|
|
18143
18143
|
}
|
|
18144
|
-
function
|
|
18144
|
+
function AD(n, t) {
|
|
18145
18145
|
const { x: e, x2: i, y: s, y2: r } = n, a = Math.min(s, r) - t.top, o = Math.min(e, i) - t.left, l = t.bottom - Math.max(s, r), c = t.right - Math.max(e, i);
|
|
18146
18146
|
return {
|
|
18147
18147
|
x: Math.min(o, c),
|
|
@@ -18176,7 +18176,7 @@ function Vl(n, t, e, i) {
|
|
|
18176
18176
|
n.beginPath(), as(n, i), On(n, i), n.moveTo(c, -r), n.lineTo(t + e, 0), n.lineTo(c, r), a === !0 ? (n.fillStyle = o || l, n.closePath(), n.fill(), n.shadowColor = "transparent") : n.shadowColor = i.borderShadowColor, n.stroke();
|
|
18177
18177
|
}
|
|
18178
18178
|
function RD(n, t, e) {
|
|
18179
|
-
const { x: i, y: s, x2: r, y2: a, centerX: o, centerY: l } = n, c = Math.atan2(a - s, r - i), u =
|
|
18179
|
+
const { x: i, y: s, x2: r, y2: a, centerX: o, centerY: l } = n, c = Math.atan2(a - s, r - i), u = Ec(t.controlPoint, 0), d = {
|
|
18180
18180
|
x: o + Jn(e, u.x, !1),
|
|
18181
18181
|
y: l + Jn(e, u.y, !1)
|
|
18182
18182
|
};
|
|
@@ -18524,19 +18524,19 @@ var bh = {
|
|
|
18524
18524
|
sD(n, i, e), WD(n, i, e, t.mode), i.visibleElements = i.elements.filter((s) => !s.skip && s.options.display), lD(n, i, e);
|
|
18525
18525
|
},
|
|
18526
18526
|
beforeDatasetsDraw(n, t, e) {
|
|
18527
|
-
|
|
18527
|
+
Es(n, "beforeDatasetsDraw", e.clip);
|
|
18528
18528
|
},
|
|
18529
18529
|
afterDatasetsDraw(n, t, e) {
|
|
18530
|
-
|
|
18530
|
+
Es(n, "afterDatasetsDraw", e.clip);
|
|
18531
18531
|
},
|
|
18532
18532
|
beforeDatasetDraw(n, t, e) {
|
|
18533
|
-
|
|
18533
|
+
Es(n, t.index, e.clip);
|
|
18534
18534
|
},
|
|
18535
18535
|
beforeDraw(n, t, e) {
|
|
18536
|
-
|
|
18536
|
+
Es(n, "beforeDraw", e.clip);
|
|
18537
18537
|
},
|
|
18538
18538
|
afterDraw(n, t, e) {
|
|
18539
|
-
|
|
18539
|
+
Es(n, "afterDraw", e.clip);
|
|
18540
18540
|
},
|
|
18541
18541
|
beforeEvent(n, t, e) {
|
|
18542
18542
|
const i = Bn.get(n);
|
|
@@ -18596,7 +18596,7 @@ var bh = {
|
|
|
18596
18596
|
},
|
|
18597
18597
|
additionalOptionScopes: [""]
|
|
18598
18598
|
};
|
|
18599
|
-
function
|
|
18599
|
+
function Es(n, t, e) {
|
|
18600
18600
|
const { ctx: i, chartArea: s } = n, r = Bn.get(n);
|
|
18601
18601
|
e && lr(i, s);
|
|
18602
18602
|
const a = XD(r.visibleElements, t).sort((o, l) => o.element.options.z - l.element.options.z);
|
|
@@ -18865,7 +18865,7 @@ const KD = { class: "zoom-timerange-container" }, ZD = { class: "zoom-timerange-
|
|
|
18865
18865
|
}, 100));
|
|
18866
18866
|
ee(() => a.value, () => {
|
|
18867
18867
|
h();
|
|
18868
|
-
}),
|
|
18868
|
+
}), En(() => {
|
|
18869
18869
|
o.value = t.items, i.value && _.observe(i.value), window.requestAnimationFrame(() => {
|
|
18870
18870
|
h();
|
|
18871
18871
|
});
|
|
@@ -18888,7 +18888,7 @@ const KD = { class: "zoom-timerange-container" }, ZD = { class: "zoom-timerange-
|
|
|
18888
18888
|
[qt.Hidden]: "hidden"
|
|
18889
18889
|
})[v];
|
|
18890
18890
|
return (v, S) => {
|
|
18891
|
-
const O =
|
|
18891
|
+
const O = Ae("KTooltip");
|
|
18892
18892
|
return q(a) !== q(qt).Hidden ? (X(), _t("ul", {
|
|
18893
18893
|
key: 0,
|
|
18894
18894
|
ref_key: "legendContainerRef",
|
|
@@ -18896,21 +18896,21 @@ const KD = { class: "zoom-timerange-container" }, ZD = { class: "zoom-timerange-
|
|
|
18896
18896
|
class: Cn(["legend-container", D(q(a))]),
|
|
18897
18897
|
"data-testid": "legend"
|
|
18898
18898
|
}, [
|
|
18899
|
-
(X(!0), _t(Ks, null, Oa(n.items, ({ fillStyle: C, strokeStyle: p, text: b, datasetIndex: k, index:
|
|
18899
|
+
(X(!0), _t(Ks, null, Oa(n.items, ({ fillStyle: C, strokeStyle: p, text: b, datasetIndex: k, index: A, value: I, isSegmentEmpty: R }) => (X(), _t("li", {
|
|
18900
18900
|
key: b,
|
|
18901
18901
|
ref_for: !0,
|
|
18902
18902
|
ref_key: "legendItemsRef",
|
|
18903
18903
|
ref: s,
|
|
18904
|
-
onClick: (H) => M(k,
|
|
18904
|
+
onClick: (H) => M(k, A)
|
|
18905
18905
|
}, [
|
|
18906
18906
|
ut("div", {
|
|
18907
18907
|
class: "square-marker",
|
|
18908
18908
|
style: bi({ background: C, "border-color": p })
|
|
18909
18909
|
}, null, 4),
|
|
18910
|
-
ie(O, null,
|
|
18910
|
+
ie(O, null, Ah({
|
|
18911
18911
|
default: Wt(() => [
|
|
18912
18912
|
ut("div", {
|
|
18913
|
-
class: Cn(["label-container", { "strike-through": !w(k,
|
|
18913
|
+
class: Cn(["label-container", { "strike-through": !w(k, A) }])
|
|
18914
18914
|
}, [
|
|
18915
18915
|
ut("div", {
|
|
18916
18916
|
class: Cn(["label", { "truncate-label": u.value, empty: R }])
|
|
@@ -19000,7 +19000,7 @@ class Qg {
|
|
|
19000
19000
|
this._pause = !1, t && (this._suppressNextClick = !0);
|
|
19001
19001
|
}
|
|
19002
19002
|
}
|
|
19003
|
-
const kk = ["id"], Ck = ["id"], Pk = { class: "axis-tooltip-content" }, vh = 6, Ok = "100%",
|
|
19003
|
+
const kk = ["id"], Ck = ["id"], Pk = { class: "axis-tooltip-content" }, vh = 6, Ok = "100%", Ek = "100%", Ak = 20, Rk = 20, wh = 6, Ik = 0, Lk = 10, Nk = 10, Fk = 1, zk = /* @__PURE__ */ ge({
|
|
19004
19004
|
__name: "StackedBarChart",
|
|
19005
19005
|
props: {
|
|
19006
19006
|
chartData: {},
|
|
@@ -19091,7 +19091,7 @@ const kk = ["id"], Ck = ["id"], Pk = { class: "axis-tooltip-content" }, vh = 6,
|
|
|
19091
19091
|
afterUpdate(z) {
|
|
19092
19092
|
p.value += 1, _.value = eg(z, t.legendValues, t.chartLegendSortFn);
|
|
19093
19093
|
}
|
|
19094
|
-
},
|
|
19094
|
+
}, A = {
|
|
19095
19095
|
id: g,
|
|
19096
19096
|
afterUpdate(z) {
|
|
19097
19097
|
z.options.plugins.annotation.annotations = t.annotations ? b() : {};
|
|
@@ -19122,19 +19122,19 @@ const kk = ["id"], Ck = ["id"], Pk = { class: "axis-tooltip-content" }, vh = 6,
|
|
|
19122
19122
|
}
|
|
19123
19123
|
},
|
|
19124
19124
|
a,
|
|
19125
|
-
...t.annotations ? [
|
|
19125
|
+
...t.annotations ? [A] : []
|
|
19126
19126
|
], G = F(() => t.chartData.labels && t.chartData.labels.length || 0), nt = Rt(0), Y = Rt(0), dt = new ResizeObserver(wc((z) => {
|
|
19127
19127
|
nt.value = z[0].contentRect.width, Y.value = z[0].contentRect.height;
|
|
19128
19128
|
}, 100)), V = F(() => {
|
|
19129
19129
|
var j, B;
|
|
19130
19130
|
const z = (B = (j = t.chartData) == null ? void 0 : j.labels) == null ? void 0 : B.length;
|
|
19131
|
-
return d.value && z && !v.value ? `${Math.max(z * (
|
|
19131
|
+
return d.value && z && !v.value ? `${Math.max(z * (Ak + wh), nt.value)}px` : Ok;
|
|
19132
19132
|
}), et = F(() => {
|
|
19133
19133
|
var j, B;
|
|
19134
19134
|
const z = (B = (j = t.chartData) == null ? void 0 : j.labels) == null ? void 0 : B.length;
|
|
19135
|
-
return d.value && z && v.value ? `${Math.max(z * (Rk + wh), Y.value)}px` :
|
|
19135
|
+
return d.value && z && v.value ? `${Math.max(z * (Rk + wh), Y.value)}px` : Ek;
|
|
19136
19136
|
});
|
|
19137
|
-
Mt.useReportChartDataForSynthetics(Ft(t, "chartData"), Ft(t, "syntheticsDataKey")),
|
|
19137
|
+
Mt.useReportChartDataForSynthetics(Ft(t, "chartData"), Ft(t, "syntheticsDataKey")), En(() => {
|
|
19138
19138
|
t.annotations && Ge.register(bh), o.value && (nt.value = o.value.offsetWidth, Y.value = o.value.offsetHeight, dt.observe(o.value));
|
|
19139
19139
|
}), wi(() => {
|
|
19140
19140
|
o.value && dt.unobserve(o.value);
|
|
@@ -19360,7 +19360,7 @@ df._date.override({
|
|
|
19360
19360
|
case "hour":
|
|
19361
19361
|
return pw(n);
|
|
19362
19362
|
case "day":
|
|
19363
|
-
return
|
|
19363
|
+
return Al(n);
|
|
19364
19364
|
case "week":
|
|
19365
19365
|
return dn(n);
|
|
19366
19366
|
case "isoWeek":
|
|
@@ -19498,7 +19498,7 @@ const qk = ge({
|
|
|
19498
19498
|
}, l = (c) => {
|
|
19499
19499
|
c.update(n.updateMode);
|
|
19500
19500
|
};
|
|
19501
|
-
return
|
|
19501
|
+
return En(a), wi(o), ee([
|
|
19502
19502
|
() => n.options,
|
|
19503
19503
|
() => n.data
|
|
19504
19504
|
], (c, u) => {
|
|
@@ -19515,7 +19515,7 @@ const qk = ge({
|
|
|
19515
19515
|
const M = Yi(h.labels), w = Yi(g.labels), D = Yi(h.datasets), v = Yi(g.datasets);
|
|
19516
19516
|
M !== w && (tm(y.config.data, M), _ = !0), D && D !== v && (em(y.config.data, D, n.datasetIdKey), _ = !0);
|
|
19517
19517
|
}
|
|
19518
|
-
_ &&
|
|
19518
|
+
_ && Eh(() => {
|
|
19519
19519
|
l(y);
|
|
19520
19520
|
});
|
|
19521
19521
|
}, {
|
|
@@ -19931,7 +19931,7 @@ const aC = /* @__PURE__ */ ge({
|
|
|
19931
19931
|
...e.brush ? [o] : [],
|
|
19932
19932
|
...e.type === "timeseries_line" ? [r] : [],
|
|
19933
19933
|
...e.threshold ? [l] : []
|
|
19934
|
-
]), k = F(() => `line-${b.value.map((U) => U.id).join("-")}`),
|
|
19934
|
+
]), k = F(() => `line-${b.value.map((U) => U.id).join("-")}`), A = F(() => `bar-${b.value.map((U) => U.id).join("-")}`), I = F(() => e.chartData && zw(e.chartData)), R = F(() => v ? !1 : w.value), { options: H } = Mt.useLineChartOptions({
|
|
19935
19935
|
tooltipState: S,
|
|
19936
19936
|
timeRangeMs: Ft(e, "timeRangeMs"),
|
|
19937
19937
|
granularity: Ft(e, "granularity"),
|
|
@@ -19994,7 +19994,7 @@ const aC = /* @__PURE__ */ ge({
|
|
|
19994
19994
|
}, () => {
|
|
19995
19995
|
var U;
|
|
19996
19996
|
(U = u.value) != null && U.chart && (u.value.chart.canvas.removeEventListener("dragSelect", it), u.value.chart.canvas.removeEventListener("dragSelectMove", K), u.value.chart.canvas.addEventListener("dragSelect", it), u.value.chart.canvas.addEventListener("dragSelectMove", K));
|
|
19997
|
-
}),
|
|
19997
|
+
}), En(() => {
|
|
19998
19998
|
document.addEventListener("click", $, !0);
|
|
19999
19999
|
}), wi(() => {
|
|
20000
20000
|
var U;
|
|
@@ -20019,7 +20019,7 @@ const aC = /* @__PURE__ */ ge({
|
|
|
20019
20019
|
options: q(H),
|
|
20020
20020
|
plugins: b.value
|
|
20021
20021
|
}, null, 8, ["chart-id", "data", "options", "plugins"])) : U.type === "timeseries_bar" ? (X(), Nt(q(nm), {
|
|
20022
|
-
key:
|
|
20022
|
+
key: A.value,
|
|
20023
20023
|
ref_key: "chartInstance",
|
|
20024
20024
|
ref: u,
|
|
20025
20025
|
"chart-id": q(h),
|
|
@@ -20144,7 +20144,7 @@ const aC = /* @__PURE__ */ ge({
|
|
|
20144
20144
|
return s.te(`granularityAxisTitles.${R}`) ? s.t(`granularityAxisTitles.${R}`) : R;
|
|
20145
20145
|
}), O = F(() => i.emptyStateTitle || s.t("noDataAvailableTitle")), C = F(() => i.emptyStateDescription || s.t("noDataAvailableDescription")), p = F(() => y.value ? Hw(r.value) : i.chartData && i.chartData.meta && i.chartData.data.length), b = F(() => i.chartData.meta.granularity_ms ? dl(i.chartData.meta.granularity_ms) || "hourly" : dl(
|
|
20146
20146
|
new Date(i.chartData.data[1].timestamp).getTime() - new Date(i.chartData.data[0].timestamp).getTime()
|
|
20147
|
-
) || "hourly"), k = F(() => i.chartOptions.chartLegendSortFn ? i.chartOptions.chartLegendSortFn : (R, H) => R.text === s.t("chartLabels.____OTHER____") ? 1 : H.text === s.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(R.text, 10)) && !isNaN(parseInt(H.text, 10)) ? R.text < H.text ? -1 : 1 : R.value && H.value ? H.value.raw - R.value.raw : 0),
|
|
20147
|
+
) || "hourly"), k = F(() => i.chartOptions.chartLegendSortFn ? i.chartOptions.chartLegendSortFn : (R, H) => R.text === s.t("chartLabels.____OTHER____") ? 1 : H.text === s.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(R.text, 10)) && !isNaN(parseInt(H.text, 10)) ? R.text < H.text ? -1 : 1 : R.value && H.value ? H.value.raw - R.value.raw : 0), A = F(() => i.chartOptions.chartTooltipSortFn ? i.chartOptions.chartTooltipSortFn : (R, H) => R.label === s.t("chartLabels.____OTHER____") ? 1 : H.label === s.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(R.label, 10)) && !isNaN(parseInt(H.label, 10)) ? R.label < H.label ? -1 : 1 : R.value && H.value ? H.rawValue - R.rawValue : 0), I = F(() => [
|
|
20148
20148
|
...i.timeseriesZoom ? [{
|
|
20149
20149
|
label: s.t("zoom_action_items.zoom"),
|
|
20150
20150
|
key: "zoom-in",
|
|
@@ -20162,7 +20162,7 @@ const aC = /* @__PURE__ */ ge({
|
|
|
20162
20162
|
}] : []
|
|
20163
20163
|
]);
|
|
20164
20164
|
return Bc("showLegendValues", c), Bc("legendPosition", Ft(i, "legendPosition")), (R, H) => {
|
|
20165
|
-
const G =
|
|
20165
|
+
const G = Ae("KTooltip"), nt = Ae("KEmptyState");
|
|
20166
20166
|
return X(), _t("div", lC, [
|
|
20167
20167
|
p.value && h.value && d.value ? (X(), _t("div", cC, [
|
|
20168
20168
|
ie(G, {
|
|
@@ -20188,7 +20188,7 @@ const aC = /* @__PURE__ */ ge({
|
|
|
20188
20188
|
brush: a.value,
|
|
20189
20189
|
"chart-data": r.value,
|
|
20190
20190
|
"chart-legend-sort-fn": k.value,
|
|
20191
|
-
"chart-tooltip-sort-fn":
|
|
20191
|
+
"chart-tooltip-sort-fn": A.value,
|
|
20192
20192
|
"dimension-axes-title": S.value,
|
|
20193
20193
|
fill: R.chartOptions.stacked,
|
|
20194
20194
|
granularity: b.value,
|
|
@@ -20210,7 +20210,7 @@ const aC = /* @__PURE__ */ ge({
|
|
|
20210
20210
|
annotations: R.showAnnotations,
|
|
20211
20211
|
"chart-data": r.value,
|
|
20212
20212
|
"chart-legend-sort-fn": k.value,
|
|
20213
|
-
"chart-tooltip-sort-fn":
|
|
20213
|
+
"chart-tooltip-sort-fn": A.value,
|
|
20214
20214
|
"data-testid": "bar-chart-container",
|
|
20215
20215
|
"dimension-axes-title": v.value,
|
|
20216
20216
|
"legend-values": q(u),
|
|
@@ -20408,11 +20408,11 @@ const aC = /* @__PURE__ */ ge({
|
|
|
20408
20408
|
const u = e.decimalPoints && typeof e.decimalPoints == "number" ? e.decimalPoints : Zd;
|
|
20409
20409
|
return c.toLocaleString("en-US", { maximumFractionDigits: u });
|
|
20410
20410
|
});
|
|
20411
|
-
return
|
|
20411
|
+
return En(() => {
|
|
20412
20412
|
var c, u;
|
|
20413
20413
|
((u = (c = e.data) == null ? void 0 : c.data) == null ? void 0 : u.length) > 1 && console.warn("SingleValue chart should only be used with a single data point. Data length:", e.data.data.length);
|
|
20414
20414
|
}), (c, u) => {
|
|
20415
|
-
const d =
|
|
20415
|
+
const d = Ae("KEmptyState");
|
|
20416
20416
|
return X(), _t("div", bC, [
|
|
20417
20417
|
o.value === null ? (X(), Nt(d, {
|
|
20418
20418
|
key: 0,
|
|
@@ -20487,7 +20487,7 @@ const aC = /* @__PURE__ */ ge({
|
|
|
20487
20487
|
return c;
|
|
20488
20488
|
});
|
|
20489
20489
|
return (c, u) => {
|
|
20490
|
-
const d =
|
|
20490
|
+
const d = Ae("KEmptyState");
|
|
20491
20491
|
return X(), _t("div", SC, [
|
|
20492
20492
|
l.value ? (X(), _t("div", TC, [
|
|
20493
20493
|
r.value ? (X(), Nt(yC, {
|
|
@@ -20530,7 +20530,7 @@ const aC = /* @__PURE__ */ ge({
|
|
|
20530
20530
|
key: 3,
|
|
20531
20531
|
class: "top-n-table",
|
|
20532
20532
|
"data-testid": "top-n-table"
|
|
20533
|
-
}, OC = { class: "table-headings" },
|
|
20533
|
+
}, OC = { class: "table-headings" }, EC = { class: "table-row" }, AC = { class: "column-1" }, RC = { class: "column-2" }, IC = {
|
|
20534
20534
|
class: "table-body",
|
|
20535
20535
|
"data-testid": "top-n-data"
|
|
20536
20536
|
}, LC = ["data-testid"], NC = { class: "column-1" }, FC = { class: "column-2" }, zC = /* @__PURE__ */ ge({
|
|
@@ -20579,11 +20579,11 @@ const aC = /* @__PURE__ */ ge({
|
|
|
20579
20579
|
return _ ? rr(_, { capital: !0, round: !0 }) : "–";
|
|
20580
20580
|
};
|
|
20581
20581
|
return (g, y) => {
|
|
20582
|
-
const _ =
|
|
20582
|
+
const _ = Ae("KEmptyState"), M = Ae("KSkeleton"), w = Ae("KCard");
|
|
20583
20583
|
return X(), Nt(w, {
|
|
20584
20584
|
class: "kong-ui-public-top-n-table",
|
|
20585
20585
|
"title-tag": g.titleTag
|
|
20586
|
-
},
|
|
20586
|
+
}, Ah({
|
|
20587
20587
|
default: Wt(() => [
|
|
20588
20588
|
c.value ? (X(), Nt(_, {
|
|
20589
20589
|
key: 0,
|
|
@@ -20604,8 +20604,8 @@ const aC = /* @__PURE__ */ ge({
|
|
|
20604
20604
|
type: "table"
|
|
20605
20605
|
})) : s.value ? (X(), _t("div", PC, [
|
|
20606
20606
|
ut("div", OC, [
|
|
20607
|
-
ut("div",
|
|
20608
|
-
ut("div",
|
|
20607
|
+
ut("div", EC, [
|
|
20608
|
+
ut("div", AC, ft(q(e).t("topNTable.nameLabel")), 1),
|
|
20609
20609
|
ut("div", RC, ft(l.value), 1)
|
|
20610
20610
|
])
|
|
20611
20611
|
]),
|
|
@@ -20664,8 +20664,8 @@ const aC = /* @__PURE__ */ ge({
|
|
|
20664
20664
|
var Pa = { exports: {} };
|
|
20665
20665
|
Pa.exports;
|
|
20666
20666
|
(function(n, t) {
|
|
20667
|
-
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 9007199254740991, l = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", f = "[object Function]", g = "[object GeneratorFunction]", y = "[object Map]", _ = "[object Number]", M = "[object Object]", w = "[object Promise]", D = "[object RegExp]", v = "[object Set]", S = "[object String]", O = "[object Symbol]", C = "[object WeakMap]", p = "[object ArrayBuffer]", b = "[object DataView]", k = "[object Float32Array]",
|
|
20668
|
-
yt[k] = yt[
|
|
20667
|
+
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 9007199254740991, l = "[object Arguments]", c = "[object Array]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", f = "[object Function]", g = "[object GeneratorFunction]", y = "[object Map]", _ = "[object Number]", M = "[object Object]", w = "[object Promise]", D = "[object RegExp]", v = "[object Set]", S = "[object String]", O = "[object Symbol]", C = "[object WeakMap]", p = "[object ArrayBuffer]", b = "[object DataView]", k = "[object Float32Array]", A = "[object Float64Array]", I = "[object Int8Array]", R = "[object Int16Array]", H = "[object Int32Array]", G = "[object Uint8Array]", nt = "[object Uint8ClampedArray]", Y = "[object Uint16Array]", dt = "[object Uint32Array]", V = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, et = /^\w*$/, it = /^\./, K = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, $ = /[\\^$.*+?()[\]{}|]/g, U = /\\(\\)?/g, Q = /^\[object .+?Constructor\]$/, wt = /^(?:0|[1-9]\d*)$/, yt = {};
|
|
20668
|
+
yt[k] = yt[A] = yt[I] = yt[R] = yt[H] = yt[G] = yt[nt] = yt[Y] = yt[dt] = !0, yt[l] = yt[c] = yt[p] = yt[u] = yt[b] = yt[d] = yt[h] = yt[f] = yt[y] = yt[_] = yt[M] = yt[D] = yt[v] = yt[S] = yt[C] = !1;
|
|
20669
20669
|
var bt = typeof Ie == "object" && Ie && Ie.Object === Object && Ie, z = typeof self == "object" && self && self.Object === Object && self, j = bt || z || Function("return this")(), B = t && !t.nodeType && t, tt = B && !0 && n && !n.nodeType && n, st = tt && tt.exports === B, rt = st && bt.process, ot = function() {
|
|
20670
20670
|
try {
|
|
20671
20671
|
return rt && rt.binding("util");
|
|
@@ -20768,25 +20768,25 @@ Pa.exports;
|
|
|
20768
20768
|
function Ja() {
|
|
20769
20769
|
this.__data__ = [];
|
|
20770
20770
|
}
|
|
20771
|
-
function
|
|
20772
|
-
var T = this.__data__, L =
|
|
20771
|
+
function An(m) {
|
|
20772
|
+
var T = this.__data__, L = Ei(T, m);
|
|
20773
20773
|
if (L < 0)
|
|
20774
20774
|
return !1;
|
|
20775
20775
|
var W = T.length - 1;
|
|
20776
20776
|
return L == W ? T.pop() : ii.call(T, L, 1), !0;
|
|
20777
20777
|
}
|
|
20778
20778
|
function to(m) {
|
|
20779
|
-
var T = this.__data__, L =
|
|
20779
|
+
var T = this.__data__, L = Ei(T, m);
|
|
20780
20780
|
return L < 0 ? void 0 : T[L][1];
|
|
20781
20781
|
}
|
|
20782
20782
|
function eo(m) {
|
|
20783
|
-
return
|
|
20783
|
+
return Ei(this.__data__, m) > -1;
|
|
20784
20784
|
}
|
|
20785
20785
|
function no(m, T) {
|
|
20786
|
-
var L = this.__data__, W =
|
|
20786
|
+
var L = this.__data__, W = Ei(L, m);
|
|
20787
20787
|
return W < 0 ? L.push([m, T]) : L[W][1] = T, this;
|
|
20788
20788
|
}
|
|
20789
|
-
Je.prototype.clear = Ja, Je.prototype.delete =
|
|
20789
|
+
Je.prototype.clear = Ja, Je.prototype.delete = An, Je.prototype.get = to, Je.prototype.has = eo, Je.prototype.set = no;
|
|
20790
20790
|
function tn(m) {
|
|
20791
20791
|
var T = -1, L = m ? m.length : 0;
|
|
20792
20792
|
for (this.clear(); ++T < L; ) {
|
|
@@ -20858,7 +20858,7 @@ Pa.exports;
|
|
|
20858
20858
|
Ut.call(m, J) && !(mt && (J == "length" || ms(J, W))) && L.push(J);
|
|
20859
20859
|
return L;
|
|
20860
20860
|
}
|
|
20861
|
-
function
|
|
20861
|
+
function Ei(m, T) {
|
|
20862
20862
|
for (var L = m.length; L--; )
|
|
20863
20863
|
if (Pr(m[L][0], T))
|
|
20864
20864
|
return L;
|
|
@@ -20868,7 +20868,7 @@ Pa.exports;
|
|
|
20868
20868
|
function mo(m, T) {
|
|
20869
20869
|
return m && go(m, T, oi);
|
|
20870
20870
|
}
|
|
20871
|
-
function
|
|
20871
|
+
function Ai(m, T) {
|
|
20872
20872
|
T = Li(T, m) ? [T] : rn(T);
|
|
20873
20873
|
for (var L = 0, W = T.length; m != null && L < W; )
|
|
20874
20874
|
m = m[yn(T[L++])];
|
|
@@ -20888,7 +20888,7 @@ Pa.exports;
|
|
|
20888
20888
|
St || (Vt = be(m), Vt = Vt == l ? M : Vt), ce || (_e = be(T), _e = _e == l ? M : _e);
|
|
20889
20889
|
var Pe = Vt == M && !ne(m), Oe = _e == M && !ne(T), Me = Vt == _e;
|
|
20890
20890
|
if (Me && !Pe)
|
|
20891
|
-
return J || (J = new Ye()), St ||
|
|
20891
|
+
return J || (J = new Ye()), St || Er(m) ? Dr(m, T, L, W, mt, J) : To(m, T, Vt, L, W, mt, J);
|
|
20892
20892
|
if (!(mt & a)) {
|
|
20893
20893
|
var je = Pe && Ut.call(m, "__wrapped__"), $e = Oe && Ut.call(T, "__wrapped__");
|
|
20894
20894
|
if (je || $e) {
|
|
@@ -20949,13 +20949,13 @@ Pa.exports;
|
|
|
20949
20949
|
}
|
|
20950
20950
|
function Ri(m, T) {
|
|
20951
20951
|
return Li(m) && Cr(T) ? ys(yn(m), T) : function(L) {
|
|
20952
|
-
var W =
|
|
20952
|
+
var W = Ar(L, m);
|
|
20953
20953
|
return W === void 0 && W === T ? Rr(L, m) : gs(T, W, void 0, r | a);
|
|
20954
20954
|
};
|
|
20955
20955
|
}
|
|
20956
20956
|
function In(m) {
|
|
20957
20957
|
return function(T) {
|
|
20958
|
-
return
|
|
20958
|
+
return Ai(T, m);
|
|
20959
20959
|
};
|
|
20960
20960
|
}
|
|
20961
20961
|
function Tr(m) {
|
|
@@ -21198,11 +21198,11 @@ Pa.exports;
|
|
|
21198
21198
|
return N(m) && Ut.call(m, "callee") && (!ls.call(m, "callee") || ke.call(m) == l);
|
|
21199
21199
|
}
|
|
21200
21200
|
var x = Array.isArray;
|
|
21201
|
-
function
|
|
21201
|
+
function E(m) {
|
|
21202
21202
|
return m != null && Zt(m.length) && !Z(m);
|
|
21203
21203
|
}
|
|
21204
21204
|
function N(m) {
|
|
21205
|
-
return Ce(m) &&
|
|
21205
|
+
return Ce(m) && E(m);
|
|
21206
21206
|
}
|
|
21207
21207
|
function Z(m) {
|
|
21208
21208
|
var T = le(m) ? ke.call(m) : "";
|
|
@@ -21221,19 +21221,19 @@ Pa.exports;
|
|
|
21221
21221
|
function de(m) {
|
|
21222
21222
|
return typeof m == "symbol" || Ce(m) && ke.call(m) == O;
|
|
21223
21223
|
}
|
|
21224
|
-
var
|
|
21224
|
+
var Er = at ? ue(at) : vo;
|
|
21225
21225
|
function Ln(m) {
|
|
21226
21226
|
return m == null ? "" : Tr(m);
|
|
21227
21227
|
}
|
|
21228
|
-
function
|
|
21229
|
-
var W = m == null ? void 0 :
|
|
21228
|
+
function Ar(m, T, L) {
|
|
21229
|
+
var W = m == null ? void 0 : Ai(m, T);
|
|
21230
21230
|
return W === void 0 ? L : W;
|
|
21231
21231
|
}
|
|
21232
21232
|
function Rr(m, T) {
|
|
21233
21233
|
return m != null && Co(m, T, yo);
|
|
21234
21234
|
}
|
|
21235
21235
|
function oi(m) {
|
|
21236
|
-
return
|
|
21236
|
+
return E(m) ? fo(m) : wo(m);
|
|
21237
21237
|
}
|
|
21238
21238
|
function bs(m, T) {
|
|
21239
21239
|
var L = {};
|
|
@@ -21432,20 +21432,20 @@ License: MIT
|
|
|
21432
21432
|
var k = S(b);
|
|
21433
21433
|
k.chunkSize = parseInt(k.chunkSize), b.step || b.chunk || (k.chunkSize = null), this._handle = new y(k), (this._handle.streamer = this)._config = k;
|
|
21434
21434
|
}).call(this, p), this.parseChunk = function(b, k) {
|
|
21435
|
-
var
|
|
21436
|
-
if (this.isFirstChunk && 0 <
|
|
21435
|
+
var A = parseInt(this._config.skipFirstNLines) || 0;
|
|
21436
|
+
if (this.isFirstChunk && 0 < A) {
|
|
21437
21437
|
let R = this._config.newline;
|
|
21438
|
-
R || (I = this._config.quoteChar || '"', R = this._handle.guessLineEndings(b, I)), b = [...b.split(R).slice(
|
|
21438
|
+
R || (I = this._config.quoteChar || '"', R = this._handle.guessLineEndings(b, I)), b = [...b.split(R).slice(A)].join(R);
|
|
21439
21439
|
}
|
|
21440
21440
|
this.isFirstChunk && C(this._config.beforeFirstChunk) && (I = this._config.beforeFirstChunk(b)) !== void 0 && (b = I), this.isFirstChunk = !1, this._halted = !1;
|
|
21441
|
-
var
|
|
21441
|
+
var A = this._partialLine + b, I = (this._partialLine = "", this._handle.parse(A, this._baseIndex, !this._finished));
|
|
21442
21442
|
if (!this._handle.paused() && !this._handle.aborted()) {
|
|
21443
|
-
if (b = I.meta.cursor,
|
|
21443
|
+
if (b = I.meta.cursor, A = (this._finished || (this._partialLine = A.substring(b - this._baseIndex), this._baseIndex = b), I && I.data && (this._rowCount += I.data.length), this._finished || this._config.preview && this._rowCount >= this._config.preview), a) i.postMessage({ results: I, workerId: c.WORKER_ID, finished: A });
|
|
21444
21444
|
else if (C(this._config.chunk) && !k) {
|
|
21445
21445
|
if (this._config.chunk(I, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
|
|
21446
21446
|
this._completeResults = I = void 0;
|
|
21447
21447
|
}
|
|
21448
|
-
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(I.data), this._completeResults.errors = this._completeResults.errors.concat(I.errors), this._completeResults.meta = I.meta), this._completed || !
|
|
21448
|
+
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(I.data), this._completeResults.errors = this._completeResults.errors.concat(I.errors), this._completeResults.meta = I.meta), this._completed || !A || !C(this._config.complete) || I && I.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), A || I && I.meta.paused || this._nextChunk(), I;
|
|
21449
21449
|
}
|
|
21450
21450
|
this._halted = !0;
|
|
21451
21451
|
}, this._sendError = function(b) {
|
|
@@ -21464,8 +21464,8 @@ License: MIT
|
|
|
21464
21464
|
if (this._finished) this._chunkLoaded();
|
|
21465
21465
|
else {
|
|
21466
21466
|
if (b = new XMLHttpRequest(), this._config.withCredentials && (b.withCredentials = this._config.withCredentials), r || (b.onload = O(this._chunkLoaded, this), b.onerror = O(this._chunkError, this)), b.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !r), this._config.downloadRequestHeaders) {
|
|
21467
|
-
var k,
|
|
21468
|
-
for (k in
|
|
21467
|
+
var k, A = this._config.downloadRequestHeaders;
|
|
21468
|
+
for (k in A) b.setRequestHeader(k, A[k]);
|
|
21469
21469
|
}
|
|
21470
21470
|
var I;
|
|
21471
21471
|
this._config.chunkSize && (I = this._start + this._config.chunkSize - 1, b.setRequestHeader("Range", "bytes=" + this._start + "-" + I));
|
|
@@ -21484,14 +21484,14 @@ License: MIT
|
|
|
21484
21484
|
}
|
|
21485
21485
|
function h(p) {
|
|
21486
21486
|
(p = p || {}).chunkSize || (p.chunkSize = c.LocalChunkSize), u.call(this, p);
|
|
21487
|
-
var b, k,
|
|
21487
|
+
var b, k, A = typeof FileReader < "u";
|
|
21488
21488
|
this.stream = function(I) {
|
|
21489
|
-
this._input = I, k = I.slice || I.webkitSlice || I.mozSlice,
|
|
21489
|
+
this._input = I, k = I.slice || I.webkitSlice || I.mozSlice, A ? ((b = new FileReader()).onload = O(this._chunkLoaded, this), b.onerror = O(this._chunkError, this)) : b = new FileReaderSync(), this._nextChunk();
|
|
21490
21490
|
}, this._nextChunk = function() {
|
|
21491
21491
|
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
21492
21492
|
}, this._readChunk = function() {
|
|
21493
21493
|
var I = this._input, R = (this._config.chunkSize && (R = Math.min(this._start + this._config.chunkSize, this._input.size), I = k.call(I, this._start, R)), b.readAsText(I, this._config.encoding));
|
|
21494
|
-
|
|
21494
|
+
A || this._chunkLoaded({ target: { result: R } });
|
|
21495
21495
|
}, this._chunkLoaded = function(I) {
|
|
21496
21496
|
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(I.target.result);
|
|
21497
21497
|
}, this._chunkError = function() {
|
|
@@ -21503,13 +21503,13 @@ License: MIT
|
|
|
21503
21503
|
u.call(this, p = p || {}), this.stream = function(k) {
|
|
21504
21504
|
return b = k, this._nextChunk();
|
|
21505
21505
|
}, this._nextChunk = function() {
|
|
21506
|
-
var k,
|
|
21507
|
-
if (!this._finished) return k = this._config.chunkSize, b = k ? (
|
|
21506
|
+
var k, A;
|
|
21507
|
+
if (!this._finished) return k = this._config.chunkSize, b = k ? (A = b.substring(0, k), b.substring(k)) : (A = b, ""), this._finished = !b, this.parseChunk(A);
|
|
21508
21508
|
};
|
|
21509
21509
|
}
|
|
21510
21510
|
function g(p) {
|
|
21511
21511
|
u.call(this, p = p || {});
|
|
21512
|
-
var b = [], k = !0,
|
|
21512
|
+
var b = [], k = !0, A = !1;
|
|
21513
21513
|
this.pause = function() {
|
|
21514
21514
|
u.prototype.pause.apply(this, arguments), this._input.pause();
|
|
21515
21515
|
}, this.resume = function() {
|
|
@@ -21517,7 +21517,7 @@ License: MIT
|
|
|
21517
21517
|
}, this.stream = function(I) {
|
|
21518
21518
|
this._input = I, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
21519
21519
|
}, this._checkIsFinished = function() {
|
|
21520
|
-
|
|
21520
|
+
A && b.length === 1 && (this._finished = !0);
|
|
21521
21521
|
}, this._nextChunk = function() {
|
|
21522
21522
|
this._checkIsFinished(), b.length ? this.parseChunk(b.shift()) : k = !0;
|
|
21523
21523
|
}, this._streamData = O(function(I) {
|
|
@@ -21529,18 +21529,18 @@ License: MIT
|
|
|
21529
21529
|
}, this), this._streamError = O(function(I) {
|
|
21530
21530
|
this._streamCleanUp(), this._sendError(I);
|
|
21531
21531
|
}, this), this._streamEnd = O(function() {
|
|
21532
|
-
this._streamCleanUp(),
|
|
21532
|
+
this._streamCleanUp(), A = !0, this._streamData("");
|
|
21533
21533
|
}, this), this._streamCleanUp = O(function() {
|
|
21534
21534
|
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
21535
21535
|
}, this);
|
|
21536
21536
|
}
|
|
21537
21537
|
function y(p) {
|
|
21538
|
-
var b, k,
|
|
21538
|
+
var b, k, A, I, R = Math.pow(2, 53), H = -R, G = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, nt = /^((\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)))$/, Y = this, dt = 0, V = 0, et = !1, it = !1, K = [], $ = { data: [], errors: [], meta: {} };
|
|
21539
21539
|
function U(bt) {
|
|
21540
21540
|
return p.skipEmptyLines === "greedy" ? bt.join("").trim() === "" : bt.length === 1 && bt[0].length === 0;
|
|
21541
21541
|
}
|
|
21542
21542
|
function Q() {
|
|
21543
|
-
if ($ &&
|
|
21543
|
+
if ($ && A && (yt("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + c.DefaultDelimiter + "'"), A = !1), p.skipEmptyLines && ($.data = $.data.filter(function(B) {
|
|
21544
21544
|
return !U(B);
|
|
21545
21545
|
})), wt()) {
|
|
21546
21546
|
let B = function(tt, st) {
|
|
@@ -21573,7 +21573,7 @@ License: MIT
|
|
|
21573
21573
|
C(p.step) && (I = p.step, p.step = function(bt) {
|
|
21574
21574
|
$ = bt, wt() ? Q() : (Q(), $.data.length !== 0 && (dt += bt.data.length, p.preview && dt > p.preview ? k.abort() : ($.data = $.data[0], I($, Y))));
|
|
21575
21575
|
}), this.parse = function(bt, z, j) {
|
|
21576
|
-
var B = p.quoteChar || '"', B = (p.newline || (p.newline = this.guessLineEndings(bt, B)),
|
|
21576
|
+
var B = p.quoteChar || '"', B = (p.newline || (p.newline = this.guessLineEndings(bt, B)), A = !1, p.delimiter ? C(p.delimiter) && (p.delimiter = p.delimiter(bt), $.meta.delimiter = p.delimiter) : ((B = ((tt, st, rt, ot, at) => {
|
|
21577
21577
|
var Tt, ht, It, ue;
|
|
21578
21578
|
at = at || [",", " ", "|", ";", c.RECORD_SEP, c.UNIT_SEP];
|
|
21579
21579
|
for (var ye = 0; ye < at.length; ye++) {
|
|
@@ -21581,7 +21581,7 @@ License: MIT
|
|
|
21581
21581
|
0 < oe.data.length && (ae /= oe.data.length - $t), (ht === void 0 || Dt <= ht) && (ue === void 0 || ue < ae) && 1.99 < ae && (ht = Dt, Tt = Be, ue = ae);
|
|
21582
21582
|
}
|
|
21583
21583
|
return { successful: !!(p.delimiter = Tt), bestDelimiter: Tt };
|
|
21584
|
-
})(bt, p.newline, p.skipEmptyLines, p.comments, p.delimitersToGuess)).successful ? p.delimiter = B.bestDelimiter : (
|
|
21584
|
+
})(bt, p.newline, p.skipEmptyLines, p.comments, p.delimitersToGuess)).successful ? p.delimiter = B.bestDelimiter : (A = !0, p.delimiter = c.DefaultDelimiter), $.meta.delimiter = p.delimiter), S(p));
|
|
21585
21585
|
return p.preview && p.header && B.preview++, b = bt, k = new M(B), $ = k.parse(b, z, j), Q(), et ? { meta: { paused: !0 } } : $ || { meta: { paused: !1 } };
|
|
21586
21586
|
}, this.paused = function() {
|
|
21587
21587
|
return et;
|
|
@@ -21609,22 +21609,22 @@ License: MIT
|
|
|
21609
21609
|
return p.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
21610
21610
|
}
|
|
21611
21611
|
function M(p) {
|
|
21612
|
-
var b = (p = p || {}).delimiter, k = p.newline,
|
|
21613
|
-
if (p.escapeChar !== void 0 && (dt = p.escapeChar), (typeof b != "string" || -1 < c.BAD_DELIMITERS.indexOf(b)) && (b = ","),
|
|
21614
|
-
|
|
21612
|
+
var b = (p = p || {}).delimiter, k = p.newline, A = p.comments, I = p.step, R = p.preview, H = p.fastMode, G = null, nt = !1, Y = p.quoteChar == null ? '"' : p.quoteChar, dt = Y;
|
|
21613
|
+
if (p.escapeChar !== void 0 && (dt = p.escapeChar), (typeof b != "string" || -1 < c.BAD_DELIMITERS.indexOf(b)) && (b = ","), A === b) throw new Error("Comment character same as delimiter");
|
|
21614
|
+
A === !0 ? A = "#" : (typeof A != "string" || -1 < c.BAD_DELIMITERS.indexOf(A)) && (A = !1), k !== `
|
|
21615
21615
|
` && k !== "\r" && k !== `\r
|
|
21616
21616
|
` && (k = `
|
|
21617
21617
|
`);
|
|
21618
21618
|
var V = 0, et = !1;
|
|
21619
21619
|
this.parse = function(it, K, $) {
|
|
21620
21620
|
if (typeof it != "string") throw new Error("Input must be a string");
|
|
21621
|
-
var U = it.length, Q = b.length, wt = k.length, yt =
|
|
21621
|
+
var U = it.length, Q = b.length, wt = k.length, yt = A.length, bt = C(I), z = [], j = [], B = [], tt = V = 0;
|
|
21622
21622
|
if (!it) return Dt();
|
|
21623
21623
|
if (H || H !== !1 && it.indexOf(Y) === -1) {
|
|
21624
21624
|
for (var st = it.split(k), rt = 0; rt < st.length; rt++) {
|
|
21625
21625
|
if (B = st[rt], V += B.length, rt !== st.length - 1) V += k.length;
|
|
21626
21626
|
else if ($) return Dt();
|
|
21627
|
-
if (!
|
|
21627
|
+
if (!A || B.substring(0, yt) !== A) {
|
|
21628
21628
|
if (bt) {
|
|
21629
21629
|
if (z = [], ue(B.split(b)), ae(), et) return Dt();
|
|
21630
21630
|
} else ue(B.split(b));
|
|
@@ -21652,7 +21652,7 @@ License: MIT
|
|
|
21652
21652
|
j.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: z.length, index: V }), ht++;
|
|
21653
21653
|
}
|
|
21654
21654
|
}
|
|
21655
|
-
else if (
|
|
21655
|
+
else if (A && B.length === 0 && it.substring(V, V + yt) === A) {
|
|
21656
21656
|
if (at === -1) return Dt();
|
|
21657
21657
|
V = at + wt, at = it.indexOf(k, V), ot = it.indexOf(b, V);
|
|
21658
21658
|
} else if (ot !== -1 && (ot < at || at === -1)) B.push(it.substring(V, ot)), V = ot + Q, ot = it.indexOf(b, V);
|
|
@@ -21702,18 +21702,18 @@ License: MIT
|
|
|
21702
21702
|
};
|
|
21703
21703
|
}
|
|
21704
21704
|
function w(p) {
|
|
21705
|
-
var b = p.data, k = o[b.workerId],
|
|
21705
|
+
var b = p.data, k = o[b.workerId], A = !1;
|
|
21706
21706
|
if (b.error) k.userError(b.error, b.file);
|
|
21707
21707
|
else if (b.results && b.results.data) {
|
|
21708
21708
|
var I = { abort: function() {
|
|
21709
|
-
|
|
21709
|
+
A = !0, D(b.workerId, { data: [], errors: [], meta: { aborted: !0 } });
|
|
21710
21710
|
}, pause: v, resume: v };
|
|
21711
21711
|
if (C(k.userStep)) {
|
|
21712
|
-
for (var R = 0; R < b.results.data.length && (k.userStep({ data: b.results.data[R], errors: b.results.errors, meta: b.results.meta }, I), !
|
|
21712
|
+
for (var R = 0; R < b.results.data.length && (k.userStep({ data: b.results.data[R], errors: b.results.errors, meta: b.results.meta }, I), !A); R++) ;
|
|
21713
21713
|
delete b.results;
|
|
21714
21714
|
} else C(k.userChunk) && (k.userChunk(b.results, I, b.file), delete b.results);
|
|
21715
21715
|
}
|
|
21716
|
-
b.finished && !
|
|
21716
|
+
b.finished && !A && D(b.workerId, b.results);
|
|
21717
21717
|
}
|
|
21718
21718
|
function D(p, b) {
|
|
21719
21719
|
var k = o[p];
|
|
@@ -21738,21 +21738,21 @@ License: MIT
|
|
|
21738
21738
|
}
|
|
21739
21739
|
return c.parse = function(p, b) {
|
|
21740
21740
|
var k = (b = b || {}).dynamicTyping || !1;
|
|
21741
|
-
if (C(k) && (b.dynamicTypingFunction = k, k = {}), b.dynamicTyping = k, b.transform = !!C(b.transform) && b.transform, !b.worker || !c.WORKERS_SUPPORTED) return k = null, c.NODE_STREAM_INPUT, typeof p == "string" ? (p = ((
|
|
21741
|
+
if (C(k) && (b.dynamicTypingFunction = k, k = {}), b.dynamicTyping = k, b.transform = !!C(b.transform) && b.transform, !b.worker || !c.WORKERS_SUPPORTED) return k = null, c.NODE_STREAM_INPUT, typeof p == "string" ? (p = ((A) => A.charCodeAt(0) !== 65279 ? A : A.slice(1))(p), k = new (b.download ? d : f)(b)) : p.readable === !0 && C(p.read) && C(p.on) ? k = new g(b) : (i.File && p instanceof File || p instanceof Object) && (k = new h(b)), k.stream(p);
|
|
21742
21742
|
(k = (() => {
|
|
21743
|
-
var
|
|
21744
|
-
return !!c.WORKERS_SUPPORTED && (
|
|
21743
|
+
var A;
|
|
21744
|
+
return !!c.WORKERS_SUPPORTED && (A = (() => {
|
|
21745
21745
|
var I = i.URL || i.webkitURL || null, R = e.toString();
|
|
21746
21746
|
return c.BLOB_URL || (c.BLOB_URL = I.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; ", "(", R, ")();"], { type: "text/javascript" })));
|
|
21747
|
-
})(), (
|
|
21747
|
+
})(), (A = new i.Worker(A)).onmessage = w, A.id = l++, o[A.id] = A);
|
|
21748
21748
|
})()).userStep = b.step, k.userChunk = b.chunk, k.userComplete = b.complete, k.userError = b.error, b.step = C(b.step), b.chunk = C(b.chunk), b.complete = C(b.complete), b.error = C(b.error), delete b.worker, k.postMessage({ input: p, config: b, workerId: k.id });
|
|
21749
21749
|
}, c.unparse = function(p, b) {
|
|
21750
|
-
var k = !1,
|
|
21750
|
+
var k = !1, A = !0, I = ",", R = `\r
|
|
21751
21751
|
`, H = '"', G = H + H, nt = !1, Y = null, dt = !1, V = ((() => {
|
|
21752
21752
|
if (typeof b == "object") {
|
|
21753
21753
|
if (typeof b.delimiter != "string" || c.BAD_DELIMITERS.filter(function(K) {
|
|
21754
21754
|
return b.delimiter.indexOf(K) !== -1;
|
|
21755
|
-
}).length || (I = b.delimiter), typeof b.quotes != "boolean" && typeof b.quotes != "function" && !Array.isArray(b.quotes) || (k = b.quotes), typeof b.skipEmptyLines != "boolean" && typeof b.skipEmptyLines != "string" || (nt = b.skipEmptyLines), typeof b.newline == "string" && (R = b.newline), typeof b.quoteChar == "string" && (H = b.quoteChar), typeof b.header == "boolean" && (
|
|
21755
|
+
}).length || (I = b.delimiter), typeof b.quotes != "boolean" && typeof b.quotes != "function" && !Array.isArray(b.quotes) || (k = b.quotes), typeof b.skipEmptyLines != "boolean" && typeof b.skipEmptyLines != "string" || (nt = b.skipEmptyLines), typeof b.newline == "string" && (R = b.newline), typeof b.quoteChar == "string" && (H = b.quoteChar), typeof b.header == "boolean" && (A = b.header), Array.isArray(b.columns)) {
|
|
21756
21756
|
if (b.columns.length === 0) throw new Error("Option columns is empty");
|
|
21757
21757
|
Y = b.columns;
|
|
21758
21758
|
}
|
|
@@ -21766,7 +21766,7 @@ License: MIT
|
|
|
21766
21766
|
throw new Error("Unable to serialize unrecognized input");
|
|
21767
21767
|
function et(K, $, U) {
|
|
21768
21768
|
var Q = "", wt = (typeof K == "string" && (K = JSON.parse(K)), typeof $ == "string" && ($ = JSON.parse($)), Array.isArray(K) && 0 < K.length), yt = !Array.isArray($[0]);
|
|
21769
|
-
if (wt &&
|
|
21769
|
+
if (wt && A) {
|
|
21770
21770
|
for (var bt = 0; bt < K.length; bt++) 0 < bt && (Q += I), Q += it(K[bt], bt);
|
|
21771
21771
|
0 < $.length && (Q += R);
|
|
21772
21772
|
}
|
|
@@ -21803,8 +21803,8 @@ License: MIT
|
|
|
21803
21803
|
return this.each(function(R) {
|
|
21804
21804
|
if (!(s(this).prop("tagName").toUpperCase() === "INPUT" && s(this).attr("type").toLowerCase() === "file" && i.FileReader) || !this.files || this.files.length === 0) return !0;
|
|
21805
21805
|
for (var H = 0; H < this.files.length; H++) k.push({ file: this.files[H], inputElem: this, instanceConfig: s.extend({}, b) });
|
|
21806
|
-
}),
|
|
21807
|
-
function
|
|
21806
|
+
}), A(), this;
|
|
21807
|
+
function A() {
|
|
21808
21808
|
if (k.length === 0) C(p.complete) && p.complete();
|
|
21809
21809
|
else {
|
|
21810
21810
|
var R, H, G, nt, Y = k[0];
|
|
@@ -21823,7 +21823,7 @@ License: MIT
|
|
|
21823
21823
|
}
|
|
21824
21824
|
}
|
|
21825
21825
|
function I() {
|
|
21826
|
-
k.splice(0, 1),
|
|
21826
|
+
k.splice(0, 1), A();
|
|
21827
21827
|
}
|
|
21828
21828
|
}), a && (i.onmessage = function(p) {
|
|
21829
21829
|
p = p.data, c.WORKER_ID === void 0 && p && (c.WORKER_ID = p.workerId), typeof p.input == "string" ? i.postMessage({ workerId: c.WORKER_ID, results: c.parse(p.input, p.config), finished: !0 }) : (i.File && p.input instanceof File || p.input instanceof Object) && (p = c.parse(p.input, p.config)) && i.postMessage({ workerId: c.WORKER_ID, results: p, finished: !0 });
|
|
@@ -21990,13 +21990,13 @@ const _P = ["id"], xP = /* @__PURE__ */ ge({
|
|
|
21990
21990
|
const g = i.exportState.chartData, y = g.data.some((p) => p.timestamp !== g.data[0].timestamp), _ = g.data.map((p) => {
|
|
21991
21991
|
const b = new Date(p.timestamp);
|
|
21992
21992
|
return {
|
|
21993
|
-
...Object.keys(p.event).reduce((
|
|
21993
|
+
...Object.keys(p.event).reduce((A, I) => {
|
|
21994
21994
|
if (I in g.meta.display) {
|
|
21995
21995
|
const R = p.event[I], H = g.meta.display[I];
|
|
21996
|
-
|
|
21996
|
+
A[I] = R && H && H[R].name || p.event[I];
|
|
21997
21997
|
} else
|
|
21998
|
-
|
|
21999
|
-
return
|
|
21998
|
+
A[I] = p.event[I];
|
|
21999
|
+
return A;
|
|
22000
22000
|
}, {}),
|
|
22001
22001
|
...y ? {
|
|
22002
22002
|
timestamp: zl(b, "yyyy-MM-dd HH:mm:ss"),
|
|
@@ -22041,7 +22041,7 @@ const _P = ["id"], xP = /* @__PURE__ */ ge({
|
|
|
22041
22041
|
return ee(h, () => {
|
|
22042
22042
|
a.value++;
|
|
22043
22043
|
}), (g, y) => {
|
|
22044
|
-
const _ =
|
|
22044
|
+
const _ = Ae("KSkeleton"), M = Ae("KEmptyState"), w = Ae("KTableData"), D = Ae("KTooltip"), v = Ae("KButton"), S = Ae("KModal");
|
|
22045
22045
|
return X(), _t("div", wP, [
|
|
22046
22046
|
ie(S, {
|
|
22047
22047
|
class: "vitals-report",
|
|
@@ -22299,14 +22299,14 @@ const _P = ["id"], xP = /* @__PURE__ */ ge({
|
|
|
22299
22299
|
}
|
|
22300
22300
|
}
|
|
22301
22301
|
})), w = Rt("0"), D = Rt("0");
|
|
22302
|
-
return
|
|
22302
|
+
return En(() => {
|
|
22303
22303
|
He.positioners[_] = function(v, S) {
|
|
22304
22304
|
if (!v.length || s.interactionMode === "interactive")
|
|
22305
22305
|
return !1;
|
|
22306
|
-
const O = 10, C = this.chart.canvas.getBoundingClientRect(), p = s.width || this.width, b = s.height || this.height, k = C.top - b > 0,
|
|
22307
|
-
return w.value = `${
|
|
22306
|
+
const O = 10, C = this.chart.canvas.getBoundingClientRect(), p = s.width || this.width, b = s.height || this.height, k = C.top - b > 0, A = k ? C.top - b - O : C.top + C.height + O, I = C.left > p / 2 - S.x, R = Math.max(O, window.innerWidth - O - p), H = Math.min(R, I ? Math.floor(C.left - p / 2) + S.x : 0 + O);
|
|
22307
|
+
return w.value = `${A}px`, D.value = `${H}px`, {
|
|
22308
22308
|
x: H,
|
|
22309
|
-
y:
|
|
22309
|
+
y: A,
|
|
22310
22310
|
xAlign: "center",
|
|
22311
22311
|
yAlign: k ? "top" : "bottom"
|
|
22312
22312
|
};
|