@kong-ui-public/analytics-chart 5.2.2 → 5.3.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Sg = Object.defineProperty;
|
|
2
2
|
var kg = (n, t, e) => t in n ? Sg(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var C = (n, t, e) => kg(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { computed as W, shallowRef as
|
|
4
|
+
import { computed as W, shallowRef as ro, onMounted as Sr, onBeforeUnmount as ao, watch as ye, inject as es, defineComponent as oe, ref as ot, openBlock as K, createElementBlock as ft, normalizeClass as Yn, normalizeStyle as $n, createElementVNode as dt, toDisplayString as ct, createBlock as $t, unref as st, createCommentVNode as Rt, Fragment as ns, renderList as oo, useCssVars as Dg, toRef as St, reactive as lo, onUnmounted as co, createVNode as Kt, version as Tg, toRaw as Da, nextTick as Cg, h as Ta, isProxy as nd, renderSlot as kr, createTextVNode as Ee, withCtx as Ct, resolveComponent as Se, withKeys as Pg, withModifiers as Og, provide as hl, createSlots as Eg } from "vue";
|
|
5
5
|
import { createI18n as Ag, i18nTComponent as Rg } from "@kong-ui-public/i18n";
|
|
6
6
|
import { DragIcon as Lg, WarningIcon as Ig, MoreIcon as Fg } from "@kong/icons";
|
|
7
7
|
const Ng = "No data in the current time frame", zg = "Once there is traffic, it will display here", Hg = "Not all data is shown in the below report. Reports are currently limited to a maximum of {maxReturned} entities.", Wg = "no-name", Bg = "debug", Yg = "Total", jg = "Jump to Explore", $g = {
|
|
@@ -250,7 +250,7 @@ function en(n) {
|
|
|
250
250
|
function fl(n) {
|
|
251
251
|
return yn(us(n * 100), 0, 100);
|
|
252
252
|
}
|
|
253
|
-
const Pe = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 },
|
|
253
|
+
const Pe = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, Ca = [..."0123456789ABCDEF"], Jg = (n) => Ca[n & 15], tp = (n) => Ca[(n & 240) >> 4] + Ca[n & 15], Is = (n) => (n & 240) >> 4 === (n & 15), ep = (n) => Is(n.r) && Is(n.g) && Is(n.b) && Is(n.a);
|
|
254
254
|
function np(n) {
|
|
255
255
|
var t = n.length, e;
|
|
256
256
|
return n[0] === "#" && (t === 4 || t === 5 ? e = {
|
|
@@ -552,13 +552,13 @@ function bp(n) {
|
|
|
552
552
|
function yp(n) {
|
|
553
553
|
return n && (n.a < 255 ? `rgba(${n.r}, ${n.g}, ${n.b}, ${en(n.a)})` : `rgb(${n.r}, ${n.g}, ${n.b})`);
|
|
554
554
|
}
|
|
555
|
-
const
|
|
555
|
+
const Xr = (n) => n <= 31308e-7 ? n * 12.92 : Math.pow(n, 1 / 2.4) * 1.055 - 0.055, ei = (n) => n <= 0.04045 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
|
|
556
556
|
function xp(n, t, e) {
|
|
557
557
|
const i = ei(en(n.r)), s = ei(en(n.g)), r = ei(en(n.b));
|
|
558
558
|
return {
|
|
559
|
-
r: vn(
|
|
560
|
-
g: vn(
|
|
561
|
-
b: vn(
|
|
559
|
+
r: vn(Xr(i + e * (ei(en(t.r)) - i))),
|
|
560
|
+
g: vn(Xr(s + e * (ei(en(t.g)) - s))),
|
|
561
|
+
b: vn(Xr(r + e * (ei(en(t.b)) - r))),
|
|
562
562
|
a: n.a + e * (t.a - n.a)
|
|
563
563
|
};
|
|
564
564
|
}
|
|
@@ -839,7 +839,7 @@ function ld(n, t, e) {
|
|
|
839
839
|
function qt(n) {
|
|
840
840
|
return n * (ut / 180);
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Dr(n) {
|
|
843
843
|
return n * (180 / ut);
|
|
844
844
|
}
|
|
845
845
|
function _l(n) {
|
|
@@ -1057,7 +1057,7 @@ function yo(n) {
|
|
|
1057
1057
|
function Sl(n) {
|
|
1058
1058
|
return yo(n) ? n : new is(n);
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function Gr(n) {
|
|
1061
1061
|
return yo(n) ? n : new is(n).saturate(0.5).darken(0.1).hexString();
|
|
1062
1062
|
}
|
|
1063
1063
|
const zp = [
|
|
@@ -1191,7 +1191,7 @@ function jp(n, t) {
|
|
|
1191
1191
|
let e = t.length > 3 ? t[2].value - t[1].value : t[1].value - t[0].value;
|
|
1192
1192
|
return Math.abs(e) >= 1 && n !== Math.floor(n) && (e = n - Math.floor(n)), e;
|
|
1193
1193
|
}
|
|
1194
|
-
var
|
|
1194
|
+
var Tr = {
|
|
1195
1195
|
formatters: pd
|
|
1196
1196
|
};
|
|
1197
1197
|
function $p(n) {
|
|
@@ -1238,7 +1238,7 @@ function $p(n) {
|
|
|
1238
1238
|
autoSkip: !0,
|
|
1239
1239
|
autoSkipPadding: 3,
|
|
1240
1240
|
labelOffset: 0,
|
|
1241
|
-
callback:
|
|
1241
|
+
callback: Tr.formatters.values,
|
|
1242
1242
|
minor: {},
|
|
1243
1243
|
major: {},
|
|
1244
1244
|
align: "center",
|
|
@@ -1258,7 +1258,7 @@ function $p(n) {
|
|
|
1258
1258
|
_indexable: (t) => t !== "backdropPadding"
|
|
1259
1259
|
});
|
|
1260
1260
|
}
|
|
1261
|
-
const qn = /* @__PURE__ */ Object.create(null),
|
|
1261
|
+
const qn = /* @__PURE__ */ Object.create(null), Pa = /* @__PURE__ */ Object.create(null);
|
|
1262
1262
|
function Gi(n, t) {
|
|
1263
1263
|
if (!t)
|
|
1264
1264
|
return n;
|
|
@@ -1269,7 +1269,7 @@ function Gi(n, t) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
return n;
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1272
|
+
function Kr(n, t, e) {
|
|
1273
1273
|
return typeof t == "string" ? ss(Gi(n, t), e) : ss(Gi(n, ""), t);
|
|
1274
1274
|
}
|
|
1275
1275
|
class qp {
|
|
@@ -1286,23 +1286,23 @@ class qp {
|
|
|
1286
1286
|
style: "normal",
|
|
1287
1287
|
lineHeight: 1.2,
|
|
1288
1288
|
weight: null
|
|
1289
|
-
}, this.hover = {}, this.hoverBackgroundColor = (i, s) =>
|
|
1289
|
+
}, this.hover = {}, this.hoverBackgroundColor = (i, s) => Gr(s.backgroundColor), this.hoverBorderColor = (i, s) => Gr(s.borderColor), this.hoverColor = (i, s) => Gr(s.color), this.indexAxis = "x", this.interaction = {
|
|
1290
1290
|
mode: "nearest",
|
|
1291
1291
|
intersect: !0,
|
|
1292
1292
|
includeInvisible: !1
|
|
1293
1293
|
}, this.maintainAspectRatio = !0, this.onHover = null, this.onClick = null, this.parsing = !0, this.plugins = {}, this.responsive = !0, this.scale = void 0, this.scales = {}, this.showLine = !0, this.drawActiveElementsOnTop = !0, this.describe(t), this.apply(e);
|
|
1294
1294
|
}
|
|
1295
1295
|
set(t, e) {
|
|
1296
|
-
return
|
|
1296
|
+
return Kr(this, t, e);
|
|
1297
1297
|
}
|
|
1298
1298
|
get(t) {
|
|
1299
1299
|
return Gi(this, t);
|
|
1300
1300
|
}
|
|
1301
1301
|
describe(t, e) {
|
|
1302
|
-
return
|
|
1302
|
+
return Kr(Pa, t, e);
|
|
1303
1303
|
}
|
|
1304
1304
|
override(t, e) {
|
|
1305
|
-
return
|
|
1305
|
+
return Kr(qn, t, e);
|
|
1306
1306
|
}
|
|
1307
1307
|
route(t, e, i, s) {
|
|
1308
1308
|
const r = Gi(this, t), a = Gi(this, i), o = "_" + e;
|
|
@@ -1378,7 +1378,7 @@ function In(n, t, e) {
|
|
|
1378
1378
|
function Dl(n, t) {
|
|
1379
1379
|
!t && !n || (t = t || n.getContext("2d"), t.save(), t.resetTransform(), t.clearRect(0, 0, n.width, n.height), t.restore());
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function Oa(n, t, e, i) {
|
|
1382
1382
|
md(n, t, e, i, null);
|
|
1383
1383
|
}
|
|
1384
1384
|
function md(n, t, e, i, s) {
|
|
@@ -1879,9 +1879,9 @@ function dr(n, t, e) {
|
|
|
1879
1879
|
let i;
|
|
1880
1880
|
return typeof n == "string" ? (i = parseInt(n, 10), n.indexOf("%") !== -1 && (i = i / 100 * t.parentNode[e])) : i = n, i;
|
|
1881
1881
|
}
|
|
1882
|
-
const
|
|
1882
|
+
const Cr = (n) => n.ownerDocument.defaultView.getComputedStyle(n, null);
|
|
1883
1883
|
function _m(n, t) {
|
|
1884
|
-
return
|
|
1884
|
+
return Cr(n).getPropertyValue(t);
|
|
1885
1885
|
}
|
|
1886
1886
|
const wm = [
|
|
1887
1887
|
"top",
|
|
@@ -1917,7 +1917,7 @@ function Mm(n, t) {
|
|
|
1917
1917
|
function bn(n, t) {
|
|
1918
1918
|
if ("native" in n)
|
|
1919
1919
|
return n;
|
|
1920
|
-
const { canvas: e, currentDevicePixelRatio: i } = t, s =
|
|
1920
|
+
const { canvas: e, currentDevicePixelRatio: i } = t, s = Cr(e), r = s.boxSizing === "border-box", a = jn(s, "padding"), o = jn(s, "border", "width"), { x: l, y: c, box: u } = Mm(n, e), d = a.left + (u && o.left), h = a.top + (u && o.top);
|
|
1921
1921
|
let { width: f, height: g } = t;
|
|
1922
1922
|
return r && (f -= a.width + o.width, g -= a.height + o.height), {
|
|
1923
1923
|
x: Math.round((l - d) / f * e.width / i),
|
|
@@ -1931,7 +1931,7 @@ function Sm(n, t, e) {
|
|
|
1931
1931
|
if (!r)
|
|
1932
1932
|
t = n.clientWidth, e = n.clientHeight;
|
|
1933
1933
|
else {
|
|
1934
|
-
const a = r.getBoundingClientRect(), o =
|
|
1934
|
+
const a = r.getBoundingClientRect(), o = Cr(r), l = jn(o, "border", "width"), c = jn(o, "padding");
|
|
1935
1935
|
t = a.width - c.width - l.width, e = a.height - c.height - l.height, i = dr(o.maxWidth, r, "clientWidth"), s = dr(o.maxHeight, r, "clientHeight");
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
@@ -1944,7 +1944,7 @@ function Sm(n, t, e) {
|
|
|
1944
1944
|
}
|
|
1945
1945
|
const Ws = (n) => Math.round(n * 10) / 10;
|
|
1946
1946
|
function km(n, t, e, i) {
|
|
1947
|
-
const s =
|
|
1947
|
+
const s = Cr(n), r = jn(s, "margin"), a = dr(s.maxWidth, n, "clientWidth") || or, o = dr(s.maxHeight, n, "clientHeight") || or, l = Sm(n, t, e);
|
|
1948
1948
|
let { width: c, height: u } = l;
|
|
1949
1949
|
if (s.boxSizing === "content-box") {
|
|
1950
1950
|
const h = jn(s, "border", "width"), f = jn(s, "padding");
|
|
@@ -2532,7 +2532,7 @@ function $m(n, t) {
|
|
|
2532
2532
|
};
|
|
2533
2533
|
return o;
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function Zr(n, t) {
|
|
2536
2536
|
const e = n && n.options.stacked;
|
|
2537
2537
|
return e || e === void 0 && t.stack !== void 0;
|
|
2538
2538
|
}
|
|
@@ -2568,7 +2568,7 @@ function zl(n, t) {
|
|
|
2568
2568
|
v[o] = x;
|
|
2569
2569
|
}
|
|
2570
2570
|
}
|
|
2571
|
-
function
|
|
2571
|
+
function Qr(n, t) {
|
|
2572
2572
|
const e = n.scales;
|
|
2573
2573
|
return Object.keys(e).filter((i) => e[i].axis === t).shift();
|
|
2574
2574
|
}
|
|
@@ -2606,7 +2606,7 @@ function Si(n, t) {
|
|
|
2606
2606
|
}
|
|
2607
2607
|
}
|
|
2608
2608
|
}
|
|
2609
|
-
const
|
|
2609
|
+
const Jr = (n) => n === "reset" || n === "none", Hl = (n, t) => t ? n : Object.assign({}, n), Km = (n, t, e) => n && !t.hidden && t._stacked && {
|
|
2610
2610
|
keys: Pd(e, !0),
|
|
2611
2611
|
values: null
|
|
2612
2612
|
};
|
|
@@ -2616,13 +2616,13 @@ class ze {
|
|
|
2616
2616
|
}
|
|
2617
2617
|
initialize() {
|
|
2618
2618
|
const t = this._cachedMeta;
|
|
2619
|
-
this.configure(), this.linkScales(), t._stacked =
|
|
2619
|
+
this.configure(), this.linkScales(), t._stacked = Zr(t.vScale, t), this.addElements(), this.options.fill && !this.chart.isPluginEnabled("filler") && console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options");
|
|
2620
2620
|
}
|
|
2621
2621
|
updateIndex(t) {
|
|
2622
2622
|
this.index !== t && Si(this._cachedMeta), this.index = t;
|
|
2623
2623
|
}
|
|
2624
2624
|
linkScales() {
|
|
2625
|
-
const t = this.chart, e = this._cachedMeta, i = this.getDataset(), s = (d, h, f, g) => d === "x" ? h : d === "r" ? g : f, r = e.xAxisID = J(i.xAxisID,
|
|
2625
|
+
const t = this.chart, e = this._cachedMeta, i = this.getDataset(), s = (d, h, f, g) => d === "x" ? h : d === "r" ? g : f, r = e.xAxisID = J(i.xAxisID, Qr(t, "x")), a = e.yAxisID = J(i.yAxisID, Qr(t, "y")), o = e.rAxisID = J(i.rAxisID, Qr(t, "r")), l = e.indexAxis, c = e.iAxisID = s(l, r, a, o), u = e.vAxisID = s(l, a, r, o);
|
|
2626
2626
|
e.xScale = this.getScaleForId(r), e.yScale = this.getScaleForId(a), e.rScale = this.getScaleForId(o), e.iScale = this.getScaleForId(c), e.vScale = this.getScaleForId(u);
|
|
2627
2627
|
}
|
|
2628
2628
|
getDataset() {
|
|
@@ -2668,7 +2668,7 @@ class ze {
|
|
|
2668
2668
|
let s = !1;
|
|
2669
2669
|
this._dataCheck();
|
|
2670
2670
|
const r = e._stacked;
|
|
2671
|
-
e._stacked =
|
|
2671
|
+
e._stacked = Zr(e.vScale, e), e.stack !== i.stack && (s = !0, Si(e), e.stack = i.stack), this._resyncElements(t), (s || r !== e._stacked) && (zl(this, e._parsed), e._stacked = Zr(e.vScale, e));
|
|
2672
2672
|
}
|
|
2673
2673
|
configure() {
|
|
2674
2674
|
const t = this.chart.config, e = t.datasetScopeKeys(this._type), i = t.getOptionScopes(this.getDataset(), e, !0);
|
|
@@ -2846,7 +2846,7 @@ class ze {
|
|
|
2846
2846
|
return this._sharedOptions || (this._sharedOptions = Object.assign({}, t));
|
|
2847
2847
|
}
|
|
2848
2848
|
includeOptions(t, e) {
|
|
2849
|
-
return !e ||
|
|
2849
|
+
return !e || Jr(t) || this.chart._animationsDisabled;
|
|
2850
2850
|
}
|
|
2851
2851
|
_getSharedOptions(t, e) {
|
|
2852
2852
|
const i = this.resolveDataElementOptions(t, e), s = this._sharedOptions, r = this.getSharedOptions(i), a = this.includeOptions(e, r) || r !== s;
|
|
@@ -2856,10 +2856,10 @@ class ze {
|
|
|
2856
2856
|
};
|
|
2857
2857
|
}
|
|
2858
2858
|
updateElement(t, e, i, s) {
|
|
2859
|
-
|
|
2859
|
+
Jr(s) ? Object.assign(t, i) : this._resolveAnimations(e, s).update(t, i);
|
|
2860
2860
|
}
|
|
2861
2861
|
updateSharedOptions(t, e, i) {
|
|
2862
|
-
t && !
|
|
2862
|
+
t && !Jr(e) && this._resolveAnimations(void 0, e).update(t, i);
|
|
2863
2863
|
}
|
|
2864
2864
|
_setStyle(t, e, i, s) {
|
|
2865
2865
|
t.active = s;
|
|
@@ -3032,7 +3032,7 @@ function Wl(n, t, e, i) {
|
|
|
3032
3032
|
h = t[c], d = {}, d[s.axis] = o || s.parse(a[c], c), l.push(Od(h, d, r, c));
|
|
3033
3033
|
return l;
|
|
3034
3034
|
}
|
|
3035
|
-
function
|
|
3035
|
+
function ta(n) {
|
|
3036
3036
|
return n && n.barStart !== void 0 && n.barEnd !== void 0;
|
|
3037
3037
|
}
|
|
3038
3038
|
function nb(n, t, e) {
|
|
@@ -3102,7 +3102,7 @@ class Ki extends ze {
|
|
|
3102
3102
|
return 0;
|
|
3103
3103
|
}
|
|
3104
3104
|
getLabelAndValue(t) {
|
|
3105
|
-
const e = this._cachedMeta, { iScale: i, vScale: s } = e, r = this.getParsed(t), a = r._custom, o =
|
|
3105
|
+
const e = this._cachedMeta, { iScale: i, vScale: s } = e, r = this.getParsed(t), a = r._custom, o = ta(a) ? "[" + a.start + ", " + a.end + "]" : "" + s.getLabelForValue(r[s.axis]);
|
|
3106
3106
|
return {
|
|
3107
3107
|
label: "" + i.getLabelForValue(r[i.axis]),
|
|
3108
3108
|
value: o
|
|
@@ -3126,7 +3126,7 @@ class Ki extends ze {
|
|
|
3126
3126
|
} : this._calculateBarValuePixels(f), x = this._calculateBarIndexPixels(f, u), _ = (g._stacks || {})[o.axis], v = {
|
|
3127
3127
|
horizontal: c,
|
|
3128
3128
|
base: b.base,
|
|
3129
|
-
enableBorderRadius: !_ ||
|
|
3129
|
+
enableBorderRadius: !_ || ta(g._custom) || a === _._top || a === _._bottom,
|
|
3130
3130
|
x: c ? b.head : x.center,
|
|
3131
3131
|
y: c ? x.center : b.head,
|
|
3132
3132
|
height: c ? x.size : Math.abs(b.size),
|
|
@@ -3173,7 +3173,7 @@ class Ki extends ze {
|
|
|
3173
3173
|
};
|
|
3174
3174
|
}
|
|
3175
3175
|
_calculateBarValuePixels(t) {
|
|
3176
|
-
const { _cachedMeta: { vScale: e, _stacked: i, index: s }, options: { base: r, minBarLength: a } } = this, o = r || 0, l = this.getParsed(t), c = l._custom, u =
|
|
3176
|
+
const { _cachedMeta: { vScale: e, _stacked: i, index: s }, options: { base: r, minBarLength: a } } = this, o = r || 0, l = this.getParsed(t), c = l._custom, u = ta(c);
|
|
3177
3177
|
let d = l[e.axis], h = 0, f = i ? this.applyStack(e, l, i) : d, g, b;
|
|
3178
3178
|
f !== d && (h = f - d, f = d), u && (d = c.barStart, f = c.barEnd - c.barStart, d !== 0 && $e(d) !== $e(c.barEnd) && (h = 0), h += d);
|
|
3179
3179
|
const x = !tt(r) && !u ? r : h;
|
|
@@ -3723,9 +3723,9 @@ C(Qi, "id", "polarArea"), C(Qi, "defaults", {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
}
|
|
3725
3725
|
});
|
|
3726
|
-
class
|
|
3726
|
+
class Ea extends an {
|
|
3727
3727
|
}
|
|
3728
|
-
C(
|
|
3728
|
+
C(Ea, "id", "pie"), C(Ea, "defaults", {
|
|
3729
3729
|
cutout: 0,
|
|
3730
3730
|
rotation: 0,
|
|
3731
3731
|
circumference: 360,
|
|
@@ -3863,7 +3863,7 @@ var lb = /* @__PURE__ */ Object.freeze({
|
|
|
3863
3863
|
BubbleController: Zs,
|
|
3864
3864
|
DoughnutController: an,
|
|
3865
3865
|
LineController: Zi,
|
|
3866
|
-
PieController:
|
|
3866
|
+
PieController: Ea,
|
|
3867
3867
|
PolarAreaController: Qi,
|
|
3868
3868
|
RadarController: Qs,
|
|
3869
3869
|
ScatterController: Js
|
|
@@ -3956,7 +3956,7 @@ function ub(n) {
|
|
|
3956
3956
|
return Math.sqrt(Math.pow(r, 2) + Math.pow(a, 2));
|
|
3957
3957
|
};
|
|
3958
3958
|
}
|
|
3959
|
-
function
|
|
3959
|
+
function ea(n, t, e, i, s) {
|
|
3960
3960
|
const r = [];
|
|
3961
3961
|
return !s && !n.isPointInArea(t) || gs(n, e, t, function(o, l, c) {
|
|
3962
3962
|
!s && !rn(o, n.chartArea, 0) || o.inRange(t.x, t.y, i) && r.push({
|
|
@@ -4010,7 +4010,7 @@ function hb(n, t, e, i, s, r) {
|
|
|
4010
4010
|
}
|
|
4011
4011
|
return gs(n, e, t, c), a;
|
|
4012
4012
|
}
|
|
4013
|
-
function
|
|
4013
|
+
function na(n, t, e, i, s, r) {
|
|
4014
4014
|
return !r && !n.isPointInArea(t) ? [] : e === "r" && !i ? db(n, t, e, s) : hb(n, t, e, i, s, r);
|
|
4015
4015
|
}
|
|
4016
4016
|
function jl(n, t, e, i, s) {
|
|
@@ -4024,11 +4024,11 @@ function jl(n, t, e, i, s) {
|
|
|
4024
4024
|
}), o = o || l.inRange(t.x, t.y, s));
|
|
4025
4025
|
}), i && !o ? [] : r;
|
|
4026
4026
|
}
|
|
4027
|
-
var
|
|
4027
|
+
var Aa = {
|
|
4028
4028
|
evaluateInteractionItems: gs,
|
|
4029
4029
|
modes: {
|
|
4030
4030
|
index(n, t, e, i) {
|
|
4031
|
-
const s = bn(t, n), r = e.axis || "x", a = e.includeInvisible || !1, o = e.intersect ?
|
|
4031
|
+
const s = bn(t, n), r = e.axis || "x", a = e.includeInvisible || !1, o = e.intersect ? ea(n, s, r, i, a) : na(n, s, r, !1, i, a), l = [];
|
|
4032
4032
|
return o.length ? (n.getSortedVisibleDatasetMetas().forEach((c) => {
|
|
4033
4033
|
const u = o[0].index, d = c.data[u];
|
|
4034
4034
|
d && !d.skip && l.push({
|
|
@@ -4040,7 +4040,7 @@ var Ea = {
|
|
|
4040
4040
|
},
|
|
4041
4041
|
dataset(n, t, e, i) {
|
|
4042
4042
|
const s = bn(t, n), r = e.axis || "xy", a = e.includeInvisible || !1;
|
|
4043
|
-
let o = e.intersect ?
|
|
4043
|
+
let o = e.intersect ? ea(n, s, r, i, a) : na(n, s, r, !1, i, a);
|
|
4044
4044
|
if (o.length > 0) {
|
|
4045
4045
|
const l = o[0].datasetIndex, c = n.getDatasetMeta(l).data;
|
|
4046
4046
|
o = [];
|
|
@@ -4055,11 +4055,11 @@ var Ea = {
|
|
|
4055
4055
|
},
|
|
4056
4056
|
point(n, t, e, i) {
|
|
4057
4057
|
const s = bn(t, n), r = e.axis || "xy", a = e.includeInvisible || !1;
|
|
4058
|
-
return
|
|
4058
|
+
return ea(n, s, r, i, a);
|
|
4059
4059
|
},
|
|
4060
4060
|
nearest(n, t, e, i) {
|
|
4061
4061
|
const s = bn(t, n), r = e.axis || "xy", a = e.includeInvisible || !1;
|
|
4062
|
-
return
|
|
4062
|
+
return na(n, s, r, e.intersect, i, a);
|
|
4063
4063
|
},
|
|
4064
4064
|
x(n, t, e, i) {
|
|
4065
4065
|
const s = bn(t, n);
|
|
@@ -4434,7 +4434,7 @@ function Ob(n, t, e) {
|
|
|
4434
4434
|
});
|
|
4435
4435
|
return a.observe(s), Cb(n, r), a;
|
|
4436
4436
|
}
|
|
4437
|
-
function
|
|
4437
|
+
function ia(n, t, e) {
|
|
4438
4438
|
e && e.disconnect(), t === "resize" && Pb(n);
|
|
4439
4439
|
}
|
|
4440
4440
|
function Eb(n, t, e) {
|
|
@@ -4479,9 +4479,9 @@ class Ab extends Ld {
|
|
|
4479
4479
|
if (!s)
|
|
4480
4480
|
return;
|
|
4481
4481
|
({
|
|
4482
|
-
attach:
|
|
4483
|
-
detach:
|
|
4484
|
-
resize:
|
|
4482
|
+
attach: ia,
|
|
4483
|
+
detach: ia,
|
|
4484
|
+
resize: ia
|
|
4485
4485
|
}[e] || Sb)(t, e, s), i[e] = void 0;
|
|
4486
4486
|
}
|
|
4487
4487
|
getDevicePixelRatio() {
|
|
@@ -4818,7 +4818,7 @@ class Xn extends Qt {
|
|
|
4818
4818
|
return;
|
|
4819
4819
|
}
|
|
4820
4820
|
const u = this._getLabelSizes(), d = u.widest.width, h = u.highest.height, f = Zt(this.chart.width - d, 0, this.maxWidth);
|
|
4821
|
-
o = t.offset ? this.maxWidth / i : f / (i - 1), d + 6 > o && (o = f / (i - (t.offset ? 0.5 : 1)), l = this.maxHeight - Ti(t.grid) - e.padding - Ql(t.title, this.chart.options.font), c = Math.sqrt(d * d + h * h), a =
|
|
4821
|
+
o = t.offset ? this.maxWidth / i : f / (i - 1), d + 6 > o && (o = f / (i - (t.offset ? 0.5 : 1)), l = this.maxHeight - Ti(t.grid) - e.padding - Ql(t.title, this.chart.options.font), c = Math.sqrt(d * d + h * h), a = Dr(Math.min(Math.asin(Zt((u.highest.height + 6) / o, -1, 1)), Math.asin(Zt(l / c, -1, 1)) - Math.asin(Zt(h / c, -1, 1)))), a = Math.max(s, Math.min(r, a))), this.labelRotation = a;
|
|
4822
4822
|
}
|
|
4823
4823
|
afterCalculateLabelRotation() {
|
|
4824
4824
|
wt(this.options.afterCalculateLabelRotation, [
|
|
@@ -5482,7 +5482,7 @@ function ey(n, { plugin: t, local: e }, i, s) {
|
|
|
5482
5482
|
allKeys: !0
|
|
5483
5483
|
});
|
|
5484
5484
|
}
|
|
5485
|
-
function
|
|
5485
|
+
function Ra(n, t) {
|
|
5486
5486
|
const e = Ot.datasets[n] || {};
|
|
5487
5487
|
return ((t.datasets || {})[n] || {}).indexAxis || t.indexAxis || e.indexAxis || "x";
|
|
5488
5488
|
}
|
|
@@ -5503,7 +5503,7 @@ function sy(n) {
|
|
|
5503
5503
|
if (n === "left" || n === "right")
|
|
5504
5504
|
return "y";
|
|
5505
5505
|
}
|
|
5506
|
-
function
|
|
5506
|
+
function La(n, ...t) {
|
|
5507
5507
|
if (Jl(n))
|
|
5508
5508
|
return n;
|
|
5509
5509
|
for (const e of t) {
|
|
@@ -5530,14 +5530,14 @@ function ry(n, t) {
|
|
|
5530
5530
|
function ay(n, t) {
|
|
5531
5531
|
const e = qn[n.type] || {
|
|
5532
5532
|
scales: {}
|
|
5533
|
-
}, i = t.scales || {}, s =
|
|
5533
|
+
}, i = t.scales || {}, s = Ra(n.type, t), r = /* @__PURE__ */ Object.create(null);
|
|
5534
5534
|
return Object.keys(i).forEach((a) => {
|
|
5535
5535
|
const o = i[a];
|
|
5536
5536
|
if (!rt(o))
|
|
5537
5537
|
return console.error(`Invalid scale configuration for scale: ${a}`);
|
|
5538
5538
|
if (o._proxy)
|
|
5539
5539
|
return console.warn(`Ignoring resolver passed as options for scale: ${a}`);
|
|
5540
|
-
const l =
|
|
5540
|
+
const l = La(a, o, ry(a, n), Ot.scales[o.type]), c = iy(l, s), u = e.scales || {};
|
|
5541
5541
|
r[a] = Ui(/* @__PURE__ */ Object.create(null), [
|
|
5542
5542
|
{
|
|
5543
5543
|
axis: l
|
|
@@ -5547,7 +5547,7 @@ function ay(n, t) {
|
|
|
5547
5547
|
u[c]
|
|
5548
5548
|
]);
|
|
5549
5549
|
}), n.data.datasets.forEach((a) => {
|
|
5550
|
-
const o = a.type || n.type, l = a.indexAxis ||
|
|
5550
|
+
const o = a.type || n.type, l = a.indexAxis || Ra(o, t), u = (qn[o] || {}).scales || {};
|
|
5551
5551
|
Object.keys(u).forEach((d) => {
|
|
5552
5552
|
const h = ny(d, l), f = a[h + "AxisID"] || h;
|
|
5553
5553
|
r[f] = r[f] || /* @__PURE__ */ Object.create(null), Ui(r[f], [
|
|
@@ -5670,7 +5670,7 @@ class ly {
|
|
|
5670
5670
|
return o;
|
|
5671
5671
|
const l = /* @__PURE__ */ new Set();
|
|
5672
5672
|
e.forEach((u) => {
|
|
5673
|
-
t && (l.add(t), u.forEach((d) => Ci(l, t, d))), u.forEach((d) => Ci(l, s, d)), u.forEach((d) => Ci(l, qn[r] || {}, d)), u.forEach((d) => Ci(l, Ot, d)), u.forEach((d) => Ci(l,
|
|
5673
|
+
t && (l.add(t), u.forEach((d) => Ci(l, t, d))), u.forEach((d) => Ci(l, s, d)), u.forEach((d) => Ci(l, qn[r] || {}, d)), u.forEach((d) => Ci(l, Ot, d)), u.forEach((d) => Ci(l, Pa, d));
|
|
5674
5674
|
});
|
|
5675
5675
|
const c = Array.from(l);
|
|
5676
5676
|
return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), Hd.has(e) && a.set(e, c), c;
|
|
@@ -5685,7 +5685,7 @@ class ly {
|
|
|
5685
5685
|
type: e
|
|
5686
5686
|
},
|
|
5687
5687
|
Ot,
|
|
5688
|
-
|
|
5688
|
+
Pa
|
|
5689
5689
|
];
|
|
5690
5690
|
}
|
|
5691
5691
|
resolveNamedOptions(t, e, i, s = [
|
|
@@ -5865,14 +5865,14 @@ let Ae = (pn = class {
|
|
|
5865
5865
|
const t = this.options, e = t.scales, i = this.scales, s = Object.keys(i).reduce((a, o) => (a[o] = !1, a), {});
|
|
5866
5866
|
let r = [];
|
|
5867
5867
|
e && (r = r.concat(Object.keys(e).map((a) => {
|
|
5868
|
-
const o = e[a], l =
|
|
5868
|
+
const o = e[a], l = La(a, o), c = l === "r", u = l === "x";
|
|
5869
5869
|
return {
|
|
5870
5870
|
options: o,
|
|
5871
5871
|
dposition: c ? "chartArea" : u ? "bottom" : "left",
|
|
5872
5872
|
dtype: c ? "radialLinear" : u ? "category" : "linear"
|
|
5873
5873
|
};
|
|
5874
5874
|
}))), vt(r, (a) => {
|
|
5875
|
-
const o = a.options, l = o.id, c =
|
|
5875
|
+
const o = a.options, l = o.id, c = La(l, o), u = J(o.type, a.dtype);
|
|
5876
5876
|
(o.position === void 0 || ic(o.position, c) !== ic(a.dposition)) && (o.position = a.dposition), s[l] = !0;
|
|
5877
5877
|
let d = null;
|
|
5878
5878
|
if (l in i && i[l].type === u)
|
|
@@ -5915,7 +5915,7 @@ let Ae = (pn = class {
|
|
|
5915
5915
|
const r = e[i];
|
|
5916
5916
|
let a = this.getDatasetMeta(i);
|
|
5917
5917
|
const o = r.type || this.config.type;
|
|
5918
|
-
if (a.type && a.type !== o && (this._destroyDatasetMeta(i), a = this.getDatasetMeta(i)), a.type = o, a.indexAxis = r.indexAxis ||
|
|
5918
|
+
if (a.type && a.type !== o && (this._destroyDatasetMeta(i), a = this.getDatasetMeta(i)), a.type = o, a.indexAxis = r.indexAxis || Ra(o, this.options), a.order = r.order || 0, a.index = i, a.label = "" + r.label, a.visible = this.isDatasetVisible(i), a.controller)
|
|
5919
5919
|
a.controller.updateIndex(i), a.controller.linkScales();
|
|
5920
5920
|
else {
|
|
5921
5921
|
const l = Be.getController(o), { datasetElementType: c, dataElementType: u } = Ot.datasets[o];
|
|
@@ -6091,7 +6091,7 @@ let Ae = (pn = class {
|
|
|
6091
6091
|
return rn(t, this.chartArea, this._minPadding);
|
|
6092
6092
|
}
|
|
6093
6093
|
getElementsAtEventForMode(t, e, i, s) {
|
|
6094
|
-
const r =
|
|
6094
|
+
const r = Aa.modes[e];
|
|
6095
6095
|
return typeof r == "function" ? r(this, t, i, s) : [];
|
|
6096
6096
|
}
|
|
6097
6097
|
getDatasetMeta(t) {
|
|
@@ -6483,7 +6483,7 @@ function ky(n, t, e, i) {
|
|
|
6483
6483
|
}
|
|
6484
6484
|
M();
|
|
6485
6485
|
}
|
|
6486
|
-
function
|
|
6486
|
+
function Ia(n) {
|
|
6487
6487
|
const t = n.options, e = t.borderDash && t.borderDash.length;
|
|
6488
6488
|
return !n._decimated && !n._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? ky : Sy;
|
|
6489
6489
|
}
|
|
@@ -6495,7 +6495,7 @@ function Ty(n, t, e, i) {
|
|
|
6495
6495
|
s || (s = t._path = new Path2D(), t.path(s, e, i) && s.closePath()), Bd(n, t.options), n.stroke(s);
|
|
6496
6496
|
}
|
|
6497
6497
|
function Cy(n, t, e, i) {
|
|
6498
|
-
const { segments: s, options: r } = t, a =
|
|
6498
|
+
const { segments: s, options: r } = t, a = Ia(t);
|
|
6499
6499
|
for (const o of s)
|
|
6500
6500
|
Bd(n, r, o.style), n.beginPath(), a(n, t, o, {
|
|
6501
6501
|
start: e,
|
|
@@ -6556,10 +6556,10 @@ class _n extends Qt {
|
|
|
6556
6556
|
return o.length === 1 ? o[0] : o;
|
|
6557
6557
|
}
|
|
6558
6558
|
pathSegment(t, e, i) {
|
|
6559
|
-
return
|
|
6559
|
+
return Ia(this)(t, this, e, i);
|
|
6560
6560
|
}
|
|
6561
6561
|
path(t, e, i) {
|
|
6562
|
-
const s = this.segments, r =
|
|
6562
|
+
const s = this.segments, r = Ia(this);
|
|
6563
6563
|
let a = this._loop;
|
|
6564
6564
|
e = e || 0, i = i || this.points.length - e;
|
|
6565
6565
|
for (const o of s)
|
|
@@ -6639,7 +6639,7 @@ class nr extends Qt {
|
|
|
6639
6639
|
}
|
|
6640
6640
|
draw(e, i) {
|
|
6641
6641
|
const s = this.options;
|
|
6642
|
-
this.skip || s.radius < 0.1 || !rn(this, i, this.size(s) / 2) || (e.strokeStyle = s.borderColor, e.lineWidth = s.borderWidth, e.fillStyle = s.backgroundColor,
|
|
6642
|
+
this.skip || s.radius < 0.1 || !rn(this, i, this.size(s) / 2) || (e.strokeStyle = s.borderColor, e.lineWidth = s.borderWidth, e.fillStyle = s.backgroundColor, Oa(e, s, this.x, this.y));
|
|
6643
6643
|
}
|
|
6644
6644
|
getRange() {
|
|
6645
6645
|
const e = this.options || {};
|
|
@@ -6727,7 +6727,7 @@ function Ry(n) {
|
|
|
6727
6727
|
}
|
|
6728
6728
|
};
|
|
6729
6729
|
}
|
|
6730
|
-
function
|
|
6730
|
+
function sa(n, t, e, i) {
|
|
6731
6731
|
const s = t === null, r = e === null, o = n && !(s && r) && jd(n, i);
|
|
6732
6732
|
return o && (s || nn(t, o.left, o.right)) && (r || nn(e, o.top, o.bottom));
|
|
6733
6733
|
}
|
|
@@ -6737,7 +6737,7 @@ function Ly(n) {
|
|
|
6737
6737
|
function Iy(n, t) {
|
|
6738
6738
|
n.rect(t.x, t.y, t.w, t.h);
|
|
6739
6739
|
}
|
|
6740
|
-
function
|
|
6740
|
+
function ra(n, t, e = {}) {
|
|
6741
6741
|
const i = n.x !== e.x ? -t : 0, s = n.y !== e.y ? -t : 0, r = (n.x + n.w !== e.x + e.w ? t : 0) - i, a = (n.y + n.h !== e.y + e.h ? t : 0) - s;
|
|
6742
6742
|
return {
|
|
6743
6743
|
x: n.x + i,
|
|
@@ -6753,16 +6753,16 @@ class ir extends Qt {
|
|
|
6753
6753
|
}
|
|
6754
6754
|
draw(t) {
|
|
6755
6755
|
const { inflateAmount: e, options: { borderColor: i, backgroundColor: s } } = this, { inner: r, outer: a } = Ry(this), o = Ly(a.radius) ? hi : Iy;
|
|
6756
|
-
t.save(), (a.w !== r.w || a.h !== r.h) && (t.beginPath(), o(t,
|
|
6756
|
+
t.save(), (a.w !== r.w || a.h !== r.h) && (t.beginPath(), o(t, ra(a, e, r)), t.clip(), o(t, ra(r, -e, a)), t.fillStyle = i, t.fill("evenodd")), t.beginPath(), o(t, ra(r, e)), t.fillStyle = s, t.fill(), t.restore();
|
|
6757
6757
|
}
|
|
6758
6758
|
inRange(t, e, i) {
|
|
6759
|
-
return
|
|
6759
|
+
return sa(this, t, e, i);
|
|
6760
6760
|
}
|
|
6761
6761
|
inXRange(t, e) {
|
|
6762
|
-
return
|
|
6762
|
+
return sa(this, t, null, e);
|
|
6763
6763
|
}
|
|
6764
6764
|
inYRange(t, e) {
|
|
6765
|
-
return
|
|
6765
|
+
return sa(this, null, t, e);
|
|
6766
6766
|
}
|
|
6767
6767
|
getCenterPoint(t) {
|
|
6768
6768
|
const { x: e, y: i, base: s, horizontal: r } = this.getProps([
|
|
@@ -6797,7 +6797,7 @@ var Fy = /* @__PURE__ */ Object.freeze({
|
|
|
6797
6797
|
LineElement: _n,
|
|
6798
6798
|
PointElement: nr
|
|
6799
6799
|
});
|
|
6800
|
-
const
|
|
6800
|
+
const Fa = [
|
|
6801
6801
|
"rgb(54, 162, 235)",
|
|
6802
6802
|
"rgb(255, 99, 132)",
|
|
6803
6803
|
"rgb(255, 159, 64)",
|
|
@@ -6806,9 +6806,9 @@ const Ia = [
|
|
|
6806
6806
|
"rgb(153, 102, 255)",
|
|
6807
6807
|
"rgb(201, 203, 207)"
|
|
6808
6808
|
// grey
|
|
6809
|
-
], cc = /* @__PURE__ */
|
|
6809
|
+
], cc = /* @__PURE__ */ Fa.map((n) => n.replace("rgb(", "rgba(").replace(")", ", 0.5)"));
|
|
6810
6810
|
function $d(n) {
|
|
6811
|
-
return
|
|
6811
|
+
return Fa[n % Fa.length];
|
|
6812
6812
|
}
|
|
6813
6813
|
function qd(n) {
|
|
6814
6814
|
return cc[n % cc.length];
|
|
@@ -6990,7 +6990,7 @@ function Xy(n, t, e) {
|
|
|
6990
6990
|
for (const o of i) {
|
|
6991
6991
|
let { start: l, end: c } = o;
|
|
6992
6992
|
c = To(l, c, s);
|
|
6993
|
-
const u =
|
|
6993
|
+
const u = Na(e, s[l], s[c], o.loop);
|
|
6994
6994
|
if (!t.segments) {
|
|
6995
6995
|
a.push({
|
|
6996
6996
|
source: o,
|
|
@@ -7002,7 +7002,7 @@ function Xy(n, t, e) {
|
|
|
7002
7002
|
}
|
|
7003
7003
|
const d = Cd(t, u);
|
|
7004
7004
|
for (const h of d) {
|
|
7005
|
-
const f =
|
|
7005
|
+
const f = Na(e, r[h.start], r[h.end], h.loop), g = Td(o, s, f);
|
|
7006
7006
|
for (const b of g)
|
|
7007
7007
|
a.push({
|
|
7008
7008
|
source: b,
|
|
@@ -7018,7 +7018,7 @@ function Xy(n, t, e) {
|
|
|
7018
7018
|
}
|
|
7019
7019
|
return a;
|
|
7020
7020
|
}
|
|
7021
|
-
function
|
|
7021
|
+
function Na(n, t, e, i) {
|
|
7022
7022
|
if (i)
|
|
7023
7023
|
return;
|
|
7024
7024
|
let s = t[n], r = e[n];
|
|
@@ -7242,7 +7242,7 @@ function u0(n) {
|
|
|
7242
7242
|
o.push(t.getPointPositionForValue(l, a));
|
|
7243
7243
|
return o;
|
|
7244
7244
|
}
|
|
7245
|
-
function
|
|
7245
|
+
function aa(n, t, e) {
|
|
7246
7246
|
const i = a0(t), { line: s, scale: r, axis: a } = t, o = s.options, l = o.fill, c = o.backgroundColor, { above: u = c, below: d = c } = l || {};
|
|
7247
7247
|
i && s.points.length && (hs(n, e), d0(n, {
|
|
7248
7248
|
line: s,
|
|
@@ -7286,7 +7286,7 @@ function pc(n, t) {
|
|
|
7286
7286
|
const { line: e, target: i, property: s, color: r, scale: a } = t, o = Xy(e, i, s);
|
|
7287
7287
|
for (const { source: l, target: c, start: u, end: d } of o) {
|
|
7288
7288
|
const { style: { backgroundColor: h = r } = {} } = l, f = i !== !0;
|
|
7289
|
-
n.save(), n.fillStyle = h, h0(n, a, f &&
|
|
7289
|
+
n.save(), n.fillStyle = h, h0(n, a, f && Na(s, u, d)), n.beginPath();
|
|
7290
7290
|
const g = !!e.pathSegment(n, l);
|
|
7291
7291
|
let b;
|
|
7292
7292
|
if (f) {
|
|
@@ -7330,7 +7330,7 @@ var f0 = {
|
|
|
7330
7330
|
const i = e.drawTime === "beforeDraw", s = n.getSortedVisibleDatasetMetas(), r = n.chartArea;
|
|
7331
7331
|
for (let a = s.length - 1; a >= 0; --a) {
|
|
7332
7332
|
const o = s[a].$filler;
|
|
7333
|
-
o && (o.line.updateControlPoints(r, o.axis), i && o.fill &&
|
|
7333
|
+
o && (o.line.updateControlPoints(r, o.axis), i && o.fill && aa(n.ctx, o, r));
|
|
7334
7334
|
}
|
|
7335
7335
|
},
|
|
7336
7336
|
beforeDatasetsDraw(n, t, e) {
|
|
@@ -7339,12 +7339,12 @@ var f0 = {
|
|
|
7339
7339
|
const i = n.getSortedVisibleDatasetMetas();
|
|
7340
7340
|
for (let s = i.length - 1; s >= 0; --s) {
|
|
7341
7341
|
const r = i[s].$filler;
|
|
7342
|
-
fc(r) &&
|
|
7342
|
+
fc(r) && aa(n.ctx, r, n.chartArea);
|
|
7343
7343
|
}
|
|
7344
7344
|
},
|
|
7345
7345
|
beforeDatasetDraw(n, t, e) {
|
|
7346
7346
|
const i = t.meta.$filler;
|
|
7347
|
-
!fc(i) || e.drawTime !== "beforeDatasetDraw" ||
|
|
7347
|
+
!fc(i) || e.drawTime !== "beforeDatasetDraw" || aa(n.ctx, i, n.chartArea);
|
|
7348
7348
|
},
|
|
7349
7349
|
defaults: {
|
|
7350
7350
|
propagate: !0,
|
|
@@ -7984,7 +7984,7 @@ function pe(n, t, e, i) {
|
|
|
7984
7984
|
const s = n[t].call(e, i);
|
|
7985
7985
|
return typeof s > "u" ? Kd[t].call(e, i) : s;
|
|
7986
7986
|
}
|
|
7987
|
-
class
|
|
7987
|
+
class za extends Qt {
|
|
7988
7988
|
constructor(t) {
|
|
7989
7989
|
super(), this.opacity = 0, this._active = [], this._eventPosition = void 0, this._size = void 0, this._cachedAnimations = void 0, this._tooltipItems = [], this.$animations = void 0, this.$context = void 0, this.chart = t.chart, this.options = t.options, this.dataPoints = void 0, this.title = void 0, this.beforeBody = void 0, this.body = void 0, this.afterBody = void 0, this.footer = void 0, this.xAlign = void 0, this.yAlign = void 0, this.x = void 0, this.y = void 0, this.height = void 0, this.width = void 0, this.caretX = void 0, this.caretY = void 0, this.labelColors = void 0, this.labelPointStyles = void 0, this.labelTextColors = void 0;
|
|
7990
7990
|
}
|
|
@@ -8099,7 +8099,7 @@ class Na extends Qt {
|
|
|
8099
8099
|
rotation: o.rotation,
|
|
8100
8100
|
borderWidth: 1
|
|
8101
8101
|
}, x = s.leftForLtr(h, c) + c / 2, _ = g + l / 2;
|
|
8102
|
-
t.strokeStyle = r.multiKeyBackground, t.fillStyle = r.multiKeyBackground,
|
|
8102
|
+
t.strokeStyle = r.multiKeyBackground, t.fillStyle = r.multiKeyBackground, Oa(t, b, x, _), t.strokeStyle = a.borderColor, t.fillStyle = a.backgroundColor, Oa(t, b, x, _);
|
|
8103
8103
|
} else {
|
|
8104
8104
|
t.lineWidth = rt(a.borderWidth) ? Math.max(...Object.values(a.borderWidth)) : a.borderWidth || 1, t.strokeStyle = a.borderColor, t.setLineDash(a.borderDash || []), t.lineDashOffset = a.borderDashOffset || 0;
|
|
8105
8105
|
const b = s.leftForLtr(h, c), x = s.leftForLtr(s.xPlus(h, 1), c - 2), _ = Mn(a.borderRadius);
|
|
@@ -8216,13 +8216,13 @@ class Na extends Qt {
|
|
|
8216
8216
|
return a !== !1 && (i !== a.x || s !== a.y);
|
|
8217
8217
|
}
|
|
8218
8218
|
}
|
|
8219
|
-
C(
|
|
8220
|
-
var
|
|
8219
|
+
C(za, "positioners", Yi);
|
|
8220
|
+
var Pr = {
|
|
8221
8221
|
id: "tooltip",
|
|
8222
|
-
_element:
|
|
8222
|
+
_element: za,
|
|
8223
8223
|
positioners: Yi,
|
|
8224
8224
|
afterInit(n, t, e) {
|
|
8225
|
-
e && (n.tooltip = new
|
|
8225
|
+
e && (n.tooltip = new za({
|
|
8226
8226
|
chart: n,
|
|
8227
8227
|
options: e
|
|
8228
8228
|
}));
|
|
@@ -8340,7 +8340,7 @@ var Cr = {
|
|
|
8340
8340
|
Legend: x0,
|
|
8341
8341
|
SubTitle: v0,
|
|
8342
8342
|
Title: w0,
|
|
8343
|
-
Tooltip:
|
|
8343
|
+
Tooltip: Pr
|
|
8344
8344
|
});
|
|
8345
8345
|
const E0 = (n, t, e, i) => (typeof t == "string" ? (e = n.push(t) - 1, i.unshift({
|
|
8346
8346
|
index: e,
|
|
@@ -8358,7 +8358,7 @@ function Sc(n) {
|
|
|
8358
8358
|
const t = this.getLabels();
|
|
8359
8359
|
return n >= 0 && n < t.length ? t[n] : n;
|
|
8360
8360
|
}
|
|
8361
|
-
class
|
|
8361
|
+
class Ha extends Xn {
|
|
8362
8362
|
constructor(t) {
|
|
8363
8363
|
super(t), this._startValue = void 0, this._valueRange = 0, this._addedLabels = [];
|
|
8364
8364
|
}
|
|
@@ -8413,7 +8413,7 @@ class za extends Xn {
|
|
|
8413
8413
|
return this.bottom;
|
|
8414
8414
|
}
|
|
8415
8415
|
}
|
|
8416
|
-
C(
|
|
8416
|
+
C(Ha, "id", "category"), C(Ha, "defaults", {
|
|
8417
8417
|
ticks: {
|
|
8418
8418
|
callback: Sc
|
|
8419
8419
|
}
|
|
@@ -8515,7 +8515,7 @@ class gr extends Xn {
|
|
|
8515
8515
|
return ds(t, this.chart.options.locale, this.options.ticks.format);
|
|
8516
8516
|
}
|
|
8517
8517
|
}
|
|
8518
|
-
class
|
|
8518
|
+
class Wa extends gr {
|
|
8519
8519
|
determineDataLimits() {
|
|
8520
8520
|
const { min: t, max: e } = this.getMinMax(!0);
|
|
8521
8521
|
this.min = Lt(t) ? t : 0, this.max = Lt(e) ? e : 1, this.handleTickRangeOptions();
|
|
@@ -8531,9 +8531,9 @@ class Ha extends gr {
|
|
|
8531
8531
|
return this._startValue + this.getDecimalForPixel(t) * this._valueRange;
|
|
8532
8532
|
}
|
|
8533
8533
|
}
|
|
8534
|
-
C(
|
|
8534
|
+
C(Wa, "id", "linear"), C(Wa, "defaults", {
|
|
8535
8535
|
ticks: {
|
|
8536
|
-
callback:
|
|
8536
|
+
callback: Tr.formatters.numeric
|
|
8537
8537
|
}
|
|
8538
8538
|
});
|
|
8539
8539
|
const os = (n) => Math.floor(xn(n)), Nn = (n, t) => Math.pow(10, os(n) + t);
|
|
@@ -8572,7 +8572,7 @@ function F0(n, { min: t, max: e }) {
|
|
|
8572
8572
|
significand: d
|
|
8573
8573
|
}), i;
|
|
8574
8574
|
}
|
|
8575
|
-
class
|
|
8575
|
+
class Ba extends Xn {
|
|
8576
8576
|
constructor(t) {
|
|
8577
8577
|
super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._valueRange = 0;
|
|
8578
8578
|
}
|
|
@@ -8619,15 +8619,15 @@ class Wa extends Xn {
|
|
|
8619
8619
|
return Math.pow(10, this._startValue + e * this._valueRange);
|
|
8620
8620
|
}
|
|
8621
8621
|
}
|
|
8622
|
-
C(
|
|
8622
|
+
C(Ba, "id", "logarithmic"), C(Ba, "defaults", {
|
|
8623
8623
|
ticks: {
|
|
8624
|
-
callback:
|
|
8624
|
+
callback: Tr.formatters.logarithmic,
|
|
8625
8625
|
major: {
|
|
8626
8626
|
enabled: !0
|
|
8627
8627
|
}
|
|
8628
8628
|
}
|
|
8629
8629
|
});
|
|
8630
|
-
function
|
|
8630
|
+
function Ya(n) {
|
|
8631
8631
|
const t = n.ticks;
|
|
8632
8632
|
if (t.display && n.display) {
|
|
8633
8633
|
const e = Ut(t.backdropPadding);
|
|
@@ -8667,7 +8667,7 @@ function z0(n) {
|
|
|
8667
8667
|
s[l] = c.padding;
|
|
8668
8668
|
const u = n.getPointPosition(l, n.drawingArea + s[l], o), d = It(c.font), h = N0(n.ctx, d, n._pointLabels[l]);
|
|
8669
8669
|
i[l] = h;
|
|
8670
|
-
const f = Me(n.getIndexAngle(l) + o), g = Math.round(
|
|
8670
|
+
const f = Me(n.getIndexAngle(l) + o), g = Math.round(Dr(f)), b = Cc(g, u.x, h.w, 0, 180), x = Cc(g, u.y, h.h, 90, 270);
|
|
8671
8671
|
H0(e, t, f, b, x);
|
|
8672
8672
|
}
|
|
8673
8673
|
n.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), n._pointLabelItems = Y0(n, i, s);
|
|
@@ -8678,7 +8678,7 @@ function H0(n, t, e, i, s) {
|
|
|
8678
8678
|
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));
|
|
8679
8679
|
}
|
|
8680
8680
|
function W0(n, t, e) {
|
|
8681
|
-
const i = n.drawingArea, { extra: s, additionalAngle: r, padding: a, size: o } = e, l = n.getPointPosition(t, i + s + a, r), c = Math.round(
|
|
8681
|
+
const i = n.drawingArea, { extra: s, additionalAngle: r, padding: a, size: o } = e, l = n.getPointPosition(t, i + s + a, r), c = Math.round(Dr(Me(l.angle + Pt))), u = q0(l.y, o.h, c), d = j0(c), h = $0(l.x, o.w, d);
|
|
8682
8682
|
return {
|
|
8683
8683
|
visible: !0,
|
|
8684
8684
|
x: l.x,
|
|
@@ -8710,7 +8710,7 @@ function B0(n, t) {
|
|
|
8710
8710
|
}
|
|
8711
8711
|
function Y0(n, t, e) {
|
|
8712
8712
|
const i = [], s = n._pointLabels.length, r = n.options, { centerPointLabels: a, display: o } = r.pointLabels, l = {
|
|
8713
|
-
extra:
|
|
8713
|
+
extra: Ya(r) / 2,
|
|
8714
8714
|
additionalAngle: a ? ut / s : 0
|
|
8715
8715
|
};
|
|
8716
8716
|
let c;
|
|
@@ -8788,7 +8788,7 @@ class ji extends gr {
|
|
|
8788
8788
|
super(t), this.xCenter = void 0, this.yCenter = void 0, this.drawingArea = void 0, this._pointLabels = [], this._pointLabelItems = [];
|
|
8789
8789
|
}
|
|
8790
8790
|
setDimensions() {
|
|
8791
|
-
const t = this._padding = Ut(
|
|
8791
|
+
const t = this._padding = Ut(Ya(this.options) / 2), e = this.width = this.maxWidth - t.width, i = this.height = this.maxHeight - t.height;
|
|
8792
8792
|
this.xCenter = Math.floor(this.left + e / 2 + t.left), this.yCenter = Math.floor(this.top + i / 2 + t.top), this.drawingArea = Math.floor(Math.min(e, i) / 2);
|
|
8793
8793
|
}
|
|
8794
8794
|
determineDataLimits() {
|
|
@@ -8796,7 +8796,7 @@ class ji extends gr {
|
|
|
8796
8796
|
this.min = Lt(t) && !isNaN(t) ? t : 0, this.max = Lt(e) && !isNaN(e) ? e : 0, this.handleTickRangeOptions();
|
|
8797
8797
|
}
|
|
8798
8798
|
computeTickLimit() {
|
|
8799
|
-
return Math.ceil(this.drawingArea /
|
|
8799
|
+
return Math.ceil(this.drawingArea / Ya(this.options));
|
|
8800
8800
|
}
|
|
8801
8801
|
generateTickLabels(t) {
|
|
8802
8802
|
gr.prototype.generateTickLabels.call(this, t), this._pointLabels = this.getLabels().map((e, i) => {
|
|
@@ -8927,7 +8927,7 @@ C(ji, "id", "radialLinear"), C(ji, "defaults", {
|
|
|
8927
8927
|
startAngle: 0,
|
|
8928
8928
|
ticks: {
|
|
8929
8929
|
showLabelBackdrop: !0,
|
|
8930
|
-
callback:
|
|
8930
|
+
callback: Tr.formatters.numeric
|
|
8931
8931
|
},
|
|
8932
8932
|
pointLabels: {
|
|
8933
8933
|
backdropColor: void 0,
|
|
@@ -8951,7 +8951,7 @@ C(ji, "id", "radialLinear"), C(ji, "defaults", {
|
|
|
8951
8951
|
_fallback: "grid"
|
|
8952
8952
|
}
|
|
8953
8953
|
});
|
|
8954
|
-
const
|
|
8954
|
+
const Or = {
|
|
8955
8955
|
millisecond: {
|
|
8956
8956
|
common: !0,
|
|
8957
8957
|
size: 1,
|
|
@@ -8996,7 +8996,7 @@ const Pr = {
|
|
|
8996
8996
|
common: !0,
|
|
8997
8997
|
size: 3154e7
|
|
8998
8998
|
}
|
|
8999
|
-
}, me = /* @__PURE__ */ Object.keys(
|
|
8999
|
+
}, me = /* @__PURE__ */ Object.keys(Or);
|
|
9000
9000
|
function Pc(n, t) {
|
|
9001
9001
|
return n - t;
|
|
9002
9002
|
}
|
|
@@ -9010,7 +9010,7 @@ function Oc(n, t) {
|
|
|
9010
9010
|
function Ec(n, t, e, i) {
|
|
9011
9011
|
const s = me.length;
|
|
9012
9012
|
for (let r = me.indexOf(n); r < s - 1; ++r) {
|
|
9013
|
-
const a =
|
|
9013
|
+
const a = Or[me[r]], o = a.steps ? a.steps : Number.MAX_SAFE_INTEGER;
|
|
9014
9014
|
if (a.common && Math.ceil((e - t) / (o * a.size)) <= i)
|
|
9015
9015
|
return me[r];
|
|
9016
9016
|
}
|
|
@@ -9019,14 +9019,14 @@ function Ec(n, t, e, i) {
|
|
|
9019
9019
|
function K0(n, t, e, i, s) {
|
|
9020
9020
|
for (let r = me.length - 1; r >= me.indexOf(e); r--) {
|
|
9021
9021
|
const a = me[r];
|
|
9022
|
-
if (
|
|
9022
|
+
if (Or[a].common && n._adapter.diff(s, i, a) >= t - 1)
|
|
9023
9023
|
return a;
|
|
9024
9024
|
}
|
|
9025
9025
|
return me[e ? me.indexOf(e) : 0];
|
|
9026
9026
|
}
|
|
9027
9027
|
function Z0(n) {
|
|
9028
9028
|
for (let t = me.indexOf(n) + 1, e = me.length; t < e; ++t)
|
|
9029
|
-
if (
|
|
9029
|
+
if (Or[me[t]].common)
|
|
9030
9030
|
return me[t];
|
|
9031
9031
|
}
|
|
9032
9032
|
function Ac(n, t, e) {
|
|
@@ -9223,7 +9223,7 @@ function Xs(n, t, e) {
|
|
|
9223
9223
|
const c = a - r;
|
|
9224
9224
|
return c ? o + (l - o) * (t - r) / c : o;
|
|
9225
9225
|
}
|
|
9226
|
-
class
|
|
9226
|
+
class ja extends ls {
|
|
9227
9227
|
constructor(t) {
|
|
9228
9228
|
super(t), this._table = [], this._minPos = void 0, this._tableRange = void 0;
|
|
9229
9229
|
}
|
|
@@ -9274,15 +9274,15 @@ class Ya extends ls {
|
|
|
9274
9274
|
return Xs(this._table, i * this._tableRange + this._minPos, !0);
|
|
9275
9275
|
}
|
|
9276
9276
|
}
|
|
9277
|
-
C(
|
|
9277
|
+
C(ja, "id", "timeseries"), C(ja, "defaults", ls.defaults);
|
|
9278
9278
|
var J0 = /* @__PURE__ */ Object.freeze({
|
|
9279
9279
|
__proto__: null,
|
|
9280
|
-
CategoryScale:
|
|
9281
|
-
LinearScale:
|
|
9282
|
-
LogarithmicScale:
|
|
9280
|
+
CategoryScale: Ha,
|
|
9281
|
+
LinearScale: Wa,
|
|
9282
|
+
LogarithmicScale: Ba,
|
|
9283
9283
|
RadialLinearScale: ji,
|
|
9284
9284
|
TimeScale: ls,
|
|
9285
|
-
TimeSeriesScale:
|
|
9285
|
+
TimeSeriesScale: ja
|
|
9286
9286
|
});
|
|
9287
9287
|
const tx = [
|
|
9288
9288
|
lb,
|
|
@@ -9364,7 +9364,7 @@ function Wt(n, t) {
|
|
|
9364
9364
|
function et(n, t) {
|
|
9365
9365
|
return Wt(t || n, n);
|
|
9366
9366
|
}
|
|
9367
|
-
function
|
|
9367
|
+
function Er(n, t, e) {
|
|
9368
9368
|
const i = et(n, e == null ? void 0 : e.in);
|
|
9369
9369
|
return isNaN(t) ? Wt((e == null ? void 0 : e.in) || n, NaN) : (t && i.setDate(i.getDate() + t), i);
|
|
9370
9370
|
}
|
|
@@ -9429,7 +9429,7 @@ function Kn(n, ...t) {
|
|
|
9429
9429
|
);
|
|
9430
9430
|
return t.map(e);
|
|
9431
9431
|
}
|
|
9432
|
-
function
|
|
9432
|
+
function $a(n, t) {
|
|
9433
9433
|
const e = et(n, t == null ? void 0 : t.in);
|
|
9434
9434
|
return e.setHours(0, 0, 0, 0), e;
|
|
9435
9435
|
}
|
|
@@ -9438,7 +9438,7 @@ function th(n, t, e) {
|
|
|
9438
9438
|
e == null ? void 0 : e.in,
|
|
9439
9439
|
n,
|
|
9440
9440
|
t
|
|
9441
|
-
), r =
|
|
9441
|
+
), r = $a(i), a = $a(s), o = +r - pr(r), l = +a - pr(a);
|
|
9442
9442
|
return Math.round((o - l) / rx);
|
|
9443
9443
|
}
|
|
9444
9444
|
function cx(n, t) {
|
|
@@ -9456,7 +9456,7 @@ function hx(n, t, e) {
|
|
|
9456
9456
|
return Eo(n, t * 1e3);
|
|
9457
9457
|
}
|
|
9458
9458
|
function fx(n, t, e) {
|
|
9459
|
-
return
|
|
9459
|
+
return Er(n, t * 7, e);
|
|
9460
9460
|
}
|
|
9461
9461
|
function gx(n, t, e) {
|
|
9462
9462
|
return Oo(n, t * 12, e);
|
|
@@ -9678,7 +9678,7 @@ const Rx = {
|
|
|
9678
9678
|
const s = Rx[n];
|
|
9679
9679
|
return typeof s == "string" ? i = s : t === 1 ? i = s.one : i = s.other.replace("{{count}}", t.toString()), e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "in " + i : i + " ago" : i;
|
|
9680
9680
|
};
|
|
9681
|
-
function
|
|
9681
|
+
function oa(n) {
|
|
9682
9682
|
return (t = {}) => {
|
|
9683
9683
|
const e = t.width ? String(t.width) : n.defaultWidth;
|
|
9684
9684
|
return n.formats[e] || n.formats[n.defaultWidth];
|
|
@@ -9700,15 +9700,15 @@ const Ix = {
|
|
|
9700
9700
|
medium: "{{date}}, {{time}}",
|
|
9701
9701
|
short: "{{date}}, {{time}}"
|
|
9702
9702
|
}, zx = {
|
|
9703
|
-
date:
|
|
9703
|
+
date: oa({
|
|
9704
9704
|
formats: Ix,
|
|
9705
9705
|
defaultWidth: "full"
|
|
9706
9706
|
}),
|
|
9707
|
-
time:
|
|
9707
|
+
time: oa({
|
|
9708
9708
|
formats: Fx,
|
|
9709
9709
|
defaultWidth: "full"
|
|
9710
9710
|
}),
|
|
9711
|
-
dateTime:
|
|
9711
|
+
dateTime: oa({
|
|
9712
9712
|
formats: Nx,
|
|
9713
9713
|
defaultWidth: "full"
|
|
9714
9714
|
})
|
|
@@ -10678,7 +10678,7 @@ const Wc = (n, t) => {
|
|
|
10678
10678
|
break;
|
|
10679
10679
|
}
|
|
10680
10680
|
return r.replace("{{date}}", Wc(i, t)).replace("{{time}}", ch(s, t));
|
|
10681
|
-
},
|
|
10681
|
+
}, qa = {
|
|
10682
10682
|
p: ch,
|
|
10683
10683
|
P: f_
|
|
10684
10684
|
}, g_ = /^D+$/, p_ = /^Y+$/, m_ = ["D", "DD", "YY", "YYYY"];
|
|
@@ -10688,7 +10688,7 @@ function uh(n) {
|
|
|
10688
10688
|
function dh(n) {
|
|
10689
10689
|
return p_.test(n);
|
|
10690
10690
|
}
|
|
10691
|
-
function
|
|
10691
|
+
function Ua(n, t, e) {
|
|
10692
10692
|
const i = b_(n, t, e);
|
|
10693
10693
|
if (console.warn(i), m_.includes(n)) throw new RangeError(i);
|
|
10694
10694
|
}
|
|
@@ -10705,7 +10705,7 @@ function hh(n, t, e) {
|
|
|
10705
10705
|
let l = t.match(x_).map((v) => {
|
|
10706
10706
|
const M = v[0];
|
|
10707
10707
|
if (M === "p" || M === "P") {
|
|
10708
|
-
const T =
|
|
10708
|
+
const T = qa[M];
|
|
10709
10709
|
return T(v, s.formatLong);
|
|
10710
10710
|
}
|
|
10711
10711
|
return v;
|
|
@@ -10732,7 +10732,7 @@ function hh(n, t, e) {
|
|
|
10732
10732
|
return l.map((v) => {
|
|
10733
10733
|
if (!v.isToken) return v.value;
|
|
10734
10734
|
const M = v.value;
|
|
10735
|
-
(!(e != null && e.useAdditionalWeekYearTokens) && dh(M) || !(e != null && e.useAdditionalDayOfYearTokens) && uh(M)) &&
|
|
10735
|
+
(!(e != null && e.useAdditionalWeekYearTokens) && dh(M) || !(e != null && e.useAdditionalDayOfYearTokens) && uh(M)) && Ua(M, t, String(n));
|
|
10736
10736
|
const T = Nc[M[0]];
|
|
10737
10737
|
return T(o, M, s.localize, c);
|
|
10738
10738
|
}).join("");
|
|
@@ -11539,7 +11539,7 @@ class U_ extends pt {
|
|
|
11539
11539
|
function Fo(n, t, e) {
|
|
11540
11540
|
var d, h, f, g;
|
|
11541
11541
|
const i = Gn(), s = (e == null ? void 0 : e.weekStartsOn) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.weekStartsOn) ?? i.weekStartsOn ?? ((g = (f = i.locale) == null ? void 0 : f.options) == null ? void 0 : g.weekStartsOn) ?? 0, r = et(n, e == null ? void 0 : e.in), a = r.getDay(), l = (t % 7 + 7) % 7, c = 7 - s, u = t < 0 || t > 6 ? t - (a + c) % 7 : (l + c) % 7 - (a + c) % 7;
|
|
11542
|
-
return
|
|
11542
|
+
return Er(r, u, e);
|
|
11543
11543
|
}
|
|
11544
11544
|
class V_ extends pt {
|
|
11545
11545
|
constructor() {
|
|
@@ -11710,7 +11710,7 @@ class G_ extends pt {
|
|
|
11710
11710
|
}
|
|
11711
11711
|
function K_(n, t, e) {
|
|
11712
11712
|
const i = et(n, e == null ? void 0 : e.in), s = S_(i, e), r = t - s;
|
|
11713
|
-
return
|
|
11713
|
+
return Er(i, r, e);
|
|
11714
11714
|
}
|
|
11715
11715
|
class Z_ extends pt {
|
|
11716
11716
|
constructor() {
|
|
@@ -12223,14 +12223,14 @@ function xw(n, t, e, i) {
|
|
|
12223
12223
|
locale: a
|
|
12224
12224
|
}, u = [new P_(i == null ? void 0 : i.in, e)], d = t.match(gw).map((m) => {
|
|
12225
12225
|
const y = m[0];
|
|
12226
|
-
if (y in
|
|
12227
|
-
const k =
|
|
12226
|
+
if (y in qa) {
|
|
12227
|
+
const k = qa[y];
|
|
12228
12228
|
return k(m, a.formatLong);
|
|
12229
12229
|
}
|
|
12230
12230
|
return m;
|
|
12231
12231
|
}).join("").match(fw), h = [];
|
|
12232
12232
|
for (let m of d) {
|
|
12233
|
-
!(i != null && i.useAdditionalWeekYearTokens) && dh(m) &&
|
|
12233
|
+
!(i != null && i.useAdditionalWeekYearTokens) && dh(m) && Ua(m, t, n), !(i != null && i.useAdditionalDayOfYearTokens) && uh(m) && Ua(m, t, n);
|
|
12234
12234
|
const y = m[0], k = hw[y];
|
|
12235
12235
|
if (k) {
|
|
12236
12236
|
const { incompatibleTokens: E } = k;
|
|
@@ -12379,10 +12379,10 @@ function Ei(n) {
|
|
|
12379
12379
|
function Ew(n) {
|
|
12380
12380
|
const t = n.match(Dw);
|
|
12381
12381
|
if (!t) return NaN;
|
|
12382
|
-
const e =
|
|
12382
|
+
const e = la(t[1]), i = la(t[2]), s = la(t[3]);
|
|
12383
12383
|
return zw(e, i, s) ? e * yi + i * ps + s * 1e3 : NaN;
|
|
12384
12384
|
}
|
|
12385
|
-
function
|
|
12385
|
+
function la(n) {
|
|
12386
12386
|
return n && parseFloat(n.replace(",", ".")) || 0;
|
|
12387
12387
|
}
|
|
12388
12388
|
function Aw(n) {
|
|
@@ -12434,7 +12434,7 @@ const No = (n, t) => {
|
|
|
12434
12434
|
f = isNaN(h) ? h : Po(h);
|
|
12435
12435
|
else {
|
|
12436
12436
|
const b = n.translateUnit(n.units, h);
|
|
12437
|
-
f = `${n.units === "usd" ? "$" : ""}${h % 1 === 0 ?
|
|
12437
|
+
f = `${n.units === "usd" ? "$" : ""}${h % 1 === 0 ? Va.format(h) : Va.format(Number(h.toFixed(Uw)))} ${b}`;
|
|
12438
12438
|
}
|
|
12439
12439
|
const g = l && u.dataset.label !== u.label ? u.dataset.label : c ? u.dataset.labels[u.dataIndex] : u.dataset.label;
|
|
12440
12440
|
return {
|
|
@@ -12462,7 +12462,7 @@ function _h(n, t) {
|
|
|
12462
12462
|
}
|
|
12463
12463
|
const Uw = 2, Vw = 10, Xw = 12;
|
|
12464
12464
|
var ed;
|
|
12465
|
-
const
|
|
12465
|
+
const Va = new Intl.NumberFormat(((ed = document == null ? void 0 : document.documentElement) == null ? void 0 : ed.lang) || "en-US"), Xa = 10, Bc = {
|
|
12466
12466
|
"1XXCount|1XX|1[0-9][0-9]": { solid: "#0072E5", light: "#4DA6FF", description: "Informational" },
|
|
12467
12467
|
"SuccessfulRequests|2XXCount|2XX|2[0-9][0-9]|SUCCESS": { solid: "#0BB652", light: "#6FCC83", description: "Success" },
|
|
12468
12468
|
"3XXCount|3XX|3[0-9][0-9]": { solid: "#FDC53B", light: "#FFD982", description: "Redirection" },
|
|
@@ -12519,16 +12519,16 @@ const Ua = new Intl.NumberFormat(((ed = document == null ? void 0 : document.doc
|
|
|
12519
12519
|
pointBorderWidth: 1.2,
|
|
12520
12520
|
borderJoinStyle: "round",
|
|
12521
12521
|
fill: !0
|
|
12522
|
-
}, Jw = 2, tv = 0,
|
|
12522
|
+
}, Jw = 2, tv = 0, ca = /* @__PURE__ */ new Map(), ua = (n, t) => t === "bytes" ? Po(n) : t === "count/minute" ? n.toFixed(2) : Va.format(n), Yc = (n) => {
|
|
12523
12523
|
const e = document.createElement("canvas").getContext("2d"), i = It({});
|
|
12524
12524
|
return e.font = i.string, e.measureText(n).width;
|
|
12525
12525
|
}, ev = () => {
|
|
12526
12526
|
const n = "label_height";
|
|
12527
|
-
if (!
|
|
12527
|
+
if (!ca.has(n)) {
|
|
12528
12528
|
const t = It({});
|
|
12529
|
-
|
|
12529
|
+
ca.set(n, t.lineHeight);
|
|
12530
12530
|
}
|
|
12531
|
-
return
|
|
12531
|
+
return ca.get(n);
|
|
12532
12532
|
}, nv = (n) => n.datasets.reduce(
|
|
12533
12533
|
(t, e) => t + e.data.reduce((i, s) => isNaN(s) ? i : i + s, 0),
|
|
12534
12534
|
0
|
|
@@ -12586,7 +12586,7 @@ const Ua = new Intl.NumberFormat(((ed = document == null ? void 0 : document.doc
|
|
|
12586
12586
|
}, VT = (n) => {
|
|
12587
12587
|
const t = wh(n);
|
|
12588
12588
|
return { solid: t, light: t };
|
|
12589
|
-
}, rv = Array.from({ length: 500 }, (n, t) => 100 + t),
|
|
12589
|
+
}, rv = Array.from({ length: 500 }, (n, t) => 100 + t), da = {
|
|
12590
12590
|
...rv.reduce((n, t) => (n[`${t}`] = wh(`${t}`), n), {}),
|
|
12591
12591
|
____OTHER____: "#DAD4C7",
|
|
12592
12592
|
"1XX": "#4DA6FF",
|
|
@@ -12606,7 +12606,7 @@ function av(n) {
|
|
|
12606
12606
|
})
|
|
12607
12607
|
}
|
|
12608
12608
|
};
|
|
12609
|
-
|
|
12609
|
+
Pr.positioners.barChartTooltipPosition = function(s, r) {
|
|
12610
12610
|
if (!s.length)
|
|
12611
12611
|
return !1;
|
|
12612
12612
|
const a = this.chart.canvas.getBoundingClientRect(), o = n.tooltipState.width || this.width, l = a.width / 2, c = zo(r, o, l), u = r.y, d = r.x < l ? "left" : "center";
|
|
@@ -12615,9 +12615,9 @@ function av(n) {
|
|
|
12615
12615
|
y: u - n.tooltipState.offsetY,
|
|
12616
12616
|
xAlign: d
|
|
12617
12617
|
};
|
|
12618
|
-
},
|
|
12618
|
+
}, Aa.modes.customInteractionMode = function(s, r) {
|
|
12619
12619
|
const a = bn(r, s), o = [];
|
|
12620
|
-
return
|
|
12620
|
+
return Aa.evaluateInteractionItems(s, s.options.indexAxis || "x", a, (l, c, u) => {
|
|
12621
12621
|
s.options.indexAxis === "y" && l.inYRange(a.y, !0) && s.data.datasets[c].data[u] && o.push({ element: l, datasetIndex: c, index: u }), s.options.indexAxis === "x" && l.inXRange(a.x, !0) && s.data.datasets[c].data[u] && o.push({ element: l, datasetIndex: c, index: u });
|
|
12622
12622
|
}), o;
|
|
12623
12623
|
};
|
|
@@ -12674,7 +12674,7 @@ function av(n) {
|
|
|
12674
12674
|
font: e,
|
|
12675
12675
|
callback: function(h, f) {
|
|
12676
12676
|
const g = this;
|
|
12677
|
-
return g.chart.options.indexAxis === g.axis ? (h = g.getLabelForValue(f), h && h.length >
|
|
12677
|
+
return g.chart.options.indexAxis === g.axis ? (h = g.getLabelForValue(f), h && h.length > Xa ? h.slice(0, Xa) + "..." : h) : g.getLabelForValue(Number(h));
|
|
12678
12678
|
}
|
|
12679
12679
|
},
|
|
12680
12680
|
title: {
|
|
@@ -12716,7 +12716,7 @@ const ov = (n, t) => {
|
|
|
12716
12716
|
return n.datasets.length === t.datasets.length && e.every((s, r) => s === i[r]);
|
|
12717
12717
|
};
|
|
12718
12718
|
function lv(n, t, e, i, s) {
|
|
12719
|
-
const r =
|
|
12719
|
+
const r = ro(null), a = (o, l) => {
|
|
12720
12720
|
if (t.value)
|
|
12721
12721
|
return new Ae(t.value, {
|
|
12722
12722
|
type: n,
|
|
@@ -12727,7 +12727,7 @@ function lv(n, t, e, i, s) {
|
|
|
12727
12727
|
};
|
|
12728
12728
|
return Sr(() => {
|
|
12729
12729
|
r.value = a(e.value, s.value);
|
|
12730
|
-
}),
|
|
12730
|
+
}), ao(() => {
|
|
12731
12731
|
tt(r.value) || r.value.destroy();
|
|
12732
12732
|
}), ye(e, (o, l) => {
|
|
12733
12733
|
if (ov(l, o) && !tt(r.value)) {
|
|
@@ -13040,7 +13040,7 @@ const Av = {
|
|
|
13040
13040
|
const s = Av[n];
|
|
13041
13041
|
return typeof s == "string" ? i = s : t === 1 ? i = s.one : i = s.other.replace("{{count}}", t.toString()), e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "in " + i : i + " ago" : i;
|
|
13042
13042
|
};
|
|
13043
|
-
function
|
|
13043
|
+
function ha(n) {
|
|
13044
13044
|
return (t = {}) => {
|
|
13045
13045
|
const e = t.width ? String(t.width) : n.defaultWidth;
|
|
13046
13046
|
return n.formats[e] || n.formats[n.defaultWidth];
|
|
@@ -13062,15 +13062,15 @@ const Lv = {
|
|
|
13062
13062
|
medium: "{{date}}, {{time}}",
|
|
13063
13063
|
short: "{{date}}, {{time}}"
|
|
13064
13064
|
}, Nv = {
|
|
13065
|
-
date:
|
|
13065
|
+
date: ha({
|
|
13066
13066
|
formats: Lv,
|
|
13067
13067
|
defaultWidth: "full"
|
|
13068
13068
|
}),
|
|
13069
|
-
time:
|
|
13069
|
+
time: ha({
|
|
13070
13070
|
formats: Iv,
|
|
13071
13071
|
defaultWidth: "full"
|
|
13072
13072
|
}),
|
|
13073
|
-
dateTime:
|
|
13073
|
+
dateTime: ha({
|
|
13074
13074
|
formats: Fv,
|
|
13075
13075
|
defaultWidth: "full"
|
|
13076
13076
|
})
|
|
@@ -14177,7 +14177,7 @@ function B1(n, t) {
|
|
|
14177
14177
|
parseInt(i[6], 10)
|
|
14178
14178
|
];
|
|
14179
14179
|
}
|
|
14180
|
-
const
|
|
14180
|
+
const fa = {}, tu = new Intl.DateTimeFormat("en-US", {
|
|
14181
14181
|
hourCycle: "h23",
|
|
14182
14182
|
timeZone: "America/New_York",
|
|
14183
14183
|
year: "numeric",
|
|
@@ -14188,7 +14188,7 @@ const ha = {}, tu = new Intl.DateTimeFormat("en-US", {
|
|
|
14188
14188
|
second: "2-digit"
|
|
14189
14189
|
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Y1 = tu === "06/25/2014, 00:00:00" || tu === "06/25/2014 00:00:00";
|
|
14190
14190
|
function j1(n) {
|
|
14191
|
-
return
|
|
14191
|
+
return fa[n] || (fa[n] = Y1 ? new Intl.DateTimeFormat("en-US", {
|
|
14192
14192
|
hourCycle: "h23",
|
|
14193
14193
|
timeZone: n,
|
|
14194
14194
|
year: "numeric",
|
|
@@ -14206,13 +14206,13 @@ function j1(n) {
|
|
|
14206
14206
|
hour: "2-digit",
|
|
14207
14207
|
minute: "2-digit",
|
|
14208
14208
|
second: "2-digit"
|
|
14209
|
-
})),
|
|
14209
|
+
})), fa[n];
|
|
14210
14210
|
}
|
|
14211
14211
|
function Wo(n, t, e, i, s, r, a) {
|
|
14212
14212
|
const o = /* @__PURE__ */ new Date(0);
|
|
14213
14213
|
return o.setUTCFullYear(n, t, e), o.setUTCHours(i, s, r, a), o;
|
|
14214
14214
|
}
|
|
14215
|
-
const eu = 36e5, $1 = 6e4,
|
|
14215
|
+
const eu = 36e5, $1 = 6e4, ga = {
|
|
14216
14216
|
timezone: /([Z+-].*)$/,
|
|
14217
14217
|
timezoneZ: /^(Z)$/,
|
|
14218
14218
|
timezoneHH: /^([+-]\d{2})$/,
|
|
@@ -14221,20 +14221,20 @@ const eu = 36e5, $1 = 6e4, fa = {
|
|
|
14221
14221
|
function xs(n, t, e) {
|
|
14222
14222
|
if (!n)
|
|
14223
14223
|
return 0;
|
|
14224
|
-
let i =
|
|
14224
|
+
let i = ga.timezoneZ.exec(n);
|
|
14225
14225
|
if (i)
|
|
14226
14226
|
return 0;
|
|
14227
14227
|
let s, r;
|
|
14228
|
-
if (i =
|
|
14228
|
+
if (i = ga.timezoneHH.exec(n), i)
|
|
14229
14229
|
return s = parseInt(i[1], 10), nu(s) ? -(s * eu) : NaN;
|
|
14230
|
-
if (i =
|
|
14230
|
+
if (i = ga.timezoneHHMM.exec(n), i) {
|
|
14231
14231
|
s = parseInt(i[2], 10);
|
|
14232
14232
|
const a = parseInt(i[3], 10);
|
|
14233
14233
|
return nu(s, a) ? (r = Math.abs(s) * eu + a * $1, i[1] === "+" ? -r : r) : NaN;
|
|
14234
14234
|
}
|
|
14235
14235
|
if (V1(n)) {
|
|
14236
14236
|
t = new Date(t || Date.now());
|
|
14237
|
-
const a = e ? t : q1(t), o =
|
|
14237
|
+
const a = e ? t : q1(t), o = Ga(a, n);
|
|
14238
14238
|
return -(e ? o : U1(t, o, n));
|
|
14239
14239
|
}
|
|
14240
14240
|
return NaN;
|
|
@@ -14242,7 +14242,7 @@ function xs(n, t, e) {
|
|
|
14242
14242
|
function q1(n) {
|
|
14243
14243
|
return Wo(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds());
|
|
14244
14244
|
}
|
|
14245
|
-
function
|
|
14245
|
+
function Ga(n, t) {
|
|
14246
14246
|
const e = z1(n, t), i = Wo(e[0], e[1] - 1, e[2], e[3] % 24, e[4], e[5], 0).getTime();
|
|
14247
14247
|
let s = n.getTime();
|
|
14248
14248
|
const r = s % 1e3;
|
|
@@ -14250,11 +14250,11 @@ function Xa(n, t) {
|
|
|
14250
14250
|
}
|
|
14251
14251
|
function U1(n, t, e) {
|
|
14252
14252
|
let i = n.getTime() - t;
|
|
14253
|
-
const s =
|
|
14253
|
+
const s = Ga(new Date(i), e);
|
|
14254
14254
|
if (t === s)
|
|
14255
14255
|
return t;
|
|
14256
14256
|
i -= s - t;
|
|
14257
|
-
const r =
|
|
14257
|
+
const r = Ga(new Date(i), e);
|
|
14258
14258
|
return s === r ? s : Math.max(s, r);
|
|
14259
14259
|
}
|
|
14260
14260
|
function nu(n, t) {
|
|
@@ -14273,7 +14273,7 @@ function V1(n) {
|
|
|
14273
14273
|
const X1 = 60 * 1e3, G1 = {
|
|
14274
14274
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
14275
14275
|
X: function(n, t, e) {
|
|
14276
|
-
const i =
|
|
14276
|
+
const i = pa(e.timeZone, n);
|
|
14277
14277
|
if (i === 0)
|
|
14278
14278
|
return "Z";
|
|
14279
14279
|
switch (t) {
|
|
@@ -14290,7 +14290,7 @@ const X1 = 60 * 1e3, G1 = {
|
|
|
14290
14290
|
},
|
|
14291
14291
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
14292
14292
|
x: function(n, t, e) {
|
|
14293
|
-
const i =
|
|
14293
|
+
const i = pa(e.timeZone, n);
|
|
14294
14294
|
switch (t) {
|
|
14295
14295
|
case "x":
|
|
14296
14296
|
return su(i);
|
|
@@ -14305,7 +14305,7 @@ const X1 = 60 * 1e3, G1 = {
|
|
|
14305
14305
|
},
|
|
14306
14306
|
// Timezone (GMT)
|
|
14307
14307
|
O: function(n, t, e) {
|
|
14308
|
-
const i =
|
|
14308
|
+
const i = pa(e.timeZone, n);
|
|
14309
14309
|
switch (t) {
|
|
14310
14310
|
case "O":
|
|
14311
14311
|
case "OO":
|
|
@@ -14329,7 +14329,7 @@ const X1 = 60 * 1e3, G1 = {
|
|
|
14329
14329
|
}
|
|
14330
14330
|
}
|
|
14331
14331
|
};
|
|
14332
|
-
function
|
|
14332
|
+
function pa(n, t) {
|
|
14333
14333
|
const e = n ? xs(n, t, !0) / X1 : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
14334
14334
|
if (Number.isNaN(e))
|
|
14335
14335
|
throw new RangeError("Invalid time zone specified: " + n);
|
|
@@ -14357,7 +14357,7 @@ function ru(n) {
|
|
|
14357
14357
|
const t = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
|
|
14358
14358
|
return t.setUTCFullYear(n.getFullYear()), +n - +t;
|
|
14359
14359
|
}
|
|
14360
|
-
const Ph = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,
|
|
14360
|
+
const Ph = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, ma = 36e5, au = 6e4, Z1 = 2, re = {
|
|
14361
14361
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
14362
14362
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
14363
14363
|
plainTime: /:/,
|
|
@@ -14486,13 +14486,13 @@ function tM(n, t) {
|
|
|
14486
14486
|
function eM(n) {
|
|
14487
14487
|
let t, e, i = re.HH.exec(n);
|
|
14488
14488
|
if (i)
|
|
14489
|
-
return t = parseFloat(i[1].replace(",", ".")),
|
|
14489
|
+
return t = parseFloat(i[1].replace(",", ".")), ba(t) ? t % 24 * ma : NaN;
|
|
14490
14490
|
if (i = re.HHMM.exec(n), i)
|
|
14491
|
-
return t = parseInt(i[1], 10), e = parseFloat(i[2].replace(",", ".")),
|
|
14491
|
+
return t = parseInt(i[1], 10), e = parseFloat(i[2].replace(",", ".")), ba(t, e) ? t % 24 * ma + e * au : NaN;
|
|
14492
14492
|
if (i = re.HHMMSS.exec(n), i) {
|
|
14493
14493
|
t = parseInt(i[1], 10), e = parseInt(i[2], 10);
|
|
14494
14494
|
const s = parseFloat(i[3].replace(",", "."));
|
|
14495
|
-
return
|
|
14495
|
+
return ba(t, e, s) ? t % 24 * ma + e * au + s * 1e3 : NaN;
|
|
14496
14496
|
}
|
|
14497
14497
|
return null;
|
|
14498
14498
|
}
|
|
@@ -14528,7 +14528,7 @@ function sM(n, t) {
|
|
|
14528
14528
|
function cu(n, t) {
|
|
14529
14529
|
return !(n < 0 || n > 52 || t != null && (t < 0 || t > 6));
|
|
14530
14530
|
}
|
|
14531
|
-
function
|
|
14531
|
+
function ba(n, t, e) {
|
|
14532
14532
|
return !(n < 0 || n >= 25 || t != null && (t < 0 || t >= 60) || e != null && (e < 0 || e >= 60));
|
|
14533
14533
|
}
|
|
14534
14534
|
const rM = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
@@ -14568,7 +14568,7 @@ function lM(n, t, e) {
|
|
|
14568
14568
|
function cM(n, t) {
|
|
14569
14569
|
return -xs(n, t);
|
|
14570
14570
|
}
|
|
14571
|
-
function
|
|
14571
|
+
function Ka(n, t = {}) {
|
|
14572
14572
|
if (!n)
|
|
14573
14573
|
return n;
|
|
14574
14574
|
const e = t.tz || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -14589,7 +14589,7 @@ const uM = {
|
|
|
14589
14589
|
weekly: 60 * 60 * 24 * 7 * 1e3,
|
|
14590
14590
|
trend: 0
|
|
14591
14591
|
};
|
|
14592
|
-
function
|
|
14592
|
+
function ya(n) {
|
|
14593
14593
|
return n && fv.find((t) => n <= uM[t]) || null;
|
|
14594
14594
|
}
|
|
14595
14595
|
const mi = (n, t) => new Date(n.getTime() - cM(t, n));
|
|
@@ -14801,7 +14801,7 @@ function mM(n) {
|
|
|
14801
14801
|
if (!((s = n.value) != null && s.meta))
|
|
14802
14802
|
return "";
|
|
14803
14803
|
const e = n.value.meta.start_ms, i = n.value.meta.end_ms;
|
|
14804
|
-
return e && i ? `${
|
|
14804
|
+
return e && i ? `${Ka(e)} - ${Ka(i, { includeTZ: !0 })}` : "";
|
|
14805
14805
|
});
|
|
14806
14806
|
}
|
|
14807
14807
|
function bM(n) {
|
|
@@ -14815,7 +14815,7 @@ function bM(n) {
|
|
|
14815
14815
|
})
|
|
14816
14816
|
}
|
|
14817
14817
|
};
|
|
14818
|
-
return
|
|
14818
|
+
return Pr.positioners.doughnutChartTooltipPosition = function(i, s) {
|
|
14819
14819
|
if (!i.length)
|
|
14820
14820
|
return !1;
|
|
14821
14821
|
const r = this.chart.canvas.getBoundingClientRect(), a = n.tooltipState.width || this.width, o = r.width / 2, l = zo(s, a, o), c = s.y, u = s.x < o ? "left" : "center";
|
|
@@ -14898,7 +14898,7 @@ function yM(n) {
|
|
|
14898
14898
|
enabled: !1,
|
|
14899
14899
|
position: "lineChartTooltipPosition"
|
|
14900
14900
|
};
|
|
14901
|
-
|
|
14901
|
+
Pr.positioners.lineChartTooltipPosition = function(l, c) {
|
|
14902
14902
|
if (!l.length || n.tooltipState.locked)
|
|
14903
14903
|
return !1;
|
|
14904
14904
|
const u = this.chart.canvas.getBoundingClientRect(), d = n.tooltipState.width || this.width, h = n.tooltipState.height || this.height, f = u.width / 2, g = u.height / 2, b = zo(c, d, f);
|
|
@@ -15250,10 +15250,10 @@ function Zn(n, t, e) {
|
|
|
15250
15250
|
y: a + s * (n.x - r) + i * (n.y - a)
|
|
15251
15251
|
};
|
|
15252
15252
|
}
|
|
15253
|
-
const AM = (n, t) => t > n || n.length > t.length && n.slice(0, t.length) === t, Bn = 1e-3,
|
|
15253
|
+
const AM = (n, t) => t > n || n.length > t.length && n.slice(0, t.length) === t, Bn = 1e-3, Ar = (n, t, e) => Math.min(e, Math.max(t, n)), Ah = (n, t) => n.value >= n.start - t && n.value <= n.end + t;
|
|
15254
15254
|
function RM(n, t, e) {
|
|
15255
15255
|
for (const i of Object.keys(n))
|
|
15256
|
-
n[i] =
|
|
15256
|
+
n[i] = Ar(n[i], t, e);
|
|
15257
15257
|
return n;
|
|
15258
15258
|
}
|
|
15259
15259
|
function LM(n, t, e, i) {
|
|
@@ -15286,7 +15286,7 @@ function IM(n, t, e, i = !0) {
|
|
|
15286
15286
|
}
|
|
15287
15287
|
return !0;
|
|
15288
15288
|
}
|
|
15289
|
-
const Ih = (n) => typeof n == "string" && n.endsWith("%"), Fh = (n) => parseFloat(n) / 100, Nh = (n) =>
|
|
15289
|
+
const Ih = (n) => typeof n == "string" && n.endsWith("%"), Fh = (n) => parseFloat(n) / 100, Nh = (n) => Ar(Fh(n), 0, 1), Ii = (n, t) => ({ x: n, y: t, x2: n, y2: t, width: 0, height: 0 }), FM = {
|
|
15290
15290
|
box: (n) => Ii(n.centerX, n.centerY),
|
|
15291
15291
|
doughnutLabel: (n) => Ii(n.centerX, n.centerY),
|
|
15292
15292
|
ellipse: (n) => ({ centerX: n.centerX, centerY: n.centerX, radius: 0, width: 0, height: 0 }),
|
|
@@ -15366,16 +15366,16 @@ function zM(n, t, e) {
|
|
|
15366
15366
|
if (rt(i))
|
|
15367
15367
|
return i;
|
|
15368
15368
|
}
|
|
15369
|
-
const
|
|
15369
|
+
const xa = /* @__PURE__ */ new Map(), HM = (n) => isNaN(n) || n <= 0, WM = (n) => n.reduce(function(t, e) {
|
|
15370
15370
|
return t += e.string, t;
|
|
15371
15371
|
}, "");
|
|
15372
|
-
function
|
|
15372
|
+
function Rr(n) {
|
|
15373
15373
|
if (n && typeof n == "object") {
|
|
15374
15374
|
const t = n.toString();
|
|
15375
15375
|
return t === "[object HTMLImageElement]" || t === "[object HTMLCanvasElement]";
|
|
15376
15376
|
}
|
|
15377
15377
|
}
|
|
15378
|
-
function
|
|
15378
|
+
function Lr(n, { x: t, y: e }, i) {
|
|
15379
15379
|
i && (n.translate(t, e), n.rotate(qt(i)), n.translate(-t, -e));
|
|
15380
15380
|
}
|
|
15381
15381
|
function ln(n, t) {
|
|
@@ -15385,15 +15385,15 @@ function ln(n, t) {
|
|
|
15385
15385
|
function _i(n, t) {
|
|
15386
15386
|
n.shadowColor = t.backgroundShadowColor, n.shadowBlur = t.shadowBlur, n.shadowOffsetX = t.shadowOffsetX, n.shadowOffsetY = t.shadowOffsetY;
|
|
15387
15387
|
}
|
|
15388
|
-
function
|
|
15388
|
+
function Ir(n, t) {
|
|
15389
15389
|
const e = t.content;
|
|
15390
|
-
if (
|
|
15390
|
+
if (Rr(e))
|
|
15391
15391
|
return {
|
|
15392
15392
|
width: Pn(e.width, t.width),
|
|
15393
15393
|
height: Pn(e.height, t.height)
|
|
15394
15394
|
};
|
|
15395
15395
|
const i = Wh(t), s = t.textStrokeWidth, r = mt(e) ? e : [e], a = r.join() + WM(i) + s + (n._measureText ? "-spriting" : "");
|
|
15396
|
-
return
|
|
15396
|
+
return xa.has(a) || xa.set(a, $M(n, r, i, s)), xa.get(a);
|
|
15397
15397
|
}
|
|
15398
15398
|
function $h(n, t, e) {
|
|
15399
15399
|
const { x: i, y: s, width: r, height: a } = t;
|
|
@@ -15409,7 +15409,7 @@ function $h(n, t, e) {
|
|
|
15409
15409
|
}
|
|
15410
15410
|
function qh(n, t, e, i) {
|
|
15411
15411
|
const s = e.content;
|
|
15412
|
-
if (
|
|
15412
|
+
if (Rr(s)) {
|
|
15413
15413
|
n.save(), n.globalAlpha = VM(e.opacity, s.style.opacity), n.drawImage(s, t.x, t.y, t.width, t.height), n.restore();
|
|
15414
15414
|
return;
|
|
15415
15415
|
}
|
|
@@ -15423,7 +15423,7 @@ function BM(n, t) {
|
|
|
15423
15423
|
function YM(n, t, e, i) {
|
|
15424
15424
|
const { radius: s, options: r } = t, a = r.pointStyle, o = r.rotation;
|
|
15425
15425
|
let l = (o || 0) * po;
|
|
15426
|
-
if (
|
|
15426
|
+
if (Rr(a)) {
|
|
15427
15427
|
n.save(), n.translate(e, i), n.rotate(l), n.drawImage(a, -a.width / 2, -a.height / 2, a.width, a.height), n.restore();
|
|
15428
15428
|
return;
|
|
15429
15429
|
}
|
|
@@ -15496,7 +15496,7 @@ function UM(n, { x: t, y: e }, i, { fonts: s, colors: r }) {
|
|
|
15496
15496
|
}
|
|
15497
15497
|
function VM(n, t) {
|
|
15498
15498
|
const e = Tn(n) ? n : t;
|
|
15499
|
-
return Tn(e) ?
|
|
15499
|
+
return Tn(e) ? Ar(e, 0, 1) : 1;
|
|
15500
15500
|
}
|
|
15501
15501
|
const Uh = ["left", "bottom", "top", "right"];
|
|
15502
15502
|
function XM(n, t) {
|
|
@@ -15687,7 +15687,7 @@ function Zh(n, t) {
|
|
|
15687
15687
|
function lS(n, t, e) {
|
|
15688
15688
|
const i = e.label;
|
|
15689
15689
|
i.backgroundColor = "transparent", i.callout.display = !1;
|
|
15690
|
-
const s = jo(i.position), r = Ut(i.padding), a =
|
|
15690
|
+
const s = jo(i.position), r = Ut(i.padding), a = Ir(n.ctx, i), o = aS({ properties: t, options: e }, a, s, r), l = oS({ properties: t, options: e }, a, s, r), c = a.width + r.width, u = a.height + r.height;
|
|
15691
15691
|
return {
|
|
15692
15692
|
x: o,
|
|
15693
15693
|
y: l,
|
|
@@ -15700,12 +15700,12 @@ function lS(n, t, e) {
|
|
|
15700
15700
|
rotation: i.rotation
|
|
15701
15701
|
};
|
|
15702
15702
|
}
|
|
15703
|
-
const
|
|
15703
|
+
const Za = ["enter", "leave"], qo = Za.concat("click");
|
|
15704
15704
|
function cS(n, t, e) {
|
|
15705
|
-
t.listened = Yh(e, qo, t.listeners), t.moveListened = !1,
|
|
15705
|
+
t.listened = Yh(e, qo, t.listeners), t.moveListened = !1, Za.forEach((i) => {
|
|
15706
15706
|
xe(e[i]) && (t.moveListened = !0);
|
|
15707
15707
|
}), (!t.listened || !t.moveListened) && t.annotations.forEach((i) => {
|
|
15708
|
-
!t.listened && xe(i.click) && (t.listened = !0), t.moveListened ||
|
|
15708
|
+
!t.listened && xe(i.click) && (t.listened = !0), t.moveListened || Za.forEach((s) => {
|
|
15709
15709
|
xe(i[s]) && (t.listened = !0, t.moveListened = !0);
|
|
15710
15710
|
});
|
|
15711
15711
|
});
|
|
@@ -15822,7 +15822,7 @@ class wi extends Qt {
|
|
|
15822
15822
|
return Qn(this, t);
|
|
15823
15823
|
}
|
|
15824
15824
|
draw(t) {
|
|
15825
|
-
t.save(),
|
|
15825
|
+
t.save(), Lr(t, this.getCenterPoint(), this.options.rotation), $h(t, this, this.options), t.restore();
|
|
15826
15826
|
}
|
|
15827
15827
|
get label() {
|
|
15828
15828
|
return this.elements && this.elements[0];
|
|
@@ -15897,7 +15897,7 @@ wi.descriptors = {
|
|
|
15897
15897
|
_fallback: !0
|
|
15898
15898
|
}
|
|
15899
15899
|
};
|
|
15900
|
-
class
|
|
15900
|
+
class Fr extends Qt {
|
|
15901
15901
|
inRange(t, e, i, s) {
|
|
15902
15902
|
return Lh(
|
|
15903
15903
|
{ x: t, y: e },
|
|
@@ -15911,14 +15911,14 @@ class Ir extends Qt {
|
|
|
15911
15911
|
}
|
|
15912
15912
|
draw(t) {
|
|
15913
15913
|
const e = this.options;
|
|
15914
|
-
!e.display || !e.content || (kS(t, this), t.save(),
|
|
15914
|
+
!e.display || !e.content || (kS(t, this), t.save(), Lr(t, this.getCenterPoint(), this.rotation), qh(t, this, e, this._fitRatio), t.restore());
|
|
15915
15915
|
}
|
|
15916
15916
|
resolveElementProperties(t, e) {
|
|
15917
15917
|
const i = _S(t, e);
|
|
15918
15918
|
if (!i)
|
|
15919
15919
|
return {};
|
|
15920
15920
|
const { controllerMeta: s, point: r, radius: a } = vS(t, e, i);
|
|
15921
|
-
let o =
|
|
15921
|
+
let o = Ir(t.ctx, e);
|
|
15922
15922
|
const l = MS(o, a);
|
|
15923
15923
|
Hh(e, l) && (o = { width: o.width * l, height: o.height * l });
|
|
15924
15924
|
const { position: c, xAdjust: u, yAdjust: d } = e, h = zh(r, o, { borderWidth: 0, position: c, xAdjust: u, yAdjust: d });
|
|
@@ -15931,8 +15931,8 @@ class Ir extends Qt {
|
|
|
15931
15931
|
};
|
|
15932
15932
|
}
|
|
15933
15933
|
}
|
|
15934
|
-
|
|
15935
|
-
|
|
15934
|
+
Fr.id = "doughnutLabelAnnotation";
|
|
15935
|
+
Fr.defaults = {
|
|
15936
15936
|
autoFit: !0,
|
|
15937
15937
|
autoHide: !0,
|
|
15938
15938
|
backgroundColor: "transparent",
|
|
@@ -15970,7 +15970,7 @@ Ir.defaults = {
|
|
|
15970
15970
|
xAdjust: 0,
|
|
15971
15971
|
yAdjust: 0
|
|
15972
15972
|
};
|
|
15973
|
-
|
|
15973
|
+
Fr.defaultRoutes = {};
|
|
15974
15974
|
function _S(n, t) {
|
|
15975
15975
|
return n.getSortedVisibleDatasetMetas().reduce(function(e, i) {
|
|
15976
15976
|
const s = i.controller;
|
|
@@ -16043,7 +16043,7 @@ class _s extends Qt {
|
|
|
16043
16043
|
}
|
|
16044
16044
|
draw(t) {
|
|
16045
16045
|
const e = this.options, i = !_e(this._visible) || this._visible;
|
|
16046
|
-
!e.display || !e.content || !i || (t.save(),
|
|
16046
|
+
!e.display || !e.content || !i || (t.save(), Lr(t, this.getCenterPoint(), this.rotation), XM(t, this), $h(t, this, e), qh(t, DS(this), e), t.restore());
|
|
16047
16047
|
}
|
|
16048
16048
|
resolveElementProperties(t, e) {
|
|
16049
16049
|
let i;
|
|
@@ -16053,7 +16053,7 @@ class _s extends Qt {
|
|
|
16053
16053
|
const { centerX: o, centerY: l } = $o(t, e);
|
|
16054
16054
|
i = { x: o, y: l };
|
|
16055
16055
|
}
|
|
16056
|
-
const s = Ut(e.padding), r =
|
|
16056
|
+
const s = Ut(e.padding), r = Ir(t.ctx, e), a = zh(i, r, e, s);
|
|
16057
16057
|
return {
|
|
16058
16058
|
initProperties: xi(t, a, e),
|
|
16059
16059
|
pointX: i.x,
|
|
@@ -16136,7 +16136,7 @@ function DS({ x: n, y: t, width: e, height: i, options: s }) {
|
|
|
16136
16136
|
height: i - a.top - a.bottom - s.borderWidth
|
|
16137
16137
|
};
|
|
16138
16138
|
}
|
|
16139
|
-
const Uo = (n, t, e) => ({ x: n.x + e * (t.x - n.x), y: n.y + e * (t.y - n.y) }),
|
|
16139
|
+
const Uo = (n, t, e) => ({ x: n.x + e * (t.x - n.x), y: n.y + e * (t.y - n.y) }), Qa = (n, t, e) => Uo(t, e, Math.abs((n - t.y) / (e.y - t.y))).x, yu = (n, t, e) => Uo(t, e, Math.abs((n - t.x) / (e.x - t.x))).y, qi = (n) => n * n, TS = (n, t, { x: e, y: i, x2: s, y2: r }, a) => a === "y" ? { start: Math.min(i, r), end: Math.max(i, r), value: t } : { start: Math.min(e, s), end: Math.max(e, s), value: n }, xu = (n, t, e, i) => (1 - i) * (1 - i) * n + 2 * (1 - i) * i * t + i * i * e, Ja = (n, t, e, i) => ({ x: xu(n.x, t.x, e.x, i), y: xu(n.y, t.y, e.y, i) }), _u = (n, t, e, i) => 2 * (1 - i) * (t - n) + 2 * i * (e - t), wu = (n, t, e, i) => -Math.atan2(_u(n.x, t.x, e.x, i), _u(n.y, t.y, e.y, i)) + 0.5 * ut;
|
|
16140
16140
|
class ws extends Qt {
|
|
16141
16141
|
inRange(t, e, i, s) {
|
|
16142
16142
|
const r = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
@@ -16144,11 +16144,11 @@ class ws extends Qt {
|
|
|
16144
16144
|
const a = { mouseX: t, mouseY: e }, { path: o, ctx: l } = this;
|
|
16145
16145
|
if (o) {
|
|
16146
16146
|
ln(l, this.options), l.lineWidth += this.options.hitTolerance;
|
|
16147
|
-
const { chart: u } = this.$context, d = t * u.currentDevicePixelRatio, h = e * u.currentDevicePixelRatio, f = l.isPointInStroke(o, d, h) ||
|
|
16147
|
+
const { chart: u } = this.$context, d = t * u.currentDevicePixelRatio, h = e * u.currentDevicePixelRatio, f = l.isPointInStroke(o, d, h) || to(this, a, s);
|
|
16148
16148
|
return l.restore(), f;
|
|
16149
16149
|
}
|
|
16150
16150
|
const c = qi(r);
|
|
16151
|
-
return ES(this, a, c, s) ||
|
|
16151
|
+
return ES(this, a, c, s) || to(this, a, s);
|
|
16152
16152
|
}
|
|
16153
16153
|
return CS(this, { mouseX: t, mouseY: e }, i, { hitSize: r, useFinalPosition: s });
|
|
16154
16154
|
}
|
|
@@ -16164,7 +16164,7 @@ class ws extends Qt {
|
|
|
16164
16164
|
if (o.curve && a)
|
|
16165
16165
|
return HS(t, this, a, l), t.restore();
|
|
16166
16166
|
const { startOpts: c, endOpts: u, startAdjust: d, endAdjust: h } = Jh(this), f = Math.atan2(r - i, s - e);
|
|
16167
|
-
t.translate(e, i), t.rotate(f), t.beginPath(), t.moveTo(0 + d, 0), t.lineTo(l - h, 0), t.shadowColor = o.borderShadowColor, t.stroke(),
|
|
16167
|
+
t.translate(e, i), t.rotate(f), t.beginPath(), t.moveTo(0 + d, 0), t.lineTo(l - h, 0), t.shadowColor = o.borderShadowColor, t.stroke(), eo(t, 0, d, c), eo(t, l, -h, u), t.restore();
|
|
16168
16168
|
}
|
|
16169
16169
|
get label() {
|
|
16170
16170
|
return this.elements && this.elements[0];
|
|
@@ -16292,13 +16292,13 @@ ws.defaultRoutes = {
|
|
|
16292
16292
|
};
|
|
16293
16293
|
function CS(n, { mouseX: t, mouseY: e }, i, { hitSize: s, useFinalPosition: r }) {
|
|
16294
16294
|
const a = TS(t, e, n.getProps(["x", "y", "x2", "y2"], r), i);
|
|
16295
|
-
return Ah(a, s) ||
|
|
16295
|
+
return Ah(a, s) || to(n, { mouseX: t, mouseY: e }, r, i);
|
|
16296
16296
|
}
|
|
16297
16297
|
function PS({ x: n, y: t, x2: e, y2: i }, { top: s, right: r, bottom: a, left: o }) {
|
|
16298
16298
|
return !(n < o && e < o || n > r && e > r || t < s && i < s || t > a && i > a);
|
|
16299
16299
|
}
|
|
16300
16300
|
function Mu({ x: n, y: t }, e, { top: i, right: s, bottom: r, left: a }) {
|
|
16301
|
-
return n < a && (t = yu(a, { x: n, y: t }, e), n = a), n > s && (t = yu(s, { x: n, y: t }, e), n = s), t < i && (n =
|
|
16301
|
+
return n < a && (t = yu(a, { x: n, y: t }, e), n = a), n > s && (t = yu(s, { x: n, y: t }, e), n = s), t < i && (n = Qa(i, { x: n, y: t }, e), t = i), t > r && (n = Qa(r, { x: n, y: t }, e), t = r), { x: n, y: t };
|
|
16302
16302
|
}
|
|
16303
16303
|
function OS(n, t, e) {
|
|
16304
16304
|
const { x: i, y: s } = Mu(n, t, e), { x: r, y: a } = Mu(t, n, e);
|
|
@@ -16309,12 +16309,12 @@ function ES(n, { mouseX: t, mouseY: e }, i = Bn, s) {
|
|
|
16309
16309
|
let f, g;
|
|
16310
16310
|
return h < 0 ? (f = r, g = a) : h > 1 ? (f = o, g = l) : (f = r + h * c, g = a + h * u), qi(t - f) + qi(e - g) <= i;
|
|
16311
16311
|
}
|
|
16312
|
-
function
|
|
16312
|
+
function to(n, { mouseX: t, mouseY: e }, i, s) {
|
|
16313
16313
|
const r = n.label;
|
|
16314
16314
|
return r.options.display && r.inRange(t, e, s, i);
|
|
16315
16315
|
}
|
|
16316
16316
|
function AS(n, t, e) {
|
|
16317
|
-
const i = e.borderWidth, s = Ut(e.padding), r =
|
|
16317
|
+
const i = e.borderWidth, s = Ut(e.padding), r = Ir(n.ctx, e), a = r.width + s.width + i, o = r.height + s.height + i;
|
|
16318
16318
|
return LS(t, e, { width: a, height: o, padding: s }, n.chartArea);
|
|
16319
16319
|
}
|
|
16320
16320
|
function RS(n) {
|
|
@@ -16322,7 +16322,7 @@ function RS(n) {
|
|
|
16322
16322
|
return r > ut / 2 ? r - ut : r < ut / -2 ? r + ut : r;
|
|
16323
16323
|
}
|
|
16324
16324
|
function LS(n, t, e, i) {
|
|
16325
|
-
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" ? RS(n) : qt(t.rotation), h = IS(s, r, d), f = FS(n, t, { labelSize: h, padding: a }, i), g = n.cp ?
|
|
16325
|
+
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" ? RS(n) : qt(t.rotation), h = IS(s, r, d), f = FS(n, t, { labelSize: h, padding: a }, i), g = n.cp ? Ja(c, n.cp, u, f) : Uo(c, u, f), b = { size: h.w, min: i.left, max: i.right, padding: a.left }, x = { size: h.h, min: i.top, max: i.bottom, padding: a.top }, _ = ku(g.x, b) + o, v = ku(g.y, x) + l;
|
|
16326
16326
|
return {
|
|
16327
16327
|
x: _ - s / 2,
|
|
16328
16328
|
y: v - r / 2,
|
|
@@ -16334,7 +16334,7 @@ function LS(n, t, e, i) {
|
|
|
16334
16334
|
pointY: g.y,
|
|
16335
16335
|
width: s,
|
|
16336
16336
|
height: r,
|
|
16337
|
-
rotation:
|
|
16337
|
+
rotation: Dr(d)
|
|
16338
16338
|
};
|
|
16339
16339
|
}
|
|
16340
16340
|
function IS(n, t, e) {
|
|
@@ -16351,7 +16351,7 @@ function FS(n, t, e, i) {
|
|
|
16351
16351
|
}
|
|
16352
16352
|
function Su(n, t, e, i) {
|
|
16353
16353
|
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;
|
|
16354
|
-
return
|
|
16354
|
+
return Ar(Math.max(l, c), 0, 0.25);
|
|
16355
16355
|
}
|
|
16356
16356
|
function NS(n, t) {
|
|
16357
16357
|
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);
|
|
@@ -16379,9 +16379,9 @@ function Du(n, t) {
|
|
|
16379
16379
|
if (!t || !t.display)
|
|
16380
16380
|
return 0;
|
|
16381
16381
|
const { length: e, width: i } = t, s = n.options.borderWidth / 2, r = { x: e, y: i + s };
|
|
16382
|
-
return Math.abs(
|
|
16382
|
+
return Math.abs(Qa(0, r, { x: 0, y: s }));
|
|
16383
16383
|
}
|
|
16384
|
-
function
|
|
16384
|
+
function eo(n, t, e, i) {
|
|
16385
16385
|
if (!i || !i.display)
|
|
16386
16386
|
return;
|
|
16387
16387
|
const { length: s, width: r, fill: a, backgroundColor: o, borderColor: l } = i, c = Math.abs(t - s) + e;
|
|
@@ -16395,10 +16395,10 @@ function zS(n, t, e) {
|
|
|
16395
16395
|
return Zn(d, { x: o, y: l }, c);
|
|
16396
16396
|
}
|
|
16397
16397
|
function Tu(n, { x: t, y: e }, { angle: i, adjust: s }, r) {
|
|
16398
|
-
!r || !r.display || (n.save(), n.translate(t, e), n.rotate(i),
|
|
16398
|
+
!r || !r.display || (n.save(), n.translate(t, e), n.rotate(i), eo(n, 0, -s, r), n.restore());
|
|
16399
16399
|
}
|
|
16400
16400
|
function HS(n, t, e, i) {
|
|
16401
|
-
const { x: s, y: r, x2: a, y2: o, options: l } = t, { startOpts: c, endOpts: u, startAdjust: d, endAdjust: h } = Jh(t), f = { x: s, y: r }, g = { x: a, y: o }, b = wu(f, e, g, 0), x = wu(f, e, g, 1) - ut, _ =
|
|
16401
|
+
const { x: s, y: r, x2: a, y2: o, options: l } = t, { startOpts: c, endOpts: u, startAdjust: d, endAdjust: h } = Jh(t), f = { x: s, y: r }, g = { x: a, y: o }, b = wu(f, e, g, 0), x = wu(f, e, g, 1) - ut, _ = Ja(f, e, g, d / i), v = Ja(f, e, g, 1 - h / i), M = new Path2D();
|
|
16402
16402
|
n.beginPath(), M.moveTo(_.x, _.y), M.quadraticCurveTo(e.x, e.y, v.x, v.y), n.shadowColor = l.borderShadowColor, n.stroke(M), t.path = M, t.ctx = n, Tu(n, _, { angle: b, adjust: d }, c), Tu(n, v, { angle: x, adjust: h }, u);
|
|
16403
16403
|
}
|
|
16404
16404
|
class vs extends Qt {
|
|
@@ -16414,7 +16414,7 @@ class vs extends Qt {
|
|
|
16414
16414
|
}
|
|
16415
16415
|
draw(t) {
|
|
16416
16416
|
const { width: e, height: i, centerX: s, centerY: r, options: a } = this;
|
|
16417
|
-
t.save(),
|
|
16417
|
+
t.save(), Lr(t, this.getCenterPoint(), a.rotation), _i(t, this.options), t.beginPath(), t.fillStyle = a.backgroundColor;
|
|
16418
16418
|
const o = ln(t, a);
|
|
16419
16419
|
t.ellipse(s, r, i / 2, e / 2, ut / 2, 0, 2 * ut), t.fill(), o && (t.shadowColor = a.borderShadowColor, t.stroke()), t.restore();
|
|
16420
16420
|
}
|
|
@@ -16465,7 +16465,7 @@ function WS(n, t, e, i) {
|
|
|
16465
16465
|
const u = qt(e || 0), d = Math.cos(u), h = Math.sin(u), f = Math.pow(d * (n.x - a) + h * (n.y - o), 2), g = Math.pow(h * (n.x - a) - d * (n.y - o), 2);
|
|
16466
16466
|
return f / Math.pow(l + i, 2) + g / Math.pow(c + i, 2) <= 1.0001;
|
|
16467
16467
|
}
|
|
16468
|
-
class
|
|
16468
|
+
class Nr extends Qt {
|
|
16469
16469
|
inRange(t, e, i, s) {
|
|
16470
16470
|
const { x: r, y: a, x2: o, y2: l, width: c } = this.getProps(["x", "y", "x2", "y2", "width"], s), u = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
16471
16471
|
return i !== "x" && i !== "y" ? LM({ x: t, y: e }, this.getCenterPoint(s), c / 2, u) : Ah(i === "y" ? { start: a, end: l, value: e } : { start: r, end: o, value: t }, u);
|
|
@@ -16479,15 +16479,15 @@ class Fr extends Qt {
|
|
|
16479
16479
|
return;
|
|
16480
16480
|
t.save(), t.fillStyle = e.backgroundColor, _i(t, e);
|
|
16481
16481
|
const s = ln(t, e);
|
|
16482
|
-
YM(t, this, this.centerX, this.centerY), s && !
|
|
16482
|
+
YM(t, this, this.centerX, this.centerY), s && !Rr(e.pointStyle) && (t.shadowColor = e.borderShadowColor, t.stroke()), t.restore(), e.borderWidth = i;
|
|
16483
16483
|
}
|
|
16484
16484
|
resolveElementProperties(t, e) {
|
|
16485
16485
|
const i = Gh(t, e);
|
|
16486
16486
|
return i.initProperties = xi(t, i, e), i;
|
|
16487
16487
|
}
|
|
16488
16488
|
}
|
|
16489
|
-
|
|
16490
|
-
|
|
16489
|
+
Nr.id = "pointAnnotation";
|
|
16490
|
+
Nr.defaults = {
|
|
16491
16491
|
adjustScaleRange: !0,
|
|
16492
16492
|
backgroundShadowColor: "transparent",
|
|
16493
16493
|
borderDash: [],
|
|
@@ -16515,11 +16515,11 @@ Fr.defaults = {
|
|
|
16515
16515
|
yValue: void 0,
|
|
16516
16516
|
z: 0
|
|
16517
16517
|
};
|
|
16518
|
-
|
|
16518
|
+
Nr.defaultRoutes = {
|
|
16519
16519
|
borderColor: "color",
|
|
16520
16520
|
backgroundColor: "color"
|
|
16521
16521
|
};
|
|
16522
|
-
class
|
|
16522
|
+
class zr extends Qt {
|
|
16523
16523
|
inRange(t, e, i, s) {
|
|
16524
16524
|
if (i !== "x" && i !== "y")
|
|
16525
16525
|
return this.options.radius >= 0.1 && this.elements.length > 1 && YS(this.elements, t, e, s);
|
|
@@ -16548,8 +16548,8 @@ class Nr extends Qt {
|
|
|
16548
16548
|
return i.elements = a, i;
|
|
16549
16549
|
}
|
|
16550
16550
|
}
|
|
16551
|
-
|
|
16552
|
-
|
|
16551
|
+
zr.id = "polygonAnnotation";
|
|
16552
|
+
zr.defaults = {
|
|
16553
16553
|
adjustScaleRange: !0,
|
|
16554
16554
|
backgroundShadowColor: "transparent",
|
|
16555
16555
|
borderCapStyle: "butt",
|
|
@@ -16582,7 +16582,7 @@ Nr.defaults = {
|
|
|
16582
16582
|
yValue: void 0,
|
|
16583
16583
|
z: 0
|
|
16584
16584
|
};
|
|
16585
|
-
|
|
16585
|
+
zr.defaultRoutes = {
|
|
16586
16586
|
borderColor: "color",
|
|
16587
16587
|
backgroundColor: "color"
|
|
16588
16588
|
};
|
|
@@ -16611,12 +16611,12 @@ function YS(n, t, e, i) {
|
|
|
16611
16611
|
}
|
|
16612
16612
|
const Sn = {
|
|
16613
16613
|
box: wi,
|
|
16614
|
-
doughnutLabel:
|
|
16614
|
+
doughnutLabel: Fr,
|
|
16615
16615
|
ellipse: vs,
|
|
16616
16616
|
label: _s,
|
|
16617
16617
|
line: ws,
|
|
16618
|
-
point:
|
|
16619
|
-
polygon:
|
|
16618
|
+
point: Nr,
|
|
16619
|
+
polygon: zr
|
|
16620
16620
|
};
|
|
16621
16621
|
Object.keys(Sn).forEach((n) => {
|
|
16622
16622
|
Ot.describe(`elements.${Sn[n].id}`, {
|
|
@@ -16625,7 +16625,7 @@ Object.keys(Sn).forEach((n) => {
|
|
|
16625
16625
|
});
|
|
16626
16626
|
const jS = {
|
|
16627
16627
|
update: Object.assign
|
|
16628
|
-
}, $S = qo.concat(wr), Cu = (n, t) => rt(t) ?
|
|
16628
|
+
}, $S = qo.concat(wr), Cu = (n, t) => rt(t) ? io(n, t) : n, no = (n) => n === "color" || n === "font";
|
|
16629
16629
|
function Vo(n = "line") {
|
|
16630
16630
|
return Sn[n] ? n : (console.warn(`Unknown annotation type: '${n}', defaulting to 'line'`), "line");
|
|
16631
16631
|
}
|
|
@@ -16659,18 +16659,18 @@ function ef(n) {
|
|
|
16659
16659
|
const t = Sn[Vo(n.type)], e = {};
|
|
16660
16660
|
e.id = n.id, e.type = n.type, e.drawTime = n.drawTime, Object.assign(
|
|
16661
16661
|
e,
|
|
16662
|
-
|
|
16663
|
-
|
|
16662
|
+
io(n, t.defaults),
|
|
16663
|
+
io(n, t.defaultRoutes)
|
|
16664
16664
|
);
|
|
16665
16665
|
for (const i of $S)
|
|
16666
16666
|
e[i] = n[i];
|
|
16667
16667
|
return e;
|
|
16668
16668
|
}
|
|
16669
|
-
function
|
|
16669
|
+
function io(n, t) {
|
|
16670
16670
|
const e = {};
|
|
16671
16671
|
for (const i of Object.keys(t)) {
|
|
16672
16672
|
const s = t[i], r = n[i];
|
|
16673
|
-
|
|
16673
|
+
no(i) && mt(r) ? e[i] = r.map((a) => Cu(a, s)) : e[i] = Cu(r, s);
|
|
16674
16674
|
}
|
|
16675
16675
|
return e;
|
|
16676
16676
|
}
|
|
@@ -16800,10 +16800,10 @@ var Ou = {
|
|
|
16800
16800
|
},
|
|
16801
16801
|
common: {
|
|
16802
16802
|
label: {
|
|
16803
|
-
_indexable:
|
|
16803
|
+
_indexable: no,
|
|
16804
16804
|
_fallback: !0
|
|
16805
16805
|
},
|
|
16806
|
-
_indexable:
|
|
16806
|
+
_indexable: no
|
|
16807
16807
|
}
|
|
16808
16808
|
},
|
|
16809
16809
|
additionalOptionScopes: [""]
|
|
@@ -16940,7 +16940,7 @@ const nf = "#6c7489", ek = "#995c00", Eu = "20px", Au = "24px", nk = "40px", ik
|
|
|
16940
16940
|
n.context ? (K(), ft("span", ak, ct(n.context), 1)) : Rt("", !0)
|
|
16941
16941
|
]),
|
|
16942
16942
|
dt("ul", ok, [
|
|
16943
|
-
(K(!0), ft(ns, null,
|
|
16943
|
+
(K(!0), ft(ns, null, oo(n.series, ({ backgroundColor: b, borderColor: x, label: _, value: v }) => (K(), ft(ns, { key: _ }, [
|
|
16944
16944
|
n.series.length ? (K(), ft("li", lk, [
|
|
16945
16945
|
dt("div", {
|
|
16946
16946
|
class: "square-marker",
|
|
@@ -17025,7 +17025,7 @@ const nf = "#6c7489", ek = "#995c00", Eu = "20px", Au = "24px", nk = "40px", ik
|
|
|
17025
17025
|
a.value = t.items, e.value && b.observe(e.value), window.requestAnimationFrame(() => {
|
|
17026
17026
|
d();
|
|
17027
17027
|
});
|
|
17028
|
-
}),
|
|
17028
|
+
}), ao(() => {
|
|
17029
17029
|
e.value && b.unobserve(e.value);
|
|
17030
17030
|
});
|
|
17031
17031
|
const x = (M = 0, T) => {
|
|
@@ -17050,7 +17050,7 @@ const nf = "#6c7489", ek = "#995c00", Eu = "20px", Au = "24px", nk = "40px", ik
|
|
|
17050
17050
|
class: Yn(["legend-container", v(st(r))]),
|
|
17051
17051
|
"data-testid": "legend"
|
|
17052
17052
|
}, [
|
|
17053
|
-
(K(!0), ft(ns, null,
|
|
17053
|
+
(K(!0), ft(ns, null, oo(n.items, ({ fillStyle: S, strokeStyle: P, text: D, datasetIndex: m, index: y, value: k }) => (K(), ft("li", {
|
|
17054
17054
|
key: D,
|
|
17055
17055
|
ref_for: !0,
|
|
17056
17056
|
ref_key: "legendItemsRef",
|
|
@@ -17075,8 +17075,8 @@ const nf = "#6c7489", ek = "#995c00", Eu = "20px", Au = "24px", nk = "40px", ik
|
|
|
17075
17075
|
}
|
|
17076
17076
|
}), Go = /* @__PURE__ */ cn(pk, [["__scopeId", "data-v-8e9f2f19"]]);
|
|
17077
17077
|
var Jt = [];
|
|
17078
|
-
for (var
|
|
17079
|
-
Jt.push((
|
|
17078
|
+
for (var _a = 0; _a < 256; ++_a)
|
|
17079
|
+
Jt.push((_a + 256).toString(16).slice(1));
|
|
17080
17080
|
function mk(n, t = 0) {
|
|
17081
17081
|
return (Jt[n[t + 0]] + Jt[n[t + 1]] + Jt[n[t + 2]] + Jt[n[t + 3]] + "-" + Jt[n[t + 4]] + Jt[n[t + 5]] + "-" + Jt[n[t + 6]] + Jt[n[t + 7]] + "-" + Jt[n[t + 8]] + Jt[n[t + 9]] + "-" + Jt[n[t + 10]] + Jt[n[t + 11]] + Jt[n[t + 12]] + Jt[n[t + 13]] + Jt[n[t + 14]] + Jt[n[t + 15]]).toLowerCase();
|
|
17082
17082
|
}
|
|
@@ -17204,12 +17204,12 @@ const Lu = (n, t) => {
|
|
|
17204
17204
|
...j,
|
|
17205
17205
|
position: Q ? { x: "start", y: "center" } : { x: "center", y: "end" },
|
|
17206
17206
|
yAdjust: () => Q ? 0 : -Math.abs(ev()),
|
|
17207
|
-
content: (X) =>
|
|
17207
|
+
content: (X) => ua(r(X, H), Y)
|
|
17208
17208
|
}, nt = {
|
|
17209
17209
|
...j,
|
|
17210
17210
|
content: (X) => $c(r(X, H), jc(X.chart, L)),
|
|
17211
17211
|
position: Q ? { x: "start", y: "center" } : { x: "center", y: "end" },
|
|
17212
|
-
xAdjust: (X) => Q ? Yc(
|
|
17212
|
+
xAdjust: (X) => Q ? Yc(ua(r(X, H), Y)) : 0,
|
|
17213
17213
|
color: Kw
|
|
17214
17214
|
};
|
|
17215
17215
|
return {
|
|
@@ -17223,7 +17223,7 @@ const Lu = (n, t) => {
|
|
|
17223
17223
|
text: "",
|
|
17224
17224
|
offset: -50
|
|
17225
17225
|
// Avoids App Shell obstruction
|
|
17226
|
-
}), b = St(t, "metricUnit"), x = W(() => St(t, "orientation").value === "horizontal"), _ =
|
|
17226
|
+
}), b = St(t, "metricUnit"), x = W(() => St(t, "orientation").value === "horizontal"), _ = lo({
|
|
17227
17227
|
showTooltip: !1,
|
|
17228
17228
|
tooltipContext: "",
|
|
17229
17229
|
tooltipSeries: [],
|
|
@@ -17264,7 +17264,7 @@ const Lu = (n, t) => {
|
|
|
17264
17264
|
if (g.value.show = !1, H.event.type === "mousemove") {
|
|
17265
17265
|
const Y = H.event, V = L.options.indexAxis, Q = L.scales, j = L.scales[V].getLabelForValue(Number(L.scales[V].getValueForPixel(Y[V])));
|
|
17266
17266
|
if (((nt) => nt === "x" ? Y.y > Q.x.top : Y.x < Q.y.right)(V))
|
|
17267
|
-
if (_.locked || (_.showTooltip = !1), j.length >
|
|
17267
|
+
if (_.locked || (_.showTooltip = !1), j.length > Xa) {
|
|
17268
17268
|
const X = L.canvas.getContext("2d").measureText(j).width, Dt = Math.abs(Math.round(Y.x - X * 0.5)), gt = Math.round(Y.x + X * 0.5);
|
|
17269
17269
|
g.value.left = V === "x" ? `${(Dt > 0 ? Dt : gt) - g.value.offset}px` : `${Y.x - X * 0.5 - g.value.offset}px`, g.value.top = `${Y.y - 50}px`, g.value.show = !0, g.value.text = j;
|
|
17270
17270
|
} else
|
|
@@ -17295,7 +17295,7 @@ const Lu = (n, t) => {
|
|
|
17295
17295
|
});
|
|
17296
17296
|
bt.useReportChartDataForSynthetics(St(t, "chartData"), St(t, "syntheticsDataKey")), Sr(() => {
|
|
17297
17297
|
t.annotations && Ae.register(Ou), s.value && (k.value = s.value.offsetWidth, E.value = s.value.offsetHeight, A.observe(s.value));
|
|
17298
|
-
}),
|
|
17298
|
+
}), co(() => {
|
|
17299
17299
|
s.value && A.unobserve(s.value);
|
|
17300
17300
|
});
|
|
17301
17301
|
const G = W(() => {
|
|
@@ -17335,9 +17335,9 @@ const Lu = (n, t) => {
|
|
|
17335
17335
|
), I = W(() => {
|
|
17336
17336
|
v.value;
|
|
17337
17337
|
const L = t.chartData.labels, H = t.chartData.datasets, Y = L.map((j, B) => H.reduce((nt, X) => isNaN(Number(X.data[B])) ? nt : nt + Number(X.data[B]), 0)), V = $.value ? jc($.value, t.chartData) : nv(t.chartData);
|
|
17338
|
-
return Y.map((j) => Yc(
|
|
17338
|
+
return Y.map((j) => Yc(ua(j, b.value) + $c(j, V))).reduce((j, B) => Math.max(j, B), 0) + Iu;
|
|
17339
17339
|
});
|
|
17340
|
-
|
|
17340
|
+
ao(() => {
|
|
17341
17341
|
Ae.unregister(Ou);
|
|
17342
17342
|
});
|
|
17343
17343
|
const at = {
|
|
@@ -17469,7 +17469,7 @@ Ed._date.override({
|
|
|
17469
17469
|
case "hour":
|
|
17470
17470
|
return ox(n, t);
|
|
17471
17471
|
case "day":
|
|
17472
|
-
return
|
|
17472
|
+
return Er(n, t);
|
|
17473
17473
|
case "week":
|
|
17474
17474
|
return fx(n, t);
|
|
17475
17475
|
case "month":
|
|
@@ -17515,7 +17515,7 @@ Ed._date.override({
|
|
|
17515
17515
|
case "hour":
|
|
17516
17516
|
return ww(n);
|
|
17517
17517
|
case "day":
|
|
17518
|
-
return
|
|
17518
|
+
return $a(n);
|
|
17519
17519
|
case "week":
|
|
17520
17520
|
return qe(n);
|
|
17521
17521
|
case "isoWeek":
|
|
@@ -17597,7 +17597,7 @@ const rf = {
|
|
|
17597
17597
|
attrs: t
|
|
17598
17598
|
}) : (n, t) => Object.assign(n, t);
|
|
17599
17599
|
function ri(n) {
|
|
17600
|
-
return nd(n) ?
|
|
17600
|
+
return nd(n) ? Da(n) : n;
|
|
17601
17601
|
}
|
|
17602
17602
|
function Lk(n) {
|
|
17603
17603
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : n;
|
|
@@ -17630,7 +17630,7 @@ const Nk = oe({
|
|
|
17630
17630
|
props: Ak,
|
|
17631
17631
|
setup(n, t) {
|
|
17632
17632
|
let { expose: e, slots: i } = t;
|
|
17633
|
-
const s = ot(null), r =
|
|
17633
|
+
const s = ot(null), r = ro(null);
|
|
17634
17634
|
e({
|
|
17635
17635
|
chart: r
|
|
17636
17636
|
});
|
|
@@ -17646,19 +17646,19 @@ const Nk = oe({
|
|
|
17646
17646
|
plugins: h
|
|
17647
17647
|
});
|
|
17648
17648
|
}, o = () => {
|
|
17649
|
-
const c =
|
|
17649
|
+
const c = Da(r.value);
|
|
17650
17650
|
c && (n.destroyDelay > 0 ? setTimeout(() => {
|
|
17651
17651
|
c.destroy(), r.value = null;
|
|
17652
17652
|
}, n.destroyDelay) : (c.destroy(), r.value = null));
|
|
17653
17653
|
}, l = (c) => {
|
|
17654
17654
|
c.update(n.updateMode);
|
|
17655
17655
|
};
|
|
17656
|
-
return Sr(a),
|
|
17656
|
+
return Sr(a), co(o), ye([
|
|
17657
17657
|
() => n.options,
|
|
17658
17658
|
() => n.data
|
|
17659
17659
|
], (c, u) => {
|
|
17660
17660
|
let [d, h] = c, [f, g] = u;
|
|
17661
|
-
const b =
|
|
17661
|
+
const b = Da(r.value);
|
|
17662
17662
|
if (!b)
|
|
17663
17663
|
return;
|
|
17664
17664
|
let x = !1;
|
|
@@ -17675,13 +17675,13 @@ const Nk = oe({
|
|
|
17675
17675
|
});
|
|
17676
17676
|
}, {
|
|
17677
17677
|
deep: !0
|
|
17678
|
-
}), () =>
|
|
17678
|
+
}), () => Ta("canvas", {
|
|
17679
17679
|
role: "img",
|
|
17680
17680
|
ariaLabel: n.ariaLabel,
|
|
17681
17681
|
ariaDescribedby: n.ariaDescribedby,
|
|
17682
17682
|
ref: s
|
|
17683
17683
|
}, [
|
|
17684
|
-
|
|
17684
|
+
Ta("p", {}, [
|
|
17685
17685
|
i.default ? i.default() : ""
|
|
17686
17686
|
])
|
|
17687
17687
|
]);
|
|
@@ -17692,12 +17692,12 @@ function Ko(n, t) {
|
|
|
17692
17692
|
props: rf,
|
|
17693
17693
|
setup(e, i) {
|
|
17694
17694
|
let { expose: s } = i;
|
|
17695
|
-
const r =
|
|
17695
|
+
const r = ro(null), a = (o) => {
|
|
17696
17696
|
r.value = o == null ? void 0 : o.chart;
|
|
17697
17697
|
};
|
|
17698
17698
|
return s({
|
|
17699
17699
|
chart: r
|
|
17700
|
-
}), () =>
|
|
17700
|
+
}), () => Ta(Nk, Rk({
|
|
17701
17701
|
ref: a
|
|
17702
17702
|
}, {
|
|
17703
17703
|
type: n,
|
|
@@ -17745,7 +17745,7 @@ const zk = /* @__PURE__ */ Ko("bar", Ki), lf = /* @__PURE__ */ Ko("doughnut", an
|
|
|
17745
17745
|
}
|
|
17746
17746
|
},
|
|
17747
17747
|
setup(n) {
|
|
17748
|
-
const t = n, { translateUnit: e } = bt.useTranslatedUnits(), i = ot(kn()), s = ot(kn()), r = ot([]), a =
|
|
17748
|
+
const t = n, { translateUnit: e } = bt.useTranslatedUnits(), i = ot(kn()), s = ot(kn()), r = ot([]), a = lo({
|
|
17749
17749
|
showTooltip: !1,
|
|
17750
17750
|
tooltipContext: "",
|
|
17751
17751
|
tooltipSeries: [],
|
|
@@ -17946,7 +17946,7 @@ const zk = /* @__PURE__ */ Ko("bar", Ki), lf = /* @__PURE__ */ Ko("doughnut", an
|
|
|
17946
17946
|
},
|
|
17947
17947
|
emits: ["zoom-time-range"],
|
|
17948
17948
|
setup(n, { emit: t }) {
|
|
17949
|
-
const e = n, i = t, { translateUnit: s } = bt.useTranslatedUnits(), r = ot(), a = ot(kn()), o = ot(kn()), l = ot([]), c = ot(), u = ot(es("legendPosition", Ht.Right)), d = ot(!1), h =
|
|
17949
|
+
const e = n, i = t, { translateUnit: s } = bt.useTranslatedUnits(), r = ot(), a = ot(kn()), o = ot(kn()), l = ot([]), c = ot(), u = ot(es("legendPosition", Ht.Right)), d = ot(!1), h = lo({
|
|
17950
17950
|
showTooltip: !1,
|
|
17951
17951
|
tooltipContext: 0,
|
|
17952
17952
|
tooltipSeries: [],
|
|
@@ -17981,7 +17981,7 @@ const zk = /* @__PURE__ */ Ko("bar", Ki), lf = /* @__PURE__ */ Ko("doughnut", an
|
|
|
17981
17981
|
dimensionAxesTitle: St(e, "dimensionAxesTitle")
|
|
17982
17982
|
});
|
|
17983
17983
|
bt.useReportChartDataForSynthetics(St(e, "chartData"), St(e, "syntheticsDataKey"));
|
|
17984
|
-
const v = (m) =>
|
|
17984
|
+
const v = (m) => Ka(m, { short: ["daily", "weekly"].includes(e.granularity) }), M = (m) => ({
|
|
17985
17985
|
[Ht.Right]: "legend-row",
|
|
17986
17986
|
[Ht.Bottom]: "column",
|
|
17987
17987
|
[Ht.Hidden]: "hidden"
|
|
@@ -18006,7 +18006,7 @@ const zk = /* @__PURE__ */ Ko("bar", Ki), lf = /* @__PURE__ */ Ko("doughnut", an
|
|
|
18006
18006
|
}, () => {
|
|
18007
18007
|
var m;
|
|
18008
18008
|
(m = r.value) != null && m.chart && (r.value.chart.canvas.removeEventListener("dragSelect", P), r.value.chart.canvas.removeEventListener("dragSelectMove", D), r.value.chart.canvas.addEventListener("dragSelect", P), r.value.chart.canvas.addEventListener("dragSelectMove", D));
|
|
18009
|
-
}),
|
|
18009
|
+
}), co(() => {
|
|
18010
18010
|
var m;
|
|
18011
18011
|
(m = r.value) != null && m.chart && (r.value.chart.canvas.removeEventListener("dragSelect", P), r.value.chart.canvas.removeEventListener("dragSelectMove", D));
|
|
18012
18012
|
}), (m, y) => (K(), ft("div", {
|
|
@@ -18140,7 +18140,7 @@ vr.exports;
|
|
|
18140
18140
|
return p ? "Symbol(src)_1." + p : "";
|
|
18141
18141
|
}(), ie = Ve.toString, he = we.hasOwnProperty, Vt = we.toString, Ms = RegExp(
|
|
18142
18142
|
"^" + ie.call(he).replace(H, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
18143
|
-
), Jn = X.Symbol, Jo = X.Uint8Array, mf = we.propertyIsEnumerable, bf = Ie.splice, yf = yt(Object.keys, Object),
|
|
18143
|
+
), Jn = X.Symbol, Jo = X.Uint8Array, mf = we.propertyIsEnumerable, bf = Ie.splice, yf = yt(Object.keys, Object), Hr = ti(X, "DataView"), vi = ti(X, "Map"), Wr = ti(X, "Promise"), Br = ti(X, "Set"), Yr = ti(X, "WeakMap"), Mi = ti(Object, "create"), xf = An(Hr), _f = An(vi), wf = An(Wr), vf = An(Br), Mf = An(Yr), Ss = Jn ? Jn.prototype : void 0, jr = Ss ? Ss.valueOf : void 0, tl = Ss ? Ss.toString : void 0;
|
|
18144
18144
|
function En(p) {
|
|
18145
18145
|
var w = -1, O = p ? p.length : 0;
|
|
18146
18146
|
for (this.clear(); ++w < O; ) {
|
|
@@ -18293,8 +18293,8 @@ vr.exports;
|
|
|
18293
18293
|
function Kf(p, w) {
|
|
18294
18294
|
return p != null && w in Object(p);
|
|
18295
18295
|
}
|
|
18296
|
-
function
|
|
18297
|
-
return p === w ? !0 : p == null || w == null || !Os(p) && !Es(w) ? p !== p && w !== w : Zf(p, w,
|
|
18296
|
+
function $r(p, w, O, F, it) {
|
|
18297
|
+
return p === w ? !0 : p == null || w == null || !Os(p) && !Es(w) ? p !== p && w !== w : Zf(p, w, $r, O, F, it);
|
|
18298
18298
|
}
|
|
18299
18299
|
function Zf(p, w, O, F, it, U) {
|
|
18300
18300
|
var lt = Rn(p), Xt = Rn(w), zt = u, te = u;
|
|
@@ -18328,7 +18328,7 @@ vr.exports;
|
|
|
18328
18328
|
return !1;
|
|
18329
18329
|
} else {
|
|
18330
18330
|
var fe = new Ke(), ge;
|
|
18331
|
-
if (!(ge === void 0 ?
|
|
18331
|
+
if (!(ge === void 0 ? $r(te, zt, F, r | a, fe) : ge))
|
|
18332
18332
|
return !1;
|
|
18333
18333
|
}
|
|
18334
18334
|
}
|
|
@@ -18341,7 +18341,7 @@ vr.exports;
|
|
|
18341
18341
|
return w.test(An(p));
|
|
18342
18342
|
}
|
|
18343
18343
|
function tg(p) {
|
|
18344
|
-
return Es(p) &&
|
|
18344
|
+
return Es(p) && Ur(p.length) && !!j[Vt.call(p)];
|
|
18345
18345
|
}
|
|
18346
18346
|
function eg(p) {
|
|
18347
18347
|
return typeof p == "function" ? p : p == null ? vg : typeof p == "object" ? Rn(p) ? sg(p[0], p[1]) : ig(p) : Mg(p);
|
|
@@ -18363,7 +18363,7 @@ vr.exports;
|
|
|
18363
18363
|
function sg(p, w) {
|
|
18364
18364
|
return Cs(p) && rl(w) ? al(Ps(p), w) : function(O) {
|
|
18365
18365
|
var F = xg(O, p);
|
|
18366
|
-
return F === void 0 && F === w ? _g(O, p) :
|
|
18366
|
+
return F === void 0 && F === w ? _g(O, p) : $r(w, F, void 0, r | a);
|
|
18367
18367
|
};
|
|
18368
18368
|
}
|
|
18369
18369
|
function rg(p) {
|
|
@@ -18374,7 +18374,7 @@ vr.exports;
|
|
|
18374
18374
|
function ag(p) {
|
|
18375
18375
|
if (typeof p == "string")
|
|
18376
18376
|
return p;
|
|
18377
|
-
if (
|
|
18377
|
+
if (Vr(p))
|
|
18378
18378
|
return tl ? tl.call(p) : "";
|
|
18379
18379
|
var w = p + "";
|
|
18380
18380
|
return w == "0" && 1 / p == -o ? "-0" : w;
|
|
@@ -18455,8 +18455,8 @@ vr.exports;
|
|
|
18455
18455
|
var fe = il(Xt(p), Xt(w), F, it, U, lt);
|
|
18456
18456
|
return lt.delete(p), fe;
|
|
18457
18457
|
case D:
|
|
18458
|
-
if (
|
|
18459
|
-
return
|
|
18458
|
+
if (jr)
|
|
18459
|
+
return jr.call(p) == jr.call(w);
|
|
18460
18460
|
}
|
|
18461
18461
|
return !1;
|
|
18462
18462
|
}
|
|
@@ -18507,7 +18507,7 @@ vr.exports;
|
|
|
18507
18507
|
return Jf(O) ? O : void 0;
|
|
18508
18508
|
}
|
|
18509
18509
|
var dn = Gf;
|
|
18510
|
-
(
|
|
18510
|
+
(Hr && dn(new Hr(new ArrayBuffer(1))) != k || vi && dn(new vi()) != x || Wr && dn(Wr.resolve()) != M || Br && dn(new Br()) != S || Yr && dn(new Yr()) != m) && (dn = function(p) {
|
|
18511
18511
|
var w = Vt.call(p), O = w == v ? p.constructor : void 0, F = O ? An(O) : void 0;
|
|
18512
18512
|
if (F)
|
|
18513
18513
|
switch (F) {
|
|
@@ -18535,7 +18535,7 @@ vr.exports;
|
|
|
18535
18535
|
if (F)
|
|
18536
18536
|
return F;
|
|
18537
18537
|
var lt = p ? p.length : 0;
|
|
18538
|
-
return !!lt &&
|
|
18538
|
+
return !!lt && Ur(lt) && sl(U, lt) && (Rn(p) || ll(p));
|
|
18539
18539
|
}
|
|
18540
18540
|
function sl(p, w) {
|
|
18541
18541
|
return w = w ?? l, !!w && (typeof p == "number" || Q.test(p)) && p > -1 && p % 1 == 0 && p < w;
|
|
@@ -18544,7 +18544,7 @@ vr.exports;
|
|
|
18544
18544
|
if (Rn(p))
|
|
18545
18545
|
return !1;
|
|
18546
18546
|
var O = typeof p;
|
|
18547
|
-
return O == "number" || O == "symbol" || O == "boolean" || p == null ||
|
|
18547
|
+
return O == "number" || O == "symbol" || O == "boolean" || p == null || Vr(p) ? !0 : ht.test(p) || !Z.test(p) || w != null && p in Object(w);
|
|
18548
18548
|
}
|
|
18549
18549
|
function hg(p) {
|
|
18550
18550
|
var w = typeof p;
|
|
@@ -18565,7 +18565,7 @@ vr.exports;
|
|
|
18565
18565
|
return O == null ? !1 : O[p] === w && (w !== void 0 || p in Object(O));
|
|
18566
18566
|
};
|
|
18567
18567
|
}
|
|
18568
|
-
var pg =
|
|
18568
|
+
var pg = qr(function(p) {
|
|
18569
18569
|
p = yg(p);
|
|
18570
18570
|
var w = [];
|
|
18571
18571
|
return z.test(p) && w.push(""), p.replace(L, function(O, F, it, U) {
|
|
@@ -18573,7 +18573,7 @@ vr.exports;
|
|
|
18573
18573
|
}), w;
|
|
18574
18574
|
});
|
|
18575
18575
|
function Ps(p) {
|
|
18576
|
-
if (typeof p == "string" ||
|
|
18576
|
+
if (typeof p == "string" || Vr(p))
|
|
18577
18577
|
return p;
|
|
18578
18578
|
var w = p + "";
|
|
18579
18579
|
return w == "0" && 1 / p == -o ? "-0" : w;
|
|
@@ -18591,7 +18591,7 @@ vr.exports;
|
|
|
18591
18591
|
}
|
|
18592
18592
|
return "";
|
|
18593
18593
|
}
|
|
18594
|
-
function
|
|
18594
|
+
function qr(p, w) {
|
|
18595
18595
|
if (typeof p != "function" || w && typeof w != "function")
|
|
18596
18596
|
throw new TypeError(i);
|
|
18597
18597
|
var O = function() {
|
|
@@ -18601,9 +18601,9 @@ vr.exports;
|
|
|
18601
18601
|
var lt = p.apply(this, F);
|
|
18602
18602
|
return O.cache = U.set(it, lt), lt;
|
|
18603
18603
|
};
|
|
18604
|
-
return O.cache = new (
|
|
18604
|
+
return O.cache = new (qr.Cache || Ge)(), O;
|
|
18605
18605
|
}
|
|
18606
|
-
|
|
18606
|
+
qr.Cache = Ge;
|
|
18607
18607
|
function ol(p, w) {
|
|
18608
18608
|
return p === w || p !== p && w !== w;
|
|
18609
18609
|
}
|
|
@@ -18612,7 +18612,7 @@ vr.exports;
|
|
|
18612
18612
|
}
|
|
18613
18613
|
var Rn = Array.isArray;
|
|
18614
18614
|
function cl(p) {
|
|
18615
|
-
return p != null &&
|
|
18615
|
+
return p != null && Ur(p.length) && !ul(p);
|
|
18616
18616
|
}
|
|
18617
18617
|
function mg(p) {
|
|
18618
18618
|
return Es(p) && cl(p);
|
|
@@ -18621,7 +18621,7 @@ vr.exports;
|
|
|
18621
18621
|
var w = Os(p) ? Vt.call(p) : "";
|
|
18622
18622
|
return w == g || w == b;
|
|
18623
18623
|
}
|
|
18624
|
-
function
|
|
18624
|
+
function Ur(p) {
|
|
18625
18625
|
return typeof p == "number" && p > -1 && p % 1 == 0 && p <= l;
|
|
18626
18626
|
}
|
|
18627
18627
|
function Os(p) {
|
|
@@ -18631,7 +18631,7 @@ vr.exports;
|
|
|
18631
18631
|
function Es(p) {
|
|
18632
18632
|
return !!p && typeof p == "object";
|
|
18633
18633
|
}
|
|
18634
|
-
function
|
|
18634
|
+
function Vr(p) {
|
|
18635
18635
|
return typeof p == "symbol" || Es(p) && Vt.call(p) == D;
|
|
18636
18636
|
}
|
|
18637
18637
|
var bg = ce ? de(ce) : tg;
|
|
@@ -19419,7 +19419,7 @@ const CD = ["id"], PD = /* @__PURE__ */ oe({
|
|
|
19419
19419
|
"data-testid": "export-csv",
|
|
19420
19420
|
onClick: c
|
|
19421
19421
|
}, [
|
|
19422
|
-
|
|
19422
|
+
kr(u.$slots, "default", {}, () => [
|
|
19423
19423
|
Ee("Download " + ct(n.filename), 1)
|
|
19424
19424
|
])
|
|
19425
19425
|
], 8, CD));
|
|
@@ -19441,7 +19441,7 @@ const CD = ["id"], PD = /* @__PURE__ */ oe({
|
|
|
19441
19441
|
labels: i.headers
|
|
19442
19442
|
}, {
|
|
19443
19443
|
default: Ct(() => [
|
|
19444
|
-
|
|
19444
|
+
kr(i.$slots, "default")
|
|
19445
19445
|
]),
|
|
19446
19446
|
_: 3
|
|
19447
19447
|
}, 8, ["data", "fields", "filename", "labels"])
|
|
@@ -19505,7 +19505,7 @@ function ND(n, t) {
|
|
|
19505
19505
|
parseInt(i[6], 10)
|
|
19506
19506
|
];
|
|
19507
19507
|
}
|
|
19508
|
-
const
|
|
19508
|
+
const wa = {}, ju = new Intl.DateTimeFormat("en-US", {
|
|
19509
19509
|
hourCycle: "h23",
|
|
19510
19510
|
timeZone: "America/New_York",
|
|
19511
19511
|
year: "numeric",
|
|
@@ -19516,7 +19516,7 @@ const _a = {}, ju = new Intl.DateTimeFormat("en-US", {
|
|
|
19516
19516
|
second: "2-digit"
|
|
19517
19517
|
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), zD = ju === "06/25/2014, 00:00:00" || ju === "06/25/2014 00:00:00";
|
|
19518
19518
|
function HD(n) {
|
|
19519
|
-
return
|
|
19519
|
+
return wa[n] || (wa[n] = zD ? new Intl.DateTimeFormat("en-US", {
|
|
19520
19520
|
hourCycle: "h23",
|
|
19521
19521
|
timeZone: n,
|
|
19522
19522
|
year: "numeric",
|
|
@@ -19534,13 +19534,13 @@ function HD(n) {
|
|
|
19534
19534
|
hour: "2-digit",
|
|
19535
19535
|
minute: "2-digit",
|
|
19536
19536
|
second: "2-digit"
|
|
19537
|
-
})),
|
|
19537
|
+
})), wa[n];
|
|
19538
19538
|
}
|
|
19539
19539
|
function hf(n, t, e, i, s, r, a) {
|
|
19540
19540
|
const o = /* @__PURE__ */ new Date(0);
|
|
19541
19541
|
return o.setUTCFullYear(n, t, e), o.setUTCHours(i, s, r, a), o;
|
|
19542
19542
|
}
|
|
19543
|
-
const $u = 36e5, WD = 6e4,
|
|
19543
|
+
const $u = 36e5, WD = 6e4, va = {
|
|
19544
19544
|
timezone: /([Z+-].*)$/,
|
|
19545
19545
|
timezoneZ: /^(Z)$/,
|
|
19546
19546
|
timezoneHH: /^([+-]\d{2})$/,
|
|
@@ -19549,20 +19549,20 @@ const $u = 36e5, WD = 6e4, wa = {
|
|
|
19549
19549
|
function ff(n, t, e) {
|
|
19550
19550
|
if (!n)
|
|
19551
19551
|
return 0;
|
|
19552
|
-
let i =
|
|
19552
|
+
let i = va.timezoneZ.exec(n);
|
|
19553
19553
|
if (i)
|
|
19554
19554
|
return 0;
|
|
19555
19555
|
let s, r;
|
|
19556
|
-
if (i =
|
|
19556
|
+
if (i = va.timezoneHH.exec(n), i)
|
|
19557
19557
|
return s = parseInt(i[1], 10), qu(s) ? -(s * $u) : NaN;
|
|
19558
|
-
if (i =
|
|
19558
|
+
if (i = va.timezoneHHMM.exec(n), i) {
|
|
19559
19559
|
s = parseInt(i[2], 10);
|
|
19560
19560
|
const a = parseInt(i[3], 10);
|
|
19561
19561
|
return qu(s, a) ? (r = Math.abs(s) * $u + a * WD, i[1] === "+" ? -r : r) : NaN;
|
|
19562
19562
|
}
|
|
19563
19563
|
if (jD(n)) {
|
|
19564
19564
|
t = new Date(t || Date.now());
|
|
19565
|
-
const a = e ? t : BD(t), o =
|
|
19565
|
+
const a = e ? t : BD(t), o = so(a, n);
|
|
19566
19566
|
return -(e ? o : YD(t, o, n));
|
|
19567
19567
|
}
|
|
19568
19568
|
return NaN;
|
|
@@ -19570,7 +19570,7 @@ function ff(n, t, e) {
|
|
|
19570
19570
|
function BD(n) {
|
|
19571
19571
|
return hf(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds());
|
|
19572
19572
|
}
|
|
19573
|
-
function
|
|
19573
|
+
function so(n, t) {
|
|
19574
19574
|
const e = LD(n, t), i = hf(e[0], e[1] - 1, e[2], e[3] % 24, e[4], e[5], 0).getTime();
|
|
19575
19575
|
let s = n.getTime();
|
|
19576
19576
|
const r = s % 1e3;
|
|
@@ -19578,11 +19578,11 @@ function io(n, t) {
|
|
|
19578
19578
|
}
|
|
19579
19579
|
function YD(n, t, e) {
|
|
19580
19580
|
let s = n.getTime() - t;
|
|
19581
|
-
const r =
|
|
19581
|
+
const r = so(new Date(s), e);
|
|
19582
19582
|
if (t === r)
|
|
19583
19583
|
return t;
|
|
19584
19584
|
s -= r - t;
|
|
19585
|
-
const a =
|
|
19585
|
+
const a = so(new Date(s), e);
|
|
19586
19586
|
return r === a ? r : Math.max(r, a);
|
|
19587
19587
|
}
|
|
19588
19588
|
function qu(n, t) {
|
|
@@ -19601,7 +19601,7 @@ function jD(n) {
|
|
|
19601
19601
|
const $D = 60 * 1e3, qD = {
|
|
19602
19602
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
19603
19603
|
X: function(n, t, e) {
|
|
19604
|
-
const i =
|
|
19604
|
+
const i = Ma(e.timeZone, n);
|
|
19605
19605
|
if (i === 0)
|
|
19606
19606
|
return "Z";
|
|
19607
19607
|
switch (t) {
|
|
@@ -19618,7 +19618,7 @@ const $D = 60 * 1e3, qD = {
|
|
|
19618
19618
|
},
|
|
19619
19619
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
19620
19620
|
x: function(n, t, e) {
|
|
19621
|
-
const i =
|
|
19621
|
+
const i = Ma(e.timeZone, n);
|
|
19622
19622
|
switch (t) {
|
|
19623
19623
|
case "x":
|
|
19624
19624
|
return Vu(i);
|
|
@@ -19633,7 +19633,7 @@ const $D = 60 * 1e3, qD = {
|
|
|
19633
19633
|
},
|
|
19634
19634
|
// Timezone (GMT)
|
|
19635
19635
|
O: function(n, t, e) {
|
|
19636
|
-
const i =
|
|
19636
|
+
const i = Ma(e.timeZone, n);
|
|
19637
19637
|
switch (t) {
|
|
19638
19638
|
case "O":
|
|
19639
19639
|
case "OO":
|
|
@@ -19657,7 +19657,7 @@ const $D = 60 * 1e3, qD = {
|
|
|
19657
19657
|
}
|
|
19658
19658
|
}
|
|
19659
19659
|
};
|
|
19660
|
-
function
|
|
19660
|
+
function Ma(n, t) {
|
|
19661
19661
|
const e = n ? ff(n, t, !0) / $D : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
19662
19662
|
if (Number.isNaN(e))
|
|
19663
19663
|
throw new RangeError("Invalid time zone specified: " + n);
|
|
@@ -19685,7 +19685,7 @@ function Xu(n) {
|
|
|
19685
19685
|
const t = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
|
|
19686
19686
|
return t.setUTCFullYear(n.getFullYear()), +n - +t;
|
|
19687
19687
|
}
|
|
19688
|
-
const VD = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,
|
|
19688
|
+
const VD = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Sa = 36e5, Gu = 6e4, XD = 2, ae = {
|
|
19689
19689
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
19690
19690
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
19691
19691
|
plainTime: /:/,
|
|
@@ -19814,13 +19814,13 @@ function QD(n, t) {
|
|
|
19814
19814
|
function JD(n) {
|
|
19815
19815
|
let t, e, i = ae.HH.exec(n);
|
|
19816
19816
|
if (i)
|
|
19817
|
-
return t = parseFloat(i[1].replace(",", ".")),
|
|
19817
|
+
return t = parseFloat(i[1].replace(",", ".")), ka(t) ? t % 24 * Sa : NaN;
|
|
19818
19818
|
if (i = ae.HHMM.exec(n), i)
|
|
19819
|
-
return t = parseInt(i[1], 10), e = parseFloat(i[2].replace(",", ".")),
|
|
19819
|
+
return t = parseInt(i[1], 10), e = parseFloat(i[2].replace(",", ".")), ka(t, e) ? t % 24 * Sa + e * Gu : NaN;
|
|
19820
19820
|
if (i = ae.HHMMSS.exec(n), i) {
|
|
19821
19821
|
t = parseInt(i[1], 10), e = parseInt(i[2], 10);
|
|
19822
19822
|
const s = parseFloat(i[3].replace(",", "."));
|
|
19823
|
-
return
|
|
19823
|
+
return ka(t, e, s) ? t % 24 * Sa + e * Gu + s * 1e3 : NaN;
|
|
19824
19824
|
}
|
|
19825
19825
|
return null;
|
|
19826
19826
|
}
|
|
@@ -19856,7 +19856,7 @@ function nT(n, t) {
|
|
|
19856
19856
|
function Qu(n, t) {
|
|
19857
19857
|
return !(n < 0 || n > 52 || t != null && (t < 0 || t > 6));
|
|
19858
19858
|
}
|
|
19859
|
-
function
|
|
19859
|
+
function ka(n, t, e) {
|
|
19860
19860
|
return !(n < 0 || n >= 25 || t != null && (t < 0 || t >= 60) || e != null && (e < 0 || e >= 60));
|
|
19861
19861
|
}
|
|
19862
19862
|
const iT = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
@@ -20171,6 +20171,11 @@ const sT = { class: "kong-ui-public-csv-export-modal" }, rT = {
|
|
|
20171
20171
|
type: Boolean,
|
|
20172
20172
|
required: !1,
|
|
20173
20173
|
default: !1
|
|
20174
|
+
},
|
|
20175
|
+
showMenu: {
|
|
20176
|
+
type: Boolean,
|
|
20177
|
+
required: !1,
|
|
20178
|
+
default: !1
|
|
20174
20179
|
}
|
|
20175
20180
|
},
|
|
20176
20181
|
emits: ["zoom-time-range"],
|
|
@@ -20178,13 +20183,13 @@ const sT = { class: "kong-ui-public-csv-export-modal" }, rT = {
|
|
|
20178
20183
|
const e = n, i = t, { i18n: s } = bt.useI18n(), { evaluateFeatureFlag: r } = bt.useEvaluateFeatureFlag(), a = r("ma-3043-analytics-chart-kebab-menu", !1), o = St(e, "chartData"), l = W(() => S.value ? bt.useExploreResultToTimeDataset(
|
|
20179
20184
|
{
|
|
20180
20185
|
fill: e.chartOptions.stacked,
|
|
20181
|
-
colorPalette: e.chartOptions.chartDatasetColors ||
|
|
20186
|
+
colorPalette: e.chartOptions.chartDatasetColors || da
|
|
20182
20187
|
},
|
|
20183
20188
|
St(e, "chartData")
|
|
20184
20189
|
).value : bt.useExploreResultToDatasets(
|
|
20185
20190
|
{
|
|
20186
20191
|
fill: e.chartOptions.stacked,
|
|
20187
|
-
colorPalette: e.chartOptions.chartDatasetColors ||
|
|
20192
|
+
colorPalette: e.chartOptions.chartDatasetColors || da
|
|
20188
20193
|
},
|
|
20189
20194
|
St(e, "chartData")
|
|
20190
20195
|
).value), c = ot(!1), u = (R) => {
|
|
@@ -20225,9 +20230,9 @@ const sT = { class: "kong-ui-public-csv-export-modal" }, rT = {
|
|
|
20225
20230
|
return e.chartOptions.dimensionAxesTitle || s.te(`chartLabels.${R}`) && // @ts-ignore - dynamic i18n key
|
|
20226
20231
|
s.t(`chartLabels.${R}`) || void 0;
|
|
20227
20232
|
}), k = W(() => {
|
|
20228
|
-
const R =
|
|
20233
|
+
const R = ya(Number(e.chartData.meta.granularity_ms));
|
|
20229
20234
|
return s.t(`granularityAxisTitles.${R}`);
|
|
20230
|
-
}), E = W(() => e.emptyStateTitle || s.t("noDataAvailableTitle")), A = W(() => e.emptyStateDescription || s.t("noDataAvailableDescription")), N = W(() => S.value ? $w(l.value) : e.chartData && e.chartData.meta && e.chartData.data.length), q = W(() => N.value && v.value && _.value || e.chartTitle || e.allowCsvExport && N.value), G = W(() => e.allowCsvExport && N.value || !!e.goToExplore), $ = W(() => e.chartData.meta.granularity_ms ?
|
|
20235
|
+
}), E = W(() => e.emptyStateTitle || s.t("noDataAvailableTitle")), A = W(() => e.emptyStateDescription || s.t("noDataAvailableDescription")), N = W(() => S.value ? $w(l.value) : e.chartData && e.chartData.meta && e.chartData.data.length), q = W(() => N.value && v.value && _.value || e.chartTitle || e.allowCsvExport && N.value), G = W(() => e.allowCsvExport && N.value || !!e.goToExplore || e.showMenu), $ = W(() => e.chartData.meta.granularity_ms ? ya(e.chartData.meta.granularity_ms) || "hourly" : ya(
|
|
20231
20236
|
new Date(e.chartData.data[1].timestamp).getTime() - new Date(e.chartData.data[0].timestamp).getTime()
|
|
20232
20237
|
) || "hourly"), I = W(() => e.chartOptions.chartLegendSortFn ? e.chartOptions.chartLegendSortFn : (R, Z) => R.text === s.t("chartLabels.____OTHER____") ? 1 : Z.text === s.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(R.text, 10)) && !isNaN(parseInt(Z.text, 10)) ? R.text < Z.text ? -1 : 1 : R.value && Z.value ? Z.value.raw - R.value.raw : 0), at = W(() => e.chartOptions.chartTooltipSortFn ? e.chartOptions.chartTooltipSortFn : (R, Z) => R.label === s.t("chartLabels.____OTHER____") ? 1 : Z.label === s.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(R.label, 10)) && !isNaN(parseInt(Z.label, 10)) ? R.label < Z.label ? -1 : 1 : R.value && Z.value ? Z.rawValue - R.rawValue : 0);
|
|
20233
20238
|
return hl("showLegendValues", b), hl("legendPosition", St(e, "legendPosition")), (R, Z) => {
|
|
@@ -20289,7 +20294,8 @@ const sT = { class: "kong-ui-public-csv-export-modal" }, rT = {
|
|
|
20289
20294
|
}, ct(st(s).t("csvExport.exportButton")), 1)
|
|
20290
20295
|
]),
|
|
20291
20296
|
_: 1
|
|
20292
|
-
})) : Rt("", !0)
|
|
20297
|
+
})) : Rt("", !0),
|
|
20298
|
+
kr(R.$slots, "menu-items", {}, void 0, !0)
|
|
20293
20299
|
]),
|
|
20294
20300
|
default: Ct(() => [
|
|
20295
20301
|
Kt(st(Fg), {
|
|
@@ -20297,7 +20303,7 @@ const sT = { class: "kong-ui-public-csv-export-modal" }, rT = {
|
|
|
20297
20303
|
size: st(Eu)
|
|
20298
20304
|
}, null, 8, ["color", "size"])
|
|
20299
20305
|
]),
|
|
20300
|
-
_:
|
|
20306
|
+
_: 3
|
|
20301
20307
|
})) : Rt("", !0),
|
|
20302
20308
|
c.value ? (K(), $t(pf, {
|
|
20303
20309
|
key: 3,
|
|
@@ -20343,7 +20349,7 @@ const sT = { class: "kong-ui-public-csv-export-modal" }, rT = {
|
|
|
20343
20349
|
}, null, 8, ["annotations", "chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "dimension-axes-title", "legend-values", "metric-axes-title", "metric-unit", "orientation", "stacked", "synthetics-data-key", "tooltip-title"])) : P.value ? (K(), $t(Yk, {
|
|
20344
20350
|
key: 2,
|
|
20345
20351
|
"chart-data": l.value,
|
|
20346
|
-
"dataset-colors": n.chartOptions.chartDatasetColors || st(
|
|
20352
|
+
"dataset-colors": n.chartOptions.chartDatasetColors || st(da),
|
|
20347
20353
|
"legend-position": n.legendPosition,
|
|
20348
20354
|
"legend-values": st(x),
|
|
20349
20355
|
"metric-unit": g.value,
|
|
@@ -20367,7 +20373,7 @@ const sT = { class: "kong-ui-public-csv-export-modal" }, rT = {
|
|
|
20367
20373
|
]);
|
|
20368
20374
|
};
|
|
20369
20375
|
}
|
|
20370
|
-
}), KT = /* @__PURE__ */ cn(pT, [["__scopeId", "data-v-
|
|
20376
|
+
}), KT = /* @__PURE__ */ cn(pT, [["__scopeId", "data-v-bdcd60d0"]]), mT = {
|
|
20371
20377
|
class: "chart-parent",
|
|
20372
20378
|
"data-testid": "doughnut-chart-parent"
|
|
20373
20379
|
}, bT = { class: "chart-totals-flex" }, yT = {
|
|
@@ -20656,13 +20662,13 @@ const sT = { class: "kong-ui-public-csv-export-modal" }, rT = {
|
|
|
20656
20662
|
])
|
|
20657
20663
|
]),
|
|
20658
20664
|
dt("div", ET, [
|
|
20659
|
-
(K(!0), ft(ns, null,
|
|
20665
|
+
(K(!0), ft(ns, null, oo(i.value, (M, T) => (K(), ft("div", {
|
|
20660
20666
|
key: `entry-${T}`,
|
|
20661
20667
|
class: "table-row",
|
|
20662
20668
|
"data-testid": `row-${u(M)}`
|
|
20663
20669
|
}, [
|
|
20664
20670
|
dt("div", RT, [
|
|
20665
|
-
|
|
20671
|
+
kr(g.$slots, "name", {
|
|
20666
20672
|
record: {
|
|
20667
20673
|
id: u(M),
|
|
20668
20674
|
name: d(M),
|
|
@@ -20716,7 +20722,7 @@ export {
|
|
|
20716
20722
|
Uw as DECIMAL_DISPLAY,
|
|
20717
20723
|
Xw as FONT_SIZE_REGULAR,
|
|
20718
20724
|
Vw as FONT_SIZE_SMALL,
|
|
20719
|
-
|
|
20725
|
+
Xa as MAX_LABEL_LENGTH,
|
|
20720
20726
|
qT as OTHERS_COLOR,
|
|
20721
20727
|
ZT as SimpleChart,
|
|
20722
20728
|
QT as TopNTable,
|
|
@@ -20727,7 +20733,7 @@ export {
|
|
|
20727
20733
|
sv as codesInSpec,
|
|
20728
20734
|
Gw as darkenColor,
|
|
20729
20735
|
Cn as datavisPalette,
|
|
20730
|
-
|
|
20736
|
+
da as defaultStatusCodeColors,
|
|
20731
20737
|
jT as errorRateColors,
|
|
20732
20738
|
$T as latencyColors,
|
|
20733
20739
|
qc as lightGrey,
|
|
@@ -20735,7 +20741,7 @@ export {
|
|
|
20735
20741
|
ts as lookupDatavisColor,
|
|
20736
20742
|
VT as lookupStatusCodeCategoryColor,
|
|
20737
20743
|
wh as lookupStatusCodeColor,
|
|
20738
|
-
|
|
20744
|
+
Va as numberFormatter,
|
|
20739
20745
|
GT as simpleChartTypes,
|
|
20740
20746
|
BT as statusCodeBadgeBackgroundColor,
|
|
20741
20747
|
YT as trafficColors
|